@qualtrics/ui-react 2.20.0 → 2.22.0

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 (211) hide show
  1. package/CHANGELOG.md +17 -33
  2. package/dist/__shared/cjs/{index-90d4069b.js → index-025620bf.js} +718 -673
  3. package/dist/__shared/cjs/{index-579c4690.js → index-41a013d2.js} +4 -4
  4. package/dist/components/Accordion/Accordion.js +1 -1
  5. package/dist/components/Accordion/Accordion2.js +3 -3
  6. package/dist/components/Accordion/AccordionHeader.js +4 -4
  7. package/dist/components/Accordion/AccordionPanel.js +3 -3
  8. package/dist/components/Button/Button.js +3 -3
  9. package/dist/components/Button/Button2.js +2 -2
  10. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  11. package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
  12. package/dist/components/Checkbox/Checkbox.js +11 -11
  13. package/dist/components/Checkbox/Checkbox2.js +3 -3
  14. package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
  15. package/dist/components/ColorPicker/Alpha.js +12 -16
  16. package/dist/components/ColorPicker/ColorPicker.js +15 -9
  17. package/dist/components/ColorPicker/ColorPicker2.js +3 -3
  18. package/dist/components/ColorPicker/ColorPickerFlyout.js +9 -4
  19. package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +8 -6
  20. package/dist/components/ColorPicker/Hue.js +3 -9
  21. package/dist/components/ColorPicker/Palette.js +13 -9
  22. package/dist/components/ColorPicker/Saturation.js +9 -17
  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 +54 -31
  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 -14
  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 +5 -7
  40. package/dist/components/Dropdown/DropdownSearch.js +12 -9
  41. package/dist/components/FilePicker/FilePicker.js +13 -13
  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 +41 -30
  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 +19 -15
  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 +15 -7
  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 -29
  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 +4 -1
  132. package/dist/hooks/useId/useId.js +1 -1
  133. package/dist/hooks/useOverlay/useOverlay.js +11 -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 +17 -8
  142. package/dist/index.es.js +1 -7
  143. package/dist/index.js +4 -7
  144. package/dist/next/AdvancedTable/AdvancedTable.js +86 -87
  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/useAdvancedTableDragAndDrop.js +3 -2
  152. package/dist/next/AdvancedTable/useComputedWidth.js +1 -1
  153. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +6 -5
  154. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
  155. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +1 -1
  156. package/dist/next/Combobox/Combobox2.js +3 -3
  157. package/dist/next/Combobox/ComboboxFlyout.js +2 -2
  158. package/dist/next/Combobox/ComboboxGroup.js +1 -1
  159. package/dist/next/Combobox/ComboboxInput.js +2 -2
  160. package/dist/next/Combobox/ComboboxOption.js +1 -1
  161. package/dist/next/Combobox/hooks/useComboboxFilteredGroup/useComboboxFilteredGroup.js +1 -1
  162. package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +12 -8
  163. package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +1 -1
  164. package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +3 -2
  165. package/dist/next/Combobox/hooks/useSelectedOptionScroll/useSelectedOptionScroll.js +2 -1
  166. package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +2 -1
  167. package/dist/next/Combobox/utils/nodeRegistration/nodeRegistration.js +1 -1
  168. package/dist/next/Drawer/Drawer.js +7 -4
  169. package/dist/next/Drawer/Drawer2.js +3 -3
  170. package/dist/next/FilterAnchor/FilterAnchor.js +3 -3
  171. package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
  172. package/dist/next/Input/Input.js +2 -2
  173. package/dist/next/Input/Input2.js +3 -3
  174. package/dist/next/Menu/Menu.js +11 -5
  175. package/dist/next/Menu/Menu2.js +3 -3
  176. package/dist/next/Menu/MenuItem.js +19 -11
  177. package/dist/next/Menu/MenuPane.js +70 -40
  178. package/dist/next/Menu/MenuSearch.js +16 -71
  179. package/dist/next/Menu/SubMenu.js +63 -46
  180. package/dist/next/Menu/constants.js +5 -1
  181. package/dist/next/Menu/useMutationObserver.js +17 -0
  182. package/dist/next/Menu/usePaneSearch.js +109 -7
  183. package/dist/next/PhoneNumberInput/PhoneNumberInput.js +7 -6
  184. package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
  185. package/dist/next/SplitButton/SplitButton.js +8 -2
  186. package/dist/next/SplitButton/SplitButton2.js +3 -3
  187. package/dist/next/TimePicker/TimeDropdown.js +4 -4
  188. package/dist/next/TimePicker/TimeInput.js +2 -2
  189. package/dist/next/TimePicker/TimePicker.js +4 -4
  190. package/dist/next/TimePicker/TimePicker2.js +3 -3
  191. package/dist/next/TimePicker/TimePickerIcon.js +2 -1
  192. package/dist/next/TimePicker/utils.js +10 -9
  193. package/dist/next/ToggleButton/styles.js +3 -3
  194. package/dist/next/index.d.ts +2 -1
  195. package/dist/next/index.js +601 -432
  196. package/dist/utils/Flyout/Flyout.js +1 -1
  197. package/dist/utils/Flyout/Flyout2.js +3 -3
  198. package/dist/utils/Popper/Popper.js +9 -5
  199. package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +2 -1
  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/index.js +0 -1
  204. package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
  205. package/dist/utils/mergeRefs/mergeRefs.js +1 -1
  206. package/dist/utils/wrapEvent/wrapEvent.js +2 -2
  207. package/icons/package.json +1 -0
  208. package/next/package.json +2 -1
  209. package/package.json +4 -4
  210. package/dist/utils/keyboardUser/index.js +0 -1
  211. package/dist/utils/keyboardUser/keyboardUser.js +0 -30
@@ -69,21 +69,21 @@ const ComboboxInput = /*#__PURE__*/forwardRef((_ref, ref) => {
69
69
  onChange: handleInputChange,
70
70
  onFocus: wrapEvent(onFocus, handleFocus),
71
71
  onKeyDown: wrapEvent(onKeyDown, handleKeyDown),
72
- onMouseDown: e => onMouseDown?.(e),
72
+ onMouseDown: e => onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(e),
73
73
  onClick: e => {
74
74
  if (!isOptionSelectedOnKeyboardHighlight && numberOfOptions > 0) {
75
75
  setHighlightedIndex(0);
76
76
  }
77
77
  setIsOpen(true);
78
- onClick?.(e);
78
+ onClick === null || onClick === void 0 ? void 0 : onClick(e);
79
79
  },
80
80
  role: "combobox",
81
81
  "aria-autocomplete": isFilteringDisabled ? 'none' : 'list',
82
82
  "aria-expanded": isAriaExpanded,
83
83
  "aria-controls": isAriaExpanded ? listContainerId : undefined,
84
84
  "aria-activedescendant": activeDescendantId,
85
- "aria-label": ariaLabelFromProps ?? ariaLabel,
86
- "aria-labelledby": ariaLabelledbyFromProps ?? ariaLabelledby
85
+ "aria-label": ariaLabelFromProps !== null && ariaLabelFromProps !== void 0 ? ariaLabelFromProps : ariaLabel,
86
+ "aria-labelledby": ariaLabelledbyFromProps !== null && ariaLabelledbyFromProps !== void 0 ? ariaLabelledbyFromProps : ariaLabelledby
87
87
  }));
88
88
  });
89
89
 
