@vlrc-fe/components 3.0.6 → 3.2.0

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