@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,265 @@
|
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { isWebKit as Ie, isElement as H, isShadowRoot as Ne, isLastTraversableNode as V, getParentNode as Ae, isHTMLElement as Be, getComputedStyle as Le } from "../../../../../@floating-ui/utils/dist/floating-ui.utils.dom-BULZuLW5.js";
|
|
3
|
+
import { addEventListener as u } from "../../../../utils/esm/addEventListener-DnnRp2CB.js";
|
|
4
|
+
import { mergeCleanups as Z } from "../../../../utils/esm/mergeCleanups-vij8IUwv.js";
|
|
5
|
+
import { useTimeout as pe, Timeout as me } from "../../../../utils/esm/useTimeout-BPZmm8PE.js";
|
|
6
|
+
import { useStableCallback as y } from "../../../../utils/esm/useStableCallback-DyHa2qMJ.js";
|
|
7
|
+
import { ownerDocument as de } from "../../../../utils/esm/owner-CfKP3-Rk.js";
|
|
8
|
+
import { isEventTargetWithin as f, isRootElement as qe } from "../utils/element-7_beKIST.js";
|
|
9
|
+
import { isReactEvent as Fe } from "../utils/event-BJf3Eroa.js";
|
|
10
|
+
import { getNodeChildren as ee } from "../utils/nodes-BbaFB8UD.js";
|
|
11
|
+
import { useFloatingTree as Ge } from "../components/FloatingTree-BJGeWpX5.js";
|
|
12
|
+
import { createChangeEventDetails as I } from "../../internals/createBaseUIEventDetails-WO93mcXE.js";
|
|
13
|
+
import { createAttribute as Je } from "../utils/createAttribute-DQjmnndx.js";
|
|
14
|
+
import { getTarget as te, contains as N } from "../../internals/shadowDom-DTBRPFkJ.js";
|
|
15
|
+
import { escapeKey as Qe, triggerPress as ge, outsidePress as Ue } from "../../internals/reason-parts-DKJ_-O8k.js";
|
|
16
|
+
const je = {
|
|
17
|
+
intentional: "onClick",
|
|
18
|
+
sloppy: "onPointerDown"
|
|
19
|
+
};
|
|
20
|
+
function ze() {
|
|
21
|
+
return !1;
|
|
22
|
+
}
|
|
23
|
+
function Ve(p) {
|
|
24
|
+
return {
|
|
25
|
+
escapeKey: typeof p == "boolean" ? p : p?.escapeKey ?? !1,
|
|
26
|
+
outsidePress: typeof p == "boolean" ? p : p?.outsidePress ?? !0
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function mt(p, Ee = {}) {
|
|
30
|
+
const n = "rootStore" in p ? p.rootStore : p, C = n.useState("open"), ne = n.useState("floatingElement"), {
|
|
31
|
+
dataRef: d
|
|
32
|
+
} = n.context, {
|
|
33
|
+
enabled: g = !0,
|
|
34
|
+
escapeKey: A = !0,
|
|
35
|
+
outsidePress: K = !0,
|
|
36
|
+
outsidePressEvent: he = "sloppy",
|
|
37
|
+
referencePress: ye = ze,
|
|
38
|
+
referencePressEvent: B = "sloppy",
|
|
39
|
+
bubbles: Re,
|
|
40
|
+
externalTree: be
|
|
41
|
+
} = Ee, R = Ge(be), we = y(typeof K == "function" ? K : () => !1), b = typeof K == "function" ? we : K, re = b !== !1, oe = y(() => he), M = l.useRef(!1), S = l.useRef(!1), v = l.useRef(!1), {
|
|
42
|
+
escapeKey: W,
|
|
43
|
+
outsidePress: se
|
|
44
|
+
} = Ve(Re), o = l.useRef(null), $ = pe(), ce = pe(), E = y(() => {
|
|
45
|
+
ce.clear(), d.current.insideReactTree = !1;
|
|
46
|
+
}), L = l.useRef(!1), q = l.useRef(""), F = y(ye), P = y((r) => {
|
|
47
|
+
if (!C || !g || !A || r.key !== "Escape" || L.current)
|
|
48
|
+
return;
|
|
49
|
+
const h = d.current.floatingContext?.nodeId, _ = R ? ee(R.nodesRef.current, h) : [];
|
|
50
|
+
if (!W && _.length > 0) {
|
|
51
|
+
let x = !0;
|
|
52
|
+
if (_.forEach((m) => {
|
|
53
|
+
m.context?.open && !m.context.dataRef.current.__escapeKeyBubbles && (x = !1);
|
|
54
|
+
}), !x)
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const U = Fe(r) ? r.nativeEvent : r, D = I(Qe, U);
|
|
58
|
+
n.setOpen(!1, D), !W && !D.isPropagationAllowed && r.stopPropagation();
|
|
59
|
+
}), w = y(() => {
|
|
60
|
+
d.current.insideReactTree = !0, ce.start(0, E);
|
|
61
|
+
});
|
|
62
|
+
l.useEffect(() => {
|
|
63
|
+
if (!C || !g)
|
|
64
|
+
return;
|
|
65
|
+
d.current.__escapeKeyBubbles = W, d.current.__outsidePressBubbles = se;
|
|
66
|
+
const r = new me(), h = new me();
|
|
67
|
+
function _() {
|
|
68
|
+
r.clear(), L.current = !0;
|
|
69
|
+
}
|
|
70
|
+
function U() {
|
|
71
|
+
r.start(
|
|
72
|
+
// 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
|
|
73
|
+
// Only apply to WebKit for the test to remain 0ms.
|
|
74
|
+
Ie() ? 5 : 0,
|
|
75
|
+
() => {
|
|
76
|
+
L.current = !1;
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
function D() {
|
|
81
|
+
v.current = !0, h.start(0, () => {
|
|
82
|
+
v.current = !1;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function x() {
|
|
86
|
+
M.current = !1, S.current = !1;
|
|
87
|
+
}
|
|
88
|
+
function m() {
|
|
89
|
+
const e = q.current, t = e === "pen" || !e ? "mouse" : e, s = oe(), c = typeof s == "function" ? s() : s;
|
|
90
|
+
return typeof c == "string" ? c : c[t];
|
|
91
|
+
}
|
|
92
|
+
function ve(e) {
|
|
93
|
+
const t = m();
|
|
94
|
+
return t === "intentional" && e.type !== "click" || t === "sloppy" && e.type === "click";
|
|
95
|
+
}
|
|
96
|
+
function ue(e) {
|
|
97
|
+
const t = d.current.floatingContext?.nodeId, s = R && ee(R.nodesRef.current, t).some((c) => f(e, c.context?.elements.floating));
|
|
98
|
+
return f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")) || s;
|
|
99
|
+
}
|
|
100
|
+
function X(e) {
|
|
101
|
+
if (ve(e)) {
|
|
102
|
+
E();
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (d.current.insideReactTree) {
|
|
106
|
+
E();
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
const t = te(e), s = `[${Je("inert")}]`, c = H(t) ? t.getRootNode() : null, k = Array.from((Ne(c) ? c : de(n.select("floatingElement"))).querySelectorAll(s)), ae = n.context.triggerElements;
|
|
110
|
+
if (t && (ae.hasElement(t) || ae.hasMatchingElement((i) => N(i, t))))
|
|
111
|
+
return;
|
|
112
|
+
let O = H(t) ? t : null;
|
|
113
|
+
for (; O && !V(O); ) {
|
|
114
|
+
const i = Ae(O);
|
|
115
|
+
if (V(i) || !H(i))
|
|
116
|
+
break;
|
|
117
|
+
O = i;
|
|
118
|
+
}
|
|
119
|
+
if (k.length && H(t) && !qe(t) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
120
|
+
!N(t, n.select("floatingElement")) && // If the target root element contains none of the markers, then the
|
|
121
|
+
// element was injected after the floating element rendered.
|
|
122
|
+
k.every((i) => !N(O, i)))
|
|
123
|
+
return;
|
|
124
|
+
if (Be(t) && !("touches" in e)) {
|
|
125
|
+
const i = V(t), T = Le(t), fe = /auto|scroll/, Ke = i || fe.test(T.overflowX), Se = i || fe.test(T.overflowY), We = Ke && t.clientWidth > 0 && t.scrollWidth > t.clientWidth, _e = Se && t.clientHeight > 0 && t.scrollHeight > t.clientHeight, Xe = T.direction === "rtl", Ye = _e && (Xe ? e.offsetX <= t.offsetWidth - t.clientWidth : e.offsetX > t.clientWidth), He = We && e.offsetY > t.clientHeight;
|
|
126
|
+
if (Ye || He)
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
if (ue(e))
|
|
130
|
+
return;
|
|
131
|
+
if (m() === "intentional" && v.current) {
|
|
132
|
+
h.clear(), v.current = !1;
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
if (typeof b == "function" && !b(e))
|
|
136
|
+
return;
|
|
137
|
+
const Oe = d.current.floatingContext?.nodeId, le = R ? ee(R.nodesRef.current, Oe) : [];
|
|
138
|
+
if (le.length > 0) {
|
|
139
|
+
let i = !0;
|
|
140
|
+
if (le.forEach((T) => {
|
|
141
|
+
T.context?.open && !T.context.dataRef.current.__outsidePressBubbles && (i = !1);
|
|
142
|
+
}), !i)
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
n.setOpen(!1, I(Ue, e)), E();
|
|
146
|
+
}
|
|
147
|
+
function Pe(e) {
|
|
148
|
+
m() !== "sloppy" || e.pointerType === "touch" || !n.select("open") || !g || f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")) || X(e);
|
|
149
|
+
}
|
|
150
|
+
function Te(e) {
|
|
151
|
+
if (m() !== "sloppy" || !n.select("open") || !g || f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")))
|
|
152
|
+
return;
|
|
153
|
+
const t = e.touches[0];
|
|
154
|
+
t && (o.current = {
|
|
155
|
+
startTime: Date.now(),
|
|
156
|
+
startX: t.clientX,
|
|
157
|
+
startY: t.clientY,
|
|
158
|
+
dismissOnTouchEnd: !1,
|
|
159
|
+
dismissOnMouseDown: !0
|
|
160
|
+
}, $.start(1e3, () => {
|
|
161
|
+
o.current && (o.current.dismissOnTouchEnd = !1, o.current.dismissOnMouseDown = !1);
|
|
162
|
+
}));
|
|
163
|
+
}
|
|
164
|
+
function Y(e, t) {
|
|
165
|
+
const s = te(e);
|
|
166
|
+
if (!s)
|
|
167
|
+
return;
|
|
168
|
+
const c = u(s, e.type, () => {
|
|
169
|
+
t(e), c();
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
function Ce(e) {
|
|
173
|
+
q.current = "touch", Y(e, Te);
|
|
174
|
+
}
|
|
175
|
+
function j(e) {
|
|
176
|
+
$.clear(), e.type === "pointerdown" && (q.current = e.pointerType), !(e.type === "mousedown" && o.current && !o.current.dismissOnMouseDown) && Y(e, (t) => {
|
|
177
|
+
t.type === "pointerdown" ? Pe(t) : X(t);
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
function z(e) {
|
|
181
|
+
if (!M.current)
|
|
182
|
+
return;
|
|
183
|
+
const t = S.current;
|
|
184
|
+
if (x(), m() === "intentional") {
|
|
185
|
+
if (e.type === "pointercancel") {
|
|
186
|
+
t && D();
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
if (!ue(e)) {
|
|
190
|
+
if (t) {
|
|
191
|
+
D();
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
typeof b == "function" && !b(e) || (h.clear(), v.current = !0, E());
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
function Me(e) {
|
|
199
|
+
if (m() !== "sloppy" || !o.current || f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")))
|
|
200
|
+
return;
|
|
201
|
+
const t = e.touches[0];
|
|
202
|
+
if (!t)
|
|
203
|
+
return;
|
|
204
|
+
const s = Math.abs(t.clientX - o.current.startX), c = Math.abs(t.clientY - o.current.startY), k = Math.sqrt(s * s + c * c);
|
|
205
|
+
k > 5 && (o.current.dismissOnTouchEnd = !0), k > 10 && (X(e), $.clear(), o.current = null);
|
|
206
|
+
}
|
|
207
|
+
function $e(e) {
|
|
208
|
+
Y(e, Me);
|
|
209
|
+
}
|
|
210
|
+
function De(e) {
|
|
211
|
+
m() !== "sloppy" || !o.current || f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")) || (o.current.dismissOnTouchEnd && X(e), $.clear(), o.current = null);
|
|
212
|
+
}
|
|
213
|
+
function xe(e) {
|
|
214
|
+
Y(e, De);
|
|
215
|
+
}
|
|
216
|
+
const a = de(ne), ke = Z(A && Z(u(a, "keydown", P), u(a, "compositionstart", _), u(a, "compositionend", U)), re && Z(u(a, "click", j, !0), u(a, "pointerdown", j, !0), u(a, "pointerup", z, !0), u(a, "pointercancel", z, !0), u(a, "mousedown", j, !0), u(a, "mouseup", z, !0), u(a, "touchstart", Ce, !0), u(a, "touchmove", $e, !0), u(a, "touchend", xe, !0)));
|
|
217
|
+
return () => {
|
|
218
|
+
ke(), r.clear(), h.clear(), x(), v.current = !1;
|
|
219
|
+
};
|
|
220
|
+
}, [d, ne, A, re, b, C, g, W, se, P, E, oe, R, n, $]), l.useEffect(E, [b, E]);
|
|
221
|
+
const G = l.useMemo(() => ({
|
|
222
|
+
onKeyDown: P,
|
|
223
|
+
[je[B]]: (r) => {
|
|
224
|
+
F() && n.setOpen(!1, I(ge, r.nativeEvent));
|
|
225
|
+
},
|
|
226
|
+
...B !== "intentional" && {
|
|
227
|
+
onClick(r) {
|
|
228
|
+
F() && n.setOpen(!1, I(ge, r.nativeEvent));
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}), [P, n, B, F]), J = y((r) => {
|
|
232
|
+
if (!C || !g || r.button !== 0)
|
|
233
|
+
return;
|
|
234
|
+
const h = te(r.nativeEvent);
|
|
235
|
+
N(n.select("floatingElement"), h) && (M.current || (M.current = !0, S.current = !1));
|
|
236
|
+
}), Q = y((r) => {
|
|
237
|
+
!C || !g || (r.defaultPrevented || r.nativeEvent.defaultPrevented) && M.current && (S.current = !0);
|
|
238
|
+
}), ie = l.useMemo(() => ({
|
|
239
|
+
onKeyDown: P,
|
|
240
|
+
// `onMouseDown` may be blocked if `event.preventDefault()` is called in
|
|
241
|
+
// `onPointerDown`, such as with <NumberField.ScrubArea>.
|
|
242
|
+
// See https://github.com/mui/base-ui/pull/3379
|
|
243
|
+
onPointerDown: Q,
|
|
244
|
+
onMouseDown: Q,
|
|
245
|
+
onClickCapture: w,
|
|
246
|
+
onMouseDownCapture(r) {
|
|
247
|
+
w(), J(r);
|
|
248
|
+
},
|
|
249
|
+
onPointerDownCapture(r) {
|
|
250
|
+
w(), J(r);
|
|
251
|
+
},
|
|
252
|
+
onMouseUpCapture: w,
|
|
253
|
+
onTouchEndCapture: w,
|
|
254
|
+
onTouchMoveCapture: w
|
|
255
|
+
}), [P, w, J, Q]);
|
|
256
|
+
return l.useMemo(() => g ? {
|
|
257
|
+
reference: G,
|
|
258
|
+
floating: ie,
|
|
259
|
+
trigger: G
|
|
260
|
+
} : {}, [g, G, ie]);
|
|
261
|
+
}
|
|
262
|
+
export {
|
|
263
|
+
Ve as normalizeProp,
|
|
264
|
+
mt as useDismiss
|
|
265
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { FOCUSABLE_ATTRIBUTE as E, ACTIVE_KEY as u, SELECTED_KEY as m } from "../utils/constants-B-72x4uQ.js";
|
|
3
|
+
function T(t = []) {
|
|
4
|
+
const i = t.map((o) => o?.reference), c = t.map((o) => o?.floating), s = t.map((o) => o?.item), n = t.map((o) => o?.trigger), e = l.useCallback(
|
|
5
|
+
(o) => g(o, t, "reference"),
|
|
6
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7
|
+
i
|
|
8
|
+
), r = l.useCallback(
|
|
9
|
+
(o) => g(o, t, "floating"),
|
|
10
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11
|
+
c
|
|
12
|
+
), a = l.useCallback(
|
|
13
|
+
(o) => g(o, t, "item"),
|
|
14
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
15
|
+
s
|
|
16
|
+
), f = l.useCallback(
|
|
17
|
+
(o) => g(o, t, "trigger"),
|
|
18
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
19
|
+
n
|
|
20
|
+
);
|
|
21
|
+
return l.useMemo(() => ({
|
|
22
|
+
getReferenceProps: e,
|
|
23
|
+
getFloatingProps: r,
|
|
24
|
+
getItemProps: a,
|
|
25
|
+
getTriggerProps: f
|
|
26
|
+
}), [e, r, a, f]);
|
|
27
|
+
}
|
|
28
|
+
function g(t, i, c) {
|
|
29
|
+
const s = /* @__PURE__ */ new Map(), n = c === "item", e = {};
|
|
30
|
+
c === "floating" && (e.tabIndex = -1, e[E] = "");
|
|
31
|
+
for (const r in t)
|
|
32
|
+
n && t && (r === u || r === m) || (e[r] = t[r]);
|
|
33
|
+
for (let r = 0; r < i.length; r += 1) {
|
|
34
|
+
let a;
|
|
35
|
+
const f = i[r]?.[c];
|
|
36
|
+
typeof f == "function" ? a = t ? f(t) : null : a = f, a && p(e, a, n, s);
|
|
37
|
+
}
|
|
38
|
+
return p(e, t, n, s), e;
|
|
39
|
+
}
|
|
40
|
+
function p(t, i, c, s) {
|
|
41
|
+
for (const n in i) {
|
|
42
|
+
const e = i[n];
|
|
43
|
+
c && (n === u || n === m) || (n.startsWith("on") ? (s.has(n) || s.set(n, []), typeof e == "function" && (s.get(n)?.push(e), t[n] = (...r) => s.get(n)?.map((a) => a(...r)).find((a) => a !== void 0))) : t[n] = e);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
T as useInteractions
|
|
48
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import { useId as E } from "../../../../utils/esm/useId-D8NyJjt3.js";
|
|
3
|
+
import { EMPTY_OBJECT as I } from "../../../../utils/esm/empty-C3-x9M2q.js";
|
|
4
|
+
import { getFloatingFocusElement as y } from "../utils/element-7_beKIST.js";
|
|
5
|
+
import { useFloatingParentNodeId as R } from "../components/FloatingTree-BJGeWpX5.js";
|
|
6
|
+
const h = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
7
|
+
function P(m, g = {}) {
|
|
8
|
+
const l = "rootStore" in m ? m.rootStore : m, i = l.useState("open"), u = l.useState("floatingId"), x = l.useState("domReferenceElement"), d = l.useState("floatingElement"), {
|
|
9
|
+
role: o = "dialog"
|
|
10
|
+
} = g, M = E(), r = x?.id || M, t = a.useMemo(() => y(d)?.id || u, [d, u]), e = h.get(o) ?? o, c = R() != null, s = a.useMemo(() => e === "tooltip" || o === "label" ? I : {
|
|
11
|
+
"aria-haspopup": e === "alertdialog" ? "dialog" : e,
|
|
12
|
+
"aria-expanded": "false",
|
|
13
|
+
...e === "listbox" && {
|
|
14
|
+
role: "combobox"
|
|
15
|
+
},
|
|
16
|
+
...e === "menu" && c && {
|
|
17
|
+
role: "menuitem"
|
|
18
|
+
},
|
|
19
|
+
...o === "select" && {
|
|
20
|
+
"aria-autocomplete": "none"
|
|
21
|
+
},
|
|
22
|
+
...o === "combobox" && {
|
|
23
|
+
"aria-autocomplete": "list"
|
|
24
|
+
}
|
|
25
|
+
}, [e, c, o]), b = a.useMemo(() => e === "tooltip" || o === "label" ? {
|
|
26
|
+
[`aria-${o === "label" ? "labelledby" : "describedby"}`]: i ? t : void 0
|
|
27
|
+
} : {
|
|
28
|
+
...s,
|
|
29
|
+
"aria-expanded": i ? "true" : "false",
|
|
30
|
+
"aria-controls": i ? t : void 0,
|
|
31
|
+
...e === "menu" && {
|
|
32
|
+
id: r
|
|
33
|
+
}
|
|
34
|
+
}, [e, t, i, r, o, s]), p = a.useMemo(() => {
|
|
35
|
+
const n = {
|
|
36
|
+
id: t,
|
|
37
|
+
...e && {
|
|
38
|
+
role: e
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
return e === "tooltip" || o === "label" ? n : {
|
|
42
|
+
...n,
|
|
43
|
+
...e === "menu" && {
|
|
44
|
+
"aria-labelledby": r
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}, [e, t, r, o]), f = a.useCallback(({
|
|
48
|
+
active: n,
|
|
49
|
+
selected: S
|
|
50
|
+
}) => {
|
|
51
|
+
const $ = {
|
|
52
|
+
role: "option",
|
|
53
|
+
...n && {
|
|
54
|
+
id: `${t}-fui-option`
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
switch (o) {
|
|
58
|
+
case "select":
|
|
59
|
+
case "combobox":
|
|
60
|
+
return {
|
|
61
|
+
...$,
|
|
62
|
+
"aria-selected": S
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
return {};
|
|
66
|
+
}, [t, o]);
|
|
67
|
+
return a.useMemo(() => ({
|
|
68
|
+
reference: b,
|
|
69
|
+
floating: p,
|
|
70
|
+
item: f,
|
|
71
|
+
trigger: s
|
|
72
|
+
}), [b, p, s, f]);
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
P as useRole
|
|
76
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useId as u } from "../../../../utils/esm/useId-D8NyJjt3.js";
|
|
2
|
+
import { useRefWithInit as c } from "../../../../utils/esm/useRefWithInit-BObJZm23.js";
|
|
3
|
+
import { useIsoLayoutEffect as g } from "../../../../utils/esm/useIsoLayoutEffect-oOMudEAz.js";
|
|
4
|
+
import { isElement as E } from "../../../../../@floating-ui/utils/dist/floating-ui.utils.dom-BULZuLW5.js";
|
|
5
|
+
import { useFloatingParentNodeId as d } from "../components/FloatingTree-BJGeWpX5.js";
|
|
6
|
+
import { FloatingRootStore as I } from "../components/FloatingRootStore-D8M2d4pp.js";
|
|
7
|
+
function F(l) {
|
|
8
|
+
const {
|
|
9
|
+
popupStore: n,
|
|
10
|
+
treatPopupAsFloatingElement: p = !1,
|
|
11
|
+
onOpenChange: i
|
|
12
|
+
} = l, o = u(), m = d() != null, r = n.useState("open"), t = n.useState("activeTriggerElement"), s = n.useState(p ? "popupElement" : "positionerElement"), f = n.context.triggerElements, e = c(() => new I({
|
|
13
|
+
open: r,
|
|
14
|
+
transitionStatus: void 0,
|
|
15
|
+
referenceElement: t,
|
|
16
|
+
floatingElement: s,
|
|
17
|
+
triggerElements: f,
|
|
18
|
+
onOpenChange: i,
|
|
19
|
+
floatingId: o,
|
|
20
|
+
syncOnly: !0,
|
|
21
|
+
nested: m
|
|
22
|
+
})).current;
|
|
23
|
+
return g(() => {
|
|
24
|
+
const a = {
|
|
25
|
+
open: r,
|
|
26
|
+
floatingId: o,
|
|
27
|
+
referenceElement: t,
|
|
28
|
+
floatingElement: s
|
|
29
|
+
};
|
|
30
|
+
E(t) && (a.domReferenceElement = t), e.state.positionReference === e.state.referenceElement && (a.positionReference = t), e.update(a);
|
|
31
|
+
}, [r, o, t, s, e]), e.context.onOpenChange = i, e.context.nested = m, e;
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
F as useSyncedFloatingRootContext
|
|
35
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getComputedStyle as t } from "../../../../../@floating-ui/utils/dist/floating-ui.utils.dom-BULZuLW5.js";
|
|
2
|
+
function s(i) {
|
|
3
|
+
return i.visibility === "hidden" || i.visibility === "collapse";
|
|
4
|
+
}
|
|
5
|
+
function n(i, e = i ? t(i) : null) {
|
|
6
|
+
return !i || !i.isConnected || !e || s(e) ? !1 : typeof i.checkVisibility == "function" ? i.checkVisibility() : e.display !== "none" && e.display !== "contents";
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
n as isElementVisible,
|
|
10
|
+
s as isHiddenByStyles
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const e = "data-base-ui-focusable", t = "active", a = "selected", n = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
2
|
+
export {
|
|
3
|
+
t as ACTIVE_KEY,
|
|
4
|
+
e as FOCUSABLE_ATTRIBUTE,
|
|
5
|
+
a as SELECTED_KEY,
|
|
6
|
+
n as TYPEABLE_SELECTOR
|
|
7
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function a() {
|
|
2
|
+
const e = /* @__PURE__ */ new Map();
|
|
3
|
+
return {
|
|
4
|
+
emit(t, n) {
|
|
5
|
+
e.get(t)?.forEach((o) => o(n));
|
|
6
|
+
},
|
|
7
|
+
on(t, n) {
|
|
8
|
+
e.has(t) || e.set(t, /* @__PURE__ */ new Set()), e.get(t).add(n);
|
|
9
|
+
},
|
|
10
|
+
off(t, n) {
|
|
11
|
+
e.get(t)?.delete(n);
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
a as createEventEmitter
|
|
17
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { isHTMLElement as r } from "../../../../../@floating-ui/utils/dist/floating-ui.utils.dom-BULZuLW5.js";
|
|
2
|
+
import { FOCUSABLE_ATTRIBUTE as o, TYPEABLE_SELECTOR as s } from "./constants-B-72x4uQ.js";
|
|
3
|
+
function l(e, t) {
|
|
4
|
+
if (t == null)
|
|
5
|
+
return !1;
|
|
6
|
+
if ("composedPath" in e)
|
|
7
|
+
return e.composedPath().includes(t);
|
|
8
|
+
const n = e;
|
|
9
|
+
return n.target != null && t.contains(n.target);
|
|
10
|
+
}
|
|
11
|
+
function c(e) {
|
|
12
|
+
return e.matches("html,body");
|
|
13
|
+
}
|
|
14
|
+
function a(e) {
|
|
15
|
+
return r(e) && e.matches(s);
|
|
16
|
+
}
|
|
17
|
+
function m(e) {
|
|
18
|
+
return e ? e.getAttribute("role") === "combobox" && a(e) : !1;
|
|
19
|
+
}
|
|
20
|
+
function f(e) {
|
|
21
|
+
return e ? e.hasAttribute(o) ? e : e.querySelector(`[${o}]`) || e : null;
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
f as getFloatingFocusElement,
|
|
25
|
+
l as isEventTargetWithin,
|
|
26
|
+
c as isRootElement,
|
|
27
|
+
m as isTypeableCombobox,
|
|
28
|
+
a as isTypeableElement
|
|
29
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NOOP as i } from "../../../../utils/esm/empty-C3-x9M2q.js";
|
|
2
|
+
let e = 0;
|
|
3
|
+
function u(o, t = {}) {
|
|
4
|
+
const {
|
|
5
|
+
preventScroll: c = !1,
|
|
6
|
+
cancelPrevious: a = !0,
|
|
7
|
+
sync: s = !1
|
|
8
|
+
} = t;
|
|
9
|
+
a && cancelAnimationFrame(e);
|
|
10
|
+
const r = () => o?.focus({
|
|
11
|
+
preventScroll: c
|
|
12
|
+
});
|
|
13
|
+
if (s)
|
|
14
|
+
return r(), i;
|
|
15
|
+
const n = requestAnimationFrame(r);
|
|
16
|
+
return e = n, () => {
|
|
17
|
+
e === n && (cancelAnimationFrame(n), e = 0);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
u as enqueueFocus
|
|
22
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { isAndroid as n, isJSDOM as s } from "../../../../utils/esm/detectBrowser-CntSiJrj.js";
|
|
2
|
+
function u(e) {
|
|
3
|
+
e.preventDefault(), e.stopPropagation();
|
|
4
|
+
}
|
|
5
|
+
function i(e) {
|
|
6
|
+
return "nativeEvent" in e;
|
|
7
|
+
}
|
|
8
|
+
function p(e) {
|
|
9
|
+
return e.pointerType === "" && e.isTrusted ? !0 : n && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
10
|
+
}
|
|
11
|
+
function a(e) {
|
|
12
|
+
return s ? !1 : !n && e.width === 0 && e.height === 0 || n && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
|
|
13
|
+
e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
|
|
14
|
+
}
|
|
15
|
+
function c(e, t) {
|
|
16
|
+
return ["mouse", "pen"].includes(e);
|
|
17
|
+
}
|
|
18
|
+
function d(e) {
|
|
19
|
+
const t = e.type;
|
|
20
|
+
return t === "click" || t === "mousedown" || t === "keydown" || t === "keyup";
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
d as isClickLikeEvent,
|
|
24
|
+
c as isMouseLikePointerType,
|
|
25
|
+
i as isReactEvent,
|
|
26
|
+
p as isVirtualClick,
|
|
27
|
+
a as isVirtualPointerEvent,
|
|
28
|
+
u as stopEvent
|
|
29
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FloatingRootStore as e } from "../components/FloatingRootStore-D8M2d4pp.js";
|
|
2
|
+
import { PopupTriggerMap as n } from "../../utils/popups/popupTriggerMap-RUMkUgDU.js";
|
|
3
|
+
function r() {
|
|
4
|
+
return new e({
|
|
5
|
+
open: !1,
|
|
6
|
+
transitionStatus: void 0,
|
|
7
|
+
floatingElement: null,
|
|
8
|
+
referenceElement: null,
|
|
9
|
+
triggerElements: new n(),
|
|
10
|
+
floatingId: "",
|
|
11
|
+
syncOnly: !1,
|
|
12
|
+
nested: !1,
|
|
13
|
+
onOpenChange: void 0
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
r as getEmptyRootContext
|
|
18
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { isShadowRoot as R, getNodeName as C } from "../../../../../@floating-ui/utils/dist/floating-ui.utils.dom-BULZuLW5.js";
|
|
2
|
+
import { ownerDocument as D } from "../../../../utils/esm/owner-CfKP3-Rk.js";
|
|
3
|
+
const m = {
|
|
4
|
+
inert: /* @__PURE__ */ new WeakMap(),
|
|
5
|
+
"aria-hidden": /* @__PURE__ */ new WeakMap()
|
|
6
|
+
}, M = "data-base-ui-inert", w = {
|
|
7
|
+
inert: /* @__PURE__ */ new WeakSet(),
|
|
8
|
+
"aria-hidden": /* @__PURE__ */ new WeakSet()
|
|
9
|
+
};
|
|
10
|
+
let l = /* @__PURE__ */ new WeakMap(), k = 0;
|
|
11
|
+
function O(t) {
|
|
12
|
+
return w[t];
|
|
13
|
+
}
|
|
14
|
+
function y(t) {
|
|
15
|
+
return t ? R(t) ? t.host : y(t.parentNode) : null;
|
|
16
|
+
}
|
|
17
|
+
const p = (t, n) => n.map((o) => {
|
|
18
|
+
if (t.contains(o))
|
|
19
|
+
return o;
|
|
20
|
+
const r = y(o);
|
|
21
|
+
return t.contains(r) ? r : null;
|
|
22
|
+
}).filter((o) => o != null), N = (t) => {
|
|
23
|
+
const n = /* @__PURE__ */ new Set();
|
|
24
|
+
return t.forEach((o) => {
|
|
25
|
+
let r = o;
|
|
26
|
+
for (; r && !n.has(r); )
|
|
27
|
+
n.add(r), r = r.parentNode;
|
|
28
|
+
}), n;
|
|
29
|
+
}, v = (t, n, o) => {
|
|
30
|
+
const r = [], i = (c) => {
|
|
31
|
+
!c || o.has(c) || Array.from(c.children).forEach((a) => {
|
|
32
|
+
C(a) !== "script" && (n.has(a) ? i(a) : r.push(a));
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
return i(t), r;
|
|
36
|
+
};
|
|
37
|
+
function T(t, n, o, r, {
|
|
38
|
+
mark: i = !0,
|
|
39
|
+
markerIgnoreElements: c = []
|
|
40
|
+
}) {
|
|
41
|
+
const a = r ? "inert" : o ? "aria-hidden" : null;
|
|
42
|
+
let d = null, h = null;
|
|
43
|
+
const f = p(n, t), I = i ? p(n, c) : [], q = new Set(I), x = i ? v(n, N(f), new Set(f)).filter((e) => !q.has(e)) : [], S = [], W = [];
|
|
44
|
+
if (a) {
|
|
45
|
+
const e = m[a], s = O(a);
|
|
46
|
+
h = s, d = e;
|
|
47
|
+
const H = p(n, Array.from(n.querySelectorAll("[aria-live]"))), g = f.concat(H);
|
|
48
|
+
v(n, N(g), new Set(g)).forEach((u) => {
|
|
49
|
+
const E = u.getAttribute(a), A = E !== null && E !== "false", b = (e.get(u) || 0) + 1;
|
|
50
|
+
e.set(u, b), S.push(u), b === 1 && A && s.add(u), A || u.setAttribute(a, a === "inert" ? "" : "true");
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
return i && x.forEach((e) => {
|
|
54
|
+
const s = (l.get(e) || 0) + 1;
|
|
55
|
+
l.set(e, s), W.push(e), s === 1 && e.setAttribute(M, "");
|
|
56
|
+
}), k += 1, () => {
|
|
57
|
+
d && S.forEach((e) => {
|
|
58
|
+
const s = (d.get(e) || 0) - 1;
|
|
59
|
+
d.set(e, s), s || (!h?.has(e) && a && e.removeAttribute(a), h?.delete(e));
|
|
60
|
+
}), i && W.forEach((e) => {
|
|
61
|
+
const s = (l.get(e) || 0) - 1;
|
|
62
|
+
l.set(e, s), s || e.removeAttribute(M);
|
|
63
|
+
}), k -= 1, k || (m.inert = /* @__PURE__ */ new WeakMap(), m["aria-hidden"] = /* @__PURE__ */ new WeakMap(), w.inert = /* @__PURE__ */ new WeakSet(), w["aria-hidden"] = /* @__PURE__ */ new WeakSet(), l = /* @__PURE__ */ new WeakMap());
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function z(t, n = {}) {
|
|
67
|
+
const {
|
|
68
|
+
ariaHidden: o = !1,
|
|
69
|
+
inert: r = !1,
|
|
70
|
+
mark: i = !0,
|
|
71
|
+
markerIgnoreElements: c = []
|
|
72
|
+
} = n, a = D(t[0]).body;
|
|
73
|
+
return T(t, a, o, r, {
|
|
74
|
+
mark: i,
|
|
75
|
+
markerIgnoreElements: c
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
export {
|
|
79
|
+
z as markOthers
|
|
80
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function i(e, d, t = !0) {
|
|
2
|
+
return e.filter((n) => n.parentId === d).flatMap((n) => [...!t || n.context?.open ? [n] : [], ...i(e, n.id, t)]);
|
|
3
|
+
}
|
|
4
|
+
function a(e, d) {
|
|
5
|
+
let t = [], n = e.find((o) => o.id === d)?.parentId;
|
|
6
|
+
for (; n; ) {
|
|
7
|
+
const o = e.find((r) => r.id === n);
|
|
8
|
+
n = o?.parentId, o && (t = t.concat(o));
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
a as getNodeAncestors,
|
|
14
|
+
i as getNodeChildren
|
|
15
|
+
};
|