@zohodesk/components 1.0.0-temp-192.1 → 1.0.0-temp-195
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/es/Accordion/Accordion.js +2 -2
- package/es/Accordion/AccordionItem.js +4 -4
- package/es/Accordion/index.js +2 -2
- package/es/Animation/Animation.js +3 -3
- package/es/Animation/utils.js +1 -1
- package/es/AppContainer/AppContainer.js +19 -18
- package/es/Avatar/Avatar.js +9 -10
- package/es/Avatar/__tests__/Avatar.spec.js +1 -1
- package/es/AvatarTeam/AvatarTeam.js +11 -11
- package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +1 -1
- package/es/Button/Button.js +9 -10
- package/es/Button/__tests__/Button.spec.js +1 -1
- package/es/Button/index.js +2 -2
- package/es/Button/props/defaultProps.js +1 -1
- package/es/Buttongroup/Buttongroup.js +3 -3
- package/es/Buttongroup/__tests__/Buttongroup.spec.js +1 -1
- package/es/Card/Card.js +5 -7
- package/es/Card/index.js +4 -4
- package/es/CheckBox/CheckBox.js +14 -14
- package/es/DateTime/CalendarView.js +6 -6
- package/es/DateTime/DateTime.js +15 -15
- package/es/DateTime/DateTimePopupFooter.js +5 -5
- package/es/DateTime/DateTimePopupHeader.js +4 -4
- package/es/DateTime/DateWidget.js +17 -17
- package/es/DateTime/DaysRow.js +3 -3
- package/es/DateTime/Time.js +5 -5
- package/es/DateTime/YearView.js +6 -6
- package/es/DateTime/dateFormatUtils/dateFormat.js +4 -4
- package/es/DateTime/dateFormatUtils/dayChange.js +2 -2
- package/es/DateTime/dateFormatUtils/index.js +3 -3
- package/es/DateTime/dateFormatUtils/monthChange.js +2 -2
- package/es/DateTime/dateFormatUtils/timeChange.js +2 -2
- package/es/DateTime/dateFormatUtils/yearChange.js +2 -2
- package/es/DateTime/index.js +1 -1
- package/es/DateTime/props/propTypes.js +1 -1
- package/es/DateTime/validator.js +2 -2
- package/es/DropBox/DropBox.js +19 -20
- package/es/DropBox/DropBoxElement/DropBoxElement.js +6 -6
- package/es/DropBox/DropBoxElement/css/cssJSLogic.js +1 -1
- package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +1 -1
- package/es/DropBox/css/cssJSLogic.js +1 -1
- package/es/DropBox/props/defaultProps.js +1 -1
- package/es/DropBox/props/propTypes.js +1 -1
- package/es/DropBox/utils/isMobilePopover.js +1 -1
- package/es/DropDown/DropDown.js +6 -5
- package/es/DropDown/DropDownHeading.js +3 -3
- package/es/DropDown/DropDownItem.js +3 -3
- package/es/DropDown/DropDownSearch.js +4 -4
- package/es/DropDown/DropDownSeparator.js +2 -2
- package/es/DropDown/index.js +7 -7
- package/es/DropDown/props/propTypes.js +1 -1
- package/es/Heading/Heading.js +3 -3
- package/es/Label/Label.js +4 -4
- package/es/Label/__tests__/Label.spec.js +1 -1
- package/es/Layout/Box.js +4 -4
- package/es/Layout/Container.js +4 -4
- package/es/Layout/index.js +2 -2
- package/es/ListItem/ListContainer.js +12 -11
- package/es/ListItem/ListItem.js +11 -12
- package/es/ListItem/ListItem.module.css +18 -85
- package/es/ListItem/ListItemWithAvatar.js +14 -15
- package/es/ListItem/ListItemWithCheckBox.js +10 -11
- package/es/ListItem/ListItemWithIcon.js +11 -12
- package/es/ListItem/ListItemWithRadio.js +10 -11
- package/es/ListItem/index.js +6 -6
- package/es/Modal/Modal.js +7 -8
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +20 -26
- package/es/MultiSelect/AdvancedMultiSelect.js +31 -28
- package/es/MultiSelect/EmptyState.js +3 -3
- package/es/MultiSelect/MobileHeader/MobileHeader.js +5 -5
- package/es/MultiSelect/MultiSelect.js +23 -29
- package/es/MultiSelect/MultiSelectHeader.js +4 -4
- package/es/MultiSelect/MultiSelectWithAvatar.js +20 -21
- package/es/MultiSelect/SelectedOptions.js +11 -13
- package/es/MultiSelect/Suggestions.js +16 -22
- package/es/MultiSelect/index.js +4 -4
- package/es/MultiSelect/props/defaultProps.js +8 -10
- package/es/MultiSelect/props/propTypes.js +5 -7
- package/es/PopOver/PopOver.js +6 -6
- package/es/PopOver/index.js +3 -3
- package/es/Popup/Popup.js +6 -7
- package/es/Provider/AvatarSize.js +1 -1
- package/es/Provider/CssProvider.js +1 -1
- package/es/Provider/IdProvider.js +2 -2
- package/es/Provider/LibraryContext.js +2 -2
- package/es/Provider/ZindexProvider.js +2 -2
- package/es/Provider/index.js +4 -4
- package/es/Radio/Radio.js +13 -13
- package/es/Radio/__tests__/Radio.spec.js +1 -1
- package/es/Responsive/CustomResponsive.js +7 -7
- package/es/Responsive/ResizeComponent.js +2 -2
- package/es/Responsive/Responsive.js +6 -6
- package/es/Responsive/index.js +3 -3
- package/es/Responsive/utils/index.js +1 -1
- package/es/Responsive/windowResizeObserver.js +1 -1
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +8 -10
- package/es/ResponsiveDropBox/props/propTypes.js +1 -1
- package/es/Ribbon/Ribbon.js +3 -3
- package/es/Ribbon/__tests__/Ribbon.spec.js +1 -1
- package/es/RippleEffect/RippleEffect.js +4 -4
- package/es/RippleEffect/__tests__/RippleEffect.spec.js +1 -1
- package/es/Select/GroupSelect.js +19 -25
- package/es/Select/Select.js +20 -21
- package/es/Select/SelectWithAvatar.js +20 -26
- package/es/Select/SelectWithIcon.js +16 -22
- package/es/Select/index.js +4 -4
- package/es/Select/props/defaultProps.js +4 -7
- package/es/Select/props/propTypes.js +3 -6
- package/es/Stencils/Stencils.js +3 -3
- package/es/Stencils/__tests__/Stencils.spec.js +1 -1
- package/es/Switch/Switch.js +13 -13
- package/es/Switch/__tests__/Switch.spec.js +1 -1
- package/es/Tab/Tab.js +9 -10
- package/es/Tab/TabContent.js +4 -4
- package/es/Tab/TabContentWrapper.js +7 -8
- package/es/Tab/TabWrapper.js +5 -7
- package/es/Tab/Tabs.js +28 -28
- package/es/Tab/index.js +5 -5
- package/es/Tag/Tag.js +7 -7
- package/es/TextBox/TextBox.js +8 -8
- package/es/TextBoxIcon/TextBoxIcon.js +8 -10
- package/es/TextBoxIcon/props/propTypes.js +1 -1
- package/es/Textarea/Textarea.js +7 -9
- package/es/Tooltip/Tooltip.js +5 -5
- package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +7 -8
- package/es/VelocityAnimation/index.js +2 -2
- package/es/css.js +37 -37
- package/es/deprecated/PortalLayer/PortalLayer.js +11 -9
- package/es/index.js +39 -39
- package/es/semantic/Button/Button.js +3 -3
- package/es/semantic/index.js +1 -1
- package/es/utils/Common.js +1 -1
- package/es/utils/ContextOptimizer.js +1 -1
- package/es/utils/datetime/common.js +1 -1
- package/es/utils/dropDownUtils.js +1 -1
- package/es/utils/index.js +1 -1
- package/es/v1/Accordion/Accordion.js +2 -2
- package/es/v1/Accordion/AccordionItem.js +4 -4
- package/es/v1/Accordion/index.js +2 -2
- package/es/v1/Animation/Animation.js +3 -3
- package/es/v1/Animation/utils.js +1 -1
- package/es/v1/AppContainer/AppContainer.js +19 -18
- package/es/v1/Avatar/Avatar.js +9 -10
- package/es/v1/AvatarTeam/AvatarTeam.js +11 -11
- package/es/v1/Button/Button.js +9 -10
- package/es/v1/Button/props/defaultProps.js +1 -1
- package/es/v1/Buttongroup/Buttongroup.js +3 -3
- package/es/v1/Card/Card.js +5 -5
- package/es/v1/Card/index.js +4 -4
- package/es/v1/CheckBox/CheckBox.js +14 -14
- package/es/v1/DateTime/CalendarView.js +7 -7
- package/es/v1/DateTime/DateTime.js +15 -15
- package/es/v1/DateTime/DateTimePopupFooter.js +5 -5
- package/es/v1/DateTime/DateTimePopupHeader.js +4 -4
- package/es/v1/DateTime/DateWidget.js +17 -17
- package/es/v1/DateTime/DaysRow.js +3 -3
- package/es/v1/DateTime/Time.js +5 -5
- package/es/v1/DateTime/YearView.js +6 -6
- package/es/v1/DateTime/index.js +1 -1
- package/es/v1/DateTime/props/propTypes.js +1 -1
- package/es/v1/DropBox/DropBox.js +19 -20
- package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +6 -6
- package/es/v1/DropBox/props/defaultProps.js +1 -1
- package/es/v1/DropBox/props/propTypes.js +1 -1
- package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
- package/es/v1/DropDown/DropDown.js +6 -5
- package/es/v1/DropDown/DropDownHeading.js +3 -3
- package/es/v1/DropDown/DropDownItem.js +3 -3
- package/es/v1/DropDown/DropDownSearch.js +4 -4
- package/es/v1/DropDown/DropDownSeparator.js +2 -2
- package/es/v1/DropDown/props/propTypes.js +1 -1
- package/es/v1/Heading/Heading.js +3 -3
- package/es/v1/Label/Label.js +4 -4
- package/es/v1/Layout/Box.js +4 -4
- package/es/v1/Layout/Container.js +4 -4
- package/es/v1/Layout/index.js +2 -2
- package/es/v1/ListItem/ListContainer.js +12 -11
- package/es/v1/ListItem/ListItem.js +9 -10
- package/es/v1/ListItem/ListItemWithAvatar.js +11 -12
- package/es/v1/ListItem/ListItemWithCheckBox.js +10 -11
- package/es/v1/ListItem/ListItemWithIcon.js +9 -10
- package/es/v1/ListItem/ListItemWithRadio.js +10 -11
- package/es/v1/ListItem/index.js +6 -6
- package/es/v1/Modal/Modal.js +7 -8
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +17 -17
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +25 -26
- package/es/v1/MultiSelect/EmptyState.js +3 -3
- package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +5 -5
- package/es/v1/MultiSelect/MultiSelect.js +19 -19
- package/es/v1/MultiSelect/MultiSelectHeader.js +4 -4
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +20 -21
- package/es/v1/MultiSelect/SelectedOptions.js +11 -13
- package/es/v1/MultiSelect/Suggestions.js +12 -14
- package/es/v1/MultiSelect/index.js +4 -4
- package/es/v1/MultiSelect/props/defaultProps.js +1 -1
- package/es/v1/PopOver/PopOver.js +6 -6
- package/es/v1/Popup/Popup.js +6 -7
- package/es/v1/Radio/Radio.js +13 -13
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +8 -10
- package/es/v1/ResponsiveDropBox/props/propTypes.js +1 -1
- package/es/v1/Ribbon/Ribbon.js +3 -3
- package/es/v1/RippleEffect/RippleEffect.js +4 -4
- package/es/v1/Select/GroupSelect.js +16 -16
- package/es/v1/Select/Select.js +20 -21
- package/es/v1/Select/SelectWithAvatar.js +17 -17
- package/es/v1/Select/SelectWithIcon.js +13 -13
- package/es/v1/Select/index.js +4 -4
- package/es/v1/Select/props/defaultProps.js +1 -1
- package/es/v1/Stencils/Stencils.js +3 -3
- package/es/v1/Switch/Switch.js +13 -13
- package/es/v1/Tab/Tab.js +9 -10
- package/es/v1/Tab/TabContent.js +4 -4
- package/es/v1/Tab/TabContentWrapper.js +7 -8
- package/es/v1/Tab/TabWrapper.js +5 -7
- package/es/v1/Tab/Tabs.js +28 -28
- package/es/v1/Tab/index.js +5 -5
- package/es/v1/Tag/Tag.js +7 -7
- package/es/v1/TextBox/TextBox.js +8 -8
- package/es/v1/TextBoxIcon/TextBoxIcon.js +8 -10
- package/es/v1/TextBoxIcon/props/propTypes.js +1 -1
- package/es/v1/Textarea/Textarea.js +7 -9
- package/es/v1/Tooltip/Tooltip.js +5 -5
- package/es/v1/Typography/Typography.js +4 -4
- package/es/v1/Typography/css/cssJSLogic.js +1 -1
- package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +7 -8
- package/es/v1/semantic/Button/Button.js +3 -3
- package/es/v1/semantic/index.js +1 -1
- package/lib/Card/Card.js +0 -3
- package/lib/ListItem/ListItem.js +2 -2
- package/lib/ListItem/ListItem.module.css +18 -85
- package/lib/ListItem/ListItemWithAvatar.js +3 -3
- package/lib/ListItem/ListItemWithIcon.js +2 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -7
- package/lib/MultiSelect/AdvancedMultiSelect.js +5 -2
- package/lib/MultiSelect/MultiSelect.js +3 -8
- package/lib/MultiSelect/Suggestions.js +4 -8
- package/lib/MultiSelect/props/defaultProps.js +7 -9
- package/lib/MultiSelect/props/propTypes.js +8 -9
- package/lib/Select/GroupSelect.js +3 -8
- package/lib/Select/SelectWithAvatar.js +3 -8
- package/lib/Select/SelectWithIcon.js +3 -8
- package/lib/Select/props/defaultProps.js +3 -5
- package/lib/Select/props/propTypes.js +3 -6
- package/package.json +3 -3
- package/result.json +1 -1
|
@@ -17,9 +17,8 @@
|
|
|
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 var(--zd_size15)
|
|
20
|
+
--listitem_avatar_margin: 0 0 0 var(--zd_size15);
|
|
21
21
|
}
|
|
22
|
-
|
|
23
22
|
.list {
|
|
24
23
|
composes: varClass;
|
|
25
24
|
position: relative;
|
|
@@ -35,84 +34,62 @@
|
|
|
35
34
|
border-color: var(--listitem_border_color);
|
|
36
35
|
cursor: pointer;
|
|
37
36
|
}
|
|
38
|
-
|
|
39
37
|
.list, .default, .secondary {
|
|
40
38
|
background-color: var(--listitem_bg_color);
|
|
41
39
|
}
|
|
42
|
-
|
|
43
40
|
[dir=ltr] .withBorder {
|
|
44
|
-
--listitem_border_width: 0 0 0 1px
|
|
45
|
-
/*rtl: 0 1px 0 0*/
|
|
46
|
-
;
|
|
41
|
+
--listitem_border_width: 0 0 0 1px /*rtl: 0 1px 0 0*/;
|
|
47
42
|
}
|
|
48
|
-
|
|
49
43
|
[dir=rtl] .withBorder {
|
|
50
|
-
--listitem_border_width: 0 0 0
|
|
44
|
+
--listitem_border_width: 0 1px 0 0;
|
|
51
45
|
}
|
|
52
|
-
|
|
53
46
|
.active {
|
|
54
47
|
--listitem_border_color: var(--zdt_listitem_active_border);
|
|
55
48
|
}
|
|
56
|
-
|
|
57
49
|
[dir=ltr] .small {
|
|
58
50
|
--listitem_padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5);
|
|
59
51
|
}
|
|
60
|
-
|
|
61
52
|
[dir=rtl] .small {
|
|
62
|
-
--listitem_padding: var(--zd_size7) var(--
|
|
53
|
+
--listitem_padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size3);
|
|
63
54
|
}
|
|
64
|
-
|
|
65
55
|
.medium {
|
|
66
56
|
--listitem_padding: var(--zd_size7) var(--zd_size20);
|
|
67
57
|
--listitem_min_height: var(--zd_size35);
|
|
68
58
|
}
|
|
69
|
-
|
|
70
59
|
.large {
|
|
71
60
|
--listitem_height: var(--zd_size48);
|
|
72
61
|
}
|
|
73
|
-
|
|
74
62
|
[dir=ltr] .large {
|
|
75
63
|
--listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25);
|
|
76
64
|
}
|
|
77
|
-
|
|
78
65
|
[dir=rtl] .large {
|
|
79
|
-
--listitem_padding: var(--zd_size10) var(--
|
|
66
|
+
--listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3);
|
|
80
67
|
}
|
|
81
|
-
|
|
82
68
|
.value,
|
|
83
69
|
.children {
|
|
84
70
|
composes: dotted from '../common/common.module.css';
|
|
85
71
|
}
|
|
86
|
-
|
|
87
|
-
.value {
|
|
72
|
+
.value, .multiLineValue {
|
|
88
73
|
line-height: 1.5385;
|
|
89
74
|
}
|
|
90
|
-
|
|
91
|
-
.multiLineValue {
|
|
92
|
-
line-height: 1.5385;
|
|
75
|
+
.multiLineValue{
|
|
93
76
|
word-break: break-word;
|
|
94
|
-
|
|
95
|
-
composes: clamp from '../common/common.module.css';
|
|
77
|
+
composes: clamp from '../common/common.module.css'
|
|
96
78
|
}
|
|
97
|
-
|
|
98
79
|
.iconBox {
|
|
99
80
|
width: var(--zd_size20) ;
|
|
100
81
|
text-align: center;
|
|
101
82
|
}
|
|
102
|
-
|
|
103
83
|
[dir=ltr] .iconBox {
|
|
104
84
|
margin-right: var(--zd_size10) ;
|
|
105
85
|
}
|
|
106
|
-
|
|
107
86
|
[dir=rtl] .iconBox {
|
|
108
87
|
margin-left: var(--zd_size10) ;
|
|
109
88
|
}
|
|
110
|
-
|
|
111
89
|
.iconBox,
|
|
112
90
|
.leftAvatar {
|
|
113
91
|
font-size: 0 ;
|
|
114
92
|
}
|
|
115
|
-
|
|
116
93
|
.leftAvatar {
|
|
117
94
|
margin: var(--listitem_avatar_margin);
|
|
118
95
|
}
|
|
@@ -120,78 +97,61 @@
|
|
|
120
97
|
.defaultHover, .primaryHover, .secondaryHover, .darkHover {
|
|
121
98
|
background-color: var(--listitem_highlight_bg_color);
|
|
122
99
|
}
|
|
123
|
-
|
|
124
100
|
.activewithBorder {
|
|
125
101
|
--listitem_border_color: var(--zdt_listitem_active_border);
|
|
126
102
|
}
|
|
127
|
-
|
|
128
103
|
[dir=ltr] .activewithBorder {
|
|
129
|
-
--listitem_border_width: 0 0 0 1px
|
|
130
|
-
/*rtl: 0 1px 0 0*/
|
|
131
|
-
;
|
|
104
|
+
--listitem_border_width: 0 0 0 1px /*rtl: 0 1px 0 0*/;
|
|
132
105
|
}
|
|
133
|
-
|
|
134
106
|
[dir=rtl] .activewithBorder {
|
|
135
|
-
--listitem_border_width: 0 0 0
|
|
107
|
+
--listitem_border_width: 0 1px 0 0;
|
|
136
108
|
}
|
|
137
109
|
|
|
138
110
|
.defaultHover,
|
|
139
111
|
.defaultEffect:hover
|
|
140
|
-
|
|
141
112
|
/* .defaultEffect:focus */
|
|
142
|
-
|
|
113
|
+
{
|
|
143
114
|
--listitem_bg_color: var(--zdt_listitem_highlight_bg);
|
|
144
115
|
}
|
|
145
|
-
|
|
146
116
|
.primaryHover,
|
|
147
117
|
.primaryEffect:hover
|
|
148
|
-
|
|
149
118
|
/* .primaryEffect:focus */
|
|
150
|
-
|
|
119
|
+
{
|
|
151
120
|
--listitem_bg_color: var(--zdt_listitem_primary_bg);
|
|
152
121
|
--listitem_highlight_bg_color: var(--zdt_listitem_primary_bg);
|
|
153
122
|
}
|
|
154
|
-
|
|
155
123
|
.secondaryHover,
|
|
156
124
|
.secondaryEffect:hover
|
|
157
|
-
|
|
158
125
|
/* .secondaryEffect:focus */
|
|
159
|
-
|
|
126
|
+
{
|
|
160
127
|
--listitem_bg_color: var(--zdt_listitem_secondary_bg);
|
|
161
128
|
--listitem_highlight_bg_color: var(--zdt_listitem_secondary_bg);
|
|
162
129
|
--listitem_text_color: var(--zdt_listitem_secondary_text);
|
|
163
130
|
}
|
|
164
|
-
|
|
165
131
|
.darkHover,
|
|
166
132
|
.darkEffect:hover
|
|
167
|
-
|
|
168
133
|
/* .darkEffect:focus */
|
|
169
|
-
|
|
134
|
+
{
|
|
170
135
|
--listitem_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
171
136
|
--listitem_highlight_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
172
137
|
}
|
|
173
|
-
|
|
174
138
|
.activedefault, .activeprimary, .activesecondary, .activedark {
|
|
175
139
|
background-color: var(--listitem_active_bg_color);
|
|
176
140
|
}
|
|
177
|
-
|
|
178
141
|
.activedefault,
|
|
179
142
|
.activedefault:hover,
|
|
180
143
|
.activeprimary,
|
|
181
144
|
.activeprimary:hover {
|
|
182
145
|
--listitem_active_bg_color: var(--zdt_listitem_primary_bg);
|
|
183
146
|
}
|
|
184
|
-
|
|
185
147
|
.activesecondary {
|
|
186
148
|
--listitem_active_bg_color: var(--zdt_listitem_secondary_bg);
|
|
187
149
|
--listitem_text_color: var(--zdt_listitem_secondary_text);
|
|
188
150
|
}
|
|
189
|
-
|
|
190
151
|
.dark {
|
|
191
152
|
--listitem_bg_color: var(--zdt_listitem_dark_bg);
|
|
192
153
|
--listitem_text_color: var(--zdt_listitem_dark_text);
|
|
193
154
|
}
|
|
194
|
-
|
|
195
155
|
.activedark {
|
|
196
156
|
--listitem_active_bg_color: var(--zdt_listitem_dark_active_bg);
|
|
197
157
|
}
|
|
@@ -210,63 +170,36 @@
|
|
|
210
170
|
[dir=rtl] .tickIcon, [dir=rtl] .defaultTick, [dir=rtl] .darkTick {
|
|
211
171
|
left: var(--zd_size20) ;
|
|
212
172
|
}
|
|
213
|
-
|
|
214
173
|
.defaultTick {
|
|
215
174
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
216
175
|
}
|
|
217
|
-
|
|
218
176
|
.darkTick {
|
|
219
177
|
--listitem_tickicon_color: var(--zdt_listitem_dark_tickicon);
|
|
220
178
|
}
|
|
221
|
-
|
|
222
|
-
.defaultTick>i {
|
|
179
|
+
.defaultTick > i {
|
|
223
180
|
display: block;
|
|
224
181
|
}
|
|
225
|
-
|
|
226
182
|
[dir=ltr] .smallwithTick {
|
|
227
183
|
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size5);
|
|
228
184
|
}
|
|
229
|
-
|
|
230
185
|
[dir=rtl] .smallwithTick {
|
|
231
|
-
--listitem_padding: var(--zd_size7) var(--
|
|
186
|
+
--listitem_padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size39);
|
|
232
187
|
}
|
|
233
|
-
|
|
234
188
|
[dir=ltr] .mediumwithTick {
|
|
235
189
|
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size20);
|
|
236
190
|
}
|
|
237
|
-
|
|
238
191
|
[dir=rtl] .mediumwithTick {
|
|
239
|
-
--listitem_padding: var(--zd_size7) var(--
|
|
192
|
+
--listitem_padding: var(--zd_size7) var(--zd_size20) var(--zd_size7) var(--zd_size39);
|
|
240
193
|
}
|
|
241
|
-
|
|
242
194
|
[dir=ltr] .largewithTick {
|
|
243
195
|
--listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10) var(--zd_size25);
|
|
244
196
|
}
|
|
245
|
-
|
|
246
197
|
[dir=rtl] .largewithTick {
|
|
247
|
-
--listitem_padding: var(--zd_size10) var(--
|
|
198
|
+
--listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39);
|
|
248
199
|
}
|
|
249
|
-
|
|
250
200
|
.responsiveHeight {
|
|
251
201
|
--listitem_min_height: var(--zd_size45);
|
|
252
202
|
font-size: var(--zd_font_size15) ;
|
|
253
203
|
padding-top: var(--zd_size10) ;
|
|
254
204
|
padding-bottom: var(--zd_size10) ;
|
|
255
205
|
}
|
|
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:
|
|
161
|
+
customClass: 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:
|
|
171
|
+
className: _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:
|
|
198
|
+
className: _ListItemModule["default"].tickIcon,
|
|
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:
|
|
150
|
+
customClass: 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:
|
|
179
|
+
className: _ListItemModule["default"].tickIcon,
|
|
180
180
|
"aria-hidden": ariaHidden,
|
|
181
181
|
dataId: "".concat(dataIdString, "_tickIcon"),
|
|
182
182
|
dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
|
|
@@ -53,8 +53,6 @@ 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
|
-
|
|
58
56
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
59
57
|
|
|
60
58
|
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."); }
|
|
@@ -962,9 +960,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
962
960
|
a11y = _this$props8.a11y,
|
|
963
961
|
palette = _this$props8.palette,
|
|
964
962
|
needEffect = _this$props8.needEffect,
|
|
965
|
-
autoComplete = _this$props8.autoComplete
|
|
966
|
-
customProps = _this$props8.customProps;
|
|
967
|
-
var suggestionsProps = customProps.suggestionsProps;
|
|
963
|
+
autoComplete = _this$props8.autoComplete;
|
|
968
964
|
var _i18nKeys = i18nKeys,
|
|
969
965
|
_i18nKeys$clearText = _i18nKeys.clearText,
|
|
970
966
|
clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
|
|
@@ -1120,7 +1116,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1120
1116
|
a11y: {
|
|
1121
1117
|
role: 'heading'
|
|
1122
1118
|
}
|
|
1123
|
-
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"],
|
|
1119
|
+
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
1124
1120
|
suggestions: suggestions,
|
|
1125
1121
|
selectedOptions: selectedOptionIds,
|
|
1126
1122
|
getRef: _this5.suggestionItemRef,
|
|
@@ -1132,7 +1128,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1132
1128
|
a11y: {
|
|
1133
1129
|
role: 'option'
|
|
1134
1130
|
}
|
|
1135
|
-
}
|
|
1131
|
+
}));
|
|
1136
1132
|
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1137
1133
|
options: revampedGroups,
|
|
1138
1134
|
searchString: searchStr,
|
|
@@ -435,11 +435,14 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
435
435
|
needEffect = _this$props5.needEffect,
|
|
436
436
|
disabledOptions = _this$props5.disabledOptions,
|
|
437
437
|
isLoading = _this$props5.isLoading,
|
|
438
|
-
dataSelectorId = _this$props5.dataSelectorId
|
|
438
|
+
dataSelectorId = _this$props5.dataSelectorId,
|
|
439
|
+
customClass = _this$props5.customClass;
|
|
439
440
|
var _customProps$Suggesti = customProps.SuggestionsProps,
|
|
440
441
|
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti,
|
|
441
442
|
_customProps$DropBoxP = customProps.DropBoxProps,
|
|
442
443
|
DropBoxProps = _customProps$DropBoxP === void 0 ? {} : _customProps$DropBoxP;
|
|
444
|
+
var _customClass$containe = customClass.containerClass,
|
|
445
|
+
containerClass = _customClass$containe === void 0 ? '' : _customClass$containe;
|
|
443
446
|
var _i18nKeys = i18nKeys,
|
|
444
447
|
_i18nKeys$clearText = _i18nKeys.clearText,
|
|
445
448
|
clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
|
|
@@ -473,7 +476,7 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
473
476
|
|
|
474
477
|
var isShowClearIcon = !isReadOnly && !isDisabled && isShowClear;
|
|
475
478
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
476
|
-
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
479
|
+
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : '', " ").concat(containerClass),
|
|
477
480
|
"data-id": dataIdMultiSelectComp,
|
|
478
481
|
"data-test-id": dataIdMultiSelectComp,
|
|
479
482
|
"data-title": isDisabled ? title : null,
|
|
@@ -57,8 +57,6 @@ 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
|
-
|
|
62
60
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
63
61
|
|
|
64
62
|
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."); }
|
|
@@ -1070,10 +1068,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1070
1068
|
boxSize = _this$props15.boxSize,
|
|
1071
1069
|
isLoading = _this$props15.isLoading,
|
|
1072
1070
|
selectAllText = _this$props15.selectAllText,
|
|
1073
|
-
needSelectAll = _this$props15.needSelectAll
|
|
1074
|
-
customProps = _this$props15.customProps;
|
|
1075
|
-
var _customProps$suggesti = customProps.suggestionsProps,
|
|
1076
|
-
suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
|
|
1071
|
+
needSelectAll = _this$props15.needSelectAll;
|
|
1077
1072
|
var _this$state9 = this.state,
|
|
1078
1073
|
selectedOptions = _this$state9.selectedOptions,
|
|
1079
1074
|
searchStr = _this$state9.searchStr,
|
|
@@ -1145,7 +1140,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1145
1140
|
eleRef: this.suggestionContainerRef
|
|
1146
1141
|
}, isSearching ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
1147
1142
|
className: _MultiSelectModule["default"][palette]
|
|
1148
|
-
}, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"],
|
|
1143
|
+
}, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
1149
1144
|
suggestions: suggestions,
|
|
1150
1145
|
getRef: this.suggestionItemRef,
|
|
1151
1146
|
hoverOption: hoverOption,
|
|
@@ -1158,7 +1153,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1158
1153
|
a11y: {
|
|
1159
1154
|
role: 'option'
|
|
1160
1155
|
}
|
|
1161
|
-
}
|
|
1156
|
+
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1162
1157
|
isLoading: isFetchingOptions,
|
|
1163
1158
|
options: options,
|
|
1164
1159
|
searchString: searchStr,
|
|
@@ -83,8 +83,7 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
83
83
|
avatarPalette = _this$props.avatarPalette,
|
|
84
84
|
palette = _this$props.palette,
|
|
85
85
|
htmlId = _this$props.htmlId,
|
|
86
|
-
a11y = _this$props.a11y
|
|
87
|
-
needMultiLineText = _this$props.needMultiLineText;
|
|
86
|
+
a11y = _this$props.a11y;
|
|
88
87
|
var ariaParentRole = a11y.ariaParentRole,
|
|
89
88
|
ariaMultiselectable = a11y.ariaMultiselectable;
|
|
90
89
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
@@ -144,8 +143,7 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
144
143
|
size: listItemSize,
|
|
145
144
|
avatarPalette: avatarPalette,
|
|
146
145
|
palette: palette,
|
|
147
|
-
a11y: list_a11y
|
|
148
|
-
needMultiLineText: needMultiLineText
|
|
146
|
+
a11y: list_a11y
|
|
149
147
|
}));
|
|
150
148
|
} else if (optionType === 'icon') {
|
|
151
149
|
return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], _extends({}, commonProps, {
|
|
@@ -165,8 +163,7 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
165
163
|
iconSize: iconSize,
|
|
166
164
|
size: listItemSize,
|
|
167
165
|
palette: palette,
|
|
168
|
-
a11y: list_a11y
|
|
169
|
-
needMultiLineText: needMultiLineText
|
|
166
|
+
a11y: list_a11y
|
|
170
167
|
}));
|
|
171
168
|
}
|
|
172
169
|
|
|
@@ -185,8 +182,7 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
185
182
|
active: isActive,
|
|
186
183
|
size: listItemSize,
|
|
187
184
|
palette: palette,
|
|
188
|
-
a11y: list_a11y
|
|
189
|
-
needMultiLineText: needMultiLineText
|
|
185
|
+
a11y: list_a11y
|
|
190
186
|
}));
|
|
191
187
|
})));
|
|
192
188
|
}
|
|
@@ -43,8 +43,7 @@ var AdvancedGroupMultiSelect_defaultProps = {
|
|
|
43
43
|
needEffect: true,
|
|
44
44
|
palette: 'default',
|
|
45
45
|
isLoading: false,
|
|
46
|
-
dataSelectorId: 'advancedGroupMultiSelect'
|
|
47
|
-
customProps: {}
|
|
46
|
+
dataSelectorId: 'advancedGroupMultiSelect'
|
|
48
47
|
};
|
|
49
48
|
exports.AdvancedGroupMultiSelect_defaultProps = AdvancedGroupMultiSelect_defaultProps;
|
|
50
49
|
var AdvancedMultiSelect_defaultProps = {
|
|
@@ -76,7 +75,8 @@ var AdvancedMultiSelect_defaultProps = {
|
|
|
76
75
|
customProps: {},
|
|
77
76
|
needEffect: true,
|
|
78
77
|
isLoading: false,
|
|
79
|
-
dataSelectorId: 'advancedMultiSelect'
|
|
78
|
+
dataSelectorId: 'advancedMultiSelect',
|
|
79
|
+
customClass: {}
|
|
80
80
|
};
|
|
81
81
|
exports.AdvancedMultiSelect_defaultProps = AdvancedMultiSelect_defaultProps;
|
|
82
82
|
var EmptyState_defaultProps = {
|
|
@@ -122,8 +122,7 @@ var MultiSelect_defaultProps = {
|
|
|
122
122
|
keepSelectedOptions: false,
|
|
123
123
|
selectedOptionsCount: 0,
|
|
124
124
|
cardHeaderName: '',
|
|
125
|
-
needResponsive: true
|
|
126
|
-
customProps: {}
|
|
125
|
+
needResponsive: true
|
|
127
126
|
};
|
|
128
127
|
exports.MultiSelect_defaultProps = MultiSelect_defaultProps;
|
|
129
128
|
var MultiSelectHeader_defaultProps = {
|
|
@@ -159,8 +158,8 @@ var MultiSelectWithAvatar_defaultProps = {
|
|
|
159
158
|
isLoading: false,
|
|
160
159
|
dataSelectorId: 'multiSelectWithAvatar',
|
|
161
160
|
keepSelectedOptions: false,
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
customProps: {},
|
|
162
|
+
needResponsive: true
|
|
164
163
|
};
|
|
165
164
|
exports.MultiSelectWithAvatar_defaultProps = MultiSelectWithAvatar_defaultProps;
|
|
166
165
|
var SelectedOptions_defaultProps = {
|
|
@@ -168,7 +167,6 @@ var SelectedOptions_defaultProps = {
|
|
|
168
167
|
};
|
|
169
168
|
exports.SelectedOptions_defaultProps = SelectedOptions_defaultProps;
|
|
170
169
|
var Suggestions_defaultProps = {
|
|
171
|
-
a11y: {}
|
|
172
|
-
needMultiLineText: false
|
|
170
|
+
a11y: {}
|
|
173
171
|
};
|
|
174
172
|
exports.Suggestions_defaultProps = Suggestions_defaultProps;
|
|
@@ -7,8 +7,6 @@ exports.Suggestions_propTypes = exports.SelectedOptions_propTypes = exports.Mult
|
|
|
7
7
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
|
|
10
|
-
var _AdvancedGroupMultiSe;
|
|
11
|
-
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
11
|
|
|
14
12
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -123,8 +121,7 @@ var MultiSelect_propTypes = {
|
|
|
123
121
|
needSelectAll: _propTypes["default"].bool,
|
|
124
122
|
selectAllText: _propTypes["default"].string,
|
|
125
123
|
setAriaId: _propTypes["default"].string,
|
|
126
|
-
ariaErrorId: _propTypes["default"].string
|
|
127
|
-
customProps: _propTypes["default"].string
|
|
124
|
+
ariaErrorId: _propTypes["default"].string
|
|
128
125
|
};
|
|
129
126
|
exports.MultiSelect_propTypes = MultiSelect_propTypes;
|
|
130
127
|
var MultiSelectHeader_propTypes = {
|
|
@@ -193,11 +190,11 @@ var Suggestions_propTypes = {
|
|
|
193
190
|
logo: _propTypes["default"].string,
|
|
194
191
|
optionType: _propTypes["default"].string,
|
|
195
192
|
listItemProps: _propTypes["default"].object
|
|
196
|
-
}))
|
|
197
|
-
needMultiLineText: _propTypes["default"].bool
|
|
193
|
+
}))
|
|
198
194
|
};
|
|
199
195
|
exports.Suggestions_propTypes = Suggestions_propTypes;
|
|
200
|
-
|
|
196
|
+
|
|
197
|
+
var AdvancedGroupMultiSelect_propTypes = _defineProperty({
|
|
201
198
|
animationStyle: _propTypes["default"].string,
|
|
202
199
|
autoComplete: _propTypes["default"].bool,
|
|
203
200
|
borderColor: _propTypes["default"].oneOf(['transparent', 'default']),
|
|
@@ -261,7 +258,8 @@ var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
|
|
|
261
258
|
needToCloseOnSelect: _propTypes["default"].func,
|
|
262
259
|
searchStr: _propTypes["default"].string,
|
|
263
260
|
children: _propTypes["default"].node
|
|
264
|
-
},
|
|
261
|
+
}, "dataSelectorId", _propTypes["default"].string);
|
|
262
|
+
|
|
265
263
|
exports.AdvancedGroupMultiSelect_propTypes = AdvancedGroupMultiSelect_propTypes;
|
|
266
264
|
|
|
267
265
|
var AdvancedMultiSelect_propTypes = _objectSpread(_objectSpread({}, MultiSelect_propTypes), {}, {
|
|
@@ -336,7 +334,8 @@ var AdvancedMultiSelect_propTypes = _objectSpread(_objectSpread({}, MultiSelect_
|
|
|
336
334
|
DropBoxProps: _propTypes["default"].object
|
|
337
335
|
}),
|
|
338
336
|
isLoading: _propTypes["default"].bool,
|
|
339
|
-
dataSelectorId: _propTypes["default"].string
|
|
337
|
+
dataSelectorId: _propTypes["default"].string,
|
|
338
|
+
customClass: _propTypes["default"].object
|
|
340
339
|
});
|
|
341
340
|
|
|
342
341
|
exports.AdvancedMultiSelect_propTypes = AdvancedMultiSelect_propTypes;
|
|
@@ -51,8 +51,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
51
51
|
|
|
52
52
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
53
53
|
|
|
54
|
-
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); }
|
|
55
|
-
|
|
56
54
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
57
55
|
|
|
58
56
|
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."); }
|
|
@@ -662,10 +660,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
662
660
|
htmlId = _this$props9.htmlId,
|
|
663
661
|
iconOnHover = _this$props9.iconOnHover,
|
|
664
662
|
isLoading = _this$props9.isLoading,
|
|
665
|
-
dataSelectorId = _this$props9.dataSelectorId
|
|
666
|
-
customProps = _this$props9.customProps;
|
|
667
|
-
var _customProps$suggesti = customProps.suggestionsProps,
|
|
668
|
-
suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
|
|
663
|
+
dataSelectorId = _this$props9.dataSelectorId;
|
|
669
664
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
670
665
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
671
666
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -825,7 +820,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
825
820
|
a11y: {
|
|
826
821
|
role: 'heading'
|
|
827
822
|
}
|
|
828
|
-
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"],
|
|
823
|
+
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
829
824
|
activeId: selectedId,
|
|
830
825
|
suggestions: options,
|
|
831
826
|
getRef: _this7.suggestionItemRef,
|
|
@@ -840,7 +835,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
840
835
|
ariaParentRole: 'listbox',
|
|
841
836
|
role: 'option'
|
|
842
837
|
}
|
|
843
|
-
}
|
|
838
|
+
}));
|
|
844
839
|
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
845
840
|
options: revampedGroups,
|
|
846
841
|
searchString: searchStr,
|
|
@@ -51,8 +51,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
51
51
|
|
|
52
52
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
53
53
|
|
|
54
|
-
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); }
|
|
55
|
-
|
|
56
54
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
57
55
|
|
|
58
56
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -210,10 +208,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
210
208
|
htmlId = _this$props.htmlId,
|
|
211
209
|
needEffect = _this$props.needEffect,
|
|
212
210
|
isLoading = _this$props.isLoading,
|
|
213
|
-
dataSelectorId = _this$props.dataSelectorId
|
|
214
|
-
customProps = _this$props.customProps;
|
|
215
|
-
var _customProps$suggesti = customProps.suggestionsProps,
|
|
216
|
-
suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
|
|
211
|
+
dataSelectorId = _this$props.dataSelectorId;
|
|
217
212
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
218
213
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
219
214
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -346,7 +341,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
346
341
|
a11y: {
|
|
347
342
|
role: 'heading'
|
|
348
343
|
}
|
|
349
|
-
})) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"],
|
|
344
|
+
})) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
350
345
|
activeId: selectedId,
|
|
351
346
|
suggestions: suggestions,
|
|
352
347
|
getRef: _this2.suggestionItemRef,
|
|
@@ -362,7 +357,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
362
357
|
ariaParentRole: 'listbox',
|
|
363
358
|
role: 'option'
|
|
364
359
|
}
|
|
365
|
-
}
|
|
360
|
+
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
366
361
|
isLoading: isFetchingOptions,
|
|
367
362
|
options: options,
|
|
368
363
|
searchString: searchStr,
|