@zohodesk/components 1.0.0-temp-197 → 1.0.0-temp-199
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/AppContainer/AppContainer.js +1 -0
- package/es/AppContainer/AppContainer.module.css +18 -18
- package/es/Avatar/Avatar.js +9 -9
- package/es/Avatar/Avatar.module.css +2 -2
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/Button/Button.js +4 -4
- package/es/Button/css/Button.module.css +6 -22
- package/es/Buttongroup/Buttongroup.js +1 -1
- package/es/Buttongroup/Buttongroup.module.css +1 -1
- package/es/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
- package/es/Card/Card.js +4 -4
- package/es/Card/Card.module.css +20 -20
- package/es/DateTime/DateTime.module.css +8 -11
- package/es/DateTime/DateWidget.module.css +38 -38
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +7 -11
- package/es/DropBox/DropBoxPositionMapping.json +144 -144
- package/es/DropBox/css/DropBox.module.css +1 -1
- package/es/DropDown/DropDown.module.css +5 -5
- package/es/DropDown/DropDownSearch.module.css +14 -14
- package/es/DropDown/DropDownSeparator.module.css +7 -7
- package/es/Heading/Heading.module.css +4 -4
- package/es/Label/Label.js +2 -2
- package/es/Layout/Layout.module.css +335 -335
- package/es/ListItem/ListItem.js +2 -2
- package/es/ListItem/ListItem.module.css +85 -18
- package/es/ListItem/ListItemWithAvatar.js +3 -3
- package/es/ListItem/ListItemWithIcon.js +2 -2
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +7 -2
- package/es/MultiSelect/AdvancedMultiSelect.js +2 -1
- package/es/MultiSelect/MultiSelect.js +12 -7
- package/es/MultiSelect/SelectedOptions.module.css +15 -15
- package/es/MultiSelect/Suggestions.js +8 -4
- package/es/MultiSelect/props/defaultProps.js +8 -5
- package/es/MultiSelect/props/propTypes.js +6 -3
- package/es/Popup/PositionMapping.json +73 -73
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
- package/es/Ribbon/Ribbon.module.css +6 -6
- package/es/RippleEffect/RippleEffect.module.css +92 -92
- package/es/Select/GroupSelect.js +7 -2
- package/es/Select/Select.module.css +134 -134
- package/es/Select/SelectWithAvatar.js +7 -2
- package/es/Select/SelectWithIcon.js +7 -2
- package/es/Select/props/defaultProps.js +6 -3
- package/es/Select/props/propTypes.js +6 -3
- package/es/Stencils/Stencils.module.css +96 -96
- package/es/Switch/Switch.module.css +1 -2
- package/es/Tab/TabContent.module.css +4 -4
- package/es/Tab/Tabs.js +17 -17
- package/es/Tab/Tabs.module.css +3 -3
- package/es/Tooltip/Tooltip.module.css +140 -143
- package/es/common/a11y.module.css +3 -3
- package/es/common/animation.module.css +624 -624
- package/es/common/avatarsizes.module.css +48 -48
- package/es/common/basic.module.css +33 -33
- package/es/common/basicReset.module.css +40 -40
- package/es/{deprecated → common}/boxShadow.module.css +33 -33
- package/es/common/common.module.css +524 -524
- package/es/common/reset.module.css +13 -13
- package/es/common/transition.module.css +146 -146
- package/es/semantic/Button/semanticButton.module.css +9 -9
- package/es/v1/AppContainer/AppContainer.js +1 -0
- package/es/v1/Card/Card.js +4 -4
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
- package/es/v1/Tab/Tabs.js +11 -11
- package/es/v1/Tab/v1TabContent.module.css +4 -4
- package/es/v1/Tab/v1Tabs.module.css +3 -3
- package/es/v1/Typography/css/Typography.module.css +380 -380
- package/install.md +10 -10
- package/lib/AppContainer/AppContainer.js +2 -0
- package/lib/AppContainer/AppContainer.module.css +18 -18
- package/lib/Avatar/Avatar.js +9 -9
- package/lib/Avatar/Avatar.module.css +2 -2
- package/lib/AvatarTeam/AvatarTeam.js +7 -7
- package/lib/Button/Button.js +4 -4
- package/lib/Button/css/Button.module.css +6 -22
- package/lib/Buttongroup/Buttongroup.js +1 -1
- package/lib/Buttongroup/Buttongroup.module.css +1 -1
- package/lib/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
- package/lib/Card/Card.js +4 -4
- package/lib/Card/Card.module.css +20 -20
- package/lib/DateTime/DateTime.module.css +8 -11
- package/lib/DateTime/DateWidget.module.css +38 -38
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +7 -11
- package/lib/DropBox/DropBoxPositionMapping.json +144 -144
- package/lib/DropBox/css/DropBox.module.css +1 -1
- package/lib/DropDown/DropDown.module.css +5 -5
- package/lib/DropDown/DropDownSearch.module.css +14 -14
- package/lib/DropDown/DropDownSeparator.module.css +7 -7
- package/lib/Heading/Heading.module.css +4 -4
- package/lib/Layout/Layout.module.css +335 -335
- package/lib/ListItem/ListItem.js +2 -2
- package/lib/ListItem/ListItem.module.css +85 -18
- package/lib/ListItem/ListItemWithAvatar.js +3 -3
- package/lib/ListItem/ListItemWithIcon.js +2 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
- package/lib/MultiSelect/AdvancedMultiSelect.js +3 -1
- package/lib/MultiSelect/MultiSelect.js +13 -8
- package/lib/MultiSelect/SelectedOptions.module.css +15 -15
- package/lib/MultiSelect/Suggestions.js +8 -4
- package/lib/MultiSelect/props/defaultProps.js +8 -5
- package/lib/MultiSelect/props/propTypes.js +8 -6
- package/lib/Popup/PositionMapping.json +73 -73
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
- package/lib/Ribbon/Ribbon.module.css +6 -6
- package/lib/RippleEffect/RippleEffect.module.css +92 -92
- package/lib/Select/GroupSelect.js +8 -3
- package/lib/Select/Select.module.css +134 -134
- package/lib/Select/SelectWithAvatar.js +8 -3
- package/lib/Select/SelectWithIcon.js +8 -3
- package/lib/Select/props/defaultProps.js +5 -3
- package/lib/Select/props/propTypes.js +6 -3
- package/lib/Stencils/Stencils.module.css +96 -96
- package/lib/Switch/Switch.module.css +1 -2
- package/lib/Tab/TabContent.module.css +4 -4
- package/lib/Tab/Tabs.js +11 -11
- package/lib/Tab/Tabs.module.css +3 -3
- package/lib/Tooltip/Tooltip.module.css +140 -143
- package/lib/common/a11y.module.css +3 -3
- package/lib/common/animation.module.css +624 -624
- package/lib/common/avatarsizes.module.css +48 -48
- package/lib/common/basic.module.css +33 -33
- package/lib/common/basicReset.module.css +40 -40
- package/lib/{deprecated → common}/boxShadow.module.css +33 -33
- package/lib/common/common.module.css +524 -524
- package/lib/common/reset.module.css +13 -13
- package/lib/common/transition.module.css +146 -146
- package/lib/semantic/Button/semanticButton.module.css +9 -9
- package/lib/v1/AppContainer/AppContainer.js +2 -0
- package/lib/v1/Card/Card.js +4 -4
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
- package/lib/v1/Tab/Tabs.js +11 -11
- package/lib/v1/Tab/v1TabContent.module.css +4 -4
- package/lib/v1/Tab/v1Tabs.module.css +3 -3
- package/lib/v1/Typography/css/Typography.module.css +380 -380
- package/package.json +7 -11
- package/postPublish.js +8 -8
- package/prePublish.js +70 -70
- package/react-cli.config.js +23 -23
- package/result.json +1 -1
|
@@ -17,8 +17,9 @@
|
|
|
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;
|
|
@@ -34,62 +35,84 @@
|
|
|
34
35
|
border-color: var(--listitem_border_color);
|
|
35
36
|
cursor: pointer;
|
|
36
37
|
}
|
|
38
|
+
|
|
37
39
|
.list, .default, .secondary {
|
|
38
40
|
background-color: var(--listitem_bg_color);
|
|
39
41
|
}
|
|
42
|
+
|
|
40
43
|
[dir=ltr] .withBorder {
|
|
41
|
-
--listitem_border_width: 0 0 0 1px
|
|
44
|
+
--listitem_border_width: 0 0 0 1px
|
|
45
|
+
/*rtl: 0 1px 0 0*/
|
|
46
|
+
;
|
|
42
47
|
}
|
|
48
|
+
|
|
43
49
|
[dir=rtl] .withBorder {
|
|
44
|
-
--listitem_border_width: 0
|
|
50
|
+
--listitem_border_width: 0 0 0 1px ;
|
|
45
51
|
}
|
|
52
|
+
|
|
46
53
|
.active {
|
|
47
54
|
--listitem_border_color: var(--zdt_listitem_active_border);
|
|
48
55
|
}
|
|
56
|
+
|
|
49
57
|
[dir=ltr] .small {
|
|
50
58
|
--listitem_padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5);
|
|
51
59
|
}
|
|
60
|
+
|
|
52
61
|
[dir=rtl] .small {
|
|
53
|
-
--listitem_padding: var(--zd_size7) var(--
|
|
62
|
+
--listitem_padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5);
|
|
54
63
|
}
|
|
64
|
+
|
|
55
65
|
.medium {
|
|
56
66
|
--listitem_padding: var(--zd_size7) var(--zd_size20);
|
|
57
67
|
--listitem_min_height: var(--zd_size35);
|
|
58
68
|
}
|
|
69
|
+
|
|
59
70
|
.large {
|
|
60
71
|
--listitem_height: var(--zd_size48);
|
|
61
72
|
}
|
|
73
|
+
|
|
62
74
|
[dir=ltr] .large {
|
|
63
75
|
--listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25);
|
|
64
76
|
}
|
|
77
|
+
|
|
65
78
|
[dir=rtl] .large {
|
|
66
|
-
--listitem_padding: var(--zd_size10) var(--
|
|
79
|
+
--listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25);
|
|
67
80
|
}
|
|
81
|
+
|
|
68
82
|
.value,
|
|
69
83
|
.children {
|
|
70
84
|
composes: dotted from '../common/common.module.css';
|
|
71
85
|
}
|
|
72
|
-
|
|
86
|
+
|
|
87
|
+
.value {
|
|
73
88
|
line-height: 1.5385;
|
|
74
89
|
}
|
|
75
|
-
|
|
90
|
+
|
|
91
|
+
.multiLineValue {
|
|
92
|
+
line-height: 1.5385;
|
|
76
93
|
word-break: break-word;
|
|
77
|
-
|
|
94
|
+
-webkit-line-clamp: 2;
|
|
95
|
+
composes: clamp from '../common/common.module.css';
|
|
78
96
|
}
|
|
97
|
+
|
|
79
98
|
.iconBox {
|
|
80
99
|
width: var(--zd_size20) ;
|
|
81
100
|
text-align: center;
|
|
82
101
|
}
|
|
102
|
+
|
|
83
103
|
[dir=ltr] .iconBox {
|
|
84
104
|
margin-right: var(--zd_size10) ;
|
|
85
105
|
}
|
|
106
|
+
|
|
86
107
|
[dir=rtl] .iconBox {
|
|
87
108
|
margin-left: var(--zd_size10) ;
|
|
88
109
|
}
|
|
110
|
+
|
|
89
111
|
.iconBox,
|
|
90
112
|
.leftAvatar {
|
|
91
113
|
font-size: 0 ;
|
|
92
114
|
}
|
|
115
|
+
|
|
93
116
|
.leftAvatar {
|
|
94
117
|
margin: var(--listitem_avatar_margin);
|
|
95
118
|
}
|
|
@@ -97,61 +120,78 @@
|
|
|
97
120
|
.defaultHover, .primaryHover, .secondaryHover, .darkHover {
|
|
98
121
|
background-color: var(--listitem_highlight_bg_color);
|
|
99
122
|
}
|
|
123
|
+
|
|
100
124
|
.activewithBorder {
|
|
101
125
|
--listitem_border_color: var(--zdt_listitem_active_border);
|
|
102
126
|
}
|
|
127
|
+
|
|
103
128
|
[dir=ltr] .activewithBorder {
|
|
104
|
-
--listitem_border_width: 0 0 0 1px
|
|
129
|
+
--listitem_border_width: 0 0 0 1px
|
|
130
|
+
/*rtl: 0 1px 0 0*/
|
|
131
|
+
;
|
|
105
132
|
}
|
|
133
|
+
|
|
106
134
|
[dir=rtl] .activewithBorder {
|
|
107
|
-
--listitem_border_width: 0
|
|
135
|
+
--listitem_border_width: 0 0 0 1px ;
|
|
108
136
|
}
|
|
109
137
|
|
|
110
138
|
.defaultHover,
|
|
111
139
|
.defaultEffect:hover
|
|
140
|
+
|
|
112
141
|
/* .defaultEffect:focus */
|
|
113
|
-
{
|
|
142
|
+
{
|
|
114
143
|
--listitem_bg_color: var(--zdt_listitem_highlight_bg);
|
|
115
144
|
}
|
|
145
|
+
|
|
116
146
|
.primaryHover,
|
|
117
147
|
.primaryEffect:hover
|
|
148
|
+
|
|
118
149
|
/* .primaryEffect:focus */
|
|
119
|
-
|
|
150
|
+
{
|
|
120
151
|
--listitem_bg_color: var(--zdt_listitem_primary_bg);
|
|
121
152
|
--listitem_highlight_bg_color: var(--zdt_listitem_primary_bg);
|
|
122
153
|
}
|
|
154
|
+
|
|
123
155
|
.secondaryHover,
|
|
124
156
|
.secondaryEffect:hover
|
|
157
|
+
|
|
125
158
|
/* .secondaryEffect:focus */
|
|
126
|
-
{
|
|
159
|
+
{
|
|
127
160
|
--listitem_bg_color: var(--zdt_listitem_secondary_bg);
|
|
128
161
|
--listitem_highlight_bg_color: var(--zdt_listitem_secondary_bg);
|
|
129
162
|
--listitem_text_color: var(--zdt_listitem_secondary_text);
|
|
130
163
|
}
|
|
164
|
+
|
|
131
165
|
.darkHover,
|
|
132
166
|
.darkEffect:hover
|
|
167
|
+
|
|
133
168
|
/* .darkEffect:focus */
|
|
134
|
-
|
|
169
|
+
{
|
|
135
170
|
--listitem_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
136
171
|
--listitem_highlight_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
137
172
|
}
|
|
173
|
+
|
|
138
174
|
.activedefault, .activeprimary, .activesecondary, .activedark {
|
|
139
175
|
background-color: var(--listitem_active_bg_color);
|
|
140
176
|
}
|
|
177
|
+
|
|
141
178
|
.activedefault,
|
|
142
179
|
.activedefault:hover,
|
|
143
180
|
.activeprimary,
|
|
144
181
|
.activeprimary:hover {
|
|
145
182
|
--listitem_active_bg_color: var(--zdt_listitem_primary_bg);
|
|
146
183
|
}
|
|
184
|
+
|
|
147
185
|
.activesecondary {
|
|
148
186
|
--listitem_active_bg_color: var(--zdt_listitem_secondary_bg);
|
|
149
187
|
--listitem_text_color: var(--zdt_listitem_secondary_text);
|
|
150
188
|
}
|
|
189
|
+
|
|
151
190
|
.dark {
|
|
152
191
|
--listitem_bg_color: var(--zdt_listitem_dark_bg);
|
|
153
192
|
--listitem_text_color: var(--zdt_listitem_dark_text);
|
|
154
193
|
}
|
|
194
|
+
|
|
155
195
|
.activedark {
|
|
156
196
|
--listitem_active_bg_color: var(--zdt_listitem_dark_active_bg);
|
|
157
197
|
}
|
|
@@ -170,36 +210,63 @@
|
|
|
170
210
|
[dir=rtl] .tickIcon, [dir=rtl] .defaultTick, [dir=rtl] .darkTick {
|
|
171
211
|
left: var(--zd_size20) ;
|
|
172
212
|
}
|
|
213
|
+
|
|
173
214
|
.defaultTick {
|
|
174
215
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
175
216
|
}
|
|
217
|
+
|
|
176
218
|
.darkTick {
|
|
177
219
|
--listitem_tickicon_color: var(--zdt_listitem_dark_tickicon);
|
|
178
220
|
}
|
|
179
|
-
|
|
221
|
+
|
|
222
|
+
.defaultTick>i {
|
|
180
223
|
display: block;
|
|
181
224
|
}
|
|
225
|
+
|
|
182
226
|
[dir=ltr] .smallwithTick {
|
|
183
227
|
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size5);
|
|
184
228
|
}
|
|
229
|
+
|
|
185
230
|
[dir=rtl] .smallwithTick {
|
|
186
|
-
--listitem_padding: var(--zd_size7) var(--
|
|
231
|
+
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size5);
|
|
187
232
|
}
|
|
233
|
+
|
|
188
234
|
[dir=ltr] .mediumwithTick {
|
|
189
235
|
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size20);
|
|
190
236
|
}
|
|
237
|
+
|
|
191
238
|
[dir=rtl] .mediumwithTick {
|
|
192
|
-
--listitem_padding: var(--zd_size7) var(--
|
|
239
|
+
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size20);
|
|
193
240
|
}
|
|
241
|
+
|
|
194
242
|
[dir=ltr] .largewithTick {
|
|
195
243
|
--listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10) var(--zd_size25);
|
|
196
244
|
}
|
|
245
|
+
|
|
197
246
|
[dir=rtl] .largewithTick {
|
|
198
|
-
--listitem_padding: var(--zd_size10) var(--
|
|
247
|
+
--listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10) var(--zd_size25);
|
|
199
248
|
}
|
|
249
|
+
|
|
200
250
|
.responsiveHeight {
|
|
201
251
|
--listitem_min_height: var(--zd_size45);
|
|
202
252
|
font-size: var(--zd_font_size15) ;
|
|
203
253
|
padding-top: var(--zd_size10) ;
|
|
204
254
|
padding-bottom: var(--zd_size10) ;
|
|
205
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
|
+
}
|
|
@@ -105,7 +105,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
105
105
|
autoHover: autoHover,
|
|
106
106
|
needTick: needTick,
|
|
107
107
|
needBorder: needBorder,
|
|
108
|
-
customClass: customListItem
|
|
108
|
+
customClass: `${needMultiLineText ? style.autoHeight : ''} ${customListItem}`,
|
|
109
109
|
dataId: `${dataIdString}_ListItemWithAvatar`,
|
|
110
110
|
dataSelectorId: `${dataSelectorId}`,
|
|
111
111
|
onClick: this.handleClick,
|
|
@@ -116,7 +116,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
116
116
|
customProps: ListItemProps,
|
|
117
117
|
...ContainerProps
|
|
118
118
|
}, name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
|
|
119
|
-
className: style.leftAvatar
|
|
119
|
+
className: `${needMultiLineText ? style.alignSelfTop : ''} ${style.leftAvatar}`
|
|
120
120
|
}, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
121
121
|
name: name,
|
|
122
122
|
size: "small",
|
|
@@ -143,7 +143,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
143
143
|
"data-title": isDisabled ? null : title,
|
|
144
144
|
className: needMultiLineText ? style.multiLineValue : style.value
|
|
145
145
|
}, value) : null, needTick && active ? /*#__PURE__*/React.createElement(Box, {
|
|
146
|
-
className: style.tickIcon
|
|
146
|
+
className: `${style.tickIcon} ${needMultiLineText ? style.tickIconCenter : ''}`,
|
|
147
147
|
"aria-hidden": ariaHidden,
|
|
148
148
|
dataId: `${dataIdString}_tickIcon`,
|
|
149
149
|
dataSelectorId: `${dataSelectorId}_tickIcon`
|
|
@@ -95,7 +95,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
95
95
|
autoHover: autoHover,
|
|
96
96
|
needTick: needTick,
|
|
97
97
|
needBorder: needBorder,
|
|
98
|
-
customClass: customClass
|
|
98
|
+
customClass: `${needMultiLineText ? style.autoHeight : ''} ${needMultiLineText && iconClass && !iconName ? style.txtAlignBaseLine : ''} ${customClass}`,
|
|
99
99
|
dataId: dataIdString,
|
|
100
100
|
dataSelectorId: dataSelectorId,
|
|
101
101
|
isLink: isLink,
|
|
@@ -125,7 +125,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
125
125
|
"data-title": isDisabled ? null : title,
|
|
126
126
|
dataId: `${dataIdString}_Text`
|
|
127
127
|
}, value), needTick && active ? /*#__PURE__*/React.createElement(Box, {
|
|
128
|
-
className: style.tickIcon
|
|
128
|
+
className: `${style.tickIcon} ${needMultiLineText ? style.tickIconCenter : ''}`,
|
|
129
129
|
"aria-hidden": ariaHidden,
|
|
130
130
|
dataId: `${dataIdString}_tickIcon`,
|
|
131
131
|
dataSelectorId: `${dataSelectorId}_tickIcon`
|
|
@@ -870,8 +870,12 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
870
870
|
a11y,
|
|
871
871
|
palette,
|
|
872
872
|
needEffect,
|
|
873
|
-
autoComplete
|
|
873
|
+
autoComplete,
|
|
874
|
+
customProps
|
|
874
875
|
} = this.props;
|
|
876
|
+
const {
|
|
877
|
+
suggestionsProps
|
|
878
|
+
} = customProps;
|
|
875
879
|
let {
|
|
876
880
|
clearText = 'Clear all'
|
|
877
881
|
} = i18nKeys;
|
|
@@ -1042,7 +1046,8 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
1042
1046
|
listItemSize: listItemSize,
|
|
1043
1047
|
a11y: {
|
|
1044
1048
|
role: 'option'
|
|
1045
|
-
}
|
|
1049
|
+
},
|
|
1050
|
+
...suggestionsProps
|
|
1046
1051
|
}));
|
|
1047
1052
|
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
1048
1053
|
options: revampedGroups,
|
|
@@ -537,7 +537,8 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
537
537
|
a11y: {
|
|
538
538
|
role: 'option'
|
|
539
539
|
},
|
|
540
|
-
...SuggestionsProps
|
|
540
|
+
...SuggestionsProps,
|
|
541
|
+
needMultiLineText: true
|
|
541
542
|
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
542
543
|
isLoading: isFetchingOptions,
|
|
543
544
|
options: options,
|
|
@@ -321,8 +321,8 @@ export class MultiSelectComponent extends React.Component {
|
|
|
321
321
|
if (suggestionsLen && isPopupOpen && keyCode === 38) {
|
|
322
322
|
//up arrow
|
|
323
323
|
|
|
324
|
-
/*if (hoverOption === 0) { //disable first to last option higlight
|
|
325
|
-
!isNextOptions && this.setState({ hoverOption: suggestionsLen - 1 });
|
|
324
|
+
/*if (hoverOption === 0) { //disable first to last option higlight
|
|
325
|
+
!isNextOptions && this.setState({ hoverOption: suggestionsLen - 1 });
|
|
326
326
|
}*/
|
|
327
327
|
if (hoverOption) {
|
|
328
328
|
this.setState({
|
|
@@ -332,9 +332,9 @@ export class MultiSelectComponent extends React.Component {
|
|
|
332
332
|
} else if (suggestionsLen && isPopupOpen && keyCode === 40) {
|
|
333
333
|
//down arrow
|
|
334
334
|
|
|
335
|
-
/*else if (hoverOption === suggestionsLen - 1 || hoverOption === null) {
|
|
336
|
-
//disable last to first option higlight
|
|
337
|
-
!isNextOptions && this.setState({ hoverOption: 0 });
|
|
335
|
+
/*else if (hoverOption === suggestionsLen - 1 || hoverOption === null) {
|
|
336
|
+
//disable last to first option higlight
|
|
337
|
+
!isNextOptions && this.setState({ hoverOption: 0 });
|
|
338
338
|
}*/
|
|
339
339
|
if (isNextOptions && suggestionsLen >= 5 && hoverOption === suggestionsLen - 3) {
|
|
340
340
|
getNextOptions && this.handleFetchOptions(getNextOptions, searchStr);
|
|
@@ -990,8 +990,12 @@ export class MultiSelectComponent extends React.Component {
|
|
|
990
990
|
boxSize,
|
|
991
991
|
isLoading,
|
|
992
992
|
selectAllText,
|
|
993
|
-
needSelectAll
|
|
993
|
+
needSelectAll,
|
|
994
|
+
customProps
|
|
994
995
|
} = this.props;
|
|
996
|
+
const {
|
|
997
|
+
suggestionsProps = {}
|
|
998
|
+
} = customProps;
|
|
995
999
|
const {
|
|
996
1000
|
selectedOptions,
|
|
997
1001
|
searchStr,
|
|
@@ -1076,7 +1080,8 @@ export class MultiSelectComponent extends React.Component {
|
|
|
1076
1080
|
selectedOptions: selectedOptionIds,
|
|
1077
1081
|
a11y: {
|
|
1078
1082
|
role: 'option'
|
|
1079
|
-
}
|
|
1083
|
+
},
|
|
1084
|
+
...suggestionsProps
|
|
1080
1085
|
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
1081
1086
|
isLoading: isFetchingOptions,
|
|
1082
1087
|
options: options,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
.tag {
|
|
2
|
-
max-width: 100% ;
|
|
3
|
-
}
|
|
4
|
-
[dir=ltr] .xmedium {
|
|
5
|
-
margin: 0 var(--zd_size10) var(--zd_size2) 0 ;
|
|
6
|
-
}
|
|
7
|
-
[dir=rtl] .xmedium {
|
|
8
|
-
margin: 0 0 var(--zd_size2) var(--zd_size10) ;
|
|
9
|
-
}
|
|
10
|
-
[dir=ltr] .medium {
|
|
11
|
-
margin: var(--zd_size5) var(--zd_size10) 0 0 ;
|
|
12
|
-
}
|
|
13
|
-
[dir=rtl] .medium {
|
|
14
|
-
margin: var(--zd_size5) 0 0 var(--zd_size10) ;
|
|
15
|
-
}
|
|
1
|
+
.tag {
|
|
2
|
+
max-width: 100% ;
|
|
3
|
+
}
|
|
4
|
+
[dir=ltr] .xmedium {
|
|
5
|
+
margin: 0 var(--zd_size10) var(--zd_size2) 0 ;
|
|
6
|
+
}
|
|
7
|
+
[dir=rtl] .xmedium {
|
|
8
|
+
margin: 0 0 var(--zd_size2) var(--zd_size10) ;
|
|
9
|
+
}
|
|
10
|
+
[dir=ltr] .medium {
|
|
11
|
+
margin: var(--zd_size5) var(--zd_size10) 0 0 ;
|
|
12
|
+
}
|
|
13
|
+
[dir=rtl] .medium {
|
|
14
|
+
margin: var(--zd_size5) 0 0 var(--zd_size10) ;
|
|
15
|
+
}
|
|
@@ -27,7 +27,8 @@ export default class Suggestions extends React.PureComponent {
|
|
|
27
27
|
avatarPalette,
|
|
28
28
|
palette,
|
|
29
29
|
htmlId,
|
|
30
|
-
a11y
|
|
30
|
+
a11y,
|
|
31
|
+
needMultiLineText
|
|
31
32
|
} = this.props;
|
|
32
33
|
const {
|
|
33
34
|
ariaParentRole,
|
|
@@ -92,7 +93,8 @@ export default class Suggestions extends React.PureComponent {
|
|
|
92
93
|
size: listItemSize,
|
|
93
94
|
avatarPalette: avatarPalette,
|
|
94
95
|
palette: palette,
|
|
95
|
-
a11y: list_a11y
|
|
96
|
+
a11y: list_a11y,
|
|
97
|
+
needMultiLineText: needMultiLineText
|
|
96
98
|
});
|
|
97
99
|
} else if (optionType === 'icon') {
|
|
98
100
|
return /*#__PURE__*/React.createElement(ListItemWithIcon, { ...commonProps,
|
|
@@ -112,7 +114,8 @@ export default class Suggestions extends React.PureComponent {
|
|
|
112
114
|
iconSize: iconSize,
|
|
113
115
|
size: listItemSize,
|
|
114
116
|
palette: palette,
|
|
115
|
-
a11y: list_a11y
|
|
117
|
+
a11y: list_a11y,
|
|
118
|
+
needMultiLineText: needMultiLineText
|
|
116
119
|
});
|
|
117
120
|
}
|
|
118
121
|
|
|
@@ -131,7 +134,8 @@ export default class Suggestions extends React.PureComponent {
|
|
|
131
134
|
active: isActive,
|
|
132
135
|
size: listItemSize,
|
|
133
136
|
palette: palette,
|
|
134
|
-
a11y: list_a11y
|
|
137
|
+
a11y: list_a11y,
|
|
138
|
+
needMultiLineText: needMultiLineText
|
|
135
139
|
});
|
|
136
140
|
})));
|
|
137
141
|
}
|
|
@@ -35,7 +35,8 @@ export const AdvancedGroupMultiSelect_defaultProps = {
|
|
|
35
35
|
needEffect: true,
|
|
36
36
|
palette: 'default',
|
|
37
37
|
isLoading: false,
|
|
38
|
-
dataSelectorId: 'advancedGroupMultiSelect'
|
|
38
|
+
dataSelectorId: 'advancedGroupMultiSelect',
|
|
39
|
+
customProps: {}
|
|
39
40
|
};
|
|
40
41
|
export const AdvancedMultiSelect_defaultProps = {
|
|
41
42
|
animationStyle: 'bounce',
|
|
@@ -111,7 +112,8 @@ export const MultiSelect_defaultProps = {
|
|
|
111
112
|
keepSelectedOptions: false,
|
|
112
113
|
selectedOptionsCount: 0,
|
|
113
114
|
cardHeaderName: '',
|
|
114
|
-
needResponsive: true
|
|
115
|
+
needResponsive: true,
|
|
116
|
+
customProps: {}
|
|
115
117
|
};
|
|
116
118
|
export const MultiSelectHeader_defaultProps = {
|
|
117
119
|
dataId: 'MultiSelectHeader'
|
|
@@ -145,12 +147,13 @@ export const MultiSelectWithAvatar_defaultProps = {
|
|
|
145
147
|
isLoading: false,
|
|
146
148
|
dataSelectorId: 'multiSelectWithAvatar',
|
|
147
149
|
keepSelectedOptions: false,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
+
needResponsive: true,
|
|
151
|
+
customProps: {}
|
|
150
152
|
};
|
|
151
153
|
export const SelectedOptions_defaultProps = {
|
|
152
154
|
size: 'medium'
|
|
153
155
|
};
|
|
154
156
|
export const Suggestions_defaultProps = {
|
|
155
|
-
a11y: {}
|
|
157
|
+
a11y: {},
|
|
158
|
+
needMultiLineText: false
|
|
156
159
|
};
|
|
@@ -104,7 +104,8 @@ export const MultiSelect_propTypes = {
|
|
|
104
104
|
needSelectAll: PropTypes.bool,
|
|
105
105
|
selectAllText: PropTypes.string,
|
|
106
106
|
setAriaId: PropTypes.string,
|
|
107
|
-
ariaErrorId: PropTypes.string
|
|
107
|
+
ariaErrorId: PropTypes.string,
|
|
108
|
+
customProps: PropTypes.string
|
|
108
109
|
};
|
|
109
110
|
export const MultiSelectHeader_propTypes = {
|
|
110
111
|
dataId: PropTypes.string,
|
|
@@ -168,7 +169,8 @@ export const Suggestions_propTypes = {
|
|
|
168
169
|
logo: PropTypes.string,
|
|
169
170
|
optionType: PropTypes.string,
|
|
170
171
|
listItemProps: PropTypes.object
|
|
171
|
-
}))
|
|
172
|
+
})),
|
|
173
|
+
needMultiLineText: PropTypes.bool
|
|
172
174
|
};
|
|
173
175
|
export const AdvancedGroupMultiSelect_propTypes = {
|
|
174
176
|
animationStyle: PropTypes.string,
|
|
@@ -234,7 +236,8 @@ export const AdvancedGroupMultiSelect_propTypes = {
|
|
|
234
236
|
needToCloseOnSelect: PropTypes.func,
|
|
235
237
|
searchStr: PropTypes.string,
|
|
236
238
|
children: PropTypes.node,
|
|
237
|
-
dataSelectorId: PropTypes.string
|
|
239
|
+
dataSelectorId: PropTypes.string,
|
|
240
|
+
customProps: PropTypes.string
|
|
238
241
|
};
|
|
239
242
|
export const AdvancedMultiSelect_propTypes = { ...MultiSelect_propTypes,
|
|
240
243
|
selectedOptionDetails: PropTypes.string,
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
{
|
|
2
|
-
"absolutePositionMapping" : {
|
|
3
|
-
"bottomCenter": "bottomCenter",
|
|
4
|
-
"bottomRight": "bottomLeftToRight",
|
|
5
|
-
"bottomLeft": "bottomRightToLeft",
|
|
6
|
-
"topCenter": "topCenter",
|
|
7
|
-
"topRight": "topLeftToRight",
|
|
8
|
-
"topLeft": "topRightToLeft",
|
|
9
|
-
"rightCenter": "rightCenter",
|
|
10
|
-
"rightBottom": "rightTopToBottom",
|
|
11
|
-
"rightTop": "rightBottomToTop",
|
|
12
|
-
"leftCenter": "leftCenter",
|
|
13
|
-
"leftBottom": "leftTopToBottom",
|
|
14
|
-
"leftTop": "leftBottomToTop",
|
|
15
|
-
"bottomLeftToRight": "bottomLeftToRight",
|
|
16
|
-
"bottomRightToLeft": "bottomRightToLeft",
|
|
17
|
-
"topLeftToRight": "topLeftToRight",
|
|
18
|
-
"topRightToLeft": "topRightToLeft",
|
|
19
|
-
"rightTopToBottom": "rightTopToBottom",
|
|
20
|
-
"rightBottomToTop": "rightBottomToTop",
|
|
21
|
-
"leftTopToBottom": "leftTopToBottom"
|
|
22
|
-
},
|
|
23
|
-
"rtlAbsolutePositionMapping" : {
|
|
24
|
-
"bottomCenter": "bottomCenter",
|
|
25
|
-
"bottomRight": "bottomRightToLeft",
|
|
26
|
-
"bottomLeft": "bottomLeftToRight",
|
|
27
|
-
"topCenter": "topCenter",
|
|
28
|
-
"topRight": "topRightToLeft",
|
|
29
|
-
"topLeft": "topLeftToRight",
|
|
30
|
-
"rightCenter": "leftCenter",
|
|
31
|
-
"rightBottom": "leftTopToBottom",
|
|
32
|
-
"rightTop": "leftBottomToTop",
|
|
33
|
-
"leftCenter": "rightCenter",
|
|
34
|
-
"leftBottom": "rightTopToBottom",
|
|
35
|
-
"leftTop": "rightBottomToTop",
|
|
36
|
-
"bottomLeftToRight": "bottomLeftToRight",
|
|
37
|
-
"bottomRightToLeft": "bottomRightToLeft",
|
|
38
|
-
"topLeftToRight": "topLeftToRight",
|
|
39
|
-
"topRightToLeft": "topRightToLeft",
|
|
40
|
-
"rightTopToBottom": "rightTopToBottom",
|
|
41
|
-
"rightBottomToTop": "rightBottomToTop",
|
|
42
|
-
"leftTopToBottom": "leftTopToBottom"
|
|
43
|
-
},
|
|
44
|
-
"rtlFixedPositionMapping": {
|
|
45
|
-
"bottomCenter":"bottomCenter",
|
|
46
|
-
"bottomLeftToRight": "bottomRightToLeft",
|
|
47
|
-
"bottomCenterToRight": "bottomCenterToLeft",
|
|
48
|
-
"bottomRightToLeft": "bottomLeftToRight",
|
|
49
|
-
"bottomCenterToLeft": "bottomCenterToRight",
|
|
50
|
-
"topCenter": "topCenter",
|
|
51
|
-
"topLeftToRight": "topRightToLeft",
|
|
52
|
-
"topCenterToRight": "topCenterToLeft",
|
|
53
|
-
"topRightToLeft": "topLeftToRight",
|
|
54
|
-
"topCenterToLeft": "topCenterToRight",
|
|
55
|
-
"rightTopToBottom": "leftTopToBottom",
|
|
56
|
-
"rightCenterToBottom": "leftCenterToBottom",
|
|
57
|
-
"rightCenter": "leftCenter",
|
|
58
|
-
"rightBottomToTop": "leftBottomToTop",
|
|
59
|
-
"rightCenterToTop": "leftCenterToTop",
|
|
60
|
-
"leftTopToBottom": "rightTopToBottom",
|
|
61
|
-
"leftCenterToBottom": "rightCenterToBottom",
|
|
62
|
-
"leftCenter": "rightCenter",
|
|
63
|
-
"leftBottomToTop": "rightBottomToTop",
|
|
64
|
-
"leftCenterToTop": "rightCenterToTop",
|
|
65
|
-
"bottomRight": "bottomLeft",
|
|
66
|
-
"bottomLeft": "bottomRight",
|
|
67
|
-
"topRight": "topLeft",
|
|
68
|
-
"topLeft": "topRight",
|
|
69
|
-
"rightBottom": "leftBottom",
|
|
70
|
-
"rightTop": "leftTop",
|
|
71
|
-
"leftBottom": "rightBottom",
|
|
72
|
-
"leftTop": "rightTop"
|
|
73
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"absolutePositionMapping" : {
|
|
3
|
+
"bottomCenter": "bottomCenter",
|
|
4
|
+
"bottomRight": "bottomLeftToRight",
|
|
5
|
+
"bottomLeft": "bottomRightToLeft",
|
|
6
|
+
"topCenter": "topCenter",
|
|
7
|
+
"topRight": "topLeftToRight",
|
|
8
|
+
"topLeft": "topRightToLeft",
|
|
9
|
+
"rightCenter": "rightCenter",
|
|
10
|
+
"rightBottom": "rightTopToBottom",
|
|
11
|
+
"rightTop": "rightBottomToTop",
|
|
12
|
+
"leftCenter": "leftCenter",
|
|
13
|
+
"leftBottom": "leftTopToBottom",
|
|
14
|
+
"leftTop": "leftBottomToTop",
|
|
15
|
+
"bottomLeftToRight": "bottomLeftToRight",
|
|
16
|
+
"bottomRightToLeft": "bottomRightToLeft",
|
|
17
|
+
"topLeftToRight": "topLeftToRight",
|
|
18
|
+
"topRightToLeft": "topRightToLeft",
|
|
19
|
+
"rightTopToBottom": "rightTopToBottom",
|
|
20
|
+
"rightBottomToTop": "rightBottomToTop",
|
|
21
|
+
"leftTopToBottom": "leftTopToBottom"
|
|
22
|
+
},
|
|
23
|
+
"rtlAbsolutePositionMapping" : {
|
|
24
|
+
"bottomCenter": "bottomCenter",
|
|
25
|
+
"bottomRight": "bottomRightToLeft",
|
|
26
|
+
"bottomLeft": "bottomLeftToRight",
|
|
27
|
+
"topCenter": "topCenter",
|
|
28
|
+
"topRight": "topRightToLeft",
|
|
29
|
+
"topLeft": "topLeftToRight",
|
|
30
|
+
"rightCenter": "leftCenter",
|
|
31
|
+
"rightBottom": "leftTopToBottom",
|
|
32
|
+
"rightTop": "leftBottomToTop",
|
|
33
|
+
"leftCenter": "rightCenter",
|
|
34
|
+
"leftBottom": "rightTopToBottom",
|
|
35
|
+
"leftTop": "rightBottomToTop",
|
|
36
|
+
"bottomLeftToRight": "bottomLeftToRight",
|
|
37
|
+
"bottomRightToLeft": "bottomRightToLeft",
|
|
38
|
+
"topLeftToRight": "topLeftToRight",
|
|
39
|
+
"topRightToLeft": "topRightToLeft",
|
|
40
|
+
"rightTopToBottom": "rightTopToBottom",
|
|
41
|
+
"rightBottomToTop": "rightBottomToTop",
|
|
42
|
+
"leftTopToBottom": "leftTopToBottom"
|
|
43
|
+
},
|
|
44
|
+
"rtlFixedPositionMapping": {
|
|
45
|
+
"bottomCenter":"bottomCenter",
|
|
46
|
+
"bottomLeftToRight": "bottomRightToLeft",
|
|
47
|
+
"bottomCenterToRight": "bottomCenterToLeft",
|
|
48
|
+
"bottomRightToLeft": "bottomLeftToRight",
|
|
49
|
+
"bottomCenterToLeft": "bottomCenterToRight",
|
|
50
|
+
"topCenter": "topCenter",
|
|
51
|
+
"topLeftToRight": "topRightToLeft",
|
|
52
|
+
"topCenterToRight": "topCenterToLeft",
|
|
53
|
+
"topRightToLeft": "topLeftToRight",
|
|
54
|
+
"topCenterToLeft": "topCenterToRight",
|
|
55
|
+
"rightTopToBottom": "leftTopToBottom",
|
|
56
|
+
"rightCenterToBottom": "leftCenterToBottom",
|
|
57
|
+
"rightCenter": "leftCenter",
|
|
58
|
+
"rightBottomToTop": "leftBottomToTop",
|
|
59
|
+
"rightCenterToTop": "leftCenterToTop",
|
|
60
|
+
"leftTopToBottom": "rightTopToBottom",
|
|
61
|
+
"leftCenterToBottom": "rightCenterToBottom",
|
|
62
|
+
"leftCenter": "rightCenter",
|
|
63
|
+
"leftBottomToTop": "rightBottomToTop",
|
|
64
|
+
"leftCenterToTop": "rightCenterToTop",
|
|
65
|
+
"bottomRight": "bottomLeft",
|
|
66
|
+
"bottomLeft": "bottomRight",
|
|
67
|
+
"topRight": "topLeft",
|
|
68
|
+
"topLeft": "topRight",
|
|
69
|
+
"rightBottom": "leftBottom",
|
|
70
|
+
"rightTop": "leftTop",
|
|
71
|
+
"leftBottom": "rightBottom",
|
|
72
|
+
"leftTop": "rightTop"
|
|
73
|
+
}
|
|
74
74
|
}
|