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