@deepnoid/ui 0.1.223 → 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.
Files changed (252) hide show
  1. package/.turbo/turbo-build.log +266 -251
  2. package/dist/{chunk-NTNF5T5I.mjs → chunk-23KGTXH2.mjs} +1 -1
  3. package/dist/{chunk-SX3JDFTH.mjs → chunk-2K3HZMC6.mjs} +9 -9
  4. package/dist/{chunk-ZFC5O2V3.mjs → chunk-3JKORA4G.mjs} +1 -1
  5. package/dist/{chunk-HFOHFBZH.mjs → chunk-3N442F6I.mjs} +2 -2
  6. package/dist/{chunk-WA7CSZQ3.mjs → chunk-3QZPVRM5.mjs} +1 -1
  7. package/dist/{chunk-BH3I4LIZ.mjs → chunk-4V5D237Z.mjs} +1 -1
  8. package/dist/chunk-63JRWMWN.mjs +215 -0
  9. package/dist/{chunk-GDHLN463.mjs → chunk-6CNPC722.mjs} +2 -2
  10. package/dist/{chunk-4IEHQI5B.mjs → chunk-7JCCPTBU.mjs} +3 -3
  11. package/dist/chunk-A6UUVHC6.mjs +38 -0
  12. package/dist/{chunk-P5L4YI54.mjs → chunk-AOU4QX7H.mjs} +106 -40
  13. package/dist/{chunk-U7SYKG2C.mjs → chunk-BBCJTXGU.mjs} +1 -1
  14. package/dist/{chunk-4S4AAZFC.mjs → chunk-CBFUVFGI.mjs} +4 -4
  15. package/dist/{chunk-AGE57VDD.mjs → chunk-CBIV6KFQ.mjs} +22 -25
  16. package/dist/{chunk-KWHCUAFU.mjs → chunk-CGJBY53Q.mjs} +3 -3
  17. package/dist/{chunk-XZYQFBCT.mjs → chunk-DI7QXTYZ.mjs} +1 -1
  18. package/dist/{chunk-U4DJHAM5.mjs → chunk-DPWUIAVC.mjs} +413 -149
  19. package/dist/chunk-E4VJDQD5.mjs +142 -0
  20. package/dist/{chunk-TE5JU3WA.mjs → chunk-EAWNUQDB.mjs} +90 -133
  21. package/dist/{chunk-OXJX5G3O.mjs → chunk-EIVSXVP5.mjs} +2 -2
  22. package/dist/{chunk-JGG3ZUNG.mjs → chunk-GSOTTSR4.mjs} +1 -1
  23. package/dist/{chunk-NGRGAY42.mjs → chunk-HKF5BNPX.mjs} +1 -1
  24. package/dist/{chunk-2URJGQFC.mjs → chunk-JUKILR6X.mjs} +2 -2
  25. package/dist/{chunk-DW3BX4M2.mjs → chunk-KPOXK7NN.mjs} +1 -1
  26. package/dist/{chunk-5KC3IFNR.mjs → chunk-LJSGQO4B.mjs} +1 -1
  27. package/dist/{chunk-LH6Z7SDZ.mjs → chunk-M7V5YMM2.mjs} +1 -1
  28. package/dist/{chunk-44FMPRHV.mjs → chunk-MAGZDGUW.mjs} +67 -38
  29. package/dist/chunk-MV2WCFK7.mjs +1 -0
  30. package/dist/{chunk-U52FBRJ3.mjs → chunk-NJWXYTBQ.mjs} +1 -1
  31. package/dist/{chunk-3DCUMRYP.mjs → chunk-NPQBJO6G.mjs} +11 -39
  32. package/dist/chunk-OK34FKBQ.mjs +224 -0
  33. package/dist/{chunk-OC5C42CB.mjs → chunk-OPGGL4CG.mjs} +3 -3
  34. package/dist/{chunk-R2XKPG4K.mjs → chunk-OPSMMRA2.mjs} +1 -1
  35. package/dist/{chunk-4X35QQTI.mjs → chunk-P4GNXDMO.mjs} +1 -1
  36. package/dist/{chunk-MTT24BLX.mjs → chunk-PCWANNZ4.mjs} +3 -3
  37. package/dist/{chunk-V2YH54JQ.mjs → chunk-PXUYPS6M.mjs} +12 -2
  38. package/dist/chunk-RFHWRBAB.mjs +105 -0
  39. package/dist/{chunk-EJ4GDC6K.mjs → chunk-S2T4GHJA.mjs} +27 -27
  40. package/dist/{chunk-5VTYO3RF.mjs → chunk-TBI5O3OL.mjs} +1 -1
  41. package/dist/{chunk-FZYZSMSS.mjs → chunk-TBRF36RK.mjs} +1 -1
  42. package/dist/{chunk-Q3KBMVJS.mjs → chunk-TEERNFIT.mjs} +77 -46
  43. package/dist/{chunk-RH3AHG52.mjs → chunk-V5XX3CGL.mjs} +1 -1
  44. package/dist/{chunk-6WD32ERF.mjs → chunk-VO2ZIGIK.mjs} +1 -1
  45. package/dist/{chunk-H6ZQDMYU.mjs → chunk-VOOEH6OJ.mjs} +24 -38
  46. package/dist/{chunk-ACZ3DQVT.mjs → chunk-VUO5J2OK.mjs} +16 -15
  47. package/dist/{chunk-RY5VVXQ4.mjs → chunk-WYTAGN2P.mjs} +1 -1
  48. package/dist/{chunk-NDNIAALB.mjs → chunk-YBDQSEPV.mjs} +17 -18
  49. package/dist/chunk-Z4NO7SMY.mjs +460 -0
  50. package/dist/components/accordion/accordion.js +366 -4
  51. package/dist/components/accordion/accordion.mjs +2 -2
  52. package/dist/components/accordion/accordionItem.js +366 -4
  53. package/dist/components/accordion/accordionItem.mjs +2 -2
  54. package/dist/components/accordion/index.js +366 -4
  55. package/dist/components/accordion/index.mjs +3 -3
  56. package/dist/components/avatar/avatar.js +472 -44
  57. package/dist/components/avatar/avatar.mjs +3 -3
  58. package/dist/components/avatar/index.js +472 -44
  59. package/dist/components/avatar/index.mjs +3 -3
  60. package/dist/components/backdrop/backdrop.js +366 -4
  61. package/dist/components/backdrop/backdrop.mjs +2 -2
  62. package/dist/components/backdrop/index.js +366 -4
  63. package/dist/components/backdrop/index.mjs +2 -2
  64. package/dist/components/breadcrumb/breadcrumb.js +951 -74
  65. package/dist/components/breadcrumb/breadcrumb.mjs +10 -9
  66. package/dist/components/breadcrumb/index.js +951 -74
  67. package/dist/components/breadcrumb/index.mjs +10 -9
  68. package/dist/components/button/button-group.js +366 -4
  69. package/dist/components/button/button-group.mjs +2 -2
  70. package/dist/components/button/button.d.mts +82 -119
  71. package/dist/components/button/button.d.ts +82 -119
  72. package/dist/components/button/button.js +966 -355
  73. package/dist/components/button/button.mjs +6 -5
  74. package/dist/components/button/button.style.d.mts +89 -0
  75. package/dist/components/button/button.style.d.ts +89 -0
  76. package/dist/components/button/button.style.js +1172 -0
  77. package/dist/components/button/button.style.mjs +9 -0
  78. package/dist/components/button/icon-button.d.mts +45 -46
  79. package/dist/components/button/icon-button.d.ts +45 -46
  80. package/dist/components/button/icon-button.js +1125 -527
  81. package/dist/components/button/icon-button.mjs +6 -5
  82. package/dist/components/button/index.js +1154 -830
  83. package/dist/components/button/index.mjs +9 -8
  84. package/dist/components/button/text-button.d.mts +59 -39
  85. package/dist/components/button/text-button.d.ts +59 -39
  86. package/dist/components/button/text-button.js +831 -21
  87. package/dist/components/button/text-button.mjs +3 -2
  88. package/dist/components/charts/areaChart.js +366 -4
  89. package/dist/components/charts/areaChart.mjs +2 -2
  90. package/dist/components/charts/barChart.js +366 -4
  91. package/dist/components/charts/barChart.mjs +2 -2
  92. package/dist/components/charts/circularProgress.js +366 -4
  93. package/dist/components/charts/circularProgress.mjs +2 -2
  94. package/dist/components/charts/index.js +366 -4
  95. package/dist/components/charts/index.mjs +6 -6
  96. package/dist/components/charts/radarChart.js +366 -4
  97. package/dist/components/charts/radarChart.mjs +2 -2
  98. package/dist/components/charts/simpleBarChart.js +366 -4
  99. package/dist/components/charts/simpleBarChart.mjs +2 -2
  100. package/dist/components/checkbox/checkbox.js +376 -42
  101. package/dist/components/checkbox/checkbox.mjs +2 -2
  102. package/dist/components/checkbox/index.js +376 -42
  103. package/dist/components/checkbox/index.mjs +2 -2
  104. package/dist/components/chip/chip.d.mts +32 -0
  105. package/dist/components/chip/chip.d.ts +32 -0
  106. package/dist/components/chip/chip.js +496 -57
  107. package/dist/components/chip/chip.mjs +4 -4
  108. package/dist/components/chip/index.js +496 -57
  109. package/dist/components/chip/index.mjs +4 -4
  110. package/dist/components/drawer/drawer.js +366 -4
  111. package/dist/components/drawer/drawer.mjs +2 -2
  112. package/dist/components/drawer/index.js +366 -4
  113. package/dist/components/drawer/index.mjs +2 -2
  114. package/dist/components/fileUpload/fileUpload.js +1014 -402
  115. package/dist/components/fileUpload/fileUpload.mjs +12 -11
  116. package/dist/components/fileUpload/index.js +1014 -402
  117. package/dist/components/fileUpload/index.mjs +12 -11
  118. package/dist/components/icon/Icon.d.mts +23 -10
  119. package/dist/components/icon/Icon.d.ts +23 -10
  120. package/dist/components/icon/Icon.js +120 -53
  121. package/dist/components/icon/Icon.mjs +2 -2
  122. package/dist/components/icon/index.js +120 -53
  123. package/dist/components/icon/index.mjs +2 -2
  124. package/dist/components/icon/template.d.mts +5 -2
  125. package/dist/components/icon/template.d.ts +5 -2
  126. package/dist/components/icon/template.js +106 -40
  127. package/dist/components/icon/template.mjs +1 -1
  128. package/dist/components/input/index.js +511 -82
  129. package/dist/components/input/index.mjs +4 -4
  130. package/dist/components/input/input.js +511 -82
  131. package/dist/components/input/input.mjs +4 -4
  132. package/dist/components/list/index.js +486 -57
  133. package/dist/components/list/index.mjs +6 -6
  134. package/dist/components/list/list.js +366 -4
  135. package/dist/components/list/list.mjs +2 -2
  136. package/dist/components/list/listItem.js +486 -57
  137. package/dist/components/list/listItem.mjs +5 -5
  138. package/dist/components/modal/GlobalModalProvider.d.mts +2 -0
  139. package/dist/components/modal/GlobalModalProvider.d.ts +2 -0
  140. package/dist/components/modal/GlobalModalProvider.js +1028 -416
  141. package/dist/components/modal/GlobalModalProvider.mjs +12 -11
  142. package/dist/components/modal/index.d.mts +2 -0
  143. package/dist/components/modal/index.d.ts +2 -0
  144. package/dist/components/modal/index.js +1028 -416
  145. package/dist/components/modal/index.mjs +13 -12
  146. package/dist/components/modal/modal.d.mts +101 -29
  147. package/dist/components/modal/modal.d.ts +101 -29
  148. package/dist/components/modal/modal.js +1028 -416
  149. package/dist/components/modal/modal.mjs +11 -10
  150. package/dist/components/modal/useGlobalModal.d.mts +2 -0
  151. package/dist/components/modal/useGlobalModal.d.ts +2 -0
  152. package/dist/components/modal/useGlobalModal.mjs +13 -12
  153. package/dist/components/pagination/index.js +598 -212
  154. package/dist/components/pagination/index.mjs +5 -5
  155. package/dist/components/pagination/pagination.js +598 -212
  156. package/dist/components/pagination/pagination.mjs +5 -5
  157. package/dist/components/picker/datePicker.js +1029 -705
  158. package/dist/components/picker/datePicker.mjs +12 -11
  159. package/dist/components/picker/day.js +366 -4
  160. package/dist/components/picker/day.mjs +2 -2
  161. package/dist/components/picker/index.js +1027 -703
  162. package/dist/components/picker/index.mjs +15 -14
  163. package/dist/components/picker/timePicker/Panel.js +831 -21
  164. package/dist/components/picker/timePicker/Panel.mjs +10 -9
  165. package/dist/components/picker/timePicker/index.js +976 -99
  166. package/dist/components/picker/timePicker/index.mjs +12 -11
  167. package/dist/components/progress/index.js +381 -18
  168. package/dist/components/progress/index.mjs +2 -2
  169. package/dist/components/progress/progress.d.mts +21 -18
  170. package/dist/components/progress/progress.d.ts +21 -18
  171. package/dist/components/progress/progress.js +381 -18
  172. package/dist/components/progress/progress.mjs +2 -2
  173. package/dist/components/radio/index.js +389 -41
  174. package/dist/components/radio/index.mjs +2 -2
  175. package/dist/components/radio/radio.d.mts +33 -48
  176. package/dist/components/radio/radio.d.ts +33 -48
  177. package/dist/components/radio/radio.js +389 -41
  178. package/dist/components/radio/radio.mjs +2 -2
  179. package/dist/components/ripple/index.mjs +3 -3
  180. package/dist/components/select/index.js +819 -221
  181. package/dist/components/select/index.mjs +10 -9
  182. package/dist/components/select/select.js +819 -221
  183. package/dist/components/select/select.mjs +10 -9
  184. package/dist/components/slider/index.d.mts +4 -0
  185. package/dist/components/slider/index.d.ts +4 -0
  186. package/dist/components/slider/index.js +955 -0
  187. package/dist/components/slider/index.mjs +11 -0
  188. package/dist/components/slider/slider.d.mts +158 -0
  189. package/dist/components/slider/slider.d.ts +158 -0
  190. package/dist/components/slider/slider.js +949 -0
  191. package/dist/components/slider/slider.mjs +10 -0
  192. package/dist/components/starRating/index.js +486 -57
  193. package/dist/components/starRating/index.mjs +4 -4
  194. package/dist/components/starRating/starRating.js +486 -57
  195. package/dist/components/starRating/starRating.mjs +4 -4
  196. package/dist/components/switch/index.js +22 -25
  197. package/dist/components/switch/index.mjs +1 -1
  198. package/dist/components/switch/switch.d.mts +0 -18
  199. package/dist/components/switch/switch.d.ts +0 -18
  200. package/dist/components/switch/switch.js +22 -25
  201. package/dist/components/switch/switch.mjs +1 -1
  202. package/dist/components/table/definition-table.js +366 -4
  203. package/dist/components/table/definition-table.mjs +2 -2
  204. package/dist/components/table/form-table.js +366 -4
  205. package/dist/components/table/form-table.mjs +1 -1
  206. package/dist/components/table/index.js +679 -291
  207. package/dist/components/table/index.mjs +10 -10
  208. package/dist/components/table/table-body.js +679 -291
  209. package/dist/components/table/table-body.mjs +7 -7
  210. package/dist/components/table/table-head.js +679 -291
  211. package/dist/components/table/table-head.mjs +7 -7
  212. package/dist/components/table/table.d.mts +8 -29
  213. package/dist/components/table/table.d.ts +8 -29
  214. package/dist/components/table/table.js +679 -291
  215. package/dist/components/table/table.mjs +7 -7
  216. package/dist/components/tabs/index.js +366 -4
  217. package/dist/components/tabs/index.mjs +2 -2
  218. package/dist/components/tabs/tabs.js +366 -4
  219. package/dist/components/tabs/tabs.mjs +2 -2
  220. package/dist/components/textarea/index.js +67 -38
  221. package/dist/components/textarea/index.mjs +1 -1
  222. package/dist/components/textarea/textarea.d.mts +21 -0
  223. package/dist/components/textarea/textarea.d.ts +21 -0
  224. package/dist/components/textarea/textarea.js +67 -38
  225. package/dist/components/textarea/textarea.mjs +1 -1
  226. package/dist/components/timePicker/calendar.js +486 -57
  227. package/dist/components/timePicker/calendar.mjs +3 -3
  228. package/dist/components/toast/index.js +486 -57
  229. package/dist/components/toast/index.mjs +5 -5
  230. package/dist/components/toast/toast.js +486 -57
  231. package/dist/components/toast/toast.mjs +4 -4
  232. package/dist/components/toast/use-toast.js +486 -57
  233. package/dist/components/toast/use-toast.mjs +5 -5
  234. package/dist/components/tooltip/index.js +366 -4
  235. package/dist/components/tooltip/index.mjs +2 -2
  236. package/dist/components/tooltip/tooltip.js +366 -4
  237. package/dist/components/tooltip/tooltip.mjs +2 -2
  238. package/dist/components/tree/index.js +486 -57
  239. package/dist/components/tree/index.mjs +4 -4
  240. package/dist/components/tree/tree.js +486 -57
  241. package/dist/components/tree/tree.mjs +4 -4
  242. package/dist/index.d.mts +1 -0
  243. package/dist/index.d.ts +1 -0
  244. package/dist/index.js +1705 -1281
  245. package/dist/index.mjs +76 -70
  246. package/dist/utils/tailwind-variants.js +366 -4
  247. package/dist/utils/tailwind-variants.mjs +1 -1
  248. package/package.json +1 -1
  249. package/dist/chunk-6AID2NLT.mjs +0 -37
  250. package/dist/chunk-BBRO35V3.mjs +0 -385
  251. package/dist/chunk-EVJ46M3U.mjs +0 -141
  252. package/dist/chunk-SKX5QPUD.mjs +0 -482
