@fluid-app/portal-sdk 0.1.299 → 0.1.301
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/{MessagingScreen-BD8ERG5Y.cjs → MessagingScreen-2M2ETWXp.cjs} +54 -48
- package/dist/{MessagingScreen-BD8ERG5Y.cjs.map → MessagingScreen-2M2ETWXp.cjs.map} +1 -1
- package/dist/{MessagingScreen-BcV-HK8F.mjs → MessagingScreen-B4vUvkRg.mjs} +1 -1
- package/dist/{MessagingScreen-DoeAiV25.cjs → MessagingScreen-BI4AufwC.cjs} +1 -1
- package/dist/{MessagingScreen-ZvDwEc5y.mjs → MessagingScreen-CwzSY_G8.mjs} +54 -48
- package/dist/{MessagingScreen-ZvDwEc5y.mjs.map → MessagingScreen-CwzSY_G8.mjs.map} +1 -1
- package/dist/{OrdersScreen-sLr0z213.cjs → OrdersScreen-B-Nfx1pU.cjs} +1 -1
- package/dist/{OrdersScreen-DoopejMR.mjs → OrdersScreen-BR1WDP_v.mjs} +1 -1
- package/dist/{OrdersScreen-CS1xA9q5.cjs → OrdersScreen-CtAlBgys.cjs} +39 -39
- package/dist/OrdersScreen-CtAlBgys.cjs.map +1 -0
- package/dist/{OrdersScreen-CFfrQG4i.mjs → OrdersScreen-E0HjjKxj.mjs} +39 -39
- package/dist/OrdersScreen-E0HjjKxj.mjs.map +1 -0
- package/dist/{ProfileScreen-CwP66ls2.cjs → ProfileScreen-CL8xD-q8.cjs} +1 -1
- package/dist/{ProfileScreen-wj0KTaQF.mjs → ProfileScreen-COZw57uK.mjs} +1 -1
- package/dist/{ProfileScreen-BCR3FU5g.cjs → ProfileScreen-CPzuS8kI.cjs} +69 -69
- package/dist/ProfileScreen-CPzuS8kI.cjs.map +1 -0
- package/dist/{ProfileScreen-CefqZr-Q.mjs → ProfileScreen-fIQkeFTu.mjs} +69 -69
- package/dist/ProfileScreen-fIQkeFTu.mjs.map +1 -0
- package/dist/{SubscriptionsScreen-DKihggHx.cjs → SubscriptionsScreen-6Xp62ubF.cjs} +1 -1
- package/dist/{SubscriptionsScreen-Cjd2aGeW.mjs → SubscriptionsScreen-D8XUHV0b.mjs} +47 -47
- package/dist/{SubscriptionsScreen-Cjd2aGeW.mjs.map → SubscriptionsScreen-D8XUHV0b.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/index.cjs +12 -12
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +12 -12
- package/package.json +15 -15
- package/styles/globals.css +0 -222
- package/dist/OrdersScreen-CFfrQG4i.mjs.map +0 -1
- package/dist/OrdersScreen-CS1xA9q5.cjs.map +0 -1
- package/dist/ProfileScreen-BCR3FU5g.cjs.map +0 -1
- package/dist/ProfileScreen-CefqZr-Q.mjs.map +0 -1
|
@@ -3131,10 +3131,10 @@ function PortalSubscriptionsList({ customerId, isLoadingCustomer, onSubscription
|
|
|
3131
3131
|
}) }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3132
3132
|
className: "relative",
|
|
3133
3133
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3134
|
-
className: "
|
|
3134
|
+
className: "relative mx-auto max-w-4xl px-5 pt-8 pb-20 md:px-8",
|
|
3135
3135
|
children: [
|
|
3136
3136
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h1", {
|
|
3137
|
-
className: "text-
|
|
3137
|
+
className: "text-foreground text-xl font-bold tracking-tight md:text-2xl",
|
|
3138
3138
|
children: t("list_title")
|
|
3139
3139
|
}),
|
|
3140
3140
|
list.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FilterPills, {
|
|
@@ -3163,7 +3163,7 @@ function PortalSubscriptionsList({ customerId, isLoadingCustomer, onSubscription
|
|
|
3163
3163
|
}), inactiveSubs.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3164
3164
|
className: activeSubs.length > 0 ? "mt-10" : "mt-6",
|
|
3165
3165
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3166
|
-
className: "text-
|
|
3166
|
+
className: "text-muted-foreground mb-2 px-1 text-xs font-semibold",
|
|
3167
3167
|
children: t("list_cancelled_section_label", { n: String(inactiveSubs.length) })
|
|
3168
3168
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3169
3169
|
className: "space-y-3",
|
|
@@ -3180,7 +3180,7 @@ function PortalSubscriptionsList({ customerId, isLoadingCustomer, onSubscription
|
|
|
3180
3180
|
type: "button",
|
|
3181
3181
|
onClick: () => fetchNextPage(),
|
|
3182
3182
|
disabled: isFetchingNextPage,
|
|
3183
|
-
className: "ring-
|
|
3183
|
+
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",
|
|
3184
3184
|
children: isFetchingNextPage ? t("list_loading") : t("list_load_more")
|
|
3185
3185
|
})
|
|
3186
3186
|
})
|
|
@@ -3215,9 +3215,9 @@ function FilterPills({ active, counts, onChange, t }) {
|
|
|
3215
3215
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
3216
3216
|
type: "button",
|
|
3217
3217
|
onClick: () => onChange(f.key),
|
|
3218
|
-
className: `
|
|
3218
|
+
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"}`,
|
|
3219
3219
|
children: [t(f.labelKey), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
3220
|
-
className: `text-
|
|
3220
|
+
className: `text-xs tabular-nums ${isActive ? "text-primary-foreground/70" : "text-muted-foreground"}`,
|
|
3221
3221
|
children: count
|
|
3222
3222
|
})]
|
|
3223
3223
|
}, f.key);
|
|
@@ -3236,7 +3236,7 @@ function SubscriptionCard({ sub, onClick, onResume, t }) {
|
|
|
3236
3236
|
const cycle = computeCycleProgress(sub.last_bill_date, sub.next_bill_date, t);
|
|
3237
3237
|
const showCycle = cycle != null && !isPaused && !isCancelled && !isPastDue;
|
|
3238
3238
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3239
|
-
className: `group has-[:focus-visible]:ring-
|
|
3239
|
+
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" : ""}`,
|
|
3240
3240
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
3241
3241
|
type: "button",
|
|
3242
3242
|
onClick,
|
|
@@ -3252,52 +3252,52 @@ function SubscriptionCard({ sub, onClick, onResume, t }) {
|
|
|
3252
3252
|
className: "min-w-0 flex-1 pt-1",
|
|
3253
3253
|
children: [
|
|
3254
3254
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3255
|
-
className: "text-
|
|
3255
|
+
className: "text-foreground truncate text-base font-bold",
|
|
3256
3256
|
children: sub.variant.product.title || t("list_product_fallback")
|
|
3257
3257
|
}),
|
|
3258
3258
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3259
|
-
className: "text-
|
|
3259
|
+
className: "text-muted-foreground mt-0.5 text-sm",
|
|
3260
3260
|
children: cadence
|
|
3261
3261
|
}),
|
|
3262
3262
|
(isPaused || isCancelled || isPastDue) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3263
|
-
className: `
|
|
3264
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: `size-1.5 rounded-full ${isCancelled || isPastDue ? "bg-
|
|
3263
|
+
className: `mt-2 inline-flex items-center gap-1.5 text-xs font-semibold ${isPastDue ? "text-destructive" : "text-muted-foreground/75"}`,
|
|
3264
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: `size-1.5 rounded-full ${isCancelled || isPastDue ? "bg-destructive" : "bg-muted-foreground"}` }), status.label]
|
|
3265
3265
|
})
|
|
3266
3266
|
]
|
|
3267
3267
|
})]
|
|
3268
3268
|
}),
|
|
3269
3269
|
isCancelled ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3270
|
-
className: "bg-
|
|
3270
|
+
className: "bg-muted text-muted-foreground rounded-xl px-4 py-3 text-sm font-semibold",
|
|
3271
3271
|
children: status.label
|
|
3272
3272
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3273
|
-
className: "bg-
|
|
3273
|
+
className: "bg-muted rounded-xl px-4 py-3.5",
|
|
3274
3274
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3275
|
-
className: `text-
|
|
3275
|
+
className: `text-sm font-bold ${isPastDue ? "text-destructive" : "text-foreground"}`,
|
|
3276
3276
|
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")
|
|
3277
3277
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3278
3278
|
className: "mt-3 grid grid-cols-2",
|
|
3279
3279
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3280
3280
|
className: "pr-4",
|
|
3281
3281
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3282
|
-
className: "text-
|
|
3282
|
+
className: "text-muted-foreground text-xs",
|
|
3283
3283
|
children: isPaused ? t("list_last_bill_date") : t("list_bill_date")
|
|
3284
3284
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3285
|
-
className: `text-
|
|
3285
|
+
className: `mt-1 text-base font-bold tracking-tight tabular-nums ${isPastDue ? "text-destructive" : "text-foreground"}`,
|
|
3286
3286
|
children: (isPaused ? lastBillLong : nextBillLong) ?? "—"
|
|
3287
3287
|
})]
|
|
3288
3288
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3289
|
-
className: "border-
|
|
3289
|
+
className: "border-border border-l pl-4",
|
|
3290
3290
|
children: [
|
|
3291
3291
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3292
|
-
className: "text-
|
|
3292
|
+
className: "text-muted-foreground text-xs",
|
|
3293
3293
|
children: isPaused ? t("list_last_bill_amount") : t("list_bill_amount")
|
|
3294
3294
|
}),
|
|
3295
3295
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3296
|
-
className: "text-
|
|
3296
|
+
className: "text-foreground mt-1 text-base font-bold tracking-tight tabular-nums",
|
|
3297
3297
|
children: formatPrice(sub)
|
|
3298
3298
|
}),
|
|
3299
3299
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3300
|
-
className: "text-
|
|
3300
|
+
className: "text-muted-foreground text-xs",
|
|
3301
3301
|
children: pricingSuffix(sub.subscription_plan, t)
|
|
3302
3302
|
})
|
|
3303
3303
|
]
|
|
@@ -3310,7 +3310,7 @@ function SubscriptionCard({ sub, onClick, onResume, t }) {
|
|
|
3310
3310
|
type: "button",
|
|
3311
3311
|
onClick: onResume,
|
|
3312
3312
|
disabled: !onResume,
|
|
3313
|
-
className: "bg-
|
|
3313
|
+
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",
|
|
3314
3314
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Play, {
|
|
3315
3315
|
className: "size-3 fill-current",
|
|
3316
3316
|
strokeWidth: 2.25
|
|
@@ -3320,13 +3320,13 @@ function SubscriptionCard({ sub, onClick, onResume, t }) {
|
|
|
3320
3320
|
}
|
|
3321
3321
|
function CycleProgress({ cycle }) {
|
|
3322
3322
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3323
|
-
className: "bg-
|
|
3323
|
+
className: "bg-muted relative h-1.5 overflow-hidden rounded-full",
|
|
3324
3324
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3325
|
-
className: "bg-
|
|
3325
|
+
className: "bg-foreground absolute top-0 left-0 h-full rounded-full transition-all duration-500",
|
|
3326
3326
|
style: { width: `${Math.round(cycle.progress * 100)}%` }
|
|
3327
3327
|
})
|
|
3328
3328
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3329
|
-
className: "text-
|
|
3329
|
+
className: "text-muted-foreground mt-2 flex items-center justify-between text-xs font-medium",
|
|
3330
3330
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: cycle.startLabel }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: cycle.endLabel })]
|
|
3331
3331
|
})] });
|
|
3332
3332
|
}
|
|
@@ -3336,15 +3336,15 @@ function InactiveSubscriptionRow({ sub, onClick, t }) {
|
|
|
3336
3336
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
3337
3337
|
type: "button",
|
|
3338
3338
|
onClick,
|
|
3339
|
-
className: "group
|
|
3339
|
+
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",
|
|
3340
3340
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3341
3341
|
className: "relative size-10 shrink-0 opacity-60 saturate-50",
|
|
3342
3342
|
children: sub.variant.product.image_url ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
3343
3343
|
src: sub.variant.product.image_url,
|
|
3344
3344
|
alt: "",
|
|
3345
|
-
className: "
|
|
3345
|
+
className: "ring-background size-10 rounded-xl bg-transparent object-cover ring-[3px]"
|
|
3346
3346
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3347
|
-
className: "bg-
|
|
3347
|
+
className: "bg-muted ring-background text-muted-foreground flex size-10 items-center justify-center rounded-xl ring-[3px]",
|
|
3348
3348
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ImageOff, {
|
|
3349
3349
|
className: "size-4",
|
|
3350
3350
|
strokeWidth: 1.75
|
|
@@ -3353,10 +3353,10 @@ function InactiveSubscriptionRow({ sub, onClick, t }) {
|
|
|
3353
3353
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3354
3354
|
className: "min-w-0 flex-1",
|
|
3355
3355
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3356
|
-
className: "text-
|
|
3356
|
+
className: "text-foreground truncate text-sm font-bold",
|
|
3357
3357
|
children: sub.variant.product.title || t("list_product_fallback")
|
|
3358
3358
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3359
|
-
className: "text-
|
|
3359
|
+
className: "text-muted-foreground truncate text-xs",
|
|
3360
3360
|
children: detail
|
|
3361
3361
|
})]
|
|
3362
3362
|
})]
|
|
@@ -3368,15 +3368,15 @@ function Thumbnail({ product, muted, t }) {
|
|
|
3368
3368
|
children: [product.image_url ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
3369
3369
|
src: product.image_url,
|
|
3370
3370
|
alt: "",
|
|
3371
|
-
className: "bg-
|
|
3371
|
+
className: "bg-transparent ring-background size-24 rounded-2xl object-cover ring-[3px] shadow-sm"
|
|
3372
3372
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3373
|
-
className: "bg-
|
|
3373
|
+
className: "bg-muted ring-background text-muted-foreground flex size-24 items-center justify-center rounded-2xl shadow-sm ring-[3px]",
|
|
3374
3374
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ImageOff, {
|
|
3375
3375
|
className: "size-7",
|
|
3376
3376
|
strokeWidth: 1.75
|
|
3377
3377
|
})
|
|
3378
3378
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3379
|
-
className: "bg-
|
|
3379
|
+
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",
|
|
3380
3380
|
title: t("list_recurring_badge"),
|
|
3381
3381
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Repeat, {
|
|
3382
3382
|
className: "size-3",
|
|
@@ -3387,55 +3387,55 @@ function Thumbnail({ product, muted, t }) {
|
|
|
3387
3387
|
}
|
|
3388
3388
|
function SubscriptionCardSkeleton() {
|
|
3389
3389
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3390
|
-
className: "ring-
|
|
3390
|
+
className: "ring-border flex flex-col gap-5 rounded-2xl bg-transparent p-5 ring-1",
|
|
3391
3391
|
children: [
|
|
3392
3392
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3393
3393
|
className: "flex items-start gap-4",
|
|
3394
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "bg-
|
|
3394
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "bg-muted size-20 shrink-0 animate-pulse rounded-2xl" }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3395
3395
|
className: "flex-1 space-y-2 pt-1",
|
|
3396
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "bg-
|
|
3396
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "bg-muted h-5 w-2/3 animate-pulse rounded" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "bg-muted h-4 w-1/2 animate-pulse rounded" })]
|
|
3397
3397
|
})]
|
|
3398
3398
|
}),
|
|
3399
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "bg-
|
|
3400
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "bg-
|
|
3399
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "bg-muted h-12 animate-pulse rounded" }),
|
|
3400
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "bg-muted h-6 animate-pulse rounded" })
|
|
3401
3401
|
]
|
|
3402
3402
|
});
|
|
3403
3403
|
}
|
|
3404
3404
|
function EmptyState({ filtered, t }) {
|
|
3405
3405
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3406
|
-
className: "ring-
|
|
3406
|
+
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",
|
|
3407
3407
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3408
|
-
className: "text-
|
|
3408
|
+
className: "text-foreground text-sm font-bold",
|
|
3409
3409
|
children: filtered ? t("list_no_in_view") : t("list_none_yet")
|
|
3410
3410
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3411
|
-
className: "text-
|
|
3411
|
+
className: "text-muted-foreground text-xs",
|
|
3412
3412
|
children: filtered ? t("list_filtered_hint") : t("list_empty_hint")
|
|
3413
3413
|
})]
|
|
3414
3414
|
});
|
|
3415
3415
|
}
|
|
3416
3416
|
function ErrorState({ onRetry, t }) {
|
|
3417
3417
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3418
|
-
className: "ring-
|
|
3418
|
+
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",
|
|
3419
3419
|
children: [
|
|
3420
3420
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3421
|
-
className: "bg-
|
|
3421
|
+
className: "bg-muted flex size-12 items-center justify-center rounded-full",
|
|
3422
3422
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.AlertCircle, {
|
|
3423
|
-
className: "text-
|
|
3423
|
+
className: "text-muted-foreground size-5",
|
|
3424
3424
|
strokeWidth: 2
|
|
3425
3425
|
})
|
|
3426
3426
|
}),
|
|
3427
3427
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3428
|
-
className: "text-
|
|
3428
|
+
className: "text-foreground text-sm font-bold",
|
|
3429
3429
|
children: t("list_load_failed_title")
|
|
3430
3430
|
}),
|
|
3431
3431
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3432
|
-
className: "text-
|
|
3432
|
+
className: "text-muted-foreground text-xs",
|
|
3433
3433
|
children: t("list_load_failed_hint")
|
|
3434
3434
|
}),
|
|
3435
3435
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
3436
3436
|
type: "button",
|
|
3437
3437
|
onClick: onRetry,
|
|
3438
|
-
className: "bg-
|
|
3438
|
+
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",
|
|
3439
3439
|
children: t("list_try_again")
|
|
3440
3440
|
})
|
|
3441
3441
|
]
|
|
@@ -5767,4 +5767,4 @@ Object.defineProperty(exports, "subscriptionsScreenPropertySchema", {
|
|
|
5767
5767
|
}
|
|
5768
5768
|
});
|
|
5769
5769
|
|
|
5770
|
-
//# sourceMappingURL=SubscriptionsScreen-
|
|
5770
|
+
//# sourceMappingURL=SubscriptionsScreen-YL-1_nFd.cjs.map
|