@nextui-org/theme 0.0.0-dev-v2-20230326012034

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.
Files changed (181) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +24 -0
  3. package/colors.d.ts +1 -0
  4. package/colors.js +1 -0
  5. package/dist/animations/index.d.ts +57 -0
  6. package/dist/animations/index.js +84 -0
  7. package/dist/animations/index.mjs +6 -0
  8. package/dist/chunk-37PIXVP4.mjs +33 -0
  9. package/dist/chunk-45FXWIO6.mjs +70 -0
  10. package/dist/chunk-5OE5CWK6.mjs +84 -0
  11. package/dist/chunk-5SJ7B53O.mjs +0 -0
  12. package/dist/chunk-5Z3NCB7W.mjs +391 -0
  13. package/dist/chunk-7BYRB2YS.mjs +386 -0
  14. package/dist/chunk-7MQD7UA2.mjs +16 -0
  15. package/dist/chunk-B5S7HT6N.mjs +44 -0
  16. package/dist/chunk-CMYR6AOY.mjs +0 -0
  17. package/dist/chunk-CO6ANWRA.mjs +125 -0
  18. package/dist/chunk-CRCBVLUP.mjs +38 -0
  19. package/dist/chunk-D4TJV7NY.mjs +206 -0
  20. package/dist/chunk-DCEG5LGX.mjs +17 -0
  21. package/dist/chunk-FS36US4S.mjs +25 -0
  22. package/dist/chunk-HHWXPWYN.mjs +13 -0
  23. package/dist/chunk-IJCHUO4J.mjs +38 -0
  24. package/dist/chunk-K7LK7NCE.mjs +0 -0
  25. package/dist/chunk-KZJBCC2H.mjs +17 -0
  26. package/dist/chunk-L2OL7R23.mjs +17 -0
  27. package/dist/chunk-LGGZKBOO.mjs +77 -0
  28. package/dist/chunk-M63AFAHO.mjs +0 -0
  29. package/dist/chunk-MLH3XSY7.mjs +14 -0
  30. package/dist/chunk-NJQP2VWT.mjs +160 -0
  31. package/dist/chunk-OIVGIOVG.mjs +9 -0
  32. package/dist/chunk-OR5PUD24.mjs +17 -0
  33. package/dist/chunk-OSARGUKT.mjs +326 -0
  34. package/dist/chunk-QIC7EALL.mjs +277 -0
  35. package/dist/chunk-QMP2FDFR.mjs +240 -0
  36. package/dist/chunk-QPN3H4E3.mjs +60 -0
  37. package/dist/chunk-RD42SVXB.mjs +90 -0
  38. package/dist/chunk-T3GWIVAM.mjs +17 -0
  39. package/dist/chunk-TV7EJNXI.mjs +457 -0
  40. package/dist/chunk-U77YMEWM.mjs +13 -0
  41. package/dist/chunk-VB4T62HR.mjs +159 -0
  42. package/dist/chunk-VKFQ7EZN.mjs +17 -0
  43. package/dist/chunk-WQEDQHKX.mjs +0 -0
  44. package/dist/chunk-Y37XC5QN.mjs +169 -0
  45. package/dist/chunk-Y4YW5MKL.mjs +17 -0
  46. package/dist/chunk-Y52EXP4A.mjs +142 -0
  47. package/dist/chunk-YYBLBQIV.mjs +16 -0
  48. package/dist/chunk-YZYGFPNK.mjs +17 -0
  49. package/dist/chunk-Z5OKZPNV.mjs +190 -0
  50. package/dist/colors/blue.d.ts +14 -0
  51. package/dist/colors/blue.js +41 -0
  52. package/dist/colors/blue.mjs +6 -0
  53. package/dist/colors/common.d.ts +91 -0
  54. package/dist/colors/common.js +140 -0
  55. package/dist/colors/common.mjs +13 -0
  56. package/dist/colors/cyan.d.ts +14 -0
  57. package/dist/colors/cyan.js +41 -0
  58. package/dist/colors/cyan.mjs +6 -0
  59. package/dist/colors/green.d.ts +14 -0
  60. package/dist/colors/green.js +41 -0
  61. package/dist/colors/green.mjs +6 -0
  62. package/dist/colors/index.d.ts +97 -0
  63. package/dist/colors/index.js +306 -0
  64. package/dist/colors/index.mjs +23 -0
  65. package/dist/colors/pink.d.ts +14 -0
  66. package/dist/colors/pink.js +41 -0
  67. package/dist/colors/pink.mjs +6 -0
  68. package/dist/colors/purple.d.ts +14 -0
  69. package/dist/colors/purple.js +41 -0
  70. package/dist/colors/purple.mjs +6 -0
  71. package/dist/colors/red.d.ts +14 -0
  72. package/dist/colors/red.js +41 -0
  73. package/dist/colors/red.mjs +6 -0
  74. package/dist/colors/semantic.d.ts +10 -0
  75. package/dist/colors/semantic.js +298 -0
  76. package/dist/colors/semantic.mjs +19 -0
  77. package/dist/colors/types.d.ts +37 -0
  78. package/dist/colors/types.js +18 -0
  79. package/dist/colors/types.mjs +1 -0
  80. package/dist/colors/yellow.d.ts +14 -0
  81. package/dist/colors/yellow.js +41 -0
  82. package/dist/colors/yellow.mjs +6 -0
  83. package/dist/colors.d.ts +4 -0
  84. package/dist/colors.js +306 -0
  85. package/dist/colors.mjs +24 -0
  86. package/dist/components/accordion-item.d.ts +135 -0
  87. package/dist/components/accordion-item.js +122 -0
  88. package/dist/components/accordion-item.mjs +10 -0
  89. package/dist/components/accordion.d.ts +30 -0
  90. package/dist/components/accordion.js +40 -0
  91. package/dist/components/accordion.mjs +6 -0
  92. package/dist/components/avatar-group.d.ts +26 -0
  93. package/dist/components/avatar-group.js +38 -0
  94. package/dist/components/avatar-group.mjs +6 -0
  95. package/dist/components/avatar.d.ts +211 -0
  96. package/dist/components/avatar.js +315 -0
  97. package/dist/components/avatar.mjs +10 -0
  98. package/dist/components/badge.d.ts +235 -0
  99. package/dist/components/badge.js +487 -0
  100. package/dist/components/badge.mjs +10 -0
  101. package/dist/components/button-group.d.ts +26 -0
  102. package/dist/components/button-group.js +41 -0
  103. package/dist/components/button-group.mjs +6 -0
  104. package/dist/components/button.d.ts +122 -0
  105. package/dist/components/button.js +429 -0
  106. package/dist/components/button.mjs +10 -0
  107. package/dist/components/card.d.ts +239 -0
  108. package/dist/components/card.js +222 -0
  109. package/dist/components/card.mjs +10 -0
  110. package/dist/components/checkbox-group.d.ts +32 -0
  111. package/dist/components/checkbox-group.js +37 -0
  112. package/dist/components/checkbox-group.mjs +6 -0
  113. package/dist/components/checkbox.d.ts +226 -0
  114. package/dist/components/checkbox.js +192 -0
  115. package/dist/components/checkbox.mjs +10 -0
  116. package/dist/components/chip.d.ts +274 -0
  117. package/dist/components/chip.js +560 -0
  118. package/dist/components/chip.mjs +10 -0
  119. package/dist/components/code.d.ts +68 -0
  120. package/dist/components/code.js +140 -0
  121. package/dist/components/code.mjs +10 -0
  122. package/dist/components/drip.d.ts +14 -0
  123. package/dist/components/drip.js +33 -0
  124. package/dist/components/drip.mjs +6 -0
  125. package/dist/components/index.d.ts +24 -0
  126. package/dist/components/index.js +3442 -0
  127. package/dist/components/index.mjs +95 -0
  128. package/dist/components/link.d.ts +74 -0
  129. package/dist/components/link.js +117 -0
  130. package/dist/components/link.mjs +10 -0
  131. package/dist/components/pagination.d.ts +201 -0
  132. package/dist/components/pagination.js +489 -0
  133. package/dist/components/pagination.mjs +10 -0
  134. package/dist/components/radio-group.d.ts +32 -0
  135. package/dist/components/radio-group.js +37 -0
  136. package/dist/components/radio-group.mjs +6 -0
  137. package/dist/components/radio.d.ts +271 -0
  138. package/dist/components/radio.js +201 -0
  139. package/dist/components/radio.mjs +10 -0
  140. package/dist/components/snippet.d.ts +184 -0
  141. package/dist/components/snippet.js +343 -0
  142. package/dist/components/snippet.mjs +10 -0
  143. package/dist/components/spinner.d.ts +192 -0
  144. package/dist/components/spinner.js +149 -0
  145. package/dist/components/spinner.mjs +6 -0
  146. package/dist/components/toggle.d.ts +197 -0
  147. package/dist/components/toggle.js +191 -0
  148. package/dist/components/toggle.mjs +10 -0
  149. package/dist/components/tooltip.d.ts +176 -0
  150. package/dist/components/tooltip.js +373 -0
  151. package/dist/components/tooltip.mjs +10 -0
  152. package/dist/components/user.d.ts +40 -0
  153. package/dist/components/user.js +57 -0
  154. package/dist/components/user.mjs +10 -0
  155. package/dist/index.d.ts +35 -0
  156. package/dist/index.js +3747 -0
  157. package/dist/index.mjs +138 -0
  158. package/dist/plugin.d.ts +38 -0
  159. package/dist/plugin.js +564 -0
  160. package/dist/plugin.mjs +151 -0
  161. package/dist/utilities/index.d.ts +72 -0
  162. package/dist/utilities/index.js +94 -0
  163. package/dist/utilities/index.mjs +6 -0
  164. package/dist/utils/index.d.ts +4 -0
  165. package/dist/utils/index.js +144 -0
  166. package/dist/utils/index.mjs +20 -0
  167. package/dist/utils/object.d.ts +4 -0
  168. package/dist/utils/object.js +58 -0
  169. package/dist/utils/object.mjs +8 -0
  170. package/dist/utils/styles.d.ts +20 -0
  171. package/dist/utils/styles.js +66 -0
  172. package/dist/utils/styles.mjs +14 -0
  173. package/dist/utils/types.d.ts +10 -0
  174. package/dist/utils/types.js +18 -0
  175. package/dist/utils/types.mjs +1 -0
  176. package/dist/utils/variants.d.ts +67 -0
  177. package/dist/utils/variants.js +101 -0
  178. package/dist/utils/variants.mjs +6 -0
  179. package/package.json +85 -0
  180. package/plugin.d.ts +1 -0
  181. package/plugin.js +1 -0
