@vlrc-fe/components 3.0.3 → 3.0.5

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 (701) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +10 -1
  3. package/bin/registry.mjs +1124 -0
  4. package/bin/vlrc.mjs +102 -7
  5. package/dist/ConfirmModal.cjs +268 -1
  6. package/dist/ConfirmModal.d.ts +5 -21
  7. package/dist/ConfirmModal.d.ts.map +1 -1
  8. package/dist/ConfirmModal.js +120 -111
  9. package/dist/DataTable/DataTable.cjs +203 -1
  10. package/dist/DataTable/DataTable.js +161 -120
  11. package/dist/DataTable/components/DataTableColumnHeader.cjs +214 -1
  12. package/dist/DataTable/components/DataTableColumnHeader.d.ts +3 -3
  13. package/dist/DataTable/components/DataTableColumnHeader.d.ts.map +1 -1
  14. package/dist/DataTable/components/DataTableColumnHeader.js +201 -103
  15. package/dist/DataTable/components/DataTableFacetedFilter.cjs +332 -1
  16. package/dist/DataTable/components/DataTableFacetedFilter.d.ts +3 -3
  17. package/dist/DataTable/components/DataTableFacetedFilter.d.ts.map +1 -1
  18. package/dist/DataTable/components/DataTableFacetedFilter.js +285 -181
  19. package/dist/DataTable/components/DataTablePagination.cjs +200 -1
  20. package/dist/DataTable/components/DataTablePagination.js +188 -91
  21. package/dist/DataTable/components/DataTableRowActions.cjs +172 -1
  22. package/dist/DataTable/components/DataTableRowActions.js +161 -62
  23. package/dist/DataTable/components/DataTableTable.cjs +100 -1
  24. package/dist/DataTable/components/DataTableTable.js +87 -35
  25. package/dist/DataTable/components/DataTableToolbar.cjs +112 -1
  26. package/dist/DataTable/components/DataTableToolbar.js +106 -44
  27. package/dist/DataTable/components/DataTableViewOptions.cjs +113 -1
  28. package/dist/DataTable/components/DataTableViewOptions.js +105 -44
  29. package/dist/DataTable/render/createColumns.cjs +84 -1
  30. package/dist/DataTable/render/createColumns.js +65 -44
  31. package/dist/DataTable/render/defaults.cjs +38 -1
  32. package/dist/DataTable/render/defaults.js +18 -13
  33. package/dist/Dropdown/Dropdown.cjs +255 -1
  34. package/dist/Dropdown/Dropdown.js +138 -108
  35. package/dist/Form/Form.cjs +439 -1
  36. package/dist/Form/Form.js +417 -206
  37. package/dist/Form/FormDatePicker/FormDatePicker.cjs +84 -1
  38. package/dist/Form/FormDatePicker/FormDatePicker.js +68 -65
  39. package/dist/Form/FormDatePicker/MonthPickerPanel.cjs +217 -1
  40. package/dist/Form/FormDatePicker/MonthPickerPanel.js +194 -101
  41. package/dist/Form/FormDatePicker/RangeDatePicker.cjs +144 -1
  42. package/dist/Form/FormDatePicker/RangeDatePicker.js +94 -77
  43. package/dist/Form/FormDatePicker/SingleDatePicker.cjs +191 -1
  44. package/dist/Form/FormDatePicker/SingleDatePicker.js +144 -114
  45. package/dist/Form/FormDatePicker/TimeInput.cjs +172 -1
  46. package/dist/Form/FormDatePicker/TimeInput.js +162 -79
  47. package/dist/Form/FormDatePicker/TimePicker.cjs +107 -1
  48. package/dist/Form/FormDatePicker/TimePicker.js +58 -43
  49. package/dist/Form/FormDatePicker/YearPickerPanel.cjs +184 -1
  50. package/dist/Form/FormDatePicker/YearPickerPanel.js +164 -84
  51. package/dist/Form/FormDatePicker/types.cjs +10 -1
  52. package/dist/Form/FormDatePicker/types.js +8 -3
  53. package/dist/Form/FormDatePicker/useFormDatePicker.cjs +70 -1
  54. package/dist/Form/FormDatePicker/useFormDatePicker.js +58 -31
  55. package/dist/Form/FormFileUpload/FileUpload.cjs +603 -1
  56. package/dist/Form/FormFileUpload/FileUpload.js +452 -306
  57. package/dist/Form/FormFileUpload/index.cjs +175 -1
  58. package/dist/Form/FormFileUpload/index.js +164 -50
  59. package/dist/Form/FormMultiSelect/FormMultiSelect.cjs +46 -1
  60. package/dist/Form/FormMultiSelect/FormMultiSelect.js +42 -22
  61. package/dist/Form/FormNumberInput/FormNumberInput.cjs +71 -1
  62. package/dist/Form/FormNumberInput/FormNumberInput.js +60 -58
  63. package/dist/Form/FormNumberInput/StepperControls.cjs +104 -1
  64. package/dist/Form/FormNumberInput/StepperControls.js +78 -43
  65. package/dist/Form/FormNumberInput/useFormNumberInput.cjs +72 -1
  66. package/dist/Form/FormNumberInput/useFormNumberInput.js +68 -39
  67. package/dist/Form/FormRadioGroup/FormRadio.cjs +65 -1
  68. package/dist/Form/FormRadioGroup/FormRadio.js +38 -38
  69. package/dist/Form/FormRadioGroup/useFormRadio.cjs +38 -1
  70. package/dist/Form/FormRadioGroup/useFormRadio.js +27 -16
  71. package/dist/Form/FormSelect/FormSelect.cjs +46 -1
  72. package/dist/Form/FormSelect/FormSelect.js +40 -26
  73. package/dist/Form/FormSelect/useFormSelect.cjs +58 -1
  74. package/dist/Form/FormSelect/useFormSelect.js +52 -43
  75. package/dist/Icons/Icons.cjs +155 -1
  76. package/dist/Icons/Icons.js +142 -142
  77. package/dist/Modal.cjs +131 -1
  78. package/dist/Modal.d.ts +2 -14
  79. package/dist/Modal.d.ts.map +1 -1
  80. package/dist/Modal.js +63 -54
  81. package/dist/MultiSelect/MultiSelect.cjs +210 -1
  82. package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
  83. package/dist/MultiSelect/MultiSelect.js +126 -117
  84. package/dist/MultiSelect/renderers.cjs +571 -1
  85. package/dist/MultiSelect/renderers.js +508 -309
  86. package/dist/MultiSelect/useMultiSelect.cjs +244 -1
  87. package/dist/MultiSelect/useMultiSelect.d.ts.map +1 -1
  88. package/dist/MultiSelect/useMultiSelect.js +208 -127
  89. package/dist/MultiSelect/utils.cjs +123 -1
  90. package/dist/MultiSelect/utils.js +79 -51
  91. package/dist/Select/BaseSelect.cjs +265 -1
  92. package/dist/Select/BaseSelect.js +165 -126
  93. package/dist/Select/MultiSelectTags.cjs +129 -1
  94. package/dist/Select/MultiSelectTags.js +82 -56
  95. package/dist/Typography/Blockquote.cjs +79 -1
  96. package/dist/Typography/Blockquote.js +40 -38
  97. package/dist/Typography/Code.cjs +131 -1
  98. package/dist/Typography/Code.js +64 -58
  99. package/dist/Typography/Link.cjs +139 -1
  100. package/dist/Typography/Link.d.ts +1 -2
  101. package/dist/Typography/Link.d.ts.map +1 -1
  102. package/dist/Typography/Link.js +73 -64
  103. package/dist/Typography/Paragraph.cjs +224 -1
  104. package/dist/Typography/Paragraph.d.ts +1 -2
  105. package/dist/Typography/Paragraph.d.ts.map +1 -1
  106. package/dist/Typography/Paragraph.js +118 -108
  107. package/dist/Typography/Text.cjs +223 -1
  108. package/dist/Typography/Text.d.ts +1 -2
  109. package/dist/Typography/Text.d.ts.map +1 -1
  110. package/dist/Typography/Text.js +117 -101
  111. package/dist/Typography/Title.cjs +220 -1
  112. package/dist/Typography/Title.d.ts +1 -2
  113. package/dist/Typography/Title.d.ts.map +1 -1
  114. package/dist/Typography/Title.js +126 -104
  115. package/dist/Typography/Typography.cjs +17 -1
  116. package/dist/Typography/Typography.d.ts +8 -4
  117. package/dist/Typography/Typography.d.ts.map +1 -1
  118. package/dist/Typography/Typography.js +14 -14
  119. package/dist/Typography/index.d.ts +1 -4
  120. package/dist/Typography/index.d.ts.map +1 -1
  121. package/dist/Typography/index.js +10 -13
  122. package/dist/Typography/tooltip.cjs +42 -1
  123. package/dist/Typography/tooltip.js +34 -14
  124. package/dist/Typography/types.cjs +20 -1
  125. package/dist/Typography/types.d.ts +4 -0
  126. package/dist/Typography/types.d.ts.map +1 -1
  127. package/dist/Typography/types.js +5 -2
  128. package/dist/Typography/utils.cjs +52 -1
  129. package/dist/Typography/utils.js +48 -21
  130. package/dist/Typography/weightStyles.cjs +58 -1
  131. package/dist/Typography/weightStyles.js +26 -25
  132. package/dist/_virtual/_rolldown/runtime.cjs +32 -1
  133. package/dist/_virtual/_rolldown/runtime.js +9 -7
  134. package/dist/assets/stylex.css +167 -9
  135. package/dist/astryx.cjs +9 -1
  136. package/dist/astryx.d.ts +0 -1
  137. package/dist/astryx.d.ts.map +1 -1
  138. package/dist/astryx.js +0 -1
  139. package/dist/index.cjs +779 -1
  140. package/dist/index.d.ts +2 -3
  141. package/dist/index.d.ts.map +1 -1
  142. package/dist/index.js +119 -118
  143. package/dist/layout/Box.cjs +180 -1
  144. package/dist/layout/Box.d.ts +6 -8
  145. package/dist/layout/Box.d.ts.map +1 -1
  146. package/dist/layout/Box.js +116 -50
  147. package/dist/layout/Center.cjs +40 -1
  148. package/dist/layout/Center.d.ts +3 -3
  149. package/dist/layout/Center.d.ts.map +1 -1
  150. package/dist/layout/Center.js +39 -21
  151. package/dist/layout/Container.cjs +92 -1
  152. package/dist/layout/Container.d.ts +6 -8
  153. package/dist/layout/Container.d.ts.map +1 -1
  154. package/dist/layout/Container.js +46 -31
  155. package/dist/layout/Stack.cjs +199 -1
  156. package/dist/layout/Stack.d.ts +9 -9
  157. package/dist/layout/Stack.d.ts.map +1 -1
  158. package/dist/layout/Stack.js +186 -79
  159. package/dist/layout/index.d.ts +1 -1
  160. package/dist/layout/index.js +9 -9
  161. package/dist/lazyLoad.cjs +13 -1
  162. package/dist/lazyLoad.d.ts.map +1 -1
  163. package/dist/lazyLoad.js +9 -9
  164. package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +551 -1
  165. package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +440 -234
  166. package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +546 -1
  167. package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +452 -236
  168. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +330 -1
  169. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +272 -164
  170. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +150 -1
  171. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +132 -1
  172. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +90 -74
  173. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +92 -67
  174. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.cjs +11 -1
  175. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.js +8 -7
  176. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.cjs +48 -1
  177. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.js +34 -31
  178. package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialog@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_023ac3f94ac95798b92bc4b7f556cbda/node_modules/@radix-ui/react-alert-dialog/dist/index.cjs +145 -1
  179. package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialog@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_023ac3f94ac95798b92bc4b7f556cbda/node_modules/@radix-ui/react-alert-dialog/dist/index.js +111 -73
  180. package/dist/node_modules/.pnpm/@radix-ui_react-aspect-ratio@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_3fe40fa8e2833eaf8803b46e02e4c30f/node_modules/@radix-ui/react-aspect-ratio/dist/index.cjs +38 -1
  181. package/dist/node_modules/.pnpm/@radix-ui_react-aspect-ratio@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_3fe40fa8e2833eaf8803b46e02e4c30f/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +19 -16
  182. package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.2.6_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_c3568bdf5c60d38014d320037c857c95/node_modules/@radix-ui/react-avatar/dist/index.cjs +126 -1
  183. package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.2.6_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_c3568bdf5c60d38014d320037c857c95/node_modules/@radix-ui/react-avatar/dist/index.js +103 -72
  184. package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.20_@types_react-dom@19.3.0_@types_react@19.3.0__@types__75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.cjs +134 -1
  185. package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.20_@types_react-dom@19.3.0_@types_react@19.3.0__@types__75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.js +113 -79
  186. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_5961dc5beb3cb19a205dfdbd3304cbe5/node_modules/@radix-ui/react-collection/dist/index.cjs +541 -1
  187. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_5961dc5beb3cb19a205dfdbd3304cbe5/node_modules/@radix-ui/react-collection/dist/index.js +459 -331
  188. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +39 -1
  189. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.js +26 -22
  190. package/dist/node_modules/.pnpm/@radix-ui_react-context-menu@2.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types__30d9c1a1570dd32a7a328fd93feebae9/node_modules/@radix-ui/react-context-menu/dist/index.cjs +304 -1
  191. package/dist/node_modules/.pnpm/@radix-ui_react-context-menu@2.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types__30d9c1a1570dd32a7a328fd93feebae9/node_modules/@radix-ui/react-context-menu/dist/index.js +234 -160
  192. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.2.2_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.cjs +108 -1
  193. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.2.2_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.js +82 -67
  194. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-direction/dist/index.cjs +19 -1
  195. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-direction/dist/index.js +12 -10
  196. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@_221317ca07dfdaa6590fc49e548d4242/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +275 -1
  197. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@_221317ca07dfdaa6590fc49e548d4242/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +228 -127
  198. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +53 -1
  199. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.js +40 -22
  200. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.16_@types_react-dom@19.3.0_@types_react@19.3.0__@types__3593711fa410ee31279d746c57990974/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +215 -1
  201. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.16_@types_react-dom@19.3.0_@types_react@19.3.0__@types__3593711fa410ee31279d746c57990974/node_modules/@radix-ui/react-focus-scope/dist/index.js +171 -117
  202. package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_a8ac333b78a7741970303e37358b886d/node_modules/@radix-ui/react-hover-card/dist/index.cjs +219 -1
  203. package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_a8ac333b78a7741970303e37358b886d/node_modules/@radix-ui/react-hover-card/dist/index.js +178 -118
  204. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.cjs +22 -1
  205. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.js +17 -13
  206. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_bd1746795e703f342b2f4982589d4efb/node_modules/@radix-ui/react-menu/dist/index.cjs +802 -1
  207. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_bd1746795e703f342b2f4982589d4efb/node_modules/@radix-ui/react-menu/dist/index.js +648 -422
  208. package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_reac_b8d55f7c7c6b477421e3cc1ba6fb334b/node_modules/@radix-ui/react-menubar/dist/index.cjs +410 -1
  209. package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_reac_b8d55f7c7c6b477421e3cc1ba6fb334b/node_modules/@radix-ui/react-menubar/dist/index.js +313 -212
  210. package/dist/node_modules/.pnpm/@radix-ui_react-navigation-menu@1.2.22_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_fde94e4aef42debd49119dde2ad3b250/node_modules/@radix-ui/react-navigation-menu/dist/index.cjs +741 -1
  211. package/dist/node_modules/.pnpm/@radix-ui_react-navigation-menu@1.2.22_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_fde94e4aef42debd49119dde2ad3b250/node_modules/@radix-ui/react-navigation-menu/dist/index.js +602 -417
  212. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_ca4fb1e7b10e21399fbf7b38c61d930c/node_modules/@radix-ui/react-popper/dist/index.cjs +246 -1
  213. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_ca4fb1e7b10e21399fbf7b38c61d930c/node_modules/@radix-ui/react-popper/dist/index.js +195 -121
  214. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.17_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_dcf9598b366f9d4cb930092169158fb6/node_modules/@radix-ui/react-portal/dist/index.cjs +27 -1
  215. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.17_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_dcf9598b366f9d4cb930092169158fb6/node_modules/@radix-ui/react-portal/dist/index.js +20 -17
  216. package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_rea_d7b4951725c0f0b9fd732151cb937913/node_modules/@radix-ui/react-presence/dist/index.cjs +148 -1
  217. package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_rea_d7b4951725c0f0b9fd732151cb937913/node_modules/@radix-ui/react-presence/dist/index.js +115 -67
  218. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_re_b879c40dbdb8ea08e1db9842f10f20a8/node_modules/@radix-ui/react-primitive/dist/index.cjs +55 -1
  219. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_re_b879c40dbdb8ea08e1db9842f10f20a8/node_modules/@radix-ui/react-primitive/dist/index.js +27 -21
  220. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_43a41e6ed06e4781ce7b1fb0f0076623/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +223 -1
  221. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_43a41e6ed06e4781ce7b1fb0f0076623/node_modules/@radix-ui/react-roving-focus/dist/index.js +179 -131
  222. package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_0a49b18268a9d1d70ad7e785633a1513/node_modules/@radix-ui/react-slider/dist/index.cjs +576 -1
  223. package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_0a49b18268a9d1d70ad7e785633a1513/node_modules/@radix-ui/react-slider/dist/index.js +437 -308
  224. package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_f8723a7bd506c0f648804ec2dc0f18e3/node_modules/@radix-ui/react-switch/dist/index.cjs +202 -1
  225. package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_f8723a7bd506c0f648804ec2dc0f18e3/node_modules/@radix-ui/react-switch/dist/index.js +160 -125
  226. package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.21_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_2c04ca1fb5fd914a25ee24a303bd8469/node_modules/@radix-ui/react-tabs/dist/index.cjs +159 -1
  227. package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.21_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_2c04ca1fb5fd914a25ee24a303bd8469/node_modules/@radix-ui/react-tabs/dist/index.js +125 -93
  228. package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_e645c0ca626436d86b14232bd158d09b/node_modules/@radix-ui/react-toggle-group/dist/index.cjs +158 -1
  229. package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_e645c0ca626436d86b14232bd158d09b/node_modules/@radix-ui/react-toggle-group/dist/index.js +128 -98
  230. package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.18_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_f121473145ec675e8ab50657e8e97e06/node_modules/@radix-ui/react-toggle/dist/index.cjs +39 -1
  231. package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.18_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_f121473145ec675e8ab50657e8e97e06/node_modules/@radix-ui/react-toggle/dist/index.js +29 -24
  232. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +19 -1
  233. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -11
  234. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +109 -1
  235. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +91 -68
  236. package/dist/node_modules/.pnpm/@radix-ui_react-use-effect-event@0.0.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs +28 -1
  237. package/dist/node_modules/.pnpm/@radix-ui_react-use-effect-event@0.0.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-effect-event/dist/index.js +22 -17
  238. package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.3_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs +33 -1
  239. package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.3_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +25 -19
  240. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +7 -1
  241. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +3 -3
  242. package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-previous/dist/index.cjs +25 -1
  243. package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-previous/dist/index.js +18 -11
  244. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-size/dist/index.cjs +47 -1
  245. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-size/dist/index.js +38 -28
  246. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.11_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_ef452cff5863a129db7ebc4b37ab07c3/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +38 -1
  247. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.11_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_ef452cff5863a129db7ebc4b37ab07c3/node_modules/@radix-ui/react-visually-hidden/dist/index.js +19 -15
  248. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs +106 -1
  249. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +95 -34
  250. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.cjs +5 -1
  251. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js +3 -3
  252. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.cjs +6 -1
  253. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js +4 -4
  254. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.cjs +423 -1
  255. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.js +237 -202
  256. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.cjs +45 -1
  257. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js +35 -32
  258. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.cjs +42 -1
  259. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js +37 -32
  260. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +20 -1
  261. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -5
  262. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.cjs +7 -1
  263. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js +5 -5
  264. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.cjs +27 -1
  265. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.js +15 -12
  266. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.cjs +45 -1
  267. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.js +41 -4
  268. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.cjs +45 -1
  269. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js +42 -4
  270. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.cjs +49 -1
  271. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js +46 -8
  272. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.cjs +358 -1
  273. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js +341 -45
  274. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.cjs +31 -1
  275. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js +28 -7
  276. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.cjs +35 -1
  277. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js +32 -8
  278. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.cjs +44 -1
  279. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js +41 -11
  280. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.cjs +49 -1
  281. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js +46 -8
  282. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.cjs +61 -1
  283. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js +58 -12
  284. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.cjs +38 -1
  285. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js +35 -3
  286. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.cjs +39 -1
  287. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js +36 -5
  288. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +8 -1
  289. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +5 -5
  290. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +50 -1
  291. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +45 -11
  292. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +27 -1
  293. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +20 -14
  294. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +18 -1
  295. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +13 -12
  296. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +77 -1
  297. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +14 -5
  298. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +31 -1
  299. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +6 -6
  300. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +11 -1
  301. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +4 -3
  302. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.cjs +210 -1
  303. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.js +197 -188
  304. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.cjs +122 -1
  305. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.js +12 -12
  306. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.cjs +28 -1
  307. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js +20 -12
  308. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.cjs +34 -1
  309. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js +31 -5
  310. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.cjs +37 -1
  311. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js +32 -5
  312. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.cjs +41 -1
  313. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js +38 -7
  314. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.cjs +45 -1
  315. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js +42 -6
  316. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.cjs +56 -1
  317. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js +53 -8
  318. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.cjs +35 -1
  319. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js +32 -5
  320. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.cjs +45 -1
  321. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js +42 -4
  322. package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.3.1/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs +34 -1
  323. package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.3.1/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +32 -21
  324. package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +39 -1
  325. package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +27 -20
  326. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1391 -1
  327. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js +1178 -803
  328. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs +7 -1
  329. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +3 -4
  330. package/dist/node_modules/.pnpm/input-otp@1.4.2_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/input-otp/dist/index.cjs +369 -2
  331. package/dist/node_modules/.pnpm/input-otp@1.4.2_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/input-otp/dist/index.js +282 -238
  332. package/dist/node_modules/.pnpm/react-hook-form@7.83.0_react@19.3.1/node_modules/react-hook-form/dist/index.esm.cjs +625 -1
  333. package/dist/node_modules/.pnpm/react-hook-form@7.83.0_react@19.3.1/node_modules/react-hook-form/dist/index.esm.js +545 -276
  334. package/dist/node_modules/.pnpm/react-number-format@5.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-number-format/dist/react-number-format.es.cjs +1033 -9
  335. package/dist/node_modules/.pnpm/react-number-format@5.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-number-format/dist/react-number-format.es.js +898 -460
  336. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +47 -38
  337. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js +38 -64
  338. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +13 -1
  339. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +9 -2
  340. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/index.cjs +4 -1
  341. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +36 -1
  342. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -16
  343. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +15 -1
  344. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js +10 -10
  345. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +167 -4
  346. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +144 -93
  347. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/UI.cjs +63 -1
  348. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js +45 -35
  349. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +14 -1
  350. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +11 -9
  351. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +84 -1
  352. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +75 -43
  353. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/medium.cjs +3 -1
  354. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js +3 -3
  355. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +6 -1
  356. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js +5 -5
  357. package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.cjs +1617 -1
  358. package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.js +1332 -874
  359. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/component.cjs +18 -1
  360. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/component.js +15 -7
  361. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/hook.cjs +26 -1
  362. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/hook.js +20 -10
  363. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/index.cjs +4 -1
  364. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/singleton.cjs +40 -1
  365. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js +29 -16
  366. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +36 -1
  367. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +25 -14
  368. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +20 -1
  369. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js +18 -3
  370. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +46 -1
  371. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +38 -19
  372. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useRef.cjs +39 -1
  373. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js +29 -11
  374. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/exports.cjs +18 -1
  375. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/exports.js +13 -12
  376. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/medium.cjs +81 -1
  377. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/medium.js +58 -45
  378. package/dist/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@19.3.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/vaul/dist/index.cjs +1252 -3
  379. package/dist/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@19.3.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/vaul/dist/index.js +1003 -648
  380. package/dist/theme/index.cjs +63 -1
  381. package/dist/theme/index.js +31 -31
  382. package/dist/theme/spacing.cjs +93 -1
  383. package/dist/theme/spacing.js +52 -26
  384. package/dist/theme/tokens.stylex.cjs +210 -1
  385. package/dist/theme/tokens.stylex.js +58 -26
  386. package/dist/theme/types.cjs +13 -1
  387. package/dist/theme/types.js +4 -3
  388. package/dist/theme/width.cjs +39 -1
  389. package/dist/theme/width.js +16 -4
  390. package/dist/theme/zIndex.cjs +62 -1
  391. package/dist/theme/zIndex.d.ts +4 -4
  392. package/dist/theme/zIndex.d.ts.map +1 -1
  393. package/dist/theme/zIndex.js +44 -15
  394. package/dist/theme.css +167 -9
  395. package/dist/ui/accordion.cjs +431 -1
  396. package/dist/ui/accordion.d.ts +10 -10
  397. package/dist/ui/accordion.d.ts.map +1 -1
  398. package/dist/ui/accordion.js +276 -136
  399. package/dist/ui/action-bar.cjs +274 -1
  400. package/dist/ui/action-bar.d.ts +11 -11
  401. package/dist/ui/action-bar.d.ts.map +1 -1
  402. package/dist/ui/action-bar.js +204 -98
  403. package/dist/ui/alert-dialog.cjs +538 -1
  404. package/dist/ui/alert-dialog.d.ts +19 -19
  405. package/dist/ui/alert-dialog.d.ts.map +1 -1
  406. package/dist/ui/alert-dialog.js +459 -167
  407. package/dist/ui/alert.cjs +163 -1
  408. package/dist/ui/alert.d.ts +7 -7
  409. package/dist/ui/alert.d.ts.map +1 -1
  410. package/dist/ui/alert.js +111 -50
  411. package/dist/ui/aspect-ratio.cjs +24 -1
  412. package/dist/ui/aspect-ratio.d.ts +2 -2
  413. package/dist/ui/aspect-ratio.d.ts.map +1 -1
  414. package/dist/ui/aspect-ratio.js +22 -13
  415. package/dist/ui/avatar.cjs +340 -1
  416. package/dist/ui/avatar.d.ts +10 -10
  417. package/dist/ui/avatar.d.ts.map +1 -1
  418. package/dist/ui/avatar.js +226 -115
  419. package/dist/ui/badge-overflow.cjs +66 -1
  420. package/dist/ui/badge-overflow.d.ts +5 -5
  421. package/dist/ui/badge-overflow.d.ts.map +1 -1
  422. package/dist/ui/badge-overflow.js +34 -27
  423. package/dist/ui/badge.cjs +167 -1
  424. package/dist/ui/badge.d.ts +3 -3
  425. package/dist/ui/badge.d.ts.map +1 -1
  426. package/dist/ui/badge.js +48 -42
  427. package/dist/ui/breadcrumb.cjs +508 -1
  428. package/dist/ui/breadcrumb.d.ts +15 -15
  429. package/dist/ui/breadcrumb.d.ts.map +1 -1
  430. package/dist/ui/breadcrumb.js +386 -159
  431. package/dist/ui/button.cjs +425 -1
  432. package/dist/ui/button.d.ts +3 -3
  433. package/dist/ui/button.d.ts.map +1 -1
  434. package/dist/ui/button.js +137 -117
  435. package/dist/ui/calendar.cjs +625 -1
  436. package/dist/ui/calendar.d.ts +5 -5
  437. package/dist/ui/calendar.d.ts.map +1 -1
  438. package/dist/ui/calendar.js +309 -193
  439. package/dist/ui/card.cjs +401 -1
  440. package/dist/ui/card.d.ts +15 -15
  441. package/dist/ui/card.d.ts.map +1 -1
  442. package/dist/ui/card.js +300 -119
  443. package/dist/ui/carousel.cjs +332 -1
  444. package/dist/ui/carousel.d.ts +10 -10
  445. package/dist/ui/carousel.d.ts.map +1 -1
  446. package/dist/ui/carousel.js +245 -127
  447. package/dist/ui/checkbox.cjs +163 -1
  448. package/dist/ui/checkbox.d.ts +4 -4
  449. package/dist/ui/checkbox.d.ts.map +1 -1
  450. package/dist/ui/checkbox.js +62 -58
  451. package/dist/ui/circular-progress.cjs +144 -1
  452. package/dist/ui/circular-progress.d.ts +5 -5
  453. package/dist/ui/circular-progress.d.ts.map +1 -1
  454. package/dist/ui/circular-progress.js +85 -67
  455. package/dist/ui/code-block.cjs +823 -0
  456. package/dist/ui/code-block.d.ts +89 -0
  457. package/dist/ui/code-block.d.ts.map +1 -0
  458. package/dist/ui/code-block.js +813 -0
  459. package/dist/ui/collapsible.cjs +64 -1
  460. package/dist/ui/collapsible.d.ts +4 -4
  461. package/dist/ui/collapsible.d.ts.map +1 -1
  462. package/dist/ui/collapsible.js +58 -29
  463. package/dist/ui/command.cjs +556 -1
  464. package/dist/ui/command.d.ts +19 -19
  465. package/dist/ui/command.d.ts.map +1 -1
  466. package/dist/ui/command.js +432 -163
  467. package/dist/ui/compare-slider.cjs +169 -1
  468. package/dist/ui/compare-slider.d.ts +8 -7
  469. package/dist/ui/compare-slider.d.ts.map +1 -1
  470. package/dist/ui/compare-slider.js +106 -73
  471. package/dist/ui/context-menu.cjs +810 -1
  472. package/dist/ui/context-menu.d.ts +26 -26
  473. package/dist/ui/context-menu.d.ts.map +1 -1
  474. package/dist/ui/context-menu.js +693 -229
  475. package/dist/ui/copy-button.cjs +93 -1
  476. package/dist/ui/copy-button.d.ts +1 -2
  477. package/dist/ui/copy-button.d.ts.map +1 -1
  478. package/dist/ui/copy-button.js +56 -45
  479. package/dist/ui/dialog.cjs +411 -1
  480. package/dist/ui/dialog.d.ts +18 -18
  481. package/dist/ui/dialog.d.ts.map +1 -1
  482. package/dist/ui/dialog.js +319 -131
  483. package/dist/ui/drawer.cjs +478 -1
  484. package/dist/ui/drawer.d.ts +17 -17
  485. package/dist/ui/drawer.d.ts.map +1 -1
  486. package/dist/ui/drawer.js +396 -151
  487. package/dist/ui/dropdown-menu.cjs +638 -1
  488. package/dist/ui/dropdown-menu.d.ts +26 -26
  489. package/dist/ui/dropdown-menu.d.ts.map +1 -1
  490. package/dist/ui/dropdown-menu.js +511 -208
  491. package/dist/ui/editable.cjs +609 -1
  492. package/dist/ui/editable.d.ts +14 -14
  493. package/dist/ui/editable.d.ts.map +1 -1
  494. package/dist/ui/editable.js +479 -218
  495. package/dist/ui/empty.cjs +295 -1
  496. package/dist/ui/empty.d.ts +15 -15
  497. package/dist/ui/empty.d.ts.map +1 -1
  498. package/dist/ui/empty.js +267 -112
  499. package/dist/ui/field.cjs +621 -1
  500. package/dist/ui/field.d.ts +21 -21
  501. package/dist/ui/field.d.ts.map +1 -1
  502. package/dist/ui/field.js +468 -198
  503. package/dist/ui/file-upload-adapters.cjs +289 -1
  504. package/dist/ui/file-upload-adapters.d.ts +1 -2
  505. package/dist/ui/file-upload-adapters.d.ts.map +1 -1
  506. package/dist/ui/file-upload-adapters.js +244 -170
  507. package/dist/ui/file-upload.cjs +1480 -1
  508. package/dist/ui/file-upload.d.ts +22 -22
  509. package/dist/ui/file-upload.d.ts.map +1 -1
  510. package/dist/ui/file-upload.js +1064 -599
  511. package/dist/ui/flex.cjs +202 -1
  512. package/dist/ui/flex.d.ts +7 -6
  513. package/dist/ui/flex.d.ts.map +1 -1
  514. package/dist/ui/flex.js +111 -93
  515. package/dist/ui/form.cjs +453 -1
  516. package/dist/ui/form.d.ts +11 -11
  517. package/dist/ui/form.d.ts.map +1 -1
  518. package/dist/ui/form.js +421 -136
  519. package/dist/ui/gauge.cjs +125 -1
  520. package/dist/ui/gauge.d.ts +7 -6
  521. package/dist/ui/gauge.d.ts.map +1 -1
  522. package/dist/ui/gauge.js +60 -53
  523. package/dist/ui/grid.cjs +224 -1
  524. package/dist/ui/grid.d.ts +11 -7
  525. package/dist/ui/grid.d.ts.map +1 -1
  526. package/dist/ui/grid.js +126 -96
  527. package/dist/ui/hover-card.cjs +85 -1
  528. package/dist/ui/hover-card.d.ts +6 -6
  529. package/dist/ui/hover-card.d.ts.map +1 -1
  530. package/dist/ui/hover-card.js +57 -37
  531. package/dist/ui/index.d.ts +4 -0
  532. package/dist/ui/index.d.ts.map +1 -1
  533. package/dist/ui/input-group.cjs +322 -1
  534. package/dist/ui/input-group.d.ts +12 -12
  535. package/dist/ui/input-group.d.ts.map +1 -1
  536. package/dist/ui/input-group.js +203 -107
  537. package/dist/ui/input-otp.cjs +312 -1
  538. package/dist/ui/input-otp.d.ts +10 -10
  539. package/dist/ui/input-otp.d.ts.map +1 -1
  540. package/dist/ui/input-otp.js +217 -94
  541. package/dist/ui/input.cjs +388 -1
  542. package/dist/ui/input.d.ts +3 -3
  543. package/dist/ui/input.d.ts.map +1 -1
  544. package/dist/ui/input.js +137 -119
  545. package/dist/ui/item.cjs +585 -1
  546. package/dist/ui/item.d.ts +20 -20
  547. package/dist/ui/item.d.ts.map +1 -1
  548. package/dist/ui/item.js +460 -162
  549. package/dist/ui/kbd.cjs +115 -1
  550. package/dist/ui/kbd.d.ts +5 -5
  551. package/dist/ui/kbd.d.ts.map +1 -1
  552. package/dist/ui/kbd.js +42 -37
  553. package/dist/ui/label.cjs +67 -1
  554. package/dist/ui/label.d.ts +4 -4
  555. package/dist/ui/label.d.ts.map +1 -1
  556. package/dist/ui/label.js +51 -21
  557. package/dist/ui/marker.cjs +297 -0
  558. package/dist/ui/marker.d.ts +25 -0
  559. package/dist/ui/marker.d.ts.map +1 -0
  560. package/dist/ui/marker.js +293 -0
  561. package/dist/ui/masonry.cjs +56 -1
  562. package/dist/ui/masonry.d.ts +4 -4
  563. package/dist/ui/masonry.d.ts.map +1 -1
  564. package/dist/ui/masonry.js +40 -37
  565. package/dist/ui/menubar.cjs +907 -1
  566. package/dist/ui/menubar.d.ts +29 -29
  567. package/dist/ui/menubar.d.ts.map +1 -1
  568. package/dist/ui/menubar.js +737 -252
  569. package/dist/ui/navigation-menu.cjs +560 -1
  570. package/dist/ui/navigation-menu.d.ts +18 -18
  571. package/dist/ui/navigation-menu.d.ts.map +1 -1
  572. package/dist/ui/navigation-menu.js +442 -148
  573. package/dist/ui/pagination.cjs +575 -1
  574. package/dist/ui/pagination.d.ts +13 -13
  575. package/dist/ui/pagination.d.ts.map +1 -1
  576. package/dist/ui/pagination.js +422 -172
  577. package/dist/ui/popover.cjs +93 -1
  578. package/dist/ui/popover.d.ts +7 -7
  579. package/dist/ui/popover.d.ts.map +1 -1
  580. package/dist/ui/popover.js +61 -42
  581. package/dist/ui/progress.cjs +34 -1
  582. package/dist/ui/progress.d.ts +3 -3
  583. package/dist/ui/progress.d.ts.map +1 -1
  584. package/dist/ui/progress.js +21 -18
  585. package/dist/ui/questionnaire.cjs +682 -0
  586. package/dist/ui/questionnaire.d.ts +111 -0
  587. package/dist/ui/questionnaire.d.ts.map +1 -0
  588. package/dist/ui/questionnaire.js +670 -0
  589. package/dist/ui/radio-group.cjs +221 -1
  590. package/dist/ui/radio-group.d.ts +6 -6
  591. package/dist/ui/radio-group.d.ts.map +1 -1
  592. package/dist/ui/radio-group.js +125 -74
  593. package/dist/ui/rating.cjs +190 -1
  594. package/dist/ui/rating.d.ts +4 -3
  595. package/dist/ui/rating.d.ts.map +1 -1
  596. package/dist/ui/rating.js +96 -79
  597. package/dist/ui/resizable.cjs +174 -1
  598. package/dist/ui/resizable.d.ts +7 -7
  599. package/dist/ui/resizable.d.ts.map +1 -1
  600. package/dist/ui/resizable.js +150 -55
  601. package/dist/ui/responsive-dialog.cjs +400 -1
  602. package/dist/ui/responsive-dialog.d.ts +17 -17
  603. package/dist/ui/responsive-dialog.d.ts.map +1 -1
  604. package/dist/ui/responsive-dialog.js +372 -155
  605. package/dist/ui/row-col.cjs +508 -1
  606. package/dist/ui/row-col.d.ts +13 -11
  607. package/dist/ui/row-col.d.ts.map +1 -1
  608. package/dist/ui/row-col.js +238 -207
  609. package/dist/ui/scroll-area.cjs +129 -1
  610. package/dist/ui/scroll-area.d.ts +6 -6
  611. package/dist/ui/scroll-area.d.ts.map +1 -1
  612. package/dist/ui/scroll-area.js +92 -49
  613. package/dist/ui/segmented.cjs +169 -1
  614. package/dist/ui/segmented.d.ts +6 -5
  615. package/dist/ui/segmented.d.ts.map +1 -1
  616. package/dist/ui/segmented.js +75 -63
  617. package/dist/ui/select.cjs +484 -1
  618. package/dist/ui/select.d.ts +17 -17
  619. package/dist/ui/select.d.ts.map +1 -1
  620. package/dist/ui/select.js +353 -160
  621. package/dist/ui/separator.cjs +44 -1
  622. package/dist/ui/separator.d.ts +4 -4
  623. package/dist/ui/separator.d.ts.map +1 -1
  624. package/dist/ui/separator.js +17 -17
  625. package/dist/ui/sheet.cjs +462 -1
  626. package/dist/ui/sheet.d.ts +16 -16
  627. package/dist/ui/sheet.d.ts.map +1 -1
  628. package/dist/ui/sheet.js +331 -141
  629. package/dist/ui/sidebar.cjs +1452 -1
  630. package/dist/ui/sidebar.d.ts +48 -48
  631. package/dist/ui/sidebar.d.ts.map +1 -1
  632. package/dist/ui/sidebar.js +1057 -439
  633. package/dist/ui/signature-pad.cjs +741 -0
  634. package/dist/ui/signature-pad.d.ts +115 -0
  635. package/dist/ui/signature-pad.d.ts.map +1 -0
  636. package/dist/ui/signature-pad.js +731 -0
  637. package/dist/ui/skeleton.cjs +62 -1
  638. package/dist/ui/skeleton.d.ts +3 -3
  639. package/dist/ui/skeleton.d.ts.map +1 -1
  640. package/dist/ui/skeleton.js +50 -20
  641. package/dist/ui/slider.cjs +47 -1
  642. package/dist/ui/slider.d.ts +4 -4
  643. package/dist/ui/slider.d.ts.map +1 -1
  644. package/dist/ui/slider.js +27 -26
  645. package/dist/ui/sonner.cjs +28 -1
  646. package/dist/ui/sonner.js +24 -22
  647. package/dist/ui/spinner.cjs +73 -1
  648. package/dist/ui/spinner.d.ts +3 -3
  649. package/dist/ui/spinner.d.ts.map +1 -1
  650. package/dist/ui/spinner.js +29 -28
  651. package/dist/ui/stat.cjs +320 -1
  652. package/dist/ui/stat.d.ts +15 -15
  653. package/dist/ui/stat.d.ts.map +1 -1
  654. package/dist/ui/stat.js +275 -148
  655. package/dist/ui/stepper.cjs +785 -1
  656. package/dist/ui/stepper.d.ts +24 -24
  657. package/dist/ui/stepper.d.ts.map +1 -1
  658. package/dist/ui/stepper.js +594 -281
  659. package/dist/ui/switch.cjs +199 -1
  660. package/dist/ui/switch.d.ts +4 -4
  661. package/dist/ui/switch.d.ts.map +1 -1
  662. package/dist/ui/switch.js +79 -72
  663. package/dist/ui/table.cjs +435 -1
  664. package/dist/ui/table.d.ts +17 -17
  665. package/dist/ui/table.d.ts.map +1 -1
  666. package/dist/ui/table.js +369 -129
  667. package/dist/ui/tabs.cjs +340 -1
  668. package/dist/ui/tabs.d.ts +10 -10
  669. package/dist/ui/tabs.d.ts.map +1 -1
  670. package/dist/ui/tabs.js +204 -95
  671. package/dist/ui/tags-input.cjs +585 -1
  672. package/dist/ui/tags-input.d.ts +13 -13
  673. package/dist/ui/tags-input.d.ts.map +1 -1
  674. package/dist/ui/tags-input.js +446 -221
  675. package/dist/ui/textarea.cjs +119 -1
  676. package/dist/ui/textarea.d.ts +3 -3
  677. package/dist/ui/textarea.d.ts.map +1 -1
  678. package/dist/ui/textarea.js +37 -33
  679. package/dist/ui/timeline.cjs +583 -1
  680. package/dist/ui/timeline.d.ts +22 -22
  681. package/dist/ui/timeline.d.ts.map +1 -1
  682. package/dist/ui/timeline.js +409 -198
  683. package/dist/ui/toggle-group.cjs +128 -1
  684. package/dist/ui/toggle-group.d.ts +7 -7
  685. package/dist/ui/toggle-group.d.ts.map +1 -1
  686. package/dist/ui/toggle-group.js +92 -41
  687. package/dist/ui/toggle.cjs +145 -1
  688. package/dist/ui/toggle.d.ts +4 -4
  689. package/dist/ui/toggle.d.ts.map +1 -1
  690. package/dist/ui/toggle.js +38 -34
  691. package/dist/ui/tooltip.cjs +81 -1
  692. package/dist/ui/tooltip.d.ts +7 -7
  693. package/dist/ui/tooltip.d.ts.map +1 -1
  694. package/dist/ui/tooltip.js +50 -37
  695. package/dist/ui/useBreakpoint.cjs +91 -1
  696. package/dist/ui/useBreakpoint.js +66 -43
  697. package/dist/utils.cjs +4 -1
  698. package/dist/utils.d.ts +2 -12
  699. package/dist/utils.d.ts.map +1 -1
  700. package/dist/utils.js +3 -6
  701. package/package.json +10 -2