@@ -48,8 +48,8 @@ const ComboboxList = /*#__PURE__*/forwardRef((_ref, ref) => {
48
48
  ...style
49
49
  } : style,
50
50
  id: listContainerId,
51
- "aria-label": ariaLabelFromProps ?? ariaLabel,
52
- "aria-labelledby": ariaLabelledbyFromProps ?? ariaLabelledby
51
+ "aria-label": ariaLabelFromProps !== null && ariaLabelFromProps !== void 0 ? ariaLabelFromProps : ariaLabel,
52
+ "aria-labelledby": ariaLabelledbyFromProps !== null && ariaLabelledbyFromProps !== void 0 ? ariaLabelledbyFromProps : ariaLabelledby
53
53
  }), children)
54
54
  });
55
55
  });
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._-YDxO{grid-area:configPane;position:relative;height:100%}._u7-Ap{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #898989;box-sizing:border-box}._MU-T1._ouJLF ._u7-Ap,._MU-T1:not(._CNWuo) ._u7-Ap{-webkit-clip-path:inset(0 -20px 0 0);clip-path:inset(0 -20px 0 0);box-shadow:0 8px 20px 0 rgba(0,0,0,.1),0 4px 6px 0 rgba(0,0,0,.05)}._CNWuo ._u7-Ap{width:0}._ouJLF._CNWuo ._u7-Ap{width:30px;cursor:pointer}._Ouz7v ._u7-Ap{border-right-color:#eee}._vXgFp{height:100%;position:relative;width:292px}._CNWuo ._vXgFp,._MU-T1 ._vXgFp{width:0}._ouJLF._CNWuo ._vXgFp,._ouJLF._MU-T1 ._vXgFp{width:30px}._2QOjB ._vXgFp{transition:width .5s}._DB2wF{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._CNWuo ._DB2wF{visibility:hidden}._2QOjB ._DB2wF{visibility:visible}._DB2wF ._IQE1j{width:252px;margin-left:20px}._gFIzf{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._aUv3W{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._aUv3W *{font-weight:400;font-size:16px;margin:0}._r-ox-{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._CNWuo ._r-ox-{left:0}._ouJLF._CNWuo ._r-ox-{left:30px}._r-ox- ._qzu66{width:4px;height:100%}._ouJLF._CNWuo ._u7-Ap:hover+._r-ox- ._qzu66,._r-ox-:hover ._qzu66{background-color:#9dc5ed}._ouJLF._CNWuo ._u7-Ap:hover+._r-ox- ._ejULq>span,._r-ox-:hover ._ejULq>span{background-color:#0b6ed0;border-color:#0b6ed0}._ouJLF._CNWuo ._u7-Ap:hover+._r-ox- ._ejULq>span>svg,._r-ox-:hover ._ejULq>span>svg{fill:#fff}._ouJLF._CNWuo ._u7-Ap:hover+._r-ox- ._ejULq:active>span,._r-ox-:hover ._ejULq:active>span{background-color:#0854a1;border-color:#0854a1}._ouJLF._CNWuo ._u7-Ap:hover+._r-ox- ._ejULq:active>span>svg,._r-ox-:hover ._ejULq:active>span>svg{fill:#fff}._r-ox- ._ejULq{left:-16px;width:36px;height:36px;position:absolute;top:48px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10;opacity:0}._r-ox- ._ejULq._jftaK._jftaK._jftaK{opacity:1}._r-ox- ._ejULq._5GZPd._5GZPd._5GZPd{opacity:0}._r-ox- ._ejULq:active>span{background-color:#0854a1;border-color:#0854a1}._r-ox- ._ejULq:active>span>svg{fill:#fff}._r-ox- ._ejULq>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._r-ox- ._ejULq>span>svg{fill:#515559;border-radius:50%}._CNWuo ._r-ox- ._ejULq,._r-ox-:hover ._ejULq,._u7-Ap:hover+._r-ox- ._ejULq{opacity:1}body.keyboard-user ._ejULq:focus{opacity:1;border-color:#0a3f88}";
4
- var styles = {"paneContainer":"_-YDxO","paneContentContainer":"_u7-Ap","unpinned":"_MU-T1","hidden":"_CNWuo","preview":"_ouJLF","openHidden":"_Ouz7v","spacer":"_vXgFp","transitioning":"_2QOjB","paneContent":"_DB2wF","paneContentInner":"_IQE1j","header":"_gFIzf","title":"_aUv3W","clickableArea":"_r-ox-","hoverBorder":"_qzu66","toolbarPanelExpandCollapseButton":"_ejULq","overrideShow":"_jftaK","overrideHide":"_5GZPd"};
5
- var stylesheet="._-YDxO{grid-area:configPane;position:relative;height:100%}._u7-Ap{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #898989;box-sizing:border-box}._MU-T1._ouJLF ._u7-Ap,._MU-T1:not(._CNWuo) ._u7-Ap{-webkit-clip-path:inset(0 -20px 0 0);clip-path:inset(0 -20px 0 0);box-shadow:0 8px 20px 0 rgba(0,0,0,.1),0 4px 6px 0 rgba(0,0,0,.05)}._CNWuo ._u7-Ap{width:0}._ouJLF._CNWuo ._u7-Ap{width:30px;cursor:pointer}._Ouz7v ._u7-Ap{border-right-color:#eee}._vXgFp{height:100%;position:relative;width:292px}._CNWuo ._vXgFp,._MU-T1 ._vXgFp{width:0}._ouJLF._CNWuo ._vXgFp,._ouJLF._MU-T1 ._vXgFp{width:30px}._2QOjB ._vXgFp{transition:width .5s}._DB2wF{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._CNWuo ._DB2wF{visibility:hidden}._2QOjB ._DB2wF{visibility:visible}._DB2wF ._IQE1j{width:252px;margin-left:20px}._gFIzf{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._aUv3W{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._aUv3W *{font-weight:400;font-size:16px;margin:0}._r-ox-{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._CNWuo ._r-ox-{left:0}._ouJLF._CNWuo ._r-ox-{left:30px}._r-ox- ._qzu66{width:4px;height:100%}._ouJLF._CNWuo ._u7-Ap:hover+._r-ox- ._qzu66,._r-ox-:hover ._qzu66{background-color:#9dc5ed}._ouJLF._CNWuo ._u7-Ap:hover+._r-ox- ._ejULq>span,._r-ox-:hover ._ejULq>span{background-color:#0b6ed0;border-color:#0b6ed0}._ouJLF._CNWuo ._u7-Ap:hover+._r-ox- ._ejULq>span>svg,._r-ox-:hover ._ejULq>span>svg{fill:#fff}._ouJLF._CNWuo ._u7-Ap:hover+._r-ox- ._ejULq:active>span,._r-ox-:hover ._ejULq:active>span{background-color:#0854a1;border-color:#0854a1}._ouJLF._CNWuo ._u7-Ap:hover+._r-ox- ._ejULq:active>span>svg,._r-ox-:hover ._ejULq:active>span>svg{fill:#fff}._r-ox- ._ejULq{left:-16px;width:36px;height:36px;position:absolute;top:48px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10;opacity:0}._r-ox- ._ejULq._jftaK._jftaK._jftaK{opacity:1}._r-ox- ._ejULq._5GZPd._5GZPd._5GZPd{opacity:0}._r-ox- ._ejULq:active>span{background-color:#0854a1;border-color:#0854a1}._r-ox- ._ejULq:active>span>svg{fill:#fff}._r-ox- ._ejULq>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._r-ox- ._ejULq>span>svg{fill:#515559;border-radius:50%}._CNWuo ._r-ox- ._ejULq,._r-ox-:hover ._ejULq,._u7-Ap:hover+._r-ox- ._ejULq{opacity:1}body.keyboard-user ._ejULq:focus{opacity:1;border-color:#0a3f88}";
3
+ var css_248z = "._h9-EV{grid-area:configPane;position:relative;height:100%}._N2Ep9{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #898989;box-sizing:border-box}._g3HZB._F7UUy ._N2Ep9,._g3HZB:not(._iN5gK) ._N2Ep9{-webkit-clip-path:inset(0 -20px 0 0);clip-path:inset(0 -20px 0 0);box-shadow:0 8px 20px 0 rgba(0,0,0,.1),0 4px 6px 0 rgba(0,0,0,.05)}._iN5gK ._N2Ep9{width:0}._F7UUy._iN5gK ._N2Ep9{width:30px;cursor:pointer}._ZnXVI ._N2Ep9{border-right-color:#eee}._eBakD{height:100%;position:relative;width:292px}._g3HZB ._eBakD,._iN5gK ._eBakD{width:0}._F7UUy._g3HZB ._eBakD,._F7UUy._iN5gK ._eBakD{width:30px}._DEd4g ._eBakD{transition:width .5s}._1Cv2c{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._iN5gK ._1Cv2c{visibility:hidden}._DEd4g ._1Cv2c{visibility:visible}._1Cv2c ._1pVuk{width:252px;margin-left:20px}._2lqAA{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._eev4v{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._eev4v *{font-weight:400;font-size:16px;margin:0}._f2dQ2{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._iN5gK ._f2dQ2{left:0}._F7UUy._iN5gK ._f2dQ2{left:30px}._f2dQ2 ._ZjH8m{width:4px;height:100%}._f2dQ2:hover ._ZjH8m,._F7UUy._iN5gK ._N2Ep9:hover+._f2dQ2 ._ZjH8m{background-color:#9dc5ed}._f2dQ2:hover ._nQgF2>span,._F7UUy._iN5gK ._N2Ep9:hover+._f2dQ2 ._nQgF2>span{background-color:#0b6ed0;border-color:#0b6ed0}._f2dQ2:hover ._nQgF2>span>svg,._F7UUy._iN5gK ._N2Ep9:hover+._f2dQ2 ._nQgF2>span>svg{fill:#fff}._f2dQ2:hover ._nQgF2:active>span,._F7UUy._iN5gK ._N2Ep9:hover+._f2dQ2 ._nQgF2:active>span{background-color:#0854a1;border-color:#0854a1}._f2dQ2:hover ._nQgF2:active>span>svg,._F7UUy._iN5gK ._N2Ep9:hover+._f2dQ2 ._nQgF2:active>span>svg{fill:#fff}._f2dQ2 ._nQgF2{left:-16px;width:36px;height:36px;position:absolute;top:48px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10;opacity:0}._f2dQ2 ._nQgF2._PiprX._PiprX._PiprX{opacity:1}._f2dQ2 ._nQgF2._aaHx0._aaHx0._aaHx0{opacity:0}._f2dQ2 ._nQgF2:active>span{background-color:#0854a1;border-color:#0854a1}._f2dQ2 ._nQgF2:active>span>svg{fill:#fff}._f2dQ2 ._nQgF2>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._f2dQ2 ._nQgF2>span>svg{fill:#515559;border-radius:50%}._f2dQ2:hover ._nQgF2,._iN5gK ._f2dQ2 ._nQgF2,._N2Ep9:hover+._f2dQ2 ._nQgF2{opacity:1}._nQgF2.focus-visible,._nQgF2:focus-visible{opacity:1;border-color:#0a3f88}";
4
+ var styles = {"paneContainer":"_h9-EV","paneContentContainer":"_N2Ep9","unpinned":"_g3HZB","hidden":"_iN5gK","preview":"_F7UUy","openHidden":"_ZnXVI","spacer":"_eBakD","transitioning":"_DEd4g","paneContent":"_1Cv2c","paneContentInner":"_1pVuk","header":"_2lqAA","title":"_eev4v","clickableArea":"_f2dQ2","hoverBorder":"_ZjH8m","toolbarPanelExpandCollapseButton":"_nQgF2","overrideShow":"_PiprX","overrideHide":"_aaHx0"};
5
+ var stylesheet="._h9-EV{grid-area:configPane;position:relative;height:100%}._N2Ep9{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #898989;box-sizing:border-box}._g3HZB._F7UUy ._N2Ep9,._g3HZB:not(._iN5gK) ._N2Ep9{-webkit-clip-path:inset(0 -20px 0 0);clip-path:inset(0 -20px 0 0);box-shadow:0 8px 20px 0 rgba(0,0,0,.1),0 4px 6px 0 rgba(0,0,0,.05)}._iN5gK ._N2Ep9{width:0}._F7UUy._iN5gK ._N2Ep9{width:30px;cursor:pointer}._ZnXVI ._N2Ep9{border-right-color:#eee}._eBakD{height:100%;position:relative;width:292px}._g3HZB ._eBakD,._iN5gK ._eBakD{width:0}._F7UUy._g3HZB ._eBakD,._F7UUy._iN5gK ._eBakD{width:30px}._DEd4g ._eBakD{transition:width .5s}._1Cv2c{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._iN5gK ._1Cv2c{visibility:hidden}._DEd4g ._1Cv2c{visibility:visible}._1Cv2c ._1pVuk{width:252px;margin-left:20px}._2lqAA{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._eev4v{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._eev4v *{font-weight:400;font-size:16px;margin:0}._f2dQ2{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._iN5gK ._f2dQ2{left:0}._F7UUy._iN5gK ._f2dQ2{left:30px}._f2dQ2 ._ZjH8m{width:4px;height:100%}._f2dQ2:hover ._ZjH8m,._F7UUy._iN5gK ._N2Ep9:hover+._f2dQ2 ._ZjH8m{background-color:#9dc5ed}._f2dQ2:hover ._nQgF2>span,._F7UUy._iN5gK ._N2Ep9:hover+._f2dQ2 ._nQgF2>span{background-color:#0b6ed0;border-color:#0b6ed0}._f2dQ2:hover ._nQgF2>span>svg,._F7UUy._iN5gK ._N2Ep9:hover+._f2dQ2 ._nQgF2>span>svg{fill:#fff}._f2dQ2:hover ._nQgF2:active>span,._F7UUy._iN5gK ._N2Ep9:hover+._f2dQ2 ._nQgF2:active>span{background-color:#0854a1;border-color:#0854a1}._f2dQ2:hover ._nQgF2:active>span>svg,._F7UUy._iN5gK ._N2Ep9:hover+._f2dQ2 ._nQgF2:active>span>svg{fill:#fff}._f2dQ2 ._nQgF2{left:-16px;width:36px;height:36px;position:absolute;top:48px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10;opacity:0}._f2dQ2 ._nQgF2._PiprX._PiprX._PiprX{opacity:1}._f2dQ2 ._nQgF2._aaHx0._aaHx0._aaHx0{opacity:0}._f2dQ2 ._nQgF2:active>span{background-color:#0854a1;border-color:#0854a1}._f2dQ2 ._nQgF2:active>span>svg{fill:#fff}._f2dQ2 ._nQgF2>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._f2dQ2 ._nQgF2>span>svg{fill:#515559;border-radius:50%}._f2dQ2:hover ._nQgF2,._iN5gK ._f2dQ2 ._nQgF2,._N2Ep9:hover+._f2dQ2 ._nQgF2{opacity:1}._nQgF2.focus-visible,._nQgF2:focus-visible{opacity:1;border-color:#0a3f88}";
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 = "._EXap3{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
4
- var styles = {"divider":"_EXap3"};
5
- var stylesheet="._EXap3{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
3
+ var css_248z = "._dSRse{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
4
+ var styles = {"divider":"_dSRse"};
5
+ var stylesheet="._dSRse{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -40,14 +40,17 @@ function useDescendant(descendant, context, indexProp) {
40
40
  // index on the following render and we will re-register descendants
41
41
  // so that everything is up-to-date before the user interacts with a
42
42
  // collection.
43
- const index = indexProp ?? descendants.findIndex(item => item.element === descendant.element);
43
+ const index = indexProp !== null && indexProp !== void 0 ? indexProp : descendants.findIndex(item => item.element === descendant.element);
44
44
  const previousDescendants = usePrevious(descendants);
45
45
 
46
46
  // We also need to re-register descendants any time ANY of the other
47
47
  // descendants have changed. My brain was melting when I wrote this and it
48
48
  // feels a little off, but checking in render and using the result in the
49
49
  // effect's dependency array works well enough.
50
- const someDescendantsHaveChanged = descendants.some((descendant, index) => descendant.element !== previousDescendants?.[index]?.element);
50
+ const someDescendantsHaveChanged = descendants.some((descendant, index) => {
51
+ var _previousDescendants$;
52
+ return descendant.element !== (previousDescendants === null || previousDescendants === void 0 ? void 0 : (_previousDescendants$ = previousDescendants[index]) === null || _previousDescendants$ === void 0 ? void 0 : _previousDescendants$.element);
53
+ });
51
54
 
52
55
  // Prevent any flashing
53
56
  useSSRLayoutEffect(() => {
@@ -13,6 +13,7 @@ import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
13
13
  import useClickOutside from '../../hooks/useClickOutside/useClickOutside.js';
14
14
 
15
15
  const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
16
+ var _ref2, _dropdownButton$props, _dropdownButton$props2, _dropdownButton$props3, _dropdownList$props$i, _dropdownList$props;
16
17
  let {
17
18
  className,
18
19
  children,
@@ -47,7 +48,7 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
47
48
  const [searchHeight, setSearchHeight] = useState();
48
49
  React__default.Children.forEach(children, child => {
49
50
  if ( /*#__PURE__*/React__default.isValidElement(child)) {
50
- switch (child?.type) {
51
+ switch (child === null || child === void 0 ? void 0 : child.type) {
51
52
  case DropdownButton:
52
53
  dropdownButton = child;
53
54
  break;
@@ -60,12 +61,11 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
60
61
  }
61
62
  });
62
63
  const containerId = useId(id);
63
- const buttonId = dropdownButton.props.children?.props?.id ?? dropdownButton.props.id ?? `${containerId}-button`;
64
- const dialogId = dropdownList.props?.id ?? `${containerId}-list`;
65
- const listboxId = `${containerId}-listbox`;
64
+ const buttonId = (_ref2 = (_dropdownButton$props = (_dropdownButton$props2 = dropdownButton.props.children) === null || _dropdownButton$props2 === void 0 ? void 0 : (_dropdownButton$props3 = _dropdownButton$props2.props) === null || _dropdownButton$props3 === void 0 ? void 0 : _dropdownButton$props3.id) !== null && _dropdownButton$props !== void 0 ? _dropdownButton$props : dropdownButton.props.id) !== null && _ref2 !== void 0 ? _ref2 : "".concat(containerId, "-button");
65
+ const dialogId = (_dropdownList$props$i = (_dropdownList$props = dropdownList.props) === null || _dropdownList$props === void 0 ? void 0 : _dropdownList$props.id) !== null && _dropdownList$props$i !== void 0 ? _dropdownList$props$i : "".concat(containerId, "-list");
66
+ const listboxId = "".concat(containerId, "-listbox");
66
67
  const [isOpen, setIsOpen] = useControllableState(false, onIsOpenChange, externalIsOpen);
67
68
  const [value, setValue] = useControllableState(defaultValue, onChange, externalValue);
68
- const [isKeyboardUser, setIsKeyboardUser] = useState(false);
69
69
  const [selectedIndex, setSelectedIndex] = useState(0);
70
70
  const [highlightedIndex, setHighlightedIndex] = useControllableState(-1, onHighlightedIndexChange, externalHighlightedIndex);
71
71
  const [minWidth, setMinWidth] = useState();
@@ -85,8 +85,9 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
85
85
  let currentIndex = (highlightedIndex + 1) % options.length; // start at next index
86
86
  let count = 0;
87
87
  while (count < options.length) {
88
+ var _option$label;
88
89
  const option = options[currentIndex];
89
- if (option.label?.toLowerCase().startsWith(lowerCaseChar)) {
90
+ if ((_option$label = option.label) !== null && _option$label !== void 0 && _option$label.toLowerCase().startsWith(lowerCaseChar)) {
90
91
  index = currentIndex;
91
92
  break;
92
93
  }
@@ -99,8 +100,9 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
99
100
  }
100
101
  };
101
102
  const selectHighlightedItem = e => {
103
+ var _option$handleSelect;
102
104
  const option = options[highlightedIndex];
103
- option?.handleSelect?.(e);
105
+ option === null || option === void 0 ? void 0 : (_option$handleSelect = option.handleSelect) === null || _option$handleSelect === void 0 ? void 0 : _option$handleSelect.call(option, e);
104
106
  };
105
107
  useClickOutside([buttonRef, listRef], handleClose);
106
108
  useEffect(() => {
@@ -120,13 +122,13 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
120
122
  return valueArray;
121
123
  });
122
124
  } else {
125
+ var _buttonRef$current;
123
126
  setValue(newValue);
124
127
  handleClose();
125
- buttonRef.current?.focus();
128
+ (_buttonRef$current = buttonRef.current) === null || _buttonRef$current === void 0 ? void 0 : _buttonRef$current.focus();
126
129
  }
127
130
  }, [isMultiSelect, handleClose, setValue]);
128
131
  const onKeyDownButton = e => {
129
- setIsKeyboardUser(true);
130
132
  let newHighlightedIndex;
131
133
  if (disabled) return;
132
134
  switch (e.key) {
@@ -162,7 +164,7 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
162
164
  }
163
165
  };
164
166
  const onKeyDownList = e => {
165
- setIsKeyboardUser(true);
167
+ var _buttonRef$current2, _buttonRef$current3;
166
168
  let newHighlightedIndex;
167
169
  if (disabled) return;
168
170
  switch (e.key) {
@@ -203,12 +205,12 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
203
205
  // close, focus button, and don't let event bubble up
204
206
  e.stopPropagation();
205
207
  handleClose();
206
- buttonRef.current?.focus();
208
+ (_buttonRef$current2 = buttonRef.current) === null || _buttonRef$current2 === void 0 ? void 0 : _buttonRef$current2.focus();
207
209
  break;
208
210
  case 'Tab':
209
211
  // close and focus next focusable element
210
212
  handleClose();
211
- buttonRef.current?.focus();
213
+ (_buttonRef$current3 = buttonRef.current) === null || _buttonRef$current3 === void 0 ? void 0 : _buttonRef$current3.focus();
212
214
  break;
213
215
  case 'PageUp':
214
216
  case 'Home':
@@ -260,8 +262,6 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
260
262
  ariaLabelledBy,
261
263
  ariaLabel,
262
264
  ariaDescribedby,
263
- isKeyboardUser,
264
- setIsKeyboardUser,
265
265
  isSearchable,
266
266
  isSearchFilteringDisabled,
267
267
  searchValue,
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._7-ZHd{max-width:100%;position:relative;display:inline-block}._Ws-D-{display:inline-flex;justify-content:space-between;align-items:center;background-color:#fafafa;border:1px solid #898989;border-radius:4px;height:36px;color:#515559;outline:none;cursor:pointer}._Ws-D-:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._Ws-D-:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._Ws-D-:disabled,._Ws-D-[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._Ws-D-._RFO6z{border-color:#b00}._Ws-D-._RFO6z:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._Ws-D-._uh0H-{min-width:120px;padding:0 4px 0 12px}._Ws-D-._mzUGQ{margin-top:4px}._Ws-D-._eCsXc:not([aria-disabled=true]):not(:disabled){color:#32363a}._Ws-D- ._3zwiR{display:inline-flex;align-items:center;min-height:10px}._Ws-D- ._3zwiR._04twc{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._Ws-D- ._N5uxj{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._Ws-D- ._N5uxj._tLQpp{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._Ws-D- ._N5uxj._05qrA{transform:rotate(-180deg)}._5o53U[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._aQR6Y{position:sticky;top:0;z-index:20;padding:4px 8px 8px!important;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;background-color:#fff!important}._TUWxX{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._agKVI{fill:#515559}._TH5YD{margin:2px 12px 2px 0}._TH5YD._1Xw1e>svg{border-color:#0b6ed0}._fdfa8{width:100%}";
4
- var styles = {"container":"_7-ZHd","button":"_Ws-D-","invalid":"_RFO6z","hasText":"_uh0H-","labelled":"_mzUGQ","selected":"_eCsXc","buttonLabel":"_3zwiR","isString":"_04twc","icon":"_N5uxj","disabled":"_tLQpp","open":"_05qrA","option":"_5o53U","search":"_aQR6Y","emptyOption":"_TUWxX","searchIcon":"_agKVI","checkbox":"_TH5YD","highlighted":"_1Xw1e","searchInput":"_fdfa8"};
5
- var stylesheet="._7-ZHd{max-width:100%;position:relative;display:inline-block}._Ws-D-{display:inline-flex;justify-content:space-between;align-items:center;background-color:#fafafa;border:1px solid #898989;border-radius:4px;height:36px;color:#515559;outline:none;cursor:pointer}._Ws-D-:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._Ws-D-:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._Ws-D-:disabled,._Ws-D-[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._Ws-D-._RFO6z{border-color:#b00}._Ws-D-._RFO6z:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._Ws-D-._uh0H-{min-width:120px;padding:0 4px 0 12px}._Ws-D-._mzUGQ{margin-top:4px}._Ws-D-._eCsXc:not([aria-disabled=true]):not(:disabled){color:#32363a}._Ws-D- ._3zwiR{display:inline-flex;align-items:center;min-height:10px}._Ws-D- ._3zwiR._04twc{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._Ws-D- ._N5uxj{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._Ws-D- ._N5uxj._tLQpp{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._Ws-D- ._N5uxj._05qrA{transform:rotate(-180deg)}._5o53U[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._aQR6Y{position:sticky;top:0;z-index:20;padding:4px 8px 8px!important;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;background-color:#fff!important}._TUWxX{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._agKVI{fill:#515559}._TH5YD{margin:2px 12px 2px 0}._TH5YD._1Xw1e>svg{border-color:#0b6ed0}._fdfa8{width:100%}";
3
+ var css_248z = "._0puZb{max-width:100%;position:relative;display:inline-block}._9A1jZ{display:inline-flex;justify-content:space-between;align-items:center;background-color:#fafafa;border:1px solid #898989;border-radius:4px;height:36px;color:#515559;outline:none;cursor:pointer}._9A1jZ:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._9A1jZ:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._9A1jZ:disabled,._9A1jZ[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._9A1jZ._WC4c2{border-color:#b00}._9A1jZ._WC4c2:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._9A1jZ._mr7pg{min-width:120px;padding:0 4px 0 12px}._9A1jZ._OwbnT{margin-top:4px}._9A1jZ._PFuxm:not([aria-disabled=true]):not(:disabled){color:#32363a}._9A1jZ ._Boj6z{display:inline-flex;align-items:center;min-height:10px}._9A1jZ ._Boj6z._tnYB7{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._9A1jZ ._uoskl{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._9A1jZ ._uoskl._DxJuo{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._9A1jZ ._uoskl._i-Dpi{transform:rotate(-180deg)}._Qxr4c[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._JbR1-{position:-webkit-sticky;position:sticky;top:0;z-index:20;padding:4px 8px 8px!important;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;background-color:#fff!important}._HHLq3{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._uvP6B{fill:#515559}._u9puj{margin:2px 12px 2px 0}._u9puj._nhaaK>svg{border-color:#0b6ed0}._NQscp{width:100%}";
4
+ var styles = {"container":"_0puZb","button":"_9A1jZ","invalid":"_WC4c2","hasText":"_mr7pg","labelled":"_OwbnT","selected":"_PFuxm","buttonLabel":"_Boj6z","isString":"_tnYB7","icon":"_uoskl","disabled":"_DxJuo","open":"_i-Dpi","option":"_Qxr4c","search":"_JbR1-","emptyOption":"_HHLq3","searchIcon":"_uvP6B","checkbox":"_u9puj","highlighted":"_nhaaK","searchInput":"_NQscp"};
5
+ var stylesheet="._0puZb{max-width:100%;position:relative;display:inline-block}._9A1jZ{display:inline-flex;justify-content:space-between;align-items:center;background-color:#fafafa;border:1px solid #898989;border-radius:4px;height:36px;color:#515559;outline:none;cursor:pointer}._9A1jZ:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._9A1jZ:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._9A1jZ:disabled,._9A1jZ[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._9A1jZ._WC4c2{border-color:#b00}._9A1jZ._WC4c2:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._9A1jZ._mr7pg{min-width:120px;padding:0 4px 0 12px}._9A1jZ._OwbnT{margin-top:4px}._9A1jZ._PFuxm:not([aria-disabled=true]):not(:disabled){color:#32363a}._9A1jZ ._Boj6z{display:inline-flex;align-items:center;min-height:10px}._9A1jZ ._Boj6z._tnYB7{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._9A1jZ ._uoskl{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._9A1jZ ._uoskl._DxJuo{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._9A1jZ ._uoskl._i-Dpi{transform:rotate(-180deg)}._Qxr4c[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._JbR1-{position:-webkit-sticky;position:sticky;top:0;z-index:20;padding:4px 8px 8px!important;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;background-color:#fff!important}._HHLq3{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._uvP6B{fill:#515559}._u9puj{margin:2px 12px 2px 0}._u9puj._nhaaK>svg{border-color:#0b6ed0}._NQscp{width:100%}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -15,6 +15,7 @@ import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
15
15
  import ChevronDownIcon from '../../icons/components/ChevronDownIcon.js';
16
16
 
17
17
  const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
18
+ var _ref2, _children$props$aria, _children$props, _ref3, _children$props$aria2, _children$props2, _ref4, _children$props$aria3, _children$props3, _children$props$tabIn, _children$props4, _children$props7, _children$props8;
18
19
  let {
19
20
  children,
20
21
  className,
@@ -61,9 +62,9 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
61
62
  helperTextId: formFieldHelperTextId,
62
63
  errorTextId: formFieldErrorTextId
63
64
  } = useFormFieldControl();
64
- const ariaLabelledBy = children?.props?.['aria-labelledby'] ?? externalAriaLabelledBy ?? (dropdownAriaLabelledBy ? `${dropdownAriaLabelledBy} ${buttonId}` : undefined);
65
- const ariaLabel = children?.props?.['aria-label'] ?? externalAriaLabel ?? (dropdownAriaLabel && typeof label === 'string' ? `${dropdownAriaLabel} ${label}` : dropdownAriaLabel);
66
- const ariaDescribedby = concatIds(children?.props?.['aria-describedby'] ?? externalAriaDescribedBy ?? dropdownAriaDescribedby, formFieldHelperTextId, formFieldErrorTextId);
65
+ const ariaLabelledBy = (_ref2 = (_children$props$aria = children === null || children === void 0 ? void 0 : (_children$props = children.props) === null || _children$props === void 0 ? void 0 : _children$props['aria-labelledby']) !== null && _children$props$aria !== void 0 ? _children$props$aria : externalAriaLabelledBy) !== null && _ref2 !== void 0 ? _ref2 : dropdownAriaLabelledBy ? "".concat(dropdownAriaLabelledBy, " ").concat(buttonId) : undefined;
66
+ const ariaLabel = (_ref3 = (_children$props$aria2 = children === null || children === void 0 ? void 0 : (_children$props2 = children.props) === null || _children$props2 === void 0 ? void 0 : _children$props2['aria-label']) !== null && _children$props$aria2 !== void 0 ? _children$props$aria2 : externalAriaLabel) !== null && _ref3 !== void 0 ? _ref3 : dropdownAriaLabel && typeof label === 'string' ? "".concat(dropdownAriaLabel, " ").concat(label) : dropdownAriaLabel;
67
+ const ariaDescribedby = concatIds((_ref4 = (_children$props$aria3 = children === null || children === void 0 ? void 0 : (_children$props3 = children.props) === null || _children$props3 === void 0 ? void 0 : _children$props3['aria-describedby']) !== null && _children$props$aria3 !== void 0 ? _children$props$aria3 : externalAriaDescribedBy) !== null && _ref4 !== void 0 ? _ref4 : dropdownAriaDescribedby, formFieldHelperTextId, formFieldErrorTextId);
67
68
  useEffect(() => {
68
69
  const selectedLabels = [];
69
70
  options.forEach(option => {
@@ -75,12 +76,13 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
75
76
  setLabel(selectedLabels.length > 0 ? selectedLabels.join(', ') : defaultLabel);
76
77
  }, [setLabel, options, defaultLabel]);
77
78
  useEffect(() => {
78
- setMinWidth(buttonRef?.current?.offsetWidth);
79
+ var _buttonRef$current;
80
+ setMinWidth(buttonRef === null || buttonRef === void 0 ? void 0 : (_buttonRef$current = buttonRef.current) === null || _buttonRef$current === void 0 ? void 0 : _buttonRef$current.offsetWidth);
79
81
  });
80
82
  const isInvalid = isInvalidProp !== undefined ? isInvalidProp : dropdownIsInvalid;
81
83
  const handleClick = e => {
82
- if (disabled ?? dropdownAriaDisabled) return;
83
- onClick?.(e);
84
+ if (disabled !== null && disabled !== void 0 ? disabled : dropdownAriaDisabled) return;
85
+ onClick === null || onClick === void 0 ? void 0 : onClick(e);
84
86
  // Needed because some browsers don't focus on click
85
87
  e.currentTarget.focus();
86
88
  setIsOpen(currentIsOpen => {
@@ -89,15 +91,15 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
89
91
  });
90
92
  };
91
93
  const handleKeyDown = e => {
92
- if (disabled ?? dropdownAriaDisabled) return;
93
- onKeyDown?.(e);
94
+ if (disabled !== null && disabled !== void 0 ? disabled : dropdownAriaDisabled) return;
95
+ onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
94
96
  onKeyDownButton(e);
95
97
  };
96
98
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children ? /*#__PURE__*/React__default.cloneElement(children, {
97
- ref: mergeRefs(ref, children?.ref, buttonRef, dropdownButtonRef),
99
+ ref: mergeRefs(ref, children === null || children === void 0 ? void 0 : children.ref, buttonRef, dropdownButtonRef),
98
100
  disabled: disabled || dropdownAriaDisabled,
99
101
  'aria-disabled': dropdownAriaDisabled,
100
- tabIndex: children.props?.tabIndex ?? 0,
102
+ tabIndex: (_children$props$tabIn = (_children$props4 = children.props) === null || _children$props4 === void 0 ? void 0 : _children$props4.tabIndex) !== null && _children$props$tabIn !== void 0 ? _children$props$tabIn : 0,
101
103
  role: 'button',
102
104
  'aria-expanded': isOpen,
103
105
  'aria-haspopup': 'listbox',
@@ -107,15 +109,17 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
107
109
  'aria-describedby': ariaDescribedby,
108
110
  id: buttonId,
109
111
  onFocus: e => {
110
- children.props?.onFocus?.(e);
111
- onFocus?.(e);
112
+ var _children$props5, _children$props5$onFo;
113
+ (_children$props5 = children.props) === null || _children$props5 === void 0 ? void 0 : (_children$props5$onFo = _children$props5.onFocus) === null || _children$props5$onFo === void 0 ? void 0 : _children$props5$onFo.call(_children$props5, e);
114
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
112
115
  },
113
116
  onBlur: e => {
114
- children.props?.onBlur?.(e);
115
- onBlur?.(e);
117
+ var _children$props6, _children$props6$onBl;
118
+ (_children$props6 = children.props) === null || _children$props6 === void 0 ? void 0 : (_children$props6$onBl = _children$props6.onBlur) === null || _children$props6$onBl === void 0 ? void 0 : _children$props6$onBl.call(_children$props6, e);
119
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
116
120
  },
117
- onKeyDown: wrapEvent(children.props?.onKeyDown, handleKeyDown),
118
- onClick: wrapEvent(children.props?.onClick, handleClick)
121
+ onKeyDown: wrapEvent((_children$props7 = children.props) === null || _children$props7 === void 0 ? void 0 : _children$props7.onKeyDown, handleKeyDown),
122
+ onClick: wrapEvent((_children$props8 = children.props) === null || _children$props8 === void 0 ? void 0 : _children$props8.onClick, handleClick)
119
123
  }) : /*#__PURE__*/React__default.createElement("button", _extends({}, rest, {
120
124
  ref: mergeRefs(ref, buttonRef, dropdownButtonRef),
121
125
  type: "button",
@@ -132,14 +136,14 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
132
136
  [styles.hasText]: !!label,
133
137
  [styles.invalid]: isInvalid,
134
138
  [styles.labelled]: hasFormLabel,
135
- [styles.selected]: externalLabel ?? isOptionSelected // defaultLabel has lighter text color
139
+ [styles.selected]: externalLabel !== null && externalLabel !== void 0 ? externalLabel : isOptionSelected // defaultLabel has lighter text color
136
140
  }),
137
141
 
138
142
  onFocus: onFocus,
139
143
  onBlur: onBlur,
140
144
  onKeyDown: handleKeyDown,
141
145
  onClick: handleClick,
142
- "data-testid": dataTestId ?? getSubDataTestId(contextDataTestId, 'button')
146
+ "data-testid": dataTestId !== null && dataTestId !== void 0 ? dataTestId : getSubDataTestId(contextDataTestId, 'button')
143
147
  }), /*#__PURE__*/React__default.createElement("span", {
144
148
  className: classNames(styles.buttonLabel, {
145
149
  [styles.isString]: typeof label === 'string'
@@ -148,7 +152,7 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
148
152
  size: "medium",
149
153
  className: classNames(styles.icon, {
150
154
  [styles.open]: isOpen,
151
- [styles.disabled]: disabled ?? dropdownAriaDisabled
155
+ [styles.disabled]: disabled !== null && disabled !== void 0 ? disabled : dropdownAriaDisabled
152
156
  }),
153
157
  "aria-hidden": "true"
154
158
  })));
@@ -47,8 +47,8 @@ const DropdownList = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
47
47
  translate
48
48
  } = useTranslation();
49
49
  const noMatchesText = useMemo(() => isSearchable && translate('noMatchesFound'), [isSearchable, translate]);
50
- const ariaLabelledby = externalAriaLabelledBy ?? ariaLabelledByFromContext;
51
- const ariaLabel = externalAriaLabel ?? ariaLabelFromContext;
50
+ const ariaLabelledby = externalAriaLabelledBy !== null && externalAriaLabelledBy !== void 0 ? externalAriaLabelledBy : ariaLabelledByFromContext;
51
+ const ariaLabel = externalAriaLabel !== null && externalAriaLabel !== void 0 ? externalAriaLabel : ariaLabelFromContext;
52
52
  const announceToScreenReader = useScreenReaderAnnouncement('assertive');
53
53
  const showNoResults = useMemo(() => options.filter(option => option.isVisible).length === 1,
54
54
  // 1 to include the search box entry
@@ -79,14 +79,14 @@ const DropdownList = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
79
79
  "aria-labelledby": ariaLabelledby,
80
80
  hidden: !isOpen,
81
81
  onKeyDown: e => {
82
- onKeyDown?.(e);
82
+ onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
83
83
  onKeyDownList(e);
84
84
  },
85
85
  style: {
86
86
  minWidth,
87
87
  ...style
88
88
  },
89
- "data-testid": dataTestId ?? getSubDataTestId(contextDataTestId, 'flyout')
89
+ "data-testid": dataTestId !== null && dataTestId !== void 0 ? dataTestId : getSubDataTestId(contextDataTestId, 'flyout')
90
90
  }), isSearchable && /*#__PURE__*/React__default.createElement(DropdownSearch, null), /*#__PURE__*/React__default.createElement("div", {
91
91
  id: listboxId,
92
92
  role: "listbox",
@@ -34,8 +34,6 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
34
34
  onOptionSelected,
35
35
  setHighlightedIndex,
36
36
  listRef,
37
- isKeyboardUser,
38
- setIsKeyboardUser,
39
37
  searchValue,
40
38
  isSearchFilteringDisabled,
41
39
  isSearchable,
@@ -49,7 +47,7 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
49
47
  return isSearchFilteringDisabled || !label || !searchValue || typeof label === 'string' && _includesInstanceProperty(_context = label.toLowerCase()).call(_context, searchValue.toLowerCase());
50
48
  }, [isSearchFilteringDisabled, label, searchValue]);
51
49
  useEffect(() => {
52
- setVisibleChildIds?.(visibleChildIds => {
50
+ setVisibleChildIds === null || setVisibleChildIds === void 0 ? void 0 : setVisibleChildIds(visibleChildIds => {
53
51
  const duplicateSet = new Set(visibleChildIds);
54
52
  if (isVisible) {
55
53
  return duplicateSet.add(value);
@@ -76,7 +74,8 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
76
74
  const isHighlighted = highlightedIndex === myIndex && myIndex !== -1;
77
75
  useEffect(() => {
78
76
  if (isHighlighted) {
79
- if (isKeyboardUser && isOpen && internalRef?.current && listRef?.current && listRef.current?.scrollHeight > listRef.current?.clientHeight) {
77
+ var _listRef$current, _listRef$current2, _internalRef$current;
78
+ if (isOpen && internalRef !== null && internalRef !== void 0 && internalRef.current && listRef !== null && listRef !== void 0 && listRef.current && ((_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.scrollHeight) > ((_listRef$current2 = listRef.current) === null || _listRef$current2 === void 0 ? void 0 : _listRef$current2.clientHeight)) {
80
79
  const scrollBottom = listRef.current.clientHeight + listRef.current.scrollTop;
81
80
  const elementBottom = internalRef.current.offsetTop + internalRef.current.offsetHeight;
82
81
  if (elementBottom > scrollBottom) {
@@ -85,11 +84,11 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
85
84
  listRef.current.scrollTop = internalRef.current.offsetTop - (isSearchable ? searchHeight : 0);
86
85
  }
87
86
  }
88
- internalRef.current?.focus({
87
+ (_internalRef$current = internalRef.current) === null || _internalRef$current === void 0 ? void 0 : _internalRef$current.focus({
89
88
  preventScroll: true
90
89
  });
91
90
  }
92
- }, [isHighlighted, isKeyboardUser, isOpen, listRef, isSearchable, searchHeight]);
91
+ }, [isHighlighted, isOpen, listRef, isSearchable, searchHeight]);
93
92
  return isOpen && isVisible ? /*#__PURE__*/React__default.createElement(FlyoutOption, _extends({}, rest, {
94
93
  className: classNames(className, styles.option),
95
94
  ref: mergeRefs(internalRef, ref),
@@ -100,7 +99,6 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
100
99
  "aria-disabled": disabled,
101
100
  onMouseDown: wrapEvent(onMouseDown, e => e.preventDefault()),
102
101
  onMouseEnter: wrapEvent(onMouseEnter, () => {
103
- setIsKeyboardUser(false);
104
102
  setHighlightedIndex(myIndex);
105
103
  }),
106
104
  onMouseLeave: wrapEvent(onMouseLeave, () => setHighlightedIndex(-1))
@@ -22,16 +22,17 @@ const DropdownSearch = /*#__PURE__*/React__default.forwardRef((_, ref) => {
22
22
  const {
23
23
  isOpen,
24
24
  highlightedIndex,
25
- setIsKeyboardUser,
26
25
  setHighlightedIndex,
27
26
  searchValue,
28
27
  setSearchValue,
29
- isKeyboardUser,
30
28
  setSearchHeight,
31
29
  dataTestId,
32
30
  listboxId
33
31
  } = useDropdownContext();
34
- const handleSelect = () => inputRef.current?.focus();
32
+ const handleSelect = () => {
33
+ var _inputRef$current;
34
+ return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
35
+ };
35
36
  const myIndex = useChildIndex({
36
37
  element: internalRef.current,
37
38
  isVisible: true
@@ -39,21 +40,24 @@ const DropdownSearch = /*#__PURE__*/React__default.forwardRef((_, ref) => {
39
40
  const isHighlighted = useMemo(() => highlightedIndex === myIndex && myIndex !== -1, [highlightedIndex, myIndex]);
40
41
  useEffect(() => {
41
42
  // for keyboard navigation
42
- if (isHighlighted && isKeyboardUser) {
43
- inputRef.current?.focus();
43
+ if (isHighlighted) {
44
+ var _inputRef$current2;
45
+ (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus();
44
46
  }
45
- }, [isHighlighted, isKeyboardUser]);
47
+ }, [isHighlighted]);
46
48
  useEffect(() => {
47
49
  // for initial open with mouse
48
50
  if (isHighlighted && isOpen) {
49
- inputRef.current?.focus();
51
+ var _inputRef$current3;
52
+ (_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.focus();
50
53
  }
51
54
  // Omitted `isHighlighted` because we don't want to focus the input on mouse enter.
52
55
  // eslint-disable-next-line react-hooks/exhaustive-deps
53
56
  }, [isOpen]);
54
57
  useEffect(() => {
55
58
  if (isOpen) {
56
- setSearchHeight(internalRef.current?.offsetHeight);
59
+ var _internalRef$current;
60
+ setSearchHeight((_internalRef$current = internalRef.current) === null || _internalRef$current === void 0 ? void 0 : _internalRef$current.offsetHeight);
57
61
  }
58
62
  }, [isOpen, setSearchHeight]);
59
63
  const handleKeyDown = e => {
@@ -69,7 +73,6 @@ const DropdownSearch = /*#__PURE__*/React__default.forwardRef((_, ref) => {
69
73
  };
70
74
  const handleMouseEnter = () => {
71
75
  setHighlightedIndex(myIndex);
72
- setIsKeyboardUser(false);
73
76
  };
74
77
  const handleMouseLeave = () => {
75
78
  setHighlightedIndex(-1);
@@ -2,7 +2,6 @@ import _extends from '@babel/runtime-corejs3/helpers/extends';
2
2
  import React__default, { useState, useRef } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import filePickerStyles from './FilePicker2.js';
5
- import buttonStyles from '../Button/Button.js';
6
5
  import '../Button/index.js';
7
6
  import '../../utils/index.js';
8
7
  import '../../hooks/index.js';
@@ -47,12 +46,11 @@ const FilePicker = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
47
46
  const {
48
47
  translate
49
48
  } = useTranslation();
50
- const [isInputFocused, setIsInputFocused] = useState(false);
51
49
  const [filesChanged, setFilesChanged] = useState(false);
52
50
  const [files, setFiles] = useControllableState(undefined, undefined, externalFiles);
53
51
  const fileInputId = useId(externalId);
54
- const fileDetailsId = `${fileInputId}-fileDetails`;
55
- const buttonId = `${fileInputId}-button`;
52
+ const fileDetailsId = "".concat(fileInputId, "-fileDetails");
53
+ const buttonId = "".concat(fileInputId, "-button");
56
54
  const fileInputRef = useRef(null);
57
55
  const buttonRef = useRef(null);
58
56
 
@@ -64,12 +62,13 @@ const FilePicker = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
64
62
 
65
63
  // returns focus to input after closing system dialog
66
64
  useDidUpdate(() => {
67
- fileInputRef.current?.focus();
65
+ var _fileInputRef$current;
66
+ (_fileInputRef$current = fileInputRef.current) === null || _fileInputRef$current === void 0 ? void 0 : _fileInputRef$current.focus();
68
67
  }, [filesChanged]);
69
68
  const internalAriaDescribedby = concatIds(externalAriaDescribedBy, formFieldHelperTextId, formFieldErrorTextId);
70
69
  const handleChange = e => {
71
70
  setFiles(e.target.files, e);
72
- onChange?.(e);
71
+ onChange === null || onChange === void 0 ? void 0 : onChange(e);
73
72
  // This is needed due to CFE-508
74
73
  setFilesChanged(val => !val);
75
74
  };
@@ -87,13 +86,16 @@ const FilePicker = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
87
86
  }, /*#__PURE__*/React__default.createElement(Button, {
88
87
  disabled: disabled,
89
88
  kind: "secondary",
90
- onClick: () => fileInputRef.current?.click(),
89
+ onClick: () => {
90
+ var _fileInputRef$current2;
91
+ return (_fileInputRef$current2 = fileInputRef.current) === null || _fileInputRef$current2 === void 0 ? void 0 : _fileInputRef$current2.click();
92
+ },
91
93
  tabIndex: -1,
92
- className: classNames({
93
- [buttonStyles.keyboardFocused]: isInputFocused
94
- }),
95
94
  ref: buttonRef,
96
- onFocus: () => fileInputRef.current?.focus(),
95
+ onFocus: () => {
96
+ var _fileInputRef$current3;
97
+ return (_fileInputRef$current3 = fileInputRef.current) === null || _fileInputRef$current3 === void 0 ? void 0 : _fileInputRef$current3.focus();
98
+ },
97
99
  id: buttonId,
98
100
  "aria-hidden": true
99
101
  }, buttonLabel), /*#__PURE__*/React__default.createElement("input", _extends({}, rest, {
@@ -104,8 +106,6 @@ const FilePicker = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
104
106
  onChange: disabled ? undefined : handleChange,
105
107
  ref: mergeRefs(fileInputRef, ref),
106
108
  type: "file",
107
- onFocus: () => setIsInputFocused(true),
108
- onBlur: () => setIsInputFocused(false),
109
109
  "aria-label": ariaLabel,
110
110
  id: fileInputId,
111
111
  "aria-labelledby": ariaLabelledBy,
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._IBQHZ{position:relative}._c8dMm{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._l-ZqU{margin-left:16px;font-size:14px;color:#32363a}._l-ZqU ._iD0Wb{margin-right:16px}";
4
- var filePickerStyles = {"container":"_IBQHZ","fileInput":"_c8dMm","fileDetails":"_l-ZqU","fileName":"_iD0Wb"};
5
- var stylesheet="._IBQHZ{position:relative}._c8dMm{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._l-ZqU{margin-left:16px;font-size:14px;color:#32363a}._l-ZqU ._iD0Wb{margin-right:16px}";
3
+ var css_248z = "._zuuNz{position:relative}._zuuNz[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._zuuNz:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._mDaRv{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._GjFbw{margin-left:16px;font-size:14px;color:#32363a}._GjFbw ._VXejk{margin-right:16px}";
4
+ var filePickerStyles = {"container":"_zuuNz","fileInput":"_mDaRv","fileDetails":"_GjFbw","fileName":"_VXejk"};
5
+ var stylesheet="._zuuNz{position:relative}._zuuNz[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._zuuNz:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._mDaRv{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._GjFbw{margin-left:16px;font-size:14px;color:#32363a}._GjFbw ._VXejk{margin-right:16px}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { filePickerStyles 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 = "._v65AR{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._maK-P{color:#74777a;fill:#74777a}._OlxXl{color:#b00;fill:#b00}._2E-hT,._spocL{margin-left:-2px;margin-right:3px}";
4
- var styles = {"caption":"_v65AR","helperText":"_maK-P","errorText":"_OlxXl","errorIcon":"_2E-hT","readOnlyIcon":"_spocL"};
5
- var stylesheet="._v65AR{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._maK-P{color:#74777a;fill:#74777a}._OlxXl{color:#b00;fill:#b00}._2E-hT,._spocL{margin-left:-2px;margin-right:3px}";
3
+ var css_248z = "._-wver{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._IioSN{color:#74777a;fill:#74777a}._ewz3v{color:#b00;fill:#b00}._4vVvE,._AABoa{margin-left:-2px;margin-right:3px}";
4
+ var styles = {"caption":"_-wver","helperText":"_IioSN","errorText":"_ewz3v","errorIcon":"_AABoa","readOnlyIcon":"_4vVvE"};
5
+ var stylesheet="._-wver{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._IioSN{color:#74777a;fill:#74777a}._ewz3v{color:#b00;fill:#b00}._4vVvE,._AABoa{margin-left:-2px;margin-right:3px}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -29,8 +29,8 @@ const FormField = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
29
29
  const [hasLabel, setHasLabel] = useState(false);
30
30
  const [formFieldType, setFormFieldType] = useState('');
31
31
  const containerId = useId(externalId);
32
- const helperTextId = helperText ? `${containerId}-helper-text` : undefined;
33
- const errorTextId = errorText ? `${containerId}-error-text` : undefined;
32
+ const helperTextId = helperText ? "".concat(containerId, "-helper-text") : undefined;
33
+ const errorTextId = errorText ? "".concat(containerId, "-error-text") : undefined;
34
34
  return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
35
35
  ref: mergeRefs(ref, focusRef),
36
36
  className: classNames(className, {