@@ -117,6 +117,352 @@ var import_tailwind_variants = require("tailwind-variants");
117
117
  // ../tailwind-config/src/plugin.ts
118
118
  var import_plugin = __toESM(require_plugin());
119
119
 
120
+ // ../tailwind-config/src/colors/primitive-palette.ts
121
+ var primitivePalette = {
122
+ bg: {
123
+ "01": "#040811",
124
+ "02": "#040811",
125
+ "03": "#14161E",
126
+ "04": "#070414",
127
+ "05": "#070C12",
128
+ "06": "#202123"
129
+ },
130
+ gray: {
131
+ cool: {
132
+ 50: "#F7F7F8",
133
+ 100: "#EEEEF0",
134
+ 200: "#D8D9DF",
135
+ 300: "#B6B8C3",
136
+ 400: "#999CA9",
137
+ 500: "#717486",
138
+ 600: "#5B5E6E",
139
+ 700: "#4A4C5A",
140
+ 800: "#40424C",
141
+ 900: "#36373F",
142
+ 950: "#25252C"
143
+ },
144
+ warm: {
145
+ 50: "#F6F6F6",
146
+ 100: "#E7E7E7",
147
+ 200: "#D1D1D1",
148
+ 300: "#B0B0B0",
149
+ 400: "#888888",
150
+ 500: "#6D6D6D",
151
+ 600: "#5D5D5D",
152
+ 700: "#525252",
153
+ 800: "#454545",
154
+ 900: "#3D3D3D",
155
+ 950: "#25252C"
156
+ }
157
+ },
158
+ opacity: {
159
+ white: {
160
+ "0": "#FFFFFF, 0",
161
+ 5: "#FFFFFF, 5",
162
+ 10: "#FFFFFF, 10",
163
+ 20: "#FFFFFF, 20",
164
+ 30: "#FFFFFF, 30",
165
+ 40: "#FFFFFF, 40",
166
+ 50: "#FFFFFF, 50",
167
+ 60: "#FFFFFF, 60",
168
+ 70: "#FFFFFF, 70",
169
+ 80: "#FFFFFF, 80",
170
+ 90: "#FFFFFF, 90"
171
+ },
172
+ black: {
173
+ "0": "#000000, 0",
174
+ 5: "#000000, 5",
175
+ 10: "#000000, 10",
176
+ 20: "#000000, 20",
177
+ 30: "#000000, 30",
178
+ 40: "#000000, 40",
179
+ 50: "#000000, 50",
180
+ 60: "#000000, 60",
181
+ 70: "#000000, 70",
182
+ 80: "#000000, 80",
183
+ 90: "#000000, 90"
184
+ }
185
+ },
186
+ red: {
187
+ 50: "#FEF2F2",
188
+ 100: "#FEE9E9",
189
+ 200: "#FCCFD2",
190
+ 300: "#F9A8AC",
191
+ 400: "#F57780",
192
+ 500: "#EC4757",
193
+ 600: "#D82640",
194
+ 700: "#B71934",
195
+ 800: "#991832",
196
+ 900: "#831831",
197
+ 950: "#831831"
198
+ },
199
+ rose: {
200
+ 50: "#FDF4F6",
201
+ 100: "#F9E9EC",
202
+ 200: "#F4D8DD",
203
+ 300: "#E9B8C2",
204
+ 400: "#DF96A6",
205
+ 500: "#CB6881",
206
+ 600: "#B54969",
207
+ 700: "#973957",
208
+ 800: "#7F324D",
209
+ 900: "#6A2740",
210
+ 950: "#3C1523"
211
+ },
212
+ hotPink: {
213
+ 50: "#FDF2F7",
214
+ 100: "#FDE6F0",
215
+ 200: "#FCCEE3",
216
+ 300: "#FBA6CA",
217
+ 400: "#F76FA6",
218
+ 500: "#F04485",
219
+ 600: "#E2326C",
220
+ 700: "#C21448",
221
+ 800: "#A1133C",
222
+ 900: "#861535",
223
+ 950: "#52051B"
224
+ },
225
+ sepia: {
226
+ 50: "#FCF5F4",
227
+ 100: "#FAE9E9",
228
+ 200: "#F5D6D7",
229
+ 300: "#EDB4B6",
230
+ 400: "#E28A8F",
231
+ 500: "#D45F69",
232
+ 600: "#BE4051",
233
+ 700: "#9F3142",
234
+ 800: "#862B3C",
235
+ 900: "#6B2433",
236
+ 950: "#320E15"
237
+ },
238
+ orange: {
239
+ 50: "#FEF7EE",
240
+ 100: "#FDEDD7",
241
+ 200: "#F9D8AF",
242
+ 300: "#F5BB7C",
243
+ 400: "#F09447",
244
+ 500: "#EC7723",
245
+ 600: "#E15F19",
246
+ 700: "#E15F19",
247
+ 800: "#92391A",
248
+ 900: "#763118",
249
+ 950: "#40160A"
250
+ },
251
+ yellow: {
252
+ 50: "#F9F2E5",
253
+ 100: "#F5E6BC",
254
+ 200: "#FFE9BC",
255
+ 300: "#FFD174",
256
+ 400: "#F8BE4A",
257
+ 500: "#EAAD30",
258
+ 600: "#D77908",
259
+ 700: "#B2550B",
260
+ 800: "#91420F",
261
+ 900: "#773610",
262
+ 950: "#441B04"
263
+ },
264
+ tree: {
265
+ 50: "#F5F3F1",
266
+ 100: "#E5E1DC",
267
+ 200: "#CCC5BC",
268
+ 300: "#AFA395",
269
+ 400: "#978878",
270
+ 500: "#907E6F",
271
+ 600: "#756459",
272
+ 700: "#5F4F49",
273
+ 800: "#524541",
274
+ 900: "#483D3B",
275
+ 950: "#282120"
276
+ },
277
+ brown: {
278
+ 50: "#F6F3F0",
279
+ 100: "#F4EDEC",
280
+ 200: "#EBDFDD",
281
+ 300: "#DCC9C5",
282
+ 400: "#C6A9A3",
283
+ 500: "#B08983",
284
+ 600: "#A27E77",
285
+ 700: "#7F5D56",
286
+ 800: "#6A4F4A",
287
+ 900: "#5B4541",
288
+ 950: "#2C1E1C"
289
+ },
290
+ lime: {
291
+ 50: "#F7FFE5",
292
+ 100: "#ECFFC7",
293
+ 200: "#D9FF95",
294
+ 300: "#BDFE58",
295
+ 400: "#A1F524",
296
+ 500: "#82DC06",
297
+ 600: "#63B000",
298
+ 700: "#4B8506",
299
+ 800: "#3E690B",
300
+ 900: "#34580F",
301
+ 950: "#193102"
302
+ },
303
+ green: {
304
+ 50: "#E7F3EB",
305
+ 100: "#DFF9EA",
306
+ 200: "#CEECDA",
307
+ 300: "#9CD4B3",
308
+ 400: "#6EC092",
309
+ 500: "#3FA46B",
310
+ 600: "#209754",
311
+ 700: "#1E7745",
312
+ 800: "#1D5E3A",
313
+ 900: "#194E32",
314
+ 950: "#082B19"
315
+ },
316
+ timberGreen: {
317
+ 50: "#F1FCF5",
318
+ 100: "#DFF9EA",
319
+ 200: "#B5DACD",
320
+ 300: "#8ABFAF",
321
+ 400: "#60A18F",
322
+ 500: "#468675",
323
+ 600: "#366B5F",
324
+ 700: "#2E574D",
325
+ 800: "#2A4641",
326
+ 900: "#1D2F2B",
327
+ 950: "#11221E"
328
+ },
329
+ teal: {
330
+ 50: "#E2F1F0",
331
+ 100: "#C9EBE8",
332
+ 200: "#C7E8E5",
333
+ 300: "#8AD0D0",
334
+ 400: "#67C4C4",
335
+ 500: "#39A6A7",
336
+ 600: "#258386",
337
+ 700: "#1B666A",
338
+ 800: "#1A5255",
339
+ 900: "#1A4447",
340
+ 950: "#09272A"
341
+ },
342
+ lightBlue: {
343
+ 50: "#F2F8FD",
344
+ 100: "#E3EFFB",
345
+ 200: "#C1E0F6",
346
+ 300: "#8BC6EE",
347
+ 400: "#3DA2E1",
348
+ 500: "#258FD2",
349
+ 600: "#1771B2",
350
+ 700: "#145A90",
351
+ 800: "#154D77",
352
+ 900: "#174163",
353
+ 950: "#062C2D"
354
+ },
355
+ sea: {
356
+ 50: "#F4F6FC",
357
+ 100: "#E8EDF6",
358
+ 200: "#CBD9EB",
359
+ 300: "#9FB9DA",
360
+ 400: "#6A93C5",
361
+ 500: "#446FA4",
362
+ 600: "#375D92",
363
+ 700: "#2D4B77",
364
+ 800: "#294163",
365
+ 900: "#263954",
366
+ 950: "#1A2537"
367
+ },
368
+ blue: {
369
+ 50: "#F0F6FE",
370
+ 100: "#DDEAFC",
371
+ 200: "#C2DBFB",
372
+ 300: "#98C5F8",
373
+ 400: "#68A7F2",
374
+ 500: "#377CEB",
375
+ 600: "#2F68E1",
376
+ 700: "#2754CE",
377
+ 800: "#20429E",
378
+ 900: "#1C2A52",
379
+ 950: "#061132"
380
+ },
381
+ lightPurple: {
382
+ 50: "#F6F5FD",
383
+ 100: "#EEEDFA",
384
+ 200: "#DDDCFD",
385
+ 300: "#BDB9EC",
386
+ 400: "#AAA1E4",
387
+ 500: "#826CE3",
388
+ 600: "#7250D7",
389
+ 700: "#623DC4",
390
+ 800: "#5133A4",
391
+ 900: "#442B87",
392
+ 950: "#291A5B"
393
+ }
394
+ };
395
+
396
+ // ../tailwind-config/src/colors/semantic-palette.ts
397
+ var semanticPalette = {
398
+ primary: {
399
+ soft: { light: primitivePalette.blue[100], dark: primitivePalette.blue[950] },
400
+ light: { light: primitivePalette.blue[200], dark: primitivePalette.blue[900] },
401
+ main: { light: primitivePalette.blue[600], dark: primitivePalette.blue[600] },
402
+ dark: { light: primitivePalette.blue[800], dark: primitivePalette.blue[500] },
403
+ strong: { light: primitivePalette.blue[900], dark: primitivePalette.blue[200] }
404
+ },
405
+ secondary: {
406
+ soft: { light: primitivePalette.lightPurple[100], dark: primitivePalette.lightPurple[950] },
407
+ light: { light: primitivePalette.lightPurple[200], dark: primitivePalette.lightPurple[900] },
408
+ main: { light: primitivePalette.lightPurple[600], dark: primitivePalette.lightPurple[500] },
409
+ dark: { light: primitivePalette.lightPurple[800], dark: primitivePalette.lightPurple[700] },
410
+ strong: { light: primitivePalette.lightPurple[950], dark: primitivePalette.lightPurple[950] }
411
+ },
412
+ body: {
413
+ foreground: { light: primitivePalette.gray.cool[950], dark: primitivePalette.gray.cool[50] },
414
+ background: { light: primitivePalette.gray.cool[50], dark: primitivePalette.bg["06"] }
415
+ },
416
+ neutral: {
417
+ soft: { light: primitivePalette.gray.cool[100], dark: primitivePalette.gray.cool[900] },
418
+ light: { light: primitivePalette.gray.cool[200], dark: primitivePalette.gray.cool[700] },
419
+ main: { light: primitivePalette.gray.cool[400], dark: primitivePalette.gray.cool[400] },
420
+ dark: { light: primitivePalette.gray.cool[500], dark: primitivePalette.gray.cool[300] },
421
+ strong: { light: primitivePalette.gray.cool[700], dark: primitivePalette.gray.cool[200] }
422
+ },
423
+ trans: {
424
+ soft: { light: primitivePalette.opacity.black[5], dark: primitivePalette.opacity.white[5] },
425
+ light: { light: primitivePalette.opacity.black[10], dark: primitivePalette.opacity.white[10] },
426
+ main: { light: primitivePalette.opacity.black[20], dark: primitivePalette.opacity.white[20] },
427
+ dark: { light: primitivePalette.opacity.black[30], dark: primitivePalette.opacity.white[30] },
428
+ strong: { light: primitivePalette.opacity.black[60], dark: primitivePalette.opacity.black[60] }
429
+ },
430
+ common: {
431
+ black: { light: primitivePalette.gray.cool[950], dark: primitivePalette.gray.cool[950] },
432
+ white: { light: primitivePalette.gray.cool[50], dark: primitivePalette.gray.cool[50] },
433
+ transparent: { light: primitivePalette.opacity.white["0"], dark: primitivePalette.opacity.black["0"] },
434
+ hover: { light: primitivePalette.opacity.black[5], dark: primitivePalette.opacity.white[5] }
435
+ },
436
+ info: {
437
+ soft: { light: primitivePalette.teal[50], dark: primitivePalette.teal[950] },
438
+ light: { light: primitivePalette.teal[100], dark: primitivePalette.teal[900] },
439
+ main: { light: primitivePalette.teal[500], dark: primitivePalette.teal[500] },
440
+ dark: { light: primitivePalette.teal[600], dark: primitivePalette.teal[700] },
441
+ strong: { light: "", dark: "" }
442
+ },
443
+ success: {
444
+ soft: { light: primitivePalette.green[50], dark: primitivePalette.green[950] },
445
+ light: { light: primitivePalette.green[200], dark: primitivePalette.green[900] },
446
+ main: { light: primitivePalette.green[500], dark: primitivePalette.green[600] },
447
+ dark: { light: primitivePalette.green[600], dark: primitivePalette.green[700] },
448
+ strong: { light: "", dark: "" }
449
+ },
450
+ warning: {
451
+ soft: { light: primitivePalette.yellow[50], dark: primitivePalette.yellow[950] },
452
+ light: { light: primitivePalette.yellow[100], dark: primitivePalette.yellow[900] },
453
+ main: { light: primitivePalette.yellow[500], dark: primitivePalette.yellow[600] },
454
+ dark: { light: primitivePalette.yellow[600], dark: primitivePalette.yellow[700] },
455
+ strong: { light: "", dark: "" }
456
+ },
457
+ danger: {
458
+ soft: { light: primitivePalette.hotPink[50], dark: primitivePalette.hotPink[950] },
459
+ light: { light: primitivePalette.hotPink[200], dark: primitivePalette.hotPink[900] },
460
+ main: { light: primitivePalette.hotPink[500], dark: primitivePalette.hotPink[500] },
461
+ dark: { light: primitivePalette.hotPink[600], dark: primitivePalette.hotPink[700] },
462
+ strong: { light: "", dark: "" }
463
+ }
464
+ };
465
+
120
466
  // ../tailwind-config/src/typography/font.ts