@@ -1,9 +1,1033 @@
1
- const e=require("../../../../../../_virtual/_rolldown/runtime.cjs");let t=require("react");t=e.__toESM(t);function n(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var r;(function(e){e.event=`event`,e.props=`prop`})(r||={});function i(){}function a(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(e,n){return e===t[n]})||(t=r,n=e.apply(void 0,r)),n}}function o(e){return!!(e||``).match(/\d/)}function s(e){return e==null}function c(e){return typeof e==`number`&&isNaN(e)}function l(e){return s(e)||c(e)||typeof e==`number`&&!isFinite(e)}function u(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,`\\$&`)}function d(e){switch(e){case`lakh`:return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case`wan`:return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function f(e,t,n){var r=d(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,`$1`+t)}function p(e){var n=(0,t.useRef)(e);return n.current=e,(0,t.useRef)(function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return n.current.apply(n,e)}).current}function m(e,t){t===void 0&&(t=!0);var n=e[0]===`-`,r=n&&t;e=e.replace(`-`,``);var i=e.split(`.`);return{beforeDecimal:i[0],afterDecimal:i[1]||``,hasNegation:n,addNegation:r}}function h(e){if(!e)return e;var t=e[0]===`-`;t&&(e=e.substring(1,e.length));var n=e.split(`.`),r=n[0].replace(/^0+/,``)||`0`,i=n[1]||``;return(t?`-`:``)+r+(i?`.`+i:``)}function g(e,t,n){for(var r=``,i=n?`0`:``,a=0;a<=t-1;a++)r+=e[a]||i;return r}function _(e,t){return Array(t+1).join(e)}function v(e){var t=e+``,n=t[0]===`-`?`-`:``;n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(`.`,``);var o=1+a,s=i.length;return o<0?i=`0.`+_(`0`,Math.abs(o))+i:o>=s?i+=_(`0`,o-s):i=(i.substring(0,o)||`0`)+`.`+i.substring(o),n+i}function y(e,t,n){if([``,`-`].indexOf(e)!==-1)return e;var r=(e.indexOf(`.`)!==-1||n)&&t,i=m(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,c=parseFloat(`0.`+(o||`0`)),l=(o.length<=t?`0.`+o:c.toFixed(t)).split(`.`),u=a;a&&Number(l[0])&&(u=a.split(``).reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},l[0]));var d=g(l[1]||``,t,n),f=s?`-`:``,p=r?`.`:``;return``+f+u+p+d}function b(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move(`character`,t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var x=a(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),S=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function C(e,t,n){return Math.min(Math.max(e,t),n)}function w(e){return Math.max(e.selectionStart,e.selectionEnd)}function T(){return typeof navigator<`u`&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function E(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:``}}function D(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function O(e,t,n,r,i,a,o){o===void 0&&(o=D);var s=i.findIndex(function(e){return e}),c=e.slice(0,s);!t&&!n.startsWith(c)&&(t=c,n=c+n,r+=c.length);for(var l=n.length,u=e.length,d={},f=Array(l),p=0;p<l;p++){f[p]=-1;for(var m=0,h=u;m<h;m++)if(o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:m})&&d[m]!==!0){f[p]=m,d[m]=!0;break}}for(var g=r;g<l&&(f[g]===-1||!a(n[g]));)g++;var _=g===l||f[g]===-1?u:f[g];for(g=r-1;g>0&&f[g]===-1;)g--;var v=g===-1||f[g]===-1?0:f[g]+1;return v>_?_:r-v<_-r?v:_}function k(e,t,n,r){var i=e.length;if(t=C(t,0,i),r===`left`){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function A(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(o(e[n])||o(e[n-1]));return t}function j(e,n,a,o,c,u){u===void 0&&(u=i);var d=p(function(e,t){var n,r;return l(e)?(r=``,n=``):typeof e==`number`||t?(r=typeof e==`number`?v(e):e,n=o(r)):(r=c(e,void 0),n=o(r)),{formattedValue:n,numAsString:r}}),f=(0,t.useState)(function(){return d(s(e)?n:e,a)}),m=f[0],h=f[1],g=p(function(e,t){e.formattedValue!==m.formattedValue&&h({formattedValue:e.formattedValue,numAsString:e.value}),u(e,t)}),_=e,y=a;s(e)&&(_=m.numAsString,y=!0);var b=d(_,y);return(0,t.useMemo)(function(){h(b)},[b.formattedValue]),(0,t.useEffect)(function(){if(!s(n)&&s(e)&&m.formattedValue!==``){var t=parseFloat(m.numAsString);g({formattedValue:m.formattedValue,value:m.numAsString,floatValue:isNaN(t)?void 0:t},{event:void 0,source:r.props})}},[]),[m,g]}function M(e){return e.replace(/[^0-9]/g,``)}function N(e){return e}function P(e){var a=e.type;a===void 0&&(a=`text`);var s=e.displayType;s===void 0&&(s=`input`);var c=e.customInput,l=e.renderText,u=e.getInputRef,d=e.format;d===void 0&&(d=N);var f=e.removeFormatting;f===void 0&&(f=M);var p=e.defaultValue,m=e.valueIsNumericString,h=e.onValueChange,g=e.isAllowed,_=e.onChange;_===void 0&&(_=i);var v=e.onKeyDown;v===void 0&&(v=i);var y=e.onMouseUp;y===void 0&&(y=i);var C=e.onFocus;C===void 0&&(C=i);var E=e.onBlur;E===void 0&&(E=i);var D=e.value,P=e.getCaretBoundary;P===void 0&&(P=A);var F=e.isValidInputCharacter;F===void 0&&(F=o);var I=e.isCharacterSame,L=n(e,[`type`,`displayType`,`customInput`,`renderText`,`getInputRef`,`format`,`removeFormatting`,`defaultValue`,`valueIsNumericString`,`onValueChange`,`isAllowed`,`onChange`,`onKeyDown`,`onMouseUp`,`onFocus`,`onBlur`,`value`,`getCaretBoundary`,`isValidInputCharacter`,`isCharacterSame`]),R=j(D,p,!!m,d,f,h),z=R[0],B=z.formattedValue,V=z.numAsString,H=R[1],U=(0,t.useRef)(),W=(0,t.useRef)({formattedValue:B,numAsString:V}),G=function(e,t){W.current={formattedValue:e.formattedValue,numAsString:e.value},H(e,t)},K=(0,t.useState)(!1),ee=K[0],te=K[1],q=(0,t.useRef)(null),J=(0,t.useRef)({setCaretTimeout:null,focusTimeout:null});(0,t.useEffect)(function(){return te(!0),function(){clearTimeout(J.current.setCaretTimeout),clearTimeout(J.current.focusTimeout)}},[]);var ne=d,Y=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},X=function(e,t,n){(e.selectionStart!==0||e.selectionEnd!==e.value.length)&&(b(e,t),J.current.setCaretTimeout=setTimeout(function(){e.value===n&&e.selectionStart!==t&&b(e,t)},0))},Z=function(e,t,n){return k(e,t,P(e),n)},Q=function(e,t,n){var r=P(t),i=O(t,B,e,n,r,F,I);return i=k(t,i,r),i},re=function(e){var t=e.formattedValue;t===void 0&&(t=``);var n=e.input,r=e.source,i=e.event,a=e.numAsString,o;if(n){var s=e.inputValue||n.value,c=w(n);n.value=t,o=Q(s,t,c),o!==void 0&&X(n,o,t)}t!==B&&G(Y(t,a),{event:i,source:r})};(0,t.useEffect)(function(){var e=W.current,t=e.formattedValue,n=e.numAsString;(B!==t||V!==n)&&G(Y(B,V),{event:void 0,source:r.props})},[B,V]);var ie=q.current?w(q.current):void 0;(typeof window<`u`?t.useLayoutEffect:t.useEffect)(function(){var e=q.current;if(B!==W.current.formattedValue&&e){var t=Q(W.current.formattedValue,B,ie);e.value=B,X(e,t,B)}},[B]);var ae=function(e,t,n){var r=t.target,i=U.current?S(U.current,r.selectionEnd):x(B,e),a=Object.assign(Object.assign({},i),{lastValue:B}),o=f(e,a),s=ne(o);if(o=f(s,void 0),g&&!g(Y(s,o))){var c=t.target,l=Q(e,B,w(c));return c.value=B,X(c,l,B),!1}return re({formattedValue:s,numAsString:o,inputValue:e,event:t,source:n,input:t.target}),!0},$=function(e,t){t===void 0&&(t=0),U.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},oe=function(e){var t=e.target.value;ae(t,e,r.event)&&_(e),U.current=void 0},se=function(e){var t=e.target,n=e.key,r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o;n===`ArrowLeft`||n===`Backspace`?o=Math.max(r-1,0):n===`ArrowRight`?o=Math.min(r+1,a.length):n===`Delete`&&(o=r);var s=0;n===`Delete`&&r===i&&(s=1);var c=n===`ArrowLeft`||n===`ArrowRight`;if(o===void 0||r!==i&&!c)v(e),$(t,s);else{var l=o;c?(l=Z(a,o,n===`ArrowLeft`?`left`:`right`),l!==o&&e.preventDefault()):n===`Delete`&&!F(a[o])?l=Z(a,o,`right`):n===`Backspace`&&!F(a[o])&&(l=Z(a,o,`left`)),l!==o&&X(t,l,a),v(e),$(t,s)}},ce=function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(r===void 0&&(r=``),e===n){var i=Z(r,e);i!==e&&X(t,i,r)}};n(),requestAnimationFrame(function(){n()}),y(e),$(t)},le=function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;q.current=t,J.current.focusTimeout=setTimeout(function(){var r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o=Z(a,r);o!==r&&(r!==0||i!==a.length)&&X(t,o,a),C(Object.assign(Object.assign({},e),{currentTarget:n}))},0)},ue=function(e){q.current=null,clearTimeout(J.current.focusTimeout),clearTimeout(J.current.setCaretTimeout),E(e)},de=ee&&T()?`numeric`:void 0,fe=Object.assign({inputMode:de},L,{type:a,value:B,onChange:oe,onKeyDown:se,onMouseUp:ce,onFocus:le,onBlur:ue});if(s===`text`)return l?t.default.createElement(t.default.Fragment,null,l(B,L)||null):t.default.createElement(`span`,Object.assign({},L,{ref:u}),B);if(c){var pe=c;return t.default.createElement(pe,Object.assign({},fe,{ref:u}))}return t.default.createElement(`input`,Object.assign({},fe,{ref:u}))}function F(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i=``);var a=t.suffix;a===void 0&&(a=``);var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s=`thousand`),e===``||e===`-`)return e;var c=I(t),l=c.thousandSeparator,u=c.decimalSeparator,d=n!==0&&e.indexOf(`.`)!==-1||n&&r,p=m(e,o),h=p.beforeDecimal,_=p.afterDecimal,v=p.addNegation;return n!==void 0&&(_=g(_,n,!!r)),l&&(h=f(h,l,s)),i&&(h=i+h),a&&(_+=a),v&&(h=`-`+h),e=h+(d&&u||``)+_,e}function I(e){var t=e.decimalSeparator;t===void 0&&(t=`.`);var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=`,`),r||=[t,`.`],{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function L(e,t){e===void 0&&(e=``);var n=RegExp(`(-)`),r=RegExp(`(-)(.)*(-)`),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,``),i&&!a&&t&&(e=`-`+e),e}function R(e,t){return RegExp(`(^-)|[0-9]|`+u(e),t?`g`:void 0)}function z(e,t,n){return e===``||!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e==`string`&&!isNaN(Number(e))}function B(e,t,n){var r;t===void 0&&(t=E(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a=``);var s=n.suffix;s===void 0&&(s=``);var c=n.decimalScale,l=t.from,d=t.to,f=d.start,p=d.end,h=I(n),g=h.allowedDecimalSeparators,_=h.decimalSeparator,v=e[p]===_;if(o(e)&&(e===a||e===s)&&t.lastValue===``)return e;if(p-f===1&&g.indexOf(e[f])!==-1){var y=c===0?``:_;e=e.substring(0,f)+y+e.substring(f+1,e.length)}var b=function(e,t,n){var r=!1,i=!1;a.startsWith(`-`)?r=!1:e.startsWith(`--`)?(r=!1,i=!0):s.startsWith(`-`)&&e.length===s.length?r=!1:e[0]===`-`&&(r=!0);var o=+!!r;return i&&(o=2),o&&(e=e.substring(o),t-=o,n-=o),{value:e,start:t,end:n,hasNegation:r}},x=b(e,f,p),S=x.hasNegation;r=x,e=r.value,f=r.start,p=r.end;var C=b(t.lastValue,l.start,l.end),w=C.start,T=C.end,D=C.value,O=e.substring(f,p);e.length&&D.length&&(w>D.length-s.length||T<a.length)&&!(O&&s.startsWith(O))&&(e=D);var k=0;e.startsWith(a)?k+=a.length:f<a.length&&(k=f),e=e.substring(k),p-=k;var A=e.length,j=e.length-s.length;e.endsWith(s)?A=j:(p>j||p>e.length-s.length)&&(A=p),e=e.substring(0,A),e=L(S?`-`+e:e,i),e=(e.match(R(_,!0))||[]).join(``);var M=e.indexOf(_);e=e.replace(new RegExp(u(_),`g`),function(e,t){return t===M?`.`:``});var N=m(e,i),P=N.beforeDecimal,F=N.afterDecimal,z=N.addNegation;return d.end-d.start<l.end-l.start&&P===``&&v&&!parseFloat(F)&&(e=z?`-`:``),e}function V(e,t){var n=t.prefix;n===void 0&&(n=``);var r=t.suffix;r===void 0&&(r=``);var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]===`-`;i.fill(!1,0,Math.min(n.length+ +!!a,e.length));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function H(e){var t=I(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i=``);var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw Error(`
2
- Decimal separator can't be same as thousand separator.
3
- thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
4
- decimalSeparator: `+r+` (default value for decimalSeparator is .)
5
- `);return i.startsWith(`-`)&&a&&(console.error(`
6
- Prefix can't start with '-' when allowNegative is true.
7
- prefix: `+i+`
8
- allowNegative: `+a+`
9
- `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function U(e){e=H(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,a=e.allowNegative,c=e.allowLeadingZeros,u=e.onKeyDown;u===void 0&&(u=i);var d=e.onBlur;d===void 0&&(d=i);var f=e.thousandSeparator,p=e.decimalScale,m=e.fixedDecimalScale,g=e.prefix;g===void 0&&(g=``);var _=e.defaultValue,S=e.value,C=e.valueIsNumericString,w=e.onValueChange,T=n(e,[`decimalSeparator`,`allowedDecimalSeparators`,`thousandsGroupStyle`,`suffix`,`allowNegative`,`allowLeadingZeros`,`onKeyDown`,`onBlur`,`thousandSeparator`,`decimalScale`,`fixedDecimalScale`,`prefix`,`defaultValue`,`value`,`valueIsNumericString`,`onValueChange`]),E=I(e),D=E.decimalSeparator,O=E.allowedDecimalSeparators,k=function(t){return F(t,e)},A=function(t,n){return B(t,n,e)},M=s(S)?_:S,N=C??z(M,g,t);s(S)?s(_)||(N||=typeof _==`number`):N||=typeof S==`number`;var P=function(e){return l(e)?e:(typeof e==`number`&&(e=v(e)),N&&typeof p==`number`?y(e,p,!!m):e)},L=j(P(S),P(_),!!N,k,A,w),R=L[0],U=R.numAsString,W=R.formattedValue,G=L[1];return Object.assign(Object.assign({},T),{value:W,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===D||o(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,i=e.currentValueIndex,a=e.formattedValueIndex,o=t[i],s=r[a],c=x(n,t).to,l=function(e){return A(e).indexOf(`.`)+g.length};return S===0&&m&&p&&t[c.start]===D&&l(t)<i&&l(r)>a?!1:i>=c.start&&i<c.end&&O&&O.includes(o)&&s===D?!0:o===s},onValueChange:G,format:k,removeFormatting:A,getCaretBoundary:function(t){return V(t,e)},onKeyDown:function(e){var t=e.target,n=e.key,r=t.selectionStart,i=t.selectionEnd,o=t.value;if(o===void 0&&(o=``),(n===`Backspace`||n===`Delete`)&&i<g.length&&o!==`-`)e.preventDefault();else if(r!==i)u(e);else{n===`Backspace`&&o[0]===`-`&&r===g.length+1&&a&&b(t,1),p&&m&&(n===`Backspace`&&o[r-1]===D?(b(t,r-1),e.preventDefault()):n===`Delete`&&o[r]===D&&e.preventDefault()),O?.includes(n)&&o[r]===D&&b(t,r+1);var s=f===!0?`,`:f;n===`Backspace`&&o[r-1]===s&&b(t,r-1),n===`Delete`&&o[r]===s&&b(t,r+1),u(e)}},onBlur:function(t){var n=U;n.match(/\d/g)||(n=``),c||(n=h(n)),m&&p&&(n=y(n,p,m)),n!==U&&G({formattedValue:F(n,e),value:n,floatValue:parseFloat(n)},{event:t,source:r.event}),d(t)}})}function W(e){var n=U(e);return t.default.createElement(P,Object.assign({},n))}exports.NumberFormatBase=P,exports.NumericFormat=W,exports.getNumericCaretBoundary=V,exports.numericFormatter=F,exports.removeNumericFormat=B,exports.useNumericFormat=U;
1
+ const require_runtime = require("../../../../../../_virtual/_rolldown/runtime.cjs");
2
+ let react = require("react");
3
+ react = require_runtime.__toESM(react);
4
+ // ../../node_modules/.pnpm/react-number-format@5.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-number-format/dist/react-number-format.es.js
5
+ /**
6
+ * react-number-format - 5.4.5
7
+ * Author : Sudhanshu Yadav
8
+ * Copyright (c) 2016, 2026 to Sudhanshu Yadav, released under the MIT license.
9
+ * https://github.com/s-yadav/react-number-format
10
+ */
11
+ /******************************************************************************
12
+ Copyright (c) Microsoft Corporation.
13
+
14
+ Permission to use, copy, modify, and/or distribute this software for any
15
+ purpose with or without fee is hereby granted.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
18
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
20
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
21
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
22
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
+ PERFORMANCE OF THIS SOFTWARE.
24
+ ***************************************************************************** */
25
+ function __rest(s, e) {
26
+ var t = {};
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
28
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") {
29
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
30
+ }
31
+ return t;
32
+ }
33
+ var SourceType;
34
+ (function(SourceType) {
35
+ SourceType["event"] = "event";
36
+ SourceType["props"] = "prop";
37
+ })(SourceType || (SourceType = {}));
38
+ function noop() {}
39
+ function memoizeOnce(cb) {
40
+ var lastArgs;
41
+ var lastValue = void 0;
42
+ return function() {
43
+ var args = [], len = arguments.length;
44
+ while (len--) args[len] = arguments[len];
45
+ if (lastArgs && args.length === lastArgs.length && args.every(function(value, index) {
46
+ return value === lastArgs[index];
47
+ })) return lastValue;
48
+ lastArgs = args;
49
+ lastValue = cb.apply(void 0, args);
50
+ return lastValue;
51
+ };
52
+ }
53
+ function charIsNumber(char) {
54
+ return !!(char || "").match(/\d/);
55
+ }
56
+ function isNil(val) {
57
+ return val === null || val === void 0;
58
+ }
59
+ function isNanValue(val) {
60
+ return typeof val === "number" && isNaN(val);
61
+ }
62
+ function isNotValidValue(val) {
63
+ return isNil(val) || isNanValue(val) || typeof val === "number" && !isFinite(val);
64
+ }
65
+ function escapeRegExp(str) {
66
+ return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
67
+ }
68
+ function getThousandsGroupRegex(thousandsGroupStyle) {
69
+ switch (thousandsGroupStyle) {
70
+ case "lakh": return /(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;
71
+ case "wan": return /(\d)(?=(\d{4})+(?!\d))/g;
72
+ default: return /(\d)(?=(\d{3})+(?!\d))/g;
73
+ }
74
+ }
75
+ function applyThousandSeparator(str, thousandSeparator, thousandsGroupStyle) {
76
+ var thousandsGroupRegex = getThousandsGroupRegex(thousandsGroupStyle);
77
+ var index = str.search(/[1-9]/);
78
+ index = index === -1 ? str.length : index;
79
+ return str.substring(0, index) + str.substring(index, str.length).replace(thousandsGroupRegex, "$1" + thousandSeparator);
80
+ }
81
+ function usePersistentCallback(cb) {
82
+ var callbackRef = (0, react.useRef)(cb);
83
+ callbackRef.current = cb;
84
+ return (0, react.useRef)(function() {
85
+ var args = [], len = arguments.length;
86
+ while (len--) args[len] = arguments[len];
87
+ return callbackRef.current.apply(callbackRef, args);
88
+ }).current;
89
+ }
90
+ function splitDecimal(numStr, allowNegative) {
91
+ if (allowNegative === void 0) allowNegative = true;
92
+ var hasNegation = numStr[0] === "-";
93
+ var addNegation = hasNegation && allowNegative;
94
+ numStr = numStr.replace("-", "");
95
+ var parts = numStr.split(".");
96
+ return {
97
+ beforeDecimal: parts[0],
98
+ afterDecimal: parts[1] || "",
99
+ hasNegation,
100
+ addNegation
101
+ };
102
+ }
103
+ function fixLeadingZero(numStr) {
104
+ if (!numStr) return numStr;
105
+ var isNegative = numStr[0] === "-";
106
+ if (isNegative) numStr = numStr.substring(1, numStr.length);
107
+ var parts = numStr.split(".");
108
+ var beforeDecimal = parts[0].replace(/^0+/, "") || "0";
109
+ var afterDecimal = parts[1] || "";
110
+ return (isNegative ? "-" : "") + beforeDecimal + (afterDecimal ? "." + afterDecimal : "");
111
+ }
112
+ /**
113
+ * limit decimal numbers to given scale
114
+ * Not used .fixedTo because that will break with big numbers
115
+ */
116
+ function limitToScale(numStr, scale, fixedDecimalScale) {
117
+ var str = "";
118
+ var filler = fixedDecimalScale ? "0" : "";
119
+ for (var i = 0; i <= scale - 1; i++) str += numStr[i] || filler;
120
+ return str;
121
+ }
122
+ function repeat(str, count) {
123
+ return Array(count + 1).join(str);
124
+ }
125
+ function toNumericString(num) {
126
+ var _num = num + "";
127
+ var sign = _num[0] === "-" ? "-" : "";
128
+ if (sign) _num = _num.substring(1);
129
+ var ref = _num.split(/[eE]/g);
130
+ var coefficient = ref[0];
131
+ var exponent = ref[1];
132
+ exponent = Number(exponent);
133
+ if (!exponent) return sign + coefficient;
134
+ coefficient = coefficient.replace(".", "");
135
+ /**
136
+ * for scientific notation the current decimal index will be after first number (index 0)
137
+ * So effective decimal index will always be 1 + exponent value
138
+ */
139
+ var decimalIndex = 1 + exponent;
140
+ var coffiecientLn = coefficient.length;
141
+ if (decimalIndex < 0) coefficient = "0." + repeat("0", Math.abs(decimalIndex)) + coefficient;
142
+ else if (decimalIndex >= coffiecientLn) coefficient = coefficient + repeat("0", decimalIndex - coffiecientLn);
143
+ else coefficient = (coefficient.substring(0, decimalIndex) || "0") + "." + coefficient.substring(decimalIndex);
144
+ return sign + coefficient;
145
+ }
146
+ /**
147
+ * This method is required to round prop value to given scale.
148
+ * Not used .round or .fixedTo because that will break with big numbers
149
+ */
150
+ function roundToPrecision(numStr, scale, fixedDecimalScale) {
151
+ if (["", "-"].indexOf(numStr) !== -1) return numStr;
152
+ var shouldHaveDecimalSeparator = (numStr.indexOf(".") !== -1 || fixedDecimalScale) && scale;
153
+ var ref = splitDecimal(numStr);
154
+ var beforeDecimal = ref.beforeDecimal;
155
+ var afterDecimal = ref.afterDecimal;
156
+ var hasNegation = ref.hasNegation;
157
+ var floatValue = parseFloat("0." + (afterDecimal || "0"));
158
+ var roundedDecimalParts = (afterDecimal.length <= scale ? "0." + afterDecimal : floatValue.toFixed(scale)).split(".");
159
+ var intPart = beforeDecimal;
160
+ if (beforeDecimal && Number(roundedDecimalParts[0])) intPart = beforeDecimal.split("").reverse().reduce(function(roundedStr, current, idx) {
161
+ if (roundedStr.length > idx) return (Number(roundedStr[0]) + Number(current)).toString() + roundedStr.substring(1, roundedStr.length);
162
+ return current + roundedStr;
163
+ }, roundedDecimalParts[0]);
164
+ var decimalPart = limitToScale(roundedDecimalParts[1] || "", scale, fixedDecimalScale);
165
+ var negation = hasNegation ? "-" : "";
166
+ var decimalSeparator = shouldHaveDecimalSeparator ? "." : "";
167
+ return "" + negation + intPart + decimalSeparator + decimalPart;
168
+ }
169
+ /** set the caret positon in an input field **/
170
+ function setCaretPosition(el, caretPos) {
171
+ el.value = el.value;
172
+ if (el !== null) {
173
+ if (el.createTextRange) {
174
+ var range = el.createTextRange();
175
+ range.move("character", caretPos);
176
+ range.select();
177
+ return true;
178
+ }
179
+ if (el.selectionStart || el.selectionStart === 0) {
180
+ el.focus();
181
+ el.setSelectionRange(caretPos, caretPos);
182
+ return true;
183
+ }
184
+ el.focus();
185
+ return false;
186
+ }
187
+ }
188
+ /**
189
+ * TODO: remove dependency of findChangeRange, findChangedRangeFromCaretPositions is better way to find what is changed
190
+ * currently this is mostly required by test and isCharacterSame util
191
+ * Given previous value and newValue it returns the index
192
+ * start - end to which values have changed.
193
+ * This function makes assumption about only consecutive
194
+ * characters are changed which is correct assumption for caret input.
195
+ */
196
+ var findChangeRange = memoizeOnce(function(prevValue, newValue) {
197
+ var i = 0, j = 0;
198
+ var prevLength = prevValue.length;
199
+ var newLength = newValue.length;
200
+ while (prevValue[i] === newValue[i] && i < prevLength) i++;
201
+ while (prevValue[prevLength - 1 - j] === newValue[newLength - 1 - j] && newLength - j > i && prevLength - j > i) j++;
202
+ return {
203
+ from: {
204
+ start: i,
205
+ end: prevLength - j
206
+ },
207
+ to: {
208
+ start: i,
209
+ end: newLength - j
210
+ }
211
+ };
212
+ });
213
+ var findChangedRangeFromCaretPositions = function(lastCaretPositions, currentCaretPosition) {
214
+ var startPosition = Math.min(lastCaretPositions.selectionStart, currentCaretPosition);
215
+ return {
216
+ from: {
217
+ start: startPosition,
218
+ end: lastCaretPositions.selectionEnd
219
+ },
220
+ to: {
221
+ start: startPosition,
222
+ end: currentCaretPosition
223
+ }
224
+ };
225
+ };
226
+ function clamp(num, min, max) {
227
+ return Math.min(Math.max(num, min), max);
228
+ }
229
+ function geInputCaretPosition(el) {
230
+ return Math.max(el.selectionStart, el.selectionEnd);
231
+ }
232
+ function addInputMode() {
233
+ return typeof navigator !== "undefined" && !(navigator.platform && /iPhone|iPod/.test(navigator.platform));
234
+ }
235
+ function getDefaultChangeMeta(value) {
236
+ return {
237
+ from: {
238
+ start: 0,
239
+ end: 0
240
+ },
241
+ to: {
242
+ start: 0,
243
+ end: value.length
244
+ },
245
+ lastValue: ""
246
+ };
247
+ }
248
+ function defaultIsCharacterSame(ref) {
249
+ var currentValue = ref.currentValue;
250
+ var formattedValue = ref.formattedValue;
251
+ var currentValueIndex = ref.currentValueIndex;
252
+ var formattedValueIndex = ref.formattedValueIndex;
253
+ return currentValue[currentValueIndex] === formattedValue[formattedValueIndex];
254
+ }
255
+ function getCaretPosition(newFormattedValue, lastFormattedValue, curValue, curCaretPos, boundary, isValidInputCharacter, isCharacterSame) {
256
+ if (isCharacterSame === void 0) isCharacterSame = defaultIsCharacterSame;
257
+ /**
258
+ * if something got inserted on empty value, add the formatted character before the current value,
259
+ * This is to avoid the case where typed character is present on format characters
260
+ */
261
+ var firstAllowedPosition = boundary.findIndex(function(b) {
262
+ return b;
263
+ });
264
+ var prefixFormat = newFormattedValue.slice(0, firstAllowedPosition);
265
+ if (!lastFormattedValue && !curValue.startsWith(prefixFormat)) {
266
+ lastFormattedValue = prefixFormat;
267
+ curValue = prefixFormat + curValue;
268
+ curCaretPos = curCaretPos + prefixFormat.length;
269
+ }
270
+ var curValLn = curValue.length;
271
+ var formattedValueLn = newFormattedValue.length;
272
+ var addedIndexMap = {};
273
+ var indexMap = new Array(curValLn);
274
+ for (var i = 0; i < curValLn; i++) {
275
+ indexMap[i] = -1;
276
+ for (var j = 0, jLn = formattedValueLn; j < jLn; j++) if (isCharacterSame({
277
+ currentValue: curValue,
278
+ lastValue: lastFormattedValue,
279
+ formattedValue: newFormattedValue,
280
+ currentValueIndex: i,
281
+ formattedValueIndex: j
282
+ }) && addedIndexMap[j] !== true) {
283
+ indexMap[i] = j;
284
+ addedIndexMap[j] = true;
285
+ break;
286
+ }
287
+ }
288
+ /**
289
+ * For current caret position find closest characters (left and right side)
290
+ * which are properly mapped to formatted value.
291
+ * The idea is that the new caret position will exist always in the boundary of
292
+ * that mapped index
293
+ */
294
+ var pos = curCaretPos;
295
+ while (pos < curValLn && (indexMap[pos] === -1 || !isValidInputCharacter(curValue[pos]))) pos++;
296
+ var endIndex = pos === curValLn || indexMap[pos] === -1 ? formattedValueLn : indexMap[pos];
297
+ pos = curCaretPos - 1;
298
+ while (pos > 0 && indexMap[pos] === -1) pos--;
299
+ var startIndex = pos === -1 || indexMap[pos] === -1 ? 0 : indexMap[pos] + 1;
300
+ /**
301
+ * case where a char is added on suffix and removed from middle, example 2sq345 becoming $2,345 sq
302
+ * there is still a mapping but the order of start index and end index is changed
303
+ */
304
+ if (startIndex > endIndex) return endIndex;
305
+ /**
306
+ * given the current caret position if it closer to startIndex
307
+ * keep the new caret position on start index or keep it closer to endIndex
308
+ */
309
+ return curCaretPos - startIndex < endIndex - curCaretPos ? startIndex : endIndex;
310
+ }
311
+ function getCaretPosInBoundary(value, caretPos, boundary, direction) {
312
+ var valLn = value.length;
313
+ caretPos = clamp(caretPos, 0, valLn);
314
+ if (direction === "left") {
315
+ while (caretPos >= 0 && !boundary[caretPos]) caretPos--;
316
+ if (caretPos === -1) caretPos = boundary.indexOf(true);
317
+ } else {
318
+ while (caretPos <= valLn && !boundary[caretPos]) caretPos++;
319
+ if (caretPos > valLn) caretPos = boundary.lastIndexOf(true);
320
+ }
321
+ if (caretPos === -1) caretPos = valLn;
322
+ return caretPos;
323
+ }
324
+ function caretUnknownFormatBoundary(formattedValue) {
325
+ var boundaryAry = Array.from({ length: formattedValue.length + 1 }).map(function() {
326
+ return true;
327
+ });
328
+ for (var i = 0, ln = boundaryAry.length; i < ln; i++) boundaryAry[i] = Boolean(charIsNumber(formattedValue[i]) || charIsNumber(formattedValue[i - 1]));
329
+ return boundaryAry;
330
+ }
331
+ function useInternalValues(value, defaultValue, valueIsNumericString, format, removeFormatting, onValueChange) {
332
+ if (onValueChange === void 0) onValueChange = noop;
333
+ var getValues = usePersistentCallback(function(value, valueIsNumericString) {
334
+ var formattedValue, numAsString;
335
+ if (isNotValidValue(value)) {
336
+ numAsString = "";
337
+ formattedValue = "";
338
+ } else if (typeof value === "number" || valueIsNumericString) {
339
+ numAsString = typeof value === "number" ? toNumericString(value) : value;
340
+ formattedValue = format(numAsString);
341
+ } else {
342
+ numAsString = removeFormatting(value, void 0);
343
+ formattedValue = format(numAsString);
344
+ }
345
+ return {
346
+ formattedValue,
347
+ numAsString
348
+ };
349
+ });
350
+ var ref = (0, react.useState)(function() {
351
+ return getValues(isNil(value) ? defaultValue : value, valueIsNumericString);
352
+ });
353
+ var values = ref[0];
354
+ var setValues = ref[1];
355
+ var _onValueChange = usePersistentCallback(function(newValues, sourceInfo) {
356
+ if (newValues.formattedValue !== values.formattedValue) setValues({
357
+ formattedValue: newValues.formattedValue,
358
+ numAsString: newValues.value
359
+ });
360
+ onValueChange(newValues, sourceInfo);
361
+ });
362
+ var _value = value;
363
+ var _valueIsNumericString = valueIsNumericString;
364
+ if (isNil(value)) {
365
+ _value = values.numAsString;
366
+ _valueIsNumericString = true;
367
+ }
368
+ var newValues = getValues(_value, _valueIsNumericString);
369
+ (0, react.useMemo)(function() {
370
+ setValues(newValues);
371
+ }, [newValues.formattedValue]);
372
+ /**
373
+ * When only a defaultValue is provided (value prop is nil), the initial formatted value is
374
+ * derived by the library — the parent has not yet been informed of this formatted result.
375
+ * Fire onValueChange once on mount so the parent can sync to the formatted value.
376
+ */
377
+ (0, react.useEffect)(function() {
378
+ if (!isNil(defaultValue) && isNil(value) && values.formattedValue !== "") {
379
+ var floatValue = parseFloat(values.numAsString);
380
+ _onValueChange({
381
+ formattedValue: values.formattedValue,
382
+ value: values.numAsString,
383
+ floatValue: isNaN(floatValue) ? void 0 : floatValue
384
+ }, {
385
+ event: void 0,
386
+ source: SourceType.props
387
+ });
388
+ }
389
+ }, []);
390
+ return [values, _onValueChange];
391
+ }
392
+ function defaultRemoveFormatting(value) {
393
+ return value.replace(/[^0-9]/g, "");
394
+ }
395
+ function defaultFormat(value) {
396
+ return value;
397
+ }
398
+ function NumberFormatBase(props) {
399
+ var type = props.type;
400
+ if (type === void 0) type = "text";
401
+ var displayType = props.displayType;
402
+ if (displayType === void 0) displayType = "input";
403
+ var customInput = props.customInput;
404
+ var renderText = props.renderText;
405
+ var getInputRef = props.getInputRef;
406
+ var format = props.format;
407
+ if (format === void 0) format = defaultFormat;
408
+ var removeFormatting = props.removeFormatting;
409
+ if (removeFormatting === void 0) removeFormatting = defaultRemoveFormatting;
410
+ var defaultValue = props.defaultValue;
411
+ var valueIsNumericString = props.valueIsNumericString;
412
+ var onValueChange = props.onValueChange;
413
+ var isAllowed = props.isAllowed;
414
+ var onChange = props.onChange;
415
+ if (onChange === void 0) onChange = noop;
416
+ var onKeyDown = props.onKeyDown;
417
+ if (onKeyDown === void 0) onKeyDown = noop;
418
+ var onMouseUp = props.onMouseUp;
419
+ if (onMouseUp === void 0) onMouseUp = noop;
420
+ var onFocus = props.onFocus;
421
+ if (onFocus === void 0) onFocus = noop;
422
+ var onBlur = props.onBlur;
423
+ if (onBlur === void 0) onBlur = noop;
424
+ var propValue = props.value;
425
+ var getCaretBoundary = props.getCaretBoundary;
426
+ if (getCaretBoundary === void 0) getCaretBoundary = caretUnknownFormatBoundary;
427
+ var isValidInputCharacter = props.isValidInputCharacter;
428
+ if (isValidInputCharacter === void 0) isValidInputCharacter = charIsNumber;
429
+ var isCharacterSame = props.isCharacterSame;
430
+ var otherProps = __rest(props, [
431
+ "type",
432
+ "displayType",
433
+ "customInput",
434
+ "renderText",
435
+ "getInputRef",
436
+ "format",
437
+ "removeFormatting",
438
+ "defaultValue",
439
+ "valueIsNumericString",
440
+ "onValueChange",
441
+ "isAllowed",
442
+ "onChange",
443
+ "onKeyDown",
444
+ "onMouseUp",
445
+ "onFocus",
446
+ "onBlur",
447
+ "value",
448
+ "getCaretBoundary",
449
+ "isValidInputCharacter",
450
+ "isCharacterSame"
451
+ ]);
452
+ var ref = useInternalValues(propValue, defaultValue, Boolean(valueIsNumericString), format, removeFormatting, onValueChange);
453
+ var ref_0 = ref[0];
454
+ var formattedValue = ref_0.formattedValue;
455
+ var numAsString = ref_0.numAsString;
456
+ var onFormattedValueChange = ref[1];
457
+ var caretPositionBeforeChange = (0, react.useRef)();
458
+ var lastUpdatedValue = (0, react.useRef)({
459
+ formattedValue,
460
+ numAsString
461
+ });
462
+ var _onValueChange = function(values, source) {
463
+ lastUpdatedValue.current = {
464
+ formattedValue: values.formattedValue,
465
+ numAsString: values.value
466
+ };
467
+ onFormattedValueChange(values, source);
468
+ };
469
+ var ref$1 = (0, react.useState)(false);
470
+ var mounted = ref$1[0];
471
+ var setMounted = ref$1[1];
472
+ var focusedElm = (0, react.useRef)(null);
473
+ var timeout = (0, react.useRef)({
474
+ setCaretTimeout: null,
475
+ focusTimeout: null
476
+ });
477
+ (0, react.useEffect)(function() {
478
+ setMounted(true);
479
+ return function() {
480
+ clearTimeout(timeout.current.setCaretTimeout);
481
+ clearTimeout(timeout.current.focusTimeout);
482
+ };
483
+ }, []);
484
+ var _format = format;
485
+ var getValueObject = function(formattedValue, numAsString) {
486
+ var floatValue = parseFloat(numAsString);
487
+ return {
488
+ formattedValue,
489
+ value: numAsString,
490
+ floatValue: isNaN(floatValue) ? void 0 : floatValue
491
+ };
492
+ };
493
+ var setPatchedCaretPosition = function(el, caretPos, currentValue) {
494
+ if (el.selectionStart === 0 && el.selectionEnd === el.value.length) return;
495
+ setCaretPosition(el, caretPos);
496
+ timeout.current.setCaretTimeout = setTimeout(function() {
497
+ if (el.value === currentValue && el.selectionStart !== caretPos) setCaretPosition(el, caretPos);
498
+ }, 0);
499
+ };
500
+ var correctCaretPosition = function(value, caretPos, direction) {
501
+ return getCaretPosInBoundary(value, caretPos, getCaretBoundary(value), direction);
502
+ };
503
+ var getNewCaretPosition = function(inputValue, newFormattedValue, caretPos) {
504
+ var caretBoundary = getCaretBoundary(newFormattedValue);
505
+ var updatedCaretPos = getCaretPosition(newFormattedValue, formattedValue, inputValue, caretPos, caretBoundary, isValidInputCharacter, isCharacterSame);
506
+ updatedCaretPos = getCaretPosInBoundary(newFormattedValue, updatedCaretPos, caretBoundary);
507
+ return updatedCaretPos;
508
+ };
509
+ var updateValueAndCaretPosition = function(params) {
510
+ var newFormattedValue = params.formattedValue;
511
+ if (newFormattedValue === void 0) newFormattedValue = "";
512
+ var input = params.input;
513
+ var source = params.source;
514
+ var event = params.event;
515
+ var numAsString = params.numAsString;
516
+ var caretPos;
517
+ if (input) {
518
+ var inputValue = params.inputValue || input.value;
519
+ var currentCaretPosition = geInputCaretPosition(input);
520
+ /**
521
+ * set the value imperatively, this is required for IE fix
522
+ * This is also required as if new caret position is beyond the previous value.
523
+ * Caret position will not be set correctly
524
+ */
525
+ input.value = newFormattedValue;
526
+ caretPos = getNewCaretPosition(inputValue, newFormattedValue, currentCaretPosition);
527
+ if (caretPos !== void 0) setPatchedCaretPosition(input, caretPos, newFormattedValue);
528
+ }
529
+ if (newFormattedValue !== formattedValue) _onValueChange(getValueObject(newFormattedValue, numAsString), {
530
+ event,
531
+ source
532
+ });
533
+ };
534
+ /**
535
+ * if the formatted value is not synced to parent, or if the formatted value is different from last synced value sync it
536
+ * if the formatting props is removed, in which case last formatted value will be different from the numeric string value
537
+ * in such case we need to inform the parent.
538
+ */
539
+ (0, react.useEffect)(function() {
540
+ var ref = lastUpdatedValue.current;
541
+ var lastFormattedValue = ref.formattedValue;
542
+ var lastNumAsString = ref.numAsString;
543
+ if (formattedValue !== lastFormattedValue || numAsString !== lastNumAsString) _onValueChange(getValueObject(formattedValue, numAsString), {
544
+ event: void 0,
545
+ source: SourceType.props
546
+ });
547
+ }, [formattedValue, numAsString]);
548
+ var currentCaretPosition = focusedElm.current ? geInputCaretPosition(focusedElm.current) : void 0;
549
+ (typeof window !== "undefined" ? react.useLayoutEffect : react.useEffect)(function() {
550
+ var input = focusedElm.current;
551
+ if (formattedValue !== lastUpdatedValue.current.formattedValue && input) {
552
+ var caretPos = getNewCaretPosition(lastUpdatedValue.current.formattedValue, formattedValue, currentCaretPosition);
553
+ /**
554
+ * set the value imperatively, as we set the caret position as well imperatively.
555
+ * This is to keep value and caret position in sync
556
+ */
557
+ input.value = formattedValue;
558
+ setPatchedCaretPosition(input, caretPos, formattedValue);
559
+ }
560
+ }, [formattedValue]);
561
+ var formatInputValue = function(inputValue, event, source) {
562
+ var input = event.target;
563
+ var changeRange = caretPositionBeforeChange.current ? findChangedRangeFromCaretPositions(caretPositionBeforeChange.current, input.selectionEnd) : findChangeRange(formattedValue, inputValue);
564
+ var changeMeta = Object.assign(Object.assign({}, changeRange), { lastValue: formattedValue });
565
+ var _numAsString = removeFormatting(inputValue, changeMeta);
566
+ var _formattedValue = _format(_numAsString);
567
+ _numAsString = removeFormatting(_formattedValue, void 0);
568
+ if (isAllowed && !isAllowed(getValueObject(_formattedValue, _numAsString))) {
569
+ var input$1 = event.target;
570
+ var caretPos = getNewCaretPosition(inputValue, formattedValue, geInputCaretPosition(input$1));
571
+ input$1.value = formattedValue;
572
+ setPatchedCaretPosition(input$1, caretPos, formattedValue);
573
+ return false;
574
+ }
575
+ updateValueAndCaretPosition({
576
+ formattedValue: _formattedValue,
577
+ numAsString: _numAsString,
578
+ inputValue,
579
+ event,
580
+ source,
581
+ input: event.target
582
+ });
583
+ return true;
584
+ };
585
+ var setCaretPositionInfoBeforeChange = function(el, endOffset) {
586
+ if (endOffset === void 0) endOffset = 0;
587
+ caretPositionBeforeChange.current = {
588
+ selectionStart: el.selectionStart,
589
+ selectionEnd: el.selectionEnd + endOffset
590
+ };
591
+ };
592
+ var _onChange = function(e) {
593
+ var inputValue = e.target.value;
594
+ if (formatInputValue(inputValue, e, SourceType.event)) onChange(e);
595
+ caretPositionBeforeChange.current = void 0;
596
+ };
597
+ var _onKeyDown = function(e) {
598
+ var el = e.target;
599
+ var key = e.key;
600
+ var selectionStart = el.selectionStart;
601
+ var selectionEnd = el.selectionEnd;
602
+ var value = el.value;
603
+ if (value === void 0) value = "";
604
+ var expectedCaretPosition;
605
+ if (key === "ArrowLeft" || key === "Backspace") expectedCaretPosition = Math.max(selectionStart - 1, 0);
606
+ else if (key === "ArrowRight") expectedCaretPosition = Math.min(selectionStart + 1, value.length);
607
+ else if (key === "Delete") expectedCaretPosition = selectionStart;
608
+ var endOffset = 0;
609
+ if (key === "Delete" && selectionStart === selectionEnd) endOffset = 1;
610
+ var isArrowKey = key === "ArrowLeft" || key === "ArrowRight";
611
+ if (expectedCaretPosition === void 0 || selectionStart !== selectionEnd && !isArrowKey) {
612
+ onKeyDown(e);
613
+ setCaretPositionInfoBeforeChange(el, endOffset);
614
+ return;
615
+ }
616
+ var newCaretPosition = expectedCaretPosition;
617
+ if (isArrowKey) {
618
+ newCaretPosition = correctCaretPosition(value, expectedCaretPosition, key === "ArrowLeft" ? "left" : "right");
619
+ if (newCaretPosition !== expectedCaretPosition) e.preventDefault();
620
+ } else if (key === "Delete" && !isValidInputCharacter(value[expectedCaretPosition])) newCaretPosition = correctCaretPosition(value, expectedCaretPosition, "right");
621
+ else if (key === "Backspace" && !isValidInputCharacter(value[expectedCaretPosition])) newCaretPosition = correctCaretPosition(value, expectedCaretPosition, "left");
622
+ if (newCaretPosition !== expectedCaretPosition) setPatchedCaretPosition(el, newCaretPosition, value);
623
+ onKeyDown(e);
624
+ setCaretPositionInfoBeforeChange(el, endOffset);
625
+ };
626
+ /** required to handle the caret position when click anywhere within the input **/
627
+ var _onMouseUp = function(e) {
628
+ var el = e.target;
629
+ /**
630
+ * NOTE: we have to give default value for value as in case when custom input is provided
631
+ * value can come as undefined when nothing is provided on value prop.
632
+ */
633
+ var correctCaretPositionIfRequired = function() {
634
+ var selectionStart = el.selectionStart;
635
+ var selectionEnd = el.selectionEnd;
636
+ var value = el.value;
637
+ if (value === void 0) value = "";
638
+ if (selectionStart === selectionEnd) {
639
+ var caretPosition = correctCaretPosition(value, selectionStart);
640
+ if (caretPosition !== selectionStart) setPatchedCaretPosition(el, caretPosition, value);
641
+ }
642
+ };
643
+ correctCaretPositionIfRequired();
644
+ requestAnimationFrame(function() {
645
+ correctCaretPositionIfRequired();
646
+ });
647
+ onMouseUp(e);
648
+ setCaretPositionInfoBeforeChange(el);
649
+ };
650
+ var _onFocus = function(e) {
651
+ if (e.persist) e.persist();
652
+ var el = e.target;
653
+ var currentTarget = e.currentTarget;
654
+ focusedElm.current = el;
655
+ timeout.current.focusTimeout = setTimeout(function() {
656
+ var selectionStart = el.selectionStart;
657
+ var selectionEnd = el.selectionEnd;
658
+ var value = el.value;
659
+ if (value === void 0) value = "";
660
+ var caretPosition = correctCaretPosition(value, selectionStart);
661
+ if (caretPosition !== selectionStart && !(selectionStart === 0 && selectionEnd === value.length)) setPatchedCaretPosition(el, caretPosition, value);
662
+ onFocus(Object.assign(Object.assign({}, e), { currentTarget }));
663
+ }, 0);
664
+ };
665
+ var _onBlur = function(e) {
666
+ focusedElm.current = null;
667
+ clearTimeout(timeout.current.focusTimeout);
668
+ clearTimeout(timeout.current.setCaretTimeout);
669
+ onBlur(e);
670
+ };
671
+ var inputMode = mounted && addInputMode() ? "numeric" : void 0;
672
+ var inputProps = Object.assign({ inputMode }, otherProps, {
673
+ type,
674
+ value: formattedValue,
675
+ onChange: _onChange,
676
+ onKeyDown: _onKeyDown,
677
+ onMouseUp: _onMouseUp,
678
+ onFocus: _onFocus,
679
+ onBlur: _onBlur
680
+ });
681
+ if (displayType === "text") return renderText ? react.default.createElement(react.default.Fragment, null, renderText(formattedValue, otherProps) || null) : react.default.createElement("span", Object.assign({}, otherProps, { ref: getInputRef }), formattedValue);
682
+ else if (customInput) {
683
+ var CustomInput = customInput;
684
+ return react.default.createElement(CustomInput, Object.assign({}, inputProps, { ref: getInputRef }));
685
+ }
686
+ return react.default.createElement("input", Object.assign({}, inputProps, { ref: getInputRef }));
687
+ }
688
+ function format(numStr, props) {
689
+ var decimalScale = props.decimalScale;
690
+ var fixedDecimalScale = props.fixedDecimalScale;
691
+ var prefix = props.prefix;
692
+ if (prefix === void 0) prefix = "";
693
+ var suffix = props.suffix;
694
+ if (suffix === void 0) suffix = "";
695
+ var allowNegative = props.allowNegative;
696
+ var thousandsGroupStyle = props.thousandsGroupStyle;
697
+ if (thousandsGroupStyle === void 0) thousandsGroupStyle = "thousand";
698
+ if (numStr === "" || numStr === "-") return numStr;
699
+ var ref = getSeparators(props);
700
+ var thousandSeparator = ref.thousandSeparator;
701
+ var decimalSeparator = ref.decimalSeparator;
702
+ /**
703
+ * Keep the decimal separator
704
+ * when decimalScale is not defined or non zero and the numStr has decimal in it
705
+ * Or if decimalScale is > 0 and fixeDecimalScale is true (even if numStr has no decimal)
706
+ */
707
+ var hasDecimalSeparator = decimalScale !== 0 && numStr.indexOf(".") !== -1 || decimalScale && fixedDecimalScale;
708
+ var ref$1 = splitDecimal(numStr, allowNegative);
709
+ var beforeDecimal = ref$1.beforeDecimal;
710
+ var afterDecimal = ref$1.afterDecimal;
711
+ var addNegation = ref$1.addNegation;
712
+ if (decimalScale !== void 0) afterDecimal = limitToScale(afterDecimal, decimalScale, !!fixedDecimalScale);
713
+ if (thousandSeparator) beforeDecimal = applyThousandSeparator(beforeDecimal, thousandSeparator, thousandsGroupStyle);
714
+ if (prefix) beforeDecimal = prefix + beforeDecimal;
715
+ if (suffix) afterDecimal = afterDecimal + suffix;
716
+ if (addNegation) beforeDecimal = "-" + beforeDecimal;
717
+ numStr = beforeDecimal + (hasDecimalSeparator && decimalSeparator || "") + afterDecimal;
718
+ return numStr;
719
+ }
720
+ function getSeparators(props) {
721
+ var decimalSeparator = props.decimalSeparator;
722
+ if (decimalSeparator === void 0) decimalSeparator = ".";
723
+ var thousandSeparator = props.thousandSeparator;
724
+ var allowedDecimalSeparators = props.allowedDecimalSeparators;
725
+ if (thousandSeparator === true) thousandSeparator = ",";
726
+ if (!allowedDecimalSeparators) allowedDecimalSeparators = [decimalSeparator, "."];
727
+ return {
728
+ decimalSeparator,
729
+ thousandSeparator,
730
+ allowedDecimalSeparators
731
+ };
732
+ }
733
+ function handleNegation(value, allowNegative) {
734
+ if (value === void 0) value = "";
735
+ var negationRegex = /* @__PURE__ */ new RegExp("(-)");
736
+ var doubleNegationRegex = /* @__PURE__ */ new RegExp("(-)(.)*(-)");
737
+ var hasNegation = negationRegex.test(value);
738
+ var removeNegation = doubleNegationRegex.test(value);
739
+ value = value.replace(/-/g, "");
740
+ if (hasNegation && !removeNegation && allowNegative) value = "-" + value;
741
+ return value;
742
+ }
743
+ function getNumberRegex(decimalSeparator, global) {
744
+ return new RegExp("(^-)|[0-9]|" + escapeRegExp(decimalSeparator), global ? "g" : void 0);
745
+ }
746
+ function isNumericString(val, prefix, suffix) {
747
+ if (val === "") return true;
748
+ return !(prefix === null || prefix === void 0 ? void 0 : prefix.match(/\d/)) && !(suffix === null || suffix === void 0 ? void 0 : suffix.match(/\d/)) && typeof val === "string" && !isNaN(Number(val));
749
+ }
750
+ function removeFormatting(value, changeMeta, props) {
751
+ var assign;
752
+ if (changeMeta === void 0) changeMeta = getDefaultChangeMeta(value);
753
+ var allowNegative = props.allowNegative;
754
+ var prefix = props.prefix;
755
+ if (prefix === void 0) prefix = "";
756
+ var suffix = props.suffix;
757
+ if (suffix === void 0) suffix = "";
758
+ var decimalScale = props.decimalScale;
759
+ var from = changeMeta.from;
760
+ var to = changeMeta.to;
761
+ var start = to.start;
762
+ var end = to.end;
763
+ var ref = getSeparators(props);
764
+ var allowedDecimalSeparators = ref.allowedDecimalSeparators;
765
+ var decimalSeparator = ref.decimalSeparator;
766
+ var isBeforeDecimalSeparator = value[end] === decimalSeparator;
767
+ /**
768
+ * If only a number is added on empty input which matches with the prefix or suffix,
769
+ * then don't remove it, just return the same
770
+ */
771
+ if (charIsNumber(value) && (value === prefix || value === suffix) && changeMeta.lastValue === "") return value;
772
+ /** Check for any allowed decimal separator is added in the numeric format and replace it with decimal separator */
773
+ if (end - start === 1 && allowedDecimalSeparators.indexOf(value[start]) !== -1) {
774
+ var separator = decimalScale === 0 ? "" : decimalSeparator;
775
+ value = value.substring(0, start) + separator + value.substring(start + 1, value.length);
776
+ }
777
+ var stripNegation = function(value, start, end) {
778
+ /**
779
+ * if prefix starts with - we don't allow negative number to avoid confusion
780
+ * if suffix starts with - and the value length is same as suffix length, then the - sign is from the suffix
781
+ * In other cases, if the value starts with - then it is a negation
782
+ */
783
+ var hasNegation = false;
784
+ var hasDoubleNegation = false;
785
+ if (prefix.startsWith("-")) hasNegation = false;
786
+ else if (value.startsWith("--")) {
787
+ hasNegation = false;
788
+ hasDoubleNegation = true;
789
+ } else if (suffix.startsWith("-") && value.length === suffix.length) hasNegation = false;
790
+ else if (value[0] === "-") hasNegation = true;
791
+ var charsToRemove = hasNegation ? 1 : 0;
792
+ if (hasDoubleNegation) charsToRemove = 2;
793
+ if (charsToRemove) {
794
+ value = value.substring(charsToRemove);
795
+ start -= charsToRemove;
796
+ end -= charsToRemove;
797
+ }
798
+ return {
799
+ value,
800
+ start,
801
+ end,
802
+ hasNegation
803
+ };
804
+ };
805
+ var toMetadata = stripNegation(value, start, end);
806
+ var hasNegation = toMetadata.hasNegation;
807
+ assign = toMetadata, value = assign.value, start = assign.start, end = assign.end;
808
+ var ref$1 = stripNegation(changeMeta.lastValue, from.start, from.end);
809
+ var fromStart = ref$1.start;
810
+ var fromEnd = ref$1.end;
811
+ var lastValue = ref$1.value;
812
+ var updatedSuffixPart = value.substring(start, end);
813
+ if (value.length && lastValue.length && (fromStart > lastValue.length - suffix.length || fromEnd < prefix.length) && !(updatedSuffixPart && suffix.startsWith(updatedSuffixPart))) value = lastValue;
814
+ /**
815
+ * remove prefix
816
+ * Remove whole prefix part if its present on the value
817
+ * If the prefix is partially deleted (in which case change start index will be less the prefix length)
818
+ * Remove only partial part of prefix.
819
+ */
820
+ var startIndex = 0;
821
+ if (value.startsWith(prefix)) startIndex += prefix.length;
822
+ else if (start < prefix.length) startIndex = start;
823
+ value = value.substring(startIndex);
824
+ end -= startIndex;
825
+ /**
826
+ * Remove suffix
827
+ * Remove whole suffix part if its present on the value
828
+ * If the suffix is partially deleted (in which case change end index will be greater than the suffixStartIndex)
829
+ * remove the partial part of suffix
830
+ */
831
+ var endIndex = value.length;
832
+ var suffixStartIndex = value.length - suffix.length;
833
+ if (value.endsWith(suffix)) endIndex = suffixStartIndex;
834
+ else if (end > suffixStartIndex) endIndex = end;
835
+ else if (end > value.length - suffix.length) endIndex = end;
836
+ value = value.substring(0, endIndex);
837
+ value = handleNegation(hasNegation ? "-" + value : value, allowNegative);
838
+ value = (value.match(getNumberRegex(decimalSeparator, true)) || []).join("");
839
+ var firstIndex = value.indexOf(decimalSeparator);
840
+ value = value.replace(new RegExp(escapeRegExp(decimalSeparator), "g"), function(match, index) {
841
+ return index === firstIndex ? "." : "";
842
+ });
843
+ var ref$2 = splitDecimal(value, allowNegative);
844
+ var beforeDecimal = ref$2.beforeDecimal;
845
+ var afterDecimal = ref$2.afterDecimal;
846
+ var addNegation = ref$2.addNegation;
847
+ if (to.end - to.start < from.end - from.start && beforeDecimal === "" && isBeforeDecimalSeparator && !parseFloat(afterDecimal)) value = addNegation ? "-" : "";
848
+ return value;
849
+ }
850
+ function getCaretBoundary(formattedValue, props) {
851
+ var prefix = props.prefix;
852
+ if (prefix === void 0) prefix = "";
853
+ var suffix = props.suffix;
854
+ if (suffix === void 0) suffix = "";
855
+ var boundaryAry = Array.from({ length: formattedValue.length + 1 }).map(function() {
856
+ return true;
857
+ });
858
+ var hasNegation = formattedValue[0] === "-";
859
+ boundaryAry.fill(false, 0, Math.min(prefix.length + (hasNegation ? 1 : 0), formattedValue.length));
860
+ var valLn = formattedValue.length;
861
+ boundaryAry.fill(false, valLn - suffix.length + 1, valLn + 1);
862
+ return boundaryAry;
863
+ }
864
+ function validateAndUpdateProps(props) {
865
+ var ref = getSeparators(props);
866
+ var thousandSeparator = ref.thousandSeparator;
867
+ var decimalSeparator = ref.decimalSeparator;
868
+ var prefix = props.prefix;
869
+ if (prefix === void 0) prefix = "";
870
+ var allowNegative = props.allowNegative;
871
+ if (allowNegative === void 0) allowNegative = true;
872
+ if (thousandSeparator === decimalSeparator) throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: " + thousandSeparator + " (thousandSeparator = {true} is same as thousandSeparator = \",\")\n decimalSeparator: " + decimalSeparator + " (default value for decimalSeparator is .)\n ");
873
+ if (prefix.startsWith("-") && allowNegative) {
874
+ console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: " + prefix + "\n allowNegative: " + allowNegative + "\n ");
875
+ allowNegative = false;
876
+ }
877
+ return Object.assign(Object.assign({}, props), { allowNegative });
878
+ }
879
+ function useNumericFormat(props) {
880
+ props = validateAndUpdateProps(props);
881
+ props.decimalSeparator;
882
+ props.allowedDecimalSeparators;
883
+ props.thousandsGroupStyle;
884
+ var suffix = props.suffix;
885
+ var allowNegative = props.allowNegative;
886
+ var allowLeadingZeros = props.allowLeadingZeros;
887
+ var onKeyDown = props.onKeyDown;
888
+ if (onKeyDown === void 0) onKeyDown = noop;
889
+ var onBlur = props.onBlur;
890
+ if (onBlur === void 0) onBlur = noop;
891
+ var thousandSeparator = props.thousandSeparator;
892
+ var decimalScale = props.decimalScale;
893
+ var fixedDecimalScale = props.fixedDecimalScale;
894
+ var prefix = props.prefix;
895
+ if (prefix === void 0) prefix = "";
896
+ var defaultValue = props.defaultValue;
897
+ var value = props.value;
898
+ var valueIsNumericString = props.valueIsNumericString;
899
+ var onValueChange = props.onValueChange;
900
+ var restProps = __rest(props, [
901
+ "decimalSeparator",
902
+ "allowedDecimalSeparators",
903
+ "thousandsGroupStyle",
904
+ "suffix",
905
+ "allowNegative",
906
+ "allowLeadingZeros",
907
+ "onKeyDown",
908
+ "onBlur",
909
+ "thousandSeparator",
910
+ "decimalScale",
911
+ "fixedDecimalScale",
912
+ "prefix",
913
+ "defaultValue",
914
+ "value",
915
+ "valueIsNumericString",
916
+ "onValueChange"
917
+ ]);
918
+ var ref = getSeparators(props);
919
+ var decimalSeparator = ref.decimalSeparator;
920
+ var allowedDecimalSeparators = ref.allowedDecimalSeparators;
921
+ var _format = function(numStr) {
922
+ return format(numStr, props);
923
+ };
924
+ var _removeFormatting = function(inputValue, changeMeta) {
925
+ return removeFormatting(inputValue, changeMeta, props);
926
+ };
927
+ var _value = isNil(value) ? defaultValue : value;
928
+ var _valueIsNumericString = valueIsNumericString !== null && valueIsNumericString !== void 0 ? valueIsNumericString : isNumericString(_value, prefix, suffix);
929
+ if (!isNil(value)) _valueIsNumericString = _valueIsNumericString || typeof value === "number";
930
+ else if (!isNil(defaultValue)) _valueIsNumericString = _valueIsNumericString || typeof defaultValue === "number";
931
+ var roundIncomingValueToPrecision = function(value) {
932
+ if (isNotValidValue(value)) return value;
933
+ if (typeof value === "number") value = toNumericString(value);
934
+ /**
935
+ * only round numeric or float string values coming through props,
936
+ * we don't need to do it for onChange events, as we want to prevent typing there
937
+ */
938
+ if (_valueIsNumericString && typeof decimalScale === "number") return roundToPrecision(value, decimalScale, Boolean(fixedDecimalScale));
939
+ return value;
940
+ };
941
+ var ref$1 = useInternalValues(roundIncomingValueToPrecision(value), roundIncomingValueToPrecision(defaultValue), Boolean(_valueIsNumericString), _format, _removeFormatting, onValueChange);
942
+ var ref$1_0 = ref$1[0];
943
+ var numAsString = ref$1_0.numAsString;
944
+ var formattedValue = ref$1_0.formattedValue;
945
+ var _onValueChange = ref$1[1];
946
+ var _onKeyDown = function(e) {
947
+ var el = e.target;
948
+ var key = e.key;
949
+ var selectionStart = el.selectionStart;
950
+ var selectionEnd = el.selectionEnd;
951
+ var value = el.value;
952
+ if (value === void 0) value = "";
953
+ if ((key === "Backspace" || key === "Delete") && selectionEnd < prefix.length && value !== "-") {
954
+ e.preventDefault();
955
+ return;
956
+ }
957
+ if (selectionStart !== selectionEnd) {
958
+ onKeyDown(e);
959
+ return;
960
+ }
961
+ if (key === "Backspace" && value[0] === "-" && selectionStart === prefix.length + 1 && allowNegative) setCaretPosition(el, 1);
962
+ if (decimalScale && fixedDecimalScale) {
963
+ if (key === "Backspace" && value[selectionStart - 1] === decimalSeparator) {
964
+ setCaretPosition(el, selectionStart - 1);
965
+ e.preventDefault();
966
+ } else if (key === "Delete" && value[selectionStart] === decimalSeparator) e.preventDefault();
967
+ }
968
+ if ((allowedDecimalSeparators === null || allowedDecimalSeparators === void 0 ? void 0 : allowedDecimalSeparators.includes(key)) && value[selectionStart] === decimalSeparator) setCaretPosition(el, selectionStart + 1);
969
+ var _thousandSeparator = thousandSeparator === true ? "," : thousandSeparator;
970
+ if (key === "Backspace" && value[selectionStart - 1] === _thousandSeparator) setCaretPosition(el, selectionStart - 1);
971
+ if (key === "Delete" && value[selectionStart] === _thousandSeparator) setCaretPosition(el, selectionStart + 1);
972
+ onKeyDown(e);
973
+ };
974
+ var _onBlur = function(e) {
975
+ var _value = numAsString;
976
+ if (!_value.match(/\d/g)) _value = "";
977
+ if (!allowLeadingZeros) _value = fixLeadingZero(_value);
978
+ if (fixedDecimalScale && decimalScale) _value = roundToPrecision(_value, decimalScale, fixedDecimalScale);
979
+ if (_value !== numAsString) _onValueChange({
980
+ formattedValue: format(_value, props),
981
+ value: _value,
982
+ floatValue: parseFloat(_value)
983
+ }, {
984
+ event: e,
985
+ source: SourceType.event
986
+ });
987
+ onBlur(e);
988
+ };
989
+ var isValidInputCharacter = function(inputChar) {
990
+ if (inputChar === decimalSeparator) return true;
991
+ return charIsNumber(inputChar);
992
+ };
993
+ var isCharacterSame = function(ref) {
994
+ var currentValue = ref.currentValue;
995
+ var lastValue = ref.lastValue;
996
+ var formattedValue = ref.formattedValue;
997
+ var currentValueIndex = ref.currentValueIndex;
998
+ var formattedValueIndex = ref.formattedValueIndex;
999
+ var curChar = currentValue[currentValueIndex];
1000
+ var newChar = formattedValue[formattedValueIndex];
1001
+ var to = findChangeRange(lastValue, currentValue).to;
1002
+ var getDecimalSeparatorIndex = function(value) {
1003
+ return _removeFormatting(value).indexOf(".") + prefix.length;
1004
+ };
1005
+ if (value === 0 && fixedDecimalScale && decimalScale && currentValue[to.start] === decimalSeparator && getDecimalSeparatorIndex(currentValue) < currentValueIndex && getDecimalSeparatorIndex(formattedValue) > formattedValueIndex) return false;
1006
+ if (currentValueIndex >= to.start && currentValueIndex < to.end && allowedDecimalSeparators && allowedDecimalSeparators.includes(curChar) && newChar === decimalSeparator) return true;
1007
+ return curChar === newChar;
1008
+ };
1009
+ return Object.assign(Object.assign({}, restProps), {
1010
+ value: formattedValue,
1011
+ valueIsNumericString: false,
1012
+ isValidInputCharacter,
1013
+ isCharacterSame,
1014
+ onValueChange: _onValueChange,
1015
+ format: _format,
1016
+ removeFormatting: _removeFormatting,
1017
+ getCaretBoundary: function(formattedValue) {
1018
+ return getCaretBoundary(formattedValue, props);
1019
+ },
1020
+ onKeyDown: _onKeyDown,
1021
+ onBlur: _onBlur
1022
+ });
1023
+ }
1024
+ function NumericFormat(props) {
1025
+ var numericFormatProps = useNumericFormat(props);
1026
+ return react.default.createElement(NumberFormatBase, Object.assign({}, numericFormatProps));
1027
+ }
1028
+ exports.NumberFormatBase = NumberFormatBase;
1029
+ exports.NumericFormat = NumericFormat;
1030
+ exports.getNumericCaretBoundary = getCaretBoundary;
1031
+ exports.numericFormatter = format;
1032
+ exports.removeNumericFormat = removeFormatting;
1033
+ exports.useNumericFormat = useNumericFormat;