@nextui-org/theme 0.0.0-canary-20240429052129
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 +21 -0
- package/README.md +24 -0
- package/colors.d.ts +1 -0
- package/colors.js +1 -0
- package/dist/animations/index.d.ts +71 -0
- package/dist/animations/index.js +98 -0
- package/dist/animations/index.mjs +6 -0
- package/dist/chunk-2PIR7DFM.mjs +77 -0
- package/dist/chunk-3FZU25GR.mjs +33 -0
- package/dist/chunk-3LKKH4AR.mjs +17 -0
- package/dist/chunk-4Z22WXZX.mjs +21 -0
- package/dist/chunk-4ZM6AI3H.mjs +366 -0
- package/dist/chunk-6XJJCV76.mjs +243 -0
- package/dist/chunk-726LN7M3.mjs +20 -0
- package/dist/chunk-7ODIBITJ.mjs +172 -0
- package/dist/chunk-7TJINK3S.mjs +390 -0
- package/dist/chunk-AC6F4DT6.mjs +485 -0
- package/dist/chunk-AGUZRGXC.mjs +12 -0
- package/dist/chunk-AO2AAOEJ.mjs +56 -0
- package/dist/chunk-AT4OXKKK.mjs +58 -0
- package/dist/chunk-CMYR6AOY.mjs +0 -0
- package/dist/chunk-CQY2A2EX.mjs +401 -0
- package/dist/chunk-CTY7IP65.mjs +723 -0
- package/dist/chunk-CUUGEIPA.mjs +474 -0
- package/dist/chunk-D2XMP2NC.mjs +6 -0
- package/dist/chunk-DCEG5LGX.mjs +17 -0
- package/dist/chunk-DI2L75XK.mjs +22 -0
- package/dist/chunk-DMASP6FA.mjs +74 -0
- package/dist/chunk-ECP4S2VZ.mjs +36 -0
- package/dist/chunk-FRI2VDCA.mjs +306 -0
- package/dist/chunk-G4RCK475.mjs +155 -0
- package/dist/chunk-GHZ36ATJ.mjs +17 -0
- package/dist/chunk-GMMETTYU.mjs +30 -0
- package/dist/chunk-HPFX3B3F.mjs +59 -0
- package/dist/chunk-HUBDRSA4.mjs +49 -0
- package/dist/chunk-I6ESTKKY.mjs +422 -0
- package/dist/chunk-IAS3SFA4.mjs +42 -0
- package/dist/chunk-IP3D7KVB.mjs +181 -0
- package/dist/chunk-JQTFOIV7.mjs +108 -0
- package/dist/chunk-JUEOCLA3.mjs +17 -0
- package/dist/chunk-K7LK7NCE.mjs +0 -0
- package/dist/chunk-KA5SSSWD.mjs +177 -0
- package/dist/chunk-KCOC3H6R.mjs +98 -0
- package/dist/chunk-KUNVFLXJ.mjs +41 -0
- package/dist/chunk-KVPPQD2E.mjs +231 -0
- package/dist/chunk-L2OL7R23.mjs +17 -0
- package/dist/chunk-LDBYFTHC.mjs +134 -0
- package/dist/chunk-LKKSQVZ6.mjs +163 -0
- package/dist/chunk-M3MKSQ42.mjs +124 -0
- package/dist/chunk-M63AFAHO.mjs +0 -0
- package/dist/chunk-MUWHEIW6.mjs +831 -0
- package/dist/chunk-NAUU2OUH.mjs +23 -0
- package/dist/chunk-NYSEAAK5.mjs +214 -0
- package/dist/chunk-OQIS4MXV.mjs +205 -0
- package/dist/chunk-OR5PUD24.mjs +17 -0
- package/dist/chunk-PSEUPXFL.mjs +122 -0
- package/dist/chunk-QZTWGJ72.mjs +16 -0
- package/dist/chunk-RNAP5C4C.mjs +406 -0
- package/dist/chunk-S573WUYY.mjs +381 -0
- package/dist/chunk-SEKJ6A6T.mjs +396 -0
- package/dist/chunk-T3GWIVAM.mjs +17 -0
- package/dist/chunk-UODOTC2G.mjs +21 -0
- package/dist/chunk-UVXYPGDZ.mjs +0 -0
- package/dist/chunk-V5ZTBGGO.mjs +42 -0
- package/dist/chunk-VDRJHB4F.mjs +187 -0
- package/dist/chunk-VFJ7C5ZV.mjs +391 -0
- package/dist/chunk-VJTX4YUQ.mjs +31 -0
- package/dist/chunk-W6DVXJB3.mjs +21 -0
- package/dist/chunk-WAAJG22Y.mjs +90 -0
- package/dist/chunk-WBQAMGXK.mjs +0 -0
- package/dist/chunk-WQEDQHKX.mjs +0 -0
- package/dist/chunk-X7N3NQ6S.mjs +158 -0
- package/dist/chunk-XHQUSKIE.mjs +60 -0
- package/dist/chunk-YJLQTC7L.mjs +0 -0
- package/dist/chunk-YSA7EQBH.mjs +237 -0
- package/dist/chunk-YZYGFPNK.mjs +17 -0
- package/dist/colors/blue.d.ts +14 -0
- package/dist/colors/blue.js +41 -0
- package/dist/colors/blue.mjs +6 -0
- package/dist/colors/common.d.ts +103 -0
- package/dist/colors/common.js +155 -0
- package/dist/colors/common.mjs +14 -0
- package/dist/colors/cyan.d.ts +14 -0
- package/dist/colors/cyan.js +41 -0
- package/dist/colors/cyan.mjs +6 -0
- package/dist/colors/green.d.ts +14 -0
- package/dist/colors/green.js +41 -0
- package/dist/colors/green.mjs +6 -0
- package/dist/colors/index.d.ts +109 -0
- package/dist/colors/index.js +335 -0
- package/dist/colors/index.mjs +24 -0
- package/dist/colors/pink.d.ts +14 -0
- package/dist/colors/pink.js +41 -0
- package/dist/colors/pink.mjs +6 -0
- package/dist/colors/purple.d.ts +14 -0
- package/dist/colors/purple.js +41 -0
- package/dist/colors/purple.mjs +6 -0
- package/dist/colors/red.d.ts +14 -0
- package/dist/colors/red.js +41 -0
- package/dist/colors/red.mjs +6 -0
- package/dist/colors/semantic.d.ts +10 -0
- package/dist/colors/semantic.js +327 -0
- package/dist/colors/semantic.mjs +20 -0
- package/dist/colors/types.d.ts +39 -0
- package/dist/colors/types.js +18 -0
- package/dist/colors/types.mjs +1 -0
- package/dist/colors/yellow.d.ts +14 -0
- package/dist/colors/yellow.js +41 -0
- package/dist/colors/yellow.mjs +6 -0
- package/dist/colors/zinc.d.ts +14 -0
- package/dist/colors/zinc.js +41 -0
- package/dist/colors/zinc.mjs +6 -0
- package/dist/colors.d.ts +4 -0
- package/dist/colors.js +335 -0
- package/dist/colors.mjs +25 -0
- package/dist/components/accordion.d.ts +402 -0
- package/dist/components/accordion.js +154 -0
- package/dist/components/accordion.mjs +13 -0
- package/dist/components/autocomplete.d.ts +180 -0
- package/dist/components/autocomplete.js +107 -0
- package/dist/components/autocomplete.mjs +7 -0
- package/dist/components/avatar.d.ts +572 -0
- package/dist/components/avatar.js +320 -0
- package/dist/components/avatar.mjs +13 -0
- package/dist/components/badge.d.ts +484 -0
- package/dist/components/badge.js +501 -0
- package/dist/components/badge.mjs +11 -0
- package/dist/components/breadcrumbs.d.ts +816 -0
- package/dist/components/breadcrumbs.js +299 -0
- package/dist/components/breadcrumbs.mjs +13 -0
- package/dist/components/button.d.ts +393 -0
- package/dist/components/button.js +556 -0
- package/dist/components/button.mjs +13 -0
- package/dist/components/calendar.d.ts +495 -0
- package/dist/components/calendar.js +456 -0
- package/dist/components/calendar.mjs +11 -0
- package/dist/components/card.d.ts +550 -0
- package/dist/components/card.js +213 -0
- package/dist/components/card.mjs +11 -0
- package/dist/components/checkbox.d.ts +773 -0
- package/dist/components/checkbox.js +271 -0
- package/dist/components/checkbox.mjs +13 -0
- package/dist/components/chip.d.ts +737 -0
- package/dist/components/chip.js +611 -0
- package/dist/components/chip.mjs +11 -0
- package/dist/components/circular-progress.d.ts +430 -0
- package/dist/components/circular-progress.js +139 -0
- package/dist/components/circular-progress.mjs +7 -0
- package/dist/components/code.d.ts +165 -0
- package/dist/components/code.js +162 -0
- package/dist/components/code.mjs +11 -0
- package/dist/components/date-input.d.ts +815 -0
- package/dist/components/date-input.js +439 -0
- package/dist/components/date-input.mjs +7 -0
- package/dist/components/date-picker.d.ts +325 -0
- package/dist/components/date-picker.js +81 -0
- package/dist/components/date-picker.mjs +9 -0
- package/dist/components/divider.d.ts +52 -0
- package/dist/components/divider.js +70 -0
- package/dist/components/divider.mjs +7 -0
- package/dist/components/drip.d.ts +14 -0
- package/dist/components/drip.js +61 -0
- package/dist/components/drip.mjs +7 -0
- package/dist/components/dropdown.d.ts +417 -0
- package/dist/components/dropdown.js +424 -0
- package/dist/components/dropdown.mjs +17 -0
- package/dist/components/image.d.ts +355 -0
- package/dist/components/image.js +183 -0
- package/dist/components/image.mjs +7 -0
- package/dist/components/index.d.ts +41 -0
- package/dist/components/index.js +8804 -0
- package/dist/components/index.mjs +194 -0
- package/dist/components/input.d.ts +942 -0
- package/dist/components/input.js +893 -0
- package/dist/components/input.mjs +11 -0
- package/dist/components/kbd.d.ts +51 -0
- package/dist/components/kbd.js +82 -0
- package/dist/components/kbd.mjs +7 -0
- package/dist/components/link.d.ts +232 -0
- package/dist/components/link.js +164 -0
- package/dist/components/link.mjs +13 -0
- package/dist/components/listbox.d.ts +3 -0
- package/dist/components/listbox.js +531 -0
- package/dist/components/listbox.mjs +16 -0
- package/dist/components/menu.d.ts +512 -0
- package/dist/components/menu.js +531 -0
- package/dist/components/menu.mjs +15 -0
- package/dist/components/modal.d.ts +765 -0
- package/dist/components/modal.js +236 -0
- package/dist/components/modal.mjs +11 -0
- package/dist/components/navbar.d.ts +463 -0
- package/dist/components/navbar.js +260 -0
- package/dist/components/navbar.mjs +11 -0
- package/dist/components/pagination.d.ts +587 -0
- package/dist/components/pagination.js +532 -0
- package/dist/components/pagination.mjs +11 -0
- package/dist/components/popover.d.ts +715 -0
- package/dist/components/popover.js +303 -0
- package/dist/components/popover.mjs +11 -0
- package/dist/components/progress.d.ts +294 -0
- package/dist/components/progress.js +173 -0
- package/dist/components/progress.mjs +7 -0
- package/dist/components/radio.d.ts +708 -0
- package/dist/components/radio.js +220 -0
- package/dist/components/radio.mjs +13 -0
- package/dist/components/scroll-shadow.d.ts +82 -0
- package/dist/components/scroll-shadow.js +85 -0
- package/dist/components/scroll-shadow.mjs +7 -0
- package/dist/components/select.d.ts +901 -0
- package/dist/components/select.js +778 -0
- package/dist/components/select.mjs +11 -0
- package/dist/components/skeleton.d.ts +105 -0
- package/dist/components/skeleton.js +105 -0
- package/dist/components/skeleton.mjs +7 -0
- package/dist/components/slider.d.ts +1024 -0
- package/dist/components/slider.js +446 -0
- package/dist/components/slider.mjs +11 -0
- package/dist/components/snippet.d.ts +415 -0
- package/dist/components/snippet.js +426 -0
- package/dist/components/snippet.mjs +11 -0
- package/dist/components/spacer.d.ts +52 -0
- package/dist/components/spacer.js +70 -0
- package/dist/components/spacer.mjs +7 -0
- package/dist/components/spinner.d.ts +564 -0
- package/dist/components/spinner.js +171 -0
- package/dist/components/spinner.mjs +7 -0
- package/dist/components/table.d.ts +777 -0
- package/dist/components/table.js +286 -0
- package/dist/components/table.mjs +11 -0
- package/dist/components/tabs.d.ts +772 -0
- package/dist/components/tabs.js +522 -0
- package/dist/components/tabs.mjs +11 -0
- package/dist/components/toggle.d.ts +485 -0
- package/dist/components/toggle.js +228 -0
- package/dist/components/toggle.mjs +11 -0
- package/dist/components/user.d.ts +81 -0
- package/dist/components/user.js +78 -0
- package/dist/components/user.mjs +11 -0
- package/dist/default-layout.d.ts +8 -0
- package/dist/default-layout.js +75 -0
- package/dist/default-layout.mjs +10 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.js +9585 -0
- package/dist/index.mjs +252 -0
- package/dist/plugin.d.ts +12 -0
- package/dist/plugin.js +775 -0
- package/dist/plugin.mjs +28 -0
- package/dist/types.d.ts +138 -0
- package/dist/types.js +18 -0
- package/dist/types.mjs +1 -0
- package/dist/utilities/custom.d.ts +22 -0
- package/dist/utilities/custom.js +44 -0
- package/dist/utilities/custom.mjs +6 -0
- package/dist/utilities/index.d.ts +83 -0
- package/dist/utilities/index.js +128 -0
- package/dist/utilities/index.mjs +9 -0
- package/dist/utilities/scrollbar-hide.d.ts +24 -0
- package/dist/utilities/scrollbar-hide.js +43 -0
- package/dist/utilities/scrollbar-hide.mjs +6 -0
- package/dist/utilities/transition.d.ts +58 -0
- package/dist/utilities/transition.js +83 -0
- package/dist/utilities/transition.mjs +8 -0
- package/dist/utils/classes.d.ts +34 -0
- package/dist/utils/classes.js +91 -0
- package/dist/utils/classes.mjs +20 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +169 -0
- package/dist/utils/index.mjs +26 -0
- package/dist/utils/object.d.ts +12 -0
- package/dist/utils/object.js +73 -0
- package/dist/utils/object.mjs +10 -0
- package/dist/utils/theme.d.ts +9 -0
- package/dist/utils/theme.js +30 -0
- package/dist/utils/theme.mjs +6 -0
- package/dist/utils/tv.d.ts +5 -0
- package/dist/utils/tv.js +54 -0
- package/dist/utils/tv.mjs +6 -0
- package/dist/utils/types.d.ts +10 -0
- package/dist/utils/types.js +18 -0
- package/dist/utils/types.mjs +1 -0
- package/dist/utils/variants.d.ts +67 -0
- package/dist/utils/variants.js +101 -0
- package/dist/utils/variants.mjs +6 -0
- package/package.json +100 -0
- package/plugin.d.ts +1 -0
- package/plugin.js +1 -0
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
import {
|
|
2
|
+
colorVariants
|
|
3
|
+
} from "./chunk-2PIR7DFM.mjs";
|
|
4
|
+
import {
|
|
5
|
+
tv
|
|
6
|
+
} from "./chunk-GMMETTYU.mjs";
|
|
7
|
+
import {
|
|
8
|
+
dataFocusVisibleClasses
|
|
9
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
10
|
+
|
|
11
|
+
// src/components/tabs.ts
|
|
12
|
+
var tabs = tv({
|
|
13
|
+
slots: {
|
|
14
|
+
base: "inline-flex",
|
|
15
|
+
tabList: [
|
|
16
|
+
"flex",
|
|
17
|
+
"p-1",
|
|
18
|
+
"h-fit",
|
|
19
|
+
"gap-2",
|
|
20
|
+
"items-center",
|
|
21
|
+
"flex-nowrap",
|
|
22
|
+
"overflow-x-scroll",
|
|
23
|
+
"scrollbar-hide",
|
|
24
|
+
"bg-default-100"
|
|
25
|
+
],
|
|
26
|
+
tab: [
|
|
27
|
+
"z-0",
|
|
28
|
+
"w-full",
|
|
29
|
+
"px-3",
|
|
30
|
+
"py-1",
|
|
31
|
+
"flex",
|
|
32
|
+
"group",
|
|
33
|
+
"relative",
|
|
34
|
+
"justify-center",
|
|
35
|
+
"items-center",
|
|
36
|
+
"outline-none",
|
|
37
|
+
"cursor-pointer",
|
|
38
|
+
"transition-opacity",
|
|
39
|
+
"tap-highlight-transparent",
|
|
40
|
+
"data-[disabled=true]:cursor-not-allowed",
|
|
41
|
+
"data-[disabled=true]:opacity-30",
|
|
42
|
+
"data-[hover-unselected=true]:opacity-disabled",
|
|
43
|
+
...dataFocusVisibleClasses
|
|
44
|
+
],
|
|
45
|
+
tabContent: [
|
|
46
|
+
"relative",
|
|
47
|
+
"z-10",
|
|
48
|
+
"text-inherit",
|
|
49
|
+
"whitespace-nowrap",
|
|
50
|
+
"transition-colors",
|
|
51
|
+
"text-default-500",
|
|
52
|
+
"group-data-[selected=true]:text-foreground"
|
|
53
|
+
],
|
|
54
|
+
cursor: ["absolute", "z-0", "bg-white"],
|
|
55
|
+
panel: [
|
|
56
|
+
"py-3",
|
|
57
|
+
"px-1",
|
|
58
|
+
"outline-none",
|
|
59
|
+
...dataFocusVisibleClasses
|
|
60
|
+
],
|
|
61
|
+
wrapper: []
|
|
62
|
+
},
|
|
63
|
+
variants: {
|
|
64
|
+
variant: {
|
|
65
|
+
solid: {
|
|
66
|
+
cursor: "inset-0"
|
|
67
|
+
},
|
|
68
|
+
light: {
|
|
69
|
+
tabList: "bg-transparent dark:bg-transparent",
|
|
70
|
+
cursor: "inset-0"
|
|
71
|
+
},
|
|
72
|
+
underlined: {
|
|
73
|
+
tabList: "bg-transparent dark:bg-transparent",
|
|
74
|
+
cursor: "h-[2px] w-[80%] bottom-0 shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]"
|
|
75
|
+
},
|
|
76
|
+
bordered: {
|
|
77
|
+
tabList: "bg-transparent dark:bg-transparent border-medium border-default-200 shadow-sm",
|
|
78
|
+
cursor: "inset-0"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
color: {
|
|
82
|
+
default: {},
|
|
83
|
+
primary: {},
|
|
84
|
+
secondary: {},
|
|
85
|
+
success: {},
|
|
86
|
+
warning: {},
|
|
87
|
+
danger: {}
|
|
88
|
+
},
|
|
89
|
+
size: {
|
|
90
|
+
sm: {
|
|
91
|
+
tabList: "rounded-medium",
|
|
92
|
+
tab: "h-7 text-tiny rounded-small",
|
|
93
|
+
cursor: "rounded-small"
|
|
94
|
+
},
|
|
95
|
+
md: {
|
|
96
|
+
tabList: "rounded-medium",
|
|
97
|
+
tab: "h-8 text-small rounded-small",
|
|
98
|
+
cursor: "rounded-small"
|
|
99
|
+
},
|
|
100
|
+
lg: {
|
|
101
|
+
tabList: "rounded-large",
|
|
102
|
+
tab: "h-9 text-medium rounded-medium",
|
|
103
|
+
cursor: "rounded-medium"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
radius: {
|
|
107
|
+
none: {
|
|
108
|
+
tabList: "rounded-none",
|
|
109
|
+
tab: "rounded-none",
|
|
110
|
+
cursor: "rounded-none"
|
|
111
|
+
},
|
|
112
|
+
sm: {
|
|
113
|
+
tabList: "rounded-medium",
|
|
114
|
+
tab: "rounded-small",
|
|
115
|
+
cursor: "rounded-small"
|
|
116
|
+
},
|
|
117
|
+
md: {
|
|
118
|
+
tabList: "rounded-medium",
|
|
119
|
+
tab: "rounded-small",
|
|
120
|
+
cursor: "rounded-small"
|
|
121
|
+
},
|
|
122
|
+
lg: {
|
|
123
|
+
tabList: "rounded-large",
|
|
124
|
+
tab: "rounded-medium",
|
|
125
|
+
cursor: "rounded-medium"
|
|
126
|
+
},
|
|
127
|
+
full: {
|
|
128
|
+
tabList: "rounded-full",
|
|
129
|
+
tab: "rounded-full",
|
|
130
|
+
cursor: "rounded-full"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
fullWidth: {
|
|
134
|
+
true: {
|
|
135
|
+
base: "w-full",
|
|
136
|
+
tabList: "w-full"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
isDisabled: {
|
|
140
|
+
true: {
|
|
141
|
+
tabList: "opacity-disabled pointer-events-none"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
disableAnimation: {
|
|
145
|
+
true: {
|
|
146
|
+
tab: "transition-none",
|
|
147
|
+
tabContent: "transition-none"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
placement: {
|
|
151
|
+
top: {},
|
|
152
|
+
start: {
|
|
153
|
+
tabList: "flex-col",
|
|
154
|
+
panel: "py-0 px-3",
|
|
155
|
+
wrapper: "flex"
|
|
156
|
+
},
|
|
157
|
+
end: {
|
|
158
|
+
tabList: "flex-col",
|
|
159
|
+
panel: "py-0 px-3",
|
|
160
|
+
wrapper: "flex flex-row-reverse"
|
|
161
|
+
},
|
|
162
|
+
bottom: {
|
|
163
|
+
wrapper: "flex flex-col-reverse"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
defaultVariants: {
|
|
168
|
+
color: "default",
|
|
169
|
+
variant: "solid",
|
|
170
|
+
size: "md",
|
|
171
|
+
fullWidth: false,
|
|
172
|
+
isDisabled: false,
|
|
173
|
+
disableAnimation: false
|
|
174
|
+
},
|
|
175
|
+
compoundVariants: [
|
|
176
|
+
{
|
|
177
|
+
variant: ["solid", "bordered", "light"],
|
|
178
|
+
color: "default",
|
|
179
|
+
class: {
|
|
180
|
+
cursor: ["bg-background", "dark:bg-default", "shadow-small"],
|
|
181
|
+
tabContent: "group-data-[selected=true]:text-default-foreground"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
variant: ["solid", "bordered", "light"],
|
|
186
|
+
color: "primary",
|
|
187
|
+
class: {
|
|
188
|
+
cursor: colorVariants.solid.primary,
|
|
189
|
+
tabContent: "group-data-[selected=true]:text-primary-foreground"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
variant: ["solid", "bordered", "light"],
|
|
194
|
+
color: "secondary",
|
|
195
|
+
class: {
|
|
196
|
+
cursor: colorVariants.solid.secondary,
|
|
197
|
+
tabContent: "group-data-[selected=true]:text-secondary-foreground"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
variant: ["solid", "bordered", "light"],
|
|
202
|
+
color: "success",
|
|
203
|
+
class: {
|
|
204
|
+
cursor: colorVariants.solid.success,
|
|
205
|
+
tabContent: "group-data-[selected=true]:text-success-foreground"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
variant: ["solid", "bordered", "light"],
|
|
210
|
+
color: "warning",
|
|
211
|
+
class: {
|
|
212
|
+
cursor: colorVariants.solid.warning,
|
|
213
|
+
tabContent: "group-data-[selected=true]:text-warning-foreground"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
variant: ["solid", "bordered", "light"],
|
|
218
|
+
color: "danger",
|
|
219
|
+
class: {
|
|
220
|
+
cursor: colorVariants.solid.danger,
|
|
221
|
+
tabContent: "group-data-[selected=true]:text-danger-foreground"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
variant: "underlined",
|
|
226
|
+
color: "default",
|
|
227
|
+
class: {
|
|
228
|
+
cursor: "bg-foreground",
|
|
229
|
+
tabContent: "group-data-[selected=true]:text-foreground"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
variant: "underlined",
|
|
234
|
+
color: "primary",
|
|
235
|
+
class: {
|
|
236
|
+
cursor: "bg-primary",
|
|
237
|
+
tabContent: "group-data-[selected=true]:text-primary"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
variant: "underlined",
|
|
242
|
+
color: "secondary",
|
|
243
|
+
class: {
|
|
244
|
+
cursor: "bg-secondary",
|
|
245
|
+
tabContent: "group-data-[selected=true]:text-secondary"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
variant: "underlined",
|
|
250
|
+
color: "success",
|
|
251
|
+
class: {
|
|
252
|
+
cursor: "bg-success",
|
|
253
|
+
tabContent: "group-data-[selected=true]:text-success"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
variant: "underlined",
|
|
258
|
+
color: "warning",
|
|
259
|
+
class: {
|
|
260
|
+
cursor: "bg-warning",
|
|
261
|
+
tabContent: "group-data-[selected=true]:text-warning"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
variant: "underlined",
|
|
266
|
+
color: "danger",
|
|
267
|
+
class: {
|
|
268
|
+
cursor: "bg-danger",
|
|
269
|
+
tabContent: "group-data-[selected=true]:text-danger"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
disableAnimation: true,
|
|
274
|
+
variant: "underlined",
|
|
275
|
+
class: {
|
|
276
|
+
tab: [
|
|
277
|
+
"after:content-['']",
|
|
278
|
+
"after:absolute",
|
|
279
|
+
"after:bottom-0",
|
|
280
|
+
"after:h-[2px]",
|
|
281
|
+
"after:w-[80%]",
|
|
282
|
+
"after:opacity-0",
|
|
283
|
+
"after:shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]",
|
|
284
|
+
"data-[selected=true]:after:opacity-100"
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
disableAnimation: true,
|
|
290
|
+
color: "default",
|
|
291
|
+
variant: ["solid", "bordered", "light"],
|
|
292
|
+
class: {
|
|
293
|
+
tab: "data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
disableAnimation: true,
|
|
298
|
+
color: "primary",
|
|
299
|
+
variant: ["solid", "bordered", "light"],
|
|
300
|
+
class: {
|
|
301
|
+
tab: "data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
disableAnimation: true,
|
|
306
|
+
color: "secondary",
|
|
307
|
+
variant: ["solid", "bordered", "light"],
|
|
308
|
+
class: {
|
|
309
|
+
tab: "data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
disableAnimation: true,
|
|
314
|
+
color: "success",
|
|
315
|
+
variant: ["solid", "bordered", "light"],
|
|
316
|
+
class: {
|
|
317
|
+
tab: "data-[selected=true]:bg-success data-[selected=true]:text-success-foreground"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
disableAnimation: true,
|
|
322
|
+
color: "warning",
|
|
323
|
+
variant: ["solid", "bordered", "light"],
|
|
324
|
+
class: {
|
|
325
|
+
tab: "data-[selected=true]:bg-warning data-[selected=true]:text-warning-foreground"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
disableAnimation: true,
|
|
330
|
+
color: "danger",
|
|
331
|
+
variant: ["solid", "bordered", "light"],
|
|
332
|
+
class: {
|
|
333
|
+
tab: "data-[selected=true]:bg-danger data-[selected=true]:text-danger-foreground"
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
disableAnimation: true,
|
|
338
|
+
color: "default",
|
|
339
|
+
variant: "underlined",
|
|
340
|
+
class: {
|
|
341
|
+
tab: "data-[selected=true]:after:bg-foreground"
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
disableAnimation: true,
|
|
346
|
+
color: "primary",
|
|
347
|
+
variant: "underlined",
|
|
348
|
+
class: {
|
|
349
|
+
tab: "data-[selected=true]:after:bg-primary"
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
disableAnimation: true,
|
|
354
|
+
color: "secondary",
|
|
355
|
+
variant: "underlined",
|
|
356
|
+
class: {
|
|
357
|
+
tab: "data-[selected=true]:after:bg-secondary"
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
disableAnimation: true,
|
|
362
|
+
color: "success",
|
|
363
|
+
variant: "underlined",
|
|
364
|
+
class: {
|
|
365
|
+
tab: "data-[selected=true]:after:bg-success"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
disableAnimation: true,
|
|
370
|
+
color: "warning",
|
|
371
|
+
variant: "underlined",
|
|
372
|
+
class: {
|
|
373
|
+
tab: "data-[selected=true]:after:bg-warning"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
disableAnimation: true,
|
|
378
|
+
color: "danger",
|
|
379
|
+
variant: "underlined",
|
|
380
|
+
class: {
|
|
381
|
+
tab: "data-[selected=true]:after:bg-danger"
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
],
|
|
385
|
+
compoundSlots: [
|
|
386
|
+
{
|
|
387
|
+
variant: "underlined",
|
|
388
|
+
slots: ["tab", "tabList", "cursor"],
|
|
389
|
+
class: ["rounded-none"]
|
|
390
|
+
}
|
|
391
|
+
]
|
|
392
|
+
});
|
|
393
|
+
|
|
394
|
+
export {
|
|
395
|
+
tabs
|
|
396
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/colors/cyan.ts
|
|
2
|
+
var cyan = {
|
|
3
|
+
50: "#F0FCFF",
|
|
4
|
+
100: "#E6FAFE",
|
|
5
|
+
200: "#D7F8FE",
|
|
6
|
+
300: "#C3F4FD",
|
|
7
|
+
400: "#A5EEFD",
|
|
8
|
+
500: "#7EE7FC",
|
|
9
|
+
600: "#06B7DB",
|
|
10
|
+
700: "#09AACD",
|
|
11
|
+
800: "#0E8AAA",
|
|
12
|
+
900: "#053B48"
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
cyan
|
|
17
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-GMMETTYU.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/divider.ts
|
|
6
|
+
var divider = tv({
|
|
7
|
+
base: "shrink-0 bg-divider border-none",
|
|
8
|
+
variants: {
|
|
9
|
+
orientation: {
|
|
10
|
+
horizontal: "w-full h-divider",
|
|
11
|
+
vertical: "h-full w-divider"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
orientation: "horizontal"
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
divider
|
|
21
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
colorVariants
|
|
3
|
+
} from "./chunk-2PIR7DFM.mjs";
|
|
4
|
+
import {
|
|
5
|
+
tv
|
|
6
|
+
} from "./chunk-GMMETTYU.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/code.ts
|
|
9
|
+
var code = tv({
|
|
10
|
+
base: ["px-2", "py-1", "h-fit", "font-mono", "font-normal", "inline-block", "whitespace-nowrap"],
|
|
11
|
+
variants: {
|
|
12
|
+
color: {
|
|
13
|
+
default: colorVariants.flat.default,
|
|
14
|
+
primary: colorVariants.flat.primary,
|
|
15
|
+
secondary: colorVariants.flat.secondary,
|
|
16
|
+
success: colorVariants.flat.success,
|
|
17
|
+
warning: colorVariants.flat.warning,
|
|
18
|
+
danger: colorVariants.flat.danger
|
|
19
|
+
},
|
|
20
|
+
size: {
|
|
21
|
+
sm: "text-small",
|
|
22
|
+
md: "text-medium",
|
|
23
|
+
lg: "text-large"
|
|
24
|
+
},
|
|
25
|
+
radius: {
|
|
26
|
+
none: "rounded-none",
|
|
27
|
+
sm: "rounded-small",
|
|
28
|
+
md: "rounded-medium",
|
|
29
|
+
lg: "rounded-large",
|
|
30
|
+
full: "rounded-full"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
color: "default",
|
|
35
|
+
size: "sm",
|
|
36
|
+
radius: "sm"
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export {
|
|
41
|
+
code
|
|
42
|
+
};
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import {
|
|
2
|
+
colorVariants
|
|
3
|
+
} from "./chunk-2PIR7DFM.mjs";
|
|
4
|
+
import {
|
|
5
|
+
tv
|
|
6
|
+
} from "./chunk-GMMETTYU.mjs";
|
|
7
|
+
import {
|
|
8
|
+
dataFocusVisibleClasses,
|
|
9
|
+
translateCenterClasses
|
|
10
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
11
|
+
|
|
12
|
+
// src/components/avatar.ts
|
|
13
|
+
var avatar = tv({
|
|
14
|
+
slots: {
|
|
15
|
+
base: [
|
|
16
|
+
"flex",
|
|
17
|
+
"relative",
|
|
18
|
+
"justify-center",
|
|
19
|
+
"items-center",
|
|
20
|
+
"box-border",
|
|
21
|
+
"overflow-hidden",
|
|
22
|
+
"align-middle",
|
|
23
|
+
"text-white",
|
|
24
|
+
"z-0",
|
|
25
|
+
...dataFocusVisibleClasses
|
|
26
|
+
],
|
|
27
|
+
img: [
|
|
28
|
+
"flex",
|
|
29
|
+
"object-cover",
|
|
30
|
+
"w-full",
|
|
31
|
+
"h-full",
|
|
32
|
+
"transition-opacity",
|
|
33
|
+
"!duration-500",
|
|
34
|
+
"opacity-0",
|
|
35
|
+
"data-[loaded=true]:opacity-100"
|
|
36
|
+
],
|
|
37
|
+
fallback: [...translateCenterClasses, "flex", "items-center", "justify-center"],
|
|
38
|
+
name: [...translateCenterClasses, "font-normal", "text-center", "text-inherit"],
|
|
39
|
+
icon: [
|
|
40
|
+
...translateCenterClasses,
|
|
41
|
+
"flex",
|
|
42
|
+
"items-center",
|
|
43
|
+
"justify-center",
|
|
44
|
+
"text-inherit",
|
|
45
|
+
"w-full",
|
|
46
|
+
"h-full"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
variants: {
|
|
50
|
+
size: {
|
|
51
|
+
sm: {
|
|
52
|
+
base: "w-8 h-8 text-tiny"
|
|
53
|
+
},
|
|
54
|
+
md: {
|
|
55
|
+
base: "w-10 h-10 text-tiny"
|
|
56
|
+
},
|
|
57
|
+
lg: {
|
|
58
|
+
base: "w-14 h-14 text-small"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
color: {
|
|
62
|
+
default: {
|
|
63
|
+
base: colorVariants.solid.default
|
|
64
|
+
},
|
|
65
|
+
primary: {
|
|
66
|
+
base: colorVariants.solid.primary
|
|
67
|
+
},
|
|
68
|
+
secondary: {
|
|
69
|
+
base: colorVariants.solid.secondary
|
|
70
|
+
},
|
|
71
|
+
success: {
|
|
72
|
+
base: colorVariants.solid.success
|
|
73
|
+
},
|
|
74
|
+
warning: {
|
|
75
|
+
base: colorVariants.solid.warning
|
|
76
|
+
},
|
|
77
|
+
danger: {
|
|
78
|
+
base: colorVariants.solid.danger
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
radius: {
|
|
82
|
+
none: {
|
|
83
|
+
base: "rounded-none"
|
|
84
|
+
},
|
|
85
|
+
sm: {
|
|
86
|
+
base: "rounded-small"
|
|
87
|
+
},
|
|
88
|
+
md: {
|
|
89
|
+
base: "rounded-medium"
|
|
90
|
+
},
|
|
91
|
+
lg: {
|
|
92
|
+
base: "rounded-large"
|
|
93
|
+
},
|
|
94
|
+
full: {
|
|
95
|
+
base: "rounded-full"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
isBordered: {
|
|
99
|
+
true: {
|
|
100
|
+
base: "ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
isDisabled: {
|
|
104
|
+
true: {
|
|
105
|
+
base: "opacity-disabled"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
isInGroup: {
|
|
109
|
+
true: {
|
|
110
|
+
base: [
|
|
111
|
+
"-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform",
|
|
112
|
+
"data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3"
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
isInGridGroup: {
|
|
117
|
+
true: {
|
|
118
|
+
base: "m-0 data-[hover=true]:translate-x-0"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
defaultVariants: {
|
|
123
|
+
size: "md",
|
|
124
|
+
color: "default",
|
|
125
|
+
radius: "full"
|
|
126
|
+
},
|
|
127
|
+
compoundVariants: [
|
|
128
|
+
{
|
|
129
|
+
color: "default",
|
|
130
|
+
isBordered: true,
|
|
131
|
+
class: {
|
|
132
|
+
base: "ring-default"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
color: "primary",
|
|
137
|
+
isBordered: true,
|
|
138
|
+
class: {
|
|
139
|
+
base: "ring-primary"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
color: "secondary",
|
|
144
|
+
isBordered: true,
|
|
145
|
+
class: {
|
|
146
|
+
base: "ring-secondary"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
color: "success",
|
|
151
|
+
isBordered: true,
|
|
152
|
+
class: {
|
|
153
|
+
base: "ring-success"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
color: "warning",
|
|
158
|
+
isBordered: true,
|
|
159
|
+
class: {
|
|
160
|
+
base: "ring-warning"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
color: "danger",
|
|
165
|
+
isBordered: true,
|
|
166
|
+
class: {
|
|
167
|
+
base: "ring-danger"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
});
|
|
172
|
+
var avatarGroup = tv({
|
|
173
|
+
slots: {
|
|
174
|
+
base: "flex items-center justify-center h-auto w-max-content",
|
|
175
|
+
count: "hover:-translate-x-0"
|
|
176
|
+
},
|
|
177
|
+
variants: {
|
|
178
|
+
isGrid: {
|
|
179
|
+
true: "inline-grid grid-cols-4 gap-3"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
export {
|
|
185
|
+
avatar,
|
|
186
|
+
avatarGroup
|
|
187
|
+
};
|