@hortiview/shared-components 2.27.3 → 2.28.0-alpha.4cc3c312.1

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 (282) hide show
  1. package/{dist/AlertBanner-C9TvBTkH.js → AlertBanner-2rv7mRmR.js} +1 -1
  2. package/{dist/GenericCard-2v0lBsVu.js → GenericCard-DglXAprV.js} +6 -6
  3. package/{dist/ListAreaService-PaN1DrXf.js → ListAreaService-DkGcBcwz.js} +6 -6
  4. package/assets/FormSelect.css +1 -0
  5. package/{dist/component-DYpB_4EP.js → component-9vrShqiY.js} +37 -37
  6. package/{dist/components → components}/AlertBanner/AlertBanner.d.ts +1 -1
  7. package/{dist/components → components}/AlertBanner/AlertBanner.js +2 -2
  8. package/{dist/components → components}/AlertBanner/LinkBanner.d.ts +1 -2
  9. package/{dist/components → components}/AlertBanner/LinkBanner.js +2 -2
  10. package/{dist/components → components}/Allowed/Allowed.d.ts +1 -2
  11. package/{dist/components → components}/AllowedButton/AllowedButton.d.ts +1 -2
  12. package/{dist/components → components}/AllowedButton/AllowedButton.js +1 -1
  13. package/{dist/components → components}/AllowedIconButton/AllowedIconButton.d.ts +1 -2
  14. package/{dist/components → components}/AllowedIconButton/AllowedIconButton.js +1 -1
  15. package/{dist/components → components}/BaseView/BaseView.d.ts +1 -2
  16. package/{dist/components → components}/BasicHeading/BasicHeading.d.ts +1 -2
  17. package/{dist/components → components}/BasicHeading/BasicHeading.js +4 -4
  18. package/{dist/components → components}/BlockView/BlockView.d.ts +1 -2
  19. package/{dist/components → components}/BlockView/BlockView.js +1 -1
  20. package/{dist/components → components}/ButtonCard/ButtonCard.d.ts +1 -2
  21. package/{dist/components → components}/ButtonCard/ButtonCard.js +5 -5
  22. package/{dist/components → components}/ChipCard/ChipCard.d.ts +1 -1
  23. package/{dist/components → components}/ChipCard/ChipCard.js +2 -2
  24. package/{dist/components → components}/ConfirmationModal/ConfirmationModal.d.ts +1 -2
  25. package/{dist/components → components}/ConfirmationModal/ConfirmationModal.js +2 -2
  26. package/{dist/components → components}/ContextMenu/ContextMenu.d.ts +1 -2
  27. package/{dist/components → components}/ContextMenu/ContextMenu.js +2 -2
  28. package/{dist/components → components}/DeleteModal/DeleteModal.d.ts +1 -2
  29. package/{dist/components → components}/DeleteModal/DeleteModal.js +6 -6
  30. package/{dist/components → components}/DetailContentWrapper/DetailContentWrapper.d.ts +1 -2
  31. package/{dist/components → components}/Disclaimer/Disclaimer.d.ts +1 -1
  32. package/{dist/components → components}/Disclaimer/Disclaimer.js +1 -1
  33. package/{dist/components → components}/EmptyView/EmptyView.d.ts +1 -2
  34. package/{dist/components → components}/EmptyView/EmptyView.js +5 -5
  35. package/{dist/components → components}/Filter/Filter.d.ts +1 -2
  36. package/{dist/components → components}/Filter/Filter.js +8 -8
  37. package/{dist/components → components}/FloatingActionButton/FloatingActionButton.d.ts +1 -2
  38. package/{dist/components → components}/FloatingActionButton/FloatingActionButton.js +2 -2
  39. package/{dist/components → components}/FormComponents/FormCheckBox/FormCheckBox.d.ts +1 -2
  40. package/{dist/components → components}/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
  41. package/{dist/components → components}/FormComponents/FormDatePicker/FormDatePicker.d.ts +1 -2
  42. package/{dist/components → components}/FormComponents/FormDatePicker/FormDatePicker.js +1 -1
  43. package/{dist/components → components}/FormComponents/FormNumber/CustomTextField.d.ts +1 -2
  44. package/{dist/components → components}/FormComponents/FormNumber/CustomTextField.js +2 -2
  45. package/{dist/components → components}/FormComponents/FormNumber/FormNumber.d.ts +1 -2
  46. package/{dist/components → components}/FormComponents/FormNumber/FormNumber.js +1 -1
  47. package/{dist/components → components}/FormComponents/FormRadio/FormRadio.d.ts +1 -2
  48. package/{dist/components → components}/FormComponents/FormRadio/FormRadio.js +1 -1
  49. package/{dist/components → components}/FormComponents/FormSelect/FormSelect.d.ts +1 -2
  50. package/components/FormComponents/FormSelect/FormSelect.js +136 -0
  51. package/{dist/components → components}/FormComponents/FormSelect/FormSelectService.d.ts +0 -1
  52. package/{dist/components → components}/FormComponents/FormSelect/SelectTooltipText.d.ts +1 -2
  53. package/{dist/components → components}/FormComponents/FormSelect/SelectTooltipText.js +1 -1
  54. package/{dist/components → components}/FormComponents/FormSlider/FormSlider.d.ts +1 -2
  55. package/{dist/components → components}/FormComponents/FormSlider/FormSlider.js +2 -2
  56. package/{dist/components → components}/FormComponents/FormText/FormText.d.ts +1 -2
  57. package/{dist/components → components}/FormComponents/FormText/FormText.js +2 -2
  58. package/{dist/components → components}/FormComponents/FormToggle/FormToggle.d.ts +1 -2
  59. package/{dist/components → components}/FormComponents/FormToggle/FormToggle.js +2 -2
  60. package/{dist/components → components}/FormattedNumberDisplay/FormattedNumberDisplay.d.ts +1 -2
  61. package/{dist/components → components}/FormattedNumberDisplay/FormattedNumberDisplay.js +1 -1
  62. package/{dist/components → components}/GenericTable/GenericTable.d.ts +1 -2
  63. package/{dist/components → components}/GenericTable/GenericTable.js +669 -669
  64. package/{dist/components → components}/GenericTable/GenericTableService.d.ts +0 -1
  65. package/{dist/components → components}/GenericTable/Mobile/GenericCard.d.ts +1 -2
  66. package/{dist/components → components}/GenericTable/Mobile/GenericCard.js +3 -3
  67. package/{dist/components → components}/GenericTable/Mobile/GenericCardList.d.ts +0 -1
  68. package/{dist/components → components}/GenericTable/Mobile/GenericCardList.js +2 -2
  69. package/{dist/components → components}/HashTabView/HashTabView.d.ts +1 -2
  70. package/{dist/components → components}/HashTabView/HashTabView.js +1 -1
  71. package/{dist/components → components}/HeaderFilter/HeaderFilter.d.ts +1 -2
  72. package/{dist/components → components}/HeaderFilter/HeaderFilter.js +1 -1
  73. package/{dist/components → components}/Iconify/Iconify.d.ts +0 -1
  74. package/{dist/components → components}/InfoCard/InfoCard.d.ts +1 -1
  75. package/{dist/components → components}/InfoCard/InfoCard.js +2 -2
  76. package/{dist/components → components}/InfoGroup/InfoGroup.d.ts +1 -2
  77. package/{dist/components → components}/InfoGroup/InfoGroup.js +2 -2
  78. package/{dist/components → components}/ListArea/ListArea.d.ts +1 -2
  79. package/{dist/components → components}/ListArea/ListArea.js +2 -2
  80. package/{dist/components → components}/ListArea/ListAreaService.d.ts +4 -5
  81. package/{dist/components → components}/ListArea/ListAreaService.js +2 -2
  82. package/{dist/components → components}/LoadingSpinner/Big/BigLoadingSpinner.d.ts +1 -1
  83. package/{dist/components → components}/LoadingSpinner/Big/BigLoadingSpinner.js +1 -1
  84. package/{dist/components → components}/LoadingSpinner/Default/LoadingSpinner.d.ts +1 -1
  85. package/{dist/components → components}/LoadingSpinner/Default/LoadingSpinner.js +6 -6
  86. package/{dist/components → components}/Modal/Modal.d.ts +1 -2
  87. package/{dist/components → components}/Modal/Modal.js +3 -3
  88. package/{dist/components → components}/ModulePadding/ModulePadding.d.ts +1 -2
  89. package/{dist/components → components}/ModulePadding/ModulePadding.js +4 -4
  90. package/{dist/components → components}/OfflineView/OfflineView.d.ts +1 -1
  91. package/{dist/components → components}/OfflineView/OfflineView.js +2 -2
  92. package/{dist/components → components}/OnboardingBanner/OnboardingBanner.d.ts +1 -2
  93. package/{dist/components → components}/OnboardingBanner/OnboardingBanner.js +3 -3
  94. package/{dist/components → components}/OverflowTooltip/OverflowTooltip.d.ts +1 -1
  95. package/{dist/components → components}/OverflowTooltip/OverflowTooltip.js +2 -2
  96. package/{dist/components → components}/PermissionChecks/PermissionService.d.ts +0 -1
  97. package/{dist/components → components}/SafeForm/SafeForm.d.ts +1 -1
  98. package/{dist/components → components}/SearchBar/SearchBar.d.ts +1 -2
  99. package/{dist/components → components}/SearchBar/SearchBar.js +2 -2
  100. package/{dist/components → components}/Select/Select.d.ts +1 -2
  101. package/{dist/components → components}/Select/Select.js +4 -4
  102. package/{dist/components → components}/SharedComponentsPermissionProvider/PermissionContext.d.ts +0 -1
  103. package/{dist/components → components}/SharedComponentsPermissionProvider/SharedComponentsPermissionProvider.d.ts +1 -2
  104. package/{dist/components → components}/Stepper/Stepper.d.ts +1 -2
  105. package/{dist/components → components}/Stepper/components/StepperButton.d.ts +2 -3
  106. package/{dist/components → components}/Stepper/components/StepperButton.js +1 -1
  107. package/{dist/components → components}/Stepper/components/StepperHeader.d.ts +1 -2
  108. package/{dist/components → components}/Stepper/components/StepperHeader.js +1 -1
  109. package/{dist/components → components}/Stepper/components/StepperItem.d.ts +1 -2
  110. package/{dist/components → components}/Stepper/components/StepperItem.js +1 -1
  111. package/{dist/components → components}/Stepper/stepperTypes.d.ts +0 -1
  112. package/{dist/components → components}/TopBarBanner/TopBarBanner.d.ts +1 -1
  113. package/{dist/components → components}/TopBarBanner/TopBarBanner.js +2 -2
  114. package/{dist/components → components}/VerticalDivider/VerticalDivider.d.ts +1 -1
  115. package/{dist/hooks → hooks}/useContainerWidth.d.ts +0 -1
  116. package/{dist/hooks → hooks}/useHelperText.d.ts +0 -1
  117. package/{dist/index.es-DLEY03HG.js → index.es-74LdeLp0.js} +1048 -1036
  118. package/{dist/index.es-BSaDtduL.js → index.es-B7KXUg_Y.js} +1 -1
  119. package/{dist/index.es-B1cewJEy.js → index.es-B9C7vzr4.js} +1 -1
  120. package/{dist/index.es-_PSuLbjQ.js → index.es-BIgjyLDa.js} +6 -6
  121. package/{dist/index.es-DPGGEmi5.js → index.es-BTF3Ci4c.js} +1 -1
  122. package/{dist/index.es-BZkGOjEo.js → index.es-BwhRJBEH.js} +1 -1
  123. package/{dist/index.es-CpPnZRt7.js → index.es-ByqU-v6T.js} +166 -166
  124. package/{dist/index.es-B_BTuoBa.js → index.es-C2dbad7Y.js} +4 -4
  125. package/{dist/index.es-DsOSfaF5.js → index.es-CJIPOFSz.js} +39 -39
  126. package/{dist/index.es-EXzC8zuP.js → index.es-CdZp67J9.js} +4 -4
  127. package/{dist/index.es-CwgwR6SB.js → index.es-CduUloMP.js} +1 -1
  128. package/{dist/index.es-BVW2k-5y.js → index.es-DCWPAtXu.js} +1 -1
  129. package/{dist/index.es-DHL1mFb3.js → index.es-DglJcc2r.js} +2 -2
  130. package/{dist/isString-C0tJxuT4.js → isString-LDbI4UeI.js} +1 -1
  131. package/{dist/main.js → main.js} +1 -1
  132. package/{dist/omit-BWQrFyQ-.js → omit-DUqu4lDk.js} +196 -203
  133. package/package.json +11 -91
  134. package/{dist/react-number-format.es-pczkQ4lQ.js → react-number-format.es-8jxpHyYy.js} +192 -183
  135. package/react-tooltip.min-DKaGxvdz.js +1411 -0
  136. package/react.esm-uOZB-qPu.js +15150 -0
  137. package/{dist/services → services}/BlockService.d.ts +0 -1
  138. package/{dist/services → services}/NumberService.d.ts +0 -1
  139. package/{dist/services → services}/UtilService.d.ts +0 -1
  140. package/{dist/services → services}/UtilService.js +4 -4
  141. package/{dist/test-utils.d.ts → test-utils.d.ts} +1 -2
  142. package/{dist/test-utils.js → test-utils.js} +1 -1
  143. package/{dist/types → types}/GenericTable.d.ts +0 -1
  144. package/{dist/types → types}/ListElement.d.ts +0 -1
  145. package/CHANGELOG.md +0 -780
  146. package/README.md +0 -1387
  147. package/dist/assets/FormSelect.css +0 -1
  148. package/dist/components/FormComponents/FormSelect/FormSelect.js +0 -142
  149. package/dist/react-tooltip.min-D7xPMD-P.js +0 -1390
  150. package/dist/react.esm-DF7i80eN.js +0 -13658
  151. /package/{dist/_Map-BYxTn6ob.js → _Map-BYxTn6ob.js} +0 -0
  152. /package/{dist/_commonjsHelpers-ByX85dGu.js → _commonjsHelpers-ByX85dGu.js} +0 -0
  153. /package/{dist/animationframe-CqXArbwZ.js → animationframe-CqXArbwZ.js} +0 -0
  154. /package/{dist/assets → assets}/AlertBanner.css +0 -0
  155. /package/{dist/assets → assets}/BaseView.css +0 -0
  156. /package/{dist/assets → assets}/BasicHeading.css +0 -0
  157. /package/{dist/assets → assets}/BigLoadingSpinner.css +0 -0
  158. /package/{dist/assets → assets}/BlockView.css +0 -0
  159. /package/{dist/assets → assets}/ButtonCard.css +0 -0
  160. /package/{dist/assets → assets}/ChipCard.css +0 -0
  161. /package/{dist/assets → assets}/ConfirmationModal.css +0 -0
  162. /package/{dist/assets → assets}/ContextMenu.css +0 -0
  163. /package/{dist/assets → assets}/CustomTextField.css +0 -0
  164. /package/{dist/assets → assets}/DeleteModal.css +0 -0
  165. /package/{dist/assets → assets}/DetailContentWrapper.css +0 -0
  166. /package/{dist/assets → assets}/Disclaimer.css +0 -0
  167. /package/{dist/assets → assets}/EmptyView.css +0 -0
  168. /package/{dist/assets → assets}/Filter.css +0 -0
  169. /package/{dist/assets → assets}/FloatingActionButton.css +0 -0
  170. /package/{dist/assets → assets}/FormCheckBox.css +0 -0
  171. /package/{dist/assets → assets}/FormDatePicker.css +0 -0
  172. /package/{dist/assets → assets}/FormText.css +0 -0
  173. /package/{dist/assets → assets}/GenericCard.css +0 -0
  174. /package/{dist/assets → assets}/GenericTable.css +0 -0
  175. /package/{dist/assets → assets}/HashTabView.css +0 -0
  176. /package/{dist/assets → assets}/HeaderFilter.css +0 -0
  177. /package/{dist/assets → assets}/Iconify.css +0 -0
  178. /package/{dist/assets → assets}/InfoCard.css +0 -0
  179. /package/{dist/assets → assets}/InfoGroup.css +0 -0
  180. /package/{dist/assets → assets}/ListAreaService.css +0 -0
  181. /package/{dist/assets → assets}/LoadingSpinner.css +0 -0
  182. /package/{dist/assets → assets}/Modal.css +0 -0
  183. /package/{dist/assets → assets}/ModulePadding.css +0 -0
  184. /package/{dist/assets → assets}/OfflineView.css +0 -0
  185. /package/{dist/assets → assets}/OnboardingBanner.css +0 -0
  186. /package/{dist/assets → assets}/OverflowTooltip.css +0 -0
  187. /package/{dist/assets → assets}/Scrollbar.css +0 -0
  188. /package/{dist/assets → assets}/SearchBar.css +0 -0
  189. /package/{dist/assets → assets}/Select.css +0 -0
  190. /package/{dist/assets → assets}/TopBarBanner.css +0 -0
  191. /package/{dist/assets → assets}/VerticalDivider.css +0 -0
  192. /package/{dist/assets → assets}/stepper.css +0 -0
  193. /package/{dist/component-By6nyiBU.js → component-By6nyiBU.js} +0 -0
  194. /package/{dist/components → components}/Allowed/Allowed.js +0 -0
  195. /package/{dist/components → components}/BaseView/BaseView.js +0 -0
  196. /package/{dist/components → components}/BaseView/BaseView.service.d.ts +0 -0
  197. /package/{dist/components → components}/BaseView/BaseView.service.js +0 -0
  198. /package/{dist/components → components}/DetailContentWrapper/DetailContentWrapper.js +0 -0
  199. /package/{dist/components → components}/FormComponents/FormDatePicker/FormDatePickerService.d.ts +0 -0
  200. /package/{dist/components → components}/FormComponents/FormDatePicker/FormDatePickerService.js +0 -0
  201. /package/{dist/components → components}/FormComponents/FormSelect/FormSelectService.js +0 -0
  202. /package/{dist/components → components}/GenericTable/GenericTableService.js +0 -0
  203. /package/{dist/components → components}/Iconify/Iconify.js +0 -0
  204. /package/{dist/components → components}/OverflowTooltip/OverflowTooltipService.d.ts +0 -0
  205. /package/{dist/components → components}/OverflowTooltip/OverflowTooltipService.js +0 -0
  206. /package/{dist/components → components}/PermissionChecks/PermissionService.js +0 -0
  207. /package/{dist/components → components}/PermissionChecks/mockedPermissions.d.ts +0 -0
  208. /package/{dist/components → components}/PermissionChecks/mockedPermissions.js +0 -0
  209. /package/{dist/components → components}/SafeForm/SafeForm.js +0 -0
  210. /package/{dist/components → components}/Scrollbar/Scrollbar.d.ts +0 -0
  211. /package/{dist/components → components}/Scrollbar/Scrollbar.js +0 -0
  212. /package/{dist/components → components}/SharedComponentsPermissionProvider/PermissionContext.js +0 -0
  213. /package/{dist/components → components}/SharedComponentsPermissionProvider/SharedComponentsPermissionProvider.js +0 -0
  214. /package/{dist/components → components}/Stepper/Stepper.js +0 -0
  215. /package/{dist/components → components}/Stepper/stepperStyles.d.ts +0 -0
  216. /package/{dist/components → components}/Stepper/stepperStyles.js +0 -0
  217. /package/{dist/components → components}/Stepper/stepperTypes.js +0 -0
  218. /package/{dist/components → components}/VerticalDivider/VerticalDivider.js +0 -0
  219. /package/{dist/defineProperty-SoB5opr-.js → defineProperty-SoB5opr-.js} +0 -0
  220. /package/{dist/enums → enums}/AvailableCustomIcons.d.ts +0 -0
  221. /package/{dist/enums → enums}/AvailableCustomIcons.js +0 -0
  222. /package/{dist/enums → enums}/ThemeColor.d.ts +0 -0
  223. /package/{dist/enums → enums}/ThemeColor.js +0 -0
  224. /package/{dist/es.string.iterator-BrOvr7F6.js → es.string.iterator-BrOvr7F6.js} +0 -0
  225. /package/{dist/find-OaLSg5iu.js → find-OaLSg5iu.js} +0 -0
  226. /package/{dist/get-BLvvbtML.js → get-BLvvbtML.js} +0 -0
  227. /package/{dist/get-CBFiuc3f.js → get-CBFiuc3f.js} +0 -0
  228. /package/{dist/hooks → hooks}/useBreakpoints.d.ts +0 -0
  229. /package/{dist/hooks → hooks}/useBreakpoints.js +0 -0
  230. /package/{dist/hooks → hooks}/useContainerWidth.js +0 -0
  231. /package/{dist/hooks → hooks}/useHelperText.js +0 -0
  232. /package/{dist/identity-B0bbReND.js → identity-B0bbReND.js} +0 -0
  233. /package/{dist/includes-CSD_V_RY.js → includes-CSD_V_RY.js} +0 -0
  234. /package/{dist/index-CuHybtft.js → index-CuHybtft.js} +0 -0
  235. /package/{dist/index-_-9ybP20.js → index-_-9ybP20.js} +0 -0
  236. /package/{dist/index.es-0SkNh4dU.js → index.es-0SkNh4dU.js} +0 -0
  237. /package/{dist/index.es-BE1XL1dD.js → index.es-BE1XL1dD.js} +0 -0
  238. /package/{dist/index.es-C2ejWpji.js → index.es-C2ejWpji.js} +0 -0
  239. /package/{dist/index.es-C8AExypY.js → index.es-C8AExypY.js} +0 -0
  240. /package/{dist/index.es-CNrSvjAv.js → index.es-CNrSvjAv.js} +0 -0
  241. /package/{dist/index.es-CTKwa3Es.js → index.es-CTKwa3Es.js} +0 -0
  242. /package/{dist/index.es-DRC-9PLs.js → index.es-DRC-9PLs.js} +0 -0
  243. /package/{dist/index.es-LckFzDz-.js → index.es-LckFzDz-.js} +0 -0
  244. /package/{dist/index.es-Pc5KKhcb.js → index.es-Pc5KKhcb.js} +0 -0
  245. /package/{dist/index.es-eZDofmng.js → index.es-eZDofmng.js} +0 -0
  246. /package/{dist/isArray-Ce1Q96lU.js → isArray-Ce1Q96lU.js} +0 -0
  247. /package/{dist/isArray-olhCpv2e.js → isArray-olhCpv2e.js} +0 -0
  248. /package/{dist/isEmpty-l2xQKl4x.js → isEmpty-l2xQKl4x.js} +0 -0
  249. /package/{dist/isTypedArray-D39qzPYE.js → isTypedArray-D39qzPYE.js} +0 -0
  250. /package/{dist/keyboard-DQ9O_Ke1.js → keyboard-DQ9O_Ke1.js} +0 -0
  251. /package/{dist/main.d.ts → main.d.ts} +0 -0
  252. /package/{dist/map-BErBeya5.js → map-BErBeya5.js} +0 -0
  253. /package/{dist/orderBy-Ce85KqD6.js → orderBy-Ce85KqD6.js} +0 -0
  254. /package/{dist/parse-int-BYd7r_4n.js → parse-int-BYd7r_4n.js} +0 -0
  255. /package/{dist/services → services}/BlockService.js +0 -0
  256. /package/{dist/services → services}/NumberService.js +0 -0
  257. /package/{dist/slicedToArray-C2Ed3239.js → slicedToArray-C2Ed3239.js} +0 -0
  258. /package/{dist/stepper.module-C_EMu-Fl.js → stepper.module-C_EMu-Fl.js} +0 -0
  259. /package/{dist/string-trim-v5pkXsl2.js → string-trim-v5pkXsl2.js} +0 -0
  260. /package/{dist/toString-D5bEU-DN.js → toString-D5bEU-DN.js} +0 -0
  261. /package/{dist/tslib.es6-BDCynO9F.js → tslib.es6-BDCynO9F.js} +0 -0
  262. /package/{dist/types → types}/Filter.d.ts +0 -0
  263. /package/{dist/types → types}/Filter.js +0 -0
  264. /package/{dist/types → types}/GenericTable.js +0 -0
  265. /package/{dist/types → types}/HashTab.d.ts +0 -0
  266. /package/{dist/types → types}/HashTab.js +0 -0
  267. /package/{dist/types → types}/Languages.d.ts +0 -0
  268. /package/{dist/types → types}/Languages.js +0 -0
  269. /package/{dist/types → types}/ListElement.js +0 -0
  270. /package/{dist/types → types}/Permission.d.ts +0 -0
  271. /package/{dist/types → types}/Permission.js +0 -0
  272. /package/{dist/types → types}/Time.d.ts +0 -0
  273. /package/{dist/types → types}/Time.js +0 -0
  274. /package/{dist/types → types}/internal/Block.d.ts +0 -0
  275. /package/{dist/types → types}/internal/Block.js +0 -0
  276. /package/{dist/types → types}/internal/ChangeValueType.d.ts +0 -0
  277. /package/{dist/types → types}/internal/ChangeValueType.js +0 -0
  278. /package/{dist/types → types}/internal/ReactRouterTypes.d.ts +0 -0
  279. /package/{dist/types → types}/internal/ReactRouterTypes.js +0 -0
  280. /package/{dist/uniqueId-CJo-XRQb.js → uniqueId-CJo-XRQb.js} +0 -0
  281. /package/{dist/util-CBo-ipCE.js → util-CBo-ipCE.js} +0 -0
  282. /package/{dist/vite-env.d.js → vite-env.d.js} +0 -0
