@zohodesk/components 1.2.63 → 1.3.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/config/variables/variableMapping.json +6 -0
- package/.cli/propValidation_report.html +1 -1
- package/README.md +12 -0
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +1 -0
- package/assets/Appearance/light/mode/Component_LightMode.module.css +1 -0
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +1 -0
- package/es/ListItem/ListContainer.js +3 -2
- package/es/ListItem/ListItem.module.css +54 -7
- package/es/ListItem/ListItemWithAvatar.js +17 -6
- package/es/ListItem/ListItemWithCheckBox.js +18 -6
- package/es/ListItem/ListItemWithIcon.js +20 -7
- package/es/ListItem/ListItemWithRadio.js +19 -6
- package/es/ListItem/__tests__/ListContainer.spec.js +8 -0
- package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +35 -0
- package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +35 -0
- package/es/ListItem/__tests__/ListItemWithIcon.spec.js +35 -0
- package/es/ListItem/__tests__/ListItemWithRadio.spec.js +35 -0
- package/es/ListItem/__tests__/__snapshots__/ListContainer.spec.js.snap +13 -0
- package/es/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +200 -2
- package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +451 -30
- package/es/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +202 -4
- package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +447 -30
- package/es/ListItem/props/defaultProps.js +13 -5
- package/es/ListItem/props/propTypes.js +13 -1
- package/es/MultiSelect/AdvancedMultiSelect.js +10 -4
- package/es/MultiSelect/MultiSelect.js +8 -4
- package/es/MultiSelect/MultiSelect.module.css +9 -1
- package/es/MultiSelect/MultiSelectWithAvatar.js +6 -2
- package/es/MultiSelect/Suggestions.js +8 -3
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +34 -13
- package/es/MultiSelect/props/defaultProps.js +2 -1
- package/es/MultiSelect/props/propTypes.js +4 -0
- package/es/Radio/props/propTypes.js +1 -1
- package/es/common/common.module.css +10 -0
- package/es/utils/dropDownUtils.js +41 -8
- package/es/v1/Radio/props/propTypes.js +1 -1
- package/lib/ListItem/ListContainer.js +3 -2
- package/lib/ListItem/ListItem.module.css +54 -7
- package/lib/ListItem/ListItemWithAvatar.js +16 -5
- package/lib/ListItem/ListItemWithCheckBox.js +17 -5
- package/lib/ListItem/ListItemWithIcon.js +19 -6
- package/lib/ListItem/ListItemWithRadio.js +18 -5
- package/lib/ListItem/__tests__/ListContainer.spec.js +8 -0
- package/lib/ListItem/__tests__/ListItemWithAvatar.spec.js +35 -0
- package/lib/ListItem/__tests__/ListItemWithCheckBox.spec.js +35 -0
- package/lib/ListItem/__tests__/ListItemWithIcon.spec.js +35 -0
- package/lib/ListItem/__tests__/ListItemWithRadio.spec.js +35 -0
- package/lib/ListItem/__tests__/__snapshots__/ListContainer.spec.js.snap +13 -0
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +200 -2
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +451 -30
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +202 -4
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +447 -30
- package/lib/ListItem/props/defaultProps.js +13 -5
- package/lib/ListItem/props/propTypes.js +12 -2
- package/lib/MultiSelect/AdvancedMultiSelect.js +76 -69
- package/lib/MultiSelect/MultiSelect.js +8 -4
- package/lib/MultiSelect/MultiSelect.module.css +9 -1
- package/lib/MultiSelect/MultiSelectWithAvatar.js +6 -2
- package/lib/MultiSelect/Suggestions.js +9 -4
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +34 -13
- package/lib/MultiSelect/props/defaultProps.js +2 -1
- package/lib/MultiSelect/props/propTypes.js +5 -1
- package/lib/Radio/props/propTypes.js +1 -1
- package/lib/common/common.module.css +10 -0
- package/lib/utils/dropDownUtils.js +49 -11
- package/lib/v1/Radio/props/propTypes.js +1 -1
- package/package.json +7 -7
- package/result.json +1 -1
|
@@ -117,7 +117,10 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
117
117
|
a11y = _this$props4.a11y,
|
|
118
118
|
customClass = _this$props4.customClass,
|
|
119
119
|
customProps = _this$props4.customProps,
|
|
120
|
-
needMultiLineText = _this$props4.needMultiLineText
|
|
120
|
+
needMultiLineText = _this$props4.needMultiLineText,
|
|
121
|
+
secondaryValue = _this$props4.secondaryValue,
|
|
122
|
+
lhsAlignContent = _this$props4.lhsAlignContent,
|
|
123
|
+
lhsJustifyContent = _this$props4.lhsJustifyContent;
|
|
121
124
|
var _customProps$ListItem = customProps.ListItemProps,
|
|
122
125
|
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
123
126
|
_customProps$Containe = customProps.ContainerProps,
|
|
@@ -151,8 +154,12 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
151
154
|
title: null,
|
|
152
155
|
customProps: ListItemProps
|
|
153
156
|
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
154
|
-
|
|
157
|
+
align: lhsAlignContent,
|
|
158
|
+
className: "".concat(_ListItemModule["default"].iconBox, " ").concat(_ListItemModule["default"].lhsBox, " ").concat(_ListItemModule["default"]["lhsJustifyContent_".concat(lhsJustifyContent)]),
|
|
155
159
|
dataId: "".concat(dataId, "_radio")
|
|
160
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
161
|
+
align: lhsAlignContent,
|
|
162
|
+
className: lhsAlignContent !== 'center' ? _ListItemModule["default"]["lhsBox_".concat(size)] : ''
|
|
156
163
|
}, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
|
|
157
164
|
checked: checked,
|
|
158
165
|
id: id,
|
|
@@ -163,12 +170,18 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
163
170
|
customRadio: customRadio,
|
|
164
171
|
customRadioWrap: customRadioWrap
|
|
165
172
|
}
|
|
166
|
-
})), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
173
|
+
}))), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
167
174
|
flexible: true,
|
|
168
|
-
shrink: true
|
|
175
|
+
shrink: true
|
|
176
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
177
|
+
alignBox: "column"
|
|
178
|
+
}, value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
169
179
|
"data-title": disableTitle ? null : title,
|
|
170
180
|
className: needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value
|
|
171
|
-
}, value)
|
|
181
|
+
}, value) : null, secondaryValue ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
182
|
+
"data-title": isDisabled ? null : secondaryValue,
|
|
183
|
+
className: "".concat(_ListItemModule["default"].secondaryField, " ").concat(needMultiLineText ? _ListItemModule["default"].multiLine : _ListItemModule["default"].secondaryValue)
|
|
184
|
+
}, secondaryValue) : null)));
|
|
172
185
|
}
|
|
173
186
|
}]);
|
|
174
187
|
|
|
@@ -15,4 +15,12 @@ describe('ListContainer', function () {
|
|
|
15
15
|
|
|
16
16
|
expect(asFragment()).toMatchSnapshot();
|
|
17
17
|
});
|
|
18
|
+
test('ListContainer with Align Base Line', function () {
|
|
19
|
+
var _render2 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], {
|
|
20
|
+
align: 'baseline'
|
|
21
|
+
})),
|
|
22
|
+
asFragment = _render2.asFragment;
|
|
23
|
+
|
|
24
|
+
expect(asFragment()).toMatchSnapshot();
|
|
25
|
+
});
|
|
18
26
|
});
|
|
@@ -15,4 +15,39 @@ describe('ListItemWithAvatar', function () {
|
|
|
15
15
|
|
|
16
16
|
expect(asFragment()).toMatchSnapshot();
|
|
17
17
|
});
|
|
18
|
+
test('ListItemWithAvatar with secondaryValue', function () {
|
|
19
|
+
var _render2 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListItemWithAvatar["default"], {
|
|
20
|
+
secondaryValue: "secondaryValue"
|
|
21
|
+
})),
|
|
22
|
+
asFragment = _render2.asFragment;
|
|
23
|
+
|
|
24
|
+
expect(asFragment()).toMatchSnapshot();
|
|
25
|
+
});
|
|
26
|
+
test('ListItemWithAvatar with secondaryValue text and LHS align start', function () {
|
|
27
|
+
var _render3 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListItemWithAvatar["default"], {
|
|
28
|
+
secondaryValue: "secondaryValue",
|
|
29
|
+
lhsAlignContent: "start"
|
|
30
|
+
})),
|
|
31
|
+
asFragment = _render3.asFragment;
|
|
32
|
+
|
|
33
|
+
expect(asFragment()).toMatchSnapshot();
|
|
34
|
+
});
|
|
35
|
+
test('ListItemWithAvatar with secondaryValue text and LHS align center', function () {
|
|
36
|
+
var _render4 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListItemWithAvatar["default"], {
|
|
37
|
+
secondaryValue: "secondaryValue",
|
|
38
|
+
lhsAlignContent: "center"
|
|
39
|
+
})),
|
|
40
|
+
asFragment = _render4.asFragment;
|
|
41
|
+
|
|
42
|
+
expect(asFragment()).toMatchSnapshot();
|
|
43
|
+
});
|
|
44
|
+
test('ListItemWithAvatar with secondaryValue text and LHS align end', function () {
|
|
45
|
+
var _render5 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListItemWithAvatar["default"], {
|
|
46
|
+
secondaryValue: "secondaryValue",
|
|
47
|
+
lhsAlignContent: "end"
|
|
48
|
+
})),
|
|
49
|
+
asFragment = _render5.asFragment;
|
|
50
|
+
|
|
51
|
+
expect(asFragment()).toMatchSnapshot();
|
|
52
|
+
});
|
|
18
53
|
});
|
|
@@ -15,4 +15,39 @@ describe('ListItemWithCheckBox', function () {
|
|
|
15
15
|
|
|
16
16
|
expect(asFragment()).toMatchSnapshot();
|
|
17
17
|
});
|
|
18
|
+
test('ListItemWithCheckBox with secondaryValue', function () {
|
|
19
|
+
var _render2 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListItemWithCheckBox["default"], {
|
|
20
|
+
secondaryValue: "secondaryValue"
|
|
21
|
+
})),
|
|
22
|
+
asFragment = _render2.asFragment;
|
|
23
|
+
|
|
24
|
+
expect(asFragment()).toMatchSnapshot();
|
|
25
|
+
});
|
|
26
|
+
test('ListItemWithCheckBox with secondaryValue text and LHS align start', function () {
|
|
27
|
+
var _render3 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListItemWithCheckBox["default"], {
|
|
28
|
+
secondaryValue: "secondaryValue",
|
|
29
|
+
lhsAlignContent: "start"
|
|
30
|
+
})),
|
|
31
|
+
asFragment = _render3.asFragment;
|
|
32
|
+
|
|
33
|
+
expect(asFragment()).toMatchSnapshot();
|
|
34
|
+
});
|
|
35
|
+
test('ListItemWithCheckBox with secondaryValue text and LHS align center', function () {
|
|
36
|
+
var _render4 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListItemWithCheckBox["default"], {
|
|
37
|
+
secondaryValue: "secondaryValue",
|
|
38
|
+
lhsAlignContent: "center"
|
|
39
|
+
})),
|
|
40
|
+
asFragment = _render4.asFragment;
|
|
41
|
+
|
|
42
|
+
expect(asFragment()).toMatchSnapshot();
|
|
43
|
+
});
|
|
44
|
+
test('ListItemWithCheckBox with secondaryValue text and LHS align end', function () {
|
|
45
|
+
var _render5 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListItemWithCheckBox["default"], {
|
|
46
|
+
secondaryValue: "secondaryValue",
|
|
47
|
+
lhsAlignContent: "end"
|
|
48
|
+
})),
|
|
49
|
+
asFragment = _render5.asFragment;
|
|
50
|
+
|
|
51
|
+
expect(asFragment()).toMatchSnapshot();
|
|
52
|
+
});
|
|
18
53
|
});
|
|
@@ -15,4 +15,39 @@ describe('ListItemWithIcon', function () {
|
|
|
15
15
|
|
|
16
16
|
expect(asFragment()).toMatchSnapshot();
|
|
17
17
|
});
|
|
18
|
+
test('ListItemWithIcon with secondaryValue', function () {
|
|
19
|
+
var _render2 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], {
|
|
20
|
+
secondaryValue: "secondaryValue"
|
|
21
|
+
})),
|
|
22
|
+
asFragment = _render2.asFragment;
|
|
23
|
+
|
|
24
|
+
expect(asFragment()).toMatchSnapshot();
|
|
25
|
+
});
|
|
26
|
+
test('ListItemWithIcon with secondaryValue text and LHS align start', function () {
|
|
27
|
+
var _render3 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], {
|
|
28
|
+
secondaryValue: "secondaryValue",
|
|
29
|
+
lhsAlignContent: "start"
|
|
30
|
+
})),
|
|
31
|
+
asFragment = _render3.asFragment;
|
|
32
|
+
|
|
33
|
+
expect(asFragment()).toMatchSnapshot();
|
|
34
|
+
});
|
|
35
|
+
test('ListItemWithIcon with secondaryValue text and LHS align center', function () {
|
|
36
|
+
var _render4 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], {
|
|
37
|
+
secondaryValue: "secondaryValue",
|
|
38
|
+
lhsAlignContent: "center"
|
|
39
|
+
})),
|
|
40
|
+
asFragment = _render4.asFragment;
|
|
41
|
+
|
|
42
|
+
expect(asFragment()).toMatchSnapshot();
|
|
43
|
+
});
|
|
44
|
+
test('ListItemWithIcon with secondaryValue text and LHS align end', function () {
|
|
45
|
+
var _render5 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], {
|
|
46
|
+
secondaryValue: "secondaryValue",
|
|
47
|
+
lhsAlignContent: "end"
|
|
48
|
+
})),
|
|
49
|
+
asFragment = _render5.asFragment;
|
|
50
|
+
|
|
51
|
+
expect(asFragment()).toMatchSnapshot();
|
|
52
|
+
});
|
|
18
53
|
});
|
|
@@ -15,4 +15,39 @@ describe('ListItemWithRadio', function () {
|
|
|
15
15
|
|
|
16
16
|
expect(asFragment()).toMatchSnapshot();
|
|
17
17
|
});
|
|
18
|
+
test('ListItemWithRadio with secondaryValue', function () {
|
|
19
|
+
var _render2 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListItemWithRadio["default"], {
|
|
20
|
+
secondaryValue: "secondaryValue"
|
|
21
|
+
})),
|
|
22
|
+
asFragment = _render2.asFragment;
|
|
23
|
+
|
|
24
|
+
expect(asFragment()).toMatchSnapshot();
|
|
25
|
+
});
|
|
26
|
+
test('ListItemWithRadio with secondaryValue text and LHS align start', function () {
|
|
27
|
+
var _render3 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListItemWithRadio["default"], {
|
|
28
|
+
secondaryValue: "secondaryValue",
|
|
29
|
+
lhsAlignContent: "start"
|
|
30
|
+
})),
|
|
31
|
+
asFragment = _render3.asFragment;
|
|
32
|
+
|
|
33
|
+
expect(asFragment()).toMatchSnapshot();
|
|
34
|
+
});
|
|
35
|
+
test('ListItemWithRadio with secondaryValue text and LHS align center', function () {
|
|
36
|
+
var _render4 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListItemWithRadio["default"], {
|
|
37
|
+
secondaryValue: "secondaryValue",
|
|
38
|
+
lhsAlignContent: "center"
|
|
39
|
+
})),
|
|
40
|
+
asFragment = _render4.asFragment;
|
|
41
|
+
|
|
42
|
+
expect(asFragment()).toMatchSnapshot();
|
|
43
|
+
});
|
|
44
|
+
test('ListItemWithRadio with secondaryValue text and LHS align end', function () {
|
|
45
|
+
var _render5 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_ListItemWithRadio["default"], {
|
|
46
|
+
secondaryValue: "secondaryValue",
|
|
47
|
+
lhsAlignContent: "end"
|
|
48
|
+
})),
|
|
49
|
+
asFragment = _render5.asFragment;
|
|
50
|
+
|
|
51
|
+
expect(asFragment()).toMatchSnapshot();
|
|
52
|
+
});
|
|
18
53
|
});
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`ListContainer ListContainer with Align Base Line 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<li
|
|
6
|
+
class="list medium default withBorder flex rowdir baseline"
|
|
7
|
+
data-a11y-inset-focus="true"
|
|
8
|
+
data-id="containerComponent"
|
|
9
|
+
data-selector-id="listContainer"
|
|
10
|
+
data-test-id="containerComponent"
|
|
11
|
+
tabindex="0"
|
|
12
|
+
/>
|
|
13
|
+
</DocumentFragment>
|
|
14
|
+
`;
|
|
15
|
+
|
|
3
16
|
exports[`ListContainer rendering the defult props 1`] = `
|
|
4
17
|
<DocumentFragment>
|
|
5
18
|
<li
|
|
@@ -1,5 +1,189 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue text and LHS align center 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<li
|
|
6
|
+
class="list medium default withBorder flex rowdir vCenter"
|
|
7
|
+
data-a11y-inset-focus="true"
|
|
8
|
+
data-id="List_ListItemWithAvatar"
|
|
9
|
+
data-selector-id="listItemWithAvatar"
|
|
10
|
+
data-test-id="List_ListItemWithAvatar"
|
|
11
|
+
role="option"
|
|
12
|
+
tabindex="0"
|
|
13
|
+
>
|
|
14
|
+
<div
|
|
15
|
+
class="grow basis shrinkOn"
|
|
16
|
+
data-id="boxComponent"
|
|
17
|
+
data-selector-id="box"
|
|
18
|
+
data-test-id="boxComponent"
|
|
19
|
+
>
|
|
20
|
+
<div
|
|
21
|
+
class="flex cover coldir"
|
|
22
|
+
data-id="containerComponent"
|
|
23
|
+
data-selector-id="container"
|
|
24
|
+
data-test-id="containerComponent"
|
|
25
|
+
>
|
|
26
|
+
<div
|
|
27
|
+
class="value shrinkOff"
|
|
28
|
+
data-id="boxComponent"
|
|
29
|
+
data-selector-id="box"
|
|
30
|
+
data-test-id="boxComponent"
|
|
31
|
+
>
|
|
32
|
+
List
|
|
33
|
+
</div>
|
|
34
|
+
<div
|
|
35
|
+
class="secondaryField secondaryValue shrinkOff"
|
|
36
|
+
data-id="boxComponent"
|
|
37
|
+
data-selector-id="box"
|
|
38
|
+
data-test-id="boxComponent"
|
|
39
|
+
data-title="secondaryValue"
|
|
40
|
+
>
|
|
41
|
+
secondaryValue
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</li>
|
|
46
|
+
</DocumentFragment>
|
|
47
|
+
`;
|
|
48
|
+
|
|
49
|
+
exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue text and LHS align end 1`] = `
|
|
50
|
+
<DocumentFragment>
|
|
51
|
+
<li
|
|
52
|
+
class="list medium default withBorder flex rowdir vCenter"
|
|
53
|
+
data-a11y-inset-focus="true"
|
|
54
|
+
data-id="List_ListItemWithAvatar"
|
|
55
|
+
data-selector-id="listItemWithAvatar"
|
|
56
|
+
data-test-id="List_ListItemWithAvatar"
|
|
57
|
+
role="option"
|
|
58
|
+
tabindex="0"
|
|
59
|
+
>
|
|
60
|
+
<div
|
|
61
|
+
class="grow basis shrinkOn"
|
|
62
|
+
data-id="boxComponent"
|
|
63
|
+
data-selector-id="box"
|
|
64
|
+
data-test-id="boxComponent"
|
|
65
|
+
>
|
|
66
|
+
<div
|
|
67
|
+
class="flex cover coldir"
|
|
68
|
+
data-id="containerComponent"
|
|
69
|
+
data-selector-id="container"
|
|
70
|
+
data-test-id="containerComponent"
|
|
71
|
+
>
|
|
72
|
+
<div
|
|
73
|
+
class="value shrinkOff"
|
|
74
|
+
data-id="boxComponent"
|
|
75
|
+
data-selector-id="box"
|
|
76
|
+
data-test-id="boxComponent"
|
|
77
|
+
>
|
|
78
|
+
List
|
|
79
|
+
</div>
|
|
80
|
+
<div
|
|
81
|
+
class="secondaryField secondaryValue shrinkOff"
|
|
82
|
+
data-id="boxComponent"
|
|
83
|
+
data-selector-id="box"
|
|
84
|
+
data-test-id="boxComponent"
|
|
85
|
+
data-title="secondaryValue"
|
|
86
|
+
>
|
|
87
|
+
secondaryValue
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
</li>
|
|
92
|
+
</DocumentFragment>
|
|
93
|
+
`;
|
|
94
|
+
|
|
95
|
+
exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue 1`] = `
|
|
96
|
+
<DocumentFragment>
|
|
97
|
+
<li
|
|
98
|
+
class="list medium default withBorder flex rowdir vCenter"
|
|
99
|
+
data-a11y-inset-focus="true"
|
|
100
|
+
data-id="List_ListItemWithAvatar"
|
|
101
|
+
data-selector-id="listItemWithAvatar"
|
|
102
|
+
data-test-id="List_ListItemWithAvatar"
|
|
103
|
+
role="option"
|
|
104
|
+
tabindex="0"
|
|
105
|
+
>
|
|
106
|
+
<div
|
|
107
|
+
class="grow basis shrinkOn"
|
|
108
|
+
data-id="boxComponent"
|
|
109
|
+
data-selector-id="box"
|
|
110
|
+
data-test-id="boxComponent"
|
|
111
|
+
>
|
|
112
|
+
<div
|
|
113
|
+
class="flex cover coldir"
|
|
114
|
+
data-id="containerComponent"
|
|
115
|
+
data-selector-id="container"
|
|
116
|
+
data-test-id="containerComponent"
|
|
117
|
+
>
|
|
118
|
+
<div
|
|
119
|
+
class="value shrinkOff"
|
|
120
|
+
data-id="boxComponent"
|
|
121
|
+
data-selector-id="box"
|
|
122
|
+
data-test-id="boxComponent"
|
|
123
|
+
>
|
|
124
|
+
List
|
|
125
|
+
</div>
|
|
126
|
+
<div
|
|
127
|
+
class="secondaryField secondaryValue shrinkOff"
|
|
128
|
+
data-id="boxComponent"
|
|
129
|
+
data-selector-id="box"
|
|
130
|
+
data-test-id="boxComponent"
|
|
131
|
+
data-title="secondaryValue"
|
|
132
|
+
>
|
|
133
|
+
secondaryValue
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
</li>
|
|
138
|
+
</DocumentFragment>
|
|
139
|
+
`;
|
|
140
|
+
|
|
141
|
+
exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue text and LHS align start 1`] = `
|
|
142
|
+
<DocumentFragment>
|
|
143
|
+
<li
|
|
144
|
+
class="list medium default withBorder flex rowdir vCenter"
|
|
145
|
+
data-a11y-inset-focus="true"
|
|
146
|
+
data-id="List_ListItemWithAvatar"
|
|
147
|
+
data-selector-id="listItemWithAvatar"
|
|
148
|
+
data-test-id="List_ListItemWithAvatar"
|
|
149
|
+
role="option"
|
|
150
|
+
tabindex="0"
|
|
151
|
+
>
|
|
152
|
+
<div
|
|
153
|
+
class="grow basis shrinkOn"
|
|
154
|
+
data-id="boxComponent"
|
|
155
|
+
data-selector-id="box"
|
|
156
|
+
data-test-id="boxComponent"
|
|
157
|
+
>
|
|
158
|
+
<div
|
|
159
|
+
class="flex cover coldir"
|
|
160
|
+
data-id="containerComponent"
|
|
161
|
+
data-selector-id="container"
|
|
162
|
+
data-test-id="containerComponent"
|
|
163
|
+
>
|
|
164
|
+
<div
|
|
165
|
+
class="value shrinkOff"
|
|
166
|
+
data-id="boxComponent"
|
|
167
|
+
data-selector-id="box"
|
|
168
|
+
data-test-id="boxComponent"
|
|
169
|
+
>
|
|
170
|
+
List
|
|
171
|
+
</div>
|
|
172
|
+
<div
|
|
173
|
+
class="secondaryField secondaryValue shrinkOff"
|
|
174
|
+
data-id="boxComponent"
|
|
175
|
+
data-selector-id="box"
|
|
176
|
+
data-test-id="boxComponent"
|
|
177
|
+
data-title="secondaryValue"
|
|
178
|
+
>
|
|
179
|
+
secondaryValue
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
</li>
|
|
184
|
+
</DocumentFragment>
|
|
185
|
+
`;
|
|
186
|
+
|
|
3
187
|
exports[`ListItemWithAvatar rendering the defult props 1`] = `
|
|
4
188
|
<DocumentFragment>
|
|
5
189
|
<li
|
|
@@ -12,12 +196,26 @@ exports[`ListItemWithAvatar rendering the defult props 1`] = `
|
|
|
12
196
|
tabindex="0"
|
|
13
197
|
>
|
|
14
198
|
<div
|
|
15
|
-
class="
|
|
199
|
+
class="grow basis shrinkOn"
|
|
16
200
|
data-id="boxComponent"
|
|
17
201
|
data-selector-id="box"
|
|
18
202
|
data-test-id="boxComponent"
|
|
19
203
|
>
|
|
20
|
-
|
|
204
|
+
<div
|
|
205
|
+
class="flex cover coldir"
|
|
206
|
+
data-id="containerComponent"
|
|
207
|
+
data-selector-id="container"
|
|
208
|
+
data-test-id="containerComponent"
|
|
209
|
+
>
|
|
210
|
+
<div
|
|
211
|
+
class="value shrinkOff"
|
|
212
|
+
data-id="boxComponent"
|
|
213
|
+
data-selector-id="box"
|
|
214
|
+
data-test-id="boxComponent"
|
|
215
|
+
>
|
|
216
|
+
List
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
21
219
|
</div>
|
|
22
220
|
</li>
|
|
23
221
|
</DocumentFragment>
|