@zohodesk/components 1.0.0-temp-190.2 → 1.0.0-temp-192
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/PropLessFiles.html +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +16 -5
- package/es/Avatar/Avatar.module.css +0 -12
- package/es/AvatarTeam/AvatarTeam.module.css +0 -4
- package/es/Button/css/Button.module.css +0 -6
- package/es/Buttongroup/Buttongroup.module.css +0 -2
- package/es/CheckBox/CheckBox.js +10 -0
- package/es/CheckBox/CheckBox.module.css +0 -2
- package/es/CheckBox/props/propTypes.js +1 -0
- package/es/DateTime/DateTime.module.css +0 -1
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -7
- package/es/DropBox/css/DropBox.module.css +0 -1
- package/es/DropDown/DropDownHeading.module.css +0 -6
- package/es/DropDown/DropDownItem.module.css +0 -3
- package/es/Label/Label.module.css +0 -1
- package/es/ListItem/ListItem.js +2 -2
- package/es/ListItem/ListItem.module.css +85 -39
- package/es/ListItem/ListItemWithAvatar.js +3 -3
- package/es/ListItem/ListItemWithIcon.js +2 -2
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +9 -3
- package/es/MultiSelect/MultiSelect.js +9 -3
- package/es/MultiSelect/MultiSelectWithAvatar.js +3 -1
- package/es/MultiSelect/Suggestions.js +8 -4
- package/es/MultiSelect/props/defaultProps.js +9 -3
- package/es/MultiSelect/props/propTypes.js +7 -3
- package/es/PopOver/PopOver.module.css +3 -3
- package/es/Radio/Radio.js +26 -7
- package/es/Radio/Radio.module.css +3 -1
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
- package/es/Radio/props/defaultProps.js +1 -0
- package/es/Radio/props/propTypes.js +7 -0
- package/es/Ribbon/Ribbon.module.css +0 -4
- package/es/Select/GroupSelect.js +9 -3
- package/es/Select/SelectWithAvatar.js +9 -3
- package/es/Select/SelectWithIcon.js +9 -3
- package/es/Select/props/defaultProps.js +6 -3
- package/es/Select/props/propTypes.js +6 -3
- package/es/Switch/Switch.module.css +0 -2
- package/es/Tag/Tag.module.css +0 -6
- package/es/TextBox/TextBox.module.css +1 -21
- package/es/TextBoxIcon/TextBoxIcon.module.css +0 -5
- package/es/Textarea/Textarea.module.css +0 -6
- package/es/common/customscroll.module.css +27 -3
- package/es/v1/Animation/Animation.js +1 -1
- package/es/v1/Card/Card.js +1 -1
- package/es/v1/CheckBox/CheckBox.js +7 -1
- package/es/v1/CheckBox/props/propTypes.js +1 -0
- package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
- package/es/v1/ListItem/ListContainer.js +1 -1
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +1 -1
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +1 -1
- package/es/v1/MultiSelect/props/defaultProps.js +5 -3
- package/es/v1/Radio/Radio.js +22 -7
- package/es/v1/Radio/props/defaultProps.js +1 -0
- package/es/v1/Radio/props/propTypes.js +7 -0
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
- package/es/v1/Select/GroupSelect.js +1 -1
- package/es/v1/Select/Select.js +1 -1
- package/es/v1/Select/SelectWithAvatar.js +5 -7
- package/es/v1/Select/SelectWithIcon.js +1 -1
- package/es/v1/Select/props/defaultProps.js +1 -1
- package/es/v1/Select/props/propTypes.js +1 -3
- package/es/v1/Tab/Tabs.js +2 -2
- package/es/v1/Tooltip/Tooltip.js +1 -1
- package/lib/Avatar/Avatar.module.css +0 -12
- package/lib/AvatarTeam/AvatarTeam.module.css +0 -4
- package/lib/Button/css/Button.module.css +0 -6
- package/lib/Buttongroup/Buttongroup.module.css +0 -2
- package/lib/CheckBox/CheckBox.js +34 -24
- package/lib/CheckBox/CheckBox.module.css +0 -2
- package/lib/CheckBox/props/propTypes.js +1 -0
- package/lib/DateTime/DateTime.module.css +0 -1
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -7
- package/lib/DropBox/css/DropBox.module.css +0 -1
- package/lib/DropDown/DropDownHeading.module.css +0 -6
- package/lib/DropDown/DropDownItem.module.css +0 -3
- package/lib/Label/Label.module.css +0 -1
- package/lib/ListItem/ListItem.js +2 -2
- package/lib/ListItem/ListItem.module.css +85 -39
- package/lib/ListItem/ListItemWithAvatar.js +3 -3
- package/lib/ListItem/ListItemWithIcon.js +2 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
- package/lib/MultiSelect/MultiSelect.js +8 -3
- package/lib/MultiSelect/MultiSelectWithAvatar.js +3 -1
- package/lib/MultiSelect/Suggestions.js +8 -4
- package/lib/MultiSelect/props/defaultProps.js +9 -3
- package/lib/MultiSelect/props/propTypes.js +9 -6
- package/lib/PopOver/PopOver.module.css +3 -3
- package/lib/Radio/Radio.js +45 -26
- package/lib/Radio/Radio.module.css +3 -1
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
- package/lib/Radio/props/defaultProps.js +1 -0
- package/lib/Radio/props/propTypes.js +7 -0
- package/lib/Ribbon/Ribbon.module.css +0 -4
- package/lib/Select/GroupSelect.js +8 -3
- 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/Switch/Switch.module.css +0 -2
- package/lib/Tag/Tag.module.css +0 -6
- package/lib/TextBox/TextBox.module.css +1 -21
- package/lib/TextBoxIcon/TextBoxIcon.module.css +0 -5
- package/lib/Textarea/Textarea.module.css +0 -6
- package/lib/common/customscroll.module.css +27 -3
- package/lib/v1/Animation/Animation.js +1 -1
- package/lib/v1/Card/Card.js +1 -1
- package/lib/v1/CheckBox/CheckBox.js +7 -1
- package/lib/v1/CheckBox/props/propTypes.js +1 -0
- package/lib/v1/DropBox/utils/isMobilePopover.js +1 -1
- package/lib/v1/ListItem/ListContainer.js +1 -1
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +1 -1
- package/lib/v1/MultiSelect/props/defaultProps.js +5 -3
- package/lib/v1/Radio/Radio.js +22 -7
- package/lib/v1/Radio/props/defaultProps.js +1 -0
- package/lib/v1/Radio/props/propTypes.js +7 -0
- package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
- package/lib/v1/Select/GroupSelect.js +1 -1
- package/lib/v1/Select/Select.js +1 -1
- package/lib/v1/Select/SelectWithAvatar.js +4 -6
- package/lib/v1/Select/SelectWithIcon.js +1 -1
- package/lib/v1/Select/props/defaultProps.js +1 -1
- package/lib/v1/Select/props/propTypes.js +1 -3
- package/lib/v1/Tab/Tabs.js +2 -2
- package/lib/v1/Tooltip/Tooltip.js +1 -1
- package/package.json +10 -10
- package/result.json +1 -1
- package/es/v1/Provider/AvatarSize.js +0 -13
- package/es/v1/Provider/Config.js +0 -18
- package/es/v1/Provider/CssProvider.js +0 -16
- package/es/v1/Provider/IdProvider.js +0 -66
- package/es/v1/Provider/LibraryContext.js +0 -37
- package/es/v1/Provider/LibraryContextInit.js +0 -3
- package/es/v1/Provider/NumberGenerator/NumberGenerator.js +0 -136
- package/es/v1/Provider/ZindexProvider.js +0 -57
- package/es/v1/Provider/index.js +0 -4
- package/es/v1/Responsive/CustomResponsive.js +0 -195
- package/es/v1/Responsive/RefWrapper.js +0 -39
- package/es/v1/Responsive/ResizeComponent.js +0 -197
- package/es/v1/Responsive/ResizeObserver.js +0 -140
- package/es/v1/Responsive/Responsive.js +0 -194
- package/es/v1/Responsive/index.js +0 -9
- package/es/v1/Responsive/props/defaultProps.js +0 -13
- package/es/v1/Responsive/props/propTypes.js +0 -25
- package/lib/v1/Provider/AvatarSize.js +0 -24
- package/lib/v1/Provider/Config.js +0 -27
- package/lib/v1/Provider/CssProvider.js +0 -27
- package/lib/v1/Provider/IdProvider.js +0 -79
- package/lib/v1/Provider/LibraryContext.js +0 -76
- package/lib/v1/Provider/LibraryContextInit.js +0 -15
- package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +0 -174
- package/lib/v1/Provider/ZindexProvider.js +0 -69
- package/lib/v1/Provider/index.js +0 -81
- package/lib/v1/Responsive/CustomResponsive.js +0 -242
- package/lib/v1/Responsive/RefWrapper.js +0 -57
- package/lib/v1/Responsive/ResizeComponent.js +0 -268
- package/lib/v1/Responsive/ResizeObserver.js +0 -168
- package/lib/v1/Responsive/Responsive.js +0 -274
- package/lib/v1/Responsive/index.js +0 -55
- package/lib/v1/Responsive/props/defaultProps.js +0 -23
- package/lib/v1/Responsive/props/propTypes.js +0 -39
|
@@ -32,36 +32,30 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.basic::placeholder {
|
|
35
|
-
/* css:theme-validation:ignore */
|
|
36
35
|
color: var(--textbox_placeholder_text_color);
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
.basic::-webkit-placeholder {
|
|
40
|
-
/* css:theme-validation:ignore */
|
|
41
39
|
color: var(--textbox_placeholder_text_color);
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
.basic::-moz-placeholder {
|
|
45
|
-
/* css:theme-validation:ignore */
|
|
46
43
|
color: var(--textbox_placeholder_text_color);
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
.basic::-ms-placeholder {
|
|
50
|
-
/* css:theme-validation:ignore */
|
|
51
47
|
color: var(--textbox_placeholder_text_color);
|
|
52
48
|
}
|
|
49
|
+
|
|
53
50
|
/* css:lineheight-validation:ignore */
|
|
54
51
|
.container {
|
|
55
52
|
composes: basic;
|
|
56
|
-
/* css:theme-validation:ignore */
|
|
57
53
|
transition: border var(--zd_transition2) linear 0s;
|
|
58
54
|
-moz-transition: border var(--zd_transition2) linear 0s;
|
|
59
55
|
width: var(--textbox_width);
|
|
60
|
-
/* css:theme-validation:ignore */
|
|
61
56
|
color: var(--textbox_text_color);
|
|
62
57
|
font-size: var(--textbox_font_size);
|
|
63
58
|
height: var(--textbox_height);
|
|
64
|
-
/* css:theme-validation:ignore */
|
|
65
59
|
line-height: var(--textbox_line_height);
|
|
66
60
|
background-color: var(--textbox_bg_color);
|
|
67
61
|
-webkit-transition: border var(--zd_transition2) linear 0s;
|
|
@@ -85,22 +79,18 @@
|
|
|
85
79
|
}
|
|
86
80
|
|
|
87
81
|
.container::placeholder {
|
|
88
|
-
/* css:theme-validation:ignore */
|
|
89
82
|
color: var(--textbox_placeholder_text_color);
|
|
90
83
|
}
|
|
91
84
|
|
|
92
85
|
.container::-webkit-placeholder {
|
|
93
|
-
/* css:theme-validation:ignore */
|
|
94
86
|
color: var(--textbox_placeholder_text_color);
|
|
95
87
|
}
|
|
96
88
|
|
|
97
89
|
.container::-moz-placeholder {
|
|
98
|
-
/* css:theme-validation:ignore */
|
|
99
90
|
color: var(--textbox_placeholder_text_color);
|
|
100
91
|
}
|
|
101
92
|
|
|
102
93
|
.container::-ms-placeholder {
|
|
103
|
-
/* css:theme-validation:ignore */
|
|
104
94
|
color: var(--textbox_placeholder_text_color);
|
|
105
95
|
}
|
|
106
96
|
|
|
@@ -114,11 +104,6 @@
|
|
|
114
104
|
border-style: var(--textbox_border_style);
|
|
115
105
|
}
|
|
116
106
|
|
|
117
|
-
.effect:hover,
|
|
118
|
-
.effect:focus {
|
|
119
|
-
/* css:theme-validation:ignore */
|
|
120
|
-
}
|
|
121
|
-
|
|
122
107
|
.effect:hover, .effect:focus {
|
|
123
108
|
border-color: var(--textbox_border_color);
|
|
124
109
|
}
|
|
@@ -127,11 +112,6 @@
|
|
|
127
112
|
--textbox_border_width: 0 0 1px 0;
|
|
128
113
|
}
|
|
129
114
|
|
|
130
|
-
.borderColor_transparent,
|
|
131
|
-
.borderColor_default {
|
|
132
|
-
/* css:theme-validation:ignore */
|
|
133
|
-
}
|
|
134
|
-
|
|
135
115
|
.borderColor_transparent, .borderColor_default {
|
|
136
116
|
border-color: var(--textbox_border_color);
|
|
137
117
|
}
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
cursor: var(--textboxicon_icon_cursor);
|
|
25
25
|
}
|
|
26
26
|
.iconContainer {
|
|
27
|
-
/* css:theme-validation:ignore */
|
|
28
27
|
color: var(--textboxicon_icon_color);
|
|
29
28
|
}
|
|
30
29
|
.effect:hover .iconContainer,
|
|
@@ -51,10 +50,6 @@
|
|
|
51
50
|
right: 0 ;
|
|
52
51
|
left: 0 ;
|
|
53
52
|
}
|
|
54
|
-
.line,
|
|
55
|
-
.borderColor_default {
|
|
56
|
-
/* css:theme-validation:ignore */
|
|
57
|
-
}
|
|
58
53
|
.line, .borderColor_default {
|
|
59
54
|
background-color: var(--textboxicon_line_color);
|
|
60
55
|
}
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
appearance: none;
|
|
20
20
|
outline: 0;
|
|
21
21
|
letter-spacing: 0.1px;
|
|
22
|
-
/* css:theme-validation:ignore */
|
|
23
22
|
color: var(--textarea_text_color);
|
|
24
23
|
cursor: var(--textarea_cursor);
|
|
25
24
|
}
|
|
@@ -27,19 +26,15 @@
|
|
|
27
26
|
border-width: var(--textarea_border_width);
|
|
28
27
|
}
|
|
29
28
|
.basic::placeholder {
|
|
30
|
-
/* css:theme-validation:ignore */
|
|
31
29
|
color: var(--textarea_placeholder_text_color);
|
|
32
30
|
}
|
|
33
31
|
.basic::-webkit-placeholder {
|
|
34
|
-
/* css:theme-validation:ignore */
|
|
35
32
|
color: var(--textarea_placeholder_text_color);
|
|
36
33
|
}
|
|
37
34
|
.basic::-moz-placeholder {
|
|
38
|
-
/* css:theme-validation:ignore */
|
|
39
35
|
color: var(--textarea_placeholder_text_color);
|
|
40
36
|
}
|
|
41
37
|
.basic::-ms-placeholder {
|
|
42
|
-
/* css:theme-validation:ignore */
|
|
43
38
|
color: var(--textarea_placeholder_text_color);
|
|
44
39
|
}
|
|
45
40
|
.basic:disabled {
|
|
@@ -73,7 +68,6 @@
|
|
|
73
68
|
min-width: var(--zd_size100) ;
|
|
74
69
|
font-size: var(--textarea_font_size);
|
|
75
70
|
line-height: var(--textarea_line_height);
|
|
76
|
-
/* css:theme-validation:ignore */
|
|
77
71
|
height: var(--textarea_height);
|
|
78
72
|
-webkit-transition: border var(--zd_transition2) linear 0s,
|
|
79
73
|
height var(--zd_transition2) linear 0s;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
--zd-scroll-thump-hoverbg: var(--zdt_customscroll_thump_hover_bg);
|
|
10
10
|
--zd-scroll-border: var(--zdt_customscroll_border);
|
|
11
11
|
}
|
|
12
|
+
|
|
12
13
|
.scroll[data-scroll-palette='dark'],
|
|
13
14
|
.scroll [data-scroll-palette='dark'] {
|
|
14
15
|
--zd-scroll-bg: var(--zdt_customscroll_dark_bg);
|
|
@@ -16,92 +17,114 @@
|
|
|
16
17
|
--zd-scroll-thump-hoverbg: var(--zdt_customscroll_thump_dark_hover_bg);
|
|
17
18
|
--zd-scroll-border: var(--zdt_customscroll_dark_border);
|
|
18
19
|
}
|
|
20
|
+
|
|
19
21
|
.scroll,
|
|
20
22
|
.scroll * {
|
|
23
|
+
/* css:theme-validation:ignore */
|
|
21
24
|
scrollbar-color: var(--zd-scroll-thump) var(--zd-scroll-bg);
|
|
22
25
|
scrollbar-width: thin;
|
|
26
|
+
/* css:theme-validation:ignore */
|
|
23
27
|
-ms-scrollbar-highlight-color: var(--zd-scroll-bg);
|
|
28
|
+
/* css:theme-validation:ignore */
|
|
24
29
|
-ms-scrollbar-face-color: var(--zd-scroll-thump);
|
|
25
30
|
}
|
|
31
|
+
|
|
26
32
|
.scroll::-webkit-scrollbar,
|
|
27
33
|
.scroll ::-webkit-scrollbar {
|
|
28
34
|
/* css:theme-validation:ignore */
|
|
29
35
|
}
|
|
36
|
+
|
|
30
37
|
.scroll::-webkit-scrollbar, .scroll ::-webkit-scrollbar {
|
|
31
38
|
background: var(--zd-scroll-corner-bg);
|
|
32
39
|
}
|
|
40
|
+
|
|
33
41
|
.scroll::-webkit-scrollbar:hover,
|
|
34
42
|
.scroll ::-webkit-scrollbar:hover {
|
|
35
43
|
/* css:theme-validation:ignore */
|
|
36
44
|
}
|
|
45
|
+
|
|
37
46
|
.scroll::-webkit-scrollbar:hover, .scroll ::-webkit-scrollbar:hover {
|
|
38
47
|
background: var(--zd-scroll-bg);
|
|
39
48
|
}
|
|
49
|
+
|
|
40
50
|
.scroll::-webkit-scrollbar:horizontal,
|
|
41
51
|
.scroll ::-webkit-scrollbar:horizontal {
|
|
42
52
|
height: var(--zd-scroll-height);
|
|
43
53
|
}
|
|
54
|
+
|
|
44
55
|
.scroll::-webkit-scrollbar:vertical,
|
|
45
56
|
.scroll ::-webkit-scrollbar:vertical {
|
|
46
57
|
width: var(--zd-scroll-width);
|
|
47
58
|
}
|
|
59
|
+
|
|
48
60
|
.scroll::-webkit-scrollbar-button,
|
|
49
61
|
.scroll ::-webkit-scrollbar-button {
|
|
50
62
|
display: none;
|
|
51
63
|
width: 0 ;
|
|
52
64
|
height: 0 ;
|
|
53
65
|
}
|
|
66
|
+
|
|
54
67
|
[dir=ltr] .scroll::-webkit-scrollbar-track:vertical, [dir=ltr] .scroll ::-webkit-scrollbar-track:vertical {
|
|
55
68
|
border-left: 1px solid transparent;
|
|
56
69
|
border-right: 1px solid transparent;
|
|
57
70
|
}
|
|
71
|
+
|
|
58
72
|
[dir=rtl] .scroll::-webkit-scrollbar-track:vertical, [dir=rtl] .scroll ::-webkit-scrollbar-track:vertical {
|
|
59
73
|
border-right: 1px solid transparent;
|
|
60
74
|
border-left: 1px solid transparent;
|
|
61
75
|
}
|
|
76
|
+
|
|
62
77
|
.scroll::-webkit-scrollbar-track:vertical:hover,
|
|
63
78
|
.scroll ::-webkit-scrollbar-track:vertical:hover {
|
|
64
79
|
/* css:theme-validation:ignore */
|
|
65
80
|
}
|
|
81
|
+
|
|
66
82
|
.scroll::-webkit-scrollbar-track:vertical:hover, .scroll ::-webkit-scrollbar-track:vertical:hover {
|
|
67
83
|
border-color: var(--zd-scroll-border);
|
|
68
84
|
}
|
|
85
|
+
|
|
69
86
|
.scroll::-webkit-scrollbar-track:horizontal, .scroll ::-webkit-scrollbar-track:horizontal {
|
|
70
87
|
border-top: 1px solid transparent;
|
|
71
88
|
border-bottom: 1px solid transparent;
|
|
72
89
|
}
|
|
90
|
+
|
|
73
91
|
.scroll::-webkit-scrollbar-track:horizontal:hover,
|
|
74
92
|
.scroll ::-webkit-scrollbar-track:horizontal:hover {
|
|
75
93
|
/* css:theme-validation:ignore */
|
|
76
94
|
}
|
|
95
|
+
|
|
77
96
|
.scroll::-webkit-scrollbar-track:horizontal:hover, .scroll ::-webkit-scrollbar-track:horizontal:hover {
|
|
78
97
|
border-color: var(--zd-scroll-border);
|
|
79
98
|
}
|
|
99
|
+
|
|
80
100
|
.scroll::-webkit-scrollbar-track-piece, .scroll ::-webkit-scrollbar-track-piece {
|
|
81
101
|
background: inherit;
|
|
82
102
|
}
|
|
103
|
+
|
|
83
104
|
.scroll::-webkit-scrollbar-thumb,
|
|
84
105
|
.scroll ::-webkit-scrollbar-thumb {
|
|
85
|
-
/* css:theme-validation:ignore */
|
|
86
106
|
/* css:theme-validation:ignore */
|
|
87
107
|
/* display: none; */
|
|
88
108
|
}
|
|
109
|
+
|
|
89
110
|
.scroll::-webkit-scrollbar-thumb, .scroll ::-webkit-scrollbar-thumb {
|
|
90
111
|
border-radius: 10px;
|
|
91
112
|
background: var(--zd-scroll-thump);
|
|
92
113
|
background-clip: padding-box;
|
|
93
114
|
border: 3px solid transparent;
|
|
94
115
|
}
|
|
116
|
+
|
|
95
117
|
.scroll::-webkit-scrollbar-thumb:hover,
|
|
96
118
|
.scroll ::-webkit-scrollbar-thumb:hover {
|
|
97
119
|
/* css:theme-validation:ignore */
|
|
98
|
-
/* css:theme-validation:ignore */
|
|
99
120
|
}
|
|
121
|
+
|
|
100
122
|
.scroll::-webkit-scrollbar-thumb:hover, .scroll ::-webkit-scrollbar-thumb:hover {
|
|
101
123
|
background: var(--zd-scroll-thump-hoverbg);
|
|
102
124
|
background-clip: padding-box;
|
|
103
125
|
border: 3px solid transparent;
|
|
104
126
|
}
|
|
127
|
+
|
|
105
128
|
/* .scroll:hover > ::-webkit-scrollbar-thumb,
|
|
106
129
|
.scroll *:hover > ::-webkit-scrollbar-thumb {
|
|
107
130
|
display: block;
|
|
@@ -113,6 +136,7 @@
|
|
|
113
136
|
.scroll::-webkit-scrollbar-corner, .scroll ::-webkit-scrollbar-corner {
|
|
114
137
|
background: var(--zd-scroll-corner-bg);
|
|
115
138
|
}
|
|
139
|
+
|
|
116
140
|
.scroll::-webkit-resizer, .scroll ::-webkit-resizer {
|
|
117
141
|
background: inherit;
|
|
118
|
-
}
|
|
142
|
+
}
|
|
@@ -17,7 +17,7 @@ export default function Animation(props) {
|
|
|
17
17
|
} = props;
|
|
18
18
|
let newClassNames = delayClassName ? Object.assign({}, animationStyle[name], {
|
|
19
19
|
exit: `${delayClassName} ${animationStyle[name].exit}`
|
|
20
|
-
}) :
|
|
20
|
+
}) : animationStyle[name];
|
|
21
21
|
return /*#__PURE__*/React.createElement(CSSTransition, {
|
|
22
22
|
classNames: newClassNames && newClassNames,
|
|
23
23
|
in: isActive,
|
package/es/v1/Card/Card.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useEffectCallOnlyAfterState } from '@zohodesk/hooks';
|
|
|
3
3
|
import { CardHeader_propTypes, CardContent_propTypes, Card_propTypes, CardFooter_propTypes } from './props/propTypes';
|
|
4
4
|
import { Card_defaultProps, CardHeader_defaultProps, CardContent_defaultProps, CardFooter_defaultProps } from './props/defaultProps';
|
|
5
5
|
import { Container, Box } from '../Layout';
|
|
6
|
-
import { getLibraryConfig } from '
|
|
6
|
+
import { getLibraryConfig } from '../../Provider/Config';
|
|
7
7
|
import style from '../../Card/Card.module.css';
|
|
8
8
|
/* eslint-disable react/forbid-component-props */
|
|
9
9
|
|
|
@@ -5,7 +5,7 @@ import { propTypes } from './props/propTypes';
|
|
|
5
5
|
import { defaultProps } from './props/defaultProps';
|
|
6
6
|
import Label from '../Label/Label';
|
|
7
7
|
import { Container, Box } from '../Layout';
|
|
8
|
-
import CssProvider from '
|
|
8
|
+
import CssProvider from '../../Provider/CssProvider';
|
|
9
9
|
import style from '../../CheckBox/CheckBox.module.css';
|
|
10
10
|
|
|
11
11
|
const CheckBox = props => {
|
|
@@ -24,6 +24,7 @@ const CheckBox = props => {
|
|
|
24
24
|
isFilled,
|
|
25
25
|
isClipped,
|
|
26
26
|
getRef,
|
|
27
|
+
getContainerRef,
|
|
27
28
|
variant,
|
|
28
29
|
active,
|
|
29
30
|
dataId,
|
|
@@ -42,6 +43,10 @@ const CheckBox = props => {
|
|
|
42
43
|
onChange && onChange(!checked, e);
|
|
43
44
|
}
|
|
44
45
|
|
|
46
|
+
function handleGetContainerRef(ele) {
|
|
47
|
+
getContainerRef && getContainerRef(ele, id);
|
|
48
|
+
}
|
|
49
|
+
|
|
45
50
|
let {
|
|
46
51
|
CheckBoxProps = {},
|
|
47
52
|
LabelProps = {}
|
|
@@ -73,6 +78,7 @@ const CheckBox = props => {
|
|
|
73
78
|
onClick: isReadOnly || disabled ? null : onChange,
|
|
74
79
|
tabIndex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
|
|
75
80
|
"aria-checked": ariaChecked,
|
|
81
|
+
eleRef: handleGetContainerRef,
|
|
76
82
|
role: role,
|
|
77
83
|
"aria-label": ariaLabel,
|
|
78
84
|
"aria-labelledby": ariaLabelledby,
|
|
@@ -7,7 +7,7 @@ import CssProvider from '../../Provider/CssProvider';
|
|
|
7
7
|
import style from '../../ListItem/ListItem.module.css';
|
|
8
8
|
import { ListContainerDefaultProps } from './props/defaultProps';
|
|
9
9
|
import { ListContainer_Props } from './props/propTypes';
|
|
10
|
-
import { useResponsiveReceiver } from '
|
|
10
|
+
import { useResponsiveReceiver } from '../../Responsive/CustomResponsive';
|
|
11
11
|
|
|
12
12
|
const ListContainer = props => {
|
|
13
13
|
const {
|
|
@@ -15,7 +15,7 @@ import EmptyState from './EmptyState';
|
|
|
15
15
|
import Card, { CardContent, CardHeader, CardFooter } from '../Card/Card';
|
|
16
16
|
import { getUniqueId } from '../../Provider/IdProvider';
|
|
17
17
|
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
|
18
|
-
import { ResponsiveReceiver } from '
|
|
18
|
+
import { ResponsiveReceiver } from '../../Responsive/CustomResponsive';
|
|
19
19
|
/**** Icons ****/
|
|
20
20
|
|
|
21
21
|
import { Icon } from '@zohodesk/icons';
|
|
@@ -18,7 +18,7 @@ import Card, { CardContent, CardHeader, CardFooter } from '../Card/Card';
|
|
|
18
18
|
import { Icon } from '@zohodesk/icons';
|
|
19
19
|
import { getUniqueId } from '../../Provider/IdProvider';
|
|
20
20
|
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
|
21
|
-
import { ResponsiveReceiver } from '
|
|
21
|
+
import { ResponsiveReceiver } from '../../Responsive/CustomResponsive';
|
|
22
22
|
import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
23
23
|
/**** CSS ****/
|
|
24
24
|
|
|
@@ -17,7 +17,7 @@ import MobileHeader from './MobileHeader/MobileHeader';
|
|
|
17
17
|
import MultiSelectHeader from './MultiSelectHeader';
|
|
18
18
|
import CssProvider from '../../Provider/CssProvider';
|
|
19
19
|
import { getUniqueId } from '../../Provider/IdProvider';
|
|
20
|
-
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox'; // import { ResponsiveReceiver } from '
|
|
20
|
+
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox'; // import { ResponsiveReceiver } from '../../Responsive/CustomResponsive';
|
|
21
21
|
|
|
22
22
|
import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
23
23
|
import isMobilePopover from '../DropBox/utils/isMobilePopover';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getLibraryConfig } from '
|
|
1
|
+
import { getLibraryConfig } from '../../../Provider/Config';
|
|
2
2
|
export const AdvancedGroupMultiSelect_defaultProps = {
|
|
3
3
|
animationStyle: 'bounce',
|
|
4
4
|
autoComplete: getLibraryConfig('autoComplete'),
|
|
@@ -109,7 +109,8 @@ export const MultiSelect_defaultProps = {
|
|
|
109
109
|
dataSelectorId: 'multiSelect',
|
|
110
110
|
keepSelectedOptions: false,
|
|
111
111
|
selectedOptionsCount: 0,
|
|
112
|
-
cardHeaderName: ''
|
|
112
|
+
cardHeaderName: '',
|
|
113
|
+
needResponsive: true
|
|
113
114
|
};
|
|
114
115
|
export const MultiSelectHeader_defaultProps = {
|
|
115
116
|
dataId: 'MultiSelectHeader'
|
|
@@ -143,7 +144,8 @@ export const MultiSelectWithAvatar_defaultProps = {
|
|
|
143
144
|
isLoading: false,
|
|
144
145
|
dataSelectorId: 'multiSelectWithAvatar',
|
|
145
146
|
keepSelectedOptions: false,
|
|
146
|
-
customProps: {}
|
|
147
|
+
customProps: {},
|
|
148
|
+
needResponsive: true
|
|
147
149
|
};
|
|
148
150
|
export const SelectedOptions_defaultProps = {
|
|
149
151
|
size: 'medium'
|
package/es/v1/Radio/Radio.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -24,6 +26,9 @@ const Radio = props => {
|
|
|
24
26
|
active,
|
|
25
27
|
isFilled,
|
|
26
28
|
customClass,
|
|
29
|
+
customProps,
|
|
30
|
+
getRef,
|
|
31
|
+
children,
|
|
27
32
|
a11y
|
|
28
33
|
} = props;
|
|
29
34
|
let {
|
|
@@ -36,11 +41,16 @@ const Radio = props => {
|
|
|
36
41
|
let {
|
|
37
42
|
ariaHidden,
|
|
38
43
|
role = 'radio',
|
|
44
|
+
tabIndex,
|
|
39
45
|
ariaChecked = checked,
|
|
40
46
|
ariaLabel,
|
|
41
47
|
ariaLabelledby,
|
|
42
48
|
ariaReadonly = isReadOnly || disabled ? true : false
|
|
43
49
|
} = a11y;
|
|
50
|
+
let {
|
|
51
|
+
ContainerProps = {},
|
|
52
|
+
LabelProps = {}
|
|
53
|
+
} = customProps;
|
|
44
54
|
|
|
45
55
|
function onChange(e) {
|
|
46
56
|
const {
|
|
@@ -49,7 +59,11 @@ const Radio = props => {
|
|
|
49
59
|
onChange && onChange(value, e);
|
|
50
60
|
}
|
|
51
61
|
|
|
52
|
-
|
|
62
|
+
function handleGetRef(ele) {
|
|
63
|
+
getRef && getRef(ele, value);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
53
67
|
dataId: value ? value.toLowerCase() : 'RadioComp',
|
|
54
68
|
isCover: false,
|
|
55
69
|
isInline: text ? false : true,
|
|
@@ -59,13 +73,14 @@ const Radio = props => {
|
|
|
59
73
|
"data-title": toolTip,
|
|
60
74
|
onClick: !isReadOnly && !disabled ? onChange : '',
|
|
61
75
|
"aria-checked": ariaChecked,
|
|
62
|
-
tabindex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
|
|
76
|
+
tabindex: isReadOnly || disabled || ariaHidden ? '-1' : tabIndex || '0',
|
|
77
|
+
eleRef: handleGetRef,
|
|
63
78
|
role: role,
|
|
64
79
|
"aria-Hidden": ariaHidden,
|
|
65
80
|
"aria-label": ariaLabel,
|
|
66
81
|
"aria-labelledby": ariaLabelledby,
|
|
67
82
|
"aria-readonly": ariaReadonly
|
|
68
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
83
|
+
}, ContainerProps), /*#__PURE__*/React.createElement(Box, {
|
|
69
84
|
className: `${style.radio} ${checked ? `${style[`rdBox${palette}`]}` : ''}
|
|
70
85
|
${isReadOnly || disabled ? '' : `${style[`hover${palette}`]}`} ${style[size]} ${isFilled ? style.filled : ''} ${style[`centerPath${palette}`]} ${customRadio}`
|
|
71
86
|
}, /*#__PURE__*/React.createElement("input", {
|
|
@@ -91,18 +106,18 @@ const Radio = props => {
|
|
|
91
106
|
}) : null))), text && /*#__PURE__*/React.createElement(Box, {
|
|
92
107
|
flexible: true,
|
|
93
108
|
className: style.text
|
|
94
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
109
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
95
110
|
text: text,
|
|
96
|
-
palette:
|
|
111
|
+
palette: labelPalette,
|
|
97
112
|
size: labelSize,
|
|
98
113
|
type: "title",
|
|
99
114
|
clipped: true,
|
|
100
115
|
dataId: `${text}_label`,
|
|
101
116
|
variant: variant,
|
|
102
117
|
title: toolTip ? toolTip : text,
|
|
103
|
-
customClass: `${checked && active
|
|
118
|
+
customClass: `${checked && active ? `${style[`${palette}checkedActive`]}` : ''}
|
|
104
119
|
${style[`${palette}Label`]} ${accessMode} ${customLabel}`
|
|
105
|
-
})));
|
|
120
|
+
}, LabelProps))), children);
|
|
106
121
|
};
|
|
107
122
|
|
|
108
123
|
export default Radio;
|
|
@@ -4,6 +4,7 @@ export const propTypes = {
|
|
|
4
4
|
checked: PropTypes.bool,
|
|
5
5
|
disabled: PropTypes.bool,
|
|
6
6
|
disabledTitle: PropTypes.string,
|
|
7
|
+
getRef: PropTypes.func,
|
|
7
8
|
id: PropTypes.string,
|
|
8
9
|
isFilled: PropTypes.bool,
|
|
9
10
|
isReadOnly: PropTypes.bool,
|
|
@@ -20,14 +21,20 @@ export const propTypes = {
|
|
|
20
21
|
customRadio: PropTypes.string,
|
|
21
22
|
customLabel: PropTypes.string
|
|
22
23
|
}),
|
|
24
|
+
customProps: PropTypes.exact({
|
|
25
|
+
ContainerProps: PropTypes.object,
|
|
26
|
+
LabelProps: PropTypes.object
|
|
27
|
+
}),
|
|
23
28
|
a11y: PropTypes.shape({
|
|
24
29
|
ariaChecked: PropTypes.bool,
|
|
25
30
|
ariaHidden: PropTypes.bool,
|
|
26
31
|
role: PropTypes.string,
|
|
32
|
+
tabIndex: PropTypes.oneOfType(PropTypes.string, PropTypes.number),
|
|
27
33
|
ariaLabelledby: PropTypes.string,
|
|
28
34
|
ariaLabel: PropTypes.string,
|
|
29
35
|
ariaReadonly: PropTypes.bool
|
|
30
36
|
}),
|
|
37
|
+
children: PropTypes.node,
|
|
31
38
|
onChange: PropTypes.func,
|
|
32
39
|
text: PropTypes.string
|
|
33
40
|
};
|
|
@@ -5,7 +5,7 @@ import { defaultProps } from './props/defaultProps';
|
|
|
5
5
|
import { propTypes } from './props/propTypes';
|
|
6
6
|
import DropBox from '../DropBox/DropBox';
|
|
7
7
|
import { Container } from '../Layout';
|
|
8
|
-
import { ResponsiveReceiver } from '
|
|
8
|
+
import { ResponsiveReceiver } from '../../Responsive/CustomResponsive';
|
|
9
9
|
import style from '../../ResponsiveDropBox/ResponsiveDropBox.module.css';
|
|
10
10
|
export default function ResponsiveDropBox(props) {
|
|
11
11
|
const {
|
|
@@ -16,7 +16,7 @@ import DropDownHeading from '../DropDown/DropDownHeading';
|
|
|
16
16
|
import { Container, Box } from '../Layout';
|
|
17
17
|
import { getUniqueId } from '../../Provider/IdProvider';
|
|
18
18
|
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
|
19
|
-
import { ResponsiveReceiver } from '
|
|
19
|
+
import { ResponsiveReceiver } from '../../Responsive/CustomResponsive';
|
|
20
20
|
import style from '../../Select/Select.module.css';
|
|
21
21
|
/**** Methods ****/
|
|
22
22
|
|
package/es/v1/Select/Select.js
CHANGED
|
@@ -16,7 +16,7 @@ import EmptyState from '../MultiSelect/EmptyState';
|
|
|
16
16
|
import { getUniqueId } from '../../Provider/IdProvider';
|
|
17
17
|
import { Icon } from '@zohodesk/icons';
|
|
18
18
|
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
|
19
|
-
import { ResponsiveReceiver } from '
|
|
19
|
+
import { ResponsiveReceiver } from '../../Responsive/CustomResponsive';
|
|
20
20
|
import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
21
21
|
/**** Methods ****/
|
|
22
22
|
|
|
@@ -10,13 +10,13 @@ import Tag from '../Tag/Tag';
|
|
|
10
10
|
import Textbox from '../TextBox/TextBox';
|
|
11
11
|
import TextBoxIcon from '../TextBoxIcon/TextBoxIcon';
|
|
12
12
|
import { Container, Box } from '../Layout';
|
|
13
|
-
import Card, { CardContent, CardHeader
|
|
13
|
+
import Card, { CardContent, CardHeader } from '../Card/Card';
|
|
14
14
|
import Suggestions from '../MultiSelect/Suggestions';
|
|
15
15
|
import EmptyState from '../MultiSelect/EmptyState';
|
|
16
16
|
import DropDownHeading from '../DropDown/DropDownHeading';
|
|
17
17
|
import { getUniqueId } from '../../Provider/IdProvider';
|
|
18
18
|
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
|
19
|
-
import { ResponsiveReceiver } from '
|
|
19
|
+
import { ResponsiveReceiver } from '../../Responsive/CustomResponsive';
|
|
20
20
|
import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
21
21
|
/**** CSS ****/
|
|
22
22
|
|
|
@@ -158,9 +158,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
158
158
|
htmlId,
|
|
159
159
|
needEffect,
|
|
160
160
|
isLoading,
|
|
161
|
-
dataSelectorId
|
|
162
|
-
getHeader,
|
|
163
|
-
getFooter
|
|
161
|
+
dataSelectorId
|
|
164
162
|
} = this.props;
|
|
165
163
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
166
164
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
@@ -296,7 +294,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
296
294
|
a11y: {
|
|
297
295
|
role: 'heading'
|
|
298
296
|
}
|
|
299
|
-
})) : null,
|
|
297
|
+
})) : null, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
300
298
|
activeId: selectedId,
|
|
301
299
|
suggestions: suggestions,
|
|
302
300
|
getRef: this.suggestionItemRef,
|
|
@@ -323,7 +321,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
323
321
|
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
324
322
|
isCover: false,
|
|
325
323
|
align: "both"
|
|
326
|
-
}, /*#__PURE__*/React.createElement(Loader, null)))
|
|
324
|
+
}, /*#__PURE__*/React.createElement(Loader, null))))));
|
|
327
325
|
}) : null);
|
|
328
326
|
}
|
|
329
327
|
|
|
@@ -12,7 +12,7 @@ import EmptyState from '../MultiSelect/EmptyState';
|
|
|
12
12
|
import { Container, Box } from '../Layout';
|
|
13
13
|
import { getUniqueId } from '../../Provider/IdProvider';
|
|
14
14
|
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
|
15
|
-
import { ResponsiveReceiver } from '
|
|
15
|
+
import { ResponsiveReceiver } from '../../Responsive/CustomResponsive';
|
|
16
16
|
import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
17
17
|
/**** Methods ****/
|
|
18
18
|
|
|
@@ -230,9 +230,7 @@ export const SelectWithAvatar_propTypes = { ...Select_propTypes,
|
|
|
230
230
|
htmlId: PropTypes.string,
|
|
231
231
|
needEffect: PropTypes.bool,
|
|
232
232
|
isLoading: PropTypes.bool,
|
|
233
|
-
dataSelectorId: PropTypes.string
|
|
234
|
-
getFooter: PropTypes.func,
|
|
235
|
-
getHeader: PropTypes.func
|
|
233
|
+
dataSelectorId: PropTypes.string
|
|
236
234
|
};
|
|
237
235
|
export const SelectWithIcon_propTypes = {
|
|
238
236
|
animationStyle: PropTypes.oneOf(['default', 'bounce']),
|
package/es/v1/Tab/Tabs.js
CHANGED
|
@@ -7,13 +7,13 @@ import { Tabs_defaultProps } from './props/defaultProps';
|
|
|
7
7
|
import { Tabs_propTypes } from './props/propTypes';
|
|
8
8
|
import { remConvert, getTotalDimension, cs, throttle, cancelBubblingEffect } from '../../utils/Common';
|
|
9
9
|
import { Box, Container } from '../Layout';
|
|
10
|
-
import ResizeObserver from '
|
|
10
|
+
import ResizeObserver from '../../Responsive/ResizeObserver';
|
|
11
11
|
import ListItem from '../ListItem/ListItem';
|
|
12
12
|
import { Icon } from '@zohodesk/icons';
|
|
13
13
|
import tabsStyle from './v1Tabs.module.css';
|
|
14
14
|
import Popup from '../Popup/Popup';
|
|
15
15
|
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
|
16
|
-
import { ResponsiveReceiver } from '
|
|
16
|
+
import { ResponsiveReceiver } from '../../Responsive/CustomResponsive';
|
|
17
17
|
import btnstyle from '../../semantic/Button/semanticButton.module.css';
|
|
18
18
|
|
|
19
19
|
const Tabs = props => {
|
package/es/v1/Tooltip/Tooltip.js
CHANGED
|
@@ -3,7 +3,7 @@ import { defaultProps } from './props/defaultProps';
|
|
|
3
3
|
import { propTypes } from './props/propTypes';
|
|
4
4
|
import { getLibraryConfig } from '../../Provider/Config';
|
|
5
5
|
import style from '../../Tooltip/Tooltip.module.css';
|
|
6
|
-
import ResizeObserver from '
|
|
6
|
+
import ResizeObserver from '../../Responsive/ResizeObserver';
|
|
7
7
|
import selectn from 'selectn';
|
|
8
8
|
export default class Tooltip extends React.Component {
|
|
9
9
|
constructor(props) {
|