@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
@@ -114,6 +114,352 @@ var import_tailwind_variants = require("tailwind-variants");
114
114
  // ../tailwind-config/src/plugin.ts
115
115
  var import_plugin = __toESM(require_plugin());
116
116
 
117
+ // ../tailwind-config/src/colors/primitive-palette.ts
118
+ var primitivePalette = {
119
+ bg: {
120
+ "01": "#040811",
121
+ "02": "#040811",
122
+ "03": "#14161E",
123
+ "04": "#070414",
124
+ "05": "#070C12",
125
+ "06": "#202123"
126
+ },
127
+ gray: {
128
+ cool: {
129
+ 50: "#F7F7F8",
130
+ 100: "#EEEEF0",
131
+ 200: "#D8D9DF",
132
+ 300: "#B6B8C3",
133
+ 400: "#999CA9",
134
+ 500: "#717486",
135
+ 600: "#5B5E6E",
136
+ 700: "#4A4C5A",
137
+ 800: "#40424C",
138
+ 900: "#36373F",
139
+ 950: "#25252C"
140
+ },
141
+ warm: {
142
+ 50: "#F6F6F6",
143
+ 100: "#E7E7E7",
144
+ 200: "#D1D1D1",
145
+ 300: "#B0B0B0",
146
+ 400: "#888888",
147
+ 500: "#6D6D6D",
148
+ 600: "#5D5D5D",
149
+ 700: "#525252",
150
+ 800: "#454545",
151
+ 900: "#3D3D3D",
152
+ 950: "#25252C"
153
+ }
154
+ },
155
+ opacity: {
156
+ white: {
157
+ "0": "#FFFFFF, 0",
158
+ 5: "#FFFFFF, 5",
159
+ 10: "#FFFFFF, 10",
160
+ 20: "#FFFFFF, 20",
161
+ 30: "#FFFFFF, 30",
162
+ 40: "#FFFFFF, 40",
163
+ 50: "#FFFFFF, 50",
164
+ 60: "#FFFFFF, 60",
165
+ 70: "#FFFFFF, 70",
166
+ 80: "#FFFFFF, 80",
167
+ 90: "#FFFFFF, 90"
168
+ },
169
+ black: {
170
+ "0": "#000000, 0",
171
+ 5: "#000000, 5",
172
+ 10: "#000000, 10",
173
+ 20: "#000000, 20",
174
+ 30: "#000000, 30",
175
+ 40: "#000000, 40",
176
+ 50: "#000000, 50",
177
+ 60: "#000000, 60",
178
+ 70: "#000000, 70",
179
+ 80: "#000000, 80",
180
+ 90: "#000000, 90"
181
+ }
182
+ },
183
+ red: {
184
+ 50: "#FEF2F2",
185
+ 100: "#FEE9E9",
186
+ 200: "#FCCFD2",
187
+ 300: "#F9A8AC",
188
+ 400: "#F57780",
189
+ 500: "#EC4757",
190
+ 600: "#D82640",
191
+ 700: "#B71934",
192
+ 800: "#991832",
193
+ 900: "#831831",
194
+ 950: "#831831"
195
+ },
196
+ rose: {
197
+ 50: "#FDF4F6",
198
+ 100: "#F9E9EC",
199
+ 200: "#F4D8DD",
200
+ 300: "#E9B8C2",
201
+ 400: "#DF96A6",
202
+ 500: "#CB6881",
203
+ 600: "#B54969",
204
+ 700: "#973957",
205
+ 800: "#7F324D",
206
+ 900: "#6A2740",
207
+ 950: "#3C1523"
208
+ },
209
+ hotPink: {
210
+ 50: "#FDF2F7",
211
+ 100: "#FDE6F0",
212
+ 200: "#FCCEE3",
213
+ 300: "#FBA6CA",
214
+ 400: "#F76FA6",
215
+ 500: "#F04485",
216
+ 600: "#E2326C",
217
+ 700: "#C21448",
218
+ 800: "#A1133C",
219
+ 900: "#861535",
220
+ 950: "#52051B"
221
+ },
222
+ sepia: {
223
+ 50: "#FCF5F4",
224
+ 100: "#FAE9E9",
225
+ 200: "#F5D6D7",
226
+ 300: "#EDB4B6",
227
+ 400: "#E28A8F",
228
+ 500: "#D45F69",
229
+ 600: "#BE4051",
230
+ 700: "#9F3142",
231
+ 800: "#862B3C",
232
+ 900: "#6B2433",
233
+ 950: "#320E15"
234
+ },
235
+ orange: {
236
+ 50: "#FEF7EE",
237
+ 100: "#FDEDD7",
238
+ 200: "#F9D8AF",
239
+ 300: "#F5BB7C",
240
+ 400: "#F09447",
241
+ 500: "#EC7723",
242
+ 600: "#E15F19",
243
+ 700: "#E15F19",
244
+ 800: "#92391A",
245
+ 900: "#763118",
246
+ 950: "#40160A"
247
+ },
248
+ yellow: {
249
+ 50: "#F9F2E5",
250
+ 100: "#F5E6BC",
251
+ 200: "#FFE9BC",
252
+ 300: "#FFD174",
253
+ 400: "#F8BE4A",
254
+ 500: "#EAAD30",
255
+ 600: "#D77908",
256
+ 700: "#B2550B",
257
+ 800: "#91420F",
258
+ 900: "#773610",
259
+ 950: "#441B04"
260
+ },
261
+ tree: {
262
+ 50: "#F5F3F1",
263
+ 100: "#E5E1DC",
264
+ 200: "#CCC5BC",
265
+ 300: "#AFA395",
266
+ 400: "#978878",
267
+ 500: "#907E6F",
268
+ 600: "#756459",
269
+ 700: "#5F4F49",
270
+ 800: "#524541",
271
+ 900: "#483D3B",
272
+ 950: "#282120"
273
+ },
274
+ brown: {
275
+ 50: "#F6F3F0",
276
+ 100: "#F4EDEC",
277
+ 200: "#EBDFDD",
278
+ 300: "#DCC9C5",
279
+ 400: "#C6A9A3",
280
+ 500: "#B08983",
281
+ 600: "#A27E77",
282
+ 700: "#7F5D56",
283
+ 800: "#6A4F4A",
284
+ 900: "#5B4541",
285
+ 950: "#2C1E1C"
286
+ },
287
+ lime: {
288
+ 50: "#F7FFE5",
289
+ 100: "#ECFFC7",
290
+ 200: "#D9FF95",
291
+ 300: "#BDFE58",
292
+ 400: "#A1F524",
293
+ 500: "#82DC06",
294
+ 600: "#63B000",
295
+ 700: "#4B8506",
296
+ 800: "#3E690B",
297
+ 900: "#34580F",
298
+ 950: "#193102"
299
+ },
300
+ green: {
301
+ 50: "#E7F3EB",
302
+ 100: "#DFF9EA",
303
+ 200: "#CEECDA",
304
+ 300: "#9CD4B3",
305
+ 400: "#6EC092",
306
+ 500: "#3FA46B",
307
+ 600: "#209754",
308
+ 700: "#1E7745",
309
+ 800: "#1D5E3A",
310
+ 900: "#194E32",
311
+ 950: "#082B19"
312
+ },
313
+ timberGreen: {
314
+ 50: "#F1FCF5",
315
+ 100: "#DFF9EA",
316
+ 200: "#B5DACD",
317
+ 300: "#8ABFAF",
318
+ 400: "#60A18F",
319
+ 500: "#468675",
320
+ 600: "#366B5F",
321
+ 700: "#2E574D",
322
+ 800: "#2A4641",
323
+ 900: "#1D2F2B",
324
+ 950: "#11221E"
325
+ },
326
+ teal: {
327
+ 50: "#E2F1F0",
328
+ 100: "#C9EBE8",
329
+ 200: "#C7E8E5",
330
+ 300: "#8AD0D0",
331
+ 400: "#67C4C4",
332
+ 500: "#39A6A7",
333
+ 600: "#258386",
334
+ 700: "#1B666A",
335
+ 800: "#1A5255",
336
+ 900: "#1A4447",
337
+ 950: "#09272A"
338
+ },
339
+ lightBlue: {
340
+ 50: "#F2F8FD",
341
+ 100: "#E3EFFB",
342
+ 200: "#C1E0F6",
343
+ 300: "#8BC6EE",
344
+ 400: "#3DA2E1",
345
+ 500: "#258FD2",
346
+ 600: "#1771B2",
347
+ 700: "#145A90",
348
+ 800: "#154D77",
349
+ 900: "#174163",
350
+ 950: "#062C2D"
351
+ },
352
+ sea: {
353
+ 50: "#F4F6FC",
354
+ 100: "#E8EDF6",
355
+ 200: "#CBD9EB",
356
+ 300: "#9FB9DA",
357
+ 400: "#6A93C5",
358
+ 500: "#446FA4",
359
+ 600: "#375D92",
360
+ 700: "#2D4B77",
361
+ 800: "#294163",
362
+ 900: "#263954",
363
+ 950: "#1A2537"
364
+ },
365
+ blue: {
366
+ 50: "#F0F6FE",
367
+ 100: "#DDEAFC",
368
+ 200: "#C2DBFB",
369
+ 300: "#98C5F8",
370
+ 400: "#68A7F2",
371
+ 500: "#377CEB",
372
+ 600: "#2F68E1",
373
+ 700: "#2754CE",
374
+ 800: "#20429E",
375
+ 900: "#1C2A52",
376
+ 950: "#061132"
377
+ },
378
+ lightPurple: {
379
+ 50: "#F6F5FD",
380
+ 100: "#EEEDFA",
381
+ 200: "#DDDCFD",
382
+ 300: "#BDB9EC",
383
+ 400: "#AAA1E4",
384
+ 500: "#826CE3",
385
+ 600: "#7250D7",
386
+ 700: "#623DC4",
387
+ 800: "#5133A4",
388
+ 900: "#442B87",
389
+ 950: "#291A5B"
390
+ }
391
+ };
392
+
393
+ // ../tailwind-config/src/colors/semantic-palette.ts
394
+ var semanticPalette = {
395
+ primary: {
396
+ soft: { light: primitivePalette.blue[100], dark: primitivePalette.blue[950] },
397
+ light: { light: primitivePalette.blue[200], dark: primitivePalette.blue[900] },
398
+ main: { light: primitivePalette.blue[600], dark: primitivePalette.blue[600] },
399
+ dark: { light: primitivePalette.blue[800], dark: primitivePalette.blue[500] },
400
+ strong: { light: primitivePalette.blue[900], dark: primitivePalette.blue[200] }
401
+ },
402
+ secondary: {
403
+ soft: { light: primitivePalette.lightPurple[100], dark: primitivePalette.lightPurple[950] },
404
+ light: { light: primitivePalette.lightPurple[200], dark: primitivePalette.lightPurple[900] },
405
+ main: { light: primitivePalette.lightPurple[600], dark: primitivePalette.lightPurple[500] },
406
+ dark: { light: primitivePalette.lightPurple[800], dark: primitivePalette.lightPurple[700] },
407
+ strong: { light: primitivePalette.lightPurple[950], dark: primitivePalette.lightPurple[950] }
408
+ },
409
+ body: {
410
+ foreground: { light: primitivePalette.gray.cool[950], dark: primitivePalette.gray.cool[50] },
411
+ background: { light: primitivePalette.gray.cool[50], dark: primitivePalette.bg["06"] }
412
+ },
413
+ neutral: {
414
+ soft: { light: primitivePalette.gray.cool[100], dark: primitivePalette.gray.cool[900] },
415
+ light: { light: primitivePalette.gray.cool[200], dark: primitivePalette.gray.cool[700] },
416
+ main: { light: primitivePalette.gray.cool[400], dark: primitivePalette.gray.cool[400] },
417
+ dark: { light: primitivePalette.gray.cool[500], dark: primitivePalette.gray.cool[300] },
418
+ strong: { light: primitivePalette.gray.cool[700], dark: primitivePalette.gray.cool[200] }
419
+ },
420
+ trans: {
421
+ soft: { light: primitivePalette.opacity.black[5], dark: primitivePalette.opacity.white[5] },
422
+ light: { light: primitivePalette.opacity.black[10], dark: primitivePalette.opacity.white[10] },
423
+ main: { light: primitivePalette.opacity.black[20], dark: primitivePalette.opacity.white[20] },
424
+ dark: { light: primitivePalette.opacity.black[30], dark: primitivePalette.opacity.white[30] },
425
+ strong: { light: primitivePalette.opacity.black[60], dark: primitivePalette.opacity.black[60] }
426
+ },
427
+ common: {
428
+ black: { light: primitivePalette.gray.cool[950], dark: primitivePalette.gray.cool[950] },
429
+ white: { light: primitivePalette.gray.cool[50], dark: primitivePalette.gray.cool[50] },
430
+ transparent: { light: primitivePalette.opacity.white["0"], dark: primitivePalette.opacity.black["0"] },
431
+ hover: { light: primitivePalette.opacity.black[5], dark: primitivePalette.opacity.white[5] }
432
+ },
433
+ info: {
434
+ soft: { light: primitivePalette.teal[50], dark: primitivePalette.teal[950] },
435
+ light: { light: primitivePalette.teal[100], dark: primitivePalette.teal[900] },
436
+ main: { light: primitivePalette.teal[500], dark: primitivePalette.teal[500] },
437
+ dark: { light: primitivePalette.teal[600], dark: primitivePalette.teal[700] },
438
+ strong: { light: "", dark: "" }
439
+ },
440
+ success: {
441
+ soft: { light: primitivePalette.green[50], dark: primitivePalette.green[950] },
442
+ light: { light: primitivePalette.green[200], dark: primitivePalette.green[900] },
443
+ main: { light: primitivePalette.green[500], dark: primitivePalette.green[600] },
444
+ dark: { light: primitivePalette.green[600], dark: primitivePalette.green[700] },
445
+ strong: { light: "", dark: "" }
446
+ },
447
+ warning: {
448
+ soft: { light: primitivePalette.yellow[50], dark: primitivePalette.yellow[950] },
449
+ light: { light: primitivePalette.yellow[100], dark: primitivePalette.yellow[900] },
450
+ main: { light: primitivePalette.yellow[500], dark: primitivePalette.yellow[600] },
451
+ dark: { light: primitivePalette.yellow[600], dark: primitivePalette.yellow[700] },
452
+ strong: { light: "", dark: "" }
453
+ },
454
+ danger: {
455
+ soft: { light: primitivePalette.hotPink[50], dark: primitivePalette.hotPink[950] },
456
+ light: { light: primitivePalette.hotPink[200], dark: primitivePalette.hotPink[900] },
457
+ main: { light: primitivePalette.hotPink[500], dark: primitivePalette.hotPink[500] },
458
+ dark: { light: primitivePalette.hotPink[600], dark: primitivePalette.hotPink[700] },
459
+ strong: { light: "", dark: "" }
460
+ }
461
+ };
462
+
117
463
  // ../tailwind-config/src/typography/font.ts