@@ -1,5 +1,5 @@
1
- import Q, { useRef as X, useState as xe, useEffect as ve, useMemo as Re, useLayoutEffect as _e } from "react";
2
- function pe(e, r) {
1
+ import X, { useRef as Y, useState as pe, useEffect as ie, useMemo as _e, useLayoutEffect as Fe } from "react";
2
+ function Ve(e, r) {
3
3
  var a = {};
4
4
  for (var n in e)
5
5
  Object.prototype.hasOwnProperty.call(e, n) && r.indexOf(n) < 0 && (a[n] = e[n]);
@@ -8,13 +8,13 @@ function pe(e, r) {
8
8
  r.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (a[n[t]] = e[n[t]]);
9
9
  return a;
10
10
  }
11
- var ae;
11
+ var ee;
12
12
  (function(e) {
13
13
  e.event = "event", e.props = "prop";
14
- })(ae || (ae = {}));
14
+ })(ee || (ee = {}));
15
15
  function Z() {
16
16
  }
17
- function Fe(e) {
17
+ function Me(e) {
18
18
  var r, a = void 0;
19
19
  return function() {
20
20
  for (var n = [], t = arguments.length; t--; ) n[t] = arguments[t];
@@ -26,19 +26,19 @@ function Fe(e) {
26
26
  function te(e) {
27
27
  return !!(e || "").match(/\d/);
28
28
  }
29
- function Y(e) {
29
+ function q(e) {
30
30
  return e == null;
31
31
  }
32
- function Me(e) {
32
+ function je(e) {
33
33
  return typeof e == "number" && isNaN(e);
34
34
  }
35
- function Ve(e) {
36
- return Y(e) || Me(e) || typeof e == "number" && !isFinite(e);
37
- }
38
35
  function ye(e) {
36
+ return q(e) || je(e) || typeof e == "number" && !isFinite(e);
37
+ }
38
+ function be(e) {
39
39
  return e.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
40
40
  }
41
- function je(e) {
41
+ function Le(e) {
42
42
  switch (e) {
43
43
  case "lakh":
44
44
  return /(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;
@@ -48,14 +48,14 @@ function je(e) {
48
48
  return /(\d)(?=(\d{3})+(?!\d))/g;
49
49
  }
50
50
  }
51
- function Le(e, r, a) {
52
- var n = je(a), t = e.search(/[1-9]/);
51
+ function ke(e, r, a) {
52
+ var n = Le(a), t = e.search(/[1-9]/);
53
53
  return t = t === -1 ? e.length : t, e.substring(0, t) + e.substring(t, e.length).replace(n, "$1" + r);
54
54
  }
55
- function ke(e) {
56
- var r = X(e);
55
+ function ge(e) {
56
+ var r = Y(e);
57
57
  r.current = e;
58
- var a = X(function() {
58
+ var a = Y(function() {
59
59
  for (var n = [], t = arguments.length; t--; ) n[t] = arguments[t];
60
60
  return r.current.apply(r, n);
61
61
  });
@@ -81,12 +81,12 @@ function Pe(e) {
81
81
  var a = e.split("."), n = a[0].replace(/^0+/, "") || "0", t = a[1] || "";
82
82
  return (r ? "-" : "") + n + (t ? "." + t : "");
83
83
  }
84
- function be(e, r, a) {
84
+ function Ne(e, r, a) {
85
85
  for (var n = "", t = a ? "0" : "", o = 0; o <= r - 1; o++)
86
86
  n += e[o] || t;
87
87
  return n;
88
88
  }
89
- function ge(e, r) {
89
+ function me(e, r) {
90
90
  return Array(r + 1).join(e);
91
91
  }
92
92
  function we(e) {
@@ -96,20 +96,20 @@ function we(e) {
96
96
  if (o = Number(o), !o)
97
97
  return a + t;
98
98
  t = t.replace(".", "");
99
- var f = 1 + o, m = t.length;
100
- return f < 0 ? t = "0." + ge("0", Math.abs(f)) + t : f >= m ? t = t + ge("0", f - m) : t = (t.substring(0, f) || "0") + "." + t.substring(f), a + t;
99
+ var f = 1 + o, h = t.length;
100
+ return f < 0 ? t = "0." + me("0", Math.abs(f)) + t : f >= h ? t = t + me("0", f - h) : t = (t.substring(0, f) || "0") + "." + t.substring(f), a + t;
101
101
  }
102
- function me(e, r, a) {
102
+ function he(e, r, a) {
103
103
  if (["", "-"].indexOf(e) !== -1)
104
104
  return e;
105
- var n = (e.indexOf(".") !== -1 || a) && r, t = de(e), o = t.beforeDecimal, f = t.afterDecimal, m = t.hasNegation, V = parseFloat("0." + (f || "0")), y = f.length <= r ? "0." + f : V.toFixed(r), S = y.split("."), g = o;
105
+ var n = (e.indexOf(".") !== -1 || a) && r, t = de(e), o = t.beforeDecimal, f = t.afterDecimal, h = t.hasNegation, m = parseFloat("0." + (f || "0")), y = f.length <= r ? "0." + f : m.toFixed(r), S = y.split("."), g = o;
106
106
  o && Number(S[0]) && (g = o.split("").reverse().reduce(function(I, C, s) {
107
107
  return I.length > s ? (Number(I[0]) + Number(C)).toString() + I.substring(1, I.length) : C + I;
108
108
  }, S[0]));
109
- var h = be(S[1] || "", r, a), x = m ? "-" : "", v = n ? "." : "";
110
- return "" + x + g + v + h;
109
+ var x = Ne(S[1] || "", r, a), p = h ? "-" : "", l = n ? "." : "";
110
+ return "" + p + g + l + x;
111
111
  }
112
- function z(e, r) {
112
+ function H(e, r) {
113
113
  if (e.value = e.value, e !== null) {
114
114
  if (e.createTextRange) {
115
115
  var a = e.createTextRange();
@@ -118,7 +118,7 @@ function z(e, r) {
118
118
  return e.selectionStart || e.selectionStart === 0 ? (e.focus(), e.setSelectionRange(r, r), !0) : (e.focus(), !1);
119
119
  }
120
120
  }
121
- var Ne = Fe(function(e, r) {
121
+ var De = Me(function(e, r) {
122
122
  for (var a = 0, n = 0, t = e.length, o = r.length; e[a] === r[a] && a < t; )
123
123
  a++;
124
124
  for (; e[t - 1 - n] === r[o - 1 - n] && o - n > a && t - n > a; )
@@ -162,35 +162,35 @@ function Ge(e) {
162
162
  }
163
163
  function Ze(e, r, a, n, t, o, f) {
164
164
  f === void 0 && (f = Ge);
165
- var m = t.findIndex(function(L) {
165
+ var h = t.findIndex(function(L) {
166
166
  return L;
167
- }), V = e.slice(0, m);
168
- !r && !a.startsWith(V) && (r = V, a = V + a, n = n + V.length);
169
- for (var y = a.length, S = e.length, g = {}, h = new Array(y), x = 0; x < y; x++) {
170
- h[x] = -1;
171
- for (var v = 0, I = S; v < I; v++) {
167
+ }), m = e.slice(0, h);
168
+ !r && !a.startsWith(m) && (r = m, a = m + a, n = n + m.length);
169
+ for (var y = a.length, S = e.length, g = {}, x = new Array(y), p = 0; p < y; p++) {
170
+ x[p] = -1;
171
+ for (var l = 0, I = S; l < I; l++) {
172
172
  var C = f({
173
173
  currentValue: a,
174
174
  lastValue: r,
175
175
  formattedValue: e,
176
- currentValueIndex: x,
177
- formattedValueIndex: v
176
+ currentValueIndex: p,
177
+ formattedValueIndex: l
178
178
  });
179
- if (C && g[v] !== !0) {
180
- h[x] = v, g[v] = !0;
179
+ if (C && g[l] !== !0) {
180
+ x[p] = l, g[l] = !0;
181
181
  break;
182
182
  }
183
183
  }
184
184
  }
185
- for (var s = n; s < y && (h[s] === -1 || !o(a[s])); )
185
+ for (var s = n; s < y && (x[s] === -1 || !o(a[s])); )
186
186
  s++;
187
- var T = s === y || h[s] === -1 ? S : h[s];
188
- for (s = n - 1; s > 0 && h[s] === -1; )
187
+ var T = s === y || x[s] === -1 ? S : x[s];
188
+ for (s = n - 1; s > 0 && x[s] === -1; )
189
189
  s--;
190
- var R = s === -1 || h[s] === -1 ? 0 : h[s] + 1;
190
+ var R = s === -1 || x[s] === -1 ? 0 : x[s] + 1;
191
191
  return R > T ? T : n - R < T - n ? R : T;
192
192
  }
193
- function he(e, r, a, n) {
193
+ function Se(e, r, a, n) {
194
194
  var t = e.length;
195
195
  if (r = Ue(r, 0, t), n === "left") {
196
196
  for (; r >= 0 && !a[r]; )
@@ -210,24 +210,33 @@ function qe(e) {
210
210
  r[a] = !!(te(e[a]) || te(e[a - 1]));
211
211
  return r;
212
212
  }
213
- function De(e, r, a, n, t, o) {
213
+ function Ie(e, r, a, n, t, o) {
214
214
  o === void 0 && (o = Z);
215
- var f = ke(function(v, I) {
215
+ var f = ge(function(l, I) {
216
216
  var C, s;
217
- return Ve(v) ? (s = "", C = "") : typeof v == "number" || I ? (s = typeof v == "number" ? we(v) : v, C = n(s)) : (s = t(v, void 0), C = n(s)), { formattedValue: C, numAsString: s };
218
- }), m = xe(function() {
219
- return f(Y(e) ? r : e, a);
220
- }), V = m[0], y = m[1], S = function(v, I) {
221
- v.formattedValue !== V.formattedValue && y({
222
- formattedValue: v.formattedValue,
223
- numAsString: v.value
224
- }), o(v, I);
225
- }, g = e, h = a;
226
- Y(e) && (g = V.numAsString, h = !0);
227
- var x = f(g, h);
228
- return Re(function() {
229
- y(x);
230
- }, [x.formattedValue]), [V, S];
217
+ return ye(l) ? (s = "", C = "") : typeof l == "number" || I ? (s = typeof l == "number" ? we(l) : l, C = n(s)) : (s = t(l, void 0), C = n(s)), { formattedValue: C, numAsString: s };
218
+ }), h = pe(function() {
219
+ return f(q(e) ? r : e, a);
220
+ }), m = h[0], y = h[1], S = ge(function(l, I) {
221
+ l.formattedValue !== m.formattedValue && y({
222
+ formattedValue: l.formattedValue,
223
+ numAsString: l.value
224
+ }), o(l, I);
225
+ }), g = e, x = a;
226
+ q(e) && (g = m.numAsString, x = !0);
227
+ var p = f(g, x);
228
+ return _e(function() {
229
+ y(p);
230
+ }, [p.formattedValue]), ie(function() {
231
+ if (!q(r) && q(e) && m.formattedValue !== "") {
232
+ var l = parseFloat(m.numAsString);
233
+ S({
234
+ formattedValue: m.formattedValue,
235
+ value: m.numAsString,
236
+ floatValue: isNaN(l) ? void 0 : l
237
+ }, { event: void 0, source: ee.props });
238
+ }
239
+ }, []), [m, S];
231
240
  }
232
241
  function ze(e) {
233
242
  return e.replace(/[^0-9]/g, "");
@@ -242,14 +251,14 @@ function Je(e) {
242
251
  a === void 0 && (a = "input");
243
252
  var n = e.customInput, t = e.renderText, o = e.getInputRef, f = e.format;
244
253
  f === void 0 && (f = He);
245
- var m = e.removeFormatting;
246
- m === void 0 && (m = ze);
247
- var V = e.defaultValue, y = e.valueIsNumericString, S = e.onValueChange, g = e.isAllowed, h = e.onChange;
248
- h === void 0 && (h = Z);
249
- var x = e.onKeyDown;
254
+ var h = e.removeFormatting;
255
+ h === void 0 && (h = ze);
256
+ var m = e.defaultValue, y = e.valueIsNumericString, S = e.onValueChange, g = e.isAllowed, x = e.onChange;
250
257
  x === void 0 && (x = Z);
251
- var v = e.onMouseUp;
252
- v === void 0 && (v = Z);
258
+ var p = e.onKeyDown;
259
+ p === void 0 && (p = Z);
260
+ var l = e.onMouseUp;
261
+ l === void 0 && (l = Z);
253
262
  var I = e.onFocus;
254
263
  I === void 0 && (I = Z);
255
264
  var C = e.onBlur;
@@ -258,15 +267,15 @@ function Je(e) {
258
267
  T === void 0 && (T = qe);
259
268
  var R = e.isValidInputCharacter;
260
269
  R === void 0 && (R = te);
261
- var L = e.isCharacterSame, F = pe(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), q = De(s, V, !!y, f, m, S), k = q[0], b = k.formattedValue, M = k.numAsString, K = q[1], j = X(), U = X({ formattedValue: b, numAsString: M }), W = function(i, u) {
270
+ var L = e.isCharacterSame, F = Ve(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), z = Ie(s, m, !!y, f, h, S), k = z[0], b = k.formattedValue, M = k.numAsString, K = z[1], j = Y(), U = Y({ formattedValue: b, numAsString: M }), W = function(i, u) {
262
271
  U.current = { formattedValue: i.formattedValue, numAsString: i.value }, K(i, u);
263
- }, H = xe(!1), ee = H[0], d = H[1], l = X(null), w = X({
272
+ }, J = pe(!1), re = J[0], d = J[1], v = Y(null), N = Y({
264
273
  setCaretTimeout: null,
265
274
  focusTimeout: null
266
275
  });
267
- ve(function() {
276
+ ie(function() {
268
277
  return d(!0), function() {
269
- clearTimeout(w.current.setCaretTimeout), clearTimeout(w.current.focusTimeout);
278
+ clearTimeout(N.current.setCaretTimeout), clearTimeout(N.current.focusTimeout);
270
279
  };
271
280
  }, []);
272
281
  var E = f, B = function(i, u) {
@@ -277,129 +286,129 @@ function Je(e) {
277
286
  floatValue: isNaN(c) ? void 0 : c
278
287
  };
279
288
  }, A = function(i, u, c) {
280
- i.selectionStart === 0 && i.selectionEnd === i.value.length || (z(i, u), w.current.setCaretTimeout = setTimeout(function() {
281
- i.value === c && i.selectionStart !== u && z(i, u);
289
+ i.selectionStart === 0 && i.selectionEnd === i.value.length || (H(i, u), N.current.setCaretTimeout = setTimeout(function() {
290
+ i.value === c && i.selectionStart !== u && H(i, u);
282
291
  }, 0));
283
292
  }, O = function(i, u, c) {
284
- return he(i, u, T(i), c);
285
- }, J = function(i, u, c) {
286
- var N = T(u), _ = Ze(u, b, i, c, N, R, L);
287
- return _ = he(u, _, N), _;
288
- }, oe = function(i) {
293
+ return Se(i, u, T(i), c);
294
+ }, Q = function(i, u, c) {
295
+ var w = T(u), _ = Ze(u, b, i, c, w, R, L);
296
+ return _ = Se(u, _, w), _;
297
+ }, ue = function(i) {
289
298
  var u = i.formattedValue;
290
299
  u === void 0 && (u = "");
291
- var c = i.input, N = i.source, _ = i.event, D = i.numAsString, p;
300
+ var c = i.input, w = i.source, _ = i.event, D = i.numAsString, V;
292
301
  if (c) {
293
302
  var P = i.inputValue || c.value, $ = ce(c);
294
- c.value = u, p = J(P, u, $), p !== void 0 && A(c, p, u);
303
+ c.value = u, V = Q(P, u, $), V !== void 0 && A(c, V, u);
295
304
  }
296
- u !== b && W(B(u, D), { event: _, source: N });
305
+ u !== b && W(B(u, D), { event: _, source: w });
297
306
  };
298
- ve(function() {
307
+ ie(function() {
299
308
  var i = U.current, u = i.formattedValue, c = i.numAsString;
300
309
  (b !== u || M !== c) && W(B(b, M), {
301
310
  event: void 0,
302
- source: ae.props
311
+ source: ee.props
303
312
  });
304
313
  }, [b, M]);
305
- var re = l.current ? ce(l.current) : void 0, ne = typeof window < "u" ? _e : ve;
314
+ var ae = v.current ? ce(v.current) : void 0, ne = typeof window < "u" ? Fe : ie;
306
315
  ne(function() {
307
- var i = l.current;
316
+ var i = v.current;
308
317
  if (b !== U.current.formattedValue && i) {
309
- var u = J(U.current.formattedValue, b, re);
318
+ var u = Q(U.current.formattedValue, b, ae);
310
319
  i.value = b, A(i, u, b);
311
320
  }
312
321
  }, [b]);
313
- var ue = function(i, u, c) {
314
- var N = u.target, _ = j.current ? Ke(j.current, N.selectionEnd) : Ne(b, i), D = Object.assign(Object.assign({}, _), { lastValue: b }), p = m(i, D), P = E(p);
315
- if (p = m(P, void 0), g && !g(B(P, p))) {
316
- var $ = u.target, G = ce($), le = J(i, b, G);
317
- return $.value = b, A($, le, b), !1;
322
+ var fe = function(i, u, c) {
323
+ var w = u.target, _ = j.current ? Ke(j.current, w.selectionEnd) : De(b, i), D = Object.assign(Object.assign({}, _), { lastValue: b }), V = h(i, D), P = E(V);
324
+ if (V = h(P, void 0), g && !g(B(P, V))) {
325
+ var $ = u.target, G = ce($), ve = Q(i, b, G);
326
+ return $.value = b, A($, ve, b), !1;
318
327
  }
319
- return oe({
328
+ return ue({
320
329
  formattedValue: P,
321
- numAsString: p,
330
+ numAsString: V,
322
331
  inputValue: i,
323
332
  event: u,
324
333
  source: c,
325
334
  input: u.target
326
335
  }), !0;
327
- }, fe = function(i, u) {
336
+ }, le = function(i, u) {
328
337
  u === void 0 && (u = 0);
329
- var c = i.selectionStart, N = i.selectionEnd;
330
- j.current = { selectionStart: c, selectionEnd: N + u };
331
- }, Ie = function(i) {
332
- var u = i.target, c = u.value, N = ue(c, i, ae.event);
333
- N && h(i), j.current = void 0;
338
+ var c = i.selectionStart, w = i.selectionEnd;
339
+ j.current = { selectionStart: c, selectionEnd: w + u };
334
340
  }, Ce = function(i) {
335
- var u = i.target, c = i.key, N = u.selectionStart, _ = u.selectionEnd, D = u.value;
341
+ var u = i.target, c = u.value, w = fe(c, i, ee.event);
342
+ w && x(i), j.current = void 0;
343
+ }, Ae = function(i) {
344
+ var u = i.target, c = i.key, w = u.selectionStart, _ = u.selectionEnd, D = u.value;
336
345
  D === void 0 && (D = "");
337
- var p;
338
- c === "ArrowLeft" || c === "Backspace" ? p = Math.max(N - 1, 0) : c === "ArrowRight" ? p = Math.min(N + 1, D.length) : c === "Delete" && (p = N);
346
+ var V;
347
+ c === "ArrowLeft" || c === "Backspace" ? V = Math.max(w - 1, 0) : c === "ArrowRight" ? V = Math.min(w + 1, D.length) : c === "Delete" && (V = w);
339
348
  var P = 0;
340
- c === "Delete" && N === _ && (P = 1);
349
+ c === "Delete" && w === _ && (P = 1);
341
350
  var $ = c === "ArrowLeft" || c === "ArrowRight";
342
- if (p === void 0 || N !== _ && !$) {
343
- x(i), fe(u, P);
351
+ if (V === void 0 || w !== _ && !$) {
352
+ p(i), le(u, P);
344
353
  return;
345
354
  }
346
- var G = p;
355
+ var G = V;
347
356
  if ($) {
348
- var le = c === "ArrowLeft" ? "left" : "right";
349
- G = O(D, p, le), G !== p && i.preventDefault();
350
- } else c === "Delete" && !R(D[p]) ? G = O(D, p, "right") : c === "Backspace" && !R(D[p]) && (G = O(D, p, "left"));
351
- G !== p && A(u, G, D), x(i), fe(u, P);
352
- }, Ae = function(i) {
357
+ var ve = c === "ArrowLeft" ? "left" : "right";
358
+ G = O(D, V, ve), G !== V && i.preventDefault();
359
+ } else c === "Delete" && !R(D[V]) ? G = O(D, V, "right") : c === "Backspace" && !R(D[V]) && (G = O(D, V, "left"));
360
+ G !== V && A(u, G, D), p(i), le(u, P);
361
+ }, Ee = function(i) {
353
362
  var u = i.target, c = function() {
354
- var N = u.selectionStart, _ = u.selectionEnd, D = u.value;
355
- if (D === void 0 && (D = ""), N === _) {
356
- var p = O(D, N);
357
- p !== N && A(u, p, D);
363
+ var w = u.selectionStart, _ = u.selectionEnd, D = u.value;
364
+ if (D === void 0 && (D = ""), w === _) {
365
+ var V = O(D, w);
366
+ V !== w && A(u, V, D);
358
367
  }
359
368
  };
360
369
  c(), requestAnimationFrame(function() {
361
370
  c();
362
- }), v(i), fe(u);
363
- }, Ee = function(i) {
371
+ }), l(i), le(u);
372
+ }, Be = function(i) {
364
373
  i.persist && i.persist();
365
374
  var u = i.target, c = i.currentTarget;
366
- l.current = u, w.current.focusTimeout = setTimeout(function() {
367
- var N = u.selectionStart, _ = u.selectionEnd, D = u.value;
375
+ v.current = u, N.current.focusTimeout = setTimeout(function() {
376
+ var w = u.selectionStart, _ = u.selectionEnd, D = u.value;
368
377
  D === void 0 && (D = "");
369
- var p = O(D, N);
370
- p !== N && !(N === 0 && _ === D.length) && A(u, p, D), I(Object.assign(Object.assign({}, i), { currentTarget: c }));
378
+ var V = O(D, w);
379
+ V !== w && !(w === 0 && _ === D.length) && A(u, V, D), I(Object.assign(Object.assign({}, i), { currentTarget: c }));
371
380
  }, 0);
372
- }, Be = function(i) {
373
- l.current = null, clearTimeout(w.current.focusTimeout), clearTimeout(w.current.setCaretTimeout), C(i);
374
- }, Oe = ee && We() ? "numeric" : void 0, se = Object.assign({ inputMode: Oe }, F, {
381
+ }, Oe = function(i) {
382
+ v.current = null, clearTimeout(N.current.focusTimeout), clearTimeout(N.current.setCaretTimeout), C(i);
383
+ }, Te = re && We() ? "numeric" : void 0, se = Object.assign({ inputMode: Te }, F, {
375
384
  type: r,
376
385
  value: b,
377
- onChange: Ie,
378
- onKeyDown: Ce,
379
- onMouseUp: Ae,
380
- onFocus: Ee,
381
- onBlur: Be
386
+ onChange: Ce,
387
+ onKeyDown: Ae,
388
+ onMouseUp: Ee,
389
+ onFocus: Be,
390
+ onBlur: Oe
382
391
  });
383
392
  if (a === "text")
384
- return t ? Q.createElement(Q.Fragment, null, t(b, F) || null) : Q.createElement("span", Object.assign({}, F, { ref: o }), b);
393
+ return t ? X.createElement(X.Fragment, null, t(b, F) || null) : X.createElement("span", Object.assign({}, F, { ref: o }), b);
385
394
  if (n) {
386
- var Te = n;
387
- return Q.createElement(Te, Object.assign({}, se, { ref: o }));
395
+ var Re = n;
396
+ return X.createElement(Re, Object.assign({}, se, { ref: o }));
388
397
  }
389
- return Q.createElement("input", Object.assign({}, se, { ref: o }));
398
+ return X.createElement("input", Object.assign({}, se, { ref: o }));
390
399
  }
391
- function Se(e, r) {
400
+ function xe(e, r) {
392
401
  var a = r.decimalScale, n = r.fixedDecimalScale, t = r.prefix;
393
402
  t === void 0 && (t = "");
394
403
  var o = r.suffix;
395
404
  o === void 0 && (o = "");
396
- var f = r.allowNegative, m = r.thousandsGroupStyle;
397
- if (m === void 0 && (m = "thousand"), e === "" || e === "-")
405
+ var f = r.allowNegative, h = r.thousandsGroupStyle;
406
+ if (h === void 0 && (h = "thousand"), e === "" || e === "-")
398
407
  return e;
399
- var V = ie(r), y = V.thousandSeparator, S = V.decimalSeparator, g = a !== 0 && e.indexOf(".") !== -1 || a && n, h = de(e, f), x = h.beforeDecimal, v = h.afterDecimal, I = h.addNegation;
400
- return a !== void 0 && (v = be(v, a, !!n)), y && (x = Le(x, y, m)), t && (x = t + x), o && (v = v + o), I && (x = "-" + x), e = x + (g && S || "") + v, e;
408
+ var m = oe(r), y = m.thousandSeparator, S = m.decimalSeparator, g = a !== 0 && e.indexOf(".") !== -1 || a && n, x = de(e, f), p = x.beforeDecimal, l = x.afterDecimal, I = x.addNegation;
409
+ return a !== void 0 && (l = Ne(l, a, !!n)), y && (p = ke(p, y, h)), t && (p = t + p), o && (l = l + o), I && (p = "-" + p), e = p + (g && S || "") + l, e;
401
410
  }
402
- function ie(e) {
411
+ function oe(e) {
403
412
  var r = e.decimalSeparator;
404
413
  r === void 0 && (r = ".");
405
414
  var a = e.thousandSeparator, n = e.allowedDecimalSeparators;
@@ -415,7 +424,7 @@ function Qe(e, r) {
415
424
  return e = e.replace(/-/g, ""), t && !o && r && (e = "-" + e), e;
416
425
  }
417
426
  function Xe(e, r) {
418
- return new RegExp("(^-)|[0-9]|" + ye(e), "g");
427
+ return new RegExp("(^-)|[0-9]|" + be(e), "g");
419
428
  }
420
429
  function Ye(e, r, a) {
421
430
  return e === "" ? !0 : !r?.match(/\d/) && !a?.match(/\d/) && typeof e == "string" && !isNaN(Number(e));
@@ -427,32 +436,32 @@ function er(e, r, a) {
427
436
  o === void 0 && (o = "");
428
437
  var f = a.suffix;
429
438
  f === void 0 && (f = "");
430
- var m = a.decimalScale, V = r.from, y = r.to, S = y.start, g = y.end, h = ie(a), x = h.allowedDecimalSeparators, v = h.decimalSeparator, I = e[g] === v;
439
+ var h = a.decimalScale, m = r.from, y = r.to, S = y.start, g = y.end, x = oe(a), p = x.allowedDecimalSeparators, l = x.decimalSeparator, I = e[g] === l;
431
440
  if (te(e) && (e === o || e === f) && r.lastValue === "")
432
441
  return e;
433
- if (g - S === 1 && x.indexOf(e[S]) !== -1) {
434
- var C = m === 0 ? "" : v;
442
+ if (g - S === 1 && p.indexOf(e[S]) !== -1) {
443
+ var C = h === 0 ? "" : l;
435
444
  e = e.substring(0, S) + C + e.substring(S + 1, e.length);
436
445
  }
437
- var s = function(l, w, E) {
446
+ var s = function(v, N, E) {
438
447
  var B = !1, A = !1;
439
- o.startsWith("-") ? B = !1 : l.startsWith("--") ? (B = !1, A = !0) : f.startsWith("-") && l.length === f.length ? B = !1 : l[0] === "-" && (B = !0);
448
+ o.startsWith("-") ? B = !1 : v.startsWith("--") ? (B = !1, A = !0) : f.startsWith("-") && v.length === f.length ? B = !1 : v[0] === "-" && (B = !0);
440
449
  var O = B ? 1 : 0;
441
- return A && (O = 2), O && (l = l.substring(O), w -= O, E -= O), { value: l, start: w, end: E, hasNegation: B };
450
+ return A && (O = 2), O && (v = v.substring(O), N -= O, E -= O), { value: v, start: N, end: E, hasNegation: B };
442
451
  }, T = s(e, S, g), R = T.hasNegation;
443
452
  n = T, e = n.value, S = n.start, g = n.end;
444
- var L = s(r.lastValue, V.start, V.end), F = L.start, q = L.end, k = L.value, b = e.substring(S, g);
445
- e.length && k.length && (F > k.length - f.length || q < o.length) && !(b && f.startsWith(b)) && (e = k);
453
+ var L = s(r.lastValue, m.start, m.end), F = L.start, z = L.end, k = L.value, b = e.substring(S, g);
454
+ e.length && k.length && (F > k.length - f.length || z < o.length) && !(b && f.startsWith(b)) && (e = k);
446
455
  var M = 0;
447
456
  e.startsWith(o) ? M += o.length : S < o.length && (M = S), e = e.substring(M), g -= M;
448
457
  var K = e.length, j = e.length - f.length;
449
- e.endsWith(f) ? K = j : (g > j || g > e.length - f.length) && (K = g), e = e.substring(0, K), e = Qe(R ? "-" + e : e, t), e = (e.match(Xe(v)) || []).join("");
450
- var U = e.indexOf(v);
451
- e = e.replace(new RegExp(ye(v), "g"), function(l, w) {
452
- return w === U ? "." : "";
458
+ e.endsWith(f) ? K = j : (g > j || g > e.length - f.length) && (K = g), e = e.substring(0, K), e = Qe(R ? "-" + e : e, t), e = (e.match(Xe(l)) || []).join("");
459
+ var U = e.indexOf(l);
460
+ e = e.replace(new RegExp(be(l), "g"), function(v, N) {
461
+ return N === U ? "." : "";
453
462
  });
454
- var W = de(e, t), H = W.beforeDecimal, ee = W.afterDecimal, d = W.addNegation;
455
- return y.end - y.start < V.end - V.start && H === "" && I && !parseFloat(ee) && (e = d ? "-" : ""), e;
463
+ var W = de(e, t), J = W.beforeDecimal, re = W.afterDecimal, d = W.addNegation;
464
+ return y.end - y.start < m.end - m.start && J === "" && I && !parseFloat(re) && (e = d ? "-" : ""), e;
456
465
  }
457
466
  function rr(e, r) {
458
467
  var a = r.prefix;
@@ -462,12 +471,12 @@ function rr(e, r) {
462
471
  var t = Array.from({ length: e.length + 1 }).map(function() {
463
472
  return !0;
464
473
  }), o = e[0] === "-";
465
- t.fill(!1, 0, a.length + (o ? 1 : 0));
474
+ t.fill(!1, 0, Math.min(a.length + (o ? 1 : 0), e.length));
466
475
  var f = e.length;
467
476
  return t.fill(!1, f - n.length + 1, f + 1), t;
468
477
  }
469
478
  function ar(e) {
470
- var r = ie(e), a = r.thousandSeparator, n = r.decimalSeparator, t = e.prefix;
479
+ var r = oe(e), a = r.thousandSeparator, n = r.decimalSeparator, t = e.prefix;
471
480
  t === void 0 && (t = "");
472
481
  var o = e.allowNegative;
473
482
  if (o === void 0 && (o = !0), a === n)
@@ -488,19 +497,19 @@ function tr(e) {
488
497
  t === void 0 && (t = Z);
489
498
  var o = e.onBlur;
490
499
  o === void 0 && (o = Z);
491
- var f = e.thousandSeparator, m = e.decimalScale, V = e.fixedDecimalScale, y = e.prefix;
500
+ var f = e.thousandSeparator, h = e.decimalScale, m = e.fixedDecimalScale, y = e.prefix;
492
501
  y === void 0 && (y = "");
493
- var S = e.defaultValue, g = e.value, h = e.valueIsNumericString, x = e.onValueChange, v = pe(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), I = ie(e), C = I.decimalSeparator, s = I.allowedDecimalSeparators, T = function(d) {
494
- return Se(d, e);
495
- }, R = function(d, l) {
496
- return er(d, l, e);
497
- }, L = Y(g) ? S : g, F = h ?? Ye(L, y, r);
498
- Y(g) ? Y(S) || (F = F || typeof S == "number") : F = F || typeof g == "number";
499
- var q = function(d) {
500
- return Ve(d) ? d : (typeof d == "number" && (d = we(d)), F && typeof m == "number" ? me(d, m, !!V) : d);
501
- }, k = De(q(g), q(S), !!F, T, R, x), b = k[0], M = b.numAsString, K = b.formattedValue, j = k[1], U = function(d) {
502
- var l = d.target, w = d.key, E = l.selectionStart, B = l.selectionEnd, A = l.value;
503
- if (A === void 0 && (A = ""), (w === "Backspace" || w === "Delete") && B < y.length) {
502
+ var S = e.defaultValue, g = e.value, x = e.valueIsNumericString, p = e.onValueChange, l = Ve(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), I = oe(e), C = I.decimalSeparator, s = I.allowedDecimalSeparators, T = function(d) {
503
+ return xe(d, e);
504
+ }, R = function(d, v) {
505
+ return er(d, v, e);
506
+ }, L = q(g) ? S : g, F = x ?? Ye(L, y, r);
507
+ q(g) ? q(S) || (F = F || typeof S == "number") : F = F || typeof g == "number";
508
+ var z = function(d) {
509
+ return ye(d) ? d : (typeof d == "number" && (d = we(d)), F && typeof h == "number" ? he(d, h, !!m) : d);
510
+ }, k = Ie(z(g), z(S), !!F, T, R, p), b = k[0], M = b.numAsString, K = b.formattedValue, j = k[1], U = function(d) {
511
+ var v = d.target, N = d.key, E = v.selectionStart, B = v.selectionEnd, A = v.value;
512
+ if (A === void 0 && (A = ""), (N === "Backspace" || N === "Delete") && B < y.length && A !== "-") {
504
513
  d.preventDefault();
505
514
  return;
506
515
  }
@@ -508,36 +517,36 @@ function tr(e) {
508
517
  t(d);
509
518
  return;
510
519
  }
511
- w === "Backspace" && A[0] === "-" && E === y.length + 1 && a && z(l, 1), m && V && (w === "Backspace" && A[E - 1] === C ? (z(l, E - 1), d.preventDefault()) : w === "Delete" && A[E] === C && d.preventDefault()), s?.includes(w) && A[E] === C && z(l, E + 1);
520
+ N === "Backspace" && A[0] === "-" && E === y.length + 1 && a && H(v, 1), h && m && (N === "Backspace" && A[E - 1] === C ? (H(v, E - 1), d.preventDefault()) : N === "Delete" && A[E] === C && d.preventDefault()), s?.includes(N) && A[E] === C && H(v, E + 1);
512
521
  var O = f === !0 ? "," : f;
513
- w === "Backspace" && A[E - 1] === O && z(l, E - 1), w === "Delete" && A[E] === O && z(l, E + 1), t(d);
522
+ N === "Backspace" && A[E - 1] === O && H(v, E - 1), N === "Delete" && A[E] === O && H(v, E + 1), t(d);
514
523
  }, W = function(d) {
515
- var l = M;
516
- if (l.match(/\d/g) || (l = ""), n || (l = Pe(l)), V && m && (l = me(l, m, V)), l !== M) {
517
- var w = Se(l, e);
524
+ var v = M;
525
+ if (v.match(/\d/g) || (v = ""), n || (v = Pe(v)), m && h && (v = he(v, h, m)), v !== M) {
526
+ var N = xe(v, e);
518
527
  j({
519
- formattedValue: w,
520
- value: l,
521
- floatValue: parseFloat(l)
528
+ formattedValue: N,
529
+ value: v,
530
+ floatValue: parseFloat(v)
522
531
  }, {
523
532
  event: d,
524
- source: ae.event
533
+ source: ee.event
525
534
  });
526
535
  }
527
536
  o(d);
528
- }, H = function(d) {
537
+ }, J = function(d) {
529
538
  return d === C ? !0 : te(d);
530
- }, ee = function(d) {
531
- var l = d.currentValue, w = d.lastValue, E = d.formattedValue, B = d.currentValueIndex, A = d.formattedValueIndex, O = l[B], J = E[A], oe = Ne(w, l), re = oe.to, ne = function(ue) {
532
- return R(ue).indexOf(".") + y.length;
539
+ }, re = function(d) {
540
+ var v = d.currentValue, N = d.lastValue, E = d.formattedValue, B = d.currentValueIndex, A = d.formattedValueIndex, O = v[B], Q = E[A], ue = De(N, v), ae = ue.to, ne = function(fe) {
541
+ return R(fe).indexOf(".") + y.length;
533
542
  };
534
- return g === 0 && V && m && l[re.start] === C && ne(l) < B && ne(E) > A ? !1 : B >= re.start && B < re.end && s && s.includes(O) && J === C ? !0 : O === J;
543
+ return g === 0 && m && h && v[ae.start] === C && ne(v) < B && ne(E) > A ? !1 : B >= ae.start && B < ae.end && s && s.includes(O) && Q === C ? !0 : O === Q;
535
544
  };
536
- return Object.assign(Object.assign({}, v), {
545
+ return Object.assign(Object.assign({}, l), {
537
546
  value: K,
538
547
  valueIsNumericString: !1,
539
- isValidInputCharacter: H,
540
- isCharacterSame: ee,
548
+ isValidInputCharacter: J,
549
+ isCharacterSame: re,
541
550
  onValueChange: j,
542
551
  format: T,
543
552
  removeFormatting: R,
@@ -550,7 +559,7 @@ function tr(e) {
550
559
  }
551
560
  function ir(e) {
552
561
  var r = tr(e);
553
- return Q.createElement(Je, Object.assign({}, r));
562
+ return X.createElement(Je, Object.assign({}, r));
554
563
  }
555
564
  export {
556
565
  ir as N