@zohodesk/components 1.0.0-temp-190.2 → 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/PropLessFiles.html +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +16 -5
- package/es/Avatar/Avatar.module.css +0 -12
- package/es/AvatarTeam/AvatarTeam.module.css +0 -4
- package/es/Button/css/Button.module.css +0 -6
- package/es/Buttongroup/Buttongroup.module.css +0 -2
- package/es/CheckBox/CheckBox.js +10 -0
- package/es/CheckBox/CheckBox.module.css +0 -2
- package/es/CheckBox/props/propTypes.js +1 -0
- package/es/DateTime/DateTime.module.css +0 -1
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -7
- package/es/DropBox/css/DropBox.module.css +0 -1
- package/es/DropDown/DropDownHeading.module.css +0 -6
- package/es/DropDown/DropDownItem.module.css +0 -3
- package/es/Label/Label.module.css +0 -1
- package/es/ListItem/ListItem.js +2 -2
- package/es/ListItem/ListItem.module.css +85 -39
- package/es/ListItem/ListItemWithAvatar.js +3 -3
- package/es/ListItem/ListItemWithIcon.js +2 -2
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +9 -3
- package/es/MultiSelect/MultiSelect.js +9 -3
- package/es/MultiSelect/MultiSelectWithAvatar.js +3 -1
- package/es/MultiSelect/Suggestions.js +8 -4
- package/es/MultiSelect/props/defaultProps.js +9 -3
- package/es/MultiSelect/props/propTypes.js +7 -3
- package/es/PopOver/PopOver.module.css +3 -3
- package/es/Radio/Radio.js +26 -7
- package/es/Radio/Radio.module.css +3 -1
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
- package/es/Radio/props/defaultProps.js +1 -0
- package/es/Radio/props/propTypes.js +7 -0
- package/es/Ribbon/Ribbon.module.css +0 -4
- package/es/Select/GroupSelect.js +9 -3
- 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/Switch/Switch.module.css +0 -2
- package/es/Tag/Tag.module.css +0 -6
- package/es/TextBox/TextBox.module.css +1 -21
- package/es/TextBoxIcon/TextBoxIcon.module.css +0 -5
- package/es/Textarea/Textarea.module.css +0 -6
- package/es/common/customscroll.module.css +27 -3
- package/es/v1/Animation/Animation.js +1 -1
- package/es/v1/Card/Card.js +1 -1
- package/es/v1/CheckBox/CheckBox.js +7 -1
- package/es/v1/CheckBox/props/propTypes.js +1 -0
- package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
- package/es/v1/ListItem/ListContainer.js +1 -1
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +1 -1
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +1 -1
- package/es/v1/MultiSelect/props/defaultProps.js +5 -3
- package/es/v1/Radio/Radio.js +22 -7
- package/es/v1/Radio/props/defaultProps.js +1 -0
- package/es/v1/Radio/props/propTypes.js +7 -0
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
- package/es/v1/Select/GroupSelect.js +1 -1
- package/es/v1/Select/Select.js +1 -1
- package/es/v1/Select/SelectWithAvatar.js +5 -7
- package/es/v1/Select/SelectWithIcon.js +1 -1
- package/es/v1/Select/props/defaultProps.js +1 -1
- package/es/v1/Select/props/propTypes.js +1 -3
- package/es/v1/Tab/Tabs.js +2 -2
- package/es/v1/Tooltip/Tooltip.js +1 -1
- package/lib/Avatar/Avatar.module.css +0 -12
- package/lib/AvatarTeam/AvatarTeam.module.css +0 -4
- package/lib/Button/css/Button.module.css +0 -6
- package/lib/Buttongroup/Buttongroup.module.css +0 -2
- package/lib/CheckBox/CheckBox.js +34 -24
- package/lib/CheckBox/CheckBox.module.css +0 -2
- package/lib/CheckBox/props/propTypes.js +1 -0
- package/lib/DateTime/DateTime.module.css +0 -1
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -7
- package/lib/DropBox/css/DropBox.module.css +0 -1
- package/lib/DropDown/DropDownHeading.module.css +0 -6
- package/lib/DropDown/DropDownItem.module.css +0 -3
- package/lib/Label/Label.module.css +0 -1
- package/lib/ListItem/ListItem.js +2 -2
- package/lib/ListItem/ListItem.module.css +85 -39
- package/lib/ListItem/ListItemWithAvatar.js +3 -3
- package/lib/ListItem/ListItemWithIcon.js +2 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
- package/lib/MultiSelect/MultiSelect.js +8 -3
- package/lib/MultiSelect/MultiSelectWithAvatar.js +3 -1
- 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 +3 -3
- package/lib/Radio/Radio.js +45 -26
- package/lib/Radio/Radio.module.css +3 -1
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
- package/lib/Radio/props/defaultProps.js +1 -0
- package/lib/Radio/props/propTypes.js +7 -0
- package/lib/Ribbon/Ribbon.module.css +0 -4
- package/lib/Select/GroupSelect.js +8 -3
- 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/Switch/Switch.module.css +0 -2
- package/lib/Tag/Tag.module.css +0 -6
- package/lib/TextBox/TextBox.module.css +1 -21
- package/lib/TextBoxIcon/TextBoxIcon.module.css +0 -5
- package/lib/Textarea/Textarea.module.css +0 -6
- package/lib/common/customscroll.module.css +27 -3
- package/lib/v1/Animation/Animation.js +1 -1
- package/lib/v1/Card/Card.js +1 -1
- package/lib/v1/CheckBox/CheckBox.js +7 -1
- package/lib/v1/CheckBox/props/propTypes.js +1 -0
- package/lib/v1/DropBox/utils/isMobilePopover.js +1 -1
- package/lib/v1/ListItem/ListContainer.js +1 -1
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +1 -1
- package/lib/v1/MultiSelect/props/defaultProps.js +5 -3
- package/lib/v1/Radio/Radio.js +22 -7
- package/lib/v1/Radio/props/defaultProps.js +1 -0
- package/lib/v1/Radio/props/propTypes.js +7 -0
- package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
- package/lib/v1/Select/GroupSelect.js +1 -1
- package/lib/v1/Select/Select.js +1 -1
- package/lib/v1/Select/SelectWithAvatar.js +4 -6
- package/lib/v1/Select/SelectWithIcon.js +1 -1
- package/lib/v1/Select/props/defaultProps.js +1 -1
- package/lib/v1/Select/props/propTypes.js +1 -3
- package/lib/v1/Tab/Tabs.js +2 -2
- package/lib/v1/Tooltip/Tooltip.js +1 -1
- package/package.json +10 -10
- package/result.json +1 -1
- package/es/v1/Provider/AvatarSize.js +0 -13
- package/es/v1/Provider/Config.js +0 -18
- package/es/v1/Provider/CssProvider.js +0 -16
- package/es/v1/Provider/IdProvider.js +0 -66
- package/es/v1/Provider/LibraryContext.js +0 -37
- package/es/v1/Provider/LibraryContextInit.js +0 -3
- package/es/v1/Provider/NumberGenerator/NumberGenerator.js +0 -136
- package/es/v1/Provider/ZindexProvider.js +0 -57
- package/es/v1/Provider/index.js +0 -4
- package/es/v1/Responsive/CustomResponsive.js +0 -195
- package/es/v1/Responsive/RefWrapper.js +0 -39
- package/es/v1/Responsive/ResizeComponent.js +0 -197
- package/es/v1/Responsive/ResizeObserver.js +0 -140
- package/es/v1/Responsive/Responsive.js +0 -194
- package/es/v1/Responsive/index.js +0 -9
- package/es/v1/Responsive/props/defaultProps.js +0 -13
- package/es/v1/Responsive/props/propTypes.js +0 -25
- package/lib/v1/Provider/AvatarSize.js +0 -24
- package/lib/v1/Provider/Config.js +0 -27
- package/lib/v1/Provider/CssProvider.js +0 -27
- package/lib/v1/Provider/IdProvider.js +0 -79
- package/lib/v1/Provider/LibraryContext.js +0 -76
- package/lib/v1/Provider/LibraryContextInit.js +0 -15
- package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +0 -174
- package/lib/v1/Provider/ZindexProvider.js +0 -69
- package/lib/v1/Provider/index.js +0 -81
- package/lib/v1/Responsive/CustomResponsive.js +0 -242
- package/lib/v1/Responsive/RefWrapper.js +0 -57
- package/lib/v1/Responsive/ResizeComponent.js +0 -268
- package/lib/v1/Responsive/ResizeObserver.js +0 -168
- package/lib/v1/Responsive/Responsive.js +0 -274
- package/lib/v1/Responsive/index.js +0 -55
- package/lib/v1/Responsive/props/defaultProps.js +0 -23
- package/lib/v1/Responsive/props/propTypes.js +0 -39
|
@@ -18,31 +18,19 @@
|
|
|
18
18
|
composes: dInflex alignVertical alignHorizontal from '../common/common.module.css';
|
|
19
19
|
vertical-align: middle;
|
|
20
20
|
font-size: var(--avatar_font_size);
|
|
21
|
-
/* css:theme-validation:ignore */
|
|
22
21
|
color: var(--avatar_text_color);
|
|
23
22
|
border-width: var(--avatar_border_width);
|
|
24
23
|
border-style: var(--avatar_border_style);
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
.border {
|
|
28
|
-
/* css:theme-validation:ignore */
|
|
29
27
|
border-color: var(--avatar_border_color);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
|
-
.borderOnHover:hover,
|
|
33
|
-
.borderOnActive {
|
|
34
|
-
/* css:theme-validation:ignore */
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
.borderOnHover:hover, .borderOnActive {
|
|
38
31
|
border-color: var(--avatar_border_hoverColor);
|
|
39
32
|
}
|
|
40
33
|
|
|
41
|
-
.avatar,
|
|
42
|
-
.primary {
|
|
43
|
-
/* css:theme-validation:ignore */
|
|
44
|
-
}
|
|
45
|
-
|
|
46
34
|
.avatar, .primary {
|
|
47
35
|
background-color: var(--avatar_bg_color);
|
|
48
36
|
}
|
|
@@ -25,13 +25,10 @@
|
|
|
25
25
|
composes: varClass;
|
|
26
26
|
composes: posab from '../common/common.module.css';
|
|
27
27
|
top: var(--avatarteam_top_top);
|
|
28
|
-
/* css:theme-validation:ignore */
|
|
29
|
-
/* css:theme-validation:ignore */
|
|
30
28
|
width: var(--avatarteam_width);
|
|
31
29
|
height: var(--avatarteam_height);
|
|
32
30
|
outline-width: var(--avatarteam_outline_width);
|
|
33
31
|
outline-style: var(--avatarteam_outline_style);
|
|
34
|
-
/* css:theme-validation:ignore */
|
|
35
32
|
outline-color: var(--avatarteam_outline_color);
|
|
36
33
|
border-width: var(--avatarteam_border_width);
|
|
37
34
|
border-style: var(--avatarteam_border_style);
|
|
@@ -76,7 +73,6 @@
|
|
|
76
73
|
top: var(--avatarteam_bottom_top);
|
|
77
74
|
outline-width: var(--avatarteam_outline_width);
|
|
78
75
|
outline-style: var(--avatarteam_outline_style);
|
|
79
|
-
/* css:theme-validation:ignore */
|
|
80
76
|
outline-color: var( --avatarteam_outline_color);
|
|
81
77
|
}
|
|
82
78
|
.team:after, .team:before {
|
|
@@ -48,13 +48,10 @@
|
|
|
48
48
|
composes: dotted from '../../common/common.module.css';
|
|
49
49
|
position: relative;
|
|
50
50
|
font-size: var(--button_font_size);
|
|
51
|
-
/* css:theme-validation:ignore */
|
|
52
51
|
color: var(--button_text_color);
|
|
53
52
|
font-family: var(--button_font_family);
|
|
54
53
|
text-transform: var(--button_text_transform);
|
|
55
|
-
/* css:theme-validation:ignore */
|
|
56
54
|
min-width: var(--button_min_width);
|
|
57
|
-
/* css:theme-validation:ignore */
|
|
58
55
|
height: var(--button_height);
|
|
59
56
|
background-color: var(--button_bg_color);
|
|
60
57
|
border-radius: var(--button_border_radius);
|
|
@@ -298,7 +295,6 @@
|
|
|
298
295
|
.loadingelement:after {
|
|
299
296
|
content: '';
|
|
300
297
|
position: absolute;
|
|
301
|
-
/* css:theme-validation:ignore */
|
|
302
298
|
}
|
|
303
299
|
|
|
304
300
|
.loadingelement:before, .loadingelement:after {
|
|
@@ -472,7 +468,6 @@
|
|
|
472
468
|
transform-origin: center;
|
|
473
469
|
border-width: 2px 2px 0 0;
|
|
474
470
|
border-style: solid;
|
|
475
|
-
/* css:theme-validation:ignore */
|
|
476
471
|
border-color: var(--button_success_border_color);
|
|
477
472
|
animation: tick var(--zd_no_transition3) ease 0s forwards;
|
|
478
473
|
}
|
|
@@ -529,6 +524,5 @@
|
|
|
529
524
|
}
|
|
530
525
|
|
|
531
526
|
.loader{
|
|
532
|
-
/* css:theme-validation:ignore */
|
|
533
527
|
color:var(--dot_mirror)
|
|
534
528
|
}
|
|
@@ -11,8 +11,6 @@
|
|
|
11
11
|
.buttonGroup {
|
|
12
12
|
composes: varClass;
|
|
13
13
|
composes: cboth from '../common/common.module.css';
|
|
14
|
-
/* css:theme-validation:ignore */
|
|
15
|
-
/* css:theme-validation:ignore */
|
|
16
14
|
background-color: var(--buttongroup_bg_color);
|
|
17
15
|
box-shadow: var(--buttongroup_box_shadow);
|
|
18
16
|
padding: var(--buttongroup_padding);
|
package/lib/CheckBox/CheckBox.js
CHANGED
|
@@ -57,6 +57,7 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
57
57
|
|
|
58
58
|
_this = _super.call(this, props);
|
|
59
59
|
_this.onChange = _this.onChange.bind(_assertThisInitialized(_this));
|
|
60
|
+
_this.handleGetContainerRef = _this.handleGetContainerRef.bind(_assertThisInitialized(_this));
|
|
60
61
|
return _this;
|
|
61
62
|
}
|
|
62
63
|
|
|
@@ -68,33 +69,41 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
68
69
|
checked = _this$props.checked;
|
|
69
70
|
onChange && onChange(!checked, e);
|
|
70
71
|
}
|
|
72
|
+
}, {
|
|
73
|
+
key: "handleGetContainerRef",
|
|
74
|
+
value: function handleGetContainerRef(ele) {
|
|
75
|
+
var _this$props2 = this.props,
|
|
76
|
+
getContainerRef = _this$props2.getContainerRef,
|
|
77
|
+
id = _this$props2.id;
|
|
78
|
+
getContainerRef && getContainerRef(ele, id);
|
|
79
|
+
}
|
|
71
80
|
}, {
|
|
72
81
|
key: "render",
|
|
73
82
|
value: function render() {
|
|
74
|
-
var _this$
|
|
75
|
-
id = _this$
|
|
76
|
-
checked = _this$
|
|
77
|
-
disabled = _this$
|
|
78
|
-
isReadOnly = _this$
|
|
79
|
-
disabledTitle = _this$
|
|
80
|
-
title = _this$
|
|
81
|
-
palette = _this$
|
|
82
|
-
text = _this$
|
|
83
|
-
size = _this$
|
|
84
|
-
labelPalette = _this$
|
|
85
|
-
labelSize = _this$
|
|
86
|
-
isFilled = _this$
|
|
87
|
-
isClipped = _this$
|
|
88
|
-
getRef = _this$
|
|
89
|
-
variant = _this$
|
|
90
|
-
active = _this$
|
|
91
|
-
dataId = _this$
|
|
92
|
-
name = _this$
|
|
93
|
-
activeStyle = _this$
|
|
94
|
-
a11y = _this$
|
|
95
|
-
customClass = _this$
|
|
96
|
-
customProps = _this$
|
|
97
|
-
dataSelectorId = _this$
|
|
83
|
+
var _this$props3 = this.props,
|
|
84
|
+
id = _this$props3.id,
|
|
85
|
+
checked = _this$props3.checked,
|
|
86
|
+
disabled = _this$props3.disabled,
|
|
87
|
+
isReadOnly = _this$props3.isReadOnly,
|
|
88
|
+
disabledTitle = _this$props3.disabledTitle,
|
|
89
|
+
title = _this$props3.title,
|
|
90
|
+
palette = _this$props3.palette,
|
|
91
|
+
text = _this$props3.text,
|
|
92
|
+
size = _this$props3.size,
|
|
93
|
+
labelPalette = _this$props3.labelPalette,
|
|
94
|
+
labelSize = _this$props3.labelSize,
|
|
95
|
+
isFilled = _this$props3.isFilled,
|
|
96
|
+
isClipped = _this$props3.isClipped,
|
|
97
|
+
getRef = _this$props3.getRef,
|
|
98
|
+
variant = _this$props3.variant,
|
|
99
|
+
active = _this$props3.active,
|
|
100
|
+
dataId = _this$props3.dataId,
|
|
101
|
+
name = _this$props3.name,
|
|
102
|
+
activeStyle = _this$props3.activeStyle,
|
|
103
|
+
a11y = _this$props3.a11y,
|
|
104
|
+
customClass = _this$props3.customClass,
|
|
105
|
+
customProps = _this$props3.customProps,
|
|
106
|
+
dataSelectorId = _this$props3.dataSelectorId;
|
|
98
107
|
var _customProps$CheckBox = customProps.CheckBoxProps,
|
|
99
108
|
CheckBoxProps = _customProps$CheckBox === void 0 ? {} : _customProps$CheckBox,
|
|
100
109
|
_customProps$LabelPro = customProps.LabelProps,
|
|
@@ -127,6 +136,7 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
127
136
|
onClick: isReadOnly || disabled ? null : this.onChange,
|
|
128
137
|
tabIndex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
|
|
129
138
|
"aria-checked": ariaChecked,
|
|
139
|
+
eleRef: this.handleGetContainerRef,
|
|
130
140
|
role: role,
|
|
131
141
|
"aria-label": ariaLabel,
|
|
132
142
|
"aria-labelledby": ariaLabelledby,
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
}
|
|
35
35
|
.boxContainer {
|
|
36
36
|
composes: offSelection from '../common/common.module.css';
|
|
37
|
-
/* css:theme-validation:ignore */
|
|
38
37
|
border-radius: 2px;
|
|
39
38
|
background-color: var(--checkbox_bg_color);
|
|
40
39
|
}
|
|
@@ -121,7 +120,6 @@
|
|
|
121
120
|
|
|
122
121
|
.checkedprimaryLabel,
|
|
123
122
|
.checkeddangerLabel {
|
|
124
|
-
/* css:theme-validation:ignore */
|
|
125
123
|
color: var(--checkbox_checked_active_color);
|
|
126
124
|
}
|
|
127
125
|
.activeprimaryLabel:hover
|
|
@@ -18,6 +18,7 @@ var propTypes = {
|
|
|
18
18
|
disabled: _propTypes["default"].bool,
|
|
19
19
|
disabledTitle: _propTypes["default"].string,
|
|
20
20
|
getRef: _propTypes["default"].func,
|
|
21
|
+
getContainerRef: _propTypes["default"].func,
|
|
21
22
|
id: _propTypes["default"].string,
|
|
22
23
|
isFilled: _propTypes["default"].bool,
|
|
23
24
|
isClipped: _propTypes["default"].bool,
|
|
@@ -18,11 +18,6 @@
|
|
|
18
18
|
box-shadow: var(--dropbox_box_shadow);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.defaultPalette,
|
|
22
|
-
.darkPalette {
|
|
23
|
-
/* css:theme-validation:ignore */
|
|
24
|
-
}
|
|
25
|
-
|
|
26
21
|
.defaultPalette, .darkPalette {
|
|
27
22
|
background-color: var(--dropbox_bg_color);
|
|
28
23
|
}
|
|
@@ -212,7 +207,6 @@
|
|
|
212
207
|
height: var(--zd_size10) ;
|
|
213
208
|
width: var(--zd_size10) ;
|
|
214
209
|
box-shadow: 1px -1px 2px 0 var(--dropbox_arrow_box_shadow_color);
|
|
215
|
-
/* css:theme-validation:ignore */
|
|
216
210
|
background-color: var(--dropbox_bg_color);
|
|
217
211
|
-webkit-transform: rotateZ(-45deg);
|
|
218
212
|
transform: rotateZ(-45deg);
|
|
@@ -422,7 +416,6 @@
|
|
|
422
416
|
.closeBar {
|
|
423
417
|
/* Variable:Ignore */
|
|
424
418
|
height: 6px;
|
|
425
|
-
/* css:theme-validation:ignore */
|
|
426
419
|
width: 20% ;
|
|
427
420
|
border-radius: 5px;
|
|
428
421
|
background-color: var(--dropbox_mob_close_bg_color);
|
|
@@ -18,9 +18,7 @@
|
|
|
18
18
|
font-size: var(--zd_font_size11) ;
|
|
19
19
|
letter-spacing: 0.6px;
|
|
20
20
|
text-transform: var(--dropdownheading_text_transform);
|
|
21
|
-
/* css:theme-validation:ignore */
|
|
22
21
|
color: var(--dropdownheading_text_color);
|
|
23
|
-
/* css:theme-validation:ignore */
|
|
24
22
|
padding: var(--dropdownheading_padding);
|
|
25
23
|
background-color: var(--dropdownheading_bg_color);
|
|
26
24
|
}
|
|
@@ -35,10 +33,6 @@
|
|
|
35
33
|
.light {
|
|
36
34
|
composes: default;
|
|
37
35
|
}
|
|
38
|
-
.light::after,
|
|
39
|
-
.dark::after {
|
|
40
|
-
/* css:theme-validation:ignore */
|
|
41
|
-
}
|
|
42
36
|
.light::after, .dark::after {
|
|
43
37
|
background-color: var(--dropdownheading_underline_bg_color);
|
|
44
38
|
}
|
|
@@ -20,8 +20,6 @@
|
|
|
20
20
|
position: relative;
|
|
21
21
|
color: var(--zdt_dropdown_default_text);
|
|
22
22
|
font-size: var(--zd_font_size13) ;
|
|
23
|
-
/* css:theme-validation:ignore */
|
|
24
|
-
/* css:theme-validation:ignore */
|
|
25
23
|
padding: var(--dropdownitem-padding);
|
|
26
24
|
border-style: solid;
|
|
27
25
|
border-color: var(--dropdownitem-border-color);
|
|
@@ -76,7 +74,6 @@
|
|
|
76
74
|
opacity: 0;
|
|
77
75
|
visibility: hidden;
|
|
78
76
|
width: var(--dropdownitem-user-width);
|
|
79
|
-
/* css:theme-validation:ignore */
|
|
80
77
|
border-width: var(--dropdownitem-user-border-width);
|
|
81
78
|
border-style: var(--dropdownitem-user-border-style);
|
|
82
79
|
border-color: var(--dropdownitem-user-border-color);
|
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")
|
|
@@ -17,16 +17,15 @@
|
|
|
17
17
|
}[dir=ltr] .varClass {
|
|
18
18
|
--listitem_avatar_margin: 0 var(--zd_size15) 0 0;
|
|
19
19
|
}[dir=rtl] .varClass {
|
|
20
|
-
--listitem_avatar_margin: 0
|
|
20
|
+
--listitem_avatar_margin: 0 var(--zd_size15) 0 0;
|
|
21
21
|
}
|
|
22
|
+
|
|
22
23
|
.list {
|
|
23
24
|
composes: varClass;
|
|
24
25
|
position: relative;
|
|
25
26
|
list-style: none;
|
|
26
|
-
/* css:theme-validation:ignore */
|
|
27
27
|
color: var(--listitem_text_color);
|
|
28
28
|
font-size: var(--zd_font_size13) ;
|
|
29
|
-
/* css:theme-validation:ignore */
|
|
30
29
|
height: var(--listitem_height);
|
|
31
30
|
min-height: var(--listitem_min_height);
|
|
32
31
|
text-decoration: none;
|
|
@@ -36,142 +35,163 @@
|
|
|
36
35
|
border-color: var(--listitem_border_color);
|
|
37
36
|
cursor: pointer;
|
|
38
37
|
}
|
|
39
|
-
|
|
40
|
-
.default,
|
|
41
|
-
.secondary {
|
|
42
|
-
/* css:theme-validation:ignore */
|
|
43
|
-
}
|
|
38
|
+
|
|
44
39
|
.list, .default, .secondary {
|
|
45
40
|
background-color: var(--listitem_bg_color);
|
|
46
41
|
}
|
|
42
|
+
|
|
47
43
|
[dir=ltr] .withBorder {
|
|
48
|
-
--listitem_border_width: 0 0 0 1px
|
|
44
|
+
--listitem_border_width: 0 0 0 1px
|
|
45
|
+
/*rtl: 0 1px 0 0*/
|
|
46
|
+
;
|
|
49
47
|
}
|
|
48
|
+
|
|
50
49
|
[dir=rtl] .withBorder {
|
|
51
|
-
--listitem_border_width: 0
|
|
50
|
+
--listitem_border_width: 0 0 0 1px ;
|
|
52
51
|
}
|
|
52
|
+
|
|
53
53
|
.active {
|
|
54
54
|
--listitem_border_color: var(--zdt_listitem_active_border);
|
|
55
55
|
}
|
|
56
|
+
|
|
56
57
|
[dir=ltr] .small {
|
|
57
58
|
--listitem_padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5);
|
|
58
59
|
}
|
|
60
|
+
|
|
59
61
|
[dir=rtl] .small {
|
|
60
|
-
--listitem_padding: var(--zd_size7) var(--
|
|
62
|
+
--listitem_padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5);
|
|
61
63
|
}
|
|
64
|
+
|
|
62
65
|
.medium {
|
|
63
66
|
--listitem_padding: var(--zd_size7) var(--zd_size20);
|
|
64
67
|
--listitem_min_height: var(--zd_size35);
|
|
65
68
|
}
|
|
69
|
+
|
|
66
70
|
.large {
|
|
67
71
|
--listitem_height: var(--zd_size48);
|
|
68
72
|
}
|
|
73
|
+
|
|
69
74
|
[dir=ltr] .large {
|
|
70
75
|
--listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25);
|
|
71
76
|
}
|
|
77
|
+
|
|
72
78
|
[dir=rtl] .large {
|
|
73
|
-
--listitem_padding: var(--zd_size10) var(--
|
|
79
|
+
--listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25);
|
|
74
80
|
}
|
|
81
|
+
|
|
75
82
|
.value,
|
|
76
83
|
.children {
|
|
77
84
|
composes: dotted from '../common/common.module.css';
|
|
78
85
|
}
|
|
79
|
-
|
|
86
|
+
|
|
87
|
+
.value {
|
|
80
88
|
line-height: 1.5385;
|
|
81
89
|
}
|
|
82
|
-
|
|
90
|
+
|
|
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
|
}
|
|
97
|
+
|
|
86
98
|
.iconBox {
|
|
87
99
|
width: var(--zd_size20) ;
|
|
88
100
|
text-align: center;
|
|
89
101
|
}
|
|
102
|
+
|
|
90
103
|
[dir=ltr] .iconBox {
|
|
91
104
|
margin-right: var(--zd_size10) ;
|
|
92
105
|
}
|
|
106
|
+
|
|
93
107
|
[dir=rtl] .iconBox {
|
|
94
108
|
margin-left: var(--zd_size10) ;
|
|
95
109
|
}
|
|
110
|
+
|
|
96
111
|
.iconBox,
|
|
97
112
|
.leftAvatar {
|
|
98
113
|
font-size: 0 ;
|
|
99
114
|
}
|
|
115
|
+
|
|
100
116
|
.leftAvatar {
|
|
101
117
|
margin: var(--listitem_avatar_margin);
|
|
102
118
|
}
|
|
103
119
|
|
|
104
|
-
.defaultHover,
|
|
105
|
-
.primaryHover,
|
|
106
|
-
.secondaryHover,
|
|
107
|
-
.darkHover {
|
|
108
|
-
/* css:theme-validation:ignore */
|
|
109
|
-
}
|
|
110
|
-
|
|
111
120
|
.defaultHover, .primaryHover, .secondaryHover, .darkHover {
|
|
112
121
|
background-color: var(--listitem_highlight_bg_color);
|
|
113
122
|
}
|
|
123
|
+
|
|
114
124
|
.activewithBorder {
|
|
115
125
|
--listitem_border_color: var(--zdt_listitem_active_border);
|
|
116
126
|
}
|
|
127
|
+
|
|
117
128
|
[dir=ltr] .activewithBorder {
|
|
118
|
-
--listitem_border_width: 0 0 0 1px
|
|
129
|
+
--listitem_border_width: 0 0 0 1px
|
|
130
|
+
/*rtl: 0 1px 0 0*/
|
|
131
|
+
;
|
|
119
132
|
}
|
|
133
|
+
|
|
120
134
|
[dir=rtl] .activewithBorder {
|
|
121
|
-
--listitem_border_width: 0
|
|
135
|
+
--listitem_border_width: 0 0 0 1px ;
|
|
122
136
|
}
|
|
123
137
|
|
|
124
138
|
.defaultHover,
|
|
125
139
|
.defaultEffect:hover
|
|
140
|
+
|
|
126
141
|
/* .defaultEffect:focus */
|
|
127
|
-
{
|
|
142
|
+
{
|
|
128
143
|
--listitem_bg_color: var(--zdt_listitem_highlight_bg);
|
|
129
144
|
}
|
|
145
|
+
|
|
130
146
|
.primaryHover,
|
|
131
147
|
.primaryEffect:hover
|
|
148
|
+
|
|
132
149
|
/* .primaryEffect:focus */
|
|
133
|
-
|
|
150
|
+
{
|
|
134
151
|
--listitem_bg_color: var(--zdt_listitem_primary_bg);
|
|
135
152
|
--listitem_highlight_bg_color: var(--zdt_listitem_primary_bg);
|
|
136
153
|
}
|
|
154
|
+
|
|
137
155
|
.secondaryHover,
|
|
138
156
|
.secondaryEffect:hover
|
|
157
|
+
|
|
139
158
|
/* .secondaryEffect:focus */
|
|
140
|
-
{
|
|
159
|
+
{
|
|
141
160
|
--listitem_bg_color: var(--zdt_listitem_secondary_bg);
|
|
142
161
|
--listitem_highlight_bg_color: var(--zdt_listitem_secondary_bg);
|
|
143
162
|
--listitem_text_color: var(--zdt_listitem_secondary_text);
|
|
144
163
|
}
|
|
164
|
+
|
|
145
165
|
.darkHover,
|
|
146
166
|
.darkEffect:hover
|
|
167
|
+
|
|
147
168
|
/* .darkEffect:focus */
|
|
148
|
-
|
|
169
|
+
{
|
|
149
170
|
--listitem_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
150
171
|
--listitem_highlight_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
151
172
|
}
|
|
152
|
-
|
|
153
|
-
.activeprimary,
|
|
154
|
-
.activesecondary,
|
|
155
|
-
.activedark {
|
|
156
|
-
/* css:theme-validation:ignore */
|
|
157
|
-
}
|
|
173
|
+
|
|
158
174
|
.activedefault, .activeprimary, .activesecondary, .activedark {
|
|
159
175
|
background-color: var(--listitem_active_bg_color);
|
|
160
176
|
}
|
|
177
|
+
|
|
161
178
|
.activedefault,
|
|
162
179
|
.activedefault:hover,
|
|
163
180
|
.activeprimary,
|
|
164
181
|
.activeprimary:hover {
|
|
165
182
|
--listitem_active_bg_color: var(--zdt_listitem_primary_bg);
|
|
166
183
|
}
|
|
184
|
+
|
|
167
185
|
.activesecondary {
|
|
168
186
|
--listitem_active_bg_color: var(--zdt_listitem_secondary_bg);
|
|
169
187
|
--listitem_text_color: var(--zdt_listitem_secondary_text);
|
|
170
188
|
}
|
|
189
|
+
|
|
171
190
|
.dark {
|
|
172
191
|
--listitem_bg_color: var(--zdt_listitem_dark_bg);
|
|
173
192
|
--listitem_text_color: var(--zdt_listitem_dark_text);
|
|
174
193
|
}
|
|
194
|
+
|
|
175
195
|
.activedark {
|
|
176
196
|
--listitem_active_bg_color: var(--zdt_listitem_dark_active_bg);
|
|
177
197
|
}
|
|
@@ -180,7 +200,6 @@
|
|
|
180
200
|
.defaultTick,
|
|
181
201
|
.darkTick {
|
|
182
202
|
position: absolute;
|
|
183
|
-
/* css:theme-validation:ignore */
|
|
184
203
|
color: var(--listitem_tickicon_color);
|
|
185
204
|
}
|
|
186
205
|
|
|
@@ -191,36 +210,63 @@
|
|
|
191
210
|
[dir=rtl] .tickIcon, [dir=rtl] .defaultTick, [dir=rtl] .darkTick {
|
|
192
211
|
left: var(--zd_size20) ;
|
|
193
212
|
}
|
|
213
|
+
|
|
194
214
|
.defaultTick {
|
|
195
215
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
196
216
|
}
|
|
217
|
+
|
|
197
218
|
.darkTick {
|
|
198
219
|
--listitem_tickicon_color: var(--zdt_listitem_dark_tickicon);
|
|
199
220
|
}
|
|
200
|
-
|
|
221
|
+
|
|
222
|
+
.defaultTick>i {
|
|
201
223
|
display: block;
|
|
202
224
|
}
|
|
225
|
+
|
|
203
226
|
[dir=ltr] .smallwithTick {
|
|
204
227
|
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size5);
|
|
205
228
|
}
|
|
229
|
+
|
|
206
230
|
[dir=rtl] .smallwithTick {
|
|
207
|
-
--listitem_padding: var(--zd_size7) var(--
|
|
231
|
+
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size5);
|
|
208
232
|
}
|
|
233
|
+
|
|
209
234
|
[dir=ltr] .mediumwithTick {
|
|
210
235
|
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size20);
|
|
211
236
|
}
|
|
237
|
+
|
|
212
238
|
[dir=rtl] .mediumwithTick {
|
|
213
|
-
--listitem_padding: var(--zd_size7) var(--
|
|
239
|
+
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size20);
|
|
214
240
|
}
|
|
241
|
+
|
|
215
242
|
[dir=ltr] .largewithTick {
|
|
216
243
|
--listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10) var(--zd_size25);
|
|
217
244
|
}
|
|
245
|
+
|
|
218
246
|
[dir=rtl] .largewithTick {
|
|
219
|
-
--listitem_padding: var(--zd_size10) var(--
|
|
247
|
+
--listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10) var(--zd_size25);
|
|
220
248
|
}
|
|
249
|
+
|
|
221
250
|
.responsiveHeight {
|
|
222
251
|
--listitem_min_height: var(--zd_size45);
|
|
223
252
|
font-size: var(--zd_font_size15) ;
|
|
224
253
|
padding-top: var(--zd_size10) ;
|
|
225
254
|
padding-bottom: var(--zd_size10) ;
|
|
226
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;
|
|
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")
|