@zohodesk/components 1.0.0-temp-217.5 → 1.0.0-temp-199.9

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 (87) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +9 -0
  3. package/es/DropBox/DropBoxElement/DropBoxElement.js +3 -1
  4. package/es/DropBox/DropBoxElement/__tests__/__snapshots__/DropBoxElement.spec.js.snap +4 -2
  5. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +56 -53
  6. package/es/DropBox/DropBoxElement/css/cssJSLogic.js +4 -4
  7. package/es/DropBox/__tests__/__snapshots__/DropBox.spec.js.snap +4 -2
  8. package/es/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +3 -1
  9. package/es/ListItem/ListItem.js +2 -2
  10. package/es/ListItem/ListItem.module.css +15 -2
  11. package/es/ListItem/ListItemWithAvatar.js +3 -3
  12. package/es/ListItem/ListItemWithIcon.js +2 -2
  13. package/es/MultiSelect/AdvancedGroupMultiSelect.js +7 -2
  14. package/es/MultiSelect/MultiSelect.js +7 -2
  15. package/es/MultiSelect/Suggestions.js +14 -5
  16. package/es/MultiSelect/props/defaultProps.js +9 -4
  17. package/es/MultiSelect/props/propTypes.js +9 -3
  18. package/es/Popup/Popup.js +232 -83
  19. package/es/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +4 -2
  20. package/es/Select/GroupSelect.js +5 -1
  21. package/es/Select/SelectWithAvatar.js +7 -2
  22. package/es/Select/SelectWithIcon.js +4 -2
  23. package/es/Select/props/defaultProps.js +2 -1
  24. package/es/Select/props/propTypes.js +4 -2
  25. package/es/common/common.module.css +5 -0
  26. package/es/utils/Common.js +2 -1
  27. package/es/v1/ListItem/ListItem.js +1 -1
  28. package/es/v1/MultiSelect/AdvancedMultiSelect.js +2 -1
  29. package/es/v1/MultiSelect/MultiSelect.js +7 -2
  30. package/es/v1/MultiSelect/Suggestions.js +8 -4
  31. package/es/v1/MultiSelect/props/defaultProps.js +4 -2
  32. package/es/v1/MultiSelect/props/propTypes.js +6 -2
  33. package/es/v1/Select/GroupSelect.js +7 -2
  34. package/es/v1/Select/SelectWithAvatar.js +7 -2
  35. package/es/v1/Select/props/defaultProps.js +4 -2
  36. package/es/v1/Select/props/propTypes.js +6 -2
  37. package/lib/DropBox/DropBoxElement/DropBoxElement.js +3 -1
  38. package/lib/DropBox/DropBoxElement/__tests__/__snapshots__/DropBoxElement.spec.js.snap +4 -2
  39. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +56 -53
  40. package/lib/DropBox/DropBoxElement/css/cssJSLogic.js +2 -2
  41. package/lib/DropBox/__tests__/__snapshots__/DropBox.spec.js.snap +4 -2
  42. package/lib/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +3 -1
  43. package/lib/ListItem/ListItem.js +2 -2
  44. package/lib/ListItem/ListItem.module.css +15 -2
  45. package/lib/ListItem/ListItemWithAvatar.js +3 -3
  46. package/lib/ListItem/ListItemWithIcon.js +2 -2
  47. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
  48. package/lib/MultiSelect/MultiSelect.js +6 -3
  49. package/lib/MultiSelect/Suggestions.js +12 -5
  50. package/lib/MultiSelect/props/defaultProps.js +9 -4
  51. package/lib/MultiSelect/props/propTypes.js +8 -3
  52. package/lib/Popup/Popup.js +282 -114
  53. package/lib/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +4 -2
  54. package/lib/Select/GroupSelect.js +4 -2
  55. package/lib/Select/SelectWithAvatar.js +8 -3
  56. package/lib/Select/SelectWithIcon.js +5 -3
  57. package/lib/Select/props/defaultProps.js +2 -1
  58. package/lib/Select/props/propTypes.js +4 -2
  59. package/lib/common/common.module.css +5 -0
  60. package/lib/utils/Common.js +5 -1
  61. package/lib/v1/ListItem/ListItem.js +1 -1
  62. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +3 -1
  63. package/lib/v1/MultiSelect/MultiSelect.js +8 -3
  64. package/lib/v1/MultiSelect/Suggestions.js +8 -4
  65. package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
  66. package/lib/v1/MultiSelect/props/propTypes.js +6 -2
  67. package/lib/v1/Select/GroupSelect.js +8 -3
  68. package/lib/v1/Select/SelectWithAvatar.js +8 -3
  69. package/lib/v1/Select/props/defaultProps.js +4 -2
  70. package/lib/v1/Select/props/propTypes.js +6 -2
  71. package/package.json +2 -2
  72. package/result.json +1 -1
  73. package/assets/Appearance/dark/mode/Component_v2_DarkMode.module.css +0 -10
  74. package/assets/Appearance/light/mode/Component_v2_LightMode.module.css +0 -10
  75. package/assets/Appearance/pureDark/mode/Component_v2_PureDarkMode.module.css +0 -10
  76. package/es/components-v2/Switch/Switch.js +0 -124
  77. package/es/components-v2/Switch/contants/index.js +0 -10
  78. package/es/components-v2/Switch/css/Switch_v2.module.css +0 -121
  79. package/es/components-v2/Switch/css/cssJSLogic.js +0 -45
  80. package/es/components-v2/Switch/props/defaultProps.js +0 -19
  81. package/es/components-v2/Switch/props/propTypes.js +0 -27
  82. package/lib/components-v2/Switch/Switch.js +0 -138
  83. package/lib/components-v2/Switch/contants/index.js +0 -18
  84. package/lib/components-v2/Switch/css/Switch_v2.module.css +0 -121
  85. package/lib/components-v2/Switch/css/cssJSLogic.js +0 -36
  86. package/lib/components-v2/Switch/props/defaultProps.js +0 -26
  87. package/lib/components-v2/Switch/props/propTypes.js +0 -38
