@zohodesk/components 1.6.2 → 1.6.3

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.
Files changed (60) hide show
  1. package/README.md +21 -13
  2. package/es/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +4 -2
  3. package/es/ListItem/ListItem.js +6 -4
  4. package/es/ListItem/ListItem.module.css +40 -22
  5. package/es/ListItem/ListItemWithAvatar.js +7 -5
  6. package/es/ListItem/ListItemWithCheckBox.js +9 -5
  7. package/es/ListItem/ListItemWithIcon.js +10 -7
  8. package/es/ListItem/ListItemWithRadio.js +9 -6
  9. package/es/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +4 -4
  10. package/es/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +131 -82
  11. package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +432 -390
  12. package/es/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +141 -92
  13. package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +432 -390
  14. package/es/ListItem/props/defaultProps.js +2 -1
  15. package/es/ListItem/props/propTypes.js +4 -2
  16. package/es/MultiSelect/AdvancedGroupMultiSelect.js +12 -3
  17. package/es/MultiSelect/MultiSelect.js +2 -2
  18. package/es/MultiSelect/Suggestions.js +7 -2
  19. package/es/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +10 -10
  20. package/es/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +34 -28
  21. package/es/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +20 -20
  22. package/es/MultiSelect/props/defaultProps.js +2 -0
  23. package/es/MultiSelect/props/propTypes.js +11 -3
  24. package/es/Select/GroupSelect.js +1 -1
  25. package/es/Select/SelectWithAvatar.js +3 -3
  26. package/es/Select/SelectWithIcon.js +10 -3
  27. package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +66 -66
  28. package/es/Select/props/defaultProps.js +4 -2
  29. package/es/Select/props/propTypes.js +11 -3
  30. package/es/common/common.module.css +1 -1
  31. package/lib/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +4 -2
  32. package/lib/ListItem/ListItem.js +7 -4
  33. package/lib/ListItem/ListItem.module.css +40 -22
  34. package/lib/ListItem/ListItemWithAvatar.js +7 -5
  35. package/lib/ListItem/ListItemWithCheckBox.js +9 -5
  36. package/lib/ListItem/ListItemWithIcon.js +10 -7
  37. package/lib/ListItem/ListItemWithRadio.js +9 -6
  38. package/lib/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +4 -4
  39. package/lib/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +131 -82
  40. package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +432 -390
  41. package/lib/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +141 -92
  42. package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +432 -390
  43. package/lib/ListItem/props/defaultProps.js +2 -1
  44. package/lib/ListItem/props/propTypes.js +4 -2
  45. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +23 -16
  46. package/lib/MultiSelect/MultiSelect.js +2 -2
  47. package/lib/MultiSelect/Suggestions.js +6 -2
  48. package/lib/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +10 -10
  49. package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +34 -28
  50. package/lib/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +20 -20
  51. package/lib/MultiSelect/props/defaultProps.js +2 -0
  52. package/lib/MultiSelect/props/propTypes.js +13 -5
  53. package/lib/Select/GroupSelect.js +2 -1
  54. package/lib/Select/SelectWithAvatar.js +4 -3
  55. package/lib/Select/SelectWithIcon.js +10 -3
  56. package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +66 -66
  57. package/lib/Select/props/defaultProps.js +5 -3
  58. package/lib/Select/props/propTypes.js +11 -3
  59. package/lib/common/common.module.css +1 -1
  60. package/package.json +3 -3
package/README.md CHANGED
@@ -2,10 +2,18 @@
2
2
 
3
3
  Dot UI is a customizable React component library built to deliver a clean, accessible, and developer-friendly UI experience. It offers a growing set of reusable components designed to align with modern design systems and streamline application development across projects.
4
4
 
5
+ # 1.6.3
6
+
7
+ - Added customProps support to **AdvancedMultiSelect**.
8
+ - Introduced customClass in **Suggestions** component.
9
+ - Added dropBoxClass support in **SelectWithIcon**.
10
+ - Updated default --line-clamp value from 2 → 3.
11
+ - Added customTitleBox custom class to **ListItem**.
12
+ - Introduced lhsAlignContent prop in **ListItemWithAvatar**.
5
13
 
6
14
  # 1.6.2
