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