@zohodesk/components 1.0.0-temp-48 → 1.0.0-temp-49
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 +48 -0
- package/assets/Appearance/dark/mode/darkMode.module.css +358 -0
- package/assets/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +34 -0
- package/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/dark/themes/green/greenDarkCTATheme.module.css +34 -0
- package/assets/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +34 -0
- package/assets/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/dark/themes/red/redDarkCTATheme.module.css +34 -0
- package/assets/Appearance/dark/themes/red/redDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +34 -0
- package/assets/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/default/mode/defaultMode.module.css +358 -0
- package/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +34 -0
- package/assets/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +42 -0
- package/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css +34 -0
- package/assets/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +42 -0
- package/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +34 -0
- package/assets/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +42 -0
- package/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css +34 -0
- package/assets/Appearance/default/themes/red/redDefaultComponentTheme.module.css +42 -0
- package/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +34 -0
- package/assets/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +42 -0
- package/es/Animation/Animation.js +7 -8
- package/es/AppContainer/AppContainer.js +52 -11
- package/es/Avatar/Avatar.js +10 -10
- package/es/Button/Button.js +17 -17
- package/es/Button/Button.module.css +6 -2
- package/es/Card/Card.js +4 -5
- package/es/Card/Card.module.css +3 -3
- package/es/DateTime/DateWidget.module.css +0 -4
- package/es/DropBox/DropBox.js +2 -2
- package/es/ListItem/ListContainer.js +118 -0
- package/es/ListItem/ListItem.js +23 -31
- package/es/ListItem/ListItemWithAvatar.js +21 -27
- package/es/ListItem/ListItemWithCheckBox.js +23 -29
- package/es/ListItem/ListItemWithIcon.js +26 -26
- package/es/ListItem/ListItemWithRadio.js +24 -31
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +7 -4
- package/es/MultiSelect/AdvancedMultiSelect.js +21 -7
- package/es/MultiSelect/AdvancedMultiSelect.module.css +8 -8
- package/es/MultiSelect/MultiSelect.js +26 -8
- package/es/MultiSelect/MultiSelect.module.css +8 -13
- package/es/MultiSelect/MultiSelectWithAvatar.js +6 -3
- package/es/MultiSelect/SelectedOptions.js +3 -2
- package/es/PopOver/PopOver.js +19 -20
- package/es/PopOver/PopOver.module.css +1 -1
- package/es/Popup/Popup.js +1 -1
- package/es/Provider/Config.js +2 -1
- package/es/Provider.js +22 -22
- package/es/Radio/Radio.js +1 -2
- package/es/Radio/Radio.module.css +2 -2
- package/es/Responsive/ResizeComponent.js +1 -1
- package/es/Ribbon/Ribbon.js +8 -8
- package/es/RippleEffect/RippleEffect.js +7 -4
- package/es/RippleEffect/RippleEffect.module.css +3 -0
- package/es/Select/Select.js +14 -0
- package/es/Select/Select.module.css +1 -1
- package/es/Select/SelectWithAvatar.js +7 -4
- package/es/Stencils/Stencils.js +5 -6
- package/es/Stencils/Stencils.module.css +4 -14
- package/es/Tab/Tabs.js +14 -2
- package/es/Tag/Tag.js +10 -4
- package/es/Tag/Tag.module.css +14 -11
- package/es/TextBoxIcon/TextBoxIcon.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.module.css +5 -2
- package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +1 -1
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -1
- package/es/common/docStyle.module.css +9 -9
- package/es/utils/dropDownUtils.js +39 -1
- package/lib/Animation/Animation.js +7 -8
- package/lib/AppContainer/AppContainer.js +61 -12
- package/lib/Avatar/Avatar.js +10 -10
- package/lib/Button/Button.js +17 -17
- package/lib/Button/Button.module.css +6 -2
- package/lib/Card/Card.js +4 -5
- package/lib/Card/Card.module.css +3 -3
- package/lib/DateTime/DateWidget.module.css +0 -4
- package/lib/DropBox/DropBox.js +6 -2
- package/lib/ListItem/ListContainer.js +127 -0
- package/lib/ListItem/ListItem.js +25 -32
- package/lib/ListItem/ListItemWithAvatar.js +23 -28
- package/lib/ListItem/ListItemWithCheckBox.js +24 -27
- package/lib/ListItem/ListItemWithIcon.js +27 -26
- package/lib/ListItem/ListItemWithRadio.js +26 -27
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -4
- package/lib/MultiSelect/AdvancedMultiSelect.js +21 -6
- package/lib/MultiSelect/AdvancedMultiSelect.module.css +8 -8
- package/lib/MultiSelect/MultiSelect.js +25 -7
- package/lib/MultiSelect/MultiSelect.module.css +8 -13
- package/lib/MultiSelect/MultiSelectWithAvatar.js +6 -3
- package/lib/MultiSelect/SelectedOptions.js +3 -2
- package/lib/PopOver/PopOver.js +19 -20
- package/lib/PopOver/PopOver.module.css +1 -1
- package/lib/Popup/Popup.js +32 -29
- package/lib/Provider/Config.js +2 -1
- package/lib/Provider.js +22 -22
- package/lib/Radio/Radio.js +1 -3
- package/lib/Radio/Radio.module.css +2 -2
- package/lib/Responsive/ResizeComponent.js +1 -1
- package/lib/Ribbon/Ribbon.js +8 -8
- package/lib/RippleEffect/RippleEffect.js +7 -4
- package/lib/RippleEffect/RippleEffect.module.css +3 -0
- package/lib/Select/Select.js +16 -2
- package/lib/Select/Select.module.css +1 -1
- package/lib/Select/SelectWithAvatar.js +7 -4
- package/lib/Stencils/Stencils.js +5 -6
- package/lib/Stencils/Stencils.module.css +4 -14
- package/lib/Tab/Tabs.js +13 -2
- package/lib/Tag/Tag.js +10 -4
- package/lib/Tag/Tag.module.css +14 -11
- package/lib/TextBoxIcon/TextBoxIcon.js +1 -1
- package/lib/TextBoxIcon/TextBoxIcon.module.css +5 -2
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +5 -3
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -3
- package/lib/common/docStyle.module.css +9 -9
- package/lib/utils/dropDownUtils.js +45 -2
- package/package.json +13 -9
- package/README_Beta.md +0 -2
- package/__testUtils__/globals.js +0 -46
- package/__testUtils__/moduleMapKey.json +0 -138
- package/dubFinder.js +0 -96
- package/es/Accordion/docs/Accordion__Demo.docs.js +0 -80
- package/es/Animation/docs/Animation__default.docs.js +0 -34
- package/es/Animation/docs/Animation__fadeIn.docs.js +0 -34
- package/es/Animation/docs/Animation__scaleIn.docs.js +0 -34
- package/es/Animation/docs/Animation__skewIn.docs.js +0 -34
- package/es/Animation/docs/Animation__slideDown.docs.js +0 -34
- package/es/Animation/docs/Animation__slideLeft.docs.js +0 -34
- package/es/Animation/docs/Animation__zoomIn.docs.js +0 -34
- package/es/AppContainer/docs/AppContainer__default.docs.js +0 -20
- package/es/Appearance/dark/mode/darkMode.module.css +0 -393
- package/es/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +0 -34
- package/es/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +0 -48
- package/es/Appearance/dark/themes/green/greenDarkCTATheme.module.css +0 -34
- package/es/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +0 -48
- package/es/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +0 -34
- package/es/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +0 -48
- package/es/Appearance/dark/themes/red/redDarkCTATheme.module.css +0 -34
- package/es/Appearance/dark/themes/red/redDarkComponentTheme.module.css +0 -48
- package/es/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +0 -34
- package/es/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +0 -48
- package/es/Appearance/default/mode/defaultMode.module.css +0 -395
- package/es/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +0 -34
- package/es/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +0 -48
- package/es/Appearance/default/themes/green/greenDefaultCTATheme.module.css +0 -34
- package/es/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +0 -48
- package/es/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +0 -34
- package/es/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +0 -48
- package/es/Appearance/default/themes/red/redDefaultCTATheme.module.css +0 -34
- package/es/Appearance/default/themes/red/redDefaultComponentTheme.module.css +0 -48
- package/es/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +0 -34
- package/es/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +0 -48
- package/es/Avatar/docs/Avatar__custom.docs.js +0 -29
- package/es/Avatar/docs/Avatar__default.docs.js +0 -29
- package/es/Avatar/docs/Avatar__palette.docs.js +0 -49
- package/es/Avatar/docs/Avatar__text.docs.js +0 -28
- package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -73
- package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -31
- package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -50
- package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -49
- package/es/Button/docs/Button__custom.docs.js +0 -771
- package/es/Button/docs/Button__default.docs.js +0 -536
- package/es/Buttongroup/docs/Buttongroup__custom.docs.js +0 -37
- package/es/Buttongroup/docs/Buttongroup__footer.docs.js +0 -33
- package/es/Buttongroup/docs/Buttongroup__header.docs.js +0 -42
- package/es/Card/docs/Card__Custom.docs.js +0 -34
- package/es/Card/docs/Card__Default.docs.js +0 -37
- package/es/Card/docs/Card__Scroll.docs.js +0 -59
- package/es/CheckBox/docs/CheckBox__custom.docs.js +0 -293
- package/es/CheckBox/docs/CheckBox__default.docs.js +0 -219
- package/es/DateTime/docs/DateTime__default.docs.js +0 -91
- package/es/DateTime/docs/DateWidget__default.docs.js +0 -183
- package/es/DateTime/docs/timezonedata.json +0 -1
- package/es/DropBox/docs/DropBox__custom.docs.js +0 -66
- package/es/DropBox/docs/DropBox__customOrder.docs.js +0 -92
- package/es/DropBox/docs/DropBox__fixedPosition.docs.js +0 -91
- package/es/DropBox/docs/DropBox__position.docs.js +0 -87
- package/es/DropBox/docs/DropBox__size.docs.js +0 -61
- package/es/DropDown/docs/DropDownHeading__custom.docs.js +0 -23
- package/es/DropDown/docs/DropDownHeading__default.docs.js +0 -21
- package/es/Label/docs/Label__clipped.docs.js +0 -27
- package/es/Label/docs/Label__custom.docs.js +0 -30
- package/es/Label/docs/Label__palette.docs.js +0 -42
- package/es/Label/docs/Label__size.docs.js +0 -29
- package/es/Label/docs/Label__type.docs.js +0 -37
- package/es/Layout/docs/Layout__Hidden.docs.js +0 -77
- package/es/Layout/docs/Layout__default.docs.js +0 -49
- package/es/Layout/docs/Layout__four_Column.docs.js +0 -85
- package/es/Layout/docs/Layout__three_Column.docs.js +0 -76
- package/es/Layout/docs/Layout__two_Column.docs.js +0 -69
- package/es/LightNightMode/docs/AlternativeColors.docs.js +0 -74
- package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -155
- package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -112
- package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -91
- package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -65
- package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -68
- package/es/ListItem/docs/ListItemWithIcon__default.docs.js +0 -62
- package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -91
- package/es/ListItem/docs/ListItemWithRadio__default.docs.js +0 -65
- package/es/ListItem/docs/ListItem__custom.docs.js +0 -114
- package/es/ListItem/docs/ListItem__default.docs.js +0 -82
- package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -125
- package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -114
- package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -141
- package/es/MultiSelect/docs/MultiSelect__default.docs.js +0 -161
- package/es/PopOver/docs/PopOver__default.docs.js +0 -32
- package/es/Provider/docs/Provider_Id__Class.docs.js +0 -29
- package/es/Provider/docs/Provider_Id__Function.docs.js +0 -18
- package/es/Provider/docs/Provider_Zindex__Class.docs.js +0 -32
- package/es/Provider/docs/Provider_Zindex__Function.docs.js +0 -23
- package/es/Radio/docs/Radio__custom.docs.js +0 -245
- package/es/Radio/docs/Radio__default.docs.js +0 -169
- package/es/Responsive/docs/Responsive__Custom.docs.js +0 -206
- package/es/Responsive/docs/Responsive__default.docs.js +0 -97
- package/es/Responsive/docs/style.module.css +0 -56
- package/es/Ribbon/docs/Ribbon__custom.docs.js +0 -386
- package/es/Ribbon/docs/Ribbon__default.docs.js +0 -342
- package/es/RippleEffect/docs/RippleEffect__default.docs.js +0 -435
- package/es/Select/docs/GroupSelect__default.docs.js +0 -149
- package/es/Select/docs/SelectWithAvatar__default.docs.js +0 -97
- package/es/Select/docs/SelectWithIcon__default.docs.js +0 -138
- package/es/Select/docs/Select__default.docs.js +0 -288
- package/es/Stencils/docs/Stencils__custom.docs.js +0 -45
- package/es/Stencils/docs/Stencils__default.docs.js +0 -50
- package/es/Switch/docs/Switch__custom.docs.js +0 -153
- package/es/Switch/docs/Switch__default.docs.js +0 -107
- package/es/Tab/docs/Tab__default.docs.js +0 -258
- package/es/Tab/docs/tabdocs.module.css +0 -29
- package/es/Tag/docs/Tag__custom.docs.js +0 -368
- package/es/Tag/docs/Tag__default.docs.js +0 -253
- package/es/TextBox/docs/TextBox__custom.docs.js +0 -43
- package/es/TextBox/docs/TextBox__default.docs.js +0 -40
- package/es/TextBox/docs/TextBox__size.docs.js +0 -38
- package/es/TextBox/docs/TextBox__variant.docs.js +0 -38
- package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -89
- package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -61
- package/es/Textarea/docs/Textarea__animated.docs.js +0 -41
- package/es/Textarea/docs/Textarea__custom.docs.js +0 -82
- package/es/Textarea/docs/Textarea__default.docs.js +0 -76
- package/es/Textarea/docs/Textarea__disabled.docs.js +0 -29
- package/es/Tooltip/docs/Tooltip__default.docs.js +0 -332
- package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -97
- package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -150
- package/es/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -139
- package/es/beta/FocusRing/docs/FocusRing__default.docs.js +0 -48
- package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -72
- package/es/semantic/Button/docs/Button__default.docs.js +0 -20
- package/externalDocsBuild.js +0 -21
- package/lib/Accordion/docs/Accordion__Demo.docs.js +0 -126
- package/lib/Animation/docs/Animation__default.docs.js +0 -85
- package/lib/Animation/docs/Animation__fadeIn.docs.js +0 -85
- package/lib/Animation/docs/Animation__scaleIn.docs.js +0 -85
- package/lib/Animation/docs/Animation__skewIn.docs.js +0 -85
- package/lib/Animation/docs/Animation__slideDown.docs.js +0 -85
- package/lib/Animation/docs/Animation__slideLeft.docs.js +0 -85
- package/lib/Animation/docs/Animation__zoomIn.docs.js +0 -85
- package/lib/AppContainer/docs/AppContainer__default.docs.js +0 -70
- package/lib/Appearance/dark/mode/darkMode.module.css +0 -393
- package/lib/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +0 -34
- package/lib/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +0 -48
- package/lib/Appearance/dark/themes/green/greenDarkCTATheme.module.css +0 -34
- package/lib/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +0 -48
- package/lib/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +0 -34
- package/lib/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +0 -48
- package/lib/Appearance/dark/themes/red/redDarkCTATheme.module.css +0 -34
- package/lib/Appearance/dark/themes/red/redDarkComponentTheme.module.css +0 -48
- package/lib/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +0 -34
- package/lib/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +0 -48
- package/lib/Appearance/default/mode/defaultMode.module.css +0 -395
- package/lib/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +0 -34
- package/lib/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +0 -48
- package/lib/Appearance/default/themes/green/greenDefaultCTATheme.module.css +0 -34
- package/lib/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +0 -48
- package/lib/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +0 -34
- package/lib/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +0 -48
- package/lib/Appearance/default/themes/red/redDefaultCTATheme.module.css +0 -34
- package/lib/Appearance/default/themes/red/redDefaultComponentTheme.module.css +0 -48
- package/lib/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +0 -34
- package/lib/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +0 -48
- package/lib/Avatar/docs/Avatar__custom.docs.js +0 -87
- package/lib/Avatar/docs/Avatar__default.docs.js +0 -83
- package/lib/Avatar/docs/Avatar__palette.docs.js +0 -107
- package/lib/Avatar/docs/Avatar__text.docs.js +0 -86
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -124
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -82
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -101
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -100
- package/lib/Button/docs/Button__custom.docs.js +0 -826
- package/lib/Button/docs/Button__default.docs.js +0 -590
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +0 -89
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +0 -85
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +0 -98
- package/lib/Card/docs/Card__Custom.docs.js +0 -90
- package/lib/Card/docs/Card__Default.docs.js +0 -92
- package/lib/Card/docs/Card__Scroll.docs.js +0 -114
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +0 -348
- package/lib/CheckBox/docs/CheckBox__default.docs.js +0 -273
- package/lib/DateTime/docs/DateTime__default.docs.js +0 -142
- package/lib/DateTime/docs/DateWidget__default.docs.js +0 -240
- package/lib/DateTime/docs/timezonedata.json +0 -1
- package/lib/DropBox/docs/DropBox__custom.docs.js +0 -122
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +0 -141
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +0 -140
- package/lib/DropBox/docs/DropBox__position.docs.js +0 -142
- package/lib/DropBox/docs/DropBox__size.docs.js +0 -116
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +0 -73
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +0 -70
- package/lib/Label/docs/Label__clipped.docs.js +0 -81
- package/lib/Label/docs/Label__custom.docs.js +0 -85
- package/lib/Label/docs/Label__palette.docs.js +0 -96
- package/lib/Label/docs/Label__size.docs.js +0 -83
- package/lib/Label/docs/Label__type.docs.js +0 -91
- package/lib/Layout/docs/Layout__Hidden.docs.js +0 -127
- package/lib/Layout/docs/Layout__default.docs.js +0 -98
- package/lib/Layout/docs/Layout__four_Column.docs.js +0 -135
- package/lib/Layout/docs/Layout__three_Column.docs.js +0 -126
- package/lib/Layout/docs/Layout__two_Column.docs.js +0 -119
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +0 -131
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -206
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -162
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -142
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -115
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -119
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +0 -112
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -142
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +0 -115
- package/lib/ListItem/docs/ListItem__custom.docs.js +0 -164
- package/lib/ListItem/docs/ListItem__default.docs.js +0 -131
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -177
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -165
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -191
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +0 -214
- package/lib/PopOver/docs/PopOver__default.docs.js +0 -86
- package/lib/Provider/docs/Provider_Id__Class.docs.js +0 -77
- package/lib/Provider/docs/Provider_Id__Function.docs.js +0 -29
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +0 -80
- package/lib/Provider/docs/Provider_Zindex__Function.docs.js +0 -34
- package/lib/Radio/docs/Radio__custom.docs.js +0 -299
- package/lib/Radio/docs/Radio__default.docs.js +0 -222
- package/lib/Responsive/docs/Responsive__Custom.docs.js +0 -272
- package/lib/Responsive/docs/Responsive__default.docs.js +0 -142
- package/lib/Responsive/docs/style.module.css +0 -56
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +0 -437
- package/lib/Ribbon/docs/Ribbon__default.docs.js +0 -392
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +0 -484
- package/lib/Select/docs/GroupSelect__default.docs.js +0 -199
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +0 -152
- package/lib/Select/docs/SelectWithIcon__default.docs.js +0 -190
- package/lib/Select/docs/Select__default.docs.js +0 -340
- package/lib/Stencils/docs/Stencils__custom.docs.js +0 -96
- package/lib/Stencils/docs/Stencils__default.docs.js +0 -101
- package/lib/Switch/docs/Switch__custom.docs.js +0 -203
- package/lib/Switch/docs/Switch__default.docs.js +0 -156
- package/lib/Tab/docs/Tab__default.docs.js +0 -308
- package/lib/Tab/docs/tabdocs.module.css +0 -29
- package/lib/Tag/docs/Tag__custom.docs.js +0 -423
- package/lib/Tag/docs/Tag__default.docs.js +0 -307
- package/lib/TextBox/docs/TextBox__custom.docs.js +0 -98
- package/lib/TextBox/docs/TextBox__default.docs.js +0 -95
- package/lib/TextBox/docs/TextBox__size.docs.js +0 -93
- package/lib/TextBox/docs/TextBox__variant.docs.js +0 -93
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -145
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -117
- package/lib/Textarea/docs/Textarea__animated.docs.js +0 -95
- package/lib/Textarea/docs/Textarea__custom.docs.js +0 -137
- package/lib/Textarea/docs/Textarea__default.docs.js +0 -130
- package/lib/Textarea/docs/Textarea__disabled.docs.js +0 -83
- package/lib/Tooltip/docs/Tooltip__default.docs.js +0 -391
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -150
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -206
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -191
- package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +0 -101
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -145
- package/lib/semantic/Button/docs/Button__default.docs.js +0 -66
|
@@ -0,0 +1,127 @@
|
|
|
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 _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _Layout = require("../Layout");
|
|
13
|
+
|
|
14
|
+
var _CssProvider = _interopRequireDefault(require("../Provider/CssProvider"));
|
|
15
|
+
|
|
16
|
+
var _ListItemModule = _interopRequireDefault(require("./ListItem.module.css"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
21
|
+
|
|
22
|
+
var ListContainer = function ListContainer(props) {
|
|
23
|
+
var size = props.size,
|
|
24
|
+
active = props.active,
|
|
25
|
+
highlight = props.highlight,
|
|
26
|
+
autoHover = props.autoHover,
|
|
27
|
+
palette = props.palette,
|
|
28
|
+
title = props.title,
|
|
29
|
+
disableTitle = props.disableTitle,
|
|
30
|
+
needTick = props.needTick,
|
|
31
|
+
isLink = props.isLink,
|
|
32
|
+
href = props.href,
|
|
33
|
+
target = props.target,
|
|
34
|
+
needBorder = props.needBorder,
|
|
35
|
+
isDisabled = props.isDisabled,
|
|
36
|
+
children = props.children,
|
|
37
|
+
dataId = props.dataId,
|
|
38
|
+
a11y = props.a11y,
|
|
39
|
+
customClass = props.customClass,
|
|
40
|
+
customProps = props.customProps,
|
|
41
|
+
onClick = props.onClick,
|
|
42
|
+
onMouseEnter = props.onMouseEnter,
|
|
43
|
+
onMouseOver = props.onMouseOver,
|
|
44
|
+
eleRef = props.eleRef;
|
|
45
|
+
var role = a11y.role,
|
|
46
|
+
ariaSelected = a11y.ariaSelected;
|
|
47
|
+
var options = {};
|
|
48
|
+
|
|
49
|
+
if (isLink) {
|
|
50
|
+
options.href = href;
|
|
51
|
+
options.target = "_".concat(target);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (active) {
|
|
55
|
+
options['data-selected'] = active;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (!isDisabled && !isLink && active) {
|
|
59
|
+
options.tabindex = '0';
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
|
|
63
|
+
role: role,
|
|
64
|
+
"aria-selected": ariaSelected,
|
|
65
|
+
isCover: false,
|
|
66
|
+
align: "vertical",
|
|
67
|
+
alignBox: "row",
|
|
68
|
+
className: "".concat(_ListItemModule["default"].list, " ").concat(_ListItemModule["default"][size], " ").concat(_ListItemModule["default"][palette], " ").concat(active ? _ListItemModule["default"]["active".concat(palette)] : highlight && !isDisabled ? _ListItemModule["default"]["".concat(palette, "Hover")] : '', " ").concat(autoHover && !isDisabled ? _ListItemModule["default"]["".concat(palette, "Effect")] : '', " ").concat(needTick ? _ListItemModule["default"]["".concat(size, "withTick")] : '', " ").concat(isDisabled ? (0, _CssProvider["default"])('isDisable') : '', " ").concat(needBorder ? active ? _ListItemModule["default"].activewithBorder : _ListItemModule["default"].withBorder : '', " ").concat(customClass),
|
|
69
|
+
dataId: dataId,
|
|
70
|
+
onClick: !isDisabled && onClick,
|
|
71
|
+
onMouseEnter: onMouseEnter,
|
|
72
|
+
onMouseOver: onMouseOver,
|
|
73
|
+
eleRef: eleRef,
|
|
74
|
+
tagName: isLink ? 'a' : 'li',
|
|
75
|
+
"data-title": isDisabled ? disableTitle : title
|
|
76
|
+
}, options, customProps), children);
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
ListContainer.defaultProps = {
|
|
80
|
+
active: false,
|
|
81
|
+
autoHover: false,
|
|
82
|
+
highlight: false,
|
|
83
|
+
needTick: false,
|
|
84
|
+
palette: 'default',
|
|
85
|
+
size: 'medium',
|
|
86
|
+
isLink: false,
|
|
87
|
+
target: 'blank',
|
|
88
|
+
needBorder: true,
|
|
89
|
+
a11y: {},
|
|
90
|
+
customClass: '',
|
|
91
|
+
customProps: {}
|
|
92
|
+
};
|
|
93
|
+
var _default = ListContainer;
|
|
94
|
+
exports["default"] = _default;
|
|
95
|
+
ListContainer.propTypes = {
|
|
96
|
+
active: _propTypes["default"].bool,
|
|
97
|
+
autoHover: _propTypes["default"].bool,
|
|
98
|
+
children: _propTypes["default"].node,
|
|
99
|
+
dataId: _propTypes["default"].string,
|
|
100
|
+
disableTitle: _propTypes["default"].string,
|
|
101
|
+
highlight: _propTypes["default"].bool,
|
|
102
|
+
href: _propTypes["default"].string,
|
|
103
|
+
isDisabled: _propTypes["default"].bool,
|
|
104
|
+
isLink: _propTypes["default"].bool,
|
|
105
|
+
needBorder: _propTypes["default"].bool,
|
|
106
|
+
needTick: _propTypes["default"].bool,
|
|
107
|
+
onClick: _propTypes["default"].func,
|
|
108
|
+
onMouseEnter: _propTypes["default"].func,
|
|
109
|
+
onMouseOver: _propTypes["default"].func,
|
|
110
|
+
palette: _propTypes["default"].oneOf(['default', 'primary', 'secondary', 'dark']),
|
|
111
|
+
size: _propTypes["default"].oneOf(['small', 'medium', 'large']),
|
|
112
|
+
target: _propTypes["default"].oneOf(['blank', 'self']),
|
|
113
|
+
title: _propTypes["default"].string,
|
|
114
|
+
a11y: _propTypes["default"].shape({
|
|
115
|
+
role: _propTypes["default"].string,
|
|
116
|
+
ariaSelected: _propTypes["default"].bool
|
|
117
|
+
}),
|
|
118
|
+
customClass: _propTypes["default"].string,
|
|
119
|
+
customProps: _propTypes["default"].object
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
if (false) {
|
|
123
|
+
ListContainer.docs = {
|
|
124
|
+
componentGroup: 'Molecule',
|
|
125
|
+
folderName: 'Style Guide'
|
|
126
|
+
};
|
|
127
|
+
}
|
package/lib/ListItem/ListItem.js
CHANGED
|
@@ -13,9 +13,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
var _Layout = require("../Layout");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _ListContainer = _interopRequireDefault(require("./ListContainer"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
19
19
|
|
|
20
20
|
var _ListItemModule = _interopRequireDefault(require("./ListItem.module.css"));
|
|
21
21
|
|
|
@@ -114,46 +114,39 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
114
114
|
customClass = _this$props4.customClass,
|
|
115
115
|
customProps = _this$props4.customProps;
|
|
116
116
|
var _customProps$ListItem = customProps.ListItemProps,
|
|
117
|
-
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem
|
|
117
|
+
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
118
|
+
_customProps$Containe = customProps.ContainerProps,
|
|
119
|
+
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe;
|
|
118
120
|
var _customClass$customLi = customClass.customListItem,
|
|
119
121
|
customListItem = _customClass$customLi === void 0 ? '' : _customClass$customLi,
|
|
120
122
|
_customClass$customTi = customClass.customTickIcon,
|
|
121
123
|
customTickIcon = _customClass$customTi === void 0 ? '' : _customClass$customTi;
|
|
122
|
-
var
|
|
123
|
-
ariaSelected = a11y.ariaSelected,
|
|
124
|
-
_a11y$ariaHidden = a11y.ariaHidden,
|
|
124
|
+
var _a11y$ariaHidden = a11y.ariaHidden,
|
|
125
125
|
ariaHidden = _a11y$ariaHidden === void 0 ? true : _a11y$ariaHidden;
|
|
126
126
|
var tickIconPalette = _ListItemModule["default"]["".concat(palette, "Tick")] ? _ListItemModule["default"]["".concat(palette, "Tick")] : '';
|
|
127
|
-
var options = {};
|
|
128
|
-
|
|
129
|
-
if (isLink) {
|
|
130
|
-
options.href = href;
|
|
131
|
-
options.target = "_".concat(target);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
if (active) {
|
|
135
|
-
options['data-selected'] = active;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
if (!isDisabled && !isLink && active) {
|
|
139
|
-
options.tabindex = '0';
|
|
140
|
-
}
|
|
141
|
-
|
|
142
127
|
var dataIdString = dataId ? dataId : value ? String(value).replace("'", '_') : 'listItem';
|
|
143
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
128
|
+
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
129
|
+
a11y: a11y,
|
|
130
|
+
size: size,
|
|
131
|
+
palette: palette,
|
|
132
|
+
highlight: highlight,
|
|
133
|
+
isDisabled: isDisabled,
|
|
134
|
+
active: active,
|
|
135
|
+
autoHover: autoHover,
|
|
136
|
+
needTick: needTick,
|
|
137
|
+
needBorder: needBorder,
|
|
138
|
+
customClass: customListItem,
|
|
150
139
|
dataId: dataIdString,
|
|
151
|
-
|
|
140
|
+
isLink: isLink,
|
|
141
|
+
href: href,
|
|
142
|
+
target: target,
|
|
143
|
+
disableTitle: disableTitle,
|
|
144
|
+
title: title,
|
|
145
|
+
onClick: this.handleClick,
|
|
152
146
|
onMouseEnter: this.handleMouseEnter,
|
|
153
147
|
eleRef: this.getRef,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}, options, ListItemProps), value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
148
|
+
customProps: ListItemProps
|
|
149
|
+
}, ContainerProps), value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
157
150
|
shrink: true,
|
|
158
151
|
adjust: true,
|
|
159
152
|
className: _ListItemModule["default"].value
|
|
@@ -13,14 +13,14 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
var _Layout = require("../Layout");
|
|
15
15
|
|
|
16
|
+
var _ListContainer = _interopRequireDefault(require("./ListContainer"));
|
|
17
|
+
|
|
16
18
|
var _Avatar = _interopRequireDefault(require("../Avatar/Avatar"));
|
|
17
19
|
|
|
18
20
|
var _AvatarTeam = _interopRequireDefault(require("../AvatarTeam/AvatarTeam"));
|
|
19
21
|
|
|
20
22
|
var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
21
23
|
|
|
22
|
-
var _CssProvider = _interopRequireDefault(require("../Provider/CssProvider"));
|
|
23
|
-
|
|
24
24
|
var _ListItemModule = _interopRequireDefault(require("./ListItem.module.css"));
|
|
25
25
|
|
|
26
26
|
var _ListItemWithAvatar$p;
|
|
@@ -124,43 +124,38 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
124
124
|
customClass = _this$props4.customClass,
|
|
125
125
|
customProps = _this$props4.customProps;
|
|
126
126
|
var _customProps$ListItem = customProps.ListItemProps,
|
|
127
|
-
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem
|
|
127
|
+
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
128
|
+
_customProps$Containe = customProps.ContainerProps,
|
|
129
|
+
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe;
|
|
128
130
|
var _customClass$customLi = customClass.customListItem,
|
|
129
131
|
customListItem = _customClass$customLi === void 0 ? '' : _customClass$customLi,
|
|
130
132
|
_customClass$customAv = customClass.customAvatar,
|
|
131
133
|
customAvatar = _customClass$customAv === void 0 ? '' : _customClass$customAv,
|
|
132
134
|
_customClass$customAv2 = customClass.customAvatarTeam,
|
|
133
135
|
customAvatarTeam = _customClass$customAv2 === void 0 ? '' : _customClass$customAv2;
|
|
134
|
-
var
|
|
135
|
-
var role = a11y.role,
|
|
136
|
-
ariaSelected = a11y.ariaSelected,
|
|
137
|
-
_a11y$ariaHidden = a11y.ariaHidden,
|
|
136
|
+
var _a11y$ariaHidden = a11y.ariaHidden,
|
|
138
137
|
ariaHidden = _a11y$ariaHidden === void 0 ? true : _a11y$ariaHidden;
|
|
139
138
|
var isDarkPalette = palette === 'dark';
|
|
140
|
-
|
|
141
|
-
if (active) {
|
|
142
|
-
options['data-selected'] = active;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
if (!isDisabled && active) {
|
|
146
|
-
options.tabindex = '0';
|
|
147
|
-
}
|
|
148
|
-
|
|
149
139
|
var dataIdString = value ? value : dataId;
|
|
150
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
140
|
+
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
141
|
+
a11y: a11y,
|
|
142
|
+
size: size,
|
|
143
|
+
palette: palette,
|
|
144
|
+
highlight: highlight,
|
|
145
|
+
isDisabled: isDisabled,
|
|
146
|
+
active: active,
|
|
147
|
+
autoHover: autoHover,
|
|
148
|
+
needTick: needTick,
|
|
149
|
+
needBorder: needBorder,
|
|
150
|
+
customClass: customListItem,
|
|
151
|
+
dataId: "".concat(dataIdString, "_ListItemWithAvatar"),
|
|
152
|
+
onClick: this.handleClick,
|
|
158
153
|
onMouseEnter: this.handleMouseEnter,
|
|
159
154
|
eleRef: this.getRef,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
},
|
|
155
|
+
disableTitle: disableTitle,
|
|
156
|
+
title: null,
|
|
157
|
+
customProps: ListItemProps
|
|
158
|
+
}, ContainerProps), name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
164
159
|
className: _ListItemModule["default"].leftAvatar
|
|
165
160
|
}, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"], {
|
|
166
161
|
name: name,
|
|
@@ -11,12 +11,12 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
|
|
14
|
+
var _ListContainer = _interopRequireDefault(require("./ListContainer"));
|
|
15
|
+
|
|
14
16
|
var _CheckBox = _interopRequireDefault(require("../CheckBox/CheckBox"));
|
|
15
17
|
|
|
16
18
|
var _Layout = require("../Layout");
|
|
17
19
|
|
|
18
|
-
var _CssProvider = _interopRequireDefault(require("../Provider/CssProvider"));
|
|
19
|
-
|
|
20
20
|
var _ListItemModule = _interopRequireDefault(require("./ListItem.module.css"));
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -105,39 +105,35 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
105
105
|
isDisabled = _this$props4.isDisabled,
|
|
106
106
|
disableTitle = _this$props4.disableTitle,
|
|
107
107
|
a11y = _this$props4.a11y,
|
|
108
|
-
customClass = _this$props4.customClass
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
customClass = _this$props4.customClass,
|
|
109
|
+
customProps = _this$props4.customProps;
|
|
110
|
+
var _customProps$ListItem = customProps.ListItemProps,
|
|
111
|
+
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
112
|
+
_customProps$Containe = customProps.ContainerProps,
|
|
113
|
+
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe;
|
|
111
114
|
var _customClass$customLi = customClass.customListItem,
|
|
112
115
|
customListItem = _customClass$customLi === void 0 ? '' : _customClass$customLi,
|
|
113
116
|
_customClass$customCh = customClass.customCheckBox,
|
|
114
117
|
customCheckBox = _customClass$customCh === void 0 ? '' : _customClass$customCh,
|
|
115
118
|
_customClass$customLa = customClass.customLabel,
|
|
116
119
|
customLabel = _customClass$customLa === void 0 ? '' : _customClass$customLa;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
|
|
128
|
-
role: role,
|
|
129
|
-
"aria-selected": ariaSelected,
|
|
130
|
-
isCover: false,
|
|
131
|
-
align: "vertical",
|
|
132
|
-
alignBox: "row",
|
|
133
|
-
className: "".concat(_ListItemModule["default"].list, " ").concat(_ListItemModule["default"][size], " ").concat(_ListItemModule["default"][palette], " ").concat(active ? _ListItemModule["default"]["active".concat(palette)] : highlight && !isDisabled ? _ListItemModule["default"]["".concat(palette, "Hover")] : '', " ").concat(autoHover && !isDisabled ? _ListItemModule["default"]["".concat(palette, "Effect")] : '', " \n ").concat(isDisabled ? (0, _CssProvider["default"])('isDisable') : '', " ").concat(customListItem),
|
|
120
|
+
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
121
|
+
a11y: a11y,
|
|
122
|
+
size: size,
|
|
123
|
+
palette: palette,
|
|
124
|
+
highlight: highlight,
|
|
125
|
+
isDisabled: isDisabled,
|
|
126
|
+
active: active,
|
|
127
|
+
autoHover: autoHover,
|
|
128
|
+
customClass: customListItem,
|
|
134
129
|
dataId: "".concat(dataId ? dataId : value, "_ListItemWithCheckBox"),
|
|
135
|
-
onClick:
|
|
130
|
+
onClick: this.onClick,
|
|
136
131
|
onMouseOver: this.onHover,
|
|
137
132
|
eleRef: this.getRef,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
133
|
+
disableTitle: disableTitle,
|
|
134
|
+
title: null,
|
|
135
|
+
customProps: ListItemProps
|
|
136
|
+
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
141
137
|
className: _ListItemModule["default"].iconBox
|
|
142
138
|
}, /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
|
|
143
139
|
checked: checked,
|
|
@@ -170,7 +166,8 @@ ListItemWithCheckBox.defaultProps = {
|
|
|
170
166
|
size: 'medium',
|
|
171
167
|
value: 'List',
|
|
172
168
|
a11y: {},
|
|
173
|
-
customClass: {}
|
|
169
|
+
customClass: {},
|
|
170
|
+
customProps: {}
|
|
174
171
|
};
|
|
175
172
|
ListItemWithCheckBox.propTypes = {
|
|
176
173
|
active: _propTypes["default"].bool,
|
|
@@ -15,7 +15,7 @@ var _Layout = require("../Layout");
|
|
|
15
15
|
|
|
16
16
|
var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _ListContainer = _interopRequireDefault(require("./ListContainer"));
|
|
19
19
|
|
|
20
20
|
var _ListItemModule = _interopRequireDefault(require("./ListItem.module.css"));
|
|
21
21
|
|
|
@@ -106,6 +106,9 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
106
106
|
dataId = _this$props4.dataId,
|
|
107
107
|
title = _this$props4.title,
|
|
108
108
|
needTick = _this$props4.needTick,
|
|
109
|
+
isLink = _this$props4.isLink,
|
|
110
|
+
href = _this$props4.href,
|
|
111
|
+
target = _this$props4.target,
|
|
109
112
|
needBorder = _this$props4.needBorder,
|
|
110
113
|
isDisabled = _this$props4.isDisabled,
|
|
111
114
|
disableTitle = _this$props4.disableTitle,
|
|
@@ -113,36 +116,34 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
113
116
|
customClass = _this$props4.customClass,
|
|
114
117
|
customProps = _this$props4.customProps;
|
|
115
118
|
var _customProps$ListItem = customProps.ListItemProps,
|
|
116
|
-
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
120
|
+
_customProps$Containe = customProps.ContainerProps,
|
|
121
|
+
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe;
|
|
122
|
+
var _a11y$ariaHidden = a11y.ariaHidden,
|
|
120
123
|
ariaHidden = _a11y$ariaHidden === void 0 ? true : _a11y$ariaHidden;
|
|
121
|
-
var options = {};
|
|
122
|
-
|
|
123
|
-
if (active) {
|
|
124
|
-
options['data-selected'] = active;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
if (!isDisabled && active) {
|
|
128
|
-
options.tabindex = '0';
|
|
129
|
-
}
|
|
130
|
-
|
|
131
124
|
var dataIdString = dataId ? "".concat(dataId.replace("'", '_')) : value.toLowerCase().replace("'", '_');
|
|
132
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
125
|
+
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
126
|
+
a11y: a11y,
|
|
127
|
+
size: size,
|
|
128
|
+
palette: palette,
|
|
129
|
+
highlight: highlight,
|
|
130
|
+
isDisabled: isDisabled,
|
|
131
|
+
active: active,
|
|
132
|
+
autoHover: autoHover,
|
|
133
|
+
needTick: needTick,
|
|
134
|
+
needBorder: needBorder,
|
|
135
|
+
customClass: customClass,
|
|
139
136
|
dataId: dataIdString,
|
|
140
|
-
|
|
137
|
+
isLink: isLink,
|
|
138
|
+
href: href,
|
|
139
|
+
target: target,
|
|
140
|
+
onClick: this.handleClick,
|
|
141
141
|
onMouseOver: this.handleMouseEnter,
|
|
142
142
|
eleRef: this.getRef,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
disableTitle: disableTitle,
|
|
144
|
+
title: null,
|
|
145
|
+
customProps: ListItemProps
|
|
146
|
+
}, ContainerProps), iconName && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
146
147
|
"aria-hidden": true,
|
|
147
148
|
className: _ListItemModule["default"].iconBox,
|
|
148
149
|
dataId: dataId ? "".concat(dataId, "_Icon") : "".concat(value.toLowerCase().replace("'", '_'), "_Icon")
|
|
@@ -15,14 +15,12 @@ var _Radio = _interopRequireDefault(require("../Radio/Radio"));
|
|
|
15
15
|
|
|
16
16
|
var _Layout = require("../Layout");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _ListContainer = _interopRequireDefault(require("./ListContainer"));
|
|
19
19
|
|
|
20
20
|
var _ListItemModule = _interopRequireDefault(require("./ListItem.module.css"));
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
24
|
-
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; }
|
|
25
|
-
|
|
26
24
|
function _extends() { _extends = Object.assign || 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); }
|
|
27
25
|
|
|
28
26
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -94,8 +92,6 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
94
92
|
}, {
|
|
95
93
|
key: "render",
|
|
96
94
|
value: function render() {
|
|
97
|
-
var _extends2;
|
|
98
|
-
|
|
99
95
|
var _this$props4 = this.props,
|
|
100
96
|
size = _this$props4.size,
|
|
101
97
|
active = _this$props4.active,
|
|
@@ -110,33 +106,35 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
110
106
|
isDisabled = _this$props4.isDisabled,
|
|
111
107
|
disableTitle = _this$props4.disableTitle,
|
|
112
108
|
a11y = _this$props4.a11y,
|
|
113
|
-
customClass = _this$props4.customClass
|
|
109
|
+
customClass = _this$props4.customClass,
|
|
110
|
+
customProps = _this$props4.customProps;
|
|
111
|
+
var _customProps$ListItem = customProps.ListItemProps,
|
|
112
|
+
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
113
|
+
_customProps$Containe = customProps.ContainerProps,
|
|
114
|
+
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe;
|
|
114
115
|
var _customClass$customLi = customClass.customListItem,
|
|
115
116
|
customListItem = _customClass$customLi === void 0 ? '' : _customClass$customLi,
|
|
116
117
|
_customClass$customRa = customClass.customRadio,
|
|
117
118
|
customRadio = _customClass$customRa === void 0 ? '' : _customClass$customRa,
|
|
118
119
|
_customClass$customRa2 = customClass.customRadioWrap,
|
|
119
120
|
customRadioWrap = _customClass$customRa2 === void 0 ? '' : _customClass$customRa2;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
alignBox: "row",
|
|
138
|
-
className: "".concat(_ListItemModule["default"].list, " ").concat(_ListItemModule["default"][size], " ").concat(_ListItemModule["default"][palette], " ").concat(active ? _ListItemModule["default"].active : highlight && !isDisabled ? _ListItemModule["default"].hover : '', " ").concat(autoHover && !isDisabled ? _ListItemModule["default"].effect : '', " ").concat(isDisabled ? (0, _CssProvider["default"])('isDisable') : '', " ")
|
|
139
|
-
}, _defineProperty(_extends2, "className", "".concat(_ListItemModule["default"].list, " ").concat(_ListItemModule["default"][size], " ").concat(_ListItemModule["default"][palette], " ").concat(active ? _ListItemModule["default"]["active".concat(palette)] : highlight && !isDisabled ? _ListItemModule["default"]["".concat(palette, "Hover")] : '', " ").concat(autoHover && !isDisabled ? _ListItemModule["default"]["".concat(palette, "Effect")] : '', " \n ").concat(isDisabled ? (0, _CssProvider["default"])('isDisable') : '', " ").concat(customListItem)), _defineProperty(_extends2, "dataId", dataId), _defineProperty(_extends2, "onClick", !isDisabled && this.onClick), _defineProperty(_extends2, "onMouseOver", this.onHover), _defineProperty(_extends2, "eleRef", this.getRef), _defineProperty(_extends2, "tagName", "li"), _defineProperty(_extends2, "data-title", isDisabled ? disableTitle : null), _extends2), options), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
121
|
+
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
122
|
+
a11y: a11y,
|
|
123
|
+
size: size,
|
|
124
|
+
palette: palette,
|
|
125
|
+
highlight: highlight,
|
|
126
|
+
isDisabled: isDisabled,
|
|
127
|
+
active: active,
|
|
128
|
+
autoHover: autoHover,
|
|
129
|
+
customClass: customListItem,
|
|
130
|
+
dataId: dataId,
|
|
131
|
+
onClick: this.onClick,
|
|
132
|
+
onMouseOver: this.onHover,
|
|
133
|
+
eleRef: this.getRef,
|
|
134
|
+
disableTitle: disableTitle,
|
|
135
|
+
title: null,
|
|
136
|
+
customProps: ListItemProps
|
|
137
|
+
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
140
138
|
className: _ListItemModule["default"].iconBox
|
|
141
139
|
}, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
|
|
142
140
|
checked: checked,
|
|
@@ -171,7 +169,8 @@ ListItemWithRadio.defaultProps = {
|
|
|
171
169
|
value: 'List',
|
|
172
170
|
dataId: 'listItemWithRadioComp',
|
|
173
171
|
a11y: {},
|
|
174
|
-
customClass: {}
|
|
172
|
+
customClass: {},
|
|
173
|
+
customProps: {}
|
|
175
174
|
};
|
|
176
175
|
ListItemWithRadio.propTypes = {
|
|
177
176
|
active: _propTypes["default"].bool,
|
|
@@ -945,7 +945,8 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
945
945
|
i18nKeys = _this$props8.i18nKeys,
|
|
946
946
|
a11y = _this$props8.a11y,
|
|
947
947
|
isSearchClearOnSelect = _this$props8.isSearchClearOnSelect,
|
|
948
|
-
palette = _this$props8.palette
|
|
948
|
+
palette = _this$props8.palette,
|
|
949
|
+
needEffect = _this$props8.needEffect;
|
|
949
950
|
var _i18nKeys = i18nKeys,
|
|
950
951
|
_i18nKeys$clearText = _i18nKeys.clearText,
|
|
951
952
|
clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
|
|
@@ -973,7 +974,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
973
974
|
var setAriaId = this.getNextAriaId();
|
|
974
975
|
var ariaErrorId = this.getNextAriaId();
|
|
975
976
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
976
|
-
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : ''),
|
|
977
|
+
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
977
978
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
978
979
|
"data-title": isDisabled ? title : '',
|
|
979
980
|
onClick: this.handleInputFocus
|
|
@@ -1150,7 +1151,8 @@ AdvancedGroupMultiSelect.defaultProps = {
|
|
|
1150
1151
|
isPadding: false,
|
|
1151
1152
|
i18nKeys: {},
|
|
1152
1153
|
a11y: {},
|
|
1153
|
-
isSearchClearOnSelect: true
|
|
1154
|
+
isSearchClearOnSelect: true,
|
|
1155
|
+
needEffect: _propTypes["default"].bool
|
|
1154
1156
|
};
|
|
1155
1157
|
AdvancedGroupMultiSelect.propTypes = {
|
|
1156
1158
|
animationStyle: _propTypes["default"].string,
|
|
@@ -1200,7 +1202,8 @@ AdvancedGroupMultiSelect.propTypes = {
|
|
|
1200
1202
|
variant: _propTypes["default"].string,
|
|
1201
1203
|
htmlId: _propTypes["default"].string,
|
|
1202
1204
|
isSearchClearOnSelect: _propTypes["default"].bool,
|
|
1203
|
-
palette: _propTypes["default"].oneOf(['default', 'dark'])
|
|
1205
|
+
palette: _propTypes["default"].oneOf(['default', 'dark']),
|
|
1206
|
+
needEffect: true
|
|
1204
1207
|
};
|
|
1205
1208
|
|
|
1206
1209
|
if (false) {
|