@@ -549,7 +549,8 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
549
549
  role: 'option'
550
550
  },
551
551
  dataId: `${dataIdMultiSelectComp}_Options`,
552
- ...SuggestionsProps
552
+ ...SuggestionsProps,
553
+ needMultiLineText: true
553
554
  }) : /*#__PURE__*/React.createElement(EmptyState, {
554
555
  isLoading: isFetchingOptions,
555
556
  options: options,
@@ -1002,8 +1002,12 @@ export class MultiSelectComponent extends React.Component {
1002
1002
  boxSize,
1003
1003
  isLoading,
1004
1004
  selectAllText,
1005
- needSelectAll
1005
+ needSelectAll,
1006
+ customProps
1006
1007
  } = this.props;
1008
+ const {
1009
+ suggestionsProps = {}
1010
+ } = customProps;
1007
1011
  const {
1008
1012
  selectedOptions,
1009
1013
  searchStr,
@@ -1093,7 +1097,8 @@ export class MultiSelectComponent extends React.Component {
1093
1097
  selectedOptions: selectedOptionIds,
1094
1098
  a11y: {
1095
1099
  role: 'option'
1096
- }
1100
+ },
1101
+ ...suggestionsProps
1097
1102
  }) : /*#__PURE__*/React.createElement(EmptyState, {
1098
1103
  isLoading: isFetchingOptions,
1099
1104
  options: options,
@@ -27,7 +27,8 @@ export default class Suggestions extends React.PureComponent {
27
27
  avatarPalette,
28
28
  palette,
29
29
  htmlId,
30
- a11y
30
+ a11y,
31
+ needMultiLineText
31
32
  } = this.props;
32
33
  const {
33
34
  ariaParentRole,
@@ -92,7 +93,8 @@ export default class Suggestions extends React.PureComponent {
92
93
  size: listItemSize,
93
94
  avatarPalette: avatarPalette,
94
95
  palette: palette,
95
- a11y: list_a11y
96
+ a11y: list_a11y,
97
+ needMultiLineText: needMultiLineText
96
98
  });
97
99
  } else if (optionType === 'icon') {
98
100
  return /*#__PURE__*/React.createElement(ListItemWithIcon, { ...commonProps,
@@ -112,7 +114,8 @@ export default class Suggestions extends React.PureComponent {
112
114
  iconSize: iconSize,
113
115
  size: listItemSize,
114
116
  palette: palette,
115
- a11y: list_a11y
117
+ a11y: list_a11y,
118
+ needMultiLineText: needMultiLineText
116
119
  });
117
120
  }
118
121
 
@@ -131,7 +134,8 @@ export default class Suggestions extends React.PureComponent {
131
134
  active: isActive,
132
135
  size: listItemSize,
133
136
  palette: palette,
134
- a11y: list_a11y
137
+ a11y: list_a11y,
138
+ needMultiLineText: needMultiLineText
135
139
  });
136
140
  })));
137
141
  }
@@ -117,7 +117,8 @@ export const MultiSelect_defaultProps = {
117
117
  keepSelectedOptions: false,
118
118
  selectedOptionsCount: 0,
119
119
  cardHeaderName: '',
120
- needResponsive: true
120
+ needResponsive: true,
121
+ customProps: {}
121
122
  };
