basecoat-css 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/base.css +10 -1
- package/dist/basecoat-base.bundle.css +1884 -0
- package/dist/basecoat-base.cdn.css +30 -10
- package/dist/basecoat-base.cdn.min.css +1 -2
- package/dist/basecoat-compat.cdn.css +1 -1
- package/dist/basecoat-compat.cdn.min.css +1 -2
- package/dist/basecoat-luma.bundle.css +3319 -0
- package/dist/basecoat-luma.cdn.css +167 -165
- package/dist/basecoat-luma.cdn.min.css +1 -2
- package/dist/basecoat-lyra.bundle.css +3302 -0
- package/dist/basecoat-lyra.cdn.css +98 -106
- package/dist/basecoat-lyra.cdn.min.css +1 -2
- package/dist/basecoat-maia.bundle.css +3287 -0
- package/dist/basecoat-maia.cdn.css +134 -114
- package/dist/basecoat-maia.cdn.min.css +1 -2
- package/dist/basecoat-mira.bundle.css +3296 -0
- package/dist/basecoat-mira.cdn.css +104 -108
- package/dist/basecoat-mira.cdn.min.css +1 -2
- package/dist/basecoat-nova.bundle.css +3314 -0
- package/dist/basecoat-nova.cdn.css +136 -116
- package/dist/basecoat-nova.cdn.min.css +1 -2
- package/dist/basecoat-rhea.bundle.css +3324 -0
- package/dist/basecoat-rhea.cdn.css +167 -165
- package/dist/basecoat-rhea.cdn.min.css +1 -2
- package/dist/basecoat-sera.bundle.css +3312 -0
- package/dist/basecoat-sera.cdn.css +143 -141
- package/dist/basecoat-sera.cdn.min.css +1 -2
- package/dist/basecoat-vega.bundle.css +3301 -0
- package/dist/basecoat-vega.cdn.css +126 -106
- package/dist/basecoat-vega.cdn.min.css +1 -2
- package/dist/basecoat.bundle.css +3301 -0
- package/dist/basecoat.cdn.css +126 -106
- package/dist/basecoat.cdn.min.css +1 -2
- package/dist/components/dialog.css +14 -0
- package/dist/components/sidebar.css +10 -7
- package/dist/components/tooltip.css +1 -1
- package/dist/js/all.js +28 -13
- package/dist/js/all.min.js +1 -1
- package/dist/js/combobox.js +6 -2
- package/dist/js/combobox.min.js +1 -1
- package/dist/js/dropdown-menu.js +1 -1
- package/dist/js/dropdown-menu.min.js +1 -1
- package/dist/js/popover.js +1 -1
- package/dist/js/popover.min.js +1 -1
- package/dist/js/select.js +1 -1
- package/dist/js/select.min.js +1 -1
- package/dist/js/sidebar.js +1 -1
- package/dist/js/sidebar.min.js +1 -1
- package/dist/js/toast.js +18 -7
- package/dist/js/toast.min.js +1 -1
- package/dist/styles/luma.css +103 -44
- package/dist/styles/lyra.css +75 -36
- package/dist/styles/maia.css +81 -42
- package/dist/styles/mira.css +76 -37
- package/dist/styles/nova.css +84 -41
- package/dist/styles/rhea.css +103 -44
- package/dist/styles/sera.css +72 -41
- package/dist/styles/vega.css +72 -41
- package/package.json +4 -1
- package/templates/jinja/command.html.jinja +1 -1
- package/templates/jinja/dialog.html.jinja +1 -1
- package/templates/nunjucks/command.njk +1 -1
- package/templates/nunjucks/dialog.njk +1 -1
|
@@ -0,0 +1,1884 @@
|
|
|
1
|
+
/* Basecoat v1.1.0, base (no style pack), single-file source. Import after tailwindcss. */
|
|
2
|
+
@custom-variant dark (&:is(html.dark *));
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--radius: 0.625rem;
|
|
6
|
+
--background: oklch(1 0 0);
|
|
7
|
+
--foreground: oklch(0.145 0 0);
|
|
8
|
+
--card: oklch(1 0 0);
|
|
9
|
+
--card-foreground: oklch(0.145 0 0);
|
|
10
|
+
--popover: oklch(1 0 0);
|
|
11
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
12
|
+
--primary: oklch(0.205 0 0);
|
|
13
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
14
|
+
--secondary: oklch(0.97 0 0);
|
|
15
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
16
|
+
--muted: oklch(0.97 0 0);
|
|
17
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
18
|
+
--accent: oklch(0.97 0 0);
|
|
19
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
20
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
21
|
+
--border: oklch(0.922 0 0);
|
|
22
|
+
--input: oklch(0.922 0 0);
|
|
23
|
+
--ring: oklch(0.708 0 0);
|
|
24
|
+
--chart-1: #93c5fd;
|
|
25
|
+
--chart-2: #3b82f6;
|
|
26
|
+
--chart-3: #2563eb;
|
|
27
|
+
--chart-4: #1d4ed8;
|
|
28
|
+
--chart-5: #1e40af;
|
|
29
|
+
--sidebar: oklch(0.985 0 0);
|
|
30
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
31
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
32
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
33
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
34
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
35
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
36
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
37
|
+
--sidebar-width: 16rem;
|
|
38
|
+
--sidebar-mobile-width: 18rem;
|
|
39
|
+
--scrollbar-track: transparent;
|
|
40
|
+
--scrollbar-thumb: var(--border);
|
|
41
|
+
--scrollbar-width: 0.625rem;
|
|
42
|
+
--scrollbar-sm-width: 0.375rem;
|
|
43
|
+
--scrollbar-radius: 9999px;
|
|
44
|
+
--chevron-down-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground */
|
|
45
|
+
--chevron-down-icon-50: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0 / 0.5)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground + 50% opacity */
|
|
46
|
+
--check-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check-icon lucide-check"><path d="M20 6 9 17l-5-5"/></svg>'); /* --muted-foreground */
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.dark {
|
|
50
|
+
--background: oklch(0.145 0 0);
|
|
51
|
+
--foreground: oklch(0.985 0 0);
|
|
52
|
+
--card: oklch(0.205 0 0);
|
|
53
|
+
--card-foreground: oklch(0.985 0 0);
|
|
54
|
+
--popover: oklch(0.205 0 0);
|
|
55
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
56
|
+
--primary: oklch(0.922 0 0);
|
|
57
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
58
|
+
--secondary: oklch(0.269 0 0);
|
|
59
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
60
|
+
--muted: oklch(0.269 0 0);
|
|
61
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
62
|
+
--accent: oklch(0.371 0 0);
|
|
63
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
64
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
65
|
+
--border: oklch(1 0 0 / 10%);
|
|
66
|
+
--input: oklch(1 0 0 / 15%);
|
|
67
|
+
--ring: oklch(0.556 0 0);
|
|
68
|
+
--chart-1: #93c5fd;
|
|
69
|
+
--chart-2: #3b82f6;
|
|
70
|
+
--chart-3: #2563eb;
|
|
71
|
+
--chart-4: #1d4ed8;
|
|
72
|
+
--chart-5: #1e40af;
|
|
73
|
+
--sidebar: oklch(0.205 0 0);
|
|
74
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
75
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
76
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
77
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
78
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
79
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
80
|
+
--sidebar-ring: oklch(0.439 0 0);
|
|
81
|
+
--chevron-down-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground */
|
|
82
|
+
--chevron-down-icon-50: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0 / 0.5)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground + 50% opacity */
|
|
83
|
+
--check-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check-icon lucide-check"><path d="M20 6 9 17l-5-5"/></svg>');/* --muted-foreground */
|
|
84
|
+
color-scheme: dark;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@theme {
|
|
88
|
+
--font-sans: "Geist", "Geist Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
89
|
+
--font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
90
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
91
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
92
|
+
--radius-lg: var(--radius);
|
|
93
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
94
|
+
--color-background: var(--background);
|
|
95
|
+
--color-foreground: var(--foreground);
|
|
96
|
+
--color-card: var(--card);
|
|
97
|
+
--color-card-foreground: var(--card-foreground);
|
|
98
|
+
--color-popover: var(--popover);
|
|
99
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
100
|
+
--color-primary: var(--primary);
|
|
101
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
102
|
+
--color-secondary: var(--secondary);
|
|
103
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
104
|
+
--color-muted: var(--muted);
|
|
105
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
106
|
+
--color-accent: var(--accent);
|
|
107
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
108
|
+
--color-destructive: var(--destructive);
|
|
109
|
+
--color-border: var(--border);
|
|
110
|
+
--color-input: var(--input);
|
|
111
|
+
--color-ring: var(--ring);
|
|
112
|
+
--color-chart-1: var(--chart-1);
|
|
113
|
+
--color-chart-2: var(--chart-2);
|
|
114
|
+
--color-chart-3: var(--chart-3);
|
|
115
|
+
--color-chart-4: var(--chart-4);
|
|
116
|
+
--color-chart-5: var(--chart-5);
|
|
117
|
+
--color-sidebar: var(--sidebar);
|
|
118
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
119
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
120
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
121
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
122
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
123
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
124
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@layer base {
|
|
128
|
+
* {
|
|
129
|
+
@apply border-border outline-ring/50;
|
|
130
|
+
}
|
|
131
|
+
html {
|
|
132
|
+
@apply scroll-smooth;
|
|
133
|
+
}
|
|
134
|
+
body {
|
|
135
|
+
@apply bg-background text-foreground overscroll-none;
|
|
136
|
+
}
|
|
137
|
+
hr:where([aria-orientation='vertical']) {
|
|
138
|
+
flex-shrink: 0;
|
|
139
|
+
align-self: stretch;
|
|
140
|
+
inline-size: 1px;
|
|
141
|
+
block-size: auto;
|
|
142
|
+
margin: 0;
|
|
143
|
+
border-block-start-width: 0;
|
|
144
|
+
border-inline-start-width: 1px;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
/* Components */
|
|
148
|
+
/* Accordion */
|
|
149
|
+
@layer components {
|
|
150
|
+
.accordion {
|
|
151
|
+
@apply flex w-full flex-col;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.accordion > details > summary {
|
|
155
|
+
@apply relative flex w-full flex-1 cursor-pointer list-none items-start justify-between border border-transparent transition-all outline-none;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.accordion > details > summary > svg:last-child {
|
|
159
|
+
@apply pointer-events-none shrink-0 transition-transform;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.accordion > details[open] > summary > svg:last-child {
|
|
163
|
+
@apply rotate-180;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.accordion > details[aria-disabled='true'] > summary,
|
|
167
|
+
.accordion > details > summary[aria-disabled='true'] {
|
|
168
|
+
@apply pointer-events-none opacity-50;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.accordion > details > :not(summary) {
|
|
172
|
+
@apply overflow-hidden;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
/* Alert */
|
|
176
|
+
@layer components {
|
|
177
|
+
.alert {
|
|
178
|
+
@apply relative w-full;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.alert:has(> footer) {
|
|
182
|
+
@apply pe-[4.5rem];
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.alert > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
|
|
186
|
+
@apply min-h-4;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.alert > section {
|
|
190
|
+
@apply grid justify-items-start gap-1;
|
|
191
|
+
|
|
192
|
+
:where(p, ul, ol) {
|
|
193
|
+
@apply m-0;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
:where(p, ul, ol):not(:last-child) {
|
|
197
|
+
@apply mb-4;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
ul {
|
|
201
|
+
@apply list-inside list-disc;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
ol {
|
|
205
|
+
@apply list-inside list-decimal;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.alert > footer {
|
|
210
|
+
@apply absolute;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
/* Avatar */
|
|
214
|
+
@layer components {
|
|
215
|
+
.avatar {
|
|
216
|
+
@apply relative inline-flex shrink-0 select-none appearance-none border-0 bg-transparent p-0 align-middle outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 after:absolute after:inset-0 after:rounded-[inherit] after:border after:border-border after:mix-blend-darken dark:after:mix-blend-lighten;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.avatar > img {
|
|
220
|
+
@apply absolute inset-0 aspect-square size-full rounded-[inherit] object-cover;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.avatar > span:not(.avatar-badge) {
|
|
224
|
+
@apply flex size-full items-center justify-center rounded-[inherit] text-sm;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.avatar[data-size='sm'] > span:not(.avatar-badge) {
|
|
228
|
+
@apply text-xs;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.avatar > .avatar-badge {
|
|
232
|
+
@apply absolute end-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.avatar[data-size='sm'] > .avatar-badge {
|
|
236
|
+
@apply size-2 [&>svg]:hidden;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.avatar > .avatar-badge {
|
|
240
|
+
@apply size-2.5 [&>svg]:size-2;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.avatar[data-size='lg'] > .avatar-badge {
|
|
244
|
+
@apply size-3 [&>svg]:size-2;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.avatar-group {
|
|
248
|
+
@apply flex -space-x-2;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.avatar-group > .avatar,
|
|
252
|
+
.avatar-group > [data-count] {
|
|
253
|
+
@apply ring-2 ring-background;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.avatar-group > [data-count] {
|
|
257
|
+
@apply relative flex shrink-0 items-center justify-center;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
/* Badge */
|
|
261
|
+
@layer components {
|
|
262
|
+
.badge {
|
|
263
|
+
@apply inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
/* Breadcrumb */
|
|
267
|
+
@layer components {
|
|
268
|
+
.breadcrumb > ol {
|
|
269
|
+
@apply m-0 flex list-none flex-wrap items-center p-0 break-words;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.breadcrumb li {
|
|
273
|
+
@apply inline-flex items-center;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.breadcrumb a {
|
|
277
|
+
@apply rounded-sm outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.breadcrumb [aria-current='page'] {
|
|
281
|
+
@apply cursor-default;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.breadcrumb li[aria-hidden='true'] {
|
|
285
|
+
@apply select-none;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.breadcrumb li > span[aria-hidden='true'] {
|
|
289
|
+
@apply flex items-center justify-center;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.breadcrumb [data-rtl-flip] {
|
|
293
|
+
@apply rtl:rotate-180;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
/* Button */
|
|
297
|
+
@layer components {
|
|
298
|
+
.btn {
|
|
299
|
+
@apply inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
/* Button Group */
|
|
303
|
+
@layer components {
|
|
304
|
+
.button-group {
|
|
305
|
+
@apply isolate inline-flex w-fit items-stretch;
|
|
306
|
+
|
|
307
|
+
&:has(> :is(.dropdown-menu, .popover, .select) > [data-popover][aria-hidden='false']) {
|
|
308
|
+
@apply relative z-50;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
> .input {
|
|
312
|
+
@apply flex-1;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
> *:focus-visible,
|
|
316
|
+
> :is(.dropdown-menu, .popover, .select) > button:focus-visible {
|
|
317
|
+
@apply relative z-10;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
> hr[role='separator'] {
|
|
321
|
+
@apply relative w-px h-auto self-stretch shrink-0 border-0 my-px mx-0;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
&:not([data-orientation='vertical']) {
|
|
325
|
+
> *:not(:first-child),
|
|
326
|
+
> :is(.dropdown-menu, .popover, .select):not(:first-child) > button {
|
|
327
|
+
@apply rounded-s-none border-s-0;
|
|
328
|
+
}
|
|
329
|
+
> *:not(:last-child),
|
|
330
|
+
> :is(.dropdown-menu, .popover, .select):not(:last-child) > button {
|
|
331
|
+
@apply rounded-e-none;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
&[data-orientation='vertical'] {
|
|
335
|
+
@apply flex-col;
|
|
336
|
+
|
|
337
|
+
> hr[role='separator'] {
|
|
338
|
+
@apply w-auto h-px mx-px my-0;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
> *:not(:first-child),
|
|
342
|
+
> :is(.dropdown-menu, .popover, .select):not(:first-child) > button {
|
|
343
|
+
@apply rounded-t-none border-t-0;
|
|
344
|
+
}
|
|
345
|
+
> *:not(:last-child),
|
|
346
|
+
> :is(.dropdown-menu, .popover, .select):not(:last-child) > button {
|
|
347
|
+
@apply rounded-b-none;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.button-group > :is(span, label, output) {
|
|
353
|
+
@apply flex items-center [&_svg]:pointer-events-none;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
/* Card */
|
|
357
|
+
@layer components {
|
|
358
|
+
.card {
|
|
359
|
+
@apply flex flex-col;
|
|
360
|
+
|
|
361
|
+
> header {
|
|
362
|
+
@apply @container/card-header grid auto-rows-min items-start has-[>[data-slot=card-action],>.card-action]:grid-cols-[1fr_auto] has-[>p]:grid-rows-[auto_auto];
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
> header > :is(h2, h3, [data-title], .card-title) {
|
|
366
|
+
@apply leading-none;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
> header > :is([data-slot='card-action'], .card-action) {
|
|
370
|
+
@apply col-start-2 row-span-2 row-start-1 self-start justify-self-end;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
> header > menu.card-action {
|
|
374
|
+
@apply m-0 list-none p-0;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
> footer {
|
|
378
|
+
@apply flex items-center;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
/* Chart */
|
|
383
|
+
@layer components {
|
|
384
|
+
.chart {
|
|
385
|
+
@apply relative flex aspect-video w-full justify-center text-xs;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.chart > canvas {
|
|
389
|
+
@apply block size-full;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.chart-tooltip {
|
|
393
|
+
@apply pointer-events-none fixed z-50 grid min-w-32 -translate-x-1/2 translate-y-2 items-start transition-[left,top,opacity] duration-150 ease-out;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.chart-tooltip[hidden] {
|
|
397
|
+
@apply opacity-0;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.chart-tooltip-items {
|
|
401
|
+
@apply grid gap-1.5;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.chart-tooltip-item {
|
|
405
|
+
@apply flex w-full flex-wrap items-center gap-2;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.chart-tooltip-indicator {
|
|
409
|
+
@apply size-2.5 shrink-0 rounded-[2px];
|
|
410
|
+
background-color: var(--chart-indicator-color);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.chart-legend-indicator {
|
|
414
|
+
@apply size-2 shrink-0 rounded-[2px];
|
|
415
|
+
background-color: var(--chart-indicator-color);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.chart-tooltip-label {
|
|
419
|
+
@apply text-muted-foreground leading-none;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.chart-tooltip-value {
|
|
423
|
+
@apply ms-auto font-mono font-medium leading-none tabular-nums;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.chart-legend {
|
|
427
|
+
@apply flex flex-wrap items-center justify-center gap-4 pt-3;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.chart-legend-item {
|
|
431
|
+
@apply flex items-center gap-1.5 text-xs;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.chart-legend-item[aria-pressed='false'] {
|
|
435
|
+
@apply opacity-70;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
/* Collapsible */
|
|
439
|
+
@layer components {
|
|
440
|
+
details {
|
|
441
|
+
&::details-content {
|
|
442
|
+
block-size: 0;
|
|
443
|
+
@apply block opacity-0 transition-discrete transition-all;
|
|
444
|
+
}
|
|
445
|
+
&[open]::details-content {
|
|
446
|
+
block-size: auto;
|
|
447
|
+
block-size: calc-size(auto, size);
|
|
448
|
+
@apply opacity-100;
|
|
449
|
+
}
|
|
450
|
+
summary {
|
|
451
|
+
@apply inline-flex items-center cursor-pointer;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
details > summary::-webkit-details-marker {
|
|
455
|
+
display: none;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
/* Command */
|
|
459
|
+
@layer components {
|
|
460
|
+
.command-dialog {
|
|
461
|
+
@apply inset-y-0 bg-transparent p-0 text-inherit opacity-0 transition-all transition-discrete;
|
|
462
|
+
max-width: none;
|
|
463
|
+
max-height: none;
|
|
464
|
+
|
|
465
|
+
&:is([open], :popover-open) {
|
|
466
|
+
@apply opacity-100;
|
|
467
|
+
|
|
468
|
+
&::backdrop {
|
|
469
|
+
@apply opacity-100;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
> .command {
|
|
473
|
+
@apply scale-100;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
@starting-style {
|
|
477
|
+
@apply opacity-0;
|
|
478
|
+
|
|
479
|
+
&::backdrop {
|
|
480
|
+
@apply opacity-0;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
> .command {
|
|
484
|
+
@apply scale-95;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
&::backdrop {
|
|
490
|
+
@apply opacity-0 transition-all transition-discrete;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
> .command {
|
|
494
|
+
@apply fixed top-1/3 left-1/2 z-50 flex max-h-[min(640px,calc(100%_-_2rem))] w-full max-w-[calc(100%_-_2rem)] -translate-x-1/2 translate-y-0 scale-95 flex-col overflow-hidden transition-all sm:max-w-sm;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
> .command > :is(button, form[method='dialog']) {
|
|
498
|
+
@apply absolute;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
> .command > :is(button, form[method='dialog'] > button) {
|
|
502
|
+
@apply inline-flex items-center justify-center opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
> .command > :is(button, form[method='dialog'] > button) > svg:not([class*='size-']) {
|
|
506
|
+
@apply size-4;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.command {
|
|
511
|
+
@apply flex w-full flex-col overflow-hidden;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.command > header {
|
|
515
|
+
@apply flex items-center;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.command > header svg {
|
|
519
|
+
@apply shrink-0;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.command > header input {
|
|
523
|
+
@apply w-full bg-transparent outline-hidden disabled:cursor-not-allowed disabled:opacity-50;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.command [role='menu'] {
|
|
527
|
+
@apply overflow-x-hidden overflow-y-auto outline-hidden;
|
|
528
|
+
scrollbar-width: none;
|
|
529
|
+
|
|
530
|
+
&::-webkit-scrollbar {
|
|
531
|
+
display: none;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.command [role='menuitem'] {
|
|
536
|
+
@apply aria-hidden:hidden relative flex w-full cursor-default items-center outline-hidden select-none disabled:pointer-events-none disabled:opacity-50 data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.command [role='menuitem'].active,
|
|
540
|
+
.command [role='menuitem'][data-selected='true'] {
|
|
541
|
+
@apply bg-muted text-foreground;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.command [role='group'] {
|
|
545
|
+
@apply overflow-hidden;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.command [role='group']:not(:has([role='menuitem']:not([aria-hidden='true']))) {
|
|
549
|
+
@apply hidden;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.command [role='heading'] {
|
|
553
|
+
@apply flex;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.command [role='separator'] {
|
|
557
|
+
@apply border-0;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.command [data-shortcut] {
|
|
561
|
+
@apply ms-auto;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.command [data-indicator] {
|
|
565
|
+
@apply ms-auto opacity-0;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
.command [role='menuitem'][data-checked='true'] [data-indicator],
|
|
569
|
+
.command [role='menuitem'][aria-selected='true'] [data-indicator],
|
|
570
|
+
.command [role='menuitem'][data-selected='true'] [data-indicator] {
|
|
571
|
+
@apply opacity-100;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.command [role='menuitem']:has([data-shortcut]) [data-indicator] {
|
|
575
|
+
@apply hidden;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.command [role='menu']:not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
|
|
579
|
+
@apply flex items-center justify-center truncate;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.command [role='menu'][data-empty]:not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
|
|
583
|
+
@apply content-[attr(data-empty)];
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.command [role='menu']:not([data-empty]):not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
|
|
587
|
+
@apply content-['No_results_found'];
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.command:not([data-command-initialized]) [role='menuitem']:not([aria-disabled='true']):not(:disabled):hover {
|
|
591
|
+
@apply bg-muted text-foreground;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.command:has(> header input:not(:placeholder-shown)) [role='separator'] {
|
|
595
|
+
@apply hidden;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
/* Combobox */
|
|
599
|
+
@layer components {
|
|
600
|
+
.combobox {
|
|
601
|
+
@apply relative inline-flex w-fit flex-col;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.combobox > input[role='combobox'] {
|
|
605
|
+
@apply w-full min-w-0 outline-hidden placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.combobox .input-group input[role='combobox'],
|
|
609
|
+
.combobox [data-popover] input[role='combobox'] {
|
|
610
|
+
@apply min-w-0 outline-hidden placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.combobox > svg,
|
|
614
|
+
.combobox-trigger-icon {
|
|
615
|
+
@apply pointer-events-none absolute shrink-0;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.combobox:has(> .combobox-chips) > .combobox-trigger-icon {
|
|
619
|
+
@apply hidden;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
.combobox [data-clear] {
|
|
623
|
+
@apply inline-flex size-6 shrink-0 cursor-default appearance-none items-center justify-center border-0 bg-transparent p-0 text-current disabled:pointer-events-none disabled:opacity-50;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.combobox [data-clear][hidden] {
|
|
627
|
+
@apply hidden;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.combobox .input-group:has([data-clear]:not([hidden])) button[aria-haspopup='listbox'] {
|
|
631
|
+
@apply hidden;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.combobox [data-popover] {
|
|
635
|
+
@apply isolate overflow-hidden;
|
|
636
|
+
min-width: max(100%, 9rem);
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.combobox [role='listbox'] {
|
|
640
|
+
@apply outline-hidden overflow-x-hidden overflow-y-auto;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.combobox [role='listbox'] [role='group']:not(:has([role='option']:not([aria-hidden='true']))) {
|
|
644
|
+
@apply hidden;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
648
|
+
@apply flex items-center justify-center truncate;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.combobox [role='listbox'][data-empty]:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
652
|
+
@apply content-[attr(data-empty)];
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.combobox [role='listbox']:not([data-empty]):not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
656
|
+
@apply content-['No_results_found'];
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.combobox [role='option'] {
|
|
660
|
+
@apply aria-hidden:hidden relative flex w-full cursor-default items-center truncate outline-hidden select-none aria-disabled:pointer-events-none aria-disabled:opacity-50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.combobox [role='option'][aria-selected='true'] {
|
|
664
|
+
@apply bg-[image:var(--check-icon)] bg-no-repeat bg-position-[center_right_0.5rem] bg-size-[0.875rem];
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.combobox [role='option'][aria-selected='true']:dir(rtl) {
|
|
668
|
+
@apply bg-position-[center_left_0.5rem];
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.combobox [role='separator'] {
|
|
672
|
+
@apply border-0;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.combobox [role='option'].active,
|
|
676
|
+
.combobox [role='option']:focus-visible,
|
|
677
|
+
.combobox:not([data-combobox-initialized]) [role='option']:not([aria-disabled='true']):not(:disabled):hover {
|
|
678
|
+
@apply bg-accent text-accent-foreground;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.combobox-chips {
|
|
682
|
+
@apply flex w-full min-w-0 flex-wrap items-center;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.combobox-chips > input[role='combobox'] {
|
|
686
|
+
@apply min-w-16 flex-1 bg-transparent outline-hidden placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
.combobox-chip {
|
|
690
|
+
@apply inline-flex w-fit shrink-0 items-center whitespace-nowrap;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.combobox-chip-remove {
|
|
694
|
+
@apply inline-flex shrink-0 items-center justify-center;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
/* Dialog */
|
|
698
|
+
@keyframes dialog-scroll-lock {
|
|
699
|
+
from, to {
|
|
700
|
+
scrollbar-gutter: stable;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
@layer components {
|
|
705
|
+
/* Lock page scroll while a modal dialog is open. The scroll timeline only
|
|
706
|
+
reserves the scrollbar gutter if the page can scroll, so nothing shifts. */
|
|
707
|
+
html:has(:is(.dialog, .alert-dialog, .command-dialog, .drawer):modal) {
|
|
708
|
+
overflow: hidden;
|
|
709
|
+
animation: dialog-scroll-lock linear both;
|
|
710
|
+
animation-timeline: scroll(self);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
.dialog,
|
|
714
|
+
.alert-dialog {
|
|
715
|
+
@apply bg-transparent p-0 text-inherit opacity-0 transition-all transition-discrete backdrop:opacity-0 backdrop:transition-all backdrop:transition-discrete;
|
|
716
|
+
max-width: none;
|
|
717
|
+
max-height: none;
|
|
718
|
+
|
|
719
|
+
&:is([open], :popover-open) {
|
|
720
|
+
@apply opacity-100 backdrop:opacity-100;
|
|
721
|
+
|
|
722
|
+
> * {
|
|
723
|
+
@apply scale-100;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
@starting-style {
|
|
727
|
+
@apply opacity-0 backdrop:opacity-0;
|
|
728
|
+
|
|
729
|
+
> * {
|
|
730
|
+
@apply scale-95;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
> * {
|
|
736
|
+
@apply fixed top-1/2 left-1/2 z-50 flex max-h-[calc(100%_-_2rem)] w-full -translate-x-1/2 -translate-y-1/2 scale-95 flex-col transition-all outline-hidden;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.dialog {
|
|
741
|
+
> * > header {
|
|
742
|
+
@apply flex flex-col;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
> * > section {
|
|
746
|
+
@apply flex-1;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
> * > footer {
|
|
750
|
+
@apply flex flex-col-reverse sm:flex-row sm:justify-end;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
> * > :is(button, form[method='dialog']) {
|
|
754
|
+
@apply absolute;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
> * > :is(button, form[method='dialog'] > button) {
|
|
758
|
+
@apply inline-flex items-center justify-center opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
> * > :is(button, form[method='dialog'] > button) > svg:not([class*='size-']) {
|
|
762
|
+
@apply size-4;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
.alert-dialog {
|
|
767
|
+
> * > header {
|
|
768
|
+
@apply grid grid-rows-[auto_1fr] place-items-center text-center sm:place-items-start sm:text-start;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
> * > header:has(> figure) {
|
|
772
|
+
@apply grid-rows-[auto_auto_1fr] sm:grid-rows-[auto_1fr];
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
> * > header > figure {
|
|
776
|
+
@apply m-0 shrink-0 sm:row-span-2 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
> * > header > figure:has(img) {
|
|
780
|
+
@apply overflow-hidden [&_img]:size-full [&_img]:object-cover;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
> * > header:has(> figure) > :is(h2, p) {
|
|
784
|
+
@apply sm:col-start-2;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
> * > footer {
|
|
788
|
+
@apply flex flex-col-reverse sm:flex-row sm:justify-end;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
&:is([data-size='sm']) > * > header,
|
|
792
|
+
> [data-size='sm'] > header {
|
|
793
|
+
@apply sm:place-items-center sm:text-center;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
&:is([data-size='sm']) > * > header:has(> figure),
|
|
797
|
+
> [data-size='sm'] > header:has(> figure) {
|
|
798
|
+
@apply sm:grid-rows-[auto_auto_1fr];
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
&:is([data-size='sm']) > * > header:has(> figure) > :is(h2, p),
|
|
802
|
+
> [data-size='sm'] > header:has(> figure) > :is(h2, p) {
|
|
803
|
+
@apply sm:col-start-auto;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
&:is([data-size='sm']) > * > footer,
|
|
807
|
+
> [data-size='sm'] > footer {
|
|
808
|
+
@apply grid grid-cols-2 sm:grid sm:grid-cols-2;
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
/* Drawer */
|
|
813
|
+
@layer components {
|
|
814
|
+
.drawer {
|
|
815
|
+
@apply fixed inset-0 m-0 size-auto max-h-none max-w-none overflow-visible bg-transparent p-0 text-inherit opacity-0 transition-all transition-discrete duration-500 ease-[cubic-bezier(0.32,0.72,0,1)] backdrop:opacity-0 backdrop:transition-all backdrop:transition-discrete backdrop:duration-500 backdrop:ease-[cubic-bezier(0.32,0.72,0,1)];
|
|
816
|
+
|
|
817
|
+
> * {
|
|
818
|
+
@apply fixed z-50 flex h-auto flex-col transition-transform duration-500 ease-[cubic-bezier(0.32,0.72,0,1)] will-change-transform outline-hidden;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
&:not([data-side]) > *,
|
|
822
|
+
&[data-side='bottom'] > * {
|
|
823
|
+
@apply inset-x-0 bottom-0 mt-24 max-h-[80vh] translate-y-full;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
&[data-side='top'] > * {
|
|
827
|
+
@apply inset-x-0 top-0 mb-24 max-h-[80vh] -translate-y-full;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
&[data-side='left'] > * {
|
|
831
|
+
@apply inset-y-0 left-0 w-3/4 max-w-sm -translate-x-full;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
&[data-side='right'] > * {
|
|
835
|
+
@apply inset-y-0 right-0 w-3/4 max-w-sm translate-x-full;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
&[data-closing] {
|
|
839
|
+
@apply opacity-0 backdrop:opacity-0;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
&[data-closing]:not([data-side]) > *,
|
|
843
|
+
&[data-closing][data-side='bottom'] > * {
|
|
844
|
+
@apply translate-y-full;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
&[data-closing][data-side='top'] > * {
|
|
848
|
+
@apply -translate-y-full;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
&[data-closing][data-side='left'] > * {
|
|
852
|
+
@apply -translate-x-full;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
&[data-closing][data-side='right'] > * {
|
|
856
|
+
@apply translate-x-full;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
&:is([open], :popover-open):not([data-closing]) {
|
|
860
|
+
@apply opacity-100 backdrop:opacity-100;
|
|
861
|
+
|
|
862
|
+
> * {
|
|
863
|
+
@apply translate-x-0 translate-y-0;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
@starting-style {
|
|
867
|
+
@apply opacity-0 backdrop:opacity-0;
|
|
868
|
+
|
|
869
|
+
&:not([data-side]) > *,
|
|
870
|
+
&[data-side='bottom'] > * {
|
|
871
|
+
@apply translate-y-full;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
&[data-side='top'] > * {
|
|
875
|
+
@apply -translate-y-full;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
&[data-side='left'] > * {
|
|
879
|
+
@apply -translate-x-full;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
&[data-side='right'] > * {
|
|
883
|
+
@apply translate-x-full;
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
> * > header {
|
|
889
|
+
@apply flex flex-col;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
> * > section {
|
|
893
|
+
@apply min-h-0 flex-1 overflow-y-auto;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
> * > footer {
|
|
897
|
+
@apply mt-auto flex flex-col;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
/* Dropdown Menu */
|
|
902
|
+
@layer components {
|
|
903
|
+
.dropdown-menu {
|
|
904
|
+
@apply relative inline-flex;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
.dropdown-menu > [data-popover] {
|
|
908
|
+
min-width: anchor-size(width);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
.dropdown-menu [role='menu'] {
|
|
912
|
+
@apply outline-hidden;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
916
|
+
@apply aria-hidden:hidden relative flex w-full cursor-default items-center truncate outline-hidden select-none disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.dropdown-menu [role='menu'] [role='heading'] {
|
|
920
|
+
@apply flex;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.dropdown-menu [role='separator'] {
|
|
924
|
+
@apply border-0;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
928
|
+
@apply ms-auto shrink-0 text-end;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.dropdown-menu [data-shortcut] {
|
|
932
|
+
@apply ps-8;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
.dropdown-menu :is(kbd:last-child, .kbd:last-child):not([data-shortcut]) {
|
|
936
|
+
@apply ps-8;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
.dropdown-menu [data-indicator] {
|
|
940
|
+
@apply pointer-events-none invisible;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
.dropdown-menu :is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true'] [data-indicator] {
|
|
944
|
+
@apply visible;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
.dropdown-menu [data-rtl-flip] {
|
|
948
|
+
@apply rtl:rotate-180;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
.dropdown-menu:not([data-dropdown-menu-initialized]) :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
952
|
+
&:not([aria-disabled='true']):not(:disabled):hover {
|
|
953
|
+
@apply bg-accent text-accent-foreground;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
/* Empty */
|
|
958
|
+
@layer components {
|
|
959
|
+
.empty {
|
|
960
|
+
@apply flex w-full min-w-0 flex-1 flex-col items-center justify-center text-center text-balance;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
.empty > header {
|
|
964
|
+
@apply flex max-w-sm flex-col items-center;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
.empty figure {
|
|
968
|
+
@apply flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
.empty figure:has(img) {
|
|
972
|
+
@apply overflow-hidden [&_img]:size-full [&_img]:object-cover;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
.empty > :is(section, footer) {
|
|
976
|
+
@apply flex w-full max-w-sm min-w-0 flex-col items-center text-balance;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
.empty > header > p {
|
|
980
|
+
@apply [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
/* Field */
|
|
984
|
+
@layer components {
|
|
985
|
+
.fieldset {
|
|
986
|
+
@apply flex flex-col;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
.fieldset > :is([role='group'], [role='radiogroup']):not(.field),
|
|
990
|
+
.field > :is(fieldset, [role='group'], [role='radiogroup']):not(.field) {
|
|
991
|
+
@apply @container/field-group flex w-full flex-col;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
.field {
|
|
995
|
+
@apply flex w-full flex-col data-invalid:text-destructive data-[invalid=true]:text-destructive [&>*]:w-full [&>.sr-only]:w-auto;
|
|
996
|
+
|
|
997
|
+
&[data-orientation='horizontal'] {
|
|
998
|
+
@apply flex-row items-center [&>*]:w-auto [&>label]:flex-auto has-[>section]:items-start has-[>section]:[&>section]:flex-1 has-[>section]:[&>[type=checkbox],[type=radio]]:mt-px [&_p]:text-balance;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
&[data-orientation='responsive'] {
|
|
1002
|
+
@apply flex-col @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto @md/field-group:has-[>section]:items-start @md/field-group:[&>label]:flex-auto @md/field-group:has-[>section]:[&>[type=checkbox],[type=radio]]:mt-px;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
section {
|
|
1006
|
+
@apply flex flex-1 flex-col leading-snug;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
h2,
|
|
1010
|
+
h3 {
|
|
1011
|
+
@apply flex w-fit items-center;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
[role='alert'] {
|
|
1015
|
+
@apply font-normal;
|
|
1016
|
+
|
|
1017
|
+
ul {
|
|
1018
|
+
@apply ms-4 flex list-disc flex-col gap-1;
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
.field > label,
|
|
1024
|
+
.field > section > label,
|
|
1025
|
+
label:has(> .field) {
|
|
1026
|
+
@apply w-fit;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
.field > label:has(> .field),
|
|
1030
|
+
.field > label:has(input[type='radio']),
|
|
1031
|
+
.field > label:has(input[type='checkbox']),
|
|
1032
|
+
.field > label:has(input[role='switch']),
|
|
1033
|
+
label:has(> .field) {
|
|
1034
|
+
@apply w-full;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.field > label:has(> .field),
|
|
1038
|
+
label:has(> .field) {
|
|
1039
|
+
@apply flex-col;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
.fieldset legend + p,
|
|
1043
|
+
.field > p,
|
|
1044
|
+
.field section > p {
|
|
1045
|
+
@apply leading-normal font-normal [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
.field > p,
|
|
1049
|
+
.field section > p {
|
|
1050
|
+
@apply last:mt-0 nth-last-2:-mt-1;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
.field-separator {
|
|
1054
|
+
@apply relative;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
.field-separator > hr[role='separator'] {
|
|
1058
|
+
@apply absolute inset-x-0 top-1/2;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
.field-separator > span {
|
|
1062
|
+
@apply relative mx-auto block w-fit bg-background;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
/* Checkbox */
|
|
1066
|
+
@layer components {
|
|
1067
|
+
.field > input[type='checkbox']:not([role='switch']),
|
|
1068
|
+
.input[type='checkbox']:not([role='switch']) {
|
|
1069
|
+
@apply relative shrink-0 appearance-none outline-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
1070
|
+
|
|
1071
|
+
&:checked:after {
|
|
1072
|
+
@apply content-[''] block bg-current;
|
|
1073
|
+
@apply mask-[image:var(--check-icon)] mask-size-[0.875rem] mask-no-repeat mask-center;
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
/* Input */
|
|
1078
|
+
@layer components {
|
|
1079
|
+
.field > input[type='text']:not(:is(.command > header input, .dialog > * > header input)),
|
|
1080
|
+
.field > input[type='email'],
|
|
1081
|
+
.field > input[type='password'],
|
|
1082
|
+
.field > input[type='number'],
|
|
1083
|
+
.field > input[type='file'],
|
|
1084
|
+
.field > input[type='tel'],
|
|
1085
|
+
.field > input[type='url'],
|
|
1086
|
+
.field > input[type='search']:not(:is(.command > header input, .dialog > * > header input)),
|
|
1087
|
+
.field > input[type='date'],
|
|
1088
|
+
.field > input[type='datetime-local'],
|
|
1089
|
+
.field > input[type='month'],
|
|
1090
|
+
.field > input[type='week'],
|
|
1091
|
+
.field > input[type='time'],
|
|
1092
|
+
.input[type='text'],
|
|
1093
|
+
.input[type='email'],
|
|
1094
|
+
.input[type='password'],
|
|
1095
|
+
.input[type='number'],
|
|
1096
|
+
.input[type='file'],
|
|
1097
|
+
.input[type='tel'],
|
|
1098
|
+
.input[type='url'],
|
|
1099
|
+
.input[type='search'],
|
|
1100
|
+
.input[type='date'],
|
|
1101
|
+
.input[type='datetime-local'],
|
|
1102
|
+
.input[type='month'],
|
|
1103
|
+
.input[type='week'],
|
|
1104
|
+
.input[type='time'],
|
|
1105
|
+
.input:not([type]) {
|
|
1106
|
+
@apply w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
/* Item */
|
|
1110
|
+
@layer components {
|
|
1111
|
+
.item-group {
|
|
1112
|
+
@apply flex w-full flex-col;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
.item-group > hr {
|
|
1116
|
+
@apply w-full shrink-0 border-0 border-t;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
.item {
|
|
1120
|
+
@apply flex w-full flex-wrap items-center border transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
a.item {
|
|
1124
|
+
@apply hover:bg-muted;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
.item > figure {
|
|
1128
|
+
@apply flex shrink-0 items-center justify-center [&_svg]:pointer-events-none;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
.item > figure:has(> img) {
|
|
1132
|
+
@apply overflow-hidden [&_img]:size-full [&_img]:object-cover;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
.item > section {
|
|
1136
|
+
@apply flex flex-1 flex-col;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
.item > section + section {
|
|
1140
|
+
@apply flex-none;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
.item > aside {
|
|
1144
|
+
@apply flex items-center;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
.item > :is(header, footer) {
|
|
1148
|
+
@apply flex basis-full items-center justify-between;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.item :is(h2, h3, h4) {
|
|
1152
|
+
@apply line-clamp-1 flex w-fit items-center;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
.item p {
|
|
1156
|
+
@apply text-muted-foreground line-clamp-2 text-start font-normal [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary;
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
/* Kbd */
|
|
1160
|
+
@layer components {
|
|
1161
|
+
.kbd {
|
|
1162
|
+
@apply pointer-events-none inline-flex items-center justify-center select-none;
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
/* Label */
|
|
1166
|
+
@layer components {
|
|
1167
|
+
.field > label,
|
|
1168
|
+
.field > section > label,
|
|
1169
|
+
.label {
|
|
1170
|
+
@apply flex items-center select-none peer-disabled:pointer-events-none;
|
|
1171
|
+
|
|
1172
|
+
&:has(>*:disabled),
|
|
1173
|
+
&:has(+*:disabled) {
|
|
1174
|
+
@apply pointer-events-none;
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
/* Native Select */
|
|
1179
|
+
@layer components {
|
|
1180
|
+
.field > select,
|
|
1181
|
+
select.select {
|
|
1182
|
+
@apply min-w-0 appearance-none outline-none select-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
1183
|
+
|
|
1184
|
+
option,
|
|
1185
|
+
optgroup {
|
|
1186
|
+
@apply bg-[Canvas] text-[CanvasText];
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
/* Popover */
|
|
1191
|
+
@layer components {
|
|
1192
|
+
[data-popover] {
|
|
1193
|
+
@apply absolute z-50 min-w-full w-max overflow-x-hidden overflow-y-auto visible opacity-100 scale-100 transition-all outline-hidden;
|
|
1194
|
+
|
|
1195
|
+
&[aria-hidden='true'] {
|
|
1196
|
+
@apply invisible opacity-0 scale-95;
|
|
1197
|
+
|
|
1198
|
+
&:not([data-side]),
|
|
1199
|
+
&[data-side='bottom'] {
|
|
1200
|
+
@apply -translate-y-2;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
&[data-side='top'] {
|
|
1204
|
+
@apply translate-y-2;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
&[data-side='left'] {
|
|
1208
|
+
@apply translate-x-2;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
&[data-side='right'] {
|
|
1212
|
+
@apply -translate-x-2;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
&[data-side='inline-start'] {
|
|
1216
|
+
@apply translate-x-2;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
&[data-side='inline-start']:dir(rtl) {
|
|
1220
|
+
@apply -translate-x-2;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
&[data-side='inline-end'] {
|
|
1224
|
+
@apply -translate-x-2;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
&[data-side='inline-end']:dir(rtl) {
|
|
1228
|
+
@apply translate-x-2;
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
&:not([data-side]),
|
|
1233
|
+
&[data-side='bottom'] {
|
|
1234
|
+
@apply mt-1 top-full;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
&[data-side='top'] {
|
|
1238
|
+
@apply mb-1 bottom-full;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
&[data-side='left'] {
|
|
1242
|
+
@apply me-1 end-full;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
&[data-side='right'] {
|
|
1246
|
+
@apply ms-1 start-full;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
&[data-side='inline-start'] {
|
|
1250
|
+
@apply me-1 end-full;
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
&[data-side='inline-end'] {
|
|
1254
|
+
@apply ms-1 start-full;
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
&:not([data-side]),
|
|
1258
|
+
&[data-side='bottom'],
|
|
1259
|
+
&[data-side='top'] {
|
|
1260
|
+
&:not([data-align]),
|
|
1261
|
+
&[data-align='start'] {
|
|
1262
|
+
@apply start-0;
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
&[data-align='end'] {
|
|
1266
|
+
@apply end-0;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
&[data-align='center'] {
|
|
1270
|
+
@apply start-1/2 -translate-x-1/2;
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
&[data-side='left'],
|
|
1275
|
+
&[data-side='right'],
|
|
1276
|
+
&[data-side='inline-start'],
|
|
1277
|
+
&[data-side='inline-end'] {
|
|
1278
|
+
&:not([data-align]),
|
|
1279
|
+
&[data-align='start'] {
|
|
1280
|
+
@apply top-0;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
&[data-align='end'] {
|
|
1284
|
+
@apply bottom-0;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
&[data-align='center'] {
|
|
1288
|
+
@apply top-1/2 -translate-y-1/2;
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
.popover {
|
|
1294
|
+
@apply relative inline-flex;
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
/* Progress */
|
|
1298
|
+
@layer components {
|
|
1299
|
+
.progress {
|
|
1300
|
+
@apply flex w-full items-center overflow-hidden;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
.progress:dir(rtl) {
|
|
1304
|
+
@apply flex-row-reverse;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
.progress > span {
|
|
1308
|
+
@apply h-full transition-all;
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
/* Radio */
|
|
1312
|
+
@layer components {
|
|
1313
|
+
.field > input[type='radio'],
|
|
1314
|
+
.input[type='radio'] {
|
|
1315
|
+
@apply relative shrink-0 appearance-none border outline-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
1316
|
+
|
|
1317
|
+
&:checked:before {
|
|
1318
|
+
@apply absolute top-1/2 left-1/2 content-[''] -translate-x-1/2 -translate-y-1/2 rounded-full;
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
/* Range */
|
|
1323
|
+
@layer components {
|
|
1324
|
+
.field > input[type='range'],
|
|
1325
|
+
.input[type='range'] {
|
|
1326
|
+
@apply flex appearance-none items-center p-0 outline-none disabled:pointer-events-none disabled:opacity-50;
|
|
1327
|
+
--slider-value: 20%;
|
|
1328
|
+
|
|
1329
|
+
&::-webkit-slider-thumb {
|
|
1330
|
+
@apply block shrink-0 appearance-none;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
&::-webkit-slider-runnable-track {
|
|
1334
|
+
@apply w-full appearance-none;
|
|
1335
|
+
background: linear-gradient(to right, var(--primary) var(--slider-value), var(--muted) var(--slider-value));
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
&:dir(rtl)::-webkit-slider-runnable-track {
|
|
1339
|
+
background: linear-gradient(to left, var(--primary) var(--slider-value), var(--muted) var(--slider-value));
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
&::-moz-range-thumb {
|
|
1343
|
+
@apply block shrink-0 appearance-none;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
&::-moz-range-track {
|
|
1347
|
+
@apply w-full appearance-none;
|
|
1348
|
+
background: linear-gradient(to right, var(--primary) var(--slider-value), var(--muted) var(--slider-value));
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
&:dir(rtl)::-moz-range-track {
|
|
1352
|
+
background: linear-gradient(to left, var(--primary) var(--slider-value), var(--muted) var(--slider-value));
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
&::-ms-thumb {
|
|
1356
|
+
@apply block shrink-0 appearance-none;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
&::-ms-track {
|
|
1360
|
+
@apply w-full appearance-none;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
&::-ms-fill-lower {
|
|
1364
|
+
@apply bg-primary;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
&::-ms-fill-upper {
|
|
1368
|
+
@apply bg-muted;
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
/* Select */
|
|
1373
|
+
@layer components {
|
|
1374
|
+
.select:not(select) {
|
|
1375
|
+
@apply relative inline-flex;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
.select:not(select) > button {
|
|
1379
|
+
@apply flex w-fit items-center justify-between whitespace-nowrap font-normal outline-hidden disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
.select:not(select) > button > span {
|
|
1383
|
+
@apply flex flex-1 truncate text-start;
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
.select:not(select) > button > svg {
|
|
1387
|
+
@apply shrink-0;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
.select:not(select) [data-popover] {
|
|
1391
|
+
@apply isolate overflow-x-hidden;
|
|
1392
|
+
min-width: max(100%, 9rem);
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
.select:not(select) [role='listbox'] {
|
|
1396
|
+
@apply outline-hidden;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
.select:not(select) [role='listbox'] [role='group']:not(:has([role='option']:not([aria-hidden='true']))) {
|
|
1400
|
+
@apply hidden;
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
.select:not(select) [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
1404
|
+
@apply flex items-center justify-center truncate;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
.select:not(select) [role='listbox'][data-empty]:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
1408
|
+
@apply content-[attr(data-empty)];
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
.select:not(select) [role='listbox']:not([data-empty]):not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
1412
|
+
@apply content-['No_results_found'];
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
.select:not(select) [role='option'] {
|
|
1416
|
+
@apply aria-hidden:hidden relative flex w-full cursor-default items-center truncate outline-hidden select-none aria-disabled:pointer-events-none aria-disabled:opacity-50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
.select:not(select) [role='option'][aria-selected='true'] {
|
|
1420
|
+
@apply bg-[image:var(--check-icon)] bg-no-repeat bg-position-[center_right_0.5rem] bg-size-[0.875rem];
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
.select:not(select) [role='option'][aria-selected='true']:dir(rtl) {
|
|
1424
|
+
@apply bg-position-[center_left_0.5rem];
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
.select:not(select) [role='separator'] {
|
|
1428
|
+
@apply border-0;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
.select:not(select):not([data-select-initialized]) [role='option']:not([aria-disabled='true']):not(:disabled):hover,
|
|
1432
|
+
.select:not(select) [role='option'].active {
|
|
1433
|
+
@apply bg-accent text-accent-foreground;
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
/* Sidebar */
|
|
1437
|
+
@layer components {
|
|
1438
|
+
.sidebar {
|
|
1439
|
+
&:not([data-sidebar-initialized]) {
|
|
1440
|
+
@apply max-md:hidden;
|
|
1441
|
+
}
|
|
1442
|
+
&:not([aria-hidden]),
|
|
1443
|
+
&[aria-hidden=false] {
|
|
1444
|
+
@apply max-md:bg-black/50 max-md:fixed max-md:inset-0 max-md:z-40;
|
|
1445
|
+
}
|
|
1446
|
+
> nav {
|
|
1447
|
+
@apply fixed inset-y-0 z-50 flex w-(--sidebar-mobile-width) flex-col transition-transform duration-300 ease-in-out md:w-(--sidebar-width);
|
|
1448
|
+
}
|
|
1449
|
+
& + * {
|
|
1450
|
+
@apply transition-[margin] ease-in-out duration-300;
|
|
1451
|
+
}
|
|
1452
|
+
&:not([data-side]),
|
|
1453
|
+
&[data-side=left] {
|
|
1454
|
+
> nav {
|
|
1455
|
+
@apply left-0 border-r;
|
|
1456
|
+
}
|
|
1457
|
+
& + * {
|
|
1458
|
+
@apply relative md:ml-(--sidebar-width);
|
|
1459
|
+
}
|
|
1460
|
+
&[aria-hidden=true] {
|
|
1461
|
+
> nav {
|
|
1462
|
+
@apply -translate-x-full;
|
|
1463
|
+
}
|
|
1464
|
+
& + * {
|
|
1465
|
+
@apply md:ml-0;
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
&[data-side=right] {
|
|
1470
|
+
> nav {
|
|
1471
|
+
@apply right-0 border-l;
|
|
1472
|
+
}
|
|
1473
|
+
& + * {
|
|
1474
|
+
@apply relative md:mr-(--sidebar-width);
|
|
1475
|
+
}
|
|
1476
|
+
&[aria-hidden=true] {
|
|
1477
|
+
> nav {
|
|
1478
|
+
@apply translate-x-full;
|
|
1479
|
+
}
|
|
1480
|
+
& + * {
|
|
1481
|
+
@apply md:mr-0;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
> nav {
|
|
1486
|
+
> header,
|
|
1487
|
+
> footer {
|
|
1488
|
+
@apply flex flex-col;
|
|
1489
|
+
}
|
|
1490
|
+
[role=separator] {
|
|
1491
|
+
@apply w-auto;
|
|
1492
|
+
}
|
|
1493
|
+
> section {
|
|
1494
|
+
@apply flex min-h-0 flex-1 flex-col overflow-y-auto;
|
|
1495
|
+
|
|
1496
|
+
> [role=group] {
|
|
1497
|
+
@apply relative flex w-full min-w-0 flex-col;
|
|
1498
|
+
}
|
|
1499
|
+
h3 {
|
|
1500
|
+
@apply flex shrink-0 items-center outline-hidden transition-[margin,opacity] duration-200 ease-linear [&>svg]:shrink-0;
|
|
1501
|
+
}
|
|
1502
|
+
ul {
|
|
1503
|
+
@apply flex w-full min-w-0 flex-col;
|
|
1504
|
+
|
|
1505
|
+
li {
|
|
1506
|
+
@apply relative;
|
|
1507
|
+
|
|
1508
|
+
> a,
|
|
1509
|
+
> button,
|
|
1510
|
+
> details > summary {
|
|
1511
|
+
@apply flex w-full items-center overflow-hidden text-left outline-hidden transition-[width,height,padding] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0;
|
|
1512
|
+
}
|
|
1513
|
+
> details {
|
|
1514
|
+
&:not([open]) {
|
|
1515
|
+
> summary {
|
|
1516
|
+
&::after {
|
|
1517
|
+
@apply -rotate-90;
|
|
1518
|
+
}
|
|
1519
|
+
&:where(:dir(rtl), [dir='rtl'], [dir='rtl'] *)::after {
|
|
1520
|
+
@apply rotate-90;
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
> summary {
|
|
1525
|
+
&::after {
|
|
1526
|
+
@apply ms-auto block size-3.5 bg-current content-[''] transition-transform ease-linear;
|
|
1527
|
+
@apply mask-[image:var(--chevron-down-icon)] mask-size-[1rem] mask-no-repeat mask-center;
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
ul {
|
|
1533
|
+
@apply flex min-w-0 flex-col;
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
/* Scrollbar */
|
|
1541
|
+
@layer components {
|
|
1542
|
+
.scrollbar {
|
|
1543
|
+
scrollbar-width: auto;
|
|
1544
|
+
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
|
|
1545
|
+
|
|
1546
|
+
&::-webkit-scrollbar {
|
|
1547
|
+
width: var(--scrollbar-width);
|
|
1548
|
+
height: var(--scrollbar-width);
|
|
1549
|
+
}
|
|
1550
|
+
&::-webkit-scrollbar-track {
|
|
1551
|
+
background: var(--scrollbar-track);
|
|
1552
|
+
}
|
|
1553
|
+
&::-webkit-scrollbar-thumb {
|
|
1554
|
+
background: var(--scrollbar-thumb);
|
|
1555
|
+
border-radius: var(--scrollbar-radius);
|
|
1556
|
+
border: 1px solid transparent;
|
|
1557
|
+
background-clip: padding-box;
|
|
1558
|
+
}
|
|
1559
|
+
&::-webkit-scrollbar-corner {
|
|
1560
|
+
background: var(--scrollbar-track);
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
.scrollbar-sm {
|
|
1565
|
+
scrollbar-width: thin;
|
|
1566
|
+
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
|
|
1567
|
+
|
|
1568
|
+
&::-webkit-scrollbar {
|
|
1569
|
+
width: var(--scrollbar-sm-width);
|
|
1570
|
+
height: var(--scrollbar-sm-width);
|
|
1571
|
+
}
|
|
1572
|
+
&::-webkit-scrollbar-track {
|
|
1573
|
+
background: var(--scrollbar-track);
|
|
1574
|
+
}
|
|
1575
|
+
&::-webkit-scrollbar-thumb {
|
|
1576
|
+
background: var(--scrollbar-thumb);
|
|
1577
|
+
border-radius: var(--scrollbar-radius);
|
|
1578
|
+
border: 1px solid transparent;
|
|
1579
|
+
background-clip: padding-box;
|
|
1580
|
+
}
|
|
1581
|
+
&::-webkit-scrollbar-corner {
|
|
1582
|
+
background: var(--scrollbar-track);
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
/* Skeleton */
|
|
1587
|
+
@layer components {
|
|
1588
|
+
.skeleton {
|
|
1589
|
+
@apply animate-pulse;
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
/* Switch */
|
|
1593
|
+
@layer components {
|
|
1594
|
+
.field > input[type='checkbox'][role='switch'],
|
|
1595
|
+
.input[type='checkbox'][role='switch'] {
|
|
1596
|
+
@apply inline-flex shrink-0 appearance-none items-center transition-all outline-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
1597
|
+
@apply before:pointer-events-none before:block before:content-[''] before:ring-0 before:transition-transform;
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
/* Tables */
|
|
1601
|
+
@layer components {
|
|
1602
|
+
.table-container {
|
|
1603
|
+
@apply relative w-full overflow-x-auto;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
.table {
|
|
1607
|
+
@apply w-full caption-bottom;
|
|
1608
|
+
|
|
1609
|
+
thead {
|
|
1610
|
+
@apply [&_tr]:border-b;
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
tbody {
|
|
1614
|
+
@apply [&_tr:last-child]:border-0;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
tfoot {
|
|
1618
|
+
@apply border-t font-medium [&>tr]:last:border-b-0;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
tr {
|
|
1622
|
+
@apply border-b transition-colors data-[state=selected]:bg-muted;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
th {
|
|
1626
|
+
@apply align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0 [&>[role=checkbox]]:translate-y-[2px];
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
td {
|
|
1630
|
+
@apply align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0 [&>[role=checkbox]]:translate-y-[2px];
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
/* Tabs */
|
|
1635
|
+
@layer components {
|
|
1636
|
+
.tabs {
|
|
1637
|
+
@apply flex;
|
|
1638
|
+
|
|
1639
|
+
&:has(> [role='tablist'][aria-orientation='horizontal']),
|
|
1640
|
+
&:not(:has(> [role='tablist'][aria-orientation='vertical'])) {
|
|
1641
|
+
@apply flex-col;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
&:has(> [role='tablist'][aria-orientation='vertical']) {
|
|
1645
|
+
@apply flex-row;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
> [role='tablist'] {
|
|
1649
|
+
@apply text-muted-foreground inline-flex w-fit items-center justify-center;
|
|
1650
|
+
|
|
1651
|
+
&[aria-orientation='vertical'] {
|
|
1652
|
+
@apply h-fit flex-col;
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
> [role='tab'] {
|
|
1656
|
+
@apply relative inline-flex flex-1 items-center justify-center whitespace-nowrap transition-all outline-none disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
> [role='tabpanel'] {
|
|
1661
|
+
@apply flex-1 outline-none;
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
/* Textarea */
|
|
1666
|
+
@layer components {
|
|
1667
|
+
.field > textarea,
|
|
1668
|
+
.textarea {
|
|
1669
|
+
@apply flex field-sizing-content min-h-16 w-full outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50;
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
/* Input Group */
|
|
1673
|
+
@layer components {
|
|
1674
|
+
.input-group {
|
|
1675
|
+
@apply relative flex w-full min-w-0 items-center outline-none;
|
|
1676
|
+
|
|
1677
|
+
&[data-orientation='vertical'],
|
|
1678
|
+
&:has(> [data-align='block-start']),
|
|
1679
|
+
&:has(> [data-align='block-end']) {
|
|
1680
|
+
@apply h-auto flex-col items-stretch;
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
.input-group > :is(input, textarea, select, [data-control]) {
|
|
1685
|
+
@apply text-foreground placeholder:text-muted-foreground block min-w-0 flex-1 appearance-none rounded-none border-0 bg-transparent shadow-none outline-none ring-0 focus-visible:ring-0 aria-invalid:ring-0;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
.input-group > :is(input, select, [data-control]) {
|
|
1689
|
+
@apply h-full;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
.input-group > [data-control] {
|
|
1693
|
+
@apply w-full;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
.input-group:is([data-orientation='vertical'], :has(> [data-align='block-start']), :has(> [data-align='block-end'])) > :is(input, select, [data-control]) {
|
|
1697
|
+
@apply h-auto flex-none;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
.input-group[data-orientation='vertical']:has(> footer[data-align='end']) > :is(input, select, [data-control]),
|
|
1701
|
+
.input-group:has(> [data-align='block-end']) > :is(input, select, [data-control]) {
|
|
1702
|
+
@apply pt-3;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
.input-group[data-orientation='vertical']:has(> header[data-align='start']) > :is(input, select, [data-control]),
|
|
1706
|
+
.input-group:has(> [data-align='block-start']) > :is(input, select, [data-control]) {
|
|
1707
|
+
@apply pb-3;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
.input-group > textarea {
|
|
1711
|
+
@apply field-sizing-content min-h-20 w-full resize-none;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
.input-group > :is(span, kbd, svg, [role='group'], .popover, .dropdown-menu, button, footer, header, hr[role='separator']) {
|
|
1715
|
+
@apply shrink-0;
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
.input-group > :is(span, [role='group'], footer, header) {
|
|
1719
|
+
@apply inline-flex items-center;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
.input-group > svg {
|
|
1723
|
+
@apply pointer-events-none;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
.input-group > :is([data-align='start'], [data-align='inline-start'], [data-align='block-start']) {
|
|
1727
|
+
@apply order-first;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
.input-group > :is([data-align='end'], [data-align='inline-end'], [data-align='block-end']) {
|
|
1731
|
+
@apply order-last;
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
.input-group > :is([data-align='block-start'], [data-align='block-end']) {
|
|
1735
|
+
@apply w-full justify-start;
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
.input-group > button:is([data-align='start'], [data-align='inline-start']) {
|
|
1739
|
+
@apply ms-1;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
.input-group > button:is([data-align='end'], [data-align='inline-end']) {
|
|
1743
|
+
@apply me-1;
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
/* Toasts */
|
|
1747
|
+
@layer components {
|
|
1748
|
+
.toaster {
|
|
1749
|
+
@apply pointer-events-none fixed bottom-0 z-50 flex w-full flex-col-reverse gap-4 p-4 sm:max-w-90;
|
|
1750
|
+
|
|
1751
|
+
&:not([data-align]),
|
|
1752
|
+
&[data-align='end'] {
|
|
1753
|
+
@apply right-0;
|
|
1754
|
+
}
|
|
1755
|
+
&[data-align='start'] {
|
|
1756
|
+
@apply left-0;
|
|
1757
|
+
}
|
|
1758
|
+
&[data-align='center'] {
|
|
1759
|
+
@apply left-1/2 -translate-x-1/2;
|
|
1760
|
+
}
|
|
1761
|
+
.toast {
|
|
1762
|
+
@apply pointer-events-auto grid w-full grid-rows-[1fr] animate-[toast-up_0.3s_ease-in-out] transition-[grid-template-rows,opacity] duration-300 ease-in-out;
|
|
1763
|
+
|
|
1764
|
+
.toast-content {
|
|
1765
|
+
@apply flex items-center gap-2.5 overflow-hidden p-3 text-[13px];
|
|
1766
|
+
|
|
1767
|
+
svg {
|
|
1768
|
+
@apply size-4 shrink-0;
|
|
1769
|
+
}
|
|
1770
|
+
section {
|
|
1771
|
+
h2 {
|
|
1772
|
+
@apply font-medium tracking-tight;
|
|
1773
|
+
}
|
|
1774
|
+
p {
|
|
1775
|
+
@apply text-muted-foreground break-all;
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
footer {
|
|
1779
|
+
@apply ms-auto flex flex-col gap-2;
|
|
1780
|
+
|
|
1781
|
+
[data-toast-action],
|
|
1782
|
+
[data-toast-cancel] {
|
|
1783
|
+
@apply h-6 px-2.5 text-xs;
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
&[aria-hidden='true'] {
|
|
1788
|
+
@apply grid-rows-[0fr] overflow-hidden border-0 p-0 opacity-0;
|
|
1789
|
+
|
|
1790
|
+
.toast-content {
|
|
1791
|
+
@apply border-0;
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
@keyframes toast-up {
|
|
1798
|
+
from {
|
|
1799
|
+
opacity: 0;
|
|
1800
|
+
transform: translateY(100%);
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
/* Tooltip */
|
|
1804
|
+
@layer components {
|
|
1805
|
+
[data-tooltip] {
|
|
1806
|
+
@apply relative;
|
|
1807
|
+
|
|
1808
|
+
&:before {
|
|
1809
|
+
@apply absolute block z-[60] w-fit max-w-xs origin-(--transform-origin) scale-95 truncate invisible opacity-0 transition-all pointer-events-none content-[attr(data-tooltip)];
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
&:hover:before {
|
|
1813
|
+
@apply visible opacity-100 scale-100;
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
&:focus-visible:not(:hover):before {
|
|
1817
|
+
@apply hidden;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
&:not([data-side]),
|
|
1821
|
+
&[data-side='top'] {
|
|
1822
|
+
@apply before:bottom-full before:mb-1.5 before:translate-y-2 hover:before:translate-y-0;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
&[data-side='bottom'] {
|
|
1826
|
+
@apply before:top-full before:mt-1.5 before:-translate-y-2 hover:before:translate-y-0;
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
&:not([data-side]),
|
|
1830
|
+
&[data-side='top'],
|
|
1831
|
+
&[data-side='bottom'] {
|
|
1832
|
+
&[data-align='start'] {
|
|
1833
|
+
@apply before:left-0;
|
|
1834
|
+
}
|
|
1835
|
+
&[data-align='end'] {
|
|
1836
|
+
@apply before:right-0;
|
|
1837
|
+
}
|
|
1838
|
+
&:not([data-align]),
|
|
1839
|
+
&[data-align='center'] {
|
|
1840
|
+
@apply before:left-1/2 before:-translate-x-1/2;
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
&[data-side='left'] {
|
|
1845
|
+
@apply before:right-full before:mr-1.5 before:translate-x-2 hover:before:translate-x-0;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
&[data-side='right'] {
|
|
1849
|
+
@apply before:left-full before:ml-1.5 before:-translate-x-2 hover:before:translate-x-0;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
&[data-side='inline-start'] {
|
|
1853
|
+
@apply before:right-full before:mr-1.5 before:translate-x-2 hover:before:translate-x-0;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
&[data-side='inline-start']:dir(rtl) {
|
|
1857
|
+
@apply before:right-auto before:left-full before:mr-0 before:ml-1.5 before:-translate-x-2 hover:before:translate-x-0;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
&[data-side='inline-end'] {
|
|
1861
|
+
@apply before:left-full before:ml-1.5 before:-translate-x-2 hover:before:translate-x-0;
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
&[data-side='inline-end']:dir(rtl) {
|
|
1865
|
+
@apply before:left-auto before:right-full before:ml-0 before:mr-1.5 before:translate-x-2 hover:before:translate-x-0;
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
&[data-side='left'],
|
|
1869
|
+
&[data-side='right'],
|
|
1870
|
+
&[data-side='inline-start'],
|
|
1871
|
+
&[data-side='inline-end'] {
|
|
1872
|
+
&[data-align='start'] {
|
|
1873
|
+
@apply before:top-0;
|
|
1874
|
+
}
|
|
1875
|
+
&[data-align='end'] {
|
|
1876
|
+
@apply before:bottom-0;
|
|
1877
|
+
}
|
|
1878
|
+
&:not([data-align]),
|
|
1879
|
+
&[data-align='center'] {
|
|
1880
|
+
@apply before:top-1/2 before:-translate-y-1/2;
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
}
|