@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
|
}
|
|
@@ -26,7 +26,7 @@ export default function DropDownSearch(props) {
|
|
|
26
26
|
const inputRef = useRef(null); // eslint-disable-next-line func-call-spacing
|
|
27
27
|
|
|
28
28
|
useEffect(() => {
|
|
29
|
-
inputRef.current &&
|
|
29
|
+
inputRef.current && inputRef.current.focus({
|
|
30
30
|
preventScroll: true
|
|
31
31
|
});
|
|
32
32
|
}, []);
|
|
@@ -1001,6 +1001,10 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
1001
1001
|
needResponsive: needResponsive,
|
|
1002
1002
|
isPadding: isPadding,
|
|
1003
1003
|
isBoxPaddingNeed: !needSelectAll,
|
|
1004
|
+
isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
|
|
1005
|
+
positionsOffset: positionsOffset,
|
|
1006
|
+
targetOffset: targetOffset,
|
|
1007
|
+
isRestrictScroll: isRestrictScroll,
|
|
1004
1008
|
htmlId: setAriaId,
|
|
1005
1009
|
a11y: {
|
|
1006
1010
|
role: 'listbox',
|
package/es/v1/Tab/Tabs.js
CHANGED
|
@@ -435,7 +435,11 @@ const Tabs = props => {
|
|
|
435
435
|
position,
|
|
436
436
|
customProps,
|
|
437
437
|
getCustomDropBoxHeaderPlaceHolder,
|
|
438
|
-
dataId
|
|
438
|
+
dataId,
|
|
439
|
+
isAbsolutePositioningNeeded,
|
|
440
|
+
isRestrictScroll,
|
|
441
|
+
positionsOffset,
|
|
442
|
+
targetOffset
|
|
439
443
|
} = props;
|
|
440
444
|
let {
|
|
441
445
|
DropBoxProps = {},
|
|
@@ -510,8 +514,12 @@ const Tabs = props => {
|
|
|
510
514
|
},
|
|
511
515
|
boxPosition: position,
|
|
512
516
|
getRef: getContainerRef,
|
|
513
|
-
isBoxPaddingNeed:
|
|
517
|
+
isBoxPaddingNeed: false,
|
|
514
518
|
isArrow: false,
|
|
519
|
+
isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
|
|
520
|
+
isRestrictScroll: isRestrictScroll,
|
|
521
|
+
positionsOffset: positionsOffset,
|
|
522
|
+
targetOffset: targetOffset,
|
|
515
523
|
...DropBoxProps,
|
|
516
524
|
isResponsivePadding: true,
|
|
517
525
|
needFocusScope: true,
|
|
@@ -532,6 +540,8 @@ const Tabs = props => {
|
|
|
532
540
|
}
|
|
533
541
|
},
|
|
534
542
|
dataId: `${dataId}_search`,
|
|
543
|
+
autoComplete: false,
|
|
544
|
+
name: "search",
|
|
535
545
|
...TextBoxIconProps
|
|
536
546
|
})) : null, /*#__PURE__*/React.createElement(Box, {
|
|
537
547
|
flexible: true,
|
|
@@ -33,7 +33,10 @@ export const Tabs_defaultProps = {
|
|
|
33
33
|
dataSelectorId: 'tabs',
|
|
34
34
|
searchBoxSize: 'small',
|
|
35
35
|
searchErrorText: 'No results',
|
|
36
|
-
placeHolderText: 'Search'
|
|
36
|
+
placeHolderText: 'Search',
|
|
37
|
+
isAbsolutePositioningNeeded: true,
|
|
38
|
+
isRestrictScroll: false,
|
|
39
|
+
moreContainerClass: ''
|
|
37
40
|
};
|
|
38
41
|
export const TabWrapper_defaultProps = {
|
|
39
42
|
hookToDisableInternalState: false,
|
|
@@ -94,7 +94,11 @@ export const Tabs_propTypes = {
|
|
|
94
94
|
placeHolderText: PropTypes.string,
|
|
95
95
|
searchBoxSize: PropTypes.string,
|
|
96
96
|
searchErrorText: PropTypes.string,
|
|
97
|
-
closePopupOnly: PropTypes.func
|
|
97
|
+
closePopupOnly: PropTypes.func,
|
|
98
|
+
isAbsolutePositioningNeeded: PropTypes.bool,
|
|
99
|
+
isRestrictScroll: PropTypes.bool,
|
|
100
|
+
positionsOffset: PropTypes.object,
|
|
101
|
+
targetOffset: PropTypes.object
|
|
98
102
|
};
|
|
99
103
|
export const TabWrapper_propTypes = {
|
|
100
104
|
align: PropTypes.oneOf(['vertical', 'horizontal']),
|
|
@@ -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
|
}
|
|
@@ -17,18 +17,6 @@ var _Layout = require("../Layout");
|
|
|
17
17
|
|
|
18
18
|
var _Tooltip = _interopRequireDefault(require("../Tooltip/Tooltip"));
|
|
19
19
|
|
|
20
|
-
require("../common/basic.module.css");
|
|
21
|
-
|
|
22
|
-
require("@zohodesk/variables/assets/colorVariables.module.css");
|
|
23
|
-
|
|
24
|
-
require("@zohodesk/variables/assets/dotVariables.module.css");
|
|
25
|
-
|
|
26
|
-
require("@zohodesk/variables/assets/sizeVariables.module.css");
|
|
27
|
-
|
|
28
|
-
require("@zohodesk/variables/assets/fontsizeVariables.module.css");
|
|
29
|
-
|
|
30
|
-
require("@zohodesk/variables/lib/fontFamilyVariables.module.css");
|
|
31
|
-
|
|
32
20
|
require("@zohodesk/variables/assets/transitionVariables.module.css");
|
|
33
21
|
|
|
34
22
|
require("@zohodesk/variables/assets/no_transitionVariables.module.css");
|
|
@@ -45,6 +33,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
45
33
|
|
|
46
34
|
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); }
|
|
47
35
|
|
|
36
|
+
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); }
|
|
37
|
+
|
|
38
|
+
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; }
|
|
39
|
+
|
|
48
40
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
49
41
|
|
|
50
42
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -133,7 +125,30 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
133
125
|
}, {
|
|
134
126
|
key: "componentDidMount",
|
|
135
127
|
value: function componentDidMount() {
|
|
136
|
-
var
|
|
128
|
+
var _this$props = this.props,
|
|
129
|
+
needTooltip = _this$props.needTooltip,
|
|
130
|
+
hasDotProviderHaveImports = _this$props.hasDotProviderHaveImports;
|
|
131
|
+
|
|
132
|
+
if (!hasDotProviderHaveImports) {
|
|
133
|
+
Promise.resolve().then(function () {
|
|
134
|
+
return _interopRequireWildcard(require("../common/basic.module.css"));
|
|
135
|
+
});
|
|
136
|
+
Promise.resolve().then(function () {
|
|
137
|
+
return _interopRequireWildcard(require('@zohodesk/variables/assets/colorVariables.module.css'));
|
|
138
|
+
});
|
|
139
|
+
Promise.resolve().then(function () {
|
|
140
|
+
return _interopRequireWildcard(require('@zohodesk/variables/assets/dotVariables.module.css'));
|
|
141
|
+
});
|
|
142
|
+
Promise.resolve().then(function () {
|
|
143
|
+
return _interopRequireWildcard(require('@zohodesk/variables/assets/sizeVariables.module.css'));
|
|
144
|
+
});
|
|
145
|
+
Promise.resolve().then(function () {
|
|
146
|
+
return _interopRequireWildcard(require('@zohodesk/variables/assets/fontsizeVariables.module.css'));
|
|
147
|
+
});
|
|
148
|
+
Promise.resolve().then(function () {
|
|
149
|
+
return _interopRequireWildcard(require('@zohodesk/variables/lib/fontFamilyVariables.module.css'));
|
|
150
|
+
});
|
|
151
|
+
}
|
|
137
152
|
|
|
138
153
|
if (this.containerElement && needTooltip) {
|
|
139
154
|
this.containerElement.addEventListener('mouseover', this.handleOver, false);
|
|
@@ -160,16 +175,16 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
160
175
|
}, {
|
|
161
176
|
key: "render",
|
|
162
177
|
value: function render() {
|
|
163
|
-
var _this$
|
|
164
|
-
className = _this$
|
|
165
|
-
children = _this$
|
|
166
|
-
tagName = _this$
|
|
167
|
-
dataId = _this$
|
|
168
|
-
dataSelectorId = _this$
|
|
169
|
-
tooltipClass = _this$
|
|
170
|
-
tooltipParentClass = _this$
|
|
171
|
-
needTooltip = _this$
|
|
172
|
-
customProps = _this$
|
|
178
|
+
var _this$props2 = this.props,
|
|
179
|
+
className = _this$props2.className,
|
|
180
|
+
children = _this$props2.children,
|
|
181
|
+
tagName = _this$props2.tagName,
|
|
182
|
+
dataId = _this$props2.dataId,
|
|
183
|
+
dataSelectorId = _this$props2.dataSelectorId,
|
|
184
|
+
tooltipClass = _this$props2.tooltipClass,
|
|
185
|
+
tooltipParentClass = _this$props2.tooltipParentClass,
|
|
186
|
+
needTooltip = _this$props2.needTooltip,
|
|
187
|
+
customProps = _this$props2.customProps;
|
|
173
188
|
var _customProps$Containe = customProps.ContainerProps,
|
|
174
189
|
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe,
|
|
175
190
|
_customProps$TooltipP = customProps.TooltipProps,
|
|
@@ -23,6 +23,7 @@ var propTypes = {
|
|
|
23
23
|
ContainerProps: _propTypes["default"].object,
|
|
24
24
|
TooltipProps: _propTypes["default"].object,
|
|
25
25
|
ExtraProps: _propTypes["default"].object
|
|
26
|
-
})
|
|
26
|
+
}),
|
|
27
|
+
hasDotProviderHaveImports: _propTypes["default"].bool
|
|
27
28
|
};
|
|
28
29
|
exports.propTypes = propTypes;
|