122
123
  export const MultiSelectHeader_defaultProps = {
123
124
  dataId: 'MultiSelectHeader'
@@ -161,5 +162,6 @@ export const SelectedOptions_defaultProps = {
161
162
  dataId: 'selectedOptions'
162
163
  };
163
164
  export const Suggestions_defaultProps = {
164
- a11y: {}
165
+ a11y: {},
166
+ needMultiLineText: false
165
167
  };
@@ -108,7 +108,10 @@ export const MultiSelect_propTypes = {
108
108
  needSelectAll: PropTypes.bool,
109
109
  selectAllText: PropTypes.string,
110
110
  setAriaId: PropTypes.string,
111
- ariaErrorId: PropTypes.string
111
+ ariaErrorId: PropTypes.string,
112
+ customProps: {
113
+ suggestionsProps: PropTypes.object
114
+ }
112
115
  };
113
116
  export const MultiSelectHeader_propTypes = {
114
117
  dataId: PropTypes.string,
@@ -173,7 +176,8 @@ export const Suggestions_propTypes = {
173
176
  logo: PropTypes.string,
174
177
  optionType: PropTypes.string,
175
178
  listItemProps: PropTypes.object
176
- }))
179
+ })),
180
+ needMultiLineText: PropTypes.bool
177
181
  };
178
182
  export const AdvancedGroupMultiSelect_propTypes = {
179
183
  animationStyle: PropTypes.string,
@@ -590,8 +590,12 @@ export class GroupSelectComponent extends PureComponent {
590
590
  htmlId,
591
591
  iconOnHover,
592
592
  isLoading,
593
- dataSelectorId
593
+ dataSelectorId,
594
+ customProps
594
595
  } = this.props;
596
+ const {
597
+ suggestionsProps = {}
598
+ } = customProps;
595
599
  i18nKeys = Object.assign({}, i18nKeys, {
596
600
  emptyText: i18nKeys.emptyText || emptyMessage,
597
601
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -784,7 +788,8 @@ export class GroupSelectComponent extends PureComponent {
784
788
  ariaParentRole: 'listbox',
785
789
  role: 'option'
786
790
  },
787
- dataId: `${dataId}_Options`
791
+ dataId: `${dataId}_Options`,
792
+ ...suggestionsProps
788
793
  }));
