@mesob/ui 0.5.4 → 0.5.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/components.d.ts +34 -21
- package/dist/components.js +698 -570
- package/dist/components.js.map +1 -1
- package/dist/providers.d.ts +2 -4
- package/dist/providers.js +7 -27
- package/dist/providers.js.map +1 -1
- package/package.json +8 -3
- package/src/styles/style-lyra.css +249 -6
- package/src/styles/style-maia.css +243 -5
- package/src/styles/style-mira.css +248 -5
- package/src/styles/style-nova.css +136 -5
- package/src/styles/style-vega.css +136 -5
- package/src/styles/themes.css +31 -0
- package/src/styles/lyra/button.css +0 -107
- package/src/styles/maia/button.css +0 -107
- package/src/styles/mira/button.css +0 -107
|
@@ -1,4 +1,111 @@
|
|
|
1
|
-
|
|
1
|
+
.style-maia {
|
|
2
|
+
/* MARK: Button */
|
|
3
|
+
.cn-button {
|
|
4
|
+
@apply 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 rounded-4xl border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] [&_svg:not([class*='size-'])]:size-4;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.cn-button-variant-default {
|
|
8
|
+
@apply bg-primary text-primary-foreground hover:bg-primary/80;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.cn-button-variant-outline {
|
|
12
|
+
@apply border-border bg-input/30 hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.cn-button-variant-secondary {
|
|
16
|
+
@apply bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.cn-button-variant-ghost {
|
|
20
|
+
@apply hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.cn-button-variant-destructive {
|
|
24
|
+
@apply bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.cn-button-variant-link {
|
|
28
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.cn-button-variant-light {
|
|
32
|
+
@apply bg-primary/12 text-primary hover:bg-primary/18 dark:bg-primary/20 dark:hover:bg-primary/28;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.cn-button-variant-destructive-filled {
|
|
36
|
+
@apply bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.cn-dropdown-button-shell {
|
|
40
|
+
@apply inline-flex w-fit items-stretch isolate overflow-hidden align-middle;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.cn-dropdown-button-main {
|
|
44
|
+
@apply rounded-r-none! border-r-0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.cn-dropdown-button-trigger {
|
|
48
|
+
@apply relative -ml-px rounded-l-none! border-l-0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.cn-dropdown-button-trigger::before {
|
|
52
|
+
@apply bg-border/70 absolute top-2 bottom-2 left-0 w-px content-[''];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.cn-dropdown-button-trigger[data-size='xs']::before {
|
|
56
|
+
@apply top-0.5 bottom-0.5;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.cn-dropdown-button-trigger[data-size='sm']::before {
|
|
60
|
+
@apply top-1 bottom-1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.cn-dropdown-button-variant-danger {
|
|
64
|
+
@apply bg-destructive text-destructive-foreground hover:bg-destructive/90;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.cn-button-size-xl {
|
|
68
|
+
@apply h-12 gap-2 px-7 has-data-[icon=inline-end]:pr-5 has-data-[icon=inline-start]:pl-5 text-lg;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.cn-button-size-icon-xl {
|
|
72
|
+
@apply size-12;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.cn-button-size-xs {
|
|
76
|
+
@apply h-6 gap-1 px-2.5 text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.cn-button-size-sm {
|
|
80
|
+
@apply h-8 gap-1 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.cn-button-size-default {
|
|
84
|
+
@apply h-9 gap-1.5 px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.cn-button-size-lg {
|
|
88
|
+
@apply h-10 gap-1.5 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.cn-button-size-icon-xs {
|
|
92
|
+
@apply size-6 [&_svg:not([class*='size-'])]:size-3;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.cn-button-size-icon-sm {
|
|
96
|
+
@apply size-8;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.cn-button-size-icon {
|
|
100
|
+
@apply size-9;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.cn-button-size-icon-lg {
|
|
104
|
+
@apply size-10;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
|
|
2
109
|
|
|
3
110
|
.style-maia {
|
|
4
111
|
/* MARK: Accordion */
|
|
@@ -421,7 +528,15 @@
|
|
|
421
528
|
|
|
422
529
|
/* MARK: Card */
|
|
423
530
|
.cn-card {
|
|
424
|
-
@apply ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-2xl
|
|
531
|
+
@apply ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-2xl text-sm ring-1 has-[>img:first-child]:pt-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.cn-card:not([data-sectioned]) {
|
|
535
|
+
@apply py-4;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.cn-card[data-sectioned] {
|
|
539
|
+
@apply gap-0 py-0;
|
|
425
540
|
}
|
|
426
541
|
|
|
427
542
|
.cn-card-with-border {
|
|
@@ -437,23 +552,146 @@
|
|
|
437
552
|
}
|
|
438
553
|
|
|
439
554
|
.cn-card-header {
|
|
440
|
-
@apply gap-2 rounded-t-xl px-4
|
|
555
|
+
@apply gap-2 items-start rounded-t-xl px-3 [.border-b]:pb-4 has-data-[slot=card-action]:gap-x-4 has-data-[slot=card-action]:gap-y-2;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.cn-card-header:has([data-slot='card-action']):not(:has([data-slot='card-description'])) {
|
|
559
|
+
@apply items-center py-1.5;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.cn-card-header:has([data-slot='card-action']):not(:has([data-slot='card-description']))
|
|
563
|
+
.cn-card-title {
|
|
564
|
+
@apply flex items-center;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.cn-card[data-size='xs']
|
|
568
|
+
.cn-card-header:has([data-slot='card-action']):not(:has([data-slot='card-description']))
|
|
569
|
+
.cn-card-title {
|
|
570
|
+
@apply min-h-6 leading-6;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.cn-card[data-size='sm']
|
|
574
|
+
.cn-card-header:has([data-slot='card-action']):not(:has([data-slot='card-description']))
|
|
575
|
+
.cn-card-title {
|
|
576
|
+
@apply min-h-7 leading-7;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.cn-card[data-size='md']
|
|
580
|
+
.cn-card-header:has([data-slot='card-action']):not(:has([data-slot='card-description']))
|
|
581
|
+
.cn-card-title {
|
|
582
|
+
@apply min-h-7 leading-7;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.cn-card[data-size='lg']
|
|
586
|
+
.cn-card-header:has([data-slot='card-action']):not(:has([data-slot='card-description']))
|
|
587
|
+
.cn-card-title {
|
|
588
|
+
@apply min-h-8 leading-8;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.cn-card[data-size='xl']
|
|
592
|
+
.cn-card-header:has([data-slot='card-action']):not(:has([data-slot='card-description']))
|
|
593
|
+
.cn-card-title {
|
|
594
|
+
@apply min-h-9 leading-9;
|
|
441
595
|
}
|
|
442
596
|
|
|
443
597
|
.cn-card-title {
|
|
444
598
|
@apply text-base font-medium;
|
|
445
599
|
}
|
|
446
600
|
|
|
601
|
+
.cn-card[data-size='xs'] .cn-card-title {
|
|
602
|
+
@apply text-xs leading-tight;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.cn-card[data-size='sm'] .cn-card-title {
|
|
606
|
+
@apply text-sm font-medium;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.cn-card[data-size='lg'] .cn-card-title {
|
|
610
|
+
@apply text-lg;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.cn-card[data-size='xl'] .cn-card-title {
|
|
614
|
+
@apply text-xl;
|
|
615
|
+
}
|
|
616
|
+
|
|
447
617
|
.cn-card-description {
|
|
448
618
|
@apply text-muted-foreground text-sm;
|
|
449
619
|
}
|
|
450
620
|
|
|
621
|
+
.cn-card[data-size='xs'] .cn-card-description {
|
|
622
|
+
@apply text-xs;
|
|
623
|
+
}
|
|
624
|
+
|
|
451
625
|
.cn-card-content {
|
|
452
|
-
@apply px-4
|
|
626
|
+
@apply px-4 py-4;
|
|
453
627
|
}
|
|
454
628
|
|
|
455
629
|
.cn-card-footer {
|
|
456
|
-
@apply rounded-b-xl px-
|
|
630
|
+
@apply rounded-b-xl px-3;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.cn-card:not([data-sectioned]) .cn-card-footer {
|
|
634
|
+
@apply pt-3;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.cn-card[data-sectioned][data-size='xs'] [data-slot='card-header'] {
|
|
638
|
+
@apply px-2.5 py-2 has-data-[slot=card-action]:gap-x-3 has-data-[slot=card-action]:gap-y-2;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.cn-card[data-sectioned][data-size='xs'] [data-slot='card-content'] {
|
|
642
|
+
@apply px-2.5 py-3;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.cn-card[data-sectioned][data-size='xs'] [data-slot='card-footer'] {
|
|
646
|
+
@apply px-2.5 py-2;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.cn-card[data-sectioned][data-size='sm'] [data-slot='card-header'] {
|
|
650
|
+
@apply px-2.5 py-2 has-data-[slot=card-action]:gap-x-3 has-data-[slot=card-action]:gap-y-2;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.cn-card[data-sectioned][data-size='sm'] [data-slot='card-content'] {
|
|
654
|
+
@apply px-2.5 py-3;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.cn-card[data-sectioned][data-size='sm'] [data-slot='card-footer'] {
|
|
658
|
+
@apply px-2.5 py-2;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.cn-card[data-sectioned][data-size='md'] [data-slot='card-header'] {
|
|
662
|
+
@apply px-3 py-2 has-data-[slot=card-action]:gap-x-4 has-data-[slot=card-action]:gap-y-2;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.cn-card[data-sectioned][data-size='md'] [data-slot='card-content'] {
|
|
666
|
+
@apply px-3 py-4;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.cn-card[data-sectioned][data-size='md'] [data-slot='card-footer'] {
|
|
670
|
+
@apply px-3 py-2;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.cn-card[data-sectioned][data-size='lg'] [data-slot='card-header'] {
|
|
674
|
+
@apply px-4 py-4 has-data-[slot=card-action]:gap-x-4 has-data-[slot=card-action]:gap-y-2;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.cn-card[data-sectioned][data-size='lg'] [data-slot='card-content'] {
|
|
678
|
+
@apply px-4 py-5;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.cn-card[data-sectioned][data-size='lg'] [data-slot='card-footer'] {
|
|
682
|
+
@apply px-4 py-4;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.cn-card[data-sectioned][data-size='xl'] [data-slot='card-header'] {
|
|
686
|
+
@apply px-5 py-5 has-data-[slot=card-action]:gap-x-4 has-data-[slot=card-action]:gap-y-2;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
.cn-card[data-sectioned][data-size='xl'] [data-slot='card-content'] {
|
|
690
|
+
@apply px-5 py-6;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.cn-card[data-sectioned][data-size='xl'] [data-slot='card-footer'] {
|
|
694
|
+
@apply px-5 py-5;
|
|
457
695
|
}
|
|
458
696
|
|
|
459
697
|
/* MARK: Carousel */
|
|
@@ -1,4 +1,111 @@
|
|
|
1
|
-
|
|
1
|
+
.style-mira {
|
|
2
|
+
/* MARK: Button */
|
|
3
|
+
.cn-button {
|
|
4
|
+
@apply 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 rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium focus-visible:ring-2 aria-invalid:ring-2 [&_svg:not([class*='size-'])]:size-4;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.cn-button-variant-default {
|
|
8
|
+
@apply bg-primary text-primary-foreground hover:bg-primary/80;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.cn-button-variant-outline {
|
|
12
|
+
@apply border-border dark:bg-input/30 hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.cn-button-variant-secondary {
|
|
16
|
+
@apply bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.cn-button-variant-ghost {
|
|
20
|
+
@apply hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.cn-button-variant-destructive {
|
|
24
|
+
@apply bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.cn-button-variant-link {
|
|
28
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.cn-button-variant-light {
|
|
32
|
+
@apply bg-primary/12 text-primary hover:bg-primary/18 dark:bg-primary/20 dark:hover:bg-primary/28;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.cn-button-variant-destructive-filled {
|
|
36
|
+
@apply bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.cn-dropdown-button-shell {
|
|
40
|
+
@apply inline-flex w-fit items-stretch isolate overflow-hidden align-middle;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.cn-dropdown-button-main {
|
|
44
|
+
@apply rounded-r-none! border-r-0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.cn-dropdown-button-trigger {
|
|
48
|
+
@apply relative -ml-px rounded-l-none! border-l-0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.cn-dropdown-button-trigger::before {
|
|
52
|
+
@apply bg-border/80 absolute top-1 bottom-1 left-0 w-px content-[''];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.cn-dropdown-button-trigger[data-size='xs']::before {
|
|
56
|
+
@apply top-0.5 bottom-0.5;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.cn-dropdown-button-trigger[data-size='sm']::before {
|
|
60
|
+
@apply top-0.5 bottom-0.5;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.cn-dropdown-button-variant-danger {
|
|
64
|
+
@apply bg-destructive text-destructive-foreground hover:bg-destructive/90;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.cn-button-size-xl {
|
|
68
|
+
@apply h-12 gap-2 px-7 has-data-[icon=inline-end]:pr-5 has-data-[icon=inline-start]:pl-5 text-lg;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.cn-button-size-icon-xl {
|
|
72
|
+
@apply size-12;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.cn-button-size-xs {
|
|
76
|
+
@apply h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.cn-button-size-sm {
|
|
80
|
+
@apply h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.cn-button-size-default {
|
|
84
|
+
@apply h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.cn-button-size-lg {
|
|
88
|
+
@apply h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.cn-button-size-icon-xs {
|
|
92
|
+
@apply size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.cn-button-size-icon-sm {
|
|
96
|
+
@apply size-6 [&_svg:not([class*='size-'])]:size-3;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.cn-button-size-icon {
|
|
100
|
+
@apply size-7 [&_svg:not([class*='size-'])]:size-3.5;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.cn-button-size-icon-lg {
|
|
104
|
+
@apply size-8 [&_svg:not([class*='size-'])]:size-4;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
|
|
2
109
|
|
|
3
110
|
.style-mira {
|
|
4
111
|
/* MARK: Accordion */
|
|
@@ -421,7 +528,15 @@
|
|
|
421
528
|
|
|
422
529
|
/* MARK: Card */
|
|
423
530
|
.cn-card {
|
|
424
|
-
@apply ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-lg
|
|
531
|
+
@apply ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-lg text-xs/relaxed ring-1 has-[>img:first-child]:pt-0 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.cn-card:not([data-sectioned]) {
|
|
535
|
+
@apply py-2;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.cn-card[data-sectioned] {
|
|
539
|
+
@apply gap-0 py-0;
|
|
425
540
|
}
|
|
426
541
|
|
|
427
542
|
.cn-card-with-border {
|
|
@@ -437,23 +552,151 @@
|
|
|
437
552
|
}
|
|
438
553
|
|
|
439
554
|
.cn-card-header {
|
|
440
|
-
@apply gap-1 rounded-t-lg px-
|
|
555
|
+
@apply gap-1 items-start rounded-t-lg px-3 [.border-b]:pb-4 has-data-[slot=card-action]:gap-x-4 has-data-[slot=card-action]:gap-y-1;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.cn-card-header:has([data-slot='card-action']):not(:has([data-slot='card-description'])) {
|
|
559
|
+
@apply items-center py-1.5;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.cn-card-header:has([data-slot='card-action']):not(:has([data-slot='card-description']))
|
|
563
|
+
.cn-card-title {
|
|
564
|
+
@apply flex items-center;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.cn-card[data-size='xs']
|
|
568
|
+
.cn-card-header:has([data-slot='card-action']):not(:has([data-slot='card-description']))
|
|
569
|
+
.cn-card-title {
|
|
570
|
+
@apply min-h-6 leading-6;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.cn-card[data-size='sm']
|
|
574
|
+
.cn-card-header:has([data-slot='card-action']):not(:has([data-slot='card-description']))
|
|
575
|
+
.cn-card-title {
|
|
576
|
+
@apply min-h-7 leading-7;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.cn-card[data-size='md']
|
|
580
|
+
.cn-card-header:has([data-slot='card-action']):not(:has([data-slot='card-description']))
|
|
581
|
+
.cn-card-title {
|
|
582
|
+
@apply min-h-7 leading-7;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.cn-card[data-size='lg']
|
|
586
|
+
.cn-card-header:has([data-slot='card-action']):not(:has([data-slot='card-description']))
|
|
587
|
+
.cn-card-title {
|
|
588
|
+
@apply min-h-8 leading-8;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.cn-card[data-size='xl']
|
|
592
|
+
.cn-card-header:has([data-slot='card-action']):not(:has([data-slot='card-description']))
|
|
593
|
+
.cn-card-title {
|
|
594
|
+
@apply min-h-9 leading-9;
|
|
441
595
|
}
|
|
442
596
|
|
|
443
597
|
.cn-card-title {
|
|
444
598
|
@apply text-sm font-medium;
|
|
445
599
|
}
|
|
446
600
|
|
|
601
|
+
.cn-card[data-size='xs'] .cn-card-title {
|
|
602
|
+
@apply text-xs leading-tight;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.cn-card[data-size='sm'] .cn-card-title {
|
|
606
|
+
@apply text-xs font-medium;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.cn-card[data-size='md'] .cn-card-title {
|
|
610
|
+
@apply text-sm;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.cn-card[data-size='lg'] .cn-card-title {
|
|
614
|
+
@apply text-base;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.cn-card[data-size='xl'] .cn-card-title {
|
|
618
|
+
@apply text-lg;
|
|
619
|
+
}
|
|
620
|
+
|
|
447
621
|
.cn-card-description {
|
|
448
622
|
@apply text-muted-foreground text-xs/relaxed;
|
|
449
623
|
}
|
|
450
624
|
|
|
625
|
+
.cn-card[data-size='lg'] .cn-card-description,
|
|
626
|
+
.cn-card[data-size='xl'] .cn-card-description {
|
|
627
|
+
@apply text-sm;
|
|
628
|
+
}
|
|
629
|
+
|
|
451
630
|
.cn-card-content {
|
|
452
|
-
@apply px-4
|
|
631
|
+
@apply px-4 py-4;
|
|
453
632
|
}
|
|
454
633
|
|
|
455
634
|
.cn-card-footer {
|
|
456
|
-
@apply rounded-b-lg px-
|
|
635
|
+
@apply rounded-b-lg px-3;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
.cn-card:not([data-sectioned]) .cn-card-footer {
|
|
639
|
+
@apply pt-3;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.cn-card[data-sectioned][data-size='xs'] [data-slot='card-header'] {
|
|
643
|
+
@apply px-2.5 py-2 has-data-[slot=card-action]:gap-x-3;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.cn-card[data-sectioned][data-size='xs'] [data-slot='card-content'] {
|
|
647
|
+
@apply px-2.5 py-3;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.cn-card[data-sectioned][data-size='xs'] [data-slot='card-footer'] {
|
|
651
|
+
@apply px-2.5 py-2;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.cn-card[data-sectioned][data-size='sm'] [data-slot='card-header'] {
|
|
655
|
+
@apply px-2.5 py-2 has-data-[slot=card-action]:gap-x-3;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.cn-card[data-sectioned][data-size='sm'] [data-slot='card-content'] {
|
|
659
|
+
@apply px-2.5 py-3;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.cn-card[data-sectioned][data-size='sm'] [data-slot='card-footer'] {
|
|
663
|
+
@apply px-2.5 py-2;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.cn-card[data-sectioned][data-size='md'] [data-slot='card-header'] {
|
|
667
|
+
@apply px-3 py-2 has-data-[slot=card-action]:gap-x-4;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.cn-card[data-sectioned][data-size='md'] [data-slot='card-content'] {
|
|
671
|
+
@apply px-3 py-4;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
.cn-card[data-sectioned][data-size='md'] [data-slot='card-footer'] {
|
|
675
|
+
@apply px-3 py-2;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
.cn-card[data-sectioned][data-size='lg'] [data-slot='card-header'] {
|
|
679
|
+
@apply px-4 py-4 has-data-[slot=card-action]:gap-x-4;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.cn-card[data-sectioned][data-size='lg'] [data-slot='card-content'] {
|
|
683
|
+
@apply px-4 py-5;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.cn-card[data-sectioned][data-size='lg'] [data-slot='card-footer'] {
|
|
687
|
+
@apply px-4 py-4;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.cn-card[data-sectioned][data-size='xl'] [data-slot='card-header'] {
|
|
691
|
+
@apply px-5 py-5 has-data-[slot=card-action]:gap-x-4;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
.cn-card[data-sectioned][data-size='xl'] [data-slot='card-content'] {
|
|
695
|
+
@apply px-5 py-6;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.cn-card[data-sectioned][data-size='xl'] [data-slot='card-footer'] {
|
|
699
|
+
@apply px-5 py-5;
|
|
457
700
|
}
|
|
458
701
|
|
|
459
702
|
/* MARK: Carousel */
|