121
467
  var fontSize = {
122
468
  h1: [
@@ -320,7 +666,7 @@ var boxShadow = {
320
666
  "drop-sm": "0 4px 12px 0 rgba(0, 0, 0, 0.1)",
321
667
  "drop-md": "0 6px 18px 0 rgba(0, 0, 0, 0.1)",
322
668
  "drop-lg": "0 8px 24px 0 rgba(0, 0, 0, 0.1)",
323
- "drop-xl": "0 10px 30px 0 rgba(0, 0, 0, 0.1)"
669
+ "drop-xl": "0 0px 60px 0 rgba(0, 0, 0, 0.2)"
324
670
  };
325
671
 
326
672
  // ../tailwind-config/src/border/radius.ts
@@ -329,8 +675,19 @@ var borderRadius = {
329
675
  md: "6px",
330
676
  lg: "8px",
331
677
  xl: "10px",
678
+ "2xl": "20px",
332
679
  none: "0",
333
- full: "9999px"
680
+ full: "9999px",
681
+ 2: "2px",
682
+ 5: "5px"
683
+ };
684
+
685
+ // ../tailwind-config/src/border/width.ts
686
+ var borderWidth = {
687
+ sm: "1px",
688
+ md: "1.25px",
689
+ lg: "1.5px",
690
+ xl: "1.75px"
334
691
  };
335
692
 
336
693
  // ../tailwind-config/src/space/gap.ts
@@ -338,7 +695,11 @@ var gap = {
338
695
  sm: "4px",
339
696
  md: "6px",
340
697
  lg: "8px",
341
- xl: "10px"
698
+ xl: "10px",
699
+ 5: "5px",
700
+ 10: "10px",
701
+ 20: "20px",
702
+ 30: "30px"
342
703
  };
343
704
 
344
705
  // src/utils/tailwind-variants.ts
@@ -353,7 +714,8 @@ var tv = (0, import_tailwind_variants.createTV)({
353
714
  borderRadius: [{ rounded: [...typedKeys(borderRadius)] }],
354
715
  boxShadow: [{ shadow: [...typedKeys(boxShadow)] }],
355
716
  padding: [{ p: [...COMMON_SIZE] }],
356
- gap: [{ gap: [...typedKeys(gap)] }]
717
+ gap: [{ gap: [...typedKeys(gap)] }],
718
+ borderWidth: [{ border: [...typedKeys(borderWidth)] }]
357
719
  }
358
720
  }
359
721
  });
@@ -426,6 +788,98 @@ var import_react_dom = require("react-dom");
426
788
  // src/components/icon/template.tsx
427
789
  var import_jsx_runtime2 = require("react/jsx-runtime");
428
790
  var template = {
791
+ left: ({ className }) => {
792
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
793
+ "svg",
794
+ {
795
+ xmlns: "http://www.w3.org/2000/svg",
796
+ width: "21",
797
+ height: "21",
798
+ viewBox: "0 0 21 21",
799
+ fill: "none",
800
+ className,
801
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
802
+ "path",
803
+ {
804
+ d: "M12.8333 15.1667L8.16667 10.5L12.8333 5.83334",
805
+ stroke: "currentColor",
806
+ strokeWidth: "1.25",
807
+ strokeLinecap: "round",
808
+ strokeLinejoin: "round"
809
+ }
810
+ )
811
+ }
812
+ );
813
+ },
814
+ "left-double": ({ className }) => {
815
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
816
+ "svg",
817
+ {
818
+ xmlns: "http://www.w3.org/2000/svg",
819
+ width: "21",
820
+ height: "21",
821
+ viewBox: "0 0 21 21",
822
+ fill: "none",
823
+ className,
824
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
825
+ "path",
826
+ {
827
+ d: "M15.1667 5.83334L9.98148 10.5L15.1667 15.1667M11.0185 5.83334L5.83334 10.5L11.0185 15.1667",
828
+ stroke: "currentColor",
829
+ strokeWidth: "1.25",
830
+ strokeLinecap: "round",
831
+ strokeLinejoin: "round"
832
+ }
833
+ )
834
+ }
835
+ );
836
+ },
837
+ right: ({ className }) => {
838
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
839
+ "svg",
840
+ {
841
+ xmlns: "http://www.w3.org/2000/svg",
842
+ width: "21",
843
+ height: "21",
844
+ viewBox: "0 0 21 21",
845
+ fill: "none",
846
+ className,
847
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
848
+ "path",
849
+ {
850
+ d: "M8.16666 5.83334L12.8333 10.5L8.16666 15.1667",
851
+ stroke: "currentColor",
852
+ strokeWidth: "1.25",
853
+ strokeLinecap: "round",
854
+ strokeLinejoin: "round"
855
+ }
856
+ )
857
+ }
858
+ );
859
+ },
860
+ "right-double": ({ className }) => {
861
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
862
+ "svg",
863
+ {
864
+ xmlns: "http://www.w3.org/2000/svg",
865
+ width: "21",
866
+ height: "21",
867
+ viewBox: "0 0 21 21",
868
+ fill: "none",
869
+ className,
870
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
871
+ "path",
872
+ {
873
+ d: "M5.83334 5.83334L11.0185 10.5L5.83334 15.1667M9.98149 5.83334L15.1667 10.5L9.98149 15.1667",
874
+ stroke: "currentColor",
875
+ strokeWidth: "1.25",
876
+ strokeLinecap: "round",
877
+ strokeLinejoin: "round"
878
+ }
879
+ )
880
+ }
881
+ );
882
+ },
429
883
  "left-chevron": ({ className }) => {
430
884
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
431
885
  "svg",
@@ -1811,46 +2265,6 @@ var template = {
1811
2265
  }
1812
2266
  );
1813
2267
  },
