basecoat-css 1.0.0-beta.4 → 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 +1 -1
- package/dist/basecoat-base.cdn.css +250 -26
- package/dist/basecoat-base.cdn.min.css +1 -1
- package/dist/basecoat-components.css +2 -0
- package/dist/basecoat-luma.cdn.css +431 -41
- package/dist/basecoat-luma.cdn.min.css +1 -1
- package/dist/basecoat-lyra.cdn.css +432 -39
- package/dist/basecoat-lyra.cdn.min.css +1 -1
- package/dist/basecoat-maia.cdn.css +422 -41
- package/dist/basecoat-maia.cdn.min.css +1 -1
- package/dist/basecoat-mira.cdn.css +419 -41
- package/dist/basecoat-mira.cdn.min.css +1 -1
- package/dist/basecoat-nova.cdn.css +436 -41
- package/dist/basecoat-nova.cdn.min.css +1 -1
- package/dist/basecoat-rhea.cdn.css +441 -52
- package/dist/basecoat-rhea.cdn.min.css +1 -1
- package/dist/basecoat-sera.cdn.css +425 -39
- package/dist/basecoat-sera.cdn.min.css +1 -1
- package/dist/basecoat-vega.cdn.css +425 -40
- package/dist/basecoat-vega.cdn.min.css +1 -1
- package/dist/basecoat.cdn.css +425 -40
- 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/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/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,
|
|
@@ -413,6 +455,10 @@
|
|
|
413
455
|
.combobox-chip-remove {
|
|
414
456
|
@apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
|
|
415
457
|
}
|
|
458
|
+
|
|
459
|
+
.combobox [data-popover] > :is(input[role='combobox'], .input-group) {
|
|
460
|
+
@apply mb-1 w-full;
|
|
461
|
+
}
|
|
416
462
|
/* Select */
|
|
417
463
|
*:not(select).select > button {
|
|
418
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-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 +511,15 @@
|
|
|
465
511
|
|
|
466
512
|
/* Dialog */
|
|
467
513
|
.dialog::backdrop,
|
|
514
|
+
.alert-dialog::backdrop,
|
|
468
515
|
.command-dialog::backdrop {
|
|
469
516
|
@apply bg-black/10 backdrop-blur-xs duration-100;
|
|
470
517
|
}
|
|
471
518
|
|
|
519
|
+
.alert-dialog > * {
|
|
520
|
+
@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;
|
|
521
|
+
}
|
|
522
|
+
|
|
472
523
|
.dialog > * {
|
|
473
524
|
@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
525
|
}
|
|
@@ -481,6 +532,15 @@
|
|
|
481
532
|
@apply gap-2;
|
|
482
533
|
}
|
|
483
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-md [&>svg:not([class*='size-'])]:size-6;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.alert-dialog > * > footer,
|
|
484
544
|
.dialog > * > footer {
|
|
485
545
|
@apply bg-muted/50 -mx-4 -mb-4 gap-2 rounded-b-xl border-t p-4;
|
|
486
546
|
}
|
|
@@ -490,11 +550,21 @@
|
|
|
490
550
|
@apply text-base leading-none font-medium;
|
|
491
551
|
}
|
|
492
552
|
|
|
553
|
+
.alert-dialog > * > header > h2,
|
|
554
|
+
.alert-dialog > * > [data-title] {
|
|
555
|
+
@apply text-base font-medium;
|
|
556
|
+
}
|
|
557
|
+
|
|
493
558
|
.dialog > * > header > p,
|
|
494
559
|
.dialog > * > [data-description] {
|
|
495
560
|
@apply text-muted-foreground text-sm leading-normal [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
496
561
|
}
|
|
497
562
|
|
|
563
|
+
.alert-dialog > * > header > p,
|
|
564
|
+
.alert-dialog > * > [data-description] {
|
|
565
|
+
@apply text-muted-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
566
|
+
}
|
|
567
|
+
|
|
498
568
|
/* Dropdown Menu */
|
|
499
569
|
.dropdown-menu > [data-popover] {
|
|
500
570
|
@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 +611,11 @@
|
|
|
541
611
|
@apply bg-border -mx-1 my-1 h-px;
|
|
542
612
|
}
|
|
543
613
|
|
|
544
|
-
.dropdown-menu :is([data-shortcut], kbd:last-child) {
|
|
614
|
+
.dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
545
615
|
@apply text-muted-foreground font-sans text-xs tracking-widest;
|
|
546
616
|
}
|
|
547
617
|
|
|
548
|
-
.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) {
|
|
549
619
|
@apply text-accent-foreground;
|
|
550
620
|
}
|
|
551
621
|
|
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] {
|
|
@@ -421,6 +467,10 @@
|
|
|
421
467
|
.combobox-chip-remove {
|
|
422
468
|
@apply -ms-0.5 size-4.5 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
|
|
423
469
|
}
|
|
470
|
+
|
|
471
|
+
.combobox [data-popover] > :is(input[role='combobox'], .input-group) {
|
|
472
|
+
@apply mb-1 w-full;
|
|
473
|
+
}
|
|
424
474
|
/* Select */
|
|
425
475
|
*:not(select).select > button {
|
|
426
476
|
@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 +523,17 @@
|
|
|
473
523
|
|
|
474
524
|
/* Dialog */
|
|
475
525
|
.dialog::backdrop,
|
|
526
|
+
.alert-dialog::backdrop,
|
|
476
527
|
.command-dialog::backdrop {
|
|
477
528
|
@apply bg-black/30 backdrop-blur-sm duration-100;
|
|
478
529
|
}
|
|
479
530
|
|
|
531
|
+
.alert-dialog > * {
|
|
532
|
+
@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;
|
|
533
|
+
}
|
|
534
|
+
|
|
480
535
|
.dialog > * {
|
|
481
|
-
@apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 max-w-[calc(100%-2rem)] gap-6 rounded-
|
|
536
|
+
@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
537
|
}
|
|
483
538
|
|
|
484
539
|
.dialog > * > :is(button, form[method='dialog']) {
|
|
@@ -493,6 +548,15 @@
|
|
|
493
548
|
@apply gap-1.5;
|
|
494
549
|
}
|
|
495
550
|
|
|
551
|
+
.alert-dialog > * > header {
|
|
552
|
+
@apply gap-x-6 gap-y-1.5;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.alert-dialog > * > header > figure {
|
|
556
|
+
@apply bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-full [&>svg:not([class*='size-'])]:size-8;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.alert-dialog > * > footer,
|
|
496
560
|
.dialog > * > footer {
|
|
497
561
|
@apply gap-2;
|
|
498
562
|
}
|
|
@@ -502,11 +566,21 @@
|
|
|
502
566
|
@apply text-base leading-none font-medium;
|
|
503
567
|
}
|
|
504
568
|
|
|
569
|
+
.alert-dialog > * > header > h2,
|
|
570
|
+
.alert-dialog > * > [data-title] {
|
|
571
|
+
@apply text-lg font-medium;
|
|
572
|
+
}
|
|
573
|
+
|
|
505
574
|
.dialog > * > header > p,
|
|
506
575
|
.dialog > * > [data-description] {
|
|
507
576
|
@apply text-muted-foreground text-sm leading-normal [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
508
577
|
}
|
|
509
578
|
|
|
579
|
+
.alert-dialog > * > header > p,
|
|
580
|
+
.alert-dialog > * > [data-description] {
|
|
581
|
+
@apply text-muted-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
582
|
+
}
|
|
583
|
+
|
|
510
584
|
/* Dropdown Menu */
|
|
511
585
|
.dropdown-menu > [data-popover] {
|
|
512
586
|
@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 +627,11 @@
|
|
|
553
627
|
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
554
628
|
}
|
|
555
629
|
|
|
556
|
-
.dropdown-menu :is([data-shortcut], kbd:last-child) {
|
|
630
|
+
.dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
557
631
|
@apply text-muted-foreground font-sans text-xs tracking-widest;
|
|
558
632
|
}
|
|
559
633
|
|
|
560
|
-
.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) {
|
|
561
635
|
@apply text-accent-foreground;
|
|
562
636
|
}
|
|
563
637
|
|
|
@@ -582,7 +656,7 @@
|
|
|
582
656
|
|
|
583
657
|
/* Card */
|
|
584
658
|
.card {
|
|
585
|
-
@apply bg-card text-card-foreground ring-foreground/5 dark:ring-foreground/10 overflow-hidden rounded-
|
|
659
|
+
@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
660
|
}
|
|
587
661
|
|
|
588
662
|
.card {
|
|
@@ -594,7 +668,7 @@
|
|
|
594
668
|
}
|
|
595
669
|
|
|
596
670
|
.card > header {
|
|
597
|
-
@apply gap-1.5 rounded-t-
|
|
671
|
+
@apply gap-1.5 rounded-t-3xl px-5 [.border-b]:pb-5;
|
|
598
672
|
}
|
|
599
673
|
|
|
600
674
|
.card[data-size='sm'] > header {
|
|
@@ -618,7 +692,7 @@
|
|
|
618
692
|
}
|
|
619
693
|
|
|
620
694
|
.card > footer {
|
|
621
|
-
@apply rounded-b-
|
|
695
|
+
@apply rounded-b-3xl px-5 [.border-t]:pt-5;
|
|
622
696
|
}
|
|
623
697
|
|
|
624
698
|
.card[data-size='sm'] > footer {
|
package/dist/styles/sera.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/30 focus-visible:border-ring rounded-none gap-6 py-4 text-left text-sm font-semibold hover:underline focus-visible:ring-2;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.accordion > details > summary > svg:last-child {
|
|
12
|
+
@apply text-muted-foreground ms-auto size-3.5;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.accordion > details > :not(summary) {
|
|
16
|
+
@apply pt-0 pb-4 text-sm;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Button */
|
|
3
20
|
.btn {
|
|
4
21
|
@apply rounded-none border border-transparent bg-clip-padding text-xs font-semibold uppercase tracking-widest 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-3.5;
|
|
5
22
|
}
|
|
@@ -263,7 +280,7 @@
|
|
|
263
280
|
@apply size-10;
|
|
264
281
|
}
|
|
265
282
|
|
|
266
|
-
.avatar > span:not(
|
|
283
|
+
.avatar > span:not(.avatar-badge) {
|
|
267
284
|
@apply bg-muted text-muted-foreground rounded-[inherit];
|
|
268
285
|
}
|
|
269
286
|
|
|
@@ -271,7 +288,7 @@
|
|
|
271
288
|
@apply rounded-[inherit];
|
|
272
289
|
}
|
|
273
290
|
|
|
274
|
-
.avatar >
|
|
291
|
+
.avatar > .avatar-badge {
|
|
275
292
|
@apply bg-primary text-primary-foreground ring-background;
|
|
276
293
|
}
|
|
277
294
|
|
|
@@ -317,17 +334,42 @@
|
|
|
317
334
|
@apply text-foreground underline-offset-4 hover:underline;
|
|
318
335
|
}
|
|
319
336
|
|
|
337
|
+
/* Breadcrumb */
|
|
338
|
+
.breadcrumb > ol {
|
|
339
|
+
@apply text-muted-foreground gap-1.5 text-sm sm:gap-2.5;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.breadcrumb li {
|
|
343
|
+
@apply gap-1.5;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.breadcrumb a {
|
|
347
|
+
@apply transition-colors hover:text-foreground;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.breadcrumb [aria-current='page'] {
|
|
351
|
+
@apply font-normal text-foreground;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.breadcrumb li[aria-hidden='true'] > svg {
|
|
355
|
+
@apply size-3.5;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.breadcrumb li > span[aria-hidden='true'] {
|
|
359
|
+
@apply size-5 [&>svg]:size-4;
|
|
360
|
+
}
|
|
361
|
+
|
|
320
362
|
/* Command */
|
|
321
363
|
.command {
|
|
322
364
|
@apply bg-popover text-popover-foreground rounded-none;
|
|
323
365
|
}
|
|
324
366
|
|
|
325
|
-
.command-dialog >
|
|
326
|
-
@apply rounded-none
|
|
367
|
+
.command-dialog > .command {
|
|
368
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 rounded-none shadow-md ring-1 duration-100;
|
|
327
369
|
}
|
|
328
370
|
|
|
329
371
|
.command > header {
|
|
330
|
-
@apply m-1 gap-
|
|
372
|
+
@apply m-1 gap-0 border-b border-b-input bg-transparent px-3;
|
|
331
373
|
}
|
|
332
374
|
|
|
333
375
|
.command > header svg {
|
|
@@ -335,7 +377,7 @@
|
|
|
335
377
|
}
|
|
336
378
|
|
|
337
379
|
.command > header input {
|
|
338
|
-
@apply h-9
|
|
380
|
+
@apply h-9 ps-1.5 pe-2 text-sm placeholder:text-muted-foreground;
|
|
339
381
|
}
|
|
340
382
|
|
|
341
383
|
.command [role='menu'] {
|
|
@@ -363,7 +405,7 @@
|
|
|
363
405
|
}
|
|
364
406
|
|
|
365
407
|
.command [role='menuitem'].active {
|
|
366
|
-
@apply bg-
|
|
408
|
+
@apply bg-muted text-foreground [&_svg]:text-foreground;
|
|
367
409
|
}
|
|
368
410
|
|
|
369
411
|
.command [data-shortcut] {
|
|
@@ -429,6 +471,10 @@
|
|
|
429
471
|
.combobox-chip-remove {
|
|
430
472
|
@apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
|
|
431
473
|
}
|
|
474
|
+
|
|
475
|
+
.combobox [data-popover] > :is(input[role='combobox'], .input-group) {
|
|
476
|
+
@apply mb-1 w-full;
|
|
477
|
+
}
|
|
432
478
|
/* Select */
|
|
433
479
|
*:not(select).select > button {
|
|
434
480
|
@apply border-transparent border-b-input bg-transparent focus-visible:border-b-ring aria-invalid:border-b-destructive dark:aria-invalid:border-b-destructive/50 h-10 data-[size=sm]:h-9 gap-1.5 rounded-none border px-0 py-2 text-sm transition-[color,border-color] [&_svg:not([class*='size-'])]:size-3.5;
|
|
@@ -481,10 +527,15 @@
|
|
|
481
527
|
|
|
482
528
|
/* Dialog */
|
|
483
529
|
.dialog::backdrop,
|
|
530
|
+
.alert-dialog::backdrop,
|
|
484
531
|
.command-dialog::backdrop {
|
|
485
532
|
@apply bg-black/20 backdrop-blur-sm duration-100;
|
|
486
533
|
}
|
|
487
534
|
|
|
535
|
+
.alert-dialog > * {
|
|
536
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 max-w-xs gap-6 rounded-none p-6 shadow-md ring-1 duration-100 sm:max-w-md;
|
|
537
|
+
}
|
|
538
|
+
|
|
488
539
|
.dialog > * {
|
|
489
540
|
@apply bg-popover text-popover-foreground ring-foreground/10 max-w-[calc(100%-2rem)] gap-6 rounded-none p-6 text-sm shadow-md ring-1 duration-100 sm:max-w-md;
|
|
490
541
|
}
|
|
@@ -501,6 +552,15 @@
|
|
|
501
552
|
@apply gap-2;
|
|
502
553
|
}
|
|
503
554
|
|
|
555
|
+
.alert-dialog > * > header {
|
|
556
|
+
@apply gap-x-6 gap-y-1.5;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.alert-dialog > * > header > figure {
|
|
560
|
+
@apply bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-none [&>svg:not([class*='size-'])]:size-8;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.alert-dialog > * > footer,
|
|
504
564
|
.dialog > * > footer {
|
|
505
565
|
@apply gap-2;
|
|
506
566
|
}
|
|
@@ -510,11 +570,21 @@
|
|
|
510
570
|
@apply text-lg leading-none font-semibold tracking-wider uppercase;
|
|
511
571
|
}
|
|
512
572
|
|
|
573
|
+
.alert-dialog > * > header > h2,
|
|
574
|
+
.alert-dialog > * > [data-title] {
|
|
575
|
+
@apply text-lg font-semibold tracking-wider uppercase;
|
|
576
|
+
}
|
|
577
|
+
|
|
513
578
|
.dialog > * > header > p,
|
|
514
579
|
.dialog > * > [data-description] {
|
|
515
580
|
@apply text-muted-foreground mt-0.5 text-sm leading-relaxed [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
516
581
|
}
|
|
517
582
|
|
|
583
|
+
.alert-dialog > * > header > p,
|
|
584
|
+
.alert-dialog > * > [data-description] {
|
|
585
|
+
@apply text-muted-foreground mt-0.5 text-sm leading-relaxed text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
586
|
+
}
|
|
587
|
+
|
|
518
588
|
/* Dropdown Menu */
|
|
519
589
|
.dropdown-menu > [data-popover] {
|
|
520
590
|
@apply bg-popover text-popover-foreground ring-foreground/10 min-w-48 gap-0 overflow-x-hidden overflow-y-auto rounded-none p-1.5 shadow-md ring-1 duration-100;
|
|
@@ -561,11 +631,11 @@
|
|
|
561
631
|
@apply bg-border/50 -mx-1.5 my-1.5 h-px;
|
|
562
632
|
}
|
|
563
633
|
|
|
564
|
-
.dropdown-menu :is([data-shortcut], kbd:last-child) {
|
|
634
|
+
.dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
565
635
|
@apply text-muted-foreground font-sans text-xs tracking-widest;
|
|
566
636
|
}
|
|
567
637
|
|
|
568
|
-
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child) {
|
|
638
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
569
639
|
@apply text-accent-foreground;
|
|
570
640
|
}
|
|
571
641
|
|