@elliemae/ds-form 2.1.1-rc.1 → 2.2.0-alpha.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 (1056) hide show
  1. package/cjs/Checkbox/DSCheckbox.js +145 -154
  2. package/cjs/Checkbox/DSCheckbox.js.map +7 -0
  3. package/cjs/Checkbox/defaultProps.js +37 -10
  4. package/cjs/Checkbox/defaultProps.js.map +7 -0
  5. package/cjs/Checkbox/elements/CheckMark.js +38 -13
  6. package/cjs/Checkbox/elements/CheckMark.js.map +7 -0
  7. package/cjs/Checkbox/index.js +28 -16
  8. package/cjs/Checkbox/index.js.map +7 -0
  9. package/cjs/Checkbox/props.js +48 -21
  10. package/cjs/Checkbox/props.js.map +7 -0
  11. package/cjs/CheckboxGroup/DSCheckboxGroup.js +103 -96
  12. package/cjs/CheckboxGroup/DSCheckboxGroup.js.map +7 -0
  13. package/cjs/CheckboxGroup/defaultProps.js +37 -9
  14. package/cjs/CheckboxGroup/defaultProps.js.map +7 -0
  15. package/cjs/CheckboxGroup/index.js +28 -11
  16. package/cjs/CheckboxGroup/index.js.map +7 -0
  17. package/cjs/CheckboxGroup/props.js +53 -45
  18. package/cjs/CheckboxGroup/props.js.map +7 -0
  19. package/cjs/ComboBox/DSComboBox.js +37 -20
  20. package/cjs/ComboBox/DSComboBox.js.map +7 -0
  21. package/cjs/ComboBox/index.js +40 -21
  22. package/cjs/ComboBox/index.js.map +7 -0
  23. package/cjs/ComboBox/v1/DSComboBox.js +266 -264
  24. package/cjs/ComboBox/v1/DSComboBox.js.map +7 -0
  25. package/cjs/ComboBox/v1/components/AllOption.js +42 -36
  26. package/cjs/ComboBox/v1/components/AllOption.js.map +7 -0
  27. package/cjs/ComboBox/v1/components/ClearIndicator.js +59 -41
  28. package/cjs/ComboBox/v1/components/ClearIndicator.js.map +7 -0
  29. package/cjs/ComboBox/v1/components/Control.js +43 -33
  30. package/cjs/ComboBox/v1/components/Control.js.map +7 -0
  31. package/cjs/ComboBox/v1/components/CustomOption.js +54 -48
  32. package/cjs/ComboBox/v1/components/CustomOption.js.map +7 -0
  33. package/cjs/ComboBox/v1/components/CustomOptionMulti.js +55 -51
  34. package/cjs/ComboBox/v1/components/CustomOptionMulti.js.map +7 -0
  35. package/cjs/ComboBox/v1/components/DropdownIndicator.js +64 -60
  36. package/cjs/ComboBox/v1/components/DropdownIndicator.js.map +7 -0
  37. package/cjs/ComboBox/v1/components/MenuList.js +74 -75
  38. package/cjs/ComboBox/v1/components/MenuList.js.map +7 -0
  39. package/cjs/ComboBox/v1/components/MultiSelectHeader.js +41 -18
  40. package/cjs/ComboBox/v1/components/MultiSelectHeader.js.map +7 -0
  41. package/cjs/ComboBox/v1/components/MultiValueLabel.js +42 -20
  42. package/cjs/ComboBox/v1/components/MultiValueLabel.js.map +7 -0
  43. package/cjs/ComboBox/v1/components/MultiValueRemove.js +46 -32
  44. package/cjs/ComboBox/v1/components/MultiValueRemove.js.map +7 -0
  45. package/cjs/ComboBox/v1/components/SelectMenu.js +71 -69
  46. package/cjs/ComboBox/v1/components/SelectMenu.js.map +7 -0
  47. package/cjs/ComboBox/v1/components/SingleValueLabel.js +46 -20
  48. package/cjs/ComboBox/v1/components/SingleValueLabel.js.map +7 -0
  49. package/cjs/ComboBox/v1/components/ValueContainer.js +43 -40
  50. package/cjs/ComboBox/v1/components/ValueContainer.js.map +7 -0
  51. package/cjs/ComboBox/v1/components/calculateWidth.js +36 -13
  52. package/cjs/ComboBox/v1/components/calculateWidth.js.map +7 -0
  53. package/cjs/ComboBox/v1/components/getoptions.js +34 -16
  54. package/cjs/ComboBox/v1/components/getoptions.js.map +7 -0
  55. package/cjs/ComboBox/v1/index.js +35 -18
  56. package/cjs/ComboBox/v1/index.js.map +7 -0
  57. package/cjs/ComboBox/v1/withSelectStringValueConverter.js +54 -59
  58. package/cjs/ComboBox/v1/withSelectStringValueConverter.js.map +7 -0
  59. package/cjs/ComboBox/v2/Combobox.js +333 -375
  60. package/cjs/ComboBox/v2/Combobox.js.map +7 -0
  61. package/cjs/ComboBox/v2/components/AllOption.js +42 -36
  62. package/cjs/ComboBox/v2/components/AllOption.js.map +7 -0
  63. package/cjs/ComboBox/v2/components/ClearIndicator.js +71 -66
  64. package/cjs/ComboBox/v2/components/ClearIndicator.js.map +7 -0
  65. package/cjs/ComboBox/v2/components/Content.js +50 -42
  66. package/cjs/ComboBox/v2/components/Content.js.map +7 -0
  67. package/cjs/ComboBox/v2/components/Control.js +43 -33
  68. package/cjs/ComboBox/v2/components/Control.js.map +7 -0
  69. package/cjs/ComboBox/v2/components/CustomOption.js +74 -85
  70. package/cjs/ComboBox/v2/components/CustomOption.js.map +7 -0
  71. package/cjs/ComboBox/v2/components/CustomOptionMulti.js +64 -65
  72. package/cjs/ComboBox/v2/components/CustomOptionMulti.js.map +7 -0
  73. package/cjs/ComboBox/v2/components/DropdownIndicator.js +77 -81
  74. package/cjs/ComboBox/v2/components/DropdownIndicator.js.map +7 -0
  75. package/cjs/ComboBox/v2/components/GroupHeading.js +57 -45
  76. package/cjs/ComboBox/v2/components/GroupHeading.js.map +7 -0
  77. package/cjs/ComboBox/v2/components/IndicatorSeparator.js +39 -28
  78. package/cjs/ComboBox/v2/components/IndicatorSeparator.js.map +7 -0
  79. package/cjs/ComboBox/v2/components/LoadingIndicator.js +47 -22
  80. package/cjs/ComboBox/v2/components/LoadingIndicator.js.map +7 -0
  81. package/cjs/ComboBox/v2/components/MenuList.js +94 -99
  82. package/cjs/ComboBox/v2/components/MenuList.js.map +7 -0
  83. package/cjs/ComboBox/v2/components/MultiSelectHeader.js +88 -60
  84. package/cjs/ComboBox/v2/components/MultiSelectHeader.js.map +7 -0
  85. package/cjs/ComboBox/v2/components/MultiValueLabel.js +42 -20
  86. package/cjs/ComboBox/v2/components/MultiValueLabel.js.map +7 -0
  87. package/cjs/ComboBox/v2/components/MultiValueRemove.js +52 -42
  88. package/cjs/ComboBox/v2/components/MultiValueRemove.js.map +7 -0
  89. package/cjs/ComboBox/v2/components/SelectMenu.js +58 -52
  90. package/cjs/ComboBox/v2/components/SelectMenu.js.map +7 -0
  91. package/cjs/ComboBox/v2/components/SingleValueLabel.js +46 -20
  92. package/cjs/ComboBox/v2/components/SingleValueLabel.js.map +7 -0
  93. package/cjs/ComboBox/v2/components/ValueContainer.js +52 -48
  94. package/cjs/ComboBox/v2/components/ValueContainer.js.map +7 -0
  95. package/cjs/ComboBox/v2/components/calculateWidth.js +37 -16
  96. package/cjs/ComboBox/v2/components/calculateWidth.js.map +7 -0
  97. package/cjs/ComboBox/v2/components/getoptions.js +34 -16
  98. package/cjs/ComboBox/v2/components/getoptions.js.map +7 -0
  99. package/cjs/ComboBox/v2/components/useMenuListHeight.js +42 -41
  100. package/cjs/ComboBox/v2/components/useMenuListHeight.js.map +7 -0
  101. package/cjs/ComboBox/v2/components/utils.js +35 -7
  102. package/cjs/ComboBox/v2/components/utils.js.map +7 -0
  103. package/cjs/ComboBox/v2/context.js +36 -13
  104. package/cjs/ComboBox/v2/context.js.map +7 -0
  105. package/cjs/ComboBox/v2/index.js +36 -11
  106. package/cjs/ComboBox/v2/index.js.map +7 -0
  107. package/cjs/ComboBox/v2/mockOptions.js +57 -20
  108. package/cjs/ComboBox/v2/mockOptions.js.map +7 -0
  109. package/cjs/ComboBox/v3/ComboBox.js +53 -0
  110. package/cjs/ComboBox/v3/ComboBox.js.map +7 -0
  111. package/cjs/ComboBox/v3/ComboBoxCTX.js +80 -0
  112. package/cjs/ComboBox/v3/ComboBoxCTX.js.map +7 -0
  113. package/cjs/ComboBox/v3/ComboboxDataTestids.js +45 -0
  114. package/cjs/ComboBox/v3/ComboboxDataTestids.js.map +7 -0
  115. package/cjs/ComboBox/v3/config/constants.js +42 -0
  116. package/cjs/ComboBox/v3/config/constants.js.map +7 -0
  117. package/cjs/ComboBox/v3/config/useComboBox.js +125 -0
  118. package/cjs/ComboBox/v3/config/useComboBox.js.map +7 -0
  119. package/cjs/ComboBox/v3/config/useGetPropsWithDefault.js +37 -0
  120. package/cjs/ComboBox/v3/config/useGetPropsWithDefault.js.map +7 -0
  121. package/cjs/ComboBox/v3/index.d.js +27 -0
  122. package/cjs/ComboBox/v3/index.d.js.map +7 -0
  123. package/cjs/ComboBox/v3/index.js +36 -0
  124. package/cjs/ComboBox/v3/index.js.map +7 -0
  125. package/cjs/ComboBox/v3/parts/a11y-messages/MultiAllyMessages.js +50 -0
  126. package/cjs/ComboBox/v3/parts/a11y-messages/MultiAllyMessages.js.map +7 -0
  127. package/cjs/ComboBox/v3/parts/a11y-messages/SingleAllyMessages.js +48 -0
  128. package/cjs/ComboBox/v3/parts/a11y-messages/SingleAllyMessages.js.map +7 -0
  129. package/cjs/ComboBox/v3/parts/a11y-messages/index.js +37 -0
  130. package/cjs/ComboBox/v3/parts/a11y-messages/index.js.map +7 -0
  131. package/cjs/ComboBox/v3/parts/a11y-messages/styled.js +41 -0
  132. package/cjs/ComboBox/v3/parts/a11y-messages/styled.js.map +7 -0
  133. package/cjs/ComboBox/v3/parts/container/Container.js +80 -0
  134. package/cjs/ComboBox/v3/parts/container/Container.js.map +7 -0
  135. package/cjs/ComboBox/v3/parts/container/index.js +35 -0
  136. package/cjs/ComboBox/v3/parts/container/index.js.map +7 -0
  137. package/cjs/ComboBox/v3/parts/container/styled.js +51 -0
  138. package/cjs/ComboBox/v3/parts/container/styled.js.map +7 -0
  139. package/cjs/ComboBox/v3/parts/controls/Controls.js +81 -0
  140. package/cjs/ComboBox/v3/parts/controls/Controls.js.map +7 -0
  141. package/cjs/ComboBox/v3/parts/controls/index.js +35 -0
  142. package/cjs/ComboBox/v3/parts/controls/index.js.map +7 -0
  143. package/cjs/ComboBox/v3/parts/controls/styled.js +101 -0
  144. package/cjs/ComboBox/v3/parts/controls/styled.js.map +7 -0
  145. package/cjs/ComboBox/v3/parts/controls-input/ControlsInput.js +73 -0
  146. package/cjs/ComboBox/v3/parts/controls-input/ControlsInput.js.map +7 -0
  147. package/cjs/ComboBox/v3/parts/controls-input/styled.js +71 -0
  148. package/cjs/ComboBox/v3/parts/controls-input/styled.js.map +7 -0
  149. package/cjs/ComboBox/v3/parts/controls-input/useControlsInput.js +91 -0
  150. package/cjs/ComboBox/v3/parts/controls-input/useControlsInput.js.map +7 -0
  151. package/cjs/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.js +53 -0
  152. package/cjs/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.js.map +7 -0
  153. package/cjs/ComboBox/v3/parts/dropdown-indicator/index.js +20 -0
  154. package/cjs/ComboBox/v3/parts/dropdown-indicator/index.js.map +7 -0
  155. package/cjs/ComboBox/v3/parts/dropdown-indicator/styled.js +43 -0
  156. package/cjs/ComboBox/v3/parts/dropdown-indicator/styled.js.map +7 -0
  157. package/cjs/ComboBox/v3/parts/empty-state/index.js +45 -0
  158. package/cjs/ComboBox/v3/parts/empty-state/index.js.map +7 -0
  159. package/cjs/ComboBox/v3/parts/empty-state/styled.js +40 -0
  160. package/cjs/ComboBox/v3/parts/empty-state/styled.js.map +7 -0
  161. package/cjs/ComboBox/v3/parts/header-list/HeaderList.js +120 -0
  162. package/cjs/ComboBox/v3/parts/header-list/HeaderList.js.map +7 -0
  163. package/cjs/ComboBox/v3/parts/header-list/index.js +35 -0
  164. package/cjs/ComboBox/v3/parts/header-list/index.js.map +7 -0
  165. package/cjs/ComboBox/v3/parts/header-list/styled.js +103 -0
  166. package/cjs/ComboBox/v3/parts/header-list/styled.js.map +7 -0
  167. package/cjs/ComboBox/v3/parts/header-list/useHeaderListHandlers.js +101 -0
  168. package/cjs/ComboBox/v3/parts/header-list/useHeaderListHandlers.js.map +7 -0
  169. package/cjs/ComboBox/v3/parts/menu-list/MenuList.js +85 -0
  170. package/cjs/ComboBox/v3/parts/menu-list/MenuList.js.map +7 -0
  171. package/cjs/ComboBox/v3/parts/menu-list/index.js +35 -0
  172. package/cjs/ComboBox/v3/parts/menu-list/index.js.map +7 -0
  173. package/cjs/ComboBox/v3/parts/menu-list/styled.js +50 -0
  174. package/cjs/ComboBox/v3/parts/menu-list/styled.js.map +7 -0
  175. package/cjs/ComboBox/v3/parts/menu-list/useItemRenderer.js +101 -0
  176. package/cjs/ComboBox/v3/parts/menu-list/useItemRenderer.js.map +7 -0
  177. package/cjs/ComboBox/v3/parts/menu-list/useMenuList.js +77 -0
  178. package/cjs/ComboBox/v3/parts/menu-list/useMenuList.js.map +7 -0
  179. package/cjs/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.js +68 -0
  180. package/cjs/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.js.map +7 -0
  181. package/cjs/ComboBox/v3/parts/multi-selected-values-container/index.js +35 -0
  182. package/cjs/ComboBox/v3/parts/multi-selected-values-container/index.js.map +7 -0
  183. package/cjs/ComboBox/v3/parts/multi-selected-values-container/styled.js +48 -0
  184. package/cjs/ComboBox/v3/parts/multi-selected-values-container/styled.js.map +7 -0
  185. package/cjs/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.js +85 -0
  186. package/cjs/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.js.map +7 -0
  187. package/cjs/ComboBox/v3/parts/single-selected-value-container/SingleSelectedValueContainer.js +48 -0
  188. package/cjs/ComboBox/v3/parts/single-selected-value-container/SingleSelectedValueContainer.js.map +7 -0
  189. package/cjs/ComboBox/v3/parts/single-selected-value-container/index.js +35 -0
  190. package/cjs/ComboBox/v3/parts/single-selected-value-container/index.js.map +7 -0
  191. package/cjs/ComboBox/v3/parts/single-selected-value-container/styled.js +40 -0
  192. package/cjs/ComboBox/v3/parts/single-selected-value-container/styled.js.map +7 -0
  193. package/cjs/ComboBox/v3/propTypes.js +52 -0
  194. package/cjs/ComboBox/v3/propTypes.js.map +7 -0
  195. package/cjs/ComboBox/v3/tests/utils.js +90 -0
  196. package/cjs/ComboBox/v3/tests/utils.js.map +7 -0
  197. package/cjs/ComboBox/v3/utils/hooks/useKeyboardNavigation.js +163 -0
  198. package/cjs/ComboBox/v3/utils/hooks/useKeyboardNavigation.js.map +7 -0
  199. package/cjs/ComboBox/v3/utils/hooks/useOnElementResize.js +56 -0
  200. package/cjs/ComboBox/v3/utils/hooks/useOnElementResize.js.map +7 -0
  201. package/cjs/ComboBox/v3/utils/listHelper.js +58 -0
  202. package/cjs/ComboBox/v3/utils/listHelper.js.map +7 -0
  203. package/cjs/ComboBoxFreeSolo/ComboBoxFreeSolo.js +109 -82
  204. package/cjs/ComboBoxFreeSolo/ComboBoxFreeSolo.js.map +7 -0
  205. package/cjs/ComboBoxFreeSolo/components/MultiValueLabel.js +64 -43
  206. package/cjs/ComboBoxFreeSolo/components/MultiValueLabel.js.map +7 -0
  207. package/cjs/ComboBoxFreeSolo/components/MultiValueRemove.js +53 -42
  208. package/cjs/ComboBoxFreeSolo/components/MultiValueRemove.js.map +7 -0
  209. package/cjs/ComboBoxFreeSolo/components/SingleValue.js +44 -35
  210. package/cjs/ComboBoxFreeSolo/components/SingleValue.js.map +7 -0
  211. package/cjs/ComboBoxFreeSolo/components/SingleValueRemove.js +66 -58
  212. package/cjs/ComboBoxFreeSolo/components/SingleValueRemove.js.map +7 -0
  213. package/cjs/ComboBoxFreeSolo/index.js +28 -7
  214. package/cjs/ComboBoxFreeSolo/index.js.map +7 -0
  215. package/cjs/DateInput/DSDateInput.js +97 -100
  216. package/cjs/DateInput/DSDateInput.js.map +7 -0
  217. package/cjs/DateInput/components/DateInputImpl.js +99 -70
  218. package/cjs/DateInput/components/DateInputImpl.js.map +7 -0
  219. package/cjs/DateInput/components/DateInputs.js +231 -314
  220. package/cjs/DateInput/components/DateInputs.js.map +7 -0
  221. package/cjs/DateInput/components/utils.js +130 -147
  222. package/cjs/DateInput/components/utils.js.map +7 -0
  223. package/cjs/DateInput/defaultProps.js +37 -10
  224. package/cjs/DateInput/defaultProps.js.map +7 -0
  225. package/cjs/DateInput/index.js +28 -12
  226. package/cjs/DateInput/index.js.map +7 -0
  227. package/cjs/DateInput/props.js +54 -83
  228. package/cjs/DateInput/props.js.map +7 -0
  229. package/cjs/DateInputV2/components/DSDateInput.js +76 -60
  230. package/cjs/DateInputV2/components/DSDateInput.js.map +7 -0
  231. package/cjs/DateInputV2/components/DateInputs.js +117 -134
  232. package/cjs/DateInputV2/components/DateInputs.js.map +7 -0
  233. package/cjs/DateInputV2/components/helpers.js +90 -65
  234. package/cjs/DateInputV2/components/helpers.js.map +7 -0
  235. package/cjs/DateInputV2/components/props.js +57 -66
  236. package/cjs/DateInputV2/components/props.js.map +7 -0
  237. package/cjs/DateInputV2/components/propsTypes.js +54 -30
  238. package/cjs/DateInputV2/components/propsTypes.js.map +7 -0
  239. package/cjs/DateInputV2/components/styled.js +97 -43
  240. package/cjs/DateInputV2/components/styled.js.map +7 -0
  241. package/cjs/DateInputV2/components/utils.js +165 -189
  242. package/cjs/DateInputV2/components/utils.js.map +7 -0
  243. package/cjs/DateInputV2/index.js +36 -13
  244. package/cjs/DateInputV2/index.js.map +7 -0
  245. package/cjs/ExpandableInput/DSExpandableInput.js +61 -38
  246. package/cjs/ExpandableInput/DSExpandableInput.js.map +7 -0
  247. package/cjs/ExpandableInput/ExpandableInputImpl.js +65 -78
  248. package/cjs/ExpandableInput/ExpandableInputImpl.js.map +7 -0
  249. package/cjs/ExpandableInput/index.js +28 -7
  250. package/cjs/ExpandableInput/index.js.map +7 -0
  251. package/cjs/FloatingLabelInput/DSFloatingLabelInput.js +83 -136
  252. package/cjs/FloatingLabelInput/DSFloatingLabelInput.js.map +7 -0
  253. package/cjs/FloatingLabelInput/FloatingLabelInputImpl.js +91 -112
  254. package/cjs/FloatingLabelInput/FloatingLabelInputImpl.js.map +7 -0
  255. package/cjs/FloatingLabelInput/getSvgPath.js +50 -25
  256. package/cjs/FloatingLabelInput/getSvgPath.js.map +7 -0
  257. package/cjs/FloatingLabelInput/index.js +28 -7
  258. package/cjs/FloatingLabelInput/index.js.map +7 -0
  259. package/cjs/FormItem/DSFormItemLayout.js +153 -170
  260. package/cjs/FormItem/DSFormItemLayout.js.map +7 -0
  261. package/cjs/FormItem/Error/DSError.js +48 -30
  262. package/cjs/FormItem/Error/DSError.js.map +7 -0
  263. package/cjs/FormItem/Feedback.js +45 -23
  264. package/cjs/FormItem/Feedback.js.map +7 -0
  265. package/cjs/FormItem/Label/DSLabel.js +69 -36
  266. package/cjs/FormItem/Label/DSLabel.js.map +7 -0
  267. package/cjs/FormItem/Suffix/Suffix.js +60 -29
  268. package/cjs/FormItem/Suffix/Suffix.js.map +7 -0
  269. package/cjs/FormItem/ValidationFieldWrapper.js +61 -83
  270. package/cjs/FormItem/ValidationFieldWrapper.js.map +7 -0
  271. package/cjs/FormItem/defaultProps.js +56 -24
  272. package/cjs/FormItem/defaultProps.js.map +7 -0
  273. package/cjs/FormItem/index.js +41 -15
  274. package/cjs/FormItem/index.js.map +7 -0
  275. package/cjs/FormItem/props.js +85 -126
  276. package/cjs/FormItem/props.js.map +7 -0
  277. package/cjs/FormItem/variants.js +41 -13
  278. package/cjs/FormItem/variants.js.map +7 -0
  279. package/cjs/Input/DSInput.js +97 -90
  280. package/cjs/Input/DSInput.js.map +7 -0
  281. package/cjs/Input/InputAddonWrapper.js +64 -81
  282. package/cjs/Input/InputAddonWrapper.js.map +7 -0
  283. package/cjs/Input/InputImpl.js +176 -261
  284. package/cjs/Input/InputImpl.js.map +7 -0
  285. package/cjs/Input/index.js +28 -11
  286. package/cjs/Input/index.js.map +7 -0
  287. package/cjs/InputGroup/AddonWrapper.js +47 -36
  288. package/cjs/InputGroup/AddonWrapper.js.map +7 -0
  289. package/cjs/InputGroup/DSInputGroup.js +61 -38
  290. package/cjs/InputGroup/DSInputGroup.js.map +7 -0
  291. package/cjs/InputGroup/defaultProps.js +35 -7
  292. package/cjs/InputGroup/defaultProps.js.map +7 -0
  293. package/cjs/InputGroup/index.js +37 -10
  294. package/cjs/InputGroup/index.js.map +7 -0
  295. package/cjs/InputGroup/props.js +45 -38
  296. package/cjs/InputGroup/props.js.map +7 -0
  297. package/cjs/InputMask/DSInputMask.js +91 -95
  298. package/cjs/InputMask/DSInputMask.js.map +7 -0
  299. package/cjs/InputMask/DSInputMaskDeprecated.js +164 -231
  300. package/cjs/InputMask/DSInputMaskDeprecated.js.map +7 -0
  301. package/cjs/InputMask/InputMaskContext.js +39 -21
  302. package/cjs/InputMask/InputMaskContext.js.map +7 -0
  303. package/cjs/InputMask/MaskPipes.js +37 -10
  304. package/cjs/InputMask/MaskPipes.js.map +7 -0
  305. package/cjs/InputMask/MaskTypes.js +76 -42
  306. package/cjs/InputMask/MaskTypes.js.map +7 -0
  307. package/cjs/InputMask/README.md +0 -0
  308. package/cjs/InputMask/addons/AutoCorrectedDatePipe.js +47 -40
  309. package/cjs/InputMask/addons/AutoCorrectedDatePipe.js.map +7 -0
  310. package/cjs/InputMask/defaultProps.js +41 -14
  311. package/cjs/InputMask/defaultProps.js.map +7 -0
  312. package/cjs/InputMask/index.js +28 -15
  313. package/cjs/InputMask/index.js.map +7 -0
  314. package/cjs/InputMask/mask_types/DateInputMask.js +169 -145
  315. package/cjs/InputMask/mask_types/DateInputMask.js.map +7 -0
  316. package/cjs/InputMask/mask_types/DateTimeInputMask.js +175 -150
  317. package/cjs/InputMask/mask_types/DateTimeInputMask.js.map +7 -0
  318. package/cjs/InputMask/mask_types/DictionaryInputMask.js +160 -136
  319. package/cjs/InputMask/mask_types/DictionaryInputMask.js.map +7 -0
  320. package/cjs/InputMask/mask_types/NumberInputMask.js +221 -187
  321. package/cjs/InputMask/mask_types/NumberInputMask.js.map +7 -0
  322. package/cjs/InputMask/mask_types/PhoneInputMask.js +172 -148
  323. package/cjs/InputMask/mask_types/PhoneInputMask.js.map +7 -0
  324. package/cjs/InputMask/mask_types/PhoneInternationalInputMask.js +172 -148
  325. package/cjs/InputMask/mask_types/PhoneInternationalInputMask.js.map +7 -0
  326. package/cjs/InputMask/mask_types/SsnInputMask.js +169 -145
  327. package/cjs/InputMask/mask_types/SsnInputMask.js.map +7 -0
  328. package/cjs/InputMask/mask_types/UsZipCodeInputMask.js +155 -130
  329. package/cjs/InputMask/mask_types/UsZipCodeInputMask.js.map +7 -0
  330. package/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js +166 -145
  331. package/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js.map +7 -0
  332. package/cjs/InputMask/mask_types/index.js +128 -119
  333. package/cjs/InputMask/mask_types/index.js.map +7 -0
  334. package/cjs/InputMask/props.js +73 -148
  335. package/cjs/InputMask/props.js.map +7 -0
  336. package/cjs/InputMask/types/index.js +27 -2
  337. package/cjs/InputMask/types/index.js.map +7 -0
  338. package/cjs/InputMask/utils/setCaretPosition.js +45 -14
  339. package/cjs/InputMask/utils/setCaretPosition.js.map +7 -0
  340. package/cjs/InputProtected/DSInputProtected.js +90 -86
  341. package/cjs/InputProtected/DSInputProtected.js.map +7 -0
  342. package/cjs/InputProtected/defaultProps.js +37 -10
  343. package/cjs/InputProtected/defaultProps.js.map +7 -0
  344. package/cjs/InputProtected/index.js +29 -14
  345. package/cjs/InputProtected/index.js.map +7 -0
  346. package/cjs/InputProtected/options.js +39 -11
  347. package/cjs/InputProtected/options.js.map +7 -0
  348. package/cjs/InputProtected/props.js +54 -22
  349. package/cjs/InputProtected/props.js.map +7 -0
  350. package/cjs/LargeInputText/DSLargeInputText.js +119 -122
  351. package/cjs/LargeInputText/DSLargeInputText.js.map +7 -0
  352. package/cjs/LargeInputText/defaultProps.js +44 -16
  353. package/cjs/LargeInputText/defaultProps.js.map +7 -0
  354. package/cjs/LargeInputText/index.js +37 -10
  355. package/cjs/LargeInputText/index.js.map +7 -0
  356. package/cjs/LargeInputText/props.js +62 -126
  357. package/cjs/LargeInputText/props.js.map +7 -0
  358. package/cjs/MenuItem/components/MenuItem/index.js +58 -50
  359. package/cjs/MenuItem/components/MenuItem/index.js.map +7 -0
  360. package/cjs/MenuItem/components/MenuItem/styled.js +43 -15
  361. package/cjs/MenuItem/components/MenuItem/styled.js.map +7 -0
  362. package/cjs/MenuItem/components/MultiMenuItem/MultiMenuItem.js +68 -48
  363. package/cjs/MenuItem/components/MultiMenuItem/MultiMenuItem.js.map +7 -0
  364. package/cjs/MenuItem/components/MultiMenuItem/styled.js +42 -15
  365. package/cjs/MenuItem/components/MultiMenuItem/styled.js.map +7 -0
  366. package/cjs/MenuItem/components/Section/index.js +50 -36
  367. package/cjs/MenuItem/components/Section/index.js.map +7 -0
  368. package/cjs/MenuItem/components/Section/props.js +38 -11
  369. package/cjs/MenuItem/components/Section/props.js.map +7 -0
  370. package/cjs/MenuItem/components/Section/styled.js +51 -20
  371. package/cjs/MenuItem/components/Section/styled.js.map +7 -0
  372. package/cjs/MenuItem/components/Separator/index.js +41 -27
  373. package/cjs/MenuItem/components/Separator/index.js.map +7 -0
  374. package/cjs/MenuItem/components/Separator/styled.js +50 -20
  375. package/cjs/MenuItem/components/Separator/styled.js.map +7 -0
  376. package/cjs/MenuItem/components/SingleMenuItem/SingleMenuItem.js +67 -48
  377. package/cjs/MenuItem/components/SingleMenuItem/SingleMenuItem.js.map +7 -0
  378. package/cjs/MenuItem/components/SubmenuItem/index.js +94 -95
  379. package/cjs/MenuItem/components/SubmenuItem/index.js.map +7 -0
  380. package/cjs/MenuItem/components/SubmenuItem/styled.js +48 -20
  381. package/cjs/MenuItem/components/SubmenuItem/styled.js.map +7 -0
  382. package/cjs/MenuItem/components/index.js +33 -22
  383. package/cjs/MenuItem/components/index.js.map +7 -0
  384. package/cjs/MenuItem/components/styled.js +95 -35
  385. package/cjs/MenuItem/components/styled.js.map +7 -0
  386. package/cjs/MenuItem/index.js +28 -22
  387. package/cjs/MenuItem/index.js.map +7 -0
  388. package/cjs/MenuItem/props.js +45 -18
  389. package/cjs/MenuItem/props.js.map +7 -0
  390. package/cjs/Radio/Circle.js +45 -24
  391. package/cjs/Radio/Circle.js.map +7 -0
  392. package/cjs/Radio/DSRadio.js +125 -171
  393. package/cjs/Radio/DSRadio.js.map +7 -0
  394. package/cjs/Radio/index.js +28 -10
  395. package/cjs/Radio/index.js.map +7 -0
  396. package/cjs/RadioGroup/DSRadioGroup.js +100 -95
  397. package/cjs/RadioGroup/DSRadioGroup.js.map +7 -0
  398. package/cjs/RadioGroup/defaultProps.js +37 -9
  399. package/cjs/RadioGroup/defaultProps.js.map +7 -0
  400. package/cjs/RadioGroup/index.js +28 -7
  401. package/cjs/RadioGroup/index.js.map +7 -0
  402. package/cjs/RadioGroup/props.js +50 -41
  403. package/cjs/RadioGroup/props.js.map +7 -0
  404. package/cjs/RequiredMark/RequiredMark.js +49 -30
  405. package/cjs/RequiredMark/RequiredMark.js.map +7 -0
  406. package/cjs/RequiredMark/index.js +28 -7
  407. package/cjs/RequiredMark/index.js.map +7 -0
  408. package/cjs/SearchBox/DSSearchBox.js +103 -86
  409. package/cjs/SearchBox/DSSearchBox.js.map +7 -0
  410. package/cjs/SearchBox/NavSearchBox.js +155 -152
  411. package/cjs/SearchBox/NavSearchBox.js.map +7 -0
  412. package/cjs/SearchBox/SButton.js +76 -33
  413. package/cjs/SearchBox/SButton.js.map +7 -0
  414. package/cjs/SearchBox/SearchBoxToggle.js +65 -56
  415. package/cjs/SearchBox/SearchBoxToggle.js.map +7 -0
  416. package/cjs/SearchBox/defaultProps.js +41 -13
  417. package/cjs/SearchBox/defaultProps.js.map +7 -0
  418. package/cjs/SearchBox/index.js +43 -15
  419. package/cjs/SearchBox/index.js.map +7 -0
  420. package/cjs/SearchBox/props.js +65 -94
  421. package/cjs/SearchBox/props.js.map +7 -0
  422. package/cjs/SearchBox/styled.js +39 -16
  423. package/cjs/SearchBox/styled.js.map +7 -0
  424. package/cjs/SearchBox/useSearch.js +54 -52
  425. package/cjs/SearchBox/useSearch.js.map +7 -0
  426. package/cjs/SearchBox/withSearchable.js +77 -103
  427. package/cjs/SearchBox/withSearchable.js.map +7 -0
  428. package/cjs/TextBox/DSTextBox.js +111 -176
  429. package/cjs/TextBox/DSTextBox.js.map +7 -0
  430. package/cjs/TextBox/index.js +37 -10
  431. package/cjs/TextBox/index.js.map +7 -0
  432. package/cjs/TimeInput/DSTimeInput.js +88 -122
  433. package/cjs/TimeInput/DSTimeInput.js.map +7 -0
  434. package/cjs/TimeInput/TimeInputImpl.js +85 -60
  435. package/cjs/TimeInput/TimeInputImpl.js.map +7 -0
  436. package/cjs/TimeInput/TimeInputs.js +250 -283
  437. package/cjs/TimeInput/TimeInputs.js.map +7 -0
  438. package/cjs/TimeInput/index.js +28 -12
  439. package/cjs/TimeInput/index.js.map +7 -0
  440. package/cjs/TimeInput/utils.js +98 -85
  441. package/cjs/TimeInput/utils.js.map +7 -0
  442. package/cjs/Toggle/DSToggle.js +82 -118
  443. package/cjs/Toggle/DSToggle.js.map +7 -0
  444. package/cjs/Toggle/DSToggleImpl.js +111 -183
  445. package/cjs/Toggle/DSToggleImpl.js.map +7 -0
  446. package/cjs/Toggle/DSToggleRender.js +110 -99
  447. package/cjs/Toggle/DSToggleRender.js.map +7 -0
  448. package/cjs/Toggle/index.js +37 -10
  449. package/cjs/Toggle/index.js.map +7 -0
  450. package/cjs/Toggle/props.js +47 -67
  451. package/cjs/Toggle/props.js.map +7 -0
  452. package/cjs/Toggle/toggleHelper.js +55 -38
  453. package/cjs/Toggle/toggleHelper.js.map +7 -0
  454. package/cjs/index.js +49 -120
  455. package/cjs/index.js.map +7 -0
  456. package/esm/Checkbox/DSCheckbox.js +112 -134
  457. package/esm/Checkbox/DSCheckbox.js.map +7 -0
  458. package/esm/Checkbox/defaultProps.js +7 -5
  459. package/esm/Checkbox/defaultProps.js.map +7 -0
  460. package/esm/Checkbox/elements/CheckMark.js +9 -7
  461. package/esm/Checkbox/elements/CheckMark.js.map +7 -0
  462. package/esm/Checkbox/index.js +3 -2
  463. package/esm/Checkbox/index.js.map +7 -0
  464. package/esm/Checkbox/props.js +22 -17
  465. package/esm/Checkbox/props.js.map +7 -0
  466. package/esm/CheckboxGroup/DSCheckboxGroup.js +72 -80
  467. package/esm/CheckboxGroup/DSCheckboxGroup.js.map +7 -0
  468. package/esm/CheckboxGroup/defaultProps.js +8 -5
  469. package/esm/CheckboxGroup/defaultProps.js.map +7 -0
  470. package/esm/CheckboxGroup/index.js +3 -1
  471. package/esm/CheckboxGroup/index.js.map +7 -0
  472. package/esm/CheckboxGroup/props.js +18 -35
  473. package/esm/CheckboxGroup/props.js.map +7 -0
  474. package/esm/ComboBox/DSComboBox.js +9 -4
  475. package/esm/ComboBox/DSComboBox.js.map +7 -0
  476. package/esm/ComboBox/index.js +12 -4
  477. package/esm/ComboBox/index.js.map +7 -0
  478. package/esm/ComboBox/v1/DSComboBox.js +239 -245
  479. package/esm/ComboBox/v1/DSComboBox.js.map +7 -0
  480. package/esm/ComboBox/v1/components/AllOption.js +13 -28
  481. package/esm/ComboBox/v1/components/AllOption.js.map +7 -0
  482. package/esm/ComboBox/v1/components/ClearIndicator.js +30 -34
  483. package/esm/ComboBox/v1/components/ClearIndicator.js.map +7 -0
  484. package/esm/ComboBox/v1/components/Control.js +15 -27
  485. package/esm/ComboBox/v1/components/Control.js.map +7 -0
  486. package/esm/ComboBox/v1/components/CustomOption.js +25 -39
  487. package/esm/ComboBox/v1/components/CustomOption.js.map +7 -0
  488. package/esm/ComboBox/v1/components/CustomOptionMulti.js +26 -42
  489. package/esm/ComboBox/v1/components/CustomOptionMulti.js.map +7 -0
  490. package/esm/ComboBox/v1/components/DropdownIndicator.js +35 -51
  491. package/esm/ComboBox/v1/components/DropdownIndicator.js.map +7 -0
  492. package/esm/ComboBox/v1/components/MenuList.js +39 -61
  493. package/esm/ComboBox/v1/components/MenuList.js.map +7 -0
  494. package/esm/ComboBox/v1/components/MultiSelectHeader.js +12 -12
  495. package/esm/ComboBox/v1/components/MultiSelectHeader.js.map +7 -0
  496. package/esm/ComboBox/v1/components/MultiValueLabel.js +13 -13
  497. package/esm/ComboBox/v1/components/MultiValueLabel.js.map +7 -0
  498. package/esm/ComboBox/v1/components/MultiValueRemove.js +17 -26
  499. package/esm/ComboBox/v1/components/MultiValueRemove.js.map +7 -0
  500. package/esm/ComboBox/v1/components/SelectMenu.js +41 -59
  501. package/esm/ComboBox/v1/components/SelectMenu.js.map +7 -0
  502. package/esm/ComboBox/v1/components/SingleValueLabel.js +17 -13
  503. package/esm/ComboBox/v1/components/SingleValueLabel.js.map +7 -0
  504. package/esm/ComboBox/v1/components/ValueContainer.js +14 -29
  505. package/esm/ComboBox/v1/components/ValueContainer.js.map +7 -0
  506. package/esm/ComboBox/v1/components/calculateWidth.js +7 -9
  507. package/esm/ComboBox/v1/components/calculateWidth.js.map +7 -0
  508. package/esm/ComboBox/v1/components/getoptions.js +5 -12
  509. package/esm/ComboBox/v1/components/getoptions.js.map +7 -0
  510. package/esm/ComboBox/v1/index.js +7 -3
  511. package/esm/ComboBox/v1/index.js.map +7 -0
  512. package/esm/ComboBox/v1/withSelectStringValueConverter.js +26 -54
  513. package/esm/ComboBox/v1/withSelectStringValueConverter.js.map +7 -0
  514. package/esm/ComboBox/v2/Combobox.js +286 -343
  515. package/esm/ComboBox/v2/Combobox.js.map +7 -0
  516. package/esm/ComboBox/v2/components/AllOption.js +13 -28
  517. package/esm/ComboBox/v2/components/AllOption.js.map +7 -0
  518. package/esm/ComboBox/v2/components/ClearIndicator.js +41 -56
  519. package/esm/ComboBox/v2/components/ClearIndicator.js.map +7 -0
  520. package/esm/ComboBox/v2/components/Content.js +20 -33
  521. package/esm/ComboBox/v2/components/Content.js.map +7 -0
  522. package/esm/ComboBox/v2/components/Control.js +15 -27
  523. package/esm/ComboBox/v2/components/Control.js.map +7 -0
  524. package/esm/ComboBox/v2/components/CustomOption.js +45 -76
  525. package/esm/ComboBox/v2/components/CustomOption.js.map +7 -0
  526. package/esm/ComboBox/v2/components/CustomOptionMulti.js +35 -57
  527. package/esm/ComboBox/v2/components/CustomOptionMulti.js.map +7 -0
  528. package/esm/ComboBox/v2/components/DropdownIndicator.js +47 -71
  529. package/esm/ComboBox/v2/components/DropdownIndicator.js.map +7 -0
  530. package/esm/ComboBox/v2/components/GroupHeading.js +27 -35
  531. package/esm/ComboBox/v2/components/GroupHeading.js.map +7 -0
  532. package/esm/ComboBox/v2/components/IndicatorSeparator.js +10 -19
  533. package/esm/ComboBox/v2/components/IndicatorSeparator.js.map +7 -0
  534. package/esm/ComboBox/v2/components/LoadingIndicator.js +18 -15
  535. package/esm/ComboBox/v2/components/LoadingIndicator.js.map +7 -0
  536. package/esm/ComboBox/v2/components/MenuList.js +57 -82
  537. package/esm/ComboBox/v2/components/MenuList.js.map +7 -0
  538. package/esm/ComboBox/v2/components/MultiSelectHeader.js +57 -49
  539. package/esm/ComboBox/v2/components/MultiSelectHeader.js.map +7 -0
  540. package/esm/ComboBox/v2/components/MultiValueLabel.js +13 -13
  541. package/esm/ComboBox/v2/components/MultiValueLabel.js.map +7 -0
  542. package/esm/ComboBox/v2/components/MultiValueRemove.js +23 -35
  543. package/esm/ComboBox/v2/components/MultiValueRemove.js.map +7 -0
  544. package/esm/ComboBox/v2/components/SelectMenu.js +28 -43
  545. package/esm/ComboBox/v2/components/SelectMenu.js.map +7 -0
  546. package/esm/ComboBox/v2/components/SingleValueLabel.js +17 -13
  547. package/esm/ComboBox/v2/components/SingleValueLabel.js.map +7 -0
  548. package/esm/ComboBox/v2/components/ValueContainer.js +20 -35
  549. package/esm/ComboBox/v2/components/ValueContainer.js.map +7 -0
  550. package/esm/ComboBox/v2/components/calculateWidth.js +8 -12
  551. package/esm/ComboBox/v2/components/calculateWidth.js.map +7 -0
  552. package/esm/ComboBox/v2/components/getoptions.js +5 -12
  553. package/esm/ComboBox/v2/components/getoptions.js.map +7 -0
  554. package/esm/ComboBox/v2/components/useMenuListHeight.js +13 -37
  555. package/esm/ComboBox/v2/components/useMenuListHeight.js.map +7 -0
  556. package/esm/ComboBox/v2/components/utils.js +6 -3
  557. package/esm/ComboBox/v2/components/utils.js.map +7 -0
  558. package/esm/ComboBox/v2/context.js +7 -5
  559. package/esm/ComboBox/v2/context.js.map +7 -0
  560. package/esm/ComboBox/v2/index.js +7 -1
  561. package/esm/ComboBox/v2/index.js.map +7 -0
  562. package/esm/ComboBox/v2/mockOptions.js +28 -18
  563. package/esm/ComboBox/v2/mockOptions.js.map +7 -0
  564. package/esm/ComboBox/v3/ComboBox.js +24 -0
  565. package/esm/ComboBox/v3/ComboBox.js.map +7 -0
  566. package/esm/ComboBox/v3/ComboBoxCTX.js +51 -0
  567. package/esm/ComboBox/v3/ComboBoxCTX.js.map +7 -0
  568. package/esm/ComboBox/v3/ComboboxDataTestids.js +16 -0
  569. package/esm/ComboBox/v3/ComboboxDataTestids.js.map +7 -0
  570. package/esm/ComboBox/v3/config/constants.js +13 -0
  571. package/esm/ComboBox/v3/config/constants.js.map +7 -0
  572. package/esm/ComboBox/v3/config/useComboBox.js +96 -0
  573. package/esm/ComboBox/v3/config/useComboBox.js.map +7 -0
  574. package/esm/ComboBox/v3/config/useGetPropsWithDefault.js +8 -0
  575. package/esm/ComboBox/v3/config/useGetPropsWithDefault.js.map +7 -0
  576. package/esm/ComboBox/v3/index.d.js +2 -0
  577. package/esm/ComboBox/v3/index.d.js.map +7 -0
  578. package/esm/ComboBox/v3/index.js +7 -0
  579. package/esm/ComboBox/v3/index.js.map +7 -0
  580. package/esm/ComboBox/v3/parts/a11y-messages/MultiAllyMessages.js +21 -0
  581. package/esm/ComboBox/v3/parts/a11y-messages/MultiAllyMessages.js.map +7 -0
  582. package/esm/ComboBox/v3/parts/a11y-messages/SingleAllyMessages.js +19 -0
  583. package/esm/ComboBox/v3/parts/a11y-messages/SingleAllyMessages.js.map +7 -0
  584. package/esm/ComboBox/v3/parts/a11y-messages/index.js +8 -0
  585. package/esm/ComboBox/v3/parts/a11y-messages/index.js.map +7 -0
  586. package/esm/ComboBox/v3/parts/a11y-messages/styled.js +12 -0
  587. package/esm/ComboBox/v3/parts/a11y-messages/styled.js.map +7 -0
  588. package/esm/ComboBox/v3/parts/container/Container.js +51 -0
  589. package/esm/ComboBox/v3/parts/container/Container.js.map +7 -0
  590. package/esm/ComboBox/v3/parts/container/index.js +6 -0
  591. package/esm/ComboBox/v3/parts/container/index.js.map +7 -0
  592. package/esm/ComboBox/v3/parts/container/styled.js +22 -0
  593. package/esm/ComboBox/v3/parts/container/styled.js.map +7 -0
  594. package/esm/ComboBox/v3/parts/controls/Controls.js +57 -0
  595. package/esm/ComboBox/v3/parts/controls/Controls.js.map +7 -0
  596. package/esm/ComboBox/v3/parts/controls/index.js +6 -0
  597. package/esm/ComboBox/v3/parts/controls/index.js.map +7 -0
  598. package/esm/ComboBox/v3/parts/controls/styled.js +72 -0
  599. package/esm/ComboBox/v3/parts/controls/styled.js.map +7 -0
  600. package/esm/ComboBox/v3/parts/controls-input/ControlsInput.js +44 -0
  601. package/esm/ComboBox/v3/parts/controls-input/ControlsInput.js.map +7 -0
  602. package/esm/ComboBox/v3/parts/controls-input/styled.js +42 -0
  603. package/esm/ComboBox/v3/parts/controls-input/styled.js.map +7 -0
  604. package/esm/ComboBox/v3/parts/controls-input/useControlsInput.js +62 -0
  605. package/esm/ComboBox/v3/parts/controls-input/useControlsInput.js.map +7 -0
  606. package/esm/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.js +24 -0
  607. package/esm/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.js.map +7 -0
  608. package/esm/ComboBox/v3/parts/dropdown-indicator/index.js +2 -0
  609. package/esm/ComboBox/v3/parts/dropdown-indicator/index.js.map +7 -0
  610. package/esm/ComboBox/v3/parts/dropdown-indicator/styled.js +14 -0
  611. package/esm/ComboBox/v3/parts/dropdown-indicator/styled.js.map +7 -0
  612. package/esm/ComboBox/v3/parts/empty-state/index.js +16 -0
  613. package/esm/ComboBox/v3/parts/empty-state/index.js.map +7 -0
  614. package/esm/ComboBox/v3/parts/empty-state/styled.js +11 -0
  615. package/esm/ComboBox/v3/parts/empty-state/styled.js.map +7 -0
  616. package/esm/ComboBox/v3/parts/header-list/HeaderList.js +99 -0
  617. package/esm/ComboBox/v3/parts/header-list/HeaderList.js.map +7 -0
  618. package/esm/ComboBox/v3/parts/header-list/index.js +6 -0
  619. package/esm/ComboBox/v3/parts/header-list/index.js.map +7 -0
  620. package/esm/ComboBox/v3/parts/header-list/styled.js +74 -0
  621. package/esm/ComboBox/v3/parts/header-list/styled.js.map +7 -0
  622. package/esm/ComboBox/v3/parts/header-list/useHeaderListHandlers.js +72 -0
  623. package/esm/ComboBox/v3/parts/header-list/useHeaderListHandlers.js.map +7 -0
  624. package/esm/ComboBox/v3/parts/menu-list/MenuList.js +56 -0
  625. package/esm/ComboBox/v3/parts/menu-list/MenuList.js.map +7 -0
  626. package/esm/ComboBox/v3/parts/menu-list/index.js +6 -0
  627. package/esm/ComboBox/v3/parts/menu-list/index.js.map +7 -0
  628. package/esm/ComboBox/v3/parts/menu-list/styled.js +21 -0
  629. package/esm/ComboBox/v3/parts/menu-list/styled.js.map +7 -0
  630. package/esm/ComboBox/v3/parts/menu-list/useItemRenderer.js +72 -0
  631. package/esm/ComboBox/v3/parts/menu-list/useItemRenderer.js.map +7 -0
  632. package/esm/ComboBox/v3/parts/menu-list/useMenuList.js +48 -0
  633. package/esm/ComboBox/v3/parts/menu-list/useMenuList.js.map +7 -0
  634. package/esm/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.js +39 -0
  635. package/esm/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.js.map +7 -0
  636. package/esm/ComboBox/v3/parts/multi-selected-values-container/index.js +6 -0
  637. package/esm/ComboBox/v3/parts/multi-selected-values-container/index.js.map +7 -0
  638. package/esm/ComboBox/v3/parts/multi-selected-values-container/styled.js +19 -0
  639. package/esm/ComboBox/v3/parts/multi-selected-values-container/styled.js.map +7 -0
  640. package/esm/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.js +56 -0
  641. package/esm/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.js.map +7 -0
  642. package/esm/ComboBox/v3/parts/single-selected-value-container/SingleSelectedValueContainer.js +19 -0
  643. package/esm/ComboBox/v3/parts/single-selected-value-container/SingleSelectedValueContainer.js.map +7 -0
  644. package/esm/ComboBox/v3/parts/single-selected-value-container/index.js +6 -0
  645. package/esm/ComboBox/v3/parts/single-selected-value-container/index.js.map +7 -0
  646. package/esm/ComboBox/v3/parts/single-selected-value-container/styled.js +11 -0
  647. package/esm/ComboBox/v3/parts/single-selected-value-container/styled.js.map +7 -0
  648. package/esm/ComboBox/v3/propTypes.js +23 -0
  649. package/esm/ComboBox/v3/propTypes.js.map +7 -0
  650. package/esm/ComboBox/v3/tests/utils.js +61 -0
  651. package/esm/ComboBox/v3/tests/utils.js.map +7 -0
  652. package/esm/ComboBox/v3/utils/hooks/useKeyboardNavigation.js +134 -0
  653. package/esm/ComboBox/v3/utils/hooks/useKeyboardNavigation.js.map +7 -0
  654. package/esm/ComboBox/v3/utils/hooks/useOnElementResize.js +27 -0
  655. package/esm/ComboBox/v3/utils/hooks/useOnElementResize.js.map +7 -0
  656. package/esm/ComboBox/v3/utils/listHelper.js +29 -0
  657. package/esm/ComboBox/v3/utils/listHelper.js.map +7 -0
  658. package/esm/ComboBoxFreeSolo/ComboBoxFreeSolo.js +75 -70
  659. package/esm/ComboBoxFreeSolo/ComboBoxFreeSolo.js.map +7 -0
  660. package/esm/ComboBoxFreeSolo/components/MultiValueLabel.js +36 -35
  661. package/esm/ComboBoxFreeSolo/components/MultiValueLabel.js.map +7 -0
  662. package/esm/ComboBoxFreeSolo/components/MultiValueRemove.js +24 -32
  663. package/esm/ComboBoxFreeSolo/components/MultiValueRemove.js.map +7 -0
  664. package/esm/ComboBoxFreeSolo/components/SingleValue.js +15 -26
  665. package/esm/ComboBoxFreeSolo/components/SingleValue.js.map +7 -0
  666. package/esm/ComboBoxFreeSolo/components/SingleValueRemove.js +37 -47
  667. package/esm/ComboBoxFreeSolo/components/SingleValueRemove.js.map +7 -0
  668. package/esm/ComboBoxFreeSolo/index.js +3 -1
  669. package/esm/ComboBoxFreeSolo/index.js.map +7 -0
  670. package/esm/DateInput/DSDateInput.js +61 -82
  671. package/esm/DateInput/DSDateInput.js.map +7 -0
  672. package/esm/DateInput/components/DateInputImpl.js +68 -61
  673. package/esm/DateInput/components/DateInputImpl.js.map +7 -0
  674. package/esm/DateInput/components/DateInputs.js +197 -285
  675. package/esm/DateInput/components/DateInputs.js.map +7 -0
  676. package/esm/DateInput/components/utils.js +98 -118
  677. package/esm/DateInput/components/utils.js.map +7 -0
  678. package/esm/DateInput/defaultProps.js +8 -6
  679. package/esm/DateInput/defaultProps.js.map +7 -0
  680. package/esm/DateInput/index.js +3 -2
  681. package/esm/DateInput/index.js.map +7 -0
  682. package/esm/DateInput/props.js +25 -79
  683. package/esm/DateInput/props.js.map +7 -0
  684. package/esm/DateInputV2/components/DSDateInput.js +44 -48
  685. package/esm/DateInputV2/components/DSDateInput.js.map +7 -0
  686. package/esm/DateInputV2/components/DateInputs.js +84 -110
  687. package/esm/DateInputV2/components/DateInputs.js.map +7 -0
  688. package/esm/DateInputV2/components/helpers.js +60 -60
  689. package/esm/DateInputV2/components/helpers.js.map +7 -0
  690. package/esm/DateInputV2/components/props.js +22 -55
  691. package/esm/DateInputV2/components/props.js.map +7 -0
  692. package/esm/DateInputV2/components/propsTypes.js +10 -7
  693. package/esm/DateInputV2/components/propsTypes.js.map +7 -0
  694. package/esm/DateInputV2/components/styled.js +68 -32
  695. package/esm/DateInputV2/components/styled.js.map +7 -0
  696. package/esm/DateInputV2/components/utils.js +132 -157
  697. package/esm/DateInputV2/components/utils.js.map +7 -0
  698. package/esm/DateInputV2/index.js +7 -2
  699. package/esm/DateInputV2/index.js.map +7 -0
  700. package/esm/ExpandableInput/DSExpandableInput.js +32 -32
  701. package/esm/ExpandableInput/DSExpandableInput.js.map +7 -0
  702. package/esm/ExpandableInput/ExpandableInputImpl.js +37 -71
  703. package/esm/ExpandableInput/ExpandableInputImpl.js.map +7 -0
  704. package/esm/ExpandableInput/index.js +3 -1
  705. package/esm/ExpandableInput/index.js.map +7 -0
  706. package/esm/FloatingLabelInput/DSFloatingLabelInput.js +54 -130
  707. package/esm/FloatingLabelInput/DSFloatingLabelInput.js.map +7 -0
  708. package/esm/FloatingLabelInput/FloatingLabelInputImpl.js +59 -100
  709. package/esm/FloatingLabelInput/FloatingLabelInputImpl.js.map +7 -0
  710. package/esm/FloatingLabelInput/getSvgPath.js +21 -23
  711. package/esm/FloatingLabelInput/getSvgPath.js.map +7 -0
  712. package/esm/FloatingLabelInput/index.js +3 -1
  713. package/esm/FloatingLabelInput/index.js.map +7 -0
  714. package/esm/FormItem/DSFormItemLayout.js +123 -155
  715. package/esm/FormItem/DSFormItemLayout.js.map +7 -0
  716. package/esm/FormItem/Error/DSError.js +18 -20
  717. package/esm/FormItem/Error/DSError.js.map +7 -0
  718. package/esm/FormItem/Feedback.js +16 -17
  719. package/esm/FormItem/Feedback.js.map +7 -0
  720. package/esm/FormItem/Label/DSLabel.js +40 -29
  721. package/esm/FormItem/Label/DSLabel.js.map +7 -0
  722. package/esm/FormItem/Suffix/Suffix.js +31 -18
  723. package/esm/FormItem/Suffix/Suffix.js.map +7 -0
  724. package/esm/FormItem/ValidationFieldWrapper.js +31 -76
  725. package/esm/FormItem/ValidationFieldWrapper.js.map +7 -0
  726. package/esm/FormItem/defaultProps.js +23 -16
  727. package/esm/FormItem/defaultProps.js.map +7 -0
  728. package/esm/FormItem/index.js +18 -3
  729. package/esm/FormItem/index.js.map +7 -0
  730. package/esm/FormItem/props.js +56 -122
  731. package/esm/FormItem/props.js.map +7 -0
  732. package/esm/FormItem/variants.js +11 -8
  733. package/esm/FormItem/variants.js.map +7 -0
  734. package/esm/Input/DSInput.js +68 -80
  735. package/esm/Input/DSInput.js.map +7 -0
  736. package/esm/Input/InputAddonWrapper.js +36 -75
  737. package/esm/Input/InputAddonWrapper.js.map +7 -0
  738. package/esm/Input/InputImpl.js +114 -216
  739. package/esm/Input/InputImpl.js.map +7 -0
  740. package/esm/Input/index.js +3 -2
  741. package/esm/Input/index.js.map +7 -0
  742. package/esm/InputGroup/AddonWrapper.js +17 -28
  743. package/esm/InputGroup/AddonWrapper.js.map +7 -0
  744. package/esm/InputGroup/DSInputGroup.js +30 -31
  745. package/esm/InputGroup/DSInputGroup.js.map +7 -0
  746. package/esm/InputGroup/defaultProps.js +6 -3
  747. package/esm/InputGroup/defaultProps.js.map +7 -0
  748. package/esm/InputGroup/index.js +8 -1
  749. package/esm/InputGroup/index.js.map +7 -0
  750. package/esm/InputGroup/props.js +16 -34
  751. package/esm/InputGroup/props.js.map +7 -0
  752. package/esm/InputMask/DSInputMask.js +55 -76
  753. package/esm/InputMask/DSInputMask.js.map +7 -0
  754. package/esm/InputMask/DSInputMaskDeprecated.js +132 -220
  755. package/esm/InputMask/DSInputMaskDeprecated.js.map +7 -0
  756. package/esm/InputMask/InputMaskContext.js +10 -13
  757. package/esm/InputMask/InputMaskContext.js.map +7 -0
  758. package/esm/InputMask/MaskPipes.js +7 -4
  759. package/esm/InputMask/MaskPipes.js.map +7 -0
  760. package/esm/InputMask/MaskTypes.js +47 -33
  761. package/esm/InputMask/MaskTypes.js.map +7 -0
  762. package/esm/InputMask/README.md +0 -0
  763. package/esm/InputMask/addons/AutoCorrectedDatePipe.js +18 -36
  764. package/esm/InputMask/addons/AutoCorrectedDatePipe.js.map +7 -0
  765. package/esm/InputMask/defaultProps.js +11 -9
  766. package/esm/InputMask/defaultProps.js.map +7 -0
  767. package/esm/InputMask/index.js +3 -3
  768. package/esm/InputMask/index.js.map +7 -0
  769. package/esm/InputMask/mask_types/DateInputMask.js +136 -134
  770. package/esm/InputMask/mask_types/DateInputMask.js.map +7 -0
  771. package/esm/InputMask/mask_types/DateTimeInputMask.js +142 -139
  772. package/esm/InputMask/mask_types/DateTimeInputMask.js.map +7 -0
  773. package/esm/InputMask/mask_types/DictionaryInputMask.js +127 -125
  774. package/esm/InputMask/mask_types/DictionaryInputMask.js.map +7 -0
  775. package/esm/InputMask/mask_types/NumberInputMask.js +188 -176
  776. package/esm/InputMask/mask_types/NumberInputMask.js.map +7 -0
  777. package/esm/InputMask/mask_types/PhoneInputMask.js +139 -137
  778. package/esm/InputMask/mask_types/PhoneInputMask.js.map +7 -0
  779. package/esm/InputMask/mask_types/PhoneInternationalInputMask.js +139 -137
  780. package/esm/InputMask/mask_types/PhoneInternationalInputMask.js.map +7 -0
  781. package/esm/InputMask/mask_types/SsnInputMask.js +136 -134
  782. package/esm/InputMask/mask_types/SsnInputMask.js.map +7 -0
  783. package/esm/InputMask/mask_types/UsZipCodeInputMask.js +122 -119
  784. package/esm/InputMask/mask_types/UsZipCodeInputMask.js.map +7 -0
  785. package/esm/InputMask/mask_types/ZipCodeSearchInputMask.js +133 -134
  786. package/esm/InputMask/mask_types/ZipCodeSearchInputMask.js.map +7 -0
  787. package/esm/InputMask/mask_types/index.js +99 -110
  788. package/esm/InputMask/mask_types/index.js.map +7 -0
  789. package/esm/InputMask/props.js +43 -143
  790. package/esm/InputMask/props.js.map +7 -0
  791. package/esm/InputMask/types/index.js +2 -1
  792. package/esm/InputMask/types/index.js.map +7 -0
  793. package/esm/InputMask/utils/setCaretPosition.js +16 -12
  794. package/esm/InputMask/utils/setCaretPosition.js.map +7 -0
  795. package/esm/InputProtected/DSInputProtected.js +49 -61
  796. package/esm/InputProtected/DSInputProtected.js.map +7 -0
  797. package/esm/InputProtected/defaultProps.js +7 -5
  798. package/esm/InputProtected/defaultProps.js.map +7 -0
  799. package/esm/InputProtected/index.js +4 -2
  800. package/esm/InputProtected/index.js.map +7 -0
  801. package/esm/InputProtected/options.js +10 -6
  802. package/esm/InputProtected/options.js.map +7 -0
  803. package/esm/InputProtected/props.js +25 -18
  804. package/esm/InputProtected/props.js.map +7 -0
  805. package/esm/LargeInputText/DSLargeInputText.js +92 -111
  806. package/esm/LargeInputText/DSLargeInputText.js.map +7 -0
  807. package/esm/LargeInputText/defaultProps.js +15 -12
  808. package/esm/LargeInputText/defaultProps.js.map +7 -0
  809. package/esm/LargeInputText/index.js +8 -1
  810. package/esm/LargeInputText/index.js.map +7 -0
  811. package/esm/LargeInputText/props.js +33 -122
  812. package/esm/LargeInputText/props.js.map +7 -0
  813. package/esm/MenuItem/components/MenuItem/index.js +25 -36
  814. package/esm/MenuItem/components/MenuItem/index.js.map +7 -0
  815. package/esm/MenuItem/components/MenuItem/styled.js +14 -7
  816. package/esm/MenuItem/components/MenuItem/styled.js.map +7 -0
  817. package/esm/MenuItem/components/MultiMenuItem/MultiMenuItem.js +36 -36
  818. package/esm/MenuItem/components/MultiMenuItem/MultiMenuItem.js.map +7 -0
  819. package/esm/MenuItem/components/MultiMenuItem/styled.js +13 -7
  820. package/esm/MenuItem/components/MultiMenuItem/styled.js.map +7 -0
  821. package/esm/MenuItem/components/Section/index.js +17 -23
  822. package/esm/MenuItem/components/Section/index.js.map +7 -0
  823. package/esm/MenuItem/components/Section/props.js +9 -6
  824. package/esm/MenuItem/components/Section/props.js.map +7 -0
  825. package/esm/MenuItem/components/Section/styled.js +22 -11
  826. package/esm/MenuItem/components/Section/styled.js.map +7 -0
  827. package/esm/MenuItem/components/Separator/index.js +12 -19
  828. package/esm/MenuItem/components/Separator/index.js.map +7 -0
  829. package/esm/MenuItem/components/Separator/styled.js +21 -11
  830. package/esm/MenuItem/components/Separator/styled.js.map +7 -0
  831. package/esm/MenuItem/components/SingleMenuItem/SingleMenuItem.js +35 -36
  832. package/esm/MenuItem/components/SingleMenuItem/SingleMenuItem.js.map +7 -0
  833. package/esm/MenuItem/components/SubmenuItem/index.js +58 -75
  834. package/esm/MenuItem/components/SubmenuItem/index.js.map +7 -0
  835. package/esm/MenuItem/components/SubmenuItem/styled.js +19 -11
  836. package/esm/MenuItem/components/SubmenuItem/styled.js.map +7 -0
  837. package/esm/MenuItem/components/index.js +8 -6
  838. package/esm/MenuItem/components/index.js.map +7 -0
  839. package/esm/MenuItem/components/styled.js +72 -26
  840. package/esm/MenuItem/components/styled.js.map +7 -0
  841. package/esm/MenuItem/index.js +3 -6
  842. package/esm/MenuItem/index.js.map +7 -0
  843. package/esm/MenuItem/props.js +14 -11
  844. package/esm/MenuItem/props.js.map +7 -0
  845. package/esm/Radio/Circle.js +16 -18
  846. package/esm/Radio/Circle.js.map +7 -0
  847. package/esm/Radio/DSRadio.js +95 -159
  848. package/esm/Radio/DSRadio.js.map +7 -0
  849. package/esm/Radio/index.js +3 -1
  850. package/esm/Radio/index.js.map +7 -0
  851. package/esm/RadioGroup/DSRadioGroup.js +69 -80
  852. package/esm/RadioGroup/DSRadioGroup.js.map +7 -0
  853. package/esm/RadioGroup/defaultProps.js +8 -5
  854. package/esm/RadioGroup/defaultProps.js.map +7 -0
  855. package/esm/RadioGroup/index.js +3 -1
  856. package/esm/RadioGroup/index.js.map +7 -0
  857. package/esm/RadioGroup/props.js +17 -33
  858. package/esm/RadioGroup/props.js.map +7 -0
  859. package/esm/RequiredMark/RequiredMark.js +20 -24
  860. package/esm/RequiredMark/RequiredMark.js.map +7 -0
  861. package/esm/RequiredMark/index.js +3 -1
  862. package/esm/RequiredMark/index.js.map +7 -0
  863. package/esm/SearchBox/DSSearchBox.js +70 -72
  864. package/esm/SearchBox/DSSearchBox.js.map +7 -0
  865. package/esm/SearchBox/NavSearchBox.js +124 -139
  866. package/esm/SearchBox/NavSearchBox.js.map +7 -0
  867. package/esm/SearchBox/SButton.js +47 -24
  868. package/esm/SearchBox/SButton.js.map +7 -0
  869. package/esm/SearchBox/SearchBoxToggle.js +36 -46
  870. package/esm/SearchBox/SearchBoxToggle.js.map +7 -0
  871. package/esm/SearchBox/defaultProps.js +12 -8
  872. package/esm/SearchBox/defaultProps.js.map +7 -0
  873. package/esm/SearchBox/index.js +14 -3
  874. package/esm/SearchBox/index.js.map +7 -0
  875. package/esm/SearchBox/props.js +36 -89
  876. package/esm/SearchBox/props.js.map +7 -0
  877. package/esm/SearchBox/styled.js +10 -8
  878. package/esm/SearchBox/styled.js.map +7 -0
  879. package/esm/SearchBox/useSearch.js +23 -46
  880. package/esm/SearchBox/useSearch.js.map +7 -0
  881. package/esm/SearchBox/withSearchable.js +46 -93
  882. package/esm/SearchBox/withSearchable.js.map +7 -0
  883. package/esm/TextBox/DSTextBox.js +81 -165
  884. package/esm/TextBox/DSTextBox.js.map +7 -0
  885. package/esm/TextBox/index.js +8 -1
  886. package/esm/TextBox/index.js.map +7 -0
  887. package/esm/TimeInput/DSTimeInput.js +58 -110
  888. package/esm/TimeInput/DSTimeInput.js.map +7 -0
  889. package/esm/TimeInput/TimeInputImpl.js +54 -50
  890. package/esm/TimeInput/TimeInputImpl.js.map +7 -0
  891. package/esm/TimeInput/TimeInputs.js +214 -238
  892. package/esm/TimeInput/TimeInputs.js.map +7 -0
  893. package/esm/TimeInput/index.js +3 -2
  894. package/esm/TimeInput/index.js.map +7 -0
  895. package/esm/TimeInput/utils.js +68 -59
  896. package/esm/TimeInput/utils.js.map +7 -0
  897. package/esm/Toggle/DSToggle.js +52 -107
  898. package/esm/Toggle/DSToggle.js.map +7 -0
  899. package/esm/Toggle/DSToggleImpl.js +83 -172
  900. package/esm/Toggle/DSToggleImpl.js.map +7 -0
  901. package/esm/Toggle/DSToggleRender.js +81 -91
  902. package/esm/Toggle/DSToggleRender.js.map +7 -0
  903. package/esm/Toggle/index.js +8 -1
  904. package/esm/Toggle/index.js.map +7 -0
  905. package/esm/Toggle/props.js +7 -48
  906. package/esm/Toggle/props.js.map +7 -0
  907. package/esm/Toggle/toggleHelper.js +26 -31
  908. package/esm/Toggle/toggleHelper.js.map +7 -0
  909. package/esm/index.js +24 -41
  910. package/esm/index.js.map +7 -0
  911. package/package.json +207 -23
  912. package/types/Checkbox/elements/CheckMark.d.ts +1 -1
  913. package/types/Checkbox/index.d.ts +0 -1
  914. package/types/CheckboxGroup/DSCheckboxGroup.d.ts +0 -1
  915. package/types/CheckboxGroup/index.d.ts +0 -1
  916. package/types/ComboBox/index.d.ts +2 -3
  917. package/types/ComboBox/v1/DSComboBox.d.ts +3 -2
  918. package/types/ComboBox/v1/components/ClearIndicator.d.ts +1 -0
  919. package/types/ComboBox/v1/components/Control.d.ts +1 -0
  920. package/types/ComboBox/v1/components/CustomOption.d.ts +1 -0
  921. package/types/ComboBox/v1/components/CustomOptionMulti.d.ts +1 -0
  922. package/types/ComboBox/v1/components/DropdownIndicator.d.ts +1 -0
  923. package/types/ComboBox/v1/components/MenuList.d.ts +1 -0
  924. package/types/ComboBox/v1/components/MultiSelectHeader.d.ts +1 -0
  925. package/types/ComboBox/v1/components/MultiValueLabel.d.ts +1 -0
  926. package/types/ComboBox/v1/components/MultiValueRemove.d.ts +1 -0
  927. package/types/ComboBox/v1/components/SelectMenu.d.ts +1 -0
  928. package/types/ComboBox/v1/components/SingleValueLabel.d.ts +1 -0
  929. package/types/ComboBox/v1/withSelectStringValueConverter.d.ts +1 -0
  930. package/types/ComboBox/v2/components/ClearIndicator.d.ts +1 -0
  931. package/types/ComboBox/v2/components/Content.d.ts +1 -0
  932. package/types/ComboBox/v2/components/Control.d.ts +1 -0
  933. package/types/ComboBox/v2/components/CustomOption.d.ts +1 -0
  934. package/types/ComboBox/v2/components/CustomOptionMulti.d.ts +1 -0
  935. package/types/ComboBox/v2/components/DropdownIndicator.d.ts +1 -0
  936. package/types/ComboBox/v2/components/GroupHeading.d.ts +1 -0
  937. package/types/ComboBox/v2/components/LoadingIndicator.d.ts +1 -0
  938. package/types/ComboBox/v2/components/MenuList.d.ts +1 -0
  939. package/types/ComboBox/v2/components/MultiSelectHeader.d.ts +1 -0
  940. package/types/ComboBox/v2/components/MultiValueLabel.d.ts +1 -0
  941. package/types/ComboBox/v2/components/MultiValueRemove.d.ts +1 -0
  942. package/types/ComboBox/v2/components/SelectMenu.d.ts +1 -0
  943. package/types/ComboBox/v2/components/SingleValueLabel.d.ts +1 -0
  944. package/types/ComboBox/v3/ComboBox.d.ts +62 -0
  945. package/types/ComboBox/v3/ComboBoxCTX.d.ts +6 -0
  946. package/types/ComboBox/v3/ComboboxDataTestids.d.ts +11 -0
  947. package/types/ComboBox/v3/config/constants.d.ts +8 -0
  948. package/types/ComboBox/v3/config/useComboBox.d.ts +2 -0
  949. package/types/ComboBox/v3/config/useGetPropsWithDefault.d.ts +2 -0
  950. package/types/ComboBox/v3/index.d.ts +1 -0
  951. package/types/ComboBox/v3/parts/a11y-messages/MultiAllyMessages.d.ts +3 -0
  952. package/types/ComboBox/v3/parts/a11y-messages/SingleAllyMessages.d.ts +3 -0
  953. package/types/ComboBox/v3/parts/a11y-messages/index.d.ts +2 -0
  954. package/types/ComboBox/v3/parts/a11y-messages/styled.d.ts +1 -0
  955. package/types/ComboBox/v3/parts/container/Container.d.ts +3 -0
  956. package/types/ComboBox/v3/parts/container/index.d.ts +1 -0
  957. package/types/ComboBox/v3/parts/container/styled.d.ts +3 -0
  958. package/types/ComboBox/v3/parts/controls/Controls.d.ts +3 -0
  959. package/types/ComboBox/v3/parts/controls/index.d.ts +1 -0
  960. package/types/ComboBox/v3/parts/controls/styled.d.ts +7 -0
  961. package/types/ComboBox/v3/parts/controls-input/ControlsInput.d.ts +3 -0
  962. package/types/ComboBox/v3/parts/controls-input/styled.d.ts +4 -0
  963. package/types/ComboBox/v3/parts/controls-input/useControlsInput.d.ts +12 -0
  964. package/types/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.d.ts +3 -0
  965. package/types/ComboBox/v3/parts/dropdown-indicator/index.d.ts +0 -0
  966. package/types/ComboBox/v3/parts/dropdown-indicator/styled.d.ts +1 -0
  967. package/types/ComboBox/v3/parts/empty-state/index.d.ts +3 -0
  968. package/types/ComboBox/v3/parts/empty-state/styled.d.ts +2 -0
  969. package/types/ComboBox/v3/parts/header-list/HeaderList.d.ts +3 -0
  970. package/types/ComboBox/v3/parts/header-list/index.d.ts +1 -0
  971. package/types/ComboBox/v3/parts/header-list/styled.d.ts +7 -0
  972. package/types/ComboBox/v3/parts/header-list/useHeaderListHandlers.d.ts +12 -0
  973. package/types/ComboBox/v3/parts/menu-list/MenuList.d.ts +3 -0
  974. package/types/ComboBox/v3/parts/menu-list/index.d.ts +1 -0
  975. package/types/ComboBox/v3/parts/menu-list/styled.d.ts +10 -0
  976. package/types/ComboBox/v3/parts/menu-list/useItemRenderer.d.ts +2 -0
  977. package/types/ComboBox/v3/parts/menu-list/useMenuList.d.ts +2 -0
  978. package/types/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.d.ts +3 -0
  979. package/types/ComboBox/v3/parts/multi-selected-values-container/index.d.ts +1 -0
  980. package/types/ComboBox/v3/parts/multi-selected-values-container/styled.d.ts +3 -0
  981. package/types/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.d.ts +2 -0
  982. package/types/ComboBox/v3/parts/single-selected-value-container/SingleSelectedValueContainer.d.ts +3 -0
  983. package/types/ComboBox/v3/parts/single-selected-value-container/index.d.ts +1 -0
  984. package/types/ComboBox/v3/parts/single-selected-value-container/styled.d.ts +1 -0
  985. package/types/ComboBox/v3/propTypes.d.ts +51 -0
  986. package/types/ComboBox/v3/tests/combobox-general.test.d.ts +1 -0
  987. package/types/ComboBox/v3/tests/combobox-multi-select.test.d.ts +1 -0
  988. package/types/ComboBox/v3/tests/combobox-single-select.test.d.ts +1 -0
  989. package/types/ComboBox/v3/tests/combobox-special-keys.test.d.ts +1 -0
  990. package/types/ComboBox/v3/tests/utils.d.ts +22 -0
  991. package/types/ComboBox/v3/utils/hooks/useKeyboardNavigation.d.ts +4 -0
  992. package/types/ComboBox/v3/utils/hooks/useOnElementResize.d.ts +3 -0
  993. package/types/ComboBox/v3/utils/listHelper.d.ts +7 -0
  994. package/types/ComboBoxFreeSolo/ComboBoxFreeSolo.d.ts +1 -0
  995. package/types/ComboBoxFreeSolo/index.d.ts +1 -1
  996. package/types/DateInput/DSDateInput.d.ts +2 -2
  997. package/types/DateInput/components/DateInputImpl.d.ts +1 -0
  998. package/types/DateInput/components/DateInputs.d.ts +1 -0
  999. package/types/DateInput/index.d.ts +0 -1
  1000. package/types/DateInputV2/components/DSDateInput.d.ts +1 -0
  1001. package/types/DateInputV2/index.d.ts +0 -1
  1002. package/types/ExpandableInput/DSExpandableInput.d.ts +1 -0
  1003. package/types/ExpandableInput/ExpandableInputImpl.d.ts +3 -1
  1004. package/types/ExpandableInput/index.d.ts +1 -1
  1005. package/types/FloatingLabelInput/DSFloatingLabelInput.d.ts +6 -1
  1006. package/types/FloatingLabelInput/FloatingLabelInputImpl.d.ts +1 -0
  1007. package/types/FloatingLabelInput/getSvgPath.d.ts +1 -0
  1008. package/types/FloatingLabelInput/index.d.ts +1 -1
  1009. package/types/FormItem/DSFormItemLayout.d.ts +2 -2
  1010. package/types/FormItem/Error/DSError.d.ts +1 -1
  1011. package/types/FormItem/Feedback.d.ts +1 -0
  1012. package/types/FormItem/Label/DSLabel.d.ts +1 -0
  1013. package/types/FormItem/index.d.ts +1 -1
  1014. package/types/Input/DSInput.d.ts +2 -2
  1015. package/types/Input/InputAddonWrapper.d.ts +3 -1
  1016. package/types/Input/InputImpl.d.ts +1 -0
  1017. package/types/Input/index.d.ts +0 -1
  1018. package/types/InputGroup/AddonWrapper.d.ts +3 -1
  1019. package/types/InputGroup/DSInputGroup.d.ts +1 -1
  1020. package/types/InputGroup/index.d.ts +1 -2
  1021. package/types/InputMask/DSInputMaskDeprecated.d.ts +1 -0
  1022. package/types/InputMask/index.d.ts +0 -1
  1023. package/types/InputMask/mask_types/DateInputMask.d.ts +1 -0
  1024. package/types/InputMask/mask_types/DateTimeInputMask.d.ts +1 -0
  1025. package/types/InputMask/mask_types/DictionaryInputMask.d.ts +1 -0
  1026. package/types/InputMask/mask_types/NumberInputMask.d.ts +1 -0
  1027. package/types/InputMask/mask_types/PhoneInputMask.d.ts +1 -0
  1028. package/types/InputMask/mask_types/PhoneInternationalInputMask.d.ts +1 -0
  1029. package/types/InputMask/mask_types/SsnInputMask.d.ts +1 -0
  1030. package/types/InputMask/mask_types/UsZipCodeInputMask.d.ts +1 -0
  1031. package/types/InputMask/mask_types/ZipCodeSearchInputMask.d.ts +1 -0
  1032. package/types/InputMask/utils/setCaretPosition.d.ts +1 -0
  1033. package/types/InputProtected/index.d.ts +0 -1
  1034. package/types/LargeInputText/DSLargeInputText.d.ts +1 -1
  1035. package/types/LargeInputText/index.d.ts +1 -2
  1036. package/types/Radio/Circle.d.ts +3 -2
  1037. package/types/Radio/DSRadio.d.ts +1 -1
  1038. package/types/Radio/index.d.ts +1 -2
  1039. package/types/RadioGroup/DSRadioGroup.d.ts +1 -1
  1040. package/types/RadioGroup/index.d.ts +1 -1
  1041. package/types/RequiredMark/RequiredMark.d.ts +1 -0
  1042. package/types/RequiredMark/index.d.ts +1 -1
  1043. package/types/SearchBox/DSSearchBox.d.ts +1 -1
  1044. package/types/SearchBox/index.d.ts +1 -1
  1045. package/types/TextBox/DSTextBox.d.ts +1 -1
  1046. package/types/TextBox/index.d.ts +1 -2
  1047. package/types/TimeInput/DSTimeInput.d.ts +2 -2
  1048. package/types/TimeInput/TimeInputImpl.d.ts +1 -0
  1049. package/types/TimeInput/TimeInputs.d.ts +1 -0
  1050. package/types/TimeInput/index.d.ts +0 -1
  1051. package/types/TimeInput/utils.d.ts +1 -1
  1052. package/types/Toggle/DSToggle.d.ts +1 -1
  1053. package/types/Toggle/DSToggleImpl.d.ts +1 -0
  1054. package/types/Toggle/DSToggleRender.d.ts +1 -0
  1055. package/types/Toggle/index.d.ts +1 -2
  1056. package/types/index.d.ts +4 -25
