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/lyra.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-none py-2.5 text-left text-xs font-medium hover:underline focus-visible:ring-1;
|
|
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-xs;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Button */
|
|
3
20
|
.btn {
|
|
4
21
|
@apply rounded-none border border-transparent bg-clip-padding text-xs font-medium focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[1px] aria-invalid:border-destructive aria-invalid:ring-[1px] 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-xs;
|
|
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
348
|
@apply bg-popover text-popover-foreground rounded-none;
|
|
307
349
|
}
|
|
308
350
|
|
|
309
|
-
.command-dialog >
|
|
310
|
-
@apply rounded-none
|
|
351
|
+
.command-dialog > .command {
|
|
352
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 rounded-none ring-1 duration-100;
|
|
311
353
|
}
|
|
312
354
|
|
|
313
355
|
.command > header {
|
|
314
|
-
@apply h-8 gap-
|
|
356
|
+
@apply h-8 gap-0 border-b 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-xs placeholder:text-muted-foreground;
|
|
323
365
|
}
|
|
324
366
|
|
|
325
367
|
.command [role='menu'] {
|
|
@@ -347,7 +389,7 @@
|
|
|
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-none border bg-transparent py-2 ps-2.5 pe-8 text-xs transition-colors focus-visible:ring-1 aria-invalid:ring-1;
|
|
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-none border bg-transparent py-2 ps-2.5 pe-8 text-xs transition-colors focus-visible:ring-1 aria-invalid:ring-1;
|
|
365
407
|
}
|
|
366
408
|
|
|
367
409
|
.combobox > svg,
|
|
@@ -370,7 +412,7 @@
|
|
|
370
412
|
}
|
|
371
413
|
|
|
372
414
|
.combobox [data-popover] {
|
|
373
|
-
@apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 rounded-none shadow-md ring-1 duration-100;
|
|
415
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 gap-0 rounded-none p-0 shadow-md ring-1 duration-100;
|
|
374
416
|
}
|
|
375
417
|
|
|
376
418
|
.combobox [role='listbox'] {
|
|
@@ -391,7 +433,7 @@
|
|
|
391
433
|
|
|
392
434
|
.combobox [role='option'].active,
|
|
393
435
|
.combobox [role='option']:focus-visible {
|
|
394
|
-
@apply bg-
|
|
436
|
+
@apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
|
|
395
437
|
}
|
|
396
438
|
|
|
397
439
|
.combobox [role='separator'] {
|
|
@@ -409,6 +451,14 @@
|
|
|
409
451
|
.combobox-chip-remove {
|
|
410
452
|
@apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
|
|
411
453
|
}
|
|
454
|
+
|
|
455
|
+
.combobox [data-popover] > .input-group {
|
|
456
|
+
@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;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.combobox [data-popover] > input[role='combobox'] {
|
|
460
|
+
@apply mb-1 w-full;
|
|
461
|
+
}
|
|
412
462
|
/* Select */
|
|
413
463
|
*:not(select).select > button {
|
|
414
464
|
@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-none data-[size=sm]:rounded-none border bg-transparent py-2 ps-2.5 pe-2 text-xs transition-colors select-none focus-visible:ring-1 aria-invalid:ring-1 [&_svg:not([class*='size-'])]:size-4;
|
|
@@ -461,10 +511,15 @@
|
|
|
461
511
|
|
|
462
512
|
/* Dialog */
|
|
463
513
|
.dialog::backdrop,
|
|
514
|
+
.alert-dialog::backdrop,
|
|
464
515
|
.command-dialog::backdrop {
|
|
465
516
|
@apply bg-black/10 backdrop-blur-xs duration-100;
|
|
466
517
|
}
|
|
467
518
|
|
|
519
|
+
.alert-dialog > * {
|
|
520
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 max-w-xs gap-4 rounded-none p-4 ring-1 duration-100 sm:max-w-sm;
|
|
521
|
+
}
|
|
522
|
+
|
|
468
523
|
.dialog > * {
|
|
469
524
|
@apply bg-popover text-popover-foreground ring-foreground/10 max-w-[calc(100%-2rem)] gap-4 rounded-none p-4 text-xs/relaxed ring-1 duration-100 sm:max-w-sm;
|
|
470
525
|
}
|
|
@@ -477,6 +532,15 @@
|
|
|
477
532
|
@apply gap-1 text-start;
|
|
478
533
|
}
|
|
479
534
|
|
|
535
|
+
.alert-dialog > * > header {
|
|
536
|
+
@apply gap-x-4 gap-y-1.5;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.alert-dialog > * > header > figure {
|
|
540
|
+
@apply bg-muted mb-2 inline-flex size-10 items-center justify-center rounded-none [&>svg:not([class*='size-'])]:size-6;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.alert-dialog > * > footer,
|
|
480
544
|
.dialog > * > footer {
|
|
481
545
|
@apply gap-2;
|
|
482
546
|
}
|
|
@@ -486,11 +550,21 @@
|
|
|
486
550
|
@apply text-sm font-medium;
|
|
487
551
|
}
|
|
488
552
|
|
|
553
|
+
.alert-dialog > * > header > h2,
|
|
554
|
+
.alert-dialog > * > [data-title] {
|
|
555
|
+
@apply text-sm font-medium;
|
|
556
|
+
}
|
|
557
|
+
|
|
489
558
|
.dialog > * > header > p,
|
|
490
559
|
.dialog > * > [data-description] {
|
|
491
560
|
@apply text-muted-foreground text-xs/relaxed [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
492
561
|
}
|
|
493
562
|
|
|
563
|
+
.alert-dialog > * > header > p,
|
|
564
|
+
.alert-dialog > * > [data-description] {
|
|
565
|
+
@apply text-muted-foreground text-xs/relaxed text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
566
|
+
}
|
|
567
|
+
|
|
494
568
|
/* Dropdown Menu */
|
|
495
569
|
.dropdown-menu > [data-popover] {
|
|
496
570
|
@apply bg-popover text-popover-foreground ring-foreground/10 gap-0 overflow-x-hidden overflow-y-auto rounded-none p-0 shadow-md ring-1 duration-100;
|
|
@@ -537,11 +611,11 @@
|
|
|
537
611
|
@apply bg-border -mx-1 h-px;
|
|
538
612
|
}
|
|
539
613
|
|
|
540
|
-
.dropdown-menu :is([data-shortcut], kbd:last-child) {
|
|
614
|
+
.dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
541
615
|
@apply text-muted-foreground font-sans text-xs tracking-widest;
|
|
542
616
|
}
|
|
543
617
|
|
|
544
|
-
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child) {
|
|
618
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
545
619
|
@apply text-accent-foreground;
|
|
546
620
|
}
|
|
547
621
|
|
|
@@ -673,7 +747,15 @@
|
|
|
673
747
|
}
|
|
674
748
|
|
|
675
749
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
|
|
676
|
-
@apply bg-background
|
|
750
|
+
@apply bg-background rounded-full;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
|
|
754
|
+
@apply bg-foreground;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
|
|
758
|
+
@apply bg-primary-foreground;
|
|
677
759
|
}
|
|
678
760
|
|
|
679
761
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
|
package/dist/styles/maia.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-4xl 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
26
|
}
|
|
@@ -247,7 +268,7 @@
|
|
|
247
268
|
@apply size-10;
|
|
248
269
|
}
|
|
249
270
|
|
|
250
|
-
.avatar > span:not(
|
|
271
|
+
.avatar > span:not(.avatar-badge) {
|
|
251
272
|
@apply bg-muted text-muted-foreground rounded-[inherit];
|
|
252
273
|
}
|
|
253
274
|
|
|
@@ -255,7 +276,7 @@
|
|
|
255
276
|
@apply rounded-[inherit];
|
|
256
277
|
}
|
|
257
278
|
|
|
258
|
-
.avatar >
|
|
279
|
+
.avatar > .avatar-badge {
|
|
259
280
|
@apply bg-primary text-primary-foreground ring-background;
|
|
260
281
|
}
|
|
261
282
|
|
|
@@ -301,17 +322,42 @@
|
|
|
301
322
|
@apply text-primary underline-offset-4 hover:underline;
|
|
302
323
|
}
|
|
303
324
|
|
|
325
|
+
/* Breadcrumb */
|
|
326
|
+
.breadcrumb > ol {
|
|
327
|
+
@apply text-muted-foreground gap-1.5 text-sm sm:gap-2.5;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.breadcrumb li {
|
|
331
|
+
@apply gap-1.5;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.breadcrumb a {
|
|
335
|
+
@apply transition-colors hover:text-foreground;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.breadcrumb [aria-current='page'] {
|
|
339
|
+
@apply font-normal text-foreground;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.breadcrumb li[aria-hidden='true'] > svg {
|
|
343
|
+
@apply size-3.5;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.breadcrumb li > span[aria-hidden='true'] {
|
|
347
|
+
@apply size-5 [&>svg]:size-4;
|
|
348
|
+
}
|
|
349
|
+
|
|
304
350
|
/* Command */
|
|
305
351
|
.command {
|
|
306
|
-
@apply bg-popover text-popover-foreground rounded-4xl p-1;
|
|
352
|
+
@apply bg-popover text-popover-foreground rounded-4xl! p-1;
|
|
307
353
|
}
|
|
308
354
|
|
|
309
|
-
.command-dialog >
|
|
310
|
-
@apply rounded-4xl
|
|
355
|
+
.command-dialog > .command {
|
|
356
|
+
@apply bg-popover text-popover-foreground ring-foreground/5 rounded-4xl! ring-1 duration-100;
|
|
311
357
|
}
|
|
312
358
|
|
|
313
359
|
.command > header {
|
|
314
|
-
@apply m-1 mb-0 h-9 gap-
|
|
360
|
+
@apply m-1 mb-0 h-9 gap-0 rounded-3xl bg-input/30 px-3;
|
|
315
361
|
}
|
|
316
362
|
|
|
317
363
|
.command > header svg {
|
|
@@ -319,7 +365,7 @@
|
|
|
319
365
|
}
|
|
320
366
|
|
|
321
367
|
.command > header input {
|
|
322
|
-
@apply
|
|
368
|
+
@apply ps-1.5 text-sm placeholder:text-muted-foreground;
|
|
323
369
|
}
|
|
324
370
|
|
|
325
371
|
.command [role='menu'] {
|
|
@@ -347,7 +393,7 @@
|
|
|
347
393
|
}
|
|
348
394
|
|
|
349
395
|
.command [role='menuitem'].active {
|
|
350
|
-
@apply bg-
|
|
396
|
+
@apply bg-muted text-foreground [&_svg]:text-foreground;
|
|
351
397
|
}
|
|
352
398
|
|
|
353
399
|
.command [data-shortcut] {
|
|
@@ -370,11 +416,15 @@
|
|
|
370
416
|
}
|
|
371
417
|
|
|
372
418
|
.combobox [data-popover] {
|
|
373
|
-
@apply bg-popover text-popover-foreground ring-foreground/5 max-h-72 rounded-2xl p-
|
|
419
|
+
@apply bg-popover text-popover-foreground ring-foreground/5 max-h-72 gap-0 rounded-2xl p-0 shadow-2xl ring-1 duration-100;
|
|
374
420
|
}
|
|
375
421
|
|
|
376
422
|
.combobox [role='listbox'] {
|
|
377
|
-
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto;
|
|
423
|
+
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto p-1;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true']))) {
|
|
427
|
+
@apply p-0;
|
|
378
428
|
}
|
|
379
429
|
|
|
380
430
|
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
@@ -391,7 +441,7 @@
|
|
|
391
441
|
|
|
392
442
|
.combobox [role='option'].active,
|
|
393
443
|
.combobox [role='option']:focus-visible {
|
|
394
|
-
@apply bg-
|
|
444
|
+
@apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
|
|
395
445
|
}
|
|
396
446
|
|
|
397
447
|
.combobox [role='group'] {
|
|
@@ -413,6 +463,14 @@
|
|
|
413
463
|
.combobox-chip-remove {
|
|
414
464
|
@apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
|
|
415
465
|
}
|
|
466
|
+
|
|
467
|
+
.combobox [data-popover] > .input-group {
|
|
468
|
+
@apply m-1 mb-0 h-9 w-auto border-none bg-input/30 shadow-none focus-within:border-inherit focus-within:ring-0;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.combobox [data-popover] > input[role='combobox'] {
|
|
472
|
+
@apply mb-1 w-full;
|
|
473
|
+
}
|
|
416
474
|
/* Select */
|
|
417
475
|
*:not(select).select > button {
|
|
418
476
|
@apply border-input bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 data-[size=sm]:h-8 gap-1.5 rounded-4xl border px-3 py-2 text-sm transition-colors focus-visible:ring-[3px] aria-invalid:ring-[3px] [&_svg:not([class*='size-'])]:size-4;
|
|
@@ -465,10 +523,15 @@
|
|
|
465
523
|
|
|
466
524
|
/* Dialog */
|
|
467
525
|
.dialog::backdrop,
|
|
526
|
+
.alert-dialog::backdrop,
|
|
468
527
|
.command-dialog::backdrop {
|
|
469
528
|
@apply bg-black/80 backdrop-blur-xs duration-100;
|
|
470
529
|
}
|
|
471
530
|
|
|
531
|
+
.alert-dialog > * {
|
|
532
|
+
@apply bg-popover text-popover-foreground ring-foreground/5 max-w-xs gap-6 rounded-4xl p-6 ring-1 duration-100 sm:max-w-md;
|
|
533
|
+
}
|
|
534
|
+
|
|
472
535
|
.dialog > * {
|
|
473
536
|
@apply bg-popover text-popover-foreground ring-foreground/5 max-w-[calc(100%-2rem)] gap-6 rounded-4xl p-6 text-sm ring-1 duration-100 sm:max-w-md;
|
|
474
537
|
}
|
|
@@ -481,6 +544,15 @@
|
|
|
481
544
|
@apply gap-2;
|
|
482
545
|
}
|
|
483
546
|
|
|
547
|
+
.alert-dialog > * > header {
|
|
548
|
+
@apply gap-x-6 gap-y-1.5;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.alert-dialog > * > header > figure {
|
|
552
|
+
@apply bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-full [&>svg:not([class*='size-'])]:size-8;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.alert-dialog > * > footer,
|
|
484
556
|
.dialog > * > footer {
|
|
485
557
|
@apply gap-2;
|
|
486
558
|
}
|
|
@@ -490,11 +562,21 @@
|
|
|
490
562
|
@apply text-base leading-none font-medium;
|
|
491
563
|
}
|
|
492
564
|
|
|
565
|
+
.alert-dialog > * > header > h2,
|
|
566
|
+
.alert-dialog > * > [data-title] {
|
|
567
|
+
@apply text-lg font-medium;
|
|
568
|
+
}
|
|
569
|
+
|
|
493
570
|
.dialog > * > header > p,
|
|
494
571
|
.dialog > * > [data-description] {
|
|
495
572
|
@apply text-muted-foreground text-sm leading-normal [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
496
573
|
}
|
|
497
574
|
|
|
575
|
+
.alert-dialog > * > header > p,
|
|
576
|
+
.alert-dialog > * > [data-description] {
|
|
577
|
+
@apply text-muted-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
578
|
+
}
|
|
579
|
+
|
|
498
580
|
/* Dropdown Menu */
|
|
499
581
|
.dropdown-menu > [data-popover] {
|
|
500
582
|
@apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 min-w-48 gap-0 overflow-x-hidden overflow-y-auto rounded-2xl p-1 shadow-2xl ring-1 duration-100;
|
|
@@ -541,11 +623,11 @@
|
|
|
541
623
|
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
542
624
|
}
|
|
543
625
|
|
|
544
|
-
.dropdown-menu :is([data-shortcut], kbd:last-child) {
|
|
626
|
+
.dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
545
627
|
@apply text-muted-foreground font-sans text-xs tracking-widest;
|
|
546
628
|
}
|
|
547
629
|
|
|
548
|
-
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child) {
|
|
630
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
549
631
|
@apply text-accent-foreground;
|
|
550
632
|
}
|
|
551
633
|
|
|
@@ -673,7 +755,15 @@
|
|
|
673
755
|
}
|
|
674
756
|
|
|
675
757
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
|
|
676
|
-
@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;
|
|
677
767
|
}
|
|
678
768
|
|
|
679
769
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
|
package/dist/styles/mira.css
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* Accordion */
|
|
2
2
|
@layer components {
|
|
3
|
+
.accordion {
|
|
4
|
+
@apply overflow-hidden rounded-md 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-2 text-left text-xs/relaxed 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-2 pt-0 pb-4 text-xs/relaxed;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Button */
|
|
3
24
|
.btn {
|
|
4
25
|
@apply rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium focus-visible:border-ring focus-visible:ring-ring/30 focus-visible:ring-[2px] aria-invalid:border-destructive aria-invalid:ring-[2px] 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
|
}
|
|
@@ -247,7 +268,7 @@
|
|
|
247
268
|
@apply size-10;
|
|
248
269
|
}
|
|
249
270
|
|
|
250
|
-
.avatar > span:not(
|
|
271
|
+
.avatar > span:not(.avatar-badge) {
|
|
251
272
|
@apply bg-muted text-muted-foreground rounded-[inherit];
|
|
252
273
|
}
|
|
253
274
|
|
|
@@ -255,7 +276,7 @@
|
|
|
255
276
|
@apply rounded-[inherit];
|
|
256
277
|
}
|
|
257
278
|
|
|
258
|
-
.avatar >
|
|
279
|
+
.avatar > .avatar-badge {
|
|
259
280
|
@apply bg-primary text-primary-foreground ring-background;
|
|
260
281
|
}
|
|
261
282
|
|
|
@@ -301,17 +322,42 @@
|
|
|
301
322
|
@apply text-primary underline-offset-4 hover:underline;
|
|
302
323
|
}
|
|
303
324
|
|
|
325
|
+
/* Breadcrumb */
|
|
326
|
+
.breadcrumb > ol {
|
|
327
|
+
@apply text-muted-foreground gap-1.5 text-xs/relaxed;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.breadcrumb li {
|
|
331
|
+
@apply gap-1;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.breadcrumb a {
|
|
335
|
+
@apply transition-colors hover:text-foreground;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.breadcrumb [aria-current='page'] {
|
|
339
|
+
@apply font-normal text-foreground;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.breadcrumb li[aria-hidden='true'] > svg {
|
|
343
|
+
@apply size-3.5;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.breadcrumb li > span[aria-hidden='true'] {
|
|
347
|
+
@apply size-4 [&>svg]:size-3.5;
|
|
348
|
+
}
|
|
349
|
+
|
|
304
350
|
/* Command */
|
|
305
351
|
.command {
|
|
306
|
-
@apply bg-popover text-popover-foreground rounded-xl p-1;
|
|
352
|
+
@apply bg-popover text-popover-foreground rounded-xl! p-1;
|
|
307
353
|
}
|
|
308
354
|
|
|
309
|
-
.command-dialog >
|
|
310
|
-
@apply rounded-xl
|
|
355
|
+
.command-dialog > .command {
|
|
356
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 rounded-xl! ring-1 duration-100;
|
|
311
357
|
}
|
|
312
358
|
|
|
313
359
|
.command > header {
|
|
314
|
-
@apply m-1 mb-0 h-8 gap-
|
|
360
|
+
@apply m-1 mb-0 h-8 gap-0 rounded-lg bg-input/20 px-2 dark:bg-input/30;
|
|
315
361
|
}
|
|
316
362
|
|
|
317
363
|
.command > header svg {
|
|
@@ -319,7 +365,7 @@
|
|
|
319
365
|
}
|
|
320
366
|
|
|
321
367
|
.command > header input {
|
|
322
|
-
@apply
|
|
368
|
+
@apply ps-1.5 text-xs/relaxed placeholder:text-muted-foreground;
|
|
323
369
|
}
|
|
324
370
|
|
|
325
371
|
.command [role='menu'] {
|
|
@@ -347,7 +393,7 @@
|
|
|
347
393
|
}
|
|
348
394
|
|
|
349
395
|
.command [role='menuitem'].active {
|
|
350
|
-
@apply bg-
|
|
396
|
+
@apply bg-muted text-foreground [&_svg]:text-foreground;
|
|
351
397
|
}
|
|
352
398
|
|
|
353
399
|
.command [data-shortcut] {
|
|
@@ -370,11 +416,15 @@
|
|
|
370
416
|
}
|
|
371
417
|
|
|
372
418
|
.combobox [data-popover] {
|
|
373
|
-
@apply bg-popover text-popover-foreground ring-foreground/10 dark:bg-popover max-h-72 rounded-lg p-
|
|
419
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 dark:bg-popover max-h-72 gap-0 rounded-lg p-0 shadow-md ring-1 duration-100;
|
|
374
420
|
}
|
|
375
421
|
|
|
376
422
|
.combobox [role='listbox'] {
|
|
377
|
-
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto;
|
|
423
|
+
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto p-1;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true']))) {
|
|
427
|
+
@apply p-0;
|
|
378
428
|
}
|
|
379
429
|
|
|
380
430
|
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
@@ -391,7 +441,7 @@
|
|
|
391
441
|
|
|
392
442
|
.combobox [role='option'].active,
|
|
393
443
|
.combobox [role='option']:focus-visible {
|
|
394
|
-
@apply bg-
|
|
444
|
+
@apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
|
|
395
445
|
}
|
|
396
446
|
|
|
397
447
|
.combobox [role='group'] {
|
|
@@ -413,6 +463,14 @@
|
|
|
413
463
|
.combobox-chip-remove {
|
|
414
464
|
@apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3;
|
|
415
465
|
}
|
|
466
|
+
|
|
467
|
+
.combobox [data-popover] > .input-group {
|
|
468
|
+
@apply m-1 mb-0 h-7 w-auto border-none bg-input/20 shadow-none focus-within:border-inherit focus-within:ring-0;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.combobox [data-popover] > input[role='combobox'] {
|
|
472
|
+
@apply mb-1 w-full;
|
|
473
|
+
}
|
|
416
474
|
/* Select */
|
|
417
475
|
*:not(select).select > button {
|
|
418
476
|
@apply border-input 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 h-7 data-[size=sm]:h-6 data-[size=sm]:text-[0.625rem] gap-1.5 rounded-md border px-2 py-1.5 text-xs/relaxed transition-colors focus-visible:ring-2 aria-invalid:ring-2 [&_svg:not([class*='size-'])]:size-3.5;
|
|
@@ -469,10 +527,15 @@
|
|
|
469
527
|
|
|
470
528
|
/* Dialog */
|
|
471
529
|
.dialog::backdrop,
|
|
530
|
+
.alert-dialog::backdrop,
|
|
472
531
|
.command-dialog::backdrop {
|
|
473
532
|
@apply bg-black/80 backdrop-blur-xs duration-100;
|
|
474
533
|
}
|
|
475
534
|
|
|
535
|
+
.alert-dialog > * {
|
|
536
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 max-w-xs gap-3 rounded-xl p-4 ring-1 duration-100 sm:max-w-sm;
|
|
537
|
+
}
|
|
538
|
+
|
|
476
539
|
.dialog > * {
|
|
477
540
|
@apply bg-popover text-popover-foreground ring-foreground/10 max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-xs/relaxed ring-1 duration-100 sm:max-w-sm;
|
|
478
541
|
}
|
|
@@ -485,6 +548,15 @@
|
|
|
485
548
|
@apply gap-1;
|
|
486
549
|
}
|
|
487
550
|
|
|
551
|
+
.alert-dialog > * > header {
|
|
552
|
+
@apply gap-x-4 gap-y-1;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.alert-dialog > * > header > figure {
|
|
556
|
+
@apply bg-muted mb-2 inline-flex size-8 items-center justify-center rounded-md [&>svg:not([class*='size-'])]:size-4;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.alert-dialog > * > footer,
|
|
488
560
|
.dialog > * > footer {
|
|
489
561
|
@apply gap-2;
|
|
490
562
|
}
|
|
@@ -494,11 +566,21 @@
|
|
|
494
566
|
@apply text-sm font-medium;
|
|
495
567
|
}
|
|
496
568
|
|
|
569
|
+
.alert-dialog > * > header > h2,
|
|
570
|
+
.alert-dialog > * > [data-title] {
|
|
571
|
+
@apply text-sm font-medium;
|
|
572
|
+
}
|
|
573
|
+
|
|
497
574
|
.dialog > * > header > p,
|
|
498
575
|
.dialog > * > [data-description] {
|
|
499
576
|
@apply text-muted-foreground text-xs/relaxed [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
500
577
|
}
|
|
501
578
|
|
|
579
|
+
.alert-dialog > * > header > p,
|
|
580
|
+
.alert-dialog > * > [data-description] {
|
|
581
|
+
@apply text-muted-foreground text-xs/relaxed text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
582
|
+
}
|
|
583
|
+
|
|
502
584
|
/* Dropdown Menu */
|
|
503
585
|
.dropdown-menu > [data-popover] {
|
|
504
586
|
@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;
|
|
@@ -545,11 +627,11 @@
|
|
|
545
627
|
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
546
628
|
}
|
|
547
629
|
|
|
548
|
-
.dropdown-menu :is([data-shortcut], kbd:last-child) {
|
|
630
|
+
.dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
549
631
|
@apply text-muted-foreground font-sans text-[0.625rem] tracking-widest;
|
|
550
632
|
}
|
|
551
633
|
|
|
552
|
-
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child) {
|
|
634
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
553
635
|
@apply text-accent-foreground;
|
|
554
636
|
}
|
|
555
637
|
|
|
@@ -677,7 +759,15 @@
|
|
|
677
759
|
}
|
|
678
760
|
|
|
679
761
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
|
|
680
|
-
@apply bg-background
|
|
762
|
+
@apply bg-background rounded-full;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
|
|
766
|
+
@apply bg-foreground;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
|
|
770
|
+
@apply bg-primary-foreground;
|
|
681
771
|
}
|
|
682
772
|
|
|
683
773
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
|