@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
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _Layout = require("../Layout");
|
|
13
|
-
|
|
14
|
-
var _ListContainer = _interopRequireDefault(require("./ListContainer"));
|
|
15
|
-
|
|
16
|
-
var _defaultProps = require("./props/defaultProps");
|
|
17
|
-
|
|
18
|
-
var _propTypes = require("./props/propTypes");
|
|
19
|
-
|
|
20
|
-
var _Avatar = _interopRequireDefault(require("../Avatar/Avatar"));
|
|
21
|
-
|
|
22
|
-
var _AvatarTeam = _interopRequireDefault(require("../AvatarTeam/AvatarTeam"));
|
|
23
|
-
|
|
24
|
-
var _icons = require("@zohodesk/icons");
|
|
25
|
-
|
|
26
|
-
var _ListItemModule = _interopRequireDefault(require("../../ListItem/ListItem.module.css"));
|
|
27
|
-
|
|
28
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
|
-
|
|
30
|
-
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); }
|
|
31
|
-
|
|
32
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
|
-
|
|
34
|
-
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); }
|
|
35
|
-
|
|
36
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
37
|
-
|
|
38
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
39
|
-
|
|
40
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
41
|
-
|
|
42
|
-
var ListItemWithAvatar = function ListItemWithAvatar(props) {
|
|
43
|
-
var size = props.size,
|
|
44
|
-
active = props.active,
|
|
45
|
-
highlight = props.highlight,
|
|
46
|
-
value = props.value,
|
|
47
|
-
name = props.name,
|
|
48
|
-
imgSrc = props.imgSrc,
|
|
49
|
-
autoHover = props.autoHover,
|
|
50
|
-
isTeam = props.isTeam,
|
|
51
|
-
palette = props.palette,
|
|
52
|
-
title = props.title,
|
|
53
|
-
needTick = props.needTick,
|
|
54
|
-
dataId = props.dataId,
|
|
55
|
-
dataSelectorId = props.dataSelectorId,
|
|
56
|
-
initial = props.initial,
|
|
57
|
-
isDisabled = props.isDisabled,
|
|
58
|
-
needBorder = props.needBorder,
|
|
59
|
-
disableTitle = props.disableTitle,
|
|
60
|
-
needAvatarTitle = props.needAvatarTitle,
|
|
61
|
-
avatarPalette = props.avatarPalette,
|
|
62
|
-
a11y = props.a11y,
|
|
63
|
-
customClass = props.customClass,
|
|
64
|
-
customProps = props.customProps,
|
|
65
|
-
needMultiLineText = props.needMultiLineText,
|
|
66
|
-
index = props.index,
|
|
67
|
-
id = props.id,
|
|
68
|
-
getRef = props.getRef,
|
|
69
|
-
onClick = props.onClick,
|
|
70
|
-
onMouseEnter = props.onMouseEnter;
|
|
71
|
-
|
|
72
|
-
function handleRef(ele) {
|
|
73
|
-
getRef && getRef(ele, index, id);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function handleClick(e) {
|
|
77
|
-
onClick && onClick(id, value, index, e);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function handleMouseEnter(e) {
|
|
81
|
-
onMouseEnter && onMouseEnter(id, value, index, e);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
var _customProps$ListItem = customProps.ListItemProps,
|
|
85
|
-
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
86
|
-
_customProps$Containe = customProps.ContainerProps,
|
|
87
|
-
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe;
|
|
88
|
-
var _customClass$customLi = customClass.customListItem,
|
|
89
|
-
customListItem = _customClass$customLi === void 0 ? '' : _customClass$customLi,
|
|
90
|
-
_customClass$customAv = customClass.customAvatar,
|
|
91
|
-
customAvatar = _customClass$customAv === void 0 ? '' : _customClass$customAv,
|
|
92
|
-
_customClass$customAv2 = customClass.customAvatarTeam,
|
|
93
|
-
customAvatarTeam = _customClass$customAv2 === void 0 ? '' : _customClass$customAv2;
|
|
94
|
-
|
|
95
|
-
var listA11y = _objectSpread({
|
|
96
|
-
ariaHidden: true,
|
|
97
|
-
role: 'option'
|
|
98
|
-
}, a11y);
|
|
99
|
-
|
|
100
|
-
var ariaHidden = listA11y.ariaHidden;
|
|
101
|
-
var isDarkPalette = palette === 'dark';
|
|
102
|
-
var dataIdString = value ? value : dataId;
|
|
103
|
-
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
104
|
-
a11y: listA11y,
|
|
105
|
-
size: size,
|
|
106
|
-
palette: palette,
|
|
107
|
-
highlight: highlight,
|
|
108
|
-
isDisabled: isDisabled,
|
|
109
|
-
active: active,
|
|
110
|
-
autoHover: autoHover,
|
|
111
|
-
needTick: needTick,
|
|
112
|
-
needBorder: needBorder,
|
|
113
|
-
customClass: customListItem,
|
|
114
|
-
dataId: "".concat(dataIdString, "_ListItemWithAvatar"),
|
|
115
|
-
dataSelectorId: "".concat(dataSelectorId),
|
|
116
|
-
onClick: handleClick,
|
|
117
|
-
onMouseEnter: handleMouseEnter,
|
|
118
|
-
eleRef: handleRef,
|
|
119
|
-
disableTitle: disableTitle,
|
|
120
|
-
title: null,
|
|
121
|
-
customProps: ListItemProps
|
|
122
|
-
}, ContainerProps), name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
123
|
-
className: _ListItemModule["default"].leftAvatar
|
|
124
|
-
}, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"], {
|
|
125
|
-
name: name,
|
|
126
|
-
size: "small",
|
|
127
|
-
src: imgSrc,
|
|
128
|
-
needTitle: needAvatarTitle,
|
|
129
|
-
textPalette: isDarkPalette ? 'white' : '',
|
|
130
|
-
palette: isDarkPalette ? 'info' : avatarPalette,
|
|
131
|
-
customClass: {
|
|
132
|
-
customAvatar: customAvatar,
|
|
133
|
-
customAvatarTeam: customAvatarTeam
|
|
134
|
-
}
|
|
135
|
-
}) : /*#__PURE__*/_react["default"].createElement(_Avatar["default"], {
|
|
136
|
-
name: name,
|
|
137
|
-
size: "small",
|
|
138
|
-
src: imgSrc,
|
|
139
|
-
initial: initial,
|
|
140
|
-
textPalette: isDarkPalette ? 'white' : '',
|
|
141
|
-
needTitle: needAvatarTitle,
|
|
142
|
-
palette: isDarkPalette ? 'info' : avatarPalette,
|
|
143
|
-
customClass: customAvatar
|
|
144
|
-
})) : null, value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
145
|
-
flexible: true,
|
|
146
|
-
shrink: true,
|
|
147
|
-
"data-title": isDisabled ? null : title,
|
|
148
|
-
className: needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value
|
|
149
|
-
}, value) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
150
|
-
className: _ListItemModule["default"].tickIcon,
|
|
151
|
-
"aria-hidden": ariaHidden,
|
|
152
|
-
dataId: "".concat(dataIdString, "_tickIcon"),
|
|
153
|
-
dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
|
|
154
|
-
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
155
|
-
name: "ZD-ticknew",
|
|
156
|
-
size: "8"
|
|
157
|
-
})) : null);
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
ListItemWithAvatar.defaultProps = _defaultProps.ListItemWithAvatarDefaultProps;
|
|
161
|
-
ListItemWithAvatar.propTypes = _propTypes.ListItemWithAvatar_Props;
|
|
162
|
-
var MemoizedListItemWithAvatar = /*#__PURE__*/(0, _react.memo)(ListItemWithAvatar);
|
|
163
|
-
MemoizedListItemWithAvatar.propTypes = _propTypes.ListItemWithAvatar_Props;
|
|
164
|
-
MemoizedListItemWithAvatar.defaultProps = _defaultProps.ListItemWithAvatarDefaultProps;
|
|
165
|
-
MemoizedListItemWithAvatar.displayName = 'ListItemWithAvatar';
|
|
166
|
-
var _default = MemoizedListItemWithAvatar;
|
|
167
|
-
exports["default"] = _default;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _ListContainer = _interopRequireDefault(require("./ListContainer"));
|
|
11
|
-
|
|
12
|
-
var _defaultProps = require("./props/defaultProps");
|
|
13
|
-
|
|
14
|
-
var _propTypes = require("./props/propTypes");
|
|
15
|
-
|
|
16
|
-
var _CheckBox = _interopRequireDefault(require("../CheckBox/CheckBox"));
|
|
17
|
-
|
|
18
|
-
var _Layout = require("../Layout");
|
|
19
|
-
|
|
20
|
-
var _ListItemModule = _interopRequireDefault(require("../../ListItem/ListItem.module.css"));
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
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); }
|
|
25
|
-
|
|
26
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27
|
-
|
|
28
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29
|
-
|
|
30
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
|
-
|
|
32
|
-
var ListItemWithCheckBox = function ListItemWithCheckBox(props) {
|
|
33
|
-
var size = props.size,
|
|
34
|
-
active = props.active,
|
|
35
|
-
highlight = props.highlight,
|
|
36
|
-
value = props.value,
|
|
37
|
-
checked = props.checked,
|
|
38
|
-
autoHover = props.autoHover,
|
|
39
|
-
palette = props.palette,
|
|
40
|
-
dataId = props.dataId,
|
|
41
|
-
dataSelectorId = props.dataSelectorId,
|
|
42
|
-
title = props.title,
|
|
43
|
-
isDisabled = props.isDisabled,
|
|
44
|
-
disableTitle = props.disableTitle,
|
|
45
|
-
a11y = props.a11y,
|
|
46
|
-
customClass = props.customClass,
|
|
47
|
-
customProps = props.customProps,
|
|
48
|
-
needMultiLineText = props.needMultiLineText,
|
|
49
|
-
id = props.id,
|
|
50
|
-
index = props.index,
|
|
51
|
-
onHover = props.onHover,
|
|
52
|
-
onClick = props.onClick,
|
|
53
|
-
getRef = props.getRef;
|
|
54
|
-
|
|
55
|
-
function handleRef(ele) {
|
|
56
|
-
getRef && getRef(ele, index);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
function handleClick(e) {
|
|
60
|
-
onClick && onClick(id, value, index, e);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function handleHover(e) {
|
|
64
|
-
onHover && onHover(id, value, index, e);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
var listA11y = _objectSpread({
|
|
68
|
-
role: 'option'
|
|
69
|
-
}, a11y);
|
|
70
|
-
|
|
71
|
-
var _customProps$ListItem = customProps.ListItemProps,
|
|
72
|
-
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
73
|
-
_customProps$Containe = customProps.ContainerProps,
|
|
74
|
-
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe;
|
|
75
|
-
var _customClass$customLi = customClass.customListItem,
|
|
76
|
-
customListItem = _customClass$customLi === void 0 ? '' : _customClass$customLi,
|
|
77
|
-
_customClass$customCh = customClass.customCheckBox,
|
|
78
|
-
customCheckBox = _customClass$customCh === void 0 ? '' : _customClass$customCh,
|
|
79
|
-
_customClass$customLa = customClass.customLabel,
|
|
80
|
-
customLabel = _customClass$customLa === void 0 ? '' : _customClass$customLa;
|
|
81
|
-
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
82
|
-
a11y: listA11y,
|
|
83
|
-
size: size,
|
|
84
|
-
palette: palette,
|
|
85
|
-
highlight: highlight,
|
|
86
|
-
isDisabled: isDisabled,
|
|
87
|
-
active: active,
|
|
88
|
-
autoHover: autoHover,
|
|
89
|
-
customClass: customListItem,
|
|
90
|
-
dataId: "".concat(dataId ? dataId : value, "_ListItemWithCheckBox"),
|
|
91
|
-
dataSelectorId: dataSelectorId,
|
|
92
|
-
onClick: handleClick,
|
|
93
|
-
onMouseOver: handleHover,
|
|
94
|
-
eleRef: handleRef,
|
|
95
|
-
disableTitle: disableTitle,
|
|
96
|
-
title: null,
|
|
97
|
-
customProps: ListItemProps
|
|
98
|
-
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
99
|
-
className: _ListItemModule["default"].iconBox,
|
|
100
|
-
dataId: "".concat(dataId ? dataId : value, "_checkBox")
|
|
101
|
-
}, /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
|
|
102
|
-
checked: checked,
|
|
103
|
-
a11y: {
|
|
104
|
-
ariaHidden: true
|
|
105
|
-
},
|
|
106
|
-
customClass: {
|
|
107
|
-
customCheckBox: customCheckBox,
|
|
108
|
-
customLabel: customLabel
|
|
109
|
-
}
|
|
110
|
-
})), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
111
|
-
flexible: true,
|
|
112
|
-
shrink: true,
|
|
113
|
-
"data-title": isDisabled ? null : title,
|
|
114
|
-
className: needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value
|
|
115
|
-
}, value));
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
var _default = ListItemWithCheckBox;
|
|
119
|
-
exports["default"] = _default;
|
|
120
|
-
ListItemWithCheckBox.defaultProps = _defaultProps.ListItemWithCheckBoxDefaultProps;
|
|
121
|
-
ListItemWithCheckBox.propTypes = _propTypes.ListItemWithCheckBox_Props; // if (__DOCS__) {
|
|
122
|
-
// ListItemWithCheckBox.docs = {
|
|
123
|
-
// componentGroup: 'Molecule',
|
|
124
|
-
// folderName: 'Style Guide'
|
|
125
|
-
// };
|
|
126
|
-
// }
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _Layout = require("../Layout");
|
|
11
|
-
|
|
12
|
-
var _icons = require("@zohodesk/icons");
|
|
13
|
-
|
|
14
|
-
var _ListContainer = _interopRequireDefault(require("./ListContainer"));
|
|
15
|
-
|
|
16
|
-
var _defaultProps = require("./props/defaultProps");
|
|
17
|
-
|
|
18
|
-
var _propTypes = require("./props/propTypes");
|
|
19
|
-
|
|
20
|
-
var _ListItemModule = _interopRequireDefault(require("../../ListItem/ListItem.module.css"));
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
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); }
|
|
25
|
-
|
|
26
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27
|
-
|
|
28
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29
|
-
|
|
30
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
|
-
|
|
32
|
-
var ListItemWithIcon = function ListItemWithIcon(props) {
|
|
33
|
-
var size = props.size,
|
|
34
|
-
active = props.active,
|
|
35
|
-
highlight = props.highlight,
|
|
36
|
-
value = props.value,
|
|
37
|
-
iconName = props.iconName,
|
|
38
|
-
iconSize = props.iconSize,
|
|
39
|
-
autoHover = props.autoHover,
|
|
40
|
-
palette = props.palette,
|
|
41
|
-
iconClass = props.iconClass,
|
|
42
|
-
dataId = props.dataId,
|
|
43
|
-
dataSelectorId = props.dataSelectorId,
|
|
44
|
-
title = props.title,
|
|
45
|
-
needTick = props.needTick,
|
|
46
|
-
isLink = props.isLink,
|
|
47
|
-
href = props.href,
|
|
48
|
-
target = props.target,
|
|
49
|
-
needBorder = props.needBorder,
|
|
50
|
-
isDisabled = props.isDisabled,
|
|
51
|
-
disableTitle = props.disableTitle,
|
|
52
|
-
a11y = props.a11y,
|
|
53
|
-
customClass = props.customClass,
|
|
54
|
-
customProps = props.customProps,
|
|
55
|
-
needMultiLineText = props.needMultiLineText,
|
|
56
|
-
getRef = props.getRef,
|
|
57
|
-
onClick = props.onClick,
|
|
58
|
-
onMouseEnter = props.onMouseEnter,
|
|
59
|
-
index = props.index,
|
|
60
|
-
id = props.id;
|
|
61
|
-
|
|
62
|
-
function handleRef(ele) {
|
|
63
|
-
getRef && getRef(ele, index, id);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function handleClick(e) {
|
|
67
|
-
onClick && onClick(id, value, index, e);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function handleMouseEnter(e) {
|
|
71
|
-
onMouseEnter && onMouseEnter(id, value, index, e);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
var _customProps$ListItem = customProps.ListItemProps,
|
|
75
|
-
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
76
|
-
_customProps$Containe = customProps.ContainerProps,
|
|
77
|
-
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe;
|
|
78
|
-
|
|
79
|
-
var listA11y = _objectSpread({
|
|
80
|
-
ariaHidden: true,
|
|
81
|
-
role: 'option'
|
|
82
|
-
}, a11y);
|
|
83
|
-
|
|
84
|
-
var ariaHidden = listA11y.ariaHidden;
|
|
85
|
-
var dataIdString = dataId ? "".concat(dataId.replace("'", '_')) : value.toLowerCase().replace("'", '_');
|
|
86
|
-
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
87
|
-
a11y: listA11y,
|
|
88
|
-
size: size,
|
|
89
|
-
palette: palette,
|
|
90
|
-
highlight: highlight,
|
|
91
|
-
isDisabled: isDisabled,
|
|
92
|
-
active: active,
|
|
93
|
-
autoHover: autoHover,
|
|
94
|
-
needTick: needTick,
|
|
95
|
-
needBorder: needBorder,
|
|
96
|
-
customClass: customClass,
|
|
97
|
-
dataId: dataIdString,
|
|
98
|
-
dataSelectorId: dataSelectorId,
|
|
99
|
-
isLink: isLink,
|
|
100
|
-
href: href,
|
|
101
|
-
target: target,
|
|
102
|
-
onClick: handleClick,
|
|
103
|
-
onMouseOver: handleMouseEnter,
|
|
104
|
-
eleRef: handleRef,
|
|
105
|
-
disableTitle: disableTitle,
|
|
106
|
-
title: null,
|
|
107
|
-
customProps: ListItemProps
|
|
108
|
-
}, ContainerProps), iconName && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
109
|
-
"aria-hidden": true,
|
|
110
|
-
className: _ListItemModule["default"].iconBox,
|
|
111
|
-
dataId: dataId ? "".concat(dataId, "_Icon") : "".concat(value.toLowerCase().replace("'", '_'), "_Icon")
|
|
112
|
-
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
113
|
-
iconClass: iconClass,
|
|
114
|
-
name: iconName,
|
|
115
|
-
size: iconSize
|
|
116
|
-
})), iconClass && !iconName ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
117
|
-
className: iconClass
|
|
118
|
-
}) : null, value && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
119
|
-
flexible: true,
|
|
120
|
-
shrink: true,
|
|
121
|
-
className: needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value,
|
|
122
|
-
"data-title": isDisabled ? null : title,
|
|
123
|
-
dataId: "".concat(dataIdString, "_Text")
|
|
124
|
-
}, value), needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
125
|
-
className: _ListItemModule["default"].tickIcon,
|
|
126
|
-
"aria-hidden": ariaHidden,
|
|
127
|
-
dataId: "".concat(dataIdString, "_tickIcon"),
|
|
128
|
-
dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
|
|
129
|
-
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
130
|
-
name: "ZD-ticknew",
|
|
131
|
-
size: "8"
|
|
132
|
-
})) : null);
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
var _default = ListItemWithIcon;
|
|
136
|
-
exports["default"] = _default;
|
|
137
|
-
ListItemWithIcon.defaultProps = _defaultProps.ListItemWithIconDefaultProps;
|
|
138
|
-
ListItemWithIcon.propTypes = _propTypes.ListItemWithIcon_Props; // if (__DOCS__) {
|
|
139
|
-
// ListItemWithIcon.docs = {
|
|
140
|
-
// componentGroup: 'Molecule',
|
|
141
|
-
// folderName: 'Style Guide'
|
|
142
|
-
// };
|
|
143
|
-
// }
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _Radio = _interopRequireDefault(require("../Radio/Radio"));
|
|
11
|
-
|
|
12
|
-
var _Layout = require("../Layout");
|
|
13
|
-
|
|
14
|
-
var _ListContainer = _interopRequireDefault(require("./ListContainer"));
|
|
15
|
-
|
|
16
|
-
var _defaultProps = require("./props/defaultProps");
|
|
17
|
-
|
|
18
|
-
var _propTypes = require("./props/propTypes");
|
|
19
|
-
|
|
20
|
-
var _ListItemModule = _interopRequireDefault(require("../../ListItem/ListItem.module.css"));
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
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); }
|
|
25
|
-
|
|
26
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27
|
-
|
|
28
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29
|
-
|
|
30
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
|
-
|
|
32
|
-
var ListItemWithRadio = function ListItemWithRadio(props) {
|
|
33
|
-
var size = props.size,
|
|
34
|
-
active = props.active,
|
|
35
|
-
highlight = props.highlight,
|
|
36
|
-
value = props.value,
|
|
37
|
-
checked = props.checked,
|
|
38
|
-
autoHover = props.autoHover,
|
|
39
|
-
palette = props.palette,
|
|
40
|
-
id = props.id,
|
|
41
|
-
dataId = props.dataId,
|
|
42
|
-
dataSelectorId = props.dataSelectorId,
|
|
43
|
-
title = props.title,
|
|
44
|
-
isDisabled = props.isDisabled,
|
|
45
|
-
disableTitle = props.disableTitle,
|
|
46
|
-
a11y = props.a11y,
|
|
47
|
-
customClass = props.customClass,
|
|
48
|
-
customProps = props.customProps,
|
|
49
|
-
needMultiLineText = props.needMultiLineText,
|
|
50
|
-
getRef = props.getRef,
|
|
51
|
-
onClick = props.onClick,
|
|
52
|
-
onHover = props.onHover,
|
|
53
|
-
index = props.index;
|
|
54
|
-
var _customProps$ListItem = customProps.ListItemProps,
|
|
55
|
-
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
56
|
-
_customProps$Containe = customProps.ContainerProps,
|
|
57
|
-
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe;
|
|
58
|
-
|
|
59
|
-
var listA11y = _objectSpread({
|
|
60
|
-
role: 'option'
|
|
61
|
-
}, a11y);
|
|
62
|
-
|
|
63
|
-
function handleRef(ele) {
|
|
64
|
-
getRef && getRef(ele, index);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function handleClick(e) {
|
|
68
|
-
onClick && onClick(id, value, index, e);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function handleHover(e) {
|
|
72
|
-
onHover && onHover(id, value, index, e);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
var _customClass$customLi = customClass.customListItem,
|
|
76
|
-
customListItem = _customClass$customLi === void 0 ? '' : _customClass$customLi,
|
|
77
|
-
_customClass$customRa = customClass.customRadio,
|
|
78
|
-
customRadio = _customClass$customRa === void 0 ? '' : _customClass$customRa,
|
|
79
|
-
_customClass$customRa2 = customClass.customRadioWrap,
|
|
80
|
-
customRadioWrap = _customClass$customRa2 === void 0 ? '' : _customClass$customRa2;
|
|
81
|
-
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
82
|
-
a11y: listA11y,
|
|
83
|
-
size: size,
|
|
84
|
-
palette: palette,
|
|
85
|
-
highlight: highlight,
|
|
86
|
-
isDisabled: isDisabled,
|
|
87
|
-
active: active,
|
|
88
|
-
autoHover: autoHover,
|
|
89
|
-
customClass: customListItem,
|
|
90
|
-
dataId: dataId,
|
|
91
|
-
dataSelectorId: dataSelectorId,
|
|
92
|
-
onClick: handleClick,
|
|
93
|
-
onMouseOver: handleHover,
|
|
94
|
-
eleRef: handleRef,
|
|
95
|
-
disableTitle: disableTitle,
|
|
96
|
-
title: null,
|
|
97
|
-
customProps: ListItemProps
|
|
98
|
-
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
99
|
-
className: _ListItemModule["default"].iconBox,
|
|
100
|
-
dataId: "".concat(dataId, "_radio")
|
|
101
|
-
}, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
|
|
102
|
-
checked: checked,
|
|
103
|
-
id: id,
|
|
104
|
-
a11y: {
|
|
105
|
-
ariaHidden: true
|
|
106
|
-
},
|
|
107
|
-
customClass: {
|
|
108
|
-
customRadio: customRadio,
|
|
109
|
-
customRadioWrap: customRadioWrap
|
|
110
|
-
}
|
|
111
|
-
})), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
112
|
-
flexible: true,
|
|
113
|
-
shrink: true,
|
|
114
|
-
"data-title": disableTitle ? null : title,
|
|
115
|
-
className: needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value
|
|
116
|
-
}, value));
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
var _default = ListItemWithRadio;
|
|
120
|
-
exports["default"] = _default;
|
|
121
|
-
ListItemWithRadio.defaultProps = _defaultProps.ListItemWithRadioDefaultProps;
|
|
122
|
-
ListItemWithRadio.propTypes = _propTypes.ListItemWithRadio_Props; // if (__DOCS__) {
|
|
123
|
-
// ListItemWithRadio.docs = {
|
|
124
|
-
// componentGroup: 'Molecule',
|
|
125
|
-
// folderName: 'Style Guide'
|
|
126
|
-
// };
|
|
127
|
-
// }
|
package/lib/v1/ListItem/index.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "ListContainer", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _ListContainer["default"];
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "ListItem", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _ListItem["default"];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "ListItemWithAvatar", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _ListItemWithAvatar["default"];
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "ListItemWithCheckBox", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _ListItemWithCheckBox["default"];
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "ListItemWithIcon", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _ListItemWithIcon["default"];
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "ListItemWithRadio", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function get() {
|
|
39
|
-
return _ListItemWithRadio["default"];
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
var _ListContainer = _interopRequireDefault(require("./ListContainer"));
|
|
44
|
-
|
|
45
|
-
var _ListItem = _interopRequireDefault(require("./ListItem"));
|
|
46
|
-
|
|
47
|
-
var _ListItemWithAvatar = _interopRequireDefault(require("./ListItemWithAvatar"));
|
|
48
|
-
|
|
49
|
-
var _ListItemWithCheckBox = _interopRequireDefault(require("./ListItemWithCheckBox"));
|
|
50
|
-
|
|
51
|
-
var _ListItemWithIcon = _interopRequireDefault(require("./ListItemWithIcon"));
|
|
52
|
-
|
|
53
|
-
var _ListItemWithRadio = _interopRequireDefault(require("./ListItemWithRadio"));
|
|
54
|
-
|
|
55
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|