@zohodesk/dot 1.0.0-temp-231.1 → 1.0.0-temp-229.2

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 (126) hide show
  1. package/README.md +12 -8
  2. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +10 -7
  3. package/assets/Appearance/light/mode/Dot_LightMode.module.css +16 -13
  4. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +8 -5
  5. package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +1 -2
  6. package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +1 -2
  7. package/es/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +1 -2
  8. package/es/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +1 -2
  9. package/es/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +1 -2
  10. package/es/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +1 -2
  11. package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +1 -2
  12. package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +1 -2
  13. package/es/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +1 -2
  14. package/es/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +1 -2
  15. package/es/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +1 -2
  16. package/es/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +1 -2
  17. package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +1 -2
  18. package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +1 -2
  19. package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +1 -2
  20. package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +0 -1
  21. package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +0 -1
  22. package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +0 -1
  23. package/es/DotProvider/libraryChunks/themes/dot/green/Green_Dark_Dot.js +0 -1
  24. package/es/DotProvider/libraryChunks/themes/dot/green/Green_Light_Dot.js +0 -1
  25. package/es/DotProvider/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +0 -1
  26. package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +0 -1
  27. package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +0 -1
  28. package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +0 -1
  29. package/es/DotProvider/libraryChunks/themes/dot/red/Red_Dark_Dot.js +0 -1
  30. package/es/DotProvider/libraryChunks/themes/dot/red/Red_Light_Dot.js +0 -1
  31. package/es/DotProvider/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +0 -1
  32. package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +0 -1
  33. package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +0 -1
  34. package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +0 -1
  35. package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +2 -1
  36. package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +2 -1
  37. package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +2 -1
  38. package/es/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +2 -1
  39. package/es/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +2 -1
  40. package/es/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +2 -1
  41. package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +2 -1
  42. package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +2 -1
  43. package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +2 -1
  44. package/es/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +2 -1
  45. package/es/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +2 -1
  46. package/es/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +2 -1
  47. package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +2 -1
  48. package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +2 -1
  49. package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +2 -1
  50. package/es/common/dot_boxShadow.module.css +2 -0
  51. package/es/form/fields/SelectField/SelectField.js +4 -2
  52. package/es/form/fields/SelectField/props/defaultProps.js +1 -0
  53. package/es/form/fields/SelectField/props/propTypes.js +1 -0
  54. package/es/list/status/StatusDropdown/StatusDropdown.js +121 -79
  55. package/es/list/status/StatusDropdown/StatusDropdown.module.css +54 -7
  56. package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
  57. package/es/list/status/StatusDropdown/props/propTypes.js +2 -1
  58. package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +1 -3
  59. package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +1 -3
  60. package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +1 -3
  61. package/lib/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +1 -3
  62. package/lib/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +1 -3
  63. package/lib/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +1 -3
  64. package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +1 -3
  65. package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +1 -3
  66. package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +1 -3
  67. package/lib/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +1 -3
  68. package/lib/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +1 -3
  69. package/lib/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +1 -3
  70. package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +1 -3
  71. package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +1 -3
  72. package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +1 -3
  73. package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +0 -2
  74. package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +0 -2
  75. package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +0 -2
  76. package/lib/DotProvider/libraryChunks/themes/dot/green/Green_Dark_Dot.js +0 -2
  77. package/lib/DotProvider/libraryChunks/themes/dot/green/Green_Light_Dot.js +0 -2
  78. package/lib/DotProvider/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +0 -2
  79. package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +0 -2
  80. package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +0 -2
  81. package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +0 -2
  82. package/lib/DotProvider/libraryChunks/themes/dot/red/Red_Dark_Dot.js +0 -2
  83. package/lib/DotProvider/libraryChunks/themes/dot/red/Red_Light_Dot.js +0 -2
  84. package/lib/DotProvider/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +0 -2
  85. package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +0 -2
  86. package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +0 -2
  87. package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +0 -2
  88. package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +3 -1
  89. package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +3 -1
  90. package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +3 -1
  91. package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +3 -1
  92. package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +3 -1
  93. package/lib/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +3 -1
  94. package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +3 -1
  95. package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +3 -1
  96. package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +3 -1
  97. package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +3 -1
  98. package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +3 -1
  99. package/lib/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +3 -1
  100. package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +3 -1
  101. package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +3 -1
  102. package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +3 -1
  103. package/lib/common/dot_boxShadow.module.css +2 -0
  104. package/lib/form/fields/SelectField/SelectField.js +4 -2
  105. package/lib/form/fields/SelectField/props/defaultProps.js +1 -0
  106. package/lib/form/fields/SelectField/props/propTypes.js +1 -0
  107. package/lib/list/status/StatusDropdown/StatusDropdown.js +133 -81
  108. package/lib/list/status/StatusDropdown/StatusDropdown.module.css +54 -7
  109. package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
  110. package/lib/list/status/StatusDropdown/props/propTypes.js +1 -1
  111. package/package.json +25 -23
  112. package/assets/Appearance/dark/themes/blue/blue_DotCTA_DarkModifyCategory.module.css +0 -13
  113. package/assets/Appearance/dark/themes/green/green_DotCTA_DarkModifyCategory.module.css +0 -13
  114. package/assets/Appearance/dark/themes/orange/orange_DotCTA_DarkModifyCategory.module.css +0 -13
  115. package/assets/Appearance/dark/themes/red/red_DotCTA_DarkModifyCategory.module.css +0 -13
  116. package/assets/Appearance/dark/themes/yellow/yellow_DotCTA_DarkModifyCategory.module.css +0 -13
  117. package/assets/Appearance/light/themes/blue/blue_DotCTA_LightModifyCategory.module.css +0 -13
  118. package/assets/Appearance/light/themes/green/green_DotCTA_LightModifyCategory.module.css +0 -13
  119. package/assets/Appearance/light/themes/orange/orange_DotCTA_LightModifyCategory.module.css +0 -13
  120. package/assets/Appearance/light/themes/red/red_DotCTA_LightModifyCategory.module.css +0 -13
  121. package/assets/Appearance/light/themes/yellow/yellow_DotCTA_LightModifyCategory.module.css +0 -13
  122. package/assets/Appearance/pureDark/themes/blue/blue_DotCTA_PureDarkModifyCategory.module.css +0 -13
  123. package/assets/Appearance/pureDark/themes/green/green_DotCTA_PureDarkModifyCategory.module.css +0 -13
  124. package/assets/Appearance/pureDark/themes/orange/orange_DotCTA_PureDarkModifyCategory.module.css +0 -13
  125. package/assets/Appearance/pureDark/themes/red/red_DotCTA_PureDarkModifyCategory.module.css +0 -13
  126. package/assets/Appearance/pureDark/themes/yellow/yellow_DotCTA_PureDarkModifyCategory.module.css +0 -13
