@zohodesk/dot 1.0.0-temp-232 → 1.0.0-temp-230.4

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 (67) hide show
  1. package/README.md +14 -2
  2. package/es/ActionButton/__tests__/ActionButton.spec.js +5 -4
  3. package/es/AttachmentViewer/AttachmentImage.js +3 -1
  4. package/es/AttachmentViewer/AttachmentViewer.js +340 -265
  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 +7 -6
  11. package/es/AudioPlayer/utils/utils.js +5 -2
  12. package/es/DotProvider/hooks/useDotProvider.js +15 -14
  13. package/es/DotProvider/hooks/useDownloadAssetsAndSetAttr.js +16 -21
  14. package/es/DotProvider/utils/assetPromiseHandlers/themeAppearanceAssetPromise.js +4 -3
  15. package/es/DotProvider/utils/assetPromiseHandlers/themeColorAssetPromise.js +5 -4
  16. package/es/DotProvider/utils/errorValidation.js +6 -5
  17. package/es/DotProvider/utils/getAssetsImportPromises.js +5 -4
  18. package/es/Drawer/Drawer.js +8 -6
  19. package/es/FreezeLayer/css/cssJSLogic.js +5 -4
  20. package/es/Hooks/Dragger/useDragger.js +6 -5
  21. package/es/Hooks/Dragger/utils/DraggerUtil.js +8 -7
  22. package/es/Hooks/useFreezeLayer.js +5 -4
  23. package/es/Link/Link.js +4 -3
  24. package/es/Link/props/propTypes.js +1 -0
  25. package/es/Onboarding/CarouselDots/CarouselDots.js +32 -29
  26. package/es/Onboarding/Onboarding.js +24 -23
  27. package/es/Onboarding/hooks/useOnboarding.js +5 -4
  28. package/es/Onboarding/hooks/useOnboardingSlider.js +6 -5
  29. package/es/deprecated/SelectDropdown/SelectDropdown.js +47 -43
  30. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +225 -214
  31. package/es/errorstate/Inconvenience/Inconvenience.js +36 -32
  32. package/es/errorstate/NoRequestFound/NoRequestFound.js +36 -32
  33. package/es/errorstate/PermissionPlay/PermissionPlay.js +35 -31
  34. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +36 -32
  35. package/es/errorstate/UnableToProcess/UnableToProcess.js +36 -32
  36. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +36 -32
  37. package/es/errorstate/WillBack/WillBack.js +34 -30
  38. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +85 -81
  39. package/es/list/status/StatusDropdown/StatusDropdown.js +113 -109
  40. package/es/list/status/StatusDropdown/__tests__/StatusDropdown.spec.js +4 -3
  41. package/es/lookup/header/Search/Search.js +5 -4
  42. package/es/lookup/header/Search/__tests__/Search.spec.js +4 -3
  43. package/es/lookup/header/ViewDropDown/ViewDropDown.js +75 -67
  44. package/es/utils/General.js +7 -2
  45. package/es/utils/editorUtils.js +5 -1
  46. package/es/version2/lookup/AlertHeader/AlertHeader.js +3 -5
  47. package/es/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +0 -24
  48. package/es/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +0 -34
  49. package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +5 -4
  50. package/es/version2/lookup/AlertHeader/props/propTypes.js +1 -2
  51. package/es/version2/notification/DesktopNotification/DesktopNotification.js +63 -59
  52. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +44 -40
  53. package/lib/AttachmentViewer/AttachmentImage.js +3 -1
  54. package/lib/AttachmentViewer/AttachmentViewer.js +164 -97
  55. package/lib/AttachmentViewer/AttachmentViewer.module.css +8 -15
  56. package/lib/AttachmentViewer/__tests__/AttachmentViewer.spec.js +100 -100
  57. package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +778 -1
  58. package/lib/AttachmentViewer/props/defaultProps.js +6 -2
  59. package/lib/AttachmentViewer/props/propTypes.js +9 -2
  60. package/lib/DotProvider/hooks/useDownloadAssetsAndSetAttr.js +3 -9
  61. package/lib/Link/Link.js +4 -3
  62. package/lib/Link/props/propTypes.js +1 -0
  63. package/lib/version2/lookup/AlertHeader/AlertHeader.js +2 -5
  64. package/lib/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +0 -26
  65. package/lib/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +0 -34
  66. package/lib/version2/lookup/AlertHeader/props/propTypes.js +1 -2
  67. package/package.json +5 -5
@@ -177,11 +177,17 @@ export class ToggleDropDown extends Component {
177
177
 
178
178
  if (this.props.from == 'activityFilter') {
179
179
  //Temproary
180
- const results = this.props.options.filter(({
181
- isDisabled: id1
182
- }) => !prevProps.options.some(({
183
- isDisabled: id2
184
- }) => id2 === id1));
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
+ });
185
191
 
