@zohodesk/components 1.0.0-temp-168 → 1.0.0-temp-170
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/.cli/PropLessFiles.html +1 -1
- package/.cli/PropValidationExcludeFilesArray.js +7 -3
- package/.cli/propValidation_report.html +1 -1
- package/README.md +1335 -1277
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +1 -0
- package/assets/Appearance/light/mode/Component_LightMode.module.css +1 -0
- package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +180 -180
- package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +12 -12
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +1 -0
- package/coverage/Button/Button.js.html +1 -1
- package/coverage/Button/css/Button.module.css.html +1 -1
- package/coverage/Button/css/cssJSLogic.js.html +1 -1
- package/coverage/Button/css/index.html +1 -1
- package/coverage/Button/index.html +1 -1
- package/coverage/Button/props/defaultProps.js.html +3 -6
- package/coverage/Button/props/index.html +1 -1
- package/coverage/Button/props/propTypes.js.html +9 -3
- package/coverage/Buttongroup/Buttongroup.js.html +1 -1
- package/coverage/Buttongroup/Buttongroup.module.css.html +1 -1
- package/coverage/Buttongroup/index.html +1 -1
- package/coverage/Buttongroup/props/defaultProps.js.html +1 -1
- package/coverage/Buttongroup/props/index.html +1 -1
- package/coverage/Buttongroup/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +10 -10
- package/coverage/coverage-summary.json +10 -10
- package/coverage/index.html +1 -1
- package/coverage/utils/dummyFunction.js.html +1 -1
- package/coverage/utils/index.html +1 -1
- package/es/AppContainer/AppContainer.js +3 -0
- package/es/AppContainer/AppContainer.module.css +18 -18
- package/es/Avatar/Avatar.js +9 -9
- package/es/Avatar/Avatar.module.css +175 -175
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +189 -189
- package/es/Button/Button.js +4 -4
- package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +440 -468
- package/es/Button/css/Button.module.css +525 -525
- package/es/Button/props/defaultProps.js +1 -2
- package/es/Button/props/propTypes.js +3 -1
- package/es/Buttongroup/Buttongroup.js +1 -1
- package/es/Buttongroup/Buttongroup.module.css +105 -105
- package/es/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
- package/es/Card/Card.js +4 -4
- package/es/Card/Card.module.css +20 -20
- package/es/CheckBox/CheckBox.js +0 -0
- package/es/CheckBox/CheckBox.module.css +157 -157
- package/es/DateTime/CalendarView.js +0 -0
- package/es/DateTime/DateTime.js +0 -0
- package/es/DateTime/DateTime.module.css +237 -235
- package/es/DateTime/DateWidget.js +2 -1
- package/es/DateTime/DateWidget.module.css +38 -38
- package/es/DateTime/YearView.js +0 -0
- package/es/DateTime/YearView.module.css +98 -98
- package/es/DateTime/common.js +0 -0
- package/es/DateTime/dateFormatUtils/dayChange.js +2 -1
- package/es/DateTime/dateFormatUtils/index.js +1 -1
- package/es/DateTime/dateFormatUtils/monthChange.js +2 -1
- package/es/DateTime/dateFormatUtils/timeChange.js +4 -4
- package/es/DateTime/dateFormatUtils/yearChange.js +2 -1
- package/es/DateTime/index.js +0 -0
- package/es/DateTime/objectUtils.js +0 -0
- package/es/DateTime/typeChecker.js +0 -0
- package/es/DateTime/validator.js +0 -0
- package/es/DropBox/DropBox.js +10 -10
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +434 -434
- package/es/DropBox/DropBoxPositionMapping.json +144 -144
- package/es/DropBox/css/DropBox.module.css +58 -58
- package/es/DropDown/DropDown.js +1 -7
- package/es/DropDown/DropDown.module.css +5 -5
- package/es/DropDown/DropDownHeading.js +0 -0
- package/es/DropDown/DropDownHeading.module.css +53 -53
- package/es/DropDown/DropDownItem.js +0 -0
- package/es/DropDown/DropDownItem.module.css +94 -94
- package/es/DropDown/DropDownSearch.js +0 -0
- package/es/DropDown/DropDownSearch.module.css +14 -14
- package/es/DropDown/DropDownSeparator.js +0 -0
- package/es/DropDown/DropDownSeparator.module.css +7 -7
- package/es/Heading/Heading.module.css +4 -4
- package/es/Label/Label.js +2 -2
- package/es/Label/Label.module.css +52 -52
- package/es/Label/LabelColors.module.css +20 -20
- package/es/Layout/Box.js +0 -0
- package/es/Layout/Container.js +0 -0
- package/es/Layout/Layout.module.css +335 -335
- package/es/Layout/utils.js +0 -0
- package/es/ListItem/ListItem.js +0 -0
- package/es/ListItem/ListItem.module.css +216 -216
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +12 -10
- package/es/MultiSelect/AdvancedMultiSelect.js +4 -4
- package/es/MultiSelect/MobileHeader/MobileHeader.js +50 -0
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -0
- package/es/MultiSelect/MobileHeader/props/defaultProps.js +7 -0
- package/es/MultiSelect/MobileHeader/props/propTypes.js +7 -0
- package/es/MultiSelect/MultiSelect.js +117 -96
- package/es/MultiSelect/MultiSelect.module.css +204 -207
- package/es/MultiSelect/MultiSelectHeader.js +1 -2
- package/es/MultiSelect/MultiSelectWithAvatar.js +15 -112
- package/es/MultiSelect/SelectedOptions.module.css +15 -15
- package/es/MultiSelect/props/defaultProps.js +3 -1
- package/es/MultiSelect/props/propTypes.js +147 -193
- package/es/PopOver/PopOver.module.css +8 -8
- package/es/Popup/Popup.js +0 -0
- package/es/Popup/PositionMapping.json +73 -73
- package/es/Radio/Radio.js +0 -0
- package/es/Radio/Radio.module.css +112 -112
- package/es/Responsive/CustomResponsive.js +0 -0
- package/es/Responsive/RefWrapper.js +2 -1
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
- package/es/Ribbon/Ribbon.js +0 -0
- package/es/Ribbon/Ribbon.module.css +454 -454
- package/es/RippleEffect/RippleEffect.module.css +92 -92
- package/es/Select/GroupSelect.js +3 -5
- package/es/Select/Select.js +2 -5
- package/es/Select/Select.module.css +108 -108
- package/es/Select/SelectWithAvatar.js +2 -1
- package/es/Select/SelectWithIcon.js +5 -2
- package/es/Select/props/propTypes.js +3 -1
- package/es/Stencils/Stencils.js +0 -0
- package/es/Stencils/Stencils.module.css +96 -96
- package/es/Switch/Switch.js +0 -0
- package/es/Switch/Switch.module.css +127 -127
- package/es/Tab/Tab.module.css +100 -100
- package/es/Tab/TabContent.module.css +4 -4
- package/es/Tab/Tabs.js +17 -17
- package/es/Tab/Tabs.module.css +136 -136
- package/es/Tag/Tag.js +8 -8
- package/es/Tag/Tag.module.css +254 -254
- package/es/TextBox/TextBox.js +3 -3
- package/es/TextBox/TextBox.module.css +158 -158
- package/es/TextBoxIcon/TextBoxIcon.js +0 -0
- package/es/TextBoxIcon/TextBoxIcon.module.css +79 -79
- package/es/Textarea/Textarea.js +0 -0
- package/es/Textarea/Textarea.module.css +139 -139
- package/es/Tooltip/Tooltip.module.css +140 -140
- package/es/common/a11y.module.css +3 -3
- package/es/common/animation.module.css +624 -624
- package/es/common/avatarsizes.module.css +48 -48
- package/es/common/basic.module.css +33 -33
- package/es/common/basicReset.module.css +40 -40
- package/es/common/boxShadow.module.css +33 -33
- package/es/common/common.module.css +524 -524
- package/es/common/customscroll.module.css +91 -91
- package/es/common/reset.module.css +13 -13
- package/es/common/transition.module.css +146 -146
- package/es/deprecated/PortalLayer/props/propTypes.js +3 -1
- package/es/index.js +2 -1
- package/es/semantic/Button/semanticButton.module.css +9 -9
- package/es/utils/Common.js +3 -0
- package/es/utils/dropDownUtils.js +0 -0
- package/es/v1/Accordion/Accordion.js +66 -0
- package/es/v1/Accordion/AccordionItem.js +57 -0
- package/es/v1/Accordion/index.js +2 -0
- package/es/v1/Animation/Animation.js +127 -0
- package/es/v1/AppContainer/AppContainer.js +120 -0
- package/es/v1/Avatar/Avatar.js +139 -0
- package/es/v1/AvatarTeam/AvatarTeam.js +70 -0
- package/es/v1/Button/Button.js +68 -0
- package/es/v1/Buttongroup/Buttongroup.js +31 -0
- package/es/v1/Card/Card.js +237 -0
- package/es/v1/Card/index.js +4 -0
- package/es/v1/CheckBox/CheckBox.js +155 -0
- package/es/v1/DateTime/CalendarView.js +218 -0
- package/es/v1/DateTime/DateTime.js +783 -0
- package/es/v1/DateTime/DateTimePopupFooter.js +47 -0
- package/es/v1/DateTime/DateTimePopupHeader.js +105 -0
- package/es/v1/DateTime/DateWidget.js +1098 -0
- package/es/v1/DateTime/DaysRow.js +31 -0
- package/es/v1/DateTime/Time.js +166 -0
- package/es/v1/DateTime/YearView.js +264 -0
- package/es/v1/DateTime/index.js +1 -0
- package/es/v1/DropBox/DropBox.js +91 -0
- package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +132 -0
- package/es/v1/DropDown/DropDown.js +52 -0
- package/es/v1/DropDown/DropDownHeading.js +36 -0
- package/es/v1/DropDown/DropDownItem.js +56 -0
- package/es/v1/DropDown/DropDownSearch.js +55 -0
- package/es/v1/DropDown/DropDownSeparator.js +12 -0
- package/es/v1/Heading/Heading.js +32 -0
- package/es/v1/Label/Label.js +40 -0
- package/es/v1/Layout/Box.js +115 -0
- package/es/v1/Layout/Container.js +132 -0
- package/es/v1/Layout/index.js +2 -0
- package/es/v1/ListItem/ListContainer.js +102 -0
- package/es/v1/ListItem/ListItem.js +124 -0
- package/es/v1/ListItem/ListItemWithAvatar.js +145 -0
- package/es/v1/ListItem/ListItemWithCheckBox.js +104 -0
- package/es/v1/ListItem/ListItemWithIcon.js +127 -0
- package/es/v1/ListItem/ListItemWithRadio.js +105 -0
- package/es/v1/ListItem/index.js +6 -0
- package/es/v1/Modal/Modal.js +154 -0
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +1079 -0
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +568 -0
- package/es/v1/MultiSelect/EmptyState.js +64 -0
- package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +50 -0
- package/es/v1/MultiSelect/MultiSelect.js +1121 -0
- package/es/v1/MultiSelect/MultiSelectHeader.js +32 -0
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +217 -0
- package/es/v1/MultiSelect/SelectedOptions.js +82 -0
- package/es/v1/MultiSelect/Suggestions.js +142 -0
- package/es/v1/MultiSelect/index.js +4 -0
- package/es/v1/PopOver/PopOver.js +176 -0
- package/es/v1/Popup/Popup.js +645 -0
- package/es/v1/Provider/AvatarSize.js +13 -0
- package/es/v1/Provider/Config.js +18 -0
- package/es/v1/Provider/CssProvider.js +16 -0
- package/es/v1/Provider/IdProvider.js +66 -0
- package/es/v1/Provider/LibraryContext.js +37 -0
- package/es/v1/Provider/LibraryContextInit.js +3 -0
- package/es/v1/Provider/NumberGenerator/NumberGenerator.js +136 -0
- package/es/v1/Provider/ZindexProvider.js +57 -0
- package/es/v1/Provider/index.js +4 -0
- package/es/v1/Radio/Radio.js +115 -0
- package/es/v1/Responsive/CustomResponsive.js +195 -0
- package/es/v1/Responsive/RefWrapper.js +39 -0
- package/es/v1/Responsive/ResizeComponent.js +197 -0
- package/es/v1/Responsive/ResizeObserver.js +140 -0
- package/es/v1/Responsive/Responsive.js +194 -0
- package/es/v1/Responsive/index.js +9 -0
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +58 -0
- package/es/v1/Ribbon/Ribbon.js +33 -0
- package/es/v1/RippleEffect/RippleEffect.js +24 -0
- package/es/v1/Select/GroupSelect.js +800 -0
- package/es/v1/Select/Select.js +966 -0
- package/es/v1/Select/SelectWithAvatar.js +344 -0
- package/es/v1/Select/SelectWithIcon.js +535 -0
- package/es/v1/Select/index.js +4 -0
- package/es/v1/Stencils/Stencils.js +26 -0
- package/es/v1/Switch/Switch.js +94 -0
- package/es/v1/Tab/Tab.js +108 -0
- package/es/v1/Tab/TabContent.js +30 -0
- package/es/v1/Tab/TabContentWrapper.js +29 -0
- package/es/v1/Tab/TabWrapper.js +57 -0
- package/es/v1/Tab/Tabs.js +612 -0
- package/es/v1/Tab/index.js +5 -0
- package/es/v1/Tag/Tag.js +134 -0
- package/es/v1/TextBox/TextBox.js +154 -0
- package/es/v1/TextBoxIcon/TextBoxIcon.js +158 -0
- package/es/v1/Textarea/Textarea.js +102 -0
- package/es/v1/Tooltip/Tooltip.js +518 -0
- package/es/v1/Typography/Typography.js +38 -0
- package/es/v1/Typography/css/Typography.module.css +376 -0
- package/es/v1/Typography/css/cssJSLogic.js +46 -0
- package/es/v1/Typography/css/letterSpacingMap.js +12 -0
- package/es/v1/Typography/props/defaultProps.js +8 -0
- package/es/v1/Typography/props/propTypes.js +24 -0
- package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +69 -0
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +100 -0
- package/es/v1/semantic/Button/Button.js +53 -0
- package/es/v1/semantic/index.js +1 -0
- package/install.md +10 -10
- package/lib/AppContainer/AppContainer.js +5 -0
- package/lib/AppContainer/AppContainer.module.css +18 -18
- package/lib/Avatar/Avatar.js +9 -9
- package/lib/Avatar/Avatar.module.css +175 -175
- package/lib/AvatarTeam/AvatarTeam.js +7 -7
- package/lib/AvatarTeam/AvatarTeam.module.css +189 -189
- package/lib/Button/Button.js +4 -4
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +440 -468
- package/lib/Button/css/Button.module.css +525 -525
- package/lib/Button/props/defaultProps.js +1 -2
- package/lib/Button/props/propTypes.js +3 -1
- package/lib/Buttongroup/Buttongroup.js +1 -1
- package/lib/Buttongroup/Buttongroup.module.css +105 -105
- package/lib/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
- package/lib/Card/Card.js +4 -4
- package/lib/Card/Card.module.css +20 -20
- package/lib/CheckBox/CheckBox.js +0 -0
- package/lib/CheckBox/CheckBox.module.css +157 -157
- package/lib/DateTime/CalendarView.js +0 -0
- package/lib/DateTime/DateTime.js +0 -0
- package/lib/DateTime/DateTime.module.css +237 -235
- package/lib/DateTime/DateWidget.js +2 -1
- package/lib/DateTime/DateWidget.module.css +38 -38
- package/lib/DateTime/YearView.js +0 -0
- package/lib/DateTime/YearView.module.css +98 -98
- package/lib/DateTime/common.js +0 -0
- package/lib/DateTime/dateFormatUtils/dayChange.js +3 -1
- package/lib/DateTime/dateFormatUtils/index.js +1 -1
- package/lib/DateTime/dateFormatUtils/monthChange.js +3 -1
- package/lib/DateTime/dateFormatUtils/timeChange.js +3 -3
- package/lib/DateTime/dateFormatUtils/yearChange.js +3 -1
- package/lib/DateTime/index.js +0 -0
- package/lib/DateTime/objectUtils.js +0 -0
- package/lib/DateTime/typeChecker.js +0 -0
- package/lib/DateTime/validator.js +0 -0
- package/lib/DropBox/DropBox.js +15 -15
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +434 -434
- package/lib/DropBox/DropBoxPositionMapping.json +144 -144
- package/lib/DropBox/css/DropBox.module.css +58 -58
- package/lib/DropDown/DropDown.js +1 -6
- package/lib/DropDown/DropDown.module.css +5 -5
- package/lib/DropDown/DropDownHeading.js +0 -0
- package/lib/DropDown/DropDownHeading.module.css +53 -53
- package/lib/DropDown/DropDownItem.js +0 -0
- package/lib/DropDown/DropDownItem.module.css +94 -94
- package/lib/DropDown/DropDownSearch.js +0 -0
- package/lib/DropDown/DropDownSearch.module.css +14 -14
- package/lib/DropDown/DropDownSeparator.js +0 -0
- package/lib/DropDown/DropDownSeparator.module.css +7 -7
- package/lib/Heading/Heading.module.css +4 -4
- package/lib/Label/Label.js +0 -0
- package/lib/Label/Label.module.css +52 -52
- package/lib/Label/LabelColors.module.css +20 -20
- package/lib/Layout/Box.js +0 -0
- package/lib/Layout/Container.js +0 -0
- package/lib/Layout/Layout.module.css +335 -335
- package/lib/Layout/utils.js +0 -0
- package/lib/ListItem/ListItem.js +0 -0
- package/lib/ListItem/ListItem.module.css +216 -216
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +12 -11
- package/lib/MultiSelect/AdvancedMultiSelect.js +4 -4
- package/lib/MultiSelect/MobileHeader/MobileHeader.js +62 -0
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -0
- package/lib/MultiSelect/MobileHeader/props/defaultProps.js +14 -0
- package/lib/MultiSelect/MobileHeader/props/propTypes.js +18 -0
- package/lib/MultiSelect/MultiSelect.js +121 -101
- package/lib/MultiSelect/MultiSelect.module.css +204 -207
- package/lib/MultiSelect/MultiSelectHeader.js +1 -2
- package/lib/MultiSelect/MultiSelectWithAvatar.js +18 -113
- package/lib/MultiSelect/SelectedOptions.module.css +15 -15
- package/lib/MultiSelect/props/defaultProps.js +3 -1
- package/lib/MultiSelect/props/propTypes.js +161 -197
- package/lib/PopOver/PopOver.module.css +8 -8
- package/lib/Popup/Popup.js +0 -0
- package/lib/Popup/PositionMapping.json +73 -73
- package/lib/Radio/Radio.js +0 -0
- package/lib/Radio/Radio.module.css +112 -112
- package/lib/Responsive/CustomResponsive.js +0 -0
- package/lib/Responsive/RefWrapper.js +2 -1
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
- package/lib/Ribbon/Ribbon.js +0 -0
- package/lib/Ribbon/Ribbon.module.css +454 -454
- package/lib/RippleEffect/RippleEffect.module.css +92 -92
- package/lib/Select/GroupSelect.js +2 -2
- package/lib/Select/Select.js +1 -2
- package/lib/Select/Select.module.css +108 -108
- package/lib/Select/SelectWithAvatar.js +2 -1
- package/lib/Select/SelectWithIcon.js +5 -3
- package/lib/Select/props/propTypes.js +12 -2
- package/lib/Stencils/Stencils.js +0 -0
- package/lib/Stencils/Stencils.module.css +96 -96
- package/lib/Switch/Switch.js +0 -0
- package/lib/Switch/Switch.module.css +127 -127
- package/lib/Tab/Tab.module.css +100 -100
- package/lib/Tab/TabContent.module.css +4 -4
- package/lib/Tab/Tabs.js +11 -11
- package/lib/Tab/Tabs.module.css +136 -136
- package/lib/Tag/Tag.js +8 -8
- package/lib/Tag/Tag.module.css +254 -254
- package/lib/TextBox/TextBox.js +10 -10
- package/lib/TextBox/TextBox.module.css +158 -158
- package/lib/TextBoxIcon/TextBoxIcon.js +0 -0
- package/lib/TextBoxIcon/TextBoxIcon.module.css +79 -79
- package/lib/Textarea/Textarea.js +0 -0
- package/lib/Textarea/Textarea.module.css +139 -139
- package/lib/Tooltip/Tooltip.module.css +140 -140
- package/lib/common/a11y.module.css +3 -3
- package/lib/common/animation.module.css +624 -624
- package/lib/common/avatarsizes.module.css +48 -48
- package/lib/common/basic.module.css +33 -33
- package/lib/common/basicReset.module.css +40 -40
- package/lib/common/boxShadow.module.css +33 -33
- package/lib/common/common.module.css +524 -524
- package/lib/common/customscroll.module.css +91 -91
- package/lib/common/reset.module.css +13 -13
- package/lib/common/transition.module.css +146 -146
- package/lib/deprecated/PortalLayer/props/propTypes.js +3 -1
- package/lib/index.js +10 -1
- package/lib/semantic/Button/semanticButton.module.css +9 -9
- package/lib/utils/Common.js +5 -0
- package/lib/utils/dropDownUtils.js +0 -0
- package/lib/v1/Accordion/Accordion.js +98 -0
- package/lib/v1/Accordion/AccordionItem.js +68 -0
- package/lib/v1/Accordion/index.js +23 -0
- package/lib/v1/Animation/Animation.js +143 -0
- package/lib/v1/AppContainer/AppContainer.js +158 -0
- package/lib/v1/Avatar/Avatar.js +190 -0
- package/lib/v1/AvatarTeam/AvatarTeam.js +81 -0
- package/lib/v1/Button/Button.js +82 -0
- package/lib/v1/Buttongroup/Buttongroup.js +44 -0
- package/lib/v1/Card/Card.js +269 -0
- package/lib/v1/Card/index.js +37 -0
- package/lib/v1/CheckBox/CheckBox.js +166 -0
- package/lib/v1/DateTime/CalendarView.js +285 -0
- package/lib/v1/DateTime/DateTime.js +872 -0
- package/lib/v1/DateTime/DateTimePopupFooter.js +96 -0
- package/lib/v1/DateTime/DateTimePopupHeader.js +166 -0
- package/lib/v1/DateTime/DateWidget.js +1125 -0
- package/lib/v1/DateTime/DaysRow.js +80 -0
- package/lib/v1/DateTime/Time.js +254 -0
- package/lib/v1/DateTime/YearView.js +325 -0
- package/lib/v1/DateTime/index.js +15 -0
- package/lib/v1/DropBox/DropBox.js +119 -0
- package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +145 -0
- package/lib/v1/DropDown/DropDown.js +74 -0
- package/lib/v1/DropDown/DropDownHeading.js +47 -0
- package/lib/v1/DropDown/DropDownItem.js +75 -0
- package/lib/v1/DropDown/DropDownSearch.js +74 -0
- package/lib/v1/DropDown/DropDownSeparator.js +24 -0
- package/lib/v1/Heading/Heading.js +49 -0
- package/lib/v1/Label/Label.js +51 -0
- package/lib/v1/Layout/Box.js +128 -0
- package/lib/v1/Layout/Container.js +145 -0
- package/lib/v1/Layout/index.js +23 -0
- package/lib/v1/ListItem/ListContainer.js +120 -0
- package/lib/v1/ListItem/ListItem.js +138 -0
- package/lib/v1/ListItem/ListItemWithAvatar.js +162 -0
- package/lib/v1/ListItem/ListItemWithCheckBox.js +125 -0
- package/lib/v1/ListItem/ListItemWithIcon.js +143 -0
- package/lib/v1/ListItem/ListItemWithRadio.js +126 -0
- package/lib/v1/ListItem/index.js +55 -0
- package/lib/v1/Modal/Modal.js +212 -0
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +1167 -0
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +634 -0
- package/lib/v1/MultiSelect/EmptyState.js +112 -0
- package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +62 -0
- package/lib/v1/MultiSelect/MultiSelect.js +1203 -0
- package/lib/v1/MultiSelect/MultiSelectHeader.js +78 -0
- package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +272 -0
- package/lib/v1/MultiSelect/SelectedOptions.js +126 -0
- package/lib/v1/MultiSelect/Suggestions.js +195 -0
- package/lib/v1/MultiSelect/index.js +39 -0
- package/lib/v1/PopOver/PopOver.js +197 -0
- package/lib/v1/Popup/Popup.js +715 -0
- package/lib/v1/Provider/AvatarSize.js +24 -0
- package/lib/v1/Provider/Config.js +27 -0
- package/lib/v1/Provider/CssProvider.js +27 -0
- package/lib/v1/Provider/IdProvider.js +79 -0
- package/lib/v1/Provider/LibraryContext.js +76 -0
- package/lib/v1/Provider/LibraryContextInit.js +15 -0
- package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +174 -0
- package/lib/v1/Provider/ZindexProvider.js +69 -0
- package/lib/v1/Provider/index.js +81 -0
- package/lib/v1/Radio/Radio.js +126 -0
- package/lib/v1/Responsive/CustomResponsive.js +242 -0
- package/lib/v1/Responsive/RefWrapper.js +57 -0
- package/lib/v1/Responsive/ResizeComponent.js +268 -0
- package/lib/v1/Responsive/ResizeObserver.js +168 -0
- package/lib/v1/Responsive/Responsive.js +274 -0
- package/lib/v1/Responsive/index.js +55 -0
- package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +79 -0
- package/lib/v1/Ribbon/Ribbon.js +44 -0
- package/lib/v1/RippleEffect/RippleEffect.js +39 -0
- package/lib/v1/Select/GroupSelect.js +876 -0
- package/lib/v1/Select/Select.js +1012 -0
- package/lib/v1/Select/SelectWithAvatar.js +394 -0
- package/lib/v1/Select/SelectWithIcon.js +597 -0
- package/lib/v1/Select/index.js +39 -0
- package/lib/v1/Stencils/Stencils.js +43 -0
- package/lib/v1/Switch/Switch.js +108 -0
- package/lib/v1/Tab/Tab.js +132 -0
- package/lib/v1/Tab/TabContent.js +42 -0
- package/lib/v1/Tab/TabContentWrapper.js +42 -0
- package/lib/v1/Tab/TabWrapper.js +89 -0
- package/lib/v1/Tab/Tabs.js +680 -0
- package/lib/v1/Tab/index.js +47 -0
- package/lib/v1/Tag/Tag.js +154 -0
- package/lib/v1/TextBox/TextBox.js +168 -0
- package/lib/v1/TextBoxIcon/TextBoxIcon.js +196 -0
- package/lib/v1/Textarea/Textarea.js +118 -0
- package/lib/v1/Tooltip/Tooltip.js +586 -0
- package/lib/v1/Typography/Typography.js +56 -0
- package/lib/v1/Typography/css/Typography.module.css +376 -0
- package/lib/v1/Typography/css/cssJSLogic.js +41 -0
- package/lib/v1/Typography/css/letterSpacingMap.js +20 -0
- package/lib/v1/Typography/props/defaultProps.js +15 -0
- package/lib/v1/Typography/props/propTypes.js +35 -0
- package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +90 -0
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +126 -0
- package/lib/v1/semantic/Button/Button.js +63 -0
- package/lib/v1/semantic/index.js +15 -0
- package/package.json +93 -93
- package/postPublish.js +8 -8
- package/prePublish.js +70 -70
- package/react-cli.config.js +23 -23
- package/result.json +1 -1
- package/unittest/index.html +1 -1
|
@@ -13,6 +13,8 @@ var _propTypes = require("./props/propTypes");
|
|
|
13
13
|
|
|
14
14
|
var _defaultProps = require("./props/defaultProps");
|
|
15
15
|
|
|
16
|
+
var _defaultProps2 = require("./MobileHeader/props/defaultProps");
|
|
17
|
+
|
|
16
18
|
var _Popup = _interopRequireDefault(require("../Popup/Popup"));
|
|
17
19
|
|
|
18
20
|
var _TextBoxIcon = _interopRequireDefault(require("../TextBoxIcon/TextBoxIcon"));
|
|
@@ -27,8 +29,6 @@ var _Suggestions = _interopRequireDefault(require("./Suggestions"));
|
|
|
27
29
|
|
|
28
30
|
var _EmptyState = _interopRequireDefault(require("./EmptyState"));
|
|
29
31
|
|
|
30
|
-
var _MultiSelectHeader = _interopRequireDefault(require("./MultiSelectHeader"));
|
|
31
|
-
|
|
32
32
|
var _CssProvider = _interopRequireDefault(require("../Provider/CssProvider"));
|
|
33
33
|
|
|
34
34
|
var _IdProvider = require("../Provider/IdProvider");
|
|
@@ -37,6 +37,8 @@ var _ResponsiveDropBox = _interopRequireDefault(require("../ResponsiveDropBox/Re
|
|
|
37
37
|
|
|
38
38
|
var _CustomResponsive = require("../Responsive/CustomResponsive");
|
|
39
39
|
|
|
40
|
+
var _MultiSelectHeader = _interopRequireDefault(require("./MultiSelectHeader"));
|
|
41
|
+
|
|
40
42
|
var _Loader = _interopRequireDefault(require("@zohodesk/svg/lib/Loader/Loader"));
|
|
41
43
|
|
|
42
44
|
var _icons = require("@zohodesk/icons");
|
|
@@ -47,7 +49,7 @@ var _Common = require("../utils/Common.js");
|
|
|
47
49
|
|
|
48
50
|
var _dropDownUtils = require("../utils/dropDownUtils");
|
|
49
51
|
|
|
50
|
-
var
|
|
52
|
+
var _MobileHeader = _interopRequireDefault(require("./MobileHeader/MobileHeader"));
|
|
51
53
|
|
|
52
54
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
53
55
|
|
|
@@ -151,7 +153,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
151
153
|
_this.suggestionsOrder = [];
|
|
152
154
|
_this._isMounted = false;
|
|
153
155
|
|
|
154
|
-
_Common.bind.apply(_assertThisInitialized(_this), ['handleInputCick', 'handleFilterSuggestions', 'handleKeyDown', 'handleSelectAll', 'handleDeselectAll', 'handleSelectOption', 'handleRemoveOption', 'handleSearch', 'handleClickSelectedOption', 'handleChange', 'handlePopupClose', 'togglePopup', 'selectedOptionRef', 'searchInputRef', 'suggestionContainerRef', 'suggestionItemRef', 'selectedOptionContainerRef', 'handleActive', 'handleInactive', 'handleMouseEnter', 'handleFetchOptions', 'handleFormatOptions', 'handleGetSelectedOptions', 'handleComponentDidUpdate', 'handleInputFocus', 'handleExposedPublicMethods']);
|
|
156
|
+
_Common.bind.apply(_assertThisInitialized(_this), ['handleInputCick', 'handleFilterSuggestions', 'handleKeyDown', 'handleSelectAll', 'handleDeselectAll', 'handleSelectOption', 'handleRemoveOption', 'handleSearch', 'handleClickSelectedOption', 'handleChange', 'handlePopupClose', 'togglePopup', 'selectedOptionRef', 'searchInputRef', 'suggestionContainerRef', 'suggestionItemRef', 'selectedOptionContainerRef', 'handleActive', 'handleInactive', 'handleMouseEnter', 'handleFetchOptions', 'handleFormatOptions', 'handleGetSelectedOptions', 'handleComponentDidUpdate', 'handleInputFocus', 'handleExposedPublicMethods', 'getSelectionUI', 'moveFocusToTextbox']);
|
|
155
157
|
|
|
156
158
|
_this.handleSearchOptions = (0, _Common.debounce)(_this.handleSearchOptions.bind(_assertThisInitialized(_this)), searchDebounceTime);
|
|
157
159
|
_this.handleScroll = _this.handleScroll.bind(_assertThisInitialized(_this));
|
|
@@ -398,8 +400,8 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
398
400
|
if (suggestionsLen && isPopupOpen && keyCode === 38) {
|
|
399
401
|
//up arrow
|
|
400
402
|
|
|
401
|
-
/*if (hoverOption === 0) { //disable first to last option higlight
|
|
402
|
-
!isNextOptions && this.setState({ hoverOption: suggestionsLen - 1 });
|
|
403
|
+
/*if (hoverOption === 0) { //disable first to last option higlight
|
|
404
|
+
!isNextOptions && this.setState({ hoverOption: suggestionsLen - 1 });
|
|
403
405
|
}*/
|
|
404
406
|
if (hoverOption) {
|
|
405
407
|
this.setState({
|
|
@@ -409,9 +411,9 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
409
411
|
} else if (suggestionsLen && isPopupOpen && keyCode === 40) {
|
|
410
412
|
//down arrow
|
|
411
413
|
|
|
412
|
-
/*else if (hoverOption === suggestionsLen - 1 || hoverOption === null) {
|
|
413
|
-
//disable last to first option higlight
|
|
414
|
-
!isNextOptions && this.setState({ hoverOption: 0 });
|
|
414
|
+
/*else if (hoverOption === suggestionsLen - 1 || hoverOption === null) {
|
|
415
|
+
//disable last to first option higlight
|
|
416
|
+
!isNextOptions && this.setState({ hoverOption: 0 });
|
|
415
417
|
}*/
|
|
416
418
|
if (isNextOptions && suggestionsLen >= 5 && hoverOption === suggestionsLen - 3) {
|
|
417
419
|
getNextOptions && this.handleFetchOptions(getNextOptions, searchStr);
|
|
@@ -619,9 +621,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
619
621
|
this.handleChange(newSelectedOptions);
|
|
620
622
|
}
|
|
621
623
|
|
|
622
|
-
this.
|
|
623
|
-
preventScroll: true
|
|
624
|
-
});
|
|
624
|
+
this.moveFocusToTextbox();
|
|
625
625
|
}
|
|
626
626
|
}, {
|
|
627
627
|
key: "handleMouseEnter",
|
|
@@ -763,9 +763,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
763
763
|
this.setState({
|
|
764
764
|
shiftKeyPressHighLighted: 0
|
|
765
765
|
});
|
|
766
|
-
this.
|
|
767
|
-
preventScroll: true
|
|
768
|
-
});
|
|
766
|
+
this.moveFocusToTextbox();
|
|
769
767
|
}
|
|
770
768
|
}, {
|
|
771
769
|
key: "handleScroll",
|
|
@@ -814,9 +812,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
814
812
|
|
|
815
813
|
onChange && onChange(newSelectedOptions, allSelectedOptionsDetails); // this.setState({ searchStr: '' });
|
|
816
814
|
|
|
817
|
-
this.
|
|
818
|
-
preventScroll: true
|
|
819
|
-
});
|
|
815
|
+
this.moveFocusToTextbox();
|
|
820
816
|
|
|
821
817
|
if (needToCloseOnSelect) {
|
|
822
818
|
togglePopup(e);
|
|
@@ -903,7 +899,12 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
903
899
|
var _this$props12 = this.props,
|
|
904
900
|
isDisabled = _this$props12.isDisabled,
|
|
905
901
|
isReadOnly = _this$props12.isReadOnly;
|
|
906
|
-
|
|
902
|
+
!isDisabled && !isReadOnly && this.moveFocusToTextbox();
|
|
903
|
+
}
|
|
904
|
+
}, {
|
|
905
|
+
key: "moveFocusToTextbox",
|
|
906
|
+
value: function moveFocusToTextbox() {
|
|
907
|
+
this.searchInput && this.searchInput.focus({
|
|
907
908
|
preventScroll: true
|
|
908
909
|
});
|
|
909
910
|
}
|
|
@@ -928,79 +929,43 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
928
929
|
};
|
|
929
930
|
}
|
|
930
931
|
}, {
|
|
931
|
-
key: "
|
|
932
|
-
value: function
|
|
933
|
-
var
|
|
934
|
-
|
|
932
|
+
key: "getSelectionUI",
|
|
933
|
+
value: function getSelectionUI() {
|
|
934
|
+
var isResponsive = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
935
935
|
var _this$props14 = this.props,
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
noMoreOptionsMessage = _this$props14.noMoreOptionsMessage,
|
|
941
|
-
dropBoxSize = _this$props14.dropBoxSize,
|
|
936
|
+
size = _this$props14.size,
|
|
937
|
+
needBorder = _this$props14.needBorder,
|
|
938
|
+
disableAction = _this$props14.disableAction,
|
|
939
|
+
borderColor = _this$props14.borderColor,
|
|
942
940
|
placeHolder = _this$props14.placeHolder,
|
|
943
|
-
isPopupOpen = _this$props14.isPopupOpen,
|
|
944
|
-
isPopupReady = _this$props14.isPopupReady,
|
|
945
|
-
position = _this$props14.position,
|
|
946
|
-
defaultDropBoxPosition = _this$props14.defaultDropBoxPosition,
|
|
947
|
-
selectAllText = _this$props14.selectAllText,
|
|
948
|
-
getContainerRef = _this$props14.getContainerRef,
|
|
949
|
-
removeClose = _this$props14.removeClose,
|
|
950
|
-
isAnimate = _this$props14.isAnimate,
|
|
951
|
-
animationStyle = _this$props14.animationStyle,
|
|
952
941
|
textBoxSize = _this$props14.textBoxSize,
|
|
953
942
|
variant = _this$props14.variant,
|
|
954
|
-
size = _this$props14.size,
|
|
955
|
-
isDisabled = _this$props14.isDisabled,
|
|
956
|
-
title = _this$props14.title,
|
|
957
|
-
needResponsive = _this$props14.needResponsive,
|
|
958
|
-
dataId = _this$props14.dataId,
|
|
959
|
-
dataSelectorId = _this$props14.dataSelectorId,
|
|
960
|
-
isSearching = _this$props14.isSearching,
|
|
961
|
-
borderColor = _this$props14.borderColor,
|
|
962
943
|
textBoxClass = _this$props14.textBoxClass,
|
|
963
|
-
needBorder = _this$props14.needBorder,
|
|
964
|
-
disableAction = _this$props14.disableAction,
|
|
965
|
-
isBoxPaddingNeed = _this$props14.isBoxPaddingNeed,
|
|
966
|
-
palette = _this$props14.palette,
|
|
967
944
|
needAutoFocus = _this$props14.needAutoFocus,
|
|
968
945
|
htmlId = _this$props14.htmlId,
|
|
969
|
-
i18nKeys = _this$props14.i18nKeys,
|
|
970
|
-
a11y = _this$props14.a11y,
|
|
971
946
|
children = _this$props14.children,
|
|
972
947
|
customChildrenClass = _this$props14.customChildrenClass,
|
|
973
|
-
getFooter = _this$props14.getFooter,
|
|
974
|
-
needEffect = _this$props14.needEffect,
|
|
975
|
-
disabledOptions = _this$props14.disabledOptions,
|
|
976
|
-
boxSize = _this$props14.boxSize,
|
|
977
948
|
autoComplete = _this$props14.autoComplete,
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
989
|
-
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage,
|
|
990
|
-
noMoreText: i18nKeys.noMoreText || noMoreOptionsMessage
|
|
991
|
-
});
|
|
949
|
+
a11y = _this$props14.a11y,
|
|
950
|
+
disabledOptions = _this$props14.disabledOptions,
|
|
951
|
+
i18nKeys = _this$props14.i18nKeys,
|
|
952
|
+
isReadOnly = _this$props14.isReadOnly,
|
|
953
|
+
isDisabled = _this$props14.isDisabled,
|
|
954
|
+
palette = _this$props14.palette,
|
|
955
|
+
dataId = _this$props14.dataId,
|
|
956
|
+
setAriaId = _this$props14.setAriaId,
|
|
957
|
+
isPopupOpen = _this$props14.isPopupOpen,
|
|
958
|
+
ariaErrorId = _this$props14.ariaErrorId;
|
|
992
959
|
var _this$state8 = this.state,
|
|
960
|
+
isActive = _this$state8.isActive,
|
|
993
961
|
selectedOptions = _this$state8.selectedOptions,
|
|
994
|
-
searchStr = _this$state8.searchStr,
|
|
995
|
-
hoverOption = _this$state8.hoverOption,
|
|
996
962
|
highLightedSelectOptions = _this$state8.highLightedSelectOptions,
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
var ariaErrorId = this.getNextAriaId();
|
|
963
|
+
searchStr = _this$state8.searchStr;
|
|
964
|
+
var _i18nKeys$clearText = i18nKeys.clearText,
|
|
965
|
+
clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
|
|
966
|
+
var _a11y$clearLabel = a11y.clearLabel,
|
|
967
|
+
clearLabel = _a11y$clearLabel === void 0 ? 'Clear all' : _a11y$clearLabel,
|
|
968
|
+
ariaLabelledby = a11y.ariaLabelledby;
|
|
1004
969
|
|
|
1005
970
|
var _this$getIsShowClearI = this.getIsShowClearIcon({
|
|
1006
971
|
selectedOptions: selectedOptions,
|
|
@@ -1009,17 +974,10 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1009
974
|
isShowClear = _this$getIsShowClearI.isShowClearIcon;
|
|
1010
975
|
|
|
1011
976
|
var isShowClearIcon = !isReadOnly && !isDisabled && !disableAction && isShowClear;
|
|
1012
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
1013
|
-
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(disableAction ? (0, _CssProvider["default"])('isBlock') : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
1014
|
-
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
1015
|
-
"data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
1016
|
-
"data-title": isDisabled ? title : null,
|
|
1017
|
-
onClick: this.handleInputFocus,
|
|
1018
|
-
"data-selector-id": dataSelectorId
|
|
1019
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
977
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
1020
978
|
align: "vertical",
|
|
1021
979
|
alignBox: "row",
|
|
1022
|
-
className: "".concat(_MultiSelectModule["default"].container, " ").concat(_MultiSelectModule["default"][size], " ").concat(needBorder ? !disableAction ? _MultiSelectModule["default"]["borderColor_".concat(borderColor)] : _MultiSelectModule["default"].borderColor_transparent : '', " ").concat(isActive && needBorder ? _MultiSelectModule["default"].active : '', " ").concat(textBoxClass, " ").concat(needBorder ? _MultiSelectModule["default"].hasBorder : ''),
|
|
980
|
+
className: "".concat(_MultiSelectModule["default"].container, " ").concat(_MultiSelectModule["default"][size], " ").concat(needBorder ? !disableAction ? _MultiSelectModule["default"]["borderColor_".concat(borderColor)] : _MultiSelectModule["default"].borderColor_transparent : '', " ").concat(isActive && needBorder || isResponsive ? _MultiSelectModule["default"].active : '', " ").concat(textBoxClass, " ").concat(needBorder ? _MultiSelectModule["default"].hasBorder : ''),
|
|
1023
981
|
eleRef: this.selectedOptionContainerRef,
|
|
1024
982
|
wrap: "wrap"
|
|
1025
983
|
}, /*#__PURE__*/_react["default"].createElement(_SelectedOptions["default"], {
|
|
@@ -1037,14 +995,14 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1037
995
|
adjust: true,
|
|
1038
996
|
shrink: true
|
|
1039
997
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
1040
|
-
className: " ".concat(_MultiSelectModule["default"].custmSpan, " ").concat(textBoxSize === 'xmedium' ? _MultiSelectModule["default"].custmSpanXmedium : _MultiSelectModule["default"].custmSpanMedium, " ").concat(isShowClearIcon ? _MultiSelectModule["default"].clearIconSpace : '', "\n
|
|
998
|
+
className: " ".concat(_MultiSelectModule["default"].custmSpan, " ").concat(textBoxSize === 'xmedium' ? _MultiSelectModule["default"].custmSpanXmedium : _MultiSelectModule["default"].custmSpanMedium, " ").concat(isShowClearIcon ? _MultiSelectModule["default"].clearIconSpace : '', "\n ").concat(customChildrenClass ? customChildrenClass : '')
|
|
1041
999
|
}, searchStr), /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
1042
1000
|
isDisabled: isDisabled,
|
|
1043
1001
|
inputRef: this.searchInputRef,
|
|
1044
1002
|
needBorder: false,
|
|
1045
1003
|
onBlur: this.handleInactive,
|
|
1046
1004
|
onChange: this.handleSearch,
|
|
1047
|
-
onClick: this.handleInputCick,
|
|
1005
|
+
onClick: !isResponsive ? this.handleInputCick : undefined,
|
|
1048
1006
|
onFocus: this.handleActive,
|
|
1049
1007
|
onKeyDown: this.handleKeyDown,
|
|
1050
1008
|
autofocus: needAutoFocus,
|
|
@@ -1085,7 +1043,70 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1085
1043
|
size: "15"
|
|
1086
1044
|
})) : null, children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
1087
1045
|
dataId: "".concat(dataId, "_children")
|
|
1088
|
-
}, children) : null))))
|
|
1046
|
+
}, children) : null))));
|
|
1047
|
+
}
|
|
1048
|
+
}, {
|
|
1049
|
+
key: "render",
|
|
1050
|
+
value: function render() {
|
|
1051
|
+
var _this5 = this;
|
|
1052
|
+
|
|
1053
|
+
var _this$props15 = this.props,
|
|
1054
|
+
isReadOnly = _this$props15.isReadOnly,
|
|
1055
|
+
searchEmptyMessage = _this$props15.searchEmptyMessage,
|
|
1056
|
+
emptyMessage = _this$props15.emptyMessage,
|
|
1057
|
+
noMoreOptionsMessage = _this$props15.noMoreOptionsMessage,
|
|
1058
|
+
dropBoxSize = _this$props15.dropBoxSize,
|
|
1059
|
+
isPopupOpen = _this$props15.isPopupOpen,
|
|
1060
|
+
isPopupReady = _this$props15.isPopupReady,
|
|
1061
|
+
position = _this$props15.position,
|
|
1062
|
+
defaultDropBoxPosition = _this$props15.defaultDropBoxPosition,
|
|
1063
|
+
getContainerRef = _this$props15.getContainerRef,
|
|
1064
|
+
removeClose = _this$props15.removeClose,
|
|
1065
|
+
isAnimate = _this$props15.isAnimate,
|
|
1066
|
+
animationStyle = _this$props15.animationStyle,
|
|
1067
|
+
isDisabled = _this$props15.isDisabled,
|
|
1068
|
+
title = _this$props15.title,
|
|
1069
|
+
needResponsive = _this$props15.needResponsive,
|
|
1070
|
+
dataId = _this$props15.dataId,
|
|
1071
|
+
dataSelectorId = _this$props15.dataSelectorId,
|
|
1072
|
+
isSearching = _this$props15.isSearching,
|
|
1073
|
+
borderColor = _this$props15.borderColor,
|
|
1074
|
+
disableAction = _this$props15.disableAction,
|
|
1075
|
+
isBoxPaddingNeed = _this$props15.isBoxPaddingNeed,
|
|
1076
|
+
palette = _this$props15.palette,
|
|
1077
|
+
i18nKeys = _this$props15.i18nKeys,
|
|
1078
|
+
getFooter = _this$props15.getFooter,
|
|
1079
|
+
needEffect = _this$props15.needEffect,
|
|
1080
|
+
boxSize = _this$props15.boxSize,
|
|
1081
|
+
isLoading = _this$props15.isLoading,
|
|
1082
|
+
selectAllText = _this$props15.selectAllText,
|
|
1083
|
+
needSelectAll = _this$props15.needSelectAll;
|
|
1084
|
+
var _this$state9 = this.state,
|
|
1085
|
+
selectedOptions = _this$state9.selectedOptions,
|
|
1086
|
+
searchStr = _this$state9.searchStr,
|
|
1087
|
+
hoverOption = _this$state9.hoverOption,
|
|
1088
|
+
options = _this$state9.options,
|
|
1089
|
+
isFetchingOptions = _this$state9.isFetchingOptions,
|
|
1090
|
+
selectedOptionIds = _this$state9.selectedOptionIds;
|
|
1091
|
+
var _i18nKeys = i18nKeys,
|
|
1092
|
+
_i18nKeys$searchText = _i18nKeys.searchText,
|
|
1093
|
+
searchText = _i18nKeys$searchText === void 0 ? 'Searching...' : _i18nKeys$searchText;
|
|
1094
|
+
var suggestions = this.handleFilterSuggestions();
|
|
1095
|
+
var setAriaId = this.getNextAriaId();
|
|
1096
|
+
var ariaErrorId = this.getNextAriaId();
|
|
1097
|
+
i18nKeys = Object.assign({}, _defaultProps2.defaultProps.i18nKeys, i18nKeys, {
|
|
1098
|
+
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
1099
|
+
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage,
|
|
1100
|
+
noMoreText: i18nKeys.noMoreText || noMoreOptionsMessage
|
|
1101
|
+
});
|
|
1102
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
1103
|
+
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(disableAction ? (0, _CssProvider["default"])('isBlock') : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
1104
|
+
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
1105
|
+
"data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
1106
|
+
"data-title": isDisabled ? title : null,
|
|
1107
|
+
onClick: this.handleInputFocus,
|
|
1108
|
+
"data-selector-id": dataSelectorId
|
|
1109
|
+
}, this.getSelectionUI(), !isReadOnly && !isDisabled && !disableAction && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
1089
1110
|
query: this.responsiveFunc,
|
|
1090
1111
|
responsiveId: "Helmet"
|
|
1091
1112
|
}, function (_ref7) {
|
|
@@ -1115,13 +1136,18 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1115
1136
|
}, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
1116
1137
|
customClass: "".concat(_MultiSelectModule["default"].box, " ").concat(_MultiSelectModule["default"]["".concat(palette, "Box")]),
|
|
1117
1138
|
onScroll: _this5.handleScroll
|
|
1118
|
-
},
|
|
1119
|
-
|
|
1139
|
+
}, tabletMode && /*#__PURE__*/_react["default"].createElement(_MobileHeader["default"], {
|
|
1140
|
+
selectedOptions: selectedOptions,
|
|
1141
|
+
i18nKeys: i18nKeys,
|
|
1142
|
+
onClick: _this5.handlePopupClose
|
|
1143
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
1144
|
+
className: _MultiSelectModule["default"].effect
|
|
1145
|
+
}, _this5.getSelectionUI(true))), needSelectAll ? /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement(_MultiSelectHeader["default"], {
|
|
1120
1146
|
onSelect: _this5.handleSelectAll,
|
|
1121
1147
|
selectAllText: selectAllText,
|
|
1122
1148
|
suggestions: suggestions,
|
|
1123
1149
|
dataId: dataId
|
|
1124
|
-
})), isLoading ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
1150
|
+
})) : null, isLoading ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
1125
1151
|
align: "both",
|
|
1126
1152
|
className: _MultiSelectModule["default"].loader
|
|
1127
1153
|
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null)) : /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
@@ -1165,13 +1191,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1165
1191
|
|
|
1166
1192
|
exports.MultiSelectComponent = MultiSelectComponent;
|
|
1167
1193
|
MultiSelectComponent.propTypes = _propTypes.MultiSelect_propTypes;
|
|
1168
|
-
MultiSelectComponent.defaultProps = _defaultProps.MultiSelect_defaultProps;
|
|
1169
|
-
// MultiSelectComponent.docs = {
|
|
1170
|
-
// componentGroup: 'Form Elements',
|
|
1171
|
-
// folderName: 'Style Guide'
|
|
1172
|
-
// };
|
|
1173
|
-
// }
|
|
1174
|
-
|
|
1194
|
+
MultiSelectComponent.defaultProps = _defaultProps.MultiSelect_defaultProps;
|
|
1175
1195
|
MultiSelectComponent.displayName = 'MultiSelect';
|
|
1176
1196
|
var MultiSelect = (0, _Popup["default"])(MultiSelectComponent);
|
|
1177
1197
|
MultiSelect.propTypes = MultiSelectComponent.propTypes;
|