7
15
 
8
- - **Select, SelectWithIcon, SelectWithAvatar, GroupSelect, MultiSelect, MultiSelctWithAvatar, AdvancedMultiSelect, AdvancedGroupMultiSelect**
16
+ - **Select, SelectWithIcon, SelectWithAvatar, GroupSelect, MultiSelect, MultiSelectWithAvatar, AdvancedMultiSelect, AdvancedGroupMultiSelect**
9
17
  - `renderCustomEmptyState` prop supported
10
18
 
11
19
  # 1.6.1
@@ -141,7 +149,7 @@ Also, primarySuccess → primaryTick, and dangerSuccess → dangerTick.
141
149
 
142
150
  - **Select**
143
151
  - `secondaryField` prop supported to render secondary value inside the options
144
- - `searchFields` prop suppored to additional values based search
152
+ - `searchFields` prop supported to additional values based search
145
153
 
146
154
  - **MultiSelect**
147
155
  - `secondaryField` prop supported to render secondary value inside the options
@@ -149,12 +157,12 @@ Also, primarySuccess → primaryTick, and dangerSuccess → dangerTick.
149
157
 
150
158
  - **SelectWithIcon**
151
159
  - `secondaryValueKey` prop supported to render secondary value inside the options
152
- - `searchFields` prop suppored to additional values based search
160
+ - `searchFields` prop supported to additional values based search
153
161
  - `ListItemProps` supported under **customProps** prop
154
162
 
155
163
  - **SelectWithAvatar**
156
164
  - `secondaryField` prop supported to render secondary value inside the options
157
- - `searchFields` prop suppored to additional values based search
165
+ - `searchFields` prop supported to additional values based search
158
166
  - `customProps` props supported with **TextBoxProps**, **DropdownSearchTextBoxProps** and **SuggestionsProps**
159
167
 
160
168
  - **GroupSelect**
@@ -280,8 +288,8 @@ Also, primarySuccess → primaryTick, and dangerSuccess → dangerTick.
280
288
 
281
289
  # 1.3.4
282
290
 
283
- - **MultiSelect** - `renderCustomClearComponent` and `renderCustomToggleIndicator` props supported to customize the clear and toggle indicatior icon.
284
- - **Select** - `renderCustomSearchClearComponent` and `renderCustomToggleIndicator` props supported to customize the search input clear and toggle indicatior icon.
291
+ - **MultiSelect** - `renderCustomClearComponent` and `renderCustomToggleIndicator` props supported to customize the clear and toggle indicator icon.
292
+ - **Select** - `renderCustomSearchClearComponent` and `renderCustomToggleIndicator` props supported to customize the search input clear and toggle indicator icon.
285
293
  - **TextBoxIcon** - `renderCustomClearComponent` prop supported to customize the input clear.
286
294
 
287
295
  # 1.3.3
@@ -290,7 +298,7 @@ Also, primarySuccess → primaryTick, and dangerSuccess → dangerTick.
290
298
  - Added `isAnimated` prop to support Stencils without Animation.
291
299
  - Added `square` shape in existing shape collection
292
300
  - **TabWrapper**
293
- - Added `vertical-reverse, row-reverse` alignment suport in align propType
301
+ - Added `vertical-reverse, row-reverse` alignment support in align propType
294
302
 
295
303
  # 1.3.2
296
304
 
@@ -492,7 +500,7 @@ Also, primarySuccess → primaryTick, and dangerSuccess → dangerTick.
492
500
  - **DateWidget**
493
501
  - TextBoxIconProps key supported in customProps prop
494
502
  - **MultiSelect**
495
- - customProps prop added and TextBoxIconProps customization given (Prop Spreaded).
503
+ - customProps prop added and TextBoxIconProps customization given (Prop spread).
496
504
  - **Select**
497
505
  - TextBoxIconProps key supported in customProps prop
498
506
  - **SelectWithIcon**
@@ -537,7 +545,7 @@ Also, primarySuccess → primaryTick, and dangerSuccess → dangerTick.
537
545
 
538
546
  # 1.2.30
539
547
 
540
- - **MultiSelect** - needResponsive default Prop Setted as true as before.
548
+ - **MultiSelect** - needResponsive default Prop set as true as before.
541
549
 
