@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 {
|
package/lib/ListItem/ListItem.js
CHANGED
|
@@ -150,7 +150,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
150
150
|
autoHover: autoHover,
|
|
151
151
|
needTick: needTick,
|
|
152
152
|
needBorder: needBorder,
|
|
153
|
-
customClass: customListItem,
|
|
153
|
+
customClass: "".concat(_ListItemModule["default"].txtAlignBaseLine, " ").concat(customListItem),
|
|
154
154
|
dataId: dataIdString,
|
|
155
155
|
dataSelectorId: "".concat(dataSelectorId),
|
|
156
156
|
isLink: isLink,
|
|
@@ -171,7 +171,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
171
171
|
adjust: true,
|
|
172
172
|
className: _ListItemModule["default"].children
|
|
173
173
|
}, children) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
174
|
-
className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(tickIconPalette, " ").concat(customTickIcon),
|
|
174
|
+
className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(tickIconPalette, " ").concat(customTickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
|
|
175
175
|
"aria-hidden": ariaHidden,
|
|
176
176
|
dataId: "".concat(dataIdString, "_tickIcon"),
|
|
177
177
|
dataSelectorId: "".concat(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
|
}
|
|
@@ -158,7 +158,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
158
158
|
autoHover: autoHover,
|
|
159
159
|
needTick: needTick,
|
|
160
160
|
needBorder: needBorder,
|
|
161
|
-
customClass: customListItem,
|
|
161
|
+
customClass: "".concat(needMultiLineText ? _ListItemModule["default"].autoHeight : '', " ").concat(customListItem),
|
|
162
162
|
dataId: "".concat(dataIdString, "_ListItemWithAvatar"),
|
|
163
163
|
dataSelectorId: "".concat(dataSelectorId),
|
|
164
164
|
onClick: this.handleClick,
|
|
@@ -168,7 +168,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
168
168
|
title: null,
|
|
169
169
|
customProps: ListItemProps
|
|
170
170
|
}, ContainerProps), name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
171
|
-
className: _ListItemModule["default"].leftAvatar
|
|
171
|
+
className: "".concat(needMultiLineText ? _ListItemModule["default"].alignSelfTop : '', " ").concat(_ListItemModule["default"].leftAvatar)
|
|
172
172
|
}, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"], {
|
|
173
173
|
name: name,
|
|
174
174
|
size: "small",
|
|
@@ -195,7 +195,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
195
195
|
"data-title": isDisabled ? null : title,
|
|
196
196
|
className: needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value
|
|
197
197
|
}, value) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
198
|
-
className: _ListItemModule["default"].tickIcon,
|
|
198
|
+
className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
|
|
199
199
|
"aria-hidden": ariaHidden,
|
|
200
200
|
dataId: "".concat(dataIdString, "_tickIcon"),
|
|
201
201
|
dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
|
|
@@ -147,7 +147,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
147
147
|
autoHover: autoHover,
|
|
148
148
|
needTick: needTick,
|
|
149
149
|
needBorder: needBorder,
|
|
150
|
-
customClass: customClass,
|
|
150
|
+
customClass: "".concat(needMultiLineText && iconClass && !iconName ? _ListItemModule["default"].txtAlignBaseLine : '', " ").concat(customClass),
|
|
151
151
|
dataId: dataIdString,
|
|
152
152
|
dataSelectorId: dataSelectorId,
|
|
153
153
|
isLink: isLink,
|
|
@@ -176,7 +176,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
176
176
|
"data-title": isDisabled ? null : title,
|
|
177
177
|
dataId: "".concat(dataIdString, "_Text")
|
|
178
178
|
}, value), needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
179
|
-
className: _ListItemModule["default"].tickIcon,
|
|
179
|
+
className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
|
|
180
180
|
"aria-hidden": ariaHidden,
|
|
181
181
|
dataId: "".concat(dataIdString, "_tickIcon"),
|
|
182
182
|
dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
|
|
@@ -53,6 +53,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
53
53
|
|
|
54
54
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
55
55
|
|
|
56
|
+
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); }
|
|
57
|
+
|
|
56
58
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
57
59
|
|
|
58
60
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -960,7 +962,9 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
960
962
|
a11y = _this$props8.a11y,
|
|
961
963
|
palette = _this$props8.palette,
|
|
962
964
|
needEffect = _this$props8.needEffect,
|
|
963
|
-
autoComplete = _this$props8.autoComplete
|
|
965
|
+
autoComplete = _this$props8.autoComplete,
|
|
966
|
+
customProps = _this$props8.customProps;
|
|
967
|
+
var suggestionsProps = customProps.suggestionsProps;
|
|
964
968
|
var _i18nKeys = i18nKeys,
|
|
965
969
|
_i18nKeys$clearText = _i18nKeys.clearText,
|
|
966
970
|
clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
|
|
@@ -1116,7 +1120,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1116
1120
|
a11y: {
|
|
1117
1121
|
role: 'heading'
|
|
1118
1122
|
}
|
|
1119
|
-
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
1123
|
+
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
1120
1124
|
suggestions: suggestions,
|
|
1121
1125
|
selectedOptions: selectedOptionIds,
|
|
1122
1126
|
getRef: _this5.suggestionItemRef,
|
|
@@ -1128,7 +1132,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1128
1132
|
a11y: {
|
|
1129
1133
|
role: 'option'
|
|
1130
1134
|
}
|
|
1131
|
-
}));
|
|
1135
|
+
}, suggestionsProps)));
|
|
1132
1136
|
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1133
1137
|
options: revampedGroups,
|
|
1134
1138
|
searchString: searchStr,
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
.container
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
padding: 0;
|
|
18
|
-
composes: dotted from '../../common/common.module.css'
|
|
19
|
-
}
|
|
1
|
+
.container{
|
|
2
|
+
padding: 0 var(--zd_size20) var(--zd_size12) var(--zd_size20) ;
|
|
3
|
+
}
|
|
4
|
+
.header{
|
|
5
|
+
padding-bottom: var(--zd_size4) ;
|
|
6
|
+
}
|
|
7
|
+
.cardHeading{
|
|
8
|
+
font-size: var(--zd_font_size16) ;
|
|
9
|
+
color: var(--zdt_multiselect_res_title_text);
|
|
10
|
+
composes: bold dotted from '../../common/common.module.css'
|
|
11
|
+
}
|
|
12
|
+
.buttonText{
|
|
13
|
+
font-size: var(--zd_font_size15) ;
|
|
14
|
+
composes: dotted from '../../common/common.module.css';
|
|
15
|
+
padding: 0
|
|
16
|
+
}
|
|
@@ -57,6 +57,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
57
57
|
|
|
58
58
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
59
59
|
|
|
60
|
+
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); }
|
|
61
|
+
|
|
60
62
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
61
63
|
|
|
62
64
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -1068,7 +1070,10 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1068
1070
|
boxSize = _this$props15.boxSize,
|
|
1069
1071
|
isLoading = _this$props15.isLoading,
|
|
1070
1072
|
selectAllText = _this$props15.selectAllText,
|
|
1071
|
-
needSelectAll = _this$props15.needSelectAll
|
|
1073
|
+
needSelectAll = _this$props15.needSelectAll,
|
|
1074
|
+
customProps = _this$props15.customProps;
|
|
1075
|
+
var _customProps$suggesti = customProps.suggestionsProps,
|
|
1076
|
+
suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
|
|
1072
1077
|
var _this$state9 = this.state,
|
|
1073
1078
|
selectedOptions = _this$state9.selectedOptions,
|
|
1074
1079
|
searchStr = _this$state9.searchStr,
|
|
@@ -1140,7 +1145,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1140
1145
|
eleRef: this.suggestionContainerRef
|
|
1141
1146
|
}, isSearching ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
1142
1147
|
className: _MultiSelectModule["default"][palette]
|
|
1143
|
-
}, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
1148
|
+
}, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
1144
1149
|
suggestions: suggestions,
|
|
1145
1150
|
getRef: this.suggestionItemRef,
|
|
1146
1151
|
hoverOption: hoverOption,
|
|
@@ -1153,7 +1158,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1153
1158
|
a11y: {
|
|
1154
1159
|
role: 'option'
|
|
1155
1160
|
}
|
|
1156
|
-
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1161
|
+
}, suggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1157
1162
|
isLoading: isFetchingOptions,
|
|
1158
1163
|
options: options,
|
|
1159
1164
|
searchString: searchStr,
|