@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,207 +1,209 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as et, g as fe } from "./floating-ui.dom-C16Oktn3.js";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { useLayoutEffect as
|
|
4
|
-
import { r as ge } from "./index-
|
|
5
|
-
var te = typeof document < "u" ?
|
|
6
|
-
function re(
|
|
7
|
-
if (
|
|
3
|
+
import { useLayoutEffect as Ve, useEffect as Ke, useRef as tt } from "react";
|
|
4
|
+
import { r as ge } from "./index-B2yaYXE2.js";
|
|
5
|
+
var te = typeof document < "u" ? Ve : Ke;
|
|
6
|
+
function re(t, e) {
|
|
7
|
+
if (t === e)
|
|
8
8
|
return !0;
|
|
9
|
-
if (typeof
|
|
9
|
+
if (typeof t != typeof e)
|
|
10
10
|
return !1;
|
|
11
|
-
if (typeof
|
|
11
|
+
if (typeof t == "function" && t.toString() === e.toString())
|
|
12
12
|
return !0;
|
|
13
13
|
let n, r, o;
|
|
14
|
-
if (
|
|
15
|
-
if (Array.isArray(
|
|
16
|
-
if (n =
|
|
14
|
+
if (t && e && typeof t == "object") {
|
|
15
|
+
if (Array.isArray(t)) {
|
|
16
|
+
if (n = t.length, n != e.length) return !1;
|
|
17
17
|
for (r = n; r-- !== 0; )
|
|
18
|
-
if (!re(
|
|
18
|
+
if (!re(t[r], e[r]))
|
|
19
19
|
return !1;
|
|
20
20
|
return !0;
|
|
21
21
|
}
|
|
22
|
-
if (o = Object.keys(
|
|
22
|
+
if (o = Object.keys(t), n = o.length, n !== Object.keys(e).length)
|
|
23
23
|
return !1;
|
|
24
24
|
for (r = n; r-- !== 0; )
|
|
25
|
-
if (!Object.prototype.hasOwnProperty.call(
|
|
25
|
+
if (!Object.prototype.hasOwnProperty.call(e, o[r]))
|
|
26
26
|
return !1;
|
|
27
27
|
for (r = n; r-- !== 0; ) {
|
|
28
28
|
const i = o[r];
|
|
29
|
-
if (!(i === "_owner" &&
|
|
29
|
+
if (!(i === "_owner" && t.$$typeof) && !re(t[i], e[i]))
|
|
30
30
|
return !1;
|
|
31
31
|
}
|
|
32
32
|
return !0;
|
|
33
33
|
}
|
|
34
|
-
return
|
|
34
|
+
return t !== t && e !== e;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const
|
|
36
|
+
function Ae(t) {
|
|
37
|
+
const e = s.useRef(t);
|
|
38
38
|
return te(() => {
|
|
39
|
-
|
|
40
|
-
}),
|
|
39
|
+
e.current = t;
|
|
40
|
+
}), e;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
|
|
42
|
+
function nt(t) {
|
|
43
|
+
t === void 0 && (t = {});
|
|
44
44
|
const {
|
|
45
|
-
placement:
|
|
45
|
+
placement: e = "bottom",
|
|
46
46
|
strategy: n = "absolute",
|
|
47
47
|
middleware: r = [],
|
|
48
48
|
platform: o,
|
|
49
49
|
whileElementsMounted: i,
|
|
50
50
|
open: u
|
|
51
|
-
} =
|
|
51
|
+
} = t, [a, f] = s.useState({
|
|
52
52
|
x: null,
|
|
53
53
|
y: null,
|
|
54
54
|
strategy: n,
|
|
55
|
-
placement:
|
|
55
|
+
placement: e,
|
|
56
56
|
middlewareData: {},
|
|
57
57
|
isPositioned: !1
|
|
58
|
-
}), [
|
|
59
|
-
re(
|
|
60
|
-
const c = s.useRef(null), l = s.useRef(null), p = s.useRef(a), w =
|
|
58
|
+
}), [d, m] = s.useState(r);
|
|
59
|
+
re(d, r) || m(r);
|
|
60
|
+
const c = s.useRef(null), l = s.useRef(null), p = s.useRef(a), w = Ae(i), b = Ae(o), [v, g] = s.useState(null), [I, E] = s.useState(null), F = s.useCallback((T) => {
|
|
61
61
|
c.current !== T && (c.current = T, g(T));
|
|
62
|
-
}, []),
|
|
62
|
+
}, []), N = s.useCallback((T) => {
|
|
63
63
|
l.current !== T && (l.current = T, E(T));
|
|
64
64
|
}, []), O = s.useCallback(() => {
|
|
65
65
|
if (!c.current || !l.current)
|
|
66
66
|
return;
|
|
67
67
|
const T = {
|
|
68
|
-
placement:
|
|
68
|
+
placement: e,
|
|
69
69
|
strategy: n,
|
|
70
|
-
middleware:
|
|
70
|
+
middleware: d
|
|
71
71
|
};
|
|
72
|
-
b.current && (T.platform = b.current),
|
|
72
|
+
b.current && (T.platform = b.current), et(c.current, l.current, T).then((D) => {
|
|
73
73
|
const A = {
|
|
74
74
|
...D,
|
|
75
75
|
isPositioned: !0
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
K.current && !re(p.current, A) && (p.current = A, ge.flushSync(() => {
|
|
78
78
|
f(A);
|
|
79
79
|
}));
|
|
80
80
|
});
|
|
81
|
-
}, [
|
|
81
|
+
}, [d, e, n, b]);
|
|
82
82
|
te(() => {
|
|
83
83
|
u === !1 && p.current.isPositioned && (p.current.isPositioned = !1, f((T) => ({
|
|
84
84
|
...T,
|
|
85
85
|
isPositioned: !1
|
|
86
86
|
})));
|
|
87
87
|
}, [u]);
|
|
88
|
-
const
|
|
89
|
-
te(() => (
|
|
90
|
-
|
|
88
|
+
const K = s.useRef(!1);
|
|
89
|
+
te(() => (K.current = !0, () => {
|
|
90
|
+
K.current = !1;
|
|
91
91
|
}), []), te(() => {
|
|
92
|
-
if (
|
|
92
|
+
if (v && I) {
|
|
93
93
|
if (w.current)
|
|
94
|
-
return w.current(
|
|
94
|
+
return w.current(v, I, O);
|
|
95
95
|
O();
|
|
96
96
|
}
|
|
97
|
-
}, [
|
|
97
|
+
}, [v, I, O, w]);
|
|
98
98
|
const W = s.useMemo(() => ({
|
|
99
99
|
reference: c,
|
|
100
100
|
floating: l,
|
|
101
101
|
setReference: F,
|
|
102
|
-
setFloating:
|
|
103
|
-
}), [F,
|
|
104
|
-
reference:
|
|
102
|
+
setFloating: N
|
|
103
|
+
}), [F, N]), V = s.useMemo(() => ({
|
|
104
|
+
reference: v,
|
|
105
105
|
floating: I
|
|
106
|
-
}), [
|
|
106
|
+
}), [v, I]);
|
|
107
107
|
return s.useMemo(() => ({
|
|
108
108
|
...a,
|
|
109
109
|
update: O,
|
|
110
110
|
refs: W,
|
|
111
|
-
elements:
|
|
111
|
+
elements: V,
|
|
112
112
|
reference: F,
|
|
113
|
-
floating:
|
|
114
|
-
}), [a, O, W,
|
|
113
|
+
floating: N
|
|
114
|
+
}), [a, O, W, V, F, N]);
|
|
115
115
|
}
|
|
116
|
-
var
|
|
116
|
+
var rt = function(t) {
|
|
117
117
|
if (typeof document > "u")
|
|
118
118
|
return null;
|
|
119
|
-
var
|
|
120
|
-
return
|
|
121
|
-
}, z = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), ee = {}, de = 0,
|
|
122
|
-
return
|
|
123
|
-
},
|
|
124
|
-
return
|
|
125
|
-
if (
|
|
119
|
+
var e = Array.isArray(t) ? t[0] : t;
|
|
120
|
+
return e.ownerDocument.body;
|
|
121
|
+
}, z = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), ee = {}, de = 0, We = function(t) {
|
|
122
|
+
return t && (t.host || We(t.parentNode));
|
|
123
|
+
}, ot = function(t, e) {
|
|
124
|
+
return e.map(function(n) {
|
|
125
|
+
if (t.contains(n))
|
|
126
126
|
return n;
|
|
127
|
-
var r =
|
|
128
|
-
return r &&
|
|
127
|
+
var r = We(n);
|
|
128
|
+
return r && t.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", t, ". Doing nothing"), null);
|
|
129
129
|
}).filter(function(n) {
|
|
130
130
|
return !!n;
|
|
131
131
|
});
|
|
132
|
-
},
|
|
133
|
-
var o =
|
|
132
|
+
}, it = function(t, e, n, r) {
|
|
133
|
+
var o = ot(e, Array.isArray(t) ? t : [t]);
|
|
134
134
|
ee[n] || (ee[n] = /* @__PURE__ */ new WeakMap());
|
|
135
|
-
var i = ee[n], u = [], a = /* @__PURE__ */ new Set(), f = new Set(o),
|
|
136
|
-
!c || a.has(c) || (a.add(c),
|
|
135
|
+
var i = ee[n], u = [], a = /* @__PURE__ */ new Set(), f = new Set(o), d = function(c) {
|
|
136
|
+
!c || a.has(c) || (a.add(c), d(c.parentNode));
|
|
137
137
|
};
|
|
138
|
-
o.forEach(
|
|
138
|
+
o.forEach(d);
|
|
139
139
|
var m = function(c) {
|
|
140
140
|
!c || f.has(c) || Array.prototype.forEach.call(c.children, function(l) {
|
|
141
141
|
if (a.has(l))
|
|
142
142
|
m(l);
|
|
143
143
|
else
|
|
144
144
|
try {
|
|
145
|
-
var p = l.getAttribute(r), w = p !== null && p !== "false", b = (z.get(l) || 0) + 1,
|
|
146
|
-
z.set(l, b), i.set(l,
|
|
145
|
+
var p = l.getAttribute(r), w = p !== null && p !== "false", b = (z.get(l) || 0) + 1, v = (i.get(l) || 0) + 1;
|
|
146
|
+
z.set(l, b), i.set(l, v), u.push(l), b === 1 && w && Q.set(l, !0), v === 1 && l.setAttribute(n, "true"), w || l.setAttribute(r, "true");
|
|
147
147
|
} catch (g) {
|
|
148
148
|
console.error("aria-hidden: cannot operate on ", l, g);
|
|
149
149
|
}
|
|
150
150
|
});
|
|
151
151
|
};
|
|
152
|
-
return m(
|
|
152
|
+
return m(e), a.clear(), de++, function() {
|
|
153
153
|
u.forEach(function(c) {
|
|
154
154
|
var l = z.get(c) - 1, p = i.get(c) - 1;
|
|
155
155
|
z.set(c, l), i.set(c, p), l || (Q.has(c) || c.removeAttribute(r), Q.delete(c)), p || c.removeAttribute(n);
|
|
156
156
|
}), de--, de || (z = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), ee = {});
|
|
157
157
|
};
|
|
158
|
-
},
|
|
158
|
+
}, ut = function(t, e, n) {
|
|
159
159
|
n === void 0 && (n = "data-aria-hidden");
|
|
160
|
-
var r = Array.from(Array.isArray(
|
|
161
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
160
|
+
var r = Array.from(Array.isArray(t) ? t : [t]), o = rt(t);
|
|
161
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), it(r, o, n, "aria-hidden")) : function() {
|
|
162
162
|
return null;
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
165
|
/*!
|
|
166
|
-
* tabbable 6.
|
|
166
|
+
* tabbable 6.4.0
|
|
167
167
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
168
168
|
*/
|
|
169
|
-
var
|
|
170
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, oe =
|
|
171
|
-
var
|
|
172
|
-
return
|
|
173
|
-
} : function(
|
|
174
|
-
return
|
|
175
|
-
}, ie = function
|
|
169
|
+
var st = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], he = /* @__PURE__ */ st.join(","), $e = typeof Element > "u", X = $e ? function() {
|
|
170
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, oe = !$e && Element.prototype.getRootNode ? function(t) {
|
|
171
|
+
var e;
|
|
172
|
+
return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
|
|
173
|
+
} : function(t) {
|
|
174
|
+
return t == null ? void 0 : t.ownerDocument;
|
|
175
|
+
}, ie = function(e, n) {
|
|
176
176
|
var r;
|
|
177
177
|
n === void 0 && (n = !0);
|
|
178
|
-
var o =
|
|
178
|
+
var o = e == null || (r = e.getAttribute) === null || r === void 0 ? void 0 : r.call(e, "inert"), i = o === "" || o === "true", u = i || n && e && // closest does not exist on shadow roots, so we fall back to a manual
|
|
179
|
+
// lookup upward, in case it is not defined.
|
|
180
|
+
(typeof e.closest == "function" ? e.closest("[inert]") : ie(e.parentNode));
|
|
179
181
|
return u;
|
|
180
|
-
},
|
|
181
|
-
var n, r =
|
|
182
|
+
}, at = function(e) {
|
|
183
|
+
var n, r = e == null || (n = e.getAttribute) === null || n === void 0 ? void 0 : n.call(e, "contenteditable");
|
|
182
184
|
return r === "" || r === "true";
|
|
183
|
-
},
|
|
184
|
-
if (ie(
|
|
185
|
+
}, lt = function(e, n, r) {
|
|
186
|
+
if (ie(e))
|
|
185
187
|
return [];
|
|
186
|
-
var o = Array.prototype.slice.apply(
|
|
187
|
-
return n && X.call(
|
|
188
|
-
},
|
|
189
|
-
for (var o = [], i = Array.from(
|
|
188
|
+
var o = Array.prototype.slice.apply(e.querySelectorAll(he));
|
|
189
|
+
return n && X.call(e, he) && o.unshift(e), o = o.filter(r), o;
|
|
190
|
+
}, ye = function(e, n, r) {
|
|
191
|
+
for (var o = [], i = Array.from(e); i.length; ) {
|
|
190
192
|
var u = i.shift();
|
|
191
193
|
if (!ie(u, !1))
|
|
192
194
|
if (u.tagName === "SLOT") {
|
|
193
|
-
var a = u.assignedElements(), f = a.length ? a : u.children,
|
|
194
|
-
r.flatten ? o.push.apply(o,
|
|
195
|
+
var a = u.assignedElements(), f = a.length ? a : u.children, d = ye(f, !0, r);
|
|
196
|
+
r.flatten ? o.push.apply(o, d) : o.push({
|
|
195
197
|
scopeParent: u,
|
|
196
|
-
candidates:
|
|
198
|
+
candidates: d
|
|
197
199
|
});
|
|
198
200
|
} else {
|
|
199
201
|
var m = X.call(u, he);
|
|
200
|
-
m && r.filter(u) && (n || !
|
|
202
|
+
m && r.filter(u) && (n || !e.includes(u)) && o.push(u);
|
|
201
203
|
var c = u.shadowRoot || // check for an undisclosed shadow
|
|
202
204
|
typeof r.getShadowRoot == "function" && r.getShadowRoot(u), l = !ie(c, !1) && (!r.shadowRootFilter || r.shadowRootFilter(u));
|
|
203
205
|
if (c && l) {
|
|
204
|
-
var p =
|
|
206
|
+
var p = ye(c === !0 ? u.children : c.children, !0, r);
|
|
205
207
|
r.flatten ? o.push.apply(o, p) : o.push({
|
|
206
208
|
scopeParent: u,
|
|
207
209
|
candidates: p
|
|
@@ -211,240 +213,255 @@ var it = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
211
213
|
}
|
|
212
214
|
}
|
|
213
215
|
return o;
|
|
214
|
-
},
|
|
215
|
-
return !isNaN(parseInt(
|
|
216
|
-
},
|
|
217
|
-
if (!
|
|
216
|
+
}, qe = function(e) {
|
|
217
|
+
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
218
|
+
}, je = function(e) {
|
|
219
|
+
if (!e)
|
|
218
220
|
throw new Error("No node provided");
|
|
219
|
-
return
|
|
220
|
-
},
|
|
221
|
-
var r =
|
|
222
|
-
return r < 0 && n &&
|
|
223
|
-
},
|
|
224
|
-
return
|
|
225
|
-
},
|
|
226
|
-
return
|
|
227
|
-
},
|
|
228
|
-
return
|
|
229
|
-
},
|
|
230
|
-
var n =
|
|
221
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || at(e)) && !qe(e) ? 0 : e.tabIndex;
|
|
222
|
+
}, ct = function(e, n) {
|
|
223
|
+
var r = je(e);
|
|
224
|
+
return r < 0 && n && !qe(e) ? 0 : r;
|
|
225
|
+
}, ft = function(e, n) {
|
|
226
|
+
return e.tabIndex === n.tabIndex ? e.documentOrder - n.documentOrder : e.tabIndex - n.tabIndex;
|
|
227
|
+
}, He = function(e) {
|
|
228
|
+
return e.tagName === "INPUT";
|
|
229
|
+
}, dt = function(e) {
|
|
230
|
+
return He(e) && e.type === "hidden";
|
|
231
|
+
}, vt = function(e) {
|
|
232
|
+
var n = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(r) {
|
|
231
233
|
return r.tagName === "SUMMARY";
|
|
232
234
|
});
|
|
233
235
|
return n;
|
|
234
|
-
},
|
|
235
|
-
for (var r = 0; r <
|
|
236
|
-
if (
|
|
237
|
-
return
|
|
238
|
-
},
|
|
239
|
-
if (!
|
|
236
|
+
}, pt = function(e, n) {
|
|
237
|
+
for (var r = 0; r < e.length; r++)
|
|
238
|
+
if (e[r].checked && e[r].form === n)
|
|
239
|
+
return e[r];
|
|
240
|
+
}, bt = function(e) {
|
|
241
|
+
if (!e.name)
|
|
240
242
|
return !0;
|
|
241
|
-
var n =
|
|
243
|
+
var n = e.form || oe(e), r = function(a) {
|
|
242
244
|
return n.querySelectorAll('input[type="radio"][name="' + a + '"]');
|
|
243
245
|
}, o;
|
|
244
246
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
245
|
-
o = r(window.CSS.escape(
|
|
247
|
+
o = r(window.CSS.escape(e.name));
|
|
246
248
|
else
|
|
247
249
|
try {
|
|
248
|
-
o = r(
|
|
250
|
+
o = r(e.name);
|
|
249
251
|
} catch (u) {
|
|
250
252
|
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;
|
|
251
253
|
}
|
|
252
|
-
var i =
|
|
253
|
-
return !i || i ===
|
|
254
|
-
},
|
|
255
|
-
return
|
|
256
|
-
},
|
|
257
|
-
return
|
|
258
|
-
},
|
|
259
|
-
var n, r =
|
|
260
|
-
if (r && r !==
|
|
254
|
+
var i = pt(o, e.form);
|
|
255
|
+
return !i || i === e;
|
|
256
|
+
}, mt = function(e) {
|
|
257
|
+
return He(e) && e.type === "radio";
|
|
258
|
+
}, gt = function(e) {
|
|
259
|
+
return mt(e) && !bt(e);
|
|
260
|
+
}, ht = function(e) {
|
|
261
|
+
var n, r = e && oe(e), o = (n = r) === null || n === void 0 ? void 0 : n.host, i = !1;
|
|
262
|
+
if (r && r !== e) {
|
|
261
263
|
var u, a, f;
|
|
262
|
-
for (i = !!((u = o) !== null && u !== void 0 && (a = u.ownerDocument) !== null && a !== void 0 && a.contains(o) ||
|
|
263
|
-
var
|
|
264
|
-
r = oe(o), o = (
|
|
264
|
+
for (i = !!((u = o) !== null && u !== void 0 && (a = u.ownerDocument) !== null && a !== void 0 && a.contains(o) || e != null && (f = e.ownerDocument) !== null && f !== void 0 && f.contains(e)); !i && o; ) {
|
|
265
|
+
var d, m, c;
|
|
266
|
+
r = oe(o), o = (d = r) === null || d === void 0 ? void 0 : d.host, i = !!((m = o) !== null && m !== void 0 && (c = m.ownerDocument) !== null && c !== void 0 && c.contains(o));
|
|
265
267
|
}
|
|
266
268
|
}
|
|
267
269
|
return i;
|
|
268
|
-
},
|
|
269
|
-
var n =
|
|
270
|
+
}, Pe = function(e) {
|
|
271
|
+
var n = e.getBoundingClientRect(), r = n.width, o = n.height;
|
|
270
272
|
return r === 0 && o === 0;
|
|
271
|
-
},
|
|
273
|
+
}, yt = function(e, n) {
|
|
272
274
|
var r = n.displayCheck, o = n.getShadowRoot;
|
|
273
|
-
if (
|
|
275
|
+
if (r === "full-native" && "checkVisibility" in e) {
|
|
276
|
+
var i = e.checkVisibility({
|
|
277
|
+
// Checking opacity might be desirable for some use cases, but natively,
|
|
278
|
+
// opacity zero elements _are_ focusable and tabbable.
|
|
279
|
+
checkOpacity: !1,
|
|
280
|
+
opacityProperty: !1,
|
|
281
|
+
contentVisibilityAuto: !0,
|
|
282
|
+
visibilityProperty: !0,
|
|
283
|
+
// This is an alias for `visibilityProperty`. Contemporary browsers
|
|
284
|
+
// support both. However, this alias has wider browser support (Chrome
|
|
285
|
+
// >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
|
|
286
|
+
// we include it anyway.
|
|
287
|
+
checkVisibilityCSS: !0
|
|
288
|
+
});
|
|
289
|
+
return !i;
|
|
290
|
+
}
|
|
291
|
+
if (getComputedStyle(e).visibility === "hidden")
|
|
274
292
|
return !0;
|
|
275
|
-
var
|
|
276
|
-
if (X.call(
|
|
293
|
+
var u = X.call(e, "details>summary:first-of-type"), a = u ? e.parentElement : e;
|
|
294
|
+
if (X.call(a, "details:not([open]) *"))
|
|
277
295
|
return !0;
|
|
278
|
-
if (!r || r === "full" ||
|
|
296
|
+
if (!r || r === "full" || // full-native can run this branch when it falls through in case
|
|
297
|
+
// Element#checkVisibility is unsupported
|
|
298
|
+
r === "full-native" || r === "legacy-full") {
|
|
279
299
|
if (typeof o == "function") {
|
|
280
|
-
for (var
|
|
281
|
-
var
|
|
282
|
-
if (
|
|
283
|
-
return
|
|
284
|
-
|
|
300
|
+
for (var f = e; e; ) {
|
|
301
|
+
var d = e.parentElement, m = oe(e);
|
|
302
|
+
if (d && !d.shadowRoot && o(d) === !0)
|
|
303
|
+
return Pe(e);
|
|
304
|
+
e.assignedSlot ? e = e.assignedSlot : !d && m !== e.ownerDocument ? e = m.host : e = d;
|
|
285
305
|
}
|
|
286
|
-
|
|
306
|
+
e = f;
|
|
287
307
|
}
|
|
288
|
-
if (
|
|
289
|
-
return !
|
|
308
|
+
if (ht(e))
|
|
309
|
+
return !e.getClientRects().length;
|
|
290
310
|
if (r !== "legacy-full")
|
|
291
311
|
return !0;
|
|
292
312
|
} else if (r === "non-zero-area")
|
|
293
|
-
return
|
|
313
|
+
return Pe(e);
|
|
294
314
|
return !1;
|
|
295
|
-
},
|
|
296
|
-
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(
|
|
297
|
-
for (var n =
|
|
315
|
+
}, Et = function(e) {
|
|
316
|
+
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
317
|
+
for (var n = e.parentElement; n; ) {
|
|
298
318
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
299
319
|
for (var r = 0; r < n.children.length; r++) {
|
|
300
320
|
var o = n.children.item(r);
|
|
301
321
|
if (o.tagName === "LEGEND")
|
|
302
|
-
return X.call(n, "fieldset[disabled] *") ? !0 : !o.contains(
|
|
322
|
+
return X.call(n, "fieldset[disabled] *") ? !0 : !o.contains(e);
|
|
303
323
|
}
|
|
304
324
|
return !0;
|
|
305
325
|
}
|
|
306
326
|
n = n.parentElement;
|
|
307
327
|
}
|
|
308
328
|
return !1;
|
|
309
|
-
},
|
|
310
|
-
return !(n.disabled ||
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
return !(mt(n) || qe(n) < 0 || !Et(t, n));
|
|
317
|
-
}, Rt = function(t) {
|
|
318
|
-
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
329
|
+
}, Rt = function(e, n) {
|
|
330
|
+
return !(n.disabled || dt(n) || yt(n, e) || // For a details element with a summary, the summary element gets the focus
|
|
331
|
+
vt(n) || Et(n));
|
|
332
|
+
}, Fe = function(e, n) {
|
|
333
|
+
return !(gt(n) || je(n) < 0 || !Rt(e, n));
|
|
334
|
+
}, wt = function(e) {
|
|
335
|
+
var n = parseInt(e.getAttribute("tabindex"), 10);
|
|
319
336
|
return !!(isNaN(n) || n >= 0);
|
|
320
|
-
},
|
|
337
|
+
}, _e = function(e) {
|
|
321
338
|
var n = [], r = [];
|
|
322
|
-
return
|
|
323
|
-
var u = !!o.scopeParent, a = u ? o.scopeParent : o, f =
|
|
324
|
-
f === 0 ? u ? n.push.apply(n,
|
|
339
|
+
return e.forEach(function(o, i) {
|
|
340
|
+
var u = !!o.scopeParent, a = u ? o.scopeParent : o, f = ct(a, u), d = u ? _e(o.candidates) : a;
|
|
341
|
+
f === 0 ? u ? n.push.apply(n, d) : n.push(a) : r.push({
|
|
325
342
|
documentOrder: i,
|
|
326
343
|
tabIndex: f,
|
|
327
344
|
item: o,
|
|
328
345
|
isScope: u,
|
|
329
|
-
content:
|
|
346
|
+
content: d
|
|
330
347
|
});
|
|
331
|
-
}), r.sort(
|
|
348
|
+
}), r.sort(ft).reduce(function(o, i) {
|
|
332
349
|
return i.isScope ? o.push.apply(o, i.content) : o.push(i.content), o;
|
|
333
350
|
}, []).concat(n);
|
|
334
|
-
}, ue = function(
|
|
351
|
+
}, ue = function(e, n) {
|
|
335
352
|
n = n || {};
|
|
336
353
|
var r;
|
|
337
|
-
return n.getShadowRoot ? r =
|
|
338
|
-
filter:
|
|
354
|
+
return n.getShadowRoot ? r = ye([e], n.includeContainer, {
|
|
355
|
+
filter: Fe.bind(null, n),
|
|
339
356
|
flatten: !1,
|
|
340
357
|
getShadowRoot: n.getShadowRoot,
|
|
341
|
-
shadowRootFilter:
|
|
342
|
-
}) : r =
|
|
343
|
-
}, q = typeof document < "u" ?
|
|
358
|
+
shadowRootFilter: wt
|
|
359
|
+
}) : r = lt(e, n.includeContainer, Fe.bind(null, n)), _e(r);
|
|
360
|
+
}, q = typeof document < "u" ? Ve : Ke;
|
|
344
361
|
let ve = !1, St = 0;
|
|
345
|
-
const
|
|
362
|
+
const Oe = () => "floating-ui-" + St++;
|
|
346
363
|
function xt() {
|
|
347
|
-
const [
|
|
364
|
+
const [t, e] = s.useState(() => ve ? Oe() : void 0);
|
|
348
365
|
return q(() => {
|
|
349
|
-
|
|
366
|
+
t == null && e(Oe());
|
|
350
367
|
}, []), s.useEffect(() => {
|
|
351
368
|
ve || (ve = !0);
|
|
352
|
-
}, []),
|
|
369
|
+
}, []), t;
|
|
353
370
|
}
|
|
354
|
-
const Tt = s.useId,
|
|
371
|
+
const Tt = s.useId, Ee = Tt || xt;
|
|
355
372
|
function Ct() {
|
|
356
|
-
const
|
|
373
|
+
const t = /* @__PURE__ */ new Map();
|
|
357
374
|
return {
|
|
358
|
-
emit(
|
|
375
|
+
emit(e, n) {
|
|
359
376
|
var r;
|
|
360
|
-
(r =
|
|
377
|
+
(r = t.get(e)) == null || r.forEach((o) => o(n));
|
|
361
378
|
},
|
|
362
|
-
on(
|
|
363
|
-
|
|
379
|
+
on(e, n) {
|
|
380
|
+
t.set(e, [...t.get(e) || [], n]);
|
|
364
381
|
},
|
|
365
|
-
off(
|
|
366
|
-
|
|
382
|
+
off(e, n) {
|
|
383
|
+
t.set(e, (t.get(e) || []).filter((r) => r !== n));
|
|
367
384
|
}
|
|
368
385
|
};
|
|
369
386
|
}
|
|
370
387
|
const It = /* @__PURE__ */ s.createContext(null), At = /* @__PURE__ */ s.createContext(null), Pt = () => {
|
|
371
|
-
var
|
|
372
|
-
return ((
|
|
373
|
-
},
|
|
374
|
-
function G(
|
|
375
|
-
return (
|
|
388
|
+
var t;
|
|
389
|
+
return ((t = s.useContext(It)) == null ? void 0 : t.id) || null;
|
|
390
|
+
}, Se = () => s.useContext(At);
|
|
391
|
+
function G(t) {
|
|
392
|
+
return (t == null ? void 0 : t.ownerDocument) || document;
|
|
376
393
|
}
|
|
377
|
-
function
|
|
378
|
-
const
|
|
379
|
-
return
|
|
394
|
+
function Ue() {
|
|
395
|
+
const t = navigator.userAgentData;
|
|
396
|
+
return t != null && t.platform ? t.platform : navigator.platform;
|
|
380
397
|
}
|
|
381
398
|
function Ft() {
|
|
382
|
-
const
|
|
383
|
-
return
|
|
399
|
+
const t = navigator.userAgentData;
|
|
400
|
+
return t && Array.isArray(t.brands) ? t.brands.map((e) => {
|
|
384
401
|
let {
|
|
385
402
|
brand: n,
|
|
386
403
|
version: r
|
|
387
|
-
} =
|
|
404
|
+
} = e;
|
|
388
405
|
return n + "/" + r;
|
|
389
406
|
}).join(" ") : navigator.userAgent;
|
|
390
407
|
}
|
|
391
|
-
function
|
|
392
|
-
return G(
|
|
408
|
+
function xe(t) {
|
|
409
|
+
return G(t).defaultView || window;
|
|
393
410
|
}
|
|
394
|
-
function H(
|
|
395
|
-
return
|
|
411
|
+
function H(t) {
|
|
412
|
+
return t ? t instanceof xe(t).Element : !1;
|
|
396
413
|
}
|
|
397
|
-
function Z(
|
|
398
|
-
return
|
|
414
|
+
function Z(t) {
|
|
415
|
+
return t ? t instanceof xe(t).HTMLElement : !1;
|
|
399
416
|
}
|
|
400
|
-
function Ot(
|
|
417
|
+
function Ot(t) {
|
|
401
418
|
if (typeof ShadowRoot > "u")
|
|
402
419
|
return !1;
|
|
403
|
-
const
|
|
404
|
-
return
|
|
420
|
+
const e = xe(t).ShadowRoot;
|
|
421
|
+
return t instanceof e || t instanceof ShadowRoot;
|
|
405
422
|
}
|
|
406
|
-
function Dt(
|
|
407
|
-
if (
|
|
423
|
+
function Dt(t) {
|
|
424
|
+
if (t.mozInputSource === 0 && t.isTrusted)
|
|
408
425
|
return !0;
|
|
409
|
-
const
|
|
410
|
-
return (
|
|
426
|
+
const e = /Android/i;
|
|
427
|
+
return (e.test(Ue()) || e.test(Ft())) && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
|
|
411
428
|
}
|
|
412
|
-
function Mt(
|
|
413
|
-
return
|
|
414
|
-
|
|
429
|
+
function Mt(t) {
|
|
430
|
+
return t.width === 0 && t.height === 0 || t.width === 1 && t.height === 1 && t.pressure === 0 && t.detail === 0 && t.pointerType !== "mouse" || // iOS VoiceOver returns 0.333• for width/height.
|
|
431
|
+
t.width < 1 && t.height < 1 && t.pressure === 0 && t.detail === 0;
|
|
415
432
|
}
|
|
416
|
-
function
|
|
433
|
+
function De() {
|
|
417
434
|
return /apple/i.test(navigator.vendor);
|
|
418
435
|
}
|
|
419
|
-
function
|
|
420
|
-
return
|
|
436
|
+
function kt() {
|
|
437
|
+
return Ue().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
|
|
421
438
|
}
|
|
422
|
-
function
|
|
423
|
-
return ["mouse", "pen"].includes(
|
|
439
|
+
function Me(t, e) {
|
|
440
|
+
return ["mouse", "pen"].includes(t);
|
|
424
441
|
}
|
|
425
|
-
function $(
|
|
426
|
-
if (!
|
|
442
|
+
function $(t, e) {
|
|
443
|
+
if (!t || !e)
|
|
427
444
|
return !1;
|
|
428
|
-
const n =
|
|
429
|
-
if (
|
|
445
|
+
const n = e.getRootNode && e.getRootNode();
|
|
446
|
+
if (t.contains(e))
|
|
430
447
|
return !0;
|
|
431
448
|
if (n && Ot(n)) {
|
|
432
|
-
let r =
|
|
449
|
+
let r = e;
|
|
433
450
|
do {
|
|
434
|
-
if (r &&
|
|
451
|
+
if (r && t === r)
|
|
435
452
|
return !0;
|
|
436
453
|
r = r.parentNode || r.host;
|
|
437
454
|
} while (r);
|
|
438
455
|
}
|
|
439
456
|
return !1;
|
|
440
457
|
}
|
|
441
|
-
function ne(
|
|
442
|
-
let n =
|
|
458
|
+
function ne(t, e) {
|
|
459
|
+
let n = t.filter((o) => {
|
|
443
460
|
var i;
|
|
444
|
-
return o.parentId ===
|
|
461
|
+
return o.parentId === e && ((i = o.context) == null ? void 0 : i.open);
|
|
445
462
|
}) || [], r = n;
|
|
446
463
|
for (; r.length; )
|
|
447
|
-
r =
|
|
464
|
+
r = t.filter((o) => {
|
|
448
465
|
var i;
|
|
449
466
|
return (i = r) == null ? void 0 : i.some((u) => {
|
|
450
467
|
var a;
|
|
@@ -453,62 +470,62 @@ function ne(e, t) {
|
|
|
453
470
|
}) || [], n = n.concat(r);
|
|
454
471
|
return n;
|
|
455
472
|
}
|
|
456
|
-
function
|
|
457
|
-
return "composedPath" in
|
|
473
|
+
function ze(t) {
|
|
474
|
+
return "composedPath" in t ? t.composedPath()[0] : t.target;
|
|
458
475
|
}
|
|
459
|
-
function
|
|
460
|
-
const
|
|
476
|
+
function Nt(t) {
|
|
477
|
+
const e = tt(t);
|
|
461
478
|
return q(() => {
|
|
462
|
-
|
|
463
|
-
}),
|
|
479
|
+
e.current = t;
|
|
480
|
+
}), e;
|
|
464
481
|
}
|
|
465
482
|
function se() {
|
|
466
|
-
return se = Object.assign || function(
|
|
467
|
-
for (var
|
|
468
|
-
var n = arguments[
|
|
483
|
+
return se = Object.assign || function(t) {
|
|
484
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
485
|
+
var n = arguments[e];
|
|
469
486
|
for (var r in n)
|
|
470
|
-
Object.prototype.hasOwnProperty.call(n, r) && (
|
|
487
|
+
Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
|
|
471
488
|
}
|
|
472
|
-
return
|
|
489
|
+
return t;
|
|
473
490
|
}, se.apply(this, arguments);
|
|
474
491
|
}
|
|
475
|
-
function
|
|
476
|
-
let
|
|
477
|
-
for (; ((n =
|
|
492
|
+
function Re(t) {
|
|
493
|
+
let e = t.activeElement;
|
|
494
|
+
for (; ((n = e) == null || (r = n.shadowRoot) == null ? void 0 : r.activeElement) != null; ) {
|
|
478
495
|
var n, r;
|
|
479
|
-
|
|
496
|
+
e = e.shadowRoot.activeElement;
|
|
480
497
|
}
|
|
481
|
-
return
|
|
498
|
+
return e;
|
|
482
499
|
}
|
|
483
|
-
let
|
|
484
|
-
function j(
|
|
485
|
-
|
|
500
|
+
let ke = 0;
|
|
501
|
+
function j(t, e) {
|
|
502
|
+
e === void 0 && (e = {});
|
|
486
503
|
const {
|
|
487
504
|
preventScroll: n = !1,
|
|
488
505
|
cancelPrevious: r = !0,
|
|
489
506
|
sync: o = !1
|
|
490
|
-
} =
|
|
491
|
-
r && cancelAnimationFrame(
|
|
492
|
-
const i = () =>
|
|
507
|
+
} = e;
|
|
508
|
+
r && cancelAnimationFrame(ke);
|
|
509
|
+
const i = () => t == null ? void 0 : t.focus({
|
|
493
510
|
preventScroll: n
|
|
494
511
|
});
|
|
495
|
-
o ? i() :
|
|
512
|
+
o ? i() : ke = requestAnimationFrame(i);
|
|
496
513
|
}
|
|
497
|
-
function Lt(
|
|
514
|
+
function Lt(t, e) {
|
|
498
515
|
var n;
|
|
499
|
-
let r = [], o = (n =
|
|
516
|
+
let r = [], o = (n = t.find((i) => i.id === e)) == null ? void 0 : n.parentId;
|
|
500
517
|
for (; o; ) {
|
|
501
|
-
const i =
|
|
518
|
+
const i = t.find((u) => u.id === o);
|
|
502
519
|
o = i == null ? void 0 : i.parentId, i && (r = r.concat(i));
|
|
503
520
|
}
|
|
504
521
|
return r;
|
|
505
522
|
}
|
|
506
523
|
const Bt = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
507
|
-
function
|
|
508
|
-
return Z(
|
|
524
|
+
function Ge(t) {
|
|
525
|
+
return Z(t) && t.matches(Bt);
|
|
509
526
|
}
|
|
510
|
-
function pe(
|
|
511
|
-
|
|
527
|
+
function pe(t) {
|
|
528
|
+
t.preventDefault(), t.stopPropagation();
|
|
512
529
|
}
|
|
513
530
|
const ae = () => ({
|
|
514
531
|
getShadowRoot: !0,
|
|
@@ -519,48 +536,48 @@ const ae = () => ({
|
|
|
519
536
|
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
520
537
|
)
|
|
521
538
|
});
|
|
522
|
-
function
|
|
523
|
-
const n = ue(
|
|
524
|
-
|
|
525
|
-
const r = n.indexOf(
|
|
539
|
+
function Ye(t, e) {
|
|
540
|
+
const n = ue(t, ae());
|
|
541
|
+
e === "prev" && n.reverse();
|
|
542
|
+
const r = n.indexOf(Re(G(t)));
|
|
526
543
|
return n.slice(r + 1)[0];
|
|
527
544
|
}
|
|
528
|
-
function
|
|
529
|
-
return
|
|
545
|
+
function Xe() {
|
|
546
|
+
return Ye(document.body, "next");
|
|
530
547
|
}
|
|
531
|
-
function
|
|
532
|
-
return
|
|
548
|
+
function Ze() {
|
|
549
|
+
return Ye(document.body, "prev");
|
|
533
550
|
}
|
|
534
|
-
function Y(
|
|
535
|
-
const n =
|
|
551
|
+
function Y(t, e) {
|
|
552
|
+
const n = e || t.currentTarget, r = t.relatedTarget;
|
|
536
553
|
return !r || !$(n, r);
|
|
537
554
|
}
|
|
538
|
-
function
|
|
539
|
-
ue(
|
|
555
|
+
function Vt(t) {
|
|
556
|
+
ue(t, ae()).forEach((n) => {
|
|
540
557
|
n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
|
|
541
558
|
});
|
|
542
559
|
}
|
|
543
|
-
function
|
|
544
|
-
|
|
560
|
+
function Kt(t) {
|
|
561
|
+
t.querySelectorAll("[data-tabindex]").forEach((n) => {
|
|
545
562
|
const r = n.dataset.tabindex;
|
|
546
563
|
delete n.dataset.tabindex, r ? n.setAttribute("tabindex", r) : n.removeAttribute("tabindex");
|
|
547
564
|
});
|
|
548
565
|
}
|
|
549
|
-
const Wt = s.useInsertionEffect, $t = Wt || ((
|
|
550
|
-
function
|
|
551
|
-
const
|
|
566
|
+
const Wt = s.useInsertionEffect, $t = Wt || ((t) => t());
|
|
567
|
+
function Te(t) {
|
|
568
|
+
const e = s.useRef(() => {
|
|
552
569
|
if (process.env.NODE_ENV !== "production")
|
|
553
570
|
throw new Error("Cannot call an event handler while rendering.");
|
|
554
571
|
});
|
|
555
572
|
return $t(() => {
|
|
556
|
-
|
|
573
|
+
e.current = t;
|
|
557
574
|
}), s.useCallback(function() {
|
|
558
575
|
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
|
559
576
|
r[o] = arguments[o];
|
|
560
|
-
return
|
|
577
|
+
return e.current == null ? void 0 : e.current(...r);
|
|
561
578
|
}, []);
|
|
562
579
|
}
|
|
563
|
-
const
|
|
580
|
+
const Ce = {
|
|
564
581
|
border: 0,
|
|
565
582
|
clip: "rect(0 0 0 0)",
|
|
566
583
|
height: "1px",
|
|
@@ -573,63 +590,63 @@ const Te = {
|
|
|
573
590
|
top: 0,
|
|
574
591
|
left: 0
|
|
575
592
|
};
|
|
576
|
-
let
|
|
577
|
-
function Ne(
|
|
578
|
-
|
|
593
|
+
let we, Ie;
|
|
594
|
+
function Ne(t) {
|
|
595
|
+
t.key === "Tab" && (we = t.target, clearTimeout(Ie));
|
|
579
596
|
}
|
|
580
|
-
function qt(
|
|
581
|
-
const
|
|
582
|
-
return
|
|
597
|
+
function qt(t) {
|
|
598
|
+
const e = we === t.relatedTarget;
|
|
599
|
+
return we = t.relatedTarget, clearTimeout(Ie), e;
|
|
583
600
|
}
|
|
584
|
-
const le = /* @__PURE__ */ s.forwardRef(function(
|
|
585
|
-
const r =
|
|
586
|
-
return q(() => (
|
|
601
|
+
const le = /* @__PURE__ */ s.forwardRef(function(e, n) {
|
|
602
|
+
const r = Te(e.onFocus), [o, i] = s.useState();
|
|
603
|
+
return q(() => (De() && i("button"), document.addEventListener("keydown", Ne), () => {
|
|
587
604
|
document.removeEventListener("keydown", Ne);
|
|
588
|
-
}), []), /* @__PURE__ */ s.createElement("span", se({},
|
|
605
|
+
}), []), /* @__PURE__ */ s.createElement("span", se({}, e, {
|
|
589
606
|
ref: n,
|
|
590
607
|
tabIndex: 0,
|
|
591
608
|
role: o,
|
|
592
609
|
"aria-hidden": o ? void 0 : !0,
|
|
593
610
|
"data-floating-ui-focus-guard": "",
|
|
594
|
-
style:
|
|
611
|
+
style: Ce,
|
|
595
612
|
onFocus: (u) => {
|
|
596
|
-
|
|
613
|
+
De() && kt() && !qt(u) ? (u.persist(), Ie = window.setTimeout(() => {
|
|
597
614
|
r(u);
|
|
598
615
|
}, 50)) : r(u);
|
|
599
616
|
}
|
|
600
617
|
}));
|
|
601
|
-
}),
|
|
618
|
+
}), Je = /* @__PURE__ */ s.createContext(null), jt = function(t) {
|
|
602
619
|
let {
|
|
603
|
-
id:
|
|
620
|
+
id: e,
|
|
604
621
|
enabled: n = !0
|
|
605
|
-
} =
|
|
606
|
-
const [r, o] = s.useState(null), i =
|
|
622
|
+
} = t === void 0 ? {} : t;
|
|
623
|
+
const [r, o] = s.useState(null), i = Ee(), u = Qe();
|
|
607
624
|
return q(() => {
|
|
608
625
|
if (!n)
|
|
609
626
|
return;
|
|
610
|
-
const a =
|
|
627
|
+
const a = e ? document.getElementById(e) : null;
|
|
611
628
|
if (a)
|
|
612
629
|
a.setAttribute("data-floating-ui-portal", ""), o(a);
|
|
613
630
|
else {
|
|
614
631
|
const f = document.createElement("div");
|
|
615
|
-
f.id =
|
|
616
|
-
const
|
|
617
|
-
return
|
|
618
|
-
|
|
632
|
+
f.id = e || i, f.setAttribute("data-floating-ui-portal", ""), o(f);
|
|
633
|
+
const d = (u == null ? void 0 : u.portalNode) || document.body;
|
|
634
|
+
return d.appendChild(f), () => {
|
|
635
|
+
d.removeChild(f);
|
|
619
636
|
};
|
|
620
637
|
}
|
|
621
|
-
}, [
|
|
622
|
-
}, Zt = (
|
|
638
|
+
}, [e, u, i, n]), r;
|
|
639
|
+
}, Zt = (t) => {
|
|
623
640
|
let {
|
|
624
|
-
children:
|
|
641
|
+
children: e,
|
|
625
642
|
id: n,
|
|
626
643
|
root: r = null,
|
|
627
644
|
preserveTabOrder: o = !0
|
|
628
|
-
} =
|
|
645
|
+
} = t;
|
|
629
646
|
const i = jt({
|
|
630
647
|
id: n,
|
|
631
648
|
enabled: !r
|
|
632
|
-
}), [u, a] = s.useState(null), f = s.useRef(null),
|
|
649
|
+
}), [u, a] = s.useState(null), f = s.useRef(null), d = s.useRef(null), m = s.useRef(null), c = s.useRef(null), l = (
|
|
633
650
|
// The FocusManager and therefore floating element are currently open/
|
|
634
651
|
// rendered.
|
|
635
652
|
!!u && // Guards are only for non-modal focus management.
|
|
@@ -639,16 +656,16 @@ const le = /* @__PURE__ */ s.forwardRef(function(t, n) {
|
|
|
639
656
|
if (!i || !o || u != null && u.modal)
|
|
640
657
|
return;
|
|
641
658
|
function p(w) {
|
|
642
|
-
i && Y(w) && (w.type === "focusin" ?
|
|
659
|
+
i && Y(w) && (w.type === "focusin" ? Kt : Vt)(i);
|
|
643
660
|
}
|
|
644
661
|
return i.addEventListener("focusin", p, !0), i.addEventListener("focusout", p, !0), () => {
|
|
645
662
|
i.removeEventListener("focusin", p, !0), i.removeEventListener("focusout", p, !0);
|
|
646
663
|
};
|
|
647
|
-
}, [i, o, u == null ? void 0 : u.modal]), /* @__PURE__ */ s.createElement(
|
|
664
|
+
}, [i, o, u == null ? void 0 : u.modal]), /* @__PURE__ */ s.createElement(Je.Provider, {
|
|
648
665
|
value: s.useMemo(() => ({
|
|
649
666
|
preserveTabOrder: o,
|
|
650
667
|
beforeOutsideRef: f,
|
|
651
|
-
afterOutsideRef:
|
|
668
|
+
afterOutsideRef: d,
|
|
652
669
|
beforeInsideRef: m,
|
|
653
670
|
afterInsideRef: c,
|
|
654
671
|
portalNode: i,
|
|
@@ -661,35 +678,35 @@ const le = /* @__PURE__ */ s.forwardRef(function(t, n) {
|
|
|
661
678
|
var w;
|
|
662
679
|
(w = m.current) == null || w.focus();
|
|
663
680
|
} else {
|
|
664
|
-
const b =
|
|
681
|
+
const b = Ze() || (u == null ? void 0 : u.refs.domReference.current);
|
|
665
682
|
b == null || b.focus();
|
|
666
683
|
}
|
|
667
684
|
}
|
|
668
685
|
}), l && i && /* @__PURE__ */ s.createElement("span", {
|
|
669
686
|
"aria-owns": i.id,
|
|
670
|
-
style:
|
|
671
|
-
}), r ? /* @__PURE__ */ ge.createPortal(
|
|
672
|
-
ref:
|
|
687
|
+
style: Ce
|
|
688
|
+
}), r ? /* @__PURE__ */ ge.createPortal(e, r) : i ? /* @__PURE__ */ ge.createPortal(e, i) : null, l && i && /* @__PURE__ */ s.createElement(le, {
|
|
689
|
+
ref: d,
|
|
673
690
|
onFocus: (p) => {
|
|
674
691
|
if (Y(p, i)) {
|
|
675
692
|
var w;
|
|
676
693
|
(w = c.current) == null || w.focus();
|
|
677
694
|
} else {
|
|
678
|
-
const b =
|
|
695
|
+
const b = Xe() || (u == null ? void 0 : u.refs.domReference.current);
|
|
679
696
|
b == null || b.focus(), u != null && u.closeOnFocusOut && (u == null || u.onOpenChange(!1));
|
|
680
697
|
}
|
|
681
698
|
}
|
|
682
699
|
}));
|
|
683
|
-
},
|
|
684
|
-
return /* @__PURE__ */ s.createElement("button", se({},
|
|
700
|
+
}, Qe = () => s.useContext(Je), Ht = /* @__PURE__ */ s.forwardRef(function(e, n) {
|
|
701
|
+
return /* @__PURE__ */ s.createElement("button", se({}, e, {
|
|
685
702
|
ref: n,
|
|
686
703
|
tabIndex: -1,
|
|
687
|
-
style:
|
|
704
|
+
style: Ce
|
|
688
705
|
}));
|
|
689
706
|
});
|
|
690
|
-
function Jt(
|
|
707
|
+
function Jt(t) {
|
|
691
708
|
let {
|
|
692
|
-
context:
|
|
709
|
+
context: e,
|
|
693
710
|
children: n,
|
|
694
711
|
order: r = ["content"],
|
|
695
712
|
guards: o = !0,
|
|
@@ -697,8 +714,8 @@ function Jt(e) {
|
|
|
697
714
|
returnFocus: u = !0,
|
|
698
715
|
modal: a = !0,
|
|
699
716
|
visuallyHiddenDismiss: f = !1,
|
|
700
|
-
closeOnFocusOut:
|
|
701
|
-
} =
|
|
717
|
+
closeOnFocusOut: d = !0
|
|
718
|
+
} = t;
|
|
702
719
|
const {
|
|
703
720
|
refs: m,
|
|
704
721
|
nodeId: c,
|
|
@@ -707,30 +724,30 @@ function Jt(e) {
|
|
|
707
724
|
dataRef: w,
|
|
708
725
|
elements: {
|
|
709
726
|
domReference: b,
|
|
710
|
-
floating:
|
|
727
|
+
floating: v
|
|
711
728
|
}
|
|
712
|
-
} =
|
|
713
|
-
return h === void 0 && (h =
|
|
714
|
-
}, [
|
|
729
|
+
} = e, g = Nt(r), I = Se(), E = Qe(), [F, N] = s.useState(null), O = typeof i == "number" && i < 0, K = s.useRef(null), W = s.useRef(null), V = s.useRef(!1), T = s.useRef(null), D = s.useRef(!1), A = E != null, S = b && b.getAttribute("role") === "combobox" && Ge(b), L = s.useCallback(function(h) {
|
|
730
|
+
return h === void 0 && (h = v), h ? ue(h, ae()) : [];
|
|
731
|
+
}, [v]), C = s.useCallback((h) => {
|
|
715
732
|
const R = L(h);
|
|
716
|
-
return g.current.map((y) => b && y === "reference" ? b :
|
|
717
|
-
}, [b,
|
|
733
|
+
return g.current.map((y) => b && y === "reference" ? b : v && y === "floating" ? v : R).filter(Boolean).flat();
|
|
734
|
+
}, [b, v, g, L]);
|
|
718
735
|
s.useEffect(() => {
|
|
719
736
|
if (!a)
|
|
720
737
|
return;
|
|
721
738
|
function h(y) {
|
|
722
739
|
if (y.key === "Tab") {
|
|
723
740
|
L().length === 0 && !S && pe(y);
|
|
724
|
-
const x = C(), M =
|
|
725
|
-
g.current[0] === "reference" && M === b && (pe(y), y.shiftKey ? j(x[x.length - 1]) : j(x[1])), g.current[1] === "floating" && M ===
|
|
741
|
+
const x = C(), M = ze(y);
|
|
742
|
+
g.current[0] === "reference" && M === b && (pe(y), y.shiftKey ? j(x[x.length - 1]) : j(x[1])), g.current[1] === "floating" && M === v && y.shiftKey && (pe(y), j(x[0]));
|
|
726
743
|
}
|
|
727
744
|
}
|
|
728
|
-
const R = G(
|
|
745
|
+
const R = G(v);
|
|
729
746
|
return R.addEventListener("keydown", h), () => {
|
|
730
747
|
R.removeEventListener("keydown", h);
|
|
731
748
|
};
|
|
732
|
-
}, [b,
|
|
733
|
-
if (!
|
|
749
|
+
}, [b, v, a, g, m, S, L, C]), s.useEffect(() => {
|
|
750
|
+
if (!d)
|
|
734
751
|
return;
|
|
735
752
|
function h() {
|
|
736
753
|
D.current = !0, setTimeout(() => {
|
|
@@ -738,62 +755,62 @@ function Jt(e) {
|
|
|
738
755
|
});
|
|
739
756
|
}
|
|
740
757
|
function R(y) {
|
|
741
|
-
const x = y.relatedTarget, M = !($(b, x) || $(
|
|
742
|
-
var
|
|
743
|
-
return $((
|
|
758
|
+
const x = y.relatedTarget, M = !($(b, x) || $(v, x) || $(x, v) || $(E == null ? void 0 : E.portalNode, x) || x != null && x.hasAttribute("data-floating-ui-focus-guard") || I && (ne(I.nodesRef.current, c).find((P) => {
|
|
759
|
+
var k, B;
|
|
760
|
+
return $((k = P.context) == null ? void 0 : k.elements.floating, x) || $((B = P.context) == null ? void 0 : B.elements.domReference, x);
|
|
744
761
|
}) || Lt(I.nodesRef.current, c).find((P) => {
|
|
745
|
-
var
|
|
746
|
-
return ((
|
|
762
|
+
var k, B;
|
|
763
|
+
return ((k = P.context) == null ? void 0 : k.elements.floating) === x || ((B = P.context) == null ? void 0 : B.elements.domReference) === x;
|
|
747
764
|
})));
|
|
748
765
|
x && M && !D.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
|
|
749
|
-
x !== T.current && (
|
|
766
|
+
x !== T.current && (V.current = !0, setTimeout(() => l(!1)));
|
|
750
767
|
}
|
|
751
|
-
if (
|
|
752
|
-
return b.addEventListener("focusout", R), b.addEventListener("pointerdown", h), !a &&
|
|
753
|
-
b.removeEventListener("focusout", R), b.removeEventListener("pointerdown", h), !a &&
|
|
768
|
+
if (v && Z(b))
|
|
769
|
+
return b.addEventListener("focusout", R), b.addEventListener("pointerdown", h), !a && v.addEventListener("focusout", R), () => {
|
|
770
|
+
b.removeEventListener("focusout", R), b.removeEventListener("pointerdown", h), !a && v.removeEventListener("focusout", R);
|
|
754
771
|
};
|
|
755
|
-
}, [b,
|
|
772
|
+
}, [b, v, a, c, I, E, l, d]), s.useEffect(() => {
|
|
756
773
|
var h;
|
|
757
774
|
const R = Array.from((E == null || (h = E.portalNode) == null ? void 0 : h.querySelectorAll("[data-floating-ui-portal]")) || []);
|
|
758
775
|
function y() {
|
|
759
|
-
return [
|
|
776
|
+
return [K.current, W.current].filter(Boolean);
|
|
760
777
|
}
|
|
761
|
-
if (
|
|
762
|
-
const x = [
|
|
778
|
+
if (v && a) {
|
|
779
|
+
const x = [v, ...R, ...y()], M = ut(g.current.includes("reference") || S ? x.concat(b || []) : x);
|
|
763
780
|
return () => {
|
|
764
781
|
M();
|
|
765
782
|
};
|
|
766
783
|
}
|
|
767
|
-
}, [b,
|
|
768
|
-
if (a && !o &&
|
|
769
|
-
const h = [], R = ae(), y = ue(G(
|
|
770
|
-
return M.forEach((P,
|
|
771
|
-
h[
|
|
784
|
+
}, [b, v, a, g, E, S]), s.useEffect(() => {
|
|
785
|
+
if (a && !o && v) {
|
|
786
|
+
const h = [], R = ae(), y = ue(G(v).body, R), x = C(), M = y.filter((P) => !x.includes(P));
|
|
787
|
+
return M.forEach((P, k) => {
|
|
788
|
+
h[k] = P.getAttribute("tabindex"), P.setAttribute("tabindex", "-1");
|
|
772
789
|
}), () => {
|
|
773
|
-
M.forEach((P,
|
|
774
|
-
const B = h[
|
|
790
|
+
M.forEach((P, k) => {
|
|
791
|
+
const B = h[k];
|
|
775
792
|
B == null ? P.removeAttribute("tabindex") : P.setAttribute("tabindex", B);
|
|
776
793
|
});
|
|
777
794
|
};
|
|
778
795
|
}
|
|
779
|
-
}, [
|
|
780
|
-
if (!
|
|
781
|
-
const h = G(
|
|
796
|
+
}, [v, a, o, C]), q(() => {
|
|
797
|
+
if (!v) return;
|
|
798
|
+
const h = G(v);
|
|
782
799
|
let R = u, y = !1;
|
|
783
|
-
const x =
|
|
800
|
+
const x = Re(h), M = w.current;
|
|
784
801
|
T.current = x;
|
|
785
|
-
const P = C(
|
|
786
|
-
!O && j(
|
|
787
|
-
preventScroll:
|
|
802
|
+
const P = C(v), k = (typeof i == "number" ? P[i] : i.current) || v;
|
|
803
|
+
!O && j(k, {
|
|
804
|
+
preventScroll: k === v
|
|
788
805
|
});
|
|
789
|
-
function B(
|
|
790
|
-
if (
|
|
806
|
+
function B(U) {
|
|
807
|
+
if (U.type === "escapeKey" && m.domReference.current && (T.current = m.domReference.current), ["referencePress", "escapeKey"].includes(U.type))
|
|
791
808
|
return;
|
|
792
|
-
const ce =
|
|
809
|
+
const ce = U.data.returnFocus;
|
|
793
810
|
typeof ce == "object" ? (R = !0, y = ce.preventScroll) : R = ce;
|
|
794
811
|
}
|
|
795
812
|
return p.on("dismiss", B), () => {
|
|
796
|
-
if (p.off("dismiss", B), $(
|
|
813
|
+
if (p.off("dismiss", B), $(v, Re(h)) && m.domReference.current && (T.current = m.domReference.current), R && Z(T.current) && !V.current)
|
|
797
814
|
if (!m.domReference.current || D.current)
|
|
798
815
|
j(T.current, {
|
|
799
816
|
// When dismissing nested floating elements, by the time the rAF has
|
|
@@ -804,43 +821,43 @@ function Jt(e) {
|
|
|
804
821
|
preventScroll: y
|
|
805
822
|
});
|
|
806
823
|
else {
|
|
807
|
-
var
|
|
808
|
-
M.__syncReturnFocus = !0, (
|
|
824
|
+
var U;
|
|
825
|
+
M.__syncReturnFocus = !0, (U = T.current) == null || U.focus({
|
|
809
826
|
preventScroll: y
|
|
810
827
|
}), setTimeout(() => {
|
|
811
828
|
delete M.__syncReturnFocus;
|
|
812
829
|
});
|
|
813
830
|
}
|
|
814
831
|
};
|
|
815
|
-
}, [
|
|
832
|
+
}, [v, C, i, u, w, m, p, O]), q(() => {
|
|
816
833
|
if (E)
|
|
817
834
|
return E.setFocusManagerState({
|
|
818
|
-
...
|
|
835
|
+
...e,
|
|
819
836
|
modal: a,
|
|
820
|
-
closeOnFocusOut:
|
|
837
|
+
closeOnFocusOut: d
|
|
821
838
|
// Not concerned about the <RT> generic type.
|
|
822
839
|
}), () => {
|
|
823
840
|
E.setFocusManagerState(null);
|
|
824
841
|
};
|
|
825
|
-
}, [E, a,
|
|
826
|
-
if (O || !
|
|
842
|
+
}, [E, a, d, e]), q(() => {
|
|
843
|
+
if (O || !v) return;
|
|
827
844
|
function h() {
|
|
828
|
-
|
|
845
|
+
N(L().length);
|
|
829
846
|
}
|
|
830
847
|
if (h(), typeof MutationObserver == "function") {
|
|
831
848
|
const R = new MutationObserver(h);
|
|
832
|
-
return R.observe(
|
|
849
|
+
return R.observe(v, {
|
|
833
850
|
childList: !0,
|
|
834
851
|
subtree: !0
|
|
835
852
|
}), () => {
|
|
836
853
|
R.disconnect();
|
|
837
854
|
};
|
|
838
855
|
}
|
|
839
|
-
}, [
|
|
856
|
+
}, [v, L, O, m]);
|
|
840
857
|
const J = o && (A || a) && !S;
|
|
841
|
-
function
|
|
858
|
+
function _(h) {
|
|
842
859
|
return f && a ? /* @__PURE__ */ s.createElement(Ht, {
|
|
843
|
-
ref: h === "start" ?
|
|
860
|
+
ref: h === "start" ? K : W,
|
|
844
861
|
onClick: () => l(!1)
|
|
845
862
|
}, typeof f == "string" ? f : "Dismiss") : null;
|
|
846
863
|
}
|
|
@@ -851,24 +868,24 @@ function Jt(e) {
|
|
|
851
868
|
const y = C();
|
|
852
869
|
j(r[0] === "reference" ? y[0] : y[y.length - 1]);
|
|
853
870
|
} else if (E != null && E.preserveTabOrder && E.portalNode)
|
|
854
|
-
if (
|
|
855
|
-
const y =
|
|
871
|
+
if (V.current = !1, Y(h, E.portalNode)) {
|
|
872
|
+
const y = Xe() || b;
|
|
856
873
|
y == null || y.focus();
|
|
857
874
|
} else {
|
|
858
875
|
var R;
|
|
859
876
|
(R = E.beforeOutsideRef.current) == null || R.focus();
|
|
860
877
|
}
|
|
861
878
|
}
|
|
862
|
-
}), S ? null :
|
|
879
|
+
}), S ? null : _("start"), /* @__PURE__ */ s.cloneElement(n, F === 0 || r.includes("floating") ? {
|
|
863
880
|
tabIndex: 0
|
|
864
|
-
} : {}),
|
|
881
|
+
} : {}), _("end"), J && /* @__PURE__ */ s.createElement(le, {
|
|
865
882
|
ref: E == null ? void 0 : E.afterInsideRef,
|
|
866
883
|
onFocus: (h) => {
|
|
867
884
|
if (a)
|
|
868
885
|
j(C()[0]);
|
|
869
886
|
else if (E != null && E.preserveTabOrder && E.portalNode)
|
|
870
|
-
if (
|
|
871
|
-
const y =
|
|
887
|
+
if (V.current = !0, Y(h, E.portalNode)) {
|
|
888
|
+
const y = Ze() || b;
|
|
872
889
|
y == null || y.focus();
|
|
873
890
|
} else {
|
|
874
891
|
var R;
|
|
@@ -877,25 +894,25 @@ function Jt(e) {
|
|
|
877
894
|
}
|
|
878
895
|
}));
|
|
879
896
|
}
|
|
880
|
-
function
|
|
881
|
-
return Z(
|
|
897
|
+
function Le(t) {
|
|
898
|
+
return Z(t.target) && t.target.tagName === "BUTTON";
|
|
882
899
|
}
|
|
883
|
-
function
|
|
884
|
-
return
|
|
900
|
+
function Be(t) {
|
|
901
|
+
return Ge(t);
|
|
885
902
|
}
|
|
886
|
-
const Qt = function(
|
|
903
|
+
const Qt = function(t, e) {
|
|
887
904
|
let {
|
|
888
905
|
open: n,
|
|
889
906
|
onOpenChange: r,
|
|
890
907
|
dataRef: o,
|
|
891
908
|
refs: i
|
|
892
|
-
} =
|
|
909
|
+
} = t, {
|
|
893
910
|
enabled: u = !0,
|
|
894
911
|
event: a = "click",
|
|
895
912
|
toggle: f = !0,
|
|
896
|
-
ignoreMouse:
|
|
913
|
+
ignoreMouse: d = !1,
|
|
897
914
|
keyboardHandlers: m = !0
|
|
898
|
-
} =
|
|
915
|
+
} = e === void 0 ? {} : e;
|
|
899
916
|
const c = s.useRef();
|
|
900
917
|
return s.useMemo(() => u ? {
|
|
901
918
|
reference: {
|
|
@@ -903,7 +920,7 @@ const Qt = function(e, t) {
|
|
|
903
920
|
c.current = l.pointerType;
|
|
904
921
|
},
|
|
905
922
|
onMouseDown(l) {
|
|
906
|
-
l.button === 0 && (
|
|
923
|
+
l.button === 0 && (Me(c.current) && d || a !== "click" && (n ? f && (!o.current.openEvent || o.current.openEvent.type === "mousedown") && r(!1) : (l.preventDefault(), r(!0)), o.current.openEvent = l.nativeEvent));
|
|
907
924
|
},
|
|
908
925
|
onClick(l) {
|
|
909
926
|
if (!o.current.__syncReturnFocus) {
|
|
@@ -911,41 +928,41 @@ const Qt = function(e, t) {
|
|
|
911
928
|
c.current = void 0;
|
|
912
929
|
return;
|
|
913
930
|
}
|
|
914
|
-
|
|
931
|
+
Me(c.current) && d || (n ? f && (!o.current.openEvent || o.current.openEvent.type === "click") && r(!1) : r(!0), o.current.openEvent = l.nativeEvent);
|
|
915
932
|
}
|
|
916
933
|
},
|
|
917
934
|
onKeyDown(l) {
|
|
918
|
-
c.current = void 0, m && (
|
|
935
|
+
c.current = void 0, m && (Le(l) || (l.key === " " && !Be(i.domReference.current) && l.preventDefault(), l.key === "Enter" && (n ? f && r(!1) : r(!0))));
|
|
919
936
|
},
|
|
920
937
|
onKeyUp(l) {
|
|
921
|
-
m && (
|
|
938
|
+
m && (Le(l) || Be(i.domReference.current) || l.key === " " && (n ? f && r(!1) : r(!0)));
|
|
922
939
|
}
|
|
923
940
|
}
|
|
924
|
-
} : {}, [u, o, a,
|
|
941
|
+
} : {}, [u, o, a, d, m, i, f, n, r]);
|
|
925
942
|
};
|
|
926
|
-
function be(
|
|
927
|
-
if (
|
|
943
|
+
function be(t, e) {
|
|
944
|
+
if (e == null)
|
|
928
945
|
return !1;
|
|
929
|
-
if ("composedPath" in
|
|
930
|
-
return
|
|
931
|
-
const n =
|
|
932
|
-
return n.target != null &&
|
|
946
|
+
if ("composedPath" in t)
|
|
947
|
+
return t.composedPath().includes(e);
|
|
948
|
+
const n = t;
|
|
949
|
+
return n.target != null && e.contains(n.target);
|
|
933
950
|
}
|
|
934
|
-
const
|
|
951
|
+
const _t = {
|
|
935
952
|
pointerdown: "onPointerDown",
|
|
936
953
|
mousedown: "onMouseDown",
|
|
937
954
|
click: "onClick"
|
|
938
|
-
},
|
|
955
|
+
}, Ut = {
|
|
939
956
|
pointerdown: "onPointerDownCapture",
|
|
940
957
|
mousedown: "onMouseDownCapture",
|
|
941
958
|
click: "onClickCapture"
|
|
942
|
-
}, zt = function(
|
|
943
|
-
var
|
|
944
|
-
return
|
|
945
|
-
escapeKeyBubbles: typeof
|
|
946
|
-
outsidePressBubbles: typeof
|
|
959
|
+
}, zt = function(t) {
|
|
960
|
+
var e, n;
|
|
961
|
+
return t === void 0 && (t = !0), {
|
|
962
|
+
escapeKeyBubbles: typeof t == "boolean" ? t : (e = t.escapeKey) != null ? e : !0,
|
|
963
|
+
outsidePressBubbles: typeof t == "boolean" ? t : (n = t.outsidePress) != null ? n : !0
|
|
947
964
|
};
|
|
948
|
-
}, en = function(
|
|
965
|
+
}, en = function(t, e) {
|
|
949
966
|
let {
|
|
950
967
|
open: n,
|
|
951
968
|
onOpenChange: r,
|
|
@@ -956,22 +973,22 @@ const Ut = {
|
|
|
956
973
|
domReference: a,
|
|
957
974
|
floating: f
|
|
958
975
|
}
|
|
959
|
-
} =
|
|
960
|
-
enabled:
|
|
976
|
+
} = t, {
|
|
977
|
+
enabled: d = !0,
|
|
961
978
|
escapeKey: m = !0,
|
|
962
979
|
outsidePress: c = !0,
|
|
963
980
|
outsidePressEvent: l = "pointerdown",
|
|
964
981
|
referencePress: p = !1,
|
|
965
982
|
referencePressEvent: w = "pointerdown",
|
|
966
983
|
ancestorScroll: b = !1,
|
|
967
|
-
bubbles:
|
|
984
|
+
bubbles: v = !0
|
|
968
985
|
} = {};
|
|
969
|
-
const g =
|
|
986
|
+
const g = Se(), I = Pt() != null, E = Te(typeof c == "function" ? c : () => !1), F = typeof c == "function" ? E : c, N = s.useRef(!1), {
|
|
970
987
|
escapeKeyBubbles: O,
|
|
971
|
-
outsidePressBubbles:
|
|
972
|
-
} = zt(
|
|
988
|
+
outsidePressBubbles: K
|
|
989
|
+
} = zt(v);
|
|
973
990
|
return s.useEffect(() => {
|
|
974
|
-
if (!n || !
|
|
991
|
+
if (!n || !d)
|
|
975
992
|
return;
|
|
976
993
|
function W(S) {
|
|
977
994
|
if (S.key === "Escape") {
|
|
@@ -987,22 +1004,22 @@ const Ut = {
|
|
|
987
1004
|
}), r(!1);
|
|
988
1005
|
}
|
|
989
1006
|
}
|
|
990
|
-
function
|
|
991
|
-
const L =
|
|
992
|
-
if (
|
|
1007
|
+
function V(S) {
|
|
1008
|
+
const L = N.current;
|
|
1009
|
+
if (N.current = !1, L || typeof F == "function" && !F(S))
|
|
993
1010
|
return;
|
|
994
|
-
const C =
|
|
1011
|
+
const C = ze(S);
|
|
995
1012
|
if (Z(C) && f) {
|
|
996
|
-
const
|
|
1013
|
+
const _ = f.ownerDocument.defaultView || window, h = C.scrollWidth > C.clientWidth, R = C.scrollHeight > C.clientHeight;
|
|
997
1014
|
let y = R && S.offsetX > C.clientWidth;
|
|
998
|
-
if (R &&
|
|
1015
|
+
if (R && _.getComputedStyle(C).direction === "rtl" && (y = S.offsetX <= C.offsetWidth - C.clientWidth), y || h && S.offsetY > C.clientHeight)
|
|
999
1016
|
return;
|
|
1000
1017
|
}
|
|
1001
|
-
const J = g && ne(g.nodesRef.current, i).some((
|
|
1018
|
+
const J = g && ne(g.nodesRef.current, i).some((_) => {
|
|
1002
1019
|
var h;
|
|
1003
|
-
return be(S, (h =
|
|
1020
|
+
return be(S, (h = _.context) == null ? void 0 : h.elements.floating);
|
|
1004
1021
|
});
|
|
1005
|
-
be(S, f) || be(S, a) || J || !
|
|
1022
|
+
be(S, f) || be(S, a) || J || !K && g && ne(g.nodesRef.current, i).length > 0 || (o.emit("dismiss", {
|
|
1006
1023
|
type: "outsidePress",
|
|
1007
1024
|
data: {
|
|
1008
1025
|
returnFocus: I ? {
|
|
@@ -1015,7 +1032,7 @@ const Ut = {
|
|
|
1015
1032
|
r(!1);
|
|
1016
1033
|
}
|
|
1017
1034
|
const D = G(f);
|
|
1018
|
-
m && D.addEventListener("keydown", W), F && D.addEventListener(l,
|
|
1035
|
+
m && D.addEventListener("keydown", W), F && D.addEventListener(l, V);
|
|
1019
1036
|
let A = [];
|
|
1020
1037
|
return b && (H(a) && (A = fe(a)), H(f) && (A = A.concat(fe(f))), !H(u) && u && u.contextElement && (A = A.concat(fe(u.contextElement)))), A = A.filter((S) => {
|
|
1021
1038
|
var L;
|
|
@@ -1025,15 +1042,15 @@ const Ut = {
|
|
|
1025
1042
|
passive: !0
|
|
1026
1043
|
});
|
|
1027
1044
|
}), () => {
|
|
1028
|
-
m && D.removeEventListener("keydown", W), F && D.removeEventListener(l,
|
|
1045
|
+
m && D.removeEventListener("keydown", W), F && D.removeEventListener(l, V), A.forEach((S) => {
|
|
1029
1046
|
S.removeEventListener("scroll", T);
|
|
1030
1047
|
});
|
|
1031
1048
|
};
|
|
1032
|
-
}, [f, a, u, m, F, l, o, g, i, n, r, b,
|
|
1033
|
-
|
|
1034
|
-
}, [F, l]), s.useMemo(() =>
|
|
1049
|
+
}, [f, a, u, m, F, l, o, g, i, n, r, b, d, O, K, I]), s.useEffect(() => {
|
|
1050
|
+
N.current = !1;
|
|
1051
|
+
}, [F, l]), s.useMemo(() => d ? {
|
|
1035
1052
|
reference: {
|
|
1036
|
-
[
|
|
1053
|
+
[_t[w]]: () => {
|
|
1037
1054
|
p && (o.emit("dismiss", {
|
|
1038
1055
|
type: "referencePress",
|
|
1039
1056
|
data: {
|
|
@@ -1043,27 +1060,27 @@ const Ut = {
|
|
|
1043
1060
|
}
|
|
1044
1061
|
},
|
|
1045
1062
|
floating: {
|
|
1046
|
-
[
|
|
1047
|
-
|
|
1063
|
+
[Ut[l]]: () => {
|
|
1064
|
+
N.current = !0;
|
|
1048
1065
|
}
|
|
1049
1066
|
}
|
|
1050
|
-
} : {}, [
|
|
1067
|
+
} : {}, [d, o, p, l, w, r]);
|
|
1051
1068
|
};
|
|
1052
|
-
function tn(
|
|
1053
|
-
return s.useMemo(() =>
|
|
1054
|
-
|
|
1055
|
-
typeof n == "function" ? n(
|
|
1069
|
+
function tn(t) {
|
|
1070
|
+
return s.useMemo(() => t.every((e) => e == null) ? null : (e) => {
|
|
1071
|
+
t.forEach((n) => {
|
|
1072
|
+
typeof n == "function" ? n(e) : n != null && (n.current = e);
|
|
1056
1073
|
});
|
|
1057
|
-
},
|
|
1074
|
+
}, t);
|
|
1058
1075
|
}
|
|
1059
|
-
const nn = function(
|
|
1076
|
+
const nn = function(t, e) {
|
|
1060
1077
|
let {
|
|
1061
1078
|
open: n
|
|
1062
|
-
} =
|
|
1079
|
+
} = t, {
|
|
1063
1080
|
enabled: r = !0,
|
|
1064
1081
|
role: o = "dialog"
|
|
1065
1082
|
} = {};
|
|
1066
|
-
const i =
|
|
1083
|
+
const i = Ee(), u = Ee();
|
|
1067
1084
|
return s.useMemo(() => {
|
|
1068
1085
|
const a = {
|
|
1069
1086
|
id: i,
|
|
@@ -1095,13 +1112,13 @@ const nn = function(e, t) {
|
|
|
1095
1112
|
} : {};
|
|
1096
1113
|
}, [r, o, n, i, u]);
|
|
1097
1114
|
};
|
|
1098
|
-
function rn(
|
|
1099
|
-
|
|
1115
|
+
function rn(t) {
|
|
1116
|
+
t === void 0 && (t = {});
|
|
1100
1117
|
const {
|
|
1101
|
-
open:
|
|
1118
|
+
open: e = !1,
|
|
1102
1119
|
onOpenChange: n,
|
|
1103
1120
|
nodeId: r
|
|
1104
|
-
} =
|
|
1121
|
+
} = t, o = nt(t), i = Se(), u = s.useRef(null), a = s.useRef({}), f = s.useState(() => Ct())[0], [d, m] = s.useState(null), c = s.useCallback((g) => {
|
|
1105
1122
|
const I = H(g) ? {
|
|
1106
1123
|
getBoundingClientRect: () => g.getBoundingClientRect(),
|
|
1107
1124
|
contextElement: g
|
|
@@ -1119,41 +1136,41 @@ function rn(e) {
|
|
|
1119
1136
|
domReference: u
|
|
1120
1137
|
}), [o.refs, l, c]), w = s.useMemo(() => ({
|
|
1121
1138
|
...o.elements,
|
|
1122
|
-
domReference:
|
|
1123
|
-
}), [o.elements,
|
|
1139
|
+
domReference: d
|
|
1140
|
+
}), [o.elements, d]), b = Te(n), v = s.useMemo(() => ({
|
|
1124
1141
|
...o,
|
|
1125
1142
|
refs: p,
|
|
1126
1143
|
elements: w,
|
|
1127
1144
|
dataRef: a,
|
|
1128
1145
|
nodeId: r,
|
|
1129
1146
|
events: f,
|
|
1130
|
-
open:
|
|
1147
|
+
open: e,
|
|
1131
1148
|
onOpenChange: b
|
|
1132
|
-
}), [o, r, f,
|
|
1149
|
+
}), [o, r, f, e, b, p, w]);
|
|
1133
1150
|
return q(() => {
|
|
1134
1151
|
const g = i == null ? void 0 : i.nodesRef.current.find((I) => I.id === r);
|
|
1135
|
-
g && (g.context =
|
|
1152
|
+
g && (g.context = v);
|
|
1136
1153
|
}), s.useMemo(() => ({
|
|
1137
1154
|
...o,
|
|
1138
|
-
context:
|
|
1155
|
+
context: v,
|
|
1139
1156
|
refs: p,
|
|
1140
1157
|
reference: l,
|
|
1141
1158
|
positionReference: c
|
|
1142
|
-
}), [o, p,
|
|
1159
|
+
}), [o, p, v, l, c]);
|
|
1143
1160
|
}
|
|
1144
|
-
function me(
|
|
1161
|
+
function me(t, e, n) {
|
|
1145
1162
|
const r = /* @__PURE__ */ new Map();
|
|
1146
1163
|
return {
|
|
1147
1164
|
...n === "floating" && {
|
|
1148
1165
|
tabIndex: -1
|
|
1149
1166
|
},
|
|
1150
|
-
...
|
|
1151
|
-
...
|
|
1167
|
+
...t,
|
|
1168
|
+
...e.map((o) => o ? o[n] : null).concat(t).reduce((o, i) => (i && Object.entries(i).forEach((u) => {
|
|
1152
1169
|
let [a, f] = u;
|
|
1153
1170
|
if (a.indexOf("on") === 0) {
|
|
1154
1171
|
if (r.has(a) || r.set(a, []), typeof f == "function") {
|
|
1155
|
-
var
|
|
1156
|
-
(
|
|
1172
|
+
var d;
|
|
1173
|
+
(d = r.get(a)) == null || d.push(f), o[a] = function() {
|
|
1157
1174
|
for (var m, c = arguments.length, l = new Array(c), p = 0; p < c; p++)
|
|
1158
1175
|
l[p] = arguments[p];
|
|
1159
1176
|
(m = r.get(a)) == null || m.forEach((w) => w(...l));
|
|
@@ -1164,20 +1181,20 @@ function me(e, t, n) {
|
|
|
1164
1181
|
}), o), {})
|
|
1165
1182
|
};
|
|
1166
1183
|
}
|
|
1167
|
-
const on = function(
|
|
1168
|
-
|
|
1169
|
-
const
|
|
1170
|
-
(i) => me(i,
|
|
1184
|
+
const on = function(t) {
|
|
1185
|
+
t === void 0 && (t = []);
|
|
1186
|
+
const e = t, n = s.useCallback(
|
|
1187
|
+
(i) => me(i, t, "reference"),
|
|
1171
1188
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1172
|
-
|
|
1189
|
+
e
|
|
1173
1190
|
), r = s.useCallback(
|
|
1174
|
-
(i) => me(i,
|
|
1191
|
+
(i) => me(i, t, "floating"),
|
|
1175
1192
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1176
|
-
|
|
1193
|
+
e
|
|
1177
1194
|
), o = s.useCallback(
|
|
1178
|
-
(i) => me(i,
|
|
1195
|
+
(i) => me(i, t, "item"),
|
|
1179
1196
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1180
|
-
|
|
1197
|
+
e
|
|
1181
1198
|
);
|
|
1182
1199
|
return s.useMemo(() => ({
|
|
1183
1200
|
getReferenceProps: n,
|
|
@@ -1194,5 +1211,5 @@ export {
|
|
|
1194
1211
|
en as e,
|
|
1195
1212
|
nn as f,
|
|
1196
1213
|
on as g,
|
|
1197
|
-
|
|
1214
|
+
Ee as u
|
|
1198
1215
|
};
|