autumn-js 0.0.101 → 0.0.102
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/compose/index.d.mts +67 -93
- package/dist/compose/index.d.ts +67 -93
- package/dist/compose/index.js +14 -83
- package/dist/compose/index.mjs +14 -80
- package/dist/libraries/backend/better-auth.d.mts +18 -18
- package/dist/libraries/backend/better-auth.d.ts +18 -18
- package/dist/libraries/backend/elysia.d.mts +1 -1
- package/dist/libraries/backend/elysia.d.ts +1 -1
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/next.js +94 -94
- package/dist/libraries/backend/next.mjs +94 -94
- package/dist/libraries/backend/{referralTypes-HAk2vTns.d.ts → referralTypes-D1Q2i3mG.d.ts} +28 -27
- package/dist/libraries/backend/{referralTypes-Dg9pRvI7.d.mts → referralTypes-Dfg6if8j.d.mts} +28 -27
- package/dist/libraries/backend/tanstack.js +2 -2
- package/dist/libraries/backend/tanstack.mjs +2 -2
- package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
- package/dist/libraries/react/AutumnContext.d.mts +4 -4
- package/dist/libraries/react/AutumnContext.d.ts +4 -4
- package/dist/libraries/react/AutumnContext.mjs +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.mts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.ts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.js +7 -2
- package/dist/libraries/react/BaseAutumnProvider.mjs +9 -9
- package/dist/libraries/react/{ReactAutumnClient-B4P_QjY1.d.ts → ReactAutumnClient-DBbq29Nn.d.ts} +3 -3
- package/dist/libraries/react/{ReactAutumnClient-DCdPx-ps.d.mts → ReactAutumnClient-YzfxjqPK.d.mts} +3 -3
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.js +7 -2
- package/dist/libraries/react/ReactAutumnProvider.mjs +10 -10
- package/dist/libraries/react/{chunk-T5PIJ4HG.mjs → chunk-3VHO7VUQ.mjs} +4 -3
- package/dist/libraries/react/{chunk-DVMVIAZE.mjs → chunk-5NDO7C7R.mjs} +3 -3
- package/dist/libraries/react/{chunk-AOJCMXVS.mjs → chunk-5URK7LI3.mjs} +3 -3
- package/dist/libraries/react/{chunk-YLZ5NFYO.mjs → chunk-AL3VJLFU.mjs} +1 -1
- package/dist/libraries/react/{chunk-LVDONEVF.mjs → chunk-CE33P32V.mjs} +7 -3
- package/dist/libraries/react/{chunk-G3FBFZLU.mjs → chunk-GQ3TAHSV.mjs} +1 -1
- package/dist/libraries/react/{chunk-CAMHARUX.mjs → chunk-H2NGSCWI.mjs} +2 -2
- package/dist/libraries/react/{chunk-6CJ3FB74.mjs → chunk-JI7WQ6AC.mjs} +2 -2
- package/dist/libraries/react/{chunk-24EVX3BR.mjs → chunk-LKV32IPT.mjs} +20 -41
- package/dist/libraries/react/{chunk-RQG36YPD.mjs → chunk-LXSKONN2.mjs} +5 -9
- package/dist/libraries/react/{chunk-R46CJXF7.mjs → chunk-OAPUYXBO.mjs} +6 -6
- package/dist/libraries/react/{chunk-3CJSWXNT.mjs → chunk-OAWFFAKA.mjs} +6 -6
- package/dist/libraries/react/{chunk-CPITDC7S.mjs → chunk-SDMBKRAI.mjs} +37 -172
- package/dist/libraries/react/{chunk-APDR7D6A.mjs → chunk-SY5GNYZ7.mjs} +2 -2
- package/dist/libraries/react/{chunk-5G3DYUNT.mjs → chunk-T73WQC2X.mjs} +1 -1
- package/dist/libraries/react/{chunk-R4BYOLST.mjs → chunk-TPKQIL3N.mjs} +2 -2
- package/dist/libraries/react/{chunk-MZDRIPNS.mjs → chunk-X6RY6VG5.mjs} +2 -2
- package/dist/libraries/react/{chunk-RQEL7G2O.mjs → chunk-ZVQKDPUP.mjs} +3 -3
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.mjs +3 -3
- package/dist/libraries/react/client/clientCompMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientProdMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientProdMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.ts +4 -4
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.css +111 -116
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +76 -212
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +23 -23
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +1 -1
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.js +47 -169
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +5 -5
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +111 -116
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +76 -215
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +23 -23
- 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 +43 -157
- package/dist/libraries/react/components/ui/dialog.mjs +3 -3
- package/dist/libraries/react/components/ui/switch.js +12 -12
- package/dist/libraries/react/components/ui/switch.mjs +3 -3
- package/dist/libraries/react/{cusTypes-Bf1qr9iE.d.ts → cusTypes-CFofdxsA.d.mts} +2 -1
- package/dist/libraries/react/{cusTypes-Bf1qr9iE.d.mts → cusTypes-CFofdxsA.d.ts} +2 -1
- package/dist/libraries/react/{entTypes-CscyyE1A.d.mts → entTypes-BeWtfIqo.d.mts} +1 -1
- package/dist/libraries/react/{entTypes-O8YXxhrA.d.ts → entTypes-BhUZh8uE.d.ts} +1 -1
- package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
- package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.mts +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumn.js +5 -1
- package/dist/libraries/react/hooks/useAutumn.mjs +7 -7
- package/dist/libraries/react/hooks/useAutumnBase.d.mts +6 -5
- package/dist/libraries/react/hooks/useAutumnBase.d.ts +6 -5
- package/dist/libraries/react/hooks/useAutumnBase.js +5 -1
- package/dist/libraries/react/hooks/useAutumnBase.mjs +6 -6
- package/dist/libraries/react/hooks/useCustomer.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomer.js +7 -2
- package/dist/libraries/react/hooks/useCustomer.mjs +8 -8
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomerBase.js +7 -2
- package/dist/libraries/react/hooks/useCustomerBase.mjs +7 -7
- package/dist/libraries/react/hooks/useEntity.d.mts +3 -3
- package/dist/libraries/react/hooks/useEntity.d.ts +3 -3
- package/dist/libraries/react/hooks/useEntity.js +5 -1
- package/dist/libraries/react/hooks/useEntity.mjs +8 -8
- package/dist/libraries/react/hooks/useEntityBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useEntityBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useEntityBase.js +5 -1
- package/dist/libraries/react/hooks/useEntityBase.mjs +7 -7
- package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.mjs +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +5 -5
- package/dist/libraries/react/hooks/useProductsBase.mjs +4 -4
- package/dist/libraries/react/index.d.mts +1 -0
- package/dist/libraries/react/index.d.ts +1 -0
- package/dist/libraries/react/index.js +80 -222
- package/dist/libraries/react/index.mjs +65 -207
- package/dist/libraries/react/{response-B4VzjWEU.d.mts → response-AGK9KlYm.d.mts} +1 -1
- package/dist/libraries/react/{response-C3S90max.d.ts → response-CxMWdpyl.d.ts} +1 -1
- package/dist/next/{AutumnProvider-CCYZC_bN.d.mts → AutumnProvider-Xl1mqxls.d.mts} +1 -0
- package/dist/next/{AutumnProvider-CCYZC_bN.d.ts → AutumnProvider-Xl1mqxls.d.ts} +1 -0
- package/dist/next/AutumnProvider.d.mts +1 -1
- package/dist/next/AutumnProvider.d.ts +1 -1
- package/dist/next/client/NextAutumnClient.d.mts +10 -10
- package/dist/next/client/NextAutumnClient.d.ts +10 -10
- package/dist/next/client/NextAutumnProvider.d.mts +1 -1
- package/dist/next/client/NextAutumnProvider.d.ts +1 -1
- package/dist/next/client/{clientGenTypes-9ngy1q97.d.mts → clientGenTypes-BcRfHmUS.d.mts} +17 -17
- package/dist/next/client/{clientGenTypes-CxB4go6q.d.ts → clientGenTypes-D8f8BwMo.d.ts} +17 -17
- package/dist/next/client/clientUtils.d.mts +2 -2
- package/dist/next/client/clientUtils.d.ts +2 -2
- package/dist/next/client/{cusTypes-D8lhXGaX.d.mts → cusTypes-Gh2wfcmj.d.mts} +1 -0
- package/dist/next/client/{cusTypes-D8lhXGaX.d.ts → cusTypes-Gh2wfcmj.d.ts} +1 -0
- package/dist/next/client/{entTypes-Dq2mbehl.d.ts → entTypes-B_w6I3y-.d.ts} +1 -1
- package/dist/next/client/{entTypes-B-2_9hzP.d.mts → entTypes-C_xS1VPE.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +2 -2
- package/dist/next/client/hooks/useAutumn.d.ts +2 -2
- package/dist/next/client/hooks/useCustomer.d.mts +3 -3
- package/dist/next/client/hooks/useCustomer.d.ts +3 -3
- package/dist/next/client/hooks/useEntity.d.mts +5 -5
- package/dist/next/client/hooks/useEntity.d.ts +5 -5
- package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
- package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
- package/dist/next/client/types.d.mts +2 -2
- package/dist/next/client/types.d.ts +2 -2
- package/dist/next/index.d.mts +2 -2
- package/dist/next/index.d.ts +2 -2
- package/dist/next/server/auth/withNextAuth.d.mts +1 -1
- package/dist/next/server/auth/withNextAuth.d.ts +1 -1
- package/dist/next/server/componentActions.d.mts +1 -1
- package/dist/next/server/componentActions.d.ts +1 -1
- package/dist/next/server/cusActions.d.mts +21 -21
- package/dist/next/server/cusActions.d.ts +21 -21
- package/dist/next/server/{cusTypes-DhOYtM7H.d.mts → cusTypes-DVA6iu7V.d.mts} +3 -2
- package/dist/next/server/{cusTypes-DhOYtM7H.d.ts → cusTypes-DVA6iu7V.d.ts} +3 -2
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/sdk/index.d.mts +1 -0
- package/dist/sdk/index.d.ts +1 -0
- package/dist/styles/global.css +111 -116
- package/package.json +9 -22
- package/tsup.config.ts +0 -1
- package/dist/libraries/react/{chunk-ALFXUHDD.mjs → chunk-ALIGIMSK.mjs} +6 -6
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
ReactAutumnProvider
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-T5PIJ4HG.mjs";
|
|
8
|
-
import "./chunk-3JJC2VU5.mjs";
|
|
9
|
-
import "./chunk-LVDONEVF.mjs";
|
|
10
|
-
import "./chunk-R4BYOLST.mjs";
|
|
5
|
+
} from "./chunk-5URK7LI3.mjs";
|
|
6
|
+
import "./chunk-5NDO7C7R.mjs";
|
|
11
7
|
import "./chunk-4QPHNIQ7.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-3VHO7VUQ.mjs";
|
|
9
|
+
import "./chunk-3JJC2VU5.mjs";
|
|
10
|
+
import "./chunk-CE33P32V.mjs";
|
|
11
|
+
import "./chunk-TPKQIL3N.mjs";
|
|
12
|
+
import "./chunk-GQ3TAHSV.mjs";
|
|
13
|
+
import "./chunk-ALIGIMSK.mjs";
|
|
16
14
|
import "./chunk-V575SGOW.mjs";
|
|
17
15
|
import "./chunk-ZV4RPZTM.mjs";
|
|
16
|
+
import "./chunk-JVCOY7ZL.mjs";
|
|
17
|
+
import "./chunk-CIBQ4BJU.mjs";
|
|
18
18
|
import "./chunk-VTGR7VVK.mjs";
|
|
19
19
|
import "./chunk-WFFVOEUG.mjs";
|
|
20
20
|
import "./chunk-ZF2HUCN6.mjs";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
} from "./chunk-3JJC2VU5.mjs";
|
|
6
6
|
import {
|
|
7
7
|
useAutumnBase
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CE33P32V.mjs";
|
|
9
9
|
import {
|
|
10
10
|
useAutumnContext
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GQ3TAHSV.mjs";
|
|
12
12
|
|
|
13
13
|
// src/libraries/react/hooks/useCustomerBase.tsx
|
|
14
14
|
import useSWR from "swr";
|
|
@@ -63,7 +63,8 @@ var useCustomerBase = ({
|
|
|
63
63
|
let autumnFunctions = emptyDefaultFunctions;
|
|
64
64
|
if (AutumnContext) {
|
|
65
65
|
autumnFunctions = useAutumnBase({
|
|
66
|
-
AutumnContext
|
|
66
|
+
AutumnContext,
|
|
67
|
+
refetchCustomer: mutate
|
|
67
68
|
});
|
|
68
69
|
}
|
|
69
70
|
return {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
useCustomerBase
|
|
5
|
-
} from "./chunk-T5PIJ4HG.mjs";
|
|
6
3
|
import {
|
|
7
4
|
useDialog
|
|
8
5
|
} from "./chunk-4QPHNIQ7.mjs";
|
|
6
|
+
import {
|
|
7
|
+
useCustomerBase
|
|
8
|
+
} from "./chunk-3VHO7VUQ.mjs";
|
|
9
9
|
|
|
10
10
|
// src/libraries/react/BaseAutumnProvider.tsx
|
|
11
11
|
import { useState } from "react";
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
BaseAutumnProvider
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5NDO7C7R.mjs";
|
|
6
6
|
import {
|
|
7
7
|
AutumnContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GQ3TAHSV.mjs";
|
|
9
9
|
import {
|
|
10
10
|
AutumnClient
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ALIGIMSK.mjs";
|
|
12
12
|
|
|
13
13
|
// src/libraries/react/ReactAutumnProvider.tsx
|
|
14
14
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
usePricingTableBase
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TPKQIL3N.mjs";
|
|
6
6
|
import {
|
|
7
7
|
useAutumnContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GQ3TAHSV.mjs";
|
|
9
9
|
|
|
10
10
|
// src/libraries/react/hooks/useAutumnBase.tsx
|
|
11
11
|
var useAutumnBase = ({
|
|
12
12
|
AutumnContext,
|
|
13
|
-
authClient
|
|
13
|
+
authClient,
|
|
14
|
+
refetchCustomer
|
|
14
15
|
}) => {
|
|
15
16
|
const context = useAutumnContext({
|
|
16
17
|
AutumnContext,
|
|
@@ -49,6 +50,9 @@ var useAutumnBase = ({
|
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
await refetchPricingTable();
|
|
53
|
+
if (refetchCustomer) {
|
|
54
|
+
await refetchCustomer();
|
|
55
|
+
}
|
|
52
56
|
if (setAttachOpen) {
|
|
53
57
|
setAttachOpen(false);
|
|
54
58
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
usePricingTableBase
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TPKQIL3N.mjs";
|
|
6
6
|
import {
|
|
7
7
|
AutumnContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GQ3TAHSV.mjs";
|
|
9
9
|
|
|
10
10
|
// src/libraries/react/hooks/usePricingTable.tsx
|
|
11
11
|
var usePricingTable = (params) => {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
useCustomerBase
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3VHO7VUQ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
AutumnContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GQ3TAHSV.mjs";
|
|
9
9
|
|
|
10
10
|
// src/libraries/react/hooks/useCustomer.tsx
|
|
11
11
|
var useCustomer = (params) => {
|
|
@@ -1,39 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
getPricingTableContent
|
|
5
|
-
} from "./chunk-QBBE72EF.mjs";
|
|
6
3
|
import {
|
|
7
4
|
getAttachContent
|
|
8
5
|
} from "./chunk-BCMBFJ7E.mjs";
|
|
6
|
+
import {
|
|
7
|
+
getPricingTableContent
|
|
8
|
+
} from "./chunk-QBBE72EF.mjs";
|
|
9
9
|
import {
|
|
10
10
|
Button
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AL3VJLFU.mjs";
|
|
12
12
|
import {
|
|
13
|
-
ArrowRight,
|
|
14
|
-
Check,
|
|
15
13
|
Dialog,
|
|
16
14
|
DialogContent,
|
|
17
15
|
DialogFooter,
|
|
18
|
-
DialogTitle
|
|
19
|
-
|
|
20
|
-
} from "./chunk-CPITDC7S.mjs";
|
|
16
|
+
DialogTitle
|
|
17
|
+
} from "./chunk-SDMBKRAI.mjs";
|
|
21
18
|
import {
|
|
22
19
|
Switch
|
|
23
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OAWFFAKA.mjs";
|
|
24
21
|
import {
|
|
25
|
-
loadingStyles
|
|
26
|
-
spinnerStyles
|
|
22
|
+
loadingStyles
|
|
27
23
|
} from "./chunk-WVKYZYFT.mjs";
|
|
28
24
|
import {
|
|
29
25
|
usePricingTable
|
|
30
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-H2NGSCWI.mjs";
|
|
31
27
|
import {
|
|
32
28
|
cn
|
|
33
29
|
} from "./chunk-4J6OC4ZQ.mjs";
|
|
34
30
|
import {
|
|
35
31
|
useCustomer
|
|
36
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-JI7WQ6AC.mjs";
|
|
37
33
|
|
|
38
34
|
// src/libraries/react/components/pricing-table/pricing-table-synced.tsx
|
|
39
35
|
import React2 from "react";
|
|
@@ -117,8 +113,7 @@ function AttachDialog(params) {
|
|
|
117
113
|
setLoading(false);
|
|
118
114
|
},
|
|
119
115
|
disabled: loading,
|
|
120
|
-
className: "au-min-w-16 au-flex au-items-center au-gap-2"
|
|
121
|
-
children: loading ? /* @__PURE__ */ jsx(LoaderCircle, { className: "au-w-4 au-h-4 au-animate-spin" }) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("span", { className: "au-whitespace-nowrap au-flex au-gap-1", children: "Confirm" }) })
|
|
116
|
+
className: "au-min-w-16 au-flex au-items-center au-gap-2"
|
|
122
117
|
}
|
|
123
118
|
)
|
|
124
119
|
] })
|
|
@@ -235,17 +230,14 @@ var PricingDialogButton = ({
|
|
|
235
230
|
disabled,
|
|
236
231
|
className
|
|
237
232
|
}) => {
|
|
238
|
-
return /* @__PURE__ */
|
|
233
|
+
return /* @__PURE__ */ jsx(
|
|
239
234
|
Button,
|
|
240
235
|
{
|
|
241
236
|
onClick,
|
|
242
237
|
disabled,
|
|
243
238
|
size,
|
|
244
239
|
className: cn(className, "au-shadow-sm au-shadow-stone-400"),
|
|
245
|
-
children
|
|
246
|
-
children,
|
|
247
|
-
/* @__PURE__ */ jsx(ArrowRight, { className: "!au-h-3" })
|
|
248
|
-
]
|
|
240
|
+
children
|
|
249
241
|
}
|
|
250
242
|
);
|
|
251
243
|
};
|
|
@@ -260,7 +252,7 @@ function PricingTable({
|
|
|
260
252
|
const [isAnnual, setIsAnnual] = useState2(false);
|
|
261
253
|
const { products, isLoading, error } = usePricingTable({ productDetails });
|
|
262
254
|
if (isLoading) {
|
|
263
|
-
return /* @__PURE__ */ jsx2("div", { style: loadingStyles
|
|
255
|
+
return /* @__PURE__ */ jsx2("div", { style: loadingStyles });
|
|
264
256
|
}
|
|
265
257
|
if (error) {
|
|
266
258
|
return /* @__PURE__ */ jsx2("div", { children: " Something went wrong..." });
|
|
@@ -476,17 +468,14 @@ var PricingFeatureList = ({
|
|
|
476
468
|
everythingFrom,
|
|
477
469
|
", plus:"
|
|
478
470
|
] }),
|
|
479
|
-
/* @__PURE__ */ jsx2("div", { className: "au-space-y-3", children: items.map((item, index) => /* @__PURE__ */
|
|
471
|
+
/* @__PURE__ */ jsx2("div", { className: "au-space-y-3", children: items.map((item, index) => /* @__PURE__ */ jsx2(
|
|
480
472
|
"div",
|
|
481
473
|
{
|
|
482
474
|
className: "au-flex au-items-start au-gap-2 au-text-sm",
|
|
483
|
-
children: [
|
|
484
|
-
|
|
485
|
-
/* @__PURE__ */
|
|
486
|
-
|
|
487
|
-
item.display?.secondary_text && /* @__PURE__ */ jsx2("span", { className: "au-text-sm au-text-muted-foreground", children: item.display?.secondary_text })
|
|
488
|
-
] })
|
|
489
|
-
]
|
|
475
|
+
children: /* @__PURE__ */ jsxs2("div", { className: "au-flex au-flex-col", children: [
|
|
476
|
+
/* @__PURE__ */ jsx2("span", { children: item.display?.primary_text }),
|
|
477
|
+
item.display?.secondary_text && /* @__PURE__ */ jsx2("span", { className: "au-text-sm au-text-muted-foreground", children: item.display?.secondary_text })
|
|
478
|
+
] })
|
|
490
479
|
},
|
|
491
480
|
index
|
|
492
481
|
)) })
|
|
@@ -515,17 +504,7 @@ var PricingCardButton = React2.forwardRef(({ recommended, children, className, o
|
|
|
515
504
|
variant: recommended ? "default" : "secondary",
|
|
516
505
|
ref,
|
|
517
506
|
disabled: loading || props.disabled,
|
|
518
|
-
onClick: handleClick
|
|
519
|
-
children: loading ? /* @__PURE__ */ jsx2(LoaderCircle, { className: "au-h-4 au-w-4 au-animate-spin" }) : /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
520
|
-
/* @__PURE__ */ jsxs2("div", { className: "au-flex au-items-center au-justify-between au-w-full au-transition-transform au-duration-300 group-hover:au-translate-y-[-130%]", children: [
|
|
521
|
-
/* @__PURE__ */ jsx2("span", { children }),
|
|
522
|
-
/* @__PURE__ */ jsx2("span", { className: "au-text-sm", children: "\u2192" })
|
|
523
|
-
] }),
|
|
524
|
-
/* @__PURE__ */ jsxs2("div", { className: "au-flex au-items-center au-justify-between au-w-full au-absolute au-px-4 au-translate-y-[130%] au-transition-transform au-duration-300 group-hover:au-translate-y-0 au-mt-2 group-hover:au-mt-0", children: [
|
|
525
|
-
/* @__PURE__ */ jsx2("span", { children }),
|
|
526
|
-
/* @__PURE__ */ jsx2("span", { className: "au-text-sm", children: "\u2192" })
|
|
527
|
-
] })
|
|
528
|
-
] })
|
|
507
|
+
onClick: handleClick
|
|
529
508
|
}
|
|
530
509
|
);
|
|
531
510
|
});
|
|
@@ -5,14 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-MY2ODATB.mjs";
|
|
6
6
|
import {
|
|
7
7
|
Button
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AL3VJLFU.mjs";
|
|
9
9
|
import {
|
|
10
10
|
Dialog,
|
|
11
11
|
DialogContent,
|
|
12
12
|
DialogFooter,
|
|
13
|
-
DialogTitle
|
|
14
|
-
|
|
15
|
-
} from "./chunk-CPITDC7S.mjs";
|
|
13
|
+
DialogTitle
|
|
14
|
+
} from "./chunk-SDMBKRAI.mjs";
|
|
16
15
|
import {
|
|
17
16
|
cn
|
|
18
17
|
} from "./chunk-4J6OC4ZQ.mjs";
|
|
@@ -31,7 +30,7 @@ function CheckDialog(params) {
|
|
|
31
30
|
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange: setOpen, children: /* @__PURE__ */ jsxs(DialogContent, { className: "au-p-0 au-pt-4 au-gap-0 au-text-foreground au-overflow-hidden au-text-sm", children: [
|
|
32
31
|
/* @__PURE__ */ jsx(DialogTitle, { className: cn("au-font-bold au-text-xl au-px-6"), children: title }),
|
|
33
32
|
/* @__PURE__ */ jsx("div", { className: "au-px-6 au-my-2", children: message }),
|
|
34
|
-
/* @__PURE__ */ jsx(DialogFooter, { className: "au-flex au-flex-col sm:au-flex-row au-justify-between au-gap-x-4 au-py-2 au-mt-4 au-pl-6 au-pr-3 au-bg-secondary au-border-t", children: /* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ jsx(DialogFooter, { className: "au-flex au-flex-col sm:au-flex-row au-justify-between au-gap-x-4 au-py-2 au-mt-4 au-pl-6 au-pr-3 au-bg-secondary au-border-t", children: /* @__PURE__ */ jsx(
|
|
35
34
|
Button,
|
|
36
35
|
{
|
|
37
36
|
size: "sm",
|
|
@@ -39,10 +38,7 @@ function CheckDialog(params) {
|
|
|
39
38
|
onClick: async () => {
|
|
40
39
|
setOpen(false);
|
|
41
40
|
},
|
|
42
|
-
children:
|
|
43
|
-
loading && /* @__PURE__ */ jsx(LoaderCircle, { className: "au-w-4 au-h-4 au-mr-2 au-animate-spin" }),
|
|
44
|
-
"Confirm"
|
|
45
|
-
]
|
|
41
|
+
children: "Confirm"
|
|
46
42
|
}
|
|
47
43
|
) })
|
|
48
44
|
] }) });
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
createSlot
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZVQKDPUP.mjs";
|
|
6
6
|
|
|
7
7
|
// ../node_modules/.pnpm/@radix-ui+primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
8
8
|
function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
@@ -14,7 +14,7 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
|
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
// ../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@18.3.23_react@
|
|
17
|
+
// ../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
18
18
|
import * as React from "react";
|
|
19
19
|
import { jsx } from "react/jsx-runtime";
|
|
20
20
|
function createContext2(rootComponentName, defaultContext) {
|
|
@@ -91,15 +91,15 @@ function composeContextScopes(...scopes) {
|
|
|
91
91
|
return createScope;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@18.3.23_react@
|
|
94
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
95
95
|
import * as React3 from "react";
|
|
96
96
|
|
|
97
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@18.3.23_react@
|
|
97
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
98
98
|
import * as React2 from "react";
|
|
99
99
|
var useLayoutEffect2 = globalThis?.document ? React2.useLayoutEffect : () => {
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@18.3.23_react@
|
|
102
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
103
103
|
import * as React22 from "react";
|
|
104
104
|
var useInsertionEffect = React3[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
105
105
|
function useControllableState({
|
|
@@ -167,7 +167,7 @@ function isFunction(value) {
|
|
|
167
167
|
}
|
|
168
168
|
var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
|
|
169
169
|
|
|
170
|
-
// ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.6_@types+react@18.3.23__@types+react@
|
|
170
|
+
// ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.6_@types+react@18.3.23__@types+react@18_nioct6cchui7iasnxutwakzwo4/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
171
171
|
import * as React4 from "react";
|
|
172
172
|
import * as ReactDOM from "react-dom";
|
|
173
173
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
createContextScope,
|
|
7
7
|
useControllableState,
|
|
8
8
|
useLayoutEffect2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OAPUYXBO.mjs";
|
|
10
10
|
import {
|
|
11
11
|
useComposedRefs
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZVQKDPUP.mjs";
|
|
13
13
|
import {
|
|
14
14
|
cn
|
|
15
15
|
} from "./chunk-4J6OC4ZQ.mjs";
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
// src/libraries/react/components/ui/switch.tsx
|
|
18
18
|
import * as React4 from "react";
|
|
19
19
|
|
|
20
|
-
// ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.6_@types+react@18.3.23__@types+react@18.3.
|
|
20
|
+
// ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.6_@types+react@18.3.23__@types+react@18.3._6zzey5cj563f4jvdnd6324q4ry/node_modules/@radix-ui/react-switch/dist/index.mjs
|
|
21
21
|
import * as React3 from "react";
|
|
22
22
|
|
|
23
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@18.3.23_react@
|
|
23
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-use-previous/dist/index.mjs
|
|
24
24
|
import * as React from "react";
|
|
25
25
|
function usePrevious(value) {
|
|
26
26
|
const ref = React.useRef({ value, previous: value });
|
|
@@ -33,7 +33,7 @@ function usePrevious(value) {
|
|
|
33
33
|
}, [value]);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@18.3.23_react@
|
|
36
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
37
37
|
import * as React2 from "react";
|
|
38
38
|
function useSize(element) {
|
|
39
39
|
const [size, setSize] = React2.useState(void 0);
|
|
@@ -70,7 +70,7 @@ function useSize(element) {
|
|
|
70
70
|
return size;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
// ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.6_@types+react@18.3.23__@types+react@18.3.
|
|
73
|
+
// ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.6_@types+react@18.3.23__@types+react@18.3._6zzey5cj563f4jvdnd6324q4ry/node_modules/@radix-ui/react-switch/dist/index.mjs
|
|
74
74
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
75
75
|
var SWITCH_NAME = "Switch";
|
|
76
76
|
var [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);
|