@yamada-ui/react 2.0.0-dev-20250626073729 → 2.0.0-dev-20250626191018

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 (1876) hide show
  1. package/dist/cjs/_virtual/rolldown_runtime.cjs +0 -7
  2. package/dist/cjs/components/accordion/accordion.cjs +7 -6
  3. package/dist/cjs/components/accordion/accordion.cjs.map +1 -1
  4. package/dist/cjs/components/accordion/use-accordion.cjs +14 -11
  5. package/dist/cjs/components/accordion/use-accordion.cjs.map +1 -1
  6. package/dist/cjs/components/airy/airy.cjs +5 -4
  7. package/dist/cjs/components/airy/airy.cjs.map +1 -1
  8. package/dist/cjs/components/aspect-ratio/aspect-ratio.cjs +2 -2
  9. package/dist/cjs/components/aspect-ratio/aspect-ratio.cjs.map +1 -1
  10. package/dist/cjs/components/avatar/use-avatar-group.cjs +3 -3
  11. package/dist/cjs/components/avatar/use-avatar-group.cjs.map +1 -1
  12. package/dist/cjs/components/avatar/use-avatar.cjs +5 -4
  13. package/dist/cjs/components/avatar/use-avatar.cjs.map +1 -1
  14. package/dist/cjs/components/bleed/bleed.cjs +5 -5
  15. package/dist/cjs/components/bleed/bleed.cjs.map +1 -1
  16. package/dist/cjs/components/breadcrumb/use-breadcrumb.cjs +2 -2
  17. package/dist/cjs/components/breadcrumb/use-breadcrumb.cjs.map +1 -1
  18. package/dist/cjs/components/button/button.cjs +11 -10
  19. package/dist/cjs/components/button/button.cjs.map +1 -1
  20. package/dist/cjs/components/carousel/carousel.cjs +3 -3
  21. package/dist/cjs/components/carousel/carousel.cjs.map +1 -1
  22. package/dist/cjs/components/carousel/use-carousel.cjs +12 -10
  23. package/dist/cjs/components/carousel/use-carousel.cjs.map +1 -1
  24. package/dist/cjs/components/circle-progress/circle-progress.cjs +2 -2
  25. package/dist/cjs/components/circle-progress/circle-progress.cjs.map +1 -1
  26. package/dist/cjs/components/collapse/collapse.cjs +4 -3
  27. package/dist/cjs/components/collapse/collapse.cjs.map +1 -1
  28. package/dist/cjs/components/color-swatch/color-swatch.cjs +2 -2
  29. package/dist/cjs/components/color-swatch/color-swatch.cjs.map +1 -1
  30. package/dist/cjs/components/data-list/data-list.cjs +8 -8
  31. package/dist/cjs/components/data-list/data-list.cjs.map +1 -1
  32. package/dist/cjs/components/drawer/drawer.cjs +2 -2
  33. package/dist/cjs/components/drawer/drawer.cjs.map +1 -1
  34. package/dist/cjs/components/drawer/use-drawer.cjs +4 -3
  35. package/dist/cjs/components/drawer/use-drawer.cjs.map +1 -1
  36. package/dist/cjs/components/editable/editable.cjs +2 -2
  37. package/dist/cjs/components/editable/editable.cjs.map +1 -1
  38. package/dist/cjs/components/editable/use-editable.cjs +16 -15
  39. package/dist/cjs/components/editable/use-editable.cjs.map +1 -1
  40. package/dist/cjs/components/empty-state/empty-state.cjs +2 -2
  41. package/dist/cjs/components/empty-state/empty-state.cjs.map +1 -1
  42. package/dist/cjs/components/field/field.cjs +11 -10
  43. package/dist/cjs/components/field/field.cjs.map +1 -1
  44. package/dist/cjs/components/field/use-field-props.cjs +14 -12
  45. package/dist/cjs/components/field/use-field-props.cjs.map +1 -1
  46. package/dist/cjs/components/fieldset/fieldset.cjs +5 -4
  47. package/dist/cjs/components/fieldset/fieldset.cjs.map +1 -1
  48. package/dist/cjs/components/file-button/use-file-button.cjs +2 -2
  49. package/dist/cjs/components/file-button/use-file-button.cjs.map +1 -1
  50. package/dist/cjs/components/file-input/use-file-input.cjs +7 -5
  51. package/dist/cjs/components/file-input/use-file-input.cjs.map +1 -1
  52. package/dist/cjs/components/flip/flip.cjs +5 -4
  53. package/dist/cjs/components/flip/flip.cjs.map +1 -1
  54. package/dist/cjs/components/float/float.cjs +2 -2
  55. package/dist/cjs/components/float/float.cjs.map +1 -1
  56. package/dist/cjs/components/focus-lock/focus-lock.cjs +4 -3
  57. package/dist/cjs/components/focus-lock/focus-lock.cjs.map +1 -1
  58. package/dist/cjs/components/for/for.cjs +2 -2
  59. package/dist/cjs/components/for/for.cjs.map +1 -1
  60. package/dist/cjs/components/grid/grid-item.cjs +3 -3
  61. package/dist/cjs/components/grid/grid-item.cjs.map +1 -1
  62. package/dist/cjs/components/group/group.cjs +2 -2
  63. package/dist/cjs/components/group/group.cjs.map +1 -1
  64. package/dist/cjs/components/group/use-group.cjs +6 -5
  65. package/dist/cjs/components/group/use-group.cjs.map +1 -1
  66. package/dist/cjs/components/highlight/use-highlight.cjs +2 -2
  67. package/dist/cjs/components/highlight/use-highlight.cjs.map +1 -1
  68. package/dist/cjs/components/indicator/indicator.cjs +5 -4
  69. package/dist/cjs/components/indicator/indicator.cjs.map +1 -1
  70. package/dist/cjs/components/infinite-scroll-area/use-infinite-scroll.cjs +3 -3
  71. package/dist/cjs/components/infinite-scroll-area/use-infinite-scroll.cjs.map +1 -1
  72. package/dist/cjs/components/input/input.style.cjs +5 -5
  73. package/dist/cjs/components/input/input.style.cjs.map +1 -1
  74. package/dist/cjs/components/link-box/link-box.cjs +2 -2
  75. package/dist/cjs/components/link-box/link-box.cjs.map +1 -1
  76. package/dist/cjs/components/loading/audio.cjs +2 -2
  77. package/dist/cjs/components/loading/audio.cjs.map +1 -1
  78. package/dist/cjs/components/loading/loading-provider.cjs +2 -2
  79. package/dist/cjs/components/loading/loading-provider.cjs.map +1 -1
  80. package/dist/cjs/components/loading/rings.cjs +2 -2
  81. package/dist/cjs/components/loading/rings.cjs.map +1 -1
  82. package/dist/cjs/components/loading/use-loading-component.cjs +5 -4
  83. package/dist/cjs/components/loading/use-loading-component.cjs.map +1 -1
  84. package/dist/cjs/components/modal/modal.cjs +3 -3
  85. package/dist/cjs/components/modal/modal.cjs.map +1 -1
  86. package/dist/cjs/components/modal/use-modal.cjs +9 -8
  87. package/dist/cjs/components/modal/use-modal.cjs.map +1 -1
  88. package/dist/cjs/components/motion/motion.cjs +2 -2
  89. package/dist/cjs/components/motion/motion.cjs.map +1 -1
  90. package/dist/cjs/components/motion/transition.cjs +5 -5
  91. package/dist/cjs/components/motion/transition.cjs.map +1 -1
  92. package/dist/cjs/components/native-select/use-native-select.cjs +5 -4
  93. package/dist/cjs/components/native-select/use-native-select.cjs.map +1 -1
  94. package/dist/cjs/components/number-input/use-number-counter.cjs +5 -5
  95. package/dist/cjs/components/number-input/use-number-counter.cjs.map +1 -1
  96. package/dist/cjs/components/number-input/use-number-input.cjs +8 -7
  97. package/dist/cjs/components/number-input/use-number-input.cjs.map +1 -1
  98. package/dist/cjs/components/pagination/pagination.cjs +4 -3
  99. package/dist/cjs/components/pagination/pagination.cjs.map +1 -1
  100. package/dist/cjs/components/pagination/use-pagination.cjs +8 -7
  101. package/dist/cjs/components/pagination/use-pagination.cjs.map +1 -1
  102. package/dist/cjs/components/password-input/use-password-input.cjs +4 -4
  103. package/dist/cjs/components/password-input/use-password-input.cjs.map +1 -1
  104. package/dist/cjs/components/password-input/use-strength-meter.cjs +2 -2
  105. package/dist/cjs/components/password-input/use-strength-meter.cjs.map +1 -1
  106. package/dist/cjs/components/picture/picture.cjs +6 -5
  107. package/dist/cjs/components/picture/picture.cjs.map +1 -1
  108. package/dist/cjs/components/pin-input/use-pin-input.cjs +7 -6
  109. package/dist/cjs/components/pin-input/use-pin-input.cjs.map +1 -1
  110. package/dist/cjs/components/popover/popover.cjs +4 -3
  111. package/dist/cjs/components/popover/popover.cjs.map +1 -1
  112. package/dist/cjs/components/popover/use-popover.cjs +19 -16
  113. package/dist/cjs/components/popover/use-popover.cjs.map +1 -1
  114. package/dist/cjs/components/portal/portal.cjs +3 -3
  115. package/dist/cjs/components/portal/portal.cjs.map +1 -1
  116. package/dist/cjs/components/progress/progress.cjs +2 -2
  117. package/dist/cjs/components/progress/progress.cjs.map +1 -1
  118. package/dist/cjs/components/progress/use-progress.cjs +6 -5
  119. package/dist/cjs/components/progress/use-progress.cjs.map +1 -1
  120. package/dist/cjs/components/reorder/use-reorder.cjs +11 -9
  121. package/dist/cjs/components/reorder/use-reorder.cjs.map +1 -1
  122. package/dist/cjs/components/resizable/use-resizable.cjs +10 -9
  123. package/dist/cjs/components/resizable/use-resizable.cjs.map +1 -1
  124. package/dist/cjs/components/ripple/ripple.cjs +2 -2
  125. package/dist/cjs/components/ripple/ripple.cjs.map +1 -1
  126. package/dist/cjs/components/ripple/use-ripple.cjs +4 -3
  127. package/dist/cjs/components/ripple/use-ripple.cjs.map +1 -1
  128. package/dist/cjs/components/rotate/rotate.cjs +5 -4
  129. package/dist/cjs/components/rotate/rotate.cjs.map +1 -1
  130. package/dist/cjs/components/scroll-area/use-scroll-area.cjs +10 -9
  131. package/dist/cjs/components/scroll-area/use-scroll-area.cjs.map +1 -1
  132. package/dist/cjs/components/segmented-control/use-segmented-control.cjs +18 -17
  133. package/dist/cjs/components/segmented-control/use-segmented-control.cjs.map +1 -1
  134. package/dist/cjs/components/simple-grid/simple-grid.cjs +3 -3
  135. package/dist/cjs/components/simple-grid/simple-grid.cjs.map +1 -1
  136. package/dist/cjs/components/skeleton/skeleton.cjs +6 -5
  137. package/dist/cjs/components/skeleton/skeleton.cjs.map +1 -1
  138. package/dist/cjs/components/stack/stack.cjs +4 -4
  139. package/dist/cjs/components/stack/stack.cjs.map +1 -1
  140. package/dist/cjs/components/stat/stat.cjs +2 -2
  141. package/dist/cjs/components/stat/stat.cjs.map +1 -1
  142. package/dist/cjs/components/steps/steps.cjs +2 -2
  143. package/dist/cjs/components/steps/steps.cjs.map +1 -1
  144. package/dist/cjs/components/steps/use-steps.cjs +11 -9
  145. package/dist/cjs/components/steps/use-steps.cjs.map +1 -1
  146. package/dist/cjs/components/switch/switch.cjs +2 -2
  147. package/dist/cjs/components/switch/switch.cjs.map +1 -1
  148. package/dist/cjs/components/switch/use-switch.cjs +10 -9
  149. package/dist/cjs/components/switch/use-switch.cjs.map +1 -1
  150. package/dist/cjs/components/tabs/tabs.cjs +3 -3
  151. package/dist/cjs/components/tabs/tabs.cjs.map +1 -1
  152. package/dist/cjs/components/tabs/use-tabs.cjs +8 -6
  153. package/dist/cjs/components/tabs/use-tabs.cjs.map +1 -1
  154. package/dist/cjs/components/tag/tag.cjs +6 -6
  155. package/dist/cjs/components/tag/tag.cjs.map +1 -1
  156. package/dist/cjs/components/textarea/use-autosize.cjs +9 -6
  157. package/dist/cjs/components/textarea/use-autosize.cjs.map +1 -1
  158. package/dist/cjs/components/textarea/use-textarea.cjs +2 -2
  159. package/dist/cjs/components/textarea/use-textarea.cjs.map +1 -1
  160. package/dist/cjs/components/toggle/use-toggle-group.cjs +8 -6
  161. package/dist/cjs/components/toggle/use-toggle-group.cjs.map +1 -1
  162. package/dist/cjs/components/toggle/use-toggle.cjs +11 -9
  163. package/dist/cjs/components/toggle/use-toggle.cjs.map +1 -1
  164. package/dist/cjs/components/tooltip/tooltip.cjs +2 -2
  165. package/dist/cjs/components/tooltip/tooltip.cjs.map +1 -1
  166. package/dist/cjs/components/tooltip/use-tooltip.cjs +17 -15
  167. package/dist/cjs/components/tooltip/use-tooltip.cjs.map +1 -1
  168. package/dist/cjs/core/components/create-component.cjs +26 -23
  169. package/dist/cjs/core/components/create-component.cjs.map +1 -1
  170. package/dist/cjs/core/components/props.cjs +20 -17
  171. package/dist/cjs/core/components/props.cjs.map +1 -1
  172. package/dist/cjs/core/components/use-component-style.cjs +35 -32
  173. package/dist/cjs/core/components/use-component-style.cjs.map +1 -1
  174. package/dist/cjs/core/components/utils.cjs +3 -3
  175. package/dist/cjs/core/components/utils.cjs.map +1 -1
  176. package/dist/cjs/core/css/animation.cjs +5 -4
  177. package/dist/cjs/core/css/animation.cjs.map +1 -1
  178. package/dist/cjs/core/css/at-rule.cjs +6 -4
  179. package/dist/cjs/core/css/at-rule.cjs.map +1 -1
  180. package/dist/cjs/core/css/calc.cjs +2 -2
  181. package/dist/cjs/core/css/calc.cjs.map +1 -1
  182. package/dist/cjs/core/css/color-mix.cjs +2 -2
  183. package/dist/cjs/core/css/color-mix.cjs.map +1 -1
  184. package/dist/cjs/core/css/color-scheme.cjs +4 -3
  185. package/dist/cjs/core/css/color-scheme.cjs.map +1 -1
  186. package/dist/cjs/core/css/config.cjs +5 -5
  187. package/dist/cjs/core/css/config.cjs.map +1 -1
  188. package/dist/cjs/core/css/css.cjs +24 -22
  189. package/dist/cjs/core/css/css.cjs.map +1 -1
  190. package/dist/cjs/core/css/gradient.cjs +4 -4
  191. package/dist/cjs/core/css/gradient.cjs.map +1 -1
  192. package/dist/cjs/core/css/merge-css.cjs +2 -2
  193. package/dist/cjs/core/css/merge-css.cjs.map +1 -1
  194. package/dist/cjs/core/css/style.cjs +2 -2
  195. package/dist/cjs/core/css/style.cjs.map +1 -1
  196. package/dist/cjs/core/css/utils.cjs +4 -4
  197. package/dist/cjs/core/css/utils.cjs.map +1 -1
  198. package/dist/cjs/core/system/breakpoint.cjs +4 -3
  199. package/dist/cjs/core/system/breakpoint.cjs.map +1 -1
  200. package/dist/cjs/core/system/color-mode-provider.cjs +9 -8
  201. package/dist/cjs/core/system/color-mode-provider.cjs.map +1 -1
  202. package/dist/cjs/core/system/create-system.cjs +15 -13
  203. package/dist/cjs/core/system/create-system.cjs.map +1 -1
  204. package/dist/cjs/core/system/environment-provider.cjs +5 -4
  205. package/dist/cjs/core/system/environment-provider.cjs.map +1 -1
  206. package/dist/cjs/core/system/layer.cjs +3 -3
  207. package/dist/cjs/core/system/layer.cjs.map +1 -1
  208. package/dist/cjs/core/system/styled.cjs +17 -12
  209. package/dist/cjs/core/system/styled.cjs.map +1 -1
  210. package/dist/cjs/core/system/theme-provider.cjs +7 -6
  211. package/dist/cjs/core/system/theme-provider.cjs.map +1 -1
  212. package/dist/cjs/core/system/use-system-color-mode.cjs +2 -2
  213. package/dist/cjs/core/system/use-system-color-mode.cjs.map +1 -1
  214. package/dist/cjs/core/system/var.cjs +17 -14
  215. package/dist/cjs/core/system/var.cjs.map +1 -1
  216. package/dist/cjs/hooks/use-animation/index.cjs +12 -10
  217. package/dist/cjs/hooks/use-animation/index.cjs.map +1 -1
  218. package/dist/cjs/hooks/use-breakpoint/use-breakpoint.cjs +6 -4
  219. package/dist/cjs/hooks/use-breakpoint/use-breakpoint.cjs.map +1 -1
  220. package/dist/cjs/hooks/use-clickable/index.cjs +4 -4
  221. package/dist/cjs/hooks/use-clickable/index.cjs.map +1 -1
  222. package/dist/cjs/hooks/use-clipboard/index.cjs +3 -3
  223. package/dist/cjs/hooks/use-clipboard/index.cjs.map +1 -1
  224. package/dist/cjs/hooks/use-controllable-state/index.cjs +5 -4
  225. package/dist/cjs/hooks/use-controllable-state/index.cjs.map +1 -1
  226. package/dist/cjs/hooks/use-counter/index.cjs +5 -5
  227. package/dist/cjs/hooks/use-counter/index.cjs.map +1 -1
  228. package/dist/cjs/hooks/use-descendant/index.cjs +4 -3
  229. package/dist/cjs/hooks/use-descendant/index.cjs.map +1 -1
  230. package/dist/cjs/hooks/use-disclosure/use-promise-disclosure.cjs +2 -2
  231. package/dist/cjs/hooks/use-disclosure/use-promise-disclosure.cjs.map +1 -1
  232. package/dist/cjs/hooks/use-event-listener/index.cjs +3 -3
  233. package/dist/cjs/hooks/use-event-listener/index.cjs.map +1 -1
  234. package/dist/cjs/hooks/use-focus/index.cjs +7 -7
  235. package/dist/cjs/hooks/use-focus/index.cjs.map +1 -1
  236. package/dist/cjs/hooks/use-focus-visible/index.cjs +2 -2
  237. package/dist/cjs/hooks/use-focus-visible/index.cjs.map +1 -1
  238. package/dist/cjs/hooks/use-local-storage/index.cjs +2 -2
  239. package/dist/cjs/hooks/use-local-storage/index.cjs.map +1 -1
  240. package/dist/cjs/hooks/use-os/index.cjs +2 -2
  241. package/dist/cjs/hooks/use-os/index.cjs.map +1 -1
  242. package/dist/cjs/hooks/use-outside-click/index.cjs +3 -3
  243. package/dist/cjs/hooks/use-outside-click/index.cjs.map +1 -1
  244. package/dist/cjs/hooks/use-pan-event/index.cjs +6 -6
  245. package/dist/cjs/hooks/use-pan-event/index.cjs.map +1 -1
  246. package/dist/cjs/hooks/use-resize-observer/index.cjs +2 -2
  247. package/dist/cjs/hooks/use-resize-observer/index.cjs.map +1 -1
  248. package/dist/cjs/hooks/use-size/index.cjs +3 -3
  249. package/dist/cjs/hooks/use-size/index.cjs.map +1 -1
  250. package/dist/cjs/hooks/use-token/index.cjs +9 -8
  251. package/dist/cjs/hooks/use-token/index.cjs.map +1 -1
  252. package/dist/cjs/hooks/use-value/index.cjs +3 -3
  253. package/dist/cjs/hooks/use-value/index.cjs.map +1 -1
  254. package/dist/cjs/index.cjs +148 -2468
  255. package/dist/cjs/providers/i18n-provider/i18n-provider.cjs +16 -12
  256. package/dist/cjs/providers/i18n-provider/i18n-provider.cjs.map +1 -1
  257. package/dist/cjs/utils/common/array.cjs +14 -0
  258. package/dist/cjs/utils/common/array.cjs.map +1 -0
  259. package/dist/cjs/utils/common/assertion.cjs +73 -0
  260. package/dist/cjs/utils/common/assertion.cjs.map +1 -0
  261. package/dist/cjs/utils/common/calc.cjs +39 -0
  262. package/dist/cjs/utils/common/calc.cjs.map +1 -0
  263. package/dist/cjs/utils/common/color.cjs +247 -0
  264. package/dist/cjs/utils/common/color.cjs.map +1 -0
  265. package/dist/cjs/utils/common/dom.cjs +378 -0
  266. package/dist/cjs/utils/common/dom.cjs.map +1 -0
  267. package/dist/cjs/utils/common/event.cjs +92 -0
  268. package/dist/cjs/utils/common/event.cjs.map +1 -0
  269. package/dist/cjs/utils/common/function.cjs +27 -0
  270. package/dist/cjs/utils/common/function.cjs.map +1 -0
  271. package/dist/cjs/utils/common/i18n.cjs +46 -0
  272. package/dist/cjs/utils/common/i18n.cjs.map +1 -0
  273. package/dist/cjs/utils/common/index.cjs +148 -0
  274. package/dist/cjs/utils/common/index.types.cjs +0 -0
  275. package/dist/cjs/utils/common/module.cjs +9 -0
  276. package/dist/cjs/utils/common/module.cjs.map +1 -0
  277. package/dist/cjs/utils/common/number.cjs +46 -0
  278. package/dist/cjs/utils/common/number.cjs.map +1 -0
  279. package/dist/cjs/utils/common/object.cjs +120 -0
  280. package/dist/cjs/utils/common/object.cjs.map +1 -0
  281. package/dist/cjs/utils/common/string.cjs +95 -0
  282. package/dist/cjs/utils/common/string.cjs.map +1 -0
  283. package/dist/cjs/utils/index.cjs +147 -49
  284. package/dist/esm/_virtual/rolldown_runtime.js +1 -15
  285. package/dist/esm/components/accordion/accordion.js +7 -6
  286. package/dist/esm/components/accordion/accordion.js.map +1 -1
  287. package/dist/esm/components/accordion/use-accordion.js +14 -11
  288. package/dist/esm/components/accordion/use-accordion.js.map +1 -1
  289. package/dist/esm/components/airy/airy.js +5 -4
  290. package/dist/esm/components/airy/airy.js.map +1 -1
  291. package/dist/esm/components/aspect-ratio/aspect-ratio.js +2 -2
  292. package/dist/esm/components/aspect-ratio/aspect-ratio.js.map +1 -1
  293. package/dist/esm/components/avatar/use-avatar-group.js +3 -3
  294. package/dist/esm/components/avatar/use-avatar-group.js.map +1 -1
  295. package/dist/esm/components/avatar/use-avatar.js +5 -4
  296. package/dist/esm/components/avatar/use-avatar.js.map +1 -1
  297. package/dist/esm/components/bleed/bleed.js +5 -5
  298. package/dist/esm/components/bleed/bleed.js.map +1 -1
  299. package/dist/esm/components/breadcrumb/use-breadcrumb.js +2 -2
  300. package/dist/esm/components/breadcrumb/use-breadcrumb.js.map +1 -1
  301. package/dist/esm/components/button/button.js +11 -10
  302. package/dist/esm/components/button/button.js.map +1 -1
  303. package/dist/esm/components/carousel/carousel.js +3 -3
  304. package/dist/esm/components/carousel/carousel.js.map +1 -1
  305. package/dist/esm/components/carousel/use-carousel.js +12 -10
  306. package/dist/esm/components/carousel/use-carousel.js.map +1 -1
  307. package/dist/esm/components/circle-progress/circle-progress.js +2 -2
  308. package/dist/esm/components/circle-progress/circle-progress.js.map +1 -1
  309. package/dist/esm/components/collapse/collapse.js +4 -3
  310. package/dist/esm/components/collapse/collapse.js.map +1 -1
  311. package/dist/esm/components/color-swatch/color-swatch.js +2 -2
  312. package/dist/esm/components/color-swatch/color-swatch.js.map +1 -1
  313. package/dist/esm/components/data-list/data-list.js +8 -8
  314. package/dist/esm/components/data-list/data-list.js.map +1 -1
  315. package/dist/esm/components/drawer/drawer.js +2 -2
  316. package/dist/esm/components/drawer/drawer.js.map +1 -1
  317. package/dist/esm/components/drawer/use-drawer.js +4 -3
  318. package/dist/esm/components/drawer/use-drawer.js.map +1 -1
  319. package/dist/esm/components/editable/editable.js +2 -2
  320. package/dist/esm/components/editable/editable.js.map +1 -1
  321. package/dist/esm/components/editable/use-editable.js +16 -15
  322. package/dist/esm/components/editable/use-editable.js.map +1 -1
  323. package/dist/esm/components/empty-state/empty-state.js +2 -2
  324. package/dist/esm/components/empty-state/empty-state.js.map +1 -1
  325. package/dist/esm/components/field/field.js +11 -10
  326. package/dist/esm/components/field/field.js.map +1 -1
  327. package/dist/esm/components/field/use-field-props.js +14 -12
  328. package/dist/esm/components/field/use-field-props.js.map +1 -1
  329. package/dist/esm/components/fieldset/fieldset.js +5 -4
  330. package/dist/esm/components/fieldset/fieldset.js.map +1 -1
  331. package/dist/esm/components/file-button/use-file-button.js +2 -2
  332. package/dist/esm/components/file-button/use-file-button.js.map +1 -1
  333. package/dist/esm/components/file-input/use-file-input.js +7 -5
  334. package/dist/esm/components/file-input/use-file-input.js.map +1 -1
  335. package/dist/esm/components/flip/flip.js +5 -4
  336. package/dist/esm/components/flip/flip.js.map +1 -1
  337. package/dist/esm/components/float/float.js +2 -2
  338. package/dist/esm/components/float/float.js.map +1 -1
  339. package/dist/esm/components/focus-lock/focus-lock.js +4 -3
  340. package/dist/esm/components/focus-lock/focus-lock.js.map +1 -1
  341. package/dist/esm/components/for/for.js +2 -2
  342. package/dist/esm/components/for/for.js.map +1 -1
  343. package/dist/esm/components/grid/grid-item.js +3 -3
  344. package/dist/esm/components/grid/grid-item.js.map +1 -1
  345. package/dist/esm/components/group/group.js +2 -2
  346. package/dist/esm/components/group/group.js.map +1 -1
  347. package/dist/esm/components/group/use-group.js +6 -5
  348. package/dist/esm/components/group/use-group.js.map +1 -1
  349. package/dist/esm/components/highlight/use-highlight.js +2 -2
  350. package/dist/esm/components/highlight/use-highlight.js.map +1 -1
  351. package/dist/esm/components/indicator/indicator.js +5 -4
  352. package/dist/esm/components/indicator/indicator.js.map +1 -1
  353. package/dist/esm/components/infinite-scroll-area/use-infinite-scroll.js +3 -3
  354. package/dist/esm/components/infinite-scroll-area/use-infinite-scroll.js.map +1 -1
  355. package/dist/esm/components/input/input.style.js +5 -5
  356. package/dist/esm/components/input/input.style.js.map +1 -1
  357. package/dist/esm/components/link-box/link-box.js +2 -2
  358. package/dist/esm/components/link-box/link-box.js.map +1 -1
  359. package/dist/esm/components/loading/audio.js +2 -2
  360. package/dist/esm/components/loading/audio.js.map +1 -1
  361. package/dist/esm/components/loading/loading-provider.js +2 -2
  362. package/dist/esm/components/loading/loading-provider.js.map +1 -1
  363. package/dist/esm/components/loading/rings.js +2 -2
  364. package/dist/esm/components/loading/rings.js.map +1 -1
  365. package/dist/esm/components/loading/use-loading-component.js +5 -4
  366. package/dist/esm/components/loading/use-loading-component.js.map +1 -1
  367. package/dist/esm/components/modal/modal.js +3 -3
  368. package/dist/esm/components/modal/modal.js.map +1 -1
  369. package/dist/esm/components/modal/use-modal.js +9 -8
  370. package/dist/esm/components/modal/use-modal.js.map +1 -1
  371. package/dist/esm/components/motion/motion.js +2 -2
  372. package/dist/esm/components/motion/motion.js.map +1 -1
  373. package/dist/esm/components/motion/transition.js +5 -5
  374. package/dist/esm/components/motion/transition.js.map +1 -1
  375. package/dist/esm/components/native-select/use-native-select.js +5 -4
  376. package/dist/esm/components/native-select/use-native-select.js.map +1 -1
  377. package/dist/esm/components/number-input/use-number-counter.js +5 -5
  378. package/dist/esm/components/number-input/use-number-counter.js.map +1 -1
  379. package/dist/esm/components/number-input/use-number-input.js +8 -7
  380. package/dist/esm/components/number-input/use-number-input.js.map +1 -1
  381. package/dist/esm/components/pagination/pagination.js +4 -3
  382. package/dist/esm/components/pagination/pagination.js.map +1 -1
  383. package/dist/esm/components/pagination/use-pagination.js +8 -7
  384. package/dist/esm/components/pagination/use-pagination.js.map +1 -1
  385. package/dist/esm/components/password-input/use-password-input.js +4 -4
  386. package/dist/esm/components/password-input/use-password-input.js.map +1 -1
  387. package/dist/esm/components/password-input/use-strength-meter.js +2 -2
  388. package/dist/esm/components/password-input/use-strength-meter.js.map +1 -1
  389. package/dist/esm/components/picture/picture.js +6 -5
  390. package/dist/esm/components/picture/picture.js.map +1 -1
  391. package/dist/esm/components/pin-input/use-pin-input.js +7 -6
  392. package/dist/esm/components/pin-input/use-pin-input.js.map +1 -1
  393. package/dist/esm/components/popover/popover.js +4 -3
  394. package/dist/esm/components/popover/popover.js.map +1 -1
  395. package/dist/esm/components/popover/use-popover.js +19 -16
  396. package/dist/esm/components/popover/use-popover.js.map +1 -1
  397. package/dist/esm/components/portal/portal.js +3 -3
  398. package/dist/esm/components/portal/portal.js.map +1 -1
  399. package/dist/esm/components/progress/progress.js +2 -2
  400. package/dist/esm/components/progress/progress.js.map +1 -1
  401. package/dist/esm/components/progress/use-progress.js +6 -5
  402. package/dist/esm/components/progress/use-progress.js.map +1 -1
  403. package/dist/esm/components/reorder/use-reorder.js +11 -9
  404. package/dist/esm/components/reorder/use-reorder.js.map +1 -1
  405. package/dist/esm/components/resizable/use-resizable.js +10 -9
  406. package/dist/esm/components/resizable/use-resizable.js.map +1 -1
  407. package/dist/esm/components/ripple/ripple.js +2 -2
  408. package/dist/esm/components/ripple/ripple.js.map +1 -1
  409. package/dist/esm/components/ripple/use-ripple.js +4 -3
  410. package/dist/esm/components/ripple/use-ripple.js.map +1 -1
  411. package/dist/esm/components/rotate/rotate.js +5 -4
  412. package/dist/esm/components/rotate/rotate.js.map +1 -1
  413. package/dist/esm/components/scroll-area/use-scroll-area.js +10 -9
  414. package/dist/esm/components/scroll-area/use-scroll-area.js.map +1 -1
  415. package/dist/esm/components/segmented-control/use-segmented-control.js +18 -17
  416. package/dist/esm/components/segmented-control/use-segmented-control.js.map +1 -1
  417. package/dist/esm/components/simple-grid/simple-grid.js +3 -3
  418. package/dist/esm/components/simple-grid/simple-grid.js.map +1 -1
  419. package/dist/esm/components/skeleton/skeleton.js +6 -5
  420. package/dist/esm/components/skeleton/skeleton.js.map +1 -1
  421. package/dist/esm/components/stack/stack.js +4 -4
  422. package/dist/esm/components/stack/stack.js.map +1 -1
  423. package/dist/esm/components/stat/stat.js +2 -2
  424. package/dist/esm/components/stat/stat.js.map +1 -1
  425. package/dist/esm/components/steps/steps.js +2 -2
  426. package/dist/esm/components/steps/steps.js.map +1 -1
  427. package/dist/esm/components/steps/use-steps.js +11 -9
  428. package/dist/esm/components/steps/use-steps.js.map +1 -1
  429. package/dist/esm/components/switch/switch.js +2 -2
  430. package/dist/esm/components/switch/switch.js.map +1 -1
  431. package/dist/esm/components/switch/use-switch.js +10 -9
  432. package/dist/esm/components/switch/use-switch.js.map +1 -1
  433. package/dist/esm/components/tabs/tabs.js +3 -3
  434. package/dist/esm/components/tabs/tabs.js.map +1 -1
  435. package/dist/esm/components/tabs/use-tabs.js +8 -6
  436. package/dist/esm/components/tabs/use-tabs.js.map +1 -1
  437. package/dist/esm/components/tag/tag.js +6 -6
  438. package/dist/esm/components/tag/tag.js.map +1 -1
  439. package/dist/esm/components/textarea/use-autosize.js +9 -6
  440. package/dist/esm/components/textarea/use-autosize.js.map +1 -1
  441. package/dist/esm/components/textarea/use-textarea.js +2 -2
  442. package/dist/esm/components/textarea/use-textarea.js.map +1 -1
  443. package/dist/esm/components/toggle/use-toggle-group.js +8 -6
  444. package/dist/esm/components/toggle/use-toggle-group.js.map +1 -1
  445. package/dist/esm/components/toggle/use-toggle.js +11 -9
  446. package/dist/esm/components/toggle/use-toggle.js.map +1 -1
  447. package/dist/esm/components/tooltip/tooltip.js +2 -2
  448. package/dist/esm/components/tooltip/tooltip.js.map +1 -1
  449. package/dist/esm/components/tooltip/use-tooltip.js +17 -15
  450. package/dist/esm/components/tooltip/use-tooltip.js.map +1 -1
  451. package/dist/esm/core/components/create-component.js +26 -23
  452. package/dist/esm/core/components/create-component.js.map +1 -1
  453. package/dist/esm/core/components/props.js +20 -17
  454. package/dist/esm/core/components/props.js.map +1 -1
  455. package/dist/esm/core/components/use-component-style.js +35 -32
  456. package/dist/esm/core/components/use-component-style.js.map +1 -1
  457. package/dist/esm/core/components/utils.js +3 -3
  458. package/dist/esm/core/components/utils.js.map +1 -1
  459. package/dist/esm/core/css/animation.js +5 -4
  460. package/dist/esm/core/css/animation.js.map +1 -1
  461. package/dist/esm/core/css/at-rule.js +6 -4
  462. package/dist/esm/core/css/at-rule.js.map +1 -1
  463. package/dist/esm/core/css/calc.js +2 -2
  464. package/dist/esm/core/css/calc.js.map +1 -1
  465. package/dist/esm/core/css/color-mix.js +2 -2
  466. package/dist/esm/core/css/color-mix.js.map +1 -1
  467. package/dist/esm/core/css/color-scheme.js +4 -3
  468. package/dist/esm/core/css/color-scheme.js.map +1 -1
  469. package/dist/esm/core/css/config.js +5 -5
  470. package/dist/esm/core/css/config.js.map +1 -1
  471. package/dist/esm/core/css/css.js +24 -22
  472. package/dist/esm/core/css/css.js.map +1 -1
  473. package/dist/esm/core/css/gradient.js +4 -4
  474. package/dist/esm/core/css/gradient.js.map +1 -1
  475. package/dist/esm/core/css/merge-css.js +2 -2
  476. package/dist/esm/core/css/merge-css.js.map +1 -1
  477. package/dist/esm/core/css/style.js +2 -2
  478. package/dist/esm/core/css/style.js.map +1 -1
  479. package/dist/esm/core/css/utils.js +4 -4
  480. package/dist/esm/core/css/utils.js.map +1 -1
  481. package/dist/esm/core/system/breakpoint.js +4 -3
  482. package/dist/esm/core/system/breakpoint.js.map +1 -1
  483. package/dist/esm/core/system/color-mode-provider.js +9 -8
  484. package/dist/esm/core/system/color-mode-provider.js.map +1 -1
  485. package/dist/esm/core/system/create-system.js +15 -13
  486. package/dist/esm/core/system/create-system.js.map +1 -1
  487. package/dist/esm/core/system/environment-provider.js +5 -4
  488. package/dist/esm/core/system/environment-provider.js.map +1 -1
  489. package/dist/esm/core/system/layer.js +3 -3
  490. package/dist/esm/core/system/layer.js.map +1 -1
  491. package/dist/esm/core/system/styled.js +17 -12
  492. package/dist/esm/core/system/styled.js.map +1 -1
  493. package/dist/esm/core/system/theme-provider.js +7 -6
  494. package/dist/esm/core/system/theme-provider.js.map +1 -1
  495. package/dist/esm/core/system/use-system-color-mode.js +2 -2
  496. package/dist/esm/core/system/use-system-color-mode.js.map +1 -1
  497. package/dist/esm/core/system/var.js +17 -14
  498. package/dist/esm/core/system/var.js.map +1 -1
  499. package/dist/esm/hooks/use-animation/index.js +12 -10
  500. package/dist/esm/hooks/use-animation/index.js.map +1 -1
  501. package/dist/esm/hooks/use-breakpoint/use-breakpoint.js +6 -4
  502. package/dist/esm/hooks/use-breakpoint/use-breakpoint.js.map +1 -1
  503. package/dist/esm/hooks/use-clickable/index.js +4 -4
  504. package/dist/esm/hooks/use-clickable/index.js.map +1 -1
  505. package/dist/esm/hooks/use-clipboard/index.js +3 -3
  506. package/dist/esm/hooks/use-clipboard/index.js.map +1 -1
  507. package/dist/esm/hooks/use-controllable-state/index.js +5 -4
  508. package/dist/esm/hooks/use-controllable-state/index.js.map +1 -1
  509. package/dist/esm/hooks/use-counter/index.js +5 -5
  510. package/dist/esm/hooks/use-counter/index.js.map +1 -1
  511. package/dist/esm/hooks/use-descendant/index.js +4 -3
  512. package/dist/esm/hooks/use-descendant/index.js.map +1 -1
  513. package/dist/esm/hooks/use-disclosure/use-promise-disclosure.js +2 -2
  514. package/dist/esm/hooks/use-disclosure/use-promise-disclosure.js.map +1 -1
  515. package/dist/esm/hooks/use-event-listener/index.js +3 -3
  516. package/dist/esm/hooks/use-event-listener/index.js.map +1 -1
  517. package/dist/esm/hooks/use-focus/index.js +7 -7
  518. package/dist/esm/hooks/use-focus/index.js.map +1 -1
  519. package/dist/esm/hooks/use-focus-visible/index.js +2 -2
  520. package/dist/esm/hooks/use-focus-visible/index.js.map +1 -1
  521. package/dist/esm/hooks/use-local-storage/index.js +2 -2
  522. package/dist/esm/hooks/use-local-storage/index.js.map +1 -1
  523. package/dist/esm/hooks/use-os/index.js +2 -2
  524. package/dist/esm/hooks/use-os/index.js.map +1 -1
  525. package/dist/esm/hooks/use-outside-click/index.js +3 -3
  526. package/dist/esm/hooks/use-outside-click/index.js.map +1 -1
  527. package/dist/esm/hooks/use-pan-event/index.js +6 -6
  528. package/dist/esm/hooks/use-pan-event/index.js.map +1 -1
  529. package/dist/esm/hooks/use-resize-observer/index.js +2 -2
  530. package/dist/esm/hooks/use-resize-observer/index.js.map +1 -1
  531. package/dist/esm/hooks/use-size/index.js +3 -3
  532. package/dist/esm/hooks/use-size/index.js.map +1 -1
  533. package/dist/esm/hooks/use-token/index.js +9 -8
  534. package/dist/esm/hooks/use-token/index.js.map +1 -1
  535. package/dist/esm/hooks/use-value/index.js +3 -3
  536. package/dist/esm/hooks/use-value/index.js.map +1 -1
  537. package/dist/esm/index.js +13 -2468
  538. package/dist/esm/providers/i18n-provider/i18n-provider.js +16 -12
  539. package/dist/esm/providers/i18n-provider/i18n-provider.js.map +1 -1
  540. package/dist/esm/utils/common/array.js +13 -0
  541. package/dist/esm/utils/common/array.js.map +1 -0
  542. package/dist/esm/utils/common/assertion.js +56 -0
  543. package/dist/esm/utils/common/assertion.js.map +1 -0
  544. package/dist/esm/utils/common/calc.js +38 -0
  545. package/dist/esm/utils/common/calc.js.map +1 -0
  546. package/dist/esm/utils/common/color.js +232 -0
  547. package/dist/esm/utils/common/color.js.map +1 -0
  548. package/dist/esm/utils/common/dom.js +325 -0
  549. package/dist/esm/utils/common/dom.js.map +1 -0
  550. package/dist/esm/utils/common/event.js +83 -0
  551. package/dist/esm/utils/common/event.js.map +1 -0
  552. package/dist/esm/utils/common/function.js +24 -0
  553. package/dist/esm/utils/common/function.js.map +1 -0
  554. package/dist/esm/utils/common/i18n.js +45 -0
  555. package/dist/esm/utils/common/i18n.js.map +1 -0
  556. package/dist/esm/utils/common/index.js +14 -0
  557. package/dist/esm/utils/common/index.types.js +0 -0
  558. package/dist/esm/utils/common/module.js +8 -0
  559. package/dist/esm/utils/common/module.js.map +1 -0
  560. package/dist/esm/utils/common/number.js +39 -0
  561. package/dist/esm/utils/common/number.js.map +1 -0
  562. package/dist/esm/utils/common/object.js +108 -0
  563. package/dist/esm/utils/common/object.js.map +1 -0
  564. package/dist/esm/utils/common/string.js +86 -0
  565. package/dist/esm/utils/common/string.js.map +1 -0
  566. package/dist/esm/utils/index.js +13 -39
  567. package/dist/types/components/accordion/accordion.d.ts +5 -5
  568. package/dist/types/components/airy/airy.d.ts +5 -5
  569. package/dist/types/components/alert/alert.d.ts +7 -7
  570. package/dist/types/components/alert/alert.style.d.ts +1 -1
  571. package/dist/types/components/aspect-ratio/aspect-ratio.d.ts +3 -3
  572. package/dist/types/components/avatar/avatar.d.ts +8 -8
  573. package/dist/types/components/avatar/avatar.style.d.ts +1 -1
  574. package/dist/types/components/avatar/use-avatar-group.d.ts +2 -2
  575. package/dist/types/components/badge/badge.d.ts +3 -3
  576. package/dist/types/components/bleed/bleed.d.ts +3 -3
  577. package/dist/types/components/blockquote/blockquote.d.ts +5 -5
  578. package/dist/types/components/breadcrumb/breadcrumb.d.ts +6 -6
  579. package/dist/types/components/breadcrumb/breadcrumb.style.d.ts +1 -1
  580. package/dist/types/components/breadcrumb/use-breadcrumb.d.ts +2 -2
  581. package/dist/types/components/button/button.d.ts +7 -7
  582. package/dist/types/components/button/close-button.d.ts +5 -5
  583. package/dist/types/components/button/icon-button.d.ts +5 -5
  584. package/dist/types/components/card/card.d.ts +5 -5
  585. package/dist/types/components/carousel/carousel.d.ts +8 -8
  586. package/dist/types/components/carousel/carousel.style.d.ts +2 -2
  587. package/dist/types/components/carousel/use-carousel.d.ts +3 -3
  588. package/dist/types/components/center/center.d.ts +3 -3
  589. package/dist/types/components/circle-progress/circle-progress.d.ts +5 -5
  590. package/dist/types/components/code/code.d.ts +3 -3
  591. package/dist/types/components/collapse/collapse.d.ts +5 -5
  592. package/dist/types/components/color-swatch/color-swatch.d.ts +5 -5
  593. package/dist/types/components/container/container.d.ts +5 -5
  594. package/dist/types/components/data-list/data-list.d.ts +8 -8
  595. package/dist/types/components/data-list/data-list.style.d.ts +1 -1
  596. package/dist/types/components/drawer/drawer.d.ts +12 -12
  597. package/dist/types/components/drawer/drawer.style.d.ts +2 -2
  598. package/dist/types/components/editable/editable.d.ts +7 -7
  599. package/dist/types/components/editable/use-editable.d.ts +2 -2
  600. package/dist/types/components/em/em.d.ts +3 -3
  601. package/dist/types/components/empty-state/empty-state.d.ts +5 -5
  602. package/dist/types/components/fade/fade-scale.d.ts +5 -5
  603. package/dist/types/components/fade/fade.d.ts +5 -5
  604. package/dist/types/components/field/field.d.ts +6 -6
  605. package/dist/types/components/field/use-field-props.d.ts +6 -6
  606. package/dist/types/components/fieldset/fieldset.d.ts +6 -6
  607. package/dist/types/components/file-button/file-button.d.ts +3 -3
  608. package/dist/types/components/file-button/use-file-button.d.ts +18 -18
  609. package/dist/types/components/file-input/file-input.d.ts +6 -6
  610. package/dist/types/components/file-input/file-input.style.d.ts +1 -1
  611. package/dist/types/components/file-input/use-file-input.d.ts +18 -18
  612. package/dist/types/components/flex/flex.d.ts +3 -3
  613. package/dist/types/components/flip/flip.d.ts +7 -7
  614. package/dist/types/components/float/float.d.ts +3 -3
  615. package/dist/types/components/format/format-byte.d.ts +5 -5
  616. package/dist/types/components/format/format-number.d.ts +3 -3
  617. package/dist/types/components/grid/grid-item.d.ts +4 -4
  618. package/dist/types/components/grid/grid.d.ts +3 -3
  619. package/dist/types/components/group/group.d.ts +5 -5
  620. package/dist/types/components/group/use-group.d.ts +828 -828
  621. package/dist/types/components/heading/heading.d.ts +3 -3
  622. package/dist/types/components/icon/icon.d.ts +5 -5
  623. package/dist/types/components/icon/icons/a-arrow-down-icon.d.ts +2 -2
  624. package/dist/types/components/icon/icons/a-arrow-up-icon.d.ts +2 -2
  625. package/dist/types/components/icon/icons/a-large-small-icon.d.ts +2 -2
  626. package/dist/types/components/icon/icons/accessibility-icon.d.ts +2 -2
  627. package/dist/types/components/icon/icons/activity-icon.d.ts +2 -2
  628. package/dist/types/components/icon/icons/air-vent-icon.d.ts +2 -2
  629. package/dist/types/components/icon/icons/airplay-icon.d.ts +2 -2
  630. package/dist/types/components/icon/icons/alarm-clock-check-icon.d.ts +2 -2
  631. package/dist/types/components/icon/icons/alarm-clock-icon.d.ts +2 -2
  632. package/dist/types/components/icon/icons/alarm-clock-minus-icon.d.ts +2 -2
  633. package/dist/types/components/icon/icons/alarm-clock-off-icon.d.ts +2 -2
  634. package/dist/types/components/icon/icons/alarm-clock-plus-icon.d.ts +2 -2
  635. package/dist/types/components/icon/icons/alarm-smoke-icon.d.ts +2 -2
  636. package/dist/types/components/icon/icons/album-icon.d.ts +2 -2
  637. package/dist/types/components/icon/icons/align-center-horizontal-icon.d.ts +2 -2
  638. package/dist/types/components/icon/icons/align-center-icon.d.ts +2 -2
  639. package/dist/types/components/icon/icons/align-center-vertical-icon.d.ts +2 -2
  640. package/dist/types/components/icon/icons/align-end-horizontal-icon.d.ts +2 -2
  641. package/dist/types/components/icon/icons/align-end-vertical-icon.d.ts +2 -2
  642. package/dist/types/components/icon/icons/align-horizontal-distribute-center-icon.d.ts +2 -2
  643. package/dist/types/components/icon/icons/align-horizontal-distribute-end-icon.d.ts +2 -2
  644. package/dist/types/components/icon/icons/align-horizontal-distribute-start-icon.d.ts +2 -2
  645. package/dist/types/components/icon/icons/align-horizontal-justify-center-icon.d.ts +2 -2
  646. package/dist/types/components/icon/icons/align-horizontal-justify-end-icon.d.ts +2 -2
  647. package/dist/types/components/icon/icons/align-horizontal-justify-start-icon.d.ts +2 -2
  648. package/dist/types/components/icon/icons/align-horizontal-space-around-icon.d.ts +2 -2
  649. package/dist/types/components/icon/icons/align-justify-icon.d.ts +2 -2
  650. package/dist/types/components/icon/icons/align-right-icon.d.ts +2 -2
  651. package/dist/types/components/icon/icons/align-start-horizontal-icon.d.ts +2 -2
  652. package/dist/types/components/icon/icons/align-vertical-distribute-center-icon.d.ts +2 -2
  653. package/dist/types/components/icon/icons/align-vertical-distribute-start-icon.d.ts +2 -2
  654. package/dist/types/components/icon/icons/align-vertical-justify-center-icon.d.ts +2 -2
  655. package/dist/types/components/icon/icons/align-vertical-justify-end-icon.d.ts +2 -2
  656. package/dist/types/components/icon/icons/align-vertical-justify-start-icon.d.ts +2 -2
  657. package/dist/types/components/icon/icons/align-vertical-space-around-icon.d.ts +2 -2
  658. package/dist/types/components/icon/icons/ambulance-icon.d.ts +2 -2
  659. package/dist/types/components/icon/icons/ampersand-icon.d.ts +2 -2
  660. package/dist/types/components/icon/icons/ampersands-icon.d.ts +2 -2
  661. package/dist/types/components/icon/icons/anchor-icon.d.ts +2 -2
  662. package/dist/types/components/icon/icons/angry-icon.d.ts +2 -2
  663. package/dist/types/components/icon/icons/antenna-icon.d.ts +2 -2
  664. package/dist/types/components/icon/icons/anvil-icon.d.ts +2 -2
  665. package/dist/types/components/icon/icons/app-window-icon.d.ts +2 -2
  666. package/dist/types/components/icon/icons/app-window-mac-icon.d.ts +2 -2
  667. package/dist/types/components/icon/icons/apple-icon.d.ts +2 -2
  668. package/dist/types/components/icon/icons/archive-icon.d.ts +2 -2
  669. package/dist/types/components/icon/icons/archive-x-icon.d.ts +2 -2
  670. package/dist/types/components/icon/icons/armchair-icon.d.ts +2 -2
  671. package/dist/types/components/icon/icons/arrow-big-left-dash-icon.d.ts +2 -2
  672. package/dist/types/components/icon/icons/arrow-big-right-dash-icon.d.ts +2 -2
  673. package/dist/types/components/icon/icons/arrow-big-right-icon.d.ts +2 -2
  674. package/dist/types/components/icon/icons/arrow-big-up-dash-icon.d.ts +2 -2
  675. package/dist/types/components/icon/icons/arrow-big-up-icon.d.ts +2 -2
  676. package/dist/types/components/icon/icons/arrow-down-a-z-icon.d.ts +2 -2
  677. package/dist/types/components/icon/icons/arrow-down-from-line-icon.d.ts +2 -2
  678. package/dist/types/components/icon/icons/arrow-down-icon.d.ts +2 -2
  679. package/dist/types/components/icon/icons/arrow-down-right-icon.d.ts +2 -2
  680. package/dist/types/components/icon/icons/arrow-down-to-dot-icon.d.ts +2 -2
  681. package/dist/types/components/icon/icons/arrow-down-to-line-icon.d.ts +2 -2
  682. package/dist/types/components/icon/icons/arrow-down-wide-narrow-icon.d.ts +2 -2
  683. package/dist/types/components/icon/icons/arrow-down-z-a-icon.d.ts +2 -2
  684. package/dist/types/components/icon/icons/arrow-down01-icon.d.ts +2 -2
  685. package/dist/types/components/icon/icons/arrow-down10-icon.d.ts +2 -2
  686. package/dist/types/components/icon/icons/arrow-left-from-line-icon.d.ts +2 -2
  687. package/dist/types/components/icon/icons/arrow-left-icon.d.ts +2 -2
  688. package/dist/types/components/icon/icons/arrow-left-right-icon.d.ts +2 -2
  689. package/dist/types/components/icon/icons/arrow-right-from-line-icon.d.ts +2 -2
  690. package/dist/types/components/icon/icons/arrow-right-icon.d.ts +2 -2
  691. package/dist/types/components/icon/icons/arrow-right-left-icon.d.ts +2 -2
  692. package/dist/types/components/icon/icons/arrow-right-to-line-icon.d.ts +2 -2
  693. package/dist/types/components/icon/icons/arrow-up-a-z-icon.d.ts +2 -2
  694. package/dist/types/components/icon/icons/arrow-up-left-icon.d.ts +2 -2
  695. package/dist/types/components/icon/icons/arrow-up-right-icon.d.ts +2 -2
  696. package/dist/types/components/icon/icons/arrow-up-z-a-icon.d.ts +2 -2
  697. package/dist/types/components/icon/icons/arrow-up01-icon.d.ts +2 -2
  698. package/dist/types/components/icon/icons/arrow-up10-icon.d.ts +2 -2
  699. package/dist/types/components/icon/icons/arrows-up-from-line-icon.d.ts +2 -2
  700. package/dist/types/components/icon/icons/asterisk-icon.d.ts +2 -2
  701. package/dist/types/components/icon/icons/at-sign-icon.d.ts +2 -2
  702. package/dist/types/components/icon/icons/atom-icon.d.ts +2 -2
  703. package/dist/types/components/icon/icons/audio-lines-icon.d.ts +2 -2
  704. package/dist/types/components/icon/icons/audio-waveform-icon.d.ts +2 -2
  705. package/dist/types/components/icon/icons/axe-icon.d.ts +2 -2
  706. package/dist/types/components/icon/icons/baby-icon.d.ts +2 -2
  707. package/dist/types/components/icon/icons/backpack-icon.d.ts +2 -2
  708. package/dist/types/components/icon/icons/badge-alert-icon.d.ts +2 -2
  709. package/dist/types/components/icon/icons/badge-cent-icon.d.ts +2 -2
  710. package/dist/types/components/icon/icons/badge-check-icon.d.ts +2 -2
  711. package/dist/types/components/icon/icons/badge-dollar-sign-icon.d.ts +2 -2
  712. package/dist/types/components/icon/icons/badge-euro-icon.d.ts +2 -2
  713. package/dist/types/components/icon/icons/badge-icon.d.ts +2 -2
  714. package/dist/types/components/icon/icons/badge-info-icon.d.ts +2 -2
  715. package/dist/types/components/icon/icons/badge-japanese-yen-icon.d.ts +2 -2
  716. package/dist/types/components/icon/icons/badge-minus-icon.d.ts +2 -2
  717. package/dist/types/components/icon/icons/badge-percent-icon.d.ts +2 -2
  718. package/dist/types/components/icon/icons/badge-plus-icon.d.ts +2 -2
  719. package/dist/types/components/icon/icons/badge-pound-sterling-icon.d.ts +2 -2
  720. package/dist/types/components/icon/icons/baggage-claim-icon.d.ts +2 -2
  721. package/dist/types/components/icon/icons/ban-icon.d.ts +2 -2
  722. package/dist/types/components/icon/icons/banknote-arrow-up-icon.d.ts +2 -2
  723. package/dist/types/components/icon/icons/banknote-icon.d.ts +2 -2
  724. package/dist/types/components/icon/icons/banknote-x-icon.d.ts +2 -2
  725. package/dist/types/components/icon/icons/barcode-icon.d.ts +2 -2
  726. package/dist/types/components/icon/icons/barrel-icon.d.ts +2 -2
  727. package/dist/types/components/icon/icons/baseline-icon.d.ts +2 -2
  728. package/dist/types/components/icon/icons/bath-icon.d.ts +2 -2
  729. package/dist/types/components/icon/icons/battery-charging-icon.d.ts +2 -2
  730. package/dist/types/components/icon/icons/battery-full-icon.d.ts +2 -2
  731. package/dist/types/components/icon/icons/battery-medium-icon.d.ts +2 -2
  732. package/dist/types/components/icon/icons/battery-plus-icon.d.ts +2 -2
  733. package/dist/types/components/icon/icons/battery-warning-icon.d.ts +2 -2
  734. package/dist/types/components/icon/icons/beaker-icon.d.ts +2 -2
  735. package/dist/types/components/icon/icons/bean-icon.d.ts +2 -2
  736. package/dist/types/components/icon/icons/bean-off-icon.d.ts +2 -2
  737. package/dist/types/components/icon/icons/beef-icon.d.ts +2 -2
  738. package/dist/types/components/icon/icons/beer-off-icon.d.ts +2 -2
  739. package/dist/types/components/icon/icons/bell-dot-icon.d.ts +2 -2
  740. package/dist/types/components/icon/icons/bell-minus-icon.d.ts +2 -2
  741. package/dist/types/components/icon/icons/bell-off-icon.d.ts +2 -2
  742. package/dist/types/components/icon/icons/bell-plus-icon.d.ts +2 -2
  743. package/dist/types/components/icon/icons/bell-ring-icon.d.ts +2 -2
  744. package/dist/types/components/icon/icons/between-horizontal-start-icon.d.ts +2 -2
  745. package/dist/types/components/icon/icons/between-vertical-start-icon.d.ts +2 -2
  746. package/dist/types/components/icon/icons/binary-icon.d.ts +2 -2
  747. package/dist/types/components/icon/icons/binoculars-icon.d.ts +2 -2
  748. package/dist/types/components/icon/icons/biohazard-icon.d.ts +2 -2
  749. package/dist/types/components/icon/icons/bird-icon.d.ts +2 -2
  750. package/dist/types/components/icon/icons/bitcoin-icon.d.ts +2 -2
  751. package/dist/types/components/icon/icons/blend-icon.d.ts +2 -2
  752. package/dist/types/components/icon/icons/bluetooth-off-icon.d.ts +2 -2
  753. package/dist/types/components/icon/icons/bluetooth-searching-icon.d.ts +2 -2
  754. package/dist/types/components/icon/icons/bomb-icon.d.ts +2 -2
  755. package/dist/types/components/icon/icons/bone-icon.d.ts +2 -2
  756. package/dist/types/components/icon/icons/book-dashed-icon.d.ts +2 -2
  757. package/dist/types/components/icon/icons/book-down-icon.d.ts +2 -2
  758. package/dist/types/components/icon/icons/book-headphones-icon.d.ts +2 -2
  759. package/dist/types/components/icon/icons/book-heart-icon.d.ts +2 -2
  760. package/dist/types/components/icon/icons/book-icon.d.ts +2 -2
  761. package/dist/types/components/icon/icons/book-image-icon.d.ts +2 -2
  762. package/dist/types/components/icon/icons/book-minus-icon.d.ts +2 -2
  763. package/dist/types/components/icon/icons/book-open-check-icon.d.ts +2 -2
  764. package/dist/types/components/icon/icons/book-text-icon.d.ts +2 -2
  765. package/dist/types/components/icon/icons/book-type-icon.d.ts +2 -2
  766. package/dist/types/components/icon/icons/book-up-icon.d.ts +2 -2
  767. package/dist/types/components/icon/icons/book-up2-icon.d.ts +2 -2
  768. package/dist/types/components/icon/icons/bookmark-x-icon.d.ts +2 -2
  769. package/dist/types/components/icon/icons/boom-box-icon.d.ts +2 -2
  770. package/dist/types/components/icon/icons/bot-icon.d.ts +2 -2
  771. package/dist/types/components/icon/icons/bot-message-square-icon.d.ts +2 -2
  772. package/dist/types/components/icon/icons/bottle-wine-icon.d.ts +2 -2
  773. package/dist/types/components/icon/icons/bow-arrow-icon.d.ts +2 -2
  774. package/dist/types/components/icon/icons/box-icon.d.ts +2 -2
  775. package/dist/types/components/icon/icons/boxes-icon.d.ts +2 -2
  776. package/dist/types/components/icon/icons/brackets-icon.d.ts +2 -2
  777. package/dist/types/components/icon/icons/brain-circuit-icon.d.ts +2 -2
  778. package/dist/types/components/icon/icons/brain-cog-icon.d.ts +2 -2
  779. package/dist/types/components/icon/icons/briefcase-conveyor-belt-icon.d.ts +2 -2
  780. package/dist/types/components/icon/icons/briefcase-icon.d.ts +2 -2
  781. package/dist/types/components/icon/icons/brush-cleaning-icon.d.ts +2 -2
  782. package/dist/types/components/icon/icons/brush-icon.d.ts +2 -2
  783. package/dist/types/components/icon/icons/bubbles-icon.d.ts +2 -2
  784. package/dist/types/components/icon/icons/bug-off-icon.d.ts +2 -2
  785. package/dist/types/components/icon/icons/bug-play-icon.d.ts +2 -2
  786. package/dist/types/components/icon/icons/building-icon.d.ts +2 -2
  787. package/dist/types/components/icon/icons/bus-front-icon.d.ts +2 -2
  788. package/dist/types/components/icon/icons/bus-icon.d.ts +2 -2
  789. package/dist/types/components/icon/icons/cable-car-icon.d.ts +2 -2
  790. package/dist/types/components/icon/icons/cable-icon.d.ts +2 -2
  791. package/dist/types/components/icon/icons/cake-icon.d.ts +2 -2
  792. package/dist/types/components/icon/icons/cake-slice-icon.d.ts +2 -2
  793. package/dist/types/components/icon/icons/calculator-icon.d.ts +2 -2
  794. package/dist/types/components/icon/icons/calendar-arrow-down-icon.d.ts +2 -2
  795. package/dist/types/components/icon/icons/calendar-arrow-up-icon.d.ts +2 -2
  796. package/dist/types/components/icon/icons/calendar-check2-icon.d.ts +2 -2
  797. package/dist/types/components/icon/icons/calendar-clock-icon.d.ts +2 -2
  798. package/dist/types/components/icon/icons/calendar-cog-icon.d.ts +2 -2
  799. package/dist/types/components/icon/icons/calendar-minus-icon.d.ts +2 -2
  800. package/dist/types/components/icon/icons/calendar-off-icon.d.ts +2 -2
  801. package/dist/types/components/icon/icons/calendar-sync-icon.d.ts +2 -2
  802. package/dist/types/components/icon/icons/calendar-x-icon.d.ts +2 -2
  803. package/dist/types/components/icon/icons/calendar-x2-icon.d.ts +2 -2
  804. package/dist/types/components/icon/icons/calendar1-icon.d.ts +2 -2
  805. package/dist/types/components/icon/icons/cannabis-icon.d.ts +2 -2
  806. package/dist/types/components/icon/icons/captions-icon.d.ts +2 -2
  807. package/dist/types/components/icon/icons/caravan-icon.d.ts +2 -2
  808. package/dist/types/components/icon/icons/card-sim-icon.d.ts +2 -2
  809. package/dist/types/components/icon/icons/chart-bar-icon.d.ts +2 -2
  810. package/dist/types/components/icon/icons/chart-bar-increasing-icon.d.ts +2 -2
  811. package/dist/types/components/icon/icons/chart-bar-stacked-icon.d.ts +2 -2
  812. package/dist/types/components/icon/icons/chart-column-icon.d.ts +2 -2
  813. package/dist/types/components/icon/icons/chart-column-increasing-icon.d.ts +2 -2
  814. package/dist/types/components/icon/icons/chart-column-stacked-icon.d.ts +2 -2
  815. package/dist/types/components/icon/icons/chart-gantt-icon.d.ts +2 -2
  816. package/dist/types/components/icon/icons/chart-line-icon.d.ts +2 -2
  817. package/dist/types/components/icon/icons/chart-no-axes-combined-icon.d.ts +2 -2
  818. package/dist/types/components/icon/icons/chart-no-axes-gantt-icon.d.ts +2 -2
  819. package/dist/types/components/icon/icons/chart-pie-icon.d.ts +2 -2
  820. package/dist/types/components/icon/icons/chart-scatter-icon.d.ts +2 -2
  821. package/dist/types/components/icon/icons/chart-spline-icon.d.ts +2 -2
  822. package/dist/types/components/icon/icons/check-check-icon.d.ts +2 -2
  823. package/dist/types/components/icon/icons/chevron-first-icon.d.ts +2 -2
  824. package/dist/types/components/icon/icons/chevron-last-icon.d.ts +2 -2
  825. package/dist/types/components/icon/icons/chevrons-right-icon.d.ts +2 -2
  826. package/dist/types/components/icon/icons/chevrons-right-left-icon.d.ts +2 -2
  827. package/dist/types/components/icon/icons/chevrons-up-down-icon.d.ts +2 -2
  828. package/dist/types/components/icon/icons/cigarette-icon.d.ts +2 -2
  829. package/dist/types/components/icon/icons/cigarette-off-icon.d.ts +2 -2
  830. package/dist/types/components/icon/icons/circle-arrow-left-icon.d.ts +2 -2
  831. package/dist/types/components/icon/icons/circle-arrow-out-down-left-icon.d.ts +2 -2
  832. package/dist/types/components/icon/icons/circle-arrow-out-down-right-icon.d.ts +2 -2
  833. package/dist/types/components/icon/icons/circle-arrow-out-up-left-icon.d.ts +2 -2
  834. package/dist/types/components/icon/icons/circle-arrow-out-up-right-icon.d.ts +2 -2
  835. package/dist/types/components/icon/icons/circle-arrow-right-icon.d.ts +2 -2
  836. package/dist/types/components/icon/icons/circle-arrow-up-icon.d.ts +2 -2
  837. package/dist/types/components/icon/icons/circle-check-icon.d.ts +2 -2
  838. package/dist/types/components/icon/icons/circle-chevron-down-icon.d.ts +2 -2
  839. package/dist/types/components/icon/icons/circle-chevron-left-icon.d.ts +2 -2
  840. package/dist/types/components/icon/icons/circle-chevron-right-icon.d.ts +2 -2
  841. package/dist/types/components/icon/icons/circle-dollar-sign-icon.d.ts +2 -2
  842. package/dist/types/components/icon/icons/circle-dot-icon.d.ts +2 -2
  843. package/dist/types/components/icon/icons/circle-ellipsis-icon.d.ts +2 -2
  844. package/dist/types/components/icon/icons/circle-equal-icon.d.ts +2 -2
  845. package/dist/types/components/icon/icons/circle-fading-plus-icon.d.ts +2 -2
  846. package/dist/types/components/icon/icons/circle-gauge-icon.d.ts +2 -2
  847. package/dist/types/components/icon/icons/circle-icon.d.ts +2 -2
  848. package/dist/types/components/icon/icons/circle-minus-icon.d.ts +2 -2
  849. package/dist/types/components/icon/icons/circle-off-icon.d.ts +2 -2
  850. package/dist/types/components/icon/icons/circle-parking-icon.d.ts +2 -2
  851. package/dist/types/components/icon/icons/circle-parking-off-icon.d.ts +2 -2
  852. package/dist/types/components/icon/icons/circle-pause-icon.d.ts +2 -2
  853. package/dist/types/components/icon/icons/circle-percent-icon.d.ts +2 -2
  854. package/dist/types/components/icon/icons/circle-play-icon.d.ts +2 -2
  855. package/dist/types/components/icon/icons/circle-plus-icon.d.ts +2 -2
  856. package/dist/types/components/icon/icons/circle-pound-sterling-icon.d.ts +2 -2
  857. package/dist/types/components/icon/icons/circle-power-icon.d.ts +2 -2
  858. package/dist/types/components/icon/icons/circle-question-mark-icon.d.ts +2 -2
  859. package/dist/types/components/icon/icons/circle-slash-icon.d.ts +2 -2
  860. package/dist/types/components/icon/icons/circle-slash2-icon.d.ts +2 -2
  861. package/dist/types/components/icon/icons/circle-small-icon.d.ts +2 -2
  862. package/dist/types/components/icon/icons/circle-stop-icon.d.ts +2 -2
  863. package/dist/types/components/icon/icons/circle-user-icon.d.ts +2 -2
  864. package/dist/types/components/icon/icons/circle-user-round-icon.d.ts +2 -2
  865. package/dist/types/components/icon/icons/circle-x-icon.d.ts +2 -2
  866. package/dist/types/components/icon/icons/circuit-board-icon.d.ts +2 -2
  867. package/dist/types/components/icon/icons/citrus-icon.d.ts +2 -2
  868. package/dist/types/components/icon/icons/clapperboard-icon.d.ts +2 -2
  869. package/dist/types/components/icon/icons/clipboard-check-icon.d.ts +2 -2
  870. package/dist/types/components/icon/icons/clipboard-icon.d.ts +2 -2
  871. package/dist/types/components/icon/icons/clipboard-list-icon.d.ts +2 -2
  872. package/dist/types/components/icon/icons/clipboard-minus-icon.d.ts +2 -2
  873. package/dist/types/components/icon/icons/clipboard-paste-icon.d.ts +2 -2
  874. package/dist/types/components/icon/icons/clipboard-pen-icon.d.ts +2 -2
  875. package/dist/types/components/icon/icons/clipboard-pen-line-icon.d.ts +2 -2
  876. package/dist/types/components/icon/icons/clipboard-plus-icon.d.ts +2 -2
  877. package/dist/types/components/icon/icons/clipboard-type-icon.d.ts +2 -2
  878. package/dist/types/components/icon/icons/clipboard-x-icon.d.ts +2 -2
  879. package/dist/types/components/icon/icons/clock-arrow-down-icon.d.ts +2 -2
  880. package/dist/types/components/icon/icons/clock-arrow-up-icon.d.ts +2 -2
  881. package/dist/types/components/icon/icons/clock-fading-icon.d.ts +2 -2
  882. package/dist/types/components/icon/icons/clock-icon.d.ts +2 -2
  883. package/dist/types/components/icon/icons/clock-plus-icon.d.ts +2 -2
  884. package/dist/types/components/icon/icons/clock1-icon.d.ts +2 -2
  885. package/dist/types/components/icon/icons/clock10-icon.d.ts +2 -2
  886. package/dist/types/components/icon/icons/clock11-icon.d.ts +2 -2
  887. package/dist/types/components/icon/icons/clock12-icon.d.ts +2 -2
  888. package/dist/types/components/icon/icons/clock2-icon.d.ts +2 -2
  889. package/dist/types/components/icon/icons/clock3-icon.d.ts +2 -2
  890. package/dist/types/components/icon/icons/clock5-icon.d.ts +2 -2
  891. package/dist/types/components/icon/icons/clock6-icon.d.ts +2 -2
  892. package/dist/types/components/icon/icons/clock7-icon.d.ts +2 -2
  893. package/dist/types/components/icon/icons/clock8-icon.d.ts +2 -2
  894. package/dist/types/components/icon/icons/clock9-icon.d.ts +2 -2
  895. package/dist/types/components/icon/icons/cloud-alert-icon.d.ts +2 -2
  896. package/dist/types/components/icon/icons/cloud-check-icon.d.ts +2 -2
  897. package/dist/types/components/icon/icons/cloud-download-icon.d.ts +2 -2
  898. package/dist/types/components/icon/icons/cloud-drizzle-icon.d.ts +2 -2
  899. package/dist/types/components/icon/icons/cloud-fog-icon.d.ts +2 -2
  900. package/dist/types/components/icon/icons/cloud-icon.d.ts +2 -2
  901. package/dist/types/components/icon/icons/cloud-lightning-icon.d.ts +2 -2
  902. package/dist/types/components/icon/icons/cloud-moon-icon.d.ts +2 -2
  903. package/dist/types/components/icon/icons/cloud-moon-rain-icon.d.ts +2 -2
  904. package/dist/types/components/icon/icons/cloud-off-icon.d.ts +2 -2
  905. package/dist/types/components/icon/icons/cloud-rain-icon.d.ts +2 -2
  906. package/dist/types/components/icon/icons/cloud-rain-wind-icon.d.ts +2 -2
  907. package/dist/types/components/icon/icons/cloud-snow-icon.d.ts +2 -2
  908. package/dist/types/components/icon/icons/cloud-sun-icon.d.ts +2 -2
  909. package/dist/types/components/icon/icons/cloud-sun-rain-icon.d.ts +2 -2
  910. package/dist/types/components/icon/icons/cloudy-icon.d.ts +2 -2
  911. package/dist/types/components/icon/icons/clover-icon.d.ts +2 -2
  912. package/dist/types/components/icon/icons/club-icon.d.ts +2 -2
  913. package/dist/types/components/icon/icons/code-icon.d.ts +2 -2
  914. package/dist/types/components/icon/icons/code-xml-icon.d.ts +2 -2
  915. package/dist/types/components/icon/icons/codesandbox-icon.d.ts +2 -2
  916. package/dist/types/components/icon/icons/cog-icon.d.ts +2 -2
  917. package/dist/types/components/icon/icons/coins-icon.d.ts +2 -2
  918. package/dist/types/components/icon/icons/columns2-icon.d.ts +2 -2
  919. package/dist/types/components/icon/icons/columns3-icon.d.ts +2 -2
  920. package/dist/types/components/icon/icons/combine-icon.d.ts +2 -2
  921. package/dist/types/components/icon/icons/compass-icon.d.ts +2 -2
  922. package/dist/types/components/icon/icons/component-icon.d.ts +2 -2
  923. package/dist/types/components/icon/icons/computer-icon.d.ts +2 -2
  924. package/dist/types/components/icon/icons/concierge-bell-icon.d.ts +2 -2
  925. package/dist/types/components/icon/icons/contact-icon.d.ts +2 -2
  926. package/dist/types/components/icon/icons/contrast-icon.d.ts +2 -2
  927. package/dist/types/components/icon/icons/copy-plus-icon.d.ts +2 -2
  928. package/dist/types/components/icon/icons/copy-slash-icon.d.ts +2 -2
  929. package/dist/types/components/icon/icons/copy-x-icon.d.ts +2 -2
  930. package/dist/types/components/icon/icons/copyright-icon.d.ts +2 -2
  931. package/dist/types/components/icon/icons/corner-down-right-icon.d.ts +2 -2
  932. package/dist/types/components/icon/icons/corner-left-down-icon.d.ts +2 -2
  933. package/dist/types/components/icon/icons/corner-left-up-icon.d.ts +2 -2
  934. package/dist/types/components/icon/icons/corner-right-down-icon.d.ts +2 -2
  935. package/dist/types/components/icon/icons/corner-right-up-icon.d.ts +2 -2
  936. package/dist/types/components/icon/icons/corner-up-left-icon.d.ts +2 -2
  937. package/dist/types/components/icon/icons/corner-up-right-icon.d.ts +2 -2
  938. package/dist/types/components/icon/icons/creative-commons-icon.d.ts +2 -2
  939. package/dist/types/components/icon/icons/credit-card-icon.d.ts +2 -2
  940. package/dist/types/components/icon/icons/croissant-icon.d.ts +2 -2
  941. package/dist/types/components/icon/icons/crop-icon.d.ts +2 -2
  942. package/dist/types/components/icon/icons/crown-icon.d.ts +2 -2
  943. package/dist/types/components/icon/icons/cuboid-icon.d.ts +2 -2
  944. package/dist/types/components/icon/icons/cup-soda-icon.d.ts +2 -2
  945. package/dist/types/components/icon/icons/currency-icon.d.ts +2 -2
  946. package/dist/types/components/icon/icons/cylinder-icon.d.ts +2 -2
  947. package/dist/types/components/icon/icons/dam-icon.d.ts +2 -2
  948. package/dist/types/components/icon/icons/database-backup-icon.d.ts +2 -2
  949. package/dist/types/components/icon/icons/database-icon.d.ts +2 -2
  950. package/dist/types/components/icon/icons/database-zap-icon.d.ts +2 -2
  951. package/dist/types/components/icon/icons/decimals-arrow-left-icon.d.ts +2 -2
  952. package/dist/types/components/icon/icons/decimals-arrow-right-icon.d.ts +2 -2
  953. package/dist/types/components/icon/icons/dessert-icon.d.ts +2 -2
  954. package/dist/types/components/icon/icons/diamond-icon.d.ts +2 -2
  955. package/dist/types/components/icon/icons/diamond-minus-icon.d.ts +2 -2
  956. package/dist/types/components/icon/icons/diamond-percent-icon.d.ts +2 -2
  957. package/dist/types/components/icon/icons/dice1-icon.d.ts +2 -2
  958. package/dist/types/components/icon/icons/dice3-icon.d.ts +2 -2
  959. package/dist/types/components/icon/icons/dice4-icon.d.ts +2 -2
  960. package/dist/types/components/icon/icons/dice6-icon.d.ts +2 -2
  961. package/dist/types/components/icon/icons/dices-icon.d.ts +2 -2
  962. package/dist/types/components/icon/icons/diff-icon.d.ts +2 -2
  963. package/dist/types/components/icon/icons/disc-album-icon.d.ts +2 -2
  964. package/dist/types/components/icon/icons/disc-icon.d.ts +2 -2
  965. package/dist/types/components/icon/icons/disc2-icon.d.ts +2 -2
  966. package/dist/types/components/icon/icons/divide-icon.d.ts +2 -2
  967. package/dist/types/components/icon/icons/dna-off-icon.d.ts +2 -2
  968. package/dist/types/components/icon/icons/dock-icon.d.ts +2 -2
  969. package/dist/types/components/icon/icons/dog-icon.d.ts +2 -2
  970. package/dist/types/components/icon/icons/dollar-sign-icon.d.ts +2 -2
  971. package/dist/types/components/icon/icons/donut-icon.d.ts +2 -2
  972. package/dist/types/components/icon/icons/door-closed-locked-icon.d.ts +2 -2
  973. package/dist/types/components/icon/icons/door-open-icon.d.ts +2 -2
  974. package/dist/types/components/icon/icons/dot-icon.d.ts +2 -2
  975. package/dist/types/components/icon/icons/download-icon.d.ts +2 -2
  976. package/dist/types/components/icon/icons/drafting-compass-icon.d.ts +2 -2
  977. package/dist/types/components/icon/icons/drama-icon.d.ts +2 -2
  978. package/dist/types/components/icon/icons/dribbble-icon.d.ts +2 -2
  979. package/dist/types/components/icon/icons/drill-icon.d.ts +2 -2
  980. package/dist/types/components/icon/icons/drone-icon.d.ts +2 -2
  981. package/dist/types/components/icon/icons/droplet-icon.d.ts +2 -2
  982. package/dist/types/components/icon/icons/droplet-off-icon.d.ts +2 -2
  983. package/dist/types/components/icon/icons/droplets-icon.d.ts +2 -2
  984. package/dist/types/components/icon/icons/drumstick-icon.d.ts +2 -2
  985. package/dist/types/components/icon/icons/dumbbell-icon.d.ts +2 -2
  986. package/dist/types/components/icon/icons/ear-icon.d.ts +2 -2
  987. package/dist/types/components/icon/icons/ear-off-icon.d.ts +2 -2
  988. package/dist/types/components/icon/icons/earth-icon.d.ts +2 -2
  989. package/dist/types/components/icon/icons/earth-lock-icon.d.ts +2 -2
  990. package/dist/types/components/icon/icons/eclipse-icon.d.ts +2 -2
  991. package/dist/types/components/icon/icons/egg-fried-icon.d.ts +2 -2
  992. package/dist/types/components/icon/icons/egg-icon.d.ts +2 -2
  993. package/dist/types/components/icon/icons/egg-off-icon.d.ts +2 -2
  994. package/dist/types/components/icon/icons/ellipsis-icon.d.ts +2 -2
  995. package/dist/types/components/icon/icons/ellipsis-vertical-icon.d.ts +2 -2
  996. package/dist/types/components/icon/icons/equal-approximately-icon.d.ts +2 -2
  997. package/dist/types/components/icon/icons/equal-icon.d.ts +2 -2
  998. package/dist/types/components/icon/icons/equal-not-icon.d.ts +2 -2
  999. package/dist/types/components/icon/icons/eraser-icon.d.ts +2 -2
  1000. package/dist/types/components/icon/icons/ethernet-port-icon.d.ts +2 -2
  1001. package/dist/types/components/icon/icons/euro-icon.d.ts +2 -2
  1002. package/dist/types/components/icon/icons/expand-icon.d.ts +2 -2
  1003. package/dist/types/components/icon/icons/external-link-icon.d.ts +2 -2
  1004. package/dist/types/components/icon/icons/eye-closed-icon.d.ts +2 -2
  1005. package/dist/types/components/icon/icons/eye-icon.d.ts +2 -2
  1006. package/dist/types/components/icon/icons/facebook-icon.d.ts +2 -2
  1007. package/dist/types/components/icon/icons/factory-icon.d.ts +2 -2
  1008. package/dist/types/components/icon/icons/fan-icon.d.ts +2 -2
  1009. package/dist/types/components/icon/icons/feather-icon.d.ts +2 -2
  1010. package/dist/types/components/icon/icons/ferris-wheel-icon.d.ts +2 -2
  1011. package/dist/types/components/icon/icons/figma-icon.d.ts +2 -2
  1012. package/dist/types/components/icon/icons/file-archive-icon.d.ts +2 -2
  1013. package/dist/types/components/icon/icons/file-audio-icon.d.ts +2 -2
  1014. package/dist/types/components/icon/icons/file-audio2-icon.d.ts +2 -2
  1015. package/dist/types/components/icon/icons/file-axis3d-icon.d.ts +2 -2
  1016. package/dist/types/components/icon/icons/file-badge-icon.d.ts +2 -2
  1017. package/dist/types/components/icon/icons/file-badge2-icon.d.ts +2 -2
  1018. package/dist/types/components/icon/icons/file-chart-column-icon.d.ts +2 -2
  1019. package/dist/types/components/icon/icons/file-chart-column-increasing-icon.d.ts +2 -2
  1020. package/dist/types/components/icon/icons/file-chart-line-icon.d.ts +2 -2
  1021. package/dist/types/components/icon/icons/file-chart-pie-icon.d.ts +2 -2
  1022. package/dist/types/components/icon/icons/file-check2-icon.d.ts +2 -2
  1023. package/dist/types/components/icon/icons/file-clock-icon.d.ts +2 -2
  1024. package/dist/types/components/icon/icons/file-code-icon.d.ts +2 -2
  1025. package/dist/types/components/icon/icons/file-code2-icon.d.ts +2 -2
  1026. package/dist/types/components/icon/icons/file-cog-icon.d.ts +2 -2
  1027. package/dist/types/components/icon/icons/file-diff-icon.d.ts +2 -2
  1028. package/dist/types/components/icon/icons/file-down-icon.d.ts +2 -2
  1029. package/dist/types/components/icon/icons/file-heart-icon.d.ts +2 -2
  1030. package/dist/types/components/icon/icons/file-icon.d.ts +2 -2
  1031. package/dist/types/components/icon/icons/file-image-icon.d.ts +2 -2
  1032. package/dist/types/components/icon/icons/file-json-icon.d.ts +2 -2
  1033. package/dist/types/components/icon/icons/file-key-icon.d.ts +2 -2
  1034. package/dist/types/components/icon/icons/file-lock-icon.d.ts +2 -2
  1035. package/dist/types/components/icon/icons/file-lock2-icon.d.ts +2 -2
  1036. package/dist/types/components/icon/icons/file-minus2-icon.d.ts +2 -2
  1037. package/dist/types/components/icon/icons/file-music-icon.d.ts +2 -2
  1038. package/dist/types/components/icon/icons/file-output-icon.d.ts +2 -2
  1039. package/dist/types/components/icon/icons/file-plus-icon.d.ts +2 -2
  1040. package/dist/types/components/icon/icons/file-plus2-icon.d.ts +2 -2
  1041. package/dist/types/components/icon/icons/file-search-icon.d.ts +2 -2
  1042. package/dist/types/components/icon/icons/file-search2-icon.d.ts +2 -2
  1043. package/dist/types/components/icon/icons/file-spreadsheet-icon.d.ts +2 -2
  1044. package/dist/types/components/icon/icons/file-symlink-icon.d.ts +2 -2
  1045. package/dist/types/components/icon/icons/file-terminal-icon.d.ts +2 -2
  1046. package/dist/types/components/icon/icons/file-text-icon.d.ts +2 -2
  1047. package/dist/types/components/icon/icons/file-type2-icon.d.ts +2 -2
  1048. package/dist/types/components/icon/icons/file-user-icon.d.ts +2 -2
  1049. package/dist/types/components/icon/icons/file-video-icon.d.ts +2 -2
  1050. package/dist/types/components/icon/icons/file-volume-icon.d.ts +2 -2
  1051. package/dist/types/components/icon/icons/file-volume2-icon.d.ts +2 -2
  1052. package/dist/types/components/icon/icons/file-warning-icon.d.ts +2 -2
  1053. package/dist/types/components/icon/icons/file-x-icon.d.ts +2 -2
  1054. package/dist/types/components/icon/icons/file-x2-icon.d.ts +2 -2
  1055. package/dist/types/components/icon/icons/files-icon.d.ts +2 -2
  1056. package/dist/types/components/icon/icons/film-icon.d.ts +2 -2
  1057. package/dist/types/components/icon/icons/fingerprint-icon.d.ts +2 -2
  1058. package/dist/types/components/icon/icons/fire-extinguisher-icon.d.ts +2 -2
  1059. package/dist/types/components/icon/icons/fish-icon.d.ts +2 -2
  1060. package/dist/types/components/icon/icons/fish-off-icon.d.ts +2 -2
  1061. package/dist/types/components/icon/icons/fish-symbol-icon.d.ts +2 -2
  1062. package/dist/types/components/icon/icons/flag-icon.d.ts +2 -2
  1063. package/dist/types/components/icon/icons/flag-off-icon.d.ts +2 -2
  1064. package/dist/types/components/icon/icons/flag-triangle-left-icon.d.ts +2 -2
  1065. package/dist/types/components/icon/icons/flashlight-off-icon.d.ts +2 -2
  1066. package/dist/types/components/icon/icons/flask-conical-icon.d.ts +2 -2
  1067. package/dist/types/components/icon/icons/flip-horizontal-icon.d.ts +2 -2
  1068. package/dist/types/components/icon/icons/flip-horizontal2-icon.d.ts +2 -2
  1069. package/dist/types/components/icon/icons/flower-icon.d.ts +2 -2
  1070. package/dist/types/components/icon/icons/focus-icon.d.ts +2 -2
  1071. package/dist/types/components/icon/icons/fold-horizontal-icon.d.ts +2 -2
  1072. package/dist/types/components/icon/icons/fold-vertical-icon.d.ts +2 -2
  1073. package/dist/types/components/icon/icons/folder-archive-icon.d.ts +2 -2
  1074. package/dist/types/components/icon/icons/folder-check-icon.d.ts +2 -2
  1075. package/dist/types/components/icon/icons/folder-clock-icon.d.ts +2 -2
  1076. package/dist/types/components/icon/icons/folder-closed-icon.d.ts +2 -2
  1077. package/dist/types/components/icon/icons/folder-dot-icon.d.ts +2 -2
  1078. package/dist/types/components/icon/icons/folder-down-icon.d.ts +2 -2
  1079. package/dist/types/components/icon/icons/folder-heart-icon.d.ts +2 -2
  1080. package/dist/types/components/icon/icons/folder-icon.d.ts +2 -2
  1081. package/dist/types/components/icon/icons/folder-input-icon.d.ts +2 -2
  1082. package/dist/types/components/icon/icons/folder-kanban-icon.d.ts +2 -2
  1083. package/dist/types/components/icon/icons/folder-lock-icon.d.ts +2 -2
  1084. package/dist/types/components/icon/icons/folder-open-dot-icon.d.ts +2 -2
  1085. package/dist/types/components/icon/icons/folder-open-icon.d.ts +2 -2
  1086. package/dist/types/components/icon/icons/folder-output-icon.d.ts +2 -2
  1087. package/dist/types/components/icon/icons/folder-pen-icon.d.ts +2 -2
  1088. package/dist/types/components/icon/icons/folder-plus-icon.d.ts +2 -2
  1089. package/dist/types/components/icon/icons/folder-root-icon.d.ts +2 -2
  1090. package/dist/types/components/icon/icons/folder-search-icon.d.ts +2 -2
  1091. package/dist/types/components/icon/icons/folder-symlink-icon.d.ts +2 -2
  1092. package/dist/types/components/icon/icons/folder-tree-icon.d.ts +2 -2
  1093. package/dist/types/components/icon/icons/folder-up-icon.d.ts +2 -2
  1094. package/dist/types/components/icon/icons/folder-x-icon.d.ts +2 -2
  1095. package/dist/types/components/icon/icons/footprints-icon.d.ts +2 -2
  1096. package/dist/types/components/icon/icons/forward-icon.d.ts +2 -2
  1097. package/dist/types/components/icon/icons/frame-icon.d.ts +2 -2
  1098. package/dist/types/components/icon/icons/frown-icon.d.ts +2 -2
  1099. package/dist/types/components/icon/icons/fuel-icon.d.ts +2 -2
  1100. package/dist/types/components/icon/icons/fullscreen-icon.d.ts +2 -2
  1101. package/dist/types/components/icon/icons/funnel-plus-icon.d.ts +2 -2
  1102. package/dist/types/components/icon/icons/funnel-x-icon.d.ts +2 -2
  1103. package/dist/types/components/icon/icons/gallery-horizontal-end-icon.d.ts +2 -2
  1104. package/dist/types/components/icon/icons/gallery-horizontal-icon.d.ts +2 -2
  1105. package/dist/types/components/icon/icons/gallery-thumbnails-icon.d.ts +2 -2
  1106. package/dist/types/components/icon/icons/gallery-vertical-end-icon.d.ts +2 -2
  1107. package/dist/types/components/icon/icons/gallery-vertical-icon.d.ts +2 -2
  1108. package/dist/types/components/icon/icons/gamepad-icon.d.ts +2 -2
  1109. package/dist/types/components/icon/icons/gamepad2-icon.d.ts +2 -2
  1110. package/dist/types/components/icon/icons/gem-icon.d.ts +2 -2
  1111. package/dist/types/components/icon/icons/georgian-lari-icon.d.ts +2 -2
  1112. package/dist/types/components/icon/icons/git-branch-icon.d.ts +2 -2
  1113. package/dist/types/components/icon/icons/git-branch-plus-icon.d.ts +2 -2
  1114. package/dist/types/components/icon/icons/git-commit-horizontal-icon.d.ts +2 -2
  1115. package/dist/types/components/icon/icons/git-compare-arrows-icon.d.ts +2 -2
  1116. package/dist/types/components/icon/icons/git-compare-icon.d.ts +2 -2
  1117. package/dist/types/components/icon/icons/git-merge-icon.d.ts +2 -2
  1118. package/dist/types/components/icon/icons/git-pull-request-arrow-icon.d.ts +2 -2
  1119. package/dist/types/components/icon/icons/git-pull-request-closed-icon.d.ts +2 -2
  1120. package/dist/types/components/icon/icons/git-pull-request-create-icon.d.ts +2 -2
  1121. package/dist/types/components/icon/icons/git-pull-request-icon.d.ts +2 -2
  1122. package/dist/types/components/icon/icons/github-icon.d.ts +2 -2
  1123. package/dist/types/components/icon/icons/globe-icon.d.ts +2 -2
  1124. package/dist/types/components/icon/icons/globe-lock-icon.d.ts +2 -2
  1125. package/dist/types/components/icon/icons/goal-icon.d.ts +2 -2
  1126. package/dist/types/components/icon/icons/gpu-icon.d.ts +2 -2
  1127. package/dist/types/components/icon/icons/grab-icon.d.ts +2 -2
  1128. package/dist/types/components/icon/icons/graduation-cap-icon.d.ts +2 -2
  1129. package/dist/types/components/icon/icons/grape-icon.d.ts +2 -2
  1130. package/dist/types/components/icon/icons/grid2x2-check-icon.d.ts +2 -2
  1131. package/dist/types/components/icon/icons/grid2x2-plus-icon.d.ts +2 -2
  1132. package/dist/types/components/icon/icons/grid2x2-x-icon.d.ts +2 -2
  1133. package/dist/types/components/icon/icons/grid3x2-icon.d.ts +2 -2
  1134. package/dist/types/components/icon/icons/grid3x3-icon.d.ts +2 -2
  1135. package/dist/types/components/icon/icons/grip-horizontal-icon.d.ts +2 -2
  1136. package/dist/types/components/icon/icons/grip-icon.d.ts +2 -2
  1137. package/dist/types/components/icon/icons/group-icon.d.ts +2 -2
  1138. package/dist/types/components/icon/icons/guitar-icon.d.ts +2 -2
  1139. package/dist/types/components/icon/icons/ham-icon.d.ts +2 -2
  1140. package/dist/types/components/icon/icons/hamburger-icon.d.ts +2 -2
  1141. package/dist/types/components/icon/icons/hammer-icon.d.ts +2 -2
  1142. package/dist/types/components/icon/icons/hand-metal-icon.d.ts +2 -2
  1143. package/dist/types/components/icon/icons/hand-platter-icon.d.ts +2 -2
  1144. package/dist/types/components/icon/icons/handshake-icon.d.ts +2 -2
  1145. package/dist/types/components/icon/icons/hard-drive-download-icon.d.ts +2 -2
  1146. package/dist/types/components/icon/icons/hard-drive-icon.d.ts +2 -2
  1147. package/dist/types/components/icon/icons/hard-drive-upload-icon.d.ts +2 -2
  1148. package/dist/types/components/icon/icons/hard-hat-icon.d.ts +2 -2
  1149. package/dist/types/components/icon/icons/hash-icon.d.ts +2 -2
  1150. package/dist/types/components/icon/icons/heading-icon.d.ts +2 -2
  1151. package/dist/types/components/icon/icons/heading1-icon.d.ts +2 -2
  1152. package/dist/types/components/icon/icons/heading2-icon.d.ts +2 -2
  1153. package/dist/types/components/icon/icons/heading3-icon.d.ts +2 -2
  1154. package/dist/types/components/icon/icons/heading4-icon.d.ts +2 -2
  1155. package/dist/types/components/icon/icons/heading5-icon.d.ts +2 -2
  1156. package/dist/types/components/icon/icons/heading6-icon.d.ts +2 -2
  1157. package/dist/types/components/icon/icons/headphone-off-icon.d.ts +2 -2
  1158. package/dist/types/components/icon/icons/headphones-icon.d.ts +2 -2
  1159. package/dist/types/components/icon/icons/headset-icon.d.ts +2 -2
  1160. package/dist/types/components/icon/icons/heart-handshake-icon.d.ts +2 -2
  1161. package/dist/types/components/icon/icons/heart-off-icon.d.ts +2 -2
  1162. package/dist/types/components/icon/icons/heart-plus-icon.d.ts +2 -2
  1163. package/dist/types/components/icon/icons/heart-pulse-icon.d.ts +2 -2
  1164. package/dist/types/components/icon/icons/heater-icon.d.ts +2 -2
  1165. package/dist/types/components/icon/icons/hexagon-icon.d.ts +2 -2
  1166. package/dist/types/components/icon/icons/highlighter-icon.d.ts +2 -2
  1167. package/dist/types/components/icon/icons/history-icon.d.ts +2 -2
  1168. package/dist/types/components/icon/icons/hop-icon.d.ts +2 -2
  1169. package/dist/types/components/icon/icons/hop-off-icon.d.ts +2 -2
  1170. package/dist/types/components/icon/icons/hospital-icon.d.ts +2 -2
  1171. package/dist/types/components/icon/icons/hourglass-icon.d.ts +2 -2
  1172. package/dist/types/components/icon/icons/house-plug-icon.d.ts +2 -2
  1173. package/dist/types/components/icon/icons/house-plus-icon.d.ts +2 -2
  1174. package/dist/types/components/icon/icons/house-wifi-icon.d.ts +2 -2
  1175. package/dist/types/components/icon/icons/ice-cream-cone-icon.d.ts +2 -2
  1176. package/dist/types/components/icon/icons/id-card-icon.d.ts +2 -2
  1177. package/dist/types/components/icon/icons/id-card-lanyard-icon.d.ts +2 -2
  1178. package/dist/types/components/icon/icons/image-down-icon.d.ts +2 -2
  1179. package/dist/types/components/icon/icons/image-icon.d.ts +2 -2
  1180. package/dist/types/components/icon/icons/image-minus-icon.d.ts +2 -2
  1181. package/dist/types/components/icon/icons/image-off-icon.d.ts +2 -2
  1182. package/dist/types/components/icon/icons/image-play-icon.d.ts +2 -2
  1183. package/dist/types/components/icon/icons/image-plus-icon.d.ts +2 -2
  1184. package/dist/types/components/icon/icons/image-up-icon.d.ts +2 -2
  1185. package/dist/types/components/icon/icons/image-upscale-icon.d.ts +2 -2
  1186. package/dist/types/components/icon/icons/images-icon.d.ts +2 -2
  1187. package/dist/types/components/icon/icons/import-icon.d.ts +2 -2
  1188. package/dist/types/components/icon/icons/inbox-icon.d.ts +2 -2
  1189. package/dist/types/components/icon/icons/indent-decrease-icon.d.ts +2 -2
  1190. package/dist/types/components/icon/icons/indent-increase-icon.d.ts +2 -2
  1191. package/dist/types/components/icon/icons/indian-rupee-icon.d.ts +2 -2
  1192. package/dist/types/components/icon/icons/infinity-icon.d.ts +2 -2
  1193. package/dist/types/components/icon/icons/info-icon.d.ts +2 -2
  1194. package/dist/types/components/icon/icons/inspection-panel-icon.d.ts +2 -2
  1195. package/dist/types/components/icon/icons/instagram-icon.d.ts +2 -2
  1196. package/dist/types/components/icon/icons/italic-icon.d.ts +2 -2
  1197. package/dist/types/components/icon/icons/iteration-ccw-icon.d.ts +2 -2
  1198. package/dist/types/components/icon/icons/japanese-yen-icon.d.ts +2 -2
  1199. package/dist/types/components/icon/icons/joystick-icon.d.ts +2 -2
  1200. package/dist/types/components/icon/icons/kanban-icon.d.ts +2 -2
  1201. package/dist/types/components/icon/icons/key-icon.d.ts +2 -2
  1202. package/dist/types/components/icon/icons/key-round-icon.d.ts +2 -2
  1203. package/dist/types/components/icon/icons/key-square-icon.d.ts +2 -2
  1204. package/dist/types/components/icon/icons/keyboard-off-icon.d.ts +2 -2
  1205. package/dist/types/components/icon/icons/lamp-ceiling-icon.d.ts +2 -2
  1206. package/dist/types/components/icon/icons/lamp-desk-icon.d.ts +2 -2
  1207. package/dist/types/components/icon/icons/lamp-floor-icon.d.ts +2 -2
  1208. package/dist/types/components/icon/icons/lamp-icon.d.ts +2 -2
  1209. package/dist/types/components/icon/icons/lamp-wall-down-icon.d.ts +2 -2
  1210. package/dist/types/components/icon/icons/lamp-wall-up-icon.d.ts +2 -2
  1211. package/dist/types/components/icon/icons/landmark-icon.d.ts +2 -2
  1212. package/dist/types/components/icon/icons/languages-icon.d.ts +2 -2
  1213. package/dist/types/components/icon/icons/laptop-icon.d.ts +2 -2
  1214. package/dist/types/components/icon/icons/laptop-minimal-check-icon.d.ts +2 -2
  1215. package/dist/types/components/icon/icons/lasso-icon.d.ts +2 -2
  1216. package/dist/types/components/icon/icons/layers2-icon.d.ts +2 -2
  1217. package/dist/types/components/icon/icons/layout-dashboard-icon.d.ts +2 -2
  1218. package/dist/types/components/icon/icons/layout-grid-icon.d.ts +2 -2
  1219. package/dist/types/components/icon/icons/layout-panel-left-icon.d.ts +2 -2
  1220. package/dist/types/components/icon/icons/layout-panel-top-icon.d.ts +2 -2
  1221. package/dist/types/components/icon/icons/layout-template-icon.d.ts +2 -2
  1222. package/dist/types/components/icon/icons/leaf-icon.d.ts +2 -2
  1223. package/dist/types/components/icon/icons/lectern-icon.d.ts +2 -2
  1224. package/dist/types/components/icon/icons/library-big-icon.d.ts +2 -2
  1225. package/dist/types/components/icon/icons/library-icon.d.ts +2 -2
  1226. package/dist/types/components/icon/icons/ligature-icon.d.ts +2 -2
  1227. package/dist/types/components/icon/icons/lightbulb-icon.d.ts +2 -2
  1228. package/dist/types/components/icon/icons/link-icon.d.ts +2 -2
  1229. package/dist/types/components/icon/icons/link2-icon.d.ts +2 -2
  1230. package/dist/types/components/icon/icons/link2-off-icon.d.ts +2 -2
  1231. package/dist/types/components/icon/icons/list-check-icon.d.ts +2 -2
  1232. package/dist/types/components/icon/icons/list-checks-icon.d.ts +2 -2
  1233. package/dist/types/components/icon/icons/list-collapse-icon.d.ts +2 -2
  1234. package/dist/types/components/icon/icons/list-end-icon.d.ts +2 -2
  1235. package/dist/types/components/icon/icons/list-icon.d.ts +2 -2
  1236. package/dist/types/components/icon/icons/list-music-icon.d.ts +2 -2
  1237. package/dist/types/components/icon/icons/list-ordered-icon.d.ts +2 -2
  1238. package/dist/types/components/icon/icons/list-plus-icon.d.ts +2 -2
  1239. package/dist/types/components/icon/icons/list-start-icon.d.ts +2 -2
  1240. package/dist/types/components/icon/icons/list-todo-icon.d.ts +2 -2
  1241. package/dist/types/components/icon/icons/list-video-icon.d.ts +2 -2
  1242. package/dist/types/components/icon/icons/list-x-icon.d.ts +2 -2
  1243. package/dist/types/components/icon/icons/loader-icon.d.ts +2 -2
  1244. package/dist/types/components/icon/icons/loader-pinwheel-icon.d.ts +2 -2
  1245. package/dist/types/components/icon/icons/locate-fixed-icon.d.ts +2 -2
  1246. package/dist/types/components/icon/icons/locate-icon.d.ts +2 -2
  1247. package/dist/types/components/icon/icons/locate-off-icon.d.ts +2 -2
  1248. package/dist/types/components/icon/icons/location-edit-icon.d.ts +2 -2
  1249. package/dist/types/components/icon/icons/lock-icon.d.ts +2 -2
  1250. package/dist/types/components/icon/icons/lock-keyhole-open-icon.d.ts +2 -2
  1251. package/dist/types/components/icon/icons/lock-open-icon.d.ts +2 -2
  1252. package/dist/types/components/icon/icons/log-in-icon.d.ts +2 -2
  1253. package/dist/types/components/icon/icons/log-out-icon.d.ts +2 -2
  1254. package/dist/types/components/icon/icons/logs-icon.d.ts +2 -2
  1255. package/dist/types/components/icon/icons/lollipop-icon.d.ts +2 -2
  1256. package/dist/types/components/icon/icons/luggage-icon.d.ts +2 -2
  1257. package/dist/types/components/icon/icons/magnet-icon.d.ts +2 -2
  1258. package/dist/types/components/icon/icons/mail-check-icon.d.ts +2 -2
  1259. package/dist/types/components/icon/icons/mail-icon.d.ts +2 -2
  1260. package/dist/types/components/icon/icons/mail-minus-icon.d.ts +2 -2
  1261. package/dist/types/components/icon/icons/mail-open-icon.d.ts +2 -2
  1262. package/dist/types/components/icon/icons/mail-plus-icon.d.ts +2 -2
  1263. package/dist/types/components/icon/icons/mail-question-mark-icon.d.ts +2 -2
  1264. package/dist/types/components/icon/icons/mail-search-icon.d.ts +2 -2
  1265. package/dist/types/components/icon/icons/mail-warning-icon.d.ts +2 -2
  1266. package/dist/types/components/icon/icons/mail-x-icon.d.ts +2 -2
  1267. package/dist/types/components/icon/icons/mailbox-icon.d.ts +2 -2
  1268. package/dist/types/components/icon/icons/mails-icon.d.ts +2 -2
  1269. package/dist/types/components/icon/icons/map-icon.d.ts +2 -2
  1270. package/dist/types/components/icon/icons/map-pin-check-icon.d.ts +2 -2
  1271. package/dist/types/components/icon/icons/map-pin-icon.d.ts +2 -2
  1272. package/dist/types/components/icon/icons/map-pin-minus-icon.d.ts +2 -2
  1273. package/dist/types/components/icon/icons/map-pin-minus-inside-icon.d.ts +2 -2
  1274. package/dist/types/components/icon/icons/map-pin-off-icon.d.ts +2 -2
  1275. package/dist/types/components/icon/icons/map-pin-plus-icon.d.ts +2 -2
  1276. package/dist/types/components/icon/icons/map-pin-plus-inside-icon.d.ts +2 -2
  1277. package/dist/types/components/icon/icons/map-pin-x-icon.d.ts +2 -2
  1278. package/dist/types/components/icon/icons/map-pin-x-inside-icon.d.ts +2 -2
  1279. package/dist/types/components/icon/icons/map-pinned-icon.d.ts +2 -2
  1280. package/dist/types/components/icon/icons/map-plus-icon.d.ts +2 -2
  1281. package/dist/types/components/icon/icons/mars-icon.d.ts +2 -2
  1282. package/dist/types/components/icon/icons/mars-stroke-icon.d.ts +2 -2
  1283. package/dist/types/components/icon/icons/martini-icon.d.ts +2 -2
  1284. package/dist/types/components/icon/icons/maximize-icon.d.ts +2 -2
  1285. package/dist/types/components/icon/icons/maximize2-icon.d.ts +2 -2
  1286. package/dist/types/components/icon/icons/medal-icon.d.ts +2 -2
  1287. package/dist/types/components/icon/icons/megaphone-icon.d.ts +2 -2
  1288. package/dist/types/components/icon/icons/megaphone-off-icon.d.ts +2 -2
  1289. package/dist/types/components/icon/icons/meh-icon.d.ts +2 -2
  1290. package/dist/types/components/icon/icons/memory-stick-icon.d.ts +2 -2
  1291. package/dist/types/components/icon/icons/menu-icon.d.ts +2 -2
  1292. package/dist/types/components/icon/icons/merge-icon.d.ts +2 -2
  1293. package/dist/types/components/icon/icons/message-circle-code-icon.d.ts +2 -2
  1294. package/dist/types/components/icon/icons/message-circle-dashed-icon.d.ts +2 -2
  1295. package/dist/types/components/icon/icons/message-circle-heart-icon.d.ts +2 -2
  1296. package/dist/types/components/icon/icons/message-circle-icon.d.ts +2 -2
  1297. package/dist/types/components/icon/icons/message-circle-more-icon.d.ts +2 -2
  1298. package/dist/types/components/icon/icons/message-circle-off-icon.d.ts +2 -2
  1299. package/dist/types/components/icon/icons/message-circle-plus-icon.d.ts +2 -2
  1300. package/dist/types/components/icon/icons/message-circle-question-mark-icon.d.ts +2 -2
  1301. package/dist/types/components/icon/icons/message-circle-reply-icon.d.ts +2 -2
  1302. package/dist/types/components/icon/icons/message-circle-warning-icon.d.ts +2 -2
  1303. package/dist/types/components/icon/icons/message-circle-x-icon.d.ts +2 -2
  1304. package/dist/types/components/icon/icons/message-square-code-icon.d.ts +2 -2
  1305. package/dist/types/components/icon/icons/message-square-dashed-icon.d.ts +2 -2
  1306. package/dist/types/components/icon/icons/message-square-diff-icon.d.ts +2 -2
  1307. package/dist/types/components/icon/icons/message-square-dot-icon.d.ts +2 -2
  1308. package/dist/types/components/icon/icons/message-square-heart-icon.d.ts +2 -2
  1309. package/dist/types/components/icon/icons/message-square-icon.d.ts +2 -2
  1310. package/dist/types/components/icon/icons/message-square-lock-icon.d.ts +2 -2
  1311. package/dist/types/components/icon/icons/message-square-more-icon.d.ts +2 -2
  1312. package/dist/types/components/icon/icons/message-square-off-icon.d.ts +2 -2
  1313. package/dist/types/components/icon/icons/message-square-plus-icon.d.ts +2 -2
  1314. package/dist/types/components/icon/icons/message-square-quote-icon.d.ts +2 -2
  1315. package/dist/types/components/icon/icons/message-square-reply-icon.d.ts +2 -2
  1316. package/dist/types/components/icon/icons/message-square-share-icon.d.ts +2 -2
  1317. package/dist/types/components/icon/icons/message-square-text-icon.d.ts +2 -2
  1318. package/dist/types/components/icon/icons/message-square-warning-icon.d.ts +2 -2
  1319. package/dist/types/components/icon/icons/messages-square-icon.d.ts +2 -2
  1320. package/dist/types/components/icon/icons/mic-icon.d.ts +2 -2
  1321. package/dist/types/components/icon/icons/mic-off-icon.d.ts +2 -2
  1322. package/dist/types/components/icon/icons/mic-vocal-icon.d.ts +2 -2
  1323. package/dist/types/components/icon/icons/microchip-icon.d.ts +2 -2
  1324. package/dist/types/components/icon/icons/microscope-icon.d.ts +2 -2
  1325. package/dist/types/components/icon/icons/microwave-icon.d.ts +2 -2
  1326. package/dist/types/components/icon/icons/milestone-icon.d.ts +2 -2
  1327. package/dist/types/components/icon/icons/milk-icon.d.ts +2 -2
  1328. package/dist/types/components/icon/icons/monitor-dot-icon.d.ts +2 -2
  1329. package/dist/types/components/icon/icons/monitor-down-icon.d.ts +2 -2
  1330. package/dist/types/components/icon/icons/monitor-icon.d.ts +2 -2
  1331. package/dist/types/components/icon/icons/monitor-pause-icon.d.ts +2 -2
  1332. package/dist/types/components/icon/icons/monitor-play-icon.d.ts +2 -2
  1333. package/dist/types/components/icon/icons/monitor-smartphone-icon.d.ts +2 -2
  1334. package/dist/types/components/icon/icons/monitor-stop-icon.d.ts +2 -2
  1335. package/dist/types/components/icon/icons/monitor-up-icon.d.ts +2 -2
  1336. package/dist/types/components/icon/icons/monitor-x-icon.d.ts +2 -2
  1337. package/dist/types/components/icon/icons/moon-icon.d.ts +2 -2
  1338. package/dist/types/components/icon/icons/moon-star-icon.d.ts +2 -2
  1339. package/dist/types/components/icon/icons/mountain-icon.d.ts +2 -2
  1340. package/dist/types/components/icon/icons/mouse-icon.d.ts +2 -2
  1341. package/dist/types/components/icon/icons/mouse-off-icon.d.ts +2 -2
  1342. package/dist/types/components/icon/icons/move-down-right-icon.d.ts +2 -2
  1343. package/dist/types/components/icon/icons/move-horizontal-icon.d.ts +2 -2
  1344. package/dist/types/components/icon/icons/move-up-icon.d.ts +2 -2
  1345. package/dist/types/components/icon/icons/move-up-left-icon.d.ts +2 -2
  1346. package/dist/types/components/icon/icons/move-up-right-icon.d.ts +2 -2
  1347. package/dist/types/components/icon/icons/move-vertical-icon.d.ts +2 -2
  1348. package/dist/types/components/icon/icons/music2-icon.d.ts +2 -2
  1349. package/dist/types/components/icon/icons/music4-icon.d.ts +2 -2
  1350. package/dist/types/components/icon/icons/navigation-icon.d.ts +2 -2
  1351. package/dist/types/components/icon/icons/navigation2-icon.d.ts +2 -2
  1352. package/dist/types/components/icon/icons/navigation2-off-icon.d.ts +2 -2
  1353. package/dist/types/components/icon/icons/network-icon.d.ts +2 -2
  1354. package/dist/types/components/icon/icons/nfc-icon.d.ts +2 -2
  1355. package/dist/types/components/icon/icons/non-binary-icon.d.ts +2 -2
  1356. package/dist/types/components/icon/icons/notebook-icon.d.ts +2 -2
  1357. package/dist/types/components/icon/icons/notebook-pen-icon.d.ts +2 -2
  1358. package/dist/types/components/icon/icons/notebook-tabs-icon.d.ts +2 -2
  1359. package/dist/types/components/icon/icons/notebook-text-icon.d.ts +2 -2
  1360. package/dist/types/components/icon/icons/notepad-text-dashed-icon.d.ts +2 -2
  1361. package/dist/types/components/icon/icons/notepad-text-icon.d.ts +2 -2
  1362. package/dist/types/components/icon/icons/nut-icon.d.ts +2 -2
  1363. package/dist/types/components/icon/icons/octagon-alert-icon.d.ts +2 -2
  1364. package/dist/types/components/icon/icons/octagon-icon.d.ts +2 -2
  1365. package/dist/types/components/icon/icons/octagon-minus-icon.d.ts +2 -2
  1366. package/dist/types/components/icon/icons/octagon-pause-icon.d.ts +2 -2
  1367. package/dist/types/components/icon/icons/octagon-x-icon.d.ts +2 -2
  1368. package/dist/types/components/icon/icons/omega-icon.d.ts +2 -2
  1369. package/dist/types/components/icon/icons/option-icon.d.ts +2 -2
  1370. package/dist/types/components/icon/icons/orbit-icon.d.ts +2 -2
  1371. package/dist/types/components/icon/icons/origami-icon.d.ts +2 -2
  1372. package/dist/types/components/icon/icons/package-icon.d.ts +2 -2
  1373. package/dist/types/components/icon/icons/package-open-icon.d.ts +2 -2
  1374. package/dist/types/components/icon/icons/package-plus-icon.d.ts +2 -2
  1375. package/dist/types/components/icon/icons/package-search-icon.d.ts +2 -2
  1376. package/dist/types/components/icon/icons/package-x-icon.d.ts +2 -2
  1377. package/dist/types/components/icon/icons/package2-icon.d.ts +2 -2
  1378. package/dist/types/components/icon/icons/paint-bucket-icon.d.ts +2 -2
  1379. package/dist/types/components/icon/icons/palette-icon.d.ts +2 -2
  1380. package/dist/types/components/icon/icons/panda-icon.d.ts +2 -2
  1381. package/dist/types/components/icon/icons/panel-bottom-close-icon.d.ts +2 -2
  1382. package/dist/types/components/icon/icons/panel-bottom-dashed-icon.d.ts +2 -2
  1383. package/dist/types/components/icon/icons/panel-bottom-icon.d.ts +2 -2
  1384. package/dist/types/components/icon/icons/panel-bottom-open-icon.d.ts +2 -2
  1385. package/dist/types/components/icon/icons/panel-left-close-icon.d.ts +2 -2
  1386. package/dist/types/components/icon/icons/panel-left-dashed-icon.d.ts +2 -2
  1387. package/dist/types/components/icon/icons/panel-left-icon.d.ts +2 -2
  1388. package/dist/types/components/icon/icons/panel-left-open-icon.d.ts +2 -2
  1389. package/dist/types/components/icon/icons/panel-right-close-icon.d.ts +2 -2
  1390. package/dist/types/components/icon/icons/panel-right-dashed-icon.d.ts +2 -2
  1391. package/dist/types/components/icon/icons/panel-right-icon.d.ts +2 -2
  1392. package/dist/types/components/icon/icons/panel-right-open-icon.d.ts +2 -2
  1393. package/dist/types/components/icon/icons/panel-top-close-icon.d.ts +2 -2
  1394. package/dist/types/components/icon/icons/panel-top-icon.d.ts +2 -2
  1395. package/dist/types/components/icon/icons/panel-top-open-icon.d.ts +2 -2
  1396. package/dist/types/components/icon/icons/panels-left-bottom-icon.d.ts +2 -2
  1397. package/dist/types/components/icon/icons/panels-right-bottom-icon.d.ts +2 -2
  1398. package/dist/types/components/icon/icons/panels-top-left-icon.d.ts +2 -2
  1399. package/dist/types/components/icon/icons/paperclip-icon.d.ts +2 -2
  1400. package/dist/types/components/icon/icons/parentheses-icon.d.ts +2 -2
  1401. package/dist/types/components/icon/icons/parking-meter-icon.d.ts +2 -2
  1402. package/dist/types/components/icon/icons/party-popper-icon.d.ts +2 -2
  1403. package/dist/types/components/icon/icons/pause-icon.d.ts +2 -2
  1404. package/dist/types/components/icon/icons/paw-print-icon.d.ts +2 -2
  1405. package/dist/types/components/icon/icons/pc-case-icon.d.ts +2 -2
  1406. package/dist/types/components/icon/icons/pen-icon.d.ts +2 -2
  1407. package/dist/types/components/icon/icons/pen-line-icon.d.ts +2 -2
  1408. package/dist/types/components/icon/icons/pen-off-icon.d.ts +2 -2
  1409. package/dist/types/components/icon/icons/pen-tool-icon.d.ts +2 -2
  1410. package/dist/types/components/icon/icons/pencil-icon.d.ts +2 -2
  1411. package/dist/types/components/icon/icons/pencil-line-icon.d.ts +2 -2
  1412. package/dist/types/components/icon/icons/pencil-off-icon.d.ts +2 -2
  1413. package/dist/types/components/icon/icons/philippine-peso-icon.d.ts +2 -2
  1414. package/dist/types/components/icon/icons/phone-forwarded-icon.d.ts +2 -2
  1415. package/dist/types/components/icon/icons/phone-off-icon.d.ts +2 -2
  1416. package/dist/types/components/icon/icons/phone-outgoing-icon.d.ts +2 -2
  1417. package/dist/types/components/icon/icons/pi-icon.d.ts +2 -2
  1418. package/dist/types/components/icon/icons/piano-icon.d.ts +2 -2
  1419. package/dist/types/components/icon/icons/picture-in-picture-icon.d.ts +2 -2
  1420. package/dist/types/components/icon/icons/picture-in-picture2-icon.d.ts +2 -2
  1421. package/dist/types/components/icon/icons/piggy-bank-icon.d.ts +2 -2
  1422. package/dist/types/components/icon/icons/pilcrow-icon.d.ts +2 -2
  1423. package/dist/types/components/icon/icons/pilcrow-left-icon.d.ts +2 -2
  1424. package/dist/types/components/icon/icons/pill-bottle-icon.d.ts +2 -2
  1425. package/dist/types/components/icon/icons/pin-icon.d.ts +2 -2
  1426. package/dist/types/components/icon/icons/pin-off-icon.d.ts +2 -2
  1427. package/dist/types/components/icon/icons/pipette-icon.d.ts +2 -2
  1428. package/dist/types/components/icon/icons/pizza-icon.d.ts +2 -2
  1429. package/dist/types/components/icon/icons/plane-icon.d.ts +2 -2
  1430. package/dist/types/components/icon/icons/plug-icon.d.ts +2 -2
  1431. package/dist/types/components/icon/icons/plug2-icon.d.ts +2 -2
  1432. package/dist/types/components/icon/icons/plus-icon.d.ts +2 -2
  1433. package/dist/types/components/icon/icons/pocket-icon.d.ts +2 -2
  1434. package/dist/types/components/icon/icons/podcast-icon.d.ts +2 -2
  1435. package/dist/types/components/icon/icons/pointer-icon.d.ts +2 -2
  1436. package/dist/types/components/icon/icons/pointer-off-icon.d.ts +2 -2
  1437. package/dist/types/components/icon/icons/popcorn-icon.d.ts +2 -2
  1438. package/dist/types/components/icon/icons/power-icon.d.ts +2 -2
  1439. package/dist/types/components/icon/icons/printer-icon.d.ts +2 -2
  1440. package/dist/types/components/icon/icons/projector-icon.d.ts +2 -2
  1441. package/dist/types/components/icon/icons/proportions-icon.d.ts +2 -2
  1442. package/dist/types/components/icon/icons/puzzle-icon.d.ts +2 -2
  1443. package/dist/types/components/icon/icons/qr-code-icon.d.ts +2 -2
  1444. package/dist/types/components/icon/icons/quote-icon.d.ts +2 -2
  1445. package/dist/types/components/icon/icons/radical-icon.d.ts +2 -2
  1446. package/dist/types/components/icon/icons/radio-icon.d.ts +2 -2
  1447. package/dist/types/components/icon/icons/radio-receiver-icon.d.ts +2 -2
  1448. package/dist/types/components/icon/icons/radio-tower-icon.d.ts +2 -2
  1449. package/dist/types/components/icon/icons/radius-icon.d.ts +2 -2
  1450. package/dist/types/components/icon/icons/rainbow-icon.d.ts +2 -2
  1451. package/dist/types/components/icon/icons/ratio-icon.d.ts +2 -2
  1452. package/dist/types/components/icon/icons/receipt-cent-icon.d.ts +2 -2
  1453. package/dist/types/components/icon/icons/receipt-japanese-yen-icon.d.ts +2 -2
  1454. package/dist/types/components/icon/icons/receipt-pound-sterling-icon.d.ts +2 -2
  1455. package/dist/types/components/icon/icons/receipt-russian-ruble-icon.d.ts +2 -2
  1456. package/dist/types/components/icon/icons/receipt-swiss-franc-icon.d.ts +2 -2
  1457. package/dist/types/components/icon/icons/receipt-text-icon.d.ts +2 -2
  1458. package/dist/types/components/icon/icons/rectangle-circle-icon.d.ts +2 -2
  1459. package/dist/types/components/icon/icons/rectangle-vertical-icon.d.ts +2 -2
  1460. package/dist/types/components/icon/icons/recycle-icon.d.ts +2 -2
  1461. package/dist/types/components/icon/icons/redo-dot-icon.d.ts +2 -2
  1462. package/dist/types/components/icon/icons/redo2-icon.d.ts +2 -2
  1463. package/dist/types/components/icon/icons/refresh-cw-icon.d.ts +2 -2
  1464. package/dist/types/components/icon/icons/refresh-cw-off-icon.d.ts +2 -2
  1465. package/dist/types/components/icon/icons/repeat-icon.d.ts +2 -2
  1466. package/dist/types/components/icon/icons/replace-all-icon.d.ts +2 -2
  1467. package/dist/types/components/icon/icons/replace-icon.d.ts +2 -2
  1468. package/dist/types/components/icon/icons/reply-all-icon.d.ts +2 -2
  1469. package/dist/types/components/icon/icons/reply-icon.d.ts +2 -2
  1470. package/dist/types/components/icon/icons/rewind-icon.d.ts +2 -2
  1471. package/dist/types/components/icon/icons/ribbon-icon.d.ts +2 -2
  1472. package/dist/types/components/icon/icons/rocket-icon.d.ts +2 -2
  1473. package/dist/types/components/icon/icons/rocking-chair-icon.d.ts +2 -2
  1474. package/dist/types/components/icon/icons/roller-coaster-icon.d.ts +2 -2
  1475. package/dist/types/components/icon/icons/rotate-ccw-icon.d.ts +2 -2
  1476. package/dist/types/components/icon/icons/rotate-ccw-key-icon.d.ts +2 -2
  1477. package/dist/types/components/icon/icons/rotate-ccw-square-icon.d.ts +2 -2
  1478. package/dist/types/components/icon/icons/rotate-cw-icon.d.ts +2 -2
  1479. package/dist/types/components/icon/icons/rotate-cw-square-icon.d.ts +2 -2
  1480. package/dist/types/components/icon/icons/rotate3d-icon.d.ts +2 -2
  1481. package/dist/types/components/icon/icons/route-off-icon.d.ts +2 -2
  1482. package/dist/types/components/icon/icons/router-icon.d.ts +2 -2
  1483. package/dist/types/components/icon/icons/rows2-icon.d.ts +2 -2
  1484. package/dist/types/components/icon/icons/rows3-icon.d.ts +2 -2
  1485. package/dist/types/components/icon/icons/rows4-icon.d.ts +2 -2
  1486. package/dist/types/components/icon/icons/rss-icon.d.ts +2 -2
  1487. package/dist/types/components/icon/icons/ruler-dimension-line-icon.d.ts +2 -2
  1488. package/dist/types/components/icon/icons/sailboat-icon.d.ts +2 -2
  1489. package/dist/types/components/icon/icons/salad-icon.d.ts +2 -2
  1490. package/dist/types/components/icon/icons/sandwich-icon.d.ts +2 -2
  1491. package/dist/types/components/icon/icons/satellite-dish-icon.d.ts +2 -2
  1492. package/dist/types/components/icon/icons/satellite-icon.d.ts +2 -2
  1493. package/dist/types/components/icon/icons/saudi-riyal-icon.d.ts +2 -2
  1494. package/dist/types/components/icon/icons/save-all-icon.d.ts +2 -2
  1495. package/dist/types/components/icon/icons/save-icon.d.ts +2 -2
  1496. package/dist/types/components/icon/icons/save-off-icon.d.ts +2 -2
  1497. package/dist/types/components/icon/icons/scale-icon.d.ts +2 -2
  1498. package/dist/types/components/icon/icons/scale3d-icon.d.ts +2 -2
  1499. package/dist/types/components/icon/icons/scaling-icon.d.ts +2 -2
  1500. package/dist/types/components/icon/icons/scan-barcode-icon.d.ts +2 -2
  1501. package/dist/types/components/icon/icons/scan-face-icon.d.ts +2 -2
  1502. package/dist/types/components/icon/icons/scan-heart-icon.d.ts +2 -2
  1503. package/dist/types/components/icon/icons/scan-line-icon.d.ts +2 -2
  1504. package/dist/types/components/icon/icons/scan-qr-code-icon.d.ts +2 -2
  1505. package/dist/types/components/icon/icons/scan-search-icon.d.ts +2 -2
  1506. package/dist/types/components/icon/icons/scissors-line-dashed-icon.d.ts +2 -2
  1507. package/dist/types/components/icon/icons/screen-share-icon.d.ts +2 -2
  1508. package/dist/types/components/icon/icons/screen-share-off-icon.d.ts +2 -2
  1509. package/dist/types/components/icon/icons/scroll-icon.d.ts +2 -2
  1510. package/dist/types/components/icon/icons/scroll-text-icon.d.ts +2 -2
  1511. package/dist/types/components/icon/icons/search-check-icon.d.ts +2 -2
  1512. package/dist/types/components/icon/icons/search-code-icon.d.ts +2 -2
  1513. package/dist/types/components/icon/icons/search-icon.d.ts +2 -2
  1514. package/dist/types/components/icon/icons/section-icon.d.ts +2 -2
  1515. package/dist/types/components/icon/icons/send-horizontal-icon.d.ts +2 -2
  1516. package/dist/types/components/icon/icons/send-icon.d.ts +2 -2
  1517. package/dist/types/components/icon/icons/send-to-back-icon.d.ts +2 -2
  1518. package/dist/types/components/icon/icons/separator-horizontal-icon.d.ts +2 -2
  1519. package/dist/types/components/icon/icons/separator-vertical-icon.d.ts +2 -2
  1520. package/dist/types/components/icon/icons/server-icon.d.ts +2 -2
  1521. package/dist/types/components/icon/icons/server-off-icon.d.ts +2 -2
  1522. package/dist/types/components/icon/icons/settings-icon.d.ts +2 -2
  1523. package/dist/types/components/icon/icons/settings2-icon.d.ts +2 -2
  1524. package/dist/types/components/icon/icons/share2-icon.d.ts +2 -2
  1525. package/dist/types/components/icon/icons/shield-alert-icon.d.ts +2 -2
  1526. package/dist/types/components/icon/icons/shield-ban-icon.d.ts +2 -2
  1527. package/dist/types/components/icon/icons/shield-ellipsis-icon.d.ts +2 -2
  1528. package/dist/types/components/icon/icons/shield-half-icon.d.ts +2 -2
  1529. package/dist/types/components/icon/icons/shield-icon.d.ts +2 -2
  1530. package/dist/types/components/icon/icons/shield-minus-icon.d.ts +2 -2
  1531. package/dist/types/components/icon/icons/shield-off-icon.d.ts +2 -2
  1532. package/dist/types/components/icon/icons/shield-plus-icon.d.ts +2 -2
  1533. package/dist/types/components/icon/icons/shield-question-mark-icon.d.ts +2 -2
  1534. package/dist/types/components/icon/icons/shield-user-icon.d.ts +2 -2
  1535. package/dist/types/components/icon/icons/shield-x-icon.d.ts +2 -2
  1536. package/dist/types/components/icon/icons/ship-icon.d.ts +2 -2
  1537. package/dist/types/components/icon/icons/ship-wheel-icon.d.ts +2 -2
  1538. package/dist/types/components/icon/icons/shirt-icon.d.ts +2 -2
  1539. package/dist/types/components/icon/icons/shopping-bag-icon.d.ts +2 -2
  1540. package/dist/types/components/icon/icons/shopping-basket-icon.d.ts +2 -2
  1541. package/dist/types/components/icon/icons/shopping-cart-icon.d.ts +2 -2
  1542. package/dist/types/components/icon/icons/shovel-icon.d.ts +2 -2
  1543. package/dist/types/components/icon/icons/shower-head-icon.d.ts +2 -2
  1544. package/dist/types/components/icon/icons/signal-icon.d.ts +2 -2
  1545. package/dist/types/components/icon/icons/signal-low-icon.d.ts +2 -2
  1546. package/dist/types/components/icon/icons/signal-medium-icon.d.ts +2 -2
  1547. package/dist/types/components/icon/icons/signal-zero-icon.d.ts +2 -2
  1548. package/dist/types/components/icon/icons/signature-icon.d.ts +2 -2
  1549. package/dist/types/components/icon/icons/signpost-big-icon.d.ts +2 -2
  1550. package/dist/types/components/icon/icons/siren-icon.d.ts +2 -2
  1551. package/dist/types/components/icon/icons/skip-back-icon.d.ts +2 -2
  1552. package/dist/types/components/icon/icons/sliders-horizontal-icon.d.ts +2 -2
  1553. package/dist/types/components/icon/icons/sliders-vertical-icon.d.ts +2 -2
  1554. package/dist/types/components/icon/icons/smartphone-charging-icon.d.ts +2 -2
  1555. package/dist/types/components/icon/icons/smile-icon.d.ts +2 -2
  1556. package/dist/types/components/icon/icons/smile-plus-icon.d.ts +2 -2
  1557. package/dist/types/components/icon/icons/soap-dispenser-droplet-icon.d.ts +2 -2
  1558. package/dist/types/components/icon/icons/sofa-icon.d.ts +2 -2
  1559. package/dist/types/components/icon/icons/soup-icon.d.ts +2 -2
  1560. package/dist/types/components/icon/icons/space-icon.d.ts +2 -2
  1561. package/dist/types/components/icon/icons/sparkles-icon.d.ts +2 -2
  1562. package/dist/types/components/icon/icons/speaker-icon.d.ts +2 -2
  1563. package/dist/types/components/icon/icons/speech-icon.d.ts +2 -2
  1564. package/dist/types/components/icon/icons/spell-check-icon.d.ts +2 -2
  1565. package/dist/types/components/icon/icons/spell-check2-icon.d.ts +2 -2
  1566. package/dist/types/components/icon/icons/spline-icon.d.ts +2 -2
  1567. package/dist/types/components/icon/icons/spline-pointer-icon.d.ts +2 -2
  1568. package/dist/types/components/icon/icons/spool-icon.d.ts +2 -2
  1569. package/dist/types/components/icon/icons/spray-can-icon.d.ts +2 -2
  1570. package/dist/types/components/icon/icons/sprout-icon.d.ts +2 -2
  1571. package/dist/types/components/icon/icons/square-arrow-down-icon.d.ts +2 -2
  1572. package/dist/types/components/icon/icons/square-arrow-down-left-icon.d.ts +2 -2
  1573. package/dist/types/components/icon/icons/square-arrow-left-icon.d.ts +2 -2
  1574. package/dist/types/components/icon/icons/square-arrow-out-down-left-icon.d.ts +2 -2
  1575. package/dist/types/components/icon/icons/square-arrow-out-down-right-icon.d.ts +2 -2
  1576. package/dist/types/components/icon/icons/square-arrow-out-up-left-icon.d.ts +2 -2
  1577. package/dist/types/components/icon/icons/square-arrow-out-up-right-icon.d.ts +2 -2
  1578. package/dist/types/components/icon/icons/square-arrow-right-icon.d.ts +2 -2
  1579. package/dist/types/components/icon/icons/square-asterisk-icon.d.ts +2 -2
  1580. package/dist/types/components/icon/icons/square-bottom-dashed-scissors-icon.d.ts +2 -2
  1581. package/dist/types/components/icon/icons/square-chart-gantt-icon.d.ts +2 -2
  1582. package/dist/types/components/icon/icons/square-check-big-icon.d.ts +2 -2
  1583. package/dist/types/components/icon/icons/square-check-icon.d.ts +2 -2
  1584. package/dist/types/components/icon/icons/square-chevron-left-icon.d.ts +2 -2
  1585. package/dist/types/components/icon/icons/square-chevron-right-icon.d.ts +2 -2
  1586. package/dist/types/components/icon/icons/square-chevron-up-icon.d.ts +2 -2
  1587. package/dist/types/components/icon/icons/square-code-icon.d.ts +2 -2
  1588. package/dist/types/components/icon/icons/square-dashed-bottom-code-icon.d.ts +2 -2
  1589. package/dist/types/components/icon/icons/square-dashed-bottom-icon.d.ts +2 -2
  1590. package/dist/types/components/icon/icons/square-dashed-icon.d.ts +2 -2
  1591. package/dist/types/components/icon/icons/square-dashed-kanban-icon.d.ts +2 -2
  1592. package/dist/types/components/icon/icons/square-dashed-mouse-pointer-icon.d.ts +2 -2
  1593. package/dist/types/components/icon/icons/square-dashed-top-solid-icon.d.ts +2 -2
  1594. package/dist/types/components/icon/icons/square-divide-icon.d.ts +2 -2
  1595. package/dist/types/components/icon/icons/square-equal-icon.d.ts +2 -2
  1596. package/dist/types/components/icon/icons/square-function-icon.d.ts +2 -2
  1597. package/dist/types/components/icon/icons/square-icon.d.ts +2 -2
  1598. package/dist/types/components/icon/icons/square-menu-icon.d.ts +2 -2
  1599. package/dist/types/components/icon/icons/square-minus-icon.d.ts +2 -2
  1600. package/dist/types/components/icon/icons/square-mouse-pointer-icon.d.ts +2 -2
  1601. package/dist/types/components/icon/icons/square-parking-icon.d.ts +2 -2
  1602. package/dist/types/components/icon/icons/square-parking-off-icon.d.ts +2 -2
  1603. package/dist/types/components/icon/icons/square-pen-icon.d.ts +2 -2
  1604. package/dist/types/components/icon/icons/square-percent-icon.d.ts +2 -2
  1605. package/dist/types/components/icon/icons/square-pi-icon.d.ts +2 -2
  1606. package/dist/types/components/icon/icons/square-pilcrow-icon.d.ts +2 -2
  1607. package/dist/types/components/icon/icons/square-play-icon.d.ts +2 -2
  1608. package/dist/types/components/icon/icons/square-plus-icon.d.ts +2 -2
  1609. package/dist/types/components/icon/icons/square-power-icon.d.ts +2 -2
  1610. package/dist/types/components/icon/icons/square-round-corner-icon.d.ts +2 -2
  1611. package/dist/types/components/icon/icons/square-scissors-icon.d.ts +2 -2
  1612. package/dist/types/components/icon/icons/square-slash-icon.d.ts +2 -2
  1613. package/dist/types/components/icon/icons/square-split-horizontal-icon.d.ts +2 -2
  1614. package/dist/types/components/icon/icons/square-split-vertical-icon.d.ts +2 -2
  1615. package/dist/types/components/icon/icons/square-square-icon.d.ts +2 -2
  1616. package/dist/types/components/icon/icons/square-terminal-icon.d.ts +2 -2
  1617. package/dist/types/components/icon/icons/square-user-round-icon.d.ts +2 -2
  1618. package/dist/types/components/icon/icons/square-x-icon.d.ts +2 -2
  1619. package/dist/types/components/icon/icons/squares-exclude-icon.d.ts +2 -2
  1620. package/dist/types/components/icon/icons/squares-intersect-icon.d.ts +2 -2
  1621. package/dist/types/components/icon/icons/squares-subtract-icon.d.ts +2 -2
  1622. package/dist/types/components/icon/icons/squares-unite-icon.d.ts +2 -2
  1623. package/dist/types/components/icon/icons/squircle-dashed-icon.d.ts +2 -2
  1624. package/dist/types/components/icon/icons/squircle-icon.d.ts +2 -2
  1625. package/dist/types/components/icon/icons/squirrel-icon.d.ts +2 -2
  1626. package/dist/types/components/icon/icons/stamp-icon.d.ts +2 -2
  1627. package/dist/types/components/icon/icons/star-icon.d.ts +2 -2
  1628. package/dist/types/components/icon/icons/star-off-icon.d.ts +2 -2
  1629. package/dist/types/components/icon/icons/step-back-icon.d.ts +2 -2
  1630. package/dist/types/components/icon/icons/stethoscope-icon.d.ts +2 -2
  1631. package/dist/types/components/icon/icons/stretch-horizontal-icon.d.ts +2 -2
  1632. package/dist/types/components/icon/icons/stretch-vertical-icon.d.ts +2 -2
  1633. package/dist/types/components/icon/icons/strikethrough-icon.d.ts +2 -2
  1634. package/dist/types/components/icon/icons/sun-moon-icon.d.ts +2 -2
  1635. package/dist/types/components/icon/icons/sun-snow-icon.d.ts +2 -2
  1636. package/dist/types/components/icon/icons/swiss-franc-icon.d.ts +2 -2
  1637. package/dist/types/components/icon/icons/switch-camera-icon.d.ts +2 -2
  1638. package/dist/types/components/icon/icons/sword-icon.d.ts +2 -2
  1639. package/dist/types/components/icon/icons/swords-icon.d.ts +2 -2
  1640. package/dist/types/components/icon/icons/syringe-icon.d.ts +2 -2
  1641. package/dist/types/components/icon/icons/table-cells-merge-icon.d.ts +2 -2
  1642. package/dist/types/components/icon/icons/table-cells-split-icon.d.ts +2 -2
  1643. package/dist/types/components/icon/icons/table-columns-split-icon.d.ts +2 -2
  1644. package/dist/types/components/icon/icons/table-icon.d.ts +2 -2
  1645. package/dist/types/components/icon/icons/table-of-contents-icon.d.ts +2 -2
  1646. package/dist/types/components/icon/icons/table-rows-split-icon.d.ts +2 -2
  1647. package/dist/types/components/icon/icons/table2-icon.d.ts +2 -2
  1648. package/dist/types/components/icon/icons/tablet-icon.d.ts +2 -2
  1649. package/dist/types/components/icon/icons/tablet-smartphone-icon.d.ts +2 -2
  1650. package/dist/types/components/icon/icons/tablets-icon.d.ts +2 -2
  1651. package/dist/types/components/icon/icons/tag-icon.d.ts +2 -2
  1652. package/dist/types/components/icon/icons/tally2-icon.d.ts +2 -2
  1653. package/dist/types/components/icon/icons/tally3-icon.d.ts +2 -2
  1654. package/dist/types/components/icon/icons/tally4-icon.d.ts +2 -2
  1655. package/dist/types/components/icon/icons/tally5-icon.d.ts +2 -2
  1656. package/dist/types/components/icon/icons/tangent-icon.d.ts +2 -2
  1657. package/dist/types/components/icon/icons/target-icon.d.ts +2 -2
  1658. package/dist/types/components/icon/icons/tent-tree-icon.d.ts +2 -2
  1659. package/dist/types/components/icon/icons/terminal-icon.d.ts +2 -2
  1660. package/dist/types/components/icon/icons/test-tube-icon.d.ts +2 -2
  1661. package/dist/types/components/icon/icons/test-tubes-icon.d.ts +2 -2
  1662. package/dist/types/components/icon/icons/text-cursor-icon.d.ts +2 -2
  1663. package/dist/types/components/icon/icons/text-cursor-input-icon.d.ts +2 -2
  1664. package/dist/types/components/icon/icons/text-icon.d.ts +2 -2
  1665. package/dist/types/components/icon/icons/text-quote-icon.d.ts +2 -2
  1666. package/dist/types/components/icon/icons/text-search-icon.d.ts +2 -2
  1667. package/dist/types/components/icon/icons/text-select-icon.d.ts +2 -2
  1668. package/dist/types/components/icon/icons/theater-icon.d.ts +2 -2
  1669. package/dist/types/components/icon/icons/thermometer-icon.d.ts +2 -2
  1670. package/dist/types/components/icon/icons/thermometer-snowflake-icon.d.ts +2 -2
  1671. package/dist/types/components/icon/icons/thermometer-sun-icon.d.ts +2 -2
  1672. package/dist/types/components/icon/icons/thumbs-down-icon.d.ts +2 -2
  1673. package/dist/types/components/icon/icons/thumbs-up-icon.d.ts +2 -2
  1674. package/dist/types/components/icon/icons/ticket-check-icon.d.ts +2 -2
  1675. package/dist/types/components/icon/icons/ticket-icon.d.ts +2 -2
  1676. package/dist/types/components/icon/icons/ticket-plus-icon.d.ts +2 -2
  1677. package/dist/types/components/icon/icons/ticket-slash-icon.d.ts +2 -2
  1678. package/dist/types/components/icon/icons/ticket-x-icon.d.ts +2 -2
  1679. package/dist/types/components/icon/icons/timer-icon.d.ts +2 -2
  1680. package/dist/types/components/icon/icons/timer-off-icon.d.ts +2 -2
  1681. package/dist/types/components/icon/icons/timer-reset-icon.d.ts +2 -2
  1682. package/dist/types/components/icon/icons/tornado-icon.d.ts +2 -2
  1683. package/dist/types/components/icon/icons/torus-icon.d.ts +2 -2
  1684. package/dist/types/components/icon/icons/touchpad-off-icon.d.ts +2 -2
  1685. package/dist/types/components/icon/icons/tower-control-icon.d.ts +2 -2
  1686. package/dist/types/components/icon/icons/toy-brick-icon.d.ts +2 -2
  1687. package/dist/types/components/icon/icons/traffic-cone-icon.d.ts +2 -2
  1688. package/dist/types/components/icon/icons/train-front-icon.d.ts +2 -2
  1689. package/dist/types/components/icon/icons/train-front-tunnel-icon.d.ts +2 -2
  1690. package/dist/types/components/icon/icons/train-track-icon.d.ts +2 -2
  1691. package/dist/types/components/icon/icons/trash-icon.d.ts +2 -2
  1692. package/dist/types/components/icon/icons/trash2-icon.d.ts +2 -2
  1693. package/dist/types/components/icon/icons/tree-deciduous-icon.d.ts +2 -2
  1694. package/dist/types/components/icon/icons/trees-icon.d.ts +2 -2
  1695. package/dist/types/components/icon/icons/trello-icon.d.ts +2 -2
  1696. package/dist/types/components/icon/icons/trending-up-icon.d.ts +2 -2
  1697. package/dist/types/components/icon/icons/triangle-alert-icon.d.ts +2 -2
  1698. package/dist/types/components/icon/icons/truck-icon.d.ts +2 -2
  1699. package/dist/types/components/icon/icons/tv-icon.d.ts +2 -2
  1700. package/dist/types/components/icon/icons/tv-minimal-icon.d.ts +2 -2
  1701. package/dist/types/components/icon/icons/tv-minimal-play-icon.d.ts +2 -2
  1702. package/dist/types/components/icon/icons/twitch-icon.d.ts +2 -2
  1703. package/dist/types/components/icon/icons/twitter-icon.d.ts +2 -2
  1704. package/dist/types/components/icon/icons/type-icon.d.ts +2 -2
  1705. package/dist/types/components/icon/icons/umbrella-icon.d.ts +2 -2
  1706. package/dist/types/components/icon/icons/underline-icon.d.ts +2 -2
  1707. package/dist/types/components/icon/icons/ungroup-icon.d.ts +2 -2
  1708. package/dist/types/components/icon/icons/university-icon.d.ts +2 -2
  1709. package/dist/types/components/icon/icons/unplug-icon.d.ts +2 -2
  1710. package/dist/types/components/icon/icons/user-lock-icon.d.ts +2 -2
  1711. package/dist/types/components/icon/icons/user-minus-icon.d.ts +2 -2
  1712. package/dist/types/components/icon/icons/user-round-pen-icon.d.ts +2 -2
  1713. package/dist/types/components/icon/icons/user-round-plus-icon.d.ts +2 -2
  1714. package/dist/types/components/icon/icons/user-x-icon.d.ts +2 -2
  1715. package/dist/types/components/icon/icons/users-icon.d.ts +2 -2
  1716. package/dist/types/components/icon/icons/vault-icon.d.ts +2 -2
  1717. package/dist/types/components/icon/icons/vegan-icon.d.ts +2 -2
  1718. package/dist/types/components/icon/icons/video-icon.d.ts +2 -2
  1719. package/dist/types/components/icon/icons/video-off-icon.d.ts +2 -2
  1720. package/dist/types/components/icon/icons/videotape-icon.d.ts +2 -2
  1721. package/dist/types/components/icon/icons/view-icon.d.ts +2 -2
  1722. package/dist/types/components/icon/icons/volume-icon.d.ts +2 -2
  1723. package/dist/types/components/icon/icons/volume-off-icon.d.ts +2 -2
  1724. package/dist/types/components/icon/icons/volume-x-icon.d.ts +2 -2
  1725. package/dist/types/components/icon/icons/volume2-icon.d.ts +2 -2
  1726. package/dist/types/components/icon/icons/vote-icon.d.ts +2 -2
  1727. package/dist/types/components/icon/icons/wallet-cards-icon.d.ts +2 -2
  1728. package/dist/types/components/icon/icons/wallet-icon.d.ts +2 -2
  1729. package/dist/types/components/icon/icons/wallet-minimal-icon.d.ts +2 -2
  1730. package/dist/types/components/icon/icons/wallpaper-icon.d.ts +2 -2
  1731. package/dist/types/components/icon/icons/wand-icon.d.ts +2 -2
  1732. package/dist/types/components/icon/icons/warehouse-icon.d.ts +2 -2
  1733. package/dist/types/components/icon/icons/watch-icon.d.ts +2 -2
  1734. package/dist/types/components/icon/icons/waves-icon.d.ts +2 -2
  1735. package/dist/types/components/icon/icons/waves-ladder-icon.d.ts +2 -2
  1736. package/dist/types/components/icon/icons/webcam-icon.d.ts +2 -2
  1737. package/dist/types/components/icon/icons/webhook-icon.d.ts +2 -2
  1738. package/dist/types/components/icon/icons/weight-icon.d.ts +2 -2
  1739. package/dist/types/components/icon/icons/wheat-icon.d.ts +2 -2
  1740. package/dist/types/components/icon/icons/wheat-off-icon.d.ts +2 -2
  1741. package/dist/types/components/icon/icons/whole-word-icon.d.ts +2 -2
  1742. package/dist/types/components/icon/icons/wifi-cog-icon.d.ts +2 -2
  1743. package/dist/types/components/icon/icons/wifi-high-icon.d.ts +2 -2
  1744. package/dist/types/components/icon/icons/wifi-icon.d.ts +2 -2
  1745. package/dist/types/components/icon/icons/wifi-low-icon.d.ts +2 -2
  1746. package/dist/types/components/icon/icons/wifi-off-icon.d.ts +2 -2
  1747. package/dist/types/components/icon/icons/wifi-pen-icon.d.ts +2 -2
  1748. package/dist/types/components/icon/icons/wifi-zero-icon.d.ts +2 -2
  1749. package/dist/types/components/icon/icons/wind-arrow-down-icon.d.ts +2 -2
  1750. package/dist/types/components/icon/icons/workflow-icon.d.ts +2 -2
  1751. package/dist/types/components/icon/icons/worm-icon.d.ts +2 -2
  1752. package/dist/types/components/icon/icons/x-icon.d.ts +2 -2
  1753. package/dist/types/components/icon/icons/youtube-icon.d.ts +2 -2
  1754. package/dist/types/components/icon/icons/zap-icon.d.ts +2 -2
  1755. package/dist/types/components/icon/icons/zap-off-icon.d.ts +2 -2
  1756. package/dist/types/components/icon/icons/zoom-in-icon.d.ts +2 -2
  1757. package/dist/types/components/image/image.d.ts +3 -3
  1758. package/dist/types/components/indicator/indicator.d.ts +7 -7
  1759. package/dist/types/components/infinite-scroll-area/infinite-scroll-area.d.ts +7 -7
  1760. package/dist/types/components/input/input-addon.d.ts +3 -3
  1761. package/dist/types/components/input/input-element.d.ts +5 -5
  1762. package/dist/types/components/input/input.d.ts +3 -3
  1763. package/dist/types/components/kbd/kbd.d.ts +3 -3
  1764. package/dist/types/components/link/link.d.ts +3 -3
  1765. package/dist/types/components/link-box/link-box.d.ts +6 -6
  1766. package/dist/types/components/list/list.d.ts +8 -8
  1767. package/dist/types/components/loading/loading-provider.d.ts +2 -2
  1768. package/dist/types/components/loading/use-loading-component.d.ts +2 -2
  1769. package/dist/types/components/loading/utils.d.ts +3 -3
  1770. package/dist/types/components/mark/mark.d.ts +3 -3
  1771. package/dist/types/components/modal/modal.d.ts +8 -8
  1772. package/dist/types/components/modal/modal.style.d.ts +2 -2
  1773. package/dist/types/components/motion/index.types.d.ts +7 -7
  1774. package/dist/types/components/native-select/native-select.d.ts +6 -6
  1775. package/dist/types/components/native-table/native-table.d.ts +9 -9
  1776. package/dist/types/components/number-input/number-input.d.ts +5 -5
  1777. package/dist/types/components/pagination/pagination.d.ts +8 -8
  1778. package/dist/types/components/pagination/use-pagination.d.ts +2 -2
  1779. package/dist/types/components/password-input/password-input.d.ts +5 -5
  1780. package/dist/types/components/password-input/strength-meter.d.ts +5 -5
  1781. package/dist/types/components/password-input/use-password-input.d.ts +2 -2
  1782. package/dist/types/components/picture/picture.d.ts +4 -4
  1783. package/dist/types/components/pin-input/pin-input.d.ts +5 -5
  1784. package/dist/types/components/pin-input/use-pin-input.d.ts +2 -2
  1785. package/dist/types/components/popover/popover.d.ts +6 -6
  1786. package/dist/types/components/progress/progress.d.ts +7 -7
  1787. package/dist/types/components/reorder/reorder.d.ts +7 -8
  1788. package/dist/types/components/reorder/use-reorder.d.ts +6 -6
  1789. package/dist/types/components/resizable/resizable.d.ts +5 -5
  1790. package/dist/types/components/resizable/use-resizable.d.ts +2 -2
  1791. package/dist/types/components/ripple/ripple.d.ts +3 -3
  1792. package/dist/types/components/ripple/use-ripple.d.ts +2 -2
  1793. package/dist/types/components/rotate/rotate.d.ts +3 -3
  1794. package/dist/types/components/scroll-area/scroll-area.d.ts +5 -5
  1795. package/dist/types/components/segmented-control/segmented-control.d.ts +5 -5
  1796. package/dist/types/components/segmented-control/use-segmented-control.d.ts +4 -4
  1797. package/dist/types/components/separator/separator.d.ts +3 -3
  1798. package/dist/types/components/simple-grid/simple-grid.d.ts +3 -3
  1799. package/dist/types/components/skeleton/skeleton.d.ts +3 -3
  1800. package/dist/types/components/slide/slide-fade.d.ts +5 -5
  1801. package/dist/types/components/slide/slide.d.ts +5 -5
  1802. package/dist/types/components/stack/h-stack.d.ts +5 -5
  1803. package/dist/types/components/stack/stack.d.ts +5 -5
  1804. package/dist/types/components/stack/v-stack.d.ts +5 -5
  1805. package/dist/types/components/stack/z-stack.d.ts +5 -5
  1806. package/dist/types/components/stat/stat.d.ts +5 -5
  1807. package/dist/types/components/status/status.d.ts +5 -5
  1808. package/dist/types/components/steps/steps.d.ts +8 -8
  1809. package/dist/types/components/steps/steps.style.d.ts +1 -1
  1810. package/dist/types/components/steps/use-steps.d.ts +5 -5
  1811. package/dist/types/components/switch/switch.d.ts +6 -7
  1812. package/dist/types/components/tabs/tabs.d.ts +5 -5
  1813. package/dist/types/components/tabs/use-tabs.d.ts +6 -6
  1814. package/dist/types/components/tag/tag.d.ts +8 -8
  1815. package/dist/types/components/tag/tag.style.d.ts +1 -1
  1816. package/dist/types/components/text/text.d.ts +3 -3
  1817. package/dist/types/components/textarea/textarea.d.ts +3 -3
  1818. package/dist/types/components/textarea/use-autosize.d.ts +2 -2
  1819. package/dist/types/components/toggle/toggle.d.ts +6 -6
  1820. package/dist/types/components/toggle/use-toggle-group.d.ts +2 -2
  1821. package/dist/types/components/toggle/use-toggle.d.ts +4 -4
  1822. package/dist/types/components/tooltip/tooltip.d.ts +5 -5
  1823. package/dist/types/components/visually-hidden/visually-hidden.d.ts +3 -3
  1824. package/dist/types/components/wrap/wrap.d.ts +3 -3
  1825. package/dist/types/core/components/create-component.d.ts +18 -18
  1826. package/dist/types/core/components/index.types.d.ts +4 -4
  1827. package/dist/types/core/components/props.d.ts +11 -11
  1828. package/dist/types/core/components/use-component-style.d.ts +6 -6
  1829. package/dist/types/core/css/css.d.ts +3 -3
  1830. package/dist/types/core/css/index.types.d.ts +4 -4
  1831. package/dist/types/core/css/styles.d.ts +117 -117
  1832. package/dist/types/core/css/use-inject-vars.d.ts +2 -2
  1833. package/dist/types/core/css/utils.d.ts +2 -2
  1834. package/dist/types/core/system/color-mode-provider.d.ts +2 -2
  1835. package/dist/types/core/system/color-mode-script.d.ts +2 -2
  1836. package/dist/types/core/system/create-system.d.ts +3 -3
  1837. package/dist/types/core/system/index.types.d.ts +16 -16
  1838. package/dist/types/core/system/layer.d.ts +2 -2
  1839. package/dist/types/core/system/styled.d.ts +2 -2
  1840. package/dist/types/core/system/system-provider.d.ts +2 -2
  1841. package/dist/types/core/system/theme-script.d.ts +2 -2
  1842. package/dist/types/core/system/var.d.ts +5 -5
  1843. package/dist/types/hooks/use-breakpoint/use-breakpoint-state.d.ts +2 -2
  1844. package/dist/types/hooks/use-clickable/index.d.ts +9 -9
  1845. package/dist/types/hooks/use-clipboard/index.d.ts +2 -2
  1846. package/dist/types/hooks/use-counter/index.d.ts +2 -2
  1847. package/dist/types/hooks/use-descendant/index.d.ts +2 -2
  1848. package/dist/types/hooks/use-event-listener/index.d.ts +4 -4
  1849. package/dist/types/hooks/use-hover/index.d.ts +2 -2
  1850. package/dist/types/hooks/use-pan-event/index.d.ts +6 -6
  1851. package/dist/types/hooks/use-popper/index.d.ts +4 -4
  1852. package/dist/types/hooks/use-resize-observer/index.d.ts +3 -3
  1853. package/dist/types/index.d.ts +15 -13
  1854. package/dist/types/providers/i18n-provider/i18n-provider.d.ts +8 -8
  1855. package/dist/types/providers/i18n-provider/icu.types.d.ts +4 -4
  1856. package/dist/types/utils/children.d.ts +2 -2
  1857. package/dist/types/utils/common/array.d.ts +6 -0
  1858. package/dist/types/utils/common/assertion.d.ts +23 -0
  1859. package/dist/types/utils/common/calc.d.ts +25 -0
  1860. package/dist/types/utils/common/color.d.ts +20 -0
  1861. package/dist/types/utils/common/dom.d.ts +61 -0
  1862. package/dist/types/utils/common/event.d.ts +21 -0
  1863. package/dist/types/utils/common/function.d.ts +8 -0
  1864. package/dist/types/utils/common/i18n.d.ts +5 -0
  1865. package/dist/types/utils/common/index.d.ts +14 -0
  1866. package/dist/types/utils/common/index.types.d.ts +15 -0
  1867. package/dist/types/utils/common/module.d.ts +5 -0
  1868. package/dist/types/utils/common/number.d.ts +11 -0
  1869. package/dist/types/utils/common/object.d.ts +36 -0
  1870. package/dist/types/utils/common/string.d.ts +16 -0
  1871. package/dist/types/utils/index.d.ts +14 -13
  1872. package/package.json +11 -8
  1873. package/dist/cjs/index.cjs.map +0 -1
  1874. package/dist/cjs/utils/index.cjs.map +0 -1
  1875. package/dist/esm/index.js.map +0 -1
  1876. package/dist/esm/utils/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"use-popover.cjs","names":["ev: KeyboardEvent<HTMLDivElement>","ev: FocusEvent<HTMLDivElement>","getTriggerProps: PropGetter<\"button\">","getAnchorProps: PropGetter","getPositionerProps: PropGetter","getContentProps: PropGetter","getHeaderProps: PropGetter","getBodyProps: PropGetter","getFooterProps: PropGetter"],"sources":["../../../../src/components/popover/use-popover.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FocusEvent, KeyboardEvent, RefObject } from \"react\"\nimport type { PropGetter } from \"../../core\"\nimport type { UseDisclosureProps } from \"../../hooks/use-disclosure\"\nimport type { UsePopperProps } from \"../../hooks/use-popper\"\nimport { useCallback, useEffect, useId, useRef } from \"react\"\nimport { useEnvironment } from \"../../core\"\nimport { useDisclosure } from \"../../hooks/use-disclosure\"\nimport { useEventListener } from \"../../hooks/use-event-listener\"\nimport { useFocusOnShow } from \"../../hooks/use-focus\"\nimport { useOutsideClick } from \"../../hooks/use-outside-click\"\nimport { usePopper } from \"../../hooks/use-popper\"\nimport {\n contains,\n cx,\n dataAttr,\n focusTransfer,\n focusTrap,\n getEventRelatedTarget,\n getWindow,\n handlerAll,\n mergeRefs,\n scrollLock,\n useUnmountEffect,\n} from \"../../utils\"\n\nexport interface UsePopoverProps\n extends Omit<UseDisclosureProps, \"timing\">,\n UsePopperProps {\n /**\n * If `true`, focus will be transferred to the first interactive element when the popover opens.\n *\n * @default true\n */\n autoFocus?: boolean\n /**\n * If `true`, scrolling will be disabled on the `body` when the modal opens.\n *\n * @default false\n */\n blockScrollOnMount?: boolean\n /**\n * The delay before hiding the popover.\n *\n * @default 0\n */\n closeDelay?: number\n /**\n * If `true`, the popover will close when you blur out it by clicking outside or tabbing out.\n *\n * @default true\n */\n closeOnBlur?: boolean\n /**\n * If `true`, the popover will hide on pressing Esc key.\n *\n * @default true\n */\n closeOnEsc?: boolean\n /**\n * If `true`, the popover will hide on scroll.\n *\n * @default false\n */\n closeOnScroll?: boolean\n /**\n * If `true`, the popover will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The `ref` of the element that should receive focus when the popover opens.\n */\n initialFocusRef?: RefObject<HTMLElement | null>\n /**\n * If `true`, the popover will be modal.\n *\n * - scrolling is blocked.\n * - focus is trapped within the popover.\n *\n * @default false\n */\n modal?: boolean\n /**\n * The delay before showing the popover.\n *\n * @default 0\n */\n openDelay?: number\n}\n\nexport const usePopover = ({\n autoFocus = true,\n autoUpdate,\n blockScrollOnMount = false,\n closeDelay = 0,\n closeOnBlur = true,\n closeOnEsc = true,\n closeOnScroll,\n defaultOpen,\n disabled,\n elements,\n flip,\n gutter,\n initialFocusRef,\n matchWidth,\n middleware,\n modal = false,\n offset,\n open: openProp,\n openDelay = 0,\n placement = \"end\",\n platform,\n preventOverflow,\n strategy,\n transform,\n whileElementsMounted,\n onClose: onCloseProp,\n onOpen: onOpenProp,\n}: UsePopoverProps = {}) => {\n const { getDocument } = useEnvironment()\n const headerId = useId()\n const bodyId = useId()\n const contentId = useId()\n const anchorRef = useRef<HTMLElement>(null)\n const triggerRef = useRef<HTMLButtonElement>(null)\n const contentRef = useRef<HTMLElement>(null)\n const openTimeout = useRef<NodeJS.Timeout>(undefined)\n const closeTimeout = useRef<NodeJS.Timeout>(undefined)\n const { open, onClose, onOpen } = useDisclosure({\n defaultOpen,\n open: openProp,\n onClose: onCloseProp,\n onOpen: onOpenProp,\n })\n const { refs, getPopperProps } = usePopper<\"button\">({\n autoUpdate,\n elements,\n flip,\n gutter,\n matchWidth,\n middleware,\n offset,\n open,\n placement,\n platform,\n preventOverflow,\n strategy,\n transform,\n whileElementsMounted,\n })\n\n const onForceClose = useCallback(() => {\n if (closeTimeout.current) {\n clearTimeout(closeTimeout.current)\n\n closeTimeout.current = undefined\n }\n\n onClose()\n }, [onClose])\n\n const onDelayOpen = useCallback(() => {\n if (!disabled && !openTimeout.current) {\n if (open) onForceClose()\n\n openTimeout.current = getWindow(refs.reference.current).setTimeout(() => {\n onOpen()\n openTimeout.current = undefined\n }, openDelay)\n }\n }, [disabled, open, onForceClose, refs.reference, onOpen, openDelay])\n\n const onDelayClose = useCallback(() => {\n if (openTimeout.current) {\n clearTimeout(openTimeout.current)\n openTimeout.current = undefined\n }\n\n closeTimeout.current = getWindow(refs.reference.current).setTimeout(\n onForceClose,\n closeDelay,\n )\n }, [closeDelay, onForceClose, refs.reference])\n\n const onKeyDown = useCallback(\n (ev: KeyboardEvent<HTMLDivElement>) => {\n if (closeOnEsc && ev.key === \"Escape\") {\n onDelayClose()\n\n triggerRef.current?.focus()\n }\n },\n [closeOnEsc, onDelayClose],\n )\n\n const onBlur = useCallback(\n (ev: FocusEvent<HTMLDivElement>) => {\n const relatedTarget = getEventRelatedTarget(ev)\n const popup = relatedTarget?.hasAttribute(\"data-popup\")\n\n if (contains(contentRef.current, relatedTarget)) return\n if (contains(contentRef.current, ev.target) && popup) return\n\n if (closeOnBlur) onDelayClose()\n },\n [closeOnBlur, onDelayClose],\n )\n\n useEventListener(getDocument(), \"scroll\", () => {\n if (open && closeOnScroll) onForceClose()\n })\n\n useFocusOnShow(contentRef, {\n focusTarget: initialFocusRef,\n shouldFocus: autoFocus,\n visible: open,\n })\n\n useOutsideClick({\n ref: contentRef,\n enabled: open,\n handler: () => {\n onDelayClose()\n },\n })\n\n useEffect(() => {\n if (!open || !modal) return\n\n return focusTrap(contentRef.current)\n }, [open, modal])\n\n useEffect(() => {\n if (!open || !modal || !blockScrollOnMount) return\n\n return scrollLock(contentRef.current)\n }, [open, modal, blockScrollOnMount])\n\n useEffect(() => {\n if (!open || modal) return\n\n return focusTransfer(contentRef.current, triggerRef.current)\n }, [open, modal])\n\n useUnmountEffect(() => {\n clearTimeout(openTimeout.current)\n clearTimeout(closeTimeout.current)\n })\n\n const getTriggerProps: PropGetter<\"button\"> = useCallback(\n ({ ref, ...props } = {}) => ({\n \"aria-controls\": open ? contentId : undefined,\n \"aria-expanded\": open,\n \"aria-haspopup\": \"dialog\",\n role: \"button\",\n ...props,\n ref: mergeRefs(ref, triggerRef, (node) => {\n if (anchorRef.current == null) refs.setReference(node)\n }),\n onClick: handlerAll(props.onClick, !open ? onDelayOpen : onDelayClose),\n }),\n [contentId, onDelayClose, onDelayOpen, open, refs],\n )\n\n const getAnchorProps: PropGetter = useCallback(\n ({ ref, ...props } = {}) => ({\n ...props,\n ref: mergeRefs(ref, anchorRef, refs.setReference),\n }),\n [refs.setReference],\n )\n\n const getPositionerProps: PropGetter = useCallback(\n (props) => {\n return getPopperProps(props)\n },\n [getPopperProps],\n )\n\n const getContentProps: PropGetter = useCallback(\n ({\n ref,\n \"aria-describedby\": ariaDescribedby,\n \"aria-labelledby\": ariaLabelledby,\n ...props\n } = {}) => {\n const hasHeader = !!getDocument()?.getElementById(headerId)\n const hasBody = !!getDocument()?.getElementById(bodyId)\n\n return {\n id: contentId,\n \"aria-describedby\": cx(ariaDescribedby, hasBody ? bodyId : undefined),\n \"aria-hidden\": !open,\n \"aria-labelledby\": cx(ariaLabelledby, hasHeader ? headerId : undefined),\n \"aria-modal\": modal ? \"true\" : undefined,\n \"data-close\": dataAttr(!open),\n \"data-open\": dataAttr(open),\n \"data-popup\": dataAttr(true),\n role: \"dialog\",\n tabIndex: -1,\n ...props,\n ref: mergeRefs(ref, contentRef),\n onBlur: handlerAll(props.onBlur, onBlur),\n onKeyDown: handlerAll(props.onKeyDown, onKeyDown),\n }\n },\n [getDocument, headerId, bodyId, contentId, open, modal, onBlur, onKeyDown],\n )\n\n const getHeaderProps: PropGetter = useCallback(\n (props) => ({\n id: headerId,\n ...props,\n }),\n [headerId],\n )\n\n const getBodyProps: PropGetter = useCallback(\n (props) => ({\n id: bodyId,\n ...props,\n }),\n [bodyId],\n )\n\n const getFooterProps: PropGetter = useCallback((props) => ({ ...props }), [])\n\n return {\n open,\n getAnchorProps,\n getBodyProps,\n getContentProps,\n getFooterProps,\n getHeaderProps,\n getPositionerProps,\n getTriggerProps,\n onClose: onForceClose,\n onDelayClose,\n onDelayOpen,\n onOpen,\n }\n}\n\nexport type UsePopoverReturn = ReturnType<typeof usePopover>\n"],"mappings":"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"}