118
464
  var fontSize = {
119
465
  h1: [
@@ -317,7 +663,7 @@ var boxShadow = {
317
663
  "drop-sm": "0 4px 12px 0 rgba(0, 0, 0, 0.1)",
318
664
  "drop-md": "0 6px 18px 0 rgba(0, 0, 0, 0.1)",
319
665
  "drop-lg": "0 8px 24px 0 rgba(0, 0, 0, 0.1)",
320
- "drop-xl": "0 10px 30px 0 rgba(0, 0, 0, 0.1)"
666
+ "drop-xl": "0 0px 60px 0 rgba(0, 0, 0, 0.2)"
321
667
  };
322
668
 
323
669
  // ../tailwind-config/src/border/radius.ts
@@ -326,8 +672,19 @@ var borderRadius = {
326
672
  md: "6px",
327
673
  lg: "8px",
328
674
  xl: "10px",
675
+ "2xl": "20px",
329
676
  none: "0",
330
- full: "9999px"
677
+ full: "9999px",
678
+ 2: "2px",
679
+ 5: "5px"
680
+ };
681
+
682
+ // ../tailwind-config/src/border/width.ts
683
+ var borderWidth = {
684
+ sm: "1px",
685
+ md: "1.25px",
686
+ lg: "1.5px",
687
+ xl: "1.75px"
331
688
  };
332
689
 
333
690
  // ../tailwind-config/src/space/gap.ts
@@ -335,7 +692,11 @@ var gap = {
335
692
  sm: "4px",
336
693
  md: "6px",
337
694
  lg: "8px",
338
- xl: "10px"
695
+ xl: "10px",
696
+ 5: "5px",
697
+ 10: "10px",
698
+ 20: "20px",
699
+ 30: "30px"
339
700
  };
340
701
 
341
702
  // src/utils/tailwind-variants.ts
@@ -350,7 +711,8 @@ var tv = (0, import_tailwind_variants.createTV)({
350
711
  borderRadius: [{ rounded: [...typedKeys(borderRadius)] }],
351
712
  boxShadow: [{ shadow: [...typedKeys(boxShadow)] }],
352
713
  padding: [{ p: [...COMMON_SIZE] }],
353
- gap: [{ gap: [...typedKeys(gap)] }]
714
+ gap: [{ gap: [...typedKeys(gap)] }],
715
+ borderWidth: [{ border: [...typedKeys(borderWidth)] }]
354
716
  }
355
717
  }
356
718
  });
