basecoat-css 1.0.0-beta.3 → 1.0.0-beta.5
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 +46 -44
- package/dist/basecoat-base.cdn.css +249 -65
- package/dist/basecoat-base.cdn.min.css +1 -1
- package/dist/basecoat-compat.cdn.css +22 -0
- package/dist/basecoat-compat.cdn.min.css +1 -1
- package/dist/basecoat-components.css +2 -0
- package/dist/basecoat-luma.cdn.css +430 -80
- package/dist/basecoat-luma.cdn.min.css +1 -1
- package/dist/basecoat-lyra.cdn.css +431 -78
- package/dist/basecoat-lyra.cdn.min.css +1 -1
- package/dist/basecoat-maia.cdn.css +421 -80
- package/dist/basecoat-maia.cdn.min.css +1 -1
- package/dist/basecoat-mira.cdn.css +418 -80
- package/dist/basecoat-mira.cdn.min.css +1 -1
- package/dist/basecoat-nova.cdn.css +435 -80
- package/dist/basecoat-nova.cdn.min.css +1 -1
- package/dist/basecoat-rhea.cdn.css +440 -91
- package/dist/basecoat-rhea.cdn.min.css +1 -1
- package/dist/basecoat-sera.cdn.css +424 -78
- package/dist/basecoat-sera.cdn.min.css +1 -1
- package/dist/basecoat-vega.cdn.css +424 -79
- package/dist/basecoat-vega.cdn.min.css +1 -1
- package/dist/basecoat.cdn.css +424 -79
- package/dist/basecoat.cdn.min.css +1 -1
- package/dist/compat/legacy.css +6 -0
- 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/js/accordion.js +68 -0
- package/dist/js/accordion.min.js +1 -0
- package/dist/js/all.js +199 -28
- 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/styles/luma.css +85 -11
- package/dist/styles/lyra.css +81 -11
- package/dist/styles/maia.css +85 -11
- package/dist/styles/mira.css +85 -11
- package/dist/styles/nova.css +83 -13
- package/dist/styles/rhea.css +89 -15
- package/dist/styles/sera.css +80 -10
- package/dist/styles/vega.css +82 -12
- 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,
|
|
@@ -409,6 +451,10 @@
|
|
|
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] > :is(input[role='combobox'], .input-group) {
|
|
456
|
+
@apply mb-1 w-full;
|
|
457
|
+
}
|
|
412
458
|
/* Select */
|
|
413
459
|
*:not(select).select > button {
|
|
414
460
|
@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 +507,15 @@
|
|
|
461
507
|
|
|
462
508
|
/* Dialog */
|
|
463
509
|
.dialog::backdrop,
|
|
510
|
+
.alert-dialog::backdrop,
|
|
464
511
|
.command-dialog::backdrop {
|
|
465
512
|
@apply bg-black/10 backdrop-blur-xs duration-100;
|
|
466
513
|
}
|
|
467
514
|
|
|
515
|
+
.alert-dialog > * {
|
|
516
|
+
@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;
|
|
517
|
+
}
|
|
518
|
+
|
|
468
519
|
.dialog > * {
|
|
469
520
|
@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
521
|
}
|
|
@@ -477,6 +528,15 @@
|
|
|
477
528
|
@apply gap-1 text-start;
|
|
478
529
|
}
|
|
479
530
|
|
|
531
|
+
.alert-dialog > * > header {
|
|
532
|
+
@apply gap-x-4 gap-y-1.5;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.alert-dialog > * > header > figure {
|
|
536
|
+
@apply bg-muted mb-2 inline-flex size-10 items-center justify-center rounded-none [&>svg:not([class*='size-'])]:size-6;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.alert-dialog > * > footer,
|
|
480
540
|
.dialog > * > footer {
|
|
481
541
|
@apply gap-2;
|
|
482
542
|
}
|
|
@@ -486,11 +546,21 @@
|
|
|
486
546
|
@apply text-sm font-medium;
|
|
487
547
|
}
|
|
488
548
|
|
|
549
|
+
.alert-dialog > * > header > h2,
|
|
550
|
+
.alert-dialog > * > [data-title] {
|
|
551
|
+
@apply text-sm font-medium;
|
|
552
|
+
}
|
|
553
|
+
|
|
489
554
|
.dialog > * > header > p,
|
|
490
555
|
.dialog > * > [data-description] {
|
|
491
556
|
@apply text-muted-foreground text-xs/relaxed [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
492
557
|
}
|
|
493
558
|
|
|
559
|
+
.alert-dialog > * > header > p,
|
|
560
|
+
.alert-dialog > * > [data-description] {
|
|
561
|
+
@apply text-muted-foreground text-xs/relaxed text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
562
|
+
}
|
|
563
|
+
|
|
494
564
|
/* Dropdown Menu */
|
|
495
565
|
.dropdown-menu > [data-popover] {
|
|
496
566
|
@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 +607,11 @@
|
|
|
537
607
|
@apply bg-border -mx-1 h-px;
|
|
538
608
|
}
|
|
539
609
|
|
|
540
|
-
.dropdown-menu :is([data-shortcut], kbd:last-child) {
|
|
610
|
+
.dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
541
611
|
@apply text-muted-foreground font-sans text-xs tracking-widest;
|
|
542
612
|
}
|
|
543
613
|
|
|
544
|
-
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child) {
|
|
614
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
545
615
|
@apply text-accent-foreground;
|
|
546
616
|
}
|
|
547
617
|
|
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] {
|
|
@@ -413,6 +459,10 @@
|
|
|
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] > :is(input[role='combobox'], .input-group) {
|
|
464
|
+
@apply mb-1 w-full;
|
|
465
|
+
}
|
|
416
466
|
/* Select */
|
|
417
467
|
*:not(select).select > button {
|
|
418
468
|
@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 +515,15 @@
|
|
|
465
515
|
|
|
466
516
|
/* Dialog */
|
|
467
517
|
.dialog::backdrop,
|
|
518
|
+
.alert-dialog::backdrop,
|
|
468
519
|
.command-dialog::backdrop {
|
|
469
520
|
@apply bg-black/80 backdrop-blur-xs duration-100;
|
|
470
521
|
}
|
|
471
522
|
|
|
523
|
+
.alert-dialog > * {
|
|
524
|
+
@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;
|
|
525
|
+
}
|
|
526
|
+
|
|
472
527
|
.dialog > * {
|
|
473
528
|
@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
529
|
}
|
|
@@ -481,6 +536,15 @@
|
|
|
481
536
|
@apply gap-2;
|
|
482
537
|
}
|
|
483
538
|
|
|
539
|
+
.alert-dialog > * > header {
|
|
540
|
+
@apply gap-x-6 gap-y-1.5;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.alert-dialog > * > header > figure {
|
|
544
|
+
@apply bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-full [&>svg:not([class*='size-'])]:size-8;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.alert-dialog > * > footer,
|
|
484
548
|
.dialog > * > footer {
|
|
485
549
|
@apply gap-2;
|
|
486
550
|
}
|
|
@@ -490,11 +554,21 @@
|
|
|
490
554
|
@apply text-base leading-none font-medium;
|
|
491
555
|
}
|
|
492
556
|
|
|
557
|
+
.alert-dialog > * > header > h2,
|
|
558
|
+
.alert-dialog > * > [data-title] {
|
|
559
|
+
@apply text-lg font-medium;
|
|
560
|
+
}
|
|
561
|
+
|
|
493
562
|
.dialog > * > header > p,
|
|
494
563
|
.dialog > * > [data-description] {
|
|
495
564
|
@apply text-muted-foreground text-sm leading-normal [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
496
565
|
}
|
|
497
566
|
|
|
567
|
+
.alert-dialog > * > header > p,
|
|
568
|
+
.alert-dialog > * > [data-description] {
|
|
569
|
+
@apply text-muted-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
570
|
+
}
|
|
571
|
+
|
|
498
572
|
/* Dropdown Menu */
|
|
499
573
|
.dropdown-menu > [data-popover] {
|
|
500
574
|
@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 +615,11 @@
|
|
|
541
615
|
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
542
616
|
}
|
|
543
617
|
|
|
544
|
-
.dropdown-menu :is([data-shortcut], kbd:last-child) {
|
|
618
|
+
.dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
545
619
|
@apply text-muted-foreground font-sans text-xs tracking-widest;
|
|
546
620
|
}
|
|
547
621
|
|
|
548
|
-
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child) {
|
|
622
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
549
623
|
@apply text-accent-foreground;
|
|
550
624
|
}
|
|
551
625
|
|
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] {
|
|
@@ -413,6 +459,10 @@
|
|
|
413
459
|
.combobox-chip-remove {
|
|
414
460
|
@apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3;
|
|
415
461
|
}
|
|
462
|
+
|
|
463
|
+
.combobox [data-popover] > :is(input[role='combobox'], .input-group) {
|
|
464
|
+
@apply mb-1 w-full;
|
|
465
|
+
}
|
|
416
466
|
/* Select */
|
|
417
467
|
*:not(select).select > button {
|
|
418
468
|
@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 +519,15 @@
|
|
|
469
519
|
|
|
470
520
|
/* Dialog */
|
|
471
521
|
.dialog::backdrop,
|
|
522
|
+
.alert-dialog::backdrop,
|
|
472
523
|
.command-dialog::backdrop {
|
|
473
524
|
@apply bg-black/80 backdrop-blur-xs duration-100;
|
|
474
525
|
}
|
|
475
526
|
|
|
527
|
+
.alert-dialog > * {
|
|
528
|
+
@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;
|
|
529
|
+
}
|
|
530
|
+
|
|
476
531
|
.dialog > * {
|
|
477
532
|
@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
533
|
}
|
|
@@ -485,6 +540,15 @@
|
|
|
485
540
|
@apply gap-1;
|
|
486
541
|
}
|
|
487
542
|
|
|
543
|
+
.alert-dialog > * > header {
|
|
544
|
+
@apply gap-x-4 gap-y-1;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.alert-dialog > * > header > figure {
|
|
548
|
+
@apply bg-muted mb-2 inline-flex size-8 items-center justify-center rounded-md [&>svg:not([class*='size-'])]:size-4;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.alert-dialog > * > footer,
|
|
488
552
|
.dialog > * > footer {
|
|
489
553
|
@apply gap-2;
|
|
490
554
|
}
|
|
@@ -494,11 +558,21 @@
|
|
|
494
558
|
@apply text-sm font-medium;
|
|
495
559
|
}
|
|
496
560
|
|
|
561
|
+
.alert-dialog > * > header > h2,
|
|
562
|
+
.alert-dialog > * > [data-title] {
|
|
563
|
+
@apply text-sm font-medium;
|
|
564
|
+
}
|
|
565
|
+
|
|
497
566
|
.dialog > * > header > p,
|
|
498
567
|
.dialog > * > [data-description] {
|
|
499
568
|
@apply text-muted-foreground text-xs/relaxed [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
500
569
|
}
|
|
501
570
|
|
|
571
|
+
.alert-dialog > * > header > p,
|
|
572
|
+
.alert-dialog > * > [data-description] {
|
|
573
|
+
@apply text-muted-foreground text-xs/relaxed text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
574
|
+
}
|
|
575
|
+
|
|
502
576
|
/* Dropdown Menu */
|
|
503
577
|
.dropdown-menu > [data-popover] {
|
|
504
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;
|
|
@@ -545,11 +619,11 @@
|
|
|
545
619
|
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
546
620
|
}
|
|
547
621
|
|
|
548
|
-
.dropdown-menu :is([data-shortcut], kbd:last-child) {
|
|
622
|
+
.dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
549
623
|
@apply text-muted-foreground font-sans text-[0.625rem] tracking-widest;
|
|
550
624
|
}
|
|
551
625
|
|
|
552
|
-
.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) {
|
|
553
627
|
@apply text-accent-foreground;
|
|
554
628
|
}
|
|
555
629
|
|