@clearstory/drywall-react 4.1.2 → 4.1.4

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 (286) hide show
  1. package/dist/{Accordion-N2zr4DAg.js → Accordion-x2-hHKwH.js} +16 -15
  2. package/dist/{AccordionActions-D3BC-mkr.js → AccordionActions-iSi8MMm_.js} +8 -8
  3. package/dist/{AccordionDetails-CxFvueuN.js → AccordionDetails-C717_t1Z.js} +9 -9
  4. package/dist/{AccordionSummary-D2tzapDR.js → AccordionSummary-BRXA9lGJ.js} +6 -6
  5. package/dist/{AdapterDayjs-CiOMIAvk.js → AdapterDayjs-B-aQ7t7H.js} +2 -2
  6. package/dist/{Alert-OI-evg5Q.js → Alert-CuHm3vf9.js} +14 -13
  7. package/dist/{AlertTitle-DsZy6q2Z.js → AlertTitle-DmFGN0zD.js} +8 -8
  8. package/dist/{ArrowDropDown-Dg2nxMKG.js → ArrowDropDown-CGLljubQ.js} +16 -17
  9. package/dist/{Autocomplete-sKm5nu7E.js → Autocomplete-FWamSgvx.js} +113 -112
  10. package/dist/{Avatar-DG90pRjP.js → Avatar-By-aMv28.js} +6 -6
  11. package/dist/{AvatarGroup-BCsEfujH.js → AvatarGroup-B9R2KeDi.js} +11 -10
  12. package/dist/{Backdrop-gg1OVYeE.js → Backdrop-CNKXfinV.js} +11 -11
  13. package/dist/{Badge-DR9Xf01j.js → Badge-I9F5BedB.js} +15 -14
  14. package/dist/{Box-BH66vz6T.js → Box-CRpDZJO_.js} +16 -15
  15. package/dist/{Breadcrumbs-BR8QOArh.js → Breadcrumbs-Bgf4ieo2.js} +17 -16
  16. package/dist/{Button-BbJu-90x.js → Button-BlRsbuwB.js} +23 -22
  17. package/dist/{ButtonBase-D2KI3JHl.js → ButtonBase-Cs4TbfAo.js} +188 -197
  18. package/dist/{ButtonGroup-Ct0OLFwo.js → ButtonGroup-BSlLdpN8.js} +88 -93
  19. package/dist/{Card-Bhek6A3a.js → Card-C1uxdRhW.js} +4 -4
  20. package/dist/{CardActionArea-DwdW85Ul.js → CardActionArea-BjhV8BbB.js} +6 -6
  21. package/dist/{CardActions-CDFBLzjd.js → CardActions-CzziOWZT.js} +3 -3
  22. package/dist/{CardContent-CnCrbHTS.js → CardContent-D8YnorHr.js} +3 -3
  23. package/dist/{CardHeader-lx6JWWip.js → CardHeader-BkWz6cub.js} +5 -5
  24. package/dist/{CardMedia-BjZYtx5M.js → CardMedia-BZV-hoLx.js} +3 -3
  25. package/dist/{Checkbox-Cf3DgeZ-.js → Checkbox-CPm8wVXm.js} +12 -11
  26. package/dist/{Chip-DRuBzMk-.js → Chip-teUQj1Br.js} +80 -86
  27. package/dist/CircularProgress-CK8Z6nsP.js +283 -0
  28. package/dist/{Clear-CQi-XSTk.js → Clear-Bnp01YyW.js} +1 -1
  29. package/dist/{Close-BgPk7eQX.js → Close-DBCdaBsC.js} +3 -4
  30. package/dist/{Close-BQl12sEw.js → Close-DeDd1tSW.js} +1 -1
  31. package/dist/Collapse-DSDublNm.js +377 -0
  32. package/dist/{CssBaseline-DRSyTqEj.js → CssBaseline-CqWMIWyO.js} +1 -1
  33. package/dist/{Datepicker-ohrh8fVt.js → Datepicker-BvCR9LUk.js} +4884 -4823
  34. package/dist/{Dialog-CZ12ossO.js → Dialog-DlE5bGiD.js} +24 -23
  35. package/dist/{DialogActions-CA6rHb-U.js → DialogActions-B0ukhUln.js} +6 -6
  36. package/dist/{DialogContent-BqPESVtO.js → DialogContent-DW5dE1Vi.js} +7 -7
  37. package/dist/{DialogContentText-CbO2B4Z9.js → DialogContentText-CYMmddWD.js} +12 -12
  38. package/dist/{DialogTitle-CiIRMfyK.js → DialogTitle-DPNf3_DS.js} +3 -3
  39. package/dist/{Divider-CyEo7bil.js → Divider-BrLu1ruy.js} +3 -3
  40. package/dist/{Drawer-Thixj4OK.js → Drawer-DKwUGu3u.js} +44 -39
  41. package/dist/{Fade-Gtmak1th.js → Fade-BkDpgBI1.js} +1 -1
  42. package/dist/{FormControl-CTM-PuGq.js → FormControl-SJ7nmkLi.js} +25 -24
  43. package/dist/{FormControlLabel-B_NYtzoE.js → FormControlLabel-DT4oY6Jb.js} +15 -14
  44. package/dist/{FormGroup-BqyR9U5M.js → FormGroup-liXpqRx1.js} +3 -3
  45. package/dist/{FormHelperText-IjFT4yts.js → FormHelperText-Dh36nlW5.js} +25 -24
  46. package/dist/{FormLabel-BXdv649w.js → FormLabel-Cq6v8zn0.js} +21 -20
  47. package/dist/{GlobalStyles-BK9ZVXgm.js → GlobalStyles-BdRA9CMx.js} +2 -3
  48. package/dist/{Grow-BY83ldu0.js → Grow-CsltKHld.js} +1 -1
  49. package/dist/{IconButton-TpdTqzbL.js → IconButton-RfVV5QBc.js} +11 -10
  50. package/dist/{Info-CULapxL8.js → Info-Cykl51qM.js} +1 -1
  51. package/dist/{InputAdornment-6GxVjFAJ.js → InputAdornment-BZDlmn1r.js} +12 -11
  52. package/dist/{InputBase-C0p5hzfj.js → InputBase-C3EkH03W.js} +33 -32
  53. package/dist/{KeyboardArrowRight-ywXLVR_a.js → KeyboardArrowRight-BeJOYZQI.js} +5 -6
  54. package/dist/{LinearProgress-DBdJLldX.js → LinearProgress-DEF8RpGt.js} +11 -10
  55. package/dist/{Link-CwdfkEyp.js → Link-BuN8Z9Km.js} +16 -15
  56. package/dist/{List-XvltH5j2.js → List-CHaEYTNC.js} +6 -6
  57. package/dist/{ListItem-hSmSQZ5M.js → ListItem-7eb43107.js} +12 -12
  58. package/dist/{ListItemAvatar-CIR_FCWw.js → ListItemAvatar-rfKjhSyA.js} +3 -3
  59. package/dist/{ListItemButton-DGuk59D7.js → ListItemButton-C0Q-hiwk.js} +4 -4
  60. package/dist/{ListItemIcon-qpl0jIUb.js → ListItemIcon-j7UyIrVT.js} +3 -3
  61. package/dist/{ListItemText--2ZAv8r-.js → ListItemText-BGJkY3NK.js} +4 -4
  62. package/dist/{ListSubheader-CQgQmaSV.js → ListSubheader-CrHcPoc5.js} +14 -13
  63. package/dist/{Menu-CE9qTVST.js → Menu-D1SO5erH.js} +17 -16
  64. package/dist/{MenuItem-trBk-sK2.js → MenuItem-a1ebEYtF.js} +8 -8
  65. package/dist/{MenuList-CL9OITCI.js → MenuList-Di43Or7f.js} +2 -2
  66. package/dist/{Modal-B1F20IqD.js → Modal-9MD4qkqe.js} +7 -7
  67. package/dist/{Paper-CFXI_f81.js → Paper-CillS6ZD.js} +13 -12
  68. package/dist/{Popover-H9am5WFr.js → Popover-CeKBDf1E.js} +20 -20
  69. package/dist/{Popper-5y6_LfWc.js → Popper-C6wdLC8n.js} +4 -4
  70. package/dist/{Radio-Chip_J5Y.js → Radio-BZYnjZGa.js} +12 -11
  71. package/dist/{RadioGroup-uF_FkK9Y.js → RadioGroup-B_oZGEe4.js} +4 -4
  72. package/dist/{Select-BaTU7yXy.js → Select-B6vD2SgN.js} +15 -14
  73. package/dist/{Skeleton-CTzxP9ZP.js → Skeleton-dB0amZ86.js} +4 -4
  74. package/dist/{Slide-CTOPI8UL.js → Slide-DH1MNrW5.js} +1 -1
  75. package/dist/{Snackbar-DNzHR78G.js → Snackbar-CStc3hrX.js} +12 -11
  76. package/dist/{Step-De_J26Kx.js → Step-CV3A4LpO.js} +3 -3
  77. package/dist/{StepButton-Ct5V996M.js → StepButton-BBi5-y1-.js} +6 -6
  78. package/dist/{StepConnector-D2zy7UfA.js → StepConnector-BuYXen1O.js} +16 -15
  79. package/dist/{StepContent-CGd0JHuK.js → StepContent-DuLdAkaj.js} +6 -6
  80. package/dist/{StepIcon-DtjJGPoX.js → StepIcon-BGJV3ex5.js} +6 -6
  81. package/dist/{StepLabel-tG0KXLar.js → StepLabel-CzlfRONI.js} +6 -6
  82. package/dist/{Stepper-D8YGPzfv.js → Stepper-CidMCT4v.js} +4 -4
  83. package/dist/{SvgIcon-SrruGHpO.js → SvgIcon-BH0vQ_GU.js} +7 -6
  84. package/dist/{Switch-B8V1pe_R.js → Switch-DEHarJQv.js} +21 -20
  85. package/dist/{SwitchBase-CZegcH6m.js → SwitchBase-CI3CocUb.js} +26 -25
  86. package/dist/{Tab-DZoEFF3d.js → Tab-Bli-yyJs.js} +18 -17
  87. package/dist/{Table-qXK3k7_9.js → Table-BBCGDmoE.js} +4 -4
  88. package/dist/{TableBody-Cz4-zG4_.js → TableBody-UFw650kZ.js} +6 -6
  89. package/dist/{TableCell-DoYXdVk-.js → TableCell-BCcCX1o0.js} +7 -6
  90. package/dist/{TableContainer-C9YDy1mv.js → TableContainer-B8VlqYma.js} +3 -3
  91. package/dist/{TableFooter-BNiCxiFp.js → TableFooter-BaTiFVSU.js} +6 -6
  92. package/dist/{TableHead-CIgnNtbe.js → TableHead-CIA-5L7E.js} +6 -6
  93. package/dist/{TablePagination-BWugB9nc.js → TablePagination-DyQMglQB.js} +18 -18
  94. package/dist/{TableRow-BtFlGgF8.js → TableRow-kwIao0PS.js} +4 -4
  95. package/dist/{Tabs-C9SJL9Or.js → Tabs-C0clNfdI.js} +74 -73
  96. package/dist/{ThemeProviderWithVars-Dkq81Wx8.js → ThemeProviderWithVars-5x9PPela.js} +6 -6
  97. package/dist/{ToggleButton-BoIRPL6Y.js → ToggleButton-Bxt1wAl-.js} +9 -9
  98. package/dist/{ToggleButtonGroup-BinoCAui.js → ToggleButtonGroup-BU7q7tWs.js} +56 -61
  99. package/dist/{ToggleButtonGroupButtonContext-BgZ0ZVmu.js → ToggleButtonGroupButtonContext-DhmFd9i-.js} +6 -6
  100. package/dist/{Toolbar-BrvXkKNF.js → Toolbar-CdyTRFTH.js} +6 -6
  101. package/dist/{Tooltip-BAUhcOqU.js → Tooltip-D_k6EcdK.js} +23 -22
  102. package/dist/{Typography-DHgJeiAU.js → Typography-CmmKlAgs.js} +14 -13
  103. package/dist/{WarningAmberOutlined-DEuXzxTT.js → WarningAmberOutlined-GOlm4GU9.js} +1 -1
  104. package/dist/{Zoom-DWJxiZNB.js → Zoom-DjCniHY2.js} +1 -1
  105. package/dist/{ZoomOut-D9dmi-BN.js → ZoomOut-Ci4YyGNB.js} +1 -1
  106. package/dist/buttonGroupClasses-Df0-l-eH.js +10 -0
  107. package/dist/chipClasses-C45yHx_l.js +10 -0
  108. package/dist/components/Accordion/index.js +1 -1
  109. package/dist/components/AccordionActions/index.js +1 -1
  110. package/dist/components/AccordionDetails/index.js +1 -1
  111. package/dist/components/AccordionSummary/index.js +1 -1
  112. package/dist/components/Alert/index.js +1 -1
  113. package/dist/components/AlertTitle/index.js +1 -1
  114. package/dist/components/Autocomplete/Autocomplete.js +2 -2
  115. package/dist/components/Autocomplete/index.js +1 -1
  116. package/dist/components/AutocompleteControl/AutocompleteControl.d.ts +5 -1
  117. package/dist/components/AutocompleteControl/AutocompleteControl.js +70 -24
  118. package/dist/components/AutocompleteControl/index.js +1 -1
  119. package/dist/components/Avatar/index.js +1 -1
  120. package/dist/components/AvatarGroup/index.js +1 -1
  121. package/dist/components/Backdrop/index.js +1 -1
  122. package/dist/components/Badge/index.js +1 -1
  123. package/dist/components/Box/index.js +1 -1
  124. package/dist/components/Breadcrumbs/index.js +1 -1
  125. package/dist/components/Button/Button.theme.js +1 -1
  126. package/dist/components/Button/index.js +1 -1
  127. package/dist/components/ButtonBase/index.js +1 -1
  128. package/dist/components/ButtonGroup/ButtonGroup.theme.js +6 -5
  129. package/dist/components/ButtonGroup/index.js +7 -6
  130. package/dist/components/Card/index.js +1 -1
  131. package/dist/components/CardActionArea/index.js +1 -1
  132. package/dist/components/CardActions/index.js +1 -1
  133. package/dist/components/CardContent/index.js +1 -1
  134. package/dist/components/CardHeader/index.js +1 -1
  135. package/dist/components/CardMedia/index.js +1 -1
  136. package/dist/components/Checkbox/index.js +1 -1
  137. package/dist/components/Chip/Chip.theme.js +6 -5
  138. package/dist/components/Chip/index.js +4 -3
  139. package/dist/components/CircularProgress/index.js +1 -1
  140. package/dist/components/Collapse/index.js +1 -1
  141. package/dist/components/Container/index.js +1 -1
  142. package/dist/components/CssBaseline/index.js +1 -1
  143. package/dist/components/Datepicker/Datepicker.js +6 -5
  144. package/dist/components/Datepicker/index.js +2 -2
  145. package/dist/components/DatepickerControl/DatepickerControl.d.ts +5 -1
  146. package/dist/components/DatepickerControl/DatepickerControl.js +120 -24
  147. package/dist/components/DatepickerControl/index.js +1 -1
  148. package/dist/components/DescriptionDetails/DescriptionDetails.js +1 -1
  149. package/dist/components/DescriptionList/DescriptionList.js +1 -1
  150. package/dist/components/DescriptionTerm/DescriptionTerm.js +1 -1
  151. package/dist/components/Dialog/index.js +1 -1
  152. package/dist/components/DialogActions/index.js +1 -1
  153. package/dist/components/DialogClose/DialogClose.d.ts +1 -1
  154. package/dist/components/DialogClose/DialogClose.js +4 -19
  155. package/dist/components/DialogContent/index.js +1 -1
  156. package/dist/components/DialogContentText/index.js +1 -1
  157. package/dist/components/DialogTitle/index.js +2 -2
  158. package/dist/components/Divider/index.js +2 -2
  159. package/dist/components/Drawer/index.js +1 -1
  160. package/dist/components/Fade/index.js +1 -1
  161. package/dist/components/FormControl/index.js +1 -1
  162. package/dist/components/FormControlLabel/index.js +1 -1
  163. package/dist/components/FormGroup/index.js +1 -1
  164. package/dist/components/FormHelperText/index.js +1 -1
  165. package/dist/components/FormLabel/index.js +1 -1
  166. package/dist/components/FormSublabel/FormSublabel.d.ts +2 -2
  167. package/dist/components/FormSublabel/FormSublabel.js +8 -23
  168. package/dist/components/FormSublabel/index.js +2 -2
  169. package/dist/components/Grow/index.js +1 -1
  170. package/dist/components/IconButton/index.js +1 -1
  171. package/dist/components/Input/Input.js +1 -1
  172. package/dist/components/InputAdornment/index.js +1 -1
  173. package/dist/components/InputControl/InputControl.d.ts +5 -1
  174. package/dist/components/InputControl/InputControl.js +88 -24
  175. package/dist/components/InputControl/index.js +1 -1
  176. package/dist/components/LinearProgress/index.js +1 -1
  177. package/dist/components/Link/index.js +1 -1
  178. package/dist/components/List/index.js +1 -1
  179. package/dist/components/ListItem/index.js +1 -1
  180. package/dist/components/ListItemAvatar/index.js +1 -1
  181. package/dist/components/ListItemButton/index.js +2 -2
  182. package/dist/components/ListItemIcon/index.js +2 -2
  183. package/dist/components/ListItemText/index.js +2 -2
  184. package/dist/components/ListSubheader/index.js +1 -1
  185. package/dist/components/Menu/index.js +1 -1
  186. package/dist/components/MenuItem/index.js +1 -1
  187. package/dist/components/MenuList/index.js +1 -1
  188. package/dist/components/NumberInput/NumberInput.js +614 -22
  189. package/dist/components/NumberInput/index.js +1 -1
  190. package/dist/components/NumberInputControl/NumberInputControl.d.ts +5 -1
  191. package/dist/components/NumberInputControl/NumberInputControl.js +86 -24
  192. package/dist/components/NumberInputControl/index.js +1 -1
  193. package/dist/components/Paper/index.js +1 -1
  194. package/dist/components/Popover/index.js +1 -1
  195. package/dist/components/Popper/index.js +1 -1
  196. package/dist/components/Radio/index.js +1 -1
  197. package/dist/components/RadioGroup/index.js +1 -1
  198. package/dist/components/Select/Select.js +1 -1
  199. package/dist/components/Select/index.js +1 -1
  200. package/dist/components/SelectControl/SelectControl.d.ts +5 -1
  201. package/dist/components/SelectControl/SelectControl.js +90 -24
  202. package/dist/components/SelectControl/index.js +1 -1
  203. package/dist/components/Skeleton/index.js +1 -1
  204. package/dist/components/Slide/index.js +1 -1
  205. package/dist/components/Snackbar/index.js +1 -1
  206. package/dist/components/Stack/index.js +1 -1
  207. package/dist/components/Step/index.js +1 -1
  208. package/dist/components/StepButton/index.js +1 -1
  209. package/dist/components/StepConnector/index.js +1 -1
  210. package/dist/components/StepContent/index.js +1 -1
  211. package/dist/components/StepIcon/index.js +1 -1
  212. package/dist/components/StepLabel/index.js +1 -1
  213. package/dist/components/Stepper/index.js +1 -1
  214. package/dist/components/SvgIcon/index.js +1 -1
  215. package/dist/components/Switch/index.js +1 -1
  216. package/dist/components/Tab/index.js +1 -1
  217. package/dist/components/Table/index.js +1 -1
  218. package/dist/components/TableBody/index.js +1 -1
  219. package/dist/components/TableCell/index.js +1 -1
  220. package/dist/components/TableContainer/index.js +1 -1
  221. package/dist/components/TableFooter/index.js +1 -1
  222. package/dist/components/TableHead/index.js +1 -1
  223. package/dist/components/TablePagination/index.js +1 -1
  224. package/dist/components/TableRow/index.js +1 -1
  225. package/dist/components/Tabs/index.js +1 -1
  226. package/dist/components/ThemeProvider/ThemeProvider.js +1 -1
  227. package/dist/components/ToastContainer/ToastContainer.js +1 -1
  228. package/dist/components/ToastContainer/useToast.js +5 -5
  229. package/dist/components/ToggleButton/index.js +2 -2
  230. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.theme.js +14 -13
  231. package/dist/components/ToggleButtonGroup/index.js +4 -3
  232. package/dist/components/Toolbar/index.js +1 -1
  233. package/dist/components/Tooltip/index.js +1 -1
  234. package/dist/components/Typography/index.js +1 -1
  235. package/dist/components/Zoom/index.js +1 -1
  236. package/dist/{containerClasses-D1k-OQxc.js → containerClasses-D9GgrugO.js} +21 -20
  237. package/dist/{createSvgIcon-CGGjtU_g.js → createSvgIcon-CE5_EBKI.js} +1 -1
  238. package/dist/{createTheme-B1FDFl52.js → createTheme-C8al1H6l.js} +320 -341
  239. package/dist/defaultTheme-DDzCZLdJ.js +5 -0
  240. package/dist/dialogTitleClasses-CLoIlOgg.js +10 -0
  241. package/dist/{dividerClasses-BejrNVgA.js → dividerClasses-pnfF5xNS.js} +2 -2
  242. package/dist/{extendSxProp-Cae9F896.js → extendSxProp-DPJMnqJC.js} +1 -1
  243. package/dist/generateUtilityClass-BhfUaMgk.js +35 -0
  244. package/dist/{generateUtilityClasses-CIjBDg4V.js → generateUtilityClasses-E9gROIFd.js} +1 -1
  245. package/dist/icons/ClearstoryIcon.js +1 -1
  246. package/dist/icons/InternalOnlyIcon.js +1 -1
  247. package/dist/icons/MoneyBucketIcon.js +1 -1
  248. package/dist/icons/MoreCircleOutlineIcon.js +1 -1
  249. package/dist/icons/index.js +5 -5
  250. package/dist/{index-Dt2kGIWG.js → index-CFunVsti.js} +2 -1
  251. package/dist/{index-kh0XXQaW.js → index-CSb2qOUI.js} +9 -10
  252. package/dist/{index-ChmGGOCR.js → index-DKMUcCLE.js} +1 -1
  253. package/dist/isFocusVisible-BzX3wEi7.js +12 -0
  254. package/dist/{isMuiElement-BKsIGdxJ.js → isMuiElement-Bsc5gmYX.js} +1 -1
  255. package/dist/{listItemButtonClasses-DK3pwe9e.js → listItemButtonClasses-BNj44uhi.js} +2 -2
  256. package/dist/{listItemIconClasses-Dj1KxRly.js → listItemIconClasses-LHpZGozK.js} +2 -2
  257. package/dist/{listItemTextClasses-CepMuqE-.js → listItemTextClasses-BIe1gxVs.js} +2 -2
  258. package/dist/main.js +454 -445
  259. package/dist/{memoTheme-CCudmmpb.js → memoTheme-D_KVIx9Z.js} +1 -1
  260. package/dist/mergeSlotProps-CbCv_7BY.js +78 -0
  261. package/dist/{stackClasses-BcAe238O.js → stackClasses-Byw0GYkA.js} +27 -26
  262. package/dist/styled-BH7aTmBf.js +5 -0
  263. package/dist/{styled-D8CtiDxW.js → styled-SBTDGe0C.js} +9 -9
  264. package/dist/theme/colorSchemes.js +22 -23
  265. package/dist/theme/colors.d.ts +24 -1
  266. package/dist/theme/colors.js +54 -33
  267. package/dist/theme/index.js +15 -15
  268. package/dist/theme/internal.js +1 -1
  269. package/dist/toggleButtonGroupClasses-BomKNKPA.js +10 -0
  270. package/dist/{useControlled-nm4pBabJ.js → useControlled-D1L5tREc.js} +11 -11
  271. package/dist/{usePreviousProps-ByGlbpJ6.js → usePreviousProps-7NDRTUOj.js} +4 -4
  272. package/dist/{useSlot-BVGwJA4b.js → useSlot-CoTIuujp.js} +1 -1
  273. package/dist/{useSlotProps-D0I_wOtk.js → useSlotProps-DzlqyROF.js} +1 -1
  274. package/dist/{useTheme-DAG00iEG.js → useTheme-BRcg8wFh.js} +2 -2
  275. package/dist/{useTheme-zuIKvOcV.js → useTheme-Ixs7c498.js} +4 -4
  276. package/dist/{useThemeProps-BaZ_Jfig.js → useThemeProps-BXLYmQ1k.js} +1 -1
  277. package/package.json +12 -11
  278. package/dist/CircularProgress-C8rTSDsK.js +0 -256
  279. package/dist/Collapse-B6RSXnAZ.js +0 -337
  280. package/dist/SelectControl-Cwf0nfyr.js +0 -1043
  281. package/dist/defaultTheme-BSvUK9rJ.js +0 -5
  282. package/dist/dialogTitleClasses-dak6NgSZ.js +0 -10
  283. package/dist/isFocusVisible-CPZqtjv2.js +0 -12
  284. package/dist/mergeSlotProps-6s0dXxkk.js +0 -80
  285. package/dist/orange-DJwLWzIS.js +0 -35
  286. package/dist/styled-C1tcllXX.js +0 -5
