@zohodesk/components 1.4.17 → 1.4.18
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 +27 -0
- package/es/Card/__tests__/Card.spec.js +48 -0
- package/es/Card/__tests__/CardContent.spec.js +61 -0
- package/es/Card/__tests__/CardHeader.spec.js +33 -0
- package/es/Card/__tests__/__snapshots__/Card.spec.js.snap +125 -0
- package/es/Card/__tests__/__snapshots__/CardContent.spec.js.snap +177 -0
- package/es/Card/__tests__/__snapshots__/CardHeader.spec.js.snap +51 -0
- package/es/ListItem/ListItem.js +10 -3
- package/es/ListItem/ListItemWithAvatar.js +15 -6
- package/es/ListItem/ListItemWithCheckBox.js +13 -6
- package/es/ListItem/ListItemWithIcon.js +14 -5
- package/es/ListItem/ListItemWithRadio.js +13 -6
- package/es/ListItem/__tests__/ListItem.spec.js +19 -0
- package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +19 -0
- package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +19 -0
- package/es/ListItem/__tests__/ListItemWithIcon.spec.js +17 -0
- package/es/ListItem/__tests__/ListItemWithRadio.spec.js +19 -0
- package/es/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +78 -0
- package/es/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +140 -46
- package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +251 -49
- package/es/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +144 -50
- package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +252 -52
- package/es/ListItem/props/propTypes.js +15 -5
- package/es/MultiSelect/MultiSelect.js +8 -1
- package/es/MultiSelect/Suggestions.js +2 -1
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +6 -6
- package/es/MultiSelect/props/propTypes.js +2 -3
- package/es/Select/GroupSelect.js +4 -2
- package/es/Select/Select.js +7 -1
- package/es/Select/SelectWithAvatar.js +17 -4
- package/es/Select/SelectWithIcon.js +15 -5
- package/es/Select/props/defaultProps.js +2 -0
- package/es/Select/props/propTypes.js +5 -0
- package/es/Typography/__tests__/Typography.spec.js +225 -0
- package/es/Typography/__tests__/__snapshots__/Typography.spec.js.snap +1226 -0
- package/es/utils/dropDownUtils.js +13 -4
- package/es/v1/Switch/__tests__/Switch.spec.js +41 -6
- package/es/v1/Switch/__tests__/__snapshots__/Switch.spec.js.snap +176 -5
- package/lib/Card/__tests__/Card.spec.js +54 -6
- package/lib/Card/__tests__/CardContent.spec.js +68 -0
- package/lib/Card/__tests__/CardHeader.spec.js +40 -0
- package/lib/Card/__tests__/__snapshots__/Card.spec.js.snap +125 -0
- package/lib/Card/__tests__/__snapshots__/CardContent.spec.js.snap +177 -0
- package/lib/Card/__tests__/__snapshots__/CardHeader.spec.js.snap +51 -0
- package/lib/ListItem/ListItem.js +10 -3
- package/lib/ListItem/ListItemWithAvatar.js +15 -6
- package/lib/ListItem/ListItemWithCheckBox.js +15 -6
- package/lib/ListItem/ListItemWithIcon.js +13 -5
- package/lib/ListItem/ListItemWithRadio.js +15 -6
- package/lib/ListItem/__tests__/ListItem.spec.js +23 -0
- package/lib/ListItem/__tests__/ListItemWithAvatar.spec.js +23 -0
- package/lib/ListItem/__tests__/ListItemWithCheckBox.spec.js +23 -0
- package/lib/ListItem/__tests__/ListItemWithIcon.spec.js +21 -0
- package/lib/ListItem/__tests__/ListItemWithRadio.spec.js +23 -0
- package/lib/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +78 -0
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +140 -46
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +251 -49
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +144 -50
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +252 -52
- package/lib/ListItem/props/propTypes.js +15 -6
- package/lib/MultiSelect/MultiSelect.js +6 -2
- package/lib/MultiSelect/Suggestions.js +2 -1
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +6 -6
- package/lib/MultiSelect/props/propTypes.js +3 -4
- package/lib/Select/GroupSelect.js +4 -3
- package/lib/Select/Select.js +7 -1
- package/lib/Select/SelectWithAvatar.js +17 -7
- package/lib/Select/SelectWithIcon.js +15 -5
- package/lib/Select/props/defaultProps.js +2 -1
- package/lib/Select/props/propTypes.js +5 -0
- package/lib/Typography/__tests__/Typography.spec.js +232 -0
- package/lib/Typography/__tests__/__snapshots__/Typography.spec.js.snap +1226 -0
- package/lib/utils/dropDownUtils.js +17 -4
- package/lib/v1/Switch/__tests__/Switch.spec.js +41 -6
- package/lib/v1/Switch/__tests__/__snapshots__/Switch.spec.js.snap +176 -5
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.optionIdGrouping = exports.makeObjectConcat = exports.makeGetSelectedValueText = exports.makeGetOptionIdChange = exports.makeGetMultiSelectSelectedOptions = exports.makeGetMultiSelectFilterSuggestions = exports.makeGetIsShowClearIcon = exports.makeGetGroupSelectOptions = exports.makeGetGroupSelectFilterSuggestions = exports.makeFormatOptions = exports.getValueField = exports.getTextField = exports.getSecondaryField = exports.getPrefixText = exports.getOptions = exports.getOptionType = exports.getImageField = exports.getIconSize = exports.getIconName = exports.filterSelectedOptions = exports.extractOptionIdFromJson = exports.extractOptionId = exports.dummyObj = exports.dummyArray = void 0;
|
|
6
|
+
exports.optionIdGrouping = exports.makeObjectConcat = exports.makeGetSelectedValueText = exports.makeGetOptionIdChange = exports.makeGetMultiSelectSelectedOptions = exports.makeGetMultiSelectFilterSuggestions = exports.makeGetIsShowClearIcon = exports.makeGetGroupSelectOptions = exports.makeGetGroupSelectFilterSuggestions = exports.makeFormatOptions = exports.isObjectContainsSearchString = exports.getValueField = exports.getTextField = exports.getSecondaryField = exports.getPrefixText = exports.getOptions = exports.getOptionType = exports.getImageField = exports.getIconSize = exports.getIconName = exports.filterSelectedOptions = exports.extractOptionIdFromJson = exports.extractOptionId = exports.dummyObj = exports.dummyArray = void 0;
|
|
7
7
|
|
|
8
8
|
var _reselect = require("reselect");
|
|
9
9
|
|
|
@@ -152,6 +152,10 @@ 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
|
+
|
|
155
159
|
var defaultSearchFields = ['value'];
|
|
156
160
|
|
|
157
161
|
var getSearchFields = function getSearchFields(props) {
|
|
@@ -176,6 +180,8 @@ var isObjectContainsSearchString = function isObjectContainsSearchString() {
|
|
|
176
180
|
});
|
|
177
181
|
};
|
|
178
182
|
|
|
183
|
+
exports.isObjectContainsSearchString = isObjectContainsSearchString;
|
|
184
|
+
|
|
179
185
|
var getAllowValueFallback = function getAllowValueFallback(props) {
|
|
180
186
|
return props.allowValueFallback !== false;
|
|
181
187
|
};
|
|
@@ -265,7 +271,7 @@ var extractOptionIdFromJson = function extractOptionIdFromJson(id, localData) {
|
|
|
265
271
|
exports.extractOptionIdFromJson = extractOptionIdFromJson;
|
|
266
272
|
|
|
267
273
|
var makeFormatOptions = function makeFormatOptions() {
|
|
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) {
|
|
274
|
+
return (0, _reselect.createSelector)([getOptions, getValueField, getTextField, getImageField, getPrefixText, getIconName, getIconSize, getOptionType, getDisabledOptions, getListItemProps, getlistItemCustomProps, getAllowValueFallback, getSearchFields, getSecondaryField], function (options, valueField, textField, imageField, prefixText, iconName, iconSize, optionType, disabledOptions, listItemProps, listItemCustomProps, allowValueFallback, searchFields, secondaryField) {
|
|
269
275
|
var revampOptions = [];
|
|
270
276
|
var remvampOptionIds = [];
|
|
271
277
|
var normalizedAllOptions = {};
|
|
@@ -280,7 +286,8 @@ var makeFormatOptions = function makeFormatOptions() {
|
|
|
280
286
|
impOptionType = option.optionType,
|
|
281
287
|
impIconName = option.iconName,
|
|
282
288
|
impIconSize = option.iconSize,
|
|
283
|
-
listStyle = option.listItemProps
|
|
289
|
+
listStyle = option.listItemProps,
|
|
290
|
+
listStyleCustomProps = option.listItemCustomProps;
|
|
284
291
|
var id = _typeof(option) === 'object' ? option[impValueField || valueField] : option;
|
|
285
292
|
var value = _typeof(option) === 'object' ? option[impTextField || textField] : allowValueFallback ? option : '';
|
|
286
293
|
var secondaryValue = _typeof(option) === 'object' ? option[impSecondaryField || secondaryField] : '';
|
|
@@ -325,6 +332,10 @@ var makeFormatOptions = function makeFormatOptions() {
|
|
|
325
332
|
optionDetails.listItemProps = listStyle || listItemProps;
|
|
326
333
|
}
|
|
327
334
|
|
|
335
|
+
if (listStyleCustomProps || listItemCustomProps) {
|
|
336
|
+
optionDetails.listItemCustomProps = listStyleCustomProps || listItemCustomProps;
|
|
337
|
+
}
|
|
338
|
+
|
|
328
339
|
normalizedFormatOptions[id] = optionDetails;
|
|
329
340
|
normalizedAllOptions[id] = _objectSpread(_objectSpread({}, option), {}, {
|
|
330
341
|
groupId: prefixText
|
|
@@ -480,7 +491,8 @@ var makeGetGroupSelectOptions = function makeGetGroupSelectOptions() {
|
|
|
480
491
|
groupId = group.id,
|
|
481
492
|
name = group.name,
|
|
482
493
|
valueField = group.valueField,
|
|
483
|
-
textField = group.textField
|
|
494
|
+
textField = group.textField,
|
|
495
|
+
secondaryField = group.secondaryField;
|
|
484
496
|
|
|
485
497
|
if (!(0, _Common.getIsEmptyValue)(groupId) && groupIds.indexOf(groupId) === -1) {
|
|
486
498
|
groupIds.push(groupId);
|
|
@@ -490,6 +502,7 @@ var makeGetGroupSelectOptions = function makeGetGroupSelectOptions() {
|
|
|
490
502
|
options: options,
|
|
491
503
|
valueField: valueField,
|
|
492
504
|
textField: textField,
|
|
505
|
+
secondaryField: secondaryField,
|
|
493
506
|
prefixText: groupId,
|
|
494
507
|
allowValueFallback: allowValueFallback
|
|
495
508
|
}),
|
|
@@ -8,25 +8,23 @@ var _Switch = _interopRequireDefault(require("../Switch"));
|
|
|
8
8
|
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
10
|
|
|
11
|
-
describe('Switch', function () {
|
|
12
|
-
test('
|
|
11
|
+
describe('Switch - Snapshot', function () {
|
|
12
|
+
test('Render with default props', function () {
|
|
13
13
|
var _render = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Switch["default"], null)),
|
|
14
14
|
asFragment = _render.asFragment;
|
|
15
15
|
|
|
16
16
|
expect(asFragment()).toMatchSnapshot();
|
|
17
17
|
});
|
|
18
|
-
test('
|
|
18
|
+
test('Render with isChecked=true', function () {
|
|
19
19
|
var _render2 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Switch["default"], {
|
|
20
|
-
id: "switch",
|
|
21
20
|
isChecked: true
|
|
22
21
|
})),
|
|
23
22
|
asFragment = _render2.asFragment;
|
|
24
23
|
|
|
25
24
|
expect(asFragment()).toMatchSnapshot();
|
|
26
25
|
});
|
|
27
|
-
test('
|
|
26
|
+
test('Render with isDisabled=true', function () {
|
|
28
27
|
var _render3 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Switch["default"], {
|
|
29
|
-
id: "switch",
|
|
30
28
|
isChecked: true,
|
|
31
29
|
isDisabled: true
|
|
32
30
|
})),
|
|
@@ -34,4 +32,41 @@ describe('Switch', function () {
|
|
|
34
32
|
|
|
35
33
|
expect(asFragment()).toMatchSnapshot();
|
|
36
34
|
});
|
|
35
|
+
test('Render with customId and testId', function () {
|
|
36
|
+
var _render4 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Switch["default"], {
|
|
37
|
+
customId: "switch-customId",
|
|
38
|
+
testId: "switch-testId"
|
|
39
|
+
})),
|
|
40
|
+
asFragment = _render4.asFragment;
|
|
41
|
+
|
|
42
|
+
expect(asFragment()).toMatchSnapshot();
|
|
43
|
+
});
|
|
44
|
+
test('Render with tag attributes', function () {
|
|
45
|
+
var _render5 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Switch["default"], {
|
|
46
|
+
tagAttributes: {
|
|
47
|
+
'data-custom-attr': 'true'
|
|
48
|
+
}
|
|
49
|
+
})),
|
|
50
|
+
asFragment = _render5.asFragment;
|
|
51
|
+
|
|
52
|
+
expect(asFragment()).toMatchSnapshot();
|
|
53
|
+
});
|
|
54
|
+
test('Render with a11y attributes', function () {
|
|
55
|
+
var _render6 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Switch["default"], {
|
|
56
|
+
a11yAttributes: {
|
|
57
|
+
role: 'switch'
|
|
58
|
+
}
|
|
59
|
+
})),
|
|
60
|
+
asFragment = _render6.asFragment;
|
|
61
|
+
|
|
62
|
+
expect(asFragment()).toMatchSnapshot();
|
|
63
|
+
});
|
|
64
|
+
test('Render with customClass', function () {
|
|
65
|
+
var _render7 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Switch["default"], {
|
|
66
|
+
customClass: "my-switch"
|
|
67
|
+
})),
|
|
68
|
+
asFragment = _render7.asFragment;
|
|
69
|
+
|
|
70
|
+
expect(asFragment()).toMatchSnapshot();
|
|
71
|
+
});
|
|
37
72
|
});
|
|
@@ -1,6 +1,179 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Switch
|
|
3
|
+
exports[`Switch - Snapshot Render with a11y attributes 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<div
|
|
6
|
+
class="inlineFlex row alignItems_center container medium unChecked enabled"
|
|
7
|
+
data-id="flex"
|
|
8
|
+
data-test-id="flex"
|
|
9
|
+
>
|
|
10
|
+
<div
|
|
11
|
+
class="noShrink trackWrapper"
|
|
12
|
+
data-id="flex"
|
|
13
|
+
data-test-id="flex"
|
|
14
|
+
>
|
|
15
|
+
<input
|
|
16
|
+
class="track"
|
|
17
|
+
role="switch"
|
|
18
|
+
type="checkbox"
|
|
19
|
+
value=""
|
|
20
|
+
/>
|
|
21
|
+
<svg
|
|
22
|
+
class="thumb commonSvg"
|
|
23
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
24
|
+
>
|
|
25
|
+
<circle
|
|
26
|
+
cx="50%"
|
|
27
|
+
cy="50%"
|
|
28
|
+
r="42.85%"
|
|
29
|
+
/>
|
|
30
|
+
</svg>
|
|
31
|
+
<svg
|
|
32
|
+
class="offLabel commonSvg"
|
|
33
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
34
|
+
>
|
|
35
|
+
<circle
|
|
36
|
+
cx="50%"
|
|
37
|
+
cy="50%"
|
|
38
|
+
r="37.5%"
|
|
39
|
+
/>
|
|
40
|
+
</svg>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</DocumentFragment>
|
|
44
|
+
`;
|
|
45
|
+
|
|
46
|
+
exports[`Switch - Snapshot Render with customClass 1`] = `
|
|
47
|
+
<DocumentFragment>
|
|
48
|
+
<div
|
|
49
|
+
class="inlineFlex row alignItems_center container medium unChecked enabled"
|
|
50
|
+
data-id="flex"
|
|
51
|
+
data-test-id="flex"
|
|
52
|
+
>
|
|
53
|
+
<div
|
|
54
|
+
class="noShrink trackWrapper"
|
|
55
|
+
data-id="flex"
|
|
56
|
+
data-test-id="flex"
|
|
57
|
+
>
|
|
58
|
+
<input
|
|
59
|
+
class="track"
|
|
60
|
+
role="switch"
|
|
61
|
+
type="checkbox"
|
|
62
|
+
value=""
|
|
63
|
+
/>
|
|
64
|
+
<svg
|
|
65
|
+
class="thumb commonSvg"
|
|
66
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
67
|
+
>
|
|
68
|
+
<circle
|
|
69
|
+
cx="50%"
|
|
70
|
+
cy="50%"
|
|
71
|
+
r="42.85%"
|
|
72
|
+
/>
|
|
73
|
+
</svg>
|
|
74
|
+
<svg
|
|
75
|
+
class="offLabel commonSvg"
|
|
76
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
77
|
+
>
|
|
78
|
+
<circle
|
|
79
|
+
cx="50%"
|
|
80
|
+
cy="50%"
|
|
81
|
+
r="37.5%"
|
|
82
|
+
/>
|
|
83
|
+
</svg>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</DocumentFragment>
|
|
87
|
+
`;
|
|
88
|
+
|
|
89
|
+
exports[`Switch - Snapshot Render with customId and testId 1`] = `
|
|
90
|
+
<DocumentFragment>
|
|
91
|
+
<div
|
|
92
|
+
class="inlineFlex row alignItems_center container medium unChecked enabled"
|
|
93
|
+
data-id="switch-customId"
|
|
94
|
+
data-selector-id="switch-customId"
|
|
95
|
+
data-test-id="switch-testId"
|
|
96
|
+
>
|
|
97
|
+
<div
|
|
98
|
+
class="noShrink trackWrapper"
|
|
99
|
+
data-id="flex"
|
|
100
|
+
data-test-id="flex"
|
|
101
|
+
>
|
|
102
|
+
<input
|
|
103
|
+
class="track"
|
|
104
|
+
role="switch"
|
|
105
|
+
type="checkbox"
|
|
106
|
+
value=""
|
|
107
|
+
/>
|
|
108
|
+
<svg
|
|
109
|
+
class="thumb commonSvg"
|
|
110
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
111
|
+
>
|
|
112
|
+
<circle
|
|
113
|
+
cx="50%"
|
|
114
|
+
cy="50%"
|
|
115
|
+
r="42.85%"
|
|
116
|
+
/>
|
|
117
|
+
</svg>
|
|
118
|
+
<svg
|
|
119
|
+
class="offLabel commonSvg"
|
|
120
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
121
|
+
>
|
|
122
|
+
<circle
|
|
123
|
+
cx="50%"
|
|
124
|
+
cy="50%"
|
|
125
|
+
r="37.5%"
|
|
126
|
+
/>
|
|
127
|
+
</svg>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
</DocumentFragment>
|
|
131
|
+
`;
|
|
132
|
+
|
|
133
|
+
exports[`Switch - Snapshot Render with default props 1`] = `
|
|
134
|
+
<DocumentFragment>
|
|
135
|
+
<div
|
|
136
|
+
class="inlineFlex row alignItems_center container medium unChecked enabled"
|
|
137
|
+
data-id="flex"
|
|
138
|
+
data-test-id="flex"
|
|
139
|
+
>
|
|
140
|
+
<div
|
|
141
|
+
class="noShrink trackWrapper"
|
|
142
|
+
data-id="flex"
|
|
143
|
+
data-test-id="flex"
|
|
144
|
+
>
|
|
145
|
+
<input
|
|
146
|
+
class="track"
|
|
147
|
+
role="switch"
|
|
148
|
+
type="checkbox"
|
|
149
|
+
value=""
|
|
150
|
+
/>
|
|
151
|
+
<svg
|
|
152
|
+
class="thumb commonSvg"
|
|
153
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
154
|
+
>
|
|
155
|
+
<circle
|
|
156
|
+
cx="50%"
|
|
157
|
+
cy="50%"
|
|
158
|
+
r="42.85%"
|
|
159
|
+
/>
|
|
160
|
+
</svg>
|
|
161
|
+
<svg
|
|
162
|
+
class="offLabel commonSvg"
|
|
163
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
164
|
+
>
|
|
165
|
+
<circle
|
|
166
|
+
cx="50%"
|
|
167
|
+
cy="50%"
|
|
168
|
+
r="37.5%"
|
|
169
|
+
/>
|
|
170
|
+
</svg>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
</DocumentFragment>
|
|
174
|
+
`;
|
|
175
|
+
|
|
176
|
+
exports[`Switch - Snapshot Render with isChecked=true 1`] = `
|
|
4
177
|
<DocumentFragment>
|
|
5
178
|
<div
|
|
6
179
|
class="inlineFlex row alignItems_center container medium checked enabled"
|
|
@@ -15,7 +188,6 @@ exports[`Switch rendering the Switch with Checked 1`] = `
|
|
|
15
188
|
<input
|
|
16
189
|
checked=""
|
|
17
190
|
class="track"
|
|
18
|
-
id="switch"
|
|
19
191
|
role="switch"
|
|
20
192
|
type="checkbox"
|
|
21
193
|
value=""
|
|
@@ -45,7 +217,7 @@ exports[`Switch rendering the Switch with Checked 1`] = `
|
|
|
45
217
|
</DocumentFragment>
|
|
46
218
|
`;
|
|
47
219
|
|
|
48
|
-
exports[`Switch
|
|
220
|
+
exports[`Switch - Snapshot Render with isDisabled=true 1`] = `
|
|
49
221
|
<DocumentFragment>
|
|
50
222
|
<div
|
|
51
223
|
class="inlineFlex row alignItems_center container medium checked disabled"
|
|
@@ -61,7 +233,6 @@ exports[`Switch rendering the Switch with Disabled 1`] = `
|
|
|
61
233
|
aria-disabled="true"
|
|
62
234
|
checked=""
|
|
63
235
|
class="track"
|
|
64
|
-
id="switch"
|
|
65
236
|
role="switch"
|
|
66
237
|
type="checkbox"
|
|
67
238
|
value=""
|
|
@@ -91,7 +262,7 @@ exports[`Switch rendering the Switch with Disabled 1`] = `
|
|
|
91
262
|
</DocumentFragment>
|
|
92
263
|
`;
|
|
93
264
|
|
|
94
|
-
exports[`Switch
|
|
265
|
+
exports[`Switch - Snapshot Render with tag attributes 1`] = `
|
|
95
266
|
<DocumentFragment>
|
|
96
267
|
<div
|
|
97
268
|
class="inlineFlex row alignItems_center container medium unChecked enabled"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.18",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@zohodesk/icons": "1.1.0",
|
|
86
86
|
"@zohodesk/layout": "3.1.0",
|
|
87
87
|
"@zohodesk/svg": "1.2.2",
|
|
88
|
-
"@zohodesk/utils": "1.3.
|
|
88
|
+
"@zohodesk/utils": "1.3.15",
|
|
89
89
|
"@zohodesk/variables": "1.1.0",
|
|
90
90
|
"@zohodesk/virtualizer": "1.0.13",
|
|
91
91
|
"react-sortable-hoc": "^0.8.3",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"velocity-react": "1.4.3",
|
|
107
107
|
"react-sortable-hoc": "^0.8.3",
|
|
108
108
|
"@zohodesk/hooks": "2.0.5",
|
|
109
|
-
"@zohodesk/utils": "1.3.
|
|
109
|
+
"@zohodesk/utils": "1.3.15",
|
|
110
110
|
"@zohodesk/a11y": "2.3.8",
|
|
111
111
|
"@zohodesk/layout": "3.1.0",
|
|
112
112
|
"@zohodesk/dotkit": "1.0.3"
|