@@ -378,6 +740,98 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
378
740
  // src/components/icon/template.tsx
379
741
  var import_jsx_runtime = require("react/jsx-runtime");
380
742
  var template = {
743
+ left: ({ className }) => {
744
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
745
+ "svg",
746
+ {
747
+ xmlns: "http://www.w3.org/2000/svg",
748
+ width: "21",
749
+ height: "21",
750
+ viewBox: "0 0 21 21",
751
+ fill: "none",
752
+ className,
753
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
754
+ "path",
755
+ {
756
+ d: "M12.8333 15.1667L8.16667 10.5L12.8333 5.83334",
757
+ stroke: "currentColor",
758
+ strokeWidth: "1.25",
759
+ strokeLinecap: "round",
760
+ strokeLinejoin: "round"
761
+ }
762
+ )
763
+ }
764
+ );
765
+ },
766
+ "left-double": ({ className }) => {
767
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
768
+ "svg",
769
+ {
770
+ xmlns: "http://www.w3.org/2000/svg",
771
+ width: "21",
772
+ height: "21",
773
+ viewBox: "0 0 21 21",
774
+ fill: "none",
775
+ className,
776
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
777
+ "path",
778
+ {
779
+ d: "M15.1667 5.83334L9.98148 10.5L15.1667 15.1667M11.0185 5.83334L5.83334 10.5L11.0185 15.1667",
780
+ stroke: "currentColor",
781
+ strokeWidth: "1.25",
782
+ strokeLinecap: "round",
783
+ strokeLinejoin: "round"
784
+ }
785
+ )
786
+ }
787
+ );
788
+ },
789
+ right: ({ className }) => {
790
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
791
+ "svg",
792
+ {
793
+ xmlns: "http://www.w3.org/2000/svg",
794
+ width: "21",
795
+ height: "21",
796
+ viewBox: "0 0 21 21",
797
+ fill: "none",
798
+ className,
799
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
800
+ "path",
801
+ {
802
+ d: "M8.16666 5.83334L12.8333 10.5L8.16666 15.1667",
803
+ stroke: "currentColor",
804
+ strokeWidth: "1.25",
805
+ strokeLinecap: "round",
806
+ strokeLinejoin: "round"
807
+ }
808
+ )
809
+ }
810
+ );
811
+ },
812
+ "right-double": ({ className }) => {
813
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
814
+ "svg",
815
+ {
816
+ xmlns: "http://www.w3.org/2000/svg",
817
+ width: "21",
818
+ height: "21",
819
+ viewBox: "0 0 21 21",
820
+ fill: "none",
821
+ className,
822
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
823
+ "path",
824
+ {
825
+ d: "M5.83334 5.83334L11.0185 10.5L5.83334 15.1667M9.98149 5.83334L15.1667 10.5L9.98149 15.1667",
826
+ stroke: "currentColor",
827
+ strokeWidth: "1.25",
828
+ strokeLinecap: "round",
829
+ strokeLinejoin: "round"
830
+ }
831
+ )
832
+ }
833
+ );
834
+ },
381
835
  "left-chevron": ({ className }) => {
382
836
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
383
837
  "svg",
@@ -1763,46 +2217,6 @@ var template = {
1763
2217
  }
1764
2218
  );
