@zohodesk/components 1.0.0-temp-234 → 1.0.0-temp-235
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/README.md +0 -22
- package/es/ListItem/ListItem.js +3 -7
- package/es/ListItem/ListItemWithAvatar.js +6 -12
- package/es/ListItem/ListItemWithCheckBox.js +6 -12
- package/es/ListItem/ListItemWithIcon.js +5 -11
- package/es/ListItem/ListItemWithRadio.js +6 -12
- package/es/ListItem/__tests__/ListItem.spec.js +0 -19
- package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +0 -19
- package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +0 -19
- package/es/ListItem/__tests__/ListItemWithIcon.spec.js +0 -17
- package/es/ListItem/__tests__/ListItemWithRadio.spec.js +0 -19
- package/es/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +0 -78
- package/es/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +46 -140
- package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +49 -251
- package/es/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +50 -144
- package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +52 -252
- package/es/ListItem/props/propTypes.js +5 -15
- package/es/MultiSelect/MultiSelect.js +1 -8
- package/es/Select/GroupSelect.js +2 -4
- package/es/Select/Select.js +1 -7
- package/es/Select/SelectWithAvatar.js +3 -14
- package/es/Select/SelectWithIcon.js +2 -6
- package/es/Select/props/defaultProps.js +0 -1
- package/es/Select/props/propTypes.js +0 -5
- package/es/Typography/Typography.js +9 -2
- package/es/Typography/__tests__/Typography.spec.js +334 -0
- package/es/Typography/__tests__/__snapshots__/Typography.spec.js.snap +451 -0
- package/es/Typography/highlight.js +144 -0
- package/es/Typography/props/defaultProps.js +2 -1
- package/es/Typography/props/propTypes.js +26 -1
- package/es/utils/dropDownUtils.js +3 -12
- package/lib/ListItem/ListItem.js +3 -8
- package/lib/ListItem/ListItemWithAvatar.js +6 -13
- package/lib/ListItem/ListItemWithCheckBox.js +6 -13
- package/lib/ListItem/ListItemWithIcon.js +5 -11
- package/lib/ListItem/ListItemWithRadio.js +6 -13
- package/lib/ListItem/__tests__/ListItem.spec.js +0 -23
- package/lib/ListItem/__tests__/ListItemWithAvatar.spec.js +0 -23
- package/lib/ListItem/__tests__/ListItemWithCheckBox.spec.js +0 -23
- package/lib/ListItem/__tests__/ListItemWithIcon.spec.js +0 -21
- package/lib/ListItem/__tests__/ListItemWithRadio.spec.js +0 -23
- package/lib/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +0 -78
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +46 -140
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +49 -251
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +50 -144
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +52 -252
- package/lib/ListItem/props/propTypes.js +6 -15
- package/lib/MultiSelect/MultiSelect.js +2 -6
- package/lib/Select/GroupSelect.js +3 -4
- package/lib/Select/Select.js +1 -7
- package/lib/Select/SelectWithAvatar.js +6 -14
- package/lib/Select/SelectWithIcon.js +3 -6
- package/lib/Select/props/defaultProps.js +0 -1
- package/lib/Select/props/propTypes.js +0 -5
- package/lib/Typography/Typography.js +9 -2
- package/lib/Typography/__tests__/Typography.spec.js +342 -0
- package/lib/Typography/__tests__/__snapshots__/Typography.spec.js.snap +451 -0
- package/lib/Typography/highlight.js +151 -0
- package/lib/Typography/props/defaultProps.js +2 -1
- package/lib/Typography/props/propTypes.js +31 -1
- package/lib/utils/dropDownUtils.js +3 -14
- package/package.json +1 -1
|
@@ -152,10 +152,6 @@ var getListItemProps = function getListItemProps(props) {
|
|
|
152
152
|
return props.listItemProps || '';
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
-
var getlistItemCustomProps = function getlistItemCustomProps(props) {
|
|
156
|
-
return props.listItemCustomProps || dummyObj;
|
|
157
|
-
};
|
|
158
|
-
|
|
159
155
|
var defaultSearchFields = ['value'];
|
|
160
156
|
|
|
161
157
|
var getSearchFields = function getSearchFields(props) {
|
|
@@ -269,7 +265,7 @@ var extractOptionIdFromJson = function extractOptionIdFromJson(id, localData) {
|
|
|
269
265
|
exports.extractOptionIdFromJson = extractOptionIdFromJson;
|
|
270
266
|
|
|
271
267
|
var makeFormatOptions = function makeFormatOptions() {
|
|
272
|
-
return (0, _reselect.createSelector)([getOptions, getValueField, getTextField, getImageField, getPrefixText, getIconName, getIconSize, getOptionType, getDisabledOptions, getListItemProps,
|
|
268
|
+
return (0, _reselect.createSelector)([getOptions, getValueField, getTextField, getImageField, getPrefixText, getIconName, getIconSize, getOptionType, getDisabledOptions, getListItemProps, getAllowValueFallback, getSearchFields, getSecondaryField], function (options, valueField, textField, imageField, prefixText, iconName, iconSize, optionType, disabledOptions, listItemProps, allowValueFallback, searchFields, secondaryField) {
|
|
273
269
|
var revampOptions = [];
|
|
274
270
|
var remvampOptionIds = [];
|
|
275
271
|
var normalizedAllOptions = {};
|
|
@@ -284,8 +280,7 @@ var makeFormatOptions = function makeFormatOptions() {
|
|
|
284
280
|
impOptionType = option.optionType,
|
|
285
281
|
impIconName = option.iconName,
|
|
286
282
|
impIconSize = option.iconSize,
|
|
287
|
-
listStyle = option.listItemProps
|
|
288
|
-
listStyleCustomProps = option.listItemCustomProps;
|
|
283
|
+
listStyle = option.listItemProps;
|
|
289
284
|
var id = _typeof(option) === 'object' ? option[impValueField || valueField] : option;
|
|
290
285
|
var value = _typeof(option) === 'object' ? option[impTextField || textField] : allowValueFallback ? option : '';
|
|
291
286
|
var secondaryValue = _typeof(option) === 'object' ? option[impSecondaryField || secondaryField] : '';
|
|
@@ -330,10 +325,6 @@ var makeFormatOptions = function makeFormatOptions() {
|
|
|
330
325
|
optionDetails.listItemProps = listStyle || listItemProps;
|
|
331
326
|
}
|
|
332
327
|
|
|
333
|
-
if (listStyleCustomProps || listItemCustomProps) {
|
|
334
|
-
optionDetails.listItemCustomProps = listStyleCustomProps || listItemCustomProps;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
328
|
normalizedFormatOptions[id] = optionDetails;
|
|
338
329
|
normalizedAllOptions[id] = _objectSpread(_objectSpread({}, option), {}, {
|
|
339
330
|
groupId: prefixText
|
|
@@ -489,8 +480,7 @@ var makeGetGroupSelectOptions = function makeGetGroupSelectOptions() {
|
|
|
489
480
|
groupId = group.id,
|
|
490
481
|
name = group.name,
|
|
491
482
|
valueField = group.valueField,
|
|
492
|
-
textField = group.textField
|
|
493
|
-
secondaryField = group.secondaryField;
|
|
483
|
+
textField = group.textField;
|
|
494
484
|
|
|
495
485
|
if (!(0, _Common.getIsEmptyValue)(groupId) && groupIds.indexOf(groupId) === -1) {
|
|
496
486
|
groupIds.push(groupId);
|
|
@@ -500,7 +490,6 @@ var makeGetGroupSelectOptions = function makeGetGroupSelectOptions() {
|
|
|
500
490
|
options: options,
|
|
501
491
|
valueField: valueField,
|
|
502
492
|
textField: textField,
|
|
503
|
-
secondaryField: secondaryField,
|
|
504
493
|
prefixText: groupId,
|
|
505
494
|
allowValueFallback: allowValueFallback
|
|
506
495
|
}),
|