@loczer/storefront-sdk 0.148.0 → 0.150.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BookingPage.d.ts +6 -0
- package/dist/CheckoutPage.d.ts +6 -0
- package/dist/CheckoutPaymentPage.d.ts +6 -0
- package/dist/CheckoutSuccessPage.d.ts +6 -0
- package/dist/ContractSaleDocumentPage.d.ts +116 -0
- package/dist/ErrorPage.d.ts +6 -0
- package/dist/HomePage.d.ts +6 -0
- package/dist/I18nProvider.d.ts +23 -0
- package/dist/NotFoundPage.d.ts +6 -0
- package/dist/PaymentLinkPage.d.ts +40 -0
- package/dist/PaymentLinkSuccessPage.d.ts +40 -0
- package/dist/ProductPage.d.ts +6 -0
- package/dist/StorefrontProvider.d.ts +1119 -0
- package/dist/StorefrontProvider.js +95 -0
- package/dist/accessories.d.ts +42 -0
- package/dist/apiCall.d.ts +7 -0
- package/dist/badge.d.ts +14 -0
- package/dist/bikes.d.ts +107 -0
- package/dist/booking-period-time-slots.d.ts +279 -0
- package/dist/booking-period.d.ts +173 -0
- package/dist/booking.d.ts +384 -0
- package/dist/button.d.ts +16 -0
- package/dist/card.d.ts +18 -0
- package/dist/cart.d.ts +30 -0
- package/dist/cartSummary.d.ts +205 -0
- package/dist/checkoutPaymentDecision.d.ts +48 -0
- package/dist/checkoutPaymentSession.d.ts +65 -0
- package/dist/checkoutSubmit.d.ts +61 -0
- package/dist/checkoutVerifyCoupon.d.ts +45 -0
- package/dist/chunks/assets/dev.svg-jGkd1F38.js +4 -0
- package/dist/chunks/assets/playground-hero-preview.svg-DNbSwXV5.js +4 -0
- package/dist/chunks/assets/whatsapp.svg-grlzka-t.js +4 -0
- package/dist/chunks/node_modules/react-day-picker/dist/esm/components/DayButton-D9KJeDKs.js +10 -0
- package/dist/chunks/pkg/booking-engine/dist/models/LocalizedString--6q77SPQ.js +36 -0
- package/dist/chunks/pkg/booking-engine/dist/models/Price-BlFRDHXV.js +13 -0
- package/dist/chunks/pkg/booking-engine/dist/models/Product.shared-BiDGmurZ.js +85 -0
- package/dist/chunks/pkg/booking-engine/dist/models/types-DLcvzW5b.js +13 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/base-asset-GJ9eIvIL.js +18 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/base-booking-D9k8ehGi.js +75 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/booking-engine-configuration-CnBdp3jk.js +104 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/cart-inputs-DYgEGJ5M.js +73 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/money-Dy4b9loa.js +23 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/public-booking-engine-configuration-C9VB-WhU.js +17 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/rich-text-CqXhNDN3.js +15 -0
- package/dist/chunks/pkg/booking-engine/dist/schemas/shop-opening-hours-B47MMaoD.js +45 -0
- package/dist/chunks/pkg/booking-engine/dist/utils/pricing-DcnUXaeI.js +36 -0
- package/dist/chunks/pkg/ui/dist/Button-CEl4MEmL.js +44 -0
- package/dist/chunks/pkg/ui/dist/Dialog-COr6fnKd.js +283 -0
- package/dist/chunks/pkg/ui/dist/Drawer/index-BxM7gmh_.js +226 -0
- package/dist/chunks/pkg/ui/dist/Map/MapContent-BqCzk6pD.js +292 -0
- package/dist/chunks/pkg/ui/dist/Map/constants-AiBwXZf6.js +4 -0
- package/dist/chunks/pkg/ui/dist/Map-Cqn7INdm.js +50 -0
- package/dist/chunks/pkg/ui/dist/MorphingModalWizard-D7hc-dDP.js +30 -0
- package/dist/chunks/pkg/ui/dist/ResponsiveDialog-D8YzB_3J.js +154 -0
- package/dist/chunks/pkg/ui/dist/ScrollArea-D9UdixQL.js +67 -0
- package/dist/chunks/pkg/ui/dist/SsrHydratablePortal/index-Ue09qUAi.js +40 -0
- package/dist/chunks/pkg/ui/dist/_virtual/_commonjsHelpers-W3dGiUWw.js +6 -0
- package/dist/chunks/pkg/ui/dist/_virtual/index-C9tmbAjU.js +5 -0
- package/dist/chunks/pkg/ui/dist/_virtual/index2-Cr2SmWQI.js +4 -0
- package/dist/chunks/pkg/ui/dist/_virtual/mapbox-gl-8G326Xvx.js +27 -0
- package/dist/chunks/pkg/ui/dist/_virtual/mapbox-gl2-CffgHKjA.js +4 -0
- package/dist/chunks/pkg/ui/dist/_virtual/use-sync-external-store-shim.development-DmH-ks33.js +4 -0
- package/dist/chunks/pkg/ui/dist/_virtual/use-sync-external-store-shim.production-BjPWYSZb.js +4 -0
- package/dist/chunks/pkg/ui/dist/_virtual/with-selector-BTwk-iW5.js +5 -0
- package/dist/chunks/pkg/ui/dist/_virtual/with-selector.development-DmH-ks33.js +4 -0
- package/dist/chunks/pkg/ui/dist/_virtual/with-selector.production-xTL6w2lb.js +4 -0
- package/dist/chunks/pkg/ui/dist/_virtual/with-selector2-Cr2SmWQI.js +4 -0
- package/dist/chunks/pkg/ui/dist/lib/body-pointer-events-CyPsDvc9.js +16 -0
- package/dist/chunks/pkg/ui/dist/lib/isAutomationRuntime-Cu2aNI6_.js +5 -0
- package/dist/chunks/pkg/ui/dist/lib/slot-CklkPb7k.js +50 -0
- package/dist/chunks/pkg/ui/dist/lib/useMediaQuery-DhKGnWgn.js +20 -0
- package/dist/chunks/pkg/ui/dist/lib/utils-B6zhukbw.js +8 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/csp-provider/CSPContext-9LViUOEN.js +13 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop-dfhPbhun.js +40 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/close/DialogClose-CiEiuP0S.js +41 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/description/DialogDescription-C793yEmX.js +25 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup-Ce1MaHNd.js +80 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars-Bt8y0AZk.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupDataAttributes-C1piwkT4.js +7 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal-DCoXyUCa.js +30 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/portal/DialogPortalContext-CtWBuvRl.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/root/DialogRoot-DYrthiUT.js +64 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/root/DialogRootContext-D__rrg4-.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot-Dmki7CJG.js +81 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/store/DialogStore-ltMcMpnh.js +69 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/title/DialogTitle-BYe_-O2U.js +25 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/trigger/DialogTrigger-CDsWAaqd.js +56 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/viewport/DialogViewport-CoAyzYQs.js +54 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/dialog/viewport/DialogViewportDataAttributes-C_9BMPUj.js +7 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/backdrop/DrawerBackdrop-BqcC6xGK.js +45 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/backdrop/DrawerBackdropCssVars-BtzwweRf.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/close/DrawerClose-K9toitLg.js +5 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/content/DrawerContent-DAER5HEH.js +22 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/content/DrawerContentDataAttributes-CpDnPAXP.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/description/DrawerDescription-CmzTECJs.js +5 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/popup/DrawerPopup-BXOe4Llu.js +241 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/popup/DrawerPopupCssVars-Ct685Bcm.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/popup/DrawerPopupDataAttributes-BsZri5W4.js +7 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/portal/DrawerPortal-BfTFM1p8.js +5 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/provider/DrawerProviderContext-euW_U5h8.js +10 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/root/DrawerRoot-DuO16Hl3.js +148 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/root/DrawerRootContext-Cyaf-7qv.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/root/useDrawerSnapPoints-CVbKGPMi.js +105 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/title/DrawerTitle-DPojAJP6.js +5 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/trigger/DrawerTrigger-BKWBskBD.js +5 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/viewport/DrawerViewport-BA1WyQud.js +593 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/drawer/viewport/DrawerViewportContext-xR35hPcl.js +10 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingFocusManager-B-v_gyUI.js +264 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingPortal-6JOqLjHM.js +129 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingRootStore-D8M2d4pp.js +74 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTree-BJGeWpX5.js +15 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useClick-C3V1YAJN.js +68 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useDismiss-BzvyAPc1.js +265 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useInteractions-BWCpGAad.js +48 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useRole-DfMbRaU2.js +76 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useSyncedFloatingRootContext-Cczfd0Dg.js +35 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/composite-keZdnJD9.js +11 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/constants-B-72x4uQ.js +7 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/createAttribute-DQjmnndx.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/createEventEmitter-156NFNq-.js +17 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/element-7_beKIST.js +29 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/enqueueFocus-BoxfANJQ.js +22 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/event-BJf3Eroa.js +29 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/getEmptyRootContext-AtxQDZdS.js +18 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/markOthers-im_zgP9x.js +80 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/nodes-BbaFB8UD.js +15 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/tabbable-BUkXLKOZ.js +140 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/clamp--orC6ThW.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/composite/composite-Bl9mbNwg.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/composite/root/CompositeRootContext-hBCEpdkp.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/constants-DrTrmCr_.js +12 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/createBaseUIEventDetails-WO93mcXE.js +26 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/direction-context/DirectionContext-DHsnfCgz.js +10 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/getStateAttributesProps-rQvCQegA.js +16 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/reason-parts-DKJ_-O8k.js +13 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/shadowDom-DTBRPFkJ.js +31 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/stateAttributesMapping-B17IMmGk.js +16 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/use-button/useButton-CW30d95j.js +113 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useAnimationsFinished-B8I0rTuq.js +54 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useBaseUiId-BhlhP3ZP.js +7 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useOpenChangeComplete-Doxu2x_W.js +22 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useRenderElement-CktkgllD.js +71 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useTransitionStatus-D7bNijs9.js +42 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/internals/useValueChanged-DNmBrXYR.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/merge-props/mergeProps-taN4tP1i.js +102 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/constants-BMXX3oM8.js +5 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/corner/ScrollAreaCorner-z0cNScNF.js +31 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRoot-Cw_gyhhI.js +166 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRootContext-CQVTL1yg.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRootCssVars-UMzfvqzf.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/root/ScrollAreaRootDataAttributes-DYAeFs1E.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/root/stateAttributes-e5OzHsp_.js +25 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbar-DGyLPhKe.js +132 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbarContext-Cn2tB9KX.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbarCssVars-CVtQQfDD.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/scrollbar/ScrollAreaScrollbarDataAttributes-CcesYZ2Y.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/thumb/ScrollAreaThumb-08Mmzry4.js +50 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/utils/getOffset-D1-wFs-x.js +9 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/viewport/ScrollAreaViewport-CadjBxEp.js +201 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/viewport/ScrollAreaViewportContext-O9cXognJ.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/scroll-area/viewport/ScrollAreaViewportCssVars-Dttwkr3N.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/FocusGuard-BkeVKSkX.js +24 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/InternalBackdrop-CZUtC9bU.js +30 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/getElementAtPoint-CR7qt9tE.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/popupStateMapping-DVUopj_P.js +32 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/popups/popupStoreUtils-DSjS8g02.js +95 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/popups/popupTriggerMap-RUMkUgDU.js +64 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/popups/store-Bz3dUxiI.js +52 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/resolveClassName-D2IlO_XQ.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/resolveRef-Csx4Vghu.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/resolveStyle-MTmYMe0U.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/scrollEdges-DZboWB_y.js +12 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/scrollable-D1F6TRF5.js +34 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/styles-BrbvX9PD.js +16 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/useFocusableWhenDisabled-CJZi1M5y.js +24 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/useOpenInteractionType-CW--rAaF.js +30 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/useSwipeDismiss-ZcIND0Ss.js +530 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/addEventListener-DnnRp2CB.js +8 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/detectBrowser-CntSiJrj.js +43 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/empty-C3-x9M2q.js +7 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/error-KZbzusBH.js +11 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/formatErrorMessage-BJfWDcMI.js +11 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/getReactElementRef-CB7CT3xn.js +11 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/inertValue-C-Qws-Vy.js +7 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/mergeCleanups-vij8IUwv.js +11 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/mergeObjects-DodLCs_x.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/owner-CfKP3-Rk.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/reactVersion-oVIlFc4q.js +8 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/safeReact-C4X27Y1Z.js +7 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/store/ReactStore-CfPgecP0.js +145 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/store/Store-CRAQANWM.js +86 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/store/createSelector-SDRl3LYE.js +17 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/store/useStore-BsRFFm2l.js +21 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useAnimationFrame-C0av1dS7.js +68 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useControlled-BYl9LGEz.js +53 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useEnhancedClickHandler-Cu2E1baO.js +19 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useId-D8NyJjt3.js +20 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useIsoLayoutEffect-oOMudEAz.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useMergedRefs-p9UujHQn.js +69 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useOnFirstRender-IB3XPZ7h.js +8 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useOnMount-DjNCK2YI.js +8 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useRefWithInit-BObJZm23.js +9 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useScrollLock-kV6bksFe.js +125 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useStableCallback-DyHa2qMJ.js +32 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useTimeout-BPZmm8PE.js +32 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/useValueAsRef-CCfi_eqC.js +19 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/visuallyHidden-CQbAGmCA.js +18 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/warn-eK9kQMmi.js +11 -0
- package/dist/chunks/pkg/ui/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom-BULZuLW5.js +71 -0
- package/dist/chunks/pkg/ui/dist/node_modules/class-variance-authority/dist/index-DEupJ0QT.js +35 -0
- package/dist/chunks/pkg/ui/dist/node_modules/clsx/dist/clsx-DPl_DXM-.js +16 -0
- package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id-DunDwGdX.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext-BWutRI4l.js +2 -0
- package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/context/LazyContext-yIDUGdfR.js +2 -0
- package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext-C3EPauom.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext-BWutRI4l.js +2 -0
- package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node-BDwaGtmx.js +9 -0
- package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash-h54_qXon.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props-DZcjZ2yt.js +9 -0
- package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/Icon-BNiQfVqr.js +35 -0
- package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/createLucideIcon-5_J8fxOF.js +21 -0
- package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/defaultAttributes-C1BTxN61.js +14 -0
- package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/icons/arrow-left-asE1l_Qw.js +9 -0
- package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/icons/x-Cdi8GS7U.js +9 -0
- package/dist/chunks/pkg/ui/dist/node_modules/lucide-react/dist/esm/shared/src/utils-nzQUBs6v.js +18 -0
- package/dist/chunks/pkg/ui/dist/node_modules/mapbox-gl/dist/mapbox-gl-BWrsjoOR.js +35536 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion-Cc0tLlFf.js +5 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform-DY2FRn5v.js +22 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/color/hex-BN1laQGd.js +19 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-CflwzkVO.js +12 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/color/index-D1GFyA5S.js +15 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/color/rgba-BIy7YqPw.js +16 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/color/utils-IDKsSWKt.js +18 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/complex/filter-AXB6Rjjs.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/complex/index-Z9QmZfw0.js +51 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/complex/mask-AXB6Rjjs.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/int-CwcJvGhp.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/numbers/index-CWjqASeJ.js +16 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/numbers/units-DNXf-Ngr.js +11 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex-DKss3XP5.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex-Dw3Xm45S.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish-B7IIKRzS.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize-DYfJ2EAL.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex-CjD_eR3p.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-utils/dist/es/clamp-BMGeQDyI.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-utils/dist/es/errors-CBdvTtJZ.js +2 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-utils/dist/es/format-error-message-BwUIYuzJ.js +6 -0
- package/dist/chunks/pkg/ui/dist/node_modules/motion-utils/dist/es/noop-BGdtcOlD.js +4 -0
- package/dist/chunks/pkg/ui/dist/node_modules/tailwind-merge/dist/bundle-mjs-2e7LjAK7.js +2763 -0
- package/dist/chunks/pkg/ui/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development-PEz9rQUM.js +58 -0
- package/dist/chunks/pkg/ui/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production-1dR2oH6_.js +57 -0
- package/dist/chunks/pkg/ui/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development-Bjtnv0KW.js +58 -0
- package/dist/chunks/pkg/ui/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production-BvTUQFJj.js +46 -0
- package/dist/chunks/pkg/ui/dist/node_modules/use-sync-external-store/shim/index-g__WfpEy.js +10 -0
- package/dist/chunks/pkg/ui/dist/node_modules/use-sync-external-store/shim/with-selector-DFIcfxeX.js +10 -0
- package/dist/chunks/pkg/ui/dist/static/strings-lR4Uv4ze.js +4 -0
- package/dist/components/AboutSection/index.d.ts +7 -0
- package/dist/components/AboutSection/index.js +94 -0
- package/dist/components/AddressAutocompleteInput/index.d.ts +17 -0
- package/dist/components/AddressAutocompleteInput/index.js +143 -0
- package/dist/components/BikeProductCard/index.d.ts +17 -0
- package/dist/components/BikeProductCard/index.js +78 -0
- package/dist/components/BookingBikeVariantDialog/index.d.ts +2 -0
- package/dist/components/BookingBikeVariantDialog/index.js +216 -0
- package/dist/components/BookingFlowSteps/index.d.ts +9 -0
- package/dist/components/BookingFlowSteps/index.js +59 -0
- package/dist/components/BookingPeriodSelector/BookingPeriodContext.js +16 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndDateField.js +333 -0
- package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +112 -0
- package/dist/components/BookingPeriodSelector/components/BookingPeriodFieldErrorMessage.js +7 -0
- package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +156 -0
- package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +130 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalDayPickerField.js +302 -0
- package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.js +368 -0
- package/dist/components/BookingPeriodSelector/index.d.ts +12 -0
- package/dist/components/BookingPeriodSelector/index.js +27 -0
- package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +241 -0
- package/dist/components/ContactSection/index.d.ts +6 -0
- package/dist/components/ContactSection/index.js +228 -0
- package/dist/components/ContractSaleDocument/AcceptanceModal.js +36 -0
- package/dist/components/ContractSaleDocument/Invoice.js +402 -0
- package/dist/components/ContractSaleDocument/InvoiceDetails.js +180 -0
- package/dist/components/ContractSaleDocument/Page.js +14 -0
- package/dist/components/ContractSaleDocument/PageFooter.js +26 -0
- package/dist/components/ContractSaleDocument/PageHeader.js +26 -0
- package/dist/components/ContractSaleDocument/SignatureModal.js +131 -0
- package/dist/components/ContractSaleDocument/TermsAndConditionsContent.js +46 -0
- package/dist/components/ContractSaleDocument/ThumbnailSidebar.js +59 -0
- package/dist/components/ContractSaleDocument/index.d.ts +3 -0
- package/dist/components/ContractSaleDocument/index.js +4 -0
- package/dist/components/ContractSaleDocument/language.js +36 -0
- package/dist/components/DelayedReveal/index.d.ts +15 -0
- package/dist/components/DelayedReveal/index.js +61 -0
- package/dist/components/DeliveryAddressSelector/index.d.ts +23 -0
- package/dist/components/DeliveryAddressSelector/index.js +95 -0
- package/dist/components/Footer/BusinessHours.js +125 -0
- package/dist/components/Footer/businessHoursUtils.js +27 -0
- package/dist/components/Footer/index.d.ts +11 -0
- package/dist/components/Footer/index.js +127 -0
- package/dist/components/FulfillmentSection/index.d.ts +23 -0
- package/dist/components/FulfillmentSection/index.js +107 -0
- package/dist/components/Header/index.d.ts +10 -0
- package/dist/components/Header/index.js +119 -0
- package/dist/components/Layout/index.d.ts +7 -0
- package/dist/components/Layout/index.js +47 -0
- package/dist/components/Map/createMarkerElement.js +17 -0
- package/dist/components/Map/index.d.ts +3 -0
- package/dist/components/Map/index.js +6 -0
- package/dist/components/PlatformFooter/index.d.ts +2 -0
- package/dist/components/PlatformFooter/index.js +51 -0
- package/dist/components/PlaygroundDevFloatingButton/index.d.ts +2 -0
- package/dist/components/PlaygroundDevFloatingButton/index.js +216 -0
- package/dist/components/PoweredByLoczerBadge/index.d.ts +9 -0
- package/dist/components/PoweredByLoczerBadge/index.js +73 -0
- package/dist/components/ProductPriceBadge/index.d.ts +9 -0
- package/dist/components/ProductPriceBadge/index.js +229 -0
- package/dist/components/ProductWarningNotice/index.d.ts +7 -0
- package/dist/components/ProductWarningNotice/index.js +22 -0
- package/dist/components/StepSectionTitle/index.d.ts +8 -0
- package/dist/components/StepSectionTitle/index.js +6 -0
- package/dist/components/StorefrontCartPanel/index.d.ts +25 -0
- package/dist/components/StorefrontCartPanel/index.js +131 -0
- package/dist/components/StorefrontPopupMessages/index.d.ts +7 -0
- package/dist/components/StorefrontPopupMessages/index.js +172 -0
- package/dist/components/TestimonialsSection/index.d.ts +2 -0
- package/dist/components/TestimonialsSection/index.js +349 -0
- package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.js +44 -0
- package/dist/components/WhatsAppFloatingButton/index.d.ts +4 -0
- package/dist/components/WhatsAppFloatingButton/index.js +6 -0
- package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.js +74 -0
- package/dist/components/payment/MollieCardFieldsForm.js +135 -0
- package/dist/components/payment/StripeCardFieldsForm.js +100 -0
- package/dist/components/payment/index.d.ts +3 -0
- package/dist/components/payment/index.js +6 -0
- package/dist/config.d.ts +19 -0
- package/dist/contactForm.d.ts +22 -0
- package/dist/contractSaleDocument.d.ts +242 -0
- package/dist/contractSaleDocumentApi.d.ts +481 -0
- package/dist/data/accessories.d.ts +30 -0
- package/dist/data/accessories.js +145 -0
- package/dist/data/bikes.d.ts +101 -0
- package/dist/data/bikes.js +418 -0
- package/dist/data/config.d.ts +15 -0
- package/dist/data/config.js +28 -0
- package/dist/en.d.ts +369 -0
- package/dist/form.d.ts +44 -0
- package/dist/fr.d.ts +369 -0
- package/dist/i18n/I18nProvider.d.ts +16 -0
- package/dist/i18n/I18nProvider.js +120 -0
- package/dist/i18n/en.d.ts +368 -0
- package/dist/i18n/en.js +370 -0
- package/dist/i18n/fr.d.ts +368 -0
- package/dist/i18n/fr.js +370 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +331 -0
- package/dist/input.d.ts +5 -0
- package/dist/isAutomationRuntime.d.ts +3 -0
- package/dist/label.d.ts +7 -0
- package/dist/lib/apiCall.d.ts +4 -0
- package/dist/lib/apiCall.js +6 -0
- package/dist/lib/booking-period-time-slots.d.ts +61 -0
- package/dist/lib/booking-period-time-slots.js +273 -0
- package/dist/lib/booking-period.d.ts +147 -0
- package/dist/lib/booking-period.js +349 -0
- package/dist/lib/booking.d.ts +39 -0
- package/dist/lib/booking.js +159 -0
- package/dist/lib/cart.d.ts +25 -0
- package/dist/lib/cart.js +87 -0
- package/dist/lib/cartSummary.d.ts +31 -0
- package/dist/lib/cartSummary.js +41 -0
- package/dist/lib/checkoutPaymentDecision.d.ts +40 -0
- package/dist/lib/checkoutPaymentDecision.js +33 -0
- package/dist/lib/checkoutPaymentSession.d.ts +55 -0
- package/dist/lib/checkoutPaymentSession.js +44 -0
- package/dist/lib/checkoutSubmit.d.ts +53 -0
- package/dist/lib/checkoutSubmit.js +59 -0
- package/dist/lib/checkoutVerifyCoupon.d.ts +39 -0
- package/dist/lib/checkoutVerifyCoupon.js +32 -0
- package/dist/lib/contactForm.d.ts +16 -0
- package/dist/lib/contactForm.js +16 -0
- package/dist/lib/contractSaleDocument.d.ts +216 -0
- package/dist/lib/contractSaleDocument.js +70 -0
- package/dist/lib/contractSaleDocumentApi.d.ts +449 -0
- package/dist/lib/contractSaleDocumentApi.js +77 -0
- package/dist/lib/isAutomationRuntime.d.ts +2 -0
- package/dist/lib/isAutomationRuntime.js +5 -0
- package/dist/lib/mollieComponentStyles.d.ts +2 -0
- package/dist/lib/mollieComponentStyles.js +31 -0
- package/dist/lib/playgroundDevSettings.d.ts +11 -0
- package/dist/lib/playgroundDevSettings.js +61 -0
- package/dist/lib/pricing.d.ts +14 -0
- package/dist/lib/pricing.js +50 -0
- package/dist/lib/productImageStyles.d.ts +9 -0
- package/dist/lib/productImageStyles.js +8 -0
- package/dist/lib/productVariants.d.ts +13 -0
- package/dist/lib/productVariants.js +26 -0
- package/dist/lib/products.d.ts +37 -0
- package/dist/lib/products.js +58 -0
- package/dist/lib/richAddress.d.ts +21 -0
- package/dist/lib/richAddress.js +24 -0
- package/dist/lib/securePaymentLink.d.ts +105 -0
- package/dist/lib/securePaymentLink.js +79 -0
- package/dist/lib/storefrontAvailability.d.ts +84 -0
- package/dist/lib/storefrontAvailability.js +54 -0
- package/dist/lib/storefrontImage.d.ts +10 -0
- package/dist/lib/storefrontImage.js +16 -0
- package/dist/lib/storefrontProducts.d.ts +371 -0
- package/dist/lib/storefrontProducts.js +89 -0
- package/dist/lib/storefrontReviews.d.ts +72 -0
- package/dist/lib/storefrontReviews.js +36 -0
- package/dist/lib/utils.d.ts +16 -0
- package/dist/lib/utils.js +27 -0
- package/dist/lib/whatsapp.d.ts +17 -0
- package/dist/lib/whatsapp.js +60 -0
- package/dist/localization.d.ts +13 -0
- package/dist/localization.js +16 -0
- package/dist/mollieComponentStyles.d.ts +3 -0
- package/dist/pages/BookingPage.d.ts +2 -0
- package/dist/pages/BookingPage.js +535 -0
- package/dist/pages/CheckoutPage.d.ts +2 -0
- package/dist/pages/CheckoutPage.js +428 -0
- package/dist/pages/CheckoutPaymentPage.d.ts +2 -0
- package/dist/pages/CheckoutPaymentPage.js +243 -0
- package/dist/pages/CheckoutSuccessPage.d.ts +2 -0
- package/dist/pages/CheckoutSuccessPage.js +24 -0
- package/dist/pages/ContractSaleDocumentPage.d.ts +109 -0
- package/dist/pages/ContractSaleDocumentPage.js +342 -0
- package/dist/pages/ErrorPage.d.ts +2 -0
- package/dist/pages/ErrorPage.js +47 -0
- package/dist/pages/HomePage.d.ts +2 -0
- package/dist/pages/HomePage.js +501 -0
- package/dist/pages/NotFoundPage.d.ts +2 -0
- package/dist/pages/NotFoundPage.js +28 -0
- package/dist/pages/PaymentLinkPage.d.ts +34 -0
- package/dist/pages/PaymentLinkPage.js +258 -0
- package/dist/pages/PaymentLinkSuccessPage.d.ts +34 -0
- package/dist/pages/PaymentLinkSuccessPage.js +140 -0
- package/dist/pages/ProductPage.d.ts +2 -0
- package/dist/pages/ProductPage.js +255 -0
- package/dist/pages/checkout/components/CheckoutCouponCard.js +72 -0
- package/dist/pages/checkout/components/CheckoutDetailsCard.js +68 -0
- package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.js +90 -0
- package/dist/pages/checkout/components/CheckoutSummaryColumn.js +41 -0
- package/dist/pages/checkout/types.js +10 -0
- package/dist/playgroundDevSettings.d.ts +19 -0
- package/dist/pricing.d.ts +35 -0
- package/dist/productImageStyles.d.ts +25 -0
- package/dist/productVariants.d.ts +16 -0
- package/dist/products.d.ts +224 -0
- package/dist/radio-group.d.ts +14 -0
- package/dist/richAddress.d.ts +24 -0
- package/dist/routes.d.ts +6 -0
- package/dist/routes.js +32 -0
- package/dist/securePaymentLink.d.ts +125 -0
- package/dist/select.d.ts +41 -0
- package/dist/slot.d.ts +15 -0
- package/dist/static/strings.js +4 -0
- package/dist/storefront.css +1 -0
- package/dist/storefrontAvailability.d.ts +107 -0
- package/dist/storefrontImage.d.ts +16 -0
- package/dist/storefrontProducts.d.ts +400 -0
- package/dist/storefrontReviews.d.ts +84 -0
- package/dist/storefrontSchemas.d.ts +588 -0
- package/dist/storefrontSchemas.js +132 -0
- package/dist/textarea.d.ts +5 -0
- package/dist/tooltip.d.ts +43 -0
- package/dist/ui/badge.d.ts +10 -0
- package/dist/ui/badge.js +39 -0
- package/dist/ui/button.d.ts +12 -0
- package/dist/ui/button.js +44 -0
- package/dist/ui/card.d.ts +10 -0
- package/dist/ui/card.js +93 -0
- package/dist/ui/form.d.ts +25 -0
- package/dist/ui/form.js +135 -0
- package/dist/ui/input.d.ts +4 -0
- package/dist/ui/input.js +24 -0
- package/dist/ui/label.d.ts +5 -0
- package/dist/ui/label.js +18 -0
- package/dist/ui/radio-group.d.ts +10 -0
- package/dist/ui/radio-group.js +55 -0
- package/dist/ui/select.d.ts +22 -0
- package/dist/ui/select.js +255 -0
- package/dist/ui/slot.d.ts +11 -0
- package/dist/ui/slot.js +33 -0
- package/dist/ui/textarea.d.ts +4 -0
- package/dist/ui/textarea.js +20 -0
- package/dist/ui/tooltip.d.ts +20 -0
- package/dist/ui/tooltip.js +73 -0
- package/dist/utils.d.ts +23 -0
- package/dist/whatsapp.d.ts +318 -0
- package/package.json +9 -1
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import * as g from "react";
|
|
2
|
+
import { isHTMLElement as P, getNodeName as Le, getWindow as je } from "../../../../../@floating-ui/utils/dist/floating-ui.utils.dom-BULZuLW5.js";
|
|
3
|
+
import { addEventListener as y } from "../../../../utils/esm/addEventListener-DnnRp2CB.js";
|
|
4
|
+
import { mergeCleanups as $e } from "../../../../utils/esm/mergeCleanups-vij8IUwv.js";
|
|
5
|
+
import { useMergedRefs as Ee } from "../../../../utils/esm/useMergedRefs-p9UujHQn.js";
|
|
6
|
+
import { useValueAsRef as te } from "../../../../utils/esm/useValueAsRef-CCfi_eqC.js";
|
|
7
|
+
import { useStableCallback as re } from "../../../../utils/esm/useStableCallback-DyHa2qMJ.js";
|
|
8
|
+
import { useIsoLayoutEffect as H } from "../../../../utils/esm/useIsoLayoutEffect-oOMudEAz.js";
|
|
9
|
+
import { useTimeout as xe } from "../../../../utils/esm/useTimeout-BPZmm8PE.js";
|
|
10
|
+
import { isWebKit as _e } from "../../../../utils/esm/detectBrowser-CntSiJrj.js";
|
|
11
|
+
import { useAnimationFrame as Ue } from "../../../../utils/esm/useAnimationFrame-C0av1dS7.js";
|
|
12
|
+
import { ownerDocument as O } from "../../../../utils/esm/owner-CfKP3-Rk.js";
|
|
13
|
+
import { FocusGuard as ve } from "../../utils/FocusGuard-BkeVKSkX.js";
|
|
14
|
+
import { isTypeableCombobox as ye, getFloatingFocusElement as he, isTypeableElement as ze } from "../utils/element-7_beKIST.js";
|
|
15
|
+
import { isVirtualClick as Je, isVirtualPointerEvent as Qe, stopEvent as Xe } from "../utils/event-BJf3Eroa.js";
|
|
16
|
+
import { tabbable as Me, isOutsideEvent as Te, getNextTabbable as Ye, getPreviousTabbable as Ze, isTabbable as se, focusable as Be } from "../utils/tabbable-BUkXLKOZ.js";
|
|
17
|
+
import { getNodeAncestors as Fe, getNodeChildren as ke } from "../utils/nodes-BbaFB8UD.js";
|
|
18
|
+
import { isElementVisible as et } from "../utils/composite-keZdnJD9.js";
|
|
19
|
+
import { createChangeEventDetails as tt } from "../../internals/createBaseUIEventDetails-WO93mcXE.js";
|
|
20
|
+
import { createAttribute as Ae } from "../utils/createAttribute-DQjmnndx.js";
|
|
21
|
+
import { enqueueFocus as ne } from "../utils/enqueueFocus-BoxfANJQ.js";
|
|
22
|
+
import { markOthers as Oe } from "../utils/markOthers-im_zgP9x.js";
|
|
23
|
+
import { usePortalContext as rt } from "./FloatingPortal-6JOqLjHM.js";
|
|
24
|
+
import { useFloatingTree as nt } from "./FloatingTree-BJGeWpX5.js";
|
|
25
|
+
import { CLICK_TRIGGER_IDENTIFIER as ot } from "../../internals/constants-DrTrmCr_.js";
|
|
26
|
+
import { resolveRef as C } from "../../utils/resolveRef-Csx4Vghu.js";
|
|
27
|
+
import { jsxs as st, jsx as Ce } from "react/jsx-runtime";
|
|
28
|
+
import { activeElement as W, contains as l, getTarget as _ } from "../../internals/shadowDom-DTBRPFkJ.js";
|
|
29
|
+
import { triggerHover as ut, outsidePress as at, focusOut as it } from "../../internals/reason-parts-DKJ_-O8k.js";
|
|
30
|
+
function ct(e, h) {
|
|
31
|
+
const I = je(_(e));
|
|
32
|
+
return e instanceof I.KeyboardEvent ? "keyboard" : e instanceof I.FocusEvent ? h || "keyboard" : "pointerType" in e ? e.pointerType || "keyboard" : "touches" in e ? "touch" : e instanceof I.MouseEvent ? h || (e.detail === 0 ? "keyboard" : "mouse") : "";
|
|
33
|
+
}
|
|
34
|
+
const Ne = 20;
|
|
35
|
+
let N = [];
|
|
36
|
+
function ue() {
|
|
37
|
+
N = N.filter((e) => e.deref()?.isConnected);
|
|
38
|
+
}
|
|
39
|
+
function ft(e) {
|
|
40
|
+
ue(), e && Le(e) !== "body" && (N.push(new WeakRef(e)), N.length > Ne && (N = N.slice(-Ne)));
|
|
41
|
+
}
|
|
42
|
+
function oe() {
|
|
43
|
+
return ue(), N[N.length - 1]?.deref();
|
|
44
|
+
}
|
|
45
|
+
function lt(e) {
|
|
46
|
+
return e ? se(e) ? e : Me(e)[0] || e : null;
|
|
47
|
+
}
|
|
48
|
+
function Ie(e, h) {
|
|
49
|
+
if (e.hasAttribute("tabindex") && !e.hasAttribute("data-tabindex") || !h.current.includes("floating") && !e.getAttribute("role")?.includes("dialog"))
|
|
50
|
+
return;
|
|
51
|
+
const I = Be(e).filter((q) => {
|
|
52
|
+
const U = q.getAttribute("data-tabindex") || "";
|
|
53
|
+
return se(q) || q.hasAttribute("data-tabindex") && !U.startsWith("-");
|
|
54
|
+
}), c = e.getAttribute("tabindex");
|
|
55
|
+
h.current.includes("floating") || I.length === 0 ? c !== "0" && e.setAttribute("tabindex", "0") : (c !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
|
|
56
|
+
}
|
|
57
|
+
function Vt(e) {
|
|
58
|
+
const {
|
|
59
|
+
context: h,
|
|
60
|
+
children: I,
|
|
61
|
+
disabled: c = !1,
|
|
62
|
+
initialFocus: q = !0,
|
|
63
|
+
returnFocus: U = !0,
|
|
64
|
+
restoreFocus: z = !1,
|
|
65
|
+
modal: R = !0,
|
|
66
|
+
closeOnFocusOut: D = !0,
|
|
67
|
+
openInteractionType: Se = "",
|
|
68
|
+
nextFocusableElement: V,
|
|
69
|
+
previousFocusableElement: G,
|
|
70
|
+
beforeContentFocusGuardRef: qe,
|
|
71
|
+
externalTree: we,
|
|
72
|
+
getInsideElements: Ke
|
|
73
|
+
} = e, T = "rootStore" in h ? h.rootStore : h, $ = T.useState("open"), f = T.useState("domReferenceElement"), i = T.useState("floatingElement"), {
|
|
74
|
+
events: J,
|
|
75
|
+
dataRef: M
|
|
76
|
+
} = T.context, w = re(() => M.current.floatingContext?.nodeId), ae = q === !1, F = ye(f) && ae, K = g.useRef(["content"]), ie = te(q), Q = te(U), ce = te(Se), E = nt(we), u = rt(), x = g.useRef(!1), L = g.useRef(!1), X = g.useRef(!1), fe = g.useRef(null), le = g.useRef(""), Y = g.useRef(""), Z = g.useRef(null), B = g.useRef(null), Pe = Ee(Z, qe, u?.beforeInsideRef), We = Ee(B, u?.afterInsideRef), de = xe(), me = xe(), pe = Ue(), De = u != null, n = he(i), k = re((t = n) => t ? Me(t) : []), A = re(() => Ke?.().filter((t) => t != null) ?? []);
|
|
77
|
+
g.useEffect(() => {
|
|
78
|
+
if (c || !R)
|
|
79
|
+
return;
|
|
80
|
+
function t(m) {
|
|
81
|
+
m.key === "Tab" && l(n, W(O(n))) && k().length === 0 && !F && Xe(m);
|
|
82
|
+
}
|
|
83
|
+
const d = O(n);
|
|
84
|
+
return y(d, "keydown", t);
|
|
85
|
+
}, [c, f, n, R, K, F, k]), g.useEffect(() => {
|
|
86
|
+
if (c || !$)
|
|
87
|
+
return;
|
|
88
|
+
const t = O(n);
|
|
89
|
+
function d() {
|
|
90
|
+
X.current = !1;
|
|
91
|
+
}
|
|
92
|
+
function m(r) {
|
|
93
|
+
const o = _(r), a = A(), s = l(i, o) || l(f, o) || l(u?.portalNode, o) || a.some((S) => S === o || l(S, o));
|
|
94
|
+
X.current = !s, Y.current = r.pointerType || "keyboard", o?.closest(`[${ot}]`) && (L.current = !0);
|
|
95
|
+
}
|
|
96
|
+
function b() {
|
|
97
|
+
Y.current = "keyboard";
|
|
98
|
+
}
|
|
99
|
+
return $e(y(t, "pointerdown", m, !0), y(t, "pointerup", d, !0), y(t, "pointercancel", d, !0), y(t, "keydown", b, !0));
|
|
100
|
+
}, [c, i, f, n, $, u, A]), g.useEffect(() => {
|
|
101
|
+
if (c || !D)
|
|
102
|
+
return;
|
|
103
|
+
const t = O(n);
|
|
104
|
+
function d() {
|
|
105
|
+
L.current = !0, me.start(0, () => {
|
|
106
|
+
L.current = !1;
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
function m(a) {
|
|
110
|
+
const s = _(a);
|
|
111
|
+
se(s) && (fe.current = s);
|
|
112
|
+
}
|
|
113
|
+
function b(a) {
|
|
114
|
+
const s = a.relatedTarget, S = a.currentTarget, v = _(a);
|
|
115
|
+
queueMicrotask(() => {
|
|
116
|
+
const j = w(), ge = T.context.triggerElements, Ve = A(), Ge = s?.hasAttribute(Ae("focus-guard")) && [Z.current, B.current, u?.beforeInsideRef.current, u?.afterInsideRef.current, u?.beforeOutsideRef.current, u?.afterOutsideRef.current, C(G), C(V)].includes(s), He = !(l(f, s) || l(i, s) || l(s, i) || l(u?.portalNode, s) || Ve.some((p) => p === s || l(p, s)) || s != null && ge.hasElement(s) || ge.hasMatchingElement((p) => l(p, s)) || Ge || E && (ke(E.nodesRef.current, j).find((p) => l(p.context?.elements.floating, s) || l(p.context?.elements.domReference, s)) || Fe(E.nodesRef.current, j).find((p) => [p.context?.elements.floating, he(p.context?.elements.floating)].includes(s) || p.context?.elements.domReference === s)));
|
|
117
|
+
if (S === f && n && Ie(n, K), z && S !== f && !et(v) && W(t) === t.body) {
|
|
118
|
+
if (P(n) && (n.focus(), z === "popup")) {
|
|
119
|
+
pe.request(() => {
|
|
120
|
+
n.focus();
|
|
121
|
+
});
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
const p = k(), ee = fe.current, Re = (ee && p.includes(ee) ? ee : null) || p[p.length - 1] || n;
|
|
125
|
+
P(Re) && Re.focus();
|
|
126
|
+
}
|
|
127
|
+
if (M.current.insideReactTree) {
|
|
128
|
+
M.current.insideReactTree = !1;
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
(F || !R) && s && He && !L.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
|
|
132
|
+
// For an "untrapped" typeable combobox (input role=combobox with
|
|
133
|
+
// initialFocus=false), re-opening the popup and tabbing out should still close it even
|
|
134
|
+
// when the previously focused element (e.g. the next tabbable outside the popup) is
|
|
135
|
+
// focused again. Otherwise, the popup remains open on the second Tab sequence:
|
|
136
|
+
// click input -> Tab (closes) -> click input -> Tab.
|
|
137
|
+
// Allow closing when `isUntrappedTypeableCombobox` regardless of the previously focused element.
|
|
138
|
+
(F || s !== oe()) && (x.current = !0, T.setOpen(!1, tt(it, a)));
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
function r() {
|
|
142
|
+
X.current || (M.current.insideReactTree = !0, de.start(0, () => {
|
|
143
|
+
M.current.insideReactTree = !1;
|
|
144
|
+
}));
|
|
145
|
+
}
|
|
146
|
+
const o = P(f) ? f : null;
|
|
147
|
+
if (!(!i && !o))
|
|
148
|
+
return $e(o && y(o, "focusout", b), o && y(o, "pointerdown", d), i && y(i, "focusin", m), i && y(i, "focusout", b), i && u && y(i, "focusout", r, !0));
|
|
149
|
+
}, [c, f, i, n, R, E, u, T, D, z, k, F, w, K, M, de, me, pe, V, G, A]), g.useEffect(() => {
|
|
150
|
+
if (c || !i || !$)
|
|
151
|
+
return;
|
|
152
|
+
const t = Array.from(u?.portalNode?.querySelectorAll(`[${Ae("portal")}]`) || []), d = (E ? Fe(E.nodesRef.current, w()) : []).find((a) => ye(a.context?.elements.domReference || null))?.context?.elements.domReference, m = [i, ...t, Z.current, B.current, u?.beforeOutsideRef.current, u?.afterOutsideRef.current, ...A(), d, C(G), C(V), F ? f : null].filter((a) => a != null), b = Oe(m, {
|
|
153
|
+
ariaHidden: R || F,
|
|
154
|
+
mark: !1
|
|
155
|
+
}), r = [i, ...t].filter((a) => a != null), o = Oe(r);
|
|
156
|
+
return () => {
|
|
157
|
+
o(), b();
|
|
158
|
+
};
|
|
159
|
+
}, [$, c, f, i, R, K, u, F, E, w, V, G, A]), H(() => {
|
|
160
|
+
if (!$ || c || !P(n))
|
|
161
|
+
return;
|
|
162
|
+
const t = O(n), d = W(t);
|
|
163
|
+
queueMicrotask(() => {
|
|
164
|
+
const m = ie.current, b = typeof m == "function" ? m(ce.current || "") : m;
|
|
165
|
+
if (b === void 0 || b === !1 || l(n, d))
|
|
166
|
+
return;
|
|
167
|
+
let r = null;
|
|
168
|
+
const o = () => (r == null && (r = k(n)), r[0] || n);
|
|
169
|
+
let a;
|
|
170
|
+
b === !0 || b === null ? a = o() : a = C(b), a = a || o(), ne(a, {
|
|
171
|
+
preventScroll: a === n
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
}, [c, $, n, ae, k, ie, ce]), H(() => {
|
|
175
|
+
if (c || !n)
|
|
176
|
+
return;
|
|
177
|
+
const t = O(n), d = W(t);
|
|
178
|
+
ft(d);
|
|
179
|
+
function m(r) {
|
|
180
|
+
if (r.open || (le.current = ct(r.nativeEvent, Y.current)), r.reason === ut && r.nativeEvent.type === "mouseleave" && (x.current = !0), r.reason === at)
|
|
181
|
+
if (r.nested)
|
|
182
|
+
x.current = !1;
|
|
183
|
+
else if (Je(r.nativeEvent) || Qe(r.nativeEvent))
|
|
184
|
+
x.current = !1;
|
|
185
|
+
else {
|
|
186
|
+
let o = !1;
|
|
187
|
+
O(n).createElement("div").focus({
|
|
188
|
+
get preventScroll() {
|
|
189
|
+
return o = !0, !1;
|
|
190
|
+
}
|
|
191
|
+
}), o ? x.current = !1 : x.current = !0;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
J.on("openchange", m);
|
|
195
|
+
function b() {
|
|
196
|
+
const r = Q.current;
|
|
197
|
+
let o = typeof r == "function" ? r(le.current) : r;
|
|
198
|
+
if (o === void 0 || o === !1)
|
|
199
|
+
return null;
|
|
200
|
+
if (o === null && (o = !0), typeof o == "boolean") {
|
|
201
|
+
const s = f || oe();
|
|
202
|
+
return s && s.isConnected ? s : null;
|
|
203
|
+
}
|
|
204
|
+
const a = f || oe();
|
|
205
|
+
return C(o) || a || null;
|
|
206
|
+
}
|
|
207
|
+
return () => {
|
|
208
|
+
J.off("openchange", m);
|
|
209
|
+
const r = W(t), o = A(), a = l(i, r) || o.some((v) => v === r || l(v, r)) || E && ke(E.nodesRef.current, w(), !1).some((v) => l(v.context?.elements.floating, r)), s = Q.current, S = b();
|
|
210
|
+
queueMicrotask(() => {
|
|
211
|
+
const v = lt(S), j = typeof s != "boolean";
|
|
212
|
+
s && !x.current && P(v) && // If the focus moved somewhere else after mount, avoid returning focus
|
|
213
|
+
// since it likely entered a different element which should be
|
|
214
|
+
// respected: https://github.com/floating-ui/floating-ui/issues/2607
|
|
215
|
+
(!(!j && v !== r && r !== t.body) || a) && v.focus({
|
|
216
|
+
preventScroll: !0
|
|
217
|
+
}), x.current = !1;
|
|
218
|
+
});
|
|
219
|
+
};
|
|
220
|
+
}, [c, i, n, Q, M, J, E, f, w, A]), H(() => {
|
|
221
|
+
if (!_e || $ || !i)
|
|
222
|
+
return;
|
|
223
|
+
const t = W(O(i));
|
|
224
|
+
!P(t) || !ze(t) || l(i, t) && t.blur();
|
|
225
|
+
}, [$, i]), H(() => {
|
|
226
|
+
if (!(c || !u))
|
|
227
|
+
return u.setFocusManagerState({
|
|
228
|
+
modal: R,
|
|
229
|
+
closeOnFocusOut: D,
|
|
230
|
+
open: $,
|
|
231
|
+
onOpenChange: T.setOpen,
|
|
232
|
+
domReference: f
|
|
233
|
+
}), () => {
|
|
234
|
+
u.setFocusManagerState(null);
|
|
235
|
+
};
|
|
236
|
+
}, [c, u, R, $, T, D, f]), H(() => {
|
|
237
|
+
if (!(c || !n))
|
|
238
|
+
return Ie(n, K), () => {
|
|
239
|
+
queueMicrotask(ue);
|
|
240
|
+
};
|
|
241
|
+
}, [c, n, K]);
|
|
242
|
+
const be = !c && (R ? !F : !0) && (De || R);
|
|
243
|
+
return /* @__PURE__ */ st(g.Fragment, {
|
|
244
|
+
children: [be && /* @__PURE__ */ Ce(ve, {
|
|
245
|
+
"data-type": "inside",
|
|
246
|
+
ref: Pe,
|
|
247
|
+
onFocus: (t) => {
|
|
248
|
+
if (R) {
|
|
249
|
+
const d = k();
|
|
250
|
+
ne(d[d.length - 1]);
|
|
251
|
+
} else u?.portalNode && (x.current = !1, Te(t, u.portalNode) ? Ye(f)?.focus() : C(G ?? u.beforeOutsideRef)?.focus());
|
|
252
|
+
}
|
|
253
|
+
}), I, be && /* @__PURE__ */ Ce(ve, {
|
|
254
|
+
"data-type": "inside",
|
|
255
|
+
ref: We,
|
|
256
|
+
onFocus: (t) => {
|
|
257
|
+
R ? ne(k()[0]) : u?.portalNode && (D && (x.current = !0), Te(t, u.portalNode) ? Ze(f)?.focus() : C(V ?? u.afterOutsideRef)?.focus());
|
|
258
|
+
}
|
|
259
|
+
})]
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
export {
|
|
263
|
+
Vt as FloatingFocusManager
|
|
264
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import * as h from "react-dom";
|
|
3
|
+
import { isNode as _ } from "../../../../../@floating-ui/utils/dist/floating-ui.utils.dom-BULZuLW5.js";
|
|
4
|
+
import { addEventListener as C } from "../../../../utils/esm/addEventListener-DnnRp2CB.js";
|
|
5
|
+
import { mergeCleanups as D } from "../../../../utils/esm/mergeCleanups-vij8IUwv.js";
|
|
6
|
+
import { useId as M } from "../../../../utils/esm/useId-D8NyJjt3.js";
|
|
7
|
+
import { useIsoLayoutEffect as j } from "../../../../utils/esm/useIsoLayoutEffect-oOMudEAz.js";
|
|
8
|
+
import { useStableCallback as w } from "../../../../utils/esm/useStableCallback-DyHa2qMJ.js";
|
|
9
|
+
import { EMPTY_OBJECT as q } from "../../../../utils/esm/empty-C3-x9M2q.js";
|
|
10
|
+
import { FocusGuard as x } from "../../utils/FocusGuard-BkeVKSkX.js";
|
|
11
|
+
import { enableFocusInside as I, isOutsideEvent as $, getPreviousTabbable as G, getNextTabbable as L, disableFocusInside as W } from "../utils/tabbable-BUkXLKOZ.js";
|
|
12
|
+
import { createChangeEventDetails as k } from "../../internals/createBaseUIEventDetails-WO93mcXE.js";
|
|
13
|
+
import { createAttribute as A } from "../utils/createAttribute-DQjmnndx.js";
|
|
14
|
+
import { useRenderElement as B } from "../../internals/useRenderElement-CktkgllD.js";
|
|
15
|
+
import { ownerVisuallyHidden as H } from "../../internals/constants-DrTrmCr_.js";
|
|
16
|
+
import { jsxs as S, jsx as g } from "react/jsx-runtime";
|
|
17
|
+
import { focusOut as J } from "../../internals/reason-parts-DKJ_-O8k.js";
|
|
18
|
+
const v = /* @__PURE__ */ r.createContext(null);
|
|
19
|
+
process.env.NODE_ENV !== "production" && (v.displayName = "PortalContext");
|
|
20
|
+
const U = () => r.useContext(v), X = A("portal");
|
|
21
|
+
function Y(m = {}) {
|
|
22
|
+
const {
|
|
23
|
+
ref: R,
|
|
24
|
+
container: s,
|
|
25
|
+
componentProps: P = q,
|
|
26
|
+
elementProps: y
|
|
27
|
+
} = m, d = M(), f = U()?.portalNode, [E, c] = r.useState(null), [e, l] = r.useState(null), p = w((o) => {
|
|
28
|
+
o !== null && l(o);
|
|
29
|
+
}), n = r.useRef(null);
|
|
30
|
+
j(() => {
|
|
31
|
+
if (s === null) {
|
|
32
|
+
n.current && (n.current = null, l(null), c(null));
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (d == null)
|
|
36
|
+
return;
|
|
37
|
+
const o = (s && (_(s) ? s : s.current)) ?? f ?? document.body;
|
|
38
|
+
if (o == null) {
|
|
39
|
+
n.current && (n.current = null, l(null), c(null));
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
n.current !== o && (n.current = o, l(null), c(o));
|
|
43
|
+
}, [s, f, d]);
|
|
44
|
+
const i = B("div", P, {
|
|
45
|
+
ref: [R, p],
|
|
46
|
+
props: [{
|
|
47
|
+
id: d,
|
|
48
|
+
[X]: ""
|
|
49
|
+
}, y]
|
|
50
|
+
});
|
|
51
|
+
return {
|
|
52
|
+
portalNode: e,
|
|
53
|
+
portalSubtree: E && i ? /* @__PURE__ */ h.createPortal(i, E) : null
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
const Z = /* @__PURE__ */ r.forwardRef(function(m, R) {
|
|
57
|
+
const {
|
|
58
|
+
children: s,
|
|
59
|
+
container: P,
|
|
60
|
+
className: y,
|
|
61
|
+
render: d,
|
|
62
|
+
renderGuards: f,
|
|
63
|
+
style: E,
|
|
64
|
+
...c
|
|
65
|
+
} = m, {
|
|
66
|
+
portalNode: e,
|
|
67
|
+
portalSubtree: l
|
|
68
|
+
} = Y({
|
|
69
|
+
container: P,
|
|
70
|
+
ref: R,
|
|
71
|
+
componentProps: m,
|
|
72
|
+
elementProps: c
|
|
73
|
+
}), p = r.useRef(null), n = r.useRef(null), i = r.useRef(null), o = r.useRef(null), [t, T] = r.useState(null), b = r.useRef(!1), F = t?.modal, O = t?.open, N = typeof f == "boolean" ? f : !!t && !t.modal && t.open && !!e;
|
|
74
|
+
r.useEffect(() => {
|
|
75
|
+
if (!e || F)
|
|
76
|
+
return;
|
|
77
|
+
function u(a) {
|
|
78
|
+
e && a.relatedTarget && $(a) && (a.type === "focusin" ? b.current && (I(e), b.current = !1) : (W(e), b.current = !0));
|
|
79
|
+
}
|
|
80
|
+
return D(C(e, "focusin", u, !0), C(e, "focusout", u, !0));
|
|
81
|
+
}, [e, F]), r.useEffect(() => {
|
|
82
|
+
!e || O !== !1 || (I(e), b.current = !1);
|
|
83
|
+
}, [O, e]);
|
|
84
|
+
const V = r.useMemo(() => ({
|
|
85
|
+
beforeOutsideRef: p,
|
|
86
|
+
afterOutsideRef: n,
|
|
87
|
+
beforeInsideRef: i,
|
|
88
|
+
afterInsideRef: o,
|
|
89
|
+
portalNode: e,
|
|
90
|
+
setFocusManagerState: T
|
|
91
|
+
}), [e]);
|
|
92
|
+
return /* @__PURE__ */ S(r.Fragment, {
|
|
93
|
+
children: [l, /* @__PURE__ */ S(v.Provider, {
|
|
94
|
+
value: V,
|
|
95
|
+
children: [N && e && /* @__PURE__ */ g(x, {
|
|
96
|
+
"data-type": "outside",
|
|
97
|
+
ref: p,
|
|
98
|
+
onFocus: (u) => {
|
|
99
|
+
if ($(u, e))
|
|
100
|
+
i.current?.focus();
|
|
101
|
+
else {
|
|
102
|
+
const a = t ? t.domReference : null;
|
|
103
|
+
G(a)?.focus();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}), N && e && /* @__PURE__ */ g("span", {
|
|
107
|
+
"aria-owns": e.id,
|
|
108
|
+
style: H
|
|
109
|
+
}), e && /* @__PURE__ */ h.createPortal(s, e), N && e && /* @__PURE__ */ g(x, {
|
|
110
|
+
"data-type": "outside",
|
|
111
|
+
ref: n,
|
|
112
|
+
onFocus: (u) => {
|
|
113
|
+
if ($(u, e))
|
|
114
|
+
o.current?.focus();
|
|
115
|
+
else {
|
|
116
|
+
const a = t ? t.domReference : null;
|
|
117
|
+
L(a)?.focus(), t?.closeOnFocusOut && t?.onOpenChange(!1, k(J, u.nativeEvent));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
})]
|
|
121
|
+
})]
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
process.env.NODE_ENV !== "production" && (Z.displayName = "FloatingPortal");
|
|
125
|
+
export {
|
|
126
|
+
Z as FloatingPortal,
|
|
127
|
+
Y as useFloatingPortalNode,
|
|
128
|
+
U as usePortalContext
|
|
129
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { createEventEmitter as a } from "../utils/createEventEmitter-156NFNq-.js";
|
|
2
|
+
import { ReactStore as l } from "../../../../utils/esm/store/ReactStore-CfPgecP0.js";
|
|
3
|
+
import { isClickLikeEvent as p } from "../utils/event-BJf3Eroa.js";
|
|
4
|
+
import { createSelector as o } from "../../../../utils/esm/store/createSelector-SDRl3LYE.js";
|
|
5
|
+
const m = {
|
|
6
|
+
open: o((t) => t.open),
|
|
7
|
+
transitionStatus: o((t) => t.transitionStatus),
|
|
8
|
+
domReferenceElement: o((t) => t.domReferenceElement),
|
|
9
|
+
referenceElement: o((t) => t.positionReference ?? t.referenceElement),
|
|
10
|
+
floatingElement: o((t) => t.floatingElement),
|
|
11
|
+
floatingId: o((t) => t.floatingId)
|
|
12
|
+
};
|
|
13
|
+
class d extends l {
|
|
14
|
+
constructor(n) {
|
|
15
|
+
const {
|
|
16
|
+
syncOnly: e,
|
|
17
|
+
nested: r,
|
|
18
|
+
onOpenChange: i,
|
|
19
|
+
triggerElements: c,
|
|
20
|
+
...s
|
|
21
|
+
} = n;
|
|
22
|
+
super({
|
|
23
|
+
...s,
|
|
24
|
+
positionReference: s.referenceElement,
|
|
25
|
+
domReferenceElement: s.referenceElement
|
|
26
|
+
}, {
|
|
27
|
+
onOpenChange: i,
|
|
28
|
+
dataRef: {
|
|
29
|
+
current: {}
|
|
30
|
+
},
|
|
31
|
+
events: a(),
|
|
32
|
+
nested: r,
|
|
33
|
+
triggerElements: c
|
|
34
|
+
}, m), this.syncOnly = e;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Syncs the event used by hover logic to distinguish hover-open from click-like interaction.
|
|
38
|
+
*/
|
|
39
|
+
syncOpenEvent = (n, e) => {
|
|
40
|
+
(!n || !this.state.open || // Prevent a pending hover-open from overwriting a click-open event, while allowing
|
|
41
|
+
// click events to upgrade a hover-open.
|
|
42
|
+
e != null && p(e)) && (this.context.dataRef.current.openEvent = n ? e : void 0);
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Runs the root-owned side effects for an open state change.
|
|
46
|
+
*/
|
|
47
|
+
dispatchOpenChange = (n, e) => {
|
|
48
|
+
this.syncOpenEvent(n, e.event);
|
|
49
|
+
const r = {
|
|
50
|
+
open: n,
|
|
51
|
+
reason: e.reason,
|
|
52
|
+
nativeEvent: e.event,
|
|
53
|
+
nested: this.context.nested,
|
|
54
|
+
triggerElement: e.trigger
|
|
55
|
+
};
|
|
56
|
+
this.context.events.emit("openchange", r);
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Emits the `openchange` event through the internal event emitter and calls the `onOpenChange` handler with the provided arguments.
|
|
60
|
+
*
|
|
61
|
+
* @param newOpen The new open state.
|
|
62
|
+
* @param eventDetails Details about the event that triggered the open state change.
|
|
63
|
+
*/
|
|
64
|
+
setOpen = (n, e) => {
|
|
65
|
+
if (this.syncOnly) {
|
|
66
|
+
this.context.onOpenChange?.(n, e);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
this.dispatchOpenChange(n, e), this.context.onOpenChange?.(n, e);
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
d as FloatingRootStore
|
|
74
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import "../../../../utils/esm/useId-D8NyJjt3.js";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
const t = /* @__PURE__ */ e.createContext(null);
|
|
5
|
+
process.env.NODE_ENV !== "production" && (t.displayName = "FloatingNodeContext");
|
|
6
|
+
const o = /* @__PURE__ */ e.createContext(null);
|
|
7
|
+
process.env.NODE_ENV !== "production" && (o.displayName = "FloatingTreeContext");
|
|
8
|
+
const i = () => e.useContext(t)?.id || null, l = (n) => {
|
|
9
|
+
const s = e.useContext(o);
|
|
10
|
+
return n ?? s;
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
i as useFloatingParentNodeId,
|
|
14
|
+
l as useFloatingTree
|
|
15
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as T from "react";
|
|
2
|
+
import { useAnimationFrame as P } from "../../../../utils/esm/useAnimationFrame-C0av1dS7.js";
|
|
3
|
+
import { useTimeout as b } from "../../../../utils/esm/useTimeout-BPZmm8PE.js";
|
|
4
|
+
import { EMPTY_OBJECT as x } from "../../../../utils/esm/empty-C3-x9M2q.js";
|
|
5
|
+
import { isTypeableElement as L } from "../utils/element-7_beKIST.js";
|
|
6
|
+
import { isMouseLikePointerType as M, isClickLikeEvent as S } from "../utils/event-BJf3Eroa.js";
|
|
7
|
+
import { createChangeEventDetails as $ } from "../../internals/createBaseUIEventDetails-WO93mcXE.js";
|
|
8
|
+
import { getTarget as q } from "../../internals/shadowDom-DTBRPFkJ.js";
|
|
9
|
+
import { triggerPress as A } from "../../internals/reason-parts-DKJ_-O8k.js";
|
|
10
|
+
function j(v, R = {}) {
|
|
11
|
+
const e = "rootStore" in v ? v.rootStore : v, d = e.context.dataRef, {
|
|
12
|
+
enabled: w = !0,
|
|
13
|
+
event: a = "click",
|
|
14
|
+
toggle: E = !0,
|
|
15
|
+
ignoreMouse: k = !1,
|
|
16
|
+
stickIfOpen: O = !0,
|
|
17
|
+
touchOpenDelay: r = 0,
|
|
18
|
+
reason: m = A
|
|
19
|
+
} = R, s = T.useRef(void 0), y = P(), p = b(), h = T.useMemo(() => ({
|
|
20
|
+
onPointerDown(t) {
|
|
21
|
+
s.current = t.pointerType;
|
|
22
|
+
},
|
|
23
|
+
onMouseDown(t) {
|
|
24
|
+
const n = s.current, o = t.nativeEvent, c = e.select("open");
|
|
25
|
+
if (t.button !== 0 || a === "click" || M(n) && k)
|
|
26
|
+
return;
|
|
27
|
+
const f = d.current.openEvent, u = f?.type, l = e.select("domReferenceElement") !== t.currentTarget, g = c && l || !(c && E && (!(f && O) || u === "click" || u === "mousedown")), C = q(o);
|
|
28
|
+
if (L(C)) {
|
|
29
|
+
const i = $(m, o, C);
|
|
30
|
+
g && n === "touch" && r > 0 ? p.start(r, () => {
|
|
31
|
+
e.setOpen(!0, i);
|
|
32
|
+
}) : e.setOpen(g, i);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const D = t.currentTarget;
|
|
36
|
+
y.request(() => {
|
|
37
|
+
const i = $(m, o, D);
|
|
38
|
+
g && n === "touch" && r > 0 ? p.start(r, () => {
|
|
39
|
+
e.setOpen(!0, i);
|
|
40
|
+
}) : e.setOpen(g, i);
|
|
41
|
+
});
|
|
42
|
+
},
|
|
43
|
+
onClick(t) {
|
|
44
|
+
if (a === "mousedown-only")
|
|
45
|
+
return;
|
|
46
|
+
const n = s.current;
|
|
47
|
+
if (a === "mousedown" && n) {
|
|
48
|
+
s.current = void 0;
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (M(n) && k)
|
|
52
|
+
return;
|
|
53
|
+
const o = e.select("open"), c = d.current.openEvent, f = e.select("domReferenceElement") !== t.currentTarget, u = o && f || !(o && E && (!(c && O) || S(c))), l = $(m, t.nativeEvent, t.currentTarget);
|
|
54
|
+
u && n === "touch" && r > 0 ? p.start(r, () => {
|
|
55
|
+
e.setOpen(!0, l);
|
|
56
|
+
}) : e.setOpen(u, l);
|
|
57
|
+
},
|
|
58
|
+
onKeyDown() {
|
|
59
|
+
s.current = void 0;
|
|
60
|
+
}
|
|
61
|
+
}), [d, a, k, e, O, E, y, p, r, m]);
|
|
62
|
+
return T.useMemo(() => w ? {
|
|
63
|
+
reference: h
|
|
64
|
+
} : x, [w, h]);
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
j as useClick
|
|
68
|
+
};
|