@zohodesk/components 1.0.0-alpha-235 → 1.0.0-alpha-238
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 +18 -0
- package/assets/Appearance/dark/mode/darkMode.module.css +1 -1
- package/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +1 -1
- package/assets/Appearance/default/mode/defaultMode.module.css +1 -1
- package/assets/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +1 -1
- package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +358 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css +42 -0
- package/es/AppContainer/AppContainer.js +6 -1
- 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.js +2 -1
- 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.module.css +47 -11
- package/es/DropDown/DropDownHeading.module.css +7 -3
- package/es/DropDown/DropDownItem.module.css +32 -6
- package/es/ListItem/ListItem.module.css +58 -26
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +6 -3
- package/es/MultiSelect/AdvancedMultiSelect.module.css +22 -8
- package/es/MultiSelect/MultiSelect.js +6 -2
- 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/Provider/Config.js +2 -2
- package/es/Provider.js +72 -35
- package/es/Radio/Radio.module.css +10 -4
- package/es/Responsive/Responsive.js +1 -0
- package/es/Ribbon/Ribbon.module.css +93 -28
- package/es/RippleEffect/RippleEffect.module.css +15 -44
- package/es/Select/Select.js +8 -4
- package/es/Select/Select.module.css +12 -2
- package/es/Select/SelectWithIcon.js +1 -0
- 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.js +40 -2
- 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 +83 -32
- package/es/common/transition.module.css +50 -10
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/lib/AppContainer/AppContainer.js +8 -1
- package/lib/CheckBox/CheckBox.js +2 -1
- 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 +6 -11
- 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/AdvancedGroupMultiSelect.js +7 -3
- package/lib/MultiSelect/MultiSelect.js +7 -6
- package/lib/Provider/Config.js +3 -1
- package/lib/Provider.js +88 -37
- package/lib/Select/GroupSelect.js +1 -1
- package/lib/Select/Select.js +9 -4
- package/lib/Tooltip/Tooltip.js +60 -8
- package/lib/Tooltip/Tooltip.module.css +6 -1
- package/lib/common/docStyle.module.css +6 -2
- package/package.json +7 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.cboth::after {
|
|
2
2
|
content: '.';
|
|
3
|
-
clear: both;
|
|
4
3
|
display: block;
|
|
5
4
|
font-size: 0;
|
|
6
5
|
height: 0;
|
|
7
6
|
line-height: 0;
|
|
8
7
|
visibility: hidden;
|
|
8
|
+
clear: both;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.m10 {
|
|
@@ -16,10 +16,14 @@
|
|
|
16
16
|
margin: 50px;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.pl10 {
|
|
19
|
+
[dir=ltr] .pl10 {
|
|
20
20
|
padding-left: 10px;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
[dir=rtl] .pl10 {
|
|
24
|
+
padding-right: 10px;
|
|
25
|
+
}
|
|
26
|
+
|
|
23
27
|
.p10 {
|
|
24
28
|
padding: 10px;
|
|
25
29
|
}
|
|
@@ -61,10 +65,14 @@
|
|
|
61
65
|
margin-bottom: 20px;
|
|
62
66
|
}
|
|
63
67
|
|
|
64
|
-
.mr20 {
|
|
68
|
+
[dir=ltr] .mr20 {
|
|
65
69
|
margin-right: 20px;
|
|
66
70
|
}
|
|
67
71
|
|
|
72
|
+
[dir=rtl] .mr20 {
|
|
73
|
+
margin-left: 20px;
|
|
74
|
+
}
|
|
75
|
+
|
|
68
76
|
.w60 {
|
|
69
77
|
width: 60%;
|
|
70
78
|
}
|
|
@@ -90,22 +98,25 @@
|
|
|
90
98
|
}
|
|
91
99
|
|
|
92
100
|
.dark {
|
|
93
|
-
background-color: var(--dot_black);
|
|
94
101
|
composes: p10;
|
|
102
|
+
background-color: var(--dot_black);
|
|
95
103
|
}
|
|
96
104
|
|
|
97
105
|
.table {
|
|
98
|
-
border: 1px solid var(--zd_smoke84);
|
|
99
|
-
border-radius: 3px;
|
|
100
106
|
composes: p10;
|
|
101
107
|
composes: cboth;
|
|
108
|
+
border: 1px solid var(--zd_smoke84);
|
|
109
|
+
border-radius: 3px;
|
|
102
110
|
}
|
|
103
111
|
|
|
104
|
-
.table .w60,
|
|
105
|
-
.table .w40 {
|
|
112
|
+
[dir=ltr] .table .w60, [dir=ltr] .table .w40 {
|
|
106
113
|
float: left;
|
|
107
114
|
}
|
|
108
115
|
|
|
116
|
+
[dir=rtl] .table .w60, [dir=rtl] .table .w40 {
|
|
117
|
+
float: right;
|
|
118
|
+
}
|
|
119
|
+
|
|
109
120
|
.tableheading {
|
|
110
121
|
composes: blue;
|
|
111
122
|
background:var(--zd_smoke1);
|
|
@@ -117,10 +128,10 @@
|
|
|
117
128
|
composes: p10;
|
|
118
129
|
composes: m10;
|
|
119
130
|
width: 200px;
|
|
120
|
-
border: 1px solid var(--zd_smoke83);
|
|
121
|
-
border-radius: 3px;
|
|
122
131
|
composes: tcenter;
|
|
123
132
|
font-weight: bold;
|
|
133
|
+
border: 1px solid var(--zd_smoke83);
|
|
134
|
+
border-radius: 3px;
|
|
124
135
|
}
|
|
125
136
|
|
|
126
137
|
.palette .palettecard {
|
|
@@ -136,10 +147,10 @@
|
|
|
136
147
|
|
|
137
148
|
.fontlist {
|
|
138
149
|
composes: tcenter;
|
|
139
|
-
border: 1px solid var(--zd_smoke83);
|
|
140
|
-
border-radius: 3px;
|
|
141
150
|
composes: p10;
|
|
142
151
|
composes: m10;
|
|
152
|
+
border: 1px solid var(--zd_smoke83);
|
|
153
|
+
border-radius: 3px;
|
|
143
154
|
}
|
|
144
155
|
|
|
145
156
|
.fontlist span {
|
|
@@ -148,9 +159,9 @@
|
|
|
148
159
|
}
|
|
149
160
|
|
|
150
161
|
.cover {
|
|
151
|
-
border: 1px solid var(--zd_smoke1);
|
|
152
162
|
composes: p10;
|
|
153
163
|
composes: m10;
|
|
164
|
+
border: 1px solid var(--zd_smoke1);
|
|
154
165
|
border-radius: 5px;
|
|
155
166
|
}
|
|
156
167
|
|
|
@@ -194,8 +205,7 @@
|
|
|
194
205
|
background-color: #e2e4e6;
|
|
195
206
|
padding: 5px;
|
|
196
207
|
}
|
|
197
|
-
.content,
|
|
198
|
-
.trow {
|
|
208
|
+
.content, .trow {
|
|
199
209
|
padding: 5px;
|
|
200
210
|
}
|
|
201
211
|
.trow {
|
|
@@ -205,14 +215,19 @@
|
|
|
205
215
|
background-color: #f6f6f6;
|
|
206
216
|
}
|
|
207
217
|
.colorvalue {
|
|
218
|
+
font-size: 13px;
|
|
219
|
+
color: #000;
|
|
208
220
|
background-color: #e2e4e6;
|
|
209
221
|
padding: 3px;
|
|
210
|
-
margin-right: 3px;
|
|
211
222
|
border-radius: 5px;
|
|
212
|
-
font-size: 13px;
|
|
213
|
-
color: #000;
|
|
214
223
|
cursor: pointer;
|
|
215
224
|
}
|
|
225
|
+
[dir=ltr] .colorvalue {
|
|
226
|
+
margin-right: 3px;
|
|
227
|
+
}
|
|
228
|
+
[dir=rtl] .colorvalue {
|
|
229
|
+
margin-left: 3px;
|
|
230
|
+
}
|
|
216
231
|
.rect {
|
|
217
232
|
width: 40px;
|
|
218
233
|
height: 40px;
|
|
@@ -228,20 +243,29 @@
|
|
|
228
243
|
flex-direction: column;
|
|
229
244
|
border: 1px dotted #ccc;
|
|
230
245
|
padding: 4px 6px;
|
|
246
|
+
}
|
|
247
|
+
[dir=ltr] .nestedDiv {
|
|
231
248
|
margin-right: 5px;
|
|
232
249
|
}
|
|
250
|
+
[dir=rtl] .nestedDiv {
|
|
251
|
+
margin-left: 5px;
|
|
252
|
+
}
|
|
233
253
|
.para {
|
|
234
254
|
font-size: 13px;
|
|
235
255
|
margin-bottom: 5px;
|
|
236
256
|
}
|
|
237
257
|
|
|
238
258
|
[data-mode='default'] {
|
|
239
|
-
background: #fff;
|
|
240
259
|
color: #000;
|
|
260
|
+
background: #fff;
|
|
241
261
|
}
|
|
242
262
|
[data-mode='dark'] {
|
|
243
|
-
|
|
244
|
-
|
|
263
|
+
color: #e2e4e6;
|
|
264
|
+
background: #232b38;
|
|
265
|
+
}
|
|
266
|
+
[data-mode='pureDark'] {
|
|
267
|
+
color: #e2e4e6;
|
|
268
|
+
background: #212121;
|
|
245
269
|
}
|
|
246
270
|
|
|
247
271
|
.baseHue {
|
|
@@ -255,8 +279,13 @@
|
|
|
255
279
|
--avatar_bg_color: hsl(var(--hue), 100%, 90%);
|
|
256
280
|
--avatar_border_color: hsl(var(--hue), 100%, 60%);
|
|
257
281
|
--avatar_text_color: hsl(var(--hue), 100%, 40%);
|
|
282
|
+
}
|
|
283
|
+
[dir=ltr] .customAvatar {
|
|
258
284
|
--avatar_border_radius: 0 12px/*rtl: 12px 0*/;
|
|
259
285
|
}
|
|
286
|
+
[dir=rtl] .customAvatar {
|
|
287
|
+
--avatar_border_radius: 12px 0;
|
|
288
|
+
}
|
|
260
289
|
.customAvatar:hover {
|
|
261
290
|
--avatar_border_width: 2px;
|
|
262
291
|
--avatar_bg_color: hsl(var(--hue), 100%, 85%);
|
|
@@ -391,10 +420,15 @@
|
|
|
391
420
|
.customDropbox {
|
|
392
421
|
composes: baseHue;
|
|
393
422
|
--dropbox_bg_color: hsl(var(--hue), 100%, 98%);
|
|
394
|
-
--dropbox_border_radius: 30px 0/*rtl:0 30px*/;
|
|
395
423
|
--dropbox_box_shadow: 0 0 10px hsl(var(--hue), 100%, 90%);
|
|
396
424
|
--dropbox_arrow_box_shadow_color: hsl(var(--hue), 100%, 90%);
|
|
397
425
|
}
|
|
426
|
+
[dir=ltr] .customDropbox {
|
|
427
|
+
--dropbox_border_radius: 30px 0/*rtl:0 30px*/;
|
|
428
|
+
}
|
|
429
|
+
[dir=rtl] .customDropbox {
|
|
430
|
+
--dropbox_border_radius: 0 30px;
|
|
431
|
+
}
|
|
398
432
|
.customDropbox:hover {
|
|
399
433
|
--dropbox_box_shadow: 0 0 10px hsl(var(--hue), 100%, 80%);
|
|
400
434
|
--dropbox_arrow_box_shadow_color: hsl(var(--hue), 100%, 80%);
|
|
@@ -598,24 +632,39 @@
|
|
|
598
632
|
}
|
|
599
633
|
.flagRibbon {
|
|
600
634
|
composes: ribbon;
|
|
635
|
+
}
|
|
636
|
+
[dir=ltr] .flagRibbon {
|
|
601
637
|
--ribbon_padding: 10px 20px/*rtl: 10px 20px*/;
|
|
602
638
|
--ribbon_flag_border_width: 20px 10px 20px 0/*rtl: 20px 0 20px 10px*/;
|
|
603
639
|
}
|
|
640
|
+
[dir=rtl] .flagRibbon {
|
|
641
|
+
--ribbon_padding: 10px 20px;
|
|
642
|
+
--ribbon_flag_border_width: 20px 0 20px 10px;
|
|
643
|
+
}
|
|
604
644
|
.tagRibbon {
|
|
605
645
|
composes: ribbon;
|
|
606
|
-
border-width: 2px 2px 2px 0/*rtl: 2px 0 2px 2px*/;
|
|
607
|
-
border-color: hsl(var(--hue), 100%, 50%);
|
|
608
|
-
border-radius: 0 6px 6px 0/*rtl: 6px 0 0 6px*/;
|
|
609
|
-
margin-left: 30px;
|
|
610
|
-
padding: 18px 30px/*rtl: 18px 30px*/;
|
|
611
646
|
height: 56px;
|
|
612
647
|
--ribbon_tag_before_width: 40px;
|
|
613
648
|
--ribbon_tag_before_height: 40px;
|
|
614
|
-
--ribbon_tag_before_border_width: 2px 0 0 2px/*rtl: 2px 2px 0 0*/;
|
|
615
649
|
--ribbon_tag_before_border_color: hsl(var(--hue), 100%, 50%);
|
|
616
650
|
--ribbon_tag_before_left: -20px;
|
|
617
651
|
--ribbon_tag_before_top: 6px;
|
|
618
652
|
--ribbon_tag_before_border_radius: 0;
|
|
653
|
+
border-color: hsl(var(--hue), 100%, 50%);
|
|
654
|
+
}
|
|
655
|
+
[dir=ltr] .tagRibbon {
|
|
656
|
+
border-width: 2px 2px 2px 0/*rtl: 2px 0 2px 2px*/;
|
|
657
|
+
border-radius: 0 6px 6px 0/*rtl: 6px 0 0 6px*/;
|
|
658
|
+
margin-left: 30px;
|
|
659
|
+
padding: 18px 30px/*rtl: 18px 30px*/;
|
|
660
|
+
--ribbon_tag_before_border_width: 2px 0 0 2px/*rtl: 2px 2px 0 0*/;
|
|
661
|
+
}
|
|
662
|
+
[dir=rtl] .tagRibbon {
|
|
663
|
+
border-width: 2px 0 2px 2px;
|
|
664
|
+
border-radius: 6px 0 0 6px;
|
|
665
|
+
margin-right: 30px;
|
|
666
|
+
padding: 18px 30px;
|
|
667
|
+
--ribbon_tag_before_border_width: 2px 2px 0 0;
|
|
619
668
|
}
|
|
620
669
|
.boxRibbon {
|
|
621
670
|
composes: ribbon;
|
|
@@ -650,10 +699,10 @@
|
|
|
650
699
|
/* custom textboxicon css */
|
|
651
700
|
.customTboxwrap {
|
|
652
701
|
composes: baseHue;
|
|
653
|
-
background-color: hsl(var(--hue), 100%, 90%);
|
|
654
|
-
margin: 5px 0;
|
|
655
702
|
--textboxicon_icon_margin: 4px 10px;
|
|
656
703
|
--textboxicon_icon_color: hsl(var(--hue), 100%, 50%);
|
|
704
|
+
background-color: hsl(var(--hue), 100%, 90%);
|
|
705
|
+
margin: 5px 0;
|
|
657
706
|
}
|
|
658
707
|
.customTbox {
|
|
659
708
|
--textbox_text_color: hsl(var(--hue), 100%, 50%);
|
|
@@ -680,6 +729,8 @@
|
|
|
680
729
|
.tBoxIconRead,
|
|
681
730
|
.tBoxIconDisable {
|
|
682
731
|
composes: baseHue;
|
|
732
|
+
}
|
|
733
|
+
.tBoxIconRead, .tBoxIconDisable {
|
|
683
734
|
background-color: hsl(var(--hue), 100%, 90%);
|
|
684
735
|
margin: 5px 0;
|
|
685
736
|
}
|
|
@@ -693,11 +744,11 @@
|
|
|
693
744
|
/* custom textarea css */
|
|
694
745
|
.customTextarea {
|
|
695
746
|
composes: baseHue;
|
|
696
|
-
background-color: hsl(var(--hue), 100%, 97%);
|
|
697
747
|
--textarea_border_width: 1px;
|
|
698
748
|
--textarea_border_color: hsl(var(--hue), 100%, 50%);
|
|
699
749
|
--textarea_text_color: hsl(var(--hue), 100%, 50%);
|
|
700
750
|
--textarea_padding: 2px 10px;
|
|
751
|
+
background-color: hsl(var(--hue), 100%, 97%);
|
|
701
752
|
}
|
|
702
753
|
.customTextarea:hover {
|
|
703
754
|
--textarea_border_color: hsl(var(--hue), 100%, 40%);
|
|
@@ -707,9 +758,9 @@
|
|
|
707
758
|
}
|
|
708
759
|
.disabledTarea {
|
|
709
760
|
composes: baseHue;
|
|
710
|
-
background-color: hsl(var(--hue), 100%, 97%);
|
|
711
761
|
--textarea_border_width: 1px;
|
|
712
762
|
--textarea_border_color: hsl(var(--hue), 100%, 80%);
|
|
713
763
|
--textarea_text_color: hsl(var(--hue), 100%, 80%);
|
|
714
764
|
--textarea_padding: 2px 10px;
|
|
765
|
+
background-color: hsl(var(--hue), 100%, 97%);
|
|
715
766
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.zoomInEnter,
|
|
2
2
|
.zoomInLeave.zoomInLeaveActive {
|
|
3
3
|
opacity: 0;
|
|
4
|
+
}.zoomInEnter, .zoomInLeave.zoomInLeaveActive {
|
|
4
5
|
transform: perspective(1px) scale(1.5) translateZ(0);
|
|
5
6
|
transition-duration: var(--zd_transition3);
|
|
6
7
|
transition-property: all;
|
|
@@ -8,6 +9,8 @@
|
|
|
8
9
|
.zoomInEnter.zoomInEnterActive,
|
|
9
10
|
.zoomInLeave {
|
|
10
11
|
opacity: 1;
|
|
12
|
+
}
|
|
13
|
+
.zoomInEnter.zoomInEnterActive, .zoomInLeave {
|
|
11
14
|
transform: perspective(1px) scale(1) translateZ(0);
|
|
12
15
|
transition-duration: var(--zd_transition3);
|
|
13
16
|
transition-property: all;
|
|
@@ -15,15 +18,20 @@
|
|
|
15
18
|
|
|
16
19
|
.scaleInEnter,
|
|
17
20
|
.scaleInLeave.scaleInLeaveActive {
|
|
18
|
-
transform: scale(0);
|
|
19
21
|
opacity: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.scaleInEnter, .scaleInLeave.scaleInLeaveActive {
|
|
25
|
+
transform: scale(0);
|
|
20
26
|
transition-duration: var(--zd_transition3);
|
|
21
27
|
transition-property: all;
|
|
22
28
|
}
|
|
23
29
|
.scaleInEnter.scaleInEnterActive,
|
|
24
30
|
.scaleInLeave {
|
|
25
|
-
transform: scale(1);
|
|
26
31
|
opacity: 1;
|
|
32
|
+
}
|
|
33
|
+
.scaleInEnter.scaleInEnterActive, .scaleInLeave {
|
|
34
|
+
transform: scale(1);
|
|
27
35
|
transition-duration: var(--zd_transition3);
|
|
28
36
|
transition-property: all;
|
|
29
37
|
}
|
|
@@ -31,6 +39,9 @@
|
|
|
31
39
|
.fadeInEnter,
|
|
32
40
|
.fadeInLeave.fadeInLeaveActive {
|
|
33
41
|
opacity: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.fadeInEnter, .fadeInLeave.fadeInLeaveActive {
|
|
34
45
|
transition-duration: var(--zd_transition3);
|
|
35
46
|
transition-property: all;
|
|
36
47
|
}
|
|
@@ -38,6 +49,9 @@
|
|
|
38
49
|
.fadeInEnter.fadeInEnterActive,
|
|
39
50
|
.fadeInLeave {
|
|
40
51
|
opacity: 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.fadeInEnter.fadeInEnterActive, .fadeInLeave {
|
|
41
55
|
transition-duration: var(--zd_transition3);
|
|
42
56
|
transition-property: all;
|
|
43
57
|
}
|
|
@@ -45,14 +59,27 @@
|
|
|
45
59
|
.slideLeftEnter,
|
|
46
60
|
.slideLeftLeave.slideLeftLeaveActive {
|
|
47
61
|
opacity: 0;
|
|
48
|
-
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.slideLeftEnter, .slideLeftLeave.slideLeftLeaveActive {
|
|
49
65
|
transition-duration: var(--zd_transition3);
|
|
50
66
|
transition-property: all;
|
|
51
67
|
}
|
|
52
68
|
|
|
69
|
+
[dir=ltr] .slideLeftEnter, [dir=ltr] .slideLeftLeave.slideLeftLeaveActive {
|
|
70
|
+
transform: translateX(110%);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[dir=rtl] .slideLeftEnter, [dir=rtl] .slideLeftLeave.slideLeftLeaveActive {
|
|
74
|
+
transform: translateX(-110%);
|
|
75
|
+
}
|
|
76
|
+
|
|
53
77
|
.slideLeftEnter.slideLeftEnterActive,
|
|
54
78
|
.slideLeftLeave {
|
|
55
79
|
opacity: 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.slideLeftEnter.slideLeftEnterActive, .slideLeftLeave {
|
|
56
83
|
transform: translateX(0%);
|
|
57
84
|
transition-duration: var(--zd_transition3);
|
|
58
85
|
transition-property: all;
|
|
@@ -61,6 +88,9 @@
|
|
|
61
88
|
.slideDownEnter,
|
|
62
89
|
.slideDownLeave.slideDownLeaveActive {
|
|
63
90
|
opacity: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.slideDownEnter, .slideDownLeave.slideDownLeaveActive {
|
|
64
94
|
transform: translateY(-100%);
|
|
65
95
|
transition-duration: var(--zd_transition3);
|
|
66
96
|
transition-property: all;
|
|
@@ -69,6 +99,9 @@
|
|
|
69
99
|
.slideDownEnter.slideDownEnterActive,
|
|
70
100
|
.slideDownLeave {
|
|
71
101
|
opacity: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.slideDownEnter.slideDownEnterActive, .slideDownLeave {
|
|
72
105
|
transform: translateY(0%);
|
|
73
106
|
transition-duration: var(--zd_transition3);
|
|
74
107
|
transition-property: all;
|
|
@@ -77,14 +110,27 @@
|
|
|
77
110
|
.skewInEnter,
|
|
78
111
|
.skewInLeave.skewInLeaveActive {
|
|
79
112
|
opacity: 0;
|
|
80
|
-
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.skewInEnter, .skewInLeave.skewInLeaveActive {
|
|
81
116
|
transition-duration: var(--zd_transition3);
|
|
82
117
|
transition-property: all;
|
|
83
118
|
}
|
|
84
119
|
|
|
120
|
+
[dir=ltr] .skewInEnter, [dir=ltr] .skewInLeave.skewInLeaveActive {
|
|
121
|
+
transform: translate(100%, 100%) skew(72deg) scale(0) perspective(221px);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
[dir=rtl] .skewInEnter, [dir=rtl] .skewInLeave.skewInLeaveActive {
|
|
125
|
+
transform: translate(-100%, 100%) skew(-72deg) scale(0) perspective(221px);
|
|
126
|
+
}
|
|
127
|
+
|
|
85
128
|
.skewInEnter.skewInEnterActive,
|
|
86
129
|
.skewInLeave {
|
|
87
130
|
opacity: 1;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.skewInEnter.skewInEnterActive, .skewInLeave {
|
|
88
134
|
transform: translate(0, 0) skew(0deg) scale(1) perspective(221px);
|
|
89
135
|
transition-duration: var(--zd_transition3);
|
|
90
136
|
transition-property: all;
|
|
@@ -98,9 +144,3 @@
|
|
|
98
144
|
.defaultLeave {
|
|
99
145
|
display: block;
|
|
100
146
|
}
|
|
101
|
-
|
|
102
|
-
.noneEnter,
|
|
103
|
-
.noneEnter.noneEnterActive,
|
|
104
|
-
.noneLeave,
|
|
105
|
-
.noneLeave.noneLeaveActive {
|
|
106
|
-
}
|
|
@@ -77,6 +77,11 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
77
77
|
_this.getContainerRef = _this.getContainerRef.bind(_assertThisInitialized(_this));
|
|
78
78
|
_this.timer = null;
|
|
79
79
|
_this.tooltipDebounce = (0, _Config.getLibraryConfig)('tooltipDebounce');
|
|
80
|
+
(0, _Config.setLibraryConfig)({
|
|
81
|
+
getTooltipContainer: function getTooltipContainer() {
|
|
82
|
+
return _this.containerElement;
|
|
83
|
+
}
|
|
84
|
+
});
|
|
80
85
|
return _this;
|
|
81
86
|
}
|
|
82
87
|
|
|
@@ -84,7 +89,7 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
84
89
|
key: "mouseOverDispatch",
|
|
85
90
|
value: function mouseOverDispatch(e) {
|
|
86
91
|
if (this.tooltipRef) {
|
|
87
|
-
this.tooltipRef.handleOver(e);
|
|
92
|
+
this.tooltipRef.handleOver(e, this.containerElement);
|
|
88
93
|
}
|
|
89
94
|
}
|
|
90
95
|
}, {
|
|
@@ -125,6 +130,7 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
125
130
|
if (this.containerElement) {
|
|
126
131
|
this.containerElement.addEventListener('mouseover', this.handleOver, false);
|
|
127
132
|
this.containerElement.addEventListener('mouseout', this.removeTimeout, false);
|
|
133
|
+
this.tooltipRef.observeElement();
|
|
128
134
|
}
|
|
129
135
|
}
|
|
130
136
|
}, {
|
|
@@ -133,6 +139,7 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
133
139
|
if (this.containerElement) {
|
|
134
140
|
this.containerElement.removeEventListener('mouseover', this.handleOver, false);
|
|
135
141
|
this.containerElement.addEventListener('mouseout', this.removeTimeout, false);
|
|
142
|
+
this.tooltipRef.unObserveElement();
|
|
136
143
|
}
|
|
137
144
|
}
|
|
138
145
|
}, {
|
package/lib/CheckBox/CheckBox.js
CHANGED
|
@@ -127,7 +127,8 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
127
127
|
role: role,
|
|
128
128
|
"aria-label": ariaLabel,
|
|
129
129
|
"aria-labelledby": ariaLabelledby,
|
|
130
|
-
"aria-hidden": ariaHidden
|
|
130
|
+
"aria-hidden": ariaHidden,
|
|
131
|
+
"data-selector": id
|
|
131
132
|
}, CheckBoxProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
132
133
|
className: "".concat(_CheckBoxModule["default"].boxContainer, " ").concat(_CheckBoxModule["default"][size], " ").concat(customCBoxSize, " ").concat(isFilled ? _CheckBoxModule["default"].filled : '')
|
|
133
134
|
}, /*#__PURE__*/_react["default"].createElement("input", {
|
package/lib/DropBox/DropBox.js
CHANGED
|
@@ -171,7 +171,7 @@ var DropBoxElement = /*#__PURE__*/function (_React$Component) {
|
|
|
171
171
|
} : {};
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
boxPosition = boxPosition ? boxPosition : 'bottomCenter';
|
|
174
|
+
boxPosition = boxPosition && boxPosition != 'undefined' ? boxPosition : 'bottomCenter';
|
|
175
175
|
var boxDirection = _DropBoxPositionMapping.positionMapping[boxPosition].direction;
|
|
176
176
|
/*getting box direction*/
|
|
177
177
|
|
|
@@ -51,16 +51,19 @@ var ListContainer = function ListContainer(props) {
|
|
|
51
51
|
onMouseOver = props.onMouseOver,
|
|
52
52
|
eleRef = props.eleRef;
|
|
53
53
|
var responsiveFunc = (0, _react.useCallback)(function (_ref) {
|
|
54
|
-
var mediaQueryOR = _ref.mediaQueryOR
|
|
54
|
+
var mediaQueryOR = _ref.mediaQueryOR,
|
|
55
|
+
isTouchDevice = _ref.isTouchDevice;
|
|
55
56
|
return {
|
|
56
57
|
mobileToTab: mediaQueryOR([{
|
|
57
58
|
maxWidth: 700
|
|
58
|
-
}])
|
|
59
|
+
}]),
|
|
60
|
+
isTouchDevice: isTouchDevice
|
|
59
61
|
};
|
|
60
62
|
}, []);
|
|
61
63
|
|
|
62
64
|
var _useResponsiveReceive = (0, _CustomResponsive.useResponsiveReceiver)('Helmet', responsiveFunc),
|
|
63
|
-
mobileToTab = _useResponsiveReceive.mobileToTab
|
|
65
|
+
mobileToTab = _useResponsiveReceive.mobileToTab,
|
|
66
|
+
isTouchDevice = _useResponsiveReceive.isTouchDevice;
|
|
64
67
|
|
|
65
68
|
var role = a11y.role,
|
|
66
69
|
ariaSelected = a11y.ariaSelected;
|
|
@@ -85,7 +88,7 @@ var ListContainer = function ListContainer(props) {
|
|
|
85
88
|
isCover: false,
|
|
86
89
|
align: "vertical",
|
|
87
90
|
alignBox: "row",
|
|
88
|
-
className: "".concat(_ListItemModule["default"].list, "
|
|
91
|
+
className: "".concat(_ListItemModule["default"].list, " ").concat(_ListItemModule["default"][size], " ").concat(mobileToTab && isTouchDevice ? _ListItemModule["default"].responsiveHeight : '', " ").concat(_ListItemModule["default"][palette], " ").concat(active ? _ListItemModule["default"]["active".concat(palette)] : highlight && !isDisabled ? _ListItemModule["default"]["".concat(palette, "Hover")] : '', " ").concat(autoHover && !isDisabled ? _ListItemModule["default"]["".concat(palette, "Effect")] : '', " ").concat(needTick ? _ListItemModule["default"]["".concat(size, "withTick")] : '', " ").concat(isDisabled ? (0, _CssProvider["default"])('isDisable') : '', " ").concat(needBorder ? active ? _ListItemModule["default"].activewithBorder : _ListItemModule["default"].withBorder : '', " ").concat(customClass),
|
|
89
92
|
dataId: dataId,
|
|
90
93
|
onClick: !isDisabled && onClick,
|
|
91
94
|
onMouseEnter: onMouseEnter,
|
package/lib/ListItem/ListItem.js
CHANGED
|
@@ -135,7 +135,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
135
135
|
autoHover: autoHover,
|
|
136
136
|
needTick: needTick,
|
|
137
137
|
needBorder: needBorder,
|
|
138
|
-
customClass:
|
|
138
|
+
customClass: customListItem,
|
|
139
139
|
dataId: dataIdString,
|
|
140
140
|
isLink: isLink,
|
|
141
141
|
href: href,
|
|
@@ -184,10 +184,10 @@
|
|
|
184
184
|
[dir=ltr] .mediumwithTick {
|
|
185
185
|
--listitem_padding: var(--zd_size9) var(--zd_size39) var(--zd_size9)
|
|
186
186
|
var(--zd_size20)
|
|
187
|
-
/*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)*/;
|
|
188
188
|
}
|
|
189
189
|
[dir=rtl] .mediumwithTick {
|
|
190
|
-
--listitem_padding: var(--zd_size9) var(--zd_size20) var(--zd_size9) var(--
|
|
190
|
+
--listitem_padding: var(--zd_size9) var(--zd_size20) var(--zd_size9) var(--zd_size39);
|
|
191
191
|
}
|
|
192
192
|
[dir=ltr] .largewithTick {
|
|
193
193
|
--listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10)
|
|
@@ -198,13 +198,8 @@
|
|
|
198
198
|
--listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39);
|
|
199
199
|
}
|
|
200
200
|
.responsiveHeight {
|
|
201
|
-
--
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
var(--zd_size20)
|
|
206
|
-
/*rtl: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3)*/;
|
|
207
|
-
}
|
|
208
|
-
[dir=rtl] .responsiveHeight {
|
|
209
|
-
--listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3);
|
|
201
|
+
--listitem_min_height: var(--zd_size45);
|
|
202
|
+
font-size: var(--zd_font_size15);
|
|
203
|
+
padding-top: var(--zd_size10);
|
|
204
|
+
padding-bottom: var(--zd_size10);
|
|
210
205
|
}
|
|
@@ -147,7 +147,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
147
147
|
autoHover: autoHover,
|
|
148
148
|
needTick: needTick,
|
|
149
149
|
needBorder: needBorder,
|
|
150
|
-
customClass:
|
|
150
|
+
customClass: customListItem,
|
|
151
151
|
dataId: "".concat(dataIdString, "_ListItemWithAvatar"),
|
|
152
152
|
onClick: this.handleClick,
|
|
153
153
|
onMouseEnter: this.handleMouseEnter,
|
|
@@ -125,7 +125,7 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
125
125
|
isDisabled: isDisabled,
|
|
126
126
|
active: active,
|
|
127
127
|
autoHover: autoHover,
|
|
128
|
-
customClass:
|
|
128
|
+
customClass: customListItem,
|
|
129
129
|
dataId: "".concat(dataId ? dataId : value, "_ListItemWithCheckBox"),
|
|
130
130
|
onClick: this.onClick,
|
|
131
131
|
onMouseOver: this.onHover,
|
|
@@ -132,7 +132,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
132
132
|
autoHover: autoHover,
|
|
133
133
|
needTick: needTick,
|
|
134
134
|
needBorder: needBorder,
|
|
135
|
-
customClass:
|
|
135
|
+
customClass: customClass,
|
|
136
136
|
dataId: dataIdString,
|
|
137
137
|
isLink: isLink,
|
|
138
138
|
href: href,
|
|
@@ -126,7 +126,7 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
126
126
|
isDisabled: isDisabled,
|
|
127
127
|
active: active,
|
|
128
128
|
autoHover: autoHover,
|
|
129
|
-
customClass:
|
|
129
|
+
customClass: customListItem,
|
|
130
130
|
dataId: dataId,
|
|
131
131
|
onClick: this.onClick,
|
|
132
132
|
onMouseOver: this.onHover,
|
|
@@ -43,6 +43,8 @@ var _Common = require("../utils/Common.js");
|
|
|
43
43
|
|
|
44
44
|
var _dropDownUtils = require("../utils/dropDownUtils");
|
|
45
45
|
|
|
46
|
+
var _Config = require("../Provider/Config");
|
|
47
|
+
|
|
46
48
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
47
49
|
|
|
48
50
|
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; }
|
|
@@ -944,9 +946,9 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
944
946
|
htmlId = _this$props8.htmlId,
|
|
945
947
|
i18nKeys = _this$props8.i18nKeys,
|
|
946
948
|
a11y = _this$props8.a11y,
|
|
947
|
-
isSearchClearOnSelect = _this$props8.isSearchClearOnSelect,
|
|
948
949
|
palette = _this$props8.palette,
|
|
949
|
-
needEffect = _this$props8.needEffect
|
|
950
|
+
needEffect = _this$props8.needEffect,
|
|
951
|
+
autoComplete = _this$props8.autoComplete;
|
|
950
952
|
var _i18nKeys = i18nKeys,
|
|
951
953
|
_i18nKeys$clearText = _i18nKeys.clearText,
|
|
952
954
|
clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
|
|
@@ -1030,7 +1032,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1030
1032
|
ariaOwns: setAriaId,
|
|
1031
1033
|
ariaDescribedby: ariaErrorId
|
|
1032
1034
|
},
|
|
1033
|
-
autoComplete:
|
|
1035
|
+
autoComplete: autoComplete
|
|
1034
1036
|
})), !isReadOnly && !isDisabled && selectedGroupOptions.length > 1 ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
1035
1037
|
className: _MultiSelectModule["default"]["delete"],
|
|
1036
1038
|
dataId: "".concat(dataId, "_clearIcon"),
|
|
@@ -1122,6 +1124,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1122
1124
|
|
|
1123
1125
|
AdvancedGroupMultiSelect.defaultProps = {
|
|
1124
1126
|
animationStyle: 'bounce',
|
|
1127
|
+
autoComplete: (0, _Config.getLibraryConfig)('autoComplete'),
|
|
1125
1128
|
dataId: 'multiSelect',
|
|
1126
1129
|
defaultDropBoxPosition: 'bottom',
|
|
1127
1130
|
dropBoxSize: 'small',
|
|
@@ -1156,6 +1159,7 @@ AdvancedGroupMultiSelect.defaultProps = {
|
|
|
1156
1159
|
};
|
|
1157
1160
|
AdvancedGroupMultiSelect.propTypes = {
|
|
1158
1161
|
animationStyle: _propTypes["default"].string,
|
|
1162
|
+
autoComplete: _propTypes["default"].bool,
|
|
1159
1163
|
borderColor: _propTypes["default"].oneOf(['transparent', 'default']),
|
|
1160
1164
|
customClass: _propTypes["default"].string,
|
|
1161
1165
|
dataId: _propTypes["default"].string,
|