@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,103 @@
|
|
|
1
|
+
/* Sonner Toast Component Styles */
|
|
2
|
+
/* Uses class names set via toastOptions.classNames */
|
|
3
|
+
|
|
4
|
+
/* Base toast styling */
|
|
5
|
+
.nexa-toast {
|
|
6
|
+
@apply group pointer-events-auto relative flex w-full items-center justify-between gap-4 overflow-hidden rounded-lg border p-4 shadow-lg transition-all;
|
|
7
|
+
@apply bg-background text-foreground;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.nexa-toast-title {
|
|
11
|
+
@apply text-sm font-semibold leading-none tracking-tight;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.nexa-toast-description {
|
|
15
|
+
@apply text-sm text-muted-foreground;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Variant colors (when richColors enabled) */
|
|
19
|
+
.nexa-toast-success {
|
|
20
|
+
@apply border-green-500/30 bg-green-50 text-green-900;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.nexa-toast-success .nexa-toast-description {
|
|
24
|
+
@apply text-green-800;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.nexa-toast-error {
|
|
28
|
+
@apply border-red-500/30 bg-red-50 text-red-900;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.nexa-toast-error .nexa-toast-description {
|
|
32
|
+
@apply text-red-800;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.nexa-toast-warning {
|
|
36
|
+
@apply border-yellow-500/30 bg-yellow-50 text-yellow-900;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.nexa-toast-warning .nexa-toast-description {
|
|
40
|
+
@apply text-yellow-800;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.nexa-toast-info {
|
|
44
|
+
@apply border-blue-500/30 bg-blue-50 text-blue-900;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.nexa-toast-info .nexa-toast-description {
|
|
48
|
+
@apply text-blue-800;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.nexa-toast-loading {
|
|
52
|
+
@apply border-muted bg-muted/50;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Dark mode variants */
|
|
56
|
+
.dark .nexa-toast-success {
|
|
57
|
+
@apply border-green-500/30 bg-green-950 text-green-100;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.dark .nexa-toast-success .nexa-toast-description {
|
|
61
|
+
@apply text-green-200;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.dark .nexa-toast-error {
|
|
65
|
+
@apply border-red-500/30 bg-red-950 text-red-100;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.dark .nexa-toast-error .nexa-toast-description {
|
|
69
|
+
@apply text-red-200;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.dark .nexa-toast-warning {
|
|
73
|
+
@apply border-yellow-500/30 bg-yellow-950 text-yellow-100;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.dark .nexa-toast-warning .nexa-toast-description {
|
|
77
|
+
@apply text-yellow-200;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.dark .nexa-toast-info {
|
|
81
|
+
@apply border-blue-500/30 bg-blue-950 text-blue-100;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.dark .nexa-toast-info .nexa-toast-description {
|
|
85
|
+
@apply text-blue-200;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Action buttons */
|
|
89
|
+
.nexa-toast-action {
|
|
90
|
+
@apply inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors;
|
|
91
|
+
@apply hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring;
|
|
92
|
+
@apply disabled:pointer-events-none disabled:opacity-50;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.nexa-toast-cancel {
|
|
96
|
+
@apply inline-flex h-8 shrink-0 items-center justify-center rounded-md px-3 text-sm font-medium;
|
|
97
|
+
@apply text-muted-foreground hover:text-foreground;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.nexa-toast-close {
|
|
101
|
+
@apply absolute right-1 top-1 rounded-md p-1 text-muted-foreground opacity-0 transition-opacity;
|
|
102
|
+
@apply hover:text-foreground focus:opacity-100 focus:outline-none group-hover:opacity-100;
|
|
103
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* Stat Card Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="stat-card"] {
|
|
4
|
+
@apply rounded-lg border bg-card p-6 text-card-foreground shadow-sm;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="stat-icon"] {
|
|
8
|
+
@apply mb-2 text-muted-foreground;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="stat-label"] {
|
|
12
|
+
@apply text-sm font-medium text-muted-foreground;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="stat-value"] {
|
|
16
|
+
@apply text-2xl font-bold tracking-tight;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="stat-trend"] {
|
|
20
|
+
@apply inline-flex items-center text-sm font-medium;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="stat-trend"][data-direction="up"] {
|
|
24
|
+
@apply text-green-600 dark:text-green-500;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-slot="stat-trend"][data-direction="down"] {
|
|
28
|
+
@apply text-red-600 dark:text-red-500;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[data-slot="stat-trend"][data-direction="neutral"] {
|
|
32
|
+
@apply text-muted-foreground;
|
|
33
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* Stepper Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="stepper"] {
|
|
4
|
+
@apply flex flex-col gap-4;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="stepper"][data-orientation="horizontal"] {
|
|
8
|
+
@apply w-full;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="stepper"][data-orientation="vertical"] {
|
|
12
|
+
@apply w-auto;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Stepper List */
|
|
16
|
+
[data-slot="stepper-list"] {
|
|
17
|
+
@apply flex items-center gap-2;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-slot="stepper-list"][data-orientation="horizontal"] {
|
|
21
|
+
@apply flex-row;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-slot="stepper-list"][data-orientation="vertical"] {
|
|
25
|
+
@apply flex-col items-start;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Stepper Item */
|
|
29
|
+
[data-slot="stepper-item"] {
|
|
30
|
+
@apply flex items-center gap-2;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[data-slot="stepper-item"][data-disabled] {
|
|
34
|
+
@apply opacity-50;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Stepper Trigger */
|
|
38
|
+
[data-slot="stepper-trigger"] {
|
|
39
|
+
@apply flex items-center gap-2 p-0 bg-transparent border-none cursor-pointer;
|
|
40
|
+
@apply transition-opacity duration-200;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-slot="stepper-trigger"]:hover:not([data-disabled]) {
|
|
44
|
+
@apply opacity-80;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-slot="stepper-trigger"][data-disabled] {
|
|
48
|
+
@apply cursor-not-allowed opacity-50;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-slot="stepper-trigger"]:focus-visible {
|
|
52
|
+
@apply outline-none ring-2 ring-ring ring-offset-2 rounded-sm;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Stepper Indicator */
|
|
56
|
+
[data-slot="stepper-indicator"] {
|
|
57
|
+
@apply flex items-center justify-center w-8 h-8 rounded-full text-sm font-medium shrink-0;
|
|
58
|
+
@apply transition-all duration-200;
|
|
59
|
+
@apply bg-muted text-muted-foreground;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-slot="stepper-trigger"][data-state="active"] [data-slot="stepper-indicator"] {
|
|
63
|
+
@apply bg-primary text-primary-foreground;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[data-slot="stepper-trigger"][data-state="completed"] [data-slot="stepper-indicator"] {
|
|
67
|
+
@apply bg-primary text-primary-foreground;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Stepper Label */
|
|
71
|
+
[data-slot="stepper-label"] {
|
|
72
|
+
@apply text-sm transition-colors duration-200;
|
|
73
|
+
@apply text-muted-foreground;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[data-slot="stepper-trigger"][data-state="active"] [data-slot="stepper-label"] {
|
|
77
|
+
@apply text-foreground font-medium;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-slot="stepper-trigger"][data-state="completed"] [data-slot="stepper-label"] {
|
|
81
|
+
@apply text-foreground;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Stepper Separator */
|
|
85
|
+
[data-slot="stepper-separator"] {
|
|
86
|
+
@apply flex-1 transition-colors duration-200;
|
|
87
|
+
@apply bg-border;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
[data-slot="stepper-separator"][data-orientation="horizontal"] {
|
|
91
|
+
@apply h-px min-w-6;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
[data-slot="stepper-separator"][data-orientation="vertical"] {
|
|
95
|
+
@apply w-px min-h-6 ml-4;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* Active separator (between completed steps) */
|
|
99
|
+
[data-slot="stepper-item"][data-state="completed"] + [data-slot="stepper-separator"] {
|
|
100
|
+
@apply bg-primary;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Stepper Content */
|
|
104
|
+
[data-slot="stepper-content"] {
|
|
105
|
+
@apply outline-none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[data-slot="stepper-content"][data-state="inactive"] {
|
|
109
|
+
@apply hidden;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Stepper Title */
|
|
113
|
+
[data-slot="stepper-title"] {
|
|
114
|
+
@apply text-sm font-medium leading-normal m-0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Stepper Description */
|
|
118
|
+
[data-slot="stepper-description"] {
|
|
119
|
+
@apply text-xs text-muted-foreground leading-normal m-0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* Size variants */
|
|
123
|
+
[data-slot="stepper"][data-size="sm"] [data-slot="stepper-indicator"] {
|
|
124
|
+
@apply w-6 h-6 text-xs;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
[data-slot="stepper"][data-size="sm"] [data-slot="stepper-label"] {
|
|
128
|
+
@apply text-xs;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
[data-slot="stepper"][data-size="lg"] [data-slot="stepper-indicator"] {
|
|
132
|
+
@apply w-10 h-10 text-base;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
[data-slot="stepper"][data-size="lg"] [data-slot="stepper-label"] {
|
|
136
|
+
@apply text-base;
|
|
137
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* Switch Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="switch"] {
|
|
4
|
+
@apply peer inline-flex h-[20px] w-[36px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="switch-thumb"] {
|
|
8
|
+
@apply pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0;
|
|
9
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* Table Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="table"] {
|
|
4
|
+
@apply w-full caption-bottom text-sm;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="table-header"] {
|
|
8
|
+
@apply [&_tr]:border-b;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="table-body"] {
|
|
12
|
+
@apply [&_tr:last-child]:border-0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="table-footer"] {
|
|
16
|
+
@apply border-t bg-muted/50 font-medium [&>tr]:last:border-b-0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="table-row"] {
|
|
20
|
+
@apply border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="table-head"] {
|
|
24
|
+
@apply h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-slot="table-cell"] {
|
|
28
|
+
@apply p-4 align-middle [&:has([role=checkbox])]:pr-0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[data-slot="table-caption"] {
|
|
32
|
+
@apply mt-4 text-sm text-muted-foreground;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-slot="table-toolbar"] {
|
|
36
|
+
@apply flex items-center justify-between gap-4 py-4;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-slot="table-pagination"] {
|
|
40
|
+
@apply flex items-center justify-end space-x-2 py-4;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* Tabs Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="tabs"] {
|
|
4
|
+
@apply flex flex-col;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="tabs"][data-orientation="horizontal"] {
|
|
8
|
+
@apply flex-col;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="tabs"][data-orientation="vertical"] {
|
|
12
|
+
@apply flex-row;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="tabs-list"] {
|
|
16
|
+
@apply relative inline-flex items-center justify-center rounded-md bg-muted p-1 text-muted-foreground;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="tabs-list"][data-orientation="horizontal"] {
|
|
20
|
+
@apply border-b-0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="tabs-list"][data-orientation="vertical"] {
|
|
24
|
+
@apply flex-col border-r-0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-slot="tabs-indicator"] {
|
|
28
|
+
@apply absolute rounded-sm bg-background shadow-sm transition-all duration-300 ease-in-out;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[data-slot="tabs-content"] {
|
|
32
|
+
@apply mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-slot="tabs-trigger"] {
|
|
36
|
+
@apply inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm;
|
|
37
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* Textarea Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="textarea"] {
|
|
4
|
+
@apply flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background 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
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="textarea-wrapper"] {
|
|
8
|
+
@apply relative w-full;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="textarea-counter"] {
|
|
12
|
+
@apply mt-1 text-right text-xs text-muted-foreground transition-colors duration-200;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="textarea-counter"][data-error="true"] {
|
|
16
|
+
@apply text-destructive;
|
|
17
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* Toast Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="toast-viewport"] {
|
|
4
|
+
@apply fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px];
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="toast"] {
|
|
8
|
+
@apply pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="toast"][data-variant="default"] {
|
|
12
|
+
@apply border bg-background text-foreground;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="toast"][data-variant="destructive"] {
|
|
16
|
+
@apply border-destructive bg-destructive text-destructive-foreground;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="toast-action"] {
|
|
20
|
+
@apply inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="toast"][data-variant="destructive"] [data-slot="toast-action"] {
|
|
24
|
+
@apply border-muted/40 hover:border-destructive/30 hover:bg-destructive hover:text-destructive-foreground focus:ring-destructive;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-slot="toast-close"] {
|
|
28
|
+
@apply absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[data-slot="toast"]:hover [data-slot="toast-close"] {
|
|
32
|
+
@apply opacity-100;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-slot="toast"][data-variant="destructive"] [data-slot="toast-close"] {
|
|
36
|
+
@apply text-red-300 hover:text-red-50 focus:ring-red-400 focus:ring-offset-red-600;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-slot="toast-title"] {
|
|
40
|
+
@apply text-sm font-semibold;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-slot="toast-description"] {
|
|
44
|
+
@apply text-sm opacity-90;
|
|
45
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* Toggle Group Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="toggle-group"] {
|
|
4
|
+
@apply inline-flex items-center justify-center gap-1 rounded-md;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="toggle-group-item"] {
|
|
8
|
+
@apply inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="toggle-group-item"][data-variant="outline"] {
|
|
12
|
+
@apply border border-input bg-transparent hover:bg-accent hover:text-accent-foreground;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="toggle-group-item"][data-size="default"] {
|
|
16
|
+
@apply h-10 px-3;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="toggle-group-item"][data-size="sm"] {
|
|
20
|
+
@apply h-9 px-2.5;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="toggle-group-item"][data-size="lg"] {
|
|
24
|
+
@apply h-11 px-5;
|
|
25
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* Toggle Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="toggle"] {
|
|
4
|
+
@apply inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="toggle"][data-variant="outline"] {
|
|
8
|
+
@apply border border-input bg-transparent hover:bg-accent hover:text-accent-foreground;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="toggle"][data-size="default"] {
|
|
12
|
+
@apply h-10 px-3;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="toggle"][data-size="sm"] {
|
|
16
|
+
@apply h-9 px-2.5;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="toggle"][data-size="lg"] {
|
|
20
|
+
@apply h-11 px-5;
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* Toolbar Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="toolbar"] {
|
|
4
|
+
@apply inline-flex h-10 items-center gap-1 rounded-md border bg-background p-1;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="toolbar-button"] {
|
|
8
|
+
@apply inline-flex items-center justify-center rounded-md px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="toolbar-link"] {
|
|
12
|
+
@apply inline-flex items-center justify-center rounded-md px-3 text-sm font-medium text-muted-foreground underline-offset-4 ring-offset-background transition-colors hover:text-foreground hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-slot="toolbar-separator"] {
|
|
16
|
+
@apply mx-1 h-5 w-px bg-border;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="toolbar-toggle-group"] {
|
|
20
|
+
@apply inline-flex items-center gap-1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="toolbar-toggle-item"] {
|
|
24
|
+
@apply inline-flex h-8 items-center justify-center rounded-md px-2.5 text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground;
|
|
25
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* Tooltip Component Styles */
|
|
2
|
+
|
|
3
|
+
[data-slot="tooltip-content"] {
|
|
4
|
+
@apply z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=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;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-slot="tooltip-arrow"] {
|
|
8
|
+
@apply absolute h-2 w-2 rotate-45 border bg-popover shadow-sm;
|
|
9
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nexa-ui-kit/theme-default",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Default theme for Nexa UI components",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "commonjs",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"main": "./tokens/index.css",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": "./tokens/index.css",
|
|
13
|
+
"./tokens": "./tokens/index.css",
|
|
14
|
+
"./tokens/index.css": "./tokens/index.css",
|
|
15
|
+
"./tokens/colors": "./tokens/colors.css",
|
|
16
|
+
"./tokens/typography": "./tokens/typography.css",
|
|
17
|
+
"./tokens/spacing": "./tokens/spacing.css",
|
|
18
|
+
"./components": "./components/index.css",
|
|
19
|
+
"./components/index.css": "./components/index.css",
|
|
20
|
+
"./components/accordion": "./components/accordion.css",
|
|
21
|
+
"./components/aspect-ratio": "./components/aspect-ratio.css",
|
|
22
|
+
"./components/avatar": "./components/avatar.css",
|
|
23
|
+
"./components/badge": "./components/badge.css",
|
|
24
|
+
"./components/button": "./components/button.css",
|
|
25
|
+
"./components/calendar": "./components/calendar.css",
|
|
26
|
+
"./components/card": "./components/card.css",
|
|
27
|
+
"./components/carousel": "./components/carousel.css",
|
|
28
|
+
"./components/chart": "./components/chart.css",
|
|
29
|
+
"./components/checkbox": "./components/checkbox.css",
|
|
30
|
+
"./components/collapsible": "./components/collapsible.css",
|
|
31
|
+
"./components/context-menu": "./components/context-menu.css",
|
|
32
|
+
"./components/dropdown-menu": "./components/dropdown-menu.css",
|
|
33
|
+
"./components/field": "./components/field.css",
|
|
34
|
+
"./components/form": "./components/form.css",
|
|
35
|
+
"./components/hover-card": "./components/hover-card.css",
|
|
36
|
+
"./components/input-group": "./components/input-group.css",
|
|
37
|
+
"./components/input": "./components/input.css",
|
|
38
|
+
"./components/item": "./components/item.css",
|
|
39
|
+
"./components/kbd": "./components/kbd.css",
|
|
40
|
+
"./components/label": "./components/label.css",
|
|
41
|
+
"./components/menubar": "./components/menubar.css",
|
|
42
|
+
"./components/navigation-menu": "./components/navigation-menu.css",
|
|
43
|
+
"./components/popover": "./components/popover.css",
|
|
44
|
+
"./components/progress": "./components/progress.css",
|
|
45
|
+
"./components/radio-group": "./components/radio-group.css",
|
|
46
|
+
"./components/separator": "./components/separator.css",
|
|
47
|
+
"./components/sidebar": "./components/sidebar.css",
|
|
48
|
+
"./components/skeleton": "./components/skeleton.css",
|
|
49
|
+
"./components/slider": "./components/slider.css",
|
|
50
|
+
"./components/spinner": "./components/spinner.css",
|
|
51
|
+
"./components/switch": "./components/switch.css",
|
|
52
|
+
"./components/tabs": "./components/tabs.css",
|
|
53
|
+
"./components/textarea": "./components/textarea.css",
|
|
54
|
+
"./components/toggle": "./components/toggle.css",
|
|
55
|
+
"./components/tooltip": "./components/tooltip.css",
|
|
56
|
+
"./tailwind": "./tailwind.config.mjs"
|
|
57
|
+
},
|
|
58
|
+
"files": [
|
|
59
|
+
"tokens",
|
|
60
|
+
"components",
|
|
61
|
+
"tailwind.config.mjs",
|
|
62
|
+
"README.md"
|
|
63
|
+
],
|
|
64
|
+
"scripts": {
|
|
65
|
+
"build": "echo 'CSS-only package, no build needed'",
|
|
66
|
+
"clean": "echo 'Nothing to clean'",
|
|
67
|
+
"validate": "publint ."
|
|
68
|
+
},
|
|
69
|
+
"peerDependencies": {
|
|
70
|
+
"@nexa-ui-kit/core": "^1.0.0",
|
|
71
|
+
"tailwindcss": "^4.0.0"
|
|
72
|
+
},
|
|
73
|
+
"keywords": [
|
|
74
|
+
"nexa-ui-kit",
|
|
75
|
+
"theme",
|
|
76
|
+
"tailwind",
|
|
77
|
+
"css",
|
|
78
|
+
"design-tokens"
|
|
79
|
+
],
|
|
80
|
+
"repository": {
|
|
81
|
+
"type": "git",
|
|
82
|
+
"url": "git+https://github.com/nexa-opensource/nexa-ui-kit.git",
|
|
83
|
+
"directory": "packages/themes/default"
|
|
84
|
+
}
|
|
85
|
+
}
|