@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,8 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
/* Content marked with data-show="pending" or "idle" shows only in that state. */
|
|
4
|
+
[data-slot="button"]:not([data-pending]) [data-show="pending"],
|
|
5
|
+
[data-slot="button"][data-pending] [data-show="idle"] {
|
|
6
|
+
display: none;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
/* Months with five or six weeks change the height; top alignment keeps the controls still. */
|
|
4
|
+
|
|
5
|
+
[data-slot="calendar"] {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 6px;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
width: fit-content;
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
padding: 10px;
|
|
13
|
+
border-radius: var(--ui-radius-popup);
|
|
14
|
+
background: var(--ui-surface-1);
|
|
15
|
+
box-shadow: var(--ui-shadow-sm);
|
|
16
|
+
font-size: var(--ui-text-sm)
|
|
17
|
+
|
|
18
|
+
/* The header takes the grid's width rather than widening the calendar for a long heading. */
|
|
19
|
+
}
|
|
20
|
+
[data-slot="calendar"] > [data-slot="row"]:first-child:has(> [data-slot="calendar-previous"]) {
|
|
21
|
+
flex-wrap: nowrap;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
width: 0;
|
|
24
|
+
min-width: 100%;
|
|
25
|
+
padding-bottom: var(--ui-space-1);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-slot="calendar"][data-disabled] {
|
|
29
|
+
color: var(--ui-border-disabled);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-slot="calendar-previous"], [data-slot="calendar-next"] {
|
|
33
|
+
width: 30px;
|
|
34
|
+
height: 30px;
|
|
35
|
+
padding: 0;
|
|
36
|
+
border-radius: var(--ui-radius-row);
|
|
37
|
+
color: var(--ui-muted-foreground)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-slot="calendar-previous"]:hover:not(:disabled, [data-disabled]), [data-slot="calendar-next"]:hover:not(:disabled, [data-disabled]) {
|
|
41
|
+
color: var(--ui-foreground);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-slot="calendar-previous"]:active:not(:disabled, [data-disabled]), [data-slot="calendar-next"]:active:not(:disabled, [data-disabled]) {
|
|
45
|
+
scale: none;
|
|
46
|
+
box-shadow: inset 0 0 0 1px var(--ui-border-strong);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-slot="calendar-heading"] {
|
|
50
|
+
margin: 0;
|
|
51
|
+
font-size: var(--ui-text-md);
|
|
52
|
+
font-weight: 600;
|
|
53
|
+
text-align: center;
|
|
54
|
+
text-wrap: balance
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-slot="calendar-heading"]:has(~ [data-slot="select"], ~ * [data-slot="calendar-month-select"]), [data-slot="calendar-heading"]:has(~ [data-slot="select-trigger"]) {
|
|
58
|
+
position: absolute;
|
|
59
|
+
width: 1px;
|
|
60
|
+
height: 1px;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
clip-path: inset(50%);
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* The month and year selects share the header row between Previous and Next. */
|
|
67
|
+
[data-slot="row"]:has(> [data-slot="calendar-month-select"]) {
|
|
68
|
+
flex: 1;
|
|
69
|
+
flex-wrap: nowrap;
|
|
70
|
+
min-width: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[data-slot="calendar-month-select"], [data-slot="calendar-year-select"] {
|
|
74
|
+
flex: 1;
|
|
75
|
+
min-width: 0;
|
|
76
|
+
width: auto;
|
|
77
|
+
height: var(--ui-size-sm);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Two months side by side, with room between them. */
|
|
81
|
+
[data-slot="row"]:has(
|
|
82
|
+
> [data-slot="calendar-grid"] + [data-slot="calendar-grid"]
|
|
83
|
+
) {
|
|
84
|
+
flex-wrap: nowrap;
|
|
85
|
+
align-items: flex-start;
|
|
86
|
+
gap: var(--ui-space-6)
|
|
87
|
+
|
|
88
|
+
/* On a phone the months stack, one above the other. */
|
|
89
|
+
}
|
|
90
|
+
@media (max-width: 40rem) {
|
|
91
|
+
|
|
92
|
+
[data-slot="row"]:has(
|
|
93
|
+
> [data-slot="calendar-grid"] + [data-slot="calendar-grid"]
|
|
94
|
+
) {
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
align-items: center;
|
|
97
|
+
gap: var(--ui-space-4);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[data-slot="calendar-grid"] {
|
|
102
|
+
width: auto;
|
|
103
|
+
border-collapse: separate;
|
|
104
|
+
border-spacing: 0 2px
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
[data-slot="calendar-grid"] th, [data-slot="calendar-grid"] td {
|
|
108
|
+
padding: 0;
|
|
109
|
+
border: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
[data-slot="calendar-weekday"], [data-slot="calendar-day"] {
|
|
113
|
+
width: 34px;
|
|
114
|
+
padding: 0;
|
|
115
|
+
border: 0;
|
|
116
|
+
text-align: center;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
[data-slot="calendar-weekday"] {
|
|
120
|
+
height: 28px;
|
|
121
|
+
color: var(--ui-muted-foreground);
|
|
122
|
+
font-size: var(--ui-text-xs);
|
|
123
|
+
font-weight: 400
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
[data-slot="calendar-weekday"] abbr {
|
|
127
|
+
text-decoration: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
[data-slot="calendar-weekday"] abbr[data-weekend] {
|
|
131
|
+
color: var(--ui-foreground);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[data-slot="calendar-day"] {
|
|
135
|
+
position: relative;
|
|
136
|
+
height: 34px;
|
|
137
|
+
border-radius: var(--ui-radius-row);
|
|
138
|
+
color: var(--ui-foreground);
|
|
139
|
+
font-variant-numeric: tabular-nums;
|
|
140
|
+
cursor: default;
|
|
141
|
+
user-select: none
|
|
142
|
+
|
|
143
|
+
/* A range reads as one band: tinted between, darker at both ends, rounded on the outside. */
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
[data-slot="calendar-day"]:hover:not(
|
|
147
|
+
[data-outside],
|
|
148
|
+
[data-disabled],
|
|
149
|
+
[data-unavailable],
|
|
150
|
+
[data-selected]
|
|
151
|
+
) {
|
|
152
|
+
background: var(--ui-muted);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
[data-slot="calendar-day"][data-today] {
|
|
156
|
+
font-weight: 600
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
[data-slot="calendar-day"][data-today]::after {
|
|
160
|
+
position: absolute;
|
|
161
|
+
bottom: 5px;
|
|
162
|
+
left: 50%;
|
|
163
|
+
width: 4px;
|
|
164
|
+
height: 4px;
|
|
165
|
+
margin-left: -2px;
|
|
166
|
+
border-radius: 50%;
|
|
167
|
+
background: currentColor;
|
|
168
|
+
content: "";
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
[data-slot="calendar-day"][data-today]:has(> [data-slot="stack"])::after {
|
|
172
|
+
display: none;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
[data-slot="calendar-day"]:is([data-outside], [data-disabled]) {
|
|
176
|
+
color: var(--ui-border-disabled);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
[data-slot="calendar-day"][data-unavailable] {
|
|
180
|
+
color: var(--ui-muted-foreground);
|
|
181
|
+
text-decoration: line-through;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
[data-slot="calendar-day"][data-range-middle] {
|
|
185
|
+
border-radius: 0;
|
|
186
|
+
background: var(--ui-muted);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
[data-slot="calendar-day"][data-selected]:not(
|
|
190
|
+
[data-range-start],
|
|
191
|
+
[data-range-middle],
|
|
192
|
+
[data-range-end]
|
|
193
|
+
) {
|
|
194
|
+
background: var(--ui-muted);
|
|
195
|
+
box-shadow: inset 0 0 0 1px var(--ui-border-strong);
|
|
196
|
+
font-weight: 500;
|
|
197
|
+
}
|
|
198
|
+
[data-slot="calendar-day"]:is([data-range-start], [data-range-end]) {
|
|
199
|
+
background: color-mix(in oklab, var(--ui-primary) 14%, var(--ui-surface-1));
|
|
200
|
+
font-weight: 600;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
[data-slot="calendar-day"][data-range-start]:not([data-range-end]) {
|
|
204
|
+
border-start-end-radius: 0;
|
|
205
|
+
border-end-end-radius: 0;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
[data-slot="calendar-day"][data-range-end]:not([data-range-start]) {
|
|
209
|
+
border-start-start-radius: 0;
|
|
210
|
+
border-end-start-radius: 0;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
[data-slot="calendar-day"]:focus-visible,
|
|
214
|
+
[data-slot="calendar-day"][data-selected]:focus-visible {
|
|
215
|
+
outline-offset: -3px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
[data-slot="calendar-day"] > [data-slot="stack"] {
|
|
219
|
+
align-items: center;
|
|
220
|
+
gap: 0;
|
|
221
|
+
line-height: 1.1;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
[data-slot="calendar-day"] [data-slot="hint"] {
|
|
225
|
+
color: inherit;
|
|
226
|
+
font-size: 10px;
|
|
227
|
+
opacity: 0.7;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
[data-slot="calendar-day"][data-outside] [data-slot="hint"], [data-slot="calendar-day"][data-disabled] [data-slot="hint"] {
|
|
231
|
+
display: none;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
[data-slot="calendar"] [data-slot="select-trigger"] {
|
|
235
|
+
flex: 1;
|
|
236
|
+
width: auto;
|
|
237
|
+
min-width: 0;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
[data-slot="carousel"] {
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-template-columns: minmax(0, 1fr);
|
|
6
|
+
gap: var(--ui-space-3);
|
|
7
|
+
margin-inline: auto
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[data-slot="carousel"] > [data-slot="row"] {
|
|
11
|
+
flex-wrap: nowrap;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="carousel"] > [data-slot="controls"] {
|
|
16
|
+
justify-content: center;
|
|
17
|
+
margin-bottom: var(--ui-space-1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Slides are the same width with or without Previous and Next beside them. */
|
|
21
|
+
[data-slot="carousel"]:not(
|
|
22
|
+
:has(> [data-slot="row"] > [data-slot="carousel-viewport"])
|
|
23
|
+
) {
|
|
24
|
+
width: calc(24rem - 2 * (var(--ui-size-md) + var(--ui-space-2)));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Rows under side buttons line up with the slides. */
|
|
28
|
+
[data-slot="carousel"]:has(
|
|
29
|
+
> [data-slot="row"] > [data-slot="carousel-viewport"]
|
|
30
|
+
)
|
|
31
|
+
> [data-slot="row"]:not(:has(> [data-slot="carousel-viewport"])) {
|
|
32
|
+
padding-inline: calc(var(--ui-size-md) + var(--ui-space-2));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-slot="carousel-viewport"] {
|
|
36
|
+
border-radius: var(--ui-radius-surface);
|
|
37
|
+
scrollbar-width: none
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-slot="carousel-viewport"][data-orientation="vertical"] {
|
|
41
|
+
height: 12rem
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-slot="carousel-viewport"][data-orientation="vertical"] [data-slot="carousel-content"] {
|
|
45
|
+
height: 100%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[data-slot="carousel-viewport"][data-orientation="vertical"] [data-slot="carousel-item"] {
|
|
49
|
+
flex-basis: calc((100% - var(--ui-space-4)) / 2);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[data-slot="carousel-viewport"][data-orientation="vertical"] [data-slot="tile"] {
|
|
53
|
+
height: 100%;
|
|
54
|
+
aspect-ratio: auto;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-slot="carousel-content"] {
|
|
58
|
+
display: flex;
|
|
59
|
+
gap: var(--ui-space-4)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-slot="carousel-content"][data-orientation="vertical"] {
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[data-slot="carousel-content"]:has(> [data-slot="carousel-item"] > button) {
|
|
67
|
+
gap: var(--ui-space-2);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-slot="carousel-item"] {
|
|
71
|
+
flex: 0 0 100%;
|
|
72
|
+
min-width: 0
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
[data-slot="carousel-item"]:not([data-in-view]) {
|
|
76
|
+
opacity: 0.4;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
[data-slot="carousel-item"]:has(> button) {
|
|
80
|
+
flex-basis: calc((100% - 3 * var(--ui-space-2)) / 4);
|
|
81
|
+
padding-block: 4px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[data-slot="carousel-item"] > button {
|
|
85
|
+
width: 100%;
|
|
86
|
+
height: 3rem;
|
|
87
|
+
padding: 0;
|
|
88
|
+
font-size: var(--ui-text-xs);
|
|
89
|
+
font-variant-numeric: tabular-nums
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[data-slot="carousel-item"] > button[aria-pressed="true"] {
|
|
93
|
+
background: var(--ui-primary);
|
|
94
|
+
color: var(--ui-primary-foreground);
|
|
95
|
+
}
|
|
96
|
+
[data-slot="carousel-play-toggle"][data-playing] > [data-show="stopped"],
|
|
97
|
+
[data-slot="carousel-play-toggle"]:not([data-playing]) > [data-show="playing"] {
|
|
98
|
+
display: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[data-slot="carousel-indicator-group"] {
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
gap: var(--ui-space-2);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[data-slot="carousel-indicator"] {
|
|
109
|
+
flex-shrink: 0;
|
|
110
|
+
box-sizing: border-box;
|
|
111
|
+
width: 8px;
|
|
112
|
+
height: 8px;
|
|
113
|
+
padding: 0;
|
|
114
|
+
border: 0;
|
|
115
|
+
border-radius: 999px;
|
|
116
|
+
background: var(--ui-surface-1);
|
|
117
|
+
box-shadow: inset 0 0 0 1px var(--ui-input);
|
|
118
|
+
cursor: default
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
[data-slot="carousel-indicator"]:hover:not([data-selected]) {
|
|
122
|
+
box-shadow: inset 0 0 0 1px var(--ui-border-strong);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[data-slot="carousel-indicator"][data-selected] {
|
|
126
|
+
width: 20px;
|
|
127
|
+
background: var(--ui-primary);
|
|
128
|
+
box-shadow: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
[data-slot="bar"] {
|
|
132
|
+
flex: 1;
|
|
133
|
+
height: 4px;
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
border-radius: 999px;
|
|
136
|
+
background: var(--ui-border)
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
[data-slot="bar"] > * {
|
|
140
|
+
height: 100%;
|
|
141
|
+
background: var(--ui-primary);
|
|
142
|
+
transform-origin: left;
|
|
143
|
+
scale: var(--carousel-progress) 1
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
[data-slot="bar"] > *[dir="rtl"], [data-slot="bar"] > *:is([dir="rtl"] *) {
|
|
147
|
+
transform-origin: right;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* Previous and Next sit on either side of the slides. */
|
|
151
|
+
[data-slot="carousel"] > [data-slot="row"] > [data-slot="carousel-viewport"] {
|
|
152
|
+
flex: 1;
|
|
153
|
+
min-width: 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* Pages: three slides to a page, with the content's gaps taken out of each basis. */
|
|
157
|
+
|
|
158
|
+
/* Align: slides narrower than the viewport, so start, center and end look different. */
|
|
159
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
[data-slot="checkbox"] {
|
|
4
|
+
display: inline-grid;
|
|
5
|
+
flex-shrink: 0;
|
|
6
|
+
place-items: center;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
width: var(--ui-size-icon);
|
|
9
|
+
height: var(--ui-size-icon);
|
|
10
|
+
padding: 0;
|
|
11
|
+
border: 0;
|
|
12
|
+
border-radius: 4px;
|
|
13
|
+
background: var(--ui-surface-1);
|
|
14
|
+
box-shadow: inset 0 0 0 1px var(--ui-input);
|
|
15
|
+
color: var(--ui-primary-foreground);
|
|
16
|
+
cursor: default
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="checkbox"]:hover:not(
|
|
20
|
+
[data-disabled],
|
|
21
|
+
[data-readonly],
|
|
22
|
+
[data-checked],
|
|
23
|
+
[data-indeterminate]
|
|
24
|
+
) {
|
|
25
|
+
box-shadow: inset 0 0 0 1px
|
|
26
|
+
color-mix(in oklab, var(--ui-border-strong) 45%, var(--ui-surface-1));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-slot="checkbox"]:is([data-checked], [data-indeterminate]) {
|
|
30
|
+
background: var(--ui-primary);
|
|
31
|
+
box-shadow: inset 0 0 0 1px var(--ui-border-strong);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[data-slot="checkbox"]:is([data-invalid], [aria-invalid="true"]) {
|
|
35
|
+
box-shadow: inset 0 0 0 1px var(--ui-destructive);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[data-slot="checkbox"][data-readonly]:not([data-checked], [data-indeterminate]) {
|
|
39
|
+
background: var(--ui-muted);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[data-slot="checkbox"][data-readonly]:is([data-checked], [data-indeterminate]) {
|
|
43
|
+
background: var(--ui-muted-foreground);
|
|
44
|
+
box-shadow: inset 0 0 0 1px var(--ui-muted-foreground);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-slot="checkbox"][data-disabled] {
|
|
48
|
+
box-shadow: inset 0 0 0 1px var(--ui-border);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-slot="checkbox"][data-disabled]:is([data-checked], [data-indeterminate]) {
|
|
52
|
+
background: var(--ui-border-disabled);
|
|
53
|
+
box-shadow: inset 0 0 0 1px var(--ui-border-disabled);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[data-slot="checkbox"] svg {
|
|
57
|
+
width: 12px;
|
|
58
|
+
height: 12px;
|
|
59
|
+
stroke-width: 2.5;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-slot="checkbox-indicator"] {
|
|
63
|
+
display: grid;
|
|
64
|
+
place-items: center
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[data-slot="checkbox-indicator"][data-unchecked] > svg {
|
|
68
|
+
visibility: hidden;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* A checkbox with its own content is a choice card. */
|
|
72
|
+
[data-slot="checkbox"]:not(:empty, :has(> [data-slot="checkbox-indicator"])) {
|
|
73
|
+
display: inline-flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
gap: var(--ui-space-3);
|
|
76
|
+
width: auto;
|
|
77
|
+
min-width: var(--ui-size-md);
|
|
78
|
+
height: auto;
|
|
79
|
+
min-height: var(--ui-size-md);
|
|
80
|
+
padding: 10px 14px;
|
|
81
|
+
border-radius: var(--ui-radius-surface);
|
|
82
|
+
background: var(--ui-surface-1);
|
|
83
|
+
box-shadow: inset 0 0 0 1px var(--ui-input);
|
|
84
|
+
color: var(--ui-foreground);
|
|
85
|
+
font: inherit;
|
|
86
|
+
text-align: start
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[data-slot="checkbox"]:not(:empty, :has(> [data-slot="checkbox-indicator"])):hover:not([data-disabled], [data-checked]) {
|
|
90
|
+
box-shadow: inset 0 0 0 1px
|
|
91
|
+
color-mix(in oklab, var(--ui-border-strong) 45%, var(--ui-surface-1));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
[data-slot="checkbox"]:not(:empty, :has(> [data-slot="checkbox-indicator"]))[data-checked] {
|
|
95
|
+
background: var(--ui-muted);
|
|
96
|
+
box-shadow: inset 0 0 0 1px var(--ui-border-strong);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
[data-slot="checkbox"]:not(:empty, :has(> [data-slot="checkbox-indicator"]))[data-disabled] {
|
|
100
|
+
background: var(--ui-surface-1);
|
|
101
|
+
box-shadow: inset 0 0 0 1px var(--ui-border);
|
|
102
|
+
color: var(--ui-border-disabled);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[data-slot="checkbox"]:not(:empty, :has(> [data-slot="checkbox-indicator"])) svg {
|
|
106
|
+
width: var(--ui-size-icon);
|
|
107
|
+
height: var(--ui-size-icon);
|
|
108
|
+
stroke-width: 2;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
[data-slot="checkbox"]:not(:empty, :has(> [data-slot="checkbox-indicator"])) > [data-slot="stack"] {
|
|
112
|
+
flex: 1;
|
|
113
|
+
gap: 0;
|
|
114
|
+
font-weight: 500;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
[data-slot="checkbox"]:not(:empty, :has(> [data-slot="checkbox-indicator"])) > svg:last-child:not(:first-child) {
|
|
118
|
+
margin-inline-start: auto;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
[data-slot="checkbox-group"] {
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-direction: column;
|
|
124
|
+
gap: var(--ui-space-2)
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
[data-slot="checkbox-group"][data-disabled] [data-slot="label"] {
|
|
128
|
+
color: var(--ui-border-disabled);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
[data-slot="checkbox-group"] > [data-slot="stack"] {
|
|
132
|
+
gap: var(--ui-space-2);
|
|
133
|
+
padding-inline-start: var(--ui-space-6);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
[data-slot="label"]:has(> [data-slot="checkbox"][data-disabled]) {
|
|
137
|
+
color: var(--ui-border-disabled);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
th > [data-slot="checkbox"], td > [data-slot="checkbox"] {
|
|
141
|
+
vertical-align: middle;
|
|
142
|
+
}
|
|
143
|
+
}
|