@elliemae/ds-form 3.16.0-next.11 → 3.16.0-next.13
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/Checkbox/index.js +4 -0
- package/dist/cjs/Checkbox/index.js.map +1 -1
- package/dist/cjs/CheckboxGroup/DSCheckboxGroup.js +4 -0
- package/dist/cjs/CheckboxGroup/DSCheckboxGroup.js.map +1 -1
- package/dist/cjs/CheckboxGroup/defaultProps.js +4 -0
- package/dist/cjs/CheckboxGroup/defaultProps.js.map +1 -1
- package/dist/cjs/CheckboxGroup/index.js +4 -0
- package/dist/cjs/CheckboxGroup/index.js.map +1 -1
- package/dist/cjs/CheckboxGroup/props.js +22 -0
- package/dist/cjs/CheckboxGroup/props.js.map +1 -1
- package/dist/cjs/ComboBox/index.js +4 -0
- package/dist/cjs/ComboBox/index.js.map +1 -1
- package/dist/cjs/ComboBoxFreeSolo/ComboBoxFreeSolo.js +47 -0
- package/dist/cjs/ComboBoxFreeSolo/ComboBoxFreeSolo.js.map +1 -1
- package/dist/cjs/ComboBoxFreeSolo/components/MultiValueLabel.js +4 -0
- package/dist/cjs/ComboBoxFreeSolo/components/MultiValueLabel.js.map +1 -1
- package/dist/cjs/ComboBoxFreeSolo/components/MultiValueRemove.js +4 -0
- package/dist/cjs/ComboBoxFreeSolo/components/MultiValueRemove.js.map +1 -1
- package/dist/cjs/ComboBoxFreeSolo/components/SingleValue.js +4 -0
- package/dist/cjs/ComboBoxFreeSolo/components/SingleValue.js.map +1 -1
- package/dist/cjs/ComboBoxFreeSolo/components/SingleValueRemove.js +4 -0
- package/dist/cjs/ComboBoxFreeSolo/components/SingleValueRemove.js.map +1 -1
- package/dist/cjs/ComboBoxFreeSolo/index.js +4 -0
- package/dist/cjs/ComboBoxFreeSolo/index.js.map +1 -1
- package/dist/cjs/DateInput/DSDateInput.js +5 -0
- package/dist/cjs/DateInput/DSDateInput.js.map +1 -1
- package/dist/cjs/DateInput/components/DateInputImpl.js +5 -0
- package/dist/cjs/DateInput/components/DateInputImpl.js.map +1 -1
- package/dist/cjs/DateInput/components/DateInputs.js +7 -0
- package/dist/cjs/DateInput/components/DateInputs.js.map +1 -1
- package/dist/cjs/DateInput/components/utils.js +5 -1
- package/dist/cjs/DateInput/components/utils.js.map +1 -1
- package/dist/cjs/DateInput/defaultProps.js +5 -1
- package/dist/cjs/DateInput/defaultProps.js.map +1 -1
- package/dist/cjs/DateInput/index.js +4 -0
- package/dist/cjs/DateInput/index.js.map +1 -1
- package/dist/cjs/DateInput/props.js +46 -0
- package/dist/cjs/DateInput/props.js.map +1 -1
- package/dist/cjs/DateInputV2/components/DSDateInput.js +4 -0
- package/dist/cjs/DateInputV2/components/DSDateInput.js.map +1 -1
- package/dist/cjs/DateInputV2/components/DateInputs.js +5 -0
- package/dist/cjs/DateInputV2/components/DateInputs.js.map +1 -1
- package/dist/cjs/DateInputV2/components/helpers.js +4 -0
- package/dist/cjs/DateInputV2/components/helpers.js.map +1 -1
- package/dist/cjs/DateInputV2/components/props.js +34 -0
- package/dist/cjs/DateInputV2/components/props.js.map +1 -1
- package/dist/cjs/DateInputV2/components/propsTypes.js +4 -0
- package/dist/cjs/DateInputV2/components/propsTypes.js.map +1 -1
- package/dist/cjs/DateInputV2/components/styled.js +4 -0
- package/dist/cjs/DateInputV2/components/styled.js.map +1 -1
- package/dist/cjs/DateInputV2/components/utils.js +5 -1
- package/dist/cjs/DateInputV2/components/utils.js.map +1 -1
- package/dist/cjs/DateInputV2/index.js +4 -0
- package/dist/cjs/DateInputV2/index.js.map +1 -1
- package/dist/cjs/ExpandableInput/DSExpandableInput.js +4 -0
- package/dist/cjs/ExpandableInput/DSExpandableInput.js.map +1 -1
- package/dist/cjs/ExpandableInput/ExpandableInputImpl.js +4 -0
- package/dist/cjs/ExpandableInput/ExpandableInputImpl.js.map +1 -1
- package/dist/cjs/ExpandableInput/index.js +4 -0
- package/dist/cjs/ExpandableInput/index.js.map +1 -1
- package/dist/cjs/FloatingLabelInput/DSFloatingLabelInput.js +67 -0
- package/dist/cjs/FloatingLabelInput/DSFloatingLabelInput.js.map +1 -1
- package/dist/cjs/FloatingLabelInput/FloatingLabelInputImpl.js +4 -0
- package/dist/cjs/FloatingLabelInput/FloatingLabelInputImpl.js.map +1 -1
- package/dist/cjs/FloatingLabelInput/getSvgPath.js +7 -1
- package/dist/cjs/FloatingLabelInput/getSvgPath.js.map +1 -1
- package/dist/cjs/FloatingLabelInput/index.js +4 -0
- package/dist/cjs/FloatingLabelInput/index.js.map +1 -1
- package/dist/cjs/FormItem/DSFormItemLayout.js +6 -0
- package/dist/cjs/FormItem/DSFormItemLayout.js.map +1 -1
- package/dist/cjs/FormItem/Error/DSError.js +6 -0
- package/dist/cjs/FormItem/Error/DSError.js.map +1 -1
- package/dist/cjs/FormItem/Feedback.js +4 -0
- package/dist/cjs/FormItem/Feedback.js.map +1 -1
- package/dist/cjs/FormItem/Label/DSLabel.js +4 -0
- package/dist/cjs/FormItem/Label/DSLabel.js.map +1 -1
- package/dist/cjs/FormItem/Suffix/Suffix.js +4 -0
- package/dist/cjs/FormItem/Suffix/Suffix.js.map +1 -1
- package/dist/cjs/FormItem/ValidationFieldWrapper.js +5 -0
- package/dist/cjs/FormItem/ValidationFieldWrapper.js.map +1 -1
- package/dist/cjs/FormItem/defaultProps.js +4 -0
- package/dist/cjs/FormItem/defaultProps.js.map +1 -1
- package/dist/cjs/FormItem/index.js +4 -0
- package/dist/cjs/FormItem/index.js.map +1 -1
- package/dist/cjs/FormItem/props.js +44 -0
- package/dist/cjs/FormItem/props.js.map +1 -1
- package/dist/cjs/FormItem/variants.js +4 -0
- package/dist/cjs/FormItem/variants.js.map +1 -1
- package/dist/cjs/Input/DSInput.js +4 -0
- package/dist/cjs/Input/DSInput.js.map +1 -1
- package/dist/cjs/Input/InputAddonWrapper.js +4 -0
- package/dist/cjs/Input/InputAddonWrapper.js.map +1 -1
- package/dist/cjs/Input/InputImpl.js +4 -0
- package/dist/cjs/Input/InputImpl.js.map +1 -1
- package/dist/cjs/Input/index.js +4 -0
- package/dist/cjs/Input/index.js.map +1 -1
- package/dist/cjs/InputGroup/AddonWrapper.js +4 -0
- package/dist/cjs/InputGroup/AddonWrapper.js.map +1 -1
- package/dist/cjs/InputGroup/DSInputGroup.js +5 -0
- package/dist/cjs/InputGroup/DSInputGroup.js.map +1 -1
- package/dist/cjs/InputGroup/defaultProps.js +4 -0
- package/dist/cjs/InputGroup/defaultProps.js.map +1 -1
- package/dist/cjs/InputGroup/index.js +4 -0
- package/dist/cjs/InputGroup/index.js.map +1 -1
- package/dist/cjs/InputGroup/props.js +19 -0
- package/dist/cjs/InputGroup/props.js.map +1 -1
- package/dist/cjs/InputMask/DSInputMask.js +4 -0
- package/dist/cjs/InputMask/DSInputMask.js.map +1 -1
- package/dist/cjs/InputMask/DSInputMaskDeprecated.js +11 -0
- package/dist/cjs/InputMask/DSInputMaskDeprecated.js.map +1 -1
- package/dist/cjs/InputMask/InputMaskContext.js +4 -0
- package/dist/cjs/InputMask/InputMaskContext.js.map +1 -1
- package/dist/cjs/InputMask/MaskPipes.js +4 -0
- package/dist/cjs/InputMask/MaskPipes.js.map +1 -1
- package/dist/cjs/InputMask/MaskTypes.js +4 -0
- package/dist/cjs/InputMask/MaskTypes.js.map +1 -1
- package/dist/cjs/InputMask/addons/AutoCorrectedDatePipe.js +4 -0
- package/dist/cjs/InputMask/addons/AutoCorrectedDatePipe.js.map +1 -1
- package/dist/cjs/InputMask/defaultProps.js +4 -0
- package/dist/cjs/InputMask/defaultProps.js.map +1 -1
- package/dist/cjs/InputMask/index.js +4 -0
- package/dist/cjs/InputMask/index.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/DateInputMask.js +4 -0
- package/dist/cjs/InputMask/mask_types/DateInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/DateTimeInputMask.js +4 -0
- package/dist/cjs/InputMask/mask_types/DateTimeInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/DictionaryInputMask.js +4 -0
- package/dist/cjs/InputMask/mask_types/DictionaryInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/NumberInputMask.js +4 -0
- package/dist/cjs/InputMask/mask_types/NumberInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/PhoneInputMask.js +4 -0
- package/dist/cjs/InputMask/mask_types/PhoneInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/PhoneInternationalInputMask.js +4 -0
- package/dist/cjs/InputMask/mask_types/PhoneInternationalInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/SsnInputMask.js +4 -0
- package/dist/cjs/InputMask/mask_types/SsnInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/UsZipCodeInputMask.js +4 -0
- package/dist/cjs/InputMask/mask_types/UsZipCodeInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js +4 -0
- package/dist/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/index.js +4 -0
- package/dist/cjs/InputMask/mask_types/index.js.map +1 -1
- package/dist/cjs/InputMask/props.js +84 -0
- package/dist/cjs/InputMask/props.js.map +1 -1
- package/dist/cjs/InputMask/types/index.js +4 -0
- package/dist/cjs/InputMask/types/index.js.map +1 -1
- package/dist/cjs/InputMask/utils/setCaretPosition.js +4 -0
- package/dist/cjs/InputMask/utils/setCaretPosition.js.map +1 -1
- package/dist/cjs/InputProtected/DSInputProtected.js +4 -0
- package/dist/cjs/InputProtected/DSInputProtected.js.map +1 -1
- package/dist/cjs/InputProtected/defaultProps.js +4 -0
- package/dist/cjs/InputProtected/defaultProps.js.map +1 -1
- package/dist/cjs/InputProtected/index.js +4 -0
- package/dist/cjs/InputProtected/index.js.map +1 -1
- package/dist/cjs/InputProtected/options.js +4 -0
- package/dist/cjs/InputProtected/options.js.map +1 -1
- package/dist/cjs/InputProtected/props.js +8 -0
- package/dist/cjs/InputProtected/props.js.map +1 -1
- package/dist/cjs/LargeInputText/DSLargeInputText.js +4 -0
- package/dist/cjs/LargeInputText/DSLargeInputText.js.map +1 -1
- package/dist/cjs/LargeInputText/defaultProps.js +4 -0
- package/dist/cjs/LargeInputText/defaultProps.js.map +1 -1
- package/dist/cjs/LargeInputText/index.js +4 -0
- package/dist/cjs/LargeInputText/index.js.map +1 -1
- package/dist/cjs/LargeInputText/props.js +70 -0
- package/dist/cjs/LargeInputText/props.js.map +1 -1
- package/dist/cjs/MenuItem/components/MenuItem/index.js +4 -0
- package/dist/cjs/MenuItem/components/MenuItem/index.js.map +1 -1
- package/dist/cjs/MenuItem/components/MenuItem/styled.js +4 -0
- package/dist/cjs/MenuItem/components/MenuItem/styled.js.map +1 -1
- package/dist/cjs/MenuItem/components/MultiMenuItem/MultiMenuItem.js +4 -0
- package/dist/cjs/MenuItem/components/MultiMenuItem/MultiMenuItem.js.map +1 -1
- package/dist/cjs/MenuItem/components/MultiMenuItem/styled.js +4 -0
- package/dist/cjs/MenuItem/components/MultiMenuItem/styled.js.map +1 -1
- package/dist/cjs/MenuItem/components/Section/index.js +4 -0
- package/dist/cjs/MenuItem/components/Section/index.js.map +1 -1
- package/dist/cjs/MenuItem/components/Section/props.js +4 -0
- package/dist/cjs/MenuItem/components/Section/props.js.map +1 -1
- package/dist/cjs/MenuItem/components/Section/styled.js +4 -0
- package/dist/cjs/MenuItem/components/Section/styled.js.map +1 -1
- package/dist/cjs/MenuItem/components/Separator/index.js +4 -0
- package/dist/cjs/MenuItem/components/Separator/index.js.map +1 -1
- package/dist/cjs/MenuItem/components/Separator/styled.js +4 -0
- package/dist/cjs/MenuItem/components/Separator/styled.js.map +1 -1
- package/dist/cjs/MenuItem/components/SingleMenuItem/SingleMenuItem.js +4 -0
- package/dist/cjs/MenuItem/components/SingleMenuItem/SingleMenuItem.js.map +1 -1
- package/dist/cjs/MenuItem/components/SubmenuItem/index.js +4 -0
- package/dist/cjs/MenuItem/components/SubmenuItem/index.js.map +1 -1
- package/dist/cjs/MenuItem/components/SubmenuItem/styled.js +4 -0
- package/dist/cjs/MenuItem/components/SubmenuItem/styled.js.map +1 -1
- package/dist/cjs/MenuItem/components/index.js +4 -0
- package/dist/cjs/MenuItem/components/index.js.map +1 -1
- package/dist/cjs/MenuItem/components/styled.js +4 -0
- package/dist/cjs/MenuItem/components/styled.js.map +1 -1
- package/dist/cjs/MenuItem/index.js +4 -0
- package/dist/cjs/MenuItem/index.js.map +1 -1
- package/dist/cjs/MenuItem/props.js +4 -0
- package/dist/cjs/MenuItem/props.js.map +1 -1
- package/dist/cjs/Radio/Circle.js +4 -0
- package/dist/cjs/Radio/Circle.js.map +1 -1
- package/dist/cjs/Radio/DSRadio.js +34 -0
- package/dist/cjs/Radio/DSRadio.js.map +1 -1
- package/dist/cjs/Radio/index.js +4 -0
- package/dist/cjs/Radio/index.js.map +1 -1
- package/dist/cjs/RadioGroup/DSRadioGroup.js +4 -0
- package/dist/cjs/RadioGroup/DSRadioGroup.js.map +1 -1
- package/dist/cjs/RadioGroup/defaultProps.js +4 -0
- package/dist/cjs/RadioGroup/defaultProps.js.map +1 -1
- package/dist/cjs/RadioGroup/index.js +4 -0
- package/dist/cjs/RadioGroup/index.js.map +1 -1
- package/dist/cjs/RadioGroup/props.js +20 -0
- package/dist/cjs/RadioGroup/props.js.map +1 -1
- package/dist/cjs/RequiredMark/RequiredMark.js +4 -0
- package/dist/cjs/RequiredMark/RequiredMark.js.map +1 -1
- package/dist/cjs/RequiredMark/index.js +4 -0
- package/dist/cjs/RequiredMark/index.js.map +1 -1
- package/dist/cjs/SearchBox/index.js +4 -0
- package/dist/cjs/SearchBox/index.js.map +1 -1
- package/dist/cjs/TextBox/index.js +4 -0
- package/dist/cjs/TextBox/index.js.map +1 -1
- package/dist/cjs/TimeInput/DSTimeInput.js +27 -0
- package/dist/cjs/TimeInput/DSTimeInput.js.map +1 -1
- package/dist/cjs/TimeInput/TimeInputImpl.js +31 -0
- package/dist/cjs/TimeInput/TimeInputImpl.js.map +1 -1
- package/dist/cjs/TimeInput/TimeInputs.js +5 -0
- package/dist/cjs/TimeInput/TimeInputs.js.map +1 -1
- package/dist/cjs/TimeInput/index.js +4 -0
- package/dist/cjs/TimeInput/index.js.map +1 -1
- package/dist/cjs/TimeInput/utils.js +4 -0
- package/dist/cjs/TimeInput/utils.js.map +1 -1
- package/dist/cjs/Toggle/DSToggle.js +37 -0
- package/dist/cjs/Toggle/DSToggle.js.map +1 -1
- package/dist/cjs/Toggle/DSToggleImpl.js +37 -0
- package/dist/cjs/Toggle/DSToggleImpl.js.map +1 -1
- package/dist/cjs/Toggle/DSToggleRender.js +4 -0
- package/dist/cjs/Toggle/DSToggleRender.js.map +1 -1
- package/dist/cjs/Toggle/index.js +4 -0
- package/dist/cjs/Toggle/index.js.map +1 -1
- package/dist/cjs/Toggle/props.js +37 -0
- package/dist/cjs/Toggle/props.js.map +1 -1
- package/dist/cjs/Toggle/toggleHelper.js +4 -0
- package/dist/cjs/Toggle/toggleHelper.js.map +1 -1
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/CheckboxGroup/DSCheckboxGroup.js.map +1 -1
- package/dist/esm/CheckboxGroup/props.js +18 -0
- package/dist/esm/CheckboxGroup/props.js.map +1 -1
- package/dist/esm/ComboBoxFreeSolo/ComboBoxFreeSolo.js +43 -0
- package/dist/esm/ComboBoxFreeSolo/ComboBoxFreeSolo.js.map +1 -1
- package/dist/esm/ComboBoxFreeSolo/components/MultiValueLabel.js.map +1 -1
- package/dist/esm/DateInput/DSDateInput.js +1 -0
- package/dist/esm/DateInput/DSDateInput.js.map +1 -1
- package/dist/esm/DateInput/components/DateInputImpl.js +1 -0
- package/dist/esm/DateInput/components/DateInputImpl.js.map +1 -1
- package/dist/esm/DateInput/components/DateInputs.js +3 -0
- package/dist/esm/DateInput/components/DateInputs.js.map +1 -1
- package/dist/esm/DateInput/components/utils.js +1 -1
- package/dist/esm/DateInput/components/utils.js.map +1 -1
- package/dist/esm/DateInput/defaultProps.js +1 -1
- package/dist/esm/DateInput/defaultProps.js.map +1 -1
- package/dist/esm/DateInput/props.js +42 -0
- package/dist/esm/DateInput/props.js.map +1 -1
- package/dist/esm/DateInputV2/components/DateInputs.js +1 -0
- package/dist/esm/DateInputV2/components/DateInputs.js.map +1 -1
- package/dist/esm/DateInputV2/components/props.js +30 -0
- package/dist/esm/DateInputV2/components/props.js.map +1 -1
- package/dist/esm/DateInputV2/components/styled.js.map +1 -1
- package/dist/esm/DateInputV2/components/utils.js +1 -1
- package/dist/esm/DateInputV2/components/utils.js.map +1 -1
- package/dist/esm/FloatingLabelInput/DSFloatingLabelInput.js +63 -0
- package/dist/esm/FloatingLabelInput/DSFloatingLabelInput.js.map +1 -1
- package/dist/esm/FloatingLabelInput/getSvgPath.js +3 -1
- package/dist/esm/FloatingLabelInput/getSvgPath.js.map +1 -1
- package/dist/esm/FormItem/DSFormItemLayout.js +2 -0
- package/dist/esm/FormItem/DSFormItemLayout.js.map +1 -1
- package/dist/esm/FormItem/Error/DSError.js +2 -0
- package/dist/esm/FormItem/Error/DSError.js.map +1 -1
- package/dist/esm/FormItem/ValidationFieldWrapper.js +1 -0
- package/dist/esm/FormItem/ValidationFieldWrapper.js.map +1 -1
- package/dist/esm/FormItem/props.js +40 -0
- package/dist/esm/FormItem/props.js.map +1 -1
- package/dist/esm/InputGroup/DSInputGroup.js +1 -0
- package/dist/esm/InputGroup/DSInputGroup.js.map +1 -1
- package/dist/esm/InputGroup/props.js +15 -0
- package/dist/esm/InputGroup/props.js.map +1 -1
- package/dist/esm/InputMask/DSInputMask.js.map +1 -1
- package/dist/esm/InputMask/DSInputMaskDeprecated.js +7 -0
- package/dist/esm/InputMask/DSInputMaskDeprecated.js.map +1 -1
- package/dist/esm/InputMask/addons/AutoCorrectedDatePipe.js.map +1 -1
- package/dist/esm/InputMask/mask_types/DateInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/DateTimeInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/DictionaryInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/NumberInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/PhoneInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/PhoneInternationalInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/SsnInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/UsZipCodeInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/ZipCodeSearchInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/index.js.map +1 -1
- package/dist/esm/InputMask/props.js +80 -0
- package/dist/esm/InputMask/props.js.map +1 -1
- package/dist/esm/InputProtected/DSInputProtected.js.map +1 -1
- package/dist/esm/InputProtected/props.js +4 -0
- package/dist/esm/InputProtected/props.js.map +1 -1
- package/dist/esm/LargeInputText/props.js +66 -0
- package/dist/esm/LargeInputText/props.js.map +1 -1
- package/dist/esm/Radio/Circle.js.map +1 -1
- package/dist/esm/Radio/DSRadio.js +30 -0
- package/dist/esm/Radio/DSRadio.js.map +1 -1
- package/dist/esm/RadioGroup/DSRadioGroup.js.map +1 -1
- package/dist/esm/RadioGroup/props.js +16 -0
- package/dist/esm/RadioGroup/props.js.map +1 -1
- package/dist/esm/TimeInput/DSTimeInput.js +23 -0
- package/dist/esm/TimeInput/DSTimeInput.js.map +1 -1
- package/dist/esm/TimeInput/TimeInputImpl.js +27 -0
- package/dist/esm/TimeInput/TimeInputImpl.js.map +1 -1
- package/dist/esm/TimeInput/TimeInputs.js +1 -0
- package/dist/esm/TimeInput/TimeInputs.js.map +1 -1
- package/dist/esm/Toggle/DSToggle.js +33 -0
- package/dist/esm/Toggle/DSToggle.js.map +1 -1
- package/dist/esm/Toggle/DSToggleImpl.js +33 -0
- package/dist/esm/Toggle/DSToggleImpl.js.map +1 -1
- package/dist/esm/Toggle/props.js +33 -0
- package/dist/esm/Toggle/props.js.map +1 -1
- package/package.json +16 -16
|
@@ -1,41 +1,121 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { PropTypes } from "@elliemae/ds-props-helpers";
|
|
3
3
|
const inputProps = {
|
|
4
|
+
/** Should component focus automatically */
|
|
4
5
|
autoFocus: PropTypes.bool.description("Should component focus automatically"),
|
|
6
|
+
/**
|
|
7
|
+
* Set style for the input mask
|
|
8
|
+
*/
|
|
5
9
|
style: PropTypes.object.description("Set style for the input mask"),
|
|
10
|
+
/**
|
|
11
|
+
* Whether the input mask is disabled or not
|
|
12
|
+
*/
|
|
6
13
|
disabled: PropTypes.bool.description("Whether the input mask is disabled or not"),
|
|
14
|
+
/** disableTooltip */
|
|
7
15
|
disableTooltip: PropTypes.bool.description("Whether to show a tooltip or not when text does not fit").defaultValue(true),
|
|
16
|
+
/** css class */
|
|
8
17
|
className: PropTypes.string.description("css class"),
|
|
18
|
+
/** html name prop for form */
|
|
9
19
|
name: PropTypes.string.description("html name prop for form"),
|
|
20
|
+
/**
|
|
21
|
+
* Max length for the input mask
|
|
22
|
+
*/
|
|
10
23
|
maxLength: PropTypes.number.description("Max length for the input mask"),
|
|
24
|
+
/**
|
|
25
|
+
* Min length for the input mask
|
|
26
|
+
*/
|
|
11
27
|
minLength: PropTypes.number.description("Min length for the input mask"),
|
|
28
|
+
/**
|
|
29
|
+
* Whether to make the content of the input mask fit the container or not
|
|
30
|
+
*/
|
|
12
31
|
fluidWidth: PropTypes.bool.description("Whether to make the content of the input mask fit the container or not"),
|
|
32
|
+
/** isShowElipsisActive */
|
|
13
33
|
isShowElipsisActive: PropTypes.bool.description("Wheter to enable the ellipsis and tooltip functionality or not").defaultValue(true),
|
|
34
|
+
/**
|
|
35
|
+
* Component that works as placeholder
|
|
36
|
+
*/
|
|
14
37
|
placeholder: PropTypes.node.description("Component that works as placeholder"),
|
|
38
|
+
/**
|
|
39
|
+
* Allows a function that is triggered once a key is being pressed
|
|
40
|
+
*/
|
|
15
41
|
onKeyDown: PropTypes.func.description("Allows a function that is triggered once a key is being pressed"),
|
|
42
|
+
/**
|
|
43
|
+
* Allows a function that is triggered once the input mask is clicked
|
|
44
|
+
*/
|
|
16
45
|
onClick: PropTypes.func.description("Allows a function that is triggered once the input mask is clicked"),
|
|
46
|
+
/**
|
|
47
|
+
* Allows a function that is triggered once the input mask changes
|
|
48
|
+
*/
|
|
17
49
|
onChange: PropTypes.func.description("Allows a function that is triggered once the input mask changes"),
|
|
50
|
+
/**
|
|
51
|
+
* Allows a function that is triggered once the input mask is focused
|
|
52
|
+
*/
|
|
18
53
|
onFocus: PropTypes.func.description("Allows a function that is triggered once the input mask is focused"),
|
|
54
|
+
/**
|
|
55
|
+
* Allows a function that is triggered once the input mask loses focus
|
|
56
|
+
*/
|
|
19
57
|
onBlur: PropTypes.func.description("Allows a function that is triggered once the input mask loses focus"),
|
|
58
|
+
/**
|
|
59
|
+
* Allows a function that is triggered once the input mask is pasted
|
|
60
|
+
*/
|
|
20
61
|
onPaste: PropTypes.func.description("Allows a function that is triggered once the input mask is pasted"),
|
|
62
|
+
/**
|
|
63
|
+
* Allows a function that is triggered once in the input mask a keyboard key is released
|
|
64
|
+
*/
|
|
21
65
|
onKeyUp: PropTypes.func.description(
|
|
22
66
|
"Allows a function that is triggered once in the input mask a keyboard key is released"
|
|
23
67
|
),
|
|
68
|
+
/**
|
|
69
|
+
* Default value once the component is initialized
|
|
70
|
+
*/
|
|
24
71
|
value: PropTypes.string.description("Default value once the component is initialized"),
|
|
72
|
+
/**
|
|
73
|
+
* Whether the input mask has error or not
|
|
74
|
+
*/
|
|
25
75
|
hasError: PropTypes.bool.description("Whether the input mask has error or not"),
|
|
76
|
+
/**
|
|
77
|
+
* Whether the input mask is read only or not
|
|
78
|
+
*/
|
|
26
79
|
readOnly: PropTypes.bool.description("Whether the input mask is read only or not"),
|
|
27
80
|
innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })]).description(
|
|
28
81
|
"Whether the input mask is read only or not"
|
|
29
82
|
),
|
|
83
|
+
/**
|
|
84
|
+
* Type of input. Ex: 'text'
|
|
85
|
+
*/
|
|
30
86
|
type: PropTypes.string.description("Type of input. Ex: 'text'"),
|
|
87
|
+
/**
|
|
88
|
+
* Whether the input mask is clearable or not
|
|
89
|
+
*/
|
|
31
90
|
clearable: PropTypes.bool.description("Whether the input mask is clearable or not"),
|
|
91
|
+
/**
|
|
92
|
+
* Component to be added at the right side of the input
|
|
93
|
+
*/
|
|
32
94
|
leftComponent: PropTypes.node.description("Component to be added at the right side of the input"),
|
|
95
|
+
/**
|
|
96
|
+
* Component to be added at the right side of the input
|
|
97
|
+
*/
|
|
33
98
|
rightComponent: PropTypes.node.description("Component to be added at the right side of the input"),
|
|
99
|
+
/**
|
|
100
|
+
* Mask that has to match with the input information entered
|
|
101
|
+
* ['DATE', 'PHONE', 'PHONE_INTENATIONAL', 'SSN', 'US_ZIP_CODE', 'NUMBER', 'PERCENT']
|
|
102
|
+
*/
|
|
34
103
|
mask: PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.func, PropTypes.object]).description(
|
|
35
104
|
"Mask that has to match with the input information entered. ['DATE', 'PHONE', 'PHONE_INTENATIONAL', 'SSN', 'US_ZIP_CODE', 'NUMBER', 'PERCENT', 'ZIP_CODE_SEARCH']"
|
|
36
105
|
),
|
|
106
|
+
/**
|
|
107
|
+
Expects pipe functions. i.e. autoCorrectedDatePipe
|
|
108
|
+
link a docu de text-mask
|
|
109
|
+
*/
|
|
37
110
|
pipe: PropTypes.func.description("Expects pipe functions. i.e. autoCorrectedDatePipe"),
|
|
111
|
+
/**
|
|
112
|
+
* Put a sufix after the input mask
|
|
113
|
+
*/
|
|
38
114
|
useSubfix: PropTypes.string.description("Put a sufix after the input mask"),
|
|
115
|
+
/**
|
|
116
|
+
* The placeholder character represents the fillable spot in the mask.
|
|
117
|
+
* The default placeholder character is underscore, _
|
|
118
|
+
*/
|
|
39
119
|
placeholderChar: PropTypes.string.description(
|
|
40
120
|
`The placeholder character represents the fillable spot in the mask.
|
|
41
121
|
The default placeholder character is underscore, _.`
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/InputMask/props.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-props-helpers';\n\nexport const inputProps = {\n /** Should component focus automatically */\n autoFocus: PropTypes.bool.description('Should component focus automatically'),\n /**\n * Set style for the input mask\n */\n style: PropTypes.object.description('Set style for the input mask'),\n /**\n * Whether the input mask is disabled or not\n */\n disabled: PropTypes.bool.description('Whether the input mask is disabled or not'),\n /** disableTooltip */\n disableTooltip: PropTypes.bool\n .description('Whether to show a tooltip or not when text does not fit')\n .defaultValue(true),\n /** css class */\n className: PropTypes.string.description('css class'),\n /** html name prop for form */\n name: PropTypes.string.description('html name prop for form'),\n /**\n * Max length for the input mask\n */\n maxLength: PropTypes.number.description('Max length for the input mask'),\n /**\n * Min length for the input mask\n */\n minLength: PropTypes.number.description('Min length for the input mask'),\n /**\n * Whether to make the content of the input mask fit the container or not\n */\n fluidWidth: PropTypes.bool.description('Whether to make the content of the input mask fit the container or not'),\n /** isShowElipsisActive */\n isShowElipsisActive: PropTypes.bool\n .description('Wheter to enable the ellipsis and tooltip functionality or not')\n .defaultValue(true),\n /**\n * Component that works as placeholder\n */\n placeholder: PropTypes.node.description('Component that works as placeholder'),\n /**\n * Allows a function that is triggered once a key is being pressed\n */\n onKeyDown: PropTypes.func.description('Allows a function that is triggered once a key is being pressed'),\n /**\n * Allows a function that is triggered once the input mask is clicked\n */\n onClick: PropTypes.func.description('Allows a function that is triggered once the input mask is clicked'),\n /**\n * Allows a function that is triggered once the input mask changes\n */\n onChange: PropTypes.func.description('Allows a function that is triggered once the input mask changes'),\n /**\n * Allows a function that is triggered once the input mask is focused\n */\n onFocus: PropTypes.func.description('Allows a function that is triggered once the input mask is focused'),\n /**\n * Allows a function that is triggered once the input mask loses focus\n */\n onBlur: PropTypes.func.description('Allows a function that is triggered once the input mask loses focus'),\n /**\n * Allows a function that is triggered once the input mask is pasted\n */\n onPaste: PropTypes.func.description('Allows a function that is triggered once the input mask is pasted'),\n /**\n * Allows a function that is triggered once in the input mask a keyboard key is released\n */\n onKeyUp: PropTypes.func.description(\n 'Allows a function that is triggered once in the input mask a keyboard key is released',\n ),\n /**\n * Default value once the component is initialized\n */\n value: PropTypes.string.description('Default value once the component is initialized'),\n /**\n * Whether the input mask has error or not\n */\n hasError: PropTypes.bool.description('Whether the input mask has error or not'),\n /**\n * Whether the input mask is read only or not\n */\n readOnly: PropTypes.bool.description('Whether the input mask is read only or not'),\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })]).description(\n 'Whether the input mask is read only or not',\n ),\n /**\n * Type of input. Ex: 'text'\n */\n type: PropTypes.string.description(\"Type of input. Ex: 'text'\"),\n /**\n * Whether the input mask is clearable or not\n */\n clearable: PropTypes.bool.description('Whether the input mask is clearable or not'),\n /**\n * Component to be added at the right side of the input\n */\n leftComponent: PropTypes.node.description('Component to be added at the right side of the input'),\n /**\n * Component to be added at the right side of the input\n */\n rightComponent: PropTypes.node.description('Component to be added at the right side of the input'),\n /**\n * Mask that has to match with the input information entered\n * ['DATE', 'PHONE', 'PHONE_INTENATIONAL', 'SSN', 'US_ZIP_CODE', 'NUMBER', 'PERCENT']\n */\n mask: PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.func, PropTypes.object]).description(\n \"Mask that has to match with the input information entered. ['DATE', 'PHONE', 'PHONE_INTENATIONAL', 'SSN', 'US_ZIP_CODE', 'NUMBER', 'PERCENT', 'ZIP_CODE_SEARCH']\",\n ),\n /**\n Expects pipe functions. i.e. autoCorrectedDatePipe\n link a docu de text-mask\n */\n pipe: PropTypes.func.description('Expects pipe functions. i.e. autoCorrectedDatePipe'),\n /**\n * Put a sufix after the input mask\n */\n useSubfix: PropTypes.string.description('Put a sufix after the input mask'),\n /**\n * The placeholder character represents the fillable spot in the mask.\n * The default placeholder character is underscore, _\n */\n placeholderChar: PropTypes.string\n .description(\n `The placeholder character represents the fillable spot in the mask.\n The default placeholder character is underscore, _.`,\n )\n .defaultValue('_'),\n};\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAEnB,MAAM,aAAa;AAAA,EAExB,WAAW,UAAU,KAAK,YAAY,sCAAsC;AAAA,EAI5E,OAAO,UAAU,OAAO,YAAY,8BAA8B;AAAA,EAIlE,UAAU,UAAU,KAAK,YAAY,2CAA2C;AAAA,EAEhF,gBAAgB,UAAU,KACvB,YAAY,yDAAyD,EACrE,aAAa,IAAI;AAAA,EAEpB,WAAW,UAAU,OAAO,YAAY,WAAW;AAAA,EAEnD,MAAM,UAAU,OAAO,YAAY,yBAAyB;AAAA,EAI5D,WAAW,UAAU,OAAO,YAAY,+BAA+B;AAAA,EAIvE,WAAW,UAAU,OAAO,YAAY,+BAA+B;AAAA,EAIvE,YAAY,UAAU,KAAK,YAAY,wEAAwE;AAAA,EAE/G,qBAAqB,UAAU,KAC5B,YAAY,gEAAgE,EAC5E,aAAa,IAAI;AAAA,EAIpB,aAAa,UAAU,KAAK,YAAY,qCAAqC;AAAA,EAI7E,WAAW,UAAU,KAAK,YAAY,iEAAiE;AAAA,EAIvG,SAAS,UAAU,KAAK,YAAY,oEAAoE;AAAA,EAIxG,UAAU,UAAU,KAAK,YAAY,iEAAiE;AAAA,EAItG,SAAS,UAAU,KAAK,YAAY,oEAAoE;AAAA,EAIxG,QAAQ,UAAU,KAAK,YAAY,qEAAqE;AAAA,EAIxG,SAAS,UAAU,KAAK,YAAY,mEAAmE;AAAA,EAIvG,SAAS,UAAU,KAAK;AAAA,IACtB;AAAA,EACF;AAAA,EAIA,OAAO,UAAU,OAAO,YAAY,iDAAiD;AAAA,EAIrF,UAAU,UAAU,KAAK,YAAY,yCAAyC;AAAA,EAI9E,UAAU,UAAU,KAAK,YAAY,4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U,UAAU,CAAC,UAAU,OAAO,UAAU,QAAQ,UAAU,MAAM,UAAU,MAAM,CAAC,EAAE;AAAA,IAC/F;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAM,UAAU,KAAK,YAAY,oDAAoD;AAAA;AAAA;AAAA;AAAA,EAIrF,WAAW,UAAU,OAAO,YAAY,kCAAkC;AAAA;AAAA;AAAA;AAAA;AAAA,EAK1E,iBAAiB,UAAU,OACxB;AAAA,IACC;AAAA;AAAA,EAEF,EACC,aAAa,GAAG;AACrB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/InputProtected/DSInputProtected.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable import/no-unresolved */\n/* eslint-disable max-lines */\n/* eslint-disable complexity */\nimport React, { useState, useCallback, useEffect } from 'react';\nimport { useDeprecateComponent } from '@elliemae/ds-utilities';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { LockUnlocked, LockLocked, VisibleView, InvisibleHide } from '@elliemae/ds-icons';\nimport { DSButton } from '@elliemae/ds-button';\nimport { DSInputGroup } from '../InputGroup/index.js';\nimport { DSInputMask } from '../InputMask/index.js';\nimport { inputProtectedProps } from './props.js';\nimport { defaultProps } from './defaultProps.js';\nimport { LEFT_ADDON_OPTIONS, RIGHT_ADDON_OPTIONS } from './options.js';\n\nconst ADDON_ICON_OPTIONS = {\n LockUnlocked: <LockUnlocked />,\n LockLocked: <LockLocked />,\n VisibleView: <VisibleView />,\n InvisibleHide: <InvisibleHide />,\n};\n\nconst DSInputProtected = ({\n leftAddon,\n rightAddon,\n onChange,\n value,\n readOnly,\n mask,\n type,\n placeholderChar = undefined,\n ...rest\n}) => {\n useDeprecateComponent({ componentName: 'ds-form/InputProtected', version: 'TBD Date: 2023 Q3' });\n\n const left = leftAddon && ADDON_ICON_OPTIONS[leftAddon];\n const right = rightAddon && ADDON_ICON_OPTIONS[rightAddon];\n const [inputLocked, setLocked] = useState(leftAddon === LEFT_ADDON_OPTIONS.LockLocked);\n const [inputHidden, setHidden] = useState(rightAddon === RIGHT_ADDON_OPTIONS.InvisibleHide);\n\n useEffect(() => {\n setLocked(leftAddon === LEFT_ADDON_OPTIONS.LockLocked);\n setHidden(rightAddon === RIGHT_ADDON_OPTIONS.InvisibleHide);\n }, [leftAddon, rightAddon]);\n\n const handleLeft = useCallback(() => {\n setLocked(!inputLocked);\n }, [inputLocked]);\n const handleRight = useCallback(() => {\n setHidden(!inputHidden);\n }, [inputHidden]);\n\n return (\n <div>\n <DSInputGroup\n leftAddon={\n left ? (\n <DSButton\n aria-label={`${inputLocked ? 'Allow' : 'Disallow'} Edition`}\n buttonType=\"secondary\"\n icon={ADDON_ICON_OPTIONS[inputLocked ? LEFT_ADDON_OPTIONS.LockLocked : LEFT_ADDON_OPTIONS.LockUnlocked]}\n onClick={handleLeft}\n />\n ) : undefined\n }\n rightAddon={\n right ? (\n <DSButton\n aria-label={`${inputHidden ? 'Show' : 'Hide'} Characters`}\n buttonType=\"secondary\"\n icon={\n ADDON_ICON_OPTIONS[inputHidden ? RIGHT_ADDON_OPTIONS.InvisibleHide : RIGHT_ADDON_OPTIONS.VisibleView]\n }\n onClick={handleRight}\n containerProps={{\n 'data-testid': 'inputprotected-show-hide-button',\n }}\n />\n ) : undefined\n }\n >\n <DSInputMask\n {...rest}\n mask={mask}\n placeholderChar={placeholderChar}\n onChange={onChange}\n disabled={left ? inputLocked : readOnly}\n type={right && inputHidden ? 'password' : type}\n value={value}\n />\n </DSInputGroup>\n </div>\n );\n};\n\nDSInputProtected.propTypes = inputProtectedProps;\nDSInputProtected.defaultProps = defaultProps;\nDSInputProtected.displayName = 'DSInputProtected';\nconst DSInputProtectedWithSchema = describe(DSInputProtected);\nDSInputProtectedWithSchema.propTypes = inputProtectedProps;\n\nexport {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,GACF;AAEJ;AAEA,iBAAiB,YAAY;AAC7B,iBAAiB,eAAe;AAChC,iBAAiB,cAAc;AAC/B,MAAM,6BAA6B,SAAS,gBAAgB;AAC5D,2BAA2B,YAAY;AAGvC,IAAO,2BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -13,6 +13,10 @@ const inputProtectedProps = {
|
|
|
13
13
|
"mask to apply"
|
|
14
14
|
),
|
|
15
15
|
type: PropTypes.oneOf(["password", "number", "text"]).description("type of input"),
|
|
16
|
+
/**
|
|
17
|
+
* PlaceholderChar: The placeholder character represents the fillable spot in the mask.
|
|
18
|
+
* The default placeholder character is underscore, _.
|
|
19
|
+
*/
|
|
16
20
|
placeholderChar: PropTypes.string.description(
|
|
17
21
|
`The placeholder character represents the fillable spot in the mask.
|
|
18
22
|
* The default placeholder character is underscore, _.`
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/InputProtected/props.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { LEFT_ADDON_OPTIONS, RIGHT_ADDON_OPTIONS } from './options.js';\n\nexport const inputProtectedProps = {\n leftAddon: PropTypes.oneOf([LEFT_ADDON_OPTIONS.LockLocked, LEFT_ADDON_OPTIONS.LockUnlocked]).description(\n 'left addon component to display',\n ),\n rightAddon: PropTypes.oneOf([RIGHT_ADDON_OPTIONS.VisibleView, RIGHT_ADDON_OPTIONS.InvisibleHide])\n .description('right addon component to display')\n .defaultValue(RIGHT_ADDON_OPTIONS.InvisibleHide),\n onChange: PropTypes.func.description('Function executed when input s value changes'),\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description('input s value'),\n readOnly: PropTypes.bool.description('Whether the input is read-only or not').defaultValue(false),\n mask: PropTypes.oneOfType([PropTypes.array, PropTypes.func, PropTypes.object, PropTypes.string]).description(\n 'mask to apply',\n ),\n type: PropTypes.oneOf(['password', 'number', 'text']).description('type of input'),\n /**\n * PlaceholderChar: The placeholder character represents the fillable spot in the mask.\n * The default placeholder character is underscore, _.\n */\n placeholderChar: PropTypes.string.description(\n `The placeholder character represents the fillable spot in the mask.\n * The default placeholder character is underscore, _.`,\n ),\n};\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB,2BAA2B;AAEjD,MAAM,sBAAsB;AAAA,EACjC,WAAW,UAAU,MAAM,CAAC,mBAAmB,YAAY,mBAAmB,YAAY,CAAC,EAAE;AAAA,IAC3F;AAAA,EACF;AAAA,EACA,YAAY,UAAU,MAAM,CAAC,oBAAoB,aAAa,oBAAoB,aAAa,CAAC,EAC7F,YAAY,kCAAkC,EAC9C,aAAa,oBAAoB,aAAa;AAAA,EACjD,UAAU,UAAU,KAAK,YAAY,8CAA8C;AAAA,EACnF,OAAO,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE,YAAY,eAAe;AAAA,EAC5F,UAAU,UAAU,KAAK,YAAY,uCAAuC,EAAE,aAAa,KAAK;AAAA,EAChG,MAAM,UAAU,UAAU,CAAC,UAAU,OAAO,UAAU,MAAM,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE;AAAA,IAC/F;AAAA,EACF;AAAA,EACA,MAAM,UAAU,MAAM,CAAC,YAAY,UAAU,MAAM,CAAC,EAAE,YAAY,eAAe;AAAA,EAKjF,iBAAiB,UAAU,OAAO;AAAA,IAChC;AAAA;AAAA,EAEF;AACF;",
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB,2BAA2B;AAEjD,MAAM,sBAAsB;AAAA,EACjC,WAAW,UAAU,MAAM,CAAC,mBAAmB,YAAY,mBAAmB,YAAY,CAAC,EAAE;AAAA,IAC3F;AAAA,EACF;AAAA,EACA,YAAY,UAAU,MAAM,CAAC,oBAAoB,aAAa,oBAAoB,aAAa,CAAC,EAC7F,YAAY,kCAAkC,EAC9C,aAAa,oBAAoB,aAAa;AAAA,EACjD,UAAU,UAAU,KAAK,YAAY,8CAA8C;AAAA,EACnF,OAAO,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE,YAAY,eAAe;AAAA,EAC5F,UAAU,UAAU,KAAK,YAAY,uCAAuC,EAAE,aAAa,KAAK;AAAA,EAChG,MAAM,UAAU,UAAU,CAAC,UAAU,OAAO,UAAU,MAAM,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE;AAAA,IAC/F;AAAA,EACF;AAAA,EACA,MAAM,UAAU,MAAM,CAAC,YAAY,UAAU,MAAM,CAAC,EAAE,YAAY,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,EAKjF,iBAAiB,UAAU,OAAO;AAAA,IAChC;AAAA;AAAA,EAEF;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,34 +1,100 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { PropTypes } from "@elliemae/ds-props-helpers";
|
|
3
3
|
const props = {
|
|
4
|
+
/** Injected props to wrapper element of component */
|
|
4
5
|
containerProps: PropTypes.object.description("Injected props to wrapper element of component"),
|
|
6
|
+
/**
|
|
7
|
+
* Whether uses auto focus or not
|
|
8
|
+
*/
|
|
5
9
|
autoFocus: PropTypes.bool.description("Whether uses auto focus or not"),
|
|
10
|
+
/** CSS class */
|
|
6
11
|
className: PropTypes.string.description("CSS class"),
|
|
12
|
+
/**
|
|
13
|
+
* Whether is disabled or not
|
|
14
|
+
*/
|
|
7
15
|
disabled: PropTypes.bool.description("Whether is disabled or not"),
|
|
16
|
+
/** HTML form name property */
|
|
8
17
|
name: PropTypes.string.description("HTML form name property"),
|
|
18
|
+
/** HTML id */
|
|
9
19
|
id: PropTypes.number.description("HTML id"),
|
|
20
|
+
/**
|
|
21
|
+
* Max length for text to be entered
|
|
22
|
+
*/
|
|
10
23
|
maxLength: PropTypes.number.description("Max length for text to be entered"),
|
|
24
|
+
/**
|
|
25
|
+
* Min length for text to be entered
|
|
26
|
+
*/
|
|
11
27
|
minLength: PropTypes.number.description("Min length for text to be entered"),
|
|
28
|
+
/**
|
|
29
|
+
* Placeholder for the text
|
|
30
|
+
*/
|
|
12
31
|
placeholder: PropTypes.string.description("Placeholder for the text"),
|
|
32
|
+
/**
|
|
33
|
+
* Allows a function that is triggered once the input text is clicked
|
|
34
|
+
*/
|
|
13
35
|
onClick: PropTypes.func.description("Allows a function that is triggered once the input text is clicked"),
|
|
36
|
+
/**
|
|
37
|
+
* Allows a function that is triggered once the input text changes
|
|
38
|
+
*/
|
|
14
39
|
onChange: PropTypes.func.description("Allows a function that is triggered once the input text changes"),
|
|
40
|
+
/**
|
|
41
|
+
* Allows a function that is triggered once the input text is focused
|
|
42
|
+
*/
|
|
15
43
|
onFocus: PropTypes.func.description("Allows a function that is triggered once the input text is focused"),
|
|
44
|
+
/**
|
|
45
|
+
* Allows a function that is triggered once the input text loses focus
|
|
46
|
+
*/
|
|
16
47
|
onBlur: PropTypes.func.description("Allows a function that is triggered once the input text loses focus"),
|
|
48
|
+
/**
|
|
49
|
+
* Allows a function that is triggered once in the input a keyboard key is released
|
|
50
|
+
*/
|
|
17
51
|
onKeyUp: PropTypes.func.description(
|
|
18
52
|
"Allows a function that is triggered once in the input a keyboard key is released"
|
|
19
53
|
),
|
|
54
|
+
/**
|
|
55
|
+
* Allows a function that is triggered once a key is being pressed
|
|
56
|
+
*/
|
|
20
57
|
onKeyDown: PropTypes.func.description("Allows a function that is triggered once a key is being pressed"),
|
|
58
|
+
/**
|
|
59
|
+
* Allows a function that is triggered once the input text is pasted
|
|
60
|
+
*/
|
|
21
61
|
onPaste: PropTypes.func.description("Allows a function that is triggered once the input text is pasted"),
|
|
62
|
+
/**
|
|
63
|
+
* Default value once the component is initialized
|
|
64
|
+
*/
|
|
22
65
|
value: PropTypes.string.description("Default value once the component is initialized"),
|
|
66
|
+
/**
|
|
67
|
+
* Whether the input text has error or not
|
|
68
|
+
*/
|
|
23
69
|
hasError: PropTypes.bool.description("Whether the input text has error or not"),
|
|
70
|
+
/**
|
|
71
|
+
* Whether the input text is required or not
|
|
72
|
+
*/
|
|
24
73
|
required: PropTypes.bool.description("Whether the input text is required or not"),
|
|
74
|
+
/**
|
|
75
|
+
* Whether the input text is read only or not
|
|
76
|
+
*/
|
|
25
77
|
readOnly: PropTypes.bool.description("Whether the input text is read only or not"),
|
|
78
|
+
/**
|
|
79
|
+
* Whether the input text style is vertical or not
|
|
80
|
+
*/
|
|
26
81
|
resize: PropTypes.string.description("Whether the input text style is vertical or not"),
|
|
82
|
+
/** ref forwarded to component */
|
|
27
83
|
innerRef: PropTypes.func.description("ref forwarded to component"),
|
|
84
|
+
/** a11y aria label */
|
|
28
85
|
ariaLabel: PropTypes.string.description("a11y aria label"),
|
|
29
86
|
ariaAutocomplete: PropTypes.string.description(""),
|
|
87
|
+
/**
|
|
88
|
+
* Type of input. Ex: textbox
|
|
89
|
+
*/
|
|
30
90
|
role: PropTypes.string.description("Type of input. Ex: textbox"),
|
|
91
|
+
/**
|
|
92
|
+
* it will show a counter/limit if the value is greater than 0
|
|
93
|
+
*/
|
|
31
94
|
characterLimitCounter: PropTypes.number.description("it will show a counter/limit if the value is greater than 0"),
|
|
95
|
+
/**
|
|
96
|
+
* Tab index html property.
|
|
97
|
+
*/
|
|
32
98
|
tabIndex: PropTypes.string.description("Tab index html property.")
|
|
33
99
|
};
|
|
34
100
|
export {
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/LargeInputText/props.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-props-helpers';\n\nexport const props = {\n /** Injected props to wrapper element of component */\n containerProps: PropTypes.object.description('Injected props to wrapper element of component'),\n /**\n * Whether uses auto focus or not\n */\n autoFocus: PropTypes.bool.description('Whether uses auto focus or not'),\n /** CSS class */\n className: PropTypes.string.description('CSS class'),\n /**\n * Whether is disabled or not\n */\n disabled: PropTypes.bool.description('Whether is disabled or not'),\n /** HTML form name property */\n name: PropTypes.string.description('HTML form name property'),\n /** HTML id */\n id: PropTypes.number.description('HTML id'),\n /**\n * Max length for text to be entered\n */\n maxLength: PropTypes.number.description('Max length for text to be entered'),\n /**\n * Min length for text to be entered\n */\n minLength: PropTypes.number.description('Min length for text to be entered'),\n /**\n * Placeholder for the text\n */\n placeholder: PropTypes.string.description('Placeholder for the text'),\n /**\n * Allows a function that is triggered once the input text is clicked\n */\n onClick: PropTypes.func.description('Allows a function that is triggered once the input text is clicked'),\n /**\n * Allows a function that is triggered once the input text changes\n */\n onChange: PropTypes.func.description('Allows a function that is triggered once the input text changes'),\n /**\n * Allows a function that is triggered once the input text is focused\n */\n onFocus: PropTypes.func.description('Allows a function that is triggered once the input text is focused'),\n /**\n * Allows a function that is triggered once the input text loses focus\n */\n onBlur: PropTypes.func.description('Allows a function that is triggered once the input text loses focus'),\n /**\n * Allows a function that is triggered once in the input a keyboard key is released\n */\n onKeyUp: PropTypes.func.description(\n 'Allows a function that is triggered once in the input a keyboard key is released',\n ),\n /**\n * Allows a function that is triggered once a key is being pressed\n */\n onKeyDown: PropTypes.func.description('Allows a function that is triggered once a key is being pressed'),\n /**\n * Allows a function that is triggered once the input text is pasted\n */\n onPaste: PropTypes.func.description('Allows a function that is triggered once the input text is pasted'),\n /**\n * Default value once the component is initialized\n */\n value: PropTypes.string.description('Default value once the component is initialized'),\n /**\n * Whether the input text has error or not\n */\n hasError: PropTypes.bool.description('Whether the input text has error or not'),\n /**\n * Whether the input text is required or not\n */\n required: PropTypes.bool.description('Whether the input text is required or not'),\n /**\n * Whether the input text is read only or not\n */\n readOnly: PropTypes.bool.description('Whether the input text is read only or not'),\n /**\n * Whether the input text style is vertical or not\n */\n resize: PropTypes.string.description('Whether the input text style is vertical or not'),\n /** ref forwarded to component */\n innerRef: PropTypes.func.description('ref forwarded to component'),\n /** a11y aria label */\n ariaLabel: PropTypes.string.description('a11y aria label'),\n ariaAutocomplete: PropTypes.string.description(''),\n /**\n * Type of input. Ex: textbox\n */\n role: PropTypes.string.description('Type of input. Ex: textbox'),\n /**\n * it will show a counter/limit if the value is greater than 0\n */\n characterLimitCounter: PropTypes.number.description('it will show a counter/limit if the value is greater than 0'),\n /**\n * Tab index html property.\n */\n tabIndex: PropTypes.string.description('Tab index html property.'),\n};\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAEnB,MAAM,QAAQ;AAAA,EAEnB,gBAAgB,UAAU,OAAO,YAAY,gDAAgD;AAAA,EAI7F,WAAW,UAAU,KAAK,YAAY,gCAAgC;AAAA,EAEtE,WAAW,UAAU,OAAO,YAAY,WAAW;AAAA,EAInD,UAAU,UAAU,KAAK,YAAY,4BAA4B;AAAA,EAEjE,MAAM,UAAU,OAAO,YAAY,yBAAyB;AAAA,EAE5D,IAAI,UAAU,OAAO,YAAY,SAAS;AAAA,EAI1C,WAAW,UAAU,OAAO,YAAY,mCAAmC;AAAA,EAI3E,WAAW,UAAU,OAAO,YAAY,mCAAmC;AAAA,EAI3E,aAAa,UAAU,OAAO,YAAY,0BAA0B;AAAA,EAIpE,SAAS,UAAU,KAAK,YAAY,oEAAoE;AAAA,EAIxG,UAAU,UAAU,KAAK,YAAY,iEAAiE;AAAA,EAItG,SAAS,UAAU,KAAK,YAAY,oEAAoE;AAAA,EAIxG,QAAQ,UAAU,KAAK,YAAY,qEAAqE;AAAA,EAIxG,SAAS,UAAU,KAAK;AAAA,IACtB;AAAA,EACF;AAAA,EAIA,WAAW,UAAU,KAAK,YAAY,iEAAiE;AAAA,EAIvG,SAAS,UAAU,KAAK,YAAY,mEAAmE;AAAA,EAIvG,OAAO,UAAU,OAAO,YAAY,iDAAiD;AAAA,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,KAAK,YAAY,oEAAoE;AAAA;AAAA;AAAA;AAAA,EAIxG,QAAQ,UAAU,KAAK,YAAY,qEAAqE;AAAA;AAAA;AAAA;AAAA,EAIxG,SAAS,UAAU,KAAK;AAAA,IACtB;AAAA,EACF;AAAA;AAAA;AAAA;AAAA,EAIA,WAAW,UAAU,KAAK,YAAY,iEAAiE;AAAA;AAAA;AAAA;AAAA,EAIvG,SAAS,UAAU,KAAK,YAAY,mEAAmE;AAAA;AAAA;AAAA;AAAA,EAIvG,OAAO,UAAU,OAAO,YAAY,iDAAiD;AAAA;AAAA;AAAA;AAAA,EAIrF,UAAU,UAAU,KAAK,YAAY,yCAAyC;AAAA;AAAA;AAAA;AAAA,EAI9E,UAAU,UAAU,KAAK,YAAY,2CAA2C;AAAA;AAAA;AAAA;AAAA,EAIhF,UAAU,UAAU,KAAK,YAAY,4CAA4C;AAAA;AAAA;AAAA;AAAA,EAIjF,QAAQ,UAAU,OAAO,YAAY,iDAAiD;AAAA;AAAA,EAEtF,UAAU,UAAU,KAAK,YAAY,4BAA4B;AAAA;AAAA,EAEjE,WAAW,UAAU,OAAO,YAAY,iBAAiB;AAAA,EACzD,kBAAkB,UAAU,OAAO,YAAY,EAAE;AAAA;AAAA;AAAA;AAAA,EAIjD,MAAM,UAAU,OAAO,YAAY,4BAA4B;AAAA;AAAA;AAAA;AAAA,EAI/D,uBAAuB,UAAU,OAAO,YAAY,6DAA6D;AAAA;AAAA;AAAA;AAAA,EAIjH,UAAU,UAAU,OAAO,YAAY,0BAA0B;AACnE;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/Radio/Circle.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { withTheme } from '@elliemae/ds-system';\n\nconst Circle = ({ checked, theme }) => {\n const r = theme.breakpoints.medium.split('px')[0] - window.innerWidth >= 0 ? 6 : 4;\n return (\n <svg width=\"100%\" height=\"100%\">\n <circle className={checked ? 'checked' : 'unchecked'} r={r} cx=\"50%\" cy=\"50%\" />\n </svg>\n );\n};\n\nconst ThemedCircle = withTheme(Circle);\nexport { ThemedCircle as Circle };\nexport default ThemedCircle;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACOjB;AANN,SAAS,iBAAiB;AAE1B,MAAM,SAAS,CAAC,EAAE,SAAS,MAAM,MAAM;AACrC,QAAM,IAAI,MAAM,YAAY,OAAO,MAAM,IAAI,EAAE,
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACOjB;AANN,SAAS,iBAAiB;AAE1B,MAAM,SAAS,CAAC,EAAE,SAAS,MAAM,MAAM;AACrC,QAAM,IAAI,MAAM,YAAY,OAAO,MAAM,IAAI,EAAE,CAAC,IAAI,OAAO,cAAc,IAAI,IAAI;AACjF,SACE,oBAAC,SAAI,OAAM,QAAO,QAAO,QACvB,8BAAC,YAAO,WAAW,UAAU,YAAY,aAAa,GAAM,IAAG,OAAM,IAAG,OAAM,GAChF;AAEJ;AAEA,MAAM,eAAe,UAAU,MAAM;AAErC,IAAO,iBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -94,21 +94,51 @@ DSRadio.defaultProps = {
|
|
|
94
94
|
tabIndex: 0
|
|
95
95
|
};
|
|
96
96
|
const radioProps = {
|
|
97
|
+
/** Injected props to wrapper element of component */
|
|
97
98
|
containerProps: PropTypes.object.description("Injected props to wrapper element of component"),
|
|
99
|
+
/** css class prop */
|
|
98
100
|
className: PropTypes.string.description("css class prop"),
|
|
101
|
+
/** name property to manage form */
|
|
99
102
|
name: PropTypes.string.description("name property to manage form"),
|
|
103
|
+
/**
|
|
104
|
+
* Displayable label for the radio
|
|
105
|
+
*/
|
|
100
106
|
labelText: PropTypes.string.description("Displayable label for the radio"),
|
|
107
|
+
/** HTMLFOR property to manage form */
|
|
101
108
|
htmlFor: PropTypes.element.description("HTMLFOR property to manage form"),
|
|
109
|
+
/**
|
|
110
|
+
* Whether the radio has error or not
|
|
111
|
+
*/
|
|
102
112
|
hasError: PropTypes.bool.description("Whether the radio has error or not"),
|
|
113
|
+
/**
|
|
114
|
+
* Whether the radio is read only or not
|
|
115
|
+
*/
|
|
103
116
|
readOnly: PropTypes.bool.description("Whether the radio is read only or not"),
|
|
117
|
+
/**
|
|
118
|
+
* Whether the radio is disabled or not
|
|
119
|
+
*/
|
|
104
120
|
disabled: PropTypes.bool.description("Whether the radio is disabled or not"),
|
|
121
|
+
/**
|
|
122
|
+
* Whether the radio is checked or not
|
|
123
|
+
*/
|
|
105
124
|
checked: PropTypes.bool.description("Whether the radio is checked or not"),
|
|
125
|
+
/**
|
|
126
|
+
* Value that takes the checkbox if it is checked
|
|
127
|
+
*/
|
|
106
128
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).description(
|
|
107
129
|
"Value that takes the checkbox if it is checked"
|
|
108
130
|
).isRequired,
|
|
131
|
+
/**
|
|
132
|
+
* Allows a function that is triggered once the radio changes
|
|
133
|
+
*/
|
|
109
134
|
onChange: PropTypes.func.description("Allows a function that is triggered once the radio changes"),
|
|
135
|
+
/**
|
|
136
|
+
* Optional, if you want a checkbox customized
|
|
137
|
+
*/
|
|
110
138
|
children: PropTypes.node.description("Optional, if you want a checkbox customized"),
|
|
139
|
+
/** HTML tabindex to manage focus */
|
|
111
140
|
tabIndex: PropTypes.number.description("HTML tabindex to manage focus"),
|
|
141
|
+
/** style override object */
|
|
112
142
|
style: PropTypes.object.description("style override object")
|
|
113
143
|
};
|
|
114
144
|
DSRadio.propTypes = radioProps;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/Radio/DSRadio.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\n/* eslint-disable react/no-unknown-property */\nimport React, { useRef } from 'react';\nimport { useDeprecateComponent } from '@elliemae/ds-utilities';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport { Circle } from './Circle.js';\n\ninterface DSRadioT {\n [x: string]: unknown;\n innerRef?: React.MutableRefObject<HTMLInputElement>;\n containerProps?: { [x: string]: unknown };\n className?: string;\n style?: React.CSSProperties;\n labelText?: string;\n htmlFor?: string;\n hasError?: boolean;\n readOnly?: boolean;\n disabled?: boolean;\n checked?: boolean;\n value?: string;\n name?: string;\n onKeyDown?: React.KeyboardEventHandler<HTMLSpanElement>;\n onChange?: React.ChangeEventHandler<HTMLInputElement>;\n children?: React.ReactNode | React.ReactNode[];\n tabIndex?: number;\n}\n\nconst DSRadio = ({\n containerProps,\n className,\n style,\n labelText,\n htmlFor,\n hasError,\n readOnly,\n disabled,\n checked,\n value,\n name,\n onChange,\n children,\n tabIndex,\n innerRef,\n ...otherProps\n}: DSRadioT) => {\n useDeprecateComponent({ componentName: 'ds-form/DSRadio', version: '3.x Date: 2023 Q1' });\n\n // this will be solved when we move to styled components...\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const { cssClassName, classNameElement } = convertPropToCssClassName('form-element-radio', className, {\n hasError,\n readOnly,\n disabled,\n });\n const checkRef = useRef<HTMLInputElement | null>(null);\n return (\n <div {...containerProps} className={cssClassName}>\n <label className={classNameElement('label')} htmlFor={htmlFor}>\n <input\n {...otherProps}\n ref={checkRef}\n aria-disabled={disabled}\n checked={disabled ? false : checked}\n className={classNameElement('input')}\n disabled={disabled}\n name={name}\n onChange={(e) => {\n if (!readOnly && !disabled) {\n onChange(e);\n }\n }}\n readOnly={readOnly}\n tabIndex={-1}\n type=\"radio\"\n value={value}\n />\n <span\n ref={innerRef}\n aria-checked={checked}\n aria-disabled={disabled}\n className={classNameElement('input-button')}\n onKeyDown={(e) => {\n // really really bad pattern...\n // overwriting the target to point to the hidden input because the focus is on the span and not on the input...\n // we will solve this with a v2 of this when we move to controlled + styled components...\n e.target = checkRef.current;\n if (disabled) return;\n if (e.key === 'Enter' || e.keyCode === 32) {\n onChange(e);\n } else if (otherProps.onKeyDown) {\n otherProps.onKeyDown(e);\n }\n }}\n role=\"radio\"\n style={style}\n tabIndex={disabled ? -1 : tabIndex}\n // value={value} // should be unused?\n >\n <Circle checked={checked} />\n </span>\n <span className={classNameElement('label-text')}>{labelText}</span>\n </label>\n {children && <div className={classNameElement('radio-children')}>{children}</div>}\n </div>\n );\n};\n\nDSRadio.defaultProps = {\n containerProps: {},\n className: '',\n hasError: false,\n readOnly: false,\n disabled: false,\n checked: false,\n name: '',\n onChange: () => null,\n children: null,\n tabIndex: 0,\n};\n\nconst radioProps = {\n /** Injected props to wrapper element of component */\n containerProps: PropTypes.object.description('Injected props to wrapper element of component'),\n /** css class prop */\n className: PropTypes.string.description('css class prop'),\n /** name property to manage form */\n name: PropTypes.string.description('name property to manage form'),\n /**\n * Displayable label for the radio\n */\n labelText: PropTypes.string.description('Displayable label for the radio'),\n /** HTMLFOR property to manage form */\n htmlFor: PropTypes.element.description('HTMLFOR property to manage form'),\n /**\n * Whether the radio has error or not\n */\n hasError: PropTypes.bool.description('Whether the radio has error or not'),\n /**\n * Whether the radio is read only or not\n */\n readOnly: PropTypes.bool.description('Whether the radio is read only or not'),\n /**\n * Whether the radio is disabled or not\n */\n disabled: PropTypes.bool.description('Whether the radio is disabled or not'),\n /**\n * Whether the radio is checked or not\n */\n checked: PropTypes.bool.description('Whether the radio is checked or not'),\n /**\n * Value that takes the checkbox if it is checked\n */\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).description(\n 'Value that takes the checkbox if it is checked',\n ).isRequired,\n /**\n * Allows a function that is triggered once the radio changes\n */\n onChange: PropTypes.func.description('Allows a function that is triggered once the radio changes'),\n /**\n * Optional, if you want a checkbox customized\n */\n children: PropTypes.node.description('Optional, if you want a checkbox customized'),\n /** HTML tabindex to manage focus */\n tabIndex: PropTypes.number.description('HTML tabindex to manage focus'),\n /** style override object */\n style: PropTypes.object.description('style override object'),\n};\n\nDSRadio.propTypes = radioProps;\nDSRadio.displayName = 'DSRadio';\nconst DSRadioWithSchema = describe(DSRadio);\nDSRadioWithSchema.propTypes = radioProps;\n\nexport { DSRadio, DSRadioWithSchema };\n\nexport default DSRadio;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;AC0DjB,SACE,KADF;AAxDN,SAAgB,cAAc;AAC9B,SAAS,6BAA6B;AACtC,SAAS,WAAW,gBAAgB;AACpC,SAAS,iCAAiC;AAC1C,SAAS,cAAc;AAsBvB,MAAM,UAAU,CAAC;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;AC0DjB,SACE,KADF;AAxDN,SAAgB,cAAc;AAC9B,SAAS,6BAA6B;AACtC,SAAS,WAAW,gBAAgB;AACpC,SAAS,iCAAiC;AAC1C,SAAS,cAAc;AAsBvB,MAAM,UAAU,CAAC;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAgB;AACd,wBAAsB,EAAE,eAAe,mBAAmB,SAAS,oBAAoB,CAAC;AAIxF,QAAM,EAAE,cAAc,iBAAiB,IAAI,0BAA0B,sBAAsB,WAAW;AAAA,IACpG;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AACD,QAAM,WAAW,OAAgC,IAAI;AACrD,SACE,qBAAC,SAAK,GAAG,gBAAgB,WAAW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AAa;AAAA;AAAA,EAEjB,gBAAgB,UAAU,OAAO,YAAY,gDAAgD;AAAA;AAAA,EAE7F,WAAW,UAAU,OAAO,YAAY,gBAAgB;AAAA;AAAA,EAExD,MAAM,UAAU,OAAO,YAAY,8BAA8B;AAAA;AAAA;AAAA;AAAA,EAIjE,WAAW,UAAU,OAAO,YAAY,iCAAiC;AAAA;AAAA,EAEzE,SAAS,UAAU,QAAQ,YAAY,iCAAiC;AAAA;AAAA;AAAA;AAAA,EAIxE,UAAU,UAAU,KAAK,YAAY,oCAAoC;AAAA;AAAA;AAAA;AAAA,EAIzE,UAAU,UAAU,KAAK,YAAY,uCAAuC;AAAA;AAAA;AAAA;AAAA,EAI5E,UAAU,UAAU,KAAK,YAAY,sCAAsC;AAAA;AAAA;AAAA;AAAA,EAI3E,SAAS,UAAU,KAAK,YAAY,qCAAqC;AAAA;AAAA;AAAA;AAAA,EAIzE,OAAO,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE;AAAA,IACjF;AAAA,EACF,EAAE;AAAA;AAAA;AAAA;AAAA,EAIF,UAAU,UAAU,KAAK,YAAY,4DAA4D;AAAA;AAAA;AAAA;AAAA,EAIjG,UAAU,UAAU,KAAK,YAAY,6CAA6C;AAAA;AAAA,EAElF,UAAU,UAAU,OAAO,YAAY,+BAA+B;AAAA;AAAA,EAEtE,OAAO,UAAU,OAAO,YAAY,uBAAuB;AAC7D;AAEA,QAAQ,YAAY;AACpB,QAAQ,cAAc;AACtB,MAAM,oBAAoB,SAAS,OAAO;AAC1C,kBAAkB,YAAY;AAI9B,IAAO,kBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/RadioGroup/DSRadioGroup.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { GroupItem, Group } from '@elliemae/ds-shared';\nimport { DSFormItemLayout } from '../FormItem/index.js';\nimport { DSRadio } from '../Radio/index.js';\nimport { props as rprops } from './props.js';\nimport { defaultProps } from './defaultProps.js';\n\nconst emClassPrefix = 'em-ds';\nconst baseClass = `${emClassPrefix}-radio-group`;\n\nconst RadioItem = (props) => (\n <GroupItem\n render={(context) => (\n <DSRadio\n {...props}\n checked={context.activeValue === props.value}\n disabled={context.disabled || props.disabled}\n onChange={context.onChange}\n />\n )}\n />\n);\n\nconst DSRadioGroup = ({\n containerProps,\n onChange,\n activeValue,\n children,\n orientation,\n disabled,\n truncateText,\n labelProps,\n}) => {\n const checkRefs = [];\n const count = React.Children.count(children);\n const onKeyDown = (e, index) => {\n if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') {\n if (index === 0) checkRefs[count - 1].focus();\n else checkRefs[index - 1].focus();\n }\n if (e.key === 'ArrowRight' || e.key === 'ArrowDown') {\n if (index === count - 1) checkRefs[0].focus();\n else checkRefs[index + 1].focus();\n }\n };\n const group = (\n <Group activeValue={activeValue} disabled={disabled} onChange={onChange}>\n <div\n data-testid=\"ds-radiogroup\"\n {...(labelProps && labelProps.labelText ? {} : containerProps)}\n className={`${baseClass} ${baseClass}--${orientation}`}\n role=\"group\"\n >\n {React.Children.map(\n children,\n (child, index) => (\n <RadioItem\n {...child.props}\n innerRef={(t) => {\n checkRefs.push(t);\n }}\n onKeyDown={(e) => onKeyDown(e, index)}\n />\n ),\n null,\n )}\n </div>\n </Group>\n );\n\n if (labelProps && labelProps.labelText) {\n return (\n <div className={`${baseClass}-form-item-layout-wrapper`} {...containerProps} role=\"group\">\n <DSFormItemLayout {...labelProps} inputComponent={group} onChange={onChange} truncateText={truncateText} />\n </div>\n );\n }\n return group;\n};\n\nDSRadioGroup.propTypes = rprops;\nDSRadioGroup.defaultProps = defaultProps;\nDSRadioGroup.displayName = 'DSRadioGroup';\nconst DSRadioGroupWithSchema = describe(DSRadioGroup);\nDSRadioGroupWithSchema.propTypes = rprops;\n\nexport { DSRadioGroup, DSRadioGroupWithSchema };\n\nexport default DSRadioGroup;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACcjB;AAdN,OAAOA,YAAW;AAClB,SAAS,gBAAgB;AACzB,SAAS,WAAW,aAAa;AACjC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AACxB,SAAS,SAAS,cAAc;AAChC,SAAS,oBAAoB;AAE7B,MAAM,gBAAgB;AACtB,MAAM,YAAY,GAAG;AAErB,MAAM,YAAY,CAAC,UACjB;AAAA,EAAC;AAAA;AAAA,IACC,QAAQ,CAAC,YACP;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,SAAS,QAAQ,gBAAgB,MAAM;AAAA,QACvC,UAAU,QAAQ,YAAY,MAAM;AAAA,QACpC,UAAU,QAAQ;AAAA;AAAA,IACpB;AAAA;AAEJ;AAGF,MAAM,eAAe,CAAC;AAAA,EACpB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,YAAY,CAAC;AACnB,QAAM,QAAQA,OAAM,SAAS,MAAM,QAAQ;AAC3C,QAAM,YAAY,CAAC,GAAG,UAAU;AAC9B,QAAI,EAAE,QAAQ,eAAe,EAAE,QAAQ,WAAW;AAChD,UAAI,UAAU;AAAG,kBAAU,QAAQ,
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACcjB;AAdN,OAAOA,YAAW;AAClB,SAAS,gBAAgB;AACzB,SAAS,WAAW,aAAa;AACjC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AACxB,SAAS,SAAS,cAAc;AAChC,SAAS,oBAAoB;AAE7B,MAAM,gBAAgB;AACtB,MAAM,YAAY,GAAG;AAErB,MAAM,YAAY,CAAC,UACjB;AAAA,EAAC;AAAA;AAAA,IACC,QAAQ,CAAC,YAC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WAAW,WAAW;AACtC,WACE,oBAAC,SAAI,WAAW,GAAG,sCAAuC,GAAG,gBAAgB,MAAK,SAChF,8BAAC,oBAAkB,GAAG,YAAY,gBAAgB,OAAO,UAAoB,cAA4B,GAC3G;AAAA,EAEJ;AACA,SAAO;AACT;AAEA,aAAa,YAAY;AACzB,aAAa,eAAe;AAC5B,aAAa,cAAc;AAC3B,MAAM,yBAAyB,SAAS,YAAY;AACpD,uBAAuB,YAAY;AAInC,IAAO,uBAAQ;",
|
|
6
6
|
"names": ["React"]
|
|
7
7
|
}
|
|
@@ -2,11 +2,27 @@ import * as React from "react";
|
|
|
2
2
|
import { PropTypes } from "@elliemae/ds-props-helpers";
|
|
3
3
|
import { orientation as radioGroupOrientation } from "@elliemae/ds-shared";
|
|
4
4
|
const props = {
|
|
5
|
+
/** Inject props to component wrapper */
|
|
5
6
|
containerProps: PropTypes.object.description("Inject props to component wrapper"),
|
|
7
|
+
/**
|
|
8
|
+
* Allows a function that is triggered once the radio group changes
|
|
9
|
+
*/
|
|
6
10
|
onChange: PropTypes.func.description("Allows a function that is triggered once the radio group changes"),
|
|
11
|
+
/**
|
|
12
|
+
* Selected default active value
|
|
13
|
+
*/
|
|
7
14
|
activeValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description("Selected default active value"),
|
|
15
|
+
/**
|
|
16
|
+
* Radio group items to show of type DSRadio
|
|
17
|
+
*/
|
|
8
18
|
children: PropTypes.arrayOf(PropTypes.element).isRequired.description("Radio group items to show of type DSRadio"),
|
|
19
|
+
/**
|
|
20
|
+
* ['horizontal', 'vertical']
|
|
21
|
+
*/
|
|
9
22
|
orientation: PropTypes.oneOf(radioGroupOrientation).description("['horizontal', 'vertical']"),
|
|
23
|
+
/**
|
|
24
|
+
* Whether the radio group is disabled or not
|
|
25
|
+
*/
|
|
10
26
|
disabled: PropTypes.bool.description(""),
|
|
11
27
|
labelProps: PropTypes.shape({
|
|
12
28
|
feedbackMessage: PropTypes.string,
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/RadioGroup/props.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { orientation as radioGroupOrientation } from '@elliemae/ds-shared';\n\nexport const props = {\n /** Inject props to component wrapper */\n containerProps: PropTypes.object.description('Inject props to component wrapper'),\n /**\n * Allows a function that is triggered once the radio group changes\n */\n onChange: PropTypes.func.description('Allows a function that is triggered once the radio group changes'),\n /**\n * Selected default active value\n */\n activeValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description('Selected default active value'),\n /**\n * Radio group items to show of type DSRadio\n */\n children: PropTypes.arrayOf(PropTypes.element).isRequired.description('Radio group items to show of type DSRadio'),\n /**\n * ['horizontal', 'vertical']\n */\n orientation: PropTypes.oneOf(radioGroupOrientation).description(\"['horizontal', 'vertical']\"),\n /**\n * Whether the radio group is disabled or not\n */\n disabled: PropTypes.bool.description(''),\n labelProps: PropTypes.shape({\n feedbackMessage: PropTypes.string,\n labelText: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n required: PropTypes.bool,\n }).description('Whether the radio group is disabled or not'),\n};\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAC1B,SAAS,eAAe,6BAA6B;AAE9C,MAAM,QAAQ;AAAA,EAEnB,gBAAgB,UAAU,OAAO,YAAY,mCAAmC;AAAA,EAIhF,UAAU,UAAU,KAAK,YAAY,kEAAkE;AAAA,EAIvG,aAAa,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE,YAAY,+BAA+B;AAAA,EAIlH,UAAU,UAAU,QAAQ,UAAU,OAAO,EAAE,WAAW,YAAY,2CAA2C;AAAA,EAIjH,aAAa,UAAU,MAAM,qBAAqB,EAAE,YAAY,4BAA4B;AAAA,EAI5F,UAAU,UAAU,KAAK,YAAY,EAAE;AAAA,EACvC,YAAY,UAAU,MAAM;AAAA,IAC1B,iBAAiB,UAAU;AAAA,IAC3B,WAAW,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,OAAO,CAAC;AAAA,IACpE,UAAU,UAAU;AAAA,EACtB,CAAC,EAAE,YAAY,4CAA4C;AAC7D;",
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAC1B,SAAS,eAAe,6BAA6B;AAE9C,MAAM,QAAQ;AAAA;AAAA,EAEnB,gBAAgB,UAAU,OAAO,YAAY,mCAAmC;AAAA;AAAA;AAAA;AAAA,EAIhF,UAAU,UAAU,KAAK,YAAY,kEAAkE;AAAA;AAAA;AAAA;AAAA,EAIvG,aAAa,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE,YAAY,+BAA+B;AAAA;AAAA;AAAA;AAAA,EAIlH,UAAU,UAAU,QAAQ,UAAU,OAAO,EAAE,WAAW,YAAY,2CAA2C;AAAA;AAAA;AAAA;AAAA,EAIjH,aAAa,UAAU,MAAM,qBAAqB,EAAE,YAAY,4BAA4B;AAAA;AAAA;AAAA;AAAA,EAI5F,UAAU,UAAU,KAAK,YAAY,EAAE;AAAA,EACvC,YAAY,UAAU,MAAM;AAAA,IAC1B,iBAAiB,UAAU;AAAA,IAC3B,WAAW,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,OAAO,CAAC;AAAA,IACpE,UAAU,UAAU;AAAA,EACtB,CAAC,EAAE,YAAY,4CAA4C;AAC7D;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -45,18 +45,41 @@ DSTimeInput.defaultProps = {
|
|
|
45
45
|
clearable: true
|
|
46
46
|
};
|
|
47
47
|
const props = {
|
|
48
|
+
/** Injected props to wrapper element of component */
|
|
48
49
|
containerProps: PropTypes.object.description("Injected props to wrapper element of component"),
|
|
50
|
+
/**
|
|
51
|
+
* Allows a function that is triggered once the time input changes
|
|
52
|
+
*/
|
|
49
53
|
onChange: PropTypes.func.description("Allows a function that is triggered once the time input changes"),
|
|
54
|
+
/** a11y aria label */
|
|
50
55
|
"aria-label": PropTypes.string.description("a11y aria label"),
|
|
56
|
+
/** style object for time input wrapper */
|
|
51
57
|
style: PropTypes.object.description("style object for time input wrapper"),
|
|
58
|
+
/** inner ref for time inpot wrapper */
|
|
52
59
|
innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })]).description(
|
|
53
60
|
"inner ref for time input wrapper"
|
|
54
61
|
),
|
|
62
|
+
/** class for time input */
|
|
55
63
|
className: PropTypes.string.description("class for time input"),
|
|
64
|
+
/**
|
|
65
|
+
* Valid time format
|
|
66
|
+
*/
|
|
56
67
|
format: PropTypes.string.description("Valid time format"),
|
|
68
|
+
/**
|
|
69
|
+
* Default value once the component is initialized
|
|
70
|
+
*/
|
|
57
71
|
value: PropTypes.string.description("Default value once the component is initialized"),
|
|
72
|
+
/**
|
|
73
|
+
* Whether the time input is clearable or not
|
|
74
|
+
*/
|
|
58
75
|
clearable: PropTypes.bool.description("Whether the time input is clearable or not"),
|
|
76
|
+
/**
|
|
77
|
+
* Whether the time input is disabled or not
|
|
78
|
+
*/
|
|
59
79
|
disabled: PropTypes.bool.description("Whether the time input is disabled or not"),
|
|
80
|
+
/**
|
|
81
|
+
* Aria label
|
|
82
|
+
*/
|
|
60
83
|
ariaLabel: PropTypes.string.description("Aria label")
|
|
61
84
|
};
|
|
62
85
|
DSTimeInput.propTypes = props;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/TimeInput/DSTimeInput.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { DSInput } from '../Input/index.js';\nimport { TimeInputImpl } from './TimeInputImpl.js';\n\nconst DSTimeInput = ({\n containerProps = {},\n innerRef,\n className = '',\n style = {},\n onChange = () => null,\n format,\n value = '',\n clearable = false,\n disabled = false,\n ariaLabel = 'Time input',\n}) => (\n <DSInput\n className={className}\n clearable={clearable}\n containerProps={containerProps}\n customInputType={({ onChange: inputOnChange, ...restInputProps }) => (\n <TimeInputImpl\n aria-label={ariaLabel}\n disabled={disabled}\n format={format}\n onChange={(time) => inputOnChange(time)}\n {...restInputProps}\n style={style}\n />\n )}\n disabled={disabled}\n innerRef={innerRef}\n isShowElipsisActive={false}\n onChange={onChange}\n onClear={() => onChange(null)}\n value={value}\n />\n);\n\nDSTimeInput.defaultProps = {\n format: 'hh:mm:ss',\n disabled: false,\n clearable: true,\n};\n\nconst props = {\n /** Injected props to wrapper element of component */\n containerProps: PropTypes.object.description('Injected props to wrapper element of component'),\n /**\n * Allows a function that is triggered once the time input changes\n */\n onChange: PropTypes.func.description('Allows a function that is triggered once the time input changes'),\n /** a11y aria label */\n 'aria-label': PropTypes.string.description('a11y aria label'),\n /** style object for time input wrapper */\n style: PropTypes.object.description('style object for time input wrapper'),\n /** inner ref for time inpot wrapper */\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })]).description(\n 'inner ref for time input wrapper',\n ),\n /** class for time input */\n className: PropTypes.string.description('class for time input'),\n /**\n * Valid time format\n */\n format: PropTypes.string.description('Valid time format'),\n /**\n * Default value once the component is initialized\n */\n value: PropTypes.string.description('Default value once the component is initialized'),\n /**\n * Whether the time input is clearable or not\n */\n clearable: PropTypes.bool.description('Whether the time input is clearable or not'),\n /**\n * Whether the time input is disabled or not\n */\n disabled: PropTypes.bool.description('Whether the time input is disabled or not'),\n /**\n * Aria label\n */\n ariaLabel: PropTypes.string.description('Aria label'),\n};\n\nDSTimeInput.propTypes = props;\nDSTimeInput.displayName = 'DSTimeInput';\nconst DSTimeInputWithSchema = describe(DSTimeInput);\nDSTimeInputWithSchema.propTypes = props;\n\nexport { TimeInputImpl, D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ACV,WAAW;AACb;AAEA,MAAM,QAAQ;AAAA;AAAA,EAEZ,gBAAgB,UAAU,OAAO,YAAY,gDAAgD;AAAA;AAAA;AAAA;AAAA,EAI7F,UAAU,UAAU,KAAK,YAAY,iEAAiE;AAAA;AAAA,EAEtG,cAAc,UAAU,OAAO,YAAY,iBAAiB;AAAA;AAAA,EAE5D,OAAO,UAAU,OAAO,YAAY,qCAAqC;AAAA;AAAA,EAEzE,UAAU,UAAU,UAAU,CAAC,UAAU,MAAM,UAAU,MAAM,EAAE,SAAS,UAAU,IAAI,CAAC,CAAC,CAAC,EAAE;AAAA,IAC3F;AAAA,EACF;AAAA;AAAA,EAEA,WAAW,UAAU,OAAO,YAAY,sBAAsB;AAAA;AAAA;AAAA;AAAA,EAI9D,QAAQ,UAAU,OAAO,YAAY,mBAAmB;AAAA;AAAA;AAAA;AAAA,EAIxD,OAAO,UAAU,OAAO,YAAY,iDAAiD;AAAA;AAAA;AAAA;AAAA,EAIrF,WAAW,UAAU,KAAK,YAAY,4CAA4C;AAAA;AAAA;AAAA;AAAA,EAIlF,UAAU,UAAU,KAAK,YAAY,2CAA2C;AAAA;AAAA;AAAA;AAAA,EAIhF,WAAW,UAAU,OAAO,YAAY,YAAY;AACtD;AAEA,YAAY,YAAY;AACxB,YAAY,cAAc;AAC1B,MAAM,wBAAwB,SAAS,WAAW;AAClD,sBAAsB,YAAY;AAIlC,IAAO,sBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -44,14 +44,41 @@ const TimeInputImpl = ({
|
|
|
44
44
|
};
|
|
45
45
|
TimeInputImpl.propTypes = {
|
|
46
46
|
containerProps: PropTypes.shape({}),
|
|
47
|
+
/**
|
|
48
|
+
* Inner reference to the input
|
|
49
|
+
*/
|
|
47
50
|
innerRef: PropTypes.any,
|
|
51
|
+
/**
|
|
52
|
+
* Classes to add to the container
|
|
53
|
+
*/
|
|
48
54
|
className: PropTypes.string,
|
|
55
|
+
/**
|
|
56
|
+
* Styles to add to the container
|
|
57
|
+
*/
|
|
49
58
|
style: PropTypes.shape({}),
|
|
59
|
+
/**
|
|
60
|
+
* Allows a function that is triggered once the time input changes
|
|
61
|
+
*/
|
|
50
62
|
onChange: PropTypes.func,
|
|
63
|
+
/**
|
|
64
|
+
* Valid time format
|
|
65
|
+
*/
|
|
51
66
|
format: PropTypes.string,
|
|
67
|
+
/**
|
|
68
|
+
* Default value once the component is initialized
|
|
69
|
+
*/
|
|
52
70
|
value: PropTypes.string,
|
|
71
|
+
/**
|
|
72
|
+
* Whether the time input is clearable or not
|
|
73
|
+
*/
|
|
53
74
|
clearable: PropTypes.bool,
|
|
75
|
+
/**
|
|
76
|
+
* Whether the time input is disabled or not
|
|
77
|
+
*/
|
|
54
78
|
disabled: PropTypes.bool,
|
|
79
|
+
/**
|
|
80
|
+
* Aria label to add to the container
|
|
81
|
+
*/
|
|
55
82
|
"aria-label": PropTypes.bool,
|
|
56
83
|
"arial-label": PropTypes.bool
|
|
57
84
|
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/TimeInput/TimeInputImpl.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useRef, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport { getVisibleTimeByFormat } from '@elliemae/ds-utilities';\nimport memoizeOne from 'memoize-one';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { TimeInputs } from './TimeInputs.js';\n\nconst blockName = 'input-time';\n\nconst InputTimeContainer = aggregatedClasses('div')(blockName);\n\nconst TimeInputImpl = ({\n format,\n innerRef,\n onChange,\n className,\n value,\n disabled,\n clearable,\n 'arial-label': ariaLabel,\n}) => {\n const getVisibleTimeInputs = memoizeOne((formatValue) => getVisibleTimeByFormat(formatValue));\n let inputsContainer = useRef();\n\n const handleFocus = (e) => {\n if (!e.target.type) {\n inputsContainer.querySelector('input').focus();\n }\n };\n\n const visibleInputs = useMemo(() => getVisibleTimeInputs(format));\n\n return (\n <InputTimeContainer className={className} disabled={disabled} innerRef={innerRef} onClick={handleFocus}>\n <TimeInputs\n aria-label={ariaLabel}\n clearable={clearable}\n disabled={disabled}\n format={format}\n innerRef={(node) => {\n inputsContainer = node;\n }}\n onChange={onChange}\n time={value}\n {...visibleInputs}\n />\n </InputTimeContainer>\n );\n};\n\nTimeInputImpl.propTypes = {\n containerProps: PropTypes.shape({}),\n /**\n * Inner reference to the input\n */\n innerRef: PropTypes.any,\n /**\n * Classes to add to the container\n */\n className: PropTypes.string,\n /**\n * Styles to add to the container\n */\n style: PropTypes.shape({}),\n /**\n * Allows a function that is triggered once the time input changes\n */\n onChange: PropTypes.func,\n /**\n * Valid time format\n */\n format: PropTypes.string,\n /**\n * Default value once the component is initialized\n */\n value: PropTypes.string,\n /**\n * Whether the time input is clearable or not\n */\n clearable: PropTypes.bool,\n /**\n * Whether the time input is disabled or not\n */\n disabled: PropTypes.bool,\n /**\n * Aria label to add to the container\n */\n 'aria-label': PropTypes.bool,\n 'arial-label': PropTypes.bool,\n};\n\nexport { TimeInputImpl };\nexport default TimeInputImpl;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACkCjB;AAlCN,SAAgB,QAAQ,eAAe;AACvC,OAAO,eAAe;AACtB,SAAS,8BAA8B;AACvC,OAAO,gBAAgB;AACvB,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAE3B,MAAM,YAAY;AAElB,MAAM,qBAAqB,kBAAkB,KAAK,EAAE,SAAS;AAE7D,MAAM,gBAAgB,CAAC;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AACjB,MAAM;AACJ,QAAM,uBAAuB,WAAW,CAAC,gBAAgB,uBAAuB,WAAW,CAAC;AAC5F,MAAI,kBAAkB,OAAO;AAE7B,QAAM,cAAc,CAAC,MAAM;A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