basecoat-css 1.0.0-beta.4 → 1.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/base.css +1 -1
- package/dist/basecoat-base.cdn.css +275 -27
- package/dist/basecoat-base.cdn.min.css +1 -1
- package/dist/basecoat-components.css +2 -0
- package/dist/basecoat-luma.cdn.css +494 -56
- package/dist/basecoat-luma.cdn.min.css +1 -1
- package/dist/basecoat-lyra.cdn.css +491 -53
- package/dist/basecoat-lyra.cdn.min.css +1 -1
- package/dist/basecoat-maia.cdn.css +483 -56
- package/dist/basecoat-maia.cdn.min.css +1 -1
- package/dist/basecoat-mira.cdn.css +480 -56
- package/dist/basecoat-mira.cdn.min.css +1 -1
- package/dist/basecoat-nova.cdn.css +499 -56
- package/dist/basecoat-nova.cdn.min.css +1 -1
- package/dist/basecoat-rhea.cdn.css +504 -67
- package/dist/basecoat-rhea.cdn.min.css +1 -1
- package/dist/basecoat-sera.cdn.css +484 -54
- package/dist/basecoat-sera.cdn.min.css +1 -1
- package/dist/basecoat-vega.cdn.css +488 -55
- package/dist/basecoat-vega.cdn.min.css +1 -1
- package/dist/basecoat.cdn.css +488 -55
- package/dist/basecoat.cdn.min.css +1 -1
- package/dist/components/accordion.css +27 -0
- package/dist/components/alert.css +12 -0
- package/dist/components/avatar.css +6 -6
- package/dist/components/breadcrumb.css +30 -0
- package/dist/components/card.css +4 -0
- package/dist/components/combobox.css +23 -2
- package/dist/components/command.css +19 -12
- package/dist/components/dialog.css +30 -1
- package/dist/components/dropdown-menu.css +1 -1
- package/dist/components/popover.css +27 -1
- package/dist/js/accordion.js +68 -0
- package/dist/js/accordion.min.js +1 -0
- package/dist/js/all.js +245 -41
- package/dist/js/all.min.js +1 -1
- package/dist/js/combobox.js +115 -26
- package/dist/js/combobox.min.js +1 -1
- package/dist/js/command.js +3 -1
- package/dist/js/command.min.js +1 -1
- package/dist/js/dropdown-menu.js +12 -1
- package/dist/js/dropdown-menu.min.js +1 -1
- package/dist/js/select.js +46 -13
- package/dist/js/select.min.js +1 -1
- package/dist/styles/luma.css +105 -15
- package/dist/styles/lyra.css +96 -14
- package/dist/styles/maia.css +105 -15
- package/dist/styles/mira.css +105 -15
- package/dist/styles/nova.css +103 -17
- package/dist/styles/rhea.css +109 -19
- package/dist/styles/sera.css +100 -14
- package/dist/styles/vega.css +102 -16
- package/package.json +1 -1
package/dist/styles/nova.css
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* Accordion */
|
|
2
2
|
@layer components {
|
|
3
|
+
.accordion > details {
|
|
4
|
+
@apply not-last:border-b;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.accordion > details > summary {
|
|
8
|
+
@apply focus-visible:ring-ring/50 focus-visible:border-ring rounded-lg py-2.5 text-left text-sm font-medium hover:underline focus-visible:ring-3;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.accordion > details > summary > svg:last-child {
|
|
12
|
+
@apply text-muted-foreground ms-auto size-4;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.accordion > details > :not(summary) {
|
|
16
|
+
@apply pt-0 pb-2.5 text-sm;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Button */
|
|
3
20
|
.btn {
|
|
4
21
|
@apply rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*='size-'])]:size-4;
|
|
5
22
|
}
|
|
@@ -247,7 +264,7 @@
|
|
|
247
264
|
@apply size-10;
|
|
248
265
|
}
|
|
249
266
|
|
|
250
|
-
.avatar > span:not(
|
|
267
|
+
.avatar > span:not(.avatar-badge) {
|
|
251
268
|
@apply bg-muted text-muted-foreground rounded-[inherit];
|
|
252
269
|
}
|
|
253
270
|
|
|
@@ -255,7 +272,7 @@
|
|
|
255
272
|
@apply rounded-[inherit];
|
|
256
273
|
}
|
|
257
274
|
|
|
258
|
-
.avatar >
|
|
275
|
+
.avatar > .avatar-badge {
|
|
259
276
|
@apply bg-primary text-primary-foreground ring-background;
|
|
260
277
|
}
|
|
261
278
|
|
|
@@ -301,17 +318,42 @@
|
|
|
301
318
|
@apply text-primary underline-offset-4 hover:underline;
|
|
302
319
|
}
|
|
303
320
|
|
|
321
|
+
/* Breadcrumb */
|
|
322
|
+
.breadcrumb > ol {
|
|
323
|
+
@apply text-muted-foreground gap-1.5 text-sm;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.breadcrumb li {
|
|
327
|
+
@apply gap-1;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.breadcrumb a {
|
|
331
|
+
@apply transition-colors hover:text-foreground;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.breadcrumb [aria-current='page'] {
|
|
335
|
+
@apply font-normal text-foreground;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.breadcrumb li[aria-hidden='true'] > svg {
|
|
339
|
+
@apply size-3.5;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.breadcrumb li > span[aria-hidden='true'] {
|
|
343
|
+
@apply size-5 [&>svg]:size-4;
|
|
344
|
+
}
|
|
345
|
+
|
|
304
346
|
/* Command */
|
|
305
347
|
.command {
|
|
306
|
-
@apply bg-popover text-popover-foreground rounded-xl p-1;
|
|
348
|
+
@apply bg-popover text-popover-foreground rounded-xl! p-1;
|
|
307
349
|
}
|
|
308
350
|
|
|
309
|
-
.command-dialog >
|
|
310
|
-
@apply rounded-xl
|
|
351
|
+
.command-dialog > .command {
|
|
352
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 rounded-xl! ring-1 duration-100;
|
|
311
353
|
}
|
|
312
354
|
|
|
313
355
|
.command > header {
|
|
314
|
-
@apply m-1 mb-0 h-8 gap-
|
|
356
|
+
@apply m-1 mb-0 h-8 gap-0 rounded-lg border border-input/30 bg-input/30 px-2;
|
|
315
357
|
}
|
|
316
358
|
|
|
317
359
|
.command > header svg {
|
|
@@ -319,7 +361,7 @@
|
|
|
319
361
|
}
|
|
320
362
|
|
|
321
363
|
.command > header input {
|
|
322
|
-
@apply
|
|
364
|
+
@apply ps-1.5 text-sm placeholder:text-muted-foreground;
|
|
323
365
|
}
|
|
324
366
|
|
|
325
367
|
.command [role='menu'] {
|
|
@@ -343,11 +385,11 @@
|
|
|
343
385
|
}
|
|
344
386
|
|
|
345
387
|
.command [role='menuitem'] {
|
|
346
|
-
@apply gap-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4;
|
|
388
|
+
@apply gap-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 in-[.command-dialog]:rounded-lg;
|
|
347
389
|
}
|
|
348
390
|
|
|
349
391
|
.command [role='menuitem'].active {
|
|
350
|
-
@apply bg-
|
|
392
|
+
@apply bg-muted text-foreground [&_svg]:text-foreground;
|
|
351
393
|
}
|
|
352
394
|
|
|
353
395
|
.command [data-shortcut] {
|
|
@@ -361,7 +403,7 @@
|
|
|
361
403
|
|
|
362
404
|
/* Combobox */
|
|
363
405
|
.combobox > input[role='combobox'] {
|
|
364
|
-
@apply border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 rounded-lg border bg-transparent py-1 ps-2.5 pe-8 text-sm transition-colors focus-visible:ring-3 aria-invalid:ring-3;
|
|
406
|
+
@apply border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent py-1 ps-2.5 pe-8 text-sm transition-colors focus-visible:ring-3 aria-invalid:ring-3;
|
|
365
407
|
}
|
|
366
408
|
|
|
367
409
|
.combobox > svg,
|
|
@@ -370,11 +412,15 @@
|
|
|
370
412
|
}
|
|
371
413
|
|
|
372
414
|
.combobox [data-popover] {
|
|
373
|
-
@apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 rounded-lg p-
|
|
415
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 gap-0 rounded-lg p-0 shadow-md ring-1 duration-100;
|
|
374
416
|
}
|
|
375
417
|
|
|
376
418
|
.combobox [role='listbox'] {
|
|
377
|
-
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto;
|
|
419
|
+
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto p-1;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true']))) {
|
|
423
|
+
@apply p-0;
|
|
378
424
|
}
|
|
379
425
|
|
|
380
426
|
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
@@ -391,7 +437,7 @@
|
|
|
391
437
|
|
|
392
438
|
.combobox [role='option'].active,
|
|
393
439
|
.combobox [role='option']:focus-visible {
|
|
394
|
-
@apply bg-
|
|
440
|
+
@apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
|
|
395
441
|
}
|
|
396
442
|
|
|
397
443
|
.combobox [role='group'] {
|
|
@@ -413,6 +459,14 @@
|
|
|
413
459
|
.combobox-chip-remove {
|
|
414
460
|
@apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
|
|
415
461
|
}
|
|
462
|
+
|
|
463
|
+
.combobox [data-popover] > .input-group {
|
|
464
|
+
@apply m-1 mb-0 h-8 w-auto border-input/30 bg-input/30 shadow-none focus-within:border-inherit focus-within:ring-0;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.combobox [data-popover] > input[role='combobox'] {
|
|
468
|
+
@apply mb-1 w-full;
|
|
469
|
+
}
|
|
416
470
|
/* Select */
|
|
417
471
|
*:not(select).select > button {
|
|
418
472
|
@apply border-input dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 data-[size=sm]:h-7 gap-1.5 rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] border bg-transparent py-2 ps-2.5 pe-2 text-sm transition-colors select-none focus-visible:ring-3 aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4;
|
|
@@ -465,10 +519,15 @@
|
|
|
465
519
|
|
|
466
520
|
/* Dialog */
|
|
467
521
|
.dialog::backdrop,
|
|
522
|
+
.alert-dialog::backdrop,
|
|
468
523
|
.command-dialog::backdrop {
|
|
469
524
|
@apply bg-black/10 backdrop-blur-xs duration-100;
|
|
470
525
|
}
|
|
471
526
|
|
|
527
|
+
.alert-dialog > * {
|
|
528
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 max-w-xs gap-4 rounded-xl p-4 ring-1 duration-100 sm:max-w-sm;
|
|
529
|
+
}
|
|
530
|
+
|
|
472
531
|
.dialog > * {
|
|
473
532
|
@apply bg-popover text-popover-foreground ring-foreground/10 max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-sm ring-1 duration-100 sm:max-w-sm;
|
|
474
533
|
}
|
|
@@ -481,6 +540,15 @@
|
|
|
481
540
|
@apply gap-2;
|
|
482
541
|
}
|
|
483
542
|
|
|
543
|
+
.alert-dialog > * > header {
|
|
544
|
+
@apply gap-x-4 gap-y-1.5;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.alert-dialog > * > header > figure {
|
|
548
|
+
@apply bg-muted mb-2 inline-flex size-10 items-center justify-center rounded-md [&>svg:not([class*='size-'])]:size-6;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.alert-dialog > * > footer,
|
|
484
552
|
.dialog > * > footer {
|
|
485
553
|
@apply bg-muted/50 -mx-4 -mb-4 gap-2 rounded-b-xl border-t p-4;
|
|
486
554
|
}
|
|
@@ -490,11 +558,21 @@
|
|
|
490
558
|
@apply text-base leading-none font-medium;
|
|
491
559
|
}
|
|
492
560
|
|
|
561
|
+
.alert-dialog > * > header > h2,
|
|
562
|
+
.alert-dialog > * > [data-title] {
|
|
563
|
+
@apply text-base font-medium;
|
|
564
|
+
}
|
|
565
|
+
|
|
493
566
|
.dialog > * > header > p,
|
|
494
567
|
.dialog > * > [data-description] {
|
|
495
568
|
@apply text-muted-foreground text-sm leading-normal [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
496
569
|
}
|
|
497
570
|
|
|
571
|
+
.alert-dialog > * > header > p,
|
|
572
|
+
.alert-dialog > * > [data-description] {
|
|
573
|
+
@apply text-muted-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
574
|
+
}
|
|
575
|
+
|
|
498
576
|
/* Dropdown Menu */
|
|
499
577
|
.dropdown-menu > [data-popover] {
|
|
500
578
|
@apply bg-popover text-popover-foreground ring-foreground/10 gap-0 overflow-x-hidden overflow-y-auto rounded-lg p-1 shadow-md ring-1 duration-100;
|
|
@@ -541,11 +619,11 @@
|
|
|
541
619
|
@apply bg-border -mx-1 my-1 h-px;
|
|
542
620
|
}
|
|
543
621
|
|
|
544
|
-
.dropdown-menu :is([data-shortcut], kbd:last-child) {
|
|
622
|
+
.dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
545
623
|
@apply text-muted-foreground font-sans text-xs tracking-widest;
|
|
546
624
|
}
|
|
547
625
|
|
|
548
|
-
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child) {
|
|
626
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
549
627
|
@apply text-accent-foreground;
|
|
550
628
|
}
|
|
551
629
|
|
|
@@ -677,7 +755,15 @@
|
|
|
677
755
|
}
|
|
678
756
|
|
|
679
757
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
|
|
680
|
-
@apply bg-background
|
|
758
|
+
@apply bg-background rounded-full;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
|
|
762
|
+
@apply bg-foreground;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
|
|
766
|
+
@apply bg-primary-foreground;
|
|
681
767
|
}
|
|
682
768
|
|
|
683
769
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
|
package/dist/styles/rhea.css
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* Accordion */
|
|
2
2
|
@layer components {
|
|
3
|
+
.accordion {
|
|
4
|
+
@apply overflow-hidden rounded-2xl border;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.accordion > details {
|
|
8
|
+
@apply open:bg-muted/50 not-last:border-b;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.accordion > details > summary {
|
|
12
|
+
@apply gap-6 p-4 text-left text-sm font-medium hover:underline;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.accordion > details > summary > svg:last-child {
|
|
16
|
+
@apply text-muted-foreground ms-auto size-4;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.accordion > details > :not(summary) {
|
|
20
|
+
@apply px-4 pt-0 pb-4 text-sm;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Button */
|
|
3
24
|
.btn {
|
|
4
25
|
@apply rounded-2xl border border-transparent bg-clip-padding text-sm font-medium focus-visible:border-ring focus-visible:ring-ring/30 focus-visible:ring-[3px] aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*='size-'])]:size-4;
|
|
5
26
|
}
|
|
@@ -255,7 +276,7 @@
|
|
|
255
276
|
@apply size-10;
|
|
256
277
|
}
|
|
257
278
|
|
|
258
|
-
.avatar > span:not(
|
|
279
|
+
.avatar > span:not(.avatar-badge) {
|
|
259
280
|
@apply bg-muted text-muted-foreground rounded-[inherit];
|
|
260
281
|
}
|
|
261
282
|
|
|
@@ -263,7 +284,7 @@
|
|
|
263
284
|
@apply rounded-[inherit];
|
|
264
285
|
}
|
|
265
286
|
|
|
266
|
-
.avatar >
|
|
287
|
+
.avatar > .avatar-badge {
|
|
267
288
|
@apply bg-primary text-primary-foreground ring-background;
|
|
268
289
|
}
|
|
269
290
|
|
|
@@ -309,17 +330,42 @@
|
|
|
309
330
|
@apply text-primary underline-offset-4 hover:underline;
|
|
310
331
|
}
|
|
311
332
|
|
|
333
|
+
/* Breadcrumb */
|
|
334
|
+
.breadcrumb > ol {
|
|
335
|
+
@apply text-muted-foreground gap-1.5 text-sm sm:gap-2.5;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.breadcrumb li {
|
|
339
|
+
@apply gap-1.5;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.breadcrumb a {
|
|
343
|
+
@apply transition-colors hover:text-foreground;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.breadcrumb [aria-current='page'] {
|
|
347
|
+
@apply font-normal text-foreground;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.breadcrumb li[aria-hidden='true'] > svg {
|
|
351
|
+
@apply size-3.5;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.breadcrumb li > span[aria-hidden='true'] {
|
|
355
|
+
@apply size-5 [&>svg]:size-4;
|
|
356
|
+
}
|
|
357
|
+
|
|
312
358
|
/* Command */
|
|
313
359
|
.command {
|
|
314
|
-
@apply bg-popover text-popover-foreground rounded-3xl p-1;
|
|
360
|
+
@apply bg-popover text-popover-foreground rounded-3xl! p-1;
|
|
315
361
|
}
|
|
316
362
|
|
|
317
|
-
.command-dialog >
|
|
318
|
-
@apply rounded-3xl
|
|
363
|
+
.command-dialog > .command {
|
|
364
|
+
@apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 rounded-3xl! shadow-xl ring-1 duration-100;
|
|
319
365
|
}
|
|
320
366
|
|
|
321
367
|
.command > header {
|
|
322
|
-
@apply m-1 mb-0 h-8 gap-
|
|
368
|
+
@apply m-1 mb-0 h-8 gap-0 rounded-2xl bg-input/50 px-2;
|
|
323
369
|
}
|
|
324
370
|
|
|
325
371
|
.command > header svg {
|
|
@@ -327,7 +373,7 @@
|
|
|
327
373
|
}
|
|
328
374
|
|
|
329
375
|
.command > header input {
|
|
330
|
-
@apply
|
|
376
|
+
@apply ps-1.5 text-sm placeholder:text-muted-foreground;
|
|
331
377
|
}
|
|
332
378
|
|
|
333
379
|
.command [role='menu'] {
|
|
@@ -355,7 +401,7 @@
|
|
|
355
401
|
}
|
|
356
402
|
|
|
357
403
|
.command [role='menuitem'].active {
|
|
358
|
-
@apply bg-
|
|
404
|
+
@apply bg-muted text-foreground [&_svg]:text-foreground;
|
|
359
405
|
}
|
|
360
406
|
|
|
361
407
|
.command [data-shortcut] {
|
|
@@ -378,11 +424,15 @@
|
|
|
378
424
|
}
|
|
379
425
|
|
|
380
426
|
.combobox [data-popover] {
|
|
381
|
-
@apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 max-h-72 rounded-2xl p-
|
|
427
|
+
@apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 max-h-72 gap-0 rounded-2xl p-0 shadow-lg ring-1 duration-100;
|
|
382
428
|
}
|
|
383
429
|
|
|
384
430
|
.combobox [role='listbox'] {
|
|
385
|
-
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto;
|
|
431
|
+
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto p-1;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true']))) {
|
|
435
|
+
@apply p-0;
|
|
386
436
|
}
|
|
387
437
|
|
|
388
438
|
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
@@ -399,7 +449,7 @@
|
|
|
399
449
|
|
|
400
450
|
.combobox [role='option'].active,
|
|
401
451
|
.combobox [role='option']:focus-visible {
|
|
402
|
-
@apply bg-
|
|
452
|
+
@apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
|
|
403
453
|
}
|
|
404
454
|
|
|
405
455
|
.combobox [role='group'] {
|
|
@@ -421,6 +471,14 @@
|
|
|
421
471
|
.combobox-chip-remove {
|
|
422
472
|
@apply -ms-0.5 size-4.5 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
|
|
423
473
|
}
|
|
474
|
+
|
|
475
|
+
.combobox [data-popover] > .input-group {
|
|
476
|
+
@apply m-1 mb-0 h-8 w-auto border-input/30 bg-input/50 shadow-none focus-within:border-inherit focus-within:ring-0;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.combobox [data-popover] > input[role='combobox'] {
|
|
480
|
+
@apply mb-1 w-full;
|
|
481
|
+
}
|
|
424
482
|
/* Select */
|
|
425
483
|
*:not(select).select > button {
|
|
426
484
|
@apply bg-input/50 border-transparent 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-8 data-[size=sm]:h-7 gap-1.5 rounded-2xl border px-3 py-2 text-sm transition-[color,box-shadow] duration-200 focus-visible:ring-3 aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4;
|
|
@@ -473,12 +531,17 @@
|
|
|
473
531
|
|
|
474
532
|
/* Dialog */
|
|
475
533
|
.dialog::backdrop,
|
|
534
|
+
.alert-dialog::backdrop,
|
|
476
535
|
.command-dialog::backdrop {
|
|
477
536
|
@apply bg-black/30 backdrop-blur-sm duration-100;
|
|
478
537
|
}
|
|
479
538
|
|
|
539
|
+
.alert-dialog > * {
|
|
540
|
+
@apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 max-w-xs gap-6 rounded-3xl p-6 shadow-xl ring-1 duration-100 sm:max-w-md;
|
|
541
|
+
}
|
|
542
|
+
|
|
480
543
|
.dialog > * {
|
|
481
|
-
@apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 max-w-[calc(100%-2rem)] gap-6 rounded-
|
|
544
|
+
@apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 max-w-[calc(100%-2rem)] gap-6 rounded-3xl p-6 text-sm shadow-xl ring-1 duration-100 sm:max-w-md;
|
|
482
545
|
}
|
|
483
546
|
|
|
484
547
|
.dialog > * > :is(button, form[method='dialog']) {
|
|
@@ -493,6 +556,15 @@
|
|
|
493
556
|
@apply gap-1.5;
|
|
494
557
|
}
|
|
495
558
|
|
|
559
|
+
.alert-dialog > * > header {
|
|
560
|
+
@apply gap-x-6 gap-y-1.5;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.alert-dialog > * > header > figure {
|
|
564
|
+
@apply bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-full [&>svg:not([class*='size-'])]:size-8;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.alert-dialog > * > footer,
|
|
496
568
|
.dialog > * > footer {
|
|
497
569
|
@apply gap-2;
|
|
498
570
|
}
|
|
@@ -502,11 +574,21 @@
|
|
|
502
574
|
@apply text-base leading-none font-medium;
|
|
503
575
|
}
|
|
504
576
|
|
|
577
|
+
.alert-dialog > * > header > h2,
|
|
578
|
+
.alert-dialog > * > [data-title] {
|
|
579
|
+
@apply text-lg font-medium;
|
|
580
|
+
}
|
|
581
|
+
|
|
505
582
|
.dialog > * > header > p,
|
|
506
583
|
.dialog > * > [data-description] {
|
|
507
584
|
@apply text-muted-foreground text-sm leading-normal [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
508
585
|
}
|
|
509
586
|
|
|
587
|
+
.alert-dialog > * > header > p,
|
|
588
|
+
.alert-dialog > * > [data-description] {
|
|
589
|
+
@apply text-muted-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
590
|
+
}
|
|
591
|
+
|
|
510
592
|
/* Dropdown Menu */
|
|
511
593
|
.dropdown-menu > [data-popover] {
|
|
512
594
|
@apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 gap-0 overflow-x-hidden overflow-y-auto rounded-2xl p-1 shadow-lg ring-1 duration-100;
|
|
@@ -553,11 +635,11 @@
|
|
|
553
635
|
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
554
636
|
}
|
|
555
637
|
|
|
556
|
-
.dropdown-menu :is([data-shortcut], kbd:last-child) {
|
|
638
|
+
.dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
557
639
|
@apply text-muted-foreground font-sans text-xs tracking-widest;
|
|
558
640
|
}
|
|
559
641
|
|
|
560
|
-
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child) {
|
|
642
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
561
643
|
@apply text-accent-foreground;
|
|
562
644
|
}
|
|
563
645
|
|
|
@@ -582,7 +664,7 @@
|
|
|
582
664
|
|
|
583
665
|
/* Card */
|
|
584
666
|
.card {
|
|
585
|
-
@apply bg-card text-card-foreground ring-foreground/5 dark:ring-foreground/10 overflow-hidden rounded-
|
|
667
|
+
@apply bg-card text-card-foreground ring-foreground/5 dark:ring-foreground/10 overflow-hidden rounded-3xl text-sm shadow-sm ring-1 has-[>img:first-child]:pt-0 [&>img:first-child]:rounded-t-3xl [&>img:last-child]:rounded-b-3xl;
|
|
586
668
|
}
|
|
587
669
|
|
|
588
670
|
.card {
|
|
@@ -594,7 +676,7 @@
|
|
|
594
676
|
}
|
|
595
677
|
|
|
596
678
|
.card > header {
|
|
597
|
-
@apply gap-1.5 rounded-t-
|
|
679
|
+
@apply gap-1.5 rounded-t-3xl px-5 [.border-b]:pb-5;
|
|
598
680
|
}
|
|
599
681
|
|
|
600
682
|
.card[data-size='sm'] > header {
|
|
@@ -618,7 +700,7 @@
|
|
|
618
700
|
}
|
|
619
701
|
|
|
620
702
|
.card > footer {
|
|
621
|
-
@apply rounded-b-
|
|
703
|
+
@apply rounded-b-3xl px-5 [.border-t]:pt-5;
|
|
622
704
|
}
|
|
623
705
|
|
|
624
706
|
.card[data-size='sm'] > footer {
|
|
@@ -685,7 +767,15 @@
|
|
|
685
767
|
}
|
|
686
768
|
|
|
687
769
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
|
|
688
|
-
@apply bg-background
|
|
770
|
+
@apply bg-background rounded-2xl shadow-sm not-dark:bg-clip-padding;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
|
|
774
|
+
@apply bg-foreground;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
|
|
778
|
+
@apply bg-primary-foreground;
|
|
689
779
|
}
|
|
690
780
|
|
|
691
781
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
|