@@ -1,114 +1,62 @@
1
- import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
2
- import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
- import 'core-js/modules/esnext.async-iterator.filter.js';
4
- import 'core-js/modules/esnext.iterator.constructor.js';
5
- import 'core-js/modules/esnext.iterator.filter.js';
6
- import 'core-js/modules/esnext.async-iterator.for-each.js';
7
- import 'core-js/modules/esnext.iterator.for-each.js';
8
- import React, { Component } from 'react';
9
- import { isEqual } from 'lodash';
10
- import { conformToMask, adjustCaretPosition } from 'text-mask-core';
11
- import setCaretPosition from './utils/setCaretPosition.js';
12
- import DSTextBox from '../TextBox/DSTextBox.js';
13
- import { jsx } from 'react/jsx-runtime';
14
-
15
- const _excluded = ["autoFocus", "style", "disabled", "className", "name", "maxLength", "minLength", "fluidWidth", "placeholder", "onKeyDown", "onClick", "onChange", "onFocus", "onBlur", "onPaste", "onKeyUp", "hasError", "readOnly", "type", "innerRef", "clearable", "leftComponent", "rightComponent", "value"];
16
-
17
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18
-
19
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
20
-
21
- const getValueFromEventOrString = e => {
1
+ import * as React from "react";
2
+ import React2, { Component } from "react";
3
+ import { isEqual } from "lodash";
4
+ import PropTypes from "prop-types";
5
+ import { adjustCaretPosition, conformToMask } from "text-mask-core";
6
+ import { setCaretPosition } from "./utils/setCaretPosition";
7
+ import { DSTextBox } from "../TextBox";
8
+ const getValueFromEventOrString = (e) => {
22
9
  let value = e;
23
-
24
10
  if (e && e.target) {
25
11
  const {
26
- target: {
27
- value: eValue
28
- }
12
+ target: { value: eValue }
29
13
  } = e;
30
14
  value = eValue;
31
15
  }
32
-
33
16
  return value;
34
17
  };
35
-
36
- const getRawMask = function (mask) {
37
- let rawValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
38
- return typeof mask === 'function' ? mask(rawValue) : mask;
39
- }; // this is not safe because we don't take in consideration a lot of cases
40
- // just a monkeypatch untill we get the v2 going,
41
- // this work with "internal" masks...
42
-
43
-
18
+ const getRawMask = (mask, rawValue = "") => typeof mask === "function" ? mask(rawValue) : mask;
44
19
  const UNSAFEGetRawValue = (value, mask) => {
45
- var _safeValue$split, _safeValue$split$filt;
46
-
47
20
  const safeValue = getValueFromEventOrString(value);
48
- if (!safeValue) return '';
21
+ if (!safeValue)
22
+ return "";
49
23
  const rawMask = getRawMask(mask, value);
50
- const characterToStrip = rawMask.filter(char => typeof char === 'string');
51
- return safeValue === null || safeValue === void 0 ? void 0 : (_safeValue$split = safeValue.split('')) === null || _safeValue$split === void 0 ? void 0 : (_safeValue$split$filt = _safeValue$split.filter(char => {
52
- const indexCharToStrip = characterToStrip.findIndex(strip => strip === char);
53
-
24
+ const characterToStrip = rawMask.filter((char) => typeof char === "string");
25
+ return safeValue?.split("")?.filter((char) => {
26
+ const indexCharToStrip = characterToStrip.findIndex((strip) => strip === char);
54
27
  if (indexCharToStrip >= 0) {
55
28
  characterToStrip.splice(indexCharToStrip, 1);
56
29
  return false;
57
30
  }
58
-
59
31
  return true;
60
- })) === null || _safeValue$split$filt === void 0 ? void 0 : _safeValue$split$filt.join('');
61
- }; // this is not safe because we don't take in consideration a lot of cases
62
- // just a monkeypatch untill we get the v2 going,
63
- // this work with "internal" masks...
64
-
65
-
32
+ })?.join("");
33
+ };
66
34
  const UNSAFEIsRawValue = (value, mask) => {
67
- var _safeValue$split2;
68
-
69
35
  const safeValue = getValueFromEventOrString(value);
70
- if (!safeValue) return false;
36
+ if (!safeValue)
37
+ return false;
71
38
  const rawMask = getRawMask(mask, safeValue);
72
- const characterToStrip = rawMask.filter(char => typeof char === 'string');
73
- if (safeValue) safeValue === null || safeValue === void 0 ? void 0 : (_safeValue$split2 = safeValue.split('')) === null || _safeValue$split2 === void 0 ? void 0 : _safeValue$split2.forEach(char => {
74
- const indexCharToStrip = characterToStrip.findIndex(strip => strip === char);
75
-
76
- if (indexCharToStrip >= 0) {
77
- characterToStrip.splice(indexCharToStrip, 1);
78
- }
79
- }); // if we matched all the character to strip, this is not a raw value
80
- // unsafe, but "good enough" for most masks...
81
-
39
+ const characterToStrip = rawMask.filter((char) => typeof char === "string");
40
+ if (safeValue)
41
+ safeValue?.split("")?.forEach((char) => {
42
+ const indexCharToStrip = characterToStrip.findIndex((strip) => strip === char);
43
+ if (indexCharToStrip >= 0) {
44
+ characterToStrip.splice(indexCharToStrip, 1);
45
+ }
46
+ });
82
47
  return characterToStrip.length !== 0;
83
48
  };
