@elliemae/ds-form 3.0.0-alpha.0 → 3.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/CheckboxGroup/DSCheckboxGroup.js +29 -15
- package/dist/cjs/CheckboxGroup/DSCheckboxGroup.js.map +1 -1
- package/dist/cjs/ComboBoxFreeSolo/ComboBoxFreeSolo.js +65 -22
- package/dist/cjs/ComboBoxFreeSolo/ComboBoxFreeSolo.js.map +2 -2
- package/dist/cjs/ComboBoxFreeSolo/components/MultiValueRemove.js +19 -5
- package/dist/cjs/ComboBoxFreeSolo/components/MultiValueRemove.js.map +1 -1
- package/dist/cjs/ComboBoxFreeSolo/components/SingleValue.js +15 -3
- package/dist/cjs/ComboBoxFreeSolo/components/SingleValue.js.map +1 -1
- package/dist/cjs/ComboBoxFreeSolo/components/SingleValueRemove.js +20 -7
- package/dist/cjs/ComboBoxFreeSolo/components/SingleValueRemove.js.map +1 -1
- package/dist/cjs/DateInput/DSDateInput.js +46 -14
- package/dist/cjs/DateInput/DSDateInput.js.map +1 -1
- package/dist/cjs/DateInput/components/DateInputImpl.js +17 -4
- package/dist/cjs/DateInput/components/DateInputImpl.js.map +1 -1
- package/dist/cjs/DateInput/components/DateInputs.js +23 -9
- package/dist/cjs/DateInput/components/DateInputs.js.map +1 -1
- package/dist/cjs/DateInputV2/components/DateInputs.js +23 -9
- package/dist/cjs/DateInputV2/components/DateInputs.js.map +1 -1
- package/dist/cjs/ExpandableInput/ExpandableInputImpl.js +19 -3
- package/dist/cjs/ExpandableInput/ExpandableInputImpl.js.map +1 -1
- package/dist/cjs/FloatingLabelInput/FloatingLabelInputImpl.js +17 -4
- package/dist/cjs/FloatingLabelInput/FloatingLabelInputImpl.js.map +1 -1
- package/dist/cjs/FormItem/DSFormItemLayout.js +118 -56
- package/dist/cjs/FormItem/DSFormItemLayout.js.map +1 -1
- package/dist/cjs/FormItem/ValidationFieldWrapper.js +19 -3
- package/dist/cjs/FormItem/ValidationFieldWrapper.js.map +1 -1
- package/dist/cjs/InputGroup/AddonWrapper.js +17 -4
- package/dist/cjs/InputGroup/AddonWrapper.js.map +1 -1
- package/dist/cjs/InputMask/DSInputMask.js +51 -19
- package/dist/cjs/InputMask/DSInputMask.js.map +1 -1
- package/dist/cjs/InputMask/DSInputMaskDeprecated.js +62 -11
- package/dist/cjs/InputMask/DSInputMaskDeprecated.js.map +1 -1
- package/dist/cjs/InputMask/MaskTypes.js +17 -3
- package/dist/cjs/InputMask/MaskTypes.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/DateInputMask.js +97 -37
- package/dist/cjs/InputMask/mask_types/DateInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/DateTimeInputMask.js +97 -37
- package/dist/cjs/InputMask/mask_types/DateTimeInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/DictionaryInputMask.js +103 -40
- package/dist/cjs/InputMask/mask_types/DictionaryInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/NumberInputMask.js +121 -49
- package/dist/cjs/InputMask/mask_types/NumberInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/PhoneInputMask.js +97 -37
- package/dist/cjs/InputMask/mask_types/PhoneInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/PhoneInternationalInputMask.js +97 -37
- package/dist/cjs/InputMask/mask_types/PhoneInternationalInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/SsnInputMask.js +97 -37
- package/dist/cjs/InputMask/mask_types/SsnInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/UsZipCodeInputMask.js +97 -37
- package/dist/cjs/InputMask/mask_types/UsZipCodeInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js +97 -37
- package/dist/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/index.js +119 -79
- package/dist/cjs/InputMask/mask_types/index.js.map +1 -1
- package/dist/cjs/InputProtected/DSInputProtected.js +51 -14
- package/dist/cjs/InputProtected/DSInputProtected.js.map +1 -1
- package/dist/cjs/LargeInputText/DSLargeInputText.js +19 -3
- package/dist/cjs/LargeInputText/DSLargeInputText.js.map +1 -1
- package/dist/cjs/Radio/DSRadio.js +65 -23
- package/dist/cjs/Radio/DSRadio.js.map +1 -1
- package/dist/cjs/RadioGroup/DSRadioGroup.js +29 -15
- package/dist/cjs/RadioGroup/DSRadioGroup.js.map +1 -1
- package/dist/cjs/TimeInput/DSTimeInput.js +40 -8
- package/dist/cjs/TimeInput/DSTimeInput.js.map +1 -1
- package/dist/cjs/TimeInput/TimeInputImpl.js +17 -4
- package/dist/cjs/TimeInput/TimeInputImpl.js.map +1 -1
- package/dist/cjs/TimeInput/TimeInputs.js +25 -12
- package/dist/cjs/TimeInput/TimeInputs.js.map +1 -1
- package/dist/cjs/Toggle/DSToggle.js +66 -25
- package/dist/cjs/Toggle/DSToggle.js.map +1 -1
- package/dist/cjs/Toggle/DSToggleImpl.js +22 -7
- package/dist/cjs/Toggle/DSToggleImpl.js.map +1 -1
- package/dist/cjs/Toggle/DSToggleRender.js +24 -10
- package/dist/cjs/Toggle/DSToggleRender.js.map +1 -1
- package/dist/esm/CheckboxGroup/DSCheckboxGroup.js +31 -15
- package/dist/esm/CheckboxGroup/DSCheckboxGroup.js.map +1 -1
- package/dist/esm/ComboBoxFreeSolo/ComboBoxFreeSolo.js +67 -22
- package/dist/esm/ComboBoxFreeSolo/ComboBoxFreeSolo.js.map +2 -2
- package/dist/esm/ComboBoxFreeSolo/components/MultiValueRemove.js +21 -5
- package/dist/esm/ComboBoxFreeSolo/components/MultiValueRemove.js.map +1 -1
- package/dist/esm/ComboBoxFreeSolo/components/SingleValue.js +17 -3
- package/dist/esm/ComboBoxFreeSolo/components/SingleValue.js.map +1 -1
- package/dist/esm/ComboBoxFreeSolo/components/SingleValueRemove.js +22 -7
- package/dist/esm/ComboBoxFreeSolo/components/SingleValueRemove.js.map +1 -1
- package/dist/esm/DateInput/DSDateInput.js +48 -14
- package/dist/esm/DateInput/DSDateInput.js.map +1 -1
- package/dist/esm/DateInput/components/DateInputImpl.js +19 -4
- package/dist/esm/DateInput/components/DateInputImpl.js.map +1 -1
- package/dist/esm/DateInput/components/DateInputs.js +25 -9
- package/dist/esm/DateInput/components/DateInputs.js.map +1 -1
- package/dist/esm/DateInputV2/components/DateInputs.js +25 -9
- package/dist/esm/DateInputV2/components/DateInputs.js.map +1 -1
- package/dist/esm/ExpandableInput/ExpandableInputImpl.js +21 -3
- package/dist/esm/ExpandableInput/ExpandableInputImpl.js.map +1 -1
- package/dist/esm/FloatingLabelInput/FloatingLabelInputImpl.js +19 -4
- package/dist/esm/FloatingLabelInput/FloatingLabelInputImpl.js.map +1 -1
- package/dist/esm/FormItem/DSFormItemLayout.js +120 -56
- package/dist/esm/FormItem/DSFormItemLayout.js.map +1 -1
- package/dist/esm/FormItem/ValidationFieldWrapper.js +21 -3
- package/dist/esm/FormItem/ValidationFieldWrapper.js.map +1 -1
- package/dist/esm/InputGroup/AddonWrapper.js +19 -4
- package/dist/esm/InputGroup/AddonWrapper.js.map +1 -1
- package/dist/esm/InputMask/DSInputMask.js +53 -19
- package/dist/esm/InputMask/DSInputMask.js.map +1 -1
- package/dist/esm/InputMask/DSInputMaskDeprecated.js +64 -11
- package/dist/esm/InputMask/DSInputMaskDeprecated.js.map +1 -1
- package/dist/esm/InputMask/MaskTypes.js +19 -3
- package/dist/esm/InputMask/MaskTypes.js.map +1 -1
- package/dist/esm/InputMask/mask_types/DateInputMask.js +99 -37
- package/dist/esm/InputMask/mask_types/DateInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/DateTimeInputMask.js +99 -37
- package/dist/esm/InputMask/mask_types/DateTimeInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/DictionaryInputMask.js +105 -40
- package/dist/esm/InputMask/mask_types/DictionaryInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/NumberInputMask.js +123 -49
- package/dist/esm/InputMask/mask_types/NumberInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/PhoneInputMask.js +99 -37
- package/dist/esm/InputMask/mask_types/PhoneInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/PhoneInternationalInputMask.js +99 -37
- package/dist/esm/InputMask/mask_types/PhoneInternationalInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/SsnInputMask.js +99 -37
- package/dist/esm/InputMask/mask_types/SsnInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/UsZipCodeInputMask.js +99 -37
- package/dist/esm/InputMask/mask_types/UsZipCodeInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/ZipCodeSearchInputMask.js +99 -37
- package/dist/esm/InputMask/mask_types/ZipCodeSearchInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/index.js +121 -79
- package/dist/esm/InputMask/mask_types/index.js.map +1 -1
- package/dist/esm/InputProtected/DSInputProtected.js +53 -14
- package/dist/esm/InputProtected/DSInputProtected.js.map +1 -1
- package/dist/esm/LargeInputText/DSLargeInputText.js +21 -3
- package/dist/esm/LargeInputText/DSLargeInputText.js.map +1 -1
- package/dist/esm/Radio/DSRadio.js +67 -23
- package/dist/esm/Radio/DSRadio.js.map +1 -1
- package/dist/esm/RadioGroup/DSRadioGroup.js +31 -15
- package/dist/esm/RadioGroup/DSRadioGroup.js.map +1 -1
- package/dist/esm/TimeInput/DSTimeInput.js +42 -8
- package/dist/esm/TimeInput/DSTimeInput.js.map +1 -1
- package/dist/esm/TimeInput/TimeInputImpl.js +19 -4
- package/dist/esm/TimeInput/TimeInputImpl.js.map +1 -1
- package/dist/esm/TimeInput/TimeInputs.js +27 -12
- package/dist/esm/TimeInput/TimeInputs.js.map +1 -1
- package/dist/esm/Toggle/DSToggle.js +68 -25
- package/dist/esm/Toggle/DSToggle.js.map +1 -1
- package/dist/esm/Toggle/DSToggleImpl.js +24 -7
- package/dist/esm/Toggle/DSToggleImpl.js.map +1 -1
- package/dist/esm/Toggle/DSToggleRender.js +26 -10
- package/dist/esm/Toggle/DSToggleRender.js.map +1 -1
- package/package.json +13 -12
- package/dist/types/Checkbox/DSCheckbox.d.ts +0 -0
- package/dist/types/Checkbox/defaultProps.d.ts +0 -0
- package/dist/types/Checkbox/elements/CheckMark.d.ts +0 -0
- package/dist/types/Checkbox/index.d.ts +0 -1
- package/dist/types/Checkbox/props.d.ts +0 -0
- package/dist/types/Checkbox/tests/DSCheckbox.events.test.d.ts +0 -0
- package/dist/types/CheckboxGroup/DSCheckboxGroup.d.ts +0 -72
- package/dist/types/CheckboxGroup/defaultProps.d.ts +0 -14
- package/dist/types/CheckboxGroup/index.d.ts +0 -1
- package/dist/types/CheckboxGroup/props.d.ts +0 -57
- package/dist/types/CheckboxGroup/tests/DSCheckboxGroup.events.test.d.ts +0 -1
- package/dist/types/ComboBox/DSComboBox.d.ts +0 -1
- package/dist/types/ComboBox/index.d.ts +0 -1
- package/dist/types/ComboBox/v1/DSComboBox.d.ts +0 -0
- package/dist/types/ComboBox/v1/components/AllOption.d.ts +0 -0
- package/dist/types/ComboBox/v1/components/ClearIndicator.d.ts +0 -0
- package/dist/types/ComboBox/v1/components/Control.d.ts +0 -0
- package/dist/types/ComboBox/v1/components/CustomOption.d.ts +0 -0
- package/dist/types/ComboBox/v1/components/CustomOptionMulti.d.ts +0 -0
- package/dist/types/ComboBox/v1/components/DropdownIndicator.d.ts +0 -0
- package/dist/types/ComboBox/v1/components/MenuList.d.ts +0 -0
- package/dist/types/ComboBox/v1/components/MultiSelectHeader.d.ts +0 -0
- package/dist/types/ComboBox/v1/components/MultiValueLabel.d.ts +0 -0
- package/dist/types/ComboBox/v1/components/MultiValueRemove.d.ts +0 -0
- package/dist/types/ComboBox/v1/components/SelectMenu.d.ts +0 -0
- package/dist/types/ComboBox/v1/components/SingleValueLabel.d.ts +0 -0
- package/dist/types/ComboBox/v1/components/ValueContainer.d.ts +0 -0
- package/dist/types/ComboBox/v1/components/calculateWidth.d.ts +0 -0
- package/dist/types/ComboBox/v1/components/getoptions.d.ts +0 -0
- package/dist/types/ComboBox/v1/index.d.ts +0 -1
- package/dist/types/ComboBox/v1/withSelectStringValueConverter.d.ts +0 -0
- package/dist/types/ComboBox/v2/Combobox.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/AllOption.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/ClearIndicator.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/Content.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/Control.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/CustomOption.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/CustomOptionMulti.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/DropdownIndicator.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/GroupHeading.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/IndicatorSeparator.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/LoadingIndicator.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/MenuList.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/MultiSelectHeader.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/MultiValueLabel.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/MultiValueRemove.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/SelectMenu.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/SingleValueLabel.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/ValueContainer.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/calculateWidth.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/getoptions.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/tests/ClearIndicator.test.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/useMenuListHeight.d.ts +0 -0
- package/dist/types/ComboBox/v2/components/utils.d.ts +0 -0
- package/dist/types/ComboBox/v2/context.d.ts +0 -0
- package/dist/types/ComboBox/v2/index.d.ts +0 -0
- package/dist/types/ComboBox/v2/mockOptions.d.ts +0 -0
- package/dist/types/ComboBox/v2/tests/Combobox.test.d.ts +0 -0
- package/dist/types/ComboBox/v2/withSelectStringValueConverter.d.ts +0 -0
- package/dist/types/ComboBox/v3/ComboBox.d.ts +0 -0
- package/dist/types/ComboBox/v3/ComboBoxCTX.d.ts +0 -0
- package/dist/types/ComboBox/v3/ComboboxDataTestids.d.ts +0 -0
- package/dist/types/ComboBox/v3/config/constants.d.ts +0 -0
- package/dist/types/ComboBox/v3/config/useComboBox.d.ts +0 -0
- package/dist/types/ComboBox/v3/config/useGetPropsWithDefault.d.ts +0 -0
- package/dist/types/ComboBox/v3/index.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/a11y-messages/MultiAllyMessages.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/a11y-messages/SingleAllyMessages.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/a11y-messages/index.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/a11y-messages/styled.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/container/Container.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/container/index.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/container/styled.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/controls/Controls.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/controls/index.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/controls/styled.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/controls-input/ControlsInput.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/controls-input/styled.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/controls-input/useControlsInput.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/dropdown-indicator/index.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/dropdown-indicator/styled.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/empty-state/index.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/empty-state/styled.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/header-list/HeaderList.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/header-list/index.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/header-list/styled.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/header-list/useHeaderListHandlers.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/menu-list/MenuList.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/menu-list/index.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/menu-list/styled.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/menu-list/useItemRenderer.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/menu-list/useMenuList.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/multi-selected-values-container/index.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/multi-selected-values-container/styled.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/single-selected-value-container/SingleSelectedValueContainer.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/single-selected-value-container/index.d.ts +0 -0
- package/dist/types/ComboBox/v3/parts/single-selected-value-container/styled.d.ts +0 -0
- package/dist/types/ComboBox/v3/propTypes.d.ts +0 -0
- package/dist/types/ComboBox/v3/tests/combobox-general.test.d.ts +0 -0
- package/dist/types/ComboBox/v3/tests/combobox-multi-select.test.d.ts +0 -0
- package/dist/types/ComboBox/v3/tests/combobox-single-select.test.d.ts +0 -0
- package/dist/types/ComboBox/v3/tests/combobox-special-keys.test.d.ts +0 -0
- package/dist/types/ComboBox/v3/tests/utils.d.ts +0 -0
- package/dist/types/ComboBox/v3/utils/hooks/useKeyboardNavigation.d.ts +0 -0
- package/dist/types/ComboBox/v3/utils/hooks/useOnElementResize.d.ts +0 -0
- package/dist/types/ComboBox/v3/utils/listHelper.d.ts +0 -0
- package/dist/types/ComboBoxFreeSolo/ComboBoxFreeSolo.d.ts +0 -78
- package/dist/types/ComboBoxFreeSolo/components/MultiValueLabel.d.ts +0 -6
- package/dist/types/ComboBoxFreeSolo/components/MultiValueRemove.d.ts +0 -6
- package/dist/types/ComboBoxFreeSolo/components/SingleValue.d.ts +0 -3
- package/dist/types/ComboBoxFreeSolo/components/SingleValueRemove.d.ts +0 -6
- package/dist/types/ComboBoxFreeSolo/index.d.ts +0 -1
- package/dist/types/DateInput/DSDateInput.d.ts +0 -143
- package/dist/types/DateInput/components/DateInputImpl.d.ts +0 -41
- package/dist/types/DateInput/components/DateInputs.d.ts +0 -41
- package/dist/types/DateInput/components/utils.d.ts +0 -40
- package/dist/types/DateInput/defaultProps.d.ts +0 -18
- package/dist/types/DateInput/index.d.ts +0 -1
- package/dist/types/DateInput/props.d.ts +0 -173
- package/dist/types/DateInput/tests/DSDateInput.events.test.d.ts +0 -1
- package/dist/types/DateInputV2/components/DSDateInput.d.ts +0 -97
- package/dist/types/DateInputV2/components/DateInputs.d.ts +0 -33
- package/dist/types/DateInputV2/components/helpers.d.ts +0 -1
- package/dist/types/DateInputV2/components/props.d.ts +0 -104
- package/dist/types/DateInputV2/components/propsTypes.d.ts +0 -21
- package/dist/types/DateInputV2/components/styled.d.ts +0 -5
- package/dist/types/DateInputV2/components/utils.d.ts +0 -42
- package/dist/types/DateInputV2/index.d.ts +0 -2
- package/dist/types/DateInputV2/tests/DateInput.test.d.ts +0 -1
- package/dist/types/ExpandableInput/DSExpandableInput.d.ts +0 -16
- package/dist/types/ExpandableInput/ExpandableInputImpl.d.ts +0 -7
- package/dist/types/ExpandableInput/index.d.ts +0 -1
- package/dist/types/FloatingLabelInput/DSFloatingLabelInput.d.ts +0 -44
- package/dist/types/FloatingLabelInput/FloatingLabelInputImpl.d.ts +0 -27
- package/dist/types/FloatingLabelInput/getSvgPath.d.ts +0 -10
- package/dist/types/FloatingLabelInput/index.d.ts +0 -1
- package/dist/types/FormItem/DSFormItemLayout.d.ts +0 -335
- package/dist/types/FormItem/Error/DSError.d.ts +0 -31
- package/dist/types/FormItem/Feedback.d.ts +0 -7
- package/dist/types/FormItem/Label/DSLabel.d.ts +0 -24
- package/dist/types/FormItem/Suffix/Suffix.d.ts +0 -4
- package/dist/types/FormItem/ValidationFieldWrapper.d.ts +0 -19
- package/dist/types/FormItem/defaultProps.d.ts +0 -52
- package/dist/types/FormItem/index.d.ts +0 -2
- package/dist/types/FormItem/props.d.ts +0 -270
- package/dist/types/FormItem/tests/DSFormItem.events.test.d.ts +0 -1
- package/dist/types/FormItem/variants.d.ts +0 -8
- package/dist/types/Input/DSInput.d.ts +0 -0
- package/dist/types/Input/InputAddonWrapper.d.ts +0 -0
- package/dist/types/Input/InputImpl.d.ts +0 -0
- package/dist/types/Input/index.d.ts +0 -1
- package/dist/types/Input/tests/Input.test.d.ts +0 -0
- package/dist/types/InputGroup/AddonWrapper.d.ts +0 -8
- package/dist/types/InputGroup/DSInputGroup.d.ts +0 -72
- package/dist/types/InputGroup/defaultProps.d.ts +0 -8
- package/dist/types/InputGroup/index.d.ts +0 -1
- package/dist/types/InputGroup/props.d.ts +0 -60
- package/dist/types/InputGroup/tests/DSInputGroup.events.test.d.ts +0 -1
- package/dist/types/InputMask/DSInputMask.d.ts +0 -218
- package/dist/types/InputMask/DSInputMaskDeprecated.d.ts +0 -18
- package/dist/types/InputMask/InputMaskContext.d.ts +0 -18
- package/dist/types/InputMask/MaskPipes.d.ts +0 -18
- package/dist/types/InputMask/MaskTypes.d.ts +0 -15
- package/dist/types/InputMask/addons/AutoCorrectedDatePipe.d.ts +0 -8
- package/dist/types/InputMask/defaultProps.d.ts +0 -28
- package/dist/types/InputMask/index.d.ts +0 -1
- package/dist/types/InputMask/mask_types/DateInputMask.d.ts +0 -75
- package/dist/types/InputMask/mask_types/DateTimeInputMask.d.ts +0 -75
- package/dist/types/InputMask/mask_types/DictionaryInputMask.d.ts +0 -81
- package/dist/types/InputMask/mask_types/NumberInputMask.d.ts +0 -99
- package/dist/types/InputMask/mask_types/PhoneInputMask.d.ts +0 -75
- package/dist/types/InputMask/mask_types/PhoneInternationalInputMask.d.ts +0 -75
- package/dist/types/InputMask/mask_types/SsnInputMask.d.ts +0 -75
- package/dist/types/InputMask/mask_types/UsZipCodeInputMask.d.ts +0 -75
- package/dist/types/InputMask/mask_types/ZipCodeSearchInputMask.d.ts +0 -75
- package/dist/types/InputMask/mask_types/index.d.ts +0 -42
- package/dist/types/InputMask/props.d.ts +0 -254
- package/dist/types/InputMask/tests/DSInputMask.test.d.ts +0 -1
- package/dist/types/InputMask/tests/NumberInputMask.test.d.ts +0 -1
- package/dist/types/InputMask/tests/events/DateInputMask.events.test.d.ts +0 -1
- package/dist/types/InputMask/tests/events/DateTimeInputMask.events.test.d.ts +0 -1
- package/dist/types/InputMask/tests/events/NumberInputMask.events.test.d.ts +0 -1
- package/dist/types/InputMask/tests/events/PercentInputMask.events.test.d.ts +0 -1
- package/dist/types/InputMask/tests/events/PhoneInputMask.events.test.d.ts +0 -1
- package/dist/types/InputMask/tests/events/PhoneInternationalInputMask.events.test.d.ts +0 -1
- package/dist/types/InputMask/tests/events/SsnInputMask.events.test.d.ts +0 -1
- package/dist/types/InputMask/tests/events/UsZipCodeInputMask.events.test.d.ts +0 -1
- package/dist/types/InputMask/tests/events/ZipCodeSearchInputMask.events.test.d.ts +0 -1
- package/dist/types/InputMask/types/index.d.ts +0 -5
- package/dist/types/InputMask/utils/setCaretPosition.d.ts +0 -3
- package/dist/types/InputProtected/DSInputProtected.d.ts +0 -70
- package/dist/types/InputProtected/defaultProps.d.ts +0 -4
- package/dist/types/InputProtected/index.d.ts +0 -2
- package/dist/types/InputProtected/options.d.ts +0 -8
- package/dist/types/InputProtected/props.d.ts +0 -49
- package/dist/types/InputProtected/tests/DSInputProtected.events.test.d.ts +0 -1
- package/dist/types/InputProtected/tests/DSInputProtected.test.d.ts +0 -1
- package/dist/types/LargeInputText/DSLargeInputText.d.ts +0 -233
- package/dist/types/LargeInputText/defaultProps.d.ts +0 -31
- package/dist/types/LargeInputText/index.d.ts +0 -1
- package/dist/types/LargeInputText/props.d.ts +0 -231
- package/dist/types/LargeInputText/tests/DSLargeInputText.events.test.d.ts +0 -1
- package/dist/types/LargeInputText/tests/DSLargeInputText.test.d.ts +0 -1
- package/dist/types/MenuItem/components/MenuItem/index.d.ts +0 -0
- package/dist/types/MenuItem/components/MenuItem/styled.d.ts +0 -0
- package/dist/types/MenuItem/components/MultiMenuItem/MultiMenuItem.d.ts +0 -0
- package/dist/types/MenuItem/components/MultiMenuItem/styled.d.ts +0 -0
- package/dist/types/MenuItem/components/Section/index.d.ts +0 -0
- package/dist/types/MenuItem/components/Section/props.d.ts +0 -0
- package/dist/types/MenuItem/components/Section/styled.d.ts +0 -0
- package/dist/types/MenuItem/components/Separator/index.d.ts +0 -0
- package/dist/types/MenuItem/components/Separator/styled.d.ts +0 -0
- package/dist/types/MenuItem/components/SingleMenuItem/SingleMenuItem.d.ts +0 -0
- package/dist/types/MenuItem/components/SubmenuItem/index.d.ts +0 -0
- package/dist/types/MenuItem/components/SubmenuItem/styled.d.ts +0 -0
- package/dist/types/MenuItem/components/index.d.ts +0 -0
- package/dist/types/MenuItem/components/styled.d.ts +0 -0
- package/dist/types/MenuItem/index.d.ts +0 -0
- package/dist/types/MenuItem/props.d.ts +0 -0
- package/dist/types/Radio/Circle.d.ts +0 -8
- package/dist/types/Radio/DSRadio.d.ts +0 -157
- package/dist/types/Radio/index.d.ts +0 -1
- package/dist/types/RadioGroup/DSRadioGroup.d.ts +0 -72
- package/dist/types/RadioGroup/defaultProps.d.ts +0 -12
- package/dist/types/RadioGroup/index.d.ts +0 -1
- package/dist/types/RadioGroup/props.d.ts +0 -56
- package/dist/types/RadioGroup/tests/DSRadioGroup.events.test.d.ts +0 -1
- package/dist/types/RequiredMark/RequiredMark.d.ts +0 -7
- package/dist/types/RequiredMark/index.d.ts +0 -1
- package/dist/types/SearchBox/DSSearchBox.d.ts +0 -0
- package/dist/types/SearchBox/NavSearchBox.d.ts +0 -0
- package/dist/types/SearchBox/SButton.d.ts +0 -0
- package/dist/types/SearchBox/SearchBoxToggle.d.ts +0 -0
- package/dist/types/SearchBox/defaultProps.d.ts +0 -0
- package/dist/types/SearchBox/index.d.ts +0 -1
- package/dist/types/SearchBox/props.d.ts +0 -0
- package/dist/types/SearchBox/styled.d.ts +0 -0
- package/dist/types/SearchBox/tests/DSNavSearchBox.events.test.d.ts +0 -0
- package/dist/types/SearchBox/tests/DSSearchBox.events.test.d.ts +0 -0
- package/dist/types/SearchBox/tests/DSSearchBox.test.d.ts +0 -0
- package/dist/types/SearchBox/useSearch.d.ts +0 -0
- package/dist/types/SearchBox/withSearchable.d.ts +0 -0
- package/dist/types/TextBox/DSTextBox.d.ts +0 -0
- package/dist/types/TextBox/index.d.ts +0 -1
- package/dist/types/TextBox/tests/DSTextBox.test.d.ts +0 -0
- package/dist/types/TimeInput/DSTimeInput.d.ts +0 -122
- package/dist/types/TimeInput/TimeInputImpl.d.ts +0 -56
- package/dist/types/TimeInput/TimeInputs.d.ts +0 -18
- package/dist/types/TimeInput/index.d.ts +0 -1
- package/dist/types/TimeInput/utils.d.ts +0 -39
- package/dist/types/Toggle/DSToggle.d.ts +0 -134
- package/dist/types/Toggle/DSToggleImpl.d.ts +0 -57
- package/dist/types/Toggle/DSToggleRender.d.ts +0 -33
- package/dist/types/Toggle/index.d.ts +0 -1
- package/dist/types/Toggle/props.d.ts +0 -47
- package/dist/types/Toggle/toggleHelper.d.ts +0 -24
- package/dist/types/index.d.ts +0 -21
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
import { TimeInputImpl } from './TimeInputImpl';
|
|
4
|
-
declare const DSTimeInput: {
|
|
5
|
-
({ containerProps, innerRef, className, style, onChange, format, value, clearable, disabled, ariaLabel, }: {
|
|
6
|
-
containerProps?: {} | undefined;
|
|
7
|
-
innerRef: any;
|
|
8
|
-
className?: string | undefined;
|
|
9
|
-
style?: {} | undefined;
|
|
10
|
-
onChange?: (() => null) | undefined;
|
|
11
|
-
format: any;
|
|
12
|
-
value?: string | undefined;
|
|
13
|
-
clearable?: boolean | undefined;
|
|
14
|
-
disabled?: boolean | undefined;
|
|
15
|
-
ariaLabel?: string | undefined;
|
|
16
|
-
}): JSX.Element;
|
|
17
|
-
defaultProps: {
|
|
18
|
-
format: string;
|
|
19
|
-
disabled: boolean;
|
|
20
|
-
clearable: boolean;
|
|
21
|
-
};
|
|
22
|
-
propTypes: {
|
|
23
|
-
/** Injected props to wrapper element of component */
|
|
24
|
-
containerProps: {
|
|
25
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
26
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
27
|
-
};
|
|
28
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Allows a function that is triggered once the time input changes
|
|
32
|
-
*/
|
|
33
|
-
onChange: {
|
|
34
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
35
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
36
|
-
};
|
|
37
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
38
|
-
};
|
|
39
|
-
/** a11y aria label */
|
|
40
|
-
'aria-label': {
|
|
41
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
42
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
43
|
-
};
|
|
44
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
45
|
-
};
|
|
46
|
-
/** style object for time input wrapper */
|
|
47
|
-
style: {
|
|
48
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
49
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
50
|
-
};
|
|
51
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
52
|
-
};
|
|
53
|
-
/** inner ref for time inpot wrapper */
|
|
54
|
-
innerRef: {
|
|
55
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
56
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
57
|
-
};
|
|
58
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
59
|
-
};
|
|
60
|
-
/** class for time input */
|
|
61
|
-
className: {
|
|
62
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
63
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
64
|
-
};
|
|
65
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* Valid time format
|
|
69
|
-
*/
|
|
70
|
-
format: {
|
|
71
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
72
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
73
|
-
};
|
|
74
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* Default value once the component is initialized
|
|
78
|
-
*/
|
|
79
|
-
value: {
|
|
80
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
81
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
82
|
-
};
|
|
83
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Whether the time input is clearable or not
|
|
87
|
-
*/
|
|
88
|
-
clearable: {
|
|
89
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
90
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
91
|
-
};
|
|
92
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* Whether the time input is disabled or not
|
|
96
|
-
*/
|
|
97
|
-
disabled: {
|
|
98
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
99
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
100
|
-
};
|
|
101
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Aria label
|
|
105
|
-
*/
|
|
106
|
-
ariaLabel: {
|
|
107
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
108
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
109
|
-
};
|
|
110
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
declare const DSTimeInputWithSchema: {
|
|
115
|
-
(props?: unknown): JSX.Element;
|
|
116
|
-
propTypes: unknown;
|
|
117
|
-
toTypescript: () => import("react-desc").TypescriptSchema; /**
|
|
118
|
-
* Default value once the component is initialized
|
|
119
|
-
*/
|
|
120
|
-
};
|
|
121
|
-
export { TimeInputImpl, DSTimeInputWithSchema, DSTimeInput };
|
|
122
|
-
export default DSTimeInput;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
declare const TimeInputImpl: {
|
|
4
|
-
({ format, innerRef, onChange, className, value, disabled, clearable, "arial-label": ariaLabel, }: {
|
|
5
|
-
format: any;
|
|
6
|
-
innerRef: any;
|
|
7
|
-
onChange: any;
|
|
8
|
-
className: any;
|
|
9
|
-
value: any;
|
|
10
|
-
disabled: any;
|
|
11
|
-
clearable: any;
|
|
12
|
-
"arial-label": any;
|
|
13
|
-
}): JSX.Element;
|
|
14
|
-
propTypes: {
|
|
15
|
-
containerProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
16
|
-
/**
|
|
17
|
-
* Inner reference to the input
|
|
18
|
-
*/
|
|
19
|
-
innerRef: PropTypes.Requireable<any>;
|
|
20
|
-
/**
|
|
21
|
-
* Classes to add to the container
|
|
22
|
-
*/
|
|
23
|
-
className: PropTypes.Requireable<string>;
|
|
24
|
-
/**
|
|
25
|
-
* Styles to add to the container
|
|
26
|
-
*/
|
|
27
|
-
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
28
|
-
/**
|
|
29
|
-
* Allows a function that is triggered once the time input changes
|
|
30
|
-
*/
|
|
31
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
|
-
/**
|
|
33
|
-
* Valid time format
|
|
34
|
-
*/
|
|
35
|
-
format: PropTypes.Requireable<string>;
|
|
36
|
-
/**
|
|
37
|
-
* Default value once the component is initialized
|
|
38
|
-
*/
|
|
39
|
-
value: PropTypes.Requireable<string>;
|
|
40
|
-
/**
|
|
41
|
-
* Whether the time input is clearable or not
|
|
42
|
-
*/
|
|
43
|
-
clearable: PropTypes.Requireable<boolean>;
|
|
44
|
-
/**
|
|
45
|
-
* Whether the time input is disabled or not
|
|
46
|
-
*/
|
|
47
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
48
|
-
/**
|
|
49
|
-
* Aria label to add to the container
|
|
50
|
-
*/
|
|
51
|
-
'aria-label': PropTypes.Requireable<boolean>;
|
|
52
|
-
'arial-label': PropTypes.Requireable<boolean>;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
export { TimeInputImpl };
|
|
56
|
-
export default TimeInputImpl;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const TimeInputs: ({ time, format, use12Hours, step, showHours, showMinutes, showSeconds, onChange, disabled, innerRef, clearable, "arial-label": ariaLabel, "aria-label": ariaLabel2, }: {
|
|
3
|
-
time: any;
|
|
4
|
-
format: any;
|
|
5
|
-
use12Hours: any;
|
|
6
|
-
step?: number | undefined;
|
|
7
|
-
showHours: any;
|
|
8
|
-
showMinutes: any;
|
|
9
|
-
showSeconds: any;
|
|
10
|
-
onChange: any;
|
|
11
|
-
disabled: any;
|
|
12
|
-
innerRef: any;
|
|
13
|
-
clearable: any;
|
|
14
|
-
"arial-label": any;
|
|
15
|
-
"aria-label": any;
|
|
16
|
-
}) => JSX.Element;
|
|
17
|
-
export { TimeInputs };
|
|
18
|
-
export default TimeInputs;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './DSTimeInput';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export declare const isArrowIncrementDecrement: (key: any) => boolean;
|
|
2
|
-
export declare const setNativeValue: (element: any, value: any) => void;
|
|
3
|
-
export declare const placeholderFormat: (position: any, format: any, use12Hours: any) => "a" | "h" | "hh" | "HH" | "H" | "mm" | "m" | "ss" | "s" | "A" | undefined;
|
|
4
|
-
export declare const formatMinutes: (format: any, value: any) => string;
|
|
5
|
-
export declare const formatSeconds: (format: any, value: any) => string;
|
|
6
|
-
export declare const formatHour: (format: any, value: any) => string;
|
|
7
|
-
export declare const formatMeridiem: (format: any, value: any) => any;
|
|
8
|
-
export declare const parseTimeNumberFromText: (stringValue: any) => number | null;
|
|
9
|
-
export declare const focusNextInput: (currentEl: any) => void;
|
|
10
|
-
export declare const focusPreviousInput: (currentEl: any) => void;
|
|
11
|
-
export declare const getValidTimeNumber: ({ min, max }: {
|
|
12
|
-
min: any;
|
|
13
|
-
max: any;
|
|
14
|
-
}, number: any, typed: any) => any;
|
|
15
|
-
export declare const shouldFocusNextInput: (max: any, number: number | undefined, stringValue: any) => boolean;
|
|
16
|
-
export declare const getTimeValuesFromTime: (time: any, format: any, use12Hours: any) => {
|
|
17
|
-
hours?: undefined;
|
|
18
|
-
minutes?: undefined;
|
|
19
|
-
seconds?: undefined;
|
|
20
|
-
meridiem?: undefined;
|
|
21
|
-
} | {
|
|
22
|
-
hours: string;
|
|
23
|
-
minutes: string;
|
|
24
|
-
seconds: string;
|
|
25
|
-
meridiem: any;
|
|
26
|
-
};
|
|
27
|
-
export declare const resetTimeValues: () => {
|
|
28
|
-
hours: string;
|
|
29
|
-
minutes: string;
|
|
30
|
-
seconds: string;
|
|
31
|
-
meridiem: any;
|
|
32
|
-
};
|
|
33
|
-
export declare const commonInputProps: (onKeyDown: any, onInputFocus: any, onClick: any) => {
|
|
34
|
-
pattern: string;
|
|
35
|
-
type: string;
|
|
36
|
-
onKeyDown: any;
|
|
37
|
-
onClick: any;
|
|
38
|
-
onFocus: any;
|
|
39
|
-
};
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
declare const DSToggle: {
|
|
4
|
-
({ containerProps, hasError, readOnly, disabled, checked, labelOn, labelOff, name, value, size, ...otherProps }: {
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
containerProps: any;
|
|
7
|
-
hasError: any;
|
|
8
|
-
readOnly: any;
|
|
9
|
-
disabled: any;
|
|
10
|
-
checked: any;
|
|
11
|
-
labelOn: any;
|
|
12
|
-
labelOff: any;
|
|
13
|
-
name: any;
|
|
14
|
-
value: any;
|
|
15
|
-
size: any;
|
|
16
|
-
}): JSX.Element;
|
|
17
|
-
defaultProps: {
|
|
18
|
-
labelOn: string;
|
|
19
|
-
labelOff: string;
|
|
20
|
-
size: string;
|
|
21
|
-
hasError: boolean;
|
|
22
|
-
readOnly: boolean;
|
|
23
|
-
disabled: boolean;
|
|
24
|
-
checked: undefined;
|
|
25
|
-
};
|
|
26
|
-
propTypes: {
|
|
27
|
-
/**
|
|
28
|
-
* Set of Properties attached to the main container
|
|
29
|
-
*/
|
|
30
|
-
containerProps: {
|
|
31
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
32
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
33
|
-
};
|
|
34
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Whether the toggle has error or not
|
|
38
|
-
*/
|
|
39
|
-
hasError: {
|
|
40
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
41
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
42
|
-
};
|
|
43
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Whether the toggle is read only or not
|
|
47
|
-
*/
|
|
48
|
-
readOnly: {
|
|
49
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
50
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
51
|
-
};
|
|
52
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Whether the toggle is disabled or not
|
|
56
|
-
*/
|
|
57
|
-
disabled: {
|
|
58
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
59
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
60
|
-
};
|
|
61
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* Whether the toggle is checked or not
|
|
65
|
-
*/
|
|
66
|
-
checked: {
|
|
67
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
68
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
69
|
-
};
|
|
70
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* Allows a function that is triggered once the toggle changes
|
|
74
|
-
*/
|
|
75
|
-
onChange: {
|
|
76
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
77
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
78
|
-
};
|
|
79
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Label to show when the toggle is ON
|
|
83
|
-
*/
|
|
84
|
-
labelOn: {
|
|
85
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
86
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
87
|
-
};
|
|
88
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Label to show when the toggle is OFF
|
|
92
|
-
*/
|
|
93
|
-
labelOff: {
|
|
94
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
95
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
96
|
-
};
|
|
97
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* Default value once the component is initialized
|
|
101
|
-
*/
|
|
102
|
-
value: {
|
|
103
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
104
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
105
|
-
};
|
|
106
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* ['s', 'm', 'l']
|
|
110
|
-
*/
|
|
111
|
-
size: {
|
|
112
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
113
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
114
|
-
};
|
|
115
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
116
|
-
};
|
|
117
|
-
/**
|
|
118
|
-
* Input name
|
|
119
|
-
*/
|
|
120
|
-
name: {
|
|
121
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
122
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
123
|
-
};
|
|
124
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
declare const DSToggleWithSchema: {
|
|
129
|
-
(props?: unknown): JSX.Element;
|
|
130
|
-
propTypes: unknown;
|
|
131
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
132
|
-
};
|
|
133
|
-
export default DSToggle;
|
|
134
|
-
export { DSToggleWithSchema, DSToggle };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
declare class DSToggleImpl extends Component {
|
|
3
|
-
constructor(props: any);
|
|
4
|
-
componentDidMount(): void;
|
|
5
|
-
componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
|
|
6
|
-
/**
|
|
7
|
-
* ******************************************************
|
|
8
|
-
* Drag
|
|
9
|
-
* ****************************************************** *
|
|
10
|
-
*
|
|
11
|
-
* @param clientX
|
|
12
|
-
*/
|
|
13
|
-
onDragStart: (clientX: any) => void;
|
|
14
|
-
onDragStop: (e: any) => void;
|
|
15
|
-
/**
|
|
16
|
-
* ******************************************************
|
|
17
|
-
* StandardEvents
|
|
18
|
-
* ****************************************************** *
|
|
19
|
-
*
|
|
20
|
-
* @param e
|
|
21
|
-
*/
|
|
22
|
-
onBlur: (e: any) => void;
|
|
23
|
-
onFocus: (e: any) => void;
|
|
24
|
-
onChange: (e: any) => void;
|
|
25
|
-
/** ******************************************************
|
|
26
|
-
MouseEvents
|
|
27
|
-
******************************************************* * */
|
|
28
|
-
onMouseEnter: () => void;
|
|
29
|
-
onMouseLeave: () => void;
|
|
30
|
-
onMouseMove: (event: any) => void;
|
|
31
|
-
onMouseDown: (event: any) => void;
|
|
32
|
-
onMouseUp: (event: any) => void;
|
|
33
|
-
/** ******************************************************
|
|
34
|
-
Touch
|
|
35
|
-
******************************************************* * */
|
|
36
|
-
onTouchCancel: () => void;
|
|
37
|
-
onTouchEnd: (event: any) => void;
|
|
38
|
-
onTouchMove: (event: any) => void;
|
|
39
|
-
onTouchStart: (event: any) => void;
|
|
40
|
-
static getDerivedStateFromProps(props: any, state: any): {
|
|
41
|
-
drag: number;
|
|
42
|
-
checked: any;
|
|
43
|
-
} | null;
|
|
44
|
-
getSnapshotBeforeUpdate(prevProps: any): boolean;
|
|
45
|
-
/**
|
|
46
|
-
* ******************************************************
|
|
47
|
-
* other
|
|
48
|
-
* ****************************************************** *
|
|
49
|
-
*
|
|
50
|
-
* @param currentCheckState
|
|
51
|
-
*/
|
|
52
|
-
setDragOnChange(currentCheckState: any): void;
|
|
53
|
-
verifyElements(): void;
|
|
54
|
-
render(): JSX.Element;
|
|
55
|
-
}
|
|
56
|
-
export { DSToggleImpl };
|
|
57
|
-
export default DSToggleImpl;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const DSToggleRender: ({ containerProps, id, className, style, hasError, hide, readOnly, disabled, checked, onBlur, onFocus, onChange, onMouseDown, onMouseEnter, onMouseLeave, onTouchCancel, onTouchEnd, onTouchMove, onTouchStart, labelOn, labelOff, dragStyle, containerRef, handRef, name, value, size, defaultState, }: {
|
|
3
|
-
containerProps: any;
|
|
4
|
-
id: any;
|
|
5
|
-
className?: string | undefined;
|
|
6
|
-
style?: {} | undefined;
|
|
7
|
-
hasError?: boolean | undefined;
|
|
8
|
-
hide: any;
|
|
9
|
-
readOnly?: boolean | undefined;
|
|
10
|
-
disabled?: boolean | undefined;
|
|
11
|
-
checked?: boolean | undefined;
|
|
12
|
-
onBlur?: (() => null) | undefined;
|
|
13
|
-
onFocus?: (() => null) | undefined;
|
|
14
|
-
onChange?: (() => null) | undefined;
|
|
15
|
-
onMouseDown?: (() => null) | undefined;
|
|
16
|
-
onMouseEnter?: (() => null) | undefined;
|
|
17
|
-
onMouseLeave?: (() => null) | undefined;
|
|
18
|
-
onTouchCancel?: (() => null) | undefined;
|
|
19
|
-
onTouchEnd?: (() => null) | undefined;
|
|
20
|
-
onTouchMove?: (() => null) | undefined;
|
|
21
|
-
onTouchStart?: (() => null) | undefined;
|
|
22
|
-
labelOn?: string | undefined;
|
|
23
|
-
labelOff?: string | undefined;
|
|
24
|
-
dragStyle?: {} | undefined;
|
|
25
|
-
containerRef?: null | undefined;
|
|
26
|
-
handRef?: null | undefined;
|
|
27
|
-
name?: string | undefined;
|
|
28
|
-
value?: string | undefined;
|
|
29
|
-
size?: string | undefined;
|
|
30
|
-
defaultState: any;
|
|
31
|
-
}) => JSX.Element;
|
|
32
|
-
export { DSToggleRender };
|
|
33
|
-
export default DSToggleRender;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, DSToggleWithSchema, DSToggle } from './DSToggle';
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
export declare const togglePropTypes: {
|
|
3
|
-
/**
|
|
4
|
-
* Set of Properties attached to the main container
|
|
5
|
-
*/
|
|
6
|
-
containerProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
7
|
-
/**
|
|
8
|
-
* Whether the toggle has error or not
|
|
9
|
-
*/
|
|
10
|
-
hasError: PropTypes.Requireable<boolean>;
|
|
11
|
-
/**
|
|
12
|
-
* Whether the toggle is read only or not
|
|
13
|
-
*/
|
|
14
|
-
readOnly: PropTypes.Requireable<boolean>;
|
|
15
|
-
/**
|
|
16
|
-
* Whether the toggle is disabled or not
|
|
17
|
-
*/
|
|
18
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
19
|
-
/**
|
|
20
|
-
* Whether the toggle is checked or not
|
|
21
|
-
*/
|
|
22
|
-
checked: PropTypes.Requireable<boolean>;
|
|
23
|
-
/**
|
|
24
|
-
* Allows a function that is triggered once the toggle changes
|
|
25
|
-
*/
|
|
26
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
|
-
/**
|
|
28
|
-
* Label to show when the toggle is ON
|
|
29
|
-
*/
|
|
30
|
-
labelOn: PropTypes.Requireable<string>;
|
|
31
|
-
/**
|
|
32
|
-
* Label to show when the toggle is OFF
|
|
33
|
-
*/
|
|
34
|
-
labelOff: PropTypes.Requireable<string>;
|
|
35
|
-
/**
|
|
36
|
-
* Default value once the component is initialized
|
|
37
|
-
*/
|
|
38
|
-
value: PropTypes.Requireable<string>;
|
|
39
|
-
/**
|
|
40
|
-
* ['s', 'm', 'l']
|
|
41
|
-
*/
|
|
42
|
-
size: PropTypes.Requireable<unknown>;
|
|
43
|
-
/**
|
|
44
|
-
* Input name
|
|
45
|
-
*/
|
|
46
|
-
name: PropTypes.Requireable<string>;
|
|
47
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare const isValidDrag: ({ inside, circleWidth, drag, checked, boxWidth, }: {
|
|
2
|
-
inside: any;
|
|
3
|
-
circleWidth: any;
|
|
4
|
-
drag: any;
|
|
5
|
-
checked: any;
|
|
6
|
-
boxWidth: any;
|
|
7
|
-
}) => boolean;
|
|
8
|
-
export declare const cleanDrag: () => {
|
|
9
|
-
startPoint: null;
|
|
10
|
-
isDragging: boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare const calculateDrag: (clientX: any, { startPoint, checked, isDragging, boxWidth, circleWidth }: {
|
|
13
|
-
startPoint: any;
|
|
14
|
-
checked: any;
|
|
15
|
-
isDragging: any;
|
|
16
|
-
boxWidth: any;
|
|
17
|
-
circleWidth: any;
|
|
18
|
-
}) => number | null;
|
|
19
|
-
export declare const dragStartingPoints: (checked: any) => ({ circleWidth, boxWidth }: {
|
|
20
|
-
circleWidth: any;
|
|
21
|
-
boxWidth: any;
|
|
22
|
-
}) => {
|
|
23
|
-
drag: number;
|
|
24
|
-
};
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export * from './Checkbox';
|
|
2
|
-
export * from './CheckboxGroup';
|
|
3
|
-
export * from './TimeInput';
|
|
4
|
-
export * from './DateInput';
|
|
5
|
-
export * from './DateInputV2';
|
|
6
|
-
export * from './ExpandableInput';
|
|
7
|
-
export * from './FloatingLabelInput';
|
|
8
|
-
export * from './FormItem';
|
|
9
|
-
export * from './Input';
|
|
10
|
-
export * from './InputGroup';
|
|
11
|
-
export * from './InputMask';
|
|
12
|
-
export * from './InputProtected';
|
|
13
|
-
export * from './LargeInputText';
|
|
14
|
-
export * from './Radio';
|
|
15
|
-
export * from './RadioGroup';
|
|
16
|
-
export * from './RequiredMark';
|
|
17
|
-
export * from './SearchBox';
|
|
18
|
-
export * from './TextBox';
|
|
19
|
-
export * from './Toggle';
|
|
20
|
-
export * from './ComboBox';
|
|
21
|
-
export * from './ComboBoxFreeSolo';
|