@qualtrics/ui-react 2.75.0 → 2.76.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 (174) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/__node_modules/@radix-ui/primitive/dist/index.js +54 -0
  3. package/dist/__node_modules/@radix-ui/react-arrow/dist/index.js +28 -0
  4. package/dist/__node_modules/@radix-ui/react-collection/dist/index.js +605 -0
  5. package/dist/__node_modules/@radix-ui/react-compose-refs/dist/index.js +45 -0
  6. package/dist/__node_modules/@radix-ui/react-context/dist/index.js +108 -0
  7. package/dist/__node_modules/@radix-ui/react-direction/dist/index.js +21 -0
  8. package/dist/__node_modules/@radix-ui/react-dismissable-layer/dist/index.js +223 -0
  9. package/dist/__node_modules/@radix-ui/react-dropdown-menu/dist/index.js +350 -0
  10. package/dist/__node_modules/@radix-ui/react-focus-guards/dist/index.js +35 -0
  11. package/dist/__node_modules/@radix-ui/react-focus-scope/dist/index.js +248 -0
  12. package/dist/__node_modules/@radix-ui/react-id/dist/index.js +15 -0
  13. package/dist/__node_modules/@radix-ui/react-menu/dist/index.js +911 -0
  14. package/dist/__node_modules/@radix-ui/react-popper/dist/index.js +325 -0
  15. package/dist/__node_modules/@radix-ui/react-portal/dist/index.js +25 -0
  16. package/dist/__node_modules/@radix-ui/react-presence/dist/index.js +141 -0
  17. package/dist/__node_modules/@radix-ui/react-primitive/dist/index.js +34 -0
  18. package/dist/__node_modules/@radix-ui/react-roving-focus/dist/index.js +216 -0
  19. package/dist/__node_modules/@radix-ui/react-slot/dist/index.js +127 -0
  20. package/dist/__node_modules/@radix-ui/react-use-callback-ref/dist/index.js +18 -0
  21. package/dist/__node_modules/@radix-ui/react-use-controllable-state/dist/index.js +141 -0
  22. package/dist/__node_modules/@radix-ui/react-use-effect-event/dist/index.js +32 -0
  23. package/dist/__node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +23 -0
  24. package/dist/__node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
  25. package/dist/__node_modules/@radix-ui/react-use-size/dist/index.js +48 -0
  26. package/dist/__node_modules/aria-hidden/dist/es2015/index.js +169 -0
  27. package/dist/__node_modules/detect-node-es/esm/node.js +4 -0
  28. package/dist/__node_modules/get-nonce/dist/es2015/index.js +15 -0
  29. package/dist/__node_modules/react-remove-scroll/dist/es2015/Combination.js +9 -0
  30. package/dist/__node_modules/react-remove-scroll/dist/es2015/SideEffect.js +169 -0
  31. package/dist/__node_modules/react-remove-scroll/dist/es2015/UI.js +39 -0
  32. package/dist/__node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +21 -0
  33. package/dist/__node_modules/react-remove-scroll/dist/es2015/handleScroll.js +110 -0
  34. package/dist/__node_modules/react-remove-scroll/dist/es2015/index.js +1 -0
  35. package/dist/__node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
  36. package/dist/__node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
  37. package/dist/__node_modules/react-remove-scroll-bar/dist/es2015/component.js +57 -0
  38. package/dist/__node_modules/react-remove-scroll-bar/dist/es2015/constants.js +10 -0
  39. package/dist/__node_modules/react-remove-scroll-bar/dist/es2015/index.js +3 -0
  40. package/dist/__node_modules/react-remove-scroll-bar/dist/es2015/utils.js +31 -0
  41. package/dist/__node_modules/react-style-singleton/dist/es2015/component.js +19 -0
  42. package/dist/__node_modules/react-style-singleton/dist/es2015/hook.js +25 -0
  43. package/dist/__node_modules/react-style-singleton/dist/es2015/index.js +3 -0
  44. package/dist/__node_modules/react-style-singleton/dist/es2015/singleton.js +51 -0
  45. package/dist/__node_modules/tslib/tslib.es6.js +403 -0
  46. package/dist/__node_modules/use-callback-ref/dist/es2015/assignRef.js +24 -0
  47. package/dist/__node_modules/use-callback-ref/dist/es2015/createRef.js +25 -0
  48. package/dist/__node_modules/use-callback-ref/dist/es2015/index.js +8 -0
  49. package/dist/__node_modules/use-callback-ref/dist/es2015/mergeRef.js +21 -0
  50. package/dist/__node_modules/use-callback-ref/dist/es2015/refToCallback.js +50 -0
  51. package/dist/__node_modules/use-callback-ref/dist/es2015/transformRef.js +17 -0
  52. package/dist/__node_modules/use-callback-ref/dist/es2015/useMergeRef.js +48 -0
  53. package/dist/__node_modules/use-callback-ref/dist/es2015/useRef.js +42 -0
  54. package/dist/__node_modules/use-callback-ref/dist/es2015/useTransformRef.js +21 -0
  55. package/dist/__node_modules/use-sidecar/dist/es2015/config.js +8 -0
  56. package/dist/__node_modules/use-sidecar/dist/es2015/env.js +8 -0
  57. package/dist/__node_modules/use-sidecar/dist/es2015/exports.js +21 -0
  58. package/dist/__node_modules/use-sidecar/dist/es2015/hoc.js +18 -0
  59. package/dist/__node_modules/use-sidecar/dist/es2015/hook.js +44 -0
  60. package/dist/__node_modules/use-sidecar/dist/es2015/index.js +6 -0
  61. package/dist/__node_modules/use-sidecar/dist/es2015/medium.js +81 -0
  62. package/dist/__node_modules/use-sidecar/dist/es2015/renderProp.js +38 -0
  63. package/dist/__shared/cjs/{index-9f6415a6.js → index-87207072.js} +422 -371
  64. package/dist/__shared/cjs/{index-98bc748b.js → index-b569963c.js} +3 -3
  65. package/dist/components/Accordion/Accordion2.js +3 -3
  66. package/dist/components/BreakpointSwitch/BreakpointSwitch.js +3 -2
  67. package/dist/components/Button/Button.js +3 -3
  68. package/dist/components/ButtonGroup/ButtonGroup.js +3 -2
  69. package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
  70. package/dist/components/Checkbox/Checkbox2.js +3 -3
  71. package/dist/components/ColorPicker/ColorPicker.js +7 -8
  72. package/dist/components/ColorPicker/ColorPicker2.js +3 -3
  73. package/dist/components/Combobox/Combobox.js +9 -8
  74. package/dist/components/Combobox/Combobox2.js +3 -3
  75. package/dist/components/Combobox/ComboboxList.js +5 -6
  76. package/dist/components/ConfigPane/ConfigPane2.js +3 -3
  77. package/dist/components/Divider/Divider2.js +3 -3
  78. package/dist/components/Dropdown/Dropdown.js +1 -1
  79. package/dist/components/Dropdown/Dropdown2.js +3 -3
  80. package/dist/components/Dropdown/DropdownButton.js +10 -9
  81. package/dist/components/Dropdown/DropdownList.js +6 -7
  82. package/dist/components/FilePicker/FilePicker2.js +3 -3
  83. package/dist/components/FormField/Caption.js +3 -3
  84. package/dist/components/FormField/FormField2.js +3 -3
  85. package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
  86. package/dist/components/IconButton/IconButton2.js +3 -3
  87. package/dist/components/InlineInput/InlineInput2.js +3 -3
  88. package/dist/components/Input/Input2.js +3 -3
  89. package/dist/components/InputGroup/InputGroup2.js +3 -3
  90. package/dist/components/Label/Label2.js +3 -3
  91. package/dist/components/Link/Link2.js +3 -3
  92. package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
  93. package/dist/components/LogicEditor/ConditionSet.js +2 -2
  94. package/dist/components/LogicEditor/LogicEditor2.js +3 -3
  95. package/dist/components/Modal/Modal.js +4 -2
  96. package/dist/components/Modal/Modal2.js +3 -3
  97. package/dist/components/NewMenu/BaseMenu.js +31 -25
  98. package/dist/components/NewMenu/Menu/Menu.js +1 -0
  99. package/dist/components/NewMenu/NewMenu.js +3 -3
  100. package/dist/components/NewMenu/SelectMenu/SelectMenu.js +3 -1
  101. package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +10 -4
  102. package/dist/components/NewMenu/parts/MenuItem.js +1 -1
  103. package/dist/components/NumberStepper/NumberStepper2.js +3 -3
  104. package/dist/components/PageLayout/PageLayout.js +3 -3
  105. package/dist/components/Pagination/Pagination2.js +3 -3
  106. package/dist/components/Popover/Popover.js +8 -14
  107. package/dist/components/Popover/Popover2.js +3 -3
  108. package/dist/components/QuickSearch/QuickSearch2.js +3 -3
  109. package/dist/components/Radio/Radio2.js +3 -3
  110. package/dist/components/SearchInput/SearchInput2.js +3 -3
  111. package/dist/components/SidebarNav/SidebarNav2.js +3 -3
  112. package/dist/components/Slider/Slider2.js +3 -3
  113. package/dist/components/Switch/Switch2.js +3 -3
  114. package/dist/components/Table/Table2.js +3 -3
  115. package/dist/components/Tabs/TabList.js +3 -2
  116. package/dist/components/Tabs/TabPanels.js +2 -1
  117. package/dist/components/Tabs/Tabs2.js +3 -3
  118. package/dist/components/Tooltip/Tooltip.js +6 -12
  119. package/dist/components/Tooltip/Tooltip2.js +3 -3
  120. package/dist/components/deprecated_ColorPicker/ColorPicker.js +5 -6
  121. package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
  122. package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
  123. package/dist/components/deprecated_Tabs/Tabs.js +3 -3
  124. package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
  125. package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
  126. package/dist/design-tokens/less/typography.js +3 -3
  127. package/dist/hooks/useOverlay/useOverlay2.js +3 -3
  128. package/dist/hooks/usePrevious/usePrevious.js +1 -1
  129. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +2 -2
  130. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
  131. package/dist/icons/Icon.js +3 -3
  132. package/dist/icons/index.js +1 -1
  133. package/dist/index.d.ts +18 -17
  134. package/dist/index.es.js +1 -1
  135. package/dist/index.js +4 -5
  136. package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
  137. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
  138. package/dist/next/Combobox/Combobox2.js +3 -3
  139. package/dist/next/Combobox/ComboboxFlyout.js +6 -6
  140. package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +1 -1
  141. package/dist/next/Combobox/hooks/useComboboxLoadingState/useComboboxLoadingState.js +1 -1
  142. package/dist/next/Drawer/Drawer2.js +3 -3
  143. package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
  144. package/dist/next/Form/FormFields/InputField.js +3 -3
  145. package/dist/next/Indicator/Indicator2.js +3 -3
  146. package/dist/next/Input/Input2.js +3 -3
  147. package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
  148. package/dist/next/Menu/Hooks/usePaneSearch.js +1 -1
  149. package/dist/next/Menu/Menu.js +2 -2
  150. package/dist/next/Menu/Menu2.js +3 -3
  151. package/dist/next/Menu/MenuButton.js +1 -1
  152. package/dist/next/Menu/MenuItem.js +2 -2
  153. package/dist/next/Menu/MenuPane.js +4 -3
  154. package/dist/next/Menu/SubMenu.js +8 -6
  155. package/dist/next/PhoneNumberInput/PhoneNumberInput.js +90 -41
  156. package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
  157. package/dist/next/Select/Select2.js +3 -3
  158. package/dist/next/SplitButton/SplitButton2.js +3 -3
  159. package/dist/next/TimePicker/TimeDropdown.js +5 -6
  160. package/dist/next/TimePicker/TimeInput.js +104 -37
  161. package/dist/next/TimePicker/TimePicker2.js +3 -3
  162. package/dist/next/ToggleButton/styles.js +3 -3
  163. package/dist/next/index.d.ts +15 -13
  164. package/dist/next/index.js +5601 -324
  165. package/dist/utils/Flyout/Flyout2.js +3 -3
  166. package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +2 -1
  167. package/dist/utils/Popper/Popper.js +162 -114
  168. package/dist/utils/Portal/Portal.js +3 -2
  169. package/dist/utils/Text/Text.js +3 -2
  170. package/dist/utils/filterChildren/filterChildren.js +3 -2
  171. package/dist/utils/index.js +1 -0
  172. package/icons/package.json +3 -4
  173. package/next/package.json +4 -5
  174. package/package.json +15 -16
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._8t7tp :after{background-color:#515559!important}._ZMh25>input:focus{box-shadow:none!important;border:1px solid #898989!important}._m3zhu{max-width:500px;padding:4px 0;background-color:#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}._m3zhu ._3FF4w ._zHW9u{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._m3zhu ._3FF4w:first-child ._ziYCp{display:none}._m3zhu ._BXBIl{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._m3zhu ._BXBIl:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._m3zhu ._BXBIl:hover._Nt9Gf{background-color:#e4effa}._m3zhu ._BXBIl._Nt9Gf{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._m3zhu ._BXBIl:active:not(._Nt9Gf){background-color:#e8e9e9}";
4
- var styles = {"loadingSpinner":"_8t7tp","ignoreFocusStyle":"_ZMh25","flyout":"_m3zhu","group":"_3FF4w","header":"_zHW9u","divider":"_ziYCp","option":"_BXBIl","selected":"_Nt9Gf"};
5
- var stylesheet="._8t7tp :after{background-color:#515559!important}._ZMh25>input:focus{box-shadow:none!important;border:1px solid #898989!important}._m3zhu{max-width:500px;padding:4px 0;background-color:#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}._m3zhu ._3FF4w ._zHW9u{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._m3zhu ._3FF4w:first-child ._ziYCp{display:none}._m3zhu ._BXBIl{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._m3zhu ._BXBIl:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._m3zhu ._BXBIl:hover._Nt9Gf{background-color:#e4effa}._m3zhu ._BXBIl._Nt9Gf{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._m3zhu ._BXBIl:active:not(._Nt9Gf){background-color:#e8e9e9}";
3
+ var css_248z = "._KGQ5N :after{background-color:#515559!important}._6RS8R>input:focus{box-shadow:none!important;border:1px solid #898989!important}._y8Sco{max-width:500px;padding:4px 0;background-color:#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}._y8Sco ._234Ml ._rEzrF{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._y8Sco ._234Ml:first-child ._A4MV7{display:none}._y8Sco ._Mxg-i{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._y8Sco ._Mxg-i:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._y8Sco ._Mxg-i:hover._hpcaR{background-color:#e4effa}._y8Sco ._Mxg-i._hpcaR{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._y8Sco ._Mxg-i:active:not(._hpcaR){background-color:#e8e9e9}";
4
+ var styles = {"loadingSpinner":"_KGQ5N","ignoreFocusStyle":"_6RS8R","flyout":"_y8Sco","group":"_234Ml","header":"_rEzrF","divider":"_A4MV7","option":"_Mxg-i","selected":"_hpcaR"};
5
+ var stylesheet="._KGQ5N :after{background-color:#515559!important}._6RS8R>input:focus{box-shadow:none!important;border:1px solid #898989!important}._y8Sco{max-width:500px;padding:4px 0;background-color:#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}._y8Sco ._234Ml ._rEzrF{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._y8Sco ._234Ml:first-child ._A4MV7{display:none}._y8Sco ._Mxg-i{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._y8Sco ._Mxg-i:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._y8Sco ._Mxg-i:hover._hpcaR{background-color:#e4effa}._y8Sco ._Mxg-i._hpcaR{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._y8Sco ._Mxg-i:active:not(._hpcaR){background-color:#e8e9e9}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -5,6 +5,7 @@ import '../../utils/index.js';
5
5
  import styles from './Combobox2.js';
6
6
  import useListboxFlyoutDimensions from './hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js';
7
7
  import Popper from '../../utils/Popper/Popper.js';
8
+ import { offset } from '@floating-ui/react-dom';
8
9
  import { FOCUS_RING_WIDTH, FLYOUT_POPPER_OFFSET } from '../../utils/constants.js';
9
10
  import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
10
11
 
@@ -28,12 +29,11 @@ const ComboboxFlyout = _ref => {
28
29
  return /*#__PURE__*/React__default.createElement(Popper, {
29
30
  open: isOpen,
30
31
  placement: "bottom-start",
31
- modifiers: [{
32
- name: 'offset',
33
- options: {
34
- offset: [-FOCUS_RING_WIDTH, FLYOUT_POPPER_OFFSET[1]] // The -FOCUS_RING_WIDTH skidding accounts for the box-shadow focus ring on the left side of the anchor
35
- }
36
- }],
32
+ middleware: [offset({
33
+ crossAxis: -FOCUS_RING_WIDTH,
34
+ mainAxis: FLYOUT_POPPER_OFFSET[1]
35
+ }) // The -FOCUS_RING_WIDTH skidding accounts for the box-shadow focus ring on the left side of the anchor
36
+ ],
37
37
  anchorNode: inputRef.current,
38
38
  popper: /*#__PURE__*/React__default.createElement("div", {
39
39
  role: "listbox",
@@ -22,7 +22,7 @@ isDisabled) {
22
22
  const [activeDescendant, setActiveDescendant] = useState(); // In a future version of `Combobox`, if we continue not to allow custom children inside of `ComboboxOption`s, we can remove `aria-activedescendant` and instead just let the screen reader read the new input value (e.g. see Google search box)
23
23
 
24
24
  const activeDescendantRef = useLatest(activeDescendant); // Used to prevent returned `useCallback` functions from being re-created
25
- const latestFocusFunctionNameRef = useRef(); // Used to call the correct focus function after the flyout opens (if the flyout is currently closed)
25
+ const latestFocusFunctionNameRef = useRef(undefined); // Used to call the correct focus function after the flyout opens (if the flyout is currently closed)
26
26
  const filteredOptionsRef = useRef([]); // The list of `ComboboxOption`s that match the filter based on the input value
27
27
 
28
28
  const [didCommittedInputValueChange, setDidCommittedInputValueChange] = useState(false);
@@ -18,7 +18,7 @@ import useTranslation from '../../../../utils/Translation/useTranslation.js';
18
18
  */
19
19
  function useComboboxLoadingState(isLoading, isComponentFocused, activeDescendantElement, rawInputValue, setCommittedInputValue) {
20
20
  const previousIsLoadingRef = useLatest(usePrevious(isLoading)); // The value of `isLoading` during the previous call to this hook
21
- const newOptionsLoadingTimeoutIdRef = useRef();
21
+ const newOptionsLoadingTimeoutIdRef = useRef(undefined);
22
22
  const didNewOptionsLoadingAnnouncementOccurRef = useRef(false);
23
23
  const announceToScreenReader = useScreenReaderAnnouncement('polite');
24
24
  const {
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._NMJFO{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._SxUDW{visibility:hidden}._hppTm{position:fixed}._5-iKu{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._M0Vvt{padding-top:8px}._BlNtV{margin-left:12px}";
4
- var styles = {"drawer":"_NMJFO","hidden":"_SxUDW","anchoredToBody":"_hppTm","header":"_5-iKu","title":"_M0Vvt","closeButton":"_BlNtV"};
5
- var stylesheet="._NMJFO{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._SxUDW{visibility:hidden}._hppTm{position:fixed}._5-iKu{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._M0Vvt{padding-top:8px}._BlNtV{margin-left:12px}";
3
+ var css_248z = "._P0xCi{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._WkU-2{visibility:hidden}._WiYVL{position:fixed}._pGuBg{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._j415w{padding-top:8px}._RzLhm{margin-left:12px}";
4
+ var styles = {"drawer":"_P0xCi","hidden":"_WkU-2","anchoredToBody":"_WiYVL","header":"_pGuBg","title":"_j415w","closeButton":"_RzLhm"};
5
+ var stylesheet="._P0xCi{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._WkU-2{visibility:hidden}._WiYVL{position:fixed}._pGuBg{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._j415w{padding-top:8px}._RzLhm{margin-left:12px}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = "._WXLmI{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._WXLmI:hover:not(._gkbHD){background-color:rgba(50,54,58,.08)}._WXLmI:hover:not(._gkbHD)._pIJ2P{border-color:#085caf;background-color:rgba(11,110,208,.04)}._WXLmI:hover:not(._gkbHD)._pIJ2P ._qYybe{color:#32363a}._WXLmI:hover:not(._gkbHD)._pIJ2P ._9nHFN{fill:#32363a}._WXLmI:hover:not(._gkbHD)._pIJ2P ._OfXG3{fill:#085caf}._WXLmI:hover:not(._gkbHD)._pIJ2P ._Nd8oI{background-color:rgba(11,110,208,.11)}._WXLmI:hover:not(._gkbHD)._pIJ2P ._Nd8oI ._btaKJ{color:#085caf}._WXLmI:active:not(._gkbHD){background-color:#e8e9e9}._WXLmI:active:not(._gkbHD)._pIJ2P{background-color:rgba(11,110,208,.11);border-color:#0854a1}._WXLmI:active:not(._gkbHD)._pIJ2P ._OfXG3{fill:#0854a1}._WXLmI:active:not(._gkbHD)._pIJ2P ._Nd8oI{background-color:rgba(11,110,208,.11)}._WXLmI:active:not(._gkbHD)._pIJ2P ._Nd8oI ._btaKJ{color:#0854a1}._WXLmI._gkbHD{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._WXLmI._pIJ2P{border-color:#0b6ed0}._9nHFN{fill:#515559;margin-right:4px}._qYybe{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._qYybe+._Nd8oI{margin-left:6px}._qYybe._gkbHD{color:#74777a}._Nd8oI{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._btaKJ{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._OfXG3{fill:#515559}._OfXG3._gkbHD,._OfXG3._gkbHD._pIJ2P{fill:rgba(116,119,122,.4)}._OfXG3._pIJ2P{fill:#0b6ed0}._OfXG3._mK6mh{transform:rotate(-180deg)}._WXLmI.focus-visible,._WXLmI:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
- var styles = {"button":"_WXLmI","disabled":"_gkbHD","selected":"_pIJ2P","label":"_qYybe","lockIcon":"_9nHFN","chevronIcon":"_OfXG3","selectedFiltersContainer":"_Nd8oI","selectedFilters":"_btaKJ","open":"_mK6mh"};
5
- var stylesheet="._WXLmI{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._WXLmI:hover:not(._gkbHD){background-color:rgba(50,54,58,.08)}._WXLmI:hover:not(._gkbHD)._pIJ2P{border-color:#085caf;background-color:rgba(11,110,208,.04)}._WXLmI:hover:not(._gkbHD)._pIJ2P ._qYybe{color:#32363a}._WXLmI:hover:not(._gkbHD)._pIJ2P ._9nHFN{fill:#32363a}._WXLmI:hover:not(._gkbHD)._pIJ2P ._OfXG3{fill:#085caf}._WXLmI:hover:not(._gkbHD)._pIJ2P ._Nd8oI{background-color:rgba(11,110,208,.11)}._WXLmI:hover:not(._gkbHD)._pIJ2P ._Nd8oI ._btaKJ{color:#085caf}._WXLmI:active:not(._gkbHD){background-color:#e8e9e9}._WXLmI:active:not(._gkbHD)._pIJ2P{background-color:rgba(11,110,208,.11);border-color:#0854a1}._WXLmI:active:not(._gkbHD)._pIJ2P ._OfXG3{fill:#0854a1}._WXLmI:active:not(._gkbHD)._pIJ2P ._Nd8oI{background-color:rgba(11,110,208,.11)}._WXLmI:active:not(._gkbHD)._pIJ2P ._Nd8oI ._btaKJ{color:#0854a1}._WXLmI._gkbHD{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._WXLmI._pIJ2P{border-color:#0b6ed0}._9nHFN{fill:#515559;margin-right:4px}._qYybe{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._qYybe+._Nd8oI{margin-left:6px}._qYybe._gkbHD{color:#74777a}._Nd8oI{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._btaKJ{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._OfXG3{fill:#515559}._OfXG3._gkbHD,._OfXG3._gkbHD._pIJ2P{fill:rgba(116,119,122,.4)}._OfXG3._pIJ2P{fill:#0b6ed0}._OfXG3._mK6mh{transform:rotate(-180deg)}._WXLmI.focus-visible,._WXLmI:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
3
+ var css_248z = "._wGxjh{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._wGxjh:hover:not(._h3bQW){background-color:rgba(50,54,58,.08)}._wGxjh:hover:not(._h3bQW)._t-6WC{border-color:#085caf;background-color:rgba(11,110,208,.04)}._wGxjh:hover:not(._h3bQW)._t-6WC ._SIPaL{color:#32363a}._wGxjh:hover:not(._h3bQW)._t-6WC ._iQPdk{fill:#32363a}._wGxjh:hover:not(._h3bQW)._t-6WC ._ano2L{fill:#085caf}._wGxjh:hover:not(._h3bQW)._t-6WC ._wEiz1{background-color:rgba(11,110,208,.11)}._wGxjh:hover:not(._h3bQW)._t-6WC ._wEiz1 ._02nEZ{color:#085caf}._wGxjh:active:not(._h3bQW){background-color:#e8e9e9}._wGxjh:active:not(._h3bQW)._t-6WC{background-color:rgba(11,110,208,.11);border-color:#0854a1}._wGxjh:active:not(._h3bQW)._t-6WC ._ano2L{fill:#0854a1}._wGxjh:active:not(._h3bQW)._t-6WC ._wEiz1{background-color:rgba(11,110,208,.11)}._wGxjh:active:not(._h3bQW)._t-6WC ._wEiz1 ._02nEZ{color:#0854a1}._wGxjh._h3bQW{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._wGxjh._t-6WC{border-color:#0b6ed0}._iQPdk{fill:#515559;margin-right:4px}._SIPaL{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._SIPaL+._wEiz1{margin-left:6px}._SIPaL._h3bQW{color:#74777a}._wEiz1{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._02nEZ{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._ano2L{fill:#515559}._ano2L._h3bQW,._ano2L._h3bQW._t-6WC{fill:rgba(116,119,122,.4)}._ano2L._t-6WC{fill:#0b6ed0}._ano2L._kASZW{transform:rotate(-180deg)}._wGxjh.focus-visible,._wGxjh:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
+ var styles = {"button":"_wGxjh","disabled":"_h3bQW","selected":"_t-6WC","label":"_SIPaL","lockIcon":"_iQPdk","chevronIcon":"_ano2L","selectedFiltersContainer":"_wEiz1","selectedFilters":"_02nEZ","open":"_kASZW"};
5
+ var stylesheet="._wGxjh{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._wGxjh:hover:not(._h3bQW){background-color:rgba(50,54,58,.08)}._wGxjh:hover:not(._h3bQW)._t-6WC{border-color:#085caf;background-color:rgba(11,110,208,.04)}._wGxjh:hover:not(._h3bQW)._t-6WC ._SIPaL{color:#32363a}._wGxjh:hover:not(._h3bQW)._t-6WC ._iQPdk{fill:#32363a}._wGxjh:hover:not(._h3bQW)._t-6WC ._ano2L{fill:#085caf}._wGxjh:hover:not(._h3bQW)._t-6WC ._wEiz1{background-color:rgba(11,110,208,.11)}._wGxjh:hover:not(._h3bQW)._t-6WC ._wEiz1 ._02nEZ{color:#085caf}._wGxjh:active:not(._h3bQW){background-color:#e8e9e9}._wGxjh:active:not(._h3bQW)._t-6WC{background-color:rgba(11,110,208,.11);border-color:#0854a1}._wGxjh:active:not(._h3bQW)._t-6WC ._ano2L{fill:#0854a1}._wGxjh:active:not(._h3bQW)._t-6WC ._wEiz1{background-color:rgba(11,110,208,.11)}._wGxjh:active:not(._h3bQW)._t-6WC ._wEiz1 ._02nEZ{color:#0854a1}._wGxjh._h3bQW{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._wGxjh._t-6WC{border-color:#0b6ed0}._iQPdk{fill:#515559;margin-right:4px}._SIPaL{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._SIPaL+._wEiz1{margin-left:6px}._SIPaL._h3bQW{color:#74777a}._wEiz1{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._02nEZ{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._ano2L{fill:#515559}._ano2L._h3bQW,._ano2L._h3bQW._t-6WC{fill:rgba(116,119,122,.4)}._ano2L._t-6WC{fill:#0b6ed0}._ano2L._kASZW{transform:rotate(-180deg)}._wGxjh.focus-visible,._wGxjh:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = "._38PVW{margin:6px 0}._SsH0W{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._E9NzQ{display:inline-block}._E9NzQ:has([aria-expanded=true]) ._SsH0W,._E9NzQ[focus-within] ._SsH0W{color:#0b6ed0}._E9NzQ:focus-within ._SsH0W,._E9NzQ:has([aria-expanded=true]) ._SsH0W{color:#0b6ed0}._E9NzQ:has(input:disabled) ._SsH0W{color:rgba(50,54,58,.4)}._E9NzQ:not(:has(input:disabled)) ._SsH0W{cursor:pointer}._HxSRo{margin-top:4px}._HxSRo:first-of-type{margin-top:6px}";
4
- var styles = {"input":"_38PVW","label":"_SsH0W","formFieldWrapper":"_E9NzQ","caption":"_HxSRo"};
5
- var stylesheet="._38PVW{margin:6px 0}._SsH0W{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._E9NzQ{display:inline-block}._E9NzQ:has([aria-expanded=true]) ._SsH0W,._E9NzQ[focus-within] ._SsH0W{color:#0b6ed0}._E9NzQ:focus-within ._SsH0W,._E9NzQ:has([aria-expanded=true]) ._SsH0W{color:#0b6ed0}._E9NzQ:has(input:disabled) ._SsH0W{color:rgba(50,54,58,.4)}._E9NzQ:not(:has(input:disabled)) ._SsH0W{cursor:pointer}._HxSRo{margin-top:4px}._HxSRo:first-of-type{margin-top:6px}";
3
+ var css_248z = "._dHkmg{margin:6px 0}._OHoLM{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._Am0JZ{display:inline-block}._Am0JZ:has([aria-expanded=true]) ._OHoLM,._Am0JZ[focus-within] ._OHoLM{color:#0b6ed0}._Am0JZ:focus-within ._OHoLM,._Am0JZ:has([aria-expanded=true]) ._OHoLM{color:#0b6ed0}._Am0JZ:has(input:disabled) ._OHoLM{color:rgba(50,54,58,.4)}._Am0JZ:not(:has(input:disabled)) ._OHoLM{cursor:pointer}._Y1Ei-{margin-top:4px}._Y1Ei-:first-of-type{margin-top:6px}";
4
+ var styles = {"input":"_dHkmg","label":"_OHoLM","formFieldWrapper":"_Am0JZ","caption":"_Y1Ei-"};
5
+ var stylesheet="._dHkmg{margin:6px 0}._OHoLM{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._Am0JZ{display:inline-block}._Am0JZ:has([aria-expanded=true]) ._OHoLM,._Am0JZ[focus-within] ._OHoLM{color:#0b6ed0}._Am0JZ:focus-within ._OHoLM,._Am0JZ:has([aria-expanded=true]) ._OHoLM{color:#0b6ed0}._Am0JZ:has(input:disabled) ._OHoLM{color:rgba(50,54,58,.4)}._Am0JZ:not(:has(input:disabled)) ._OHoLM{cursor:pointer}._Y1Ei-{margin-top:4px}._Y1Ei-:first-of-type{margin-top:6px}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = "._4kr-b{background-color:#f6f6f8;color:#2a2a2a;fill:#2a2a2a;border:1px solid #2a2a2a;border-radius:4px;position:relative;display:inline-flex;grid-gap:4px;gap:4px;align-items:center;font-family:\"72\",\"Helvetica Neue\",\"Helvetica\",\"Arial\",\"sans-serif\";font-size:14px;font-style:normal;font-weight:400;line-height:20px}._4kr-b._1e9JV{background-color:#fff4ef;border-color:#ba4f0d;color:#ba4f0d;fill:#ba4f0d}._4kr-b._yLlBF{background-color:#fff4f3;border-color:#da1c3d;color:#da1c3d;fill:#da1c3d}._4kr-b._jBy42{background-color:#f3f8ef;border-color:#457d25;color:#457d25;fill:#457d25}._4kr-b._uiGNn{background-color:#f1f7fd;border-color:#006fd3;color:#006fd3;fill:#006fd3}._PgDfD{padding:1px 8px;max-height:24px}._LyKPC{padding:4px 8px}";
4
- var styles = {"indicator":"_4kr-b","warning":"_1e9JV","error":"_yLlBF","success":"_jBy42","informational":"_uiGNn","small":"_PgDfD","medium":"_LyKPC"};
5
- var stylesheet="._4kr-b{background-color:#f6f6f8;color:#2a2a2a;fill:#2a2a2a;border:1px solid #2a2a2a;border-radius:4px;position:relative;display:inline-flex;grid-gap:4px;gap:4px;align-items:center;font-family:\"72\",\"Helvetica Neue\",\"Helvetica\",\"Arial\",\"sans-serif\";font-size:14px;font-style:normal;font-weight:400;line-height:20px}._4kr-b._1e9JV{background-color:#fff4ef;border-color:#ba4f0d;color:#ba4f0d;fill:#ba4f0d}._4kr-b._yLlBF{background-color:#fff4f3;border-color:#da1c3d;color:#da1c3d;fill:#da1c3d}._4kr-b._jBy42{background-color:#f3f8ef;border-color:#457d25;color:#457d25;fill:#457d25}._4kr-b._uiGNn{background-color:#f1f7fd;border-color:#006fd3;color:#006fd3;fill:#006fd3}._PgDfD{padding:1px 8px;max-height:24px}._LyKPC{padding:4px 8px}";
3
+ var css_248z = "._2cQ1N{background-color:#f6f6f8;color:#2a2a2a;fill:#2a2a2a;border:1px solid #2a2a2a;border-radius:4px;position:relative;display:inline-flex;grid-gap:4px;gap:4px;align-items:center;font-family:\"72\",\"Helvetica Neue\",\"Helvetica\",\"Arial\",\"sans-serif\";font-size:14px;font-style:normal;font-weight:400;line-height:20px}._2cQ1N._VL8JY{background-color:#fff4ef;border-color:#ba4f0d;color:#ba4f0d;fill:#ba4f0d}._2cQ1N._09XND{background-color:#fff4f3;border-color:#da1c3d;color:#da1c3d;fill:#da1c3d}._2cQ1N._EfC5t{background-color:#f3f8ef;border-color:#457d25;color:#457d25;fill:#457d25}._2cQ1N._RLZXr{background-color:#f1f7fd;border-color:#006fd3;color:#006fd3;fill:#006fd3}._1qU2-{padding:1px 8px;max-height:24px}._fRml0{padding:4px 8px}";
4
+ var styles = {"indicator":"_2cQ1N","warning":"_VL8JY","error":"_09XND","success":"_EfC5t","informational":"_RLZXr","small":"_1qU2-","medium":"_fRml0"};
5
+ var stylesheet="._2cQ1N{background-color:#f6f6f8;color:#2a2a2a;fill:#2a2a2a;border:1px solid #2a2a2a;border-radius:4px;position:relative;display:inline-flex;grid-gap:4px;gap:4px;align-items:center;font-family:\"72\",\"Helvetica Neue\",\"Helvetica\",\"Arial\",\"sans-serif\";font-size:14px;font-style:normal;font-weight:400;line-height:20px}._2cQ1N._VL8JY{background-color:#fff4ef;border-color:#ba4f0d;color:#ba4f0d;fill:#ba4f0d}._2cQ1N._09XND{background-color:#fff4f3;border-color:#da1c3d;color:#da1c3d;fill:#da1c3d}._2cQ1N._EfC5t{background-color:#f3f8ef;border-color:#457d25;color:#457d25;fill:#457d25}._2cQ1N._RLZXr{background-color:#f1f7fd;border-color:#006fd3;color:#006fd3;fill:#006fd3}._1qU2-{padding:1px 8px;max-height:24px}._fRml0{padding:4px 8px}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = "._QhYbP{position:relative;display:inline-block;height:36px;width:100%}._vl1iS{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._vl1iS:hover{cursor:pointer;background-color:#f5f5f5}._vl1iS:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._vl1iS:disabled,._vl1iS[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._vl1iS:disabled::-moz-placeholder,._vl1iS[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._vl1iS:disabled::placeholder,._vl1iS[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._vl1iS:invalid,._vl1iS[aria-invalid=true]{border-color:#b00}._vl1iS:invalid:focus,._vl1iS[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._vl1iS[type=number]{-moz-appearance:textfield}._vl1iS[type=number]::-webkit-inner-spin-button,._vl1iS[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._vl1iS::-moz-placeholder{color:#515559;opacity:1}._vl1iS::placeholder{color:#515559;opacity:1}._eIhcF{pointer-events:none;color:#515559;fill:#515559}._PTv0l{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._Qg1r4{color:#515559;font-size:16px}._V3EVx{left:0;margin-left:6px}._FUA2b,._V3EVx{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._FUA2b{right:0;margin-right:6px}";
4
- var inputClasses = {"container":"_QhYbP","input":"_vl1iS","addOn":"_eIhcF","addOnVerticalCenter":"_PTv0l","addOnTextNode":"_Qg1r4","leftAddOn":"_V3EVx","rightAddOn":"_FUA2b"};
5
- var stylesheet="._QhYbP{position:relative;display:inline-block;height:36px;width:100%}._vl1iS{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._vl1iS:hover{cursor:pointer;background-color:#f5f5f5}._vl1iS:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._vl1iS:disabled,._vl1iS[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._vl1iS:disabled::-moz-placeholder,._vl1iS[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._vl1iS:disabled::placeholder,._vl1iS[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._vl1iS:invalid,._vl1iS[aria-invalid=true]{border-color:#b00}._vl1iS:invalid:focus,._vl1iS[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._vl1iS[type=number]{-moz-appearance:textfield}._vl1iS[type=number]::-webkit-inner-spin-button,._vl1iS[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._vl1iS::-moz-placeholder{color:#515559;opacity:1}._vl1iS::placeholder{color:#515559;opacity:1}._eIhcF{pointer-events:none;color:#515559;fill:#515559}._PTv0l{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._Qg1r4{color:#515559;font-size:16px}._V3EVx{left:0;margin-left:6px}._FUA2b,._V3EVx{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._FUA2b{right:0;margin-right:6px}";
3
+ var css_248z = "._8EHy-{position:relative;display:inline-block;height:36px;width:100%}._MxQG-{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._MxQG-:hover{cursor:pointer;background-color:#f5f5f5}._MxQG-:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._MxQG-:disabled,._MxQG-[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._MxQG-:disabled::-moz-placeholder,._MxQG-[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._MxQG-:disabled::placeholder,._MxQG-[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._MxQG-:invalid,._MxQG-[aria-invalid=true]{border-color:#b00}._MxQG-:invalid:focus,._MxQG-[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._MxQG-[type=number]{-moz-appearance:textfield}._MxQG-[type=number]::-webkit-inner-spin-button,._MxQG-[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._MxQG-::-moz-placeholder{color:#515559;opacity:1}._MxQG-::placeholder{color:#515559;opacity:1}._zKuOM{pointer-events:none;color:#515559;fill:#515559}._5UmP8{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._t0v6r{color:#515559;font-size:16px}._RI83Y{left:0;margin-left:6px}._jkDFp,._RI83Y{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._jkDFp{right:0;margin-right:6px}";
4
+ var inputClasses = {"container":"_8EHy-","input":"_MxQG-","addOn":"_zKuOM","addOnVerticalCenter":"_5UmP8","addOnTextNode":"_t0v6r","leftAddOn":"_RI83Y","rightAddOn":"_jkDFp"};
5
+ var stylesheet="._8EHy-{position:relative;display:inline-block;height:36px;width:100%}._MxQG-{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._MxQG-:hover{cursor:pointer;background-color:#f5f5f5}._MxQG-:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._MxQG-:disabled,._MxQG-[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._MxQG-:disabled::-moz-placeholder,._MxQG-[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._MxQG-:disabled::placeholder,._MxQG-[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._MxQG-:invalid,._MxQG-[aria-invalid=true]{border-color:#b00}._MxQG-:invalid:focus,._MxQG-[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._MxQG-[type=number]{-moz-appearance:textfield}._MxQG-[type=number]::-webkit-inner-spin-button,._MxQG-[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._MxQG-::-moz-placeholder{color:#515559;opacity:1}._MxQG-::placeholder{color:#515559;opacity:1}._zKuOM{pointer-events:none;color:#515559;fill:#515559}._5UmP8{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._t0v6r{color:#515559;font-size:16px}._RI83Y{left:0;margin-left:6px}._jkDFp,._RI83Y{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._jkDFp{right:0;margin-right:6px}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
7
7
 
8
8
  export { inputClasses 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 = "._DTMfq{position:relative;display:inline-block}._DTMfq._6UsML{min-height:20px;min-width:20px}._DTMfq._rcT0y{min-height:25px;min-width:25px}._DTMfq._qDjEp{min-height:40px;min-width:40px}._DTMfq._IqT34{min-height:64px;min-width:64px}._DTMfq ._jkvnw{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._DTMfq ._jkvnw._PJ3Dd{display:none}._DTMfq ._jkvnw div{position:absolute;transform:rotate(20deg)}._DTMfq ._jkvnw div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_jkvnw .9s linear infinite}._DTMfq ._jkvnw 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}._DTMfq ._jkvnw div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._DTMfq ._jkvnw div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._DTMfq ._jkvnw div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._DTMfq ._jkvnw div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._DTMfq ._jkvnw div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._DTMfq ._jkvnw div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._DTMfq ._jkvnw div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._DTMfq ._jkvnw div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._DTMfq ._jkvnw div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._DTMfq ._IqT34 div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._DTMfq ._6UsML div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._DTMfq ._rcT0y div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._DTMfq ._8clBR div div:nth-child(-n+9):after{background:#fff}._DTMfq ._vRGcT{width:100%;height:100%}._DTMfq ._vRGcT._niilD{pointer-events:none}._DTMfq ._vRGcT._PJ3Dd{opacity:0}._DTMfq ._vRGcT._w93BY{opacity:.8}@keyframes _jkvnw{0%{opacity:1}to{opacity:0}}";
4
- var styles = {"spinnerContainer":"_DTMfq","xs":"_6UsML","small":"_rcT0y","medium":"_qDjEp","large":"_IqT34","spinnerComponent":"_jkvnw","hide":"_PJ3Dd","inverted":"_8clBR","spinnerContent":"_vRGcT","disablePointerEvents":"_niilD","fade":"_w93BY"};
5
- var stylesheet="._DTMfq{position:relative;display:inline-block}._DTMfq._6UsML{min-height:20px;min-width:20px}._DTMfq._rcT0y{min-height:25px;min-width:25px}._DTMfq._qDjEp{min-height:40px;min-width:40px}._DTMfq._IqT34{min-height:64px;min-width:64px}._DTMfq ._jkvnw{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._DTMfq ._jkvnw._PJ3Dd{display:none}._DTMfq ._jkvnw div{position:absolute;transform:rotate(20deg)}._DTMfq ._jkvnw div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_jkvnw .9s linear infinite}._DTMfq ._jkvnw 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}._DTMfq ._jkvnw div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._DTMfq ._jkvnw div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._DTMfq ._jkvnw div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._DTMfq ._jkvnw div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._DTMfq ._jkvnw div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._DTMfq ._jkvnw div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._DTMfq ._jkvnw div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._DTMfq ._jkvnw div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._DTMfq ._jkvnw div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._DTMfq ._IqT34 div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._DTMfq ._6UsML div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._DTMfq ._rcT0y div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._DTMfq ._8clBR div div:nth-child(-n+9):after{background:#fff}._DTMfq ._vRGcT{width:100%;height:100%}._DTMfq ._vRGcT._niilD{pointer-events:none}._DTMfq ._vRGcT._PJ3Dd{opacity:0}._DTMfq ._vRGcT._w93BY{opacity:.8}@keyframes _jkvnw{0%{opacity:1}to{opacity:0}}";
3
+ var css_248z = "._rb2--{position:relative;display:inline-block}._rb2--._JnIMK{min-height:20px;min-width:20px}._rb2--._POw-T{min-height:25px;min-width:25px}._rb2--._WZIhq{min-height:40px;min-width:40px}._rb2--._1BTVy{min-height:64px;min-width:64px}._rb2-- ._e5Tl6{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._rb2-- ._e5Tl6._tEzmP{display:none}._rb2-- ._e5Tl6 div{position:absolute;transform:rotate(20deg)}._rb2-- ._e5Tl6 div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_e5Tl6 .9s linear infinite}._rb2-- ._e5Tl6 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}._rb2-- ._e5Tl6 div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._rb2-- ._e5Tl6 div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._rb2-- ._e5Tl6 div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._rb2-- ._e5Tl6 div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._rb2-- ._e5Tl6 div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._rb2-- ._e5Tl6 div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._rb2-- ._e5Tl6 div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._rb2-- ._e5Tl6 div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._rb2-- ._e5Tl6 div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._rb2-- ._1BTVy div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._rb2-- ._JnIMK div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._rb2-- ._POw-T div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._rb2-- ._jgeKE div div:nth-child(-n+9):after{background:#fff}._rb2-- ._bAU5s{width:100%;height:100%}._rb2-- ._bAU5s._rTZmn{pointer-events:none}._rb2-- ._bAU5s._tEzmP{opacity:0}._rb2-- ._bAU5s._fcfIV{opacity:.8}@keyframes _e5Tl6{0%{opacity:1}to{opacity:0}}";
4
+ var styles = {"spinnerContainer":"_rb2--","xs":"_JnIMK","small":"_POw-T","medium":"_WZIhq","large":"_1BTVy","spinnerComponent":"_e5Tl6","hide":"_tEzmP","inverted":"_jgeKE","spinnerContent":"_bAU5s","disablePointerEvents":"_rTZmn","fade":"_fcfIV"};
5
+ var stylesheet="._rb2--{position:relative;display:inline-block}._rb2--._JnIMK{min-height:20px;min-width:20px}._rb2--._POw-T{min-height:25px;min-width:25px}._rb2--._WZIhq{min-height:40px;min-width:40px}._rb2--._1BTVy{min-height:64px;min-width:64px}._rb2-- ._e5Tl6{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._rb2-- ._e5Tl6._tEzmP{display:none}._rb2-- ._e5Tl6 div{position:absolute;transform:rotate(20deg)}._rb2-- ._e5Tl6 div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_e5Tl6 .9s linear infinite}._rb2-- ._e5Tl6 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}._rb2-- ._e5Tl6 div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._rb2-- ._e5Tl6 div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._rb2-- ._e5Tl6 div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._rb2-- ._e5Tl6 div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._rb2-- ._e5Tl6 div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._rb2-- ._e5Tl6 div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._rb2-- ._e5Tl6 div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._rb2-- ._e5Tl6 div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._rb2-- ._e5Tl6 div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._rb2-- ._1BTVy div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._rb2-- ._JnIMK div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._rb2-- ._POw-T div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._rb2-- ._jgeKE div div:nth-child(-n+9):after{background:#fff}._rb2-- ._bAU5s{width:100%;height:100%}._rb2-- ._bAU5s._rTZmn{pointer-events:none}._rb2-- ._bAU5s._tEzmP{opacity:0}._rb2-- ._bAU5s._fcfIV{opacity:.8}@keyframes _e5Tl6{0%{opacity:1}to{opacity:0}}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -75,7 +75,7 @@ function usePaneSearch(_ref) {
75
75
  }, {
76
76
  isDisabled: !isSearchable
77
77
  });
78
- const lastestKeyPressedInSearchInput = useRef();
78
+ const lastestKeyPressedInSearchInput = useRef(undefined);
79
79
  const [isComposing, setIsComposing] = useState(false);
80
80
  useEventListener(searchInput, 'compositionstart', () => {
81
81
  setIsComposing(true);
@@ -1,5 +1,5 @@
1
1
  import React__default, { useRef, useState, useMemo } from 'react';
2
- import { Root } from '@radix-ui/react-dropdown-menu';
2
+ import { Root as Root2 } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
3
3
  import { ResizeObserver } from '@juggle/resize-observer';
4
4
  import { MenuContextProvider } from './MenuContext.js';
5
5
  import '../../hooks/index.js';
@@ -81,7 +81,7 @@ const Menu = _ref => {
81
81
  isVirtualizationDisabled,
82
82
  submenuDepths
83
83
  }
84
- }, /*#__PURE__*/React__default.createElement(Root, {
84
+ }, /*#__PURE__*/React__default.createElement(Root2, {
85
85
  open: open,
86
86
  onOpenChange: shouldOpen => setOpen(!isDisabled && shouldOpen),
87
87
  modal: false
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._D0C7j{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._D0C7j>._BnJW5{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._D0C7j>._BnJW5:hover:not([aria-disabled=true]){background-color:#f5f5f5}._D0C7j>._BnJW5.focus-visible,._D0C7j>._BnJW5:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._D0C7j>._BnJW5+._dSFem{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._D0C7j>._BnJW5[data-state=open]+._dSFem{transform:rotate(-180deg) translateY(50%)}._D0C7j>._BnJW5[aria-disabled=true]{color:#74777a;cursor:not-allowed}._D0C7j>._BnJW5[aria-disabled=true]+._dSFem{fill:#515559;opacity:.4}._hwZfp>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._hwZfp>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._DRWSz{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._DRWSz ._6o0zj{height:100%;overflow-y:scroll}._DRWSz._jdCqv{margin-left:30px;opacity:0}._DRWSz._nhlBO{margin-left:-30px}._uVySM{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._uVySM._UqU9C{cursor:unset}._uVySM ._c8yqY{fill:#32363a;margin-right:4px}._uVySM:focus,._uVySM:hover:not(._uVySM._UqU9C){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._uVySM[aria-disabled=true]{cursor:not-allowed;opacity:.65}._uVySM._3Fdj2{padding-right:32px}._uVySM._3Fdj2 ._dSFem{position:absolute;height:100%;right:3px;fill:#515559}._uVySM._8p5aD{pointer-events:none}._-UdLt{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._-UdLt._8PajL{padding-top:52px}._0SBQ0{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._fPLRq{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._fPLRq._nhlBO{opacity:0}._fPLRq._nhlBO>._fyJDD{margin-left:-30px}._fPLRq._jdCqv{opacity:0}._fPLRq._jdCqv>._fyJDD{margin-left:30px}._fPLRq>._fyJDD{transition:margin-left .35s;width:100%}._fPLRq._8p5aD{pointer-events:none}body.keyboard-user ._uVySM:hover:not(:focus){background-color:#fff;box-shadow:none}";
4
- var styles = {"buttonContainer":"_D0C7j","button":"_BnJW5","rightIcon":"_dSFem","maskContainer":"_hwZfp","flyout":"_DRWSz","scrollContainer":"_6o0zj","animatedRight":"_jdCqv","animatedLeft":"_nhlBO","menuItem":"_uVySM","noItems":"_UqU9C","backIcon":"_c8yqY","subMenu":"_3Fdj2","unresponsive":"_8p5aD","stickyBox":"_-UdLt","isSearchable":"_8PajL","searchBoxesContainer":"_0SBQ0","searchBox":"_fPLRq","searchInput":"_fyJDD"};
5
- var stylesheet="._D0C7j{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._D0C7j>._BnJW5{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._D0C7j>._BnJW5:hover:not([aria-disabled=true]){background-color:#f5f5f5}._D0C7j>._BnJW5.focus-visible,._D0C7j>._BnJW5:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._D0C7j>._BnJW5+._dSFem{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._D0C7j>._BnJW5[data-state=open]+._dSFem{transform:rotate(-180deg) translateY(50%)}._D0C7j>._BnJW5[aria-disabled=true]{color:#74777a;cursor:not-allowed}._D0C7j>._BnJW5[aria-disabled=true]+._dSFem{fill:#515559;opacity:.4}._hwZfp>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._hwZfp>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._DRWSz{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._DRWSz ._6o0zj{height:100%;overflow-y:scroll}._DRWSz._jdCqv{margin-left:30px;opacity:0}._DRWSz._nhlBO{margin-left:-30px}._uVySM{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._uVySM._UqU9C{cursor:unset}._uVySM ._c8yqY{fill:#32363a;margin-right:4px}._uVySM:focus,._uVySM:hover:not(._uVySM._UqU9C){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._uVySM[aria-disabled=true]{cursor:not-allowed;opacity:.65}._uVySM._3Fdj2{padding-right:32px}._uVySM._3Fdj2 ._dSFem{position:absolute;height:100%;right:3px;fill:#515559}._uVySM._8p5aD{pointer-events:none}._-UdLt{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._-UdLt._8PajL{padding-top:52px}._0SBQ0{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._fPLRq{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._fPLRq._nhlBO{opacity:0}._fPLRq._nhlBO>._fyJDD{margin-left:-30px}._fPLRq._jdCqv{opacity:0}._fPLRq._jdCqv>._fyJDD{margin-left:30px}._fPLRq>._fyJDD{transition:margin-left .35s;width:100%}._fPLRq._8p5aD{pointer-events:none}body.keyboard-user ._uVySM:hover:not(:focus){background-color:#fff;box-shadow:none}";
3
+ var css_248z = "._KAc5-{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._KAc5->._Z5O3v{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._KAc5->._Z5O3v:hover:not([aria-disabled=true]){background-color:#f5f5f5}._KAc5->._Z5O3v.focus-visible,._KAc5->._Z5O3v:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._KAc5->._Z5O3v+._jl5Dy{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._KAc5->._Z5O3v[data-state=open]+._jl5Dy{transform:rotate(-180deg) translateY(50%)}._KAc5->._Z5O3v[aria-disabled=true]{color:#74777a;cursor:not-allowed}._KAc5->._Z5O3v[aria-disabled=true]+._jl5Dy{fill:#515559;opacity:.4}._o6Xs0>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._o6Xs0>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._2KExP{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._2KExP ._9wHrC{height:100%;overflow-y:scroll}._2KExP._av3-3{margin-left:30px;opacity:0}._2KExP._LzG-o{margin-left:-30px}._uIf4m{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._uIf4m._igb5e{cursor:unset}._uIf4m ._4RAQe{fill:#32363a;margin-right:4px}._uIf4m:focus,._uIf4m:hover:not(._uIf4m._igb5e){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._uIf4m[aria-disabled=true]{cursor:not-allowed;opacity:.65}._uIf4m._GwL9A{padding-right:32px}._uIf4m._GwL9A ._jl5Dy{position:absolute;height:100%;right:3px;fill:#515559}._uIf4m._FmbFM{pointer-events:none}._a49a8{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._a49a8._U7tXJ{padding-top:52px}._HTdM5{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._vmHfH{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._vmHfH._LzG-o{opacity:0}._vmHfH._LzG-o>._0AvMF{margin-left:-30px}._vmHfH._av3-3{opacity:0}._vmHfH._av3-3>._0AvMF{margin-left:30px}._vmHfH>._0AvMF{transition:margin-left .35s;width:100%}._vmHfH._FmbFM{pointer-events:none}body.keyboard-user ._uIf4m:hover:not(:focus){background-color:#fff;box-shadow:none}";
4
+ var styles = {"buttonContainer":"_KAc5-","button":"_Z5O3v","rightIcon":"_jl5Dy","maskContainer":"_o6Xs0","flyout":"_2KExP","scrollContainer":"_9wHrC","animatedRight":"_av3-3","animatedLeft":"_LzG-o","menuItem":"_uIf4m","noItems":"_igb5e","backIcon":"_4RAQe","subMenu":"_GwL9A","unresponsive":"_FmbFM","stickyBox":"_a49a8","isSearchable":"_U7tXJ","searchBoxesContainer":"_HTdM5","searchBox":"_vmHfH","searchInput":"_0AvMF"};
5
+ var stylesheet="._KAc5-{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._KAc5->._Z5O3v{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._KAc5->._Z5O3v:hover:not([aria-disabled=true]){background-color:#f5f5f5}._KAc5->._Z5O3v.focus-visible,._KAc5->._Z5O3v:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._KAc5->._Z5O3v+._jl5Dy{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._KAc5->._Z5O3v[data-state=open]+._jl5Dy{transform:rotate(-180deg) translateY(50%)}._KAc5->._Z5O3v[aria-disabled=true]{color:#74777a;cursor:not-allowed}._KAc5->._Z5O3v[aria-disabled=true]+._jl5Dy{fill:#515559;opacity:.4}._o6Xs0>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._o6Xs0>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._2KExP{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._2KExP ._9wHrC{height:100%;overflow-y:scroll}._2KExP._av3-3{margin-left:30px;opacity:0}._2KExP._LzG-o{margin-left:-30px}._uIf4m{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._uIf4m._igb5e{cursor:unset}._uIf4m ._4RAQe{fill:#32363a;margin-right:4px}._uIf4m:focus,._uIf4m:hover:not(._uIf4m._igb5e){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._uIf4m[aria-disabled=true]{cursor:not-allowed;opacity:.65}._uIf4m._GwL9A{padding-right:32px}._uIf4m._GwL9A ._jl5Dy{position:absolute;height:100%;right:3px;fill:#515559}._uIf4m._FmbFM{pointer-events:none}._a49a8{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._a49a8._U7tXJ{padding-top:52px}._HTdM5{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._vmHfH{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._vmHfH._LzG-o{opacity:0}._vmHfH._LzG-o>._0AvMF{margin-left:-30px}._vmHfH._av3-3{opacity:0}._vmHfH._av3-3>._0AvMF{margin-left:30px}._vmHfH>._0AvMF{transition:margin-left .35s;width:100%}._vmHfH._FmbFM{pointer-events:none}body.keyboard-user ._uIf4m:hover:not(:focus){background-color:#fff;box-shadow:none}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,6 +1,6 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
2
  import React__default from 'react';
3
- import { Trigger } from '@radix-ui/react-dropdown-menu';
3
+ import { Trigger } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
4
4
  import classNames from 'classnames';
5
5
  import '../../icons/index.es.js';
6
6
  import styles from './Menu2.js';
@@ -1,6 +1,6 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
2
  import React__default, { useRef, useMemo } from 'react';
3
- import { Item } from '@radix-ui/react-dropdown-menu';
3
+ import { Item as Item2 } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
4
4
  import classNames from 'classnames';
5
5
  import styles from './Menu2.js';
6
6
  import { usePaneContext, useItemContext } from './MenuContext.js';
@@ -57,7 +57,7 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
57
57
  }
58
58
  }
59
59
  };
60
- return /*#__PURE__*/React__default.createElement(Item, _extends({}, rest, {
60
+ return /*#__PURE__*/React__default.createElement(Item2, _extends({}, rest, {
61
61
  tabIndex: 0,
62
62
  asChild: asChild,
63
63
  "aria-disabled": isDisabled,
@@ -1,6 +1,6 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
2
  import React__default, { useState, useCallback, useRef, useMemo } from 'react';
3
- import { Portal, Content } from '@radix-ui/react-dropdown-menu';
3
+ import { Portal as Portal2, Content as Content2 } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
4
4
  import classNames from 'classnames';
5
5
  import ReactFocusLock from 'react-focus-lock';
6
6
  import styles from './Menu2.js';
@@ -202,7 +202,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
202
202
  maskIsReady,
203
203
  setIsVirtualizationReady
204
204
  }
205
- }, /*#__PURE__*/React__default.createElement(Portal, {
205
+ }, /*#__PURE__*/React__default.createElement(Portal2, {
206
206
  container: portalTarget || undefined
207
207
  }, /*#__PURE__*/React__default.createElement(ReactFocusLock, {
208
208
  autoFocus: false,
@@ -216,7 +216,8 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
216
216
  opacity: maskIsReady ? 1 : 0
217
217
  }
218
218
  }
219
- }, /*#__PURE__*/React__default.createElement(Content, _extends({}, rest, {
219
+ }, /*#__PURE__*/React__default.createElement(Content2, _extends({}, rest, {
220
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
220
221
  style: style,
221
222
  onCloseAutoFocus: () => {
222
223
  var _triggerRef$current2;
@@ -1,6 +1,6 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
2
  import React__default, { useState, useRef, useCallback, useMemo, useEffect } from 'react';
3
- import { Sub, SubTrigger, SubContent, Item } from '@radix-ui/react-dropdown-menu';
3
+ import { Sub as Sub2, SubTrigger as SubTrigger2, SubContent as SubContent2, Item as Item2 } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
4
4
  import classNames from 'classnames';
5
5
  import styles from './Menu2.js';
6
6
  import '../../icons/index.es.js';
@@ -155,9 +155,9 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
155
155
  }
156
156
  setIsTransitioningFromRight(false);
157
157
  };
158
- return /*#__PURE__*/React__default.createElement(Sub, {
158
+ return /*#__PURE__*/React__default.createElement(Sub2, {
159
159
  open: isPaneInDOM
160
- }, /*#__PURE__*/React__default.createElement(SubTrigger, _extends({
160
+ }, /*#__PURE__*/React__default.createElement(SubTrigger2, _extends({
161
161
  className: classNames(styles.menuItem, styles.subMenu, {
162
162
  [styles.unresponsive]: !paneContainingTriggerIsInteractive,
163
163
  [styles$1.selectedItem]: triggerCheckedState === true && !isSelectedItems
@@ -209,7 +209,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
209
209
  isVirtualized,
210
210
  internalId
211
211
  }
212
- }, /*#__PURE__*/React__default.createElement(SubContent, _extends({}, rest, {
212
+ }, /*#__PURE__*/React__default.createElement(SubContent2, _extends({}, rest, {
213
213
  loop: !isSearchable,
214
214
  "data-testid": paneDataTestId,
215
215
  ref: mergeRefs(ref, onRefChange),
@@ -218,7 +218,9 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
218
218
  [styles.animatedRight]: animatedRight,
219
219
  [styles.animatedLeft]: animatedLeft
220
220
  }),
221
- onTransitionEnd: handlePaneTransitionEnd,
221
+ onTransitionEnd: handlePaneTransitionEnd
222
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
223
+ ,
222
224
  style: {
223
225
  ...style,
224
226
  zIndex
@@ -231,7 +233,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
231
233
  style: {
232
234
  zIndex
233
235
  }
234
- }, /*#__PURE__*/React__default.createElement(Item, {
236
+ }, /*#__PURE__*/React__default.createElement(Item2, {
235
237
  className: classNames(styles.menuItem, {
236
238
  [styles.unresponsive]: isTransitioningFromRight || animatedLeft || animatedRight
237
239
  }),
@@ -1,6 +1,6 @@
1
- import React__default, { forwardRef, useState, useCallback, useEffect, useMemo } from 'react';
1
+ import React__default, { forwardRef, useState, useRef, useCallback, useMemo, useEffect } from 'react';
2
2
  import { Metadata, getCountryCallingCode, parsePhoneNumber, getCountries, isSupportedCountry } from 'libphonenumber-js';
3
- import InputMask from 'react-input-mask';
3
+ import { IMask, useIMask } from 'react-imask';
4
4
  import classNames from 'classnames';
5
5
  import '../../components/NewMenu/index.js';
6
6
  import '../Input/index.js';
@@ -10,7 +10,9 @@ import useTranslation from '../../utils/Translation/useTranslation.js';
10
10
  import SelectMenu from '../../components/NewMenu/SelectMenu/SelectMenu.js';
11
11
  import MenuItem from '../../components/NewMenu/parts/MenuItem.js';
12
12
  import Input from '../Input/Input.js';
13
+ import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
13
14
 
15
+ const removeNonNumericCharacters = value => (value === null || value === void 0 ? void 0 : value.replace(/\D/g, '')) || '';
14
16
  const PhoneNumberInput = /*#__PURE__*/forwardRef((_ref, ref) => {
15
17
  let {
16
18
  initialCountryCode = 'US',
@@ -27,7 +29,8 @@ const PhoneNumberInput = /*#__PURE__*/forwardRef((_ref, ref) => {
27
29
  inputId
28
30
  } = _ref;
29
31
  const [countryCode, setCountryCode] = useState(initialCountryCode);
30
- const [mask, setMask] = useState();
32
+ const unmaskedValueOnCountryChangeRef = useRef(null);
33
+
31
34
  // As of the day of writing the longest number format is 15 numbers long. This is 5 places longer to be safe.
32
35
  const genericMaxNumberLength = 20;
33
36
  const {
@@ -41,35 +44,88 @@ const PhoneNumberInput = /*#__PURE__*/forwardRef((_ref, ref) => {
41
44
  return possibleLengths ? [Math.min(...possibleLengths), Math.max(...possibleLengths)] : [0, genericMaxNumberLength];
42
45
  }, [countryCode]);
43
46
  const shouldUseMask = Number(getCountryCallingCode(countryCode)) === 1;
44
- const updateMask = useCallback(() => {
47
+ const maskPattern = useMemo(() => {
45
48
  if (shouldUseMask) {
46
- setMask('(999) 999-9999');
47
- } else {
48
- setMask('9'.repeat(limitToValidLength ? getMinMaxLength()[1] : genericMaxNumberLength));
49
+ return '(000) 000-0000';
49
50
  }
51
+ return '0'.repeat(limitToValidLength ? getMinMaxLength()[1] : genericMaxNumberLength);
50
52
  }, [shouldUseMask, getMinMaxLength, limitToValidLength]);
53
+
54
+ /** Placeholder pattern shown when empty (imask 7.6+ may not show it until focus without this). */
55
+ const emptyDisplayValue = shouldUseMask ? '(___) ___-____' : '';
56
+ const initialNumeric = initialValue ? removeNonNumericCharacters(initialValue) : '';
57
+ const maskedInitialValue = useMemo(() => {
58
+ if (!shouldUseMask || !initialNumeric) return undefined;
59
+ return IMask.pipe(initialNumeric, {
60
+ mask: maskPattern
61
+ });
62
+ }, [shouldUseMask, initialNumeric, maskPattern]);
63
+ const {
64
+ ref: imaskRef,
65
+ maskRef
66
+ } = useIMask({
67
+ mask: maskPattern,
68
+ lazy: !shouldUseMask,
69
+ placeholderChar: shouldUseMask ? '_' : ''
70
+ }, {
71
+ defaultUnmaskedValue: initialNumeric || undefined,
72
+ defaultValue: shouldUseMask && !initialNumeric ? emptyDisplayValue : undefined,
73
+ onAccept: !isDisabled ? () => {
74
+ var _maskRef$current$unma, _maskRef$current;
75
+ const unmaskedValue = (_maskRef$current$unma = (_maskRef$current = maskRef.current) === null || _maskRef$current === void 0 ? void 0 : _maskRef$current.unmaskedValue) !== null && _maskRef$current$unma !== void 0 ? _maskRef$current$unma : '';
76
+ if (!unmaskedValue) {
77
+ onChange === null || onChange === void 0 || onChange(null, false, countryCode, '');
78
+ return;
79
+ }
80
+ let internationalNumber = null;
81
+ let isValidLength = false;
82
+ try {
83
+ const phoneNumber = parsePhoneNumber(unmaskedValue, countryCode);
84
+ internationalNumber = phoneNumber.number;
85
+ isValidLength = phoneNumber.isPossible();
86
+ } catch (_) {
87
+ // `parsePhoneNumber` throws an error if the inputs are invalid.
88
+ }
89
+ onChange === null || onChange === void 0 || onChange(internationalNumber, isValidLength, countryCode, unmaskedValue);
90
+ } : undefined
91
+ });
92
+
93
+ // Sync initialValue to mask when prop is set/updated (mask may not exist on first run)
51
94
  useEffect(() => {
52
- updateMask();
53
- }, [countryCode, updateMask]);
54
- const removeNonNumericCharacters = value => value === null || value === void 0 ? void 0 : value.replace(/\D/g, '');
55
- const handleInputChange = a => {
56
- // remove all non-numeric characters
57
- const value = removeNonNumericCharacters(a.target.value);
58
- let internationalNumber = null;
59
- let isValidLength = false;
60
- if (!value) {
61
- return;
62
- }
63
- try {
64
- const phoneNumber = parsePhoneNumber(value, countryCode);
65
- internationalNumber = phoneNumber.number;
66
- isValidLength = phoneNumber.isPossible();
67
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
68
- } catch (e) {
69
- // `parsePhoneNumber` throws an error if the inputs are invalid.
95
+ if (!maskRef.current || !initialNumeric) return;
96
+ maskRef.current.unmaskedValue = initialNumeric;
97
+ maskRef.current.updateValue();
98
+ }, [initialNumeric, maskRef]);
99
+
100
+ // When empty and using mask, ensure placeholder is visible on mount (imask 7.6+)
101
+ useEffect(() => {
102
+ if (!shouldUseMask || initialNumeric) return undefined;
103
+ const id = requestAnimationFrame(() => {
104
+ if (maskRef.current) {
105
+ maskRef.current.value = emptyDisplayValue;
106
+ maskRef.current.updateValue();
107
+ }
108
+ });
109
+ return () => cancelAnimationFrame(id);
110
+ }, [shouldUseMask, initialNumeric, emptyDisplayValue, maskRef]);
111
+
112
+ // Preserve unmasked digits when country code changes (mask pattern changes)
113
+ useEffect(() => {
114
+ const pending = unmaskedValueOnCountryChangeRef.current;
115
+ if (pending == null || !maskRef.current) return;
116
+ unmaskedValueOnCountryChangeRef.current = null;
117
+ maskRef.current.unmaskedValue = pending;
118
+ maskRef.current.updateValue();
119
+ }, [countryCode, maskRef]);
120
+ const handleCountryChange = useCallback(value => {
121
+ var _maskRef$current$unma2, _maskRef$current2;
122
+ const unmasked = (_maskRef$current$unma2 = (_maskRef$current2 = maskRef.current) === null || _maskRef$current2 === void 0 || (_maskRef$current2 = _maskRef$current2.unmaskedValue) === null || _maskRef$current2 === void 0 ? void 0 : _maskRef$current2.replace(/\D/g, '')) !== null && _maskRef$current$unma2 !== void 0 ? _maskRef$current$unma2 : '';
123
+ if (unmasked) {
124
+ unmaskedValueOnCountryChangeRef.current = unmasked;
70
125
  }
71
- onChange === null || onChange === void 0 || onChange(internationalNumber, isValidLength, countryCode, value);
72
- };
126
+ const code = Array.isArray(value) ? value[0] : value;
127
+ setCountryCode(code);
128
+ }, [maskRef]);
73
129
  const inputClassNames = classNames(styles.input, {
74
130
  [styles.disabled]: isDisabled
75
131
  });
@@ -82,7 +138,7 @@ const PhoneNumberInput = /*#__PURE__*/forwardRef((_ref, ref) => {
82
138
  }, dropdownLabel), /*#__PURE__*/React__default.createElement(SelectMenu, {
83
139
  label: " ",
84
140
  defaultValue: countryCode,
85
- onChange: value => setCountryCode(value),
141
+ onChange: handleCountryChange,
86
142
  className: classNames(styles.dropdown, {
87
143
  [styles.disabled]: isDisabled
88
144
  }),
@@ -98,25 +154,18 @@ const PhoneNumberInput = /*#__PURE__*/forwardRef((_ref, ref) => {
98
154
  key: individualCountryCode,
99
155
  value: individualCountryCode
100
156
  }, "".concat(translate(individualCountryCode), " +").concat(getCountryCallingCode(individualCountryCode)));
101
- })), /*#__PURE__*/React__default.createElement(InputMask, {
102
- value: isDisabled ? removeNonNumericCharacters(initialValue) : undefined,
103
- type: "tel",
104
- alwaysShowMask: true
105
- // hide formatting if not using mask
106
- ,
107
- maskChar: shouldUseMask ? '_' : '',
108
- mask: mask,
109
- onChange: !isDisabled ? handleInputChange : undefined
110
- }, () => /*#__PURE__*/React__default.createElement(Input, {
111
- ref: ref,
157
+ })), /*#__PURE__*/React__default.createElement(Input, {
158
+ ref: mergeRefs(ref, imaskRef),
159
+ defaultValue: shouldUseMask && !initialNumeric ? emptyDisplayValue : undefined,
160
+ placeholder: shouldUseMask ? maskedInitialValue !== null && maskedInitialValue !== void 0 ? maskedInitialValue : emptyDisplayValue : undefined,
112
161
  id: inputId,
113
162
  className: inputClassNames,
114
163
  type: "tel",
115
164
  autoComplete: "tel-national",
116
165
  "aria-label": inputAriaLabel,
117
166
  "aria-labelledby": inputAriaLabelledBy,
118
- initialValue: isDisabled ? undefined : removeNonNumericCharacters(initialValue)
119
- })));
167
+ readOnly: isDisabled
168
+ }));
120
169
  });
121
170
  PhoneNumberInput.displayName = 'PhoneNumberInput';
122
171