@qualtrics/ui-react 2.21.0 → 2.22.1

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 (207) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/__shared/cjs/{index-0ae99de2.js → index-75d9309a.js} +4 -4
  3. package/dist/__shared/cjs/{index-201e8786.js → index-a8c1a789.js} +678 -568
  4. package/dist/components/Accordion/Accordion.js +2 -3
  5. package/dist/components/Accordion/Accordion2.js +3 -3
  6. package/dist/components/Accordion/AccordionHeader.js +5 -4
  7. package/dist/components/Accordion/AccordionPanel.js +3 -3
  8. package/dist/components/Accordion/AccordionSection.js +1 -2
  9. package/dist/components/Button/Button.js +3 -3
  10. package/dist/components/Button/Button2.js +2 -2
  11. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  12. package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
  13. package/dist/components/Checkbox/Checkbox.js +11 -11
  14. package/dist/components/Checkbox/Checkbox2.js +3 -3
  15. package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
  16. package/dist/components/ColorPicker/Alpha.js +12 -9
  17. package/dist/components/ColorPicker/ColorPicker.js +10 -8
  18. package/dist/components/ColorPicker/ColorPicker2.js +3 -3
  19. package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +8 -6
  20. package/dist/components/ColorPicker/Hue.js +3 -2
  21. package/dist/components/ColorPicker/Palette.js +7 -5
  22. package/dist/components/ColorPicker/Saturation.js +9 -8
  23. package/dist/components/ColorPicker/utils/hexToRgbaString.js +3 -2
  24. package/dist/components/ColorPicker/utils/rgbToHex.js +1 -1
  25. package/dist/components/ColorPicker/utils/validateHex.js +10 -9
  26. package/dist/components/Combobox/Combobox.js +48 -29
  27. package/dist/components/Combobox/Combobox2.js +3 -3
  28. package/dist/components/Combobox/ComboboxHeader.js +1 -1
  29. package/dist/components/Combobox/ComboboxIcon.js +3 -2
  30. package/dist/components/Combobox/ComboboxInput.js +4 -4
  31. package/dist/components/Combobox/ComboboxList.js +2 -2
  32. package/dist/components/ConfigPane/ConfigPane2.js +3 -3
  33. package/dist/components/Divider/Divider2.js +3 -3
  34. package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +5 -2
  35. package/dist/components/Dropdown/Dropdown.js +14 -9
  36. package/dist/components/Dropdown/Dropdown2.js +3 -3
  37. package/dist/components/Dropdown/DropdownButton.js +23 -19
  38. package/dist/components/Dropdown/DropdownList.js +4 -4
  39. package/dist/components/Dropdown/DropdownOption.js +6 -9
  40. package/dist/components/Dropdown/DropdownSearch.js +12 -6
  41. package/dist/components/FilePicker/FilePicker.js +13 -6
  42. package/dist/components/FilePicker/FilePicker2.js +3 -3
  43. package/dist/components/FormField/Caption.js +3 -3
  44. package/dist/components/FormField/FormField.js +2 -2
  45. package/dist/components/FormField/FormField2.js +3 -3
  46. package/dist/components/FormField/FormFieldContext.js +3 -3
  47. package/dist/components/FullScreenTakeover/FullScreenTakeover.js +5 -3
  48. package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
  49. package/dist/components/Icon/Icon.js +2 -2
  50. package/dist/components/IconButton/IconButton2.js +3 -3
  51. package/dist/components/InlineInput/InlineInput.js +12 -9
  52. package/dist/components/InlineInput/InlineInput2.js +3 -3
  53. package/dist/components/Input/Input.js +1 -1
  54. package/dist/components/Input/Input2.js +3 -3
  55. package/dist/components/Input/InputField.js +2 -2
  56. package/dist/components/InputGroup/InputGroup2.js +3 -3
  57. package/dist/components/Label/Label2.js +3 -3
  58. package/dist/components/Link/Link2.js +3 -3
  59. package/dist/components/LoadingSpinner/LoadingSpinner.js +1 -1
  60. package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
  61. package/dist/components/LogicEditor/ConditionSet.js +5 -5
  62. package/dist/components/LogicEditor/LogicEditor.js +1 -1
  63. package/dist/components/LogicEditor/LogicEditor2.js +3 -3
  64. package/dist/components/LogicEditor/utils.js +2 -1
  65. package/dist/components/Modal/Modal.js +14 -13
  66. package/dist/components/Modal/Modal2.js +3 -3
  67. package/dist/components/NewMenu/BaseMenu.js +44 -36
  68. package/dist/components/NewMenu/NewMenu.js +3 -3
  69. package/dist/components/NewMenu/SelectMenu/SelectMenu.js +2 -2
  70. package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +10 -7
  71. package/dist/components/NewMenu/parts/MenuItem.js +1 -1
  72. package/dist/components/NumberStepper/NumberStepper.js +7 -6
  73. package/dist/components/NumberStepper/NumberStepper2.js +3 -3
  74. package/dist/components/NumberStepper/NumberStepperDecrement.js +1 -1
  75. package/dist/components/NumberStepper/NumberStepperIncrement.js +1 -1
  76. package/dist/components/NumberStepper/NumberStepperInput.js +3 -3
  77. package/dist/components/PageLayout/PageLayout.js +3 -3
  78. package/dist/components/Pagination/Pagination.js +1 -1
  79. package/dist/components/Pagination/Pagination2.js +3 -3
  80. package/dist/components/Pagination/PaginationNextButton.js +5 -5
  81. package/dist/components/Pagination/PaginationPageInput.js +11 -9
  82. package/dist/components/Pagination/PaginationPreviousButton.js +5 -5
  83. package/dist/components/Popover/Popover.js +9 -7
  84. package/dist/components/Popover/Popover2.js +3 -3
  85. package/dist/components/QuickSearch/QuickSearch.js +4 -3
  86. package/dist/components/QuickSearch/QuickSearch2.js +3 -3
  87. package/dist/components/QuickSearch/QuickSearchInput.js +4 -4
  88. package/dist/components/Radio/Radio.js +12 -11
  89. package/dist/components/Radio/Radio2.js +3 -3
  90. package/dist/components/SearchInput/SearchInput.js +4 -3
  91. package/dist/components/SearchInput/SearchInput2.js +3 -3
  92. package/dist/components/SidebarNav/SidebarNav.js +2 -1
  93. package/dist/components/SidebarNav/SidebarNav2.js +3 -3
  94. package/dist/components/SidebarNav/SidebarNavLink.js +1 -1
  95. package/dist/components/Slider/RangeSlider.js +2 -2
  96. package/dist/components/Slider/Slider.js +1 -1
  97. package/dist/components/Slider/Slider2.js +3 -3
  98. package/dist/components/Slider/SliderButton.js +1 -1
  99. package/dist/components/Switch/Switch.js +11 -11
  100. package/dist/components/Switch/Switch2.js +3 -3
  101. package/dist/components/Table/Table2.js +3 -3
  102. package/dist/components/Tabs/Tab.js +3 -3
  103. package/dist/components/Tabs/TabList.js +6 -5
  104. package/dist/components/Tabs/TabPanel.js +3 -3
  105. package/dist/components/Tabs/Tabs2.js +3 -3
  106. package/dist/components/Tooltip/Tooltip.js +10 -4
  107. package/dist/components/Tooltip/Tooltip2.js +3 -3
  108. package/dist/components/UIProvider/UIProvider.js +2 -2
  109. package/dist/components/deprecated_ColorPicker/Alpha.js +4 -4
  110. package/dist/components/deprecated_ColorPicker/Color.js +6 -6
  111. package/dist/components/deprecated_ColorPicker/ColorPicker.js +2 -2
  112. package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
  113. package/dist/components/deprecated_ColorPicker/HexInput.js +1 -1
  114. package/dist/components/deprecated_ColorPicker/Hue.js +3 -3
  115. package/dist/components/deprecated_ColorPicker/Saturation.js +5 -5
  116. package/dist/components/deprecated_ColorPicker/Swatch.js +2 -2
  117. package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
  118. package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +2 -2
  119. package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +2 -2
  120. package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +8 -8
  121. package/dist/components/deprecated_Tabs/Tabs.js +11 -7
  122. package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
  123. package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
  124. package/dist/components/deprecated_Toolbar/ToolbarPanel.js +3 -3
  125. package/dist/components/deprecated_Toolbar/ToolbarPanels.js +4 -2
  126. package/dist/components/deprecated_Toolbar/ToolbarTab.js +8 -8
  127. package/dist/components/deprecated_Toolbar/ToolbarTabs.js +6 -3
  128. package/dist/hooks/useBreakpoints/useBreakpoints.js +1 -1
  129. package/dist/hooks/useClickOutside/useClickOutside.js +2 -1
  130. package/dist/hooks/useControllableState/useControllableState.js +2 -1
  131. package/dist/hooks/useEventListener/useEventListener.js +1 -1
  132. package/dist/hooks/useId/useId.js +1 -1
  133. package/dist/hooks/useOverlay/useOverlay.js +7 -6
  134. package/dist/hooks/useOverlay/useOverlay2.js +3 -3
  135. package/dist/hooks/useResponsiveValue/useResponsiveValue.js +2 -1
  136. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +4 -2
  137. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
  138. package/dist/icons/Icon.js +3 -3
  139. package/dist/icons/createIconComponent.js +1 -1
  140. package/dist/icons/index.js +1 -1
  141. package/dist/index.d.ts +14 -7
  142. package/dist/index.es.js +1 -1
  143. package/dist/index.js +3 -4
  144. package/dist/next/AdvancedTable/AdvancedTable.js +62 -52
  145. package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
  146. package/dist/next/AdvancedTable/AdvancedTableCell.js +6 -4
  147. package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +18 -10
  148. package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +7 -6
  149. package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +5 -4
  150. package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -1
  151. package/dist/next/AdvancedTable/AdvancedTableTypes.js +6 -6
  152. package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +3 -2
  153. package/dist/next/AdvancedTable/useComputedWidth.js +1 -1
  154. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +5 -3
  155. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
  156. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +1 -1
  157. package/dist/next/Combobox/Combobox2.js +3 -3
  158. package/dist/next/Combobox/ComboboxFlyout.js +2 -2
  159. package/dist/next/Combobox/ComboboxGroup.js +1 -1
  160. package/dist/next/Combobox/ComboboxInput.js +2 -2
  161. package/dist/next/Combobox/ComboboxOption.js +1 -1
  162. package/dist/next/Combobox/hooks/useComboboxFilteredGroup/useComboboxFilteredGroup.js +1 -1
  163. package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +12 -8
  164. package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +1 -1
  165. package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +3 -2
  166. package/dist/next/Combobox/hooks/useSelectedOptionScroll/useSelectedOptionScroll.js +2 -1
  167. package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +2 -1
  168. package/dist/next/Combobox/utils/nodeRegistration/nodeRegistration.js +1 -1
  169. package/dist/next/Drawer/Drawer.js +7 -4
  170. package/dist/next/Drawer/Drawer2.js +3 -3
  171. package/dist/next/FilterAnchor/FilterAnchor.js +3 -3
  172. package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
  173. package/dist/next/Input/Input.js +2 -2
  174. package/dist/next/Input/Input2.js +3 -3
  175. package/dist/next/Menu/Menu.js +5 -3
  176. package/dist/next/Menu/Menu2.js +3 -3
  177. package/dist/next/Menu/MenuItem.js +8 -9
  178. package/dist/next/Menu/MenuPane.js +20 -8
  179. package/dist/next/Menu/SubMenu.js +16 -18
  180. package/dist/next/Menu/useMutationObserver.js +1 -1
  181. package/dist/next/Menu/usePaneSearch.js +31 -21
  182. package/dist/next/PhoneNumberInput/PhoneNumberInput.js +7 -6
  183. package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
  184. package/dist/next/SplitButton/SplitButton.js +8 -2
  185. package/dist/next/SplitButton/SplitButton2.js +3 -3
  186. package/dist/next/TimePicker/TimeDropdown.js +4 -4
  187. package/dist/next/TimePicker/TimeInput.js +2 -2
  188. package/dist/next/TimePicker/TimePicker.js +4 -4
  189. package/dist/next/TimePicker/TimePicker2.js +3 -3
  190. package/dist/next/TimePicker/TimePickerIcon.js +2 -1
  191. package/dist/next/TimePicker/utils.js +14 -27
  192. package/dist/next/ToggleButton/styles.js +3 -3
  193. package/dist/next/index.d.ts +1 -1
  194. package/dist/next/index.js +317 -260
  195. package/dist/utils/Flyout/Flyout.js +1 -1
  196. package/dist/utils/Flyout/Flyout2.js +3 -3
  197. package/dist/utils/Popper/Popper.js +9 -5
  198. package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +2 -1
  199. package/dist/utils/Translation/containsComponentOrElement.js +1 -3
  200. package/dist/utils/Translation/useTranslation.js +4 -5
  201. package/dist/utils/filterChildren/filterChildren.js +2 -1
  202. package/dist/utils/getSubDataTestId/getSubDataTestId.js +1 -1
  203. package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
  204. package/dist/utils/mergeRefs/mergeRefs.js +1 -1
  205. package/dist/utils/wrapEvent/wrapEvent.js +2 -2
  206. package/next/package.json +1 -1
  207. package/package.json +2 -2
