@mesob/ui 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.d.ts +240 -172
- package/dist/components.js +3132 -3017
- package/dist/components.js.map +1 -1
- package/dist/providers.d.ts +3 -0
- package/dist/providers.js +7 -0
- package/dist/providers.js.map +1 -1
- package/package.json +8 -2
- package/src/styles/lyra/button.css +79 -0
- package/src/styles/maia/button.css +79 -0
- package/src/styles/mira/button.css +79 -0
- package/src/styles/style-lyra.css +2208 -0
- package/src/styles/style-maia.css +2245 -0
- package/src/styles/style-mira.css +2247 -0
- package/src/styles/style-nova.css +2320 -0
- package/src/styles/style-vega.css +2316 -0
- package/src/styles/themes.css +5 -0
|
@@ -0,0 +1,2245 @@
|
|
|
1
|
+
@import './maia/button.css';
|
|
2
|
+
|
|
3
|
+
.style-maia {
|
|
4
|
+
/* MARK: Accordion */
|
|
5
|
+
.cn-accordion {
|
|
6
|
+
@apply overflow-hidden rounded-2xl border;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.cn-accordion-item {
|
|
10
|
+
@apply data-open:bg-muted/50 not-last:border-b;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.cn-accordion-trigger {
|
|
14
|
+
@apply **:data-[slot=accordion-trigger-icon]:text-muted-foreground gap-6 p-4 text-left text-sm font-medium hover:underline **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.cn-accordion-content {
|
|
18
|
+
@apply data-open:animate-accordion-down data-closed:animate-accordion-up px-4 text-sm;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.cn-accordion-content-inner {
|
|
22
|
+
@apply pt-0 pb-4;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* MARK: Action Icon */
|
|
26
|
+
.cn-action-icon-variant-default {
|
|
27
|
+
@apply bg-primary text-primary-foreground hover:bg-primary/90 active:bg-primary/95;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.cn-action-icon-variant-destructive {
|
|
31
|
+
@apply bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cn-action-icon-variant-outline {
|
|
35
|
+
@apply border-input/70 bg-background hover:bg-accent/60 hover:text-accent-foreground border;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.cn-action-icon-variant-secondary {
|
|
39
|
+
@apply bg-secondary text-secondary-foreground hover:bg-secondary/90;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.cn-action-icon-variant-ghost {
|
|
43
|
+
@apply bg-transparent hover:bg-accent/50 hover:text-accent-foreground;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.cn-action-icon-variant-light {
|
|
47
|
+
@apply bg-primary/12 text-primary hover:bg-primary/18 dark:bg-primary/20 dark:hover:bg-primary/28;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.cn-action-icon-loader {
|
|
51
|
+
@apply bg-background/60;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* MARK: Anchor */
|
|
55
|
+
.cn-anchor-variant-default {
|
|
56
|
+
@apply text-primary underline-offset-4 hover:text-primary/80;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.cn-anchor-variant-subtle {
|
|
60
|
+
@apply text-foreground underline-offset-4 hover:text-primary hover:underline;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.cn-anchor-variant-gradient {
|
|
64
|
+
@apply from-primary via-indigo-500 to-accent bg-gradient-to-r bg-clip-text text-transparent underline-offset-4 font-medium hover:underline;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.cn-anchor-variant-muted {
|
|
68
|
+
@apply text-muted-foreground underline-offset-4 hover:text-foreground hover:underline;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* MARK: Blockquote */
|
|
72
|
+
.cn-blockquote-variant-default {
|
|
73
|
+
@apply border-border bg-muted/30 py-3 rounded-[var(--radius-xl)];
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.cn-blockquote-variant-primary {
|
|
77
|
+
@apply border-primary bg-primary/10 py-3 rounded-[var(--radius-xl)];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.cn-blockquote-variant-secondary {
|
|
81
|
+
@apply border-secondary bg-secondary/10 py-3 rounded-[var(--radius-xl)];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* MARK: Burger */
|
|
85
|
+
.cn-burger {
|
|
86
|
+
@apply rounded-[var(--radius-xl)] hover:bg-accent;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* MARK: Background Image */
|
|
90
|
+
.cn-background-image[data-radius='xs'] {
|
|
91
|
+
@apply rounded-[var(--radius-sm)];
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.cn-background-image[data-radius='sm'] {
|
|
95
|
+
@apply rounded;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.cn-background-image[data-radius='md'] {
|
|
99
|
+
@apply rounded-[var(--radius-md)];
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.cn-background-image[data-radius='lg'] {
|
|
103
|
+
@apply rounded-[var(--radius-lg)];
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.cn-background-image[data-radius='xl'] {
|
|
107
|
+
@apply rounded-[var(--radius-xl)];
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.cn-background-image[data-radius='full'] {
|
|
111
|
+
@apply rounded-full;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* MARK: Unstyled Button */
|
|
115
|
+
.cn-unstyled-button {
|
|
116
|
+
@apply hover:text-foreground/80;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* MARK: Chip */
|
|
120
|
+
.cn-chip {
|
|
121
|
+
@apply rounded-full;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.cn-chip-variant-default {
|
|
125
|
+
@apply border-transparent bg-primary text-primary-foreground hover:bg-primary/90;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.cn-chip-variant-secondary {
|
|
129
|
+
@apply border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/90;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.cn-chip-variant-outline {
|
|
133
|
+
@apply border-input/70 bg-background hover:bg-accent/60 hover:text-accent-foreground;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.cn-chip-variant-input {
|
|
137
|
+
@apply border-input/70 bg-muted/40 text-foreground hover:bg-muted/60;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.cn-chip-remove {
|
|
141
|
+
@apply rounded-full hover:bg-foreground/20;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* MARK: Copy Button */
|
|
145
|
+
.cn-copy-button {
|
|
146
|
+
@apply shrink-0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* MARK: File Button */
|
|
150
|
+
.cn-file-button {
|
|
151
|
+
@apply transition-colors disabled:text-muted-foreground;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* MARK: Highlight */
|
|
155
|
+
.cn-highlight-mark {
|
|
156
|
+
@apply border-border/60 bg-muted/40 text-foreground rounded-[var(--radius-lg)] border px-1;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* MARK: Image */
|
|
160
|
+
.cn-image {
|
|
161
|
+
@apply border-border/60 bg-muted/20 border;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.cn-image-fallback {
|
|
165
|
+
@apply border-border/60 bg-muted/20 text-muted-foreground border;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.cn-image[data-radius='none'],
|
|
169
|
+
.cn-image-fallback[data-radius='none'] {
|
|
170
|
+
@apply rounded-none;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.cn-image[data-radius='sm'],
|
|
174
|
+
.cn-image-fallback[data-radius='sm'] {
|
|
175
|
+
@apply rounded-[var(--radius-sm)];
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.cn-image[data-radius='md'],
|
|
179
|
+
.cn-image-fallback[data-radius='md'] {
|
|
180
|
+
@apply rounded-[var(--radius-md)];
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.cn-image[data-radius='lg'],
|
|
184
|
+
.cn-image-fallback[data-radius='lg'] {
|
|
185
|
+
@apply rounded-[var(--radius-lg)];
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.cn-image[data-radius='full'],
|
|
189
|
+
.cn-image-fallback[data-radius='full'] {
|
|
190
|
+
@apply rounded-full;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* MARK: Nav Link */
|
|
194
|
+
.cn-nav-link {
|
|
195
|
+
@apply rounded-[var(--radius-xl)];
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.cn-nav-link[data-active='true'] {
|
|
199
|
+
@apply bg-primary text-primary-foreground;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.cn-nav-link[data-active='true'][data-variant='subtle'] {
|
|
203
|
+
@apply bg-primary/10 text-primary hover:bg-primary/20;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.cn-nav-link[data-active='false'] {
|
|
207
|
+
@apply border-border/60 bg-muted/20 text-muted-foreground hover:bg-muted/60 hover:text-foreground border;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* MARK: Theme Icon */
|
|
211
|
+
.cn-theme-icon-variant-default {
|
|
212
|
+
@apply border-border/60 bg-muted/20 text-foreground border;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.cn-theme-icon-variant-light {
|
|
216
|
+
@apply border-border/60 bg-primary/10 text-primary dark:bg-primary/20 border;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.cn-theme-icon-variant-outline {
|
|
220
|
+
@apply border-border/60 bg-background text-primary hover:bg-muted/60 border;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.cn-theme-icon-radius-none {
|
|
224
|
+
@apply rounded-none;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.cn-theme-icon-radius-sm {
|
|
228
|
+
@apply rounded-[var(--radius-sm)];
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.cn-theme-icon-radius-md {
|
|
232
|
+
@apply rounded-[var(--radius-md)];
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.cn-theme-icon-radius-lg {
|
|
236
|
+
@apply rounded-[var(--radius-lg)];
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.cn-theme-icon-radius-full {
|
|
240
|
+
@apply rounded-full;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* MARK: Alert Dialog */
|
|
244
|
+
.cn-alert-dialog-overlay {
|
|
245
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/50 duration-100;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.cn-alert-dialog-content {
|
|
249
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-background ring-foreground/5 gap-6 rounded-4xl p-6 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-md;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.cn-alert-dialog-header {
|
|
253
|
+
@apply grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr];
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.cn-alert-dialog-media {
|
|
257
|
+
@apply bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-full sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.cn-alert-dialog-title {
|
|
261
|
+
@apply text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.cn-alert-dialog-description {
|
|
265
|
+
@apply text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/* MARK: Alert */
|
|
269
|
+
.cn-alert {
|
|
270
|
+
@apply grid gap-0.5 rounded-lg border px-4 py-3 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.cn-alert-variant-default {
|
|
274
|
+
@apply bg-card text-card-foreground;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.cn-alert-variant-destructive {
|
|
278
|
+
@apply text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.cn-alert-title {
|
|
282
|
+
@apply font-medium group-has-[>svg]/alert:col-start-2;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.cn-alert-description {
|
|
286
|
+
@apply text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.cn-alert-action {
|
|
290
|
+
@apply absolute top-2.5 right-3;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/* MARK: Avatar */
|
|
294
|
+
.cn-avatar {
|
|
295
|
+
@apply size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.cn-avatar-fallback {
|
|
299
|
+
@apply bg-muted text-muted-foreground rounded-full;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.cn-avatar-image {
|
|
303
|
+
@apply rounded-full;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.cn-avatar-badge {
|
|
307
|
+
@apply bg-primary text-primary-foreground ring-background;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.cn-avatar-group-count {
|
|
311
|
+
@apply bg-muted text-muted-foreground size-8 rounded-full text-sm group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/* MARK: Badge */
|
|
315
|
+
.cn-badge {
|
|
316
|
+
@apply h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3!;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.cn-badge-variant-default {
|
|
320
|
+
@apply bg-primary text-primary-foreground [a]:hover:bg-primary/80;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.cn-badge-variant-secondary {
|
|
324
|
+
@apply bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.cn-badge-variant-outline {
|
|
328
|
+
@apply border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground bg-input/30;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.cn-badge-variant-destructive {
|
|
332
|
+
@apply bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.cn-badge-variant-destructive-filled {
|
|
336
|
+
@apply border-transparent bg-destructive text-white [a]:hover:bg-destructive/90 dark:bg-destructive/60;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.cn-badge-variant-ghost {
|
|
340
|
+
@apply hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.cn-badge-variant-link {
|
|
344
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.cn-badge-variant-light {
|
|
348
|
+
@apply border-transparent bg-primary/10 text-primary [a]:hover:bg-primary/20 dark:bg-primary/20 dark:[a]:hover:bg-primary/30;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.cn-badge-variant-dot {
|
|
352
|
+
@apply border-transparent bg-transparent text-foreground [a]:hover:bg-accent;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.cn-badge-variant-success {
|
|
356
|
+
@apply border-transparent bg-green-600 text-white [a]:hover:bg-green-700 dark:bg-green-500;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.cn-badge-variant-warning {
|
|
360
|
+
@apply border-transparent bg-yellow-600 text-white [a]:hover:bg-yellow-700 dark:bg-yellow-500;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/* MARK: Breadcrumb */
|
|
364
|
+
.cn-breadcrumb-list {
|
|
365
|
+
@apply text-muted-foreground gap-1.5 text-sm sm:gap-2.5;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.cn-breadcrumb-item {
|
|
369
|
+
@apply gap-1.5;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.cn-breadcrumb-link {
|
|
373
|
+
@apply hover:text-foreground transition-colors;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.cn-breadcrumb-page {
|
|
377
|
+
@apply text-foreground font-normal;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.cn-breadcrumb-separator {
|
|
381
|
+
@apply [&>svg]:size-3.5;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.cn-breadcrumb-ellipsis {
|
|
385
|
+
@apply size-5 [&>svg]:size-4;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/* MARK: Button Group */
|
|
389
|
+
.cn-button-group {
|
|
390
|
+
@apply has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-4xl;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.cn-button-group-orientation-horizontal {
|
|
394
|
+
@apply [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-4xl!;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.cn-button-group-orientation-vertical {
|
|
398
|
+
@apply [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-4xl!;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.cn-button-group-text {
|
|
402
|
+
@apply bg-muted gap-2 rounded-4xl border px-2.5 text-sm font-medium [&_svg:not([class*='size-'])]:size-4;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.cn-button-group-separator {
|
|
406
|
+
@apply bg-input;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/* MARK: Calendar */
|
|
410
|
+
.cn-calendar {
|
|
411
|
+
@apply p-3 [--cell-radius:var(--radius-4xl)] [--cell-size:--spacing(8)];
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.cn-calendar-dropdown-root {
|
|
415
|
+
@apply has-focus:border-ring border-input has-focus:ring-ring/50 border has-focus:ring-[3px];
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.cn-calendar-caption-label {
|
|
419
|
+
@apply h-8 pr-2 pl-3;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/* MARK: Card */
|
|
423
|
+
.cn-card {
|
|
424
|
+
@apply ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-2xl py-4 text-sm ring-1 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.cn-card-with-border {
|
|
428
|
+
@apply border-border/60 border ring-0;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.cn-card-variant-outline {
|
|
432
|
+
@apply bg-transparent;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.cn-card-variant-filled {
|
|
436
|
+
@apply bg-muted/40;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.cn-card-header {
|
|
440
|
+
@apply gap-2 rounded-t-xl px-4 group-data-[size=sm]/card:px-4 [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.cn-card-title {
|
|
444
|
+
@apply text-base font-medium;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.cn-card-description {
|
|
448
|
+
@apply text-muted-foreground text-sm;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.cn-card-content {
|
|
452
|
+
@apply px-4 group-data-[size=sm]/card:px-4;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.cn-card-footer {
|
|
456
|
+
@apply rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/* MARK: Carousel */
|
|
460
|
+
.cn-carousel-previous {
|
|
461
|
+
@apply bg-background/90 backdrop-blur border-border/60 rounded-full border shadow-sm;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.cn-carousel-next {
|
|
465
|
+
@apply bg-background/90 backdrop-blur border-border/60 rounded-full border shadow-sm;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/* MARK: Chart */
|
|
469
|
+
.cn-chart-tooltip {
|
|
470
|
+
@apply border-border/50 bg-background gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/* MARK: Checkbox */
|
|
474
|
+
.cn-checkbox {
|
|
475
|
+
@apply border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[6px] border transition-shadow group-has-disabled/field:opacity-50 focus-visible:ring-[3px] aria-invalid:ring-[3px];
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.cn-checkbox-indicator {
|
|
479
|
+
@apply [&>svg]:size-3.5;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/* MARK: Combobox */
|
|
483
|
+
.cn-combobox-content {
|
|
484
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 *:data-[slot=input-group]:bg-input/30 max-h-72 min-w-36 overflow-hidden rounded-2xl shadow-2xl ring-1 duration-100 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-9 *:data-[slot=input-group]:border-none *:data-[slot=input-group]:shadow-none;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.cn-combobox-content-logical {
|
|
488
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.cn-combobox-label {
|
|
492
|
+
@apply text-muted-foreground px-3.5 py-2.5 text-xs;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.cn-combobox-item {
|
|
496
|
+
@apply data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground gap-2.5 rounded-xl py-2 pr-8 pl-3 text-sm [&_svg:not([class*='size-'])]:size-4;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.cn-combobox-item-indicator {
|
|
500
|
+
@apply pointer-events-none absolute right-2 flex size-4 items-center justify-center;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.cn-combobox-empty {
|
|
504
|
+
@apply text-muted-foreground hidden w-full justify-center py-2 text-center text-sm group-data-empty/combobox-content:flex;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.cn-combobox-list {
|
|
508
|
+
@apply no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto p-1 data-empty:p-0;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.cn-combobox-item-text {
|
|
512
|
+
@apply flex flex-1 gap-2;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.cn-combobox-separator {
|
|
516
|
+
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.cn-combobox-trigger {
|
|
520
|
+
@apply [&_svg:not([class*='size-'])]:size-4;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.cn-combobox-trigger-icon {
|
|
524
|
+
@apply text-muted-foreground size-4;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.cn-combobox-chips {
|
|
528
|
+
@apply bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive dark:has-aria-invalid:border-destructive/50 flex min-h-9 flex-wrap items-center gap-1.5 rounded-4xl border bg-clip-padding px-2.5 py-1.5 text-sm transition-colors focus-within:ring-[3px] has-aria-invalid:ring-[3px] has-data-[slot=combobox-chip]:px-1.5;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.cn-combobox-chip {
|
|
532
|
+
@apply bg-muted-foreground/10 text-foreground flex h-[calc(--spacing(5.5))] w-fit items-center justify-center gap-1 rounded-4xl px-2 text-xs font-medium whitespace-nowrap has-data-[slot=combobox-chip-remove]:pr-0;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.cn-combobox-chip-remove {
|
|
536
|
+
@apply -ml-1 opacity-50 hover:opacity-100;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.cn-tags-input-input {
|
|
540
|
+
@apply placeholder:text-muted-foreground min-w-[120px] flex-1 bg-transparent text-xs/relaxed outline-none disabled:cursor-not-allowed disabled:text-muted-foreground;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/* MARK: Command */
|
|
544
|
+
.cn-command {
|
|
545
|
+
@apply bg-popover text-popover-foreground rounded-4xl p-1;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.cn-command-dialog {
|
|
549
|
+
@apply rounded-4xl! p-0;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.cn-command-input-wrapper {
|
|
553
|
+
@apply p-1 pb-0;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.cn-command-input-group {
|
|
557
|
+
@apply bg-input/30 h-9;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.cn-command-input-icon {
|
|
561
|
+
@apply size-4 shrink-0 opacity-50;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.cn-command-input {
|
|
565
|
+
@apply w-full text-sm;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
.cn-command-list {
|
|
569
|
+
@apply no-scrollbar max-h-72 scroll-py-1 outline-none;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.cn-command-empty {
|
|
573
|
+
@apply py-6 text-center text-sm;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.cn-command-group {
|
|
577
|
+
@apply text-foreground **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 **:[[cmdk-group-heading]]:px-3 **:[[cmdk-group-heading]]:py-2 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.cn-command-separator {
|
|
581
|
+
@apply bg-border/50 my-1 h-px;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.cn-command-item {
|
|
585
|
+
@apply data-selected:bg-muted data-selected:text-foreground data-selected:*:[svg]:text-foreground relative flex cursor-default items-center gap-2 rounded-lg px-3 py-2 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-2xl [&_svg:not([class*='size-'])]:size-4;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.cn-command-shortcut {
|
|
589
|
+
@apply text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-xs tracking-widest;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/* MARK: Context Menu */
|
|
593
|
+
.cn-context-menu-content {
|
|
594
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 bg-popover text-popover-foreground min-w-48 rounded-2xl p-1 shadow-2xl ring-1 duration-100;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.cn-context-menu-content-logical {
|
|
598
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.cn-context-menu-item {
|
|
602
|
+
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive focus:*:[svg]:text-accent-foreground gap-2.5 rounded-xl px-3 py-2 text-sm data-inset:pl-9.5 [&_svg:not([class*='size-'])]:size-4;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.cn-context-menu-checkbox-item {
|
|
606
|
+
@apply focus:bg-accent focus:text-accent-foreground gap-2 rounded-xl py-2 pr-8 pl-3 text-sm data-inset:pl-9.5 [&_svg:not([class*='size-'])]:size-4;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.cn-context-menu-radio-item {
|
|
610
|
+
@apply focus:bg-accent focus:text-accent-foreground gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm data-inset:pl-9.5 [&_svg:not([class*='size-'])]:size-4;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.cn-context-menu-item-indicator {
|
|
614
|
+
@apply absolute right-2;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.cn-context-menu-label {
|
|
618
|
+
@apply text-muted-foreground px-3 py-2.5 text-xs data-inset:pl-9.5;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.cn-context-menu-separator {
|
|
622
|
+
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.cn-context-menu-shortcut {
|
|
626
|
+
@apply text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-xs tracking-widest;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.cn-context-menu-sub-trigger {
|
|
630
|
+
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground rounded-xl px-3 py-2 text-sm data-inset:pl-9.5 [&_svg:not([class*='size-'])]:size-4;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.cn-context-menu-sub-content {
|
|
634
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-popover text-popover-foreground min-w-32 rounded-md border p-1 shadow-lg duration-100;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.cn-context-menu-subcontent {
|
|
638
|
+
@apply shadow-lg;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/* MARK: Dialog */
|
|
642
|
+
.cn-dialog-overlay {
|
|
643
|
+
@apply fixed inset-0 z-50 data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/50 duration-200;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.cn-dialog-content {
|
|
647
|
+
@apply fixed top-1/2 left-1/2 z-50 grid max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-4xl border border-border/60 bg-background p-6 text-sm shadow-lg duration-200 data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 sm:max-w-md;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.cn-dialog-close {
|
|
651
|
+
@apply absolute top-4 right-4;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.cn-dialog-header {
|
|
655
|
+
@apply gap-2;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.cn-dialog-footer {
|
|
659
|
+
@apply gap-2;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.cn-dialog-title {
|
|
663
|
+
@apply text-base leading-none font-medium;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.cn-dialog-description {
|
|
667
|
+
@apply text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/* MARK: Drawer */
|
|
671
|
+
.cn-drawer-overlay {
|
|
672
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/50;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.cn-drawer-content {
|
|
676
|
+
@apply before:bg-background before:border-border relative flex h-auto flex-col bg-transparent p-4 text-sm before:absolute before:inset-2 before:-z-10 before:rounded-4xl before:border data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.cn-drawer-handle {
|
|
680
|
+
@apply bg-muted mx-auto mt-4 hidden h-1.5 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.cn-drawer-header {
|
|
684
|
+
@apply gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.cn-drawer-title {
|
|
688
|
+
@apply text-foreground text-base font-medium;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
.cn-drawer-description {
|
|
692
|
+
@apply text-muted-foreground text-sm;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.cn-drawer-footer {
|
|
696
|
+
@apply gap-2 p-4;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
/* MARK: Dropdown Menu */
|
|
700
|
+
.cn-dropdown-menu-content {
|
|
701
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 bg-popover text-popover-foreground min-w-48 rounded-2xl p-1 shadow-2xl ring-1 duration-100;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.cn-dropdown-menu-content-logical {
|
|
705
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
.cn-dropdown-menu-item {
|
|
709
|
+
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2.5 rounded-xl px-3 py-2 text-sm data-inset:pl-9.5 [&_svg:not([class*='size-'])]:size-4;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.cn-dropdown-menu-checkbox-item {
|
|
713
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2.5 rounded-xl py-2 pr-8 pl-3 text-sm data-inset:pl-9.5 [&_svg:not([class*='size-'])]:size-4;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.cn-dropdown-menu-radio-item {
|
|
717
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2.5 rounded-xl py-2 pr-8 pl-3 text-sm data-inset:pl-9.5 [&_svg:not([class*='size-'])]:size-4;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.cn-dropdown-menu-item-indicator {
|
|
721
|
+
@apply absolute right-2 flex items-center justify-center;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
.cn-dropdown-menu-label {
|
|
725
|
+
@apply text-muted-foreground px-3 py-2.5 text-xs data-inset:pl-9.5;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.cn-dropdown-menu-separator {
|
|
729
|
+
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.cn-dropdown-menu-shortcut {
|
|
733
|
+
@apply text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-xs tracking-widest;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
.cn-dropdown-menu-sub-trigger {
|
|
737
|
+
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-xl px-3 py-2 text-sm data-inset:pl-9.5 [&_svg:not([class*='size-'])]:size-4;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.cn-dropdown-menu-sub-content {
|
|
741
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 bg-popover text-popover-foreground min-w-36 rounded-2xl p-1 shadow-2xl ring-1 duration-100;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.cn-dropdown-menu-subcontent {
|
|
745
|
+
@apply shadow-lg;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/* MARK: Empty */
|
|
749
|
+
.cn-empty {
|
|
750
|
+
@apply gap-4 rounded-lg border-dashed p-12;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.cn-empty-header {
|
|
754
|
+
@apply gap-2;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.cn-empty-media {
|
|
758
|
+
@apply mb-2;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.cn-empty-media-default {
|
|
762
|
+
@apply bg-transparent;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.cn-empty-media-icon {
|
|
766
|
+
@apply bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.cn-empty-title {
|
|
770
|
+
@apply text-lg font-medium tracking-tight;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
.cn-empty-description {
|
|
774
|
+
@apply text-sm/relaxed;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.cn-empty-content {
|
|
778
|
+
@apply gap-4 text-sm;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
/* MARK: Field */
|
|
782
|
+
.cn-field-set {
|
|
783
|
+
@apply gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.cn-field-legend {
|
|
787
|
+
@apply mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
.cn-field-group {
|
|
791
|
+
@apply gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
.cn-field {
|
|
795
|
+
@apply data-[invalid=true]:text-destructive gap-3;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.cn-field-content {
|
|
799
|
+
@apply gap-1;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
.cn-field-label {
|
|
803
|
+
@apply has-data-checked:bg-primary/10 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 gap-2 group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-xl has-[>[data-slot=field]]:border *:data-[slot=field]:p-4;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.cn-field-title {
|
|
807
|
+
@apply gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
.cn-field-description {
|
|
811
|
+
@apply text-muted-foreground text-left text-sm [[data-variant=legend]+&]:-mt-1.5;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.cn-field-separator {
|
|
815
|
+
@apply -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.cn-field-separator-content {
|
|
819
|
+
@apply bg-background text-muted-foreground relative mx-auto block w-fit px-2;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.cn-field-error {
|
|
823
|
+
@apply text-destructive text-sm;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/* MARK: Hover Card */
|
|
827
|
+
.cn-hover-card-content {
|
|
828
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 bg-popover text-popover-foreground w-72 rounded-2xl p-4 text-sm shadow-2xl ring-1 duration-100;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.cn-hover-card-content-logical {
|
|
832
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
/* MARK: Input */
|
|
836
|
+
.cn-input {
|
|
837
|
+
@apply bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 rounded-4xl border px-3 py-1 text-base transition-colors file:h-7 file:text-sm file:font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] md:text-sm;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
/* MARK: Input OTP */
|
|
841
|
+
.cn-input-otp {
|
|
842
|
+
@apply gap-2;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.cn-input-otp-group {
|
|
846
|
+
@apply has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive rounded-4xl has-aria-invalid:ring-[3px];
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
.cn-input-otp-slot {
|
|
850
|
+
@apply bg-input/30 border-input data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive size-9 border-y border-r text-sm transition-all outline-none first:rounded-l-4xl first:border-l last:rounded-r-4xl data-[active=true]:ring-[3px];
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
.cn-input-otp-caret-line {
|
|
854
|
+
@apply animate-caret-blink bg-foreground h-4 w-px duration-1000;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
.cn-input-otp-separator {
|
|
858
|
+
@apply [&_svg:not([class*='size-'])]:size-4;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/* MARK: Item */
|
|
862
|
+
.cn-item {
|
|
863
|
+
@apply [a]:hover:bg-muted rounded-2xl border text-sm;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
.cn-item-variant-default {
|
|
867
|
+
@apply border-transparent;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
.cn-item-variant-outline {
|
|
871
|
+
@apply border-border;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.cn-item-variant-muted {
|
|
875
|
+
@apply bg-muted/50 border-transparent;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.cn-item-size-default {
|
|
879
|
+
@apply gap-3.5 px-4 py-3.5;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
.cn-item-size-sm {
|
|
883
|
+
@apply gap-3.5 px-3.5 py-3;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.cn-item-size-xs {
|
|
887
|
+
@apply gap-2.5 px-3 py-2.5 in-data-[slot=dropdown-menu-content]:p-0;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
.cn-item-media {
|
|
891
|
+
@apply gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
.cn-item-media-variant-default {
|
|
895
|
+
@apply bg-transparent;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
.cn-item-media-variant-icon {
|
|
899
|
+
@apply bg-muted border-border/50 flex size-8 items-center justify-center rounded-lg border group-data-[size=xs]/item:size-6 group-data-[size=xs]/item:rounded-md [&_svg:not([class*='size-'])]:size-4;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
.cn-item-media-variant-image {
|
|
903
|
+
@apply size-10 overflow-hidden rounded-lg group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 group-data-[size=xs]/item:rounded-md [&_img]:size-full [&_img]:object-cover;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
.cn-item-content {
|
|
907
|
+
@apply gap-1 group-data-[size=xs]/item:gap-0.5;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
.cn-item-title {
|
|
911
|
+
@apply gap-2 text-sm leading-snug font-medium underline-offset-4;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
.cn-item-description {
|
|
915
|
+
@apply text-muted-foreground text-left text-sm;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
.cn-item-actions {
|
|
919
|
+
@apply gap-2;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
.cn-item-header {
|
|
923
|
+
@apply gap-2;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
.cn-item-footer {
|
|
927
|
+
@apply gap-2;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
.cn-item-group {
|
|
931
|
+
@apply gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
.cn-item-separator {
|
|
935
|
+
@apply my-2;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
/* MARK: Kbd */
|
|
939
|
+
.cn-kbd {
|
|
940
|
+
@apply bg-muted text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 h-5 w-fit min-w-5 gap-1 rounded-sm px-1 font-sans text-xs font-medium [&_svg:not([class*='size-'])]:size-3;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
.cn-kbd-group {
|
|
944
|
+
@apply gap-1;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
/* MARK: Loader */
|
|
948
|
+
.cn-loader-bars-bar {
|
|
949
|
+
@apply rounded-sm;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
.cn-loader-dot {
|
|
953
|
+
@apply rounded-full;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
/* MARK: Loading Overlay */
|
|
957
|
+
.cn-loading-overlay {
|
|
958
|
+
@apply absolute inset-0 rounded-[inherit];
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
/* MARK: Overlay */
|
|
962
|
+
.cn-overlay {
|
|
963
|
+
@apply bg-background;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
/* MARK: Code */
|
|
967
|
+
.cn-code-inline {
|
|
968
|
+
@apply bg-muted/40 text-foreground rounded-2xl border border-border/60;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
.cn-code-block {
|
|
972
|
+
@apply bg-muted/40 text-foreground rounded-2xl border border-border/60;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
/* MARK: List */
|
|
976
|
+
.cn-list-item {
|
|
977
|
+
@apply text-muted-foreground text-sm;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
/* MARK: Mark */
|
|
981
|
+
.cn-mark {
|
|
982
|
+
@apply border-border/60 bg-muted/40 text-foreground rounded-2xl border;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
/* MARK: Paper */
|
|
986
|
+
.cn-paper {
|
|
987
|
+
@apply border-border/60 bg-card text-card-foreground;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
/* MARK: Pill */
|
|
991
|
+
.cn-pill {
|
|
992
|
+
@apply border-border/60 rounded-full border;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
.cn-pill-variant-default {
|
|
996
|
+
@apply bg-muted/20 text-muted-foreground;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
.cn-pill-variant-contrast {
|
|
1000
|
+
@apply bg-primary text-primary-foreground border-transparent;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
/* MARK: Spinner */
|
|
1004
|
+
.cn-spinner {
|
|
1005
|
+
@apply animate-spin text-primary;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
/* MARK: Label */
|
|
1009
|
+
.cn-label {
|
|
1010
|
+
@apply gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
/* MARK: Menubar */
|
|
1014
|
+
.cn-menubar {
|
|
1015
|
+
@apply bg-background h-9 rounded-2xl border p-1;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
.cn-menubar-trigger {
|
|
1019
|
+
@apply hover:bg-muted aria-expanded:bg-muted rounded-xl px-2.5 py-1 text-sm font-medium;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
.cn-menubar-content {
|
|
1023
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 min-w-48 rounded-2xl p-1 shadow-2xl ring-1 duration-100;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
.cn-menubar-content-logical {
|
|
1027
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
.cn-menubar-item {
|
|
1031
|
+
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive! not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2.5 rounded-xl px-3 py-2 text-sm data-disabled:opacity-50 data-inset:pl-9.5 [&_svg:not([class*='size-'])]:size-4;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
.cn-menubar-checkbox-item {
|
|
1035
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2.5 rounded-xl py-2 pr-3 pl-9.5 text-sm data-inset:pl-9.5;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
.cn-menubar-checkbox-item-indicator {
|
|
1039
|
+
@apply left-3 size-4 [&_svg:not([class*='size-'])]:size-4;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
.cn-menubar-radio-item {
|
|
1043
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2.5 rounded-xl py-2 pr-3 pl-9.5 text-sm data-disabled:opacity-50 data-inset:pl-9.5 [&_svg:not([class*='size-'])]:size-4;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
.cn-menubar-radio-item-indicator {
|
|
1047
|
+
@apply left-3 size-4 [&_svg:not([class*='size-'])]:size-4;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
.cn-menubar-label {
|
|
1051
|
+
@apply text-muted-foreground px-3.5 py-2.5 text-xs data-inset:pl-9.5;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
.cn-menubar-separator {
|
|
1055
|
+
@apply bg-border/50;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
.cn-menubar-shortcut {
|
|
1059
|
+
@apply text-muted-foreground group-focus/menubar-item:text-accent-foreground text-xs tracking-widest;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
.cn-menubar-sub-trigger {
|
|
1063
|
+
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground gap-2 rounded-xl px-3 py-2 text-sm data-inset:pl-9.5 [&_svg:not([class*='size-'])]:size-4;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
.cn-menubar-sub-content {
|
|
1067
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 min-w-32 rounded-2xl p-1 shadow-2xl ring-1 duration-100;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
/* MARK: Navigation Menu */
|
|
1071
|
+
.cn-navigation-menu {
|
|
1072
|
+
@apply max-w-max;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
.cn-navigation-menu-list {
|
|
1076
|
+
@apply gap-0;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
.cn-navigation-menu-trigger {
|
|
1080
|
+
@apply bg-background hover:bg-muted focus:bg-muted data-open:hover:bg-muted data-open:focus:bg-muted data-open:bg-muted/50 focus-visible:ring-ring/50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted rounded-2xl px-4.5 py-2.5 text-sm font-medium transition-all focus-visible:ring-[3px] focus-visible:outline-1 disabled:opacity-50;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
.cn-navigation-menu-trigger-icon {
|
|
1084
|
+
@apply relative top-px ml-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180 group-data-popup-open/navigation-menu-trigger:rotate-180;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
.cn-navigation-menu-content {
|
|
1088
|
+
@apply data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/5 p-2.5 pr-3 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-2xl group-data-[viewport=false]/navigation-menu:shadow-2xl group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
.cn-navigation-menu-viewport {
|
|
1092
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-95 data-open:zoom-in-90 ring-foreground/5 rounded-2xl shadow-2xl ring-1 duration-100;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
.cn-navigation-menu-link {
|
|
1096
|
+
@apply data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 focus-visible:ring-ring/50 hover:bg-muted focus:bg-muted flex items-center gap-1.5 rounded-xl p-3 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
.cn-navigation-menu-indicator {
|
|
1100
|
+
@apply data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
.cn-navigation-menu-indicator-arrow {
|
|
1104
|
+
@apply bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
.cn-navigation-menu-positioner {
|
|
1108
|
+
@apply transition-[top,left,right,bottom] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
.cn-navigation-menu-popup {
|
|
1112
|
+
@apply bg-popover text-popover-foreground ring-foreground/5 rounded-2xl shadow ring-1 transition-all ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:scale-90 data-starting-style:opacity-0;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
/* MARK: Native Select */
|
|
1116
|
+
.cn-native-select {
|
|
1117
|
+
@apply border-input bg-input/30 placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 w-full min-w-0 appearance-none rounded-4xl border py-1 pr-8 pl-3 text-sm transition-colors select-none focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=sm]:h-8;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
.cn-native-select-icon {
|
|
1121
|
+
@apply text-muted-foreground top-1/2 right-3.5 size-4 -translate-y-1/2;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
/* MARK: Money Input */
|
|
1125
|
+
.cn-money-input-currency-divider {
|
|
1126
|
+
@apply border-input border-l;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
.cn-money-input-currency-trigger {
|
|
1130
|
+
@apply rounded-4xl border-0 bg-transparent shadow-none ring-0 transition-none focus-visible:ring-0;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
/* MARK: Multi Select */
|
|
1134
|
+
.cn-multi-select-input {
|
|
1135
|
+
@apply placeholder:text-muted-foreground min-w-[120px] flex-1 bg-transparent text-sm outline-none disabled:cursor-not-allowed disabled:text-muted-foreground;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
.cn-multi-select-trigger-icon {
|
|
1139
|
+
@apply pointer-events-none absolute top-1/2 right-3 size-4 -translate-y-1/2 opacity-50;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
.cn-multi-select-content {
|
|
1143
|
+
@apply absolute top-full z-50 mt-1 w-full max-h-[300px] overflow-y-auto;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
.cn-multi-select-empty {
|
|
1147
|
+
@apply text-muted-foreground py-2 text-center text-sm;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
/* MARK: Pagination */
|
|
1151
|
+
.cn-pagination-content {
|
|
1152
|
+
@apply gap-1;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
.cn-pagination-ellipsis {
|
|
1156
|
+
@apply size-9 items-center justify-center [&_svg:not([class*='size-'])]:size-4;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
.cn-pagination-previous {
|
|
1160
|
+
@apply pl-2!;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
.cn-pagination-next {
|
|
1164
|
+
@apply pr-2!;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/* MARK: Popover */
|
|
1168
|
+
.cn-popover-content {
|
|
1169
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 flex flex-col gap-4 rounded-2xl p-4 text-sm shadow-2xl ring-1 duration-100;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
.cn-popover-content-logical {
|
|
1173
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
.cn-popover-header {
|
|
1177
|
+
@apply flex flex-col gap-1 text-sm;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
.cn-popover-title {
|
|
1181
|
+
@apply text-base font-medium;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
.cn-popover-description {
|
|
1185
|
+
@apply text-muted-foreground;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
/* MARK: Progress */
|
|
1189
|
+
.cn-progress {
|
|
1190
|
+
@apply bg-muted rounded-4xl data-[size=xs]:h-1.5 data-[size=sm]:h-2 data-[size=md]:h-3 data-[size=lg]:h-4 data-[size=xl]:h-5;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
.cn-progress-track {
|
|
1194
|
+
@apply bg-muted rounded-4xl data-[size=xs]:h-1.5 data-[size=sm]:h-2 data-[size=md]:h-3 data-[size=lg]:h-4 data-[size=xl]:h-5;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
.cn-progress-indicator {
|
|
1198
|
+
@apply bg-primary;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
.cn-progress-label {
|
|
1202
|
+
@apply text-sm font-medium;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.cn-progress-value {
|
|
1206
|
+
@apply text-muted-foreground ml-auto text-sm tabular-nums;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
/* MARK: Radio Group */
|
|
1210
|
+
.cn-radio-group {
|
|
1211
|
+
@apply grid gap-3;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
.cn-radio-group-item {
|
|
1215
|
+
@apply border-input bg-background text-primary dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 grid place-items-center rounded-full border shadow-xs focus-visible:ring-[3px] aria-invalid:ring-[3px];
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
.cn-radio-group-indicator {
|
|
1219
|
+
@apply group-aria-invalid/radio-group-item:text-destructive absolute inset-0;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
.cn-radio-group-indicator-icon {
|
|
1223
|
+
@apply absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
/* MARK: Resizable */
|
|
1227
|
+
.cn-resizable-handle-icon {
|
|
1228
|
+
@apply bg-border h-6 w-1 rounded-lg;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
/* MARK: Scroll Area */
|
|
1232
|
+
.cn-scroll-area-viewport {
|
|
1233
|
+
@apply focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
.cn-scroll-area-scrollbar {
|
|
1237
|
+
@apply data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
.cn-scroll-area-thumb {
|
|
1241
|
+
@apply bg-border/80 relative flex-1 rounded-full;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
/* MARK: Select */
|
|
1245
|
+
.cn-select-trigger {
|
|
1246
|
+
@apply border-input data-placeholder:text-muted-foreground bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-4xl border px-3 py-2 text-sm transition-colors focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-4;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
.cn-select-value {
|
|
1250
|
+
@apply flex flex-1 text-left;
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
.cn-select-trigger-icon {
|
|
1254
|
+
@apply text-muted-foreground size-4;
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
.cn-select-content {
|
|
1258
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 min-w-36 rounded-2xl shadow-2xl ring-1 duration-100;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
.cn-select-content-logical {
|
|
1262
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
.cn-select-label {
|
|
1266
|
+
@apply text-muted-foreground px-3 py-2.5 text-xs;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
.cn-select-item {
|
|
1270
|
+
@apply focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2.5 rounded-xl py-2 pr-8 pl-3 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
.cn-select-item-indicator {
|
|
1274
|
+
@apply pointer-events-none absolute right-2 flex size-4 items-center justify-center;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
.cn-select-group {
|
|
1278
|
+
@apply scroll-my-1 p-1;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
.cn-select-item-text {
|
|
1282
|
+
@apply flex flex-1 gap-2;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
.cn-select-separator {
|
|
1286
|
+
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
.cn-select-scroll-up-button {
|
|
1290
|
+
@apply bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
.cn-select-scroll-down-button {
|
|
1294
|
+
@apply bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
/* MARK: Separator */
|
|
1298
|
+
.cn-separator {
|
|
1299
|
+
@apply bg-border shrink-0;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
.cn-separator-horizontal {
|
|
1303
|
+
@apply h-px w-full;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
.cn-separator-vertical {
|
|
1307
|
+
@apply h-full w-px;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
/* MARK: Sheet */
|
|
1311
|
+
.cn-sheet-overlay {
|
|
1312
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
.cn-sheet-content {
|
|
1316
|
+
@apply bg-background data-open:animate-in data-closed:animate-out data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
.cn-sheet-close {
|
|
1320
|
+
@apply absolute top-4 right-4;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
.cn-sheet-header {
|
|
1324
|
+
@apply gap-1.5 p-6;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
.cn-sheet-footer {
|
|
1328
|
+
@apply gap-2 p-6;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
.cn-sheet-title {
|
|
1332
|
+
@apply text-foreground text-base font-medium;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
.cn-sheet-description {
|
|
1336
|
+
@apply text-muted-foreground text-sm;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
/* MARK: Sidebar */
|
|
1340
|
+
.cn-sidebar-gap {
|
|
1341
|
+
@apply transition-[width] duration-200 ease-linear;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
.cn-sidebar-inner {
|
|
1345
|
+
@apply bg-sidebar group-data-[variant=floating]:ring-sidebar-border group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
.cn-sidebar-rail {
|
|
1349
|
+
@apply hover:after:bg-sidebar-border;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
.cn-sidebar-inset {
|
|
1353
|
+
@apply bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
.cn-sidebar-input {
|
|
1357
|
+
@apply bg-background h-8 w-full shadow-none;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
.cn-sidebar-header {
|
|
1361
|
+
@apply gap-2 p-2 [--radius:var(--radius-xl)];
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
.cn-sidebar-content {
|
|
1365
|
+
@apply no-scrollbar gap-2 [--radius:var(--radius-xl)];
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
.cn-sidebar-footer {
|
|
1369
|
+
@apply gap-2 p-2;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
.cn-sidebar-separator {
|
|
1373
|
+
@apply bg-sidebar-border mx-2;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
.cn-sidebar-group {
|
|
1377
|
+
@apply p-2;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
.cn-sidebar-menu {
|
|
1381
|
+
@apply gap-1;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
.cn-sidebar-group-content {
|
|
1385
|
+
@apply text-sm;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
.cn-sidebar-group-label {
|
|
1389
|
+
@apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
.cn-sidebar-group-action {
|
|
1393
|
+
@apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 w-5 rounded-md p-0 focus-visible:ring-2 [&>svg]:size-4;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
.cn-sidebar-menu-button {
|
|
1397
|
+
@apply ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-primary/10 data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground gap-2 rounded-lg px-3 py-2 text-left text-sm transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 data-active:font-medium;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
.cn-sidebar-menu-button-variant-default {
|
|
1401
|
+
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
.cn-sidebar-menu-button-variant-outline {
|
|
1405
|
+
@apply bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))];
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
.cn-sidebar-menu-button-size-default {
|
|
1409
|
+
@apply h-9 text-sm;
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
.cn-sidebar-menu-button-size-sm {
|
|
1413
|
+
@apply h-8 text-xs;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
.cn-sidebar-menu-button-size-lg {
|
|
1417
|
+
@apply h-14 px-3 text-sm group-data-[collapsible=icon]:p-0!;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
.cn-sidebar-menu-action {
|
|
1421
|
+
@apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 aspect-square w-5 rounded-md p-0 peer-data-[size=default]/menu-button:top-2 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 focus-visible:ring-2 [&>svg]:size-4;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
.cn-sidebar-menu-badge {
|
|
1425
|
+
@apply text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-active/menu-button:text-sidebar-accent-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 rounded-md px-1 text-xs font-medium peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1;
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
.cn-sidebar-menu-skeleton {
|
|
1429
|
+
@apply h-8 gap-2 rounded-md px-2;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
.cn-sidebar-menu-skeleton-icon {
|
|
1433
|
+
@apply size-4 rounded-md;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
.cn-sidebar-menu-skeleton-text {
|
|
1437
|
+
@apply h-4;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
.cn-sidebar-menu-sub {
|
|
1441
|
+
@apply border-sidebar-border mx-3.5 translate-x-px gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
.cn-sidebar-menu-sub-button {
|
|
1445
|
+
@apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground data-active:bg-primary/10 data-active:text-sidebar-accent-foreground h-7 gap-2 rounded-md px-2 focus-visible:ring-2 data-[size=md]:text-sm data-[size=sm]:text-xs [&>svg]:size-4;
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
/* MARK: Skeleton */
|
|
1449
|
+
.cn-skeleton {
|
|
1450
|
+
@apply bg-muted rounded-xl;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
/* MARK: Slider */
|
|
1454
|
+
.cn-slider {
|
|
1455
|
+
@apply data-[orientation=vertical]:min-h-40;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
.cn-slider-track {
|
|
1459
|
+
@apply bg-muted rounded-4xl data-[orientation=horizontal]:h-3 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-3;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
.cn-slider-range {
|
|
1463
|
+
@apply bg-primary;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
.cn-slider-thumb {
|
|
1467
|
+
@apply border-primary ring-ring/50 size-4 rounded-4xl border bg-white shadow-sm transition-colors hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden;
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
/* MARK: Sonner */
|
|
1471
|
+
.cn-toast {
|
|
1472
|
+
@apply rounded-2xl;
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
/* MARK: Switch */
|
|
1476
|
+
.cn-switch {
|
|
1477
|
+
@apply data-checked:bg-primary data-unchecked:bg-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 dark:data-unchecked:bg-input/80 shrink-0 rounded-full border border-transparent focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px];
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
.cn-switch-thumb {
|
|
1481
|
+
@apply bg-background dark:data-unchecked:bg-foreground dark:data-checked:bg-primary-foreground rounded-full group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0;
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
/* MARK: Table */
|
|
1485
|
+
.cn-table-container {
|
|
1486
|
+
@apply border-border/60 bg-muted/20 relative w-full overflow-x-auto rounded-2xl border p-2;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
.cn-table {
|
|
1490
|
+
@apply w-full caption-bottom text-sm;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
.cn-table-header {
|
|
1494
|
+
@apply [&_tr]:border-b;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
.cn-table-body {
|
|
1498
|
+
@apply [&_tr:last-child]:border-0;
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
.cn-table-footer {
|
|
1502
|
+
@apply bg-muted/50 border-t font-medium [&>tr]:last:border-b-0;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
.cn-table-row {
|
|
1506
|
+
@apply hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors;
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
.cn-table-head {
|
|
1510
|
+
@apply text-foreground h-12 px-3 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
.cn-table-cell {
|
|
1514
|
+
@apply p-3 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
.cn-table-caption {
|
|
1518
|
+
@apply text-muted-foreground mt-4 text-sm;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
/* MARK: Tabs */
|
|
1522
|
+
.cn-tabs {
|
|
1523
|
+
@apply gap-2;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
.cn-tabs-list {
|
|
1527
|
+
@apply rounded-4xl p-[3px] group-data-horizontal/tabs:h-9 group-data-vertical/tabs:rounded-2xl data-[variant=line]:rounded-none;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
.cn-tabs-trigger {
|
|
1531
|
+
@apply gap-1.5 rounded-xl border border-transparent px-2 py-1 text-sm font-medium group-data-vertical/tabs:px-2.5 group-data-vertical/tabs:py-1.5 [&_svg:not([class*='size-'])]:size-4;
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
.cn-tabs-content {
|
|
1535
|
+
@apply text-sm;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
/* MARK: Textarea */
|
|
1539
|
+
.cn-textarea {
|
|
1540
|
+
@apply border-input bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 resize-none rounded-xl border px-3 py-3 text-base transition-colors focus-visible:ring-[3px] aria-invalid:ring-[3px] md:text-sm;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
/* MARK: Json Input */
|
|
1544
|
+
.cn-json-input-textarea {
|
|
1545
|
+
@apply font-mono text-sm;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
.cn-json-input-error {
|
|
1549
|
+
@apply mt-1.5 text-sm text-destructive;
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
/* MARK: Toggle */
|
|
1553
|
+
.cn-toggle {
|
|
1554
|
+
@apply hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive gap-1 rounded-4xl text-sm font-medium transition-colors [&_svg:not([class*='size-'])]:size-4;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
.cn-toggle-variant-default {
|
|
1558
|
+
@apply bg-transparent;
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
.cn-toggle-variant-outline {
|
|
1562
|
+
@apply border-input hover:bg-muted border bg-transparent;
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
.cn-toggle-size-default {
|
|
1566
|
+
@apply h-9 min-w-9 rounded-[min(var(--radius-2xl),12px)] px-2.5;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
.cn-toggle-size-sm {
|
|
1570
|
+
@apply h-8 min-w-8 px-3;
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
.cn-toggle-size-lg {
|
|
1574
|
+
@apply h-10 min-w-10 px-2.5;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
/* MARK: Toggle Group */
|
|
1578
|
+
.cn-toggle-group {
|
|
1579
|
+
@apply data-[spacing=0]:data-[variant=outline]:rounded-4xl;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
.cn-toggle-group-item {
|
|
1583
|
+
@apply data-[state=on]:bg-muted group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-3 group-data-[spacing=0]/toggle-group:shadow-none group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-4xl group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-xl group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-4xl group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-xl;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
/* MARK: Tooltip */
|
|
1587
|
+
.cn-tooltip-content {
|
|
1588
|
+
@apply data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-2xl px-3 py-1.5 text-xs **:data-[slot=kbd]:rounded-4xl;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
.cn-tooltip-content-logical {
|
|
1592
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
.cn-tooltip-arrow {
|
|
1596
|
+
@apply size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] data-[side=left]:translate-x-[-1.5px] data-[side=right]:translate-x-[1.5px];
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
.cn-tooltip-arrow-logical {
|
|
1600
|
+
@apply data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:translate-x-[1.5px] data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:translate-x-[-1.5px] data-[side=inline-start]:-translate-y-1/2;
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
/* MARK: Input Group */
|
|
1604
|
+
.cn-input-group {
|
|
1605
|
+
@apply border-input bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-9 rounded-4xl border transition-colors overflow-hidden in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-data-[align=block-end]:rounded-2xl has-data-[align=block-start]:rounded-2xl has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot][aria-invalid=true]]:ring-[3px] has-[textarea]:rounded-xl has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
.cn-input-group-addon {
|
|
1609
|
+
@apply text-muted-foreground **:data-[slot=kbd]:bg-muted-foreground/10 h-auto gap-2 py-2 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 **:data-[slot=kbd]:rounded-4xl **:data-[slot=kbd]:px-1.5 [&>svg:not([class*='size-'])]:size-4;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
.cn-input-group-addon-align-inline-start {
|
|
1613
|
+
@apply pl-3 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem];
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
.cn-input-group-addon-align-inline-end {
|
|
1617
|
+
@apply pr-3 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem];
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
.cn-input-group-addon-align-block-start {
|
|
1621
|
+
@apply px-3 pt-3 group-has-[>input]/input-group:pt-3 [.border-b]:pb-3;
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
.cn-input-group-addon-align-block-end {
|
|
1625
|
+
@apply px-3 pb-3 group-has-[>input]/input-group:pb-3 [.border-t]:pt-3;
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
.cn-input-group-button {
|
|
1629
|
+
@apply gap-2 rounded-4xl text-sm;
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
.cn-input-group-button-size-xs {
|
|
1633
|
+
@apply h-6 gap-1 px-1.5 [&>svg:not([class*='size-'])]:size-3.5;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
.cn-input-group-button-size-icon-xs {
|
|
1637
|
+
@apply size-6 p-0 has-[>svg]:p-0;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
.cn-input-group-button-size-icon-sm {
|
|
1641
|
+
@apply size-8 p-0 has-[>svg]:p-0;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
.cn-input-group-text {
|
|
1645
|
+
@apply text-muted-foreground gap-2 text-sm [&_svg:not([class*='size-'])]:size-4;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
.cn-input-group-input {
|
|
1649
|
+
@apply rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent;
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
.cn-input-group-textarea {
|
|
1653
|
+
@apply rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
/* MARK: Number Input */
|
|
1657
|
+
.cn-number-input-controls-addon {
|
|
1658
|
+
@apply py-0 pr-0;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
.cn-number-input-controls {
|
|
1662
|
+
@apply border-input flex w-8 shrink-0 flex-col border-l;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
.cn-number-input-control {
|
|
1666
|
+
@apply hover:bg-accent hover:text-accent-foreground flex flex-1 items-center justify-center text-muted-foreground transition-colors;
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
/* MARK: File Input */
|
|
1670
|
+
.cn-file-input-wrapper {
|
|
1671
|
+
@apply w-full space-y-3 data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
.cn-file-input-dropzone {
|
|
1675
|
+
@apply border-input bg-input/30 hover:bg-input/50 focus-within:border-ring focus-within:ring-ring/50 relative flex min-h-[9rem] w-full cursor-pointer flex-col items-center justify-center rounded-2xl border-2 border-dashed px-5 py-7 text-sm transition-colors outline-none focus-within:ring-[3px] data-[dragging=true]:border-ring data-[dragging=true]:bg-input/50;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
.cn-file-input-hidden-input {
|
|
1679
|
+
@apply absolute inset-0 cursor-pointer opacity-0;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
.cn-file-input-prompt {
|
|
1683
|
+
@apply text-muted-foreground flex flex-col items-center gap-2 text-center;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
.cn-file-input-icon {
|
|
1687
|
+
@apply size-8;
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
.cn-file-input-title {
|
|
1691
|
+
@apply text-sm;
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
.cn-file-input-accept {
|
|
1695
|
+
@apply text-xs opacity-70;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
.cn-file-input-list {
|
|
1699
|
+
@apply space-y-3;
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
.cn-file-input-item {
|
|
1703
|
+
@apply border-input bg-input/30 flex items-center justify-between rounded-2xl border px-5 py-3 text-sm;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
.cn-file-input-item-left {
|
|
1707
|
+
@apply flex min-w-0 items-center gap-2;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
.cn-file-input-item-icon {
|
|
1711
|
+
@apply text-muted-foreground size-4 shrink-0;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
.cn-file-input-item-name {
|
|
1715
|
+
@apply truncate;
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
.cn-file-input-item-size {
|
|
1719
|
+
@apply text-muted-foreground text-xs tabular-nums;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
.cn-file-input-item-remove {
|
|
1723
|
+
@apply hover:bg-accent transition-colors;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
/* MARK: Animated Tabs */
|
|
1727
|
+
.cn-animated-tabs-list {
|
|
1728
|
+
@apply gap-1 border-b border-border/60;
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
.cn-animated-tabs-underline {
|
|
1732
|
+
@apply bottom-[-1px] left-0 z-20 h-0.5 bg-primary;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
.cn-animated-tabs-tab {
|
|
1736
|
+
@apply cursor-pointer px-3 py-2.5 text-sm font-medium relative z-10 transition-colors duration-200 hover:text-foreground;
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
.cn-animated-tabs-tab-active {
|
|
1740
|
+
@apply text-foreground;
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
.cn-animated-tabs-tab-inactive {
|
|
1744
|
+
@apply text-muted-foreground;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
.cn-animated-tabs-more {
|
|
1748
|
+
@apply gap-1;
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
.cn-animated-tabs-dropdown-item {
|
|
1752
|
+
@apply cursor-pointer;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
.cn-animated-tabs-dropdown-item-active {
|
|
1756
|
+
@apply bg-accent font-medium;
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
/* MARK: Color Input */
|
|
1760
|
+
.cn-color-input-eye-dropper {
|
|
1761
|
+
@apply border-border/60 bg-muted/20 text-muted-foreground hover:bg-muted/60 hover:text-foreground min-h-[unset] min-w-[unset] rounded-xl border transition-colors;
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
.cn-color-input-popover {
|
|
1765
|
+
@apply border-border/60 bg-muted/20 w-auto min-w-0 rounded-2xl border p-2.5 shadow-none ring-0;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
/* MARK: Color Picker */
|
|
1769
|
+
.cn-color-picker {
|
|
1770
|
+
@apply border-border/60 bg-muted/20 rounded-2xl border p-3;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
.cn-color-picker-saturation {
|
|
1774
|
+
@apply border-border/60 rounded-2xl border;
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
.cn-color-picker-thumb {
|
|
1778
|
+
@apply border-border/60 rounded-full border;
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
.cn-color-picker-slider {
|
|
1782
|
+
@apply bg-muted/30 border-border/60 rounded-2xl border;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
.cn-color-picker-slider-thumb {
|
|
1786
|
+
@apply bg-background border-border/60 rounded-full border;
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
.cn-color-picker-alpha-bg {
|
|
1790
|
+
@apply rounded-2xl opacity-30;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
.cn-color-picker-swatch {
|
|
1794
|
+
@apply ring-offset-background hover:bg-muted/60 cursor-pointer transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2;
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
/* MARK: Resizable */
|
|
1798
|
+
.cn-resizable-handle {
|
|
1799
|
+
@apply bg-border/70 hover:bg-border focus-visible:ring-ring relative flex w-px items-center justify-center transition-colors after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-[3px] focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
.cn-resizable-handle[data-panel-group-direction='vertical']
|
|
1803
|
+
> .cn-resizable-handle-icon {
|
|
1804
|
+
@apply rotate-90;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
/* MARK: Spoiler */
|
|
1808
|
+
.cn-spoiler {
|
|
1809
|
+
@apply border-border/60 bg-muted/20 rounded-2xl border p-3;
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
.cn-spoiler-content {
|
|
1813
|
+
@apply overflow-hidden transition-all duration-300;
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
.cn-spoiler-fade {
|
|
1817
|
+
@apply h-16 bg-gradient-to-t from-background to-transparent;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
/* MARK: Stepper */
|
|
1821
|
+
.cn-step-indicator {
|
|
1822
|
+
@apply border-border/60 bg-muted/20 text-muted-foreground flex size-8 items-center justify-center rounded-full border-2 text-sm font-semibold transition-colors;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
.cn-step-indicator[data-state='completed'] {
|
|
1826
|
+
@apply border-primary bg-primary text-primary-foreground;
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
.cn-step-indicator[data-state='active'] {
|
|
1830
|
+
@apply border-primary bg-background text-primary;
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
.cn-step-label {
|
|
1834
|
+
@apply text-muted-foreground text-sm font-semibold;
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
.cn-step[data-state='active'] .cn-step-label {
|
|
1838
|
+
@apply text-foreground;
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
.cn-step[data-state='completed'] .cn-step-label {
|
|
1842
|
+
@apply text-foreground;
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
.cn-step-description {
|
|
1846
|
+
@apply text-muted-foreground text-xs;
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
.cn-step-connector {
|
|
1850
|
+
@apply border-border/60 mx-4 flex-1 border-t-2;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
.cn-step-connector[data-state='completed'] {
|
|
1854
|
+
@apply border-primary;
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
/* MARK: Table Of Contents */
|
|
1858
|
+
.cn-table-of-contents {
|
|
1859
|
+
@apply border-border/60 bg-muted/20 rounded-2xl border p-2;
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
.cn-table-of-contents-item {
|
|
1863
|
+
@apply text-muted-foreground hover:bg-muted/60 hover:text-foreground data-[active=true]:border-primary data-[active=true]:text-primary data-[active=true]:font-medium rounded-xl border-l-2 border-transparent px-2 text-left transition-colors;
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
.cn-table-of-contents-item[data-size='xs'] {
|
|
1867
|
+
@apply py-1 text-xs;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
.cn-table-of-contents-item[data-size='sm'] {
|
|
1871
|
+
@apply py-1.5 text-sm;
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
.cn-table-of-contents-item[data-size='md'] {
|
|
1875
|
+
@apply py-2 text-sm;
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
.cn-table-of-contents-item[data-size='lg'] {
|
|
1879
|
+
@apply py-2 text-base;
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
.cn-table-of-contents-item[data-size='xl'] {
|
|
1883
|
+
@apply py-2.5 text-lg;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
/* MARK: Timeline */
|
|
1887
|
+
.cn-timeline {
|
|
1888
|
+
@apply border-border/60 border-l;
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
.cn-timeline-item {
|
|
1892
|
+
@apply mb-8 ml-6 last:mb-0;
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
.cn-timeline-dot {
|
|
1896
|
+
@apply bg-background absolute -left-3 flex size-6 items-center justify-center rounded-full border transition-colors;
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
.cn-timeline-dot[data-variant='default'] {
|
|
1900
|
+
@apply border-border/60 bg-muted/20;
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
.cn-timeline-dot[data-variant='primary'] {
|
|
1904
|
+
@apply border-primary/60 bg-primary/10;
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
.cn-timeline-dot[data-variant='secondary'] {
|
|
1908
|
+
@apply border-border/60 bg-secondary/20;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
.cn-timeline-content {
|
|
1912
|
+
@apply mb-4 space-y-1.5;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
.cn-timeline-title {
|
|
1916
|
+
@apply text-foreground text-base font-semibold;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
.cn-timeline-description {
|
|
1920
|
+
@apply text-muted-foreground text-sm;
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
.cn-timeline-time {
|
|
1924
|
+
@apply text-muted-foreground block text-xs uppercase tracking-wide;
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
/* MARK: Color Swatch */
|
|
1928
|
+
.cn-color-swatch {
|
|
1929
|
+
@apply border-border/60 bg-muted/20 border;
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
.cn-color-swatch-shadow {
|
|
1933
|
+
@apply absolute inset-0 block rounded-[inherit] shadow-[inset_0_0_0_1px_rgba(0,0,0,0.12)];
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
/* MARK: Angle Slider */
|
|
1937
|
+
.cn-angle-slider-inner {
|
|
1938
|
+
@apply border-border/60 bg-background/70 rounded-full border;
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
.cn-angle-slider-thumb {
|
|
1942
|
+
@apply bg-primary border-background rounded-full border-2 shadow-md;
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
/* MARK: Floating Indicator */
|
|
1946
|
+
.cn-floating-indicator {
|
|
1947
|
+
@apply border-border/60 bg-muted/20 rounded-2xl border;
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
/* MARK: Semi Circle Progress */
|
|
1951
|
+
.cn-semi-circle-progress {
|
|
1952
|
+
@apply border-border/60 bg-muted/20 gap-3 rounded-2xl border p-3;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
.cn-semi-circle-progress-label {
|
|
1956
|
+
@apply text-sm font-semibold;
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
/* MARK: Tree */
|
|
1960
|
+
.cn-tree {
|
|
1961
|
+
@apply m-0 list-none space-y-1 p-0;
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
.cn-tree-node-button {
|
|
1965
|
+
@apply text-muted-foreground hover:bg-muted/60 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 data-[selected=true]:border-border/60 data-[selected=true]:bg-muted/70 data-[selected=true]:text-foreground flex w-full items-center gap-2 rounded-xl border border-transparent bg-transparent py-1.5 pr-2 text-left text-sm shadow-none outline-none transition-colors focus-visible:ring-[3px];
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
/* MARK: Data Table */
|
|
1969
|
+
.cn-data-table {
|
|
1970
|
+
@apply w-full;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
.cn-data-table-action-button {
|
|
1974
|
+
@apply h-8 w-8 p-0 opacity-0 transition-opacity;
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
.cn-data-table-column-header {
|
|
1978
|
+
@apply gap-2;
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
.cn-data-table-view-options-trigger {
|
|
1982
|
+
@apply h-8;
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
.cn-data-table-pagination {
|
|
1986
|
+
@apply gap-4 px-2 sm:items-center sm:justify-between;
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
.cn-data-table-pagination-left {
|
|
1990
|
+
@apply gap-4;
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
.cn-data-table-pagination-summary {
|
|
1994
|
+
@apply text-sm;
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
.cn-data-table-pagination-size {
|
|
1998
|
+
@apply gap-2;
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
.cn-data-table-pagination-size-label {
|
|
2002
|
+
@apply text-sm;
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
.cn-data-table-pagination-size-trigger {
|
|
2006
|
+
@apply h-8;
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
/* MARK: Display Table */
|
|
2010
|
+
.cn-display-table-container {
|
|
2011
|
+
@apply border-border/60 bg-muted/20 overflow-hidden rounded-2xl border;
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
.cn-display-table-container[data-border='false'] {
|
|
2015
|
+
@apply border-transparent;
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
.cn-display-table-container[data-sticky-header='true'] {
|
|
2019
|
+
@apply [&_thead]:sticky [&_thead]:top-[var(--sticky-offset,0px)] [&_thead]:z-10 [&_thead]:bg-background [&_thead]:shadow-[0_1px_0_0_hsl(var(--border))];
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
.cn-display-table-scroll {
|
|
2023
|
+
@apply relative w-full overflow-auto;
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
.cn-display-table {
|
|
2027
|
+
@apply w-full caption-bottom text-sm;
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
.cn-display-table[data-variant='vertical'] {
|
|
2031
|
+
@apply table-fixed [&_tbody_th]:bg-primary/10;
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
.cn-display-table[data-striped='true'][data-variant='horizontal'] {
|
|
2035
|
+
@apply [&_tbody_tr:nth-child(even)]:bg-muted/30;
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
.cn-display-table[data-striped='true'][data-variant='horizontal'][data-stripe-inverted='true'] {
|
|
2039
|
+
@apply [&_tbody_tr:nth-child(odd)]:bg-muted/30 [&_tbody_tr:nth-child(even)]:bg-transparent;
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
.cn-display-table[data-hover='true'] {
|
|
2043
|
+
@apply [&_tbody_tr:hover]:bg-muted/50;
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2046
|
+
.cn-display-table[data-with-row-borders='true'] {
|
|
2047
|
+
@apply [&_tr]:border-b [&_tr]:border-border;
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
.cn-display-table[data-with-column-borders='true'] {
|
|
2051
|
+
@apply [&_th]:border-r [&_td]:border-r [&_th]:border-border [&_td]:border-border [&_th:last-child]:border-r-0 [&_td:last-child]:border-r-0;
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
.cn-display-table-thead {
|
|
2055
|
+
@apply border-b border-border bg-primary/10;
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
.cn-display-table-tbody {
|
|
2059
|
+
@apply [&_tr:last-child]:border-0;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
.cn-display-table-tfoot {
|
|
2063
|
+
@apply border-t border-border bg-muted/50 font-medium [&_tr]:last:border-b-0;
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
.cn-display-table-tr {
|
|
2067
|
+
@apply transition-colors data-[state=selected]:bg-muted;
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
.cn-display-table-th {
|
|
2071
|
+
@apply text-foreground px-4 py-2 text-left align-middle text-sm font-semibold [&:has([role=checkbox])]:pr-0;
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
.cn-display-table-td {
|
|
2075
|
+
@apply px-4 py-2 align-middle text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px];
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
.cn-display-table-caption {
|
|
2079
|
+
@apply text-muted-foreground mt-4 text-sm;
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
/* MARK: Selector */
|
|
2083
|
+
.cn-selector-modal-header {
|
|
2084
|
+
@apply border-border shrink-0 border-b px-6 py-4;
|
|
2085
|
+
}
|
|
2086
|
+
|
|
2087
|
+
.cn-selector-modal-body {
|
|
2088
|
+
@apply p-4;
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
.cn-selector-modal-footer {
|
|
2092
|
+
@apply border-border shrink-0 flex items-center justify-end gap-2 border-t px-6 py-4;
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
.cn-selector-selected-bar {
|
|
2096
|
+
@apply bg-background sticky top-[-18px] z-10 -mx-4 -mt-4 flex flex-wrap items-center gap-2 px-4 pt-4 pb-2;
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
.cn-selector-selected-bar-label {
|
|
2100
|
+
@apply text-muted-foreground text-sm;
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
/* MARK: Locale Input */
|
|
2104
|
+
.cn-locale-input {
|
|
2105
|
+
@apply space-y-2;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
.cn-locale-input-toggle {
|
|
2109
|
+
@apply text-muted-foreground hover:text-foreground hover:bg-accent absolute right-2 top-1/2 flex size-7 -translate-y-1/2 items-center justify-center rounded-[var(--radius-md)] transition-colors disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
.cn-locale-input-toggle-textarea {
|
|
2113
|
+
@apply text-muted-foreground hover:text-foreground hover:bg-accent absolute right-2 top-2 flex size-7 items-center justify-center rounded-[var(--radius-md)] transition-colors disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
.cn-locale-input-error {
|
|
2117
|
+
@apply text-destructive text-sm;
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
.cn-locale-input-expanded {
|
|
2121
|
+
@apply border-border mt-3 space-y-3 border-l-2 pl-4;
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
.cn-locale-input-expanded-rich {
|
|
2125
|
+
@apply border-border mt-4 space-y-4 border-l-2 pl-4;
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
.cn-locale-input-fullscreen-close {
|
|
2129
|
+
@apply border-border bg-background/80 text-foreground hover:bg-accent absolute top-4 right-4 z-50 flex size-10 items-center justify-center rounded-[var(--radius-md)] border transition-colors backdrop-blur-sm;
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
/* MARK: Entity */
|
|
2133
|
+
.cn-entity-drawer-header {
|
|
2134
|
+
@apply border-border bg-background border-b px-6 py-4;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
.cn-entity-drawer-body {
|
|
2138
|
+
@apply bg-background flex-1 overflow-y-auto px-6 py-4;
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
.cn-entity-drawer-footer {
|
|
2142
|
+
@apply border-border bg-background flex flex-wrap items-center justify-start gap-2 border-t px-6 py-4;
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
.cn-entity-loading-card {
|
|
2146
|
+
@apply border-border space-y-3 rounded-2xl border p-4;
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
.cn-entity-loading-table {
|
|
2150
|
+
@apply rounded-2xl;
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
.cn-entity-empty-state {
|
|
2154
|
+
@apply border-border/60 bg-muted/20 flex flex-col items-center justify-center gap-6 rounded-2xl border px-8 py-16;
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
.cn-entity-view-toggle {
|
|
2158
|
+
@apply border-input bg-muted shadow-xs rounded-4xl border overflow-hidden;
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
.cn-selector-view-toggle {
|
|
2162
|
+
@apply border-input bg-muted shadow-xs rounded-4xl border overflow-hidden;
|
|
2163
|
+
}
|
|
2164
|
+
|
|
2165
|
+
.cn-entity-view-toggle [data-slot='toggle-group-item'][data-state='on'] {
|
|
2166
|
+
@apply bg-background! text-foreground! shadow-xs!;
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
.cn-entity-view-toggle [data-slot='toggle-group-item'][aria-pressed='true'] {
|
|
2170
|
+
@apply bg-background! text-foreground! shadow-xs!;
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
.cn-selector-view-toggle [data-slot='toggle-group-item'][data-state='on'] {
|
|
2174
|
+
@apply bg-background! text-foreground! shadow-xs!;
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
.cn-selector-view-toggle
|
|
2178
|
+
[data-slot='toggle-group-item'][aria-pressed='true'] {
|
|
2179
|
+
@apply bg-background! text-foreground! shadow-xs!;
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
.cn-entity-view-toggle [data-slot='toggle-group-item'][data-state='off'] {
|
|
2183
|
+
@apply bg-transparent! text-muted-foreground;
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
.cn-selector-view-toggle [data-slot='toggle-group-item'][data-state='off'] {
|
|
2187
|
+
@apply bg-transparent! text-muted-foreground;
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
.cn-entity-page-loading {
|
|
2191
|
+
@apply border-border bg-background rounded-2xl border;
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
.cn-entity-detail-header-tab {
|
|
2195
|
+
@apply hover:bg-muted/60 rounded-t-2xl;
|
|
2196
|
+
}
|
|
2197
|
+
|
|
2198
|
+
/* MARK: App */
|
|
2199
|
+
.cn-app-header-actions-account-trigger {
|
|
2200
|
+
@apply hover:bg-accent/70 data-[popup-open]:bg-accent data-[popup-open]:text-accent-foreground rounded-2xl;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
.cn-app-sidebar-item {
|
|
2204
|
+
@apply rounded-[var(--radius-md)] hover:bg-primary/10 data-[active=true]:bg-primary/10;
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
.cn-app-sidebar-active-indicator {
|
|
2208
|
+
@apply bg-primary rounded-full;
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
.cn-spotlight-kbd {
|
|
2212
|
+
@apply border-border bg-muted rounded-[var(--radius-sm)] border;
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
/* MARK: Shell */
|
|
2216
|
+
.cn-shell-header {
|
|
2217
|
+
@apply flex h-16 shrink-0 items-center justify-between gap-2 border-b px-4;
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
/* MARK: Layout */
|
|
2221
|
+
.cn-page-title {
|
|
2222
|
+
@apply border-border border-b;
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
.cn-entity-detail-header-underline {
|
|
2226
|
+
@apply bottom-0 left-0 z-20 h-0.5 bg-primary;
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
/* MARK: Rich Text */
|
|
2230
|
+
.cn-rich-text-display img {
|
|
2231
|
+
@apply shadow-sm rounded-[var(--radius-md)];
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
.cn-rich-text-editor {
|
|
2235
|
+
@apply border-input bg-background rounded-2xl border;
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
.cn-rich-text-editor-toolbar {
|
|
2239
|
+
@apply bg-muted/50 border-border border-b;
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
.cn-rich-text-editor-control {
|
|
2243
|
+
@apply hover:bg-accent hover:text-accent-foreground data-[active=true]:bg-accent data-[active=true]:text-accent-foreground rounded-[var(--radius-sm)];
|
|
2244
|
+
}
|
|
2245
|
+
}
|