@zohodesk/components 1.0.0-alpha-225 → 1.0.0-alpha-228
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 +20 -0
- package/assets/Appearance/dark/mode/darkMode.module.css +2 -0
- package/assets/Appearance/default/mode/defaultMode.module.css +2 -0
- package/es/Animation/Animation.js +7 -8
- package/es/Avatar/Avatar.js +10 -10
- package/es/Button/Button.js +15 -16
- package/es/Button/Button.module.css +6 -2
- package/es/Card/Card.js +4 -5
- 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 +6 -3
- package/es/MultiSelect/AdvancedMultiSelect.module.css +8 -8
- package/es/MultiSelect/MultiSelect.js +7 -4
- 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/Popup/Popup.js +1 -1
- package/es/Radio/Radio.js +1 -2
- package/es/Radio/Radio.module.css +2 -2
- 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.module.css +1 -1
- package/es/Select/SelectWithAvatar.js +7 -4
- package/es/Stencils/Stencils.js +5 -6
- 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/lib/Animation/Animation.js +7 -8
- package/lib/Avatar/Avatar.js +10 -10
- package/lib/Button/Button.js +15 -16
- package/lib/Button/Button.module.css +6 -2
- package/lib/Card/Card.js +4 -5
- 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 +6 -3
- package/lib/MultiSelect/AdvancedMultiSelect.module.css +8 -8
- package/lib/MultiSelect/MultiSelect.js +7 -4
- 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/Popup/Popup.js +32 -29
- package/lib/Radio/Radio.js +1 -3
- package/lib/Radio/Radio.module.css +2 -2
- 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.module.css +1 -1
- package/lib/Select/SelectWithAvatar.js +7 -4
- package/lib/Stencils/Stencils.js +5 -6
- 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/package.json +3 -3
- 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/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/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
- package/preprocess/componentAppearanceColors.js +0 -67
- package/preprocess/componentThemeColors.js +0 -123
- package/preprocess/ctaThemeColors.js +0 -101
- package/preprocess/index.js +0 -3
- package/preprocess/json/componentAppearanceVariableJson.js +0 -1346
- package/preprocess/json/componentThemeVariableJson.js +0 -242
- package/preprocess/json/ctaThemeVariableJson.js +0 -203
package/README.md
CHANGED
|
@@ -32,6 +32,26 @@ In this Package, we Provide Some Basic Components to Build Web App
|
|
|
32
32
|
- TextBoxIcon
|
|
33
33
|
- Tooltip
|
|
34
34
|
|
|
35
|
+
# 1.0.0-alpha-228
|
|
36
|
+
|
|
37
|
+
- Button => danger, primary loader color issue solved
|
|
38
|
+
# 1.0.0-alpha-227
|
|
39
|
+
|
|
40
|
+
- isReadOnly and needEffect prop added in Tag Component for read-only case
|
|
41
|
+
- needEffect prop added for the below components: ( This props has been added for read-only case )
|
|
42
|
+
=> Advanced Group Multi Select
|
|
43
|
+
=> Advanced Multi Select
|
|
44
|
+
=> Multi Select
|
|
45
|
+
=> Multi Select With Avatar
|
|
46
|
+
=> Select With Avatar
|
|
47
|
+
- isReadonly prop added for SelectedOption component
|
|
48
|
+
- Read-only class added for TextBoxIcon component
|
|
49
|
+
- Removed click action in tag multi select component for read-only case
|
|
50
|
+
- Changed the cursor default to not-allowed in Radio component for read-only case
|
|
51
|
+
# 1.0.0-alpha-226
|
|
52
|
+
|
|
53
|
+
- ListContainer Implemented in => ListItem,ListItemWithAvatar,ListItemWithIcon,ListItemWithRadio,ListItemWithCheckBox
|
|
54
|
+
|
|
35
55
|
# 1.0.0-alpha-225
|
|
36
56
|
|
|
37
57
|
- Appearance css moved to assets
|
|
@@ -66,6 +66,8 @@
|
|
|
66
66
|
--zdt_button_tick_primary_border: var(--zdt_cta_secondary_text);
|
|
67
67
|
--zdt_button_loading_default_bg: var(--dot_ebonyclay);
|
|
68
68
|
--zdt_button_loading_linear_gradient: linear-gradient(0deg, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%) 0% 100%;
|
|
69
|
+
--zdt_button_loading_primary_linear_gradient: linear-gradient(0deg, rgba(71, 157, 255, 1) 50%, rgba(71, 157, 255, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(71, 157, 255, 0.9) 0%, rgba(71, 157, 255, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(71, 157, 255, 0.6) 0%, rgba(71, 157, 255, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(71, 157, 255, 0.3) 0%, rgba(71, 157, 255, 0) 100%) 0% 100%;
|
|
70
|
+
--zdt_button_loading_danger_linear_gradient: linear-gradient(0deg, rgba(255, 107, 107, 1) 50%, rgba(255, 107, 107, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(255, 107, 107, 0.9) 0%, rgba(255, 107, 107, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(255, 107, 107, 0.6) 0%, rgba(255, 107, 107, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(255, 107, 107, 0.3) 0%, rgba(255, 107, 107, 0) 100%) 0% 100%;
|
|
69
71
|
|
|
70
72
|
/* button group */
|
|
71
73
|
--zdt_buttongroup_default_bg: var(--dot_ebonyclay);
|
|
@@ -66,6 +66,8 @@
|
|
|
66
66
|
--zdt_button_tick_primary_border: var(--zdt_cta_secondary_text);
|
|
67
67
|
--zdt_button_loading_default_bg: var(--dot_white);
|
|
68
68
|
--zdt_button_loading_linear_gradient: linear-gradient(0deg, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%) 0% 100%;
|
|
69
|
+
--zdt_button_loading_primary_linear_gradient: linear-gradient(0deg, rgba(10, 115, 235, 1) 50%, rgba(10, 115, 235, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(10, 115, 235, 0.9) 0%, rgba(10, 115, 235, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(10, 115, 235, 0.6) 0%, rgba(10, 115, 235, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(10, 115, 235, 0.3) 0%, rgba(10, 115, 235, 0) 100%) 0% 100%;
|
|
70
|
+
--zdt_button_loading_danger_linear_gradient: linear-gradient(0deg, rgba(222, 53, 53, 1) 50%, rgba(222, 53, 53, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(222, 53, 53, 0.9) 0%, rgba(222, 53, 53, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(222, 53, 53, 0.6) 0%, rgba(222, 53, 53, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(222, 53, 53, 0.3) 0%, rgba(222, 53, 53, 0) 100%) 0% 100%;
|
|
69
71
|
|
|
70
72
|
/* button group */
|
|
71
73
|
--zdt_buttongroup_default_bg: var(--dot_white);
|
|
@@ -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 = {
|
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
|
@@ -36,7 +36,7 @@ export default class Button extends React.Component {
|
|
|
36
36
|
let paletteLower = palette.toLowerCase();
|
|
37
37
|
let statusLower = status.toLowerCase();
|
|
38
38
|
let classList = needAppearance ? `${style[paletteLower]} ${rounded ? style.rounded : ''} ${!children ? style[size.toLowerCase()] : `${style[`${size}Btn`]}
|
|
39
|
-
${rounded ? style[`${size}Btn${paletteLower}`] : ''}`}` : `${style.default}`;
|
|
39
|
+
${rounded ? style[`${size}Btn${paletteLower}`] : ''}`} ${statusLower !== 'none' ? style.loader : ''}` : `${style.default}`;
|
|
40
40
|
return /*#__PURE__*/React.createElement("button", {
|
|
41
41
|
className: `${customButton} ${classList} ${isBold ? style.bold : ''} `,
|
|
42
42
|
"data-id": disabled ? `${dataId}_disabled` : dataId,
|
|
@@ -45,12 +45,12 @@ export default class Button extends React.Component {
|
|
|
45
45
|
"data-title": title,
|
|
46
46
|
type: "button",
|
|
47
47
|
ref: getRef
|
|
48
|
-
}, children ? children : text,
|
|
48
|
+
}, children ? children : text, statusLower !== 'none' && needAppearance && /*#__PURE__*/React.createElement("div", {
|
|
49
49
|
className: style.overlay
|
|
50
50
|
}, /*#__PURE__*/React.createElement("div", {
|
|
51
|
-
className: `${customStatusSize} ${statusLower === 'loading' ? `${style.loading} ${style[`${size}loading`]}` : style.success}`
|
|
51
|
+
className: `${customStatusSize} ${statusLower === 'loading' ? `${style.loading} ${style[`${size}loading`] ? style[`${size}loading`] : ''}` : style.success}`
|
|
52
52
|
}, /*#__PURE__*/React.createElement("div", {
|
|
53
|
-
className: `${customStatus} ${statusLower === 'loading' ? `${style.loadingelement} ${style[`${paletteLower}element`]}` : `${style.successelement} ${style[`${paletteLower}success`]}`}`
|
|
53
|
+
className: `${customStatus} ${statusLower === 'loading' ? `${style.loadingelement} ${style[`${paletteLower}element`] ? style[`${paletteLower}element`] : ''}` : `${style.successelement} ${style[`${paletteLower}success`] ? style[`${paletteLower}success`] : ''}`}`
|
|
54
54
|
}))));
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -89,18 +89,17 @@ Button.propTypes = {
|
|
|
89
89
|
customStatus: PropTypes.string,
|
|
90
90
|
customStatusSize: PropTypes.string
|
|
91
91
|
})
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
};
|
|
92
|
+
}; // Button.propTypesDescription = {
|
|
93
|
+
// onClick: ' ',
|
|
94
|
+
// text: ' ',
|
|
95
|
+
// palette: ' ',
|
|
96
|
+
// disabled: ' ',
|
|
97
|
+
// size: ' ',
|
|
98
|
+
// rounded: ' ',
|
|
99
|
+
// status: ' ',
|
|
100
|
+
// isBold: ' ',
|
|
101
|
+
// children: ' '
|
|
102
|
+
// };
|
|
104
103
|
|
|
105
104
|
if (false) {
|
|
106
105
|
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/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
|
+
}
|
package/es/ListItem/ListItem.js
CHANGED
|
@@ -3,11 +3,11 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import {
|
|
6
|
+
import { Box } from '../Layout';
|
|
7
|
+
import ListContainer from './ListContainer';
|
|
7
8
|
/**** Components ****/
|
|
8
9
|
|
|
9
10
|
import Icon from '@zohodesk/icons/lib/Icon';
|
|
10
|
-
import CssProvider from '../Provider/CssProvider';
|
|
11
11
|
/**** CSS ****/
|
|
12
12
|
|
|
13
13
|
import style from './ListItem.module.css';
|
|
@@ -72,48 +72,40 @@ export default class ListItem extends React.Component {
|
|
|
72
72
|
customProps
|
|
73
73
|
} = this.props;
|
|
74
74
|
let {
|
|
75
|
-
ListItemProps = {}
|
|
75
|
+
ListItemProps = {},
|
|
76
|
+
ContainerProps = {}
|
|
76
77
|
} = customProps;
|
|
77
78
|
let {
|
|
78
79
|
customListItem = '',
|
|
79
80
|
customTickIcon = ''
|
|
80
81
|
} = customClass;
|
|
81
82
|
let {
|
|
82
|
-
role,
|
|
83
|
-
ariaSelected,
|
|
84
83
|
ariaHidden = true
|
|
85
84
|
} = a11y;
|
|
86
85
|
let tickIconPalette = style[`${palette}Tick`] ? style[`${palette}Tick`] : '';
|
|
87
|
-
let options = {};
|
|
88
|
-
|
|
89
|
-
if (isLink) {
|
|
90
|
-
options.href = href;
|
|
91
|
-
options.target = `_${target}`;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if (active) {
|
|
95
|
-
options['data-selected'] = active;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (!isDisabled && !isLink && active) {
|
|
99
|
-
options.tabindex = '0';
|
|
100
|
-
}
|
|
101
|
-
|
|
102
86
|
let dataIdString = dataId ? dataId : value ? String(value).replace("'", '_') : 'listItem';
|
|
103
|
-
return /*#__PURE__*/React.createElement(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
87
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
88
|
+
a11y: a11y,
|
|
89
|
+
size: size,
|
|
90
|
+
palette: palette,
|
|
91
|
+
highlight: highlight,
|
|
92
|
+
isDisabled: isDisabled,
|
|
93
|
+
active: active,
|
|
94
|
+
autoHover: autoHover,
|
|
95
|
+
needTick: needTick,
|
|
96
|
+
needBorder: needBorder,
|
|
97
|
+
customClass: customListItem,
|
|
110
98
|
dataId: dataIdString,
|
|
111
|
-
|
|
99
|
+
isLink: isLink,
|
|
100
|
+
href: href,
|
|
101
|
+
target: target,
|
|
102
|
+
disableTitle: disableTitle,
|
|
103
|
+
title: title,
|
|
104
|
+
onClick: this.handleClick,
|
|
112
105
|
onMouseEnter: this.handleMouseEnter,
|
|
113
106
|
eleRef: this.getRef,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}, options, ListItemProps), value ? /*#__PURE__*/React.createElement(Box, {
|
|
107
|
+
customProps: ListItemProps
|
|
108
|
+
}, ContainerProps), value ? /*#__PURE__*/React.createElement(Box, {
|
|
117
109
|
shrink: true,
|
|
118
110
|
adjust: true,
|
|
119
111
|
className: style.value
|
|
@@ -3,13 +3,13 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import {
|
|
6
|
+
import { Box } from '../Layout';
|
|
7
|
+
import ListContainer from './ListContainer';
|
|
7
8
|
/**** Components ****/
|
|
8
9
|
|
|
9
10
|
import Avatar from '../Avatar/Avatar';
|
|
10
11
|
import AvatarTeam from '../AvatarTeam/AvatarTeam';
|
|
11
12
|
import Icon from '@zohodesk/icons/lib/Icon';
|
|
12
|
-
import CssProvider from '../Provider/CssProvider';
|
|
13
13
|
/**** CSS ****/
|
|
14
14
|
|
|
15
15
|
import style from './ListItem.module.css';
|
|
@@ -76,44 +76,38 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
76
76
|
customProps
|
|
77
77
|
} = this.props;
|
|
78
78
|
let {
|
|
79
|
-
ListItemProps = {}
|
|
79
|
+
ListItemProps = {},
|
|
80
|
+
ContainerProps = {}
|
|
80
81
|
} = customProps;
|
|
81
82
|
let {
|
|
82
83
|
customListItem = '',
|
|
83
84
|
customAvatar = '',
|
|
84
85
|
customAvatarTeam = ''
|
|
85
86
|
} = customClass;
|
|
86
|
-
let options = {};
|
|
87
87
|
let {
|
|
88
|
-
role,
|
|
89
|
-
ariaSelected,
|
|
90
88
|
ariaHidden = true
|
|
91
89
|
} = a11y;
|
|
92
90
|
let isDarkPalette = palette === 'dark';
|
|
93
|
-
|
|
94
|
-
if (active) {
|
|
95
|
-
options['data-selected'] = active;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (!isDisabled && active) {
|
|
99
|
-
options.tabindex = '0';
|
|
100
|
-
}
|
|
101
|
-
|
|
102
91
|
let dataIdString = value ? value : dataId;
|
|
103
|
-
return /*#__PURE__*/React.createElement(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
92
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
93
|
+
a11y: a11y,
|
|
94
|
+
size: size,
|
|
95
|
+
palette: palette,
|
|
96
|
+
highlight: highlight,
|
|
97
|
+
isDisabled: isDisabled,
|
|
98
|
+
active: active,
|
|
99
|
+
autoHover: autoHover,
|
|
100
|
+
needTick: needTick,
|
|
101
|
+
needBorder: needBorder,
|
|
102
|
+
customClass: customListItem,
|
|
103
|
+
dataId: `${dataIdString}_ListItemWithAvatar`,
|
|
104
|
+
onClick: this.handleClick,
|
|
111
105
|
onMouseEnter: this.handleMouseEnter,
|
|
112
106
|
eleRef: this.getRef,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
},
|
|
107
|
+
disableTitle: disableTitle,
|
|
108
|
+
title: null,
|
|
109
|
+
customProps: ListItemProps
|
|
110
|
+
}, ContainerProps), name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
|
|
117
111
|
className: style.leftAvatar
|
|
118
112
|
}, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
119
113
|
name: name,
|
|
@@ -2,9 +2,9 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
+
import ListContainer from './ListContainer';
|
|
5
6
|
import CheckBox from '../CheckBox/CheckBox';
|
|
6
|
-
import {
|
|
7
|
-
import CssProvider from '../Provider/CssProvider';
|
|
7
|
+
import { Box } from '../Layout';
|
|
8
8
|
import style from './ListItem.module.css';
|
|
9
9
|
export default class ListItemWithCheckBox extends React.Component {
|
|
10
10
|
constructor(props) {
|
|
@@ -57,42 +57,35 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
57
57
|
isDisabled,
|
|
58
58
|
disableTitle,
|
|
59
59
|
a11y,
|
|
60
|
-
customClass
|
|
60
|
+
customClass,
|
|
61
|
+
customProps
|
|
61
62
|
} = this.props;
|
|
62
63
|
let {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
} =
|
|
64
|
+
ListItemProps = {},
|
|
65
|
+
ContainerProps = {}
|
|
66
|
+
} = customProps;
|
|
66
67
|
let {
|
|
67
68
|
customListItem = '',
|
|
68
69
|
customCheckBox = '',
|
|
69
70
|
customLabel = ''
|
|
70
71
|
} = customClass;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
82
|
-
role: role,
|
|
83
|
-
"aria-selected": ariaSelected,
|
|
84
|
-
isCover: false,
|
|
85
|
-
align: "vertical",
|
|
86
|
-
alignBox: "row",
|
|
87
|
-
className: `${style.list} ${style[size]} ${style[palette]} ${active ? style[`active${palette}`] : highlight && !isDisabled ? style[`${palette}Hover`] : ''} ${autoHover && !isDisabled ? style[`${palette}Effect`] : ''}
|
|
88
|
-
${isDisabled ? CssProvider('isDisable') : ''} ${customListItem}`,
|
|
72
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
73
|
+
a11y: a11y,
|
|
74
|
+
size: size,
|
|
75
|
+
palette: palette,
|
|
76
|
+
highlight: highlight,
|
|
77
|
+
isDisabled: isDisabled,
|
|
78
|
+
active: active,
|
|
79
|
+
autoHover: autoHover,
|
|
80
|
+
customClass: customListItem,
|
|
89
81
|
dataId: `${dataId ? dataId : value}_ListItemWithCheckBox`,
|
|
90
|
-
onClick:
|
|
82
|
+
onClick: this.onClick,
|
|
91
83
|
onMouseOver: this.onHover,
|
|
92
84
|
eleRef: this.getRef,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
85
|
+
disableTitle: disableTitle,
|
|
86
|
+
title: null,
|
|
87
|
+
customProps: ListItemProps
|
|
88
|
+
}, ContainerProps), /*#__PURE__*/React.createElement(Box, {
|
|
96
89
|
className: style.iconBox
|
|
97
90
|
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
98
91
|
checked: checked,
|
|
@@ -121,7 +114,8 @@ ListItemWithCheckBox.defaultProps = {
|
|
|
121
114
|
size: 'medium',
|
|
122
115
|
value: 'List',
|
|
123
116
|
a11y: {},
|
|
124
|
-
customClass: {}
|
|
117
|
+
customClass: {},
|
|
118
|
+
customProps: {}
|
|
125
119
|
};
|
|
126
120
|
ListItemWithCheckBox.propTypes = {
|
|
127
121
|
active: PropTypes.bool,
|