1765
2219
  },
1766
- left: ({ className }) => {
1767
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1768
- "svg",
1769
- {
1770
- xmlns: "http://www.w3.org/2000/svg",
1771
- width: "22",
1772
- height: "22",
1773
- viewBox: "0 0 22 22",
1774
- fill: "none",
1775
- className,
1776
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1777
- "path",
1778
- {
1779
- 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",
1780
- fill: "currentColor"
1781
- }
1782
- )
1783
- }
1784
- );
1785
- },
1786
- right: ({ className }) => {
1787
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1788
- "svg",
1789
- {
1790
- xmlns: "http://www.w3.org/2000/svg",
1791
- width: "22",
1792
- height: "22",
1793
- viewBox: "0 0 22 22",
1794
- fill: "none",
1795
- className,
1796
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1797
- "path",
1798
- {
1799
- 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",
1800
- fill: "currentColor"
1801
- }
1802
- )
1803
- }
1804
- );
1805
- },
1806
2220
  "brace-left": ({ className }) => {
1807
2221
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1808
2222
  "svg",
@@ -2112,6 +2526,20 @@ var template = {
2112
2526
  }
2113
2527
  );
2114
2528
  },
2529
+ polygon: ({ className }) => {
2530
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2531
+ "svg",
2532
+ {
2533
+ xmlns: "http://www.w3.org/2000/svg",
2534
+ width: "24",
2535
+ height: "24",
2536
+ viewBox: "0 0 24 24",
2537
+ fill: "none",
2538
+ className,
2539
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polygon", { points: "12 4 20 9 20 15 12 20 4 15 4 9", stroke: "currentColor", strokeWidth: "2" })
2540
+ }
2541
+ );
2542
+ },
2115
2543
  "new-window": ({ className }) => {
2116
2544
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
2117
2545
  "svg",
@@ -5225,25 +5653,26 @@ var import_jsx_runtime2 = require("react/jsx-runtime");
5225
5653
  var Icon = ({ name, size = "md", fill = false, className, onClick, ...props }) => {
5226
5654
  const SVGIcon = template[name];
5227
5655
  const getInputIconSize = (size2) => {
5228
- switch (size2) {
5656
+ switch (String(size2)) {
5229
5657
  case "sm":
5230
- return "size-[18px]";
5658
+ return "w-[18px] h-[18px]";
5231
5659
  case "md":
5232
- return "size-[21px] stroke-[1.25px]";
5660
+ return "w-[21px] h-[21px] stroke-[1.25px]";
5233
5661
  case "lg":
5234
- return "size-[24px] stroke-[1.5px]";
5662
+ return "w-[24px] h-[24px] stroke-[1.5px]";
5235
5663
  case "xl":
5236
- return "size-[27px] stroke-[1.5px]";
5664
+ return "w-[27px] h-[27px] stroke-[1.5px]";
5665
+ case "20":
5666
+ return "w-[20px] h-[20px] stroke-[1.25px]";
5667
+ case "30":
5668
+ return "w-[30px] h-[30px] stroke-[1.5px]";
5669
+ case "40":
5670
+ return "w-[40px] h-[40px] stroke-[2px]";
5671
+ default:
5672
+ return "w-[21px] h-[21px] stroke-[1.25px]";
5237
5673
  }
5238
5674
  };
5239
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "h-fit w-fit", onClick, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
5240
- SVGIcon,
5241
- {
5242
- fill,
5243
- className: className ? `${getInputIconSize(size)} ${className}` : `${getInputIconSize(size)}`,
5244
- ...props
5245
- }
5246
- ) });
5675
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: `m-0 flex items-center justify-center p-0 ${className}`, onClick, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(SVGIcon, { fill, className: getInputIconSize(size), ...props }) });
5247
5676
  };
5248
5677
  var Icon_default = Icon;
5249
5678
 
@@ -5287,118 +5716,8 @@ function toVal(mix) {
5287
5716
  return str;
5288
5717
  }
5289
5718
 