1
+ {"version":3,"file":"use-popover.cjs","names":["ev: KeyboardEvent<HTMLDivElement>","ev: FocusEvent<HTMLDivElement>","getTriggerProps: PropGetter<\"button\">","getAnchorProps: PropGetter","getPositionerProps: PropGetter","getContentProps: PropGetter","getHeaderProps: PropGetter","getBodyProps: PropGetter","getFooterProps: PropGetter"],"sources":["../../../../src/components/popover/use-popover.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FocusEvent, KeyboardEvent, RefObject } from \"react\"\nimport type { PropGetter } from \"../../core\"\nimport type { UseDisclosureProps } from \"../../hooks/use-disclosure\"\nimport type { UsePopperProps } from \"../../hooks/use-popper\"\nimport { useCallback, useEffect, useId, useRef } from \"react\"\nimport { useEnvironment } from \"../../core\"\nimport { useDisclosure } from \"../../hooks/use-disclosure\"\nimport { useEventListener } from \"../../hooks/use-event-listener\"\nimport { useFocusOnShow } from \"../../hooks/use-focus\"\nimport { useOutsideClick } from \"../../hooks/use-outside-click\"\nimport { usePopper } from \"../../hooks/use-popper\"\nimport {\n contains,\n cx,\n dataAttr,\n focusTransfer,\n focusTrap,\n getEventRelatedTarget,\n getWindow,\n handlerAll,\n mergeRefs,\n scrollLock,\n useUnmountEffect,\n} from \"../../utils\"\n\nexport interface UsePopoverProps\n extends Omit<UseDisclosureProps, \"timing\">,\n UsePopperProps {\n /**\n * If `true`, focus will be transferred to the first interactive element when the popover opens.\n *\n * @default true\n */\n autoFocus?: boolean\n /**\n * If `true`, scrolling will be disabled on the `body` when the modal opens.\n *\n * @default false\n */\n blockScrollOnMount?: boolean\n /**\n * The delay before hiding the popover.\n *\n * @default 0\n */\n closeDelay?: number\n /**\n * If `true`, the popover will close when you blur out it by clicking outside or tabbing out.\n *\n * @default true\n */\n closeOnBlur?: boolean\n /**\n * If `true`, the popover will hide on pressing Esc key.\n *\n * @default true\n */\n closeOnEsc?: boolean\n /**\n * If `true`, the popover will hide on scroll.\n *\n * @default false\n */\n closeOnScroll?: boolean\n /**\n * If `true`, the popover will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The `ref` of the element that should receive focus when the popover opens.\n */\n initialFocusRef?: RefObject<HTMLElement | null>\n /**\n * If `true`, the popover will be modal.\n *\n * - scrolling is blocked.\n * - focus is trapped within the popover.\n *\n * @default false\n */\n modal?: boolean\n /**\n * The delay before showing the popover.\n *\n * @default 0\n */\n openDelay?: number\n}\n\nexport const usePopover = ({\n autoFocus = true,\n autoUpdate,\n blockScrollOnMount = false,\n closeDelay = 0,\n closeOnBlur = true,\n closeOnEsc = true,\n closeOnScroll,\n defaultOpen,\n disabled,\n elements,\n flip,\n gutter,\n initialFocusRef,\n matchWidth,\n middleware,\n modal = false,\n offset,\n open: openProp,\n openDelay = 0,\n placement = \"end\",\n platform,\n preventOverflow,\n strategy,\n transform,\n whileElementsMounted,\n onClose: onCloseProp,\n onOpen: onOpenProp,\n}: UsePopoverProps = {}) => {\n const { getDocument } = useEnvironment()\n const headerId = useId()\n const bodyId = useId()\n const contentId = useId()\n const anchorRef = useRef<HTMLElement>(null)\n const triggerRef = useRef<HTMLButtonElement>(null)\n const contentRef = useRef<HTMLElement>(null)\n const openTimeout = useRef<NodeJS.Timeout>(undefined)\n const closeTimeout = useRef<NodeJS.Timeout>(undefined)\n const { open, onClose, onOpen } = useDisclosure({\n defaultOpen,\n open: openProp,\n onClose: onCloseProp,\n onOpen: onOpenProp,\n })\n const { refs, getPopperProps } = usePopper<\"button\">({\n autoUpdate,\n elements,\n flip,\n gutter,\n matchWidth,\n middleware,\n offset,\n open,\n placement,\n platform,\n preventOverflow,\n strategy,\n transform,\n whileElementsMounted,\n })\n\n const onForceClose = useCallback(() => {\n if (closeTimeout.current) {\n clearTimeout(closeTimeout.current)\n\n closeTimeout.current = undefined\n }\n\n onClose()\n }, [onClose])\n\n const onDelayOpen = useCallback(() => {\n if (!disabled && !openTimeout.current) {\n if (open) onForceClose()\n\n openTimeout.current = getWindow(refs.reference.current).setTimeout(() => {\n onOpen()\n openTimeout.current = undefined\n }, openDelay)\n }\n }, [disabled, open, onForceClose, refs.reference, onOpen, openDelay])\n\n const onDelayClose = useCallback(() => {\n if (openTimeout.current) {\n clearTimeout(openTimeout.current)\n openTimeout.current = undefined\n }\n\n closeTimeout.current = getWindow(refs.reference.current).setTimeout(\n onForceClose,\n closeDelay,\n )\n }, [closeDelay, onForceClose, refs.reference])\n\n const onKeyDown = useCallback(\n (ev: KeyboardEvent<HTMLDivElement>) => {\n if (closeOnEsc && ev.key === \"Escape\") {\n onDelayClose()\n\n triggerRef.current?.focus()\n }\n },\n [closeOnEsc, onDelayClose],\n )\n\n const onBlur = useCallback(\n (ev: FocusEvent<HTMLDivElement>) => {\n const relatedTarget = getEventRelatedTarget(ev)\n const popup = relatedTarget?.hasAttribute(\"data-popup\")\n\n if (contains(contentRef.current, relatedTarget)) return\n if (contains(contentRef.current, ev.target) && popup) return\n\n if (closeOnBlur) onDelayClose()\n },\n [closeOnBlur, onDelayClose],\n )\n\n useEventListener(getDocument(), \"scroll\", () => {\n if (open && closeOnScroll) onForceClose()\n })\n\n useFocusOnShow(contentRef, {\n focusTarget: initialFocusRef,\n shouldFocus: autoFocus,\n visible: open,\n })\n\n useOutsideClick({\n ref: contentRef,\n enabled: open,\n handler: () => {\n onDelayClose()\n },\n })\n\n useEffect(() => {\n if (!open || !modal) return\n\n return focusTrap(contentRef.current)\n }, [open, modal])\n\n useEffect(() => {\n if (!open || !modal || !blockScrollOnMount) return\n\n return scrollLock(contentRef.current)\n }, [open, modal, blockScrollOnMount])\n\n useEffect(() => {\n if (!open || modal) return\n\n return focusTransfer(contentRef.current, triggerRef.current)\n }, [open, modal])\n\n useUnmountEffect(() => {\n clearTimeout(openTimeout.current)\n clearTimeout(closeTimeout.current)\n })\n\n const getTriggerProps: PropGetter<\"button\"> = useCallback(\n ({ ref, ...props } = {}) => ({\n \"aria-controls\": open ? contentId : undefined,\n \"aria-expanded\": open,\n \"aria-haspopup\": \"dialog\",\n role: \"button\",\n ...props,\n ref: mergeRefs(ref, triggerRef, (node) => {\n if (anchorRef.current == null) refs.setReference(node)\n }),\n onClick: handlerAll(props.onClick, !open ? onDelayOpen : onDelayClose),\n }),\n [contentId, onDelayClose, onDelayOpen, open, refs],\n )\n\n const getAnchorProps: PropGetter = useCallback(\n ({ ref, ...props } = {}) => ({\n ...props,\n ref: mergeRefs(ref, anchorRef, refs.setReference),\n }),\n [refs.setReference],\n )\n\n const getPositionerProps: PropGetter = useCallback(\n (props) => {\n return getPopperProps(props)\n },\n [getPopperProps],\n )\n\n const getContentProps: PropGetter = useCallback(\n ({\n ref,\n \"aria-describedby\": ariaDescribedby,\n \"aria-labelledby\": ariaLabelledby,\n ...props\n } = {}) => {\n const hasHeader = !!getDocument()?.getElementById(headerId)\n const hasBody = !!getDocument()?.getElementById(bodyId)\n\n return {\n id: contentId,\n \"aria-describedby\": cx(ariaDescribedby, hasBody ? bodyId : undefined),\n \"aria-hidden\": !open,\n \"aria-labelledby\": cx(ariaLabelledby, hasHeader ? headerId : undefined),\n \"aria-modal\": modal ? \"true\" : undefined,\n \"data-close\": dataAttr(!open),\n \"data-open\": dataAttr(open),\n \"data-popup\": dataAttr(true),\n role: \"dialog\",\n tabIndex: -1,\n ...props,\n ref: mergeRefs(ref, contentRef),\n onBlur: handlerAll(props.onBlur, onBlur),\n onKeyDown: handlerAll(props.onKeyDown, onKeyDown),\n }\n },\n [getDocument, headerId, bodyId, contentId, open, modal, onBlur, onKeyDown],\n )\n\n const getHeaderProps: PropGetter = useCallback(\n (props) => ({\n id: headerId,\n ...props,\n }),\n [headerId],\n )\n\n const getBodyProps: PropGetter = useCallback(\n (props) => ({\n id: bodyId,\n ...props,\n }),\n [bodyId],\n )\n\n const getFooterProps: PropGetter = useCallback((props) => ({ ...props }), [])\n\n return {\n open,\n getAnchorProps,\n getBodyProps,\n getContentProps,\n getFooterProps,\n getHeaderProps,\n getPositionerProps,\n getTriggerProps,\n onClose: onForceClose,\n onDelayClose,\n onDelayOpen,\n onOpen,\n }\n}\n\nexport type UsePopoverReturn = ReturnType<typeof usePopover>\n"],"mappings":"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"}
@@ -3,7 +3,7 @@
3
3
 