1814
- left: ({ className }) => {
1815
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1816
- "svg",
1817
- {
1818
- xmlns: "http://www.w3.org/2000/svg",
1819
- width: "22",
1820
- height: "22",
1821
- viewBox: "0 0 22 22",
1822
- fill: "none",
1823
- className,
1824
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1825
- "path",
1826
- {
1827
- d: "M14.4955 7.21404C14.4957 7.26442 14.4957 7.26442 14.4959 7.31582C14.4962 7.40882 14.4962 7.50182 14.496 7.59482C14.496 7.69521 14.4962 7.79559 14.4965 7.89598C14.4969 8.09257 14.497 8.28915 14.4969 8.48574C14.4968 8.64555 14.4969 8.80536 14.497 8.96516C14.4971 8.98791 14.4971 9.01066 14.4971 9.0341C14.4971 9.08032 14.4972 9.12653 14.4972 9.17275C14.4976 9.60613 14.4975 10.0395 14.4973 10.4729C14.4971 10.8692 14.4975 11.2656 14.4981 11.6619C14.4988 12.069 14.499 12.4761 14.4989 12.8832C14.4989 13.1117 14.4989 13.3402 14.4994 13.5687C14.4998 13.7633 14.4998 13.9578 14.4994 14.1524C14.4992 14.2516 14.4992 14.3508 14.4996 14.45C14.4999 14.5577 14.4997 14.6653 14.4993 14.7729C14.4995 14.8042 14.4997 14.8354 14.5 14.8676C14.4981 15.094 14.4635 15.2952 14.2769 15.4694C14.0633 15.6269 13.8501 15.6664 13.574 15.6667C13.3359 15.6312 13.1607 15.5177 12.9847 15.381C12.9446 15.3506 12.9044 15.3202 12.8642 15.2898C12.8338 15.2666 12.8338 15.2666 12.8028 15.2429C12.7059 15.1692 12.6076 15.0969 12.5094 15.0246C12.4807 15.0034 12.4807 15.0034 12.4515 14.9819C12.3238 14.8875 12.1955 14.7936 12.0669 14.7C11.8604 14.5497 11.6552 14.3982 11.4501 14.2465C11.3539 14.1754 11.2577 14.1043 11.1615 14.0332C11.1231 14.0048 11.0847 13.9765 11.0462 13.9481C11.0177 13.927 11.0177 13.927 10.9886 13.9055C10.1627 13.2955 9.33686 12.6854 8.51098 12.0753C8.49194 12.0613 8.47291 12.0472 8.45329 12.0328C8.41508 12.0045 8.37691 11.9762 8.33878 11.9479C8.23994 11.8746 8.14044 11.8021 8.03961 11.7309C7.56492 11.3929 7.56492 11.3929 7.50676 11.139C7.48169 10.8947 7.5218 10.7077 7.70431 10.5165C7.82684 10.4027 7.96443 10.3072 8.1052 10.2107C8.19396 10.1488 8.27857 10.0845 8.36282 10.0181C8.5044 9.90695 8.65122 9.80273 8.80011 9.69893C8.88704 9.63693 8.97086 9.57289 9.05425 9.50739C9.19583 9.3962 9.34265 9.29198 9.49154 9.18818C9.57847 9.12618 9.6623 9.06214 9.74569 8.99664C9.88726 8.88544 10.0341 8.78123 10.183 8.67742C10.2699 8.61542 10.3537 8.55139 10.4371 8.48589C10.5787 8.37469 10.7255 8.27048 10.8744 8.16667C10.9613 8.10467 11.0452 8.04064 11.1286 7.97514C11.2379 7.88937 11.3491 7.80701 11.464 7.72686C11.676 7.57888 11.881 7.42428 12.0868 7.26992C12.2036 7.18255 12.321 7.09588 12.4386 7.00934C12.5366 6.93723 12.6341 6.8648 12.7311 6.7917C13.3456 6.32986 13.3456 6.32986 13.7814 6.33404C13.9843 6.35117 14.1418 6.41415 14.2854 6.53943C14.4816 6.75169 14.4966 6.95069 14.4955 7.21404Z",
1828
- fill: "currentColor"
1829
- }
1830
- )
1831
- }
1832
- );
1833
- },
1834
- right: ({ className }) => {
1835
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1836
- "svg",
1837
- {
1838
- xmlns: "http://www.w3.org/2000/svg",
1839
- width: "22",
1840
- height: "22",
1841
- viewBox: "0 0 22 22",
1842
- fill: "none",
1843
- className,
1844
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1845
- "path",
1846
- {
1847
- d: "M7.50447 7.21404C7.50428 7.26442 7.50428 7.26442 7.50409 7.31582C7.50381 7.40882 7.50383 7.50182 7.50397 7.59482C7.50405 7.69521 7.50375 7.79559 7.5035 7.89598C7.50308 8.09257 7.50303 8.28915 7.5031 8.48574C7.50316 8.64555 7.5031 8.80536 7.50296 8.96516C7.50294 8.98791 7.50292 9.01066 7.5029 9.0341C7.50286 9.08032 7.50282 9.12653 7.50278 9.17275C7.50243 9.60613 7.5025 10.0395 7.5027 10.4729C7.50287 10.8692 7.5025 11.2656 7.50187 11.6619C7.50123 12.069 7.50096 12.4761 7.50109 12.8832C7.50115 13.1117 7.50107 13.3402 7.5006 13.5687C7.50021 13.7633 7.50016 13.9578 7.50056 14.1524C7.50076 14.2516 7.50079 14.3508 7.5004 14.45C7.50005 14.5577 7.50032 14.6653 7.50074 14.7729C7.50049 14.8042 7.50025 14.8354 7.5 14.8676C7.50185 15.094 7.53645 15.2952 7.72309 15.4694C7.93671 15.6269 8.14985 15.6664 8.42597 15.6667C8.66414 15.6312 8.8393 15.5177 9.01528 15.381C9.05544 15.3506 9.09561 15.3202 9.13579 15.2898C9.16617 15.2666 9.16617 15.2666 9.19716 15.2429C9.29408 15.1692 9.39237 15.0969 9.49064 15.0246C9.51926 15.0034 9.51926 15.0034 9.54847 14.9819C9.67623 14.8875 9.80451 14.7936 9.93307 14.7C10.1396 14.5497 10.3448 14.3982 10.5499 14.2465C10.6461 14.1754 10.7423 14.1043 10.8385 14.0332C10.8769 14.0048 10.9153 13.9765 10.9538 13.9481C10.9823 13.927 10.9823 13.927 11.0114 13.9055C11.8373 13.2955 12.6631 12.6854 13.489 12.0753C13.5081 12.0613 13.5271 12.0472 13.5467 12.0328C13.5849 12.0045 13.6231 11.9762 13.6612 11.9479C13.7601 11.8746 13.8596 11.8021 13.9604 11.7309C14.4351 11.3929 14.4351 11.3929 14.4932 11.139C14.5183 10.8947 14.4782 10.7077 14.2957 10.5165C14.1732 10.4027 14.0356 10.3072 13.8948 10.2107C13.806 10.1488 13.7214 10.0845 13.6372 10.0181C13.4956 9.90695 13.3488 9.80273 13.1999 9.69893C13.113 9.63693 13.0291 9.57289 12.9457 9.50739C12.8042 9.3962 12.6573 9.29198 12.5085 9.18818C12.4215 9.12618 12.3377 9.06214 12.2543 8.99664C12.1127 8.88544 11.9659 8.78123 11.817 8.67742C11.7301 8.61542 11.6463 8.55139 11.5629 8.48589C11.4213 8.37469 11.2745 8.27048 11.1256 8.16667C11.0387 8.10467 10.9548 8.04064 10.8714 7.97514C10.7621 7.88937 10.6509 7.80701 10.536 7.72686C10.324 7.57888 10.119 7.42428 9.9132 7.26992C9.79643 7.18255 9.67897 7.09588 9.56138 7.00934C9.46343 6.93723 9.36586 6.8648 9.26891 6.7917C8.65441 6.32986 8.65441 6.32986 8.21864 6.33404C8.01565 6.35117 7.85817 6.41415 7.7146 6.53943C7.51841 6.75169 7.50343 6.95069 7.50447 7.21404Z",
1848
- fill: "currentColor"
1849
- }
1850
- )
1851
- }
1852
- );
1853
- },
1854
2268
  "brace-left": ({ className }) => {
1855
2269
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1856
2270
  "svg",
@@ -2160,6 +2574,20 @@ var template = {
2160
2574
  }
2161
2575
  );
2162
2576
  },
2577
+ polygon: ({ className }) => {
2578
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
2579
+ "svg",
2580
+ {
2581
+ xmlns: "http://www.w3.org/2000/svg",
2582
+ width: "24",
2583
+ height: "24",
2584
+ viewBox: "0 0 24 24",
2585
+ fill: "none",
2586
+ className,
2587
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("polygon", { points: "12 4 20 9 20 15 12 20 4 15 4 9", stroke: "currentColor", strokeWidth: "2" })
2588
+ }
2589
+ );
2590
+ },
2163
2591
  "new-window": ({ className }) => {
2164
2592
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
2165
2593
  "svg",
@@ -5273,25 +5701,26 @@ var import_jsx_runtime3 = require("react/jsx-runtime");
5273
5701
  var Icon = ({ name, size = "md", fill = false, className, onClick, ...props }) => {
5274
5702
  const SVGIcon = template[name];
5275
5703
  const getInputIconSize = (size2) => {
5276
- switch (size2) {
5704
+ switch (String(size2)) {
5277
5705
  case "sm":
5278
- return "size-[18px]";
5706
+ return "w-[18px] h-[18px]";
5279
5707
  case "md":
5280
- return "size-[21px] stroke-[1.25px]";
5708
+ return "w-[21px] h-[21px] stroke-[1.25px]";
5281
5709
  case "lg":
5282
- return "size-[24px] stroke-[1.5px]";
5710
+ return "w-[24px] h-[24px] stroke-[1.5px]";
5283
5711
  case "xl":
5284
- return "size-[27px] stroke-[1.5px]";
5712
+ return "w-[27px] h-[27px] stroke-[1.5px]";
5713
+ case "20":
5714
+ return "w-[20px] h-[20px] stroke-[1.25px]";
5715
+ case "30":
5716
+ return "w-[30px] h-[30px] stroke-[1.5px]";
5717
+ case "40":
5718
+ return "w-[40px] h-[40px] stroke-[2px]";
5719
+ default:
5720
+ return "w-[21px] h-[21px] stroke-[1.25px]";
5285
5721
  }
5286
5722
  };
5287
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "h-fit w-fit", onClick, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
5288
- SVGIcon,
5289
- {
5290
- fill,
5291
- className: className ? `${getInputIconSize(size)} ${className}` : `${getInputIconSize(size)}`,
5292
- ...props
5293
- }
5294
- ) });
5723
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: `m-0 flex items-center justify-center p-0 ${className}`, onClick, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SVGIcon, { fill, className: getInputIconSize(size), ...props }) });
5295
5724
  };
5296
5725
  var Icon_default = Icon;
5297
5726
 