@@ -13,6 +13,7 @@ import StatusListItem from "../StatusListItem/StatusListItem";
13
13
  import commonStyle from '@zohodesk/components/es/common/common.module.css';
14
14
  import ResponsiveDropBox from '@zohodesk/components/es/ResponsiveDropBox/ResponsiveDropBox';
15
15
  import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
16
+ import Flex from '@zohodesk/layout/es/Flex/Flex';
16
17
  import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
17
18
  import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
18
19
  import style from "./StatusDropdown.module.css";
@@ -30,6 +31,11 @@ export class StatusDropdown extends React.Component {
30
31
  this.searchList = this.searchList.bind(this);
31
32
  this.handleScroll = this.handleScroll.bind(this);
32
33
  this.emptySearchSVG = this.emptySearchSVG.bind(this);
34
+ this.getSearchA11y = this.getSearchA11y.bind(this);
35
+ this.getHeadingA11y = this.getHeadingA11y.bind(this);
36
+ this.getListItemA11y = this.getListItemA11y.bind(this);
37
+ this.getTextBoxIconCustomProps = this.getTextBoxIconCustomProps.bind(this);
38
+ this.handleListItemClick = this.handleListItemClick.bind(this);
33
39
  this.getAriaId = getUniqueId(this);
34
40
  }
35
41
 
@@ -124,6 +130,44 @@ export class StatusDropdown extends React.Component {
124
130
  };
125
131
  }
