mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-23 11:42:21 +00:00
UiButton gains styled variants beside the unstyled default ghost: action (the gev-action-button surface, tone="danger" and size="compact"), primary (that surface with the scene panel's main-action accent) and icon (the panel collapse toggle's square glyph button). A pressed styled button looks as a hovered one does. UiChip wears the read-only chip (now chip.css, shared with the news chips), UiEmpty the one-line empty state (now empty-state.css, shared with the news readout), and UiBadge and UiSegmented carry their skins through the kit's own classes too. Every kit selector shares one selector list with the Core skin it comes from, in skins loaded before the feature stylesheets, so no rule is copied and feature classes still win. The app renders as before: the voice card chip and the Recent Imagery and Authoring empty states keep their own type by inheriting it, and the dock pin buttons drop variant="icon", which they never wore. kitStyles.test.mjs pins the shared rules. Co-authored-by: Manjunath Paparaju <[email protected]>
18 lines
592 B
Vue
18 lines
592 B
Vue
<script setup>
|
|
// Core's read-only badge, with a `tone` and the kit's classes. `ui-badge`
|
|
// wears Core's badge (status-badge.css) beside Core's `gev-status-badge`
|
|
// class; callers add its density variants (`gev-status-badge--box`,
|
|
// `--plain`) and the feature classes that colour it. The tone classes carry
|
|
// no style yet. Not mirrored yet: pulse, busy, the tone glyphs and the
|
|
// clipped title.
|
|
defineProps({
|
|
tone: { type: String, default: 'neutral' },
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<span class="ui-badge gev-status-badge" :class="`ui-badge--${tone}`"
|
|
><slot
|
|
/></span>
|
|
</template>
|