@qualtrics/ui-react 2.79.1 → 2.81.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.
- package/CHANGELOG.md +25 -0
- package/dist/__node_modules/@radix-ui/primitive/dist/index.js +5 -6
- package/dist/__node_modules/@radix-ui/react-arrow/dist/index.js +8 -7
- package/dist/__node_modules/@radix-ui/react-collection/dist/index.js +71 -63
- package/dist/__node_modules/@radix-ui/react-context/dist/index.js +10 -14
- package/dist/__node_modules/@radix-ui/react-direction/dist/index.js +2 -4
- package/dist/__node_modules/@radix-ui/react-dismissable-layer/dist/index.js +22 -15
- package/dist/__node_modules/@radix-ui/react-dropdown-menu/dist/index.js +89 -89
- package/dist/__node_modules/@radix-ui/react-focus-scope/dist/index.js +26 -19
- package/dist/__node_modules/@radix-ui/react-id/dist/index.js +5 -2
- package/dist/__node_modules/@radix-ui/react-menu/dist/index.js +165 -129
- package/dist/__node_modules/@radix-ui/react-popper/dist/index.js +139 -106
- package/dist/__node_modules/@radix-ui/react-portal/dist/index.js +9 -5
- package/dist/__node_modules/@radix-ui/react-presence/dist/index.js +27 -20
- package/dist/__node_modules/@radix-ui/react-primitive/dist/index.js +4 -5
- package/dist/__node_modules/@radix-ui/react-roving-focus/dist/index.js +61 -38
- package/dist/__node_modules/@radix-ui/react-slot/dist/index.js +8 -12
- package/dist/__node_modules/@radix-ui/react-use-controllable-state/dist/index.js +40 -35
- package/dist/__node_modules/@radix-ui/react-use-size/dist/index.js +5 -2
- package/dist/__shared/cjs/{index-91d2f6f8.js → index-2272eaad.js} +15 -9
- package/dist/__shared/cjs/{index-d4ec6b6f.js → index-7fd3ddfe.js} +2829 -2634
- package/dist/components/Accordion/Accordion.js +27 -21
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Accordion/AccordionContext.js +6 -8
- package/dist/components/Accordion/AccordionHeader.js +13 -17
- package/dist/components/Accordion/AccordionPanel.js +7 -11
- package/dist/components/Accordion/AccordionSection.js +14 -11
- package/dist/components/Banner/Banner.js +10 -11
- package/dist/components/Banner/BannerBody.js +1 -3
- package/dist/components/Banner/BannerFooter.js +1 -3
- package/dist/components/Banner/BannerTitle.js +1 -3
- package/dist/components/BreakpointSwitch/Breakpoint.js +2 -5
- package/dist/components/BreakpointSwitch/BreakpointContext.js +3 -4
- package/dist/components/BreakpointSwitch/BreakpointSwitch.js +1 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +19 -13
- package/dist/components/ButtonGroup/ButtonGroup.js +7 -7
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Check.js +8 -6
- package/dist/components/Checkbox/Checkbox.js +31 -28
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/CheckboxField.js +14 -13
- package/dist/components/ColorPicker/Alpha.js +8 -12
- package/dist/components/ColorPicker/ColorPicker.js +67 -48
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyout.js +23 -24
- package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +27 -22
- package/dist/components/ColorPicker/ColorPickerWIthNoColor.js +11 -7
- package/dist/components/ColorPicker/Hue.js +9 -13
- package/dist/components/ColorPicker/Palette.js +23 -21
- package/dist/components/ColorPicker/Saturation.js +11 -15
- package/dist/components/ColorPicker/utils/hexToHsv.js +4 -5
- package/dist/components/ColorPicker/utils/hsvToHex.js +3 -5
- package/dist/components/ColorPicker/utils/rgbToHex.js +3 -5
- package/dist/components/Combobox/Combobox.js +166 -133
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxContext.js +3 -4
- package/dist/components/Combobox/ComboboxHeader.js +6 -6
- package/dist/components/Combobox/ComboboxIcon.js +14 -14
- package/dist/components/Combobox/ComboboxInput.js +41 -43
- package/dist/components/Combobox/ComboboxList.js +20 -20
- package/dist/components/Combobox/ComboboxOption.js +9 -10
- package/dist/components/ConfigPane/ConfigPane.js +52 -36
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider.js +4 -4
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/ChildIndexContext/index.js +7 -9
- package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +18 -21
- package/dist/components/Dropdown/Dropdown.js +68 -43
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +53 -47
- package/dist/components/Dropdown/DropdownContext.js +3 -4
- package/dist/components/Dropdown/DropdownHeader.js +12 -9
- package/dist/components/Dropdown/DropdownHeaderContext.js +3 -4
- package/dist/components/Dropdown/DropdownList.js +32 -32
- package/dist/components/Dropdown/DropdownOption.js +32 -30
- package/dist/components/Dropdown/DropdownSearch.js +12 -14
- package/dist/components/FilePicker/FilePicker.js +30 -25
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/ErrorText.js +5 -5
- package/dist/components/FormField/FormField.js +27 -14
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/FormFieldContext.js +6 -13
- package/dist/components/FormField/HelperText.js +5 -5
- package/dist/components/FormField/ReadOnlyText.js +4 -6
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +22 -15
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/Icon.js +6 -5
- package/dist/components/Icon/IconTypes.js +1 -0
- package/dist/components/IconButton/IconButton.js +25 -16
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +25 -14
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input.js +42 -29
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/Input/InputField.js +26 -21
- package/dist/components/InputGroup/InputGroup.js +7 -7
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/InputGroup/InputGroupAddon.js +7 -6
- package/dist/components/InputGroup/InputGroupProvider.js +5 -8
- package/dist/components/Label/Label.js +8 -9
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link.js +9 -7
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner.js +22 -17
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/ConditionContainer.js +8 -10
- package/dist/components/LogicEditor/ConditionSet.js +16 -21
- package/dist/components/LogicEditor/Controls.js +17 -20
- package/dist/components/LogicEditor/LogicEditor.js +33 -24
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/LogicEditor/LogicEditorContext.js +3 -4
- package/dist/components/LogicEditor/utils.js +5 -9
- package/dist/components/Modal/Modal.js +63 -49
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/Modal/ModalBody.js +5 -5
- package/dist/components/Modal/ModalContext.js +3 -4
- package/dist/components/Modal/ModalFooter.js +5 -5
- package/dist/components/Modal/ModalHeader.js +10 -12
- package/dist/components/NewMenu/BaseMenu.js +83 -54
- package/dist/components/NewMenu/Menu/Menu.js +10 -12
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +6 -7
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +35 -30
- package/dist/components/NewMenu/parts/MenuAnchor.js +15 -16
- package/dist/components/NewMenu/parts/MenuContext.js +3 -4
- package/dist/components/NewMenu/parts/MenuItem.js +23 -17
- package/dist/components/NewMenu/parts/MenuSearchBox.js +4 -6
- package/dist/components/NewMenu/parts/SubmenuAnchor.js +5 -5
- package/dist/components/NumberStepper/NumberStepper.js +42 -37
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperContext.js +3 -4
- package/dist/components/NumberStepper/NumberStepperDecrement.js +13 -15
- package/dist/components/NumberStepper/NumberStepperIncrement.js +13 -15
- package/dist/components/NumberStepper/NumberStepperInput.js +28 -30
- package/dist/components/PageLayout/MainContent.js +4 -4
- package/dist/components/PageLayout/PageContainer.js +4 -4
- package/dist/components/PageLayout/PageHeader.js +4 -4
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination.js +20 -16
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Pagination/PaginationContext.js +3 -4
- package/dist/components/Pagination/PaginationNextButton.js +15 -17
- package/dist/components/Pagination/PaginationPageInput.js +24 -24
- package/dist/components/Pagination/PaginationPreviousButton.js +14 -16
- package/dist/components/Popover/Popover.js +27 -18
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch.js +23 -16
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +33 -23
- package/dist/components/Radio/Radio.js +26 -28
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/Radio/RadioGroup.js +15 -16
- package/dist/components/Radio/RadioGroupContext.js +3 -4
- package/dist/components/Radio/RadioOption.js +11 -10
- package/dist/components/SearchInput/SearchInput.js +32 -25
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/ExpandCollapseButton.js +4 -6
- package/dist/components/SidebarNav/SidebarNav.js +19 -13
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/SidebarNav/SidebarNavContext.js +3 -4
- package/dist/components/SidebarNav/SidebarNavLink.js +7 -10
- package/dist/components/Slider/RangeSlider.js +36 -24
- package/dist/components/Slider/Slider.js +29 -20
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Slider/SliderButton.js +26 -17
- package/dist/components/Switch/Switch.js +19 -19
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Switch/SwitchField.js +13 -13
- package/dist/components/Table/Table.js +5 -5
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Table/TableBody.js +5 -5
- package/dist/components/Table/TableCell.js +5 -5
- package/dist/components/Table/TableHead.js +5 -5
- package/dist/components/Table/TableHeaderCell.js +5 -5
- package/dist/components/Table/TableRow.js +5 -5
- package/dist/components/Tabs/Tab.js +12 -13
- package/dist/components/Tabs/TabContextProvider.js +10 -13
- package/dist/components/Tabs/TabList.js +17 -13
- package/dist/components/Tabs/TabPanel.js +10 -11
- package/dist/components/Tabs/TabPanels.js +1 -3
- package/dist/components/Tabs/Tabs.js +20 -12
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +51 -29
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/UIProvider/A11yHelpersContext.js +3 -9
- package/dist/components/UIProvider/PortalTargetContext.js +6 -8
- package/dist/components/UIProvider/UIProvider.js +4 -5
- package/dist/components/deprecated_ColorPicker/Alpha.js +7 -7
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +24 -13
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_ColorPicker/HexInput.js +16 -9
- package/dist/components/deprecated_ColorPicker/Hue.js +6 -6
- package/dist/components/deprecated_ColorPicker/Saturation.js +14 -16
- package/dist/components/deprecated_ColorPicker/Swatch.js +7 -6
- package/dist/components/deprecated_ColorPicker/useMouseDrag.js +5 -1
- package/dist/components/deprecated_NumberStepper/NumberStepper.js +34 -25
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperContext.js +3 -4
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +14 -16
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +14 -16
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +32 -34
- package/dist/components/deprecated_Tabs/Tab.js +8 -9
- package/dist/components/deprecated_Tabs/TabContextProvider.js +3 -4
- package/dist/components/deprecated_Tabs/Tabs.js +13 -9
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/IconButtonWithLabel.js +6 -6
- package/dist/components/deprecated_Toolbar/Toolbar.js +16 -11
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarContext.js +3 -4
- package/dist/components/deprecated_Toolbar/ToolbarPanel.js +16 -16
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +44 -29
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +19 -20
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +34 -24
- package/dist/design-tokens/less/typography.js +3 -3
- package/dist/hooks/useBreakpoints/useBreakpoints.js +12 -4
- package/dist/hooks/useClickOutside/useClickOutside.js +1 -3
- package/dist/hooks/useClickOutsidePortals/useClickOutsidePortals.js +3 -3
- package/dist/hooks/useControllableState/useControllableState.js +5 -2
- package/dist/hooks/useEventListener/useEventListener.js +6 -5
- package/dist/hooks/useFocusSequence/useFocusSequence.js +12 -12
- package/dist/hooks/useId/useId.js +4 -1
- package/dist/hooks/useIsFocused/useIsFocused.js +5 -1
- package/dist/hooks/useIsHovered/useIsHovered.js +5 -1
- package/dist/hooks/useIsTruncated/useIsTruncated.js +11 -16
- package/dist/hooks/useMouseDrag/useMouseDrag.js +5 -1
- package/dist/hooks/useOverlay/useOverlay.js +10 -10
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +9 -2
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/components/FrontlineEmployeeVoiceIcon.js +6 -0
- package/dist/icons/createIconComponent.js +7 -6
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/index.es.js +1 -0
- package/dist/icons/index.js +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +7 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +192 -173
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +30 -25
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +12 -15
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +83 -65
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +25 -30
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaders.js +10 -9
- package/dist/next/AdvancedTable/AdvancedTableDnDContext.js +12 -10
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +4 -7
- package/dist/next/AdvancedTable/AdvancedTableHiddenDescription.js +4 -7
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +9 -13
- package/dist/next/AdvancedTable/AdvancedTableRow.js +16 -16
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +7 -11
- package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +32 -36
- package/dist/next/AdvancedTable/useDragAndDropConfig.js +44 -53
- package/dist/next/Chat/Chat.js +5 -6
- package/dist/next/Chat/ChatContext.js +3 -4
- package/dist/next/Chat/ChatInput.js +24 -20
- package/dist/next/Chat/ChatMessage.js +16 -20
- package/dist/next/Chat/ChatMessageList.js +11 -10
- package/dist/next/Chat/ChatMessageText.js +1 -3
- package/dist/next/Chat/Loader.js +6 -9
- package/dist/next/Chat/MessageContext.js +3 -4
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +28 -18
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +8 -8
- package/dist/next/CollectionGrid/CollectionGrid.js +14 -12
- package/dist/next/CollectionGrid/CollectionGridItem.js +4 -5
- package/dist/next/Combobox/Combobox.js +48 -37
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxContext.js +3 -4
- package/dist/next/Combobox/ComboboxFlyout.js +12 -15
- package/dist/next/Combobox/ComboboxGroup.js +10 -14
- package/dist/next/Combobox/ComboboxGroupContext.js +9 -10
- package/dist/next/Combobox/ComboboxInput.js +37 -39
- package/dist/next/Combobox/ComboboxOption.js +15 -19
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +9 -4
- package/dist/next/Combobox/hooks/useComboboxLoadingState/useComboboxLoadingState.js +2 -3
- package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +10 -5
- package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +12 -5
- package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +5 -1
- package/dist/next/Drawer/Drawer.js +52 -27
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +21 -19
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/FormFieldWrapper.js +11 -11
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Form/useForm.js +25 -30
- package/dist/next/Form/useFormField.js +3 -4
- package/dist/next/Form/utils/createFormInstance.js +7 -9
- package/dist/next/Form/utils/useFormContext.js +3 -4
- package/dist/next/Indicator/Indicator.js +12 -8
- package/dist/next/Indicator/Indicator2.js +3 -3
- package/dist/next/Input/Input.js +49 -35
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/LayoutGrid/LayoutGrid.js +11 -12
- package/dist/next/LayoutGrid/LayoutGridItem.js +5 -6
- package/dist/next/LoadingSpinner/LoadingSpinner.js +22 -17
- package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/next/Menu/Hooks/useFocusVirtualBoundary.js +7 -4
- package/dist/next/Menu/Hooks/useMaskDimensions.js +6 -7
- package/dist/next/Menu/Hooks/usePaneSearch.js +50 -39
- package/dist/next/Menu/Menu.js +28 -15
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +17 -18
- package/dist/next/Menu/MenuContext.js +13 -18
- package/dist/next/Menu/MenuItem.js +28 -29
- package/dist/next/Menu/MenuPane.js +74 -61
- package/dist/next/Menu/MenuSearch.js +10 -10
- package/dist/next/Menu/PaneChildren.js +10 -15
- package/dist/next/Menu/SubMenu.js +91 -76
- package/dist/next/Pagination/Pagination.js +40 -31
- package/dist/next/Pagination/RowDisplayCount.js +6 -7
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +49 -47
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +27 -30
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/Select/SelectButton.js +16 -15
- package/dist/next/Select/SelectContext.js +3 -4
- package/dist/next/Select/SelectItem.js +12 -13
- package/dist/next/Select/SelectPane.js +13 -14
- package/dist/next/Select/SelectedItems.js +16 -10
- package/dist/next/Select/SubSelect.js +21 -18
- package/dist/next/SplitButton/SplitButton.js +30 -22
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/SplitButton/SplitButtonOption.js +6 -6
- package/dist/next/Stack/Stack.js +26 -26
- package/dist/next/Stack/StackItem.js +12 -14
- package/dist/next/TimePicker/TimeDropdown.js +18 -18
- package/dist/next/TimePicker/TimeInput.js +38 -42
- package/dist/next/TimePicker/TimePicker.js +46 -25
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +5 -7
- package/dist/next/TimePicker/utils.js +34 -13
- package/dist/next/ToggleButton/ToggleButton.js +14 -13
- package/dist/next/ToggleButton/ToggleButtonGroup.js +8 -10
- package/dist/next/ToggleButton/ToggleButtonGroupContext.js +3 -4
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/Tooltip/Tooltip.js +5 -4
- package/dist/next/Typography/Typography.js +8 -7
- package/dist/next/index.d.ts +12 -2
- package/dist/next/index.js +2395 -2199
- package/dist/utils/Flyout/Flyout.js +14 -13
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Flyout/FlyoutHeader.js +6 -6
- package/dist/utils/Flyout/FlyoutOption.js +11 -8
- package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +4 -6
- package/dist/utils/Popper/Popper.js +71 -61
- package/dist/utils/Popper/PopperContext.js +5 -6
- package/dist/utils/Portal/Portal.js +7 -5
- package/dist/utils/Text/Text.js +10 -8
- package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +10 -6
- package/dist/utils/Translation/Translate.js +4 -7
- package/dist/utils/Translation/TranslationProvider.js +10 -14
- package/dist/utils/Translation/containsComponentOrElement.js +3 -1
- package/dist/utils/Translation/useTranslation.js +2 -3
- package/dist/utils/VirtuosoTestWrapper/VirtuosoTestWrapper.js +1 -3
- package/dist/utils/filterChildren/filterChildren.js +4 -4
- package/icons/package.json +1 -1
- package/next/package.json +2 -2
- package/package.json +4 -4
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
2
|
+
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
1
3
|
import React__default, { useMemo, useState, useCallback, useRef, useEffect } from 'react';
|
|
2
4
|
import classNames from 'classnames';
|
|
3
5
|
import '../../../hooks/index.js';
|
|
@@ -16,43 +18,48 @@ import useEventListener from '../../../hooks/useEventListener/useEventListener.j
|
|
|
16
18
|
// creates a searchBarConfig, which maps to an instance of `MenuSearch`
|
|
17
19
|
// returns values that are necessary for use within pane
|
|
18
20
|
function usePaneSearch(_ref) {
|
|
19
|
-
let
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
children = [],
|
|
30
|
-
isSearchFilteringDisabled,
|
|
31
|
-
backButtonRef,
|
|
32
|
-
closeSubmenu,
|
|
33
|
-
isVirtualized
|
|
34
|
-
} = _ref;
|
|
21
|
+
let isSearchable = _ref.isSearchable,
|
|
22
|
+
externalSearchValue = _ref.externalSearchValue,
|
|
23
|
+
onSearchValueChange = _ref.onSearchValueChange,
|
|
24
|
+
items = _ref.items,
|
|
25
|
+
animatedLeft = _ref.animatedLeft,
|
|
26
|
+
animatedRight = _ref.animatedRight,
|
|
27
|
+
menuParentDataTestId = _ref.menuParentDataTestId,
|
|
28
|
+
id = _ref.id,
|
|
29
|
+
flyoutNode = _ref.flyoutNode,
|
|
30
|
+
_ref$children = _ref.children,
|
|
31
|
+
children = _ref$children === void 0 ? [] : _ref$children,
|
|
32
|
+
isSearchFilteringDisabled = _ref.isSearchFilteringDisabled,
|
|
33
|
+
backButtonRef = _ref.backButtonRef,
|
|
34
|
+
closeSubmenu = _ref.closeSubmenu,
|
|
35
|
+
isVirtualized = _ref.isVirtualized;
|
|
35
36
|
const withinSelect = useSelectContext(true) !== null;
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
const _useControllableState = useControllableState(externalSearchValue, onSearchValueChange, externalSearchValue),
|
|
38
|
+
_useControllableState2 = _slicedToArray(_useControllableState, 2),
|
|
39
|
+
internalSearchValue = _useControllableState2[0],
|
|
40
|
+
setSearchValue = _useControllableState2[1];
|
|
41
|
+
const _useTranslation = useTranslation(),
|
|
42
|
+
translate = _useTranslation.translate;
|
|
40
43
|
const noMatchesText = translate('menu.noItemsToDisplay');
|
|
41
44
|
const searchPlaceholder = translate('searchText');
|
|
42
45
|
const filteredChildren = useMemo(() => (Array.isArray(children) ? children : [children]).filter(_ref2 => {
|
|
43
|
-
var _props$label, _searchMatcher$toLowe;
|
|
44
|
-
let
|
|
45
|
-
props
|
|
46
|
-
} = _ref2;
|
|
46
|
+
var _props$label, _searchMatcher$toLowe, _context;
|
|
47
|
+
let props = _ref2.props;
|
|
47
48
|
if (!props || !internalSearchValue || isSearchFilteringDisabled) {
|
|
48
49
|
return true;
|
|
49
50
|
}
|
|
50
51
|
const searchMatcher = (_props$label = props.label) !== null && _props$label !== void 0 ? _props$label : typeof props.children === 'string' ? props.children : undefined;
|
|
51
|
-
return searchMatcher === null || searchMatcher === void 0 || (_searchMatcher$toLowe = searchMatcher.toLowerCase) === null || _searchMatcher$toLowe === void 0 ? void 0 : _searchMatcher$toLowe.call(searchMatcher).
|
|
52
|
+
return searchMatcher === null || searchMatcher === void 0 || (_searchMatcher$toLowe = searchMatcher.toLowerCase) === null || _searchMatcher$toLowe === void 0 ? void 0 : _includesInstanceProperty(_context = _searchMatcher$toLowe.call(searchMatcher)).call(_context, internalSearchValue.toLowerCase());
|
|
52
53
|
}), [internalSearchValue, children, isSearchFilteringDisabled]);
|
|
53
54
|
const focusVirtualBoundary = useFocusVirtualBoundary(items, backButtonRef);
|
|
54
|
-
const
|
|
55
|
-
|
|
55
|
+
const _useState = useState(null),
|
|
56
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
57
|
+
searchInput = _useState2[0],
|
|
58
|
+
setSearchInput = _useState2[1];
|
|
59
|
+
const _useState3 = useState(null),
|
|
60
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
61
|
+
searchElement = _useState4[0],
|
|
62
|
+
setSearchElement = _useState4[1];
|
|
56
63
|
const searchRef = useCallback(node => {
|
|
57
64
|
var _node$querySelector;
|
|
58
65
|
setSearchElement(node);
|
|
@@ -69,14 +76,18 @@ function usePaneSearch(_ref) {
|
|
|
69
76
|
);
|
|
70
77
|
};
|
|
71
78
|
useEventListener(flyoutNode, 'keydown', e => {
|
|
72
|
-
|
|
79
|
+
var _context2, _context3;
|
|
80
|
+
if (_includesInstanceProperty(_context2 = KEYS.NAVIGATE_UP).call(_context2, e.key) && e.target === getFirstVisibleItem() || _includesInstanceProperty(_context3 = KEYS.NAVIGATE_DOWN).call(_context3, e.key) && e.target === getLastVisibleItem()) {
|
|
73
81
|
searchInput === null || searchInput === void 0 || searchInput.focus();
|
|
74
82
|
}
|
|
75
83
|
}, {
|
|
76
84
|
isDisabled: !isSearchable
|
|
77
85
|
});
|
|
78
86
|
const lastestKeyPressedInSearchInput = useRef(undefined);
|
|
79
|
-
const
|
|
87
|
+
const _useState5 = useState(false),
|
|
88
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
89
|
+
isComposing = _useState6[0],
|
|
90
|
+
setIsComposing = _useState6[1];
|
|
80
91
|
useEventListener(searchInput, 'compositionstart', () => {
|
|
81
92
|
setIsComposing(true);
|
|
82
93
|
});
|
|
@@ -84,12 +95,12 @@ function usePaneSearch(_ref) {
|
|
|
84
95
|
setIsComposing(false);
|
|
85
96
|
});
|
|
86
97
|
useEventListener(searchInput, 'keydown', e => {
|
|
87
|
-
var _e$target;
|
|
98
|
+
var _context4, _context5, _context6, _e$target, _context7;
|
|
88
99
|
lastestKeyPressedInSearchInput.current = e.key;
|
|
89
100
|
if (isComposing) {
|
|
90
101
|
return;
|
|
91
102
|
}
|
|
92
|
-
if ([...KEYS.NAVIGATE_DOWN, ...KEYS.NAVIGATE_TOP].
|
|
103
|
+
if (_includesInstanceProperty(_context4 = [...KEYS.NAVIGATE_DOWN, ...KEYS.NAVIGATE_TOP]).call(_context4, e.key)) {
|
|
93
104
|
// prevent scrolling
|
|
94
105
|
e.preventDefault();
|
|
95
106
|
if (isVirtualized) {
|
|
@@ -98,7 +109,7 @@ function usePaneSearch(_ref) {
|
|
|
98
109
|
var _getFirstVisibleItem;
|
|
99
110
|
(_getFirstVisibleItem = getFirstVisibleItem()) === null || _getFirstVisibleItem === void 0 || _getFirstVisibleItem.focus();
|
|
100
111
|
}
|
|
101
|
-
} else if ([...KEYS.NAVIGATE_UP, ...KEYS.NAVIIGATE_BOTTOM].
|
|
112
|
+
} else if (_includesInstanceProperty(_context5 = [...KEYS.NAVIGATE_UP, ...KEYS.NAVIIGATE_BOTTOM]).call(_context5, e.key)) {
|
|
102
113
|
// prevent scrolling
|
|
103
114
|
e.preventDefault();
|
|
104
115
|
if (isVirtualized) {
|
|
@@ -107,23 +118,23 @@ function usePaneSearch(_ref) {
|
|
|
107
118
|
var _getLastVisibleItem;
|
|
108
119
|
(_getLastVisibleItem = getLastVisibleItem()) === null || _getLastVisibleItem === void 0 || _getLastVisibleItem.focus();
|
|
109
120
|
}
|
|
110
|
-
} else if (KEYS.CLOSE_SUBMENU.
|
|
121
|
+
} else if (_includesInstanceProperty(_context6 = KEYS.CLOSE_SUBMENU).call(_context6, e.key) && ((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.selectionStart) === 0) {
|
|
111
122
|
closeSubmenu === null || closeSubmenu === void 0 || closeSubmenu(e);
|
|
112
|
-
} else if (KEYS.IGNORED_BY_SEARCH_INPUT.
|
|
123
|
+
} else if (_includesInstanceProperty(_context7 = KEYS.IGNORED_BY_SEARCH_INPUT).call(_context7, e.key)) {
|
|
113
124
|
e.preventDefault();
|
|
114
125
|
}
|
|
115
126
|
});
|
|
116
127
|
useEventListener(searchInput, 'blur', () => {
|
|
117
|
-
|
|
128
|
+
var _context8;
|
|
129
|
+
const refocus = !_includesInstanceProperty(_context8 = [...KEYS.NAVIGATE_DOWN, ...KEYS.NAVIGATE_UP, ...KEYS.NAVIGATE_TOP, ...KEYS.NAVIIGATE_BOTTOM]).call(_context8, lastestKeyPressedInSearchInput.current) && !animatedLeft && !animatedRight && searchInput;
|
|
118
130
|
lastestKeyPressedInSearchInput.current = undefined;
|
|
119
131
|
if (refocus) {
|
|
120
132
|
searchInput.focus();
|
|
121
133
|
}
|
|
122
134
|
});
|
|
123
|
-
const
|
|
124
|
-
searchBarConfigs,
|
|
125
|
-
setSearchBarConfigs
|
|
126
|
-
} = useMenuContext();
|
|
135
|
+
const _useMenuContext = useMenuContext(),
|
|
136
|
+
searchBarConfigs = _useMenuContext.searchBarConfigs,
|
|
137
|
+
setSearchBarConfigs = _useMenuContext.setSearchBarConfigs;
|
|
127
138
|
const onInteractOutside = useCallback(e => searchBarConfigs.some(config => {
|
|
128
139
|
var _config$searchElement;
|
|
129
140
|
return (_config$searchElement = config.searchElement) === null || _config$searchElement === void 0 ? void 0 : _config$searchElement.contains(e.target);
|
package/dist/next/Menu/Menu.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
1
2
|
import React__default, { useRef, useState, useMemo } from 'react';
|
|
2
3
|
import { Root as Root2 } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
|
|
3
4
|
import { ResizeObserver } from '@juggle/resize-observer';
|
|
@@ -6,28 +7,37 @@ import '../../hooks/index.js';
|
|
|
6
7
|
import useControllableState from '../../hooks/useControllableState/useControllableState.js';
|
|
7
8
|
import useEventListener from '../../hooks/useEventListener/useEventListener.js';
|
|
8
9
|
|
|
9
|
-
/* eslint-disable max-classes-per-file */
|
|
10
10
|
const Menu = _ref => {
|
|
11
11
|
var _process$env;
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
elementRefToFocusOnClose
|
|
20
|
-
} = _ref;
|
|
12
|
+
let dataTestId = _ref['data-testid'],
|
|
13
|
+
isOpen = _ref.isOpen,
|
|
14
|
+
onIsOpenChange = _ref.onIsOpenChange,
|
|
15
|
+
isDisabled = _ref.isDisabled,
|
|
16
|
+
children = _ref.children,
|
|
17
|
+
isVirtualizationDisabled = _ref.isVirtualizationDisabled,
|
|
18
|
+
elementRefToFocusOnClose = _ref.elementRefToFocusOnClose;
|
|
21
19
|
if (typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test' && window) {
|
|
22
20
|
var _window$ResizeObserve, _window$PointerEvent;
|
|
23
21
|
window.ResizeObserver = (_window$ResizeObserve = window.ResizeObserver) !== null && _window$ResizeObserve !== void 0 ? _window$ResizeObserve : ResizeObserver;
|
|
24
22
|
window.PointerEvent = (_window$PointerEvent = window.PointerEvent) !== null && _window$PointerEvent !== void 0 ? _window$PointerEvent : PointerEvent;
|
|
25
23
|
}
|
|
26
|
-
const
|
|
24
|
+
const _useControllableState = useControllableState(isOpen, onIsOpenChange, isOpen),
|
|
25
|
+
_useControllableState2 = _slicedToArray(_useControllableState, 2),
|
|
26
|
+
open = _useControllableState2[0],
|
|
27
|
+
setOpen = _useControllableState2[1];
|
|
27
28
|
const virtuoso = useRef(null);
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
const _useState = useState(null),
|
|
30
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
31
|
+
maskHeight = _useState2[0],
|
|
32
|
+
setMaskHeight = _useState2[1];
|
|
33
|
+
const _useState3 = useState(null),
|
|
34
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
35
|
+
maskWidth = _useState4[0],
|
|
36
|
+
setMaskWidth = _useState4[1];
|
|
37
|
+
const _useState5 = useState({}),
|
|
38
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
39
|
+
submenuDepths = _useState6[0],
|
|
40
|
+
setSubmenuDepths = _useState6[1];
|
|
31
41
|
const triggerRef = useRef(null);
|
|
32
42
|
const registerSubmenu = (submenuId, submenuIsOpen, parentSubmenuId) => {
|
|
33
43
|
setSubmenuDepths(subs => {
|
|
@@ -63,7 +73,10 @@ const Menu = _ref => {
|
|
|
63
73
|
}
|
|
64
74
|
return 0;
|
|
65
75
|
}, [submenuDepths, open]);
|
|
66
|
-
const
|
|
76
|
+
const _useState7 = useState([]),
|
|
77
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
78
|
+
searchBarConfigs = _useState8[0],
|
|
79
|
+
setSearchBarConfigs = _useState8[1];
|
|
67
80
|
return /*#__PURE__*/React__default.createElement(MenuContextProvider, {
|
|
68
81
|
value: {
|
|
69
82
|
dataTestId,
|
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 = "._H6L-y{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._H6L-y>._RTzIz{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}._H6L-y>._RTzIz:hover:not([aria-disabled=true]){background-color:#f5f5f5}._H6L-y>._RTzIz.focus-visible,._H6L-y>._RTzIz:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._H6L-y>._RTzIz+._mK8rA{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._H6L-y>._RTzIz[data-state=open]+._mK8rA{transform:rotate(-180deg) translateY(50%)}._H6L-y>._RTzIz[aria-disabled=true]{color:#74777a;cursor:not-allowed}._H6L-y>._RTzIz[aria-disabled=true]+._mK8rA{fill:#515559;opacity:.4}._7RZra>[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}._7RZra>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._dexOB{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)}._dexOB ._KSiXz{height:100%;overflow-y:scroll}._dexOB._r6ekj{margin-left:30px;opacity:0}._dexOB._wiBFA{margin-left:-30px}._IAWjR{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%}._IAWjR._lidjL{cursor:unset}._IAWjR ._q8kax{fill:#32363a;margin-right:4px}._IAWjR:focus,._IAWjR:hover:not(._IAWjR._lidjL){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._IAWjR[aria-disabled=true]{cursor:not-allowed;opacity:.65}._IAWjR._XLsdT{padding-right:32px}._IAWjR._XLsdT ._mK8rA{position:absolute;height:100%;right:3px;fill:#515559}._IAWjR._rxmAl{pointer-events:none}._ZINqC{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._ZINqC._rDIRC{padding-top:52px}._xXryv{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._VCdAo{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._VCdAo._wiBFA{opacity:0}._VCdAo._wiBFA>._u9nJa{margin-left:-30px}._VCdAo._r6ekj{opacity:0}._VCdAo._r6ekj>._u9nJa{margin-left:30px}._VCdAo>._u9nJa{transition:margin-left .35s;width:100%}._VCdAo._rxmAl{pointer-events:none}body.keyboard-user ._IAWjR:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
4
|
+
var styles = {"buttonContainer":"_H6L-y","button":"_RTzIz","rightIcon":"_mK8rA","maskContainer":"_7RZra","flyout":"_dexOB","scrollContainer":"_KSiXz","animatedRight":"_r6ekj","animatedLeft":"_wiBFA","menuItem":"_IAWjR","noItems":"_lidjL","backIcon":"_q8kax","subMenu":"_XLsdT","unresponsive":"_rxmAl","stickyBox":"_ZINqC","isSearchable":"_rDIRC","searchBoxesContainer":"_xXryv","searchBox":"_VCdAo","searchInput":"_u9nJa"};
|
|
5
|
+
var stylesheet="._H6L-y{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._H6L-y>._RTzIz{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}._H6L-y>._RTzIz:hover:not([aria-disabled=true]){background-color:#f5f5f5}._H6L-y>._RTzIz.focus-visible,._H6L-y>._RTzIz:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._H6L-y>._RTzIz+._mK8rA{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._H6L-y>._RTzIz[data-state=open]+._mK8rA{transform:rotate(-180deg) translateY(50%)}._H6L-y>._RTzIz[aria-disabled=true]{color:#74777a;cursor:not-allowed}._H6L-y>._RTzIz[aria-disabled=true]+._mK8rA{fill:#515559;opacity:.4}._7RZra>[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}._7RZra>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._dexOB{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)}._dexOB ._KSiXz{height:100%;overflow-y:scroll}._dexOB._r6ekj{margin-left:30px;opacity:0}._dexOB._wiBFA{margin-left:-30px}._IAWjR{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%}._IAWjR._lidjL{cursor:unset}._IAWjR ._q8kax{fill:#32363a;margin-right:4px}._IAWjR:focus,._IAWjR:hover:not(._IAWjR._lidjL){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._IAWjR[aria-disabled=true]{cursor:not-allowed;opacity:.65}._IAWjR._XLsdT{padding-right:32px}._IAWjR._XLsdT ._mK8rA{position:absolute;height:100%;right:3px;fill:#515559}._IAWjR._rxmAl{pointer-events:none}._ZINqC{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._ZINqC._rDIRC{padding-top:52px}._xXryv{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._VCdAo{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._VCdAo._wiBFA{opacity:0}._VCdAo._wiBFA>._u9nJa{margin-left:-30px}._VCdAo._r6ekj{opacity:0}._VCdAo._r6ekj>._u9nJa{margin-left:30px}._VCdAo>._u9nJa{transition:margin-left .35s;width:100%}._VCdAo._rxmAl{pointer-events:none}body.keyboard-user ._IAWjR: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,4 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
3
|
+
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
2
4
|
import React__default from 'react';
|
|
3
5
|
import { Trigger } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
|
|
4
6
|
import classNames from 'classnames';
|
|
@@ -17,6 +19,7 @@ import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
|
17
19
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
18
20
|
import ChevronDownIcon from '../../icons/components/ChevronDownIcon.js';
|
|
19
21
|
|
|
22
|
+
const _excluded = ["asChild", "children", "className"];
|
|
20
23
|
const dispatchMouseEvent = (target, eventType) => {
|
|
21
24
|
const event = new MouseEvent(eventType, {
|
|
22
25
|
bubbles: true
|
|
@@ -24,14 +27,13 @@ const dispatchMouseEvent = (target, eventType) => {
|
|
|
24
27
|
target.dispatchEvent(event);
|
|
25
28
|
};
|
|
26
29
|
const AsChildWrapper = _ref => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
isTruncated,
|
|
30
|
-
tooltipContent,
|
|
31
|
-
children
|
|
32
|
-
} = _ref;
|
|
30
|
+
var _context;
|
|
31
|
+
let asChild = _ref.asChild,
|
|
32
|
+
isTruncated = _ref.isTruncated,
|
|
33
|
+
tooltipContent = _ref.tooltipContent,
|
|
34
|
+
children = _ref.children;
|
|
33
35
|
return asChild ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children) : /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
34
|
-
disabled: !isTruncated || !['string', 'number'].
|
|
36
|
+
disabled: !isTruncated || !_includesInstanceProperty(_context = ['string', 'number']).call(_context, typeof tooltipContent),
|
|
35
37
|
content: tooltipContent,
|
|
36
38
|
delayMs: 250
|
|
37
39
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -39,17 +41,14 @@ const AsChildWrapper = _ref => {
|
|
|
39
41
|
}, children));
|
|
40
42
|
};
|
|
41
43
|
const MenuButton = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
|
|
42
|
-
let
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
isDisabled,
|
|
51
|
-
triggerRef
|
|
52
|
-
} = useMenuContext();
|
|
44
|
+
let asChild = _ref2.asChild,
|
|
45
|
+
children = _ref2.children,
|
|
46
|
+
className = _ref2.className,
|
|
47
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
48
|
+
const _useMenuContext = useMenuContext(),
|
|
49
|
+
rootDataTestId = _useMenuContext.dataTestId,
|
|
50
|
+
isDisabled = _useMenuContext.isDisabled,
|
|
51
|
+
triggerRef = _useMenuContext.triggerRef;
|
|
53
52
|
const isTruncated = useIsTruncated(triggerRef);
|
|
54
53
|
const withinSelect = useSelectContext(true) !== null;
|
|
55
54
|
|
|
@@ -3,25 +3,20 @@ import '../../utils/index.js';
|
|
|
3
3
|
import { ChildIndexProvider, useChildIndex } from '../../components/Dropdown/ChildIndexContext/index.js';
|
|
4
4
|
import createContextUtilities from '../../utils/createContextUtilities/createContextUtilities.js';
|
|
5
5
|
|
|
6
|
-
const
|
|
7
|
-
useContext
|
|
8
|
-
Provider
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
useContext: intermediaryUseMenuContext,
|
|
16
|
-
Provider: IntermediaryMenuContextProvider
|
|
17
|
-
} = createContextUtilities();
|
|
6
|
+
const _createContextUtiliti = createContextUtilities(),
|
|
7
|
+
useMenuContext = _createContextUtiliti.useContext,
|
|
8
|
+
MenuContextProvider = _createContextUtiliti.Provider;
|
|
9
|
+
const _createContextUtiliti2 = createContextUtilities({}),
|
|
10
|
+
useItemContext = _createContextUtiliti2.useContext,
|
|
11
|
+
ItemContextProvider = _createContextUtiliti2.Provider;
|
|
12
|
+
const _createContextUtiliti3 = createContextUtilities(),
|
|
13
|
+
intermediaryUseMenuContext = _createContextUtiliti3.useContext,
|
|
14
|
+
IntermediaryMenuContextProvider = _createContextUtiliti3.Provider;
|
|
18
15
|
const PaneContextProvider = _ref => {
|
|
19
|
-
let
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
children
|
|
24
|
-
} = _ref;
|
|
16
|
+
let items = _ref.items,
|
|
17
|
+
setItems = _ref.setItems,
|
|
18
|
+
value = _ref.value,
|
|
19
|
+
children = _ref.children;
|
|
25
20
|
return /*#__PURE__*/React__default.createElement(ChildIndexProvider, {
|
|
26
21
|
items: items,
|
|
27
22
|
setItems: setItems
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
3
|
+
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
2
4
|
import React__default, { useRef, useMemo } from 'react';
|
|
3
5
|
import { Item as Item2 } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
|
|
4
6
|
import classNames from 'classnames';
|
|
@@ -12,38 +14,34 @@ import { conditionalA11yHelpersWrapper, useIsFocusVisible } from '../../componen
|
|
|
12
14
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
13
15
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
14
16
|
|
|
17
|
+
const _excluded = ["isDisabled", "asChild", "children", "className", "onSelect", "label"];
|
|
15
18
|
const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
...rest
|
|
24
|
-
} = _ref;
|
|
19
|
+
let isDisabled = _ref.isDisabled,
|
|
20
|
+
asChild = _ref.asChild,
|
|
21
|
+
children = _ref.children,
|
|
22
|
+
className = _ref.className,
|
|
23
|
+
onSelect = _ref.onSelect,
|
|
24
|
+
label = _ref.label,
|
|
25
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
26
|
const selectContext = useSelectContext(true);
|
|
26
27
|
const withinSelect = selectContext !== null;
|
|
27
28
|
const multiselect = selectContext === null || selectContext === void 0 ? void 0 : selectContext.multiselect;
|
|
28
29
|
const itemRef = useRef(null);
|
|
29
|
-
const
|
|
30
|
-
dataTestId
|
|
31
|
-
childIndex,
|
|
32
|
-
isInteractive,
|
|
33
|
-
closeSubmenu,
|
|
34
|
-
flyoutNode,
|
|
35
|
-
stickyBoxRef,
|
|
36
|
-
focusVirtualBoundary,
|
|
37
|
-
isVirtualized
|
|
38
|
-
maskIsReady
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
virtualIndex
|
|
42
|
-
} = useItemContext();
|
|
30
|
+
const _usePaneContext = usePaneContext(itemRef),
|
|
31
|
+
menuParentDataTestId = _usePaneContext.dataTestId,
|
|
32
|
+
childIndex = _usePaneContext.childIndex,
|
|
33
|
+
isInteractive = _usePaneContext.isInteractive,
|
|
34
|
+
closeSubmenu = _usePaneContext.closeSubmenu,
|
|
35
|
+
flyoutNode = _usePaneContext.flyoutNode,
|
|
36
|
+
stickyBoxRef = _usePaneContext.stickyBoxRef,
|
|
37
|
+
focusVirtualBoundary = _usePaneContext.focusVirtualBoundary,
|
|
38
|
+
paneIsVirtualized = _usePaneContext.isVirtualized,
|
|
39
|
+
maskIsReady = _usePaneContext.maskIsReady;
|
|
40
|
+
const _useItemContext = useItemContext(),
|
|
41
|
+
virtualIndex = _useItemContext.virtualIndex;
|
|
43
42
|
const index = useMemo(() => virtualIndex !== null && virtualIndex !== void 0 ? virtualIndex : childIndex, [childIndex, virtualIndex]);
|
|
44
|
-
const
|
|
45
|
-
isFocusVisible
|
|
46
|
-
} = useIsFocusVisible(true);
|
|
43
|
+
const _useIsFocusVisible = useIsFocusVisible(true),
|
|
44
|
+
isFocusVisible = _useIsFocusVisible.isFocusVisible;
|
|
47
45
|
const dataTestId = getSubDataTestId(menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES$1.MENU_PANE, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_ITEM : DATA_TESTID_SUFFIXES$1.MENU_ITEM), String(index));
|
|
48
46
|
const handleFocus = () => {
|
|
49
47
|
if (itemRef.current && flyoutNode && isFocusVisible) {
|
|
@@ -67,16 +65,17 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
67
65
|
"data-testid": dataTestId,
|
|
68
66
|
ref: mergeRefs(ref, itemRef),
|
|
69
67
|
onKeyDown: e => {
|
|
68
|
+
var _context, _context2, _context3;
|
|
70
69
|
if (!isInteractive || multiselect && e.key === 'Enter') {
|
|
71
70
|
e.preventDefault();
|
|
72
71
|
return;
|
|
73
72
|
}
|
|
74
|
-
if (KEYS.CLOSE_SUBMENU.
|
|
73
|
+
if (_includesInstanceProperty(_context = KEYS.CLOSE_SUBMENU).call(_context, e.key)) {
|
|
75
74
|
closeSubmenu === null || closeSubmenu === void 0 || closeSubmenu(e);
|
|
76
|
-
} else if (paneIsVirtualized && KEYS.NAVIGATE_TOP.
|
|
75
|
+
} else if (paneIsVirtualized && _includesInstanceProperty(_context2 = KEYS.NAVIGATE_TOP).call(_context2, e.key)) {
|
|
77
76
|
e.preventDefault();
|
|
78
77
|
focusVirtualBoundary('top');
|
|
79
|
-
} else if (paneIsVirtualized && KEYS.NAVIIGATE_BOTTOM.
|
|
78
|
+
} else if (paneIsVirtualized && _includesInstanceProperty(_context3 = KEYS.NAVIIGATE_BOTTOM).call(_context3, e.key)) {
|
|
80
79
|
e.preventDefault();
|
|
81
80
|
focusVirtualBoundary('bottom');
|
|
82
81
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
3
|
+
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
2
4
|
import React__default, { useState, useCallback, useRef, useMemo } from 'react';
|
|
3
5
|
import { Portal as Portal2, Content as Content2 } from './../../__node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
|
|
4
6
|
import classNames from 'classnames';
|
|
@@ -27,35 +29,45 @@ import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
|
27
29
|
import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
28
30
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
29
31
|
|
|
32
|
+
const _excluded = ["placement", "children", "isSearchable", "searchValue", "onSearchValueChange", "isSearchFilteringDisabled", "className", "zIndex", "style"],
|
|
33
|
+
_excluded2 = ["id"];
|
|
30
34
|
const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
31
35
|
var _flyoutNode$parentNod, _process$env;
|
|
32
|
-
let
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
isSearchFilteringDisabled = false,
|
|
39
|
-
className,
|
|
40
|
-
zIndex =
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
|
|
36
|
+
let placement = _ref.placement,
|
|
37
|
+
children = _ref.children,
|
|
38
|
+
isSearchable = _ref.isSearchable,
|
|
39
|
+
externalSearchValue = _ref.searchValue,
|
|
40
|
+
onSearchValueChange = _ref.onSearchValueChange,
|
|
41
|
+
_ref$isSearchFilterin = _ref.isSearchFilteringDisabled,
|
|
42
|
+
isSearchFilteringDisabled = _ref$isSearchFilterin === void 0 ? false : _ref$isSearchFilterin,
|
|
43
|
+
className = _ref.className,
|
|
44
|
+
_ref$zIndex = _ref.zIndex,
|
|
45
|
+
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
46
|
+
style = _ref.style,
|
|
47
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
48
|
+
const _useState = useState([]),
|
|
49
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
50
|
+
items = _useState2[0],
|
|
51
|
+
setItems = _useState2[1];
|
|
52
|
+
const _useState3 = useState(null),
|
|
53
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
54
|
+
flyoutNode = _useState4[0],
|
|
55
|
+
setFlyoutNode = _useState4[1];
|
|
46
56
|
const onRefChange = useCallback(node => setFlyoutNode(node), []);
|
|
47
57
|
const stickyBoxRef = useRef(null);
|
|
48
58
|
const selectContext = useSelectContext(true);
|
|
49
59
|
const withinSelect = selectContext !== null;
|
|
50
|
-
const {
|
|
51
|
-
multiselect,
|
|
52
|
-
showSelectedItemsPane
|
|
53
|
-
} = selectContext !== null && selectContext !== void 0 ? selectContext : {};
|
|
60
|
+
const _ref2 = selectContext !== null && selectContext !== void 0 ? selectContext : {},
|
|
61
|
+
multiselect = _ref2.multiselect,
|
|
62
|
+
showSelectedItemsPane = _ref2.showSelectedItemsPane;
|
|
54
63
|
const portalTarget = usePortalTarget();
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
64
|
+
const _useMemo = useMemo(() => {
|
|
65
|
+
var _placement$split, _placement$split2;
|
|
66
|
+
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 : [];
|
|
67
|
+
}, [placement]),
|
|
68
|
+
_useMemo2 = _slicedToArray(_useMemo, 2),
|
|
69
|
+
side = _useMemo2[0],
|
|
70
|
+
align = _useMemo2[1];
|
|
59
71
|
const thisPanesDepth = 1;
|
|
60
72
|
const paneMaxHeight = useMemo(() => {
|
|
61
73
|
let maxHeightString = '';
|
|
@@ -99,45 +111,48 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
99
111
|
const paneBottomPadding = 4;
|
|
100
112
|
const maskContainerId = useId();
|
|
101
113
|
const maskContainer = document.getElementById(maskContainerId);
|
|
102
|
-
const
|
|
114
|
+
const _useState5 = useState(''),
|
|
115
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
116
|
+
transform = _useState6[0],
|
|
117
|
+
setTransform = _useState6[1];
|
|
103
118
|
const target = (_flyoutNode$parentNod = flyoutNode === null || flyoutNode === void 0 ? void 0 : flyoutNode.parentNode) !== null && _flyoutNode$parentNod !== void 0 ? _flyoutNode$parentNod : undefined;
|
|
104
|
-
const
|
|
105
|
-
dataTestId
|
|
106
|
-
openPaneDepth,
|
|
107
|
-
maskHeight,
|
|
108
|
-
open,
|
|
109
|
-
triggerRef,
|
|
110
|
-
elementRefToFocusOnClose,
|
|
111
|
-
searchBarConfigs,
|
|
112
|
-
maskWidth,
|
|
113
|
-
isVirtualizationDisabled
|
|
114
|
-
} = useMenuContext();
|
|
119
|
+
const _useMenuContext = useMenuContext(),
|
|
120
|
+
rootDataTestId = _useMenuContext.dataTestId,
|
|
121
|
+
openPaneDepth = _useMenuContext.openPaneDepth,
|
|
122
|
+
maskHeight = _useMenuContext.maskHeight,
|
|
123
|
+
open = _useMenuContext.open,
|
|
124
|
+
triggerRef = _useMenuContext.triggerRef,
|
|
125
|
+
elementRefToFocusOnClose = _useMenuContext.elementRefToFocusOnClose,
|
|
126
|
+
searchBarConfigs = _useMenuContext.searchBarConfigs,
|
|
127
|
+
maskWidth = _useMenuContext.maskWidth,
|
|
128
|
+
isVirtualizationDisabled = _useMenuContext.isVirtualizationDisabled;
|
|
115
129
|
const isVirtualized = useIsVirtualized(children, isVirtualizationDisabled);
|
|
116
|
-
const
|
|
130
|
+
const _useState7 = useState(typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test'),
|
|
131
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
132
|
+
isVirtualizationReady = _useState8[0],
|
|
133
|
+
setIsVirtualizationReady = _useState8[1];
|
|
117
134
|
const animatedLeft = useMemo(() => openPaneDepth > thisPanesDepth, [openPaneDepth]);
|
|
118
135
|
const dataTestId = getSubDataTestId(rootDataTestId, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES$1.MENU_PANE);
|
|
119
|
-
const {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
});
|
|
136
|
+
const _usePaneSearch = usePaneSearch({
|
|
137
|
+
isSearchable,
|
|
138
|
+
externalSearchValue,
|
|
139
|
+
onSearchValueChange,
|
|
140
|
+
items,
|
|
141
|
+
animatedLeft,
|
|
142
|
+
animatedRight: false,
|
|
143
|
+
menuParentDataTestId: dataTestId,
|
|
144
|
+
id: useId(),
|
|
145
|
+
flyoutNode,
|
|
146
|
+
children,
|
|
147
|
+
isSearchFilteringDisabled,
|
|
148
|
+
isVirtualized
|
|
149
|
+
}),
|
|
150
|
+
noSearchResultsNode = _usePaneSearch.noSearchResultsNode,
|
|
151
|
+
onInteractOutside = _usePaneSearch.onInteractOutside,
|
|
152
|
+
filteredChildren = _usePaneSearch.filteredChildren;
|
|
137
153
|
const focusVirtualBoundary = useFocusVirtualBoundary(items);
|
|
138
|
-
const
|
|
139
|
-
isFocusVisible
|
|
140
|
-
} = useIsFocusVisible();
|
|
154
|
+
const _useIsFocusVisible = useIsFocusVisible(),
|
|
155
|
+
isFocusVisible = _useIsFocusVisible.isFocusVisible;
|
|
141
156
|
const menuSearchInputRef = useRef(null);
|
|
142
157
|
const maskIsReady = useMaskDimensions(flyoutNode, animatedLeft, thisPanesDepth, children, isVirtualized, isVirtualizationReady);
|
|
143
158
|
useDidUpdate(() => {
|
|
@@ -254,11 +269,9 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
254
269
|
zIndex: zIndex + openPaneDepth,
|
|
255
270
|
width: flyoutNode === null || flyoutNode === void 0 ? void 0 : flyoutNode.clientWidth
|
|
256
271
|
}
|
|
257
|
-
}, searchBarConfigs.length ? searchBarConfigs.map(
|
|
258
|
-
let
|
|
259
|
-
|
|
260
|
-
...config
|
|
261
|
-
} = _ref2;
|
|
272
|
+
}, searchBarConfigs.length ? searchBarConfigs.map(_ref3 => {
|
|
273
|
+
let id = _ref3.id,
|
|
274
|
+
config = _objectWithoutProperties(_ref3, _excluded2);
|
|
262
275
|
return /*#__PURE__*/React__default.createElement(MenuSearch, _extends({
|
|
263
276
|
key: id
|
|
264
277
|
}, config, {
|