@zohodesk/components 1.0.0-temp-207.2 → 1.0.0-temp-208.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cli/propValidation_report.html +1 -1
- package/README.md +11 -0
- package/es/AppContainer/AppContainer.js +11 -7
- package/es/AppContainer/props/defaultProps.js +2 -1
- package/es/AppContainer/props/propTypes.js +2 -1
- package/es/Avatar/Avatar.module.css +175 -175
- package/es/AvatarTeam/AvatarTeam.module.css +189 -189
- package/es/Button/css/Button.module.css +527 -527
- package/es/Buttongroup/Buttongroup.module.css +104 -104
- package/es/CheckBox/CheckBox.module.css +157 -157
- package/es/DateTime/DateTime.module.css +248 -248
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +431 -431
- package/es/DropBox/css/DropBox.module.css +58 -58
- package/es/DropDown/DropDownHeading.module.css +53 -53
- package/es/DropDown/DropDownItem.module.css +94 -94
- package/es/Label/Label.module.css +57 -57
- package/es/ListItem/ListItem.module.css +205 -205
- package/es/PopOver/PopOver.module.css +8 -8
- package/es/Radio/Radio.module.css +115 -115
- package/es/Ribbon/Ribbon.module.css +499 -499
- package/es/Switch/Switch.module.css +127 -127
- package/es/Tab/Tabs.js +12 -2
- package/es/Tab/Tabs.module.css +2 -2
- package/es/Tab/props/defaultProps.js +4 -1
- package/es/Tab/props/propTypes.js +5 -1
- package/es/Tag/Tag.module.css +253 -253
- package/es/TextBox/TextBox.module.css +196 -196
- package/es/TextBoxIcon/TextBoxIcon.module.css +79 -79
- package/es/Textarea/Textarea.js +24 -152
- package/es/Textarea/Textarea.module.css +140 -191
- package/es/Textarea/props/defaultProps.js +1 -2
- package/es/Textarea/props/propTypes.js +1 -5
- package/es/common/customscroll.module.css +141 -141
- package/es/v1/DropDown/DropDownSearch.js +1 -1
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +4 -0
- package/es/v1/Tab/Tabs.js +12 -2
- package/es/v1/Tab/props/defaultProps.js +4 -1
- package/es/v1/Tab/props/propTypes.js +5 -1
- package/es/v1/Tab/v1Tabs.module.css +2 -2
- package/lib/AppContainer/AppContainer.js +38 -23
- package/lib/AppContainer/props/defaultProps.js +2 -1
- package/lib/AppContainer/props/propTypes.js +2 -1
- package/lib/Avatar/Avatar.module.css +175 -175
- package/lib/AvatarTeam/AvatarTeam.module.css +189 -189
- package/lib/Button/css/Button.module.css +527 -527
- package/lib/Buttongroup/Buttongroup.module.css +104 -104
- package/lib/CheckBox/CheckBox.module.css +157 -157
- package/lib/DateTime/DateTime.module.css +248 -248
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +431 -431
- package/lib/DropBox/css/DropBox.module.css +58 -58
- package/lib/DropDown/DropDownHeading.module.css +53 -53
- package/lib/DropDown/DropDownItem.module.css +94 -94
- package/lib/Label/Label.module.css +57 -57
- package/lib/ListItem/ListItem.module.css +205 -205
- package/lib/PopOver/PopOver.module.css +8 -8
- package/lib/Radio/Radio.module.css +115 -115
- package/lib/Ribbon/Ribbon.module.css +499 -499
- package/lib/Switch/Switch.module.css +127 -127
- package/lib/Tab/Tabs.js +14 -4
- package/lib/Tab/Tabs.module.css +2 -2
- package/lib/Tab/props/defaultProps.js +4 -1
- package/lib/Tab/props/propTypes.js +5 -1
- package/lib/Tag/Tag.module.css +253 -253
- package/lib/TextBox/TextBox.module.css +196 -196
- package/lib/TextBoxIcon/TextBoxIcon.module.css +79 -79
- package/lib/Textarea/Textarea.js +43 -189
- package/lib/Textarea/Textarea.module.css +140 -191
- package/lib/Textarea/props/defaultProps.js +1 -2
- package/lib/Textarea/props/propTypes.js +1 -5
- package/lib/common/customscroll.module.css +141 -141
- package/lib/v1/DropDown/DropDownSearch.js +1 -1
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +4 -0
- package/lib/v1/Tab/Tabs.js +14 -4
- package/lib/v1/Tab/props/defaultProps.js +4 -1
- package/lib/v1/Tab/props/propTypes.js +5 -1
- package/lib/v1/Tab/v1Tabs.module.css +2 -2
- package/package.json +4 -4
- package/result.json +1 -1
- package/es/Textarea/TextareaOne.js +0 -349
- package/es/Textarea/utils/calculateNodeHeight.js +0 -58
- package/es/Textarea/utils/calculateNodeHeightOne.js +0 -66
- package/es/Textarea/utils/debounce.js +0 -24
- package/es/Textarea/utils/getSizingData.js +0 -27
- package/es/Textarea/utils/ownerDocument.js +0 -5
- package/es/Textarea/utils/ownerWindow.js +0 -8
- package/es/Textarea/utils/updateState.js +0 -30
- package/lib/Textarea/TextareaOne.js +0 -422
- package/lib/Textarea/utils/calculateNodeHeight.js +0 -69
- package/lib/Textarea/utils/calculateNodeHeightOne.js +0 -74
- package/lib/Textarea/utils/debounce.js +0 -33
- package/lib/Textarea/utils/getSizingData.js +0 -37
- package/lib/Textarea/utils/ownerDocument.js +0 -13
- package/lib/Textarea/utils/ownerWindow.js +0 -18
- package/lib/Textarea/utils/updateState.js +0 -36
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
.scroll {
|
|
2
|
-
/* Variable:Ignore */
|
|
3
|
-
--zd-scroll-width: 12px;
|
|
4
|
-
/* Variable:Ignore */
|
|
5
|
-
--zd-scroll-height: 12px;
|
|
6
|
-
--zd-scroll-bg: var(--zdt_customscroll_default_bg);
|
|
7
|
-
--zd-scroll-corner-bg: transparent;
|
|
8
|
-
--zd-scroll-thump: var(--zdt_customscroll_thump_bg);
|
|
9
|
-
--zd-scroll-thump-hoverbg: var(--zdt_customscroll_thump_hover_bg);
|
|
10
|
-
--zd-scroll-border: var(--zdt_customscroll_border);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.scroll[data-scroll-palette='dark'],
|
|
14
|
-
.scroll [data-scroll-palette='dark'] {
|
|
15
|
-
--zd-scroll-bg: var(--zdt_customscroll_dark_bg);
|
|
16
|
-
--zd-scroll-thump: var(--zdt_customscroll_thump_dark_bg);
|
|
17
|
-
--zd-scroll-thump-hoverbg: var(--zdt_customscroll_thump_dark_hover_bg);
|
|
18
|
-
--zd-scroll-border: var(--zdt_customscroll_dark_border);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.scroll,
|
|
22
|
-
.scroll * {
|
|
23
|
-
/* css:theme-validation:ignore */
|
|
24
|
-
scrollbar-color: var(--zd-scroll-thump) var(--zd-scroll-bg);
|
|
25
|
-
scrollbar-width: thin;
|
|
26
|
-
/* css:theme-validation:ignore */
|
|
27
|
-
-ms-scrollbar-highlight-color: var(--zd-scroll-bg);
|
|
28
|
-
/* css:theme-validation:ignore */
|
|
29
|
-
-ms-scrollbar-face-color: var(--zd-scroll-thump);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.scroll::-webkit-scrollbar,
|
|
33
|
-
.scroll ::-webkit-scrollbar {
|
|
34
|
-
/* css:theme-validation:ignore */
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.scroll::-webkit-scrollbar, .scroll ::-webkit-scrollbar {
|
|
38
|
-
background: var(--zd-scroll-corner-bg);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.scroll::-webkit-scrollbar:hover,
|
|
42
|
-
.scroll ::-webkit-scrollbar:hover {
|
|
43
|
-
/* css:theme-validation:ignore */
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.scroll::-webkit-scrollbar:hover, .scroll ::-webkit-scrollbar:hover {
|
|
47
|
-
background: var(--zd-scroll-bg);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.scroll::-webkit-scrollbar:horizontal,
|
|
51
|
-
.scroll ::-webkit-scrollbar:horizontal {
|
|
52
|
-
height: var(--zd-scroll-height);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.scroll::-webkit-scrollbar:vertical,
|
|
56
|
-
.scroll ::-webkit-scrollbar:vertical {
|
|
57
|
-
width: var(--zd-scroll-width);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.scroll::-webkit-scrollbar-button,
|
|
61
|
-
.scroll ::-webkit-scrollbar-button {
|
|
62
|
-
display: none;
|
|
63
|
-
width: 0 ;
|
|
64
|
-
height: 0 ;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
[dir=ltr] .scroll::-webkit-scrollbar-track:vertical, [dir=ltr] .scroll ::-webkit-scrollbar-track:vertical {
|
|
68
|
-
border-left: 1px solid transparent;
|
|
69
|
-
border-right: 1px solid transparent;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
[dir=rtl] .scroll::-webkit-scrollbar-track:vertical, [dir=rtl] .scroll ::-webkit-scrollbar-track:vertical {
|
|
73
|
-
border-right: 1px solid transparent;
|
|
74
|
-
border-left: 1px solid transparent;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.scroll::-webkit-scrollbar-track:vertical:hover,
|
|
78
|
-
.scroll ::-webkit-scrollbar-track:vertical:hover {
|
|
79
|
-
/* css:theme-validation:ignore */
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.scroll::-webkit-scrollbar-track:vertical:hover, .scroll ::-webkit-scrollbar-track:vertical:hover {
|
|
83
|
-
border-color: var(--zd-scroll-border);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.scroll::-webkit-scrollbar-track:horizontal, .scroll ::-webkit-scrollbar-track:horizontal {
|
|
87
|
-
border-top: 1px solid transparent;
|
|
88
|
-
border-bottom: 1px solid transparent;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.scroll::-webkit-scrollbar-track:horizontal:hover,
|
|
92
|
-
.scroll ::-webkit-scrollbar-track:horizontal:hover {
|
|
93
|
-
/* css:theme-validation:ignore */
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.scroll::-webkit-scrollbar-track:horizontal:hover, .scroll ::-webkit-scrollbar-track:horizontal:hover {
|
|
97
|
-
border-color: var(--zd-scroll-border);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.scroll::-webkit-scrollbar-track-piece, .scroll ::-webkit-scrollbar-track-piece {
|
|
101
|
-
background: inherit;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.scroll::-webkit-scrollbar-thumb,
|
|
105
|
-
.scroll ::-webkit-scrollbar-thumb {
|
|
106
|
-
/* css:theme-validation:ignore */
|
|
107
|
-
/* display: none; */
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.scroll::-webkit-scrollbar-thumb, .scroll ::-webkit-scrollbar-thumb {
|
|
111
|
-
border-radius: 10px;
|
|
112
|
-
background: var(--zd-scroll-thump);
|
|
113
|
-
background-clip: padding-box;
|
|
114
|
-
border: 3px solid transparent;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.scroll::-webkit-scrollbar-thumb:hover,
|
|
118
|
-
.scroll ::-webkit-scrollbar-thumb:hover {
|
|
119
|
-
/* css:theme-validation:ignore */
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.scroll::-webkit-scrollbar-thumb:hover, .scroll ::-webkit-scrollbar-thumb:hover {
|
|
123
|
-
background: var(--zd-scroll-thump-hoverbg);
|
|
124
|
-
background-clip: padding-box;
|
|
125
|
-
border: 3px solid transparent;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/* .scroll:hover > ::-webkit-scrollbar-thumb,
|
|
129
|
-
.scroll *:hover > ::-webkit-scrollbar-thumb {
|
|
130
|
-
display: block;
|
|
131
|
-
} */
|
|
132
|
-
.scroll::-webkit-scrollbar-corner,
|
|
133
|
-
.scroll ::-webkit-scrollbar-corner {
|
|
134
|
-
/* css:theme-validation:ignore */
|
|
135
|
-
}
|
|
136
|
-
.scroll::-webkit-scrollbar-corner, .scroll ::-webkit-scrollbar-corner {
|
|
137
|
-
background: var(--zd-scroll-corner-bg);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.scroll::-webkit-resizer, .scroll ::-webkit-resizer {
|
|
141
|
-
background: inherit;
|
|
1
|
+
.scroll {
|
|
2
|
+
/* Variable:Ignore */
|
|
3
|
+
--zd-scroll-width: 12px;
|
|
4
|
+
/* Variable:Ignore */
|
|
5
|
+
--zd-scroll-height: 12px;
|
|
6
|
+
--zd-scroll-bg: var(--zdt_customscroll_default_bg);
|
|
7
|
+
--zd-scroll-corner-bg: transparent;
|
|
8
|
+
--zd-scroll-thump: var(--zdt_customscroll_thump_bg);
|
|
9
|
+
--zd-scroll-thump-hoverbg: var(--zdt_customscroll_thump_hover_bg);
|
|
10
|
+
--zd-scroll-border: var(--zdt_customscroll_border);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.scroll[data-scroll-palette='dark'],
|
|
14
|
+
.scroll [data-scroll-palette='dark'] {
|
|
15
|
+
--zd-scroll-bg: var(--zdt_customscroll_dark_bg);
|
|
16
|
+
--zd-scroll-thump: var(--zdt_customscroll_thump_dark_bg);
|
|
17
|
+
--zd-scroll-thump-hoverbg: var(--zdt_customscroll_thump_dark_hover_bg);
|
|
18
|
+
--zd-scroll-border: var(--zdt_customscroll_dark_border);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.scroll,
|
|
22
|
+
.scroll * {
|
|
23
|
+
/* css:theme-validation:ignore */
|
|
24
|
+
scrollbar-color: var(--zd-scroll-thump) var(--zd-scroll-bg);
|
|
25
|
+
scrollbar-width: thin;
|
|
26
|
+
/* css:theme-validation:ignore */
|
|
27
|
+
-ms-scrollbar-highlight-color: var(--zd-scroll-bg);
|
|
28
|
+
/* css:theme-validation:ignore */
|
|
29
|
+
-ms-scrollbar-face-color: var(--zd-scroll-thump);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.scroll::-webkit-scrollbar,
|
|
33
|
+
.scroll ::-webkit-scrollbar {
|
|
34
|
+
/* css:theme-validation:ignore */
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.scroll::-webkit-scrollbar, .scroll ::-webkit-scrollbar {
|
|
38
|
+
background: var(--zd-scroll-corner-bg);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.scroll::-webkit-scrollbar:hover,
|
|
42
|
+
.scroll ::-webkit-scrollbar:hover {
|
|
43
|
+
/* css:theme-validation:ignore */
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.scroll::-webkit-scrollbar:hover, .scroll ::-webkit-scrollbar:hover {
|
|
47
|
+
background: var(--zd-scroll-bg);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.scroll::-webkit-scrollbar:horizontal,
|
|
51
|
+
.scroll ::-webkit-scrollbar:horizontal {
|
|
52
|
+
height: var(--zd-scroll-height);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.scroll::-webkit-scrollbar:vertical,
|
|
56
|
+
.scroll ::-webkit-scrollbar:vertical {
|
|
57
|
+
width: var(--zd-scroll-width);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.scroll::-webkit-scrollbar-button,
|
|
61
|
+
.scroll ::-webkit-scrollbar-button {
|
|
62
|
+
display: none;
|
|
63
|
+
width: 0 ;
|
|
64
|
+
height: 0 ;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[dir=ltr] .scroll::-webkit-scrollbar-track:vertical, [dir=ltr] .scroll ::-webkit-scrollbar-track:vertical {
|
|
68
|
+
border-left: 1px solid transparent;
|
|
69
|
+
border-right: 1px solid transparent;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[dir=rtl] .scroll::-webkit-scrollbar-track:vertical, [dir=rtl] .scroll ::-webkit-scrollbar-track:vertical {
|
|
73
|
+
border-right: 1px solid transparent;
|
|
74
|
+
border-left: 1px solid transparent;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.scroll::-webkit-scrollbar-track:vertical:hover,
|
|
78
|
+
.scroll ::-webkit-scrollbar-track:vertical:hover {
|
|
79
|
+
/* css:theme-validation:ignore */
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.scroll::-webkit-scrollbar-track:vertical:hover, .scroll ::-webkit-scrollbar-track:vertical:hover {
|
|
83
|
+
border-color: var(--zd-scroll-border);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.scroll::-webkit-scrollbar-track:horizontal, .scroll ::-webkit-scrollbar-track:horizontal {
|
|
87
|
+
border-top: 1px solid transparent;
|
|
88
|
+
border-bottom: 1px solid transparent;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.scroll::-webkit-scrollbar-track:horizontal:hover,
|
|
92
|
+
.scroll ::-webkit-scrollbar-track:horizontal:hover {
|
|
93
|
+
/* css:theme-validation:ignore */
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.scroll::-webkit-scrollbar-track:horizontal:hover, .scroll ::-webkit-scrollbar-track:horizontal:hover {
|
|
97
|
+
border-color: var(--zd-scroll-border);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.scroll::-webkit-scrollbar-track-piece, .scroll ::-webkit-scrollbar-track-piece {
|
|
101
|
+
background: inherit;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.scroll::-webkit-scrollbar-thumb,
|
|
105
|
+
.scroll ::-webkit-scrollbar-thumb {
|
|
106
|
+
/* css:theme-validation:ignore */
|
|
107
|
+
/* display: none; */
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.scroll::-webkit-scrollbar-thumb, .scroll ::-webkit-scrollbar-thumb {
|
|
111
|
+
border-radius: 10px;
|
|
112
|
+
background: var(--zd-scroll-thump);
|
|
113
|
+
background-clip: padding-box;
|
|
114
|
+
border: 3px solid transparent;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.scroll::-webkit-scrollbar-thumb:hover,
|
|
118
|
+
.scroll ::-webkit-scrollbar-thumb:hover {
|
|
119
|
+
/* css:theme-validation:ignore */
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.scroll::-webkit-scrollbar-thumb:hover, .scroll ::-webkit-scrollbar-thumb:hover {
|
|
123
|
+
background: var(--zd-scroll-thump-hoverbg);
|
|
124
|
+
background-clip: padding-box;
|
|
125
|
+
border: 3px solid transparent;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* .scroll:hover > ::-webkit-scrollbar-thumb,
|
|
129
|
+
.scroll *:hover > ::-webkit-scrollbar-thumb {
|
|
130
|
+
display: block;
|
|
131
|
+
} */
|
|
132
|
+
.scroll::-webkit-scrollbar-corner,
|
|
133
|
+
.scroll ::-webkit-scrollbar-corner {
|
|
134
|
+
/* css:theme-validation:ignore */
|
|
135
|
+
}
|
|
136
|
+
.scroll::-webkit-scrollbar-corner, .scroll ::-webkit-scrollbar-corner {
|
|
137
|
+
background: var(--zd-scroll-corner-bg);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.scroll::-webkit-resizer, .scroll ::-webkit-resizer {
|
|
141
|
+
background: inherit;
|
|
142
142
|
}
|
|
@@ -44,7 +44,7 @@ function DropDownSearch(props) {
|
|
|
44
44
|
var inputRef = (0, _react.useRef)(null); // eslint-disable-next-line func-call-spacing
|
|
45
45
|
|
|
46
46
|
(0, _react.useEffect)(function () {
|
|
47
|
-
inputRef.current &&
|
|
47
|
+
inputRef.current && inputRef.current.focus({
|
|
48
48
|
preventScroll: true
|
|
49
49
|
});
|
|
50
50
|
}, []);
|
|
@@ -1087,6 +1087,10 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1087
1087
|
needResponsive: needResponsive,
|
|
1088
1088
|
isPadding: isPadding,
|
|
1089
1089
|
isBoxPaddingNeed: !needSelectAll,
|
|
1090
|
+
isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
|
|
1091
|
+
positionsOffset: positionsOffset,
|
|
1092
|
+
targetOffset: targetOffset,
|
|
1093
|
+
isRestrictScroll: isRestrictScroll,
|
|
1090
1094
|
htmlId: setAriaId,
|
|
1091
1095
|
a11y: {
|
|
1092
1096
|
role: 'listbox',
|
package/lib/v1/Tab/Tabs.js
CHANGED
|
@@ -507,7 +507,11 @@ var Tabs = function Tabs(props) {
|
|
|
507
507
|
position = props.position,
|
|
508
508
|
customProps = props.customProps,
|
|
509
509
|
getCustomDropBoxHeaderPlaceHolder = props.getCustomDropBoxHeaderPlaceHolder,
|
|
510
|
-
dataId = props.dataId
|
|
510
|
+
dataId = props.dataId,
|
|
511
|
+
isAbsolutePositioningNeeded = props.isAbsolutePositioningNeeded,
|
|
512
|
+
isRestrictScroll = props.isRestrictScroll,
|
|
513
|
+
positionsOffset = props.positionsOffset,
|
|
514
|
+
targetOffset = props.targetOffset;
|
|
511
515
|
var _customProps$DropBoxP = customProps.DropBoxProps,
|
|
512
516
|
DropBoxProps = _customProps$DropBoxP === void 0 ? {} : _customProps$DropBoxP,
|
|
513
517
|
_customProps$ListItem = customProps.ListItemProps,
|
|
@@ -580,8 +584,12 @@ var Tabs = function Tabs(props) {
|
|
|
580
584
|
},
|
|
581
585
|
boxPosition: position,
|
|
582
586
|
getRef: getContainerRef,
|
|
583
|
-
isBoxPaddingNeed:
|
|
584
|
-
isArrow: false
|
|
587
|
+
isBoxPaddingNeed: false,
|
|
588
|
+
isArrow: false,
|
|
589
|
+
isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
|
|
590
|
+
isRestrictScroll: isRestrictScroll,
|
|
591
|
+
positionsOffset: positionsOffset,
|
|
592
|
+
targetOffset: targetOffset
|
|
585
593
|
}, DropBoxProps, {
|
|
586
594
|
isResponsivePadding: true,
|
|
587
595
|
needFocusScope: true,
|
|
@@ -601,7 +609,9 @@ var Tabs = function Tabs(props) {
|
|
|
601
609
|
'data-a11y-autofocus': true
|
|
602
610
|
}
|
|
603
611
|
},
|
|
604
|
-
dataId: "".concat(dataId, "_search")
|
|
612
|
+
dataId: "".concat(dataId, "_search"),
|
|
613
|
+
autoComplete: false,
|
|
614
|
+
name: "search"
|
|
605
615
|
}, TextBoxIconProps))) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
606
616
|
flexible: true,
|
|
607
617
|
shrink: true,
|
|
@@ -42,7 +42,10 @@ var Tabs_defaultProps = {
|
|
|
42
42
|
dataSelectorId: 'tabs',
|
|
43
43
|
searchBoxSize: 'small',
|
|
44
44
|
searchErrorText: 'No results',
|
|
45
|
-
placeHolderText: 'Search'
|
|
45
|
+
placeHolderText: 'Search',
|
|
46
|
+
isAbsolutePositioningNeeded: true,
|
|
47
|
+
isRestrictScroll: false,
|
|
48
|
+
moreContainerClass: ''
|
|
46
49
|
};
|
|
47
50
|
exports.Tabs_defaultProps = Tabs_defaultProps;
|
|
48
51
|
var TabWrapper_defaultProps = {
|
|
@@ -107,7 +107,11 @@ var Tabs_propTypes = {
|
|
|
107
107
|
placeHolderText: _propTypes["default"].string,
|
|
108
108
|
searchBoxSize: _propTypes["default"].string,
|
|
109
109
|
searchErrorText: _propTypes["default"].string,
|
|
110
|
-
closePopupOnly: _propTypes["default"].func
|
|
110
|
+
closePopupOnly: _propTypes["default"].func,
|
|
111
|
+
isAbsolutePositioningNeeded: _propTypes["default"].bool,
|
|
112
|
+
isRestrictScroll: _propTypes["default"].bool,
|
|
113
|
+
positionsOffset: _propTypes["default"].object,
|
|
114
|
+
targetOffset: _propTypes["default"].object
|
|
111
115
|
};
|
|
112
116
|
exports.Tabs_propTypes = Tabs_propTypes;
|
|
113
117
|
var TabWrapper_propTypes = {
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.search {
|
|
140
|
-
padding:
|
|
140
|
+
padding: var(--zd_size6) var(--zd_size20) 0 ;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.emptyStateContainer {
|
|
@@ -163,5 +163,5 @@
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
.listWrapper {
|
|
166
|
-
padding
|
|
166
|
+
padding: var(--zd_size10) 0 ;
|
|
167
167
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.0.0-temp-
|
|
3
|
+
"version": "1.0.0-temp-208.1",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"build:css:umd": "npm run clean && npm run init && react-cli build:css:umd",
|
|
39
39
|
"coverage": "react-cli coverage",
|
|
40
40
|
"prepare": "npm run init && npm run build && npm run rtl && npm run cssVariableConvert ",
|
|
41
|
-
"prepublishOnly": "node prePublish.js && npm run download && npm run css:review",
|
|
41
|
+
"prepublishOnly": "node prePublish.js && npm run download && npm run css:review && npm run review:props ",
|
|
42
42
|
"postpublish": "node postPublish.js",
|
|
43
43
|
"report": "react-cli publish:report",
|
|
44
44
|
"test": "react-cli test",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@zohodesk/a11y": "2.2.6",
|
|
72
72
|
"@zohodesk/docstool": "1.0.0-alpha-2",
|
|
73
73
|
"@zohodesk/hooks": "2.0.5",
|
|
74
|
-
"@zohodesk/icons": "1.0.
|
|
74
|
+
"@zohodesk/icons": "1.0.60",
|
|
75
75
|
"@zohodesk/svg": "1.1.19",
|
|
76
76
|
"@zohodesk/utils": "1.3.14",
|
|
77
77
|
"@zohodesk/variables": "1.0.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"selectn": "1.1.2"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@zohodesk/icons": "1.0.
|
|
89
|
+
"@zohodesk/icons": "1.0.60",
|
|
90
90
|
"@zohodesk/variables": "1.0.0",
|
|
91
91
|
"@zohodesk/svg": "1.1.19",
|
|
92
92
|
"@zohodesk/virtualizer": "1.0.3",
|