542
550
  # 1.2.29
543
551
 
@@ -1118,7 +1126,7 @@ Also, primarySuccess → primaryTick, and dangerSuccess → dangerTick.
1118
1126
 
1119
1127
  # 1.0.0-alpha-196
1120
1128
 
1121
- - AdvancedMultiSelect => SelectedOptionsLimti old and new comparsion based rerender update
1129
+ - AdvancedMultiSelect => SelectedOptionsLimti old and new comparison based rerender update
1122
1130
 
1123
1131
  # 1.0.0-alpha-195
1124
1132
 
@@ -1497,7 +1505,7 @@ Also, primarySuccess → primaryTick, and dangerSuccess → dangerTick.
1497
1505
 
1498
1506
  # 1.0.0-alpha-125
1499
1507
 
1500
- - fize => font_sizevariable replaced
1508
+ - fsize => font_sizevariable replaced
1501
1509
  - Tab => moreiconActiveClass
1502
1510
 
1503
1511
  # 1.0.0-alpha-124
@@ -1677,7 +1685,7 @@ Also, primarySuccess → primaryTick, and dangerSuccess → dangerTick.
1677
1685
  # 1.0.0-alpha-90
1678
1686
 
1679
1687
  - Switch,CheckBox,Radio => data-checked added
1680
- - Tab Resize Issue Solved, setTitleForMoreOptions added for vertical, a11y tags added , gamma and zeta palatte removed
1688
+ - Tab Resize Issue Solved, setTitleForMoreOptions added for vertical, a11y tags added , gamma and zeta palette removed
1681
1689
  - ListItem TaBIndex Added
1682
1690
 
1683
1691
  # 1.0.0-alpha-89
@@ -1711,7 +1719,7 @@ Also, primarySuccess → primaryTick, and dangerSuccess → dangerTick.
1711
1719
 
1712
1720
  # 1.0.0-alpha-84
1713
1721
 
1714
- - ListItemWiithIcon Data-Id Fix
1722
+ - ListItemWithIcon Data-Id Fix
1715
1723
 
1716
1724
  # 1.0.0-alpha-83
1717
1725
 
@@ -1,6 +1,8 @@
1
1
  .varClass {
2
- --local-colorIndicator-height: 10px;
3
- --local-colorIndicator-width: 10px;
2
+ /* css:validation:ignore */
3
+ --local-colorIndicator-height: var(--zd_font_size10);
4
+ /* css:validation:ignore */
5
+ --local-colorIndicator-width: var(--zd_font_size10);
4
6
  --local-colorIndicator-border-radius: 10px;
5
7
  }
6
8
 
@@ -78,7 +78,8 @@ export default class ListItem extends React.Component {
78
78
  needMultiLineText,
79
79
  secondaryValue,
80
80
  renderBeforeChildren,
81
- renderValueRightPlaceholderNode
81
+ renderValueRightPlaceholderNode,
82
+ lhsAlignContent
82
83
  } = this.props;
