mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 09: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
596 B
Vue
18 lines
596 B
Vue
<script setup>
|
|
// Core's empty state, with a `title` and `hint`. Core's empty states are one
|
|
// line, so the title is the text itself rather than a bold heading; a hint
|
|
// follows it on a line of its own. It wears Core's empty line
|
|
// (empty-state.css: dim 10px mono text); feature classes the caller passes
|
|
// restyle it. Not mirrored yet: icon.
|
|
defineProps({
|
|
title: { type: String, required: true },
|
|
hint: { type: String, default: undefined },
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<div class="ui-empty">
|
|
{{ title }}<span v-if="hint" class="ui-empty__hint">{{ hint }}</span>
|
|
</div>
|
|
</template>
|