4
4
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
5
5
  const require_utils_ssr = require('../../utils/ssr.cjs');
6
- const require_utils_index = require('../../utils/index.cjs');
6
+ const require_utils_common_dom = require('../../utils/common/dom.cjs');
7
7
  const require_core_system_environment_provider = require('../../core/system/environment-provider.cjs');
8
8
  const react = require_rolldown_runtime.__toESM(require("react"));
9
9
  const react_jsx_runtime = require_rolldown_runtime.__toESM(require("react/jsx-runtime"));
@@ -12,8 +12,8 @@ const react_dom = require_rolldown_runtime.__toESM(require("react-dom"));
12
12
  //#region src/components/portal/portal.tsx
13
13
  const getPortalNode = (node) => {
14
14
  const rootNode = node.getRootNode();
15
- if ((0, require_utils_index.utils_exports.isShadowRoot)(rootNode)) return rootNode;
16
- return (0, require_utils_index.utils_exports.getDocument)(node).body;
15
+ if (require_utils_common_dom.isShadowRoot(rootNode)) return rootNode;
16
+ return require_utils_common_dom.getDocument(node).body;
17
17
  };
18
18
  /**
19
19
  * `Portal` is a component that renders elements outside of the current `DOM` hierarchy.
@@ -1 +1 @@
1
- {"version":3,"file":"portal.cjs","names":["node: RootNode","Portal: FC<PortalProps>"],"sources":["../../../../src/components/portal/portal.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, PropsWithChildren, RefObject } from \"react\"\nimport type { RootNode } from \"../../core\"\nimport { Children, useEffect, useState } from \"react\"\nimport { createPortal } from \"react-dom\"\nimport { useEnvironment } from \"../../core\"\nimport { getDocument, isShadowRoot, useSsr } from \"../../utils\"\n\nconst getPortalNode = (node: RootNode) => {\n const rootNode = node.getRootNode()\n\n if (isShadowRoot(rootNode)) return rootNode\n\n return getDocument(node).body\n}\n\nexport interface PortalProps extends PropsWithChildren {\n /**\n * The `ref` to the component where the portal will be attached to.\n */\n containerRef?: RefObject<HTMLElement | null>\n /**\n * If `true`, the forwarding will be disabled.\n */\n disabled?: boolean\n}\n\n/**\n * `Portal` is a component that renders elements outside of the current `DOM` hierarchy.\n *\n * @see https://yamada-ui.com/components/portal\n */\nexport const Portal: FC<PortalProps> = ({\n children,\n containerRef: ref,\n disabled,\n}) => {\n const [target, setTarget] = useState(ref?.current)\n const ssr = useSsr()\n const { getRootNode } = useEnvironment()\n\n useEffect(() => {\n setTarget(() => ref?.current)\n }, [ref])\n\n if (ssr || disabled) return children\n\n const container = target ?? getPortalNode(getRootNode())\n\n return (\n <>{Children.map(children, (child) => createPortal(child, container))}</>\n )\n}\n"],"mappings":";;;;;;;;;;;;AASA,MAAM,gBAAgB,CAACA,SAAmB;CACxC,MAAM,WAAW,KAAK,aAAa;AAEnC,KAAI,oDAAa,SAAS,CAAE,QAAO;AAEnC,QAAO,mDAAY,KAAK,CAAC;AAC1B;;;;;;AAkBD,MAAaC,SAA0B,CAAC,EACtC,UACA,cAAc,KACd,UACD,KAAK;CACJ,MAAM,CAAC,QAAQ,UAAU,GAAG,oBAAS,KAAK,QAAQ;CAClD,MAAM,MAAM,0BAAQ;CACpB,MAAM,EAAE,aAAa,GAAG,yDAAgB;AAExC,sBAAU,MAAM;AACd,YAAU,MAAM,KAAK,QAAQ;CAC9B,GAAE,CAAC,GAAI,EAAC;AAET,KAAI,OAAO,SAAU,QAAO;CAE5B,MAAM,YAAY,UAAU,cAAc,aAAa,CAAC;AAExD,wBACE,mEAAG,eAAS,IAAI,UAAU,CAAC,UAAU,4BAAa,OAAO,UAAU,CAAC,GAAI;AAE3E"}
1
+ {"version":3,"file":"portal.cjs","names":["node: RootNode","Portal: FC<PortalProps>"],"sources":["../../../../src/components/portal/portal.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, PropsWithChildren, RefObject } from \"react\"\nimport type { RootNode } from \"../../core\"\nimport { Children, useEffect, useState } from \"react\"\nimport { createPortal } from \"react-dom\"\nimport { useEnvironment } from \"../../core\"\nimport { getDocument, isShadowRoot, useSsr } from \"../../utils\"\n\nconst getPortalNode = (node: RootNode) => {\n const rootNode = node.getRootNode()\n\n if (isShadowRoot(rootNode)) return rootNode\n\n return getDocument(node).body\n}\n\nexport interface PortalProps extends PropsWithChildren {\n /**\n * The `ref` to the component where the portal will be attached to.\n */\n containerRef?: RefObject<HTMLElement | null>\n /**\n * If `true`, the forwarding will be disabled.\n */\n disabled?: boolean\n}\n\n/**\n * `Portal` is a component that renders elements outside of the current `DOM` hierarchy.\n *\n * @see https://yamada-ui.com/components/portal\n */\nexport const Portal: FC<PortalProps> = ({\n children,\n containerRef: ref,\n disabled,\n}) => {\n const [target, setTarget] = useState(ref?.current)\n const ssr = useSsr()\n const { getRootNode } = useEnvironment()\n\n useEffect(() => {\n setTarget(() => ref?.current)\n }, [ref])\n\n if (ssr || disabled) return children\n\n const container = target ?? getPortalNode(getRootNode())\n\n return (\n <>{Children.map(children, (child) => createPortal(child, container))}</>\n )\n}\n"],"mappings":";;;;;;;;;;;;AASA,MAAM,gBAAgB,CAACA,SAAmB;CACxC,MAAM,WAAW,KAAK,aAAa;AAEnC,KAAI,sCAAa,SAAS,CAAE,QAAO;AAEnC,QAAO,qCAAY,KAAK,CAAC;AAC1B;;;;;;AAkBD,MAAaC,SAA0B,CAAC,EACtC,UACA,cAAc,KACd,UACD,KAAK;CACJ,MAAM,CAAC,QAAQ,UAAU,GAAG,oBAAS,KAAK,QAAQ;CAClD,MAAM,MAAM,0BAAQ;CACpB,MAAM,EAAE,aAAa,GAAG,yDAAgB;AAExC,sBAAU,MAAM;AACd,YAAU,MAAM,KAAK,QAAQ;CAC9B,GAAE,CAAC,GAAI,EAAC;AAET,KAAI,OAAO,SAAU,QAAO;CAE5B,MAAM,YAAY,UAAU,cAAc,aAAa,CAAC;AAExD,wBACE,mEAAG,eAAS,IAAI,UAAU,CAAC,UAAU,4BAAa,OAAO,UAAU,CAAC,GAAI;AAE3E"}
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
5
- const require_utils_index = require('../../utils/index.cjs');
5
+ const require_utils_common_assertion = require('../../utils/common/assertion.cjs');
6
6
  const require_core_css_merge_css = require('../../core/css/merge-css.cjs');
