@loczer/storefront-sdk 0.148.0 → 0.149.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/assets/dev.svg +4 -0
- package/dist/assets/playground-hero-preview.svg +4 -0
- package/dist/assets/whatsapp.svg +4 -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/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 +24 -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 +82 -0
- package/dist/lib/storefrontAvailability.js +54 -0
- package/dist/lib/storefrontImage.d.ts +9 -0
- package/dist/lib/storefrontImage.js +16 -0
- package/dist/lib/storefrontProducts.d.ts +369 -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 +103 -0
- package/dist/storefrontImage.d.ts +14 -0
- package/dist/storefrontProducts.d.ts +396 -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
package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/react/esm/utils/useSwipeDismiss-ZcIND0Ss.js
ADDED
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
import * as n from "react";
|
|
2
|
+
import { useStableCallback as fe } from "../../../utils/esm/useStableCallback-DyHa2qMJ.js";
|
|
3
|
+
import { ownerDocument as Xe } from "../../../utils/esm/owner-CfKP3-Rk.js";
|
|
4
|
+
import { hasScrollableAncestor as yt, findScrollableTouchTarget as Me } from "./scrollable-D1F6TRF5.js";
|
|
5
|
+
import { clamp as dt } from "../internals/clamp--orC6ThW.js";
|
|
6
|
+
import { getElementAtPoint as ht } from "./getElementAtPoint-CR7qt9tE.js";
|
|
7
|
+
import { contains as Ue, getTarget as _e } from "../internals/shadowDom-DTBRPFkJ.js";
|
|
8
|
+
import { getWindow as pt } from "../../../../@floating-ui/utils/dist/floating-ui.utils.dom-BULZuLW5.js";
|
|
9
|
+
const mt = 40, vt = 10, gt = 1, bt = 50, Be = 16, St = 80, wt = 'button,a,input,select,textarea,label,[role="button"]';
|
|
10
|
+
function ke(d, x, y) {
|
|
11
|
+
switch (d) {
|
|
12
|
+
case "up":
|
|
13
|
+
return -y;
|
|
14
|
+
case "down":
|
|
15
|
+
return y;
|
|
16
|
+
case "left":
|
|
17
|
+
return -x;
|
|
18
|
+
case "right":
|
|
19
|
+
return x;
|
|
20
|
+
default:
|
|
21
|
+
return 0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function Rt(d) {
|
|
25
|
+
const x = pt(d).getComputedStyle(d).transform;
|
|
26
|
+
let y = 0, p = 0, h = 1;
|
|
27
|
+
if (x && x !== "none") {
|
|
28
|
+
const A = x.match(/matrix(?:3d)?\(([^)]+)\)/);
|
|
29
|
+
if (A) {
|
|
30
|
+
const m = A[1].split(", ").map(parseFloat);
|
|
31
|
+
m.length === 6 ? (y = m[4], p = m[5], h = Math.sqrt(m[0] * m[0] + m[1] * m[1])) : m.length === 16 && (y = m[12], p = m[13], h = m[0]);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
x: y,
|
|
36
|
+
y: p,
|
|
37
|
+
scale: h
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function Te(d) {
|
|
41
|
+
return Number.isFinite(d) && d > 0 ? d : null;
|
|
42
|
+
}
|
|
43
|
+
function Et(d) {
|
|
44
|
+
return d % 2 === 1;
|
|
45
|
+
}
|
|
46
|
+
function De(d, x, y) {
|
|
47
|
+
const p = d[y];
|
|
48
|
+
if (typeof p == "function")
|
|
49
|
+
try {
|
|
50
|
+
p.call(d, x);
|
|
51
|
+
} catch (h) {
|
|
52
|
+
if (h && typeof h == "object" && "name" in h && h.name === "NotFoundError")
|
|
53
|
+
return;
|
|
54
|
+
throw h;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function Dt(d) {
|
|
58
|
+
const {
|
|
59
|
+
enabled: x,
|
|
60
|
+
directions: y,
|
|
61
|
+
elementRef: p,
|
|
62
|
+
movementCssVars: h,
|
|
63
|
+
canStart: A,
|
|
64
|
+
ignoreSelectorWhenTouch: m = !0,
|
|
65
|
+
ignoreScrollableAncestors: Ke = !1,
|
|
66
|
+
swipeThreshold: N,
|
|
67
|
+
onDismiss: Oe,
|
|
68
|
+
onProgress: Qe,
|
|
69
|
+
onCancel: Ze,
|
|
70
|
+
onSwipeStart: Ge,
|
|
71
|
+
onRelease: $e,
|
|
72
|
+
onSwipingChange: et,
|
|
73
|
+
trackDrag: Q = !0
|
|
74
|
+
} = d, tt = wt, Z = y.length === 1 ? y[0] : void 0, V = Math.max(0, typeof N == "number" ? N : mt), G = y.includes("left"), $ = y.includes("right"), ee = y.includes("up"), te = y.includes("down"), R = G || $, Y = ee || te, ze = n.useMemo(() => {
|
|
75
|
+
const e = [];
|
|
76
|
+
return Y && e.push("vertical"), R && e.push("horizontal"), e;
|
|
77
|
+
}, [R, Y]), [xe, F] = n.useState(void 0), [J, rt] = n.useState(!1), [nt, re] = n.useState(!1), [Ce, Ae] = n.useState(!1), [Fe, j] = n.useState({
|
|
78
|
+
x: 0,
|
|
79
|
+
y: 0
|
|
80
|
+
}), [Pe, We] = n.useState({
|
|
81
|
+
x: 0,
|
|
82
|
+
y: 0,
|
|
83
|
+
scale: 1
|
|
84
|
+
}), [ne, ue] = n.useState(null), q = n.useRef({
|
|
85
|
+
x: 0,
|
|
86
|
+
y: 0
|
|
87
|
+
}), D = n.useRef({
|
|
88
|
+
x: 0,
|
|
89
|
+
y: 0
|
|
90
|
+
}), U = n.useRef(null), g = n.useRef({
|
|
91
|
+
x: 0,
|
|
92
|
+
y: 0,
|
|
93
|
+
scale: 1
|
|
94
|
+
}), E = n.useRef(void 0), ye = n.useRef(0), ce = n.useRef(!1), v = n.useRef({
|
|
95
|
+
x: 0,
|
|
96
|
+
y: 0
|
|
97
|
+
}), oe = n.useRef(!1), de = n.useRef(!1), he = n.useRef(null), W = n.useRef(!1), _ = n.useRef(!1), pe = n.useRef({
|
|
98
|
+
width: 0,
|
|
99
|
+
height: 0
|
|
100
|
+
}), He = n.useRef(0), X = n.useRef(V), le = n.useRef(null), me = n.useRef(null), ve = n.useRef({
|
|
101
|
+
x: 0,
|
|
102
|
+
y: 0
|
|
103
|
+
}), ge = n.useRef(null), se = n.useRef(!1), ie = fe((e) => {
|
|
104
|
+
se.current !== e && (se.current = e, rt(e), et?.(e));
|
|
105
|
+
});
|
|
106
|
+
function Ie(e) {
|
|
107
|
+
if (!e)
|
|
108
|
+
return;
|
|
109
|
+
if (typeof N != "function") {
|
|
110
|
+
X.current = V;
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
const t = p.current;
|
|
114
|
+
if (!t)
|
|
115
|
+
return;
|
|
116
|
+
const r = N({
|
|
117
|
+
element: t,
|
|
118
|
+
direction: e
|
|
119
|
+
});
|
|
120
|
+
X.current = Math.max(0, r);
|
|
121
|
+
}
|
|
122
|
+
const S = fe((e, t) => {
|
|
123
|
+
const r = Number.isFinite(e) ? dt(e, 0, 1) : 0, i = r !== He.current;
|
|
124
|
+
let u = !1;
|
|
125
|
+
if (t) {
|
|
126
|
+
const l = ge.current;
|
|
127
|
+
u = !l || l.deltaX !== t.deltaX || l.deltaY !== t.deltaY || l.direction !== t.direction;
|
|
128
|
+
}
|
|
129
|
+
!i && !u || (He.current = r, t ? ge.current = t : i && (ge.current = null), Qe?.(r, t));
|
|
130
|
+
});
|
|
131
|
+
function Le(e, t) {
|
|
132
|
+
if (t === null)
|
|
133
|
+
return;
|
|
134
|
+
const r = me.current;
|
|
135
|
+
if (r && t > r.time) {
|
|
136
|
+
const i = Math.max(t - r.time, Be);
|
|
137
|
+
ve.current = {
|
|
138
|
+
x: (e.x - r.x) / i,
|
|
139
|
+
y: (e.y - r.y) / i
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
me.current = {
|
|
143
|
+
x: e.x,
|
|
144
|
+
y: e.y,
|
|
145
|
+
time: t
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
const ut = n.useCallback(() => {
|
|
149
|
+
F(void 0), ie(!1), re(!1), Ae(!1), j({
|
|
150
|
+
x: 0,
|
|
151
|
+
y: 0
|
|
152
|
+
}), We({
|
|
153
|
+
x: 0,
|
|
154
|
+
y: 0,
|
|
155
|
+
scale: 1
|
|
156
|
+
}), ue(null), S(0), X.current = V, q.current = {
|
|
157
|
+
x: 0,
|
|
158
|
+
y: 0
|
|
159
|
+
}, D.current = {
|
|
160
|
+
x: 0,
|
|
161
|
+
y: 0
|
|
162
|
+
}, g.current = {
|
|
163
|
+
x: 0,
|
|
164
|
+
y: 0,
|
|
165
|
+
scale: 1
|
|
166
|
+
}, E.current = void 0, ye.current = 0, ce.current = !1, v.current = {
|
|
167
|
+
x: 0,
|
|
168
|
+
y: 0
|
|
169
|
+
}, oe.current = !1, U.current = null, de.current = !1, he.current = null, W.current = !1, _.current = !1, pe.current = {
|
|
170
|
+
width: 0,
|
|
171
|
+
height: 0
|
|
172
|
+
}, le.current = null, me.current = null, ve.current = {
|
|
173
|
+
x: 0,
|
|
174
|
+
y: 0
|
|
175
|
+
}, ge.current = null;
|
|
176
|
+
}, [ie, V, S]);
|
|
177
|
+
n.useEffect(() => {
|
|
178
|
+
typeof N != "function" && (X.current = V);
|
|
179
|
+
}, [V, N]);
|
|
180
|
+
function Ne(e) {
|
|
181
|
+
if ("touches" in e) {
|
|
182
|
+
const t = e.touches[0];
|
|
183
|
+
return t ? {
|
|
184
|
+
x: t.clientX,
|
|
185
|
+
y: t.clientY
|
|
186
|
+
} : null;
|
|
187
|
+
}
|
|
188
|
+
return {
|
|
189
|
+
x: e.clientX,
|
|
190
|
+
y: e.clientY
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
function be(e) {
|
|
194
|
+
return "touches" in e ? !0 : e.pointerType === "touch";
|
|
195
|
+
}
|
|
196
|
+
function Ve(e, t) {
|
|
197
|
+
const r = Xe(p.current);
|
|
198
|
+
return ht(r, e.x, e.y) ?? _e(t);
|
|
199
|
+
}
|
|
200
|
+
function Ye(e, t) {
|
|
201
|
+
return R && !Y ? Me(e, t, "horizontal") : Y && !R ? Me(e, t, "vertical") : Me(e, t, "vertical") ?? Me(e, t, "horizontal");
|
|
202
|
+
}
|
|
203
|
+
function Je(e, t, r) {
|
|
204
|
+
W.current = !1;
|
|
205
|
+
const i = be(e), u = Ve(t, e.nativeEvent), l = Xe(p.current).body, s = i && l ? Ye(u, l) : null, f = r?.ignoreScrollableTarget ?? !1;
|
|
206
|
+
if (s && !f || (W.current = !!(s && f), (u ? u.closest(tt) : !1) && (!i || m)))
|
|
207
|
+
return !1;
|
|
208
|
+
const c = p.current;
|
|
209
|
+
if (Ke && c && u && ze.length > 0 && !(r?.ignoreScrollableAncestors ?? !1) && yt(u, c, ze))
|
|
210
|
+
return !1;
|
|
211
|
+
if (ce.current = !1, E.current = void 0, ye.current = 0, q.current = t, le.current = Te(e.timeStamp), v.current = t, U.current = t, c) {
|
|
212
|
+
pe.current = {
|
|
213
|
+
width: c.offsetWidth,
|
|
214
|
+
height: c.offsetHeight
|
|
215
|
+
}, Ie(Z);
|
|
216
|
+
const o = Rt(c);
|
|
217
|
+
g.current = o, D.current = {
|
|
218
|
+
x: o.x,
|
|
219
|
+
y: o.y
|
|
220
|
+
}, We(o), j({
|
|
221
|
+
x: o.x,
|
|
222
|
+
y: o.y
|
|
223
|
+
}), Le({
|
|
224
|
+
x: o.x,
|
|
225
|
+
y: o.y
|
|
226
|
+
}, le.current), "touches" in e || De(c, e.pointerId, "setPointerCapture");
|
|
227
|
+
}
|
|
228
|
+
return Ge?.(e.nativeEvent), ie(!0), re(!1), ue(null), oe.current = !0, S(0), !0;
|
|
229
|
+
}
|
|
230
|
+
function Se() {
|
|
231
|
+
we(), W.current = !1, U.current = null;
|
|
232
|
+
}
|
|
233
|
+
function we() {
|
|
234
|
+
de.current = !1, he.current = null;
|
|
235
|
+
}
|
|
236
|
+
function ct(e) {
|
|
237
|
+
if (Se(), !se.current)
|
|
238
|
+
return;
|
|
239
|
+
ie(!1), re(!1), ue(null);
|
|
240
|
+
const t = Q ? Pe : g.current;
|
|
241
|
+
D.current = {
|
|
242
|
+
x: t.x,
|
|
243
|
+
y: t.y
|
|
244
|
+
}, j({
|
|
245
|
+
x: t.x,
|
|
246
|
+
y: t.y
|
|
247
|
+
}), F(void 0), _.current = !1;
|
|
248
|
+
const r = p.current;
|
|
249
|
+
r && De(r, e.pointerId, "releasePointerCapture"), S(0, {
|
|
250
|
+
deltaX: 0,
|
|
251
|
+
deltaY: 0,
|
|
252
|
+
direction: void 0
|
|
253
|
+
}), Ze?.(e.nativeEvent);
|
|
254
|
+
}
|
|
255
|
+
function ot(e, t) {
|
|
256
|
+
const r = (s) => s >= 0 ? s ** 0.5 : -(Math.abs(s) ** 0.5), i = (s, f, c) => !f && s < 0 || !c && s > 0 ? r(s) : s, u = R ? i(e, G, $) : r(e), l = Y ? i(t, ee, te) : r(t);
|
|
257
|
+
return {
|
|
258
|
+
x: u,
|
|
259
|
+
y: l
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
function lt(e, t, r) {
|
|
263
|
+
const i = Math.abs(t), u = Math.abs(r);
|
|
264
|
+
if (Y && r !== 0 && (!R || u >= i)) {
|
|
265
|
+
const l = Math.max(0, e.scrollHeight - e.clientHeight), s = e.scrollTop <= 0, f = e.scrollTop >= l, c = r > 0, o = r < 0;
|
|
266
|
+
return c && s && te || o && f && ee;
|
|
267
|
+
}
|
|
268
|
+
if (R && t !== 0 && (!Y || i > u)) {
|
|
269
|
+
const l = Math.max(0, e.scrollWidth - e.clientWidth), s = e.scrollLeft <= 0, f = e.scrollLeft >= l, c = t > 0, o = t < 0;
|
|
270
|
+
return c && s && $ || o && f && G;
|
|
271
|
+
}
|
|
272
|
+
return null;
|
|
273
|
+
}
|
|
274
|
+
const Re = fe((e) => {
|
|
275
|
+
if (!x || e.defaultPrevented || e.nativeEvent.defaultPrevented || !("touches" in e) && e.button !== 0)
|
|
276
|
+
return;
|
|
277
|
+
const t = Ne(e);
|
|
278
|
+
!t || (de.current = !0, he.current = t, W.current = !1, _.current = !1, !(!A || A(t, {
|
|
279
|
+
nativeEvent: e.nativeEvent,
|
|
280
|
+
direction: Z
|
|
281
|
+
}))) || Je(e, t) && we();
|
|
282
|
+
});
|
|
283
|
+
function st(e, t, r) {
|
|
284
|
+
if (!x || !se.current)
|
|
285
|
+
return;
|
|
286
|
+
const i = _e(e.nativeEvent);
|
|
287
|
+
if (be(e) && !W.current) {
|
|
288
|
+
const b = e.currentTarget;
|
|
289
|
+
if (Ye(i, b))
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
if ("touches" in e || e.preventDefault(), oe.current) {
|
|
293
|
+
q.current = t;
|
|
294
|
+
const b = Te(e.timeStamp);
|
|
295
|
+
b !== null && (le.current = b), oe.current = !1;
|
|
296
|
+
}
|
|
297
|
+
const u = t.x, l = t.y, s = r.x, f = r.y;
|
|
298
|
+
(f < 0 && l > v.current.y || f > 0 && l < v.current.y) && (v.current = {
|
|
299
|
+
x: v.current.x,
|
|
300
|
+
y: l
|
|
301
|
+
}), (s < 0 && u > v.current.x || s > 0 && u < v.current.x) && (v.current = {
|
|
302
|
+
x: u,
|
|
303
|
+
y: v.current.y
|
|
304
|
+
});
|
|
305
|
+
const c = u - q.current.x, o = l - q.current.y, M = l - v.current.y, K = u - v.current.x;
|
|
306
|
+
if (!nt && Math.sqrt(c * c + o * o) >= gt && (re(!0), ne === null && R && Y)) {
|
|
307
|
+
const b = Math.abs(c), O = Math.abs(o);
|
|
308
|
+
ue(b > O ? "horizontal" : "vertical");
|
|
309
|
+
}
|
|
310
|
+
let a;
|
|
311
|
+
if (!E.current)
|
|
312
|
+
ne === "vertical" ? o > 0 ? a = "down" : o < 0 && (a = "up") : ne === "horizontal" ? c > 0 ? a = "right" : c < 0 && (a = "left") : Math.abs(c) >= Math.abs(o) ? a = c > 0 ? "right" : "left" : a = o > 0 ? "down" : "up", a && (a === "left" && G || a === "right" && $ || a === "up" && ee || a === "down" && te) && (E.current = a, ye.current = ke(a, c, o), F(a), Ie(a));
|
|
313
|
+
else {
|
|
314
|
+
const b = E.current, O = ke(b, K, M);
|
|
315
|
+
O > X.current ? (ce.current = !1, F(b)) : !(G && $) && !(ee && te) && ye.current - O >= vt && (ce.current = !0);
|
|
316
|
+
}
|
|
317
|
+
const ae = ot(c, o);
|
|
318
|
+
let k = g.current.x, T = g.current.y;
|
|
319
|
+
ne === "horizontal" ? R && (k += ae.x) : (ne === "vertical" || R && (k += ae.x), Y && (T += ae.y)), D.current = {
|
|
320
|
+
x: k,
|
|
321
|
+
y: T
|
|
322
|
+
}, Q && j({
|
|
323
|
+
x: k,
|
|
324
|
+
y: T
|
|
325
|
+
}), Le({
|
|
326
|
+
x: k,
|
|
327
|
+
y: T
|
|
328
|
+
}, Te(e.timeStamp));
|
|
329
|
+
const z = k - g.current.x, C = T - g.current.y, H = E.current, I = Z ?? E.current;
|
|
330
|
+
if (!I) {
|
|
331
|
+
S(0, {
|
|
332
|
+
deltaX: z,
|
|
333
|
+
deltaY: C,
|
|
334
|
+
direction: H
|
|
335
|
+
});
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
const P = I === "left" || I === "right" ? pe.current.width : pe.current.height, w = g.current.scale || 1;
|
|
339
|
+
if (P <= 0 || w <= 0) {
|
|
340
|
+
S(0, {
|
|
341
|
+
deltaX: z,
|
|
342
|
+
deltaY: C,
|
|
343
|
+
direction: H
|
|
344
|
+
});
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
const L = ke(I, k - g.current.x, T - g.current.y);
|
|
348
|
+
if (L <= 0) {
|
|
349
|
+
S(0, {
|
|
350
|
+
deltaX: z,
|
|
351
|
+
deltaY: C,
|
|
352
|
+
direction: H
|
|
353
|
+
});
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
S(L / (P * w), {
|
|
357
|
+
deltaX: z,
|
|
358
|
+
deltaY: C,
|
|
359
|
+
direction: H
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
const Ee = fe((e) => {
|
|
363
|
+
const t = Ne(e);
|
|
364
|
+
if (!t)
|
|
365
|
+
return;
|
|
366
|
+
if (!("touches" in e)) {
|
|
367
|
+
const u = Et(e.buttons);
|
|
368
|
+
u && (_.current = !0);
|
|
369
|
+
const l = e.buttons === 0 && _.current;
|
|
370
|
+
if (e.buttons !== 0 && !u || l) {
|
|
371
|
+
ct(e);
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
if (!J && de.current) {
|
|
376
|
+
if (!be(e) && (e.defaultPrevented || e.nativeEvent.defaultPrevented)) {
|
|
377
|
+
Se();
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
if (!A || A(t, {
|
|
381
|
+
nativeEvent: e.nativeEvent,
|
|
382
|
+
direction: Z
|
|
383
|
+
})) {
|
|
384
|
+
const u = he.current;
|
|
385
|
+
let l = !1;
|
|
386
|
+
if (be(e)) {
|
|
387
|
+
const s = p.current;
|
|
388
|
+
if (u && s) {
|
|
389
|
+
const f = Ve(t, e.nativeEvent), c = Xe(s).body, o = c ? Ye(f, c) : null;
|
|
390
|
+
if (o && (Ue(s, o) || Ue(o, s))) {
|
|
391
|
+
const M = t.x - u.x, K = t.y - u.y, a = lt(o, M, K);
|
|
392
|
+
if (a === !1)
|
|
393
|
+
return;
|
|
394
|
+
a === !0 && (l = !0);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
Je(e, t, {
|
|
399
|
+
ignoreScrollableTarget: l,
|
|
400
|
+
ignoreScrollableAncestors: l
|
|
401
|
+
}) && (u && l ? (we(), q.current = u, v.current = u, U.current = u, oe.current = !1) : (we(), W.current = !1));
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
const r = U.current, i = r === null ? {
|
|
405
|
+
x: 0,
|
|
406
|
+
y: 0
|
|
407
|
+
} : {
|
|
408
|
+
x: t.x - r.x,
|
|
409
|
+
y: t.y - r.y
|
|
410
|
+
};
|
|
411
|
+
U.current = t, st(e, t, i);
|
|
412
|
+
}), B = fe((e) => {
|
|
413
|
+
if (!x)
|
|
414
|
+
return;
|
|
415
|
+
const t = D.current, r = g.current, i = t.x - r.x, u = t.y - r.y, l = {
|
|
416
|
+
deltaX: i,
|
|
417
|
+
deltaY: u,
|
|
418
|
+
direction: xe ?? E.current
|
|
419
|
+
};
|
|
420
|
+
if (!se.current) {
|
|
421
|
+
Se(), S(0, l);
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
ie(!1), re(!1), ue(null), Se(), _.current = !1;
|
|
425
|
+
const s = p.current;
|
|
426
|
+
s && ("touches" in e || De(s, e.pointerId, "releasePointerCapture"));
|
|
427
|
+
const f = i, c = u, o = le.current, M = Te(e.timeStamp), K = o !== null && M !== null && M > o ? M - o : 0, a = K > 0 ? Math.max(K, bt) : 0, ae = a > 0 ? f / a : 0, k = a > 0 ? c / a : 0;
|
|
428
|
+
let T = ve.current.x, z = ve.current.y;
|
|
429
|
+
const C = me.current;
|
|
430
|
+
if (C && M !== null && M >= C.time) {
|
|
431
|
+
const L = M - C.time;
|
|
432
|
+
if (L <= St) {
|
|
433
|
+
const b = Math.max(L, Be), O = t.x - C.x, xt = t.y - C.y, je = O / b, qe = xt / b;
|
|
434
|
+
je !== 0 && (T = je), qe !== 0 && (z = qe);
|
|
435
|
+
} else
|
|
436
|
+
T = 0, z = 0;
|
|
437
|
+
}
|
|
438
|
+
const H = $e?.({
|
|
439
|
+
event: e.nativeEvent,
|
|
440
|
+
direction: xe ?? E.current,
|
|
441
|
+
deltaX: f,
|
|
442
|
+
deltaY: c,
|
|
443
|
+
velocityX: ae,
|
|
444
|
+
velocityY: k,
|
|
445
|
+
releaseVelocityX: T,
|
|
446
|
+
releaseVelocityY: z
|
|
447
|
+
}), I = typeof H == "boolean";
|
|
448
|
+
if (ce.current && !I) {
|
|
449
|
+
D.current = {
|
|
450
|
+
x: r.x,
|
|
451
|
+
y: r.y
|
|
452
|
+
}, j({
|
|
453
|
+
x: r.x,
|
|
454
|
+
y: r.y
|
|
455
|
+
}), F(void 0), S(0, l);
|
|
456
|
+
return;
|
|
457
|
+
}
|
|
458
|
+
let P = !1, w;
|
|
459
|
+
if (I)
|
|
460
|
+
P = H, w = xe ?? E.current ?? Z;
|
|
461
|
+
else
|
|
462
|
+
for (const L of y) {
|
|
463
|
+
switch (L) {
|
|
464
|
+
case "right":
|
|
465
|
+
f > X.current && (P = !0, w = "right");
|
|
466
|
+
break;
|
|
467
|
+
case "left":
|
|
468
|
+
f < -X.current && (P = !0, w = "left");
|
|
469
|
+
break;
|
|
470
|
+
case "down":
|
|
471
|
+
c > X.current && (P = !0, w = "down");
|
|
472
|
+
break;
|
|
473
|
+
case "up":
|
|
474
|
+
c < -X.current && (P = !0, w = "up");
|
|
475
|
+
break;
|
|
476
|
+
}
|
|
477
|
+
if (P)
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
480
|
+
P && w ? (F(w), Ae(!0), Oe?.(e.nativeEvent, {
|
|
481
|
+
direction: w
|
|
482
|
+
})) : (D.current = {
|
|
483
|
+
x: r.x,
|
|
484
|
+
y: r.y
|
|
485
|
+
}, j({
|
|
486
|
+
x: r.x,
|
|
487
|
+
y: r.y
|
|
488
|
+
}), F(void 0), S(0, l));
|
|
489
|
+
}), it = n.useCallback(() => {
|
|
490
|
+
const e = Q ? Fe : D.current, t = Q ? Pe : g.current;
|
|
491
|
+
if (!J && e.x === t.x && e.y === t.y && !Ce)
|
|
492
|
+
return {
|
|
493
|
+
[h.x]: "0px",
|
|
494
|
+
[h.y]: "0px"
|
|
495
|
+
};
|
|
496
|
+
const r = e.x - t.x, i = e.y - t.y;
|
|
497
|
+
return {
|
|
498
|
+
transition: J ? "none" : void 0,
|
|
499
|
+
// While swiping, freeze the element at its current visual transform so it doesn't snap to the
|
|
500
|
+
// end position.
|
|
501
|
+
transform: J ? `translateX(${e.x}px) translateY(${e.y}px) scale(${t.scale})` : void 0,
|
|
502
|
+
[h.x]: `${r}px`,
|
|
503
|
+
[h.y]: `${i}px`
|
|
504
|
+
};
|
|
505
|
+
}, [Ce, Fe, Pe, J, h, Q]), at = n.useCallback(() => x ? {
|
|
506
|
+
onPointerDown: Re,
|
|
507
|
+
onPointerMove: Ee,
|
|
508
|
+
onPointerUp: B,
|
|
509
|
+
onPointerCancel: B
|
|
510
|
+
} : {}, [x, B, Ee, Re]), ft = n.useCallback(() => x ? {
|
|
511
|
+
onTouchStart: Re,
|
|
512
|
+
onTouchMove: Ee,
|
|
513
|
+
onTouchEnd: B,
|
|
514
|
+
onTouchCancel: B
|
|
515
|
+
} : {}, [x, B, Ee, Re]);
|
|
516
|
+
return {
|
|
517
|
+
swiping: J,
|
|
518
|
+
swipeDirection: xe,
|
|
519
|
+
dragDismissed: Ce,
|
|
520
|
+
getPointerProps: at,
|
|
521
|
+
getTouchProps: ft,
|
|
522
|
+
getDragStyles: it,
|
|
523
|
+
reset: ut
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
export {
|
|
527
|
+
ke as getDisplacement,
|
|
528
|
+
Rt as getElementTransform,
|
|
529
|
+
Dt as useSwipeDismiss
|
|
530
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const a = typeof navigator < "u", o = e(), r = f(), n = u(), p = typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter:none"), m = (
|
|
2
|
+
// iPads can claim to be MacIntel
|
|
3
|
+
o.platform === "MacIntel" && o.maxTouchPoints > 1 ? !0 : /iP(hone|ad|od)|iOS/.test(o.platform)
|
|
4
|
+
), c = a && /apple/i.test(navigator.vendor), d = a && /android/i.test(r) || /android/i.test(n);
|
|
5
|
+
a && r.toLowerCase().startsWith("mac") && navigator.maxTouchPoints;
|
|
6
|
+
const g = n.includes("jsdom/");
|
|
7
|
+
function e() {
|
|
8
|
+
if (!a)
|
|
9
|
+
return {
|
|
10
|
+
platform: "",
|
|
11
|
+
maxTouchPoints: -1
|
|
12
|
+
};
|
|
13
|
+
const t = navigator.userAgentData;
|
|
14
|
+
return t?.platform ? {
|
|
15
|
+
platform: t.platform,
|
|
16
|
+
maxTouchPoints: navigator.maxTouchPoints
|
|
17
|
+
} : {
|
|
18
|
+
platform: navigator.platform ?? "",
|
|
19
|
+
maxTouchPoints: navigator.maxTouchPoints ?? -1
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function u() {
|
|
23
|
+
if (!a)
|
|
24
|
+
return "";
|
|
25
|
+
const t = navigator.userAgentData;
|
|
26
|
+
return t && Array.isArray(t.brands) ? t.brands.map(({
|
|
27
|
+
brand: i,
|
|
28
|
+
version: s
|
|
29
|
+
}) => `${i}/${s}`).join(" ") : navigator.userAgent;
|
|
30
|
+
}
|
|
31
|
+
function f() {
|
|
32
|
+
if (!a)
|
|
33
|
+
return "";
|
|
34
|
+
const t = navigator.userAgentData;
|
|
35
|
+
return t?.platform ? t.platform : navigator.platform ?? "";
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
d as isAndroid,
|
|
39
|
+
m as isIOS,
|
|
40
|
+
g as isJSDOM,
|
|
41
|
+
c as isSafari,
|
|
42
|
+
p as isWebKit
|
|
43
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
let e;
|
|
2
|
+
process.env.NODE_ENV !== "production" && (e = /* @__PURE__ */ new Set());
|
|
3
|
+
function n(...r) {
|
|
4
|
+
if (process.env.NODE_ENV !== "production") {
|
|
5
|
+
const o = r.join(" ");
|
|
6
|
+
e.has(o) || (e.add(o), console.error(`Base UI: ${o}`));
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
n as error
|
|
11
|
+
};
|
package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/formatErrorMessage-BJfWDcMI.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function n(a, s) {
|
|
2
|
+
return function(e, ...t) {
|
|
3
|
+
const r = new URL(a);
|
|
4
|
+
return r.searchParams.set("code", e.toString()), t.forEach((o) => r.searchParams.append("args[]", o)), `${s} error #${e}; visit ${r} for the full message.`;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
const c = n("https://base-ui.com/production-error", "Base UI");
|
|
8
|
+
export {
|
|
9
|
+
n as createFormatErrorMessage,
|
|
10
|
+
c as default
|
|
11
|
+
};
|
package/dist/chunks/pkg/ui/dist/node_modules/@base-ui/utils/esm/getReactElementRef-CB7CT3xn.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as n from "react";
|
|
2
|
+
import { isReactVersionAtLeast as o } from "./reactVersion-oVIlFc4q.js";
|
|
3
|
+
function a(e) {
|
|
4
|
+
if (!/* @__PURE__ */ n.isValidElement(e))
|
|
5
|
+
return null;
|
|
6
|
+
const r = e, t = r.props;
|
|
7
|
+
return (o(19) ? t?.ref : r.ref) ?? null;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
a as getReactElementRef
|
|
11
|
+
};
|