126
132
 
133
+ getSearchA11y() {
134
+ return {
135
+ ariaHaspopup: this.props.isSearch ? 'listbox' : 'menu',
136
+ ariaExpanded: this.props.isPopupReady,
137
+ role: 'combobox',
138
+ ariaActivedescendant: this.props.isPopupReady ? this.props.value : '',
139
+ ariaOwns: this.getAriaId()
140
+ };
141
+ }
142
+
143
+ getHeadingA11y() {
144
+ return {
145
+ role: 'heading'
146
+ };
147
+ }
148
+
149
+ getListItemA11y(isActive, listItemText) {
150
+ return {
151
+ role: this.props.isSearch ? 'option' : 'menuitem',
152
+ ariaSelected: isActive,
153
+ ariaLabel: listItemText
154
+ };
155
+ }
156
+
157
+ getTextBoxIconCustomProps() {
158
+ return {
159
+ TextBoxProps: {
160
+ 'data-a11y-autofocus': true
161
+ }
162
+ };
163
+ }
164
+
165
+ handleListItemClick(item) {
166
+ return e => {
167
+ this.onSelect(item, e);
168
+ };
169
+ }
170
+
127
171
  render() {
128
172
  let {
129
173
  options
@@ -179,10 +223,12 @@ export class StatusDropdown extends React.Component {
179
223
  renderTargetElement,
180
224
  renderFooterElement,
181
225
  a11y = {},
182
- customClass
226
+ customClass,
227
+ renderCustomDropBoxHeader
183
228
  } = this.props;
184
229
  const {
185
- dropBoxClass = ''
230
+ dropBoxClass = '',
231
+ customDropBoxHeader = ''
186
232
  } = customClass;
187
233
  const {
188
234
  tabIndex = 0,
@@ -195,6 +241,9 @@ export class StatusDropdown extends React.Component {
195
241
  } = this.state;
196
242
  let containerClass = `${className ? className : ''} ${isPopupReady ? activeStyle ? activeStyle : '' : showIconOnHover ? style.hoverIcon : ''} ${isDisabled ? commonStyle.disabled : isReadOnly ? style.readOnly : !isEditable ? style.cursorDefault : !showOnHover ? `${style.cursor} ${hoverStyle ? hoverStyle : ''}` : `${hoverStyle ? hoverStyle : ''} ${style.cursorDefault}`}`;
197
243
  let ariaTitleId = this.getAriaId();
244
+ let textBoxA11y = this.getSearchA11y();
245
+ let headingA11y = this.getHeadingA11y();
246
+ let textBoxIconCustomProps = this.getTextBoxIconCustomProps();
198
247
  return /*#__PURE__*/React.createElement("div", {
199
248
  className: style.posRel,
200
249
  onMouseEnter: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.handleTogglePopup : undefined,
@@ -251,8 +300,8 @@ export class StatusDropdown extends React.Component {
251
300
  isAnimate: true,
252
301
  getRef: getContainerRef,
253
302
  customClass: {
254
- customDropBoxWrap: style.dropBoxContainer,
255
- customDropBox: dropBoxClass
303
+ customDropBoxWrap: `${style.dropBoxContainer} `,
304
+ customDropBox: `${dropBoxClass} ${renderCustomDropBoxHeader ? style.dropBoxWithCustomHeader : ''}`
256
305
  },
257
306
  needResponsive: needResponsive,
258
307
  isResponsivePadding: true,
@@ -270,81 +319,74 @@ export class StatusDropdown extends React.Component {
270
319
  isFetchingOptions: isFetchingOptions
271
320
  }
272
321
  }
273
- }, /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
274
- className: style.search
275
- }, /*#__PURE__*/React.createElement(TextBoxIcon, {
276
- placeHolder: placeHolderText,
277
- onChange: this.handleChange,
278
- value: searchString,
279
- onClear: this.onSearchClear,
280
- size: searchBoxSize,
281
- customProps: {
282
- TextBoxProps: {
283
- 'data-a11y-autofocus': true
284
- }
285
- },
286
- a11y: {
287
- ariaHaspopup: isSearch ? 'listbox' : 'menu',
288
- ariaExpanded: isPopupReady,
289
- role: 'combobox',
290
- ariaActivedescendant: isPopupReady ? value : '',
291
- ariaOwns: ariaTitleId
292
- },
293
- dataId: `${dataId}_search`
294
- })) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
295
- className: style.title
296
- }, /*#__PURE__*/React.createElement(DropDownHeading, {
297
- htmlId: ariaTitleId,
298
- text: title,
299
- a11y: {
300
- role: 'heading'
301
- }
302
- })), /*#__PURE__*/React.createElement(Box, {
303
- scroll: "vertical",
304
- flexible: true,
305
- shrink: true,
306
- dataId: `${dataId}_list`,
307
- preventParentScroll: "vertical",
308
- className: `${tabletMode ? style.responsivemaxHgt : style.maxHgt}`,
309
- onScroll: this.handleScroll,
310
- role: isSearch ? 'listbox' : 'menu',
311
- tabindex: "-1",
312
- isScrollAttribute: true
313
- }, options.length != 0 && isDataLoaded ? /*#__PURE__*/React.createElement(React.Fragment, null, options.map((item, i) => {
314
- const listItemText = item[keyName];
315
- const isActive = value === listItemText;
316
- return /*#__PURE__*/React.createElement(StatusListItem, {
317
- key: i,
318
- dataId: `dataid_${i}`,
319
- value: listItemText,
320
- id: item[idName],
321
- active: isActive,
322
- onClick: this.onSelect.bind(this, item),
323
- index: i,
324
- needTick: needTick,
325
- needBorder: false,
326
- bulletColor: item[statusColor],
327
- title: listItemText,
328
- needMultiLineText: needMultiLineText,
329
- autoHover: true,
330
- a11y: {
331
- role: isSearch ? 'option' : 'menuitem',
332
- ariaSelected: isActive,
333
- ariaLabel: listItemText
334
- }
335
- });
336
- }), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
337
- isCover: false,
338
- align: "both"
339
- }, /*#__PURE__*/React.createElement(Loader, null))) : isDataLoaded ? /*#__PURE__*/React.createElement(CommonEmptyState, {
340
- className: style.svgWrapper,
341
- title: searchErrorText || 'No results',
342
- description: searchEmptyHint,
343
- size: "small",
344
- getEmptyState: this.emptySearchSVG
345
- }) : /*#__PURE__*/React.createElement("div", {
346
- className: style.loader
347
- }, /*#__PURE__*/React.createElement(Loader, null))), renderFooterElement ? renderFooterElement : null));
322
+ }, (() => {
323
+ const dropdownContent = /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
324
+ className: style.search
325
+ }, /*#__PURE__*/React.createElement(TextBoxIcon, {
326
+ placeHolder: placeHolderText,
327
+ onChange: this.handleChange,
328
+ value: searchString,
329
+ onClear: this.onSearchClear,
330
+ size: searchBoxSize,
331
+ customProps: textBoxIconCustomProps,
332
+ a11y: textBoxA11y,
333
+ dataId: `${dataId}_search`
334
+ })) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
335
+ className: style.title
336
+ }, /*#__PURE__*/React.createElement(DropDownHeading, {
337
+ htmlId: ariaTitleId,
338
+ text: title,
339
+ a11y: headingA11y
340
+ })), /*#__PURE__*/React.createElement(Box, {
341
+ scroll: "vertical",
342
+ flexible: true,
343
+ shrink: true,
344
+ dataId: `${dataId}_list`,
345
+ preventParentScroll: "vertical",
346
+ className: `${tabletMode ? style.responsivemaxHgt : style.maxHgt}`,
347
+ onScroll: this.handleScroll,
348
+ role: isSearch ? 'listbox' : 'menu',
349
+ tabindex: "-1",
350
+ isScrollAttribute: true
351
+ }, options.length != 0 && isDataLoaded ? /*#__PURE__*/React.createElement(React.Fragment, null, options.map((item, i) => {
352
+ const listItemText = item[keyName];
353
+ const isActive = value === listItemText;
354
+ return /*#__PURE__*/React.createElement(StatusListItem, {
355
+ key: item[idName] || i,
356
+ dataId: `dataid_${i}`,
357
+ value: listItemText,
358
+ id: item[idName],
359
+ active: isActive,
360
+ onClick: this.handleListItemClick(item),
361
+ index: i,
362
+ needTick: needTick,
363
+ needBorder: false,
364
+ bulletColor: item[statusColor],
365
+ title: listItemText,
366
+ needMultiLineText: needMultiLineText,
367
+ autoHover: true,
368
+ a11y: this.getListItemA11y(isActive, listItemText)
369
+ });
370
+ }), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
371
+ isCover: false,
372
+ align: "both"
373
+ }, /*#__PURE__*/React.createElement(Loader, null))) : isDataLoaded ? /*#__PURE__*/React.createElement(CommonEmptyState, {
374
+ className: style.svgWrapper,
375
+ title: searchErrorText || 'No results',
376
+ description: searchEmptyHint,
377
+ size: "small",
378
+ getEmptyState: this.emptySearchSVG
379
+ }) : /*#__PURE__*/React.createElement("div", {
380
+ className: style.loader
381
+ }, /*#__PURE__*/React.createElement(Loader, null))), renderFooterElement ? renderFooterElement : null);
382
+ return renderCustomDropBoxHeader ? /*#__PURE__*/React.createElement("div", {
383
+ className: style.dropBoxListContainer
384
+ }, /*#__PURE__*/React.createElement(Flex, {
385
+ $ui_className: `${customDropBoxHeader} ${style.customDropBoxHeaderContainer}`
386
+ }, renderCustomDropBoxHeader), /*#__PURE__*/React.createElement("div", {
387
+ className: style.dropdownOptions
388
+ }, dropdownContent)) : dropdownContent;
389
+ })());
348
390
  }) : null);
