@mistriwork/ui 1.0.0-rc.57 → 1.0.0-rc.59
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/README.md +46 -12
- package/dist/Avatar.js +3 -3
- package/dist/Button.d.ts +4 -14
- package/dist/Button.js +26 -13
- package/dist/Carousel.d.ts +6 -5
- package/dist/Carousel.js +58 -67
- package/dist/Choices.d.ts +2 -9
- package/dist/Choices.js +127 -64
- package/dist/DateField.d.ts +9 -4
- package/dist/DateField.js +102 -119
- package/dist/Drawer.d.ts +1 -19
- package/dist/Drawer.js +8 -9
- package/dist/DropMenu.d.ts +8 -21
- package/dist/DropMenu.js +84 -30
- package/dist/Dropdown.d.ts +9 -8
- package/dist/Dropdown.js +69 -65
- package/dist/Field.d.ts +2 -1
- package/dist/Field.js +12 -18
- package/dist/FileField.d.ts +3 -10
- package/dist/FileField.js +12 -9
- package/dist/FormParts.d.ts +17 -10
- package/dist/FormParts.js +26 -41
- package/dist/HeroBlocks.d.ts +7 -3
- package/dist/HeroBlocks.js +11 -6
- package/dist/Modal.d.ts +6 -17
- package/dist/Modal.js +90 -21
- package/dist/Pagination.d.ts +1 -12
- package/dist/Pagination.js +17 -3
- package/dist/Popover.d.ts +1 -15
- package/dist/Popover.js +10 -15
- package/dist/Resizable.d.ts +3 -21
- package/dist/Resizable.js +14 -91
- package/dist/ScrollArea.d.ts +4 -2
- package/dist/ScrollArea.js +11 -11
- package/dist/Select.d.ts +1 -6
- package/dist/Select.js +16 -7
- package/dist/SensitiveField.d.ts +1 -8
- package/dist/SensitiveField.js +6 -4
- package/dist/Slider.d.ts +1 -5
- package/dist/Slider.js +13 -5
- package/dist/Switch.d.ts +1 -11
- package/dist/Switch.js +10 -9
- package/dist/Tabs.d.ts +3 -3
- package/dist/Tabs.js +3 -3
- package/dist/TextArea.d.ts +4 -6
- package/dist/TextArea.js +14 -5
- package/dist/TextField.d.ts +5 -9
- package/dist/TextField.js +67 -9
- package/dist/Tooltip.d.ts +1 -21
- package/dist/Tooltip.js +13 -31
- package/dist/Typeahead.d.ts +15 -18
- package/dist/Typeahead.js +151 -86
- package/dist/UiKit.d.ts +63 -4
- package/dist/UiKit.js +46 -5
- package/dist/behaviors/DaysParts.js +28 -0
- package/dist/behaviors/EditableParts.js +21 -0
- package/dist/behaviors/PickParts.js +30 -0
- package/dist/behaviors/ScrubParts.js +21 -0
- package/dist/behaviors/SortableParts.js +32 -0
- package/dist/behaviors/SpansParts.js +12 -0
- package/dist/behaviors/TransferParts.js +37 -0
- package/dist/behaviors/TurnsParts.js +31 -0
- package/dist/behaviors/WidthsParts.js +27 -0
- package/dist/behaviors/days.js +216 -0
- package/dist/behaviors/dress.js +86 -0
- package/dist/behaviors/editable.js +104 -0
- package/dist/behaviors/heard.js +22 -0
- package/dist/behaviors/index.d.ts +310 -0
- package/dist/behaviors/index.js +44 -0
- package/dist/behaviors/pick.js +158 -0
- package/dist/behaviors/scrub.js +152 -0
- package/dist/behaviors/sortable.js +170 -0
- package/dist/behaviors/spans.js +240 -0
- package/dist/behaviors/testing.js +48 -0
- package/dist/behaviors/transfer.js +202 -0
- package/dist/behaviors/turns.js +106 -0
- package/dist/behaviors/widths.js +150 -0
- package/dist/behaviors.css +309 -0
- package/dist/changeDetails.d.ts +4 -8
- package/dist/changeDetails.js +0 -6
- package/dist/conformance.js +107 -1
- package/dist/controls.css +36 -0
- package/dist/fieldFrame.d.ts +2 -15
- package/dist/fieldFrame.js +1 -17
- package/dist/index.d.ts +6 -5
- package/dist/index.js +6 -5
- package/dist/internal/Frame.d.ts +6 -0
- package/dist/internal/Frame.js +25 -0
- package/dist/internal/HelpTip.d.ts +5 -0
- package/dist/internal/HelpTip.js +37 -0
- package/dist/internal/layers.d.ts +21 -0
- package/dist/internal/layers.js +66 -0
- package/dist/internal/popups.d.ts +12 -10
- package/dist/internal/popups.js +18 -14
- package/dist/internal/told.d.ts +14 -0
- package/dist/internal/told.js +20 -0
- package/dist/internal/uiKitContext.js +6 -4
- package/dist/preferences.css +2 -3
- package/dist/style.css +5 -16
- package/dist/styles/extras.css +461 -0
- package/dist/styles/forms.css +346 -0
- package/dist/styles/guard.css +114 -0
- package/dist/styles/kit-fields.css +181 -0
- package/dist/styles/kit-parts.css +130 -0
- package/dist/styles/kit.css +558 -0
- package/dist/styles/layers.css +4 -0
- package/dist/styles/looks.css +374 -0
- package/dist/styles/m-tokens.css +173 -0
- package/dist/styles/overlays.css +107 -0
- package/dist/styles/parts.css +456 -0
- package/dist/styles/screens.css +76 -0
- package/dist/styles/ui-sdk.css +1635 -0
- package/dist/tokens.css +15 -4
- package/dist/uiKitSlots.d.ts +1 -1
- package/dist/uiKitSlots.js +18 -2
- package/package.json +13 -11
- package/dist/forms.css +0 -225
- package/dist/hero.css +0 -23
- package/dist/internal/anchor.d.ts +0 -19
- package/dist/internal/anchor.js +0 -52
- package/dist/primitives.css +0 -200
- package/dist/standalone.css +0 -478
|
@@ -0,0 +1,1635 @@
|
|
|
1
|
+
/* UI SDK's stylesheet (@ui-sdk/core 0.1.0-beta.2, dist/web.css; Apache-2.0, https://github.com/vercel-labs/ui), for the
|
|
2
|
+
parts the packages draw (autocomplete, avatar, button, calendar, checkbox, dialog, drawer, field, input, menu, pagination, popover, primitive, radio, resizable, scroll-area, select, switch, tabs, textarea, tooltip), without its rules for bare
|
|
3
|
+
elements and without the defaults styles/m-tokens.css says. Written by scripts/ui-sdk-css.mjs, which says why:
|
|
4
|
+
edit that, not this. */
|
|
5
|
+
@layer ui-sdk {
|
|
6
|
+
:where(:root, :host) {
|
|
7
|
+
/* Builds that rewrite light-dark(), like Next and Vite, read these; without them every color is invalid. */
|
|
8
|
+
--lightningcss-light: initial;
|
|
9
|
+
--lightningcss-dark: ;
|
|
10
|
+
color-scheme: light dark;
|
|
11
|
+
--ui-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
|
12
|
+
--ui-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
|
|
13
|
+
--ui-icon-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
|
|
14
|
+
--ui-icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E");
|
|
15
|
+
--ui-icon-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
|
|
16
|
+
--ui-icon-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
|
|
17
|
+
--ui-icon-eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49'/%3E%3Cpath d='M14.084 14.158a3 3 0 0 1-4.242-4.242'/%3E%3Cpath d='M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143'/%3E%3Cpath d='m2 2 20 20'/%3E%3C/svg%3E");
|
|
18
|
+
--ui-icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M8 2v4M16 2v4M3 10h18'/%3E%3Crect x='3' y='4' width='18' height='18'/%3E%3C/svg%3E");
|
|
19
|
+
--ui-icon-pipette: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='m2 22 1-1h3l9-9'/%3E%3Cpath d='M3 21v-3l9-9'/%3E%3Cpath d='m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z'/%3E%3C/svg%3E");
|
|
20
|
+
--ui-icon-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l3.1 7.2 7.9.7-6 5.2 1.8 7.7L12 18.2l-6.8 4.1 1.8-7.7-6-5.2 7.9-.7z'/%3E%3C/svg%3E");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Display rules below would otherwise show a part its component hid. */
|
|
24
|
+
[data-slot][hidden]:not([hidden="until-found"]) {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-slot] {
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-slot][hidden="until-found"] {
|
|
33
|
+
padding: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:is(
|
|
37
|
+
[data-slot="field-description"],
|
|
38
|
+
[data-slot="field-error"],
|
|
39
|
+
[data-slot="accordion-panel"],
|
|
40
|
+
[data-slot="collapsible-panel"],
|
|
41
|
+
[data-slot="tabs-panel"],
|
|
42
|
+
[data-slot="popover-content"],
|
|
43
|
+
[data-slot="hover-card-content"],
|
|
44
|
+
[data-slot="tooltip-content"],
|
|
45
|
+
[data-slot="dialog-content"],
|
|
46
|
+
[data-slot="alert-dialog-content"]
|
|
47
|
+
) {
|
|
48
|
+
line-height: var(--ui-line-height);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:where(a, button, input, select, textarea, label, summary, [data-slot]) {
|
|
52
|
+
touch-action: manipulation;
|
|
53
|
+
-webkit-tap-highlight-color: transparent;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[data-slot]:focus-visible {
|
|
57
|
+
outline: 4px solid var(--ui-ring);
|
|
58
|
+
outline-offset: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-slot] > svg {
|
|
62
|
+
flex-shrink: 0;
|
|
63
|
+
width: 1rem;
|
|
64
|
+
height: 1rem;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Drawn only when a part has no icon of its own. */
|
|
68
|
+
[data-slot="select-trigger"]:not(:has(> svg))::after,
|
|
69
|
+
[data-slot="combobox-trigger"]:not(:has(> svg))::after,
|
|
70
|
+
[data-slot="navigation-menu-trigger"]:not(:has(> svg))::after,
|
|
71
|
+
[data-slot="accordion-trigger"]:not(:has(> svg))::after,
|
|
72
|
+
[data-slot="collapsible-trigger"]:not(:has(> svg))::after,
|
|
73
|
+
[data-slot="checkbox-indicator"]:not(:has(svg))::before,
|
|
74
|
+
[data-slot="select-item-indicator"]:not(:has(svg))::before,
|
|
75
|
+
[data-slot="combobox-item-indicator"]:not(:has(svg))::before,
|
|
76
|
+
[data-slot="listbox-item-indicator"]:not(:has(svg))::before,
|
|
77
|
+
[data-slot="menu-item-indicator"]:not(:has(svg))::before,
|
|
78
|
+
[data-slot="number-input-decrement"]:not(:has(svg))::before,
|
|
79
|
+
[data-slot="number-input-increment"]:not(:has(svg))::before {
|
|
80
|
+
content: "";
|
|
81
|
+
flex-shrink: 0;
|
|
82
|
+
width: var(--ui-icon-size, 1rem);
|
|
83
|
+
height: var(--ui-icon-size, 1rem);
|
|
84
|
+
background: currentColor;
|
|
85
|
+
mask: var(--ui-icon) center / contain no-repeat;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:is(
|
|
89
|
+
[data-slot="select-trigger"],
|
|
90
|
+
[data-slot="combobox-trigger"],
|
|
91
|
+
[data-slot="navigation-menu-trigger"],
|
|
92
|
+
[data-slot="accordion-trigger"],
|
|
93
|
+
[data-slot="collapsible-trigger"]
|
|
94
|
+
) {
|
|
95
|
+
--ui-icon: var(--ui-icon-chevron);
|
|
96
|
+
|
|
97
|
+
&::after {
|
|
98
|
+
color: var(--ui-muted-foreground);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&[data-open]::after {
|
|
102
|
+
rotate: 180deg;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:is(
|
|
107
|
+
[data-slot="checkbox-indicator"],
|
|
108
|
+
[data-slot="select-item-indicator"],
|
|
109
|
+
[data-slot="combobox-item-indicator"],
|
|
110
|
+
[data-slot="listbox-item-indicator"],
|
|
111
|
+
[data-slot="menu-item-indicator"]
|
|
112
|
+
) {
|
|
113
|
+
--ui-icon: var(--ui-icon-check);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
[data-slot="checkbox-indicator"][data-indeterminate],
|
|
117
|
+
[data-slot="number-input-decrement"] {
|
|
118
|
+
--ui-icon: var(--ui-icon-minus);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:is(label, [data-slot="label"]):has(
|
|
122
|
+
> :is([data-slot="checkbox"], [data-slot="radio"], [data-slot="switch"])
|
|
123
|
+
) {
|
|
124
|
+
display: inline-flex;
|
|
125
|
+
align-items: flex-start;
|
|
126
|
+
gap: calc(var(--ui-spacing) * 1.5);
|
|
127
|
+
font-size: var(--ui-font-size);
|
|
128
|
+
line-height: var(--ui-line-height);
|
|
129
|
+
|
|
130
|
+
/* Centers the control on the first line, so a long label wraps under its text. */
|
|
131
|
+
& > :is([data-slot="checkbox"], [data-slot="radio"]) {
|
|
132
|
+
margin-block-start: calc((1lh - 1rem) / 2);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
& > [data-slot="switch"] {
|
|
136
|
+
margin-block-start: calc((1lh - 1.125rem) / 2);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
:is(
|
|
141
|
+
[data-slot="button"],
|
|
142
|
+
[data-slot="toggle"],
|
|
143
|
+
[data-slot="dialog-trigger"],
|
|
144
|
+
[data-slot="dialog-close"],
|
|
145
|
+
[data-slot="alert-dialog-trigger"],
|
|
146
|
+
[data-slot="alert-dialog-close"],
|
|
147
|
+
[data-slot="drawer-trigger"],
|
|
148
|
+
[data-slot="drawer-close"],
|
|
149
|
+
[data-slot="combobox-trigger"],
|
|
150
|
+
[data-slot="tooltip-trigger"],
|
|
151
|
+
[data-slot="popover-trigger"],
|
|
152
|
+
[data-slot="popover-close"],
|
|
153
|
+
[data-slot="menu-trigger"]
|
|
154
|
+
) {
|
|
155
|
+
display: inline-flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
gap: calc(var(--ui-spacing) * 1.5);
|
|
159
|
+
height: calc(var(--ui-spacing) * 8);
|
|
160
|
+
padding-inline: calc(var(--ui-spacing) * 3);
|
|
161
|
+
border: 1px solid var(--ui-input);
|
|
162
|
+
border-radius: var(--ui-radius);
|
|
163
|
+
background: var(--ui-background);
|
|
164
|
+
color: var(--ui-foreground);
|
|
165
|
+
font: inherit;
|
|
166
|
+
font-size: var(--ui-font-size);
|
|
167
|
+
font-weight: 500;
|
|
168
|
+
white-space: nowrap;
|
|
169
|
+
cursor: pointer;
|
|
170
|
+
user-select: none;
|
|
171
|
+
|
|
172
|
+
&:hover:not([data-disabled]) {
|
|
173
|
+
background: var(--ui-muted);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&[data-variant="solid"] {
|
|
177
|
+
border-color: var(--ui-primary);
|
|
178
|
+
background: var(--ui-primary);
|
|
179
|
+
color: var(--ui-primary-foreground);
|
|
180
|
+
|
|
181
|
+
&:hover:not([data-disabled]) {
|
|
182
|
+
background: color-mix(
|
|
183
|
+
in oklab,
|
|
184
|
+
var(--ui-primary) 85%,
|
|
185
|
+
var(--ui-background)
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&[data-variant="destructive"] {
|
|
191
|
+
border-color: color-mix(
|
|
192
|
+
in oklab,
|
|
193
|
+
var(--ui-destructive) 30%,
|
|
194
|
+
var(--ui-background)
|
|
195
|
+
);
|
|
196
|
+
background: color-mix(
|
|
197
|
+
in oklab,
|
|
198
|
+
var(--ui-destructive) 8%,
|
|
199
|
+
var(--ui-background)
|
|
200
|
+
);
|
|
201
|
+
color: var(--ui-destructive);
|
|
202
|
+
|
|
203
|
+
&:hover:not([data-disabled]) {
|
|
204
|
+
background: color-mix(
|
|
205
|
+
in oklab,
|
|
206
|
+
var(--ui-destructive) 14%,
|
|
207
|
+
var(--ui-background)
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&[data-disabled] {
|
|
213
|
+
opacity: 0.5;
|
|
214
|
+
cursor: not-allowed;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&[aria-label]:has(> svg:only-child, > [data-slot$="-icon"]:only-child) {
|
|
218
|
+
width: calc(var(--ui-spacing) * 8);
|
|
219
|
+
padding: 0;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* A trigger right after its input sits inside the input's end. Web components wrap each part, and :has() can't nest. */
|
|
224
|
+
:not([data-slot="field"]):has(
|
|
225
|
+
> [data-slot="combobox-input"] + [data-slot="combobox-trigger"]
|
|
226
|
+
),
|
|
227
|
+
:not([data-slot="field"]):has(> ui-combobox-input + ui-combobox-trigger) {
|
|
228
|
+
display: flex;
|
|
229
|
+
|
|
230
|
+
& > :is([data-slot="combobox-input"], ui-combobox-input) {
|
|
231
|
+
flex: 1;
|
|
232
|
+
min-width: 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
& [data-slot="combobox-input"] {
|
|
236
|
+
padding-inline-end: calc(var(--ui-spacing) * 8);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
& [data-slot="combobox-trigger"] {
|
|
240
|
+
position: relative;
|
|
241
|
+
width: calc(var(--ui-spacing) * 8);
|
|
242
|
+
margin-inline-start: calc(var(--ui-spacing) * -8);
|
|
243
|
+
padding: 0;
|
|
244
|
+
border-color: transparent;
|
|
245
|
+
background: transparent;
|
|
246
|
+
|
|
247
|
+
&:hover:not([data-disabled]) {
|
|
248
|
+
background: transparent;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
[data-slot="field"] {
|
|
254
|
+
display: flex;
|
|
255
|
+
flex-direction: column;
|
|
256
|
+
gap: calc(var(--ui-spacing) * 1.5);
|
|
257
|
+
min-width: 0;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
[data-slot="field-set"] {
|
|
261
|
+
display: flex;
|
|
262
|
+
flex-direction: column;
|
|
263
|
+
gap: calc(var(--ui-spacing) * 1.5);
|
|
264
|
+
min-width: 0;
|
|
265
|
+
margin: 0;
|
|
266
|
+
padding: 0;
|
|
267
|
+
border: 0;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
[data-slot="field-legend"] {
|
|
271
|
+
margin-bottom: calc(var(--ui-spacing) * 1.5);
|
|
272
|
+
padding: 0;
|
|
273
|
+
color: var(--ui-foreground);
|
|
274
|
+
font-size: var(--ui-font-size);
|
|
275
|
+
font-weight: 600;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
[data-slot="field-group"] {
|
|
279
|
+
display: flex;
|
|
280
|
+
flex-direction: column;
|
|
281
|
+
gap: calc(var(--ui-spacing) * 4);
|
|
282
|
+
margin-top: calc(var(--ui-spacing) * 3.5);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
[data-slot="field-label"] {
|
|
286
|
+
display: block;
|
|
287
|
+
color: var(--ui-foreground);
|
|
288
|
+
font-size: calc(var(--ui-font-size) - 0.0625rem);
|
|
289
|
+
font-weight: 500;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
[data-slot="field-description"] {
|
|
293
|
+
margin: 0;
|
|
294
|
+
color: var(--ui-muted-foreground);
|
|
295
|
+
font-size: calc(var(--ui-font-size) - 0.0625rem);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
[data-slot="field-error"] {
|
|
299
|
+
margin: 0;
|
|
300
|
+
color: var(--ui-destructive);
|
|
301
|
+
font-size: calc(var(--ui-font-size) - 0.0625rem);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
:is(
|
|
305
|
+
[data-slot="input"],
|
|
306
|
+
[data-slot="textarea"],
|
|
307
|
+
[data-slot="combobox-input"],
|
|
308
|
+
[data-slot="autocomplete-input"],
|
|
309
|
+
[data-slot="trigger-menu-input"]
|
|
310
|
+
) {
|
|
311
|
+
width: 100%;
|
|
312
|
+
min-width: 0;
|
|
313
|
+
height: calc(var(--ui-spacing) * 8);
|
|
314
|
+
padding-inline: calc(var(--ui-spacing) * 2.5);
|
|
315
|
+
border: 1px solid var(--ui-input);
|
|
316
|
+
border-radius: var(--ui-radius);
|
|
317
|
+
background: var(--ui-background);
|
|
318
|
+
color: var(--ui-foreground);
|
|
319
|
+
font: inherit;
|
|
320
|
+
font-size: var(--ui-font-size);
|
|
321
|
+
|
|
322
|
+
&::placeholder {
|
|
323
|
+
color: var(--ui-muted-foreground);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
&:focus-visible {
|
|
327
|
+
border-color: var(--ui-ring-border);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
&[data-invalid] {
|
|
331
|
+
border-color: var(--ui-destructive);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
&[data-disabled] {
|
|
335
|
+
opacity: 0.5;
|
|
336
|
+
cursor: not-allowed;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
:is([data-slot="combobox-label"], [data-slot="autocomplete-label"]) {
|
|
341
|
+
display: block;
|
|
342
|
+
font-size: calc(var(--ui-font-size) - 0.0625rem);
|
|
343
|
+
font-weight: 500;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
:is([data-slot="textarea"], [data-slot="trigger-menu-input"]) {
|
|
347
|
+
height: auto;
|
|
348
|
+
min-height: calc(var(--ui-spacing) * 20);
|
|
349
|
+
padding-block: calc(var(--ui-spacing) * 2);
|
|
350
|
+
resize: vertical;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
:is(
|
|
354
|
+
[data-slot="input"],
|
|
355
|
+
[data-slot="textarea"],
|
|
356
|
+
[data-slot="select-trigger"],
|
|
357
|
+
[data-slot="combobox-input"],
|
|
358
|
+
[data-slot="autocomplete-input"]
|
|
359
|
+
)[data-invalid]:focus-visible {
|
|
360
|
+
border-color: var(--ui-destructive);
|
|
361
|
+
outline-color: color-mix(in oklab, var(--ui-destructive) 20%, transparent);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
:is([data-slot="checkbox"], [data-slot="radio"]) {
|
|
365
|
+
display: inline-flex;
|
|
366
|
+
flex-shrink: 0;
|
|
367
|
+
align-items: center;
|
|
368
|
+
justify-content: center;
|
|
369
|
+
width: 1rem;
|
|
370
|
+
height: 1rem;
|
|
371
|
+
padding: 0;
|
|
372
|
+
border: 1px solid var(--ui-input);
|
|
373
|
+
border-radius: calc(var(--ui-radius) / 2);
|
|
374
|
+
background: var(--ui-background);
|
|
375
|
+
color: var(--ui-primary-foreground);
|
|
376
|
+
font: inherit;
|
|
377
|
+
cursor: pointer;
|
|
378
|
+
|
|
379
|
+
&[data-disabled] {
|
|
380
|
+
opacity: 0.5;
|
|
381
|
+
cursor: not-allowed;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
&[data-invalid] {
|
|
385
|
+
border-color: var(--ui-destructive);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
[data-slot="checkbox"]:is([data-checked], [data-indeterminate]) {
|
|
390
|
+
border-color: var(--ui-primary);
|
|
391
|
+
background: var(--ui-primary);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
[data-slot="checkbox-indicator"] {
|
|
395
|
+
--ui-icon-size: 0.75rem;
|
|
396
|
+
display: flex;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
[data-slot="radio-group"] {
|
|
400
|
+
display: flex;
|
|
401
|
+
flex-direction: column;
|
|
402
|
+
gap: calc(var(--ui-spacing) * 2);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
[data-slot="radio"] {
|
|
406
|
+
border-radius: 50%;
|
|
407
|
+
|
|
408
|
+
&[data-checked] {
|
|
409
|
+
border-color: var(--ui-primary);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
[data-slot="radio-indicator"] {
|
|
414
|
+
width: 0.5rem;
|
|
415
|
+
height: 0.5rem;
|
|
416
|
+
border-radius: 50%;
|
|
417
|
+
background: var(--ui-primary);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/* Any radius above zero turns the switch and slider thumb fully round. */
|
|
421
|
+
[data-slot="switch"] {
|
|
422
|
+
display: inline-flex;
|
|
423
|
+
flex-shrink: 0;
|
|
424
|
+
align-items: center;
|
|
425
|
+
width: 2rem;
|
|
426
|
+
height: 1.125rem;
|
|
427
|
+
padding: 2px;
|
|
428
|
+
border: 1px solid var(--ui-input);
|
|
429
|
+
border-radius: calc(var(--ui-radius) * 999);
|
|
430
|
+
background: var(--ui-muted);
|
|
431
|
+
font: inherit;
|
|
432
|
+
cursor: pointer;
|
|
433
|
+
|
|
434
|
+
&[data-checked] {
|
|
435
|
+
border-color: var(--ui-primary);
|
|
436
|
+
background: var(--ui-primary);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
&[data-disabled] {
|
|
440
|
+
opacity: 0.5;
|
|
441
|
+
cursor: not-allowed;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
[data-slot="switch-thumb"] {
|
|
446
|
+
width: 0.75rem;
|
|
447
|
+
height: 0.75rem;
|
|
448
|
+
border-radius: calc(var(--ui-radius) * 999);
|
|
449
|
+
background: var(--ui-muted-foreground);
|
|
450
|
+
|
|
451
|
+
&[data-checked] {
|
|
452
|
+
margin-inline-start: auto;
|
|
453
|
+
background: var(--ui-primary-foreground);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
[data-slot="avatar"] {
|
|
458
|
+
position: relative;
|
|
459
|
+
display: inline-flex;
|
|
460
|
+
flex-shrink: 0;
|
|
461
|
+
align-items: center;
|
|
462
|
+
justify-content: center;
|
|
463
|
+
width: calc(var(--ui-spacing) * 8);
|
|
464
|
+
height: calc(var(--ui-spacing) * 8);
|
|
465
|
+
overflow: hidden;
|
|
466
|
+
border-radius: var(--ui-radius);
|
|
467
|
+
background: var(--ui-muted);
|
|
468
|
+
color: var(--ui-muted-foreground);
|
|
469
|
+
font-size: calc(var(--ui-font-size) - 0.125rem);
|
|
470
|
+
font-weight: 500;
|
|
471
|
+
user-select: none;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
[data-slot="avatar-image"] {
|
|
475
|
+
width: 100%;
|
|
476
|
+
height: 100%;
|
|
477
|
+
object-fit: cover;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
[data-slot="separator"] {
|
|
481
|
+
align-self: center;
|
|
482
|
+
width: 100%;
|
|
483
|
+
height: 1px;
|
|
484
|
+
background: var(--ui-border);
|
|
485
|
+
|
|
486
|
+
&[data-orientation="vertical"] {
|
|
487
|
+
flex-shrink: 0;
|
|
488
|
+
align-self: stretch;
|
|
489
|
+
width: 1px;
|
|
490
|
+
height: auto;
|
|
491
|
+
min-height: calc(var(--ui-spacing) * 4);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
[data-slot="select-trigger"] {
|
|
496
|
+
display: inline-flex;
|
|
497
|
+
align-items: center;
|
|
498
|
+
justify-content: space-between;
|
|
499
|
+
gap: calc(var(--ui-spacing) * 2);
|
|
500
|
+
min-width: 12rem;
|
|
501
|
+
height: calc(var(--ui-spacing) * 8);
|
|
502
|
+
padding-inline: calc(var(--ui-spacing) * 2.5);
|
|
503
|
+
border: 1px solid var(--ui-input);
|
|
504
|
+
border-radius: var(--ui-radius);
|
|
505
|
+
background: var(--ui-background);
|
|
506
|
+
color: var(--ui-foreground);
|
|
507
|
+
font: inherit;
|
|
508
|
+
font-size: var(--ui-font-size);
|
|
509
|
+
text-align: start;
|
|
510
|
+
cursor: pointer;
|
|
511
|
+
|
|
512
|
+
&:is(:focus-visible, [data-open]) {
|
|
513
|
+
border-color: var(--ui-ring-border);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
&[data-invalid] {
|
|
517
|
+
border-color: var(--ui-destructive);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
&[data-disabled] {
|
|
521
|
+
opacity: 0.5;
|
|
522
|
+
cursor: not-allowed;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
[data-slot="field"] [data-slot="select-trigger"] {
|
|
527
|
+
width: 100%;
|
|
528
|
+
min-width: 0;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
[data-slot="select-value"][data-placeholder] {
|
|
532
|
+
color: var(--ui-muted-foreground);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
:is(
|
|
536
|
+
[data-slot="menu-content"],
|
|
537
|
+
[data-slot="select-content"],
|
|
538
|
+
[data-slot="combobox-content"],
|
|
539
|
+
[data-slot="autocomplete-content"],
|
|
540
|
+
[data-slot="trigger-menu-content"],
|
|
541
|
+
[data-slot="popover-content"],
|
|
542
|
+
[data-slot="hover-card-content"],
|
|
543
|
+
[data-slot="navigation-menu-viewport"],
|
|
544
|
+
:where([data-slot="navigation-menu-content"][popover])
|
|
545
|
+
) {
|
|
546
|
+
min-width: 10rem;
|
|
547
|
+
max-height: var(--available-height);
|
|
548
|
+
margin: 0;
|
|
549
|
+
padding: calc(var(--ui-spacing) * 1);
|
|
550
|
+
overflow-y: auto;
|
|
551
|
+
overscroll-behavior: contain;
|
|
552
|
+
border: 1px solid var(--ui-border);
|
|
553
|
+
border-radius: calc(var(--ui-radius) * 1.5);
|
|
554
|
+
background: var(--ui-background);
|
|
555
|
+
box-shadow: var(--ui-shadow);
|
|
556
|
+
color: var(--ui-foreground);
|
|
557
|
+
font-size: var(--ui-font-size);
|
|
558
|
+
outline: none;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
:is(
|
|
562
|
+
[data-slot="select-content"],
|
|
563
|
+
[data-slot="combobox-content"],
|
|
564
|
+
[data-slot="autocomplete-content"]
|
|
565
|
+
) {
|
|
566
|
+
min-width: var(--anchor-width);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
:is(
|
|
570
|
+
[data-slot="combobox-empty"],
|
|
571
|
+
[data-slot="autocomplete-empty"],
|
|
572
|
+
[data-slot="command-empty"],
|
|
573
|
+
[data-slot="trigger-menu-empty"]
|
|
574
|
+
):not(:empty) {
|
|
575
|
+
padding: calc(var(--ui-spacing) * 2);
|
|
576
|
+
color: var(--ui-muted-foreground);
|
|
577
|
+
font-size: calc(var(--ui-font-size) - 0.0625rem);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
:is([data-slot="popover-content"], [data-slot="hover-card-content"]) {
|
|
581
|
+
display: flex;
|
|
582
|
+
flex-direction: column;
|
|
583
|
+
gap: calc(var(--ui-spacing) * 2);
|
|
584
|
+
max-width: 20rem;
|
|
585
|
+
padding: calc(var(--ui-spacing) * 4);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
[data-slot="tooltip-content"] {
|
|
589
|
+
margin: 0;
|
|
590
|
+
padding: calc(var(--ui-spacing) * 1) calc(var(--ui-spacing) * 2);
|
|
591
|
+
border: 0;
|
|
592
|
+
border-radius: var(--ui-radius);
|
|
593
|
+
overflow: visible;
|
|
594
|
+
background: var(--ui-foreground);
|
|
595
|
+
color: var(--ui-background);
|
|
596
|
+
font-size: calc(var(--ui-font-size) - 0.125rem);
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
[data-slot="popover-title"] {
|
|
600
|
+
margin: 0;
|
|
601
|
+
font-size: var(--ui-font-size);
|
|
602
|
+
font-weight: 600;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
[data-slot="popover-description"] {
|
|
606
|
+
margin: 0;
|
|
607
|
+
color: var(--ui-muted-foreground);
|
|
608
|
+
font-size: calc(var(--ui-font-size) - 0.0625rem);
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
:is(
|
|
612
|
+
[data-slot="menu-item"],
|
|
613
|
+
[data-slot="menu-checkbox-item"],
|
|
614
|
+
[data-slot="menu-radio-item"],
|
|
615
|
+
[data-slot="select-item"],
|
|
616
|
+
[data-slot="combobox-item"],
|
|
617
|
+
[data-slot="autocomplete-item"],
|
|
618
|
+
[data-slot="command-item"],
|
|
619
|
+
[data-slot="listbox-item"],
|
|
620
|
+
[data-slot="trigger-menu-item"],
|
|
621
|
+
:where([data-slot="menu-content"]) [data-slot="menu-trigger"]
|
|
622
|
+
) {
|
|
623
|
+
display: flex;
|
|
624
|
+
align-items: center;
|
|
625
|
+
gap: calc(var(--ui-spacing) * 2);
|
|
626
|
+
min-height: calc(var(--ui-spacing) * 7.5);
|
|
627
|
+
padding-inline: calc(var(--ui-spacing) * 2);
|
|
628
|
+
border-radius: max(0px, calc(var(--ui-radius) * 1.5 - var(--ui-spacing)));
|
|
629
|
+
outline: none;
|
|
630
|
+
cursor: default;
|
|
631
|
+
user-select: none;
|
|
632
|
+
|
|
633
|
+
&[data-highlighted] {
|
|
634
|
+
background: var(--ui-muted);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
&[data-disabled] {
|
|
638
|
+
opacity: 0.5;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
&[data-destructive] {
|
|
642
|
+
color: var(--ui-destructive);
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
:where([data-slot="menu-content"]) [data-slot="menu-trigger"] {
|
|
647
|
+
width: 100%;
|
|
648
|
+
height: auto;
|
|
649
|
+
justify-content: flex-start;
|
|
650
|
+
border: 0;
|
|
651
|
+
background: transparent;
|
|
652
|
+
font-weight: inherit;
|
|
653
|
+
|
|
654
|
+
&[data-open] {
|
|
655
|
+
background: var(--ui-muted);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
&:not(:has(> svg))::after {
|
|
659
|
+
width: 1rem;
|
|
660
|
+
height: 1rem;
|
|
661
|
+
margin-inline-start: auto;
|
|
662
|
+
background: currentColor;
|
|
663
|
+
color: var(--ui-muted-foreground);
|
|
664
|
+
content: "";
|
|
665
|
+
mask: var(--ui-icon-chevron) center / contain no-repeat;
|
|
666
|
+
rotate: -90deg;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
&:is([dir="rtl"] *)::after {
|
|
670
|
+
rotate: 90deg;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
:is(
|
|
675
|
+
[data-slot="select-item-indicator"],
|
|
676
|
+
[data-slot="combobox-item-indicator"],
|
|
677
|
+
[data-slot="listbox-item-indicator"]
|
|
678
|
+
) {
|
|
679
|
+
display: flex;
|
|
680
|
+
margin-inline-start: auto;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
:is([data-slot="menu-checkbox-item"], [data-slot="menu-radio-item"]) {
|
|
684
|
+
position: relative;
|
|
685
|
+
padding-inline-start: calc(var(--ui-spacing) * 4 + 1rem);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
[data-slot="menu-item-indicator"] {
|
|
689
|
+
position: absolute;
|
|
690
|
+
inset-inline-start: calc(var(--ui-spacing) * 2);
|
|
691
|
+
display: flex;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
:is(
|
|
695
|
+
[data-slot="checkbox-indicator"],
|
|
696
|
+
[data-slot="radio-indicator"],
|
|
697
|
+
[data-slot="menu-item-indicator"],
|
|
698
|
+
[data-slot="select-item-indicator"],
|
|
699
|
+
[data-slot="combobox-item-indicator"],
|
|
700
|
+
[data-slot="listbox-item-indicator"]
|
|
701
|
+
)[data-unchecked] {
|
|
702
|
+
visibility: hidden;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
:is([data-slot="command-shortcut"], [data-slot="menu-shortcut"]) {
|
|
706
|
+
margin-inline-start: auto;
|
|
707
|
+
color: var(--ui-muted-foreground);
|
|
708
|
+
font-size: calc(var(--ui-font-size) - 0.125rem);
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
:is([data-slot="menu-group-label"], [data-slot="command-group-label"]) {
|
|
712
|
+
padding: calc(var(--ui-spacing) * 1.5) calc(var(--ui-spacing) * 2)
|
|
713
|
+
calc(var(--ui-spacing) * 1);
|
|
714
|
+
color: var(--ui-muted-foreground);
|
|
715
|
+
font-size: calc(var(--ui-font-size) - 0.125rem);
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
:is([data-slot="menu-separator"], [data-slot="command-separator"]) {
|
|
719
|
+
height: 1px;
|
|
720
|
+
margin: calc(var(--ui-spacing) * 1) calc(var(--ui-spacing) * -1);
|
|
721
|
+
background: var(--ui-border);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
[data-slot="tabs"] {
|
|
725
|
+
display: flex;
|
|
726
|
+
flex-direction: column;
|
|
727
|
+
|
|
728
|
+
&[data-orientation="vertical"] {
|
|
729
|
+
flex-direction: row;
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
[data-slot="tabs-list"] {
|
|
734
|
+
display: flex;
|
|
735
|
+
border-bottom: 1px solid var(--ui-border);
|
|
736
|
+
|
|
737
|
+
&[data-orientation="vertical"] {
|
|
738
|
+
flex-direction: column;
|
|
739
|
+
border-bottom: 0;
|
|
740
|
+
border-inline-end: 1px solid var(--ui-border);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
[data-slot="tabs-tab"] {
|
|
745
|
+
display: inline-flex;
|
|
746
|
+
align-items: center;
|
|
747
|
+
gap: calc(var(--ui-spacing) * 1.5);
|
|
748
|
+
height: calc(var(--ui-spacing) * 8);
|
|
749
|
+
margin-bottom: -1px;
|
|
750
|
+
padding-inline: calc(var(--ui-spacing) * 3);
|
|
751
|
+
border: 0;
|
|
752
|
+
border-bottom: 2px solid transparent;
|
|
753
|
+
border-radius: 0;
|
|
754
|
+
background: none;
|
|
755
|
+
color: var(--ui-muted-foreground);
|
|
756
|
+
font: inherit;
|
|
757
|
+
font-size: var(--ui-font-size);
|
|
758
|
+
font-weight: 500;
|
|
759
|
+
cursor: pointer;
|
|
760
|
+
|
|
761
|
+
&:hover:not([data-disabled]) {
|
|
762
|
+
color: var(--ui-foreground);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
&[data-selected] {
|
|
766
|
+
border-color: var(--ui-foreground);
|
|
767
|
+
color: var(--ui-foreground);
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
&[data-disabled] {
|
|
771
|
+
opacity: 0.5;
|
|
772
|
+
cursor: not-allowed;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
&[data-orientation="vertical"] {
|
|
776
|
+
margin-bottom: 0;
|
|
777
|
+
margin-inline-end: -1px;
|
|
778
|
+
border-bottom: 0;
|
|
779
|
+
border-inline-end: 2px solid transparent;
|
|
780
|
+
|
|
781
|
+
&[data-selected] {
|
|
782
|
+
border-color: var(--ui-foreground);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
[data-slot="tabs-panel"] {
|
|
788
|
+
font-size: var(--ui-font-size);
|
|
789
|
+
|
|
790
|
+
&:not([hidden]) {
|
|
791
|
+
padding-block-start: calc(var(--ui-spacing) * 3);
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
&[data-orientation="vertical"]:not([hidden]) {
|
|
795
|
+
padding-block-start: 0;
|
|
796
|
+
padding-inline-start: calc(var(--ui-spacing) * 3);
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
[data-slot="drawer-backdrop"][data-hidden] {
|
|
801
|
+
display: none;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
:is(
|
|
805
|
+
[data-slot="dialog-backdrop"],
|
|
806
|
+
[data-slot="alert-dialog-backdrop"],
|
|
807
|
+
[data-slot="drawer-backdrop"]
|
|
808
|
+
) {
|
|
809
|
+
position: fixed;
|
|
810
|
+
inset: 0;
|
|
811
|
+
z-index: 50;
|
|
812
|
+
width: auto;
|
|
813
|
+
height: auto;
|
|
814
|
+
margin: 0;
|
|
815
|
+
padding: 0;
|
|
816
|
+
border: 0;
|
|
817
|
+
background: var(--ui-overlay);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/* Matches what the drawer sets once it runs, so a drawer open in server HTML doesn't sit in the page first. */
|
|
821
|
+
[data-slot="drawer-viewport"] {
|
|
822
|
+
position: fixed;
|
|
823
|
+
inset: 0;
|
|
824
|
+
z-index: 50;
|
|
825
|
+
display: flex;
|
|
826
|
+
flex-direction: column;
|
|
827
|
+
justify-content: flex-end;
|
|
828
|
+
pointer-events: none;
|
|
829
|
+
|
|
830
|
+
&[data-side="top"] {
|
|
831
|
+
justify-content: flex-start;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
&:is([data-side="left"], [data-side="right"]) {
|
|
835
|
+
flex-direction: row;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
/* Physical margins, since a left drawer stays on the left in right-to-left pages. */
|
|
839
|
+
&[data-side="left"] > * {
|
|
840
|
+
margin-right: auto;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
&[data-side="right"] > * {
|
|
844
|
+
margin-left: auto;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
& > * {
|
|
848
|
+
pointer-events: auto;
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
:is([data-slot="dialog-content"], [data-slot="alert-dialog-content"]) {
|
|
853
|
+
position: fixed;
|
|
854
|
+
inset: 0;
|
|
855
|
+
z-index: 50;
|
|
856
|
+
display: flex;
|
|
857
|
+
flex-direction: column;
|
|
858
|
+
gap: calc(var(--ui-spacing) * 4);
|
|
859
|
+
width: min(28rem, calc(100% - 2rem));
|
|
860
|
+
height: fit-content;
|
|
861
|
+
max-height: calc(100dvh - 2rem);
|
|
862
|
+
margin: auto;
|
|
863
|
+
padding: calc(var(--ui-spacing) * 6);
|
|
864
|
+
overflow-y: auto;
|
|
865
|
+
overscroll-behavior: contain;
|
|
866
|
+
border: 1px solid var(--ui-border);
|
|
867
|
+
border-radius: calc(var(--ui-radius) * 1.5);
|
|
868
|
+
background: var(--ui-background);
|
|
869
|
+
box-shadow: var(--ui-shadow);
|
|
870
|
+
color: var(--ui-foreground);
|
|
871
|
+
font-size: var(--ui-font-size);
|
|
872
|
+
outline: none;
|
|
873
|
+
|
|
874
|
+
/* A sheet places the dialog by its top, so the centering inset and margins come off. */
|
|
875
|
+
&[data-presentation="sheet"] {
|
|
876
|
+
inset: auto;
|
|
877
|
+
margin-block: 0;
|
|
878
|
+
border-end-start-radius: 0;
|
|
879
|
+
border-end-end-radius: 0;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
[data-slot="drawer-content"] {
|
|
884
|
+
position: relative;
|
|
885
|
+
display: flex;
|
|
886
|
+
flex-direction: column;
|
|
887
|
+
gap: calc(var(--ui-spacing) * 4);
|
|
888
|
+
width: 100%;
|
|
889
|
+
max-height: 85dvh;
|
|
890
|
+
padding: calc(var(--ui-spacing) * 6);
|
|
891
|
+
border: 1px solid var(--ui-border);
|
|
892
|
+
background: var(--ui-background);
|
|
893
|
+
box-shadow: var(--ui-shadow);
|
|
894
|
+
color: var(--ui-foreground);
|
|
895
|
+
font-size: var(--ui-font-size);
|
|
896
|
+
line-height: var(--ui-line-height);
|
|
897
|
+
outline: none;
|
|
898
|
+
|
|
899
|
+
/* Covers the gap a drag past the edge would open. */
|
|
900
|
+
&::after {
|
|
901
|
+
position: absolute;
|
|
902
|
+
background: inherit;
|
|
903
|
+
content: "";
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
&:is([data-side="bottom"], [data-side="top"]) {
|
|
907
|
+
max-width: 32rem;
|
|
908
|
+
height: fit-content;
|
|
909
|
+
margin-inline: auto;
|
|
910
|
+
|
|
911
|
+
&::after {
|
|
912
|
+
inset-inline: -1px;
|
|
913
|
+
height: 6rem;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
&[data-side="bottom"] {
|
|
918
|
+
border-bottom: 0;
|
|
919
|
+
border-start-start-radius: calc(var(--ui-radius) * 1.5);
|
|
920
|
+
border-start-end-radius: calc(var(--ui-radius) * 1.5);
|
|
921
|
+
|
|
922
|
+
&::after {
|
|
923
|
+
top: 100%;
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
&[data-side="top"] {
|
|
928
|
+
border-top: 0;
|
|
929
|
+
border-end-start-radius: calc(var(--ui-radius) * 1.5);
|
|
930
|
+
border-end-end-radius: calc(var(--ui-radius) * 1.5);
|
|
931
|
+
|
|
932
|
+
&::after {
|
|
933
|
+
bottom: 100%;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
&:is([data-side="left"], [data-side="right"]) {
|
|
938
|
+
width: 20rem;
|
|
939
|
+
max-width: 85vw;
|
|
940
|
+
height: 100%;
|
|
941
|
+
max-height: none;
|
|
942
|
+
|
|
943
|
+
&::after {
|
|
944
|
+
inset-block: 0;
|
|
945
|
+
width: 6rem;
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
&[data-side="left"]::after {
|
|
950
|
+
right: 100%;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
&[data-side="right"]::after {
|
|
954
|
+
left: 100%;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
:is(
|
|
959
|
+
[data-slot="dialog-title"],
|
|
960
|
+
[data-slot="alert-dialog-title"],
|
|
961
|
+
[data-slot="drawer-title"]
|
|
962
|
+
) {
|
|
963
|
+
margin: 0;
|
|
964
|
+
font-size: calc(var(--ui-font-size) + 0.125rem);
|
|
965
|
+
font-weight: 600;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
:is(
|
|
969
|
+
[data-slot="dialog-description"],
|
|
970
|
+
[data-slot="alert-dialog-description"],
|
|
971
|
+
[data-slot="drawer-description"]
|
|
972
|
+
) {
|
|
973
|
+
margin: calc(var(--ui-spacing) * -2) 0 0;
|
|
974
|
+
color: var(--ui-muted-foreground);
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
/* Drawn only when a part has no icon of its own. */
|
|
978
|
+
:is(
|
|
979
|
+
[data-slot="calendar-previous"],
|
|
980
|
+
[data-slot="calendar-next"],
|
|
981
|
+
[data-slot="carousel-previous"],
|
|
982
|
+
[data-slot="carousel-next"],
|
|
983
|
+
[data-slot="pagination-previous"],
|
|
984
|
+
[data-slot="pagination-next"],
|
|
985
|
+
[data-slot="tree-indicator"],
|
|
986
|
+
[data-slot="password-input-toggle"],
|
|
987
|
+
[data-slot="date-picker-trigger"],
|
|
988
|
+
[data-slot="date-picker-clear"],
|
|
989
|
+
[data-slot="color-picker-eye-dropper"],
|
|
990
|
+
[data-slot="file-input-item-remove"],
|
|
991
|
+
[data-slot="token-input-token-remove"],
|
|
992
|
+
[data-slot="toast-close"],
|
|
993
|
+
[data-slot="otp-input-separator"]
|
|
994
|
+
):not(:has(svg))::before {
|
|
995
|
+
content: "";
|
|
996
|
+
flex-shrink: 0;
|
|
997
|
+
width: var(--ui-icon-size, 1rem);
|
|
998
|
+
height: var(--ui-icon-size, 1rem);
|
|
999
|
+
background: currentColor;
|
|
1000
|
+
mask: var(--ui-icon) center / contain no-repeat;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
:is(
|
|
1004
|
+
[data-slot="calendar-previous"],
|
|
1005
|
+
[data-slot="calendar-next"],
|
|
1006
|
+
[data-slot="carousel-previous"],
|
|
1007
|
+
[data-slot="carousel-next"],
|
|
1008
|
+
[data-slot="pagination-previous"],
|
|
1009
|
+
[data-slot="pagination-next"],
|
|
1010
|
+
[data-slot="tree-indicator"]
|
|
1011
|
+
) {
|
|
1012
|
+
--ui-icon: var(--ui-icon-chevron);
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
:is(
|
|
1016
|
+
[data-slot="calendar-previous"],
|
|
1017
|
+
[data-slot="carousel-previous"],
|
|
1018
|
+
[data-slot="pagination-previous"]
|
|
1019
|
+
)::before {
|
|
1020
|
+
rotate: 90deg;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
:is(
|
|
1024
|
+
[data-slot="calendar-next"],
|
|
1025
|
+
[data-slot="carousel-next"],
|
|
1026
|
+
[data-slot="pagination-next"]
|
|
1027
|
+
)::before {
|
|
1028
|
+
rotate: -90deg;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
:is(
|
|
1032
|
+
[data-slot="calendar-previous"],
|
|
1033
|
+
[data-slot="carousel-previous"],
|
|
1034
|
+
[data-slot="pagination-previous"]
|
|
1035
|
+
):is([dir="rtl"] *)::before {
|
|
1036
|
+
rotate: -90deg;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
:is(
|
|
1040
|
+
[data-slot="calendar-next"],
|
|
1041
|
+
[data-slot="carousel-next"],
|
|
1042
|
+
[data-slot="pagination-next"]
|
|
1043
|
+
):is([dir="rtl"] *)::before {
|
|
1044
|
+
rotate: 90deg;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
:is(
|
|
1048
|
+
[data-slot="carousel-previous"],
|
|
1049
|
+
[data-slot="carousel-next"],
|
|
1050
|
+
[data-slot="pagination-previous"],
|
|
1051
|
+
[data-slot="pagination-next"],
|
|
1052
|
+
[data-slot="pagination-link"],
|
|
1053
|
+
[data-slot="color-picker-eye-dropper"],
|
|
1054
|
+
[data-slot="file-input-trigger"],
|
|
1055
|
+
[data-slot="toast-action"],
|
|
1056
|
+
[data-slot="toolbar-button"],
|
|
1057
|
+
[data-slot="toolbar-link"]
|
|
1058
|
+
) {
|
|
1059
|
+
display: inline-flex;
|
|
1060
|
+
flex-shrink: 0;
|
|
1061
|
+
align-items: center;
|
|
1062
|
+
justify-content: center;
|
|
1063
|
+
gap: calc(var(--ui-spacing) * 1.5);
|
|
1064
|
+
min-width: calc(var(--ui-spacing) * 8);
|
|
1065
|
+
height: calc(var(--ui-spacing) * 8);
|
|
1066
|
+
padding-inline: calc(var(--ui-spacing) * 3);
|
|
1067
|
+
border: 1px solid var(--ui-input);
|
|
1068
|
+
border-radius: var(--ui-radius);
|
|
1069
|
+
background: var(--ui-background);
|
|
1070
|
+
color: var(--ui-foreground);
|
|
1071
|
+
font: inherit;
|
|
1072
|
+
font-size: var(--ui-font-size);
|
|
1073
|
+
font-weight: 500;
|
|
1074
|
+
font-variant-numeric: tabular-nums;
|
|
1075
|
+
text-decoration: none;
|
|
1076
|
+
white-space: nowrap;
|
|
1077
|
+
cursor: pointer;
|
|
1078
|
+
user-select: none;
|
|
1079
|
+
|
|
1080
|
+
&:hover:not([data-disabled]) {
|
|
1081
|
+
background: var(--ui-muted);
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
&[data-disabled] {
|
|
1085
|
+
opacity: 0.5;
|
|
1086
|
+
cursor: not-allowed;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
&[data-variant="solid"] {
|
|
1090
|
+
border-color: var(--ui-primary);
|
|
1091
|
+
background: var(--ui-primary);
|
|
1092
|
+
color: var(--ui-primary-foreground);
|
|
1093
|
+
|
|
1094
|
+
&:hover:not([data-disabled]) {
|
|
1095
|
+
background: color-mix(
|
|
1096
|
+
in oklab,
|
|
1097
|
+
var(--ui-primary) 85%,
|
|
1098
|
+
var(--ui-background)
|
|
1099
|
+
);
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
:is(
|
|
1105
|
+
[data-slot="carousel-previous"],
|
|
1106
|
+
[data-slot="carousel-next"],
|
|
1107
|
+
[data-slot="pagination-previous"],
|
|
1108
|
+
[data-slot="pagination-next"],
|
|
1109
|
+
[data-slot="color-picker-eye-dropper"]
|
|
1110
|
+
):not(:has(:not(svg, [data-slot="visually-hidden"]))) {
|
|
1111
|
+
width: calc(var(--ui-spacing) * 8);
|
|
1112
|
+
padding: 0;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
/* Small icon buttons that sit inside another part, so they have no border of their own. */
|
|
1116
|
+
:is(
|
|
1117
|
+
[data-slot="calendar-previous"],
|
|
1118
|
+
[data-slot="calendar-next"],
|
|
1119
|
+
[data-slot="date-picker-trigger"],
|
|
1120
|
+
[data-slot="date-picker-clear"],
|
|
1121
|
+
[data-slot="password-input-toggle"],
|
|
1122
|
+
[data-slot="file-input-item-remove"],
|
|
1123
|
+
[data-slot="toast-close"]
|
|
1124
|
+
) {
|
|
1125
|
+
display: inline-flex;
|
|
1126
|
+
flex-shrink: 0;
|
|
1127
|
+
align-items: center;
|
|
1128
|
+
justify-content: center;
|
|
1129
|
+
width: calc(var(--ui-spacing) * 7);
|
|
1130
|
+
height: calc(var(--ui-spacing) * 7);
|
|
1131
|
+
padding: 0;
|
|
1132
|
+
border: 0;
|
|
1133
|
+
border-radius: max(0px, calc(var(--ui-radius) - 2px));
|
|
1134
|
+
background: transparent;
|
|
1135
|
+
color: var(--ui-muted-foreground);
|
|
1136
|
+
font: inherit;
|
|
1137
|
+
cursor: pointer;
|
|
1138
|
+
|
|
1139
|
+
&:hover:not([data-disabled]) {
|
|
1140
|
+
background: var(--ui-muted);
|
|
1141
|
+
color: var(--ui-foreground);
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
&[data-disabled] {
|
|
1145
|
+
opacity: 0.5;
|
|
1146
|
+
cursor: not-allowed;
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
/* The trigger and clear button right after the input sit inside the input's end. */
|
|
1151
|
+
:not([data-slot="field"]):has(
|
|
1152
|
+
> [data-slot="date-picker-input"]
|
|
1153
|
+
+ :is([data-slot="date-picker-trigger"], [data-slot="date-picker-clear"])
|
|
1154
|
+
),
|
|
1155
|
+
:not([data-slot="field"]):has(
|
|
1156
|
+
> ui-date-picker-input + :is(ui-date-picker-trigger, ui-date-picker-clear)
|
|
1157
|
+
) {
|
|
1158
|
+
display: flex;
|
|
1159
|
+
align-items: center;
|
|
1160
|
+
|
|
1161
|
+
& [data-slot="date-picker-input"] {
|
|
1162
|
+
flex: 1;
|
|
1163
|
+
padding-inline-end: calc(var(--ui-spacing) * 8);
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
& [data-slot="date-picker-trigger"] {
|
|
1167
|
+
position: relative;
|
|
1168
|
+
margin-inline-start: calc(var(--ui-spacing) * -7);
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
&:has([data-slot="date-picker-clear"]) {
|
|
1172
|
+
& [data-slot="date-picker-input"] {
|
|
1173
|
+
padding-inline-end: calc(var(--ui-spacing) * 14);
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
& [data-slot="date-picker-clear"] {
|
|
1177
|
+
position: relative;
|
|
1178
|
+
margin-inline-start: calc(var(--ui-spacing) * -13);
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
& [data-slot="date-picker-trigger"] {
|
|
1182
|
+
margin-inline-start: 0;
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
[data-slot="calendar"] {
|
|
1188
|
+
display: inline-grid;
|
|
1189
|
+
grid-template-columns: auto 1fr auto;
|
|
1190
|
+
align-items: center;
|
|
1191
|
+
gap: calc(var(--ui-spacing) * 2) 0;
|
|
1192
|
+
padding: calc(var(--ui-spacing) * 3);
|
|
1193
|
+
border: 1px solid var(--ui-border);
|
|
1194
|
+
border-radius: calc(var(--ui-radius) * 1.5);
|
|
1195
|
+
background: var(--ui-background);
|
|
1196
|
+
color: var(--ui-foreground);
|
|
1197
|
+
font-size: var(--ui-font-size);
|
|
1198
|
+
|
|
1199
|
+
&
|
|
1200
|
+
> :not(
|
|
1201
|
+
:has(
|
|
1202
|
+
> :is([data-slot="calendar-previous"], [data-slot="calendar-next"])
|
|
1203
|
+
)
|
|
1204
|
+
):not(
|
|
1205
|
+
[data-slot="calendar-heading"],
|
|
1206
|
+
[data-slot="calendar-previous"],
|
|
1207
|
+
[data-slot="calendar-next"]
|
|
1208
|
+
) {
|
|
1209
|
+
grid-column: 1 / -1;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
&[data-disabled] {
|
|
1213
|
+
opacity: 0.5;
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
[data-slot="calendar-heading"] {
|
|
1218
|
+
margin: 0;
|
|
1219
|
+
font-size: var(--ui-font-size);
|
|
1220
|
+
font-weight: 600;
|
|
1221
|
+
text-align: center;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
[data-slot="calendar-grid"] {
|
|
1225
|
+
border-collapse: collapse;
|
|
1226
|
+
|
|
1227
|
+
&:not(table) {
|
|
1228
|
+
display: flex;
|
|
1229
|
+
flex-direction: column;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
& :is(th, td) {
|
|
1233
|
+
padding: 0;
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
:is([data-slot="calendar-weekdays"], [data-slot="calendar-week"]):not(tr) {
|
|
1238
|
+
display: flex;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
:is([data-slot="calendar-weekday"], [data-slot="calendar-day"]) {
|
|
1242
|
+
display: inline-flex;
|
|
1243
|
+
align-items: center;
|
|
1244
|
+
justify-content: center;
|
|
1245
|
+
width: calc(var(--ui-spacing) * 8.5);
|
|
1246
|
+
height: calc(var(--ui-spacing) * 8.5);
|
|
1247
|
+
padding: 0;
|
|
1248
|
+
border: 0;
|
|
1249
|
+
font-size: var(--ui-font-size);
|
|
1250
|
+
text-align: center;
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
:is(th, td):is([data-slot="calendar-weekday"], [data-slot="calendar-day"]) {
|
|
1254
|
+
display: table-cell;
|
|
1255
|
+
vertical-align: middle;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
[data-slot="calendar-weekday"] {
|
|
1259
|
+
height: calc(var(--ui-spacing) * 7);
|
|
1260
|
+
color: var(--ui-muted-foreground);
|
|
1261
|
+
font-size: calc(var(--ui-font-size) - 0.0625rem);
|
|
1262
|
+
font-weight: 400;
|
|
1263
|
+
|
|
1264
|
+
& abbr {
|
|
1265
|
+
text-decoration: none;
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
[data-slot="calendar-day"] {
|
|
1270
|
+
border-radius: var(--ui-radius);
|
|
1271
|
+
font-variant-numeric: tabular-nums;
|
|
1272
|
+
cursor: pointer;
|
|
1273
|
+
user-select: none;
|
|
1274
|
+
|
|
1275
|
+
&:hover:not(
|
|
1276
|
+
[data-outside],
|
|
1277
|
+
[data-disabled],
|
|
1278
|
+
[data-unavailable],
|
|
1279
|
+
[data-selected]
|
|
1280
|
+
) {
|
|
1281
|
+
background: var(--ui-muted);
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
&[data-today] {
|
|
1285
|
+
font-weight: 600;
|
|
1286
|
+
text-decoration: underline;
|
|
1287
|
+
text-underline-offset: 0.25em;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
&:is([data-outside], [data-disabled]) {
|
|
1291
|
+
color: var(--ui-muted-foreground);
|
|
1292
|
+
cursor: default;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
&[data-disabled] {
|
|
1296
|
+
opacity: 0.5;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
&[data-unavailable] {
|
|
1300
|
+
color: var(--ui-muted-foreground);
|
|
1301
|
+
text-decoration: line-through;
|
|
1302
|
+
cursor: not-allowed;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
&[data-range-middle] {
|
|
1306
|
+
border-radius: 0;
|
|
1307
|
+
background: var(--ui-muted);
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
&:is(
|
|
1311
|
+
[data-selected]:not([data-range-middle]),
|
|
1312
|
+
[data-range-start],
|
|
1313
|
+
[data-range-end]
|
|
1314
|
+
) {
|
|
1315
|
+
background: var(--ui-primary);
|
|
1316
|
+
color: var(--ui-primary-foreground);
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
&[data-range-start]:not([data-range-end]) {
|
|
1320
|
+
border-start-end-radius: 0;
|
|
1321
|
+
border-end-end-radius: 0;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
&[data-range-end]:not([data-range-start]) {
|
|
1325
|
+
border-start-start-radius: 0;
|
|
1326
|
+
border-end-start-radius: 0;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
&:focus-visible {
|
|
1330
|
+
position: relative;
|
|
1331
|
+
z-index: 1;
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
[data-slot="pagination-list"] {
|
|
1336
|
+
display: flex;
|
|
1337
|
+
flex-wrap: wrap;
|
|
1338
|
+
align-items: center;
|
|
1339
|
+
margin: 0;
|
|
1340
|
+
padding: 0;
|
|
1341
|
+
list-style: none;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
:is(
|
|
1345
|
+
[data-slot="pagination-link"],
|
|
1346
|
+
[data-slot="pagination-previous"],
|
|
1347
|
+
[data-slot="pagination-next"]
|
|
1348
|
+
) {
|
|
1349
|
+
padding-inline: calc(var(--ui-spacing) * 2);
|
|
1350
|
+
border-color: transparent;
|
|
1351
|
+
background: transparent;
|
|
1352
|
+
|
|
1353
|
+
&:is([aria-current="page"], [data-current]) {
|
|
1354
|
+
border-color: var(--ui-input);
|
|
1355
|
+
background: var(--ui-background);
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
[data-slot="pagination-ellipsis"] {
|
|
1360
|
+
display: inline-flex;
|
|
1361
|
+
align-items: center;
|
|
1362
|
+
justify-content: center;
|
|
1363
|
+
width: calc(var(--ui-spacing) * 8);
|
|
1364
|
+
height: calc(var(--ui-spacing) * 8);
|
|
1365
|
+
color: var(--ui-muted-foreground);
|
|
1366
|
+
|
|
1367
|
+
&:empty::before {
|
|
1368
|
+
content: "…";
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
[data-slot="resizable"] {
|
|
1373
|
+
width: 100%;
|
|
1374
|
+
min-height: 12rem;
|
|
1375
|
+
overflow: hidden;
|
|
1376
|
+
border: 1px solid var(--ui-border);
|
|
1377
|
+
border-radius: var(--ui-radius);
|
|
1378
|
+
font-size: var(--ui-font-size);
|
|
1379
|
+
|
|
1380
|
+
& & {
|
|
1381
|
+
min-height: 0;
|
|
1382
|
+
border: 0;
|
|
1383
|
+
border-radius: 0;
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
[data-slot="resizable-panel"] {
|
|
1388
|
+
overflow: hidden;
|
|
1389
|
+
|
|
1390
|
+
&:not(:has(> [data-slot="resizable"])) {
|
|
1391
|
+
padding: calc(var(--ui-spacing) * 4);
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
[data-slot="resizable-handle"] {
|
|
1396
|
+
position: relative;
|
|
1397
|
+
z-index: 1;
|
|
1398
|
+
flex-shrink: 0;
|
|
1399
|
+
width: 1px;
|
|
1400
|
+
background: var(--ui-border);
|
|
1401
|
+
outline: none;
|
|
1402
|
+
cursor: col-resize;
|
|
1403
|
+
touch-action: none;
|
|
1404
|
+
|
|
1405
|
+
&::before {
|
|
1406
|
+
position: absolute;
|
|
1407
|
+
inset: 0 -0.375rem;
|
|
1408
|
+
content: "";
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
&[aria-orientation="horizontal"] {
|
|
1412
|
+
width: auto;
|
|
1413
|
+
height: 1px;
|
|
1414
|
+
cursor: row-resize;
|
|
1415
|
+
|
|
1416
|
+
&::before {
|
|
1417
|
+
inset: -0.375rem 0;
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
&:is(:hover, [data-hovering], [data-dragging], :focus-visible) {
|
|
1422
|
+
background: var(--ui-foreground);
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
&:focus-visible {
|
|
1426
|
+
box-shadow: 0 0 0 3px var(--ui-ring);
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
&[data-disabled] {
|
|
1430
|
+
background: var(--ui-border);
|
|
1431
|
+
cursor: default;
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
[data-slot="scroll-area"] {
|
|
1436
|
+
position: relative;
|
|
1437
|
+
overflow: hidden;
|
|
1438
|
+
border: 1px solid var(--ui-border);
|
|
1439
|
+
border-radius: var(--ui-radius);
|
|
1440
|
+
font-size: var(--ui-font-size);
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
[data-slot="scroll-area-viewport"] {
|
|
1444
|
+
width: 100%;
|
|
1445
|
+
height: 100%;
|
|
1446
|
+
border-radius: inherit;
|
|
1447
|
+
outline-offset: -4px;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
[data-slot="scroll-area-content"] {
|
|
1451
|
+
padding: calc(var(--ui-spacing) * 3) calc(var(--ui-spacing) * 4);
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
[data-slot="scroll-area-scrollbar"] {
|
|
1455
|
+
display: flex;
|
|
1456
|
+
padding: 2px;
|
|
1457
|
+
visibility: hidden;
|
|
1458
|
+
|
|
1459
|
+
&[data-orientation="vertical"] {
|
|
1460
|
+
flex-direction: column;
|
|
1461
|
+
width: 0.625rem;
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
&[data-orientation="horizontal"] {
|
|
1465
|
+
height: 0.625rem;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
&:is([data-visible], [data-hovering], [data-scrolling]) {
|
|
1469
|
+
visibility: visible;
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
[data-slot="scroll-area-thumb"] {
|
|
1474
|
+
position: relative;
|
|
1475
|
+
border-radius: calc(var(--ui-radius) * 999);
|
|
1476
|
+
background: var(--ui-input);
|
|
1477
|
+
|
|
1478
|
+
&[data-dragging] {
|
|
1479
|
+
background: var(--ui-muted-foreground);
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
/* Shows only after 150ms and stays at least 300ms, so a quick action never flickers. */
|
|
1484
|
+
:where(
|
|
1485
|
+
button[data-slot],
|
|
1486
|
+
[data-slot][role="menuitem"],
|
|
1487
|
+
[data-slot][role="option"]
|
|
1488
|
+
) {
|
|
1489
|
+
transition: filter 0s linear 0.3s;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
[data-slot][data-pending] {
|
|
1493
|
+
filter: opacity(0.6);
|
|
1494
|
+
cursor: progress;
|
|
1495
|
+
transition-delay: 0.15s;
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
/* Touch: inputs at 16px stop iOS from zooming on focus, and small targets get a 44px hit area. */
|
|
1499
|
+
@media (pointer: coarse) {
|
|
1500
|
+
:is(
|
|
1501
|
+
input:not(
|
|
1502
|
+
[type="checkbox"],
|
|
1503
|
+
[type="radio"],
|
|
1504
|
+
[type="range"],
|
|
1505
|
+
[type="file"]
|
|
1506
|
+
),
|
|
1507
|
+
textarea,
|
|
1508
|
+
select,
|
|
1509
|
+
[contenteditable="true"]
|
|
1510
|
+
):is([data-slot], [data-slot] *) {
|
|
1511
|
+
font-size: max(1rem, var(--ui-font-size));
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
:is(
|
|
1515
|
+
[data-slot="menu-item"],
|
|
1516
|
+
[data-slot="menu-checkbox-item"],
|
|
1517
|
+
[data-slot="menu-radio-item"],
|
|
1518
|
+
[data-slot="select-item"],
|
|
1519
|
+
[data-slot="combobox-item"],
|
|
1520
|
+
[data-slot="autocomplete-item"],
|
|
1521
|
+
[data-slot="command-item"],
|
|
1522
|
+
[data-slot="listbox-item"],
|
|
1523
|
+
[data-slot="trigger-menu-item"],
|
|
1524
|
+
:where([data-slot="menu-content"]) [data-slot="menu-trigger"]
|
|
1525
|
+
) {
|
|
1526
|
+
min-height: 2.75rem;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
[data-slot="tree-label"] {
|
|
1530
|
+
height: 2.75rem;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
[data-slot="rating-item"] {
|
|
1534
|
+
width: 1.5rem;
|
|
1535
|
+
height: 1.5rem;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
[data-slot="carousel-indicator-group"] {
|
|
1539
|
+
gap: 1rem;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
[data-slot="image-cropper-handle"] {
|
|
1543
|
+
width: 2.75rem;
|
|
1544
|
+
height: 2.75rem;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
:where(
|
|
1548
|
+
button[data-slot],
|
|
1549
|
+
[data-slot="navigation-menu-link"],
|
|
1550
|
+
[data-slot="segmented-control-item"],
|
|
1551
|
+
:is(label, [data-slot="label"]):has(
|
|
1552
|
+
> :is([data-slot="checkbox"], [data-slot="radio"], [data-slot="switch"])
|
|
1553
|
+
),
|
|
1554
|
+
:not(label, [data-slot="label"])
|
|
1555
|
+
> :is([data-slot="checkbox"], [data-slot="radio"], [data-slot="switch"])
|
|
1556
|
+
) {
|
|
1557
|
+
position: relative;
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
:is(
|
|
1561
|
+
button[data-slot],
|
|
1562
|
+
[data-slot="navigation-menu-link"],
|
|
1563
|
+
[data-slot="segmented-control-item"],
|
|
1564
|
+
[data-slot="rating-radio"]
|
|
1565
|
+
):not(
|
|
1566
|
+
[data-slot="select-trigger"],
|
|
1567
|
+
[data-slot="combobox-trigger"],
|
|
1568
|
+
[data-slot="navigation-menu-trigger"],
|
|
1569
|
+
[data-slot="accordion-trigger"],
|
|
1570
|
+
[data-slot="collapsible-trigger"],
|
|
1571
|
+
[data-slot="menu-content"] [data-slot="menu-trigger"],
|
|
1572
|
+
[data-slot="carousel-indicator"],
|
|
1573
|
+
[data-slot="color-picker-eye-dropper"],
|
|
1574
|
+
[data-slot="carousel-previous"],
|
|
1575
|
+
[data-slot="carousel-next"],
|
|
1576
|
+
[data-slot="calendar-previous"],
|
|
1577
|
+
[data-slot="calendar-next"],
|
|
1578
|
+
[data-slot="password-input-toggle"],
|
|
1579
|
+
[data-slot="file-input-item-remove"],
|
|
1580
|
+
[data-slot="token-input-token-remove"],
|
|
1581
|
+
[data-slot="toast-close"],
|
|
1582
|
+
[data-slot="slider-thumb"],
|
|
1583
|
+
[data-slot="color-picker-area-thumb"],
|
|
1584
|
+
[data-slot="color-picker-slider-thumb"],
|
|
1585
|
+
:not(label, [data-slot="label"])
|
|
1586
|
+
> :is(
|
|
1587
|
+
[data-slot="checkbox"],
|
|
1588
|
+
[data-slot="radio"],
|
|
1589
|
+
[data-slot="switch"]
|
|
1590
|
+
)
|
|
1591
|
+
)::after,
|
|
1592
|
+
:is(label, [data-slot="label"]):has(
|
|
1593
|
+
> :is([data-slot="checkbox"], [data-slot="radio"], [data-slot="switch"])
|
|
1594
|
+
)::after,
|
|
1595
|
+
:is(
|
|
1596
|
+
[data-slot="select-trigger"],
|
|
1597
|
+
[data-slot="combobox-trigger"],
|
|
1598
|
+
[data-slot="navigation-menu-trigger"],
|
|
1599
|
+
[data-slot="accordion-trigger"],
|
|
1600
|
+
[data-slot="collapsible-trigger"]
|
|
1601
|
+
)::before {
|
|
1602
|
+
position: absolute;
|
|
1603
|
+
inset-block: min(0px, calc((100% - 2.75rem) / 2));
|
|
1604
|
+
inset-inline: 0;
|
|
1605
|
+
content: "";
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
[data-slot="carousel-indicator"]::after {
|
|
1609
|
+
position: absolute;
|
|
1610
|
+
inset: min(0px, calc((100% - 2.75rem) / 2)) -0.5rem;
|
|
1611
|
+
content: "";
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
:is(
|
|
1615
|
+
[data-slot="color-picker-eye-dropper"],
|
|
1616
|
+
[data-slot="carousel-previous"],
|
|
1617
|
+
[data-slot="carousel-next"],
|
|
1618
|
+
[data-slot="calendar-previous"],
|
|
1619
|
+
[data-slot="calendar-next"],
|
|
1620
|
+
[data-slot="password-input-toggle"],
|
|
1621
|
+
[data-slot="file-input-item-remove"],
|
|
1622
|
+
[data-slot="token-input-token-remove"],
|
|
1623
|
+
[data-slot="toast-close"],
|
|
1624
|
+
[data-slot="slider-thumb"],
|
|
1625
|
+
[data-slot="color-picker-area-thumb"],
|
|
1626
|
+
[data-slot="color-picker-slider-thumb"],
|
|
1627
|
+
:not(label, [data-slot="label"])
|
|
1628
|
+
> :is([data-slot="checkbox"], [data-slot="radio"], [data-slot="switch"])
|
|
1629
|
+
)::after {
|
|
1630
|
+
position: absolute;
|
|
1631
|
+
inset: min(0px, calc((100% - 2.75rem) / 2));
|
|
1632
|
+
content: "";
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
}
|