subos-frontend 1.0.24 → 1.0.25
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/index.js +29 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -29
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +15 -19
- package/dist/types/components/subscription/SubscriptionCancelModal.d.ts +1 -0
- package/dist/types/components/subscription/SubscriptionCancelModal.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2438,7 +2438,11 @@ var SubscriptionCancelModal = ({
|
|
|
2438
2438
|
onConfirm,
|
|
2439
2439
|
loading = false,
|
|
2440
2440
|
title = "Cancel Subscription",
|
|
2441
|
-
description = "Are you sure you want to cancel your subscription? This action cannot be undone."
|
|
2441
|
+
description = "Are you sure you want to cancel your subscription? This action cannot be undone.",
|
|
2442
|
+
subscription: _subscription,
|
|
2443
|
+
// Accept subscription prop but don't use it
|
|
2444
|
+
..._props
|
|
2445
|
+
// Capture any other props to avoid React warnings
|
|
2442
2446
|
}) => {
|
|
2443
2447
|
const cancellationMode = "endOfPeriod";
|
|
2444
2448
|
const cancellationReason = "subscription_user_canceled_request";
|
|
@@ -2449,7 +2453,7 @@ var SubscriptionCancelModal = ({
|
|
|
2449
2453
|
});
|
|
2450
2454
|
};
|
|
2451
2455
|
if (!isOpen) return null;
|
|
2452
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
2456
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: [
|
|
2453
2457
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2454
2458
|
"div",
|
|
2455
2459
|
{
|
|
@@ -2457,8 +2461,17 @@ var SubscriptionCancelModal = ({
|
|
|
2457
2461
|
onClick: onClose
|
|
2458
2462
|
}
|
|
2459
2463
|
),
|
|
2460
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "
|
|
2461
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2464
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative bg-white rounded-2xl shadow-xl max-w-lg w-full z-10", children: [
|
|
2465
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2466
|
+
"button",
|
|
2467
|
+
{
|
|
2468
|
+
type: "button",
|
|
2469
|
+
onClick: onClose,
|
|
2470
|
+
className: "absolute top-4 right-4 text-gray-400 hover:text-gray-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 z-20",
|
|
2471
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "h-6 w-6", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) })
|
|
2472
|
+
}
|
|
2473
|
+
),
|
|
2474
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4 rounded-t-2xl", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sm:flex sm:items-start", children: [
|
|
2462
2475
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "h-6 w-6 text-red-600", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2463
2476
|
"path",
|
|
2464
2477
|
{
|
|
@@ -2473,32 +2486,19 @@ var SubscriptionCancelModal = ({
|
|
|
2473
2486
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-500", children: description }) })
|
|
2474
2487
|
] })
|
|
2475
2488
|
] }) }),
|
|
2476
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
),
|
|
2488
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2489
|
-
"button",
|
|
2490
|
-
{
|
|
2491
|
-
type: "button",
|
|
2492
|
-
onClick: onClose,
|
|
2493
|
-
disabled: loading,
|
|
2494
|
-
className: "w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:w-auto sm:text-sm disabled:bg-gray-100 disabled:cursor-not-allowed relative z-10",
|
|
2495
|
-
style: { minHeight: "40px" },
|
|
2496
|
-
children: "Cancel"
|
|
2497
|
-
}
|
|
2498
|
-
)
|
|
2499
|
-
] })
|
|
2489
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-gray-50 px-4 py-6 sm:px-6 flex justify-center rounded-b-2xl", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2490
|
+
"button",
|
|
2491
|
+
{
|
|
2492
|
+
type: "button",
|
|
2493
|
+
onClick: handleConfirm,
|
|
2494
|
+
disabled: loading,
|
|
2495
|
+
className: "inline-flex justify-center rounded-md border border-transparent shadow-sm px-6 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:text-sm disabled:bg-red-300 disabled:cursor-not-allowed relative z-10",
|
|
2496
|
+
style: { minHeight: "40px" },
|
|
2497
|
+
children: loading ? "Cancelling..." : "Cancel Subscription"
|
|
2498
|
+
}
|
|
2499
|
+
) })
|
|
2500
2500
|
] })
|
|
2501
|
-
] })
|
|
2501
|
+
] });
|
|
2502
2502
|
};
|
|
2503
2503
|
var SubscriptionDetails = ({
|
|
2504
2504
|
subscription,
|