@zohodesk/components 1.2.42 → 1.2.44
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 +19 -0
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +12 -2
- package/es/MultiSelect/AdvancedMultiSelect.js +9 -1
- package/es/MultiSelect/MultiSelect.js +8 -0
- package/es/MultiSelect/MultiSelectWithAvatar.js +8 -0
- package/es/MultiSelect/props/defaultProps.js +9 -1
- package/es/MultiSelect/props/propTypes.js +8 -0
- package/es/Select/GroupSelect.js +8 -0
- package/es/Select/SelectWithAvatar.js +11 -2
- package/es/Select/SelectWithIcon.js +8 -0
- package/es/Select/props/defaultProps.js +6 -0
- package/es/Select/props/propTypes.js +10 -2
- 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/Tooltip/Tooltip.js +1 -1
- package/es/v1/DropDown/DropDownSearch.js +1 -1
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +12 -2
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -1
- package/es/v1/MultiSelect/MultiSelect.js +8 -0
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +8 -0
- package/es/v1/MultiSelect/props/defaultProps.js +9 -1
- package/es/v1/MultiSelect/props/propTypes.js +8 -0
- package/es/v1/Select/GroupSelect.js +8 -0
- package/es/v1/Select/SelectWithAvatar.js +11 -2
- package/es/v1/Select/SelectWithIcon.js +8 -0
- package/es/v1/Select/props/defaultProps.js +6 -0
- package/es/v1/Select/props/propTypes.js +9 -1
- 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/es/v1/Tooltip/Tooltip.js +1 -1
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +12 -2
- package/lib/MultiSelect/AdvancedMultiSelect.js +10 -2
- package/lib/MultiSelect/MultiSelect.js +8 -0
- package/lib/MultiSelect/MultiSelectWithAvatar.js +8 -0
- package/lib/MultiSelect/props/defaultProps.js +9 -1
- package/lib/MultiSelect/props/propTypes.js +8 -0
- package/lib/Select/GroupSelect.js +8 -0
- package/lib/Select/SelectWithAvatar.js +11 -2
- package/lib/Select/SelectWithIcon.js +8 -0
- package/lib/Select/props/defaultProps.js +5 -1
- package/lib/Select/props/propTypes.js +10 -2
- 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/Tooltip/Tooltip.js +1 -1
- package/lib/v1/DropDown/DropDownSearch.js +1 -1
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +12 -2
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +10 -2
- package/lib/v1/MultiSelect/MultiSelect.js +8 -0
- package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +8 -0
- package/lib/v1/MultiSelect/props/defaultProps.js +9 -1
- package/lib/v1/MultiSelect/props/propTypes.js +8 -0
- package/lib/v1/Select/GroupSelect.js +8 -0
- package/lib/v1/Select/SelectWithAvatar.js +11 -2
- package/lib/v1/Select/SelectWithIcon.js +8 -0
- package/lib/v1/Select/props/defaultProps.js +5 -1
- package/lib/v1/Select/props/propTypes.js +9 -1
- 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/lib/v1/Tooltip/Tooltip.js +1 -1
- package/package.json +5 -5
- package/result.json +1 -1
|
@@ -1065,6 +1065,10 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1065
1065
|
borderColor = _this$props15.borderColor,
|
|
1066
1066
|
disableAction = _this$props15.disableAction,
|
|
1067
1067
|
isBoxPaddingNeed = _this$props15.isBoxPaddingNeed,
|
|
1068
|
+
isAbsolutePositioningNeeded = _this$props15.isAbsolutePositioningNeeded,
|
|
1069
|
+
positionsOffset = _this$props15.positionsOffset,
|
|
1070
|
+
targetOffset = _this$props15.targetOffset,
|
|
1071
|
+
isRestrictScroll = _this$props15.isRestrictScroll,
|
|
1068
1072
|
palette = _this$props15.palette,
|
|
1069
1073
|
i18nKeys = _this$props15.i18nKeys,
|
|
1070
1074
|
getFooter = _this$props15.getFooter,
|
|
@@ -1110,6 +1114,10 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1110
1114
|
needResponsive: needResponsive,
|
|
1111
1115
|
isPadding: false,
|
|
1112
1116
|
isBoxPaddingNeed: isBoxPaddingNeed,
|
|
1117
|
+
isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
|
|
1118
|
+
positionsOffset: positionsOffset,
|
|
1119
|
+
targetOffset: targetOffset,
|
|
1120
|
+
isRestrictScroll: isRestrictScroll,
|
|
1113
1121
|
palette: palette,
|
|
1114
1122
|
htmlId: setAriaId,
|
|
1115
1123
|
a11y: {
|
|
@@ -126,6 +126,10 @@ var MultiSelectWithAvatarComponent = /*#__PURE__*/function (_MultiSelectComponen
|
|
|
126
126
|
selectAllText = _this$props.selectAllText,
|
|
127
127
|
getContainerRef = _this$props.getContainerRef,
|
|
128
128
|
removeClose = _this$props.removeClose,
|
|
129
|
+
isAbsolutePositioningNeeded = _this$props.isAbsolutePositioningNeeded,
|
|
130
|
+
positionsOffset = _this$props.positionsOffset,
|
|
131
|
+
targetOffset = _this$props.targetOffset,
|
|
132
|
+
isRestrictScroll = _this$props.isRestrictScroll,
|
|
129
133
|
isAnimate = _this$props.isAnimate,
|
|
130
134
|
animationStyle = _this$props.animationStyle,
|
|
131
135
|
isDisabled = _this$props.isDisabled,
|
|
@@ -179,6 +183,10 @@ var MultiSelectWithAvatarComponent = /*#__PURE__*/function (_MultiSelectComponen
|
|
|
179
183
|
needResponsive: needResponsive,
|
|
180
184
|
isPadding: false,
|
|
181
185
|
isBoxPaddingNeed: isBoxPaddingNeed,
|
|
186
|
+
isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
|
|
187
|
+
positionsOffset: positionsOffset,
|
|
188
|
+
targetOffset: targetOffset,
|
|
189
|
+
isRestrictScroll: isRestrictScroll,
|
|
182
190
|
palette: palette,
|
|
183
191
|
htmlId: setAriaId,
|
|
184
192
|
a11y: {
|
|
@@ -40,6 +40,8 @@ var AdvancedGroupMultiSelect_defaultProps = {
|
|
|
40
40
|
i18nKeys: {},
|
|
41
41
|
a11y: {},
|
|
42
42
|
isSearchClearOnSelect: true,
|
|
43
|
+
isAbsolutePositioningNeeded: true,
|
|
44
|
+
isRestrictScroll: false,
|
|
43
45
|
needEffect: true,
|
|
44
46
|
palette: 'default',
|
|
45
47
|
isLoading: false,
|
|
@@ -76,7 +78,9 @@ var AdvancedMultiSelect_defaultProps = {
|
|
|
76
78
|
needEffect: true,
|
|
77
79
|
isLoading: false,
|
|
78
80
|
dataSelectorId: 'advancedMultiSelect',
|
|
79
|
-
customClass: {}
|
|
81
|
+
customClass: {},
|
|
82
|
+
isAbsolutePositioningNeeded: true,
|
|
83
|
+
isRestrictScroll: false
|
|
80
84
|
};
|
|
81
85
|
exports.AdvancedMultiSelect_defaultProps = AdvancedMultiSelect_defaultProps;
|
|
82
86
|
var EmptyState_defaultProps = {
|
|
@@ -115,6 +119,8 @@ var MultiSelect_defaultProps = {
|
|
|
115
119
|
textBoxClass: '',
|
|
116
120
|
palette: 'default',
|
|
117
121
|
isSearchClearOnSelect: true,
|
|
122
|
+
isAbsolutePositioningNeeded: true,
|
|
123
|
+
isRestrictScroll: false,
|
|
118
124
|
needEffect: true,
|
|
119
125
|
boxSize: 'default',
|
|
120
126
|
isLoading: false,
|
|
@@ -154,6 +160,8 @@ var MultiSelectWithAvatar_defaultProps = {
|
|
|
154
160
|
palette: 'default',
|
|
155
161
|
isBoxPaddingNeed: true,
|
|
156
162
|
isSearchClearOnSelect: true,
|
|
163
|
+
isAbsolutePositioningNeeded: true,
|
|
164
|
+
isRestrictScroll: false,
|
|
157
165
|
needEffect: true,
|
|
158
166
|
isLoading: false,
|
|
159
167
|
dataSelectorId: 'multiSelectWithAvatar',
|
|
@@ -115,6 +115,10 @@ var MultiSelect_propTypes = {
|
|
|
115
115
|
getFooter: _propTypes["default"].func,
|
|
116
116
|
needEffect: _propTypes["default"].bool,
|
|
117
117
|
boxSize: _propTypes["default"].string,
|
|
118
|
+
isAbsolutePositioningNeeded: _propTypes["default"].bool,
|
|
119
|
+
isRestrictScroll: _propTypes["default"].bool,
|
|
120
|
+
positionsOffset: _propTypes["default"].object,
|
|
121
|
+
targetOffset: _propTypes["default"].object,
|
|
118
122
|
isLoading: _propTypes["default"].bool,
|
|
119
123
|
dataSelectorId: _propTypes["default"].string,
|
|
120
124
|
keepSelectedOptions: _propTypes["default"].bool,
|
|
@@ -251,6 +255,10 @@ var AdvancedGroupMultiSelect_propTypes = _defineProperty({
|
|
|
251
255
|
textField: _propTypes["default"].string,
|
|
252
256
|
getTargetRef: _propTypes["default"].func,
|
|
253
257
|
togglePopup: _propTypes["default"].func,
|
|
258
|
+
isAbsolutePositioningNeeded: _propTypes["default"].bool,
|
|
259
|
+
isRestrictScroll: _propTypes["default"].bool,
|
|
260
|
+
positionsOffset: _propTypes["default"].object,
|
|
261
|
+
targetOffset: _propTypes["default"].object,
|
|
254
262
|
needLocalSearch: _propTypes["default"].bool,
|
|
255
263
|
isNextOptions: _propTypes["default"].bool,
|
|
256
264
|
getNextOptions: _propTypes["default"].func,
|
|
@@ -654,6 +654,10 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
654
654
|
getContainerRef = _this$props9.getContainerRef,
|
|
655
655
|
isPopupReady = _this$props9.isPopupReady,
|
|
656
656
|
removeClose = _this$props9.removeClose,
|
|
657
|
+
isAbsolutePositioningNeeded = _this$props9.isAbsolutePositioningNeeded,
|
|
658
|
+
positionsOffset = _this$props9.positionsOffset,
|
|
659
|
+
targetOffset = _this$props9.targetOffset,
|
|
660
|
+
isRestrictScroll = _this$props9.isRestrictScroll,
|
|
657
661
|
borderColor = _this$props9.borderColor,
|
|
658
662
|
needTick = _this$props9.needTick,
|
|
659
663
|
children = _this$props9.children,
|
|
@@ -779,6 +783,10 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
779
783
|
onClick: removeClose,
|
|
780
784
|
needResponsive: needResponsive,
|
|
781
785
|
isPadding: false,
|
|
786
|
+
isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
|
|
787
|
+
positionsOffset: positionsOffset,
|
|
788
|
+
targetOffset: targetOffset,
|
|
789
|
+
isRestrictScroll: isRestrictScroll,
|
|
782
790
|
isResponsivePadding: getFooter ? false : true,
|
|
783
791
|
alignBox: "row",
|
|
784
792
|
dataId: "".concat(dataId, "_suggestionBox")
|
|
@@ -183,6 +183,10 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
183
183
|
isPopupOpen = _this$props.isPopupOpen,
|
|
184
184
|
removeClose = _this$props.removeClose,
|
|
185
185
|
isPopupReady = _this$props.isPopupReady,
|
|
186
|
+
isAbsolutePositioningNeeded = _this$props.isAbsolutePositioningNeeded,
|
|
187
|
+
positionsOffset = _this$props.positionsOffset,
|
|
188
|
+
targetOffset = _this$props.targetOffset,
|
|
189
|
+
isRestrictScroll = _this$props.isRestrictScroll,
|
|
186
190
|
animationStyle = _this$props.animationStyle,
|
|
187
191
|
textBoxSize = _this$props.textBoxSize,
|
|
188
192
|
textBoxVariant = _this$props.textBoxVariant,
|
|
@@ -208,7 +212,8 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
208
212
|
htmlId = _this$props.htmlId,
|
|
209
213
|
needEffect = _this$props.needEffect,
|
|
210
214
|
isLoading = _this$props.isLoading,
|
|
211
|
-
dataSelectorId = _this$props.dataSelectorId
|
|
215
|
+
dataSelectorId = _this$props.dataSelectorId,
|
|
216
|
+
getTargetRef = _this$props.getTargetRef;
|
|
212
217
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
213
218
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
214
219
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -239,7 +244,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
239
244
|
align: "vertical",
|
|
240
245
|
alignBox: "row",
|
|
241
246
|
className: "".concat(_MultiSelectModule["default"].container, " ").concat(_MultiSelectModule["default"][size], " ").concat(_MultiSelectModule["default"]["borderColor_".concat(borderColor)], " ").concat(isActive && needBorder ? _MultiSelectModule["default"].active : '', " ").concat(textBoxClass ? textBoxClass : '', " ").concat(needBorder ? _MultiSelectModule["default"].hasBorder : ''),
|
|
242
|
-
eleRef:
|
|
247
|
+
eleRef: getTargetRef,
|
|
243
248
|
onClick: !isDisabled && this.togglePopup
|
|
244
249
|
}, selectedId ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
245
250
|
className: _MultiSelectModule["default"].tag,
|
|
@@ -303,6 +308,10 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
303
308
|
isArrow: false,
|
|
304
309
|
onClick: removeClose,
|
|
305
310
|
needResponsive: needResponsive,
|
|
311
|
+
isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
|
|
312
|
+
positionsOffset: positionsOffset,
|
|
313
|
+
targetOffset: targetOffset,
|
|
314
|
+
isRestrictScroll: isRestrictScroll,
|
|
306
315
|
isPadding: false,
|
|
307
316
|
isResponsivePadding: true,
|
|
308
317
|
alignBox: "row",
|
|
@@ -390,6 +390,10 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
390
390
|
isPopupReady = _this$props7.isPopupReady,
|
|
391
391
|
position = _this$props7.position,
|
|
392
392
|
getContainerRef = _this$props7.getContainerRef,
|
|
393
|
+
isAbsolutePositioningNeeded = _this$props7.isAbsolutePositioningNeeded,
|
|
394
|
+
positionsOffset = _this$props7.positionsOffset,
|
|
395
|
+
targetOffset = _this$props7.targetOffset,
|
|
396
|
+
isRestrictScroll = _this$props7.isRestrictScroll,
|
|
393
397
|
valueKey = _this$props7.valueKey,
|
|
394
398
|
idKey = _this$props7.idKey,
|
|
395
399
|
needListBorder = _this$props7.needListBorder,
|
|
@@ -499,6 +503,10 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
499
503
|
onClick: removeClose,
|
|
500
504
|
getRef: getContainerRef,
|
|
501
505
|
needResponsive: needResponsive,
|
|
506
|
+
isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
|
|
507
|
+
positionsOffset: positionsOffset,
|
|
508
|
+
targetOffset: targetOffset,
|
|
509
|
+
isRestrictScroll: isRestrictScroll,
|
|
502
510
|
dataId: "".concat(dataId, "_suggestions"),
|
|
503
511
|
size: boxSize,
|
|
504
512
|
isPadding: false,
|
|
@@ -78,6 +78,8 @@ var GroupSelect_defaultProps = {
|
|
|
78
78
|
needTick: true,
|
|
79
79
|
needLocalSearch: true,
|
|
80
80
|
isSearchClearOnClose: true,
|
|
81
|
+
isAbsolutePositioningNeeded: true,
|
|
82
|
+
isRestrictScroll: false,
|
|
81
83
|
i18nKeys: {},
|
|
82
84
|
iconOnHover: false,
|
|
83
85
|
isLoading: false
|
|
@@ -103,6 +105,8 @@ var SelectWithAvatar_defaultProps = {
|
|
|
103
105
|
dataSelectorId: 'selectWithAvatar',
|
|
104
106
|
borderColor: 'default',
|
|
105
107
|
isSearchClearOnClose: true,
|
|
108
|
+
isAbsolutePositioningNeeded: true,
|
|
109
|
+
isRestrictScroll: false,
|
|
106
110
|
i18nKeys: {},
|
|
107
111
|
needEffect: true,
|
|
108
112
|
isLoading: false
|
|
@@ -117,5 +121,5 @@ var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
|
|
|
117
121
|
needListBorder: false,
|
|
118
122
|
needSearch: false,
|
|
119
123
|
boxSize: 'default'
|
|
120
|
-
}, _defineProperty(_SelectWithIcon_defau, "needListBorder", false), _defineProperty(_SelectWithIcon_defau, "needCloseOnSelect", true), _defineProperty(_SelectWithIcon_defau, "borderColor", 'default'), _defineProperty(_SelectWithIcon_defau, "needTick", true), _defineProperty(_SelectWithIcon_defau, "searchBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "size", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxSize", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxVariant", 'default'), _defineProperty(_SelectWithIcon_defau, "dataId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dataSelectorId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dropBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "needIcon", true), _defineProperty(_SelectWithIcon_defau, "iconSize", '14'), _defineProperty(_SelectWithIcon_defau, "i18nKeys", {}), _defineProperty(_SelectWithIcon_defau, "isLoading", false), _SelectWithIcon_defau);
|
|
124
|
+
}, _defineProperty(_SelectWithIcon_defau, "needListBorder", false), _defineProperty(_SelectWithIcon_defau, "needCloseOnSelect", true), _defineProperty(_SelectWithIcon_defau, "borderColor", 'default'), _defineProperty(_SelectWithIcon_defau, "needTick", true), _defineProperty(_SelectWithIcon_defau, "searchBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "size", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxSize", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxVariant", 'default'), _defineProperty(_SelectWithIcon_defau, "dataId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dataSelectorId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dropBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "needIcon", true), _defineProperty(_SelectWithIcon_defau, "iconSize", '14'), _defineProperty(_SelectWithIcon_defau, "i18nKeys", {}), _defineProperty(_SelectWithIcon_defau, "isAbsolutePositioningNeeded", true), _defineProperty(_SelectWithIcon_defau, "isRestrictScroll", false), _defineProperty(_SelectWithIcon_defau, "isLoading", false), _SelectWithIcon_defau);
|
|
121
125
|
exports.SelectWithIcon_defaultProps = SelectWithIcon_defaultProps;
|
|
@@ -179,6 +179,10 @@ var GroupSelect_propTypes = {
|
|
|
179
179
|
closePopupOnly: _propTypes["default"].func,
|
|
180
180
|
position: _propTypes["default"].string,
|
|
181
181
|
removeClose: _propTypes["default"].func,
|
|
182
|
+
isAbsolutePositioningNeeded: _propTypes["default"].bool,
|
|
183
|
+
isRestrictScroll: _propTypes["default"].bool,
|
|
184
|
+
positionsOffset: _propTypes["default"].object,
|
|
185
|
+
targetOffset: _propTypes["default"].object,
|
|
182
186
|
i18nKeys: _propTypes["default"].shape({
|
|
183
187
|
loadingText: _propTypes["default"].string,
|
|
184
188
|
emptyText: _propTypes["default"].string,
|
|
@@ -306,6 +310,10 @@ var SelectWithIcon_propTypes = {
|
|
|
306
310
|
searchBoxSize: _propTypes["default"].string,
|
|
307
311
|
needResponsive: _propTypes["default"].bool,
|
|
308
312
|
boxSize: _propTypes["default"].string,
|
|
309
|
-
emptyMessage: _propTypes["default"].string
|
|
313
|
+
emptyMessage: _propTypes["default"].string,
|
|
314
|
+
isAbsolutePositioningNeeded: _propTypes["default"].bool,
|
|
315
|
+
isRestrictScroll: _propTypes["default"].bool,
|
|
316
|
+
positionsOffset: _propTypes["default"].object,
|
|
317
|
+
targetOffset: _propTypes["default"].object
|
|
310
318
|
};
|
|
311
319
|
exports.SelectWithIcon_propTypes = SelectWithIcon_propTypes;
|
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
|
}
|
|
@@ -551,7 +551,7 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
551
551
|
var tooltipWhiteSpaceModification = dataTooltipWrap;
|
|
552
552
|
|
|
553
553
|
if (dataTooltipWrap == 'pre') {
|
|
554
|
-
tooltipWhiteSpaceModification = '
|
|
554
|
+
tooltipWhiteSpaceModification = 'pre-wrap';
|
|
555
555
|
} else if (dataTooltipWrap == 'nowrap') {
|
|
556
556
|
tooltipWhiteSpaceModification = 'normal';
|
|
557
557
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.44",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
"@zohodesk-private/css-variable-migrator": "^1.0.7",
|
|
69
69
|
"@zohodesk-private/node-plugins": "1.1.8",
|
|
70
70
|
"@zohodesk-private/react-prop-validator": "1.2.3",
|
|
71
|
-
"@zohodesk/a11y": "2.2.
|
|
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",
|
|
@@ -94,6 +94,6 @@
|
|
|
94
94
|
"react-sortable-hoc": "^0.8.3",
|
|
95
95
|
"@zohodesk/hooks": "2.0.5",
|
|
96
96
|
"@zohodesk/utils": "1.3.14",
|
|
97
|
-
"@zohodesk/a11y": "2.2.
|
|
97
|
+
"@zohodesk/a11y": "2.2.6"
|
|
98
98
|
}
|
|
99
99
|
}
|