@zohodesk/components 1.0.0-temp-56 → 1.0.0-temp-58
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/README.md +7 -0
- package/es/Avatar/Avatar.module.css +11 -9
- package/es/AvatarTeam/AvatarTeam.module.css +21 -7
- package/es/Button/Button.module.css +97 -24
- package/es/Buttongroup/Buttongroup.module.css +37 -8
- package/es/CheckBox/CheckBox.module.css +17 -11
- package/es/DateTime/DateTime.module.css +39 -12
- package/es/DateTime/DateWidget.module.css +9 -5
- package/es/DateTime/YearView.module.css +16 -6
- package/es/DropBox/DropBox.js +1 -1
- package/es/DropBox/DropBox.module.css +47 -11
- package/es/DropDown/DropDownHeading.module.css +7 -3
- package/es/DropDown/DropDownItem.module.css +32 -6
- package/es/ListItem/ListContainer.js +7 -4
- package/es/ListItem/ListItem.js +1 -1
- package/es/ListItem/ListItem.module.css +60 -28
- package/es/ListItem/ListItemWithAvatar.js +1 -1
- package/es/ListItem/ListItemWithCheckBox.js +1 -1
- package/es/ListItem/ListItemWithIcon.js +1 -1
- package/es/ListItem/ListItemWithRadio.js +1 -1
- package/es/MultiSelect/AdvancedMultiSelect.module.css +22 -8
- package/es/MultiSelect/MultiSelect.js +0 -5
- package/es/MultiSelect/MultiSelect.module.css +27 -10
- package/es/MultiSelect/SelectedOptions.module.css +8 -2
- package/es/PopOver/PopOver.module.css +1 -1
- package/es/Radio/Radio.module.css +10 -4
- package/es/Ribbon/Ribbon.module.css +93 -28
- package/es/RippleEffect/RippleEffect.module.css +15 -44
- package/es/Select/Select.module.css +12 -2
- package/es/Stencils/Stencils.module.css +21 -3
- package/es/Switch/Switch.module.css +6 -7
- package/es/Tab/Tab.module.css +16 -7
- package/es/Tab/Tabs.module.css +41 -8
- package/es/Tag/Tag.module.css +36 -14
- package/es/TextBox/TextBox.module.css +7 -11
- package/es/TextBoxIcon/TextBoxIcon.module.css +12 -5
- package/es/Textarea/Textarea.module.css +6 -7
- package/es/Tooltip/Tooltip.module.css +9 -8
- package/es/beta/FocusRing/FocusRing.module.css +51 -26
- package/es/common/animation.module.css +219 -21
- package/es/common/basicReset.module.css +2 -12
- package/es/common/common.module.css +62 -18
- package/es/common/customscroll.module.css +17 -21
- package/es/common/docStyle.module.css +78 -31
- package/es/common/transition.module.css +50 -10
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/lib/DropBox/DropBox.js +1 -1
- package/lib/ListItem/ListContainer.js +7 -4
- package/lib/ListItem/ListItem.js +1 -1
- package/lib/ListItem/ListItem.module.css +5 -10
- package/lib/ListItem/ListItemWithAvatar.js +1 -1
- package/lib/ListItem/ListItemWithCheckBox.js +1 -1
- package/lib/ListItem/ListItemWithIcon.js +1 -1
- package/lib/ListItem/ListItemWithRadio.js +1 -1
- package/lib/MultiSelect/MultiSelect.js +0 -4
- package/package.json +1 -1
|
@@ -1,26 +1,31 @@
|
|
|
1
|
-
.boxPadding {
|
|
1
|
+
[dir=ltr] .boxPadding {
|
|
2
2
|
padding-right: var(--zd_size19);
|
|
3
3
|
padding-left: var(--zd_size19);
|
|
4
|
+
}[dir=rtl] .boxPadding {
|
|
5
|
+
padding-left: var(--zd_size19);
|
|
6
|
+
padding-right: var(--zd_size19);
|
|
4
7
|
}
|
|
5
8
|
.month {
|
|
6
9
|
width: 30.333%;
|
|
10
|
+
font-size: var(--zd_font_size12);
|
|
11
|
+
line-height: var(--zd_size26);
|
|
12
|
+
height: var(--zd_size26);
|
|
7
13
|
text-align: center;
|
|
8
14
|
margin: 0 0 var(--zd_size1);
|
|
9
15
|
cursor: pointer;
|
|
10
16
|
background-color: var(--zdt_yearview_month_bg);
|
|
11
17
|
border-radius: 20px;
|
|
12
|
-
font-size: var(--zd_font_size12);
|
|
13
|
-
line-height: var(--zd_size26);
|
|
14
|
-
height: var(--zd_size26);
|
|
15
18
|
}
|
|
16
19
|
.month:hover {
|
|
17
20
|
background-color: var(--zdt_yearview_month_hover_bg);
|
|
18
21
|
}
|
|
19
22
|
.currentMonth,
|
|
20
23
|
.currentMonth:hover {
|
|
21
|
-
background-color: var(--zdt_yearview_currentmonth_bg);
|
|
22
24
|
color: var(--zdt_yearview_currentmonth_text);
|
|
23
25
|
}
|
|
26
|
+
.currentMonth, .currentMonth:hover {
|
|
27
|
+
background-color: var(--zdt_yearview_currentmonth_bg);
|
|
28
|
+
}
|
|
24
29
|
.yearBox {
|
|
25
30
|
border-bottom: 1px dotted var(--zdt_yearview_yearbox_border);
|
|
26
31
|
}
|
|
@@ -48,9 +53,14 @@
|
|
|
48
53
|
color: var(--zdt_yearview_year_hover_text);
|
|
49
54
|
}
|
|
50
55
|
.arrowActive {
|
|
51
|
-
transform: rotate(180deg);
|
|
52
56
|
color: var(--zdt_yearview_year_hover_text);
|
|
53
57
|
}
|
|
58
|
+
[dir=ltr] .arrowActive {
|
|
59
|
+
transform: rotate(180deg);
|
|
60
|
+
}
|
|
61
|
+
[dir=rtl] .arrowActive {
|
|
62
|
+
transform: rotate(-180deg);
|
|
63
|
+
}
|
|
54
64
|
.container {
|
|
55
65
|
height: 100%;
|
|
56
66
|
overflow-y: auto;
|
package/es/DropBox/DropBox.js
CHANGED
|
@@ -117,7 +117,7 @@ export class DropBoxElement extends React.Component {
|
|
|
117
117
|
} : {};
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
boxPosition = boxPosition ? boxPosition : 'bottomCenter';
|
|
120
|
+
boxPosition = boxPosition && boxPosition != 'undefined' ? boxPosition : 'bottomCenter';
|
|
121
121
|
const boxDirection = positionMapping[boxPosition].direction;
|
|
122
122
|
/*getting box direction*/
|
|
123
123
|
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
padding: var(--dropbox_padding);
|
|
29
29
|
box-shadow: var(--dropbox_box_shadow);
|
|
30
30
|
}
|
|
31
|
-
.defaultPalette,
|
|
32
|
-
.darkPalette {
|
|
31
|
+
.defaultPalette, .darkPalette {
|
|
33
32
|
background-color: var(--dropbox_bg_color);
|
|
34
33
|
}
|
|
35
34
|
.radius {
|
|
@@ -84,11 +83,13 @@
|
|
|
84
83
|
.bottom_shadow {
|
|
85
84
|
--dropbox_box_shadow: 0 3px 30px var(--zdt_dropbox_default_box_shadow);
|
|
86
85
|
}
|
|
87
|
-
.defaultShadow {
|
|
86
|
+
[dir=ltr] .defaultShadow {
|
|
88
87
|
box-shadow: 4px 3px 30px var(--zdt_dropbox_default_box_shadow);
|
|
89
88
|
}
|
|
89
|
+
[dir=rtl] .defaultShadow {
|
|
90
|
+
box-shadow: -4px 3px 30px var(--zdt_dropbox_default_box_shadow);
|
|
91
|
+
}
|
|
90
92
|
/* box direction styles */
|
|
91
|
-
/*rtl:begin:ignore*/
|
|
92
93
|
.topStart {
|
|
93
94
|
bottom: 100%;
|
|
94
95
|
right: 0;
|
|
@@ -272,7 +273,6 @@
|
|
|
272
273
|
bottom: var(--zd_size28);
|
|
273
274
|
transform: rotate(-90deg) translateX(-50%);
|
|
274
275
|
}
|
|
275
|
-
/*rtl:end:ignore*/
|
|
276
276
|
.hidden {
|
|
277
277
|
visibility: hidden;
|
|
278
278
|
opacity: 0;
|
|
@@ -282,7 +282,10 @@
|
|
|
282
282
|
.hidden .subContainer {
|
|
283
283
|
box-shadow: none;
|
|
284
284
|
}
|
|
285
|
-
.animationBasic {
|
|
285
|
+
[dir=ltr] .animationBasic {
|
|
286
|
+
animation-duration: var(--zd_transition2);
|
|
287
|
+
}
|
|
288
|
+
[dir=rtl] .animationBasic {
|
|
286
289
|
animation-duration: var(--zd_transition2);
|
|
287
290
|
}
|
|
288
291
|
.fadeIn {
|
|
@@ -291,11 +294,24 @@
|
|
|
291
294
|
}
|
|
292
295
|
.bounce {
|
|
293
296
|
composes: animationBasic;
|
|
297
|
+
}
|
|
298
|
+
[dir=ltr] .bounce {
|
|
299
|
+
animation-name: animation;
|
|
300
|
+
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
|
|
301
|
+
}
|
|
302
|
+
[dir=rtl] .bounce {
|
|
294
303
|
animation-name: animation;
|
|
295
304
|
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
|
|
296
305
|
}
|
|
297
306
|
.slideUp {
|
|
298
307
|
composes: modeForward from '../common/animation.module.css';
|
|
308
|
+
}
|
|
309
|
+
[dir=ltr] .slideUp {
|
|
310
|
+
animation-duration: var(--zd_transition3);
|
|
311
|
+
animation-name: slideUp;
|
|
312
|
+
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1);
|
|
313
|
+
}
|
|
314
|
+
[dir=rtl] .slideUp {
|
|
299
315
|
animation-duration: var(--zd_transition3);
|
|
300
316
|
animation-name: slideUp;
|
|
301
317
|
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1);
|
|
@@ -325,16 +341,23 @@
|
|
|
325
341
|
.responsive {
|
|
326
342
|
position: absolute;
|
|
327
343
|
bottom: 0;
|
|
328
|
-
left: 0;
|
|
329
344
|
width: 100%;
|
|
330
345
|
max-height: 90%;
|
|
331
346
|
}
|
|
332
347
|
|
|
348
|
+
[dir=ltr] .responsive {
|
|
349
|
+
left: 0;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
[dir=rtl] .responsive {
|
|
353
|
+
right: 0;
|
|
354
|
+
}
|
|
355
|
+
|
|
333
356
|
.closeBar {
|
|
334
357
|
height: 6px;
|
|
358
|
+
width: 20%;
|
|
335
359
|
border-radius: 5px;
|
|
336
360
|
background-color: var(--dropbox_mob_close_bg_color);
|
|
337
|
-
width: 20%;
|
|
338
361
|
cursor: pointer;
|
|
339
362
|
margin: 0 auto var(--zd_size10);
|
|
340
363
|
}
|
|
@@ -346,19 +369,32 @@
|
|
|
346
369
|
}
|
|
347
370
|
.activateInDelay {
|
|
348
371
|
composes: modeForward from '../common/animation.module.css';
|
|
372
|
+
pointer-events: none;
|
|
373
|
+
}
|
|
374
|
+
[dir=ltr] .activateInDelay {
|
|
375
|
+
animation-duration: var(--zd_transition1);
|
|
376
|
+
animation-delay: var(--zd_transition2);
|
|
377
|
+
animation-name: activateInDelay;
|
|
378
|
+
}
|
|
379
|
+
[dir=rtl] .activateInDelay {
|
|
349
380
|
animation-duration: var(--zd_transition1);
|
|
350
381
|
animation-delay: var(--zd_transition2);
|
|
351
|
-
pointer-events: none;
|
|
352
382
|
animation-name: activateInDelay;
|
|
353
383
|
}
|
|
354
384
|
.freezeLayer {
|
|
355
385
|
position: absolute;
|
|
356
386
|
top: 0;
|
|
357
|
-
left: 0;
|
|
358
387
|
bottom: 0;
|
|
359
|
-
right: 0;
|
|
360
388
|
composes: activateInDelay;
|
|
361
389
|
}
|
|
390
|
+
[dir=ltr] .freezeLayer {
|
|
391
|
+
left: 0;
|
|
392
|
+
right: 0;
|
|
393
|
+
}
|
|
394
|
+
[dir=rtl] .freezeLayer {
|
|
395
|
+
right: 0;
|
|
396
|
+
left: 0;
|
|
397
|
+
}
|
|
362
398
|
.freeze {
|
|
363
399
|
composes: varClass;
|
|
364
400
|
background: var(--dropbox_mob_bg_color);
|
|
@@ -33,11 +33,15 @@
|
|
|
33
33
|
.light {
|
|
34
34
|
composes: default;
|
|
35
35
|
}
|
|
36
|
-
.light::after,
|
|
37
|
-
.dark::after {
|
|
38
|
-
left: var(--dropdownheading_underline_left);
|
|
36
|
+
.light::after, .dark::after {
|
|
39
37
|
background-color: var(--dropdownheading_underline_bg_color);
|
|
40
38
|
}
|
|
39
|
+
[dir=ltr] .light::after, [dir=ltr] .dark::after {
|
|
40
|
+
left: var(--dropdownheading_underline_left);
|
|
41
|
+
}
|
|
42
|
+
[dir=rtl] .light::after, [dir=rtl] .dark::after {
|
|
43
|
+
right: var(--dropdownheading_underline_left);
|
|
44
|
+
}
|
|
41
45
|
|
|
42
46
|
.dark {
|
|
43
47
|
composes: default;
|
|
@@ -6,24 +6,32 @@
|
|
|
6
6
|
|
|
7
7
|
/* dropdownitem user default variables */
|
|
8
8
|
--dropdownitem-user-width: var(--zd_size42);
|
|
9
|
-
--dropdownitem-user-border-width: 0 0 0 1px/*rtl: 0 1px 0 0*/;
|
|
10
9
|
--dropdownitem-user-border-style: solid;
|
|
11
10
|
--dropdownitem-user-border-color: var(--zdt_dropdown_user_default_border);
|
|
12
11
|
--dropdownitem-user-cursor: pointer;
|
|
12
|
+
}[dir=ltr] .varClass {
|
|
13
|
+
--dropdownitem-user-border-width: 0 0 0 1px/*rtl: 0 1px 0 0*/;
|
|
14
|
+
}[dir=rtl] .varClass {
|
|
15
|
+
--dropdownitem-user-border-width: 0 1px 0 0;
|
|
13
16
|
}
|
|
14
17
|
.list {
|
|
15
18
|
composes: varClass;
|
|
16
19
|
composes: dflex alignVertical from '../common/common.module.css';
|
|
17
20
|
position: relative;
|
|
18
|
-
padding: var(--dropdownitem-padding);
|
|
19
21
|
color: var(--zdt_dropdown_default_text);
|
|
20
22
|
font-size: var(--zd_font_size13);
|
|
21
|
-
|
|
23
|
+
padding: var(--dropdownitem-padding);
|
|
22
24
|
border-style: solid;
|
|
23
25
|
border-color: var(--dropdownitem-border-color);
|
|
24
26
|
cursor: pointer;
|
|
25
27
|
background-color: var(--dropdownitem-bg-color);
|
|
26
28
|
}
|
|
29
|
+
[dir=ltr] .list {
|
|
30
|
+
border-width: 0 0 0 1px/*rtl: 0 1px 0 0*/;
|
|
31
|
+
}
|
|
32
|
+
[dir=rtl] .list {
|
|
33
|
+
border-width: 0 1px 0 0;
|
|
34
|
+
}
|
|
27
35
|
|
|
28
36
|
.listActive {
|
|
29
37
|
--dropdownitem-border-color: var(--zdt_dropdown_listactive_border);
|
|
@@ -33,16 +41,27 @@
|
|
|
33
41
|
--dropdownitem-bg-color: var(--zdt_dropdown_listhover_bg);
|
|
34
42
|
}
|
|
35
43
|
|
|
36
|
-
.padding {
|
|
44
|
+
[dir=ltr] .padding {
|
|
37
45
|
--dropdownitem-padding: 0 var(--zd_size50) 0 0/*rtl: 0 0 0 var(--zd_size50)*/;
|
|
38
46
|
}
|
|
39
47
|
|
|
48
|
+
[dir=rtl] .padding {
|
|
49
|
+
--dropdownitem-padding: 0 0 0 var(--zd_size50);
|
|
50
|
+
}
|
|
51
|
+
|
|
40
52
|
.children {
|
|
41
|
-
margin-right: var(--zd_size10);
|
|
42
53
|
display: inline-block;
|
|
43
54
|
font-size: 0;
|
|
44
55
|
}
|
|
45
56
|
|
|
57
|
+
[dir=ltr] .children {
|
|
58
|
+
margin-right: var(--zd_size10);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[dir=rtl] .children {
|
|
62
|
+
margin-left: var(--zd_size10);
|
|
63
|
+
}
|
|
64
|
+
|
|
46
65
|
.value {
|
|
47
66
|
composes: dotted flexgrow from '../common/common.module.css';
|
|
48
67
|
}
|
|
@@ -51,7 +70,6 @@
|
|
|
51
70
|
composes: dflex alignVertical alignHorizontal from '../common/common.module.css';
|
|
52
71
|
position: absolute;
|
|
53
72
|
top: 0;
|
|
54
|
-
right: 0;
|
|
55
73
|
bottom: 0;
|
|
56
74
|
opacity: 0;
|
|
57
75
|
visibility: hidden;
|
|
@@ -62,6 +80,14 @@
|
|
|
62
80
|
cursor: var(--dropdownitem-user-cursor);
|
|
63
81
|
}
|
|
64
82
|
|
|
83
|
+
[dir=ltr] .user {
|
|
84
|
+
right: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
[dir=rtl] .user {
|
|
88
|
+
left: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
65
91
|
.list:hover .user {
|
|
66
92
|
opacity: 1;
|
|
67
93
|
visibility: visible;
|
|
@@ -35,16 +35,19 @@ const ListContainer = props => {
|
|
|
35
35
|
} = props;
|
|
36
36
|
const responsiveFunc = useCallback(_ref => {
|
|
37
37
|
let {
|
|
38
|
-
mediaQueryOR
|
|
38
|
+
mediaQueryOR,
|
|
39
|
+
isTouchDevice
|
|
39
40
|
} = _ref;
|
|
40
41
|
return {
|
|
41
42
|
mobileToTab: mediaQueryOR([{
|
|
42
43
|
maxWidth: 700
|
|
43
|
-
}])
|
|
44
|
+
}]),
|
|
45
|
+
isTouchDevice: isTouchDevice
|
|
44
46
|
};
|
|
45
47
|
}, []);
|
|
46
48
|
const {
|
|
47
|
-
mobileToTab
|
|
49
|
+
mobileToTab,
|
|
50
|
+
isTouchDevice
|
|
48
51
|
} = useResponsiveReceiver('Helmet', responsiveFunc);
|
|
49
52
|
const {
|
|
50
53
|
role,
|
|
@@ -71,7 +74,7 @@ const ListContainer = props => {
|
|
|
71
74
|
isCover: false,
|
|
72
75
|
align: "vertical",
|
|
73
76
|
alignBox: "row",
|
|
74
|
-
className: `${style.list}
|
|
77
|
+
className: `${style.list} ${style[size]} ${mobileToTab && isTouchDevice ? style.responsiveHeight : ''} ${style[palette]} ${active ? style[`active${palette}`] : highlight && !isDisabled ? style[`${palette}Hover`] : ''} ${autoHover && !isDisabled ? style[`${palette}Effect`] : ''} ${needTick ? style[`${size}withTick`] : ''} ${isDisabled ? CssProvider('isDisable') : ''} ${needBorder ? active ? style.activewithBorder : style.withBorder : ''} ${customClass}`,
|
|
75
78
|
dataId: dataId,
|
|
76
79
|
onClick: !isDisabled && onClick,
|
|
77
80
|
onMouseEnter: onMouseEnter,
|
package/es/ListItem/ListItem.js
CHANGED
|
@@ -94,7 +94,7 @@ export default class ListItem extends React.Component {
|
|
|
94
94
|
autoHover: autoHover,
|
|
95
95
|
needTick: needTick,
|
|
96
96
|
needBorder: needBorder,
|
|
97
|
-
customClass:
|
|
97
|
+
customClass: customListItem,
|
|
98
98
|
dataId: dataIdString,
|
|
99
99
|
isLink: isLink,
|
|
100
100
|
href: href,
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
--listitem_padding: var(--zd_size9) var(--zd_size20);
|
|
5
5
|
--listitem_border_width: 0;
|
|
6
6
|
--listitem_border_color: var(--zdt_listitem_default_border);
|
|
7
|
-
--listitem_avatar_margin: 0 var(--zd_size15) 0 0
|
|
8
|
-
/*rtl: 0 0 0 var(--zd_size15)*/;
|
|
9
7
|
--listitem_bg_color: var(--zdt_listitem_default_bg);
|
|
10
8
|
--listitem_active_bg_color: var(--zdt_listitem_primary_bg);
|
|
11
9
|
--listitem_height: auto;
|
|
@@ -16,6 +14,11 @@
|
|
|
16
14
|
|
|
17
15
|
/* listitem tick icon default variables */
|
|
18
16
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
17
|
+
}[dir=ltr] .varClass {
|
|
18
|
+
--listitem_avatar_margin: 0 var(--zd_size15) 0 0
|
|
19
|
+
/*rtl: 0 0 0 var(--zd_size15)*/;
|
|
20
|
+
}[dir=rtl] .varClass {
|
|
21
|
+
--listitem_avatar_margin: 0 0 0 var(--zd_size15);
|
|
19
22
|
}
|
|
20
23
|
.list {
|
|
21
24
|
composes: varClass;
|
|
@@ -23,40 +26,49 @@
|
|
|
23
26
|
list-style: none;
|
|
24
27
|
color: var(--listitem_text_color);
|
|
25
28
|
font-size: var(--zd_font_size13);
|
|
29
|
+
height: var(--listitem_height);
|
|
30
|
+
min-height: var(--listitem_min_height);
|
|
31
|
+
text-decoration: none;
|
|
26
32
|
padding: var(--listitem_padding);
|
|
27
33
|
border-width: var(--listitem_border_width);
|
|
28
34
|
border-style: solid;
|
|
29
35
|
border-color: var(--listitem_border_color);
|
|
30
|
-
height: var(--listitem_height);
|
|
31
|
-
min-height: var(--listitem_min_height);
|
|
32
36
|
cursor: pointer;
|
|
33
|
-
text-decoration: none;
|
|
34
37
|
}
|
|
35
|
-
.list,
|
|
36
|
-
.default,
|
|
37
|
-
.secondary {
|
|
38
|
+
.list, .default, .secondary {
|
|
38
39
|
background-color: var(--listitem_bg_color);
|
|
39
40
|
}
|
|
40
|
-
.withBorder {
|
|
41
|
+
[dir=ltr] .withBorder {
|
|
41
42
|
--listitem_border_width: 0 0 0 1px /*rtl: 0 1px 0 0*/;
|
|
42
43
|
}
|
|
44
|
+
[dir=rtl] .withBorder {
|
|
45
|
+
--listitem_border_width: 0 1px 0 0;
|
|
46
|
+
}
|
|
43
47
|
.active {
|
|
44
48
|
--listitem_border_color: var(--zdt_listitem_active_border);
|
|
45
49
|
}
|
|
46
|
-
.small {
|
|
50
|
+
[dir=ltr] .small {
|
|
47
51
|
--listitem_padding: var(--zd_size9) var(--zd_size3) var(--zd_size9)
|
|
48
52
|
var(--zd_size5)
|
|
49
53
|
/*rtl: var(--zd_size9) var(--zd_size5) var(--zd_size9) var(--zd_size3)*/;
|
|
50
54
|
}
|
|
55
|
+
[dir=rtl] .small {
|
|
56
|
+
--listitem_padding: var(--zd_size9) var(--zd_size5) var(--zd_size9) var(--zd_size3);
|
|
57
|
+
}
|
|
51
58
|
.medium {
|
|
52
59
|
--listitem_padding: var(--zd_size9) var(--zd_size20);
|
|
53
60
|
--listitem_min_height: var(--zd_size35);
|
|
54
61
|
}
|
|
55
62
|
.large {
|
|
63
|
+
--listitem_height: var(--zd_size48);
|
|
64
|
+
}
|
|
65
|
+
[dir=ltr] .large {
|
|
56
66
|
--listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10)
|
|
57
67
|
var(--zd_size25)
|
|
58
68
|
/*rtl: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3)*/;
|
|
59
|
-
|
|
69
|
+
}
|
|
70
|
+
[dir=rtl] .large {
|
|
71
|
+
--listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3);
|
|
60
72
|
}
|
|
61
73
|
.value,
|
|
62
74
|
.children {
|
|
@@ -64,9 +76,14 @@
|
|
|
64
76
|
}
|
|
65
77
|
.iconBox {
|
|
66
78
|
width: var(--zd_size20);
|
|
67
|
-
margin-right: var(--zd_size10);
|
|
68
79
|
text-align: center;
|
|
69
80
|
}
|
|
81
|
+
[dir=ltr] .iconBox {
|
|
82
|
+
margin-right: var(--zd_size10);
|
|
83
|
+
}
|
|
84
|
+
[dir=rtl] .iconBox {
|
|
85
|
+
margin-left: var(--zd_size10);
|
|
86
|
+
}
|
|
70
87
|
.iconBox,
|
|
71
88
|
.leftAvatar {
|
|
72
89
|
font-size: 0;
|
|
@@ -75,16 +92,18 @@
|
|
|
75
92
|
margin: var(--listitem_avatar_margin);
|
|
76
93
|
}
|
|
77
94
|
|
|
78
|
-
.defaultHover,
|
|
79
|
-
.primaryHover,
|
|
80
|
-
.secondaryHover,
|
|
81
|
-
.darkHover {
|
|
95
|
+
.defaultHover, .primaryHover, .secondaryHover, .darkHover {
|
|
82
96
|
background-color: var(--listitem_highlight_bg_color);
|
|
83
97
|
}
|
|
84
98
|
.activewithBorder {
|
|
85
|
-
--listitem_border_width: 0 0 0 1px /*rtl: 0 1px 0 0*/;
|
|
86
99
|
--listitem_border_color: var(--zdt_listitem_active_border);
|
|
87
100
|
}
|
|
101
|
+
[dir=ltr] .activewithBorder {
|
|
102
|
+
--listitem_border_width: 0 0 0 1px /*rtl: 0 1px 0 0*/;
|
|
103
|
+
}
|
|
104
|
+
[dir=rtl] .activewithBorder {
|
|
105
|
+
--listitem_border_width: 0 1px 0 0;
|
|
106
|
+
}
|
|
88
107
|
|
|
89
108
|
.defaultHover,
|
|
90
109
|
.defaultEffect:hover,
|
|
@@ -110,10 +129,7 @@
|
|
|
110
129
|
--listitem_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
111
130
|
--listitem_highlight_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
112
131
|
}
|
|
113
|
-
.activedefault,
|
|
114
|
-
.activeprimary,
|
|
115
|
-
.activesecondary,
|
|
116
|
-
.activedark {
|
|
132
|
+
.activedefault, .activeprimary, .activesecondary, .activedark {
|
|
117
133
|
background-color: var(--listitem_active_bg_color);
|
|
118
134
|
}
|
|
119
135
|
.activedefault,
|
|
@@ -139,8 +155,15 @@
|
|
|
139
155
|
.darkTick {
|
|
140
156
|
position: absolute;
|
|
141
157
|
color: var(--listitem_tickicon_color);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
[dir=ltr] .tickIcon, [dir=ltr] .defaultTick, [dir=ltr] .darkTick {
|
|
142
161
|
right: var(--zd_size20);
|
|
143
162
|
}
|
|
163
|
+
|
|
164
|
+
[dir=rtl] .tickIcon, [dir=rtl] .defaultTick, [dir=rtl] .darkTick {
|
|
165
|
+
left: var(--zd_size20);
|
|
166
|
+
}
|
|
144
167
|
.defaultTick {
|
|
145
168
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
146
169
|
}
|
|
@@ -150,24 +173,33 @@
|
|
|
150
173
|
.defaultTick > i {
|
|
151
174
|
display: block;
|
|
152
175
|
}
|
|
153
|
-
.smallwithTick {
|
|
176
|
+
[dir=ltr] .smallwithTick {
|
|
154
177
|
--listitem_padding: var(--zd_size9) var(--zd_size39) var(--zd_size9)
|
|
155
178
|
var(--zd_size5)
|
|
156
179
|
/*rtl: var(--zd_size9) var(--zd_size5) var(--zd_size9) var(--zd_size39)*/;
|
|
157
180
|
}
|
|
158
|
-
.
|
|
181
|
+
[dir=rtl] .smallwithTick {
|
|
182
|
+
--listitem_padding: var(--zd_size9) var(--zd_size5) var(--zd_size9) var(--zd_size39);
|
|
183
|
+
}
|
|
184
|
+
[dir=ltr] .mediumwithTick {
|
|
159
185
|
--listitem_padding: var(--zd_size9) var(--zd_size39) var(--zd_size9)
|
|
160
186
|
var(--zd_size20)
|
|
161
|
-
/*rtl: var(--zd_size9) var(--zd_size20) var(--zd_size9) var(--
|
|
187
|
+
/*rtl: var(--zd_size9) var(--zd_size20) var(--zd_size9) var(--zd_size39)*/;
|
|
162
188
|
}
|
|
163
|
-
.
|
|
189
|
+
[dir=rtl] .mediumwithTick {
|
|
190
|
+
--listitem_padding: var(--zd_size9) var(--zd_size20) var(--zd_size9) var(--zd_size39);
|
|
191
|
+
}
|
|
192
|
+
[dir=ltr] .largewithTick {
|
|
164
193
|
--listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10)
|
|
165
194
|
var(--zd_size25)
|
|
166
195
|
/*rtl: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39)*/;
|
|
167
196
|
}
|
|
197
|
+
[dir=rtl] .largewithTick {
|
|
198
|
+
--listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39);
|
|
199
|
+
}
|
|
168
200
|
.responsiveHeight {
|
|
169
|
-
--listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10)
|
|
170
|
-
var(--zd_size20)
|
|
171
|
-
/*rtl: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3)*/;
|
|
172
201
|
--listitem_height: var(--zd_size45);
|
|
202
|
+
font-size: var(--zd_font_size15);
|
|
203
|
+
padding-top: var(--zd_size10);
|
|
204
|
+
padding-bottom: var(--zd_size10);
|
|
173
205
|
}
|
|
@@ -99,7 +99,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
99
99
|
autoHover: autoHover,
|
|
100
100
|
needTick: needTick,
|
|
101
101
|
needBorder: needBorder,
|
|
102
|
-
customClass:
|
|
102
|
+
customClass: customListItem,
|
|
103
103
|
dataId: `${dataIdString}_ListItemWithAvatar`,
|
|
104
104
|
onClick: this.handleClick,
|
|
105
105
|
onMouseEnter: this.handleMouseEnter,
|
|
@@ -77,7 +77,7 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
77
77
|
isDisabled: isDisabled,
|
|
78
78
|
active: active,
|
|
79
79
|
autoHover: autoHover,
|
|
80
|
-
customClass:
|
|
80
|
+
customClass: customListItem,
|
|
81
81
|
dataId: `${dataId ? dataId : value}_ListItemWithCheckBox`,
|
|
82
82
|
onClick: this.onClick,
|
|
83
83
|
onMouseOver: this.onHover,
|
|
@@ -89,7 +89,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
89
89
|
autoHover: autoHover,
|
|
90
90
|
needTick: needTick,
|
|
91
91
|
needBorder: needBorder,
|
|
92
|
-
customClass:
|
|
92
|
+
customClass: customClass,
|
|
93
93
|
dataId: dataIdString,
|
|
94
94
|
isLink: isLink,
|
|
95
95
|
href: href,
|
|
@@ -78,7 +78,7 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
78
78
|
isDisabled: isDisabled,
|
|
79
79
|
active: active,
|
|
80
80
|
autoHover: autoHover,
|
|
81
|
-
customClass:
|
|
81
|
+
customClass: customListItem,
|
|
82
82
|
dataId: dataId,
|
|
83
83
|
onClick: this.onClick,
|
|
84
84
|
onMouseOver: this.onHover,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
.wrapper {
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
|
-
.disabled,
|
|
5
|
-
.readOnly {
|
|
4
|
+
.disabled, .readOnly {
|
|
6
5
|
cursor: not-allowed;
|
|
7
6
|
}
|
|
8
7
|
.container {
|
|
@@ -10,9 +9,9 @@
|
|
|
10
9
|
composes: oflowy from '../common/common.module.css';
|
|
11
10
|
}
|
|
12
11
|
.hasBorder {
|
|
12
|
+
transition: border var(--zd_transition2) linear 0s;
|
|
13
13
|
border-bottom-style: solid;
|
|
14
14
|
border-bottom-width: 1px;
|
|
15
|
-
transition: border var(--zd_transition2) linear 0s;
|
|
16
15
|
}
|
|
17
16
|
.borderColor_transparent {
|
|
18
17
|
border-bottom-color: var(--zdt_advancedmultiselect_transparent_border);
|
|
@@ -41,25 +40,40 @@
|
|
|
41
40
|
.effect .borderColor_dark.active {
|
|
42
41
|
border-bottom-color: var(--zdt_advancedmultiselect_dark_active_border);
|
|
43
42
|
}
|
|
44
|
-
.container.medium {
|
|
43
|
+
[dir=ltr] .container.medium {
|
|
45
44
|
padding: 0 var(--zd_size34) var(--zd_size7) 0;
|
|
46
45
|
}
|
|
46
|
+
[dir=rtl] .container.medium {
|
|
47
|
+
padding: 0 0 var(--zd_size7) var(--zd_size34);
|
|
48
|
+
}
|
|
47
49
|
.container.xmedium {
|
|
48
|
-
padding: 0 var(--zd_size34) var(--zd_size1) 0;
|
|
49
50
|
min-height: var(--zd_size30);
|
|
50
51
|
}
|
|
52
|
+
[dir=ltr] .container.xmedium {
|
|
53
|
+
padding: 0 var(--zd_size34) var(--zd_size1) 0;
|
|
54
|
+
}
|
|
55
|
+
[dir=rtl] .container.xmedium {
|
|
56
|
+
padding: 0 0 var(--zd_size1) var(--zd_size34);
|
|
57
|
+
}
|
|
51
58
|
|
|
52
59
|
.delete {
|
|
53
60
|
position: absolute;
|
|
54
61
|
bottom: 0;
|
|
55
|
-
right: var(--zd_size15);
|
|
56
|
-
padding-bottom: var(--zd_size10);
|
|
57
62
|
color: var(--zdt_advancedmultiselect_delete_text);
|
|
63
|
+
padding-bottom: var(--zd_size10);
|
|
58
64
|
cursor: pointer;
|
|
59
65
|
background-color: var(--zdt_advancedmultiselect_delete_bg);
|
|
60
66
|
border: 0;
|
|
61
67
|
}
|
|
62
68
|
|
|
69
|
+
[dir=ltr] .delete {
|
|
70
|
+
right: var(--zd_size15);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[dir=rtl] .delete {
|
|
74
|
+
left: var(--zd_size15);
|
|
75
|
+
}
|
|
76
|
+
|
|
63
77
|
.delete:hover {
|
|
64
78
|
color: var(--zdt_advancedmultiselect_delete_hover_text);
|
|
65
79
|
}
|
|
@@ -105,9 +119,9 @@
|
|
|
105
119
|
.more {
|
|
106
120
|
font-size: var(--zd_font_size14);
|
|
107
121
|
color: var(--zdt_advancedmultiselect_more_text);
|
|
122
|
+
font-family: inherit;
|
|
108
123
|
cursor: pointer;
|
|
109
124
|
margin-top: var(--zd_size5);
|
|
110
|
-
font-family: inherit;
|
|
111
125
|
background-color: var(--zdt_advancedmultiselect_delete_bg);
|
|
112
126
|
border: 0;
|
|
113
127
|
}
|
|
@@ -422,11 +422,6 @@ export class MultiSelectComponent extends React.Component {
|
|
|
422
422
|
}
|
|
423
423
|
} else if (keyCode === 27) {// this.handlePopupClose(e);
|
|
424
424
|
} else if (keyCode === 9) {
|
|
425
|
-
const selectedOption = suggestions[hoverOption] || {};
|
|
426
|
-
const {
|
|
427
|
-
id
|
|
428
|
-
} = selectedOption;
|
|
429
|
-
isPopupOpen && !getIsEmptyValue(id) && this.handleSelectOption(id, e);
|
|
430
425
|
this.handlePopupClose(e);
|
|
431
426
|
}
|
|
432
427
|
}
|