@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,42 @@
|
|
|
1
|
+
[data-mode='default'][data-theme='orange'] {
|
|
2
|
+
/* stencil */
|
|
3
|
+
--zdt_stencil_dark_bg: rgba(255, 255, 255, 0.07);
|
|
4
|
+
--zdt_stencil_dark_gradient_bg: linear-gradient(to left, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 33.33%, rgba(255, 255, 255, 0.03) 66.66%, rgba(255, 255, 255, 0.07) 100%);
|
|
5
|
+
|
|
6
|
+
/* dropbox */
|
|
7
|
+
--zdt_dropbox_dark_bg: #332e24;
|
|
8
|
+
|
|
9
|
+
/* listitem */
|
|
10
|
+
--zdt_listitem_dark_bg: #332e24;
|
|
11
|
+
--zdt_listitem_dark_text: #d0d0d4;
|
|
12
|
+
--zdt_listitem_dark_effect_bg: rgba(255, 255, 255, 0.12);
|
|
13
|
+
--zdt_listitem_dark_active_bg: #4b4335;
|
|
14
|
+
--zdt_listitem_dark_tickicon: #ff6363;
|
|
15
|
+
|
|
16
|
+
/* tag */
|
|
17
|
+
--zdt_tag_dark_text: #d0d0d4;
|
|
18
|
+
--zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
|
|
19
|
+
--zdt_tag_dark_hover_text: #d0d0d4;
|
|
20
|
+
--zdt_tag_dark_hover_bg: var(--dot_matterhorn);
|
|
21
|
+
--zdt_tag_dark_close_bg: #864654;
|
|
22
|
+
--zdt_tag_dark_close_text: var(--dot_brightRed);
|
|
23
|
+
|
|
24
|
+
/* multiselect */
|
|
25
|
+
--zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
|
|
26
|
+
--zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
|
|
27
|
+
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
28
|
+
--zdt_multiselect_darkdelete_hover_text: var(--dot_white);
|
|
29
|
+
|
|
30
|
+
/* avatar */
|
|
31
|
+
--zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
|
|
32
|
+
--zdt_avatar_white_text: var(--dot_white);
|
|
33
|
+
|
|
34
|
+
/* label */
|
|
35
|
+
--zdt_label_dark_text: #d0d0d4;
|
|
36
|
+
|
|
37
|
+
/* textbox */
|
|
38
|
+
--zdt_textbox_light_text: var(--dot_white);
|
|
39
|
+
|
|
40
|
+
/* dropdown */
|
|
41
|
+
--zdt_dropdown_darkheading_text: var(--dot_white);
|
|
42
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[data-mode='default'][data-theme='red'] {
|
|
2
|
+
--zdt_cta_primary_text: var(--dot_brightRed);
|
|
3
|
+
--zdt_cta_primary_hover_text: #ab1a18;
|
|
4
|
+
--zdt_cta_primary_bg: var(--dot_brightRed);
|
|
5
|
+
--zdt_cta_primary_hover_bg: #ab1a18;
|
|
6
|
+
--zdt_cta_primary_border: var(--dot_brightRed);
|
|
7
|
+
--zdt_cta_primary_hover_border: #ab1a18;
|
|
8
|
+
--zdt_cta_primary_box_shadow: rgba(222, 53, 53, 0.2);
|
|
9
|
+
--zdt_cta_primary_hover_box_shadow: rgba(171, 26, 24, 0.25);
|
|
10
|
+
--zdt_cta_primary_light_bg: #fdf3f3;
|
|
11
|
+
--zdt_cta_primary_light_hover_bg: #f8d7d7;
|
|
12
|
+
--zdt_cta_primary_light_border: #f8d7d7;
|
|
13
|
+
--zdt_cta_secondary_bg: var(--dot_brightRed);
|
|
14
|
+
--zdt_cta_secondary_text: var(--dot_white);
|
|
15
|
+
--zdt_cta_secondary_border: #e55d5d;
|
|
16
|
+
--zdt_cta_secondary_light_border: #f8d7d7;
|
|
17
|
+
--zdt_cta_alpha_text: var(--dot_brightRed);
|
|
18
|
+
--zdt_cta_alpha_hover_text: #ab1a18;
|
|
19
|
+
--zdt_cta_alpha_border: var(--dot_brightRed);
|
|
20
|
+
--zdt_cta_alpha_hover_border: #ab1a18;
|
|
21
|
+
--zdt_cta_alpha_bg: #f8d7d7;
|
|
22
|
+
--zdt_cta_beta_border: var(--dot_brightRed);
|
|
23
|
+
--zdt_cta_grey_10_bg: #f9f6f7;
|
|
24
|
+
--zdt_cta_grey_10_border: #f9f6f7;
|
|
25
|
+
--zdt_cta_grey_15_bg: #ede8e8;
|
|
26
|
+
--zdt_cta_grey_15_border: #ede8e8;
|
|
27
|
+
--zdt_cta_grey_20_bg: #eeeced;
|
|
28
|
+
--zdt_cta_grey_35_bg: #ded3d6;
|
|
29
|
+
--zdt_cta_grey_35_text: #ded3d6;
|
|
30
|
+
--zdt_cta_grey_35_border: #ded3d6;
|
|
31
|
+
--zdt_cta_grey_40_bg: #b9b2b4;
|
|
32
|
+
--zdt_cta_grey_40_text: #b9b2b4;
|
|
33
|
+
--zdt_cta_grey_40_border: #b9b2b4
|
|
34
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
[data-mode='default'][data-theme='red'] {
|
|
2
|
+
/* stencil */
|
|
3
|
+
--zdt_stencil_dark_bg: rgba(255, 255, 255, 0.07);
|
|
4
|
+
--zdt_stencil_dark_gradient_bg: linear-gradient(to left, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 33.33%, rgba(255, 255, 255, 0.03) 66.66%, rgba(255, 255, 255, 0.07) 100%);
|
|
5
|
+
|
|
6
|
+
/* dropbox */
|
|
7
|
+
--zdt_dropbox_dark_bg: #34222d;
|
|
8
|
+
|
|
9
|
+
/* listitem */
|
|
10
|
+
--zdt_listitem_dark_bg: #34222d;
|
|
11
|
+
--zdt_listitem_dark_text: #d0d0d4;
|
|
12
|
+
--zdt_listitem_dark_effect_bg: rgba(255, 255, 255, 0.12);
|
|
13
|
+
--zdt_listitem_dark_active_bg: #4d3243;
|
|
14
|
+
--zdt_listitem_dark_tickicon: #e57717;
|
|
15
|
+
|
|
16
|
+
/* tag */
|
|
17
|
+
--zdt_tag_dark_text: #d0d0d4;
|
|
18
|
+
--zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
|
|
19
|
+
--zdt_tag_dark_hover_text: #d0d0d4;
|
|
20
|
+
--zdt_tag_dark_hover_bg: var(--dot_matterhorn);
|
|
21
|
+
--zdt_tag_dark_close_bg: #864654;
|
|
22
|
+
--zdt_tag_dark_close_text: var(--dot_brightRed);
|
|
23
|
+
|
|
24
|
+
/* multiselect */
|
|
25
|
+
--zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
|
|
26
|
+
--zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
|
|
27
|
+
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
28
|
+
--zdt_multiselect_darkdelete_hover_text: var(--dot_white);
|
|
29
|
+
|
|
30
|
+
/* avatar */
|
|
31
|
+
--zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
|
|
32
|
+
--zdt_avatar_white_text: var(--dot_white);
|
|
33
|
+
|
|
34
|
+
/* label */
|
|
35
|
+
--zdt_label_dark_text: #d0d0d4;
|
|
36
|
+
|
|
37
|
+
/* textbox */
|
|
38
|
+
--zdt_textbox_light_text: var(--dot_white);
|
|
39
|
+
|
|
40
|
+
/* dropdown */
|
|
41
|
+
--zdt_dropdown_darkheading_text: var(--dot_white);
|
|
42
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[data-mode='default'][data-theme='yellow'] {
|
|
2
|
+
--zdt_cta_primary_text: #b68c07;
|
|
3
|
+
--zdt_cta_primary_hover_text: #826800;
|
|
4
|
+
--zdt_cta_primary_bg: #e8b923;
|
|
5
|
+
--zdt_cta_primary_hover_bg: #b59100;
|
|
6
|
+
--zdt_cta_primary_border: #e8b923;
|
|
7
|
+
--zdt_cta_primary_hover_border: #b59100;
|
|
8
|
+
--zdt_cta_primary_box_shadow: rgba(232, 185, 35, 0.2);
|
|
9
|
+
--zdt_cta_primary_hover_box_shadow: rgba(181, 145, 0, 0.25);
|
|
10
|
+
--zdt_cta_primary_light_bg: #fdf8e9;
|
|
11
|
+
--zdt_cta_primary_light_hover_bg: #f8eabd;
|
|
12
|
+
--zdt_cta_primary_light_border: #f8eabd;
|
|
13
|
+
--zdt_cta_secondary_bg: #e8b923;
|
|
14
|
+
--zdt_cta_secondary_text: var(--dot_black);
|
|
15
|
+
--zdt_cta_secondary_border: rgba(255, 255, 255, 0.2);
|
|
16
|
+
--zdt_cta_secondary_light_border: #f6e3a7;
|
|
17
|
+
--zdt_cta_alpha_text: #b68c07;
|
|
18
|
+
--zdt_cta_alpha_hover_text: #826800;
|
|
19
|
+
--zdt_cta_alpha_border: #b68c07;
|
|
20
|
+
--zdt_cta_alpha_hover_border: #826800;
|
|
21
|
+
--zdt_cta_alpha_bg: #f8eabd;
|
|
22
|
+
--zdt_cta_beta_border: #b68c07;
|
|
23
|
+
--zdt_cta_grey_10_bg: #f8f8f6;
|
|
24
|
+
--zdt_cta_grey_10_border: #f8f8f6;
|
|
25
|
+
--zdt_cta_grey_15_bg: #edede3;
|
|
26
|
+
--zdt_cta_grey_15_border: #edede3;
|
|
27
|
+
--zdt_cta_grey_20_bg: #efefec;
|
|
28
|
+
--zdt_cta_grey_35_bg: #e0dbcc;
|
|
29
|
+
--zdt_cta_grey_35_text: #e0dbcc;
|
|
30
|
+
--zdt_cta_grey_35_border: #e0dbcc;
|
|
31
|
+
--zdt_cta_grey_40_bg: #ccc2a4;
|
|
32
|
+
--zdt_cta_grey_40_text: #ccc2a4;
|
|
33
|
+
--zdt_cta_grey_40_border: #ccc2a4
|
|
34
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
[data-mode='default'][data-theme='yellow'] {
|
|
2
|
+
/* stencil */
|
|
3
|
+
--zdt_stencil_dark_bg: rgba(255, 255, 255, 0.07);
|
|
4
|
+
--zdt_stencil_dark_gradient_bg: linear-gradient(to left, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 33.33%, rgba(255, 255, 255, 0.03) 66.66%, rgba(255, 255, 255, 0.07) 100%);
|
|
5
|
+
|
|
6
|
+
/* dropbox */
|
|
7
|
+
--zdt_dropbox_dark_bg: #313323;
|
|
8
|
+
|
|
9
|
+
/* listitem */
|
|
10
|
+
--zdt_listitem_dark_bg: #313323;
|
|
11
|
+
--zdt_listitem_dark_text: #d0d0d4;
|
|
12
|
+
--zdt_listitem_dark_effect_bg: rgba(255, 255, 255, 0.12);
|
|
13
|
+
--zdt_listitem_dark_active_bg: #494c34;
|
|
14
|
+
--zdt_listitem_dark_tickicon: #e8b923;
|
|
15
|
+
|
|
16
|
+
/* tag */
|
|
17
|
+
--zdt_tag_dark_text: #d0d0d4;
|
|
18
|
+
--zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
|
|
19
|
+
--zdt_tag_dark_hover_text: #d0d0d4;
|
|
20
|
+
--zdt_tag_dark_hover_bg: var(--dot_matterhorn);
|
|
21
|
+
--zdt_tag_dark_close_bg: #864654;
|
|
22
|
+
--zdt_tag_dark_close_text: var(--dot_brightRed);
|
|
23
|
+
|
|
24
|
+
/* multiselect */
|
|
25
|
+
--zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
|
|
26
|
+
--zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
|
|
27
|
+
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
28
|
+
--zdt_multiselect_darkdelete_hover_text: var(--dot_white);
|
|
29
|
+
|
|
30
|
+
/* avatar */
|
|
31
|
+
--zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
|
|
32
|
+
--zdt_avatar_white_text: var(--dot_white);
|
|
33
|
+
|
|
34
|
+
/* label */
|
|
35
|
+
--zdt_label_dark_text: #d0d0d4;
|
|
36
|
+
|
|
37
|
+
/* textbox */
|
|
38
|
+
--zdt_textbox_light_text: var(--dot_white);
|
|
39
|
+
|
|
40
|
+
/* dropdown */
|
|
41
|
+
--zdt_dropdown_darkheading_text: var(--dot_white);
|
|
42
|
+
}
|
|
@@ -139,14 +139,13 @@ Animation.defaultProps = {
|
|
|
139
139
|
isActive: false,
|
|
140
140
|
name: 'fadeIn',
|
|
141
141
|
unmountOnExit: true
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
};
|
|
142
|
+
}; // Animation.propTypesDescription = {
|
|
143
|
+
// name: ' ',
|
|
144
|
+
// children: ' ',
|
|
145
|
+
// enterDuration: ' ',
|
|
146
|
+
// exitDuration: ' ',
|
|
147
|
+
// isActive: ' '
|
|
148
|
+
// };
|
|
150
149
|
|
|
151
150
|
if (false) {
|
|
152
151
|
Animation.docs = {
|
|
@@ -5,38 +5,79 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import { Container, Box } from '../Layout';
|
|
6
6
|
import Tooltip from '../Tooltip/Tooltip';
|
|
7
7
|
import '../common/basic.module.css';
|
|
8
|
-
import '@zohodesk/variables/
|
|
9
|
-
import '@zohodesk/variables/
|
|
10
|
-
import '@zohodesk/variables/
|
|
11
|
-
import '@zohodesk/variables/
|
|
8
|
+
import '@zohodesk/variables/assets/colorVariables.module.css';
|
|
9
|
+
import '@zohodesk/variables/assets/dotVariables.module.css';
|
|
10
|
+
import '@zohodesk/variables/assets/sizeVariables.module.css';
|
|
11
|
+
import '@zohodesk/variables/assets/fontsizeVariables.module.css';
|
|
12
12
|
import '@zohodesk/variables/lib/fontFamilyVariables.module.css';
|
|
13
|
-
import '@zohodesk/variables/
|
|
14
|
-
import '@zohodesk/variables/
|
|
13
|
+
import '@zohodesk/variables/assets/transitionVariables.module.css';
|
|
14
|
+
import '@zohodesk/variables/assets/no_transitionVariables.module.css';
|
|
15
15
|
import style from './AppContainer.module.css';
|
|
16
|
+
import { getLibraryConfig } from '../Provider/Config';
|
|
16
17
|
export default class AppContainer extends React.Component {
|
|
17
18
|
constructor(props) {
|
|
18
19
|
super(props);
|
|
19
20
|
this.setTooltipRef = this.setTooltipRef.bind(this);
|
|
20
21
|
this.handleOver = this.handleOver.bind(this);
|
|
22
|
+
this.mouseOverDispatch = this.mouseOverDispatch.bind(this);
|
|
23
|
+
this.removeTimeout = this.removeTimeout.bind(this);
|
|
24
|
+
this.getContainerRef = this.getContainerRef.bind(this);
|
|
25
|
+
this.timer = null;
|
|
26
|
+
this.tooltipDebounce = getLibraryConfig('tooltipDebounce');
|
|
21
27
|
}
|
|
22
28
|
|
|
23
|
-
|
|
29
|
+
mouseOverDispatch(e) {
|
|
24
30
|
if (this.tooltipRef) {
|
|
25
31
|
this.tooltipRef.handleOver(e);
|
|
26
32
|
}
|
|
27
33
|
}
|
|
28
34
|
|
|
35
|
+
removeTimeout() {
|
|
36
|
+
if (this.timer) {
|
|
37
|
+
this.timer = clearTimeout(this.timer);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
handleOver(e) {
|
|
42
|
+
if (this.timer) {
|
|
43
|
+
this.timer = clearTimeout(this.timer);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
this.timer = setTimeout(() => this.mouseOverDispatch(e), this.tooltipDebounce);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
getContainerRef(ref) {
|
|
50
|
+
let {
|
|
51
|
+
eleRef
|
|
52
|
+
} = this.props;
|
|
53
|
+
this.containerElement = ref;
|
|
54
|
+
eleRef && eleRef(ref);
|
|
55
|
+
}
|
|
56
|
+
|
|
29
57
|
setTooltipRef(ref) {
|
|
30
58
|
this.tooltipRef = ref;
|
|
31
59
|
}
|
|
32
60
|
|
|
61
|
+
componentDidMount() {
|
|
62
|
+
if (this.containerElement) {
|
|
63
|
+
this.containerElement.addEventListener('mouseover', this.handleOver, false);
|
|
64
|
+
this.containerElement.addEventListener('mouseout', this.removeTimeout, false);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
componentWillUnmount() {
|
|
69
|
+
if (this.containerElement) {
|
|
70
|
+
this.containerElement.removeEventListener('mouseover', this.handleOver, false);
|
|
71
|
+
this.containerElement.addEventListener('mouseout', this.removeTimeout, false);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
33
75
|
render() {
|
|
34
76
|
let {
|
|
35
77
|
className,
|
|
36
78
|
children,
|
|
37
79
|
tagName,
|
|
38
80
|
dataId,
|
|
39
|
-
eleRef,
|
|
40
81
|
tooltipClass,
|
|
41
82
|
tooltipParentClass,
|
|
42
83
|
customProps
|
|
@@ -47,11 +88,11 @@ export default class AppContainer extends React.Component {
|
|
|
47
88
|
ExtraProps = {}
|
|
48
89
|
} = customProps;
|
|
49
90
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Container, _extends({
|
|
50
|
-
className: `${style.container} ${className}
|
|
51
|
-
|
|
91
|
+
className: `${style.container} ${className}` //onMouseOver={this.handleOver}
|
|
92
|
+
,
|
|
52
93
|
dataId: dataId,
|
|
53
94
|
tagName: tagName,
|
|
54
|
-
eleRef:
|
|
95
|
+
eleRef: this.getContainerRef
|
|
55
96
|
}, ContainerProps, ExtraProps), /*#__PURE__*/React.createElement(Box, {
|
|
56
97
|
flexible: true
|
|
57
98
|
}, children)), /*#__PURE__*/React.createElement("div", _extends({}, ExtraProps, {
|
package/es/Avatar/Avatar.js
CHANGED
|
@@ -197,16 +197,16 @@ Avatar.propTypes = {
|
|
|
197
197
|
customProps: PropTypes.shape({
|
|
198
198
|
AvatarProps: PropTypes.object
|
|
199
199
|
})
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
200
|
+
}; // Avatar.propTypesDescription = {
|
|
201
|
+
// name: ' ',
|
|
202
|
+
// size: ' ',
|
|
203
|
+
// src: ' ',
|
|
204
|
+
// palette: ' ',
|
|
205
|
+
// onClick: ' ',
|
|
206
|
+
// shape: ' ',
|
|
207
|
+
// title: ' '
|
|
208
|
+
// };
|
|
209
|
+
|
|
210
210
|
Avatar.invalidImageURLs = [];
|
|
211
211
|
Avatar.validImageURLs = [];
|
|
212
212
|
|
package/es/Button/Button.js
CHANGED
|
@@ -39,7 +39,7 @@ export default class Button extends React.Component {
|
|
|
39
39
|
let paletteLower = palette.toLowerCase();
|
|
40
40
|
let statusLower = status.toLowerCase();
|
|
41
41
|
let classList = needAppearance ? `${style[paletteLower]} ${rounded ? style.rounded : ''} ${!children ? style[size.toLowerCase()] : `${style[`${size}Btn`]}
|
|
42
|
-
${rounded ? style[`${size}Btn${paletteLower}`] : ''}`}` : `${style.default}`;
|
|
42
|
+
${rounded ? style[`${size}Btn${paletteLower}`] : ''}`} ${statusLower !== 'none' ? style.loader : ''}` : `${style.default}`;
|
|
43
43
|
return /*#__PURE__*/React.createElement("button", _extends({
|
|
44
44
|
className: `${customButton} ${classList} ${isBold ? style.bold : ''} `,
|
|
45
45
|
"data-id": disabled ? `${dataId}_disabled` : dataId,
|
|
@@ -48,12 +48,12 @@ export default class Button extends React.Component {
|
|
|
48
48
|
"data-title": title,
|
|
49
49
|
type: "button",
|
|
50
50
|
ref: getRef
|
|
51
|
-
}, customProps), children ? children : text,
|
|
51
|
+
}, customProps), children ? children : text, statusLower !== 'none' && needAppearance && /*#__PURE__*/React.createElement("div", {
|
|
52
52
|
className: style.overlay
|
|
53
53
|
}, /*#__PURE__*/React.createElement("div", {
|
|
54
|
-
className: `${customStatusSize} ${statusLower === 'loading' ? `${style.loading} ${style[`${size}loading`]}` : style.success}`
|
|
54
|
+
className: `${customStatusSize} ${statusLower === 'loading' ? `${style.loading} ${style[`${size}loading`] ? style[`${size}loading`] : ''}` : style.success}`
|
|
55
55
|
}, /*#__PURE__*/React.createElement("div", {
|
|
56
|
-
className: `${customStatus} ${statusLower === 'loading' ? `${style.loadingelement} ${style[`${paletteLower}element`]}` : `${style.successelement} ${style[`${paletteLower}success`]}`}`
|
|
56
|
+
className: `${customStatus} ${statusLower === 'loading' ? `${style.loadingelement} ${style[`${paletteLower}element`] ? style[`${paletteLower}element`] : ''}` : `${style.successelement} ${style[`${paletteLower}success`] ? style[`${paletteLower}success`] : ''}`}`
|
|
57
57
|
}))));
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -92,19 +92,19 @@ Button.propTypes = {
|
|
|
92
92
|
customButton: PropTypes.string,
|
|
93
93
|
customStatus: PropTypes.string,
|
|
94
94
|
customStatusSize: PropTypes.string
|
|
95
|
-
})
|
|
96
|
-
|
|
97
|
-
Button.propTypesDescription = {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
};
|
|
95
|
+
}),
|
|
96
|
+
customProps: PropTypes.object
|
|
97
|
+
}; // Button.propTypesDescription = {
|
|
98
|
+
// onClick: ' ',
|
|
99
|
+
// text: ' ',
|
|
100
|
+
// palette: ' ',
|
|
101
|
+
// disabled: ' ',
|
|
102
|
+
// size: ' ',
|
|
103
|
+
// rounded: ' ',
|
|
104
|
+
// status: ' ',
|
|
105
|
+
// isBold: ' ',
|
|
106
|
+
// children: ' '
|
|
107
|
+
// };
|
|
108
108
|
|
|
109
109
|
if (false) {
|
|
110
110
|
Button.docs = {
|
|
@@ -362,17 +362,20 @@
|
|
|
362
362
|
|
|
363
363
|
.primaryelement:before {
|
|
364
364
|
--button_loading_bg_color: var(--zdt_button_primaryfill_bg);
|
|
365
|
+
--zdt_button_loading_linear_gradient:var(--zdt_button_loading_primary_linear_gradient);
|
|
365
366
|
transform: rotateX(180deg);
|
|
366
367
|
}
|
|
367
368
|
|
|
368
369
|
.dangerelement:before {
|
|
369
370
|
--button_loading_bg_color: var(--zdt_button_dangerfill_bg);
|
|
371
|
+
--zdt_button_loading_linear_gradient:var(--zdt_button_loading_danger_linear_gradient);
|
|
370
372
|
transform: rotateX(180deg);
|
|
371
373
|
}
|
|
372
374
|
|
|
373
375
|
.primarysuccess {
|
|
374
376
|
--button_success_border_color: var(--zdt_button_default_border);
|
|
375
377
|
}
|
|
378
|
+
|
|
376
379
|
.primaryfilled .successelement {
|
|
377
380
|
--button_success_border_color: var(--zdt_button_tick_primary_border);
|
|
378
381
|
}
|
|
@@ -456,7 +459,6 @@
|
|
|
456
459
|
top: calc(var(--zd_size2) * -1);
|
|
457
460
|
width: var(--zd_size6);
|
|
458
461
|
transform: scaleX(-1) rotate(135deg);
|
|
459
|
-
-ms-transform: scaleX(-1) rotate(135deg);
|
|
460
462
|
-moz-transform: scaleX(-1) rotate(135deg);
|
|
461
463
|
-webkit-transform: scaleX(-1) rotate(135deg);
|
|
462
464
|
transform-origin: center;
|
|
@@ -515,4 +517,6 @@
|
|
|
515
517
|
height: var(--zd_size15);
|
|
516
518
|
width: var(--zd_size6);
|
|
517
519
|
}
|
|
518
|
-
}
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.loader{color:var(--dot_mirror)}
|
package/es/Card/Card.js
CHANGED
|
@@ -278,11 +278,10 @@ Card.defaultProps = {
|
|
|
278
278
|
scrollAt: '10',
|
|
279
279
|
a11y: {},
|
|
280
280
|
isPercentageScroll: false
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
};
|
|
281
|
+
}; // Card.propTypesDescription = {
|
|
282
|
+
// children: ' ',
|
|
283
|
+
// isScrollAttribute: ' '
|
|
284
|
+
// };
|
|
286
285
|
|
|
287
286
|
if (false) {
|
|
288
287
|
Card.docs = {
|
package/es/Card/Card.module.css
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
4
|
.scroll {
|
|
5
|
-
/* background: var(--
|
|
5
|
+
/* background: var(--dot_white);
|
|
6
6
|
position: relative; */
|
|
7
7
|
}
|
|
8
|
-
/*
|
|
8
|
+
/*
|
|
9
9
|
.scroll::after {
|
|
10
|
-
box-shadow: 0 0 6px var(--
|
|
10
|
+
box-shadow: 0 0 6px var(--zd_dark10);
|
|
11
11
|
border-radius: 100px / 10px;
|
|
12
12
|
content: '';
|
|
13
13
|
left: var(--zd_size50);
|
package/es/DropBox/DropBox.js
CHANGED
|
@@ -66,7 +66,7 @@ export class DropBoxElement extends React.Component {
|
|
|
66
66
|
} = this.props;
|
|
67
67
|
let {
|
|
68
68
|
isReducedMotion
|
|
69
|
-
} = this.context;
|
|
69
|
+
} = this.context || {};
|
|
70
70
|
|
|
71
71
|
if (!isAbsolutePositioningNeeded && size === 'default' && !isActive) {
|
|
72
72
|
isAbsolutePositioningNeeded = true;
|
|
@@ -212,7 +212,7 @@ export default class DropBox extends React.Component {
|
|
|
212
212
|
} : {};
|
|
213
213
|
const {
|
|
214
214
|
direction
|
|
215
|
-
} = this.context;
|
|
215
|
+
} = this.context || {};
|
|
216
216
|
const dropBoxEle = /*#__PURE__*/React.createElement(DropBoxElement, _extends({
|
|
217
217
|
isModel: isModel,
|
|
218
218
|
direction: direction
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
|
|
3
|
+
/**** Libraries ****/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import { Container } from '../Layout';
|
|
7
|
+
import CssProvider from '../Provider/CssProvider';
|
|
8
|
+
import style from './ListItem.module.css';
|
|
9
|
+
|
|
10
|
+
const ListContainer = props => {
|
|
11
|
+
const {
|
|
12
|
+
size,
|
|
13
|
+
active,
|
|
14
|
+
highlight,
|
|
15
|
+
autoHover,
|
|
16
|
+
palette,
|
|
17
|
+
title,
|
|
18
|
+
disableTitle,
|
|
19
|
+
needTick,
|
|
20
|
+
isLink,
|
|
21
|
+
href,
|
|
22
|
+
target,
|
|
23
|
+
needBorder,
|
|
24
|
+
isDisabled,
|
|
25
|
+
children,
|
|
26
|
+
dataId,
|
|
27
|
+
a11y,
|
|
28
|
+
customClass,
|
|
29
|
+
customProps,
|
|
30
|
+
onClick,
|
|
31
|
+
onMouseEnter,
|
|
32
|
+
onMouseOver,
|
|
33
|
+
eleRef
|
|
34
|
+
} = props;
|
|
35
|
+
const {
|
|
36
|
+
role,
|
|
37
|
+
ariaSelected
|
|
38
|
+
} = a11y;
|
|
39
|
+
const options = {};
|
|
40
|
+
|
|
41
|
+
if (isLink) {
|
|
42
|
+
options.href = href;
|
|
43
|
+
options.target = `_${target}`;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (active) {
|
|
47
|
+
options['data-selected'] = active;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (!isDisabled && !isLink && active) {
|
|
51
|
+
options.tabindex = '0';
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
55
|
+
role: role,
|
|
56
|
+
"aria-selected": ariaSelected,
|
|
57
|
+
isCover: false,
|
|
58
|
+
align: "vertical",
|
|
59
|
+
alignBox: "row",
|
|
60
|
+
className: `${style.list} ${style[size]} ${style[palette]} ${active ? style[`active${palette}`] : highlight && !isDisabled ? style[`${palette}Hover`] : ''} ${autoHover && !isDisabled ? style[`${palette}Effect`] : ''} ${needTick ? style[`${size}withTick`] : ''} ${isDisabled ? CssProvider('isDisable') : ''} ${needBorder ? active ? style.activewithBorder : style.withBorder : ''} ${customClass}`,
|
|
61
|
+
dataId: dataId,
|
|
62
|
+
onClick: !isDisabled && onClick,
|
|
63
|
+
onMouseEnter: onMouseEnter,
|
|
64
|
+
onMouseOver: onMouseOver,
|
|
65
|
+
eleRef: eleRef,
|
|
66
|
+
tagName: isLink ? 'a' : 'li',
|
|
67
|
+
"data-title": isDisabled ? disableTitle : title
|
|
68
|
+
}, options, customProps), children);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
ListContainer.defaultProps = {
|
|
72
|
+
active: false,
|
|
73
|
+
autoHover: false,
|
|
74
|
+
highlight: false,
|
|
75
|
+
needTick: false,
|
|
76
|
+
palette: 'default',
|
|
77
|
+
size: 'medium',
|
|
78
|
+
isLink: false,
|
|
79
|
+
target: 'blank',
|
|
80
|
+
needBorder: true,
|
|
81
|
+
a11y: {},
|
|
82
|
+
customClass: '',
|
|
83
|
+
customProps: {}
|
|
84
|
+
};
|
|
85
|
+
export default ListContainer;
|
|
86
|
+
ListContainer.propTypes = {
|
|
87
|
+
active: PropTypes.bool,
|
|
88
|
+
autoHover: PropTypes.bool,
|
|
89
|
+
children: PropTypes.node,
|
|
90
|
+
dataId: PropTypes.string,
|
|
91
|
+
disableTitle: PropTypes.string,
|
|
92
|
+
highlight: PropTypes.bool,
|
|
93
|
+
href: PropTypes.string,
|
|
94
|
+
isDisabled: PropTypes.bool,
|
|
95
|
+
isLink: PropTypes.bool,
|
|
96
|
+
needBorder: PropTypes.bool,
|
|
97
|
+
needTick: PropTypes.bool,
|
|
98
|
+
onClick: PropTypes.func,
|
|
99
|
+
onMouseEnter: PropTypes.func,
|
|
100
|
+
onMouseOver: PropTypes.func,
|
|
101
|
+
palette: PropTypes.oneOf(['default', 'primary', 'secondary', 'dark']),
|
|
102
|
+
size: PropTypes.oneOf(['small', 'medium', 'large']),
|
|
103
|
+
target: PropTypes.oneOf(['blank', 'self']),
|
|
104
|
+
title: PropTypes.string,
|
|
105
|
+
a11y: PropTypes.shape({
|
|
106
|
+
role: PropTypes.string,
|
|
107
|
+
ariaSelected: PropTypes.bool
|
|
108
|
+
}),
|
|
109
|
+
customClass: PropTypes.string,
|
|
110
|
+
customProps: PropTypes.object
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
if (false) {
|
|
114
|
+
ListContainer.docs = {
|
|
115
|
+
componentGroup: 'Molecule',
|
|
116
|
+
folderName: 'Style Guide'
|
|
117
|
+
};
|
|
118
|
+
}
|