@qualtrics/ui-react 2.21.0 → 2.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/__shared/cjs/{index-0ae99de2.js → index-75d9309a.js} +4 -4
- package/dist/__shared/cjs/{index-201e8786.js → index-a8c1a789.js} +678 -568
- package/dist/components/Accordion/Accordion.js +2 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Accordion/AccordionHeader.js +5 -4
- package/dist/components/Accordion/AccordionPanel.js +3 -3
- package/dist/components/Accordion/AccordionSection.js +1 -2
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +2 -2
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +11 -11
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/Alpha.js +12 -9
- package/dist/components/ColorPicker/ColorPicker.js +10 -8
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +8 -6
- package/dist/components/ColorPicker/Hue.js +3 -2
- package/dist/components/ColorPicker/Palette.js +7 -5
- package/dist/components/ColorPicker/Saturation.js +9 -8
- package/dist/components/ColorPicker/utils/hexToRgbaString.js +3 -2
- package/dist/components/ColorPicker/utils/rgbToHex.js +1 -1
- package/dist/components/ColorPicker/utils/validateHex.js +10 -9
- package/dist/components/Combobox/Combobox.js +48 -29
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxHeader.js +1 -1
- package/dist/components/Combobox/ComboboxIcon.js +3 -2
- package/dist/components/Combobox/ComboboxInput.js +4 -4
- package/dist/components/Combobox/ComboboxList.js +2 -2
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +5 -2
- package/dist/components/Dropdown/Dropdown.js +14 -9
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +23 -19
- package/dist/components/Dropdown/DropdownList.js +4 -4
- package/dist/components/Dropdown/DropdownOption.js +6 -9
- package/dist/components/Dropdown/DropdownSearch.js +12 -6
- package/dist/components/FilePicker/FilePicker.js +13 -6
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField.js +2 -2
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/FormFieldContext.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +5 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/Icon.js +2 -2
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +12 -9
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/Input/InputField.js +2 -2
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner.js +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/ConditionSet.js +5 -5
- package/dist/components/LogicEditor/LogicEditor.js +1 -1
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/LogicEditor/utils.js +2 -1
- package/dist/components/Modal/Modal.js +14 -13
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +44 -36
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +2 -2
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +10 -7
- package/dist/components/NewMenu/parts/MenuItem.js +1 -1
- package/dist/components/NumberStepper/NumberStepper.js +7 -6
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Pagination/PaginationNextButton.js +5 -5
- package/dist/components/Pagination/PaginationPageInput.js +11 -9
- package/dist/components/Pagination/PaginationPreviousButton.js +5 -5
- package/dist/components/Popover/Popover.js +9 -7
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch.js +4 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +4 -4
- package/dist/components/Radio/Radio.js +12 -11
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +4 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav.js +2 -1
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/SidebarNav/SidebarNavLink.js +1 -1
- package/dist/components/Slider/RangeSlider.js +2 -2
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Slider/SliderButton.js +1 -1
- package/dist/components/Switch/Switch.js +11 -11
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tab.js +3 -3
- package/dist/components/Tabs/TabList.js +6 -5
- package/dist/components/Tabs/TabPanel.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +10 -4
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/UIProvider/UIProvider.js +2 -2
- package/dist/components/deprecated_ColorPicker/Alpha.js +4 -4
- package/dist/components/deprecated_ColorPicker/Color.js +6 -6
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +2 -2
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_ColorPicker/HexInput.js +1 -1
- package/dist/components/deprecated_ColorPicker/Hue.js +3 -3
- package/dist/components/deprecated_ColorPicker/Saturation.js +5 -5
- package/dist/components/deprecated_ColorPicker/Swatch.js +2 -2
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +2 -2
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +2 -2
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +8 -8
- package/dist/components/deprecated_Tabs/Tabs.js +11 -7
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanel.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +4 -2
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +8 -8
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +6 -3
- package/dist/hooks/useBreakpoints/useBreakpoints.js +1 -1
- package/dist/hooks/useClickOutside/useClickOutside.js +2 -1
- package/dist/hooks/useControllableState/useControllableState.js +2 -1
- package/dist/hooks/useEventListener/useEventListener.js +1 -1
- package/dist/hooks/useId/useId.js +1 -1
- package/dist/hooks/useOverlay/useOverlay.js +7 -6
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useResponsiveValue/useResponsiveValue.js +2 -1
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +4 -2
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/createIconComponent.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +14 -7
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -4
- package/dist/next/AdvancedTable/AdvancedTable.js +62 -52
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +6 -4
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +18 -10
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +7 -6
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +5 -4
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -1
- package/dist/next/AdvancedTable/AdvancedTableTypes.js +6 -6
- package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +3 -2
- package/dist/next/AdvancedTable/useComputedWidth.js +1 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +5 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +1 -1
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxFlyout.js +2 -2
- package/dist/next/Combobox/ComboboxGroup.js +1 -1
- package/dist/next/Combobox/ComboboxInput.js +2 -2
- package/dist/next/Combobox/ComboboxOption.js +1 -1
- package/dist/next/Combobox/hooks/useComboboxFilteredGroup/useComboboxFilteredGroup.js +1 -1
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +12 -8
- package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +1 -1
- package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +3 -2
- package/dist/next/Combobox/hooks/useSelectedOptionScroll/useSelectedOptionScroll.js +2 -1
- package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +2 -1
- package/dist/next/Combobox/utils/nodeRegistration/nodeRegistration.js +1 -1
- package/dist/next/Drawer/Drawer.js +7 -4
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input.js +2 -2
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu.js +5 -3
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuItem.js +8 -9
- package/dist/next/Menu/MenuPane.js +20 -8
- package/dist/next/Menu/SubMenu.js +16 -18
- package/dist/next/Menu/useMutationObserver.js +1 -1
- package/dist/next/Menu/usePaneSearch.js +31 -21
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +7 -6
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton.js +8 -2
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimeDropdown.js +4 -4
- package/dist/next/TimePicker/TimeInput.js +2 -2
- package/dist/next/TimePicker/TimePicker.js +4 -4
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +2 -1
- package/dist/next/TimePicker/utils.js +14 -27
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +1 -1
- package/dist/next/index.js +317 -260
- package/dist/utils/Flyout/Flyout.js +1 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Popper/Popper.js +9 -5
- package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +2 -1
- package/dist/utils/Translation/containsComponentOrElement.js +1 -3
- package/dist/utils/Translation/useTranslation.js +4 -5
- package/dist/utils/filterChildren/filterChildren.js +2 -1
- package/dist/utils/getSubDataTestId/getSubDataTestId.js +1 -1
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
- package/dist/utils/mergeRefs/mergeRefs.js +1 -1
- package/dist/utils/wrapEvent/wrapEvent.js +2 -2
- package/next/package.json +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var inputClasses = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Vylos{position:relative;display:inline-block;height:36px}._OVs7G{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}._OVs7G:hover{cursor:pointer;background-color:#f5f5f5}._OVs7G:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._OVs7G:disabled,._OVs7G[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._OVs7G:disabled::-moz-placeholder,._OVs7G[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._OVs7G:disabled::placeholder,._OVs7G[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._OVs7G:invalid,._OVs7G[aria-invalid=true]{border-color:#b00}._OVs7G:invalid:focus,._OVs7G[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._OVs7G[type=number]{-moz-appearance:textfield}._OVs7G[type=number]::-webkit-inner-spin-button,._OVs7G[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._OVs7G::-moz-placeholder{color:#515559;opacity:1}._OVs7G::placeholder{color:#515559;opacity:1}._Zbpdl{pointer-events:none;color:#515559;fill:#515559}._WiNM-{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._MPlNA{color:#515559;font-size:16px}._3Rbtn{left:0;margin-left:6px}._2cIlT,._3Rbtn{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._2cIlT{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_Vylos","input":"_OVs7G","addOn":"_Zbpdl","addOnVerticalCenter":"_WiNM-","addOnTextNode":"_MPlNA","leftAddOn":"_3Rbtn","rightAddOn":"_2cIlT"};
|
|
5
|
+
var stylesheet="._Vylos{position:relative;display:inline-block;height:36px}._OVs7G{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}._OVs7G:hover{cursor:pointer;background-color:#f5f5f5}._OVs7G:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._OVs7G:disabled,._OVs7G[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._OVs7G:disabled::-moz-placeholder,._OVs7G[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._OVs7G:disabled::placeholder,._OVs7G[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._OVs7G:invalid,._OVs7G[aria-invalid=true]{border-color:#b00}._OVs7G:invalid:focus,._OVs7G[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._OVs7G[type=number]{-moz-appearance:textfield}._OVs7G[type=number]::-webkit-inner-spin-button,._OVs7G[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._OVs7G::-moz-placeholder{color:#515559;opacity:1}._OVs7G::placeholder{color:#515559;opacity:1}._Zbpdl{pointer-events:none;color:#515559;fill:#515559}._WiNM-{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._MPlNA{color:#515559;font-size:16px}._3Rbtn{left:0;margin-left:6px}._2cIlT,._3Rbtn{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._2cIlT{right:0;margin-right:6px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { inputClasses as default, stylesheet };
|
package/dist/next/Menu/Menu.js
CHANGED
|
@@ -6,6 +6,7 @@ import useControllableState from '../../hooks/useControllableState/useControllab
|
|
|
6
6
|
|
|
7
7
|
/* eslint-disable max-classes-per-file */
|
|
8
8
|
const Menu = _ref => {
|
|
9
|
+
var _process$env;
|
|
9
10
|
let {
|
|
10
11
|
'data-testid': dataTestId,
|
|
11
12
|
isOpen,
|
|
@@ -13,9 +14,10 @@ const Menu = _ref => {
|
|
|
13
14
|
isDisabled,
|
|
14
15
|
children
|
|
15
16
|
} = _ref;
|
|
16
|
-
if (typeof process !== 'undefined' && process.env
|
|
17
|
-
|
|
18
|
-
window.
|
|
17
|
+
if (typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test' && window) {
|
|
18
|
+
var _window$ResizeObserve, _window$PointerEvent;
|
|
19
|
+
window.ResizeObserver = (_window$ResizeObserve = window.ResizeObserver) !== null && _window$ResizeObserve !== void 0 ? _window$ResizeObserve : ResizeObserver;
|
|
20
|
+
window.PointerEvent = (_window$PointerEvent = window.PointerEvent) !== null && _window$PointerEvent !== void 0 ? _window$PointerEvent : PointerEvent;
|
|
19
21
|
}
|
|
20
22
|
const [open, setOpen] = useControllableState(isOpen, onIsOpenChange, isOpen);
|
|
21
23
|
const [maskHeight, setMaskHeight] = useState(null);
|
package/dist/next/Menu/Menu2.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"buttonContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._S4Js6{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._S4Js6>._OrzuD{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}._S4Js6>._OrzuD:hover:not([aria-disabled=true]){background-color:#f5f5f5}._S4Js6>._OrzuD.focus-visible,._S4Js6>._OrzuD:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._S4Js6>._OrzuD+._N99f-{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._S4Js6>._OrzuD[data-state=open]+._N99f-{transform:rotate(-180deg) translateY(50%)}._S4Js6>._OrzuD[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._S4Js6>._OrzuD[aria-disabled=true]+._N99f-{fill:#515559;opacity:.4}._9E4fn>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;width:var(--radix-dropdown-menu-trigger-width);min-width:200px!important;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:1!important}._9E4fn>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._nDlGA{margin:0;padding:4px 0;background:#fff;transition:.35s;opacity:1;overflow:auto;width:var(--radix-dropdown-menu-trigger-width);min-width:200px;max-height:350px}._nDlGA._uMzNI{margin-left:30px;opacity:0}._nDlGA._0jcRp{margin-left:-30px}._u-dkj{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._u-dkj._2HQjd{cursor:unset}._u-dkj ._sixk-{fill:#32363a;margin-right:4px}._u-dkj:focus,._u-dkj:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._u-dkj[aria-disabled=true]{cursor:not-allowed;opacity:.65}._u-dkj._DlFuJ{padding-right:32px}._u-dkj._DlFuJ ._N99f-{position:absolute;height:100%;right:3px;fill:#515559}._u-dkj._TqhET{pointer-events:none}._0BPzx{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;z-index:1;border-bottom:1px solid #e8e8e8}._0BPzx._32QZF{padding-top:49px}._vi1-R{z-index:1;pointer-events:none;position:fixed;left:0;top:0}._PwSUm{position:absolute;background-color:#fff;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;overflow:hidden;opacity:1;transition:opacity .35s}._PwSUm._0jcRp{opacity:0}._PwSUm._0jcRp>._JjhqP{margin-left:-30px}._PwSUm._uMzNI{opacity:0}._PwSUm._uMzNI>._JjhqP{margin-left:30px}._PwSUm>._JjhqP{transition:margin-left .35s;width:100%}._PwSUm._TqhET{pointer-events:none}body.keyboard-user ._u-dkj:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
4
|
+
var styles = {"buttonContainer":"_S4Js6","button":"_OrzuD","rightIcon":"_N99f-","maskContainer":"_9E4fn","flyout":"_nDlGA","animatedRight":"_uMzNI","animatedLeft":"_0jcRp","menuItem":"_u-dkj","noItems":"_2HQjd","backIcon":"_sixk-","subMenu":"_DlFuJ","unresponsive":"_TqhET","stickyBox":"_0BPzx","isSearchable":"_32QZF","searchBoxesContainer":"_vi1-R","searchBox":"_PwSUm","searchInput":"_JjhqP"};
|
|
5
|
+
var stylesheet="._S4Js6{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._S4Js6>._OrzuD{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}._S4Js6>._OrzuD:hover:not([aria-disabled=true]){background-color:#f5f5f5}._S4Js6>._OrzuD.focus-visible,._S4Js6>._OrzuD:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._S4Js6>._OrzuD+._N99f-{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._S4Js6>._OrzuD[data-state=open]+._N99f-{transform:rotate(-180deg) translateY(50%)}._S4Js6>._OrzuD[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._S4Js6>._OrzuD[aria-disabled=true]+._N99f-{fill:#515559;opacity:.4}._9E4fn>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;width:var(--radix-dropdown-menu-trigger-width);min-width:200px!important;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:1!important}._9E4fn>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._nDlGA{margin:0;padding:4px 0;background:#fff;transition:.35s;opacity:1;overflow:auto;width:var(--radix-dropdown-menu-trigger-width);min-width:200px;max-height:350px}._nDlGA._uMzNI{margin-left:30px;opacity:0}._nDlGA._0jcRp{margin-left:-30px}._u-dkj{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._u-dkj._2HQjd{cursor:unset}._u-dkj ._sixk-{fill:#32363a;margin-right:4px}._u-dkj:focus,._u-dkj:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._u-dkj[aria-disabled=true]{cursor:not-allowed;opacity:.65}._u-dkj._DlFuJ{padding-right:32px}._u-dkj._DlFuJ ._N99f-{position:absolute;height:100%;right:3px;fill:#515559}._u-dkj._TqhET{pointer-events:none}._0BPzx{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;z-index:1;border-bottom:1px solid #e8e8e8}._0BPzx._32QZF{padding-top:49px}._vi1-R{z-index:1;pointer-events:none;position:fixed;left:0;top:0}._PwSUm{position:absolute;background-color:#fff;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;overflow:hidden;opacity:1;transition:opacity .35s}._PwSUm._0jcRp{opacity:0}._PwSUm._0jcRp>._JjhqP{margin-left:-30px}._PwSUm._uMzNI{opacity:0}._PwSUm._uMzNI>._JjhqP{margin-left:30px}._PwSUm>._JjhqP{transition:margin-left .35s;width:100%}._PwSUm._TqhET{pointer-events:none}body.keyboard-user ._u-dkj:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
3
2
|
import React__default, { useRef, useMemo } from 'react';
|
|
4
3
|
import { Item } from '@radix-ui/react-dropdown-menu';
|
|
5
4
|
import classNames from 'classnames';
|
|
@@ -37,14 +36,15 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
37
36
|
} = useFocusVisible({
|
|
38
37
|
isTextInput: true
|
|
39
38
|
});
|
|
40
|
-
const dataTestId = getSubDataTestId(menuParentDataTestId
|
|
39
|
+
const dataTestId = getSubDataTestId(menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_ITEM), String(index));
|
|
41
40
|
const isVisible = useMemo(() => {
|
|
42
|
-
const searchMatcher = label
|
|
43
|
-
return isSearchFilteringDisabled || !searchValue || searchMatcher
|
|
41
|
+
const searchMatcher = label !== null && label !== void 0 ? label : typeof children === 'string' ? children : undefined;
|
|
42
|
+
return isSearchFilteringDisabled || !searchValue || (searchMatcher === null || searchMatcher === void 0 ? void 0 : searchMatcher.toLowerCase().includes(searchValue.toLowerCase()));
|
|
44
43
|
}, [children, searchValue, label, isSearchFilteringDisabled]);
|
|
45
44
|
const handleFocus = () => {
|
|
46
45
|
if (itemRef.current && flyoutRef.current && isFocusVisible) {
|
|
47
|
-
|
|
46
|
+
var _stickyBoxRef$current, _stickyBoxRef$current2;
|
|
47
|
+
const stickyBoxHeight = (_stickyBoxRef$current = (_stickyBoxRef$current2 = stickyBoxRef.current) === null || _stickyBoxRef$current2 === void 0 ? void 0 : _stickyBoxRef$current2.clientHeight) !== null && _stickyBoxRef$current !== void 0 ? _stickyBoxRef$current : 0;
|
|
48
48
|
|
|
49
49
|
// if the top of the focused menu item is beneath the sticky box
|
|
50
50
|
if (itemRef.current.offsetTop < flyoutRef.current.scrollTop + stickyBoxHeight) {
|
|
@@ -62,20 +62,19 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
62
62
|
"data-testid": dataTestId,
|
|
63
63
|
ref: mergeRefs(ref, itemRef),
|
|
64
64
|
onKeyDown: e => {
|
|
65
|
-
var _context;
|
|
66
65
|
if (!isInteractive) {
|
|
67
66
|
e.preventDefault();
|
|
68
67
|
return;
|
|
69
68
|
}
|
|
70
|
-
if (
|
|
71
|
-
closeSubmenu
|
|
69
|
+
if (KEYS.CLOSE_SUBMENU.includes(e.key)) {
|
|
70
|
+
closeSubmenu === null || closeSubmenu === void 0 ? void 0 : closeSubmenu(e);
|
|
72
71
|
}
|
|
73
72
|
},
|
|
74
73
|
onFocus: handleFocus
|
|
75
74
|
// stop radix from closing the menu on selection of disabled item
|
|
76
75
|
// other pointer and keyboard events still work, even when disabled
|
|
77
76
|
,
|
|
78
|
-
onSelect: e => isDisabled ? e.preventDefault() : onSelect
|
|
77
|
+
onSelect: e => isDisabled ? e.preventDefault() : onSelect === null || onSelect === void 0 ? void 0 : onSelect()
|
|
79
78
|
}), (!children || typeof children === 'string') && label ? label : children) : null;
|
|
80
79
|
});
|
|
81
80
|
|
|
@@ -18,6 +18,7 @@ import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
|
18
18
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
19
19
|
|
|
20
20
|
const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
21
|
+
var _flyoutRef$current$pa, _flyoutRef$current2, _flyoutRef$current3;
|
|
21
22
|
let {
|
|
22
23
|
placement,
|
|
23
24
|
children,
|
|
@@ -33,7 +34,10 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
33
34
|
const flyoutRef = useRef(null);
|
|
34
35
|
const stickyBoxRef = useRef(null);
|
|
35
36
|
const portalTarget = usePortalTarget();
|
|
36
|
-
const [side, align] = useMemo(() =>
|
|
37
|
+
const [side, align] = useMemo(() => {
|
|
38
|
+
var _placement$split, _placement$split2;
|
|
39
|
+
return (_placement$split = placement === null || placement === void 0 || (_placement$split2 = placement.split) === null || _placement$split2 === void 0 ? void 0 : _placement$split2.call(placement, '-')) !== null && _placement$split !== void 0 ? _placement$split : [];
|
|
40
|
+
}, [placement]);
|
|
37
41
|
const {
|
|
38
42
|
dataTestId: rootDataTestId,
|
|
39
43
|
openPaneDepth,
|
|
@@ -65,7 +69,8 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
65
69
|
if (openPaneDepth === thisPanesDepth) {
|
|
66
70
|
if (initialHeightOfThisPane.current === null) {
|
|
67
71
|
window.requestAnimationFrame(() => {
|
|
68
|
-
|
|
72
|
+
var _flyoutRef$current$cl, _flyoutRef$current;
|
|
73
|
+
initialHeightOfThisPane.current = (_flyoutRef$current$cl = (_flyoutRef$current = flyoutRef.current) === null || _flyoutRef$current === void 0 ? void 0 : _flyoutRef$current.clientHeight) !== null && _flyoutRef$current$cl !== void 0 ? _flyoutRef$current$cl : null;
|
|
69
74
|
setMaskHeight(initialHeightOfThisPane.current);
|
|
70
75
|
});
|
|
71
76
|
} else {
|
|
@@ -74,7 +79,8 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
74
79
|
}
|
|
75
80
|
}, [openPaneDepth]);
|
|
76
81
|
const defaultSide = useMemo(() => {
|
|
77
|
-
|
|
82
|
+
var _triggerRef$current;
|
|
83
|
+
const rect = triggerRef === null || triggerRef === void 0 || (_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 ? void 0 : _triggerRef$current.getBoundingClientRect();
|
|
78
84
|
if (!rect) {
|
|
79
85
|
return 'bottom';
|
|
80
86
|
}
|
|
@@ -98,11 +104,14 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
98
104
|
return 'bottom';
|
|
99
105
|
}, [open, triggerRef]);
|
|
100
106
|
const [transform, setTransform] = useState('');
|
|
101
|
-
const target = flyoutRef.current
|
|
107
|
+
const target = (_flyoutRef$current$pa = (_flyoutRef$current2 = flyoutRef.current) === null || _flyoutRef$current2 === void 0 ? void 0 : _flyoutRef$current2.parentNode) !== null && _flyoutRef$current$pa !== void 0 ? _flyoutRef$current$pa : undefined;
|
|
102
108
|
useMutationObserver(target, {
|
|
103
109
|
attributes: true,
|
|
104
110
|
attributeFilter: ['style']
|
|
105
|
-
}, () =>
|
|
111
|
+
}, () => {
|
|
112
|
+
var _style$transform, _style;
|
|
113
|
+
return setTransform((_style$transform = target === null || target === void 0 || (_style = target.style) === null || _style === void 0 ? void 0 : _style.transform) !== null && _style$transform !== void 0 ? _style$transform : '');
|
|
114
|
+
});
|
|
106
115
|
return /*#__PURE__*/React__default.createElement(PaneContextProvider, {
|
|
107
116
|
items: items,
|
|
108
117
|
setItems: setItems,
|
|
@@ -120,7 +129,10 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
120
129
|
className: styles.maskContainer,
|
|
121
130
|
id: maskContainerId
|
|
122
131
|
}, /*#__PURE__*/React__default.createElement(Content, _extends({}, rest, {
|
|
123
|
-
onCloseAutoFocus: () =>
|
|
132
|
+
onCloseAutoFocus: () => {
|
|
133
|
+
var _triggerRef$current2;
|
|
134
|
+
return triggerRef === null || triggerRef === void 0 || (_triggerRef$current2 = triggerRef.current) === null || _triggerRef$current2 === void 0 ? void 0 : _triggerRef$current2.focus();
|
|
135
|
+
},
|
|
124
136
|
sideOffset: 6,
|
|
125
137
|
loop: !isSearchable,
|
|
126
138
|
side: side || defaultSide,
|
|
@@ -133,7 +145,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
133
145
|
onInteractOutside: onInteractOutside,
|
|
134
146
|
style: {
|
|
135
147
|
...style,
|
|
136
|
-
height: internalSearchValue && openPaneDepth === thisPanesDepth ? undefined : maskHeight
|
|
148
|
+
height: internalSearchValue && openPaneDepth === thisPanesDepth ? undefined : maskHeight !== null && maskHeight !== void 0 ? maskHeight : undefined
|
|
137
149
|
}
|
|
138
150
|
}), isSearchable && /*#__PURE__*/React__default.createElement("div", {
|
|
139
151
|
className: classNames(styles.stickyBox, styles.isSearchable),
|
|
@@ -142,7 +154,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
142
154
|
className: styles.searchBoxesContainer,
|
|
143
155
|
style: {
|
|
144
156
|
transform,
|
|
145
|
-
width: flyoutRef.current
|
|
157
|
+
width: (_flyoutRef$current3 = flyoutRef.current) === null || _flyoutRef$current3 === void 0 ? void 0 : _flyoutRef$current3.clientWidth
|
|
146
158
|
}
|
|
147
159
|
}, searchBarConfigs.length ? searchBarConfigs.map(_ref2 => {
|
|
148
160
|
let {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
3
2
|
import React__default, { useState, useRef, useMemo, useEffect } from 'react';
|
|
4
3
|
import { Sub, SubTrigger, SubContent, Item } from '@radix-ui/react-dropdown-menu';
|
|
5
4
|
import classNames from 'classnames';
|
|
@@ -71,12 +70,9 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
71
70
|
noSearchResultsNode,
|
|
72
71
|
onInteractOutside
|
|
73
72
|
} = usePaneSearch(isSearchable, externalSearchValue, onSearchValueChange, items, animatedLeft, animatedRight, paneDataTestId, internalId, flyoutRef, backButtonRef, closeThisSubmenu);
|
|
74
|
-
const backButtonDataTestId = paneDataTestId
|
|
75
|
-
const triggerDataTestId = paneDataTestId
|
|
76
|
-
const triggerIsVisible = useMemo(() =>
|
|
77
|
-
var _context;
|
|
78
|
-
return isSearchFilteringDisabledForPaneContainingTrigger || !paneContainingTriggerSearchValue || typeof label === 'string' && _includesInstanceProperty(_context = label.toLowerCase()).call(_context, paneContainingTriggerSearchValue.toLowerCase());
|
|
79
|
-
}, [paneContainingTriggerSearchValue, label, isSearchFilteringDisabledForPaneContainingTrigger]);
|
|
73
|
+
const backButtonDataTestId = paneDataTestId === null || paneDataTestId === void 0 ? void 0 : paneDataTestId.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_BACK);
|
|
74
|
+
const triggerDataTestId = paneDataTestId === null || paneDataTestId === void 0 ? void 0 : paneDataTestId.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_ITEM);
|
|
75
|
+
const triggerIsVisible = useMemo(() => isSearchFilteringDisabledForPaneContainingTrigger || !paneContainingTriggerSearchValue || typeof label === 'string' && label.toLowerCase().includes(paneContainingTriggerSearchValue.toLowerCase()), [paneContainingTriggerSearchValue, label, isSearchFilteringDisabledForPaneContainingTrigger]);
|
|
80
76
|
useDidUpdate(() => {
|
|
81
77
|
if (isPaneInDOM) {
|
|
82
78
|
setIsTransitioningFromRight(true);
|
|
@@ -85,7 +81,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
85
81
|
window.requestAnimationFrame(() => setIsFrameAfterPaneAddedToDOM(false));
|
|
86
82
|
}
|
|
87
83
|
registerSubmenu(internalId, isPaneInDOM);
|
|
88
|
-
onIsOpenChange
|
|
84
|
+
onIsOpenChange === null || onIsOpenChange === void 0 ? void 0 : onIsOpenChange(isPaneInDOM);
|
|
89
85
|
}, [isPaneInDOM]);
|
|
90
86
|
|
|
91
87
|
// Omitted dependencies because this should only run on unmount
|
|
@@ -93,7 +89,8 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
93
89
|
useEffect(() => () => registerSubmenu(internalId, false), []);
|
|
94
90
|
useDidUpdate(() => {
|
|
95
91
|
if (thisPanesDepth === totalOpenPaneDepth) {
|
|
96
|
-
|
|
92
|
+
var _flyoutRef$current$cl, _flyoutRef$current;
|
|
93
|
+
setMaskHeight((_flyoutRef$current$cl = (_flyoutRef$current = flyoutRef.current) === null || _flyoutRef$current === void 0 ? void 0 : _flyoutRef$current.clientHeight) !== null && _flyoutRef$current$cl !== void 0 ? _flyoutRef$current$cl : null);
|
|
97
94
|
}
|
|
98
95
|
},
|
|
99
96
|
// ignoring other dependencies because this should only run when the children change
|
|
@@ -101,24 +98,27 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
101
98
|
useDidUpdate(() => {
|
|
102
99
|
if (thisPanesDepth === totalOpenPaneDepth) {
|
|
103
100
|
window.requestAnimationFrame(() => {
|
|
104
|
-
|
|
101
|
+
var _flyoutRef$current$cl2, _flyoutRef$current2;
|
|
102
|
+
setMaskHeight((_flyoutRef$current$cl2 = (_flyoutRef$current2 = flyoutRef.current) === null || _flyoutRef$current2 === void 0 ? void 0 : _flyoutRef$current2.clientHeight) !== null && _flyoutRef$current$cl2 !== void 0 ? _flyoutRef$current$cl2 : null);
|
|
105
103
|
});
|
|
106
104
|
}
|
|
107
105
|
}, [totalOpenPaneDepth, internalSearchValue]);
|
|
108
106
|
const handlePaneTransitionEnd = () => {
|
|
107
|
+
var _flyoutRef$current3;
|
|
109
108
|
if (animatedLeft) {
|
|
110
109
|
return;
|
|
111
110
|
}
|
|
112
111
|
if (animatedRight) {
|
|
113
112
|
setIsPaneInDOM(false);
|
|
114
113
|
if (isFocusVisible) {
|
|
115
|
-
|
|
114
|
+
var _triggerRef$current;
|
|
115
|
+
(_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 ? void 0 : _triggerRef$current.focus();
|
|
116
116
|
}
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
// if the newly closed submenu doesn't place the focus on its trigger due to mouse events
|
|
121
|
-
if (!flyoutRef.current
|
|
121
|
+
if (!((_flyoutRef$current3 = flyoutRef.current) !== null && _flyoutRef$current3 !== void 0 && _flyoutRef$current3.contains(document.activeElement)) && isFocusVisible) {
|
|
122
122
|
if (triggerRef.current && paneContainingTriggerIsInteractive) {
|
|
123
123
|
triggerRef.current.focus();
|
|
124
124
|
} else if (backButtonRef.current) {
|
|
@@ -138,15 +138,14 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
138
138
|
ref: triggerRef,
|
|
139
139
|
onClick: () => !isDisabled && setIsPaneInDOM(true),
|
|
140
140
|
onKeyDown: e => {
|
|
141
|
-
var _context2, _context3;
|
|
142
141
|
if (!paneContainingTriggerIsInteractive) {
|
|
143
142
|
e.preventDefault();
|
|
144
143
|
return;
|
|
145
144
|
}
|
|
146
|
-
if (!isDisabled &&
|
|
145
|
+
if (!isDisabled && KEYS.OPEN_SUBMENU.includes(e.key)) {
|
|
147
146
|
setIsPaneInDOM(true);
|
|
148
|
-
} else if (
|
|
149
|
-
closeSubmenuContainingTrigger
|
|
147
|
+
} else if (KEYS.CLOSE_SUBMENU.includes(e.key)) {
|
|
148
|
+
closeSubmenuContainingTrigger === null || closeSubmenuContainingTrigger === void 0 ? void 0 : closeSubmenuContainingTrigger(e);
|
|
150
149
|
}
|
|
151
150
|
}
|
|
152
151
|
}, label, /*#__PURE__*/React__default.createElement(ChevronRightIcon, {
|
|
@@ -190,8 +189,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
190
189
|
onSelect: closeThisSubmenu,
|
|
191
190
|
ref: backButtonRef,
|
|
192
191
|
onKeyDown: e => {
|
|
193
|
-
|
|
194
|
-
if (_includesInstanceProperty(_context4 = KEYS.CLOSE_SUBMENU).call(_context4, e.key)) {
|
|
192
|
+
if (KEYS.CLOSE_SUBMENU.includes(e.key)) {
|
|
195
193
|
closeThisSubmenu(e);
|
|
196
194
|
}
|
|
197
195
|
}
|
|
@@ -8,7 +8,7 @@ const useMutationObserver = (target, options, onMutate) => useEffect(() => {
|
|
|
8
8
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9
9
|
args[_key] = arguments[_key];
|
|
10
10
|
}
|
|
11
|
-
onMutate
|
|
11
|
+
onMutate === null || onMutate === void 0 ? void 0 : onMutate(...args);
|
|
12
12
|
});
|
|
13
13
|
observer.observe(target, options);
|
|
14
14
|
return () => observer.disconnect();
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
2
1
|
import React__default, { useState, useEffect, useRef, useCallback } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import { useFocusVisible } from '@react-aria/interactions';
|
|
@@ -15,6 +14,7 @@ import useEventListener from '../../hooks/useEventListener/useEventListener.js';
|
|
|
15
14
|
// creates a searchBarConfig, which maps to an instance of `MenuSearch`
|
|
16
15
|
// returns values that are necessary for use within pane
|
|
17
16
|
function usePaneSearch(isSearchable, externalSearchValue, onSearchValueChange, items, animatedLeft, animatedRight, menuParentDataTestId, id, flyoutRef) {
|
|
17
|
+
var _searchRef$current$qu, _searchRef$current;
|
|
18
18
|
let backButtonRef = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : undefined;
|
|
19
19
|
let closeSubmenu = arguments.length > 10 && arguments[10] !== undefined ? arguments[10] : undefined;
|
|
20
20
|
const [internalSearchValue, setSearchValue] = useControllableState(externalSearchValue, onSearchValueChange, externalSearchValue);
|
|
@@ -24,49 +24,59 @@ function usePaneSearch(isSearchable, externalSearchValue, onSearchValueChange, i
|
|
|
24
24
|
} = useTranslation();
|
|
25
25
|
const noMatchesText = translate('menu.noItemsToDisplay');
|
|
26
26
|
const searchPlaceholder = translate('searchText');
|
|
27
|
-
useEffect(() => setZeroSearchResults(items
|
|
27
|
+
useEffect(() => setZeroSearchResults((items === null || items === void 0 ? void 0 : items.filter(item => item.element.current).length) === 0), [items, internalSearchValue]);
|
|
28
28
|
const {
|
|
29
29
|
isFocusVisible
|
|
30
30
|
} = useFocusVisible({
|
|
31
31
|
isTextInput: true
|
|
32
32
|
});
|
|
33
33
|
const searchRef = useRef(null);
|
|
34
|
-
const searchInput = searchRef.current
|
|
35
|
-
const getFirstNonNullItem = () =>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
const searchInput = (_searchRef$current$qu = (_searchRef$current = searchRef.current) === null || _searchRef$current === void 0 ? void 0 : _searchRef$current.querySelector('input')) !== null && _searchRef$current$qu !== void 0 ? _searchRef$current$qu : null;
|
|
35
|
+
const getFirstNonNullItem = () => {
|
|
36
|
+
var _backButtonRef$curren, _items$find;
|
|
37
|
+
return (_backButtonRef$curren = backButtonRef === null || backButtonRef === void 0 ? void 0 : backButtonRef.current) !== null && _backButtonRef$curren !== void 0 ? _backButtonRef$curren : (_items$find = items.find(item => item.element.current)) === null || _items$find === void 0 ? void 0 : _items$find.element.current;
|
|
38
|
+
};
|
|
39
|
+
const getLastNonNullItem = () => {
|
|
40
|
+
var _findLast$element$cur, _findLast;
|
|
41
|
+
return (// our tsconfig does not target a recent enough version to use `Array.prototype.findLast`
|
|
42
|
+
(_findLast$element$cur = (_findLast = items.findLast(item => item.element.current)) === null || _findLast === void 0 ? void 0 : _findLast.element.current) !== null && _findLast$element$cur !== void 0 ? _findLast$element$cur : backButtonRef === null || backButtonRef === void 0 ? void 0 : backButtonRef.current
|
|
43
|
+
);
|
|
44
|
+
};
|
|
39
45
|
useEventListener(flyoutRef, 'keydown', e => {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
searchInput?.focus();
|
|
46
|
+
if (KEYS.NAVIGATE_UP.includes(e.key) && e.target === getFirstNonNullItem() || KEYS.NAVIGATE_DOWN.includes(e.key) && e.target === getLastNonNullItem()) {
|
|
47
|
+
searchInput === null || searchInput === void 0 ? void 0 : searchInput.focus();
|
|
43
48
|
}
|
|
44
49
|
}, {
|
|
45
50
|
additionalDependencies: [flyoutRef.current],
|
|
46
51
|
isDisabled: !isSearchable
|
|
47
52
|
});
|
|
48
53
|
useEventListener(searchInput, 'keydown', e => {
|
|
49
|
-
var
|
|
50
|
-
if (
|
|
54
|
+
var _e$target;
|
|
55
|
+
if ([...KEYS.NAVIGATE_DOWN, ...KEYS.NAVIGATE_TOP].includes(e.key)) {
|
|
56
|
+
var _getFirstNonNullItem;
|
|
51
57
|
// prevent scrolling
|
|
52
58
|
e.preventDefault();
|
|
53
|
-
getFirstNonNullItem()
|
|
54
|
-
} else if (
|
|
59
|
+
(_getFirstNonNullItem = getFirstNonNullItem()) === null || _getFirstNonNullItem === void 0 ? void 0 : _getFirstNonNullItem.focus();
|
|
60
|
+
} else if ([...KEYS.NAVIGATE_UP, ...KEYS.NAVIIGATE_BOTTOM].includes(e.key)) {
|
|
61
|
+
var _getLastNonNullItem;
|
|
55
62
|
// prevent scrolling
|
|
56
63
|
e.preventDefault();
|
|
57
|
-
getLastNonNullItem()
|
|
58
|
-
} else if (
|
|
59
|
-
closeSubmenu
|
|
60
|
-
} else if (
|
|
64
|
+
(_getLastNonNullItem = getLastNonNullItem()) === null || _getLastNonNullItem === void 0 ? void 0 : _getLastNonNullItem.focus();
|
|
65
|
+
} else if (KEYS.CLOSE_SUBMENU.includes(e.key) && ((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.selectionStart) === 0) {
|
|
66
|
+
closeSubmenu === null || closeSubmenu === void 0 ? void 0 : closeSubmenu(e);
|
|
67
|
+
} else if (KEYS.IGNORED_BY_SEARCH_INPUT.includes(e.key)) {
|
|
61
68
|
e.preventDefault();
|
|
62
69
|
}
|
|
63
70
|
});
|
|
64
|
-
useEventListener(searchInput, 'blur', () => !isFocusVisible && !animatedLeft && !animatedRight && searchInput
|
|
71
|
+
useEventListener(searchInput, 'blur', () => !isFocusVisible && !animatedLeft && !animatedRight && (searchInput === null || searchInput === void 0 ? void 0 : searchInput.focus()));
|
|
65
72
|
const {
|
|
66
73
|
searchBarConfigs,
|
|
67
74
|
setSearchBarConfigs
|
|
68
75
|
} = useMenuContext();
|
|
69
|
-
const onInteractOutside = useCallback(e => searchBarConfigs.some(config =>
|
|
76
|
+
const onInteractOutside = useCallback(e => searchBarConfigs.some(config => {
|
|
77
|
+
var _config$ref$current;
|
|
78
|
+
return (_config$ref$current = config.ref.current) === null || _config$ref$current === void 0 ? void 0 : _config$ref$current.contains(e.target);
|
|
79
|
+
}) && e.preventDefault(), [searchBarConfigs]);
|
|
70
80
|
useEffect(() => {
|
|
71
81
|
if (!isSearchable) {
|
|
72
82
|
return undefined;
|
|
@@ -78,7 +88,7 @@ function usePaneSearch(isSearchable, externalSearchValue, onSearchValueChange, i
|
|
|
78
88
|
isInteractive: !animatedLeft && !animatedRight,
|
|
79
89
|
animatedLeft,
|
|
80
90
|
animatedRight,
|
|
81
|
-
dataTestId: menuParentDataTestId
|
|
91
|
+
dataTestId: menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_SEARCH),
|
|
82
92
|
setSearchValue,
|
|
83
93
|
ref: searchRef,
|
|
84
94
|
id,
|
|
@@ -34,9 +34,10 @@ const PhoneNumberInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
34
34
|
translate
|
|
35
35
|
} = useTranslation();
|
|
36
36
|
const getMinMaxLength = useCallback(() => {
|
|
37
|
+
var _metadata$numberingPl;
|
|
37
38
|
const metadata = new Metadata();
|
|
38
39
|
metadata.selectNumberingPlan(countryCode);
|
|
39
|
-
const possibleLengths = metadata
|
|
40
|
+
const possibleLengths = metadata === null || metadata === void 0 || (_metadata$numberingPl = metadata.numberingPlan) === null || _metadata$numberingPl === void 0 ? void 0 : _metadata$numberingPl.possibleLengths();
|
|
40
41
|
return possibleLengths ? [Math.min(...possibleLengths), Math.max(...possibleLengths)] : [0, genericMaxNumberLength];
|
|
41
42
|
}, [countryCode]);
|
|
42
43
|
const shouldUseMask = Number(getCountryCallingCode(countryCode)) === 1;
|
|
@@ -50,7 +51,7 @@ const PhoneNumberInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
50
51
|
useEffect(() => {
|
|
51
52
|
updateMask();
|
|
52
53
|
}, [countryCode, updateMask]);
|
|
53
|
-
const removeNonNumericCharacters = value => value
|
|
54
|
+
const removeNonNumericCharacters = value => value === null || value === void 0 ? void 0 : value.replace(/\D/g, '');
|
|
54
55
|
const handleInputChange = a => {
|
|
55
56
|
// remove all non-numeric characters
|
|
56
57
|
const value = removeNonNumericCharacters(a.target.value);
|
|
@@ -66,12 +67,12 @@ const PhoneNumberInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
66
67
|
} catch (e) {
|
|
67
68
|
// `parsePhoneNumber` throws an error if the inputs are invalid.
|
|
68
69
|
}
|
|
69
|
-
onChange
|
|
70
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(internationalNumber, isValidLength, countryCode, value);
|
|
70
71
|
};
|
|
71
72
|
const inputClassNames = classNames(styles.input, {
|
|
72
73
|
[styles.disabled]: isDisabled
|
|
73
74
|
});
|
|
74
|
-
const dropdownLabel = useMemo(() => countryCode ?
|
|
75
|
+
const dropdownLabel = useMemo(() => countryCode ? "+".concat(getCountryCallingCode(countryCode)) : undefined, [countryCode]);
|
|
75
76
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
76
77
|
className: styles.container,
|
|
77
78
|
"data-testid": dataTestId
|
|
@@ -88,14 +89,14 @@ const PhoneNumberInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
88
89
|
disabled: isDisabled,
|
|
89
90
|
"aria-label": buttonAriaLabel,
|
|
90
91
|
"aria-labelledby": buttonAriaLabelledBy
|
|
91
|
-
}, (countryCodes
|
|
92
|
+
}, (countryCodes !== null && countryCodes !== void 0 ? countryCodes : getCountries()).map(individualCountryCode => {
|
|
92
93
|
if (!isSupportedCountry(individualCountryCode)) {
|
|
93
94
|
return null;
|
|
94
95
|
}
|
|
95
96
|
return /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
96
97
|
key: individualCountryCode,
|
|
97
98
|
value: individualCountryCode
|
|
98
|
-
},
|
|
99
|
+
}, "".concat(translate(individualCountryCode), " +").concat(getCountryCallingCode(individualCountryCode)));
|
|
99
100
|
})), /*#__PURE__*/React__default.createElement(InputMask, {
|
|
100
101
|
value: isDisabled ? removeNonNumericCharacters(initialValue) : undefined,
|
|
101
102
|
type: "tel",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"input":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._3Lwys input{padding-left:76px!important}._a8k7r input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._a8k7r input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._a8k7r input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._dDFoz{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._dDFoz,._dDFoz._a8k7r:hover{background-color:transparent!important}._dDFoz:hover{background-color:rgba(50,54,58,.08)!important}._dDFoz:active{background-color:rgba(50,54,58,.11)!important}._dDFoz svg{top:2px!important}._-tnsL{position:relative}._T-5Dv{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
4
|
+
var styles = {"input":"_3Lwys","disabled":"_a8k7r","dropdown":"_dDFoz","container":"_-tnsL","countryCode":"_T-5Dv"};
|
|
5
|
+
var stylesheet="._3Lwys input{padding-left:76px!important}._a8k7r input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._a8k7r input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._a8k7r input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._dDFoz{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._dDFoz,._dDFoz._a8k7r:hover{background-color:transparent!important}._dDFoz:hover{background-color:rgba(50,54,58,.08)!important}._dDFoz:active{background-color:rgba(50,54,58,.11)!important}._dDFoz svg{top:2px!important}._-tnsL{position:relative}._T-5Dv{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -33,8 +33,14 @@ const SplitButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
33
33
|
const [mainButtonHasFocus, setMainButtonHasFocus] = useState(false);
|
|
34
34
|
|
|
35
35
|
// Keyboard navigation cannot be implemented using `onKeyDown` on the `button`s because keyboard events are disabled if the buttons are disabled. The consumer must be able to access either button, even if the other is disabled.
|
|
36
|
-
useEventListener(mainButtonRef, 'keydown', e =>
|
|
37
|
-
|
|
36
|
+
useEventListener(mainButtonRef, 'keydown', e => {
|
|
37
|
+
var _dropdownButtonRef$cu;
|
|
38
|
+
return e.key === 'ArrowRight' && ((_dropdownButtonRef$cu = dropdownButtonRef.current) === null || _dropdownButtonRef$cu === void 0 ? void 0 : _dropdownButtonRef$cu.focus());
|
|
39
|
+
});
|
|
40
|
+
useEventListener(dropdownButtonRef, 'keydown', e => {
|
|
41
|
+
var _mainButtonRef$curren;
|
|
42
|
+
return e.key === 'ArrowLeft' && ((_mainButtonRef$curren = mainButtonRef.current) === null || _mainButtonRef$curren === void 0 ? void 0 : _mainButtonRef$curren.focus());
|
|
43
|
+
});
|
|
38
44
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
39
45
|
"data-testid": dataTestId,
|
|
40
46
|
className: classNames(styles.container, className),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._OvR8C{display:flex}._-f9G5{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._-f9G5._wH-CQ{background-color:#fff}._-f9G5._wH-CQ._HCBQf:not(._-f9G5._wH-CQ._3DW4Y),._-f9G5._wH-CQ._VAFAa.focus-visible:not(._ccYDM),._-f9G5._wH-CQ._VAFAa:focus-visible:not(._ccYDM),._-f9G5._YdaMA{background-color:#0b6ed0}._-f9G5._YdaMA._3DW4Y._HCBQf,._-f9G5._YdaMA._ccYDM._3DW4Y,._-f9G5._YdaMA._ccYDM._VAFAa{opacity:.4}._cvhox{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._cvhox:focus{z-index:1}._P8F-D{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._P8F-D svg{margin-left:1px}._P8F-D._wH-CQ{background-color:#0b6ed0;border-color:transparent}._P8F-D._wH-CQ svg{fill:#fff!important}._P8F-D._wH-CQ:not(._HCqT5):hover{background-color:#085caf!important}._P8F-D._wH-CQ:not(._HCqT5):active{background-color:#0854a1!important}._P8F-D._wH-CQ._HCqT5{opacity:.4}._P8F-D._wH-CQ._HCqT5 svg{background-color:transparent}._P8F-D._YdaMA{border-color:#0b6ed0;background-color:#fff}._P8F-D._YdaMA svg{fill:#0b6ed0!important}._P8F-D._YdaMA:not(._HCqT5):hover{background-color:#eef5fc!important}._P8F-D._YdaMA:not(._HCqT5):active{background-color:#e1edf9!important}._P8F-D._YdaMA._HCqT5{opacity:.4}._P8F-D._YdaMA._HCqT5 svg{background-color:transparent}._R90pQ{width:260px}";
|
|
4
|
+
var styles = {"container":"_OvR8C","divider":"_-f9G5","primary":"_wH-CQ","mainButtonFocus":"_VAFAa","mainButtonDisabled":"_ccYDM","dropdownButtonFocus":"_HCBQf","dropdownButtonDisabled":"_3DW4Y","secondary":"_YdaMA","mainButton":"_cvhox","dropdownButton":"_P8F-D","disabled":"_HCqT5","dropdownOption":"_R90pQ"};
|
|
5
|
+
var stylesheet="._OvR8C{display:flex}._-f9G5{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._-f9G5._wH-CQ{background-color:#fff}._-f9G5._wH-CQ._HCBQf:not(._-f9G5._wH-CQ._3DW4Y),._-f9G5._wH-CQ._VAFAa.focus-visible:not(._ccYDM),._-f9G5._wH-CQ._VAFAa:focus-visible:not(._ccYDM),._-f9G5._YdaMA{background-color:#0b6ed0}._-f9G5._YdaMA._3DW4Y._HCBQf,._-f9G5._YdaMA._ccYDM._3DW4Y,._-f9G5._YdaMA._ccYDM._VAFAa{opacity:.4}._cvhox{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._cvhox:focus{z-index:1}._P8F-D{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._P8F-D svg{margin-left:1px}._P8F-D._wH-CQ{background-color:#0b6ed0;border-color:transparent}._P8F-D._wH-CQ svg{fill:#fff!important}._P8F-D._wH-CQ:not(._HCqT5):hover{background-color:#085caf!important}._P8F-D._wH-CQ:not(._HCqT5):active{background-color:#0854a1!important}._P8F-D._wH-CQ._HCqT5{opacity:.4}._P8F-D._wH-CQ._HCqT5 svg{background-color:transparent}._P8F-D._YdaMA{border-color:#0b6ed0;background-color:#fff}._P8F-D._YdaMA svg{fill:#0b6ed0!important}._P8F-D._YdaMA:not(._HCqT5):hover{background-color:#eef5fc!important}._P8F-D._YdaMA:not(._HCqT5):active{background-color:#e1edf9!important}._P8F-D._YdaMA._HCqT5{opacity:.4}._P8F-D._YdaMA._HCqT5 svg{background-color:transparent}._R90pQ{width:260px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -43,14 +43,14 @@ const TimeDropdown = _ref => {
|
|
|
43
43
|
"aria-label": ariaLabel,
|
|
44
44
|
"aria-labelledby": ariaLabelledBy,
|
|
45
45
|
"aria-describedby": ariaDescribedBy,
|
|
46
|
-
"data-testid": dataTestId &&
|
|
46
|
+
"data-testid": dataTestId && "".concat(dataTestId, "-dropdown"),
|
|
47
47
|
className: styles.flyout,
|
|
48
48
|
onMouseOver: () => setIsOptionHovered(true),
|
|
49
49
|
onMouseLeave: () => setIsOptionHovered(false)
|
|
50
50
|
}, items.map((item, index) => /*#__PURE__*/React__default.createElement(FlyoutOption, {
|
|
51
51
|
id: item.id,
|
|
52
52
|
isHighlightedOnHover: true,
|
|
53
|
-
isHighlighted: scrolledToItem
|
|
53
|
+
isHighlighted: (scrolledToItem === null || scrolledToItem === void 0 ? void 0 : scrolledToItem.index) === index && (scrolledToItem === null || scrolledToItem === void 0 ? void 0 : scrolledToItem.isFocused),
|
|
54
54
|
key: item.label,
|
|
55
55
|
ref: node => {
|
|
56
56
|
if (node) {
|
|
@@ -59,9 +59,9 @@ const TimeDropdown = _ref => {
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
onClick: () => onClick(index),
|
|
62
|
-
"data-testid": dataTestId &&
|
|
62
|
+
"data-testid": dataTestId && "".concat(dataTestId, "-option-").concat(index),
|
|
63
63
|
className: classNames(styles.option, {
|
|
64
|
-
[styles.exactMatch]: scrolledToItem
|
|
64
|
+
[styles.exactMatch]: (scrolledToItem === null || scrolledToItem === void 0 ? void 0 : scrolledToItem.index) === index && scrolledToItem.isExactMatch && !isOptionHovered
|
|
65
65
|
})
|
|
66
66
|
}, item.label))),
|
|
67
67
|
anchorNode: inputRef.current,
|