@@ -32,11 +32,11 @@ const InputField = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
32
32
  useFormFieldType('input');
33
33
  function handleFocus(e) {
34
34
  setFocused(true);
35
- onFocus?.(e);
35
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
36
36
  }
37
37
  function handleBlur(e) {
38
38
  setFocused(false);
39
- onBlur?.(e);
39
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
40
40
  }
41
41
  return /*#__PURE__*/React__default.createElement(Label, _extends({
42
42
  htmlFor: id,
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._6MGtb{border:1px solid #898989;border-radius:4px;height:36px;min-height:36px;color:#6a6d70;fill:#6a6d70;background-color:#fafafa;font-size:14px;display:inline-flex;justify-content:center;align-items:center;line-height:1;padding:0 13px}._6MGtb._4KVRy{height:26px;min-height:26px;padding:5px 8px}._samka{display:flex;align-items:stretch}._samka._V-5RE{width:100%}._samka ._Rd5uz{margin:0;position:relative;flex-shrink:0;z-index:10}._samka ._Rd5uz:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._samka ._Rd5uz:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._samka ._Rd5uz:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._samka ._Rd5uz:last-child,._samka ._Rd5uz:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._samka ._Rd5uz:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._samka ._Rd5uz._tia3j{flex-shrink:1;min-width:40px;z-index:0}._samka ._Rd5uz._tia3j._V-5RE{flex-grow:1}._samka ._Rd5uz:focus{z-index:20}";
4
- var styles = {"addon":"_6MGtb","small":"_4KVRy","inputGroup":"_samka","full":"_V-5RE","inputGroupElement":"_Rd5uz","input":"_tia3j"};
5
- var stylesheet="._6MGtb{border:1px solid #898989;border-radius:4px;height:36px;min-height:36px;color:#6a6d70;fill:#6a6d70;background-color:#fafafa;font-size:14px;display:inline-flex;justify-content:center;align-items:center;line-height:1;padding:0 13px}._6MGtb._4KVRy{height:26px;min-height:26px;padding:5px 8px}._samka{display:flex;align-items:stretch}._samka._V-5RE{width:100%}._samka ._Rd5uz{margin:0;position:relative;flex-shrink:0;z-index:10}._samka ._Rd5uz:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._samka ._Rd5uz:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._samka ._Rd5uz:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._samka ._Rd5uz:last-child,._samka ._Rd5uz:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._samka ._Rd5uz:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._samka ._Rd5uz._tia3j{flex-shrink:1;min-width:40px;z-index:0}._samka ._Rd5uz._tia3j._V-5RE{flex-grow:1}._samka ._Rd5uz:focus{z-index:20}";
3
+ var css_248z = "._1mtQX{border:1px solid #898989;border-radius:4px;height:36px;min-height:36px;color:#6a6d70;fill:#6a6d70;background-color:#fafafa;font-size:14px;display:inline-flex;justify-content:center;align-items:center;line-height:1;padding:0 13px}._1mtQX._dTgZc{height:26px;min-height:26px;padding:5px 8px}._qj0VK{display:flex;align-items:stretch}._qj0VK._NRjNC{width:100%}._qj0VK ._mhaVA{margin:0;position:relative;flex-shrink:0;z-index:10}._qj0VK ._mhaVA:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._qj0VK ._mhaVA:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._qj0VK ._mhaVA:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._qj0VK ._mhaVA:last-child,._qj0VK ._mhaVA:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._qj0VK ._mhaVA:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._qj0VK ._mhaVA._6L0m5{flex-shrink:1;min-width:40px;z-index:0}._qj0VK ._mhaVA._6L0m5._NRjNC{flex-grow:1}._qj0VK ._mhaVA:focus{z-index:20}";
4
+ var styles = {"addon":"_1mtQX","small":"_dTgZc","inputGroup":"_qj0VK","full":"_NRjNC","inputGroupElement":"_mhaVA","input":"_6L0m5"};
5
+ var stylesheet="._1mtQX{border:1px solid #898989;border-radius:4px;height:36px;min-height:36px;color:#6a6d70;fill:#6a6d70;background-color:#fafafa;font-size:14px;display:inline-flex;justify-content:center;align-items:center;line-height:1;padding:0 13px}._1mtQX._dTgZc{height:26px;min-height:26px;padding:5px 8px}._qj0VK{display:flex;align-items:stretch}._qj0VK._NRjNC{width:100%}._qj0VK ._mhaVA{margin:0;position:relative;flex-shrink:0;z-index:10}._qj0VK ._mhaVA:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._qj0VK ._mhaVA:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._qj0VK ._mhaVA:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._qj0VK ._mhaVA:last-child,._qj0VK ._mhaVA:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._qj0VK ._mhaVA:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._qj0VK ._mhaVA._6L0m5{flex-shrink:1;min-width:40px;z-index:0}._qj0VK ._mhaVA._6L0m5._NRjNC{flex-grow:1}._qj0VK ._mhaVA:focus{z-index:20}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._Vc93O{font-size:14px}._UuNp6{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._-LyAl{color:#0b6ed0}";
4
- var styles = {"label":"_Vc93O","control":"_UuNp6","focused":"_-LyAl"};
5
- var stylesheet="._Vc93O{font-size:14px}._UuNp6{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._-LyAl{color:#0b6ed0}";
3
+ var css_248z = "._BN4wB{font-size:14px}._Sa4fS{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._mQOHy{color:#0b6ed0}";
4
+ var styles = {"label":"_BN4wB","control":"_Sa4fS","focused":"_mQOHy"};
5
+ var stylesheet="._BN4wB{font-size:14px}._Sa4fS{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._mQOHy{color:#0b6ed0}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._xbt6W{color:#0b6ed0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-underline-offset:3px;border-radius:1px}._xbt6W:active:focus,._xbt6W:focus{outline:none}._xbt6W:visited{color:#0854a1}._xbt6W:hover{color:#085caf}._xbt6W:active{color:#0854a1}._xbt6W.focus-visible,._xbt6W:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
- var styles = {"link":"_xbt6W"};
5
- var stylesheet="._xbt6W{color:#0b6ed0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-underline-offset:3px;border-radius:1px}._xbt6W:active:focus,._xbt6W:focus{outline:none}._xbt6W:visited{color:#0854a1}._xbt6W:hover{color:#085caf}._xbt6W:active{color:#0854a1}._xbt6W.focus-visible,._xbt6W:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
3
+ var css_248z = "._7y-QP{color:#0b6ed0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-underline-offset:3px;border-radius:1px}._7y-QP:active:focus,._7y-QP:focus{outline:none}._7y-QP:visited{color:#0854a1}._7y-QP:hover{color:#085caf}._7y-QP:active{color:#0854a1}._7y-QP.focus-visible,._7y-QP:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
+ var styles = {"link":"_7y-QP"};
5
+ var stylesheet="._7y-QP{color:#0b6ed0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-underline-offset:3px;border-radius:1px}._7y-QP:active:focus,._7y-QP:focus{outline:none}._7y-QP:visited{color:#0854a1}._7y-QP:hover{color:#085caf}._7y-QP:active{color:#0854a1}._7y-QP.focus-visible,._7y-QP:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -36,7 +36,7 @@ const LoadingSpinner = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
36
36
  }),
37
37
  "data-loadingspinner": show || undefined,
38
38
  role: role,
39
- "aria-label": ariaLabel ?? (ariaLabelledby ? undefined : defaultAriaLabel),
39
+ "aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : ariaLabelledby ? undefined : defaultAriaLabel,
40
40
  "aria-labelledby": ariaLabelledby,
41
41
  "aria-live": ariaLive,
42
42
  "aria-hidden": ariaHidden
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._V69Ap{position:relative;display:inline-block}._V69Ap._kXjg1{min-height:20px;min-width:20px}._V69Ap._yB5Dp{min-height:25px;min-width:25px}._V69Ap._G5Ifk{min-height:40px;min-width:40px}._V69Ap._0dCb1{min-height:64px;min-width:64px}._V69Ap ._kfkPc{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._V69Ap ._kfkPc._lSiVS{visibility:hidden}._V69Ap ._kfkPc div{position:absolute;transform:rotate(20deg)}._V69Ap ._kfkPc div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_kfkPc .8s linear infinite}._V69Ap ._kfkPc div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._V69Ap ._kfkPc div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._V69Ap ._kfkPc div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._V69Ap ._kfkPc div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._V69Ap ._kfkPc div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._V69Ap ._kfkPc div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._V69Ap ._kfkPc div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._V69Ap ._kfkPc div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._V69Ap ._kfkPc div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._V69Ap ._kfkPc div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._V69Ap ._0dCb1 div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._V69Ap ._kXjg1 div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._V69Ap ._yB5Dp div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._V69Ap ._Q3xrZ div div:nth-child(-n+9):after{background:#fff}._V69Ap ._emU-m{width:100%;height:100%}._V69Ap ._emU-m._MMYCR{pointer-events:none}._V69Ap ._emU-m._lSiVS{opacity:0}._V69Ap ._emU-m._XG2P9{opacity:.5}@keyframes _kfkPc{0%{opacity:1}to{opacity:0}}";
4
- var styles = {"spinnerContainer":"_V69Ap","xs":"_kXjg1","small":"_yB5Dp","medium":"_G5Ifk","large":"_0dCb1","spinnerComponent":"_kfkPc","hide":"_lSiVS","inverted":"_Q3xrZ","spinnerContent":"_emU-m","disablePointerEvents":"_MMYCR","fade":"_XG2P9"};
5
- var stylesheet="._V69Ap{position:relative;display:inline-block}._V69Ap._kXjg1{min-height:20px;min-width:20px}._V69Ap._yB5Dp{min-height:25px;min-width:25px}._V69Ap._G5Ifk{min-height:40px;min-width:40px}._V69Ap._0dCb1{min-height:64px;min-width:64px}._V69Ap ._kfkPc{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._V69Ap ._kfkPc._lSiVS{visibility:hidden}._V69Ap ._kfkPc div{position:absolute;transform:rotate(20deg)}._V69Ap ._kfkPc div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_kfkPc .8s linear infinite}._V69Ap ._kfkPc div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._V69Ap ._kfkPc div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._V69Ap ._kfkPc div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._V69Ap ._kfkPc div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._V69Ap ._kfkPc div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._V69Ap ._kfkPc div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._V69Ap ._kfkPc div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._V69Ap ._kfkPc div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._V69Ap ._kfkPc div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._V69Ap ._kfkPc div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._V69Ap ._0dCb1 div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._V69Ap ._kXjg1 div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._V69Ap ._yB5Dp div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._V69Ap ._Q3xrZ div div:nth-child(-n+9):after{background:#fff}._V69Ap ._emU-m{width:100%;height:100%}._V69Ap ._emU-m._MMYCR{pointer-events:none}._V69Ap ._emU-m._lSiVS{opacity:0}._V69Ap ._emU-m._XG2P9{opacity:.5}@keyframes _kfkPc{0%{opacity:1}to{opacity:0}}";
3
+ var css_248z = "._ceLzc{position:relative;display:inline-block}._ceLzc._ET3A1{min-height:20px;min-width:20px}._ceLzc._blrUV{min-height:25px;min-width:25px}._ceLzc._6JLvV{min-height:40px;min-width:40px}._ceLzc._6YPlz{min-height:64px;min-width:64px}._ceLzc ._nlfOD{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._ceLzc ._nlfOD._W9yKe{visibility:hidden}._ceLzc ._nlfOD div{position:absolute;transform:rotate(20deg)}._ceLzc ._nlfOD div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_nlfOD .8s linear infinite}._ceLzc ._nlfOD div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._ceLzc ._nlfOD div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._ceLzc ._nlfOD div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._ceLzc ._nlfOD div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._ceLzc ._nlfOD div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._ceLzc ._nlfOD div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._ceLzc ._nlfOD div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._ceLzc ._nlfOD div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._ceLzc ._nlfOD div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._ceLzc ._nlfOD div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._ceLzc ._6YPlz div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._ceLzc ._ET3A1 div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._ceLzc ._blrUV div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._ceLzc ._412cV div div:nth-child(-n+9):after{background:#fff}._ceLzc ._-zYHC{width:100%;height:100%}._ceLzc ._-zYHC._zK519{pointer-events:none}._ceLzc ._-zYHC._W9yKe{opacity:0}._ceLzc ._-zYHC._lFu1R{opacity:.5}@keyframes _nlfOD{0%{opacity:1}to{opacity:0}}";
4
+ var styles = {"spinnerContainer":"_ceLzc","xs":"_ET3A1","small":"_blrUV","medium":"_6JLvV","large":"_6YPlz","spinnerComponent":"_nlfOD","hide":"_W9yKe","inverted":"_412cV","spinnerContent":"_-zYHC","disablePointerEvents":"_zK519","fade":"_lFu1R"};
5
+ var stylesheet="._ceLzc{position:relative;display:inline-block}._ceLzc._ET3A1{min-height:20px;min-width:20px}._ceLzc._blrUV{min-height:25px;min-width:25px}._ceLzc._6JLvV{min-height:40px;min-width:40px}._ceLzc._6YPlz{min-height:64px;min-width:64px}._ceLzc ._nlfOD{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._ceLzc ._nlfOD._W9yKe{visibility:hidden}._ceLzc ._nlfOD div{position:absolute;transform:rotate(20deg)}._ceLzc ._nlfOD div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_nlfOD .8s linear infinite}._ceLzc ._nlfOD div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._ceLzc ._nlfOD div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._ceLzc ._nlfOD div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._ceLzc ._nlfOD div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._ceLzc ._nlfOD div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._ceLzc ._nlfOD div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._ceLzc ._nlfOD div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._ceLzc ._nlfOD div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._ceLzc ._nlfOD div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._ceLzc ._nlfOD div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._ceLzc ._6YPlz div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._ceLzc ._ET3A1 div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._ceLzc ._blrUV div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._ceLzc ._412cV div div:nth-child(-n+9):after{background:#fff}._ceLzc ._-zYHC{width:100%;height:100%}._ceLzc ._-zYHC._zK519{pointer-events:none}._ceLzc ._-zYHC._W9yKe{opacity:0}._ceLzc ._-zYHC._lFu1R{opacity:.5}@keyframes _nlfOD{0%{opacity:1}to{opacity:0}}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -53,11 +53,11 @@ const ConditionSet = function ConditionSet(_ref) {
53
53
  }
54
54
  }
55
55
  if (fixedSet) {
56
- lastConnectionRef.current.style.height = `${height - 38}px`;
57
- lastConnectionRef.current.style.top = `-${height - 56}px`;
56
+ lastConnectionRef.current.style.height = "".concat(height - 38, "px");
57
+ lastConnectionRef.current.style.top = "-".concat(height - 56, "px");
58
58
  } else {
59
- lastConnectionRef.current.style.height = `${height - 18}px`;
60
- lastConnectionRef.current.style.top = `-${height - 52}px`;
59
+ lastConnectionRef.current.style.height = "".concat(height - 18, "px");
60
+ lastConnectionRef.current.style.top = "-".concat(height - 52, "px");
61
61
  }
62
62
  }
