@zohodesk/dot 1.9.11 → 1.9.13

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 (68) hide show
  1. package/README.md +20 -0
  2. package/es/ActionButton/__tests__/ActionButton.spec.js +4 -5
  3. package/es/AttachmentViewer/AttachmentImage.js +3 -1
  4. package/es/AttachmentViewer/AttachmentViewer.js +340 -273
  5. package/es/AttachmentViewer/AttachmentViewer.module.css +8 -15
  6. package/es/AttachmentViewer/__tests__/AttachmentViewer.spec.js +104 -100
  7. package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +778 -1
  8. package/es/AttachmentViewer/props/defaultProps.js +4 -2
  9. package/es/AttachmentViewer/props/propTypes.js +9 -2
  10. package/es/AttachmentViewer/utils.js +6 -7
  11. package/es/AudioPlayer/utils/utils.js +2 -5
  12. package/es/DotProvider/hooks/useDotProvider.js +14 -15
  13. package/es/DotProvider/hooks/useDownloadAssetsAndSetAttr.js +12 -13
  14. package/es/DotProvider/props/defaultProps.js +1 -1
  15. package/es/DotProvider/utils/assetPromiseHandlers/themeAppearanceAssetPromise.js +3 -4
  16. package/es/DotProvider/utils/assetPromiseHandlers/themeColorAssetPromise.js +4 -5
  17. package/es/DotProvider/utils/errorValidation.js +5 -6
  18. package/es/DotProvider/utils/getAssetsImportPromises.js +4 -5
  19. package/es/Drawer/Drawer.js +6 -8
  20. package/es/FreezeLayer/css/cssJSLogic.js +4 -5
  21. package/es/Hooks/Dragger/useDragger.js +5 -6
  22. package/es/Hooks/Dragger/utils/DraggerUtil.js +7 -8
  23. package/es/Hooks/useFreezeLayer.js +4 -5
  24. package/es/Link/Link.js +4 -3
  25. package/es/Link/props/propTypes.js +1 -0
  26. package/es/Onboarding/CarouselDots/CarouselDots.js +29 -32
  27. package/es/Onboarding/Onboarding.js +23 -24
  28. package/es/Onboarding/hooks/useOnboarding.js +4 -5
  29. package/es/Onboarding/hooks/useOnboardingSlider.js +5 -6
  30. package/es/deprecated/SelectDropdown/SelectDropdown.js +43 -47
  31. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +214 -225
  32. package/es/errorstate/Inconvenience/Inconvenience.js +32 -36
  33. package/es/errorstate/NoRequestFound/NoRequestFound.js +32 -36
  34. package/es/errorstate/PermissionPlay/PermissionPlay.js +31 -35
  35. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +32 -36
  36. package/es/errorstate/UnableToProcess/UnableToProcess.js +32 -36
  37. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +32 -36
  38. package/es/errorstate/WillBack/WillBack.js +30 -34
  39. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +81 -85
  40. package/es/list/status/StatusDropdown/StatusDropdown.js +109 -113
  41. package/es/list/status/StatusDropdown/__tests__/StatusDropdown.spec.js +3 -4
  42. package/es/lookup/header/Search/Search.js +4 -5
  43. package/es/lookup/header/Search/__tests__/Search.spec.js +3 -4
  44. package/es/lookup/header/ViewDropDown/ViewDropDown.js +67 -75
  45. package/es/utils/General.js +2 -7
  46. package/es/utils/editorUtils.js +1 -5
  47. package/es/version2/lookup/AlertHeader/AlertHeader.js +5 -3
  48. package/es/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +24 -0
  49. package/es/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +34 -0
  50. package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +4 -5
  51. package/es/version2/lookup/AlertHeader/props/propTypes.js +2 -1
  52. package/es/version2/notification/DesktopNotification/DesktopNotification.js +59 -63
  53. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +40 -44
  54. package/lib/AttachmentViewer/AttachmentImage.js +3 -1
  55. package/lib/AttachmentViewer/AttachmentViewer.js +158 -82
  56. package/lib/AttachmentViewer/AttachmentViewer.module.css +8 -15
  57. package/lib/AttachmentViewer/__tests__/AttachmentViewer.spec.js +100 -100
  58. package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +778 -1
  59. package/lib/AttachmentViewer/props/defaultProps.js +6 -2
  60. package/lib/AttachmentViewer/props/propTypes.js +9 -2
  61. package/lib/DotProvider/props/defaultProps.js +2 -2
  62. package/lib/Link/Link.js +4 -3
  63. package/lib/Link/props/propTypes.js +1 -0
  64. package/lib/version2/lookup/AlertHeader/AlertHeader.js +5 -2
  65. package/lib/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +26 -0
  66. package/lib/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +34 -0
  67. package/lib/version2/lookup/AlertHeader/props/propTypes.js +2 -1
  68. package/package.json +26 -24