84
-
85
49
  class DSInputMaskDeprecated extends Component {
86
50
  constructor(props) {
87
- var _this;
88
-
89
51
  super(props);
90
- _this = this;
91
52
  this.lastkey = null;
92
53
  this.lastkeycode = null;
93
-
94
- this.conformValue = function (rawValueOrEvent, currentCaretPosition) {
95
- let {
96
- skipCaretPositioning = false,
97
- skipOnChangeCallback = false
98
- } = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
99
- const {
100
- previousConformedValue
101
- } = _this.state;
102
- const {
103
- onChange,
104
- mask,
105
- placeholderChar = '_',
106
- pipe
107
- } = _this.props;
108
- const rawValue = getValueFromEventOrString(rawValueOrEvent); // short-circuit logic if user cleared the input
109
-
54
+ this.conformValue = (rawValueOrEvent, currentCaretPosition, { skipCaretPositioning = false, skipOnChangeCallback = false } = {}) => {
55
+ const { previousConformedValue } = this.state;
56
+ const { onChange, mask, placeholderChar = "_", pipe } = this.props;
57
+ const rawValue = getValueFromEventOrString(rawValueOrEvent);
110
58
  if (rawValue.length === 0) {
111
- _this.setState({
59
+ this.setState({
112
60
  maskedValue: rawValue,
113
61
  previousConformedValue: rawValue,
114
62
  focus: true
@@ -118,64 +66,39 @@ class DSInputMaskDeprecated extends Component {
118
66
  value: rawValue,
119
67
  originalValue: rawValue
120
68
  },
121
- lastkey: _this.lastkey
69
+ lastkey: this.lastkey
122
70
  };
123
71
  onChange(event);
124
72
  });
125
-
126
73
  return;
127
74
  }
128
-
129
75
  const rawMaskWithTraps = getRawMask(mask, rawValue);
130
- const rawMask = rawMaskWithTraps.filter(val => val !== '[]'); // generate the final result we want to put in the state and in the input box
131
-
132
- const conformToMaskResults = conformToMask(rawValue, rawMask, _objectSpread({
76
+ const rawMask = rawMaskWithTraps.filter((val) => val !== "[]");
77
+ const conformToMaskResults = conformToMask(rawValue, rawMask, {
133
78
  guide: false,
134
- placeholderChar
135
- }, previousConformedValue && {
136
- previousConformedValue
137
- }));
138
- const {
139
- conformedValue: pipelessConformed
140
- } = conformToMaskResults; // when the last character must be always preserved we need to manually ensure it
141
- // because
142
- // conformToMask -> guide: false will interpeter the last character
143
- // will remove the last character if it's part of the mask
144
- // we may want to add a prop for this in the future?
145
- // this is used for example with "decimal" and "percentage" masks
146
-
79
+ placeholderChar,
80
+ ...previousConformedValue && { previousConformedValue }
81
+ });
82
+ const { conformedValue: pipelessConformed } = conformToMaskResults;
147
83
  let conformedValueEnsureLastMaskChar = pipelessConformed;
148
84
  const lastMaskChar = rawMask[rawMask.length - 1];
149
85
  const lastValueChar = pipelessConformed.charAt(pipelessConformed.length - 1);
150
-
151
- if (typeof lastMaskChar === 'string' && lastMaskChar !== lastValueChar) {
86
+ if (typeof lastMaskChar === "string" && lastMaskChar !== lastValueChar) {
152
87
  conformedValueEnsureLastMaskChar = pipelessConformed + lastMaskChar;
153
88
  }
154
-
155
89
  let pipeResult = {
156
90
  indexesOfPipedChars: [],
157
91
  value: conformedValueEnsureLastMaskChar,
158
92
  valid: true
159
93
  };
160
- if (typeof pipe === 'function') pipeResult = pipe()(conformedValueEnsureLastMaskChar); // if the pipe results in an invalid value, we don't allow the change
161
- // meaning the final result will be like the user never tried to change the input
162
- // this is because the user will have to inject the validation in his pipe
163
- // probably pipe is never used, because this never worked before...
164
- // we will deprecate the "pipe" props in the future
165
-
166
- const conformedValue = pipeResult.valid ? pipeResult.value : previousConformedValue; // generate the "placeholder" used in calculating new caret position
167
- // this means we need
168
- // empty string as a value
169
- // guide:true
170
- // we can ignore "previousConformedValue" parameter
171
-
172
- const generatedPlaceHolder = conformToMask('', rawMask, {
94
+ if (typeof pipe === "function")
95
+ pipeResult = pipe()(conformedValueEnsureLastMaskChar);
96
+ const conformedValue = pipeResult.valid ? pipeResult.value : previousConformedValue;
97
+ const generatedPlaceHolder = conformToMask("", rawMask, {
173
98
  guide: true,
174
99
  placeholderChar
175
100
  });
176
- const {
177
- indexesOfPipedChars
178
- } = pipeResult;
101
+ const { indexesOfPipedChars } = pipeResult;
179
102
  const adjustCaretPositionOpts = {
180
103
  previousConformedValue,
181
104
  conformedValue,
@@ -187,8 +110,7 @@ class DSInputMaskDeprecated extends Component {
187
110
  caretTrapIndexes: []
188
111
  };
189
112
  const caretPos = adjustCaretPosition(adjustCaretPositionOpts);
190
-
191
- _this.setState({
113
+ this.setState({
192
114
  maskedValue: conformedValue,
193
115
  previousConformedValue: conformedValue,
194
116
  focus: true
@@ -198,95 +120,65 @@ class DSInputMaskDeprecated extends Component {
198
120
  value: conformedValue,
199
121
  originalValue: rawValue
200
122
  },
201
- lastkey: _this.lastkey
123
+ lastkey: this.lastkey
202
124
  };
203
- if (!skipOnChangeCallback) onChange(event);
204
- if (!skipCaretPositioning) setTimeout(() => setCaretPosition(_this.inputref, caretPos));
125
+ if (!skipOnChangeCallback)
126
+ onChange(event);
127
+ if (!skipCaretPositioning)
128
+ setTimeout(() => setCaretPosition(this.inputref, caretPos));
205
129
  });
206
130
  };
207
-
208
- this.handleOnChange = e => {
209
- var _e$target;
210
-
211
- const rawValue = (e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) || '';
212
- const {
213
- selectionEnd
214
- } = e.target;
131
+ this.handleOnChange = (e) => {
132
+ const rawValue = e?.target?.value || "";
133
+ const { selectionEnd } = e.target;
215
134
  const currentCaretPosition = selectionEnd;
216
135
  this.conformValue(rawValue, currentCaretPosition);
217
136
  };
218
-
219
- this.handleKeyDown = e => {
137
+ this.handleKeyDown = (e) => {
220
138
  e.stopPropagation();
221
- const {
222
- onKeyDown
223
- } = this.props;
139
+ const { onKeyDown } = this.props;
224
140
  this.lastkey = e.key;
225
141
  this.lastkeycode = e.keyCode;
226
142
  onKeyDown(e);
227
143
  };
228
-
229
- this.handleBlur = e => {
230
- const {
231
- onBlur
232
- } = this.props;
233
- this.setState({
234
- focus: false
235
- });
144
+ this.handleBlur = (e) => {
145
+ const { onBlur } = this.props;
146
+ this.setState({ focus: false });
236
147
  onBlur(e);
237
148
  };
238
-
239
- this.inputref = /*#__PURE__*/React.createRef();
149
+ this.inputref = React2.createRef();
240
150
  this.state = {
241
- maskedValue: '',
242
- previousConformedValue: ''
151
+ maskedValue: "",
152
+ previousConformedValue: ""
243
153
  };
244
154
  this.conformValue = this.conformValue.bind(this);
245
155
  }
246
-
247
156
  componentDidMount() {
248
- const {
249
- value,
250
- mask
251
- } = this.props;
157
+ const { value, mask } = this.props;
252
158
  const isAlreadyRaw = UNSAFEIsRawValue(value, mask);
253
159
  const rawVal = isAlreadyRaw ? value : UNSAFEGetRawValue(value, mask);
254
- if (rawVal === '') return; // if value from props is raw, we invoke onChange
255
- // not invoking onChange on a raw value breaks the internal components depending on this...
256
-
160
+ if (rawVal === "")
161
+ return;
257
162
  const shouldSkipOnChange = !isAlreadyRaw;
258
163
  this.conformValue(rawVal, rawVal.length, {
259
164
  skipCaretPositioning: true,
260
165
  skipOnChangeCallback: shouldSkipOnChange
261
166
  });
262
167
  }
263
-
264
168
  componentDidUpdate(prevProps) {
265
- // ensure the mask is re-applied when value/mask props changes.
266
- // this is required by internal implementations like DSDateRangePicker
267
- const {
268
- value: prevValOrEvent,
269
- mask: prevMask
270
- } = prevProps;
271
- const {
272
- value: valOrEvent,
273
- mask
274
- } = this.props;
169
+ const { value: prevValOrEvent, mask: prevMask } = prevProps;
170
+ const { value: valOrEvent, mask } = this.props;
275
171
  const value = getValueFromEventOrString(valOrEvent);
276
172
  const isAlreadyRaw = UNSAFEIsRawValue(value, mask);
277
173
  const rawVal = isAlreadyRaw ? value : UNSAFEGetRawValue(value, mask);
278
- if (rawVal === '') return;
174
+ if (rawVal === "")
175
+ return;
279
176
  const rawMask = getRawMask(mask, rawVal);
280
177
  const prevVal = getValueFromEventOrString(prevValOrEvent);
281
178
  const prevIsAlreadyRaw = UNSAFEIsRawValue(prevVal, prevMask);
282
179
  const prevRawVal = prevIsAlreadyRaw ? prevVal : UNSAFEGetRawValue(prevVal, prevMask);
283
- const prevRawMask = getRawMask(prevMask, prevRawVal); // we need to compare "raw" masks, because mask sometimes are functions
284
- // and if we don't compare raw mask, isEqual will produce unexpected result
285
- // which would lead to infinite loops
286
-
180
+ const prevRawMask = getRawMask(prevMask, prevRawVal);
287
181
  if (prevVal !== value || !isEqual(prevRawMask, rawMask)) {
288
- // if value from props is raw, we invoke onChange
289
- // not invoking onChange on a raw value breaks the internal components depending on this...
290
182
  const shouldSkipOnChange = !isAlreadyRaw;
291
183
  this.conformValue(rawVal, rawVal.length, {
292
184
  skipCaretPositioning: true,
@@ -294,10 +186,8 @@ class DSInputMaskDeprecated extends Component {
294
186
  });
295
187
  }
296
188
  }
297
-
298
189
  render() {
299
- const _this$props = this.props,
300
- {
190
+ const {
301
191
  autoFocus,
302
192
  style,
303
193
  disabled,
@@ -321,50 +211,72 @@ class DSInputMaskDeprecated extends Component {
321
211
  clearable = false,
322
212
  leftComponent,
323
213
  rightComponent,
324
- value
325
- } = _this$props,
326
- rest = _objectWithoutProperties(_this$props, _excluded);
327
-
328
- const {
329
- maskedValue,
330
- focus
331
- } = this.state; // if component is "controlled" we print the value from the props
332
- // if it's not controlled we use the internal state
333
- // handleOnChange has the logic to invoke the onChange with the mask applied
334
- // if the dev controls the component but pass down a value not conformed to the mask
335
- // it's a problem to be fixed on the dev side.
336
- // this means no "get derived state from props" mumbo-jumbos
337
-
214
+ value,
215
+ ...rest
216
+ } = this.props;
217
+ const { maskedValue, focus } = this.state;
338
218
  const propsValue = getValueFromEventOrString(value);
339
- const finalValue = typeof propsValue === 'string' || typeof propsValue === 'number' ? propsValue : maskedValue;
340
- return /*#__PURE__*/jsx(DSTextBox, _objectSpread(_objectSpread({}, rest), {}, {
341
- "aria-label": rest['aria-label'],
342
- className: className,
343
- clearable: clearable,
344
- disabled: disabled,
345
- fluidWidth: fluidWidth,
346
- hasError: hasError,
219
+ const finalValue = typeof propsValue === "string" || typeof propsValue === "number" ? propsValue : maskedValue;
220
+ return /* @__PURE__ */ React2.createElement(DSTextBox, {
221
+ ...rest,
222
+ "aria-label": rest["aria-label"],
223
+ className,
224
+ clearable,
225
+ disabled,
226
+ fluidWidth,
227
+ hasError,
347
228
  isActive: focus,
348
- leftComponent: leftComponent,
349
- maxLength: maxLength,
350
- minLength: minLength,
351
- name: name,
229
+ leftComponent,
230
+ maxLength,
231
+ minLength,
232
+ name,
352
233
  onBlur: this.handleBlur,
353
234
  onChange: this.handleOnChange,
354
- onClick: onClick,
355
- onFocus: onFocus,
235
+ onClick,
236
+ onFocus,
356
237
  onKeyDown: this.handleKeyDown,
357
- onKeyUp: onKeyUp,
358
- onPaste: onPaste,
359
- placeholder: placeholder,
360
- readOnly: readOnly,
361
- rightComponent: rightComponent,
362
- style: style,
363
- type: type,
238
+ onKeyUp,
239
+ onPaste,
240
+ placeholder,
241
+ readOnly,
242
+ rightComponent,
243
+ style,
244
+ type,
364
245
  value: finalValue
365
- }));
246
+ });
366
247
  }
367
-
368
248
  }
369
-
370
- export { DSInputMaskDeprecated as default };
249
+ DSInputMaskDeprecated.propTypes = {
250
+ autoFocus: PropTypes.bool,
251
+ style: PropTypes.object,
252
+ disabled: PropTypes.bool,
253
+ className: PropTypes.string,
254
+ name: PropTypes.string,
255
+ maxLength: PropTypes.number,
256
+ minLength: PropTypes.number,
257
+ fluidWidth: PropTypes.bool,
258
+ placeholder: PropTypes.string,
259
+ value: PropTypes.string,
260
+ onChange: PropTypes.func,
261
+ onKeyDown: PropTypes.func,
262
+ leftComponent: PropTypes.element,
263
+ rightComponent: PropTypes.element,
264
+ onFocus: PropTypes.func,
265
+ onBlur: PropTypes.func,
266
+ onPaste: PropTypes.func,
267
+ onKeyUp: PropTypes.func,
268
+ hasError: PropTypes.bool,
269
+ readOnly: PropTypes.bool,
270
+ onClick: PropTypes.func,
271
+ clearable: PropTypes.bool,
272
+ type: PropTypes.string,
273
+ innerRef: PropTypes.any,
274
+ mask: PropTypes.any,
275
+ placeholderChar: PropTypes.string
276
+ };
277
+ var DSInputMaskDeprecated_default = DSInputMaskDeprecated;
278
+ export {
279
+ DSInputMaskDeprecated,
280
+ DSInputMaskDeprecated_default as default
281
+ };
282
+ //# sourceMappingURL=DSInputMaskDeprecated.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/InputMask/DSInputMaskDeprecated.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-statements */\n/* eslint-disable react/prop-types */\n/* eslint-disable complexity */\n/* eslint-disable max-lines */\nimport React, { Component } from 'react';\nimport { isEqual } from 'lodash';\nimport PropTypes from 'prop-types';\nimport { adjustCaretPosition, conformToMask } from 'text-mask-core';\nimport { setCaretPosition } from './utils/setCaretPosition';\nimport { DSTextBox } from '../TextBox';\n\nconst getValueFromEventOrString = (e) => {\n let value = e;\n if (e && e.target) {\n const {\n target: { value: eValue },\n } = e;\n value = eValue;\n }\n return value;\n};\n\nconst getRawMask = (mask, rawValue = '') => (typeof mask === 'function' ? mask(rawValue) : mask);\n\n// this is not safe because we don't take in consideration a lot of cases\n// just a monkeypatch untill we get the v2 going,\n// this work with \"internal\" masks...\nconst UNSAFEGetRawValue = (value, mask) => {\n const safeValue = getValueFromEventOrString(value);\n if (!safeValue) return '';\n const rawMask = getRawMask(mask, value);\n const characterToStrip = rawMask.filter((char) => typeof char === 'string');\n\n return safeValue\n ?.split('')\n ?.filter((char) => {\n const indexCharToStrip = characterToStrip.findIndex((strip) => strip === char);\n if (indexCharToStrip >= 0) {\n characterToStrip.splice(indexCharToStrip, 1);\n return false;\n }\n return true;\n })\n ?.join('');\n};\n\n// this is not safe because we don't take in consideration a lot of cases\n// just a monkeypatch untill we get the v2 going,\n// this work with \"internal\" masks...\nconst UNSAFEIsRawValue = (value, mask) => {\n const safeValue = getValueFromEventOrString(value);\n if (!safeValue) return false;\n const rawMask = getRawMask(mask, safeValue);\n const characterToStrip = rawMask.filter((char) => typeof char === 'string');\n if (safeValue)\n safeValue?.split('')?.forEach((char) => {\n const indexCharToStrip = characterToStrip.findIndex((strip) => strip === char);\n if (indexCharToStrip >= 0) {\n characterToStrip.splice(indexCharToStrip, 1);\n }\n });\n // if we matched all the character to strip, this is not a raw value\n // unsafe, but \"good enough\" for most masks...\n return characterToStrip.length !== 0;\n};\n\nclass DSInputMaskDeprecated extends Component {\n lastkey = null;\n\n lastkeycode = null;\n\n constructor(props) {\n super(props);\n this.inputref = React.createRef();\n\n this.state = {\n maskedValue: '',\n previousConformedValue: '',\n };\n this.conformValue = this.conformValue.bind(this);\n }\n\n conformValue = (\n rawValueOrEvent,\n currentCaretPosition,\n { skipCaretPositioning = false, skipOnChangeCallback = false } = {},\n ) => {\n const { previousConformedValue } = this.state;\n const { onChange, mask, placeholderChar = '_', pipe } = this.props;\n const rawValue = getValueFromEventOrString(rawValueOrEvent);\n\n // short-circuit logic if user cleared the input\n if (rawValue.length === 0) {\n this.setState(\n {\n maskedValue: rawValue,\n previousConformedValue: rawValue,\n focus: true,\n },\n () => {\n const event = {\n target: {\n value: rawValue,\n originalValue: rawValue,\n },\n lastkey: this.lastkey,\n };\n onChange(event);\n },\n );\n return;\n }\n const rawMaskWithTraps = getRawMask(mask, rawValue);\n const rawMask = rawMaskWithTraps.filter((val) => val !== '[]');\n\n // generate the final result we want to put in the state and in the input box\n const conformToMaskResults = conformToMask(rawValue, rawMask, {\n guide: false,\n placeholderChar,\n ...(previousConformedValue && { previousConformedValue }),\n });\n\n const { conformedValue: pipelessConformed } = conformToMaskResults;\n // when the last character must be always preserved we need to manually ensure it\n // because\n // conformToMask -> guide: false will interpeter the last character\n // will remove the last character if it's part of the mask\n // we may want to add a prop for this in the future?\n // this is used for example with \"decimal\" and \"percentage\" masks\n let conformedValueEnsureLastMaskChar = pipelessConformed;\n const lastMaskChar = rawMask[rawMask.length - 1];\n const lastValueChar = pipelessConformed.charAt(pipelessConformed.length - 1);\n if (typeof lastMaskChar === 'string' && lastMaskChar !== lastValueChar) {\n conformedValueEnsureLastMaskChar = pipelessConformed + lastMaskChar;\n }\n\n let pipeResult = {\n indexesOfPipedChars: [],\n value: conformedValueEnsureLastMaskChar,\n valid: true,\n };\n if (typeof pipe === 'function') pipeResult = pipe()(conformedValueEnsureLastMaskChar);\n\n // if the pipe results in an invalid value, we don't allow the change\n // meaning the final result will be like the user never tried to change the input\n // this is because the user will have to inject the validation in his pipe\n // probably pipe is never used, because this never worked before...\n // we will deprecate the \"pipe\" props in the future\n const conformedValue = pipeResult.valid ? pipeResult.value : previousConformedValue;\n\n // generate the \"placeholder\" used in calculating new caret position\n // this means we need\n // empty string as a value\n // guide:true\n // we can ignore \"previousConformedValue\" parameter\n const generatedPlaceHolder = conformToMask('', rawMask, {\n guide: true,\n placeholderChar,\n });\n const { indexesOfPipedChars } = pipeResult;\n const adjustCaretPositionOpts = {\n previousConformedValue,\n conformedValue,\n currentCaretPosition,\n rawValue,\n placeholderChar,\n placeholder: generatedPlaceHolder.conformedValue,\n indexesOfPipedChars,\n caretTrapIndexes: [],\n };\n const caretPos = adjustCaretPosition(adjustCaretPositionOpts);\n\n this.setState(\n {\n maskedValue: conformedValue,\n previousConformedValue: conformedValue,\n focus: true,\n },\n () => {\n const event = {\n target: {\n value: conformedValue,\n originalValue: rawValue,\n },\n lastkey: this.lastkey,\n };\n if (!skipOnChangeCallback) onChange(event);\n if (!skipCaretPositioning) setTimeout(() => setCaretPosition(this.inputref, caretPos));\n },\n );\n };\n\n // eslint-disable-next-line max-statements\n handleOnChange = (e) => {\n const rawValue = e?.target?.value || '';\n const { selectionEnd } = e.target;\n const currentCaretPosition = selectionEnd;\n this.conformValue(rawValue, currentCaretPosition);\n };\n\n handleKeyDown = (e) => {\n e.stopPropagation();\n const { onKeyDown } = this.props;\n this.lastkey = e.key;\n this.lastkeycode = e.keyCode;\n onKeyDown(e);\n };\n\n handleBlur = (e) => {\n const { onBlur } = this.props;\n this.setState({ focus: false });\n onBlur(e);\n };\n\n componentDidMount() {\n const { value, mask } = this.props;\n const isAlreadyRaw = UNSAFEIsRawValue(value, mask);\n const rawVal = isAlreadyRaw ? value : UNSAFEGetRawValue(value, mask);\n if (rawVal === '') return;\n // if value from props is raw, we invoke onChange\n // not invoking onChange on a raw value breaks the internal components depending on this...\n const shouldSkipOnChange = !isAlreadyRaw;\n\n this.conformValue(rawVal, rawVal.length, {\n skipCaretPositioning: true,\n skipOnChangeCallback: shouldSkipOnChange,\n });\n }\n\n componentDidUpdate(prevProps) {\n // ensure the mask is re-applied when value/mask props changes.\n // this is required by internal implementations like DSDateRangePicker\n const { value: prevValOrEvent, mask: prevMask } = prevProps;\n const { value: valOrEvent, mask } = this.props;\n const value = getValueFromEventOrString(valOrEvent);\n const isAlreadyRaw = UNSAFEIsRawValue(value, mask);\n const rawVal = isAlreadyRaw ? value : UNSAFEGetRawValue(value, mask);\n if (rawVal === '') return;\n const rawMask = getRawMask(mask, rawVal);\n\n const prevVal = getValueFromEventOrString(prevValOrEvent);\n const prevIsAlreadyRaw = UNSAFEIsRawValue(prevVal, prevMask);\n const prevRawVal = prevIsAlreadyRaw ? prevVal : UNSAFEGetRawValue(prevVal, prevMask);\n const prevRawMask = getRawMask(prevMask, prevRawVal);\n\n // we need to compare \"raw\" masks, because mask sometimes are functions\n // and if we don't compare raw mask, isEqual will produce unexpected result\n // which would lead to infinite loops\n if (prevVal !== value || !isEqual(prevRawMask, rawMask)) {\n // if value from props is raw, we invoke onChange\n // not invoking onChange on a raw value breaks the internal components depending on this...\n const shouldSkipOnChange = !isAlreadyRaw;\n this.conformValue(rawVal, rawVal.length, {\n skipCaretPositioning: true,\n skipOnChangeCallback: shouldSkipOnChange,\n });\n }\n }\n\n render() {\n const {\n autoFocus,\n style,\n disabled,\n className,\n name,\n maxLength,\n minLength,\n fluidWidth,\n placeholder,\n onKeyDown,\n onClick,\n onChange,\n onFocus,\n onBlur,\n onPaste,\n onKeyUp,\n hasError,\n readOnly,\n type,\n innerRef,\n clearable = false,\n leftComponent,\n rightComponent,\n value,\n ...rest\n } = this.props;\n const { maskedValue, focus } = this.state;\n // if component is \"controlled\" we print the value from the props\n // if it's not controlled we use the internal state\n // handleOnChange has the logic to invoke the onChange with the mask applied\n // if the dev controls the component but pass down a value not conformed to the mask\n // it's a problem to be fixed on the dev side.\n // this means no \"get derived state from props\" mumbo-jumbos\n const propsValue = getValueFromEventOrString(value);\n const finalValue = typeof propsValue === 'string' || typeof propsValue === 'number' ? propsValue : maskedValue;\n\n return (\n <DSTextBox\n {...rest}\n aria-label={rest['aria-label']}\n className={className}\n clearable={clearable}\n disabled={disabled}\n fluidWidth={fluidWidth}\n hasError={hasError}\n isActive={focus}\n leftComponent={leftComponent}\n maxLength={maxLength}\n minLength={minLength}\n name={name}\n onBlur={this.handleBlur}\n onChange={this.handleOnChange}\n onClick={onClick}\n onFocus={onFocus}\n onKeyDown={this.handleKeyDown}\n onKeyUp={onKeyUp}\n onPaste={onPaste}\n placeholder={placeholder}\n readOnly={readOnly}\n rightComponent={rightComponent}\n style={style}\n type={type}\n value={finalValue}\n />\n );\n }\n}\n\nDSInputMaskDeprecated.propTypes = {\n autoFocus: PropTypes.bool,\n style: PropTypes.object,\n disabled: PropTypes.bool,\n className: PropTypes.string,\n name: PropTypes.string,\n maxLength: PropTypes.number,\n minLength: PropTypes.number,\n fluidWidth: PropTypes.bool,\n placeholder: PropTypes.string,\n value: PropTypes.string,\n onChange: PropTypes.func,\n onKeyDown: PropTypes.func,\n leftComponent: PropTypes.element,\n rightComponent: PropTypes.element,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n onPaste: PropTypes.func,\n onKeyUp: PropTypes.func,\n hasError: PropTypes.bool,\n readOnly: PropTypes.bool,\n onClick: PropTypes.func,\n clearable: PropTypes.bool,\n type: PropTypes.string,\n /**\n * Ref for the component\n */\n innerRef: PropTypes.any,\n /**\n * Mask type\n */\n mask: PropTypes.any,\n placeholderChar: PropTypes.string,\n};\n\nexport { DSInputMaskDeprecated };\nexport default DSInputMaskDeprecated;\n"],
5
+ "mappings": "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",
6
+ "names": []
7
+ }
@@ -1,21 +1,18 @@
1
- import React from 'react';
2
-
3
- const InputMaskContext = /*#__PURE__*/React.createContext({
4
- rawValue: '',
1
+ import * as React from "react";
2
+ import React2 from "react";
3
+ const InputMaskContext = React2.createContext({
4
+ rawValue: "",
5
5
  setRawValue: () => null,
6
6
  rawMask: null,
7
7
  setRawMask: () => null,
8
8
  focus: false,
9
9
  setFocus: () => null,
10
- lastkey: {
11
- code: null,
12
- key: null
13
- },
10
+ lastkey: { code: null, key: null },
14
11
  setLastkey: () => null,
15
- cursorPosition: {
16
- current: 0
17
- },
12
+ cursorPosition: { current: 0 },
18
13
  setCursorPosition: () => null
19
14
  });
20
-
21
- export { InputMaskContext };
15
+ export {
16
+ InputMaskContext
17
+ };
18
+ //# sourceMappingURL=InputMaskContext.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/InputMask/InputMaskContext.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { TLastkey } from './types';\n\nexport const InputMaskContext = React.createContext<{\n rawValue: string;\n setRawValue: React.Dispatch<string>;\n rawMask: any;\n setRawMask: React.Dispatch<any>;\n focus: boolean;\n setFocus: React.Dispatch<boolean>;\n lastkey: TLastkey;\n setLastkey: React.Dispatch<TLastkey>;\n cursorPosition: { current: number };\n setCursorPosition: React.Dispatch<{ current: number }>;\n}>({\n rawValue: '',\n setRawValue: () => null,\n rawMask: null,\n setRawMask: () => null,\n focus: false,\n setFocus: () => null,\n lastkey: { code: null, key: null },\n setLastkey: () => null,\n cursorPosition: { current: 0 },\n setCursorPosition: () => null,\n});\n"],
5
+ "mappings": "AAAA;ACAA;AAGO,MAAM,mBAAmB,OAAM,cAWnC;AAAA,EACD,UAAU;AAAA,EACV,aAAa,MAAM;AAAA,EACnB,SAAS;AAAA,EACT,YAAY,MAAM;AAAA,EAClB,OAAO;AAAA,EACP,UAAU,MAAM;AAAA,EAChB,SAAS,EAAE,MAAM,MAAM,KAAK;AAAA,EAC5B,YAAY,MAAM;AAAA,EAClB,gBAAgB,EAAE,SAAS;AAAA,EAC3B,mBAAmB,MAAM;AAAA;",
6
+ "names": []
7
+ }
@@ -1,8 +1,11 @@
1
- import { autoCorrectedDatePipe } from './addons/AutoCorrectedDatePipe.js';
2
-
1
+ import * as React from "react";
2
+ import { autoCorrectedDatePipe } from "./addons/AutoCorrectedDatePipe";
3
3
  const MASK_PIPES = {
4
4
  AUTO_CORRECT_DATE: autoCorrectedDatePipe
5
5
  };
6
6
  const maskPipes = [MASK_PIPES.AUTO_CORRECT_DATE];
7
-
8
- export { MASK_PIPES, maskPipes };
7
+ export {
8
+ MASK_PIPES,
9
+ maskPipes
10
+ };
11
+ //# sourceMappingURL=MaskPipes.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/InputMask/MaskPipes.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { autoCorrectedDatePipe } from './addons/AutoCorrectedDatePipe';\n\nexport const MASK_PIPES = {\n AUTO_CORRECT_DATE: autoCorrectedDatePipe,\n};\n\nexport const maskPipes = [MASK_PIPES.AUTO_CORRECT_DATE];\n"],
5
+ "mappings": "AAAA;ACAA;AAEO,MAAM,aAAa;AAAA,EACxB,mBAAmB;AAAA;AAGd,MAAM,YAAY,CAAC,WAAW;",
6
+ "names": []
7
+ }