63
63
  }
@@ -87,7 +87,7 @@ const ConditionSet = function ConditionSet(_ref) {
87
87
  if (fixedSet) {
88
88
  indices.shift();
89
89
  }
90
- return getSubDataTestId(rootDataTestId, `${prefix}-${indices.join('-')}`);
90
+ return getSubDataTestId(rootDataTestId, "".concat(prefix, "-").concat(indices.join('-')));
91
91
  }, [fixedSet, rootDataTestId]);
92
92
  function renderControls(itemType, itemPosition, itemIndex, itemLevel, numberOfSetItems, itemId) {
93
93
  return /*#__PURE__*/React__default.createElement(Controls, {
@@ -43,7 +43,7 @@ const LogicEditor = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
43
43
  const classes = classNames(className, styles.editor);
44
44
  function update(newState) {
45
45
  setState(newState);
46
- onChange?.(newState);
46
+ onChange === null || onChange === void 0 ? void 0 : onChange(newState);
47
47
  }
48
48
  const handleNewLogicItem = (item, position) => {
49
49
  const newState = shallowCopy(state);
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._KAXQL{width:100%}._WJMBM{display:flex;align-items:center}._vCXfc{display:flex;flex-wrap:wrap;grid-gap:4px}._vCXfc :nth-last-child(2){margin-right:42px}._4eITM{position:relative;padding-left:32px;padding-top:16px;display:flex}._sP0ko ._4eITM{padding-top:0;padding-left:16px}._sP0ko ._4eITM+._4eITM{margin-top:16px}._x02Sf{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._sP0ko ._4eITM:first-of-type ._x02Sf{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._sP0ko ._x02Sf{top:-16px;left:0}._sP0ko ._4eITM:not(:first-of-type):not(:last-of-type) ._x02Sf{border-bottom-left-radius:0}._189qw{margin-left:-46px}._qiqve{margin:0 2px 0 4px}._qiqve.focus-visible,._qiqve:focus-visible{outline-width:2px}._jzrDd{margin-left:4px}";
4
- var styles = {"set":"_KAXQL","setWrapper":"_WJMBM","condition":"_vCXfc","branch":"_4eITM","fixedSet":"_sP0ko","connection":"_x02Sf","conditionControlsContainer":"_189qw","controls":"_qiqve","controlMenuItem":"_jzrDd"};
5
- var stylesheet="._KAXQL{width:100%}._WJMBM{display:flex;align-items:center}._vCXfc{display:flex;flex-wrap:wrap;grid-gap:4px}._vCXfc :nth-last-child(2){margin-right:42px}._4eITM{position:relative;padding-left:32px;padding-top:16px;display:flex}._sP0ko ._4eITM{padding-top:0;padding-left:16px}._sP0ko ._4eITM+._4eITM{margin-top:16px}._x02Sf{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._sP0ko ._4eITM:first-of-type ._x02Sf{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._sP0ko ._x02Sf{top:-16px;left:0}._sP0ko ._4eITM:not(:first-of-type):not(:last-of-type) ._x02Sf{border-bottom-left-radius:0}._189qw{margin-left:-46px}._qiqve{margin:0 2px 0 4px}._qiqve.focus-visible,._qiqve:focus-visible{outline-width:2px}._jzrDd{margin-left:4px}";
3
+ var css_248z = "._iGozK{width:100%}._TZ4ly{display:flex;align-items:center}._lFiuN{display:flex;flex-wrap:wrap;grid-gap:4px}._lFiuN :nth-last-child(2){margin-right:42px}._8MBRW{position:relative;padding-left:32px;padding-top:16px;display:flex}._b3X1x ._8MBRW{padding-top:0;padding-left:16px}._b3X1x ._8MBRW+._8MBRW{margin-top:16px}._2-fxu{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._b3X1x ._8MBRW:first-of-type ._2-fxu{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._b3X1x ._2-fxu{top:-16px;left:0}._b3X1x ._8MBRW:not(:first-of-type):not(:last-of-type) ._2-fxu{border-bottom-left-radius:0}._NPKGZ{margin-left:-46px}._XDdiV{margin:0 2px 0 4px}._XDdiV.focus-visible,._XDdiV:focus-visible{outline-width:2px}._2kFey{margin-left:4px}";
4
+ var styles = {"set":"_iGozK","setWrapper":"_TZ4ly","condition":"_lFiuN","branch":"_8MBRW","fixedSet":"_b3X1x","connection":"_2-fxu","conditionControlsContainer":"_NPKGZ","controls":"_XDdiV","controlMenuItem":"_2kFey"};
5
+ var stylesheet="._iGozK{width:100%}._TZ4ly{display:flex;align-items:center}._lFiuN{display:flex;flex-wrap:wrap;grid-gap:4px}._lFiuN :nth-last-child(2){margin-right:42px}._8MBRW{position:relative;padding-left:32px;padding-top:16px;display:flex}._b3X1x ._8MBRW{padding-top:0;padding-left:16px}._b3X1x ._8MBRW+._8MBRW{margin-top:16px}._2-fxu{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._b3X1x ._8MBRW:first-of-type ._2-fxu{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._b3X1x ._2-fxu{top:-16px;left:0}._b3X1x ._8MBRW:not(:first-of-type):not(:last-of-type) ._2-fxu{border-bottom-left-radius:0}._NPKGZ{margin-left:-46px}._XDdiV{margin:0 2px 0 4px}._XDdiV.focus-visible,._XDdiV:focus-visible{outline-width:2px}._2kFey{margin-left:4px}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -26,7 +26,8 @@ function constructValidDefaultState(_ref) {
26
26
  return clone;
27
27
  }
28
28
  function fixedSetHasNoConditions(defaultValue, fixedSet) {
29
- return fixedSet && defaultValue && (!defaultValue?.conditions || !(defaultValue?.conditions?.length >= 1));
29
+ var _defaultValue$conditi;
30
+ return fixedSet && defaultValue && (!(defaultValue !== null && defaultValue !== void 0 && defaultValue.conditions) || !((defaultValue === null || defaultValue === void 0 || (_defaultValue$conditi = defaultValue.conditions) === null || _defaultValue$conditi === void 0 ? void 0 : _defaultValue$conditi.length) >= 1));
30
31
  }
31
32
  function ensureFixedSetHasOneCondition(defaultValue, fixedSet) {
32
33
  if (fixedSetHasNoConditions(defaultValue, fixedSet)) {
@@ -22,7 +22,7 @@ const OverlayContainer = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
22
22
  } = _ref;
23
23
  return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
24
24
  ref: ref
25
- }), children, /*#__PURE__*/React__default.createElement("style", null, `body { overflow: hidden; }`));
25
+ }), children, /*#__PURE__*/React__default.createElement("style", null, "body { overflow: hidden; }"));
26
26
  });
