@zohodesk/components 1.0.0-temp-199.5 → 1.0.0-temp-215
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cli/propValidation_report.html +1 -1
- package/README.md +19 -0
- package/es/CheckBox/CheckBox.js +6 -5
- package/es/CheckBox/CheckBox.module.css +5 -2
- package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +64 -64
- package/es/DateTime/DateTime.js +8 -4
- package/es/DateTime/DateWidget.js +8 -1
- package/es/DateTime/props/propTypes.js +5 -0
- package/es/DropBox/DropBoxElement/DropBoxElement.js +1 -0
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +53 -48
- package/es/DropBox/DropBoxElement/css/cssJSLogic.js +4 -4
- package/es/ListItem/ListItem.js +2 -2
- package/es/ListItem/ListItem.module.css +18 -85
- package/es/ListItem/ListItemWithAvatar.js +3 -3
- package/es/ListItem/ListItemWithIcon.js +2 -2
- package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +2 -2
- package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +1 -1
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +4 -7
- package/es/MultiSelect/AdvancedMultiSelect.js +5 -4
- package/es/MultiSelect/MultiSelect.js +6 -9
- package/es/MultiSelect/Suggestions.js +4 -8
- package/es/MultiSelect/props/defaultProps.js +4 -6
- package/es/MultiSelect/props/propTypes.js +7 -7
- package/es/Popup/Popup.js +173 -35
- package/es/Popup/intersectionObserver.js +33 -23
- package/es/Popup/props/propTypes.js +1 -1
- package/es/Radio/Radio.js +9 -7
- package/es/Radio/Radio.module.css +1 -1
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +77 -77
- package/es/Select/GroupSelect.js +9 -7
- package/es/Select/SelectWithAvatar.js +2 -7
- package/es/Select/SelectWithIcon.js +2 -4
- package/es/Select/props/defaultProps.js +1 -2
- package/es/Select/props/propTypes.js +5 -3
- package/es/Textarea/Textarea.js +4 -2
- package/es/Textarea/Textarea.module.css +1 -1
- package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +41 -41
- package/es/Textarea/props/propTypes.js +2 -1
- package/es/Typography/Typography.js +38 -0
- package/es/Typography/css/Typography.module.css +489 -0
- package/es/Typography/css/cssJSLogic.js +56 -0
- package/es/Typography/props/defaultProps.js +8 -0
- package/es/Typography/props/propTypes.js +27 -0
- package/es/Typography/utils/index.js +50 -0
- package/es/index.js +1 -1
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +1 -2
- package/es/v1/MultiSelect/MultiSelect.js +2 -7
- package/es/v1/MultiSelect/Suggestions.js +4 -8
- package/es/v1/MultiSelect/props/defaultProps.js +2 -4
- package/es/v1/MultiSelect/props/propTypes.js +2 -6
- package/es/v1/Select/GroupSelect.js +2 -7
- package/es/v1/Select/SelectWithAvatar.js +2 -7
- package/es/v1/Select/props/defaultProps.js +2 -4
- package/es/v1/Select/props/propTypes.js +2 -6
- package/es/v1/Typography/Typography.js +1 -1
- package/lib/CheckBox/CheckBox.js +5 -4
- package/lib/CheckBox/CheckBox.module.css +5 -2
- package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +64 -64
- package/lib/DateTime/DateTime.js +11 -5
- package/lib/DateTime/DateWidget.js +8 -1
- package/lib/DateTime/props/propTypes.js +5 -0
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +1 -0
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +53 -48
- package/lib/DropBox/DropBoxElement/css/cssJSLogic.js +2 -2
- 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/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +2 -2
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +1 -1
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +5 -7
- package/lib/MultiSelect/AdvancedMultiSelect.js +5 -5
- package/lib/MultiSelect/MultiSelect.js +7 -8
- package/lib/MultiSelect/Suggestions.js +4 -8
- package/lib/MultiSelect/props/defaultProps.js +4 -6
- package/lib/MultiSelect/props/propTypes.js +7 -7
- package/lib/Popup/Popup.js +212 -74
- package/lib/Popup/intersectionObserver.js +35 -25
- package/lib/Popup/props/propTypes.js +1 -1
- package/lib/Radio/Radio.js +10 -7
- package/lib/Radio/Radio.module.css +1 -1
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +77 -77
- package/lib/Select/GroupSelect.js +10 -8
- package/lib/Select/SelectWithAvatar.js +3 -8
- package/lib/Select/SelectWithIcon.js +3 -5
- package/lib/Select/props/defaultProps.js +1 -2
- package/lib/Select/props/propTypes.js +5 -3
- package/lib/Textarea/Textarea.js +4 -2
- package/lib/Textarea/Textarea.module.css +1 -1
- package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +41 -41
- package/lib/Textarea/props/propTypes.js +2 -1
- package/lib/Typography/Typography.js +56 -0
- package/lib/Typography/css/Typography.module.css +489 -0
- package/lib/Typography/css/cssJSLogic.js +48 -0
- package/lib/Typography/props/defaultProps.js +15 -0
- package/lib/Typography/props/propTypes.js +38 -0
- package/lib/Typography/utils/index.js +59 -0
- package/lib/index.js +1 -1
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +1 -3
- package/lib/v1/MultiSelect/MultiSelect.js +3 -8
- package/lib/v1/MultiSelect/Suggestions.js +4 -8
- package/lib/v1/MultiSelect/props/defaultProps.js +2 -4
- package/lib/v1/MultiSelect/props/propTypes.js +2 -6
- package/lib/v1/Select/GroupSelect.js +3 -8
- package/lib/v1/Select/SelectWithAvatar.js +3 -8
- package/lib/v1/Select/props/defaultProps.js +2 -4
- package/lib/v1/Select/props/propTypes.js +2 -6
- package/lib/v1/Typography/Typography.js +2 -2
- package/package.json +4 -4
- package/result.json +1 -1
- /package/es/v1/Typography/css/{Typography.module.css → v1_Typography.module.css} +0 -0
- /package/lib/v1/Typography/css/{Typography.module.css → v1_Typography.module.css} +0 -0
|
@@ -128,7 +128,8 @@ class DateWidgetComponent extends React.Component {
|
|
|
128
128
|
dateFormat = '',
|
|
129
129
|
is24Hour,
|
|
130
130
|
isHideCurrentYear,
|
|
131
|
-
getPopupProps
|
|
131
|
+
getPopupProps,
|
|
132
|
+
onDropboxClose
|
|
132
133
|
} = this.props;
|
|
133
134
|
|
|
134
135
|
if (validation && validation.validate) {
|
|
@@ -162,6 +163,8 @@ class DateWidgetComponent extends React.Component {
|
|
|
162
163
|
if (prevProps.isPopupReady !== isPopupReady) {
|
|
163
164
|
if (isPopupReady) {
|
|
164
165
|
this.resetLocalDate && this.resetLocalDate();
|
|
166
|
+
} else {
|
|
167
|
+
typeof onDropboxClose === 'function' && onDropboxClose();
|
|
165
168
|
}
|
|
166
169
|
|
|
167
170
|
if (getPopupProps) {
|
|
@@ -1004,6 +1007,8 @@ class DateWidgetComponent extends React.Component {
|
|
|
1004
1007
|
a11y,
|
|
1005
1008
|
boxSize,
|
|
1006
1009
|
onError,
|
|
1010
|
+
renderCustomHeader,
|
|
1011
|
+
renderCustomFooter,
|
|
1007
1012
|
weekStartDay,
|
|
1008
1013
|
holidays,
|
|
1009
1014
|
customProps = {}
|
|
@@ -1108,6 +1113,8 @@ class DateWidgetComponent extends React.Component {
|
|
|
1108
1113
|
dropBoxPortalId: dropBoxPortalId,
|
|
1109
1114
|
boxSize: boxSize,
|
|
1110
1115
|
onError: onError,
|
|
1116
|
+
renderCustomHeader: renderCustomHeader,
|
|
1117
|
+
renderCustomFooter: renderCustomFooter,
|
|
1111
1118
|
customProps: DateTimeProps,
|
|
1112
1119
|
weekStartDay: weekStartDay,
|
|
1113
1120
|
holidays: holidays
|
|
@@ -75,6 +75,8 @@ export const DateTime_propTypes = {
|
|
|
75
75
|
targetOffset: PropTypes.string,
|
|
76
76
|
isRestrictScroll: PropTypes.bool,
|
|
77
77
|
dropBoxPortalId: PropTypes.string,
|
|
78
|
+
renderCustomHeader: PropTypes.node,
|
|
79
|
+
renderCustomFooter: PropTypes.node,
|
|
78
80
|
customProps: PropTypes.object,
|
|
79
81
|
weekStartDay: PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]),
|
|
80
82
|
holidays: PropTypes.arrayOf(PropTypes.number)
|
|
@@ -146,6 +148,9 @@ export const DateWidget_propTypes = {
|
|
|
146
148
|
dropBoxPortalId: PropTypes.string,
|
|
147
149
|
a11y: PropTypes.object,
|
|
148
150
|
getPopupProps: PropTypes.func,
|
|
151
|
+
renderCustomHeader: PropTypes.node,
|
|
152
|
+
renderCustomFooter: PropTypes.node,
|
|
153
|
+
onDropboxClose: PropTypes.func,
|
|
149
154
|
customProps: PropTypes.object,
|
|
150
155
|
weekStartDay: PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]),
|
|
151
156
|
holidays: PropTypes.arrayOf(PropTypes.number)
|
|
@@ -73,19 +73,19 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/* shadow */
|
|
76
|
-
.
|
|
76
|
+
[data-boxdirection="top"].shadow {
|
|
77
77
|
--dropbox_box_shadow: var(--zd_bs_dropbox_top);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.
|
|
80
|
+
[data-boxdirection="left"].shadow {
|
|
81
81
|
--dropbox_box_shadow: var(--zd_bs_dropbox_left);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
.
|
|
84
|
+
[data-boxdirection="right"].shadow {
|
|
85
85
|
--dropbox_box_shadow: var(--zd_bs_dropbox_right);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
.
|
|
88
|
+
[data-boxdirection="bottom"].shadow {
|
|
89
89
|
--dropbox_box_shadow: var(--zd_bs_dropbox_bottom);
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -158,37 +158,37 @@
|
|
|
158
158
|
transform: translateY(-50%);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
/* space for arrow */
|
|
162
|
-
.
|
|
161
|
+
/* space for arrow using data-boxdirection attribute*/
|
|
162
|
+
[data-boxdirection="top"].arrow {
|
|
163
163
|
padding-bottom: var(--zd_size10) ;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
.
|
|
166
|
+
[data-boxdirection="right"].arrow {
|
|
167
167
|
padding-left: var(--zd_size10) ;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
.
|
|
170
|
+
[data-boxdirection="left"].arrow {
|
|
171
171
|
padding-right: var(--zd_size10) ;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
.
|
|
174
|
+
[data-boxdirection="bottom"].arrow {
|
|
175
175
|
padding-top: var(--zd_size10) ;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
/* space from target */
|
|
179
|
-
.
|
|
178
|
+
/* space from target using data-boxdirection attribute*/
|
|
179
|
+
[data-boxdirection="top"].paddingSpace {
|
|
180
180
|
padding-bottom: var(--zd_size5) ;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
.
|
|
183
|
+
[data-boxdirection="right"].paddingSpace {
|
|
184
184
|
padding-left: var(--zd_size5) ;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
.
|
|
187
|
+
[data-boxdirection="left"].paddingSpace {
|
|
188
188
|
padding-right: var(--zd_size5) ;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
.
|
|
191
|
+
[data-boxdirection="bottom"].paddingSpace {
|
|
192
192
|
padding-top: var(--zd_size5) ;
|
|
193
193
|
}
|
|
194
194
|
|
|
@@ -219,101 +219,102 @@
|
|
|
219
219
|
composes: arrow;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
[data-boxdirection="top"].boxDirection.start,
|
|
223
|
+
[data-boxdirection="top"].boxDirection.end,
|
|
224
|
+
[data-boxdirection="top"].boxDirection.mid {
|
|
225
225
|
bottom: calc( var(--zd_size17) * -1 ) ;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
|
|
228
|
+
[data-boxdirection="top"].boxDirection.start {
|
|
229
229
|
left: var(--zd_size28) ;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
|
|
232
|
+
[data-boxdirection="top"].boxDirection.end {
|
|
233
233
|
right: var(--zd_size28) ;
|
|
234
234
|
transform: rotate(180deg) translateX(-50%);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
|
|
237
|
+
[data-boxdirection="top"].boxDirection.mid {
|
|
238
238
|
left: 50% ;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
[data-boxdirection="top"].boxDirection.start,
|
|
242
|
+
[data-boxdirection="top"].boxDirection.mid {
|
|
243
243
|
transform: rotate(180deg) translateX(50%);
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
246
|
+
[data-boxdirection="bottom"].boxDirection.start,
|
|
247
|
+
[data-boxdirection="bottom"].boxDirection.end,
|
|
248
|
+
[data-boxdirection="bottom"].boxDirection.mid {
|
|
249
249
|
top: calc( var(--zd_size17) * -1 ) ;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
|
|
252
|
+
[data-boxdirection="bottom"].boxDirection.start {
|
|
253
253
|
left: var(--zd_size28) ;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
|
|
256
|
+
[data-boxdirection="bottom"].boxDirection.mid {
|
|
257
257
|
left: 50% ;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
|
|
260
|
+
[data-boxdirection="bottom"].boxDirection.end {
|
|
261
261
|
right: var(--zd_size28) ;
|
|
262
262
|
transform: translateX(50%);
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
[data-boxdirection="bottom"].boxDirection.mid,
|
|
266
|
+
[data-boxdirection="bottom"].boxDirection.start {
|
|
267
267
|
transform: translateX(-50%);
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
270
|
+
[data-boxdirection="left"].boxDirection.start,
|
|
271
|
+
[data-boxdirection="left"].boxDirection.mid,
|
|
272
|
+
[data-boxdirection="left"].boxDirection.end {
|
|
273
273
|
right: calc( var(--zd_size17) * -1 ) ;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
|
|
276
|
+
[data-boxdirection="left"].boxDirection.start {
|
|
277
277
|
top: var(--zd_size28) ;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
|
|
280
|
+
[data-boxdirection="left"].boxDirection.end {
|
|
281
281
|
transform: rotate(90deg) translateX(50%);
|
|
282
282
|
bottom: var(--zd_size28) ;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
|
|
285
|
+
[data-boxdirection="left"].boxDirection.mid {
|
|
286
286
|
top: 50% ;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
[data-boxdirection="left"].boxDirection.start,
|
|
290
|
+
[data-boxdirection="left"].boxDirection.mid {
|
|
291
291
|
transform: rotate(90deg) translateX(-50%);
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
[data-boxdirection="right"].boxDirection.start,
|
|
295
|
+
[data-boxdirection="right"].boxDirection.mid,
|
|
296
|
+
[data-boxdirection="right"].boxDirection.end {
|
|
297
297
|
left: calc( var(--zd_size17) * -1 ) ;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
|
|
300
|
+
[data-boxdirection="right"].boxDirection.start {
|
|
301
301
|
top: var(--zd_size28) ;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
|
|
304
|
+
[data-boxdirection="right"].boxDirection.mid {
|
|
305
305
|
top: 50% ;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
|
|
309
|
-
|
|
308
|
+
[data-boxdirection="right"].boxDirection.start,
|
|
309
|
+
[data-boxdirection="right"].boxDirection.mid {
|
|
310
310
|
transform: rotate(-90deg) translateX(50%);
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
|
|
313
|
+
[data-boxdirection="right"].boxDirection.end {
|
|
314
314
|
bottom: var(--zd_size28) ;
|
|
315
315
|
transform: rotate(-90deg) translateX(-50%);
|
|
316
316
|
}
|
|
317
|
+
[data-visible="hidden"],
|
|
317
318
|
.hidden {
|
|
318
319
|
visibility: hidden;
|
|
319
320
|
opacity: 0;
|
|
@@ -321,7 +322,7 @@
|
|
|
321
322
|
pointer-events: none;
|
|
322
323
|
}
|
|
323
324
|
|
|
324
|
-
.hidden .subContainer {
|
|
325
|
+
[data-visible="hidden"] .subContainer, .hidden .subContainer {
|
|
325
326
|
box-shadow: none;
|
|
326
327
|
}
|
|
327
328
|
|
|
@@ -342,17 +343,21 @@
|
|
|
342
343
|
composes: animationBasic;
|
|
343
344
|
composes: fadeIn modeForward from '../../../common/animation.module.css';
|
|
344
345
|
}
|
|
346
|
+
|
|
345
347
|
.scaleIn {
|
|
346
348
|
composes: animationBasic;
|
|
347
349
|
composes: scaleIn from '../../../common/animation.module.css';
|
|
348
350
|
}
|
|
351
|
+
|
|
349
352
|
.bounce {
|
|
350
353
|
composes: animationBasic;
|
|
351
354
|
}
|
|
355
|
+
|
|
352
356
|
[dir=ltr] .bounce {
|
|
353
357
|
animation-name: animation;
|
|
354
358
|
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
|
|
355
359
|
}
|
|
360
|
+
|
|
356
361
|
[dir=rtl] .bounce {
|
|
357
362
|
animation-name: animation;
|
|
358
363
|
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
|
|
@@ -414,7 +419,7 @@
|
|
|
414
419
|
}
|
|
415
420
|
|
|
416
421
|
.closeBar {
|
|
417
|
-
|
|
422
|
+
/* Variable:Ignore */
|
|
418
423
|
height: 6px;
|
|
419
424
|
width: 20% ;
|
|
420
425
|
border-radius: 5px;
|
|
@@ -52,9 +52,9 @@ export default function cssJSLogic(_ref) {
|
|
|
52
52
|
[style[boxPosition]]: isAbsolute && !isModel,
|
|
53
53
|
[style.fixedContainer]: !isAbsolute && !isModel,
|
|
54
54
|
[style[size]]: size && !isModel,
|
|
55
|
-
[style[boxDirection]]: !isModel && isActive && isArrow,
|
|
56
|
-
[style[`arrow
|
|
57
|
-
[style[`
|
|
55
|
+
[style[`boxDirection`]]: !isModel && isActive && isArrow,
|
|
56
|
+
[style[`arrow`]]: !isModel && isActive && isArrow && isAbsolute,
|
|
57
|
+
[style[`paddingSpace`]]: !isModel && isActive && !isArrow && isPadding
|
|
58
58
|
});
|
|
59
59
|
let subContainerClass = compileClassNames({
|
|
60
60
|
[style.subContainer]: true,
|
|
@@ -62,7 +62,7 @@ export default function cssJSLogic(_ref) {
|
|
|
62
62
|
[style.mobRadius]: !!isModel,
|
|
63
63
|
[style.slideUp]: !!isModel && isActive,
|
|
64
64
|
[customDropBox]: !isModel,
|
|
65
|
-
[style[
|
|
65
|
+
[style[`shadow`]]: !isModel,
|
|
66
66
|
[style.boxPadding]: !isModel && isBoxPaddingNeed,
|
|
67
67
|
[style.radius]: !isModel && isRadius,
|
|
68
68
|
[style[animationValue]]: !isModel && isAnimate && !isReducedMotion && isActive && !!animationStyle
|
package/es/ListItem/ListItem.js
CHANGED
|
@@ -100,7 +100,7 @@ export default class ListItem extends React.Component {
|
|
|
100
100
|
autoHover: autoHover,
|
|
101
101
|
needTick: needTick,
|
|
102
102
|
needBorder: needBorder,
|
|
103
|
-
customClass:
|
|
103
|
+
customClass: customListItem,
|
|
104
104
|
dataId: dataIdString,
|
|
105
105
|
dataSelectorId: `${dataSelectorId}`,
|
|
106
106
|
isLink: isLink,
|
|
@@ -122,7 +122,7 @@ export default class ListItem extends React.Component {
|
|
|
122
122
|
adjust: true,
|
|
123
123
|
className: style.children
|
|
124
124
|
}, children) : null, needTick && active ? /*#__PURE__*/React.createElement(Box, {
|
|
125
|
-
className: `${style.tickIcon} ${tickIconPalette} ${customTickIcon}
|
|
125
|
+
className: `${style.tickIcon} ${tickIconPalette} ${customTickIcon}`,
|
|
126
126
|
"aria-hidden": ariaHidden,
|
|
127
127
|
dataId: `${dataIdString}_tickIcon`,
|
|
128
128
|
dataSelectorId: `${dataSelectorId}_tickIcon`
|
|
@@ -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
|
-
}
|
|
@@ -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:
|
|
108
|
+
customClass: 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:
|
|
119
|
+
className: 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:
|
|
146
|
+
className: style.tickIcon,
|
|
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:
|
|
98
|
+
customClass: 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:
|
|
128
|
+
className: style.tickIcon,
|
|
129
129
|
"aria-hidden": ariaHidden,
|
|
130
130
|
dataId: `${dataIdString}_tickIcon`,
|
|
131
131
|
dataSelectorId: `${dataSelectorId}_tickIcon`
|
|
@@ -21,7 +21,7 @@ exports[`ListItemWithCheckBox rendering the defult props 1`] = `
|
|
|
21
21
|
aria-checked="false"
|
|
22
22
|
aria-hidden="true"
|
|
23
23
|
class="container pointer primary
|
|
24
|
-
|
|
24
|
+
inflex rowdir vCenter"
|
|
25
25
|
data-id="checkBox"
|
|
26
26
|
data-selector-id="container"
|
|
27
27
|
data-test-id="checkBox"
|
|
@@ -29,7 +29,7 @@ exports[`ListItemWithCheckBox rendering the defult props 1`] = `
|
|
|
29
29
|
tabindex="-1"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
32
|
-
class="boxContainer medium filled
|
|
32
|
+
class="boxContainer medium filled shrinkOff"
|
|
33
33
|
data-id="boxComponent"
|
|
34
34
|
data-selector-id="box"
|
|
35
35
|
data-test-id="boxComponent"
|
|
@@ -30,7 +30,7 @@ exports[`ListItemWithRadio rendering the defult props 1`] = `
|
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
32
32
|
class="radio
|
|
33
|
-
hoverprimary medium filled centerPathprimary
|
|
33
|
+
hoverprimary medium filled centerPathprimary shrinkOff"
|
|
34
34
|
data-id="boxComponent"
|
|
35
35
|
data-selector-id="box"
|
|
36
36
|
data-test-id="boxComponent"
|