@ngx-ui-sdk/themes 0.0.0-stage → 0.2.1
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 +202 -0
- package/README.md +93 -2
- package/daisyui/accordion.css +101 -0
- package/daisyui/alert-dialog.css +85 -0
- package/daisyui/all.css +57 -0
- package/daisyui/autocomplete.css +216 -0
- package/daisyui/avatar.css +38 -0
- package/daisyui/base.css +5549 -0
- package/daisyui/button.css +8 -0
- package/daisyui/calendar.css +239 -0
- package/daisyui/carousel.css +159 -0
- package/daisyui/checkbox.css +143 -0
- package/daisyui/collapsible.css +202 -0
- package/daisyui/color-picker.css +187 -0
- package/daisyui/combobox.css +504 -0
- package/daisyui/command.css +198 -0
- package/daisyui/date-input.css +74 -0
- package/daisyui/date-picker.css +171 -0
- package/daisyui/dialog.css +175 -0
- package/daisyui/drawer.css +227 -0
- package/daisyui/field.css +73 -0
- package/daisyui/file-input.css +175 -0
- package/daisyui/hover-card.css +42 -0
- package/daisyui/image-cropper.css +153 -0
- package/daisyui/input.css +19 -0
- package/daisyui/label.css +9 -0
- package/daisyui/listbox.css +154 -0
- package/daisyui/menu.css +225 -0
- package/daisyui/menubar.css +58 -0
- package/daisyui/meter.css +42 -0
- package/daisyui/navigation-menu.css +292 -0
- package/daisyui/number-input.css +135 -0
- package/daisyui/otp-input.css +123 -0
- package/daisyui/pagination.css +81 -0
- package/daisyui/palettes/abyss.css +27 -0
- package/daisyui/palettes/acid.css +27 -0
- package/daisyui/palettes/aqua.css +27 -0
- package/daisyui/palettes/autumn.css +27 -0
- package/daisyui/palettes/black.css +27 -0
- package/daisyui/palettes/bumblebee.css +27 -0
- package/daisyui/palettes/business.css +27 -0
- package/daisyui/palettes/caramellatte.css +27 -0
- package/daisyui/palettes/cmyk.css +27 -0
- package/daisyui/palettes/coffee.css +27 -0
- package/daisyui/palettes/corporate.css +27 -0
- package/daisyui/palettes/cupcake.css +27 -0
- package/daisyui/palettes/cyberpunk.css +27 -0
- package/daisyui/palettes/dim.css +27 -0
- package/daisyui/palettes/dracula.css +27 -0
- package/daisyui/palettes/emerald.css +27 -0
- package/daisyui/palettes/fantasy.css +27 -0
- package/daisyui/palettes/forest.css +27 -0
- package/daisyui/palettes/garden.css +27 -0
- package/daisyui/palettes/halloween.css +27 -0
- package/daisyui/palettes/lemonade.css +27 -0
- package/daisyui/palettes/lofi.css +27 -0
- package/daisyui/palettes/luxury.css +27 -0
- package/daisyui/palettes/night.css +27 -0
- package/daisyui/palettes/nord.css +27 -0
- package/daisyui/palettes/pastel.css +27 -0
- package/daisyui/palettes/retro.css +27 -0
- package/daisyui/palettes/silk.css +27 -0
- package/daisyui/palettes/sunset.css +27 -0
- package/daisyui/palettes/synthwave.css +27 -0
- package/daisyui/palettes/valentine.css +27 -0
- package/daisyui/palettes/winter.css +27 -0
- package/daisyui/palettes/wireframe.css +27 -0
- package/daisyui/password-input.css +59 -0
- package/daisyui/popover.css +108 -0
- package/daisyui/preferences.css +61 -0
- package/daisyui/progress.css +68 -0
- package/daisyui/radio.css +180 -0
- package/daisyui/rating.css +56 -0
- package/daisyui/resizable.css +147 -0
- package/daisyui/scroll-area.css +220 -0
- package/daisyui/segmented-control.css +83 -0
- package/daisyui/select.css +351 -0
- package/daisyui/separator.css +59 -0
- package/daisyui/slider.css +184 -0
- package/daisyui/switch.css +124 -0
- package/daisyui/tabs.css +172 -0
- package/daisyui/textarea.css +8 -0
- package/daisyui/timeline.css +137 -0
- package/daisyui/toast.css +219 -0
- package/daisyui/toggle.css +153 -0
- package/daisyui/token-input.css +215 -0
- package/daisyui/tokens/base.json +359 -0
- package/daisyui/tokens/dark.json +171 -0
- package/daisyui/tokens/light.json +171 -0
- package/daisyui/tokens.css +60 -0
- package/daisyui/toolbar.css +219 -0
- package/daisyui/tooltip.css +166 -0
- package/daisyui/tree.css +241 -0
- package/daisyui/trigger-menu.css +99 -0
- package/daisyui/waterfall.css +221 -0
- package/default/accordion.css +101 -0
- package/default/alert-dialog.css +85 -0
- package/default/all.css +57 -0
- package/default/autocomplete.css +216 -0
- package/default/avatar.css +38 -0
- package/default/base.css +5357 -0
- package/default/button.css +8 -0
- package/default/calendar.css +239 -0
- package/default/carousel.css +159 -0
- package/default/checkbox.css +143 -0
- package/default/collapsible.css +202 -0
- package/default/color-picker.css +187 -0
- package/default/combobox.css +504 -0
- package/default/command.css +198 -0
- package/default/date-input.css +74 -0
- package/default/date-picker.css +171 -0
- package/default/dialog.css +175 -0
- package/default/drawer.css +227 -0
- package/default/field.css +73 -0
- package/default/file-input.css +175 -0
- package/default/hover-card.css +42 -0
- package/default/image-cropper.css +153 -0
- package/default/input.css +19 -0
- package/default/label.css +9 -0
- package/default/listbox.css +154 -0
- package/default/menu.css +225 -0
- package/default/menubar.css +58 -0
- package/default/meter.css +42 -0
- package/default/navigation-menu.css +292 -0
- package/default/number-input.css +135 -0
- package/default/otp-input.css +123 -0
- package/default/pagination.css +81 -0
- package/default/password-input.css +59 -0
- package/default/popover.css +108 -0
- package/default/preferences.css +61 -0
- package/default/progress.css +68 -0
- package/default/radio.css +180 -0
- package/default/rating.css +56 -0
- package/default/resizable.css +147 -0
- package/default/scroll-area.css +220 -0
- package/default/segmented-control.css +83 -0
- package/default/select.css +351 -0
- package/default/separator.css +59 -0
- package/default/slider.css +184 -0
- package/default/switch.css +124 -0
- package/default/tabs.css +172 -0
- package/default/textarea.css +8 -0
- package/default/timeline.css +137 -0
- package/default/toast.css +219 -0
- package/default/toggle.css +153 -0
- package/default/token-input.css +215 -0
- package/default/tokens/base.json +410 -0
- package/default/tokens/dark.json +151 -0
- package/default/tokens/light.json +151 -0
- package/default/tokens.css +63 -0
- package/default/toolbar.css +219 -0
- package/default/tooltip.css +166 -0
- package/default/tree.css +241 -0
- package/default/trigger-menu.css +99 -0
- package/default/waterfall.css +221 -0
- package/material/accordion.css +101 -0
- package/material/alert-dialog.css +92 -0
- package/material/all.css +57 -0
- package/material/autocomplete.css +216 -0
- package/material/avatar.css +38 -0
- package/material/base.css +5374 -0
- package/material/button.css +8 -0
- package/material/calendar.css +239 -0
- package/material/carousel.css +159 -0
- package/material/checkbox.css +143 -0
- package/material/collapsible.css +202 -0
- package/material/color-picker.css +187 -0
- package/material/combobox.css +504 -0
- package/material/command.css +198 -0
- package/material/date-input.css +74 -0
- package/material/date-picker.css +171 -0
- package/material/dialog.css +182 -0
- package/material/drawer.css +227 -0
- package/material/field.css +602 -0
- package/material/file-input.css +175 -0
- package/material/hover-card.css +42 -0
- package/material/image-cropper.css +153 -0
- package/material/input.css +19 -0
- package/material/label.css +9 -0
- package/material/listbox.css +154 -0
- package/material/menu.css +225 -0
- package/material/menubar.css +58 -0
- package/material/meter.css +42 -0
- package/material/navigation-menu.css +292 -0
- package/material/number-input.css +135 -0
- package/material/otp-input.css +123 -0
- package/material/pagination.css +81 -0
- package/material/palettes/amber.css +24 -0
- package/material/palettes/blue.css +24 -0
- package/material/palettes/green.css +24 -0
- package/material/palettes/indigo.css +24 -0
- package/material/palettes/orange.css +24 -0
- package/material/palettes/pink.css +24 -0
- package/material/palettes/red.css +24 -0
- package/material/palettes/teal.css +24 -0
- package/material/password-input.css +59 -0
- package/material/popover.css +108 -0
- package/material/preferences.css +61 -0
- package/material/progress.css +68 -0
- package/material/radio.css +180 -0
- package/material/rating.css +56 -0
- package/material/resizable.css +147 -0
- package/material/scroll-area.css +220 -0
- package/material/segmented-control.css +83 -0
- package/material/select.css +351 -0
- package/material/separator.css +59 -0
- package/material/slider.css +184 -0
- package/material/switch.css +124 -0
- package/material/tabs.css +195 -0
- package/material/textarea.css +8 -0
- package/material/timeline.css +137 -0
- package/material/toast.css +219 -0
- package/material/toggle.css +153 -0
- package/material/token-input.css +215 -0
- package/material/tokens/base.json +338 -0
- package/material/tokens/dark.json +184 -0
- package/material/tokens/light.json +184 -0
- package/material/tokens.css +62 -0
- package/material/toolbar.css +219 -0
- package/material/tooltip.css +166 -0
- package/material/tree.css +241 -0
- package/material/trigger-menu.css +99 -0
- package/material/waterfall.css +221 -0
- package/package.json +30 -4
- package/shadcn/accordion.css +101 -0
- package/shadcn/alert-dialog.css +85 -0
- package/shadcn/all.css +57 -0
- package/shadcn/autocomplete.css +216 -0
- package/shadcn/avatar.css +38 -0
- package/shadcn/base.css +5357 -0
- package/shadcn/button.css +8 -0
- package/shadcn/calendar.css +239 -0
- package/shadcn/carousel.css +159 -0
- package/shadcn/checkbox.css +143 -0
- package/shadcn/collapsible.css +202 -0
- package/shadcn/color-picker.css +187 -0
- package/shadcn/combobox.css +504 -0
- package/shadcn/command.css +198 -0
- package/shadcn/date-input.css +74 -0
- package/shadcn/date-picker.css +171 -0
- package/shadcn/dialog.css +175 -0
- package/shadcn/drawer.css +227 -0
- package/shadcn/field.css +73 -0
- package/shadcn/file-input.css +175 -0
- package/shadcn/hover-card.css +42 -0
- package/shadcn/image-cropper.css +153 -0
- package/shadcn/input.css +19 -0
- package/shadcn/label.css +9 -0
- package/shadcn/listbox.css +154 -0
- package/shadcn/menu.css +225 -0
- package/shadcn/menubar.css +58 -0
- package/shadcn/meter.css +42 -0
- package/shadcn/navigation-menu.css +292 -0
- package/shadcn/number-input.css +135 -0
- package/shadcn/otp-input.css +123 -0
- package/shadcn/pagination.css +81 -0
- package/shadcn/password-input.css +59 -0
- package/shadcn/popover.css +108 -0
- package/shadcn/preferences.css +61 -0
- package/shadcn/progress.css +68 -0
- package/shadcn/radio.css +180 -0
- package/shadcn/rating.css +56 -0
- package/shadcn/resizable.css +147 -0
- package/shadcn/scroll-area.css +220 -0
- package/shadcn/segmented-control.css +83 -0
- package/shadcn/select.css +351 -0
- package/shadcn/separator.css +59 -0
- package/shadcn/slider.css +184 -0
- package/shadcn/switch.css +124 -0
- package/shadcn/tabs.css +172 -0
- package/shadcn/textarea.css +8 -0
- package/shadcn/timeline.css +137 -0
- package/shadcn/toast.css +219 -0
- package/shadcn/toggle.css +153 -0
- package/shadcn/token-input.css +215 -0
- package/shadcn/tokens/base.json +395 -0
- package/shadcn/tokens/dark.json +177 -0
- package/shadcn/tokens/light.json +174 -0
- package/shadcn/tokens.css +61 -0
- package/shadcn/toolbar.css +219 -0
- package/shadcn/tooltip.css +166 -0
- package/shadcn/tree.css +241 -0
- package/shadcn/trigger-menu.css +99 -0
- package/shadcn/waterfall.css +221 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
/* Room below the field for the open list, above the console. */
|
|
4
|
+
|
|
5
|
+
/* Room below the field for the grouped list. */
|
|
6
|
+
|
|
7
|
+
/* A comment box at the bottom, like a chat composer, with room above it for the list. */
|
|
8
|
+
|
|
9
|
+
[data-slot="trigger-menu-input"] {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
min-height: 80px;
|
|
12
|
+
max-height: 12rem;
|
|
13
|
+
padding: var(--ui-space-2) 10px;
|
|
14
|
+
border: 0;
|
|
15
|
+
border-radius: var(--ui-radius-control);
|
|
16
|
+
background: var(--ui-surface-1);
|
|
17
|
+
box-shadow: inset 0 0 0 1px var(--ui-input);
|
|
18
|
+
color: var(--ui-foreground);
|
|
19
|
+
font: inherit;
|
|
20
|
+
resize: vertical
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="trigger-menu-input"]::placeholder {
|
|
24
|
+
color: var(--ui-muted-foreground);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-slot="trigger-menu-input"]:hover:not(:focus-visible, :disabled, [readonly]) {
|
|
28
|
+
box-shadow: inset 0 0 0 1px
|
|
29
|
+
color-mix(in oklab, var(--ui-border-strong) 45%, var(--ui-surface-1));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-slot="trigger-menu-input"]:focus-visible {
|
|
33
|
+
outline: 3px solid var(--ui-ring);
|
|
34
|
+
outline-offset: 0;
|
|
35
|
+
box-shadow: inset 0 0 0 1px var(--ui-border-strong);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[data-slot="trigger-menu-input"]:is(input) {
|
|
39
|
+
min-height: 0;
|
|
40
|
+
height: var(--ui-size-md);
|
|
41
|
+
padding-block: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-slot="stack"]:has(> [data-slot="trigger-menu-input"]) {
|
|
45
|
+
align-items: stretch;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[data-slot="trigger-menu-content"] {
|
|
49
|
+
width: 14rem;
|
|
50
|
+
max-width: calc(100vw - 2rem);
|
|
51
|
+
max-height: min(16rem, var(--available-height));
|
|
52
|
+
scroll-padding-block: 5px
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-slot="trigger-menu-content"][data-trigger="/"] [data-slot="trigger-menu-item"] {
|
|
56
|
+
font-family: var(--ui-font-mono);
|
|
57
|
+
font-size: var(--ui-text-sm);
|
|
58
|
+
}
|
|
59
|
+
[data-slot="trigger-menu-item"] > [data-slot="trigger-menu-item-icon"],
|
|
60
|
+
[data-slot="trigger-menu-item"] > [data-slot="badge"] {
|
|
61
|
+
color: var(--ui-muted-foreground);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[data-slot="trigger-menu-item"] > [data-slot="badge"], [data-slot="trigger-menu-item"] > [data-slot="hint"] {
|
|
65
|
+
margin-inline-start: auto;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
[data-slot="trigger-menu-item"][data-highlighted] > [data-slot="trigger-menu-item-icon"] {
|
|
69
|
+
color: inherit;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[data-slot="trigger-menu-item-icon"] {
|
|
73
|
+
display: flex
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[data-slot="trigger-menu-item-icon"] svg {
|
|
77
|
+
width: 14px;
|
|
78
|
+
height: 14px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
[data-slot="trigger-menu-status"],
|
|
82
|
+
[data-slot="trigger-menu-hint"] {
|
|
83
|
+
min-height: var(--ui-leading);
|
|
84
|
+
color: var(--ui-muted-foreground);
|
|
85
|
+
font-size: var(--ui-text-sm);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
[data-slot="trigger-menu-hint"] {
|
|
89
|
+
font-variant-numeric: tabular-nums;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[data-slot="trigger-menu-content"] > [data-slot="trigger-menu-status"] {
|
|
93
|
+
padding: 6px 10px
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
[data-slot="trigger-menu-content"] > [data-slot="trigger-menu-status"]:empty {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
/* Waterfalls grow downward as spans open, so the rows above stay put. */
|
|
4
|
+
|
|
5
|
+
[data-slot="waterfall"] {
|
|
6
|
+
display: flex;
|
|
7
|
+
position: relative;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
padding: 5px;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
border-radius: var(--ui-radius-surface);
|
|
13
|
+
background: var(--ui-surface-1);
|
|
14
|
+
box-shadow: var(--ui-shadow-sm);
|
|
15
|
+
color: var(--ui-foreground);
|
|
16
|
+
font-size: var(--ui-text-md);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="waterfall-header-row"], [data-slot="waterfall-row"] {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: var(--ui-space-2);
|
|
23
|
+
height: var(--ui-size-item);
|
|
24
|
+
padding-inline: var(--ui-space-2);
|
|
25
|
+
border-radius: var(--ui-radius-row);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-slot="waterfall-header-row"] {
|
|
29
|
+
color: var(--ui-muted-foreground);
|
|
30
|
+
font-size: var(--ui-text-sm);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[data-slot="waterfall-row"] {
|
|
34
|
+
outline: none;
|
|
35
|
+
cursor: default;
|
|
36
|
+
user-select: none
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-slot="waterfall-row"][hidden] {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-slot="waterfall-row"]:hover:not([data-selected]) {
|
|
44
|
+
background: color-mix(in oklab, var(--ui-primary) 4%, transparent);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-slot="waterfall-row"][data-selected] {
|
|
48
|
+
background: color-mix(in oklab, var(--ui-primary) 8%, transparent);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-slot="waterfall-row"]:focus-visible {
|
|
52
|
+
box-shadow: inset 0 0 0 1px var(--ui-border-strong);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-slot="waterfall-row"][data-level="1"] {
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-slot="waterfall-column-header"], [data-slot="waterfall-cell"] {
|
|
60
|
+
flex: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
[data-slot="waterfall-header-row"] > :first-child,
|
|
64
|
+
[data-slot="waterfall-row-header"] {
|
|
65
|
+
display: flex;
|
|
66
|
+
flex: 0 1 11rem;
|
|
67
|
+
align-items: center;
|
|
68
|
+
gap: var(--ui-space-1);
|
|
69
|
+
min-width: 6rem;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-slot="waterfall-row-header"] {
|
|
75
|
+
padding-inline-start: calc((var(--waterfall-level) - 1) * var(--ui-space-4))
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
[data-slot="waterfall-row-header"]:not([data-branch]) {
|
|
79
|
+
padding-inline-start: calc(
|
|
80
|
+
(var(--waterfall-level) - 1) * var(--ui-space-4) + var(--ui-size-icon) +
|
|
81
|
+
var(--ui-space-1)
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[data-slot="waterfall-row-header"],
|
|
86
|
+
[data-slot="waterfall-cell"],
|
|
87
|
+
[data-slot="waterfall-bar"] {
|
|
88
|
+
align-self: stretch;
|
|
89
|
+
align-content: center;
|
|
90
|
+
border-radius: var(--ui-radius-row);
|
|
91
|
+
outline: none
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
[data-slot="waterfall-row-header"]:focus-visible, [data-slot="waterfall-cell"]:focus-visible, [data-slot="waterfall-bar"]:focus-visible {
|
|
95
|
+
box-shadow: inset 0 0 0 1px var(--ui-border-strong);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[data-slot="waterfall-cell"] {
|
|
99
|
+
color: var(--ui-muted-foreground);
|
|
100
|
+
font-variant-numeric: tabular-nums;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
[data-slot="waterfall-indicator"] {
|
|
104
|
+
display: flex;
|
|
105
|
+
color: var(--ui-muted-foreground)
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[data-slot="waterfall-indicator"] > svg {
|
|
109
|
+
width: var(--ui-size-icon);
|
|
110
|
+
height: var(--ui-size-icon);
|
|
111
|
+
transition: rotate var(--ui-duration);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
[data-slot="waterfall-indicator"][data-expanded] > svg {
|
|
115
|
+
rotate: 90deg;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
[data-slot="waterfall-indicator"]:dir(rtl) > svg {
|
|
119
|
+
scale: -1 1;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* The bar column and the axis above it share a width, so ticks line up with bars. */
|
|
123
|
+
[data-slot="waterfall-header-row"] > :last-child,
|
|
124
|
+
[data-slot="waterfall-bar"] {
|
|
125
|
+
position: relative;
|
|
126
|
+
flex: 1 1 10rem;
|
|
127
|
+
align-self: stretch;
|
|
128
|
+
min-width: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
[data-slot="waterfall-bar"]::before {
|
|
132
|
+
content: "";
|
|
133
|
+
position: absolute;
|
|
134
|
+
inset-block: 7px;
|
|
135
|
+
inset-inline-start: var(--waterfall-start);
|
|
136
|
+
width: max(var(--waterfall-size), 2px);
|
|
137
|
+
border-radius: 3px;
|
|
138
|
+
background: color-mix(in oklab, var(--ui-primary) 55%, transparent);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[data-slot="waterfall-row"][data-selected]
|
|
142
|
+
[data-slot="waterfall-bar"]::before {
|
|
143
|
+
background: var(--ui-primary);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
[data-slot="waterfall-axis"] {
|
|
147
|
+
position: relative;
|
|
148
|
+
height: 100%;
|
|
149
|
+
container-type: inline-size;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* A narrow axis labels every other tick, or only the first, so labels never meet. */
|
|
153
|
+
@container (width < 16rem) {
|
|
154
|
+
[data-slot="waterfall-tick"]:nth-child(even) {
|
|
155
|
+
color: transparent;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@container (width < 8rem) {
|
|
160
|
+
[data-slot="waterfall-tick"]:not(:first-child) {
|
|
161
|
+
color: transparent;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
[data-slot="waterfall-tick"] {
|
|
166
|
+
position: absolute;
|
|
167
|
+
inset-block: 0;
|
|
168
|
+
inset-inline-start: var(--waterfall-tick);
|
|
169
|
+
align-content: center;
|
|
170
|
+
padding-inline-start: var(--ui-space-1);
|
|
171
|
+
border-inline-start: 1px solid var(--ui-border);
|
|
172
|
+
font-size: var(--ui-text-xs);
|
|
173
|
+
font-variant-numeric: tabular-nums;
|
|
174
|
+
white-space: nowrap;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* A mark is a line down every row, with its name at the top. */
|
|
178
|
+
[data-slot="waterfall-mark"] {
|
|
179
|
+
position: absolute;
|
|
180
|
+
top: 0;
|
|
181
|
+
inset-inline-start: var(--waterfall-mark);
|
|
182
|
+
height: 100vh;
|
|
183
|
+
padding-inline-start: var(--ui-space-1);
|
|
184
|
+
border-inline-start: 1px dashed var(--ui-destructive);
|
|
185
|
+
color: var(--ui-destructive);
|
|
186
|
+
font-size: var(--ui-text-xs);
|
|
187
|
+
white-space: nowrap;
|
|
188
|
+
pointer-events: none
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
[data-slot="waterfall-mark"][data-outside] {
|
|
192
|
+
display: none;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* Virtualized: the scroller is the panel, and rows sit at their offsets in the waterfall. */
|
|
196
|
+
[data-slot="scroll"]:has(> [data-slot="waterfall"]) {
|
|
197
|
+
flex: none;
|
|
198
|
+
box-sizing: border-box;
|
|
199
|
+
height: 288px;
|
|
200
|
+
padding: 5px;
|
|
201
|
+
border-radius: var(--ui-radius-surface);
|
|
202
|
+
background: var(--ui-surface-1);
|
|
203
|
+
box-shadow: var(--ui-shadow-sm);
|
|
204
|
+
overscroll-behavior: contain
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
[data-slot="scroll"]:has(> [data-slot="waterfall"]) > [data-slot="waterfall"] {
|
|
208
|
+
display: block;
|
|
209
|
+
width: auto;
|
|
210
|
+
padding: 0;
|
|
211
|
+
overflow: visible;
|
|
212
|
+
border-radius: 0;
|
|
213
|
+
background: none;
|
|
214
|
+
box-shadow: none;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
[data-slot="scroll"]:has(> [data-slot="waterfall"]) [data-slot="waterfall-row"] {
|
|
218
|
+
position: absolute;
|
|
219
|
+
inset-inline: 0;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
[data-slot="accordion"] {
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin-inline: auto;
|
|
6
|
+
border-top: 1px solid var(--ui-border);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Opening and closing only grows the demo downward. */
|
|
10
|
+
|
|
11
|
+
/* Center the demo's top-level group around an accordion; its text stays start-aligned. */
|
|
12
|
+
|
|
13
|
+
[data-slot="accordion-item"] {
|
|
14
|
+
border-bottom: 1px solid var(--ui-border);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-slot="accordion-header"] {
|
|
18
|
+
display: flex;
|
|
19
|
+
margin: 0;
|
|
20
|
+
font: inherit;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="accordion-trigger"] {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex: 1;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: flex-start;
|
|
28
|
+
gap: var(--ui-space-2);
|
|
29
|
+
padding: 11px 2px;
|
|
30
|
+
border: 0;
|
|
31
|
+
border-radius: 4px;
|
|
32
|
+
background: none;
|
|
33
|
+
color: var(--ui-foreground);
|
|
34
|
+
font: inherit;
|
|
35
|
+
font-size: var(--ui-text-md);
|
|
36
|
+
font-weight: 600;
|
|
37
|
+
line-height: 1.4;
|
|
38
|
+
text-align: start;
|
|
39
|
+
cursor: default
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[data-slot="accordion-trigger"]:focus-visible {
|
|
43
|
+
outline-offset: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[data-slot="accordion-trigger"] > svg {
|
|
47
|
+
flex: none;
|
|
48
|
+
order: -1;
|
|
49
|
+
color: color-mix(in oklab, var(--ui-foreground) 55%, var(--ui-primary-foreground));
|
|
50
|
+
rotate: -90deg
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-slot="accordion-trigger"] > svg:is([dir="rtl"], [dir="rtl"] *) {
|
|
54
|
+
rotate: 90deg;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-slot="accordion-trigger"][data-open] > svg {
|
|
58
|
+
rotate: 0deg;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-slot="accordion-trigger"] > [data-slot="hint"]:last-child {
|
|
62
|
+
margin-inline-start: auto;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[data-slot="accordion-trigger"]:not([data-open]) [data-show="open"],
|
|
66
|
+
[data-slot="accordion-trigger"][data-open] [data-show="closed"] {
|
|
67
|
+
display: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-slot="accordion-trigger"][data-disabled] {
|
|
71
|
+
color: var(--ui-border-disabled)
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-slot="accordion-trigger"][data-disabled] > svg {
|
|
75
|
+
color: var(--ui-border-disabled);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
[data-slot="accordion-panel"] {
|
|
79
|
+
padding-inline: 26px 2px;
|
|
80
|
+
color: var(--ui-foreground);
|
|
81
|
+
font-size: var(--ui-text-md);
|
|
82
|
+
font-weight: 400
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[data-slot="accordion-panel"]::after {
|
|
86
|
+
display: block;
|
|
87
|
+
height: 11px;
|
|
88
|
+
content: "";
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
[data-slot="accordion-panel"] [data-slot="accordion"] {
|
|
92
|
+
max-width: none;
|
|
93
|
+
border-top: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
[data-slot="accordion-panel"] [data-slot="accordion-item"]:last-child {
|
|
97
|
+
border-bottom: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Only this demo animates; the height transition is what it shows. */
|
|
101
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
|
|
4
|
+
[data-slot="alert-dialog-content"] {
|
|
5
|
+
position: fixed;
|
|
6
|
+
inset: 0;
|
|
7
|
+
z-index: 50;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: var(--ui-space-4);
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
width: min(22rem, calc(100% - 2rem));
|
|
13
|
+
height: fit-content;
|
|
14
|
+
max-height: calc(100dvh - 2rem);
|
|
15
|
+
margin: auto;
|
|
16
|
+
padding: 18px;
|
|
17
|
+
border-radius: var(--ui-radius-popup);
|
|
18
|
+
background: var(--ui-surface-3);
|
|
19
|
+
box-shadow: var(--ui-shadow-lg);
|
|
20
|
+
color: var(--ui-foreground);
|
|
21
|
+
outline: none
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-slot="alert-dialog-content"][data-nested-open] {
|
|
25
|
+
translate: 0 -12px;
|
|
26
|
+
scale: 0.97;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-slot="alert-dialog-content"] > [data-slot="stack"] {
|
|
30
|
+
align-items: stretch;
|
|
31
|
+
gap: var(--ui-space-1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[data-slot="alert-dialog-content"]
|
|
35
|
+
:has(> [data-slot="alert-dialog-close"]):not(
|
|
36
|
+
[data-slot="alert-dialog-content"]
|
|
37
|
+
) {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-wrap: wrap;
|
|
40
|
+
justify-content: flex-end;
|
|
41
|
+
gap: var(--ui-space-2);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-slot="alert-dialog-content"] [data-slot="hint"][role="alert"] {
|
|
45
|
+
margin: 0;
|
|
46
|
+
color: var(--ui-destructive);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-slot="alert-dialog-content"] > [data-slot="grid"] {
|
|
50
|
+
grid-template-columns: 1fr 1fr;
|
|
51
|
+
gap: var(--ui-space-2);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[data-slot="alert-dialog-content"] [data-slot="alert-dialog-close"][aria-label] {
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: var(--ui-space-3);
|
|
57
|
+
inset-inline-end: var(--ui-space-3);
|
|
58
|
+
width: var(--ui-size-sm);
|
|
59
|
+
height: var(--ui-size-sm);
|
|
60
|
+
padding: 0;
|
|
61
|
+
background: transparent;
|
|
62
|
+
box-shadow: none;
|
|
63
|
+
color: var(--ui-muted-foreground)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[data-slot="alert-dialog-content"] [data-slot="alert-dialog-close"][aria-label]:hover {
|
|
67
|
+
background: var(--ui-muted);
|
|
68
|
+
color: var(--ui-foreground);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[data-slot="alert-dialog-title"] {
|
|
72
|
+
margin: 0;
|
|
73
|
+
font-size: 15px;
|
|
74
|
+
font-weight: 600;
|
|
75
|
+
line-height: 22px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
[data-slot="alert-dialog-description"] {
|
|
79
|
+
margin: 0;
|
|
80
|
+
color: var(--ui-muted-foreground);
|
|
81
|
+
font-size: var(--ui-text-md);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Only this demo animates; the slide, fade and scale are what it shows. */
|
|
85
|
+
}
|
package/default/all.css
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@import "./tokens.css";
|
|
3
|
+
@import "./base.css";
|
|
4
|
+
@import "./accordion.css";
|
|
5
|
+
@import "./alert-dialog.css";
|
|
6
|
+
@import "./autocomplete.css";
|
|
7
|
+
@import "./avatar.css";
|
|
8
|
+
@import "./button.css";
|
|
9
|
+
@import "./calendar.css";
|
|
10
|
+
@import "./carousel.css";
|
|
11
|
+
@import "./checkbox.css";
|
|
12
|
+
@import "./collapsible.css";
|
|
13
|
+
@import "./color-picker.css";
|
|
14
|
+
@import "./combobox.css";
|
|
15
|
+
@import "./command.css";
|
|
16
|
+
@import "./date-input.css";
|
|
17
|
+
@import "./date-picker.css";
|
|
18
|
+
@import "./dialog.css";
|
|
19
|
+
@import "./drawer.css";
|
|
20
|
+
@import "./field.css";
|
|
21
|
+
@import "./file-input.css";
|
|
22
|
+
@import "./hover-card.css";
|
|
23
|
+
@import "./image-cropper.css";
|
|
24
|
+
@import "./input.css";
|
|
25
|
+
@import "./label.css";
|
|
26
|
+
@import "./listbox.css";
|
|
27
|
+
@import "./menu.css";
|
|
28
|
+
@import "./menubar.css";
|
|
29
|
+
@import "./meter.css";
|
|
30
|
+
@import "./navigation-menu.css";
|
|
31
|
+
@import "./number-input.css";
|
|
32
|
+
@import "./otp-input.css";
|
|
33
|
+
@import "./pagination.css";
|
|
34
|
+
@import "./password-input.css";
|
|
35
|
+
@import "./popover.css";
|
|
36
|
+
@import "./preferences.css";
|
|
37
|
+
@import "./progress.css";
|
|
38
|
+
@import "./radio.css";
|
|
39
|
+
@import "./rating.css";
|
|
40
|
+
@import "./resizable.css";
|
|
41
|
+
@import "./scroll-area.css";
|
|
42
|
+
@import "./segmented-control.css";
|
|
43
|
+
@import "./select.css";
|
|
44
|
+
@import "./separator.css";
|
|
45
|
+
@import "./slider.css";
|
|
46
|
+
@import "./switch.css";
|
|
47
|
+
@import "./tabs.css";
|
|
48
|
+
@import "./textarea.css";
|
|
49
|
+
@import "./timeline.css";
|
|
50
|
+
@import "./toast.css";
|
|
51
|
+
@import "./toggle.css";
|
|
52
|
+
@import "./token-input.css";
|
|
53
|
+
@import "./toolbar.css";
|
|
54
|
+
@import "./tooltip.css";
|
|
55
|
+
@import "./tree.css";
|
|
56
|
+
@import "./trigger-menu.css";
|
|
57
|
+
@import "./waterfall.css";
|