@zohodesk/components 1.0.0-temp-191 → 1.0.0-temp-192
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/.cli/propValidation_report.html +1 -1
- package/README.md +4 -0
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +29 -2
- package/assets/Appearance/light/mode/Component_LightMode.module.css +29 -2
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +29 -2
- package/es/AppContainer/AppContainer.js +9 -10
- package/es/AppContainer/AppContainer.module.css +2 -2
- package/es/Avatar/Avatar.js +5 -4
- package/es/Avatar/Avatar.module.css +44 -26
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +62 -74
- package/es/Button/Button.js +6 -5
- package/es/Button/css/Button.module.css +156 -100
- package/es/Buttongroup/Buttongroup.module.css +50 -17
- package/es/CheckBox/CheckBox.js +8 -8
- package/es/CheckBox/CheckBox.module.css +35 -60
- package/es/DateTime/DateTime.module.css +85 -57
- package/es/DateTime/DateWidget.module.css +11 -7
- package/es/DateTime/YearView.module.css +34 -21
- package/es/DropBox/DropBox.js +11 -10
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
- package/es/DropBox/css/DropBox.module.css +23 -6
- package/es/DropDown/DropDown.js +1 -2
- package/es/DropDown/DropDown.module.css +2 -2
- package/es/DropDown/DropDownHeading.module.css +15 -15
- package/es/DropDown/DropDownItem.module.css +40 -22
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.module.css +2 -2
- package/es/Heading/Heading.module.css +2 -2
- package/es/Label/Label.module.css +11 -23
- package/es/Label/LabelColors.module.css +1 -7
- package/es/Layout/Layout.module.css +15 -15
- package/es/ListItem/ListContainer.js +5 -6
- package/es/ListItem/ListItem.js +7 -6
- package/es/ListItem/ListItem.module.css +104 -55
- package/es/ListItem/ListItemWithAvatar.js +8 -7
- package/es/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/ListItem/ListItemWithIcon.js +7 -6
- package/es/ListItem/ListItemWithRadio.js +5 -4
- package/es/Modal/Modal.js +5 -4
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +9 -3
- package/es/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
- package/es/MultiSelect/MultiSelect.js +9 -3
- package/es/MultiSelect/MultiSelect.module.css +55 -69
- package/es/MultiSelect/MultiSelectWithAvatar.js +6 -3
- package/es/MultiSelect/SelectedOptions.js +8 -6
- package/es/MultiSelect/SelectedOptions.module.css +11 -5
- package/es/MultiSelect/Suggestions.js +16 -10
- package/es/MultiSelect/props/defaultProps.js +9 -3
- package/es/MultiSelect/props/propTypes.js +7 -3
- package/es/PopOver/PopOver.module.css +2 -2
- package/es/Popup/Popup.js +4 -3
- package/es/Radio/Radio.js +8 -8
- package/es/Radio/Radio.module.css +22 -37
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/es/Ribbon/Ribbon.module.css +143 -64
- package/es/RippleEffect/RippleEffect.module.css +9 -27
- package/es/Select/GroupSelect.js +9 -3
- package/es/Select/Select.js +5 -4
- package/es/Select/Select.module.css +33 -22
- package/es/Select/SelectWithAvatar.js +9 -3
- package/es/Select/SelectWithIcon.js +9 -3
- package/es/Select/props/defaultProps.js +6 -3
- package/es/Select/props/propTypes.js +6 -3
- package/es/Stencils/Stencils.module.css +32 -14
- package/es/Switch/Switch.js +8 -8
- package/es/Switch/Switch.module.css +30 -35
- package/es/Tab/Tab.js +5 -4
- package/es/Tab/Tab.module.css +28 -39
- package/es/Tab/TabContentWrapper.js +5 -4
- package/es/Tab/TabWrapper.js +4 -2
- package/es/Tab/Tabs.js +16 -16
- package/es/Tab/Tabs.module.css +51 -29
- package/es/Tag/Tag.module.css +60 -91
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBox/TextBox.module.css +19 -23
- package/es/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/TextBoxIcon/TextBoxIcon.module.css +15 -8
- package/es/Textarea/Textarea.js +6 -4
- package/es/Textarea/Textarea.module.css +30 -60
- package/es/Tooltip/Tooltip.module.css +12 -13
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/es/common/animation.module.css +227 -29
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/basicReset.module.css +5 -15
- package/es/common/common.module.css +82 -36
- package/es/common/customscroll.module.css +33 -12
- package/es/common/transition.module.css +50 -10
- package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/es/v1/AppContainer/AppContainer.js +9 -10
- package/es/v1/Avatar/Avatar.js +5 -4
- package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
- package/es/v1/Button/Button.js +6 -5
- package/es/v1/CheckBox/CheckBox.js +8 -8
- package/es/v1/DropBox/DropBox.js +11 -10
- package/es/v1/DropDown/DropDown.js +1 -2
- package/es/v1/ListItem/ListContainer.js +5 -6
- package/es/v1/ListItem/ListItem.js +5 -4
- package/es/v1/ListItem/ListItemWithAvatar.js +5 -4
- package/es/v1/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/v1/ListItem/ListItemWithIcon.js +5 -4
- package/es/v1/ListItem/ListItemWithRadio.js +5 -4
- package/es/v1/Modal/Modal.js +5 -4
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -4
- package/es/v1/MultiSelect/SelectedOptions.js +8 -6
- package/es/v1/MultiSelect/Suggestions.js +8 -6
- package/es/v1/MultiSelect/props/defaultProps.js +4 -2
- package/es/v1/Popup/Popup.js +4 -3
- package/es/v1/Radio/Radio.js +8 -8
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/v1/Select/Select.js +5 -4
- package/es/v1/Switch/Switch.js +8 -8
- package/es/v1/Tab/Tab.js +5 -4
- package/es/v1/Tab/TabContentWrapper.js +5 -4
- package/es/v1/Tab/TabWrapper.js +4 -2
- package/es/v1/Tab/Tabs.js +16 -16
- package/es/v1/Tab/v1Tab.module.css +28 -39
- package/es/v1/Tab/v1Tabs.module.css +51 -29
- package/es/v1/TextBox/TextBox.js +5 -5
- package/es/v1/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/v1/Textarea/Textarea.js +6 -4
- package/es/v1/Typography/css/Typography.module.css +39 -33
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/lib/AppContainer/AppContainer.module.css +2 -2
- package/lib/Avatar/Avatar.module.css +44 -26
- package/lib/AvatarTeam/AvatarTeam.module.css +62 -74
- package/lib/Button/css/Button.module.css +156 -100
- package/lib/Buttongroup/Buttongroup.module.css +50 -17
- package/lib/CheckBox/CheckBox.module.css +35 -60
- package/lib/DateTime/DateTime.module.css +85 -57
- package/lib/DateTime/DateWidget.module.css +11 -7
- package/lib/DateTime/YearView.module.css +34 -21
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
- package/lib/DropBox/css/DropBox.module.css +23 -6
- package/lib/DropDown/DropDown.module.css +2 -2
- package/lib/DropDown/DropDownHeading.module.css +15 -15
- package/lib/DropDown/DropDownItem.module.css +40 -22
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.module.css +2 -2
- package/lib/Heading/Heading.module.css +2 -2
- package/lib/Label/Label.module.css +11 -23
- package/lib/Label/LabelColors.module.css +1 -7
- package/lib/Layout/Layout.module.css +15 -15
- package/lib/ListItem/ListItem.js +2 -2
- package/lib/ListItem/ListItem.module.css +104 -55
- package/lib/ListItem/ListItemWithAvatar.js +3 -3
- package/lib/ListItem/ListItemWithIcon.js +2 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
- package/lib/MultiSelect/MultiSelect.js +8 -3
- package/lib/MultiSelect/MultiSelect.module.css +55 -69
- package/lib/MultiSelect/MultiSelectWithAvatar.js +3 -1
- package/lib/MultiSelect/SelectedOptions.module.css +11 -5
- package/lib/MultiSelect/Suggestions.js +8 -4
- package/lib/MultiSelect/props/defaultProps.js +9 -3
- package/lib/MultiSelect/props/propTypes.js +9 -6
- package/lib/PopOver/PopOver.module.css +2 -2
- package/lib/Radio/Radio.module.css +22 -37
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/lib/Ribbon/Ribbon.module.css +143 -64
- package/lib/RippleEffect/RippleEffect.module.css +9 -27
- package/lib/Select/GroupSelect.js +8 -3
- package/lib/Select/Select.module.css +33 -22
- package/lib/Select/SelectWithAvatar.js +8 -3
- package/lib/Select/SelectWithIcon.js +8 -3
- package/lib/Select/props/defaultProps.js +5 -3
- package/lib/Select/props/propTypes.js +6 -3
- package/lib/Stencils/Stencils.module.css +32 -14
- package/lib/Switch/Switch.module.css +30 -35
- package/lib/Tab/Tab.module.css +28 -39
- package/lib/Tab/Tabs.module.css +51 -29
- package/lib/Tag/Tag.module.css +60 -91
- package/lib/TextBox/TextBox.module.css +19 -23
- package/lib/TextBoxIcon/TextBoxIcon.module.css +15 -8
- package/lib/Textarea/Textarea.module.css +30 -60
- package/lib/Tooltip/Tooltip.module.css +12 -13
- package/lib/common/animation.module.css +227 -29
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/basicReset.module.css +5 -15
- package/lib/common/common.module.css +82 -36
- package/lib/common/customscroll.module.css +33 -12
- package/lib/common/transition.module.css +50 -10
- package/lib/semantic/Button/semanticButton.module.css +3 -3
- package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
- package/lib/v1/Tab/v1Tab.module.css +28 -39
- package/lib/v1/Tab/v1Tabs.module.css +51 -29
- package/lib/v1/Typography/css/Typography.module.css +39 -33
- package/package.json +3 -3
- package/result.json +1 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* label default variables */
|
|
3
|
-
--label_font_size:
|
|
4
|
-
--label_text_color: var(--
|
|
3
|
+
--label_font_size: var(--zd_font_size14);
|
|
4
|
+
--label_text_color: var(--zdt_label_default_text);
|
|
5
5
|
--label_font_family: var(--zd_regular);
|
|
6
6
|
--label_cursor: default;
|
|
7
7
|
--label_line_height: 1.286;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
9
|
/* css:lineheight-validation:ignore */
|
|
11
10
|
.label {
|
|
12
11
|
composes: varClass;
|
|
@@ -17,53 +16,42 @@
|
|
|
17
16
|
font-family: var(--label_font_family);
|
|
18
17
|
cursor: var(--label_cursor);
|
|
19
18
|
}
|
|
20
|
-
|
|
21
19
|
.xsmall {
|
|
22
|
-
--label_font_size:
|
|
23
|
-
--label_line_height:
|
|
20
|
+
--label_font_size: var(--zd_font_size12);
|
|
21
|
+
--label_line_height:1.5;
|
|
24
22
|
}
|
|
25
|
-
|
|
26
23
|
.small {
|
|
27
|
-
--label_font_size:
|
|
28
|
-
--label_line_height:
|
|
24
|
+
--label_font_size: var(--zd_font_size13);
|
|
25
|
+
--label_line_height:1.385;
|
|
29
26
|
}
|
|
30
|
-
|
|
31
27
|
.medium {
|
|
32
|
-
--label_font_size:
|
|
33
|
-
--label_line_height:
|
|
28
|
+
--label_font_size: var(--zd_font_size14);
|
|
29
|
+
--label_line_height:1.286;
|
|
34
30
|
}
|
|
35
|
-
|
|
36
31
|
.large {
|
|
37
|
-
--label_font_size:
|
|
38
|
-
--label_line_height:
|
|
32
|
+
--label_font_size: var(--zd_font_size26);
|
|
33
|
+
--label_line_height:0.6923;
|
|
39
34
|
composes: semibold from '../common/common.module.css';
|
|
40
35
|
}
|
|
41
|
-
|
|
42
36
|
.pointer {
|
|
43
37
|
--label_cursor: pointer;
|
|
44
38
|
}
|
|
45
|
-
|
|
46
39
|
.cursor {
|
|
47
40
|
--label_cursor: default;
|
|
48
41
|
}
|
|
49
|
-
|
|
50
42
|
.title {
|
|
51
43
|
display: block;
|
|
52
44
|
}
|
|
53
|
-
|
|
54
45
|
.subtitle {
|
|
55
46
|
display: inline-block;
|
|
56
47
|
}
|
|
57
|
-
|
|
58
48
|
.font_default {
|
|
59
49
|
--label_font_family: var(--zd_regular);
|
|
60
50
|
}
|
|
61
|
-
|
|
62
51
|
.font_primary {
|
|
63
52
|
--label_font_family: var(--zd_semibold);
|
|
64
53
|
composes: ftsmooth from '../common/common.module.css';
|
|
65
54
|
}
|
|
66
|
-
|
|
67
55
|
.dotted {
|
|
68
56
|
composes: dotted from '../common/common.module.css';
|
|
69
|
-
}
|
|
57
|
+
}
|
|
@@ -1,27 +1,21 @@
|
|
|
1
1
|
.default {
|
|
2
|
-
--label_text_color: var(--
|
|
2
|
+
--label_text_color: var(--zdt_label_default_text);
|
|
3
3
|
}
|
|
4
|
-
|
|
5
4
|
.primary {
|
|
6
5
|
--label_text_color: var(--zdt_label_primary_text);
|
|
7
6
|
}
|
|
8
|
-
|
|
9
7
|
.secondary {
|
|
10
8
|
--label_text_color: var(--zdt_label_secondary_text);
|
|
11
9
|
}
|
|
12
|
-
|
|
13
10
|
.danger {
|
|
14
11
|
--label_text_color: var(--zdt_label_danger_text);
|
|
15
12
|
}
|
|
16
|
-
|
|
17
13
|
.mandatory {
|
|
18
14
|
--label_text_color: var(--zdt_label_mandatory_text);
|
|
19
15
|
}
|
|
20
|
-
|
|
21
16
|
.disable {
|
|
22
17
|
--label_text_color: var(--zdt_label_disable_text);
|
|
23
18
|
}
|
|
24
|
-
|
|
25
19
|
.dark {
|
|
26
20
|
--label_text_color: var(--zdt_label_dark_text);
|
|
27
21
|
}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.cover {
|
|
14
|
-
width: 100
|
|
15
|
-
height: 100
|
|
14
|
+
width: 100% ;
|
|
15
|
+
height: 100% ;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/* .flex {
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
-webkit-box-flex: 1;
|
|
68
68
|
-ms-flex-positive: 1;
|
|
69
69
|
flex-grow: 1;
|
|
70
|
-
min-height: 0;
|
|
71
|
-
min-width: 0;
|
|
70
|
+
min-height: 0 ;
|
|
71
|
+
min-width: 0 ;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.shrinkOff {
|
|
@@ -83,18 +83,18 @@
|
|
|
83
83
|
-moz-flex-shrink: 1;
|
|
84
84
|
-webkit-flex-shrink: 1;
|
|
85
85
|
-ms-flex-shrink: 1;
|
|
86
|
-
min-width: 0;
|
|
86
|
+
min-width: 0 ;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.basis {
|
|
90
|
-
flex-basis: 0
|
|
90
|
+
flex-basis: 0% ;
|
|
91
91
|
-webkit-flex-basis: 0%;
|
|
92
92
|
-moz-flex-basis: 0%;
|
|
93
93
|
-ms-flex-basis: 0%;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.basisAuto {
|
|
97
|
-
flex-basis: auto;
|
|
97
|
+
flex-basis: auto ;
|
|
98
98
|
-webkit-flex-basis: auto;
|
|
99
99
|
-moz-flex-basis: auto;
|
|
100
100
|
-ms-flex-basis: auto;
|
|
@@ -146,8 +146,8 @@
|
|
|
146
146
|
|
|
147
147
|
.col-3 {
|
|
148
148
|
-ms-flex-preferred-size: 25%;
|
|
149
|
-
flex-basis: 25
|
|
150
|
-
max-width: 25
|
|
149
|
+
flex-basis: 25% ;
|
|
150
|
+
max-width: 25% ;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.col-4 {
|
|
@@ -164,8 +164,8 @@
|
|
|
164
164
|
|
|
165
165
|
.col-6 {
|
|
166
166
|
-ms-flex-preferred-size: 50%;
|
|
167
|
-
flex-basis: 50
|
|
168
|
-
max-width: 50
|
|
167
|
+
flex-basis: 50% ;
|
|
168
|
+
max-width: 50% ;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.col-7 {
|
|
@@ -182,8 +182,8 @@
|
|
|
182
182
|
|
|
183
183
|
.col-9 {
|
|
184
184
|
-ms-flex-preferred-size: 75%;
|
|
185
|
-
flex-basis: 75
|
|
186
|
-
max-width: 75
|
|
185
|
+
flex-basis: 75% ;
|
|
186
|
+
max-width: 75% ;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.col-10 {
|
|
@@ -200,8 +200,8 @@
|
|
|
200
200
|
|
|
201
201
|
.col-12 {
|
|
202
202
|
-ms-flex-preferred-size: 100%;
|
|
203
|
-
flex-basis: 100
|
|
204
|
-
max-width: 100
|
|
203
|
+
flex-basis: 100% ;
|
|
204
|
+
max-width: 100% ;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
.hCenter {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { useCallback } from 'react';
|
|
3
5
|
import { Container } from '../Layout';
|
|
@@ -71,7 +73,7 @@ const ListContainer = props => {
|
|
|
71
73
|
options.tabindex = '0';
|
|
72
74
|
}
|
|
73
75
|
|
|
74
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
76
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
75
77
|
role: role,
|
|
76
78
|
"data-a11y-inset-focus": insetFocus,
|
|
77
79
|
"aria-selected": ariaSelected,
|
|
@@ -87,11 +89,8 @@ const ListContainer = props => {
|
|
|
87
89
|
onMouseOver: onMouseOver,
|
|
88
90
|
eleRef: eleRef,
|
|
89
91
|
tagName: isLink ? 'a' : 'li',
|
|
90
|
-
"data-title": isDisabled ? disableTitle : title
|
|
91
|
-
|
|
92
|
-
...customProps,
|
|
93
|
-
...a11yAttributes
|
|
94
|
-
}, children);
|
|
92
|
+
"data-title": isDisabled ? disableTitle : title
|
|
93
|
+
}, options, customProps, a11yAttributes), children);
|
|
95
94
|
};
|
|
96
95
|
|
|
97
96
|
ListContainer.defaultProps = ListContainerDefaultProps;
|
package/es/ListItem/ListItem.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { Box } from '../Layout';
|
|
@@ -90,7 +92,7 @@ export default class ListItem extends React.Component {
|
|
|
90
92
|
} = listA11y;
|
|
91
93
|
let tickIconPalette = style[`${palette}Tick`] ? style[`${palette}Tick`] : '';
|
|
92
94
|
let dataIdString = dataId ? dataId : value ? String(value).replace("'", '_') : 'listItem';
|
|
93
|
-
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
95
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
94
96
|
a11y: listA11y,
|
|
95
97
|
size: size,
|
|
96
98
|
palette: palette,
|
|
@@ -100,7 +102,7 @@ export default class ListItem extends React.Component {
|
|
|
100
102
|
autoHover: autoHover,
|
|
101
103
|
needTick: needTick,
|
|
102
104
|
needBorder: needBorder,
|
|
103
|
-
customClass: customListItem
|
|
105
|
+
customClass: `${style.txtAlignBaseLine} ${customListItem}`,
|
|
104
106
|
dataId: dataIdString,
|
|
105
107
|
dataSelectorId: `${dataSelectorId}`,
|
|
106
108
|
isLink: isLink,
|
|
@@ -111,9 +113,8 @@ export default class ListItem extends React.Component {
|
|
|
111
113
|
onClick: this.handleClick,
|
|
112
114
|
onMouseEnter: this.handleMouseEnter,
|
|
113
115
|
eleRef: this.getRef,
|
|
114
|
-
customProps: ListItemProps
|
|
115
|
-
|
|
116
|
-
}, value ? /*#__PURE__*/React.createElement(Box, {
|
|
116
|
+
customProps: ListItemProps
|
|
117
|
+
}, ContainerProps), value ? /*#__PURE__*/React.createElement(Box, {
|
|
117
118
|
shrink: true,
|
|
118
119
|
adjust: true,
|
|
119
120
|
className: needMultiLineText ? style.multiLineValue : style.value
|
|
@@ -122,7 +123,7 @@ export default class ListItem extends React.Component {
|
|
|
122
123
|
adjust: true,
|
|
123
124
|
className: style.children
|
|
124
125
|
}, children) : null, needTick && active ? /*#__PURE__*/React.createElement(Box, {
|
|
125
|
-
className: `${style.tickIcon} ${tickIconPalette} ${customTickIcon}`,
|
|
126
|
+
className: `${style.tickIcon} ${tickIconPalette} ${customTickIcon} ${needMultiLineText ? style.tickIconCenter : ''}`,
|
|
126
127
|
"aria-hidden": ariaHidden,
|
|
127
128
|
dataId: `${dataIdString}_tickIcon`,
|
|
128
129
|
dataSelectorId: `${dataSelectorId}_tickIcon`
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* listitem default variables */
|
|
3
|
-
--listitem_text_color: var(--
|
|
4
|
-
--listitem_padding:
|
|
3
|
+
--listitem_text_color: var(--zdt_listitem_default_text);
|
|
4
|
+
--listitem_padding: var(--zd_size9) var(--zd_size20);
|
|
5
5
|
--listitem_border_width: 0;
|
|
6
6
|
--listitem_border_color: var(--zdt_listitem_default_border);
|
|
7
|
-
--listitem_avatar_margin: 0 15px 0 0
|
|
8
|
-
/*rtl: 0 0 0 15px*/
|
|
9
|
-
;
|
|
10
7
|
--listitem_bg_color: var(--zdt_listitem_default_bg);
|
|
11
8
|
--listitem_active_bg_color: var(--zdt_listitem_primary_bg);
|
|
12
9
|
--listitem_height: auto;
|
|
@@ -17,6 +14,10 @@
|
|
|
17
14
|
|
|
18
15
|
/* listitem tick icon default variables */
|
|
19
16
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
17
|
+
}[dir=ltr] .varClass {
|
|
18
|
+
--listitem_avatar_margin: 0 var(--zd_size15) 0 0;
|
|
19
|
+
}[dir=rtl] .varClass {
|
|
20
|
+
--listitem_avatar_margin: 0 var(--zd_size15) 0 0;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.list {
|
|
@@ -24,49 +25,58 @@
|
|
|
24
25
|
position: relative;
|
|
25
26
|
list-style: none;
|
|
26
27
|
color: var(--listitem_text_color);
|
|
27
|
-
font-size:
|
|
28
|
+
font-size: var(--zd_font_size13) ;
|
|
29
|
+
height: var(--listitem_height);
|
|
30
|
+
min-height: var(--listitem_min_height);
|
|
31
|
+
text-decoration: none;
|
|
28
32
|
padding: var(--listitem_padding);
|
|
29
33
|
border-width: var(--listitem_border_width);
|
|
30
34
|
border-style: solid;
|
|
31
35
|
border-color: var(--listitem_border_color);
|
|
32
|
-
height: var(--listitem_height);
|
|
33
|
-
min-height: var(--listitem_min_height);
|
|
34
36
|
cursor: pointer;
|
|
35
|
-
text-decoration: none;
|
|
36
37
|
}
|
|
37
38
|
|
|
38
|
-
.list,
|
|
39
|
-
.default,
|
|
40
|
-
.secondary {
|
|
39
|
+
.list, .default, .secondary {
|
|
41
40
|
background-color: var(--listitem_bg_color);
|
|
42
41
|
}
|
|
43
42
|
|
|
44
|
-
.withBorder {
|
|
43
|
+
[dir=ltr] .withBorder {
|
|
45
44
|
--listitem_border_width: 0 0 0 1px
|
|
46
45
|
/*rtl: 0 1px 0 0*/
|
|
47
46
|
;
|
|
48
47
|
}
|
|
49
48
|
|
|
49
|
+
[dir=rtl] .withBorder {
|
|
50
|
+
--listitem_border_width: 0 0 0 1px ;
|
|
51
|
+
}
|
|
52
|
+
|
|
50
53
|
.active {
|
|
51
54
|
--listitem_border_color: var(--zdt_listitem_active_border);
|
|
52
55
|
}
|
|
53
56
|
|
|
54
|
-
.small {
|
|
55
|
-
--listitem_padding:
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
[dir=ltr] .small {
|
|
58
|
+
--listitem_padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[dir=rtl] .small {
|
|
62
|
+
--listitem_padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5);
|
|
58
63
|
}
|
|
59
64
|
|
|
60
65
|
.medium {
|
|
61
|
-
--listitem_padding:
|
|
62
|
-
--listitem_min_height:
|
|
66
|
+
--listitem_padding: var(--zd_size7) var(--zd_size20);
|
|
67
|
+
--listitem_min_height: var(--zd_size35);
|
|
63
68
|
}
|
|
64
69
|
|
|
65
70
|
.large {
|
|
66
|
-
--
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
--listitem_height: var(--zd_size48);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[dir=ltr] .large {
|
|
75
|
+
--listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
[dir=rtl] .large {
|
|
79
|
+
--listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25);
|
|
70
80
|
}
|
|
71
81
|
|
|
72
82
|
.value,
|
|
@@ -74,43 +84,55 @@
|
|
|
74
84
|
composes: dotted from '../common/common.module.css';
|
|
75
85
|
}
|
|
76
86
|
|
|
77
|
-
.value
|
|
78
|
-
.multiLineValue {
|
|
87
|
+
.value {
|
|
79
88
|
line-height: 1.5385;
|
|
80
89
|
}
|
|
81
90
|
|
|
82
91
|
.multiLineValue {
|
|
92
|
+
line-height: 1.3076;
|
|
83
93
|
word-break: break-word;
|
|
84
|
-
|
|
94
|
+
-webkit-line-clamp: 5;
|
|
95
|
+
composes: clamp from '../common/common.module.css';
|
|
85
96
|
}
|
|
86
97
|
|
|
87
98
|
.iconBox {
|
|
88
|
-
width:
|
|
89
|
-
margin-right: 10px;
|
|
99
|
+
width: var(--zd_size20) ;
|
|
90
100
|
text-align: center;
|
|
91
101
|
}
|
|
92
102
|
|
|
103
|
+
[dir=ltr] .iconBox {
|
|
104
|
+
margin-right: var(--zd_size10) ;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
[dir=rtl] .iconBox {
|
|
108
|
+
margin-left: var(--zd_size10) ;
|
|
109
|
+
}
|
|
110
|
+
|
|
93
111
|
.iconBox,
|
|
94
112
|
.leftAvatar {
|
|
95
|
-
font-size: 0;
|
|
113
|
+
font-size: 0 ;
|
|
96
114
|
}
|
|
97
115
|
|
|
98
116
|
.leftAvatar {
|
|
99
117
|
margin: var(--listitem_avatar_margin);
|
|
100
118
|
}
|
|
101
119
|
|
|
102
|
-
.defaultHover,
|
|
103
|
-
.primaryHover,
|
|
104
|
-
.secondaryHover,
|
|
105
|
-
.darkHover {
|
|
120
|
+
.defaultHover, .primaryHover, .secondaryHover, .darkHover {
|
|
106
121
|
background-color: var(--listitem_highlight_bg_color);
|
|
107
122
|
}
|
|
108
123
|
|
|
109
124
|
.activewithBorder {
|
|
125
|
+
--listitem_border_color: var(--zdt_listitem_active_border);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[dir=ltr] .activewithBorder {
|
|
110
129
|
--listitem_border_width: 0 0 0 1px
|
|
111
130
|
/*rtl: 0 1px 0 0*/
|
|
112
131
|
;
|
|
113
|
-
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[dir=rtl] .activewithBorder {
|
|
135
|
+
--listitem_border_width: 0 0 0 1px ;
|
|
114
136
|
}
|
|
115
137
|
|
|
116
138
|
.defaultHover,
|
|
@@ -149,10 +171,7 @@
|
|
|
149
171
|
--listitem_highlight_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
150
172
|
}
|
|
151
173
|
|
|
152
|
-
.activedefault,
|
|
153
|
-
.activeprimary,
|
|
154
|
-
.activesecondary,
|
|
155
|
-
.activedark {
|
|
174
|
+
.activedefault, .activeprimary, .activesecondary, .activedark {
|
|
156
175
|
background-color: var(--listitem_active_bg_color);
|
|
157
176
|
}
|
|
158
177
|
|
|
@@ -182,7 +201,14 @@
|
|
|
182
201
|
.darkTick {
|
|
183
202
|
position: absolute;
|
|
184
203
|
color: var(--listitem_tickicon_color);
|
|
185
|
-
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
[dir=ltr] .tickIcon, [dir=ltr] .defaultTick, [dir=ltr] .darkTick {
|
|
207
|
+
right: var(--zd_size20) ;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
[dir=rtl] .tickIcon, [dir=rtl] .defaultTick, [dir=rtl] .darkTick {
|
|
211
|
+
left: var(--zd_size20) ;
|
|
186
212
|
}
|
|
187
213
|
|
|
188
214
|
.defaultTick {
|
|
@@ -197,27 +223,50 @@
|
|
|
197
223
|
display: block;
|
|
198
224
|
}
|
|
199
225
|
|
|
200
|
-
.smallwithTick {
|
|
201
|
-
--listitem_padding:
|
|
202
|
-
/*rtl: 7px 5px 7px 39px*/
|
|
203
|
-
;
|
|
226
|
+
[dir=ltr] .smallwithTick {
|
|
227
|
+
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size5);
|
|
204
228
|
}
|
|
205
229
|
|
|
206
|
-
.
|
|
207
|
-
--listitem_padding:
|
|
208
|
-
/*rtl: 7px 20px 7px 39px*/
|
|
209
|
-
;
|
|
230
|
+
[dir=rtl] .smallwithTick {
|
|
231
|
+
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size5);
|
|
210
232
|
}
|
|
211
233
|
|
|
212
|
-
.
|
|
213
|
-
--listitem_padding:
|
|
214
|
-
|
|
215
|
-
|
|
234
|
+
[dir=ltr] .mediumwithTick {
|
|
235
|
+
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size20);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
[dir=rtl] .mediumwithTick {
|
|
239
|
+
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size20);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
[dir=ltr] .largewithTick {
|
|
243
|
+
--listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10) var(--zd_size25);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
[dir=rtl] .largewithTick {
|
|
247
|
+
--listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10) var(--zd_size25);
|
|
216
248
|
}
|
|
217
249
|
|
|
218
250
|
.responsiveHeight {
|
|
219
|
-
--listitem_min_height:
|
|
220
|
-
|
|
221
|
-
padding-
|
|
222
|
-
|
|
251
|
+
--listitem_min_height: var(--zd_size45);
|
|
252
|
+
font-size: var(--zd_font_size15) ;
|
|
253
|
+
padding-top: var(--zd_size10) ;
|
|
254
|
+
padding-bottom: var(--zd_size10) ;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.autoHeight {
|
|
258
|
+
height: auto ;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.tickIconCenter {
|
|
262
|
+
top: 50% ;
|
|
263
|
+
transform: translateY(-50%);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.txtAlignBaseLine {
|
|
267
|
+
align-items: baseline;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.alignSelfTop {
|
|
271
|
+
align-self: start;
|
|
223
272
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { Box } from '../Layout';
|
|
@@ -95,7 +97,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
95
97
|
} = listA11y;
|
|
96
98
|
let isDarkPalette = palette === 'dark';
|
|
97
99
|
let dataIdString = value ? value : dataId;
|
|
98
|
-
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
100
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
99
101
|
a11y: listA11y,
|
|
100
102
|
size: size,
|
|
101
103
|
palette: palette,
|
|
@@ -105,7 +107,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
105
107
|
autoHover: autoHover,
|
|
106
108
|
needTick: needTick,
|
|
107
109
|
needBorder: needBorder,
|
|
108
|
-
customClass: customListItem
|
|
110
|
+
customClass: `${needMultiLineText ? style.autoHeight : ''} ${customListItem}`,
|
|
109
111
|
dataId: `${dataIdString}_ListItemWithAvatar`,
|
|
110
112
|
dataSelectorId: `${dataSelectorId}`,
|
|
111
113
|
onClick: this.handleClick,
|
|
@@ -113,10 +115,9 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
113
115
|
eleRef: this.getRef,
|
|
114
116
|
disableTitle: disableTitle,
|
|
115
117
|
title: null,
|
|
116
|
-
customProps: ListItemProps
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
className: style.leftAvatar
|
|
118
|
+
customProps: ListItemProps
|
|
119
|
+
}, ContainerProps), name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
|
|
120
|
+
className: `${needMultiLineText ? style.alignSelfTop : ''} ${style.leftAvatar}`
|
|
120
121
|
}, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
121
122
|
name: name,
|
|
122
123
|
size: "small",
|
|
@@ -143,7 +144,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
143
144
|
"data-title": isDisabled ? null : title,
|
|
144
145
|
className: needMultiLineText ? style.multiLineValue : style.value
|
|
145
146
|
}, value) : null, needTick && active ? /*#__PURE__*/React.createElement(Box, {
|
|
146
|
-
className: style.tickIcon
|
|
147
|
+
className: `${style.tickIcon} ${needMultiLineText ? style.tickIconCenter : ''}`,
|
|
147
148
|
"aria-hidden": ariaHidden,
|
|
148
149
|
dataId: `${dataIdString}_tickIcon`,
|
|
149
150
|
dataSelectorId: `${dataSelectorId}_tickIcon`
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import ListContainer from './ListContainer';
|
|
3
5
|
import { ListItemWithCheckBoxDefaultProps } from './props/defaultProps';
|
|
@@ -74,7 +76,7 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
74
76
|
customCheckBox = '',
|
|
75
77
|
customLabel = ''
|
|
76
78
|
} = customClass;
|
|
77
|
-
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
79
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
78
80
|
a11y: listA11y,
|
|
79
81
|
size: size,
|
|
80
82
|
palette: palette,
|
|
@@ -90,9 +92,8 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
90
92
|
eleRef: this.getRef,
|
|
91
93
|
disableTitle: disableTitle,
|
|
92
94
|
title: null,
|
|
93
|
-
customProps: ListItemProps
|
|
94
|
-
|
|
95
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
95
|
+
customProps: ListItemProps
|
|
96
|
+
}, ContainerProps), /*#__PURE__*/React.createElement(Box, {
|
|
96
97
|
className: style.iconBox
|
|
97
98
|
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
98
99
|
checked: checked,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { Box } from '../Layout';
|
|
@@ -85,7 +87,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
85
87
|
ariaHidden
|
|
86
88
|
} = listA11y;
|
|
87
89
|
let dataIdString = dataId ? `${dataId.replace("'", '_')}` : value.toLowerCase().replace("'", '_');
|
|
88
|
-
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
90
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
89
91
|
a11y: listA11y,
|
|
90
92
|
size: size,
|
|
91
93
|
palette: palette,
|
|
@@ -95,7 +97,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
95
97
|
autoHover: autoHover,
|
|
96
98
|
needTick: needTick,
|
|
97
99
|
needBorder: needBorder,
|
|
98
|
-
customClass: customClass
|
|
100
|
+
customClass: `${needMultiLineText && iconClass && !iconName ? style.txtAlignBaseLine : ''} ${customClass}`,
|
|
99
101
|
dataId: dataIdString,
|
|
100
102
|
dataSelectorId: dataSelectorId,
|
|
101
103
|
isLink: isLink,
|
|
@@ -106,9 +108,8 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
106
108
|
eleRef: this.getRef,
|
|
107
109
|
disableTitle: disableTitle,
|
|
108
110
|
title: null,
|
|
109
|
-
customProps: ListItemProps
|
|
110
|
-
|
|
111
|
-
}, iconName && /*#__PURE__*/React.createElement(Box, {
|
|
111
|
+
customProps: ListItemProps
|
|
112
|
+
}, ContainerProps), iconName && /*#__PURE__*/React.createElement(Box, {
|
|
112
113
|
"aria-hidden": true,
|
|
113
114
|
className: style.iconBox,
|
|
114
115
|
dataId: dataId ? `${dataId}_Icon` : `${value.toLowerCase().replace("'", '_')}_Icon`
|
|
@@ -125,7 +126,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
125
126
|
"data-title": isDisabled ? null : title,
|
|
126
127
|
dataId: `${dataIdString}_Text`
|
|
127
128
|
}, value), needTick && active ? /*#__PURE__*/React.createElement(Box, {
|
|
128
|
-
className: style.tickIcon
|
|
129
|
+
className: `${style.tickIcon} ${needMultiLineText ? style.tickIconCenter : ''}`,
|
|
129
130
|
"aria-hidden": ariaHidden,
|
|
130
131
|
dataId: `${dataIdString}_tickIcon`,
|
|
131
132
|
dataSelectorId: `${dataSelectorId}_tickIcon`
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import Radio from '../Radio/Radio';
|
|
3
5
|
import { Box } from '../Layout';
|
|
@@ -75,7 +77,7 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
75
77
|
customRadio = '',
|
|
76
78
|
customRadioWrap = ''
|
|
77
79
|
} = customClass;
|
|
78
|
-
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
80
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
79
81
|
a11y: listA11y,
|
|
80
82
|
size: size,
|
|
81
83
|
palette: palette,
|
|
@@ -91,9 +93,8 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
91
93
|
eleRef: this.getRef,
|
|
92
94
|
disableTitle: disableTitle,
|
|
93
95
|
title: null,
|
|
94
|
-
customProps: ListItemProps
|
|
95
|
-
|
|
96
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
96
|
+
customProps: ListItemProps
|
|
97
|
+
}, ContainerProps), /*#__PURE__*/React.createElement(Box, {
|
|
97
98
|
className: style.iconBox
|
|
98
99
|
}, /*#__PURE__*/React.createElement(Radio, {
|
|
99
100
|
checked: checked,
|