@@ -5332,328 +5761,139 @@ var getCurrent12Hour = () => {
5332
5761
  // src/components/button/button.tsx
5333
5762
  var import_react3 = require("react");
5334
5763
 
5335
- // src/components/ripple/ripple.tsx
5336
- var import_framer_motion = require("framer-motion");
5337
- var import_jsx_runtime4 = require("react/jsx-runtime");
5338
- var Ripple = (props) => {
5339
- const { ripples = [], motionProps, color = "currentColor", style, onClear } = props;
5340
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: ripples.map((ripple) => {
5341
- const duration = (0, import_framer_motion.clamp)(ripple.size > 100 ? 0.75 : 0.5, 0.01 * ripple.size, 0.2);
5342
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_framer_motion.LazyMotion, { features: import_framer_motion.domAnimation, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_framer_motion.AnimatePresence, { mode: "popLayout", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
5343
- import_framer_motion.m.span,
5344
- {
5345
- animate: { transform: "scale(2)", opacity: 0 },
5346
- className: "deepnoidui-ripple",
5347
- exit: { opacity: 0 },
5348
- initial: { transform: "scale(0)", opacity: 0.35 },
5349
- style: {
5350
- position: "absolute",
5351
- backgroundColor: color,
5352
- borderRadius: "100%",
5353
- transformOrigin: "center",
5354
- pointerEvents: "none",
5355
- overflow: "hidden",
5356
- inset: 0,
5357
- zIndex: 0,
5358
- top: ripple.y,
5359
- left: ripple.x,
5360
- width: `${ripple.size}px`,
5361
- height: `${ripple.size}px`,
5362
- ...style
5363
- },
5364
- transition: { duration },
5365
- onAnimationComplete: () => {
5366
- onClear(ripple.key);
5367
- },
5368
- ...motionProps
5764
+ // src/components/button/button.style.ts
5765
+ var buttonBaseStyle = tv({
5766
+ slots: {
5767
+ base: [
5768
+ "relative",
5769
+ "flex",
5770
+ "items-center",
5771
+ "justify-center",
5772
+ "whitespace-nowrap",
5773
+ "transition",
5774
+ "duration-200",
5775
+ "select-none",
5776
+ "overflow-hidden",
5777
+ "box-border",
5778
+ "border",
5779
+ "border-transparent"
5780
+ ]
5781
+ },
5782
+ variants: {
5783
+ variant: {
5784
+ solid: [],
5785
+ soft: [],
5786
+ outline: [],
5787
+ ghost: []
5788
+ },
5789
+ color: {
5790
+ primary: [],
5791
+ secondary: [],
5792
+ neutral: [],
5793
+ info: [],
5794
+ success: [],
5795
+ warning: [],
5796
+ danger: []
5797
+ },
5798
+ disabled: {
5799
+ true: {
5800
+ base: ["!bg-neutral-soft", "!border-neutral-soft", "!text-neutral-light", "pointer-events-none"]
5369
5801
  }
5370
- ) }) }, ripple.key);
5371
- }) });
5372
- };
5373
- Ripple.displayName = "HeroUI.Ripple";
5374
- var ripple_default = Ripple;
5375
-
5376
- // src/components/ripple/useRipple.ts
5377
- var import_react2 = require("react");
5378
- function useRipple(props = {}) {
5379
- const [ripples, setRipples] = (0, import_react2.useState)([]);
5380
- const getUniqueID = (key) => `${key}-${Math.random().toString(36).substr(2, 9)}`;
5381
- const onPress = (0, import_react2.useCallback)((event) => {
5382
- const trigger = event.currentTarget;
5383
- const rect = trigger.getBoundingClientRect();
5384
- const size = Math.max(trigger.clientWidth, trigger.clientHeight);
5385
- setRipples((prevRipples) => [
5386
- ...prevRipples,
5387
- {
5388
- key: getUniqueID(prevRipples.length.toString()),
5389
- size,
5390
- x: event.clientX - rect.left - size / 2,
5391
- y: event.clientY - rect.top - size / 2
5392
- }
5393
- ]);
5394
- }, []);
5395
- const onClear = (0, import_react2.useCallback)((key) => {
5396
- setRipples((prevState) => prevState.filter((ripple) => ripple.key !== key));
5397
- }, []);
5398
- return { ripples, onClear, onPress, ...props };
5399
- }
5400
-
5401
- // src/components/button/button.tsx
5402
- var import_jsx_runtime5 = require("react/jsx-runtime");
5403
- var extractTextFromChildren = (children) => {
5404
- if (typeof children === "string") {
5405
- return children;
5406
- }
5407
- if (typeof children === "number") {
5408
- return String(children);
5409
- }
5410
- if ((0, import_react3.isValidElement)(children)) {
5411
- const childProps = children.props;
5412
- return extractTextFromChildren(childProps.children);
5413
- }
5414
- if (Array.isArray(children)) {
5415
- return children.map((child) => extractTextFromChildren(child)).join(" ");
5416
- }
5417
- return "";
5418
- };
5419
- var Button = (0, import_react3.forwardRef)((originalProps, ref) => {
5420
- const [props, variantProps] = mapPropsVariants(originalProps, buttonStyle.variantKeys);
5421
- const { classNames, startContent, endContent, disableRipple, asChild, children, ...buttonProps } = props;
5422
- const slots = (0, import_react3.useMemo)(() => buttonStyle({ ...variantProps }), [variantProps]);
5423
- const { onPress: onRipplePressHandler, onClear: onClearRipple, ripples } = useRipple();
5424
- const autoAriaLabel = (0, import_react3.useMemo)(() => {
5425
- if (originalProps["aria-label"] || originalProps["aria-labelledby"]) {
5426
- return void 0;
5427
- }
5428
- if (originalProps.isLoading) {
5429
- const baseText = extractTextFromChildren(children);
5430
- return baseText ? `${baseText} (loading)` : "loading";
5431
- }
5432
- const textContent = extractTextFromChildren(children);
5433
- return textContent || void 0;
5434
- }, [originalProps["aria-label"], originalProps["aria-labelledby"], originalProps.isLoading, children]);
5435
- const handlePress = (0, import_react3.useCallback)(
5436
- (e) => {
5437
- if (disableRipple || originalProps.disabled) return;
5438
- onRipplePressHandler(e);
5439
- },
5440
- [disableRipple, originalProps.disabled, onRipplePressHandler]
5441
- );
5442
- const mouseDownHandler = (0, import_react3.useCallback)(
5443
- (e) => {
5444
- var _a;
5445
- (_a = buttonProps.onMouseDown) == null ? void 0 : _a.call(buttonProps, e);
5446
- if (disableRipple || originalProps.disabled) return;
5447
- handlePress(e);
5448
- },
5449
- [buttonProps.onMouseDown, disableRipple, originalProps.disabled, handlePress]
5450
- );
5451
- const getRippleProps = (0, import_react3.useCallback)(
5452
- () => ({ ripples, onClear: onClearRipple }),
5453
- [ripples, onClearRipple]
5454
- );
5455
- const getBaseProps = (0, import_react3.useCallback)(
5456
- () => ({
5457
- ...buttonProps,
5458
- onMouseDown: mouseDownHandler,
5459
- ref,
5460
- disabled: originalProps.disabled || originalProps.isLoading,
5461
- "data-loading": originalProps.isLoading,
5462
- className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
5463
- "aria-label": originalProps["aria-label"] || autoAriaLabel
5464
- }),
5465
- [
5466
- buttonProps,
5467
- mouseDownHandler,
5468
- ref,
5469
- originalProps.disabled,
5470
- originalProps.isLoading,
5471
- originalProps["aria-label"],
5472
- autoAriaLabel,
5473
- slots,
5474
- classNames == null ? void 0 : classNames.base
5475
- ]
5476
- );
5477
- const getContentProps = (0, import_react3.useCallback)(
5478
- () => ({
5479
- className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
5480
- size: originalProps.size
5481
- }),
5482
- [slots, classNames, originalProps.size]
5483
- );
5484
- const renderContent = (content) => {
5485
- if ((0, import_react3.isValidElement)(content)) {
5486
- const _content = content;
5487
- const existingProps = _content.props;
5488
- const mergedProps = {
5489
- ...getContentProps(),
5490
- className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
5491
- };
5492
- return (0, import_react3.cloneElement)(content, mergedProps);
5493
- } else {
5494
- const contentProps = getContentProps();
5495
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { ...contentProps, children: content });
5496
- }
5497
- };
5498
- const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: originalProps.isLoading ? renderContent(/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon_default, { name: "loading", className: "animate-spin" })) : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
5499
- startContent && renderContent(startContent),
5500
- children,
5501
- endContent && renderContent(endContent),
5502
- !disableRipple && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ripple_default, { ...getRippleProps() })
5503
- ] }) });
5504
- if (asChild && (0, import_react3.isValidElement)(children)) {
5505
- const childElement = children;
5506
- const baseProps = getBaseProps();
5507
- const mergedProps = {
5508
- ...childElement.props,
5509
- ...baseProps,
5510
- className: `${baseProps.className || ""} ${childElement.props.className || ""}`.trim(),
5511
- onClick: (e) => {
5512
- var _a, _b, _c;
5513
- (_b = (_a = childElement.props).onClick) == null ? void 0 : _b.call(_a, e);
5514
- (_c = baseProps.onClick) == null ? void 0 : _c.call(baseProps, e);
5515
- },
5516
- onMouseDown: (e) => {
5517
- var _a, _b, _c;
5518
- (_b = (_a = childElement.props).onMouseDown) == null ? void 0 : _b.call(_a, e);
5519
- (_c = baseProps.onMouseDown) == null ? void 0 : _c.call(baseProps, e);
5520
- },
5521
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: originalProps.isLoading ? renderContent(/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon_default, { name: "loading", className: "animate-spin" })) : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
5522
- startContent && renderContent(startContent),
5523
- childElement.props.children,
5524
- endContent && renderContent(endContent),
5525
- !disableRipple && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ripple_default, { ...getRippleProps() })
5526
- ] }) })
5527
- };
5528
- return (0, import_react3.cloneElement)(childElement, mergedProps);
5529
- }
5530
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { ...getBaseProps(), children: buttonContent });
5531
- });
5532
- Button.displayName = "Button";
5533
- var button_default = Button;
5534
- var buttonStyle = tv({
5535
- slots: {
5536
- base: "relative flex items-center justify-center whitespace-nowrap transition duration-200 select-none overflow-hidden box-border border border-transparent",
5537
- content: ""
5538
- },
5539
- variants: {
5540
- variant: {
5541
- solid: "",
5542
- soft: "",
5543
- outline: "",
5544
- ghost: ""
5545
- },
5546
- color: {
5547
- primary: "",
5548
- secondary: "",
5549
- neutral: "",
5550
- info: "",
5551
- success: "",
5552
- warning: "",
5553
- danger: ""
5554
- },
5555
- size: {
5556
- sm: {
5557
- base: "h-[24px] px-[8px] py-[3px] text-sm font-[700] rounded-sm gap-sm"
5558
- },
5559
- md: {
5560
- base: "h-[32px] px-[12px] py-[5.5px] text-md font-[700] rounded-md gap-md"
5561
- },
5562
- lg: {
5563
- base: "h-[40px] px-[16px] py-[8px] text-lg font-[700] rounded-lg gap-lg"
5564
- },
5565
- xl: {
5566
- base: "h-[50px] px-[20px] py-[11.5px] text-xl font-[700] rounded-xl gap-xl"
5567
- }
5568
- },
5569
- radius: {
5570
- default: {
5571
- base: ""
5572
- },
5573
- full: {
5574
- base: "rounded-full"
5575
- },
5576
- none: {
5577
- base: "rounded-none"
5578
- }
5579
- },
5580
- full: {
5581
- true: {
5582
- base: "w-full"
5583
- }
5584
- },
5585
- isLoading: {
5586
- true: {}
5587
- },
5588
- disabled: {
5589
- true: {
5590
- base: "!bg-neutral-soft !border-neutral-soft !text-neutral-light pointer-events-none"
5591
- }
5592
- },
5593
- isInGroup: {
5594
- true: {
5595
- base: "[&:not(:first-child):not(:last-child)]:rounded-none first:rounded-r-none last:rounded-l-none [&:not(:first-child)]:border-l-0"
5802
+ },
5803
+ isInGroup: {
5804
+ true: {
5805
+ base: [
5806
+ "[&:not(:first-child):not(:last-child)]:rounded-none",
5807
+ "first:rounded-r-none",
5808
+ "last:rounded-l-none",
5809
+ "[&:not(:first-child)]:border-l-0"
5810
+ ]
5596
5811
  }
5597
5812
  }
5598
5813
  },
5599
- defaultVariants: {
5600
- size: "md",
5601
- variant: "solid",
5602
- color: "primary",
5603
- full: false,
5604
- disabled: false,
5605
- isLoading: false,
5606
- isInGroup: false
5607
- },
5608
5814
  compoundVariants: [
5609
- // solid & color
5610
5815
  {
5611
5816
  variant: "solid",
5612
5817
  color: "primary",
5613
5818
  class: {
5614
- base: ["text-white", "bg-primary-main", "hover:bg-gradient-to-r", "hover:from-white/20", "hover:to-white/20"]
5819
+ base: [
5820
+ "text-white",
5821
+ "bg-primary-main",
5822
+ "hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-primary-main)]",
5823
+ "active:bg-primary-dark"
5824
+ ]
5615
5825
  }
5616
5826
  },
5617
5827
  {
5618
5828
  variant: "solid",
5619
5829
  color: "secondary",
5620
5830
  class: {
5621
- base: ["text-white", "bg-secondary-main", "hover:bg-gradient-to-r", "hover:from-white/20", "hover:to-white/20"]
5831
+ base: [
5832
+ "text-white",
5833
+ "bg-secondary-main",
5834
+ "hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-secondary-main)]",
5835
+ "active:bg-secondary-dark"
5836
+ ]
5622
5837
  }
5623
5838
  },
5624
5839
  {
5625
5840
  variant: "solid",
5626
5841
  color: "neutral",
5627
5842
  class: {
5628
- base: ["text-white", "bg-neutral-main", "hover:bg-gradient-to-r", "hover:from-white/20", "hover:to-white/20"]
5843
+ base: [
5844
+ "text-white",
5845
+ "bg-neutral-main",
5846
+ "hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-neutral-main)]",
5847
+ "active:bg-neutral-dark"
5848
+ ]
5629
5849
  }
5630
5850
  },
5631
5851
  {
5632
5852
  variant: "solid",
5633
5853
  color: "info",
5634
5854
  class: {
5635
- base: ["text-white", "bg-info-main", "hover:bg-gradient-to-r", "hover:from-white/20", "hover:to-white/20"]
5855
+ base: [
5856
+ "text-white",
5857
+ "bg-info-main",
5858
+ "hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-info-main)]",
5859
+ "active:bg-info-dark"
5860
+ ]
5636
5861
  }
5637
5862
  },
5638
5863
  {
5639
5864
  variant: "solid",
5640
5865
  color: "success",
5641
5866
  class: {
5642
- base: ["text-white", "bg-success-main", "hover:bg-gradient-to-r", "hover:from-white/20", "hover:to-white/20"]
5867
+ base: [
5868
+ "text-white",
5869
+ "bg-success-main",
5870
+ "hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-success-main)]",
5871
+ "active:bg-success-dark"
5872
+ ]
5643
5873
  }
5644
5874
  },
5645
5875
  {
5646
5876
  variant: "solid",
5647
5877
  color: "warning",
5648
5878
  class: {
5649
- base: ["text-white", "bg-warning-main", "hover:bg-gradient-to-r", "hover:from-white/20", "hover:to-white/20"]
5879
+ base: [
5880
+ "text-white",
5881
+ "bg-warning-main",
5882
+ "hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-warning-main)]",
5883
+ "active:bg-warning-dark"
5884
+ ]
5650
5885
  }
5651
5886
  },
5652
5887
  {
5653
5888
  variant: "solid",
5654
5889
  color: "danger",
5655
5890
  class: {
5656
- base: ["text-white", "bg-danger-main", "hover:bg-gradient-to-r", "hover:from-white/20", "hover:to-white/20"]
5891
+ base: [
5892
+ "text-white",
5893
+ "bg-danger-main",
5894
+ "hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-danger-main)]",
5895
+ "active:bg-danger-dark"
5896
+ ]
5657
5897
  }
5658
5898
  },
5659
5899
  // soft & color
@@ -5661,49 +5901,85 @@ var buttonStyle = tv({
5661
5901
  variant: "soft",
5662
5902
  color: "primary",
5663
5903
  class: {
5664
- base: ["text-primary-main", "bg-primary-soft", "border-primary-soft", "hover:border-primary-light"]
5904
+ base: [
5905
+ "text-primary-main",
5906
+ "bg-primary-soft",
5907
+ "border-primary-soft",
5908
+ "hover:border-primary-light",
5909
+ "active:bg-primary-light"
5910
+ ]
5665
5911
  }
5666
5912
  },
5667
5913
  {
5668
5914
  variant: "soft",
5669
5915
  color: "secondary",
5670
5916
  class: {
5671
- base: ["text-secondary-main", "bg-secondary-soft", "border-secondary-soft", "hover:border-secondary-light"]
5917
+ base: [
5918
+ "text-secondary-main",
5919
+ "bg-secondary-soft",
5920
+ "border-secondary-soft",
5921
+ "hover:border-secondary-light",
5922
+ "active:bg-secondary-light"
5923
+ ]
5672
5924
  }
5673
5925
  },
5674
5926
  {
5675
5927
  variant: "soft",
5676
5928
  color: "neutral",
5677
5929
  class: {
5678
- base: ["text-neutral-main", "bg-neutral-soft", "border-neutral-soft", "hover:border-neutral-light"]
5930
+ base: [
5931
+ "text-neutral-main",
5932
+ "bg-neutral-soft",
5933
+ "border-neutral-soft",
5934
+ "hover:border-neutral-light",
5935
+ "active:bg-neutral-light"
5936
+ ]
5679
5937
  }
5680
5938
  },
5681
5939
  {
5682
5940
  variant: "soft",
5683
5941
  color: "info",
5684
5942
  class: {
5685
- base: ["text-info-main", "bg-info-soft", "border-info-soft", "hover:border-info-light"]
5943
+ base: ["text-info-main", "bg-info-soft", "border-info-soft", "hover:border-info-light", "active:bg-info-light"]
5686
5944
  }
5687
5945
  },
5688
5946
  {
5689
5947
  variant: "soft",
5690
5948
  color: "success",
5691
5949
  class: {
5692
- base: ["text-success-main", "bg-success-soft", "border-success-soft", "hover:border-success-light"]
5950
+ base: [
5951
+ "text-success-main",
5952
+ "bg-success-soft",
5953
+ "border-success-soft",
5954
+ "hover:border-success-light",
5955
+ "active:bg-success-light"
5956
+ ]
5693
5957
  }
5694
5958
  },
5695
5959
  {
5696
5960
  variant: "soft",
5697
5961
  color: "warning",
5698
5962
  class: {
5699
- base: ["text-warning-main", "bg-warning-soft", "border-warning-soft", "hover:border-warning-light"]
5963
+ base: [
5964
+ "text-warning-main",
5965
+ "bg-warning-soft",
5966
+ "border-warning-soft",
5967
+ "hover:border-warning-light",
5968
+ "active:bg-warning-light"
5969
+ ]
5700
5970
  }
5701
5971
  },
5702
5972
  {
5703
5973
  variant: "soft",
5704
5974
  color: "danger",
5705
5975
  class: {
5706
- base: ["text-danger-main", "bg-danger-soft", "border-danger-soft", "hover:border-danger-light"]
5976
+ base: [
5977
+ "text-danger-main",
5978
+ "bg-danger-soft",
5979
+ "border-danger-soft",
5980
+ "hover:border-danger-light",
5981
+ "active:bg-danger-light"
5982
+ ]
5707
5983
  }
5708
5984
  },
5709
5985
  // outline & color
@@ -5711,49 +5987,91 @@ var buttonStyle = tv({
5711
5987
  variant: "outline",
5712
5988
  color: "primary",
5713
5989
  class: {
5714
- base: ["bg-body-background", "border-primary-main", "text-primary-main", "hover:bg-primary-soft"]
5990
+ base: [
5991
+ "bg-body-background",
5992
+ "border-primary-main",
5993
+ "text-primary-main",
5994
+ "hover:bg-primary-soft",
5995
+ "active:bg-primary-light"
5996
+ ]
5715
5997
  }
5716
5998
  },
5717
5999
  {
5718
6000
  variant: "outline",
5719
6001
  color: "secondary",
5720
6002
  class: {
5721
- base: ["bg-body-background", "border-secondary-main", "text-secondary-main", "hover:bg-secondary-soft"]
6003
+ base: [
6004
+ "bg-body-background",
6005
+ "border-secondary-main",
6006
+ "text-secondary-main",
6007
+ "hover:bg-secondary-soft",
6008
+ "active:bg-secondary-light"
6009
+ ]
5722
6010
  }
5723
6011
  },
5724
6012
  {
5725
6013
  variant: "outline",
5726
6014
  color: "neutral",
5727
6015
  class: {
5728
- base: ["bg-body-background", "border-neutral-main", "text-neutral-main", "hover:bg-neutral-soft"]
6016
+ base: [
6017
+ "bg-body-background",
6018
+ "border-neutral-main",
6019
+ "text-neutral-main",
6020
+ "hover:bg-neutral-soft",
6021
+ "active:bg-neutral-light"
6022
+ ]
5729
6023
  }
5730
6024
  },
5731
6025
  {
5732
6026
  variant: "outline",
5733
6027
  color: "info",
5734
6028
  class: {
5735
- base: ["bg-body-background", "border-info-main", "text-info-main", "hover:bg-info-soft"]
6029
+ base: [
6030
+ "bg-body-background",
6031
+ "border-info-main",
6032
+ "text-info-main",
6033
+ "hover:bg-info-soft",
6034
+ "active:bg-info-light"
6035
+ ]
5736
6036
  }
5737
6037
  },
5738
6038
  {
5739
6039
  variant: "outline",
5740
6040
  color: "success",
5741
6041
  class: {
5742
- base: ["bg-body-background", "border-success-main", "text-success-main", "hover:bg-success-soft"]
6042
+ base: [
6043
+ "bg-body-background",
6044
+ "border-success-main",
6045
+ "text-success-main",
6046
+ "hover:bg-success-soft",
6047
+ "active:bg-success-light"
6048
+ ]
5743
6049
  }
5744
6050
  },
5745
6051
  {
5746
6052
  variant: "outline",
5747
6053
  color: "warning",
5748
6054
  class: {
5749
- base: ["bg-body-background", "border-warning-main", "text-warning-main", "hover:bg-warning-soft"]
6055
+ base: [
6056
+ "bg-body-background",
6057
+ "border-warning-main",
6058
+ "text-warning-main",
6059
+ "hover:bg-warning-soft",
6060
+ "active:bg-warning-light"
6061
+ ]
5750
6062
  }
5751
6063
  },
5752
6064
  {
5753
6065
  variant: "outline",
5754
6066
  color: "danger",
5755
6067
  class: {
5756
- base: ["bg-body-background", "border-danger-main", "text-danger-main", "hover:bg-danger-soft"]
6068
+ base: [
6069
+ "bg-body-background",
6070
+ "border-danger-main",
6071
+ "text-danger-main",
6072
+ "hover:bg-danger-soft",
6073
+ "active:bg-danger-light"
6074
+ ]
5757
6075
  }
5758
6076
  },
5759
6077
  // ghost & color
@@ -5761,49 +6079,91 @@ var buttonStyle = tv({
5761
6079
  variant: "ghost",
5762
6080
  color: "primary",
5763
6081
  class: {
5764
- base: ["text-primary-main", "border-transparent", "hover:bg-primary-soft"]
6082
+ base: [
6083
+ "text-primary-main",
6084
+ "border-transparent",
6085
+ "hover:bg-primary-soft",
6086
+ "active:bg-primary-main",
6087
+ "active:text-common-white"
6088
+ ]
5765
6089
  }
5766
6090
  },
5767
6091
  {
5768
6092
  variant: "ghost",
5769
6093
  color: "secondary",
5770
6094
  class: {
5771
- base: ["text-secondary-main", "border-transparent", "hover:bg-secondary-soft"]
6095
+ base: [
6096
+ "text-secondary-main",
6097
+ "border-transparent",
6098
+ "hover:bg-secondary-soft",
6099
+ "active:bg-secondary-main",
6100
+ "active:text-common-white"
6101
+ ]
5772
6102
  }
5773
6103
  },
5774
6104
  {
5775
6105
  variant: "ghost",
5776
6106
  color: "neutral",
5777
6107
  class: {
5778
- base: ["text-neutral-main", "border-transparent", "hover:bg-neutral-soft"]
6108
+ base: [
6109
+ "text-neutral-main",
6110
+ "border-transparent",
6111
+ "hover:bg-neutral-soft",
6112
+ "active:bg-neutral-main",
6113
+ "active:text-common-white"
6114
+ ]
5779
6115
  }
5780
6116
  },
5781
6117
  {
5782
6118
  variant: "ghost",
5783
6119
  color: "info",
5784
6120
  class: {
5785
- base: ["text-info-main", "border-transparent", "hover:bg-info-soft"]
6121
+ base: [
6122
+ "text-info-main",
6123
+ "border-transparent",
6124
+ "hover:bg-info-soft",
6125
+ "active:bg-info-main",
6126
+ "active:text-common-white"
6127
+ ]
5786
6128
  }
5787
6129
  },
5788
6130
  {
5789
6131
  variant: "ghost",
5790
6132
  color: "success",
5791
6133
  class: {
5792
- base: ["text-success-main", "border-transparent", "hover:bg-success-soft"]
6134
+ base: [
6135
+ "text-success-main",
6136
+ "border-transparent",
6137
+ "hover:bg-success-soft",
6138
+ "active:bg-success-main",
6139
+ "active:text-common-white"
6140
+ ]
5793
6141
  }
5794
6142
  },
5795
6143
  {
5796
6144
  variant: "ghost",
5797
6145
  color: "warning",
5798
6146
  class: {
5799
- base: ["text-warning-main", "border-transparent", "hover:bg-warning-soft"]
6147
+ base: [
6148
+ "text-warning-main",
6149
+ "border-transparent",
6150
+ "hover:bg-warning-soft",
6151
+ "active:bg-warning-main",
6152
+ "active:text-common-white"
6153
+ ]
5800
6154
  }
5801
6155
  },
5802
6156
  {
5803
6157
  variant: "ghost",
5804
6158
  color: "danger",
5805
6159
  class: {
5806
- base: ["text-danger-main", "border-transparent", "hover:bg-danger-soft"]
6160
+ base: [
6161
+ "text-danger-main",
6162
+ "border-transparent",
6163
+ "hover:bg-danger-soft",
6164
+ "active:bg-danger-main",
6165
+ "active:text-common-white"
6166
+ ]
5807
6167
  }
5808
6168
  },
5809
6169
  // variant && size
@@ -5811,28 +6171,28 @@ var buttonStyle = tv({
5811
6171
  variant: ["soft", "outline"],
5812
6172
  size: "sm",
5813
6173
  class: {
5814
- base: "border-[1px]"
6174
+ base: ["border-sm"]
5815
6175
  }
5816
6176
  },
5817
6177
  {
5818
6178
  variant: ["soft", "outline"],
5819
6179
  size: "md",
5820
6180
  class: {
5821
- base: "border-[1.25px]"
6181
+ base: ["border-md"]
5822
6182
  }
5823
6183
  },
5824
6184
  {
5825
6185
  variant: ["soft", "outline"],
5826
6186
  size: "lg",
5827
6187
  class: {
5828
- base: "border-[1.5px]"
6188
+ base: ["border-lg"]
5829
6189
  }
5830
6190
  },
5831
6191
  {
5832
6192
  variant: ["soft", "outline"],
5833
6193
  size: "xl",
5834
6194
  class: {
5835
- base: "border-[1.75px]"
6195
+ base: ["border-xl"]
5836
6196
  }
5837
6197
  },
5838
6198
  // variant && disabled
@@ -5840,29 +6200,280 @@ var buttonStyle = tv({
5840
6200
  variant: ["soft", "ghost"],
5841
6201
  disabled: true,
5842
6202
  class: {
5843
- base: "!border-neutral-soft"
6203
+ base: ["!border-neutral-soft"]
5844
6204
  }
5845
6205
  },
5846
6206
  {
5847
6207
  variant: ["outline"],
5848
6208
  disabled: true,
5849
6209
  class: {
5850
- base: "!border-neutral-light"
6210
+ base: ["!border-neutral-light"]
5851
6211
  }
5852
6212
  }
5853
6213
  ]
5854
6214
  });
5855
6215
 
5856
- // src/components/button/icon-button.tsx
5857
- var import_react4 = require("react");
5858
- var import_jsx_runtime6 = require("react/jsx-runtime");
5859
- var IconButton = (0, import_react4.forwardRef)((props, ref) => {
5860
- const [localProps, variantProps] = mapPropsVariants(props, iconButtonStyle.variantKeys);
5861
- const { classNames, name, disableRipple, disabled, isLoading, size, full, isInGroup, onMouseDown, ...buttonProps } = {
5862
- ...localProps,
5863
- ...variantProps
5864
- };
5865
- const slots = (0, import_react4.useMemo)(() => iconButtonStyle({ ...variantProps }), [variantProps]);
6216
+ // src/components/ripple/ripple.tsx
6217
+ var import_framer_motion = require("framer-motion");
6218
+ var import_jsx_runtime4 = require("react/jsx-runtime");
6219
+ var Ripple = (props) => {
6220
+ const { ripples = [], motionProps, color = "currentColor", style, onClear } = props;
6221
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: ripples.map((ripple) => {
6222
+ const duration = (0, import_framer_motion.clamp)(ripple.size > 100 ? 0.75 : 0.5, 0.01 * ripple.size, 0.2);
6223
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_framer_motion.LazyMotion, { features: import_framer_motion.domAnimation, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_framer_motion.AnimatePresence, { mode: "popLayout", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
6224
+ import_framer_motion.m.span,
6225
+ {
6226
+ animate: { transform: "scale(2)", opacity: 0 },
6227
+ className: "deepnoidui-ripple",
6228
+ exit: { opacity: 0 },
6229
+ initial: { transform: "scale(0)", opacity: 0.35 },
6230
+ style: {
6231
+ position: "absolute",
6232
+ backgroundColor: color,
6233
+ borderRadius: "100%",
6234
+ transformOrigin: "center",
6235
+ pointerEvents: "none",
6236
+ overflow: "hidden",
6237
+ inset: 0,
6238
+ zIndex: 0,
6239
+ top: ripple.y,
6240
+ left: ripple.x,
6241
+ width: `${ripple.size}px`,
6242
+ height: `${ripple.size}px`,
6243
+ ...style
6244
+ },
6245
+ transition: { duration },
6246
+ onAnimationComplete: () => {
6247
+ onClear(ripple.key);
6248
+ },
6249
+ ...motionProps
6250
+ }
6251
+ ) }) }, ripple.key);
6252
+ }) });
6253
+ };
6254
+ Ripple.displayName = "HeroUI.Ripple";
6255
+ var ripple_default = Ripple;
6256
+
6257
+ // src/components/ripple/useRipple.ts
6258
+ var import_react2 = require("react");
6259
+ function useRipple(props = {}) {
6260
+ const [ripples, setRipples] = (0, import_react2.useState)([]);
6261
+ const getUniqueID = (key) => `${key}-${Math.random().toString(36).substr(2, 9)}`;
6262
+ const onPress = (0, import_react2.useCallback)((event) => {
6263
+ const trigger = event.currentTarget;
6264
+ const rect = trigger.getBoundingClientRect();
6265
+ const size = Math.max(trigger.clientWidth, trigger.clientHeight);
6266
+ setRipples((prevRipples) => [
6267
+ ...prevRipples,
6268
+ {
6269
+ key: getUniqueID(prevRipples.length.toString()),
6270
+ size,
6271
+ x: event.clientX - rect.left - size / 2,
6272
+ y: event.clientY - rect.top - size / 2
6273
+ }
6274
+ ]);
6275
+ }, []);
6276
+ const onClear = (0, import_react2.useCallback)((key) => {
6277
+ setRipples((prevState) => prevState.filter((ripple) => ripple.key !== key));
6278
+ }, []);
6279
+ return { ripples, onClear, onPress, ...props };
6280
+ }
6281
+
6282
+ // src/components/button/button.tsx
6283
+ var import_jsx_runtime5 = require("react/jsx-runtime");
6284
+ var extractTextFromChildren = (children) => {
6285
+ if (typeof children === "string") {
6286
+ return children;
6287
+ }
6288
+ if (typeof children === "number") {
6289
+ return String(children);
6290
+ }
6291
+ if ((0, import_react3.isValidElement)(children)) {
6292
+ const childProps = children.props;
6293
+ return extractTextFromChildren(childProps.children);
6294
+ }
6295
+ if (Array.isArray(children)) {
6296
+ return children.map((child) => extractTextFromChildren(child)).join(" ");
6297
+ }
6298
+ return "";
6299
+ };
6300
+ var Button = (0, import_react3.forwardRef)((originalProps, ref) => {
6301
+ const [props, variantProps] = mapPropsVariants(originalProps, buttonStyle.variantKeys);
6302
+ const { classNames, startContent, endContent, disableRipple, asChild, children, ...buttonProps } = props;
6303
+ const slots = (0, import_react3.useMemo)(() => buttonStyle({ ...variantProps }), [variantProps]);
6304
+ const { onPress: onRipplePressHandler, onClear: onClearRipple, ripples } = useRipple();
6305
+ const autoAriaLabel = (0, import_react3.useMemo)(() => {
6306
+ if (originalProps["aria-label"] || originalProps["aria-labelledby"]) {
6307
+ return void 0;
6308
+ }
6309
+ if (originalProps.isLoading) {
6310
+ const baseText = extractTextFromChildren(children);
6311
+ return baseText ? `${baseText} (loading)` : "loading";
6312
+ }
6313
+ const textContent = extractTextFromChildren(children);
6314
+ return textContent || void 0;
6315
+ }, [originalProps["aria-label"], originalProps["aria-labelledby"], originalProps.isLoading, children]);
6316
+ const handlePress = (0, import_react3.useCallback)(
6317
+ (e) => {
6318
+ if (disableRipple || originalProps.disabled) return;
6319
+ onRipplePressHandler(e);
6320
+ },
6321
+ [disableRipple, originalProps.disabled, onRipplePressHandler]
6322
+ );
6323
+ const mouseDownHandler = (0, import_react3.useCallback)(
6324
+ (e) => {
6325
+ var _a;
6326
+ (_a = buttonProps.onMouseDown) == null ? void 0 : _a.call(buttonProps, e);
6327
+ if (disableRipple || originalProps.disabled) return;
6328
+ handlePress(e);
6329
+ },
6330
+ [buttonProps.onMouseDown, disableRipple, originalProps.disabled, handlePress]
6331
+ );
6332
+ const getRippleProps = (0, import_react3.useCallback)(
6333
+ () => ({ ripples, onClear: onClearRipple }),
6334
+ [ripples, onClearRipple]
6335
+ );
6336
+ const getBaseProps = (0, import_react3.useCallback)(
6337
+ () => ({
6338
+ ...buttonProps,
6339
+ onMouseDown: mouseDownHandler,
6340
+ ref,
6341
+ disabled: originalProps.disabled || originalProps.isLoading,
6342
+ "data-loading": originalProps.isLoading,
6343
+ className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
6344
+ "aria-label": originalProps["aria-label"] || autoAriaLabel
6345
+ }),
6346
+ [
6347
+ buttonProps,
6348
+ mouseDownHandler,
6349
+ ref,
6350
+ originalProps.disabled,
6351
+ originalProps.isLoading,
6352
+ originalProps["aria-label"],
6353
+ autoAriaLabel,
6354
+ slots,
6355
+ classNames == null ? void 0 : classNames.base
6356
+ ]
6357
+ );
6358
+ const getContentProps = (0, import_react3.useCallback)(
6359
+ () => ({
6360
+ className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
6361
+ size: originalProps.size
6362
+ }),
6363
+ [slots, classNames, originalProps.size]
6364
+ );
6365
+ const renderContent = (content) => {
6366
+ if ((0, import_react3.isValidElement)(content)) {
6367
+ const _content = content;
6368
+ const existingProps = _content.props;
6369
+ const mergedProps = {
6370
+ ...getContentProps(),
6371
+ className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
6372
+ };
6373
+ return (0, import_react3.cloneElement)(content, mergedProps);
6374
+ } else {
6375
+ const contentProps = getContentProps();
6376
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { ...contentProps, children: content });
6377
+ }
6378
+ };
6379
+ const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: originalProps.isLoading ? renderContent(/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon_default, { name: "loading", className: "animate-spin" })) : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
6380
+ startContent && renderContent(startContent),
6381
+ children,
6382
+ endContent && renderContent(endContent),
6383
+ !disableRipple && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ripple_default, { ...getRippleProps() })
6384
+ ] }) });
6385
+ if (asChild && (0, import_react3.isValidElement)(children)) {
6386
+ const childElement = children;
6387
+ const baseProps = getBaseProps();
6388
+ const mergedProps = {
6389
+ ...childElement.props,
6390
+ ...baseProps,
6391
+ className: `${baseProps.className || ""} ${childElement.props.className || ""}`.trim(),
6392
+ onClick: (e) => {
6393
+ var _a, _b, _c;
6394
+ (_b = (_a = childElement.props).onClick) == null ? void 0 : _b.call(_a, e);
6395
+ (_c = baseProps.onClick) == null ? void 0 : _c.call(baseProps, e);
6396
+ },
6397
+ onMouseDown: (e) => {
6398
+ var _a, _b, _c;
6399
+ (_b = (_a = childElement.props).onMouseDown) == null ? void 0 : _b.call(_a, e);
6400
+ (_c = baseProps.onMouseDown) == null ? void 0 : _c.call(baseProps, e);
6401
+ },
6402
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: originalProps.isLoading ? renderContent(/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon_default, { name: "loading", className: "animate-spin" })) : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
6403
+ startContent && renderContent(startContent),
6404
+ childElement.props.children,
6405
+ endContent && renderContent(endContent),
6406
+ !disableRipple && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ripple_default, { ...getRippleProps() })
6407
+ ] }) })
6408
+ };
6409
+ return (0, import_react3.cloneElement)(childElement, mergedProps);
6410
+ }
6411
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { ...getBaseProps(), children: buttonContent });
6412
+ });
6413
+ Button.displayName = "Button";
6414
+ var button_default = Button;
6415
+ var buttonStyle = tv({
6416
+ extend: buttonBaseStyle,
6417
+ slots: {
6418
+ base: ["w-fit"],
6419
+ content: []
6420
+ },
6421
+ variants: {
6422
+ size: {
6423
+ sm: {
6424
+ base: ["h-[24px]", "px-[8px]", "py-[3px]", "text-sm", "font-bold", "rounded-sm", "gap-sm"]
6425
+ },
6426
+ md: {
6427
+ base: ["h-[32px]", "px-[12px]", "py-[5.5px]", "text-md", "font-bold", "rounded-md", "gap-md"]
6428
+ },
6429
+ lg: {
6430
+ base: ["h-[40px]", "px-[16px]", "py-[8px]", "text-lg", "font-bold", "rounded-lg", "gap-lg"]
6431
+ },
6432
+ xl: {
6433
+ base: ["h-[50px]", "px-[20px]", "py-[11.5px]", "text-xl", "font-bold", "rounded-xl", "gap-xl"]
6434
+ }
6435
+ },
6436
+ radius: {
6437
+ default: {
6438
+ base: []
6439
+ },
6440
+ full: {
6441
+ base: ["rounded-full"]
6442
+ },
6443
+ none: {
6444
+ base: ["rounded-none"]
6445
+ }
6446
+ },
6447
+ full: {
6448
+ true: {
6449
+ base: ["w-full"]
6450
+ }
6451
+ },
6452
+ isLoading: {
6453
+ true: {}
6454
+ }
6455
+ },
6456
+ defaultVariants: {
6457
+ size: "md",
6458
+ variant: "solid",
6459
+ color: "primary",
6460
+ full: false,
6461
+ disabled: false,
6462
+ isLoading: false,
6463
+ isInGroup: false
6464
+ }
6465
+ });
6466
+
6467
+ // src/components/button/icon-button.tsx
6468
+ var import_react4 = require("react");
6469
+ var import_jsx_runtime6 = require("react/jsx-runtime");
6470
+ var IconButton = (0, import_react4.forwardRef)((props, ref) => {
6471
+ const [localProps, variantProps] = mapPropsVariants(props, iconButtonStyle.variantKeys);
6472
+ const { classNames, name, disableRipple, disabled, isLoading, size, isInGroup, onMouseDown, ...buttonProps } = {
6473
+ ...localProps,
6474
+ ...variantProps
6475
+ };
6476
+ const slots = (0, import_react4.useMemo)(() => iconButtonStyle({ ...variantProps }), [variantProps]);
5866
6477
  const { onPress, onClear, ripples } = useRipple();
5867
6478
  const handleRipple = (0, import_react4.useCallback)(
5868
6479
  (e) => {
@@ -5897,38 +6508,10 @@ var IconButton = (0, import_react4.forwardRef)((props, ref) => {
5897
6508
  );
5898
6509
  });
5899
6510
  IconButton.displayName = "IconButton";
5900
- var icon_button_default = IconButton;
5901
- var iconButtonStyle = tv({
5902
- slots: {
5903
- base: [
5904
- "relative",
5905
- "flex",
5906
- "items-center",
5907
- "justify-center",
5908
- "whitespace-nowrap",
5909
- "transition",
5910
- "duration-200",
5911
- "select-none",
5912
- "overflow-hidden",
5913
- "box-border"
5914
- ]
5915
- },
6511
+ var icon_button_default = IconButton;
6512
+ var iconButtonStyle = tv({
6513
+ extend: buttonBaseStyle,
5916
6514
  variants: {
5917
- variant: {
5918
- solid: [],
5919
- soft: [],
5920
- outline: [],
5921
- ghost: []
5922
- },
5923
- color: {
5924
- primary: [],
5925
- secondary: [],
5926
- neutral: [],
5927
- info: [],
5928
- success: [],
5929
- warning: [],
5930
- danger: []
5931
- },
5932
6515
  size: {
5933
6516
  sm: {
5934
6517
  base: ["w-[24px]", "h-[24px]", "rounded-sm"]
@@ -5943,270 +6526,15 @@ var iconButtonStyle = tv({
5943
6526
  base: ["w-[50px]", "h-[50px]", "rounded-xl"]
5944
6527
  }
5945
6528
  },
5946
- isLoading: {
5947
- true: {}
5948
- },
5949
- disabled: {
6529
+ full: {
5950
6530
  true: {
5951
- base: ["!bg-neutral-soft", "!border-neutral-soft", "!text-neutral-light", "pointer-events-none"]
6531
+ base: ["w-full", "h-full"]
5952
6532
  }
5953
6533
  },
5954
- isInGroup: {
5955
- true: {
5956
- base: [
5957
- "[&:not(:first-child):not(:last-child)]:rounded-none",
5958
- "first:rounded-r-none",
5959
- "last:rounded-l-none",
5960
- "[&:not(:first-child)]:border-l-0"
5961
- ]
5962
- }
6534
+ isLoading: {
6535
+ true: {}
5963
6536
  }
5964
6537
  },
5965
- compoundVariants: [
5966
- {
5967
- variant: "solid",
5968
- color: "primary",
5969
- class: {
5970
- base: ["text-white", "bg-primary-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
5971
- }
5972
- },
5973
- {
5974
- variant: "solid",
5975
- color: "secondary",
5976
- class: {
5977
- base: ["text-white", "bg-secondary-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
5978
- }
5979
- },
5980
- {
5981
- variant: "solid",
5982
- color: "neutral",
5983
- class: {
5984
- base: ["text-white", "bg-neutral-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
5985
- }
5986
- },
5987
- {
5988
- variant: "solid",
5989
- color: "info",
5990
- class: {
5991
- base: ["text-white", "bg-info-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
5992
- }
5993
- },
5994
- {
5995
- variant: "solid",
5996
- color: "success",
5997
- class: {
5998
- base: ["text-white", "bg-success-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
5999
- }
6000
- },
6001
- {
6002
- variant: "solid",
6003
- color: "warning",
6004
- class: {
6005
- base: ["text-white", "bg-warning-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
6006
- }
6007
- },
6008
- {
6009
- variant: "solid",
6010
- color: "danger",
6011
- class: {
6012
- base: ["text-white", "bg-danger-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
6013
- }
6014
- },
6015
- // soft
6016
- {
6017
- variant: "soft",
6018
- color: "primary",
6019
- class: {
6020
- base: ["text-primary-main", "bg-primary-soft", "!border-primary-soft", "hover:!border-primary-light"]
6021
- }
6022
- },
6023
- {
6024
- variant: "soft",
6025
- color: "secondary",
6026
- class: {
6027
- base: ["text-secondary-main", "bg-secondary-soft", "!border-secondary-soft", "hover:!border-secondary-light"]
6028
- }
6029
- },
6030
- {
6031
- variant: "soft",
6032
- color: "neutral",
6033
- class: {
6034
- base: ["text-neutral-main", "bg-neutral-soft", "!border-neutral-soft", "hover:!border-neutral-light"]
6035
- }
6036
- },
6037
- {
6038
- variant: "soft",
6039
- color: "info",
6040
- class: {
6041
- base: ["text-info-main", "bg-info-soft", "!border-info-soft", "hover:!border-info-light"]
6042
- }
6043
- },
6044
- {
6045
- variant: "soft",
6046
- color: "success",
6047
- class: {
6048
- base: ["text-success-main", "bg-success-soft", "!border-success-soft", "hover:!border-success-light"]
6049
- }
6050
- },
6051
- {
6052
- variant: "soft",
6053
- color: "warning",
6054
- class: {
6055
- base: ["text-warning-main", "bg-warning-soft", "!border-warning-soft", "hover:!border-warning-light"]
6056
- }
6057
- },
6058
- {
6059
- variant: "soft",
6060
- color: "danger",
6061
- class: {
6062
- base: ["text-danger-main", "bg-danger-soft", "!border-danger-soft", "hover:!border-danger-light"]
6063
- }
6064
- },
6065
- // outline
6066
- {
6067
- variant: "outline",
6068
- color: "primary",
6069
- class: {
6070
- base: ["bg-body-background", "!border-primary-main", "text-primary-main", "hover:bg-primary-soft"]
6071
- }
6072
- },
6073
- {
6074
- variant: "outline",
6075
- color: "secondary",
6076
- class: {
6077
- base: ["bg-body-background", "!border-secondary-main", "text-secondary-main", "hover:bg-secondary-soft"]
6078
- }
6079
- },
6080
- {
6081
- variant: "outline",
6082
- color: "neutral",
6083
- class: {
6084
- base: ["bg-body-background", "!border-neutral-light", "text-neutral-main", "hover:bg-neutral-soft"]
6085
- }
6086
- },
6087
- {
6088
- variant: "outline",
6089
- color: "info",
6090
- class: {
6091
- base: ["bg-body-background", "!border-info-main", "text-info-main", "hover:bg-info-soft"]
6092
- }
6093
- },
6094
- {
6095
- variant: "outline",
6096
- color: "success",
6097
- class: {
6098
- base: ["bg-body-background", "!border-success-main", "text-success-main", "hover:bg-success-soft"]
6099
- }
6100
- },
6101
- {
6102
- variant: "outline",
6103
- color: "warning",
6104
- class: {
6105
- base: ["bg-body-background", "!border-warning-main", "text-warning-main", "hover:bg-warning-soft"]
6106
- }
6107
- },
6108
- {
6109
- variant: "outline",
6110
- color: "danger",
6111
- class: {
6112
- base: ["bg-body-background", "!border-danger-main", "text-danger-main", "hover:bg-danger-soft"]
6113
- }
6114
- },
6115
- // ghost
6116
- {
6117
- variant: "ghost",
6118
- color: "primary",
6119
- class: {
6120
- base: ["text-primary-main", "border-transparent", "hover:bg-primary-soft"]
6121
- }
6122
- },
6123
- {
6124
- variant: "ghost",
6125
- color: "secondary",
6126
- class: {
6127
- base: ["text-secondary-main", "border-transparent", "hover:bg-secondary-soft"]
6128
- }
6129
- },
6130
- {
6131
- variant: "ghost",
6132
- color: "neutral",
6133
- class: {
6134
- base: ["text-neutral-main", "border-transparent", "hover:bg-neutral-soft"]
6135
- }
6136
- },
6137
- {
6138
- variant: "ghost",
6139
- color: "info",
6140
- class: {
6141
- base: ["text-info-main", "border-transparent", "hover:bg-info-soft"]
6142
- }
6143
- },
6144
- {
6145
- variant: "ghost",
6146
- color: "success",
6147
- class: {
6148
- base: ["text-success-main", "border-transparent", "hover:bg-success-soft"]
6149
- }
6150
- },
6151
- {
6152
- variant: "ghost",
6153
- color: "warning",
6154
- class: {
6155
- base: ["text-warning-main", "border-transparent", "hover:bg-warning-soft"]
6156
- }
6157
- },
6158
- {
6159
- variant: "ghost",
6160
- color: "danger",
6161
- class: {
6162
- base: ["text-danger-main", "border-transparent", "hover:bg-danger-soft"]
6163
- }
6164
- },
6165
- // soft/outline + size
6166
- {
6167
- variant: ["soft", "outline"],
6168
- size: "sm",
6169
- class: {
6170
- base: ["border-sm"]
6171
- }
6172
- },
6173
- {
6174
- variant: ["soft", "outline"],
6175
- size: "md",
6176
- class: {
6177
- base: ["border-md"]
6178
- }
6179
- },
6180
- {
6181
- variant: ["soft", "outline"],
6182
- size: "lg",
6183
- class: {
6184
- base: ["border-lg"]
6185
- }
6186
- },
6187
- {
6188
- variant: ["soft", "outline"],
6189
- size: "xl",
6190
- class: {
6191
- base: ["border-xl"]
6192
- }
6193
- },
6194
- // disabled + variant
6195
- {
6196
- variant: ["soft", "ghost"],
6197
- disabled: true,
6198
- class: {
6199
- base: ["!border-neutral-soft"]
6200
- }
6201
- },
6202
- {
6203
- variant: ["outline"],
6204
- disabled: true,
6205
- class: {
6206
- base: ["!border-neutral-light"]
6207
- }
6208
- }
6209
- ],
6210
6538
  defaultVariants: {
6211
6539
  size: "md",
6212
6540
  variant: "solid",
@@ -6310,10 +6638,11 @@ var TextButton = (0, import_react5.forwardRef)((originalProps, ref) => {
6310
6638
  TextButton.displayName = "TextButton";
6311
6639
  var text_button_default = TextButton;
6312
6640
  var textButtonStyle = tv({
6641
+ extend: buttonBaseStyle,
6313
6642
  slots: {
6314
- base: ["flex", "items-center", "justify-center", "whitespace-nowrap", "overflow-hidden"],
6643
+ base: ["!bg-transparent", "!border-transparent", "active:text-primary-strong", "font-bold"],
6315
6644
  content: [],
6316
- underline: ["underline", "decoration-skip-ink", "underline-offset-auto"]
6645
+ underline: ["underline", "decoration-skip-ink"]
6317
6646
  },
6318
6647
  variants: {
6319
6648
  variant: {
@@ -6332,35 +6661,30 @@ var textButtonStyle = tv({
6332
6661
  size: {
6333
6662
  sm: {
6334
6663
  base: ["text-sm"],
6335
- underline: ["decoration-[1px]"]
6664
+ underline: ["decoration-[0.6px]", "underline-offset-[2.4px]"]
6336
6665
  },
6337
6666
  md: {
6338
6667
  base: ["text-md"],
6339
- underline: ["decoration-[1.25px]"]
6668
+ underline: ["decoration-[0.7px]", "underline-offset-[2.8px]"]
6340
6669
  },
6341
6670
  lg: {
6342
6671
  base: ["text-lg"],
6343
- underline: ["decoration-[1.5px]"]
6672
+ underline: ["decoration-[0.8px]", "underline-offset-[3.2px]"]
6344
6673
  },
6345
6674
  xl: {
6346
6675
  base: ["text-xl"],
6347
- underline: ["decoration-[1.75px]"]
6676
+ underline: ["decoration-[0.9px]", "underline-offset-[3.6px]"]
6348
6677
  }
6349
6678
  },
6350
6679
  disabled: {
6351
6680
  true: {
6352
- base: ["!text-neutral-light", "pointer-events-none"]
6353
- }
6681
+ base: ["!bg-transparent", "!border-transparent", "!text-neutral-light", "pointer-events-none"]
6682
+ },
6683
+ false: {}
6354
6684
  },
6355
6685
  isInGroup: {
6356
- true: {
6357
- base: [
6358
- "[&:not(:first-child):not(:last-child)]:rounded-none",
6359
- "first:rounded-r-none",
6360
- "last:rounded-l-none",
6361
- "[&:not(:first-child)]:border-l-0"
6362
- ]
6363
- }
6686
+ true: {},
6687
+ false: {}
6364
6688
  }
6365
6689
  },
6366
6690
  compoundVariants: [
@@ -6379,7 +6703,7 @@ var textButtonStyle = tv({
6379
6703
  {
6380
6704
  color: "neutral",
6381
6705
  class: {
6382
- base: ["text-neutral-main", "hover:text-neutral-dark", "active:text-neutral-strong"]
6706
+ base: ["text-body-foreground", "hover:text-neutral-dark", "active:text-neutral-strong"]
6383
6707
  }
6384
6708
  },
6385
6709
  {
@@ -6555,10 +6879,10 @@ var inputStyle = tv(
6555
6879
  "placeholder:text-neutral-main",
6556
6880
  "outline-none",
6557
6881
  "focus:ring-0",
6558
- "group-has-[:hover:not(:read-only):not(:focus)]/input:text-neutral-dark",
6559
- "group-has-[:hover:not(:read-only):not(:focus)]/input:placeholder:text-neutral-dark",
6560
- "group-has-[:focus:not(:read-only)]/input:text-neutral-dark",
6561
- "group-has-[:focus:not(:read-only)]/input:placeholder:text-neutral-dark",
6882
+ "group-hover/input:text-neutral-dark",
6883
+ "group-hover/input:placeholder:text-neutral-dark",
6884
+ "focus:text-neutral-dark",
6885
+ "focus:placeholder:text-neutral-dark",
6562
6886
  "read-only:!text-body-foreground",
6563
6887
  "read-only:placeholder:!text-body-foreground"
6564
6888
  ],
@@ -6567,10 +6891,10 @@ var inputStyle = tv(
6567
6891
  "items-center",
6568
6892
  "select-none",
6569
6893
  "text-neutral-main",
6570
- "group-has-[:hover:not(:read-only):not(:focus)]/input:text-neutral-dark",
6571
- "read-only:!text-body-foreground"
6894
+ "transition-colors",
6895
+ "group-hover/input:text-neutral-dark"
6572
6896
  ],
6573
- helperMessage: ["text-neutral-main", "group-has-[:hover:not(:read-only):not(:focus)]/input:text-neutral-dark"],
6897
+ helperMessage: ["text-neutral-main", "group-hover/input:text-neutral-dark"],
6574
6898
  errorMessage: ["text-danger-main"],
6575
6899
  readonlyWrapper: [
6576
6900
  "pointer-events-none",
@@ -6609,46 +6933,46 @@ var inputStyle = tv(
6609
6933
  },
6610
6934
  color: {
6611
6935
  primary: {
6612
- content: ["group-has-[:focus:not(:read-only)]/input:text-primary-main", "read-only:!text-primary-main"],
6613
- helperMessage: ["group-has-[:focus:not(:read-only)]/input:text-primary-main"],
6614
- readonly: ["text-primary-main"]
6936
+ content: ["group-focus-within/input:!text-primary-main"],
6937
+ helperMessage: ["group-focus-within/input:!text-primary-main"],
6938
+ readonly: ["!text-primary-main"]
6615
6939
  },
6616
6940
  secondary: {
6617
- content: ["group-has-[:focus:not(:read-only)]/input:text-secondary-main", "read-only:!text-secondary-main"],
6618
- helperMessage: ["group-has-[:focus:not(:read-only)]/input:text-secondary-main"],
6619
- readonly: ["text-secondary-main"]
6941
+ content: ["group-focus-within/input:!text-secondary-main"],
6942
+ helperMessage: ["group-focus-within/input:!text-secondary-main"],
6943
+ readonly: ["!text-secondary-main"]
6620
6944
  }
6621
6945
  },
6622
6946
  size: {
6623
6947
  sm: {
6624
- base: ["text-sm", "gap-[4px]"],
6948
+ base: ["text-sm", "gap-sm"],
6625
6949
  label: ["text-sm"],
6626
- innerWrapper: ["gap-[4px]"],
6627
- inputWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[4px]", "gap-[4px]"],
6950
+ innerWrapper: ["gap-sm"],
6951
+ inputWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-xs", "gap-sm"],
6628
6952
  helperMessage: ["text-sm"],
6629
6953
  errorMessage: ["text-sm"]
6630
6954
  },
6631
6955
  md: {
6632
- base: ["text-md", "gap-[6px]"],
6956
+ base: ["text-md", "gap-md"],
6633
6957
  label: ["text-md"],
6634
- innerWrapper: ["gap-[6px]"],
6635
- inputWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-[6px]", "gap-[6px]"],
6958
+ innerWrapper: ["gap-md"],
6959
+ inputWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-sm", "gap-md"],
6636
6960
  helperMessage: ["text-sm"],
6637
6961
  errorMessage: ["text-sm"]
6638
6962
  },
6639
6963
  lg: {
6640
- base: ["text-lg", "gap-[8px]"],
6964
+ base: ["text-lg", "gap-lg"],
6641
6965
  label: ["text-lg"],
6642
- innerWrapper: ["gap-[8px]"],
6643
- inputWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-[8px]", "gap-[8px]"],
6966
+ innerWrapper: ["gap-lg"],
6967
+ inputWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-md", "gap-lg"],
6644
6968
  helperMessage: ["text-md"],
6645
6969
  errorMessage: ["text-md"]
6646
6970
  },
6647
6971
  xl: {
6648
- base: ["text-xl", "gap-[10px]"],
6972
+ base: ["text-xl", "gap-xl"],
6649
6973
  label: ["text-xl"],
6650
- innerWrapper: ["gap-[10px]"],
6651
- inputWrapper: ["w-[240px]", "h-[50px]", "rounded-lg", "px-[10px]", "gap-[10px]"],
6974
+ innerWrapper: ["gap-xl"],
6975
+ inputWrapper: ["w-[240px]", "h-[50px]", "rounded-lg", "px-lg", "gap-xl"],
6652
6976
  helperMessage: ["text-md"],
6653
6977
  errorMessage: ["text-md"]
6654
6978
  }