@fluid-app/portal-sdk 0.1.300 → 0.1.302
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/{AlertWidget-BilCRyau.mjs → AlertWidget-mF7t6q9V.mjs} +3 -3
- package/dist/{AlertWidget-BilCRyau.mjs.map → AlertWidget-mF7t6q9V.mjs.map} +1 -1
- package/dist/{AppDownloadScreen-DtU2S2qh.mjs → AppDownloadScreen-9zlj742F.mjs} +2 -2
- package/dist/{AppDownloadScreen-DtU2S2qh.mjs.map → AppDownloadScreen-9zlj742F.mjs.map} +1 -1
- package/dist/{BulletListWidget-CFPYT5ut.mjs → BulletListWidget-BA7nyDC4.mjs} +2 -2
- package/dist/{BulletListWidget-CFPYT5ut.mjs.map → BulletListWidget-BA7nyDC4.mjs.map} +1 -1
- package/dist/{CalendarWidget-BQP9CfCI.mjs → CalendarWidget-CHpM_XnL.mjs} +2 -2
- package/dist/{CalendarWidget-BQP9CfCI.mjs.map → CalendarWidget-CHpM_XnL.mjs.map} +1 -1
- package/dist/{CardWidget-DfY3Lrm_.mjs → CardWidget-BQdWR7m3.mjs} +2 -2
- package/dist/{CardWidget-DfY3Lrm_.mjs.map → CardWidget-BQdWR7m3.mjs.map} +1 -1
- package/dist/{CarouselWidget-BOWNV3rj.mjs → CarouselWidget-BLQcyVWj.mjs} +2 -2
- package/dist/{CarouselWidget-BOWNV3rj.mjs.map → CarouselWidget-BLQcyVWj.mjs.map} +1 -1
- package/dist/{CatchUpWidget-BtEH9EHQ.mjs → CatchUpWidget-sy6oJqiu.mjs} +2 -2
- package/dist/{CatchUpWidget-BtEH9EHQ.mjs.map → CatchUpWidget-sy6oJqiu.mjs.map} +1 -1
- package/dist/{ChartWidget-rCUOwT7v.mjs → ChartWidget-DE0JNmKi.mjs} +2 -2
- package/dist/{ChartWidget-rCUOwT7v.mjs.map → ChartWidget-DE0JNmKi.mjs.map} +1 -1
- package/dist/{ContactsScreen-Cj2okxTE.mjs → ContactsScreen-suw0tqGW.mjs} +2 -2
- package/dist/{ContactsScreen-Cj2okxTE.mjs.map → ContactsScreen-suw0tqGW.mjs.map} +1 -1
- package/dist/{ContainerWidget-DBRBSg15.mjs → ContainerWidget-CjZOp201.mjs} +3 -3
- package/dist/{ContainerWidget-DBRBSg15.mjs.map → ContainerWidget-CjZOp201.mjs.map} +1 -1
- package/dist/{CustomersScreen-DsRK0m2L.mjs → CustomersScreen-DdSXRmyl.mjs} +2 -2
- package/dist/{CustomersScreen-DsRK0m2L.mjs.map → CustomersScreen-DdSXRmyl.mjs.map} +1 -1
- package/dist/{EmbedWidget-BO6P4QHc.mjs → EmbedWidget-ok8UkJdY.mjs} +2 -2
- package/dist/{EmbedWidget-BO6P4QHc.mjs.map → EmbedWidget-ok8UkJdY.mjs.map} +1 -1
- package/dist/{FluidProvider-CBuTpv9I.cjs → FluidProvider-BAg3B4eD.cjs} +2 -2
- package/dist/{FluidProvider-CBuTpv9I.cjs.map → FluidProvider-BAg3B4eD.cjs.map} +1 -1
- package/dist/{FluidProvider-BBxURUBq.mjs → FluidProvider-C00Px_ej.mjs} +52 -52
- package/dist/{FluidProvider-BBxURUBq.mjs.map → FluidProvider-C00Px_ej.mjs.map} +1 -1
- package/dist/{ImageWidget-DGABEW2_.mjs → ImageWidget-j9pAlihf.mjs} +2 -2
- package/dist/{ImageWidget-DGABEW2_.mjs.map → ImageWidget-j9pAlihf.mjs.map} +1 -1
- package/dist/{LayoutWidget-DYekGAi3.mjs → LayoutWidget-Bvc_oJT-.mjs} +2 -2
- package/dist/{LayoutWidget-DYekGAi3.mjs.map → LayoutWidget-Bvc_oJT-.mjs.map} +1 -1
- package/dist/{LinkWidget-DtuO2cmy.mjs → LinkWidget-CBJjxBOU.mjs} +2 -2
- package/dist/{LinkWidget-DtuO2cmy.mjs.map → LinkWidget-CBJjxBOU.mjs.map} +1 -1
- package/dist/{ListWidget-DRN6ZCp1.mjs → ListWidget-Dw2qxriL.mjs} +2 -2
- package/dist/{ListWidget-DRN6ZCp1.mjs.map → ListWidget-Dw2qxriL.mjs.map} +1 -1
- package/dist/{MessagingScreen-CwzSY_G8.mjs → MessagingScreen-0iAzXjtW.mjs} +4 -4
- package/dist/{MessagingScreen-CwzSY_G8.mjs.map → MessagingScreen-0iAzXjtW.mjs.map} +1 -1
- package/dist/{MessagingScreen-2M2ETWXp.cjs → MessagingScreen-CJ0Rj-M7.cjs} +2 -2
- package/dist/{MessagingScreen-2M2ETWXp.cjs.map → MessagingScreen-CJ0Rj-M7.cjs.map} +1 -1
- package/dist/{MessagingScreen-BI4AufwC.cjs → MessagingScreen-D_feiKUj.cjs} +2 -2
- package/dist/MessagingScreen-aMC3a8cQ.mjs +47 -0
- package/dist/{MySiteScreen-Bx81S9gD.mjs → MySiteScreen-C37AawN3.mjs} +2 -2
- package/dist/{MySiteScreen-Bx81S9gD.mjs.map → MySiteScreen-C37AawN3.mjs.map} +1 -1
- package/dist/{MySiteWidget-D8UtttYC.mjs → MySiteWidget-C37LOc4h.mjs} +2 -2
- package/dist/{MySiteWidget-D8UtttYC.mjs.map → MySiteWidget-C37LOc4h.mjs.map} +1 -1
- package/dist/{NestedWidget-BeOYIuWY.mjs → NestedWidget-DYCR6oXP.mjs} +2 -2
- package/dist/{NestedWidget-BeOYIuWY.mjs.map → NestedWidget-DYCR6oXP.mjs.map} +1 -1
- package/dist/OrdersScreen-B-uk9a0i.mjs +45 -0
- package/dist/{OrdersScreen-sLr0z213.cjs → OrdersScreen-ChbkUQG1.cjs} +2 -2
- package/dist/{OrdersScreen-CFfrQG4i.mjs → OrdersScreen-D1AAopLt.mjs} +40 -40
- package/dist/OrdersScreen-D1AAopLt.mjs.map +1 -0
- package/dist/{OrdersScreen-CS1xA9q5.cjs → OrdersScreen-DrrOttdy.cjs} +40 -40
- package/dist/OrdersScreen-DrrOttdy.cjs.map +1 -0
- package/dist/{PointsWidget-4tTrD6UA.mjs → PointsWidget-D0TPHzoh.mjs} +2 -2
- package/dist/{PointsWidget-4tTrD6UA.mjs.map → PointsWidget-D0TPHzoh.mjs.map} +1 -1
- package/dist/{ProfileScreen-CefqZr-Q.mjs → ProfileScreen-8hi-vFLY.mjs} +70 -70
- package/dist/ProfileScreen-8hi-vFLY.mjs.map +1 -0
- package/dist/{ProfileScreen-BCR3FU5g.cjs → ProfileScreen-BD51dMvj.cjs} +70 -70
- package/dist/ProfileScreen-BD51dMvj.cjs.map +1 -0
- package/dist/{ProfileScreen-CwP66ls2.cjs → ProfileScreen-CHYWGYjZ.cjs} +2 -2
- package/dist/ProfileScreen-HckHOA3z.mjs +47 -0
- package/dist/{QuickLinksWidget-IlrkEORt.mjs → QuickLinksWidget-CQ5u9y6u.mjs} +2 -2
- package/dist/{QuickLinksWidget-IlrkEORt.mjs.map → QuickLinksWidget-CQ5u9y6u.mjs.map} +1 -1
- package/dist/{QuickShareWidget-Bzvh9Yvj.mjs → QuickShareWidget-BIYP_Vju.mjs} +2 -2
- package/dist/{QuickShareWidget-Bzvh9Yvj.mjs.map → QuickShareWidget-BIYP_Vju.mjs.map} +1 -1
- package/dist/{RecentActivityWidget-C9fWPsVD.mjs → RecentActivityWidget-4hDg_4vP.mjs} +2 -2
- package/dist/{RecentActivityWidget-C9fWPsVD.mjs.map → RecentActivityWidget-4hDg_4vP.mjs.map} +1 -1
- package/dist/{SeparatorWidget-CTke2MBj.mjs → SeparatorWidget-N1L4KRZJ.mjs} +2 -2
- package/dist/{SeparatorWidget-CTke2MBj.mjs.map → SeparatorWidget-N1L4KRZJ.mjs.map} +1 -1
- package/dist/{ShareablesScreen-WUM3kwwU.cjs → ShareablesScreen-BmMtSpT8.cjs} +37 -26
- package/dist/ShareablesScreen-BmMtSpT8.cjs.map +1 -0
- package/dist/{ShareablesScreen-DE2k5f6X.mjs → ShareablesScreen-Bx4dJ3uu.mjs} +38 -27
- package/dist/ShareablesScreen-Bx4dJ3uu.mjs.map +1 -0
- package/dist/{ShareablesScreen-Cg10X417.mjs → ShareablesScreen-C2Sj5Jvp.mjs} +2 -2
- package/dist/{ShareablesScreen-BevKtLpN.cjs → ShareablesScreen-D6MjCFu_.cjs} +1 -1
- package/dist/ShopScreen-CIHEblgo.mjs +46 -0
- package/dist/{ShopScreen-CZdXE7dM.cjs → ShopScreen-CnfBzMUM.cjs} +2 -2
- package/dist/{ShopScreen-CZdXE7dM.cjs.map → ShopScreen-CnfBzMUM.cjs.map} +1 -1
- package/dist/{ShopScreen-DdAmK5yn.mjs → ShopScreen-F8cg64iD.mjs} +2 -2
- package/dist/{ShopScreen-DdAmK5yn.mjs.map → ShopScreen-F8cg64iD.mjs.map} +1 -1
- package/dist/{ShopScreen-xfPTLG5b.cjs → ShopScreen-VkI0tl3J.cjs} +2 -2
- package/dist/{SpacerWidget-D3yx57vH.mjs → SpacerWidget-C-Kpjntb.mjs} +2 -2
- package/dist/{SpacerWidget-D3yx57vH.mjs.map → SpacerWidget-C-Kpjntb.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-DKihggHx.cjs → SubscriptionsScreen-6Xp62ubF.cjs} +1 -1
- package/dist/{SubscriptionsScreen-Cjd2aGeW.mjs → SubscriptionsScreen-CaDhBQSX.mjs} +48 -48
- package/dist/{SubscriptionsScreen-Cjd2aGeW.mjs.map → SubscriptionsScreen-CaDhBQSX.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-DLLDU_aU.cjs → SubscriptionsScreen-YL-1_nFd.cjs} +47 -47
- package/dist/{SubscriptionsScreen-DLLDU_aU.cjs.map → SubscriptionsScreen-YL-1_nFd.cjs.map} +1 -1
- package/dist/{TableWidget-DCZDRb0V.mjs → TableWidget-CSB_j9wx.mjs} +2 -2
- package/dist/{TableWidget-DCZDRb0V.mjs.map → TableWidget-CSB_j9wx.mjs.map} +1 -1
- package/dist/{TextWidget-CmuHRU-g.mjs → TextWidget-CPucLu4s.mjs} +2 -2
- package/dist/{TextWidget-CmuHRU-g.mjs.map → TextWidget-CPucLu4s.mjs.map} +1 -1
- package/dist/{ToDoWidget-CXhlO0BY.mjs → ToDoWidget-Czmpoimp.mjs} +2 -2
- package/dist/{ToDoWidget-CXhlO0BY.mjs.map → ToDoWidget-Czmpoimp.mjs.map} +1 -1
- package/dist/{UpgradeScreen-DZ6uZpeX.mjs → UpgradeScreen-u3UxUd3B.mjs} +2 -2
- package/dist/{UpgradeScreen-DZ6uZpeX.mjs.map → UpgradeScreen-u3UxUd3B.mjs.map} +1 -1
- package/dist/{VideoWidget-DlnwYXlo.mjs → VideoWidget-DNhWLnbP.mjs} +2 -2
- package/dist/{VideoWidget-DlnwYXlo.mjs.map → VideoWidget-DNhWLnbP.mjs.map} +1 -1
- package/dist/{es-XDcP51O8.mjs → es-i72IyPYD.mjs} +2 -2
- package/dist/{es-XDcP51O8.mjs.map → es-i72IyPYD.mjs.map} +1 -1
- package/dist/index.cjs +19 -19
- package/dist/index.mjs +60 -60
- package/dist/{portal_tenant_content-C1R1xxDP.cjs → portal_tenant_content-BnrwKhyK.cjs} +9 -7
- package/dist/portal_tenant_content-BnrwKhyK.cjs.map +1 -0
- package/dist/{portal_tenant_content-DPLnrtOG.mjs → portal_tenant_content-CcKZMB9E.mjs} +9 -7
- package/dist/portal_tenant_content-CcKZMB9E.mjs.map +1 -0
- package/package.json +19 -19
- package/styles/globals.css +0 -222
- package/dist/MessagingScreen-B4vUvkRg.mjs +0 -47
- package/dist/OrdersScreen-CFfrQG4i.mjs.map +0 -1
- package/dist/OrdersScreen-CS1xA9q5.cjs.map +0 -1
- package/dist/OrdersScreen-DoopejMR.mjs +0 -45
- package/dist/ProfileScreen-BCR3FU5g.cjs.map +0 -1
- package/dist/ProfileScreen-CefqZr-Q.mjs.map +0 -1
- package/dist/ProfileScreen-wj0KTaQF.mjs +0 -47
- package/dist/ShareablesScreen-DE2k5f6X.mjs.map +0 -1
- package/dist/ShareablesScreen-WUM3kwwU.cjs.map +0 -1
- package/dist/ShopScreen-BKMR1rdM.mjs +0 -46
- package/dist/portal_tenant_content-C1R1xxDP.cjs.map +0 -1
- package/dist/portal_tenant_content-DPLnrtOG.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as __exportAll } from "./portal_tenant_content-
|
|
1
|
+
import { I as __exportAll } from "./portal_tenant_content-CcKZMB9E.mjs";
|
|
2
2
|
import { C as subscriptions_reactivate, D as subscriptions_update, E as subscriptions_skip, S as subscriptions_pause, T as subscriptions_show, b as subscriptions_cancel, w as subscriptions_resume, x as subscriptions_list } from "./portal_tenant-l4a-eX2B.mjs";
|
|
3
3
|
import { i as usePayApi } from "./api-context-3GmfqvIB.mjs";
|
|
4
4
|
import { n as useCountriesApi } from "./countries-api-context-CMh13cfX.mjs";
|
|
@@ -3070,10 +3070,10 @@ function PortalSubscriptionsList({ customerId, isLoadingCustomer, onSubscription
|
|
|
3070
3070
|
}) }) }), /* @__PURE__ */ jsx("div", {
|
|
3071
3071
|
className: "relative",
|
|
3072
3072
|
children: /* @__PURE__ */ jsxs("div", {
|
|
3073
|
-
className: "
|
|
3073
|
+
className: "relative mx-auto max-w-4xl px-5 pt-8 pb-20 md:px-8",
|
|
3074
3074
|
children: [
|
|
3075
3075
|
/* @__PURE__ */ jsx("h1", {
|
|
3076
|
-
className: "text-
|
|
3076
|
+
className: "text-foreground text-xl font-bold tracking-tight md:text-2xl",
|
|
3077
3077
|
children: t("list_title")
|
|
3078
3078
|
}),
|
|
3079
3079
|
list.length > 0 && /* @__PURE__ */ jsx(FilterPills, {
|
|
@@ -3102,7 +3102,7 @@ function PortalSubscriptionsList({ customerId, isLoadingCustomer, onSubscription
|
|
|
3102
3102
|
}), inactiveSubs.length > 0 && /* @__PURE__ */ jsxs("div", {
|
|
3103
3103
|
className: activeSubs.length > 0 ? "mt-10" : "mt-6",
|
|
3104
3104
|
children: [/* @__PURE__ */ jsx("div", {
|
|
3105
|
-
className: "text-
|
|
3105
|
+
className: "text-muted-foreground mb-2 px-1 text-xs font-semibold",
|
|
3106
3106
|
children: t("list_cancelled_section_label", { n: String(inactiveSubs.length) })
|
|
3107
3107
|
}), /* @__PURE__ */ jsx("div", {
|
|
3108
3108
|
className: "space-y-3",
|
|
@@ -3119,7 +3119,7 @@ function PortalSubscriptionsList({ customerId, isLoadingCustomer, onSubscription
|
|
|
3119
3119
|
type: "button",
|
|
3120
3120
|
onClick: () => fetchNextPage(),
|
|
3121
3121
|
disabled: isFetchingNextPage,
|
|
3122
|
-
className: "ring-
|
|
3122
|
+
className: "ring-border text-foreground hover:bg-muted inline-flex items-center gap-1 rounded-md bg-transparent px-3 py-1.5 text-xs font-bold ring-1 transition-all disabled:cursor-not-allowed disabled:opacity-40",
|
|
3123
3123
|
children: isFetchingNextPage ? t("list_loading") : t("list_load_more")
|
|
3124
3124
|
})
|
|
3125
3125
|
})
|
|
@@ -3154,9 +3154,9 @@ function FilterPills({ active, counts, onChange, t }) {
|
|
|
3154
3154
|
return /* @__PURE__ */ jsxs("button", {
|
|
3155
3155
|
type: "button",
|
|
3156
3156
|
onClick: () => onChange(f.key),
|
|
3157
|
-
className: `
|
|
3157
|
+
className: `inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-bold transition-all ${isActive ? "bg-primary text-primary-foreground" : "ring-border text-foreground hover:bg-muted bg-transparent ring-1"}`,
|
|
3158
3158
|
children: [t(f.labelKey), /* @__PURE__ */ jsx("span", {
|
|
3159
|
-
className: `text-
|
|
3159
|
+
className: `text-xs tabular-nums ${isActive ? "text-primary-foreground/70" : "text-muted-foreground"}`,
|
|
3160
3160
|
children: count
|
|
3161
3161
|
})]
|
|
3162
3162
|
}, f.key);
|
|
@@ -3175,7 +3175,7 @@ function SubscriptionCard({ sub, onClick, onResume, t }) {
|
|
|
3175
3175
|
const cycle = computeCycleProgress(sub.last_bill_date, sub.next_bill_date, t);
|
|
3176
3176
|
const showCycle = cycle != null && !isPaused && !isCancelled && !isPastDue;
|
|
3177
3177
|
return /* @__PURE__ */ jsxs("div", {
|
|
3178
|
-
className: `group has-[:focus-visible]:ring-
|
|
3178
|
+
className: `group has-[:focus-visible]:ring-foreground/30 relative flex flex-col gap-5 rounded-2xl p-5 ring-1 transition-all duration-300 hover:-translate-y-0.5 has-[:focus-visible]:ring-2 ${isPastDue ? "from-destructive/10 via-destructive/[0.03] ring-destructive/15 hover:ring-destructive/30 bg-transparent bg-gradient-to-br to-transparent shadow-sm hover:shadow-lg" : "ring-foreground/5 hover:ring-foreground/10 bg-transparent shadow-sm hover:shadow-lg"} ${isPaused || isCancelled ? "opacity-90" : ""}`,
|
|
3179
3179
|
children: [/* @__PURE__ */ jsxs("button", {
|
|
3180
3180
|
type: "button",
|
|
3181
3181
|
onClick,
|
|
@@ -3191,52 +3191,52 @@ function SubscriptionCard({ sub, onClick, onResume, t }) {
|
|
|
3191
3191
|
className: "min-w-0 flex-1 pt-1",
|
|
3192
3192
|
children: [
|
|
3193
3193
|
/* @__PURE__ */ jsx("div", {
|
|
3194
|
-
className: "text-
|
|
3194
|
+
className: "text-foreground truncate text-base font-bold",
|
|
3195
3195
|
children: sub.variant.product.title || t("list_product_fallback")
|
|
3196
3196
|
}),
|
|
3197
3197
|
/* @__PURE__ */ jsx("div", {
|
|
3198
|
-
className: "text-
|
|
3198
|
+
className: "text-muted-foreground mt-0.5 text-sm",
|
|
3199
3199
|
children: cadence
|
|
3200
3200
|
}),
|
|
3201
3201
|
(isPaused || isCancelled || isPastDue) && /* @__PURE__ */ jsxs("div", {
|
|
3202
|
-
className: `
|
|
3203
|
-
children: [/* @__PURE__ */ jsx("span", { className: `size-1.5 rounded-full ${isCancelled || isPastDue ? "bg-
|
|
3202
|
+
className: `mt-2 inline-flex items-center gap-1.5 text-xs font-semibold ${isPastDue ? "text-destructive" : "text-muted-foreground/75"}`,
|
|
3203
|
+
children: [/* @__PURE__ */ jsx("span", { className: `size-1.5 rounded-full ${isCancelled || isPastDue ? "bg-destructive" : "bg-muted-foreground"}` }), status.label]
|
|
3204
3204
|
})
|
|
3205
3205
|
]
|
|
3206
3206
|
})]
|
|
3207
3207
|
}),
|
|
3208
3208
|
isCancelled ? /* @__PURE__ */ jsx("div", {
|
|
3209
|
-
className: "bg-
|
|
3209
|
+
className: "bg-muted text-muted-foreground rounded-xl px-4 py-3 text-sm font-semibold",
|
|
3210
3210
|
children: status.label
|
|
3211
3211
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
3212
|
-
className: "bg-
|
|
3212
|
+
className: "bg-muted rounded-xl px-4 py-3.5",
|
|
3213
3213
|
children: [/* @__PURE__ */ jsx("div", {
|
|
3214
|
-
className: `text-
|
|
3214
|
+
className: `text-sm font-bold ${isPastDue ? "text-destructive" : "text-foreground"}`,
|
|
3215
3215
|
children: isPastDue ? daysOverdue === 1 ? t("list_bill_due_1_day_ago") : daysOverdue > 0 ? t("list_bill_due_n_days_ago", { n: String(daysOverdue) }) : t("list_bill_overdue") : isPaused ? t("list_last_bill_label") : t("list_next_bill_label")
|
|
3216
3216
|
}), /* @__PURE__ */ jsxs("div", {
|
|
3217
3217
|
className: "mt-3 grid grid-cols-2",
|
|
3218
3218
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
3219
3219
|
className: "pr-4",
|
|
3220
3220
|
children: [/* @__PURE__ */ jsx("div", {
|
|
3221
|
-
className: "text-
|
|
3221
|
+
className: "text-muted-foreground text-xs",
|
|
3222
3222
|
children: isPaused ? t("list_last_bill_date") : t("list_bill_date")
|
|
3223
3223
|
}), /* @__PURE__ */ jsx("div", {
|
|
3224
|
-
className: `text-
|
|
3224
|
+
className: `mt-1 text-base font-bold tracking-tight tabular-nums ${isPastDue ? "text-destructive" : "text-foreground"}`,
|
|
3225
3225
|
children: (isPaused ? lastBillLong : nextBillLong) ?? "—"
|
|
3226
3226
|
})]
|
|
3227
3227
|
}), /* @__PURE__ */ jsxs("div", {
|
|
3228
|
-
className: "border-
|
|
3228
|
+
className: "border-border border-l pl-4",
|
|
3229
3229
|
children: [
|
|
3230
3230
|
/* @__PURE__ */ jsx("div", {
|
|
3231
|
-
className: "text-
|
|
3231
|
+
className: "text-muted-foreground text-xs",
|
|
3232
3232
|
children: isPaused ? t("list_last_bill_amount") : t("list_bill_amount")
|
|
3233
3233
|
}),
|
|
3234
3234
|
/* @__PURE__ */ jsx("div", {
|
|
3235
|
-
className: "text-
|
|
3235
|
+
className: "text-foreground mt-1 text-base font-bold tracking-tight tabular-nums",
|
|
3236
3236
|
children: formatPrice(sub)
|
|
3237
3237
|
}),
|
|
3238
3238
|
/* @__PURE__ */ jsx("div", {
|
|
3239
|
-
className: "text-
|
|
3239
|
+
className: "text-muted-foreground text-xs",
|
|
3240
3240
|
children: pricingSuffix(sub.subscription_plan, t)
|
|
3241
3241
|
})
|
|
3242
3242
|
]
|
|
@@ -3249,7 +3249,7 @@ function SubscriptionCard({ sub, onClick, onResume, t }) {
|
|
|
3249
3249
|
type: "button",
|
|
3250
3250
|
onClick: onResume,
|
|
3251
3251
|
disabled: !onResume,
|
|
3252
|
-
className: "bg-
|
|
3252
|
+
className: "bg-primary text-primary-foreground hover:bg-primary/90 inline-flex w-full items-center justify-center gap-1.5 rounded-md py-2.5 text-xs font-bold transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-40",
|
|
3253
3253
|
children: [/* @__PURE__ */ jsx(Play, {
|
|
3254
3254
|
className: "size-3 fill-current",
|
|
3255
3255
|
strokeWidth: 2.25
|
|
@@ -3259,13 +3259,13 @@ function SubscriptionCard({ sub, onClick, onResume, t }) {
|
|
|
3259
3259
|
}
|
|
3260
3260
|
function CycleProgress({ cycle }) {
|
|
3261
3261
|
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
|
|
3262
|
-
className: "bg-
|
|
3262
|
+
className: "bg-muted relative h-1.5 overflow-hidden rounded-full",
|
|
3263
3263
|
children: /* @__PURE__ */ jsx("div", {
|
|
3264
|
-
className: "bg-
|
|
3264
|
+
className: "bg-foreground absolute top-0 left-0 h-full rounded-full transition-all duration-500",
|
|
3265
3265
|
style: { width: `${Math.round(cycle.progress * 100)}%` }
|
|
3266
3266
|
})
|
|
3267
3267
|
}), /* @__PURE__ */ jsxs("div", {
|
|
3268
|
-
className: "text-
|
|
3268
|
+
className: "text-muted-foreground mt-2 flex items-center justify-between text-xs font-medium",
|
|
3269
3269
|
children: [/* @__PURE__ */ jsx("span", { children: cycle.startLabel }), /* @__PURE__ */ jsx("span", { children: cycle.endLabel })]
|
|
3270
3270
|
})] });
|
|
3271
3271
|
}
|
|
@@ -3275,15 +3275,15 @@ function InactiveSubscriptionRow({ sub, onClick, t }) {
|
|
|
3275
3275
|
return /* @__PURE__ */ jsxs("button", {
|
|
3276
3276
|
type: "button",
|
|
3277
3277
|
onClick,
|
|
3278
|
-
className: "group
|
|
3278
|
+
className: "group ring-foreground/5 hover:ring-foreground/10 focus-visible:ring-foreground/30 flex w-full cursor-pointer items-center gap-3 rounded-2xl bg-transparent px-4 py-3 text-left shadow-sm ring-1 transition-all duration-300 hover:-translate-y-0.5 hover:shadow-lg focus-visible:ring-2 focus-visible:outline-none",
|
|
3279
3279
|
children: [/* @__PURE__ */ jsx("div", {
|
|
3280
3280
|
className: "relative size-10 shrink-0 opacity-60 saturate-50",
|
|
3281
3281
|
children: sub.variant.product.image_url ? /* @__PURE__ */ jsx("img", {
|
|
3282
3282
|
src: sub.variant.product.image_url,
|
|
3283
3283
|
alt: "",
|
|
3284
|
-
className: "
|
|
3284
|
+
className: "ring-background size-10 rounded-xl bg-transparent object-cover ring-[3px]"
|
|
3285
3285
|
}) : /* @__PURE__ */ jsx("div", {
|
|
3286
|
-
className: "bg-
|
|
3286
|
+
className: "bg-muted ring-background text-muted-foreground flex size-10 items-center justify-center rounded-xl ring-[3px]",
|
|
3287
3287
|
children: /* @__PURE__ */ jsx(ImageOff, {
|
|
3288
3288
|
className: "size-4",
|
|
3289
3289
|
strokeWidth: 1.75
|
|
@@ -3292,10 +3292,10 @@ function InactiveSubscriptionRow({ sub, onClick, t }) {
|
|
|
3292
3292
|
}), /* @__PURE__ */ jsxs("div", {
|
|
3293
3293
|
className: "min-w-0 flex-1",
|
|
3294
3294
|
children: [/* @__PURE__ */ jsx("div", {
|
|
3295
|
-
className: "text-
|
|
3295
|
+
className: "text-foreground truncate text-sm font-bold",
|
|
3296
3296
|
children: sub.variant.product.title || t("list_product_fallback")
|
|
3297
3297
|
}), /* @__PURE__ */ jsx("div", {
|
|
3298
|
-
className: "text-
|
|
3298
|
+
className: "text-muted-foreground truncate text-xs",
|
|
3299
3299
|
children: detail
|
|
3300
3300
|
})]
|
|
3301
3301
|
})]
|
|
@@ -3307,15 +3307,15 @@ function Thumbnail({ product, muted, t }) {
|
|
|
3307
3307
|
children: [product.image_url ? /* @__PURE__ */ jsx("img", {
|
|
3308
3308
|
src: product.image_url,
|
|
3309
3309
|
alt: "",
|
|
3310
|
-
className: "bg-
|
|
3310
|
+
className: "bg-transparent ring-background size-24 rounded-2xl object-cover ring-[3px] shadow-sm"
|
|
3311
3311
|
}) : /* @__PURE__ */ jsx("div", {
|
|
3312
|
-
className: "bg-
|
|
3312
|
+
className: "bg-muted ring-background text-muted-foreground flex size-24 items-center justify-center rounded-2xl shadow-sm ring-[3px]",
|
|
3313
3313
|
children: /* @__PURE__ */ jsx(ImageOff, {
|
|
3314
3314
|
className: "size-7",
|
|
3315
3315
|
strokeWidth: 1.75
|
|
3316
3316
|
})
|
|
3317
3317
|
}), /* @__PURE__ */ jsx("div", {
|
|
3318
|
-
className: "bg-
|
|
3318
|
+
className: "bg-primary text-primary-foreground ring-background absolute -top-1 -right-1 z-40 flex size-6 items-center justify-center rounded-full ring-2",
|
|
3319
3319
|
title: t("list_recurring_badge"),
|
|
3320
3320
|
children: /* @__PURE__ */ jsx(Repeat, {
|
|
3321
3321
|
className: "size-3",
|
|
@@ -3326,55 +3326,55 @@ function Thumbnail({ product, muted, t }) {
|
|
|
3326
3326
|
}
|
|
3327
3327
|
function SubscriptionCardSkeleton() {
|
|
3328
3328
|
return /* @__PURE__ */ jsxs("div", {
|
|
3329
|
-
className: "ring-
|
|
3329
|
+
className: "ring-border flex flex-col gap-5 rounded-2xl bg-transparent p-5 ring-1",
|
|
3330
3330
|
children: [
|
|
3331
3331
|
/* @__PURE__ */ jsxs("div", {
|
|
3332
3332
|
className: "flex items-start gap-4",
|
|
3333
|
-
children: [/* @__PURE__ */ jsx("div", { className: "bg-
|
|
3333
|
+
children: [/* @__PURE__ */ jsx("div", { className: "bg-muted size-20 shrink-0 animate-pulse rounded-2xl" }), /* @__PURE__ */ jsxs("div", {
|
|
3334
3334
|
className: "flex-1 space-y-2 pt-1",
|
|
3335
|
-
children: [/* @__PURE__ */ jsx("div", { className: "bg-
|
|
3335
|
+
children: [/* @__PURE__ */ jsx("div", { className: "bg-muted h-5 w-2/3 animate-pulse rounded" }), /* @__PURE__ */ jsx("div", { className: "bg-muted h-4 w-1/2 animate-pulse rounded" })]
|
|
3336
3336
|
})]
|
|
3337
3337
|
}),
|
|
3338
|
-
/* @__PURE__ */ jsx("div", { className: "bg-
|
|
3339
|
-
/* @__PURE__ */ jsx("div", { className: "bg-
|
|
3338
|
+
/* @__PURE__ */ jsx("div", { className: "bg-muted h-12 animate-pulse rounded" }),
|
|
3339
|
+
/* @__PURE__ */ jsx("div", { className: "bg-muted h-6 animate-pulse rounded" })
|
|
3340
3340
|
]
|
|
3341
3341
|
});
|
|
3342
3342
|
}
|
|
3343
3343
|
function EmptyState({ filtered, t }) {
|
|
3344
3344
|
return /* @__PURE__ */ jsxs("div", {
|
|
3345
|
-
className: "ring-
|
|
3345
|
+
className: "ring-border mx-auto mt-12 flex max-w-md flex-col items-center gap-2 rounded-2xl bg-transparent px-6 py-12 text-center ring-1",
|
|
3346
3346
|
children: [/* @__PURE__ */ jsx("div", {
|
|
3347
|
-
className: "text-
|
|
3347
|
+
className: "text-foreground text-sm font-bold",
|
|
3348
3348
|
children: filtered ? t("list_no_in_view") : t("list_none_yet")
|
|
3349
3349
|
}), /* @__PURE__ */ jsx("div", {
|
|
3350
|
-
className: "text-
|
|
3350
|
+
className: "text-muted-foreground text-xs",
|
|
3351
3351
|
children: filtered ? t("list_filtered_hint") : t("list_empty_hint")
|
|
3352
3352
|
})]
|
|
3353
3353
|
});
|
|
3354
3354
|
}
|
|
3355
3355
|
function ErrorState({ onRetry, t }) {
|
|
3356
3356
|
return /* @__PURE__ */ jsxs("div", {
|
|
3357
|
-
className: "ring-
|
|
3357
|
+
className: "ring-border mx-auto mt-12 flex max-w-md flex-col items-center gap-2 rounded-2xl bg-transparent px-6 py-12 text-center ring-1",
|
|
3358
3358
|
children: [
|
|
3359
3359
|
/* @__PURE__ */ jsx("div", {
|
|
3360
|
-
className: "bg-
|
|
3360
|
+
className: "bg-muted flex size-12 items-center justify-center rounded-full",
|
|
3361
3361
|
children: /* @__PURE__ */ jsx(AlertCircle, {
|
|
3362
|
-
className: "text-
|
|
3362
|
+
className: "text-muted-foreground size-5",
|
|
3363
3363
|
strokeWidth: 2
|
|
3364
3364
|
})
|
|
3365
3365
|
}),
|
|
3366
3366
|
/* @__PURE__ */ jsx("div", {
|
|
3367
|
-
className: "text-
|
|
3367
|
+
className: "text-foreground text-sm font-bold",
|
|
3368
3368
|
children: t("list_load_failed_title")
|
|
3369
3369
|
}),
|
|
3370
3370
|
/* @__PURE__ */ jsx("div", {
|
|
3371
|
-
className: "text-
|
|
3371
|
+
className: "text-muted-foreground text-xs",
|
|
3372
3372
|
children: t("list_load_failed_hint")
|
|
3373
3373
|
}),
|
|
3374
3374
|
/* @__PURE__ */ jsx("button", {
|
|
3375
3375
|
type: "button",
|
|
3376
3376
|
onClick: onRetry,
|
|
3377
|
-
className: "bg-
|
|
3377
|
+
className: "bg-primary text-primary-foreground hover:bg-primary/90 mt-2 inline-flex items-center gap-1 rounded-md px-3 py-1.5 text-xs font-bold transition-all",
|
|
3378
3378
|
children: t("list_try_again")
|
|
3379
3379
|
})
|
|
3380
3380
|
]
|
|
@@ -5699,4 +5699,4 @@ const subscriptionsScreenPropertySchema = {
|
|
|
5699
5699
|
//#endregion
|
|
5700
5700
|
export { SubscriptionsScreen_exports as n, subscriptionsScreenPropertySchema as r, SubscriptionsScreen as t };
|
|
5701
5701
|
|
|
5702
|
-
//# sourceMappingURL=SubscriptionsScreen-
|
|
5702
|
+
//# sourceMappingURL=SubscriptionsScreen-CaDhBQSX.mjs.map
|