@zohodesk/components 1.0.0-temp-199.15 → 1.0.0-temp-199.16

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.
@@ -70,8 +70,7 @@ export default class ListItem extends React.Component {
70
70
  a11y,
71
71
  customClass,
72
72
  customProps,
73
- needMultiLineText,
74
- lhsBoxAlign
73
+ needMultiLineText
75
74
  } = this.props;
76
75
  let {
77
76
  ListItemProps = {},
@@ -102,7 +101,6 @@ export default class ListItem extends React.Component {
102
101
  needTick: needTick,
103
102
  needBorder: needBorder,
104
103
  customClass: `${needMultiLineText && size == 'large' ? style.largeSizeContainer : ''} ${customListItem}`,
105
- align: lhsBoxAlign,
106
104
  dataId: dataIdString,
107
105
  dataSelectorId: `${dataSelectorId}`,
108
106
  isLink: isLink,
@@ -85,10 +85,6 @@
85
85
  [dir=rtl] .iconBox {
86
86
  margin-left: var(--zd_size10) ;
87
87
  }
88
- .iconBoxTopAlign {
89
- align-self: start;
90
- composes: dflex alignVertical from '../common/common.module.css';
91
- }
92
88
  .iconBox,
93
89
  .leftAvatar {
94
90
  font-size: 0 ;
@@ -96,18 +92,35 @@
96
92
  .leftAvatar {
97
93
  margin: var(--listitem_avatar_margin);
98
94
  }
99
- .smallIconBox,
100
- .mediumIconBox,
101
- .largeIconBox{
95
+
96
+ .lhsAvatarBox,
97
+ .lhsJustifyContent_start,
98
+ .lhsJustifyContent_center,
99
+ .lhsJustifyContent_end {
100
+ composes: dflex alignVertical from '../common/common.module.css';
101
+ }
102
+ .lhsJustifyContent_start {
103
+ composes: justifyFStart from '../common/common.module.css';
104
+ }
105
+ .lhsJustifyContent_center {
106
+ composes: alignHorizontal from '../common/common.module.css';
107
+ }
108
+ .lhsJustifyContent_end {
109
+ composes: justifyFend from '../common/common.module.css';
110
+ }
111
+
112
+ .lhsBox_small,
113
+ .lhsBox_medium,
114
+ .lhsBox_large{
102
115
  height: 1em ;
103
116
  }
104
- .smallIconBox {
117
+ .lhsBox_small {
105
118
  font-size: var(--zd_font_size20) ;
106
119
  }
107
- .mediumIconBox {
120
+ .lhsBox_medium {
108
121
  font-size: var(--zd_font_size21) ;
109
122
  }
110
- .largeIconBox {
123
+ .lhsBox_large {
111
124
  font-size: var(--zd_font_size28) ;
112
125
  }
113
126
  .defaultHover, .primaryHover, .secondaryHover, .darkHover {
@@ -75,7 +75,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
75
75
  customClass,
76
76
  customProps,
77
77
  needMultiLineText,
78
- lhsBoxAlign
78
+ lhsAlignContent
79
79
  } = this.props;
80
80
  let {
81
81
  ListItemProps = {},
@@ -98,11 +98,6 @@ export default class ListItemWithAvatar extends React.PureComponent {
98
98
  } = listA11y;
99
99
  let isDarkPalette = palette === 'dark';
100
100
  let dataIdString = value ? value : dataId;
101
- const sizeClassMap = {
102
- small: style.smallIconBox,
103
- medium: style.mediumIconBox,
104
- large: style.largeIconBox
105
- };
106
101
  return /*#__PURE__*/React.createElement(ListContainer, {
107
102
  a11y: listA11y,
108
103
  size: size,
@@ -124,7 +119,8 @@ export default class ListItemWithAvatar extends React.PureComponent {
124
119
  customProps: ListItemProps,
125
120
  ...ContainerProps
126
121
  }, name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
127
- className: ` ${lhsBoxAlign == 'baseline' ? `${style.iconBoxTopAlign} ${sizeClassMap[size]}` : ''} ${style.leftAvatar}`
122
+ align: lhsAlignContent,
123
+ className: `${style.leftAvatar} ${lhsAlignContent !== 'center' ? `${style.lhsAvatarBox} ${style[`lhsBox_${size}`]}` : ''}`
128
124
  }, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
129
125
  name: name,
130
126
  size: "small",
@@ -60,7 +60,8 @@ export default class ListItemWithCheckBox extends React.Component {
60
60
  customClass,
61
61
  customProps,
62
62
  needMultiLineText,
63
- lhsBoxAlign
63
+ lhsAlignContent,
64
+ lhsJustifyContent
64
65
  } = this.props;
65
66
  const listA11y = {
66
67
  role: 'option',
@@ -75,11 +76,6 @@ export default class ListItemWithCheckBox extends React.Component {
75
76
  customCheckBox = '',
76
77
  customLabel = ''
77
78
  } = customClass;
78
- const sizeClassMap = {
79
- small: style.smallIconBox,
80
- medium: style.mediumIconBox,
81
- large: style.largeIconBox
82
- };
83
79
  return /*#__PURE__*/React.createElement(ListContainer, {
84
80
  a11y: listA11y,
85
81
  size: size,
@@ -99,7 +95,8 @@ export default class ListItemWithCheckBox extends React.Component {
99
95
  customProps: ListItemProps,
100
96
  ...ContainerProps
101
97
  }, /*#__PURE__*/React.createElement(Box, {
102
- className: `${style.iconBox} ${lhsBoxAlign == 'baseline' ? `${style.iconBoxTopAlign} ${sizeClassMap[size]}` : ''}`,
98
+ align: lhsAlignContent,
99
+ className: `${style.iconBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]} ${lhsAlignContent !== 'center' ? style[`lhsBox_${size}`] : ''}`,
103
100
  dataId: `${dataId ? dataId : value}_checkBox`
104
101
  }, /*#__PURE__*/React.createElement(CheckBox, {
105
102
  checked: checked,
@@ -71,7 +71,8 @@ export default class ListItemWithIcon extends React.Component {
71
71
  customClass,
72
72
  customProps,
73
73
  needMultiLineText,
74
- lhsBoxAlign
74
+ lhsAlignContent,
75
+ lhsJustifyContent
75
76
  } = this.props;
76
77
  let {
77
78
  ListItemProps = {},
@@ -86,11 +87,6 @@ export default class ListItemWithIcon extends React.Component {
86
87
  ariaHidden
87
88
  } = listA11y;
88
89
  let dataIdString = dataId ? `${dataId.replace("'", '_')}` : value.toLowerCase().replace("'", '_');
89
- const sizeClassMap = {
90
- small: style.smallIconBox,
91
- medium: style.mediumIconBox,
92
- large: style.largeIconBox
93
- };
94
90
  return /*#__PURE__*/React.createElement(ListContainer, {
95
91
  a11y: listA11y,
96
92
  size: size,
@@ -117,7 +113,8 @@ export default class ListItemWithIcon extends React.Component {
117
113
  ...ContainerProps
118
114
  }, iconName && /*#__PURE__*/React.createElement(Box, {
119
115
  "aria-hidden": true,
120
- className: `${style.iconBox} ${lhsBoxAlign == 'baseline' ? `${style.iconBoxTopAlign} ${sizeClassMap[size]}` : ''}`,
116
+ align: lhsAlignContent,
117
+ className: `${style.iconBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]} ${lhsAlignContent !== 'center' ? style[`lhsBox_${size}`] : ''}`,
121
118
  dataId: dataId ? `${dataId}_Icon` : `${value.toLowerCase().replace("'", '_')}_Icon`
122
119
  }, /*#__PURE__*/React.createElement(Icon, {
123
120
  iconClass: iconClass,
@@ -61,7 +61,8 @@ export default class ListItemWithRadio extends React.Component {
61
61
  customClass,
62
62
  customProps,
63
63
  needMultiLineText,
64
- lhsBoxAlign
64
+ lhsAlignContent,
65
+ lhsJustifyContent
65
66
  } = this.props;
66
67
  let {
67
68
  ListItemProps = {},
@@ -76,11 +77,6 @@ export default class ListItemWithRadio extends React.Component {
76
77
  customRadio = '',
77
78
  customRadioWrap = ''
78
79
  } = customClass;
79
- const sizeClassMap = {
80
- small: style.smallIconBox,
81
- medium: style.mediumIconBox,
82
- large: style.largeIconBox
83
- };
84
80
  return /*#__PURE__*/React.createElement(ListContainer, {
85
81
  a11y: listA11y,
86
82
  size: size,
@@ -100,7 +96,8 @@ export default class ListItemWithRadio extends React.Component {
100
96
  customProps: ListItemProps,
101
97
  ...ContainerProps
102
98
  }, /*#__PURE__*/React.createElement(Box, {
103
- className: `${style.iconBox} ${lhsBoxAlign == 'baseline' ? `${style.iconBoxTopAlign} ${sizeClassMap[size]}` : ''}`,
99
+ align: lhsAlignContent,
100
+ className: `${style.iconBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]} ${lhsAlignContent !== 'center' ? style[`lhsBox_${size}`] : ''}`,
104
101
  dataId: `${dataId}_radio`
105
102
  }, /*#__PURE__*/React.createElement(Radio, {
106
103
  checked: checked,
@@ -30,8 +30,7 @@ export const ListItemDefaultProps = {
30
30
  customClass: {},
31
31
  customProps: {},
32
32
  dataSelectorId: 'listItem',
33
- needMultiLineText: false,
34
- lhsBoxAlign: 'baseline'
33
+ needMultiLineText: false
35
34
  };
36
35
  export const ListItemWithAvatarDefaultProps = {
37
36
  active: false,
@@ -50,7 +49,7 @@ export const ListItemWithAvatarDefaultProps = {
50
49
  customProps: {},
51
50
  dataSelectorId: 'listItemWithAvatar',
52
51
  needMultiLineText: false,
53
- lhsBoxAlign: 'baseline'
52
+ lhsAlignContent: 'start'
54
53
  };
55
54
  export const ListItemWithCheckBoxDefaultProps = {
56
55
  active: false,
@@ -65,7 +64,8 @@ export const ListItemWithCheckBoxDefaultProps = {
65
64
  customProps: {},
66
65
  dataSelectorId: 'listItemWithCheckBox',
67
66
  needMultiLineText: false,
68
- lhsBoxAlign: 'baseline'
67
+ lhsAlignContent: 'start',
68
+ lhsJustifyContent: 'center'
69
69
  };
70
70
  export const ListItemWithIconDefaultProps = {
71
71
  active: false,
@@ -83,7 +83,8 @@ export const ListItemWithIconDefaultProps = {
83
83
  customProps: {},
84
84
  dataSelectorId: 'listItemWithIcon',
85
85
  needMultiLineText: false,
86
- lhsBoxAlign: 'baseline'
86
+ lhsAlignContent: 'start',
87
+ lhsJustifyContent: 'center'
87
88
  };
88
89
  export const ListItemWithRadioDefaultProps = {
89
90
  active: false,
@@ -99,5 +100,6 @@ export const ListItemWithRadioDefaultProps = {
99
100
  customProps: {},
100
101
  dataSelectorId: 'listItemWithRadio',
101
102
  needMultiLineText: false,
102
- lhsBoxAlign: 'baseline'
103
+ lhsAlignContent: 'start',
104
+ lhsJustifyContent: 'center'
103
105
  };
@@ -58,7 +58,6 @@ export const ListItem_Props = {
58
58
  ariaSelected: PropTypes.bool
59
59
  }),
60
60
  needMultiLineText: PropTypes.bool,
61
- lhsBoxAlign: PropTypes.oneOf(['baseline', 'vertical']),
62
61
  customClass: PropTypes.shape({
63
62
  customListItem: PropTypes.string,
64
63
  customTickIcon: PropTypes.string
@@ -104,7 +103,7 @@ export const ListItemWithAvatar_Props = {
104
103
  customAvatarTeam: PropTypes.string
105
104
  }),
106
105
  needMultiLineText: PropTypes.bool,
107
- lhsBoxAlign: PropTypes.oneOf(['baseline', 'vertical']),
106
+ lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end']),
108
107
  customProps: PropTypes.shape({
109
108
  ListItemProps: PropTypes.object,
110
109
  ContainerProps: PropTypes.object,
@@ -135,7 +134,8 @@ export const ListItemWithCheckBox_Props = {
135
134
  ariaSelected: PropTypes.bool
136
135
  }),
137
136
  needMultiLineText: PropTypes.bool,
138
- lhsBoxAlign: PropTypes.oneOf(['baseline', 'vertical']),
137
+ lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end']),
138
+ lhsJustifyContent: PropTypes.oneOf(['start', 'center', 'end']),
139
139
  customClass: PropTypes.shape({
140
140
  customListItem: PropTypes.string,
141
141
  customCheckBox: PropTypes.string,
@@ -171,7 +171,8 @@ export const ListItemWithIcon_Props = {
171
171
  ariaHidden: PropTypes.bool
172
172
  }),
173
173
  needMultiLineText: PropTypes.bool,
174
- lhsBoxAlign: PropTypes.oneOf(['baseline', 'vertical']),
174
+ lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end']),
175
+ lhsJustifyContent: PropTypes.oneOf(['start', 'center', 'end']),
175
176
  customClass: PropTypes.string,
176
177
  customProps: PropTypes.shape({
177
178
  ListItemProps: PropTypes.object
@@ -203,7 +204,8 @@ export const ListItemWithRadio_Props = {
203
204
  ariaSelected: PropTypes.bool
204
205
  }),
205
206
  needMultiLineText: PropTypes.bool,
206
- lhsBoxAlign: PropTypes.oneOf(['baseline', 'vertical']),
207
+ lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end']),
208
+ lhsJustifyContent: PropTypes.oneOf(['start', 'center', 'end']),
207
209
  customClass: PropTypes.shape({
208
210
  customListItem: PropTypes.string,
209
211
  customRadio: PropTypes.string,
@@ -350,7 +350,8 @@ class SelectWithIcon extends Component {
350
350
  htmlId,
351
351
  isLoading,
352
352
  dataSelectorId,
353
- customProps
353
+ customProps,
354
+ customClass
354
355
  } = this.props;
355
356
  i18nKeys = Object.assign({}, i18nKeys, {
356
357
  emptyText: i18nKeys.emptyText || emptyMessage,
@@ -370,6 +371,9 @@ class SelectWithIcon extends Component {
370
371
  TextBoxIconProps = {},
371
372
  ListItemProps = {}
372
373
  } = customProps;
374
+ const {
375
+ dropBoxClass = ''
376
+ } = customClass;
373
377
  return /*#__PURE__*/React.createElement("div", {
374
378
  className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}`,
375
379
  "data-title": isDisabled ? title : null,
@@ -466,7 +470,10 @@ class SelectWithIcon extends Component {
466
470
  size: boxSize,
467
471
  isPadding: false,
468
472
  isResponsivePadding: true,
469
- alignBox: "row"
473
+ alignBox: "row",
474
+ customClass: {
475
+ customDropBox: dropBoxClass
476
+ }
470
477
  }, isLoading ? /*#__PURE__*/React.createElement(Container, {
471
478
  align: "both",
472
479
  className: style.loader
@@ -127,5 +127,6 @@ export const SelectWithIcon_defaultProps = {
127
127
  isLoading: false,
128
128
  isAbsolutePositioningNeeded: true,
129
129
  isRestrictScroll: false,
130
- customProps: {}
130
+ customProps: {},
131
+ customClass: {}
131
132
  };
@@ -309,5 +309,8 @@ export const SelectWithIcon_propTypes = {
309
309
  DropdownSearchTextBoxProps: PropTypes.object,
310
310
  TextBoxIconProps: PropTypes.object,
311
311
  ListItemProps: PropTypes.object
312
+ }),
313
+ customClass: PropTypes.shape({
314
+ dropBoxClass: PropTypes.string
312
315
  })
313
316
  };
@@ -260,6 +260,12 @@
260
260
  justify-content: space-between;
261
261
  }
262
262
 
263
+ .justifyFStart {
264
+ -webkit-box-pack: flex-start;
265
+ -ms-flex-pack: flex-start;
266
+ justify-content: flex-start;
267
+ }
268
+
263
269
  .justifyFend {
264
270
  -webkit-box-pack: flex-end;
265
271
  -ms-flex-pack: flex-end;
@@ -122,8 +122,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
122
122
  a11y = _this$props4.a11y,
123
123
  customClass = _this$props4.customClass,
124
124
  customProps = _this$props4.customProps,
125
- needMultiLineText = _this$props4.needMultiLineText,
126
- lhsBoxAlign = _this$props4.lhsBoxAlign;
125
+ needMultiLineText = _this$props4.needMultiLineText;
127
126
  var _customProps$ListItem = customProps.ListItemProps,
128
127
  ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
129
128
  _customProps$Containe = customProps.ContainerProps,
@@ -152,7 +151,6 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
152
151
  needTick: needTick,
153
152
  needBorder: needBorder,
154
153
  customClass: "".concat(needMultiLineText && size == 'large' ? _ListItemModule["default"].largeSizeContainer : '', " ").concat(customListItem),
155
- align: lhsBoxAlign,
156
154
  dataId: dataIdString,
157
155
  dataSelectorId: "".concat(dataSelectorId),
158
156
  isLink: isLink,
@@ -85,10 +85,6 @@
85
85
  [dir=rtl] .iconBox {
86
86
  margin-left: var(--zd_size10) ;
87
87
  }
88
- .iconBoxTopAlign {
89
- align-self: start;
90
- composes: dflex alignVertical from '../common/common.module.css';
91
- }
92
88
  .iconBox,
93
89
  .leftAvatar {
94
90
  font-size: 0 ;
@@ -96,18 +92,35 @@
96
92
  .leftAvatar {
97
93
  margin: var(--listitem_avatar_margin);
98
94
  }
99
- .smallIconBox,
100
- .mediumIconBox,
101
- .largeIconBox{
95
+
96
+ .lhsAvatarBox,
97
+ .lhsJustifyContent_start,
98
+ .lhsJustifyContent_center,
99
+ .lhsJustifyContent_end {
100
+ composes: dflex alignVertical from '../common/common.module.css';
101
+ }
102
+ .lhsJustifyContent_start {
103
+ composes: justifyFStart from '../common/common.module.css';
104
+ }
105
+ .lhsJustifyContent_center {
106
+ composes: alignHorizontal from '../common/common.module.css';
107
+ }
108
+ .lhsJustifyContent_end {
109
+ composes: justifyFend from '../common/common.module.css';
110
+ }
111
+
112
+ .lhsBox_small,
113
+ .lhsBox_medium,
114
+ .lhsBox_large{
102
115
  height: 1em ;
103
116
  }
104
- .smallIconBox {
117
+ .lhsBox_small {
105
118
  font-size: var(--zd_font_size20) ;
106
119
  }
107
- .mediumIconBox {
120
+ .lhsBox_medium {
108
121
  font-size: var(--zd_font_size21) ;
109
122
  }
110
- .largeIconBox {
123
+ .lhsBox_large {
111
124
  font-size: var(--zd_font_size28) ;
112
125
  }
113
126
  .defaultHover, .primaryHover, .secondaryHover, .darkHover {
@@ -129,7 +129,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
129
129
  customClass = _this$props4.customClass,
130
130
  customProps = _this$props4.customProps,
131
131
  needMultiLineText = _this$props4.needMultiLineText,
132
- lhsBoxAlign = _this$props4.lhsBoxAlign;
132
+ lhsAlignContent = _this$props4.lhsAlignContent;
133
133
  var _customProps$ListItem = customProps.ListItemProps,
134
134
  ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
135
135
  _customProps$Containe = customProps.ContainerProps,
@@ -153,11 +153,6 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
153
153
  var ariaHidden = listA11y.ariaHidden;
154
154
  var isDarkPalette = palette === 'dark';
155
155
  var dataIdString = value ? value : dataId;
156
- var sizeClassMap = {
157
- small: _ListItemModule["default"].smallIconBox,
158
- medium: _ListItemModule["default"].mediumIconBox,
159
- large: _ListItemModule["default"].largeIconBox
160
- };
161
156
  return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
162
157
  a11y: listA11y,
163
158
  size: size,
@@ -178,7 +173,8 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
178
173
  title: null,
179
174
  customProps: ListItemProps
180
175
  }, ContainerProps), name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
181
- className: " ".concat(lhsBoxAlign == 'baseline' ? "".concat(_ListItemModule["default"].iconBoxTopAlign, " ").concat(sizeClassMap[size]) : '', " ").concat(_ListItemModule["default"].leftAvatar)
176
+ align: lhsAlignContent,
177
+ className: "".concat(_ListItemModule["default"].leftAvatar, " ").concat(lhsAlignContent !== 'center' ? "".concat(_ListItemModule["default"].lhsAvatarBox, " ").concat(_ListItemModule["default"]["lhsBox_".concat(size)]) : '')
182
178
  }, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"], _extends({
183
179
  name: name,
184
180
  size: "small",
@@ -117,7 +117,8 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
117
117
  customClass = _this$props4.customClass,
118
118
  customProps = _this$props4.customProps,
119
119
  needMultiLineText = _this$props4.needMultiLineText,
120
- lhsBoxAlign = _this$props4.lhsBoxAlign;
120
+ lhsAlignContent = _this$props4.lhsAlignContent,
121
+ lhsJustifyContent = _this$props4.lhsJustifyContent;
121
122
 
122
123
  var listA11y = _objectSpread({
123
124
  role: 'option'
@@ -133,11 +134,6 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
133
134
  customCheckBox = _customClass$customCh === void 0 ? '' : _customClass$customCh,
134
135
  _customClass$customLa = customClass.customLabel,
135
136
  customLabel = _customClass$customLa === void 0 ? '' : _customClass$customLa;
136
- var sizeClassMap = {
137
- small: _ListItemModule["default"].smallIconBox,
138
- medium: _ListItemModule["default"].mediumIconBox,
139
- large: _ListItemModule["default"].largeIconBox
140
- };
141
137
  return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
142
138
  a11y: listA11y,
143
139
  size: size,
@@ -156,7 +152,8 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
156
152
  title: null,
157
153
  customProps: ListItemProps
158
154
  }, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
159
- className: "".concat(_ListItemModule["default"].iconBox, " ").concat(lhsBoxAlign == 'baseline' ? "".concat(_ListItemModule["default"].iconBoxTopAlign, " ").concat(sizeClassMap[size]) : ''),
155
+ align: lhsAlignContent,
156
+ className: "".concat(_ListItemModule["default"].iconBox, " ").concat(_ListItemModule["default"]["lhsJustifyContent_".concat(lhsJustifyContent)], " ").concat(lhsAlignContent !== 'center' ? _ListItemModule["default"]["lhsBox_".concat(size)] : ''),
160
157
  dataId: "".concat(dataId ? dataId : value, "_checkBox")
161
158
  }, /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
162
159
  checked: checked,
@@ -125,7 +125,8 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
125
125
  customClass = _this$props4.customClass,
126
126
  customProps = _this$props4.customProps,
127
127
  needMultiLineText = _this$props4.needMultiLineText,
128
- lhsBoxAlign = _this$props4.lhsBoxAlign;
128
+ lhsAlignContent = _this$props4.lhsAlignContent,
129
+ lhsJustifyContent = _this$props4.lhsJustifyContent;
129
130
  var _customProps$ListItem = customProps.ListItemProps,
130
131
  ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
131
132
  _customProps$Containe = customProps.ContainerProps,
@@ -138,11 +139,6 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
138
139
 
139
140
  var ariaHidden = listA11y.ariaHidden;
140
141
  var dataIdString = dataId ? "".concat(dataId.replace("'", '_')) : value.toLowerCase().replace("'", '_');
141
- var sizeClassMap = {
142
- small: _ListItemModule["default"].smallIconBox,
143
- medium: _ListItemModule["default"].mediumIconBox,
144
- large: _ListItemModule["default"].largeIconBox
145
- };
146
142
  return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
147
143
  a11y: listA11y,
148
144
  size: size,
@@ -168,7 +164,8 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
168
164
  customProps: ListItemProps
169
165
  }, ContainerProps), iconName && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
170
166
  "aria-hidden": true,
171
- className: "".concat(_ListItemModule["default"].iconBox, " ").concat(lhsBoxAlign == 'baseline' ? "".concat(_ListItemModule["default"].iconBoxTopAlign, " ").concat(sizeClassMap[size]) : ''),
167
+ align: lhsAlignContent,
168
+ className: "".concat(_ListItemModule["default"].iconBox, " ").concat(_ListItemModule["default"]["lhsJustifyContent_".concat(lhsJustifyContent)], " ").concat(lhsAlignContent !== 'center' ? _ListItemModule["default"]["lhsBox_".concat(size)] : ''),
172
169
  dataId: dataId ? "".concat(dataId, "_Icon") : "".concat(value.toLowerCase().replace("'", '_'), "_Icon")
173
170
  }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
174
171
  iconClass: iconClass,
@@ -118,7 +118,8 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
118
118
  customClass = _this$props4.customClass,
119
119
  customProps = _this$props4.customProps,
120
120
  needMultiLineText = _this$props4.needMultiLineText,
121
- lhsBoxAlign = _this$props4.lhsBoxAlign;
121
+ lhsAlignContent = _this$props4.lhsAlignContent,
122
+ lhsJustifyContent = _this$props4.lhsJustifyContent;
122
123
  var _customProps$ListItem = customProps.ListItemProps,
123
124
  ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
124
125
  _customProps$Containe = customProps.ContainerProps,
@@ -134,11 +135,6 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
134
135
  customRadio = _customClass$customRa === void 0 ? '' : _customClass$customRa,
135
136
  _customClass$customRa2 = customClass.customRadioWrap,
136
137
  customRadioWrap = _customClass$customRa2 === void 0 ? '' : _customClass$customRa2;
137
- var sizeClassMap = {
138
- small: _ListItemModule["default"].smallIconBox,
139
- medium: _ListItemModule["default"].mediumIconBox,
140
- large: _ListItemModule["default"].largeIconBox
141
- };
142
138
  return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
143
139
  a11y: listA11y,
144
140
  size: size,
@@ -157,7 +153,8 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
157
153
  title: null,
158
154
  customProps: ListItemProps
159
155
  }, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
160
- className: "".concat(_ListItemModule["default"].iconBox, " ").concat(lhsBoxAlign == 'baseline' ? "".concat(_ListItemModule["default"].iconBoxTopAlign, " ").concat(sizeClassMap[size]) : ''),
156
+ align: lhsAlignContent,
157
+ className: "".concat(_ListItemModule["default"].iconBox, " ").concat(_ListItemModule["default"]["lhsJustifyContent_".concat(lhsJustifyContent)], " ").concat(lhsAlignContent !== 'center' ? _ListItemModule["default"]["lhsBox_".concat(size)] : ''),
161
158
  dataId: "".concat(dataId, "_radio")
162
159
  }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
163
160
  checked: checked,
@@ -37,8 +37,7 @@ var ListItemDefaultProps = {
37
37
  customClass: {},
38
38
  customProps: {},
39
39
  dataSelectorId: 'listItem',
40
- needMultiLineText: false,
41
- lhsBoxAlign: 'baseline'
40
+ needMultiLineText: false
42
41
  };
43
42
  exports.ListItemDefaultProps = ListItemDefaultProps;
44
43
  var ListItemWithAvatarDefaultProps = {
@@ -58,7 +57,7 @@ var ListItemWithAvatarDefaultProps = {
58
57
  customProps: {},
59
58
  dataSelectorId: 'listItemWithAvatar',
60
59
  needMultiLineText: false,
61
- lhsBoxAlign: 'baseline'
60
+ lhsAlignContent: 'start'
62
61
  };
63
62
  exports.ListItemWithAvatarDefaultProps = ListItemWithAvatarDefaultProps;
64
63
  var ListItemWithCheckBoxDefaultProps = {
@@ -74,7 +73,8 @@ var ListItemWithCheckBoxDefaultProps = {
74
73
  customProps: {},
75
74
  dataSelectorId: 'listItemWithCheckBox',
76
75
  needMultiLineText: false,
77
- lhsBoxAlign: 'baseline'
76
+ lhsAlignContent: 'start',
77
+ lhsJustifyContent: 'center'
78
78
  };
79
79
  exports.ListItemWithCheckBoxDefaultProps = ListItemWithCheckBoxDefaultProps;
80
80
  var ListItemWithIconDefaultProps = {
@@ -93,7 +93,8 @@ var ListItemWithIconDefaultProps = {
93
93
  customProps: {},
94
94
  dataSelectorId: 'listItemWithIcon',
95
95
  needMultiLineText: false,
96
- lhsBoxAlign: 'baseline'
96
+ lhsAlignContent: 'start',
97
+ lhsJustifyContent: 'center'
97
98
  };
98
99
  exports.ListItemWithIconDefaultProps = ListItemWithIconDefaultProps;
99
100
  var ListItemWithRadioDefaultProps = {
@@ -110,6 +111,7 @@ var ListItemWithRadioDefaultProps = {
110
111
  customProps: {},
111
112
  dataSelectorId: 'listItemWithRadio',
112
113
  needMultiLineText: false,
113
- lhsBoxAlign: 'baseline'
114
+ lhsAlignContent: 'start',
115
+ lhsJustifyContent: 'center'
114
116
  };
115
117
  exports.ListItemWithRadioDefaultProps = ListItemWithRadioDefaultProps;
@@ -75,7 +75,6 @@ var ListItem_Props = {
75
75
  ariaSelected: _propTypes["default"].bool
76
76
  }),
77
77
  needMultiLineText: _propTypes["default"].bool,
78
- lhsBoxAlign: _propTypes["default"].oneOf(['baseline', 'vertical']),
79
78
  customClass: _propTypes["default"].shape({
80
79
  customListItem: _propTypes["default"].string,
81
80
  customTickIcon: _propTypes["default"].string
@@ -97,7 +96,7 @@ var ListItemWithAvatar_Props = (_ListItemWithAvatar_P = {
97
96
  customListItem: _propTypes["default"].string,
98
97
  customAvatar: _propTypes["default"].string,
99
98
  customAvatarTeam: _propTypes["default"].string
100
- })), _defineProperty(_ListItemWithAvatar_P, "needMultiLineText", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "lhsBoxAlign", _propTypes["default"].oneOf(['baseline', 'vertical'])), _defineProperty(_ListItemWithAvatar_P, "customProps", _propTypes["default"].shape({
99
+ })), _defineProperty(_ListItemWithAvatar_P, "needMultiLineText", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "lhsAlignContent", _propTypes["default"].oneOf(['start', 'center', 'end'])), _defineProperty(_ListItemWithAvatar_P, "customProps", _propTypes["default"].shape({
101
100
  ListItemProps: _propTypes["default"].object,
102
101
  ContainerProps: _propTypes["default"].object,
103
102
  AvatarTeamProps: _propTypes["default"].exact(_propTypes3.propTypes),
@@ -127,7 +126,8 @@ var ListItemWithCheckBox_Props = {
127
126
  ariaSelected: _propTypes["default"].bool
128
127
  }),
129
128
  needMultiLineText: _propTypes["default"].bool,
130
- lhsBoxAlign: _propTypes["default"].oneOf(['baseline', 'vertical']),
129
+ lhsAlignContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
130
+ lhsJustifyContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
131
131
  customClass: _propTypes["default"].shape({
132
132
  customListItem: _propTypes["default"].string,
133
133
  customCheckBox: _propTypes["default"].string,
@@ -164,7 +164,8 @@ var ListItemWithIcon_Props = {
164
164
  ariaHidden: _propTypes["default"].bool
165
165
  }),
166
166
  needMultiLineText: _propTypes["default"].bool,
167
- lhsBoxAlign: _propTypes["default"].oneOf(['baseline', 'vertical']),
167
+ lhsAlignContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
168
+ lhsJustifyContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
168
169
  customClass: _propTypes["default"].string,
169
170
  customProps: _propTypes["default"].shape({
170
171
  ListItemProps: _propTypes["default"].object
@@ -197,7 +198,8 @@ var ListItemWithRadio_Props = {
197
198
  ariaSelected: _propTypes["default"].bool
198
199
  }),
199
200
  needMultiLineText: _propTypes["default"].bool,
200
- lhsBoxAlign: _propTypes["default"].oneOf(['baseline', 'vertical']),
201
+ lhsAlignContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
202
+ lhsJustifyContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
201
203
  customClass: _propTypes["default"].shape({
202
204
  customListItem: _propTypes["default"].string,
203
205
  customRadio: _propTypes["default"].string,