@nexa-ui-kit/theme-default 1.0.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/README.md +50 -0
- package/components/accordion.css +29 -0
- package/components/alert-dialog.css +33 -0
- package/components/alert.css +33 -0
- package/components/aspect-ratio.css +15 -0
- package/components/avatar-group.css +30 -0
- package/components/avatar.css +25 -0
- package/components/badge.css +21 -0
- package/components/breadcrumb.css +35 -0
- package/components/button.css +47 -0
- package/components/calendar.css +124 -0
- package/components/card.css +25 -0
- package/components/carousel.css +79 -0
- package/components/chart.css +124 -0
- package/components/checkbox.css +13 -0
- package/components/collapsible.css +5 -0
- package/components/combobox.css +13 -0
- package/components/command.css +49 -0
- package/components/context-menu.css +87 -0
- package/components/date-picker.css +13 -0
- package/components/dialog.css +29 -0
- package/components/dropdown-menu.css +98 -0
- package/components/empty-state.css +21 -0
- package/components/field.css +145 -0
- package/components/form.css +26 -0
- package/components/hover-card.css +5 -0
- package/components/index.css +78 -0
- package/components/input-group.css +91 -0
- package/components/input-otp.css +25 -0
- package/components/input.css +5 -0
- package/components/item.css +75 -0
- package/components/kbd.css +9 -0
- package/components/label.css +5 -0
- package/components/menubar.css +100 -0
- package/components/multi-select.css +37 -0
- package/components/navigation-menu.css +37 -0
- package/components/number-input.css +26 -0
- package/components/pagination.css +29 -0
- package/components/popover.css +30 -0
- package/components/progress.css +28 -0
- package/components/radio-group.css +17 -0
- package/components/scroll-area.css +25 -0
- package/components/scrollytelling.css +418 -0
- package/components/select.css +74 -0
- package/components/separator.css +5 -0
- package/components/sheet.css +45 -0
- package/components/sidebar.css +65 -0
- package/components/skeleton.css +5 -0
- package/components/slider.css +49 -0
- package/components/sonner.css +103 -0
- package/components/spinner.css +5 -0
- package/components/stat-card.css +33 -0
- package/components/stepper.css +137 -0
- package/components/switch.css +9 -0
- package/components/table.css +42 -0
- package/components/tabs.css +37 -0
- package/components/textarea.css +17 -0
- package/components/toast.css +45 -0
- package/components/toggle-group.css +25 -0
- package/components/toggle.css +21 -0
- package/components/toolbar.css +25 -0
- package/components/tooltip.css +9 -0
- package/package.json +85 -0
- package/tailwind.config.mjs +83 -0
- package/tokens/colors.css +93 -0
- package/tokens/index.css +18 -0
- package/tokens/spacing.css +36 -0
- package/tokens/typography.css +38 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* Input OTP Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="input-otp-group"] {
|
|
4
|
+
@apply flex items-center;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="input-otp-slot"] {
|
|
8
|
+
@apply relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="input-otp-slot"][data-active] {
|
|
12
|
+
@apply z-10 ring-2 ring-ring ring-offset-background;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="input-otp-caret"] {
|
|
16
|
+
@apply pointer-events-none absolute inset-0 flex items-center justify-center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="input-otp-caret"] > div {
|
|
20
|
+
@apply h-4 w-px animate-pulse bg-foreground duration-1000;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="input-otp-separator"] {
|
|
24
|
+
@apply flex w-6 items-center justify-center text-muted-foreground;
|
|
25
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/* Input Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="input"] {
|
|
4
|
+
@apply flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50;
|
|
5
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* Item Component Styles */
|
|
2
|
+
/* Generic item layout for lists, cards, and content blocks */
|
|
3
|
+
|
|
4
|
+
[data-slot="item-group"] {
|
|
5
|
+
@apply flex flex-col w-full;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[data-slot="item-separator"] {
|
|
9
|
+
@apply h-px bg-border my-1 w-full shrink-0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[data-slot="item"] {
|
|
13
|
+
@apply flex items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors;
|
|
14
|
+
@apply text-foreground decoration-auto underline-offset-4;
|
|
15
|
+
/* Hover state - useful if it's acting as a list item */
|
|
16
|
+
@apply hover:bg-muted/50;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="item"][data-variant="outline"] {
|
|
20
|
+
@apply border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="item"][data-variant="muted"] {
|
|
24
|
+
@apply bg-muted text-muted-foreground hover:bg-muted/80;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-slot="item"][data-size="sm"] {
|
|
28
|
+
@apply px-2 py-1.5 gap-2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Media (Icon/Image/Avatar) */
|
|
32
|
+
[data-slot="item-media"] {
|
|
33
|
+
@apply flex shrink-0 items-center justify-center rounded-md text-muted-foreground;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-slot="item-media"][data-variant="icon"] {
|
|
37
|
+
@apply size-8 bg-muted border border-border/50;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-slot="item-media"][data-variant="icon"] > svg {
|
|
41
|
+
@apply size-4;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-slot="item-media"][data-variant="image"] {
|
|
45
|
+
@apply size-10 rounded-full overflow-hidden border border-border;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[data-slot="item-media"][data-variant="image"] > img {
|
|
49
|
+
@apply aspect-square h-full w-full object-cover;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Content Container */
|
|
53
|
+
[data-slot="item-content"] {
|
|
54
|
+
@apply flex flex-1 flex-col gap-0.5 overflow-hidden min-w-0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Typography */
|
|
58
|
+
[data-slot="item-title"] {
|
|
59
|
+
@apply font-medium truncate leading-none text-foreground;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-slot="item-description"] {
|
|
63
|
+
@apply text-xs text-muted-foreground truncate leading-normal;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Actions */
|
|
67
|
+
[data-slot="item-actions"] {
|
|
68
|
+
@apply flex items-center gap-2 shrink-0 ml-auto;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Header/Footer Layouts */
|
|
72
|
+
[data-slot="item-header"],
|
|
73
|
+
[data-slot="item-footer"] {
|
|
74
|
+
@apply flex w-full items-center justify-between gap-2;
|
|
75
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* Kbd Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="kbd"] {
|
|
4
|
+
@apply inline-flex items-center justify-center rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground opacity-100;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="kbd-group"] {
|
|
8
|
+
@apply inline-flex items-center gap-1;
|
|
9
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* Menubar Component Styles */
|
|
2
|
+
/* Radix UI menubar with data-slot attributes */
|
|
3
|
+
|
|
4
|
+
[data-slot="menubar"] {
|
|
5
|
+
@apply flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[data-slot="menubar-trigger"] {
|
|
9
|
+
@apply flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none;
|
|
10
|
+
@apply focus:bg-accent focus:text-accent-foreground;
|
|
11
|
+
@apply data-[state=open]:bg-accent data-[state=open]:text-accent-foreground;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[data-slot="menubar-sub-trigger"] {
|
|
15
|
+
@apply flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none;
|
|
16
|
+
@apply focus:bg-accent focus:text-accent-foreground;
|
|
17
|
+
@apply data-[state=open]:bg-accent data-[state=open]:text-accent-foreground;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-slot="menubar-sub-trigger"][data-inset="true"] {
|
|
21
|
+
@apply pl-8;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-slot="menubar-sub-trigger-icon"] {
|
|
25
|
+
@apply ml-auto h-4 w-4;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-slot="menubar-sub-content"] {
|
|
29
|
+
@apply z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg;
|
|
30
|
+
@apply data-[state=open]:animate-in data-[state=closed]:animate-out;
|
|
31
|
+
@apply data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0;
|
|
32
|
+
@apply data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95;
|
|
33
|
+
@apply data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2;
|
|
34
|
+
@apply data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2;
|
|
35
|
+
transform-origin: var(--radix-menubar-content-transform-origin);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[data-slot="menubar-content"] {
|
|
39
|
+
@apply z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md;
|
|
40
|
+
@apply data-[state=open]:animate-in data-[state=closed]:animate-out;
|
|
41
|
+
@apply data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0;
|
|
42
|
+
@apply data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95;
|
|
43
|
+
@apply data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2;
|
|
44
|
+
@apply data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2;
|
|
45
|
+
transform-origin: var(--radix-menubar-content-transform-origin);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[data-slot="menubar-item"] {
|
|
49
|
+
@apply relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none;
|
|
50
|
+
@apply focus:bg-accent focus:text-accent-foreground;
|
|
51
|
+
@apply data-[disabled]:pointer-events-none data-[disabled]:opacity-50;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[data-slot="menubar-item"][data-inset="true"] {
|
|
55
|
+
@apply pl-8;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
[data-slot="menubar-checkbox-item"] {
|
|
59
|
+
@apply relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none;
|
|
60
|
+
@apply focus:bg-accent focus:text-accent-foreground;
|
|
61
|
+
@apply data-[disabled]:pointer-events-none data-[disabled]:opacity-50;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[data-slot="menubar-checkbox-indicator"] {
|
|
65
|
+
@apply absolute left-2 flex h-3.5 w-3.5 items-center justify-center;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
[data-slot="menubar-checkbox-icon"] {
|
|
69
|
+
@apply h-4 w-4;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[data-slot="menubar-radio-item"] {
|
|
73
|
+
@apply relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none;
|
|
74
|
+
@apply focus:bg-accent focus:text-accent-foreground;
|
|
75
|
+
@apply data-[disabled]:pointer-events-none data-[disabled]:opacity-50;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
[data-slot="menubar-radio-indicator"] {
|
|
79
|
+
@apply absolute left-2 flex h-3.5 w-3.5 items-center justify-center;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
[data-slot="menubar-radio-icon"] {
|
|
83
|
+
@apply h-2 w-2 fill-current;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[data-slot="menubar-label"] {
|
|
87
|
+
@apply px-2 py-1.5 text-sm font-semibold;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
[data-slot="menubar-label"][data-inset="true"] {
|
|
91
|
+
@apply pl-8;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
[data-slot="menubar-separator"] {
|
|
95
|
+
@apply -mx-1 my-1 h-px bg-muted;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[data-slot="menubar-shortcut"] {
|
|
99
|
+
@apply ml-auto text-xs tracking-widest text-muted-foreground;
|
|
100
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* Multi Select Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="multi-select-trigger"] {
|
|
4
|
+
@apply inline-flex min-h-10 w-full flex-wrap items-center gap-1 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="multi-select-badges"] {
|
|
8
|
+
@apply flex flex-wrap gap-1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="multi-select-badge"] {
|
|
12
|
+
@apply inline-flex items-center gap-1 rounded-sm bg-secondary px-1.5 py-0.5 text-xs font-medium text-secondary-foreground;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="multi-select-badge-remove"] {
|
|
16
|
+
@apply ml-0.5 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="multi-select-badge-remove"] svg {
|
|
20
|
+
@apply h-3 w-3;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="multi-select-placeholder"] {
|
|
24
|
+
@apply text-muted-foreground;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-slot="multi-select-content"] {
|
|
28
|
+
@apply p-0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[data-slot="multi-select-item-indicator"] {
|
|
32
|
+
@apply mr-2 inline-flex h-4 w-4 items-center justify-center rounded-sm border border-primary;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-slot="multi-select-item-indicator"][data-checked] {
|
|
36
|
+
@apply bg-primary text-primary-foreground;
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* Navigation Menu Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="navigation-menu"] {
|
|
4
|
+
@apply relative z-10 flex max-w-max flex-1 items-center justify-center;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="navigation-menu-list"] {
|
|
8
|
+
@apply flex flex-1 list-none items-center justify-center gap-1 p-1 rtl:flex-row-reverse;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="navigation-menu-item"] {
|
|
12
|
+
@apply relative;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="navigation-menu-trigger"] {
|
|
16
|
+
@apply group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="navigation-menu-trigger"] svg {
|
|
20
|
+
@apply ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="navigation-menu-content"] {
|
|
24
|
+
@apply absolute top-full left-0 mt-1.5 w-max min-w-[200px] overflow-hidden rounded-md border bg-popover p-4 text-popover-foreground shadow-md transition data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-slot="navigation-menu-link"] {
|
|
28
|
+
@apply block select-none rounded-md p-3 text-sm font-medium leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[active]:bg-accent/50;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[data-slot="navigation-menu-indicator"] {
|
|
32
|
+
@apply absolute left-0 top-full flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-slot="navigation-menu-indicator"] > div {
|
|
36
|
+
@apply relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md;
|
|
37
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* Number Input Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="number-input"] {
|
|
4
|
+
@apply inline-flex items-center rounded-md border border-input;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="number-input"][data-disabled] {
|
|
8
|
+
@apply opacity-50 cursor-not-allowed;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="number-input-field"] {
|
|
12
|
+
@apply h-10 w-16 border-0 bg-transparent text-center text-sm font-medium focus:outline-none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="number-input-increment"],
|
|
16
|
+
[data-slot="number-input-decrement"] {
|
|
17
|
+
@apply inline-flex h-10 w-10 items-center justify-center text-sm font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground disabled:pointer-events-none disabled:opacity-50;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-slot="number-input-decrement"] {
|
|
21
|
+
@apply border-r border-input rounded-l-md;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-slot="number-input-increment"] {
|
|
25
|
+
@apply border-l border-input rounded-r-md;
|
|
26
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* Pagination Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="pagination"] {
|
|
4
|
+
@apply mx-auto flex w-full justify-center;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="pagination-content"] {
|
|
8
|
+
@apply flex flex-row items-center gap-1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="pagination-item"] {
|
|
12
|
+
@apply list-none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="pagination-link"] {
|
|
16
|
+
@apply flex h-9 w-9 items-center justify-center rounded-md border text-sm font-medium transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="pagination-link"][data-active="true"] {
|
|
20
|
+
@apply border-primary bg-primary text-primary-foreground;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="pagination-link"]:has(span) {
|
|
24
|
+
@apply w-auto px-4;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-slot="pagination-ellipsis"] {
|
|
28
|
+
@apply flex h-9 w-9 items-center justify-center;
|
|
29
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* Popover Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="popover-content"] {
|
|
4
|
+
@apply z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="popover-trigger"] {
|
|
8
|
+
@apply border border-input bg-background hover:bg-accent hover:text-accent-foreground;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="popover-arrow"] {
|
|
12
|
+
@apply absolute border-t border-l border-border bg-popover;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-side="bottom"] [data-slot="popover-arrow"] {
|
|
16
|
+
@apply -top-1 left-1/2 -translate-x-1/2 rotate-45;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-side="top"] [data-slot="popover-arrow"] {
|
|
20
|
+
@apply -bottom-1 left-1/2 -translate-x-1/2 -rotate-[135deg];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-side="left"] [data-slot="popover-arrow"] {
|
|
24
|
+
@apply -right-1 top-1/2 -translate-y-1/2 rotate-[135deg];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-side="right"] [data-slot="popover-arrow"] {
|
|
28
|
+
@apply -left-1 top-1/2 -translate-y-1/2 rotate-45; /* Correction: right side arrow points left */
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* Progress Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="progress"] {
|
|
4
|
+
@apply relative h-4 w-full overflow-hidden rounded-full bg-secondary;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="progress-indicator"] {
|
|
8
|
+
@apply h-full w-full flex-1 bg-primary transition-all;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@keyframes progress-indeterminate {
|
|
12
|
+
0% { left: -40%; }
|
|
13
|
+
100% { left: 100%; }
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@keyframes progress-shimmer {
|
|
17
|
+
0% { background-position: -200% 0; }
|
|
18
|
+
100% { background-position: 200% 0; }
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[data-slot="progress-indicator"][data-indeterminate] {
|
|
22
|
+
@apply absolute left-0 w-[40%] animate-[progress-indeterminate_1.5s_ease-in-out_infinite];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[data-slot="progress-indicator"][data-animated] {
|
|
26
|
+
@apply bg-[length:200%_100%] animate-[progress-shimmer_2s_ease-in-out_infinite] bg-gradient-to-r from-primary via-primary/50 to-primary;
|
|
27
|
+
}
|
|
28
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* RadioGroup Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="radio-group"] {
|
|
4
|
+
@apply grid gap-2;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="radio-group-item"] {
|
|
8
|
+
@apply aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="radio-group-indicator"] {
|
|
12
|
+
@apply flex items-center justify-center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="radio-group-indicator"]::after {
|
|
16
|
+
@apply content-[''] block h-2.5 w-2.5 rounded-full bg-current text-current;
|
|
17
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* Scroll Area Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="scroll-area"] {
|
|
4
|
+
@apply relative overflow-hidden;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="scroll-area-viewport"] {
|
|
8
|
+
@apply h-full w-full rounded-[inherit];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="scroll-bar"] {
|
|
12
|
+
@apply flex touch-none select-none transition-colors;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="scroll-bar"][data-orientation="vertical"] {
|
|
16
|
+
@apply h-full w-2.5 border-l border-l-transparent p-[1px];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="scroll-bar"][data-orientation="horizontal"] {
|
|
20
|
+
@apply h-2.5 flex-col border-t border-t-transparent p-[1px];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="scroll-bar-thumb"] {
|
|
24
|
+
@apply relative flex-1 rounded-full bg-border;
|
|
25
|
+
}
|