@zohodesk/components 1.6.0 → 1.6.2
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/README.md +18 -1
- package/_react-cli.config.js +24 -0
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +330 -321
- package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +15 -9
- package/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css +466 -466
- package/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css +34 -34
- package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +33 -29
- package/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css +466 -466
- package/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css +34 -34
- package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +33 -29
- package/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css +466 -466
- package/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css +34 -34
- package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +33 -29
- package/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css +466 -466
- package/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css +34 -34
- package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +33 -29
- package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css +466 -466
- package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css +34 -34
- package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +33 -29
- package/assets/Appearance/light/mode/Component_LightMode.module.css +330 -321
- package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +15 -9
- package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +466 -466
- package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +34 -34
- package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +33 -29
- package/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css +466 -466
- package/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css +34 -34
- package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +33 -29
- package/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css +466 -466
- package/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css +34 -34
- package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +33 -29
- package/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css +466 -466
- package/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css +34 -34
- package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +33 -29
- package/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css +466 -466
- package/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css +34 -34
- package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +33 -29
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +330 -321
- package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +15 -9
- package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css +466 -466
- package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css +34 -34
- package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +33 -29
- package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css +466 -466
- package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css +34 -34
- package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +33 -29
- package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css +466 -466
- package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css +34 -34
- package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +33 -29
- package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css +466 -466
- package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css +34 -34
- package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +33 -29
- package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css +466 -466
- package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css +34 -34
- package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +33 -29
- package/assets/Contrast/darkContrastLightness.module.css +36 -36
- package/assets/Contrast/lightContrastLightness.module.css +36 -36
- package/assets/Contrast/pureDarkContrastLightness.module.css +36 -36
- package/cbt.config.js +41 -0
- package/es/AppContainer/AppContainer.js +9 -10
- package/es/Avatar/Avatar.js +5 -4
- package/es/Avatar/Avatar.module.css +8 -8
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +30 -30
- package/es/Button/Button.js +6 -5
- package/es/Button/css/Button.module.css +19 -19
- package/es/Buttongroup/Buttongroup.js +0 -0
- package/es/Buttongroup/Buttongroup.module.css +5 -3
- package/es/Card/Card.js +0 -0
- package/es/CheckBox/CheckBox.js +11 -11
- package/es/ColorSelect/ColorMultiSelect.js +4 -2
- package/es/ColorSelect/ColorSingleSelect.js +4 -2
- package/es/ColorSelect/_shared/ColorIndicator/ColorIndicator.js +4 -3
- package/es/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +2 -2
- package/es/ColorSelect/_shared/ColoredTag/ColoredTag.js +4 -2
- package/es/ColorSelect/_shared/helpers/renderHelpers.js +6 -4
- package/es/DateTime/CalendarView.js +0 -0
- package/es/DateTime/DateTime.js +5 -4
- package/es/DateTime/DateWidget.js +5 -4
- package/es/DateTime/Time.js +11 -12
- package/es/DateTime/YearView.js +0 -0
- package/es/DateTime/common.js +0 -0
- 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 +11 -10
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +6 -3
- package/es/DropDown/DropDown.js +1 -2
- package/es/DropDown/DropDownHeading.js +0 -0
- package/es/DropDown/DropDownHeading.module.css +4 -4
- package/es/DropDown/DropDownItem.js +0 -0
- package/es/DropDown/DropDownItem.module.css +4 -4
- package/es/DropDown/DropDownSearch.js +0 -0
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.js +0 -0
- package/es/Label/Label.js +7 -7
- package/es/Label/Label.module.css +5 -5
- package/es/Layout/Box.js +0 -0
- package/es/Layout/Container.js +0 -0
- package/es/Layout/utils.js +0 -0
- package/es/ListItem/ListContainer.js +5 -6
- package/es/ListItem/ListItem.js +5 -4
- package/es/ListItem/ListItem.module.css +30 -19
- package/es/ListItem/ListItemWithAvatar.js +10 -11
- package/es/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/ListItem/ListItemWithIcon.js +5 -4
- package/es/ListItem/ListItemWithRadio.js +5 -4
- package/es/Modal/Modal.js +5 -4
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +2 -0
- package/es/MultiSelect/AdvancedMultiSelect.js +11 -8
- package/es/MultiSelect/EmptyState.js +16 -2
- package/es/MultiSelect/MultiSelect.js +10 -8
- package/es/MultiSelect/MultiSelectWithAvatar.js +7 -4
- package/es/MultiSelect/SelectedOptions.js +8 -6
- package/es/MultiSelect/Suggestions.js +8 -6
- package/es/MultiSelect/props/propTypes.js +3 -0
- package/es/Popup/Popup.js +0 -0
- package/es/Provider/LibraryContext.js +11 -3
- package/es/Radio/Radio.js +11 -11
- package/es/Radio/Radio.module.css +9 -8
- package/es/Responsive/CustomResponsive.js +0 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/Ribbon/Ribbon.js +0 -0
- package/es/Ribbon/Ribbon.module.css +25 -20
- package/es/Select/GroupSelect.js +13 -12
- package/es/Select/Select.js +14 -12
- package/es/Select/SelectWithAvatar.js +13 -12
- package/es/Select/SelectWithIcon.js +10 -8
- package/es/Select/props/propTypes.js +3 -0
- package/es/Stencils/Stencils.js +0 -0
- package/es/Stencils/Stencils.module.css +11 -11
- package/es/Switch/Switch.js +8 -8
- package/es/Tab/Tab.js +5 -4
- package/es/Tab/TabContentWrapper.js +5 -4
- package/es/Tab/TabWrapper.js +4 -2
- package/es/Tab/Tabs.js +19 -20
- package/es/Tag/Tag.js +11 -12
- package/es/Tag/Tag.module.css +18 -17
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBox/TextBox.module.css +9 -9
- package/es/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/TextBoxIcon/TextBoxIcon.module.css +1 -1
- package/es/Textarea/Textarea.js +7 -6
- package/es/Textarea/Textarea.module.css +18 -18
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/common.module.css +2 -2
- package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
- package/es/deprecated/Switch/Switch.js +8 -8
- package/es/shared/ArrowIcon/ArrowIcon.js +6 -6
- package/es/shared/InputFieldLine/InputFieldLine.js +6 -6
- package/es/shared/InputFieldLine/InputFieldLine.module.css +2 -2
- package/es/utils/Common.js +0 -0
- package/es/utils/dropDownUtils.js +0 -0
- package/es/v1/Label/Label.js +98 -33
- package/es/v1/Label/__tests__/Label.spec.js +214 -0
- package/es/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +457 -0
- package/es/v1/Label/constants/index.js +8 -0
- package/es/v1/Label/css/Label_v1.module.css +42 -0
- package/es/v1/Label/css/cssJSLogic.js +44 -0
- package/es/v1/Label/props/defaultProps.js +14 -9
- package/es/v1/Label/props/propTypes.js +34 -14
- package/es/v1/Switch/Switch.js +7 -6
- package/es/v1/Switch/css/Switch_v1.module.css +28 -28
- package/lib/Avatar/Avatar.module.css +8 -8
- package/lib/AvatarTeam/AvatarTeam.js +0 -0
- package/lib/AvatarTeam/AvatarTeam.module.css +30 -30
- package/lib/Button/Button.js +0 -0
- package/lib/Button/css/Button.module.css +19 -19
- package/lib/Buttongroup/Buttongroup.js +0 -0
- package/lib/Buttongroup/Buttongroup.module.css +5 -3
- package/lib/Card/Card.js +0 -0
- package/lib/CheckBox/CheckBox.js +0 -0
- package/lib/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +2 -2
- package/lib/DateTime/CalendarView.js +0 -0
- package/lib/DateTime/DateTime.js +0 -0
- package/lib/DateTime/DateWidget.js +0 -0
- package/lib/DateTime/YearView.js +0 -0
- package/lib/DateTime/common.js +0 -0
- 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 +0 -0
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +6 -3
- package/lib/DropDown/DropDown.js +0 -0
- package/lib/DropDown/DropDownHeading.js +0 -0
- package/lib/DropDown/DropDownHeading.module.css +4 -4
- package/lib/DropDown/DropDownItem.js +0 -0
- package/lib/DropDown/DropDownItem.module.css +4 -4
- package/lib/DropDown/DropDownSearch.js +0 -0
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.js +0 -0
- package/lib/Label/Label.js +0 -0
- package/lib/Label/Label.module.css +5 -5
- package/lib/Layout/Box.js +0 -0
- package/lib/Layout/Container.js +0 -0
- package/lib/Layout/utils.js +0 -0
- package/lib/ListItem/ListItem.js +0 -0
- package/lib/ListItem/ListItem.module.css +30 -19
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +2 -0
- package/lib/MultiSelect/AdvancedMultiSelect.js +2 -0
- package/lib/MultiSelect/EmptyState.js +17 -2
- package/lib/MultiSelect/MultiSelect.js +2 -0
- package/lib/MultiSelect/MultiSelectWithAvatar.js +2 -0
- package/lib/MultiSelect/props/propTypes.js +3 -0
- package/lib/Popup/Popup.js +0 -0
- package/lib/Provider/LibraryContext.js +11 -3
- package/lib/Radio/Radio.js +0 -0
- package/lib/Radio/Radio.module.css +9 -8
- package/lib/Responsive/CustomResponsive.js +0 -0
- package/lib/Ribbon/Ribbon.js +0 -0
- package/lib/Ribbon/Ribbon.module.css +25 -20
- package/lib/Select/GroupSelect.js +2 -0
- package/lib/Select/Select.js +2 -0
- package/lib/Select/SelectWithAvatar.js +2 -0
- package/lib/Select/SelectWithIcon.js +2 -0
- package/lib/Select/props/propTypes.js +3 -0
- package/lib/Stencils/Stencils.js +0 -0
- package/lib/Stencils/Stencils.module.css +11 -11
- package/lib/Switch/Switch.js +0 -0
- package/lib/Tag/Tag.js +0 -0
- package/lib/Tag/Tag.module.css +18 -17
- package/lib/TextBox/TextBox.js +0 -0
- package/lib/TextBox/TextBox.module.css +9 -9
- package/lib/TextBoxIcon/TextBoxIcon.js +0 -0
- package/lib/TextBoxIcon/TextBoxIcon.module.css +1 -1
- package/lib/Textarea/Textarea.js +0 -0
- package/lib/Textarea/Textarea.module.css +18 -18
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/common.module.css +2 -2
- package/lib/deprecated/Switch/Switch.js +0 -0
- package/lib/shared/InputFieldLine/InputFieldLine.module.css +2 -2
- package/lib/utils/Common.js +0 -0
- package/lib/utils/dropDownUtils.js +0 -0
- package/lib/v1/Label/Label.js +104 -36
- package/lib/v1/Label/__tests__/Label.spec.js +221 -0
- package/lib/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +457 -0
- package/lib/v1/Label/constants/index.js +16 -0
- package/lib/v1/Label/css/Label_v1.module.css +42 -0
- package/lib/v1/Label/css/cssJSLogic.js +38 -0
- package/lib/v1/Label/props/defaultProps.js +16 -11
- package/lib/v1/Label/props/propTypes.js +36 -16
- package/lib/v1/Switch/css/Switch_v1.module.css +28 -28
- package/package.json +15 -20
- package/es/v1/Accordion/Accordion.js +0 -66
- package/es/v1/Accordion/AccordionItem.js +0 -57
- package/es/v1/Accordion/index.js +0 -2
- package/es/v1/Accordion/props/defaultProps.js +0 -12
- package/es/v1/Accordion/props/propTypes.js +0 -33
- package/es/v1/Animation/Animation.js +0 -45
- package/es/v1/Animation/props/defaultProps.js +0 -7
- package/es/v1/Animation/props/propTypes.js +0 -12
- package/es/v1/Animation/utils.js +0 -83
- package/es/v1/AppContainer/AppContainer.js +0 -115
- package/es/v1/AppContainer/props/defaultProps.js +0 -10
- package/es/v1/AppContainer/props/propTypes.js +0 -17
- package/es/v1/Avatar/Avatar.js +0 -139
- package/es/v1/Avatar/props/defaultProps.js +0 -17
- package/es/v1/Avatar/props/propTypes.js +0 -26
- package/es/v1/AvatarTeam/AvatarTeam.js +0 -70
- package/es/v1/AvatarTeam/props/defaultProps.js +0 -17
- package/es/v1/AvatarTeam/props/propTypes.js +0 -27
- package/es/v1/Button/Button.js +0 -67
- package/es/v1/Button/props/defaultProps.js +0 -18
- package/es/v1/Button/props/propTypes.js +0 -28
- package/es/v1/Buttongroup/Buttongroup.js +0 -31
- package/es/v1/Buttongroup/props/defaultProps.js +0 -6
- package/es/v1/Buttongroup/props/propTypes.js +0 -9
- package/es/v1/Card/Card.js +0 -237
- package/es/v1/Card/index.js +0 -4
- package/es/v1/Card/props/defaultProps.js +0 -25
- package/es/v1/Card/props/propTypes.js +0 -48
- package/es/v1/CheckBox/CheckBox.js +0 -161
- package/es/v1/CheckBox/props/defaultProps.js +0 -18
- package/es/v1/CheckBox/props/propTypes.js +0 -41
- package/es/v1/DateTime/CalendarView.js +0 -254
- package/es/v1/DateTime/DateTime.js +0 -779
- package/es/v1/DateTime/DateTimePopupFooter.js +0 -47
- package/es/v1/DateTime/DateTimePopupHeader.js +0 -105
- package/es/v1/DateTime/DateWidget.js +0 -1134
- package/es/v1/DateTime/DaysRow.js +0 -32
- package/es/v1/DateTime/Time.js +0 -181
- package/es/v1/DateTime/YearView.js +0 -264
- package/es/v1/DateTime/index.js +0 -1
- package/es/v1/DateTime/props/defaultProps.js +0 -63
- package/es/v1/DateTime/props/propTypes.js +0 -206
- package/es/v1/DropBox/DropBox.js +0 -79
- package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +0 -133
- package/es/v1/DropBox/DropBoxElement/props/defaultProps.js +0 -18
- package/es/v1/DropBox/DropBoxElement/props/propTypes.js +0 -51
- package/es/v1/DropBox/props/defaultProps.js +0 -14
- package/es/v1/DropBox/props/propTypes.js +0 -16
- package/es/v1/DropBox/utils/isMobilePopover.js +0 -17
- package/es/v1/DropDown/DropDown.js +0 -53
- package/es/v1/DropDown/DropDownHeading.js +0 -36
- package/es/v1/DropDown/DropDownItem.js +0 -56
- package/es/v1/DropDown/DropDownSearch.js +0 -58
- package/es/v1/DropDown/DropDownSeparator.js +0 -12
- package/es/v1/DropDown/props/defaultProps.js +0 -21
- package/es/v1/DropDown/props/propTypes.js +0 -66
- package/es/v1/Heading/Heading.js +0 -35
- package/es/v1/Heading/props/defaultProps.js +0 -5
- package/es/v1/Heading/props/propTypes.js +0 -12
- package/es/v1/Layout/Box.js +0 -115
- package/es/v1/Layout/Container.js +0 -132
- package/es/v1/Layout/index.js +0 -2
- package/es/v1/Layout/props/defaultProps.js +0 -16
- package/es/v1/Layout/props/propTypes.js +0 -46
- package/es/v1/ListItem/ListContainer.js +0 -104
- package/es/v1/ListItem/ListItem.js +0 -123
- package/es/v1/ListItem/ListItemWithAvatar.js +0 -143
- package/es/v1/ListItem/ListItemWithCheckBox.js +0 -104
- package/es/v1/ListItem/ListItemWithIcon.js +0 -126
- package/es/v1/ListItem/ListItemWithRadio.js +0 -105
- package/es/v1/ListItem/index.js +0 -6
- package/es/v1/ListItem/props/defaultProps.js +0 -97
- package/es/v1/ListItem/props/propTypes.js +0 -202
- package/es/v1/Modal/Modal.js +0 -125
- package/es/v1/Modal/props/defaultProps.js +0 -3
- package/es/v1/Modal/props/propTypes.js +0 -7
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +0 -1092
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +0 -583
- package/es/v1/MultiSelect/EmptyState.js +0 -64
- package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +0 -50
- package/es/v1/MultiSelect/MobileHeader/props/defaultProps.js +0 -7
- package/es/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -7
- package/es/v1/MultiSelect/MultiSelect.js +0 -1119
- package/es/v1/MultiSelect/MultiSelectHeader.js +0 -32
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +0 -208
- package/es/v1/MultiSelect/SelectedOptions.js +0 -84
- package/es/v1/MultiSelect/Suggestions.js +0 -141
- package/es/v1/MultiSelect/index.js +0 -4
- package/es/v1/MultiSelect/props/defaultProps.js +0 -165
- package/es/v1/MultiSelect/props/propTypes.js +0 -322
- package/es/v1/PopOver/PopOver.js +0 -176
- package/es/v1/PopOver/props/defaultProps.js +0 -7
- package/es/v1/PopOver/props/propTypes.js +0 -53
- package/es/v1/Popup/Popup.js +0 -644
- package/es/v1/Radio/Radio.js +0 -130
- package/es/v1/Radio/props/defaultProps.js +0 -15
- package/es/v1/Radio/props/propTypes.js +0 -40
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -56
- package/es/v1/ResponsiveDropBox/props/defaultProps.js +0 -4
- package/es/v1/ResponsiveDropBox/props/propTypes.js +0 -8
- package/es/v1/Ribbon/Ribbon.js +0 -33
- package/es/v1/Ribbon/props/defaultProps.js +0 -9
- package/es/v1/Ribbon/props/propTypes.js +0 -11
- package/es/v1/RippleEffect/RippleEffect.js +0 -25
- package/es/v1/RippleEffect/props/defaultProps.js +0 -10
- package/es/v1/RippleEffect/props/propTypes.js +0 -12
- package/es/v1/Select/GroupSelect.js +0 -818
- package/es/v1/Select/Select.js +0 -975
- package/es/v1/Select/SelectWithAvatar.js +0 -356
- package/es/v1/Select/SelectWithIcon.js +0 -545
- package/es/v1/Select/index.js +0 -4
- package/es/v1/Select/props/defaultProps.js +0 -126
- package/es/v1/Select/props/propTypes.js +0 -297
- package/es/v1/Stencils/Stencils.js +0 -26
- package/es/v1/Stencils/props/defaultProps.js +0 -6
- package/es/v1/Stencils/props/propTypes.js +0 -7
- package/es/v1/Tab/Tab.js +0 -106
- package/es/v1/Tab/TabContent.js +0 -30
- package/es/v1/Tab/TabContentWrapper.js +0 -33
- package/es/v1/Tab/TabWrapper.js +0 -55
- package/es/v1/Tab/Tabs.js +0 -619
- package/es/v1/Tab/index.js +0 -5
- package/es/v1/Tab/props/defaultProps.js +0 -51
- package/es/v1/Tab/props/propTypes.js +0 -117
- package/es/v1/Tab/v1Tab.module.css +0 -100
- package/es/v1/Tab/v1TabContent.module.css +0 -4
- package/es/v1/Tab/v1Tabs.module.css +0 -167
- package/es/v1/Tag/Tag.js +0 -140
- package/es/v1/Tag/props/defaultProps.js +0 -15
- package/es/v1/Tag/props/propTypes.js +0 -36
- package/es/v1/TextBox/TextBox.js +0 -160
- package/es/v1/TextBox/props/defaultProps.js +0 -20
- package/es/v1/TextBox/props/propTypes.js +0 -56
- package/es/v1/TextBoxIcon/TextBoxIcon.js +0 -166
- package/es/v1/TextBoxIcon/props/defaultProps.js +0 -24
- package/es/v1/TextBoxIcon/props/propTypes.js +0 -53
- package/es/v1/Textarea/Textarea.js +0 -100
- package/es/v1/Textarea/props/defaultProps.js +0 -17
- package/es/v1/Textarea/props/propTypes.js +0 -31
- package/es/v1/Tooltip/Tooltip.js +0 -530
- package/es/v1/Tooltip/props/defaultProps.js +0 -4
- package/es/v1/Tooltip/props/propTypes.js +0 -5
- package/es/v1/Typography/Typography.js +0 -38
- package/es/v1/Typography/css/cssJSLogic.js +0 -56
- package/es/v1/Typography/css/v1_Typography.module.css +0 -380
- package/es/v1/Typography/props/defaultProps.js +0 -8
- package/es/v1/Typography/props/propTypes.js +0 -27
- package/es/v1/Typography/utils/index.js +0 -50
- package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -69
- package/es/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -7
- package/es/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -12
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -99
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -15
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -19
- package/es/v1/semantic/Button/Button.js +0 -53
- package/es/v1/semantic/Button/props/defaultProps.js +0 -12
- package/es/v1/semantic/Button/props/propTypes.js +0 -22
- package/es/v1/semantic/index.js +0 -1
- package/lib/v1/Accordion/Accordion.js +0 -98
- package/lib/v1/Accordion/AccordionItem.js +0 -68
- package/lib/v1/Accordion/index.js +0 -23
- package/lib/v1/Accordion/props/defaultProps.js +0 -20
- package/lib/v1/Accordion/props/propTypes.js +0 -45
- package/lib/v1/Animation/Animation.js +0 -61
- package/lib/v1/Animation/props/defaultProps.js +0 -14
- package/lib/v1/Animation/props/propTypes.js +0 -23
- package/lib/v1/Animation/utils.js +0 -94
- package/lib/v1/AppContainer/AppContainer.js +0 -146
- package/lib/v1/AppContainer/props/defaultProps.js +0 -17
- package/lib/v1/AppContainer/props/propTypes.js +0 -28
- package/lib/v1/Avatar/Avatar.js +0 -191
- package/lib/v1/Avatar/props/defaultProps.js +0 -24
- package/lib/v1/Avatar/props/propTypes.js +0 -37
- package/lib/v1/AvatarTeam/AvatarTeam.js +0 -81
- package/lib/v1/AvatarTeam/props/defaultProps.js +0 -24
- package/lib/v1/AvatarTeam/props/propTypes.js +0 -38
- package/lib/v1/Button/Button.js +0 -82
- package/lib/v1/Button/props/defaultProps.js +0 -27
- package/lib/v1/Button/props/propTypes.js +0 -40
- package/lib/v1/Buttongroup/Buttongroup.js +0 -44
- package/lib/v1/Buttongroup/props/defaultProps.js +0 -13
- package/lib/v1/Buttongroup/props/propTypes.js +0 -20
- package/lib/v1/Card/Card.js +0 -269
- package/lib/v1/Card/index.js +0 -37
- package/lib/v1/Card/props/defaultProps.js +0 -35
- package/lib/v1/Card/props/propTypes.js +0 -62
- package/lib/v1/CheckBox/CheckBox.js +0 -172
- package/lib/v1/CheckBox/props/defaultProps.js +0 -25
- package/lib/v1/CheckBox/props/propTypes.js +0 -52
- package/lib/v1/DateTime/CalendarView.js +0 -322
- package/lib/v1/DateTime/DateTime.js +0 -877
- package/lib/v1/DateTime/DateTimePopupFooter.js +0 -96
- package/lib/v1/DateTime/DateTimePopupHeader.js +0 -166
- package/lib/v1/DateTime/DateWidget.js +0 -1163
- package/lib/v1/DateTime/DaysRow.js +0 -81
- package/lib/v1/DateTime/Time.js +0 -270
- package/lib/v1/DateTime/YearView.js +0 -325
- package/lib/v1/DateTime/index.js +0 -15
- package/lib/v1/DateTime/props/defaultProps.js +0 -76
- package/lib/v1/DateTime/props/propTypes.js +0 -238
- package/lib/v1/DropBox/DropBox.js +0 -109
- package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +0 -146
- package/lib/v1/DropBox/DropBoxElement/props/defaultProps.js +0 -25
- package/lib/v1/DropBox/DropBoxElement/props/propTypes.js +0 -62
- package/lib/v1/DropBox/props/defaultProps.js +0 -30
- package/lib/v1/DropBox/props/propTypes.js +0 -35
- package/lib/v1/DropBox/utils/isMobilePopover.js +0 -25
- package/lib/v1/DropDown/DropDown.js +0 -74
- package/lib/v1/DropDown/DropDownHeading.js +0 -47
- package/lib/v1/DropDown/DropDownItem.js +0 -75
- package/lib/v1/DropDown/DropDownSearch.js +0 -77
- package/lib/v1/DropDown/DropDownSeparator.js +0 -24
- package/lib/v1/DropDown/props/defaultProps.js +0 -31
- package/lib/v1/DropDown/props/propTypes.js +0 -87
- package/lib/v1/Heading/Heading.js +0 -53
- package/lib/v1/Heading/props/defaultProps.js +0 -12
- package/lib/v1/Heading/props/propTypes.js +0 -23
- package/lib/v1/Layout/Box.js +0 -128
- package/lib/v1/Layout/Container.js +0 -145
- package/lib/v1/Layout/index.js +0 -23
- package/lib/v1/Layout/props/defaultProps.js +0 -24
- package/lib/v1/Layout/props/propTypes.js +0 -58
- package/lib/v1/ListItem/ListContainer.js +0 -128
- package/lib/v1/ListItem/ListItem.js +0 -138
- package/lib/v1/ListItem/ListItemWithAvatar.js +0 -167
- package/lib/v1/ListItem/ListItemWithCheckBox.js +0 -126
- package/lib/v1/ListItem/ListItemWithIcon.js +0 -143
- package/lib/v1/ListItem/ListItemWithRadio.js +0 -127
- package/lib/v1/ListItem/index.js +0 -55
- package/lib/v1/ListItem/props/defaultProps.js +0 -109
- package/lib/v1/ListItem/props/propTypes.js +0 -196
- package/lib/v1/Modal/Modal.js +0 -166
- package/lib/v1/Modal/props/defaultProps.js +0 -10
- package/lib/v1/Modal/props/propTypes.js +0 -18
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +0 -1180
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +0 -649
- package/lib/v1/MultiSelect/EmptyState.js +0 -112
- package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +0 -62
- package/lib/v1/MultiSelect/MobileHeader/props/defaultProps.js +0 -14
- package/lib/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -18
- package/lib/v1/MultiSelect/MultiSelect.js +0 -1202
- package/lib/v1/MultiSelect/MultiSelectHeader.js +0 -78
- package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +0 -262
- package/lib/v1/MultiSelect/SelectedOptions.js +0 -130
- package/lib/v1/MultiSelect/Suggestions.js +0 -196
- package/lib/v1/MultiSelect/index.js +0 -39
- package/lib/v1/MultiSelect/props/defaultProps.js +0 -181
- package/lib/v1/MultiSelect/props/propTypes.js +0 -350
- package/lib/v1/PopOver/PopOver.js +0 -197
- package/lib/v1/PopOver/props/defaultProps.js +0 -15
- package/lib/v1/PopOver/props/propTypes.js +0 -66
- package/lib/v1/Popup/Popup.js +0 -715
- package/lib/v1/Radio/Radio.js +0 -141
- package/lib/v1/Radio/props/defaultProps.js +0 -22
- package/lib/v1/Radio/props/propTypes.js +0 -51
- package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -79
- package/lib/v1/ResponsiveDropBox/props/defaultProps.js +0 -11
- package/lib/v1/ResponsiveDropBox/props/propTypes.js +0 -27
- package/lib/v1/Ribbon/Ribbon.js +0 -44
- package/lib/v1/Ribbon/props/defaultProps.js +0 -16
- package/lib/v1/Ribbon/props/propTypes.js +0 -22
- package/lib/v1/RippleEffect/RippleEffect.js +0 -40
- package/lib/v1/RippleEffect/props/defaultProps.js +0 -17
- package/lib/v1/RippleEffect/props/propTypes.js +0 -23
- package/lib/v1/Select/GroupSelect.js +0 -894
- package/lib/v1/Select/Select.js +0 -1025
- package/lib/v1/Select/SelectWithAvatar.js +0 -406
- package/lib/v1/Select/SelectWithIcon.js +0 -607
- package/lib/v1/Select/index.js +0 -39
- package/lib/v1/Select/props/defaultProps.js +0 -125
- package/lib/v1/Select/props/propTypes.js +0 -319
- package/lib/v1/Stencils/Stencils.js +0 -43
- package/lib/v1/Stencils/props/defaultProps.js +0 -13
- package/lib/v1/Stencils/props/propTypes.js +0 -18
- package/lib/v1/Tab/Tab.js +0 -132
- package/lib/v1/Tab/TabContent.js +0 -42
- package/lib/v1/Tab/TabContentWrapper.js +0 -47
- package/lib/v1/Tab/TabWrapper.js +0 -89
- package/lib/v1/Tab/Tabs.js +0 -688
- package/lib/v1/Tab/index.js +0 -47
- package/lib/v1/Tab/props/defaultProps.js +0 -62
- package/lib/v1/Tab/props/propTypes.js +0 -132
- package/lib/v1/Tab/v1Tab.module.css +0 -100
- package/lib/v1/Tab/v1TabContent.module.css +0 -4
- package/lib/v1/Tab/v1Tabs.module.css +0 -167
- package/lib/v1/Tag/Tag.js +0 -160
- package/lib/v1/Tag/props/defaultProps.js +0 -22
- package/lib/v1/Tag/props/propTypes.js +0 -47
- package/lib/v1/TextBox/TextBox.js +0 -175
- package/lib/v1/TextBox/props/defaultProps.js +0 -27
- package/lib/v1/TextBox/props/propTypes.js +0 -62
- package/lib/v1/TextBoxIcon/TextBoxIcon.js +0 -206
- package/lib/v1/TextBoxIcon/props/defaultProps.js +0 -31
- package/lib/v1/TextBoxIcon/props/propTypes.js +0 -72
- package/lib/v1/Textarea/Textarea.js +0 -118
- package/lib/v1/Textarea/props/defaultProps.js +0 -24
- package/lib/v1/Textarea/props/propTypes.js +0 -42
- package/lib/v1/Tooltip/Tooltip.js +0 -599
- package/lib/v1/Tooltip/props/defaultProps.js +0 -11
- package/lib/v1/Tooltip/props/propTypes.js +0 -16
- package/lib/v1/Typography/Typography.js +0 -56
- package/lib/v1/Typography/css/cssJSLogic.js +0 -48
- package/lib/v1/Typography/css/v1_Typography.module.css +0 -380
- package/lib/v1/Typography/props/defaultProps.js +0 -15
- package/lib/v1/Typography/props/propTypes.js +0 -38
- package/lib/v1/Typography/utils/index.js +0 -59
- package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -90
- package/lib/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -14
- package/lib/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -23
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -126
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -22
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -30
- package/lib/v1/semantic/Button/Button.js +0 -63
- package/lib/v1/semantic/Button/props/defaultProps.js +0 -19
- package/lib/v1/semantic/Button/props/propTypes.js +0 -33
- package/lib/v1/semantic/index.js +0 -15
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
.mobRadius {
|
|
35
35
|
--dropbox_border_radius: 30px 30px 0 0;
|
|
36
|
-
--dropbox_padding:
|
|
36
|
+
--dropbox_padding: 10px 0 0 0;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/* sizes */
|
|
@@ -201,7 +201,10 @@
|
|
|
201
201
|
position: absolute;
|
|
202
202
|
height: var(--zd_size34) ;
|
|
203
203
|
width: var(--zd_size34) ;
|
|
204
|
-
clip: rect(var(--zd_size3),
|
|
204
|
+
clip: rect(var(--zd_size3),
|
|
205
|
+
var(--zd_size29),
|
|
206
|
+
var(--zd_size17),
|
|
207
|
+
var(--zd_size8)) ;
|
|
205
208
|
padding: var(--zd_size4) ;
|
|
206
209
|
display: flex;
|
|
207
210
|
align-items: center;
|
|
@@ -434,7 +437,7 @@
|
|
|
434
437
|
}
|
|
435
438
|
|
|
436
439
|
.boxPadding {
|
|
437
|
-
--dropbox_padding:
|
|
440
|
+
--dropbox_padding: 10px 0;
|
|
438
441
|
}
|
|
439
442
|
|
|
440
443
|
.darkPalette {
|
package/es/DropDown/DropDown.js
CHANGED
|
@@ -10,8 +10,7 @@ export default class DropDown extends React.Component {
|
|
|
10
10
|
let {
|
|
11
11
|
children
|
|
12
12
|
} = this.props;
|
|
13
|
-
return /*#__PURE__*/React.createElement(PopOver,
|
|
14
|
-
}, /*#__PURE__*/React.createElement(PopOverTarget, null, children[0]), /*#__PURE__*/React.createElement(PopOverContainer, null, children[1]));
|
|
13
|
+
return /*#__PURE__*/React.createElement(PopOver, this.props, /*#__PURE__*/React.createElement(PopOverTarget, null, children[0]), /*#__PURE__*/React.createElement(PopOverContainer, null, children[1]));
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
}
|
|
File without changes
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
/* dropdownheading default variables */
|
|
3
3
|
--dropdownheading_text_color: var(--zdt_dropdown_default_text);
|
|
4
4
|
--dropdownheading_text_transform: uppercase;
|
|
5
|
-
--dropdownheading_padding:
|
|
5
|
+
--dropdownheading_padding: 10px 20px;
|
|
6
6
|
--dropdownheading_bg_color: none;
|
|
7
7
|
|
|
8
8
|
/* dropdownheading underline default variables */
|
|
9
|
-
--dropdownheading_underline_width:
|
|
10
|
-
--dropdownheading_underline_height:
|
|
9
|
+
--dropdownheading_underline_width: 20px;
|
|
10
|
+
--dropdownheading_underline_height: 1px;
|
|
11
11
|
--dropdownheading_underline_bg_color: var(--zdt_dropdown_default_bg);
|
|
12
|
-
--dropdownheading_underline_left:
|
|
12
|
+
--dropdownheading_underline_left: 20px;
|
|
13
13
|
}
|
|
14
14
|
.default {
|
|
15
15
|
composes: dotted semibold from '../common/common.module.css';
|
|
File without changes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* dropdownitem default variables */
|
|
3
|
-
--dropdownitem-padding:
|
|
3
|
+
--dropdownitem-padding: 9px 19px;
|
|
4
4
|
--dropdownitem-border-color: var(--zdt_dropdown_default_border);
|
|
5
5
|
--dropdownitem-bg-color: var(--zdt_dropdown_mirror_bg);
|
|
6
6
|
|
|
7
7
|
/* dropdownitem user default variables */
|
|
8
|
-
--dropdownitem-user-width:
|
|
8
|
+
--dropdownitem-user-width: 42px;
|
|
9
9
|
--dropdownitem-user-border-style: solid;
|
|
10
10
|
--dropdownitem-user-border-color: var(--zdt_dropdown_user_default_border);
|
|
11
11
|
--dropdownitem-user-cursor: pointer;
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
[dir=ltr] .padding {
|
|
45
|
-
--dropdownitem-padding: 0
|
|
45
|
+
--dropdownitem-padding: 0 50px 0 0/*rtl: 0 0 0 50px*/;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
[dir=rtl] .padding {
|
|
49
|
-
--dropdownitem-padding: 0 0 0
|
|
49
|
+
--dropdownitem-padding: 0 0 0 50px;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.children {
|
|
File without changes
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* dropdownsearch default variables */
|
|
3
|
-
--dropdownsearch-padding: 0
|
|
3
|
+
--dropdownsearch-padding: 0 15px 0;
|
|
4
4
|
}
|
|
5
5
|
.search {
|
|
6
6
|
composes: varClass;
|
|
7
7
|
padding: var(--dropdownsearch-padding);
|
|
8
8
|
}
|
|
9
9
|
.smallSearch {
|
|
10
|
-
--dropdownsearch-padding: 0
|
|
10
|
+
--dropdownsearch-padding: 0 5px 0;
|
|
11
11
|
}
|
|
12
12
|
.mediumSearch {
|
|
13
|
-
--dropdownsearch-padding: 0
|
|
13
|
+
--dropdownsearch-padding: 0 15px 0;
|
|
14
14
|
}
|
|
File without changes
|
package/es/Label/Label.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/* eslint css-modules/no-unused-class: [2, { markAsUsed: [
|
|
2
4
|
'small', 'medium', 'large', 'title', 'subtitle', 'default', 'primary', 'secondary', 'danger', 'mandatory'
|
|
3
5
|
]}] */
|
|
@@ -47,16 +49,14 @@ export default class Label extends React.Component {
|
|
|
47
49
|
id: id,
|
|
48
50
|
tabIndex: tabIndex
|
|
49
51
|
}, text);
|
|
50
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, isRenderable(renderRightPlaceholderNode) ? /*#__PURE__*/React.createElement(Flex, {
|
|
52
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isRenderable(renderRightPlaceholderNode) ? /*#__PURE__*/React.createElement(Flex, _extends({
|
|
51
53
|
$ui_displayMode: "flex",
|
|
52
54
|
$ui_direction: "row",
|
|
53
|
-
$ui_alignItems: "center"
|
|
54
|
-
|
|
55
|
-
}, labelElement, /*#__PURE__*/React.createElement(Flex, {
|
|
55
|
+
$ui_alignItems: "center"
|
|
56
|
+
}, containerProps), labelElement, /*#__PURE__*/React.createElement(Flex, _extends({
|
|
56
57
|
$ui_displayMode: "flex",
|
|
57
|
-
$ui_alignItems: "center"
|
|
58
|
-
|
|
59
|
-
}, renderNode(renderRightPlaceholderNode))) : /*#__PURE__*/React.createElement(React.Fragment, null, labelElement));
|
|
58
|
+
$ui_alignItems: "center"
|
|
59
|
+
}, rightPlaceholderNodeProps), renderNode(renderRightPlaceholderNode))) : /*#__PURE__*/React.createElement(React.Fragment, null, labelElement));
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* label default variables */
|
|
3
|
-
--label_font_size:
|
|
3
|
+
--label_font_size: 14px;
|
|
4
4
|
--label_text_color: var(--zdt_label_default_text);
|
|
5
5
|
--label_font_weight: var(--zd-fw-normal);
|
|
6
6
|
--label_cursor: default;
|
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
cursor: var(--label_cursor);
|
|
18
18
|
}
|
|
19
19
|
.xsmall {
|
|
20
|
-
--label_font_size:
|
|
20
|
+
--label_font_size: 12px;
|
|
21
21
|
--label_line_height: 1.5;
|
|
22
22
|
}
|
|
23
23
|
.small {
|
|
24
|
-
--label_font_size:
|
|
24
|
+
--label_font_size: 13px;
|
|
25
25
|
--label_line_height: 1.385;
|
|
26
26
|
}
|
|
27
27
|
.medium {
|
|
28
|
-
--label_font_size:
|
|
28
|
+
--label_font_size: 14px;
|
|
29
29
|
--label_line_height: 1.286;
|
|
30
30
|
}
|
|
31
31
|
.large {
|
|
32
|
-
--label_font_size:
|
|
32
|
+
--label_font_size: 26px;
|
|
33
33
|
--label_line_height: 0.6923;
|
|
34
34
|
composes: semibold from '../common/common.module.css';
|
|
35
35
|
}
|
package/es/Layout/Box.js
CHANGED
|
File without changes
|
package/es/Layout/Container.js
CHANGED
|
File without changes
|
package/es/Layout/utils.js
CHANGED
|
File without changes
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { useCallback } from 'react';
|
|
3
5
|
import { Container } from "../Layout";
|
|
@@ -72,7 +74,7 @@ const ListContainer = props => {
|
|
|
72
74
|
options.tabindex = '0';
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
77
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
76
78
|
role: role,
|
|
77
79
|
"data-a11y-inset-focus": insetFocus,
|
|
78
80
|
"aria-selected": ariaSelected,
|
|
@@ -88,11 +90,8 @@ const ListContainer = props => {
|
|
|
88
90
|
onMouseOver: onMouseOver,
|
|
89
91
|
eleRef: eleRef,
|
|
90
92
|
tagName: isLink ? 'a' : 'li',
|
|
91
|
-
"data-title": isDisabled ? disableTitle : title
|
|
92
|
-
|
|
93
|
-
...customProps,
|
|
94
|
-
...a11yAttributes
|
|
95
|
-
}, children);
|
|
93
|
+
"data-title": isDisabled ? disableTitle : title
|
|
94
|
+
}, options, customProps, a11yAttributes), children);
|
|
96
95
|
};
|
|
97
96
|
|
|
98
97
|
ListContainer.defaultProps = ListContainerDefaultProps;
|
package/es/ListItem/ListItem.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { Box } from "../Layout";
|
|
@@ -97,7 +99,7 @@ export default class ListItem extends React.Component {
|
|
|
97
99
|
} = listA11y;
|
|
98
100
|
let tickIconPalette = style[`${palette}Tick`] ? style[`${palette}Tick`] : '';
|
|
99
101
|
let dataIdString = dataId ? dataId : value ? String(value).replace("'", '_') : 'listItem';
|
|
100
|
-
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
102
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
101
103
|
a11y: listA11y,
|
|
102
104
|
size: size,
|
|
103
105
|
palette: palette,
|
|
@@ -118,9 +120,8 @@ export default class ListItem extends React.Component {
|
|
|
118
120
|
onClick: this.handleClick,
|
|
119
121
|
onMouseEnter: this.handleMouseEnter,
|
|
120
122
|
eleRef: this.getRef,
|
|
121
|
-
customProps: ListItemProps
|
|
122
|
-
|
|
123
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
123
|
+
customProps: ListItemProps
|
|
124
|
+
}, ContainerProps), /*#__PURE__*/React.createElement(Box, {
|
|
124
125
|
flexible: true,
|
|
125
126
|
className: style.leftBox
|
|
126
127
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* listitem default variables */
|
|
3
|
-
--listitem_font_size:
|
|
3
|
+
--listitem_font_size: 13px;
|
|
4
4
|
--listitem_text_color: var(--zdt_listitem_default_text);
|
|
5
|
-
--listitem_padding:
|
|
5
|
+
--listitem_padding: 9px 20px;
|
|
6
6
|
--listitem_border_width: 0;
|
|
7
7
|
--listitem_border_color: var(--zdt_listitem_default_border);
|
|
8
8
|
--listitem_bg_color: var(--zdt_listitem_default_bg);
|
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
/* listitem tick icon default variables */
|
|
17
17
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
18
18
|
}[dir=ltr] .varClass {
|
|
19
|
-
--listitem_avatar_margin: 0
|
|
19
|
+
--listitem_avatar_margin: 0 15px 0 0
|
|
20
|
+
/*rtl: 0 0 0 15px*/;
|
|
20
21
|
}[dir=rtl] .varClass {
|
|
21
|
-
--listitem_avatar_margin: 0 0 0
|
|
22
|
+
--listitem_avatar_margin: 0 0 0 15px;
|
|
22
23
|
}
|
|
23
24
|
.list {
|
|
24
25
|
composes: varClass;
|
|
@@ -48,23 +49,27 @@
|
|
|
48
49
|
--listitem_border_color: var(--zdt_listitem_active_border);
|
|
49
50
|
}
|
|
50
51
|
[dir=ltr] .small {
|
|
51
|
-
--listitem_padding:
|
|
52
|
+
--listitem_padding: 7px 3px 7px
|
|
53
|
+
5px
|
|
54
|
+
/*rtl: 7px 5px 7px 3px*/;
|
|
52
55
|
}
|
|
53
56
|
[dir=rtl] .small {
|
|
54
|
-
--listitem_padding:
|
|
57
|
+
--listitem_padding: 7px 5px 7px 3px;
|
|
55
58
|
}
|
|
56
59
|
.medium {
|
|
57
|
-
--listitem_padding:
|
|
58
|
-
--listitem_min_height:
|
|
60
|
+
--listitem_padding: 7px 20px;
|
|
61
|
+
--listitem_min_height: 35px;
|
|
59
62
|
}
|
|
60
63
|
.large {
|
|
61
|
-
--listitem_min_height:
|
|
64
|
+
--listitem_min_height: 48px;
|
|
62
65
|
}
|
|
63
66
|
[dir=ltr] .large {
|
|
64
|
-
--listitem_padding:
|
|
67
|
+
--listitem_padding: 10px 3px 10px
|
|
68
|
+
25px
|
|
69
|
+
/*rtl: 10px 25px 10px 3px*/;
|
|
65
70
|
}
|
|
66
71
|
[dir=rtl] .large {
|
|
67
|
-
--listitem_padding:
|
|
72
|
+
--listitem_padding: 10px 25px 10px 3px;
|
|
68
73
|
}
|
|
69
74
|
.value,
|
|
70
75
|
.children,.secondaryValue {
|
|
@@ -244,26 +249,32 @@
|
|
|
244
249
|
display: block;
|
|
245
250
|
}
|
|
246
251
|
[dir=ltr] .smallwithTick {
|
|
247
|
-
--listitem_padding:
|
|
252
|
+
--listitem_padding: 7px 39px 7px
|
|
253
|
+
5px
|
|
254
|
+
/*rtl: 7px 5px 7px 39px*/;
|
|
248
255
|
}
|
|
249
256
|
[dir=rtl] .smallwithTick {
|
|
250
|
-
--listitem_padding:
|
|
257
|
+
--listitem_padding: 7px 5px 7px 39px;
|
|
251
258
|
}
|
|
252
259
|
[dir=ltr] .mediumwithTick {
|
|
253
|
-
--listitem_padding:
|
|
260
|
+
--listitem_padding: 7px 39px 7px
|
|
261
|
+
20px
|
|
262
|
+
/*rtl: 7px 20px 7px 39px*/;
|
|
254
263
|
}
|
|
255
264
|
[dir=rtl] .mediumwithTick {
|
|
256
|
-
--listitem_padding:
|
|
265
|
+
--listitem_padding: 7px 20px 7px 39px;
|
|
257
266
|
}
|
|
258
267
|
[dir=ltr] .largewithTick {
|
|
259
|
-
--listitem_padding:
|
|
268
|
+
--listitem_padding: 10px 39px 10px
|
|
269
|
+
25px
|
|
270
|
+
/*rtl: 10px 25px 10px 39px*/;
|
|
260
271
|
}
|
|
261
272
|
[dir=rtl] .largewithTick {
|
|
262
|
-
--listitem_padding:
|
|
273
|
+
--listitem_padding: 10px 25px 10px 39px;
|
|
263
274
|
}
|
|
264
275
|
.responsiveHeight {
|
|
265
|
-
--listitem_min_height:
|
|
266
|
-
--listitem_font_size:
|
|
276
|
+
--listitem_min_height: 45px;
|
|
277
|
+
--listitem_font_size: 15px;
|
|
267
278
|
padding-top: var(--zd_size10) ;
|
|
268
279
|
padding-bottom: var(--zd_size10) ;
|
|
269
280
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { Box, Container } from "../Layout";
|
|
@@ -104,7 +106,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
104
106
|
} = listA11y;
|
|
105
107
|
let isDarkPalette = palette === 'dark';
|
|
106
108
|
let dataIdString = value ? value : dataId;
|
|
107
|
-
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
109
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
108
110
|
a11y: listA11y,
|
|
109
111
|
size: size,
|
|
110
112
|
palette: palette,
|
|
@@ -122,14 +124,13 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
122
124
|
eleRef: this.getRef,
|
|
123
125
|
disableTitle: disableTitle,
|
|
124
126
|
title: null,
|
|
125
|
-
customProps: ListItemProps
|
|
126
|
-
|
|
127
|
-
}, name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
|
|
127
|
+
customProps: ListItemProps
|
|
128
|
+
}, ContainerProps), name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
|
|
128
129
|
className: `${style.leftAvatar} ${lhsAlignContent !== 'center' ? `${style.lhsBox}` : ''}`
|
|
129
130
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
130
131
|
align: lhsAlignContent,
|
|
131
132
|
className: style[`lhsBox_${size}`]
|
|
132
|
-
}, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
133
|
+
}, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, _extends({
|
|
133
134
|
name: name,
|
|
134
135
|
size: "small",
|
|
135
136
|
src: imgSrc,
|
|
@@ -139,9 +140,8 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
139
140
|
customClass: {
|
|
140
141
|
customAvatar: customAvatar,
|
|
141
142
|
customAvatarTeam: customAvatarTeam
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
}) : /*#__PURE__*/React.createElement(Avatar, {
|
|
143
|
+
}
|
|
144
|
+
}, AvatarTeamProps)) : /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
145
145
|
name: name,
|
|
146
146
|
size: "small",
|
|
147
147
|
src: imgSrc,
|
|
@@ -149,9 +149,8 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
149
149
|
textPalette: isDarkPalette ? 'white' : '',
|
|
150
150
|
needTitle: needAvatarTitle,
|
|
151
151
|
palette: isDarkPalette ? 'info' : avatarPalette,
|
|
152
|
-
customClass: customAvatar
|
|
153
|
-
|
|
154
|
-
}))) : null, /*#__PURE__*/React.createElement(Box, {
|
|
152
|
+
customClass: customAvatar
|
|
153
|
+
}, AvatarProps)))) : null, /*#__PURE__*/React.createElement(Box, {
|
|
155
154
|
flexible: true,
|
|
156
155
|
className: style.leftBox
|
|
157
156
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import ListContainer from "./ListContainer";
|
|
3
5
|
import { ListItemWithCheckBoxDefaultProps } from "./props/defaultProps";
|
|
@@ -81,7 +83,7 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
81
83
|
customLabel = '',
|
|
82
84
|
customValueRightPlaceholder = ''
|
|
83
85
|
} = customClass;
|
|
84
|
-
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
86
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
85
87
|
a11y: listA11y,
|
|
86
88
|
size: size,
|
|
87
89
|
palette: palette,
|
|
@@ -98,9 +100,8 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
98
100
|
eleRef: this.getRef,
|
|
99
101
|
disableTitle: disableTitle,
|
|
100
102
|
title: null,
|
|
101
|
-
customProps: ListItemProps
|
|
102
|
-
|
|
103
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
103
|
+
customProps: ListItemProps
|
|
104
|
+
}, ContainerProps), /*#__PURE__*/React.createElement(Box, {
|
|
104
105
|
className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
|
|
105
106
|
dataId: `${dataId ? dataId : value}_checkBox`
|
|
106
107
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { Box, Container } from "../Layout";
|
|
@@ -93,7 +95,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
93
95
|
ariaHidden
|
|
94
96
|
} = listA11y;
|
|
95
97
|
let dataIdString = dataId ? `${dataId.replace("'", '_')}` : value.toLowerCase().replace("'", '_');
|
|
96
|
-
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
98
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
97
99
|
a11y: listA11y,
|
|
98
100
|
size: size,
|
|
99
101
|
palette: palette,
|
|
@@ -114,9 +116,8 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
114
116
|
eleRef: this.getRef,
|
|
115
117
|
disableTitle: disableTitle,
|
|
116
118
|
title: null,
|
|
117
|
-
customProps: ListItemProps
|
|
118
|
-
|
|
119
|
-
}, iconName && /*#__PURE__*/React.createElement(Box, {
|
|
119
|
+
customProps: ListItemProps
|
|
120
|
+
}, ContainerProps), iconName && /*#__PURE__*/React.createElement(Box, {
|
|
120
121
|
"aria-hidden": true,
|
|
121
122
|
align: lhsAlignContent,
|
|
122
123
|
className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import Radio from "../Radio/Radio";
|
|
3
5
|
import { Box, Container } from "../Layout";
|
|
@@ -82,7 +84,7 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
82
84
|
customRadioWrap = '',
|
|
83
85
|
customValueRightPlaceholder = ''
|
|
84
86
|
} = customClass;
|
|
85
|
-
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
87
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
86
88
|
a11y: listA11y,
|
|
87
89
|
size: size,
|
|
88
90
|
palette: palette,
|
|
@@ -99,9 +101,8 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
99
101
|
eleRef: this.getRef,
|
|
100
102
|
disableTitle: disableTitle,
|
|
101
103
|
title: null,
|
|
102
|
-
customProps: ListItemProps
|
|
103
|
-
|
|
104
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
104
|
+
customProps: ListItemProps
|
|
105
|
+
}, ContainerProps), /*#__PURE__*/React.createElement(Box, {
|
|
105
106
|
align: lhsAlignContent,
|
|
106
107
|
className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
|
|
107
108
|
dataId: `${dataId}_radio`
|
package/es/Modal/Modal.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { defaultProps } from "./props/defaultProps";
|
|
@@ -150,10 +152,9 @@ export default class Modal extends React.Component {
|
|
|
150
152
|
if (Element) {
|
|
151
153
|
return /*#__PURE__*/React.createElement(Portal, {
|
|
152
154
|
portalId: `${this.portalPrefix}${this.portalId}`
|
|
153
|
-
}, /*#__PURE__*/React.createElement(Element, {
|
|
154
|
-
ref: this.setRef
|
|
155
|
-
|
|
156
|
-
}));
|
|
155
|
+
}, /*#__PURE__*/React.createElement(Element, _extends({
|
|
156
|
+
ref: this.setRef
|
|
157
|
+
}, elementProps)));
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
return null;
|
|
@@ -870,6 +870,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
870
870
|
isRestrictScroll,
|
|
871
871
|
emptyMessage,
|
|
872
872
|
searchEmptyMessage,
|
|
873
|
+
renderCustomEmptyState,
|
|
873
874
|
title,
|
|
874
875
|
variant,
|
|
875
876
|
children,
|
|
@@ -1079,6 +1080,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
1079
1080
|
options: revampedGroups,
|
|
1080
1081
|
searchString: searchStr,
|
|
1081
1082
|
suggestions: suggestionGroups,
|
|
1083
|
+
renderCustomEmptyState: renderCustomEmptyState,
|
|
1082
1084
|
dataId: dataId,
|
|
1083
1085
|
isLoading: isFetchingOptions,
|
|
1084
1086
|
i18nKeys: i18nKeys,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { AdvancedMultiSelect_propTypes } from "./props/propTypes";
|
|
@@ -349,6 +351,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
349
351
|
searchEmptyMessage,
|
|
350
352
|
emptyMessage,
|
|
351
353
|
noMoreOptionsMessage,
|
|
354
|
+
renderCustomEmptyState,
|
|
352
355
|
dropBoxSize,
|
|
353
356
|
placeHolder,
|
|
354
357
|
isPopupOpen,
|
|
@@ -515,7 +518,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
515
518
|
let {
|
|
516
519
|
tabletMode
|
|
517
520
|
} = _ref2;
|
|
518
|
-
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
521
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, _extends({
|
|
519
522
|
animationStyle: animationStyle,
|
|
520
523
|
boxPosition: position || `${defaultDropBoxPosition}Center`,
|
|
521
524
|
getRef: getContainerRef,
|
|
@@ -534,11 +537,11 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
534
537
|
isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
|
|
535
538
|
positionsOffset: positionsOffset,
|
|
536
539
|
targetOffset: targetOffset,
|
|
537
|
-
isRestrictScroll: isRestrictScroll
|
|
538
|
-
|
|
540
|
+
isRestrictScroll: isRestrictScroll
|
|
541
|
+
}, DropBoxProps, {
|
|
539
542
|
alignBox: "row",
|
|
540
543
|
isResponsivePadding: getFooter ? false : true
|
|
541
|
-
}, isLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
544
|
+
}), isLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
542
545
|
align: "both",
|
|
543
546
|
className: style.loader
|
|
544
547
|
}, /*#__PURE__*/React.createElement(Loader, null)) : /*#__PURE__*/React.createElement(Box, {
|
|
@@ -555,7 +558,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
555
558
|
shrink: true,
|
|
556
559
|
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
|
|
557
560
|
eleRef: this.suggestionContainerRef
|
|
558
|
-
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
561
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
|
|
559
562
|
suggestions: suggestions,
|
|
560
563
|
selectedOptions: allselectedOptionIds,
|
|
561
564
|
getRef: this.suggestionItemRef,
|
|
@@ -569,13 +572,13 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
569
572
|
},
|
|
570
573
|
dataId: `${dataIdMultiSelectComp}_Options`,
|
|
571
574
|
limit: limit,
|
|
572
|
-
limitReachedMessage: limitReachedMessage
|
|
573
|
-
|
|
574
|
-
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
575
|
+
limitReachedMessage: limitReachedMessage
|
|
576
|
+
}, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
575
577
|
isLoading: isFetchingOptions,
|
|
576
578
|
options: options,
|
|
577
579
|
searchString: searchStr,
|
|
578
580
|
suggestions: suggestions,
|
|
581
|
+
renderCustomEmptyState: renderCustomEmptyState,
|
|
579
582
|
dataId: dataIdLoading,
|
|
580
583
|
i18nKeys: i18nKeys,
|
|
581
584
|
htmlId: ariaErrorId
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**** Libraries ****/
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { renderNode, isRenderable } from '@zohodesk/utils';
|
|
3
4
|
import { EmptyState_propTypes } from "./props/propTypes";
|
|
4
5
|
import { EmptyState_defaultProps } from "./props/defaultProps";
|
|
5
6
|
import { MULTISELECT_I18N_KEYS } from "./constants";
|
|
@@ -17,6 +18,7 @@ export default class EmptyState extends React.PureComponent {
|
|
|
17
18
|
searchString,
|
|
18
19
|
suggestions,
|
|
19
20
|
dataId,
|
|
21
|
+
renderCustomEmptyState,
|
|
20
22
|
getCustomEmptyState,
|
|
21
23
|
palette,
|
|
22
24
|
i18nKeys,
|
|
@@ -45,13 +47,25 @@ export default class EmptyState extends React.PureComponent {
|
|
|
45
47
|
"data-test-id": `${dataId}_srchEmptyMsg`,
|
|
46
48
|
role: role,
|
|
47
49
|
id: htmlId
|
|
48
|
-
}, searchEmptyText || emptyText) : options.length === 0 ?
|
|
50
|
+
}, searchEmptyText || emptyText) : options.length === 0 ? isRenderable(renderCustomEmptyState) ? renderNode(renderCustomEmptyState, {
|
|
51
|
+
title: emptyText,
|
|
52
|
+
dataId,
|
|
53
|
+
role,
|
|
54
|
+
htmlId,
|
|
55
|
+
className
|
|
56
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
49
57
|
className: className,
|
|
50
58
|
"data-id": `${dataId}_noOptnsMsg`,
|
|
51
59
|
"data-test-id": `${dataId}_noOptnsMsg`,
|
|
52
60
|
role: role,
|
|
53
61
|
id: htmlId
|
|
54
|
-
}, emptyText) :
|
|
62
|
+
}, emptyText) : isRenderable(renderCustomEmptyState) ? renderNode(renderCustomEmptyState, {
|
|
63
|
+
title: noMoreText || emptyText,
|
|
64
|
+
dataId,
|
|
65
|
+
role,
|
|
66
|
+
htmlId,
|
|
67
|
+
className
|
|
68
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
55
69
|
className: className,
|
|
56
70
|
"data-id": `${dataId}_NoMoreOptionMsg`,
|
|
57
71
|
"data-test-id": `${dataId}_NoMoreOptionMsg`,
|