7
7
  const require_core_system_factory = require('../../core/system/factory.cjs');
8
8
  const require_core_components_create_component = require('../../core/components/create-component.cjs');
@@ -33,7 +33,7 @@ const Progress = withProvider(({ css, max, min, rangeColor, trackColor, value, r
33
33
  })
34
34
  });
35
35
  }, "root")(void 0, ({ duration,...rest }) => ({
36
- "--duration": (0, require_utils_index.utils_exports.isNumber)(duration) ? `${duration}s` : duration,
36
+ "--duration": require_utils_common_assertion.isNumber(duration) ? `${duration}s` : duration,
37
37
  ...rest
38
38
  }));
39
39
  const ProgressRange = withContext("div", "range")();
@@ -1 +1 @@
1
- {"version":3,"file":"progress.cjs","names":["progressStyle","styled"],"sources":["../../../../src/components/progress/progress.tsx"],"sourcesContent":["\"use client\"\n\nimport type { CSSProps, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { ProgressStyle } from \"./progress.style\"\nimport type { UseProgressProps } from \"./use-progress\"\nimport { createSlotComponent, mergeCSS, styled } from \"../../core\"\nimport { isNumber } from \"../../utils\"\nimport { progressStyle } from \"./progress.style\"\nimport { useProgress } from \"./use-progress\"\n\nexport interface ProgressProps\n extends HTMLStyledProps,\n UseProgressProps,\n ThemeProps<ProgressStyle> {\n /**\n * The animation duration in seconds.\n */\n duration?: number | string\n /**\n * The color of the progress range.\n */\n rangeColor?: CSSProps[\"color\"]\n /**\n * The color of the progress track.\n */\n trackColor?: CSSProps[\"color\"]\n /**\n * Props for the progress range element.\n */\n rangeProps?: ProgressRangeProps\n}\n\nexport const {\n PropsContext: ProgressPropsContext,\n usePropsContext: useProgressPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<ProgressProps, ProgressStyle>(\"progress\", progressStyle)\n\n/**\n * `Progress` is a component for visually indicating progress.\n *\n * @see https://yamada-ui.com/components/progress\n */\nexport const Progress = withProvider(\n ({ css, max, min, rangeColor, trackColor, value, rangeProps, ...rest }) => {\n const { percent, getRangeProps, getRootProps } = useProgress({\n max,\n min,\n value,\n })\n\n return (\n <styled.div\n css={mergeCSS(css, { \"--width\": `${percent}%` })}\n bg={trackColor}\n {...getRootProps(rest)}\n >\n <ProgressRange bg={rangeColor} {...getRangeProps(rangeProps)} />\n </styled.div>\n )\n },\n \"root\",\n)(undefined, ({ duration, ...rest }) => ({\n \"--duration\": isNumber(duration) ? `${duration}s` : duration,\n ...rest,\n}))\n\ninterface ProgressRangeProps extends HTMLStyledProps {}\n\nconst ProgressRange = withContext<\"div\", ProgressRangeProps>(\"div\", \"range\")()\n"],"mappings":";;;;;;;;;;;;;AAgCA,MAAa,EACX,cAAc,sBACd,iBAAiB,yBACjB,aACA,cACD,GAAG,6DAAkD,YAAYA,yDAAc;;;;;;AAOhF,MAAa,WAAW,aACtB,CAAC,EAAE,KAAK,KAAK,KAAK,YAAY,YAAY,OAAO,WAAY,GAAG,MAAM,KAAK;CACzE,MAAM,EAAE,SAAS,eAAe,cAAc,GAAG,qDAAY;EAC3D;EACA;EACA;CACD,EAAC;AAEF,wBACE,2BAACC,mCAAO;EACN,KAAK,oCAAS,KAAK,EAAE,cAAc,QAAQ,GAAI,EAAC;EAChD,IAAI;EACJ,GAAI,aAAa,KAAK;4BAEtB,2BAAC;GAAc,IAAI;GAAY,GAAI,cAAc,WAAW;IAAI;GACrD;AAEhB,GACD,OACD,SAAY,CAAC,EAAE,SAAU,GAAG,MAAM,MAAM;CACvC,cAAc,gDAAS,SAAS,MAAM,SAAS,KAAK;CACpD,GAAG;AACJ,GAAE;AAIH,MAAM,gBAAgB,YAAuC,OAAO,QAAQ,EAAE"}
1
+ {"version":3,"file":"progress.cjs","names":["progressStyle","styled"],"sources":["../../../../src/components/progress/progress.tsx"],"sourcesContent":["\"use client\"\n\nimport type { CSSProps, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { ProgressStyle } from \"./progress.style\"\nimport type { UseProgressProps } from \"./use-progress\"\nimport { createSlotComponent, mergeCSS, styled } from \"../../core\"\nimport { isNumber } from \"../../utils\"\nimport { progressStyle } from \"./progress.style\"\nimport { useProgress } from \"./use-progress\"\n\nexport interface ProgressProps\n extends HTMLStyledProps,\n UseProgressProps,\n ThemeProps<ProgressStyle> {\n /**\n * The animation duration in seconds.\n */\n duration?: number | string\n /**\n * The color of the progress range.\n */\n rangeColor?: CSSProps[\"color\"]\n /**\n * The color of the progress track.\n */\n trackColor?: CSSProps[\"color\"]\n /**\n * Props for the progress range element.\n */\n rangeProps?: ProgressRangeProps\n}\n\nexport const {\n PropsContext: ProgressPropsContext,\n usePropsContext: useProgressPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<ProgressProps, ProgressStyle>(\"progress\", progressStyle)\n\n/**\n * `Progress` is a component for visually indicating progress.\n *\n * @see https://yamada-ui.com/components/progress\n */\nexport const Progress = withProvider(\n ({ css, max, min, rangeColor, trackColor, value, rangeProps, ...rest }) => {\n const { percent, getRangeProps, getRootProps } = useProgress({\n max,\n min,\n value,\n })\n\n return (\n <styled.div\n css={mergeCSS(css, { \"--width\": `${percent}%` })}\n bg={trackColor}\n {...getRootProps(rest)}\n >\n <ProgressRange bg={rangeColor} {...getRangeProps(rangeProps)} />\n </styled.div>\n )\n },\n \"root\",\n)(undefined, ({ duration, ...rest }) => ({\n \"--duration\": isNumber(duration) ? `${duration}s` : duration,\n ...rest,\n}))\n\ninterface ProgressRangeProps extends HTMLStyledProps {}\n\nconst ProgressRange = withContext<\"div\", ProgressRangeProps>(\"div\", \"range\")()\n"],"mappings":";;;;;;;;;;;;;AAgCA,MAAa,EACX,cAAc,sBACd,iBAAiB,yBACjB,aACA,cACD,GAAG,6DAAkD,YAAYA,yDAAc;;;;;;AAOhF,MAAa,WAAW,aACtB,CAAC,EAAE,KAAK,KAAK,KAAK,YAAY,YAAY,OAAO,WAAY,GAAG,MAAM,KAAK;CACzE,MAAM,EAAE,SAAS,eAAe,cAAc,GAAG,qDAAY;EAC3D;EACA;EACA;CACD,EAAC;AAEF,wBACE,2BAACC,mCAAO;EACN,KAAK,oCAAS,KAAK,EAAE,cAAc,QAAQ,GAAI,EAAC;EAChD,IAAI;EACJ,GAAI,aAAa,KAAK;4BAEtB,2BAAC;GAAc,IAAI;GAAY,GAAI,cAAc,WAAW;IAAI;GACrD;AAEhB,GACD,OACD,SAAY,CAAC,EAAE,SAAU,GAAG,MAAM,MAAM;CACvC,cAAc,wCAAS,SAAS,MAAM,SAAS,KAAK;CACpD,GAAG;AACJ,GAAE;AAIH,MAAM,gBAAgB,YAAuC,OAAO,QAAQ,EAAE"}
@@ -2,21 +2,22 @@
2
2
 