@@ -177,17 +177,11 @@ export class ToggleDropDown extends Component {
177
177
 
178
178
  if (this.props.from == 'activityFilter') {
179
179
  //Temproary
180
- const results = this.props.options.filter(_ref => {
181
- let {
182
- isDisabled: id1
183
- } = _ref;
184
- return !prevProps.options.some(_ref2 => {
185
- let {
186
- isDisabled: id2
187
- } = _ref2;
188
- return id2 === id1;
189
- });
190
- });
180
+ const results = this.props.options.filter(({
181
+ isDisabled: id1
182
+ }) => !prevProps.options.some(({
183
+ isDisabled: id2
184
+ }) => id2 === id1));
191
185
 
192
186
  if (results.length > 0) {
193
187
  this.setState({
@@ -437,8 +431,7 @@ export class ToggleDropDown extends Component {
437
431
  isNextOptions && getNextOptions && this.handleFetchOptions(getNextOptions, searchValue);
438
432
  }
439
433
 
440
- handleFetchOptions(APICall) {
441
- let searchValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
434
+ handleFetchOptions(APICall, searchValue = '') {
442
435
  let {
443
436
  isFetchingOptions = false
444
437
  } = this.state;
@@ -469,10 +462,9 @@ export class ToggleDropDown extends Component {
469
462
  }
470
463
  }
471
464
 
472
- responsiveFunc(_ref3) {
473
- let {
474
- mediaQueryOR
475
- } = _ref3;
465
+ responsiveFunc({
466
+ mediaQueryOR
467
+ }) {
476
468
  return {
477
469
  tabletMode: mediaQueryOR([{
478
470
  maxWidth: 700
@@ -617,217 +609,137 @@ export class ToggleDropDown extends Component {
617
609
  }) : null)))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
618
610
  query: this.responsiveFunc,
619
611
  responsiveId: "Helmet"
620
- }, _ref4 => {
621
- let {
622
- tabletMode
623
- } = _ref4;
624
- return /*#__PURE__*/React.createElement(ResponsiveDropBox, _extends({
625
- boxPosition: position,
626
- isActive: isPopupReady,
627
- onClick: removeClose,
628
- size: boxSize,
629
- right: right,
630
- left: left,
631
- top: top,
632
- bottom: bottom,
633
- isArrow: isArrow,
634
- isAnimate: true,
635
- getRef: getContainerRef,
636
- customClass: {
637
- customDropBoxWrap: style.dropBoxContainer,
638
- customDropBox: customDropBox
639
- },
640
- needResponsive: needResponsive,
641
- isPadding: isPadding,
642
- tabindex: "0",
643
- a11y: {
644
- role: !isSearch ? 'menu' : undefined,
645
- ariaLabelledby: !isSearch ? ariaTitleId : undefined
646
- },
647
- palette: palette,
648
- isResponsivePadding: true,
649
- needFocusScope: true,
650
- isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
651
- positionsOffset: positionsOffset,
652
- targetOffset: targetOffset,
653
- isRestrictScroll: isRestrictScroll,
654
- customProps: {
655
- focusScopeProps: {
656
- loadNextOptions: this.handleGetNextOptions,
657
- searchValue: searchValue,
658
- isFetchingOptions: isFetchingOptions
659
- }
660
- },
661
- dataId: `${dataId}_dropbox`
662
- }, DropBoxProps, {
663
- onClose: this.handleTogglePopup
664
- }), /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
665
- className: style.search
666
- }, /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
667
- placeHolder: placeHolderText,
668
- onChange: this.handleChange,
669
- value: searchValue,
670
- onClear: this.onSearchClear,
671
- size: searchBoxSize // inputRef={this.searchInputRef}
672
- ,
673
- customProps: {
674
- TextBoxProps: {
675
- 'data-a11y-autofocus': true
676
- }
677
- } //search
678
- // onKeyDown={this.handleKeyDown}
679
- ,
680
- dataId: `${dataId}_search`,
681
- a11y: {
682
- role: 'combobox',
683
- ariaOwns: ariaTitleId,
684
- // ariaActivedescendant: allyOptionsArr[selectedIndex] && allyOptionsArr[selectedIndex][keyName],
685
- ariaAutocomplete: 'list',
686
- ariaHaspopup: true,
687
- ariaExpanded: true
612
+ }, ({
613
+ tabletMode
614
+ }) => /*#__PURE__*/React.createElement(ResponsiveDropBox, _extends({
615
+ boxPosition: position,
616
+ isActive: isPopupReady,
617
+ onClick: removeClose,
618
+ size: boxSize,
619
+ right: right,
620
+ left: left,
621
+ top: top,
622
+ bottom: bottom,
623
+ isArrow: isArrow,
624
+ isAnimate: true,
625
+ getRef: getContainerRef,
626
+ customClass: {
627
+ customDropBoxWrap: style.dropBoxContainer,
628
+ customDropBox: customDropBox
629
+ },
630
+ needResponsive: needResponsive,
631
+ isPadding: isPadding,
632
+ tabindex: "0",
633
+ a11y: {
634
+ role: !isSearch ? 'menu' : undefined,
635
+ ariaLabelledby: !isSearch ? ariaTitleId : undefined
636
+ },
637
+ palette: palette,
638
+ isResponsivePadding: true,
639
+ needFocusScope: true,
640
+ isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
641
+ positionsOffset: positionsOffset,
642
+ targetOffset: targetOffset,
643
+ isRestrictScroll: isRestrictScroll,
644
+ customProps: {
645
+ focusScopeProps: {
646
+ loadNextOptions: this.handleGetNextOptions,
647
+ searchValue: searchValue,
648
+ isFetchingOptions: isFetchingOptions
688
649
  }
689
- }, TextBoxIconProps))) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
690
- className: style.title
650
+ },
651
+ dataId: `${dataId}_dropbox`
652
+ }, DropBoxProps, {
653
+ onClose: this.handleTogglePopup
654
+ }), /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
655
+ className: style.search
656
+ }, /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
657
+ placeHolder: placeHolderText,
658
+ onChange: this.handleChange,
659
+ value: searchValue,
660
+ onClear: this.onSearchClear,
661
+ size: searchBoxSize // inputRef={this.searchInputRef}
662
+ ,
663
+ customProps: {
664
+ TextBoxProps: {
665
+ 'data-a11y-autofocus': true
666
+ }
667
+ } //search
668
+ // onKeyDown={this.handleKeyDown}
669
+ ,
670
+ dataId: `${dataId}_search`,
671
+ a11y: {
672
+ role: 'combobox',
673
+ ariaOwns: ariaTitleId,
674
+ // ariaActivedescendant: allyOptionsArr[selectedIndex] && allyOptionsArr[selectedIndex][keyName],
675
+ ariaAutocomplete: 'list',
676
+ ariaHaspopup: true,
677
+ ariaExpanded: true
678
+ }
679
+ }, TextBoxIconProps))) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
680
+ className: style.title
681
+ }, /*#__PURE__*/React.createElement(DropDownHeading, {
682
+ text: title,
683
+ htmlId: ariaTitleId,
684
+ palette: palette,
685
+ a11y: {
686
+ role: 'heading'
687
+ },
688
+ customClass: style.dropdown
689
+ })), /*#__PURE__*/React.createElement(Box, {
690
+ id: ariaTitleId,
691
+ flexible: true,
692
+ shrink: true,
693
+ scroll: "vertical",
694
+ preventParentScroll: "vertical",
695
+ dataId: `${dataId}_list`,
696
+ className: `${tabletMode ? style.responsivemaxHgt : style.maxHgt} ${customListBox}`,
697
+ eleRef: this.scrollContentRef,
698
+ onScroll: this.handleScroll,
699
+ role: isSearch ? 'listbox' : 'menu',
700
+ "aria-labelledby": isSearch ? ariaTitleId : undefined,
701
+ "data-scroll": "true"
702
+ }, isDataLoaded ? options && options.length != 0 ? isGroupDropDown ? /*#__PURE__*/React.createElement(React.Fragment, null, options.map(group => {
703
+ const groupName = group[groupNameKey];
704
+ const groupOptions = group[groupOptionsKey];
705
+ const {
706
+ needDivider
707
+ } = group;
708
+ return /*#__PURE__*/React.createElement(Fragment, {
709
+ key: `index${groupName}`
710
+ }, needDivider && /*#__PURE__*/React.createElement("div", {
711
+ className: style.seperatedLine
712
+ }), groupName && /*#__PURE__*/React.createElement("div", {
713
+ className: style.groupName
691
714
  }, /*#__PURE__*/React.createElement(DropDownHeading, {
692
- text: title,
693
- htmlId: ariaTitleId,
715
+ text: groupName,
694
716
  palette: palette,
695
717
  a11y: {
696
718
  role: 'heading'
697
- },
698
- customClass: style.dropdown
699
- })), /*#__PURE__*/React.createElement(Box, {
700
- id: ariaTitleId,
701
- flexible: true,
702
- shrink: true,
703
- scroll: "vertical",
704
- preventParentScroll: "vertical",
705
- dataId: `${dataId}_list`,
706
- className: `${tabletMode ? style.responsivemaxHgt : style.maxHgt} ${customListBox}`,
707
- eleRef: this.scrollContentRef,
708
- onScroll: this.handleScroll,
709
- role: isSearch ? 'listbox' : 'menu',
710
- "aria-labelledby": isSearch ? ariaTitleId : undefined,
711
- "data-scroll": "true"
712
- }, isDataLoaded ? options && options.length != 0 ? isGroupDropDown ? /*#__PURE__*/React.createElement(React.Fragment, null, options.map(group => {
713
- const groupName = group[groupNameKey];
714
- const groupOptions = group[groupOptionsKey];
715
- const {
716
- needDivider
717
- } = group;
718
- return /*#__PURE__*/React.createElement(Fragment, {
719
- key: `index${groupName}`
720
- }, needDivider && /*#__PURE__*/React.createElement("div", {
721
- className: style.seperatedLine
722
- }), groupName && /*#__PURE__*/React.createElement("div", {
723
- className: style.groupName
724
- }, /*#__PURE__*/React.createElement(DropDownHeading, {
725
- text: groupName,
726
- palette: palette,
727
- a11y: {
728
- role: 'heading'
729
- }
730
- })), groupOptions && groupOptions.map(item => {
731
- const {
732
- iconName,
733
- iconSize,
734
- iconClass,
735
- title,
736
- palette: _palette,
737
- disableTitle = '',
738
- isDisabled = false,
739
- secondaryValue
740
- } = item;
741
- listIndex += 1;
742
- return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
743
- key: listIndex,
744
- dataId: item[keyName],
745
- value: item[keyName],
746
- id: item[idName],
747
- active: selectedId === item[idName],
748
- onClick: this.onSelect.bind(this, item),
749
- index: listIndex // highlight={selectedIndex === listIndex}
750
- ,
751
- disableTitle: disableTitle,
752
- isDisabled: isDisabled,
753
- iconName: iconName,
754
- iconClass: iconClass,
755
- iconSize: iconSize,
756
- needTick: needTick,
757
- needBorder: false // onMouseEnter={this.handleMouseEnter}
758
- ,
759
- getRef: this.itemRef,
760
- title: title ? title : item[keyName],
761
- palette: _palette || palette,
762
- needMultiLineText: needMultiLineText,
763
- autoHover: true,
764
- a11y: {
765
- role: isSearch ? 'option' : 'menuitem',
766
- ariaSelected: selectedId === item[idName],
767
- ariaLabel: item[keyName]
768
- },
769
- secondaryValue: secondaryValue
770
- }, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
771
- key: listIndex,
772
- dataId: item[keyName],
773
- value: item[keyName],
774
- id: item[idName],
775
- active: selectedId === item[idName],
776
- onClick: this.onSelect.bind(this, item),
777
- isDisabled: isDisabled,
778
- disableTitle: disableTitle,
779
- index: listIndex // highlight={selectedIndex === listIndex}
780
- ,
781
- needTick: needTick,
782
- needBorder: false // onMouseEnter={this.handleMouseEnter}
783
- ,
784
- getRef: this.itemRef,
785
- title: title ? title : item[keyName],
786
- palette: _palette || palette,
787
- needMultiLineText: needMultiLineText,
788
- autoHover: true,
789
- a11y: {
790
- role: isSearch ? 'option' : 'menuitem',
791
- ariaSelected: selectedId === item[idName],
792
- ariaLabel: item[keyName]
793
- },
794
- secondaryValue: secondaryValue
795
- }, ListItemProps));
796
- }));
797
- }), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
798
- isCover: false,
799
- align: "both"
800
- }, /*#__PURE__*/React.createElement(Loader, null))) : /*#__PURE__*/React.createElement(React.Fragment, null, options.map((item, i) => {
719
+ }
720
+ })), groupOptions && groupOptions.map(item => {
801
721
  const {
802
722
  iconName,
803
723
  iconSize,
804
724
  iconClass,
805
725
  title,
806
726
  palette: _palette,
807
- needDivider,
808
- isDisabled = false,
809
727
  disableTitle = '',
728
+ isDisabled = false,
810
729
  secondaryValue
811
730
  } = item;
812
-
813
- if (!needDivider) {
814
- listIndex += 1;
815
- }
816
-
817
- return /*#__PURE__*/React.createElement(Fragment, {
818
- key: i
819
- }, needDivider ? /*#__PURE__*/React.createElement("div", {
820
- className: style.seperatedLine
821
- }) : iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
731
+ listIndex += 1;
732
+ return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
733
+ key: listIndex,
822
734
  dataId: item[keyName],
823
735
  value: item[keyName],
824
736
  id: item[idName],
825
737
  active: selectedId === item[idName],
826
738
  onClick: this.onSelect.bind(this, item),
827
- index: listIndex,
828
- disableTitle: disableTitle,
829
- isDisabled: isDisabled // highlight={selectedIndex === listIndex}
739
+ index: listIndex // highlight={selectedIndex === listIndex}
830
740
  ,
741
+ disableTitle: disableTitle,
742
+ isDisabled: isDisabled,
831
743
  iconName: iconName,
832
744
  iconClass: iconClass,
833
745
  iconSize: iconSize,
@@ -836,7 +748,6 @@ export class ToggleDropDown extends Component {
836
748
  ,
837
749
  getRef: this.itemRef,
838
750
  title: title ? title : item[keyName],
839
- key: listIndex,
840
751
  palette: _palette || palette,
841
752
  needMultiLineText: needMultiLineText,
842
753
  autoHover: true,
@@ -851,10 +762,10 @@ export class ToggleDropDown extends Component {
851
762
  dataId: item[keyName],
852
763
  value: item[keyName],
853
764
  id: item[idName],
854
- disableTitle: disableTitle,
855
- isDisabled: isDisabled,
856
765
  active: selectedId === item[idName],
857
766
  onClick: this.onSelect.bind(this, item),
767
+ isDisabled: isDisabled,
768
+ disableTitle: disableTitle,
858
769
  index: listIndex // highlight={selectedIndex === listIndex}
859
770
  ,
860
771
  needTick: needTick,
@@ -871,20 +782,98 @@ export class ToggleDropDown extends Component {
871
782
  ariaLabel: item[keyName]
872
783
  },
873
784
  secondaryValue: secondaryValue
874
- }, ListItemProps)));
875
- }), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
876
- isCover: false,
877
- align: "both"
878
- }, /*#__PURE__*/React.createElement(Loader, null))) : /*#__PURE__*/React.createElement(CommonEmptyState, {
879
- className: style.svgWrapper,
880
- description: searchEmptyHint,
881
- title: searchErrorText || 'No results',
882
- size: "small",
883
- getEmptyState: this.emptySearchSVG
884
- }) : /*#__PURE__*/React.createElement("div", {
885
- className: style.loader
886
- }, /*#__PURE__*/React.createElement(Loader, null))), getFooter ? /*#__PURE__*/React.createElement(Box, null, getFooter()) : null));
887
- }) : null);
785
+ }, ListItemProps));
786
+ }));
787
+ }), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
788
+ isCover: false,
789
+ align: "both"
790
+ }, /*#__PURE__*/React.createElement(Loader, null))) : /*#__PURE__*/React.createElement(React.Fragment, null, options.map((item, i) => {
791
+ const {
792
+ iconName,
793
+ iconSize,
794
+ iconClass,
795
+ title,
796
+ palette: _palette,
797
+ needDivider,
798
+ isDisabled = false,
799
+ disableTitle = '',
800
+ secondaryValue
801
+ } = item;
802
+
803
+ if (!needDivider) {
804
+ listIndex += 1;
805
+ }
806
+
807
+ return /*#__PURE__*/React.createElement(Fragment, {
808
+ key: i
809
+ }, needDivider ? /*#__PURE__*/React.createElement("div", {
810
+ className: style.seperatedLine
811
+ }) : iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
812
+ dataId: item[keyName],
813
+ value: item[keyName],
814
+ id: item[idName],
815
+ active: selectedId === item[idName],
816
+ onClick: this.onSelect.bind(this, item),
817
+ index: listIndex,
818
+ disableTitle: disableTitle,
819
+ isDisabled: isDisabled // highlight={selectedIndex === listIndex}
820
+ ,
821
+ iconName: iconName,
822
+ iconClass: iconClass,
823
+ iconSize: iconSize,
824
+ needTick: needTick,
825
+ needBorder: false // onMouseEnter={this.handleMouseEnter}
826
+ ,
827
+ getRef: this.itemRef,
828
+ title: title ? title : item[keyName],
829
+ key: listIndex,
830
+ palette: _palette || palette,
831
+ needMultiLineText: needMultiLineText,
832
+ autoHover: true,
833
+ a11y: {
834
+ role: isSearch ? 'option' : 'menuitem',
835
+ ariaSelected: selectedId === item[idName],
836
+ ariaLabel: item[keyName]
837
+ },
838
+ secondaryValue: secondaryValue
839
+ }, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
840
+ key: listIndex,
841
+ dataId: item[keyName],
842
+ value: item[keyName],
843
+ id: item[idName],
844
+ disableTitle: disableTitle,
845
+ isDisabled: isDisabled,
846
+ active: selectedId === item[idName],
847
+ onClick: this.onSelect.bind(this, item),
848
+ index: listIndex // highlight={selectedIndex === listIndex}
849
+ ,
850
+ needTick: needTick,
851
+ needBorder: false // onMouseEnter={this.handleMouseEnter}
852
+ ,
853
+ getRef: this.itemRef,
854
+ title: title ? title : item[keyName],
855
+ palette: _palette || palette,
856
+ needMultiLineText: needMultiLineText,
857
+ autoHover: true,
858
+ a11y: {
859
+ role: isSearch ? 'option' : 'menuitem',
860
+ ariaSelected: selectedId === item[idName],
861
+ ariaLabel: item[keyName]
862
+ },
863
+ secondaryValue: secondaryValue
864
+ }, ListItemProps)));
865
+ }), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
866
+ isCover: false,
867
+ align: "both"
868
+ }, /*#__PURE__*/React.createElement(Loader, null))) : /*#__PURE__*/React.createElement(CommonEmptyState, {
869
+ className: style.svgWrapper,
870
+ description: searchEmptyHint,
871
+ title: searchErrorText || 'No results',
872
+ size: "small",
873
+ getEmptyState: this.emptySearchSVG
874
+ }) : /*#__PURE__*/React.createElement("div", {
875
+ className: style.loader
876
+ }, /*#__PURE__*/React.createElement(Loader, null))), getFooter ? /*#__PURE__*/React.createElement(Box, null, getFooter()) : null))) : null);
888
877
  }
