@ghostvue/themes 0.0.0-stage → 0.2.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 +1909 -0
- package/dist/components.d.ts +153 -0
- package/dist/components.js +148 -0
- package/dist/default.css +11271 -0
- package/dist/define.d.ts +75 -0
- package/dist/define.js +5952 -0
- package/dist/flagship-themes.d.ts +5 -0
- package/dist/flagship-themes.js +3 -0
- package/dist/generated/tokens.d.ts +5286 -0
- package/dist/generated/tokens.js +5283 -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-group.d.ts +50 -0
- package/dist/ghost-checkbox-group.js +56 -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 +53 -0
- package/dist/ghost-field.js +49 -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 +54 -0
- package/dist/ghost-select.js +51 -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-submenu-content.d.ts +22 -0
- package/dist/ghost-submenu-content.js +17 -0
- package/dist/ghost-submenu-trigger.d.ts +11 -0
- package/dist/ghost-submenu-trigger.js +11 -0
- package/dist/ghost-submenu.d.ts +1 -0
- package/dist/ghost-submenu.js +1 -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-tags-input.d.ts +75 -0
- package/dist/ghost-tags-input.js +54 -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 +153 -0
- package/dist/index.js +149 -0
- package/dist/manifest.json +6835 -0
- package/dist/mono.css +1874 -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-group.css +30 -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 +296 -0
- package/dist/recipes/context-menu.css +138 -0
- package/dist/recipes/data-table.css +462 -0
- package/dist/recipes/date-picker.css +292 -0
- package/dist/recipes/dialog.css +199 -0
- package/dist/recipes/drawer.css +436 -0
- package/dist/recipes/dropdown-menu.css +138 -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 +83 -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 +161 -0
- package/dist/recipes/number-input.css +222 -0
- package/dist/recipes/pagination.css +143 -0
- package/dist/recipes/popover.css +102 -0
- package/dist/recipes/progress.css +124 -0
- package/dist/recipes/radio-group.css +200 -0
- package/dist/recipes/scroll-area.css +72 -0
- package/dist/recipes/scroll-spy.css +72 -0
- package/dist/recipes/segmented-control.css +237 -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/tags-input.css +120 -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 +1656 -0
- package/dist/tokens/semantic.spacious.json +175 -0
- package/dist/tokens.css +1874 -0
- package/dist/tokens.json +6152 -0
- package/dist/vibrant.css +1874 -0
- package/package.json +75 -4
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Themed GhostFileUpload. Every rule is keyed on the `data-themed` marker the
|
|
3
|
+
* @ghostvue/themes wrappers add, never on the `.ghost-theme` ancestor: the
|
|
4
|
+
* headless family is documented as unstyled, and its examples render inside a
|
|
5
|
+
* `.ghost-theme` page, so a descendant scope would restyle them.
|
|
6
|
+
*
|
|
7
|
+
* Parts are selected by their own class plus `data-state`. Items have no
|
|
8
|
+
* wrapper: they are always direct `li` children of the list `ul`, so the list
|
|
9
|
+
* styles them with a child combinator. Nothing targets the internal picker,
|
|
10
|
+
* form mirror, or live region, and no rule reaches into nested parts.
|
|
11
|
+
*
|
|
12
|
+
* Buttons meet the 44px target through --ghost-control-touch-min. Focus uses
|
|
13
|
+
* an outline (not a box-shadow) so it survives forced colors. Color and
|
|
14
|
+
* border transitions run only when motion is allowed.
|
|
15
|
+
*/
|
|
16
|
+
@layer ghostvue-theme {
|
|
17
|
+
:where(.ghost-file-upload[data-themed]) {
|
|
18
|
+
color: var(--ghost-surface-fg);
|
|
19
|
+
display: grid;
|
|
20
|
+
font-family: var(--ghost-type-family-sans);
|
|
21
|
+
font-size: var(--ghost-type-size-sm);
|
|
22
|
+
gap: var(--ghost-space-gap-md);
|
|
23
|
+
line-height: var(--ghost-type-line-normal);
|
|
24
|
+
min-inline-size: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Dropzone: idle, hover, dragging, invalid, disabled. */
|
|
28
|
+
:where(.ghost-file-upload-dropzone[data-themed]) {
|
|
29
|
+
--_ghost-file-upload-dropzone-bg: var(--ghost-surface-subtle-bg);
|
|
30
|
+
--_ghost-file-upload-dropzone-border: var(--ghost-border-strong);
|
|
31
|
+
--_ghost-file-upload-dropzone-fg: var(--ghost-text-muted);
|
|
32
|
+
|
|
33
|
+
align-items: center;
|
|
34
|
+
background-color: var(--_ghost-file-upload-dropzone-bg);
|
|
35
|
+
border: var(--ghost-border-hairline-width) dashed
|
|
36
|
+
var(--_ghost-file-upload-dropzone-border);
|
|
37
|
+
border-radius: var(--ghost-radius-lg);
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
color: var(--_ghost-file-upload-dropzone-fg);
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
gap: var(--ghost-space-gap-sm);
|
|
44
|
+
justify-content: center;
|
|
45
|
+
min-block-size: calc(var(--ghost-control-touch-min) * 3);
|
|
46
|
+
padding: var(--ghost-space-inset-lg);
|
|
47
|
+
text-align: center;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:where(
|
|
51
|
+
.ghost-file-upload-dropzone[data-themed]:not([data-state]):hover,
|
|
52
|
+
.ghost-file-upload-dropzone[data-themed][data-state='invalid']:hover
|
|
53
|
+
) {
|
|
54
|
+
--_ghost-file-upload-dropzone-bg: var(--ghost-surface-muted-bg);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:where(.ghost-file-upload-dropzone[data-themed][data-state='dragging']) {
|
|
58
|
+
--_ghost-file-upload-dropzone-bg: var(--ghost-surface-muted-bg);
|
|
59
|
+
--_ghost-file-upload-dropzone-border: var(--ghost-border-primary);
|
|
60
|
+
--_ghost-file-upload-dropzone-fg: var(--ghost-text-default);
|
|
61
|
+
|
|
62
|
+
border-style: solid;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* A thicker border keeps invalid distinct without color (and in forced colors). */
|
|
66
|
+
:where(.ghost-file-upload-dropzone[data-themed][data-state='invalid']) {
|
|
67
|
+
--_ghost-file-upload-dropzone-border: var(--ghost-border-danger);
|
|
68
|
+
|
|
69
|
+
border-width: calc(var(--ghost-border-hairline-width) * 2);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:where(.ghost-file-upload-dropzone[data-themed][data-state='disabled']) {
|
|
73
|
+
cursor: not-allowed;
|
|
74
|
+
opacity: var(--ghost-action-disabled-opacity);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Trigger: neutral action button. */
|
|
78
|
+
:where(.ghost-file-upload-trigger[data-themed]) {
|
|
79
|
+
--_ghost-file-upload-trigger-bg: var(--ghost-action-neutral-bg);
|
|
80
|
+
--_ghost-file-upload-trigger-border: var(--ghost-action-neutral-border);
|
|
81
|
+
--_ghost-file-upload-trigger-fg: var(--ghost-action-neutral-fg);
|
|
82
|
+
|
|
83
|
+
align-items: center;
|
|
84
|
+
appearance: none;
|
|
85
|
+
background-color: var(--_ghost-file-upload-trigger-bg);
|
|
86
|
+
border: var(--ghost-border-hairline-width) solid
|
|
87
|
+
var(--_ghost-file-upload-trigger-border);
|
|
88
|
+
border-radius: var(--ghost-action-radius);
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
color: var(--_ghost-file-upload-trigger-fg);
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
display: inline-flex;
|
|
93
|
+
font-family: var(--ghost-type-family-sans);
|
|
94
|
+
font-size: var(--ghost-control-size-md-font);
|
|
95
|
+
font-weight: var(--ghost-type-weight-medium);
|
|
96
|
+
gap: var(--ghost-space-gap-xs);
|
|
97
|
+
justify-content: center;
|
|
98
|
+
line-height: var(--ghost-type-line-normal);
|
|
99
|
+
margin: 0;
|
|
100
|
+
min-block-size: var(--ghost-control-touch-min);
|
|
101
|
+
min-inline-size: var(--ghost-control-touch-min);
|
|
102
|
+
padding-block: var(--ghost-control-size-md-padding-block);
|
|
103
|
+
padding-inline: var(--ghost-control-size-md-padding-inline);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:where(.ghost-file-upload-trigger[data-themed]:hover:not(:disabled)) {
|
|
107
|
+
--_ghost-file-upload-trigger-bg: var(--ghost-action-neutral-bg-hover);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:where(.ghost-file-upload-trigger[data-themed]:active:not(:disabled)) {
|
|
111
|
+
--_ghost-file-upload-trigger-bg: var(--ghost-action-neutral-bg-active);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:where(.ghost-file-upload-trigger[data-themed][data-state='invalid']) {
|
|
115
|
+
--_ghost-file-upload-trigger-border: var(--ghost-border-danger);
|
|
116
|
+
|
|
117
|
+
border-width: calc(var(--ghost-border-hairline-width) * 2);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:where(
|
|
121
|
+
.ghost-file-upload-trigger[data-themed]:disabled,
|
|
122
|
+
.ghost-file-upload-trigger[data-themed][data-state='disabled']
|
|
123
|
+
) {
|
|
124
|
+
--_ghost-file-upload-trigger-bg: var(--ghost-action-disabled-bg);
|
|
125
|
+
--_ghost-file-upload-trigger-border: var(--ghost-action-disabled-border);
|
|
126
|
+
--_ghost-file-upload-trigger-fg: var(--ghost-action-disabled-fg);
|
|
127
|
+
|
|
128
|
+
cursor: not-allowed;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* List and items. */
|
|
132
|
+
:where(.ghost-file-upload-list[data-themed]) {
|
|
133
|
+
display: grid;
|
|
134
|
+
gap: var(--ghost-space-gap-xs);
|
|
135
|
+
list-style: none;
|
|
136
|
+
margin: 0;
|
|
137
|
+
padding: 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
:where(.ghost-file-upload-list[data-themed] > [data-part='item']) {
|
|
141
|
+
align-items: center;
|
|
142
|
+
background-color: var(--ghost-surface-bg);
|
|
143
|
+
border: var(--ghost-border-hairline-width) solid var(--ghost-border-default);
|
|
144
|
+
border-radius: var(--ghost-radius-md);
|
|
145
|
+
box-sizing: border-box;
|
|
146
|
+
color: var(--ghost-text-default);
|
|
147
|
+
display: flex;
|
|
148
|
+
gap: var(--ghost-space-gap-sm);
|
|
149
|
+
margin: 0;
|
|
150
|
+
min-inline-size: 0;
|
|
151
|
+
overflow-wrap: anywhere;
|
|
152
|
+
padding-block: var(--ghost-space-inset-xs);
|
|
153
|
+
padding-inline: var(--ghost-space-inset-sm) var(--ghost-space-inset-xs);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* Remove button: quiet action pushed to the item's inline end. */
|
|
157
|
+
:where(.ghost-file-upload-item-remove[data-themed]) {
|
|
158
|
+
align-items: center;
|
|
159
|
+
appearance: none;
|
|
160
|
+
background-color: transparent;
|
|
161
|
+
border: var(--ghost-border-hairline-width) solid transparent;
|
|
162
|
+
border-radius: var(--ghost-action-radius);
|
|
163
|
+
box-sizing: border-box;
|
|
164
|
+
color: var(--ghost-text-muted);
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
display: inline-flex;
|
|
167
|
+
flex: none;
|
|
168
|
+
font-family: var(--ghost-type-family-sans);
|
|
169
|
+
font-size: var(--ghost-control-size-sm-font);
|
|
170
|
+
font-weight: var(--ghost-type-weight-medium);
|
|
171
|
+
justify-content: center;
|
|
172
|
+
margin: 0;
|
|
173
|
+
margin-inline-start: auto;
|
|
174
|
+
min-block-size: var(--ghost-control-touch-min);
|
|
175
|
+
min-inline-size: var(--ghost-control-touch-min);
|
|
176
|
+
padding-inline: var(--ghost-space-inset-sm);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
:where(.ghost-file-upload-item-remove[data-themed]:hover:not(:disabled)) {
|
|
180
|
+
background-color: var(--ghost-surface-muted-bg);
|
|
181
|
+
color: var(--ghost-text-default);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
:where(.ghost-file-upload-item-remove[data-themed]:disabled) {
|
|
185
|
+
color: var(--ghost-action-disabled-fg);
|
|
186
|
+
cursor: not-allowed;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* Visible focus on both keyboard stops. */
|
|
190
|
+
:where(
|
|
191
|
+
.ghost-file-upload-trigger[data-themed]:focus-visible,
|
|
192
|
+
.ghost-file-upload-item-remove[data-themed]:focus-visible
|
|
193
|
+
) {
|
|
194
|
+
outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
|
|
195
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
199
|
+
:where(
|
|
200
|
+
.ghost-file-upload-dropzone[data-themed],
|
|
201
|
+
.ghost-file-upload-trigger[data-themed],
|
|
202
|
+
.ghost-file-upload-item-remove[data-themed]
|
|
203
|
+
) {
|
|
204
|
+
transition-duration: var(--ghost-motion-duration-fast);
|
|
205
|
+
transition-property: background-color, border-color, color;
|
|
206
|
+
transition-timing-function: var(--ghost-motion-easing-standard);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/*
|
|
211
|
+
* Forced colors: system colors replace every token. Dragging keeps its solid
|
|
212
|
+
* border (shape, not only color) and uses Highlight; disabled parts use
|
|
213
|
+
* GrayText at full opacity so they stay legible.
|
|
214
|
+
*/
|
|
215
|
+
@media (forced-colors: active) {
|
|
216
|
+
:where(.ghost-file-upload-dropzone[data-themed]) {
|
|
217
|
+
background-color: Canvas;
|
|
218
|
+
border-color: CanvasText;
|
|
219
|
+
color: CanvasText;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
:where(.ghost-file-upload-dropzone[data-themed][data-state='dragging']) {
|
|
223
|
+
border-color: Highlight;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
:where(.ghost-file-upload-dropzone[data-themed][data-state='disabled']) {
|
|
227
|
+
border-color: GrayText;
|
|
228
|
+
color: GrayText;
|
|
229
|
+
opacity: 1;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
:where(
|
|
233
|
+
.ghost-file-upload-trigger[data-themed],
|
|
234
|
+
.ghost-file-upload-item-remove[data-themed]
|
|
235
|
+
) {
|
|
236
|
+
background-color: ButtonFace;
|
|
237
|
+
border-color: ButtonText;
|
|
238
|
+
color: ButtonText;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
:where(
|
|
242
|
+
.ghost-file-upload-trigger[data-themed]:disabled,
|
|
243
|
+
.ghost-file-upload-item-remove[data-themed]:disabled
|
|
244
|
+
) {
|
|
245
|
+
border-color: GrayText;
|
|
246
|
+
color: GrayText;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
:where(
|
|
250
|
+
.ghost-file-upload-trigger[data-themed]:focus-visible,
|
|
251
|
+
.ghost-file-upload-item-remove[data-themed]:focus-visible
|
|
252
|
+
) {
|
|
253
|
+
outline-color: Highlight;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
:where(.ghost-file-upload-list[data-themed] > [data-part='item']) {
|
|
257
|
+
border-color: CanvasText;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Themed GhostHoverCard surface. Visual values come from semantic --ghost-*
|
|
3
|
+
* tokens with no component-specific tokens or hard-coded colors/lengths.
|
|
4
|
+
*/
|
|
5
|
+
@layer ghostvue-theme {
|
|
6
|
+
:where(
|
|
7
|
+
.ghost-theme .ghost-hover-card-content,
|
|
8
|
+
.ghost-themed-scope .ghost-hover-card-content,
|
|
9
|
+
.ghost-hover-card-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
|
+
font-family: var(--ghost-type-family-sans);
|
|
20
|
+
font-feature-settings: var(--ghost-type-feature-default);
|
|
21
|
+
font-size: var(--ghost-type-size-sm);
|
|
22
|
+
line-height: var(--ghost-type-line-snug);
|
|
23
|
+
padding: var(--ghost-space-inset-md);
|
|
24
|
+
pointer-events: auto;
|
|
25
|
+
z-index: 50;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where(
|
|
29
|
+
.ghost-theme .ghost-hover-card-content[data-state='open'],
|
|
30
|
+
.ghost-themed-scope .ghost-hover-card-content[data-state='open'],
|
|
31
|
+
.ghost-hover-card-content[data-themed][data-state='open']
|
|
32
|
+
) {
|
|
33
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
34
|
+
var(--ghost-motion-easing-standard);
|
|
35
|
+
|
|
36
|
+
@starting-style {
|
|
37
|
+
opacity: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
41
|
+
transition:
|
|
42
|
+
opacity var(--ghost-motion-duration-fast)
|
|
43
|
+
var(--ghost-motion-enter-easing),
|
|
44
|
+
scale var(--ghost-motion-duration-fast) var(--ghost-motion-enter-easing);
|
|
45
|
+
|
|
46
|
+
@starting-style {
|
|
47
|
+
scale: 0.98;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Exit: reduced motion keeps scale at 1 and only fades. */
|
|
53
|
+
:where(
|
|
54
|
+
.ghost-theme .ghost-hover-card-content[data-state='closed'],
|
|
55
|
+
.ghost-themed-scope .ghost-hover-card-content[data-state='closed'],
|
|
56
|
+
.ghost-hover-card-content[data-themed][data-state='closed']
|
|
57
|
+
) {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
60
|
+
var(--ghost-motion-easing-standard);
|
|
61
|
+
|
|
62
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
63
|
+
scale: 0.98;
|
|
64
|
+
transition:
|
|
65
|
+
opacity var(--ghost-motion-exit-duration)
|
|
66
|
+
var(--ghost-motion-exit-easing),
|
|
67
|
+
scale var(--ghost-motion-exit-duration) var(--ghost-motion-exit-easing);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@media (forced-colors: active) {
|
|
72
|
+
:where(
|
|
73
|
+
.ghost-theme .ghost-hover-card-content,
|
|
74
|
+
.ghost-themed-scope .ghost-hover-card-content,
|
|
75
|
+
.ghost-hover-card-content[data-themed]
|
|
76
|
+
) {
|
|
77
|
+
background-color: Canvas;
|
|
78
|
+
border-color: CanvasText;
|
|
79
|
+
box-shadow: none;
|
|
80
|
+
color: CanvasText;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Themed GhostInlineAlert. Visual values come from semantic --ghost-* tokens.
|
|
3
|
+
* Private --_ghost-inline-alert-* properties are per-instance wiring, not a
|
|
4
|
+
* public API. Defaults are soft / neutral (omitted data-* hooks). Inline layout
|
|
5
|
+
* keeps contextual feedback compact beside table and form regions.
|
|
6
|
+
*/
|
|
7
|
+
@layer ghostvue-theme {
|
|
8
|
+
:where(
|
|
9
|
+
.ghost-theme .ghost-inline-alert,
|
|
10
|
+
.ghost-themed-scope .ghost-inline-alert,
|
|
11
|
+
.ghost-inline-alert[data-themed]
|
|
12
|
+
) {
|
|
13
|
+
--_ghost-inline-alert-tone-color: var(--ghost-action-neutral-bg);
|
|
14
|
+
--_ghost-inline-alert-tone-contrast: var(--ghost-action-neutral-fg);
|
|
15
|
+
--_ghost-inline-alert-tone-border: var(--ghost-action-neutral-border);
|
|
16
|
+
--_ghost-inline-alert-fill: none;
|
|
17
|
+
--_ghost-inline-alert-background: color-mix(
|
|
18
|
+
in oklch,
|
|
19
|
+
var(--_ghost-inline-alert-tone-color)
|
|
20
|
+
calc(100% * var(--ghost-state-mix-soft)),
|
|
21
|
+
var(--ghost-surface-bg)
|
|
22
|
+
);
|
|
23
|
+
--_ghost-inline-alert-border-color: color-mix(
|
|
24
|
+
in oklch,
|
|
25
|
+
var(--_ghost-inline-alert-tone-color)
|
|
26
|
+
calc(100% * var(--ghost-state-mix-border)),
|
|
27
|
+
var(--ghost-surface-bg)
|
|
28
|
+
);
|
|
29
|
+
--_ghost-inline-alert-color: var(--ghost-surface-fg);
|
|
30
|
+
--_ghost-inline-alert-title-color: var(--ghost-surface-fg);
|
|
31
|
+
--_ghost-inline-alert-message-color: var(--ghost-text-muted);
|
|
32
|
+
|
|
33
|
+
background-color: var(--_ghost-inline-alert-background);
|
|
34
|
+
background-image: var(--_ghost-inline-alert-fill);
|
|
35
|
+
border: var(--ghost-border-hairline-width) solid
|
|
36
|
+
var(--_ghost-inline-alert-border-color);
|
|
37
|
+
border-radius: var(--ghost-radius-md);
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
color: var(--_ghost-inline-alert-color);
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
gap: var(--ghost-space-gap-sm);
|
|
43
|
+
max-inline-size: 100%;
|
|
44
|
+
padding: var(--ghost-space-inset-sm);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:where(
|
|
48
|
+
.ghost-theme .ghost-inline-alert > [data-part='title'],
|
|
49
|
+
.ghost-themed-scope .ghost-inline-alert > [data-part='title'],
|
|
50
|
+
.ghost-inline-alert[data-themed] > [data-part='title']
|
|
51
|
+
) {
|
|
52
|
+
color: var(--_ghost-inline-alert-title-color);
|
|
53
|
+
font-size: var(--ghost-type-size-sm);
|
|
54
|
+
font-weight: var(--ghost-type-weight-semibold);
|
|
55
|
+
line-height: var(--ghost-type-line-snug);
|
|
56
|
+
margin: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:where(
|
|
60
|
+
.ghost-theme .ghost-inline-alert > [data-part='message'],
|
|
61
|
+
.ghost-themed-scope .ghost-inline-alert > [data-part='message'],
|
|
62
|
+
.ghost-inline-alert[data-themed] > [data-part='message']
|
|
63
|
+
) {
|
|
64
|
+
color: var(--_ghost-inline-alert-message-color);
|
|
65
|
+
font-family: var(--ghost-type-family-sans);
|
|
66
|
+
font-size: var(--ghost-type-size-sm);
|
|
67
|
+
line-height: var(--ghost-type-line-snug);
|
|
68
|
+
margin: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:where(
|
|
72
|
+
.ghost-theme .ghost-inline-alert > [data-part='actions'],
|
|
73
|
+
.ghost-themed-scope .ghost-inline-alert > [data-part='actions'],
|
|
74
|
+
.ghost-inline-alert[data-themed] > [data-part='actions']
|
|
75
|
+
) {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-wrap: wrap;
|
|
78
|
+
gap: var(--ghost-space-gap-sm);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:where(
|
|
82
|
+
.ghost-theme .ghost-inline-alert[data-tone='accent'],
|
|
83
|
+
.ghost-themed-scope .ghost-inline-alert[data-tone='accent'],
|
|
84
|
+
.ghost-inline-alert[data-themed][data-tone='accent']
|
|
85
|
+
) {
|
|
86
|
+
--_ghost-inline-alert-tone-color: var(--ghost-action-primary-bg);
|
|
87
|
+
--_ghost-inline-alert-tone-contrast: var(--ghost-action-primary-fg);
|
|
88
|
+
--_ghost-inline-alert-tone-border: var(--ghost-action-primary-border);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:where(
|
|
92
|
+
.ghost-theme .ghost-inline-alert[data-tone='danger'],
|
|
93
|
+
.ghost-themed-scope .ghost-inline-alert[data-tone='danger'],
|
|
94
|
+
.ghost-inline-alert[data-themed][data-tone='danger']
|
|
95
|
+
) {
|
|
96
|
+
--_ghost-inline-alert-tone-color: var(--ghost-action-danger-bg);
|
|
97
|
+
--_ghost-inline-alert-tone-contrast: var(--ghost-action-danger-fg);
|
|
98
|
+
--_ghost-inline-alert-tone-border: var(--ghost-action-danger-border);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:where(
|
|
102
|
+
.ghost-theme .ghost-inline-alert[data-variant='solid'],
|
|
103
|
+
.ghost-themed-scope .ghost-inline-alert[data-variant='solid'],
|
|
104
|
+
.ghost-inline-alert[data-themed][data-variant='solid']
|
|
105
|
+
) {
|
|
106
|
+
--_ghost-inline-alert-background: var(--_ghost-inline-alert-tone-color);
|
|
107
|
+
--_ghost-inline-alert-border-color: var(--_ghost-inline-alert-tone-border);
|
|
108
|
+
--_ghost-inline-alert-color: var(--_ghost-inline-alert-tone-contrast);
|
|
109
|
+
--_ghost-inline-alert-title-color: var(--_ghost-inline-alert-tone-contrast);
|
|
110
|
+
--_ghost-inline-alert-message-color: var(
|
|
111
|
+
--_ghost-inline-alert-tone-contrast
|
|
112
|
+
);
|
|
113
|
+
--_ghost-inline-alert-fill: var(--ghost-gradient-action-neutral);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:where(
|
|
117
|
+
.ghost-theme .ghost-inline-alert[data-tone='accent'][data-variant='solid'],
|
|
118
|
+
.ghost-themed-scope
|
|
119
|
+
.ghost-inline-alert[data-tone='accent'][data-variant='solid'],
|
|
120
|
+
.ghost-inline-alert[data-themed][data-tone='accent'][data-variant='solid']
|
|
121
|
+
) {
|
|
122
|
+
--_ghost-inline-alert-fill: var(--ghost-gradient-action-primary);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
:where(
|
|
126
|
+
.ghost-theme .ghost-inline-alert[data-tone='danger'][data-variant='solid'],
|
|
127
|
+
.ghost-themed-scope
|
|
128
|
+
.ghost-inline-alert[data-tone='danger'][data-variant='solid'],
|
|
129
|
+
.ghost-inline-alert[data-themed][data-tone='danger'][data-variant='solid']
|
|
130
|
+
) {
|
|
131
|
+
--_ghost-inline-alert-fill: var(--ghost-gradient-action-danger);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:where(
|
|
135
|
+
.ghost-theme .ghost-inline-alert[data-variant='outline'],
|
|
136
|
+
.ghost-themed-scope .ghost-inline-alert[data-variant='outline'],
|
|
137
|
+
.ghost-inline-alert[data-themed][data-variant='outline']
|
|
138
|
+
) {
|
|
139
|
+
--_ghost-inline-alert-background: transparent;
|
|
140
|
+
--_ghost-inline-alert-border-color: var(--_ghost-inline-alert-tone-border);
|
|
141
|
+
--_ghost-inline-alert-color: var(--_ghost-inline-alert-tone-color);
|
|
142
|
+
--_ghost-inline-alert-fill: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:where(
|
|
146
|
+
.ghost-theme .ghost-inline-alert[data-variant='ghost'],
|
|
147
|
+
.ghost-themed-scope .ghost-inline-alert[data-variant='ghost'],
|
|
148
|
+
.ghost-inline-alert[data-themed][data-variant='ghost']
|
|
149
|
+
) {
|
|
150
|
+
--_ghost-inline-alert-background: transparent;
|
|
151
|
+
--_ghost-inline-alert-border-color: transparent;
|
|
152
|
+
--_ghost-inline-alert-color: var(--_ghost-inline-alert-tone-color);
|
|
153
|
+
--_ghost-inline-alert-fill: none;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@media (forced-colors: active) {
|
|
157
|
+
:where(
|
|
158
|
+
.ghost-theme .ghost-inline-alert,
|
|
159
|
+
.ghost-themed-scope .ghost-inline-alert,
|
|
160
|
+
.ghost-inline-alert[data-themed]
|
|
161
|
+
) {
|
|
162
|
+
--_ghost-inline-alert-fill: none;
|
|
163
|
+
--_ghost-inline-alert-title-color: CanvasText;
|
|
164
|
+
--_ghost-inline-alert-message-color: CanvasText;
|
|
165
|
+
|
|
166
|
+
background-color: Canvas;
|
|
167
|
+
background-image: none;
|
|
168
|
+
border-color: CanvasText;
|
|
169
|
+
color: CanvasText;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Themed GhostInput. Visual values come from semantic --ghost-* tokens. Private
|
|
3
|
+
* --_ghost-input-* properties are per-instance wiring, not a public API.
|
|
4
|
+
*/
|
|
5
|
+
@layer ghostvue-theme {
|
|
6
|
+
:where(.ghost-theme .ghost-input, .ghost-themed-scope .ghost-input) {
|
|
7
|
+
--_ghost-input-min-size: var(--ghost-control-size-md-min);
|
|
8
|
+
--_ghost-input-padding-block: var(--ghost-control-size-md-padding-block);
|
|
9
|
+
--_ghost-input-padding-inline: var(--ghost-control-size-md-padding-inline);
|
|
10
|
+
--_ghost-input-font-size: var(--ghost-control-size-md-font);
|
|
11
|
+
--_ghost-input-background: var(--ghost-surface-bg);
|
|
12
|
+
--_ghost-input-border-color: var(--ghost-border-default);
|
|
13
|
+
--_ghost-input-color: var(--ghost-text-default);
|
|
14
|
+
|
|
15
|
+
appearance: none;
|
|
16
|
+
background-color: var(--_ghost-input-background);
|
|
17
|
+
border: var(--ghost-border-hairline-width) solid
|
|
18
|
+
var(--_ghost-input-border-color);
|
|
19
|
+
border-radius: var(--ghost-action-radius);
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
color: var(--_ghost-input-color);
|
|
22
|
+
display: inline-block;
|
|
23
|
+
font-family: var(--ghost-type-family-sans);
|
|
24
|
+
font-feature-settings: var(--ghost-type-feature-default);
|
|
25
|
+
font-size: var(--_ghost-input-font-size);
|
|
26
|
+
font-weight: var(--ghost-type-weight-regular);
|
|
27
|
+
letter-spacing: var(--ghost-type-letter-normal);
|
|
28
|
+
line-height: var(--ghost-type-line-normal);
|
|
29
|
+
margin: 0;
|
|
30
|
+
max-inline-size: 100%;
|
|
31
|
+
min-block-size: var(--_ghost-input-min-size);
|
|
32
|
+
padding-block: var(--_ghost-input-padding-block);
|
|
33
|
+
padding-inline: var(--_ghost-input-padding-inline);
|
|
34
|
+
transition:
|
|
35
|
+
background-color var(--ghost-action-duration)
|
|
36
|
+
var(--ghost-motion-easing-standard),
|
|
37
|
+
border-color var(--ghost-action-duration)
|
|
38
|
+
var(--ghost-motion-easing-standard),
|
|
39
|
+
color var(--ghost-action-duration) var(--ghost-motion-easing-standard),
|
|
40
|
+
box-shadow var(--ghost-action-duration)
|
|
41
|
+
var(--ghost-motion-easing-standard);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:where(
|
|
45
|
+
.ghost-theme .ghost-input::placeholder,
|
|
46
|
+
.ghost-themed-scope .ghost-input::placeholder
|
|
47
|
+
) {
|
|
48
|
+
color: var(--ghost-text-muted);
|
|
49
|
+
opacity: 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where(
|
|
53
|
+
.ghost-theme .ghost-input[data-size='sm'],
|
|
54
|
+
.ghost-themed-scope .ghost-input[data-size='sm']
|
|
55
|
+
) {
|
|
56
|
+
--_ghost-input-min-size: var(--ghost-control-size-sm-min);
|
|
57
|
+
--_ghost-input-padding-block: var(--ghost-control-size-sm-padding-block);
|
|
58
|
+
--_ghost-input-padding-inline: var(--ghost-control-size-sm-padding-inline);
|
|
59
|
+
--_ghost-input-font-size: var(--ghost-control-size-sm-font);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:where(
|
|
63
|
+
.ghost-theme .ghost-input[data-size='lg'],
|
|
64
|
+
.ghost-themed-scope .ghost-input[data-size='lg']
|
|
65
|
+
) {
|
|
66
|
+
--_ghost-input-min-size: var(--ghost-control-size-lg-min);
|
|
67
|
+
--_ghost-input-padding-block: var(--ghost-control-size-lg-padding-block);
|
|
68
|
+
--_ghost-input-padding-inline: var(--ghost-control-size-lg-padding-inline);
|
|
69
|
+
--_ghost-input-font-size: var(--ghost-control-size-lg-font);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:where(
|
|
73
|
+
.ghost-theme .ghost-input:hover:not(:disabled):not([data-state='disabled']),
|
|
74
|
+
.ghost-themed-scope
|
|
75
|
+
.ghost-input:hover:not(:disabled):not([data-state='disabled'])
|
|
76
|
+
) {
|
|
77
|
+
--_ghost-input-border-color: var(--ghost-border-strong);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:where(
|
|
81
|
+
.ghost-theme
|
|
82
|
+
.ghost-input:is(:focus-visible, [data-visual-state='focus-visible']),
|
|
83
|
+
.ghost-themed-scope
|
|
84
|
+
.ghost-input:is(:focus-visible, [data-visual-state='focus-visible'])
|
|
85
|
+
) {
|
|
86
|
+
animation: ghost-input-focus-enter var(--ghost-focus-ring-duration)
|
|
87
|
+
var(--ghost-motion-easing-decelerate) both;
|
|
88
|
+
box-shadow: 0 0 0 var(--ghost-focus-ring-offset)
|
|
89
|
+
var(--ghost-focus-ring-contrast);
|
|
90
|
+
outline: var(--ghost-focus-ring-width) solid
|
|
91
|
+
var(--_ghost-input-focus-color, var(--ghost-focus-ring-color));
|
|
92
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:where(
|
|
96
|
+
.ghost-theme .ghost-input:is([readonly], [data-state='readonly']),
|
|
97
|
+
.ghost-themed-scope .ghost-input:is([readonly], [data-state='readonly'])
|
|
98
|
+
) {
|
|
99
|
+
--_ghost-input-background: var(--ghost-surface-muted-bg);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:where(
|
|
103
|
+
.ghost-theme .ghost-input:is(:disabled, [data-state='disabled']),
|
|
104
|
+
.ghost-themed-scope .ghost-input:is(:disabled, [data-state='disabled'])
|
|
105
|
+
) {
|
|
106
|
+
--_ghost-input-background: var(--ghost-action-disabled-bg);
|
|
107
|
+
--_ghost-input-border-color: var(--ghost-action-disabled-border);
|
|
108
|
+
--_ghost-input-color: var(--ghost-action-disabled-fg);
|
|
109
|
+
|
|
110
|
+
cursor: not-allowed;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
:where(
|
|
114
|
+
.ghost-theme
|
|
115
|
+
.ghost-input:is([aria-invalid='true'], [data-state='invalid']):not(
|
|
116
|
+
:disabled,
|
|
117
|
+
[data-state='disabled']
|
|
118
|
+
),
|
|
119
|
+
.ghost-themed-scope
|
|
120
|
+
.ghost-input:is([aria-invalid='true'], [data-state='invalid']):not(
|
|
121
|
+
:disabled,
|
|
122
|
+
[data-state='disabled']
|
|
123
|
+
)
|
|
124
|
+
) {
|
|
125
|
+
--_ghost-input-border-color: var(--ghost-border-danger);
|
|
126
|
+
--_ghost-input-focus-color: var(--ghost-border-danger);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:where(
|
|
130
|
+
.ghost-theme .ghost-input[data-block],
|
|
131
|
+
.ghost-themed-scope .ghost-input[data-block]
|
|
132
|
+
) {
|
|
133
|
+
display: block;
|
|
134
|
+
inline-size: 100%;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@media (forced-colors: active) {
|
|
138
|
+
:where(.ghost-theme .ghost-input, .ghost-themed-scope .ghost-input) {
|
|
139
|
+
background-color: Field;
|
|
140
|
+
border-color: FieldText;
|
|
141
|
+
color: FieldText;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:where(
|
|
145
|
+
.ghost-theme .ghost-input:is(:disabled, [data-state='disabled']),
|
|
146
|
+
.ghost-themed-scope .ghost-input:is(:disabled, [data-state='disabled'])
|
|
147
|
+
) {
|
|
148
|
+
border-color: GrayText;
|
|
149
|
+
color: GrayText;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:where(
|
|
153
|
+
.ghost-theme
|
|
154
|
+
.ghost-input:is(:focus-visible, [data-visual-state='focus-visible']),
|
|
155
|
+
.ghost-themed-scope
|
|
156
|
+
.ghost-input:is(:focus-visible, [data-visual-state='focus-visible'])
|
|
157
|
+
) {
|
|
158
|
+
animation: none;
|
|
159
|
+
box-shadow: none;
|
|
160
|
+
outline-color: Highlight;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@keyframes ghost-input-focus-enter {
|
|
165
|
+
from {
|
|
166
|
+
box-shadow: 0 0 0 0 var(--ghost-focus-ring-contrast);
|
|
167
|
+
outline-offset: 0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
to {
|
|
171
|
+
box-shadow: 0 0 0 var(--ghost-focus-ring-offset)
|
|
172
|
+
var(--ghost-focus-ring-contrast);
|
|
173
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|