3
3
 
4
4
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
5
- const require_utils_index = require('../../utils/index.cjs');
5
+ const require_utils_common_dom = require('../../utils/common/dom.cjs');
6
+ const require_utils_common_number = require('../../utils/common/number.cjs');
6
7
  const require_providers_i18n_provider_i18n_provider = require('../../providers/i18n-provider/i18n-provider.cjs');
7
8
  const react = require_rolldown_runtime.__toESM(require("react"));
8
9
 
9
10
  //#region src/components/progress/use-progress.ts
10
11
  const useProgress = ({ max = 100, min = 0, value } = {}) => {
11
12
  const indeterminate = value === null;
12
- const percent = (0, require_utils_index.utils_exports.valueToPercent)(value ?? 0, min, max);
13
+ const percent = require_utils_common_number.valueToPercent(value ?? 0, min, max);
13
14
  const { t } = require_providers_i18n_provider_i18n_provider.useI18n("progress");
14
15
  const getRootProps = (0, react.useCallback)((props) => ({
15
16
  "aria-label": indeterminate ? t("loading") : t("percent", { value: percent }),
16
17
  "aria-valuemax": max,
17
18
  "aria-valuemin": min,
18
19
  "aria-valuenow": value ?? void 0,
19
- "data-indeterminate": (0, require_utils_index.utils_exports.dataAttr)(indeterminate),
20
+ "data-indeterminate": require_utils_common_dom.dataAttr(indeterminate),
20
21
  role: "progressbar",
21
22
  ...props
22
23
  }), [
@@ -28,11 +29,11 @@ const useProgress = ({ max = 100, min = 0, value } = {}) => {
28
29
  t
29
30
  ]);
30
31
  const getTrackProps = (0, react.useCallback)((props) => ({
31
- "data-indeterminate": (0, require_utils_index.utils_exports.dataAttr)(indeterminate),
32
+ "data-indeterminate": require_utils_common_dom.dataAttr(indeterminate),
32
33
  ...props
33
34
  }), [indeterminate]);
34
35
  const getRangeProps = (0, react.useCallback)((props) => ({
35
- "data-indeterminate": (0, require_utils_index.utils_exports.dataAttr)(indeterminate),
36
+ "data-indeterminate": require_utils_common_dom.dataAttr(indeterminate),
36
37
  ...props
37
38
  }), [indeterminate]);
38
39
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"use-progress.cjs","names":["props?: HTMLProps<Y>","props?: HTMLProps<Y extends \"svg\" ? \"circle\" : \"div\">"],"sources":["../../../../src/components/progress/use-progress.ts"],"sourcesContent":["\"use client\"\n\nimport type { HTMLProps } from \"../../core\"\nimport { useCallback } from \"react\"\nimport { useI18n } from \"../../providers/i18n-provider\"\nimport { dataAttr, valueToPercent } from \"../../utils\"\n\nexport interface UseProgressProps {\n /**\n * The maximum value of the progress.\n *\n * @default 100\n */\n max?: number\n /**\n * The minimum value of the progress.\n *\n * @default 0\n */\n min?: number\n /**\n * The value of the progress. If `null`, the progress will be indeterminate.\n *\n * @default 0\n */\n value?: null | number\n}\n\nexport const useProgress = <Y extends \"div\" | \"svg\" = \"div\">({\n max = 100,\n min = 0,\n value,\n}: UseProgressProps = {}) => {\n const indeterminate = value === null\n const percent = valueToPercent(value ?? 0, min, max)\n const { t } = useI18n(\"progress\")\n\n const getRootProps = useCallback(\n (props?: HTMLProps<Y>) => ({\n \"aria-label\": indeterminate\n ? t(\"loading\")\n : t(\"percent\", { value: percent }),\n \"aria-valuemax\": max,\n \"aria-valuemin\": min,\n \"aria-valuenow\": value ?? undefined,\n \"data-indeterminate\": dataAttr(indeterminate),\n role: \"progressbar\",\n ...props,\n }),\n [max, min, percent, value, indeterminate, t],\n )\n\n const getTrackProps = useCallback(\n (props?: HTMLProps<Y extends \"svg\" ? \"circle\" : \"div\">) => ({\n \"data-indeterminate\": dataAttr(indeterminate),\n ...props,\n }),\n [indeterminate],\n )\n\n const getRangeProps = useCallback(\n (props?: HTMLProps<Y extends \"svg\" ? \"circle\" : \"div\">) => ({\n \"data-indeterminate\": dataAttr(indeterminate),\n ...props,\n }),\n [indeterminate],\n )\n\n return {\n percent,\n getRangeProps,\n getRootProps,\n getTrackProps,\n }\n}\n\nexport type UseProgressReturn = ReturnType<typeof useProgress>\n"],"mappings":";;;;;;;;;AA4BA,MAAa,cAAc,CAAkC,EAC3D,MAAM,KACN,MAAM,GACN,OACiB,GAAG,CAAE,MAAK;CAC3B,MAAM,gBAAgB,UAAU;CAChC,MAAM,UAAU,sDAAe,SAAS,GAAG,KAAK,IAAI;CACpD,MAAM,EAAE,GAAG,GAAG,sDAAQ,WAAW;CAEjC,MAAM,eAAe,uBACnB,CAACA,WAA0B;EACzB,cAAc,gBACV,EAAE,UAAU,GACZ,EAAE,WAAW,EAAE,OAAO,QAAS,EAAC;EACpC,iBAAiB;EACjB,iBAAiB;EACjB,iBAAiB;EACjB,sBAAsB,gDAAS,cAAc;EAC7C,MAAM;EACN,GAAG;CACJ,IACD;EAAC;EAAK;EAAK;EAAS;EAAO;EAAe;CAAE,EAC7C;CAED,MAAM,gBAAgB,uBACpB,CAACC,WAA2D;EAC1D,sBAAsB,gDAAS,cAAc;EAC7C,GAAG;CACJ,IACD,CAAC,aAAc,EAChB;CAED,MAAM,gBAAgB,uBACpB,CAACA,WAA2D;EAC1D,sBAAsB,gDAAS,cAAc;EAC7C,GAAG;CACJ,IACD,CAAC,aAAc,EAChB;AAED,QAAO;EACL;EACA;EACA;EACA;CACD;AACF"}
1
+ {"version":3,"file":"use-progress.cjs","names":["props?: HTMLProps<Y>","props?: HTMLProps<Y extends \"svg\" ? \"circle\" : \"div\">"],"sources":["../../../../src/components/progress/use-progress.ts"],"sourcesContent":["\"use client\"\n\nimport type { HTMLProps } from \"../../core\"\nimport { useCallback } from \"react\"\nimport { useI18n } from \"../../providers/i18n-provider\"\nimport { dataAttr, valueToPercent } from \"../../utils\"\n\nexport interface UseProgressProps {\n /**\n * The maximum value of the progress.\n *\n * @default 100\n */\n max?: number\n /**\n * The minimum value of the progress.\n *\n * @default 0\n */\n min?: number\n /**\n * The value of the progress. If `null`, the progress will be indeterminate.\n *\n * @default 0\n */\n value?: null | number\n}\n\nexport const useProgress = <Y extends \"div\" | \"svg\" = \"div\">({\n max = 100,\n min = 0,\n value,\n}: UseProgressProps = {}) => {\n const indeterminate = value === null\n const percent = valueToPercent(value ?? 0, min, max)\n const { t } = useI18n(\"progress\")\n\n const getRootProps = useCallback(\n (props?: HTMLProps<Y>) => ({\n \"aria-label\": indeterminate\n ? t(\"loading\")\n : t(\"percent\", { value: percent }),\n \"aria-valuemax\": max,\n \"aria-valuemin\": min,\n \"aria-valuenow\": value ?? undefined,\n \"data-indeterminate\": dataAttr(indeterminate),\n role: \"progressbar\",\n ...props,\n }),\n [max, min, percent, value, indeterminate, t],\n )\n\n const getTrackProps = useCallback(\n (props?: HTMLProps<Y extends \"svg\" ? \"circle\" : \"div\">) => ({\n \"data-indeterminate\": dataAttr(indeterminate),\n ...props,\n }),\n [indeterminate],\n )\n\n const getRangeProps = useCallback(\n (props?: HTMLProps<Y extends \"svg\" ? \"circle\" : \"div\">) => ({\n \"data-indeterminate\": dataAttr(indeterminate),\n ...props,\n }),\n [indeterminate],\n )\n\n return {\n percent,\n getRangeProps,\n getRootProps,\n getTrackProps,\n }\n}\n\nexport type UseProgressReturn = ReturnType<typeof useProgress>\n"],"mappings":";;;;;;;;;;AA4BA,MAAa,cAAc,CAAkC,EAC3D,MAAM,KACN,MAAM,GACN,OACiB,GAAG,CAAE,MAAK;CAC3B,MAAM,gBAAgB,UAAU;CAChC,MAAM,UAAU,2CAAe,SAAS,GAAG,KAAK,IAAI;CACpD,MAAM,EAAE,GAAG,GAAG,sDAAQ,WAAW;CAEjC,MAAM,eAAe,uBACnB,CAACA,WAA0B;EACzB,cAAc,gBACV,EAAE,UAAU,GACZ,EAAE,WAAW,EAAE,OAAO,QAAS,EAAC;EACpC,iBAAiB;EACjB,iBAAiB;EACjB,iBAAiB;EACjB,sBAAsB,kCAAS,cAAc;EAC7C,MAAM;EACN,GAAG;CACJ,IACD;EAAC;EAAK;EAAK;EAAS;EAAO;EAAe;CAAE,EAC7C;CAED,MAAM,gBAAgB,uBACpB,CAACC,WAA2D;EAC1D,sBAAsB,kCAAS,cAAc;EAC7C,GAAG;CACJ,IACD,CAAC,aAAc,EAChB;CAED,MAAM,gBAAgB,uBACpB,CAACA,WAA2D;EAC1D,sBAAsB,kCAAS,cAAc;EAC7C,GAAG;CACJ,IACD,CAAC,aAAc,EAChB;AAED,QAAO;EACL;EACA;EACA;EACA;CACD;AACF"}
@@ -6,13 +6,15 @@ const require_utils_children = require('../../utils/children.cjs');
6
6
  const require_utils_context = require('../../utils/context.cjs');
7
7
  const require_utils_effect = require('../../utils/effect.cjs');
8
8
  const require_utils_ref = require('../../utils/ref.cjs');
9
- const require_utils_index = require('../../utils/index.cjs');
9
+ const require_utils_common_assertion = require('../../utils/common/assertion.cjs');
10
+ const require_utils_common_function = require('../../utils/common/function.cjs');
11
+ const require_utils_common_dom = require('../../utils/common/dom.cjs');
10
12
  const react = require_rolldown_runtime.__toESM(require("react"));
11
13
  const motion_react = require_rolldown_runtime.__toESM(require("motion/react"));
12
14
 
13
15
  //#region src/components/reorder/use-reorder.ts
14
16
  const getAlternativeValue = ({ children, label } = {}) => serializeValue(children ?? label);
15
- const serializeValue = (value) => (0, require_utils_index.utils_exports.isObject)(value) || (0, require_utils_index.utils_exports.isArray)(value) ? JSON.stringify(value) : value;
17
+ const serializeValue = (value) => require_utils_common_assertion.isObject(value) || require_utils_common_assertion.isArray(value) ? JSON.stringify(value) : value;
16
18
  const [ReorderContext, useReorderContext] = require_utils_context.createContext({ name: "ReorderContext" });
17
19
  const [ReorderItemContext, useReorderItemContext] = require_utils_context.createContext({ name: "ReorderItemContext" });
18
20
  const useReorder = ({ ref, children, item, items = [], orientation = "vertical", onChange, onCompleteChange,...rest } = {}) => {
@@ -77,9 +79,9 @@ const useReorder = ({ ref, children, item, items = [], orientation = "vertical",
77
79
  ...rest,
78
80
  ...props,
79
81
  ref: require_utils_ref.mergeRefs(props.ref, ref),
80
- onMouseUp: (0, require_utils_index.utils_exports.handlerAll)(props.onMouseUp, rest.onMouseUp, onCompleteReorder),
81
- onReorder: (0, require_utils_index.utils_exports.handlerAll)(props.onReorder, rest.onReorder, onReorder),
82
- onTouchEnd: (0, require_utils_index.utils_exports.handlerAll)(props.onTouchEnd, rest.onTouchEnd, onCompleteReorder)
82
+ onMouseUp: require_utils_common_function.handlerAll(props.onMouseUp, rest.onMouseUp, onCompleteReorder),
83
+ onReorder: require_utils_common_function.handlerAll(props.onReorder, rest.onReorder, onReorder),
84
+ onTouchEnd: require_utils_common_function.handlerAll(props.onTouchEnd, rest.onTouchEnd, onCompleteReorder)
83
85
  }), [
84
86
  rest,
85
87
  ref,
@@ -122,8 +124,8 @@ const useReorderItem = ({ ref, label, value,...rest }) => {
122
124
  const getItemProps = (0, react.useCallback)((props = {}) => {
123
125
  const children = props.children ?? rest.children ?? label;
124
126
  return {
125
- "data-has-trigger": (0, require_utils_index.utils_exports.dataAttr)(hasTrigger),
126
- "data-selected": (0, require_utils_index.utils_exports.dataAttr)(drag),
127
+ "data-has-trigger": require_utils_common_dom.dataAttr(hasTrigger),
128
+ "data-selected": require_utils_common_dom.dataAttr(drag),
127
129
  dragControls,
128
130
  dragListener: !hasTrigger,
129
131
  value: value ?? getAlternativeValue({ children }),
@@ -152,8 +154,8 @@ const useReorderItem = ({ ref, label, value,...rest }) => {
152
154
  const getTriggerProps = (0, react.useCallback)((props = {}) => ({
153
155
  ...props,
154
156
  ref: require_utils_ref.mergeRefs(register, props.ref),
155
- "data-selected": (0, require_utils_index.utils_exports.dataAttr)(drag),
156
- onPointerDown: (0, require_utils_index.utils_exports.handlerAll)(props.onPointerDown, (ev) => dragControls.start(ev))
157
+ "data-selected": require_utils_common_dom.dataAttr(drag),
158
+ onPointerDown: require_utils_common_function.handlerAll(props.onPointerDown, (ev) => dragControls.start(ev))
157
159
  }), [
158
160
  drag,
159
161
  dragControls,
@@ -1 +1 @@
1
- {"version":3,"file":"use-reorder.cjs","names":["value: any","values","newValues: Y[]","getRootProps: PropGetter<\n Partial<Omit<ReorderGroupProps<Y>, \"values\">>,\n undefined,\n ReorderGroupProps<Y>\n >","node: HTMLElement | null","x","y","getItemProps: PropGetter<\n Omit<HTMLMotionProps<\"li\">, \"layout\" | \"value\"> &\n Pick<ReorderItemProps<Y>, \"layout\">,\n undefined,\n ReorderItemProps<Y>\n >","getTriggerProps: PropGetter"],"sources":["../../../../src/components/reorder/use-reorder.ts"],"sourcesContent":["\"use client\"\n\nimport type { HTMLMotionProps, Reorder } from \"motion/react\"\nimport type { PropsWithChildren, ReactElement, ReactNode } from \"react\"\nimport type { Orientation, PropGetter } from \"../../core\"\nimport type { Dict, Merge } from \"../../utils\"\nimport { useDragControls, useMotionValue } from \"motion/react\"\nimport {\n cloneElement,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\"\nimport {\n createContext,\n dataAttr,\n getValidChildren,\n handlerAll,\n isArray,\n isObject,\n mergeRefs,\n useUpdateEffect,\n} from \"../../utils\"\n\nconst getAlternativeValue = ({ children, label }: Dict = {}) =>\n serializeValue(children ?? label)\n\nconst serializeValue = (value: any) =>\n isObject(value) || isArray(value) ? JSON.stringify(value) : value\n\ntype ReorderGroupProps<Y = string> = Merge<\n HTMLMotionProps<\"ul\">,\n Pick<Parameters<typeof Reorder.Group<Y>>[0], \"axis\" | \"onReorder\" | \"values\">\n>\ntype ReorderItemProps<Y = string> = Merge<\n HTMLMotionProps<\"li\">,\n Partial<Pick<Parameters<typeof Reorder.Item<Y>>[0], \"layout\" | \"value\">>\n>\n\ninterface ReorderContext extends Pick<UseReorderProps, \"orientation\"> {}\n\nexport const [ReorderContext, useReorderContext] =\n createContext<ReorderContext>({\n name: \"ReorderContext\",\n })\n\ninterface ReorderItemContext {\n getTriggerProps: PropGetter\n}\n\nexport const [ReorderItemContext, useReorderItemContext] =\n createContext<ReorderItemContext>({\n name: \"ReorderItemContext\",\n })\n\nexport interface UseReorderProps<Y = string>\n extends Partial<\n Omit<ReorderGroupProps<Y>, \"children\" | \"onChange\" | \"values\">\n >,\n PropsWithChildren {\n /**\n * The component to be used for the item.\n */\n item?: ReactElement<any>\n /**\n * If provided, generate reorder items based on items.\n *\n */\n items?: UseReorderItemProps<Y>[]\n /**\n * The orientation of the reorder.\n *\n * @default 'vertical'\n */\n orientation?: Orientation\n /**\n * The callback invoked when reorder items are moved.\n */\n onChange?: (values: Y[]) => void\n /**\n * The callback invoked when the movement of reorder items is completed.\n */\n onCompleteChange?: (values: Y[]) => void\n}\n\nexport const useReorder = <Y = string>({\n ref,\n children,\n item,\n items = [],\n orientation = \"vertical\",\n onChange,\n onCompleteChange,\n ...rest\n}: UseReorderProps<Y> = {}) => {\n const axis = orientation === \"vertical\" ? \"y\" : \"x\"\n const validChildren = useMemo(() => getValidChildren(children), [children])\n const hasChildren = !!validChildren.length\n const defaultValues = useMemo(() => {\n const values = hasChildren\n ? validChildren.map(\n ({ props }) => props.value ?? getAlternativeValue(props),\n )\n : items.map((props) => props.value ?? getAlternativeValue(props))\n\n const duplicatedValues = values.filter(\n (value, index, self) =>\n self.indexOf(value) === index && index !== self.lastIndexOf(value),\n )\n\n if (duplicatedValues.length)\n console.warn(\n `Reorder: 'value' of 'ReorderItem' must not be duplicated. duplicate 'value' is '${duplicatedValues.join(\n `', '`,\n )}' `,\n )\n\n return Array.from(new Set(values))\n }, [hasChildren, validChildren, items])\n const childMap = useMemo(() => {\n return Object.fromEntries(\n validChildren.map((child) => [\n serializeValue(child.props.value) ??\n serializeValue(getAlternativeValue(child.props)),\n child,\n ]),\n )\n }, [validChildren])\n const itemMap = useMemo(() => {\n return Object.fromEntries(\n items.map((props) => [\n serializeValue(props.value) ??\n serializeValue(getAlternativeValue(props)),\n props,\n ]),\n )\n }, [items])\n const prevDefaultValues = useRef<Y[]>(defaultValues)\n const [values, setValues] = useState<Y[]>(defaultValues)\n const prevValues = useRef<Y[]>(defaultValues)\n const cloneChildren = useMemo(\n () =>\n values.map((value) => {\n if (hasChildren) {\n return childMap[serializeValue(value)]\n } else {\n const props = itemMap[serializeValue(value)]\n\n return props && item\n ? cloneElement(item, { key: serializeValue(props.value), ...props })\n : null\n }\n }),\n [values, hasChildren, childMap, itemMap, item],\n )\n\n const onReorder = useCallback(\n (newValues: Y[]) => {\n setValues(newValues)\n\n onChange?.(newValues)\n },\n [onChange],\n )\n\n const onCompleteReorder = useCallback(() => {\n const equal = JSON.stringify(prevValues.current) === JSON.stringify(values)\n\n if (equal) return\n\n prevValues.current = values\n\n onCompleteChange?.(values)\n }, [onCompleteChange, values])\n\n useUpdateEffect(() => {\n const equal =\n JSON.stringify(defaultValues) ===\n JSON.stringify(prevDefaultValues.current)\n\n if (equal) return\n\n prevValues.current = defaultValues\n prevDefaultValues.current = defaultValues\n\n setValues(defaultValues)\n }, [defaultValues])\n\n const getRootProps: PropGetter<\n Partial<Omit<ReorderGroupProps<Y>, \"values\">>,\n undefined,\n ReorderGroupProps<Y>\n > = useCallback(\n (props = {}) => ({\n axis,\n values,\n ...rest,\n ...props,\n ref: mergeRefs(props.ref, ref),\n onMouseUp: handlerAll(props.onMouseUp, rest.onMouseUp, onCompleteReorder),\n onReorder: handlerAll(props.onReorder, rest.onReorder, onReorder),\n onTouchEnd: handlerAll(\n props.onTouchEnd,\n rest.onTouchEnd,\n onCompleteReorder,\n ),\n }),\n [rest, ref, onCompleteReorder, onReorder, axis, values],\n )\n\n return { children: cloneChildren, orientation, values, getRootProps }\n}\n\nexport type UseReorderReturn<Y = string> = ReturnType<typeof useReorder<Y>>\n\nexport interface UseReorderItemProps<Y = string> extends ReorderItemProps<Y> {\n /**\n * The label of the reorder item.\n */\n label?: ReactNode\n /**\n * The value of the reorder item.\n */\n value?: Y\n}\n\nexport const useReorderItem = <Y = string>({\n ref,\n label,\n value,\n ...rest\n}: UseReorderItemProps<Y>) => {\n const { orientation } = useReorderContext()\n const dragControls = useDragControls()\n const [hasTrigger, setHasTrigger] = useState<boolean>(false)\n const [drag, setDrag] = useState<boolean>(false)\n const x = useMotionValue(0)\n const y = useMotionValue(0)\n\n const register = useCallback(\n (node: HTMLElement | null) => setHasTrigger(!!node),\n [],\n )\n\n useEffect(() => {\n const unsubscribeX = x.on(\"change\", (x) => {\n if (orientation === \"horizontal\") setDrag(x !== 0)\n })\n const unsubscribeY = y.on(\"change\", (y) => {\n if (orientation === \"vertical\") setDrag(y !== 0)\n })\n\n return () => {\n unsubscribeX()\n unsubscribeY()\n }\n }, [orientation, x, y])\n\n const getItemProps: PropGetter<\n Omit<HTMLMotionProps<\"li\">, \"layout\" | \"value\"> &\n Pick<ReorderItemProps<Y>, \"layout\">,\n undefined,\n ReorderItemProps<Y>\n > = useCallback(\n (props = {}) => {\n const children = props.children ?? rest.children ?? label\n\n return {\n \"data-has-trigger\": dataAttr(hasTrigger),\n \"data-selected\": dataAttr(drag),\n dragControls,\n dragListener: !hasTrigger,\n value: value ?? getAlternativeValue({ children }),\n ...props,\n ...rest,\n ref: mergeRefs(props.ref, ref),\n style: { x, y, ...props.style, ...rest.style },\n children,\n }\n },\n [ref, rest, dragControls, hasTrigger, value, x, y, drag, label],\n )\n\n const getTriggerProps: PropGetter = useCallback(\n (props = {}) => ({\n ...props,\n ref: mergeRefs(register, props.ref),\n \"data-selected\": dataAttr(drag),\n onPointerDown: handlerAll(props.onPointerDown, (ev) =>\n dragControls.start(ev),\n ),\n }),\n [drag, dragControls, register],\n )\n\n return { getItemProps, getTriggerProps }\n}\n\nexport type UseReorderItemReturn<Y = string> = ReturnType<\n typeof useReorderItem<Y>\n>\n"],"mappings":"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"}
1
+ {"version":3,"file":"use-reorder.cjs","names":["value: any","values","newValues: Y[]","getRootProps: PropGetter<\n Partial<Omit<ReorderGroupProps<Y>, \"values\">>,\n undefined,\n ReorderGroupProps<Y>\n >","node: HTMLElement | null","x","y","getItemProps: PropGetter<\n Omit<HTMLMotionProps<\"li\">, \"layout\" | \"value\"> &\n Pick<ReorderItemProps<Y>, \"layout\">,\n undefined,\n ReorderItemProps<Y>\n >","getTriggerProps: PropGetter"],"sources":["../../../../src/components/reorder/use-reorder.ts"],"sourcesContent":["\"use client\"\n\nimport type { HTMLMotionProps, Reorder } from \"motion/react\"\nimport type { PropsWithChildren, ReactElement, ReactNode } from \"react\"\nimport type { Orientation, PropGetter } from \"../../core\"\nimport type { Dict, Merge } from \"../../utils\"\nimport { useDragControls, useMotionValue } from \"motion/react\"\nimport {\n cloneElement,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\"\nimport {\n createContext,\n dataAttr,\n getValidChildren,\n handlerAll,\n isArray,\n isObject,\n mergeRefs,\n useUpdateEffect,\n} from \"../../utils\"\n\nconst getAlternativeValue = ({ children, label }: Dict = {}) =>\n serializeValue(children ?? label)\n\nconst serializeValue = (value: any) =>\n isObject(value) || isArray(value) ? JSON.stringify(value) : value\n\ntype ReorderGroupProps<Y = string> = Merge<\n HTMLMotionProps<\"ul\">,\n Pick<Parameters<typeof Reorder.Group<Y>>[0], \"axis\" | \"onReorder\" | \"values\">\n>\ntype ReorderItemProps<Y = string> = Merge<\n HTMLMotionProps<\"li\">,\n Partial<Pick<Parameters<typeof Reorder.Item<Y>>[0], \"layout\" | \"value\">>\n>\n\ninterface ReorderContext extends Pick<UseReorderProps, \"orientation\"> {}\n\nexport const [ReorderContext, useReorderContext] =\n createContext<ReorderContext>({\n name: \"ReorderContext\",\n })\n\ninterface ReorderItemContext {\n getTriggerProps: PropGetter\n}\n\nexport const [ReorderItemContext, useReorderItemContext] =\n createContext<ReorderItemContext>({\n name: \"ReorderItemContext\",\n })\n\nexport interface UseReorderProps<Y = string>\n extends Partial<\n Omit<ReorderGroupProps<Y>, \"children\" | \"onChange\" | \"values\">\n >,\n PropsWithChildren {\n /**\n * The component to be used for the item.\n */\n item?: ReactElement<any>\n /**\n * If provided, generate reorder items based on items.\n *\n */\n items?: UseReorderItemProps<Y>[]\n /**\n * The orientation of the reorder.\n *\n * @default 'vertical'\n */\n orientation?: Orientation\n /**\n * The callback invoked when reorder items are moved.\n */\n onChange?: (values: Y[]) => void\n /**\n * The callback invoked when the movement of reorder items is completed.\n */\n onCompleteChange?: (values: Y[]) => void\n}\n\nexport const useReorder = <Y = string>({\n ref,\n children,\n item,\n items = [],\n orientation = \"vertical\",\n onChange,\n onCompleteChange,\n ...rest\n}: UseReorderProps<Y> = {}) => {\n const axis = orientation === \"vertical\" ? \"y\" : \"x\"\n const validChildren = useMemo(() => getValidChildren(children), [children])\n const hasChildren = !!validChildren.length\n const defaultValues = useMemo(() => {\n const values = hasChildren\n ? validChildren.map(\n ({ props }) => props.value ?? getAlternativeValue(props),\n )\n : items.map((props) => props.value ?? getAlternativeValue(props))\n\n const duplicatedValues = values.filter(\n (value, index, self) =>\n self.indexOf(value) === index && index !== self.lastIndexOf(value),\n )\n\n if (duplicatedValues.length)\n console.warn(\n `Reorder: 'value' of 'ReorderItem' must not be duplicated. duplicate 'value' is '${duplicatedValues.join(\n `', '`,\n )}' `,\n )\n\n return Array.from(new Set(values))\n }, [hasChildren, validChildren, items])\n const childMap = useMemo(() => {\n return Object.fromEntries(\n validChildren.map((child) => [\n serializeValue(child.props.value) ??\n serializeValue(getAlternativeValue(child.props)),\n child,\n ]),\n )\n }, [validChildren])\n const itemMap = useMemo(() => {\n return Object.fromEntries(\n items.map((props) => [\n serializeValue(props.value) ??\n serializeValue(getAlternativeValue(props)),\n props,\n ]),\n )\n }, [items])\n const prevDefaultValues = useRef<Y[]>(defaultValues)\n const [values, setValues] = useState<Y[]>(defaultValues)\n const prevValues = useRef<Y[]>(defaultValues)\n const cloneChildren = useMemo(\n () =>\n values.map((value) => {\n if (hasChildren) {\n return childMap[serializeValue(value)]\n } else {\n const props = itemMap[serializeValue(value)]\n\n return props && item\n ? cloneElement(item, { key: serializeValue(props.value), ...props })\n : null\n }\n }),\n [values, hasChildren, childMap, itemMap, item],\n )\n\n const onReorder = useCallback(\n (newValues: Y[]) => {\n setValues(newValues)\n\n onChange?.(newValues)\n },\n [onChange],\n )\n\n const onCompleteReorder = useCallback(() => {\n const equal = JSON.stringify(prevValues.current) === JSON.stringify(values)\n\n if (equal) return\n\n prevValues.current = values\n\n onCompleteChange?.(values)\n }, [onCompleteChange, values])\n\n useUpdateEffect(() => {\n const equal =\n JSON.stringify(defaultValues) ===\n JSON.stringify(prevDefaultValues.current)\n\n if (equal) return\n\n prevValues.current = defaultValues\n prevDefaultValues.current = defaultValues\n\n setValues(defaultValues)\n }, [defaultValues])\n\n const getRootProps: PropGetter<\n Partial<Omit<ReorderGroupProps<Y>, \"values\">>,\n undefined,\n ReorderGroupProps<Y>\n > = useCallback(\n (props = {}) => ({\n axis,\n values,\n ...rest,\n ...props,\n ref: mergeRefs(props.ref, ref),\n onMouseUp: handlerAll(props.onMouseUp, rest.onMouseUp, onCompleteReorder),\n onReorder: handlerAll(props.onReorder, rest.onReorder, onReorder),\n onTouchEnd: handlerAll(\n props.onTouchEnd,\n rest.onTouchEnd,\n onCompleteReorder,\n ),\n }),\n [rest, ref, onCompleteReorder, onReorder, axis, values],\n )\n\n return { children: cloneChildren, orientation, values, getRootProps }\n}\n\nexport type UseReorderReturn<Y = string> = ReturnType<typeof useReorder<Y>>\n\nexport interface UseReorderItemProps<Y = string> extends ReorderItemProps<Y> {\n /**\n * The label of the reorder item.\n */\n label?: ReactNode\n /**\n * The value of the reorder item.\n */\n value?: Y\n}\n\nexport const useReorderItem = <Y = string>({\n ref,\n label,\n value,\n ...rest\n}: UseReorderItemProps<Y>) => {\n const { orientation } = useReorderContext()\n const dragControls = useDragControls()\n const [hasTrigger, setHasTrigger] = useState<boolean>(false)\n const [drag, setDrag] = useState<boolean>(false)\n const x = useMotionValue(0)\n const y = useMotionValue(0)\n\n const register = useCallback(\n (node: HTMLElement | null) => setHasTrigger(!!node),\n [],\n )\n\n useEffect(() => {\n const unsubscribeX = x.on(\"change\", (x) => {\n if (orientation === \"horizontal\") setDrag(x !== 0)\n })\n const unsubscribeY = y.on(\"change\", (y) => {\n if (orientation === \"vertical\") setDrag(y !== 0)\n })\n\n return () => {\n unsubscribeX()\n unsubscribeY()\n }\n }, [orientation, x, y])\n\n const getItemProps: PropGetter<\n Omit<HTMLMotionProps<\"li\">, \"layout\" | \"value\"> &\n Pick<ReorderItemProps<Y>, \"layout\">,\n undefined,\n ReorderItemProps<Y>\n > = useCallback(\n (props = {}) => {\n const children = props.children ?? rest.children ?? label\n\n return {\n \"data-has-trigger\": dataAttr(hasTrigger),\n \"data-selected\": dataAttr(drag),\n dragControls,\n dragListener: !hasTrigger,\n value: value ?? getAlternativeValue({ children }),\n ...props,\n ...rest,\n ref: mergeRefs(props.ref, ref),\n style: { x, y, ...props.style, ...rest.style },\n children,\n }\n },\n [ref, rest, dragControls, hasTrigger, value, x, y, drag, label],\n )\n\n const getTriggerProps: PropGetter = useCallback(\n (props = {}) => ({\n ...props,\n ref: mergeRefs(register, props.ref),\n \"data-selected\": dataAttr(drag),\n onPointerDown: handlerAll(props.onPointerDown, (ev) =>\n dragControls.start(ev),\n ),\n }),\n [drag, dragControls, register],\n )\n\n return { getItemProps, getTriggerProps }\n}\n\nexport type UseReorderItemReturn<Y = string> = ReturnType<\n typeof useReorderItem<Y>\n>\n"],"mappings":";;;;;;;;;;;;;;;AA0BA,MAAM,sBAAsB,CAAC,EAAE,UAAU,OAAa,GAAG,CAAE,MACzD,eAAe,YAAY,MAAM;AAEnC,MAAM,iBAAiB,CAACA,UACtB,wCAAS,MAAM,IAAI,uCAAQ,MAAM,GAAG,KAAK,UAAU,MAAM,GAAG;AAa9D,MAAa,CAAC,gBAAgB,kBAAkB,GAC9C,oCAA8B,EAC5B,MAAM,iBACP,EAAC;AAMJ,MAAa,CAAC,oBAAoB,sBAAsB,GACtD,oCAAkC,EAChC,MAAM,qBACP,EAAC;AAgCJ,MAAa,aAAa,CAAa,EACrC,KACA,UACA,MACA,QAAQ,CAAE,GACV,cAAc,YACd,UACA,iBACA,GAAG,MACgB,GAAG,CAAE,MAAK;CAC7B,MAAM,OAAO,gBAAgB,aAAa,MAAM;CAChD,MAAM,gBAAgB,mBAAQ,MAAM,wCAAiB,SAAS,EAAE,CAAC,QAAS,EAAC;CAC3E,MAAM,gBAAgB,cAAc;CACpC,MAAM,gBAAgB,mBAAQ,MAAM;EAClC,MAAMC,WAAS,cACX,cAAc,IACZ,CAAC,EAAE,OAAO,KAAK,MAAM,SAAS,oBAAoB,MAAM,CACzD,GACD,MAAM,IAAI,CAAC,UAAU,MAAM,SAAS,oBAAoB,MAAM,CAAC;EAEnE,MAAM,mBAAmB,SAAO,OAC9B,CAAC,OAAO,OAAO,SACb,KAAK,QAAQ,MAAM,KAAK,SAAS,UAAU,KAAK,YAAY,MAAM,CACrE;AAED,MAAI,iBAAiB,OACnB,SAAQ,MACL,kFAAkF,iBAAiB,MACjG,MACF,CAAC,IACH;AAEH,SAAO,MAAM,KAAK,IAAI,IAAIA,UAAQ;CACnC,GAAE;EAAC;EAAa;EAAe;CAAM,EAAC;CACvC,MAAM,WAAW,mBAAQ,MAAM;AAC7B,SAAO,OAAO,YACZ,cAAc,IAAI,CAAC,UAAU,CAC3B,eAAe,MAAM,MAAM,MAAM,IAC/B,eAAe,oBAAoB,MAAM,MAAM,CAAC,EAClD,KACD,EAAC,CACH;CACF,GAAE,CAAC,aAAc,EAAC;CACnB,MAAM,UAAU,mBAAQ,MAAM;AAC5B,SAAO,OAAO,YACZ,MAAM,IAAI,CAAC,UAAU,CACnB,eAAe,MAAM,MAAM,IACzB,eAAe,oBAAoB,MAAM,CAAC,EAC5C,KACD,EAAC,CACH;CACF,GAAE,CAAC,KAAM,EAAC;CACX,MAAM,oBAAoB,kBAAY,cAAc;CACpD,MAAM,CAAC,QAAQ,UAAU,GAAG,oBAAc,cAAc;CACxD,MAAM,aAAa,kBAAY,cAAc;CAC7C,MAAM,gBAAgB,mBACpB,MACE,OAAO,IAAI,CAAC,UAAU;AACpB,MAAI,YACF,QAAO,SAAS,eAAe,MAAM;OAChC;GACL,MAAM,QAAQ,QAAQ,eAAe,MAAM;AAE3C,UAAO,SAAS,OACZ,wBAAa,MAAM;IAAE,KAAK,eAAe,MAAM,MAAM;IAAE,GAAG;GAAO,EAAC,GAClE;EACL;CACF,EAAC,EACJ;EAAC;EAAQ;EAAa;EAAU;EAAS;CAAK,EAC/C;CAED,MAAM,YAAY,uBAChB,CAACC,cAAmB;AAClB,YAAU,UAAU;AAEpB,aAAW,UAAU;CACtB,GACD,CAAC,QAAS,EACX;CAED,MAAM,oBAAoB,uBAAY,MAAM;EAC1C,MAAM,QAAQ,KAAK,UAAU,WAAW,QAAQ,KAAK,KAAK,UAAU,OAAO;AAE3E,MAAI,MAAO;AAEX,aAAW,UAAU;AAErB,qBAAmB,OAAO;CAC3B,GAAE,CAAC,kBAAkB,MAAO,EAAC;AAE9B,sCAAgB,MAAM;EACpB,MAAM,QACJ,KAAK,UAAU,cAAc,KAC7B,KAAK,UAAU,kBAAkB,QAAQ;AAE3C,MAAI,MAAO;AAEX,aAAW,UAAU;AACrB,oBAAkB,UAAU;AAE5B,YAAU,cAAc;CACzB,GAAE,CAAC,aAAc,EAAC;CAEnB,MAAMC,eAIF,uBACF,CAAC,QAAQ,CAAE,OAAM;EACf;EACA;EACA,GAAG;EACH,GAAG;EACH,KAAK,4BAAU,MAAM,KAAK,IAAI;EAC9B,WAAW,yCAAW,MAAM,WAAW,KAAK,WAAW,kBAAkB;EACzE,WAAW,yCAAW,MAAM,WAAW,KAAK,WAAW,UAAU;EACjE,YAAY,yCACV,MAAM,YACN,KAAK,YACL,kBACD;CACF,IACD;EAAC;EAAM;EAAK;EAAmB;EAAW;EAAM;CAAO,EACxD;AAED,QAAO;EAAE,UAAU;EAAe;EAAa;EAAQ;CAAc;AACtE;AAeD,MAAa,iBAAiB,CAAa,EACzC,KACA,OACA,MACA,GAAG,MACoB,KAAK;CAC5B,MAAM,EAAE,aAAa,GAAG,mBAAmB;CAC3C,MAAM,eAAe,mCAAiB;CACtC,MAAM,CAAC,YAAY,cAAc,GAAG,oBAAkB,MAAM;CAC5D,MAAM,CAAC,MAAM,QAAQ,GAAG,oBAAkB,MAAM;CAChD,MAAM,IAAI,iCAAe,EAAE;CAC3B,MAAM,IAAI,iCAAe,EAAE;CAE3B,MAAM,WAAW,uBACf,CAACC,SAA6B,gBAAgB,KAAK,EACnD,CAAE,EACH;AAED,sBAAU,MAAM;EACd,MAAM,eAAe,EAAE,GAAG,UAAU,CAACC,QAAM;AACzC,OAAI,gBAAgB,aAAc,SAAQA,QAAM,EAAE;EACnD,EAAC;EACF,MAAM,eAAe,EAAE,GAAG,UAAU,CAACC,QAAM;AACzC,OAAI,gBAAgB,WAAY,SAAQA,QAAM,EAAE;EACjD,EAAC;AAEF,SAAO,MAAM;AACX,iBAAc;AACd,iBAAc;EACf;CACF,GAAE;EAAC;EAAa;EAAG;CAAE,EAAC;CAEvB,MAAMC,eAKF,uBACF,CAAC,QAAQ,CAAE,MAAK;EACd,MAAM,WAAW,MAAM,YAAY,KAAK,YAAY;AAEpD,SAAO;GACL,oBAAoB,kCAAS,WAAW;GACxC,iBAAiB,kCAAS,KAAK;GAC/B;GACA,eAAe;GACf,OAAO,SAAS,oBAAoB,EAAE,SAAU,EAAC;GACjD,GAAG;GACH,GAAG;GACH,KAAK,4BAAU,MAAM,KAAK,IAAI;GAC9B,OAAO;IAAE;IAAG;IAAG,GAAG,MAAM;IAAO,GAAG,KAAK;GAAO;GAC9C;EACD;CACF,GACD;EAAC;EAAK;EAAM;EAAc;EAAY;EAAO;EAAG;EAAG;EAAM;CAAM,EAChE;CAED,MAAMC,kBAA8B,uBAClC,CAAC,QAAQ,CAAE,OAAM;EACf,GAAG;EACH,KAAK,4BAAU,UAAU,MAAM,IAAI;EACnC,iBAAiB,kCAAS,KAAK;EAC/B,eAAe,yCAAW,MAAM,eAAe,CAAC,OAC9C,aAAa,MAAM,GAAG,CACvB;CACF,IACD;EAAC;EAAM;EAAc;CAAS,EAC/B;AAED,QAAO;EAAE;EAAc;CAAiB;AACzC"}
@@ -4,7 +4,8 @@
4
4
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
5
5
  const require_utils_context = require('../../utils/context.cjs');
6
6
  const require_utils_ref = require('../../utils/ref.cjs');
7
- const require_utils_index = require('../../utils/index.cjs');
7
+ const require_utils_common_function = require('../../utils/common/function.cjs');
8
+ const require_utils_common_dom = require('../../utils/common/dom.cjs');
8
9
  const react = require_rolldown_runtime.__toESM(require("react"));
9
10
  const react_resizable_panels = require_rolldown_runtime.__toESM(require("react-resizable-panels"));
10
11
 
@@ -28,7 +29,7 @@ const useResizable = ({ id, ref, controlRef: controlRefProp, disabled, keyboardS
28
29
  ...props,
29
30
  ref: require_utils_ref.mergeRefs(ref$1, controlRefProp, controlRef),
30
31
  tagName: props.as ?? groupProps.as,
31
- onLayout: (0, require_utils_index.utils_exports.fnAll)(props.onLayout, groupProps.onLayout, onLayout)
32
+ onLayout: require_utils_common_function.fnAll(props.onLayout, groupProps.onLayout, onLayout)
32
33
  }), [
33
34
  id,
34
35
  orientation,
@@ -60,9 +61,9 @@ const useResizableItem = ({ id, ref, as, controlRef, onCollapse, onExpand, onRes
60
61
  tagName: props.as ?? as,
61
62
  ...props,
62
63
  ...rest,
63
- onCollapse: (0, require_utils_index.utils_exports.fnAll)(props.onCollapse, onCollapse),
64
- onExpand: (0, require_utils_index.utils_exports.fnAll)(props.onExpand, onExpand),
65
- onResize: (0, require_utils_index.utils_exports.fnAll)(props.onResize, onResize)
64
+ onCollapse: require_utils_common_function.fnAll(props.onCollapse, onCollapse),
65
+ onExpand: require_utils_common_function.fnAll(props.onExpand, onExpand),
66
+ onResize: require_utils_common_function.fnAll(props.onResize, onResize)
66
67
  }), [
67
68
  as,
68
69
  controlRef,
@@ -96,13 +97,13 @@ const useResizableTrigger = ({ id, ref, as, disabled, onDragging,...rest }) => {
96
97
  const getTriggerProps = (0, react.useCallback)((props = {}) => ({
97
98
  id,
98
99
  "aria-orientation": orientation,
99
- "data-active": (0, require_utils_index.utils_exports.dataAttr)(active),
100
+ "data-active": require_utils_common_dom.dataAttr(active),
100
101
  disabled: trulyDisabled,
101
102
  tagName: props.as ?? as,
102
103
  ...rest,
103
104
  ...props,
104
- onDoubleClick: (0, require_utils_index.utils_exports.handlerAll)(props.onDoubleClick, rest.onDoubleClick, onDoubleClick),
105
- onDragging: (0, require_utils_index.utils_exports.fnAll)(props.onDragging, onDragging, setActive)
105
+ onDoubleClick: require_utils_common_function.handlerAll(props.onDoubleClick, rest.onDoubleClick, onDoubleClick),
106
+ onDragging: require_utils_common_function.fnAll(props.onDragging, onDragging, setActive)
106
107
  }), [
107
108
  id,
108
109
  as,
@@ -114,7 +115,7 @@ const useResizableTrigger = ({ id, ref, as, disabled, onDragging,...rest }) => {
114
115
  active
115
116
  ]);
116
117
  const getIconProps = (0, react.useCallback)((props = {}) => ({
117
- "data-active": (0, require_utils_index.utils_exports.dataAttr)(active),
118
+ "data-active": require_utils_common_dom.dataAttr(active),
118
119
  "data-icon": "",
119
120
  ...props
120
121
  }), [active]);
@@ -1 +1 @@
1
- {"version":3,"file":"use-resizable.cjs","names":["getRootProps: PropGetter","getGroupProps: PropGetter<\n ResizableGroupProps,\n undefined,\n PanelGroupProps\n >","ref","getItemProps: PropGetter<ResizableItemProps, undefined, PanelProps>","ev: MouseEvent<HTMLDivElement>","getTriggerProps: PropGetter<\n ResizableTriggerProps,\n undefined,\n PanelResizeHandleProps\n >","getIconProps: PropGetter"],"sources":["../../../../src/components/resizable/use-resizable.ts"],"sourcesContent":["\"use client\"\n\nimport type { MouseEvent, MouseEventHandler, RefObject } from \"react\"\nimport type {\n ImperativePanelGroupHandle,\n ImperativePanelHandle,\n PanelGroupOnLayout,\n PanelGroupProps,\n PanelGroupStorage,\n PanelProps,\n PanelResizeHandleProps,\n} from \"react-resizable-panels\"\nimport type {\n HTMLProps,\n HTMLRefAttributes,\n Orientation,\n PropGetter,\n} from \"../../core\"\nimport { useCallback, useId, useLayoutEffect, useRef, useState } from \"react\"\nimport {\n getPanelElement,\n getPanelGroupElement,\n getResizeHandleElement,\n} from \"react-resizable-panels\"\nimport {\n assignRef,\n createContext,\n dataAttr,\n fnAll,\n handlerAll,\n mergeRefs,\n} from \"../../utils\"\n\ninterface ResizableContext\n extends Omit<UseResizableReturn, \"getGroupProps\" | \"getRootProps\"> {}\n\nexport const [ResizableContext, useResizableContext] =\n createContext<ResizableContext>({\n name: \"ResizableContext\",\n })\n\nexport interface ResizableStorage extends PanelGroupStorage {}\nexport interface ResizableGroupControl extends ImperativePanelGroupHandle {}\nexport interface ResizableItemControl extends ImperativePanelHandle {}\n\ninterface ResizableGroupProps\n extends Omit<Partial<PanelGroupProps>, \"tagName\"> {\n /**\n * Ref of the resizable group callback.\n */\n ref?: RefObject<ResizableGroupControl>\n /**\n * The HTML element to render.\n */\n as?: keyof HTMLElementTagNameMap\n}\ninterface ResizableItemProps extends Omit<PanelProps, \"tagName\"> {\n /**\n * Ref of the resizable item callback.\n */\n ref?: RefObject<ResizableItemControl>\n /**\n * The HTML element to render.\n */\n as?: keyof HTMLElementTagNameMap\n}\ninterface ResizableTriggerProps\n extends Omit<PanelResizeHandleProps, \"tagName\">,\n HTMLRefAttributes {\n /**\n * The HTML element to render.\n */\n as?: keyof HTMLElementTagNameMap\n}\n\nexport interface UseResizableProps extends HTMLProps {\n /**\n * Ref of the resizable item callback.\n */\n controlRef?: RefObject<null | ResizableGroupControl>\n /**\n * If `true`, the resizable trigger will be disabled.\n */\n disabled?: boolean\n /**\n * Unit to resize by keyboard operation.\n *\n * @default 10\n */\n keyboardStep?: number\n /**\n * The orientation of the resizable.\n *\n * @default \"horizontal\"\n */\n orientation?: Orientation\n /**\n * A callback that gets and sets a value in custom storage.\n */\n storage?: PanelGroupStorage\n /**\n * Key of value saved in storage.\n * By default, it is saved to `local storage`.\n */\n storageKey?: string\n /**\n * Props for resizable component.\n */\n groupProps?: ResizableGroupProps\n /**\n * The callback invoked when resizable items are resized.\n */\n onLayout?: PanelGroupOnLayout\n}\n\nexport const useResizable = ({\n id,\n ref,\n\n controlRef: controlRefProp,\n disabled,\n keyboardStep,\n orientation = \"horizontal\",\n storage,\n storageKey,\n groupProps = {},\n onLayout,\n ...rest\n}: UseResizableProps = {}) => {\n const controlRef = useRef<ResizableGroupControl>(null)\n const uuid = useId()\n\n id ??= uuid\n\n const getRootProps: PropGetter = useCallback(\n (props = {}) => ({ ...rest, ...props }),\n [rest],\n )\n\n const getGroupProps: PropGetter<\n ResizableGroupProps,\n undefined,\n PanelGroupProps\n > = useCallback(\n ({ ref, ...props } = {}) => ({\n id,\n autoSaveId: storageKey,\n direction: orientation,\n keyboardResizeBy: keyboardStep,\n storage,\n ...groupProps,\n ...props,\n ref: mergeRefs(ref, controlRefProp, controlRef),\n tagName: props.as ?? groupProps.as,\n onLayout: fnAll(props.onLayout, groupProps.onLayout, onLayout),\n }),\n [\n id,\n orientation,\n groupProps,\n controlRefProp,\n storageKey,\n keyboardStep,\n onLayout,\n storage,\n ],\n )\n\n useLayoutEffect(() => {\n const el = getPanelGroupElement(id) as HTMLDivElement | null\n\n assignRef(ref, el)\n }, [ref, id])\n\n return {\n controlRef,\n disabled,\n orientation,\n getGroupProps,\n getRootProps,\n }\n}\n\nexport type UseResizableReturn = ReturnType<typeof useResizable>\n\nexport interface UseResizableItemProps\n extends HTMLProps,\n Pick<ResizableItemProps, \"as\"> {\n /**\n * The collapsed size of the resizable item.\n */\n collapsedSize?: number\n /**\n * If `true`, the resizable item can be collapsed.\n *\n * @default false\n */\n collapsible?: boolean\n /**\n * Ref of the resizable item callback.\n */\n controlRef?: RefObject<null | ResizableItemControl>\n /**\n * The initial size of the resizable item.\n */\n defaultSize?: number\n /**\n * The maximum allowed value of the resizable item.\n */\n maxSize?: number\n /**\n * The minimum allowed value of the resizable item.\n */\n minSize?: number\n /**\n * Order for the resizable item.\n */\n order?: number\n /**\n * The callback invoked when resizable item are collapsed.\n */\n onCollapse?: () => void\n /**\n * The callback invoked when resizable item are expanded.\n */\n onExpand?: () => void\n /**\n * The callback invoked when resizable item are resized.\n */\n onResize?: (size: number, prevSize: number | undefined) => void\n}\n\nexport const useResizableItem = ({\n id,\n ref,\n as,\n controlRef,\n onCollapse,\n onExpand,\n onResize,\n ...rest\n}: UseResizableItemProps) => {\n const uuid = useId()\n\n id ??= uuid\n\n const getItemProps: PropGetter<ResizableItemProps, undefined, PanelProps> =\n useCallback(\n ({ ref, ...props } = {}) => ({\n id,\n ref: mergeRefs(ref, controlRef),\n tagName: props.as ?? as,\n ...props,\n ...rest,\n onCollapse: fnAll(props.onCollapse, onCollapse),\n onExpand: fnAll(props.onExpand, onExpand),\n onResize: fnAll(props.onResize, onResize),\n }),\n [as, controlRef, id, onCollapse, onExpand, onResize, rest],\n )\n\n useLayoutEffect(() => {\n const el = getPanelElement(id) as HTMLDivElement | null\n\n assignRef(ref, el)\n }, [ref, id])\n\n return {\n getItemProps,\n }\n}\n\nexport type UseResizableItemReturn = ReturnType<typeof useResizableItem>\n\nexport interface UseResizableTriggerProps\n extends HTMLProps,\n Pick<ResizableTriggerProps, \"as\"> {\n /**\n * If `true`, the resizable trigger will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The callback invoked when resizable trigger are dragged.\n */\n onDragging?: (dragging: boolean) => void\n}\n\nexport const useResizableTrigger = ({\n id,\n ref,\n as,\n disabled,\n onDragging,\n ...rest\n}: UseResizableTriggerProps) => {\n const uuid = useId()\n const {\n controlRef,\n disabled: groupDisabled,\n orientation,\n } = useResizableContext()\n const [active, setActive] = useState<boolean>(false)\n const trulyDisabled = disabled || groupDisabled\n\n id ??= uuid\n\n const onDoubleClick = useCallback(\n (ev: MouseEvent<HTMLDivElement>) => {\n ev.preventDefault()\n\n const layout = controlRef.current?.getLayout()\n\n if (!layout) return\n\n const count = layout.length\n const size = 100 / count\n const nextLayout = layout.map(() => size)\n\n controlRef.current?.setLayout(nextLayout)\n },\n [controlRef],\n )\n\n const getTriggerProps: PropGetter<\n ResizableTriggerProps,\n undefined,\n PanelResizeHandleProps\n > = useCallback(\n (props = {}) =>\n ({\n id,\n \"aria-orientation\": orientation,\n \"data-active\": dataAttr(active),\n disabled: trulyDisabled,\n tagName: props.as ?? as,\n ...rest,\n ...props,\n onDoubleClick: handlerAll(\n props.onDoubleClick as MouseEventHandler<HTMLDivElement> | undefined,\n rest.onDoubleClick,\n onDoubleClick,\n ),\n onDragging: fnAll(props.onDragging, onDragging, setActive),\n }) as unknown as PanelResizeHandleProps,\n [\n id,\n as,\n orientation,\n trulyDisabled,\n rest,\n onDoubleClick,\n onDragging,\n active,\n ],\n )\n\n const getIconProps: PropGetter = useCallback(\n (props = {}) => ({\n \"data-active\": dataAttr(active),\n \"data-icon\": \"\",\n ...props,\n }),\n [active],\n )\n\n useLayoutEffect(() => {\n const el = getResizeHandleElement(id) as HTMLDivElement | null\n\n assignRef(ref, el)\n }, [ref, id])\n\n return {\n getIconProps,\n getTriggerProps,\n }\n}\n\nexport type UseResizableTriggerReturn = ReturnType<typeof useResizableTrigger>\n"],"mappings":"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"}
1
+ {"version":3,"file":"use-resizable.cjs","names":["getRootProps: PropGetter","getGroupProps: PropGetter<\n ResizableGroupProps,\n undefined,\n PanelGroupProps\n >","ref","getItemProps: PropGetter<ResizableItemProps, undefined, PanelProps>","ev: MouseEvent<HTMLDivElement>","getTriggerProps: PropGetter<\n ResizableTriggerProps,\n undefined,\n PanelResizeHandleProps\n >","getIconProps: PropGetter"],"sources":["../../../../src/components/resizable/use-resizable.ts"],"sourcesContent":["\"use client\"\n\nimport type { MouseEvent, MouseEventHandler, RefObject } from \"react\"\nimport type {\n ImperativePanelGroupHandle,\n ImperativePanelHandle,\n PanelGroupOnLayout,\n PanelGroupProps,\n PanelGroupStorage,\n PanelProps,\n PanelResizeHandleProps,\n} from \"react-resizable-panels\"\nimport type {\n HTMLProps,\n HTMLRefAttributes,\n Orientation,\n PropGetter,\n} from \"../../core\"\nimport { useCallback, useId, useLayoutEffect, useRef, useState } from \"react\"\nimport {\n getPanelElement,\n getPanelGroupElement,\n getResizeHandleElement,\n} from \"react-resizable-panels\"\nimport {\n assignRef,\n createContext,\n dataAttr,\n fnAll,\n handlerAll,\n mergeRefs,\n} from \"../../utils\"\n\ninterface ResizableContext\n extends Omit<UseResizableReturn, \"getGroupProps\" | \"getRootProps\"> {}\n\nexport const [ResizableContext, useResizableContext] =\n createContext<ResizableContext>({\n name: \"ResizableContext\",\n })\n\nexport interface ResizableStorage extends PanelGroupStorage {}\nexport interface ResizableGroupControl extends ImperativePanelGroupHandle {}\nexport interface ResizableItemControl extends ImperativePanelHandle {}\n\ninterface ResizableGroupProps\n extends Omit<Partial<PanelGroupProps>, \"tagName\"> {\n /**\n * Ref of the resizable group callback.\n */\n ref?: RefObject<ResizableGroupControl>\n /**\n * The HTML element to render.\n */\n as?: keyof HTMLElementTagNameMap\n}\ninterface ResizableItemProps extends Omit<PanelProps, \"tagName\"> {\n /**\n * Ref of the resizable item callback.\n */\n ref?: RefObject<ResizableItemControl>\n /**\n * The HTML element to render.\n */\n as?: keyof HTMLElementTagNameMap\n}\ninterface ResizableTriggerProps\n extends Omit<PanelResizeHandleProps, \"tagName\">,\n HTMLRefAttributes {\n /**\n * The HTML element to render.\n */\n as?: keyof HTMLElementTagNameMap\n}\n\nexport interface UseResizableProps extends HTMLProps {\n /**\n * Ref of the resizable item callback.\n */\n controlRef?: RefObject<null | ResizableGroupControl>\n /**\n * If `true`, the resizable trigger will be disabled.\n */\n disabled?: boolean\n /**\n * Unit to resize by keyboard operation.\n *\n * @default 10\n */\n keyboardStep?: number\n /**\n * The orientation of the resizable.\n *\n * @default \"horizontal\"\n */\n orientation?: Orientation\n /**\n * A callback that gets and sets a value in custom storage.\n */\n storage?: PanelGroupStorage\n /**\n * Key of value saved in storage.\n * By default, it is saved to `local storage`.\n */\n storageKey?: string\n /**\n * Props for resizable component.\n */\n groupProps?: ResizableGroupProps\n /**\n * The callback invoked when resizable items are resized.\n */\n onLayout?: PanelGroupOnLayout\n}\n\nexport const useResizable = ({\n id,\n ref,\n\n controlRef: controlRefProp,\n disabled,\n keyboardStep,\n orientation = \"horizontal\",\n storage,\n storageKey,\n groupProps = {},\n onLayout,\n ...rest\n}: UseResizableProps = {}) => {\n const controlRef = useRef<ResizableGroupControl>(null)\n const uuid = useId()\n\n id ??= uuid\n\n const getRootProps: PropGetter = useCallback(\n (props = {}) => ({ ...rest, ...props }),\n [rest],\n )\n\n const getGroupProps: PropGetter<\n ResizableGroupProps,\n undefined,\n PanelGroupProps\n > = useCallback(\n ({ ref, ...props } = {}) => ({\n id,\n autoSaveId: storageKey,\n direction: orientation,\n keyboardResizeBy: keyboardStep,\n storage,\n ...groupProps,\n ...props,\n ref: mergeRefs(ref, controlRefProp, controlRef),\n tagName: props.as ?? groupProps.as,\n onLayout: fnAll(props.onLayout, groupProps.onLayout, onLayout),\n }),\n [\n id,\n orientation,\n groupProps,\n controlRefProp,\n storageKey,\n keyboardStep,\n onLayout,\n storage,\n ],\n )\n\n useLayoutEffect(() => {\n const el = getPanelGroupElement(id) as HTMLDivElement | null\n\n assignRef(ref, el)\n }, [ref, id])\n\n return {\n controlRef,\n disabled,\n orientation,\n getGroupProps,\n getRootProps,\n }\n}\n\nexport type UseResizableReturn = ReturnType<typeof useResizable>\n\nexport interface UseResizableItemProps\n extends HTMLProps,\n Pick<ResizableItemProps, \"as\"> {\n /**\n * The collapsed size of the resizable item.\n */\n collapsedSize?: number\n /**\n * If `true`, the resizable item can be collapsed.\n *\n * @default false\n */\n collapsible?: boolean\n /**\n * Ref of the resizable item callback.\n */\n controlRef?: RefObject<null | ResizableItemControl>\n /**\n * The initial size of the resizable item.\n */\n defaultSize?: number\n /**\n * The maximum allowed value of the resizable item.\n */\n maxSize?: number\n /**\n * The minimum allowed value of the resizable item.\n */\n minSize?: number\n /**\n * Order for the resizable item.\n */\n order?: number\n /**\n * The callback invoked when resizable item are collapsed.\n */\n onCollapse?: () => void\n /**\n * The callback invoked when resizable item are expanded.\n */\n onExpand?: () => void\n /**\n * The callback invoked when resizable item are resized.\n */\n onResize?: (size: number, prevSize: number | undefined) => void\n}\n\nexport const useResizableItem = ({\n id,\n ref,\n as,\n controlRef,\n onCollapse,\n onExpand,\n onResize,\n ...rest\n}: UseResizableItemProps) => {\n const uuid = useId()\n\n id ??= uuid\n\n const getItemProps: PropGetter<ResizableItemProps, undefined, PanelProps> =\n useCallback(\n ({ ref, ...props } = {}) => ({\n id,\n ref: mergeRefs(ref, controlRef),\n tagName: props.as ?? as,\n ...props,\n ...rest,\n onCollapse: fnAll(props.onCollapse, onCollapse),\n onExpand: fnAll(props.onExpand, onExpand),\n onResize: fnAll(props.onResize, onResize),\n }),\n [as, controlRef, id, onCollapse, onExpand, onResize, rest],\n )\n\n useLayoutEffect(() => {\n const el = getPanelElement(id) as HTMLDivElement | null\n\n assignRef(ref, el)\n }, [ref, id])\n\n return {\n getItemProps,\n }\n}\n\nexport type UseResizableItemReturn = ReturnType<typeof useResizableItem>\n\nexport interface UseResizableTriggerProps\n extends HTMLProps,\n Pick<ResizableTriggerProps, \"as\"> {\n /**\n * If `true`, the resizable trigger will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The callback invoked when resizable trigger are dragged.\n */\n onDragging?: (dragging: boolean) => void\n}\n\nexport const useResizableTrigger = ({\n id,\n ref,\n as,\n disabled,\n onDragging,\n ...rest\n}: UseResizableTriggerProps) => {\n const uuid = useId()\n const {\n controlRef,\n disabled: groupDisabled,\n orientation,\n } = useResizableContext()\n const [active, setActive] = useState<boolean>(false)\n const trulyDisabled = disabled || groupDisabled\n\n id ??= uuid\n\n const onDoubleClick = useCallback(\n (ev: MouseEvent<HTMLDivElement>) => {\n ev.preventDefault()\n\n const layout = controlRef.current?.getLayout()\n\n if (!layout) return\n\n const count = layout.length\n const size = 100 / count\n const nextLayout = layout.map(() => size)\n\n controlRef.current?.setLayout(nextLayout)\n },\n [controlRef],\n )\n\n const getTriggerProps: PropGetter<\n ResizableTriggerProps,\n undefined,\n PanelResizeHandleProps\n > = useCallback(\n (props = {}) =>\n ({\n id,\n \"aria-orientation\": orientation,\n \"data-active\": dataAttr(active),\n disabled: trulyDisabled,\n tagName: props.as ?? as,\n ...rest,\n ...props,\n onDoubleClick: handlerAll(\n props.onDoubleClick as MouseEventHandler<HTMLDivElement> | undefined,\n rest.onDoubleClick,\n onDoubleClick,\n ),\n onDragging: fnAll(props.onDragging, onDragging, setActive),\n }) as unknown as PanelResizeHandleProps,\n [\n id,\n as,\n orientation,\n trulyDisabled,\n rest,\n onDoubleClick,\n onDragging,\n active,\n ],\n )\n\n const getIconProps: PropGetter = useCallback(\n (props = {}) => ({\n \"data-active\": dataAttr(active),\n \"data-icon\": \"\",\n ...props,\n }),\n [active],\n )\n\n useLayoutEffect(() => {\n const el = getResizeHandleElement(id) as HTMLDivElement | null\n\n assignRef(ref, el)\n }, [ref, id])\n\n return {\n getIconProps,\n getTriggerProps,\n }\n}\n\nexport type UseResizableTriggerReturn = ReturnType<typeof useResizableTrigger>\n"],"mappings":";;;;;;;;;;;;AAoCA,MAAa,CAAC,kBAAkB,oBAAoB,GAClD,oCAAgC,EAC9B,MAAM,mBACP,EAAC;AA4EJ,MAAa,eAAe,CAAC,EAC3B,IACA,KAEA,YAAY,gBACZ,UACA,cACA,cAAc,cACd,SACA,YACA,aAAa,CAAE,GACf,SACA,GAAG,MACe,GAAG,CAAE,MAAK;CAC5B,MAAM,aAAa,kBAA8B,KAAK;CACtD,MAAM,OAAO,kBAAO;AAEpB,QAAO;CAEP,MAAMA,eAA2B,uBAC/B,CAAC,QAAQ,CAAE,OAAM;EAAE,GAAG;EAAM,GAAG;CAAO,IACtC,CAAC,IAAK,EACP;CAED,MAAMC,gBAIF,uBACF,CAAC,EAAE,WAAK,GAAG,OAAO,GAAG,CAAE,OAAM;EAC3B;EACA,YAAY;EACZ,WAAW;EACX,kBAAkB;EAClB;EACA,GAAG;EACH,GAAG;EACH,KAAK,4BAAUC,OAAK,gBAAgB,WAAW;EAC/C,SAAS,MAAM,MAAM,WAAW;EAChC,UAAU,oCAAM,MAAM,UAAU,WAAW,UAAU,SAAS;CAC/D,IACD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EACF;AAED,4BAAgB,MAAM;EACpB,MAAM,KAAK,iDAAqB,GAAG;AAEnC,8BAAU,KAAK,GAAG;CACnB,GAAE,CAAC,KAAK,EAAG,EAAC;AAEb,QAAO;EACL;EACA;EACA;EACA;EACA;CACD;AACF;AAmDD,MAAa,mBAAmB,CAAC,EAC/B,IACA,KACA,IACA,YACA,YACA,UACA,SACA,GAAG,MACmB,KAAK;CAC3B,MAAM,OAAO,kBAAO;AAEpB,QAAO;CAEP,MAAMC,eACJ,uBACE,CAAC,EAAE,WAAK,GAAG,OAAO,GAAG,CAAE,OAAM;EAC3B;EACA,KAAK,4BAAUD,OAAK,WAAW;EAC/B,SAAS,MAAM,MAAM;EACrB,GAAG;EACH,GAAG;EACH,YAAY,oCAAM,MAAM,YAAY,WAAW;EAC/C,UAAU,oCAAM,MAAM,UAAU,SAAS;EACzC,UAAU,oCAAM,MAAM,UAAU,SAAS;CAC1C,IACD;EAAC;EAAI;EAAY;EAAI;EAAY;EAAU;EAAU;CAAK,EAC3D;AAEH,4BAAgB,MAAM;EACpB,MAAM,KAAK,4CAAgB,GAAG;AAE9B,8BAAU,KAAK,GAAG;CACnB,GAAE,CAAC,KAAK,EAAG,EAAC;AAEb,QAAO,EACL,aACD;AACF;AAmBD,MAAa,sBAAsB,CAAC,EAClC,IACA,KACA,IACA,UACA,WACA,GAAG,MACsB,KAAK;CAC9B,MAAM,OAAO,kBAAO;CACpB,MAAM,EACJ,YACA,UAAU,eACV,aACD,GAAG,qBAAqB;CACzB,MAAM,CAAC,QAAQ,UAAU,GAAG,oBAAkB,MAAM;CACpD,MAAM,gBAAgB,YAAY;AAElC,QAAO;CAEP,MAAM,gBAAgB,uBACpB,CAACE,OAAmC;AAClC,KAAG,gBAAgB;EAEnB,MAAM,SAAS,WAAW,SAAS,WAAW;AAE9C,OAAK,OAAQ;EAEb,MAAM,QAAQ,OAAO;EACrB,MAAM,OAAO,MAAM;EACnB,MAAM,aAAa,OAAO,IAAI,MAAM,KAAK;AAEzC,aAAW,SAAS,UAAU,WAAW;CAC1C,GACD,CAAC,UAAW,EACb;CAED,MAAMC,kBAIF,uBACF,CAAC,QAAQ,CAAE,OACR;EACC;EACA,oBAAoB;EACpB,eAAe,kCAAS,OAAO;EAC/B,UAAU;EACV,SAAS,MAAM,MAAM;EACrB,GAAG;EACH,GAAG;EACH,eAAe,yCACb,MAAM,eACN,KAAK,eACL,cACD;EACD,YAAY,oCAAM,MAAM,YAAY,YAAY,UAAU;CAC3D,IACH;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EACF;CAED,MAAMC,eAA2B,uBAC/B,CAAC,QAAQ,CAAE,OAAM;EACf,eAAe,kCAAS,OAAO;EAC/B,aAAa;EACb,GAAG;CACJ,IACD,CAAC,MAAO,EACT;AAED,4BAAgB,MAAM;EACpB,MAAM,KAAK,mDAAuB,GAAG;AAErC,8BAAU,KAAK,GAAG;CACnB,GAAE,CAAC,KAAK,EAAG,EAAC;AAEb,QAAO;EACL;EACA;CACD;AACF"}
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
5
- const require_utils_index = require('../../utils/index.cjs');
5
+ const require_utils_common_function = require('../../utils/common/function.cjs');
6
6
  const require_core_components_create_component = require('../../core/components/create-component.cjs');
7
7
  const require_components_motion_factory = require('../motion/factory.cjs');
8
8
  const require_components_ripple_ripple_style = require('./ripple.style.cjs');
@@ -46,7 +46,7 @@ const Ripple = withContext(({ style, color = "currentColor", disabled, ripples,
46
46
  },
47
47
  transition: { duration },
48
48
  ...rest,
49
- onAnimationComplete: (0, require_utils_index.utils_exports.handlerAll)(onAnimationComplete, () => onClear(key))
49
+ onAnimationComplete: require_utils_common_function.handlerAll(onAnimationComplete, () => onClear(key))
50
50
  })
51
51
  }, key);
52
52
  }) });
@@ -1 +1 @@
1
- {"version":3,"file":"ripple.cjs","names":["value: number","min: number","max: number","rippleStyle","Ripple: FC<RippleProps>","AnimatePresence","motion"],"sources":["../../../../src/components/ripple/ripple.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, Key } from \"react\"\nimport type { ThemeProps } from \"../../core\"\nimport type { HTMLMotionProps } from \"../motion\"\nimport type { RippleStyle } from \"./ripple.style\"\nimport type { RippleOptions } from \"./use-ripple\"\nimport { AnimatePresence } from \"motion/react\"\nimport { createComponent } from \"../../core\"\nimport { handlerAll } from \"../../utils\"\nimport { motion } from \"../motion\"\nimport { rippleStyle } from \"./ripple.style\"\n\nconst clamp = (value: number, min: number, max: number) =>\n Math.min(Math.max(value, min), max)\n\nexport interface RippleProps\n extends HTMLMotionProps<\"span\">,\n ThemeProps<RippleStyle> {\n /**\n * The ripples to use.\n */\n ripples: RippleOptions[]\n /**\n * The callback invoked when a ripple is cleared.\n */\n onClear: (key: Key) => void\n /**\n * If `true`, disable ripple effects when pressing a element.\n *\n * @default false\n */\n disabled?: boolean\n}\n\nexport const {\n PropsContext: RipplePropsContext,\n usePropsContext: useRipplePropsContext,\n withContext,\n} = createComponent<RippleProps, RippleStyle>(\"ripple\", rippleStyle)\n\n/**\n * `Ripple` is a component that adds a ripple effect to elements, allowing users to recognize when they have clicked.\n *\n * @see https://yamada-ui.com/components/ripple\n */\nexport const Ripple: FC<RippleProps> = withContext(\n ({\n style,\n color = \"currentColor\",\n disabled,\n ripples,\n onAnimationComplete,\n onClear,\n ...rest\n }) => {\n if (disabled) return null\n\n return (\n <>\n {ripples.map(({ key, size, x, y }) => {\n const duration = clamp(0.01 * size, 0.2, size > 100 ? 0.75 : 0.5)\n\n return (\n <AnimatePresence key={key} mode=\"popLayout\">\n <motion.span\n style={{\n height: `${size}px`,\n left: x,\n pointerEvents: \"none\",\n position: \"absolute\",\n top: y,\n transformOrigin: \"center\",\n width: `${size}px`,\n ...style,\n }}\n animate={{ opacity: 0, transform: \"scale(2)\" }}\n bgColor={color}\n exit={{ opacity: 0 }}\n initial={{ opacity: 0.35, transform: \"scale(0)\" }}\n transition={{ duration }}\n {...rest}\n onAnimationComplete={handlerAll(onAnimationComplete, () =>\n onClear(key),\n )}\n />\n </AnimatePresence>\n )\n })}\n </>\n )\n },\n)()\n"],"mappings":";;;;;;;;;;;;AAaA,MAAM,QAAQ,CAACA,OAAeC,KAAaC,QACzC,KAAK,IAAI,KAAK,IAAI,OAAO,IAAI,EAAE,IAAI;AAqBrC,MAAa,EACX,cAAc,oBACd,iBAAiB,uBACjB,aACD,GAAG,yDAA0C,UAAUC,mDAAY;;;;;;AAOpE,MAAaC,SAA0B,YACrC,CAAC,EACC,OACA,QAAQ,gBACR,UACA,SACA,qBACA,QACA,GAAG,MACJ,KAAK;AACJ,KAAI,SAAU,QAAO;AAErB,wBACE,mEACG,QAAQ,IAAI,CAAC,EAAE,KAAK,MAAM,GAAG,GAAG,KAAK;EACpC,MAAM,WAAW,MAAM,MAAO,MAAM,IAAK,OAAO,MAAM,MAAO,GAAI;AAEjE,yBACE,2BAACC;GAA0B,MAAK;6BAC9B,2BAACC,yCAAO;IACN,OAAO;KACL,WAAW,KAAK;KAChB,MAAM;KACN,eAAe;KACf,UAAU;KACV,KAAK;KACL,iBAAiB;KACjB,UAAU,KAAK;KACf,GAAG;IACJ;IACD,SAAS;KAAE,SAAS;KAAG,WAAW;IAAY;IAC9C,SAAS;IACT,MAAM,EAAE,SAAS,EAAG;IACpB,SAAS;KAAE,SAAS;KAAM,WAAW;IAAY;IACjD,YAAY,EAAE,SAAU;IACxB,GAAI;IACJ,qBAAqB,kDAAW,qBAAqB,MACnD,QAAQ,IAAI,CACb;KACD;KArBkB,IAsBJ;CAErB,EAAC,GACD;AAEN,EACF,EAAE"}
1
+ {"version":3,"file":"ripple.cjs","names":["value: number","min: number","max: number","rippleStyle","Ripple: FC<RippleProps>","AnimatePresence","motion"],"sources":["../../../../src/components/ripple/ripple.tsx"],"sourcesContent":["\"use client\"\n\nimport type { FC, Key } from \"react\"\nimport type { ThemeProps } from \"../../core\"\nimport type { HTMLMotionProps } from \"../motion\"\nimport type { RippleStyle } from \"./ripple.style\"\nimport type { RippleOptions } from \"./use-ripple\"\nimport { AnimatePresence } from \"motion/react\"\nimport { createComponent } from \"../../core\"\nimport { handlerAll } from \"../../utils\"\nimport { motion } from \"../motion\"\nimport { rippleStyle } from \"./ripple.style\"\n\nconst clamp = (value: number, min: number, max: number) =>\n Math.min(Math.max(value, min), max)\n\nexport interface RippleProps\n extends HTMLMotionProps<\"span\">,\n ThemeProps<RippleStyle> {\n /**\n * The ripples to use.\n */\n ripples: RippleOptions[]\n /**\n * The callback invoked when a ripple is cleared.\n */\n onClear: (key: Key) => void\n /**\n * If `true`, disable ripple effects when pressing a element.\n *\n * @default false\n */\n disabled?: boolean\n}\n\nexport const {\n PropsContext: RipplePropsContext,\n usePropsContext: useRipplePropsContext,\n withContext,\n} = createComponent<RippleProps, RippleStyle>(\"ripple\", rippleStyle)\n\n/**\n * `Ripple` is a component that adds a ripple effect to elements, allowing users to recognize when they have clicked.\n *\n * @see https://yamada-ui.com/components/ripple\n */\nexport const Ripple: FC<RippleProps> = withContext(\n ({\n style,\n color = \"currentColor\",\n disabled,\n ripples,\n onAnimationComplete,\n onClear,\n ...rest\n }) => {\n if (disabled) return null\n\n return (\n <>\n {ripples.map(({ key, size, x, y }) => {\n const duration = clamp(0.01 * size, 0.2, size > 100 ? 0.75 : 0.5)\n\n return (\n <AnimatePresence key={key} mode=\"popLayout\">\n <motion.span\n style={{\n height: `${size}px`,\n left: x,\n pointerEvents: \"none\",\n position: \"absolute\",\n top: y,\n transformOrigin: \"center\",\n width: `${size}px`,\n ...style,\n }}\n animate={{ opacity: 0, transform: \"scale(2)\" }}\n bgColor={color}\n exit={{ opacity: 0 }}\n initial={{ opacity: 0.35, transform: \"scale(0)\" }}\n transition={{ duration }}\n {...rest}\n onAnimationComplete={handlerAll(onAnimationComplete, () =>\n onClear(key),\n )}\n />\n </AnimatePresence>\n )\n })}\n </>\n )\n },\n)()\n"],"mappings":";;;;;;;;;;;;AAaA,MAAM,QAAQ,CAACA,OAAeC,KAAaC,QACzC,KAAK,IAAI,KAAK,IAAI,OAAO,IAAI,EAAE,IAAI;AAqBrC,MAAa,EACX,cAAc,oBACd,iBAAiB,uBACjB,aACD,GAAG,yDAA0C,UAAUC,mDAAY;;;;;;AAOpE,MAAaC,SAA0B,YACrC,CAAC,EACC,OACA,QAAQ,gBACR,UACA,SACA,qBACA,QACA,GAAG,MACJ,KAAK;AACJ,KAAI,SAAU,QAAO;AAErB,wBACE,mEACG,QAAQ,IAAI,CAAC,EAAE,KAAK,MAAM,GAAG,GAAG,KAAK;EACpC,MAAM,WAAW,MAAM,MAAO,MAAM,IAAK,OAAO,MAAM,MAAO,GAAI;AAEjE,yBACE,2BAACC;GAA0B,MAAK;6BAC9B,2BAACC,yCAAO;IACN,OAAO;KACL,WAAW,KAAK;KAChB,MAAM;KACN,eAAe;KACf,UAAU;KACV,KAAK;KACL,iBAAiB;KACjB,UAAU,KAAK;KACf,GAAG;IACJ;IACD,SAAS;KAAE,SAAS;KAAG,WAAW;IAAY;IAC9C,SAAS;IACT,MAAM,EAAE,SAAS,EAAG;IACpB,SAAS;KAAE,SAAS;KAAM,WAAW;IAAY;IACjD,YAAY,EAAE,SAAU;IACxB,GAAI;IACJ,qBAAqB,yCAAW,qBAAqB,MACnD,QAAQ,IAAI,CACb;KACD;KArBkB,IAsBJ;CAErB,EAAC,GACD;AAEN,EACF,EAAE"}
@@ -2,7 +2,8 @@
2
2
 
3
3
 
4
4
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
5
- const require_utils_index = require('../../utils/index.cjs');
5
+ const require_utils_common_function = require('../../utils/common/function.cjs');
6
+ const require_utils_common_dom = require('../../utils/common/dom.cjs');
6
7
  const react = require_rolldown_runtime.__toESM(require("react"));
7
8
 
8
9
  //#region src/components/ripple/use-ripple.ts
@@ -14,7 +15,7 @@ const useRipple = ({ disabled,...rest } = {}) => {
14
15
  const size = Math.max(trigger.clientWidth, trigger.clientHeight);
15
16
  const rect = trigger.getBoundingClientRect();
16
17
  setRipples((prev) => [...prev, {
17
- key: (0, require_utils_index.utils_exports.uuid)(),
18
+ key: require_utils_common_dom.uuid(),
18
19
  size,
19
20
  x: ev.clientX - rect.x - size / 2,
20
21
  y: ev.clientY - rect.y - size / 2
@@ -26,7 +27,7 @@ const useRipple = ({ disabled,...rest } = {}) => {
26
27
  return {
27
28
  ripples,
28
29
  onClear,
29
- onClick: (0, require_utils_index.utils_exports.handlerAll)(onClick, rest.onClick)
30
+ onClick: require_utils_common_function.handlerAll(onClick, rest.onClick)
30
31
  };
31
32
  };
32
33
 
@@ -1 +1 @@
1
- {"version":3,"file":"use-ripple.cjs","names":["onClick: MouseEventHandler<T>","key: Key"],"sources":["../../../../src/components/ripple/use-ripple.ts"],"sourcesContent":["\"use client\"\n\nimport type { Key, MouseEventHandler } from \"react\"\nimport { useCallback, useState } from \"react\"\nimport { handlerAll, uuid } from \"../../utils\"\n\nexport interface RippleOptions {\n key: Key\n size: number\n x: number\n y: number\n}\n\nexport interface UseRippleProps<T = HTMLElement> {\n disabled?: boolean\n onClick?: MouseEventHandler<T>\n}\n\nexport const useRipple = <T = HTMLElement>({\n disabled,\n ...rest\n}: UseRippleProps<T> = {}) => {\n const [ripples, setRipples] = useState<RippleOptions[]>([])\n\n const onClick: MouseEventHandler<T> = useCallback(\n (ev) => {\n if (disabled) return\n\n const trigger = ev.currentTarget as unknown as Element\n\n const size = Math.max(trigger.clientWidth, trigger.clientHeight)\n const rect = trigger.getBoundingClientRect()\n\n setRipples((prev) => [\n ...prev,\n {\n key: uuid(),\n size,\n x: ev.clientX - rect.x - size / 2,\n y: ev.clientY - rect.y - size / 2,\n },\n ])\n },\n [disabled],\n )\n\n const onClear = useCallback((key: Key) => {\n setRipples((prev) => prev.filter((item) => item.key !== key))\n }, [])\n\n return {\n ripples,\n onClear,\n onClick: handlerAll(onClick, rest.onClick),\n }\n}\n\nexport type UseRippleReturn = ReturnType<typeof useRipple>\n"],"mappings":";;;;;;;;AAkBA,MAAa,YAAY,CAAkB,EACzC,SACA,GAAG,MACe,GAAG,CAAE,MAAK;CAC5B,MAAM,CAAC,SAAS,WAAW,GAAG,oBAA0B,CAAE,EAAC;CAE3D,MAAMA,UAAgC,uBACpC,CAAC,OAAO;AACN,MAAI,SAAU;EAEd,MAAM,UAAU,GAAG;EAEnB,MAAM,OAAO,KAAK,IAAI,QAAQ,aAAa,QAAQ,aAAa;EAChE,MAAM,OAAO,QAAQ,uBAAuB;AAE5C,aAAW,CAAC,SAAS,CACnB,GAAG,MACH;GACE,KAAK,6CAAM;GACX;GACA,GAAG,GAAG,UAAU,KAAK,IAAI,OAAO;GAChC,GAAG,GAAG,UAAU,KAAK,IAAI,OAAO;EACjC,CACF,EAAC;CACH,GACD,CAAC,QAAS,EACX;CAED,MAAM,UAAU,uBAAY,CAACC,QAAa;AACxC,aAAW,CAAC,SAAS,KAAK,OAAO,CAAC,SAAS,KAAK,QAAQ,IAAI,CAAC;CAC9D,GAAE,CAAE,EAAC;AAEN,QAAO;EACL;EACA;EACA,SAAS,kDAAW,SAAS,KAAK,QAAQ;CAC3C;AACF"}
1
+ {"version":3,"file":"use-ripple.cjs","names":["onClick: MouseEventHandler<T>","key: Key"],"sources":["../../../../src/components/ripple/use-ripple.ts"],"sourcesContent":["\"use client\"\n\nimport type { Key, MouseEventHandler } from \"react\"\nimport { useCallback, useState } from \"react\"\nimport { handlerAll, uuid } from \"../../utils\"\n\nexport interface RippleOptions {\n key: Key\n size: number\n x: number\n y: number\n}\n\nexport interface UseRippleProps<T = HTMLElement> {\n disabled?: boolean\n onClick?: MouseEventHandler<T>\n}\n\nexport const useRipple = <T = HTMLElement>({\n disabled,\n ...rest\n}: UseRippleProps<T> = {}) => {\n const [ripples, setRipples] = useState<RippleOptions[]>([])\n\n const onClick: MouseEventHandler<T> = useCallback(\n (ev) => {\n if (disabled) return\n\n const trigger = ev.currentTarget as unknown as Element\n\n const size = Math.max(trigger.clientWidth, trigger.clientHeight)\n const rect = trigger.getBoundingClientRect()\n\n setRipples((prev) => [\n ...prev,\n {\n key: uuid(),\n size,\n x: ev.clientX - rect.x - size / 2,\n y: ev.clientY - rect.y - size / 2,\n },\n ])\n },\n [disabled],\n )\n\n const onClear = useCallback((key: Key) => {\n setRipples((prev) => prev.filter((item) => item.key !== key))\n }, [])\n\n return {\n ripples,\n onClear,\n onClick: handlerAll(onClick, rest.onClick),\n }\n}\n\nexport type UseRippleReturn = ReturnType<typeof useRipple>\n"],"mappings":";;;;;;;;;AAkBA,MAAa,YAAY,CAAkB,EACzC,SACA,GAAG,MACe,GAAG,CAAE,MAAK;CAC5B,MAAM,CAAC,SAAS,WAAW,GAAG,oBAA0B,CAAE,EAAC;CAE3D,MAAMA,UAAgC,uBACpC,CAAC,OAAO;AACN,MAAI,SAAU;EAEd,MAAM,UAAU,GAAG;EAEnB,MAAM,OAAO,KAAK,IAAI,QAAQ,aAAa,QAAQ,aAAa;EAChE,MAAM,OAAO,QAAQ,uBAAuB;AAE5C,aAAW,CAAC,SAAS,CACnB,GAAG,MACH;GACE,KAAK,+BAAM;GACX;GACA,GAAG,GAAG,UAAU,KAAK,IAAI,OAAO;GAChC,GAAG,GAAG,UAAU,KAAK,IAAI,OAAO;EACjC,CACF,EAAC;CACH,GACD,CAAC,QAAS,EACX;CAED,MAAM,UAAU,uBAAY,CAACC,QAAa;AACxC,aAAW,CAAC,SAAS,KAAK,OAAO,CAAC,SAAS,KAAK,QAAQ,IAAI,CAAC;CAC9D,GAAE,CAAE,EAAC;AAEN,QAAO;EACL;EACA;EACA,SAAS,yCAAW,SAAS,KAAK,QAAQ;CAC3C;AACF"}
@@ -2,7 +2,8 @@
2
2
 
3
3
 
4
4
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
5
- const require_utils_index = require('../../utils/index.cjs');
5
+ const require_utils_common_function = require('../../utils/common/function.cjs');
6
+ const require_utils_common_dom = require('../../utils/common/dom.cjs');
6
7
  const require_core_css_use_inject_vars = require('../../core/css/use-inject-vars.cjs');
7
8
  const require_core_components_create_component = require('../../core/components/create-component.cjs');
8
9
  const require_components_motion_factory = require('../motion/factory.cjs');
@@ -53,8 +54,8 @@ const Rotate = withContext(({ defaultValue = "from", delay = 0, disabled, durati
53
54
  ]);
54
55
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_motion_factory.motion.button, {
55
56
  type: "button",
56
- "data-disabled": (0, require_utils_index.utils_exports.dataAttr)(disabled),
57
- "data-readonly": (0, require_utils_index.utils_exports.dataAttr)(readOnly),
57
+ "data-disabled": require_utils_common_dom.dataAttr(disabled),
58
+ "data-readonly": require_utils_common_dom.dataAttr(readOnly),
58
59
  "data-value": value,
59
60
  animate,
60
61
  custom: { rotate },
@@ -63,7 +64,7 @@ const Rotate = withContext(({ defaultValue = "from", delay = 0, disabled, durati
63
64
  opacity,
64
65
  rotate: "0deg"
65
66
  },
66
- onClick: (0, require_utils_index.utils_exports.handlerAll)(onClickProp, onClick),
67
+ onClick: require_utils_common_function.handlerAll(onClickProp, onClick),
67
68
  ...rest,
68
69
  children: value === "from" ? from : to
69
70
  });
@@ -1 +1 @@
1
- {"version":3,"file":"rotate.cjs","names":["rotateStyle","motion"],"sources":["../../../../src/components/rotate/rotate.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { KeyframeIdent, ThemeProps } from \"../../core\"\nimport type { HTMLMotionProps } from \"../motion\"\nimport type { RotateStyle } from \"./rotate.style\"\nimport { useAnimation } from \"motion/react\"\nimport { useCallback } from \"react\"\nimport {\n createComponent,\n useInjectVarsIntoCss,\n useInjectVarsIntoProps,\n} from \"../../core\"\nimport { useControllableState } from \"../../hooks/use-controllable-state\"\nimport { dataAttr, handlerAll } from \"../../utils\"\nimport { motion } from \"../motion\"\nimport { rotateStyle } from \"./rotate.style\"\n\nexport interface RotateProps\n extends Omit<HTMLMotionProps<\"button\">, \"onChange\" | \"rotate\">,\n ThemeProps<RotateStyle> {\n /**\n * Passing React elements to \"from\" is required.\n */\n from: ReactNode\n /**\n * Passing React elements to \"to\" is required.\n */\n to: ReactNode\n /**\n * You can set the initial state.\n *\n * @default 'from'\n */\n defaultValue?: KeyframeIdent\n /**\n * The animation delay.\n *\n * @default 0\n */\n delay?: number\n /**\n * If `true`, the component is disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The animation duration.\n *\n * @default 0.4\n */\n duration?: number\n /**\n * If `true`, the component is readonly.\n *\n * @default false\n */\n readOnly?: boolean\n /**\n * The animation rotation.\n *\n * @default 45\n */\n rotate?: number\n /**\n * Use this when you want to control the animation from outside the component.\n */\n value?: KeyframeIdent\n /**\n * This is a callback function that is called when the animation state changes.\n */\n onChange?: (value: KeyframeIdent) => void\n}\n\nexport const {\n PropsContext: RotatePropsContext,\n usePropsContext: useRotatePropsContext,\n withContext,\n} = createComponent<RotateProps, RotateStyle>(\"rotate\", rotateStyle)\n\n/**\n * `Rotate` is an animation component that alternately rotates two elements as they switch.\n *\n * @see https://yamada-ui.com/components/rotate\n */\nexport const Rotate = withContext<\"button\", RotateProps>(\n ({\n defaultValue = \"from\",\n delay = 0,\n disabled,\n duration = 0.4,\n from,\n readOnly,\n rotate = 45,\n to,\n value: valueProp,\n onChange,\n onClick: onClickProp,\n ...rest\n }) => {\n const opacity = \"var(--opacity)\"\n const animate = useAnimation()\n const [value, setValue] = useControllableState<KeyframeIdent>({\n defaultValue,\n value: valueProp,\n onChange,\n })\n\n const onClick = useCallback(async () => {\n if (readOnly) return\n\n await animate.start({\n opacity: 0,\n rotate: `${rotate}deg`,\n transition: { delay, duration },\n })\n\n setValue((prev) => (prev === \"from\" ? \"to\" : \"from\"))\n\n await animate.start({\n opacity: \"var(--opacity)\",\n rotate: \"0deg\",\n transition: { duration },\n })\n }, [readOnly, animate, rotate, duration, delay, setValue])\n\n return (\n <motion.button\n type=\"button\"\n data-disabled={dataAttr(disabled)}\n data-readonly={dataAttr(readOnly)}\n data-value={value}\n animate={animate}\n custom={{ rotate }}\n disabled={disabled}\n initial={{ opacity, rotate: \"0deg\" }}\n onClick={handlerAll(onClickProp, onClick)}\n {...rest}\n >\n {value === \"from\" ? from : to}\n </motion.button>\n )\n },\n)(undefined, (props) => {\n const css = useInjectVarsIntoCss(props.css, { opacity: \"opacity\" })\n const rest = useInjectVarsIntoProps(props, { opacity: \"opacity\" })\n\n return { ...rest, css, opacity: \"{opacity}\" }\n})\n"],"mappings":";;;;;;;;;;;;;;;AA2EA,MAAa,EACX,cAAc,oBACd,iBAAiB,uBACjB,aACD,GAAG,yDAA0C,UAAUA,mDAAY;;;;;;AAOpE,MAAa,SAAS,YACpB,CAAC,EACC,eAAe,QACf,QAAQ,GACR,UACA,WAAW,IACX,MACA,UACA,SAAS,IACT,IACA,OAAO,WACP,UACA,SAAS,YACT,GAAG,MACJ,KAAK;CACJ,MAAM,UAAU;CAChB,MAAM,UAAU,gCAAc;CAC9B,MAAM,CAAC,OAAO,SAAS,GAAG,gEAAoC;EAC5D;EACA,OAAO;EACP;CACD,EAAC;CAEF,MAAM,UAAU,uBAAY,YAAY;AACtC,MAAI,SAAU;AAEd,QAAM,QAAQ,MAAM;GAClB,SAAS;GACT,WAAW,OAAO;GAClB,YAAY;IAAE;IAAO;GAAU;EAChC,EAAC;AAEF,WAAS,CAAC,SAAU,SAAS,SAAS,OAAO,OAAQ;AAErD,QAAM,QAAQ,MAAM;GAClB,SAAS;GACT,QAAQ;GACR,YAAY,EAAE,SAAU;EACzB,EAAC;CACH,GAAE;EAAC;EAAU;EAAS;EAAQ;EAAU;EAAO;CAAS,EAAC;AAE1D,wBACE,2BAACC,yCAAO;EACN,MAAK;EACL,iBAAe,gDAAS,SAAS;EACjC,iBAAe,gDAAS,SAAS;EACjC,cAAY;EACH;EACT,QAAQ,EAAE,OAAQ;EACR;EACV,SAAS;GAAE;GAAS,QAAQ;EAAQ;EACpC,SAAS,kDAAW,aAAa,QAAQ;EACzC,GAAI;YAEH,UAAU,SAAS,OAAO;GACb;AAEnB,EACF,SAAY,CAAC,UAAU;CACtB,MAAM,MAAM,sDAAqB,MAAM,KAAK,EAAE,SAAS,UAAW,EAAC;CACnE,MAAM,OAAO,wDAAuB,OAAO,EAAE,SAAS,UAAW,EAAC;AAElE,QAAO;EAAE,GAAG;EAAM;EAAK,SAAS;CAAa;AAC9C,EAAC"}
1
+ {"version":3,"file":"rotate.cjs","names":["rotateStyle","motion"],"sources":["../../../../src/components/rotate/rotate.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type { KeyframeIdent, ThemeProps } from \"../../core\"\nimport type { HTMLMotionProps } from \"../motion\"\nimport type { RotateStyle } from \"./rotate.style\"\nimport { useAnimation } from \"motion/react\"\nimport { useCallback } from \"react\"\nimport {\n createComponent,\n useInjectVarsIntoCss,\n useInjectVarsIntoProps,\n} from \"../../core\"\nimport { useControllableState } from \"../../hooks/use-controllable-state\"\nimport { dataAttr, handlerAll } from \"../../utils\"\nimport { motion } from \"../motion\"\nimport { rotateStyle } from \"./rotate.style\"\n\nexport interface RotateProps\n extends Omit<HTMLMotionProps<\"button\">, \"onChange\" | \"rotate\">,\n ThemeProps<RotateStyle> {\n /**\n * Passing React elements to \"from\" is required.\n */\n from: ReactNode\n /**\n * Passing React elements to \"to\" is required.\n */\n to: ReactNode\n /**\n * You can set the initial state.\n *\n * @default 'from'\n */\n defaultValue?: KeyframeIdent\n /**\n * The animation delay.\n *\n * @default 0\n */\n delay?: number\n /**\n * If `true`, the component is disabled.\n *\n * @default false\n */\n disabled?: boolean\n /**\n * The animation duration.\n *\n * @default 0.4\n */\n duration?: number\n /**\n * If `true`, the component is readonly.\n *\n * @default false\n */\n readOnly?: boolean\n /**\n * The animation rotation.\n *\n * @default 45\n */\n rotate?: number\n /**\n * Use this when you want to control the animation from outside the component.\n */\n value?: KeyframeIdent\n /**\n * This is a callback function that is called when the animation state changes.\n */\n onChange?: (value: KeyframeIdent) => void\n}\n\nexport const {\n PropsContext: RotatePropsContext,\n usePropsContext: useRotatePropsContext,\n withContext,\n} = createComponent<RotateProps, RotateStyle>(\"rotate\", rotateStyle)\n\n/**\n * `Rotate` is an animation component that alternately rotates two elements as they switch.\n *\n * @see https://yamada-ui.com/components/rotate\n */\nexport const Rotate = withContext<\"button\", RotateProps>(\n ({\n defaultValue = \"from\",\n delay = 0,\n disabled,\n duration = 0.4,\n from,\n readOnly,\n rotate = 45,\n to,\n value: valueProp,\n onChange,\n onClick: onClickProp,\n ...rest\n }) => {\n const opacity = \"var(--opacity)\"\n const animate = useAnimation()\n const [value, setValue] = useControllableState<KeyframeIdent>({\n defaultValue,\n value: valueProp,\n onChange,\n })\n\n const onClick = useCallback(async () => {\n if (readOnly) return\n\n await animate.start({\n opacity: 0,\n rotate: `${rotate}deg`,\n transition: { delay, duration },\n })\n\n setValue((prev) => (prev === \"from\" ? \"to\" : \"from\"))\n\n await animate.start({\n opacity: \"var(--opacity)\",\n rotate: \"0deg\",\n transition: { duration },\n })\n }, [readOnly, animate, rotate, duration, delay, setValue])\n\n return (\n <motion.button\n type=\"button\"\n data-disabled={dataAttr(disabled)}\n data-readonly={dataAttr(readOnly)}\n data-value={value}\n animate={animate}\n custom={{ rotate }}\n disabled={disabled}\n initial={{ opacity, rotate: \"0deg\" }}\n onClick={handlerAll(onClickProp, onClick)}\n {...rest}\n >\n {value === \"from\" ? from : to}\n </motion.button>\n )\n },\n)(undefined, (props) => {\n const css = useInjectVarsIntoCss(props.css, { opacity: \"opacity\" })\n const rest = useInjectVarsIntoProps(props, { opacity: \"opacity\" })\n\n return { ...rest, css, opacity: \"{opacity}\" }\n})\n"],"mappings":";;;;;;;;;;;;;;;;AA2EA,MAAa,EACX,cAAc,oBACd,iBAAiB,uBACjB,aACD,GAAG,yDAA0C,UAAUA,mDAAY;;;;;;AAOpE,MAAa,SAAS,YACpB,CAAC,EACC,eAAe,QACf,QAAQ,GACR,UACA,WAAW,IACX,MACA,UACA,SAAS,IACT,IACA,OAAO,WACP,UACA,SAAS,YACT,GAAG,MACJ,KAAK;CACJ,MAAM,UAAU;CAChB,MAAM,UAAU,gCAAc;CAC9B,MAAM,CAAC,OAAO,SAAS,GAAG,gEAAoC;EAC5D;EACA,OAAO;EACP;CACD,EAAC;CAEF,MAAM,UAAU,uBAAY,YAAY;AACtC,MAAI,SAAU;AAEd,QAAM,QAAQ,MAAM;GAClB,SAAS;GACT,WAAW,OAAO;GAClB,YAAY;IAAE;IAAO;GAAU;EAChC,EAAC;AAEF,WAAS,CAAC,SAAU,SAAS,SAAS,OAAO,OAAQ;AAErD,QAAM,QAAQ,MAAM;GAClB,SAAS;GACT,QAAQ;GACR,YAAY,EAAE,SAAU;EACzB,EAAC;CACH,GAAE;EAAC;EAAU;EAAS;EAAQ;EAAU;EAAO;CAAS,EAAC;AAE1D,wBACE,2BAACC,yCAAO;EACN,MAAK;EACL,iBAAe,kCAAS,SAAS;EACjC,iBAAe,kCAAS,SAAS;EACjC,cAAY;EACH;EACT,QAAQ,EAAE,OAAQ;EACR;EACV,SAAS;GAAE;GAAS,QAAQ;EAAQ;EACpC,SAAS,yCAAW,aAAa,QAAQ;EACzC,GAAI;YAEH,UAAU,SAAS,OAAO;GACb;AAEnB,EACF,SAAY,CAAC,UAAU;CACtB,MAAM,MAAM,sDAAqB,MAAM,KAAK,EAAE,SAAS,UAAW,EAAC;CACnE,MAAM,OAAO,wDAAuB,OAAO,EAAE,SAAS,UAAW,EAAC;AAElE,QAAO;EAAE,GAAG;EAAM;EAAK,SAAS;CAAa;AAC9C,EAAC"}