@ghostvue/themes 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +59 -2
- package/THIRD_PARTY_NOTICES.md +30 -0
- package/dist/base.css +341 -0
- package/dist/calm.css +1899 -0
- package/dist/components.d.ts +148 -0
- package/dist/components.js +143 -0
- package/dist/default.css +11017 -0
- package/dist/define.d.ts +75 -0
- package/dist/define.js +5934 -0
- package/dist/flagship-themes.d.ts +5 -0
- package/dist/flagship-themes.js +3 -0
- package/dist/generated/tokens.d.ts +5275 -0
- package/dist/generated/tokens.js +5272 -0
- package/dist/ghost-accordion-content.d.ts +26 -0
- package/dist/ghost-accordion-content.js +22 -0
- package/dist/ghost-accordion-item.d.ts +24 -0
- package/dist/ghost-accordion-item.js +16 -0
- package/dist/ghost-accordion-trigger.d.ts +17 -0
- package/dist/ghost-accordion-trigger.js +33 -0
- package/dist/ghost-accordion.d.ts +72 -0
- package/dist/ghost-accordion.js +56 -0
- package/dist/ghost-avatar.d.ts +60 -0
- package/dist/ghost-avatar.js +39 -0
- package/dist/ghost-badge.d.ts +46 -0
- package/dist/ghost-badge.js +33 -0
- package/dist/ghost-breadcrumb-ellipsis.d.ts +16 -0
- package/dist/ghost-breadcrumb-ellipsis.js +20 -0
- package/dist/ghost-breadcrumb-item.d.ts +18 -0
- package/dist/ghost-breadcrumb-item.js +20 -0
- package/dist/ghost-breadcrumb-link.d.ts +18 -0
- package/dist/ghost-breadcrumb-link.js +33 -0
- package/dist/ghost-breadcrumb-list.d.ts +18 -0
- package/dist/ghost-breadcrumb-list.js +27 -0
- package/dist/ghost-breadcrumb-page.d.ts +18 -0
- package/dist/ghost-breadcrumb-page.js +20 -0
- package/dist/ghost-breadcrumb-separator.d.ts +18 -0
- package/dist/ghost-breadcrumb-separator.js +20 -0
- package/dist/ghost-breadcrumb.d.ts +34 -0
- package/dist/ghost-breadcrumb.js +27 -0
- package/dist/ghost-button.d.ts +102 -0
- package/dist/ghost-button.js +66 -0
- package/dist/ghost-calendar-cell.d.ts +15 -0
- package/dist/ghost-calendar-cell.js +12 -0
- package/dist/ghost-calendar-grid.d.ts +5 -0
- package/dist/ghost-calendar-grid.js +21 -0
- package/dist/ghost-calendar-header.d.ts +3 -0
- package/dist/ghost-calendar-header.js +9 -0
- package/dist/ghost-calendar-heading.d.ts +3 -0
- package/dist/ghost-calendar-heading.js +9 -0
- package/dist/ghost-calendar-next-button.d.ts +9 -0
- package/dist/ghost-calendar-next-button.js +18 -0
- package/dist/ghost-calendar-prev-button.d.ts +9 -0
- package/dist/ghost-calendar-prev-button.js +18 -0
- package/dist/ghost-calendar.d.ts +119 -0
- package/dist/ghost-calendar.js +101 -0
- package/dist/ghost-card.d.ts +33 -0
- package/dist/ghost-card.js +36 -0
- package/dist/ghost-checkbox.d.ts +76 -0
- package/dist/ghost-checkbox.js +59 -0
- package/dist/ghost-collapsible-content.d.ts +28 -0
- package/dist/ghost-collapsible-content.js +41 -0
- package/dist/ghost-collapsible-trigger.d.ts +28 -0
- package/dist/ghost-collapsible-trigger.js +41 -0
- package/dist/ghost-collapsible.d.ts +44 -0
- package/dist/ghost-collapsible.js +38 -0
- package/dist/ghost-combobox-content.d.ts +82 -0
- package/dist/ghost-combobox-content.js +58 -0
- package/dist/ghost-combobox-input.d.ts +28 -0
- package/dist/ghost-combobox-input.js +36 -0
- package/dist/ghost-combobox-trigger.d.ts +28 -0
- package/dist/ghost-combobox-trigger.js +36 -0
- package/dist/ghost-combobox.d.ts +179 -0
- package/dist/ghost-combobox.js +98 -0
- package/dist/ghost-command-palette-content.d.ts +86 -0
- package/dist/ghost-command-palette-content.js +55 -0
- package/dist/ghost-command-palette-overlay.d.ts +40 -0
- package/dist/ghost-command-palette-overlay.js +40 -0
- package/dist/ghost-command-palette.d.ts +114 -0
- package/dist/ghost-command-palette.js +93 -0
- package/dist/ghost-context-menu-checkbox-item.d.ts +50 -0
- package/dist/ghost-context-menu-checkbox-item.js +57 -0
- package/dist/ghost-context-menu-content.d.ts +85 -0
- package/dist/ghost-context-menu-content.js +75 -0
- package/dist/ghost-context-menu-group.d.ts +19 -0
- package/dist/ghost-context-menu-group.js +23 -0
- package/dist/ghost-context-menu-item.d.ts +32 -0
- package/dist/ghost-context-menu-item.js +43 -0
- package/dist/ghost-context-menu-label.d.ts +19 -0
- package/dist/ghost-context-menu-label.js +23 -0
- package/dist/ghost-context-menu-radio-group.d.ts +50 -0
- package/dist/ghost-context-menu-radio-group.js +46 -0
- package/dist/ghost-context-menu-radio-item.d.ts +40 -0
- package/dist/ghost-context-menu-radio-item.js +53 -0
- package/dist/ghost-context-menu-separator.d.ts +28 -0
- package/dist/ghost-context-menu-separator.js +28 -0
- package/dist/ghost-context-menu-trigger.d.ts +28 -0
- package/dist/ghost-context-menu-trigger.js +41 -0
- package/dist/ghost-context-menu.d.ts +35 -0
- package/dist/ghost-context-menu.js +33 -0
- package/dist/ghost-data-table-preset.d.ts +31 -0
- package/dist/ghost-data-table-preset.js +12 -0
- package/dist/ghost-data-table-table.d.ts +30 -0
- package/dist/ghost-data-table-table.js +9 -0
- package/dist/ghost-data-table.d.ts +94 -0
- package/dist/ghost-data-table.js +105 -0
- package/dist/ghost-date-picker-calendar.d.ts +9 -0
- package/dist/ghost-date-picker-calendar.js +30 -0
- package/dist/ghost-date-picker-content.d.ts +95 -0
- package/dist/ghost-date-picker-content.js +58 -0
- package/dist/ghost-date-picker-input.d.ts +46 -0
- package/dist/ghost-date-picker-input.js +39 -0
- package/dist/ghost-date-picker-trigger.d.ts +6 -0
- package/dist/ghost-date-picker-trigger.js +22 -0
- package/dist/ghost-date-picker.d.ts +245 -0
- package/dist/ghost-date-picker.js +68 -0
- package/dist/ghost-dialog-close.d.ts +28 -0
- package/dist/ghost-dialog-close.js +37 -0
- package/dist/ghost-dialog-content.d.ts +95 -0
- package/dist/ghost-dialog-content.js +78 -0
- package/dist/ghost-dialog-description.d.ts +19 -0
- package/dist/ghost-dialog-description.js +37 -0
- package/dist/ghost-dialog-overlay.d.ts +40 -0
- package/dist/ghost-dialog-overlay.js +46 -0
- package/dist/ghost-dialog-title.d.ts +19 -0
- package/dist/ghost-dialog-title.js +33 -0
- package/dist/ghost-dialog-trigger.d.ts +28 -0
- package/dist/ghost-dialog-trigger.js +37 -0
- package/dist/ghost-dialog.d.ts +44 -0
- package/dist/ghost-dialog.js +38 -0
- package/dist/ghost-drawer-close.d.ts +28 -0
- package/dist/ghost-drawer-close.js +37 -0
- package/dist/ghost-drawer-content.d.ts +87 -0
- package/dist/ghost-drawer-content.js +73 -0
- package/dist/ghost-drawer-description.d.ts +19 -0
- package/dist/ghost-drawer-description.js +36 -0
- package/dist/ghost-drawer-overlay.d.ts +40 -0
- package/dist/ghost-drawer-overlay.js +46 -0
- package/dist/ghost-drawer-title.d.ts +19 -0
- package/dist/ghost-drawer-title.js +32 -0
- package/dist/ghost-drawer-trigger.d.ts +28 -0
- package/dist/ghost-drawer-trigger.js +37 -0
- package/dist/ghost-drawer.d.ts +62 -0
- package/dist/ghost-drawer.js +48 -0
- package/dist/ghost-dropdown-menu-checkbox-item.d.ts +50 -0
- package/dist/ghost-dropdown-menu-checkbox-item.js +57 -0
- package/dist/ghost-dropdown-menu-content.d.ts +85 -0
- package/dist/ghost-dropdown-menu-content.js +75 -0
- package/dist/ghost-dropdown-menu-group.d.ts +19 -0
- package/dist/ghost-dropdown-menu-group.js +23 -0
- package/dist/ghost-dropdown-menu-item.d.ts +32 -0
- package/dist/ghost-dropdown-menu-item.js +47 -0
- package/dist/ghost-dropdown-menu-label.d.ts +19 -0
- package/dist/ghost-dropdown-menu-label.js +23 -0
- package/dist/ghost-dropdown-menu-radio-group.d.ts +50 -0
- package/dist/ghost-dropdown-menu-radio-group.js +46 -0
- package/dist/ghost-dropdown-menu-radio-item.d.ts +40 -0
- package/dist/ghost-dropdown-menu-radio-item.js +53 -0
- package/dist/ghost-dropdown-menu-separator.d.ts +28 -0
- package/dist/ghost-dropdown-menu-separator.js +28 -0
- package/dist/ghost-dropdown-menu-trigger.d.ts +28 -0
- package/dist/ghost-dropdown-menu-trigger.js +41 -0
- package/dist/ghost-dropdown-menu.d.ts +35 -0
- package/dist/ghost-dropdown-menu.js +33 -0
- package/dist/ghost-empty-state.d.ts +31 -0
- package/dist/ghost-empty-state.js +35 -0
- package/dist/ghost-field.d.ts +44 -0
- package/dist/ghost-field.js +44 -0
- package/dist/ghost-file-upload-dropzone.d.ts +9 -0
- package/dist/ghost-file-upload-dropzone.js +23 -0
- package/dist/ghost-file-upload-item-remove.d.ts +10 -0
- package/dist/ghost-file-upload-item-remove.js +30 -0
- package/dist/ghost-file-upload-list.d.ts +10 -0
- package/dist/ghost-file-upload-list.js +24 -0
- package/dist/ghost-file-upload-trigger.d.ts +18 -0
- package/dist/ghost-file-upload-trigger.js +30 -0
- package/dist/ghost-file-upload.d.ts +147 -0
- package/dist/ghost-file-upload.js +98 -0
- package/dist/ghost-hover-card-content.d.ts +85 -0
- package/dist/ghost-hover-card-content.js +75 -0
- package/dist/ghost-hover-card-trigger.d.ts +28 -0
- package/dist/ghost-hover-card-trigger.js +41 -0
- package/dist/ghost-hover-card.d.ts +62 -0
- package/dist/ghost-hover-card.js +48 -0
- package/dist/ghost-inline-alert.d.ts +62 -0
- package/dist/ghost-inline-alert.js +50 -0
- package/dist/ghost-input.d.ts +100 -0
- package/dist/ghost-input.js +60 -0
- package/dist/ghost-interactive-surface.d.ts +31 -0
- package/dist/ghost-interactive-surface.js +36 -0
- package/dist/ghost-kbd.d.ts +42 -0
- package/dist/ghost-kbd.js +32 -0
- package/dist/ghost-link.d.ts +94 -0
- package/dist/ghost-link.js +59 -0
- package/dist/ghost-menubar-checkbox-item.d.ts +50 -0
- package/dist/ghost-menubar-checkbox-item.js +57 -0
- package/dist/ghost-menubar-content.d.ts +85 -0
- package/dist/ghost-menubar-content.js +71 -0
- package/dist/ghost-menubar-group.d.ts +19 -0
- package/dist/ghost-menubar-group.js +19 -0
- package/dist/ghost-menubar-item.d.ts +32 -0
- package/dist/ghost-menubar-item.js +43 -0
- package/dist/ghost-menubar-label.d.ts +19 -0
- package/dist/ghost-menubar-label.js +19 -0
- package/dist/ghost-menubar-menu.d.ts +35 -0
- package/dist/ghost-menubar-menu.js +33 -0
- package/dist/ghost-menubar-radio-group.d.ts +50 -0
- package/dist/ghost-menubar-radio-group.js +46 -0
- package/dist/ghost-menubar-radio-item.d.ts +40 -0
- package/dist/ghost-menubar-radio-item.js +53 -0
- package/dist/ghost-menubar-separator.d.ts +28 -0
- package/dist/ghost-menubar-separator.js +28 -0
- package/dist/ghost-menubar-trigger.d.ts +28 -0
- package/dist/ghost-menubar-trigger.js +37 -0
- package/dist/ghost-menubar.d.ts +28 -0
- package/dist/ghost-menubar.js +33 -0
- package/dist/ghost-number-input.d.ts +153 -0
- package/dist/ghost-number-input.js +87 -0
- package/dist/ghost-pagination.d.ts +151 -0
- package/dist/ghost-pagination.js +71 -0
- package/dist/ghost-popover-close.d.ts +28 -0
- package/dist/ghost-popover-close.js +37 -0
- package/dist/ghost-popover-content.d.ts +86 -0
- package/dist/ghost-popover-content.js +72 -0
- package/dist/ghost-popover-trigger.d.ts +28 -0
- package/dist/ghost-popover-trigger.js +37 -0
- package/dist/ghost-popover.d.ts +35 -0
- package/dist/ghost-popover.js +33 -0
- package/dist/ghost-progress.d.ts +69 -0
- package/dist/ghost-progress.js +37 -0
- package/dist/ghost-radio-group-item.d.ts +37 -0
- package/dist/ghost-radio-group-item.js +33 -0
- package/dist/ghost-radio-group.d.ts +91 -0
- package/dist/ghost-radio-group.js +65 -0
- package/dist/ghost-scroll-area.d.ts +49 -0
- package/dist/ghost-scroll-area.js +32 -0
- package/dist/ghost-scroll-spy-item.d.ts +27 -0
- package/dist/ghost-scroll-spy-item.js +29 -0
- package/dist/ghost-scroll-spy-link.d.ts +44 -0
- package/dist/ghost-scroll-spy-link.js +39 -0
- package/dist/ghost-scroll-spy-list.d.ts +18 -0
- package/dist/ghost-scroll-spy-list.js +27 -0
- package/dist/ghost-scroll-spy.d.ts +121 -0
- package/dist/ghost-scroll-spy.js +83 -0
- package/dist/ghost-segmented-control-item.d.ts +36 -0
- package/dist/ghost-segmented-control-item.js +47 -0
- package/dist/ghost-segmented-control.d.ts +77 -0
- package/dist/ghost-segmented-control.js +73 -0
- package/dist/ghost-select-content.d.ts +82 -0
- package/dist/ghost-select-content.js +58 -0
- package/dist/ghost-select-trigger.d.ts +28 -0
- package/dist/ghost-select-trigger.js +36 -0
- package/dist/ghost-select.d.ts +115 -0
- package/dist/ghost-select.js +74 -0
- package/dist/ghost-separator.d.ts +41 -0
- package/dist/ghost-separator.js +34 -0
- package/dist/ghost-skeleton.d.ts +34 -0
- package/dist/ghost-skeleton.js +31 -0
- package/dist/ghost-slider.d.ts +150 -0
- package/dist/ghost-slider.js +83 -0
- package/dist/ghost-spinner.d.ts +42 -0
- package/dist/ghost-spinner.js +26 -0
- package/dist/ghost-switch.d.ts +102 -0
- package/dist/ghost-switch.js +68 -0
- package/dist/ghost-table.d.ts +30 -0
- package/dist/ghost-table.js +36 -0
- package/dist/ghost-tabs-content.d.ts +27 -0
- package/dist/ghost-tabs-content.js +38 -0
- package/dist/ghost-tabs-list.d.ts +19 -0
- package/dist/ghost-tabs-list.js +33 -0
- package/dist/ghost-tabs-trigger.d.ts +36 -0
- package/dist/ghost-tabs-trigger.js +43 -0
- package/dist/ghost-tabs.d.ts +59 -0
- package/dist/ghost-tabs.js +45 -0
- package/dist/ghost-textarea.d.ts +109 -0
- package/dist/ghost-textarea.js +66 -0
- package/dist/ghost-toast-viewport.d.ts +43 -0
- package/dist/ghost-toast-viewport.js +74 -0
- package/dist/ghost-toast.d.ts +54 -0
- package/dist/ghost-toast.js +48 -0
- package/dist/ghost-toggle-group-item.d.ts +36 -0
- package/dist/ghost-toggle-group-item.js +43 -0
- package/dist/ghost-toggle-group.d.ts +77 -0
- package/dist/ghost-toggle-group.js +69 -0
- package/dist/ghost-toolbar.d.ts +6 -0
- package/dist/ghost-toolbar.js +24 -0
- package/dist/ghost-tooltip-content.d.ts +86 -0
- package/dist/ghost-tooltip-content.js +72 -0
- package/dist/ghost-tooltip-trigger.d.ts +28 -0
- package/dist/ghost-tooltip-trigger.js +37 -0
- package/dist/ghost-tooltip.d.ts +62 -0
- package/dist/ghost-tooltip.js +50 -0
- package/dist/ghost-tree-group.d.ts +32 -0
- package/dist/ghost-tree-group.js +39 -0
- package/dist/ghost-tree-item.d.ts +45 -0
- package/dist/ghost-tree-item.js +42 -0
- package/dist/ghost-tree-trigger.d.ts +40 -0
- package/dist/ghost-tree-trigger.js +43 -0
- package/dist/ghost-tree.d.ts +122 -0
- package/dist/ghost-tree.js +98 -0
- package/dist/index.d.ts +148 -0
- package/dist/index.js +144 -0
- package/dist/manifest.json +6375 -0
- package/dist/mono.css +1864 -0
- package/dist/recipes/accordion.css +42 -0
- package/dist/recipes/avatar.css +87 -0
- package/dist/recipes/badge.css +170 -0
- package/dist/recipes/breadcrumb.css +149 -0
- package/dist/recipes/button.css +632 -0
- package/dist/recipes/calendar.css +292 -0
- package/dist/recipes/card.css +54 -0
- package/dist/recipes/checkbox.css +262 -0
- package/dist/recipes/collapsible.css +304 -0
- package/dist/recipes/combobox.css +276 -0
- package/dist/recipes/command-palette.css +244 -0
- package/dist/recipes/context-menu.css +227 -0
- package/dist/recipes/data-table.css +455 -0
- package/dist/recipes/date-picker.css +292 -0
- package/dist/recipes/dialog.css +141 -0
- package/dist/recipes/drawer.css +338 -0
- package/dist/recipes/dropdown-menu.css +232 -0
- package/dist/recipes/empty-state.css +66 -0
- package/dist/recipes/field.css +63 -0
- package/dist/recipes/file-upload.css +260 -0
- package/dist/recipes/hover-card.css +64 -0
- package/dist/recipes/inline-alert.css +172 -0
- package/dist/recipes/input.css +176 -0
- package/dist/recipes/kbd.css +113 -0
- package/dist/recipes/link.css +158 -0
- package/dist/recipes/menubar.css +242 -0
- package/dist/recipes/number-input.css +222 -0
- package/dist/recipes/pagination.css +143 -0
- package/dist/recipes/popover.css +83 -0
- package/dist/recipes/progress.css +119 -0
- package/dist/recipes/radio-group.css +200 -0
- package/dist/recipes/scroll-area.css +31 -0
- package/dist/recipes/scroll-spy.css +72 -0
- package/dist/recipes/segmented-control.css +178 -0
- package/dist/recipes/select.css +299 -0
- package/dist/recipes/separator.css +41 -0
- package/dist/recipes/skeleton.css +132 -0
- package/dist/recipes/slider.css +239 -0
- package/dist/recipes/spinner.css +93 -0
- package/dist/recipes/switch.css +314 -0
- package/dist/recipes/table.css +120 -0
- package/dist/recipes/tabs.css +139 -0
- package/dist/recipes/textarea.css +148 -0
- package/dist/recipes/toast.css +321 -0
- package/dist/recipes/toggle-group.css +92 -0
- package/dist/recipes/toolbar.css +25 -0
- package/dist/recipes/tooltip.css +48 -0
- package/dist/recipes/tree.css +231 -0
- package/dist/start-theme-transition.d.ts +9 -0
- package/dist/start-theme-transition.js +27 -0
- package/dist/tokens/primitives.json +612 -0
- package/dist/tokens/seeds.json +23 -0
- package/dist/tokens/semantic.compact.json +175 -0
- package/dist/tokens/semantic.dark.json +583 -0
- package/dist/tokens/semantic.json +1651 -0
- package/dist/tokens/semantic.spacious.json +175 -0
- package/dist/tokens.css +1864 -0
- package/dist/tokens.json +6137 -0
- package/dist/vibrant.css +1864 -0
- package/package.json +75 -4
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Themed GhostCommandPalette. The shell reuses the dialog scrim and
|
|
3
|
+
* elevation-4 surface; the input and list reuse the combobox control and
|
|
4
|
+
* option recipes. Semantic --ghost-* tokens only. The one public hook,
|
|
5
|
+
* --ghost-command-palette-list-max-size, caps the scrolling list height.
|
|
6
|
+
* Nested selectors use the palette's own part classes so components rendered
|
|
7
|
+
* inside items (badges, kbd) are never restyled.
|
|
8
|
+
*/
|
|
9
|
+
@layer ghostvue-theme {
|
|
10
|
+
:where(
|
|
11
|
+
.ghost-theme .ghost-command-palette-overlay,
|
|
12
|
+
.ghost-themed-scope .ghost-command-palette-overlay,
|
|
13
|
+
.ghost-command-palette-overlay[data-themed]
|
|
14
|
+
) {
|
|
15
|
+
background-color: var(--ghost-scrim);
|
|
16
|
+
inset: 0;
|
|
17
|
+
position: fixed;
|
|
18
|
+
z-index: 50;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where(
|
|
22
|
+
.ghost-theme .ghost-command-palette-content,
|
|
23
|
+
.ghost-themed-scope .ghost-command-palette-content,
|
|
24
|
+
.ghost-command-palette-content[data-themed]
|
|
25
|
+
) {
|
|
26
|
+
background-color: var(--ghost-elevation-4-bg);
|
|
27
|
+
border: var(--ghost-border-hairline-width) solid
|
|
28
|
+
var(--ghost-elevation-4-border);
|
|
29
|
+
border-radius: var(--ghost-radius-lg);
|
|
30
|
+
box-shadow:
|
|
31
|
+
var(--ghost-elevation-4-shadow), var(--ghost-elevation-4-highlight);
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
color: var(--ghost-surface-fg);
|
|
34
|
+
display: grid;
|
|
35
|
+
font-family: var(--ghost-type-family-sans);
|
|
36
|
+
font-feature-settings: var(--ghost-type-feature-default);
|
|
37
|
+
gap: var(--ghost-space-gap-sm);
|
|
38
|
+
inline-size: min(calc(100vw - 2 * var(--ghost-space-inset-lg)), 40rem);
|
|
39
|
+
/*
|
|
40
|
+
* Anchored near the top rather than centered so the input does not jump
|
|
41
|
+
* as results shrink and grow. Physical `left` pairs with the physical
|
|
42
|
+
* translate (same RTL reasoning as the themed dialog).
|
|
43
|
+
*/
|
|
44
|
+
left: 50%;
|
|
45
|
+
max-block-size: calc(100dvh - 2 * var(--ghost-space-inset-lg));
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
overflow-wrap: anywhere;
|
|
48
|
+
padding: var(--ghost-space-inset-sm);
|
|
49
|
+
position: fixed;
|
|
50
|
+
top: min(12dvh, 8rem);
|
|
51
|
+
transform: translateX(-50%);
|
|
52
|
+
z-index: 50;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:where(
|
|
56
|
+
.ghost-theme .ghost-command-palette-title,
|
|
57
|
+
.ghost-themed-scope .ghost-command-palette-title,
|
|
58
|
+
.ghost-command-palette-content[data-themed] .ghost-command-palette-title
|
|
59
|
+
) {
|
|
60
|
+
font-size: var(--ghost-type-size-sm);
|
|
61
|
+
font-weight: var(--ghost-type-weight-semibold);
|
|
62
|
+
line-height: var(--ghost-type-line-snug);
|
|
63
|
+
margin: 0;
|
|
64
|
+
padding-inline: var(--ghost-space-inset-sm);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:where(
|
|
68
|
+
.ghost-theme .ghost-command-palette-input,
|
|
69
|
+
.ghost-themed-scope .ghost-command-palette-input,
|
|
70
|
+
.ghost-command-palette-content[data-themed] .ghost-command-palette-input
|
|
71
|
+
) {
|
|
72
|
+
background-color: var(--ghost-surface-bg);
|
|
73
|
+
border: var(--ghost-border-hairline-width) solid var(--ghost-border-strong);
|
|
74
|
+
border-radius: var(--ghost-action-radius);
|
|
75
|
+
box-sizing: border-box;
|
|
76
|
+
color: var(--ghost-text-default);
|
|
77
|
+
font: inherit;
|
|
78
|
+
font-size: var(--ghost-control-size-md-font);
|
|
79
|
+
inline-size: 100%;
|
|
80
|
+
min-block-size: var(--ghost-control-size-md-min);
|
|
81
|
+
padding-block: var(--ghost-control-size-md-padding-block);
|
|
82
|
+
padding-inline: var(--ghost-control-size-md-padding-inline);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* A pseudo-element is not allowed inside :where(), so it follows the list. */
|
|
86
|
+
:where(
|
|
87
|
+
.ghost-theme .ghost-command-palette-input,
|
|
88
|
+
.ghost-themed-scope .ghost-command-palette-input,
|
|
89
|
+
.ghost-command-palette-content[data-themed] .ghost-command-palette-input
|
|
90
|
+
)::placeholder {
|
|
91
|
+
color: var(--ghost-text-muted);
|
|
92
|
+
opacity: 1;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Focus stays in the input while the palette is open, so it keeps the ring. */
|
|
96
|
+
:where(
|
|
97
|
+
.ghost-theme .ghost-command-palette-input:focus-visible,
|
|
98
|
+
.ghost-themed-scope .ghost-command-palette-input:focus-visible,
|
|
99
|
+
.ghost-command-palette-content[data-themed]
|
|
100
|
+
.ghost-command-palette-input:focus-visible
|
|
101
|
+
) {
|
|
102
|
+
box-shadow: 0 0 0 var(--ghost-focus-ring-offset)
|
|
103
|
+
var(--ghost-focus-ring-contrast);
|
|
104
|
+
outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
|
|
105
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:where(
|
|
109
|
+
.ghost-theme .ghost-command-palette-list,
|
|
110
|
+
.ghost-themed-scope .ghost-command-palette-list,
|
|
111
|
+
.ghost-command-palette-content[data-themed] .ghost-command-palette-list
|
|
112
|
+
) {
|
|
113
|
+
box-sizing: border-box;
|
|
114
|
+
max-block-size: var(
|
|
115
|
+
--ghost-command-palette-list-max-size,
|
|
116
|
+
min(50dvh, 22rem)
|
|
117
|
+
);
|
|
118
|
+
overflow: auto;
|
|
119
|
+
overscroll-behavior: contain;
|
|
120
|
+
padding: var(--ghost-space-inset-2xs);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:where(
|
|
124
|
+
.ghost-theme .ghost-command-palette-item,
|
|
125
|
+
.ghost-themed-scope .ghost-command-palette-item,
|
|
126
|
+
.ghost-command-palette-content[data-themed] .ghost-command-palette-item
|
|
127
|
+
) {
|
|
128
|
+
align-items: center;
|
|
129
|
+
border-radius: var(--ghost-radius-sm);
|
|
130
|
+
box-sizing: border-box;
|
|
131
|
+
cursor: default;
|
|
132
|
+
display: flex;
|
|
133
|
+
gap: var(--ghost-space-gap-sm);
|
|
134
|
+
font-size: var(--ghost-control-size-sm-font);
|
|
135
|
+
min-block-size: var(--ghost-control-size-sm-min);
|
|
136
|
+
padding-block: var(--ghost-control-size-sm-padding-block);
|
|
137
|
+
padding-inline: var(--ghost-space-inset-sm);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/*
|
|
141
|
+
* Focus stays in the input, so the highlighted item is the only sign of
|
|
142
|
+
* where Enter lands. Like the themed combobox, it pairs the muted fill
|
|
143
|
+
* with an inset token ring, which stays inside the list's scroll clip.
|
|
144
|
+
*/
|
|
145
|
+
:where(
|
|
146
|
+
.ghost-theme .ghost-command-palette-item[data-highlighted],
|
|
147
|
+
.ghost-themed-scope .ghost-command-palette-item[data-highlighted],
|
|
148
|
+
.ghost-command-palette-content[data-themed]
|
|
149
|
+
.ghost-command-palette-item[data-highlighted]
|
|
150
|
+
) {
|
|
151
|
+
background-color: var(--ghost-surface-muted-bg);
|
|
152
|
+
outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
|
|
153
|
+
outline-offset: calc(var(--ghost-focus-ring-offset) * -1);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
:where(
|
|
157
|
+
.ghost-theme .ghost-command-palette-item[data-state='disabled'],
|
|
158
|
+
.ghost-themed-scope .ghost-command-palette-item[data-state='disabled'],
|
|
159
|
+
.ghost-command-palette-content[data-themed]
|
|
160
|
+
.ghost-command-palette-item[data-state='disabled']
|
|
161
|
+
) {
|
|
162
|
+
color: var(--ghost-text-muted);
|
|
163
|
+
cursor: not-allowed;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
:where(
|
|
167
|
+
.ghost-theme .ghost-command-palette-label,
|
|
168
|
+
.ghost-themed-scope .ghost-command-palette-label,
|
|
169
|
+
.ghost-command-palette-content[data-themed] .ghost-command-palette-label,
|
|
170
|
+
.ghost-theme .ghost-command-palette-empty,
|
|
171
|
+
.ghost-themed-scope .ghost-command-palette-empty,
|
|
172
|
+
.ghost-command-palette-content[data-themed] .ghost-command-palette-empty
|
|
173
|
+
) {
|
|
174
|
+
color: var(--ghost-text-muted);
|
|
175
|
+
font-size: var(--ghost-type-size-sm);
|
|
176
|
+
padding-block: var(--ghost-space-inset-xs);
|
|
177
|
+
padding-inline: var(--ghost-space-inset-sm);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
:where(
|
|
181
|
+
.ghost-theme .ghost-command-palette-separator,
|
|
182
|
+
.ghost-themed-scope .ghost-command-palette-separator,
|
|
183
|
+
.ghost-command-palette-content[data-themed] .ghost-command-palette-separator
|
|
184
|
+
) {
|
|
185
|
+
background-color: var(--ghost-border-default);
|
|
186
|
+
block-size: var(--ghost-border-hairline-width);
|
|
187
|
+
margin-block: var(--ghost-space-gap-xs);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
:where(
|
|
191
|
+
.ghost-theme .ghost-command-palette-content[data-state='open'],
|
|
192
|
+
.ghost-themed-scope .ghost-command-palette-content[data-state='open'],
|
|
193
|
+
.ghost-command-palette-content[data-themed][data-state='open']
|
|
194
|
+
) {
|
|
195
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
196
|
+
var(--ghost-motion-easing-standard);
|
|
197
|
+
|
|
198
|
+
@starting-style {
|
|
199
|
+
opacity: 0;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
203
|
+
transition:
|
|
204
|
+
opacity var(--ghost-motion-duration-fast)
|
|
205
|
+
var(--ghost-motion-enter-easing),
|
|
206
|
+
scale var(--ghost-motion-duration-fast) var(--ghost-motion-enter-easing);
|
|
207
|
+
|
|
208
|
+
@starting-style {
|
|
209
|
+
scale: 0.98;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@media (forced-colors: active) {
|
|
215
|
+
:where(
|
|
216
|
+
.ghost-theme .ghost-command-palette-content,
|
|
217
|
+
.ghost-themed-scope .ghost-command-palette-content,
|
|
218
|
+
.ghost-command-palette-content[data-themed]
|
|
219
|
+
) {
|
|
220
|
+
background-color: Canvas;
|
|
221
|
+
border-color: CanvasText;
|
|
222
|
+
box-shadow: none;
|
|
223
|
+
color: CanvasText;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
:where(
|
|
227
|
+
.ghost-theme .ghost-command-palette-item[data-state='disabled'],
|
|
228
|
+
.ghost-themed-scope .ghost-command-palette-item[data-state='disabled'],
|
|
229
|
+
.ghost-command-palette-content[data-themed]
|
|
230
|
+
.ghost-command-palette-item[data-state='disabled']
|
|
231
|
+
) {
|
|
232
|
+
color: GrayText;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
:where(
|
|
236
|
+
.ghost-theme .ghost-command-palette-separator,
|
|
237
|
+
.ghost-themed-scope .ghost-command-palette-separator,
|
|
238
|
+
.ghost-command-palette-content[data-themed]
|
|
239
|
+
.ghost-command-palette-separator
|
|
240
|
+
) {
|
|
241
|
+
background-color: CanvasText;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Themed GhostContextMenu surface and items. Visual values use semantic
|
|
3
|
+
* --ghost-* tokens with no component-specific literals.
|
|
4
|
+
*/
|
|
5
|
+
@layer ghostvue-theme {
|
|
6
|
+
:where(
|
|
7
|
+
.ghost-theme .ghost-context-menu-content,
|
|
8
|
+
.ghost-themed-scope .ghost-context-menu-content,
|
|
9
|
+
.ghost-context-menu-content[data-themed]
|
|
10
|
+
) {
|
|
11
|
+
background-color: var(--ghost-elevation-3-bg);
|
|
12
|
+
border: var(--ghost-border-hairline-width) solid
|
|
13
|
+
var(--ghost-elevation-3-border);
|
|
14
|
+
border-radius: var(--ghost-radius-lg);
|
|
15
|
+
box-shadow:
|
|
16
|
+
var(--ghost-elevation-3-shadow), var(--ghost-elevation-3-highlight);
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
color: var(--ghost-surface-fg);
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
font-family: var(--ghost-type-family-sans);
|
|
22
|
+
font-feature-settings: var(--ghost-type-feature-default);
|
|
23
|
+
gap: var(--ghost-space-gap-xs);
|
|
24
|
+
min-inline-size: max-content;
|
|
25
|
+
padding: var(--ghost-space-inset-2xs);
|
|
26
|
+
z-index: 50;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:where(
|
|
30
|
+
.ghost-theme .ghost-context-menu-content [data-part='label'],
|
|
31
|
+
.ghost-themed-scope .ghost-context-menu-content [data-part='label'],
|
|
32
|
+
.ghost-context-menu-content[data-themed] [data-part='label']
|
|
33
|
+
) {
|
|
34
|
+
color: var(--ghost-text-muted);
|
|
35
|
+
font-size: var(--ghost-type-size-sm);
|
|
36
|
+
font-weight: var(--ghost-type-weight-semibold);
|
|
37
|
+
padding: var(--ghost-space-inset-xs) var(--ghost-space-inset-sm);
|
|
38
|
+
user-select: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where(
|
|
42
|
+
.ghost-theme .ghost-context-menu-content [data-part='item'],
|
|
43
|
+
.ghost-themed-scope .ghost-context-menu-content [data-part='item'],
|
|
44
|
+
.ghost-context-menu-content[data-themed] [data-part='item'],
|
|
45
|
+
.ghost-theme .ghost-context-menu-content [data-part='checkbox-item'],
|
|
46
|
+
.ghost-themed-scope .ghost-context-menu-content [data-part='checkbox-item'],
|
|
47
|
+
.ghost-context-menu-content[data-themed] [data-part='checkbox-item'],
|
|
48
|
+
.ghost-theme .ghost-context-menu-content [data-part='radio-item'],
|
|
49
|
+
.ghost-themed-scope .ghost-context-menu-content [data-part='radio-item'],
|
|
50
|
+
.ghost-context-menu-content[data-themed] [data-part='radio-item']
|
|
51
|
+
) {
|
|
52
|
+
align-items: center;
|
|
53
|
+
border: var(--ghost-border-hairline-width) solid transparent;
|
|
54
|
+
border-radius: var(--ghost-radius-sm);
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
color: var(--ghost-surface-fg);
|
|
57
|
+
cursor: default;
|
|
58
|
+
display: flex;
|
|
59
|
+
font: inherit;
|
|
60
|
+
font-size: var(--ghost-control-size-sm-font);
|
|
61
|
+
gap: var(--ghost-space-gap-sm);
|
|
62
|
+
min-block-size: var(--ghost-control-size-sm-min);
|
|
63
|
+
outline: none;
|
|
64
|
+
padding-block: var(--ghost-control-size-sm-padding-block);
|
|
65
|
+
padding-inline: var(--ghost-space-inset-sm);
|
|
66
|
+
transition: background-color var(--ghost-motion-duration-fast)
|
|
67
|
+
var(--ghost-motion-easing-standard);
|
|
68
|
+
user-select: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:where(
|
|
72
|
+
.ghost-theme .ghost-context-menu-content [data-part='item']:hover,
|
|
73
|
+
.ghost-themed-scope .ghost-context-menu-content [data-part='item']:hover,
|
|
74
|
+
.ghost-context-menu-content[data-themed] [data-part='item']:hover,
|
|
75
|
+
.ghost-theme .ghost-context-menu-content [data-part='checkbox-item']:hover,
|
|
76
|
+
.ghost-themed-scope
|
|
77
|
+
.ghost-context-menu-content
|
|
78
|
+
[data-part='checkbox-item']:hover,
|
|
79
|
+
.ghost-context-menu-content[data-themed] [data-part='checkbox-item']:hover,
|
|
80
|
+
.ghost-theme .ghost-context-menu-content [data-part='radio-item']:hover,
|
|
81
|
+
.ghost-themed-scope
|
|
82
|
+
.ghost-context-menu-content
|
|
83
|
+
[data-part='radio-item']:hover,
|
|
84
|
+
.ghost-context-menu-content[data-themed] [data-part='radio-item']:hover
|
|
85
|
+
) {
|
|
86
|
+
background-color: var(--ghost-elevation-2-bg);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:where(
|
|
90
|
+
.ghost-theme .ghost-context-menu-content [data-part='item']:focus-visible,
|
|
91
|
+
.ghost-themed-scope
|
|
92
|
+
.ghost-context-menu-content
|
|
93
|
+
[data-part='item']:focus-visible,
|
|
94
|
+
.ghost-context-menu-content[data-themed] [data-part='item']:focus-visible,
|
|
95
|
+
.ghost-theme
|
|
96
|
+
.ghost-context-menu-content
|
|
97
|
+
[data-part='checkbox-item']:focus-visible,
|
|
98
|
+
.ghost-themed-scope
|
|
99
|
+
.ghost-context-menu-content
|
|
100
|
+
[data-part='checkbox-item']:focus-visible,
|
|
101
|
+
.ghost-context-menu-content[data-themed]
|
|
102
|
+
[data-part='checkbox-item']:focus-visible,
|
|
103
|
+
.ghost-theme
|
|
104
|
+
.ghost-context-menu-content
|
|
105
|
+
[data-part='radio-item']:focus-visible,
|
|
106
|
+
.ghost-themed-scope
|
|
107
|
+
.ghost-context-menu-content
|
|
108
|
+
[data-part='radio-item']:focus-visible,
|
|
109
|
+
.ghost-context-menu-content[data-themed]
|
|
110
|
+
[data-part='radio-item']:focus-visible
|
|
111
|
+
) {
|
|
112
|
+
outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
|
|
113
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:where(
|
|
117
|
+
.ghost-theme .ghost-context-menu-content [data-part='item'][data-disabled],
|
|
118
|
+
.ghost-themed-scope
|
|
119
|
+
.ghost-context-menu-content
|
|
120
|
+
[data-part='item'][data-disabled],
|
|
121
|
+
.ghost-context-menu-content[data-themed] [data-part='item'][data-disabled],
|
|
122
|
+
.ghost-theme
|
|
123
|
+
.ghost-context-menu-content
|
|
124
|
+
[data-part='checkbox-item'][data-disabled],
|
|
125
|
+
.ghost-themed-scope
|
|
126
|
+
.ghost-context-menu-content
|
|
127
|
+
[data-part='checkbox-item'][data-disabled],
|
|
128
|
+
.ghost-context-menu-content[data-themed]
|
|
129
|
+
[data-part='checkbox-item'][data-disabled],
|
|
130
|
+
.ghost-theme
|
|
131
|
+
.ghost-context-menu-content
|
|
132
|
+
[data-part='radio-item'][data-disabled],
|
|
133
|
+
.ghost-themed-scope
|
|
134
|
+
.ghost-context-menu-content
|
|
135
|
+
[data-part='radio-item'][data-disabled],
|
|
136
|
+
.ghost-context-menu-content[data-themed]
|
|
137
|
+
[data-part='radio-item'][data-disabled]
|
|
138
|
+
) {
|
|
139
|
+
color: var(--ghost-text-muted);
|
|
140
|
+
cursor: not-allowed;
|
|
141
|
+
opacity: var(--ghost-action-disabled-opacity);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:where(
|
|
145
|
+
.ghost-theme .ghost-context-menu-content [data-part='separator'],
|
|
146
|
+
.ghost-themed-scope .ghost-context-menu-content [data-part='separator'],
|
|
147
|
+
.ghost-context-menu-content[data-themed] [data-part='separator']
|
|
148
|
+
) {
|
|
149
|
+
align-self: stretch;
|
|
150
|
+
background-color: var(--ghost-border-default);
|
|
151
|
+
block-size: var(--ghost-border-hairline-width);
|
|
152
|
+
border: none;
|
|
153
|
+
margin-block: var(--ghost-space-gap-xs);
|
|
154
|
+
padding: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
:where(
|
|
158
|
+
.ghost-theme .ghost-context-menu-content[data-state='open'],
|
|
159
|
+
.ghost-themed-scope .ghost-context-menu-content[data-state='open'],
|
|
160
|
+
.ghost-context-menu-content[data-themed][data-state='open']
|
|
161
|
+
) {
|
|
162
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
163
|
+
var(--ghost-motion-easing-standard);
|
|
164
|
+
|
|
165
|
+
@starting-style {
|
|
166
|
+
opacity: 0;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
170
|
+
transition:
|
|
171
|
+
opacity var(--ghost-motion-duration-fast)
|
|
172
|
+
var(--ghost-motion-enter-easing),
|
|
173
|
+
scale var(--ghost-motion-duration-fast) var(--ghost-motion-enter-easing);
|
|
174
|
+
|
|
175
|
+
@starting-style {
|
|
176
|
+
scale: 0.98;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@media (forced-colors: active) {
|
|
182
|
+
:where(
|
|
183
|
+
.ghost-theme .ghost-context-menu-content,
|
|
184
|
+
.ghost-themed-scope .ghost-context-menu-content,
|
|
185
|
+
.ghost-context-menu-content[data-themed]
|
|
186
|
+
) {
|
|
187
|
+
background-color: Canvas;
|
|
188
|
+
border-color: CanvasText;
|
|
189
|
+
box-shadow: none;
|
|
190
|
+
color: CanvasText;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:where(
|
|
194
|
+
.ghost-theme .ghost-context-menu-content [data-part='item']:focus-visible,
|
|
195
|
+
.ghost-themed-scope
|
|
196
|
+
.ghost-context-menu-content
|
|
197
|
+
[data-part='item']:focus-visible,
|
|
198
|
+
.ghost-context-menu-content[data-themed] [data-part='item']:focus-visible,
|
|
199
|
+
.ghost-theme
|
|
200
|
+
.ghost-context-menu-content
|
|
201
|
+
[data-part='checkbox-item']:focus-visible,
|
|
202
|
+
.ghost-themed-scope
|
|
203
|
+
.ghost-context-menu-content
|
|
204
|
+
[data-part='checkbox-item']:focus-visible,
|
|
205
|
+
.ghost-context-menu-content[data-themed]
|
|
206
|
+
[data-part='checkbox-item']:focus-visible,
|
|
207
|
+
.ghost-theme
|
|
208
|
+
.ghost-context-menu-content
|
|
209
|
+
[data-part='radio-item']:focus-visible,
|
|
210
|
+
.ghost-themed-scope
|
|
211
|
+
.ghost-context-menu-content
|
|
212
|
+
[data-part='radio-item']:focus-visible,
|
|
213
|
+
.ghost-context-menu-content[data-themed]
|
|
214
|
+
[data-part='radio-item']:focus-visible
|
|
215
|
+
) {
|
|
216
|
+
outline-color: Highlight;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
:where(
|
|
220
|
+
.ghost-theme .ghost-context-menu-content [data-part='separator'],
|
|
221
|
+
.ghost-themed-scope .ghost-context-menu-content [data-part='separator'],
|
|
222
|
+
.ghost-context-menu-content[data-themed] [data-part='separator']
|
|
223
|
+
) {
|
|
224
|
+
background-color: CanvasText;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|