789
794
  }) : /*#__PURE__*/React.createElement(EmptyState, {
790
795
  options: revampedGroups,
@@ -163,8 +163,12 @@ class SelectWithAvatarComponent extends SelectComponent {
163
163
  needEffect,
164
164
  isLoading,
165
165
  dataSelectorId,
166
- getTargetRef
166
+ getTargetRef,
167
+ customProps
167
168
  } = this.props;
169
+ const {
170
+ suggestionsProps = {}
171
+ } = customProps;
168
172
  i18nKeys = Object.assign({}, i18nKeys, {
169
173
  emptyText: i18nKeys.emptyText || emptyMessage,
170
174
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -321,7 +325,8 @@ class SelectWithAvatarComponent extends SelectComponent {
321
325
  a11y: {
322
326
  ariaParentRole: 'listbox',
323
327
  role: 'option'
324
- }
328
+ },
329
+ ...suggestionsProps
325
330
  }) : /*#__PURE__*/React.createElement(EmptyState, {
326
331
  isLoading: isFetchingOptions,
327
332
  options: options,
@@ -69,7 +69,8 @@ export const GroupSelect_defaultProps = {
69
69
  isRestrictScroll: false,
70
70
  i18nKeys: {},
71
71
  iconOnHover: false,
72
- isLoading: false
72
+ isLoading: false,
73
+ customProps: {}
73
74
  };
74
75
  export const SelectWithAvatar_defaultProps = {
75
76
  animationStyle: 'bounce',
@@ -95,7 +96,8 @@ export const SelectWithAvatar_defaultProps = {
95
96
  isRestrictScroll: false,
96
97
  i18nKeys: {},
97
98
  needEffect: true,
98
- isLoading: false
99
+ isLoading: false,
100
+ customProps: {}
99
101
  };
100
102
  export const SelectWithIcon_defaultProps = {
101
103
  isReadOnly: false,
@@ -174,7 +174,10 @@ export const GroupSelect_propTypes = {
174
174
  }),
175
175
  isLoading: PropTypes.bool,
176
176
  dataSelectorId: PropTypes.string,
177
- isDefaultSelectValue: PropTypes.bool
177
+ isDefaultSelectValue: PropTypes.bool,
178
+ customProps: PropTypes.shape({
179
+ suggestionsProps: PropTypes.object
180
+ })
178
181
  };
179
182
  export const SelectWithAvatar_propTypes = { ...Select_propTypes,
180
183
  textBoxClass: PropTypes.string,
@@ -235,7 +238,8 @@ export const SelectWithAvatar_propTypes = { ...Select_propTypes,
235
238
  htmlId: PropTypes.string,
236
239
  needEffect: PropTypes.bool,
237
240
  isLoading: PropTypes.bool,
238
- dataSelectorId: PropTypes.string
241
+ dataSelectorId: PropTypes.string,
242
+ customProps: PropTypes.object
239
243
  };
240
244
  export const SelectWithIcon_propTypes = {
241
245
  animationStyle: PropTypes.oneOf(['default', 'bounce']),
@@ -115,6 +115,8 @@ function DropBoxElement(props) {
115
115
  style: inlineStyle,
116
116
  "data-tour": tourId,
117
117
  "data-position": boxPosition,
118
+ "data-box-direction": boxDirection,
119
+ "data-arrow-position": arrowPosition,
118
120
  id: htmlId,
119
121
  role: role,
120
122
  "aria-multiselectable": ariaMultiselectable,
@@ -134,7 +136,7 @@ function DropBoxElement(props) {
134
136
  }, isModel ? /*#__PURE__*/_react["default"].createElement("div", {
135
137
  className: _DropBoxElementModule["default"].closeBar
136
138
  }) : null, isArrow && !isModel && /*#__PURE__*/_react["default"].createElement("div", {
137
- className: _DropBoxElementModule["default"][arrowPosition],
139
+ className: _DropBoxElementModule["default"].arrowPosition,
138
140
  style: arrowstyle,
139
141
  "data-id": "".concat(dataId, "_arrow"),
140
142
  "data-test-id": "".concat(dataId, "_arrow"),
@@ -5,6 +5,8 @@ exports[`DropBoxElement rendering the defult props 1`] = `
5
5
  <div
6
6
  class="main hidden container bottomStart default"
7
7
  data-a11y-focus-main-area="true"
8
+ data-arrow-position="end"
9
+ data-box-direction="bottom"
8
10
  data-id="dropBox"
9
11
  data-position="bottomStart"
10
12
  data-selector-id="dropBox"
@@ -12,14 +14,14 @@ exports[`DropBoxElement rendering the defult props 1`] = `
12
14
  dot-ui-element="dropbox"
13
15
  >
14
16
  <div
15
- class="subContainer bottom_shadow radius defaultPalette"
17
+ class="subContainer shadow radius defaultPalette"
16
18
  data-id="dropBox_subcontainer"
17
19
  data-selector-id="dropBox_subcontainer"
18
20
  data-test-id="dropBox_subcontainer"
19
21
  tabindex="-1"
20
22
  >
21
23
  <div
22
- class="end"
24
+ class="arrowPosition"
23
25
  data-id="dropBox_arrow"
24
26
  data-selector-id="dropBox_arrow"
25
27
  data-test-id="dropBox_arrow"
@@ -73,19 +73,19 @@
73
73
  }
74
74
 
75
75
  /* shadow */
76
- .top_shadow {
76
+ [data-box-direction="top"]>.shadow {
77
77
  --dropbox_box_shadow: var(--zd_bs_dropbox_top);
78
78
  }
79
79
 
80
- .left_shadow {
80
+ [data-box-direction="left"]>.shadow {
81
81
  --dropbox_box_shadow: var(--zd_bs_dropbox_left);
82
82
  }
83
83
 
84
- .right_shadow {
84
+ [data-box-direction="right"]>.shadow {
85
85
  --dropbox_box_shadow: var(--zd_bs_dropbox_right);
86
86
  }
87
87
 
88
- .bottom_shadow {
88
+ [data-box-direction="bottom"]>.shadow {
89
89
  --dropbox_box_shadow: var(--zd_bs_dropbox_bottom);
90
90
  }
91
91
 
@@ -158,41 +158,41 @@
158
158
  transform: translateY(-50%);
159
159
  }
160
160
 
161
- /* space for arrow */
162
- .arrowtop {
161
+ /* space for arrow using data-box-direction attribute*/
162
+ .arrow[data-box-direction="top"] {
163
163
  padding-bottom: var(--zd_size10) ;
164
164
  }
165
165
 
166
- .arrowright {
166
+ .arrow[data-box-direction="right"] {
167
167
  padding-left: var(--zd_size10) ;
168
168
  }
169
169
 
170
- .arrowleft {
170
+ .arrow[data-box-direction="left"] {
171
171
  padding-right: var(--zd_size10) ;
172
172
  }
173
173
 
174
- .arrowbottom {
174
+ .arrow[data-box-direction="bottom"] {
175
175
  padding-top: var(--zd_size10) ;
176
176
  }
177
177
 
178
- /* space from target */
179
- .paddingSpace_top {
178
+ /* space from target using data-box-direction attribute*/
179
+ .paddingSpace[data-box-direction="top"] {
180
180
  padding-bottom: var(--zd_size5) ;
181
181
  }
182
182
 
183
- .paddingSpace_right {
183
+ .paddingSpace[data-box-direction="right"] {
184
184
  padding-left: var(--zd_size5) ;
185
185
  }
186
186
 
187
- .paddingSpace_left {
187
+ .paddingSpace[data-box-direction="left"] {
188
188
  padding-right: var(--zd_size5) ;
189
189
  }
190
190
 
191
- .paddingSpace_bottom {
191
+ .paddingSpace[data-box-direction="bottom"] {
192
192
  padding-top: var(--zd_size5) ;
193
193
  }
194
194
 
195
- .arrow {
195
+ .arrowBase {
196
196
  position: absolute;
197
197
  height: var(--zd_size34) ;
198
198
  width: var(--zd_size34) ;
@@ -213,107 +213,106 @@
213
213
  }
214
214
 
215
215
  /* arrow placement styles */
216
- .start,
217
- .end,
218
- .mid {
219
- composes: arrow;
216
+ .arrowPosition {
217
+ composes: arrowBase;
220
218
  }
221
219
 
222
- .top .start,
223
- .top .end,
224
- .top .mid {
220
+ .boxDirection[data-box-direction="top"][data-arrow-position="start"] .arrowPosition,
221
+ .boxDirection[data-box-direction="top"][data-arrow-position="end"] .arrowPosition,
222
+ .boxDirection[data-box-direction="top"][data-arrow-position="mid"] .arrowPosition {
225
223
  bottom: calc( var(--zd_size17) * -1 ) ;
226
224
  }
227
225
 
228
- .top .start {
226
+ .boxDirection[data-box-direction="top"][data-arrow-position="start"] .arrowPosition {
229
227
  left: var(--zd_size28) ;
230
228
  }
231
229
 
232
- .top .end {
230
+ .boxDirection[data-box-direction="top"][data-arrow-position="end"] .arrowPosition {
233
231
  right: var(--zd_size28) ;
234
232
  transform: rotate(180deg) translateX(-50%);
235
233
  }
236
234
 
237
- .top .mid {
235
+ .boxDirection[data-box-direction="top"][data-arrow-position="mid"] .arrowPosition {
238
236
  left: 50% ;
239
237
  }
240
238
 
241
- .top .start,
242
- .top .mid {
239
+ .boxDirection[data-box-direction="top"][data-arrow-position="start"] .arrowPosition,
240
+ .boxDirection[data-box-direction="top"][data-arrow-position="mid"] .arrowPosition {
243
241
  transform: rotate(180deg) translateX(50%);
244
242
  }
245
243
 
246
- .bottom .start,
247
- .bottom .end,
248
- .bottom .mid {
244
+ .boxDirection[data-box-direction="bottom"][data-arrow-position="start"] .arrowPosition,
245
+ .boxDirection[data-box-direction="bottom"][data-arrow-position="end"] .arrowPosition,
246
+ .boxDirection[data-box-direction="bottom"][data-arrow-position="mid"] .arrowPosition {
249
247
  top: calc( var(--zd_size17) * -1 ) ;
250
248
  }
251
249
 
252
- .bottom .start {
250
+ .boxDirection[data-box-direction="bottom"][data-arrow-position="start"] .arrowPosition {
253
251
  left: var(--zd_size28) ;
254
252
  }
255
253
 
256
- .bottom .mid {
254
+ .boxDirection[data-box-direction="bottom"][data-arrow-position="mid"] .arrowPosition {
257
255
  left: 50% ;
258
256
  }
259
257
 
260
- .bottom .end {
258
+ .boxDirection[data-box-direction="bottom"][data-arrow-position="end"] .arrowPosition {
261
259
  right: var(--zd_size28) ;
262
260
  transform: translateX(50%);
263
261
  }
264
262
 
265
- .bottom .mid,
266
- .bottom .start {
263
+ .boxDirection[data-box-direction="bottom"][data-arrow-position="mid"] .arrowPosition,
264
+ .boxDirection[data-box-direction="bottom"][data-arrow-position="start"] .arrowPosition {
267
265
  transform: translateX(-50%);
268
266
  }
269
267
 
270
- .left .start,
271
- .left .mid,
272
- .left .end {
268
+ .boxDirection[data-box-direction="left"][data-arrow-position="start"] .arrowPosition,
269
+ .boxDirection[data-box-direction="left"][data-arrow-position="mid"] .arrowPosition,
270
+ .boxDirection[data-box-direction="left"][data-arrow-position="end"] .arrowPosition {
273
271
  right: calc( var(--zd_size17) * -1 ) ;
274
272
  }
275
273
 
276
- .left .start {
274
+ .boxDirection[data-box-direction="left"][data-arrow-position="start"] .arrowPosition {
277
275
  top: var(--zd_size28) ;
278
276
  }
279
277
 
280
- .left .end {
278
+ .boxDirection[data-box-direction="left"][data-arrow-position="end"] .arrowPosition {
281
279
  transform: rotate(90deg) translateX(50%);
282
280
  bottom: var(--zd_size28) ;
283
281
  }
284
282
 
285
- .left .mid {
283
+ .boxDirection[data-box-direction="left"][data-arrow-position="mid"] .arrowPosition {
286
284
  top: 50% ;
287
285
  }
288
286
 
289
- .left .start,
290
- .left .mid {
287
+ .boxDirection[data-box-direction="left"][data-arrow-position="start"] .arrowPosition,
288
+ .boxDirection[data-box-direction="left"][data-arrow-position="mid"] .arrowPosition {
291
289
  transform: rotate(90deg) translateX(-50%);
292
290
  }
293
291
 
294
- .right .start,
295
- .right .mid,
296
- .right .end {
292
+ .boxDirection[data-box-direction="right"][data-arrow-position="start"] .arrowPosition,
293
+ .boxDirection[data-box-direction="right"][data-arrow-position="mid"] .arrowPosition,
294
+ .boxDirection[data-box-direction="right"][data-arrow-position="end"] .arrowPosition {
297
295
  left: calc( var(--zd_size17) * -1 ) ;
298
296
  }
299
297
 
300
- .right .start {
298
+ .boxDirection[data-box-direction="right"][data-arrow-position="start"] .arrowPosition {
301
299
  top: var(--zd_size28) ;
302
300
  }
303
301
 
304
- .right .mid {
302
+ .boxDirection[data-box-direction="right"][data-arrow-position="mid"] .arrowPosition {
305
303
  top: 50% ;
306
304
  }
307
305
 
308
- .right .start,
309
- .right .mid {
306
+ .boxDirection[data-box-direction="right"][data-arrow-position="start"] .arrowPosition,
307
+ .boxDirection[data-box-direction="right"][data-arrow-position="mid"] .arrowPosition {
310
308
  transform: rotate(-90deg) translateX(50%);
311
309
  }
312
310
 
313
- .right .end {
311
+ .boxDirection[data-box-direction="right"][data-arrow-position="end"] .arrowPosition {
314
312
  bottom: var(--zd_size28) ;
315
313
  transform: rotate(-90deg) translateX(-50%);
316
314
  }
315
+ [data-visible="hidden"],
317
316
  .hidden {
318
317
  visibility: hidden;
319
318
  opacity: 0;
@@ -321,7 +320,7 @@
321
320
  pointer-events: none;
322
321
  }
323
322
 
324
- .hidden .subContainer {
323
+ [data-visible="hidden"] .subContainer, .hidden .subContainer {
325
324
  box-shadow: none;
326
325
  }
327
326
 
@@ -342,17 +341,21 @@
342
341
  composes: animationBasic;
343
342
  composes: fadeIn modeForward from '../../../common/animation.module.css';
344
343
  }
344
+
345
345
  .scaleIn {
346
346
  composes: animationBasic;
347
347
  composes: scaleIn from '../../../common/animation.module.css';
348
348
  }
349
+
349
350
  .bounce {
350
351
  composes: animationBasic;
351
352
  }
353
+
352
354
  [dir=ltr] .bounce {
353
355
  animation-name: animation;
354
356
  animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
355
357
  }
358
+
356
359
  [dir=rtl] .bounce {
357
360
  animation-name: animation;
358
361
  animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
@@ -414,7 +417,7 @@
414
417
  }
415
418
 
416
419
  .closeBar {
417
- /* Variable:Ignore */
420
+ /* Variable:Ignore */
418
421
  height: 6px;
419
422
  width: 20% ;
420
423
  border-radius: 5px;
@@ -55,8 +55,8 @@ function cssJSLogic(_ref) {
55
55
  customMobileDropBoxWrap = _customClass$customMo2 === void 0 ? '' : _customClass$customMo2;
56
56
  var animationValue = animationStyle === 'default' ? 'fadeInScale' : animationStyle; // const {needBoxStyle,boxstyle} = useDropboxPosCalc(props)
57
57
 
58
- var boxClassName = (0, _utils.compileClassNames)((_compileClassNames = {}, _defineProperty(_compileClassNames, style.main, true), _defineProperty(_compileClassNames, style.hidden, !isActive), _defineProperty(_compileClassNames, style.responsive, !!isModel), _defineProperty(_compileClassNames, customMobileDropBoxWrap, !!isModel), _defineProperty(_compileClassNames, customDropBoxWrap, !isModel), _defineProperty(_compileClassNames, style.container, isAbsolute && !isModel), _defineProperty(_compileClassNames, style[boxPosition], isAbsolute && !isModel), _defineProperty(_compileClassNames, style.fixedContainer, !isAbsolute && !isModel), _defineProperty(_compileClassNames, style[size], size && !isModel), _defineProperty(_compileClassNames, style[boxDirection], !isModel && isActive && isArrow), _defineProperty(_compileClassNames, style["arrow".concat(boxDirection)], !isModel && isActive && isArrow && isAbsolute), _defineProperty(_compileClassNames, style["paddingSpace_".concat(boxDirection)], !isModel && isActive && !isArrow && isPadding), _compileClassNames));
59
- var subContainerClass = (0, _utils.compileClassNames)((_compileClassNames2 = {}, _defineProperty(_compileClassNames2, style.subContainer, true), _defineProperty(_compileClassNames2, customMobileDropBox, !!isModel), _defineProperty(_compileClassNames2, style.mobRadius, !!isModel), _defineProperty(_compileClassNames2, style.slideUp, !!isModel && isActive), _defineProperty(_compileClassNames2, customDropBox, !isModel), _defineProperty(_compileClassNames2, style["".concat(boxDirection, "_shadow")], !isModel), _defineProperty(_compileClassNames2, style.boxPadding, !isModel && isBoxPaddingNeed), _defineProperty(_compileClassNames2, style.radius, !isModel && isRadius), _defineProperty(_compileClassNames2, style[animationValue], !isModel && isAnimate && !isReducedMotion && isActive && !!animationStyle), _compileClassNames2));
58
+ var boxClassName = (0, _utils.compileClassNames)((_compileClassNames = {}, _defineProperty(_compileClassNames, style.main, true), _defineProperty(_compileClassNames, style.hidden, !isActive), _defineProperty(_compileClassNames, style.responsive, !!isModel), _defineProperty(_compileClassNames, customMobileDropBoxWrap, !!isModel), _defineProperty(_compileClassNames, customDropBoxWrap, !isModel), _defineProperty(_compileClassNames, style.container, isAbsolute && !isModel), _defineProperty(_compileClassNames, style[boxPosition], isAbsolute && !isModel), _defineProperty(_compileClassNames, style.fixedContainer, !isAbsolute && !isModel), _defineProperty(_compileClassNames, style[size], size && !isModel), _defineProperty(_compileClassNames, style.boxDirection, !isModel && isActive && isArrow), _defineProperty(_compileClassNames, style.arrow, !isModel && isActive && isArrow && isAbsolute), _defineProperty(_compileClassNames, style.paddingSpace, !isModel && isActive && !isArrow && isPadding), _compileClassNames));
59
+ var subContainerClass = (0, _utils.compileClassNames)((_compileClassNames2 = {}, _defineProperty(_compileClassNames2, style.subContainer, true), _defineProperty(_compileClassNames2, customMobileDropBox, !!isModel), _defineProperty(_compileClassNames2, style.mobRadius, !!isModel), _defineProperty(_compileClassNames2, style.slideUp, !!isModel && isActive), _defineProperty(_compileClassNames2, customDropBox, !isModel), _defineProperty(_compileClassNames2, style.shadow, !isModel), _defineProperty(_compileClassNames2, style.boxPadding, !isModel && isBoxPaddingNeed), _defineProperty(_compileClassNames2, style.radius, !isModel && isRadius), _defineProperty(_compileClassNames2, style[animationValue], !isModel && isAnimate && !isReducedMotion && isActive && !!animationStyle), _compileClassNames2));
60
60
  var inlineStyle = !isModel ? isAbsolute ? needBoxStyle && boxstyle : positionsOffset && positionsOffset[boxPosition] || {} : {};
61
61
 
62
62
  if (zIndexStyle) {
@@ -5,6 +5,8 @@ exports[`DropBox rendering the defult props 1`] = `
5
5
  <div
6
6
  class="main hidden container bottomStart default"
7
7
  data-a11y-focus-main-area="true"
8
+ data-arrow-position="end"
9
+ data-box-direction="bottom"
8
10
  data-id="dropBox"
9
11
  data-position="bottomStart"
10
12
  data-selector-id="dropBox"
@@ -12,14 +14,14 @@ exports[`DropBox rendering the defult props 1`] = `
12
14
  dot-ui-element="dropbox"
13
15
  >
14
16
  <div
15
- class="subContainer bottom_shadow radius defaultPalette"
17
+ class="subContainer shadow radius defaultPalette"
16
18
  data-id="dropBox_subcontainer"
17
19
  data-selector-id="dropBox_subcontainer"
18
20
  data-test-id="dropBox_subcontainer"
19
21
  tabindex="-1"
20
22
  >
21
23
  <div
22
- class="end"
24
+ class="arrowPosition"
23
25
  data-id="dropBox_arrow"
24
26
  data-selector-id="dropBox_arrow"
25
27
  data-test-id="dropBox_arrow"
@@ -15,6 +15,8 @@ exports[`DropDown rendering the defult props 1`] = `
15
15
  <div
16
16
  class="main hidden container bottomMid default"
17
17
  data-a11y-focus-main-area="true"
18
+ data-arrow-position="mid"
19
+ data-box-direction="bottom"
18
20
  data-id="dropBox"
19
21
  data-position="bottomMid"
20
22
  data-selector-id="dropBox"
@@ -22,7 +24,7 @@ exports[`DropDown rendering the defult props 1`] = `
22
24
  dot-ui-element="dropbox"
23
25
  >
24
26
  <div
25
- class="subContainer bottom_shadow radius defaultPalette"
27
+ class="subContainer shadow radius defaultPalette"
26
28
  data-id="dropBox_subcontainer"
27
29
  data-selector-id="dropBox_subcontainer"
28
30
  data-test-id="dropBox_subcontainer"
@@ -150,7 +150,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
150
150
  autoHover: autoHover,
151
151
  needTick: needTick,
152
152
  needBorder: needBorder,
153
- customClass: customListItem,
153
+ customClass: "".concat(needMultiLineText ? _ListItemModule["default"].txtAlignBaseLine + ' ' + _ListItemModule["default"].autoHeight : '', " ").concat(customListItem),
154
154
  dataId: dataIdString,
155
155
  dataSelectorId: "".concat(dataSelectorId),
156
156
  isLink: isLink,
@@ -171,7 +171,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
171
171
  adjust: true,
172
172
  className: _ListItemModule["default"].children
173
173
  }, children) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
174
- className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(tickIconPalette, " ").concat(customTickIcon),
174
+ className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(tickIconPalette, " ").concat(customTickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
175
175
  "aria-hidden": ariaHidden,
176
176
  dataId: "".concat(dataIdString, "_tickIcon"),
177
177
  dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
@@ -73,8 +73,8 @@
73
73
  line-height: 1.5385;
74
74
  }
75
75
  .multiLineValue{
76
- word-break: break-word;
77
- composes: clamp from '../common/common.module.css'
76
+ composes: listItemClamp from '~@zohodesk/components/es/common/common.module.css';
77
+ --line-clamp-count: var(--list-line-clamp-count, 3);
78
78
  }
79
79
  .iconBox {
80
80
  width: var(--zd_size20) ;
@@ -203,3 +203,16 @@
203
203
  padding-top: var(--zd_size10) ;
204
204
  padding-bottom: var(--zd_size10) ;
205
205
  }
206
+ .autoHeight {
207
+ height: auto ;
208
+ }
209
+ .tickIconCenter {
210
+ top: 50% ;
211
+ transform: translateY(-50%);
212
+ }
213
+ .txtAlignBaseLine {
214
+ align-items: baseline;
215
+ }
216
+ .alignSelfTop {
217
+ align-self: start;
218
+ }
@@ -162,7 +162,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
162
162
  autoHover: autoHover,
163
163
  needTick: needTick,
164
164
  needBorder: needBorder,
165
- customClass: customListItem,
165
+ customClass: "".concat(needMultiLineText ? _ListItemModule["default"].autoHeight : '', " ").concat(customListItem),
166
166
  dataId: "".concat(dataIdString, "_ListItemWithAvatar"),
167
167
  dataSelectorId: "".concat(dataSelectorId),
168
168
  onClick: this.handleClick,
@@ -172,7 +172,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
172
172
  title: null,
173
173
  customProps: ListItemProps
174
174
  }, ContainerProps), name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
175
- className: _ListItemModule["default"].leftAvatar
175
+ className: "".concat(needMultiLineText ? _ListItemModule["default"].alignSelfTop : '', " ").concat(_ListItemModule["default"].leftAvatar)
176
176
  }, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"], _extends({
177
177
  name: name,
178
178
  size: "small",
@@ -199,7 +199,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
199
199
  "data-title": isDisabled ? null : title,
200
200
  className: needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value
201
201
  }, value) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
202
- className: _ListItemModule["default"].tickIcon,
202
+ className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
203
203
  "aria-hidden": ariaHidden,
204
204
  dataId: "".concat(dataIdString, "_tickIcon"),
205
205
  dataSelectorId: "".concat(dataSelectorId, "_tickIcon")