5290
- // src/components/ripple/ripple.tsx
5291
- var import_framer_motion = require("framer-motion");
5292
- var import_jsx_runtime3 = require("react/jsx-runtime");
5293
- var Ripple = (props) => {
5294
- const { ripples = [], motionProps, color = "currentColor", style, onClear } = props;
5295
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: ripples.map((ripple) => {
5296
- const duration = (0, import_framer_motion.clamp)(ripple.size > 100 ? 0.75 : 0.5, 0.01 * ripple.size, 0.2);
5297
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_framer_motion.LazyMotion, { features: import_framer_motion.domAnimation, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_framer_motion.AnimatePresence, { mode: "popLayout", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
5298
- import_framer_motion.m.span,
5299
- {
5300
- animate: { transform: "scale(2)", opacity: 0 },
5301
- className: "deepnoidui-ripple",
5302
- exit: { opacity: 0 },
5303
- initial: { transform: "scale(0)", opacity: 0.35 },
5304
- style: {
5305
- position: "absolute",
5306
- backgroundColor: color,
5307
- borderRadius: "100%",
5308
- transformOrigin: "center",
5309
- pointerEvents: "none",
5310
- overflow: "hidden",
5311
- inset: 0,
5312
- zIndex: 0,
5313
- top: ripple.y,
5314
- left: ripple.x,
5315
- width: `${ripple.size}px`,
5316
- height: `${ripple.size}px`,
5317
- ...style
5318
- },
5319
- transition: { duration },
5320
- onAnimationComplete: () => {
5321
- onClear(ripple.key);
5322
- },
5323
- ...motionProps
5324
- }
5325
- ) }) }, ripple.key);
5326
- }) });
5327
- };
5328
- Ripple.displayName = "HeroUI.Ripple";
5329
- var ripple_default = Ripple;
5330
-
5331
- // src/components/ripple/useRipple.ts
5332
- var import_react = require("react");
5333
- function useRipple(props = {}) {
5334
- const [ripples, setRipples] = (0, import_react.useState)([]);
5335
- const getUniqueID = (key) => `${key}-${Math.random().toString(36).substr(2, 9)}`;
5336
- const onPress = (0, import_react.useCallback)((event) => {
5337
- const trigger = event.currentTarget;
5338
- const rect = trigger.getBoundingClientRect();
5339
- const size = Math.max(trigger.clientWidth, trigger.clientHeight);
5340
- setRipples((prevRipples) => [
5341
- ...prevRipples,
5342
- {
5343
- key: getUniqueID(prevRipples.length.toString()),
5344
- size,
5345
- x: event.clientX - rect.left - size / 2,
5346
- y: event.clientY - rect.top - size / 2
5347
- }
5348
- ]);
5349
- }, []);
5350
- const onClear = (0, import_react.useCallback)((key) => {
5351
- setRipples((prevState) => prevState.filter((ripple) => ripple.key !== key));
5352
- }, []);
5353
- return { ripples, onClear, onPress, ...props };
5354
- }
5355
-
5356
- // src/components/button/icon-button.tsx
5357
- var import_react2 = require("react");
5358
- var import_jsx_runtime4 = require("react/jsx-runtime");
5359
- var IconButton = (0, import_react2.forwardRef)((props, ref) => {
5360
- const [localProps, variantProps] = mapPropsVariants(props, iconButtonStyle.variantKeys);
5361
- const { classNames, name, disableRipple, disabled, isLoading, size, full, isInGroup, onMouseDown, ...buttonProps } = {
5362
- ...localProps,
5363
- ...variantProps
5364
- };
5365
- const slots = (0, import_react2.useMemo)(() => iconButtonStyle({ ...variantProps }), [variantProps]);
5366
- const { onPress, onClear, ripples } = useRipple();
5367
- const handleRipple = (0, import_react2.useCallback)(
5368
- (e) => {
5369
- if (!disableRipple && !disabled) {
5370
- onPress(e);
5371
- }
5372
- },
5373
- [disableRipple, disabled, onPress]
5374
- );
5375
- const handleMouseDown = (0, import_react2.useCallback)(
5376
- (e) => {
5377
- onMouseDown == null ? void 0 : onMouseDown(e);
5378
- handleRipple(e);
5379
- },
5380
- [onMouseDown, handleRipple]
5381
- );
5382
- const rippleProps = (0, import_react2.useMemo)(() => ({ ripples, onClear }), [ripples, onClear]);
5383
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
5384
- "button",
5385
- {
5386
- ...buttonProps,
5387
- onMouseDown: handleMouseDown,
5388
- ref,
5389
- disabled: disabled || isLoading,
5390
- "data-loading": isLoading,
5391
- className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
5392
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "loading", size, className: "animate-spin" }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
5393
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name, size }),
5394
- !disableRipple && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ripple_default, { ...rippleProps })
5395
- ] })
5396
- }
5397
- );
5398
- });
5399
- IconButton.displayName = "IconButton";
5400
- var icon_button_default = IconButton;
5401
- var iconButtonStyle = tv({
5719
+ // src/components/button/button.style.ts
5720
+ var buttonBaseStyle = tv({
5402
5721
  slots: {
5403
5722
  base: [
5404
5723
  "relative",
@@ -5410,7 +5729,9 @@ var iconButtonStyle = tv({
5410
5729
  "duration-200",
5411
5730
  "select-none",
5412
5731
  "overflow-hidden",
5413
- "box-border"
5732
+ "box-border",
5733
+ "border",
5734
+ "border-transparent"
5414
5735
  ]
5415
5736
  },
5416
5737
  variants: {
@@ -5429,23 +5750,6 @@ var iconButtonStyle = tv({
5429
5750
  warning: [],
5430
5751
  danger: []
5431
5752
  },
5432
- size: {
5433
- sm: {
5434
- base: ["w-[24px]", "h-[24px]", "rounded-sm"]
5435
- },
5436
- md: {
5437
- base: ["w-[32px]", "h-[32px]", "rounded-md"]
5438
- },
5439
- lg: {
5440
- base: ["w-[40px]", "h-[40px]", "rounded-lg"]
5441
- },
5442
- xl: {
5443
- base: ["w-[50px]", "h-[50px]", "rounded-xl"]
5444
- }
5445
- },
5446
- isLoading: {
5447
- true: {}
5448
- },
5449
5753
  disabled: {
5450
5754
  true: {
5451
5755
  base: ["!bg-neutral-soft", "!border-neutral-soft", "!text-neutral-light", "pointer-events-none"]
@@ -5467,202 +5771,357 @@ var iconButtonStyle = tv({
5467
5771
  variant: "solid",
5468
5772
  color: "primary",
5469
5773
  class: {
5470
- base: ["text-white", "bg-primary-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
5774
+ base: [
5775
+ "text-white",
5776
+ "bg-primary-main",
5777
+ "hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-primary-main)]",
5778
+ "active:bg-primary-dark"
5779
+ ]
5471
5780
  }
5472
5781
  },
5473
5782
  {
5474
5783
  variant: "solid",
5475
5784
  color: "secondary",
5476
5785
  class: {
5477
- base: ["text-white", "bg-secondary-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
5786
+ base: [
5787
+ "text-white",
5788
+ "bg-secondary-main",
5789
+ "hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-secondary-main)]",
5790
+ "active:bg-secondary-dark"
5791
+ ]
5478
5792
  }
5479
5793
  },
5480
5794
  {
5481
5795
  variant: "solid",
5482
5796
  color: "neutral",
5483
5797
  class: {
5484
- base: ["text-white", "bg-neutral-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
5798
+ base: [
5799
+ "text-white",
5800
+ "bg-neutral-main",
5801
+ "hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-neutral-main)]",
5802
+ "active:bg-neutral-dark"
5803
+ ]
5485
5804
  }
5486
5805
  },
5487
5806
  {
5488
5807
  variant: "solid",
5489
5808
  color: "info",
5490
5809
  class: {
5491
- base: ["text-white", "bg-info-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
5810
+ base: [
5811
+ "text-white",
5812
+ "bg-info-main",
5813
+ "hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-info-main)]",
5814
+ "active:bg-info-dark"
5815
+ ]
5492
5816
  }
5493
5817
  },
5494
5818
  {
5495
5819
  variant: "solid",
5496
5820
  color: "success",
5497
5821
  class: {
5498
- base: ["text-white", "bg-success-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
5822
+ base: [
5823
+ "text-white",
5824
+ "bg-success-main",
5825
+ "hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-success-main)]",
5826
+ "active:bg-success-dark"
5827
+ ]
5499
5828
  }
5500
5829
  },
5501
5830
  {
5502
5831
  variant: "solid",
5503
5832
  color: "warning",
5504
5833
  class: {
5505
- base: ["text-white", "bg-warning-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
5834
+ base: [
5835
+ "text-white",
5836
+ "bg-warning-main",
5837
+ "hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-warning-main)]",
5838
+ "active:bg-warning-dark"
5839
+ ]
5506
5840
  }
5507
5841
  },
5508
5842
  {
5509
5843
  variant: "solid",
5510
5844
  color: "danger",
5511
5845
  class: {
5512
- base: ["text-white", "bg-danger-main", "hover:bg-gradient-to-t", "hover:from-white/20", "hover:to-white/20"]
5846
+ base: [
5847
+ "text-white",
5848
+ "bg-danger-main",
5849
+ "hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-danger-main)]",
5850
+ "active:bg-danger-dark"
5851
+ ]
5513
5852
  }
5514
5853
  },
5515
- // soft
5854
+ // soft & color
5516
5855
  {
5517
5856
  variant: "soft",
5518
5857
  color: "primary",
5519
5858
  class: {
5520
- base: ["text-primary-main", "bg-primary-soft", "!border-primary-soft", "hover:!border-primary-light"]
5859
+ base: [
5860
+ "text-primary-main",
5861
+ "bg-primary-soft",
5862
+ "border-primary-soft",
5863
+ "hover:border-primary-light",
5864
+ "active:bg-primary-light"
5865
+ ]
5521
5866
  }
5522
5867
  },
5523
5868
  {
5524
5869
  variant: "soft",
5525
5870
  color: "secondary",
5526
5871
  class: {
5527
- base: ["text-secondary-main", "bg-secondary-soft", "!border-secondary-soft", "hover:!border-secondary-light"]
5872
+ base: [
5873
+ "text-secondary-main",
5874
+ "bg-secondary-soft",
5875
+ "border-secondary-soft",
5876
+ "hover:border-secondary-light",
5877
+ "active:bg-secondary-light"
5878
+ ]
5528
5879
  }
5529
5880
  },
5530
5881
  {
5531
5882
  variant: "soft",
5532
5883
  color: "neutral",
5533
5884
  class: {
5534
- base: ["text-neutral-main", "bg-neutral-soft", "!border-neutral-soft", "hover:!border-neutral-light"]
5885
+ base: [
5886
+ "text-neutral-main",
5887
+ "bg-neutral-soft",
5888
+ "border-neutral-soft",
5889
+ "hover:border-neutral-light",
5890
+ "active:bg-neutral-light"
5891
+ ]
5535
5892
  }
5536
5893
  },
5537
5894
  {
5538
5895
  variant: "soft",
5539
5896
  color: "info",
5540
5897
  class: {
5541
- base: ["text-info-main", "bg-info-soft", "!border-info-soft", "hover:!border-info-light"]
5898
+ base: ["text-info-main", "bg-info-soft", "border-info-soft", "hover:border-info-light", "active:bg-info-light"]
5542
5899
  }
5543
5900
  },
5544
5901
  {
5545
5902
  variant: "soft",
5546
5903
  color: "success",
5547
5904
  class: {
5548
- base: ["text-success-main", "bg-success-soft", "!border-success-soft", "hover:!border-success-light"]
5905
+ base: [
5906
+ "text-success-main",
5907
+ "bg-success-soft",
5908
+ "border-success-soft",
5909
+ "hover:border-success-light",
5910
+ "active:bg-success-light"
5911
+ ]
5549
5912
  }
5550
5913
  },
5551
5914
  {
5552
5915
  variant: "soft",
5553
5916
  color: "warning",
5554
5917
  class: {
5555
- base: ["text-warning-main", "bg-warning-soft", "!border-warning-soft", "hover:!border-warning-light"]
5918
+ base: [
5919
+ "text-warning-main",
5920
+ "bg-warning-soft",
5921
+ "border-warning-soft",
5922
+ "hover:border-warning-light",
5923
+ "active:bg-warning-light"
5924
+ ]
5556
5925
  }
5557
5926
  },
5558
5927
  {
5559
5928
  variant: "soft",
5560
5929
  color: "danger",
5561
5930
  class: {
5562
- base: ["text-danger-main", "bg-danger-soft", "!border-danger-soft", "hover:!border-danger-light"]
5931
+ base: [
5932
+ "text-danger-main",
5933
+ "bg-danger-soft",
5934
+ "border-danger-soft",
5935
+ "hover:border-danger-light",
5936
+ "active:bg-danger-light"
5937
+ ]
5563
5938
  }
5564
5939
  },
5565
- // outline
5940
+ // outline & color
5566
5941
  {
5567
5942
  variant: "outline",
5568
5943
  color: "primary",
5569
5944
  class: {
5570
- base: ["bg-body-background", "!border-primary-main", "text-primary-main", "hover:bg-primary-soft"]
5945
+ base: [
5946
+ "bg-body-background",
5947
+ "border-primary-main",
5948
+ "text-primary-main",
5949
+ "hover:bg-primary-soft",
5950
+ "active:bg-primary-light"
5951
+ ]
5571
5952
  }
5572
5953
  },
5573
5954
  {
5574
5955
  variant: "outline",
5575
5956
  color: "secondary",
5576
5957
  class: {
5577
- base: ["bg-body-background", "!border-secondary-main", "text-secondary-main", "hover:bg-secondary-soft"]
5958
+ base: [
5959
+ "bg-body-background",
5960
+ "border-secondary-main",
5961
+ "text-secondary-main",
5962
+ "hover:bg-secondary-soft",
5963
+ "active:bg-secondary-light"
5964
+ ]
5578
5965
  }
5579
5966
  },
5580
5967
  {
5581
5968
  variant: "outline",
5582
5969
  color: "neutral",
5583
5970
  class: {
5584
- base: ["bg-body-background", "!border-neutral-light", "text-neutral-main", "hover:bg-neutral-soft"]
5971
+ base: [
5972
+ "bg-body-background",
5973
+ "border-neutral-main",
5974
+ "text-neutral-main",
5975
+ "hover:bg-neutral-soft",
5976
+ "active:bg-neutral-light"
5977
+ ]
5585
5978
  }
5586
5979
  },
5587
5980
  {
5588
5981
  variant: "outline",
5589
5982
  color: "info",
5590
5983
  class: {
5591
- base: ["bg-body-background", "!border-info-main", "text-info-main", "hover:bg-info-soft"]
5984
+ base: [
5985
+ "bg-body-background",
5986
+ "border-info-main",
5987
+ "text-info-main",
5988
+ "hover:bg-info-soft",
5989
+ "active:bg-info-light"
5990
+ ]
5592
5991
  }
5593
5992
  },
5594
5993
  {
5595
5994
  variant: "outline",
5596
5995
  color: "success",
5597
5996
  class: {
5598
- base: ["bg-body-background", "!border-success-main", "text-success-main", "hover:bg-success-soft"]
5997
+ base: [
5998
+ "bg-body-background",
5999
+ "border-success-main",
6000
+ "text-success-main",
6001
+ "hover:bg-success-soft",
6002
+ "active:bg-success-light"
6003
+ ]
5599
6004
  }
5600
6005
  },
5601
6006
  {
5602
6007
  variant: "outline",
5603
6008
  color: "warning",
5604
6009
  class: {
5605
- base: ["bg-body-background", "!border-warning-main", "text-warning-main", "hover:bg-warning-soft"]
6010
+ base: [
6011
+ "bg-body-background",
6012
+ "border-warning-main",
6013
+ "text-warning-main",
6014
+ "hover:bg-warning-soft",
6015
+ "active:bg-warning-light"
6016
+ ]
5606
6017
  }
5607
6018
  },
5608
6019
  {
5609
6020
  variant: "outline",
5610
6021
  color: "danger",
5611
6022
  class: {
5612
- base: ["bg-body-background", "!border-danger-main", "text-danger-main", "hover:bg-danger-soft"]
6023
+ base: [
6024
+ "bg-body-background",
6025
+ "border-danger-main",
6026
+ "text-danger-main",
6027
+ "hover:bg-danger-soft",
6028
+ "active:bg-danger-light"
6029
+ ]
5613
6030
  }
5614
6031
  },
5615
- // ghost
6032
+ // ghost & color
5616
6033
  {
5617
6034
  variant: "ghost",
5618
6035
  color: "primary",
5619
6036
  class: {
5620
- base: ["text-primary-main", "border-transparent", "hover:bg-primary-soft"]
6037
+ base: [
6038
+ "text-primary-main",
6039
+ "border-transparent",
6040
+ "hover:bg-primary-soft",
6041
+ "active:bg-primary-main",
6042
+ "active:text-common-white"
6043
+ ]
5621
6044
  }
5622
6045
  },
5623
6046
  {
5624
6047
  variant: "ghost",
5625
6048
  color: "secondary",
5626
6049
  class: {
5627
- base: ["text-secondary-main", "border-transparent", "hover:bg-secondary-soft"]
6050
+ base: [
6051
+ "text-secondary-main",
6052
+ "border-transparent",
6053
+ "hover:bg-secondary-soft",
6054
+ "active:bg-secondary-main",
6055
+ "active:text-common-white"
6056
+ ]
5628
6057
  }
5629
6058
  },
5630
6059
  {
5631
6060
  variant: "ghost",
5632
6061
  color: "neutral",
5633
6062
  class: {
5634
- base: ["text-neutral-main", "border-transparent", "hover:bg-neutral-soft"]
6063
+ base: [
6064
+ "text-neutral-main",
6065
+ "border-transparent",
6066
+ "hover:bg-neutral-soft",
6067
+ "active:bg-neutral-main",
6068
+ "active:text-common-white"
6069
+ ]
5635
6070
  }
5636
6071
  },
5637
6072
  {
5638
6073
  variant: "ghost",
5639
6074
  color: "info",
5640
6075
  class: {
5641
- base: ["text-info-main", "border-transparent", "hover:bg-info-soft"]
6076
+ base: [
6077
+ "text-info-main",
6078
+ "border-transparent",
6079
+ "hover:bg-info-soft",
6080
+ "active:bg-info-main",
6081
+ "active:text-common-white"
6082
+ ]
5642
6083
  }
5643
6084
  },
5644
6085
  {
5645
6086
  variant: "ghost",
5646
6087
  color: "success",
5647
6088
  class: {
5648
- base: ["text-success-main", "border-transparent", "hover:bg-success-soft"]
6089
+ base: [
6090
+ "text-success-main",
6091
+ "border-transparent",
6092
+ "hover:bg-success-soft",
6093
+ "active:bg-success-main",
6094
+ "active:text-common-white"
6095
+ ]
5649
6096
  }
5650
6097
  },
5651
6098
  {
5652
6099
  variant: "ghost",
5653
6100
  color: "warning",
5654
6101
  class: {
5655
- base: ["text-warning-main", "border-transparent", "hover:bg-warning-soft"]
6102
+ base: [
6103
+ "text-warning-main",
6104
+ "border-transparent",
6105
+ "hover:bg-warning-soft",
6106
+ "active:bg-warning-main",
6107
+ "active:text-common-white"
6108
+ ]
5656
6109
  }
5657
6110
  },
5658
6111
  {
5659
6112
  variant: "ghost",
5660
6113
  color: "danger",
5661
6114
  class: {
5662
- base: ["text-danger-main", "border-transparent", "hover:bg-danger-soft"]
6115
+ base: [
6116
+ "text-danger-main",
6117
+ "border-transparent",
6118
+ "hover:bg-danger-soft",
6119
+ "active:bg-danger-main",
6120
+ "active:text-common-white"
6121
+ ]
5663
6122
  }
5664
6123
  },
5665
- // soft/outline + size
6124
+ // variant && size
5666
6125
  {
5667
6126
  variant: ["soft", "outline"],
5668
6127
  size: "sm",
@@ -5691,7 +6150,7 @@ var iconButtonStyle = tv({
5691
6150
  base: ["border-xl"]
5692
6151
  }
5693
6152
  },
5694
- // disabled + variant
6153
+ // variant && disabled
5695
6154
  {
5696
6155
  variant: ["soft", "ghost"],
5697
6156
  disabled: true,
@@ -5706,7 +6165,146 @@ var iconButtonStyle = tv({
5706
6165
  base: ["!border-neutral-light"]
5707
6166
  }
5708
6167
  }
5709
- ],
6168
+ ]
6169
+ });
6170
+
6171
+ // src/components/ripple/ripple.tsx
6172
+ var import_framer_motion = require("framer-motion");
6173
+ var import_jsx_runtime3 = require("react/jsx-runtime");
6174
+ var Ripple = (props) => {
6175
+ const { ripples = [], motionProps, color = "currentColor", style, onClear } = props;
6176
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: ripples.map((ripple) => {
6177
+ const duration = (0, import_framer_motion.clamp)(ripple.size > 100 ? 0.75 : 0.5, 0.01 * ripple.size, 0.2);
6178
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_framer_motion.LazyMotion, { features: import_framer_motion.domAnimation, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_framer_motion.AnimatePresence, { mode: "popLayout", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
6179
+ import_framer_motion.m.span,
6180
+ {
6181
+ animate: { transform: "scale(2)", opacity: 0 },
6182
+ className: "deepnoidui-ripple",
6183
+ exit: { opacity: 0 },
6184
+ initial: { transform: "scale(0)", opacity: 0.35 },
6185
+ style: {
6186
+ position: "absolute",
6187
+ backgroundColor: color,
6188
+ borderRadius: "100%",
6189
+ transformOrigin: "center",
6190
+ pointerEvents: "none",
6191
+ overflow: "hidden",
6192
+ inset: 0,
6193
+ zIndex: 0,
6194
+ top: ripple.y,
6195
+ left: ripple.x,
6196
+ width: `${ripple.size}px`,
6197
+ height: `${ripple.size}px`,
6198
+ ...style
6199
+ },
6200
+ transition: { duration },
6201
+ onAnimationComplete: () => {
6202
+ onClear(ripple.key);
6203
+ },
6204
+ ...motionProps
6205
+ }
6206
+ ) }) }, ripple.key);
6207
+ }) });
6208
+ };
6209
+ Ripple.displayName = "HeroUI.Ripple";
6210
+ var ripple_default = Ripple;
6211
+
6212
+ // src/components/ripple/useRipple.ts
6213
+ var import_react = require("react");
6214
+ function useRipple(props = {}) {
6215
+ const [ripples, setRipples] = (0, import_react.useState)([]);
6216
+ const getUniqueID = (key) => `${key}-${Math.random().toString(36).substr(2, 9)}`;
6217
+ const onPress = (0, import_react.useCallback)((event) => {
6218
+ const trigger = event.currentTarget;
6219
+ const rect = trigger.getBoundingClientRect();
6220
+ const size = Math.max(trigger.clientWidth, trigger.clientHeight);
6221
+ setRipples((prevRipples) => [
6222
+ ...prevRipples,
6223
+ {
6224
+ key: getUniqueID(prevRipples.length.toString()),
6225
+ size,
6226
+ x: event.clientX - rect.left - size / 2,
6227
+ y: event.clientY - rect.top - size / 2
6228
+ }
6229
+ ]);
6230
+ }, []);
6231
+ const onClear = (0, import_react.useCallback)((key) => {
6232
+ setRipples((prevState) => prevState.filter((ripple) => ripple.key !== key));
6233
+ }, []);
6234
+ return { ripples, onClear, onPress, ...props };
6235
+ }
6236
+
6237
+ // src/components/button/icon-button.tsx
6238
+ var import_react2 = require("react");
6239
+ var import_jsx_runtime4 = require("react/jsx-runtime");
6240
+ var IconButton = (0, import_react2.forwardRef)((props, ref) => {
6241
+ const [localProps, variantProps] = mapPropsVariants(props, iconButtonStyle.variantKeys);
6242
+ const { classNames, name, disableRipple, disabled, isLoading, size, isInGroup, onMouseDown, ...buttonProps } = {
6243
+ ...localProps,
6244
+ ...variantProps
6245
+ };
6246
+ const slots = (0, import_react2.useMemo)(() => iconButtonStyle({ ...variantProps }), [variantProps]);
6247
+ const { onPress, onClear, ripples } = useRipple();
6248
+ const handleRipple = (0, import_react2.useCallback)(
6249
+ (e) => {
6250
+ if (!disableRipple && !disabled) {
6251
+ onPress(e);
6252
+ }
6253
+ },
6254
+ [disableRipple, disabled, onPress]
6255
+ );
6256
+ const handleMouseDown = (0, import_react2.useCallback)(
6257
+ (e) => {
6258
+ onMouseDown == null ? void 0 : onMouseDown(e);
6259
+ handleRipple(e);
6260
+ },
6261
+ [onMouseDown, handleRipple]
6262
+ );
6263
+ const rippleProps = (0, import_react2.useMemo)(() => ({ ripples, onClear }), [ripples, onClear]);
6264
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
6265
+ "button",
6266
+ {
6267
+ ...buttonProps,
6268
+ onMouseDown: handleMouseDown,
6269
+ ref,
6270
+ disabled: disabled || isLoading,
6271
+ "data-loading": isLoading,
6272
+ className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
6273
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "loading", size, className: "animate-spin" }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
6274
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name, size }),
6275
+ !disableRipple && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ripple_default, { ...rippleProps })
6276
+ ] })
6277
+ }
6278
+ );
6279
+ });
6280
+ IconButton.displayName = "IconButton";
6281
+ var icon_button_default = IconButton;
6282
+ var iconButtonStyle = tv({
6283
+ extend: buttonBaseStyle,
6284
+ variants: {
6285
+ size: {
6286
+ sm: {
6287
+ base: ["w-[24px]", "h-[24px]", "rounded-sm"]
6288
+ },
6289
+ md: {
6290
+ base: ["w-[32px]", "h-[32px]", "rounded-md"]
6291
+ },
6292
+ lg: {
6293
+ base: ["w-[40px]", "h-[40px]", "rounded-lg"]
6294
+ },
6295
+ xl: {
6296
+ base: ["w-[50px]", "h-[50px]", "rounded-xl"]
6297
+ }
6298
+ },
6299
+ full: {
6300
+ true: {
6301
+ base: ["w-full", "h-full"]
6302
+ }
6303
+ },
6304
+ isLoading: {
6305
+ true: {}
6306
+ }
6307
+ },
5710
6308
  defaultVariants: {
5711
6309
  size: "md",
5712
6310
  variant: "solid",