@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,455 @@
|
|
|
1
|
+
/* Direct children keep nested tables out of the outer table's recipe. */
|
|
2
|
+
@layer ghostvue-theme {
|
|
3
|
+
:where(.ghost-data-table[data-themed], .ghost-theme .ghost-data-table) {
|
|
4
|
+
display: grid;
|
|
5
|
+
gap: var(--ghost-space-gap-md);
|
|
6
|
+
min-inline-size: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:where(
|
|
10
|
+
.ghost-data-table-table[data-themed],
|
|
11
|
+
.ghost-data-table-preset[data-themed]
|
|
12
|
+
) {
|
|
13
|
+
display: contents;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where(.ghost-data-table[data-themed][data-variant='card']) {
|
|
17
|
+
gap: 0;
|
|
18
|
+
background: var(--ghost-elevation-1-bg);
|
|
19
|
+
border: var(--ghost-border-hairline-width) solid
|
|
20
|
+
var(--ghost-elevation-1-border);
|
|
21
|
+
border-radius: var(--ghost-radius-lg);
|
|
22
|
+
box-shadow:
|
|
23
|
+
var(--ghost-elevation-1-shadow), var(--ghost-elevation-1-highlight);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where(
|
|
27
|
+
.ghost-data-table[data-themed],
|
|
28
|
+
.ghost-theme .ghost-data-table,
|
|
29
|
+
.ghost-data-table-table[data-themed],
|
|
30
|
+
.ghost-data-table-preset[data-themed]
|
|
31
|
+
) {
|
|
32
|
+
--_ghost-data-table-block: var(--ghost-space-inset-sm);
|
|
33
|
+
--_ghost-data-table-inline: var(--ghost-space-inset-md);
|
|
34
|
+
--_ghost-data-table-header-position: static;
|
|
35
|
+
--_ghost-data-table-header-bg: transparent;
|
|
36
|
+
--_ghost-data-table-header-shadow: none;
|
|
37
|
+
--_ghost-data-table-hover: var(--ghost-surface-subtle-bg);
|
|
38
|
+
--_ghost-data-table-selection-hover: var(--ghost-state-layer-hover);
|
|
39
|
+
|
|
40
|
+
:where(
|
|
41
|
+
& > .ghost-data-table-header,
|
|
42
|
+
& > .ghost-data-table-bulk-actions,
|
|
43
|
+
& > .ghost-data-table-footer
|
|
44
|
+
) {
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-wrap: wrap;
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: var(--ghost-space-gap-sm);
|
|
49
|
+
min-inline-size: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where(& > .ghost-data-table-header > [data-part='search'] > label) {
|
|
53
|
+
display: grid;
|
|
54
|
+
gap: var(--ghost-space-gap-xs);
|
|
55
|
+
color: var(--ghost-surface-fg);
|
|
56
|
+
font-size: var(--ghost-type-size-sm);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:where(& > .ghost-data-table-header > [data-part='toolbar-end']) {
|
|
60
|
+
margin-inline-start: auto;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:where(& > .ghost-data-table-bulk-actions) {
|
|
64
|
+
background: var(--ghost-surface-muted-bg);
|
|
65
|
+
color: var(--ghost-surface-fg);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* The themed GhostTable adds one scope wrapper around its table or scroll region. */
|
|
69
|
+
:where(
|
|
70
|
+
& > .ghost-table[data-ghost-data-table],
|
|
71
|
+
&
|
|
72
|
+
> :is(.ghost-table-scroll-container, .ghost-themed-scope)
|
|
73
|
+
> .ghost-table[data-ghost-data-table],
|
|
74
|
+
&
|
|
75
|
+
> .ghost-themed-scope
|
|
76
|
+
> .ghost-table-scroll-container
|
|
77
|
+
> .ghost-table[data-ghost-data-table]
|
|
78
|
+
) {
|
|
79
|
+
:where(
|
|
80
|
+
& > .ghost-table-head > .ghost-table-row > .ghost-table-header-cell
|
|
81
|
+
) {
|
|
82
|
+
position: var(--_ghost-data-table-header-position);
|
|
83
|
+
inset-block-start: 0;
|
|
84
|
+
z-index: 1;
|
|
85
|
+
background: var(--_ghost-data-table-header-bg);
|
|
86
|
+
box-shadow: var(--_ghost-data-table-header-shadow);
|
|
87
|
+
padding-block: var(--_ghost-data-table-block);
|
|
88
|
+
padding-inline: var(--_ghost-data-table-inline);
|
|
89
|
+
|
|
90
|
+
:where(& > button) {
|
|
91
|
+
appearance: none;
|
|
92
|
+
display: inline-flex;
|
|
93
|
+
gap: var(--ghost-space-gap-xs);
|
|
94
|
+
align-items: center;
|
|
95
|
+
justify-content: space-between;
|
|
96
|
+
inline-size: 100%;
|
|
97
|
+
min-block-size: var(--ghost-control-size-sm-min);
|
|
98
|
+
padding: var(--ghost-space-inset-xs);
|
|
99
|
+
border: 0;
|
|
100
|
+
border-radius: var(--ghost-radius-sm);
|
|
101
|
+
background: transparent;
|
|
102
|
+
color: inherit;
|
|
103
|
+
font: inherit;
|
|
104
|
+
text-align: start;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:where(& > button:hover:not(:disabled)) {
|
|
108
|
+
background: color-mix(
|
|
109
|
+
in oklch,
|
|
110
|
+
var(--ghost-surface-fg) calc(100% * var(--ghost-state-layer-hover)),
|
|
111
|
+
transparent
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
:where(& > button:focus-visible) {
|
|
116
|
+
outline: var(--ghost-focus-ring-width) solid
|
|
117
|
+
var(--ghost-focus-ring-color);
|
|
118
|
+
outline-offset: calc(-1 * var(--ghost-focus-ring-width));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:where(& > button:disabled) {
|
|
122
|
+
color: var(--ghost-action-disabled-fg);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* A CSS-painted mark adds no text and yields to consumer artwork. */
|
|
126
|
+
:where(
|
|
127
|
+
&
|
|
128
|
+
> button[data-part='sort-button']:not(
|
|
129
|
+
:has(> [data-part='sort-indicator'])
|
|
130
|
+
)
|
|
131
|
+
)::after {
|
|
132
|
+
content: '';
|
|
133
|
+
flex: none;
|
|
134
|
+
inline-size: var(--ghost-action-icon-size);
|
|
135
|
+
block-size: var(--ghost-action-icon-size);
|
|
136
|
+
background: currentColor;
|
|
137
|
+
color: var(--_ghost-data-table-mark, var(--ghost-text-subtle));
|
|
138
|
+
clip-path: var(
|
|
139
|
+
--_ghost-data-table-chevron,
|
|
140
|
+
polygon(
|
|
141
|
+
50% 4%,
|
|
142
|
+
77% 31%,
|
|
143
|
+
70% 38%,
|
|
144
|
+
50% 18%,
|
|
145
|
+
30% 38%,
|
|
146
|
+
23% 31%,
|
|
147
|
+
50% 4%,
|
|
148
|
+
50% 96%,
|
|
149
|
+
23% 69%,
|
|
150
|
+
30% 62%,
|
|
151
|
+
50% 82%,
|
|
152
|
+
70% 62%,
|
|
153
|
+
77% 69%,
|
|
154
|
+
50% 96%,
|
|
155
|
+
50% 4%
|
|
156
|
+
)
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
:where(&:not([data-sort]) > button:is(:hover, :focus-visible)) {
|
|
161
|
+
--_ghost-data-table-mark: var(--ghost-text-muted);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:where(&[data-sort]) {
|
|
165
|
+
--_ghost-data-table-mark: var(--ghost-text-primary);
|
|
166
|
+
color: var(--ghost-surface-fg);
|
|
167
|
+
border-block-end-color: var(--ghost-border-strong);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
:where(&[data-sort='asc']) {
|
|
171
|
+
--_ghost-data-table-chevron: polygon(
|
|
172
|
+
50% 22%,
|
|
173
|
+
88% 61%,
|
|
174
|
+
79% 70%,
|
|
175
|
+
50% 41%,
|
|
176
|
+
21% 70%,
|
|
177
|
+
12% 61%
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
:where(&[data-sort='desc']) {
|
|
182
|
+
--_ghost-data-table-chevron: polygon(
|
|
183
|
+
50% 78%,
|
|
184
|
+
12% 39%,
|
|
185
|
+
21% 30%,
|
|
186
|
+
50% 59%,
|
|
187
|
+
79% 30%,
|
|
188
|
+
88% 39%
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* A static header cue leaves body contrast and row geometry intact. */
|
|
194
|
+
:where(
|
|
195
|
+
&[aria-busy='true']
|
|
196
|
+
> .ghost-table-head
|
|
197
|
+
> .ghost-table-row
|
|
198
|
+
> .ghost-table-header-cell
|
|
199
|
+
) {
|
|
200
|
+
border-block-end-color: var(--ghost-border-primary);
|
|
201
|
+
box-shadow: inset 0 calc(-1 * var(--ghost-border-hairline-width))
|
|
202
|
+
var(--ghost-border-primary);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
:where(
|
|
206
|
+
&
|
|
207
|
+
> .ghost-table-body
|
|
208
|
+
> .ghost-table-row
|
|
209
|
+
> :is(.ghost-table-cell, .ghost-table-header-cell)
|
|
210
|
+
) {
|
|
211
|
+
padding-block: var(--_ghost-data-table-block);
|
|
212
|
+
padding-inline: var(--_ghost-data-table-inline);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
:where(
|
|
216
|
+
&
|
|
217
|
+
> .ghost-table-body
|
|
218
|
+
> .ghost-table-row:not(
|
|
219
|
+
[data-selected='true'],
|
|
220
|
+
[data-detail-row]
|
|
221
|
+
):hover
|
|
222
|
+
> :is(.ghost-table-cell, .ghost-table-header-cell)
|
|
223
|
+
) {
|
|
224
|
+
background: var(--_ghost-data-table-hover);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
:where(
|
|
228
|
+
&
|
|
229
|
+
> .ghost-table-body
|
|
230
|
+
> .ghost-table-row[data-detail-row='true']
|
|
231
|
+
> .ghost-table-cell
|
|
232
|
+
) {
|
|
233
|
+
background: var(--ghost-surface-subtle-bg);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
:where(
|
|
237
|
+
&
|
|
238
|
+
> .ghost-table-body
|
|
239
|
+
> .ghost-table-row
|
|
240
|
+
> :is(.ghost-table-cell, .ghost-table-header-cell):first-child
|
|
241
|
+
) {
|
|
242
|
+
border-inline-start: var(--ghost-focus-ring-width) solid transparent;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
:where(& > .ghost-table-body > .ghost-table-row[data-selected='true']) {
|
|
246
|
+
--_ghost-data-table-wash: var(--ghost-state-mix-soft);
|
|
247
|
+
|
|
248
|
+
:where(&:hover) {
|
|
249
|
+
--_ghost-data-table-wash: calc(
|
|
250
|
+
var(--ghost-state-mix-soft) +
|
|
251
|
+
var(--_ghost-data-table-selection-hover)
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
:where(& > :is(.ghost-table-cell, .ghost-table-header-cell)) {
|
|
256
|
+
background: color-mix(
|
|
257
|
+
in oklch,
|
|
258
|
+
var(--ghost-action-primary-bg)
|
|
259
|
+
calc(100% * var(--_ghost-data-table-wash)),
|
|
260
|
+
var(--ghost-surface-bg)
|
|
261
|
+
);
|
|
262
|
+
color: var(--ghost-surface-fg);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
:where(
|
|
266
|
+
& > :is(.ghost-table-cell, .ghost-table-header-cell):first-child
|
|
267
|
+
) {
|
|
268
|
+
border-inline-start-color: var(--ghost-border-primary);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
@media (forced-colors: active) {
|
|
272
|
+
:where(& > :is(.ghost-table-cell, .ghost-table-header-cell)) {
|
|
273
|
+
forced-color-adjust: none;
|
|
274
|
+
background: SelectedItem;
|
|
275
|
+
color: SelectedItemText;
|
|
276
|
+
border-block-end-color: CanvasText;
|
|
277
|
+
|
|
278
|
+
:where(
|
|
279
|
+
& :is(button, input, select, textarea, a[href], [tabindex])
|
|
280
|
+
) {
|
|
281
|
+
forced-color-adjust: auto;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
:where(
|
|
285
|
+
&
|
|
286
|
+
:is(
|
|
287
|
+
button,
|
|
288
|
+
input,
|
|
289
|
+
select,
|
|
290
|
+
textarea,
|
|
291
|
+
a[href],
|
|
292
|
+
[tabindex]
|
|
293
|
+
):focus-visible
|
|
294
|
+
) {
|
|
295
|
+
outline: var(--ghost-focus-ring-width) solid SelectedItemText;
|
|
296
|
+
outline-offset: var(--ghost-border-hairline-width);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
:where(
|
|
303
|
+
&
|
|
304
|
+
> .ghost-table-body
|
|
305
|
+
> .ghost-table-row
|
|
306
|
+
> .ghost-table-cell
|
|
307
|
+
> [data-part='expand-button']
|
|
308
|
+
) {
|
|
309
|
+
min-block-size: var(--ghost-control-size-sm-min);
|
|
310
|
+
min-inline-size: var(--ghost-control-size-sm-min);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
@media (pointer: coarse) {
|
|
314
|
+
:where(
|
|
315
|
+
&
|
|
316
|
+
> .ghost-table-head
|
|
317
|
+
> .ghost-table-row
|
|
318
|
+
> .ghost-table-header-cell
|
|
319
|
+
> :is(button, input[type='checkbox']),
|
|
320
|
+
&
|
|
321
|
+
> .ghost-table-body
|
|
322
|
+
> .ghost-table-row
|
|
323
|
+
> .ghost-table-cell
|
|
324
|
+
> :is([data-part='expand-button'], input[type='checkbox'])
|
|
325
|
+
) {
|
|
326
|
+
min-block-size: var(--ghost-control-touch-min);
|
|
327
|
+
min-inline-size: var(--ghost-control-touch-min);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
@media (forced-colors: active) {
|
|
332
|
+
:where(
|
|
333
|
+
&
|
|
334
|
+
> .ghost-table-head
|
|
335
|
+
> .ghost-table-row
|
|
336
|
+
> .ghost-table-header-cell
|
|
337
|
+
> button
|
|
338
|
+
) {
|
|
339
|
+
background: ButtonFace;
|
|
340
|
+
color: ButtonText;
|
|
341
|
+
--_ghost-data-table-mark: ButtonText;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
:where(
|
|
345
|
+
&
|
|
346
|
+
> .ghost-table-head
|
|
347
|
+
> .ghost-table-row
|
|
348
|
+
> .ghost-table-header-cell
|
|
349
|
+
> button:disabled
|
|
350
|
+
) {
|
|
351
|
+
color: GrayText;
|
|
352
|
+
--_ghost-data-table-mark: GrayText;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
:where(
|
|
356
|
+
&
|
|
357
|
+
> .ghost-table-head
|
|
358
|
+
> .ghost-table-row
|
|
359
|
+
> .ghost-table-header-cell
|
|
360
|
+
> button:focus-visible
|
|
361
|
+
) {
|
|
362
|
+
outline-color: Highlight;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
:where(
|
|
366
|
+
&
|
|
367
|
+
> .ghost-table-head
|
|
368
|
+
> .ghost-table-row
|
|
369
|
+
> .ghost-table-header-cell
|
|
370
|
+
> button[data-part='sort-button']
|
|
371
|
+
)::after {
|
|
372
|
+
forced-color-adjust: none;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
:where(
|
|
376
|
+
&[aria-busy='true']
|
|
377
|
+
> .ghost-table-head
|
|
378
|
+
> .ghost-table-row
|
|
379
|
+
> .ghost-table-header-cell
|
|
380
|
+
) {
|
|
381
|
+
border-block-end-color: Highlight;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
:where(
|
|
388
|
+
.ghost-data-table[data-themed][data-variant='card'],
|
|
389
|
+
.ghost-data-table[data-themed][data-variant='card']
|
|
390
|
+
> .ghost-data-table-preset[data-themed]
|
|
391
|
+
) {
|
|
392
|
+
:where(
|
|
393
|
+
& > .ghost-data-table-header,
|
|
394
|
+
& > .ghost-data-table-bulk-actions,
|
|
395
|
+
& > .ghost-data-table-footer
|
|
396
|
+
) {
|
|
397
|
+
padding-block: var(--ghost-space-inset-sm);
|
|
398
|
+
padding-inline: var(--ghost-space-inset-md);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
:where(& > .ghost-data-table-header, & > .ghost-data-table-bulk-actions) {
|
|
402
|
+
border-block-end: var(--ghost-border-hairline-width) solid
|
|
403
|
+
var(--ghost-border-default);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
:where(& > .ghost-data-table-footer) {
|
|
407
|
+
border-block-start: var(--ghost-border-hairline-width) solid
|
|
408
|
+
var(--ghost-border-default);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
:where(
|
|
413
|
+
.ghost-data-table[data-themed][data-size='sm'],
|
|
414
|
+
.ghost-data-table[data-themed][data-size='sm']
|
|
415
|
+
> :is(.ghost-data-table-table, .ghost-data-table-preset)[data-themed]
|
|
416
|
+
) {
|
|
417
|
+
--_ghost-data-table-block: var(--ghost-space-inset-xs);
|
|
418
|
+
--_ghost-data-table-inline: var(--ghost-space-inset-sm);
|
|
419
|
+
|
|
420
|
+
:where(
|
|
421
|
+
& > .ghost-data-table-header > [data-part='search'] > label > .ghost-input
|
|
422
|
+
) {
|
|
423
|
+
--_ghost-input-min-size: var(--ghost-control-size-sm-min);
|
|
424
|
+
--_ghost-input-padding-block: var(--ghost-control-size-sm-padding-block);
|
|
425
|
+
--_ghost-input-padding-inline: var(
|
|
426
|
+
--ghost-control-size-sm-padding-inline
|
|
427
|
+
);
|
|
428
|
+
--_ghost-input-font-size: var(--ghost-control-size-sm-font);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
:where(
|
|
433
|
+
.ghost-data-table[data-themed][data-sticky-header],
|
|
434
|
+
.ghost-data-table[data-themed][data-sticky-header]
|
|
435
|
+
> :is(.ghost-data-table-table, .ghost-data-table-preset)[data-themed]
|
|
436
|
+
) {
|
|
437
|
+
--_ghost-data-table-header-position: sticky;
|
|
438
|
+
--_ghost-data-table-header-bg: var(--ghost-surface-muted-bg);
|
|
439
|
+
--_ghost-data-table-header-shadow: inset 0
|
|
440
|
+
calc(-1 * var(--ghost-border-hairline-width)) var(--ghost-border-default);
|
|
441
|
+
|
|
442
|
+
@media (forced-colors: active) {
|
|
443
|
+
--_ghost-data-table-header-bg: Canvas;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
:where(
|
|
448
|
+
.ghost-data-table[data-themed][data-state='disabled'],
|
|
449
|
+
.ghost-data-table[data-themed][data-state='disabled']
|
|
450
|
+
> :is(.ghost-data-table-table, .ghost-data-table-preset)[data-themed]
|
|
451
|
+
) {
|
|
452
|
+
--_ghost-data-table-hover: transparent;
|
|
453
|
+
--_ghost-data-table-selection-hover: 0;
|
|
454
|
+
}
|
|
455
|
+
}
|