@ziioapp/ui 0.1.0
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/LICENSE +22 -0
- package/README.md +47 -0
- package/THIRD_PARTY_NOTICES.md +3 -0
- package/dist/base.css +2 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +15 -0
- package/dist/lib/official-themes.d.ts +76 -0
- package/dist/lib/official-themes.js +102 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +5 -0
- package/dist/registry/registry.json +427 -0
- package/dist/registry/ziio-ui.json +421 -0
- package/dist/shadcn/components/accordion.d.ts +6 -0
- package/dist/shadcn/components/accordion.js +18 -0
- package/dist/shadcn/components/alert-dialog.d.ts +18 -0
- package/dist/shadcn/components/alert-dialog.js +44 -0
- package/dist/shadcn/components/alert.d.ts +10 -0
- package/dist/shadcn/components/alert.js +29 -0
- package/dist/shadcn/components/aspect-ratio.d.ts +4 -0
- package/dist/shadcn/components/aspect-ratio.js +9 -0
- package/dist/shadcn/components/attachment.d.ts +23 -0
- package/dist/shadcn/components/attachment.js +70 -0
- package/dist/shadcn/components/avatar.d.ts +11 -0
- package/dist/shadcn/components/avatar.js +25 -0
- package/dist/shadcn/components/badge.d.ts +7 -0
- package/dist/shadcn/components/badge.js +34 -0
- package/dist/shadcn/components/breadcrumb.d.ts +10 -0
- package/dist/shadcn/components/breadcrumb.js +38 -0
- package/dist/shadcn/components/bubble.d.ts +16 -0
- package/dist/shadcn/components/bubble.js +61 -0
- package/dist/shadcn/components/button-group.d.ts +10 -0
- package/dist/shadcn/components/button-group.js +37 -0
- package/dist/shadcn/components/button.d.ts +8 -0
- package/dist/shadcn/components/button.js +35 -0
- package/dist/shadcn/components/calendar.d.ts +10 -0
- package/dist/shadcn/components/calendar.js +77 -0
- package/dist/shadcn/components/card.d.ts +11 -0
- package/dist/shadcn/components/card.js +26 -0
- package/dist/shadcn/components/carousel.d.ts +28 -0
- package/dist/shadcn/components/carousel.js +92 -0
- package/dist/shadcn/components/chart.d.ts +44 -0
- package/dist/shadcn/components/chart.js +133 -0
- package/dist/shadcn/components/checkbox.d.ts +3 -0
- package/dist/shadcn/components/checkbox.js +10 -0
- package/dist/shadcn/components/collapsible.d.ts +5 -0
- package/dist/shadcn/components/collapsible.js +14 -0
- package/dist/shadcn/components/combobox.d.ts +24 -0
- package/dist/shadcn/components/combobox.js +59 -0
- package/dist/shadcn/components/command.d.ts +19 -0
- package/dist/shadcn/components/command.js +37 -0
- package/dist/shadcn/components/context-menu.d.ts +29 -0
- package/dist/shadcn/components/context-menu.js +53 -0
- package/dist/shadcn/components/dialog.d.ts +17 -0
- package/dist/shadcn/components/dialog.js +39 -0
- package/dist/shadcn/components/direction.d.ts +1 -0
- package/dist/shadcn/components/direction.js +3 -0
- package/dist/shadcn/components/drawer.d.ts +16 -0
- package/dist/shadcn/components/drawer.js +76 -0
- package/dist/shadcn/components/dropdown-menu.d.ts +29 -0
- package/dist/shadcn/components/dropdown-menu.js +53 -0
- package/dist/shadcn/components/empty.d.ts +11 -0
- package/dist/shadcn/components/empty.js +34 -0
- package/dist/shadcn/components/field.d.ts +24 -0
- package/dist/shadcn/components/field.js +69 -0
- package/dist/shadcn/components/hover-card.d.ts +5 -0
- package/dist/shadcn/components/hover-card.js +15 -0
- package/dist/shadcn/components/input-group.d.ts +18 -0
- package/dist/shadcn/components/input-group.js +59 -0
- package/dist/shadcn/components/input-otp.d.ts +11 -0
- package/dist/shadcn/components/input-otp.js +22 -0
- package/dist/shadcn/components/input.d.ts +3 -0
- package/dist/shadcn/components/input.js +9 -0
- package/dist/shadcn/components/item.d.ts +22 -0
- package/dist/shadcn/components/item.js +80 -0
- package/dist/shadcn/components/kbd.d.ts +3 -0
- package/dist/shadcn/components/kbd.js +10 -0
- package/dist/shadcn/components/label.d.ts +3 -0
- package/dist/shadcn/components/label.js +9 -0
- package/dist/shadcn/components/marker.d.ts +10 -0
- package/dist/shadcn/components/marker.js +36 -0
- package/dist/shadcn/components/menubar.d.ts +29 -0
- package/dist/shadcn/components/menubar.js +58 -0
- package/dist/shadcn/components/message-scroller.d.ts +10 -0
- package/dist/shadcn/components/message-scroller.js +27 -0
- package/dist/shadcn/components/message.d.ts +10 -0
- package/dist/shadcn/components/message.js +23 -0
- package/dist/shadcn/components/native-select.d.ts +8 -0
- package/dist/shadcn/components/native-select.js +15 -0
- package/dist/shadcn/components/navigation-menu.d.ts +11 -0
- package/dist/shadcn/components/navigation-menu.js +32 -0
- package/dist/shadcn/components/pagination.d.ts +17 -0
- package/dist/shadcn/components/pagination.js +28 -0
- package/dist/shadcn/components/popover.d.ts +9 -0
- package/dist/shadcn/components/popover.js +25 -0
- package/dist/shadcn/components/progress.d.ts +7 -0
- package/dist/shadcn/components/progress.js +21 -0
- package/dist/shadcn/components/questionnaire.d.ts +19 -0
- package/dist/shadcn/components/questionnaire.js +54 -0
- package/dist/shadcn/components/radio-group.d.ts +5 -0
- package/dist/shadcn/components/radio-group.js +13 -0
- package/dist/shadcn/components/resizable.d.ts +7 -0
- package/dist/shadcn/components/resizable.js +15 -0
- package/dist/shadcn/components/scroll-area.d.ts +4 -0
- package/dist/shadcn/components/scroll-area.js +12 -0
- package/dist/shadcn/components/select.d.ts +15 -0
- package/dist/shadcn/components/select.js +36 -0
- package/dist/shadcn/components/separator.d.ts +3 -0
- package/dist/shadcn/components/separator.js +9 -0
- package/dist/shadcn/components/sheet.d.ts +14 -0
- package/dist/shadcn/components/sheet.js +39 -0
- package/dist/shadcn/components/sidebar.d.ts +63 -0
- package/dist/shadcn/components/sidebar.js +257 -0
- package/dist/shadcn/components/skeleton.d.ts +2 -0
- package/dist/shadcn/components/skeleton.js +7 -0
- package/dist/shadcn/components/slider.d.ts +3 -0
- package/dist/shadcn/components/slider.js +13 -0
- package/dist/shadcn/components/sonner.d.ts +3 -0
- package/dist/shadcn/components/sonner.js +26 -0
- package/dist/shadcn/components/spinner.d.ts +2 -0
- package/dist/shadcn/components/spinner.js +8 -0
- package/dist/shadcn/components/switch.d.ts +5 -0
- package/dist/shadcn/components/switch.js +9 -0
- package/dist/shadcn/components/table.d.ts +10 -0
- package/dist/shadcn/components/table.js +30 -0
- package/dist/shadcn/components/tabs.d.ts +10 -0
- package/dist/shadcn/components/tabs.js +30 -0
- package/dist/shadcn/components/textarea.d.ts +3 -0
- package/dist/shadcn/components/textarea.js +8 -0
- package/dist/shadcn/components/toast.d.ts +15 -0
- package/dist/shadcn/components/toast.js +68 -0
- package/dist/shadcn/components/toggle-group.d.ts +10 -0
- package/dist/shadcn/components/toggle-group.js +26 -0
- package/dist/shadcn/components/toggle.d.ts +8 -0
- package/dist/shadcn/components/toggle.js +27 -0
- package/dist/shadcn/components/tooltip.d.ts +6 -0
- package/dist/shadcn/components/tooltip.js +18 -0
- package/dist/shadcn/hooks/use-mobile.d.ts +1 -0
- package/dist/shadcn/hooks/use-mobile.js +16 -0
- package/dist/size-report.json +80 -0
- package/dist/styles/app-loading.css +40 -0
- package/dist/styles/bases/base-mauve.css +71 -0
- package/dist/styles/bases/base-mist.css +71 -0
- package/dist/styles/bases/base-neutral.css +71 -0
- package/dist/styles/bases/base-olive.css +71 -0
- package/dist/styles/bases/base-stone.css +71 -0
- package/dist/styles/bases/base-taupe.css +71 -0
- package/dist/styles/bases/base-zinc.css +71 -0
- package/dist/styles/chart.css +18 -0
- package/dist/styles/charts/chart-amber.css +18 -0
- package/dist/styles/charts/chart-blue.css +18 -0
- package/dist/styles/charts/chart-rose.css +18 -0
- package/dist/styles/charts/chart-teal.css +18 -0
- package/dist/styles/compiled/luma.css +2 -0
- package/dist/styles/compiled/lyra.css +2 -0
- package/dist/styles/compiled/maia.css +2 -0
- package/dist/styles/compiled/mira.css +2 -0
- package/dist/styles/compiled/nova.css +2 -0
- package/dist/styles/compiled/rhea.css +2 -0
- package/dist/styles/compiled/sera.css +2 -0
- package/dist/styles/compiled/vega.css +2 -0
- package/dist/styles/index.css +52 -0
- package/dist/styles/official/bases/base-mauve.css +67 -0
- package/dist/styles/official/bases/base-mist.css +67 -0
- package/dist/styles/official/bases/base-neutral.css +67 -0
- package/dist/styles/official/bases/base-olive.css +67 -0
- package/dist/styles/official/bases/base-stone.css +67 -0
- package/dist/styles/official/bases/base-taupe.css +67 -0
- package/dist/styles/official/bases/base-zinc.css +67 -0
- package/dist/styles/official/charts/chart-amber.css +14 -0
- package/dist/styles/official/charts/chart-blue.css +14 -0
- package/dist/styles/official/charts/chart-cyan.css +14 -0
- package/dist/styles/official/charts/chart-emerald.css +14 -0
- package/dist/styles/official/charts/chart-fuchsia.css +14 -0
- package/dist/styles/official/charts/chart-green.css +14 -0
- package/dist/styles/official/charts/chart-indigo.css +14 -0
- package/dist/styles/official/charts/chart-lime.css +14 -0
- package/dist/styles/official/charts/chart-mauve.css +14 -0
- package/dist/styles/official/charts/chart-mist.css +14 -0
- package/dist/styles/official/charts/chart-neutral.css +14 -0
- package/dist/styles/official/charts/chart-olive.css +14 -0
- package/dist/styles/official/charts/chart-orange.css +14 -0
- package/dist/styles/official/charts/chart-pink.css +14 -0
- package/dist/styles/official/charts/chart-purple.css +14 -0
- package/dist/styles/official/charts/chart-red.css +14 -0
- package/dist/styles/official/charts/chart-rose.css +14 -0
- package/dist/styles/official/charts/chart-sky.css +14 -0
- package/dist/styles/official/charts/chart-stone.css +14 -0
- package/dist/styles/official/charts/chart-taupe.css +14 -0
- package/dist/styles/official/charts/chart-teal.css +14 -0
- package/dist/styles/official/charts/chart-violet.css +14 -0
- package/dist/styles/official/charts/chart-yellow.css +14 -0
- package/dist/styles/official/charts/chart-zinc.css +14 -0
- package/dist/styles/official/themes/theme-amber.css +26 -0
- package/dist/styles/official/themes/theme-blue.css +26 -0
- package/dist/styles/official/themes/theme-cyan.css +26 -0
- package/dist/styles/official/themes/theme-emerald.css +26 -0
- package/dist/styles/official/themes/theme-fuchsia.css +26 -0
- package/dist/styles/official/themes/theme-green.css +26 -0
- package/dist/styles/official/themes/theme-indigo.css +26 -0
- package/dist/styles/official/themes/theme-lime.css +26 -0
- package/dist/styles/official/themes/theme-mauve.css +67 -0
- package/dist/styles/official/themes/theme-mist.css +67 -0
- package/dist/styles/official/themes/theme-neutral.css +67 -0
- package/dist/styles/official/themes/theme-olive.css +67 -0
- package/dist/styles/official/themes/theme-orange.css +26 -0
- package/dist/styles/official/themes/theme-pink.css +26 -0
- package/dist/styles/official/themes/theme-purple.css +26 -0
- package/dist/styles/official/themes/theme-red.css +26 -0
- package/dist/styles/official/themes/theme-rose.css +27 -0
- package/dist/styles/official/themes/theme-sky.css +26 -0
- package/dist/styles/official/themes/theme-stone.css +67 -0
- package/dist/styles/official/themes/theme-taupe.css +67 -0
- package/dist/styles/official/themes/theme-teal.css +26 -0
- package/dist/styles/official/themes/theme-violet.css +26 -0
- package/dist/styles/official/themes/theme-yellow.css +26 -0
- package/dist/styles/official/themes/theme-zinc.css +67 -0
- package/dist/styles/runtime.css +6 -0
- package/dist/styles/shadcn-utilities.css +629 -0
- package/dist/styles/shadcn.css +169 -0
- package/dist/styles/source.css +1 -0
- package/dist/styles/styles/all.css +8 -0
- package/dist/styles/styles/style-luma.css +1744 -0
- package/dist/styles/styles/style-lyra.css +1723 -0
- package/dist/styles/styles/style-maia.css +1745 -0
- package/dist/styles/styles/style-mira.css +1750 -0
- package/dist/styles/styles/style-nova.css +1748 -0
- package/dist/styles/styles/style-rhea.css +1744 -0
- package/dist/styles/styles/style-sera.css +1735 -0
- package/dist/styles/styles/style-vega.css +1748 -0
- package/dist/styles/theme-base.css +102 -0
- package/dist/styles/themes/theme-atmosphere-coffee.css +72 -0
- package/dist/styles/themes/theme-atmosphere-halloween.css +72 -0
- package/dist/styles/themes/theme-atmosphere-literary.css +72 -0
- package/dist/styles/themes/theme-atmosphere-sakura.css +72 -0
- package/dist/styles/themes/theme-blue.css +20 -0
- package/dist/styles/themes/theme-indigo.css +20 -0
- package/dist/styles/themes/theme-morandi-dust.css +72 -0
- package/dist/styles/themes/theme-morandi-fog.css +72 -0
- package/dist/styles/themes/theme-morandi-sage.css +72 -0
- package/dist/styles/themes/theme-rose.css +20 -0
- package/dist/styles.css +2 -0
- package/package.json +108 -0
- package/upstream/components.json +870 -0
- package/upstream/lock.json +101 -0
|
@@ -0,0 +1,1744 @@
|
|
|
1
|
+
.style-rhea {
|
|
2
|
+
/* MARK: Slider */
|
|
3
|
+
.cn-slider {
|
|
4
|
+
@apply data-vertical:min-h-40;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.cn-slider-track {
|
|
8
|
+
@apply bg-input/90 rounded-2xl data-horizontal:h-1 data-horizontal:w-full data-vertical:h-full data-vertical:w-1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.cn-slider-range {
|
|
12
|
+
@apply bg-primary;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.cn-slider-thumb {
|
|
16
|
+
@apply ring-black/10 not-dark:bg-clip-padding ring-1 size-4 rounded-2xl bg-white shadow-md transition-[color,box-shadow] duration-200 hover:ring-4 hover:ring-ring/30 focus-visible:ring-4 focus-visible:ring-ring/30 focus-visible:outline-hidden;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* MARK: Switch */
|
|
20
|
+
.cn-switch {
|
|
21
|
+
@apply data-checked:bg-primary data-unchecked:bg-input/90 data-checked:border-primary border-2 data-unchecked: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 shrink-0 rounded-2xl focus-visible:ring-3 aria-invalid:ring-3 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:data-unchecked:border-transparent group-has-[:focus-visible]/field-label:data-checked:border-primary data-[size=default]:h-5 data-[size=default]:w-8 data-[size=sm]:h-4 data-[size=sm]:w-6;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.cn-switch-aria {
|
|
25
|
+
@apply data-selected:bg-primary not-data-selected:bg-input/90 data-selected:border-primary not-data-selected:border-transparent data-focus-visible:border-ring data-focus-visible:ring-ring/30 data-focus-visible:ring-3 data-invalid:ring-destructive/20 dark:data-invalid:ring-destructive/40 data-invalid:border-destructive dark:data-invalid:border-destructive/50 data-invalid:ring-3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.cn-switch-thumb {
|
|
29
|
+
@apply bg-background dark:data-unchecked:bg-foreground dark:data-checked:bg-primary-foreground rounded-2xl shadow-sm group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-checked:translate-x-[calc(100%-4px)] data-unchecked:translate-x-0 not-dark:bg-clip-padding;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.cn-switch-thumb-aria {
|
|
33
|
+
@apply dark:not-data-selected:bg-foreground dark:data-selected:bg-primary-foreground data-selected:translate-x-[calc(100%-4px)] not-data-selected:translate-x-0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* MARK: Radio */
|
|
37
|
+
.cn-radio-group {
|
|
38
|
+
@apply grid gap-3;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.cn-radio-group-item {
|
|
42
|
+
@apply bg-input/90 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary border-transparent aria-invalid:border-destructive focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 dark:aria-invalid:border-destructive/50 flex size-4 rounded-2xl border focus-visible:ring-3 aria-invalid:ring-3 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:border-transparent;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.cn-radio-group-item-aria {
|
|
46
|
+
@apply data-selected:bg-primary data-selected:text-primary-foreground dark:data-selected:bg-primary data-focus-visible:border-ring data-focus-visible:ring-ring/30 data-focus-visible:ring-3 data-invalid:border-destructive data-invalid:ring-destructive/20 dark:data-invalid:ring-destructive/40 dark:data-invalid:border-destructive/50 data-invalid:ring-3;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.cn-radio-group-indicator {
|
|
50
|
+
@apply flex size-4 items-center justify-center;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.cn-radio-group-indicator-icon {
|
|
54
|
+
@apply bg-primary-foreground absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full dark:size-2.5;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* MARK: Checkbox */
|
|
58
|
+
.cn-checkbox {
|
|
59
|
+
@apply bg-input/90 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary border-transparent aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[5px] border transition-shadow group-has-disabled/field:opacity-50 focus-visible:ring-3 aria-invalid:ring-3 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-transparent group-has-[:focus-visible]/field-label:data-checked:border-primary;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.cn-checkbox-aria {
|
|
63
|
+
@apply data-selected:bg-primary data-selected:text-primary-foreground dark:data-selected:bg-primary data-selected:border-primary data-focus-visible:border-ring data-focus-visible:ring-ring/30 data-focus-visible:ring-3 data-invalid:data-selected:border-primary data-invalid:border-destructive dark:data-invalid:border-destructive/50 data-invalid:ring-destructive/20 dark:data-invalid:ring-destructive/40 data-invalid:ring-3;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.cn-checkbox-indicator {
|
|
67
|
+
@apply [&>svg]:size-3.5;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* MARK: Button */
|
|
71
|
+
.cn-button {
|
|
72
|
+
@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-2xl border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 aria-invalid:ring-3 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*='size-'])]:size-4;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.cn-button-variant-default {
|
|
76
|
+
@apply bg-primary text-primary-foreground hover:bg-primary/80;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.cn-button-variant-outline {
|
|
80
|
+
@apply border-border bg-background dark:bg-transparent hover:bg-muted hover:text-foreground dark:hover:bg-input/30 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.cn-button-variant-secondary {
|
|
84
|
+
@apply bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.cn-button-variant-ghost {
|
|
88
|
+
@apply hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.cn-button-variant-destructive {
|
|
92
|
+
@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;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.cn-button-variant-link {
|
|
96
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.cn-button-size-xs {
|
|
100
|
+
@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;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.cn-button-size-sm {
|
|
104
|
+
@apply h-7 gap-1 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.cn-button-size-default {
|
|
108
|
+
@apply h-8 gap-1.5 px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.cn-button-size-lg {
|
|
112
|
+
@apply h-9 gap-1.5 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.cn-button-size-icon-xs {
|
|
116
|
+
@apply size-6 [&_svg:not([class*='size-'])]:size-3;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.cn-button-size-icon-sm {
|
|
120
|
+
@apply size-7;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.cn-button-size-icon {
|
|
124
|
+
@apply size-8;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.cn-button-size-icon-lg {
|
|
128
|
+
@apply size-9;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* MARK: Button Group */
|
|
132
|
+
.cn-button-group {
|
|
133
|
+
@apply has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-2xl has-[>[data-variant=outline]]:[&>input]:border-border has-[>[data-variant=outline]]:[&>input:focus-visible]:border-ring has-[>[data-variant=outline]]:*:data-[slot=input-group]:border-border has-[>[data-variant=outline]]:[&>[data-slot=input-group]:has(:focus-visible)]:border-ring has-[>[data-variant=outline]]:*:data-[slot=select-trigger]:border-border has-[>[data-variant=outline]]:[&>[data-slot=select-trigger]:focus-visible]:border-ring;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.cn-button-group-orientation-horizontal {
|
|
137
|
+
@apply [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-2xl!;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.cn-button-group-orientation-vertical {
|
|
141
|
+
@apply [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-2xl!;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.cn-button-group-text {
|
|
145
|
+
@apply bg-muted gap-2 rounded-2xl border px-2.5 text-sm font-medium [&_svg:not([class*='size-'])]:size-4;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.cn-button-group-separator {
|
|
149
|
+
@apply bg-input;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* MARK: Input */
|
|
153
|
+
.cn-input {
|
|
154
|
+
@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 rounded-2xl border px-2.5 py-1 text-base transition-[color,box-shadow] duration-200 file:h-6 file:text-sm file:font-medium focus-visible:ring-3 aria-invalid:ring-3 md:text-sm;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* MARK: Textarea */
|
|
158
|
+
.cn-textarea {
|
|
159
|
+
@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 resize-none rounded-2xl border px-2.5 py-2 text-base transition-[color,box-shadow] duration-200 focus-visible:ring-3 aria-invalid:ring-3 md:text-sm;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* MARK: Select */
|
|
163
|
+
.cn-select-trigger {
|
|
164
|
+
@apply bg-input/50 border-transparent data-placeholder:text-muted-foreground 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 gap-1.5 rounded-2xl border py-2 px-3 text-sm transition-[color,box-shadow] duration-200 focus-visible:ring-3 aria-invalid:ring-3 data-[size=default]:h-8 data-[size=sm]:h-7 *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-4;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.cn-select-value {
|
|
168
|
+
@apply flex flex-1 text-left;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.cn-select-value-aria {
|
|
172
|
+
@apply data-placeholder:text-muted-foreground;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.cn-select-trigger-icon {
|
|
176
|
+
@apply text-muted-foreground size-4;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.cn-select-content {
|
|
180
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 min-w-36 rounded-2xl shadow-lg ring-1 duration-100;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.cn-select-content-logical {
|
|
184
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.cn-select-label {
|
|
188
|
+
@apply text-muted-foreground px-2 py-1 text-xs;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.cn-select-item {
|
|
192
|
+
@apply focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 min-h-7 rounded-xl py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.cn-select-item-aria {
|
|
196
|
+
@apply data-focused:bg-accent data-focused:text-accent-foreground;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.cn-select-item-indicator {
|
|
200
|
+
@apply pointer-events-none absolute right-2 flex size-4 items-center justify-center;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.cn-select-group {
|
|
204
|
+
@apply scroll-my-1.5 p-1;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.cn-select-item-text {
|
|
208
|
+
@apply flex flex-1 gap-2;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.cn-select-separator {
|
|
212
|
+
@apply bg-border -mx-1 my-1 h-px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.cn-select-scroll-up-button {
|
|
216
|
+
@apply bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.cn-select-scroll-down-button {
|
|
220
|
+
@apply bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.cn-select-empty-aria {
|
|
224
|
+
@apply text-muted-foreground hidden w-full justify-center py-2 text-center text-sm group-data-empty/select-list:flex;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* MARK: Native Select */
|
|
228
|
+
.cn-native-select {
|
|
229
|
+
@apply bg-input/50 border-transparent placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground 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 w-full min-w-0 appearance-none rounded-2xl border py-1 pr-8 pl-2.5 text-sm transition-[color,box-shadow] duration-200 select-none focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-7;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.cn-native-select-icon {
|
|
233
|
+
@apply text-muted-foreground top-1/2 right-2.5 size-4 -translate-y-1/2;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/* MARK: Combobox */
|
|
237
|
+
.cn-combobox-content {
|
|
238
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 *:data-[slot=input-group]:bg-input/50 *:data-[slot=input-group]:border-input/30 max-h-72 min-w-36 overflow-hidden rounded-2xl shadow-lg ring-1 duration-100 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:shadow-none;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.cn-combobox-content-logical {
|
|
242
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.cn-combobox-label {
|
|
246
|
+
@apply text-muted-foreground px-2 py-1.5 text-xs;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.cn-combobox-item {
|
|
250
|
+
@apply data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground gap-2 min-h-7 rounded-xl py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.cn-combobox-item-aria {
|
|
254
|
+
@apply data-focused:bg-accent data-focused:text-accent-foreground not-data-[variant=destructive]:data-focused:**:text-accent-foreground;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.cn-combobox-item-indicator {
|
|
258
|
+
@apply pointer-events-none absolute right-2 flex size-4 items-center justify-center;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.cn-combobox-empty {
|
|
262
|
+
@apply text-muted-foreground hidden w-full justify-center py-2 text-center text-sm group-data-empty/combobox-content:flex;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.cn-combobox-list {
|
|
266
|
+
@apply no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto p-1 data-empty:p-0;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.cn-combobox-item-text {
|
|
270
|
+
@apply flex flex-1 gap-2;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.cn-combobox-separator {
|
|
274
|
+
@apply bg-border -mx-1 my-1 h-px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.cn-combobox-trigger {
|
|
278
|
+
@apply [&_svg:not([class*='size-'])]:size-4;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.cn-combobox-trigger-icon {
|
|
282
|
+
@apply text-muted-foreground size-4;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.cn-combobox-chips {
|
|
286
|
+
@apply bg-input/50 border-transparent focus-within:border-ring focus-within:ring-ring/30 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive dark:has-aria-invalid:border-destructive/50 flex min-h-8 flex-wrap items-center gap-1 rounded-2xl border bg-clip-padding px-2.5 py-1 text-sm transition-[color,box-shadow] duration-200 focus-within:ring-3 has-aria-invalid:ring-3 has-data-[slot=combobox-chip]:px-1;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.cn-combobox-chip {
|
|
290
|
+
@apply bg-input text-foreground flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-2xl px-1.5 text-xs font-medium whitespace-nowrap has-data-[slot=combobox-chip-remove]:pr-0.5 dark:bg-input/60;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.cn-combobox-chip-remove {
|
|
294
|
+
@apply -ml-0.5 opacity-50 hover:opacity-100 size-4.5 aria-disabled:pointer-events-none;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* MARK: Input Group */
|
|
298
|
+
.cn-input-group {
|
|
299
|
+
@apply bg-input/50 border-transparent has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/30 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-8 rounded-2xl border transition-[color,box-shadow] duration-200 in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-3 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.cn-input-group-addon {
|
|
303
|
+
@apply text-muted-foreground **:data-[slot=kbd]:bg-muted-foreground/10 h-auto gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 **:data-[slot=kbd]:rounded-2xl **:data-[slot=kbd]:px-1.5 [&>svg:not([class*='size-'])]:size-4;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.cn-input-group-addon-align-inline-start {
|
|
307
|
+
@apply pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem];
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.cn-input-group-addon-align-inline-end {
|
|
311
|
+
@apply pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem];
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.cn-input-group-addon-align-block-start {
|
|
315
|
+
@apply px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.cn-input-group-addon-align-block-end {
|
|
319
|
+
@apply px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.cn-input-group-button {
|
|
323
|
+
@apply gap-2 rounded-2xl text-sm;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.cn-input-group-button-size-xs {
|
|
327
|
+
@apply h-6 gap-1 rounded-xl px-1.5 [&>svg:not([class*='size-'])]:size-3.5;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.cn-input-group-button-size-icon-xs {
|
|
331
|
+
@apply size-6 rounded-xl p-0 has-[>svg]:p-0;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.cn-input-group-button-size-icon-sm {
|
|
335
|
+
@apply size-8 p-0 has-[>svg]:p-0;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.cn-input-group-text {
|
|
339
|
+
@apply text-muted-foreground gap-2 text-sm [&_svg:not([class*='size-'])]:size-4;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.cn-input-group-input {
|
|
343
|
+
@apply rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.cn-input-group-textarea {
|
|
347
|
+
@apply rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/* MARK: Input OTP */
|
|
351
|
+
.cn-input-otp {
|
|
352
|
+
@apply gap-2;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.cn-input-otp-group {
|
|
356
|
+
@apply has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive rounded-2xl has-aria-invalid:ring-3;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.cn-input-otp-slot {
|
|
360
|
+
@apply bg-input/50 border-input data-[active=true]:border-ring data-[active=true]:ring-ring/30 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-8 border-y border-r text-sm transition-[color,box-shadow] duration-200 outline-none first:rounded-l-2xl first:border-l last:rounded-r-2xl data-[active=true]:ring-3;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.cn-input-otp-caret-line {
|
|
364
|
+
@apply animate-caret-blink bg-foreground h-4 w-px duration-1000;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.cn-input-otp-separator {
|
|
368
|
+
@apply [&_svg:not([class*='size-'])]:size-4;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/* MARK: Field */
|
|
372
|
+
.cn-field-set {
|
|
373
|
+
@apply gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.cn-field-legend {
|
|
377
|
+
@apply mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.cn-field-group {
|
|
381
|
+
@apply gap-6 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.cn-field {
|
|
385
|
+
@apply data-[invalid=true]:text-destructive gap-3;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.cn-field-content {
|
|
389
|
+
@apply gap-1;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.cn-field-label {
|
|
393
|
+
@apply has-data-checked:bg-input/30 gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-2xl has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-input/40 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 *:data-[slot=field]:p-4;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.cn-field-label-aria {
|
|
397
|
+
@apply has-data-selected:bg-input/30;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.cn-field-title {
|
|
401
|
+
@apply gap-2 leading-snug text-sm font-medium group-data-[disabled=true]/field:opacity-50;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.cn-field-description {
|
|
405
|
+
@apply text-muted-foreground text-left text-sm [[data-variant=legend]+&]:-mt-1.5;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.cn-field-separator {
|
|
409
|
+
@apply -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.cn-field-separator-content {
|
|
413
|
+
@apply text-muted-foreground px-2;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.cn-field-error {
|
|
417
|
+
@apply text-destructive text-sm;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/* MARK: Tabs */
|
|
421
|
+
.cn-tabs {
|
|
422
|
+
@apply gap-2;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.cn-tabs-list {
|
|
426
|
+
@apply rounded-2xl p-[3px] group-data-horizontal/tabs:h-8 data-[variant=line]:rounded-none group-data-vertical/tabs:p-1;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.cn-tabs-trigger {
|
|
430
|
+
@apply gap-1.5 rounded-2xl border border-transparent! px-1.5 py-0.5 text-sm font-medium group-data-vertical/tabs:px-3 group-data-vertical/tabs:py-0.5 [&_svg:not([class*='size-'])]:size-4;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.cn-tabs-content {
|
|
434
|
+
@apply text-sm;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/* MARK: Card */
|
|
438
|
+
.cn-card {
|
|
439
|
+
@apply bg-card text-card-foreground ring-foreground/5 dark:ring-foreground/10 gap-(--card-spacing) overflow-hidden rounded-[min(var(--radius-4xl),24px)] py-(--card-spacing) text-sm shadow-sm ring-1 [--card-spacing:--spacing(5)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-[min(var(--radius-4xl),24px)] *:[img:last-child]:rounded-b-[min(var(--radius-4xl),24px)];
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.cn-card-header {
|
|
443
|
+
@apply gap-1.5 rounded-t-[min(var(--radius-4xl),24px)] px-(--card-spacing) [.border-b]:pb-(--card-spacing);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.cn-card-title {
|
|
447
|
+
@apply text-base font-medium;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.cn-card-description {
|
|
451
|
+
@apply text-muted-foreground text-sm;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.cn-card-content {
|
|
455
|
+
@apply px-(--card-spacing);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.cn-card-footer {
|
|
459
|
+
@apply rounded-b-[min(var(--radius-4xl),24px)] px-(--card-spacing) [.border-t]:pt-(--card-spacing);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/* MARK: Accordion */
|
|
463
|
+
.cn-accordion {
|
|
464
|
+
@apply overflow-hidden rounded-2xl border;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.cn-accordion-item {
|
|
468
|
+
@apply data-open:bg-muted/50 not-last:border-b;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.cn-accordion-trigger {
|
|
472
|
+
@apply **:data-[slot=accordion-trigger-icon]:text-muted-foreground gap-6 p-4 text-left text-sm font-medium hover:underline **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.cn-accordion-content {
|
|
476
|
+
@apply data-open:animate-accordion-down data-closed:animate-accordion-up px-4 text-sm;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.cn-accordion-content-inner {
|
|
480
|
+
@apply pt-0 pb-4;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/* MARK: Alert Dialog */
|
|
484
|
+
.cn-alert-dialog-overlay {
|
|
485
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/30 duration-100 supports-backdrop-filter:backdrop-blur-sm;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.cn-alert-dialog-content {
|
|
489
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 gap-6 rounded-[min(var(--radius-4xl),24px)] p-6 shadow-xl ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-md;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.cn-alert-dialog-header {
|
|
493
|
+
@apply grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr];
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.cn-alert-dialog-media {
|
|
497
|
+
@apply bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-full sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.cn-alert-dialog-title {
|
|
501
|
+
@apply text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.cn-alert-dialog-description {
|
|
505
|
+
@apply text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/* MARK: Alert */
|
|
509
|
+
.cn-alert {
|
|
510
|
+
@apply grid gap-0.5 rounded-2xl border px-4 py-3 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.cn-alert-variant-default {
|
|
514
|
+
@apply bg-card text-card-foreground;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.cn-alert-variant-destructive {
|
|
518
|
+
@apply text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.cn-alert-title {
|
|
522
|
+
@apply font-medium group-has-[>svg]/alert:col-start-2;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.cn-alert-description {
|
|
526
|
+
@apply text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.cn-alert-action {
|
|
530
|
+
@apply absolute top-2.5 right-3;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/* MARK: Avatar */
|
|
534
|
+
.cn-avatar {
|
|
535
|
+
@apply size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.cn-avatar-fallback {
|
|
539
|
+
@apply bg-muted text-muted-foreground rounded-full;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.cn-avatar-image {
|
|
543
|
+
@apply rounded-full;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.cn-avatar-badge {
|
|
547
|
+
@apply bg-primary text-primary-foreground ring-background;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.cn-avatar-group-count {
|
|
551
|
+
@apply bg-muted text-muted-foreground size-8 rounded-full text-sm group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/* MARK: Badge */
|
|
555
|
+
.cn-badge {
|
|
556
|
+
@apply h-5 gap-1 rounded-2xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3!;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.cn-badge-variant-default {
|
|
560
|
+
@apply bg-primary text-primary-foreground [a]:hover:bg-primary/80;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.cn-badge-variant-secondary {
|
|
564
|
+
@apply bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.cn-badge-variant-outline {
|
|
568
|
+
@apply border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.cn-badge-variant-destructive {
|
|
572
|
+
@apply bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.cn-badge-variant-ghost {
|
|
576
|
+
@apply hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.cn-badge-variant-link {
|
|
580
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/* MARK: Breadcrumb */
|
|
584
|
+
.cn-breadcrumb-list {
|
|
585
|
+
@apply text-muted-foreground gap-1.5 text-sm sm:gap-2.5;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.cn-breadcrumb-item {
|
|
589
|
+
@apply gap-1.5;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.cn-breadcrumb-link {
|
|
593
|
+
@apply hover:text-foreground transition-colors;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.cn-breadcrumb-page {
|
|
597
|
+
@apply text-foreground font-normal;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.cn-breadcrumb-separator {
|
|
601
|
+
@apply [&>svg]:size-3.5;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.cn-breadcrumb-ellipsis {
|
|
605
|
+
@apply size-5 [&>svg]:size-4;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
/* MARK: Command */
|
|
609
|
+
.cn-command {
|
|
610
|
+
@apply bg-popover text-popover-foreground rounded-3xl p-1;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.cn-command-dialog {
|
|
614
|
+
@apply rounded-3xl! p-0;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.cn-command-input-wrapper {
|
|
618
|
+
@apply p-1 pb-0;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.cn-command-input-group {
|
|
622
|
+
@apply bg-input/50 h-8!;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.cn-command-input-icon {
|
|
626
|
+
@apply size-4 shrink-0 opacity-50;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.cn-command-input {
|
|
630
|
+
@apply w-full text-sm;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.cn-command-list {
|
|
634
|
+
@apply no-scrollbar max-h-72 scroll-py-1 outline-none;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.cn-command-empty {
|
|
638
|
+
@apply py-6 text-center text-sm;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.cn-command-group {
|
|
642
|
+
@apply text-foreground **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.cn-command-separator {
|
|
646
|
+
@apply bg-border/50 my-1 h-px;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.cn-command-item {
|
|
650
|
+
@apply data-selected:bg-muted data-selected:text-foreground data-selected:*:[svg]:text-foreground relative flex cursor-default items-center gap-2 min-h-7 rounded-xl px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-2xl [&_svg:not([class*='size-'])]:size-4;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.cn-command-item-aria {
|
|
654
|
+
@apply data-focused:bg-muted data-focused:text-foreground data-focused:*:[svg]:text-foreground;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.cn-command-shortcut {
|
|
658
|
+
@apply text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-xs tracking-widest;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.cn-command-shortcut-aria {
|
|
662
|
+
@apply group-data-focused/command-item:text-foreground;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/* MARK: Context Menu */
|
|
666
|
+
.cn-context-menu-content {
|
|
667
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 bg-popover text-popover-foreground min-w-36 rounded-2xl p-1 shadow-lg ring-1 duration-100;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.cn-context-menu-content-logical {
|
|
671
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
.cn-context-menu-item {
|
|
675
|
+
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive focus:*:[svg]:text-accent-foreground gap-2 min-h-7 rounded-xl px-2 py-1.5 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
.cn-context-menu-checkbox-item {
|
|
679
|
+
@apply focus:bg-accent focus:text-accent-foreground gap-2 min-h-7 rounded-xl py-1.5 pr-8 pl-2 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.cn-context-menu-radio-item {
|
|
683
|
+
@apply focus:bg-accent focus:text-accent-foreground gap-2 min-h-7 rounded-xl py-1.5 pr-8 pl-2 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.cn-context-menu-item-indicator {
|
|
687
|
+
@apply absolute right-2;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.cn-context-menu-label {
|
|
691
|
+
@apply text-muted-foreground px-2 py-1 text-xs data-inset:pl-7;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
.cn-context-menu-separator {
|
|
695
|
+
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.cn-context-menu-shortcut {
|
|
699
|
+
@apply text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-xs tracking-widest;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.cn-context-menu-sub-trigger {
|
|
703
|
+
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground min-h-7 rounded-xl px-2 py-1.5 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.cn-context-menu-sub-content {
|
|
707
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-2xl p-1 shadow-lg ring-1 duration-100;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.cn-context-menu-subcontent {
|
|
711
|
+
@apply shadow-lg;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
/* MARK: Dialog */
|
|
715
|
+
.cn-dialog-overlay {
|
|
716
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/30 duration-100 supports-backdrop-filter:backdrop-blur-sm;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
.cn-dialog-content {
|
|
720
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/5 dark:ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-6 rounded-[min(var(--radius-4xl),24px)] p-6 text-sm shadow-xl ring-1 duration-100 sm:max-w-md;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.cn-dialog-close {
|
|
724
|
+
@apply absolute top-4 right-4 bg-secondary;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.cn-dialog-header {
|
|
728
|
+
@apply gap-1.5;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.cn-dialog-footer {
|
|
732
|
+
@apply gap-2;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.cn-dialog-title {
|
|
736
|
+
@apply text-base leading-none font-medium;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.cn-dialog-description {
|
|
740
|
+
@apply text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
/* MARK: Drawer */
|
|
744
|
+
.cn-drawer-overlay {
|
|
745
|
+
@apply bg-black/30 supports-backdrop-filter:backdrop-blur-sm;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.cn-drawer-content {
|
|
749
|
+
@apply before:bg-popover before:border-border relative flex h-auto flex-col bg-transparent p-4 text-sm before:absolute before:inset-2 before:-z-10 before:rounded-[min(var(--radius-4xl),24px)] before:border before:shadow-xl;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.cn-drawer-popup {
|
|
753
|
+
@apply bg-popover text-popover-foreground rounded-[min(var(--radius-4xl),24px)] border border-popover dark:border-border text-sm shadow-xl [--drawer-bleed-background:transparent] [--drawer-inset:--spacing(2)] [--drawer-stacked-shadow:0_-20px_25px_-5px_rgb(0_0_0/0.1),0_-8px_10px_-6px_rgb(0_0_0/0.1)] data-[swipe-direction=down]:data-nested-drawer-open:shadow-(--drawer-stacked-shadow);
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
.cn-drawer-handle {
|
|
757
|
+
@apply bg-muted mx-auto mt-4 hidden h-1.5 w-[100px] shrink-0 rounded-full;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.cn-drawer-swipe-handle {
|
|
761
|
+
@apply after:bg-muted after:block after:shrink-0 after:rounded-full group-data-[swipe-axis=y]/drawer-popup:h-3 group-data-[swipe-axis=y]/drawer-popup:w-full group-data-[swipe-axis=y]/drawer-popup:justify-center group-data-[swipe-axis=y]/drawer-popup:after:h-1.5 group-data-[swipe-axis=y]/drawer-popup:after:w-[100px] group-data-[swipe-direction=down]/drawer-popup:items-end group-data-[swipe-direction=up]/drawer-popup:items-start group-data-[swipe-axis=x]/drawer-popup:h-full group-data-[swipe-axis=x]/drawer-popup:w-3 group-data-[swipe-axis=x]/drawer-popup:items-center group-data-[swipe-axis=x]/drawer-popup:after:h-[100px] group-data-[swipe-axis=x]/drawer-popup:after:w-1.5 group-data-[swipe-direction=left]/drawer-popup:justify-start group-data-[swipe-direction=right]/drawer-popup:justify-end;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
.cn-drawer-header {
|
|
765
|
+
@apply gap-0.5 p-4 md:gap-1.5 md:text-left;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.cn-drawer-header-base {
|
|
769
|
+
@apply gap-0.5 p-4 pb-0 md:gap-1.5 md:text-left;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
.cn-drawer-title {
|
|
773
|
+
@apply text-foreground text-base font-medium;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
.cn-drawer-description {
|
|
777
|
+
@apply text-muted-foreground text-sm;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
.cn-drawer-footer {
|
|
781
|
+
@apply gap-2 p-4;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
.cn-drawer-footer-base {
|
|
785
|
+
@apply gap-2 p-4 pt-0;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
/* MARK: Dropdown Menu */
|
|
789
|
+
.cn-dropdown-menu-content {
|
|
790
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-2xl p-1 shadow-lg ring-1 duration-100;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.cn-dropdown-menu-content-logical {
|
|
794
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.cn-dropdown-menu-item {
|
|
798
|
+
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 min-h-7 rounded-xl px-2 py-1.5 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.cn-dropdown-menu-checkbox-item {
|
|
802
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2 min-h-7 rounded-xl py-1.5 pr-8 pl-2 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
.cn-dropdown-menu-radio-item {
|
|
806
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2 min-h-7 rounded-xl py-1.5 pr-8 pl-2 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
.cn-dropdown-menu-item-indicator {
|
|
810
|
+
@apply absolute right-2 flex items-center justify-center;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.cn-dropdown-menu-label {
|
|
814
|
+
@apply text-muted-foreground px-2 py-1 text-xs data-inset:pl-7;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
.cn-dropdown-menu-separator {
|
|
818
|
+
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.cn-dropdown-menu-shortcut {
|
|
822
|
+
@apply text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-xs tracking-widest;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
.cn-dropdown-menu-sub-trigger {
|
|
826
|
+
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 min-h-7 rounded-xl px-2 py-1.5 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
.cn-dropdown-menu-sub-content {
|
|
830
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 bg-popover text-popover-foreground min-w-[96px] rounded-2xl p-1 shadow-lg ring-1 duration-100;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
.cn-dropdown-menu-subcontent {
|
|
834
|
+
@apply shadow-lg;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/* MARK: Item */
|
|
838
|
+
.cn-item {
|
|
839
|
+
@apply [a]:hover:bg-muted rounded-2xl border text-sm;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.cn-item-variant-default {
|
|
843
|
+
@apply border-transparent;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
.cn-item-variant-outline {
|
|
847
|
+
@apply border-border;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
.cn-item-variant-muted {
|
|
851
|
+
@apply bg-muted/50 border-transparent;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.cn-item-size-default {
|
|
855
|
+
@apply gap-3.5 px-4 py-3.5;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
.cn-item-size-sm {
|
|
859
|
+
@apply gap-3.5 px-3.5 py-3;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
.cn-item-size-xs {
|
|
863
|
+
@apply gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
.cn-item-media {
|
|
867
|
+
@apply gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
.cn-item-media-variant-default {
|
|
871
|
+
@apply bg-transparent;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.cn-item-media-variant-icon {
|
|
875
|
+
@apply [&_svg:not([class*='size-'])]:size-4;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.cn-item-media-variant-image {
|
|
879
|
+
@apply size-10 overflow-hidden rounded-xl group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 group-data-[size=xs]/item:rounded-lg [&_img]:size-full [&_img]:object-cover;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
.cn-item-content {
|
|
883
|
+
@apply gap-1 group-data-[size=xs]/item:gap-0.5;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.cn-item-title {
|
|
887
|
+
@apply gap-2 text-sm leading-snug font-medium underline-offset-4;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
.cn-item-description {
|
|
891
|
+
@apply text-muted-foreground text-left text-sm;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
.cn-item-actions {
|
|
895
|
+
@apply gap-2;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
.cn-item-header {
|
|
899
|
+
@apply gap-2;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
.cn-item-footer {
|
|
903
|
+
@apply gap-2;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
.cn-item-group {
|
|
907
|
+
@apply gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
.cn-item-separator {
|
|
911
|
+
@apply my-2;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
/* MARK: Kbd */
|
|
915
|
+
.cn-kbd {
|
|
916
|
+
@apply bg-muted text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 h-5 w-fit min-w-5 gap-1 rounded-lg px-1 font-sans text-xs font-medium [&_svg:not([class*='size-'])]:size-3 in-data-[slot=input-group]:bg-input;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.cn-kbd-group {
|
|
920
|
+
@apply gap-1;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
/* MARK: Label */
|
|
924
|
+
.cn-label {
|
|
925
|
+
@apply gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
.cn-label-aria {
|
|
929
|
+
@apply peer-data-disabled:opacity-50;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
/* MARK: Menubar */
|
|
933
|
+
.cn-menubar {
|
|
934
|
+
@apply h-8 rounded-2xl border p-[3px];
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
.cn-menubar-trigger {
|
|
938
|
+
@apply hover:bg-muted aria-expanded:bg-muted rounded-2xl px-1.5 py-[2px] text-sm font-medium;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.cn-menubar-content {
|
|
942
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 min-w-36 rounded-2xl p-1 shadow-lg ring-1 duration-100;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
.cn-menubar-content-logical {
|
|
946
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
.cn-menubar-item {
|
|
950
|
+
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive! not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 min-h-7 rounded-xl px-2 py-1.5 text-sm data-disabled:opacity-50 data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
.cn-menubar-checkbox-item {
|
|
954
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2 min-h-7 rounded-xl py-1.5 pr-1.5 pl-7 text-sm data-inset:pl-7;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.cn-menubar-checkbox-item-indicator {
|
|
958
|
+
@apply left-1.5 size-4 [&_svg:not([class*='size-'])]:size-4;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
.cn-menubar-radio-item {
|
|
962
|
+
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2 min-h-7 rounded-xl py-1.5 pr-1.5 pl-7 text-sm data-disabled:opacity-50 data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
.cn-menubar-radio-item-indicator {
|
|
966
|
+
@apply left-1.5 size-4 [&_svg:not([class*='size-'])]:size-4;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
.cn-menubar-label {
|
|
970
|
+
@apply text-muted-foreground px-2 py-1 text-sm data-inset:pl-7;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
.cn-menubar-separator {
|
|
974
|
+
@apply bg-border/50;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.cn-menubar-shortcut {
|
|
978
|
+
@apply text-muted-foreground group-focus/menubar-item:text-accent-foreground text-xs tracking-widest;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
.cn-menubar-sub-trigger {
|
|
982
|
+
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground gap-2 min-h-7 rounded-xl px-2 py-1.5 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
.cn-menubar-sub-content {
|
|
986
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 min-w-32 rounded-2xl p-1 shadow-lg ring-1 duration-100;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
/* MARK: Navigation Menu */
|
|
990
|
+
.cn-navigation-menu {
|
|
991
|
+
@apply max-w-max;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
.cn-navigation-menu-list {
|
|
995
|
+
@apply gap-0;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
.cn-navigation-menu-trigger {
|
|
999
|
+
@apply hover:bg-muted focus:bg-muted data-open:hover:bg-muted data-open:focus:bg-muted data-open:bg-muted/50 focus-visible:ring-ring/30 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted rounded-2xl px-2.5 py-1.5 text-sm font-medium transition-all focus-visible:ring-3 focus-visible:outline-1 disabled:opacity-50;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
.cn-navigation-menu-link {
|
|
1003
|
+
@apply data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 focus-visible:ring-ring/30 hover:bg-muted focus:bg-muted flex items-center gap-2 rounded-2xl px-2.5 py-1.5 text-sm transition-all outline-none focus-visible:ring-3 focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4 in-data-[slot=navigation-menu-content]:rounded-xl font-medium in-data-[slot=navigation-menu-content]:font-normal in-data-[slot=navigation-menu-content]:p-2 in-data-[slot=navigation-menu-content]:w-full;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
.cn-navigation-menu-trigger-icon {
|
|
1007
|
+
@apply relative top-px ml-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180 group-data-popup-open/navigation-menu-trigger:rotate-180;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.cn-navigation-menu-content {
|
|
1011
|
+
@apply data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/5 group-data-[viewport=false]/navigation-menu:dark:ring-foreground/10 p-1.5 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-2xl group-data-[viewport=false]/navigation-menu:shadow-lg group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.cn-navigation-menu-viewport {
|
|
1015
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-90 data-open:zoom-in-90 ring-foreground/5 dark:ring-foreground/10 rounded-2xl shadow-lg ring-1 duration-100;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
.cn-navigation-menu-indicator {
|
|
1019
|
+
@apply data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
.cn-navigation-menu-indicator-arrow {
|
|
1023
|
+
@apply bg-border rounded-tl-sm shadow-md;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
.cn-navigation-menu-positioner {
|
|
1027
|
+
@apply transition-[top,left,right,bottom] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
.cn-navigation-menu-popup {
|
|
1031
|
+
@apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 rounded-3xl shadow-lg ring-1 transition-all ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:scale-90 data-starting-style:opacity-0;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
/* MARK: Pagination */
|
|
1035
|
+
.cn-pagination-content {
|
|
1036
|
+
@apply gap-1;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
.cn-pagination-ellipsis {
|
|
1040
|
+
@apply size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
.cn-pagination-previous {
|
|
1044
|
+
@apply pl-1.5!;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
.cn-pagination-next {
|
|
1048
|
+
@apply pr-1.5!;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
/* MARK: Sidebar */
|
|
1052
|
+
.cn-sidebar-gap {
|
|
1053
|
+
@apply transition-[width] duration-200 ease-linear;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
.cn-sidebar-inner {
|
|
1057
|
+
@apply bg-sidebar group-data-[variant=floating]:ring-sidebar-border group-data-[variant=floating]:rounded-2xl group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
.cn-sidebar-rail {
|
|
1061
|
+
@apply hover:after:bg-sidebar-border;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
.cn-sidebar-inset {
|
|
1065
|
+
@apply bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-2xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
.cn-sidebar-input {
|
|
1069
|
+
@apply bg-input/50 h-8 w-full shadow-none;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
.cn-sidebar-header {
|
|
1073
|
+
@apply gap-2 p-2 [--radius:var(--radius-xl)];
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
.cn-sidebar-content {
|
|
1077
|
+
@apply no-scrollbar gap-2 [--radius:var(--radius-xl)];
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
.cn-sidebar-footer {
|
|
1081
|
+
@apply gap-2 p-2;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
.cn-sidebar-separator {
|
|
1085
|
+
@apply bg-sidebar-border mx-2;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
.cn-sidebar-group {
|
|
1089
|
+
@apply p-2;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
.cn-sidebar-menu {
|
|
1093
|
+
@apply gap-0.5;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
.cn-sidebar-group-content {
|
|
1097
|
+
@apply text-sm;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
.cn-sidebar-group-label {
|
|
1101
|
+
@apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-xl px-3 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-3 [&>svg]:size-4;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
.cn-sidebar-group-action {
|
|
1105
|
+
@apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 w-5 rounded-xl p-0 focus-visible:ring-3 [&>svg]:size-4;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
.cn-sidebar-menu-button {
|
|
1109
|
+
@apply ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground gap-2 rounded-xl px-3 has-[>svg:first-child]:pl-2.5 has-[>svg:last-child]:pr-2.5 py-2 text-left text-sm transition-[width,height,padding] duration-200 group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-3 data-active:font-medium whitespace-nowrap;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
.cn-sidebar-menu-button-aria {
|
|
1113
|
+
@apply aria-expanded:hover:bg-sidebar-accent aria-expanded:hover:text-sidebar-accent-foreground;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
.cn-sidebar-menu-button-variant-default {
|
|
1117
|
+
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
.cn-sidebar-menu-button-variant-outline {
|
|
1121
|
+
@apply bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))];
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
.cn-sidebar-menu-button-size-default {
|
|
1125
|
+
@apply h-8 text-sm;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
.cn-sidebar-menu-button-size-sm {
|
|
1129
|
+
@apply h-7 text-xs;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
.cn-sidebar-menu-button-size-lg {
|
|
1133
|
+
@apply h-12 px-3 text-sm group-data-[collapsible=icon]:p-0!;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
.cn-sidebar-menu-action {
|
|
1137
|
+
@apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 aspect-square w-5 rounded-xl p-0 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 focus-visible:ring-3 [&>svg]:size-4;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
.cn-sidebar-menu-badge {
|
|
1141
|
+
@apply text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-active/menu-button:text-sidebar-accent-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 rounded-xl px-1 text-xs font-medium peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
.cn-sidebar-menu-skeleton {
|
|
1145
|
+
@apply h-8 gap-2 rounded-xl px-2;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
.cn-sidebar-menu-skeleton-icon {
|
|
1149
|
+
@apply size-4 rounded-xl;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
.cn-sidebar-menu-skeleton-text {
|
|
1153
|
+
@apply h-4;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
.cn-sidebar-menu-sub {
|
|
1157
|
+
@apply border-sidebar-border mx-3.5 translate-x-px gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
.cn-sidebar-menu-sub-button {
|
|
1161
|
+
@apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground h-7 gap-2 rounded-xl px-3 focus-visible:ring-3 data-[size=md]:text-sm data-[size=sm]:text-xs [&>svg]:size-4;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
/* MARK: Popover */
|
|
1165
|
+
.cn-popover-content {
|
|
1166
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 flex flex-col gap-4 rounded-3xl p-4 text-sm shadow-lg ring-1 duration-100;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
.cn-popover-content-logical {
|
|
1170
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
.cn-popover-header {
|
|
1174
|
+
@apply flex flex-col gap-1 text-sm;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
.cn-popover-title {
|
|
1178
|
+
@apply text-base font-medium;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
.cn-popover-description {
|
|
1182
|
+
@apply text-muted-foreground;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
/* MARK: Progress */
|
|
1186
|
+
.cn-progress {
|
|
1187
|
+
@apply bg-muted h-2 rounded-2xl;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
.cn-progress-track {
|
|
1191
|
+
@apply bg-muted h-2 rounded-2xl;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
.cn-progress-indicator {
|
|
1195
|
+
@apply bg-primary;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
.cn-progress-label {
|
|
1199
|
+
@apply text-sm font-medium;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
.cn-progress-value {
|
|
1203
|
+
@apply text-muted-foreground ml-auto text-sm tabular-nums;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
/* MARK: Resizable */
|
|
1207
|
+
.cn-resizable-handle-icon {
|
|
1208
|
+
@apply bg-border h-6 w-1 rounded-lg;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
/* MARK: Scroll Area */
|
|
1212
|
+
.cn-scroll-area-scrollbar {
|
|
1213
|
+
@apply data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
.cn-scroll-area-thumb {
|
|
1217
|
+
@apply rounded-full;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
/* MARK: Separator */
|
|
1221
|
+
.cn-separator {
|
|
1222
|
+
@apply bg-border shrink-0;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
.cn-separator-horizontal {
|
|
1226
|
+
@apply h-px w-full;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
.cn-separator-vertical {
|
|
1230
|
+
@apply h-full w-px;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
/* MARK: Sheet */
|
|
1234
|
+
.cn-sheet-overlay {
|
|
1235
|
+
@apply bg-black/30 supports-backdrop-filter:backdrop-blur-sm;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
.cn-sheet-content {
|
|
1239
|
+
@apply bg-popover text-popover-foreground fixed z-50 flex flex-col bg-clip-padding text-sm shadow-xl transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
.cn-sheet-close {
|
|
1243
|
+
@apply absolute top-4 right-4 bg-secondary;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
.cn-sheet-header {
|
|
1247
|
+
@apply gap-1.5 p-6;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
.cn-sheet-footer {
|
|
1251
|
+
@apply gap-2 p-6;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
.cn-sheet-title {
|
|
1255
|
+
@apply text-foreground text-base font-medium;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
.cn-sheet-description {
|
|
1259
|
+
@apply text-muted-foreground text-sm;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
/* MARK: Skeleton */
|
|
1263
|
+
.cn-skeleton {
|
|
1264
|
+
@apply bg-muted rounded-2xl;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
/* MARK: Toast */
|
|
1268
|
+
.cn-toast {
|
|
1269
|
+
@apply rounded-2xl!;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
/* MARK: Table */
|
|
1273
|
+
.cn-table-container {
|
|
1274
|
+
@apply relative w-full overflow-x-auto;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
.cn-table {
|
|
1278
|
+
@apply w-full caption-bottom text-sm;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
.cn-table-header {
|
|
1282
|
+
@apply [&_tr]:border-b;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
.cn-table-body {
|
|
1286
|
+
@apply [&_tr:last-child]:border-0;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
.cn-table-footer {
|
|
1290
|
+
@apply bg-muted/50 border-t font-medium [&>tr]:last:border-b-0;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
.cn-table-row {
|
|
1294
|
+
@apply hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
.cn-table-row-aria {
|
|
1298
|
+
@apply data-selected:bg-muted;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
.cn-table-head {
|
|
1302
|
+
@apply text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
.cn-table-head-aria {
|
|
1306
|
+
@apply [&:has([data-slot=checkbox])]:pr-0;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
.cn-table-cell {
|
|
1310
|
+
@apply p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
.cn-table-cell-aria {
|
|
1314
|
+
@apply [&:has([data-slot=checkbox])]:pr-0;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
.cn-table-caption {
|
|
1318
|
+
@apply text-muted-foreground mt-4 text-sm;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
/* MARK: Toggle */
|
|
1322
|
+
.cn-toggle {
|
|
1323
|
+
@apply hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive gap-1 rounded-2xl text-sm font-medium transition-colors [&_svg:not([class*='size-'])]:size-4;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
.cn-toggle-aria {
|
|
1327
|
+
@apply data-selected:bg-muted;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
.cn-toggle-variant-default {
|
|
1331
|
+
@apply bg-transparent;
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
.cn-toggle-variant-outline {
|
|
1335
|
+
@apply border-input hover:bg-muted border bg-transparent;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
.cn-toggle-size-default {
|
|
1339
|
+
@apply h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
.cn-toggle-size-sm {
|
|
1343
|
+
@apply h-7 min-w-7 px-2.5 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
.cn-toggle-size-lg {
|
|
1347
|
+
@apply h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
/* MARK: Toggle Group */
|
|
1351
|
+
.cn-toggle-group {
|
|
1352
|
+
@apply data-[spacing=0]:data-[variant=outline]:rounded-2xl;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
.cn-toggle-group-item {
|
|
1356
|
+
@apply data-[state=on]:bg-muted group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 group-data-[spacing=0]/toggle-group:shadow-none group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-2xl group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-2xl group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-2xl group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-2xl group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
/* MARK: Tooltip */
|
|
1360
|
+
.cn-tooltip-content {
|
|
1361
|
+
@apply data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 inline-flex items-center gap-1.5 rounded-xl px-3 py-1.5 text-xs has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-lg;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
.cn-tooltip-content-logical {
|
|
1365
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
.cn-tooltip-arrow {
|
|
1369
|
+
@apply size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] data-[side=left]:translate-x-[-1.5px] data-[side=right]:translate-x-[1.5px];
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
.cn-tooltip-arrow-logical {
|
|
1373
|
+
@apply data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:translate-x-[1.5px] data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:translate-x-[-1.5px] data-[side=inline-start]:-translate-y-1/2;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
/* MARK: Empty */
|
|
1377
|
+
.cn-empty {
|
|
1378
|
+
@apply gap-4 rounded-3xl border-dashed p-12;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
.cn-empty-header {
|
|
1382
|
+
@apply gap-2;
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
.cn-empty-media {
|
|
1386
|
+
@apply mb-2;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
.cn-empty-media-default {
|
|
1390
|
+
@apply bg-transparent;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
.cn-empty-media-icon {
|
|
1394
|
+
@apply bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-xl [&_svg:not([class*='size-'])]:size-5;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
.cn-empty-title {
|
|
1398
|
+
@apply text-lg font-medium tracking-tight;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
.cn-empty-description {
|
|
1402
|
+
@apply text-sm/relaxed;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
.cn-empty-content {
|
|
1406
|
+
@apply gap-4 text-sm;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
/* MARK: Calendar */
|
|
1410
|
+
.cn-calendar {
|
|
1411
|
+
@apply p-3 [--cell-radius:var(--radius-2xl)] [--cell-size:--spacing(8)];
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
.cn-calendar-dropdown-root {
|
|
1415
|
+
@apply has-focus:border-ring border-transparent has-focus:ring-ring/30 border has-focus:ring-3;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
.cn-calendar-caption-label {
|
|
1419
|
+
@apply h-8 pr-2 pl-3;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
/* MARK: Carousel */
|
|
1423
|
+
.cn-carousel-previous {
|
|
1424
|
+
@apply rounded-2xl;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
.cn-carousel-next {
|
|
1428
|
+
@apply rounded-2xl;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
/* MARK: Chart */
|
|
1432
|
+
.cn-chart-tooltip {
|
|
1433
|
+
@apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 gap-1.5 rounded-xl px-2.5 py-1.5 text-xs shadow-lg ring-1;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
/* MARK: Hover Card */
|
|
1437
|
+
.cn-hover-card-content {
|
|
1438
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 bg-popover text-popover-foreground w-72 rounded-3xl p-4 text-sm shadow-lg ring-1 duration-100;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
.cn-hover-card-content-logical {
|
|
1442
|
+
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
/* MARK: Menu Translucent */
|
|
1446
|
+
.cn-menu-translucent {
|
|
1447
|
+
@apply animate-none! relative bg-popover/70 before:pointer-events-none before:absolute before:inset-0 before:-z-1 before:rounded-[inherit] before:backdrop-blur-2xl before:backdrop-saturate-150 **:data-[slot$=-item]:focus:bg-foreground/10 **:data-[slot$=-item]:data-highlighted:bg-foreground/10 **:data-[slot$=-separator]:bg-foreground/5 **:data-[slot$=-trigger]:focus:bg-foreground/10 **:data-[slot$=-trigger]:aria-expanded:bg-foreground/10! **:data-[variant=destructive]:focus:bg-foreground/10! **:data-[variant=destructive]:text-accent-foreground! **:data-[variant=destructive]:**:text-accent-foreground!;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
.cn-menu-translucent-aria {
|
|
1451
|
+
@apply **:data-[slot$=-item]:data-focused:bg-foreground/10;
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
/* MARK: Bubble */
|
|
1455
|
+
.cn-bubble {
|
|
1456
|
+
@apply gap-1 data-[align=end]:self-end max-w-[80%] data-[variant=ghost]:max-w-full group-data-[align=end]/message:self-end;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
.cn-bubble-content {
|
|
1460
|
+
@apply rounded-3xl border border-transparent px-3 py-2.5 text-sm leading-relaxed [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/30 group-data-[align=end]/bubble:self-end;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
.cn-bubble-variant-default {
|
|
1464
|
+
@apply *:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
.cn-bubble-variant-secondary {
|
|
1468
|
+
@apply *:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)];
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
.cn-bubble-variant-muted {
|
|
1472
|
+
@apply *:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)];
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
.cn-bubble-variant-tinted {
|
|
1476
|
+
@apply *:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)];
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
.cn-bubble-variant-outline {
|
|
1480
|
+
@apply *:data-[slot=bubble-content]:bg-background *:data-[slot=bubble-content]:border-border [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30;
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
.cn-bubble-variant-ghost {
|
|
1484
|
+
@apply *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50 border-none;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
.cn-bubble-variant-destructive {
|
|
1488
|
+
@apply *:data-[slot=bubble-content]:bg-destructive/10 dark:*:data-[slot=bubble-content]:bg-destructive/20 *:data-[slot=bubble-content]:text-destructive [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30;
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
.cn-bubble-reactions {
|
|
1492
|
+
@apply rounded-full ring-3 ring-card bg-muted shrink-0 gap-1 px-1.5 py-0.5 has-[button]:p-0 text-sm;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
.cn-bubble-reactions-side-top {
|
|
1496
|
+
@apply top-0 -translate-y-3/4;
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
.cn-bubble-reactions-side-bottom {
|
|
1500
|
+
@apply bottom-0 translate-y-3/4;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
.cn-bubble-reactions-align-start {
|
|
1504
|
+
@apply left-3;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
.cn-bubble-reactions-align-end {
|
|
1508
|
+
@apply right-3;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
.cn-bubble-group {
|
|
1512
|
+
@apply gap-2;
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
/* MARK: Attachment */
|
|
1516
|
+
.cn-attachment {
|
|
1517
|
+
@apply rounded-2xl w-fit focus-within:ring-1 focus-within:ring-ring/30;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
.cn-attachment-orientation-horizontal {
|
|
1521
|
+
@apply min-w-40;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
.cn-attachment-orientation-vertical {
|
|
1525
|
+
@apply w-24 has-data-[slot=attachment-content]:w-30;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
.cn-attachment-size-default {
|
|
1529
|
+
@apply gap-2 has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2 text-sm;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
.cn-attachment-size-sm {
|
|
1533
|
+
@apply gap-2.5 has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5 text-xs;
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
.cn-attachment-size-xs {
|
|
1537
|
+
@apply gap-1.5 has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1 text-xs rounded-xl;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
.cn-attachment-media {
|
|
1541
|
+
@apply bg-muted text-foreground w-10 rounded-lg group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md [&_svg:not([class*='size-'])]:size-4 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5 group-data-[orientation=vertical]/attachment:w-full group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6!;
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
.cn-attachment-media-variant-image {
|
|
1545
|
+
@apply opacity-60 group-data-[state=idle]/attachment:opacity-100 group-data-[state=done]/attachment:opacity-100;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
.cn-attachment-content {
|
|
1549
|
+
@apply leading-tight group-data-[orientation=vertical]/attachment:px-1;
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
.cn-attachment-title {
|
|
1553
|
+
@apply font-medium;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
.cn-attachment-description {
|
|
1557
|
+
@apply mt-0.5 text-xs;
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
.cn-attachment-actions {
|
|
1561
|
+
@apply group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 relative z-20 group-data-[orientation=vertical]/attachment:gap-1;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
.cn-attachment-group {
|
|
1565
|
+
@apply gap-3 scroll-px-1 py-1;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
.cn-attachment-trigger {
|
|
1569
|
+
@apply absolute inset-0 z-10 outline-none;
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
/* MARK: Marker */
|
|
1573
|
+
.cn-marker {
|
|
1574
|
+
@apply gap-2 text-sm text-muted-foreground [a]:hover:text-foreground [a]:underline-offset-3 [a]:underline [&_svg:not([class*='size-'])]:size-4 min-h-4 text-left;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
.cn-marker-variant-separator {
|
|
1578
|
+
@apply before:h-px before:min-w-0 before:flex-1 before:bg-border after:h-px after:min-w-0 after:flex-1 after:bg-border before:mr-1 after:ml-1;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
.cn-marker-variant-border {
|
|
1582
|
+
@apply border-b border-border pb-2;
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
.cn-marker-icon {
|
|
1586
|
+
@apply size-4 [&_svg:not([class*='size-'])]:size-4;
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
.cn-marker-content {
|
|
1590
|
+
@apply group-data-[variant=separator]/marker:flex-none group-data-[variant=separator]/marker:text-center *:[a]:hover:text-foreground *:[a]:underline *:[a]:underline-offset-3;
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
/* MARK: Questionnaire */
|
|
1594
|
+
.cn-questionnaire {
|
|
1595
|
+
@apply gap-6;
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
.cn-questionnaire-progress {
|
|
1599
|
+
@apply text-xs;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
.cn-questionnaire-item {
|
|
1603
|
+
@apply flex flex-col gap-5;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
.cn-questionnaire-title {
|
|
1607
|
+
@apply text-base font-semibold [&:not(:has(~[data-slot=questionnaire-description]))]:mb-5;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
.cn-questionnaire-description {
|
|
1611
|
+
@apply text-sm;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
.cn-questionnaire-choices {
|
|
1615
|
+
@apply gap-3;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
.cn-questionnaire-choice {
|
|
1619
|
+
@apply border-input hover:bg-input/40 data-checked:border-primary/40 data-checked:bg-primary/10 data-invalid:border-destructive has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring/50 gap-3 rounded-2xl border px-4 py-3 text-sm has-[>input:focus-visible]:ring-3;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
.cn-questionnaire-choice-indicator {
|
|
1623
|
+
@apply bg-input/90 group-data-checked/questionnaire-choice:bg-primary dark:group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground group-data-checked/questionnaire-choice:border-primary size-4 translate-y-[--spacing(0.45)] group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 rounded-[5px] border-transparent;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
.cn-questionnaire-choice-indicator-dot {
|
|
1627
|
+
@apply bg-primary-foreground size-2 dark:size-2.5;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
.cn-questionnaire-choice-indicator-check {
|
|
1631
|
+
@apply size-3.5;
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
.cn-questionnaire-choice-content {
|
|
1635
|
+
@apply gap-1;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
.cn-questionnaire-choice-description {
|
|
1639
|
+
@apply text-muted-foreground;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
.cn-questionnaire-shortcut {
|
|
1643
|
+
@apply border-primary/10 bg-background/80 text-muted-foreground size-5 translate-y-[--spacing(0.45)] group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 items-center justify-center rounded-full border font-mono text-[0.625rem] font-medium leading-none;
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
.cn-questionnaire-input-wrapper {
|
|
1647
|
+
@apply w-full;
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
.cn-questionnaire-input {
|
|
1651
|
+
@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 rounded-2xl border px-2.5 py-1 text-base duration-200 focus-visible:ring-3 aria-invalid:ring-3 md:text-sm;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
.cn-questionnaire-error {
|
|
1655
|
+
@apply mt-2 text-sm;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
.cn-questionnaire-actions {
|
|
1659
|
+
@apply gap-2 sm:min-h-8;
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
/* MARK: Message Scroller */
|
|
1663
|
+
.cn-message-scroller-content {
|
|
1664
|
+
@apply gap-8;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
/* MARK: Message */
|
|
1668
|
+
.cn-message {
|
|
1669
|
+
@apply text-sm gap-2;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
.cn-message-avatar {
|
|
1673
|
+
@apply min-w-8 group-has-data-[slot=message-footer]/message:-translate-y-8;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
.cn-message-content {
|
|
1677
|
+
@apply gap-2.5 group-data-[align=end]/message:*:data-slot:self-end;
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
.cn-message-header {
|
|
1681
|
+
@apply text-xs font-medium text-muted-foreground px-3 group-has-data-[variant=ghost]/message:px-0;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
.cn-message-footer {
|
|
1685
|
+
@apply text-xs font-medium text-muted-foreground px-3 group-has-data-[variant=ghost]/message:px-0;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
.cn-message-group {
|
|
1689
|
+
@apply gap-2;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
/* MARK: React Aria */
|
|
1693
|
+
.cn-alert-dialog-overlay-aria {
|
|
1694
|
+
@apply data-entering:animate-in data-exiting:animate-out data-exiting:fade-out-0 data-entering:fade-in-0 bg-black/30 duration-100 supports-backdrop-filter:backdrop-blur-sm;
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
.cn-alert-dialog-content-aria {
|
|
1698
|
+
@apply data-entering:animate-in data-exiting:animate-out data-exiting:fade-out-0 data-entering:fade-in-0 data-exiting:zoom-out-95 data-entering:zoom-in-95 bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 gap-6 rounded-[min(var(--radius-4xl),24px)] p-6 shadow-xl ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-md;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
.cn-combobox-content-aria {
|
|
1702
|
+
@apply bg-popover text-popover-foreground data-entering:animate-in data-exiting:animate-out data-exiting:fade-out-0 data-entering:fade-in-0 data-exiting:zoom-out-95 data-entering:zoom-in-95 data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 *:data-[slot=input-group]:bg-input/50 *:data-[slot=input-group]:border-input/30 max-h-72 min-w-36 overflow-hidden rounded-2xl shadow-lg ring-1 duration-100 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:shadow-none;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
.cn-context-menu-content-aria {
|
|
1706
|
+
@apply data-entering:animate-in data-exiting:animate-out data-exiting:fade-out-0 data-entering:fade-in-0 data-exiting:zoom-out-95 data-entering:zoom-in-95 data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 bg-popover text-popover-foreground min-w-36 rounded-2xl p-1 shadow-lg ring-1 duration-100;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
.cn-dialog-overlay-aria {
|
|
1710
|
+
@apply data-entering:animate-in data-exiting:animate-out data-exiting:fade-out-0 data-entering:fade-in-0 bg-black/30 duration-100 supports-backdrop-filter:backdrop-blur-sm;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
.cn-dialog-content-aria {
|
|
1714
|
+
@apply bg-popover text-popover-foreground data-entering:animate-in data-exiting:animate-out data-exiting:fade-out-0 data-entering:fade-in-0 data-exiting:zoom-out-95 data-entering:zoom-in-95 ring-foreground/5 dark:ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-6 rounded-[min(var(--radius-4xl),24px)] p-6 text-sm shadow-xl ring-1 duration-100 sm:max-w-md;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
.cn-dropdown-menu-content-aria {
|
|
1718
|
+
@apply data-entering:animate-in data-exiting:animate-out data-exiting:fade-out-0 data-entering:fade-in-0 data-exiting:zoom-out-95 data-entering:zoom-in-95 data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-2xl p-1 shadow-lg ring-1 duration-100;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
.cn-popover-content-aria {
|
|
1722
|
+
@apply bg-popover text-popover-foreground data-entering:animate-in data-exiting:animate-out data-exiting:fade-out-0 data-entering:fade-in-0 data-exiting:zoom-out-95 data-entering:zoom-in-95 data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 flex flex-col gap-4 rounded-3xl p-4 text-sm shadow-lg ring-1 duration-100;
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
.cn-hover-card-content-aria {
|
|
1726
|
+
@apply data-entering:animate-in data-exiting:animate-out data-exiting:fade-out-0 data-entering:fade-in-0 data-exiting:zoom-out-95 data-entering:zoom-in-95 data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 bg-popover text-popover-foreground w-72 rounded-3xl p-4 text-sm shadow-lg ring-1 duration-100;
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
.cn-select-content-aria {
|
|
1730
|
+
@apply bg-popover text-popover-foreground data-entering:animate-in data-exiting:animate-out data-exiting:fade-out-0 data-entering:fade-in-0 data-exiting:zoom-out-95 data-entering:zoom-in-95 data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 min-w-36 rounded-2xl shadow-lg ring-1 duration-100;
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
.cn-tooltip-content-aria {
|
|
1734
|
+
@apply data-entering:animate-in data-entering:fade-in-0 data-entering:zoom-in-95 data-exiting:animate-out data-exiting:fade-out-0 data-exiting:zoom-out-95 data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2 inline-flex items-center gap-1.5 rounded-xl px-3 py-1.5 text-xs has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-lg;
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
.cn-context-menu-sub-content-aria {
|
|
1738
|
+
@apply ring-foreground/5 dark:ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-2xl p-1 shadow-lg ring-1 duration-100;
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
.cn-dropdown-menu-sub-content-aria {
|
|
1742
|
+
@apply ring-foreground/5 dark:ring-foreground/10 bg-popover text-popover-foreground min-w-[96px] rounded-2xl p-1 shadow-lg ring-1 duration-100;
|
|
1743
|
+
}
|
|
1744
|
+
}
|