27
27
  const Overlay = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
28
28
  let {
@@ -50,14 +50,14 @@ const Overlay = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
50
50
  // Ensure that when a user clicks on the dialog and drags and lifts out on the overlay,
51
51
  // the modal does not fire onDismiss.
52
52
  if (e.target === mouseDownTarget.current && e.target === overlay.current) {
53
- onDismiss?.(e);
53
+ onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss(e);
54
54
  }
55
55
  };
56
56
  const handleKeyDown = e => {
57
57
  if (e.key === 'Escape') {
58
58
  e.stopPropagation(); // prevent event from closing modals or popovers
59
- onDismiss?.(e);
60
- onClose?.(e);
59
+ onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss(e);
60
+ onClose === null || onClose === void 0 ? void 0 : onClose(e);
61
61
  }
62
62
  };
63
63
  const handleBodyKeyDown = e => {
@@ -100,13 +100,13 @@ const Dialog = /*#__PURE__*/React__default.forwardRef((_ref3, ref) => {
100
100
  const prefix = 'dialog';
101
101
  switch (maxSize) {
102
102
  case 'small':
103
- return `${prefix}Small`;
103
+ return "".concat(prefix, "Small");
104
104
  case 'medium':
105
- return `${prefix}Medium`;
105
+ return "".concat(prefix, "Medium");
106
106
  case 'large':
107
- return `${prefix}Large`;
107
+ return "".concat(prefix, "Large");
108
108
  case 'xl':
109
- return `${prefix}ExtraLarge`;
109
+ return "".concat(prefix, "ExtraLarge");
110
110
  default:
111
111
  return '';
112
112
  }
@@ -170,21 +170,22 @@ const Modal = /*#__PURE__*/React__default.forwardRef((_ref4, ref) => {
170
170
  // This effect should only run when the Modal is added or removed from the DOM
171
171
  useDidUpdate(() => {
172
172
  if (isInDOM) {
173
- if (elementRefToFocusOnOpen?.current) {
173
+ if (elementRefToFocusOnOpen !== null && elementRefToFocusOnOpen !== void 0 && elementRefToFocusOnOpen.current) {
174
174
  elementRefToFocusOnOpen.current.focus();
175
175
  } else if (typeof onClose === 'function' && closeIconButtonRef.current) {
176
176
  closeIconButtonRef.current.focus();
177
177
  } else {
178
- dialogRef.current?.focus();
178
+ var _dialogRef$current;
179
+ (_dialogRef$current = dialogRef.current) === null || _dialogRef$current === void 0 ? void 0 : _dialogRef$current.focus();
179
180
  }
180
- } else if (elementRefToFocusOnClose?.current) {
181
+ } else if (elementRefToFocusOnClose !== null && elementRefToFocusOnClose !== void 0 && elementRefToFocusOnClose.current) {
181
182
  elementRefToFocusOnClose.current.focus();
182
183
  } else {
183
184
  /*
184
185
  * This replaces the `returnFocus` prop of `react-focus-lock`.
185
186
  * The logic is done in this effect instead because `elementRefToFocusOnClose.current` is not available until after the `Overlay` is unmounted.
186
187
  */
187
- elementUsedToOpenModal?.focus();
188
+ elementUsedToOpenModal === null || elementUsedToOpenModal === void 0 ? void 0 : elementUsedToOpenModal.focus();
188
189
  }
189
190
  // eslint-disable-next-line react-hooks/exhaustive-deps
190
191
  }, [isInDOM]);
@@ -204,7 +205,7 @@ const Modal = /*#__PURE__*/React__default.forwardRef((_ref4, ref) => {
204
205
  onDismiss: onDismiss
205
206
  }, /*#__PURE__*/React__default.createElement(Dialog, _extends({}, rest, {
206
207
  onAnimationEnd: e => {
207
- externalOnAnimationEnd?.(e);
208
+ externalOnAnimationEnd === null || externalOnAnimationEnd === void 0 ? void 0 : externalOnAnimationEnd(e);
208
209
  if (!open) setIsInDOM(false);
209
210
  },
210
211
  maxSize: maxSize,
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._ybmls{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._vvieR,._ybmls{display:flex;overflow:auto}._vvieR{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._4LmzX)._12EtH{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._4LmzX)._12EtH{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._4LmzX)._O8oYp{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._4LmzX)._O8oYp{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._4LmzX)._O8oYp{max-width:700px}}:not(._4LmzX)._-Sfvs{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._4LmzX)._-Sfvs{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._4LmzX)._-Sfvs{max-width:700px}}@media screen and (min-width:1024px){:not(._4LmzX)._-Sfvs{max-width:1000px}}:not(._4LmzX)._9NcLI{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._4LmzX)._9NcLI{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._4LmzX)._9NcLI{max-width:700px}}@media screen and (min-width:1024px){:not(._4LmzX)._9NcLI{max-width:1000px}}@media screen and (min-width:1632px){:not(._4LmzX)._9NcLI{max-width:1600px;max-height:calc(100vh - 32px)}}._4LmzX{min-width:200px;width:calc(100% - 48px)}._4LmzX,._4LmzX._12EtH{max-height:calc(100vh - 80px)}._4LmzX._12EtH{max-width:480px;border-radius:8px}._4LmzX._O8oYp{max-width:700px}._4LmzX._-Sfvs{max-width:1000px}._4LmzX._9NcLI{max-width:1600px;max-height:calc(100vh - 32px)}._lcSlA{height:calc(100vh - 80px)}@media screen and (max-width:479px){._lcSlA{height:100vh}}@media screen and (min-width:1632px){._lcSlA{height:calc(100vh - 32px)}}._lNxPg{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._nXcSW{padding-right:64px}._H9Npd{position:absolute;top:14px;right:14px}._6SEnj{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._6SEnj,._vlHoJ{padding:20px 24px}._vlHoJ{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._vlHoJ>*{margin:0 4px}._vlHoJ>:first-child{margin-left:0}._vlHoJ>:last-child{margin-right:0}@keyframes _p35Xe{0%{opacity:0}}._p35Xe{animation:_p35Xe ease-in both;animation-duration:.2s}@keyframes _-L4us{to{opacity:0}}._-L4us{animation:_-L4us ease-out both;animation-duration:.2s}@keyframes _Fqouq{0%{transform:scale3d(.7,.7,.7);opacity:0}}._Fqouq{animation:_Fqouq both;animation-duration:.2s}@keyframes _vve8M{to{transform:scale3d(.7,.7,.7);opacity:0}}._vve8M{animation:_vve8M both;animation-duration:.2s}";
4
- var styles = {"backdrop":"_ybmls","modal":"_vvieR","responsive":"_4LmzX","dialogSmall":"_12EtH","dialogMedium":"_O8oYp","dialogLarge":"_-Sfvs","dialogExtraLarge":"_9NcLI","growToMaxHeight":"_lcSlA","modalHeader":"_lNxPg","modalHeaderWithCloseButton":"_nXcSW","modalHeaderCloseButton":"_H9Npd","modalBody":"_6SEnj","modalFooter":"_vlHoJ","fadeEnter":"_p35Xe","fadeLeave":"_-L4us","zoomEnter":"_Fqouq","zoomLeave":"_vve8M"};
5
- var stylesheet="._ybmls{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._vvieR,._ybmls{display:flex;overflow:auto}._vvieR{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._4LmzX)._12EtH{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._4LmzX)._12EtH{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._4LmzX)._O8oYp{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._4LmzX)._O8oYp{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._4LmzX)._O8oYp{max-width:700px}}:not(._4LmzX)._-Sfvs{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._4LmzX)._-Sfvs{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._4LmzX)._-Sfvs{max-width:700px}}@media screen and (min-width:1024px){:not(._4LmzX)._-Sfvs{max-width:1000px}}:not(._4LmzX)._9NcLI{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._4LmzX)._9NcLI{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._4LmzX)._9NcLI{max-width:700px}}@media screen and (min-width:1024px){:not(._4LmzX)._9NcLI{max-width:1000px}}@media screen and (min-width:1632px){:not(._4LmzX)._9NcLI{max-width:1600px;max-height:calc(100vh - 32px)}}._4LmzX{min-width:200px;width:calc(100% - 48px)}._4LmzX,._4LmzX._12EtH{max-height:calc(100vh - 80px)}._4LmzX._12EtH{max-width:480px;border-radius:8px}._4LmzX._O8oYp{max-width:700px}._4LmzX._-Sfvs{max-width:1000px}._4LmzX._9NcLI{max-width:1600px;max-height:calc(100vh - 32px)}._lcSlA{height:calc(100vh - 80px)}@media screen and (max-width:479px){._lcSlA{height:100vh}}@media screen and (min-width:1632px){._lcSlA{height:calc(100vh - 32px)}}._lNxPg{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._nXcSW{padding-right:64px}._H9Npd{position:absolute;top:14px;right:14px}._6SEnj{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._6SEnj,._vlHoJ{padding:20px 24px}._vlHoJ{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._vlHoJ>*{margin:0 4px}._vlHoJ>:first-child{margin-left:0}._vlHoJ>:last-child{margin-right:0}@keyframes _p35Xe{0%{opacity:0}}._p35Xe{animation:_p35Xe ease-in both;animation-duration:.2s}@keyframes _-L4us{to{opacity:0}}._-L4us{animation:_-L4us ease-out both;animation-duration:.2s}@keyframes _Fqouq{0%{transform:scale3d(.7,.7,.7);opacity:0}}._Fqouq{animation:_Fqouq both;animation-duration:.2s}@keyframes _vve8M{to{transform:scale3d(.7,.7,.7);opacity:0}}._vve8M{animation:_vve8M both;animation-duration:.2s}";
3
+ var css_248z = "._zrinO{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._SV7-Z,._zrinO{display:flex;overflow:auto}._SV7-Z{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._sY3Zh)._YfYJ0{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._sY3Zh)._YfYJ0{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._sY3Zh)._rCm6w{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._sY3Zh)._rCm6w{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._sY3Zh)._rCm6w{max-width:700px}}:not(._sY3Zh)._jTTSA{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._sY3Zh)._jTTSA{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._sY3Zh)._jTTSA{max-width:700px}}@media screen and (min-width:1024px){:not(._sY3Zh)._jTTSA{max-width:1000px}}:not(._sY3Zh)._HZYTJ{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._sY3Zh)._HZYTJ{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._sY3Zh)._HZYTJ{max-width:700px}}@media screen and (min-width:1024px){:not(._sY3Zh)._HZYTJ{max-width:1000px}}@media screen and (min-width:1632px){:not(._sY3Zh)._HZYTJ{max-width:1600px;max-height:calc(100vh - 32px)}}._sY3Zh{min-width:200px;width:calc(100% - 48px)}._sY3Zh,._sY3Zh._YfYJ0{max-height:calc(100vh - 80px)}._sY3Zh._YfYJ0{max-width:480px;border-radius:8px}._sY3Zh._rCm6w{max-width:700px}._sY3Zh._jTTSA{max-width:1000px}._sY3Zh._HZYTJ{max-width:1600px;max-height:calc(100vh - 32px)}._6IHZs{height:calc(100vh - 80px)}@media screen and (max-width:479px){._6IHZs{height:100vh}}@media screen and (min-width:1632px){._6IHZs{height:calc(100vh - 32px)}}._c2lE8{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._RCVmW{padding-right:64px}._pyftg{position:absolute;top:14px;right:14px}._wZOk0{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._o5Ekf,._wZOk0{padding:20px 24px}._o5Ekf{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._o5Ekf>*{margin:0 4px}._o5Ekf>:first-child{margin-left:0}._o5Ekf>:last-child{margin-right:0}@keyframes _KFibi{0%{opacity:0}}._KFibi{animation:_KFibi ease-in both;animation-duration:.2s}@keyframes _IzlKW{to{opacity:0}}._IzlKW{animation:_IzlKW ease-out both;animation-duration:.2s}@keyframes _PXsr1{0%{transform:scale3d(.7,.7,.7);opacity:0}}._PXsr1{animation:_PXsr1 both;animation-duration:.2s}@keyframes _UvKnB{to{transform:scale3d(.7,.7,.7);opacity:0}}._UvKnB{animation:_UvKnB both;animation-duration:.2s}";
4
+ var styles = {"backdrop":"_zrinO","modal":"_SV7-Z","responsive":"_sY3Zh","dialogSmall":"_YfYJ0","dialogMedium":"_rCm6w","dialogLarge":"_jTTSA","dialogExtraLarge":"_HZYTJ","growToMaxHeight":"_6IHZs","modalHeader":"_c2lE8","modalHeaderWithCloseButton":"_RCVmW","modalHeaderCloseButton":"_pyftg","modalBody":"_wZOk0","modalFooter":"_o5Ekf","fadeEnter":"_KFibi","fadeLeave":"_IzlKW","zoomEnter":"_PXsr1","zoomLeave":"_UvKnB"};
5
+ var stylesheet="._zrinO{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._SV7-Z,._zrinO{display:flex;overflow:auto}._SV7-Z{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._sY3Zh)._YfYJ0{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._sY3Zh)._YfYJ0{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._sY3Zh)._rCm6w{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._sY3Zh)._rCm6w{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._sY3Zh)._rCm6w{max-width:700px}}:not(._sY3Zh)._jTTSA{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._sY3Zh)._jTTSA{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._sY3Zh)._jTTSA{max-width:700px}}@media screen and (min-width:1024px){:not(._sY3Zh)._jTTSA{max-width:1000px}}:not(._sY3Zh)._HZYTJ{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._sY3Zh)._HZYTJ{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._sY3Zh)._HZYTJ{max-width:700px}}@media screen and (min-width:1024px){:not(._sY3Zh)._HZYTJ{max-width:1000px}}@media screen and (min-width:1632px){:not(._sY3Zh)._HZYTJ{max-width:1600px;max-height:calc(100vh - 32px)}}._sY3Zh{min-width:200px;width:calc(100% - 48px)}._sY3Zh,._sY3Zh._YfYJ0{max-height:calc(100vh - 80px)}._sY3Zh._YfYJ0{max-width:480px;border-radius:8px}._sY3Zh._rCm6w{max-width:700px}._sY3Zh._jTTSA{max-width:1000px}._sY3Zh._HZYTJ{max-width:1600px;max-height:calc(100vh - 32px)}._6IHZs{height:calc(100vh - 80px)}@media screen and (max-width:479px){._6IHZs{height:100vh}}@media screen and (min-width:1632px){._6IHZs{height:calc(100vh - 32px)}}._c2lE8{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._RCVmW{padding-right:64px}._pyftg{position:absolute;top:14px;right:14px}._wZOk0{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._o5Ekf,._wZOk0{padding:20px 24px}._o5Ekf{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._o5Ekf>*{margin:0 4px}._o5Ekf>:first-child{margin-left:0}._o5Ekf>:last-child{margin-right:0}@keyframes _KFibi{0%{opacity:0}}._KFibi{animation:_KFibi ease-in both;animation-duration:.2s}@keyframes _IzlKW{to{opacity:0}}._IzlKW{animation:_IzlKW ease-out both;animation-duration:.2s}@keyframes _PXsr1{0%{transform:scale3d(.7,.7,.7);opacity:0}}._PXsr1{animation:_PXsr1 both;animation-duration:.2s}@keyframes _UvKnB{to{transform:scale3d(.7,.7,.7);opacity:0}}._UvKnB{animation:_UvKnB both;animation-duration:.2s}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,5 +1,4 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
- import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
3
2
  import React__default, { useRef, useState, useEffect, useCallback, isValidElement } from 'react';
4
3
  import classNames from 'classnames';
5
4
  import styles from './NewMenu.js';
@@ -26,6 +25,7 @@ import ArrowNav from './parts/ArrowNav/ArrowNav.js';
26
25
  import MenuSearchBox from './parts/MenuSearchBox.js';
27
26
 
28
27
  const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
28
+ var _externalAnchor$props, _externalAnchor$props2, _useMenuContext, _externalAnchor$props3, _externalAnchor$props4, _externalAnchor$props5, _externalAnchor$props6, _externalAnchor$props7, _externalAnchor$props8, _externalAnchor$props9, _anchorRef$current;
29
29
  let {
30
30
  anchor: externalAnchor,
31
31
  'aria-label': externalAriaLabel,
@@ -66,9 +66,9 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
66
66
  private_isFirstElementHighlightedOnUserActivatedOpen = true,
67
67
  ...rest
68
68
  } = _ref;
69
- const anchorId = useId(externalAnchor?.props?.id ?? externalId);
70
- const arrowNavId = `${anchorId}-menu`;
71
- const parentCloseAndFocusAnchor = useMenuContext()?.closeAndFocusAnchor;
69
+ const anchorId = useId((_externalAnchor$props = externalAnchor === null || externalAnchor === void 0 || (_externalAnchor$props2 = externalAnchor.props) === null || _externalAnchor$props2 === void 0 ? void 0 : _externalAnchor$props2.id) !== null && _externalAnchor$props !== void 0 ? _externalAnchor$props : externalId);
70
+ const arrowNavId = "".concat(anchorId, "-menu");
71
+ const parentCloseAndFocusAnchor = (_useMenuContext = useMenuContext()) === null || _useMenuContext === void 0 ? void 0 : _useMenuContext.closeAndFocusAnchor;
72
72
  const isSubmenu = Boolean(parentCloseAndFocusAnchor);
73
73
  const {
74
74
  translate
@@ -87,20 +87,23 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
87
87
  // Call onIsOpenChange whenever externalIsOpen changes
88
88
  useDidUpdate(() => {
89
89
  if (isSubmenu) {
90
- onIsOpenChangeRef.current?.(externalIsOpen);
90
+ var _onIsOpenChangeRef$cu;
91
+ (_onIsOpenChangeRef$cu = onIsOpenChangeRef.current) === null || _onIsOpenChangeRef$cu === void 0 ? void 0 : _onIsOpenChangeRef$cu.call(onIsOpenChangeRef, externalIsOpen);
91
92
  }
92
93
  }, [externalIsOpen, onIsOpenChangeRef, isSubmenu]);
93
94
  // Call onIsOpenChange if open on mount or on unmount
94
95
  useEffect(() => {
95
96
  if (isSubmenu) {
96
97
  if (externalIsOpenRef.current) {
97
- onIsOpenChangeRef.current?.(true);
98
+ var _onIsOpenChangeRef$cu2;
99
+ (_onIsOpenChangeRef$cu2 = onIsOpenChangeRef.current) === null || _onIsOpenChangeRef$cu2 === void 0 ? void 0 : _onIsOpenChangeRef$cu2.call(onIsOpenChangeRef, true);
98
100
  }
99
101
  return () => {
100
102
  // eslint-disable-next-line react-hooks/exhaustive-deps
101
103
  if (externalIsOpenRef.current) {
104
+ var _onIsOpenChangeRef$cu3;
102
105
  // eslint-disable-next-line react-hooks/exhaustive-deps
103
- onIsOpenChangeRef.current?.(false);
106
+ (_onIsOpenChangeRef$cu3 = onIsOpenChangeRef.current) === null || _onIsOpenChangeRef$cu3 === void 0 ? void 0 : _onIsOpenChangeRef$cu3.call(onIsOpenChangeRef, false);
104
107
  }
105
108
  };
106
109
  }
@@ -114,11 +117,15 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
114
117
  }, [setHighlightedIndex, setIsOpen, setSearchTerm]);
115
118
  const handleMultiSelectChange = item => {
116
119
  let arr = selectedValue || selectedValue === 0 ? [].concat(selectedValue) : [];
117
- const i = arr.findIndex(v => v === item?.props?.value);
120
+ const i = arr.findIndex(v => {
121
+ var _item$props;
122
+ return v === (item === null || item === void 0 || (_item$props = item.props) === null || _item$props === void 0 ? void 0 : _item$props.value);
123
+ });
118
124
  if (i !== -1) {
119
125
  arr.splice(i, 1);
120
126
  } else {
121
- arr = union(arr, item?.props?.value);
127
+ var _item$props2;
128
+ arr = union(arr, item === null || item === void 0 || (_item$props2 = item.props) === null || _item$props2 === void 0 ? void 0 : _item$props2.value);
122
129
  }
123
130
  setSelectedValue(arr, getLabelFromValue(children, arr), item);
124
131
  };
@@ -131,11 +138,12 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
131
138
  setSelectedValue(value, getLabelFromValue(children, value), item);
132
139
  };
133
140
  const handleItemSelected = item => {
141
+ var _item$props3;
134
142
  if (!selectable) {
135
143
  closeAndFocusAnchor();
136
144
  return;
137
145
  }
138
- const value = item?.props?.value;
146
+ const value = item === null || item === void 0 || (_item$props3 = item.props) === null || _item$props3 === void 0 ? void 0 : _item$props3.value;
139
147
  if (!value && value !== 0) {
140
148
  // eslint-disable-next-line no-console
141
149
  console.warn('<MenuItem> should have a "value" prop when used in a <SelectMenu>', item);
@@ -201,12 +209,12 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
201
209
  onSelectedValueChange: handleSubmenuOnSelectedValueChange
202
210
  });
203
211
  }
204
- if (child?.type === MenuItem) {
205
- var _context;
212
+ if ((child === null || child === void 0 ? void 0 : child.type) === MenuItem) {
213
+ var _child$props, _child$props2;
206
214
  menuItemIndex += 1;
207
215
  return /*#__PURE__*/React__default.cloneElement(child, {
208
216
  isHighlighted: actualIndex === highlightedIndex,
209
- isSelected: selectable && typeof selectedValue !== 'undefined' && Array.isArray(selectedValue) ? _includesInstanceProperty(_context = selectedValue).call(_context, child?.props?.value) : child?.props?.value === selectedValue,
217
+ isSelected: selectable && typeof selectedValue !== 'undefined' && Array.isArray(selectedValue) ? selectedValue.includes(child === null || child === void 0 || (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.value) : (child === null || child === void 0 || (_child$props2 = child.props) === null || _child$props2 === void 0 ? void 0 : _child$props2.value) === selectedValue,
210
218
  onSelect: wrapEvent(child.props.onSelect, () => {
211
219
  handleItemSelected(child);
212
220
  }),
@@ -216,21 +224,21 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
216
224
  }
217
225
  return child;
218
226
  });
219
- const anchorLabel = label ?? getLabelFromValue(children, selectedValue);
220
- const menuAnchorLabel = anchorLabel ?? defaultLabel;
227
+ const anchorLabel = label !== null && label !== void 0 ? label : getLabelFromValue(children, selectedValue);
228
+ const menuAnchorLabel = anchorLabel !== null && anchorLabel !== void 0 ? anchorLabel : defaultLabel;
221
229
  const announceToScreenReader = useScreenReaderAnnouncement('assertive');
222
- const ariaLabelledBy = externalAnchor?.props?.['aria-labelledby'] ?? (externalAriaLabelledBy ? `${externalAriaLabelledBy} ${anchorId}` : undefined);
223
- const ariaLabel = externalAnchor?.props?.['aria-label'] ?? (externalAriaLabel && typeof menuAnchorLabel === 'string' ? `${externalAriaLabel} ${menuAnchorLabel}` : externalAriaLabel);
224
- const ariaExpanded = externalAnchor?.props['aria-expanded'] !== undefined ? externalAnchor.props['aria-expanded'] : isOpen ? true : undefined;
230
+ const ariaLabelledBy = (_externalAnchor$props3 = externalAnchor === null || externalAnchor === void 0 || (_externalAnchor$props4 = externalAnchor.props) === null || _externalAnchor$props4 === void 0 ? void 0 : _externalAnchor$props4['aria-labelledby']) !== null && _externalAnchor$props3 !== void 0 ? _externalAnchor$props3 : externalAriaLabelledBy ? "".concat(externalAriaLabelledBy, " ").concat(anchorId) : undefined;
231
+ const ariaLabel = (_externalAnchor$props5 = externalAnchor === null || externalAnchor === void 0 || (_externalAnchor$props6 = externalAnchor.props) === null || _externalAnchor$props6 === void 0 ? void 0 : _externalAnchor$props6['aria-label']) !== null && _externalAnchor$props5 !== void 0 ? _externalAnchor$props5 : externalAriaLabel && typeof menuAnchorLabel === 'string' ? "".concat(externalAriaLabel, " ").concat(menuAnchorLabel) : externalAriaLabel;
232
+ const ariaExpanded = (externalAnchor === null || externalAnchor === void 0 ? void 0 : externalAnchor.props['aria-expanded']) !== undefined ? externalAnchor.props['aria-expanded'] : isOpen ? true : undefined;
225
233
  const actualAnchor = externalAnchor !== undefined ? /*#__PURE__*/React__default.cloneElement(externalAnchor, {
226
234
  ref: mergeRefs(ref, anchorRef, externalAnchor.ref),
227
- tabIndex: externalAnchor.props.tabIndex ?? 0,
228
- role: externalAnchor.props.role ?? 'button',
235
+ tabIndex: (_externalAnchor$props7 = externalAnchor.props.tabIndex) !== null && _externalAnchor$props7 !== void 0 ? _externalAnchor$props7 : 0,
236
+ role: (_externalAnchor$props8 = externalAnchor.props.role) !== null && _externalAnchor$props8 !== void 0 ? _externalAnchor$props8 : 'button',
229
237
  id: anchorId,
230
238
  'aria-controls': isOpen ? arrowNavId : undefined,
231
239
  'aria-expanded': ariaExpanded,
232
240
  'aria-haspopup': 'menu',
233
- 'aria-disabled': externalAnchor.props['aria-disabled'] ?? disabled,
241
+ 'aria-disabled': (_externalAnchor$props9 = externalAnchor.props['aria-disabled']) !== null && _externalAnchor$props9 !== void 0 ? _externalAnchor$props9 : disabled,
234
242
  'aria-labelledby': ariaLabelledBy,
235
243
  'aria-label': ariaLabel,
236
244
  onMouseDown: preventClickOutside,
@@ -311,17 +319,17 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
311
319
  id: arrowNavId,
312
320
  role: "menu",
313
321
  "aria-labelledby": anchorId,
314
- isNavItem: child => child?.type === MenuItem || child?.type === MenuSearchBox || isType(child, menuType),
322
+ isNavItem: child => (child === null || child === void 0 ? void 0 : child.type) === MenuItem || (child === null || child === void 0 ? void 0 : child.type) === MenuSearchBox || isType(child, menuType),
315
323
  style: {
316
324
  zIndex,
317
- maxWidth: maxFlyoutWidth ?? undefined,
318
- width: maxFlyoutWidth ?? undefined
325
+ maxWidth: maxFlyoutWidth !== null && maxFlyoutWidth !== void 0 ? maxFlyoutWidth : undefined,
326
+ width: maxFlyoutWidth !== null && maxFlyoutWidth !== void 0 ? maxFlyoutWidth : undefined
319
327
  },
320
328
  onMouseDown: preventClickOutside,
321
329
  className: classNames(styles.contentPane, flyoutClassName),
322
330
  highlightedIndex: highlightedIndex,
323
331
  maxHeight: maxHeight,
324
- minWidth: isSubmenu ? undefined : Math.min(350, Math.max(160, anchorRef?.current?.offsetWidth)),
332
+ minWidth: isSubmenu ? undefined : Math.min(350, Math.max(160, anchorRef === null || anchorRef === void 0 || (_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0 ? void 0 : _anchorRef$current.offsetWidth)),
325
333
  searchable: searchable,
326
334
  onHighlightedIndexChange: i => setHighlightedIndex(i),
327
335
  searchTerm: searchTerm,
@@ -340,8 +348,9 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
340
348
  // (not menu container) so we focus anchor before browser moves focus
341
349
  closeAndFocusAnchor();
342
350
  } else if (e.key === 'ArrowLeft' && isSubmenu) {
351
+ var _arrowNavRef$current;
343
352
  // Only update the highlighted index for the current menu (i.e. if the event bubbles up to a parent menu, don't update the highlighted index for the parent menu)
344
- if (arrowNavRef.current?.contains(e.target) && e.target !== searchBoxRef.current) {
353
+ if ((_arrowNavRef$current = arrowNavRef.current) !== null && _arrowNavRef$current !== void 0 && _arrowNavRef$current.contains(e.target) && e.target !== searchBoxRef.current) {
345
354
  setHighlightedIndex(-1);
346
355
  }
347
356
  }
@@ -360,16 +369,13 @@ function filterItems(valueToFilterBy, items) {
360
369
  const result = items.filter(item => {
361
370
  const searchTermLowerCase = valueToFilterBy.toLowerCase();
362
371
  if (typeof item.props.label === 'string') {
363
- var _context2;
364
- return _includesInstanceProperty(_context2 = item.props.label.toLowerCase()).call(_context2, searchTermLowerCase);
372
+ return item.props.label.toLowerCase().includes(searchTermLowerCase);
365
373
  }
366
374
  if (typeof item.props.children === 'string') {
367
- var _context3;
368
- return _includesInstanceProperty(_context3 = item.props.children.toLowerCase()).call(_context3, searchTermLowerCase);
375
+ return item.props.children.toLowerCase().includes(searchTermLowerCase);
369
376
  }
370
377
  // eslint-disable-next-line no-console
371
- console.warn(`<MenuItem> not included in search results!
372
- Ensure prop "children" is of type "string" or provide a "label" prop!`, item);
378
+ console.warn("<MenuItem> not included in search results!\n Ensure prop \"children\" is of type \"string\" or provide a \"label\" prop!", item);
373
379
  return false;
374
380
  });
375
381
  return result;
@@ -388,11 +394,12 @@ function getDescendent(children, value) {
388
394
  if (value === undefined) return null;
389
395
  const childArray = React__default.Children.toArray(children);
390
396
  for (let i = 0; i < childArray.length; i += 1) {
397
+ var _child$props3, _child$props4;
391
398
  const child = childArray[i];
392
- if (child?.type === MenuItem && child?.props?.value === value) {
399
+ if ((child === null || child === void 0 ? void 0 : child.type) === MenuItem && (child === null || child === void 0 || (_child$props3 = child.props) === null || _child$props3 === void 0 ? void 0 : _child$props3.value) === value) {
393
400
  return child;
394
401
  }
395
- if (child?.type !== MenuItem && child?.props?.children) {
402
+ if ((child === null || child === void 0 ? void 0 : child.type) !== MenuItem && child !== null && child !== void 0 && (_child$props4 = child.props) !== null && _child$props4 !== void 0 && _child$props4.children) {
396
403
  const descendent = getDescendent(child.props.children, value);
397
404
  if (descendent) {
398
405
  return descendent;
@@ -402,12 +409,13 @@ function getDescendent(children, value) {
402
409
  return null;
403
410
  }
404
411
  function getLabel(menuOptionNode) {
405
- if ( /*#__PURE__*/isValidElement(menuOptionNode)) return getLabel(menuOptionNode?.props?.children);
412
+ var _menuOptionNode$props;
413
+ if ( /*#__PURE__*/isValidElement(menuOptionNode)) return getLabel(menuOptionNode === null || menuOptionNode === void 0 || (_menuOptionNode$props = menuOptionNode.props) === null || _menuOptionNode$props === void 0 ? void 0 : _menuOptionNode$props.children);
406
414
  return menuOptionNode;
407
415
  }
408
416
  function union(arr1, arr2) {
409
417
  return [].concat(arr1).concat(arr2).reduce((result, current) => {
410
- if (!_includesInstanceProperty(result).call(result, current)) {
418
+ if (!result.includes(current)) {
411
419
  result.push(current);
412
420
  }
413
421
  return result;
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._SVPqA._SVPqA{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._SVPqA._SVPqA,._SVPqA._SVPqA ._LlDd8{display:inline-flex;align-items:center}._SVPqA._SVPqA ._LlDd8{overflow:hidden;text-overflow:ellipsis}._SVPqA._SVPqA._bgf3e{min-height:26px;height:26px}._SVPqA._SVPqA._i4lj8{color:#32363a}._SVPqA._SVPqA:hover:not([aria-disabled=true]){background-color:#f5f5f5}._SVPqA._SVPqA:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._SVPqA._SVPqA[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._SVPqA._SVPqA[aria-disabled=true]>svg{fill:#515559;opacity:.4}._SVPqA._SVPqA[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._SVPqA._SVPqA._mEG6Q{padding-left:0}._SVPqA._SVPqA._AvPIT{margin-top:4px}._SVPqA._SVPqA ._c5Si1{fill:#515559}._SVPqA._SVPqA ._c5Si1._bgf3e{top:0}._SVPqA._SVPqA ._c5Si1._DO9Oy{transform:rotate(-180deg)}._89zKk{margin:0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._89zKk::-webkit-scrollbar,._89zKk::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._89zKk::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._89zKk::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._89zKk:hover::-webkit-scrollbar,._89zKk:hover::-webkit-scrollbar-thumb,._89zKk[focus-within]::-webkit-scrollbar,._89zKk[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._89zKk:focus-within::-webkit-scrollbar,._89zKk:focus-within::-webkit-scrollbar-thumb,._89zKk:hover::-webkit-scrollbar,._89zKk:hover::-webkit-scrollbar-thumb{visibility:visible}._fxd8W{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._fxd8W[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._fxd8W._K4zBy{background-color:#efefef}._fxd8W._BXfpj{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._fxd8W._i4lj8{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._fxd8W._i4lj8._K4zBy{background-color:#e4effa}._fxd8W._j5bA4{cursor:default}._fxd8W:active:not(._ExdSR):not(._i4lj8):not([aria-disabled=true]):not(._j5bA4){background-color:#e8e9e9}._ExdSR{padding-right:32px}._ExdSR ._c5Si1{position:absolute;top:8px;right:3px;fill:#515559}._A2j-i{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;position:sticky;top:0;z-index:20;background-color:#fff}._DeOQv{position:absolute;top:13px;left:13px}._eFcTI._eFcTI{padding-left:32px}._gweEK{margin:2px 12px 2px 0;flex-shrink:0}._gweEK._SPmYR>svg{border-color:#0b6ed0}._M0-vM{display:flex;justify-self:center;margin:8px}";
4
- var styles = {"menuBtn":"_SVPqA","menuBtnLabel":"_LlDd8","small":"_bgf3e","selected":"_i4lj8","unlabelledButton":"_mEG6Q","formLabelled":"_AvPIT","rightIcon":"_c5Si1","open":"_DO9Oy","contentPane":"_89zKk","menuItem":"_fxd8W","active":"_K4zBy","focus":"_BXfpj","noMenuItems":"_j5bA4","subMenu":"_ExdSR","searchBox":"_A2j-i","searchBoxIcon":"_DeOQv","searchBoxInput":"_eFcTI","checkbox":"_gweEK","highlighted":"_SPmYR","menuSpinner":"_M0-vM"};
5
- var stylesheet="._SVPqA._SVPqA{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._SVPqA._SVPqA,._SVPqA._SVPqA ._LlDd8{display:inline-flex;align-items:center}._SVPqA._SVPqA ._LlDd8{overflow:hidden;text-overflow:ellipsis}._SVPqA._SVPqA._bgf3e{min-height:26px;height:26px}._SVPqA._SVPqA._i4lj8{color:#32363a}._SVPqA._SVPqA:hover:not([aria-disabled=true]){background-color:#f5f5f5}._SVPqA._SVPqA:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._SVPqA._SVPqA[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._SVPqA._SVPqA[aria-disabled=true]>svg{fill:#515559;opacity:.4}._SVPqA._SVPqA[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._SVPqA._SVPqA._mEG6Q{padding-left:0}._SVPqA._SVPqA._AvPIT{margin-top:4px}._SVPqA._SVPqA ._c5Si1{fill:#515559}._SVPqA._SVPqA ._c5Si1._bgf3e{top:0}._SVPqA._SVPqA ._c5Si1._DO9Oy{transform:rotate(-180deg)}._89zKk{margin:0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._89zKk::-webkit-scrollbar,._89zKk::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._89zKk::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._89zKk::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._89zKk:hover::-webkit-scrollbar,._89zKk:hover::-webkit-scrollbar-thumb,._89zKk[focus-within]::-webkit-scrollbar,._89zKk[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._89zKk:focus-within::-webkit-scrollbar,._89zKk:focus-within::-webkit-scrollbar-thumb,._89zKk:hover::-webkit-scrollbar,._89zKk:hover::-webkit-scrollbar-thumb{visibility:visible}._fxd8W{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._fxd8W[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._fxd8W._K4zBy{background-color:#efefef}._fxd8W._BXfpj{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._fxd8W._i4lj8{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._fxd8W._i4lj8._K4zBy{background-color:#e4effa}._fxd8W._j5bA4{cursor:default}._fxd8W:active:not(._ExdSR):not(._i4lj8):not([aria-disabled=true]):not(._j5bA4){background-color:#e8e9e9}._ExdSR{padding-right:32px}._ExdSR ._c5Si1{position:absolute;top:8px;right:3px;fill:#515559}._A2j-i{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;position:sticky;top:0;z-index:20;background-color:#fff}._DeOQv{position:absolute;top:13px;left:13px}._eFcTI._eFcTI{padding-left:32px}._gweEK{margin:2px 12px 2px 0;flex-shrink:0}._gweEK._SPmYR>svg{border-color:#0b6ed0}._M0-vM{display:flex;justify-self:center;margin:8px}";
3
+ var css_248z = "._-X5dV._-X5dV{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._-X5dV._-X5dV,._-X5dV._-X5dV ._Hd8nM{display:inline-flex;align-items:center}._-X5dV._-X5dV ._Hd8nM{overflow:hidden;text-overflow:ellipsis}._-X5dV._-X5dV._k8ppd{min-height:26px;height:26px}._-X5dV._-X5dV._z1dcp{color:#32363a}._-X5dV._-X5dV:hover:not([aria-disabled=true]){background-color:#f5f5f5}._-X5dV._-X5dV:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._-X5dV._-X5dV[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._-X5dV._-X5dV[aria-disabled=true]>svg{fill:#515559;opacity:.4}._-X5dV._-X5dV[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._-X5dV._-X5dV._Ohktj{padding-left:0}._-X5dV._-X5dV._Tu3ND{margin-top:4px}._-X5dV._-X5dV ._rZzMy{fill:#515559}._-X5dV._-X5dV ._rZzMy._k8ppd{top:0}._-X5dV._-X5dV ._rZzMy._ZZNDf{transform:rotate(-180deg)}._z0ubf{margin:0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._z0ubf::-webkit-scrollbar,._z0ubf::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._z0ubf::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._z0ubf::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._z0ubf:hover::-webkit-scrollbar,._z0ubf:hover::-webkit-scrollbar-thumb,._z0ubf[focus-within]::-webkit-scrollbar,._z0ubf[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._z0ubf:focus-within::-webkit-scrollbar,._z0ubf:focus-within::-webkit-scrollbar-thumb,._z0ubf:hover::-webkit-scrollbar,._z0ubf:hover::-webkit-scrollbar-thumb{visibility:visible}._7XyRp{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._7XyRp[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._7XyRp._lLmBE{background-color:#efefef}._7XyRp._VqvvX{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._7XyRp._z1dcp{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._7XyRp._z1dcp._lLmBE{background-color:#e4effa}._7XyRp._JIsXa{cursor:default}._7XyRp:active:not(._6D1JJ):not(._z1dcp):not([aria-disabled=true]):not(._JIsXa){background-color:#e8e9e9}._6D1JJ{padding-right:32px}._6D1JJ ._rZzMy{position:absolute;top:8px;right:3px;fill:#515559}._c5AR8{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;position:-webkit-sticky;position:sticky;top:0;z-index:20;background-color:#fff}._btmT7{position:absolute;top:13px;left:13px}._5WOiA._5WOiA{padding-left:32px}._VZ9Zr{margin:2px 12px 2px 0;flex-shrink:0}._VZ9Zr._nLs1l>svg{border-color:#0b6ed0}._yo2jr{display:flex;justify-self:center;margin:8px}";
4
+ var styles = {"menuBtn":"_-X5dV","menuBtnLabel":"_Hd8nM","small":"_k8ppd","selected":"_z1dcp","unlabelledButton":"_Ohktj","formLabelled":"_Tu3ND","rightIcon":"_rZzMy","open":"_ZZNDf","contentPane":"_z0ubf","menuItem":"_7XyRp","active":"_lLmBE","focus":"_VqvvX","noMenuItems":"_JIsXa","subMenu":"_6D1JJ","searchBox":"_c5AR8","searchBoxIcon":"_btmT7","searchBoxInput":"_5WOiA","checkbox":"_VZ9Zr","highlighted":"_nLs1l","menuSpinner":"_yo2jr"};
5
+ var stylesheet="._-X5dV._-X5dV{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._-X5dV._-X5dV,._-X5dV._-X5dV ._Hd8nM{display:inline-flex;align-items:center}._-X5dV._-X5dV ._Hd8nM{overflow:hidden;text-overflow:ellipsis}._-X5dV._-X5dV._k8ppd{min-height:26px;height:26px}._-X5dV._-X5dV._z1dcp{color:#32363a}._-X5dV._-X5dV:hover:not([aria-disabled=true]){background-color:#f5f5f5}._-X5dV._-X5dV:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._-X5dV._-X5dV[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._-X5dV._-X5dV[aria-disabled=true]>svg{fill:#515559;opacity:.4}._-X5dV._-X5dV[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._-X5dV._-X5dV._Ohktj{padding-left:0}._-X5dV._-X5dV._Tu3ND{margin-top:4px}._-X5dV._-X5dV ._rZzMy{fill:#515559}._-X5dV._-X5dV ._rZzMy._k8ppd{top:0}._-X5dV._-X5dV ._rZzMy._ZZNDf{transform:rotate(-180deg)}._z0ubf{margin:0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._z0ubf::-webkit-scrollbar,._z0ubf::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._z0ubf::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._z0ubf::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._z0ubf:hover::-webkit-scrollbar,._z0ubf:hover::-webkit-scrollbar-thumb,._z0ubf[focus-within]::-webkit-scrollbar,._z0ubf[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._z0ubf:focus-within::-webkit-scrollbar,._z0ubf:focus-within::-webkit-scrollbar-thumb,._z0ubf:hover::-webkit-scrollbar,._z0ubf:hover::-webkit-scrollbar-thumb{visibility:visible}._7XyRp{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._7XyRp[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._7XyRp._lLmBE{background-color:#efefef}._7XyRp._VqvvX{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._7XyRp._z1dcp{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._7XyRp._z1dcp._lLmBE{background-color:#e4effa}._7XyRp._JIsXa{cursor:default}._7XyRp:active:not(._6D1JJ):not(._z1dcp):not([aria-disabled=true]):not(._JIsXa){background-color:#e8e9e9}._6D1JJ{padding-right:32px}._6D1JJ ._rZzMy{position:absolute;top:8px;right:3px;fill:#515559}._c5AR8{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;position:-webkit-sticky;position:sticky;top:0;z-index:20;background-color:#fff}._btmT7{position:absolute;top:13px;left:13px}._5WOiA._5WOiA{padding-left:32px}._VZ9Zr{margin:2px 12px 2px 0;flex-shrink:0}._VZ9Zr._nLs1l>svg{border-color:#0b6ed0}._yo2jr{display:flex;justify-self:center;margin:8px}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -18,8 +18,8 @@ const SelectMenu = /*#__PURE__*/React__default.forwardRef(function SelectMenu(_r
18
18
  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
19
19
  args[_key - 1] = arguments[_key];
20
20
  }
21
- onSelectedValueChange?.(value, ...args);
22
- onChange?.(value);
21
+ onSelectedValueChange === null || onSelectedValueChange === void 0 ? void 0 : onSelectedValueChange(value, ...args);
22
+ onChange === null || onChange === void 0 ? void 0 : onChange(value);
23
23
  }
24
24
  }, rest));
25
25
  });