@elliemae/ds-form 2.2.0-alpha.1 → 2.2.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/Checkbox/DSCheckbox.js +145 -154
- package/cjs/Checkbox/DSCheckbox.js.map +7 -0
- package/cjs/Checkbox/defaultProps.js +37 -10
- package/cjs/Checkbox/defaultProps.js.map +7 -0
- package/cjs/Checkbox/elements/CheckMark.js +38 -13
- package/cjs/Checkbox/elements/CheckMark.js.map +7 -0
- package/cjs/Checkbox/index.js +28 -16
- package/cjs/Checkbox/index.js.map +7 -0
- package/cjs/Checkbox/props.js +48 -21
- package/cjs/Checkbox/props.js.map +7 -0
- package/cjs/CheckboxGroup/DSCheckboxGroup.js +103 -96
- package/cjs/CheckboxGroup/DSCheckboxGroup.js.map +7 -0
- package/cjs/CheckboxGroup/defaultProps.js +37 -9
- package/cjs/CheckboxGroup/defaultProps.js.map +7 -0
- package/cjs/CheckboxGroup/index.js +28 -11
- package/cjs/CheckboxGroup/index.js.map +7 -0
- package/cjs/CheckboxGroup/props.js +53 -45
- package/cjs/CheckboxGroup/props.js.map +7 -0
- package/cjs/ComboBox/DSComboBox.js +37 -20
- package/cjs/ComboBox/DSComboBox.js.map +7 -0
- package/cjs/ComboBox/index.js +40 -24
- package/cjs/ComboBox/index.js.map +7 -0
- package/cjs/ComboBox/v1/DSComboBox.js +266 -264
- package/cjs/ComboBox/v1/DSComboBox.js.map +7 -0
- package/cjs/ComboBox/v1/components/AllOption.js +42 -36
- package/cjs/ComboBox/v1/components/AllOption.js.map +7 -0
- package/cjs/ComboBox/v1/components/ClearIndicator.js +59 -41
- package/cjs/ComboBox/v1/components/ClearIndicator.js.map +7 -0
- package/cjs/ComboBox/v1/components/Control.js +43 -33
- package/cjs/ComboBox/v1/components/Control.js.map +7 -0
- package/cjs/ComboBox/v1/components/CustomOption.js +54 -48
- package/cjs/ComboBox/v1/components/CustomOption.js.map +7 -0
- package/cjs/ComboBox/v1/components/CustomOptionMulti.js +55 -51
- package/cjs/ComboBox/v1/components/CustomOptionMulti.js.map +7 -0
- package/cjs/ComboBox/v1/components/DropdownIndicator.js +64 -60
- package/cjs/ComboBox/v1/components/DropdownIndicator.js.map +7 -0
- package/cjs/ComboBox/v1/components/MenuList.js +74 -75
- package/cjs/ComboBox/v1/components/MenuList.js.map +7 -0
- package/cjs/ComboBox/v1/components/MultiSelectHeader.js +41 -18
- package/cjs/ComboBox/v1/components/MultiSelectHeader.js.map +7 -0
- package/cjs/ComboBox/v1/components/MultiValueLabel.js +42 -20
- package/cjs/ComboBox/v1/components/MultiValueLabel.js.map +7 -0
- package/cjs/ComboBox/v1/components/MultiValueRemove.js +46 -32
- package/cjs/ComboBox/v1/components/MultiValueRemove.js.map +7 -0
- package/cjs/ComboBox/v1/components/SelectMenu.js +71 -69
- package/cjs/ComboBox/v1/components/SelectMenu.js.map +7 -0
- package/cjs/ComboBox/v1/components/SingleValueLabel.js +46 -20
- package/cjs/ComboBox/v1/components/SingleValueLabel.js.map +7 -0
- package/cjs/ComboBox/v1/components/ValueContainer.js +43 -40
- package/cjs/ComboBox/v1/components/ValueContainer.js.map +7 -0
- package/cjs/ComboBox/v1/components/calculateWidth.js +36 -13
- package/cjs/ComboBox/v1/components/calculateWidth.js.map +7 -0
- package/cjs/ComboBox/v1/components/getoptions.js +34 -16
- package/cjs/ComboBox/v1/components/getoptions.js.map +7 -0
- package/cjs/ComboBox/v1/index.js +35 -18
- package/cjs/ComboBox/v1/index.js.map +7 -0
- package/cjs/ComboBox/v1/withSelectStringValueConverter.js +54 -59
- package/cjs/ComboBox/v1/withSelectStringValueConverter.js.map +7 -0
- package/cjs/ComboBox/v2/Combobox.js +333 -375
- package/cjs/ComboBox/v2/Combobox.js.map +7 -0
- package/cjs/ComboBox/v2/components/AllOption.js +42 -36
- package/cjs/ComboBox/v2/components/AllOption.js.map +7 -0
- package/cjs/ComboBox/v2/components/ClearIndicator.js +71 -66
- package/cjs/ComboBox/v2/components/ClearIndicator.js.map +7 -0
- package/cjs/ComboBox/v2/components/Content.js +50 -42
- package/cjs/ComboBox/v2/components/Content.js.map +7 -0
- package/cjs/ComboBox/v2/components/Control.js +43 -33
- package/cjs/ComboBox/v2/components/Control.js.map +7 -0
- package/cjs/ComboBox/v2/components/CustomOption.js +74 -85
- package/cjs/ComboBox/v2/components/CustomOption.js.map +7 -0
- package/cjs/ComboBox/v2/components/CustomOptionMulti.js +64 -65
- package/cjs/ComboBox/v2/components/CustomOptionMulti.js.map +7 -0
- package/cjs/ComboBox/v2/components/DropdownIndicator.js +77 -81
- package/cjs/ComboBox/v2/components/DropdownIndicator.js.map +7 -0
- package/cjs/ComboBox/v2/components/GroupHeading.js +57 -45
- package/cjs/ComboBox/v2/components/GroupHeading.js.map +7 -0
- package/cjs/ComboBox/v2/components/IndicatorSeparator.js +39 -28
- package/cjs/ComboBox/v2/components/IndicatorSeparator.js.map +7 -0
- package/cjs/ComboBox/v2/components/LoadingIndicator.js +47 -22
- package/cjs/ComboBox/v2/components/LoadingIndicator.js.map +7 -0
- package/cjs/ComboBox/v2/components/MenuList.js +94 -99
- package/cjs/ComboBox/v2/components/MenuList.js.map +7 -0
- package/cjs/ComboBox/v2/components/MultiSelectHeader.js +88 -60
- package/cjs/ComboBox/v2/components/MultiSelectHeader.js.map +7 -0
- package/cjs/ComboBox/v2/components/MultiValueLabel.js +42 -20
- package/cjs/ComboBox/v2/components/MultiValueLabel.js.map +7 -0
- package/cjs/ComboBox/v2/components/MultiValueRemove.js +52 -42
- package/cjs/ComboBox/v2/components/MultiValueRemove.js.map +7 -0
- package/cjs/ComboBox/v2/components/SelectMenu.js +58 -52
- package/cjs/ComboBox/v2/components/SelectMenu.js.map +7 -0
- package/cjs/ComboBox/v2/components/SingleValueLabel.js +46 -20
- package/cjs/ComboBox/v2/components/SingleValueLabel.js.map +7 -0
- package/cjs/ComboBox/v2/components/ValueContainer.js +52 -48
- package/cjs/ComboBox/v2/components/ValueContainer.js.map +7 -0
- package/cjs/ComboBox/v2/components/calculateWidth.js +37 -16
- package/cjs/ComboBox/v2/components/calculateWidth.js.map +7 -0
- package/cjs/ComboBox/v2/components/getoptions.js +34 -16
- package/cjs/ComboBox/v2/components/getoptions.js.map +7 -0
- package/cjs/ComboBox/v2/components/useMenuListHeight.js +42 -41
- package/cjs/ComboBox/v2/components/useMenuListHeight.js.map +7 -0
- package/cjs/ComboBox/v2/components/utils.js +35 -7
- package/cjs/ComboBox/v2/components/utils.js.map +7 -0
- package/cjs/ComboBox/v2/context.js +36 -13
- package/cjs/ComboBox/v2/context.js.map +7 -0
- package/cjs/ComboBox/v2/index.js +36 -11
- package/cjs/ComboBox/v2/index.js.map +7 -0
- package/cjs/ComboBox/v2/mockOptions.js +57 -20
- package/cjs/ComboBox/v2/mockOptions.js.map +7 -0
- package/cjs/ComboBox/v3/ComboBox.js +51 -31
- package/cjs/ComboBox/v3/ComboBox.js.map +7 -0
- package/cjs/ComboBox/v3/ComboBoxCTX.js +64 -39
- package/cjs/ComboBox/v3/ComboBoxCTX.js.map +7 -0
- package/cjs/ComboBox/v3/ComboboxDataTestids.js +43 -15
- package/cjs/ComboBox/v3/ComboboxDataTestids.js.map +7 -0
- package/cjs/ComboBox/v3/config/constants.js +41 -13
- package/cjs/ComboBox/v3/config/constants.js.map +7 -0
- package/cjs/ComboBox/v3/config/useComboBox.js +83 -80
- package/cjs/ComboBox/v3/config/useComboBox.js.map +7 -0
- package/cjs/ComboBox/v3/config/useGetPropsWithDefault.js +37 -11
- package/cjs/ComboBox/v3/config/useGetPropsWithDefault.js.map +7 -0
- package/cjs/ComboBox/v3/index.d.js +27 -2
- package/cjs/ComboBox/v3/index.d.js.map +7 -0
- package/cjs/ComboBox/v3/index.js +36 -10
- package/cjs/ComboBox/v3/index.js.map +7 -0
- package/cjs/ComboBox/v3/parts/a11y-messages/MultiAllyMessages.js +43 -26
- package/cjs/ComboBox/v3/parts/a11y-messages/MultiAllyMessages.js.map +7 -0
- package/cjs/ComboBox/v3/parts/a11y-messages/SingleAllyMessages.js +41 -21
- package/cjs/ComboBox/v3/parts/a11y-messages/SingleAllyMessages.js.map +7 -0
- package/cjs/ComboBox/v3/parts/a11y-messages/index.js +37 -11
- package/cjs/ComboBox/v3/parts/a11y-messages/index.js.map +7 -0
- package/cjs/ComboBox/v3/parts/a11y-messages/styled.js +41 -15
- package/cjs/ComboBox/v3/parts/a11y-messages/styled.js.map +7 -0
- package/cjs/ComboBox/v3/parts/container/Container.js +66 -53
- package/cjs/ComboBox/v3/parts/container/Container.js.map +7 -0
- package/cjs/ComboBox/v3/parts/container/index.js +35 -9
- package/cjs/ComboBox/v3/parts/container/index.js.map +7 -0
- package/cjs/ComboBox/v3/parts/container/styled.js +51 -23
- package/cjs/ComboBox/v3/parts/container/styled.js.map +7 -0
- package/cjs/ComboBox/v3/parts/controls/Controls.js +57 -47
- package/cjs/ComboBox/v3/parts/controls/Controls.js.map +7 -0
- package/cjs/ComboBox/v3/parts/controls/index.js +35 -9
- package/cjs/ComboBox/v3/parts/controls/index.js.map +7 -0
- package/cjs/ComboBox/v3/parts/controls/styled.js +96 -60
- package/cjs/ComboBox/v3/parts/controls/styled.js.map +7 -0
- package/cjs/ComboBox/v3/parts/controls-input/ControlsInput.js +52 -46
- package/cjs/ComboBox/v3/parts/controls-input/ControlsInput.js.map +7 -0
- package/cjs/ComboBox/v3/parts/controls-input/styled.js +71 -27
- package/cjs/ComboBox/v3/parts/controls-input/styled.js.map +7 -0
- package/cjs/ComboBox/v3/parts/controls-input/useControlsInput.js +59 -45
- package/cjs/ComboBox/v3/parts/controls-input/useControlsInput.js.map +7 -0
- package/cjs/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.js +44 -24
- package/cjs/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.js.map +7 -0
- package/cjs/ComboBox/v3/parts/dropdown-indicator/index.js +20 -2
- package/cjs/ComboBox/v3/parts/dropdown-indicator/index.js.map +7 -0
- package/cjs/ComboBox/v3/parts/dropdown-indicator/styled.js +43 -17
- package/cjs/ComboBox/v3/parts/dropdown-indicator/styled.js.map +7 -0
- package/cjs/ComboBox/v3/parts/empty-state/index.js +41 -23
- package/cjs/ComboBox/v3/parts/empty-state/index.js.map +7 -0
- package/cjs/ComboBox/v3/parts/empty-state/styled.js +40 -19
- package/cjs/ComboBox/v3/parts/empty-state/styled.js.map +7 -0
- package/cjs/ComboBox/v3/parts/header-list/HeaderList.js +86 -79
- package/cjs/ComboBox/v3/parts/header-list/HeaderList.js.map +7 -0
- package/cjs/ComboBox/v3/parts/header-list/index.js +35 -9
- package/cjs/ComboBox/v3/parts/header-list/index.js.map +7 -0
- package/cjs/ComboBox/v3/parts/header-list/styled.js +101 -56
- package/cjs/ComboBox/v3/parts/header-list/styled.js.map +7 -0
- package/cjs/ComboBox/v3/parts/header-list/useHeaderListHandlers.js +59 -31
- package/cjs/ComboBox/v3/parts/header-list/useHeaderListHandlers.js.map +7 -0
- package/cjs/ComboBox/v3/parts/menu-list/MenuList.js +69 -65
- package/cjs/ComboBox/v3/parts/menu-list/MenuList.js.map +7 -0
- package/cjs/ComboBox/v3/parts/menu-list/index.js +35 -9
- package/cjs/ComboBox/v3/parts/menu-list/index.js.map +7 -0
- package/cjs/ComboBox/v3/parts/menu-list/styled.js +48 -31
- package/cjs/ComboBox/v3/parts/menu-list/styled.js.map +7 -0
- package/cjs/ComboBox/v3/parts/menu-list/useItemRenderer.js +68 -72
- package/cjs/ComboBox/v3/parts/menu-list/useItemRenderer.js.map +7 -0
- package/cjs/ComboBox/v3/parts/menu-list/useMenuList.js +47 -31
- package/cjs/ComboBox/v3/parts/menu-list/useMenuList.js.map +7 -0
- package/cjs/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.js +57 -52
- package/cjs/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.js.map +7 -0
- package/cjs/ComboBox/v3/parts/multi-selected-values-container/index.js +35 -9
- package/cjs/ComboBox/v3/parts/multi-selected-values-container/index.js.map +7 -0
- package/cjs/ComboBox/v3/parts/multi-selected-values-container/styled.js +48 -23
- package/cjs/ComboBox/v3/parts/multi-selected-values-container/styled.js.map +7 -0
- package/cjs/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.js +53 -39
- package/cjs/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.js.map +7 -0
- package/cjs/ComboBox/v3/parts/single-selected-value-container/SingleSelectedValueContainer.js +42 -22
- package/cjs/ComboBox/v3/parts/single-selected-value-container/SingleSelectedValueContainer.js.map +7 -0
- package/cjs/ComboBox/v3/parts/single-selected-value-container/index.js +35 -9
- package/cjs/ComboBox/v3/parts/single-selected-value-container/index.js.map +7 -0
- package/cjs/ComboBox/v3/parts/single-selected-value-container/styled.js +40 -15
- package/cjs/ComboBox/v3/parts/single-selected-value-container/styled.js.map +7 -0
- package/cjs/ComboBox/v3/propTypes.js +50 -23
- package/cjs/ComboBox/v3/propTypes.js.map +7 -0
- package/cjs/ComboBox/v3/tests/utils.js +90 -0
- package/cjs/ComboBox/v3/tests/utils.js.map +7 -0
- package/cjs/ComboBox/v3/utils/hooks/useKeyboardNavigation.js +111 -100
- package/cjs/ComboBox/v3/utils/hooks/useKeyboardNavigation.js.map +7 -0
- package/cjs/ComboBox/v3/utils/hooks/useOnElementResize.js +42 -23
- package/cjs/ComboBox/v3/utils/hooks/useOnElementResize.js.map +7 -0
- package/cjs/ComboBox/v3/utils/listHelper.js +49 -30
- package/cjs/ComboBox/v3/utils/listHelper.js.map +7 -0
- package/cjs/ComboBoxFreeSolo/ComboBoxFreeSolo.js +109 -83
- package/cjs/ComboBoxFreeSolo/ComboBoxFreeSolo.js.map +7 -0
- package/cjs/ComboBoxFreeSolo/components/MultiValueLabel.js +64 -43
- package/cjs/ComboBoxFreeSolo/components/MultiValueLabel.js.map +7 -0
- package/cjs/ComboBoxFreeSolo/components/MultiValueRemove.js +53 -42
- package/cjs/ComboBoxFreeSolo/components/MultiValueRemove.js.map +7 -0
- package/cjs/ComboBoxFreeSolo/components/SingleValue.js +44 -35
- package/cjs/ComboBoxFreeSolo/components/SingleValue.js.map +7 -0
- package/cjs/ComboBoxFreeSolo/components/SingleValueRemove.js +66 -58
- package/cjs/ComboBoxFreeSolo/components/SingleValueRemove.js.map +7 -0
- package/cjs/ComboBoxFreeSolo/index.js +28 -7
- package/cjs/ComboBoxFreeSolo/index.js.map +7 -0
- package/cjs/DateInput/DSDateInput.js +97 -100
- package/cjs/DateInput/DSDateInput.js.map +7 -0
- package/cjs/DateInput/components/DateInputImpl.js +99 -70
- package/cjs/DateInput/components/DateInputImpl.js.map +7 -0
- package/cjs/DateInput/components/DateInputs.js +231 -314
- package/cjs/DateInput/components/DateInputs.js.map +7 -0
- package/cjs/DateInput/components/utils.js +130 -147
- package/cjs/DateInput/components/utils.js.map +7 -0
- package/cjs/DateInput/defaultProps.js +37 -10
- package/cjs/DateInput/defaultProps.js.map +7 -0
- package/cjs/DateInput/index.js +28 -12
- package/cjs/DateInput/index.js.map +7 -0
- package/cjs/DateInput/props.js +54 -83
- package/cjs/DateInput/props.js.map +7 -0
- package/cjs/DateInputV2/components/DSDateInput.js +76 -60
- package/cjs/DateInputV2/components/DSDateInput.js.map +7 -0
- package/cjs/DateInputV2/components/DateInputs.js +117 -134
- package/cjs/DateInputV2/components/DateInputs.js.map +7 -0
- package/cjs/DateInputV2/components/helpers.js +90 -65
- package/cjs/DateInputV2/components/helpers.js.map +7 -0
- package/cjs/DateInputV2/components/props.js +57 -66
- package/cjs/DateInputV2/components/props.js.map +7 -0
- package/cjs/DateInputV2/components/propsTypes.js +54 -30
- package/cjs/DateInputV2/components/propsTypes.js.map +7 -0
- package/cjs/DateInputV2/components/styled.js +97 -43
- package/cjs/DateInputV2/components/styled.js.map +7 -0
- package/cjs/DateInputV2/components/utils.js +165 -189
- package/cjs/DateInputV2/components/utils.js.map +7 -0
- package/cjs/DateInputV2/index.js +36 -13
- package/cjs/DateInputV2/index.js.map +7 -0
- package/cjs/ExpandableInput/DSExpandableInput.js +61 -38
- package/cjs/ExpandableInput/DSExpandableInput.js.map +7 -0
- package/cjs/ExpandableInput/ExpandableInputImpl.js +65 -78
- package/cjs/ExpandableInput/ExpandableInputImpl.js.map +7 -0
- package/cjs/ExpandableInput/index.js +28 -7
- package/cjs/ExpandableInput/index.js.map +7 -0
- package/cjs/FloatingLabelInput/DSFloatingLabelInput.js +83 -136
- package/cjs/FloatingLabelInput/DSFloatingLabelInput.js.map +7 -0
- package/cjs/FloatingLabelInput/FloatingLabelInputImpl.js +91 -112
- package/cjs/FloatingLabelInput/FloatingLabelInputImpl.js.map +7 -0
- package/cjs/FloatingLabelInput/getSvgPath.js +50 -25
- package/cjs/FloatingLabelInput/getSvgPath.js.map +7 -0
- package/cjs/FloatingLabelInput/index.js +28 -7
- package/cjs/FloatingLabelInput/index.js.map +7 -0
- package/cjs/FormItem/DSFormItemLayout.js +153 -170
- package/cjs/FormItem/DSFormItemLayout.js.map +7 -0
- package/cjs/FormItem/Error/DSError.js +48 -30
- package/cjs/FormItem/Error/DSError.js.map +7 -0
- package/cjs/FormItem/Feedback.js +45 -23
- package/cjs/FormItem/Feedback.js.map +7 -0
- package/cjs/FormItem/Label/DSLabel.js +69 -36
- package/cjs/FormItem/Label/DSLabel.js.map +7 -0
- package/cjs/FormItem/Suffix/Suffix.js +60 -29
- package/cjs/FormItem/Suffix/Suffix.js.map +7 -0
- package/cjs/FormItem/ValidationFieldWrapper.js +61 -83
- package/cjs/FormItem/ValidationFieldWrapper.js.map +7 -0
- package/cjs/FormItem/defaultProps.js +56 -24
- package/cjs/FormItem/defaultProps.js.map +7 -0
- package/cjs/FormItem/index.js +41 -15
- package/cjs/FormItem/index.js.map +7 -0
- package/cjs/FormItem/props.js +85 -126
- package/cjs/FormItem/props.js.map +7 -0
- package/cjs/FormItem/variants.js +41 -13
- package/cjs/FormItem/variants.js.map +7 -0
- package/cjs/Input/DSInput.js +97 -90
- package/cjs/Input/DSInput.js.map +7 -0
- package/cjs/Input/InputAddonWrapper.js +64 -81
- package/cjs/Input/InputAddonWrapper.js.map +7 -0
- package/cjs/Input/InputImpl.js +176 -261
- package/cjs/Input/InputImpl.js.map +7 -0
- package/cjs/Input/index.js +28 -11
- package/cjs/Input/index.js.map +7 -0
- package/cjs/InputGroup/AddonWrapper.js +47 -36
- package/cjs/InputGroup/AddonWrapper.js.map +7 -0
- package/cjs/InputGroup/DSInputGroup.js +61 -38
- package/cjs/InputGroup/DSInputGroup.js.map +7 -0
- package/cjs/InputGroup/defaultProps.js +35 -7
- package/cjs/InputGroup/defaultProps.js.map +7 -0
- package/cjs/InputGroup/index.js +37 -10
- package/cjs/InputGroup/index.js.map +7 -0
- package/cjs/InputGroup/props.js +45 -38
- package/cjs/InputGroup/props.js.map +7 -0
- package/cjs/InputMask/DSInputMask.js +91 -95
- package/cjs/InputMask/DSInputMask.js.map +7 -0
- package/cjs/InputMask/DSInputMaskDeprecated.js +164 -231
- package/cjs/InputMask/DSInputMaskDeprecated.js.map +7 -0
- package/cjs/InputMask/InputMaskContext.js +39 -21
- package/cjs/InputMask/InputMaskContext.js.map +7 -0
- package/cjs/InputMask/MaskPipes.js +37 -10
- package/cjs/InputMask/MaskPipes.js.map +7 -0
- package/cjs/InputMask/MaskTypes.js +76 -42
- package/cjs/InputMask/MaskTypes.js.map +7 -0
- package/cjs/InputMask/README.md +0 -0
- package/cjs/InputMask/addons/AutoCorrectedDatePipe.js +47 -40
- package/cjs/InputMask/addons/AutoCorrectedDatePipe.js.map +7 -0
- package/cjs/InputMask/defaultProps.js +41 -14
- package/cjs/InputMask/defaultProps.js.map +7 -0
- package/cjs/InputMask/index.js +28 -15
- package/cjs/InputMask/index.js.map +7 -0
- package/cjs/InputMask/mask_types/DateInputMask.js +169 -145
- package/cjs/InputMask/mask_types/DateInputMask.js.map +7 -0
- package/cjs/InputMask/mask_types/DateTimeInputMask.js +175 -150
- package/cjs/InputMask/mask_types/DateTimeInputMask.js.map +7 -0
- package/cjs/InputMask/mask_types/DictionaryInputMask.js +160 -136
- package/cjs/InputMask/mask_types/DictionaryInputMask.js.map +7 -0
- package/cjs/InputMask/mask_types/NumberInputMask.js +221 -187
- package/cjs/InputMask/mask_types/NumberInputMask.js.map +7 -0
- package/cjs/InputMask/mask_types/PhoneInputMask.js +172 -148
- package/cjs/InputMask/mask_types/PhoneInputMask.js.map +7 -0
- package/cjs/InputMask/mask_types/PhoneInternationalInputMask.js +172 -148
- package/cjs/InputMask/mask_types/PhoneInternationalInputMask.js.map +7 -0
- package/cjs/InputMask/mask_types/SsnInputMask.js +169 -145
- package/cjs/InputMask/mask_types/SsnInputMask.js.map +7 -0
- package/cjs/InputMask/mask_types/UsZipCodeInputMask.js +155 -130
- package/cjs/InputMask/mask_types/UsZipCodeInputMask.js.map +7 -0
- package/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js +166 -145
- package/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js.map +7 -0
- package/cjs/InputMask/mask_types/index.js +128 -119
- package/cjs/InputMask/mask_types/index.js.map +7 -0
- package/cjs/InputMask/props.js +73 -148
- package/cjs/InputMask/props.js.map +7 -0
- package/cjs/InputMask/types/index.js +27 -2
- package/cjs/InputMask/types/index.js.map +7 -0
- package/cjs/InputMask/utils/setCaretPosition.js +45 -14
- package/cjs/InputMask/utils/setCaretPosition.js.map +7 -0
- package/cjs/InputProtected/DSInputProtected.js +90 -86
- package/cjs/InputProtected/DSInputProtected.js.map +7 -0
- package/cjs/InputProtected/defaultProps.js +37 -10
- package/cjs/InputProtected/defaultProps.js.map +7 -0
- package/cjs/InputProtected/index.js +29 -14
- package/cjs/InputProtected/index.js.map +7 -0
- package/cjs/InputProtected/options.js +39 -11
- package/cjs/InputProtected/options.js.map +7 -0
- package/cjs/InputProtected/props.js +54 -22
- package/cjs/InputProtected/props.js.map +7 -0
- package/cjs/LargeInputText/DSLargeInputText.js +119 -122
- package/cjs/LargeInputText/DSLargeInputText.js.map +7 -0
- package/cjs/LargeInputText/defaultProps.js +44 -16
- package/cjs/LargeInputText/defaultProps.js.map +7 -0
- package/cjs/LargeInputText/index.js +37 -10
- package/cjs/LargeInputText/index.js.map +7 -0
- package/cjs/LargeInputText/props.js +62 -126
- package/cjs/LargeInputText/props.js.map +7 -0
- package/cjs/MenuItem/components/MenuItem/index.js +58 -50
- package/cjs/MenuItem/components/MenuItem/index.js.map +7 -0
- package/cjs/MenuItem/components/MenuItem/styled.js +43 -15
- package/cjs/MenuItem/components/MenuItem/styled.js.map +7 -0
- package/cjs/MenuItem/components/MultiMenuItem/MultiMenuItem.js +68 -48
- package/cjs/MenuItem/components/MultiMenuItem/MultiMenuItem.js.map +7 -0
- package/cjs/MenuItem/components/MultiMenuItem/styled.js +42 -15
- package/cjs/MenuItem/components/MultiMenuItem/styled.js.map +7 -0
- package/cjs/MenuItem/components/Section/index.js +50 -36
- package/cjs/MenuItem/components/Section/index.js.map +7 -0
- package/cjs/MenuItem/components/Section/props.js +38 -11
- package/cjs/MenuItem/components/Section/props.js.map +7 -0
- package/cjs/MenuItem/components/Section/styled.js +51 -20
- package/cjs/MenuItem/components/Section/styled.js.map +7 -0
- package/cjs/MenuItem/components/Separator/index.js +41 -27
- package/cjs/MenuItem/components/Separator/index.js.map +7 -0
- package/cjs/MenuItem/components/Separator/styled.js +50 -20
- package/cjs/MenuItem/components/Separator/styled.js.map +7 -0
- package/cjs/MenuItem/components/SingleMenuItem/SingleMenuItem.js +67 -48
- package/cjs/MenuItem/components/SingleMenuItem/SingleMenuItem.js.map +7 -0
- package/cjs/MenuItem/components/SubmenuItem/index.js +94 -95
- package/cjs/MenuItem/components/SubmenuItem/index.js.map +7 -0
- package/cjs/MenuItem/components/SubmenuItem/styled.js +48 -20
- package/cjs/MenuItem/components/SubmenuItem/styled.js.map +7 -0
- package/cjs/MenuItem/components/index.js +33 -22
- package/cjs/MenuItem/components/index.js.map +7 -0
- package/cjs/MenuItem/components/styled.js +95 -35
- package/cjs/MenuItem/components/styled.js.map +7 -0
- package/cjs/MenuItem/index.js +28 -22
- package/cjs/MenuItem/index.js.map +7 -0
- package/cjs/MenuItem/props.js +45 -18
- package/cjs/MenuItem/props.js.map +7 -0
- package/cjs/Radio/Circle.js +45 -24
- package/cjs/Radio/Circle.js.map +7 -0
- package/cjs/Radio/DSRadio.js +125 -171
- package/cjs/Radio/DSRadio.js.map +7 -0
- package/cjs/Radio/index.js +28 -10
- package/cjs/Radio/index.js.map +7 -0
- package/cjs/RadioGroup/DSRadioGroup.js +100 -95
- package/cjs/RadioGroup/DSRadioGroup.js.map +7 -0
- package/cjs/RadioGroup/defaultProps.js +37 -9
- package/cjs/RadioGroup/defaultProps.js.map +7 -0
- package/cjs/RadioGroup/index.js +28 -7
- package/cjs/RadioGroup/index.js.map +7 -0
- package/cjs/RadioGroup/props.js +50 -41
- package/cjs/RadioGroup/props.js.map +7 -0
- package/cjs/RequiredMark/RequiredMark.js +49 -30
- package/cjs/RequiredMark/RequiredMark.js.map +7 -0
- package/cjs/RequiredMark/index.js +28 -7
- package/cjs/RequiredMark/index.js.map +7 -0
- package/cjs/SearchBox/DSSearchBox.js +103 -86
- package/cjs/SearchBox/DSSearchBox.js.map +7 -0
- package/cjs/SearchBox/NavSearchBox.js +155 -152
- package/cjs/SearchBox/NavSearchBox.js.map +7 -0
- package/cjs/SearchBox/SButton.js +76 -33
- package/cjs/SearchBox/SButton.js.map +7 -0
- package/cjs/SearchBox/SearchBoxToggle.js +65 -56
- package/cjs/SearchBox/SearchBoxToggle.js.map +7 -0
- package/cjs/SearchBox/defaultProps.js +41 -13
- package/cjs/SearchBox/defaultProps.js.map +7 -0
- package/cjs/SearchBox/index.js +43 -15
- package/cjs/SearchBox/index.js.map +7 -0
- package/cjs/SearchBox/props.js +65 -94
- package/cjs/SearchBox/props.js.map +7 -0
- package/cjs/SearchBox/styled.js +39 -16
- package/cjs/SearchBox/styled.js.map +7 -0
- package/cjs/SearchBox/useSearch.js +54 -52
- package/cjs/SearchBox/useSearch.js.map +7 -0
- package/cjs/SearchBox/withSearchable.js +77 -103
- package/cjs/SearchBox/withSearchable.js.map +7 -0
- package/cjs/TextBox/DSTextBox.js +111 -176
- package/cjs/TextBox/DSTextBox.js.map +7 -0
- package/cjs/TextBox/index.js +37 -10
- package/cjs/TextBox/index.js.map +7 -0
- package/cjs/TimeInput/DSTimeInput.js +88 -122
- package/cjs/TimeInput/DSTimeInput.js.map +7 -0
- package/cjs/TimeInput/TimeInputImpl.js +85 -60
- package/cjs/TimeInput/TimeInputImpl.js.map +7 -0
- package/cjs/TimeInput/TimeInputs.js +250 -283
- package/cjs/TimeInput/TimeInputs.js.map +7 -0
- package/cjs/TimeInput/index.js +28 -12
- package/cjs/TimeInput/index.js.map +7 -0
- package/cjs/TimeInput/utils.js +98 -85
- package/cjs/TimeInput/utils.js.map +7 -0
- package/cjs/Toggle/DSToggle.js +82 -118
- package/cjs/Toggle/DSToggle.js.map +7 -0
- package/cjs/Toggle/DSToggleImpl.js +111 -183
- package/cjs/Toggle/DSToggleImpl.js.map +7 -0
- package/cjs/Toggle/DSToggleRender.js +110 -99
- package/cjs/Toggle/DSToggleRender.js.map +7 -0
- package/cjs/Toggle/index.js +37 -10
- package/cjs/Toggle/index.js.map +7 -0
- package/cjs/Toggle/props.js +47 -67
- package/cjs/Toggle/props.js.map +7 -0
- package/cjs/Toggle/toggleHelper.js +55 -38
- package/cjs/Toggle/toggleHelper.js.map +7 -0
- package/cjs/index.js +49 -122
- package/cjs/index.js.map +7 -0
- package/esm/Checkbox/DSCheckbox.js +112 -134
- package/esm/Checkbox/DSCheckbox.js.map +7 -0
- package/esm/Checkbox/defaultProps.js +7 -5
- package/esm/Checkbox/defaultProps.js.map +7 -0
- package/esm/Checkbox/elements/CheckMark.js +9 -7
- package/esm/Checkbox/elements/CheckMark.js.map +7 -0
- package/esm/Checkbox/index.js +3 -2
- package/esm/Checkbox/index.js.map +7 -0
- package/esm/Checkbox/props.js +22 -17
- package/esm/Checkbox/props.js.map +7 -0
- package/esm/CheckboxGroup/DSCheckboxGroup.js +72 -80
- package/esm/CheckboxGroup/DSCheckboxGroup.js.map +7 -0
- package/esm/CheckboxGroup/defaultProps.js +8 -5
- package/esm/CheckboxGroup/defaultProps.js.map +7 -0
- package/esm/CheckboxGroup/index.js +3 -1
- package/esm/CheckboxGroup/index.js.map +7 -0
- package/esm/CheckboxGroup/props.js +18 -35
- package/esm/CheckboxGroup/props.js.map +7 -0
- package/esm/ComboBox/DSComboBox.js +9 -4
- package/esm/ComboBox/DSComboBox.js.map +7 -0
- package/esm/ComboBox/index.js +12 -5
- package/esm/ComboBox/index.js.map +7 -0
- package/esm/ComboBox/v1/DSComboBox.js +239 -245
- package/esm/ComboBox/v1/DSComboBox.js.map +7 -0
- package/esm/ComboBox/v1/components/AllOption.js +13 -28
- package/esm/ComboBox/v1/components/AllOption.js.map +7 -0
- package/esm/ComboBox/v1/components/ClearIndicator.js +30 -34
- package/esm/ComboBox/v1/components/ClearIndicator.js.map +7 -0
- package/esm/ComboBox/v1/components/Control.js +15 -27
- package/esm/ComboBox/v1/components/Control.js.map +7 -0
- package/esm/ComboBox/v1/components/CustomOption.js +25 -39
- package/esm/ComboBox/v1/components/CustomOption.js.map +7 -0
- package/esm/ComboBox/v1/components/CustomOptionMulti.js +26 -42
- package/esm/ComboBox/v1/components/CustomOptionMulti.js.map +7 -0
- package/esm/ComboBox/v1/components/DropdownIndicator.js +35 -51
- package/esm/ComboBox/v1/components/DropdownIndicator.js.map +7 -0
- package/esm/ComboBox/v1/components/MenuList.js +39 -61
- package/esm/ComboBox/v1/components/MenuList.js.map +7 -0
- package/esm/ComboBox/v1/components/MultiSelectHeader.js +12 -12
- package/esm/ComboBox/v1/components/MultiSelectHeader.js.map +7 -0
- package/esm/ComboBox/v1/components/MultiValueLabel.js +13 -13
- package/esm/ComboBox/v1/components/MultiValueLabel.js.map +7 -0
- package/esm/ComboBox/v1/components/MultiValueRemove.js +17 -26
- package/esm/ComboBox/v1/components/MultiValueRemove.js.map +7 -0
- package/esm/ComboBox/v1/components/SelectMenu.js +41 -59
- package/esm/ComboBox/v1/components/SelectMenu.js.map +7 -0
- package/esm/ComboBox/v1/components/SingleValueLabel.js +17 -13
- package/esm/ComboBox/v1/components/SingleValueLabel.js.map +7 -0
- package/esm/ComboBox/v1/components/ValueContainer.js +14 -29
- package/esm/ComboBox/v1/components/ValueContainer.js.map +7 -0
- package/esm/ComboBox/v1/components/calculateWidth.js +7 -9
- package/esm/ComboBox/v1/components/calculateWidth.js.map +7 -0
- package/esm/ComboBox/v1/components/getoptions.js +5 -12
- package/esm/ComboBox/v1/components/getoptions.js.map +7 -0
- package/esm/ComboBox/v1/index.js +7 -3
- package/esm/ComboBox/v1/index.js.map +7 -0
- package/esm/ComboBox/v1/withSelectStringValueConverter.js +26 -54
- package/esm/ComboBox/v1/withSelectStringValueConverter.js.map +7 -0
- package/esm/ComboBox/v2/Combobox.js +286 -343
- package/esm/ComboBox/v2/Combobox.js.map +7 -0
- package/esm/ComboBox/v2/components/AllOption.js +13 -28
- package/esm/ComboBox/v2/components/AllOption.js.map +7 -0
- package/esm/ComboBox/v2/components/ClearIndicator.js +41 -56
- package/esm/ComboBox/v2/components/ClearIndicator.js.map +7 -0
- package/esm/ComboBox/v2/components/Content.js +20 -33
- package/esm/ComboBox/v2/components/Content.js.map +7 -0
- package/esm/ComboBox/v2/components/Control.js +15 -27
- package/esm/ComboBox/v2/components/Control.js.map +7 -0
- package/esm/ComboBox/v2/components/CustomOption.js +45 -76
- package/esm/ComboBox/v2/components/CustomOption.js.map +7 -0
- package/esm/ComboBox/v2/components/CustomOptionMulti.js +35 -57
- package/esm/ComboBox/v2/components/CustomOptionMulti.js.map +7 -0
- package/esm/ComboBox/v2/components/DropdownIndicator.js +47 -71
- package/esm/ComboBox/v2/components/DropdownIndicator.js.map +7 -0
- package/esm/ComboBox/v2/components/GroupHeading.js +27 -35
- package/esm/ComboBox/v2/components/GroupHeading.js.map +7 -0
- package/esm/ComboBox/v2/components/IndicatorSeparator.js +10 -19
- package/esm/ComboBox/v2/components/IndicatorSeparator.js.map +7 -0
- package/esm/ComboBox/v2/components/LoadingIndicator.js +18 -15
- package/esm/ComboBox/v2/components/LoadingIndicator.js.map +7 -0
- package/esm/ComboBox/v2/components/MenuList.js +57 -82
- package/esm/ComboBox/v2/components/MenuList.js.map +7 -0
- package/esm/ComboBox/v2/components/MultiSelectHeader.js +57 -49
- package/esm/ComboBox/v2/components/MultiSelectHeader.js.map +7 -0
- package/esm/ComboBox/v2/components/MultiValueLabel.js +13 -13
- package/esm/ComboBox/v2/components/MultiValueLabel.js.map +7 -0
- package/esm/ComboBox/v2/components/MultiValueRemove.js +23 -35
- package/esm/ComboBox/v2/components/MultiValueRemove.js.map +7 -0
- package/esm/ComboBox/v2/components/SelectMenu.js +28 -43
- package/esm/ComboBox/v2/components/SelectMenu.js.map +7 -0
- package/esm/ComboBox/v2/components/SingleValueLabel.js +17 -13
- package/esm/ComboBox/v2/components/SingleValueLabel.js.map +7 -0
- package/esm/ComboBox/v2/components/ValueContainer.js +20 -35
- package/esm/ComboBox/v2/components/ValueContainer.js.map +7 -0
- package/esm/ComboBox/v2/components/calculateWidth.js +8 -12
- package/esm/ComboBox/v2/components/calculateWidth.js.map +7 -0
- package/esm/ComboBox/v2/components/getoptions.js +5 -12
- package/esm/ComboBox/v2/components/getoptions.js.map +7 -0
- package/esm/ComboBox/v2/components/useMenuListHeight.js +13 -37
- package/esm/ComboBox/v2/components/useMenuListHeight.js.map +7 -0
- package/esm/ComboBox/v2/components/utils.js +6 -3
- package/esm/ComboBox/v2/components/utils.js.map +7 -0
- package/esm/ComboBox/v2/context.js +7 -5
- package/esm/ComboBox/v2/context.js.map +7 -0
- package/esm/ComboBox/v2/index.js +7 -1
- package/esm/ComboBox/v2/index.js.map +7 -0
- package/esm/ComboBox/v2/mockOptions.js +28 -18
- package/esm/ComboBox/v2/mockOptions.js.map +7 -0
- package/esm/ComboBox/v3/ComboBox.js +17 -17
- package/esm/ComboBox/v3/ComboBox.js.map +7 -0
- package/esm/ComboBox/v3/ComboBoxCTX.js +21 -19
- package/esm/ComboBox/v3/ComboBoxCTX.js.map +7 -0
- package/esm/ComboBox/v3/ComboboxDataTestids.js +14 -11
- package/esm/ComboBox/v3/ComboboxDataTestids.js.map +7 -0
- package/esm/ComboBox/v3/config/constants.js +11 -8
- package/esm/ComboBox/v3/config/constants.js.map +7 -0
- package/esm/ComboBox/v3/config/useComboBox.js +39 -57
- package/esm/ComboBox/v3/config/useComboBox.js.map +7 -0
- package/esm/ComboBox/v3/config/useGetPropsWithDefault.js +8 -7
- package/esm/ComboBox/v3/config/useGetPropsWithDefault.js.map +7 -0
- package/esm/ComboBox/v3/index.d.js +2 -1
- package/esm/ComboBox/v3/index.d.js.map +7 -0
- package/esm/ComboBox/v3/index.js +7 -1
- package/esm/ComboBox/v3/index.js.map +7 -0
- package/esm/ComboBox/v3/parts/a11y-messages/MultiAllyMessages.js +12 -16
- package/esm/ComboBox/v3/parts/a11y-messages/MultiAllyMessages.js.map +7 -0
- package/esm/ComboBox/v3/parts/a11y-messages/SingleAllyMessages.js +11 -12
- package/esm/ComboBox/v3/parts/a11y-messages/SingleAllyMessages.js.map +7 -0
- package/esm/ComboBox/v3/parts/a11y-messages/index.js +8 -2
- package/esm/ComboBox/v3/parts/a11y-messages/index.js.map +7 -0
- package/esm/ComboBox/v3/parts/a11y-messages/styled.js +12 -7
- package/esm/ComboBox/v3/parts/a11y-messages/styled.js.map +7 -0
- package/esm/ComboBox/v3/parts/container/Container.js +33 -41
- package/esm/ComboBox/v3/parts/container/Container.js.map +7 -0
- package/esm/ComboBox/v3/parts/container/index.js +6 -1
- package/esm/ComboBox/v3/parts/container/index.js.map +7 -0
- package/esm/ComboBox/v3/parts/container/styled.js +22 -13
- package/esm/ComboBox/v3/parts/container/styled.js.map +7 -0
- package/esm/ComboBox/v3/parts/controls/Controls.js +31 -37
- package/esm/ComboBox/v3/parts/controls/Controls.js.map +7 -0
- package/esm/ComboBox/v3/parts/controls/index.js +6 -1
- package/esm/ComboBox/v3/parts/controls/index.js.map +7 -0
- package/esm/ComboBox/v3/parts/controls/styled.js +67 -47
- package/esm/ComboBox/v3/parts/controls/styled.js.map +7 -0
- package/esm/ComboBox/v3/parts/controls-input/ControlsInput.js +21 -36
- package/esm/ComboBox/v3/parts/controls-input/ControlsInput.js.map +7 -0
- package/esm/ComboBox/v3/parts/controls-input/styled.js +42 -16
- package/esm/ComboBox/v3/parts/controls-input/styled.js.map +7 -0
- package/esm/ComboBox/v3/parts/controls-input/useControlsInput.js +22 -33
- package/esm/ComboBox/v3/parts/controls-input/useControlsInput.js.map +7 -0
- package/esm/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.js +14 -16
- package/esm/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.js.map +7 -0
- package/esm/ComboBox/v3/parts/dropdown-indicator/index.js +2 -1
- package/esm/ComboBox/v3/parts/dropdown-indicator/index.js.map +7 -0
- package/esm/ComboBox/v3/parts/dropdown-indicator/styled.js +14 -8
- package/esm/ComboBox/v3/parts/dropdown-indicator/styled.js.map +7 -0
- package/esm/ComboBox/v3/parts/empty-state/index.js +11 -14
- package/esm/ComboBox/v3/parts/empty-state/index.js.map +7 -0
- package/esm/ComboBox/v3/parts/empty-state/styled.js +11 -10
- package/esm/ComboBox/v3/parts/empty-state/styled.js.map +7 -0
- package/esm/ComboBox/v3/parts/header-list/HeaderList.js +58 -64
- package/esm/ComboBox/v3/parts/header-list/HeaderList.js.map +7 -0
- package/esm/ComboBox/v3/parts/header-list/index.js +6 -1
- package/esm/ComboBox/v3/parts/header-list/index.js.map +7 -0
- package/esm/ComboBox/v3/parts/header-list/styled.js +73 -40
- package/esm/ComboBox/v3/parts/header-list/styled.js.map +7 -0
- package/esm/ComboBox/v3/parts/header-list/useHeaderListHandlers.js +25 -22
- package/esm/ComboBox/v3/parts/header-list/useHeaderListHandlers.js.map +7 -0
- package/esm/ComboBox/v3/parts/menu-list/MenuList.js +35 -52
- package/esm/ComboBox/v3/parts/menu-list/MenuList.js.map +7 -0
- package/esm/ComboBox/v3/parts/menu-list/index.js +6 -1
- package/esm/ComboBox/v3/parts/menu-list/index.js.map +7 -0
- package/esm/ComboBox/v3/parts/menu-list/styled.js +20 -22
- package/esm/ComboBox/v3/parts/menu-list/styled.js.map +7 -0
- package/esm/ComboBox/v3/parts/menu-list/useItemRenderer.js +34 -59
- package/esm/ComboBox/v3/parts/menu-list/useItemRenderer.js.map +7 -0
- package/esm/ComboBox/v3/parts/menu-list/useMenuList.js +16 -25
- package/esm/ComboBox/v3/parts/menu-list/useMenuList.js.map +7 -0
- package/esm/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.js +26 -41
- package/esm/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.js.map +7 -0
- package/esm/ComboBox/v3/parts/multi-selected-values-container/index.js +6 -1
- package/esm/ComboBox/v3/parts/multi-selected-values-container/index.js.map +7 -0
- package/esm/ComboBox/v3/parts/multi-selected-values-container/styled.js +19 -13
- package/esm/ComboBox/v3/parts/multi-selected-values-container/styled.js.map +7 -0
- package/esm/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.js +20 -31
- package/esm/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.js.map +7 -0
- package/esm/ComboBox/v3/parts/single-selected-value-container/SingleSelectedValueContainer.js +12 -13
- package/esm/ComboBox/v3/parts/single-selected-value-container/SingleSelectedValueContainer.js.map +7 -0
- package/esm/ComboBox/v3/parts/single-selected-value-container/index.js +6 -1
- package/esm/ComboBox/v3/parts/single-selected-value-container/index.js.map +7 -0
- package/esm/ComboBox/v3/parts/single-selected-value-container/styled.js +11 -7
- package/esm/ComboBox/v3/parts/single-selected-value-container/styled.js.map +7 -0
- package/esm/ComboBox/v3/propTypes.js +21 -19
- package/esm/ComboBox/v3/propTypes.js.map +7 -0
- package/esm/ComboBox/v3/tests/utils.js +61 -0
- package/esm/ComboBox/v3/tests/utils.js.map +7 -0
- package/esm/ComboBox/v3/utils/hooks/useKeyboardNavigation.js +76 -90
- package/esm/ComboBox/v3/utils/hooks/useKeyboardNavigation.js.map +7 -0
- package/esm/ComboBox/v3/utils/hooks/useOnElementResize.js +10 -16
- package/esm/ComboBox/v3/utils/hooks/useOnElementResize.js.map +7 -0
- package/esm/ComboBox/v3/utils/listHelper.js +20 -21
- package/esm/ComboBox/v3/utils/listHelper.js.map +7 -0
- package/esm/ComboBoxFreeSolo/ComboBoxFreeSolo.js +75 -71
- package/esm/ComboBoxFreeSolo/ComboBoxFreeSolo.js.map +7 -0
- package/esm/ComboBoxFreeSolo/components/MultiValueLabel.js +36 -35
- package/esm/ComboBoxFreeSolo/components/MultiValueLabel.js.map +7 -0
- package/esm/ComboBoxFreeSolo/components/MultiValueRemove.js +24 -32
- package/esm/ComboBoxFreeSolo/components/MultiValueRemove.js.map +7 -0
- package/esm/ComboBoxFreeSolo/components/SingleValue.js +15 -26
- package/esm/ComboBoxFreeSolo/components/SingleValue.js.map +7 -0
- package/esm/ComboBoxFreeSolo/components/SingleValueRemove.js +37 -47
- package/esm/ComboBoxFreeSolo/components/SingleValueRemove.js.map +7 -0
- package/esm/ComboBoxFreeSolo/index.js +3 -1
- package/esm/ComboBoxFreeSolo/index.js.map +7 -0
- package/esm/DateInput/DSDateInput.js +61 -82
- package/esm/DateInput/DSDateInput.js.map +7 -0
- package/esm/DateInput/components/DateInputImpl.js +68 -61
- package/esm/DateInput/components/DateInputImpl.js.map +7 -0
- package/esm/DateInput/components/DateInputs.js +197 -285
- package/esm/DateInput/components/DateInputs.js.map +7 -0
- package/esm/DateInput/components/utils.js +98 -118
- package/esm/DateInput/components/utils.js.map +7 -0
- package/esm/DateInput/defaultProps.js +8 -6
- package/esm/DateInput/defaultProps.js.map +7 -0
- package/esm/DateInput/index.js +3 -2
- package/esm/DateInput/index.js.map +7 -0
- package/esm/DateInput/props.js +25 -79
- package/esm/DateInput/props.js.map +7 -0
- package/esm/DateInputV2/components/DSDateInput.js +44 -48
- package/esm/DateInputV2/components/DSDateInput.js.map +7 -0
- package/esm/DateInputV2/components/DateInputs.js +84 -110
- package/esm/DateInputV2/components/DateInputs.js.map +7 -0
- package/esm/DateInputV2/components/helpers.js +60 -60
- package/esm/DateInputV2/components/helpers.js.map +7 -0
- package/esm/DateInputV2/components/props.js +22 -55
- package/esm/DateInputV2/components/props.js.map +7 -0
- package/esm/DateInputV2/components/propsTypes.js +10 -7
- package/esm/DateInputV2/components/propsTypes.js.map +7 -0
- package/esm/DateInputV2/components/styled.js +68 -32
- package/esm/DateInputV2/components/styled.js.map +7 -0
- package/esm/DateInputV2/components/utils.js +132 -157
- package/esm/DateInputV2/components/utils.js.map +7 -0
- package/esm/DateInputV2/index.js +7 -2
- package/esm/DateInputV2/index.js.map +7 -0
- package/esm/ExpandableInput/DSExpandableInput.js +32 -32
- package/esm/ExpandableInput/DSExpandableInput.js.map +7 -0
- package/esm/ExpandableInput/ExpandableInputImpl.js +37 -71
- package/esm/ExpandableInput/ExpandableInputImpl.js.map +7 -0
- package/esm/ExpandableInput/index.js +3 -1
- package/esm/ExpandableInput/index.js.map +7 -0
- package/esm/FloatingLabelInput/DSFloatingLabelInput.js +54 -130
- package/esm/FloatingLabelInput/DSFloatingLabelInput.js.map +7 -0
- package/esm/FloatingLabelInput/FloatingLabelInputImpl.js +59 -100
- package/esm/FloatingLabelInput/FloatingLabelInputImpl.js.map +7 -0
- package/esm/FloatingLabelInput/getSvgPath.js +21 -23
- package/esm/FloatingLabelInput/getSvgPath.js.map +7 -0
- package/esm/FloatingLabelInput/index.js +3 -1
- package/esm/FloatingLabelInput/index.js.map +7 -0
- package/esm/FormItem/DSFormItemLayout.js +123 -155
- package/esm/FormItem/DSFormItemLayout.js.map +7 -0
- package/esm/FormItem/Error/DSError.js +18 -20
- package/esm/FormItem/Error/DSError.js.map +7 -0
- package/esm/FormItem/Feedback.js +16 -17
- package/esm/FormItem/Feedback.js.map +7 -0
- package/esm/FormItem/Label/DSLabel.js +40 -29
- package/esm/FormItem/Label/DSLabel.js.map +7 -0
- package/esm/FormItem/Suffix/Suffix.js +31 -18
- package/esm/FormItem/Suffix/Suffix.js.map +7 -0
- package/esm/FormItem/ValidationFieldWrapper.js +31 -76
- package/esm/FormItem/ValidationFieldWrapper.js.map +7 -0
- package/esm/FormItem/defaultProps.js +23 -16
- package/esm/FormItem/defaultProps.js.map +7 -0
- package/esm/FormItem/index.js +18 -3
- package/esm/FormItem/index.js.map +7 -0
- package/esm/FormItem/props.js +56 -122
- package/esm/FormItem/props.js.map +7 -0
- package/esm/FormItem/variants.js +11 -8
- package/esm/FormItem/variants.js.map +7 -0
- package/esm/Input/DSInput.js +68 -80
- package/esm/Input/DSInput.js.map +7 -0
- package/esm/Input/InputAddonWrapper.js +36 -75
- package/esm/Input/InputAddonWrapper.js.map +7 -0
- package/esm/Input/InputImpl.js +114 -216
- package/esm/Input/InputImpl.js.map +7 -0
- package/esm/Input/index.js +3 -2
- package/esm/Input/index.js.map +7 -0
- package/esm/InputGroup/AddonWrapper.js +17 -28
- package/esm/InputGroup/AddonWrapper.js.map +7 -0
- package/esm/InputGroup/DSInputGroup.js +30 -31
- package/esm/InputGroup/DSInputGroup.js.map +7 -0
- package/esm/InputGroup/defaultProps.js +6 -3
- package/esm/InputGroup/defaultProps.js.map +7 -0
- package/esm/InputGroup/index.js +8 -1
- package/esm/InputGroup/index.js.map +7 -0
- package/esm/InputGroup/props.js +16 -34
- package/esm/InputGroup/props.js.map +7 -0
- package/esm/InputMask/DSInputMask.js +55 -76
- package/esm/InputMask/DSInputMask.js.map +7 -0
- package/esm/InputMask/DSInputMaskDeprecated.js +132 -220
- package/esm/InputMask/DSInputMaskDeprecated.js.map +7 -0
- package/esm/InputMask/InputMaskContext.js +10 -13
- package/esm/InputMask/InputMaskContext.js.map +7 -0
- package/esm/InputMask/MaskPipes.js +7 -4
- package/esm/InputMask/MaskPipes.js.map +7 -0
- package/esm/InputMask/MaskTypes.js +47 -33
- package/esm/InputMask/MaskTypes.js.map +7 -0
- package/esm/InputMask/README.md +0 -0
- package/esm/InputMask/addons/AutoCorrectedDatePipe.js +18 -36
- package/esm/InputMask/addons/AutoCorrectedDatePipe.js.map +7 -0
- package/esm/InputMask/defaultProps.js +11 -9
- package/esm/InputMask/defaultProps.js.map +7 -0
- package/esm/InputMask/index.js +3 -3
- package/esm/InputMask/index.js.map +7 -0
- package/esm/InputMask/mask_types/DateInputMask.js +136 -134
- package/esm/InputMask/mask_types/DateInputMask.js.map +7 -0
- package/esm/InputMask/mask_types/DateTimeInputMask.js +142 -139
- package/esm/InputMask/mask_types/DateTimeInputMask.js.map +7 -0
- package/esm/InputMask/mask_types/DictionaryInputMask.js +127 -125
- package/esm/InputMask/mask_types/DictionaryInputMask.js.map +7 -0
- package/esm/InputMask/mask_types/NumberInputMask.js +188 -176
- package/esm/InputMask/mask_types/NumberInputMask.js.map +7 -0
- package/esm/InputMask/mask_types/PhoneInputMask.js +139 -137
- package/esm/InputMask/mask_types/PhoneInputMask.js.map +7 -0
- package/esm/InputMask/mask_types/PhoneInternationalInputMask.js +139 -137
- package/esm/InputMask/mask_types/PhoneInternationalInputMask.js.map +7 -0
- package/esm/InputMask/mask_types/SsnInputMask.js +136 -134
- package/esm/InputMask/mask_types/SsnInputMask.js.map +7 -0
- package/esm/InputMask/mask_types/UsZipCodeInputMask.js +122 -119
- package/esm/InputMask/mask_types/UsZipCodeInputMask.js.map +7 -0
- package/esm/InputMask/mask_types/ZipCodeSearchInputMask.js +133 -134
- package/esm/InputMask/mask_types/ZipCodeSearchInputMask.js.map +7 -0
- package/esm/InputMask/mask_types/index.js +99 -110
- package/esm/InputMask/mask_types/index.js.map +7 -0
- package/esm/InputMask/props.js +43 -143
- package/esm/InputMask/props.js.map +7 -0
- package/esm/InputMask/types/index.js +2 -1
- package/esm/InputMask/types/index.js.map +7 -0
- package/esm/InputMask/utils/setCaretPosition.js +16 -12
- package/esm/InputMask/utils/setCaretPosition.js.map +7 -0
- package/esm/InputProtected/DSInputProtected.js +49 -61
- package/esm/InputProtected/DSInputProtected.js.map +7 -0
- package/esm/InputProtected/defaultProps.js +7 -5
- package/esm/InputProtected/defaultProps.js.map +7 -0
- package/esm/InputProtected/index.js +4 -2
- package/esm/InputProtected/index.js.map +7 -0
- package/esm/InputProtected/options.js +10 -6
- package/esm/InputProtected/options.js.map +7 -0
- package/esm/InputProtected/props.js +25 -18
- package/esm/InputProtected/props.js.map +7 -0
- package/esm/LargeInputText/DSLargeInputText.js +92 -111
- package/esm/LargeInputText/DSLargeInputText.js.map +7 -0
- package/esm/LargeInputText/defaultProps.js +15 -12
- package/esm/LargeInputText/defaultProps.js.map +7 -0
- package/esm/LargeInputText/index.js +8 -1
- package/esm/LargeInputText/index.js.map +7 -0
- package/esm/LargeInputText/props.js +33 -122
- package/esm/LargeInputText/props.js.map +7 -0
- package/esm/MenuItem/components/MenuItem/index.js +25 -36
- package/esm/MenuItem/components/MenuItem/index.js.map +7 -0
- package/esm/MenuItem/components/MenuItem/styled.js +14 -7
- package/esm/MenuItem/components/MenuItem/styled.js.map +7 -0
- package/esm/MenuItem/components/MultiMenuItem/MultiMenuItem.js +36 -36
- package/esm/MenuItem/components/MultiMenuItem/MultiMenuItem.js.map +7 -0
- package/esm/MenuItem/components/MultiMenuItem/styled.js +13 -7
- package/esm/MenuItem/components/MultiMenuItem/styled.js.map +7 -0
- package/esm/MenuItem/components/Section/index.js +17 -23
- package/esm/MenuItem/components/Section/index.js.map +7 -0
- package/esm/MenuItem/components/Section/props.js +9 -6
- package/esm/MenuItem/components/Section/props.js.map +7 -0
- package/esm/MenuItem/components/Section/styled.js +22 -11
- package/esm/MenuItem/components/Section/styled.js.map +7 -0
- package/esm/MenuItem/components/Separator/index.js +12 -19
- package/esm/MenuItem/components/Separator/index.js.map +7 -0
- package/esm/MenuItem/components/Separator/styled.js +21 -11
- package/esm/MenuItem/components/Separator/styled.js.map +7 -0
- package/esm/MenuItem/components/SingleMenuItem/SingleMenuItem.js +35 -36
- package/esm/MenuItem/components/SingleMenuItem/SingleMenuItem.js.map +7 -0
- package/esm/MenuItem/components/SubmenuItem/index.js +58 -75
- package/esm/MenuItem/components/SubmenuItem/index.js.map +7 -0
- package/esm/MenuItem/components/SubmenuItem/styled.js +19 -11
- package/esm/MenuItem/components/SubmenuItem/styled.js.map +7 -0
- package/esm/MenuItem/components/index.js +8 -6
- package/esm/MenuItem/components/index.js.map +7 -0
- package/esm/MenuItem/components/styled.js +72 -26
- package/esm/MenuItem/components/styled.js.map +7 -0
- package/esm/MenuItem/index.js +3 -6
- package/esm/MenuItem/index.js.map +7 -0
- package/esm/MenuItem/props.js +14 -11
- package/esm/MenuItem/props.js.map +7 -0
- package/esm/Radio/Circle.js +16 -18
- package/esm/Radio/Circle.js.map +7 -0
- package/esm/Radio/DSRadio.js +95 -159
- package/esm/Radio/DSRadio.js.map +7 -0
- package/esm/Radio/index.js +3 -1
- package/esm/Radio/index.js.map +7 -0
- package/esm/RadioGroup/DSRadioGroup.js +69 -80
- package/esm/RadioGroup/DSRadioGroup.js.map +7 -0
- package/esm/RadioGroup/defaultProps.js +8 -5
- package/esm/RadioGroup/defaultProps.js.map +7 -0
- package/esm/RadioGroup/index.js +3 -1
- package/esm/RadioGroup/index.js.map +7 -0
- package/esm/RadioGroup/props.js +17 -33
- package/esm/RadioGroup/props.js.map +7 -0
- package/esm/RequiredMark/RequiredMark.js +20 -24
- package/esm/RequiredMark/RequiredMark.js.map +7 -0
- package/esm/RequiredMark/index.js +3 -1
- package/esm/RequiredMark/index.js.map +7 -0
- package/esm/SearchBox/DSSearchBox.js +70 -72
- package/esm/SearchBox/DSSearchBox.js.map +7 -0
- package/esm/SearchBox/NavSearchBox.js +124 -139
- package/esm/SearchBox/NavSearchBox.js.map +7 -0
- package/esm/SearchBox/SButton.js +47 -24
- package/esm/SearchBox/SButton.js.map +7 -0
- package/esm/SearchBox/SearchBoxToggle.js +36 -46
- package/esm/SearchBox/SearchBoxToggle.js.map +7 -0
- package/esm/SearchBox/defaultProps.js +12 -8
- package/esm/SearchBox/defaultProps.js.map +7 -0
- package/esm/SearchBox/index.js +14 -3
- package/esm/SearchBox/index.js.map +7 -0
- package/esm/SearchBox/props.js +36 -89
- package/esm/SearchBox/props.js.map +7 -0
- package/esm/SearchBox/styled.js +10 -8
- package/esm/SearchBox/styled.js.map +7 -0
- package/esm/SearchBox/useSearch.js +23 -46
- package/esm/SearchBox/useSearch.js.map +7 -0
- package/esm/SearchBox/withSearchable.js +46 -93
- package/esm/SearchBox/withSearchable.js.map +7 -0
- package/esm/TextBox/DSTextBox.js +81 -165
- package/esm/TextBox/DSTextBox.js.map +7 -0
- package/esm/TextBox/index.js +8 -1
- package/esm/TextBox/index.js.map +7 -0
- package/esm/TimeInput/DSTimeInput.js +58 -110
- package/esm/TimeInput/DSTimeInput.js.map +7 -0
- package/esm/TimeInput/TimeInputImpl.js +54 -50
- package/esm/TimeInput/TimeInputImpl.js.map +7 -0
- package/esm/TimeInput/TimeInputs.js +214 -238
- package/esm/TimeInput/TimeInputs.js.map +7 -0
- package/esm/TimeInput/index.js +3 -2
- package/esm/TimeInput/index.js.map +7 -0
- package/esm/TimeInput/utils.js +68 -59
- package/esm/TimeInput/utils.js.map +7 -0
- package/esm/Toggle/DSToggle.js +52 -107
- package/esm/Toggle/DSToggle.js.map +7 -0
- package/esm/Toggle/DSToggleImpl.js +83 -172
- package/esm/Toggle/DSToggleImpl.js.map +7 -0
- package/esm/Toggle/DSToggleRender.js +81 -91
- package/esm/Toggle/DSToggleRender.js.map +7 -0
- package/esm/Toggle/index.js +8 -1
- package/esm/Toggle/index.js.map +7 -0
- package/esm/Toggle/props.js +7 -48
- package/esm/Toggle/props.js.map +7 -0
- package/esm/Toggle/toggleHelper.js +26 -31
- package/esm/Toggle/toggleHelper.js.map +7 -0
- package/esm/index.js +24 -42
- package/esm/index.js.map +7 -0
- package/package.json +23 -23
- package/types/Checkbox/elements/CheckMark.d.ts +1 -1
- package/types/Checkbox/index.d.ts +0 -1
- package/types/CheckboxGroup/DSCheckboxGroup.d.ts +0 -1
- package/types/CheckboxGroup/index.d.ts +0 -1
- package/types/ComboBox/index.d.ts +2 -4
- package/types/ComboBox/v1/DSComboBox.d.ts +3 -2
- package/types/ComboBox/v1/components/ClearIndicator.d.ts +1 -0
- package/types/ComboBox/v1/components/Control.d.ts +1 -0
- package/types/ComboBox/v1/components/CustomOption.d.ts +1 -0
- package/types/ComboBox/v1/components/CustomOptionMulti.d.ts +1 -0
- package/types/ComboBox/v1/components/DropdownIndicator.d.ts +1 -0
- package/types/ComboBox/v1/components/MenuList.d.ts +1 -0
- package/types/ComboBox/v1/components/MultiSelectHeader.d.ts +1 -0
- package/types/ComboBox/v1/components/MultiValueLabel.d.ts +1 -0
- package/types/ComboBox/v1/components/MultiValueRemove.d.ts +1 -0
- package/types/ComboBox/v1/components/SelectMenu.d.ts +1 -0
- package/types/ComboBox/v1/components/SingleValueLabel.d.ts +1 -0
- package/types/ComboBox/v1/withSelectStringValueConverter.d.ts +1 -0
- package/types/ComboBox/v2/components/ClearIndicator.d.ts +1 -0
- package/types/ComboBox/v2/components/Content.d.ts +1 -0
- package/types/ComboBox/v2/components/Control.d.ts +1 -0
- package/types/ComboBox/v2/components/CustomOption.d.ts +1 -0
- package/types/ComboBox/v2/components/CustomOptionMulti.d.ts +1 -0
- package/types/ComboBox/v2/components/DropdownIndicator.d.ts +1 -0
- package/types/ComboBox/v2/components/GroupHeading.d.ts +1 -0
- package/types/ComboBox/v2/components/LoadingIndicator.d.ts +1 -0
- package/types/ComboBox/v2/components/MenuList.d.ts +1 -0
- package/types/ComboBox/v2/components/MultiSelectHeader.d.ts +1 -0
- package/types/ComboBox/v2/components/MultiValueLabel.d.ts +1 -0
- package/types/ComboBox/v2/components/MultiValueRemove.d.ts +1 -0
- package/types/ComboBox/v2/components/SelectMenu.d.ts +1 -0
- package/types/ComboBox/v2/components/SingleValueLabel.d.ts +1 -0
- package/types/ComboBoxFreeSolo/ComboBoxFreeSolo.d.ts +1 -0
- package/types/ComboBoxFreeSolo/index.d.ts +1 -1
- package/types/DateInput/DSDateInput.d.ts +2 -2
- package/types/DateInput/components/DateInputImpl.d.ts +1 -0
- package/types/DateInput/components/DateInputs.d.ts +1 -0
- package/types/DateInput/index.d.ts +0 -1
- package/types/DateInputV2/components/DSDateInput.d.ts +1 -0
- package/types/DateInputV2/index.d.ts +0 -1
- package/types/ExpandableInput/DSExpandableInput.d.ts +1 -0
- package/types/ExpandableInput/ExpandableInputImpl.d.ts +3 -1
- package/types/ExpandableInput/index.d.ts +1 -1
- package/types/FloatingLabelInput/DSFloatingLabelInput.d.ts +6 -1
- package/types/FloatingLabelInput/FloatingLabelInputImpl.d.ts +1 -0
- package/types/FloatingLabelInput/getSvgPath.d.ts +1 -0
- package/types/FloatingLabelInput/index.d.ts +1 -1
- package/types/FormItem/DSFormItemLayout.d.ts +2 -2
- package/types/FormItem/Error/DSError.d.ts +1 -1
- package/types/FormItem/Feedback.d.ts +1 -0
- package/types/FormItem/Label/DSLabel.d.ts +1 -0
- package/types/FormItem/index.d.ts +1 -1
- package/types/Input/DSInput.d.ts +2 -2
- package/types/Input/InputAddonWrapper.d.ts +3 -1
- package/types/Input/InputImpl.d.ts +1 -0
- package/types/Input/index.d.ts +0 -1
- package/types/InputGroup/AddonWrapper.d.ts +3 -1
- package/types/InputGroup/DSInputGroup.d.ts +1 -1
- package/types/InputGroup/index.d.ts +1 -2
- package/types/InputMask/DSInputMaskDeprecated.d.ts +1 -0
- package/types/InputMask/index.d.ts +0 -1
- package/types/InputMask/mask_types/DateInputMask.d.ts +1 -0
- package/types/InputMask/mask_types/DateTimeInputMask.d.ts +1 -0
- package/types/InputMask/mask_types/DictionaryInputMask.d.ts +1 -0
- package/types/InputMask/mask_types/NumberInputMask.d.ts +1 -0
- package/types/InputMask/mask_types/PhoneInputMask.d.ts +1 -0
- package/types/InputMask/mask_types/PhoneInternationalInputMask.d.ts +1 -0
- package/types/InputMask/mask_types/SsnInputMask.d.ts +1 -0
- package/types/InputMask/mask_types/UsZipCodeInputMask.d.ts +1 -0
- package/types/InputMask/mask_types/ZipCodeSearchInputMask.d.ts +1 -0
- package/types/InputMask/utils/setCaretPosition.d.ts +1 -0
- package/types/InputProtected/index.d.ts +0 -1
- package/types/LargeInputText/DSLargeInputText.d.ts +1 -1
- package/types/LargeInputText/index.d.ts +1 -2
- package/types/MenuItem/components/SubmenuItem/styled.d.ts +1 -1
- package/types/MenuItem/components/styled.d.ts +3 -3
- package/types/Radio/Circle.d.ts +3 -2
- package/types/Radio/DSRadio.d.ts +1 -1
- package/types/Radio/index.d.ts +1 -2
- package/types/RadioGroup/DSRadioGroup.d.ts +1 -1
- package/types/RadioGroup/index.d.ts +1 -1
- package/types/RequiredMark/RequiredMark.d.ts +1 -0
- package/types/RequiredMark/index.d.ts +1 -1
- package/types/SearchBox/DSSearchBox.d.ts +1 -1
- package/types/SearchBox/index.d.ts +1 -1
- package/types/TextBox/DSTextBox.d.ts +1 -1
- package/types/TextBox/index.d.ts +1 -2
- package/types/TimeInput/DSTimeInput.d.ts +2 -2
- package/types/TimeInput/TimeInputImpl.d.ts +1 -0
- package/types/TimeInput/TimeInputs.d.ts +1 -0
- package/types/TimeInput/index.d.ts +0 -1
- package/types/TimeInput/utils.d.ts +1 -1
- package/types/Toggle/DSToggle.d.ts +1 -1
- package/types/Toggle/DSToggleImpl.d.ts +1 -0
- package/types/Toggle/DSToggleRender.d.ts +1 -0
- package/types/Toggle/index.d.ts +1 -2
- package/types/index.d.ts +4 -25
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/InputMask/mask_types/DictionaryInputMask.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-loop-func */\n/* eslint-disable max-params */\n/* eslint-disable max-lines */\n/* eslint-disable complexity */\nimport React, { useCallback, useLayoutEffect, useRef, useState } from 'react';\nimport { PropTypes } from 'react-desc';\nimport { DSTextBox } from '../../TextBox';\nimport { setCaretPosition } from '../utils/setCaretPosition';\n\nconst startsWith = (a: string, b: string, ignoreCase: boolean): boolean => {\n if (ignoreCase) {\n a = a.toLowerCase();\n b = b.toLowerCase();\n }\n return a.startsWith(b);\n};\n\nconst conformValue = (\n rawValue: string,\n cursorPos: number,\n lastkeycode: number,\n allowedWords: string[],\n ignoreCase: boolean,\n) => {\n let nextMaskedValue = '';\n let currentPosibleWords = allowedWords;\n for (let i = 0; i < rawValue.length; i += 1) {\n const matchingWords = currentPosibleWords.filter((word) =>\n startsWith(word, nextMaskedValue + rawValue[i], ignoreCase),\n );\n if (matchingWords.length) {\n nextMaskedValue += rawValue[i];\n currentPosibleWords = matchingWords;\n }\n }\n\n return { nextMaskedValue, maskedPos: cursorPos };\n};\n\nconst DictionaryInputMask = ({\n focus,\n setFocus,\n setRawMask,\n cursorPosition,\n setCursorPosition,\n lastkey,\n setLastkey,\n setRawValue,\n allowedWords,\n ignoreCase = true,\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}) => {\n const inputRef = useRef();\n const [maskedValue, setMaskedValue] = useState(value);\n\n const conform = useCallback(\n ({ rawValue, cursorPos, lastkeycode, shouldUpdateCursorPos = true }) => {\n const { nextMaskedValue, maskedPos } = conformValue(\n rawValue,\n cursorPos,\n lastkeycode,\n allowedWords,\n ignoreCase,\n );\n const event = {\n target: {\n value: nextMaskedValue,\n originalValue: rawValue,\n },\n };\n if (onChange && nextMaskedValue !== maskedValue) onChange(event);\n\n setMaskedValue(nextMaskedValue);\n setRawValue(nextMaskedValue);\n\n if (shouldUpdateCursorPos) setCursorPosition({ current: maskedPos });\n },\n [maskedValue, onChange],\n );\n\n const handleOnChange = useCallback(\n (e) => {\n const { value: rawValue, selectionEnd } = e.target;\n setRawMask(rawValue);\n setRawValue(rawValue);\n setCursorPosition({ current: selectionEnd });\n setFocus(true);\n },\n [setRawMask, setRawValue, setCursorPosition, setFocus, lastkey.code],\n );\n\n useLayoutEffect(() => {\n if (focus) setCaretPosition(inputRef.current, cursorPosition.current);\n }, [focus, cursorPosition]);\n\n useLayoutEffect(() => {\n // if the value changes, then re-conform the mask\n conform({\n rawValue: value,\n cursorPos: cursorPosition.current,\n lastkeycode: lastkey.code,\n shouldUpdateCursorPos: focus,\n });\n }, [focus, value, cursorPosition.current]);\n\n const handleKeyDown = useCallback(\n (e) => {\n e.stopPropagation();\n setLastkey({ key: e.key, code: e.keyCode });\n onKeyDown(e);\n },\n [onKeyDown],\n );\n\n const handleBlur = useCallback(\n (e) => {\n setFocus(false);\n onBlur(e);\n },\n [onBlur],\n );\n\n return (\n <DSTextBox\n {...rest}\n className={className}\n clearable={clearable}\n disabled={disabled}\n fluidWidth={fluidWidth}\n hasError={hasError}\n innerRef={(ref) => {\n inputRef.current = ref;\n if (innerRef) innerRef(ref);\n }}\n isActive={focus}\n leftComponent={leftComponent}\n maxLength={maxLength}\n minLength={minLength}\n name={name}\n onBlur={handleBlur}\n onChange={handleOnChange}\n onClick={onClick}\n onFocus={onFocus}\n onKeyDown={handleKeyDown}\n onKeyUp={onKeyUp}\n onPaste={onPaste}\n placeholder={placeholder}\n readOnly={readOnly}\n rightComponent={rightComponent}\n style={style}\n type={type}\n value={maskedValue}\n />\n );\n};\n\nDictionaryInputMask.propTypes = {\n focus: PropTypes.bool,\n setFocus: PropTypes.func,\n setRawMask: PropTypes.func,\n cursorPosition: PropTypes.shape({ current: PropTypes.number }),\n setCursorPosition: PropTypes.func,\n lastkey: PropTypes.shape({ code: PropTypes.number, key: PropTypes.string }),\n setLastkey: PropTypes.func,\n setRawValue: PropTypes.func,\n allowedWords: PropTypes.arrayOf(PropTypes.string),\n ignoreCase: PropTypes.bool,\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 innerRef: PropTypes.any,\n mask: PropTypes.any,\n placeholderChar: PropTypes.string,\n};\n\nexport { DictionaryInputMask };\nexport default DictionaryInputMask;\n"],
|
|
5
|
+
"mappings": "AAAA;ACIA;AACA;AACA;AACA;AAEA,MAAM,aAAa,CAAC,GAAW,GAAW,eAAiC;AACzE,MAAI,YAAY;AACd,QAAI,EAAE;AACN,QAAI,EAAE;AAAA;AAER,SAAO,EAAE,WAAW;AAAA;AAGtB,MAAM,eAAe,CACnB,UACA,WACA,aACA,cACA,eACG;AACH,MAAI,kBAAkB;AACtB,MAAI,sBAAsB;AAC1B,WAAS,IAAI,GAAG,IAAI,SAAS,QAAQ,KAAK,GAAG;AAC3C,UAAM,gBAAgB,oBAAoB,OAAO,CAAC,SAChD,WAAW,MAAM,kBAAkB,SAAS,IAAI;AAElD,QAAI,cAAc,QAAQ;AACxB,yBAAmB,SAAS;AAC5B,4BAAsB;AAAA;AAAA;AAI1B,SAAO,EAAE,iBAAiB,WAAW;AAAA;AAGvC,MAAM,sBAAsB,CAAC;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA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AU;AAAA,EACnB,SAAS,UAAU;AAAA,EACnB,UAAU,UAAU;AAAA,EACpB,UAAU,UAAU;AAAA,EACpB,SAAS,UAAU;AAAA,EACnB,WAAW,UAAU;AAAA,EACrB,MAAM,UAAU;AAAA,EAChB,UAAU,UAAU;AAAA,EACpB,MAAM,UAAU;AAAA,EAChB,iBAAiB,UAAU;AAAA;AAI7B,IAAO,8BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,63 +1,41 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import 'core-js/modules/esnext.iterator.filter.js';
|
|
7
|
-
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
8
|
-
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
9
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
10
|
-
import { useRef, useState, useCallback, useLayoutEffect } from 'react';
|
|
11
|
-
import DSTextBox from '../../TextBox/DSTextBox.js';
|
|
12
|
-
import setCaretPosition from '../utils/setCaretPosition.js';
|
|
13
|
-
import { jsx } from 'react/jsx-runtime';
|
|
14
|
-
|
|
15
|
-
const _excluded = ["focus", "setFocus", "setRawMask", "cursorPosition", "setCursorPosition", "lastkey", "setLastkey", "setRawValue", "allowDecimal", "allowLeadingZeroes", "allowNegative", "autoFocus", "className", "clearable", "decimalLimit", "decimalSymbol", "disabled", "fluidWidth", "hasError", "includeThousandsSeparator", "innerRef", "integerLimit", "leftComponent", "maxLength", "minLength", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "onPaste", "placeholder", "prefix", "readOnly", "requireDecimal", "rightComponent", "style", "suffix", "thousandsSeparatorSymbol", "type", "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
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2, { useCallback, useLayoutEffect, useRef, useState } from "react";
|
|
3
|
+
import { PropTypes } from "react-desc";
|
|
4
|
+
import { DSTextBox } from "../../TextBox";
|
|
5
|
+
import { setCaretPosition } from "../utils/setCaretPosition";
|
|
21
6
|
const addThousandsSeparator = (n, thousandsSeparatorSymbol) => n.replace(/\B(?=(\d{3})+(?!\d))/g, thousandsSeparatorSymbol);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
allowLeadingZeroes,
|
|
37
|
-
integerLimit,
|
|
38
|
-
shouldCompleteDecimals
|
|
39
|
-
} = _ref;
|
|
7
|
+
const conformValue = (prevRawValue, prevCursorPos, lastkeycode, {
|
|
8
|
+
prefix,
|
|
9
|
+
suffix,
|
|
10
|
+
includeThousandsSeparator,
|
|
11
|
+
thousandsSeparatorSymbol,
|
|
12
|
+
allowDecimal,
|
|
13
|
+
decimalSymbol,
|
|
14
|
+
decimalLimit,
|
|
15
|
+
requireDecimal,
|
|
16
|
+
allowNegative,
|
|
17
|
+
allowLeadingZeroes,
|
|
18
|
+
integerLimit,
|
|
19
|
+
shouldCompleteDecimals
|
|
20
|
+
}) => {
|
|
40
21
|
const prefixIndex = prevRawValue.indexOf(prefix);
|
|
41
22
|
const suffixIndex = prevRawValue.lastIndexOf(suffix);
|
|
42
|
-
const negativeIndex = prevRawValue.indexOf(
|
|
23
|
+
const negativeIndex = prevRawValue.indexOf("-");
|
|
43
24
|
const cursorPos = prevCursorPos - (prefixIndex === -1 ? 0 : prefixIndex + prefix.length);
|
|
44
25
|
const rawValue = prevRawValue.substring(prefixIndex === -1 ? 0 : prefixIndex + prefix.length, suffixIndex === -1 ? prevRawValue.length : suffixIndex);
|
|
45
|
-
const filteredRawValue = rawValue.split(
|
|
26
|
+
const filteredRawValue = rawValue.split("").filter((char) => char >= "0" && char <= "9" || char === decimalSymbol || char === "-");
|
|
46
27
|
let isNegative = allowNegative && negativeIndex !== -1 && (prefixIndex === -1 || negativeIndex < prefixIndex);
|
|
47
|
-
let integer =
|
|
48
|
-
let decimal =
|
|
28
|
+
let integer = "";
|
|
29
|
+
let decimal = "";
|
|
49
30
|
let foundDecimalSymbol = false;
|
|
50
|
-
|
|
51
31
|
const integerFits = () => integerLimit === null || integer.length < integerLimit;
|
|
52
|
-
|
|
53
32
|
const decimalFits = () => decimalLimit === null || decimal.length < decimalLimit;
|
|
54
|
-
|
|
55
|
-
filteredRawValue.forEach(char => {
|
|
33
|
+
filteredRawValue.forEach((char) => {
|
|
56
34
|
if (allowDecimal && !foundDecimalSymbol && char === decimalSymbol) {
|
|
57
35
|
foundDecimalSymbol = true;
|
|
58
|
-
} else if (allowNegative && !integer.length && !foundDecimalSymbol && char ===
|
|
36
|
+
} else if (allowNegative && !integer.length && !foundDecimalSymbol && char === "-") {
|
|
59
37
|
isNegative = true;
|
|
60
|
-
} else if (char >=
|
|
38
|
+
} else if (char >= "0" && char <= "9") {
|
|
61
39
|
if (!foundDecimalSymbol && integerFits()) {
|
|
62
40
|
integer += char;
|
|
63
41
|
} else if (foundDecimalSymbol && decimalFits()) {
|
|
@@ -65,45 +43,43 @@ const conformValue = (prevRawValue, prevCursorPos, lastkeycode, _ref) => {
|
|
|
65
43
|
}
|
|
66
44
|
}
|
|
67
45
|
});
|
|
68
|
-
if (requireDecimal)
|
|
69
|
-
|
|
70
|
-
if (!requireDecimal && !
|
|
46
|
+
if (requireDecimal)
|
|
47
|
+
foundDecimalSymbol = true;
|
|
48
|
+
if (!requireDecimal && !decimal?.length && lastkeycode === 8) {
|
|
71
49
|
foundDecimalSymbol = false;
|
|
72
50
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
51
|
+
if (!integer && !decimal)
|
|
52
|
+
foundDecimalSymbol = false;
|
|
76
53
|
if (foundDecimalSymbol && !integer && decimal) {
|
|
77
|
-
integer =
|
|
54
|
+
integer = "0";
|
|
78
55
|
}
|
|
79
|
-
|
|
80
56
|
if (!allowLeadingZeroes) {
|
|
81
|
-
while (integer.length > 1 && integer[0] ===
|
|
57
|
+
while (integer.length > 1 && integer[0] === "0")
|
|
58
|
+
integer = integer.substring(1);
|
|
82
59
|
}
|
|
83
|
-
|
|
84
60
|
let nextMaskedValue = includeThousandsSeparator ? addThousandsSeparator(integer, thousandsSeparatorSymbol) : integer;
|
|
85
|
-
nextMaskedValue += foundDecimalSymbol ? decimalSymbol :
|
|
86
|
-
if (shouldCompleteDecimals)
|
|
61
|
+
nextMaskedValue += foundDecimalSymbol ? decimalSymbol : "";
|
|
62
|
+
if (shouldCompleteDecimals)
|
|
63
|
+
while (decimal.length !== decimalLimit)
|
|
64
|
+
decimal += "0";
|
|
87
65
|
nextMaskedValue += decimal;
|
|
88
66
|
let maskedPos = 0;
|
|
89
|
-
|
|
90
67
|
for (let i = 0; i < cursorPos; i += 1) {
|
|
91
|
-
if (nextMaskedValue[maskedPos] === thousandsSeparatorSymbol)
|
|
92
|
-
|
|
68
|
+
if (nextMaskedValue[maskedPos] === thousandsSeparatorSymbol)
|
|
69
|
+
maskedPos += 1;
|
|
70
|
+
if (nextMaskedValue[maskedPos] === rawValue[i])
|
|
71
|
+
maskedPos += 1;
|
|
93
72
|
}
|
|
94
|
-
|
|
95
73
|
if (nextMaskedValue.length || isNegative) {
|
|
96
74
|
nextMaskedValue = prefix + nextMaskedValue;
|
|
97
75
|
maskedPos += prefix.length;
|
|
98
|
-
|
|
99
76
|
if (isNegative) {
|
|
100
|
-
if (lastkeycode !== 8 || nextMaskedValue !== prefix)
|
|
77
|
+
if (lastkeycode !== 8 || nextMaskedValue !== prefix)
|
|
78
|
+
nextMaskedValue = `-${nextMaskedValue}`;
|
|
101
79
|
maskedPos += 1;
|
|
102
80
|
}
|
|
103
|
-
|
|
104
81
|
nextMaskedValue += suffix;
|
|
105
82
|
}
|
|
106
|
-
|
|
107
83
|
if (lastkeycode !== 8 && maskedPos < nextMaskedValue.length) {
|
|
108
84
|
if (nextMaskedValue[maskedPos] === decimalSymbol && integer.length === integerLimit) {
|
|
109
85
|
maskedPos += 1;
|
|
@@ -111,75 +87,67 @@ const conformValue = (prevRawValue, prevCursorPos, lastkeycode, _ref) => {
|
|
|
111
87
|
maskedPos += 1;
|
|
112
88
|
}
|
|
113
89
|
}
|
|
114
|
-
|
|
115
90
|
return {
|
|
116
91
|
nextMaskedValue,
|
|
117
92
|
maskedPos: Math.min(maskedPos, nextMaskedValue.length - suffix.length)
|
|
118
93
|
};
|
|
119
94
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
} = _ref2,
|
|
167
|
-
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
168
|
-
|
|
95
|
+
const NumberInputMask = ({
|
|
96
|
+
focus,
|
|
97
|
+
setFocus,
|
|
98
|
+
setRawMask,
|
|
99
|
+
cursorPosition,
|
|
100
|
+
setCursorPosition,
|
|
101
|
+
lastkey,
|
|
102
|
+
setLastkey,
|
|
103
|
+
setRawValue,
|
|
104
|
+
allowDecimal,
|
|
105
|
+
allowLeadingZeroes,
|
|
106
|
+
allowNegative,
|
|
107
|
+
autoFocus,
|
|
108
|
+
className,
|
|
109
|
+
clearable = false,
|
|
110
|
+
decimalLimit,
|
|
111
|
+
decimalSymbol,
|
|
112
|
+
disabled,
|
|
113
|
+
fluidWidth,
|
|
114
|
+
hasError,
|
|
115
|
+
includeThousandsSeparator,
|
|
116
|
+
innerRef,
|
|
117
|
+
integerLimit,
|
|
118
|
+
leftComponent,
|
|
119
|
+
maxLength,
|
|
120
|
+
minLength,
|
|
121
|
+
name,
|
|
122
|
+
onBlur,
|
|
123
|
+
onChange,
|
|
124
|
+
onClick,
|
|
125
|
+
onFocus,
|
|
126
|
+
onKeyDown,
|
|
127
|
+
onKeyUp,
|
|
128
|
+
onPaste,
|
|
129
|
+
placeholder,
|
|
130
|
+
prefix,
|
|
131
|
+
readOnly,
|
|
132
|
+
requireDecimal,
|
|
133
|
+
rightComponent,
|
|
134
|
+
style,
|
|
135
|
+
suffix,
|
|
136
|
+
thousandsSeparatorSymbol,
|
|
137
|
+
type,
|
|
138
|
+
value,
|
|
139
|
+
...rest
|
|
140
|
+
}) => {
|
|
169
141
|
const inputRef = useRef();
|
|
170
142
|
const [maskedValue, setMaskedValue] = useState(value);
|
|
171
|
-
const conform = useCallback(
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
} =
|
|
179
|
-
const {
|
|
180
|
-
nextMaskedValue,
|
|
181
|
-
maskedPos
|
|
182
|
-
} = conformValue(rawValue, cursorPos, lastkeycode, {
|
|
143
|
+
const conform = useCallback(({
|
|
144
|
+
rawValue,
|
|
145
|
+
cursorPos,
|
|
146
|
+
lastkeycode,
|
|
147
|
+
shouldUpdateCursorPos = true,
|
|
148
|
+
shouldCompleteDecimals = false
|
|
149
|
+
}) => {
|
|
150
|
+
const { nextMaskedValue, maskedPos } = conformValue(rawValue, cursorPos, lastkeycode, {
|
|
183
151
|
prefix,
|
|
184
152
|
suffix,
|
|
185
153
|
includeThousandsSeparator,
|
|
@@ -199,30 +167,25 @@ const NumberInputMask = _ref2 => {
|
|
|
199
167
|
originalValue: rawValue
|
|
200
168
|
}
|
|
201
169
|
};
|
|
202
|
-
if (onChange && nextMaskedValue !== maskedValue)
|
|
170
|
+
if (onChange && nextMaskedValue !== maskedValue)
|
|
171
|
+
onChange(event);
|
|
203
172
|
setMaskedValue(nextMaskedValue);
|
|
204
173
|
setRawValue(nextMaskedValue);
|
|
205
|
-
if (shouldUpdateCursorPos)
|
|
206
|
-
current: maskedPos
|
|
207
|
-
});
|
|
174
|
+
if (shouldUpdateCursorPos)
|
|
175
|
+
setCursorPosition({ current: maskedPos });
|
|
208
176
|
}, [maskedValue, onChange]);
|
|
209
|
-
const handleOnChange = useCallback(e => {
|
|
210
|
-
const {
|
|
211
|
-
value: rawValue,
|
|
212
|
-
selectionEnd
|
|
213
|
-
} = e.target;
|
|
177
|
+
const handleOnChange = useCallback((e) => {
|
|
178
|
+
const { value: rawValue, selectionEnd } = e.target;
|
|
214
179
|
setRawMask(rawValue);
|
|
215
180
|
setRawValue(rawValue);
|
|
216
|
-
setCursorPosition({
|
|
217
|
-
current: selectionEnd
|
|
218
|
-
});
|
|
181
|
+
setCursorPosition({ current: selectionEnd });
|
|
219
182
|
setFocus(true);
|
|
220
183
|
}, [setRawMask, setRawValue, setCursorPosition, setFocus, lastkey.code]);
|
|
221
184
|
useLayoutEffect(() => {
|
|
222
|
-
if (focus)
|
|
185
|
+
if (focus)
|
|
186
|
+
setCaretPosition(inputRef.current, cursorPosition.current);
|
|
223
187
|
}, [focus, cursorPosition]);
|
|
224
188
|
useLayoutEffect(() => {
|
|
225
|
-
// if the value changes, then re-conform the mask
|
|
226
189
|
conform({
|
|
227
190
|
rawValue: value,
|
|
228
191
|
cursorPos: cursorPosition.current,
|
|
@@ -230,19 +193,15 @@ const NumberInputMask = _ref2 => {
|
|
|
230
193
|
shouldUpdateCursorPos: focus
|
|
231
194
|
});
|
|
232
195
|
}, [focus, value, cursorPosition.current]);
|
|
233
|
-
const handleKeyDown = useCallback(e => {
|
|
196
|
+
const handleKeyDown = useCallback((e) => {
|
|
234
197
|
e.stopPropagation();
|
|
235
|
-
setLastkey({
|
|
236
|
-
key: e.key,
|
|
237
|
-
code: e.keyCode
|
|
238
|
-
});
|
|
198
|
+
setLastkey({ key: e.key, code: e.keyCode });
|
|
239
199
|
onKeyDown(e);
|
|
240
200
|
}, [onKeyDown]);
|
|
241
|
-
const handleBlur = useCallback(e => {
|
|
201
|
+
const handleBlur = useCallback((e) => {
|
|
242
202
|
setFocus(false);
|
|
243
203
|
onBlur(e);
|
|
244
|
-
|
|
245
|
-
if (requireDecimal && maskedValue !== '') {
|
|
204
|
+
if (requireDecimal && maskedValue !== "") {
|
|
246
205
|
conform({
|
|
247
206
|
rawValue: maskedValue,
|
|
248
207
|
cursorPos: 0,
|
|
@@ -252,35 +211,88 @@ const NumberInputMask = _ref2 => {
|
|
|
252
211
|
});
|
|
253
212
|
}
|
|
254
213
|
}, [maskedValue, requireDecimal, suffix, decimalLimit, onBlur]);
|
|
255
|
-
return
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
214
|
+
return /* @__PURE__ */ React2.createElement(DSTextBox, {
|
|
215
|
+
...rest,
|
|
216
|
+
className,
|
|
217
|
+
clearable,
|
|
218
|
+
disabled,
|
|
219
|
+
fluidWidth,
|
|
220
|
+
hasError,
|
|
221
|
+
innerRef: (ref) => {
|
|
262
222
|
inputRef.current = ref;
|
|
263
|
-
if (innerRef)
|
|
223
|
+
if (innerRef)
|
|
224
|
+
innerRef(ref);
|
|
264
225
|
},
|
|
265
226
|
isActive: focus,
|
|
266
|
-
leftComponent
|
|
267
|
-
maxLength
|
|
268
|
-
minLength
|
|
269
|
-
name
|
|
227
|
+
leftComponent,
|
|
228
|
+
maxLength,
|
|
229
|
+
minLength,
|
|
230
|
+
name,
|
|
270
231
|
onBlur: handleBlur,
|
|
271
232
|
onChange: handleOnChange,
|
|
272
|
-
onClick
|
|
273
|
-
onFocus
|
|
233
|
+
onClick,
|
|
234
|
+
onFocus,
|
|
274
235
|
onKeyDown: handleKeyDown,
|
|
275
|
-
onKeyUp
|
|
276
|
-
onPaste
|
|
277
|
-
placeholder
|
|
278
|
-
readOnly
|
|
279
|
-
rightComponent
|
|
280
|
-
style
|
|
281
|
-
type
|
|
236
|
+
onKeyUp,
|
|
237
|
+
onPaste,
|
|
238
|
+
placeholder,
|
|
239
|
+
readOnly,
|
|
240
|
+
rightComponent,
|
|
241
|
+
style,
|
|
242
|
+
type,
|
|
282
243
|
value: maskedValue
|
|
283
|
-
})
|
|
244
|
+
});
|
|
245
|
+
};
|
|
246
|
+
NumberInputMask.propTypes = {
|
|
247
|
+
focus: PropTypes.bool,
|
|
248
|
+
setFocus: PropTypes.func,
|
|
249
|
+
setRawMask: PropTypes.func,
|
|
250
|
+
cursorPosition: PropTypes.shape({ current: PropTypes.number }),
|
|
251
|
+
setCursorPosition: PropTypes.func,
|
|
252
|
+
lastkey: PropTypes.shape({ code: PropTypes.number, key: PropTypes.string }),
|
|
253
|
+
setLastkey: PropTypes.func,
|
|
254
|
+
setRawValue: PropTypes.func,
|
|
255
|
+
allowDecimal: PropTypes.bool,
|
|
256
|
+
allowLeadingZeroes: PropTypes.bool,
|
|
257
|
+
allowNegative: PropTypes.bool,
|
|
258
|
+
autoFocus: PropTypes.bool,
|
|
259
|
+
className: PropTypes.string,
|
|
260
|
+
clearable: PropTypes.bool,
|
|
261
|
+
decimalLimit: PropTypes.number,
|
|
262
|
+
decimalSymbol: PropTypes.string,
|
|
263
|
+
disabled: PropTypes.bool,
|
|
264
|
+
fluidWidth: PropTypes.bool,
|
|
265
|
+
hasError: PropTypes.bool,
|
|
266
|
+
includeThousandsSeparator: PropTypes.bool,
|
|
267
|
+
innerRef: PropTypes.any,
|
|
268
|
+
integerLimit: PropTypes.number,
|
|
269
|
+
leftComponent: PropTypes.element,
|
|
270
|
+
mask: PropTypes.any,
|
|
271
|
+
maxLength: PropTypes.number,
|
|
272
|
+
minLength: PropTypes.number,
|
|
273
|
+
name: PropTypes.string,
|
|
274
|
+
onBlur: PropTypes.func,
|
|
275
|
+
onChange: PropTypes.func,
|
|
276
|
+
onClick: PropTypes.func,
|
|
277
|
+
onFocus: PropTypes.func,
|
|
278
|
+
onKeyDown: PropTypes.func,
|
|
279
|
+
onKeyUp: PropTypes.func,
|
|
280
|
+
onPaste: PropTypes.func,
|
|
281
|
+
placeholder: PropTypes.string,
|
|
282
|
+
placeholderChar: PropTypes.string,
|
|
283
|
+
prefix: PropTypes.string,
|
|
284
|
+
readOnly: PropTypes.bool,
|
|
285
|
+
requireDecimal: PropTypes.bool,
|
|
286
|
+
rightComponent: PropTypes.element,
|
|
287
|
+
style: PropTypes.object,
|
|
288
|
+
suffix: PropTypes.string,
|
|
289
|
+
thousandsSeparatorSymbol: PropTypes.string,
|
|
290
|
+
type: PropTypes.string,
|
|
291
|
+
value: PropTypes.string
|
|
292
|
+
};
|
|
293
|
+
var NumberInputMask_default = NumberInputMask;
|
|
294
|
+
export {
|
|
295
|
+
NumberInputMask,
|
|
296
|
+
NumberInputMask_default as default
|
|
284
297
|
};
|
|
285
|
-
|
|
286
|
-
export { NumberInputMask as default };
|
|
298
|
+
//# sourceMappingURL=NumberInputMask.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/InputMask/mask_types/NumberInputMask.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-params */\n/* eslint-disable max-statements */\n/* eslint-disable max-lines */\n/* eslint-disable complexity */\n\nimport React, { useCallback, useLayoutEffect, useRef, useState } from 'react';\nimport { PropTypes } from 'react-desc';\nimport { DSTextBox } from '../../TextBox';\nimport { setCaretPosition } from '../utils/setCaretPosition';\n\n// http://stackoverflow.com/a/10899795/604296\nconst addThousandsSeparator = (n, thousandsSeparatorSymbol) =>\n n.replace(/\\B(?=(\\d{3})+(?!\\d))/g, thousandsSeparatorSymbol);\n\nconst conformValue = (\n prevRawValue,\n prevCursorPos,\n lastkeycode,\n {\n prefix,\n suffix,\n includeThousandsSeparator,\n thousandsSeparatorSymbol,\n allowDecimal,\n decimalSymbol,\n decimalLimit,\n requireDecimal,\n allowNegative,\n allowLeadingZeroes,\n integerLimit,\n shouldCompleteDecimals,\n },\n) => {\n const prefixIndex = prevRawValue.indexOf(prefix);\n const suffixIndex = prevRawValue.lastIndexOf(suffix);\n const negativeIndex = prevRawValue.indexOf('-');\n\n const cursorPos =\n prevCursorPos - (prefixIndex === -1 ? 0 : prefixIndex + prefix.length);\n\n const rawValue = prevRawValue.substring(\n prefixIndex === -1 ? 0 : prefixIndex + prefix.length,\n suffixIndex === -1 ? prevRawValue.length : suffixIndex,\n );\n\n const filteredRawValue = rawValue\n .split('')\n .filter(\n (char) =>\n (char >= '0' && char <= '9') || char === decimalSymbol || char === '-',\n );\n\n let isNegative =\n allowNegative &&\n negativeIndex !== -1 &&\n (prefixIndex === -1 || negativeIndex < prefixIndex);\n\n let integer = '';\n let decimal = '';\n let foundDecimalSymbol = false;\n\n const integerFits = () =>\n integerLimit === null || integer.length < integerLimit;\n const decimalFits = () =>\n decimalLimit === null || decimal.length < decimalLimit;\n\n filteredRawValue.forEach((char) => {\n if (allowDecimal && !foundDecimalSymbol && char === decimalSymbol) {\n foundDecimalSymbol = true;\n } else if (\n allowNegative &&\n !integer.length &&\n !foundDecimalSymbol &&\n char === '-'\n ) {\n isNegative = true;\n } else if (char >= '0' && char <= '9') {\n if (!foundDecimalSymbol && integerFits()) {\n integer += char;\n } else if (foundDecimalSymbol && decimalFits()) {\n decimal += char;\n }\n }\n });\n\n if (requireDecimal) foundDecimalSymbol = true;\n if (!requireDecimal && !decimal?.length && lastkeycode === 8) {\n foundDecimalSymbol = false;\n }\n if (!integer && !decimal) foundDecimalSymbol = false;\n\n if (foundDecimalSymbol && !integer && decimal) {\n integer = '0';\n }\n\n if (!allowLeadingZeroes) {\n while (integer.length > 1 && integer[0] === '0')\n integer = integer.substring(1);\n }\n\n let nextMaskedValue = includeThousandsSeparator\n ? addThousandsSeparator(integer, thousandsSeparatorSymbol)\n : integer;\n nextMaskedValue += foundDecimalSymbol ? decimalSymbol : '';\n\n if (shouldCompleteDecimals)\n while (decimal.length !== decimalLimit) decimal += '0';\n\n nextMaskedValue += decimal;\n\n let maskedPos = 0;\n for (let i = 0; i < cursorPos; i += 1) {\n if (nextMaskedValue[maskedPos] === thousandsSeparatorSymbol) maskedPos += 1;\n if (nextMaskedValue[maskedPos] === rawValue[i]) maskedPos += 1;\n }\n if (nextMaskedValue.length || isNegative) {\n nextMaskedValue = prefix + nextMaskedValue;\n maskedPos += prefix.length;\n\n if (isNegative) {\n if (lastkeycode !== 8 || nextMaskedValue !== prefix)\n nextMaskedValue = `-${nextMaskedValue}`;\n maskedPos += 1;\n }\n\n nextMaskedValue += suffix;\n }\n\n if (lastkeycode !== 8 && maskedPos < nextMaskedValue.length) {\n if (\n nextMaskedValue[maskedPos] === decimalSymbol &&\n integer.length === integerLimit\n ) {\n maskedPos += 1;\n } else if (nextMaskedValue[maskedPos] === thousandsSeparatorSymbol) {\n maskedPos += 1;\n }\n }\n\n return {\n nextMaskedValue,\n maskedPos: Math.min(maskedPos, nextMaskedValue.length - suffix.length),\n };\n};\n\nconst NumberInputMask = ({\n focus,\n setFocus,\n setRawMask,\n cursorPosition,\n setCursorPosition,\n lastkey,\n setLastkey,\n setRawValue,\n allowDecimal,\n allowLeadingZeroes,\n allowNegative,\n autoFocus,\n className,\n clearable = false,\n decimalLimit,\n decimalSymbol,\n disabled,\n fluidWidth,\n hasError,\n includeThousandsSeparator,\n innerRef,\n integerLimit,\n leftComponent,\n maxLength,\n minLength,\n name,\n onBlur,\n onChange,\n onClick,\n onFocus,\n onKeyDown,\n onKeyUp,\n onPaste,\n placeholder,\n prefix,\n readOnly,\n requireDecimal,\n rightComponent,\n style,\n suffix,\n thousandsSeparatorSymbol,\n type,\n value,\n ...rest\n}) => {\n const inputRef = useRef();\n const [maskedValue, setMaskedValue] = useState(value);\n\n const conform = useCallback(\n ({\n rawValue,\n cursorPos,\n lastkeycode,\n shouldUpdateCursorPos = true,\n shouldCompleteDecimals = false,\n }) => {\n const { nextMaskedValue, maskedPos } = conformValue(\n rawValue,\n cursorPos,\n lastkeycode,\n {\n prefix,\n suffix,\n includeThousandsSeparator,\n thousandsSeparatorSymbol,\n allowDecimal,\n decimalSymbol,\n decimalLimit,\n requireDecimal,\n allowNegative,\n allowLeadingZeroes,\n integerLimit,\n shouldCompleteDecimals,\n },\n );\n const event = {\n target: {\n value: nextMaskedValue,\n originalValue: rawValue,\n },\n };\n if (onChange && nextMaskedValue !== maskedValue) onChange(event);\n\n setMaskedValue(nextMaskedValue);\n setRawValue(nextMaskedValue);\n\n if (shouldUpdateCursorPos) setCursorPosition({ current: maskedPos });\n },\n [maskedValue, onChange],\n );\n\n const handleOnChange = useCallback(\n (e) => {\n const { value: rawValue, selectionEnd } = e.target;\n setRawMask(rawValue);\n setRawValue(rawValue);\n setCursorPosition({ current: selectionEnd });\n setFocus(true);\n },\n [setRawMask, setRawValue, setCursorPosition, setFocus, lastkey.code],\n );\n\n useLayoutEffect(() => {\n if (focus) setCaretPosition(inputRef.current, cursorPosition.current);\n }, [focus, cursorPosition]);\n\n useLayoutEffect(() => {\n // if the value changes, then re-conform the mask\n conform({\n rawValue: value,\n cursorPos: cursorPosition.current,\n lastkeycode: lastkey.code,\n shouldUpdateCursorPos: focus,\n });\n }, [focus, value, cursorPosition.current]);\n\n const handleKeyDown = useCallback(\n (e) => {\n e.stopPropagation();\n setLastkey({ key: e.key, code: e.keyCode });\n onKeyDown(e);\n },\n [onKeyDown],\n );\n\n const handleBlur = useCallback(\n (e) => {\n setFocus(false);\n onBlur(e);\n if (requireDecimal && maskedValue !== '') {\n conform({\n rawValue: maskedValue,\n cursorPos: 0,\n lastkey: 0,\n shouldUpdateCursorPos: 0,\n shouldCompleteDecimals: true,\n });\n }\n },\n [maskedValue, requireDecimal, suffix, decimalLimit, onBlur],\n );\n\n return (\n <DSTextBox\n {...rest}\n className={className}\n clearable={clearable}\n disabled={disabled}\n fluidWidth={fluidWidth}\n hasError={hasError}\n innerRef={(ref) => {\n inputRef.current = ref;\n if (innerRef) innerRef(ref);\n }}\n isActive={focus}\n leftComponent={leftComponent}\n maxLength={maxLength}\n minLength={minLength}\n name={name}\n onBlur={handleBlur}\n onChange={handleOnChange}\n onClick={onClick}\n onFocus={onFocus}\n onKeyDown={handleKeyDown}\n onKeyUp={onKeyUp}\n onPaste={onPaste}\n placeholder={placeholder}\n readOnly={readOnly}\n rightComponent={rightComponent}\n style={style}\n type={type}\n value={maskedValue}\n />\n );\n};\n\nNumberInputMask.propTypes = {\n focus: PropTypes.bool,\n setFocus: PropTypes.func,\n setRawMask: PropTypes.func,\n cursorPosition: PropTypes.shape({ current: PropTypes.number }),\n setCursorPosition: PropTypes.func,\n lastkey: PropTypes.shape({ code: PropTypes.number, key: PropTypes.string }),\n setLastkey: PropTypes.func,\n setRawValue: PropTypes.func,\n allowDecimal: PropTypes.bool,\n allowLeadingZeroes: PropTypes.bool,\n allowNegative: PropTypes.bool,\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n clearable: PropTypes.bool,\n decimalLimit: PropTypes.number,\n decimalSymbol: PropTypes.string,\n disabled: PropTypes.bool,\n fluidWidth: PropTypes.bool,\n hasError: PropTypes.bool,\n includeThousandsSeparator: PropTypes.bool,\n innerRef: PropTypes.any,\n integerLimit: PropTypes.number,\n leftComponent: PropTypes.element,\n mask: PropTypes.any,\n maxLength: PropTypes.number,\n minLength: PropTypes.number,\n name: PropTypes.string,\n onBlur: PropTypes.func,\n onChange: PropTypes.func,\n onClick: PropTypes.func,\n onFocus: PropTypes.func,\n onKeyDown: PropTypes.func,\n onKeyUp: PropTypes.func,\n onPaste: PropTypes.func,\n placeholder: PropTypes.string,\n placeholderChar: PropTypes.string,\n prefix: PropTypes.string,\n readOnly: PropTypes.bool,\n requireDecimal: PropTypes.bool,\n rightComponent: PropTypes.element,\n style: PropTypes.object,\n suffix: PropTypes.string,\n thousandsSeparatorSymbol: PropTypes.string,\n type: PropTypes.string,\n value: PropTypes.string,\n};\n\nexport { NumberInputMask };\nexport default NumberInputMask;\n"],
|
|
5
|
+
"mappings": "AAAA;ACKA;AACA;AACA;AACA;AAGA,MAAM,wBAAwB,CAAC,GAAG,6BAChC,EAAE,QAAQ,yBAAyB;AAErC,MAAM,eAAe,CACnB,cACA,eACA,aACA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,MAEC;AACH,QAAM,cAAc,aAAa,QAAQ;AACzC,QAAM,cAAc,aAAa,YAAY;AAC7C,QAAM,gBAAgB,aAAa,QAAQ;AAE3C,QAAM,YACJ,gBAAiB,iBAAgB,KAAK,IAAI,cAAc,OAAO;AAEjE,QAAM,WAAW,aAAa,UAC5B,gBAAgB,KAAK,IAAI,cAAc,OAAO,QAC9C,gBAA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