@vibe/core 3.50.1 → 3.50.3-alpha-ee0bf.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/dist/components/BaseList/BaseList.types.d.ts +4 -0
- package/dist/components/DropdownNew/Dropdown.types.d.ts +32 -0
- package/dist/components/DropdownNew/components/DropdownBase/DropdownBase.d.ts +7 -0
- package/dist/components/DropdownNew/components/DropdownPopup/DropdownPopup.d.ts +3 -0
- package/dist/components/DropdownNew/components/DropdownWrapperUI.d.ts +9 -0
- package/dist/components/DropdownNew/components/Menu/Menu.d.ts +4 -0
- package/dist/components/DropdownNew/components/{MultiSelectedValues.d.ts → MultiSelectedValues/MultiSelectedValues.d.ts} +1 -1
- package/dist/components/DropdownNew/components/Trigger/Trigger.d.ts +3 -0
- package/dist/components/DropdownNew/context/DropdownContext.d.ts +57 -0
- package/dist/components/DropdownNew/context/DropdownContext.types.d.ts +31 -0
- package/dist/components/DropdownNew/hooks/useDropdownCombobox.d.ts +4 -1
- package/dist/components/DropdownNew/hooks/useDropdownMultiCombobox.d.ts +4 -1
- package/dist/components/DropdownNew/hooks/useDropdownMultiSelect.d.ts +22 -0
- package/dist/components/DropdownNew/hooks/useDropdownSelect.d.ts +19 -0
- package/dist/components/DropdownNew/modes/DropdownComboboxController.d.ts +5 -0
- package/dist/components/DropdownNew/modes/DropdownMultiComboboxController.d.ts +5 -0
- package/dist/components/DropdownNew/modes/DropdownMultiSelectController.d.ts +5 -0
- package/dist/components/DropdownNew/modes/DropdownSelectController.d.ts +5 -0
- package/dist/components/DropdownNew/utils/dropdown-modifiers.d.ts +2 -0
- package/dist/mocked_classnames/components/BaseList/BaseList.types.d.ts +4 -0
- package/dist/mocked_classnames/components/DropdownNew/Dropdown.types.d.ts +32 -0
- package/dist/mocked_classnames/components/DropdownNew/components/DropdownBase/DropdownBase.d.ts +7 -0
- package/dist/mocked_classnames/components/DropdownNew/components/DropdownPopup/DropdownPopup.d.ts +3 -0
- package/dist/mocked_classnames/components/DropdownNew/components/DropdownWrapperUI.d.ts +9 -0
- package/dist/mocked_classnames/components/DropdownNew/components/Menu/Menu.d.ts +4 -0
- package/dist/mocked_classnames/components/DropdownNew/components/{MultiSelectedValues.d.ts → MultiSelectedValues/MultiSelectedValues.d.ts} +1 -1
- package/dist/mocked_classnames/components/DropdownNew/components/Trigger/Trigger.d.ts +3 -0
- package/dist/mocked_classnames/components/DropdownNew/context/DropdownContext.d.ts +57 -0
- package/dist/mocked_classnames/components/DropdownNew/context/DropdownContext.types.d.ts +31 -0
- package/dist/mocked_classnames/components/DropdownNew/hooks/useDropdownCombobox.d.ts +4 -1
- package/dist/mocked_classnames/components/DropdownNew/hooks/useDropdownMultiCombobox.d.ts +4 -1
- package/dist/mocked_classnames/components/DropdownNew/hooks/useDropdownMultiSelect.d.ts +22 -0
- package/dist/mocked_classnames/components/DropdownNew/hooks/useDropdownSelect.d.ts +19 -0
- package/dist/mocked_classnames/components/DropdownNew/modes/DropdownComboboxController.d.ts +5 -0
- package/dist/mocked_classnames/components/DropdownNew/modes/DropdownMultiComboboxController.d.ts +5 -0
- package/dist/mocked_classnames/components/DropdownNew/modes/DropdownMultiSelectController.d.ts +5 -0
- package/dist/mocked_classnames/components/DropdownNew/modes/DropdownSelectController.d.ts +5 -0
- package/dist/mocked_classnames/components/DropdownNew/utils/dropdown-modifiers.d.ts +2 -0
- package/dist/mocked_classnames/src/components/Accordion/Accordion/Accordion.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AlertBanner/AlertBanner.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AlertBanner/AlertBannerButton/AlertBannerButton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AlertBanner/AlertBannerLink/AlertBannerLink.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AlertBanner/AlertBannerText/AlertBannerText.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AttentionBox/AttentionBox.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AttentionBox/AttentionBoxLink/AttentionBoxLink.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Avatar/Avatar.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Avatar/AvatarBadge.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Avatar/AvatarContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroup.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounter.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Badge/Badge.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Badge/Indicator/Indicator.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/BaseInput/BaseInput.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Box/Box.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbContent/BreadcrumbContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbItem.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbMenu/BreadcrumbsMenu.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/BreadcrumbsBar/BreadcrumbsBar.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Button/Button.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ButtonGroup/ButtonGroup.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Checkbox/Checkbox.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Chips/Chips.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Clickable/Clickable.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ColorPicker/ColorPicker.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/Combobox.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/ComboboxHelpers/ComboboxHelpers.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/components/ComboboxCategory/ComboboxCategory.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/components/ComboboxItems/ComboboxItems.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/components/ComboboxOption/ComboboxOption.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/components/StickyCategoryHeader/StickyCategoryHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Counter/Counter.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/DatePicker/DateNavigationItem/DateNavigationItem.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/DatePicker/DatePicker.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/DatePicker/DatePickerHeader/DatePickerHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/DatePicker/YearPicker/YearPicker.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/DatePicker/external_datepicker.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Dialog/Dialog.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Dialog/DialogContent/DialogContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/DialogContentContainer/DialogContentContainer.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Divider/Divider.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Dropdown/Dropdown.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Dropdown/components/ChildrenContent/ChildrenContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Dropdown/components/MultiValueContainer/MultiValueContainer.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Dropdown/components/menu/menu.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Dropdown/components/option/option.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Dropdown/components/singleValue/singleValue.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/EditableHeading/EditableHeading.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/EditableText/EditableText.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/EditableTypography/EditableTypography.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/EmptyState/EmptyState.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ExpandCollapse/ExpandCollapse.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/FieldLabel/FieldLabel.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Flex/Flex.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/FormattedNumber/FormattedNumber.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Heading/Heading.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/HiddenText/HiddenText.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Icon/Icon.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/IconButton/IconButton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Label/Label.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Label/LabelCelebrationAnimation.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/LegacyModal/LegacyModal.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/LegacyModal/LegacyModalContent/LegacyModalContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/LegacyModal/LegacyModalFooter/LegacyModalFooter.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/LegacyModal/LegacyModalHeader/LegacyModalHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Link/Link.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/List/List.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/List/VirtualizedListItems/VirtualizedListItems.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ListItem/ListItem.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ListItemAvatar/ListItemAvatar.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ListItemIcon/ListItemIcon.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ListTitle/ListTitle.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Loader/Loader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Menu/Menu/Menu.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Menu/MenuDivider/MenuDivider.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Menu/MenuItem/MenuItem.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Menu/MenuItem/components/BaseMenuItem/BaseMenuItem.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Menu/MenuItem/components/MenuItemIcon/MenuItemIcon.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Menu/MenuItem/components/MenuItemSubMenuIcon/MenuItemSubMenuIcon.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Menu/MenuItemButton/MenuItemButton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Menu/MenuTitle/MenuTitle.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/MenuButton/MenuButton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/Modal/Modal.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/ModalHeader/ModalHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/ModalMedia/ModalMedia.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/ModalTopActions/ModalTopActions.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/footers/ModalFooter/ModalFooter.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/footers/ModalFooterBase/ModalFooterBase.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/footers/ModalFooterWizard/ModalFooterWizard.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/layouts/ModalBasicLayout/ModalBasicLayout.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/layouts/ModalFooterShadow.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/layouts/ModalLayoutScrollableContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/layouts/ModalMediaLayout/ModalMediaLayout.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/layouts/ModalSideBySideLayout/ModalSideBySideLayout.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/MultiStepIndicator/MultiStepIndicator.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ProgressBars/LinearProgressBar/Bar/Bar.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ProgressBars/LinearProgressBar/LinearProgressBar.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ProgressBars/PercentageLabel/PercentageLabel.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/RadioButton/RadioButton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Search/Search.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Skeleton/Skeleton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/SlideTransition/SlideTransition.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Slider/SelectionIndicator.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Slider/Slider.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderBase.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderFilledTrack.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderRail.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderThumb.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Slider/SliderBase/SliderTrack.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Slider/SliderInfix.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/SplitButton/SplitButton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Steps/Steps.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Steps/StepsCommand.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Steps/StepsDot.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Steps/StepsGalleryHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Steps/StepsHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Steps/StepsNumbersHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Switch/Switch.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/Table/Table.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableBody/TableBody.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableCell/TableCell.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableCellSkeleton/TableCellSkeleton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableContainer/TableContainer.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableHeader/TableHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableHeaderCell/TableHeaderCell.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableRow/TableRow.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableRowMenu/TableRowMenu.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableVirtualizedBody/TableVirtualizedBody.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tabs/Tab/Tab.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tabs/TabList/TabList.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tabs/TabPanel/TabPanel.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tabs/TabPanels/TabPanels.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Text/Text.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/TextArea/TextArea.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/TextField/TextField.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/TextWithHighlight/TextWithHighlight.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tipseen/Tipseen.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tipseen/TipseenBasicContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tipseen/TipseenContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tipseen/TipseenImage.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tipseen/TipseenMedia/TipseenMedia.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tipseen/TipseenTitle.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tipseen/TipseenWizard.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Toast/Toast.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Toast/ToastLink/ToastLink.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Toggle/MockToggle.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Toggle/Toggle.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Toggle/ToggleText.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Tooltip/Tooltip.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/TransitionView/TransitionView.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Typography/Typography.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/VirtualizedGrid/VirtualizedGrid.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/VirtualizedList/VirtualizedList.module.scss.js +1 -1
- package/dist/mocked_classnames/style/dist/index.min.css.js +1 -1
- package/dist/src/components/Accordion/Accordion/Accordion.module.scss.js +1 -1
- package/dist/src/components/AlertBanner/AlertBanner.module.scss.js +1 -1
- package/dist/src/components/AlertBanner/AlertBannerButton/AlertBannerButton.module.scss.js +1 -1
- package/dist/src/components/AlertBanner/AlertBannerLink/AlertBannerLink.module.scss.js +1 -1
- package/dist/src/components/AlertBanner/AlertBannerText/AlertBannerText.module.scss.js +1 -1
- package/dist/src/components/AttentionBox/AttentionBox.module.scss.js +1 -1
- package/dist/src/components/AttentionBox/AttentionBoxLink/AttentionBoxLink.module.scss.js +1 -1
- package/dist/src/components/Avatar/Avatar.module.scss.js +1 -1
- package/dist/src/components/Avatar/AvatarBadge.module.scss.js +1 -1
- package/dist/src/components/Avatar/AvatarContent.module.scss.js +1 -1
- package/dist/src/components/AvatarGroup/AvatarGroup.module.scss.js +1 -1
- package/dist/src/components/AvatarGroup/AvatarGroupCounter.module.scss.js +1 -1
- package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js +1 -1
- package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js +1 -1
- package/dist/src/components/Badge/Badge.module.scss.js +1 -1
- package/dist/src/components/Badge/Indicator/Indicator.module.scss.js +1 -1
- package/dist/src/components/BaseInput/BaseInput.module.scss.js +1 -1
- package/dist/src/components/Box/Box.module.scss.js +1 -1
- package/dist/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbContent/BreadcrumbContent.module.scss.js +1 -1
- package/dist/src/components/BreadcrumbsBar/BreadcrumbItem/BreadcrumbItem.module.scss.js +1 -1
- package/dist/src/components/BreadcrumbsBar/BreadcrumbMenu/BreadcrumbsMenu.module.scss.js +1 -1
- package/dist/src/components/BreadcrumbsBar/BreadcrumbsBar.module.scss.js +1 -1
- package/dist/src/components/Button/Button.module.scss.js +1 -1
- package/dist/src/components/ButtonGroup/ButtonGroup.module.scss.js +1 -1
- package/dist/src/components/Checkbox/Checkbox.module.scss.js +1 -1
- package/dist/src/components/Chips/Chips.module.scss.js +1 -1
- package/dist/src/components/Clickable/Clickable.module.scss.js +1 -1
- package/dist/src/components/ColorPicker/ColorPicker.module.scss.js +1 -1
- package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerClearButton.module.scss.js +1 -1
- package/dist/src/components/ColorPicker/components/ColorPickerContent/ColorPickerColorsGrid.module.scss.js +1 -1
- package/dist/src/components/ColorPicker/components/ColorPickerItemComponent/ColorPickerItemComponent.module.scss.js +1 -1
- package/dist/src/components/Combobox/Combobox.module.scss.js +1 -1
- package/dist/src/components/Combobox/ComboboxHelpers/ComboboxHelpers.module.scss.js +1 -1
- package/dist/src/components/Combobox/components/ComboboxCategory/ComboboxCategory.module.scss.js +1 -1
- package/dist/src/components/Combobox/components/ComboboxItems/ComboboxItems.module.scss.js +1 -1
- package/dist/src/components/Combobox/components/ComboboxOption/ComboboxOption.module.scss.js +1 -1
- package/dist/src/components/Combobox/components/StickyCategoryHeader/StickyCategoryHeader.module.scss.js +1 -1
- package/dist/src/components/Counter/Counter.module.scss.js +1 -1
- package/dist/src/components/DatePicker/DateNavigationItem/DateNavigationItem.module.scss.js +1 -1
- package/dist/src/components/DatePicker/DatePicker.module.scss.js +1 -1
- package/dist/src/components/DatePicker/DatePickerHeader/DatePickerHeader.module.scss.js +1 -1
- package/dist/src/components/DatePicker/YearPicker/YearPicker.module.scss.js +1 -1
- package/dist/src/components/DatePicker/external_datepicker.scss.js +1 -1
- package/dist/src/components/Dialog/Dialog.module.scss.js +1 -1
- package/dist/src/components/Dialog/DialogContent/DialogContent.module.scss.js +1 -1
- package/dist/src/components/DialogContentContainer/DialogContentContainer.module.scss.js +1 -1
- package/dist/src/components/Divider/Divider.module.scss.js +1 -1
- package/dist/src/components/Dropdown/Dropdown.module.scss.js +1 -1
- package/dist/src/components/Dropdown/components/ChildrenContent/ChildrenContent.module.scss.js +1 -1
- package/dist/src/components/Dropdown/components/MultiValueContainer/MultiValueContainer.module.scss.js +1 -1
- package/dist/src/components/Dropdown/components/menu/menu.module.scss.js +1 -1
- package/dist/src/components/Dropdown/components/option/option.module.scss.js +1 -1
- package/dist/src/components/Dropdown/components/singleValue/singleValue.module.scss.js +1 -1
- package/dist/src/components/EditableHeading/EditableHeading.module.scss.js +1 -1
- package/dist/src/components/EditableText/EditableText.module.scss.js +1 -1
- package/dist/src/components/EditableTypography/EditableTypography.module.scss.js +1 -1
- package/dist/src/components/EmptyState/EmptyState.module.scss.js +1 -1
- package/dist/src/components/ExpandCollapse/ExpandCollapse.module.scss.js +1 -1
- package/dist/src/components/FieldLabel/FieldLabel.module.scss.js +1 -1
- package/dist/src/components/Flex/Flex.module.scss.js +1 -1
- package/dist/src/components/FormattedNumber/FormattedNumber.module.scss.js +1 -1
- package/dist/src/components/Heading/Heading.module.scss.js +1 -1
- package/dist/src/components/HiddenText/HiddenText.module.scss.js +1 -1
- package/dist/src/components/Icon/Icon.module.scss.js +1 -1
- package/dist/src/components/IconButton/IconButton.module.scss.js +1 -1
- package/dist/src/components/Label/Label.module.scss.js +1 -1
- package/dist/src/components/Label/LabelCelebrationAnimation.module.scss.js +1 -1
- package/dist/src/components/LegacyModal/LegacyModal.module.scss.js +1 -1
- package/dist/src/components/LegacyModal/LegacyModalContent/LegacyModalContent.module.scss.js +1 -1
- package/dist/src/components/LegacyModal/LegacyModalFooter/LegacyModalFooter.module.scss.js +1 -1
- package/dist/src/components/LegacyModal/LegacyModalHeader/LegacyModalHeader.module.scss.js +1 -1
- package/dist/src/components/Link/Link.module.scss.js +1 -1
- package/dist/src/components/List/List.module.scss.js +1 -1
- package/dist/src/components/List/VirtualizedListItems/VirtualizedListItems.module.scss.js +1 -1
- package/dist/src/components/ListItem/ListItem.module.scss.js +1 -1
- package/dist/src/components/ListItemAvatar/ListItemAvatar.module.scss.js +1 -1
- package/dist/src/components/ListItemIcon/ListItemIcon.module.scss.js +1 -1
- package/dist/src/components/ListTitle/ListTitle.module.scss.js +1 -1
- package/dist/src/components/Loader/Loader.module.scss.js +1 -1
- package/dist/src/components/Menu/Menu/Menu.module.scss.js +1 -1
- package/dist/src/components/Menu/MenuDivider/MenuDivider.module.scss.js +1 -1
- package/dist/src/components/Menu/MenuItem/MenuItem.module.scss.js +1 -1
- package/dist/src/components/Menu/MenuItem/components/BaseMenuItem/BaseMenuItem.module.scss.js +1 -1
- package/dist/src/components/Menu/MenuItem/components/MenuItemIcon/MenuItemIcon.module.scss.js +1 -1
- package/dist/src/components/Menu/MenuItem/components/MenuItemSubMenuIcon/MenuItemSubMenuIcon.module.scss.js +1 -1
- package/dist/src/components/Menu/MenuItemButton/MenuItemButton.module.scss.js +1 -1
- package/dist/src/components/Menu/MenuTitle/MenuTitle.module.scss.js +1 -1
- package/dist/src/components/MenuButton/MenuButton.module.scss.js +1 -1
- package/dist/src/components/Modal/Modal/Modal.module.scss.js +1 -1
- package/dist/src/components/Modal/ModalHeader/ModalHeader.module.scss.js +1 -1
- package/dist/src/components/Modal/ModalMedia/ModalMedia.module.scss.js +1 -1
- package/dist/src/components/Modal/ModalTopActions/ModalTopActions.module.scss.js +1 -1
- package/dist/src/components/Modal/footers/ModalFooter/ModalFooter.module.scss.js +1 -1
- package/dist/src/components/Modal/footers/ModalFooterBase/ModalFooterBase.module.scss.js +1 -1
- package/dist/src/components/Modal/footers/ModalFooterWizard/ModalFooterWizard.module.scss.js +1 -1
- package/dist/src/components/Modal/layouts/ModalBasicLayout/ModalBasicLayout.module.scss.js +1 -1
- package/dist/src/components/Modal/layouts/ModalFooterShadow.module.scss.js +1 -1
- package/dist/src/components/Modal/layouts/ModalLayoutScrollableContent.module.scss.js +1 -1
- package/dist/src/components/Modal/layouts/ModalMediaLayout/ModalMediaLayout.module.scss.js +1 -1
- package/dist/src/components/Modal/layouts/ModalSideBySideLayout/ModalSideBySideLayout.module.scss.js +1 -1
- package/dist/src/components/MultiStepIndicator/MultiStepIndicator.module.scss.js +1 -1
- package/dist/src/components/MultiStepIndicator/components/StepIndicator/StepIndicator.module.scss.js +1 -1
- package/dist/src/components/ProgressBars/LinearProgressBar/Bar/Bar.module.scss.js +1 -1
- package/dist/src/components/ProgressBars/LinearProgressBar/LinearProgressBar.module.scss.js +1 -1
- package/dist/src/components/ProgressBars/PercentageLabel/PercentageLabel.module.scss.js +1 -1
- package/dist/src/components/RadioButton/RadioButton.module.scss.js +1 -1
- package/dist/src/components/Search/Search.module.scss.js +1 -1
- package/dist/src/components/Skeleton/Skeleton.module.scss.js +1 -1
- package/dist/src/components/SlideTransition/SlideTransition.module.scss.js +1 -1
- package/dist/src/components/Slider/SelectionIndicator.module.scss.js +1 -1
- package/dist/src/components/Slider/Slider.module.scss.js +1 -1
- package/dist/src/components/Slider/SliderBase/SliderBase.module.scss.js +1 -1
- package/dist/src/components/Slider/SliderBase/SliderFilledTrack.module.scss.js +1 -1
- package/dist/src/components/Slider/SliderBase/SliderRail.module.scss.js +1 -1
- package/dist/src/components/Slider/SliderBase/SliderThumb.module.scss.js +1 -1
- package/dist/src/components/Slider/SliderBase/SliderTrack.module.scss.js +1 -1
- package/dist/src/components/Slider/SliderInfix.module.scss.js +1 -1
- package/dist/src/components/SplitButton/SplitButton.module.scss.js +1 -1
- package/dist/src/components/Steps/Steps.module.scss.js +1 -1
- package/dist/src/components/Steps/StepsCommand.module.scss.js +1 -1
- package/dist/src/components/Steps/StepsDot.module.scss.js +1 -1
- package/dist/src/components/Steps/StepsGalleryHeader.module.scss.js +1 -1
- package/dist/src/components/Steps/StepsHeader.module.scss.js +1 -1
- package/dist/src/components/Steps/StepsNumbersHeader.module.scss.js +1 -1
- package/dist/src/components/Switch/Switch.module.scss.js +1 -1
- package/dist/src/components/Table/Table/Table.module.scss.js +1 -1
- package/dist/src/components/Table/TableBody/TableBody.module.scss.js +1 -1
- package/dist/src/components/Table/TableCell/TableCell.module.scss.js +1 -1
- package/dist/src/components/Table/TableCellSkeleton/TableCellSkeleton.module.scss.js +1 -1
- package/dist/src/components/Table/TableContainer/TableContainer.module.scss.js +1 -1
- package/dist/src/components/Table/TableHeader/TableHeader.module.scss.js +1 -1
- package/dist/src/components/Table/TableHeaderCell/TableHeaderCell.module.scss.js +1 -1
- package/dist/src/components/Table/TableRow/TableRow.module.scss.js +1 -1
- package/dist/src/components/Table/TableRowMenu/TableRowMenu.module.scss.js +1 -1
- package/dist/src/components/Table/TableVirtualizedBody/TableVirtualizedBody.module.scss.js +1 -1
- package/dist/src/components/Tabs/Tab/Tab.module.scss.js +1 -1
- package/dist/src/components/Tabs/TabList/TabList.module.scss.js +1 -1
- package/dist/src/components/Tabs/TabPanel/TabPanel.module.scss.js +1 -1
- package/dist/src/components/Tabs/TabPanels/TabPanels.module.scss.js +1 -1
- package/dist/src/components/Text/Text.module.scss.js +1 -1
- package/dist/src/components/TextArea/TextArea.module.scss.js +1 -1
- package/dist/src/components/TextField/TextField.module.scss.js +1 -1
- package/dist/src/components/TextWithHighlight/TextWithHighlight.module.scss.js +1 -1
- package/dist/src/components/Tipseen/Tipseen.module.scss.js +1 -1
- package/dist/src/components/Tipseen/TipseenBasicContent.module.scss.js +1 -1
- package/dist/src/components/Tipseen/TipseenContent.module.scss.js +1 -1
- package/dist/src/components/Tipseen/TipseenImage.module.scss.js +1 -1
- package/dist/src/components/Tipseen/TipseenMedia/TipseenMedia.module.scss.js +1 -1
- package/dist/src/components/Tipseen/TipseenTitle.module.scss.js +1 -1
- package/dist/src/components/Tipseen/TipseenWizard.module.scss.js +1 -1
- package/dist/src/components/Toast/Toast.module.scss.js +1 -1
- package/dist/src/components/Toast/ToastLink/ToastLink.module.scss.js +1 -1
- package/dist/src/components/Toggle/MockToggle.module.scss.js +1 -1
- package/dist/src/components/Toggle/Toggle.module.scss.js +1 -1
- package/dist/src/components/Toggle/ToggleText.module.scss.js +1 -1
- package/dist/src/components/Tooltip/Tooltip.module.scss.js +1 -1
- package/dist/src/components/TransitionView/TransitionView.module.scss.js +1 -1
- package/dist/src/components/Typography/Typography.module.scss.js +1 -1
- package/dist/src/components/VirtualizedGrid/VirtualizedGrid.module.scss.js +1 -1
- package/dist/src/components/VirtualizedList/VirtualizedList.module.scss.js +1 -1
- package/dist/style/dist/index.min.css.js +1 -1
- package/package.json +3 -3
|
@@ -14,6 +14,10 @@ export interface BaseListProps<Item = Record<string, unknown>> extends React.HTM
|
|
|
14
14
|
* The index of the highlighted item in the list.
|
|
15
15
|
*/
|
|
16
16
|
highlightedIndex?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The ARIA label for the menu.
|
|
19
|
+
*/
|
|
20
|
+
menuAriaLabel?: string;
|
|
17
21
|
/**
|
|
18
22
|
* Function to get props for the menu container.
|
|
19
23
|
*/
|
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { ListGroup } from "../BaseList";
|
|
3
3
|
import { VibeComponentProps } from "../../types";
|
|
4
4
|
import { BaseListItemData } from "../BaseListItem";
|
|
5
|
+
import { TooltipProps } from "../Tooltip/Tooltip";
|
|
5
6
|
export type DropdownGroupOption<Item = Record<string, unknown>> = ListGroup<Item>[] | BaseListItemData<Item>[];
|
|
6
7
|
interface MultiSelectSpecifics<Item extends BaseListItemData<Record<string, unknown>>> {
|
|
7
8
|
/**
|
|
@@ -17,6 +18,10 @@ interface MultiSelectSpecifics<Item extends BaseListItemData<Record<string, unkn
|
|
|
17
18
|
* The function to call to render the selected value on single select mode.
|
|
18
19
|
*/
|
|
19
20
|
valueRenderer?: never;
|
|
21
|
+
/**
|
|
22
|
+
* The default selected values for multi-select.
|
|
23
|
+
*/
|
|
24
|
+
defaultValue?: Item[];
|
|
20
25
|
}
|
|
21
26
|
interface SingleSelectSpecifics<Item extends BaseListItemData<Record<string, unknown>>> {
|
|
22
27
|
/**
|
|
@@ -35,12 +40,20 @@ interface SingleSelectSpecifics<Item extends BaseListItemData<Record<string, unk
|
|
|
35
40
|
* The function to call to render the selected value on single select mode.
|
|
36
41
|
*/
|
|
37
42
|
valueRenderer?: (option: BaseListItemData<Item>) => React.ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* The default selected value for single-select.
|
|
45
|
+
*/
|
|
46
|
+
defaultValue?: Item;
|
|
38
47
|
}
|
|
39
48
|
export type BaseDropdownProps<Item extends BaseListItemData<Record<string, unknown>>> = VibeComponentProps & {
|
|
40
49
|
/**
|
|
41
50
|
* The list of options available in the list.
|
|
42
51
|
*/
|
|
43
52
|
options: DropdownGroupOption<Item>;
|
|
53
|
+
/**
|
|
54
|
+
* Props to be passed to the Tooltip component that wraps the dropdown.
|
|
55
|
+
*/
|
|
56
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
44
57
|
/**
|
|
45
58
|
* If true, displays dividers between grouped options.
|
|
46
59
|
*/
|
|
@@ -97,6 +110,22 @@ export type BaseDropdownProps<Item extends BaseListItemData<Record<string, unkno
|
|
|
97
110
|
* The label to display above the dropdown.
|
|
98
111
|
*/
|
|
99
112
|
label?: string;
|
|
113
|
+
/**
|
|
114
|
+
* The ARIA label for the dropdown.
|
|
115
|
+
*/
|
|
116
|
+
ariaLabel?: string;
|
|
117
|
+
/**
|
|
118
|
+
* The ARIA label for the dropdown input.
|
|
119
|
+
*/
|
|
120
|
+
inputAriaLabel?: string;
|
|
121
|
+
/**
|
|
122
|
+
* The ARIA label for the menu container.
|
|
123
|
+
*/
|
|
124
|
+
menuAriaLabel?: string;
|
|
125
|
+
/**
|
|
126
|
+
* The current value of the input field.
|
|
127
|
+
*/
|
|
128
|
+
inputValue?: string;
|
|
100
129
|
/**
|
|
101
130
|
* The maximum height of the dropdown menu.
|
|
102
131
|
*/
|
|
@@ -169,4 +198,7 @@ export type BaseDropdownProps<Item extends BaseListItemData<Record<string, unkno
|
|
|
169
198
|
} & (MultiSelectSpecifics<Item> | SingleSelectSpecifics<Item>);
|
|
170
199
|
export type DropdownSizes = "small" | "medium" | "large";
|
|
171
200
|
export type DropdownDirection = "ltr" | "rtl" | "auto";
|
|
201
|
+
export type DropdownControllerProps<Item extends BaseListItemData<Record<string, unknown>>> = BaseDropdownProps<Item> & {
|
|
202
|
+
dropdownRef: React.Ref<HTMLDivElement>;
|
|
203
|
+
};
|
|
172
204
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DropdownContextProps } from "../context/DropdownContext.types";
|
|
3
|
+
import { BaseListItemData } from "../../BaseListItem";
|
|
4
|
+
interface DropdownWrapperUIProps<Item extends BaseListItemData<Record<string, unknown>>> {
|
|
5
|
+
contextValue: DropdownContextProps<Item>;
|
|
6
|
+
dropdownRef: React.Ref<HTMLDivElement>;
|
|
7
|
+
}
|
|
8
|
+
declare const DropdownWrapperUI: <Item extends BaseListItemData<Record<string, unknown>>>(props: DropdownWrapperUIProps<Item>) => React.JSX.Element;
|
|
9
|
+
export default DropdownWrapperUI;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ListGroup } from "../../BaseList";
|
|
3
|
+
import { BaseListItemData } from "../../BaseListItem";
|
|
4
|
+
import { BaseDropdownProps, DropdownSizes } from "../Dropdown.types";
|
|
5
|
+
import { DropdownContextProps } from "./DropdownContext.types";
|
|
6
|
+
type PropGetter = (options?: any) => Record<string, any>;
|
|
7
|
+
type ItemPropGetter<Item> = (options: {
|
|
8
|
+
item: Item;
|
|
9
|
+
index: number;
|
|
10
|
+
}) => Record<string, any>;
|
|
11
|
+
export interface DropdownContextValue<Item extends BaseListItemData<Record<string, unknown>> = any> {
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
inputValue: string | null;
|
|
14
|
+
highlightedIndex: number | null;
|
|
15
|
+
selectedItem: Item | null | undefined;
|
|
16
|
+
selectedItems: Item[];
|
|
17
|
+
filteredOptions: ListGroup<Item>[];
|
|
18
|
+
getToggleButtonProps: PropGetter;
|
|
19
|
+
getLabelProps: PropGetter;
|
|
20
|
+
getMenuProps: PropGetter;
|
|
21
|
+
getInputProps: PropGetter;
|
|
22
|
+
getItemProps: ItemPropGetter<Item>;
|
|
23
|
+
reset: () => void;
|
|
24
|
+
onClear?: () => void;
|
|
25
|
+
onOptionSelect?: (option: Item) => void;
|
|
26
|
+
onOptionRemove?: (option: Item) => void;
|
|
27
|
+
addSelectedItem?: (item: Item) => void;
|
|
28
|
+
removeSelectedItem?: (item: Item) => void;
|
|
29
|
+
setSelectedItems?: (items: Item[]) => void;
|
|
30
|
+
searchable?: boolean;
|
|
31
|
+
multi?: boolean;
|
|
32
|
+
multiline?: boolean;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
readOnly?: boolean;
|
|
35
|
+
size?: DropdownSizes;
|
|
36
|
+
optionRenderer?: BaseDropdownProps<Item>["optionRenderer"];
|
|
37
|
+
valueRenderer?: BaseDropdownProps<Item>["valueRenderer"];
|
|
38
|
+
noOptionsMessage?: BaseDropdownProps<Item>["noOptionsMessage"];
|
|
39
|
+
placeholder?: BaseDropdownProps<Item>["placeholder"];
|
|
40
|
+
withGroupDivider?: BaseDropdownProps<Item>["withGroupDivider"];
|
|
41
|
+
stickyGroupTitle?: BaseDropdownProps<Item>["stickyGroupTitle"];
|
|
42
|
+
maxMenuHeight?: BaseDropdownProps<Item>["maxMenuHeight"];
|
|
43
|
+
clearable?: boolean;
|
|
44
|
+
autoFocus?: boolean;
|
|
45
|
+
isFocused?: boolean;
|
|
46
|
+
inputAriaLabel?: string;
|
|
47
|
+
menuAriaLabel?: string;
|
|
48
|
+
closeMenuOnSelect?: boolean;
|
|
49
|
+
dir?: BaseDropdownProps<Item>["dir"];
|
|
50
|
+
originalOnFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
51
|
+
originalOnBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
52
|
+
originalOnKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
53
|
+
originalOnScroll?: (event: React.UIEvent<HTMLUListElement>) => void;
|
|
54
|
+
}
|
|
55
|
+
export declare const DropdownContext: React.Context<DropdownContextProps<any>>;
|
|
56
|
+
export declare function useDropdownContext<Item extends BaseListItemData<Record<string, unknown>>>(): DropdownContextProps<Item>;
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ListGroup } from "../../BaseList";
|
|
2
|
+
import { BaseListItemData } from "../../BaseListItem";
|
|
3
|
+
import { BaseDropdownProps } from "../Dropdown.types";
|
|
4
|
+
import { TooltipProps } from "../../Tooltip/Tooltip";
|
|
5
|
+
type PropGetter = (options?: any) => Record<string, any>;
|
|
6
|
+
type ItemPropGetter<Item> = (options: {
|
|
7
|
+
item: Item;
|
|
8
|
+
index: number;
|
|
9
|
+
}) => Record<string, any>;
|
|
10
|
+
type InheritedDropdownProps<Item extends BaseListItemData<Record<string, unknown>>> = Partial<Pick<BaseDropdownProps<Item>, "label" | "required" | "className" | "id" | "ariaLabel" | "data-testid" | "error" | "helperText" | "dir" | "searchable" | "multi" | "multiline" | "disabled" | "readOnly" | "size" | "optionRenderer" | "valueRenderer" | "noOptionsMessage" | "placeholder" | "withGroupDivider" | "stickyGroupTitle" | "maxMenuHeight" | "clearable" | "autoFocus" | "inputAriaLabel" | "menuAriaLabel" | "closeMenuOnSelect" | "onFocus" | "onBlur" | "onKeyDown" | "onScroll" | "onClear">>;
|
|
11
|
+
export interface DropdownContextProps<Item extends BaseListItemData<Record<string, unknown>> = any> extends InheritedDropdownProps<Item> {
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
inputValue: string | null;
|
|
14
|
+
highlightedIndex: number | null;
|
|
15
|
+
selectedItem?: Item | null | undefined;
|
|
16
|
+
selectedItems?: Item[];
|
|
17
|
+
filteredOptions?: ListGroup<Item>[];
|
|
18
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
19
|
+
getToggleButtonProps: PropGetter;
|
|
20
|
+
getLabelProps: PropGetter;
|
|
21
|
+
getMenuProps: PropGetter;
|
|
22
|
+
getInputProps?: PropGetter;
|
|
23
|
+
getItemProps: ItemPropGetter<Item>;
|
|
24
|
+
reset: () => void;
|
|
25
|
+
contextOnClear: () => void;
|
|
26
|
+
contextOnOptionRemove?: (option: Item) => void;
|
|
27
|
+
addSelectedItem?: (item: Item) => void;
|
|
28
|
+
removeSelectedItem?: (item: Item) => void;
|
|
29
|
+
isFocused?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseListItemData } from "../../BaseListItem";
|
|
2
2
|
import { DropdownGroupOption } from "../Dropdown.types";
|
|
3
|
-
declare function useDropdownCombobox<T extends BaseListItemData<Record<string, unknown>>>(options: DropdownGroupOption<T>,
|
|
3
|
+
declare function useDropdownCombobox<T extends BaseListItemData<Record<string, unknown>>>(options: DropdownGroupOption<T>, isMenuOpen?: boolean, autoFocus?: boolean, closeMenuOnSelect?: boolean, defaultValue?: T, inputValueProp?: string, onChange?: (option: T | T[] | null) => void, onInputChange?: (value: string) => void, onMenuOpen?: () => void, onMenuClose?: () => void, onOptionSelect?: (option: T) => void, filterOption?: (option: T, inputValue: string) => boolean, showSelectedOptions?: boolean): {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
inputValue: string;
|
|
6
6
|
highlightedIndex: number;
|
|
@@ -12,5 +12,8 @@ declare function useDropdownCombobox<T extends BaseListItemData<Record<string, u
|
|
|
12
12
|
getItemProps: <Options_4>(options: import("downshift").UseComboboxGetItemPropsOptions<T> & Options_4) => Omit<import("downshift").Overwrite<import("downshift").UseComboboxGetItemPropsReturnValue, Options_4>, "index" | "item">;
|
|
13
13
|
reset: () => void;
|
|
14
14
|
filteredOptions: import("../../BaseList").ListGroup<T>[];
|
|
15
|
+
openMenu: () => void;
|
|
16
|
+
toggleMenu: () => void;
|
|
17
|
+
closeMenu: () => void;
|
|
15
18
|
};
|
|
16
19
|
export default useDropdownCombobox;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DropdownGroupOption } from "../Dropdown.types";
|
|
2
2
|
import { BaseListItemData } from "../../BaseListItem";
|
|
3
|
-
declare function useDropdownMultiCombobox<T extends BaseListItemData<Record<string, unknown>>>(options: DropdownGroupOption<T>, selectedItems: T[], setSelectedItems: (items: T[]) => void, autoFocus?: boolean, onChange?: (options: T[]) => void, onInputChange?: (value: string) => void, onMenuOpen?: () => void, onMenuClose?: () => void, onOptionSelect?: (option: T) => void, filterOption?: (option: T, inputValue: string) => boolean, showSelectedOptions?: boolean): {
|
|
3
|
+
declare function useDropdownMultiCombobox<T extends BaseListItemData<Record<string, unknown>>>(options: DropdownGroupOption<T>, selectedItems: T[], setSelectedItems: (items: T[]) => void, isMenuOpen: boolean, autoFocus?: boolean, defaultValue?: T[], inputValueProp?: string, onChange?: (options: T[] | T) => void, onInputChange?: (value: string) => void, onMenuOpen?: () => void, onMenuClose?: () => void, onOptionSelect?: (option: T) => void, filterOption?: (option: T, inputValue: string) => boolean, showSelectedOptions?: boolean): {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
inputValue: string;
|
|
6
6
|
highlightedIndex: number;
|
|
@@ -16,5 +16,8 @@ declare function useDropdownMultiCombobox<T extends BaseListItemData<Record<stri
|
|
|
16
16
|
reset: () => void;
|
|
17
17
|
removeSelectedItem: (item: T) => void;
|
|
18
18
|
filteredOptions: import("../../BaseList").ListGroup<T>[];
|
|
19
|
+
openMenu: () => void;
|
|
20
|
+
toggleMenu: () => void;
|
|
21
|
+
closeMenu: () => void;
|
|
19
22
|
};
|
|
20
23
|
export default useDropdownMultiCombobox;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DropdownGroupOption } from "../Dropdown.types";
|
|
2
|
+
import { BaseListItemData } from "../../BaseListItem";
|
|
3
|
+
declare function useDropdownMultiSelect<T extends BaseListItemData<Record<string, unknown>>>(options: DropdownGroupOption<T>, selectedItems: T[], setSelectedItems: (items: T[]) => void, isMenuOpen: boolean, autoFocus?: boolean, defaultValue?: T[], onChange?: (options: T[]) => void, onMenuOpen?: () => void, onMenuClose?: () => void, onOptionSelect?: (option: T) => void, showSelectedOptions?: boolean, filterOption?: (option: T, inputValue: string) => boolean): {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
inputValue: string;
|
|
6
|
+
highlightedIndex: number;
|
|
7
|
+
selectedItems: T[];
|
|
8
|
+
getSelectedItemProps: <Options>(options: import("downshift").UseMultipleSelectionGetSelectedItemPropsOptions<T> & Options) => Omit<import("downshift").Overwrite<import("downshift").UseMultipleSelectionGetSelectedItemReturnValue, Options>, "index" | "selectedItem">;
|
|
9
|
+
addSelectedItem: (item: T) => void;
|
|
10
|
+
removeSelectedItem: (item: T) => void;
|
|
11
|
+
getToggleButtonProps: <Options_1>(options?: import("downshift").UseSelectGetToggleButtonPropsOptions & Options_1, otherOptions?: import("downshift").GetPropsCommonOptions) => import("downshift").Overwrite<import("downshift").UseSelectGetToggleButtonReturnValue, Options_1>;
|
|
12
|
+
getLabelProps: <Options_2>(options?: import("downshift").UseSelectGetLabelPropsOptions & Options_2) => import("downshift").Overwrite<import("downshift").UseSelectGetLabelPropsReturnValue, Options_2>;
|
|
13
|
+
getMenuProps: <Options_3>(options?: import("downshift").UseSelectGetMenuPropsOptions & Options_3, otherOptions?: import("downshift").GetPropsCommonOptions) => import("downshift").Overwrite<import("downshift").UseSelectGetMenuReturnValue, Options_3>;
|
|
14
|
+
getInputProps: () => {};
|
|
15
|
+
getItemProps: <Options_4>(options: import("downshift").UseSelectGetItemPropsOptions<T> & Options_4) => Omit<import("downshift").Overwrite<import("downshift").UseSelectGetItemPropsReturnValue, Options_4>, "index" | "item">;
|
|
16
|
+
reset: () => void;
|
|
17
|
+
filteredOptions: import("../../BaseList").ListGroup<T>[];
|
|
18
|
+
openMenu: () => void;
|
|
19
|
+
toggleMenu: () => void;
|
|
20
|
+
closeMenu: () => void;
|
|
21
|
+
};
|
|
22
|
+
export default useDropdownMultiSelect;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseListItemData } from "../../BaseListItem";
|
|
2
|
+
import { DropdownGroupOption } from "../Dropdown.types";
|
|
3
|
+
declare function useDropdownSelect<T extends BaseListItemData<Record<string, unknown>>>(options: DropdownGroupOption<T>, autoFocus?: boolean, isMenuOpen?: boolean, defaultValue?: T, onChange?: (option: T | T[] | null) => void, onMenuOpen?: () => void, onMenuClose?: () => void, onOptionSelect?: (option: T) => void, showSelectedOptions?: boolean, filterOption?: (option: T, inputValue: string) => boolean): {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
inputValue: string;
|
|
6
|
+
highlightedIndex: number;
|
|
7
|
+
selectedItem: T;
|
|
8
|
+
getToggleButtonProps: <Options>(options?: import("downshift").UseSelectGetToggleButtonPropsOptions & Options, otherOptions?: import("downshift").GetPropsCommonOptions) => import("downshift").Overwrite<import("downshift").UseSelectGetToggleButtonReturnValue, Options>;
|
|
9
|
+
getLabelProps: <Options_1>(options?: import("downshift").UseSelectGetLabelPropsOptions & Options_1) => import("downshift").Overwrite<import("downshift").UseSelectGetLabelPropsReturnValue, Options_1>;
|
|
10
|
+
getMenuProps: <Options_2>(options?: import("downshift").UseSelectGetMenuPropsOptions & Options_2, otherOptions?: import("downshift").GetPropsCommonOptions) => import("downshift").Overwrite<import("downshift").UseSelectGetMenuReturnValue, Options_2>;
|
|
11
|
+
getInputProps: () => {};
|
|
12
|
+
getItemProps: <Options_3>(options: import("downshift").UseSelectGetItemPropsOptions<T> & Options_3) => Omit<import("downshift").Overwrite<import("downshift").UseSelectGetItemPropsReturnValue, Options_3>, "index" | "item">;
|
|
13
|
+
reset: () => void;
|
|
14
|
+
filteredOptions: import("../../BaseList").ListGroup<T>[];
|
|
15
|
+
openMenu: () => void;
|
|
16
|
+
toggleMenu: () => void;
|
|
17
|
+
closeMenu: () => void;
|
|
18
|
+
};
|
|
19
|
+
export default useDropdownSelect;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DropdownControllerProps } from "../Dropdown.types";
|
|
3
|
+
import { BaseListItemData } from "../../BaseListItem";
|
|
4
|
+
declare const DropdownComboboxController: <Item extends BaseListItemData<Record<string, unknown>>>(props: DropdownControllerProps<Item>) => React.JSX.Element;
|
|
5
|
+
export default DropdownComboboxController;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DropdownControllerProps } from "../Dropdown.types";
|
|
3
|
+
import { BaseListItemData } from "../../BaseListItem";
|
|
4
|
+
declare const DropdownMultiComboboxController: <Item extends BaseListItemData<Record<string, unknown>>>(props: DropdownControllerProps<Item>) => React.JSX.Element;
|
|
5
|
+
export default DropdownMultiComboboxController;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DropdownControllerProps } from "../Dropdown.types";
|
|
3
|
+
import { BaseListItemData } from "../../BaseListItem";
|
|
4
|
+
declare const DropdownMultiSelectController: <Item extends BaseListItemData<Record<string, unknown>>>(props: DropdownControllerProps<Item>) => React.JSX.Element;
|
|
5
|
+
export default DropdownMultiSelectController;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DropdownControllerProps } from "../Dropdown.types";
|
|
3
|
+
import { BaseListItemData } from "../../BaseListItem";
|
|
4
|
+
declare const DropdownSelectController: <Item extends BaseListItemData<Record<string, unknown>>>(props: DropdownControllerProps<Item>) => React.JSX.Element;
|
|
5
|
+
export default DropdownSelectController;
|
|
@@ -14,6 +14,10 @@ export interface BaseListProps<Item = Record<string, unknown>> extends React.HTM
|
|
|
14
14
|
* The index of the highlighted item in the list.
|
|
15
15
|
*/
|
|
16
16
|
highlightedIndex?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The ARIA label for the menu.
|
|
19
|
+
*/
|
|
20
|
+
menuAriaLabel?: string;
|
|
17
21
|
/**
|
|
18
22
|
* Function to get props for the menu container.
|
|
19
23
|
*/
|
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { ListGroup } from "../BaseList";
|
|
3
3
|
import { VibeComponentProps } from "../../types";
|
|
4
4
|
import { BaseListItemData } from "../BaseListItem";
|
|
5
|
+
import { TooltipProps } from "../Tooltip/Tooltip";
|
|
5
6
|
export type DropdownGroupOption<Item = Record<string, unknown>> = ListGroup<Item>[] | BaseListItemData<Item>[];
|
|
6
7
|
interface MultiSelectSpecifics<Item extends BaseListItemData<Record<string, unknown>>> {
|
|
7
8
|
/**
|
|
@@ -17,6 +18,10 @@ interface MultiSelectSpecifics<Item extends BaseListItemData<Record<string, unkn
|
|
|
17
18
|
* The function to call to render the selected value on single select mode.
|
|
18
19
|
*/
|
|
19
20
|
valueRenderer?: never;
|
|
21
|
+
/**
|
|
22
|
+
* The default selected values for multi-select.
|
|
23
|
+
*/
|
|
24
|
+
defaultValue?: Item[];
|
|
20
25
|
}
|
|
21
26
|
interface SingleSelectSpecifics<Item extends BaseListItemData<Record<string, unknown>>> {
|
|
22
27
|
/**
|
|
@@ -35,12 +40,20 @@ interface SingleSelectSpecifics<Item extends BaseListItemData<Record<string, unk
|
|
|
35
40
|
* The function to call to render the selected value on single select mode.
|
|
36
41
|
*/
|
|
37
42
|
valueRenderer?: (option: BaseListItemData<Item>) => React.ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* The default selected value for single-select.
|
|
45
|
+
*/
|
|
46
|
+
defaultValue?: Item;
|
|
38
47
|
}
|
|
39
48
|
export type BaseDropdownProps<Item extends BaseListItemData<Record<string, unknown>>> = VibeComponentProps & {
|
|
40
49
|
/**
|
|
41
50
|
* The list of options available in the list.
|
|
42
51
|
*/
|
|
43
52
|
options: DropdownGroupOption<Item>;
|
|
53
|
+
/**
|
|
54
|
+
* Props to be passed to the Tooltip component that wraps the dropdown.
|
|
55
|
+
*/
|
|
56
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
44
57
|
/**
|
|
45
58
|
* If true, displays dividers between grouped options.
|
|
46
59
|
*/
|
|
@@ -97,6 +110,22 @@ export type BaseDropdownProps<Item extends BaseListItemData<Record<string, unkno
|
|
|
97
110
|
* The label to display above the dropdown.
|
|
98
111
|
*/
|
|
99
112
|
label?: string;
|
|
113
|
+
/**
|
|
114
|
+
* The ARIA label for the dropdown.
|
|
115
|
+
*/
|
|
116
|
+
ariaLabel?: string;
|
|
117
|
+
/**
|
|
118
|
+
* The ARIA label for the dropdown input.
|
|
119
|
+
*/
|
|
120
|
+
inputAriaLabel?: string;
|
|
121
|
+
/**
|
|
122
|
+
* The ARIA label for the menu container.
|
|
123
|
+
*/
|
|
124
|
+
menuAriaLabel?: string;
|
|
125
|
+
/**
|
|
126
|
+
* The current value of the input field.
|
|
127
|
+
*/
|
|
128
|
+
inputValue?: string;
|
|
100
129
|
/**
|
|
101
130
|
* The maximum height of the dropdown menu.
|
|
102
131
|
*/
|
|
@@ -169,4 +198,7 @@ export type BaseDropdownProps<Item extends BaseListItemData<Record<string, unkno
|
|
|
169
198
|
} & (MultiSelectSpecifics<Item> | SingleSelectSpecifics<Item>);
|
|
170
199
|
export type DropdownSizes = "small" | "medium" | "large";
|
|
171
200
|
export type DropdownDirection = "ltr" | "rtl" | "auto";
|
|
201
|
+
export type DropdownControllerProps<Item extends BaseListItemData<Record<string, unknown>>> = BaseDropdownProps<Item> & {
|
|
202
|
+
dropdownRef: React.Ref<HTMLDivElement>;
|
|
203
|
+
};
|
|
172
204
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DropdownContextProps } from "../context/DropdownContext.types";
|
|
3
|
+
import { BaseListItemData } from "../../BaseListItem";
|
|
4
|
+
interface DropdownWrapperUIProps<Item extends BaseListItemData<Record<string, unknown>>> {
|
|
5
|
+
contextValue: DropdownContextProps<Item>;
|
|
6
|
+
dropdownRef: React.Ref<HTMLDivElement>;
|
|
7
|
+
}
|
|
8
|
+
declare const DropdownWrapperUI: <Item extends BaseListItemData<Record<string, unknown>>>(props: DropdownWrapperUIProps<Item>) => React.JSX.Element;
|
|
9
|
+
export default DropdownWrapperUI;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ListGroup } from "../../BaseList";
|
|
3
|
+
import { BaseListItemData } from "../../BaseListItem";
|
|
4
|
+
import { BaseDropdownProps, DropdownSizes } from "../Dropdown.types";
|
|
5
|
+
import { DropdownContextProps } from "./DropdownContext.types";
|
|
6
|
+
type PropGetter = (options?: any) => Record<string, any>;
|
|
7
|
+
type ItemPropGetter<Item> = (options: {
|
|
8
|
+
item: Item;
|
|
9
|
+
index: number;
|
|
10
|
+
}) => Record<string, any>;
|
|
11
|
+
export interface DropdownContextValue<Item extends BaseListItemData<Record<string, unknown>> = any> {
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
inputValue: string | null;
|
|
14
|
+
highlightedIndex: number | null;
|
|
15
|
+
selectedItem: Item | null | undefined;
|
|
16
|
+
selectedItems: Item[];
|
|
17
|
+
filteredOptions: ListGroup<Item>[];
|
|
18
|
+
getToggleButtonProps: PropGetter;
|
|
19
|
+
getLabelProps: PropGetter;
|
|
20
|
+
getMenuProps: PropGetter;
|
|
21
|
+
getInputProps: PropGetter;
|
|
22
|
+
getItemProps: ItemPropGetter<Item>;
|
|
23
|
+
reset: () => void;
|
|
24
|
+
onClear?: () => void;
|
|
25
|
+
onOptionSelect?: (option: Item) => void;
|
|
26
|
+
onOptionRemove?: (option: Item) => void;
|
|
27
|
+
addSelectedItem?: (item: Item) => void;
|
|
28
|
+
removeSelectedItem?: (item: Item) => void;
|
|
29
|
+
setSelectedItems?: (items: Item[]) => void;
|
|
30
|
+
searchable?: boolean;
|
|
31
|
+
multi?: boolean;
|
|
32
|
+
multiline?: boolean;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
readOnly?: boolean;
|
|
35
|
+
size?: DropdownSizes;
|
|
36
|
+
optionRenderer?: BaseDropdownProps<Item>["optionRenderer"];
|
|
37
|
+
valueRenderer?: BaseDropdownProps<Item>["valueRenderer"];
|
|
38
|
+
noOptionsMessage?: BaseDropdownProps<Item>["noOptionsMessage"];
|
|
39
|
+
placeholder?: BaseDropdownProps<Item>["placeholder"];
|
|
40
|
+
withGroupDivider?: BaseDropdownProps<Item>["withGroupDivider"];
|
|
41
|
+
stickyGroupTitle?: BaseDropdownProps<Item>["stickyGroupTitle"];
|
|
42
|
+
maxMenuHeight?: BaseDropdownProps<Item>["maxMenuHeight"];
|
|
43
|
+
clearable?: boolean;
|
|
44
|
+
autoFocus?: boolean;
|
|
45
|
+
isFocused?: boolean;
|
|
46
|
+
inputAriaLabel?: string;
|
|
47
|
+
menuAriaLabel?: string;
|
|
48
|
+
closeMenuOnSelect?: boolean;
|
|
49
|
+
dir?: BaseDropdownProps<Item>["dir"];
|
|
50
|
+
originalOnFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
51
|
+
originalOnBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
52
|
+
originalOnKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
53
|
+
originalOnScroll?: (event: React.UIEvent<HTMLUListElement>) => void;
|
|
54
|
+
}
|
|
55
|
+
export declare const DropdownContext: React.Context<DropdownContextProps<any>>;
|
|
56
|
+
export declare function useDropdownContext<Item extends BaseListItemData<Record<string, unknown>>>(): DropdownContextProps<Item>;
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ListGroup } from "../../BaseList";
|
|
2
|
+
import { BaseListItemData } from "../../BaseListItem";
|
|
3
|
+
import { BaseDropdownProps } from "../Dropdown.types";
|
|
4
|
+
import { TooltipProps } from "../../Tooltip/Tooltip";
|
|
5
|
+
type PropGetter = (options?: any) => Record<string, any>;
|
|
6
|
+
type ItemPropGetter<Item> = (options: {
|
|
7
|
+
item: Item;
|
|
8
|
+
index: number;
|
|
9
|
+
}) => Record<string, any>;
|
|
10
|
+
type InheritedDropdownProps<Item extends BaseListItemData<Record<string, unknown>>> = Partial<Pick<BaseDropdownProps<Item>, "label" | "required" | "className" | "id" | "ariaLabel" | "data-testid" | "error" | "helperText" | "dir" | "searchable" | "multi" | "multiline" | "disabled" | "readOnly" | "size" | "optionRenderer" | "valueRenderer" | "noOptionsMessage" | "placeholder" | "withGroupDivider" | "stickyGroupTitle" | "maxMenuHeight" | "clearable" | "autoFocus" | "inputAriaLabel" | "menuAriaLabel" | "closeMenuOnSelect" | "onFocus" | "onBlur" | "onKeyDown" | "onScroll" | "onClear">>;
|
|
11
|
+
export interface DropdownContextProps<Item extends BaseListItemData<Record<string, unknown>> = any> extends InheritedDropdownProps<Item> {
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
inputValue: string | null;
|
|
14
|
+
highlightedIndex: number | null;
|
|
15
|
+
selectedItem?: Item | null | undefined;
|
|
16
|
+
selectedItems?: Item[];
|
|
17
|
+
filteredOptions?: ListGroup<Item>[];
|
|
18
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
19
|
+
getToggleButtonProps: PropGetter;
|
|
20
|
+
getLabelProps: PropGetter;
|
|
21
|
+
getMenuProps: PropGetter;
|
|
22
|
+
getInputProps?: PropGetter;
|
|
23
|
+
getItemProps: ItemPropGetter<Item>;
|
|
24
|
+
reset: () => void;
|
|
25
|
+
contextOnClear: () => void;
|
|
26
|
+
contextOnOptionRemove?: (option: Item) => void;
|
|
27
|
+
addSelectedItem?: (item: Item) => void;
|
|
28
|
+
removeSelectedItem?: (item: Item) => void;
|
|
29
|
+
isFocused?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseListItemData } from "../../BaseListItem";
|
|
2
2
|
import { DropdownGroupOption } from "../Dropdown.types";
|
|
3
|
-
declare function useDropdownCombobox<T extends BaseListItemData<Record<string, unknown>>>(options: DropdownGroupOption<T>,
|
|
3
|
+
declare function useDropdownCombobox<T extends BaseListItemData<Record<string, unknown>>>(options: DropdownGroupOption<T>, isMenuOpen?: boolean, autoFocus?: boolean, closeMenuOnSelect?: boolean, defaultValue?: T, inputValueProp?: string, onChange?: (option: T | T[] | null) => void, onInputChange?: (value: string) => void, onMenuOpen?: () => void, onMenuClose?: () => void, onOptionSelect?: (option: T) => void, filterOption?: (option: T, inputValue: string) => boolean, showSelectedOptions?: boolean): {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
inputValue: string;
|
|
6
6
|
highlightedIndex: number;
|
|
@@ -12,5 +12,8 @@ declare function useDropdownCombobox<T extends BaseListItemData<Record<string, u
|
|
|
12
12
|
getItemProps: <Options_4>(options: import("downshift").UseComboboxGetItemPropsOptions<T> & Options_4) => Omit<import("downshift").Overwrite<import("downshift").UseComboboxGetItemPropsReturnValue, Options_4>, "index" | "item">;
|
|
13
13
|
reset: () => void;
|
|
14
14
|
filteredOptions: import("../../BaseList").ListGroup<T>[];
|
|
15
|
+
openMenu: () => void;
|
|
16
|
+
toggleMenu: () => void;
|
|
17
|
+
closeMenu: () => void;
|
|
15
18
|
};
|
|
16
19
|
export default useDropdownCombobox;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DropdownGroupOption } from "../Dropdown.types";
|
|
2
2
|
import { BaseListItemData } from "../../BaseListItem";
|
|
3
|
-
declare function useDropdownMultiCombobox<T extends BaseListItemData<Record<string, unknown>>>(options: DropdownGroupOption<T>, selectedItems: T[], setSelectedItems: (items: T[]) => void, autoFocus?: boolean, onChange?: (options: T[]) => void, onInputChange?: (value: string) => void, onMenuOpen?: () => void, onMenuClose?: () => void, onOptionSelect?: (option: T) => void, filterOption?: (option: T, inputValue: string) => boolean, showSelectedOptions?: boolean): {
|
|
3
|
+
declare function useDropdownMultiCombobox<T extends BaseListItemData<Record<string, unknown>>>(options: DropdownGroupOption<T>, selectedItems: T[], setSelectedItems: (items: T[]) => void, isMenuOpen: boolean, autoFocus?: boolean, defaultValue?: T[], inputValueProp?: string, onChange?: (options: T[] | T) => void, onInputChange?: (value: string) => void, onMenuOpen?: () => void, onMenuClose?: () => void, onOptionSelect?: (option: T) => void, filterOption?: (option: T, inputValue: string) => boolean, showSelectedOptions?: boolean): {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
inputValue: string;
|
|
6
6
|
highlightedIndex: number;
|
|
@@ -16,5 +16,8 @@ declare function useDropdownMultiCombobox<T extends BaseListItemData<Record<stri
|
|
|
16
16
|
reset: () => void;
|
|
17
17
|
removeSelectedItem: (item: T) => void;
|
|
18
18
|
filteredOptions: import("../../BaseList").ListGroup<T>[];
|
|
19
|
+
openMenu: () => void;
|
|
20
|
+
toggleMenu: () => void;
|
|
21
|
+
closeMenu: () => void;
|
|
19
22
|
};
|
|
20
23
|
export default useDropdownMultiCombobox;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DropdownGroupOption } from "../Dropdown.types";
|
|
2
|
+
import { BaseListItemData } from "../../BaseListItem";
|
|
3
|
+
declare function useDropdownMultiSelect<T extends BaseListItemData<Record<string, unknown>>>(options: DropdownGroupOption<T>, selectedItems: T[], setSelectedItems: (items: T[]) => void, isMenuOpen: boolean, autoFocus?: boolean, defaultValue?: T[], onChange?: (options: T[]) => void, onMenuOpen?: () => void, onMenuClose?: () => void, onOptionSelect?: (option: T) => void, showSelectedOptions?: boolean, filterOption?: (option: T, inputValue: string) => boolean): {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
inputValue: string;
|
|
6
|
+
highlightedIndex: number;
|
|
7
|
+
selectedItems: T[];
|
|
8
|
+
getSelectedItemProps: <Options>(options: import("downshift").UseMultipleSelectionGetSelectedItemPropsOptions<T> & Options) => Omit<import("downshift").Overwrite<import("downshift").UseMultipleSelectionGetSelectedItemReturnValue, Options>, "index" | "selectedItem">;
|
|
9
|
+
addSelectedItem: (item: T) => void;
|
|
10
|
+
removeSelectedItem: (item: T) => void;
|
|
11
|
+
getToggleButtonProps: <Options_1>(options?: import("downshift").UseSelectGetToggleButtonPropsOptions & Options_1, otherOptions?: import("downshift").GetPropsCommonOptions) => import("downshift").Overwrite<import("downshift").UseSelectGetToggleButtonReturnValue, Options_1>;
|
|
12
|
+
getLabelProps: <Options_2>(options?: import("downshift").UseSelectGetLabelPropsOptions & Options_2) => import("downshift").Overwrite<import("downshift").UseSelectGetLabelPropsReturnValue, Options_2>;
|
|
13
|
+
getMenuProps: <Options_3>(options?: import("downshift").UseSelectGetMenuPropsOptions & Options_3, otherOptions?: import("downshift").GetPropsCommonOptions) => import("downshift").Overwrite<import("downshift").UseSelectGetMenuReturnValue, Options_3>;
|
|
14
|
+
getInputProps: () => {};
|
|
15
|
+
getItemProps: <Options_4>(options: import("downshift").UseSelectGetItemPropsOptions<T> & Options_4) => Omit<import("downshift").Overwrite<import("downshift").UseSelectGetItemPropsReturnValue, Options_4>, "index" | "item">;
|
|
16
|
+
reset: () => void;
|
|
17
|
+
filteredOptions: import("../../BaseList").ListGroup<T>[];
|
|
18
|
+
openMenu: () => void;
|
|
19
|
+
toggleMenu: () => void;
|
|
20
|
+
closeMenu: () => void;
|
|
21
|
+
};
|
|
22
|
+
export default useDropdownMultiSelect;
|