@@ -1,24 +1,616 @@
1
- import "react/jsx-runtime";
2
- import "react";
3
- import { N as j, N as k } from "../../SelectControl-Cwf0nfyr.js";
4
- import "../../icons/ClearstoryIcon.js";
5
- import "../../icons/InternalOnlyIcon.js";
6
- import "../../icons/MoneyBucketIcon.js";
7
- import "../../icons/MoreCircleOutlineIcon.js";
8
- import "../../theme/index.js";
9
- import "../../Autocomplete-sKm5nu7E.js";
10
- import "../../Datepicker-ohrh8fVt.js";
11
- import "../DescriptionDetails/DescriptionDetails.js";
12
- import "../DescriptionList/DescriptionList.js";
13
- import "../DescriptionList/DescriptionListContext.js";
14
- import "../DescriptionTerm/DescriptionTerm.js";
15
- import "../Input/Input.js";
16
- import "../Select/Select.js";
17
- import "../../theme/internal.js";
18
- import "../ToastContainer/ToastContainer.js";
19
- import "../ToastContainer/ToastLabelContext.js";
20
- import "../../index-SzwnPTHF.js";
1
+ import { jsx as Te } from "react/jsx-runtime";
2
+ import Q, { useRef as X, useState as pe, useEffect as ve, useLayoutEffect as _e, useMemo as Fe, forwardRef as je } from "react";
3
+ import { Input as Me } from "../Input/Input.js";
4
+ function xe(e, r) {
5
+ var t = {};
6
+ for (var n in e)
7
+ Object.prototype.hasOwnProperty.call(e, n) && r.indexOf(n) < 0 && (t[n] = e[n]);
8
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
9
+ for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
10
+ r.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (t[n[a]] = e[n[a]]);
11
+ return t;
12
+ }
13
+ var te;
14
+ (function(e) {
15
+ e.event = "event", e.props = "prop";
16
+ })(te || (te = {}));
17
+ function q() {
18
+ }
19
+ function Le(e) {
20
+ var r, t = void 0;
21
+ return function() {
22
+ for (var n = [], a = arguments.length; a--; ) n[a] = arguments[a];
23
+ return r && n.length === r.length && n.every(function(i, f) {
24
+ return i === r[f];
25
+ }) || (r = n, t = e.apply(void 0, n)), t;
26
+ };
27
+ }
28
+ function ae(e) {
29
+ return !!(e || "").match(/\d/);
30
+ }
31
+ function Y(e) {
32
+ return e == null;
33
+ }
34
+ function ke(e) {
35
+ return typeof e == "number" && isNaN(e);
36
+ }
37
+ function Ve(e) {
38
+ return Y(e) || ke(e) || typeof e == "number" && !isFinite(e);
39
+ }
40
+ function ye(e) {
41
+ return e.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
42
+ }
43
+ function Pe(e) {
44
+ switch (e) {
45
+ case "lakh":
46
+ return /(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;
47
+ case "wan":
48
+ return /(\d)(?=(\d{4})+(?!\d))/g;
49
+ case "thousand":
50
+ default:
51
+ return /(\d)(?=(\d{3})+(?!\d))/g;
52
+ }
53
+ }
54
+ function Ke(e, r, t) {
55
+ var n = Pe(t), a = e.search(/[1-9]/);
56
+ return a = a === -1 ? e.length : a, e.substring(0, a) + e.substring(a, e.length).replace(n, "$1" + r);
57
+ }
58
+ function Ue(e) {
59
+ var r = X(e);
60
+ r.current = e;
61
+ var t = X(function() {
62
+ for (var n = [], a = arguments.length; a--; ) n[a] = arguments[a];
63
+ return r.current.apply(r, n);
64
+ });
65
+ return t.current;
66
+ }
67
+ function se(e, r) {
68
+ r === void 0 && (r = !0);
69
+ var t = e[0] === "-", n = t && r;
70
+ e = e.replace("-", "");
71
+ var a = e.split("."), i = a[0], f = a[1] || "";
72
+ return {
73
+ beforeDecimal: i,
74
+ afterDecimal: f,
75
+ hasNegation: t,
76
+ addNegation: n
77
+ };
78
+ }
79
+ function We(e) {
80
+ if (!e)
81
+ return e;
82
+ var r = e[0] === "-";
83
+ r && (e = e.substring(1, e.length));
84
+ var t = e.split("."), n = t[0].replace(/^0+/, "") || "0", a = t[1] || "";
85
+ return (r ? "-" : "") + n + (a ? "." + a : "");
86
+ }
87
+ function be(e, r, t) {
88
+ for (var n = "", a = t ? "0" : "", i = 0; i <= r - 1; i++)
89
+ n += e[i] || a;
90
+ return n;
91
+ }
92
+ function ge(e, r) {
93
+ return Array(r + 1).join(e);
94
+ }
95
+ function Ne(e) {
96
+ var r = e + "", t = r[0] === "-" ? "-" : "";
97
+ t && (r = r.substring(1));
98
+ var n = r.split(/[eE]/g), a = n[0], i = n[1];
99
+ if (i = Number(i), !i)
100
+ return t + a;
101
+ a = a.replace(".", "");
102
+ var f = 1 + i, m = a.length;
103
+ return f < 0 ? a = "0." + ge("0", Math.abs(f)) + a : f >= m ? a = a + ge("0", f - m) : a = (a.substring(0, f) || "0") + "." + a.substring(f), t + a;
104
+ }
105
+ function me(e, r, t) {
106
+ if (["", "-"].indexOf(e) !== -1)
107
+ return e;
108
+ var n = (e.indexOf(".") !== -1 || t) && r, a = se(e), i = a.beforeDecimal, f = a.afterDecimal, m = a.hasNegation, x = parseFloat("0." + (f || "0")), V = f.length <= r ? "0." + f : x.toFixed(r), S = V.split("."), g = i;
109
+ i && Number(S[0]) && (g = i.split("").reverse().reduce(function(N, w, d) {
110
+ return N.length > d ? (Number(N[0]) + Number(w)).toString() + N.substring(1, N.length) : w + N;
111
+ }, S[0]));
112
+ var h = be(S[1] || "", r, t), p = m ? "-" : "", l = n ? "." : "";
113
+ return "" + p + g + l + h;
114
+ }
115
+ function z(e, r) {
116
+ if (e.value = e.value, e !== null) {
117
+ if (e.createTextRange) {
118
+ var t = e.createTextRange();
119
+ return t.move("character", r), t.select(), !0;
120
+ }
121
+ return e.selectionStart || e.selectionStart === 0 ? (e.focus(), e.setSelectionRange(r, r), !0) : (e.focus(), !1);
122
+ }
123
+ }
124
+ var we = Le(function(e, r) {
125
+ for (var t = 0, n = 0, a = e.length, i = r.length; e[t] === r[t] && t < a; )
126
+ t++;
127
+ for (; e[a - 1 - n] === r[i - 1 - n] && i - n > t && a - n > t; )
128
+ n++;
129
+ return {
130
+ from: { start: t, end: a - n },
131
+ to: { start: t, end: i - n }
132
+ };
133
+ }), $e = function(e, r) {
134
+ var t = Math.min(e.selectionStart, r);
135
+ return {
136
+ from: { start: t, end: e.selectionEnd },
137
+ to: { start: t, end: r }
138
+ };
139
+ };
140
+ function Ge(e, r, t) {
141
+ return Math.min(Math.max(e, r), t);
142
+ }
143
+ function ce(e) {
144
+ return Math.max(e.selectionStart, e.selectionEnd);
145
+ }
146
+ function Ze() {
147
+ return typeof navigator < "u" && !(navigator.platform && /iPhone|iPod/.test(navigator.platform));
148
+ }
149
+ function qe(e) {
150
+ return {
151
+ from: {
152
+ start: 0,
153
+ end: 0
154
+ },
155
+ to: {
156
+ start: 0,
157
+ end: e.length
158
+ },
159
+ lastValue: ""
160
+ };
161
+ }
162
+ function ze(e) {
163
+ var r = e.currentValue, t = e.formattedValue, n = e.currentValueIndex, a = e.formattedValueIndex;
164
+ return r[n] === t[a];
165
+ }
166
+ function He(e, r, t, n, a, i, f) {
167
+ f === void 0 && (f = ze);
168
+ var m = a.findIndex(function(M) {
169
+ return M;
170
+ }), x = e.slice(0, m);
171
+ !r && !t.startsWith(x) && (r = x, t = x + t, n = n + x.length);
172
+ for (var V = t.length, S = e.length, g = {}, h = new Array(V), p = 0; p < V; p++) {
173
+ h[p] = -1;
174
+ for (var l = 0, N = S; l < N; l++) {
175
+ var w = f({
176
+ currentValue: t,
177
+ lastValue: r,
178
+ formattedValue: e,
179
+ currentValueIndex: p,
180
+ formattedValueIndex: l
181
+ });
182
+ if (w && g[l] !== !0) {
183
+ h[p] = l, g[l] = !0;
184
+ break;
185
+ }
186
+ }
187
+ }
188
+ for (var d = n; d < V && (h[d] === -1 || !i(t[d])); )
189
+ d++;
190
+ var O = d === V || h[d] === -1 ? S : h[d];
191
+ for (d = n - 1; d > 0 && h[d] === -1; )
192
+ d--;
193
+ var R = d === -1 || h[d] === -1 ? 0 : h[d] + 1;
194
+ return R > O ? O : n - R < O - n ? R : O;
195
+ }
196
+ function he(e, r, t, n) {
197
+ var a = e.length;
198
+ if (r = Ge(r, 0, a), n === "left") {
199
+ for (; r >= 0 && !t[r]; )
200
+ r--;
201
+ r === -1 && (r = t.indexOf(!0));
202
+ } else {
203
+ for (; r <= a && !t[r]; )
204
+ r++;
205
+ r > a && (r = t.lastIndexOf(!0));
206
+ }
207
+ return r === -1 && (r = a), r;
208
+ }
209
+ function Je(e) {
210
+ for (var r = Array.from({ length: e.length + 1 }).map(function() {
211
+ return !0;
212
+ }), t = 0, n = r.length; t < n; t++)
213
+ r[t] = !!(ae(e[t]) || ae(e[t - 1]));
214
+ return r;
215
+ }
216
+ function De(e, r, t, n, a, i) {
217
+ i === void 0 && (i = q);
218
+ var f = Ue(function(l, N) {
219
+ var w, d;
220
+ return Ve(l) ? (d = "", w = "") : typeof l == "number" || N ? (d = typeof l == "number" ? Ne(l) : l, w = n(d)) : (d = a(l, void 0), w = n(d)), { formattedValue: w, numAsString: d };
221
+ }), m = pe(function() {
222
+ return f(Y(e) ? r : e, t);
223
+ }), x = m[0], V = m[1], S = function(l, N) {
224
+ l.formattedValue !== x.formattedValue && V({
225
+ formattedValue: l.formattedValue,
226
+ numAsString: l.value
227
+ }), i(l, N);
228
+ }, g = e, h = t;
229
+ Y(e) && (g = x.numAsString, h = !0);
230
+ var p = f(g, h);
231
+ return Fe(function() {
232
+ V(p);
233
+ }, [p.formattedValue]), [x, S];
234
+ }
235
+ function Qe(e) {
236
+ return e.replace(/[^0-9]/g, "");
237
+ }
238
+ function Xe(e) {
239
+ return e;
240
+ }
241
+ function Ye(e) {
242
+ var r = e.type;
243
+ r === void 0 && (r = "text");
244
+ var t = e.displayType;
245
+ t === void 0 && (t = "input");
246
+ var n = e.customInput, a = e.renderText, i = e.getInputRef, f = e.format;
247
+ f === void 0 && (f = Xe);
248
+ var m = e.removeFormatting;
249
+ m === void 0 && (m = Qe);
250
+ var x = e.defaultValue, V = e.valueIsNumericString, S = e.onValueChange, g = e.isAllowed, h = e.onChange;
251
+ h === void 0 && (h = q);
252
+ var p = e.onKeyDown;
253
+ p === void 0 && (p = q);
254
+ var l = e.onMouseUp;
255
+ l === void 0 && (l = q);
256
+ var N = e.onFocus;
257
+ N === void 0 && (N = q);
258
+ var w = e.onBlur;
259
+ w === void 0 && (w = q);
260
+ var d = e.value, O = e.getCaretBoundary;
261
+ O === void 0 && (O = Je);
262
+ var R = e.isValidInputCharacter;
263
+ R === void 0 && (R = ae);
264
+ var M = e.isCharacterSame, _ = xe(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), k = De(d, x, !!V, f, m, S), P = k[0], b = P.formattedValue, j = P.numAsString, U = k[1], L = X(), W = X({ formattedValue: b, numAsString: j }), $ = function(o, u) {
265
+ W.current = { formattedValue: o.formattedValue, numAsString: o.value }, U(o, u);
266
+ }, H = pe(!1), ee = H[0], s = H[1], v = X(null), D = X({
267
+ setCaretTimeout: null,
268
+ focusTimeout: null
269
+ });
270
+ ve(function() {
271
+ return s(!0), function() {
272
+ clearTimeout(D.current.setCaretTimeout), clearTimeout(D.current.focusTimeout);
273
+ };
274
+ }, []);
275
+ var E = f, B = function(o, u) {
276
+ var c = parseFloat(u);
277
+ return {
278
+ formattedValue: o,
279
+ value: u,
280
+ floatValue: isNaN(c) ? void 0 : c
281
+ };
282
+ }, A = function(o, u, c) {
283
+ o.selectionStart === 0 && o.selectionEnd === o.value.length || (z(o, u), D.current.setCaretTimeout = setTimeout(function() {
284
+ o.value === c && o.selectionStart !== u && z(o, u);
285
+ }, 0));
286
+ }, T = function(o, u, c) {
287
+ return he(o, u, O(o), c);
288
+ }, J = function(o, u, c) {
289
+ var I = O(u), F = He(u, b, o, c, I, R, M);
290
+ return F = he(u, F, I), F;
291
+ }, oe = function(o) {
292
+ var u = o.formattedValue;
293
+ u === void 0 && (u = "");
294
+ var c = o.input, I = o.source, F = o.event, C = o.numAsString, y;
295
+ if (c) {
296
+ var K = o.inputValue || c.value, G = ce(c);
297
+ c.value = u, y = J(K, u, G), y !== void 0 && A(c, y, u);
298
+ }
299
+ u !== b && $(B(u, C), { event: F, source: I });
300
+ };
301
+ ve(function() {
302
+ var o = W.current, u = o.formattedValue, c = o.numAsString;
303
+ (b !== u || j !== c) && $(B(b, j), {
304
+ event: void 0,
305
+ source: te.props
306
+ });
307
+ }, [b, j]);
308
+ var re = v.current ? ce(v.current) : void 0, ne = typeof window < "u" ? _e : ve;
309
+ ne(function() {
310
+ var o = v.current;
311
+ if (b !== W.current.formattedValue && o) {
312
+ var u = J(W.current.formattedValue, b, re);
313
+ o.value = b, A(o, u, b);
314
+ }
315
+ }, [b]);
316
+ var ue = function(o, u, c) {
317
+ var I = u.target, F = L.current ? $e(L.current, I.selectionEnd) : we(b, o), C = Object.assign(Object.assign({}, F), { lastValue: b }), y = m(o, C), K = E(y);
318
+ if (y = m(K, void 0), g && !g(B(K, y))) {
319
+ var G = u.target, Z = ce(G), le = J(o, b, Z);
320
+ return G.value = b, A(G, le, b), !1;
321
+ }
322
+ return oe({
323
+ formattedValue: K,
324
+ numAsString: y,
325
+ inputValue: o,
326
+ event: u,
327
+ source: c,
328
+ input: u.target
329
+ }), !0;
330
+ }, fe = function(o, u) {
331
+ u === void 0 && (u = 0);
332
+ var c = o.selectionStart, I = o.selectionEnd;
333
+ L.current = { selectionStart: c, selectionEnd: I + u };
334
+ }, Ie = function(o) {
335
+ var u = o.target, c = u.value, I = ue(c, o, te.event);
336
+ I && h(o), L.current = void 0;
337
+ }, Ce = function(o) {
338
+ var u = o.target, c = o.key, I = u.selectionStart, F = u.selectionEnd, C = u.value;
339
+ C === void 0 && (C = "");
340
+ var y;
341
+ c === "ArrowLeft" || c === "Backspace" ? y = Math.max(I - 1, 0) : c === "ArrowRight" ? y = Math.min(I + 1, C.length) : c === "Delete" && (y = I);
342
+ var K = 0;
343
+ c === "Delete" && I === F && (K = 1);
344
+ var G = c === "ArrowLeft" || c === "ArrowRight";
345
+ if (y === void 0 || I !== F && !G) {
346
+ p(o), fe(u, K);
347
+ return;
348
+ }
349
+ var Z = y;
350
+ if (G) {
351
+ var le = c === "ArrowLeft" ? "left" : "right";
352
+ Z = T(C, y, le), Z !== y && o.preventDefault();
353
+ } else c === "Delete" && !R(C[y]) ? Z = T(C, y, "right") : c === "Backspace" && !R(C[y]) && (Z = T(C, y, "left"));
354
+ Z !== y && A(u, Z, C), p(o), fe(u, K);
355
+ }, Ae = function(o) {
356
+ var u = o.target, c = function() {
357
+ var I = u.selectionStart, F = u.selectionEnd, C = u.value;
358
+ if (C === void 0 && (C = ""), I === F) {
359
+ var y = T(C, I);
360
+ y !== I && A(u, y, C);
361
+ }
362
+ };
363
+ c(), requestAnimationFrame(function() {
364
+ c();
365
+ }), l(o), fe(u);
366
+ }, Ee = function(o) {
367
+ o.persist && o.persist();
368
+ var u = o.target, c = o.currentTarget;
369
+ v.current = u, D.current.focusTimeout = setTimeout(function() {
370
+ var I = u.selectionStart, F = u.selectionEnd, C = u.value;
371
+ C === void 0 && (C = "");
372
+ var y = T(C, I);
373
+ y !== I && !(I === 0 && F === C.length) && A(u, y, C), N(Object.assign(Object.assign({}, o), { currentTarget: c }));
374
+ }, 0);
375
+ }, Be = function(o) {
376
+ v.current = null, clearTimeout(D.current.focusTimeout), clearTimeout(D.current.setCaretTimeout), w(o);
377
+ }, Oe = ee && Ze() ? "numeric" : void 0, de = Object.assign({ inputMode: Oe }, _, {
378
+ type: r,
379
+ value: b,
380
+ onChange: Ie,
381
+ onKeyDown: Ce,
382
+ onMouseUp: Ae,
383
+ onFocus: Ee,
384
+ onBlur: Be
385
+ });
386
+ if (t === "text")
387
+ return a ? Q.createElement(Q.Fragment, null, a(b, _) || null) : Q.createElement("span", Object.assign({}, _, { ref: i }), b);
388
+ if (n) {
389
+ var Re = n;
390
+ return Q.createElement(Re, Object.assign({}, de, { ref: i }));
391
+ }
392
+ return Q.createElement("input", Object.assign({}, de, { ref: i }));
393
+ }
394
+ function Se(e, r) {
395
+ var t = r.decimalScale, n = r.fixedDecimalScale, a = r.prefix;
396
+ a === void 0 && (a = "");
397
+ var i = r.suffix;
398
+ i === void 0 && (i = "");
399
+ var f = r.allowNegative, m = r.thousandsGroupStyle;
400
+ if (m === void 0 && (m = "thousand"), e === "" || e === "-")
401
+ return e;
402
+ var x = ie(r), V = x.thousandSeparator, S = x.decimalSeparator, g = t !== 0 && e.indexOf(".") !== -1 || t && n, h = se(e, f), p = h.beforeDecimal, l = h.afterDecimal, N = h.addNegation;
403
+ return t !== void 0 && (l = be(l, t, !!n)), V && (p = Ke(p, V, m)), a && (p = a + p), i && (l = l + i), N && (p = "-" + p), e = p + (g && S || "") + l, e;
404
+ }
405
+ function ie(e) {
406
+ var r = e.decimalSeparator;
407
+ r === void 0 && (r = ".");
408
+ var t = e.thousandSeparator, n = e.allowedDecimalSeparators;
409
+ return t === !0 && (t = ","), n || (n = [r, "."]), {
410
+ decimalSeparator: r,
411
+ thousandSeparator: t,
412
+ allowedDecimalSeparators: n
413
+ };
414
+ }
415
+ function er(e, r) {
416
+ e === void 0 && (e = "");
417
+ var t = new RegExp("(-)"), n = new RegExp("(-)(.)*(-)"), a = t.test(e), i = n.test(e);
418
+ return e = e.replace(/-/g, ""), a && !i && r && (e = "-" + e), e;
419
+ }
420
+ function rr(e, r) {
421
+ return new RegExp("(^-)|[0-9]|" + ye(e), "g");
422
+ }
423
+ function tr(e, r, t) {
424
+ return e === "" ? !0 : !r?.match(/\d/) && !t?.match(/\d/) && typeof e == "string" && !isNaN(Number(e));
425
+ }
426
+ function ar(e, r, t) {
427
+ var n;
428
+ r === void 0 && (r = qe(e));
429
+ var a = t.allowNegative, i = t.prefix;
430
+ i === void 0 && (i = "");
431
+ var f = t.suffix;
432
+ f === void 0 && (f = "");
433
+ var m = t.decimalScale, x = r.from, V = r.to, S = V.start, g = V.end, h = ie(t), p = h.allowedDecimalSeparators, l = h.decimalSeparator, N = e[g] === l;
434
+ if (ae(e) && (e === i || e === f) && r.lastValue === "")
435
+ return e;
436
+ if (g - S === 1 && p.indexOf(e[S]) !== -1) {
437
+ var w = m === 0 ? "" : l;
438
+ e = e.substring(0, S) + w + e.substring(S + 1, e.length);
439
+ }
440
+ var d = function(v, D, E) {
441
+ var B = !1, A = !1;
442
+ i.startsWith("-") ? B = !1 : v.startsWith("--") ? (B = !1, A = !0) : f.startsWith("-") && v.length === f.length ? B = !1 : v[0] === "-" && (B = !0);
443
+ var T = B ? 1 : 0;
444
+ return A && (T = 2), T && (v = v.substring(T), D -= T, E -= T), { value: v, start: D, end: E, hasNegation: B };
445
+ }, O = d(e, S, g), R = O.hasNegation;
446
+ n = O, e = n.value, S = n.start, g = n.end;
447
+ var M = d(r.lastValue, x.start, x.end), _ = M.start, k = M.end, P = M.value, b = e.substring(S, g);
448
+ e.length && P.length && (_ > P.length - f.length || k < i.length) && !(b && f.startsWith(b)) && (e = P);
449
+ var j = 0;
450
+ e.startsWith(i) ? j += i.length : S < i.length && (j = S), e = e.substring(j), g -= j;
451
+ var U = e.length, L = e.length - f.length;
452
+ e.endsWith(f) ? U = L : (g > L || g > e.length - f.length) && (U = g), e = e.substring(0, U), e = er(R ? "-" + e : e, a), e = (e.match(rr(l)) || []).join("");
453
+ var W = e.indexOf(l);
454
+ e = e.replace(new RegExp(ye(l), "g"), function(v, D) {
455
+ return D === W ? "." : "";
456
+ });
457
+ var $ = se(e, a), H = $.beforeDecimal, ee = $.afterDecimal, s = $.addNegation;
458
+ return V.end - V.start < x.end - x.start && H === "" && N && !parseFloat(ee) && (e = s ? "-" : ""), e;
459
+ }
460
+ function nr(e, r) {
461
+ var t = r.prefix;
462
+ t === void 0 && (t = "");
463
+ var n = r.suffix;
464
+ n === void 0 && (n = "");
465
+ var a = Array.from({ length: e.length + 1 }).map(function() {
466
+ return !0;
467
+ }), i = e[0] === "-";
468
+ a.fill(!1, 0, t.length + (i ? 1 : 0));
469
+ var f = e.length;
470
+ return a.fill(!1, f - n.length + 1, f + 1), a;
471
+ }
472
+ function ir(e) {
473
+ var r = ie(e), t = r.thousandSeparator, n = r.decimalSeparator, a = e.prefix;
474
+ a === void 0 && (a = "");
475
+ var i = e.allowNegative;
476
+ if (i === void 0 && (i = !0), t === n)
477
+ throw new Error(`
478
+ Decimal separator can't be same as thousand separator.
479
+ thousandSeparator: ` + t + ` (thousandSeparator = {true} is same as thousandSeparator = ",")
480
+ decimalSeparator: ` + n + ` (default value for decimalSeparator is .)
481
+ `);
482
+ return a.startsWith("-") && i && (console.error(`
483
+ Prefix can't start with '-' when allowNegative is true.
484
+ prefix: ` + a + `
485
+ allowNegative: ` + i + `
486
+ `), i = !1), Object.assign(Object.assign({}, e), { allowNegative: i });
487
+ }
488
+ function or(e) {
489
+ e = ir(e), e.decimalSeparator, e.allowedDecimalSeparators, e.thousandsGroupStyle;
490
+ var r = e.suffix, t = e.allowNegative, n = e.allowLeadingZeros, a = e.onKeyDown;
491
+ a === void 0 && (a = q);
492
+ var i = e.onBlur;
493
+ i === void 0 && (i = q);
494
+ var f = e.thousandSeparator, m = e.decimalScale, x = e.fixedDecimalScale, V = e.prefix;
495
+ V === void 0 && (V = "");
496
+ var S = e.defaultValue, g = e.value, h = e.valueIsNumericString, p = e.onValueChange, l = xe(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), N = ie(e), w = N.decimalSeparator, d = N.allowedDecimalSeparators, O = function(s) {
497
+ return Se(s, e);
498
+ }, R = function(s, v) {
499
+ return ar(s, v, e);
500
+ }, M = Y(g) ? S : g, _ = h ?? tr(M, V, r);
501
+ Y(g) ? Y(S) || (_ = _ || typeof S == "number") : _ = _ || typeof g == "number";
502
+ var k = function(s) {
503
+ return Ve(s) ? s : (typeof s == "number" && (s = Ne(s)), _ && typeof m == "number" ? me(s, m, !!x) : s);
504
+ }, P = De(k(g), k(S), !!_, O, R, p), b = P[0], j = b.numAsString, U = b.formattedValue, L = P[1], W = function(s) {
505
+ var v = s.target, D = s.key, E = v.selectionStart, B = v.selectionEnd, A = v.value;
506
+ if (A === void 0 && (A = ""), (D === "Backspace" || D === "Delete") && B < V.length) {
507
+ s.preventDefault();
508
+ return;
509
+ }
510
+ if (E !== B) {
511
+ a(s);
512
+ return;
513
+ }
514
+ D === "Backspace" && A[0] === "-" && E === V.length + 1 && t && z(v, 1), m && x && (D === "Backspace" && A[E - 1] === w ? (z(v, E - 1), s.preventDefault()) : D === "Delete" && A[E] === w && s.preventDefault()), d?.includes(D) && A[E] === w && z(v, E + 1);
515
+ var T = f === !0 ? "," : f;
516
+ D === "Backspace" && A[E - 1] === T && z(v, E - 1), D === "Delete" && A[E] === T && z(v, E + 1), a(s);
517
+ }, $ = function(s) {
518
+ var v = j;
519
+ if (v.match(/\d/g) || (v = ""), n || (v = We(v)), x && m && (v = me(v, m, x)), v !== j) {
520
+ var D = Se(v, e);
521
+ L({
522
+ formattedValue: D,
523
+ value: v,
524
+ floatValue: parseFloat(v)
525
+ }, {
526
+ event: s,
527
+ source: te.event
528
+ });
529
+ }
530
+ i(s);
531
+ }, H = function(s) {
532
+ return s === w ? !0 : ae(s);
533
+ }, ee = function(s) {
534
+ var v = s.currentValue, D = s.lastValue, E = s.formattedValue, B = s.currentValueIndex, A = s.formattedValueIndex, T = v[B], J = E[A], oe = we(D, v), re = oe.to, ne = function(ue) {
535
+ return R(ue).indexOf(".") + V.length;
536
+ };
537
+ return g === 0 && x && m && v[re.start] === w && ne(v) < B && ne(E) > A ? !1 : B >= re.start && B < re.end && d && d.includes(T) && J === w ? !0 : T === J;
538
+ };
539
+ return Object.assign(Object.assign({}, l), {
540
+ value: U,
541
+ valueIsNumericString: !1,
542
+ isValidInputCharacter: H,
543
+ isCharacterSame: ee,
544
+ onValueChange: L,
545
+ format: O,
546
+ removeFormatting: R,
547
+ getCaretBoundary: function(s) {
548
+ return nr(s, e);
549
+ },
550
+ onKeyDown: W,
551
+ onBlur: $
552
+ });
553
+ }
554
+ function ur(e) {
555
+ var r = or(e);
556
+ return Q.createElement(Ye, Object.assign({}, r));
557
+ }
558
+ const fr = je(
559
+ ({
560
+ allowNegative: e = !0,
561
+ decimalScale: r = 2,
562
+ fixedDecimalScale: t = !1,
563
+ thousandSeparator: n = !0,
564
+ prefix: a,
565
+ suffix: i,
566
+ isAllowed: f,
567
+ onValueChange: m,
568
+ defaultValue: x,
569
+ value: V,
570
+ id: S,
571
+ name: g,
572
+ placeholder: h,
573
+ disabled: p,
574
+ error: l,
575
+ fullWidth: N = !0,
576
+ size: w = "small",
577
+ onBlur: d,
578
+ onFocus: O,
579
+ onKeyDown: R,
580
+ valueIsNumericString: M,
581
+ ..._
582
+ }, k) => /* @__PURE__ */ Te(
583
+ ur,
584
+ {
585
+ customInput: Me,
586
+ getInputRef: k,
587
+ allowNegative: e,
588
+ decimalScale: r,
589
+ fixedDecimalScale: t,
590
+ thousandSeparator: n,
591
+ prefix: a,
592
+ suffix: i,
593
+ isAllowed: f,
594
+ onValueChange: m,
595
+ defaultValue: x,
596
+ value: V,
597
+ valueIsNumericString: M,
598
+ id: S,
599
+ name: g,
600
+ placeholder: h,
601
+ disabled: p,
602
+ error: l,
603
+ fullWidth: N,
604
+ size: w,
605
+ onBlur: d,
606
+ onFocus: O,
607
+ onKeyDown: R,
608
+ ..._
609
+ }
610
+ )
611
+ );
612
+ fr.displayName = "NumberInput";
21
613
  export {
22
- j as NumberInput,
23
- k as default
614
+ fr as NumberInput,
615
+ fr as default
24
616
  };
@@ -1,4 +1,4 @@
1
- import { N as m } from "../../SelectControl-Cwf0nfyr.js";
1
+ import { NumberInput as m } from "./NumberInput.js";
2
2
  export {
3
3
  m as NumberInput
4
4
  };
@@ -1,5 +1,9 @@
1
1
  import { DOMAttributes, ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
2
- import { NumberInputProps, FormControlProps, FormLabelProps, FormHelperTextProps, FormSublabelProps } from '../../main';
2
+ import { FormControlProps } from '../FormControl';
3
+ import { FormHelperTextProps } from '../FormHelperText';
4
+ import { FormLabelProps } from '../FormLabel';
5
+ import { FormSublabelProps } from '../FormSublabel';
6
+ import { NumberInputProps } from '../NumberInput';
3
7
  type DOMEventHandlers = keyof DOMAttributes<HTMLElement>;
4
8
  export interface NumberInputControlProps extends Omit<NumberInputProps, "ref"> {
5
9
  helperText?: ReactNode;