@zohodesk/components 1.0.0-temp-192 → 1.0.0-temp-194
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/es/AppContainer/AppContainer.js +10 -9
- package/es/Avatar/Avatar.js +4 -5
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/Button/Button.js +5 -6
- package/es/CheckBox/CheckBox.js +8 -8
- package/es/DropBox/DropBox.js +10 -11
- package/es/DropDown/DropDown.js +2 -1
- package/es/ListItem/ListContainer.js +6 -5
- package/es/ListItem/ListItem.js +6 -7
- package/es/ListItem/ListItem.module.css +18 -85
- package/es/ListItem/ListItemWithAvatar.js +7 -8
- package/es/ListItem/ListItemWithCheckBox.js +4 -5
- package/es/ListItem/ListItemWithIcon.js +6 -7
- package/es/ListItem/ListItemWithRadio.js +4 -5
- package/es/Modal/Modal.js +4 -5
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +3 -9
- package/es/MultiSelect/AdvancedMultiSelect.js +8 -9
- package/es/MultiSelect/MultiSelect.js +3 -9
- package/es/MultiSelect/MultiSelectWithAvatar.js +3 -6
- package/es/MultiSelect/SelectedOptions.js +6 -8
- package/es/MultiSelect/Suggestions.js +10 -16
- package/es/MultiSelect/props/defaultProps.js +5 -9
- package/es/MultiSelect/props/propTypes.js +3 -7
- package/es/Popup/Popup.js +3 -4
- package/es/Radio/Radio.js +8 -8
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
- package/es/Select/GroupSelect.js +3 -9
- package/es/Select/Select.js +4 -5
- package/es/Select/SelectWithAvatar.js +3 -9
- package/es/Select/SelectWithIcon.js +3 -9
- package/es/Select/props/defaultProps.js +3 -6
- package/es/Select/props/propTypes.js +3 -6
- package/es/Switch/Switch.js +8 -8
- package/es/Tab/Tab.js +4 -5
- package/es/Tab/TabContentWrapper.js +4 -5
- package/es/Tab/TabWrapper.js +5 -6
- package/es/Tab/Tabs.js +16 -16
- package/es/Tab/props/propTypes.js +1 -0
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBoxIcon/TextBoxIcon.js +2 -4
- package/es/Textarea/Textarea.js +4 -6
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
- package/es/deprecated/PortalLayer/PortalLayer.js +8 -6
- package/es/v1/AppContainer/AppContainer.js +10 -9
- package/es/v1/Avatar/Avatar.js +4 -5
- package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
- package/es/v1/Button/Button.js +5 -6
- package/es/v1/CheckBox/CheckBox.js +8 -8
- package/es/v1/DropBox/DropBox.js +10 -11
- package/es/v1/DropDown/DropDown.js +2 -1
- package/es/v1/ListItem/ListContainer.js +6 -5
- package/es/v1/ListItem/ListItem.js +4 -5
- package/es/v1/ListItem/ListItemWithAvatar.js +4 -5
- package/es/v1/ListItem/ListItemWithCheckBox.js +4 -5
- package/es/v1/ListItem/ListItemWithIcon.js +4 -5
- package/es/v1/ListItem/ListItemWithRadio.js +4 -5
- package/es/v1/Modal/Modal.js +4 -5
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +8 -9
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +4 -5
- package/es/v1/MultiSelect/SelectedOptions.js +6 -8
- package/es/v1/MultiSelect/Suggestions.js +6 -8
- package/es/v1/Popup/Popup.js +3 -4
- package/es/v1/Radio/Radio.js +8 -8
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
- package/es/v1/Select/Select.js +4 -5
- package/es/v1/Switch/Switch.js +8 -8
- package/es/v1/Tab/Tab.js +4 -5
- package/es/v1/Tab/TabContentWrapper.js +4 -5
- package/es/v1/Tab/TabWrapper.js +2 -4
- package/es/v1/Tab/Tabs.js +16 -16
- package/es/v1/TextBox/TextBox.js +5 -5
- package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -4
- package/es/v1/Textarea/Textarea.js +4 -6
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
- package/lib/ListItem/ListItem.js +2 -2
- package/lib/ListItem/ListItem.module.css +18 -85
- package/lib/ListItem/ListItemWithAvatar.js +3 -3
- package/lib/ListItem/ListItemWithIcon.js +2 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -7
- package/lib/MultiSelect/MultiSelect.js +3 -8
- package/lib/MultiSelect/MultiSelectWithAvatar.js +1 -3
- package/lib/MultiSelect/Suggestions.js +4 -8
- package/lib/MultiSelect/props/defaultProps.js +5 -9
- package/lib/MultiSelect/props/propTypes.js +6 -9
- package/lib/Select/GroupSelect.js +3 -8
- package/lib/Select/SelectWithAvatar.js +3 -8
- package/lib/Select/SelectWithIcon.js +3 -8
- package/lib/Select/props/defaultProps.js +3 -5
- package/lib/Select/props/propTypes.js +3 -6
- package/lib/Tab/TabWrapper.js +3 -2
- package/lib/Tab/props/propTypes.js +1 -0
- package/package.json +3 -3
- package/result.json +1 -1
|
@@ -83,8 +83,7 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
83
83
|
avatarPalette = _this$props.avatarPalette,
|
|
84
84
|
palette = _this$props.palette,
|
|
85
85
|
htmlId = _this$props.htmlId,
|
|
86
|
-
a11y = _this$props.a11y
|
|
87
|
-
needMultiLineText = _this$props.needMultiLineText;
|
|
86
|
+
a11y = _this$props.a11y;
|
|
88
87
|
var ariaParentRole = a11y.ariaParentRole,
|
|
89
88
|
ariaMultiselectable = a11y.ariaMultiselectable;
|
|
90
89
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
@@ -144,8 +143,7 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
144
143
|
size: listItemSize,
|
|
145
144
|
avatarPalette: avatarPalette,
|
|
146
145
|
palette: palette,
|
|
147
|
-
a11y: list_a11y
|
|
148
|
-
needMultiLineText: needMultiLineText
|
|
146
|
+
a11y: list_a11y
|
|
149
147
|
}));
|
|
150
148
|
} else if (optionType === 'icon') {
|
|
151
149
|
return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], _extends({}, commonProps, {
|
|
@@ -165,8 +163,7 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
165
163
|
iconSize: iconSize,
|
|
166
164
|
size: listItemSize,
|
|
167
165
|
palette: palette,
|
|
168
|
-
a11y: list_a11y
|
|
169
|
-
needMultiLineText: needMultiLineText
|
|
166
|
+
a11y: list_a11y
|
|
170
167
|
}));
|
|
171
168
|
}
|
|
172
169
|
|
|
@@ -185,8 +182,7 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
185
182
|
active: isActive,
|
|
186
183
|
size: listItemSize,
|
|
187
184
|
palette: palette,
|
|
188
|
-
a11y: list_a11y
|
|
189
|
-
needMultiLineText: needMultiLineText
|
|
185
|
+
a11y: list_a11y
|
|
190
186
|
}));
|
|
191
187
|
})));
|
|
192
188
|
}
|
|
@@ -43,8 +43,7 @@ var AdvancedGroupMultiSelect_defaultProps = {
|
|
|
43
43
|
needEffect: true,
|
|
44
44
|
palette: 'default',
|
|
45
45
|
isLoading: false,
|
|
46
|
-
dataSelectorId: 'advancedGroupMultiSelect'
|
|
47
|
-
customProps: {}
|
|
46
|
+
dataSelectorId: 'advancedGroupMultiSelect'
|
|
48
47
|
};
|
|
49
48
|
exports.AdvancedGroupMultiSelect_defaultProps = AdvancedGroupMultiSelect_defaultProps;
|
|
50
49
|
var AdvancedMultiSelect_defaultProps = {
|
|
@@ -122,8 +121,7 @@ var MultiSelect_defaultProps = {
|
|
|
122
121
|
keepSelectedOptions: false,
|
|
123
122
|
selectedOptionsCount: 0,
|
|
124
123
|
cardHeaderName: '',
|
|
125
|
-
needResponsive: true
|
|
126
|
-
customProps: {}
|
|
124
|
+
needResponsive: true
|
|
127
125
|
};
|
|
128
126
|
exports.MultiSelect_defaultProps = MultiSelect_defaultProps;
|
|
129
127
|
var MultiSelectHeader_defaultProps = {
|
|
@@ -159,9 +157,8 @@ var MultiSelectWithAvatar_defaultProps = {
|
|
|
159
157
|
isLoading: false,
|
|
160
158
|
dataSelectorId: 'multiSelectWithAvatar',
|
|
161
159
|
keepSelectedOptions: false,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
customProps: {}
|
|
160
|
+
customProps: {},
|
|
161
|
+
needResponsive: true
|
|
165
162
|
};
|
|
166
163
|
exports.MultiSelectWithAvatar_defaultProps = MultiSelectWithAvatar_defaultProps;
|
|
167
164
|
var SelectedOptions_defaultProps = {
|
|
@@ -169,7 +166,6 @@ var SelectedOptions_defaultProps = {
|
|
|
169
166
|
};
|
|
170
167
|
exports.SelectedOptions_defaultProps = SelectedOptions_defaultProps;
|
|
171
168
|
var Suggestions_defaultProps = {
|
|
172
|
-
a11y: {}
|
|
173
|
-
needMultiLineText: false
|
|
169
|
+
a11y: {}
|
|
174
170
|
};
|
|
175
171
|
exports.Suggestions_defaultProps = Suggestions_defaultProps;
|
|
@@ -7,8 +7,6 @@ exports.Suggestions_propTypes = exports.SelectedOptions_propTypes = exports.Mult
|
|
|
7
7
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
|
|
10
|
-
var _AdvancedGroupMultiSe;
|
|
11
|
-
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
11
|
|
|
14
12
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -123,8 +121,7 @@ var MultiSelect_propTypes = {
|
|
|
123
121
|
needSelectAll: _propTypes["default"].bool,
|
|
124
122
|
selectAllText: _propTypes["default"].string,
|
|
125
123
|
setAriaId: _propTypes["default"].string,
|
|
126
|
-
ariaErrorId: _propTypes["default"].string
|
|
127
|
-
customProps: _propTypes["default"].string
|
|
124
|
+
ariaErrorId: _propTypes["default"].string
|
|
128
125
|
};
|
|
129
126
|
exports.MultiSelect_propTypes = MultiSelect_propTypes;
|
|
130
127
|
var MultiSelectHeader_propTypes = {
|
|
@@ -142,7 +139,6 @@ var MultiSelectWithAvatar_propTypes = _objectSpread({
|
|
|
142
139
|
photoURL: _propTypes["default"].string
|
|
143
140
|
}))]).isRequired,
|
|
144
141
|
imageField: _propTypes["default"].string,
|
|
145
|
-
needMultiLineText: _propTypes["default"].string,
|
|
146
142
|
customProps: _propTypes["default"].shape({
|
|
147
143
|
SuggestionsProps: _propTypes["default"].object,
|
|
148
144
|
DropBoxProps: _propTypes["default"].object
|
|
@@ -194,11 +190,11 @@ var Suggestions_propTypes = {
|
|
|
194
190
|
logo: _propTypes["default"].string,
|
|
195
191
|
optionType: _propTypes["default"].string,
|
|
196
192
|
listItemProps: _propTypes["default"].object
|
|
197
|
-
}))
|
|
198
|
-
needMultiLineText: _propTypes["default"].bool
|
|
193
|
+
}))
|
|
199
194
|
};
|
|
200
195
|
exports.Suggestions_propTypes = Suggestions_propTypes;
|
|
201
|
-
|
|
196
|
+
|
|
197
|
+
var AdvancedGroupMultiSelect_propTypes = _defineProperty({
|
|
202
198
|
animationStyle: _propTypes["default"].string,
|
|
203
199
|
autoComplete: _propTypes["default"].bool,
|
|
204
200
|
borderColor: _propTypes["default"].oneOf(['transparent', 'default']),
|
|
@@ -262,7 +258,8 @@ var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
|
|
|
262
258
|
needToCloseOnSelect: _propTypes["default"].func,
|
|
263
259
|
searchStr: _propTypes["default"].string,
|
|
264
260
|
children: _propTypes["default"].node
|
|
265
|
-
},
|
|
261
|
+
}, "dataSelectorId", _propTypes["default"].string);
|
|
262
|
+
|
|
266
263
|
exports.AdvancedGroupMultiSelect_propTypes = AdvancedGroupMultiSelect_propTypes;
|
|
267
264
|
|
|
268
265
|
var AdvancedMultiSelect_propTypes = _objectSpread(_objectSpread({}, MultiSelect_propTypes), {}, {
|
|
@@ -51,8 +51,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
51
51
|
|
|
52
52
|
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; }
|
|
53
53
|
|
|
54
|
-
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); }
|
|
55
|
-
|
|
56
54
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
57
55
|
|
|
58
56
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -662,10 +660,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
662
660
|
htmlId = _this$props9.htmlId,
|
|
663
661
|
iconOnHover = _this$props9.iconOnHover,
|
|
664
662
|
isLoading = _this$props9.isLoading,
|
|
665
|
-
dataSelectorId = _this$props9.dataSelectorId
|
|
666
|
-
customProps = _this$props9.customProps;
|
|
667
|
-
var _customProps$suggesti = customProps.suggestionsProps,
|
|
668
|
-
suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
|
|
663
|
+
dataSelectorId = _this$props9.dataSelectorId;
|
|
669
664
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
670
665
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
671
666
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -825,7 +820,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
825
820
|
a11y: {
|
|
826
821
|
role: 'heading'
|
|
827
822
|
}
|
|
828
|
-
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"],
|
|
823
|
+
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
829
824
|
activeId: selectedId,
|
|
830
825
|
suggestions: options,
|
|
831
826
|
getRef: _this7.suggestionItemRef,
|
|
@@ -840,7 +835,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
840
835
|
ariaParentRole: 'listbox',
|
|
841
836
|
role: 'option'
|
|
842
837
|
}
|
|
843
|
-
}
|
|
838
|
+
}));
|
|
844
839
|
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
845
840
|
options: revampedGroups,
|
|
846
841
|
searchString: searchStr,
|
|
@@ -51,8 +51,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
51
51
|
|
|
52
52
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
53
53
|
|
|
54
|
-
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); }
|
|
55
|
-
|
|
56
54
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
57
55
|
|
|
58
56
|
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); } }
|
|
@@ -210,10 +208,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
210
208
|
htmlId = _this$props.htmlId,
|
|
211
209
|
needEffect = _this$props.needEffect,
|
|
212
210
|
isLoading = _this$props.isLoading,
|
|
213
|
-
dataSelectorId = _this$props.dataSelectorId
|
|
214
|
-
customProps = _this$props.customProps;
|
|
215
|
-
var _customProps$suggesti = customProps.suggestionsProps,
|
|
216
|
-
suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
|
|
211
|
+
dataSelectorId = _this$props.dataSelectorId;
|
|
217
212
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
218
213
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
219
214
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -346,7 +341,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
346
341
|
a11y: {
|
|
347
342
|
role: 'heading'
|
|
348
343
|
}
|
|
349
|
-
})) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"],
|
|
344
|
+
})) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
350
345
|
activeId: selectedId,
|
|
351
346
|
suggestions: suggestions,
|
|
352
347
|
getRef: _this2.suggestionItemRef,
|
|
@@ -362,7 +357,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
362
357
|
ariaParentRole: 'listbox',
|
|
363
358
|
role: 'option'
|
|
364
359
|
}
|
|
365
|
-
}
|
|
360
|
+
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
366
361
|
isLoading: isFetchingOptions,
|
|
367
362
|
options: options,
|
|
368
363
|
searchString: searchStr,
|
|
@@ -45,8 +45,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
45
45
|
|
|
46
46
|
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; }
|
|
47
47
|
|
|
48
|
-
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); }
|
|
49
|
-
|
|
50
48
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
51
49
|
|
|
52
50
|
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); } }
|
|
@@ -412,10 +410,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
412
410
|
i18nKeys = _this$props7.i18nKeys,
|
|
413
411
|
htmlId = _this$props7.htmlId,
|
|
414
412
|
isLoading = _this$props7.isLoading,
|
|
415
|
-
dataSelectorId = _this$props7.dataSelectorId
|
|
416
|
-
customProps = _this$props7.customProps;
|
|
417
|
-
var _customProps$listItem = customProps.listItemProps,
|
|
418
|
-
listItemProps = _customProps$listItem === void 0 ? {} : _customProps$listItem;
|
|
413
|
+
dataSelectorId = _this$props7.dataSelectorId;
|
|
419
414
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
420
415
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
421
416
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -541,7 +536,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
541
536
|
var iconName = options.iconName,
|
|
542
537
|
iconSize = options.iconSize,
|
|
543
538
|
iconColor = options.iconColor;
|
|
544
|
-
return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"],
|
|
539
|
+
return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], {
|
|
545
540
|
key: options[idKey],
|
|
546
541
|
value: options[valueKey],
|
|
547
542
|
size: "medium",
|
|
@@ -565,7 +560,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
565
560
|
ariaSelected: selectedId === options[idKey],
|
|
566
561
|
ariaLabel: options[valueKey]
|
|
567
562
|
}
|
|
568
|
-
}
|
|
563
|
+
});
|
|
569
564
|
})) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
570
565
|
isLoading: isFetchingOptions,
|
|
571
566
|
options: options,
|
|
@@ -79,8 +79,7 @@ var GroupSelect_defaultProps = {
|
|
|
79
79
|
isSearchClearOnClose: true,
|
|
80
80
|
i18nKeys: {},
|
|
81
81
|
iconOnHover: false,
|
|
82
|
-
isLoading: false
|
|
83
|
-
customProps: {}
|
|
82
|
+
isLoading: false
|
|
84
83
|
};
|
|
85
84
|
exports.GroupSelect_defaultProps = GroupSelect_defaultProps;
|
|
86
85
|
var SelectWithAvatar_defaultProps = {
|
|
@@ -105,8 +104,7 @@ var SelectWithAvatar_defaultProps = {
|
|
|
105
104
|
isSearchClearOnClose: true,
|
|
106
105
|
i18nKeys: {},
|
|
107
106
|
needEffect: true,
|
|
108
|
-
isLoading: false
|
|
109
|
-
customProps: {}
|
|
107
|
+
isLoading: false
|
|
110
108
|
};
|
|
111
109
|
exports.SelectWithAvatar_defaultProps = SelectWithAvatar_defaultProps;
|
|
112
110
|
var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
|
|
@@ -118,5 +116,5 @@ var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
|
|
|
118
116
|
needListBorder: false,
|
|
119
117
|
needSearch: false,
|
|
120
118
|
boxSize: 'default'
|
|
121
|
-
}, _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),
|
|
119
|
+
}, _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);
|
|
122
120
|
exports.SelectWithIcon_defaultProps = SelectWithIcon_defaultProps;
|
|
@@ -186,8 +186,7 @@ var GroupSelect_propTypes = {
|
|
|
186
186
|
}),
|
|
187
187
|
isLoading: _propTypes["default"].bool,
|
|
188
188
|
dataSelectorId: _propTypes["default"].string,
|
|
189
|
-
isDefaultSelectValue: _propTypes["default"].bool
|
|
190
|
-
customProps: _propTypes["default"].string
|
|
189
|
+
isDefaultSelectValue: _propTypes["default"].bool
|
|
191
190
|
};
|
|
192
191
|
exports.GroupSelect_propTypes = GroupSelect_propTypes;
|
|
193
192
|
|
|
@@ -250,8 +249,7 @@ var SelectWithAvatar_propTypes = _objectSpread(_objectSpread({}, Select_propType
|
|
|
250
249
|
htmlId: _propTypes["default"].string,
|
|
251
250
|
needEffect: _propTypes["default"].bool,
|
|
252
251
|
isLoading: _propTypes["default"].bool,
|
|
253
|
-
dataSelectorId: _propTypes["default"].string
|
|
254
|
-
customProps: _propTypes["default"].string
|
|
252
|
+
dataSelectorId: _propTypes["default"].string
|
|
255
253
|
});
|
|
256
254
|
|
|
257
255
|
exports.SelectWithAvatar_propTypes = SelectWithAvatar_propTypes;
|
|
@@ -307,7 +305,6 @@ var SelectWithIcon_propTypes = {
|
|
|
307
305
|
searchBoxSize: _propTypes["default"].string,
|
|
308
306
|
needResponsive: _propTypes["default"].bool,
|
|
309
307
|
boxSize: _propTypes["default"].string,
|
|
310
|
-
emptyMessage: _propTypes["default"].string
|
|
311
|
-
customProps: _propTypes["default"].string
|
|
308
|
+
emptyMessage: _propTypes["default"].string
|
|
312
309
|
};
|
|
313
310
|
exports.SelectWithIcon_propTypes = SelectWithIcon_propTypes;
|
package/lib/Tab/TabWrapper.js
CHANGED
|
@@ -46,7 +46,8 @@ function TabWrapper(_ref) {
|
|
|
46
46
|
align = _ref.align,
|
|
47
47
|
dataId = _ref.dataId,
|
|
48
48
|
children = _ref.children,
|
|
49
|
-
dataSelectorId = _ref.dataSelectorId
|
|
49
|
+
dataSelectorId = _ref.dataSelectorId,
|
|
50
|
+
alignWrapper = _ref.alignWrapper;
|
|
50
51
|
|
|
51
52
|
var _useState = (0, _react.useState)(!hookToDisableInternalState ? defaultTab || 0 : null),
|
|
52
53
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -61,7 +62,7 @@ function TabWrapper(_ref) {
|
|
|
61
62
|
onSelect && onSelect(id);
|
|
62
63
|
}, [hookToDisableInternalState, onSelect]);
|
|
63
64
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
64
|
-
alignBox: align === 'vertical' ? 'column' : 'row',
|
|
65
|
+
alignBox: alignWrapper ? alignWrapper : align === 'vertical' ? 'column' : 'row',
|
|
65
66
|
dataId: dataId,
|
|
66
67
|
dataSelectorId: dataSelectorId
|
|
67
68
|
}, _react["default"].Children.map(children, function (child) {
|
|
@@ -107,6 +107,7 @@ var Tabs_propTypes = {
|
|
|
107
107
|
exports.Tabs_propTypes = Tabs_propTypes;
|
|
108
108
|
var TabWrapper_propTypes = {
|
|
109
109
|
align: _propTypes["default"].oneOf(['vertical', 'horizontal']),
|
|
110
|
+
alignWrapper: _propTypes["default"].string,
|
|
110
111
|
children: _propTypes["default"].node,
|
|
111
112
|
dataId: _propTypes["default"].string,
|
|
112
113
|
defaultTab: _propTypes["default"].string,
|
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-194",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@zohodesk/a11y": "2.2.1",
|
|
71
71
|
"@zohodesk/docstool": "1.0.0-alpha-2",
|
|
72
72
|
"@zohodesk/hooks": "2.0.4",
|
|
73
|
-
"@zohodesk/icons": "1.0.
|
|
73
|
+
"@zohodesk/icons": "1.0.42",
|
|
74
74
|
"@zohodesk/svg": "1.1.14",
|
|
75
75
|
"@zohodesk/utils": "1.3.13",
|
|
76
76
|
"@zohodesk/variables": "1.0.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"selectn": "1.1.2"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
|
-
"@zohodesk/icons": "1.0.
|
|
88
|
+
"@zohodesk/icons": "1.0.42",
|
|
89
89
|
"@zohodesk/variables": "1.0.0",
|
|
90
90
|
"@zohodesk/svg": "1.1.14",
|
|
91
91
|
"@zohodesk/virtualizer": "1.0.3",
|