autumn-js 0.1.38 → 0.1.40
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 +2 -1
- package/dist/libraries/backend/better-auth.d.ts +2 -1
- package/dist/libraries/react/{chunk-DEPJ74S4.mjs → chunk-GGJKNVL6.mjs} +27 -26
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.css +6 -0
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +4894 -4891
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +11 -11
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.css +6 -0
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +94 -94
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +11 -11
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +6 -0
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +543 -540
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +11 -11
- package/dist/libraries/react/components/ui/dialog.mjs +2 -2
- package/dist/libraries/react/components/ui/popover.mjs +2 -2
- package/dist/libraries/react/index.js +544 -541
- package/dist/libraries/react/index.mjs +545 -542
- package/dist/styles/global.css +6 -0
- package/package.json +2 -2
- package/dist/libraries/react/{chunk-YCHPTRJA.mjs → chunk-I274Z7T2.mjs} +3 -3
- package/dist/libraries/react/{chunk-47KEC6LH.mjs → chunk-MHAXHLX4.mjs} +3 -3
|
@@ -5,30 +5,30 @@ import {
|
|
|
5
5
|
CheckoutDialog,
|
|
6
6
|
PriceItem,
|
|
7
7
|
PricingDialogButton
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-GGJKNVL6.mjs";
|
|
9
|
+
import "../../chunk-URQMBRFZ.mjs";
|
|
10
|
+
import "../../chunk-GUM4HIGI.mjs";
|
|
11
|
+
import "../../chunk-I274Z7T2.mjs";
|
|
12
|
+
import "../../chunk-2LZIBRD4.mjs";
|
|
13
|
+
import "../../chunk-QEWVBDWJ.mjs";
|
|
9
14
|
import "../../chunk-I5ZGIAIX.mjs";
|
|
15
|
+
import "../../chunk-BLM4DAAR.mjs";
|
|
10
16
|
import "../../chunk-4KLTPVNG.mjs";
|
|
11
17
|
import "../../chunk-SWSFJTEQ.mjs";
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-2OHJ6PS6.mjs";
|
|
14
|
-
import "../../chunk-GUM4HIGI.mjs";
|
|
15
|
-
import "../../chunk-YCHPTRJA.mjs";
|
|
18
|
+
import "../../chunk-MHAXHLX4.mjs";
|
|
16
19
|
import "../../chunk-4QVAJKUF.mjs";
|
|
20
|
+
import "../../chunk-2OHJ6PS6.mjs";
|
|
17
21
|
import "../../chunk-5TLRC3ED.mjs";
|
|
18
|
-
import "../../chunk-2LZIBRD4.mjs";
|
|
19
|
-
import "../../chunk-QEWVBDWJ.mjs";
|
|
20
22
|
import "../../chunk-2GEDBGON.mjs";
|
|
21
23
|
import "../../chunk-DXHYWJOY.mjs";
|
|
22
|
-
import "../../chunk-BLM4DAAR.mjs";
|
|
23
|
-
import "../../chunk-URQMBRFZ.mjs";
|
|
24
24
|
import "../../chunk-WVKYZYFT.mjs";
|
|
25
|
-
import "../../chunk-35JJUJGK.mjs";
|
|
26
|
-
import "../../chunk-HEKBPI6U.mjs";
|
|
27
25
|
import "../../chunk-DIDEEVJB.mjs";
|
|
28
26
|
import "../../chunk-DTAJR247.mjs";
|
|
29
27
|
import "../../chunk-ZQPCEJFK.mjs";
|
|
30
28
|
import "../../chunk-IZEOJCTN.mjs";
|
|
31
29
|
import "../../chunk-4J6OC4ZQ.mjs";
|
|
30
|
+
import "../../chunk-35JJUJGK.mjs";
|
|
31
|
+
import "../../chunk-HEKBPI6U.mjs";
|
|
32
32
|
import "../../chunk-3VPXKYJ3.mjs";
|
|
33
33
|
import "../../chunk-XHXYZVYG.mjs";
|
|
34
34
|
import "../../chunk-RFSQBGLO.mjs";
|
|
@@ -590,6 +590,9 @@ body {
|
|
|
590
590
|
.au-animate-spin {
|
|
591
591
|
animation: au-spin 1s linear infinite;
|
|
592
592
|
}
|
|
593
|
+
.au-cursor-not-allowed {
|
|
594
|
+
cursor: not-allowed;
|
|
595
|
+
}
|
|
593
596
|
.au-cursor-pointer {
|
|
594
597
|
cursor: pointer;
|
|
595
598
|
}
|
|
@@ -925,6 +928,9 @@ body {
|
|
|
925
928
|
.au-opacity-70 {
|
|
926
929
|
opacity: 0.7;
|
|
927
930
|
}
|
|
931
|
+
.au-opacity-80 {
|
|
932
|
+
opacity: 0.8;
|
|
933
|
+
}
|
|
928
934
|
.au-shadow {
|
|
929
935
|
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
930
936
|
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
@@ -6809,13 +6809,10 @@ var Content22 = AccordionContent;
|
|
|
6809
6809
|
// src/libraries/react/components/checkout-dialog/checkout-dialog-synced.tsx
|
|
6810
6810
|
var import_react13 = require("react");
|
|
6811
6811
|
|
|
6812
|
-
// src/libraries/react/components/checkout-dialog/lib/checkout-content.tsx
|
|
6813
|
-
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
6814
|
-
|
|
6815
6812
|
// src/libraries/react/components/ui/accordion.tsx
|
|
6816
6813
|
var React33 = __toESM(require("react"));
|
|
6817
|
-
var
|
|
6818
|
-
var AccordionItem2 = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
6814
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
6815
|
+
var AccordionItem2 = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
6819
6816
|
Item,
|
|
6820
6817
|
{
|
|
6821
6818
|
ref,
|
|
@@ -6824,7 +6821,7 @@ var AccordionItem2 = React33.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
6824
6821
|
}
|
|
6825
6822
|
));
|
|
6826
6823
|
AccordionItem2.displayName = "AccordionItem";
|
|
6827
|
-
var AccordionTrigger2 = React33.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
6824
|
+
var AccordionTrigger2 = React33.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Header, { className: "au-flex", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
6828
6825
|
Trigger22,
|
|
6829
6826
|
{
|
|
6830
6827
|
ref,
|
|
@@ -6835,30 +6832,51 @@ var AccordionTrigger2 = React33.forwardRef(({ className, children, ...props }, r
|
|
|
6835
6832
|
...props,
|
|
6836
6833
|
children: [
|
|
6837
6834
|
children,
|
|
6838
|
-
/* @__PURE__ */ (0,
|
|
6835
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ChevronDown, { className: "au-h-4 au-w-4 au-shrink-0 au-text-muted-foreground au-transition-transform au-duration-200" })
|
|
6839
6836
|
]
|
|
6840
6837
|
}
|
|
6841
6838
|
) }));
|
|
6842
6839
|
AccordionTrigger2.displayName = Trigger22.displayName;
|
|
6843
|
-
var AccordionContent2 = React33.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
6840
|
+
var AccordionContent2 = React33.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
6844
6841
|
Content22,
|
|
6845
6842
|
{
|
|
6846
6843
|
ref,
|
|
6847
6844
|
className: "au-overflow-hidden au-text-sm data-[state=closed]:au-animate-accordion-up data-[state=open]:au-animate-accordion-down",
|
|
6848
6845
|
...props,
|
|
6849
|
-
children: /* @__PURE__ */ (0,
|
|
6846
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: cn("au-pb-4 au-pt-0", className), children })
|
|
6850
6847
|
}
|
|
6851
6848
|
));
|
|
6852
6849
|
AccordionContent2.displayName = Content22.displayName;
|
|
6853
6850
|
|
|
6851
|
+
// src/libraries/react/components/ui/input.tsx
|
|
6852
|
+
var React34 = __toESM(require("react"));
|
|
6853
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
6854
|
+
var Input = React34.forwardRef(
|
|
6855
|
+
({ className, type, onClick, ...props }, ref) => {
|
|
6856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
6857
|
+
"input",
|
|
6858
|
+
{
|
|
6859
|
+
type,
|
|
6860
|
+
className: cn(
|
|
6861
|
+
"file:au-text-foreground placeholder:au-text-muted-foreground selection:au-bg-primary selection:au-text-primary-foreground dark:au-bg-input/30 au-border-input au-flex au-h-9 au-w-full au-min-w-0 au-rounded-md au-border au-bg-transparent au-px-3 au-py-1 au-text-base au-shadow-xs au-transition-[color,box-shadow] au-outline-none file:au-inline-flex file:au-h-7 file:au-border-0 file:au-bg-transparent file:au-text-sm file:au-font-medium disabled:au-pointer-events-none disabled:au-cursor-not-allowed disabled:au-opacity-50 md:au-text-sm focus-visible:au-border-ring focus-visible:au-ring-ring/50 focus-visible:au-ring-[3px] aria-invalid:au-ring-destructive/20 dark:aria-invalid:au-ring-destructive/40 aria-invalid:au-border-destructive",
|
|
6862
|
+
className
|
|
6863
|
+
),
|
|
6864
|
+
ref,
|
|
6865
|
+
...props
|
|
6866
|
+
}
|
|
6867
|
+
);
|
|
6868
|
+
}
|
|
6869
|
+
);
|
|
6870
|
+
Input.displayName = "Input";
|
|
6871
|
+
|
|
6854
6872
|
// src/libraries/react/components/ui/popover.tsx
|
|
6855
|
-
var
|
|
6873
|
+
var React40 = __toESM(require("react"));
|
|
6856
6874
|
|
|
6857
6875
|
// ../node_modules/.pnpm/@radix-ui+react-popover@1.1.14_@types+react-dom@19.1.9_@types+react@19.1.10__@types+react@19._2d5qzp46jobjymz4ef7wsko3em/node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
6858
|
-
var
|
|
6876
|
+
var React39 = __toESM(require("react"), 1);
|
|
6859
6877
|
|
|
6860
6878
|
// ../node_modules/.pnpm/@radix-ui+react-popper@1.2.7_@types+react-dom@19.1.9_@types+react@19.1.10__@types+react@19.1._rx2bw5lpqtxi7ji4o3uo2rsuda/node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
6861
|
-
var
|
|
6879
|
+
var React38 = __toESM(require("react"), 1);
|
|
6862
6880
|
|
|
6863
6881
|
// ../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
6864
6882
|
var sides = ["top", "right", "bottom", "left"];
|
|
@@ -8459,7 +8477,7 @@ var computePosition2 = (reference, floating, options) => {
|
|
|
8459
8477
|
};
|
|
8460
8478
|
|
|
8461
8479
|
// ../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
|
|
8462
|
-
var
|
|
8480
|
+
var React35 = __toESM(require("react"), 1);
|
|
8463
8481
|
var import_react12 = require("react");
|
|
8464
8482
|
var ReactDOM3 = __toESM(require("react-dom"), 1);
|
|
8465
8483
|
var isClient = typeof document !== "undefined";
|
|
@@ -8525,7 +8543,7 @@ function roundByDPR(element, value) {
|
|
|
8525
8543
|
return Math.round(value * dpr) / dpr;
|
|
8526
8544
|
}
|
|
8527
8545
|
function useLatestRef(value) {
|
|
8528
|
-
const ref =
|
|
8546
|
+
const ref = React35.useRef(value);
|
|
8529
8547
|
index(() => {
|
|
8530
8548
|
ref.current = value;
|
|
8531
8549
|
});
|
|
@@ -8548,7 +8566,7 @@ function useFloating(options) {
|
|
|
8548
8566
|
whileElementsMounted,
|
|
8549
8567
|
open
|
|
8550
8568
|
} = options;
|
|
8551
|
-
const [data, setData] =
|
|
8569
|
+
const [data, setData] = React35.useState({
|
|
8552
8570
|
x: 0,
|
|
8553
8571
|
y: 0,
|
|
8554
8572
|
strategy,
|
|
@@ -8556,19 +8574,19 @@ function useFloating(options) {
|
|
|
8556
8574
|
middlewareData: {},
|
|
8557
8575
|
isPositioned: false
|
|
8558
8576
|
});
|
|
8559
|
-
const [latestMiddleware, setLatestMiddleware] =
|
|
8577
|
+
const [latestMiddleware, setLatestMiddleware] = React35.useState(middleware);
|
|
8560
8578
|
if (!deepEqual(latestMiddleware, middleware)) {
|
|
8561
8579
|
setLatestMiddleware(middleware);
|
|
8562
8580
|
}
|
|
8563
|
-
const [_reference, _setReference] =
|
|
8564
|
-
const [_floating, _setFloating] =
|
|
8565
|
-
const setReference =
|
|
8581
|
+
const [_reference, _setReference] = React35.useState(null);
|
|
8582
|
+
const [_floating, _setFloating] = React35.useState(null);
|
|
8583
|
+
const setReference = React35.useCallback((node) => {
|
|
8566
8584
|
if (node !== referenceRef.current) {
|
|
8567
8585
|
referenceRef.current = node;
|
|
8568
8586
|
_setReference(node);
|
|
8569
8587
|
}
|
|
8570
8588
|
}, []);
|
|
8571
|
-
const setFloating =
|
|
8589
|
+
const setFloating = React35.useCallback((node) => {
|
|
8572
8590
|
if (node !== floatingRef.current) {
|
|
8573
8591
|
floatingRef.current = node;
|
|
8574
8592
|
_setFloating(node);
|
|
@@ -8576,14 +8594,14 @@ function useFloating(options) {
|
|
|
8576
8594
|
}, []);
|
|
8577
8595
|
const referenceEl = externalReference || _reference;
|
|
8578
8596
|
const floatingEl = externalFloating || _floating;
|
|
8579
|
-
const referenceRef =
|
|
8580
|
-
const floatingRef =
|
|
8581
|
-
const dataRef =
|
|
8597
|
+
const referenceRef = React35.useRef(null);
|
|
8598
|
+
const floatingRef = React35.useRef(null);
|
|
8599
|
+
const dataRef = React35.useRef(data);
|
|
8582
8600
|
const hasWhileElementsMounted = whileElementsMounted != null;
|
|
8583
8601
|
const whileElementsMountedRef = useLatestRef(whileElementsMounted);
|
|
8584
8602
|
const platformRef = useLatestRef(platform2);
|
|
8585
8603
|
const openRef = useLatestRef(open);
|
|
8586
|
-
const update =
|
|
8604
|
+
const update = React35.useCallback(() => {
|
|
8587
8605
|
if (!referenceRef.current || !floatingRef.current) {
|
|
8588
8606
|
return;
|
|
8589
8607
|
}
|
|
@@ -8621,7 +8639,7 @@ function useFloating(options) {
|
|
|
8621
8639
|
}));
|
|
8622
8640
|
}
|
|
8623
8641
|
}, [open]);
|
|
8624
|
-
const isMountedRef =
|
|
8642
|
+
const isMountedRef = React35.useRef(false);
|
|
8625
8643
|
index(() => {
|
|
8626
8644
|
isMountedRef.current = true;
|
|
8627
8645
|
return () => {
|
|
@@ -8638,17 +8656,17 @@ function useFloating(options) {
|
|
|
8638
8656
|
update();
|
|
8639
8657
|
}
|
|
8640
8658
|
}, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
|
|
8641
|
-
const refs =
|
|
8659
|
+
const refs = React35.useMemo(() => ({
|
|
8642
8660
|
reference: referenceRef,
|
|
8643
8661
|
floating: floatingRef,
|
|
8644
8662
|
setReference,
|
|
8645
8663
|
setFloating
|
|
8646
8664
|
}), [setReference, setFloating]);
|
|
8647
|
-
const elements =
|
|
8665
|
+
const elements = React35.useMemo(() => ({
|
|
8648
8666
|
reference: referenceEl,
|
|
8649
8667
|
floating: floatingEl
|
|
8650
8668
|
}), [referenceEl, floatingEl]);
|
|
8651
|
-
const floatingStyles =
|
|
8669
|
+
const floatingStyles = React35.useMemo(() => {
|
|
8652
8670
|
const initialStyles = {
|
|
8653
8671
|
position: strategy,
|
|
8654
8672
|
left: 0,
|
|
@@ -8674,7 +8692,7 @@ function useFloating(options) {
|
|
|
8674
8692
|
top: y
|
|
8675
8693
|
};
|
|
8676
8694
|
}, [strategy, transform, elements.floating, data.x, data.y]);
|
|
8677
|
-
return
|
|
8695
|
+
return React35.useMemo(() => ({
|
|
8678
8696
|
...data,
|
|
8679
8697
|
update,
|
|
8680
8698
|
refs,
|
|
@@ -8743,10 +8761,10 @@ var arrow3 = (options, deps) => ({
|
|
|
8743
8761
|
});
|
|
8744
8762
|
|
|
8745
8763
|
// ../node_modules/.pnpm/@radix-ui+react-arrow@1.1.7_@types+react-dom@19.1.9_@types+react@19.1.10__@types+react@19.1.1_7w5nl47bqckuaclutkvv5v7iie/node_modules/@radix-ui/react-arrow/dist/index.mjs
|
|
8746
|
-
var
|
|
8764
|
+
var React36 = __toESM(require("react"), 1);
|
|
8747
8765
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
8748
8766
|
var NAME = "Arrow";
|
|
8749
|
-
var Arrow =
|
|
8767
|
+
var Arrow = React36.forwardRef((props, forwardedRef) => {
|
|
8750
8768
|
const { children, width = 10, height = 5, ...arrowProps } = props;
|
|
8751
8769
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
8752
8770
|
Primitive.svg,
|
|
@@ -8765,9 +8783,9 @@ Arrow.displayName = NAME;
|
|
|
8765
8783
|
var Root3 = Arrow;
|
|
8766
8784
|
|
|
8767
8785
|
// ../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
|
|
8768
|
-
var
|
|
8786
|
+
var React37 = __toESM(require("react"), 1);
|
|
8769
8787
|
function useSize(element) {
|
|
8770
|
-
const [size4, setSize] =
|
|
8788
|
+
const [size4, setSize] = React37.useState(void 0);
|
|
8771
8789
|
useLayoutEffect2(() => {
|
|
8772
8790
|
if (element) {
|
|
8773
8791
|
setSize({ width: element.offsetWidth, height: element.offsetHeight });
|
|
@@ -8808,18 +8826,18 @@ var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
|
|
|
8808
8826
|
var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
|
|
8809
8827
|
var Popper = (props) => {
|
|
8810
8828
|
const { __scopePopper, children } = props;
|
|
8811
|
-
const [anchor, setAnchor] =
|
|
8829
|
+
const [anchor, setAnchor] = React38.useState(null);
|
|
8812
8830
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
|
|
8813
8831
|
};
|
|
8814
8832
|
Popper.displayName = POPPER_NAME;
|
|
8815
8833
|
var ANCHOR_NAME = "PopperAnchor";
|
|
8816
|
-
var PopperAnchor =
|
|
8834
|
+
var PopperAnchor = React38.forwardRef(
|
|
8817
8835
|
(props, forwardedRef) => {
|
|
8818
8836
|
const { __scopePopper, virtualRef, ...anchorProps } = props;
|
|
8819
8837
|
const context = usePopperContext(ANCHOR_NAME, __scopePopper);
|
|
8820
|
-
const ref =
|
|
8838
|
+
const ref = React38.useRef(null);
|
|
8821
8839
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
8822
|
-
|
|
8840
|
+
React38.useEffect(() => {
|
|
8823
8841
|
context.onAnchorChange(virtualRef?.current || ref.current);
|
|
8824
8842
|
});
|
|
8825
8843
|
return virtualRef ? null : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Primitive.div, { ...anchorProps, ref: composedRefs });
|
|
@@ -8828,7 +8846,7 @@ var PopperAnchor = React37.forwardRef(
|
|
|
8828
8846
|
PopperAnchor.displayName = ANCHOR_NAME;
|
|
8829
8847
|
var CONTENT_NAME4 = "PopperContent";
|
|
8830
8848
|
var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME4);
|
|
8831
|
-
var PopperContent =
|
|
8849
|
+
var PopperContent = React38.forwardRef(
|
|
8832
8850
|
(props, forwardedRef) => {
|
|
8833
8851
|
const {
|
|
8834
8852
|
__scopePopper,
|
|
@@ -8847,9 +8865,9 @@ var PopperContent = React37.forwardRef(
|
|
|
8847
8865
|
...contentProps
|
|
8848
8866
|
} = props;
|
|
8849
8867
|
const context = usePopperContext(CONTENT_NAME4, __scopePopper);
|
|
8850
|
-
const [content, setContent] =
|
|
8868
|
+
const [content, setContent] = React38.useState(null);
|
|
8851
8869
|
const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
|
|
8852
|
-
const [arrow4, setArrow] =
|
|
8870
|
+
const [arrow4, setArrow] = React38.useState(null);
|
|
8853
8871
|
const arrowSize = useSize(arrow4);
|
|
8854
8872
|
const arrowWidth = arrowSize?.width ?? 0;
|
|
8855
8873
|
const arrowHeight = arrowSize?.height ?? 0;
|
|
@@ -8911,7 +8929,7 @@ var PopperContent = React37.forwardRef(
|
|
|
8911
8929
|
const arrowX = middlewareData.arrow?.x;
|
|
8912
8930
|
const arrowY = middlewareData.arrow?.y;
|
|
8913
8931
|
const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
|
|
8914
|
-
const [contentZIndex, setContentZIndex] =
|
|
8932
|
+
const [contentZIndex, setContentZIndex] = React38.useState();
|
|
8915
8933
|
useLayoutEffect2(() => {
|
|
8916
8934
|
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
8917
8935
|
}, [content]);
|
|
@@ -8977,7 +8995,7 @@ var OPPOSITE_SIDE = {
|
|
|
8977
8995
|
bottom: "top",
|
|
8978
8996
|
left: "right"
|
|
8979
8997
|
};
|
|
8980
|
-
var PopperArrow =
|
|
8998
|
+
var PopperArrow = React38.forwardRef(function PopperArrow2(props, forwardedRef) {
|
|
8981
8999
|
const { __scopePopper, ...arrowProps } = props;
|
|
8982
9000
|
const contentContext = useContentContext(ARROW_NAME, __scopePopper);
|
|
8983
9001
|
const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
|
|
@@ -9086,8 +9104,8 @@ var Popover = (props) => {
|
|
|
9086
9104
|
modal = false
|
|
9087
9105
|
} = props;
|
|
9088
9106
|
const popperScope = usePopperScope(__scopePopover);
|
|
9089
|
-
const triggerRef =
|
|
9090
|
-
const [hasCustomAnchor, setHasCustomAnchor] =
|
|
9107
|
+
const triggerRef = React39.useRef(null);
|
|
9108
|
+
const [hasCustomAnchor, setHasCustomAnchor] = React39.useState(false);
|
|
9091
9109
|
const [open, setOpen] = useControllableState({
|
|
9092
9110
|
prop: openProp,
|
|
9093
9111
|
defaultProp: defaultOpen ?? false,
|
|
@@ -9102,10 +9120,10 @@ var Popover = (props) => {
|
|
|
9102
9120
|
triggerRef,
|
|
9103
9121
|
open,
|
|
9104
9122
|
onOpenChange: setOpen,
|
|
9105
|
-
onOpenToggle:
|
|
9123
|
+
onOpenToggle: React39.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
|
9106
9124
|
hasCustomAnchor,
|
|
9107
|
-
onCustomAnchorAdd:
|
|
9108
|
-
onCustomAnchorRemove:
|
|
9125
|
+
onCustomAnchorAdd: React39.useCallback(() => setHasCustomAnchor(true), []),
|
|
9126
|
+
onCustomAnchorRemove: React39.useCallback(() => setHasCustomAnchor(false), []),
|
|
9109
9127
|
modal,
|
|
9110
9128
|
children
|
|
9111
9129
|
}
|
|
@@ -9113,13 +9131,13 @@ var Popover = (props) => {
|
|
|
9113
9131
|
};
|
|
9114
9132
|
Popover.displayName = POPOVER_NAME;
|
|
9115
9133
|
var ANCHOR_NAME2 = "PopoverAnchor";
|
|
9116
|
-
var PopoverAnchor =
|
|
9134
|
+
var PopoverAnchor = React39.forwardRef(
|
|
9117
9135
|
(props, forwardedRef) => {
|
|
9118
9136
|
const { __scopePopover, ...anchorProps } = props;
|
|
9119
9137
|
const context = usePopoverContext(ANCHOR_NAME2, __scopePopover);
|
|
9120
9138
|
const popperScope = usePopperScope(__scopePopover);
|
|
9121
9139
|
const { onCustomAnchorAdd, onCustomAnchorRemove } = context;
|
|
9122
|
-
|
|
9140
|
+
React39.useEffect(() => {
|
|
9123
9141
|
onCustomAnchorAdd();
|
|
9124
9142
|
return () => onCustomAnchorRemove();
|
|
9125
9143
|
}, [onCustomAnchorAdd, onCustomAnchorRemove]);
|
|
@@ -9128,7 +9146,7 @@ var PopoverAnchor = React38.forwardRef(
|
|
|
9128
9146
|
);
|
|
9129
9147
|
PopoverAnchor.displayName = ANCHOR_NAME2;
|
|
9130
9148
|
var TRIGGER_NAME4 = "PopoverTrigger";
|
|
9131
|
-
var PopoverTrigger =
|
|
9149
|
+
var PopoverTrigger = React39.forwardRef(
|
|
9132
9150
|
(props, forwardedRef) => {
|
|
9133
9151
|
const { __scopePopover, ...triggerProps } = props;
|
|
9134
9152
|
const context = usePopoverContext(TRIGGER_NAME4, __scopePopover);
|
|
@@ -9162,7 +9180,7 @@ var PopoverPortal = (props) => {
|
|
|
9162
9180
|
};
|
|
9163
9181
|
PopoverPortal.displayName = PORTAL_NAME3;
|
|
9164
9182
|
var CONTENT_NAME5 = "PopoverContent";
|
|
9165
|
-
var PopoverContent =
|
|
9183
|
+
var PopoverContent = React39.forwardRef(
|
|
9166
9184
|
(props, forwardedRef) => {
|
|
9167
9185
|
const portalContext = usePortalContext2(CONTENT_NAME5, props.__scopePopover);
|
|
9168
9186
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
@@ -9172,13 +9190,13 @@ var PopoverContent = React38.forwardRef(
|
|
|
9172
9190
|
);
|
|
9173
9191
|
PopoverContent.displayName = CONTENT_NAME5;
|
|
9174
9192
|
var Slot3 = createSlot("PopoverContent.RemoveScroll");
|
|
9175
|
-
var PopoverContentModal =
|
|
9193
|
+
var PopoverContentModal = React39.forwardRef(
|
|
9176
9194
|
(props, forwardedRef) => {
|
|
9177
9195
|
const context = usePopoverContext(CONTENT_NAME5, props.__scopePopover);
|
|
9178
|
-
const contentRef =
|
|
9196
|
+
const contentRef = React39.useRef(null);
|
|
9179
9197
|
const composedRefs = useComposedRefs(forwardedRef, contentRef);
|
|
9180
|
-
const isRightClickOutsideRef =
|
|
9181
|
-
|
|
9198
|
+
const isRightClickOutsideRef = React39.useRef(false);
|
|
9199
|
+
React39.useEffect(() => {
|
|
9182
9200
|
const content = contentRef.current;
|
|
9183
9201
|
if (content) return hideOthers(content);
|
|
9184
9202
|
}, []);
|
|
@@ -9212,11 +9230,11 @@ var PopoverContentModal = React38.forwardRef(
|
|
|
9212
9230
|
) });
|
|
9213
9231
|
}
|
|
9214
9232
|
);
|
|
9215
|
-
var PopoverContentNonModal =
|
|
9233
|
+
var PopoverContentNonModal = React39.forwardRef(
|
|
9216
9234
|
(props, forwardedRef) => {
|
|
9217
9235
|
const context = usePopoverContext(CONTENT_NAME5, props.__scopePopover);
|
|
9218
|
-
const hasInteractedOutsideRef =
|
|
9219
|
-
const hasPointerDownOutsideRef =
|
|
9236
|
+
const hasInteractedOutsideRef = React39.useRef(false);
|
|
9237
|
+
const hasPointerDownOutsideRef = React39.useRef(false);
|
|
9220
9238
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
9221
9239
|
PopoverContentImpl,
|
|
9222
9240
|
{
|
|
@@ -9252,7 +9270,7 @@ var PopoverContentNonModal = React38.forwardRef(
|
|
|
9252
9270
|
);
|
|
9253
9271
|
}
|
|
9254
9272
|
);
|
|
9255
|
-
var PopoverContentImpl =
|
|
9273
|
+
var PopoverContentImpl = React39.forwardRef(
|
|
9256
9274
|
(props, forwardedRef) => {
|
|
9257
9275
|
const {
|
|
9258
9276
|
__scopePopover,
|
|
@@ -9316,7 +9334,7 @@ var PopoverContentImpl = React38.forwardRef(
|
|
|
9316
9334
|
}
|
|
9317
9335
|
);
|
|
9318
9336
|
var CLOSE_NAME2 = "PopoverClose";
|
|
9319
|
-
var PopoverClose =
|
|
9337
|
+
var PopoverClose = React39.forwardRef(
|
|
9320
9338
|
(props, forwardedRef) => {
|
|
9321
9339
|
const { __scopePopover, ...closeProps } = props;
|
|
9322
9340
|
const context = usePopoverContext(CLOSE_NAME2, __scopePopover);
|
|
@@ -9333,7 +9351,7 @@ var PopoverClose = React38.forwardRef(
|
|
|
9333
9351
|
);
|
|
9334
9352
|
PopoverClose.displayName = CLOSE_NAME2;
|
|
9335
9353
|
var ARROW_NAME2 = "PopoverArrow";
|
|
9336
|
-
var PopoverArrow =
|
|
9354
|
+
var PopoverArrow = React39.forwardRef(
|
|
9337
9355
|
(props, forwardedRef) => {
|
|
9338
9356
|
const { __scopePopover, ...arrowProps } = props;
|
|
9339
9357
|
const popperScope = usePopperScope(__scopePopover);
|
|
@@ -9348,7 +9366,7 @@ var Content23 = PopoverContent;
|
|
|
9348
9366
|
|
|
9349
9367
|
// src/libraries/react/components/ui/popover.tsx
|
|
9350
9368
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
9351
|
-
var PopoverContent2 =
|
|
9369
|
+
var PopoverContent2 = React40.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
9352
9370
|
Content23,
|
|
9353
9371
|
{
|
|
9354
9372
|
ref,
|
|
@@ -9363,26 +9381,8 @@ var PopoverContent2 = React39.forwardRef(({ className, align = "center", sideOff
|
|
|
9363
9381
|
));
|
|
9364
9382
|
PopoverContent2.displayName = Content23.displayName;
|
|
9365
9383
|
|
|
9366
|
-
// src/libraries/react/components/
|
|
9367
|
-
var React40 = __toESM(require("react"));
|
|
9384
|
+
// src/libraries/react/components/checkout-dialog/lib/checkout-content.tsx
|
|
9368
9385
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
9369
|
-
var Input = React40.forwardRef(
|
|
9370
|
-
({ className, type, onClick, ...props }, ref) => {
|
|
9371
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
9372
|
-
"input",
|
|
9373
|
-
{
|
|
9374
|
-
type,
|
|
9375
|
-
className: cn(
|
|
9376
|
-
"file:au-text-foreground placeholder:au-text-muted-foreground selection:au-bg-primary selection:au-text-primary-foreground dark:au-bg-input/30 au-border-input au-flex au-h-9 au-w-full au-min-w-0 au-rounded-md au-border au-bg-transparent au-px-3 au-py-1 au-text-base au-shadow-xs au-transition-[color,box-shadow] au-outline-none file:au-inline-flex file:au-h-7 file:au-border-0 file:au-bg-transparent file:au-text-sm file:au-font-medium disabled:au-pointer-events-none disabled:au-cursor-not-allowed disabled:au-opacity-50 md:au-text-sm focus-visible:au-border-ring focus-visible:au-ring-ring/50 focus-visible:au-ring-[3px] aria-invalid:au-ring-destructive/20 dark:aria-invalid:au-ring-destructive/40 aria-invalid:au-border-destructive",
|
|
9377
|
-
className
|
|
9378
|
-
),
|
|
9379
|
-
ref,
|
|
9380
|
-
...props
|
|
9381
|
-
}
|
|
9382
|
-
);
|
|
9383
|
-
}
|
|
9384
|
-
);
|
|
9385
|
-
Input.displayName = "Input";
|
|
9386
9386
|
|
|
9387
9387
|
// src/libraries/react/components/checkout-dialog/checkout-dialog-synced.tsx
|
|
9388
9388
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
@@ -9392,16 +9392,16 @@ var import_react14 = __toESM(require("react"));
|
|
|
9392
9392
|
var import_react15 = require("react");
|
|
9393
9393
|
|
|
9394
9394
|
// src/libraries/react/components/ui/switch.tsx
|
|
9395
|
-
var
|
|
9395
|
+
var React43 = __toESM(require("react"));
|
|
9396
9396
|
|
|
9397
9397
|
// ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.9_@types+react@19.1.10__@types+react@19.1._mh2w7rehnd5adfujfuln6l4w5m/node_modules/@radix-ui/react-switch/dist/index.mjs
|
|
9398
|
-
var
|
|
9398
|
+
var React42 = __toESM(require("react"), 1);
|
|
9399
9399
|
|
|
9400
9400
|
// ../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
|
|
9401
|
-
var
|
|
9401
|
+
var React41 = __toESM(require("react"), 1);
|
|
9402
9402
|
function usePrevious(value) {
|
|
9403
|
-
const ref =
|
|
9404
|
-
return
|
|
9403
|
+
const ref = React41.useRef({ value, previous: value });
|
|
9404
|
+
return React41.useMemo(() => {
|
|
9405
9405
|
if (ref.current.value !== value) {
|
|
9406
9406
|
ref.current.previous = ref.current.value;
|
|
9407
9407
|
ref.current.value = value;
|
|
@@ -9415,7 +9415,7 @@ var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
|
9415
9415
|
var SWITCH_NAME = "Switch";
|
|
9416
9416
|
var [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);
|
|
9417
9417
|
var [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME);
|
|
9418
|
-
var Switch =
|
|
9418
|
+
var Switch = React42.forwardRef(
|
|
9419
9419
|
(props, forwardedRef) => {
|
|
9420
9420
|
const {
|
|
9421
9421
|
__scopeSwitch,
|
|
@@ -9429,9 +9429,9 @@ var Switch = React43.forwardRef(
|
|
|
9429
9429
|
form,
|
|
9430
9430
|
...switchProps
|
|
9431
9431
|
} = props;
|
|
9432
|
-
const [button, setButton] =
|
|
9432
|
+
const [button, setButton] = React42.useState(null);
|
|
9433
9433
|
const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));
|
|
9434
|
-
const hasConsumerStoppedPropagationRef =
|
|
9434
|
+
const hasConsumerStoppedPropagationRef = React42.useRef(false);
|
|
9435
9435
|
const isFormControl = button ? form || !!button.closest("form") : true;
|
|
9436
9436
|
const [checked, setChecked] = useControllableState({
|
|
9437
9437
|
prop: checkedProp,
|
|
@@ -9481,7 +9481,7 @@ var Switch = React43.forwardRef(
|
|
|
9481
9481
|
);
|
|
9482
9482
|
Switch.displayName = SWITCH_NAME;
|
|
9483
9483
|
var THUMB_NAME = "SwitchThumb";
|
|
9484
|
-
var SwitchThumb =
|
|
9484
|
+
var SwitchThumb = React42.forwardRef(
|
|
9485
9485
|
(props, forwardedRef) => {
|
|
9486
9486
|
const { __scopeSwitch, ...thumbProps } = props;
|
|
9487
9487
|
const context = useSwitchContext(THUMB_NAME, __scopeSwitch);
|
|
@@ -9498,7 +9498,7 @@ var SwitchThumb = React43.forwardRef(
|
|
|
9498
9498
|
);
|
|
9499
9499
|
SwitchThumb.displayName = THUMB_NAME;
|
|
9500
9500
|
var BUBBLE_INPUT_NAME = "SwitchBubbleInput";
|
|
9501
|
-
var SwitchBubbleInput =
|
|
9501
|
+
var SwitchBubbleInput = React42.forwardRef(
|
|
9502
9502
|
({
|
|
9503
9503
|
__scopeSwitch,
|
|
9504
9504
|
control,
|
|
@@ -9506,11 +9506,11 @@ var SwitchBubbleInput = React43.forwardRef(
|
|
|
9506
9506
|
bubbles = true,
|
|
9507
9507
|
...props
|
|
9508
9508
|
}, forwardedRef) => {
|
|
9509
|
-
const ref =
|
|
9509
|
+
const ref = React42.useRef(null);
|
|
9510
9510
|
const composedRefs = useComposedRefs(ref, forwardedRef);
|
|
9511
9511
|
const prevChecked = usePrevious(checked);
|
|
9512
9512
|
const controlSize = useSize(control);
|
|
9513
|
-
|
|
9513
|
+
React42.useEffect(() => {
|
|
9514
9514
|
const input = ref.current;
|
|
9515
9515
|
if (!input) return;
|
|
9516
9516
|
const inputProto = window.HTMLInputElement.prototype;
|
|
@@ -9555,7 +9555,7 @@ var Thumb = SwitchThumb;
|
|
|
9555
9555
|
|
|
9556
9556
|
// src/libraries/react/components/ui/switch.tsx
|
|
9557
9557
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
9558
|
-
var Switch2 =
|
|
9558
|
+
var Switch2 = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
9559
9559
|
Root4,
|
|
9560
9560
|
{
|
|
9561
9561
|
className: cn(
|
|
@@ -3,30 +3,30 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
import {
|
|
5
5
|
PaywallDialog
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-GGJKNVL6.mjs";
|
|
7
|
+
import "../../chunk-URQMBRFZ.mjs";
|
|
8
|
+
import "../../chunk-GUM4HIGI.mjs";
|
|
9
|
+
import "../../chunk-I274Z7T2.mjs";
|
|
10
|
+
import "../../chunk-2LZIBRD4.mjs";
|
|
11
|
+
import "../../chunk-QEWVBDWJ.mjs";
|
|
7
12
|
import "../../chunk-I5ZGIAIX.mjs";
|
|
13
|
+
import "../../chunk-BLM4DAAR.mjs";
|
|
8
14
|
import "../../chunk-4KLTPVNG.mjs";
|
|
9
15
|
import "../../chunk-SWSFJTEQ.mjs";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-2OHJ6PS6.mjs";
|
|
12
|
-
import "../../chunk-GUM4HIGI.mjs";
|
|
13
|
-
import "../../chunk-YCHPTRJA.mjs";
|
|
16
|
+
import "../../chunk-MHAXHLX4.mjs";
|
|
14
17
|
import "../../chunk-4QVAJKUF.mjs";
|
|
18
|
+
import "../../chunk-2OHJ6PS6.mjs";
|
|
15
19
|
import "../../chunk-5TLRC3ED.mjs";
|
|
16
|
-
import "../../chunk-2LZIBRD4.mjs";
|
|
17
|
-
import "../../chunk-QEWVBDWJ.mjs";
|
|
18
20
|
import "../../chunk-2GEDBGON.mjs";
|
|
19
21
|
import "../../chunk-DXHYWJOY.mjs";
|
|
20
|
-
import "../../chunk-BLM4DAAR.mjs";
|
|
21
|
-
import "../../chunk-URQMBRFZ.mjs";
|
|
22
22
|
import "../../chunk-WVKYZYFT.mjs";
|
|
23
|
-
import "../../chunk-35JJUJGK.mjs";
|
|
24
|
-
import "../../chunk-HEKBPI6U.mjs";
|
|
25
23
|
import "../../chunk-DIDEEVJB.mjs";
|
|
26
24
|
import "../../chunk-DTAJR247.mjs";
|
|
27
25
|
import "../../chunk-ZQPCEJFK.mjs";
|
|
28
26
|
import "../../chunk-IZEOJCTN.mjs";
|
|
29
27
|
import "../../chunk-4J6OC4ZQ.mjs";
|
|
28
|
+
import "../../chunk-35JJUJGK.mjs";
|
|
29
|
+
import "../../chunk-HEKBPI6U.mjs";
|
|
30
30
|
import "../../chunk-3VPXKYJ3.mjs";
|
|
31
31
|
import "../../chunk-XHXYZVYG.mjs";
|
|
32
32
|
import "../../chunk-RFSQBGLO.mjs";
|
|
@@ -590,6 +590,9 @@ body {
|
|
|
590
590
|
.au-animate-spin {
|
|
591
591
|
animation: au-spin 1s linear infinite;
|
|
592
592
|
}
|
|
593
|
+
.au-cursor-not-allowed {
|
|
594
|
+
cursor: not-allowed;
|
|
595
|
+
}
|
|
593
596
|
.au-cursor-pointer {
|
|
594
597
|
cursor: pointer;
|
|
595
598
|
}
|
|
@@ -925,6 +928,9 @@ body {
|
|
|
925
928
|
.au-opacity-70 {
|
|
926
929
|
opacity: 0.7;
|
|
927
930
|
}
|
|
931
|
+
.au-opacity-80 {
|
|
932
|
+
opacity: 0.8;
|
|
933
|
+
}
|
|
928
934
|
.au-shadow {
|
|
929
935
|
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
930
936
|
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|