@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
|
@@ -5,6 +5,9 @@ import { Icon } from '@zohodesk/icons';
|
|
|
5
5
|
import ListContainer from "./ListContainer";
|
|
6
6
|
import { ListItemWithIconDefaultProps } from "./props/defaultProps";
|
|
7
7
|
import { ListItemWithIcon_Props } from "./props/propTypes";
|
|
8
|
+
/*** Utils ****/
|
|
9
|
+
|
|
10
|
+
import { renderNode, isRenderable } from '@zohodesk/utils';
|
|
8
11
|
/**** CSS ****/
|
|
9
12
|
|
|
10
13
|
import style from "./ListItem.module.css";
|
|
@@ -69,9 +72,11 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
69
72
|
disableTitle,
|
|
70
73
|
a11y,
|
|
71
74
|
customClass,
|
|
75
|
+
customValueRightPlaceholderClass,
|
|
72
76
|
customProps,
|
|
73
77
|
needMultiLineText,
|
|
74
78
|
secondaryValue,
|
|
79
|
+
renderValueRightPlaceholderNode,
|
|
75
80
|
lhsAlignContent,
|
|
76
81
|
lhsJustifyContent
|
|
77
82
|
} = this.props;
|
|
@@ -127,17 +132,21 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
127
132
|
className: iconClass
|
|
128
133
|
}) : null, /*#__PURE__*/React.createElement(Box, {
|
|
129
134
|
flexible: true,
|
|
130
|
-
|
|
131
|
-
}, /*#__PURE__*/React.createElement(
|
|
132
|
-
|
|
135
|
+
className: style.leftBox
|
|
136
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
137
|
+
className: style.titleBox
|
|
133
138
|
}, value ? /*#__PURE__*/React.createElement(Box, {
|
|
139
|
+
shrink: true,
|
|
140
|
+
adjust: true,
|
|
134
141
|
className: needMultiLineText ? style.multiLineValue : style.value,
|
|
135
142
|
"data-title": isDisabled ? null : title,
|
|
136
143
|
dataId: `${dataIdString}_Text`
|
|
137
|
-
}, value) : null,
|
|
144
|
+
}, value) : null, isRenderable(renderValueRightPlaceholderNode) ? /*#__PURE__*/React.createElement(Box, {
|
|
145
|
+
className: customValueRightPlaceholderClass
|
|
146
|
+
}, renderNode(renderValueRightPlaceholderNode)) : null), secondaryValue ? /*#__PURE__*/React.createElement(Box, {
|
|
138
147
|
"data-title": isDisabled ? null : secondaryValue,
|
|
139
148
|
className: `${style.secondaryField} ${needMultiLineText ? style.multiLine : style.secondaryValue}`
|
|
140
|
-
}, secondaryValue) : null)
|
|
149
|
+
}, secondaryValue) : null), needTick && active ? /*#__PURE__*/React.createElement(Box, {
|
|
141
150
|
className: style.tickIcon,
|
|
142
151
|
"aria-hidden": ariaHidden,
|
|
143
152
|
dataId: `${dataIdString}_tickIcon`,
|
|
@@ -4,6 +4,7 @@ import { Box, Container } from "../Layout";
|
|
|
4
4
|
import ListContainer from "./ListContainer";
|
|
5
5
|
import { ListItemWithRadioDefaultProps } from "./props/defaultProps";
|
|
6
6
|
import { ListItemWithRadio_Props } from "./props/propTypes";
|
|
7
|
+
import { renderNode, isRenderable } from '@zohodesk/utils';
|
|
7
8
|
import style from "./ListItem.module.css";
|
|
8
9
|
export default class ListItemWithRadio extends React.Component {
|
|
9
10
|
constructor(props) {
|
|
@@ -62,6 +63,7 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
62
63
|
customProps,
|
|
63
64
|
needMultiLineText,
|
|
64
65
|
secondaryValue,
|
|
66
|
+
renderValueRightPlaceholderNode,
|
|
65
67
|
lhsAlignContent,
|
|
66
68
|
lhsJustifyContent
|
|
67
69
|
} = this.props;
|
|
@@ -76,7 +78,8 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
76
78
|
let {
|
|
77
79
|
customListItem = '',
|
|
78
80
|
customRadio = '',
|
|
79
|
-
customRadioWrap = ''
|
|
81
|
+
customRadioWrap = '',
|
|
82
|
+
customValueRightPlaceholder = ''
|
|
80
83
|
} = customClass;
|
|
81
84
|
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
82
85
|
a11y: listA11y,
|
|
@@ -115,16 +118,20 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
115
118
|
}
|
|
116
119
|
}))), /*#__PURE__*/React.createElement(Box, {
|
|
117
120
|
flexible: true,
|
|
118
|
-
|
|
119
|
-
}, /*#__PURE__*/React.createElement(
|
|
120
|
-
|
|
121
|
+
className: style.leftBox
|
|
122
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
123
|
+
className: style.titleBox
|
|
121
124
|
}, value ? /*#__PURE__*/React.createElement(Box, {
|
|
125
|
+
shrink: true,
|
|
126
|
+
adjust: true,
|
|
122
127
|
"data-title": disableTitle ? null : title,
|
|
123
128
|
className: needMultiLineText ? style.multiLineValue : style.value
|
|
124
|
-
}, value) : null,
|
|
129
|
+
}, value) : null, isRenderable(renderValueRightPlaceholderNode) ? /*#__PURE__*/React.createElement(Box, {
|
|
130
|
+
className: customValueRightPlaceholder
|
|
131
|
+
}, renderNode(renderValueRightPlaceholderNode)) : null), secondaryValue ? /*#__PURE__*/React.createElement(Box, {
|
|
125
132
|
"data-title": isDisabled ? null : secondaryValue,
|
|
126
133
|
className: `${style.secondaryField} ${needMultiLineText ? style.multiLine : style.secondaryValue}`
|
|
127
|
-
}, secondaryValue) : null))
|
|
134
|
+
}, secondaryValue) : null));
|
|
128
135
|
}
|
|
129
136
|
|
|
130
137
|
}
|
|
@@ -8,4 +8,23 @@ describe('ListItem', () => {
|
|
|
8
8
|
} = render( /*#__PURE__*/React.createElement(ListItem, null));
|
|
9
9
|
expect(asFragment()).toMatchSnapshot();
|
|
10
10
|
});
|
|
11
|
+
test('ListItem with renderValueRightPlaceholderNode', () => {
|
|
12
|
+
const {
|
|
13
|
+
asFragment
|
|
14
|
+
} = render( /*#__PURE__*/React.createElement(ListItem, {
|
|
15
|
+
renderValueRightPlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Custom Placeholder")
|
|
16
|
+
}));
|
|
17
|
+
expect(asFragment()).toMatchSnapshot();
|
|
18
|
+
});
|
|
19
|
+
test('ListItem with renderValueRightPlaceholderNode & it\'s custom class', () => {
|
|
20
|
+
const {
|
|
21
|
+
asFragment
|
|
22
|
+
} = render( /*#__PURE__*/React.createElement(ListItem, {
|
|
23
|
+
renderValueRightPlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Custom Placeholder"),
|
|
24
|
+
customClass: {
|
|
25
|
+
customValueRightPlaceholder: "customValueRightPlaceholderClass"
|
|
26
|
+
}
|
|
27
|
+
}));
|
|
28
|
+
expect(asFragment()).toMatchSnapshot();
|
|
29
|
+
});
|
|
11
30
|
});
|
|
@@ -43,4 +43,23 @@ describe('ListItemWithAvatar', () => {
|
|
|
43
43
|
}));
|
|
44
44
|
expect(asFragment()).toMatchSnapshot();
|
|
45
45
|
});
|
|
46
|
+
test('ListItemWithAvatar with renderValueRightPlaceholderNode', () => {
|
|
47
|
+
const {
|
|
48
|
+
asFragment
|
|
49
|
+
} = render( /*#__PURE__*/React.createElement(ListItemWithAvatar, {
|
|
50
|
+
renderValueRightPlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Custom Placeholder")
|
|
51
|
+
}));
|
|
52
|
+
expect(asFragment()).toMatchSnapshot();
|
|
53
|
+
});
|
|
54
|
+
test('ListItemWithAvatar with renderValueRightPlaceholderNode & it\'s custom class', () => {
|
|
55
|
+
const {
|
|
56
|
+
asFragment
|
|
57
|
+
} = render( /*#__PURE__*/React.createElement(ListItemWithAvatar, {
|
|
58
|
+
renderValueRightPlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Custom Placeholder"),
|
|
59
|
+
customClass: {
|
|
60
|
+
customValueRightPlaceholder: "customValueRightPlaceholderClass"
|
|
61
|
+
}
|
|
62
|
+
}));
|
|
63
|
+
expect(asFragment()).toMatchSnapshot();
|
|
64
|
+
});
|
|
46
65
|
});
|
|
@@ -43,4 +43,23 @@ describe('ListItemWithCheckBox', () => {
|
|
|
43
43
|
}));
|
|
44
44
|
expect(asFragment()).toMatchSnapshot();
|
|
45
45
|
});
|
|
46
|
+
test('ListItemWithCheckBox with renderValueRightPlaceholderNode', () => {
|
|
47
|
+
const {
|
|
48
|
+
asFragment
|
|
49
|
+
} = render( /*#__PURE__*/React.createElement(ListItemWithCheckBox, {
|
|
50
|
+
renderValueRightPlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Custom Placeholder")
|
|
51
|
+
}));
|
|
52
|
+
expect(asFragment()).toMatchSnapshot();
|
|
53
|
+
});
|
|
54
|
+
test('ListItemWithCheckBox with renderValueRightPlaceholderNode & it\'s custom class', () => {
|
|
55
|
+
const {
|
|
56
|
+
asFragment
|
|
57
|
+
} = render( /*#__PURE__*/React.createElement(ListItemWithCheckBox, {
|
|
58
|
+
renderValueRightPlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Custom Placeholder"),
|
|
59
|
+
customClass: {
|
|
60
|
+
customValueRightPlaceholder: "customValueRightPlaceholderClass"
|
|
61
|
+
}
|
|
62
|
+
}));
|
|
63
|
+
expect(asFragment()).toMatchSnapshot();
|
|
64
|
+
});
|
|
46
65
|
});
|
|
@@ -43,4 +43,21 @@ describe('ListItemWithIcon', () => {
|
|
|
43
43
|
}));
|
|
44
44
|
expect(asFragment()).toMatchSnapshot();
|
|
45
45
|
});
|
|
46
|
+
test('ListItemWithIcon with renderValueRightPlaceholderNode', () => {
|
|
47
|
+
const {
|
|
48
|
+
asFragment
|
|
49
|
+
} = render( /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
50
|
+
renderValueRightPlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Custom Placeholder")
|
|
51
|
+
}));
|
|
52
|
+
expect(asFragment()).toMatchSnapshot();
|
|
53
|
+
});
|
|
54
|
+
test('ListItemWithIcon with renderValueRightPlaceholderNode & it\'s custom class', () => {
|
|
55
|
+
const {
|
|
56
|
+
asFragment
|
|
57
|
+
} = render( /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
58
|
+
renderValueRightPlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Custom Placeholder"),
|
|
59
|
+
customValueRightPlaceholderClass: "customValueRightPlaceholderClass"
|
|
60
|
+
}));
|
|
61
|
+
expect(asFragment()).toMatchSnapshot();
|
|
62
|
+
});
|
|
46
63
|
});
|
|
@@ -43,4 +43,23 @@ describe('ListItemWithRadio', () => {
|
|
|
43
43
|
}));
|
|
44
44
|
expect(asFragment()).toMatchSnapshot();
|
|
45
45
|
});
|
|
46
|
+
test('ListItemWithRadio with renderValueRightPlaceholderNode', () => {
|
|
47
|
+
const {
|
|
48
|
+
asFragment
|
|
49
|
+
} = render( /*#__PURE__*/React.createElement(ListItemWithRadio, {
|
|
50
|
+
renderValueRightPlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Custom Placeholder")
|
|
51
|
+
}));
|
|
52
|
+
expect(asFragment()).toMatchSnapshot();
|
|
53
|
+
});
|
|
54
|
+
test('ListItemWithRadio with renderValueRightPlaceholderNode & it\'s custom class', () => {
|
|
55
|
+
const {
|
|
56
|
+
asFragment
|
|
57
|
+
} = render( /*#__PURE__*/React.createElement(ListItemWithRadio, {
|
|
58
|
+
renderValueRightPlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Custom Placeholder"),
|
|
59
|
+
customClass: {
|
|
60
|
+
customValueRightPlaceholder: "customValueRightPlaceholderClass"
|
|
61
|
+
}
|
|
62
|
+
}));
|
|
63
|
+
expect(asFragment()).toMatchSnapshot();
|
|
64
|
+
});
|
|
46
65
|
});
|
|
@@ -1,5 +1,83 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`ListItem ListItem with renderValueRightPlaceholderNode & it's custom class 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<li
|
|
6
|
+
class="list medium default withBorder flex rowdir vCenter"
|
|
7
|
+
data-a11y-inset-focus="true"
|
|
8
|
+
data-id="listItem"
|
|
9
|
+
data-selector-id="listItem"
|
|
10
|
+
data-test-id="listItem"
|
|
11
|
+
role="option"
|
|
12
|
+
tabindex="0"
|
|
13
|
+
>
|
|
14
|
+
<div
|
|
15
|
+
class="leftBox grow basis shrinkOff"
|
|
16
|
+
data-id="boxComponent"
|
|
17
|
+
data-selector-id="box"
|
|
18
|
+
data-test-id="boxComponent"
|
|
19
|
+
>
|
|
20
|
+
<div
|
|
21
|
+
class="titleBox shrinkOff"
|
|
22
|
+
data-id="boxComponent"
|
|
23
|
+
data-selector-id="box"
|
|
24
|
+
data-test-id="boxComponent"
|
|
25
|
+
>
|
|
26
|
+
<div
|
|
27
|
+
class="customValueRightPlaceholderClass shrinkOff"
|
|
28
|
+
data-id="boxComponent"
|
|
29
|
+
data-selector-id="box"
|
|
30
|
+
data-test-id="boxComponent"
|
|
31
|
+
>
|
|
32
|
+
<div>
|
|
33
|
+
Custom Placeholder
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</li>
|
|
39
|
+
</DocumentFragment>
|
|
40
|
+
`;
|
|
41
|
+
|
|
42
|
+
exports[`ListItem ListItem with renderValueRightPlaceholderNode 1`] = `
|
|
43
|
+
<DocumentFragment>
|
|
44
|
+
<li
|
|
45
|
+
class="list medium default withBorder flex rowdir vCenter"
|
|
46
|
+
data-a11y-inset-focus="true"
|
|
47
|
+
data-id="listItem"
|
|
48
|
+
data-selector-id="listItem"
|
|
49
|
+
data-test-id="listItem"
|
|
50
|
+
role="option"
|
|
51
|
+
tabindex="0"
|
|
52
|
+
>
|
|
53
|
+
<div
|
|
54
|
+
class="leftBox grow basis shrinkOff"
|
|
55
|
+
data-id="boxComponent"
|
|
56
|
+
data-selector-id="box"
|
|
57
|
+
data-test-id="boxComponent"
|
|
58
|
+
>
|
|
59
|
+
<div
|
|
60
|
+
class="titleBox shrinkOff"
|
|
61
|
+
data-id="boxComponent"
|
|
62
|
+
data-selector-id="box"
|
|
63
|
+
data-test-id="boxComponent"
|
|
64
|
+
>
|
|
65
|
+
<div
|
|
66
|
+
class="shrinkOff"
|
|
67
|
+
data-id="boxComponent"
|
|
68
|
+
data-selector-id="box"
|
|
69
|
+
data-test-id="boxComponent"
|
|
70
|
+
>
|
|
71
|
+
<div>
|
|
72
|
+
Custom Placeholder
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</li>
|
|
78
|
+
</DocumentFragment>
|
|
79
|
+
`;
|
|
80
|
+
|
|
3
81
|
exports[`ListItem rendering the defult props 1`] = `
|
|
4
82
|
<DocumentFragment>
|
|
5
83
|
<li
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`ListItemWithAvatar ListItemWithAvatar with
|
|
3
|
+
exports[`ListItemWithAvatar ListItemWithAvatar with renderValueRightPlaceholderNode & it's custom class 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<li
|
|
6
6
|
class="list medium default withBorder flex rowdir vCenter"
|
|
@@ -12,19 +12,19 @@ exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue text and LHS
|
|
|
12
12
|
tabindex="0"
|
|
13
13
|
>
|
|
14
14
|
<div
|
|
15
|
-
class="grow basis
|
|
15
|
+
class="leftBox grow basis shrinkOff"
|
|
16
16
|
data-id="boxComponent"
|
|
17
17
|
data-selector-id="box"
|
|
18
18
|
data-test-id="boxComponent"
|
|
19
19
|
>
|
|
20
20
|
<div
|
|
21
|
-
class="
|
|
22
|
-
data-id="
|
|
23
|
-
data-selector-id="
|
|
24
|
-
data-test-id="
|
|
21
|
+
class="titleBox shrinkOff"
|
|
22
|
+
data-id="boxComponent"
|
|
23
|
+
data-selector-id="box"
|
|
24
|
+
data-test-id="boxComponent"
|
|
25
25
|
>
|
|
26
26
|
<div
|
|
27
|
-
class="value
|
|
27
|
+
class="value basisAuto shrinkOn"
|
|
28
28
|
data-id="boxComponent"
|
|
29
29
|
data-selector-id="box"
|
|
30
30
|
data-test-id="boxComponent"
|
|
@@ -32,13 +32,14 @@ exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue text and LHS
|
|
|
32
32
|
List
|
|
33
33
|
</div>
|
|
34
34
|
<div
|
|
35
|
-
class="
|
|
35
|
+
class="customValueRightPlaceholderClass shrinkOff"
|
|
36
36
|
data-id="boxComponent"
|
|
37
37
|
data-selector-id="box"
|
|
38
38
|
data-test-id="boxComponent"
|
|
39
|
-
data-title="secondaryValue"
|
|
40
39
|
>
|
|
41
|
-
|
|
40
|
+
<div>
|
|
41
|
+
Custom Placeholder
|
|
42
|
+
</div>
|
|
42
43
|
</div>
|
|
43
44
|
</div>
|
|
44
45
|
</div>
|
|
@@ -46,7 +47,7 @@ exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue text and LHS
|
|
|
46
47
|
</DocumentFragment>
|
|
47
48
|
`;
|
|
48
49
|
|
|
49
|
-
exports[`ListItemWithAvatar ListItemWithAvatar with
|
|
50
|
+
exports[`ListItemWithAvatar ListItemWithAvatar with renderValueRightPlaceholderNode 1`] = `
|
|
50
51
|
<DocumentFragment>
|
|
51
52
|
<li
|
|
52
53
|
class="list medium default withBorder flex rowdir vCenter"
|
|
@@ -58,19 +59,19 @@ exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue text and LHS
|
|
|
58
59
|
tabindex="0"
|
|
59
60
|
>
|
|
60
61
|
<div
|
|
61
|
-
class="grow basis
|
|
62
|
+
class="leftBox grow basis shrinkOff"
|
|
62
63
|
data-id="boxComponent"
|
|
63
64
|
data-selector-id="box"
|
|
64
65
|
data-test-id="boxComponent"
|
|
65
66
|
>
|
|
66
67
|
<div
|
|
67
|
-
class="
|
|
68
|
-
data-id="
|
|
69
|
-
data-selector-id="
|
|
70
|
-
data-test-id="
|
|
68
|
+
class="titleBox shrinkOff"
|
|
69
|
+
data-id="boxComponent"
|
|
70
|
+
data-selector-id="box"
|
|
71
|
+
data-test-id="boxComponent"
|
|
71
72
|
>
|
|
72
73
|
<div
|
|
73
|
-
class="value
|
|
74
|
+
class="value basisAuto shrinkOn"
|
|
74
75
|
data-id="boxComponent"
|
|
75
76
|
data-selector-id="box"
|
|
76
77
|
data-test-id="boxComponent"
|
|
@@ -78,13 +79,14 @@ exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue text and LHS
|
|
|
78
79
|
List
|
|
79
80
|
</div>
|
|
80
81
|
<div
|
|
81
|
-
class="
|
|
82
|
+
class="shrinkOff"
|
|
82
83
|
data-id="boxComponent"
|
|
83
84
|
data-selector-id="box"
|
|
84
85
|
data-test-id="boxComponent"
|
|
85
|
-
data-title="secondaryValue"
|
|
86
86
|
>
|
|
87
|
-
|
|
87
|
+
<div>
|
|
88
|
+
Custom Placeholder
|
|
89
|
+
</div>
|
|
88
90
|
</div>
|
|
89
91
|
</div>
|
|
90
92
|
</div>
|
|
@@ -92,7 +94,7 @@ exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue text and LHS
|
|
|
92
94
|
</DocumentFragment>
|
|
93
95
|
`;
|
|
94
96
|
|
|
95
|
-
exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue 1`] = `
|
|
97
|
+
exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue text and LHS align center 1`] = `
|
|
96
98
|
<DocumentFragment>
|
|
97
99
|
<li
|
|
98
100
|
class="list medium default withBorder flex rowdir vCenter"
|
|
@@ -104,41 +106,87 @@ exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue 1`] = `
|
|
|
104
106
|
tabindex="0"
|
|
105
107
|
>
|
|
106
108
|
<div
|
|
107
|
-
class="grow basis
|
|
109
|
+
class="leftBox grow basis shrinkOff"
|
|
108
110
|
data-id="boxComponent"
|
|
109
111
|
data-selector-id="box"
|
|
110
112
|
data-test-id="boxComponent"
|
|
111
113
|
>
|
|
112
114
|
<div
|
|
113
|
-
class="
|
|
114
|
-
data-id="
|
|
115
|
-
data-selector-id="
|
|
116
|
-
data-test-id="
|
|
115
|
+
class="titleBox shrinkOff"
|
|
116
|
+
data-id="boxComponent"
|
|
117
|
+
data-selector-id="box"
|
|
118
|
+
data-test-id="boxComponent"
|
|
117
119
|
>
|
|
118
120
|
<div
|
|
119
|
-
class="value
|
|
121
|
+
class="value basisAuto shrinkOn"
|
|
120
122
|
data-id="boxComponent"
|
|
121
123
|
data-selector-id="box"
|
|
122
124
|
data-test-id="boxComponent"
|
|
123
125
|
>
|
|
124
126
|
List
|
|
125
127
|
</div>
|
|
128
|
+
</div>
|
|
129
|
+
<div
|
|
130
|
+
class="secondaryField secondaryValue shrinkOff"
|
|
131
|
+
data-id="boxComponent"
|
|
132
|
+
data-selector-id="box"
|
|
133
|
+
data-test-id="boxComponent"
|
|
134
|
+
data-title="secondaryValue"
|
|
135
|
+
>
|
|
136
|
+
secondaryValue
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
</li>
|
|
140
|
+
</DocumentFragment>
|
|
141
|
+
`;
|
|
142
|
+
|
|
143
|
+
exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue text and LHS align end 1`] = `
|
|
144
|
+
<DocumentFragment>
|
|
145
|
+
<li
|
|
146
|
+
class="list medium default withBorder flex rowdir vCenter"
|
|
147
|
+
data-a11y-inset-focus="true"
|
|
148
|
+
data-id="List_ListItemWithAvatar"
|
|
149
|
+
data-selector-id="listItemWithAvatar"
|
|
150
|
+
data-test-id="List_ListItemWithAvatar"
|
|
151
|
+
role="option"
|
|
152
|
+
tabindex="0"
|
|
153
|
+
>
|
|
154
|
+
<div
|
|
155
|
+
class="leftBox grow basis shrinkOff"
|
|
156
|
+
data-id="boxComponent"
|
|
157
|
+
data-selector-id="box"
|
|
158
|
+
data-test-id="boxComponent"
|
|
159
|
+
>
|
|
160
|
+
<div
|
|
161
|
+
class="titleBox shrinkOff"
|
|
162
|
+
data-id="boxComponent"
|
|
163
|
+
data-selector-id="box"
|
|
164
|
+
data-test-id="boxComponent"
|
|
165
|
+
>
|
|
126
166
|
<div
|
|
127
|
-
class="
|
|
167
|
+
class="value basisAuto shrinkOn"
|
|
128
168
|
data-id="boxComponent"
|
|
129
169
|
data-selector-id="box"
|
|
130
170
|
data-test-id="boxComponent"
|
|
131
|
-
data-title="secondaryValue"
|
|
132
171
|
>
|
|
133
|
-
|
|
172
|
+
List
|
|
134
173
|
</div>
|
|
135
174
|
</div>
|
|
175
|
+
<div
|
|
176
|
+
class="secondaryField secondaryValue shrinkOff"
|
|
177
|
+
data-id="boxComponent"
|
|
178
|
+
data-selector-id="box"
|
|
179
|
+
data-test-id="boxComponent"
|
|
180
|
+
data-title="secondaryValue"
|
|
181
|
+
>
|
|
182
|
+
secondaryValue
|
|
183
|
+
</div>
|
|
136
184
|
</div>
|
|
137
185
|
</li>
|
|
138
186
|
</DocumentFragment>
|
|
139
187
|
`;
|
|
140
188
|
|
|
141
|
-
exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue
|
|
189
|
+
exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue 1`] = `
|
|
142
190
|
<DocumentFragment>
|
|
143
191
|
<li
|
|
144
192
|
class="list medium default withBorder flex rowdir vCenter"
|
|
@@ -150,35 +198,81 @@ exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue text and LHS
|
|
|
150
198
|
tabindex="0"
|
|
151
199
|
>
|
|
152
200
|
<div
|
|
153
|
-
class="grow basis
|
|
201
|
+
class="leftBox grow basis shrinkOff"
|
|
154
202
|
data-id="boxComponent"
|
|
155
203
|
data-selector-id="box"
|
|
156
204
|
data-test-id="boxComponent"
|
|
157
205
|
>
|
|
158
206
|
<div
|
|
159
|
-
class="
|
|
160
|
-
data-id="
|
|
161
|
-
data-selector-id="
|
|
162
|
-
data-test-id="
|
|
207
|
+
class="titleBox shrinkOff"
|
|
208
|
+
data-id="boxComponent"
|
|
209
|
+
data-selector-id="box"
|
|
210
|
+
data-test-id="boxComponent"
|
|
163
211
|
>
|
|
164
212
|
<div
|
|
165
|
-
class="value
|
|
213
|
+
class="value basisAuto shrinkOn"
|
|
166
214
|
data-id="boxComponent"
|
|
167
215
|
data-selector-id="box"
|
|
168
216
|
data-test-id="boxComponent"
|
|
169
217
|
>
|
|
170
218
|
List
|
|
171
219
|
</div>
|
|
220
|
+
</div>
|
|
221
|
+
<div
|
|
222
|
+
class="secondaryField secondaryValue shrinkOff"
|
|
223
|
+
data-id="boxComponent"
|
|
224
|
+
data-selector-id="box"
|
|
225
|
+
data-test-id="boxComponent"
|
|
226
|
+
data-title="secondaryValue"
|
|
227
|
+
>
|
|
228
|
+
secondaryValue
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
</li>
|
|
232
|
+
</DocumentFragment>
|
|
233
|
+
`;
|
|
234
|
+
|
|
235
|
+
exports[`ListItemWithAvatar ListItemWithAvatar with secondaryValue text and LHS align start 1`] = `
|
|
236
|
+
<DocumentFragment>
|
|
237
|
+
<li
|
|
238
|
+
class="list medium default withBorder flex rowdir vCenter"
|
|
239
|
+
data-a11y-inset-focus="true"
|
|
240
|
+
data-id="List_ListItemWithAvatar"
|
|
241
|
+
data-selector-id="listItemWithAvatar"
|
|
242
|
+
data-test-id="List_ListItemWithAvatar"
|
|
243
|
+
role="option"
|
|
244
|
+
tabindex="0"
|
|
245
|
+
>
|
|
246
|
+
<div
|
|
247
|
+
class="leftBox grow basis shrinkOff"
|
|
248
|
+
data-id="boxComponent"
|
|
249
|
+
data-selector-id="box"
|
|
250
|
+
data-test-id="boxComponent"
|
|
251
|
+
>
|
|
252
|
+
<div
|
|
253
|
+
class="titleBox shrinkOff"
|
|
254
|
+
data-id="boxComponent"
|
|
255
|
+
data-selector-id="box"
|
|
256
|
+
data-test-id="boxComponent"
|
|
257
|
+
>
|
|
172
258
|
<div
|
|
173
|
-
class="
|
|
259
|
+
class="value basisAuto shrinkOn"
|
|
174
260
|
data-id="boxComponent"
|
|
175
261
|
data-selector-id="box"
|
|
176
262
|
data-test-id="boxComponent"
|
|
177
|
-
data-title="secondaryValue"
|
|
178
263
|
>
|
|
179
|
-
|
|
264
|
+
List
|
|
180
265
|
</div>
|
|
181
266
|
</div>
|
|
267
|
+
<div
|
|
268
|
+
class="secondaryField secondaryValue shrinkOff"
|
|
269
|
+
data-id="boxComponent"
|
|
270
|
+
data-selector-id="box"
|
|
271
|
+
data-test-id="boxComponent"
|
|
272
|
+
data-title="secondaryValue"
|
|
273
|
+
>
|
|
274
|
+
secondaryValue
|
|
275
|
+
</div>
|
|
182
276
|
</div>
|
|
183
277
|
</li>
|
|
184
278
|
</DocumentFragment>
|
|
@@ -196,19 +290,19 @@ exports[`ListItemWithAvatar rendering the defult props 1`] = `
|
|
|
196
290
|
tabindex="0"
|
|
197
291
|
>
|
|
198
292
|
<div
|
|
199
|
-
class="grow basis
|
|
293
|
+
class="leftBox grow basis shrinkOff"
|
|
200
294
|
data-id="boxComponent"
|
|
201
295
|
data-selector-id="box"
|
|
202
296
|
data-test-id="boxComponent"
|
|
203
297
|
>
|
|
204
298
|
<div
|
|
205
|
-
class="
|
|
206
|
-
data-id="
|
|
207
|
-
data-selector-id="
|
|
208
|
-
data-test-id="
|
|
299
|
+
class="titleBox shrinkOff"
|
|
300
|
+
data-id="boxComponent"
|
|
301
|
+
data-selector-id="box"
|
|
302
|
+
data-test-id="boxComponent"
|
|
209
303
|
>
|
|
210
304
|
<div
|
|
211
|
-
class="value
|
|
305
|
+
class="value basisAuto shrinkOn"
|
|
212
306
|
data-id="boxComponent"
|
|
213
307
|
data-selector-id="box"
|
|
214
308
|
data-test-id="boxComponent"
|