autumn-js 0.1.16 → 0.1.18
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/libraries/backend/better-auth.d.mts +24 -24
- package/dist/libraries/backend/better-auth.d.ts +24 -24
- package/dist/libraries/react/AutumnContext.d.mts +1 -1
- package/dist/libraries/react/AutumnContext.d.ts +1 -1
- package/dist/libraries/react/AutumnContext.mjs +3 -3
- package/dist/libraries/react/BaseAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/BaseAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/BaseAutumnProvider.js +5 -0
- package/dist/libraries/react/BaseAutumnProvider.mjs +6 -6
- package/dist/libraries/react/{ReactAutumnClient-BG8_E3nb.d.ts → ReactAutumnClient-BKSxQ-QD.d.ts} +2 -1
- package/dist/libraries/react/{ReactAutumnClient-gvMVYgdO.d.mts → ReactAutumnClient-Dc-wJFoV.d.mts} +2 -1
- package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -1
- package/dist/libraries/react/ReactAutumnProvider.js +7 -1
- package/dist/libraries/react/ReactAutumnProvider.mjs +7 -7
- package/dist/libraries/react/{chunk-QJPZFEVW.mjs → chunk-2OHJ6PS6.mjs} +10 -10
- package/dist/libraries/react/{chunk-WT5K3J2K.mjs → chunk-2PBWI3T6.mjs} +19 -19
- package/dist/libraries/react/{chunk-UJVW3UWD.mjs → chunk-3HD5EPJE.mjs} +5 -4
- package/dist/libraries/react/{chunk-SBX6TYV2.mjs → chunk-4CO2JIMK.mjs} +1 -1
- package/dist/libraries/react/{chunk-2TQBFCWM.mjs → chunk-5KZSH7JF.mjs} +16 -16
- package/dist/libraries/react/{chunk-5K2M3CQZ.mjs → chunk-65S4VY5K.mjs} +32 -32
- package/dist/libraries/react/{chunk-6S7MT3MM.mjs → chunk-7PEELII6.mjs} +1 -1
- package/dist/libraries/react/{chunk-S52LXSZB.mjs → chunk-BD4NZOEZ.mjs} +1 -1
- package/dist/libraries/react/{chunk-A6E436YR.mjs → chunk-BMXP6QM4.mjs} +23 -23
- package/dist/libraries/react/{chunk-M7SUFZ42.mjs → chunk-DAZBMK7R.mjs} +2 -2
- package/dist/libraries/react/{chunk-RPEGNKJH.mjs → chunk-DXHYWJOY.mjs} +3 -3
- package/dist/libraries/react/{chunk-FJX2BGGF.mjs → chunk-FQC6SNTZ.mjs} +2 -2
- package/dist/libraries/react/{chunk-37TR2YZH.mjs → chunk-HMSBDBZ3.mjs} +2 -2
- package/dist/libraries/react/{chunk-AIBWQU4K.mjs → chunk-MIFWWE4R.mjs} +2 -2
- package/dist/libraries/react/{chunk-BALFCYDX.mjs → chunk-NFVAFRF6.mjs} +5 -0
- package/dist/libraries/react/{chunk-H2QK3ZOW.mjs → chunk-Q4DQR73E.mjs} +1 -1
- package/dist/libraries/react/{chunk-EV5RNY5U.mjs → chunk-SWSFJTEQ.mjs} +1 -1
- package/dist/libraries/react/{chunk-FAODWMTA.mjs → chunk-T6D3GYIH.mjs} +1 -1
- package/dist/libraries/react/{chunk-BXMZYHE7.mjs → chunk-UYZX3KX2.mjs} +8 -8
- package/dist/libraries/react/{chunk-USBPNC5B.mjs → chunk-VRNUTHYD.mjs} +2 -2
- package/dist/libraries/react/{chunk-YCDNQZT5.mjs → chunk-VYBU4WHO.mjs} +9 -9
- package/dist/libraries/react/{chunk-NHDZWWMZ.mjs → chunk-WUEXMQIT.mjs} +6 -6
- package/dist/libraries/react/{chunk-KWNH6C27.mjs → chunk-YN67J64M.mjs} +17 -17
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +1 -1
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +1 -1
- package/dist/libraries/react/client/ReactAutumnClient.mjs +2 -2
- package/dist/libraries/react/client/clientCompMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientCompMethods.d.ts +1 -1
- package/dist/libraries/react/client/clientCusMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientCusMethods.d.ts +1 -1
- package/dist/libraries/react/client/clientEntityMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientEntityMethods.d.ts +1 -1
- package/dist/libraries/react/client/clientGenMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientGenMethods.d.ts +1 -1
- package/dist/libraries/react/client/clientProdMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientProdMethods.d.ts +1 -1
- package/dist/libraries/react/client/clientReferralMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientReferralMethods.d.ts +1 -1
- package/dist/libraries/react/client/types/clientAttachTypes.d.mts +2 -1
- package/dist/libraries/react/client/types/clientAttachTypes.d.ts +2 -1
- package/dist/libraries/react/client/types/clientAttachTypes.js +2 -1
- package/dist/libraries/react/client/types/clientAttachTypes.mjs +2 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.css +120 -141
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +76 -71
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +27 -27
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.css +120 -141
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +69 -69
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +27 -27
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +120 -141
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +75 -70
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +27 -27
- package/dist/libraries/react/components/ui/accordion.js +23 -23
- package/dist/libraries/react/components/ui/accordion.mjs +5 -5
- package/dist/libraries/react/components/ui/button.d.mts +1 -1
- package/dist/libraries/react/components/ui/button.d.ts +1 -1
- package/dist/libraries/react/components/ui/button.js +3 -3
- package/dist/libraries/react/components/ui/button.mjs +2 -2
- package/dist/libraries/react/components/ui/dialog.js +49 -49
- package/dist/libraries/react/components/ui/dialog.mjs +6 -6
- package/dist/libraries/react/components/ui/popover.js +50 -50
- package/dist/libraries/react/components/ui/popover.mjs +6 -6
- package/dist/libraries/react/components/ui/switch.js +12 -12
- package/dist/libraries/react/components/ui/switch.mjs +4 -4
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +1 -1
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +1 -1
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +1 -1
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +1 -1
- package/dist/libraries/react/hooks/helpers/useAutumnBase.js +5 -0
- package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +1 -1
- package/dist/libraries/react/hooks/useAnalytics.mjs +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.mts +1 -1
- package/dist/libraries/react/hooks/useCustomer.d.ts +1 -1
- package/dist/libraries/react/hooks/useCustomer.js +5 -0
- package/dist/libraries/react/hooks/useCustomer.mjs +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +1 -1
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +1 -1
- package/dist/libraries/react/hooks/useCustomerBase.js +5 -0
- package/dist/libraries/react/hooks/useCustomerBase.mjs +5 -5
- package/dist/libraries/react/hooks/useEntity.js +5 -0
- package/dist/libraries/react/hooks/useEntity.mjs +6 -6
- package/dist/libraries/react/hooks/useEntityBase.d.mts +1 -1
- package/dist/libraries/react/hooks/useEntityBase.d.ts +1 -1
- package/dist/libraries/react/hooks/useEntityBase.js +5 -0
- package/dist/libraries/react/hooks/useEntityBase.mjs +5 -5
- package/dist/libraries/react/hooks/usePaywall.mjs +4 -4
- package/dist/libraries/react/hooks/usePricingTable.mjs +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +1 -1
- package/dist/libraries/react/hooks/useProductsBase.d.mts +1 -1
- package/dist/libraries/react/hooks/useProductsBase.d.ts +1 -1
- package/dist/libraries/react/index.d.mts +4 -2
- package/dist/libraries/react/index.d.ts +4 -2
- package/dist/libraries/react/index.js +78 -72
- package/dist/libraries/react/index.mjs +78 -72
- package/dist/next/client/NextAutumnClient.d.mts +3 -2
- package/dist/next/client/NextAutumnClient.d.ts +3 -2
- package/dist/next/client/{clientAttachTypes-DWFk8mOR.d.ts → clientAttachTypes-CQi73rMl.d.ts} +2 -1
- package/dist/next/client/{clientAttachTypes-traKz9UZ.d.mts → clientAttachTypes-anFjm97z.d.mts} +2 -1
- package/dist/next/client/hooks/useAutumn.d.mts +1 -1
- package/dist/next/client/hooks/useAutumn.d.ts +1 -1
- package/dist/next/client/hooks/useCustomer.d.mts +1 -1
- package/dist/next/client/hooks/useCustomer.d.ts +1 -1
- package/dist/next/client/hooks/useEntity.d.mts +1 -1
- package/dist/next/client/hooks/useEntity.d.ts +1 -1
- package/dist/styles/global.css +120 -141
- package/package.json +1 -1
- package/dist/libraries/react/{chunk-XZ7XNWDB.mjs → chunk-6VDZ3JMC.mjs} +4 -4
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
DialogPortal,
|
|
13
13
|
DialogTitle,
|
|
14
14
|
DialogTrigger
|
|
15
|
-
} from "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
20
|
-
import "../../chunk-
|
|
15
|
+
} from "../../chunk-UYZX3KX2.mjs";
|
|
16
|
+
import "../../chunk-2OHJ6PS6.mjs";
|
|
17
|
+
import "../../chunk-65S4VY5K.mjs";
|
|
18
|
+
import "../../chunk-2PBWI3T6.mjs";
|
|
19
|
+
import "../../chunk-YN67J64M.mjs";
|
|
20
|
+
import "../../chunk-DXHYWJOY.mjs";
|
|
21
21
|
import "../../chunk-4J6OC4ZQ.mjs";
|
|
22
22
|
export {
|
|
23
23
|
Dialog,
|
|
@@ -40,7 +40,7 @@ __export(popover_exports, {
|
|
|
40
40
|
module.exports = __toCommonJS(popover_exports);
|
|
41
41
|
var React29 = __toESM(require("react"));
|
|
42
42
|
|
|
43
|
-
// ../node_modules/.pnpm/@radix-ui+react-popover@1.1.14_@types+react-dom@19.1.
|
|
43
|
+
// ../node_modules/.pnpm/@radix-ui+react-popover@1.1.14_@types+react-dom@19.1.7_@types+react@19.1.10__@types+react@19._5pli3pjrzvnhwxdx4uharw4pne/node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
44
44
|
var React28 = __toESM(require("react"), 1);
|
|
45
45
|
|
|
46
46
|
// ../node_modules/.pnpm/@radix-ui+primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
@@ -53,7 +53,7 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
|
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
// ../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.1.
|
|
56
|
+
// ../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
57
57
|
var React = __toESM(require("react"), 1);
|
|
58
58
|
function setRef(ref, value) {
|
|
59
59
|
if (typeof ref === "function") {
|
|
@@ -90,7 +90,7 @@ function useComposedRefs(...refs) {
|
|
|
90
90
|
return React.useCallback(composeRefs(...refs), refs);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
// ../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.1.
|
|
93
|
+
// ../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
94
94
|
var React2 = __toESM(require("react"), 1);
|
|
95
95
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
96
96
|
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
@@ -151,14 +151,14 @@ function composeContextScopes(...scopes) {
|
|
|
151
151
|
return createScope;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
// ../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.10_@types+react-dom@19.1.
|
|
154
|
+
// ../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.10_@types+react-dom@19.1.7_@types+react@19.1.10__@types_kkkjgucmf2iks2g3unne4yz33y/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
155
155
|
var React7 = __toESM(require("react"), 1);
|
|
156
156
|
|
|
157
|
-
// ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.
|
|
157
|
+
// ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.7_@types+react@19.1.10__@types+react@19_bg7nte3b3fyxsgg7dtnfoe3ceu/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
158
158
|
var React4 = __toESM(require("react"), 1);
|
|
159
159
|
var ReactDOM = __toESM(require("react-dom"), 1);
|
|
160
160
|
|
|
161
|
-
// ../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.1.
|
|
161
|
+
// ../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
162
162
|
var React3 = __toESM(require("react"), 1);
|
|
163
163
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
164
164
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -244,7 +244,7 @@ function getElementRef(element) {
|
|
|
244
244
|
return element.props.ref || element.ref;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
// ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.
|
|
247
|
+
// ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.7_@types+react@19.1.10__@types+react@19_bg7nte3b3fyxsgg7dtnfoe3ceu/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
248
248
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
249
249
|
var NODES = [
|
|
250
250
|
"a",
|
|
@@ -282,7 +282,7 @@ function dispatchDiscreteCustomEvent(target, event) {
|
|
|
282
282
|
if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.1.
|
|
285
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
286
286
|
var React5 = __toESM(require("react"), 1);
|
|
287
287
|
function useCallbackRef(callback) {
|
|
288
288
|
const callbackRef = React5.useRef(callback);
|
|
@@ -292,7 +292,7 @@ function useCallbackRef(callback) {
|
|
|
292
292
|
return React5.useMemo(() => (...args) => callbackRef.current?.(...args), []);
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@19.1.
|
|
295
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
296
296
|
var React6 = __toESM(require("react"), 1);
|
|
297
297
|
function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
|
|
298
298
|
const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
|
|
@@ -307,7 +307,7 @@ function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.docum
|
|
|
307
307
|
}, [onEscapeKeyDown, ownerDocument]);
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
// ../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.10_@types+react-dom@19.1.
|
|
310
|
+
// ../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.10_@types+react-dom@19.1.7_@types+react@19.1.10__@types_kkkjgucmf2iks2g3unne4yz33y/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
311
311
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
312
312
|
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
|
313
313
|
var CONTEXT_UPDATE = "dismissableLayer.update";
|
|
@@ -512,7 +512,7 @@ function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
|
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
|
|
515
|
-
// ../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.2_@types+react@19.1.
|
|
515
|
+
// ../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.2_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
516
516
|
var React8 = __toESM(require("react"), 1);
|
|
517
517
|
var count = 0;
|
|
518
518
|
function useFocusGuards() {
|
|
@@ -540,7 +540,7 @@ function createFocusGuard() {
|
|
|
540
540
|
return element;
|
|
541
541
|
}
|
|
542
542
|
|
|
543
|
-
// ../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@19.1.
|
|
543
|
+
// ../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@19.1.7_@types+react@19.1.10__@types+react@_vydxvrk5sybelf6rsj26ktbpwa/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
544
544
|
var React9 = __toESM(require("react"), 1);
|
|
545
545
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
546
546
|
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
@@ -744,15 +744,15 @@ function removeLinks(items) {
|
|
|
744
744
|
return items.filter((item) => item.tagName !== "A");
|
|
745
745
|
}
|
|
746
746
|
|
|
747
|
-
// ../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.1.
|
|
747
|
+
// ../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
748
748
|
var React11 = __toESM(require("react"), 1);
|
|
749
749
|
|
|
750
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.1.
|
|
750
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
751
751
|
var React10 = __toESM(require("react"), 1);
|
|
752
752
|
var useLayoutEffect2 = globalThis?.document ? React10.useLayoutEffect : () => {
|
|
753
753
|
};
|
|
754
754
|
|
|
755
|
-
// ../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.1.
|
|
755
|
+
// ../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
756
756
|
var useReactId = React11[" useId ".trim().toString()] || (() => void 0);
|
|
757
757
|
var count2 = 0;
|
|
758
758
|
function useId(deterministicId) {
|
|
@@ -763,7 +763,7 @@ function useId(deterministicId) {
|
|
|
763
763
|
return deterministicId || (id ? `radix-${id}` : "");
|
|
764
764
|
}
|
|
765
765
|
|
|
766
|
-
// ../node_modules/.pnpm/@radix-ui+react-popper@1.2.7_@types+react-dom@19.1.
|
|
766
|
+
// ../node_modules/.pnpm/@radix-ui+react-popper@1.2.7_@types+react-dom@19.1.7_@types+react@19.1.10__@types+react@19.1._53kpuwwp2hqmnrlcgozctimzny/node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
767
767
|
var React15 = __toESM(require("react"), 1);
|
|
768
768
|
|
|
769
769
|
// ../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
@@ -898,7 +898,7 @@ function rectToClientRect(rect) {
|
|
|
898
898
|
};
|
|
899
899
|
}
|
|
900
900
|
|
|
901
|
-
// ../node_modules/.pnpm/@floating-ui+core@1.7.
|
|
901
|
+
// ../node_modules/.pnpm/@floating-ui+core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
902
902
|
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
903
903
|
let {
|
|
904
904
|
reference,
|
|
@@ -1216,7 +1216,7 @@ var flip = function(options) {
|
|
|
1216
1216
|
const ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
1217
1217
|
if (!ignoreCrossAxisOverflow || // We leave the current main axis only if every placement on that axis
|
|
1218
1218
|
// overflows the main axis.
|
|
1219
|
-
overflowsData.every((d) => d.overflows[0] > 0
|
|
1219
|
+
overflowsData.every((d) => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
|
|
1220
1220
|
return {
|
|
1221
1221
|
data: {
|
|
1222
1222
|
index: nextIndex,
|
|
@@ -1761,7 +1761,7 @@ function getFrameElement(win) {
|
|
|
1761
1761
|
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
1762
1762
|
}
|
|
1763
1763
|
|
|
1764
|
-
// ../node_modules/.pnpm/@floating-ui+dom@1.7.
|
|
1764
|
+
// ../node_modules/.pnpm/@floating-ui+dom@1.7.3/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
1765
1765
|
function getCssDimensions(element) {
|
|
1766
1766
|
const css = getComputedStyle2(element);
|
|
1767
1767
|
let width = parseFloat(css.width) || 0;
|
|
@@ -2364,7 +2364,7 @@ var computePosition2 = (reference, floating, options) => {
|
|
|
2364
2364
|
});
|
|
2365
2365
|
};
|
|
2366
2366
|
|
|
2367
|
-
// ../node_modules/.pnpm/@floating-ui+react-dom@2.1.
|
|
2367
|
+
// ../node_modules/.pnpm/@floating-ui+react-dom@2.1.5_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
2368
2368
|
var React12 = __toESM(require("react"), 1);
|
|
2369
2369
|
var import_react = require("react");
|
|
2370
2370
|
var ReactDOM2 = __toESM(require("react-dom"), 1);
|
|
@@ -2648,7 +2648,7 @@ var arrow3 = (options, deps) => ({
|
|
|
2648
2648
|
options: [options, deps]
|
|
2649
2649
|
});
|
|
2650
2650
|
|
|
2651
|
-
// ../node_modules/.pnpm/@radix-ui+react-arrow@1.1.7_@types+react-dom@19.1.
|
|
2651
|
+
// ../node_modules/.pnpm/@radix-ui+react-arrow@1.1.7_@types+react-dom@19.1.7_@types+react@19.1.10__@types+react@19.1.1_2jwfz54wwuasgf5qpqlhzi7djy/node_modules/@radix-ui/react-arrow/dist/index.mjs
|
|
2652
2652
|
var React13 = __toESM(require("react"), 1);
|
|
2653
2653
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
2654
2654
|
var NAME = "Arrow";
|
|
@@ -2670,7 +2670,7 @@ var Arrow = React13.forwardRef((props, forwardedRef) => {
|
|
|
2670
2670
|
Arrow.displayName = NAME;
|
|
2671
2671
|
var Root = Arrow;
|
|
2672
2672
|
|
|
2673
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.1.
|
|
2673
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
2674
2674
|
var React14 = __toESM(require("react"), 1);
|
|
2675
2675
|
function useSize(element) {
|
|
2676
2676
|
const [size4, setSize] = React14.useState(void 0);
|
|
@@ -2707,7 +2707,7 @@ function useSize(element) {
|
|
|
2707
2707
|
return size4;
|
|
2708
2708
|
}
|
|
2709
2709
|
|
|
2710
|
-
// ../node_modules/.pnpm/@radix-ui+react-popper@1.2.7_@types+react-dom@19.1.
|
|
2710
|
+
// ../node_modules/.pnpm/@radix-ui+react-popper@1.2.7_@types+react-dom@19.1.7_@types+react@19.1.10__@types+react@19.1._53kpuwwp2hqmnrlcgozctimzny/node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
2711
2711
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
2712
2712
|
var POPPER_NAME = "Popper";
|
|
2713
2713
|
var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
|
|
@@ -2974,7 +2974,7 @@ var Anchor = PopperAnchor;
|
|
|
2974
2974
|
var Content = PopperContent;
|
|
2975
2975
|
var Arrow2 = PopperArrow;
|
|
2976
2976
|
|
|
2977
|
-
// ../node_modules/.pnpm/@radix-ui+react-portal@1.1.9_@types+react-dom@19.1.
|
|
2977
|
+
// ../node_modules/.pnpm/@radix-ui+react-portal@1.1.9_@types+react-dom@19.1.7_@types+react@19.1.10__@types+react@19.1._5sa65pl6oblkuen3v5fktjly74/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
2978
2978
|
var React16 = __toESM(require("react"), 1);
|
|
2979
2979
|
var import_react_dom2 = __toESM(require("react-dom"), 1);
|
|
2980
2980
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
@@ -2988,7 +2988,7 @@ var Portal = React16.forwardRef((props, forwardedRef) => {
|
|
|
2988
2988
|
});
|
|
2989
2989
|
Portal.displayName = PORTAL_NAME;
|
|
2990
2990
|
|
|
2991
|
-
// ../node_modules/.pnpm/@radix-ui+react-presence@1.1.4_@types+react-dom@19.1.
|
|
2991
|
+
// ../node_modules/.pnpm/@radix-ui+react-presence@1.1.4_@types+react-dom@19.1.7_@types+react@19.1.10__@types+react@19._n7tf5j2uievgcpnlsvnlzbtepi/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
2992
2992
|
var React22 = __toESM(require("react"), 1);
|
|
2993
2993
|
var React17 = __toESM(require("react"), 1);
|
|
2994
2994
|
function useStateMachine(initialState, machine) {
|
|
@@ -3114,7 +3114,7 @@ function getElementRef2(element) {
|
|
|
3114
3114
|
return element.props.ref || element.ref;
|
|
3115
3115
|
}
|
|
3116
3116
|
|
|
3117
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.1.
|
|
3117
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
3118
3118
|
var React18 = __toESM(require("react"), 1);
|
|
3119
3119
|
var React23 = __toESM(require("react"), 1);
|
|
3120
3120
|
var useInsertionEffect = React18[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
@@ -3336,19 +3336,19 @@ function __spreadArray(to, from, pack) {
|
|
|
3336
3336
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
3337
3337
|
}
|
|
3338
3338
|
|
|
3339
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.
|
|
3339
|
+
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.10_react@19.1.1/node_modules/react-remove-scroll/dist/es2015/Combination.js
|
|
3340
3340
|
var React27 = __toESM(require("react"));
|
|
3341
3341
|
|
|
3342
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.
|
|
3342
|
+
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.10_react@19.1.1/node_modules/react-remove-scroll/dist/es2015/UI.js
|
|
3343
3343
|
var React21 = __toESM(require("react"));
|
|
3344
3344
|
|
|
3345
|
-
// ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.
|
|
3345
|
+
// ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.10_react@19.1.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
3346
3346
|
var zeroRightClassName = "right-scroll-bar-position";
|
|
3347
3347
|
var fullWidthClassName = "width-before-scroll-bar";
|
|
3348
3348
|
var noScrollbarsClassName = "with-scroll-bars-hidden";
|
|
3349
3349
|
var removedBarSizeVariable = "--removed-body-scroll-bar-size";
|
|
3350
3350
|
|
|
3351
|
-
// ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.1.
|
|
3351
|
+
// ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.1.10_react@19.1.1/node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
3352
3352
|
function assignRef(ref, value) {
|
|
3353
3353
|
if (typeof ref === "function") {
|
|
3354
3354
|
ref(value);
|
|
@@ -3358,7 +3358,7 @@ function assignRef(ref, value) {
|
|
|
3358
3358
|
return ref;
|
|
3359
3359
|
}
|
|
3360
3360
|
|
|
3361
|
-
// ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.1.
|
|
3361
|
+
// ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.1.10_react@19.1.1/node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
3362
3362
|
var import_react2 = require("react");
|
|
3363
3363
|
function useCallbackRef2(initialValue, callback) {
|
|
3364
3364
|
var ref = (0, import_react2.useState)(function() {
|
|
@@ -3386,7 +3386,7 @@ function useCallbackRef2(initialValue, callback) {
|
|
|
3386
3386
|
return ref.facade;
|
|
3387
3387
|
}
|
|
3388
3388
|
|
|
3389
|
-
// ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.1.
|
|
3389
|
+
// ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.1.10_react@19.1.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
3390
3390
|
var React19 = __toESM(require("react"));
|
|
3391
3391
|
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React19.useLayoutEffect : React19.useEffect;
|
|
3392
3392
|
var currentValues = /* @__PURE__ */ new WeakMap();
|
|
@@ -3418,7 +3418,7 @@ function useMergeRefs(refs, defaultValue) {
|
|
|
3418
3418
|
return callbackRef;
|
|
3419
3419
|
}
|
|
3420
3420
|
|
|
3421
|
-
// ../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.1.
|
|
3421
|
+
// ../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.1.10_react@19.1.1/node_modules/use-sidecar/dist/es2015/medium.js
|
|
3422
3422
|
function ItoI(a) {
|
|
3423
3423
|
return a;
|
|
3424
3424
|
}
|
|
@@ -3504,7 +3504,7 @@ function createSidecarMedium(options) {
|
|
|
3504
3504
|
return medium;
|
|
3505
3505
|
}
|
|
3506
3506
|
|
|
3507
|
-
// ../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.1.
|
|
3507
|
+
// ../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.1.10_react@19.1.1/node_modules/use-sidecar/dist/es2015/exports.js
|
|
3508
3508
|
var React20 = __toESM(require("react"));
|
|
3509
3509
|
var SideCar = function(_a) {
|
|
3510
3510
|
var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
|
|
@@ -3523,10 +3523,10 @@ function exportSidecar(medium, exported) {
|
|
|
3523
3523
|
return SideCar;
|
|
3524
3524
|
}
|
|
3525
3525
|
|
|
3526
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.
|
|
3526
|
+
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.10_react@19.1.1/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
3527
3527
|
var effectCar = createSidecarMedium();
|
|
3528
3528
|
|
|
3529
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.
|
|
3529
|
+
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.10_react@19.1.1/node_modules/react-remove-scroll/dist/es2015/UI.js
|
|
3530
3530
|
var nothing = function() {
|
|
3531
3531
|
return;
|
|
3532
3532
|
};
|
|
@@ -3558,13 +3558,13 @@ RemoveScroll.classNames = {
|
|
|
3558
3558
|
zeroRight: zeroRightClassName
|
|
3559
3559
|
};
|
|
3560
3560
|
|
|
3561
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.
|
|
3561
|
+
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.10_react@19.1.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
|
|
3562
3562
|
var React26 = __toESM(require("react"));
|
|
3563
3563
|
|
|
3564
|
-
// ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.
|
|
3564
|
+
// ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.10_react@19.1.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js
|
|
3565
3565
|
var React25 = __toESM(require("react"));
|
|
3566
3566
|
|
|
3567
|
-
// ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.
|
|
3567
|
+
// ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.10_react@19.1.1/node_modules/react-style-singleton/dist/es2015/hook.js
|
|
3568
3568
|
var React24 = __toESM(require("react"));
|
|
3569
3569
|
|
|
3570
3570
|
// ../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
|
|
@@ -3579,7 +3579,7 @@ var getNonce = function() {
|
|
|
3579
3579
|
return void 0;
|
|
3580
3580
|
};
|
|
3581
3581
|
|
|
3582
|
-
// ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.
|
|
3582
|
+
// ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.10_react@19.1.1/node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
3583
3583
|
function makeStyleTag() {
|
|
3584
3584
|
if (!document)
|
|
3585
3585
|
return null;
|
|
@@ -3625,7 +3625,7 @@ var stylesheetSingleton = function() {
|
|
|
3625
3625
|
};
|
|
3626
3626
|
};
|
|
3627
3627
|
|
|
3628
|
-
// ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.
|
|
3628
|
+
// ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.10_react@19.1.1/node_modules/react-style-singleton/dist/es2015/hook.js
|
|
3629
3629
|
var styleHookSingleton = function() {
|
|
3630
3630
|
var sheet = stylesheetSingleton();
|
|
3631
3631
|
return function(styles, isDynamic) {
|
|
@@ -3638,7 +3638,7 @@ var styleHookSingleton = function() {
|
|
|
3638
3638
|
};
|
|
3639
3639
|
};
|
|
3640
3640
|
|
|
3641
|
-
// ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.
|
|
3641
|
+
// ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.10_react@19.1.1/node_modules/react-style-singleton/dist/es2015/component.js
|
|
3642
3642
|
var styleSingleton = function() {
|
|
3643
3643
|
var useStyle = styleHookSingleton();
|
|
3644
3644
|
var Sheet = function(_a) {
|
|
@@ -3649,7 +3649,7 @@ var styleSingleton = function() {
|
|
|
3649
3649
|
return Sheet;
|
|
3650
3650
|
};
|
|
3651
3651
|
|
|
3652
|
-
// ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.
|
|
3652
|
+
// ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.10_react@19.1.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.js
|
|
3653
3653
|
var zeroGap = {
|
|
3654
3654
|
left: 0,
|
|
3655
3655
|
top: 0,
|
|
@@ -3684,7 +3684,7 @@ var getGapWidth = function(gapMode) {
|
|
|
3684
3684
|
};
|
|
3685
3685
|
};
|
|
3686
3686
|
|
|
3687
|
-
// ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.
|
|
3687
|
+
// ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.10_react@19.1.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js
|
|
3688
3688
|
var Style = styleSingleton();
|
|
3689
3689
|
var lockAttribute = "data-scroll-locked";
|
|
3690
3690
|
var getStyles = function(_a, allowRelative, gapMode, important) {
|
|
@@ -3724,7 +3724,7 @@ var RemoveScrollBar = function(_a) {
|
|
|
3724
3724
|
return React25.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
|
|
3725
3725
|
};
|
|
3726
3726
|
|
|
3727
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.
|
|
3727
|
+
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.10_react@19.1.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
|
|
3728
3728
|
var passiveSupported = false;
|
|
3729
3729
|
if (typeof window !== "undefined") {
|
|
3730
3730
|
try {
|
|
@@ -3743,7 +3743,7 @@ if (typeof window !== "undefined") {
|
|
|
3743
3743
|
var options;
|
|
3744
3744
|
var nonPassive = passiveSupported ? { passive: false } : false;
|
|
3745
3745
|
|
|
3746
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.
|
|
3746
|
+
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.10_react@19.1.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js
|
|
3747
3747
|
var alwaysContainsScroll = function(node) {
|
|
3748
3748
|
return node.tagName === "TEXTAREA";
|
|
3749
3749
|
};
|
|
@@ -3843,7 +3843,7 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
|
3843
3843
|
return shouldCancelScroll;
|
|
3844
3844
|
};
|
|
3845
3845
|
|
|
3846
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.
|
|
3846
|
+
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.10_react@19.1.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
|
|
3847
3847
|
var getTouchXY = function(event) {
|
|
3848
3848
|
return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
|
|
3849
3849
|
};
|
|
@@ -4008,17 +4008,17 @@ function getOutermostShadowParent(node) {
|
|
|
4008
4008
|
return shadowParent;
|
|
4009
4009
|
}
|
|
4010
4010
|
|
|
4011
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.
|
|
4011
|
+
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.10_react@19.1.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
4012
4012
|
var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
|
|
4013
4013
|
|
|
4014
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.
|
|
4014
|
+
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.10_react@19.1.1/node_modules/react-remove-scroll/dist/es2015/Combination.js
|
|
4015
4015
|
var ReactRemoveScroll = React27.forwardRef(function(props, ref) {
|
|
4016
4016
|
return React27.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
|
|
4017
4017
|
});
|
|
4018
4018
|
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
4019
4019
|
var Combination_default = ReactRemoveScroll;
|
|
4020
4020
|
|
|
4021
|
-
// ../node_modules/.pnpm/@radix-ui+react-popover@1.1.14_@types+react-dom@19.1.
|
|
4021
|
+
// ../node_modules/.pnpm/@radix-ui+react-popover@1.1.14_@types+react-dom@19.1.7_@types+react@19.1.10__@types+react@19._5pli3pjrzvnhwxdx4uharw4pne/node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
4022
4022
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
4023
4023
|
var POPOVER_NAME = "Popover";
|
|
4024
4024
|
var [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
PopoverAnchor,
|
|
6
6
|
PopoverContent,
|
|
7
7
|
PopoverTrigger
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-5KZSH7JF.mjs";
|
|
9
|
+
import "../../chunk-65S4VY5K.mjs";
|
|
10
|
+
import "../../chunk-2PBWI3T6.mjs";
|
|
11
|
+
import "../../chunk-DAZBMK7R.mjs";
|
|
12
|
+
import "../../chunk-YN67J64M.mjs";
|
|
13
|
+
import "../../chunk-DXHYWJOY.mjs";
|
|
14
14
|
import "../../chunk-4J6OC4ZQ.mjs";
|
|
15
15
|
export {
|
|
16
16
|
Popover,
|
|
@@ -38,7 +38,7 @@ __export(switch_exports, {
|
|
|
38
38
|
module.exports = __toCommonJS(switch_exports);
|
|
39
39
|
var React10 = __toESM(require("react"));
|
|
40
40
|
|
|
41
|
-
// ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.
|
|
41
|
+
// ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.7_@types+react@19.1.10__@types+react@19.1._fejxofpsq622e35onylxv7dshm/node_modules/@radix-ui/react-switch/dist/index.mjs
|
|
42
42
|
var React9 = __toESM(require("react"), 1);
|
|
43
43
|
|
|
44
44
|
// ../node_modules/.pnpm/@radix-ui+primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
@@ -51,7 +51,7 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
// ../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.1.
|
|
54
|
+
// ../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
55
55
|
var React = __toESM(require("react"), 1);
|
|
56
56
|
function setRef(ref, value) {
|
|
57
57
|
if (typeof ref === "function") {
|
|
@@ -88,7 +88,7 @@ function useComposedRefs(...refs) {
|
|
|
88
88
|
return React.useCallback(composeRefs(...refs), refs);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
// ../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.1.
|
|
91
|
+
// ../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
92
92
|
var React2 = __toESM(require("react"), 1);
|
|
93
93
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
94
94
|
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
@@ -149,15 +149,15 @@ function composeContextScopes(...scopes) {
|
|
|
149
149
|
return createScope;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.1.
|
|
152
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
153
153
|
var React4 = __toESM(require("react"), 1);
|
|
154
154
|
|
|
155
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.1.
|
|
155
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
156
156
|
var React3 = __toESM(require("react"), 1);
|
|
157
157
|
var useLayoutEffect2 = globalThis?.document ? React3.useLayoutEffect : () => {
|
|
158
158
|
};
|
|
159
159
|
|
|
160
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.1.
|
|
160
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
161
161
|
var React22 = __toESM(require("react"), 1);
|
|
162
162
|
var useInsertionEffect = React4[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
163
163
|
function useControllableState({
|
|
@@ -225,7 +225,7 @@ function isFunction(value) {
|
|
|
225
225
|
}
|
|
226
226
|
var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
|
|
227
227
|
|
|
228
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@19.1.
|
|
228
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-use-previous/dist/index.mjs
|
|
229
229
|
var React5 = __toESM(require("react"), 1);
|
|
230
230
|
function usePrevious(value) {
|
|
231
231
|
const ref = React5.useRef({ value, previous: value });
|
|
@@ -238,7 +238,7 @@ function usePrevious(value) {
|
|
|
238
238
|
}, [value]);
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.1.
|
|
241
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
242
242
|
var React6 = __toESM(require("react"), 1);
|
|
243
243
|
function useSize(element) {
|
|
244
244
|
const [size, setSize] = React6.useState(void 0);
|
|
@@ -275,11 +275,11 @@ function useSize(element) {
|
|
|
275
275
|
return size;
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
// ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.
|
|
278
|
+
// ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.7_@types+react@19.1.10__@types+react@19_bg7nte3b3fyxsgg7dtnfoe3ceu/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
279
279
|
var React8 = __toESM(require("react"), 1);
|
|
280
280
|
var ReactDOM = __toESM(require("react-dom"), 1);
|
|
281
281
|
|
|
282
|
-
// ../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.1.
|
|
282
|
+
// ../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
283
283
|
var React7 = __toESM(require("react"), 1);
|
|
284
284
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
285
285
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -365,7 +365,7 @@ function getElementRef(element) {
|
|
|
365
365
|
return element.props.ref || element.ref;
|
|
366
366
|
}
|
|
367
367
|
|
|
368
|
-
// ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.
|
|
368
|
+
// ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.7_@types+react@19.1.10__@types+react@19_bg7nte3b3fyxsgg7dtnfoe3ceu/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
369
369
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
370
370
|
var NODES = [
|
|
371
371
|
"a",
|
|
@@ -400,7 +400,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
400
400
|
return { ...primitive, [node]: Node };
|
|
401
401
|
}, {});
|
|
402
402
|
|
|
403
|
-
// ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.
|
|
403
|
+
// ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.7_@types+react@19.1.10__@types+react@19.1._fejxofpsq622e35onylxv7dshm/node_modules/@radix-ui/react-switch/dist/index.mjs
|
|
404
404
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
405
405
|
var SWITCH_NAME = "Switch";
|
|
406
406
|
var [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
import {
|
|
5
5
|
Switch
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
6
|
+
} from "../../chunk-WUEXMQIT.mjs";
|
|
7
|
+
import "../../chunk-DAZBMK7R.mjs";
|
|
8
|
+
import "../../chunk-YN67J64M.mjs";
|
|
9
|
+
import "../../chunk-DXHYWJOY.mjs";
|
|
10
10
|
import "../../chunk-4J6OC4ZQ.mjs";
|
|
11
11
|
export {
|
|
12
12
|
Switch
|
|
@@ -4,7 +4,7 @@ import { a as CheckResult } from '../../genTypes-DdYlVEah.mjs';
|
|
|
4
4
|
import { b as Customer } from '../../cusTypes-Dco5eq7y.mjs';
|
|
5
5
|
import { E as Entity } from '../../entTypes-kUplkhdu.mjs';
|
|
6
6
|
import 'react';
|
|
7
|
-
import '../../ReactAutumnClient-
|
|
7
|
+
import '../../ReactAutumnClient-Dc-wJFoV.mjs';
|
|
8
8
|
import '../../client/types/clientEntTypes.mjs';
|
|
9
9
|
import '../../error-DHbclCVh.mjs';
|
|
10
10
|
import '../../attachTypes-DJIr5ldB.mjs';
|
|
@@ -4,7 +4,7 @@ import { a as CheckResult } from '../../genTypes-aPPwPimh.js';
|
|
|
4
4
|
import { b as Customer } from '../../cusTypes-k5jXe0qX.js';
|
|
5
5
|
import { E as Entity } from '../../entTypes-ktfnO6RI.js';
|
|
6
6
|
import 'react';
|
|
7
|
-
import '../../ReactAutumnClient-
|
|
7
|
+
import '../../ReactAutumnClient-BKSxQ-QD.js';
|
|
8
8
|
import '../../client/types/clientEntTypes.js';
|
|
9
9
|
import '../../error-DHbclCVh.js';
|
|
10
10
|
import '../../attachTypes-DVF4f7Hw.js';
|
|
@@ -6,7 +6,7 @@ import { B as BillingPortalResult } from '../../cusTypes-Dco5eq7y.mjs';
|
|
|
6
6
|
import { AutumnContextParams } from '../../AutumnContext.mjs';
|
|
7
7
|
import { TrackParams, CancelParams, OpenBillingPortalParams, SetupPaymentParams } from '../../client/types/clientGenTypes.mjs';
|
|
8
8
|
import { AttachParams, CheckoutParams } from '../../client/types/clientAttachTypes.mjs';
|
|
9
|
-
import { A as AutumnClient } from '../../ReactAutumnClient-
|
|
9
|
+
import { A as AutumnClient } from '../../ReactAutumnClient-Dc-wJFoV.mjs';
|
|
10
10
|
import '../../prodTypes-C8xRoBP7.mjs';
|
|
11
11
|
import 'zod/v4';
|
|
12
12
|
import 'react';
|
|
@@ -6,7 +6,7 @@ import { B as BillingPortalResult } from '../../cusTypes-k5jXe0qX.js';
|
|
|
6
6
|
import { AutumnContextParams } from '../../AutumnContext.js';
|
|
7
7
|
import { TrackParams, CancelParams, OpenBillingPortalParams, SetupPaymentParams } from '../../client/types/clientGenTypes.js';
|
|
8
8
|
import { AttachParams, CheckoutParams } from '../../client/types/clientAttachTypes.js';
|
|
9
|
-
import { A as AutumnClient } from '../../ReactAutumnClient-
|
|
9
|
+
import { A as AutumnClient } from '../../ReactAutumnClient-BKSxQ-QD.js';
|
|
10
10
|
import '../../prodTypes-C8xRoBP7.js';
|
|
11
11
|
import 'zod/v4';
|
|
12
12
|
import 'react';
|
|
@@ -1151,6 +1151,11 @@ var useAutumnBase = ({
|
|
|
1151
1151
|
const checkout = async (params) => {
|
|
1152
1152
|
const { data, error } = await client.checkout(params);
|
|
1153
1153
|
const { dialog, ...rest } = params;
|
|
1154
|
+
if (params.dialog && params.productIds) {
|
|
1155
|
+
throw new Error(
|
|
1156
|
+
"Dialog and productIds are not supported together in checkout()"
|
|
1157
|
+
);
|
|
1158
|
+
}
|
|
1154
1159
|
if (error) {
|
|
1155
1160
|
return { data, error };
|
|
1156
1161
|
}
|