349
391
  }
350
392
 
@@ -1,83 +1,130 @@
1
1
  .container {
2
2
  max-width: 100% ;
3
3
  }
4
+
5
+ .dropBoxListContainer {
6
+ border-radius: 7px;
7
+ padding: var(--zd_size10) ;
8
+ border: 1px solid var(--zdt_statusdropdown_wrapper_container_border);
9
+ background: var(--zdt_statusdropdown_wrapper_container_bg);
10
+ box-shadow: var(--zd_bs_statusdropdown_wrapper_container);
11
+ }
12
+
13
+ .dropdownOptions {
14
+ padding-inline: var(--zd_size1) ;
15
+ padding-block: var(--zd_size1) ;
16
+ background-color: var(--zdt_statusdropdown_wrapper_dropdown_bg);
17
+ border: 1px solid var(--zdt_statusdropdown_wrapper_container_border);
18
+ border-radius: 7px;
19
+ }
20
+
4
21
  .posRel {
5
22
  position: relative;
6
23
  }
24
+
7
25
  .maxHgt {
8
26
  max-height: var(--zd_size265) ;
9
27
  padding-block: var(--zd_size10) ;
10
- padding-inline:0 ;
28
+ padding-inline: 0 ;
11
29
  }
12
- .responsivemaxHgt{
30
+
31
+ .responsivemaxHgt {
13
32
  padding-block: var(--zd_size10) 0 ;
14
- padding-inline:0 ;
33
+ padding-inline: 0 ;
15
34
  }
35
+
16
36
  .title {
17
37
  padding-block-start: var(--zd_size6) ;
18
38
  }
39
+
19
40
  .default_arrow,
20
41
  .overlay_arrow {
21
42
  padding-inline: var(--zd_size5) 0 ;
22
- padding-block:0 ;
43
+ padding-block: 0 ;
23
44
  }
45
+
24
46
  .overlay_arrow {
25
47
  position: absolute;
26
48
  top: 50% ;
27
49
  transform: translateY(-50%) perspective(1px);
28
50
  }
51
+
29
52
  [dir=ltr] .overlay_arrow {
30
53
  left: 100% ;
31
54
  }
55
+
32
56
  [dir=rtl] .overlay_arrow {
33
57
  right: 100% ;
34
58
  }
59
+
35
60
  .hoverIcon .arrow {
36
61
  opacity: 0;
37
62
  visibility: hidden;
38
63
  }
64
+
39
65
  .hoverIcon:hover .arrow {
40
66
  opacity: 1;
41
67
  visibility: visible;
42
68
  }
69
+
43
70
  .value {
44
71
  composes: dotted from '~@zohodesk/components/es/common/common.module.css';
45
72
  }
73
+
46
74
  .search {
47
75
  padding-block: var(--zd_size6) 0 ;
48
- padding-inline:var(--zd_size20) ;
76
+ padding-inline: var(--zd_size20) ;
49
77
  }
78
+
50
79
  .svgWrapper {
51
80
  padding-block-end: var(--zd_size25) ;
52
81
  }
82
+
53
83
  .readOnly {
54
84
  cursor: no-drop;
55
85
  }
86
+
56
87
  .cursorDefault {
57
88
  cursor: default;
58
89
  }
90
+
59
91
  .cursor {
60
92
  cursor: pointer;
61
93
  }
94
+
62
95
  [dir=ltr] .dropBoxContainer {
63
96
  text-align: left;
64
97
  }
98
+
65
99
  [dir=rtl] .dropBoxContainer {
66
100
  text-align: right;
67
101
  }
102
+
68
103
  .iconBox {
69
104
  margin-inline-end: var(--zd_size4) ;
70
105
  }
71
- .iconBox > i {
106
+
107
+ .iconBox>i {
72
108
  display: block;
73
109
  }
110
+
74
111
  .loader {
75
112
  width: var(--zd_size40) ;
76
113
  margin: 0 auto ;
77
114
  }
115
+
78
116
  .seperatedLine {
79
117
  height: var(--zd_size1) ;
80
118
  margin-block: var(--zd_size9) var(--zd_size10) ;
81
- margin-inline:0 ;
119
+ margin-inline: 0 ;
82
120
  border-bottom: 1px solid var(--zdt_statusdropdown_line_border);
83
121
  }
122
+
123
+ .customDropBoxHeaderContainer {
124
+ margin-block-end: var(--zd_size6) ;
125
+ margin-inline: var(--zd_size1) ;
126
+ }
127
+
128
+ .dropBoxWithCustomHeader {
129
+ border-radius: 7px;
130
+ }
@@ -19,5 +19,6 @@ export const defaultProps = {
19
19
  isFetchingOptions: false,
20
20
  isAbsolutePositioningNeeded: true,
21
21
  isRestrictScroll: false,
22
- customClass: {}
22
+ customClass: {},
23
+ renderCustomDropBoxHeader: null
23
24
  };
@@ -59,5 +59,6 @@ export const propTypes = {
59
59
  targetOffset: PropTypes.object,
60
60
  customClass: PropTypes.shape({
61
61
  dropBoxClass: PropTypes.string
62
- })
62
+ }),
63
+ renderCustomDropBoxHeader: PropTypes.node
63
64
  };
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("@zohodesk/components/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css");
4
-
5
- require("@zohodesk/components/assets/Appearance/dark/themes/blue/blue_componentsCTA_DarkModifyCategory.module.css");
3
+ require("@zohodesk/components/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("@zohodesk/components/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css");
4
-
5
- require("@zohodesk/components/assets/Appearance/light/themes/blue/blue_componentsCTA_LightModifyCategory.module.css");
3
+ require("@zohodesk/components/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css");
4
-
5
- require("@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_componentsCTA_PureDarkModifyCategory.module.css");
3
+ require("@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("@zohodesk/components/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css");
4
-
5
- require("@zohodesk/components/assets/Appearance/dark/themes/green/green_componentsCTA_DarkModifyCategory.module.css");
3
+ require("@zohodesk/components/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("@zohodesk/components/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css");
4
-
5
- require("@zohodesk/components/assets/Appearance/light/themes/green/green_componentsCTA_LightModifyCategory.module.css");
3
+ require("@zohodesk/components/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("@zohodesk/components/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css");
4
-
5
- require("@zohodesk/components/assets/Appearance/pureDark/themes/green/green_componentsCTA_PureDarkModifyCategory.module.css");
3
+ require("@zohodesk/components/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("@zohodesk/components/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css");
4
-
5
- require("@zohodesk/components/assets/Appearance/dark/themes/orange/orange_componentsCTA_DarkModifyCategory.module.css");
3
+ require("@zohodesk/components/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("@zohodesk/components/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css");
4
-
5
- require("@zohodesk/components/assets/Appearance/light/themes/orange/orange_componentsCTA_LightModifyCategory.module.css");
3
+ require("@zohodesk/components/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css");
4
-
5
- require("@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_componentsCTA_PureDarkModifyCategory.module.css");
3
+ require("@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("@zohodesk/components/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css");
4
-
5
- require("@zohodesk/components/assets/Appearance/dark/themes/red/red_componentsCTA_DarkModifyCategory.module.css");
3
+ require("@zohodesk/components/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("@zohodesk/components/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css");
4
-
5
- require("@zohodesk/components/assets/Appearance/light/themes/red/red_componentsCTA_LightModifyCategory.module.css");
3
+ require("@zohodesk/components/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("@zohodesk/components/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css");
4
-
5
- require("@zohodesk/components/assets/Appearance/pureDark/themes/red/red_componentsCTA_PureDarkModifyCategory.module.css");
3
+ require("@zohodesk/components/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css");
4
-
5
- require("@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_componentsCTA_DarkModifyCategory.module.css");
3
+ require("@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css");
4
-
5
- require("@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_componentsCTA_LightModifyCategory.module.css");
3
+ require("@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css");
4
-
5
- require("@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_componentsCTA_PureDarkModifyCategory.module.css");
3
+ require("@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./../../../../../../assets/Appearance/dark/themes/blue/blue_DotCTA_DarkModifyCategory.module.css");
4
-
5
3
  require("./../../../../../../assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./../../../../../../assets/Appearance/light/themes/blue/blue_DotCTA_LightModifyCategory.module.css");
4
-
5
3
  require("./../../../../../../assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./../../../../../../assets/Appearance/pureDark/themes/blue/blue_DotCTA_PureDarkModifyCategory.module.css");
4
-
5
3
  require("./../../../../../../assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./../../../../../../assets/Appearance/dark/themes/green/green_DotCTA_DarkModifyCategory.module.css");
4
-
5
3
  require("./../../../../../../assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./../../../../../../assets/Appearance/light/themes/green/green_DotCTA_LightModifyCategory.module.css");
4
-
5
3
  require("./../../../../../../assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./../../../../../../assets/Appearance/pureDark/themes/green/green_DotCTA_PureDarkModifyCategory.module.css");
4
-
5
3
  require("./../../../../../../assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./../../../../../../assets/Appearance/dark/themes/orange/orange_DotCTA_DarkModifyCategory.module.css");
4
-
5
3
  require("./../../../../../../assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./../../../../../../assets/Appearance/light/themes/orange/orange_DotCTA_LightModifyCategory.module.css");
4
-
5
3
  require("./../../../../../../assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./../../../../../../assets/Appearance/pureDark/themes/orange/orange_DotCTA_PureDarkModifyCategory.module.css");
4
-
5
3
  require("./../../../../../../assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./../../../../../../assets/Appearance/dark/themes/red/red_DotCTA_DarkModifyCategory.module.css");
4
-
5
3
  require("./../../../../../../assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./../../../../../../assets/Appearance/light/themes/red/red_DotCTA_LightModifyCategory.module.css");
4
-
5
3
  require("./../../../../../../assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./../../../../../../assets/Appearance/pureDark/themes/red/red_DotCTA_PureDarkModifyCategory.module.css");
4
-
5
3
  require("./../../../../../../assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./../../../../../../assets/Appearance/dark/themes/yellow/yellow_DotCTA_DarkModifyCategory.module.css");
4
-
5
3
  require("./../../../../../../assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./../../../../../../assets/Appearance/light/themes/yellow/yellow_DotCTA_LightModifyCategory.module.css");
4
-
5
3
  require("./../../../../../../assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css");
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./../../../../../../assets/Appearance/pureDark/themes/yellow/yellow_DotCTA_PureDarkModifyCategory.module.css");
4
-
5
3
  require("./../../../../../../assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css");