@@ -0,0 +1,206 @@
1
+ import {
2
+ colorVariants
3
+ } from "./chunk-LGGZKBOO.mjs";
4
+ import {
5
+ ringClasses,
6
+ translateCenterClasses
7
+ } from "./chunk-IJCHUO4J.mjs";
8
+
9
+ // src/components/avatar.ts
10
+ import { tv } from "tailwind-variants";
11
+ var avatar = tv({
12
+ slots: {
13
+ base: [
14
+ "flex",
15
+ "relative",
16
+ "justify-center",
17
+ "items-center",
18
+ "box-border",
19
+ "overflow-hidden",
20
+ "align-middle",
21
+ "text-white",
22
+ "z-10"
23
+ ],
24
+ img: [
25
+ "flex",
26
+ "object-cover",
27
+ "w-full",
28
+ "h-full",
29
+ "transition-opacity",
30
+ "!duration-500",
31
+ "opacity-0",
32
+ "data-[loaded=true]:opacity-100"
33
+ ],
34
+ fallback: [...translateCenterClasses, "flex", "items-center", "justify-center"],
35
+ name: [...translateCenterClasses, "font-semibold", "text-center", "text-inherit"],
36
+ icon: [
37
+ ...translateCenterClasses,
38
+ "flex",
39
+ "items-center",
40
+ "justify-center",
41
+ "text-inherit",
42
+ "w-full",
43
+ "h-full"
44
+ ]
45
+ },
46
+ variants: {
47
+ size: {
48
+ xs: {
49
+ base: "w-7 h-7 text-[0.625rem]"
50
+ },
51
+ sm: {
52
+ base: "w-8 h-8 text-xs"
53
+ },
54
+ md: {
55
+ base: "w-10 h-10 text-xs"
56
+ },
57
+ lg: {
58
+ base: "w-12 h-12 text-sm"
59
+ },
60
+ xl: {
61
+ base: "w-16 h-16 text-md"
62
+ }
63
+ },
64
+ color: {
65
+ neutral: {
66
+ base: colorVariants.solid.neutral
67
+ },
68
+ primary: {
69
+ base: colorVariants.solid.primary
70
+ },
71
+ secondary: {
72
+ base: colorVariants.solid.secondary
73
+ },
74
+ success: {
75
+ base: colorVariants.solid.success
76
+ },
77
+ warning: {
78
+ base: colorVariants.solid.warning
79
+ },
80
+ danger: {
81
+ base: colorVariants.solid.danger
82
+ }
83
+ },
84
+ radius: {
85
+ none: {
86
+ base: "rounded-none"
87
+ },
88
+ base: {
89
+ base: "rounded"
90
+ },
91
+ sm: {
92
+ base: "rounded-sm"
93
+ },
94
+ md: {
95
+ base: "rounded-md"
96
+ },
97
+ lg: {
98
+ base: "rounded-lg"
99
+ },
100
+ xl: {
101
+ base: "rounded-xl"
102
+ },
103
+ "2xl": {
104
+ base: "rounded-2xl"
105
+ },
106
+ "3xl": {
107
+ base: "rounded-3xl"
108
+ },
109
+ full: {
110
+ base: "rounded-full"
111
+ }
112
+ },
113
+ isBordered: {
114
+ true: {
115
+ base: "ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"
116
+ }
117
+ },
118
+ isDisabled: {
119
+ true: {
120
+ base: "opacity-50"
121
+ }
122
+ },
123
+ isFocusVisible: {
124
+ true: {
125
+ base: [...ringClasses]
126
+ }
127
+ },
128
+ isInGroup: {
129
+ true: {
130
+ base: "-ml-2 hover:-translate-x-3 transition-transform"
131
+ }
132
+ },
133
+ isInGridGroup: {
134
+ true: {
135
+ base: "m-0 hover:translate-x-0"
136
+ }
137
+ }
138
+ },
139
+ defaultVariants: {
140
+ size: "md",
141
+ color: "neutral",
142
+ radius: "full"
143
+ },
144
+ compoundVariants: [
145
+ {
146
+ color: "neutral",
147
+ isBordered: true,
148
+ class: {
149
+ base: "ring-neutral"
150
+ }
151
+ },
152
+ {
153
+ color: "primary",
154
+ isBordered: true,
155
+ class: {
156
+ base: "ring-primary"
157
+ }
158
+ },
159
+ {
160
+ color: "secondary",
161
+ isBordered: true,
162
+ class: {
163
+ base: "ring-secondary"
164
+ }
165
+ },
166
+ {
167
+ color: "success",
168
+ isBordered: true,
169
+ class: {
170
+ base: "ring-success"
171
+ }
172
+ },
173
+ {
174
+ color: "warning",
175
+ isBordered: true,
176
+ class: {
177
+ base: "ring-warning"
178
+ }
179
+ },
180
+ {
181
+ color: "danger",
182
+ isBordered: true,
183
+ class: {
184
+ base: "ring-danger"
185
+ }
186
+ },
187
+ {
188
+ isBordered: true,
189
+ size: "xl",
190
+ class: {
191
+ base: "ring"
192
+ }
193
+ },
194
+ {
195
+ isInGroup: true,
196
+ isFocusVisible: true,
197
+ class: {
198
+ base: "-translate-x-3"
199
+ }
200
+ }
201
+ ]
202
+ });
203
+
204
+ export {
205
+ avatar
206
+ };
@@ -0,0 +1,17 @@
1
+ // src/colors/pink.ts
2
+ var pink = {
3
+ 50: "#ffedfa",
4
+ 100: "#ffdcf5",
5
+ 200: "#ffb8eb",
6
+ 300: "#ff95e1",
7
+ 400: "#ff71d7",
8
+ 500: "#ff4ecd",
9
+ 600: "#cc3ea4",
10
+ 700: "#992f7b",
11
+ 800: "#661f52",
12
+ 900: "#331029"
13
+ };
14
+
15
+ export {
16
+ pink
17
+ };
@@ -0,0 +1,25 @@
1
+ import {
2
+ ringClasses
3
+ } from "./chunk-IJCHUO4J.mjs";
4
+
5
+ // src/components/user.ts
6
+ import { tv } from "tailwind-variants";
7
+ var user = tv({
8
+ slots: {
9
+ base: "inline-flex items-center justify-center gap-2",
10
+ wrapper: "inline-flex flex-col items-start",
11
+ name: "text-sm text-foreground dark:text-foreground-dark",
12
+ description: "text-xs text-neutral-500"
13
+ },
14
+ variants: {
15
+ isFocusVisible: {
16
+ true: {
17
+ base: [...ringClasses, "rounded-sm"]
18
+ }
19
+ }
20
+ }
21
+ });
22
+
23
+ export {
24
+ user
25
+ };
@@ -0,0 +1,13 @@
1
+ // src/components/radio-group.ts
2
+ import { tv } from "tailwind-variants";
3
+ var radioGroup = tv({
4
+ slots: {
5
+ base: "relative flex flex-col gap-2",
6
+ label: "relative text-neutral-500",
7
+ wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row "
8
+ }
9
+ });
10
+
11
+ export {
12
+ radioGroup
13
+ };
@@ -0,0 +1,38 @@
1
+ // src/utils/styles.ts
2
+ var baseStyles = {
3
+ color: "hsl(var(--nextui-foreground))",
4
+ backgroundColor: "hsl(var(--nextui-background))"
5
+ };
6
+ var focusVisibleClasses = [
7
+ "focus:outline-0",
8
+ "focus-visible:ring-2",
9
+ "focus-visible:ring-primary",
10
+ "focus-visible:ring-offset-2",
11
+ "focus-visible:transition-shadow",
12
+ "focus-visible:ring-offset-background",
13
+ "dark:focus-visible:ring-offset-background-dark"
14
+ ];
15
+ var ringClasses = [
16
+ "outline-none",
17
+ "ring-2",
18
+ "!ring-primary",
19
+ "ring-offset-2",
20
+ "ring-offset-background",
21
+ "dark:ring-offset-background-dark"
22
+ ];
23
+ var translateCenterClasses = [
24
+ "absolute",
25
+ "top-1/2",
26
+ "left-1/2",
27
+ "-translate-x-1/2",
28
+ "-translate-y-1/2"
29
+ ];
30
+ var absoluteFullClasses = ["absolute", "inset-0"];
31
+
32
+ export {
33
+ baseStyles,
34
+ focusVisibleClasses,
35
+ ringClasses,
36
+ translateCenterClasses,
37
+ absoluteFullClasses
38
+ };
File without changes
@@ -0,0 +1,17 @@
1
+ // src/colors/blue.ts
2
+ var blue = {
3
+ 50: "#e6f1fe",
4
+ 100: "#cce3fd",
5
+ 200: "#99c7fb",
6
+ 300: "#66aaf9",
7
+ 400: "#338ef7",
8
+ 500: "#0072f5",
9
+ 600: "#005bc4",
10
+ 700: "#004493",
11
+ 800: "#002e62",
12
+ 900: "#001731"
13
+ };
14
+
15
+ export {
16
+ blue
17
+ };
@@ -0,0 +1,17 @@
1
+ // src/colors/purple.ts
2
+ var purple = {
3
+ 50: "#f2eafa",
4
+ 100: "#e4d4f4",
5
+ 200: "#c9a9e9",
6
+ 300: "#ae7ede",
7
+ 400: "#9353d3",
8
+ 500: "#7828c8",
9
+ 600: "#6020a0",
10
+ 700: "#481878",
11
+ 800: "#301050",
12
+ 900: "#180828"
13
+ };
14
+
15
+ export {
16
+ purple
17
+ };
@@ -0,0 +1,77 @@
1
+ // src/utils/variants.ts
2
+ var solid = {
3
+ neutral: "bg-neutral text-neutral-contrastText",
4
+ primary: "bg-primary text-primary-contrastText",
5
+ secondary: "bg-secondary text-secondary-contrastText",
6
+ success: "bg-success text-success-contrastText",
7
+ warning: "bg-warning text-warning-contrastText",
8
+ danger: "bg-danger text-danger-contrastText",
9
+ foreground: "bg-foreground text-background"
10
+ };
11
+ var shadow = {
12
+ neutral: "shadow-lg shadow-neutral/50 bg-neutral text-neutral-contrastText",
13
+ primary: "shadow-lg shadow-primary/40 bg-primary text-primary-contrastText",
14
+ secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-contrastText",
15
+ success: "shadow-lg shadow-success/40 bg-success text-success-contrastText",
16
+ warning: "shadow-lg shadow-warning/40 bg-warning text-warning-contrastText",
17
+ danger: "shadow-lg shadow-danger/40 bg-danger text-danger-contrastText",
18
+ foreground: "shadow-lg shadow-foreground/40 bg-foreground text-background"
19
+ };
20
+ var bordered = {
21
+ neutral: "bg-transparent border-neutral text-foreground",
22
+ primary: "bg-transparent border-primary text-primary",
23
+ secondary: "bg-transparent border-secondary text-secondary",
24
+ success: "bg-transparent border-success text-success",
25
+ warning: "bg-transparent border-warning text-warning",
26
+ danger: "bg-transparent border-danger text-danger",
27
+ foreground: "bg-transparent border-foreground text-foreground"
28
+ };
29
+ var flat = {
30
+ neutral: "bg-neutral-100 text-neutral-contrastText",
31
+ primary: "bg-primary-50 text-primary",
32
+ secondary: "bg-secondary-100 text-secondary",
33
+ success: "bg-success-50 text-success",
34
+ warning: "bg-warning-50 text-warning",
35
+ danger: "bg-danger-50 text-danger",
36
+ foreground: "bg-foreground/10 text-foreground"
37
+ };
38
+ var faded = {
39
+ neutral: "border-neutral bg-neutral-100 text-neutral-contrastText",
40
+ primary: "border-neutral bg-neutral-100 text-primary",
41
+ secondary: "border-neutral bg-neutral-100 text-secondary",
42
+ success: "border-neutral bg-neutral-100 text-success",
43
+ warning: "border-neutral bg-neutral-100 text-warning",
44
+ danger: "border-neutral bg-neutral-100 text-danger",
45
+ foreground: "border-neutral bg-neutral-100 text-foreground"
46
+ };
47
+ var light = {
48
+ neutral: "bg-transparent text-neutral-contrastText",
49
+ primary: "bg-transparent text-primary",
50
+ secondary: "bg-transparent text-secondary",
51
+ success: "bg-transparent text-success",
52
+ warning: "bg-transparent text-warning",
53
+ danger: "bg-transparent text-danger",
54
+ foreground: "bg-transparent text-foreground"
55
+ };
56
+ var ghost = {
57
+ neutral: "border-neutral text-neutral-contrastText hover:!bg-neutral",
58
+ primary: "border-primary text-primary hover:!text-primary-contrastText hover:!bg-primary",
59
+ secondary: "border-secondary text-secondary hover:text-secondary-contrastText hover:!bg-secondary",
60
+ success: "border-success text-success hover:!text-success-contrastText hover:!bg-success",
61
+ warning: "border-warning text-warning hover:!text-warning-contrastText hover:!bg-warning",
62
+ danger: "border-danger text-danger hover:!text-danger-contrastText hover:!bg-danger",
63
+ foreground: "border-foreground text-foreground hover:!bg-foreground"
64
+ };
65
+ var colorVariants = {
66
+ solid,
67
+ shadow,
68
+ bordered,
69
+ flat,
70
+ faded,
71
+ light,
72
+ ghost
73
+ };
74
+
75
+ export {
76
+ colorVariants
77
+ };
File without changes
@@ -0,0 +1,14 @@
1
+ // src/components/avatar-group.ts
2
+ import { tv } from "tailwind-variants";
3
+ var avatarGroup = tv({
4
+ base: "flex items-center justify-center h-auto w-max-content",
5
+ variants: {
6
+ isGrid: {
7
+ true: "inline-grid grid-cols-4 gap-3"
8
+ }
9
+ }
10
+ });
11
+
12
+ export {
13
+ avatarGroup
14
+ };
@@ -0,0 +1,160 @@
1
+ import {
2
+ ringClasses
3
+ } from "./chunk-IJCHUO4J.mjs";
4
+
5
+ // src/components/checkbox.ts
6
+ import { tv } from "tailwind-variants";
7
+ var checkbox = tv({
8
+ slots: {
9
+ base: "relative max-w-fit inline-flex items-center justify-start cursor-pointer",
10
+ wrapper: [
11
+ "relative",
12
+ "inline-flex",
13
+ "items-center",
14
+ "justify-center",
15
+ "flex-shrink-0",
16
+ "overflow-hidden",
17
+ "before:content-['']",
18
+ "before:absolute",
19
+ "before:inset-0",
20
+ "before:border-solid",
21
+ "before:border-2",
22
+ "before:box-border",
23
+ "before:border-neutral",
24
+ "after:content-['']",
25
+ "after:absolute",
26
+ "after:inset-0",
27
+ "after:scale-50",
28
+ "after:opacity-0",
29
+ "after:origin-center",
30
+ "data-[checked=true]:after:scale-100",
31
+ "data-[checked=true]:after:opacity-100",
32
+ "hover:before:bg-neutral-100",
33
+ "data-[hover=true]:before:bg-neutral-100"
34
+ ],
35
+ icon: "z-10 w-4 h-3 opacity-0 data-[checked=true]:opacity-100",
36
+ label: "relative text-foreground select-none"
37
+ },
38
+ variants: {
39
+ color: {
40
+ neutral: {
41
+ wrapper: "after:bg-neutral after:text-neutral-contrastText text-neutral-contrastText"
42
+ },
43
+ primary: {
44
+ wrapper: "after:bg-primary after:text-primary-contrastText text-primary-contrastText"
45
+ },
46
+ secondary: {
47
+ wrapper: "after:bg-secondary after:text-secondary-contrastText text-secondary-contrastText"
48
+ },
49
+ success: {
50
+ wrapper: "after:bg-success after:text-success-contrastText text-success-contrastText"
51
+ },
52
+ warning: {
53
+ wrapper: "after:bg-warning after:text-warning-contrastText text-warning-contrastText"
54
+ },
55
+ danger: {
56
+ wrapper: "after:bg-danger after:text-danger-contrastText text-danger-contrastText"
57
+ }
58
+ },
59
+ size: {
60
+ xs: {
61
+ wrapper: "w-3.5 h-3.5 mr-1",
62
+ label: "text-xs",
63
+ icon: "w-3 h-2"
64
+ },
65
+ sm: {
66
+ wrapper: "w-4 h-4 mr-1",
67
+ label: "text-sm",
68
+ icon: "w-3 h-2"
69
+ },
70
+ md: {
71
+ wrapper: "w-5 h-5 mr-2",
72
+ label: "text-base",
73
+ icon: "w-4 h-3"
74
+ },
75
+ lg: {
76
+ wrapper: "w-6 h-6 mr-2",
77
+ label: "text-lg",
78
+ icon: "w-5 h-4"
79
+ },
80
+ xl: {
81
+ wrapper: "w-7 h-7 mr-2",
82
+ label: "text-xl",
83
+ icon: "w-6 h-5"
84
+ }
85
+ },
86
+ radius: {
87
+ none: {
88
+ wrapper: "rounded-none before:rounded-none after:rounded-none"
89
+ },
90
+ base: {
91
+ wrapper: "rounded before:rounded after:rounded"
92
+ },
93
+ sm: {
94
+ wrapper: "rounded-sm before:rounded-sm after:rounded-sm"
95
+ },
96
+ md: {
97
+ wrapper: "rounded-md before:rounded-md after:rounded-md"
98
+ },
99
+ lg: {
100
+ wrapper: "rounded-lg before:rounded-lg after:rounded-lg"
101
+ },
102
+ xl: {
103
+ wrapper: "rounded-xl before:rounded-xl after:rounded-xl"
104
+ },
105
+ full: {
106
+ wrapper: "rounded-full before:rounded-full after:rounded-full"
107
+ }
108
+ },
109
+ lineThrough: {
110
+ true: {
111
+ label: [
112
+ "inline-flex",
113
+ "items-center",
114
+ "justify-center",
115
+ "before:content-['']",
116
+ "before:absolute",
117
+ "before:bg-foreground",
118
+ "before:w-0",
119
+ "before:h-0.5",
120
+ "data-[checked=true]:opacity-60",
121
+ "data-[checked=true]:before:w-full"
122
+ ]
123
+ }
124
+ },
125
+ isDisabled: {
126
+ true: {
127
+ base: "opacity-50 pointer-events-none"
128
+ }
129
+ },
130
+ isFocusVisible: {
131
+ true: {
132
+ wrapper: [...ringClasses]
133
+ }
134
+ },
135
+ disableAnimation: {
136
+ true: {
137
+ wrapper: "transition-none",
138
+ icon: "transition-none",
139
+ label: "transition-none"
140
+ },
141
+ false: {
142
+ wrapper: ["before:transition-background", "after:transition-transform-opacity"],
143
+ icon: "transition-opacity",
144
+ label: "transition-opacity before:transition-width"
145
+ }
146
+ }
147
+ },
148
+ defaultVariants: {
149
+ color: "primary",
150
+ size: "md",
151
+ radius: "md",
152
+ isDisabled: false,
153
+ lineThrough: false,
154
+ disableAnimation: false
155
+ }
156
+ });
157
+
158
+ export {
159
+ checkbox
160
+ };
@@ -0,0 +1,9 @@
1
+ // src/components/drip.ts
2
+ import { tv } from "tailwind-variants";
3
+ var drip = tv({
4
+ base: ["absolute", "will-change-transform", "bg-current", "rounded-full", "animate-drip-expand"]
5
+ });
6
+
7
+ export {
8
+ drip
9
+ };
@@ -0,0 +1,17 @@
1
+ // src/colors/green.ts
2
+ var green = {
3
+ 50: "#e8faf0",
4
+ 100: "#d1f4e0",
5
+ 200: "#a2e9c1",
6
+ 300: "#74dfa2",
7
+ 400: "#45d483",
8
+ 500: "#17c964",
9
+ 600: "#12a150",
10
+ 700: "#0e793c",
11
+ 800: "#095028",
12
+ 900: "#052814"
13
+ };
14
+
15
+ export {
16
+ green
17
+ };