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