@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,73 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
[data-slot="field"] {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: var(--ui-space-2);
|
|
7
|
+
min-width: 0
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[data-slot="field"]:has(> :is([data-slot="checkbox"], [data-slot="switch"])) {
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
align-items: flex-start
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="field"]:has(> :is([data-slot="checkbox"], [data-slot="switch"])) > [data-slot="checkbox"] {
|
|
16
|
+
margin-top: 2px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="field"]:has(> :is([data-slot="checkbox"], [data-slot="switch"])) > [data-slot="switch"] {
|
|
20
|
+
margin-top: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="field"]:has(> :is([data-slot="checkbox"], [data-slot="switch"])) > [data-slot="stack"] {
|
|
24
|
+
gap: var(--ui-space-1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-slot="field"][data-valid] [data-hide="valid"],
|
|
28
|
+
[data-slot="field"]:not([data-valid]) [data-show="valid"] {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* A legend sits outside the field set's flex gap, so it spaces itself. */
|
|
33
|
+
[data-slot="field-legend"] {
|
|
34
|
+
margin-bottom: var(--ui-space-4);
|
|
35
|
+
font-size: 15px;
|
|
36
|
+
font-weight: 600;
|
|
37
|
+
line-height: 22px
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-slot="field-legend"]:has(+ [data-slot="field-description"]) {
|
|
41
|
+
margin-bottom: var(--ui-space-1);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-slot="field-description"] {
|
|
45
|
+
display: block;
|
|
46
|
+
margin: 0;
|
|
47
|
+
color: var(--ui-muted-foreground);
|
|
48
|
+
font-size: var(--ui-text-sm);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-slot="field-error"] {
|
|
52
|
+
display: block;
|
|
53
|
+
margin: 0;
|
|
54
|
+
color: var(--ui-destructive);
|
|
55
|
+
font-size: var(--ui-text-sm);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
[data-slot="field-set"] {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
gap: var(--ui-space-4);
|
|
62
|
+
min-width: 0;
|
|
63
|
+
margin: 0;
|
|
64
|
+
padding: 0;
|
|
65
|
+
border: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
[data-slot="field-group"] {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
gap: var(--ui-space-4);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
[data-slot="file-input"] {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
gap: var(--ui-space-3);
|
|
8
|
+
min-width: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="file-input-dropzone"] {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
align-items: center;
|
|
15
|
+
align-self: stretch;
|
|
16
|
+
gap: var(--ui-space-1);
|
|
17
|
+
min-width: 0;
|
|
18
|
+
padding: var(--ui-space-8) var(--ui-space-6);
|
|
19
|
+
border-radius: var(--ui-radius-surface);
|
|
20
|
+
background: var(--ui-surface-1);
|
|
21
|
+
box-shadow: inset 0 0 0 1px var(--ui-input);
|
|
22
|
+
text-align: center;
|
|
23
|
+
transition:
|
|
24
|
+
background-color var(--ui-duration),
|
|
25
|
+
box-shadow var(--ui-duration)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-slot="file-input-dropzone"] > svg {
|
|
29
|
+
width: 24px;
|
|
30
|
+
height: 24px;
|
|
31
|
+
margin-bottom: var(--ui-space-2);
|
|
32
|
+
color: var(--ui-muted-foreground);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-slot="file-input-dropzone"] > p:not([data-slot]) {
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-slot="file-input-dropzone"] > p + p {
|
|
40
|
+
margin-top: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-slot="file-input-dropzone"] > [data-slot="file-input-trigger"] {
|
|
44
|
+
margin-top: var(--ui-space-3);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-slot="file-input-dropzone"][data-dragging] {
|
|
48
|
+
background: var(--ui-muted);
|
|
49
|
+
box-shadow: inset 0 0 0 1px var(--ui-border-strong);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[data-slot="file-input-dropzone"][data-drag-reject] {
|
|
53
|
+
background: color-mix(in oklab, var(--ui-destructive) 9%, var(--ui-surface-2));
|
|
54
|
+
box-shadow: inset 0 0 0 1px var(--ui-destructive);
|
|
55
|
+
color: var(--ui-destructive)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
[data-slot="file-input-dropzone"][data-drag-reject] > svg {
|
|
59
|
+
color: inherit;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-slot="file-input-dropzone"][data-disabled] {
|
|
63
|
+
box-shadow: inset 0 0 0 1px var(--ui-border);
|
|
64
|
+
color: var(--ui-border-disabled)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[data-slot="file-input-dropzone"][data-disabled] > svg {
|
|
68
|
+
color: inherit;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[data-slot="file-input-dropzone"][data-variant="overlay"] {
|
|
72
|
+
position: fixed;
|
|
73
|
+
inset: 0;
|
|
74
|
+
z-index: 50;
|
|
75
|
+
display: none;
|
|
76
|
+
place-content: end center;
|
|
77
|
+
padding: 0 0 var(--ui-space-8);
|
|
78
|
+
border-radius: 0;
|
|
79
|
+
background: none;
|
|
80
|
+
box-shadow: inset 0 0 0 2px var(--ui-border-strong);
|
|
81
|
+
pointer-events: none
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[data-slot="file-input-dropzone"][data-variant="overlay"][data-dragging] {
|
|
85
|
+
display: grid;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
[data-slot="file-input-dropzone"][data-variant="overlay"] > [data-slot="stack"] {
|
|
89
|
+
flex-direction: row;
|
|
90
|
+
align-items: center;
|
|
91
|
+
gap: var(--ui-space-2);
|
|
92
|
+
padding: var(--ui-space-3) var(--ui-space-4);
|
|
93
|
+
border-radius: var(--ui-radius-popup);
|
|
94
|
+
background: var(--ui-surface-3);
|
|
95
|
+
box-shadow: var(--ui-shadow-lg);
|
|
96
|
+
font-weight: 500;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* Page-wide drop: the hint and the upload button share a row above the list. */
|
|
100
|
+
|
|
101
|
+
[data-slot="file-input-list"] {
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
align-self: stretch;
|
|
105
|
+
gap: 1px;
|
|
106
|
+
padding: 5px;
|
|
107
|
+
border-radius: var(--ui-radius-surface);
|
|
108
|
+
background: var(--ui-surface-1);
|
|
109
|
+
box-shadow: var(--ui-shadow-sm);
|
|
110
|
+
font-size: var(--ui-text-sm)
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
[data-slot="file-input-list"]:not(:has([data-slot="file-input-item"])) {
|
|
114
|
+
display: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
[data-slot="file-input-item"] {
|
|
118
|
+
display: flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
gap: var(--ui-space-2);
|
|
121
|
+
min-width: 0;
|
|
122
|
+
min-height: 32px;
|
|
123
|
+
padding-inline: 10px 4px;
|
|
124
|
+
border-radius: var(--ui-radius-row)
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
[data-slot="file-input-item"]:focus-visible {
|
|
128
|
+
outline-offset: -3px;
|
|
129
|
+
background: var(--ui-muted);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
[data-slot="file-input-item"] > svg {
|
|
133
|
+
flex-shrink: 0;
|
|
134
|
+
color: var(--ui-muted-foreground);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
[data-slot="file-input-item"] > span:not([data-slot]) {
|
|
138
|
+
flex: 1;
|
|
139
|
+
min-width: 0;
|
|
140
|
+
overflow: hidden;
|
|
141
|
+
text-overflow: ellipsis;
|
|
142
|
+
white-space: nowrap;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
[data-slot="file-input-item"] > [data-slot="hint"] {
|
|
146
|
+
flex-shrink: 0;
|
|
147
|
+
font-size: var(--ui-text-xs);
|
|
148
|
+
font-variant-numeric: tabular-nums;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
[data-slot="file-input-item-remove"] {
|
|
152
|
+
display: inline-grid;
|
|
153
|
+
flex-shrink: 0;
|
|
154
|
+
place-items: center;
|
|
155
|
+
width: 24px;
|
|
156
|
+
height: 24px;
|
|
157
|
+
padding: 0;
|
|
158
|
+
border: 0;
|
|
159
|
+
border-radius: calc(var(--ui-radius-control) - 2px);
|
|
160
|
+
background: transparent;
|
|
161
|
+
color: var(--ui-muted-foreground);
|
|
162
|
+
transition:
|
|
163
|
+
background-color 0.12s,
|
|
164
|
+
color 0.12s
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
[data-slot="file-input-item-remove"]:hover:not([data-disabled]) {
|
|
168
|
+
background: var(--ui-muted);
|
|
169
|
+
color: var(--ui-foreground);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
[data-slot="file-input-item-remove"][data-disabled] {
|
|
173
|
+
visibility: hidden;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
[data-slot="hover-card-trigger"] {
|
|
4
|
+
border-radius: 4px;
|
|
5
|
+
color: var(--ui-foreground);
|
|
6
|
+
font-weight: 500;
|
|
7
|
+
text-decoration: underline;
|
|
8
|
+
text-decoration-color: var(--ui-input);
|
|
9
|
+
text-underline-offset: 3px
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[data-slot="hover-card-trigger"]:hover,
|
|
13
|
+
[data-slot="hover-card-trigger"][data-open] {
|
|
14
|
+
text-decoration-color: var(--ui-foreground);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-slot="hover-card-content"] {
|
|
18
|
+
gap: var(--ui-space-1);
|
|
19
|
+
width: 18rem;
|
|
20
|
+
font-size: var(--ui-text-sm)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="hover-card-content"] > p:first-of-type,
|
|
24
|
+
[data-slot="hover-card-content"] [data-slot="stack"] > p:first-child {
|
|
25
|
+
font-size: var(--ui-text-md);
|
|
26
|
+
font-weight: 600;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-slot="hover-card-content"] [data-slot="stack"] {
|
|
30
|
+
gap: var(--ui-space-1);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[data-slot="hover-card-content"] p + p {
|
|
34
|
+
margin-top: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
[data-slot="hover-card-content"] p[data-slot="hint"] {
|
|
38
|
+
margin-top: var(--ui-space-1);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Two short selects in one row, and room around the link for a card on any side. */
|
|
42
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
[data-slot="image-cropper"] {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: var(--ui-space-3)
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
[data-slot="image-cropper"] > [data-slot="row"] {
|
|
10
|
+
flex-wrap: nowrap;
|
|
11
|
+
gap: var(--ui-space-2);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[data-slot="image-cropper-viewport"] {
|
|
15
|
+
aspect-ratio: var(--image-cropper-aspect-ratio, 32 / 21);
|
|
16
|
+
max-height: 24rem;
|
|
17
|
+
border-radius: var(--ui-radius-surface);
|
|
18
|
+
background: var(--ui-muted);
|
|
19
|
+
box-shadow: inset 0 0 0 1px var(--ui-border)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[data-slot="image-cropper-viewport"][data-mode="frame"] {
|
|
23
|
+
aspect-ratio: 1;
|
|
24
|
+
padding: var(--ui-space-6);
|
|
25
|
+
background: #0a0a0a;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-slot="image-cropper-viewport"][data-disabled] {
|
|
29
|
+
opacity: 0.5;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-slot="image-cropper-image"] {
|
|
33
|
+
display: block;
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
36
|
+
object-fit: contain;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-slot="image-cropper-selection"] {
|
|
40
|
+
outline: 1px solid #fff;
|
|
41
|
+
box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0.5)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-slot="image-cropper-selection"][data-shape="circle"] {
|
|
45
|
+
border-radius: 50%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[data-slot="image-cropper-selection"]:focus-visible {
|
|
49
|
+
outline: 3px solid #fff;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[data-slot="image-cropper-grid"] {
|
|
53
|
+
--grid-line: rgb(255 255 255 / 0.6);
|
|
54
|
+
|
|
55
|
+
border-radius: inherit;
|
|
56
|
+
background:
|
|
57
|
+
linear-gradient(
|
|
58
|
+
to right,
|
|
59
|
+
transparent calc(100% / 3 - 0.5px),
|
|
60
|
+
var(--grid-line) 0 calc(100% / 3 + 0.5px),
|
|
61
|
+
transparent 0 calc(200% / 3 - 0.5px),
|
|
62
|
+
var(--grid-line) 0 calc(200% / 3 + 0.5px),
|
|
63
|
+
transparent 0
|
|
64
|
+
),
|
|
65
|
+
linear-gradient(
|
|
66
|
+
to bottom,
|
|
67
|
+
transparent calc(100% / 3 - 0.5px),
|
|
68
|
+
var(--grid-line) 0 calc(100% / 3 + 0.5px),
|
|
69
|
+
transparent 0 calc(200% / 3 - 0.5px),
|
|
70
|
+
var(--grid-line) 0 calc(200% / 3 + 0.5px),
|
|
71
|
+
transparent 0
|
|
72
|
+
);
|
|
73
|
+
opacity: 0
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[data-slot="image-cropper-grid"][data-dragging] {
|
|
77
|
+
opacity: 1;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-slot="image-cropper-handle"] {
|
|
81
|
+
position: absolute;
|
|
82
|
+
width: 10px;
|
|
83
|
+
height: 10px;
|
|
84
|
+
border-radius: 2px;
|
|
85
|
+
background: #fff;
|
|
86
|
+
box-shadow: 0 0 0 1px rgb(0 0 0 / 0.4);
|
|
87
|
+
translate: -50% -50%
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
[data-slot="image-cropper-handle"]::after {
|
|
91
|
+
content: "";
|
|
92
|
+
position: absolute;
|
|
93
|
+
inset: -12px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
[data-slot="image-cropper-handle"][data-position*="n"] {
|
|
97
|
+
top: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
[data-slot="image-cropper-handle"][data-position*="s"] {
|
|
101
|
+
top: 100%;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
[data-slot="image-cropper-handle"][data-position*="w"] {
|
|
105
|
+
left: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[data-slot="image-cropper-handle"][data-position*="e"] {
|
|
109
|
+
left: 100%;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
[data-slot="image-cropper-handle"]:is([data-position="n"], [data-position="s"]) {
|
|
113
|
+
left: 50%;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
[data-slot="image-cropper-handle"]:is([data-position="e"], [data-position="w"]) {
|
|
117
|
+
top: 50%;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
[data-slot="image-cropper-handle"]:focus-visible {
|
|
121
|
+
outline: 3px solid var(--ui-ring);
|
|
122
|
+
outline-offset: 2px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[data-slot="image-cropper-zoom"] {
|
|
126
|
+
flex: 1;
|
|
127
|
+
min-width: 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
[data-slot="image-cropper-result"] {
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
height: 7rem;
|
|
135
|
+
padding: var(--ui-space-2);
|
|
136
|
+
border-radius: var(--ui-radius-surface);
|
|
137
|
+
background: var(--ui-muted);
|
|
138
|
+
box-shadow: inset 0 0 0 1px var(--ui-border)
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[data-slot="image-cropper-result"] > img {
|
|
142
|
+
max-width: 100%;
|
|
143
|
+
max-height: 100%;
|
|
144
|
+
border-radius: var(--ui-radius-row);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
[data-slot="image-cropper-avatar"] {
|
|
148
|
+
width: var(--ui-size-lg);
|
|
149
|
+
height: var(--ui-size-lg);
|
|
150
|
+
border-radius: 50%;
|
|
151
|
+
box-shadow: 0 0 0 1px var(--ui-border);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
[data-slot="input-group"] {
|
|
4
|
+
color: var(--ui-muted-foreground)
|
|
5
|
+
|
|
6
|
+
/* Text before or after the input reads as part of the value, like https://hollisgrant.com. */
|
|
7
|
+
}
|
|
8
|
+
[data-slot="input-group"] > span:has(+ input) {
|
|
9
|
+
margin-inline-end: calc(var(--ui-space-2) * -1);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[data-slot="input-group"] > input + span {
|
|
13
|
+
margin-inline-start: calc(var(--ui-space-2) * -1);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-slot="input-clear"]:not([data-filled]) {
|
|
17
|
+
visibility: hidden;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
[data-slot="listbox"] {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 1px;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
padding: 5px;
|
|
9
|
+
border-radius: var(--ui-radius-surface);
|
|
10
|
+
background: var(--ui-surface-1);
|
|
11
|
+
box-shadow: var(--ui-shadow-sm);
|
|
12
|
+
color: var(--ui-foreground);
|
|
13
|
+
font-size: var(--ui-text-md)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-slot="listbox"][data-readonly] {
|
|
17
|
+
box-shadow: 0 0 0 1px var(--ui-border);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-slot="listbox"][data-disabled] {
|
|
21
|
+
box-shadow: 0 0 0 1px var(--ui-border);
|
|
22
|
+
color: var(--ui-border-disabled);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[data-slot="field"] > [data-slot="listbox"] {
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-slot="listbox-item"] {
|
|
30
|
+
position: relative;
|
|
31
|
+
padding-inline-end: 30px;
|
|
32
|
+
color: inherit;
|
|
33
|
+
text-decoration: none
|
|
34
|
+
|
|
35
|
+
/* Hover shows where a click lands, quieter than a selection. */
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[data-slot="listbox-item"][data-selected] {
|
|
39
|
+
background: color-mix(in oklab, var(--ui-primary) 8%, transparent);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[data-slot="listbox-item"][data-highlighted] {
|
|
43
|
+
box-shadow: inset 0 0 0 1px var(--ui-border-strong)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[data-slot="listbox-item"][data-highlighted]:not([data-selected]) {
|
|
47
|
+
background: var(--ui-muted);
|
|
48
|
+
}
|
|
49
|
+
[data-slot="listbox-item"]:hover:not([data-disabled]) {
|
|
50
|
+
background: color-mix(in oklab, var(--ui-primary) 4%, transparent)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-slot="listbox-item"]:hover:not([data-disabled])[data-selected] {
|
|
54
|
+
background: color-mix(in oklab, var(--ui-primary) 12%, transparent);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-slot="listbox-item"]:focus-visible {
|
|
58
|
+
outline-offset: -3px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-disabled] > [data-slot="listbox-item"][data-selected] {
|
|
62
|
+
background: none;
|
|
63
|
+
box-shadow: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[data-slot="listbox-item"] > svg:last-child {
|
|
67
|
+
margin-inline-start: auto;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-slot="listbox-item"]:not([data-selected]) > svg:last-child {
|
|
71
|
+
visibility: hidden;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-slot="listbox-item-indicator"] {
|
|
75
|
+
position: absolute;
|
|
76
|
+
inset-inline-end: 10px;
|
|
77
|
+
display: flex;
|
|
78
|
+
padding: 0
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
[data-slot="listbox-item-indicator"] > svg {
|
|
82
|
+
width: 14px;
|
|
83
|
+
height: 14px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[data-slot="listbox-item-icon"] {
|
|
87
|
+
display: flex;
|
|
88
|
+
color: var(--ui-muted-foreground)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
[data-highlighted] > [data-slot="listbox-item-icon"], [data-selected] > [data-slot="listbox-item-icon"] {
|
|
92
|
+
color: inherit;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
[data-slot="listbox-group"] {
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-direction: column;
|
|
98
|
+
gap: 1px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* Horizontal: plain labels, the selected one is a raised pill like a selected tab. */
|
|
102
|
+
[data-slot="listbox"][data-orientation="horizontal"] {
|
|
103
|
+
flex-direction: row;
|
|
104
|
+
gap: 2px;
|
|
105
|
+
width: auto;
|
|
106
|
+
padding: 0;
|
|
107
|
+
border-radius: 0;
|
|
108
|
+
background: none;
|
|
109
|
+
box-shadow: none
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
[data-slot="listbox"][data-orientation="horizontal"] [data-slot="listbox-item"] {
|
|
113
|
+
justify-content: center;
|
|
114
|
+
min-width: var(--ui-size-md);
|
|
115
|
+
height: 30px;
|
|
116
|
+
min-height: 0;
|
|
117
|
+
padding: 0 var(--ui-space-3);
|
|
118
|
+
border-radius: var(--ui-radius-control);
|
|
119
|
+
color: var(--ui-muted-foreground);
|
|
120
|
+
font-weight: 500
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
[data-slot="listbox"][data-orientation="horizontal"] [data-slot="listbox-item"]:hover:not([data-disabled], [data-selected]) {
|
|
124
|
+
background: none;
|
|
125
|
+
color: var(--ui-foreground);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[data-slot="listbox"][data-orientation="horizontal"] [data-slot="listbox-item"][data-highlighted]:not([data-selected]) {
|
|
129
|
+
background: var(--ui-muted);
|
|
130
|
+
box-shadow: none;
|
|
131
|
+
color: var(--ui-foreground);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[data-slot="listbox"][data-orientation="horizontal"] [data-slot="listbox-item"][data-selected] {
|
|
135
|
+
background: var(--ui-surface-1);
|
|
136
|
+
box-shadow:
|
|
137
|
+
inset 0 0 0 1px var(--ui-border-strong),
|
|
138
|
+
var(--ui-shadow-drop);
|
|
139
|
+
color: var(--ui-foreground);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
[data-slot="listbox"][data-orientation="horizontal"] [data-slot="listbox-item"][data-disabled] {
|
|
143
|
+
color: var(--ui-border-disabled);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
[data-slot="listbox"][data-orientation="horizontal"] [data-slot="listbox-item"]:focus-visible {
|
|
147
|
+
outline: 3px solid var(--ui-ring);
|
|
148
|
+
outline-offset: 0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* A long list scrolls inside a fixed height, starting at the selected option. */
|
|
152
|
+
|
|
153
|
+
/* The form's buttons sit under the list, at its end. */
|
|
154
|
+
}
|