@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
package/README.md
CHANGED
|
@@ -32,17 +32,28 @@ In this Package, we Provide Some Basic Components to Build Web App
|
|
|
32
32
|
- TextBoxIcon
|
|
33
33
|
- Tooltip
|
|
34
34
|
|
|
35
|
+
# 1.2.30
|
|
36
|
+
|
|
37
|
+
- **MultiSelect** - needResponsive default Prop Setted as true as before.
|
|
38
|
+
|
|
39
|
+
# 1.2.29
|
|
40
|
+
|
|
41
|
+
- Common providers update for v1 components
|
|
42
|
+
|
|
43
|
+
# 1.2.28
|
|
44
|
+
|
|
45
|
+
- **CheckBox** - getContainerRef prop supported
|
|
46
|
+
- **Radio** - children, customProps, getRef props supported. tabIndex option supported inside a11y prop
|
|
47
|
+
|
|
35
48
|
# 1.2.27
|
|
36
49
|
|
|
37
50
|
- **DateWidget** - The issue with the YearView Open State Reset on Blur Event in DidMount has been resolved
|
|
38
51
|
|
|
39
|
-
|
|
40
52
|
# 1.2.26
|
|
41
53
|
|
|
42
|
-
- **
|
|
43
|
-
- **
|
|
44
|
-
- **
|
|
45
|
-
|
|
54
|
+
- **MultiSelect, MultiSelectWithAvatar** - Mobile Header Render Issue in Mobile Responsive Fixed.
|
|
55
|
+
- **isMobilePopover** - Function added in Dropbox.
|
|
56
|
+
- **Tag** - closeTitle not working issue fixed ( because value sends in wrong prop key data-title)
|
|
46
57
|
|
|
47
58
|
# 1.2.25
|
|
48
59
|
|
|
@@ -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/es/CheckBox/CheckBox.js
CHANGED
|
@@ -11,6 +11,7 @@ export default class CheckBox extends React.Component {
|
|
|
11
11
|
constructor(props) {
|
|
12
12
|
super(props);
|
|
13
13
|
this.onChange = this.onChange.bind(this);
|
|
14
|
+
this.handleGetContainerRef = this.handleGetContainerRef.bind(this);
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
onChange(e) {
|
|
@@ -21,6 +22,14 @@ export default class CheckBox extends React.Component {
|
|
|
21
22
|
onChange && onChange(!checked, e);
|
|
22
23
|
}
|
|
23
24
|
|
|
25
|
+
handleGetContainerRef(ele) {
|
|
26
|
+
let {
|
|
27
|
+
getContainerRef,
|
|
28
|
+
id
|
|
29
|
+
} = this.props;
|
|
30
|
+
getContainerRef && getContainerRef(ele, id);
|
|
31
|
+
}
|
|
32
|
+
|
|
24
33
|
render() {
|
|
25
34
|
let {
|
|
26
35
|
id,
|
|
@@ -78,6 +87,7 @@ export default class CheckBox extends React.Component {
|
|
|
78
87
|
onClick: isReadOnly || disabled ? null : this.onChange,
|
|
79
88
|
tabIndex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
|
|
80
89
|
"aria-checked": ariaChecked,
|
|
90
|
+
eleRef: this.handleGetContainerRef,
|
|
81
91
|
role: role,
|
|
82
92
|
"aria-label": ariaLabel,
|
|
83
93
|
"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,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/es/ListItem/ListItem.js
CHANGED
|
@@ -102,7 +102,7 @@ export default class ListItem extends React.Component {
|
|
|
102
102
|
autoHover: autoHover,
|
|
103
103
|
needTick: needTick,
|
|
104
104
|
needBorder: needBorder,
|
|
105
|
-
customClass: customListItem
|
|
105
|
+
customClass: `${style.txtAlignBaseLine} ${customListItem}`,
|
|
106
106
|
dataId: dataIdString,
|
|
107
107
|
dataSelectorId: `${dataSelectorId}`,
|
|
108
108
|
isLink: isLink,
|
|
@@ -123,7 +123,7 @@ export default class ListItem extends React.Component {
|
|
|
123
123
|
adjust: true,
|
|
124
124
|
className: style.children
|
|
125
125
|
}, children) : null, needTick && active ? /*#__PURE__*/React.createElement(Box, {
|
|
126
|
-
className: `${style.tickIcon} ${tickIconPalette} ${customTickIcon}`,
|
|
126
|
+
className: `${style.tickIcon} ${tickIconPalette} ${customTickIcon} ${needMultiLineText ? style.tickIconCenter : ''}`,
|
|
127
127
|
"aria-hidden": ariaHidden,
|
|
128
128
|
dataId: `${dataIdString}_tickIcon`,
|
|
129
129
|
dataSelectorId: `${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
|
+
}
|
|
@@ -107,7 +107,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
107
107
|
autoHover: autoHover,
|
|
108
108
|
needTick: needTick,
|
|
109
109
|
needBorder: needBorder,
|
|
110
|
-
customClass: customListItem
|
|
110
|
+
customClass: `${needMultiLineText ? style.autoHeight : ''} ${customListItem}`,
|
|
111
111
|
dataId: `${dataIdString}_ListItemWithAvatar`,
|
|
112
112
|
dataSelectorId: `${dataSelectorId}`,
|
|
113
113
|
onClick: this.handleClick,
|
|
@@ -117,7 +117,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
117
117
|
title: null,
|
|
118
118
|
customProps: ListItemProps
|
|
119
119
|
}, ContainerProps), name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
|
|
120
|
-
className: style.leftAvatar
|
|
120
|
+
className: `${needMultiLineText ? style.alignSelfTop : ''} ${style.leftAvatar}`
|
|
121
121
|
}, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
122
122
|
name: name,
|
|
123
123
|
size: "small",
|
|
@@ -144,7 +144,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
144
144
|
"data-title": isDisabled ? null : title,
|
|
145
145
|
className: needMultiLineText ? style.multiLineValue : style.value
|
|
146
146
|
}, value) : null, needTick && active ? /*#__PURE__*/React.createElement(Box, {
|
|
147
|
-
className: style.tickIcon
|
|
147
|
+
className: `${style.tickIcon} ${needMultiLineText ? style.tickIconCenter : ''}`,
|
|
148
148
|
"aria-hidden": ariaHidden,
|
|
149
149
|
dataId: `${dataIdString}_tickIcon`,
|
|
150
150
|
dataSelectorId: `${dataSelectorId}_tickIcon`
|
|
@@ -97,7 +97,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
97
97
|
autoHover: autoHover,
|
|
98
98
|
needTick: needTick,
|
|
99
99
|
needBorder: needBorder,
|
|
100
|
-
customClass: customClass
|
|
100
|
+
customClass: `${needMultiLineText && iconClass && !iconName ? style.txtAlignBaseLine : ''} ${customClass}`,
|
|
101
101
|
dataId: dataIdString,
|
|
102
102
|
dataSelectorId: dataSelectorId,
|
|
103
103
|
isLink: isLink,
|
|
@@ -126,7 +126,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
126
126
|
"data-title": isDisabled ? null : title,
|
|
127
127
|
dataId: `${dataIdString}_Text`
|
|
128
128
|
}, value), needTick && active ? /*#__PURE__*/React.createElement(Box, {
|
|
129
|
-
className: style.tickIcon
|
|
129
|
+
className: `${style.tickIcon} ${needMultiLineText ? style.tickIconCenter : ''}`,
|
|
130
130
|
"aria-hidden": ariaHidden,
|
|
131
131
|
dataId: `${dataIdString}_tickIcon`,
|
|
132
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 { AdvancedGroupMultiSelect_propTypes } from './props/propTypes';
|
|
3
5
|
import { AdvancedGroupMultiSelect_defaultProps } from './props/defaultProps';
|
|
@@ -870,8 +872,12 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
870
872
|
a11y,
|
|
871
873
|
palette,
|
|
872
874
|
needEffect,
|
|
873
|
-
autoComplete
|
|
875
|
+
autoComplete,
|
|
876
|
+
customProps
|
|
874
877
|
} = this.props;
|
|
878
|
+
const {
|
|
879
|
+
suggestionsProps
|
|
880
|
+
} = customProps;
|
|
875
881
|
let {
|
|
876
882
|
clearText = 'Clear all'
|
|
877
883
|
} = i18nKeys;
|
|
@@ -1031,7 +1037,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
1031
1037
|
a11y: {
|
|
1032
1038
|
role: 'heading'
|
|
1033
1039
|
}
|
|
1034
|
-
})), /*#__PURE__*/React.createElement(Suggestions, {
|
|
1040
|
+
})), /*#__PURE__*/React.createElement(Suggestions, _extends({
|
|
1035
1041
|
suggestions: suggestions,
|
|
1036
1042
|
selectedOptions: selectedOptionIds,
|
|
1037
1043
|
getRef: this.suggestionItemRef,
|
|
@@ -1043,7 +1049,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
1043
1049
|
a11y: {
|
|
1044
1050
|
role: 'option'
|
|
1045
1051
|
}
|
|
1046
|
-
}));
|
|
1052
|
+
}, suggestionsProps)));
|
|
1047
1053
|
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
1048
1054
|
options: revampedGroups,
|
|
1049
1055
|
searchString: searchStr,
|