@helsenorge/designsystem-react 14.9.2 → 15.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AnchorLink.js +11 -7
- package/lib/AnchorLink.js.map +1 -1
- package/lib/AsChildSlot.js +8 -4
- package/lib/AsChildSlot.js.map +1 -1
- package/lib/Avatar.js +16 -10
- package/lib/Avatar.js.map +1 -1
- package/lib/Badge.js +9 -5
- package/lib/Badge.js.map +1 -1
- package/lib/Button.js +14 -10
- package/lib/Button.js.map +1 -1
- package/lib/CHANGELOG.md +10 -0
- package/lib/Checkbox.js +12 -11
- package/lib/Checkbox.js.map +1 -1
- package/lib/Chip.js +17 -10
- package/lib/Chip.js.map +1 -1
- package/lib/Close.js +12 -8
- package/lib/Close.js.map +1 -1
- package/lib/DictionaryTrigger.js +7 -3
- package/lib/DictionaryTrigger.js.map +1 -1
- package/lib/Drawer.js +26 -19
- package/lib/Drawer.js.map +1 -1
- package/lib/DrawerNavigation.js +9 -4
- package/lib/DrawerNavigation.js.map +1 -1
- package/lib/Duolist.js +10 -6
- package/lib/Duolist.js.map +1 -1
- package/lib/ElementHeader.js +15 -12
- package/lib/ElementHeader.js.map +1 -1
- package/lib/ElementHeaderText.js +7 -5
- package/lib/ElementHeaderText.js.map +1 -1
- package/lib/{_rolldown_dynamic_import_helper.js → ErrorBoundary.js} +14 -11
- package/lib/ErrorBoundary.js.map +1 -0
- package/lib/ErrorWrapper.js +7 -3
- package/lib/ErrorWrapper.js.map +1 -1
- package/lib/Expander.js +20 -14
- package/lib/Expander.js.map +1 -1
- package/lib/FilterButton.js +11 -7
- package/lib/FilterButton.js.map +1 -1
- package/lib/FilterButtonAndChipsWrapper.js +6 -2
- package/lib/FilterButtonAndChipsWrapper.js.map +1 -1
- package/lib/FilterDrawer.js +20 -9
- package/lib/FilterDrawer.js.map +1 -1
- package/lib/FilterLinkList.js +9 -8
- package/lib/FilterLinkList.js.map +1 -1
- package/lib/FilterOverviewLinkList.js +9 -5
- package/lib/FilterOverviewLinkList.js.map +1 -1
- package/lib/FilterOverviewSearch.js +8 -4
- package/lib/FilterOverviewSearch.js.map +1 -1
- package/lib/FilterResultCountAndSortWrapper.js +6 -2
- package/lib/FilterResultCountAndSortWrapper.js.map +1 -1
- package/lib/FilterSearch.js +12 -11
- package/lib/FilterSearch.js.map +1 -1
- package/lib/FilterSort.js +9 -5
- package/lib/FilterSort.js.map +1 -1
- package/lib/FilterStateWrapper.js +6 -2
- package/lib/FilterStateWrapper.js.map +1 -1
- package/lib/FormFieldTag.js +12 -5
- package/lib/FormFieldTag.js.map +1 -1
- package/lib/FormGroup.js +14 -13
- package/lib/FormGroup.js.map +1 -1
- package/lib/FormLayout.js +17 -11
- package/lib/FormLayout.js.map +1 -1
- package/lib/HN.Designsystem.Dropdown.nb-NO.js +1 -0
- package/lib/HelpDetails.js +3 -2
- package/lib/HelpDetails.js.map +1 -1
- package/lib/HelpTriggerIcon.js +15 -10
- package/lib/HelpTriggerIcon.js.map +1 -1
- package/lib/HelpTriggerStandalone.js +11 -7
- package/lib/HelpTriggerStandalone.js.map +1 -1
- package/lib/HighlightPanel.js +9 -5
- package/lib/HighlightPanel.js.map +1 -1
- package/lib/Highlighter.js +10 -6
- package/lib/Highlighter.js.map +1 -1
- package/lib/HorizontalScroll.js +10 -6
- package/lib/HorizontalScroll.js.map +1 -1
- package/lib/Icon.js +6 -2
- package/lib/Icon.js.map +1 -1
- package/lib/Illustration.js +8 -4
- package/lib/Illustration.js.map +1 -1
- package/lib/InfoTeaser.js +13 -6
- package/lib/InfoTeaser.js.map +1 -1
- package/lib/Input.js +30 -25
- package/lib/Input.js.map +1 -1
- package/lib/LazyIcon.js +16 -10
- package/lib/LazyIcon.js.map +1 -1
- package/lib/LazyIllustration.js +16 -12
- package/lib/LazyIllustration.js.map +1 -1
- package/lib/LinkList.js +19 -12
- package/lib/LinkList.js.map +1 -1
- package/lib/List.js +7 -3
- package/lib/List.js.map +1 -1
- package/lib/ListEditMode.js +14 -9
- package/lib/ListEditMode.js.map +1 -1
- package/lib/MaxCharacters.js +5 -5
- package/lib/MaxCharacters.js.map +1 -1
- package/lib/NotificationBadge.js +12 -11
- package/lib/NotificationBadge.js.map +1 -1
- package/lib/PanelTitle.js +7 -3
- package/lib/PanelTitle.js.map +1 -1
- package/lib/PopOver.js +15 -9
- package/lib/PopOver.js.map +1 -1
- package/lib/Select.js +13 -9
- package/lib/Select.js.map +1 -1
- package/lib/SingleSelectItem.js +8 -5
- package/lib/SingleSelectItem.js.map +1 -1
- package/lib/Slider.js +30 -26
- package/lib/Slider.js.map +1 -1
- package/lib/Spacer.js +7 -3
- package/lib/Spacer.js.map +1 -1
- package/lib/StatusDot.js +36 -30
- package/lib/StatusDot.js.map +1 -1
- package/lib/StatusDotList.js +7 -3
- package/lib/StatusDotList.js.map +1 -1
- package/lib/StepButtons.js +8 -4
- package/lib/StepButtons.js.map +1 -1
- package/lib/TabList.js +29 -22
- package/lib/TabList.js.map +1 -1
- package/lib/TabPanel.js +6 -2
- package/lib/TabPanel.js.map +1 -1
- package/lib/TableBody.js +10 -6
- package/lib/TableBody.js.map +1 -1
- package/lib/TableCell.js +10 -6
- package/lib/TableCell.js.map +1 -1
- package/lib/TableExpandedRow.js +14 -10
- package/lib/TableExpandedRow.js.map +1 -1
- package/lib/TableExpanderCell.js +13 -11
- package/lib/TableExpanderCell.js.map +1 -1
- package/lib/TableHead.js +14 -10
- package/lib/TableHead.js.map +1 -1
- package/lib/TableHeadCell.js +17 -13
- package/lib/TableHeadCell.js.map +1 -1
- package/lib/TableRow.js +19 -14
- package/lib/TableRow.js.map +1 -1
- package/lib/Textarea.js +18 -11
- package/lib/Textarea.js.map +1 -1
- package/lib/Title.js +8 -5
- package/lib/Title.js.map +1 -1
- package/lib/Toast.js +7 -6
- package/lib/Toast.js.map +1 -1
- package/lib/__mocks__/IntersectionObserver.js +3 -2
- package/lib/__mocks__/IntersectionObserver.js.map +1 -1
- package/lib/__mocks__/MutationObserver.js +3 -2
- package/lib/__mocks__/MutationObserver.js.map +1 -1
- package/lib/__mocks__/ResizeObserver.js +3 -2
- package/lib/__mocks__/ResizeObserver.js.map +1 -1
- package/lib/__mocks__/matchMedia.js +3 -1
- package/lib/__mocks__/matchMedia.js.map +1 -1
- package/lib/__mocks__/useLayoutEvent.js +2 -0
- package/lib/__mocks__/useLayoutEvent.js.map +1 -1
- package/lib/__mocks__/useOutsideEvent.js +2 -0
- package/lib/__mocks__/useOutsideEvent.js.map +1 -1
- package/lib/__mocks__/usePseudoClasses.js +2 -0
- package/lib/__mocks__/usePseudoClasses.js.map +1 -1
- package/lib/__mocks__/useSize.js +2 -0
- package/lib/__mocks__/useSize.js.map +1 -1
- package/lib/__mocks__/uuid.js +6 -1
- package/lib/__mocks__/uuid.js.map +1 -1
- package/lib/components/ArticleTeaser/index.js +10 -3
- package/lib/components/ArticleTeaser/index.js.map +1 -1
- package/lib/components/Checkbox/index.js +5 -1
- package/lib/components/Checkbox/index.js.map +1 -0
- package/lib/components/Chip/Chip.d.ts +0 -2
- package/lib/components/Dropdown/SingleSelect/index.js +4 -2
- package/lib/components/Dropdown/SingleSelect/index.js.map +1 -1
- package/lib/components/Dropdown/index.js +27 -19
- package/lib/components/Dropdown/index.js.map +1 -1
- package/lib/components/DropdownOld/index.js +25 -17
- package/lib/components/DropdownOld/index.js.map +1 -1
- package/lib/components/ElementHeader/index.js +4 -2
- package/lib/components/ElementHeader/index.js.map +1 -1
- package/lib/components/EmptyState/index.js +23 -17
- package/lib/components/EmptyState/index.js.map +1 -1
- package/lib/components/ExpanderHierarchy/index.js +23 -16
- package/lib/components/ExpanderHierarchy/index.js.map +1 -1
- package/lib/components/ExpanderList/index.js +13 -9
- package/lib/components/ExpanderList/index.js.map +1 -1
- package/lib/components/EyebrowHeader/index.js +6 -2
- package/lib/components/EyebrowHeader/index.js.map +1 -1
- package/lib/components/FavoriteButton/index.js +20 -11
- package/lib/components/FavoriteButton/index.js.map +1 -1
- package/lib/components/Filter/DrawerNavigation/index.js +6 -2
- package/lib/components/Filter/DrawerNavigation/index.js.map +1 -0
- package/lib/components/Filter/FilterLinkList/index.js +6 -2
- package/lib/components/Filter/FilterLinkList/index.js.map +1 -0
- package/lib/components/Filter/FilterSearch/index.js +6 -1
- package/lib/components/Filter/FilterSearch/index.js.map +1 -0
- package/lib/components/Filter/index.js +50 -12
- package/lib/components/Filter/index.js.map +1 -1
- package/lib/components/FormGroup/index.js +4 -2
- package/lib/components/FormGroup/index.js.map +1 -1
- package/lib/components/HelpBubble/index.js +11 -4
- package/lib/components/HelpBubble/index.js.map +1 -1
- package/lib/components/HelpDrawer/index.js +10 -3
- package/lib/components/HelpDrawer/index.js.map +1 -1
- package/lib/components/HelpExpanderInline/index.js +8 -4
- package/lib/components/HelpExpanderInline/index.js.map +1 -1
- package/lib/components/HelpExpanderStandalone/index.js +14 -10
- package/lib/components/HelpExpanderStandalone/index.js.map +1 -1
- package/lib/components/HelpPanel/index.js +6 -2
- package/lib/components/HelpPanel/index.js.map +1 -1
- package/lib/components/HelpTeaser/index.js +6 -2
- package/lib/components/HelpTeaser/index.js.map +1 -1
- package/lib/components/HelpTooltip/index.js +6 -2
- package/lib/components/HelpTooltip/index.js.map +1 -1
- package/lib/components/HelpTriggerInline/index.js +8 -4
- package/lib/components/HelpTriggerInline/index.js.map +1 -1
- package/lib/components/Icon/index.js +1 -1
- package/lib/components/Icons/ActiveMonitoring.js +3 -2
- package/lib/components/Icons/ActiveMonitoring.js.map +1 -1
- package/lib/components/Icons/AcupunctureBack.js +4 -3
- package/lib/components/Icons/AcupunctureBack.js.map +1 -1
- package/lib/components/Icons/AdditionalIconInformation.js +2 -0
- package/lib/components/Icons/AdditionalIconInformation.js.map +1 -1
- package/lib/components/Icons/AlarmClock.js +3 -2
- package/lib/components/Icons/AlarmClock.js.map +1 -1
- package/lib/components/Icons/AlertSignFill.js +17 -2
- package/lib/components/Icons/AlertSignFill.js.map +1 -0
- package/lib/components/Icons/AlertSignStroke.js +17 -2
- package/lib/components/Icons/AlertSignStroke.js.map +1 -0
- package/lib/components/Icons/Amputation.js +3 -2
- package/lib/components/Icons/Amputation.js.map +1 -1
- package/lib/components/Icons/Anxiety.js +3 -2
- package/lib/components/Icons/Anxiety.js.map +1 -1
- package/lib/components/Icons/Apple.js +3 -2
- package/lib/components/Icons/Apple.js.map +1 -1
- package/lib/components/Icons/Archive.js +3 -2
- package/lib/components/Icons/Archive.js.map +1 -1
- package/lib/components/Icons/ArmFlexing.js +3 -2
- package/lib/components/Icons/ArmFlexing.js.map +1 -1
- package/lib/components/Icons/ArrowDown.js +29 -2
- package/lib/components/Icons/ArrowDown.js.map +1 -0
- package/lib/components/Icons/ArrowLeft.js +3 -2
- package/lib/components/Icons/ArrowLeft.js.map +1 -1
- package/lib/components/Icons/ArrowRight.js +17 -2
- package/lib/components/Icons/ArrowRight.js.map +1 -0
- package/lib/components/Icons/ArrowUp.js +29 -2
- package/lib/components/Icons/ArrowUp.js.map +1 -0
- package/lib/components/Icons/ArrowUpRight.js +17 -2
- package/lib/components/Icons/ArrowUpRight.js.map +1 -0
- package/lib/components/Icons/Attachment.js +3 -2
- package/lib/components/Icons/Attachment.js.map +1 -1
- package/lib/components/Icons/Atv.js +3 -2
- package/lib/components/Icons/Atv.js.map +1 -1
- package/lib/components/Icons/Avatar.js +3 -2
- package/lib/components/Icons/Avatar.js.map +1 -1
- package/lib/components/Icons/AwakePersonOnPillow.js +3 -2
- package/lib/components/Icons/AwakePersonOnPillow.js.map +1 -1
- package/lib/components/Icons/Baby.js +3 -2
- package/lib/components/Icons/Baby.js.map +1 -1
- package/lib/components/Icons/BandAid.js +3 -2
- package/lib/components/Icons/BandAid.js.map +1 -1
- package/lib/components/Icons/BeerAndPills.js +3 -2
- package/lib/components/Icons/BeerAndPills.js.map +1 -1
- package/lib/components/Icons/Bell.js +3 -2
- package/lib/components/Icons/Bell.js.map +1 -1
- package/lib/components/Icons/Bike.js +3 -2
- package/lib/components/Icons/Bike.js.map +1 -1
- package/lib/components/Icons/BirthControl.js +3 -2
- package/lib/components/Icons/BirthControl.js.map +1 -1
- package/lib/components/Icons/BirthdayCake.js +3 -2
- package/lib/components/Icons/BirthdayCake.js.map +1 -1
- package/lib/components/Icons/Boat.js +3 -2
- package/lib/components/Icons/Boat.js.map +1 -1
- package/lib/components/Icons/Body.js +3 -2
- package/lib/components/Icons/Body.js.map +1 -1
- package/lib/components/Icons/Braille.js +3 -2
- package/lib/components/Icons/Braille.js.map +1 -1
- package/lib/components/Icons/Brain.js +3 -2
- package/lib/components/Icons/Brain.js.map +1 -1
- package/lib/components/Icons/BreastReconstruction.js +3 -2
- package/lib/components/Icons/BreastReconstruction.js.map +1 -1
- package/lib/components/Icons/BreastRemoval.js +3 -2
- package/lib/components/Icons/BreastRemoval.js.map +1 -1
- package/lib/components/Icons/Breasts.js +3 -2
- package/lib/components/Icons/Breasts.js.map +1 -1
- package/lib/components/Icons/BrokenHeart.js +3 -2
- package/lib/components/Icons/BrokenHeart.js.map +1 -1
- package/lib/components/Icons/BrokenPuzzle.js +3 -2
- package/lib/components/Icons/BrokenPuzzle.js.map +1 -1
- package/lib/components/Icons/Bus.js +3 -2
- package/lib/components/Icons/Bus.js.map +1 -1
- package/lib/components/Icons/Calendar.js +3 -2
- package/lib/components/Icons/Calendar.js.map +1 -1
- package/lib/components/Icons/CalendarChange.js +3 -2
- package/lib/components/Icons/CalendarChange.js.map +1 -1
- package/lib/components/Icons/CalendarCheck.js +3 -2
- package/lib/components/Icons/CalendarCheck.js.map +1 -1
- package/lib/components/Icons/CalendarEvent.js +3 -2
- package/lib/components/Icons/CalendarEvent.js.map +1 -1
- package/lib/components/Icons/CalendarSave.js +3 -2
- package/lib/components/Icons/CalendarSave.js.map +1 -1
- package/lib/components/Icons/Cancer.js +3 -2
- package/lib/components/Icons/Cancer.js.map +1 -1
- package/lib/components/Icons/Candle.js +3 -2
- package/lib/components/Icons/Candle.js.map +1 -1
- package/lib/components/Icons/Car.js +3 -2
- package/lib/components/Icons/Car.js.map +1 -1
- package/lib/components/Icons/Carton.js +3 -2
- package/lib/components/Icons/Carton.js.map +1 -1
- package/lib/components/Icons/Change.js +3 -2
- package/lib/components/Icons/Change.js.map +1 -1
- package/lib/components/Icons/Check.js +17 -2
- package/lib/components/Icons/Check.js.map +1 -0
- package/lib/components/Icons/CheckFill.js +29 -2
- package/lib/components/Icons/CheckFill.js.map +1 -0
- package/lib/components/Icons/CheckOutline.js +15 -2
- package/lib/components/Icons/CheckOutline.js.map +1 -0
- package/lib/components/Icons/Chest.js +3 -2
- package/lib/components/Icons/Chest.js.map +1 -1
- package/lib/components/Icons/ChevronDown.js +17 -2
- package/lib/components/Icons/ChevronDown.js.map +1 -0
- package/lib/components/Icons/ChevronLeft.js +17 -2
- package/lib/components/Icons/ChevronLeft.js.map +1 -0
- package/lib/components/Icons/ChevronRight.js +17 -2
- package/lib/components/Icons/ChevronRight.js.map +1 -0
- package/lib/components/Icons/ChevronUp.js +17 -2
- package/lib/components/Icons/ChevronUp.js.map +1 -0
- package/lib/components/Icons/ChevronsDown.js +3 -2
- package/lib/components/Icons/ChevronsDown.js.map +1 -1
- package/lib/components/Icons/ChevronsUp.js +3 -2
- package/lib/components/Icons/ChevronsUp.js.map +1 -1
- package/lib/components/Icons/ChildPlaying.js +3 -2
- package/lib/components/Icons/ChildPlaying.js.map +1 -1
- package/lib/components/Icons/Cigarette.js +3 -2
- package/lib/components/Icons/Cigarette.js.map +1 -1
- package/lib/components/Icons/Coins.js +3 -2
- package/lib/components/Icons/Coins.js.map +1 -1
- package/lib/components/Icons/Contacts.js +3 -2
- package/lib/components/Icons/Contacts.js.map +1 -1
- package/lib/components/Icons/Copy.js +3 -2
- package/lib/components/Icons/Copy.js.map +1 -1
- package/lib/components/Icons/CoronaCertificate.js +3 -2
- package/lib/components/Icons/CoronaCertificate.js.map +1 -1
- package/lib/components/Icons/Coronavirus.js +3 -2
- package/lib/components/Icons/Coronavirus.js.map +1 -1
- package/lib/components/Icons/Cough.js +3 -2
- package/lib/components/Icons/Cough.js.map +1 -1
- package/lib/components/Icons/CreditCard.js +3 -2
- package/lib/components/Icons/CreditCard.js.map +1 -1
- package/lib/components/Icons/CriticalHealthInfo.js +3 -2
- package/lib/components/Icons/CriticalHealthInfo.js.map +1 -1
- package/lib/components/Icons/Cross.js +3 -2
- package/lib/components/Icons/Cross.js.map +1 -1
- package/lib/components/Icons/DataExchange.js +3 -2
- package/lib/components/Icons/DataExchange.js.map +1 -1
- package/lib/components/Icons/DataReceived.js +3 -2
- package/lib/components/Icons/DataReceived.js.map +1 -1
- package/lib/components/Icons/DataSent.js +3 -2
- package/lib/components/Icons/DataSent.js.map +1 -1
- package/lib/components/Icons/Depression.js +3 -2
- package/lib/components/Icons/Depression.js.map +1 -1
- package/lib/components/Icons/DigestiveSystem.js +3 -2
- package/lib/components/Icons/DigestiveSystem.js.map +1 -1
- package/lib/components/Icons/Dizzy.js +3 -2
- package/lib/components/Icons/Dizzy.js.map +1 -1
- package/lib/components/Icons/Documents.js +3 -2
- package/lib/components/Icons/Documents.js.map +1 -1
- package/lib/components/Icons/Dog.js +3 -2
- package/lib/components/Icons/Dog.js.map +1 -1
- package/lib/components/Icons/DonorCard.js +3 -2
- package/lib/components/Icons/DonorCard.js.map +1 -1
- package/lib/components/Icons/DotAttachment.js +3 -2
- package/lib/components/Icons/DotAttachment.js.map +1 -1
- package/lib/components/Icons/DotCheckmark.js +3 -2
- package/lib/components/Icons/DotCheckmark.js.map +1 -1
- package/lib/components/Icons/DotCircleArrows.js +3 -2
- package/lib/components/Icons/DotCircleArrows.js.map +1 -1
- package/lib/components/Icons/DotDot.js +3 -2
- package/lib/components/Icons/DotDot.js.map +1 -1
- package/lib/components/Icons/DotExclamationMark.js +3 -2
- package/lib/components/Icons/DotExclamationMark.js.map +1 -1
- package/lib/components/Icons/DotFill.js +3 -2
- package/lib/components/Icons/DotFill.js.map +1 -1
- package/lib/components/Icons/DotGroup.js +3 -2
- package/lib/components/Icons/DotGroup.js.map +1 -1
- package/lib/components/Icons/DotHalfDisc.js +3 -2
- package/lib/components/Icons/DotHalfDisc.js.map +1 -1
- package/lib/components/Icons/DotInfo.js +3 -2
- package/lib/components/Icons/DotInfo.js.map +1 -1
- package/lib/components/Icons/DotLogin.js +3 -2
- package/lib/components/Icons/DotLogin.js.map +1 -1
- package/lib/components/Icons/DotLookingGlass.js +3 -2
- package/lib/components/Icons/DotLookingGlass.js.map +1 -1
- package/lib/components/Icons/DotNoAccess.js +3 -2
- package/lib/components/Icons/DotNoAccess.js.map +1 -1
- package/lib/components/Icons/DotNoEye.js +3 -2
- package/lib/components/Icons/DotNoEye.js.map +1 -1
- package/lib/components/Icons/DotOutline.js +3 -2
- package/lib/components/Icons/DotOutline.js.map +1 -1
- package/lib/components/Icons/DotPencil.js +3 -2
- package/lib/components/Icons/DotPencil.js.map +1 -1
- package/lib/components/Icons/DotQuestionMark.js +3 -2
- package/lib/components/Icons/DotQuestionMark.js.map +1 -1
- package/lib/components/Icons/DotTriangle.js +3 -2
- package/lib/components/Icons/DotTriangle.js.map +1 -1
- package/lib/components/Icons/DotX.js +3 -2
- package/lib/components/Icons/DotX.js.map +1 -1
- package/lib/components/Icons/Download.js +3 -2
- package/lib/components/Icons/Download.js.map +1 -1
- package/lib/components/Icons/Draft.js +3 -2
- package/lib/components/Icons/Draft.js.map +1 -1
- package/lib/components/Icons/Drag.js +3 -2
- package/lib/components/Icons/Drag.js.map +1 -1
- package/lib/components/Icons/EChat.js +3 -2
- package/lib/components/Icons/EChat.js.map +1 -1
- package/lib/components/Icons/Ear.js +3 -2
- package/lib/components/Icons/Ear.js.map +1 -1
- package/lib/components/Icons/EarDeaf.js +3 -2
- package/lib/components/Icons/EarDeaf.js.map +1 -1
- package/lib/components/Icons/EarHearingAid.js +3 -2
- package/lib/components/Icons/EarHearingAid.js.map +1 -1
- package/lib/components/Icons/EarNoseThroat.js +3 -2
- package/lib/components/Icons/EarNoseThroat.js.map +1 -1
- package/lib/components/Icons/EarVolume.js +3 -2
- package/lib/components/Icons/EarVolume.js.map +1 -1
- package/lib/components/Icons/Edit.js +3 -2
- package/lib/components/Icons/Edit.js.map +1 -1
- package/lib/components/Icons/ElderlyPerson.js +3 -2
- package/lib/components/Icons/ElderlyPerson.js.map +1 -1
- package/lib/components/Icons/Embolization.js +3 -2
- package/lib/components/Icons/Embolization.js.map +1 -1
- package/lib/components/Icons/EmergencyCall.js +3 -2
- package/lib/components/Icons/EmergencyCall.js.map +1 -1
- package/lib/components/Icons/EmoticonAnnoyed.js +3 -2
- package/lib/components/Icons/EmoticonAnnoyed.js.map +1 -1
- package/lib/components/Icons/EmoticonDelighted.js +3 -2
- package/lib/components/Icons/EmoticonDelighted.js.map +1 -1
- package/lib/components/Icons/EmoticonDisappointed.js +3 -2
- package/lib/components/Icons/EmoticonDisappointed.js.map +1 -1
- package/lib/components/Icons/EmoticonHappy.js +3 -2
- package/lib/components/Icons/EmoticonHappy.js.map +1 -1
- package/lib/components/Icons/EmoticonMeh.js +3 -2
- package/lib/components/Icons/EmoticonMeh.js.map +1 -1
- package/lib/components/Icons/EmptyBox.js +17 -2
- package/lib/components/Icons/EmptyBox.js.map +1 -0
- package/lib/components/Icons/EnterFullScreen.js +3 -2
- package/lib/components/Icons/EnterFullScreen.js.map +1 -1
- package/lib/components/Icons/Envelope.js +3 -2
- package/lib/components/Icons/Envelope.js.map +1 -1
- package/lib/components/Icons/Epilepsy.js +3 -2
- package/lib/components/Icons/Epilepsy.js.map +1 -1
- package/lib/components/Icons/Eraser.js +3 -2
- package/lib/components/Icons/Eraser.js.map +1 -1
- package/lib/components/Icons/ErrorSignFill.js +17 -2
- package/lib/components/Icons/ErrorSignFill.js.map +1 -0
- package/lib/components/Icons/ErrorSignStroke.js +3 -2
- package/lib/components/Icons/ErrorSignStroke.js.map +1 -1
- package/lib/components/Icons/EuropeanHealthCard.js +3 -2
- package/lib/components/Icons/EuropeanHealthCard.js.map +1 -1
- package/lib/components/Icons/ExitFullScreen.js +3 -2
- package/lib/components/Icons/ExitFullScreen.js.map +1 -1
- package/lib/components/Icons/Eye.js +3 -2
- package/lib/components/Icons/Eye.js.map +1 -1
- package/lib/components/Icons/Facebook.js +3 -2
- package/lib/components/Icons/Facebook.js.map +1 -1
- package/lib/components/Icons/FallingLeaf.js +3 -2
- package/lib/components/Icons/FallingLeaf.js.map +1 -1
- package/lib/components/Icons/Feedback.js +3 -2
- package/lib/components/Icons/Feedback.js.map +1 -1
- package/lib/components/Icons/Female.js +3 -2
- package/lib/components/Icons/Female.js.map +1 -1
- package/lib/components/Icons/FemaleDoctor.js +3 -2
- package/lib/components/Icons/FemaleDoctor.js.map +1 -1
- package/lib/components/Icons/Ferry.js +3 -2
- package/lib/components/Icons/Ferry.js.map +1 -1
- package/lib/components/Icons/File.js +3 -2
- package/lib/components/Icons/File.js.map +1 -1
- package/lib/components/Icons/Filter.js +45 -2
- package/lib/components/Icons/Filter.js.map +1 -0
- package/lib/components/Icons/FingerBleed.js +3 -2
- package/lib/components/Icons/FingerBleed.js.map +1 -1
- package/lib/components/Icons/FirstAidKit.js +3 -2
- package/lib/components/Icons/FirstAidKit.js.map +1 -1
- package/lib/components/Icons/Fish.js +3 -2
- package/lib/components/Icons/Fish.js.map +1 -1
- package/lib/components/Icons/FloppyDisk.js +3 -2
- package/lib/components/Icons/FloppyDisk.js.map +1 -1
- package/lib/components/Icons/Football.js +3 -2
- package/lib/components/Icons/Football.js.map +1 -1
- package/lib/components/Icons/Form.js +3 -2
- package/lib/components/Icons/Form.js.map +1 -1
- package/lib/components/Icons/Forward.js +17 -2
- package/lib/components/Icons/Forward.js.map +1 -0
- package/lib/components/Icons/Gallery.js +3 -2
- package/lib/components/Icons/Gallery.js.map +1 -1
- package/lib/components/Icons/Garden.js +3 -2
- package/lib/components/Icons/Garden.js.map +1 -1
- package/lib/components/Icons/GasCan.js +3 -2
- package/lib/components/Icons/GasCan.js.map +1 -1
- package/lib/components/Icons/GenderIdentity.js +3 -2
- package/lib/components/Icons/GenderIdentity.js.map +1 -1
- package/lib/components/Icons/GlassWater.js +3 -2
- package/lib/components/Icons/GlassWater.js.map +1 -1
- package/lib/components/Icons/Glasses.js +3 -2
- package/lib/components/Icons/Glasses.js.map +1 -1
- package/lib/components/Icons/Globe.js +3 -2
- package/lib/components/Icons/Globe.js.map +1 -1
- package/lib/components/Icons/Grain.js +3 -2
- package/lib/components/Icons/Grain.js.map +1 -1
- package/lib/components/Icons/Graph.js +3 -2
- package/lib/components/Icons/Graph.js.map +1 -1
- package/lib/components/Icons/Group.js +3 -2
- package/lib/components/Icons/Group.js.map +1 -1
- package/lib/components/Icons/GroupTwins.js +3 -2
- package/lib/components/Icons/GroupTwins.js.map +1 -1
- package/lib/components/Icons/HTMLFile.js +3 -2
- package/lib/components/Icons/HTMLFile.js.map +1 -1
- package/lib/components/Icons/HandWaving.js +9 -2
- package/lib/components/Icons/HandWaving.js.map +1 -0
- package/lib/components/Icons/HandWithDisease.js +3 -2
- package/lib/components/Icons/HandWithDisease.js.map +1 -1
- package/lib/components/Icons/HandsAndHeart.js +3 -2
- package/lib/components/Icons/HandsAndHeart.js.map +1 -1
- package/lib/components/Icons/HealthClinic.js +3 -2
- package/lib/components/Icons/HealthClinic.js.map +1 -1
- package/lib/components/Icons/HealthMeasurements.js +3 -2
- package/lib/components/Icons/HealthMeasurements.js.map +1 -1
- package/lib/components/Icons/HealthWarning.js +3 -2
- package/lib/components/Icons/HealthWarning.js.map +1 -1
- package/lib/components/Icons/HealthcarePerson.js +3 -2
- package/lib/components/Icons/HealthcarePerson.js.map +1 -1
- package/lib/components/Icons/HealthcarePersonell.js +3 -2
- package/lib/components/Icons/HealthcarePersonell.js.map +1 -1
- package/lib/components/Icons/HearingProtection.js +3 -2
- package/lib/components/Icons/HearingProtection.js.map +1 -1
- package/lib/components/Icons/Heart.js +3 -2
- package/lib/components/Icons/Heart.js.map +1 -1
- package/lib/components/Icons/HeartHands.js +3 -2
- package/lib/components/Icons/HeartHands.js.map +1 -1
- package/lib/components/Icons/HelpSign.js +3 -2
- package/lib/components/Icons/HelpSign.js.map +1 -1
- package/lib/components/Icons/HelpingHand.js +3 -2
- package/lib/components/Icons/HelpingHand.js.map +1 -1
- package/lib/components/Icons/Hemodialysis.js +3 -2
- package/lib/components/Icons/Hemodialysis.js.map +1 -1
- package/lib/components/Icons/Hiker.js +3 -2
- package/lib/components/Icons/Hiker.js.map +1 -1
- package/lib/components/Icons/Hipprosthesis.js +3 -2
- package/lib/components/Icons/Hipprosthesis.js.map +1 -1
- package/lib/components/Icons/History.js +3 -2
- package/lib/components/Icons/History.js.map +1 -1
- package/lib/components/Icons/HivAndAids.js +3 -2
- package/lib/components/Icons/HivAndAids.js.map +1 -1
- package/lib/components/Icons/Home.js +3 -2
- package/lib/components/Icons/Home.js.map +1 -1
- package/lib/components/Icons/HomeFill.js +3 -2
- package/lib/components/Icons/HomeFill.js.map +1 -1
- package/lib/components/Icons/Hormone.js +3 -2
- package/lib/components/Icons/Hormone.js.map +1 -1
- package/lib/components/Icons/Hospital.js +3 -2
- package/lib/components/Icons/Hospital.js.map +1 -1
- package/lib/components/Icons/Hourglass.js +3 -2
- package/lib/components/Icons/Hourglass.js.map +1 -1
- package/lib/components/Icons/IconNames.js +4 -1
- package/lib/components/Icons/IconNames.js.map +1 -1
- package/lib/components/Icons/ImgFile.js +3 -2
- package/lib/components/Icons/ImgFile.js.map +1 -1
- package/lib/components/Icons/Inbox.js +3 -2
- package/lib/components/Icons/Inbox.js.map +1 -1
- package/lib/components/Icons/InfoSignFill.js +17 -2
- package/lib/components/Icons/InfoSignFill.js.map +1 -0
- package/lib/components/Icons/InfoSignStroke.js +3 -2
- package/lib/components/Icons/InfoSignStroke.js.map +1 -1
- package/lib/components/Icons/Instagram.js +3 -2
- package/lib/components/Icons/Instagram.js.map +1 -1
- package/lib/components/Icons/Intravenous.js +3 -2
- package/lib/components/Icons/Intravenous.js.map +1 -1
- package/lib/components/Icons/JointPain.js +3 -2
- package/lib/components/Icons/JointPain.js.map +1 -1
- package/lib/components/Icons/Journal.js +3 -2
- package/lib/components/Icons/Journal.js.map +1 -1
- package/lib/components/Icons/JpgFile.js +3 -2
- package/lib/components/Icons/JpgFile.js.map +1 -1
- package/lib/components/Icons/Kidney.js +3 -2
- package/lib/components/Icons/Kidney.js.map +1 -1
- package/lib/components/Icons/KitchenScale.js +3 -2
- package/lib/components/Icons/KitchenScale.js.map +1 -1
- package/lib/components/Icons/Kjernejournal.js +3 -2
- package/lib/components/Icons/Kjernejournal.js.map +1 -1
- package/lib/components/Icons/Laboratory.js +3 -2
- package/lib/components/Icons/Laboratory.js.map +1 -1
- package/lib/components/Icons/LaptopBlog.js +3 -2
- package/lib/components/Icons/LaptopBlog.js.map +1 -1
- package/lib/components/Icons/LawBook.js +3 -2
- package/lib/components/Icons/LawBook.js.map +1 -1
- package/lib/components/Icons/LegalDocument.js +3 -2
- package/lib/components/Icons/LegalDocument.js.map +1 -1
- package/lib/components/Icons/LightBulb.js +3 -2
- package/lib/components/Icons/LightBulb.js.map +1 -1
- package/lib/components/Icons/List.js +3 -2
- package/lib/components/Icons/List.js.map +1 -1
- package/lib/components/Icons/Location.js +3 -2
- package/lib/components/Icons/Location.js.map +1 -1
- package/lib/components/Icons/LocationFill.js +3 -2
- package/lib/components/Icons/LocationFill.js.map +1 -1
- package/lib/components/Icons/Lock.js +3 -2
- package/lib/components/Icons/Lock.js.map +1 -1
- package/lib/components/Icons/Login.js +3 -2
- package/lib/components/Icons/Login.js.map +1 -1
- package/lib/components/Icons/Logout.js +3 -2
- package/lib/components/Icons/Logout.js.map +1 -1
- package/lib/components/Icons/Lungs.js +3 -2
- package/lib/components/Icons/Lungs.js.map +1 -1
- package/lib/components/Icons/Makeup.js +3 -2
- package/lib/components/Icons/Makeup.js.map +1 -1
- package/lib/components/Icons/MaleDoctor.js +3 -2
- package/lib/components/Icons/MaleDoctor.js.map +1 -1
- package/lib/components/Icons/MaleDoctorAndPerson.js +3 -2
- package/lib/components/Icons/MaleDoctorAndPerson.js.map +1 -1
- package/lib/components/Icons/MaleDoctorCompact.js +3 -2
- package/lib/components/Icons/MaleDoctorCompact.js.map +1 -1
- package/lib/components/Icons/MaleDoctorCompactFill.js +3 -2
- package/lib/components/Icons/MaleDoctorCompactFill.js.map +1 -1
- package/lib/components/Icons/MaleGenitalia.js +3 -2
- package/lib/components/Icons/MaleGenitalia.js.map +1 -1
- package/lib/components/Icons/MeasuringTape.js +3 -2
- package/lib/components/Icons/MeasuringTape.js.map +1 -1
- package/lib/components/Icons/Medicine.js +3 -2
- package/lib/components/Icons/Medicine.js.map +1 -1
- package/lib/components/Icons/MedicineWarning.js +3 -2
- package/lib/components/Icons/MedicineWarning.js.map +1 -1
- package/lib/components/Icons/MentalHealthAdult.js +3 -2
- package/lib/components/Icons/MentalHealthAdult.js.map +1 -1
- package/lib/components/Icons/MentalHealthChild.js +3 -2
- package/lib/components/Icons/MentalHealthChild.js.map +1 -1
- package/lib/components/Icons/Menu.js +3 -2
- package/lib/components/Icons/Menu.js.map +1 -1
- package/lib/components/Icons/Microscope.js +3 -2
- package/lib/components/Icons/Microscope.js.map +1 -1
- package/lib/components/Icons/Minus.js +3 -2
- package/lib/components/Icons/Minus.js.map +1 -1
- package/lib/components/Icons/Mirror.js +3 -2
- package/lib/components/Icons/Mirror.js.map +1 -1
- package/lib/components/Icons/MobilePhone.js +3 -2
- package/lib/components/Icons/MobilePhone.js.map +1 -1
- package/lib/components/Icons/MotherHoldingBaby.js +3 -2
- package/lib/components/Icons/MotherHoldingBaby.js.map +1 -1
- package/lib/components/Icons/MuscleBack.js +3 -2
- package/lib/components/Icons/MuscleBack.js.map +1 -1
- package/lib/components/Icons/MuscleLeg.js +3 -2
- package/lib/components/Icons/MuscleLeg.js.map +1 -1
- package/lib/components/Icons/Mushroom.js +3 -2
- package/lib/components/Icons/Mushroom.js.map +1 -1
- package/lib/components/Icons/Music.js +3 -2
- package/lib/components/Icons/Music.js.map +1 -1
- package/lib/components/Icons/MusselsAndSalt.js +3 -2
- package/lib/components/Icons/MusselsAndSalt.js.map +1 -1
- package/lib/components/Icons/NoAccess.js +3 -2
- package/lib/components/Icons/NoAccess.js.map +1 -1
- package/lib/components/Icons/NoEye.js +3 -2
- package/lib/components/Icons/NoEye.js.map +1 -1
- package/lib/components/Icons/NoFilter.js +3 -2
- package/lib/components/Icons/NoFilter.js.map +1 -1
- package/lib/components/Icons/Notepad.js +3 -2
- package/lib/components/Icons/Notepad.js.map +1 -1
- package/lib/components/Icons/Osteotomy.js +3 -2
- package/lib/components/Icons/Osteotomy.js.map +1 -1
- package/lib/components/Icons/PaintRoller.js +3 -2
- package/lib/components/Icons/PaintRoller.js.map +1 -1
- package/lib/components/Icons/PaperPlane.js +3 -2
- package/lib/components/Icons/PaperPlane.js.map +1 -1
- package/lib/components/Icons/PatientAndPerson.js +3 -2
- package/lib/components/Icons/PatientAndPerson.js.map +1 -1
- package/lib/components/Icons/Pause.js +3 -2
- package/lib/components/Icons/Pause.js.map +1 -1
- package/lib/components/Icons/PdfFile.js +3 -2
- package/lib/components/Icons/PdfFile.js.map +1 -1
- package/lib/components/Icons/Pencil.js +3 -2
- package/lib/components/Icons/Pencil.js.map +1 -1
- package/lib/components/Icons/PeopleTalking.js +3 -2
- package/lib/components/Icons/PeopleTalking.js.map +1 -1
- package/lib/components/Icons/Peritonealdialysis.js +3 -2
- package/lib/components/Icons/Peritonealdialysis.js.map +1 -1
- package/lib/components/Icons/Person.js +3 -2
- package/lib/components/Icons/Person.js.map +1 -1
- package/lib/components/Icons/PersonAndPatient.js +3 -2
- package/lib/components/Icons/PersonAndPatient.js.map +1 -1
- package/lib/components/Icons/PersonCancel.js +3 -2
- package/lib/components/Icons/PersonCancel.js.map +1 -1
- package/lib/components/Icons/PersonInXRayMachine.js +3 -2
- package/lib/components/Icons/PersonInXRayMachine.js.map +1 -1
- package/lib/components/Icons/PersonOverweight.js +3 -2
- package/lib/components/Icons/PersonOverweight.js.map +1 -1
- package/lib/components/Icons/PersonRelaxing.js +3 -2
- package/lib/components/Icons/PersonRelaxing.js.map +1 -1
- package/lib/components/Icons/PersonWithBrain.js +3 -2
- package/lib/components/Icons/PersonWithBrain.js.map +1 -1
- package/lib/components/Icons/PersonWithBrokenArm.js +3 -2
- package/lib/components/Icons/PersonWithBrokenArm.js.map +1 -1
- package/lib/components/Icons/PersonWithCrutches.js +3 -2
- package/lib/components/Icons/PersonWithCrutches.js.map +1 -1
- package/lib/components/Icons/PersonWithJaw.js +3 -2
- package/lib/components/Icons/PersonWithJaw.js.map +1 -1
- package/lib/components/Icons/PersonWithMagnifyingGlass.js +3 -2
- package/lib/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
- package/lib/components/Icons/PersonWithSenses.js +3 -2
- package/lib/components/Icons/PersonWithSenses.js.map +1 -1
- package/lib/components/Icons/PersonWorking.js +3 -2
- package/lib/components/Icons/PersonWorking.js.map +1 -1
- package/lib/components/Icons/PersonalPlan.js +3 -2
- package/lib/components/Icons/PersonalPlan.js.map +1 -1
- package/lib/components/Icons/PizzaSlice.js +3 -2
- package/lib/components/Icons/PizzaSlice.js.map +1 -1
- package/lib/components/Icons/Plane.js +3 -2
- package/lib/components/Icons/Plane.js.map +1 -1
- package/lib/components/Icons/Plant.js +3 -2
- package/lib/components/Icons/Plant.js.map +1 -1
- package/lib/components/Icons/PlateKnifeFork.js +3 -2
- package/lib/components/Icons/PlateKnifeFork.js.map +1 -1
- package/lib/components/Icons/Play.js +3 -2
- package/lib/components/Icons/Play.js.map +1 -1
- package/lib/components/Icons/PlusLarge.js +3 -2
- package/lib/components/Icons/PlusLarge.js.map +1 -1
- package/lib/components/Icons/PlusSmall.js +17 -2
- package/lib/components/Icons/PlusSmall.js.map +1 -0
- package/lib/components/Icons/PngFile.js +3 -2
- package/lib/components/Icons/PngFile.js.map +1 -1
- package/lib/components/Icons/Podcast.js +3 -2
- package/lib/components/Icons/Podcast.js.map +1 -1
- package/lib/components/Icons/PoisonInformation.js +3 -2
- package/lib/components/Icons/PoisonInformation.js.map +1 -1
- package/lib/components/Icons/Pregnant.js +3 -2
- package/lib/components/Icons/Pregnant.js.map +1 -1
- package/lib/components/Icons/Printer.js +3 -2
- package/lib/components/Icons/Printer.js.map +1 -1
- package/lib/components/Icons/Psychosis.js +3 -2
- package/lib/components/Icons/Psychosis.js.map +1 -1
- package/lib/components/Icons/Publication.js +3 -2
- package/lib/components/Icons/Publication.js.map +1 -1
- package/lib/components/Icons/Puzzle.js +3 -2
- package/lib/components/Icons/Puzzle.js.map +1 -1
- package/lib/components/Icons/QrCode.js +3 -2
- package/lib/components/Icons/QrCode.js.map +1 -1
- package/lib/components/Icons/Quarrel.js +3 -2
- package/lib/components/Icons/Quarrel.js.map +1 -1
- package/lib/components/Icons/RadioTherapy.js +3 -2
- package/lib/components/Icons/RadioTherapy.js.map +1 -1
- package/lib/components/Icons/RadioactiveTreatment.js +3 -2
- package/lib/components/Icons/RadioactiveTreatment.js.map +1 -1
- package/lib/components/Icons/Radioiodine.js +3 -2
- package/lib/components/Icons/Radioiodine.js.map +1 -1
- package/lib/components/Icons/Receipt.js +3 -2
- package/lib/components/Icons/Receipt.js.map +1 -1
- package/lib/components/Icons/Receptionist.js +3 -2
- package/lib/components/Icons/Receptionist.js.map +1 -1
- package/lib/components/Icons/Recovery.js +3 -2
- package/lib/components/Icons/Recovery.js.map +1 -1
- package/lib/components/Icons/Referral.js +3 -2
- package/lib/components/Icons/Referral.js.map +1 -1
- package/lib/components/Icons/Refresh.js +3 -2
- package/lib/components/Icons/Refresh.js.map +1 -1
- package/lib/components/Icons/Refund.js +3 -2
- package/lib/components/Icons/Refund.js.map +1 -1
- package/lib/components/Icons/Reminder.js +3 -2
- package/lib/components/Icons/Reminder.js.map +1 -1
- package/lib/components/Icons/Reply.js +3 -2
- package/lib/components/Icons/Reply.js.map +1 -1
- package/lib/components/Icons/Rocket.js +3 -2
- package/lib/components/Icons/Rocket.js.map +1 -1
- package/lib/components/Icons/RtfFile.js +3 -2
- package/lib/components/Icons/RtfFile.js.map +1 -1
- package/lib/components/Icons/STDs.js +3 -2
- package/lib/components/Icons/STDs.js.map +1 -1
- package/lib/components/Icons/Save.js +3 -2
- package/lib/components/Icons/Save.js.map +1 -1
- package/lib/components/Icons/Scale.js +3 -2
- package/lib/components/Icons/Scale.js.map +1 -1
- package/lib/components/Icons/ScreenReader.js +3 -2
- package/lib/components/Icons/ScreenReader.js.map +1 -1
- package/lib/components/Icons/Search.js +27 -2
- package/lib/components/Icons/Search.js.map +1 -0
- package/lib/components/Icons/SectionSign.js +3 -2
- package/lib/components/Icons/SectionSign.js.map +1 -1
- package/lib/components/Icons/Settings.js +3 -2
- package/lib/components/Icons/Settings.js.map +1 -1
- package/lib/components/Icons/SettingsFill.js +3 -2
- package/lib/components/Icons/SettingsFill.js.map +1 -1
- package/lib/components/Icons/Sexualorientation.js +3 -2
- package/lib/components/Icons/Sexualorientation.js.map +1 -1
- package/lib/components/Icons/ShakingHand.js +3 -2
- package/lib/components/Icons/ShakingHand.js.map +1 -1
- package/lib/components/Icons/Share.js +3 -2
- package/lib/components/Icons/Share.js.map +1 -1
- package/lib/components/Icons/SharedHealthData.js +3 -2
- package/lib/components/Icons/SharedHealthData.js.map +1 -1
- package/lib/components/Icons/SharedHealthMeasurements.js +3 -2
- package/lib/components/Icons/SharedHealthMeasurements.js.map +1 -1
- package/lib/components/Icons/Shield.js +3 -2
- package/lib/components/Icons/Shield.js.map +1 -1
- package/lib/components/Icons/ShuntOperation.js +3 -2
- package/lib/components/Icons/ShuntOperation.js.map +1 -1
- package/lib/components/Icons/Skeleton.js +3 -2
- package/lib/components/Icons/Skeleton.js.map +1 -1
- package/lib/components/Icons/Skin.js +3 -2
- package/lib/components/Icons/Skin.js.map +1 -1
- package/lib/components/Icons/Snake.js +3 -2
- package/lib/components/Icons/Snake.js.map +1 -1
- package/lib/components/Icons/Snapchat.js +3 -2
- package/lib/components/Icons/Snapchat.js.map +1 -1
- package/lib/components/Icons/Sort.js +3 -2
- package/lib/components/Icons/Sort.js.map +1 -1
- package/lib/components/Icons/SortDown.js +3 -2
- package/lib/components/Icons/SortDown.js.map +1 -1
- package/lib/components/Icons/SortUp.js +3 -2
- package/lib/components/Icons/SortUp.js.map +1 -1
- package/lib/components/Icons/SpeechBubble.js +3 -2
- package/lib/components/Icons/SpeechBubble.js.map +1 -1
- package/lib/components/Icons/Spray.js +3 -2
- package/lib/components/Icons/Spray.js.map +1 -1
- package/lib/components/Icons/StarFill.js +3 -2
- package/lib/components/Icons/StarFill.js.map +1 -1
- package/lib/components/Icons/StarStroke.js +3 -2
- package/lib/components/Icons/StarStroke.js.map +1 -1
- package/lib/components/Icons/StickyNote.js +3 -2
- package/lib/components/Icons/StickyNote.js.map +1 -1
- package/lib/components/Icons/StickyNotes.js +3 -2
- package/lib/components/Icons/StickyNotes.js.map +1 -1
- package/lib/components/Icons/Stopwatch.js +3 -2
- package/lib/components/Icons/Stopwatch.js.map +1 -1
- package/lib/components/Icons/Sun.js +3 -2
- package/lib/components/Icons/Sun.js.map +1 -1
- package/lib/components/Icons/SupportingPerson.js +3 -2
- package/lib/components/Icons/SupportingPerson.js.map +1 -1
- package/lib/components/Icons/Surgery.js +3 -2
- package/lib/components/Icons/Surgery.js.map +1 -1
- package/lib/components/Icons/Sweets.js +3 -2
- package/lib/components/Icons/Sweets.js.map +1 -1
- package/lib/components/Icons/Syringe.js +4 -3
- package/lib/components/Icons/Syringe.js.map +1 -1
- package/lib/components/Icons/Taxi.js +3 -2
- package/lib/components/Icons/Taxi.js.map +1 -1
- package/lib/components/Icons/TeddyBear.js +3 -2
- package/lib/components/Icons/TeddyBear.js.map +1 -1
- package/lib/components/Icons/Teenagers.js +3 -2
- package/lib/components/Icons/Teenagers.js.map +1 -1
- package/lib/components/Icons/ThinkingAboutBaby.js +3 -2
- package/lib/components/Icons/ThinkingAboutBaby.js.map +1 -1
- package/lib/components/Icons/Ticket.js +3 -2
- package/lib/components/Icons/Ticket.js.map +1 -1
- package/lib/components/Icons/TimePassing.js +3 -2
- package/lib/components/Icons/TimePassing.js.map +1 -1
- package/lib/components/Icons/Toddler.js +3 -2
- package/lib/components/Icons/Toddler.js.map +1 -1
- package/lib/components/Icons/Tombstone.js +3 -2
- package/lib/components/Icons/Tombstone.js.map +1 -1
- package/lib/components/Icons/Toolbox.js +3 -2
- package/lib/components/Icons/Toolbox.js.map +1 -1
- package/lib/components/Icons/Tooth.js +3 -2
- package/lib/components/Icons/Tooth.js.map +1 -1
- package/lib/components/Icons/TotalKneeProsthesis.js +3 -2
- package/lib/components/Icons/TotalKneeProsthesis.js.map +1 -1
- package/lib/components/Icons/Train.js +3 -2
- package/lib/components/Icons/Train.js.map +1 -1
- package/lib/components/Icons/Transplantation.js +3 -2
- package/lib/components/Icons/Transplantation.js.map +1 -1
- package/lib/components/Icons/TrashCan.js +3 -2
- package/lib/components/Icons/TrashCan.js.map +1 -1
- package/lib/components/Icons/TravelRoute.js +3 -2
- package/lib/components/Icons/TravelRoute.js.map +1 -1
- package/lib/components/Icons/TreatmentAids.js +3 -2
- package/lib/components/Icons/TreatmentAids.js.map +1 -1
- package/lib/components/Icons/TriangleX.js +33 -2
- package/lib/components/Icons/TriangleX.js.map +1 -0
- package/lib/components/Icons/Twitter.js +3 -2
- package/lib/components/Icons/Twitter.js.map +1 -1
- package/lib/components/Icons/Undo.js +3 -2
- package/lib/components/Icons/Undo.js.map +1 -1
- package/lib/components/Icons/UniProsthesis.js +3 -2
- package/lib/components/Icons/UniProsthesis.js.map +1 -1
- package/lib/components/Icons/Upload.js +3 -2
- package/lib/components/Icons/Upload.js.map +1 -1
- package/lib/components/Icons/UserOrganization.js +3 -2
- package/lib/components/Icons/UserOrganization.js.map +1 -1
- package/lib/components/Icons/Vaccine.js +3 -2
- package/lib/components/Icons/Vaccine.js.map +1 -1
- package/lib/components/Icons/VerticalDots.js +17 -2
- package/lib/components/Icons/VerticalDots.js.map +1 -0
- package/lib/components/Icons/VideoCamera.js +3 -2
- package/lib/components/Icons/VideoCamera.js.map +1 -1
- package/lib/components/Icons/VideoChat.js +3 -2
- package/lib/components/Icons/VideoChat.js.map +1 -1
- package/lib/components/Icons/Wallet.js +3 -2
- package/lib/components/Icons/Wallet.js.map +1 -1
- package/lib/components/Icons/Watch.js +3 -2
- package/lib/components/Icons/Watch.js.map +1 -1
- package/lib/components/Icons/Website.js +3 -2
- package/lib/components/Icons/Website.js.map +1 -1
- package/lib/components/Icons/Wheelchair.js +3 -2
- package/lib/components/Icons/Wheelchair.js.map +1 -1
- package/lib/components/Icons/WheelchairActive.js +3 -2
- package/lib/components/Icons/WheelchairActive.js.map +1 -1
- package/lib/components/Icons/Window.js +3 -2
- package/lib/components/Icons/Window.js.map +1 -1
- package/lib/components/Icons/WordDocument.js +3 -2
- package/lib/components/Icons/WordDocument.js.map +1 -1
- package/lib/components/Icons/WorkSuitcase.js +3 -2
- package/lib/components/Icons/WorkSuitcase.js.map +1 -1
- package/lib/components/Icons/X.js +19 -2
- package/lib/components/Icons/X.js.map +1 -0
- package/lib/components/Icons/XOutline.js +3 -2
- package/lib/components/Icons/XOutline.js.map +1 -1
- package/lib/components/Icons/XmlFile.js +3 -2
- package/lib/components/Icons/XmlFile.js.map +1 -1
- package/lib/components/Icons/YouTube.js +3 -2
- package/lib/components/Icons/YouTube.js.map +1 -1
- package/lib/components/Icons/Zoom.js +3 -2
- package/lib/components/Icons/Zoom.js.map +1 -1
- package/lib/components/Icons/ZoomInLeft.js +3 -2
- package/lib/components/Icons/ZoomInLeft.js.map +1 -1
- package/lib/components/Icons/ZoomOutLeft.js +3 -2
- package/lib/components/Icons/ZoomOutLeft.js.map +1 -1
- package/lib/components/Illustrations/BabyMobile.js +5 -4
- package/lib/components/Illustrations/BabyMobile.js.map +1 -1
- package/lib/components/Illustrations/BabyMobileMedium.js +264 -2
- package/lib/components/Illustrations/BabyMobileMedium.js.map +1 -0
- package/lib/components/Illustrations/Child.js +5 -4
- package/lib/components/Illustrations/Child.js.map +1 -1
- package/lib/components/Illustrations/ChildMedium.js +127 -2
- package/lib/components/Illustrations/ChildMedium.js.map +1 -0
- package/lib/components/Illustrations/Doctor.js +7 -6
- package/lib/components/Illustrations/Doctor.js.map +1 -1
- package/lib/components/Illustrations/DoctorMedium.js +55 -2
- package/lib/components/Illustrations/DoctorMedium.js.map +1 -0
- package/lib/components/Illustrations/DoctorSmall.js +53 -2
- package/lib/components/Illustrations/DoctorSmall.js.map +1 -0
- package/lib/components/Illustrations/FacialRecognitionFingerprint.js +5 -4
- package/lib/components/Illustrations/FacialRecognitionFingerprint.js.map +1 -1
- package/lib/components/Illustrations/FacialRecognitionFingerprintMedium.js +200 -2
- package/lib/components/Illustrations/FacialRecognitionFingerprintMedium.js.map +1 -0
- package/lib/components/Illustrations/GiveBabyFood.js +5 -4
- package/lib/components/Illustrations/GiveBabyFood.js.map +1 -1
- package/lib/components/Illustrations/GiveBabyFoodMedium.js +241 -2
- package/lib/components/Illustrations/GiveBabyFoodMedium.js.map +1 -0
- package/lib/components/Illustrations/HealthcarePersonnel.js +7 -6
- package/lib/components/Illustrations/HealthcarePersonnel.js.map +1 -1
- package/lib/components/Illustrations/HealthcarePersonnelMedium.js +149 -2
- package/lib/components/Illustrations/HealthcarePersonnelMedium.js.map +1 -0
- package/lib/components/Illustrations/HealthcarePersonnelSmall.js +150 -2
- package/lib/components/Illustrations/HealthcarePersonnelSmall.js.map +1 -0
- package/lib/components/Illustrations/IllustrationNames.js +37 -1
- package/lib/components/Illustrations/IllustrationNames.js.map +1 -0
- package/lib/components/Illustrations/ReadLetters.js +5 -4
- package/lib/components/Illustrations/ReadLetters.js.map +1 -1
- package/lib/components/Illustrations/ReadLettersMedium.js +79 -2
- package/lib/components/Illustrations/ReadLettersMedium.js.map +1 -0
- package/lib/components/Illustrations/Stork.js +5 -4
- package/lib/components/Illustrations/Stork.js.map +1 -1
- package/lib/components/Illustrations/StorkMedium.js +97 -2
- package/lib/components/Illustrations/StorkMedium.js.map +1 -0
- package/lib/components/Illustrations/Stroller.js +5 -4
- package/lib/components/Illustrations/Stroller.js.map +1 -1
- package/lib/components/Illustrations/StrollerMedium.js +220 -2
- package/lib/components/Illustrations/StrollerMedium.js.map +1 -0
- package/lib/components/Illustrations/Support2.js +5 -4
- package/lib/components/Illustrations/Support2.js.map +1 -1
- package/lib/components/Illustrations/Support2Medium.js +159 -2
- package/lib/components/Illustrations/Support2Medium.js.map +1 -0
- package/lib/components/Illustrations/Thinking.js +5 -4
- package/lib/components/Illustrations/Thinking.js.map +1 -1
- package/lib/components/Illustrations/ThinkingMedium.js +99 -2
- package/lib/components/Illustrations/ThinkingMedium.js.map +1 -0
- package/lib/components/Input/index.js +6 -2
- package/lib/components/Input/index.js.map +1 -0
- package/lib/components/Label/index.js +6 -2
- package/lib/components/Label/index.js.map +1 -0
- package/lib/components/Loader/index.js +11 -5
- package/lib/components/Loader/index.js.map +1 -1
- package/lib/components/Logo/index.js +6 -2
- package/lib/components/Logo/index.js.map +1 -1
- package/lib/components/Modal/index.js +34 -28
- package/lib/components/Modal/index.js.map +1 -1
- package/lib/components/NotificationPanel/index.js +10 -6
- package/lib/components/NotificationPanel/index.js.map +1 -1
- package/lib/components/Panel/index.js +22 -15
- package/lib/components/Panel/index.js.map +1 -1
- package/lib/components/PanelList/index.js +5 -1
- package/lib/components/PanelList/index.js.map +1 -1
- package/lib/components/PopMenu/index.js +26 -20
- package/lib/components/PopMenu/index.js.map +1 -1
- package/lib/components/Portal/index.js +27 -1
- package/lib/components/Portal/index.js.map +1 -0
- package/lib/components/Progressbar/index.js +21 -15
- package/lib/components/Progressbar/index.js.map +1 -1
- package/lib/components/PromoPanel/index.js +12 -8
- package/lib/components/PromoPanel/index.js.map +1 -1
- package/lib/components/RadioButton/index.js +5 -1
- package/lib/{RadioButton.js.map → components/RadioButton/index.js.map} +1 -1
- package/lib/components/ServiceMessage/index.js +19 -15
- package/lib/components/ServiceMessage/index.js.map +1 -1
- package/lib/components/SharingStatus/index.js +6 -2
- package/lib/components/SharingStatus/index.js.map +1 -1
- package/lib/components/Step/index.js +5 -1
- package/lib/components/Step/index.js.map +1 -1
- package/lib/components/Stepper/index.js +84 -18
- package/lib/components/Stepper/index.js.map +1 -1
- package/lib/components/StickyNote/index.js +17 -11
- package/lib/components/StickyNote/index.js.map +1 -1
- package/lib/components/Table/index.js +13 -9
- package/lib/components/Table/index.js.map +1 -1
- package/lib/components/Tabs/index.js +13 -6
- package/lib/components/Tabs/index.js.map +1 -1
- package/lib/components/Tag/Tag.d.ts +1 -11
- package/lib/components/Tag/constants.d.ts +2 -6
- package/lib/components/Tag/index.d.ts +1 -1
- package/lib/components/Tag/index.js +19 -34
- package/lib/components/Tag/index.js.map +1 -1
- package/lib/components/Tag/styles.module.scss +19 -52
- package/lib/components/Tag/styles.module.scss.d.ts +3 -11
- package/lib/components/TagList/index.js +5 -1
- package/lib/components/TagList/index.js.map +1 -1
- package/lib/components/Tile/index.js +10 -6
- package/lib/components/Tile/index.js.map +1 -1
- package/lib/components/Title/index.js +6 -2
- package/lib/components/Title/index.js.map +1 -0
- package/lib/components/Toast/index.js +4 -2
- package/lib/components/Toast/index.js.map +1 -1
- package/lib/components/ToastList/index.js +7 -3
- package/lib/components/ToastList/index.js.map +1 -1
- package/lib/components/Toggle/index.js +17 -11
- package/lib/components/Toggle/index.js.map +1 -1
- package/lib/components/Validation/index.js +24 -17
- package/lib/components/Validation/index.js.map +1 -1
- package/lib/constants.js +125 -1
- package/lib/constants.js.map +1 -0
- package/lib/constants2.js +45 -117
- package/lib/constants2.js.map +1 -1
- package/lib/floating-ui.react.js +479 -185
- package/lib/floating-ui.react.js.map +1 -1
- package/lib/getFilterChips.js +6 -2
- package/lib/getFilterChips.js.map +1 -1
- package/lib/hoc/withBreakpoint/index.js +4 -2
- package/lib/hoc/withBreakpoint/index.js.map +1 -1
- package/lib/hoc/withBreakpoint/withBreakpoint.js +17 -2
- package/lib/hoc/withBreakpoint/withBreakpoint.js.map +1 -0
- package/lib/hooks/useBreakpoint.js +42 -1
- package/lib/hooks/useBreakpoint.js.map +1 -0
- package/lib/hooks/useElementList.js +46 -1
- package/lib/hooks/useElementList.js.map +1 -0
- package/lib/hooks/useEventListenerState.js +3 -1
- package/lib/hooks/useEventListenerState.js.map +1 -1
- package/lib/hooks/useExpand.js +19 -1
- package/lib/hooks/useExpand.js.map +1 -0
- package/lib/hooks/useFocusToggle.js +34 -1
- package/lib/hooks/useFocusToggle.js.map +1 -0
- package/lib/hooks/useFocusTrap.js +40 -2
- package/lib/hooks/useFocusTrap.js.map +1 -0
- package/lib/hooks/useFocusableElements.js +33 -1
- package/lib/hooks/useFocusableElements.js.map +1 -0
- package/lib/hooks/useIcons.js +27 -1
- package/lib/hooks/useIcons.js.map +1 -0
- package/lib/hooks/useIdWithFallback.js +14 -1
- package/lib/hooks/useIdWithFallback.js.map +1 -0
- package/lib/hooks/useIntersectionObserver.js +23 -1
- package/lib/hooks/useIntersectionObserver.js.map +1 -0
- package/lib/hooks/useInterval.js +10 -1
- package/lib/hooks/useInterval.js.map +1 -1
- package/lib/hooks/useIsMobileBreakpoint.js +9 -1
- package/lib/hooks/useIsMobileBreakpoint.js.map +1 -0
- package/lib/hooks/useIsServerSide.js +16 -1
- package/lib/hooks/useIsServerSide.js.map +1 -0
- package/lib/hooks/useIsVisible.js +26 -1
- package/lib/hooks/useIsVisible.js.map +1 -0
- package/lib/hooks/useKeyboardEvent.js +30 -1
- package/lib/hooks/useKeyboardEvent.js.map +1 -0
- package/lib/hooks/useLanguage.js +16 -1
- package/lib/hooks/useLanguage.js.map +1 -0
- package/lib/hooks/useLayoutEvent.js +29 -1
- package/lib/hooks/useLayoutEvent.js.map +1 -0
- package/lib/hooks/useOutsideEvent.js +27 -1
- package/lib/hooks/useOutsideEvent.js.map +1 -0
- package/lib/hooks/usePrevious.js +17 -1
- package/lib/hooks/usePrevious.js.map +1 -0
- package/lib/hooks/usePseudoClasses.js +52 -1
- package/lib/hooks/usePseudoClasses.js.map +1 -0
- package/lib/hooks/useResizeObserver.js +30 -1
- package/lib/hooks/useResizeObserver.js.map +1 -0
- package/lib/hooks/useReturnFocusOnUnmount.js +21 -1
- package/lib/hooks/useReturnFocusOnUnmount.js.map +1 -0
- package/lib/hooks/useRovingFocus.js +45 -1
- package/lib/hooks/useRovingFocus.js.map +1 -0
- package/lib/hooks/useSize.js +31 -1
- package/lib/hooks/useSize.js.map +1 -0
- package/lib/hooks/useToggle.js +32 -1
- package/lib/hooks/useToggle.js.map +1 -0
- package/lib/hooks/usestopPropagation.js +17 -1
- package/lib/hooks/usestopPropagation.js.map +1 -0
- package/lib/index.js +18 -18
- package/lib/resourceHelper.js +5 -2
- package/lib/resourceHelper.js.map +1 -1
- package/lib/theme/currys/color.js +11 -1
- package/lib/theme/currys/color.js.map +1 -0
- package/lib/theme/currys/index.js +2 -2
- package/lib/theme/currys/spacing.js +26 -1
- package/lib/theme/currys/spacing.js.map +1 -0
- package/lib/theme/grid.js +25 -1
- package/lib/theme/grid.js.map +1 -0
- package/lib/theme/index.js +14 -1
- package/lib/theme/index.js.map +1 -0
- package/lib/theme/palette.js +86 -1
- package/lib/theme/palette.js.map +1 -0
- package/lib/theme/spacers.js +21 -1
- package/lib/theme/spacers.js.map +1 -0
- package/lib/utils/accessibility.js +24 -1
- package/lib/utils/accessibility.js.map +1 -0
- package/lib/utils/component.js +11 -1
- package/lib/utils/component.js.map +1 -0
- package/lib/utils/debounce.js +22 -1
- package/lib/utils/debounce.js.map +1 -0
- package/lib/utils/deepContains.js +22 -1
- package/lib/utils/deepContains.js.map +1 -0
- package/lib/utils/device.js +7 -1
- package/lib/utils/device.js.map +1 -0
- package/lib/utils/environment.js +6 -1
- package/lib/utils/environment.js.map +1 -0
- package/lib/utils/focus.js +17 -1
- package/lib/utils/focus.js.map +1 -0
- package/lib/utils/language.js +4 -3
- package/lib/utils/language.js.map +1 -1
- package/lib/utils/loremtext.js +6 -5
- package/lib/utils/loremtext.js.map +1 -1
- package/lib/utils/mobile.js +18 -1
- package/lib/utils/mobile.js.map +1 -0
- package/lib/utils/refs.js +26 -1
- package/lib/utils/refs.js.map +1 -0
- package/lib/utils/resource.js +10 -1
- package/lib/utils/resource.js.map +1 -0
- package/lib/utils/scroll.js +10 -1
- package/lib/utils/scroll.js.map +1 -0
- package/lib/utils/uuid.js +2 -2
- package/lib/utils/viewport.js +8 -1
- package/lib/utils/viewport.js.map +1 -0
- package/lib/utils.js +4 -2
- package/lib/utils.js.map +1 -1
- package/lib/utils2.js +18 -13
- package/lib/utils2.js.map +1 -1
- package/lib/utils3.js +12 -9
- package/lib/utils3.js.map +1 -1
- package/lib/utils4.js +7 -5
- package/lib/utils4.js.map +1 -1
- package/lib/utils5.js +26 -22
- package/lib/utils5.js.map +1 -1
- package/lib/utils6.js +65 -10
- package/lib/utils6.js.map +1 -1
- package/lib/uuid.js +12 -9
- package/lib/uuid.js.map +1 -1
- package/package.json +26 -38
- package/lib/AlertSignFill.js +0 -16
- package/lib/AlertSignFill.js.map +0 -1
- package/lib/AlertSignStroke.js +0 -16
- package/lib/AlertSignStroke.js.map +0 -1
- package/lib/ArrowDown.js +0 -28
- package/lib/ArrowDown.js.map +0 -1
- package/lib/ArrowRight.js +0 -16
- package/lib/ArrowRight.js.map +0 -1
- package/lib/ArrowUp.js +0 -28
- package/lib/ArrowUp.js.map +0 -1
- package/lib/ArrowUpRight.js +0 -16
- package/lib/ArrowUpRight.js.map +0 -1
- package/lib/BabyMobileMedium.js +0 -263
- package/lib/BabyMobileMedium.js.map +0 -1
- package/lib/Check.js +0 -16
- package/lib/Check.js.map +0 -1
- package/lib/CheckFill.js +0 -28
- package/lib/CheckFill.js.map +0 -1
- package/lib/CheckOutline.js +0 -14
- package/lib/CheckOutline.js.map +0 -1
- package/lib/Checkbox2.js +0 -5
- package/lib/Checkbox2.js.map +0 -1
- package/lib/ChevronDown.js +0 -16
- package/lib/ChevronDown.js.map +0 -1
- package/lib/ChevronLeft.js +0 -16
- package/lib/ChevronLeft.js.map +0 -1
- package/lib/ChevronRight.js +0 -16
- package/lib/ChevronRight.js.map +0 -1
- package/lib/ChevronUp.js +0 -16
- package/lib/ChevronUp.js.map +0 -1
- package/lib/ChildMedium.js +0 -126
- package/lib/ChildMedium.js.map +0 -1
- package/lib/DoctorMedium.js +0 -54
- package/lib/DoctorMedium.js.map +0 -1
- package/lib/DoctorSmall.js +0 -52
- package/lib/DoctorSmall.js.map +0 -1
- package/lib/DrawerNavigation2.js +0 -5
- package/lib/DrawerNavigation2.js.map +0 -1
- package/lib/EmptyBox.js +0 -16
- package/lib/EmptyBox.js.map +0 -1
- package/lib/ErrorSignFill.js +0 -16
- package/lib/ErrorSignFill.js.map +0 -1
- package/lib/FacialRecognitionFingerprintMedium.js +0 -199
- package/lib/FacialRecognitionFingerprintMedium.js.map +0 -1
- package/lib/Filter.js +0 -44
- package/lib/Filter.js.map +0 -1
- package/lib/FilterLinkList2.js +0 -5
- package/lib/FilterLinkList2.js.map +0 -1
- package/lib/FilterSearch2.js +0 -5
- package/lib/FilterSearch2.js.map +0 -1
- package/lib/Forward.js +0 -16
- package/lib/Forward.js.map +0 -1
- package/lib/GiveBabyFoodMedium.js +0 -240
- package/lib/GiveBabyFoodMedium.js.map +0 -1
- package/lib/HandWaving.js +0 -8
- package/lib/HandWaving.js.map +0 -1
- package/lib/HealthcarePersonnelMedium.js +0 -148
- package/lib/HealthcarePersonnelMedium.js.map +0 -1
- package/lib/HealthcarePersonnelSmall.js +0 -149
- package/lib/HealthcarePersonnelSmall.js.map +0 -1
- package/lib/IllustrationNames.js +0 -35
- package/lib/IllustrationNames.js.map +0 -1
- package/lib/InfoSignFill.js +0 -16
- package/lib/InfoSignFill.js.map +0 -1
- package/lib/Input2.js +0 -5
- package/lib/Input2.js.map +0 -1
- package/lib/Label.js +0 -5
- package/lib/Label.js.map +0 -1
- package/lib/PlusSmall.js +0 -16
- package/lib/PlusSmall.js.map +0 -1
- package/lib/Portal.js +0 -26
- package/lib/Portal.js.map +0 -1
- package/lib/RadioButton.js +0 -5
- package/lib/ReadLettersMedium.js +0 -78
- package/lib/ReadLettersMedium.js.map +0 -1
- package/lib/Search.js +0 -26
- package/lib/Search.js.map +0 -1
- package/lib/StorkMedium.js +0 -96
- package/lib/StorkMedium.js.map +0 -1
- package/lib/StrollerMedium.js +0 -219
- package/lib/StrollerMedium.js.map +0 -1
- package/lib/Support2Medium.js +0 -158
- package/lib/Support2Medium.js.map +0 -1
- package/lib/ThinkingMedium.js +0 -98
- package/lib/ThinkingMedium.js.map +0 -1
- package/lib/Title2.js +0 -5
- package/lib/Title2.js.map +0 -1
- package/lib/TriangleX.js +0 -32
- package/lib/TriangleX.js.map +0 -1
- package/lib/VerticalDots.js +0 -16
- package/lib/VerticalDots.js.map +0 -1
- package/lib/X.js +0 -18
- package/lib/X.js.map +0 -1
- package/lib/_rolldown_dynamic_import_helper.js.map +0 -1
- package/lib/accessibility.js +0 -17
- package/lib/accessibility.js.map +0 -1
- package/lib/color.js +0 -10
- package/lib/color.js.map +0 -1
- package/lib/component.js +0 -10
- package/lib/component.js.map +0 -1
- package/lib/constants3.js +0 -46
- package/lib/constants3.js.map +0 -1
- package/lib/currys.js +0 -0
- package/lib/debounce.js +0 -16
- package/lib/debounce.js.map +0 -1
- package/lib/deepContains.js +0 -13
- package/lib/deepContains.js.map +0 -1
- package/lib/device.js +0 -6
- package/lib/device.js.map +0 -1
- package/lib/environment.js +0 -5
- package/lib/environment.js.map +0 -1
- package/lib/focus.js +0 -11
- package/lib/focus.js.map +0 -1
- package/lib/grid.js +0 -24
- package/lib/grid.js.map +0 -1
- package/lib/mobile.js +0 -14
- package/lib/mobile.js.map +0 -1
- package/lib/palette.js +0 -85
- package/lib/palette.js.map +0 -1
- package/lib/refs.js +0 -14
- package/lib/refs.js.map +0 -1
- package/lib/resource.js +0 -4
- package/lib/resource.js.map +0 -1
- package/lib/scroll.js +0 -9
- package/lib/scroll.js.map +0 -1
- package/lib/spacers.js +0 -20
- package/lib/spacers.js.map +0 -1
- package/lib/spacing.js +0 -25
- package/lib/spacing.js.map +0 -1
- package/lib/src.js +0 -0
- package/lib/theme.js +0 -13
- package/lib/theme.js.map +0 -1
- package/lib/useBreakpoint.js +0 -38
- package/lib/useBreakpoint.js.map +0 -1
- package/lib/useElementList.js +0 -38
- package/lib/useElementList.js.map +0 -1
- package/lib/useExpand.js +0 -18
- package/lib/useExpand.js.map +0 -1
- package/lib/useFocusToggle.js +0 -26
- package/lib/useFocusToggle.js.map +0 -1
- package/lib/useFocusTrap.js +0 -34
- package/lib/useFocusTrap.js.map +0 -1
- package/lib/useFocusableElements.js +0 -26
- package/lib/useFocusableElements.js.map +0 -1
- package/lib/useIcons.js +0 -26
- package/lib/useIcons.js.map +0 -1
- package/lib/useIdWithFallback.js +0 -8
- package/lib/useIdWithFallback.js.map +0 -1
- package/lib/useIntersectionObserver.js +0 -14
- package/lib/useIntersectionObserver.js.map +0 -1
- package/lib/useIsMobileBreakpoint.js +0 -8
- package/lib/useIsMobileBreakpoint.js.map +0 -1
- package/lib/useIsServerSide.js +0 -10
- package/lib/useIsServerSide.js.map +0 -1
- package/lib/useIsVisible.js +0 -16
- package/lib/useIsVisible.js.map +0 -1
- package/lib/useKeyboardEvent.js +0 -22
- package/lib/useKeyboardEvent.js.map +0 -1
- package/lib/useLanguage.js +0 -10
- package/lib/useLanguage.js.map +0 -1
- package/lib/useLayoutEvent.js +0 -21
- package/lib/useLayoutEvent.js.map +0 -1
- package/lib/useOutsideEvent.js +0 -20
- package/lib/useOutsideEvent.js.map +0 -1
- package/lib/usePrevious.js +0 -11
- package/lib/usePrevious.js.map +0 -1
- package/lib/usePseudoClasses.js +0 -46
- package/lib/usePseudoClasses.js.map +0 -1
- package/lib/useResizeObserver.js +0 -23
- package/lib/useResizeObserver.js.map +0 -1
- package/lib/useReturnFocusOnUnmount.js +0 -16
- package/lib/useReturnFocusOnUnmount.js.map +0 -1
- package/lib/useRovingFocus.js +0 -44
- package/lib/useRovingFocus.js.map +0 -1
- package/lib/useSize.js +0 -23
- package/lib/useSize.js.map +0 -1
- package/lib/useToggle.js +0 -24
- package/lib/useToggle.js.map +0 -1
- package/lib/usestopPropagation.js +0 -11
- package/lib/usestopPropagation.js.map +0 -1
- package/lib/viewport.js +0 -7
- package/lib/viewport.js.map +0 -1
- package/lib/withBreakpoint.js +0 -16
- package/lib/withBreakpoint.js.map +0 -1
package/lib/floating-ui.react.js
CHANGED
|
@@ -2,6 +2,7 @@ import * as React$1 from "react";
|
|
|
2
2
|
import { useLayoutEffect } from "react";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import * as ReactDOM from "react-dom";
|
|
5
|
+
//#region ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
5
6
|
function hasWindow() {
|
|
6
7
|
return typeof window !== "undefined";
|
|
7
8
|
}
|
|
@@ -113,6 +114,12 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
|
113
114
|
function getFrameElement(win) {
|
|
114
115
|
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
115
116
|
}
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
119
|
+
/**
|
|
120
|
+
* Custom positioning reference element.
|
|
121
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
|
122
|
+
*/
|
|
116
123
|
var sides = [
|
|
117
124
|
"top",
|
|
118
125
|
"right",
|
|
@@ -236,6 +243,10 @@ function rectToClientRect(rect) {
|
|
|
236
243
|
y
|
|
237
244
|
};
|
|
238
245
|
}
|
|
246
|
+
/*!
|
|
247
|
+
* tabbable 6.4.0
|
|
248
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
249
|
+
*/
|
|
239
250
|
var candidateSelector = /* @__PURE__ */ [
|
|
240
251
|
"input:not([inert]):not([inert] *)",
|
|
241
252
|
"select:not([inert]):not([inert] *)",
|
|
@@ -257,24 +268,73 @@ var getRootNode = !NoElement && Element.prototype.getRootNode ? function(element
|
|
|
257
268
|
} : function(element) {
|
|
258
269
|
return element === null || element === void 0 ? void 0 : element.ownerDocument;
|
|
259
270
|
};
|
|
271
|
+
/**
|
|
272
|
+
* Determines if a node is inert or in an inert ancestor.
|
|
273
|
+
* @param {Node} [node]
|
|
274
|
+
* @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to
|
|
275
|
+
* see if any of them are inert. If false, only `node` itself is considered.
|
|
276
|
+
* @returns {boolean} True if inert itself or by way of being in an inert ancestor.
|
|
277
|
+
* False if `node` is falsy.
|
|
278
|
+
*/
|
|
260
279
|
var _isInert = function isInert(node, lookUp) {
|
|
261
280
|
var _node$getAttribute;
|
|
262
281
|
if (lookUp === void 0) lookUp = true;
|
|
263
282
|
var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, "inert");
|
|
264
283
|
return inertAtt === "" || inertAtt === "true" || lookUp && node && (typeof node.closest === "function" ? node.closest("[inert]") : _isInert(node.parentNode));
|
|
265
284
|
};
|
|
266
|
-
|
|
285
|
+
/**
|
|
286
|
+
* Determines if a node's content is editable.
|
|
287
|
+
* @param {Element} [node]
|
|
288
|
+
* @returns True if it's content-editable; false if it's not or `node` is falsy.
|
|
289
|
+
*/
|
|
290
|
+
var isContentEditable = function isContentEditable(node) {
|
|
267
291
|
var _node$getAttribute2;
|
|
268
292
|
var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, "contenteditable");
|
|
269
293
|
return attValue === "" || attValue === "true";
|
|
270
294
|
};
|
|
271
|
-
|
|
295
|
+
/**
|
|
296
|
+
* @param {Element} el container to check in
|
|
297
|
+
* @param {boolean} includeContainer add container to check
|
|
298
|
+
* @param {(node: Element) => boolean} filter filter candidates
|
|
299
|
+
* @returns {Element[]}
|
|
300
|
+
*/
|
|
301
|
+
var getCandidates = function getCandidates(el, includeContainer, filter) {
|
|
272
302
|
if (_isInert(el)) return [];
|
|
273
303
|
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
274
304
|
if (includeContainer && matches.call(el, candidateSelector)) candidates.unshift(el);
|
|
275
305
|
candidates = candidates.filter(filter);
|
|
276
306
|
return candidates;
|
|
277
307
|
};
|
|
308
|
+
/**
|
|
309
|
+
* @callback GetShadowRoot
|
|
310
|
+
* @param {Element} element to check for shadow root
|
|
311
|
+
* @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
|
|
312
|
+
*/
|
|
313
|
+
/**
|
|
314
|
+
* @callback ShadowRootFilter
|
|
315
|
+
* @param {Element} shadowHostNode the element which contains shadow content
|
|
316
|
+
* @returns {boolean} true if a shadow root could potentially contain valid candidates.
|
|
317
|
+
*/
|
|
318
|
+
/**
|
|
319
|
+
* @typedef {Object} CandidateScope
|
|
320
|
+
* @property {Element} scopeParent contains inner candidates
|
|
321
|
+
* @property {Element[]} candidates list of candidates found in the scope parent
|
|
322
|
+
*/
|
|
323
|
+
/**
|
|
324
|
+
* @typedef {Object} IterativeOptions
|
|
325
|
+
* @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
|
|
326
|
+
* if a function, implies shadow support is enabled and either returns the shadow root of an element
|
|
327
|
+
* or a boolean stating if it has an undisclosed shadow root
|
|
328
|
+
* @property {(node: Element) => boolean} filter filter candidates
|
|
329
|
+
* @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list
|
|
330
|
+
* @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
|
|
331
|
+
*/
|
|
332
|
+
/**
|
|
333
|
+
* @param {Element[]} elements list of element containers to match candidates from
|
|
334
|
+
* @param {boolean} includeContainer add container list to check
|
|
335
|
+
* @param {IterativeOptions} options
|
|
336
|
+
* @returns {Array.<Element|CandidateScope>}
|
|
337
|
+
*/
|
|
278
338
|
var _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
|
|
279
339
|
var candidates = [];
|
|
280
340
|
var elementsToCheck = Array.from(elements);
|
|
@@ -305,42 +365,62 @@ var _getCandidatesIteratively = function getCandidatesIteratively(elements, incl
|
|
|
305
365
|
}
|
|
306
366
|
return candidates;
|
|
307
367
|
};
|
|
308
|
-
|
|
368
|
+
/**
|
|
369
|
+
* @private
|
|
370
|
+
* Determines if the node has an explicitly specified `tabindex` attribute.
|
|
371
|
+
* @param {HTMLElement} node
|
|
372
|
+
* @returns {boolean} True if so; false if not.
|
|
373
|
+
*/
|
|
374
|
+
var hasTabIndex = function hasTabIndex(node) {
|
|
309
375
|
return !isNaN(parseInt(node.getAttribute("tabindex"), 10));
|
|
310
376
|
};
|
|
311
|
-
|
|
377
|
+
/**
|
|
378
|
+
* Determine the tab index of a given node.
|
|
379
|
+
* @param {HTMLElement} node
|
|
380
|
+
* @returns {number} Tab order (negative, 0, or positive number).
|
|
381
|
+
* @throws {Error} If `node` is falsy.
|
|
382
|
+
*/
|
|
383
|
+
var getTabIndex = function getTabIndex(node) {
|
|
312
384
|
if (!node) throw new Error("No node provided");
|
|
313
385
|
if (node.tabIndex < 0) {
|
|
314
386
|
if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) return 0;
|
|
315
387
|
}
|
|
316
388
|
return node.tabIndex;
|
|
317
389
|
};
|
|
318
|
-
|
|
390
|
+
/**
|
|
391
|
+
* Determine the tab index of a given node __for sort order purposes__.
|
|
392
|
+
* @param {HTMLElement} node
|
|
393
|
+
* @param {boolean} [isScope] True for a custom element with shadow root or slot that, by default,
|
|
394
|
+
* has tabIndex -1, but needs to be sorted by document order in order for its content to be
|
|
395
|
+
* inserted into the correct sort position.
|
|
396
|
+
* @returns {number} Tab order (negative, 0, or positive number).
|
|
397
|
+
*/
|
|
398
|
+
var getSortOrderTabIndex = function getSortOrderTabIndex(node, isScope) {
|
|
319
399
|
var tabIndex = getTabIndex(node);
|
|
320
400
|
if (tabIndex < 0 && isScope && !hasTabIndex(node)) return 0;
|
|
321
401
|
return tabIndex;
|
|
322
402
|
};
|
|
323
|
-
var sortOrderedTabbables = function sortOrderedTabbables
|
|
403
|
+
var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
|
|
324
404
|
return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
|
|
325
405
|
};
|
|
326
|
-
var isInput = function isInput
|
|
406
|
+
var isInput = function isInput(node) {
|
|
327
407
|
return node.tagName === "INPUT";
|
|
328
408
|
};
|
|
329
|
-
var isHiddenInput = function isHiddenInput
|
|
409
|
+
var isHiddenInput = function isHiddenInput(node) {
|
|
330
410
|
return isInput(node) && node.type === "hidden";
|
|
331
411
|
};
|
|
332
|
-
var isDetailsWithSummary = function isDetailsWithSummary
|
|
412
|
+
var isDetailsWithSummary = function isDetailsWithSummary(node) {
|
|
333
413
|
return node.tagName === "DETAILS" && Array.prototype.slice.apply(node.children).some(function(child) {
|
|
334
414
|
return child.tagName === "SUMMARY";
|
|
335
415
|
});
|
|
336
416
|
};
|
|
337
|
-
var getCheckedRadio = function getCheckedRadio
|
|
417
|
+
var getCheckedRadio = function getCheckedRadio(nodes, form) {
|
|
338
418
|
for (var i = 0; i < nodes.length; i++) if (nodes[i].checked && nodes[i].form === form) return nodes[i];
|
|
339
419
|
};
|
|
340
|
-
var isTabbableRadio = function isTabbableRadio
|
|
420
|
+
var isTabbableRadio = function isTabbableRadio(node) {
|
|
341
421
|
if (!node.name) return true;
|
|
342
422
|
var radioScope = node.form || getRootNode(node);
|
|
343
|
-
var queryRadios = function queryRadios
|
|
423
|
+
var queryRadios = function queryRadios(name) {
|
|
344
424
|
return radioScope.querySelectorAll("input[type=\"radio\"][name=\"" + name + "\"]");
|
|
345
425
|
};
|
|
346
426
|
var radioSet;
|
|
@@ -354,13 +434,13 @@ var isTabbableRadio = function isTabbableRadio$1(node) {
|
|
|
354
434
|
var checked = getCheckedRadio(radioSet, node.form);
|
|
355
435
|
return !checked || checked === node;
|
|
356
436
|
};
|
|
357
|
-
var isRadio = function isRadio
|
|
437
|
+
var isRadio = function isRadio(node) {
|
|
358
438
|
return isInput(node) && node.type === "radio";
|
|
359
439
|
};
|
|
360
|
-
var isNonTabbableRadio = function isNonTabbableRadio
|
|
440
|
+
var isNonTabbableRadio = function isNonTabbableRadio(node) {
|
|
361
441
|
return isRadio(node) && !isTabbableRadio(node);
|
|
362
442
|
};
|
|
363
|
-
var isNodeAttached = function isNodeAttached
|
|
443
|
+
var isNodeAttached = function isNodeAttached(node) {
|
|
364
444
|
var _nodeRoot;
|
|
365
445
|
var nodeRoot = node && getRootNode(node);
|
|
366
446
|
var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
|
|
@@ -377,11 +457,11 @@ var isNodeAttached = function isNodeAttached$1(node) {
|
|
|
377
457
|
}
|
|
378
458
|
return attached;
|
|
379
459
|
};
|
|
380
|
-
var isZeroArea = function isZeroArea
|
|
460
|
+
var isZeroArea = function isZeroArea(node) {
|
|
381
461
|
var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;
|
|
382
462
|
return width === 0 && height === 0;
|
|
383
463
|
};
|
|
384
|
-
var isHidden = function isHidden
|
|
464
|
+
var isHidden = function isHidden(node, _ref) {
|
|
385
465
|
var displayCheck = _ref.displayCheck, getShadowRoot = _ref.getShadowRoot;
|
|
386
466
|
if (displayCheck === "full-native") {
|
|
387
467
|
if ("checkVisibility" in node) return !node.checkVisibility({
|
|
@@ -413,7 +493,7 @@ var isHidden = function isHidden$1(node, _ref) {
|
|
|
413
493
|
} else if (displayCheck === "non-zero-area") return isZeroArea(node);
|
|
414
494
|
return false;
|
|
415
495
|
};
|
|
416
|
-
var isDisabledFromFieldset = function isDisabledFromFieldset
|
|
496
|
+
var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
|
|
417
497
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
|
|
418
498
|
var parentNode = node.parentElement;
|
|
419
499
|
while (parentNode) {
|
|
@@ -429,19 +509,23 @@ var isDisabledFromFieldset = function isDisabledFromFieldset$1(node) {
|
|
|
429
509
|
}
|
|
430
510
|
return false;
|
|
431
511
|
};
|
|
432
|
-
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable
|
|
512
|
+
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
|
|
433
513
|
if (node.disabled || isHiddenInput(node) || isHidden(node, options) || isDetailsWithSummary(node) || isDisabledFromFieldset(node)) return false;
|
|
434
514
|
return true;
|
|
435
515
|
};
|
|
436
|
-
var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable
|
|
516
|
+
var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
|
|
437
517
|
if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) return false;
|
|
438
518
|
return true;
|
|
439
519
|
};
|
|
440
|
-
var isShadowRootTabbable = function isShadowRootTabbable
|
|
520
|
+
var isShadowRootTabbable = function isShadowRootTabbable(shadowHostNode) {
|
|
441
521
|
var tabIndex = parseInt(shadowHostNode.getAttribute("tabindex"), 10);
|
|
442
522
|
if (isNaN(tabIndex) || tabIndex >= 0) return true;
|
|
443
523
|
return false;
|
|
444
524
|
};
|
|
525
|
+
/**
|
|
526
|
+
* @param {Array.<Element|CandidateScope>} candidates
|
|
527
|
+
* @returns Element[]
|
|
528
|
+
*/
|
|
445
529
|
var _sortByOrder = function sortByOrder(candidates) {
|
|
446
530
|
var regularTabbables = [];
|
|
447
531
|
var orderedTabbables = [];
|
|
@@ -464,7 +548,7 @@ var _sortByOrder = function sortByOrder(candidates) {
|
|
|
464
548
|
return acc;
|
|
465
549
|
}, []).concat(regularTabbables);
|
|
466
550
|
};
|
|
467
|
-
var tabbable = function tabbable
|
|
551
|
+
var tabbable = function tabbable(container, options) {
|
|
468
552
|
options = options || {};
|
|
469
553
|
var candidates;
|
|
470
554
|
if (options.getShadowRoot) candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
@@ -476,7 +560,7 @@ var tabbable = function tabbable$1(container, options) {
|
|
|
476
560
|
else candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
477
561
|
return _sortByOrder(candidates);
|
|
478
562
|
};
|
|
479
|
-
var focusable = function focusable
|
|
563
|
+
var focusable = function focusable(container, options) {
|
|
480
564
|
options = options || {};
|
|
481
565
|
var candidates;
|
|
482
566
|
if (options.getShadowRoot) candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
@@ -487,12 +571,14 @@ var focusable = function focusable$1(container, options) {
|
|
|
487
571
|
else candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
|
|
488
572
|
return candidates;
|
|
489
573
|
};
|
|
490
|
-
var isTabbable = function isTabbable
|
|
574
|
+
var isTabbable = function isTabbable(node, options) {
|
|
491
575
|
options = options || {};
|
|
492
576
|
if (!node) throw new Error("No node provided");
|
|
493
577
|
if (matches.call(node, candidateSelector) === false) return false;
|
|
494
578
|
return isNodeMatchingSelectorTabbable(options, node);
|
|
495
579
|
};
|
|
580
|
+
//#endregion
|
|
581
|
+
//#region ../../node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs
|
|
496
582
|
function getPlatform() {
|
|
497
583
|
const uaData = navigator.userAgentData;
|
|
498
584
|
if (uaData != null && uaData.platform) return uaData.platform;
|
|
@@ -522,12 +608,12 @@ function isJSDOM() {
|
|
|
522
608
|
var FOCUSABLE_ATTRIBUTE$1 = "data-floating-ui-focusable";
|
|
523
609
|
var TYPEABLE_SELECTOR = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
524
610
|
function activeElement(doc) {
|
|
525
|
-
let activeElement
|
|
526
|
-
while (((_activeElement = activeElement
|
|
611
|
+
let activeElement = doc.activeElement;
|
|
612
|
+
while (((_activeElement = activeElement) == null || (_activeElement = _activeElement.shadowRoot) == null ? void 0 : _activeElement.activeElement) != null) {
|
|
527
613
|
var _activeElement;
|
|
528
|
-
activeElement
|
|
614
|
+
activeElement = activeElement.shadowRoot.activeElement;
|
|
529
615
|
}
|
|
530
|
-
return activeElement
|
|
616
|
+
return activeElement;
|
|
531
617
|
}
|
|
532
618
|
function contains(parent, child) {
|
|
533
619
|
if (!parent || !child) return false;
|
|
@@ -555,7 +641,7 @@ function isEventTargetWithin(event, node) {
|
|
|
555
641
|
function isRootElement(element) {
|
|
556
642
|
return element.matches("html,body");
|
|
557
643
|
}
|
|
558
|
-
function getDocument(node) {
|
|
644
|
+
function getDocument$1(node) {
|
|
559
645
|
return (node == null ? void 0 : node.ownerDocument) || document;
|
|
560
646
|
}
|
|
561
647
|
function isTypeableElement(element) {
|
|
@@ -616,11 +702,11 @@ function isMouseLikePointerType(pointerType, strict) {
|
|
|
616
702
|
if (!strict) values.push("", void 0);
|
|
617
703
|
return values.includes(pointerType);
|
|
618
704
|
}
|
|
619
|
-
var index = typeof document !== "undefined" ? useLayoutEffect : function noop() {};
|
|
705
|
+
var index$1 = typeof document !== "undefined" ? useLayoutEffect : function noop() {};
|
|
620
706
|
var SafeReact$1 = { ...React$1 };
|
|
621
|
-
function useLatestRef(value) {
|
|
707
|
+
function useLatestRef$1(value) {
|
|
622
708
|
const ref = React$1.useRef(value);
|
|
623
|
-
index(() => {
|
|
709
|
+
index$1(() => {
|
|
624
710
|
ref.current = value;
|
|
625
711
|
});
|
|
626
712
|
return ref;
|
|
@@ -646,21 +732,23 @@ function getTabbableIn(container, dir) {
|
|
|
646
732
|
const list = tabbable(container, getTabbableOptions());
|
|
647
733
|
const len = list.length;
|
|
648
734
|
if (len === 0) return;
|
|
649
|
-
const active = activeElement(getDocument(container));
|
|
650
|
-
const index
|
|
651
|
-
return list[index
|
|
735
|
+
const active = activeElement(getDocument$1(container));
|
|
736
|
+
const index = list.indexOf(active);
|
|
737
|
+
return list[index === -1 ? dir === 1 ? 0 : len - 1 : index + dir];
|
|
652
738
|
}
|
|
653
739
|
function getNextTabbable(referenceElement) {
|
|
654
|
-
return getTabbableIn(getDocument(referenceElement).body, 1) || referenceElement;
|
|
740
|
+
return getTabbableIn(getDocument$1(referenceElement).body, 1) || referenceElement;
|
|
655
741
|
}
|
|
656
742
|
function getPreviousTabbable(referenceElement) {
|
|
657
|
-
return getTabbableIn(getDocument(referenceElement).body, -1) || referenceElement;
|
|
743
|
+
return getTabbableIn(getDocument$1(referenceElement).body, -1) || referenceElement;
|
|
658
744
|
}
|
|
659
745
|
function isOutsideEvent(event, container) {
|
|
660
746
|
const containerElement = container || event.currentTarget;
|
|
661
747
|
const relatedTarget = event.relatedTarget;
|
|
662
748
|
return !relatedTarget || !contains(containerElement, relatedTarget);
|
|
663
749
|
}
|
|
750
|
+
//#endregion
|
|
751
|
+
//#region ../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
664
752
|
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
665
753
|
let { reference, floating } = _ref;
|
|
666
754
|
const sideAxis = getSideAxis(placement);
|
|
@@ -712,15 +800,23 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
712
800
|
}
|
|
713
801
|
return coords;
|
|
714
802
|
}
|
|
715
|
-
|
|
803
|
+
/**
|
|
804
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
|
805
|
+
* element is overflowing a given clipping boundary on each side.
|
|
806
|
+
* - positive = overflowing the boundary by that number of pixels
|
|
807
|
+
* - negative = how many pixels left before it will overflow
|
|
808
|
+
* - 0 = lies flush with the boundary
|
|
809
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
|
810
|
+
*/
|
|
811
|
+
async function detectOverflow(state, options) {
|
|
716
812
|
var _await$platform$isEle;
|
|
717
813
|
if (options === void 0) options = {};
|
|
718
|
-
const { x, y, platform
|
|
814
|
+
const { x, y, platform, rects, elements, strategy } = state;
|
|
719
815
|
const { boundary = "clippingAncestors", rootBoundary = "viewport", elementContext = "floating", altBoundary = false, padding = 0 } = evaluate(options, state);
|
|
720
816
|
const paddingObject = getPaddingObject(padding);
|
|
721
817
|
const element = elements[altBoundary ? elementContext === "floating" ? "reference" : "floating" : elementContext];
|
|
722
|
-
const clippingClientRect = rectToClientRect(await platform
|
|
723
|
-
element: ((_await$platform$isEle = await (platform
|
|
818
|
+
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
819
|
+
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating)),
|
|
724
820
|
boundary,
|
|
725
821
|
rootBoundary,
|
|
726
822
|
strategy
|
|
@@ -731,15 +827,15 @@ async function detectOverflow$1(state, options) {
|
|
|
731
827
|
width: rects.floating.width,
|
|
732
828
|
height: rects.floating.height
|
|
733
829
|
} : rects.reference;
|
|
734
|
-
const offsetParent = await (platform
|
|
735
|
-
const offsetScale = await (platform
|
|
830
|
+
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
831
|
+
const offsetScale = await (platform.isElement == null ? void 0 : platform.isElement(offsetParent)) ? await (platform.getScale == null ? void 0 : platform.getScale(offsetParent)) || {
|
|
736
832
|
x: 1,
|
|
737
833
|
y: 1
|
|
738
834
|
} : {
|
|
739
835
|
x: 1,
|
|
740
836
|
y: 1
|
|
741
837
|
};
|
|
742
|
-
const elementClientRect = rectToClientRect(platform
|
|
838
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
743
839
|
elements,
|
|
744
840
|
rect,
|
|
745
841
|
offsetParent,
|
|
@@ -753,14 +849,21 @@ async function detectOverflow$1(state, options) {
|
|
|
753
849
|
};
|
|
754
850
|
}
|
|
755
851
|
var MAX_RESET_COUNT = 50;
|
|
852
|
+
/**
|
|
853
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
|
854
|
+
* next to a given reference element.
|
|
855
|
+
*
|
|
856
|
+
* This export does not have any `platform` interface logic. You will need to
|
|
857
|
+
* write one for the platform you are using Floating UI with.
|
|
858
|
+
*/
|
|
756
859
|
var computePosition$1 = async (reference, floating, config) => {
|
|
757
|
-
const { placement = "bottom", strategy = "absolute", middleware = [], platform
|
|
758
|
-
const platformWithDetectOverflow = platform
|
|
759
|
-
...platform
|
|
760
|
-
detectOverflow
|
|
860
|
+
const { placement = "bottom", strategy = "absolute", middleware = [], platform } = config;
|
|
861
|
+
const platformWithDetectOverflow = platform.detectOverflow ? platform : {
|
|
862
|
+
...platform,
|
|
863
|
+
detectOverflow
|
|
761
864
|
};
|
|
762
|
-
const rtl = await (platform
|
|
763
|
-
let rects = await platform
|
|
865
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
866
|
+
let rects = await platform.getElementRects({
|
|
764
867
|
reference,
|
|
765
868
|
floating,
|
|
766
869
|
strategy
|
|
@@ -797,7 +900,7 @@ var computePosition$1 = async (reference, floating, config) => {
|
|
|
797
900
|
resetCount++;
|
|
798
901
|
if (typeof reset === "object") {
|
|
799
902
|
if (reset.placement) statefulPlacement = reset.placement;
|
|
800
|
-
if (reset.rects) rects = reset.rects === true ? await platform
|
|
903
|
+
if (reset.rects) rects = reset.rects === true ? await platform.getElementRects({
|
|
801
904
|
reference,
|
|
802
905
|
floating,
|
|
803
906
|
strategy
|
|
@@ -815,11 +918,16 @@ var computePosition$1 = async (reference, floating, config) => {
|
|
|
815
918
|
middlewareData
|
|
816
919
|
};
|
|
817
920
|
};
|
|
818
|
-
|
|
921
|
+
/**
|
|
922
|
+
* Provides data to position an inner element of the floating element so that it
|
|
923
|
+
* appears centered to the reference element.
|
|
924
|
+
* @see https://floating-ui.com/docs/arrow
|
|
925
|
+
*/
|
|
926
|
+
var arrow$3 = (options) => ({
|
|
819
927
|
name: "arrow",
|
|
820
928
|
options,
|
|
821
929
|
async fn(state) {
|
|
822
|
-
const { x, y, placement, rects, platform
|
|
930
|
+
const { x, y, placement, rects, platform, elements, middlewareData } = state;
|
|
823
931
|
const { element, padding = 0 } = evaluate(options, state) || {};
|
|
824
932
|
if (element == null) return {};
|
|
825
933
|
const paddingObject = getPaddingObject(padding);
|
|
@@ -829,37 +937,43 @@ var arrow$2 = (options) => ({
|
|
|
829
937
|
};
|
|
830
938
|
const axis = getAlignmentAxis(placement);
|
|
831
939
|
const length = getAxisLength(axis);
|
|
832
|
-
const arrowDimensions = await platform
|
|
940
|
+
const arrowDimensions = await platform.getDimensions(element);
|
|
833
941
|
const isYAxis = axis === "y";
|
|
834
942
|
const minProp = isYAxis ? "top" : "left";
|
|
835
943
|
const maxProp = isYAxis ? "bottom" : "right";
|
|
836
944
|
const clientProp = isYAxis ? "clientHeight" : "clientWidth";
|
|
837
945
|
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
838
946
|
const startDiff = coords[axis] - rects.reference[axis];
|
|
839
|
-
const arrowOffsetParent = await (platform
|
|
947
|
+
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
|
840
948
|
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
841
|
-
if (!clientSize || !await (platform
|
|
949
|
+
if (!clientSize || !await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent))) clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
842
950
|
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
843
951
|
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
|
844
952
|
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
|
845
953
|
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
|
846
954
|
const min$1 = minPadding;
|
|
847
|
-
const max
|
|
955
|
+
const max = clientSize - arrowDimensions[length] - maxPadding;
|
|
848
956
|
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
849
|
-
const offset
|
|
850
|
-
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset
|
|
851
|
-
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max
|
|
957
|
+
const offset = clamp(min$1, center, max);
|
|
958
|
+
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
959
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
|
852
960
|
return {
|
|
853
961
|
[axis]: coords[axis] + alignmentOffset,
|
|
854
962
|
data: {
|
|
855
|
-
[axis]: offset
|
|
856
|
-
centerOffset: center - offset
|
|
963
|
+
[axis]: offset,
|
|
964
|
+
centerOffset: center - offset - alignmentOffset,
|
|
857
965
|
...shouldAddOffset && { alignmentOffset }
|
|
858
966
|
},
|
|
859
967
|
reset: shouldAddOffset
|
|
860
968
|
};
|
|
861
969
|
}
|
|
862
970
|
});
|
|
971
|
+
/**
|
|
972
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
973
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
974
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
975
|
+
* @see https://floating-ui.com/docs/flip
|
|
976
|
+
*/
|
|
863
977
|
var flip$2 = function(options) {
|
|
864
978
|
if (options === void 0) options = {};
|
|
865
979
|
return {
|
|
@@ -867,33 +981,33 @@ var flip$2 = function(options) {
|
|
|
867
981
|
options,
|
|
868
982
|
async fn(state) {
|
|
869
983
|
var _middlewareData$arrow, _middlewareData$flip;
|
|
870
|
-
const { placement, middlewareData, rects, initialPlacement, platform
|
|
984
|
+
const { placement, middlewareData, rects, initialPlacement, platform, elements } = state;
|
|
871
985
|
const { mainAxis: checkMainAxis = true, crossAxis: checkCrossAxis = true, fallbackPlacements: specifiedFallbackPlacements, fallbackStrategy = "bestFit", fallbackAxisSideDirection = "none", flipAlignment = true, ...detectOverflowOptions } = evaluate(options, state);
|
|
872
986
|
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) return {};
|
|
873
987
|
const side = getSide(placement);
|
|
874
988
|
const initialSideAxis = getSideAxis(initialPlacement);
|
|
875
989
|
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
876
|
-
const rtl = await (platform
|
|
990
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
877
991
|
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
878
992
|
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
|
|
879
993
|
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
880
|
-
const placements
|
|
881
|
-
const overflow = await platform
|
|
994
|
+
const placements = [initialPlacement, ...fallbackPlacements];
|
|
995
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
882
996
|
const overflows = [];
|
|
883
997
|
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
884
998
|
if (checkMainAxis) overflows.push(overflow[side]);
|
|
885
999
|
if (checkCrossAxis) {
|
|
886
|
-
const sides
|
|
887
|
-
overflows.push(overflow[sides
|
|
1000
|
+
const sides = getAlignmentSides(placement, rects, rtl);
|
|
1001
|
+
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
|
888
1002
|
}
|
|
889
1003
|
overflowsData = [...overflowsData, {
|
|
890
1004
|
placement,
|
|
891
1005
|
overflows
|
|
892
1006
|
}];
|
|
893
|
-
if (!overflows.every((side
|
|
1007
|
+
if (!overflows.every((side) => side <= 0)) {
|
|
894
1008
|
var _middlewareData$flip2, _overflowsData$filter;
|
|
895
1009
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
896
|
-
const nextPlacement = placements
|
|
1010
|
+
const nextPlacement = placements[nextIndex];
|
|
897
1011
|
if (nextPlacement) {
|
|
898
1012
|
if (!(checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false) || overflowsData.every((d) => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) return {
|
|
899
1013
|
data: {
|
|
@@ -907,14 +1021,14 @@ var flip$2 = function(options) {
|
|
|
907
1021
|
if (!resetPlacement) switch (fallbackStrategy) {
|
|
908
1022
|
case "bestFit": {
|
|
909
1023
|
var _overflowsData$filter2;
|
|
910
|
-
const placement
|
|
1024
|
+
const placement = (_overflowsData$filter2 = overflowsData.filter((d) => {
|
|
911
1025
|
if (hasFallbackAxisSideDirection) {
|
|
912
1026
|
const currentSideAxis = getSideAxis(d.placement);
|
|
913
1027
|
return currentSideAxis === initialSideAxis || currentSideAxis === "y";
|
|
914
1028
|
}
|
|
915
1029
|
return true;
|
|
916
|
-
}).map((d) => [d.placement, d.overflows.filter((overflow
|
|
917
|
-
if (placement
|
|
1030
|
+
}).map((d) => [d.placement, d.overflows.filter((overflow) => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
1031
|
+
if (placement) resetPlacement = placement;
|
|
918
1032
|
break;
|
|
919
1033
|
}
|
|
920
1034
|
case "initialPlacement":
|
|
@@ -938,17 +1052,22 @@ function getSideOffsets(overflow, rect) {
|
|
|
938
1052
|
function isAnySideFullyClipped(overflow) {
|
|
939
1053
|
return sides.some((side) => overflow[side] >= 0);
|
|
940
1054
|
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
1057
|
+
* when it is not in the same clipping context as the reference element.
|
|
1058
|
+
* @see https://floating-ui.com/docs/hide
|
|
1059
|
+
*/
|
|
941
1060
|
var hide$2 = function(options) {
|
|
942
1061
|
if (options === void 0) options = {};
|
|
943
1062
|
return {
|
|
944
1063
|
name: "hide",
|
|
945
1064
|
options,
|
|
946
1065
|
async fn(state) {
|
|
947
|
-
const { rects, platform
|
|
1066
|
+
const { rects, platform } = state;
|
|
948
1067
|
const { strategy = "referenceHidden", ...detectOverflowOptions } = evaluate(options, state);
|
|
949
1068
|
switch (strategy) {
|
|
950
1069
|
case "referenceHidden": {
|
|
951
|
-
const offsets = getSideOffsets(await platform
|
|
1070
|
+
const offsets = getSideOffsets(await platform.detectOverflow(state, {
|
|
952
1071
|
...detectOverflowOptions,
|
|
953
1072
|
elementContext: "reference"
|
|
954
1073
|
}), rects.reference);
|
|
@@ -958,7 +1077,7 @@ var hide$2 = function(options) {
|
|
|
958
1077
|
} };
|
|
959
1078
|
}
|
|
960
1079
|
case "escaped": {
|
|
961
|
-
const offsets = getSideOffsets(await platform
|
|
1080
|
+
const offsets = getSideOffsets(await platform.detectOverflow(state, {
|
|
962
1081
|
...detectOverflowOptions,
|
|
963
1082
|
altBoundary: true
|
|
964
1083
|
}), rects.floating);
|
|
@@ -974,8 +1093,8 @@ var hide$2 = function(options) {
|
|
|
974
1093
|
};
|
|
975
1094
|
var originSides = /* @__PURE__ */ new Set(["left", "top"]);
|
|
976
1095
|
async function convertValueToCoords(state, options) {
|
|
977
|
-
const { placement, platform
|
|
978
|
-
const rtl = await (platform
|
|
1096
|
+
const { placement, platform, elements } = state;
|
|
1097
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
979
1098
|
const side = getSide(placement);
|
|
980
1099
|
const alignment = getAlignment(placement);
|
|
981
1100
|
const isVertical = getSideAxis(placement) === "y";
|
|
@@ -1000,6 +1119,13 @@ async function convertValueToCoords(state, options) {
|
|
|
1000
1119
|
y: crossAxis * crossAxisMulti
|
|
1001
1120
|
};
|
|
1002
1121
|
}
|
|
1122
|
+
/**
|
|
1123
|
+
* Modifies the placement by translating the floating element along the
|
|
1124
|
+
* specified axes.
|
|
1125
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
1126
|
+
* object may be passed.
|
|
1127
|
+
* @see https://floating-ui.com/docs/offset
|
|
1128
|
+
*/
|
|
1003
1129
|
var offset$2 = function(options) {
|
|
1004
1130
|
if (options === void 0) options = 0;
|
|
1005
1131
|
return {
|
|
@@ -1021,25 +1147,30 @@ var offset$2 = function(options) {
|
|
|
1021
1147
|
}
|
|
1022
1148
|
};
|
|
1023
1149
|
};
|
|
1150
|
+
/**
|
|
1151
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
1152
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
1153
|
+
* @see https://floating-ui.com/docs/shift
|
|
1154
|
+
*/
|
|
1024
1155
|
var shift$2 = function(options) {
|
|
1025
1156
|
if (options === void 0) options = {};
|
|
1026
1157
|
return {
|
|
1027
1158
|
name: "shift",
|
|
1028
1159
|
options,
|
|
1029
1160
|
async fn(state) {
|
|
1030
|
-
const { x, y, placement, platform
|
|
1161
|
+
const { x, y, placement, platform } = state;
|
|
1031
1162
|
const { mainAxis: checkMainAxis = true, crossAxis: checkCrossAxis = false, limiter = { fn: (_ref) => {
|
|
1032
|
-
let { x
|
|
1163
|
+
let { x, y } = _ref;
|
|
1033
1164
|
return {
|
|
1034
|
-
x
|
|
1035
|
-
y
|
|
1165
|
+
x,
|
|
1166
|
+
y
|
|
1036
1167
|
};
|
|
1037
1168
|
} }, ...detectOverflowOptions } = evaluate(options, state);
|
|
1038
1169
|
const coords = {
|
|
1039
1170
|
x,
|
|
1040
1171
|
y
|
|
1041
1172
|
};
|
|
1042
|
-
const overflow = await platform
|
|
1173
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
1043
1174
|
const crossAxis = getSideAxis(getSide(placement));
|
|
1044
1175
|
const mainAxis = getOppositeAxis(crossAxis);
|
|
1045
1176
|
let mainAxisCoord = coords[mainAxis];
|
|
@@ -1047,16 +1178,16 @@ var shift$2 = function(options) {
|
|
|
1047
1178
|
if (checkMainAxis) {
|
|
1048
1179
|
const minSide = mainAxis === "y" ? "top" : "left";
|
|
1049
1180
|
const maxSide = mainAxis === "y" ? "bottom" : "right";
|
|
1050
|
-
const min
|
|
1051
|
-
const max
|
|
1052
|
-
mainAxisCoord = clamp(min
|
|
1181
|
+
const min = mainAxisCoord + overflow[minSide];
|
|
1182
|
+
const max = mainAxisCoord - overflow[maxSide];
|
|
1183
|
+
mainAxisCoord = clamp(min, mainAxisCoord, max);
|
|
1053
1184
|
}
|
|
1054
1185
|
if (checkCrossAxis) {
|
|
1055
1186
|
const minSide = crossAxis === "y" ? "top" : "left";
|
|
1056
1187
|
const maxSide = crossAxis === "y" ? "bottom" : "right";
|
|
1057
|
-
const min
|
|
1058
|
-
const max
|
|
1059
|
-
crossAxisCoord = clamp(min
|
|
1188
|
+
const min = crossAxisCoord + overflow[minSide];
|
|
1189
|
+
const max = crossAxisCoord - overflow[maxSide];
|
|
1190
|
+
crossAxisCoord = clamp(min, crossAxisCoord, max);
|
|
1060
1191
|
}
|
|
1061
1192
|
const limitedCoords = limiter.fn({
|
|
1062
1193
|
...state,
|
|
@@ -1077,6 +1208,12 @@ var shift$2 = function(options) {
|
|
|
1077
1208
|
}
|
|
1078
1209
|
};
|
|
1079
1210
|
};
|
|
1211
|
+
/**
|
|
1212
|
+
* Provides data that allows you to change the size of the floating element —
|
|
1213
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
1214
|
+
* width of the reference element.
|
|
1215
|
+
* @see https://floating-ui.com/docs/size
|
|
1216
|
+
*/
|
|
1080
1217
|
var size$2 = function(options) {
|
|
1081
1218
|
if (options === void 0) options = {};
|
|
1082
1219
|
return {
|
|
@@ -1084,9 +1221,9 @@ var size$2 = function(options) {
|
|
|
1084
1221
|
options,
|
|
1085
1222
|
async fn(state) {
|
|
1086
1223
|
var _state$middlewareData, _state$middlewareData2;
|
|
1087
|
-
const { placement, rects, platform
|
|
1224
|
+
const { placement, rects, platform, elements } = state;
|
|
1088
1225
|
const { apply = () => {}, ...detectOverflowOptions } = evaluate(options, state);
|
|
1089
|
-
const overflow = await platform
|
|
1226
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
1090
1227
|
const side = getSide(placement);
|
|
1091
1228
|
const alignment = getAlignment(placement);
|
|
1092
1229
|
const isYAxis = getSideAxis(placement) === "y";
|
|
@@ -1095,7 +1232,7 @@ var size$2 = function(options) {
|
|
|
1095
1232
|
let widthSide;
|
|
1096
1233
|
if (side === "top" || side === "bottom") {
|
|
1097
1234
|
heightSide = side;
|
|
1098
|
-
widthSide = alignment === (await (platform
|
|
1235
|
+
widthSide = alignment === (await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right";
|
|
1099
1236
|
} else {
|
|
1100
1237
|
widthSide = side;
|
|
1101
1238
|
heightSide = alignment === "end" ? "top" : "bottom";
|
|
@@ -1122,12 +1259,14 @@ var size$2 = function(options) {
|
|
|
1122
1259
|
availableWidth,
|
|
1123
1260
|
availableHeight
|
|
1124
1261
|
});
|
|
1125
|
-
const nextDimensions = await platform
|
|
1262
|
+
const nextDimensions = await platform.getDimensions(elements.floating);
|
|
1126
1263
|
if (width !== nextDimensions.width || height !== nextDimensions.height) return { reset: { rects: true } };
|
|
1127
1264
|
return {};
|
|
1128
1265
|
}
|
|
1129
1266
|
};
|
|
1130
1267
|
};
|
|
1268
|
+
//#endregion
|
|
1269
|
+
//#region ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
1131
1270
|
function getCssDimensions(element) {
|
|
1132
1271
|
const css = getComputedStyle$1(element);
|
|
1133
1272
|
let width = parseFloat(css.width) || 0;
|
|
@@ -1534,6 +1673,14 @@ function observeMove(element, onMove) {
|
|
|
1534
1673
|
refresh(true);
|
|
1535
1674
|
return cleanup;
|
|
1536
1675
|
}
|
|
1676
|
+
/**
|
|
1677
|
+
* Automatically updates the position of the floating element when necessary.
|
|
1678
|
+
* Should only be called when the floating element is mounted on the DOM or
|
|
1679
|
+
* visible on the screen.
|
|
1680
|
+
* @returns cleanup function that should be invoked when the floating element is
|
|
1681
|
+
* removed from the DOM or hidden from the screen.
|
|
1682
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
|
1683
|
+
*/
|
|
1537
1684
|
function autoUpdate(reference, floating, update, options) {
|
|
1538
1685
|
if (options === void 0) options = {};
|
|
1539
1686
|
const { ancestorScroll = true, ancestorResize = true, elementResize = typeof ResizeObserver === "function", layoutShift = typeof IntersectionObserver === "function", animationFrame = false } = options;
|
|
@@ -1584,12 +1731,50 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
1584
1731
|
if (animationFrame) cancelAnimationFrame(frameId);
|
|
1585
1732
|
};
|
|
1586
1733
|
}
|
|
1734
|
+
/**
|
|
1735
|
+
* Modifies the placement by translating the floating element along the
|
|
1736
|
+
* specified axes.
|
|
1737
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
1738
|
+
* object may be passed.
|
|
1739
|
+
* @see https://floating-ui.com/docs/offset
|
|
1740
|
+
*/
|
|
1587
1741
|
var offset$1 = offset$2;
|
|
1742
|
+
/**
|
|
1743
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
1744
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
1745
|
+
* @see https://floating-ui.com/docs/shift
|
|
1746
|
+
*/
|
|
1588
1747
|
var shift$1 = shift$2;
|
|
1748
|
+
/**
|
|
1749
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
1750
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
1751
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
1752
|
+
* @see https://floating-ui.com/docs/flip
|
|
1753
|
+
*/
|
|
1589
1754
|
var flip$1 = flip$2;
|
|
1755
|
+
/**
|
|
1756
|
+
* Provides data that allows you to change the size of the floating element —
|
|
1757
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
1758
|
+
* width of the reference element.
|
|
1759
|
+
* @see https://floating-ui.com/docs/size
|
|
1760
|
+
*/
|
|
1590
1761
|
var size$1 = size$2;
|
|
1762
|
+
/**
|
|
1763
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
1764
|
+
* when it is not in the same clipping context as the reference element.
|
|
1765
|
+
* @see https://floating-ui.com/docs/hide
|
|
1766
|
+
*/
|
|
1591
1767
|
var hide$1 = hide$2;
|
|
1592
|
-
|
|
1768
|
+
/**
|
|
1769
|
+
* Provides data to position an inner element of the floating element so that it
|
|
1770
|
+
* appears centered to the reference element.
|
|
1771
|
+
* @see https://floating-ui.com/docs/arrow
|
|
1772
|
+
*/
|
|
1773
|
+
var arrow$2 = arrow$3;
|
|
1774
|
+
/**
|
|
1775
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
|
1776
|
+
* next to a given reference element.
|
|
1777
|
+
*/
|
|
1593
1778
|
var computePosition = (reference, floating, options) => {
|
|
1594
1779
|
const cache = /* @__PURE__ */ new Map();
|
|
1595
1780
|
const mergedOptions = {
|
|
@@ -1605,7 +1790,9 @@ var computePosition = (reference, floating, options) => {
|
|
|
1605
1790
|
platform: platformWithCache
|
|
1606
1791
|
});
|
|
1607
1792
|
};
|
|
1608
|
-
|
|
1793
|
+
//#endregion
|
|
1794
|
+
//#region ../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
1795
|
+
var index = typeof document !== "undefined" ? useLayoutEffect : function noop() {};
|
|
1609
1796
|
function deepEqual(a, b) {
|
|
1610
1797
|
if (a === b) return true;
|
|
1611
1798
|
if (typeof a !== typeof b) return false;
|
|
@@ -1641,16 +1828,20 @@ function roundByDPR(element, value) {
|
|
|
1641
1828
|
const dpr = getDPR(element);
|
|
1642
1829
|
return Math.round(value * dpr) / dpr;
|
|
1643
1830
|
}
|
|
1644
|
-
function useLatestRef
|
|
1831
|
+
function useLatestRef(value) {
|
|
1645
1832
|
const ref = React$1.useRef(value);
|
|
1646
|
-
index
|
|
1833
|
+
index(() => {
|
|
1647
1834
|
ref.current = value;
|
|
1648
1835
|
});
|
|
1649
1836
|
return ref;
|
|
1650
1837
|
}
|
|
1651
|
-
|
|
1838
|
+
/**
|
|
1839
|
+
* Provides data to position a floating element.
|
|
1840
|
+
* @see https://floating-ui.com/docs/useFloating
|
|
1841
|
+
*/
|
|
1842
|
+
function useFloating$1(options) {
|
|
1652
1843
|
if (options === void 0) options = {};
|
|
1653
|
-
const { placement = "bottom", strategy = "absolute", middleware = [], platform
|
|
1844
|
+
const { placement = "bottom", strategy = "absolute", middleware = [], platform, elements: { reference: externalReference, floating: externalFloating } = {}, transform = true, whileElementsMounted, open } = options;
|
|
1654
1845
|
const [data, setData] = React$1.useState({
|
|
1655
1846
|
x: 0,
|
|
1656
1847
|
y: 0,
|
|
@@ -1681,9 +1872,9 @@ function useFloating(options) {
|
|
|
1681
1872
|
const floatingRef = React$1.useRef(null);
|
|
1682
1873
|
const dataRef = React$1.useRef(data);
|
|
1683
1874
|
const hasWhileElementsMounted = whileElementsMounted != null;
|
|
1684
|
-
const whileElementsMountedRef = useLatestRef
|
|
1685
|
-
const platformRef = useLatestRef
|
|
1686
|
-
const openRef = useLatestRef
|
|
1875
|
+
const whileElementsMountedRef = useLatestRef(whileElementsMounted);
|
|
1876
|
+
const platformRef = useLatestRef(platform);
|
|
1877
|
+
const openRef = useLatestRef(open);
|
|
1687
1878
|
const update = React$1.useCallback(() => {
|
|
1688
1879
|
if (!referenceRef.current || !floatingRef.current) return;
|
|
1689
1880
|
const config = {
|
|
@@ -1692,9 +1883,9 @@ function useFloating(options) {
|
|
|
1692
1883
|
middleware: latestMiddleware
|
|
1693
1884
|
};
|
|
1694
1885
|
if (platformRef.current) config.platform = platformRef.current;
|
|
1695
|
-
computePosition(referenceRef.current, floatingRef.current, config).then((data
|
|
1886
|
+
computePosition(referenceRef.current, floatingRef.current, config).then((data) => {
|
|
1696
1887
|
const fullData = {
|
|
1697
|
-
...data
|
|
1888
|
+
...data,
|
|
1698
1889
|
isPositioned: openRef.current !== false
|
|
1699
1890
|
};
|
|
1700
1891
|
if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
|
|
@@ -1711,23 +1902,23 @@ function useFloating(options) {
|
|
|
1711
1902
|
platformRef,
|
|
1712
1903
|
openRef
|
|
1713
1904
|
]);
|
|
1714
|
-
index
|
|
1905
|
+
index(() => {
|
|
1715
1906
|
if (open === false && dataRef.current.isPositioned) {
|
|
1716
1907
|
dataRef.current.isPositioned = false;
|
|
1717
|
-
setData((data
|
|
1718
|
-
...data
|
|
1908
|
+
setData((data) => ({
|
|
1909
|
+
...data,
|
|
1719
1910
|
isPositioned: false
|
|
1720
1911
|
}));
|
|
1721
1912
|
}
|
|
1722
1913
|
}, [open]);
|
|
1723
1914
|
const isMountedRef = React$1.useRef(false);
|
|
1724
|
-
index
|
|
1915
|
+
index(() => {
|
|
1725
1916
|
isMountedRef.current = true;
|
|
1726
1917
|
return () => {
|
|
1727
1918
|
isMountedRef.current = false;
|
|
1728
1919
|
};
|
|
1729
1920
|
}, []);
|
|
1730
|
-
index
|
|
1921
|
+
index(() => {
|
|
1731
1922
|
if (referenceEl) referenceRef.current = referenceEl;
|
|
1732
1923
|
if (floatingEl) floatingRef.current = floatingEl;
|
|
1733
1924
|
if (referenceEl && floatingEl) {
|
|
@@ -1791,7 +1982,13 @@ function useFloating(options) {
|
|
|
1791
1982
|
floatingStyles
|
|
1792
1983
|
]);
|
|
1793
1984
|
}
|
|
1794
|
-
|
|
1985
|
+
/**
|
|
1986
|
+
* Provides data to position an inner element of the floating element so that it
|
|
1987
|
+
* appears centered to the reference element.
|
|
1988
|
+
* This wraps the core `arrow` middleware to allow React refs as the element.
|
|
1989
|
+
* @see https://floating-ui.com/docs/arrow
|
|
1990
|
+
*/
|
|
1991
|
+
var arrow$1 = (options) => {
|
|
1795
1992
|
function isRef(value) {
|
|
1796
1993
|
return {}.hasOwnProperty.call(value, "current");
|
|
1797
1994
|
}
|
|
@@ -1801,13 +1998,13 @@ var arrow$1$1 = (options) => {
|
|
|
1801
1998
|
fn(state) {
|
|
1802
1999
|
const { element, padding } = typeof options === "function" ? options(state) : options;
|
|
1803
2000
|
if (element && isRef(element)) {
|
|
1804
|
-
if (element.current != null) return arrow$
|
|
2001
|
+
if (element.current != null) return arrow$2({
|
|
1805
2002
|
element: element.current,
|
|
1806
2003
|
padding
|
|
1807
2004
|
}).fn(state);
|
|
1808
2005
|
return {};
|
|
1809
2006
|
}
|
|
1810
|
-
if (element) return arrow$
|
|
2007
|
+
if (element) return arrow$2({
|
|
1811
2008
|
element,
|
|
1812
2009
|
padding
|
|
1813
2010
|
}).fn(state);
|
|
@@ -1815,6 +2012,13 @@ var arrow$1$1 = (options) => {
|
|
|
1815
2012
|
}
|
|
1816
2013
|
};
|
|
1817
2014
|
};
|
|
2015
|
+
/**
|
|
2016
|
+
* Modifies the placement by translating the floating element along the
|
|
2017
|
+
* specified axes.
|
|
2018
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
2019
|
+
* object may be passed.
|
|
2020
|
+
* @see https://floating-ui.com/docs/offset
|
|
2021
|
+
*/
|
|
1818
2022
|
var offset = (options, deps) => {
|
|
1819
2023
|
const result = offset$1(options);
|
|
1820
2024
|
return {
|
|
@@ -1823,6 +2027,11 @@ var offset = (options, deps) => {
|
|
|
1823
2027
|
options: [options, deps]
|
|
1824
2028
|
};
|
|
1825
2029
|
};
|
|
2030
|
+
/**
|
|
2031
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
2032
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
2033
|
+
* @see https://floating-ui.com/docs/shift
|
|
2034
|
+
*/
|
|
1826
2035
|
var shift = (options, deps) => {
|
|
1827
2036
|
const result = shift$1(options);
|
|
1828
2037
|
return {
|
|
@@ -1831,6 +2040,12 @@ var shift = (options, deps) => {
|
|
|
1831
2040
|
options: [options, deps]
|
|
1832
2041
|
};
|
|
1833
2042
|
};
|
|
2043
|
+
/**
|
|
2044
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
2045
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
2046
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
2047
|
+
* @see https://floating-ui.com/docs/flip
|
|
2048
|
+
*/
|
|
1834
2049
|
var flip = (options, deps) => {
|
|
1835
2050
|
const result = flip$1(options);
|
|
1836
2051
|
return {
|
|
@@ -1839,6 +2054,12 @@ var flip = (options, deps) => {
|
|
|
1839
2054
|
options: [options, deps]
|
|
1840
2055
|
};
|
|
1841
2056
|
};
|
|
2057
|
+
/**
|
|
2058
|
+
* Provides data that allows you to change the size of the floating element —
|
|
2059
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
2060
|
+
* width of the reference element.
|
|
2061
|
+
* @see https://floating-ui.com/docs/size
|
|
2062
|
+
*/
|
|
1842
2063
|
var size = (options, deps) => {
|
|
1843
2064
|
const result = size$1(options);
|
|
1844
2065
|
return {
|
|
@@ -1847,6 +2068,11 @@ var size = (options, deps) => {
|
|
|
1847
2068
|
options: [options, deps]
|
|
1848
2069
|
};
|
|
1849
2070
|
};
|
|
2071
|
+
/**
|
|
2072
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
2073
|
+
* when it is not in the same clipping context as the reference element.
|
|
2074
|
+
* @see https://floating-ui.com/docs/hide
|
|
2075
|
+
*/
|
|
1850
2076
|
var hide = (options, deps) => {
|
|
1851
2077
|
const result = hide$1(options);
|
|
1852
2078
|
return {
|
|
@@ -1855,14 +2081,26 @@ var hide = (options, deps) => {
|
|
|
1855
2081
|
options: [options, deps]
|
|
1856
2082
|
};
|
|
1857
2083
|
};
|
|
2084
|
+
/**
|
|
2085
|
+
* Provides data to position an inner element of the floating element so that it
|
|
2086
|
+
* appears centered to the reference element.
|
|
2087
|
+
* This wraps the core `arrow` middleware to allow React refs as the element.
|
|
2088
|
+
* @see https://floating-ui.com/docs/arrow
|
|
2089
|
+
*/
|
|
1858
2090
|
var arrow = (options, deps) => {
|
|
1859
|
-
const result = arrow$1
|
|
2091
|
+
const result = arrow$1(options);
|
|
1860
2092
|
return {
|
|
1861
2093
|
name: result.name,
|
|
1862
2094
|
fn: result.fn,
|
|
1863
2095
|
options: [options, deps]
|
|
1864
2096
|
};
|
|
1865
2097
|
};
|
|
2098
|
+
//#endregion
|
|
2099
|
+
//#region ../../node_modules/@floating-ui/react/dist/floating-ui.react.mjs
|
|
2100
|
+
/**
|
|
2101
|
+
* Merges an array of refs into a single memoized callback ref or `null`.
|
|
2102
|
+
* @see https://floating-ui.com/docs/react-utils#usemergerefs
|
|
2103
|
+
*/
|
|
1866
2104
|
function useMergeRefs(refs) {
|
|
1867
2105
|
const cleanupRef = React$1.useRef(void 0);
|
|
1868
2106
|
const refEffect = React$1.useCallback((instance) => {
|
|
@@ -1911,7 +2149,7 @@ var count = 0;
|
|
|
1911
2149
|
var genId = () => "floating-ui-" + Math.random().toString(36).slice(2, 6) + count++;
|
|
1912
2150
|
function useFloatingId() {
|
|
1913
2151
|
const [id, setId] = React$1.useState(() => serverHandoffComplete ? genId() : void 0);
|
|
1914
|
-
index(() => {
|
|
2152
|
+
index$1(() => {
|
|
1915
2153
|
if (id == null) setId(genId());
|
|
1916
2154
|
}, []);
|
|
1917
2155
|
React$1.useEffect(() => {
|
|
@@ -1919,6 +2157,12 @@ function useFloatingId() {
|
|
|
1919
2157
|
}, []);
|
|
1920
2158
|
return id;
|
|
1921
2159
|
}
|
|
2160
|
+
/**
|
|
2161
|
+
* Uses React 18's built-in `useId()` when available, or falls back to a
|
|
2162
|
+
* slightly less performant (requiring a double render) implementation for
|
|
2163
|
+
* earlier React versions.
|
|
2164
|
+
* @see https://floating-ui.com/docs/react-utils#useid
|
|
2165
|
+
*/
|
|
1922
2166
|
var useId$1 = SafeReact.useId || useFloatingId;
|
|
1923
2167
|
var devMessageSet;
|
|
1924
2168
|
if (process.env.NODE_ENV !== "production") devMessageSet = /* @__PURE__ */ new Set();
|
|
@@ -1942,14 +2186,18 @@ function error() {
|
|
|
1942
2186
|
console.error(message);
|
|
1943
2187
|
}
|
|
1944
2188
|
}
|
|
1945
|
-
|
|
1946
|
-
|
|
2189
|
+
/**
|
|
2190
|
+
* Renders a pointing arrow triangle.
|
|
2191
|
+
* @see https://floating-ui.com/docs/FloatingArrow
|
|
2192
|
+
*/
|
|
2193
|
+
var FloatingArrow = /* @__PURE__ */ React$1.forwardRef(function FloatingArrow(props, ref) {
|
|
2194
|
+
const { context: { placement, elements: { floating }, middlewareData: { arrow, shift } }, width = 14, height = 7, tipRadius = 0, strokeWidth = 0, staticOffset, stroke, d, style: { transform, ...restStyle } = {}, ...rest } = props;
|
|
1947
2195
|
if (process.env.NODE_ENV !== "production") {
|
|
1948
2196
|
if (!ref) warn("The `ref` prop is required for `FloatingArrow`.");
|
|
1949
2197
|
}
|
|
1950
2198
|
const clipPathId = useId$1();
|
|
1951
|
-
const [isRTL
|
|
1952
|
-
index(() => {
|
|
2199
|
+
const [isRTL, setIsRTL] = React$1.useState(false);
|
|
2200
|
+
index$1(() => {
|
|
1953
2201
|
if (!floating) return;
|
|
1954
2202
|
if (getComputedStyle$1(floating).direction === "rtl") setIsRTL(true);
|
|
1955
2203
|
}, [floating]);
|
|
@@ -1957,7 +2205,7 @@ var FloatingArrow = /* @__PURE__ */ React$1.forwardRef(function FloatingArrow$1(
|
|
|
1957
2205
|
const [side, alignment] = placement.split("-");
|
|
1958
2206
|
const isVerticalSide = side === "top" || side === "bottom";
|
|
1959
2207
|
let computedStaticOffset = staticOffset;
|
|
1960
|
-
if (isVerticalSide && shift
|
|
2208
|
+
if (isVerticalSide && shift != null && shift.x || !isVerticalSide && shift != null && shift.y) computedStaticOffset = null;
|
|
1961
2209
|
const computedStrokeWidth = strokeWidth * 2;
|
|
1962
2210
|
const halfStrokeWidth = computedStrokeWidth / 2;
|
|
1963
2211
|
const svgX = width / 2 * (tipRadius / -8 + 1);
|
|
@@ -1965,9 +2213,9 @@ var FloatingArrow = /* @__PURE__ */ React$1.forwardRef(function FloatingArrow$1(
|
|
|
1965
2213
|
const isCustomShape = !!d;
|
|
1966
2214
|
const yOffsetProp = computedStaticOffset && alignment === "end" ? "bottom" : "top";
|
|
1967
2215
|
let xOffsetProp = computedStaticOffset && alignment === "end" ? "right" : "left";
|
|
1968
|
-
if (computedStaticOffset && isRTL
|
|
1969
|
-
const arrowX = (arrow
|
|
1970
|
-
const arrowY = (arrow
|
|
2216
|
+
if (computedStaticOffset && isRTL) xOffsetProp = alignment === "end" ? "left" : "right";
|
|
2217
|
+
const arrowX = (arrow == null ? void 0 : arrow.x) != null ? computedStaticOffset || arrow.x : "";
|
|
2218
|
+
const arrowY = (arrow == null ? void 0 : arrow.y) != null ? computedStaticOffset || arrow.y : "";
|
|
1971
2219
|
const dValue = d || "M0,0" + (" H" + width) + (" L" + (width - svgX) + "," + (height - svgY)) + (" Q" + width / 2 + "," + height + " " + svgX + "," + (height - svgY)) + " Z";
|
|
1972
2220
|
const rotation = {
|
|
1973
2221
|
top: isCustomShape ? "rotate(180deg)" : "",
|
|
@@ -2034,10 +2282,17 @@ function createEventEmitter() {
|
|
|
2034
2282
|
}
|
|
2035
2283
|
var FloatingNodeContext = /* @__PURE__ */ React$1.createContext(null);
|
|
2036
2284
|
var FloatingTreeContext = /* @__PURE__ */ React$1.createContext(null);
|
|
2285
|
+
/**
|
|
2286
|
+
* Returns the parent node id for nested floating elements, if available.
|
|
2287
|
+
* Returns `null` for top-level floating elements.
|
|
2288
|
+
*/
|
|
2037
2289
|
var useFloatingParentNodeId = () => {
|
|
2038
2290
|
var _React$useContext;
|
|
2039
2291
|
return ((_React$useContext = React$1.useContext(FloatingNodeContext)) == null ? void 0 : _React$useContext.id) || null;
|
|
2040
2292
|
};
|
|
2293
|
+
/**
|
|
2294
|
+
* Returns the nearest floating tree context, if available.
|
|
2295
|
+
*/
|
|
2041
2296
|
var useFloatingTree = () => React$1.useContext(FloatingTreeContext);
|
|
2042
2297
|
function createAttribute(name) {
|
|
2043
2298
|
return "data-floating-ui-" + name;
|
|
@@ -2063,16 +2318,21 @@ function getRestMs(value) {
|
|
|
2063
2318
|
if (typeof value === "function") return value();
|
|
2064
2319
|
return value;
|
|
2065
2320
|
}
|
|
2321
|
+
/**
|
|
2322
|
+
* Opens the floating element while hovering over the reference element, like
|
|
2323
|
+
* CSS `:hover`.
|
|
2324
|
+
* @see https://floating-ui.com/docs/useHover
|
|
2325
|
+
*/
|
|
2066
2326
|
function useHover(context, props) {
|
|
2067
2327
|
if (props === void 0) props = {};
|
|
2068
2328
|
const { open, onOpenChange, dataRef, events, elements } = context;
|
|
2069
2329
|
const { enabled = true, delay = 0, handleClose = null, mouseOnly = false, restMs = 0, move = true } = props;
|
|
2070
2330
|
const tree = useFloatingTree();
|
|
2071
2331
|
const parentId = useFloatingParentNodeId();
|
|
2072
|
-
const handleCloseRef = useLatestRef(handleClose);
|
|
2073
|
-
const delayRef = useLatestRef(delay);
|
|
2074
|
-
const openRef = useLatestRef(open);
|
|
2075
|
-
const restMsRef = useLatestRef(restMs);
|
|
2332
|
+
const handleCloseRef = useLatestRef$1(handleClose);
|
|
2333
|
+
const delayRef = useLatestRef$1(delay);
|
|
2334
|
+
const openRef = useLatestRef$1(open);
|
|
2335
|
+
const restMsRef = useLatestRef$1(restMs);
|
|
2076
2336
|
const pointerTypeRef = React$1.useRef();
|
|
2077
2337
|
const timeoutRef = React$1.useRef(-1);
|
|
2078
2338
|
const handlerRef = React$1.useRef();
|
|
@@ -2088,18 +2348,18 @@ function useHover(context, props) {
|
|
|
2088
2348
|
});
|
|
2089
2349
|
React$1.useEffect(() => {
|
|
2090
2350
|
if (!enabled) return;
|
|
2091
|
-
function onOpenChange
|
|
2092
|
-
let { open
|
|
2093
|
-
if (!open
|
|
2351
|
+
function onOpenChange(_ref) {
|
|
2352
|
+
let { open } = _ref;
|
|
2353
|
+
if (!open) {
|
|
2094
2354
|
clearTimeoutIfSet(timeoutRef);
|
|
2095
2355
|
clearTimeoutIfSet(restTimeoutRef);
|
|
2096
2356
|
blockMouseMoveRef.current = true;
|
|
2097
2357
|
restTimeoutPendingRef.current = false;
|
|
2098
2358
|
}
|
|
2099
2359
|
}
|
|
2100
|
-
events.on("openchange", onOpenChange
|
|
2360
|
+
events.on("openchange", onOpenChange);
|
|
2101
2361
|
return () => {
|
|
2102
|
-
events.off("openchange", onOpenChange
|
|
2362
|
+
events.off("openchange", onOpenChange);
|
|
2103
2363
|
};
|
|
2104
2364
|
}, [enabled, events]);
|
|
2105
2365
|
React$1.useEffect(() => {
|
|
@@ -2109,7 +2369,7 @@ function useHover(context, props) {
|
|
|
2109
2369
|
function onLeave(event) {
|
|
2110
2370
|
if (isHoverOpen()) onOpenChange(false, event, "hover");
|
|
2111
2371
|
}
|
|
2112
|
-
const html = getDocument(elements.floating).documentElement;
|
|
2372
|
+
const html = getDocument$1(elements.floating).documentElement;
|
|
2113
2373
|
html.addEventListener("mouseleave", onLeave);
|
|
2114
2374
|
return () => {
|
|
2115
2375
|
html.removeEventListener("mouseleave", onLeave);
|
|
@@ -2140,7 +2400,7 @@ function useHover(context, props) {
|
|
|
2140
2400
|
});
|
|
2141
2401
|
const clearPointerEvents = useEffectEvent(() => {
|
|
2142
2402
|
if (performedPointerEventsMutationRef.current) {
|
|
2143
|
-
const body = getDocument(elements.floating).body;
|
|
2403
|
+
const body = getDocument$1(elements.floating).body;
|
|
2144
2404
|
body.style.pointerEvents = "";
|
|
2145
2405
|
body.removeAttribute(safePolygonIdentifier);
|
|
2146
2406
|
performedPointerEventsMutationRef.current = false;
|
|
@@ -2167,7 +2427,7 @@ function useHover(context, props) {
|
|
|
2167
2427
|
return;
|
|
2168
2428
|
}
|
|
2169
2429
|
unbindMouseMoveRef.current();
|
|
2170
|
-
const doc = getDocument(elements.floating);
|
|
2430
|
+
const doc = getDocument$1(elements.floating);
|
|
2171
2431
|
clearTimeoutIfSet(restTimeoutRef);
|
|
2172
2432
|
restTimeoutPendingRef.current = false;
|
|
2173
2433
|
if (handleCloseRef.current && dataRef.current.floatingContext) {
|
|
@@ -2214,22 +2474,22 @@ function useHover(context, props) {
|
|
|
2214
2474
|
if (!isClickLikeOpenEvent()) closeWithDelay(event, false);
|
|
2215
2475
|
}
|
|
2216
2476
|
if (isElement(elements.domReference)) {
|
|
2217
|
-
const reference
|
|
2477
|
+
const reference = elements.domReference;
|
|
2218
2478
|
const floating = elements.floating;
|
|
2219
|
-
if (open) reference
|
|
2220
|
-
if (move) reference
|
|
2221
|
-
reference
|
|
2222
|
-
reference
|
|
2479
|
+
if (open) reference.addEventListener("mouseleave", onScrollMouseLeave);
|
|
2480
|
+
if (move) reference.addEventListener("mousemove", onReferenceMouseEnter, { once: true });
|
|
2481
|
+
reference.addEventListener("mouseenter", onReferenceMouseEnter);
|
|
2482
|
+
reference.addEventListener("mouseleave", onReferenceMouseLeave);
|
|
2223
2483
|
if (floating) {
|
|
2224
2484
|
floating.addEventListener("mouseleave", onScrollMouseLeave);
|
|
2225
2485
|
floating.addEventListener("mouseenter", onFloatingMouseEnter);
|
|
2226
2486
|
floating.addEventListener("mouseleave", onFloatingMouseLeave);
|
|
2227
2487
|
}
|
|
2228
2488
|
return () => {
|
|
2229
|
-
if (open) reference
|
|
2230
|
-
if (move) reference
|
|
2231
|
-
reference
|
|
2232
|
-
reference
|
|
2489
|
+
if (open) reference.removeEventListener("mouseleave", onScrollMouseLeave);
|
|
2490
|
+
if (move) reference.removeEventListener("mousemove", onReferenceMouseEnter);
|
|
2491
|
+
reference.removeEventListener("mouseenter", onReferenceMouseEnter);
|
|
2492
|
+
reference.removeEventListener("mouseleave", onReferenceMouseLeave);
|
|
2233
2493
|
if (floating) {
|
|
2234
2494
|
floating.removeEventListener("mouseleave", onScrollMouseLeave);
|
|
2235
2495
|
floating.removeEventListener("mouseenter", onFloatingMouseEnter);
|
|
@@ -2256,7 +2516,7 @@ function useHover(context, props) {
|
|
|
2256
2516
|
isClickLikeOpenEvent,
|
|
2257
2517
|
restMsRef
|
|
2258
2518
|
]);
|
|
2259
|
-
index(() => {
|
|
2519
|
+
index$1(() => {
|
|
2260
2520
|
var _handleCloseRef$curre;
|
|
2261
2521
|
if (!enabled) return;
|
|
2262
2522
|
if (open && (_handleCloseRef$curre = handleCloseRef.current) != null && (_handleCloseRef$curre = _handleCloseRef$curre.__options) != null && _handleCloseRef$curre.blockPointerEvents && isHoverOpen()) {
|
|
@@ -2264,7 +2524,7 @@ function useHover(context, props) {
|
|
|
2264
2524
|
const floatingEl = elements.floating;
|
|
2265
2525
|
if (isElement(elements.domReference) && floatingEl) {
|
|
2266
2526
|
var _tree$nodesRef$curren;
|
|
2267
|
-
const body = getDocument(elements.floating).body;
|
|
2527
|
+
const body = getDocument$1(elements.floating).body;
|
|
2268
2528
|
body.setAttribute(safePolygonIdentifier, "");
|
|
2269
2529
|
const ref = elements.domReference;
|
|
2270
2530
|
const parentFloating = tree == null || (_tree$nodesRef$curren = tree.nodesRef.current.find((node) => node.id === parentId)) == null || (_tree$nodesRef$curren = _tree$nodesRef$curren.context) == null ? void 0 : _tree$nodesRef$curren.elements.floating;
|
|
@@ -2288,7 +2548,7 @@ function useHover(context, props) {
|
|
|
2288
2548
|
handleCloseRef,
|
|
2289
2549
|
isHoverOpen
|
|
2290
2550
|
]);
|
|
2291
|
-
index(() => {
|
|
2551
|
+
index$1(() => {
|
|
2292
2552
|
if (!open) {
|
|
2293
2553
|
pointerTypeRef.current = void 0;
|
|
2294
2554
|
restTimeoutPendingRef.current = false;
|
|
@@ -2355,6 +2615,11 @@ var FloatingDelayGroupContext = /* @__PURE__ */ React$1.createContext({
|
|
|
2355
2615
|
setState: NOOP,
|
|
2356
2616
|
isInstantPhase: false
|
|
2357
2617
|
});
|
|
2618
|
+
/**
|
|
2619
|
+
* Provides context for a group of floating elements that should share a
|
|
2620
|
+
* `delay`.
|
|
2621
|
+
* @see https://floating-ui.com/docs/FloatingDelayGroup
|
|
2622
|
+
*/
|
|
2358
2623
|
function FloatingDelayGroup(props) {
|
|
2359
2624
|
const { children, delay, timeoutMs = 0 } = props;
|
|
2360
2625
|
const [state, setState] = React$1.useReducer((prev, next) => ({
|
|
@@ -2371,7 +2636,7 @@ function FloatingDelayGroup(props) {
|
|
|
2371
2636
|
const setCurrentId = React$1.useCallback((currentId) => {
|
|
2372
2637
|
setState({ currentId });
|
|
2373
2638
|
}, []);
|
|
2374
|
-
index(() => {
|
|
2639
|
+
index$1(() => {
|
|
2375
2640
|
if (state.currentId) {
|
|
2376
2641
|
if (initialCurrentIdRef.current === null) initialCurrentIdRef.current = state.currentId;
|
|
2377
2642
|
else if (!state.isInstantPhase) setState({ isInstantPhase: true });
|
|
@@ -2398,7 +2663,7 @@ function enqueueFocus(el, options) {
|
|
|
2398
2663
|
if (sync) exec();
|
|
2399
2664
|
else rafId = requestAnimationFrame(exec);
|
|
2400
2665
|
}
|
|
2401
|
-
function getDocument
|
|
2666
|
+
function getDocument(node) {
|
|
2402
2667
|
return (node == null ? void 0 : node.ownerDocument) || document;
|
|
2403
2668
|
}
|
|
2404
2669
|
var counters = {
|
|
@@ -2489,7 +2754,7 @@ function applyAttributeToOthers(uncorrectedAvoidElements, body, ariaHidden, iner
|
|
|
2489
2754
|
function markOthers(avoidElements, ariaHidden, inert) {
|
|
2490
2755
|
if (ariaHidden === void 0) ariaHidden = false;
|
|
2491
2756
|
if (inert === void 0) inert = false;
|
|
2492
|
-
const body = getDocument
|
|
2757
|
+
const body = getDocument(avoidElements[0]).body;
|
|
2493
2758
|
return applyAttributeToOthers(avoidElements.concat(Array.from(body.querySelectorAll("[aria-live],[role=\"status\"],output"))), body, ariaHidden, inert);
|
|
2494
2759
|
}
|
|
2495
2760
|
var HIDDEN_STYLES = {
|
|
@@ -2505,9 +2770,9 @@ var HIDDEN_STYLES = {
|
|
|
2505
2770
|
top: 0,
|
|
2506
2771
|
left: 0
|
|
2507
2772
|
};
|
|
2508
|
-
var FocusGuard = /* @__PURE__ */ React$1.forwardRef(function FocusGuard
|
|
2773
|
+
var FocusGuard = /* @__PURE__ */ React$1.forwardRef(function FocusGuard(props, ref) {
|
|
2509
2774
|
const [role, setRole] = React$1.useState();
|
|
2510
|
-
index(() => {
|
|
2775
|
+
index$1(() => {
|
|
2511
2776
|
if (isSafari()) setRole("button");
|
|
2512
2777
|
}, []);
|
|
2513
2778
|
const restProps = {
|
|
@@ -2575,7 +2840,7 @@ function handleTabIndex(floatingFocusElement, orderRef) {
|
|
|
2575
2840
|
floatingFocusElement.setAttribute("data-tabindex", "-1");
|
|
2576
2841
|
}
|
|
2577
2842
|
}
|
|
2578
|
-
var VisuallyHiddenDismiss = /* @__PURE__ */ React$1.forwardRef(function VisuallyHiddenDismiss
|
|
2843
|
+
var VisuallyHiddenDismiss = /* @__PURE__ */ React$1.forwardRef(function VisuallyHiddenDismiss(props, ref) {
|
|
2579
2844
|
return /* @__PURE__ */ jsx("button", {
|
|
2580
2845
|
...props,
|
|
2581
2846
|
type: "button",
|
|
@@ -2584,6 +2849,10 @@ var VisuallyHiddenDismiss = /* @__PURE__ */ React$1.forwardRef(function Visually
|
|
|
2584
2849
|
style: HIDDEN_STYLES
|
|
2585
2850
|
});
|
|
2586
2851
|
});
|
|
2852
|
+
/**
|
|
2853
|
+
* Provides focus management for the floating element.
|
|
2854
|
+
* @see https://floating-ui.com/docs/FloatingFocusManager
|
|
2855
|
+
*/
|
|
2587
2856
|
function FloatingFocusManager(props) {
|
|
2588
2857
|
const { context, children, disabled = false, order = ["content"], guards: _guards = true, initialFocus = 0, returnFocus = true, restoreFocus = false, modal = true, visuallyHiddenDismiss = false, closeOnFocusOut = true, outsideElementsInert = false, getInsideElements: _getInsideElements = () => [] } = props;
|
|
2589
2858
|
const { open, onOpenChange, events, dataRef, elements: { domReference, floating } } = context;
|
|
@@ -2597,9 +2866,9 @@ function FloatingFocusManager(props) {
|
|
|
2597
2866
|
const inertSupported = supportsInert();
|
|
2598
2867
|
const guards = inertSupported ? _guards : true;
|
|
2599
2868
|
const useInert = !guards || inertSupported && outsideElementsInert;
|
|
2600
|
-
const orderRef = useLatestRef(order);
|
|
2601
|
-
const initialFocusRef = useLatestRef(initialFocus);
|
|
2602
|
-
const returnFocusRef = useLatestRef(returnFocus);
|
|
2869
|
+
const orderRef = useLatestRef$1(order);
|
|
2870
|
+
const initialFocusRef = useLatestRef$1(initialFocus);
|
|
2871
|
+
const returnFocusRef = useLatestRef$1(returnFocus);
|
|
2603
2872
|
const tree = useFloatingTree();
|
|
2604
2873
|
const portalContext = usePortalContext();
|
|
2605
2874
|
const startDismissButtonRef = React$1.useRef(null);
|
|
@@ -2627,7 +2896,7 @@ function FloatingFocusManager(props) {
|
|
|
2627
2896
|
if (!modal) return;
|
|
2628
2897
|
function onKeyDown(event) {
|
|
2629
2898
|
if (event.key === "Tab") {
|
|
2630
|
-
if (contains(floatingFocusElement, activeElement(getDocument(floatingFocusElement))) && getTabbableContent().length === 0 && !isUntrappedTypeableCombobox) stopEvent(event);
|
|
2899
|
+
if (contains(floatingFocusElement, activeElement(getDocument$1(floatingFocusElement))) && getTabbableContent().length === 0 && !isUntrappedTypeableCombobox) stopEvent(event);
|
|
2631
2900
|
const els = getTabbableElements();
|
|
2632
2901
|
const target = getTarget(event);
|
|
2633
2902
|
if (orderRef.current[0] === "reference" && target === domReference) {
|
|
@@ -2641,7 +2910,7 @@ function FloatingFocusManager(props) {
|
|
|
2641
2910
|
}
|
|
2642
2911
|
}
|
|
2643
2912
|
}
|
|
2644
|
-
const doc = getDocument(floatingFocusElement);
|
|
2913
|
+
const doc = getDocument$1(floatingFocusElement);
|
|
2645
2914
|
doc.addEventListener("keydown", onKeyDown);
|
|
2646
2915
|
return () => {
|
|
2647
2916
|
doc.removeEventListener("keydown", onKeyDown);
|
|
@@ -2696,7 +2965,7 @@ function FloatingFocusManager(props) {
|
|
|
2696
2965
|
return [(_node$context3 = node.context) == null ? void 0 : _node$context3.elements.floating, getFloatingFocusElement((_node$context4 = node.context) == null ? void 0 : _node$context4.elements.floating)].includes(relatedTarget) || ((_node$context5 = node.context) == null ? void 0 : _node$context5.elements.domReference) === relatedTarget;
|
|
2697
2966
|
})));
|
|
2698
2967
|
if (currentTarget === domReference && floatingFocusElement) handleTabIndex(floatingFocusElement, orderRef);
|
|
2699
|
-
if (restoreFocus && currentTarget !== domReference && !(target != null && target.isConnected) && activeElement(getDocument(floatingFocusElement)) === getDocument(floatingFocusElement).body) {
|
|
2968
|
+
if (restoreFocus && currentTarget !== domReference && !(target != null && target.isConnected) && activeElement(getDocument$1(floatingFocusElement)) === getDocument$1(floatingFocusElement).body) {
|
|
2700
2969
|
if (isHTMLElement(floatingFocusElement)) floatingFocusElement.focus();
|
|
2701
2970
|
const prevTabbableIndex = tabbableIndexRef.current;
|
|
2702
2971
|
const tabbableContent = getTabbableContent();
|
|
@@ -2793,9 +3062,9 @@ function FloatingFocusManager(props) {
|
|
|
2793
3062
|
getNodeId,
|
|
2794
3063
|
getInsideElements
|
|
2795
3064
|
]);
|
|
2796
|
-
index(() => {
|
|
3065
|
+
index$1(() => {
|
|
2797
3066
|
if (disabled || !isHTMLElement(floatingFocusElement)) return;
|
|
2798
|
-
const previouslyFocusedElement = activeElement(getDocument(floatingFocusElement));
|
|
3067
|
+
const previouslyFocusedElement = activeElement(getDocument$1(floatingFocusElement));
|
|
2799
3068
|
queueMicrotask(() => {
|
|
2800
3069
|
const focusableElements = getTabbableElements(floatingFocusElement);
|
|
2801
3070
|
const initialFocusValue = initialFocusRef.current;
|
|
@@ -2811,11 +3080,11 @@ function FloatingFocusManager(props) {
|
|
|
2811
3080
|
getTabbableElements,
|
|
2812
3081
|
initialFocusRef
|
|
2813
3082
|
]);
|
|
2814
|
-
index(() => {
|
|
3083
|
+
index$1(() => {
|
|
2815
3084
|
if (disabled || !floatingFocusElement) return;
|
|
2816
|
-
const doc = getDocument(floatingFocusElement);
|
|
3085
|
+
const doc = getDocument$1(floatingFocusElement);
|
|
2817
3086
|
addPreviouslyFocusedElement(activeElement(doc));
|
|
2818
|
-
function onOpenChange
|
|
3087
|
+
function onOpenChange(_ref) {
|
|
2819
3088
|
let { reason, event, nested } = _ref;
|
|
2820
3089
|
if (["hover", "safe-polygon"].includes(reason) && event.type === "mouseleave") preventReturnFocusRef.current = true;
|
|
2821
3090
|
if (reason !== "outside-press") return;
|
|
@@ -2831,7 +3100,7 @@ function FloatingFocusManager(props) {
|
|
|
2831
3100
|
else preventReturnFocusRef.current = true;
|
|
2832
3101
|
}
|
|
2833
3102
|
}
|
|
2834
|
-
events.on("openchange", onOpenChange
|
|
3103
|
+
events.on("openchange", onOpenChange);
|
|
2835
3104
|
const fallbackEl = doc.createElement("span");
|
|
2836
3105
|
fallbackEl.setAttribute("tabindex", "-1");
|
|
2837
3106
|
fallbackEl.setAttribute("aria-hidden", "true");
|
|
@@ -2845,7 +3114,7 @@ function FloatingFocusManager(props) {
|
|
|
2845
3114
|
return returnFocusRef.current.current || fallbackEl;
|
|
2846
3115
|
}
|
|
2847
3116
|
return () => {
|
|
2848
|
-
events.off("openchange", onOpenChange
|
|
3117
|
+
events.off("openchange", onOpenChange);
|
|
2849
3118
|
const activeEl = activeElement(doc);
|
|
2850
3119
|
const isFocusInsideFloatingTree = contains(floating, activeEl) || tree && getNodeChildren(tree.nodesRef.current, getNodeId(), false).some((node) => {
|
|
2851
3120
|
var _node$context7;
|
|
@@ -2878,7 +3147,7 @@ function FloatingFocusManager(props) {
|
|
|
2878
3147
|
queueMicrotask(clearDisconnectedPreviouslyFocusedElements);
|
|
2879
3148
|
};
|
|
2880
3149
|
}, [disabled]);
|
|
2881
|
-
index(() => {
|
|
3150
|
+
index$1(() => {
|
|
2882
3151
|
if (disabled) return;
|
|
2883
3152
|
if (!portalContext) return;
|
|
2884
3153
|
portalContext.setFocusManagerState({
|
|
@@ -2900,7 +3169,7 @@ function FloatingFocusManager(props) {
|
|
|
2900
3169
|
closeOnFocusOut,
|
|
2901
3170
|
domReference
|
|
2902
3171
|
]);
|
|
2903
|
-
index(() => {
|
|
3172
|
+
index$1(() => {
|
|
2904
3173
|
if (disabled) return;
|
|
2905
3174
|
if (!floatingFocusElement) return;
|
|
2906
3175
|
handleTabIndex(floatingFocusElement, orderRef);
|
|
@@ -2965,6 +3234,10 @@ function isAnchorTarget(event) {
|
|
|
2965
3234
|
function isSpaceIgnored(element) {
|
|
2966
3235
|
return isTypeableElement(element);
|
|
2967
3236
|
}
|
|
3237
|
+
/**
|
|
3238
|
+
* Opens or closes the floating element when clicking the reference element.
|
|
3239
|
+
* @see https://floating-ui.com/docs/useClick
|
|
3240
|
+
*/
|
|
2968
3241
|
function useClick(context, props) {
|
|
2969
3242
|
if (props === void 0) props = {};
|
|
2970
3243
|
const { open, onOpenChange, dataRef, elements: { domReference } } = context;
|
|
@@ -3045,6 +3318,11 @@ var normalizeProp = (normalizable) => {
|
|
|
3045
3318
|
outsidePress: typeof normalizable === "boolean" ? normalizable : (_normalizable$outside = normalizable == null ? void 0 : normalizable.outsidePress) != null ? _normalizable$outside : true
|
|
3046
3319
|
};
|
|
3047
3320
|
};
|
|
3321
|
+
/**
|
|
3322
|
+
* Closes the floating element when a dismissal is requested — by default, when
|
|
3323
|
+
* the user presses the `escape` key or outside of the floating element.
|
|
3324
|
+
* @see https://floating-ui.com/docs/useDismiss
|
|
3325
|
+
*/
|
|
3048
3326
|
function useDismiss(context, props) {
|
|
3049
3327
|
if (props === void 0) props = {};
|
|
3050
3328
|
const { open, onOpenChange, elements, dataRef } = context;
|
|
@@ -3098,7 +3376,7 @@ function useDismiss(context, props) {
|
|
|
3098
3376
|
if (typeof outsidePress === "function" && !outsidePress(event)) return;
|
|
3099
3377
|
const target = getTarget(event);
|
|
3100
3378
|
const inertSelector = "[" + createAttribute("inert") + "]";
|
|
3101
|
-
const markers = getDocument(elements.floating).querySelectorAll(inertSelector);
|
|
3379
|
+
const markers = getDocument$1(elements.floating).querySelectorAll(inertSelector);
|
|
3102
3380
|
let targetRootAncestor = isElement(target) ? target : null;
|
|
3103
3381
|
while (targetRootAncestor && !isLastTraversableNode(targetRootAncestor)) {
|
|
3104
3382
|
const nextParent = getParentNode(targetRootAncestor);
|
|
@@ -3114,8 +3392,8 @@ function useDismiss(context, props) {
|
|
|
3114
3392
|
const isScrollableY = lastTraversableNode || scrollRe.test(style.overflowY);
|
|
3115
3393
|
const canScrollX = isScrollableX && target.clientWidth > 0 && target.scrollWidth > target.clientWidth;
|
|
3116
3394
|
const canScrollY = isScrollableY && target.clientHeight > 0 && target.scrollHeight > target.clientHeight;
|
|
3117
|
-
const isRTL
|
|
3118
|
-
const pressedVerticalScrollbar = canScrollY && (isRTL
|
|
3395
|
+
const isRTL = style.direction === "rtl";
|
|
3396
|
+
const pressedVerticalScrollbar = canScrollY && (isRTL ? event.offsetX <= target.offsetWidth - target.clientWidth : event.offsetX > target.clientWidth);
|
|
3119
3397
|
const pressedHorizontalScrollbar = canScrollX && event.offsetY > target.clientHeight;
|
|
3120
3398
|
if (pressedVerticalScrollbar || pressedHorizontalScrollbar) return;
|
|
3121
3399
|
}
|
|
@@ -3165,7 +3443,7 @@ function useDismiss(context, props) {
|
|
|
3165
3443
|
isComposingRef.current = false;
|
|
3166
3444
|
}, isWebKit() ? 5 : 0);
|
|
3167
3445
|
}
|
|
3168
|
-
const doc = getDocument(elements.floating);
|
|
3446
|
+
const doc = getDocument$1(elements.floating);
|
|
3169
3447
|
if (escapeKey) {
|
|
3170
3448
|
doc.addEventListener("keydown", escapeKeyCapture ? closeOnEscapeKeyDownCapture : closeOnEscapeKeyDown, escapeKeyCapture);
|
|
3171
3449
|
doc.addEventListener("compositionstart", handleCompositionStart);
|
|
@@ -3277,15 +3555,15 @@ function useFloatingRootContext(options) {
|
|
|
3277
3555
|
if (optionDomReference && !isElement(optionDomReference)) error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
3278
3556
|
}
|
|
3279
3557
|
const [positionReference, setPositionReference] = React$1.useState(elementsProp.reference);
|
|
3280
|
-
const onOpenChange = useEffectEvent((open
|
|
3281
|
-
dataRef.current.openEvent = open
|
|
3558
|
+
const onOpenChange = useEffectEvent((open, event, reason) => {
|
|
3559
|
+
dataRef.current.openEvent = open ? event : void 0;
|
|
3282
3560
|
events.emit("openchange", {
|
|
3283
|
-
open
|
|
3561
|
+
open,
|
|
3284
3562
|
event,
|
|
3285
3563
|
reason,
|
|
3286
3564
|
nested
|
|
3287
3565
|
});
|
|
3288
|
-
onOpenChangeProp?.(open
|
|
3566
|
+
onOpenChangeProp?.(open, event, reason);
|
|
3289
3567
|
});
|
|
3290
3568
|
const refs = React$1.useMemo(() => ({ setPositionReference }), []);
|
|
3291
3569
|
const elements = React$1.useMemo(() => ({
|
|
@@ -3314,7 +3592,11 @@ function useFloatingRootContext(options) {
|
|
|
3314
3592
|
refs
|
|
3315
3593
|
]);
|
|
3316
3594
|
}
|
|
3317
|
-
|
|
3595
|
+
/**
|
|
3596
|
+
* Provides data to position a floating element and context to add interactions.
|
|
3597
|
+
* @see https://floating-ui.com/docs/useFloating
|
|
3598
|
+
*/
|
|
3599
|
+
function useFloating(options) {
|
|
3318
3600
|
if (options === void 0) options = {};
|
|
3319
3601
|
const { nodeId } = options;
|
|
3320
3602
|
const internalRootContext = useFloatingRootContext({
|
|
@@ -3332,10 +3614,10 @@ function useFloating$1(options) {
|
|
|
3332
3614
|
const domReference = (computedElements == null ? void 0 : computedElements.domReference) || _domReference;
|
|
3333
3615
|
const domReferenceRef = React$1.useRef(null);
|
|
3334
3616
|
const tree = useFloatingTree();
|
|
3335
|
-
index(() => {
|
|
3617
|
+
index$1(() => {
|
|
3336
3618
|
if (domReference) domReferenceRef.current = domReference;
|
|
3337
3619
|
}, [domReference]);
|
|
3338
|
-
const position = useFloating({
|
|
3620
|
+
const position = useFloating$1({
|
|
3339
3621
|
...options,
|
|
3340
3622
|
elements: {
|
|
3341
3623
|
...computedElements,
|
|
@@ -3385,9 +3667,9 @@ function useFloating$1(options) {
|
|
|
3385
3667
|
nodeId,
|
|
3386
3668
|
rootContext
|
|
3387
3669
|
]);
|
|
3388
|
-
index(() => {
|
|
3670
|
+
index$1(() => {
|
|
3389
3671
|
rootContext.dataRef.current.floatingContext = context;
|
|
3390
|
-
const node = tree == null ? void 0 : tree.nodesRef.current.find((node
|
|
3672
|
+
const node = tree == null ? void 0 : tree.nodesRef.current.find((node) => node.id === nodeId);
|
|
3391
3673
|
if (node) node.context = context;
|
|
3392
3674
|
});
|
|
3393
3675
|
return React$1.useMemo(() => ({
|
|
@@ -3405,6 +3687,11 @@ function useFloating$1(options) {
|
|
|
3405
3687
|
function isMacSafari() {
|
|
3406
3688
|
return isMac() && isSafari();
|
|
3407
3689
|
}
|
|
3690
|
+
/**
|
|
3691
|
+
* Opens the floating element while the reference element has focus, like CSS
|
|
3692
|
+
* `:focus`.
|
|
3693
|
+
* @see https://floating-ui.com/docs/useFocus
|
|
3694
|
+
*/
|
|
3408
3695
|
function useFocus(context, props) {
|
|
3409
3696
|
if (props === void 0) props = {};
|
|
3410
3697
|
const { open, onOpenChange, events, dataRef, elements } = context;
|
|
@@ -3416,7 +3703,7 @@ function useFocus(context, props) {
|
|
|
3416
3703
|
if (!enabled) return;
|
|
3417
3704
|
const win = getWindow(elements.domReference);
|
|
3418
3705
|
function onBlur() {
|
|
3419
|
-
if (!open && isHTMLElement(elements.domReference) && elements.domReference === activeElement(getDocument(elements.domReference))) blockFocusRef.current = true;
|
|
3706
|
+
if (!open && isHTMLElement(elements.domReference) && elements.domReference === activeElement(getDocument$1(elements.domReference))) blockFocusRef.current = true;
|
|
3420
3707
|
}
|
|
3421
3708
|
function onKeyDown() {
|
|
3422
3709
|
keyboardModalityRef.current = true;
|
|
@@ -3443,13 +3730,13 @@ function useFocus(context, props) {
|
|
|
3443
3730
|
]);
|
|
3444
3731
|
React$1.useEffect(() => {
|
|
3445
3732
|
if (!enabled) return;
|
|
3446
|
-
function onOpenChange
|
|
3733
|
+
function onOpenChange(_ref) {
|
|
3447
3734
|
let { reason } = _ref;
|
|
3448
3735
|
if (reason === "reference-press" || reason === "escape-key") blockFocusRef.current = true;
|
|
3449
3736
|
}
|
|
3450
|
-
events.on("openchange", onOpenChange
|
|
3737
|
+
events.on("openchange", onOpenChange);
|
|
3451
3738
|
return () => {
|
|
3452
|
-
events.off("openchange", onOpenChange
|
|
3739
|
+
events.off("openchange", onOpenChange);
|
|
3453
3740
|
};
|
|
3454
3741
|
}, [events, enabled]);
|
|
3455
3742
|
React$1.useEffect(() => {
|
|
@@ -3532,6 +3819,12 @@ function mergeProps(userProps, propsList, elementKey) {
|
|
|
3532
3819
|
}, {})
|
|
3533
3820
|
};
|
|
3534
3821
|
}
|
|
3822
|
+
/**
|
|
3823
|
+
* Merges an array of interaction hooks' props into prop getters, allowing
|
|
3824
|
+
* event handler functions to be composed together without overwriting one
|
|
3825
|
+
* another.
|
|
3826
|
+
* @see https://floating-ui.com/docs/useInteractions
|
|
3827
|
+
*/
|
|
3535
3828
|
function useInteractions(propsList) {
|
|
3536
3829
|
if (propsList === void 0) propsList = [];
|
|
3537
3830
|
const referenceDeps = propsList.map((key) => key == null ? void 0 : key.reference);
|
|
@@ -3550,6 +3843,7 @@ function useInteractions(propsList) {
|
|
|
3550
3843
|
getItemProps
|
|
3551
3844
|
]);
|
|
3552
3845
|
}
|
|
3553
|
-
|
|
3846
|
+
//#endregion
|
|
3847
|
+
export { autoUpdate as _, useDismiss as a, useHover as c, arrow as d, flip as f, size as g, shift as h, useClick as i, useInteractions as l, offset as m, FloatingDelayGroup as n, useFloating as o, hide as p, FloatingFocusManager as r, useFocus as s, FloatingArrow as t, useMergeRefs as u };
|
|
3554
3848
|
|
|
3555
3849
|
//# sourceMappingURL=floating-ui.react.js.map
|