@lanaco/lnc-react-ui 4.0.225 → 4.0.226
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.cjs +1 -1
- package/dist/Accordion.js +2 -2
- package/dist/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +2 -2
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +3 -3
- package/dist/AdBannerSection.cjs +1 -1
- package/dist/AdBannerSection.js +3 -3
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +2 -2
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +2 -2
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +2 -2
- package/dist/BannerNextSection.cjs +1 -1
- package/dist/BannerNextSection.js +3 -3
- package/dist/BannerSectionBasic.cjs +1 -1
- package/dist/BannerSectionBasic.js +2 -2
- package/dist/BannerSectionCarousel.cjs +1 -1
- package/dist/BannerSectionCarousel.js +5 -5
- package/dist/BannerSectionGrid.cjs +2 -2
- package/dist/BannerSectionGrid.js +5 -5
- package/dist/BannerSectionSimple.cjs +1 -1
- package/dist/BannerSectionSimple.js +4 -4
- package/dist/BannerSectionWithList.cjs +1 -1
- package/dist/BannerSectionWithList.js +3 -3
- package/dist/BannerSectionWithListImage.cjs +1 -1
- package/dist/BannerSectionWithListImage.js +2 -2
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +6 -6
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +2 -2
- package/dist/BlogExploreSection.cjs +1 -1
- package/dist/BlogExploreSection.js +6 -6
- package/dist/BlogImagePathSection.cjs +1 -1
- package/dist/BlogImagePathSection.js +2 -2
- package/dist/BlogListSection.cjs +1 -1
- package/dist/BlogListSection.js +6 -6
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +3 -3
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +3 -3
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +4 -4
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +9 -9
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +5 -5
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +7 -7
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +6 -6
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +8 -8
- package/dist/BrandHitsSection.cjs +1 -1
- package/dist/BrandHitsSection.js +4 -4
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +2 -2
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +3 -3
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +2 -2
- package/dist/CalorieCalculatorSection.cjs +1 -1
- package/dist/CalorieCalculatorSection.js +3 -3
- package/dist/{CategorySimpleCard-CkSwvJRw.js → CategorySimpleCard-TJRJ_2Sb.js} +3 -3
- package/dist/{CategorySimpleCard-CIBvknos.cjs → CategorySimpleCard-lIdzBNDa.cjs} +1 -1
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +2 -2
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +2 -2
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +2 -2
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +2 -2
- package/dist/ContactSection.cjs +5 -5
- package/dist/ContactSection.js +1765 -1712
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +3 -3
- package/dist/{CustomStyles-DR4WuDUN.js → CustomStyles-B6uutenq.js} +58 -55
- package/dist/{CustomStyles-2TQQSwtU.cjs → CustomStyles-dJQPJ4s4.cjs} +4 -4
- package/dist/{DailyMotion-BPdBW5Yv.cjs → DailyMotion-BLODEbGN.cjs} +1 -1
- package/dist/{DailyMotion-P9S-WhTX.js → DailyMotion-BcKTajo7.js} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +1 -1
- package/dist/DateInput.cjs +1 -1
- package/dist/DateInput.js +4 -4
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +2 -2
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +2 -2
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +7 -7
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +8 -8
- package/dist/DetailsView.cjs +1 -1
- package/dist/DetailsView.js +2 -2
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +2 -2
- package/dist/DragAndDropFile.cjs +10 -10
- package/dist/DragAndDropFile.js +444 -408
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +2 -2
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +3 -3
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +2 -2
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +2 -2
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +2 -2
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +2 -2
- package/dist/{Facebook-C8L2KR4O.cjs → Facebook-Cxy7fSgc.cjs} +1 -1
- package/dist/{Facebook-vhbBr0rd.js → Facebook-o0wYiIu4.js} +25 -25
- package/dist/FaqSection.cjs +1 -1
- package/dist/FaqSection.js +4 -4
- package/dist/FeedbackSection.cjs +1 -1
- package/dist/FeedbackSection.js +3 -3
- package/dist/FieldOfInterestsMasonrySection.cjs +1 -1
- package/dist/FieldOfInterestsMasonrySection.js +4 -4
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +5 -5
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +4 -4
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +2 -2
- package/dist/{FilePlayer-BVFgHY_f.cjs → FilePlayer-DyIgZGf2.cjs} +1 -1
- package/dist/{FilePlayer-CXTLAokk.js → FilePlayer-Evom9jRl.js} +1 -1
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +2 -2
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +2 -2
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +2 -2
- package/dist/GeneralWithTagsCardsSection.cjs +1 -1
- package/dist/GeneralWithTagsCardsSection.js +4 -4
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +6 -6
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.js +1 -1
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +1 -1
- package/dist/HelpBannerSection.cjs +1 -1
- package/dist/HelpBannerSection.js +2 -2
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +2 -2
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +2 -2
- package/dist/{Kaltura-CRGK2EP7.js → Kaltura-CA_8jdJe.js} +1 -1
- package/dist/{Kaltura-C2fRoaEg.cjs → Kaltura-l-2u1Tm7.cjs} +1 -1
- package/dist/Kanban.cjs +5 -5
- package/dist/Kanban.js +5 -5
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +2 -2
- package/dist/{KanbanCard-DihrKn-I.cjs → KanbanCard-9Pe_tjMt.cjs} +1 -1
- package/dist/{KanbanCard-B9V9EjVE.js → KanbanCard-ffmclwO4.js} +1 -1
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +2 -2
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +1 -1
- package/dist/KanbanHeader.cjs +1 -1
- package/dist/KanbanHeader.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +3 -3
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +2 -2
- package/dist/LoanCalculatorSection.cjs +1 -1
- package/dist/LoanCalculatorSection.js +4 -4
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +3 -3
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +4 -4
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +2 -2
- package/dist/{Mixcloud-D09BQNOt.cjs → Mixcloud-BwTRg6SF.cjs} +1 -1
- package/dist/{Mixcloud-Cn5M-EIT.js → Mixcloud-D2JZtlPe.js} +10 -10
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +3 -3
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/{Mux-C6szci3w.js → Mux-CBMcNvuK.js} +1 -1
- package/dist/{Mux-C-xD7crc.cjs → Mux-tp04uiAm.cjs} +1 -1
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +2 -2
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +2 -2
- package/dist/Notification.cjs +1 -1
- package/dist/Notification.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +3 -3
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +2 -2
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +2 -2
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +3 -3
- package/dist/PageLayout.cjs +1 -1
- package/dist/PageLayout.js +1 -1
- package/dist/Pagination.cjs +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/PartnerBannerSection.cjs +1 -1
- package/dist/PartnerBannerSection.js +2 -2
- package/dist/PartnerBrandsSection.cjs +1 -1
- package/dist/PartnerBrandsSection.js +4 -4
- package/dist/PartnerCardsSection.cjs +1 -1
- package/dist/PartnerCardsSection.js +4 -4
- package/dist/PartnerStatsSection.cjs +1 -1
- package/dist/PartnerStatsSection.js +3 -3
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +2 -2
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +3 -3
- package/dist/PopoverDescription.cjs +1 -1
- package/dist/PopoverDescription.js +1 -1
- package/dist/PopoverHeading.cjs +1 -1
- package/dist/PopoverHeading.js +1 -1
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +1 -1
- package/dist/{Preview-B8HyPnfR.cjs → Preview-2LWO1jPt.cjs} +1 -1
- package/dist/{Preview-CO6WSP5f.js → Preview-CEZQvDLk.js} +6 -6
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +7 -7
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +2 -2
- package/dist/QuattroCardsSection.cjs +1 -1
- package/dist/QuattroCardsSection.js +5 -5
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +3 -3
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +2 -2
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +2 -2
- package/dist/ReviewsSection.cjs +1 -1
- package/dist/ReviewsSection.js +6 -6
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +6 -6
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +2 -2
- package/dist/{SearchSection-BEYnWPSr.js → SearchSection-BQkugcbp.js} +17 -17
- package/dist/{SearchSection-DUY61r3k.cjs → SearchSection-CgbZsVg2.cjs} +2 -2
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +1 -1
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +2 -2
- package/dist/SeparatorSection.cjs +1 -1
- package/dist/SeparatorSection.js +2 -2
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +5 -5
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +2 -2
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +7 -7
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +6 -6
- package/dist/{SoundCloud-Cfaj1Ze1.js → SoundCloud-CK7NvImk.js} +13 -13
- package/dist/{SoundCloud-BsL6Onq6.cjs → SoundCloud-DVmlWv2g.cjs} +1 -1
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +2 -2
- package/dist/StatsSection.cjs +1 -1
- package/dist/StatsSection.js +3 -3
- package/dist/{Streamable-DFtyk9Dt.cjs → Streamable-BBV7DQsj.cjs} +1 -1
- package/dist/{Streamable-CG8_-_w7.js → Streamable-D5oxy9aa.js} +1 -1
- package/dist/Surface.cjs +1 -1
- package/dist/Surface.js +2 -2
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +2 -2
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +2 -2
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +5 -5
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +3 -3
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +2 -2
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +2 -2
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +3 -3
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +2 -2
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +2 -2
- package/dist/ToggleSection.cjs +1 -1
- package/dist/ToggleSection.js +3 -3
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +2 -2
- package/dist/{Twitch-BIUEEDiE.cjs → Twitch-CH7rLHNj.cjs} +1 -1
- package/dist/{Twitch-CbU_0Tx9.js → Twitch-DtrfG3Wo.js} +5 -5
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +2 -2
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +4 -4
- package/dist/{Vidyard-S6Fl_F78.js → Vidyard-C66crgMN.js} +1 -1
- package/dist/{Vidyard-QkjVIros.cjs → Vidyard-DGbMnWlF.cjs} +1 -1
- package/dist/{Vimeo-5bkeYCV4.js → Vimeo-BjGe7JPl.js} +1 -1
- package/dist/{Vimeo-B5jsifNT.cjs → Vimeo-DdFP5z1P.cjs} +1 -1
- package/dist/{Wistia-dpbMmx23.cjs → Wistia-CTuM5tqn.cjs} +1 -1
- package/dist/{Wistia-gOZBV0XZ.js → Wistia-Cnd0mYar.js} +3 -3
- package/dist/{YouTube-BfZRCB6O.cjs → YouTube-Chpmigf-.cjs} +1 -1
- package/dist/{YouTube-XoIB4ATQ.js → YouTube-D2wx0EoX.js} +3 -3
- package/dist/{breakpoints-ff0SIcV3.js → breakpoints-BubDitvo.js} +3 -3
- package/dist/emotion-is-prop-valid.esm-DqkrfvDp.js +10 -0
- package/dist/emotion-is-prop-valid.esm-eyvxYx3u.cjs +1 -0
- package/dist/{emotion-styled.browser.esm-BNN1dTl3.js → emotion-styled.browser.esm-DfbrHHed.js} +4 -4
- package/dist/{emotion-styled.browser.esm-BtEseadx.cjs → emotion-styled.browser.esm-DwHBgTPn.cjs} +1 -1
- package/dist/floating-ui.dom-Bvf9G8UM.cjs +1 -0
- package/dist/floating-ui.dom-C16Oktn3.js +959 -0
- package/dist/{floating-ui.react.esm-CfpRzwmn.js → floating-ui.react.esm-B-RMCmpu.js} +477 -460
- package/dist/floating-ui.react.esm-CsrI9PVk.cjs +4 -0
- package/dist/{index-vQOR22Py.cjs → index-3GKF_7BJ.cjs} +1 -1
- package/dist/{index-41nUb2kP.cjs → index-7Jsjuf-Q.cjs} +29 -29
- package/dist/{index-B1vKwsDE.js → index-B2yaYXE2.js} +651 -651
- package/dist/{index-DZFKpq77.cjs → index-BGNavrtB.cjs} +1 -1
- package/dist/{index-hC-E71GE.js → index-BHcrzV2G.js} +3 -3
- package/dist/{index-CsTfXxpp.cjs → index-Bj1KWOV4.cjs} +1 -1
- package/dist/{index-Cav6G7wx.cjs → index-BkztbBWe.cjs} +1 -1
- package/dist/{index-oYE1Pl7q.cjs → index-BsAddfgC.cjs} +1 -1
- package/dist/{index-C4HycAPS.js → index-CM6vzQBx.js} +4 -4
- package/dist/{index-C-uOIDDa.js → index-Cn4bq6ZX.js} +3 -3
- package/dist/{index-BWeXujWl.js → index-CuRcxKQH.js} +3 -3
- package/dist/{index-DA7SIHV1.cjs → index-CxWXiOMf.cjs} +1 -1
- package/dist/{index-B1-PjbTA.cjs → index-D4-_TrSn.cjs} +1 -1
- package/dist/{index-CBZ-jNah.cjs → index-D4OKsSqi.cjs} +1 -1
- package/dist/{index-4wvppFLx.js → index-DB1J-G6Z.js} +2 -2
- package/dist/{index-BvMY2TbK.js → index-DEypPQRI.js} +1 -1
- package/dist/{index-CX2A-q39.cjs → index-DMbNpyIV.cjs} +1 -1
- package/dist/{index-BdKi2ogu.js → index-DMmw5Ad5.js} +1 -1
- package/dist/{index-CoQ9APCD.js → index-DdfMcHz0.js} +2 -2
- package/dist/{index-B9c6y2J5.cjs → index-DgUNsgfF.cjs} +1 -1
- package/dist/{index-BzSWu-7v.js → index-Djo0ZcRE.js} +5 -5
- package/dist/{index-uCWKRzoS.cjs → index-DkPva6Gr.cjs} +1 -1
- package/dist/{index-BEUk0FDk.js → index-Dx2hfxCG.js} +4 -4
- package/dist/{index-B_ilx3wM.cjs → index-fzBXDy05.cjs} +1 -1
- package/dist/{index-DDShXLaW.js → index-gFZSZLba.js} +6 -6
- package/dist/{index-D9fI5BvI.js → index-jGcy-5M_.js} +3 -3
- package/dist/{index-L_Va5-wK.js → index-rhYVjszT.js} +5 -5
- package/dist/{index-Dc0EEBRW.cjs → index-tdg_Vmed.cjs} +1 -1
- package/dist/{index-6RFrSPs_.js → index-vz5mtWGo.js} +5 -5
- package/dist/index.cjs +1 -1
- package/dist/index.js +6 -6
- package/dist/{react-toastify.esm-BoMuFZcq.cjs → react-toastify.esm-C6GBR4r3.cjs} +1 -1
- package/dist/{react-toastify.esm-BLQznunb.js → react-toastify.esm-CUXbGoqt.js} +1 -1
- package/dist/{style-DC05rdyx.cjs → style-Boz6dk5s.cjs} +1 -1
- package/dist/{style-Bq3rMbnN.js → style-BzaX45du.js} +2 -2
- package/dist/{style-BUyFad_y.js → style-D54KOzZj.js} +3 -3
- package/dist/{style-AYc9hnFj.cjs → style-DIWAdlai.cjs} +1 -1
- package/dist/{style-BwQ4djFC.js → style-DvkivBNg.js} +1 -1
- package/dist/{style-BAcV7F53.cjs → style-Ito6YFqi.cjs} +1 -1
- package/dist/{styled-components.browser.esm-CvykQBGY.cjs → styled-components.browser.esm-BaNxtZgB.cjs} +1 -1
- package/dist/{styled-components.browser.esm-D-n22PJk.js → styled-components.browser.esm-Cfeh8eHg.js} +1 -1
- package/dist/{tag-Bi8gg6hJ.js → tag-CHNc7DhI.js} +2 -2
- package/dist/{tag-DSnhWWHE.cjs → tag-CWcvCQcz.cjs} +1 -1
- package/dist/{theme-Befg4g_L.js → theme-mUflS4q4.js} +1 -1
- package/dist/{useDetectMobile-CcVo3PNi.js → useDetectMobile-B0Jog4jQ.js} +1 -1
- package/dist/usePopover.cjs +1 -1
- package/dist/usePopover.js +6 -6
- package/dist/{utils-B2fsQ6PS.js → utils-MoGhNMmj.js} +3 -3
- package/package.json +1 -1
- package/dist/emotion-is-prop-valid.esm-BNsx9k19.cjs +0 -1
- package/dist/emotion-is-prop-valid.esm-CbWxtx4i.js +0 -10
- package/dist/floating-ui.dom-B931An3C.js +0 -954
- package/dist/floating-ui.dom-CN4MB7mG.cjs +0 -1
- package/dist/floating-ui.react.esm-CiYofNnh.cjs +0 -4
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const X=Math.min,N=Math.max,K=Math.round,U=Math.floor,L=t=>({x:t,y:t}),Vt={left:"right",right:"left",bottom:"top",top:"bottom"},Bt={start:"end",end:"start"};function gt(t,e,n){return N(t,X(e,n))}function Q(t,e){return typeof t=="function"?t(e):t}function V(t){return t.split("-")[0]}function Z(t){return t.split("-")[1]}function At(t){return t==="x"?"y":"x"}function Rt(t){return t==="y"?"height":"width"}const Mt=new Set(["top","bottom"]);function P(t){return Mt.has(V(t))?"y":"x"}function Ot(t){return At(P(t))}function Wt(t,e,n){n===void 0&&(n=!1);const o=Z(t),i=Ot(t),r=Rt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=G(s)),[s,G(s)]}function Ht(t){const e=G(t);return[rt(t),e,rt(e)]}function rt(t){return t.replace(/start|end/g,e=>Bt[e])}const pt=["left","right"],wt=["right","left"],_t=["top","bottom"],$t=["bottom","top"];function zt(t,e,n){switch(t){case"top":case"bottom":return n?e?wt:pt:e?pt:wt;case"left":case"right":return e?_t:$t;default:return[]}}function It(t,e,n,o){const i=Z(t);let r=zt(V(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(rt)))),r}function G(t){return t.replace(/left|right|bottom|top/g,e=>Vt[e])}function jt(t){return{top:0,right:0,bottom:0,left:0,...t}}function Yt(t){return typeof t!="number"?jt(t):{top:t,right:t,bottom:t,left:t}}function J(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function xt(t,e,n){let{reference:o,floating:i}=t;const r=P(e),s=Ot(e),c=Rt(s),l=V(e),f=r==="y",d=o.x+o.width/2-i.width/2,a=o.y+o.height/2-i.height/2,m=o[c]/2-i[c]/2;let u;switch(l){case"top":u={x:d,y:o.y-i.height};break;case"bottom":u={x:d,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:a};break;case"left":u={x:o.x-i.width,y:a};break;default:u={x:o.x,y:o.y}}switch(Z(e)){case"start":u[s]-=m*(n&&f?-1:1);break;case"end":u[s]+=m*(n&&f?-1:1);break}return u}const qt=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let f=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:a}=xt(f,o,l),m=o,u={},h=0;for(let p=0;p<c.length;p++){const{name:w,fn:g}=c[p],{x,y,data:b,reset:v}=await g({x:d,y:a,initialPlacement:o,placement:m,strategy:i,middlewareData:u,rects:f,platform:s,elements:{reference:t,floating:e}});d=x??d,a=y??a,u={...u,[w]:{...u[w],...b}},v&&h<=50&&(h++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(f=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:d,y:a}=xt(f,m,l)),p=-1)}return{x:d,y:a,placement:m,strategy:i,middlewareData:u}};async function Ct(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:a="floating",altBoundary:m=!1,padding:u=0}=Q(e,t),h=Yt(u),w=c[m?a==="floating"?"reference":"floating":a],g=J(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:f,rootBoundary:d,strategy:l})),x=a==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),b=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},v=J(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:y,strategy:l}):x);return{top:(g.top-v.top+h.top)/b.y,bottom:(v.bottom-g.bottom+h.bottom)/b.y,left:(g.left-v.left+h.left)/b.x,right:(v.right-g.right+h.right)/b.x}}const Ut=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:f}=e,{mainAxis:d=!0,crossAxis:a=!0,fallbackPlacements:m,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...w}=Q(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const g=V(i),x=P(c),y=V(c)===c,b=await(l.isRTL==null?void 0:l.isRTL(f.floating)),v=m||(y||!p?[G(c)]:Ht(c)),I=h!=="none";!m&&I&&v.push(...It(c,p,h,b));const M=[c,...v],ot=await Ct(e,w),q=[];let W=((o=r.flip)==null?void 0:o.overflows)||[];if(d&&q.push(ot[g]),a){const F=Wt(i,s,b);q.push(ot[F[0]],ot[F[1]])}if(W=[...W,{placement:i,overflows:q}],!q.every(F=>F<=0)){var dt,mt;const F=(((dt=r.flip)==null?void 0:dt.index)||0)+1,it=M[F];if(it&&(!(a==="alignment"?x!==P(it):!1)||W.every(R=>R.overflows[0]>0&&P(R.placement)===x)))return{data:{index:F,overflows:W},reset:{placement:it}};let j=(mt=W.filter(k=>k.overflows[0]<=0).sort((k,R)=>k.overflows[1]-R.overflows[1])[0])==null?void 0:mt.placement;if(!j)switch(u){case"bestFit":{var ht;const k=(ht=W.filter(R=>{if(I){const S=P(R.placement);return S===x||S==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(S=>S>0).reduce((S,Nt)=>S+Nt,0)]).sort((R,S)=>R[1]-S[1])[0])==null?void 0:ht[0];k&&(j=k);break}case"initialPlacement":j=c;break}if(i!==j)return{reset:{placement:j}}}return{}}}},Xt=new Set(["left","top"]);async function Kt(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=V(n),c=Z(n),l=P(n)==="y",f=Xt.has(s)?-1:1,d=r&&l?-1:1,a=Q(e,t);let{mainAxis:m,crossAxis:u,alignmentAxis:h}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return c&&typeof h=="number"&&(u=c==="end"?h*-1:h),l?{x:u*d,y:m*f}:{x:m*f,y:u*d}}const Gt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,l=await Kt(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},Jt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...l}=Q(t,e),f={x:n,y:o},d=await Ct(e,l),a=P(V(i)),m=At(a);let u=f[m],h=f[a];if(r){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",x=u+d[w],y=u-d[g];u=gt(x,u,y)}if(s){const w=a==="y"?"top":"left",g=a==="y"?"bottom":"right",x=h+d[w],y=h-d[g];h=gt(x,h,y)}const p=c.fn({...e,[m]:u,[a]:h});return{...p,data:{x:p.x-n,y:p.y-o,enabled:{[m]:r,[a]:s}}}}}};function tt(){return typeof window<"u"}function z(t){return Lt(t)?(t.nodeName||"").toLowerCase():"#document"}function A(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function E(t){var e;return(e=(Lt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Lt(t){return tt()?t instanceof Node||t instanceof A(t).Node:!1}function O(t){return tt()?t instanceof Element||t instanceof A(t).Element:!1}function T(t){return tt()?t instanceof HTMLElement||t instanceof A(t).HTMLElement:!1}function yt(t){return!tt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof A(t).ShadowRoot}const Qt=new Set(["inline","contents"]);function Y(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=C(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Qt.has(i)}const Zt=new Set(["table","td","th"]);function te(t){return Zt.has(z(t))}const ee=[":popover-open",":modal"];function et(t){return ee.some(e=>{try{return t.matches(e)}catch{return!1}})}const ne=["transform","translate","scale","rotate","perspective"],oe=["transform","translate","scale","rotate","perspective","filter"],ie=["paint","layout","strict","content"];function lt(t){const e=ft(),n=O(t)?C(t):t;return ne.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||oe.some(o=>(n.willChange||"").includes(o))||ie.some(o=>(n.contain||"").includes(o))}function se(t){let e=D(t);for(;T(e)&&!_(e);){if(lt(e))return e;if(et(e))return null;e=D(e)}return null}function ft(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const re=new Set(["html","body","#document"]);function _(t){return re.has(z(t))}function C(t){return A(t).getComputedStyle(t)}function nt(t){return O(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function D(t){if(z(t)==="html")return t;const e=t.assignedSlot||t.parentNode||yt(t)&&t.host||E(t);return yt(e)?e.host:e}function Tt(t){const e=D(t);return _(e)?t.ownerDocument?t.ownerDocument.body:t.body:T(e)&&Y(e)?e:Tt(e)}function $(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Tt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=A(i);if(r){const c=ct(s);return e.concat(s,s.visualViewport||[],Y(i)?i:[],c&&n?$(c):[])}return e.concat(i,$(i,[],n))}function ct(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Et(t){const e=C(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=T(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=K(n)!==r||K(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function at(t){return O(t)?t:t.contextElement}function H(t){const e=at(t);if(!T(e))return L(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Et(e);let s=(r?K(n.width):n.width)/o,c=(r?K(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const ce=L(0);function St(t){const e=A(t);return!ft()||!e.visualViewport?ce:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function le(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==A(t)?!1:e}function B(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=at(t);let s=L(1);e&&(o?O(o)&&(s=H(o)):s=H(t));const c=le(r,n,o)?St(r):L(0);let l=(i.left+c.x)/s.x,f=(i.top+c.y)/s.y,d=i.width/s.x,a=i.height/s.y;if(r){const m=A(r),u=o&&O(o)?A(o):o;let h=m,p=ct(h);for(;p&&o&&u!==h;){const w=H(p),g=p.getBoundingClientRect(),x=C(p),y=g.left+(p.clientLeft+parseFloat(x.paddingLeft))*w.x,b=g.top+(p.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,f*=w.y,d*=w.x,a*=w.y,l+=y,f+=b,h=A(p),p=ct(h)}}return J({width:d,height:a,x:l,y:f})}function ut(t,e){const n=nt(t).scrollLeft;return e?e.left+n:B(E(t)).left+n}function Pt(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=o.left+e.scrollLeft-(n?0:ut(t,o)),r=o.top+e.scrollTop;return{x:i,y:r}}function fe(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=E(o),c=e?et(e.floating):!1;if(o===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},f=L(1);const d=L(0),a=T(o);if((a||!a&&!r)&&((z(o)!=="body"||Y(s))&&(l=nt(o)),T(o))){const u=B(o);f=H(o),d.x=u.x+o.clientLeft,d.y=u.y+o.clientTop}const m=s&&!a&&!r?Pt(s,l,!0):L(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+d.x+m.x,y:n.y*f.y-l.scrollTop*f.y+d.y+m.y}}function ae(t){return Array.from(t.getClientRects())}function ue(t){const e=E(t),n=nt(t),o=t.ownerDocument.body,i=N(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=N(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+ut(t);const c=-n.scrollTop;return C(o).direction==="rtl"&&(s+=N(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}function de(t,e){const n=A(t),o=E(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){r=i.width,s=i.height;const f=ft();(!f||f&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:c,y:l}}const me=new Set(["absolute","fixed"]);function he(t,e){const n=B(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=T(t)?H(t):L(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=i*r.x,f=o*r.y;return{width:s,height:c,x:l,y:f}}function vt(t,e,n){let o;if(e==="viewport")o=de(t,n);else if(e==="document")o=ue(E(t));else if(O(e))o=he(e,n);else{const i=St(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return J(o)}function Dt(t,e){const n=D(t);return n===e||!O(n)||_(n)?!1:C(n).position==="fixed"||Dt(n,e)}function ge(t,e){const n=e.get(t);if(n)return n;let o=$(t,[],!1).filter(c=>O(c)&&z(c)!=="body"),i=null;const r=C(t).position==="fixed";let s=r?D(t):t;for(;O(s)&&!_(s);){const c=C(s),l=lt(s);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&me.has(i.position)||Y(s)&&!l&&Dt(t,s))?o=o.filter(d=>d!==s):i=c,s=D(s)}return e.set(t,o),o}function pe(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?et(e)?[]:ge(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((f,d)=>{const a=vt(e,d,i);return f.top=N(a.top,f.top),f.right=X(a.right,f.right),f.bottom=X(a.bottom,f.bottom),f.left=N(a.left,f.left),f},vt(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function we(t){const{width:e,height:n}=Et(t);return{width:e,height:n}}function xe(t,e,n){const o=T(e),i=E(e),r=n==="fixed",s=B(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=L(0);function f(){l.x=ut(i)}if(o||!o&&!r)if((z(e)!=="body"||Y(i))&&(c=nt(e)),o){const u=B(e,!0,r,e);l.x=u.x+e.clientLeft,l.y=u.y+e.clientTop}else i&&f();r&&!o&&i&&f();const d=i&&!o&&!r?Pt(i,c):L(0),a=s.left+c.scrollLeft-l.x-d.x,m=s.top+c.scrollTop-l.y-d.y;return{x:a,y:m,width:s.width,height:s.height}}function st(t){return C(t).position==="static"}function bt(t,e){if(!T(t)||C(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return E(t)===n&&(n=n.ownerDocument.body),n}function Ft(t,e){const n=A(t);if(et(t))return n;if(!T(t)){let i=D(t);for(;i&&!_(i);){if(O(i)&&!st(i))return i;i=D(i)}return n}let o=bt(t,e);for(;o&&te(o)&&st(o);)o=bt(o,e);return o&&_(o)&&st(o)&&!lt(o)?n:o||se(t)||n}const ye=async function(t){const e=this.getOffsetParent||Ft,n=this.getDimensions,o=await n(t.floating);return{reference:xe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ve(t){return C(t).direction==="rtl"}const be={convertOffsetParentRelativeRectToViewportRelativeRect:fe,getDocumentElement:E,getClippingRect:pe,getOffsetParent:Ft,getElementRects:ye,getClientRects:ae,getDimensions:we,getScale:H,isElement:O,isRTL:ve};function kt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Ae(t,e){let n=null,o;const i=E(t);function r(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const f=t.getBoundingClientRect(),{left:d,top:a,width:m,height:u}=f;if(c||e(),!m||!u)return;const h=U(a),p=U(i.clientWidth-(d+m)),w=U(i.clientHeight-(a+u)),g=U(d),y={rootMargin:-h+"px "+-p+"px "+-w+"px "+-g+"px",threshold:N(0,X(1,l))||1};let b=!0;function v(I){const M=I[0].intersectionRatio;if(M!==l){if(!b)return s();M?s(!1,M):o=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!kt(f,t.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(v,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(v,y)}n.observe(t)}return s(!0),r}function Re(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,f=at(t),d=i||r?[...f?$(f):[],...$(e)]:[];d.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const a=f&&c?Ae(f,n):null;let m=-1,u=null;s&&(u=new ResizeObserver(g=>{let[x]=g;x&&x.target===f&&u&&(u.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=u)==null||y.observe(e)})),n()}),f&&!l&&u.observe(f),u.observe(e));let h,p=l?B(t):null;l&&w();function w(){const g=B(t);p&&!kt(p,g)&&n(),p=g,h=requestAnimationFrame(w)}return n(),()=>{var g;d.forEach(x=>{i&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),a==null||a(),(g=u)==null||g.disconnect(),u=null,l&&cancelAnimationFrame(h)}}const Oe=Gt,Ce=Jt,Le=Ut,Te=(t,e,n)=>{const o=new Map,i={platform:be,...n},r={...i.platform,_c:o};return qt(t,e,{...i,platform:r})};exports.autoUpdate=Re;exports.computePosition=Te;exports.flip=Le;exports.getOverflowAncestors=$;exports.offset=Oe;exports.shift=Ce;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";const ne=require("./floating-ui.dom-CN4MB7mG.cjs"),Y=require("react"),ye=require("./index-41nUb2kP.cjs");function Ze(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=Ze(Y);var re=typeof document<"u"?Y.useLayoutEffect:Y.useEffect;function ie(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ie(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ie(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ae(e){const t=s.useRef(e);return re(()=>{t.current=e}),t}function Je(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,whileElementsMounted:i,open:u}=e,[a,f]=s.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=s.useState(r);ie(v,r)||g(r);const c=s.useRef(null),l=s.useRef(null),p=s.useRef(a),w=Ae(i),b=Ae(o),[d,m]=s.useState(null),[I,E]=s.useState(null),F=s.useCallback(T=>{c.current!==T&&(c.current=T,m(T))},[]),N=s.useCallback(T=>{l.current!==T&&(l.current=T,E(T))},[]),O=s.useCallback(()=>{if(!c.current||!l.current)return;const T={placement:t,strategy:n,middleware:v};b.current&&(T.platform=b.current),ne.computePosition(c.current,l.current,T).then(D=>{const A={...D,isPositioned:!0};V.current&&!ie(p.current,A)&&(p.current=A,ye.reactDomExports.flushSync(()=>{f(A)}))})},[v,t,n,b]);re(()=>{u===!1&&p.current.isPositioned&&(p.current.isPositioned=!1,f(T=>({...T,isPositioned:!1})))},[u]);const V=s.useRef(!1);re(()=>(V.current=!0,()=>{V.current=!1}),[]),re(()=>{if(d&&I){if(w.current)return w.current(d,I,O);O()}},[d,I,O,w]);const W=s.useMemo(()=>({reference:c,floating:l,setReference:F,setFloating:N}),[F,N]),K=s.useMemo(()=>({reference:d,floating:I}),[d,I]);return s.useMemo(()=>({...a,update:O,refs:W,elements:K,reference:F,floating:N}),[a,O,W,K,F,N])}var Qe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},z=new WeakMap,ee=new WeakMap,te={},pe=0,Ke=function(e){return e&&(e.host||Ke(e.parentNode))},et=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ke(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},tt=function(e,t,n,r){var o=et(t,Array.isArray(e)?e:[e]);te[n]||(te[n]=new WeakMap);var i=te[n],u=[],a=new Set,f=new Set(o),v=function(c){!c||a.has(c)||(a.add(c),v(c.parentNode))};o.forEach(v);var g=function(c){!c||f.has(c)||Array.prototype.forEach.call(c.children,function(l){if(a.has(l))g(l);else try{var p=l.getAttribute(r),w=p!==null&&p!=="false",b=(z.get(l)||0)+1,d=(i.get(l)||0)+1;z.set(l,b),i.set(l,d),u.push(l),b===1&&w&&ee.set(l,!0),d===1&&l.setAttribute(n,"true"),w||l.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",l,m)}})};return g(t),a.clear(),pe++,function(){u.forEach(function(c){var l=z.get(c)-1,p=i.get(c)-1;z.set(c,l),i.set(c,p),l||(ee.has(c)||c.removeAttribute(r),ee.delete(c)),p||c.removeAttribute(n)}),pe--,pe||(z=new WeakMap,z=new WeakMap,ee=new WeakMap,te={})}},nt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Qe(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tt(r,o,n,"aria-hidden")):function(){return null}};/*!
|
|
2
|
-
* tabbable 6.2.0
|
|
3
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
-
*/var rt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ee=rt.join(","),Ve=typeof Element>"u",Z=Ve?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ue=!Ve&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},se=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",u=i||n&&t&&e(t.parentNode);return u},ot=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},it=function(t,n,r){if(se(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Ee));return n&&Z.call(t,Ee)&&o.unshift(t),o=o.filter(r),o},ut=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var u=i.shift();if(!se(u,!1))if(u.tagName==="SLOT"){var a=u.assignedElements(),f=a.length?a:u.children,v=e(f,!0,r);r.flatten?o.push.apply(o,v):o.push({scopeParent:u,candidates:v})}else{var g=Z.call(u,Ee);g&&r.filter(u)&&(n||!t.includes(u))&&o.push(u);var c=u.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(u),l=!se(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(u));if(c&&l){var p=e(c===!0?u.children:c.children,!0,r);r.flatten?o.push.apply(o,p):o.push({scopeParent:u,candidates:p})}else i.unshift.apply(i,u.children)}}return o},We=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},$e=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||ot(t))&&!We(t)?0:t.tabIndex},st=function(t,n){var r=$e(t);return r<0&&n&&!We(t)?0:r},at=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},je=function(t){return t.tagName==="INPUT"},lt=function(t){return je(t)&&t.type==="hidden"},ct=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},ft=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},dt=function(t){if(!t.name)return!0;var n=t.form||ue(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var i=ft(o,t.form);return!i||i===t},vt=function(t){return je(t)&&t.type==="radio"},pt=function(t){return vt(t)&&!dt(t)},bt=function(t){var n,r=t&&ue(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var u,a,f;for(i=!!((u=o)!==null&&u!==void 0&&(a=u.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!i&&o;){var v,g,c;r=ue(o),o=(v=r)===null||v===void 0?void 0:v.host,i=!!((g=o)!==null&&g!==void 0&&(c=g.ownerDocument)!==null&&c!==void 0&&c.contains(o))}}return i},Pe=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},gt=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=Z.call(t,"details>summary:first-of-type"),u=i?t.parentElement:t;if(Z.call(u,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var a=t;t;){var f=t.parentElement,v=ue(t);if(f&&!f.shadowRoot&&o(f)===!0)return Pe(t);t.assignedSlot?t=t.assignedSlot:!f&&v!==t.ownerDocument?t=v.host:t=f}t=a}if(bt(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Pe(t);return!1},mt=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return Z.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},ht=function(t,n){return!(n.disabled||se(n)||lt(n)||gt(n,t)||ct(n)||mt(n))},Fe=function(t,n){return!(pt(n)||$e(n)<0||!ht(t,n))},yt=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Et=function e(t){var n=[],r=[];return t.forEach(function(o,i){var u=!!o.scopeParent,a=u?o.scopeParent:o,f=st(a,u),v=u?e(o.candidates):a;f===0?u?n.push.apply(n,v):n.push(a):r.push({documentOrder:i,tabIndex:f,item:o,isScope:u,content:v})}),r.sort(at).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},ae=function(t,n){n=n||{};var r;return n.getShadowRoot?r=ut([t],n.includeContainer,{filter:Fe.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:yt}):r=it(t,n.includeContainer,Fe.bind(null,n)),Et(r)},j=typeof document<"u"?Y.useLayoutEffect:Y.useEffect;let be=!1,Rt=0;const Oe=()=>"floating-ui-"+Rt++;function wt(){const[e,t]=s.useState(()=>be?Oe():void 0);return j(()=>{e==null&&t(Oe())},[]),s.useEffect(()=>{be||(be=!0)},[]),e}const St=s.useId,le=St||wt;function xt(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,(e.get(t)||[]).filter(r=>r!==n))}}}const Tt=s.createContext(null),Ct=s.createContext(null),It=()=>{var e;return((e=s.useContext(Tt))==null?void 0:e.id)||null},Se=()=>s.useContext(Ct);function G(e){return(e==null?void 0:e.ownerDocument)||document}function qe(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function At(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function xe(e){return G(e).defaultView||window}function H(e){return e?e instanceof xe(e).Element:!1}function J(e){return e?e instanceof xe(e).HTMLElement:!1}function Pt(e){if(typeof ShadowRoot>"u")return!1;const t=xe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ft(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(qe())||t.test(At()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ot(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function De(){return/apple/i.test(navigator.vendor)}function Dt(){return qe().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Me(e,t){return["mouse","pen"].includes(e)}function $(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pt(n)){let r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}function oe(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)})||[],r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(u=>{var a;return o.parentId===u.id&&((a=o.context)==null?void 0:a.open)})})||[],n=n.concat(r);return n}function He(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Mt(e){const t=Y.useRef(e);return j(()=>{t.current=e}),t}function ce(){return ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(this,arguments)}function Re(e){let t=e.activeElement;for(;((n=t)==null||(r=n.shadowRoot)==null?void 0:r.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}let ke=0;function q(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(ke);const i=()=>e==null?void 0:e.focus({preventScroll:n});o?i():ke=requestAnimationFrame(i)}function kt(e,t){var n;let r=[],o=(n=e.find(i=>i.id===t))==null?void 0:n.parentId;for(;o;){const i=e.find(u=>u.id===o);o=i==null?void 0:i.parentId,i&&(r=r.concat(i))}return r}const Nt="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function _e(e){return J(e)&&e.matches(Nt)}function ge(e){e.preventDefault(),e.stopPropagation()}const fe=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Ue(e,t){const n=ae(e,fe());t==="prev"&&n.reverse();const r=n.indexOf(Re(G(e)));return n.slice(r+1)[0]}function ze(){return Ue(document.body,"next")}function Ge(){return Ue(document.body,"prev")}function X(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!$(n,r)}function Lt(e){ae(e,fe()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Bt(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Kt=s.useInsertionEffect,Vt=Kt||(e=>e());function Te(e){const t=s.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Vt(()=>{t.current=e}),s.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const Ce={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let we,Ie;function Ne(e){e.key==="Tab"&&(we=e.target,clearTimeout(Ie))}function Wt(e){const t=we===e.relatedTarget;return we=e.relatedTarget,clearTimeout(Ie),t}const de=s.forwardRef(function(t,n){const r=Te(t.onFocus),[o,i]=s.useState();return j(()=>(De()&&i("button"),document.addEventListener("keydown",Ne),()=>{document.removeEventListener("keydown",Ne)}),[]),s.createElement("span",ce({},t,{ref:n,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,"data-floating-ui-focus-guard":"",style:Ce,onFocus:u=>{De()&&Dt()&&!Wt(u)?(u.persist(),Ie=window.setTimeout(()=>{r(u)},50)):r(u)}}))}),Ye=s.createContext(null),$t=function(e){let{id:t,enabled:n=!0}=e===void 0?{}:e;const[r,o]=s.useState(null),i=le(),u=Xe();return j(()=>{if(!n)return;const a=t?document.getElementById(t):null;if(a)a.setAttribute("data-floating-ui-portal",""),o(a);else{const f=document.createElement("div");f.id=t||i,f.setAttribute("data-floating-ui-portal",""),o(f);const v=(u==null?void 0:u.portalNode)||document.body;return v.appendChild(f),()=>{v.removeChild(f)}}},[t,u,i,n]),r},jt=e=>{let{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e;const i=$t({id:n,enabled:!r}),[u,a]=s.useState(null),f=s.useRef(null),v=s.useRef(null),g=s.useRef(null),c=s.useRef(null),l=!!u&&!u.modal&&!!(r||i)&&o;return s.useEffect(()=>{if(!i||!o||u!=null&&u.modal)return;function p(w){i&&X(w)&&(w.type==="focusin"?Bt:Lt)(i)}return i.addEventListener("focusin",p,!0),i.addEventListener("focusout",p,!0),()=>{i.removeEventListener("focusin",p,!0),i.removeEventListener("focusout",p,!0)}},[i,o,u==null?void 0:u.modal]),s.createElement(Ye.Provider,{value:s.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:f,afterOutsideRef:v,beforeInsideRef:g,afterInsideRef:c,portalNode:i,setFocusManagerState:a}),[o,i])},l&&i&&s.createElement(de,{ref:f,onFocus:p=>{if(X(p,i)){var w;(w=g.current)==null||w.focus()}else{const b=Ge()||(u==null?void 0:u.refs.domReference.current);b==null||b.focus()}}}),l&&i&&s.createElement("span",{"aria-owns":i.id,style:Ce}),r?ye.reactDomExports.createPortal(t,r):i?ye.reactDomExports.createPortal(t,i):null,l&&i&&s.createElement(de,{ref:v,onFocus:p=>{if(X(p,i)){var w;(w=c.current)==null||w.focus()}else{const b=ze()||(u==null?void 0:u.refs.domReference.current);b==null||b.focus(),u!=null&&u.closeOnFocusOut&&(u==null||u.onOpenChange(!1))}}}))},Xe=()=>s.useContext(Ye),qt=s.forwardRef(function(t,n){return s.createElement("button",ce({},t,{ref:n,tabIndex:-1,style:Ce}))});function Ht(e){let{context:t,children:n,order:r=["content"],guards:o=!0,initialFocus:i=0,returnFocus:u=!0,modal:a=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:v=!0}=e;const{refs:g,nodeId:c,onOpenChange:l,events:p,dataRef:w,elements:{domReference:b,floating:d}}=t,m=Mt(r),I=Se(),E=Xe(),[F,N]=s.useState(null),O=typeof i=="number"&&i<0,V=s.useRef(null),W=s.useRef(null),K=s.useRef(!1),T=s.useRef(null),D=s.useRef(!1),A=E!=null,S=b&&b.getAttribute("role")==="combobox"&&_e(b),L=s.useCallback(function(h){return h===void 0&&(h=d),h?ae(h,fe()):[]},[d]),C=s.useCallback(h=>{const R=L(h);return m.current.map(y=>b&&y==="reference"?b:d&&y==="floating"?d:R).filter(Boolean).flat()},[b,d,m,L]);s.useEffect(()=>{if(!a)return;function h(y){if(y.key==="Tab"){L().length===0&&!S&&ge(y);const x=C(),M=He(y);m.current[0]==="reference"&&M===b&&(ge(y),y.shiftKey?q(x[x.length-1]):q(x[1])),m.current[1]==="floating"&&M===d&&y.shiftKey&&(ge(y),q(x[0]))}}const R=G(d);return R.addEventListener("keydown",h),()=>{R.removeEventListener("keydown",h)}},[b,d,a,m,g,S,L,C]),s.useEffect(()=>{if(!v)return;function h(){D.current=!0,setTimeout(()=>{D.current=!1})}function R(y){const x=y.relatedTarget,M=!($(b,x)||$(d,x)||$(x,d)||$(E==null?void 0:E.portalNode,x)||x!=null&&x.hasAttribute("data-floating-ui-focus-guard")||I&&(oe(I.nodesRef.current,c).find(P=>{var k,B;return $((k=P.context)==null?void 0:k.elements.floating,x)||$((B=P.context)==null?void 0:B.elements.domReference,x)})||kt(I.nodesRef.current,c).find(P=>{var k,B;return((k=P.context)==null?void 0:k.elements.floating)===x||((B=P.context)==null?void 0:B.elements.domReference)===x})));x&&M&&!D.current&&x!==T.current&&(K.current=!0,setTimeout(()=>l(!1)))}if(d&&J(b))return b.addEventListener("focusout",R),b.addEventListener("pointerdown",h),!a&&d.addEventListener("focusout",R),()=>{b.removeEventListener("focusout",R),b.removeEventListener("pointerdown",h),!a&&d.removeEventListener("focusout",R)}},[b,d,a,c,I,E,l,v]),s.useEffect(()=>{var h;const R=Array.from((E==null||(h=E.portalNode)==null?void 0:h.querySelectorAll("[data-floating-ui-portal]"))||[]);function y(){return[V.current,W.current].filter(Boolean)}if(d&&a){const x=[d,...R,...y()],M=nt(m.current.includes("reference")||S?x.concat(b||[]):x);return()=>{M()}}},[b,d,a,m,E,S]),s.useEffect(()=>{if(a&&!o&&d){const h=[],R=fe(),y=ae(G(d).body,R),x=C(),M=y.filter(P=>!x.includes(P));return M.forEach((P,k)=>{h[k]=P.getAttribute("tabindex"),P.setAttribute("tabindex","-1")}),()=>{M.forEach((P,k)=>{const B=h[k];B==null?P.removeAttribute("tabindex"):P.setAttribute("tabindex",B)})}}},[d,a,o,C]),j(()=>{if(!d)return;const h=G(d);let R=u,y=!1;const x=Re(h),M=w.current;T.current=x;const P=C(d),k=(typeof i=="number"?P[i]:i.current)||d;!O&&q(k,{preventScroll:k===d});function B(U){if(U.type==="escapeKey"&&g.domReference.current&&(T.current=g.domReference.current),["referencePress","escapeKey"].includes(U.type))return;const ve=U.data.returnFocus;typeof ve=="object"?(R=!0,y=ve.preventScroll):R=ve}return p.on("dismiss",B),()=>{if(p.off("dismiss",B),$(d,Re(h))&&g.domReference.current&&(T.current=g.domReference.current),R&&J(T.current)&&!K.current)if(!g.domReference.current||D.current)q(T.current,{cancelPrevious:!1,preventScroll:y});else{var U;M.__syncReturnFocus=!0,(U=T.current)==null||U.focus({preventScroll:y}),setTimeout(()=>{delete M.__syncReturnFocus})}}},[d,C,i,u,w,g,p,O]),j(()=>{if(E)return E.setFocusManagerState({...t,modal:a,closeOnFocusOut:v}),()=>{E.setFocusManagerState(null)}},[E,a,v,t]),j(()=>{if(O||!d)return;function h(){N(L().length)}if(h(),typeof MutationObserver=="function"){const R=new MutationObserver(h);return R.observe(d,{childList:!0,subtree:!0}),()=>{R.disconnect()}}},[d,L,O,g]);const Q=o&&(A||a)&&!S;function _(h){return f&&a?s.createElement(qt,{ref:h==="start"?V:W,onClick:()=>l(!1)},typeof f=="string"?f:"Dismiss"):null}return s.createElement(s.Fragment,null,Q&&s.createElement(de,{ref:E==null?void 0:E.beforeInsideRef,onFocus:h=>{if(a){const y=C();q(r[0]==="reference"?y[0]:y[y.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(K.current=!1,X(h,E.portalNode)){const y=ze()||b;y==null||y.focus()}else{var R;(R=E.beforeOutsideRef.current)==null||R.focus()}}}),S?null:_("start"),s.cloneElement(n,F===0||r.includes("floating")?{tabIndex:0}:{}),_("end"),Q&&s.createElement(de,{ref:E==null?void 0:E.afterInsideRef,onFocus:h=>{if(a)q(C()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(K.current=!0,X(h,E.portalNode)){const y=Ge()||b;y==null||y.focus()}else{var R;(R=E.afterOutsideRef.current)==null||R.focus()}}}))}function Le(e){return J(e.target)&&e.target.tagName==="BUTTON"}function Be(e){return _e(e)}const _t=function(e,t){let{open:n,onOpenChange:r,dataRef:o,refs:i}=e,{enabled:u=!0,event:a="click",toggle:f=!0,ignoreMouse:v=!1,keyboardHandlers:g=!0}=t===void 0?{}:t;const c=s.useRef();return s.useMemo(()=>u?{reference:{onPointerDown(l){c.current=l.pointerType},onMouseDown(l){l.button===0&&(Me(c.current)&&v||a!=="click"&&(n?f&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")&&r(!1):(l.preventDefault(),r(!0)),o.current.openEvent=l.nativeEvent))},onClick(l){if(!o.current.__syncReturnFocus){if(a==="mousedown"&&c.current){c.current=void 0;return}Me(c.current)&&v||(n?f&&(!o.current.openEvent||o.current.openEvent.type==="click")&&r(!1):r(!0),o.current.openEvent=l.nativeEvent)}},onKeyDown(l){c.current=void 0,g&&(Le(l)||(l.key===" "&&!Be(i.domReference.current)&&l.preventDefault(),l.key==="Enter"&&(n?f&&r(!1):r(!0))))},onKeyUp(l){g&&(Le(l)||Be(i.domReference.current)||l.key===" "&&(n?f&&r(!1):r(!0)))}}}:{},[u,o,a,v,g,i,f,n,r])};function me(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}const Ut={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},zt={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Gt=function(e){var t,n;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(n=e.outsidePress)!=null?n:!0}},Yt=function(e,t){let{open:n,onOpenChange:r,events:o,nodeId:i,elements:{reference:u,domReference:a,floating:f}}=e,{enabled:v=!0,escapeKey:g=!0,outsidePress:c=!0,outsidePressEvent:l="pointerdown",referencePress:p=!1,referencePressEvent:w="pointerdown",ancestorScroll:b=!1,bubbles:d=!0}={};const m=Se(),I=It()!=null,E=Te(typeof c=="function"?c:()=>!1),F=typeof c=="function"?E:c,N=s.useRef(!1),{escapeKeyBubbles:O,outsidePressBubbles:V}=Gt(d);return s.useEffect(()=>{if(!n||!v)return;function W(S){if(S.key==="Escape"){if(!O&&m&&oe(m.nodesRef.current,i).length>0)return;o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1)}}function K(S){const L=N.current;if(N.current=!1,L||typeof F=="function"&&!F(S))return;const C=He(S);if(J(C)&&f){const _=f.ownerDocument.defaultView||window,h=C.scrollWidth>C.clientWidth,R=C.scrollHeight>C.clientHeight;let y=R&&S.offsetX>C.clientWidth;if(R&&_.getComputedStyle(C).direction==="rtl"&&(y=S.offsetX<=C.offsetWidth-C.clientWidth),y||h&&S.offsetY>C.clientHeight)return}const Q=m&&oe(m.nodesRef.current,i).some(_=>{var h;return me(S,(h=_.context)==null?void 0:h.elements.floating)});me(S,f)||me(S,a)||Q||!V&&m&&oe(m.nodesRef.current,i).length>0||(o.emit("dismiss",{type:"outsidePress",data:{returnFocus:I?{preventScroll:!0}:Ft(S)||Ot(S)}}),r(!1))}function T(){r(!1)}const D=G(f);g&&D.addEventListener("keydown",W),F&&D.addEventListener(l,K);let A=[];return b&&(H(a)&&(A=ne.getOverflowAncestors(a)),H(f)&&(A=A.concat(ne.getOverflowAncestors(f))),!H(u)&&u&&u.contextElement&&(A=A.concat(ne.getOverflowAncestors(u.contextElement)))),A=A.filter(S=>{var L;return S!==((L=D.defaultView)==null?void 0:L.visualViewport)}),A.forEach(S=>{S.addEventListener("scroll",T,{passive:!0})}),()=>{g&&D.removeEventListener("keydown",W),F&&D.removeEventListener(l,K),A.forEach(S=>{S.removeEventListener("scroll",T)})}},[f,a,u,g,F,l,o,m,i,n,r,b,v,O,V,I]),s.useEffect(()=>{N.current=!1},[F,l]),s.useMemo(()=>v?{reference:{[Ut[w]]:()=>{p&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1))}},floating:{[zt[l]]:()=>{N.current=!0}}}:{},[v,o,p,l,w,r])};function Xt(e){return s.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},e)}const Zt=function(e,t){let{open:n}=e,{enabled:r=!0,role:o="dialog"}={};const i=le(),u=le();return s.useMemo(()=>{const a={id:i,role:o};return r?o==="tooltip"?{reference:{"aria-describedby":n?i:void 0},floating:a}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":n?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:u}},floating:{...a,...o==="menu"&&{"aria-labelledby":u}}}:{}},[r,o,n,i,u])};function Jt(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:n,nodeId:r}=e,o=Je(e),i=Se(),u=s.useRef(null),a=s.useRef({}),f=s.useState(()=>xt())[0],[v,g]=s.useState(null),c=s.useCallback(m=>{const I=H(m)?{getBoundingClientRect:()=>m.getBoundingClientRect(),contextElement:m}:m;o.refs.setReference(I)},[o.refs]),l=s.useCallback(m=>{(H(m)||m===null)&&(u.current=m,g(m)),(H(o.refs.reference.current)||o.refs.reference.current===null||m!==null&&!H(m))&&o.refs.setReference(m)},[o.refs]),p=s.useMemo(()=>({...o.refs,setReference:l,setPositionReference:c,domReference:u}),[o.refs,l,c]),w=s.useMemo(()=>({...o.elements,domReference:v}),[o.elements,v]),b=Te(n),d=s.useMemo(()=>({...o,refs:p,elements:w,dataRef:a,nodeId:r,events:f,open:t,onOpenChange:b}),[o,r,f,t,b,p,w]);return j(()=>{const m=i==null?void 0:i.nodesRef.current.find(I=>I.id===r);m&&(m.context=d)}),s.useMemo(()=>({...o,context:d,refs:p,reference:l,positionReference:c}),[o,p,d,l,c])}function he(e,t,n){const r=new Map;return{...n==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[n]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(u=>{let[a,f]=u;if(a.indexOf("on")===0){if(r.has(a)||r.set(a,[]),typeof f=="function"){var v;(v=r.get(a))==null||v.push(f),o[a]=function(){for(var g,c=arguments.length,l=new Array(c),p=0;p<c;p++)l[p]=arguments[p];(g=r.get(a))==null||g.forEach(w=>w(...l))}}}else o[a]=f}),o),{})}}const Qt=function(e){e===void 0&&(e=[]);const t=e,n=s.useCallback(i=>he(i,e,"reference"),t),r=s.useCallback(i=>he(i,e,"floating"),t),o=s.useCallback(i=>he(i,e,"item"),t);return s.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])};exports.FloatingFocusManager=Ht;exports.FloatingPortal=jt;exports.useClick=_t;exports.useDismiss=Yt;exports.useFloating=Jt;exports.useId=le;exports.useInteractions=Qt;exports.useMergeRefs=Xt;exports.useRole=Zt;
|