889
878
 
890
879
  }
@@ -13,10 +13,9 @@ export default class Inconvenience extends React.Component {
13
13
  this.responsiveFunc = this.responsiveFunc.bind(this);
14
14
  }
15
15
 
16
- responsiveFunc(_ref) {
17
- let {
18
- mediaQueryOR
19
- } = _ref;
16
+ responsiveFunc({
17
+ mediaQueryOR
18
+ }) {
20
19
  return {
21
20
  tablet: mediaQueryOR([{
22
21
  minWidth: 481,
@@ -41,38 +40,35 @@ export default class Inconvenience extends React.Component {
41
40
  } = this.props;
42
41
  return /*#__PURE__*/React.createElement(ResponsiveReceiver, {
43
42
  query: this.responsiveFunc
44
- }, _ref2 => {
45
- let {
46
- tablet,
47
- uptoMobile
48
- } = _ref2;
49
- return /*#__PURE__*/React.createElement(Container, {
50
- className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
51
- dataId: dataId,
52
- scroll: "vertical"
53
- }, /*#__PURE__*/React.createElement(Box, {
54
- className: commonStyle.top
55
- }, title ? /*#__PURE__*/React.createElement("div", {
56
- className: uptoMobile ? commonStyle.mobileTitle : tablet ? commonStyle.tabletTitle : commonStyle.title
57
- }, title) : null, subtitle ? /*#__PURE__*/React.createElement("div", {
58
- className: uptoMobile ? commonStyle.mobileSubTitle : tablet ? commonStyle.tabletSubTitle : commonStyle.subtitle
59
- }, subtitle) : null), /*#__PURE__*/React.createElement(Box, {
60
- className: `${style.imageContainer} ${uptoMobile ? commonStyle.mobileImageContainer : tablet ? commonStyle.tabletImageContainer : commonStyle.imageContainer}`
61
- }, /*#__PURE__*/React.createElement(InconvenienceSVG, {
62
- isFluid: true,
63
- dataId: `${dataId}_svg`
64
- })), /*#__PURE__*/React.createElement(Box, {
65
- className: `${uptoMobile || tablet ? '' : commonStyle.footerWidth} ${commonStyle.footer}`
66
- }, /*#__PURE__*/React.createElement("div", {
67
- className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
68
- }, description), /*#__PURE__*/React.createElement(LinkText, {
69
- text: urlText,
70
- href: url,
71
- onClick: onClick,
72
- dataId: `${dataId}_link`,
73
- customClass: uptoMobile || tablet ? commonStyle.tabletBtmText : ''
74
- })));
75
- });
43
+ }, ({
44
+ tablet,
45
+ uptoMobile
46
+ }) => /*#__PURE__*/React.createElement(Container, {
47
+ className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
48
+ dataId: dataId,
49
+ scroll: "vertical"
50
+ }, /*#__PURE__*/React.createElement(Box, {
51
+ className: commonStyle.top
52
+ }, title ? /*#__PURE__*/React.createElement("div", {
53
+ className: uptoMobile ? commonStyle.mobileTitle : tablet ? commonStyle.tabletTitle : commonStyle.title
54
+ }, title) : null, subtitle ? /*#__PURE__*/React.createElement("div", {
55
+ className: uptoMobile ? commonStyle.mobileSubTitle : tablet ? commonStyle.tabletSubTitle : commonStyle.subtitle
56
+ }, subtitle) : null), /*#__PURE__*/React.createElement(Box, {
57
+ className: `${style.imageContainer} ${uptoMobile ? commonStyle.mobileImageContainer : tablet ? commonStyle.tabletImageContainer : commonStyle.imageContainer}`
58
+ }, /*#__PURE__*/React.createElement(InconvenienceSVG, {
59
+ isFluid: true,
60
+ dataId: `${dataId}_svg`
61
+ })), /*#__PURE__*/React.createElement(Box, {
62
+ className: `${uptoMobile || tablet ? '' : commonStyle.footerWidth} ${commonStyle.footer}`
63
+ }, /*#__PURE__*/React.createElement("div", {
64
+ className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
65
+ }, description), /*#__PURE__*/React.createElement(LinkText, {
66
+ text: urlText,
67
+ href: url,
68
+ onClick: onClick,
69
+ dataId: `${dataId}_link`,
70
+ customClass: uptoMobile || tablet ? commonStyle.tabletBtmText : ''
71
+ }))));
76
72
  }
77
73
 
78
74
  }
@@ -13,10 +13,9 @@ export default class NoRequestFound extends React.Component {
13
13
  this.responsiveFunc = this.responsiveFunc.bind(this);
14
14
  }
15
15
 
16
- responsiveFunc(_ref) {
17
- let {
18
- mediaQueryOR
19
- } = _ref;
16
+ responsiveFunc({
17
+ mediaQueryOR
18
+ }) {
20
19
  return {
21
20
  tablet: mediaQueryOR([{
22
21
  minWidth: 481,
@@ -41,38 +40,35 @@ export default class NoRequestFound extends React.Component {
41
40
  } = this.props;
42
41
  return /*#__PURE__*/React.createElement(ResponsiveReceiver, {
43
42
  query: this.responsiveFunc
44
- }, _ref2 => {
45
- let {
46
- tablet,
47
- uptoMobile
48
- } = _ref2;
49
- return /*#__PURE__*/React.createElement(Container, {
50
- className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
51
- dataId: dataId,
52
- scroll: "vertical"
53
- }, /*#__PURE__*/React.createElement(Box, {
54
- className: commonStyle.top
55
- }, title ? /*#__PURE__*/React.createElement("div", {
56
- className: uptoMobile ? commonStyle.mobileTitle : tablet ? commonStyle.tabletTitle : commonStyle.title
57
- }, title) : null, subtitle ? /*#__PURE__*/React.createElement("div", {
58
- className: uptoMobile ? commonStyle.mobileSubTitle : tablet ? commonStyle.tabletSubTitle : commonStyle.subtitle
59
- }, subtitle) : null), /*#__PURE__*/React.createElement(Box, {
60
- className: `${style.imageContainer} ${uptoMobile ? commonStyle.mobileImageContainer : tablet ? commonStyle.tabletImageContainer : commonStyle.imageContainer}`
61
- }, /*#__PURE__*/React.createElement(NoRequestFoundSVG, {
62
- isFluid: true,
63
- dataId: `${dataId}_svg`
64
- })), /*#__PURE__*/React.createElement(Box, {
65
- className: `${uptoMobile || tablet ? '' : commonStyle.footerWidth} ${commonStyle.footer}`
66
- }, /*#__PURE__*/React.createElement("div", {
67
- className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
68
- }, description), /*#__PURE__*/React.createElement(LinkText, {
69
- text: urlText,
70
- href: url,
71
- onClick: onClick,
72
- dataId: `${dataId}_link`,
73
- customClass: uptoMobile || tablet ? commonStyle.tabletBtmText : ''
74
- })));
75
- });
43
+ }, ({
44
+ tablet,
45
+ uptoMobile
46
+ }) => /*#__PURE__*/React.createElement(Container, {
47
+ className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
48
+ dataId: dataId,
49
+ scroll: "vertical"
50
+ }, /*#__PURE__*/React.createElement(Box, {
51
+ className: commonStyle.top
52
+ }, title ? /*#__PURE__*/React.createElement("div", {
53
+ className: uptoMobile ? commonStyle.mobileTitle : tablet ? commonStyle.tabletTitle : commonStyle.title
54
+ }, title) : null, subtitle ? /*#__PURE__*/React.createElement("div", {
55
+ className: uptoMobile ? commonStyle.mobileSubTitle : tablet ? commonStyle.tabletSubTitle : commonStyle.subtitle
56
+ }, subtitle) : null), /*#__PURE__*/React.createElement(Box, {
57
+ className: `${style.imageContainer} ${uptoMobile ? commonStyle.mobileImageContainer : tablet ? commonStyle.tabletImageContainer : commonStyle.imageContainer}`
58
+ }, /*#__PURE__*/React.createElement(NoRequestFoundSVG, {
59
+ isFluid: true,
60
+ dataId: `${dataId}_svg`
61
+ })), /*#__PURE__*/React.createElement(Box, {
62
+ className: `${uptoMobile || tablet ? '' : commonStyle.footerWidth} ${commonStyle.footer}`
63
+ }, /*#__PURE__*/React.createElement("div", {
64
+ className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
65
+ }, description), /*#__PURE__*/React.createElement(LinkText, {
66
+ text: urlText,
67
+ href: url,
68
+ onClick: onClick,
69
+ dataId: `${dataId}_link`,
70
+ customClass: uptoMobile || tablet ? commonStyle.tabletBtmText : ''
71
+ }))));
76
72
  }
77
73
 
78
74
  }