83
84
  let {
84
85
  ListItemProps = {},
@@ -87,7 +88,8 @@ export default class ListItem extends React.Component {
87
88
  let {
88
89
  customListItem = '',
89
90
  customTickIcon = '',
90
- customValueRightPlaceholder = ''
91
+ customValueRightPlaceholder = '',
92
+ customTitleBox = ''
91
93
  } = customClass;
92
94
  const listA11y = {
93
95
  ariaHidden: true,
@@ -125,14 +127,14 @@ export default class ListItem extends React.Component {
125
127
  flexible: true,
126
128
  className: style.leftBox
127
129
  }, /*#__PURE__*/React.createElement(Box, {
128
- className: style.titleBox
130
+ className: `${style.titleBox} ${lhsAlignContent !== 'start' ? `${style[`alignLhsBox_${lhsAlignContent}`]}` : ''} ${customTitleBox}`
129
131
  }, isRenderable(renderBeforeChildren) ? /*#__PURE__*/React.createElement(Box, {
130
132
  adjust: true,
131
133
  className: style.beforeChild
132
134
  }, renderNode(renderBeforeChildren)) : null, value ? /*#__PURE__*/React.createElement(Box, {
133
135
  shrink: true,
134
136
  adjust: true,
135
- className: needMultiLineText ? style.multiLineValue : style.value
137
+ className: `${style.selfAlign_center} ${needMultiLineText ? style.multiLineValue : style.value}`
136
138
  }, value) : null, isRenderable(renderValueRightPlaceholderNode) ? /*#__PURE__*/React.createElement(Box, {
137
139
  className: customValueRightPlaceholder
138
140
  }, renderNode(renderValueRightPlaceholderNode)) : null, children ? /*#__PURE__*/React.createElement(Box, {
@@ -1,3 +1,4 @@
1
+ /* css:lineheight-validation:ignore */
1
2
  .varClass {
2
3
  /* listitem default variables */
3
4
  --listitem_font_size: 13px;
@@ -15,10 +16,15 @@
15
16
 
16
17
  /* listitem tick icon default variables */
17
18
  --listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
18
- }[dir=ltr] .varClass {
19
+
20
+ /* line-height for multiline text */
21
+ --listitem_multiline_lineheight: 1.5385;
22
+ }
23
+ [dir=ltr] .varClass {
19
24
  --listitem_avatar_margin: 0 15px 0 0
20
25
  /*rtl: 0 0 0 15px*/;
21
- }[dir=rtl] .varClass {
26
+ }
27
+ [dir=rtl] .varClass {
22
28
  --listitem_avatar_margin: 0 0 0 15px;
23
29
  }
24
30
  .list {
@@ -75,18 +81,27 @@
75
81
  .children,.secondaryValue {
76
82
  composes: dotted from '../common/common.module.css';
77
83
  }
84
+ .beforeChild{
85
+ height: calc(var(--listitem_font_size) * var(--listitem_multiline_lineheight));
86
+ }
78
87
  [dir=ltr] .beforeChild{
79
88
  margin-right: var(--zd_size10) ;
80
89
  }
81
90
  [dir=rtl] .beforeChild{
82
91
  margin-left: var(--zd_size10) ;
83
92
  }
93
+ /* css:lineheight-validation:ignore */
84
94
  .value, .multiLineValue {
85
- line-height: 1.5385;
95
+ line-height: var(--listitem_multiline_lineheight);
86
96
  }
87
97
  .multiLineValue,.multiLine{
88
98
  composes: lineClamp from '../common/common.module.css';
89
99
  }
100
+ .iconBox,
101
+ .leftAvatar,
102
+ .lhsBoxInner {
103
+ composes: dflex from '../common/common.module.css';
104
+ }
90
105
  .iconBox {
91
106
  width: var(--zd_size20) ;
92
107
  text-align: center;
@@ -104,10 +119,16 @@
104
119
  .leftAvatar {
105
120
  margin: var(--listitem_avatar_margin);
106
121
  }
122
+ .iconWrapper{
123
+ height: calc(var(--listitem_font_size) * var(--listitem_multiline_lineheight));
124
+ }
107
125
 
126
+ .iconWrapper,
108
127
  .lhsJustifyContent_start,
109
128
  .lhsJustifyContent_center,
110
- .lhsJustifyContent_end {
129
+ .lhsJustifyContent_end,
130
+ .beforeChild,
131
+ .titleBox {
111
132
  composes: dflex alignVertical from '../common/common.module.css';
112
133
  }
113
134
  .lhsJustifyContent_start {
@@ -119,27 +140,24 @@
119
140
  .lhsJustifyContent_end {
120
141
  composes: justifyFend from '../common/common.module.css';
121
142
  }
122
-
123
- .lhsBox {
124
- composes: dflex from '../common/common.module.css';
125
- align-self: stretch;
143
+ .selfAlign_center{
144
+ align-self: center;
126
145
  }
127
- .lhsBox_small,
128
- .lhsBox_medium,
129
- .lhsBox_large{
130
- composes: varClass;
131
- --listitem_doubleline_content_height: calc(var(--listitem_font_size) * 2 );
132
- height: 100% ;
133
- composes: dflex alignVertical from '../common/common.module.css';
146
+
147
+ .contentWrapper {
148
+ composes: dflex flexrow from '../common/common.module.css';
149
+ align-items: stretch;
150
+ width: 100% ;
134
151
  }
135
- .lhsBox_small {
136
- max-height: calc(var(--listitem_doubleline_content_height) + var(--zd_size7)); /* 7px = listitem min-height - (top + bottom padding) - doubleLine content height */
152
+ .alignLhsBox_end {
153
+ align-items: flex-end;
137
154
  }
138
- .lhsBox_medium {
139
- max-height: calc(var(--listitem_doubleline_content_height) + var(--zd_size8)); /* 8px = listitem min-height - (top + bottom padding) - doubleLine content height */
155
+ .alignLhsBox_center {
156
+ align-items: center;
140
157
  }
141
- .lhsBox_large {
142
- max-height: calc(var(--listitem_doubleline_content_height) + var(--zd_size15)); /* 15px = listitem min-height - (top + bottom padding) - doubleLine content height */
158
+ .lhsBoxInner{
159
+ height: 100% ;
160
+ max-height: calc((var(--listitem_font_size) * var(--listitem_multiline_lineheight)) * 2 );
143
161
  }
144
162
  .defaultHover, .primaryHover, .dangerHover, .secondaryHover, .darkHover {
145
163
  background-color: var(--listitem_highlight_bg_color);
@@ -285,5 +303,5 @@
285
303
  }
286
304
 
287
305
  .titleBox {
288
- composes: dflex alignVertical from '../common/common.module.css';
306
+ align-items: stretch;
289
307
  }
@@ -125,11 +125,13 @@ export default class ListItemWithAvatar extends React.PureComponent {
125
125
  disableTitle: disableTitle,
126
126
  title: null,
127
127
  customProps: ListItemProps
128
- }, ContainerProps), name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
129
- className: `${style.leftAvatar} ${lhsAlignContent !== 'center' ? `${style.lhsBox}` : ''}`
128
+ }, ContainerProps), /*#__PURE__*/React.createElement(Box, {
129
+ className: style.contentWrapper
130
+ }, name || imgSrc ? /*#__PURE__*/React.createElement("div", {
131
+ className: `${style.leftAvatar}`
130
132
  }, /*#__PURE__*/React.createElement(Box, {
131
133
  align: lhsAlignContent,
132
- className: style[`lhsBox_${size}`]
134
+ className: `${style.lhsBoxInner} ${style.alignLhsBox_center}`
133
135
  }, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, _extends({
134
136
  name: name,
135
137
  size: "small",
@@ -152,7 +154,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
152
154
  customClass: customAvatar
153
155
  }, AvatarProps)))) : null, /*#__PURE__*/React.createElement(Box, {
154
156
  flexible: true,
155
- className: style.leftBox
157
+ className: `${style.leftBox} ${style.selfAlign_center}`
156
158
  }, /*#__PURE__*/React.createElement(Box, {
157
159
  className: style.titleBox
158
160
  }, value ? /*#__PURE__*/React.createElement(Box, {
@@ -173,7 +175,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
173
175
  }, /*#__PURE__*/React.createElement(Icon, {
174
176
  name: "ZD-ticknew",
175
177
  size: "8"
176
- })) : null);
178
+ })) : null));
177
179
  }
178
180
 
179
181
  }
@@ -83,6 +83,7 @@ export default class ListItemWithCheckBox extends React.Component {
83
83
  customLabel = '',
84
84
  customValueRightPlaceholder = ''
85
85
  } = customClass;
86
+ const iconBoxDataId = `${dataId ? dataId : value}_checkBox`;
86
87
  return /*#__PURE__*/React.createElement(ListContainer, _extends({
87
88
  a11y: listA11y,
88
89
  size: size,
@@ -102,11 +103,14 @@ export default class ListItemWithCheckBox extends React.Component {
102
103
  title: null,
103
104
  customProps: ListItemProps
104
105
  }, ContainerProps), /*#__PURE__*/React.createElement(Box, {
105
- className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
106
- dataId: `${dataId ? dataId : value}_checkBox`
106
+ className: style.contentWrapper
107
+ }, /*#__PURE__*/React.createElement("div", {
108
+ className: `${style.iconBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
109
+ "data-id": iconBoxDataId,
110
+ "data-test-id": iconBoxDataId
107
111
  }, /*#__PURE__*/React.createElement(Box, {
108
112
  align: lhsAlignContent,
109
- className: lhsAlignContent !== 'center' ? style[`lhsBox_${size}`] : ''
113
+ className: lhsAlignContent !== 'center' ? style.lhsBoxInner : ''
110
114
  }, /*#__PURE__*/React.createElement(CheckBox, {
111
115
  checked: checked,
112
116
  a11y: {
@@ -118,7 +122,7 @@ export default class ListItemWithCheckBox extends React.Component {
118
122
  }
119
123
  }))), /*#__PURE__*/React.createElement(Box, {
120
124
  flexible: true,
121
- className: style.leftBox
125
+ className: `${style.leftBox} ${style.selfAlign_center}`
122
126
  }, /*#__PURE__*/React.createElement(Box, {
123
127
  className: style.titleBox
124
128
  }, value ? /*#__PURE__*/React.createElement(Box, {
@@ -131,7 +135,7 @@ export default class ListItemWithCheckBox extends React.Component {
131
135
  }, renderNode(renderValueRightPlaceholderNode)) : null), secondaryValue ? /*#__PURE__*/React.createElement(Box, {
132
136
  "data-title": isDisabled ? null : secondaryValue,
133
137
  className: `${style.secondaryField} ${needMultiLineText ? style.multiLine : style.secondaryValue}`
134
- }, secondaryValue) : null));
138
+ }, secondaryValue) : null)));
135
139
  }
136
140
 
137
141
  }
@@ -95,6 +95,7 @@ export default class ListItemWithIcon extends React.Component {
95
95
  ariaHidden
96
96
  } = listA11y;
97
97
  let dataIdString = dataId ? `${dataId.replace("'", '_')}` : value.toLowerCase().replace("'", '_');
98
+ const iconBoxDataId = dataId ? `${dataId}_Icon` : `${value.toLowerCase().replace("'", '_')}_Icon`;
98
99
  return /*#__PURE__*/React.createElement(ListContainer, _extends({
99
100
  a11y: listA11y,
100
101
  size: size,
@@ -117,14 +118,16 @@ export default class ListItemWithIcon extends React.Component {
117
118
  disableTitle: disableTitle,
118
119
  title: null,
119
120
  customProps: ListItemProps
120
- }, ContainerProps), iconName && /*#__PURE__*/React.createElement(Box, {
121
+ }, ContainerProps), /*#__PURE__*/React.createElement(Box, {
122
+ className: `${style.contentWrapper} ${!iconName && lhsAlignContent !== 'start' ? style[`alignLhsBox_${lhsAlignContent}`] : ''}`
123
+ }, iconName && /*#__PURE__*/React.createElement("div", {
121
124
  "aria-hidden": true,
122
- align: lhsAlignContent,
123
- className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
124
- dataId: dataId ? `${dataId}_Icon` : `${value.toLowerCase().replace("'", '_')}_Icon`
125
+ className: `${style.iconBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
126
+ "data-id": iconBoxDataId,
127
+ "data-test-id": iconBoxDataId
125
128
  }, /*#__PURE__*/React.createElement(Box, {
126
129
  align: lhsAlignContent,
127
- className: lhsAlignContent !== 'center' ? style[`lhsBox_${size}`] : ''
130
+ className: style.iconWrapper
128
131
  }, /*#__PURE__*/React.createElement(Icon, {
129
132
  iconClass: iconClass,
130
133
  name: iconName,
@@ -133,7 +136,7 @@ export default class ListItemWithIcon extends React.Component {
133
136
  className: iconClass
134
137
  }) : null, /*#__PURE__*/React.createElement(Box, {
135
138
  flexible: true,
136
- className: style.leftBox
139
+ className: `${style.leftBox} ${style.selfAlign_center}`
137
140
  }, /*#__PURE__*/React.createElement(Box, {
138
141
  className: style.titleBox
139
142
  }, value ? /*#__PURE__*/React.createElement(Box, {
@@ -155,7 +158,7 @@ export default class ListItemWithIcon extends React.Component {
155
158
  }, /*#__PURE__*/React.createElement(Icon, {
156
159
  name: "ZD-ticknew",
157
160
  size: "8"
158
- })) : null);
161
+ })) : null));
159
162
  }
160
163
 
161
164
  }
@@ -84,6 +84,7 @@ export default class ListItemWithRadio extends React.Component {
84
84
  customRadioWrap = '',
85
85
  customValueRightPlaceholder = ''
86
86
  } = customClass;
87
+ const iconBoxDataId = `${dataId}_radio`;
87
88
  return /*#__PURE__*/React.createElement(ListContainer, _extends({
88
89
  a11y: listA11y,
89
90
  size: size,
@@ -103,12 +104,14 @@ export default class ListItemWithRadio extends React.Component {
103
104
  title: null,
104
105
  customProps: ListItemProps
105
106
  }, ContainerProps), /*#__PURE__*/React.createElement(Box, {
106
- align: lhsAlignContent,
107
- className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
108
- dataId: `${dataId}_radio`
107
+ className: style.contentWrapper
108
+ }, /*#__PURE__*/React.createElement("div", {
109
+ className: `${style.iconBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
110
+ "data-id": iconBoxDataId,
111
+ "data-test-id": iconBoxDataId
109
112
  }, /*#__PURE__*/React.createElement(Box, {
110
113
  align: lhsAlignContent,
111
- className: lhsAlignContent !== 'center' ? style[`lhsBox_${size}`] : ''
114
+ className: lhsAlignContent !== 'center' ? style.lhsBoxInner : ''
112
115
  }, /*#__PURE__*/React.createElement(Radio, {
113
116
  checked: checked,
114
117
  id: id,
@@ -121,7 +124,7 @@ export default class ListItemWithRadio extends React.Component {
121
124
  }
122
125
  }))), /*#__PURE__*/React.createElement(Box, {
123
126
  flexible: true,
124
- className: style.leftBox
127
+ className: `${style.leftBox} ${style.selfAlign_center}`
125
128
  }, /*#__PURE__*/React.createElement(Box, {
126
129
  className: style.titleBox
127
130
  }, value ? /*#__PURE__*/React.createElement(Box, {
@@ -134,7 +137,7 @@ export default class ListItemWithRadio extends React.Component {
134
137
  }, renderNode(renderValueRightPlaceholderNode)) : null), secondaryValue ? /*#__PURE__*/React.createElement(Box, {
135
138
  "data-title": isDisabled ? null : secondaryValue,
136
139
  className: `${style.secondaryField} ${needMultiLineText ? style.multiLine : style.secondaryValue}`
137
- }, secondaryValue) : null));
140
+ }, secondaryValue) : null)));
138
141
  }
139
142
 
140
143
  }
@@ -18,7 +18,7 @@ exports[`ListItem ListItem with renderValueRightPlaceholderNode & it's custom cl
18
18
  data-test-id="boxComponent"
19
19
  >
20
20
  <div
21
- class="titleBox shrinkOff"
21
+ class="titleBox shrinkOff"
22
22
  data-id="boxComponent"
23
23
  data-selector-id="box"
24
24
  data-test-id="boxComponent"
@@ -57,7 +57,7 @@ exports[`ListItem ListItem with renderValueRightPlaceholderNode 1`] = `
57
57
  data-test-id="boxComponent"
58
58
  >
59
59
  <div
60
- class="titleBox shrinkOff"
60
+ class="titleBox shrinkOff"
61
61
  data-id="boxComponent"
62
62
  data-selector-id="box"
63
63
  data-test-id="boxComponent"
@@ -96,7 +96,7 @@ exports[`ListItem Should render with renderBeforeChildren 1`] = `
96
96
  data-test-id="boxComponent"
97
97
  >
98
98
  <div
99
- class="titleBox shrinkOff"
99
+ class="titleBox shrinkOff"
100
100
  data-id="boxComponent"
101
101
  data-selector-id="box"
102
102
  data-test-id="boxComponent"
@@ -143,7 +143,7 @@ exports[`ListItem rendering the defult props 1`] = `
143
143
  data-test-id="boxComponent"
144
144
  >
145
145
  <div
146
- class="titleBox shrinkOff"
146
+ class="titleBox shrinkOff"
147
147
  data-id="boxComponent"
148
148
  data-selector-id="box"
149
149
  data-test-id="boxComponent"