@elliemae/ds-form 2.0.0-alpha.1 → 2.0.0-alpha.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/cjs/Checkbox/DSCheckbox.js +20 -17
- package/cjs/Checkbox/elements/CheckMark.js +1 -1
- package/cjs/Checkbox/index.js +2 -4
- package/cjs/CheckboxGroup/DSCheckboxGroup.js +28 -20
- package/cjs/CheckboxGroup/index.js +1 -1
- package/cjs/ComboBox/DSComboBox.js +3 -7
- package/cjs/ComboBox/index.js +6 -7
- package/cjs/ComboBox/v1/DSComboBox.js +49 -47
- package/cjs/ComboBox/v1/components/AllOption.js +8 -3
- package/cjs/ComboBox/v1/components/ClearIndicator.js +3 -4
- package/cjs/ComboBox/v1/components/Control.js +15 -7
- package/cjs/ComboBox/v1/components/CustomOption.js +16 -10
- package/cjs/ComboBox/v1/components/CustomOptionMulti.js +17 -11
- package/cjs/ComboBox/v1/components/DropdownIndicator.js +10 -6
- package/cjs/ComboBox/v1/components/MenuList.js +10 -4
- package/cjs/ComboBox/v1/components/MultiSelectHeader.js +5 -2
- package/cjs/ComboBox/v1/components/MultiValueLabel.js +5 -4
- package/cjs/ComboBox/v1/components/MultiValueRemove.js +6 -1
- package/cjs/ComboBox/v1/components/SelectMenu.js +30 -22
- package/cjs/ComboBox/v1/components/SingleValueLabel.js +5 -4
- package/cjs/ComboBox/v1/components/ValueContainer.js +9 -4
- package/cjs/ComboBox/v1/components/calculateWidth.js +4 -0
- package/cjs/ComboBox/v1/components/getoptions.js +11 -6
- package/cjs/ComboBox/v1/index.js +3 -7
- package/cjs/ComboBox/v1/withSelectStringValueConverter.js +29 -17
- package/cjs/ComboBox/v2/Combobox.js +23 -17
- package/cjs/ComboBox/v2/components/AllOption.js +8 -3
- package/cjs/ComboBox/v2/components/ClearIndicator.js +10 -6
- package/cjs/ComboBox/v2/components/Content.js +8 -3
- package/cjs/ComboBox/v2/components/Control.js +15 -7
- package/cjs/ComboBox/v2/components/CustomOption.js +18 -12
- package/cjs/ComboBox/v2/components/CustomOptionMulti.js +23 -15
- package/cjs/ComboBox/v2/components/DropdownIndicator.js +12 -7
- package/cjs/ComboBox/v2/components/GroupHeading.js +9 -4
- package/cjs/ComboBox/v2/components/IndicatorSeparator.js +13 -5
- package/cjs/ComboBox/v2/components/LoadingIndicator.js +3 -3
- package/cjs/ComboBox/v2/components/MenuList.js +11 -5
- package/cjs/ComboBox/v2/components/MultiSelectHeader.js +15 -12
- package/cjs/ComboBox/v2/components/MultiValueLabel.js +5 -4
- package/cjs/ComboBox/v2/components/MultiValueRemove.js +7 -2
- package/cjs/ComboBox/v2/components/SelectMenu.js +9 -4
- package/cjs/ComboBox/v2/components/SingleValueLabel.js +5 -4
- package/cjs/ComboBox/v2/components/ValueContainer.js +11 -5
- package/cjs/ComboBox/v2/components/calculateWidth.js +4 -0
- package/cjs/ComboBox/v2/components/getoptions.js +11 -6
- package/cjs/ComboBox/v2/components/useMenuListHeight.js +5 -0
- package/cjs/ComboBox/v2/context.js +1 -1
- package/cjs/ComboBox/v2/index.js +1 -1
- package/cjs/ComboBox/v3/ComboBox.js +33 -0
- package/cjs/ComboBox/v3/ComboBoxCTX.js +55 -0
- package/cjs/ComboBox/v3/ComboboxDataTestids.js +17 -0
- package/cjs/ComboBox/v3/config/constants.js +14 -0
- package/cjs/ComboBox/v3/config/useComboBox.js +122 -0
- package/cjs/ComboBox/v3/config/useGetPropsWithDefault.js +11 -0
- package/cjs/ComboBox/v3/index.d.js +2 -0
- package/cjs/ComboBox/v3/index.js +10 -0
- package/cjs/ComboBox/v3/parts/a11y-messages/MultiAllyMessages.js +33 -0
- package/cjs/ComboBox/v3/parts/a11y-messages/SingleAllyMessages.js +28 -0
- package/cjs/ComboBox/v3/parts/a11y-messages/index.js +11 -0
- package/cjs/ComboBox/v3/parts/a11y-messages/styled.js +15 -0
- package/cjs/ComboBox/v3/parts/container/Container.js +67 -0
- package/cjs/ComboBox/v3/parts/container/index.js +9 -0
- package/cjs/ComboBox/v3/parts/container/styled.js +23 -0
- package/cjs/ComboBox/v3/parts/controls/Controls.js +71 -0
- package/cjs/ComboBox/v3/parts/controls/index.js +9 -0
- package/cjs/ComboBox/v3/parts/controls/styled.js +65 -0
- package/cjs/ComboBox/v3/parts/controls-input/ControlsInput.js +67 -0
- package/cjs/ComboBox/v3/parts/controls-input/styled.js +27 -0
- package/cjs/ComboBox/v3/parts/controls-input/useControlsInput.js +77 -0
- package/cjs/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.js +33 -0
- package/cjs/ComboBox/v3/parts/dropdown-indicator/index.js +2 -0
- package/cjs/ComboBox/v3/parts/dropdown-indicator/styled.js +17 -0
- package/cjs/ComboBox/v3/parts/empty-state/index.js +27 -0
- package/cjs/ComboBox/v3/parts/empty-state/styled.js +19 -0
- package/cjs/ComboBox/v3/parts/header-list/HeaderList.js +113 -0
- package/cjs/ComboBox/v3/parts/header-list/index.js +9 -0
- package/cjs/ComboBox/v3/parts/header-list/styled.js +58 -0
- package/cjs/ComboBox/v3/parts/header-list/useHeaderListHandlers.js +73 -0
- package/cjs/ComboBox/v3/parts/menu-list/MenuList.js +81 -0
- package/cjs/ComboBox/v3/parts/menu-list/index.js +9 -0
- package/cjs/ComboBox/v3/parts/menu-list/styled.js +33 -0
- package/cjs/ComboBox/v3/parts/menu-list/useItemRenderer.js +105 -0
- package/cjs/ComboBox/v3/parts/menu-list/useMenuList.js +61 -0
- package/cjs/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.js +63 -0
- package/cjs/ComboBox/v3/parts/multi-selected-values-container/index.js +9 -0
- package/cjs/ComboBox/v3/parts/multi-selected-values-container/styled.js +23 -0
- package/cjs/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.js +71 -0
- package/cjs/ComboBox/v3/parts/single-selected-value-container/SingleSelectedValueContainer.js +28 -0
- package/cjs/ComboBox/v3/parts/single-selected-value-container/index.js +9 -0
- package/cjs/ComboBox/v3/parts/single-selected-value-container/styled.js +15 -0
- package/cjs/ComboBox/v3/propTypes.js +25 -0
- package/cjs/ComboBox/v3/utils/hooks/useKeyboardNavigation.js +152 -0
- package/cjs/ComboBox/v3/utils/hooks/useOnElementResize.js +37 -0
- package/cjs/ComboBox/v3/utils/listHelper.js +39 -0
- package/cjs/ComboBoxFreeSolo/ComboBoxFreeSolo.js +25 -18
- package/cjs/ComboBoxFreeSolo/components/MultiValueLabel.js +24 -18
- package/cjs/ComboBoxFreeSolo/components/MultiValueRemove.js +9 -5
- package/cjs/ComboBoxFreeSolo/components/SingleValue.js +7 -2
- package/cjs/ComboBoxFreeSolo/components/SingleValueRemove.js +9 -5
- package/cjs/DateInput/DSDateInput.js +37 -30
- package/cjs/DateInput/components/DateInputImpl.js +25 -19
- package/cjs/DateInput/components/DateInputs.js +61 -48
- package/cjs/DateInput/components/utils.js +32 -19
- package/cjs/DateInput/index.js +1 -1
- package/cjs/DateInputV2/components/DSDateInput.js +39 -33
- package/cjs/DateInputV2/components/DateInputs.js +33 -24
- package/cjs/DateInputV2/components/propsTypes.js +17 -17
- package/cjs/DateInputV2/components/styled.js +24 -21
- package/cjs/DateInputV2/components/utils.js +37 -24
- package/cjs/DateInputV2/index.js +1 -1
- package/cjs/ExpandableInput/DSExpandableInput.js +27 -24
- package/cjs/ExpandableInput/ExpandableInputImpl.js +24 -13
- package/cjs/FloatingLabelInput/DSFloatingLabelInput.js +121 -118
- package/cjs/FloatingLabelInput/FloatingLabelInputImpl.js +36 -31
- package/cjs/FloatingLabelInput/getSvgPath.js +12 -9
- package/cjs/FormItem/DSFormItemLayout.js +38 -31
- package/cjs/FormItem/Error/DSError.js +7 -6
- package/cjs/FormItem/Feedback.js +6 -5
- package/cjs/FormItem/Label/DSLabel.js +14 -13
- package/cjs/FormItem/Suffix/Suffix.js +6 -10
- package/cjs/FormItem/ValidationFieldWrapper.js +10 -4
- package/cjs/FormItem/defaultProps.js +1 -1
- package/cjs/FormItem/index.js +2 -2
- package/cjs/Input/DSInput.js +10 -4
- package/cjs/Input/InputAddonWrapper.js +30 -18
- package/cjs/Input/InputImpl.js +93 -83
- package/cjs/Input/index.js +1 -1
- package/cjs/InputGroup/AddonWrapper.js +15 -11
- package/cjs/InputGroup/DSInputGroup.js +21 -18
- package/cjs/InputGroup/index.js +1 -1
- package/cjs/InputMask/DSInputMask.js +9 -3
- package/cjs/InputMask/DSInputMaskDeprecated.js +40 -28
- package/cjs/InputMask/InputMaskContext.js +1 -1
- package/cjs/InputMask/MaskTypes.js +6 -1
- package/cjs/InputMask/addons/AutoCorrectedDatePipe.js +11 -4
- package/cjs/InputMask/index.js +1 -1
- package/cjs/InputMask/mask_types/DateInputMask.js +25 -14
- package/cjs/InputMask/mask_types/DateTimeInputMask.js +25 -14
- package/cjs/InputMask/mask_types/DictionaryInputMask.js +16 -9
- package/cjs/InputMask/mask_types/NumberInputMask.js +35 -27
- package/cjs/InputMask/mask_types/PhoneInputMask.js +25 -14
- package/cjs/InputMask/mask_types/PhoneInternationalInputMask.js +25 -14
- package/cjs/InputMask/mask_types/SsnInputMask.js +25 -14
- package/cjs/InputMask/mask_types/UsZipCodeInputMask.js +16 -9
- package/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js +25 -14
- package/cjs/InputMask/mask_types/index.js +9 -4
- package/cjs/InputMask/props.js +1 -2
- package/cjs/InputProtected/DSInputProtected.js +23 -25
- package/cjs/InputProtected/index.js +3 -2
- package/cjs/InputProtected/props.js +1 -2
- package/cjs/LargeInputText/DSLargeInputText.js +51 -42
- package/cjs/LargeInputText/index.js +1 -1
- package/cjs/MenuItem/components/MenuItem/index.js +55 -0
- package/cjs/MenuItem/components/MenuItem/styled.js +15 -0
- package/cjs/MenuItem/components/MultiMenuItem/MultiMenuItem.js +71 -0
- package/cjs/MenuItem/components/MultiMenuItem/styled.js +15 -0
- package/cjs/MenuItem/components/Section/index.js +38 -0
- package/cjs/MenuItem/components/Section/props.js +16 -0
- package/cjs/MenuItem/components/Section/styled.js +20 -0
- package/cjs/MenuItem/components/Separator/index.js +29 -0
- package/cjs/MenuItem/components/Separator/styled.js +20 -0
- package/cjs/MenuItem/components/SingleMenuItem/SingleMenuItem.js +70 -0
- package/cjs/MenuItem/components/SubmenuItem/index.js +142 -0
- package/cjs/MenuItem/components/SubmenuItem/styled.js +20 -0
- package/cjs/MenuItem/components/index.js +22 -0
- package/cjs/MenuItem/components/styled.js +45 -0
- package/cjs/MenuItem/index.js +22 -0
- package/cjs/MenuItem/props.js +28 -0
- package/cjs/Radio/Circle.js +7 -6
- package/cjs/Radio/DSRadio.js +14 -9
- package/cjs/Radio/index.js +1 -1
- package/cjs/RadioGroup/DSRadioGroup.js +29 -21
- package/cjs/RadioGroup/index.js +1 -1
- package/cjs/RequiredMark/RequiredMark.js +9 -8
- package/cjs/SearchBox/DSSearchBox.js +34 -33
- package/cjs/SearchBox/NavSearchBox.js +26 -30
- package/cjs/SearchBox/SButton.js +15 -12
- package/cjs/SearchBox/SearchBoxToggle.js +17 -20
- package/cjs/SearchBox/index.js +1 -1
- package/cjs/SearchBox/styled.js +1 -1
- package/cjs/SearchBox/useSearch.js +13 -7
- package/cjs/SearchBox/withSearchable.js +21 -15
- package/cjs/TextBox/DSTextBox.js +16 -8
- package/cjs/TextBox/index.js +1 -1
- package/cjs/TimeInput/DSTimeInput.js +48 -40
- package/cjs/TimeInput/TimeInputImpl.js +20 -14
- package/cjs/TimeInput/TimeInputs.js +54 -36
- package/cjs/TimeInput/index.js +1 -1
- package/cjs/TimeInput/utils.js +13 -11
- package/cjs/Toggle/DSToggle.js +8 -3
- package/cjs/Toggle/DSToggleImpl.js +37 -32
- package/cjs/Toggle/DSToggleRender.js +46 -41
- package/cjs/Toggle/index.js +1 -1
- package/cjs/Toggle/props.js +11 -11
- package/cjs/Toggle/toggleHelper.js +21 -18
- package/cjs/index.js +72 -30
- package/esm/Checkbox/DSCheckbox.js +11 -6
- package/esm/CheckboxGroup/DSCheckboxGroup.js +21 -13
- package/esm/ComboBox/index.js +1 -0
- package/esm/ComboBox/v1/DSComboBox.js +34 -28
- package/esm/ComboBox/v1/components/AllOption.js +5 -0
- package/esm/ComboBox/v1/components/ClearIndicator.js +1 -1
- package/esm/ComboBox/v1/components/Control.js +14 -6
- package/esm/ComboBox/v1/components/CustomOption.js +12 -6
- package/esm/ComboBox/v1/components/CustomOptionMulti.js +12 -6
- package/esm/ComboBox/v1/components/DropdownIndicator.js +6 -1
- package/esm/ComboBox/v1/components/MenuList.js +7 -1
- package/esm/ComboBox/v1/components/MultiSelectHeader.js +4 -1
- package/esm/ComboBox/v1/components/MultiValueLabel.js +4 -3
- package/esm/ComboBox/v1/components/MultiValueRemove.js +5 -0
- package/esm/ComboBox/v1/components/SelectMenu.js +26 -18
- package/esm/ComboBox/v1/components/SingleValueLabel.js +4 -3
- package/esm/ComboBox/v1/components/ValueContainer.js +5 -0
- package/esm/ComboBox/v1/components/calculateWidth.js +4 -0
- package/esm/ComboBox/v1/components/getoptions.js +11 -6
- package/esm/ComboBox/v1/withSelectStringValueConverter.js +28 -16
- package/esm/ComboBox/v2/Combobox.js +14 -6
- package/esm/ComboBox/v2/components/AllOption.js +5 -0
- package/esm/ComboBox/v2/components/ClearIndicator.js +6 -1
- package/esm/ComboBox/v2/components/Content.js +5 -0
- package/esm/ComboBox/v2/components/Control.js +14 -6
- package/esm/ComboBox/v2/components/CustomOption.js +12 -6
- package/esm/ComboBox/v2/components/CustomOptionMulti.js +14 -6
- package/esm/ComboBox/v2/components/DropdownIndicator.js +8 -2
- package/esm/ComboBox/v2/components/GroupHeading.js +5 -0
- package/esm/ComboBox/v2/components/IndicatorSeparator.js +11 -3
- package/esm/ComboBox/v2/components/MenuList.js +7 -1
- package/esm/ComboBox/v2/components/MultiSelectHeader.js +4 -1
- package/esm/ComboBox/v2/components/MultiValueLabel.js +4 -3
- package/esm/ComboBox/v2/components/MultiValueRemove.js +5 -0
- package/esm/ComboBox/v2/components/SelectMenu.js +5 -0
- package/esm/ComboBox/v2/components/SingleValueLabel.js +4 -3
- package/esm/ComboBox/v2/components/ValueContainer.js +7 -1
- package/esm/ComboBox/v2/components/calculateWidth.js +4 -0
- package/esm/ComboBox/v2/components/getoptions.js +11 -6
- package/esm/ComboBox/v2/components/useMenuListHeight.js +5 -0
- package/esm/ComboBox/v3/ComboBox.js +24 -0
- package/esm/ComboBox/v3/ComboBoxCTX.js +49 -0
- package/esm/ComboBox/v3/ComboboxDataTestids.js +13 -0
- package/esm/ComboBox/v3/config/constants.js +10 -0
- package/esm/ComboBox/v3/config/useComboBox.js +114 -0
- package/esm/ComboBox/v3/config/useGetPropsWithDefault.js +7 -0
- package/esm/ComboBox/v3/index.d.js +1 -0
- package/esm/ComboBox/v3/index.js +1 -0
- package/esm/ComboBox/v3/parts/a11y-messages/MultiAllyMessages.js +25 -0
- package/esm/ComboBox/v3/parts/a11y-messages/SingleAllyMessages.js +20 -0
- package/esm/ComboBox/v3/parts/a11y-messages/index.js +2 -0
- package/esm/ComboBox/v3/parts/a11y-messages/styled.js +7 -0
- package/esm/ComboBox/v3/parts/container/Container.js +59 -0
- package/esm/ComboBox/v3/parts/container/index.js +1 -0
- package/esm/ComboBox/v3/parts/container/styled.js +13 -0
- package/esm/ComboBox/v3/parts/controls/Controls.js +63 -0
- package/esm/ComboBox/v3/parts/controls/index.js +1 -0
- package/esm/ComboBox/v3/parts/controls/styled.js +52 -0
- package/esm/ComboBox/v3/parts/controls-input/ControlsInput.js +59 -0
- package/esm/ComboBox/v3/parts/controls-input/styled.js +16 -0
- package/esm/ComboBox/v3/parts/controls-input/useControlsInput.js +73 -0
- package/esm/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.js +26 -0
- package/esm/ComboBox/v3/parts/dropdown-indicator/index.js +1 -0
- package/esm/ComboBox/v3/parts/dropdown-indicator/styled.js +8 -0
- package/esm/ComboBox/v3/parts/empty-state/index.js +19 -0
- package/esm/ComboBox/v3/parts/empty-state/styled.js +10 -0
- package/esm/ComboBox/v3/parts/header-list/HeaderList.js +105 -0
- package/esm/ComboBox/v3/parts/header-list/index.js +1 -0
- package/esm/ComboBox/v3/parts/header-list/styled.js +41 -0
- package/esm/ComboBox/v3/parts/header-list/useHeaderListHandlers.js +69 -0
- package/esm/ComboBox/v3/parts/menu-list/MenuList.js +73 -0
- package/esm/ComboBox/v3/parts/menu-list/index.js +1 -0
- package/esm/ComboBox/v3/parts/menu-list/styled.js +23 -0
- package/esm/ComboBox/v3/parts/menu-list/useItemRenderer.js +97 -0
- package/esm/ComboBox/v3/parts/menu-list/useMenuList.js +57 -0
- package/esm/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.js +54 -0
- package/esm/ComboBox/v3/parts/multi-selected-values-container/index.js +1 -0
- package/esm/ComboBox/v3/parts/multi-selected-values-container/styled.js +13 -0
- package/esm/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.js +67 -0
- package/esm/ComboBox/v3/parts/single-selected-value-container/SingleSelectedValueContainer.js +20 -0
- package/esm/ComboBox/v3/parts/single-selected-value-container/index.js +1 -0
- package/esm/ComboBox/v3/parts/single-selected-value-container/styled.js +7 -0
- package/esm/ComboBox/v3/propTypes.js +21 -0
- package/esm/ComboBox/v3/utils/hooks/useKeyboardNavigation.js +148 -0
- package/esm/ComboBox/v3/utils/hooks/useOnElementResize.js +33 -0
- package/esm/ComboBox/v3/utils/listHelper.js +30 -0
- package/esm/ComboBoxFreeSolo/ComboBoxFreeSolo.js +23 -16
- package/esm/ComboBoxFreeSolo/components/MultiValueLabel.js +21 -15
- package/esm/ComboBoxFreeSolo/components/MultiValueRemove.js +6 -1
- package/esm/ComboBoxFreeSolo/components/SingleValue.js +5 -0
- package/esm/ComboBoxFreeSolo/components/SingleValueRemove.js +6 -1
- package/esm/DateInput/DSDateInput.js +33 -26
- package/esm/DateInput/components/DateInputImpl.js +23 -17
- package/esm/DateInput/components/DateInputs.js +56 -42
- package/esm/DateInput/components/utils.js +25 -12
- package/esm/DateInputV2/components/DSDateInput.js +39 -33
- package/esm/DateInputV2/components/DateInputs.js +23 -14
- package/esm/DateInputV2/components/styled.js +19 -16
- package/esm/DateInputV2/components/utils.js +25 -12
- package/esm/ExpandableInput/DSExpandableInput.js +27 -24
- package/esm/ExpandableInput/ExpandableInputImpl.js +21 -10
- package/esm/FloatingLabelInput/DSFloatingLabelInput.js +121 -118
- package/esm/FloatingLabelInput/FloatingLabelInputImpl.js +24 -18
- package/esm/FloatingLabelInput/getSvgPath.js +12 -9
- package/esm/FormItem/DSFormItemLayout.js +26 -18
- package/esm/FormItem/Error/DSError.js +5 -4
- package/esm/FormItem/Feedback.js +5 -4
- package/esm/FormItem/Label/DSLabel.js +11 -10
- package/esm/FormItem/Suffix/Suffix.js +2 -6
- package/esm/FormItem/ValidationFieldWrapper.js +9 -3
- package/esm/Input/DSInput.js +7 -1
- package/esm/Input/InputAddonWrapper.js +27 -15
- package/esm/Input/InputImpl.js +47 -36
- package/esm/InputGroup/AddonWrapper.js +12 -8
- package/esm/InputGroup/DSInputGroup.js +20 -17
- package/esm/InputMask/DSInputMask.js +6 -0
- package/esm/InputMask/DSInputMaskDeprecated.js +36 -24
- package/esm/InputMask/MaskTypes.js +5 -0
- package/esm/InputMask/addons/AutoCorrectedDatePipe.js +11 -4
- package/esm/InputMask/mask_types/DateInputMask.js +23 -12
- package/esm/InputMask/mask_types/DateTimeInputMask.js +23 -12
- package/esm/InputMask/mask_types/DictionaryInputMask.js +13 -6
- package/esm/InputMask/mask_types/NumberInputMask.js +33 -25
- package/esm/InputMask/mask_types/PhoneInputMask.js +23 -12
- package/esm/InputMask/mask_types/PhoneInternationalInputMask.js +23 -12
- package/esm/InputMask/mask_types/SsnInputMask.js +23 -12
- package/esm/InputMask/mask_types/UsZipCodeInputMask.js +13 -6
- package/esm/InputMask/mask_types/ZipCodeSearchInputMask.js +23 -12
- package/esm/InputMask/mask_types/index.js +5 -0
- package/esm/InputMask/props.js +1 -2
- package/esm/InputProtected/DSInputProtected.js +12 -10
- package/esm/InputProtected/index.js +1 -1
- package/esm/InputProtected/props.js +1 -2
- package/esm/LargeInputText/DSLargeInputText.js +47 -38
- package/esm/MenuItem/components/MenuItem/index.js +45 -0
- package/esm/MenuItem/components/MenuItem/styled.js +7 -0
- package/esm/MenuItem/components/MultiMenuItem/MultiMenuItem.js +62 -0
- package/esm/MenuItem/components/MultiMenuItem/styled.js +7 -0
- package/esm/MenuItem/components/Section/index.js +29 -0
- package/esm/MenuItem/components/Section/props.js +11 -0
- package/esm/MenuItem/components/Section/styled.js +11 -0
- package/esm/MenuItem/components/Separator/index.js +21 -0
- package/esm/MenuItem/components/Separator/styled.js +11 -0
- package/esm/MenuItem/components/SingleMenuItem/SingleMenuItem.js +61 -0
- package/esm/MenuItem/components/SubmenuItem/index.js +129 -0
- package/esm/MenuItem/components/SubmenuItem/styled.js +11 -0
- package/esm/MenuItem/components/index.js +6 -0
- package/esm/MenuItem/components/styled.js +34 -0
- package/esm/MenuItem/index.js +6 -0
- package/esm/MenuItem/props.js +23 -0
- package/esm/Radio/Circle.js +5 -4
- package/esm/Radio/DSRadio.js +7 -2
- package/esm/RadioGroup/DSRadioGroup.js +21 -13
- package/esm/RequiredMark/RequiredMark.js +7 -6
- package/esm/SearchBox/DSSearchBox.js +28 -25
- package/esm/SearchBox/NavSearchBox.js +9 -9
- package/esm/SearchBox/SButton.js +14 -11
- package/esm/SearchBox/SearchBoxToggle.js +11 -13
- package/esm/SearchBox/useSearch.js +12 -6
- package/esm/SearchBox/withSearchable.js +17 -11
- package/esm/TextBox/DSTextBox.js +12 -4
- package/esm/TimeInput/DSTimeInput.js +45 -37
- package/esm/TimeInput/TimeInputImpl.js +17 -11
- package/esm/TimeInput/TimeInputs.js +47 -29
- package/esm/TimeInput/utils.js +9 -7
- package/esm/Toggle/DSToggle.js +5 -0
- package/esm/Toggle/DSToggleImpl.js +35 -30
- package/esm/Toggle/DSToggleRender.js +39 -33
- package/esm/Toggle/toggleHelper.js +21 -18
- package/esm/index.js +26 -13
- package/package.json +282 -22
- package/types/Checkbox/DSCheckbox.d.ts +78 -13
- package/types/Checkbox/elements/CheckMark.d.ts +1 -1
- package/types/Checkbox/props.d.ts +58 -12
- package/types/CheckboxGroup/DSCheckboxGroup.d.ts +51 -7
- package/types/CheckboxGroup/props.d.ts +37 -6
- package/types/ComboBox/index.d.ts +1 -0
- package/types/ComboBox/v2/Combobox.d.ts +56 -1
- package/types/ComboBox/v3/ComboBox.d.ts +62 -0
- package/types/ComboBox/v3/ComboBoxCTX.d.ts +6 -0
- package/types/ComboBox/v3/ComboboxDataTestids.d.ts +11 -0
- package/types/ComboBox/v3/config/constants.d.ts +8 -0
- package/types/ComboBox/v3/config/useComboBox.d.ts +2 -0
- package/types/ComboBox/v3/config/useGetPropsWithDefault.d.ts +2 -0
- package/types/ComboBox/v3/index.d.ts +1 -0
- package/types/ComboBox/v3/parts/a11y-messages/MultiAllyMessages.d.ts +3 -0
- package/types/ComboBox/v3/parts/a11y-messages/SingleAllyMessages.d.ts +3 -0
- package/types/ComboBox/v3/parts/a11y-messages/index.d.ts +2 -0
- package/types/ComboBox/v3/parts/a11y-messages/styled.d.ts +1 -0
- package/types/ComboBox/v3/parts/container/Container.d.ts +3 -0
- package/types/ComboBox/v3/parts/container/index.d.ts +1 -0
- package/types/ComboBox/v3/parts/container/styled.d.ts +3 -0
- package/types/ComboBox/v3/parts/controls/Controls.d.ts +3 -0
- package/types/ComboBox/v3/parts/controls/index.d.ts +1 -0
- package/types/ComboBox/v3/parts/controls/styled.d.ts +7 -0
- package/types/ComboBox/v3/parts/controls-input/ControlsInput.d.ts +3 -0
- package/types/ComboBox/v3/parts/controls-input/styled.d.ts +4 -0
- package/types/ComboBox/v3/parts/controls-input/useControlsInput.d.ts +12 -0
- package/types/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.d.ts +3 -0
- package/types/ComboBox/v3/parts/dropdown-indicator/index.d.ts +0 -0
- package/types/ComboBox/v3/parts/dropdown-indicator/styled.d.ts +1 -0
- package/types/ComboBox/v3/parts/empty-state/index.d.ts +3 -0
- package/types/ComboBox/v3/parts/empty-state/styled.d.ts +2 -0
- package/types/ComboBox/v3/parts/header-list/HeaderList.d.ts +3 -0
- package/types/ComboBox/v3/parts/header-list/index.d.ts +1 -0
- package/types/ComboBox/v3/parts/header-list/styled.d.ts +7 -0
- package/types/ComboBox/v3/parts/header-list/useHeaderListHandlers.d.ts +12 -0
- package/types/ComboBox/v3/parts/menu-list/MenuList.d.ts +3 -0
- package/types/ComboBox/v3/parts/menu-list/index.d.ts +1 -0
- package/types/ComboBox/v3/parts/menu-list/styled.d.ts +10 -0
- package/types/ComboBox/v3/parts/menu-list/useItemRenderer.d.ts +2 -0
- package/types/ComboBox/v3/parts/menu-list/useMenuList.d.ts +2 -0
- package/types/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.d.ts +3 -0
- package/types/ComboBox/v3/parts/multi-selected-values-container/index.d.ts +1 -0
- package/types/ComboBox/v3/parts/multi-selected-values-container/styled.d.ts +3 -0
- package/types/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.d.ts +2 -0
- package/types/ComboBox/v3/parts/single-selected-value-container/SingleSelectedValueContainer.d.ts +3 -0
- package/types/ComboBox/v3/parts/single-selected-value-container/index.d.ts +1 -0
- package/types/ComboBox/v3/parts/single-selected-value-container/styled.d.ts +1 -0
- package/types/ComboBox/v3/propTypes.d.ts +51 -0
- package/types/ComboBox/v3/tests/combobox-general.test.d.ts +1 -0
- package/types/ComboBox/v3/tests/combobox-multi-select.test.d.ts +1 -0
- package/types/ComboBox/v3/tests/combobox-single-select.test.d.ts +1 -0
- package/types/ComboBox/v3/tests/combobox-special-keys.test.d.ts +1 -0
- package/types/ComboBox/v3/tests/utils.d.ts +22 -0
- package/types/ComboBox/v3/utils/hooks/useKeyboardNavigation.d.ts +4 -0
- package/types/ComboBox/v3/utils/hooks/useOnElementResize.d.ts +3 -0
- package/types/ComboBox/v3/utils/listHelper.d.ts +7 -0
- package/types/DateInput/DSDateInput.d.ts +97 -16
- package/types/DateInput/components/utils.d.ts +8 -8
- package/types/DateInput/props.d.ts +97 -16
- package/types/DateInputV2/components/DSDateInput.d.ts +72 -5
- package/types/DateInputV2/components/DateInputs.d.ts +1 -1
- package/types/DateInputV2/components/props.d.ts +61 -10
- package/types/DateInputV2/components/styled.d.ts +4 -4
- package/types/DateInputV2/components/utils.d.ts +8 -8
- package/types/FloatingLabelInput/DSFloatingLabelInput.d.ts +120 -21
- package/types/FormItem/DSFormItemLayout.d.ts +392 -61
- package/types/FormItem/Error/DSError.d.ts +21 -3
- package/types/FormItem/Suffix/Suffix.d.ts +3 -3
- package/types/FormItem/defaultProps.d.ts +120 -21
- package/types/FormItem/index.d.ts +1 -1
- package/types/FormItem/props.d.ts +229 -39
- package/types/InputGroup/DSInputGroup.d.ts +56 -8
- package/types/InputGroup/props.d.ts +43 -7
- package/types/InputMask/DSInputMask.d.ts +172 -30
- package/types/InputMask/mask_types/DateInputMask.d.ts +34 -33
- package/types/InputMask/mask_types/DateTimeInputMask.d.ts +34 -33
- package/types/InputMask/mask_types/DictionaryInputMask.d.ts +37 -36
- package/types/InputMask/mask_types/NumberInputMask.d.ts +46 -45
- package/types/InputMask/mask_types/PhoneInputMask.d.ts +34 -33
- package/types/InputMask/mask_types/PhoneInternationalInputMask.d.ts +34 -33
- package/types/InputMask/mask_types/SsnInputMask.d.ts +34 -33
- package/types/InputMask/mask_types/UsZipCodeInputMask.d.ts +34 -33
- package/types/InputMask/mask_types/ZipCodeSearchInputMask.d.ts +34 -33
- package/types/InputMask/props.d.ts +172 -30
- package/types/InputProtected/DSInputProtected.d.ts +57 -10
- package/types/InputProtected/index.d.ts +1 -0
- package/types/InputProtected/props.d.ts +43 -8
- package/types/LargeInputText/DSLargeInputText.d.ts +163 -27
- package/types/LargeInputText/props.d.ts +163 -27
- package/types/MenuItem/components/MenuItem/index.d.ts +20 -0
- package/types/MenuItem/components/MenuItem/styled.d.ts +1 -0
- package/types/MenuItem/components/MultiMenuItem/MultiMenuItem.d.ts +21 -0
- package/types/MenuItem/components/MultiMenuItem/styled.d.ts +1 -0
- package/types/MenuItem/components/Section/index.d.ts +12 -0
- package/types/MenuItem/components/Section/props.d.ts +14 -0
- package/types/MenuItem/components/Section/styled.d.ts +2 -0
- package/types/MenuItem/components/Separator/index.d.ts +8 -0
- package/types/MenuItem/components/Separator/styled.d.ts +2 -0
- package/types/MenuItem/components/SingleMenuItem/SingleMenuItem.d.ts +16 -0
- package/types/MenuItem/components/SubmenuItem/index.d.ts +20 -0
- package/types/MenuItem/components/SubmenuItem/styled.d.ts +2 -0
- package/types/MenuItem/components/index.d.ts +6 -0
- package/types/MenuItem/components/styled.d.ts +3 -0
- package/types/MenuItem/index.d.ts +1 -0
- package/types/MenuItem/props.d.ts +37 -0
- package/types/Radio/Circle.d.ts +1 -1
- package/types/Radio/DSRadio.d.ts +79 -13
- package/types/RadioGroup/DSRadioGroup.d.ts +51 -7
- package/types/RadioGroup/props.d.ts +37 -6
- package/types/SearchBox/DSSearchBox.d.ts +146 -21
- package/types/SearchBox/NavSearchBox.d.ts +18 -3
- package/types/SearchBox/SButton.d.ts +13 -2
- package/types/SearchBox/props.d.ts +133 -22
- package/types/SearchBox/styled.d.ts +1 -48
- package/types/TextBox/DSTextBox.d.ts +148 -22
- package/types/TimeInput/DSTimeInput.d.ts +83 -12
- package/types/TimeInput/utils.d.ts +8 -8
- package/types/Toggle/DSToggle.d.ts +84 -12
- package/types/index.d.ts +29 -10
- package/cjs/package.json +0 -7
- package/esm/package.json +0 -7
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
6
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
8
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
9
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
5
10
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
11
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
12
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
@@ -9,7 +14,7 @@ var React = require('react');
|
|
|
9
14
|
var reactDesc = require('react-desc');
|
|
10
15
|
var uid = require('uid');
|
|
11
16
|
var dsClassnames = require('@elliemae/ds-classnames');
|
|
12
|
-
var
|
|
17
|
+
var dsUtilities = require('@elliemae/ds-utilities');
|
|
13
18
|
var CheckMark = require('./elements/CheckMark.js');
|
|
14
19
|
var defaultProps = require('./defaultProps.js');
|
|
15
20
|
var props = require('./props.js');
|
|
@@ -27,7 +32,7 @@ const _excluded = ["className", "onChange", "checked", "innerRef", "onKeyDown",
|
|
|
27
32
|
|
|
28
33
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
29
34
|
|
|
30
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
35
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
31
36
|
|
|
32
37
|
function Checkbox(_ref) {
|
|
33
38
|
let {
|
|
@@ -48,7 +53,7 @@ function Checkbox(_ref) {
|
|
|
48
53
|
instanceUID,
|
|
49
54
|
labelText
|
|
50
55
|
} = _ref,
|
|
51
|
-
rest = _objectWithoutProperties__default[
|
|
56
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
52
57
|
|
|
53
58
|
const checkRef = React.useRef(null);
|
|
54
59
|
const handleClick = React.useCallback(e => {
|
|
@@ -59,7 +64,7 @@ function Checkbox(_ref) {
|
|
|
59
64
|
onChange(e);
|
|
60
65
|
}
|
|
61
66
|
}, [onChange, readOnly]);
|
|
62
|
-
return /*#__PURE__*/_jsx__default[
|
|
67
|
+
return /*#__PURE__*/_jsx__default["default"]("span", {
|
|
63
68
|
onMouseEnter: onMouseEnter,
|
|
64
69
|
onMouseLeave: onMouseLeave
|
|
65
70
|
}, void 0, /*#__PURE__*/jsxRuntime.jsx(CheckMark, _objectSpread(_objectSpread({}, rest), {}, {
|
|
@@ -67,7 +72,7 @@ function Checkbox(_ref) {
|
|
|
67
72
|
"data-testid": rest['data-testid'] || 'ds-checkbox',
|
|
68
73
|
"aria-checked": checked,
|
|
69
74
|
"aria-disabled": disabled,
|
|
70
|
-
className:
|
|
75
|
+
className: "".concat(className, " ").concat(variant || '', " ").concat(disabled ? 'disabled' : ''),
|
|
71
76
|
"data-kind": "checkmark",
|
|
72
77
|
onKeyDown: e => {
|
|
73
78
|
e.target = checkRef.current;
|
|
@@ -85,7 +90,7 @@ function Checkbox(_ref) {
|
|
|
85
90
|
tabIndex: tabIndex,
|
|
86
91
|
value: value,
|
|
87
92
|
children: /*#__PURE__*/jsxRuntime.jsx("input", {
|
|
88
|
-
id:
|
|
93
|
+
id: "".concat(instanceUID, "-").concat(labelText),
|
|
89
94
|
onClick: handleClick,
|
|
90
95
|
ref: checkRef,
|
|
91
96
|
checked: checked,
|
|
@@ -120,7 +125,7 @@ const DSCheckbox = _ref2 => {
|
|
|
120
125
|
innerRef,
|
|
121
126
|
name
|
|
122
127
|
} = _ref2,
|
|
123
|
-
otherProps = _objectWithoutProperties__default[
|
|
128
|
+
otherProps = _objectWithoutProperties__default["default"](_ref2, _excluded2);
|
|
124
129
|
|
|
125
130
|
const {
|
|
126
131
|
cssClassName,
|
|
@@ -134,7 +139,7 @@ const DSCheckbox = _ref2 => {
|
|
|
134
139
|
|
|
135
140
|
const checkbox = /*#__PURE__*/jsxRuntime.jsx(Checkbox, _objectSpread(_objectSpread({}, otherProps), {}, {
|
|
136
141
|
checked: checked,
|
|
137
|
-
className:
|
|
142
|
+
className: dsUtilities.cx("".concat(classNameElement('input-button'), " checkbox-").concat(String(checked)), className),
|
|
138
143
|
disabled: disabled,
|
|
139
144
|
innerRef: innerRef,
|
|
140
145
|
name: name,
|
|
@@ -147,15 +152,15 @@ const DSCheckbox = _ref2 => {
|
|
|
147
152
|
|
|
148
153
|
if (!labelText) return checkbox;
|
|
149
154
|
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread(_objectSpread({
|
|
150
|
-
className:
|
|
155
|
+
className: "".concat(cssClassName, " ").concat(variant)
|
|
151
156
|
}, containerProps), {}, {
|
|
152
|
-
children: [/*#__PURE__*/_jsx__default[
|
|
157
|
+
children: [/*#__PURE__*/_jsx__default["default"]("label", {
|
|
153
158
|
"data-testid": "ds-checkbox-label",
|
|
154
159
|
className: classNameElement('label'),
|
|
155
|
-
htmlFor:
|
|
156
|
-
}, void 0, checkbox, /*#__PURE__*/_jsx__default[
|
|
160
|
+
htmlFor: "".concat(instanceUID, "-").concat(labelText)
|
|
161
|
+
}, void 0, checkbox, /*#__PURE__*/_jsx__default["default"]("span", {
|
|
157
162
|
className: classNameElement('label-text')
|
|
158
|
-
}, void 0, labelText)), children && /*#__PURE__*/_jsx__default[
|
|
163
|
+
}, void 0, labelText)), children && /*#__PURE__*/_jsx__default["default"]("div", {
|
|
159
164
|
className: classNameElement('checkbox-children')
|
|
160
165
|
}, void 0, children)]
|
|
161
166
|
}));
|
|
@@ -167,10 +172,8 @@ CheckboxWithSchema.propTypes = props.checkboxProps;
|
|
|
167
172
|
|
|
168
173
|
Object.defineProperty(exports, 'CHECKBOX_VARIANT', {
|
|
169
174
|
enumerable: true,
|
|
170
|
-
get: function () {
|
|
171
|
-
return propTypes.CHECKBOX_VARIANT;
|
|
172
|
-
}
|
|
175
|
+
get: function () { return propTypes.CHECKBOX_VARIANT; }
|
|
173
176
|
});
|
|
174
177
|
exports.CheckboxWithSchema = CheckboxWithSchema;
|
|
175
178
|
exports.DSCheckbox = DSCheckbox;
|
|
176
|
-
exports[
|
|
179
|
+
exports["default"] = DSCheckbox;
|
|
@@ -6,7 +6,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
6
6
|
|
|
7
7
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
8
8
|
|
|
9
|
-
const CheckMark = /*#__PURE__*/styled__default[
|
|
9
|
+
const CheckMark = /*#__PURE__*/styled__default["default"].span.withConfig({
|
|
10
10
|
componentId: "sc-1rrft2r-0"
|
|
11
11
|
})([""]);
|
|
12
12
|
|
package/cjs/Checkbox/index.js
CHANGED
|
@@ -9,10 +9,8 @@ var propTypes = require('@elliemae/ds-shared/prop-types');
|
|
|
9
9
|
|
|
10
10
|
exports.CheckboxWithSchema = DSCheckbox.CheckboxWithSchema;
|
|
11
11
|
exports.DSCheckbox = DSCheckbox.DSCheckbox;
|
|
12
|
-
exports
|
|
12
|
+
exports["default"] = DSCheckbox.DSCheckbox;
|
|
13
13
|
Object.defineProperty(exports, 'CHECKBOX_VARIANT', {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return propTypes.CHECKBOX_VARIANT;
|
|
17
|
-
}
|
|
15
|
+
get: function () { return propTypes.CHECKBOX_VARIANT; }
|
|
18
16
|
});
|
|
@@ -4,6 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
|
+
require('core-js/modules/esnext.async-iterator.map.js');
|
|
8
|
+
require('core-js/modules/esnext.iterator.map.js');
|
|
9
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
10
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
11
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
12
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
13
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
7
14
|
var React = require('react');
|
|
8
15
|
var reactDesc = require('react-desc');
|
|
9
16
|
var GroupItem = require('@elliemae/ds-shared/GroupContext/GroupItem');
|
|
@@ -25,11 +32,11 @@ var Group__default = /*#__PURE__*/_interopDefaultLegacy(Group);
|
|
|
25
32
|
|
|
26
33
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
27
34
|
|
|
28
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
35
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
29
36
|
const emClassPrefix = 'em-ds';
|
|
30
|
-
const baseClass =
|
|
37
|
+
const baseClass = "".concat(emClassPrefix, "-checkbox-group");
|
|
31
38
|
|
|
32
|
-
const CheckboxItem = props => /*#__PURE__*/_jsx__default[
|
|
39
|
+
const CheckboxItem = props => /*#__PURE__*/_jsx__default["default"](GroupItem__default["default"], {
|
|
33
40
|
render: context => /*#__PURE__*/jsxRuntime.jsx(DSCheckbox.DSCheckbox, _objectSpread(_objectSpread({}, props), {}, {
|
|
34
41
|
checked: context.activeValue && context.activeValue.indexOf(props.value) !== -1,
|
|
35
42
|
disabled: context.disabled || props.disabled,
|
|
@@ -37,18 +44,19 @@ const CheckboxItem = props => /*#__PURE__*/_jsx__default['default'](GroupItem__d
|
|
|
37
44
|
}))
|
|
38
45
|
});
|
|
39
46
|
|
|
40
|
-
const DSCheckboxGroup =
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
const DSCheckboxGroup = _ref => {
|
|
48
|
+
let {
|
|
49
|
+
onChange,
|
|
50
|
+
activeValue,
|
|
51
|
+
children,
|
|
52
|
+
disabled,
|
|
53
|
+
orientation,
|
|
54
|
+
truncateText,
|
|
55
|
+
labelProps,
|
|
56
|
+
containerProps
|
|
57
|
+
} = _ref;
|
|
50
58
|
const checkRefs = [];
|
|
51
|
-
const count = React__default[
|
|
59
|
+
const count = React__default["default"].Children.count(children);
|
|
52
60
|
|
|
53
61
|
const onKeyDown = (e, index) => {
|
|
54
62
|
if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') {
|
|
@@ -60,16 +68,16 @@ const DSCheckboxGroup = ({
|
|
|
60
68
|
}
|
|
61
69
|
};
|
|
62
70
|
|
|
63
|
-
const group = /*#__PURE__*/_jsx__default[
|
|
71
|
+
const group = /*#__PURE__*/_jsx__default["default"](Group__default["default"], {
|
|
64
72
|
activeValue: activeValue,
|
|
65
73
|
disabled: disabled,
|
|
66
74
|
multiple: true,
|
|
67
75
|
onChange: onChange
|
|
68
76
|
}, void 0, /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({
|
|
69
|
-
className:
|
|
77
|
+
className: "".concat(baseClass, " ").concat(baseClass, "--").concat(orientation)
|
|
70
78
|
}, labelProps && labelProps.labelText ? {} : containerProps), {}, {
|
|
71
79
|
role: "group",
|
|
72
|
-
children: React__default[
|
|
80
|
+
children: React__default["default"].Children.map(children, (child, index) => /*#__PURE__*/jsxRuntime.jsx(CheckboxItem, _objectSpread(_objectSpread({}, child.props), {}, {
|
|
73
81
|
innerRef: t => {
|
|
74
82
|
checkRefs.push(t);
|
|
75
83
|
},
|
|
@@ -79,10 +87,10 @@ const DSCheckboxGroup = ({
|
|
|
79
87
|
|
|
80
88
|
if (labelProps && labelProps.labelText) {
|
|
81
89
|
return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({
|
|
82
|
-
className:
|
|
90
|
+
className: "".concat(baseClass, "-form-item-layout-wrapper")
|
|
83
91
|
}, containerProps), {}, {
|
|
84
92
|
role: "group",
|
|
85
|
-
children: /*#__PURE__*/jsxRuntime.jsx(DSFormItemLayout[
|
|
93
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DSFormItemLayout["default"], _objectSpread(_objectSpread({}, labelProps), {}, {
|
|
86
94
|
inputComponent: group,
|
|
87
95
|
onChange: onChange,
|
|
88
96
|
truncateText: truncateText
|
|
@@ -106,4 +114,4 @@ CheckboxItem.defaultProps = {
|
|
|
106
114
|
|
|
107
115
|
exports.DSCheckboxGroup = DSCheckboxGroup;
|
|
108
116
|
exports.DSCheckboxGroupWithSchema = DSCheckboxGroupWithSchema;
|
|
109
|
-
exports[
|
|
117
|
+
exports["default"] = DSCheckboxGroup;
|
|
@@ -8,4 +8,4 @@ var DSCheckboxGroup = require('./DSCheckboxGroup.js');
|
|
|
8
8
|
|
|
9
9
|
exports.DSCheckboxGroup = DSCheckboxGroup.DSCheckboxGroup;
|
|
10
10
|
exports.DSCheckboxGroupWithSchema = DSCheckboxGroup.DSCheckboxGroupWithSchema;
|
|
11
|
-
exports
|
|
11
|
+
exports["default"] = DSCheckboxGroup.DSCheckboxGroup;
|
|
@@ -10,16 +10,12 @@ var propTypes = require('@elliemae/ds-shared/prop-types');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
exports.DSComboBox2 = Combobox.DSComboBox2;
|
|
13
|
-
exports
|
|
13
|
+
exports["default"] = Combobox.DSComboBox2;
|
|
14
14
|
Object.defineProperty(exports, 'components', {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return Select.components;
|
|
18
|
-
}
|
|
16
|
+
get: function () { return Select.components; }
|
|
19
17
|
});
|
|
20
18
|
Object.defineProperty(exports, 'COMBOBOX_VARIANT', {
|
|
21
19
|
enumerable: true,
|
|
22
|
-
get: function () {
|
|
23
|
-
return propTypes.COMBOBOX_VARIANT;
|
|
24
|
-
}
|
|
20
|
+
get: function () { return propTypes.COMBOBOX_VARIANT; }
|
|
25
21
|
});
|
package/cjs/ComboBox/index.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('./v1/DSComboBox.js');
|
|
6
6
|
var Combobox = require('./v2/Combobox.js');
|
|
7
|
+
var ComboBox = require('./v3/ComboBox.js');
|
|
7
8
|
var Select = require('react-select');
|
|
8
9
|
var propTypes = require('@elliemae/ds-shared/prop-types');
|
|
9
10
|
|
|
@@ -11,16 +12,14 @@ var propTypes = require('@elliemae/ds-shared/prop-types');
|
|
|
11
12
|
|
|
12
13
|
exports.ComboBoxWithSchema = Combobox.ComboBoxWithSchema;
|
|
13
14
|
exports.DSComboBox2 = Combobox.DSComboBox2;
|
|
14
|
-
exports
|
|
15
|
+
exports["default"] = Combobox.DSComboBox2;
|
|
16
|
+
exports.DSComboBox = ComboBox.DSComboBox;
|
|
17
|
+
exports.DSComboBoxWithSchema = ComboBox.DSComboBoxWithSchema;
|
|
15
18
|
Object.defineProperty(exports, 'components', {
|
|
16
19
|
enumerable: true,
|
|
17
|
-
get: function () {
|
|
18
|
-
return Select.components;
|
|
19
|
-
}
|
|
20
|
+
get: function () { return Select.components; }
|
|
20
21
|
});
|
|
21
22
|
Object.defineProperty(exports, 'COMBOBOX_VARIANT', {
|
|
22
23
|
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return propTypes.COMBOBOX_VARIANT;
|
|
25
|
-
}
|
|
24
|
+
get: function () { return propTypes.COMBOBOX_VARIANT; }
|
|
26
25
|
});
|
|
@@ -2,15 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
5
6
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
7
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
7
|
-
|
|
8
|
+
require('core-js/modules/esnext.async-iterator.map.js');
|
|
9
|
+
require('core-js/modules/esnext.iterator.map.js');
|
|
10
|
+
require('core-js/modules/web.dom-collections.iterator.js');
|
|
11
|
+
require('core-js/modules/esnext.async-iterator.find.js');
|
|
12
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
13
|
+
require('core-js/modules/esnext.iterator.find.js');
|
|
14
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
15
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
16
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
17
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
8
18
|
var React = require('react');
|
|
9
19
|
var lodash = require('lodash');
|
|
10
20
|
var Select = require('react-select');
|
|
11
21
|
var reactPopper = require('react-popper');
|
|
12
22
|
var reactMeasure = require('react-measure');
|
|
13
|
-
var
|
|
23
|
+
var dsUtilities = require('@elliemae/ds-utilities');
|
|
14
24
|
var withSelectStringValueConverter = require('./withSelectStringValueConverter.js');
|
|
15
25
|
var propTypes = require('@elliemae/ds-shared/prop-types');
|
|
16
26
|
var Control = require('./components/Control.js');
|
|
@@ -27,9 +37,9 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
27
37
|
|
|
28
38
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
29
39
|
|
|
40
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
30
41
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
31
42
|
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
32
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
33
43
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
34
44
|
var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select);
|
|
35
45
|
|
|
@@ -39,7 +49,7 @@ const _excluded = ["hideSelectedOptions", "autoFocus", "className", "hasError",
|
|
|
39
49
|
|
|
40
50
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
41
51
|
|
|
42
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
52
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
43
53
|
const ThemeConstants = {
|
|
44
54
|
prefix: 'em-ds'
|
|
45
55
|
};
|
|
@@ -54,39 +64,35 @@ const getValues = (option, isMulti, valueProperty) => {
|
|
|
54
64
|
return isMulti ? option.map(mOption => mOption[valueProperty]) : option[valueProperty];
|
|
55
65
|
};
|
|
56
66
|
|
|
57
|
-
class DSComboBox extends React__default[
|
|
67
|
+
class DSComboBox extends React__default["default"].Component {
|
|
58
68
|
constructor(props) {
|
|
59
69
|
super(props);
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
_defineProperty__default['default'](this, "isHover", undefined);
|
|
64
|
-
|
|
65
|
-
_defineProperty__default['default'](this, "handleHover", lodash.debounce(value => {
|
|
70
|
+
this.forceFocus = false;
|
|
71
|
+
this.isHover = undefined;
|
|
72
|
+
this.handleHover = lodash.debounce(value => {
|
|
66
73
|
if (this.state.isHover === this.isHover) return;
|
|
67
74
|
if (!this.unmount) this.setState({
|
|
68
75
|
isHover: value
|
|
69
76
|
});
|
|
70
|
-
}, 0)
|
|
71
|
-
|
|
72
|
-
_defineProperty__default['default'](this, "state", {
|
|
77
|
+
}, 0);
|
|
78
|
+
this.state = {
|
|
73
79
|
focus: null,
|
|
74
80
|
isHover: undefined
|
|
75
|
-
}
|
|
81
|
+
};
|
|
76
82
|
|
|
77
|
-
|
|
83
|
+
this.handleOutsideScroll = () => {
|
|
78
84
|
if (this.isHover !== true && !this.unmount) {
|
|
79
85
|
this.isHover = false;
|
|
80
86
|
this.handleHover(false);
|
|
81
87
|
}
|
|
82
|
-
}
|
|
88
|
+
};
|
|
83
89
|
|
|
84
|
-
|
|
90
|
+
this.handleHoverRef = value => {
|
|
85
91
|
this.isHover = value;
|
|
86
92
|
this.handleHover(value);
|
|
87
|
-
}
|
|
93
|
+
};
|
|
88
94
|
|
|
89
|
-
|
|
95
|
+
this.onKeyDownClear = e => {
|
|
90
96
|
// if (e.key === 'ArrowRight') {
|
|
91
97
|
// this.arrow.focus()
|
|
92
98
|
// } else if (e.key === 'ArrowLeft') {
|
|
@@ -95,9 +101,9 @@ class DSComboBox extends React__default['default'].Component {
|
|
|
95
101
|
if (e.keyCode === 32 || e.keyCode === 13) {
|
|
96
102
|
this.select.focus();
|
|
97
103
|
}
|
|
98
|
-
}
|
|
104
|
+
};
|
|
99
105
|
|
|
100
|
-
|
|
106
|
+
this.handleKeyDown = e => {
|
|
101
107
|
// if (e.key === 'ArrowRight') e.preventDefault()
|
|
102
108
|
// if (e.target.type === 'text' && e.key === 'ArrowRight') {
|
|
103
109
|
// if (this.clear && this.clear.focus) {
|
|
@@ -117,11 +123,11 @@ class DSComboBox extends React__default['default'].Component {
|
|
|
117
123
|
if (!value && e.key === ' ') e.preventDefault();
|
|
118
124
|
this.props.onKeyDown(e);
|
|
119
125
|
};
|
|
120
|
-
}
|
|
126
|
+
};
|
|
121
127
|
|
|
122
|
-
this.clear = /*#__PURE__*/React__default[
|
|
123
|
-
this.arrow = /*#__PURE__*/React__default[
|
|
124
|
-
this.select = /*#__PURE__*/React__default[
|
|
128
|
+
this.clear = /*#__PURE__*/React__default["default"].createRef();
|
|
129
|
+
this.arrow = /*#__PURE__*/React__default["default"].createRef();
|
|
130
|
+
this.select = /*#__PURE__*/React__default["default"].createRef();
|
|
125
131
|
}
|
|
126
132
|
|
|
127
133
|
componentDidMount() {
|
|
@@ -166,7 +172,7 @@ class DSComboBox extends React__default['default'].Component {
|
|
|
166
172
|
labelProperty = 'label',
|
|
167
173
|
menuIsOpen = undefined,
|
|
168
174
|
inlineMenu = false,
|
|
169
|
-
noOptionsMessage = () => _span || (_span = /*#__PURE__*/_jsx__default[
|
|
175
|
+
noOptionsMessage = () => _span || (_span = /*#__PURE__*/_jsx__default["default"]("span", {}, void 0, "No options")),
|
|
170
176
|
components: customComponents = {},
|
|
171
177
|
measureRef,
|
|
172
178
|
contentRect,
|
|
@@ -182,7 +188,7 @@ class DSComboBox extends React__default['default'].Component {
|
|
|
182
188
|
containerProps = {},
|
|
183
189
|
zIndex = 11
|
|
184
190
|
} = _this$props,
|
|
185
|
-
restPropsToCustomizeSelect = _objectWithoutProperties__default[
|
|
191
|
+
restPropsToCustomizeSelect = _objectWithoutProperties__default["default"](_this$props, _excluded);
|
|
186
192
|
|
|
187
193
|
const {
|
|
188
194
|
focus
|
|
@@ -198,23 +204,23 @@ class DSComboBox extends React__default['default'].Component {
|
|
|
198
204
|
internalValue = [allOption, ...value];
|
|
199
205
|
}
|
|
200
206
|
|
|
201
|
-
return /*#__PURE__*/_jsx__default[
|
|
207
|
+
return /*#__PURE__*/_jsx__default["default"](reactPopper.Manager, {}, void 0, /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({
|
|
202
208
|
ref: measureRef,
|
|
203
|
-
className:
|
|
209
|
+
className: dsUtilities.cx("".concat(ThemeConstants.prefix, "-").concat(blockName, "-wrapper"), className, hasError && "".concat(ThemeConstants.prefix, "-").concat(blockName, "--").concat(propTypes.COMBOBOX_VARIANT.ERROR), "".concat(ThemeConstants.prefix, "-").concat(blockName, "--").concat(variant), "focus-".concat(focus), isMulti && 'combo-multi', expandMenuOutsideContainer && 'expanded-outside-container')
|
|
204
210
|
}, containerProps), {}, {
|
|
205
211
|
onMouseEnter: () => {
|
|
206
212
|
this.handleHoverRef(undefined);
|
|
207
213
|
},
|
|
208
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Select__default[
|
|
214
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Select__default["default"], _objectSpread({
|
|
209
215
|
ref: ref => {
|
|
210
216
|
this.select = ref;
|
|
211
217
|
},
|
|
212
218
|
autoFocus: autoFocus,
|
|
213
|
-
classNamePrefix:
|
|
219
|
+
classNamePrefix: "".concat(ThemeConstants.prefix, "-").concat(blockName),
|
|
214
220
|
components: _objectSpread({
|
|
215
221
|
Control,
|
|
216
|
-
Menu: !options || options.length === 0 ? SelectMenu : props => /*#__PURE__*/_jsx__default[
|
|
217
|
-
className:
|
|
222
|
+
Menu: !options || options.length === 0 ? SelectMenu : props => /*#__PURE__*/_jsx__default["default"]("div", {
|
|
223
|
+
className: "select-menu-combo ".concat(isMulti && 'select-menu-combo-multi'),
|
|
218
224
|
onMouseLeave: () => {
|
|
219
225
|
this.isHover = undefined;
|
|
220
226
|
this.handleHover(undefined);
|
|
@@ -225,7 +231,7 @@ class DSComboBox extends React__default['default'].Component {
|
|
|
225
231
|
}
|
|
226
232
|
}, void 0, /*#__PURE__*/jsxRuntime.jsx(SelectMenu, _objectSpread({}, props))),
|
|
227
233
|
// Menu: SelectMenu,
|
|
228
|
-
DropdownIndicator: () => /*#__PURE__*/_jsx__default[
|
|
234
|
+
DropdownIndicator: () => /*#__PURE__*/_jsx__default["default"](DropdownIndicator, {
|
|
229
235
|
innerRef: ref => {
|
|
230
236
|
this.arrow = ref;
|
|
231
237
|
},
|
|
@@ -259,8 +265,8 @@ class DSComboBox extends React__default['default'].Component {
|
|
|
259
265
|
isRtl: isRtl,
|
|
260
266
|
isSearchable: readOnly ? false : searchable,
|
|
261
267
|
menuIsOpen: menuIsOpen === undefined ? this.isHover : menuIsOpen,
|
|
262
|
-
noOptionsMessage: (
|
|
263
|
-
noOptionsMessage(...
|
|
268
|
+
noOptionsMessage: function () {
|
|
269
|
+
noOptionsMessage(...arguments);
|
|
264
270
|
},
|
|
265
271
|
onBlur: onBlur,
|
|
266
272
|
onChange: returnValue ? (option, action) => {
|
|
@@ -304,7 +310,7 @@ class DSComboBox extends React__default['default'].Component {
|
|
|
304
310
|
const width = calculateWidth.calculateWidth(options);
|
|
305
311
|
if (!width) return null;
|
|
306
312
|
return {
|
|
307
|
-
width:
|
|
313
|
+
width: "".concat(width, "px")
|
|
308
314
|
};
|
|
309
315
|
}
|
|
310
316
|
|
|
@@ -328,21 +334,17 @@ class DSComboBox extends React__default['default'].Component {
|
|
|
328
334
|
|
|
329
335
|
}
|
|
330
336
|
|
|
331
|
-
|
|
337
|
+
DSComboBox.defaultProps = {
|
|
332
338
|
showAllOption: false
|
|
333
|
-
}
|
|
339
|
+
};
|
|
334
340
|
var DSComboBox$1 = withSelectStringValueConverter(reactMeasure.withContentRect('bounds')(DSComboBox));
|
|
335
341
|
|
|
336
342
|
Object.defineProperty(exports, 'components', {
|
|
337
343
|
enumerable: true,
|
|
338
|
-
get: function () {
|
|
339
|
-
return Select.components;
|
|
340
|
-
}
|
|
344
|
+
get: function () { return Select.components; }
|
|
341
345
|
});
|
|
342
346
|
Object.defineProperty(exports, 'COMBOBOX_VARIANT', {
|
|
343
347
|
enumerable: true,
|
|
344
|
-
get: function () {
|
|
345
|
-
return propTypes.COMBOBOX_VARIANT;
|
|
346
|
-
}
|
|
348
|
+
get: function () { return propTypes.COMBOBOX_VARIANT; }
|
|
347
349
|
});
|
|
348
|
-
exports[
|
|
350
|
+
exports["default"] = DSComboBox$1;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
4
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
5
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
6
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
3
8
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
4
9
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
5
10
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
@@ -17,12 +22,12 @@ const _excluded = ["children"];
|
|
|
17
22
|
|
|
18
23
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
19
24
|
|
|
20
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
25
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
21
26
|
|
|
22
27
|
const MultiSelectHeader = _ref => {
|
|
23
|
-
let rest = _objectWithoutProperties__default[
|
|
28
|
+
let rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
24
29
|
|
|
25
|
-
return /*#__PURE__*/_jsx__default[
|
|
30
|
+
return /*#__PURE__*/_jsx__default["default"]("div", {
|
|
26
31
|
className: "combobox-multi-select-all"
|
|
27
32
|
}, void 0, /*#__PURE__*/jsxRuntime.jsx(DSCheckbox.DSCheckbox, _objectSpread({
|
|
28
33
|
labelText: "All"
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
4
4
|
require('react');
|
|
5
|
-
var
|
|
5
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
6
6
|
var DSButton = require('@elliemae/ds-button');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
11
11
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
12
|
-
var CloseCircle__default = /*#__PURE__*/_interopDefaultLegacy(CloseCircle);
|
|
13
12
|
var DSButton__default = /*#__PURE__*/_interopDefaultLegacy(DSButton);
|
|
14
13
|
|
|
15
14
|
var _CloseCircle;
|
|
@@ -26,11 +25,11 @@ const ClearIndicator = props => {
|
|
|
26
25
|
ref: ref,
|
|
27
26
|
"aria-hidden": "false",
|
|
28
27
|
style: getStyles('clearIndicator', props),
|
|
29
|
-
children: /*#__PURE__*/_jsx__default[
|
|
28
|
+
children: /*#__PURE__*/_jsx__default["default"](DSButton__default["default"], {
|
|
30
29
|
"aria-label": "clear-indicator",
|
|
31
30
|
buttonType: "text",
|
|
32
31
|
className: "clear-indicator",
|
|
33
|
-
icon: _CloseCircle || (_CloseCircle = /*#__PURE__*/_jsx__default[
|
|
32
|
+
icon: _CloseCircle || (_CloseCircle = /*#__PURE__*/_jsx__default["default"](dsIcons.CloseCircle, {
|
|
34
33
|
size: "m"
|
|
35
34
|
})),
|
|
36
35
|
innerRef: innerRef,
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
4
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
5
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
6
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
3
8
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
4
9
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
5
10
|
require('react');
|
|
@@ -14,13 +19,16 @@ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_definePropert
|
|
|
14
19
|
|
|
15
20
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
16
21
|
|
|
17
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
22
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
18
23
|
|
|
19
|
-
const Control = props => /*#__PURE__*/_jsx__default[
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
const Control = props => /*#__PURE__*/_jsx__default["default"](reactPopper.Reference, {}, void 0, _ref => {
|
|
25
|
+
let {
|
|
26
|
+
ref
|
|
27
|
+
} = _ref;
|
|
28
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
29
|
+
ref: ref,
|
|
30
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Select.components.Control, _objectSpread({}, props))
|
|
31
|
+
});
|
|
32
|
+
});
|
|
25
33
|
|
|
26
34
|
module.exports = Control;
|