186
192
  if (results.length > 0) {
187
193
  this.setState({
@@ -431,7 +437,8 @@ export class ToggleDropDown extends Component {
431
437
  isNextOptions && getNextOptions && this.handleFetchOptions(getNextOptions, searchValue);
432
438
  }
433
439
 
434
- handleFetchOptions(APICall, searchValue = '') {
440
+ handleFetchOptions(APICall) {
441
+ let searchValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
435
442
  let {
436
443
  isFetchingOptions = false
437
444
  } = this.state;
@@ -462,9 +469,10 @@ export class ToggleDropDown extends Component {
462
469
  }
463
470
  }
464
471
 
465
- responsiveFunc({
466
- mediaQueryOR
467
- }) {
472
+ responsiveFunc(_ref3) {
473
+ let {
474
+ mediaQueryOR
475
+ } = _ref3;
468
476
  return {
469
477
  tabletMode: mediaQueryOR([{
470
478
  maxWidth: 700
@@ -609,137 +617,217 @@ export class ToggleDropDown extends Component {
609
617
  }) : null)))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
610
618
  query: this.responsiveFunc,
611
619
  responsiveId: "Helmet"
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
649
- }
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
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
666
688
  }
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
689
+ }, TextBoxIconProps))) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
690
+ className: style.title
714
691
  }, /*#__PURE__*/React.createElement(DropDownHeading, {
715
- text: groupName,
692
+ text: title,
693
+ htmlId: ariaTitleId,
716
694
  palette: palette,
717
695
  a11y: {
718
696
  role: 'heading'
719
- }
720
- })), groupOptions && groupOptions.map(item => {
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) => {
721
801
  const {
722
802
  iconName,
723
803
  iconSize,
724
804
  iconClass,
725
805
  title,
726
806
  palette: _palette,
727
- disableTitle = '',
807
+ needDivider,
728
808
  isDisabled = false,
809
+ disableTitle = '',
729
810
  secondaryValue
730
811
  } = item;
731
- listIndex += 1;
732
- return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
733
- key: listIndex,
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({
734
822
  dataId: item[keyName],
735
823
  value: item[keyName],
736
824
  id: item[idName],
737
825
  active: selectedId === item[idName],
738
826
  onClick: this.onSelect.bind(this, item),
739
- index: listIndex // highlight={selectedIndex === listIndex}
740
- ,
827
+ index: listIndex,
741
828
  disableTitle: disableTitle,
742
- isDisabled: isDisabled,
829
+ isDisabled: isDisabled // highlight={selectedIndex === listIndex}
830
+ ,
743
831
  iconName: iconName,
744
832
  iconClass: iconClass,
745
833
  iconSize: iconSize,
@@ -748,6 +836,7 @@ export class ToggleDropDown extends Component {
748
836
  ,
749
837
  getRef: this.itemRef,
750
838
  title: title ? title : item[keyName],
839
+ key: listIndex,
751
840
  palette: _palette || palette,
752
841
  needMultiLineText: needMultiLineText,
753
842
  autoHover: true,
@@ -762,10 +851,10 @@ export class ToggleDropDown extends Component {
762
851
  dataId: item[keyName],
763
852
  value: item[keyName],
764
853
  id: item[idName],
854
+ disableTitle: disableTitle,
855
+ isDisabled: isDisabled,
765
856
  active: selectedId === item[idName],
766
857
  onClick: this.onSelect.bind(this, item),
767
- isDisabled: isDisabled,
768
- disableTitle: disableTitle,
769
858
  index: listIndex // highlight={selectedIndex === listIndex}
770
859
  ,
771
860
  needTick: needTick,
@@ -782,98 +871,20 @@ export class ToggleDropDown extends Component {
782
871
  ariaLabel: item[keyName]
783
872
  },
784
873
  secondaryValue: secondaryValue
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);
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);
877
888
  }
878
889
 
879
890
  }
@@ -13,9 +13,10 @@ export default class Inconvenience extends React.Component {
13
13
  this.responsiveFunc = this.responsiveFunc.bind(this);
14
14
  }
15
15
 
16
- responsiveFunc({
17
- mediaQueryOR
18
- }) {
16
+ responsiveFunc(_ref) {
17
+ let {
18
+ mediaQueryOR
19
+ } = _ref;
19
20
  return {
20
21
  tablet: mediaQueryOR([{
21
22
  minWidth: 481,
@@ -40,35 +41,38 @@ export default class Inconvenience extends React.Component {
40
41
  } = this.props;
41
42
  return /*#__PURE__*/React.createElement(ResponsiveReceiver, {
42
43
  query: this.responsiveFunc
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
- }))));
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
+ });
72
76
  }
73
77
 
74
78
  }