@burdenoff/microfe-billing 2026.623.3 → 2026.624.2
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/billing/BillingUserRoutes.js +3 -3
- package/dist/billing/BillingUserRoutes.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js +34 -34
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.js +94 -94
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.js.map +1 -1
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js +162 -187
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +146 -153
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.js +10 -10
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/TransactionsPage.js +62 -62
- package/dist/billing/modules/billing/pages/TransactionsPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js +164 -179
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js +8 -8
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/EarningsPage.js +243 -305
- package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +73 -78
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutsPage.js +173 -179
- package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.js +4 -4
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.js.map +1 -1
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +4 -4
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.js.map +1 -1
- package/dist/billing/modules/settings/pages/SettingsPage.js +181 -173
- package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +111 -99
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +68 -83
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js.map +1 -1
- package/dist/billing/shared/components/AccessDenied.js +4 -4
- package/dist/billing/shared/components/AccessDenied.js.map +1 -1
- package/dist/billing/shared/components/ActorIdentity.js +8 -8
- package/dist/billing/shared/components/ActorIdentity.js.map +1 -1
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.js +11 -11
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.js.map +1 -1
- package/dist/billing/shared/ui/MetricCard.js +1 -1
- package/dist/billing/shared/ui/MetricCard.js.map +1 -1
- package/package.json +1 -1
|
@@ -64,24 +64,24 @@ var w = () => {
|
|
|
64
64
|
}), { addToCart: h, removeFromCart: g, updateQuantity: _, isInCart: S, getCartItem: C } = a(), [w, k] = u("grid"), [A, j] = u("all"), M = c(), N = d.filter((e) => !(!e.isActive || A !== "all" && e.duration !== A)), P = l(() => x(N), [N]);
|
|
65
65
|
return f && d.length === 0 ? /* @__PURE__ */ y("div", {
|
|
66
66
|
className: "space-y-6 p-6",
|
|
67
|
-
children: [/* @__PURE__ */ v("div", { className: "h-8 w-48 bg-
|
|
67
|
+
children: [/* @__PURE__ */ v("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ v("div", {
|
|
68
68
|
className: "grid grid-cols-1 md:grid-cols-3 gap-6",
|
|
69
69
|
children: [
|
|
70
70
|
1,
|
|
71
71
|
2,
|
|
72
72
|
3
|
|
73
73
|
].map((e) => /* @__PURE__ */ y("div", {
|
|
74
|
-
className: "border border-border rounded-lg p-6 space-y-4",
|
|
74
|
+
className: "border border-border-subtle rounded-lg p-6 space-y-4",
|
|
75
75
|
children: [
|
|
76
|
-
/* @__PURE__ */ v("div", { className: "h-6 w-24 bg-
|
|
77
|
-
/* @__PURE__ */ v("div", { className: "h-8 w-32 bg-
|
|
76
|
+
/* @__PURE__ */ v("div", { className: "h-6 w-24 bg-bg-sunken animate-pulse rounded" }),
|
|
77
|
+
/* @__PURE__ */ v("div", { className: "h-8 w-32 bg-bg-sunken animate-pulse rounded" }),
|
|
78
78
|
/* @__PURE__ */ v("div", {
|
|
79
79
|
className: "space-y-2",
|
|
80
80
|
children: [
|
|
81
81
|
1,
|
|
82
82
|
2,
|
|
83
83
|
3
|
|
84
|
-
].map((e) => /* @__PURE__ */ v("div", { className: "h-4 w-full bg-
|
|
84
|
+
].map((e) => /* @__PURE__ */ v("div", { className: "h-4 w-full bg-bg-sunken animate-pulse rounded" }, e))
|
|
85
85
|
})
|
|
86
86
|
]
|
|
87
87
|
}, e))
|
|
@@ -92,17 +92,17 @@ var w = () => {
|
|
|
92
92
|
className: "text-center space-y-4",
|
|
93
93
|
children: [
|
|
94
94
|
/* @__PURE__ */ v("h2", {
|
|
95
|
-
className: "text-lg font-semibold text-
|
|
95
|
+
className: "text-lg font-semibold text-text-primary",
|
|
96
96
|
children: n("billing.addons.failedToLoad", "Failed to load addons")
|
|
97
97
|
}),
|
|
98
98
|
/* @__PURE__ */ v("p", {
|
|
99
|
-
className: "text-sm text-
|
|
99
|
+
className: "text-sm text-text-secondary",
|
|
100
100
|
children: p.message
|
|
101
101
|
}),
|
|
102
102
|
/* @__PURE__ */ v("button", {
|
|
103
103
|
type: "button",
|
|
104
104
|
onClick: () => m(),
|
|
105
|
-
className: "px-4 py-2 text-sm font-medium bg-primary text-primary-
|
|
105
|
+
className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 transition-colors",
|
|
106
106
|
children: "Try Again"
|
|
107
107
|
})
|
|
108
108
|
]
|
|
@@ -111,16 +111,16 @@ var w = () => {
|
|
|
111
111
|
className: "space-y-6 p-6",
|
|
112
112
|
children: [
|
|
113
113
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h1", {
|
|
114
|
-
className: "text-2xl font-bold text-
|
|
114
|
+
className: "text-2xl font-bold text-text-primary",
|
|
115
115
|
children: n("billing.addons.title", "Addons")
|
|
116
116
|
}), /* @__PURE__ */ v("p", {
|
|
117
|
-
className: "text-sm text-
|
|
117
|
+
className: "text-sm text-text-secondary mt-1",
|
|
118
118
|
children: n("billing.addons.subtitle", "Enhance your subscription with additional features")
|
|
119
119
|
})] }),
|
|
120
120
|
/* @__PURE__ */ y("div", {
|
|
121
|
-
className: "flex flex-wrap items-center gap-4 pb-4 border-b border-border",
|
|
121
|
+
className: "flex flex-wrap items-center gap-4 pb-4 border-b border-border-subtle",
|
|
122
122
|
children: [/* @__PURE__ */ v("div", {
|
|
123
|
-
className: "inline-flex rounded-lg border border-border p-1 bg-
|
|
123
|
+
className: "inline-flex rounded-lg border border-border-subtle p-1 bg-bg-sunken/50",
|
|
124
124
|
children: [
|
|
125
125
|
"all",
|
|
126
126
|
"monthly",
|
|
@@ -128,15 +128,15 @@ var w = () => {
|
|
|
128
128
|
].map((e) => /* @__PURE__ */ v("button", {
|
|
129
129
|
type: "button",
|
|
130
130
|
onClick: () => j(e),
|
|
131
|
-
className: `px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${A === e ? "bg-
|
|
131
|
+
className: `px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${A === e ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"}`,
|
|
132
132
|
children: e === "all" ? "All" : e === "monthly" ? "Monthly" : "Yearly"
|
|
133
133
|
}, e))
|
|
134
134
|
}), /* @__PURE__ */ y("div", {
|
|
135
|
-
className: "ml-auto inline-flex rounded-lg border border-border p-1 bg-
|
|
135
|
+
className: "ml-auto inline-flex rounded-lg border border-border-subtle p-1 bg-bg-sunken/50",
|
|
136
136
|
children: [/* @__PURE__ */ v("button", {
|
|
137
137
|
type: "button",
|
|
138
138
|
onClick: () => k("grid"),
|
|
139
|
-
className: `p-1.5 rounded-md transition-colors ${w === "grid" ? "bg-
|
|
139
|
+
className: `p-1.5 rounded-md transition-colors ${w === "grid" ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"}`,
|
|
140
140
|
title: "Grid view",
|
|
141
141
|
children: /* @__PURE__ */ v("svg", {
|
|
142
142
|
className: "size-4",
|
|
@@ -153,7 +153,7 @@ var w = () => {
|
|
|
153
153
|
}), /* @__PURE__ */ v("button", {
|
|
154
154
|
type: "button",
|
|
155
155
|
onClick: () => k("list"),
|
|
156
|
-
className: `p-1.5 rounded-md transition-colors ${w === "list" ? "bg-
|
|
156
|
+
className: `p-1.5 rounded-md transition-colors ${w === "list" ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"}`,
|
|
157
157
|
title: "List view",
|
|
158
158
|
children: /* @__PURE__ */ v("svg", {
|
|
159
159
|
className: "size-4",
|
|
@@ -171,12 +171,12 @@ var w = () => {
|
|
|
171
171
|
})]
|
|
172
172
|
}),
|
|
173
173
|
N.length === 0 ? /* @__PURE__ */ y("div", {
|
|
174
|
-
className: "flex flex-col items-center justify-center py-12 border border-dashed border-border rounded-lg",
|
|
174
|
+
className: "flex flex-col items-center justify-center py-12 border border-dashed border-border-subtle rounded-lg",
|
|
175
175
|
children: [
|
|
176
176
|
/* @__PURE__ */ v("div", {
|
|
177
|
-
className: "size-12 rounded-full bg-
|
|
177
|
+
className: "size-12 rounded-full bg-bg-sunken flex items-center justify-center mb-4",
|
|
178
178
|
children: /* @__PURE__ */ v("svg", {
|
|
179
|
-
className: "size-6 text-
|
|
179
|
+
className: "size-6 text-text-secondary",
|
|
180
180
|
fill: "none",
|
|
181
181
|
viewBox: "0 0 24 24",
|
|
182
182
|
stroke: "currentColor",
|
|
@@ -189,11 +189,11 @@ var w = () => {
|
|
|
189
189
|
})
|
|
190
190
|
}),
|
|
191
191
|
/* @__PURE__ */ v("h3", {
|
|
192
|
-
className: "text-lg font-medium text-
|
|
192
|
+
className: "text-lg font-medium text-text-primary",
|
|
193
193
|
children: n("billing.addons.noAddonsAvailable", "No addons available")
|
|
194
194
|
}),
|
|
195
195
|
/* @__PURE__ */ v("p", {
|
|
196
|
-
className: "text-sm text-
|
|
196
|
+
className: "text-sm text-text-secondary mt-1",
|
|
197
197
|
children: n("billing.addons.checkBackLater", "Check back later for new addons.")
|
|
198
198
|
})
|
|
199
199
|
]
|
|
@@ -231,19 +231,19 @@ var w = () => {
|
|
|
231
231
|
}, T = ({ groupName: e, addons: i, viewMode: a, getCartItem: o, isInCart: s, addToCart: c, updateQuantity: l, removeFromCart: u, displayCurrency: g, navigateTo: _ }) => {
|
|
232
232
|
let b = i.filter((e) => s(e.id)).length;
|
|
233
233
|
return /* @__PURE__ */ y("div", {
|
|
234
|
-
className: "border border-border rounded-xl overflow-hidden",
|
|
234
|
+
className: "border border-border-subtle rounded-xl overflow-hidden",
|
|
235
235
|
children: [/* @__PURE__ */ y("div", {
|
|
236
|
-
className: "flex items-center justify-between px-5 py-3 bg-
|
|
236
|
+
className: "flex items-center justify-between px-5 py-3 bg-bg-sunken/40 border-b border-border-subtle",
|
|
237
237
|
children: [/* @__PURE__ */ y("div", {
|
|
238
238
|
className: "flex items-center gap-2",
|
|
239
239
|
children: [
|
|
240
|
-
/* @__PURE__ */ v(f, { className: "size-4 text-
|
|
240
|
+
/* @__PURE__ */ v(f, { className: "size-4 text-text-secondary" }),
|
|
241
241
|
/* @__PURE__ */ v("h2", {
|
|
242
|
-
className: "font-semibold text-
|
|
242
|
+
className: "font-semibold text-text-primary",
|
|
243
243
|
children: e
|
|
244
244
|
}),
|
|
245
245
|
/* @__PURE__ */ y("span", {
|
|
246
|
-
className: "text-xs text-
|
|
246
|
+
className: "text-xs text-text-secondary",
|
|
247
247
|
children: [
|
|
248
248
|
i.length,
|
|
249
249
|
" option",
|
|
@@ -252,7 +252,7 @@ var w = () => {
|
|
|
252
252
|
})
|
|
253
253
|
]
|
|
254
254
|
}), b > 0 && /* @__PURE__ */ y("span", {
|
|
255
|
-
className: "text-xs font-medium px-2 py-0.5 bg-primary text-primary-
|
|
255
|
+
className: "text-xs font-medium px-2 py-0.5 bg-action-primary-bg text-action-primary-text rounded-full",
|
|
256
256
|
children: [b, " in cart"]
|
|
257
257
|
})]
|
|
258
258
|
}), a === "grid" ? /* @__PURE__ */ v("div", {
|
|
@@ -272,24 +272,24 @@ var w = () => {
|
|
|
272
272
|
};
|
|
273
273
|
})();
|
|
274
274
|
return /* @__PURE__ */ y("div", {
|
|
275
|
-
className: `relative flex flex-col rounded-lg border p-4 transition-all ${f ? "border-primary bg-primary/5" : "border-border bg-
|
|
275
|
+
className: `relative flex flex-col rounded-lg border p-4 transition-all ${f ? "border-primary bg-action-primary-bg/5" : "border-border-subtle bg-bg-surface hover:border-primary/40 hover:shadow-sm"}`,
|
|
276
276
|
children: [
|
|
277
277
|
f && /* @__PURE__ */ y("span", {
|
|
278
|
-
className: "absolute top-2 right-2 text-xs font-medium bg-primary text-primary-
|
|
278
|
+
className: "absolute top-2 right-2 text-xs font-medium bg-action-primary-bg text-action-primary-text px-1.5 py-0.5 rounded",
|
|
279
279
|
children: ["×", b]
|
|
280
280
|
}),
|
|
281
281
|
/* @__PURE__ */ v("p", {
|
|
282
|
-
className: "font-semibold text-
|
|
282
|
+
className: "font-semibold text-text-primary text-sm mb-1",
|
|
283
283
|
children: a
|
|
284
284
|
}),
|
|
285
285
|
/* @__PURE__ */ v("p", {
|
|
286
|
-
className: "text-xs text-
|
|
286
|
+
className: "text-xs text-text-secondary mb-3",
|
|
287
287
|
children: r(e.duration)
|
|
288
288
|
}),
|
|
289
289
|
/* @__PURE__ */ y("p", {
|
|
290
|
-
className: "text-lg font-bold text-
|
|
290
|
+
className: "text-lg font-bold text-text-primary mb-3",
|
|
291
291
|
children: [t(x, S), /* @__PURE__ */ y("span", {
|
|
292
|
-
className: "text-xs font-normal text-
|
|
292
|
+
className: "text-xs font-normal text-text-secondary ml-1",
|
|
293
293
|
children: ["/ ", n(e.duration)]
|
|
294
294
|
})]
|
|
295
295
|
}),
|
|
@@ -301,7 +301,7 @@ var w = () => {
|
|
|
301
301
|
/* @__PURE__ */ v("button", {
|
|
302
302
|
type: "button",
|
|
303
303
|
onClick: () => l(e.id, b - 1),
|
|
304
|
-
className: "p-1 rounded border border-border hover:bg-
|
|
304
|
+
className: "p-1 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
305
305
|
children: /* @__PURE__ */ v(d, { className: "size-3" })
|
|
306
306
|
}),
|
|
307
307
|
/* @__PURE__ */ v("span", {
|
|
@@ -311,25 +311,25 @@ var w = () => {
|
|
|
311
311
|
/* @__PURE__ */ v("button", {
|
|
312
312
|
type: "button",
|
|
313
313
|
onClick: () => l(e.id, b + 1),
|
|
314
|
-
className: "p-1 rounded border border-border hover:bg-
|
|
314
|
+
className: "p-1 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
315
315
|
children: /* @__PURE__ */ v(p, { className: "size-3" })
|
|
316
316
|
}),
|
|
317
317
|
/* @__PURE__ */ v("button", {
|
|
318
318
|
type: "button",
|
|
319
319
|
onClick: () => u(e.id),
|
|
320
|
-
className: "p-1 rounded text-
|
|
320
|
+
className: "p-1 rounded text-status-error-text hover:bg-status-error-bg/10 transition-colors",
|
|
321
321
|
children: /* @__PURE__ */ v(h, { className: "size-3" })
|
|
322
322
|
})
|
|
323
323
|
]
|
|
324
324
|
}) : /* @__PURE__ */ y("button", {
|
|
325
325
|
type: "button",
|
|
326
326
|
onClick: () => c(e),
|
|
327
|
-
className: "w-full py-1.5 text-xs font-medium bg-primary text-primary-
|
|
327
|
+
className: "w-full py-1.5 text-xs font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 transition-colors flex items-center justify-center gap-1",
|
|
328
328
|
children: [/* @__PURE__ */ v(m, { className: "size-3" }), "Add to Cart"]
|
|
329
329
|
}), /* @__PURE__ */ v("button", {
|
|
330
330
|
type: "button",
|
|
331
331
|
onClick: () => _(`/addons/${e.id}`),
|
|
332
|
-
className: "w-full py-1.5 text-xs font-medium border border-border text-
|
|
332
|
+
className: "w-full py-1.5 text-xs font-medium border border-border-subtle text-text-primary rounded-md hover:bg-bg-sunken transition-colors",
|
|
333
333
|
children: "Details"
|
|
334
334
|
})]
|
|
335
335
|
})
|
|
@@ -353,22 +353,22 @@ var w = () => {
|
|
|
353
353
|
};
|
|
354
354
|
})();
|
|
355
355
|
return /* @__PURE__ */ y("div", {
|
|
356
|
-
className: `flex items-center gap-4 px-5 py-3 transition-colors ${f ? "bg-primary/5" : "hover:bg-
|
|
356
|
+
className: `flex items-center gap-4 px-5 py-3 transition-colors ${f ? "bg-action-primary-bg/5" : "hover:bg-bg-sunken/30"}`,
|
|
357
357
|
children: [
|
|
358
358
|
/* @__PURE__ */ y("div", {
|
|
359
359
|
className: "flex-1 min-w-0",
|
|
360
360
|
children: [/* @__PURE__ */ v("p", {
|
|
361
|
-
className: "font-medium text-
|
|
361
|
+
className: "font-medium text-text-primary text-sm",
|
|
362
362
|
children: a
|
|
363
363
|
}), /* @__PURE__ */ v("p", {
|
|
364
|
-
className: "text-xs text-
|
|
364
|
+
className: "text-xs text-text-secondary",
|
|
365
365
|
children: r(e.duration)
|
|
366
366
|
})]
|
|
367
367
|
}),
|
|
368
368
|
/* @__PURE__ */ y("p", {
|
|
369
|
-
className: "font-semibold text-
|
|
369
|
+
className: "font-semibold text-text-primary text-sm whitespace-nowrap",
|
|
370
370
|
children: [t(x, S), /* @__PURE__ */ y("span", {
|
|
371
|
-
className: "text-xs font-normal text-
|
|
371
|
+
className: "text-xs font-normal text-text-secondary ml-1",
|
|
372
372
|
children: ["/ ", n(e.duration)]
|
|
373
373
|
})]
|
|
374
374
|
}),
|
|
@@ -378,7 +378,7 @@ var w = () => {
|
|
|
378
378
|
/* @__PURE__ */ v("button", {
|
|
379
379
|
type: "button",
|
|
380
380
|
onClick: () => l(e.id, b - 1),
|
|
381
|
-
className: "p-1 rounded border border-border hover:bg-
|
|
381
|
+
className: "p-1 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
382
382
|
children: /* @__PURE__ */ v(d, { className: "size-3" })
|
|
383
383
|
}),
|
|
384
384
|
/* @__PURE__ */ v("span", {
|
|
@@ -388,26 +388,26 @@ var w = () => {
|
|
|
388
388
|
/* @__PURE__ */ v("button", {
|
|
389
389
|
type: "button",
|
|
390
390
|
onClick: () => l(e.id, b + 1),
|
|
391
|
-
className: "p-1 rounded border border-border hover:bg-
|
|
391
|
+
className: "p-1 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
392
392
|
children: /* @__PURE__ */ v(p, { className: "size-3" })
|
|
393
393
|
}),
|
|
394
394
|
/* @__PURE__ */ v("button", {
|
|
395
395
|
type: "button",
|
|
396
396
|
onClick: () => u(e.id),
|
|
397
|
-
className: "p-1 rounded text-
|
|
397
|
+
className: "p-1 rounded text-status-error-text hover:bg-status-error-bg/10 transition-colors",
|
|
398
398
|
children: /* @__PURE__ */ v(h, { className: "size-3" })
|
|
399
399
|
})
|
|
400
400
|
]
|
|
401
401
|
}) : /* @__PURE__ */ y("button", {
|
|
402
402
|
type: "button",
|
|
403
403
|
onClick: () => c(e),
|
|
404
|
-
className: "px-2 py-1 text-xs font-medium bg-primary text-primary-
|
|
404
|
+
className: "px-2 py-1 text-xs font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 transition-colors flex items-center gap-1",
|
|
405
405
|
children: [/* @__PURE__ */ v(m, { className: "size-3" }), "Add"]
|
|
406
406
|
}),
|
|
407
407
|
/* @__PURE__ */ v("button", {
|
|
408
408
|
type: "button",
|
|
409
409
|
onClick: () => _(`/addons/${e.id}`),
|
|
410
|
-
className: "px-2 py-1 text-xs font-medium border border-border text-
|
|
410
|
+
className: "px-2 py-1 text-xs font-medium border border-border-subtle text-text-primary rounded-md hover:bg-bg-sunken transition-colors",
|
|
411
411
|
children: "Details"
|
|
412
412
|
})
|
|
413
413
|
]
|
|
@@ -418,10 +418,10 @@ var w = () => {
|
|
|
418
418
|
}, E = ({ addon: e, onView: i, isInCart: a, cartQuantity: o, onAddToCart: s, onUpdateQuantity: c, onRemoveFromCart: u, displayCurrency: f }) => {
|
|
419
419
|
let g = l(() => S(e.features || []), [e.features]);
|
|
420
420
|
return /* @__PURE__ */ y("div", {
|
|
421
|
-
className: `relative border rounded-lg p-6 transition-all hover:shadow-md flex flex-col h-full ${a ? "border-primary bg-primary/5" : "border-border bg-
|
|
421
|
+
className: `relative border rounded-lg p-6 transition-all hover:shadow-md flex flex-col h-full ${a ? "border-primary bg-action-primary-bg/5" : "border-border-subtle bg-bg-surface"}`,
|
|
422
422
|
children: [
|
|
423
423
|
a && /* @__PURE__ */ y("span", {
|
|
424
|
-
className: "absolute top-4 right-4 px-2 py-1 text-xs font-medium bg-primary text-primary-
|
|
424
|
+
className: "absolute top-4 right-4 px-2 py-1 text-xs font-medium bg-action-primary-bg text-action-primary-text rounded",
|
|
425
425
|
children: [
|
|
426
426
|
"In Cart (",
|
|
427
427
|
o,
|
|
@@ -429,7 +429,7 @@ var w = () => {
|
|
|
429
429
|
]
|
|
430
430
|
}),
|
|
431
431
|
/* @__PURE__ */ v("div", {
|
|
432
|
-
className: "size-10 rounded-lg bg-primary/10 flex items-center justify-center mb-4",
|
|
432
|
+
className: "size-10 rounded-lg bg-action-primary-bg/10 flex items-center justify-center mb-4",
|
|
433
433
|
children: /* @__PURE__ */ v("svg", {
|
|
434
434
|
className: "size-5 text-primary",
|
|
435
435
|
fill: "none",
|
|
@@ -446,23 +446,23 @@ var w = () => {
|
|
|
446
446
|
/* @__PURE__ */ y("div", {
|
|
447
447
|
className: "mb-4",
|
|
448
448
|
children: [/* @__PURE__ */ v("h3", {
|
|
449
|
-
className: "text-lg font-bold text-
|
|
449
|
+
className: "text-lg font-bold text-text-primary",
|
|
450
450
|
children: e.name
|
|
451
451
|
}), /* @__PURE__ */ v("span", {
|
|
452
|
-
className: "text-sm text-
|
|
452
|
+
className: "text-sm text-text-secondary",
|
|
453
453
|
children: r(e.duration)
|
|
454
454
|
})]
|
|
455
455
|
}),
|
|
456
456
|
/* @__PURE__ */ y("div", {
|
|
457
457
|
className: "flex items-baseline gap-1 mb-4",
|
|
458
458
|
children: [/* @__PURE__ */ v("span", {
|
|
459
|
-
className: "text-2xl font-bold text-
|
|
459
|
+
className: "text-2xl font-bold text-text-primary",
|
|
460
460
|
children: (() => {
|
|
461
461
|
let { price: n, currency: r } = C(e, f);
|
|
462
462
|
return t(n, r);
|
|
463
463
|
})()
|
|
464
464
|
}), /* @__PURE__ */ y("span", {
|
|
465
|
-
className: "text-
|
|
465
|
+
className: "text-text-secondary text-sm",
|
|
466
466
|
children: ["/ ", n(e.duration)]
|
|
467
467
|
})]
|
|
468
468
|
}),
|
|
@@ -484,15 +484,15 @@ var w = () => {
|
|
|
484
484
|
d: "M5 13l4 4L19 7"
|
|
485
485
|
})
|
|
486
486
|
}), /* @__PURE__ */ v("span", {
|
|
487
|
-
className: "text-
|
|
487
|
+
className: "text-text-primary",
|
|
488
488
|
children: e.name
|
|
489
489
|
})]
|
|
490
490
|
}), /* @__PURE__ */ v("span", {
|
|
491
|
-
className: "font-medium text-
|
|
491
|
+
className: "font-medium text-text-primary",
|
|
492
492
|
children: e.totalValue.toLocaleString()
|
|
493
493
|
})]
|
|
494
494
|
}, e.quotaId)), g.length > 4 && /* @__PURE__ */ y("li", {
|
|
495
|
-
className: "text-sm text-
|
|
495
|
+
className: "text-sm text-text-secondary pl-6",
|
|
496
496
|
children: [
|
|
497
497
|
"+",
|
|
498
498
|
g.length - 4,
|
|
@@ -501,7 +501,7 @@ var w = () => {
|
|
|
501
501
|
})]
|
|
502
502
|
}),
|
|
503
503
|
/* @__PURE__ */ y("div", {
|
|
504
|
-
className: "space-y-2 pt-4 border-t border-border mt-auto",
|
|
504
|
+
className: "space-y-2 pt-4 border-t border-border-subtle mt-auto",
|
|
505
505
|
children: [a ? /* @__PURE__ */ y("div", {
|
|
506
506
|
className: "flex items-center justify-between gap-2",
|
|
507
507
|
children: [/* @__PURE__ */ y("div", {
|
|
@@ -510,7 +510,7 @@ var w = () => {
|
|
|
510
510
|
/* @__PURE__ */ v("button", {
|
|
511
511
|
type: "button",
|
|
512
512
|
onClick: () => c(e.id, o - 1),
|
|
513
|
-
className: "p-1.5 rounded border border-border hover:bg-
|
|
513
|
+
className: "p-1.5 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
514
514
|
children: /* @__PURE__ */ v(d, { className: "size-4" })
|
|
515
515
|
}),
|
|
516
516
|
/* @__PURE__ */ v("span", {
|
|
@@ -520,26 +520,26 @@ var w = () => {
|
|
|
520
520
|
/* @__PURE__ */ v("button", {
|
|
521
521
|
type: "button",
|
|
522
522
|
onClick: () => c(e.id, o + 1),
|
|
523
|
-
className: "p-1.5 rounded border border-border hover:bg-
|
|
523
|
+
className: "p-1.5 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
524
524
|
children: /* @__PURE__ */ v(p, { className: "size-4" })
|
|
525
525
|
})
|
|
526
526
|
]
|
|
527
527
|
}), /* @__PURE__ */ v("button", {
|
|
528
528
|
type: "button",
|
|
529
529
|
onClick: () => u(e.id),
|
|
530
|
-
className: "p-1.5 rounded text-
|
|
530
|
+
className: "p-1.5 rounded text-status-error-text hover:bg-status-error-bg/10 transition-colors",
|
|
531
531
|
title: "Remove from cart",
|
|
532
532
|
children: /* @__PURE__ */ v(h, { className: "size-4" })
|
|
533
533
|
})]
|
|
534
534
|
}) : /* @__PURE__ */ y("button", {
|
|
535
535
|
type: "button",
|
|
536
536
|
onClick: () => s(e),
|
|
537
|
-
className: "w-full px-4 py-2 text-sm font-medium bg-primary text-primary-
|
|
537
|
+
className: "w-full px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 transition-colors flex items-center justify-center gap-2",
|
|
538
538
|
children: [/* @__PURE__ */ v(m, { className: "size-4" }), "Add to Cart"]
|
|
539
539
|
}), /* @__PURE__ */ v("button", {
|
|
540
540
|
type: "button",
|
|
541
541
|
onClick: i,
|
|
542
|
-
className: "w-full px-4 py-2 text-sm font-medium border border-border text-
|
|
542
|
+
className: "w-full px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-md hover:bg-bg-sunken transition-colors",
|
|
543
543
|
children: "View Details"
|
|
544
544
|
})]
|
|
545
545
|
})
|
|
@@ -548,10 +548,10 @@ var w = () => {
|
|
|
548
548
|
}, D = ({ addon: e, onView: r, isInCart: i, cartQuantity: a, onAddToCart: o, onUpdateQuantity: s, onRemoveFromCart: c, displayCurrency: u }) => {
|
|
549
549
|
let f = l(() => S(e.features || []), [e.features]);
|
|
550
550
|
return /* @__PURE__ */ y("div", {
|
|
551
|
-
className: `flex items-center gap-4 p-4 border rounded-lg transition-all hover:shadow-sm ${i ? "border-primary bg-primary/5" : "border-border bg-
|
|
551
|
+
className: `flex items-center gap-4 p-4 border rounded-lg transition-all hover:shadow-sm ${i ? "border-primary bg-action-primary-bg/5" : "border-border-subtle bg-bg-surface"}`,
|
|
552
552
|
children: [
|
|
553
553
|
/* @__PURE__ */ v("div", {
|
|
554
|
-
className: "size-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",
|
|
554
|
+
className: "size-10 rounded-lg bg-action-primary-bg/10 flex items-center justify-center shrink-0",
|
|
555
555
|
children: /* @__PURE__ */ v("svg", {
|
|
556
556
|
className: "size-5 text-primary",
|
|
557
557
|
fill: "none",
|
|
@@ -570,10 +570,10 @@ var w = () => {
|
|
|
570
570
|
children: [/* @__PURE__ */ y("div", {
|
|
571
571
|
className: "flex items-center gap-2",
|
|
572
572
|
children: [/* @__PURE__ */ v("h3", {
|
|
573
|
-
className: "font-semibold text-
|
|
573
|
+
className: "font-semibold text-text-primary truncate",
|
|
574
574
|
children: e.name
|
|
575
575
|
}), i && /* @__PURE__ */ y("span", {
|
|
576
|
-
className: "px-2 py-0.5 text-xs font-medium bg-primary text-primary-
|
|
576
|
+
className: "px-2 py-0.5 text-xs font-medium bg-action-primary-bg text-action-primary-text rounded",
|
|
577
577
|
children: [
|
|
578
578
|
"In Cart (",
|
|
579
579
|
a,
|
|
@@ -581,7 +581,7 @@ var w = () => {
|
|
|
581
581
|
]
|
|
582
582
|
})]
|
|
583
583
|
}), /* @__PURE__ */ y("p", {
|
|
584
|
-
className: "text-sm text-
|
|
584
|
+
className: "text-sm text-text-secondary",
|
|
585
585
|
children: [
|
|
586
586
|
f.length,
|
|
587
587
|
" quota",
|
|
@@ -592,13 +592,13 @@ var w = () => {
|
|
|
592
592
|
/* @__PURE__ */ y("div", {
|
|
593
593
|
className: "text-right",
|
|
594
594
|
children: [/* @__PURE__ */ v("div", {
|
|
595
|
-
className: "font-semibold text-
|
|
595
|
+
className: "font-semibold text-text-primary",
|
|
596
596
|
children: (() => {
|
|
597
597
|
let { price: n, currency: r } = C(e, u);
|
|
598
598
|
return t(n, r);
|
|
599
599
|
})()
|
|
600
600
|
}), /* @__PURE__ */ y("div", {
|
|
601
|
-
className: "text-sm text-
|
|
601
|
+
className: "text-sm text-text-secondary",
|
|
602
602
|
children: ["per ", n(e.duration)]
|
|
603
603
|
})]
|
|
604
604
|
}),
|
|
@@ -608,7 +608,7 @@ var w = () => {
|
|
|
608
608
|
/* @__PURE__ */ v("button", {
|
|
609
609
|
type: "button",
|
|
610
610
|
onClick: () => s(e.id, a - 1),
|
|
611
|
-
className: "p-1.5 rounded border border-border hover:bg-
|
|
611
|
+
className: "p-1.5 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
612
612
|
children: /* @__PURE__ */ v(d, { className: "size-4" })
|
|
613
613
|
}),
|
|
614
614
|
/* @__PURE__ */ v("span", {
|
|
@@ -618,13 +618,13 @@ var w = () => {
|
|
|
618
618
|
/* @__PURE__ */ v("button", {
|
|
619
619
|
type: "button",
|
|
620
620
|
onClick: () => s(e.id, a + 1),
|
|
621
|
-
className: "p-1.5 rounded border border-border hover:bg-
|
|
621
|
+
className: "p-1.5 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
622
622
|
children: /* @__PURE__ */ v(p, { className: "size-4" })
|
|
623
623
|
}),
|
|
624
624
|
/* @__PURE__ */ v("button", {
|
|
625
625
|
type: "button",
|
|
626
626
|
onClick: () => c(e.id),
|
|
627
|
-
className: "p-1.5 rounded text-
|
|
627
|
+
className: "p-1.5 rounded text-status-error-text hover:bg-status-error-bg/10 transition-colors ml-1",
|
|
628
628
|
title: "Remove from cart",
|
|
629
629
|
children: /* @__PURE__ */ v(h, { className: "size-4" })
|
|
630
630
|
})
|
|
@@ -632,13 +632,13 @@ var w = () => {
|
|
|
632
632
|
}) : /* @__PURE__ */ y("button", {
|
|
633
633
|
type: "button",
|
|
634
634
|
onClick: () => o(e),
|
|
635
|
-
className: "px-3 py-1.5 text-sm font-medium bg-primary text-primary-
|
|
635
|
+
className: "px-3 py-1.5 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 transition-colors flex items-center gap-1.5",
|
|
636
636
|
children: [/* @__PURE__ */ v(m, { className: "size-4" }), "Add"]
|
|
637
637
|
}),
|
|
638
638
|
/* @__PURE__ */ v("button", {
|
|
639
639
|
type: "button",
|
|
640
640
|
onClick: r,
|
|
641
|
-
className: "px-3 py-1.5 text-sm font-medium border border-border text-
|
|
641
|
+
className: "px-3 py-1.5 text-sm font-medium border border-border-subtle text-text-primary rounded-md hover:bg-bg-sunken transition-colors",
|
|
642
642
|
children: "View"
|
|
643
643
|
})
|
|
644
644
|
]
|
|
@@ -651,7 +651,7 @@ var w = () => {
|
|
|
651
651
|
return c.length === 0 && !l ? null : /* @__PURE__ */ y(_, { children: [!l && c.length > 0 && /* @__PURE__ */ y("button", {
|
|
652
652
|
type: "button",
|
|
653
653
|
onClick: u,
|
|
654
|
-
className: "fixed bottom-6 right-6 z-50 flex items-center gap-2 px-4 py-3 bg-primary text-primary-
|
|
654
|
+
className: "fixed bottom-6 right-6 z-50 flex items-center gap-2 px-4 py-3 bg-action-primary-bg text-action-primary-text rounded-full shadow-lg hover:bg-action-primary-bg/90 transition-all",
|
|
655
655
|
children: [
|
|
656
656
|
/* @__PURE__ */ v(m, { className: "size-5" }),
|
|
657
657
|
/* @__PURE__ */ y("span", {
|
|
@@ -676,20 +676,20 @@ var w = () => {
|
|
|
676
676
|
className: "absolute inset-0 bg-overlay-scrim",
|
|
677
677
|
onClick: f
|
|
678
678
|
}), /* @__PURE__ */ y("div", {
|
|
679
|
-
className: "relative w-full max-w-md max-h-[80vh] bg-
|
|
679
|
+
className: "relative w-full max-w-md max-h-[80vh] bg-bg-surface border border-border-subtle rounded-t-xl sm:rounded-xl shadow-xl overflow-hidden",
|
|
680
680
|
children: [
|
|
681
681
|
/* @__PURE__ */ y("div", {
|
|
682
|
-
className: "flex items-center justify-between px-4 py-3 border-b border-border bg-
|
|
682
|
+
className: "flex items-center justify-between px-4 py-3 border-b border-border-subtle bg-bg-sunken/30",
|
|
683
683
|
children: [/* @__PURE__ */ y("div", {
|
|
684
684
|
className: "flex items-center gap-2",
|
|
685
685
|
children: [
|
|
686
|
-
/* @__PURE__ */ v(m, { className: "size-5 text-
|
|
686
|
+
/* @__PURE__ */ v(m, { className: "size-5 text-text-primary" }),
|
|
687
687
|
/* @__PURE__ */ v("h3", {
|
|
688
|
-
className: "font-semibold text-
|
|
688
|
+
className: "font-semibold text-text-primary",
|
|
689
689
|
children: i("billing.addons.yourCart", "Your Cart")
|
|
690
690
|
}),
|
|
691
691
|
/* @__PURE__ */ y("span", {
|
|
692
|
-
className: "px-2 py-0.5 text-xs bg-primary text-primary-
|
|
692
|
+
className: "px-2 py-0.5 text-xs bg-action-primary-bg text-action-primary-text rounded-full",
|
|
693
693
|
children: [
|
|
694
694
|
T,
|
|
695
695
|
" item",
|
|
@@ -700,7 +700,7 @@ var w = () => {
|
|
|
700
700
|
}), /* @__PURE__ */ v("button", {
|
|
701
701
|
type: "button",
|
|
702
702
|
onClick: f,
|
|
703
|
-
className: "p-1.5 rounded hover:bg-
|
|
703
|
+
className: "p-1.5 rounded hover:bg-bg-sunken transition-colors",
|
|
704
704
|
children: /* @__PURE__ */ v(g, { className: "size-5" })
|
|
705
705
|
})]
|
|
706
706
|
}),
|
|
@@ -712,10 +712,10 @@ var w = () => {
|
|
|
712
712
|
/* @__PURE__ */ y("div", {
|
|
713
713
|
className: "flex-1 min-w-0",
|
|
714
714
|
children: [/* @__PURE__ */ v("h4", {
|
|
715
|
-
className: "font-medium text-
|
|
715
|
+
className: "font-medium text-text-primary truncate",
|
|
716
716
|
children: r.name
|
|
717
717
|
}), /* @__PURE__ */ y("p", {
|
|
718
|
-
className: "text-sm text-
|
|
718
|
+
className: "text-sm text-text-secondary",
|
|
719
719
|
children: [
|
|
720
720
|
(() => {
|
|
721
721
|
let { price: n, currency: i } = C(r, e);
|
|
@@ -733,7 +733,7 @@ var w = () => {
|
|
|
733
733
|
/* @__PURE__ */ v("button", {
|
|
734
734
|
type: "button",
|
|
735
735
|
onClick: () => S(r.id, i - 1),
|
|
736
|
-
className: "p-1 rounded border border-border hover:bg-
|
|
736
|
+
className: "p-1 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
737
737
|
children: /* @__PURE__ */ v(d, { className: "size-3" })
|
|
738
738
|
}),
|
|
739
739
|
/* @__PURE__ */ v("span", {
|
|
@@ -743,13 +743,13 @@ var w = () => {
|
|
|
743
743
|
/* @__PURE__ */ v("button", {
|
|
744
744
|
type: "button",
|
|
745
745
|
onClick: () => S(r.id, i + 1),
|
|
746
|
-
className: "p-1 rounded border border-border hover:bg-
|
|
746
|
+
className: "p-1 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
747
747
|
children: /* @__PURE__ */ v(p, { className: "size-3" })
|
|
748
748
|
})
|
|
749
749
|
]
|
|
750
750
|
}),
|
|
751
751
|
/* @__PURE__ */ v("p", {
|
|
752
|
-
className: "font-medium text-
|
|
752
|
+
className: "font-medium text-text-primary",
|
|
753
753
|
children: (() => {
|
|
754
754
|
let { price: n, currency: a } = C(r, e);
|
|
755
755
|
return t(n * i, a);
|
|
@@ -758,21 +758,21 @@ var w = () => {
|
|
|
758
758
|
/* @__PURE__ */ v("button", {
|
|
759
759
|
type: "button",
|
|
760
760
|
onClick: () => x(r.id),
|
|
761
|
-
className: "p-1.5 rounded text-
|
|
761
|
+
className: "p-1.5 rounded text-status-error-text hover:bg-status-error-bg/10 transition-colors",
|
|
762
762
|
children: /* @__PURE__ */ v(h, { className: "size-4" })
|
|
763
763
|
})
|
|
764
764
|
]
|
|
765
765
|
}, r.id))
|
|
766
766
|
}),
|
|
767
767
|
/* @__PURE__ */ y("div", {
|
|
768
|
-
className: "border-t border-border p-4 space-y-3 bg-
|
|
768
|
+
className: "border-t border-border-subtle p-4 space-y-3 bg-bg-sunken/20",
|
|
769
769
|
children: [/* @__PURE__ */ y("div", {
|
|
770
770
|
className: "flex items-center justify-between text-lg font-semibold",
|
|
771
771
|
children: [/* @__PURE__ */ v("span", {
|
|
772
|
-
className: "text-
|
|
772
|
+
className: "text-text-primary",
|
|
773
773
|
children: i("billing.addons.total", "Total")
|
|
774
774
|
}), /* @__PURE__ */ v("span", {
|
|
775
|
-
className: "text-
|
|
775
|
+
className: "text-text-primary",
|
|
776
776
|
children: t(c.reduce((t, { addon: n, quantity: r }) => {
|
|
777
777
|
let { price: i } = C(n, e);
|
|
778
778
|
return t + i * r;
|
|
@@ -783,14 +783,14 @@ var w = () => {
|
|
|
783
783
|
children: [/* @__PURE__ */ v("button", {
|
|
784
784
|
type: "button",
|
|
785
785
|
onClick: w,
|
|
786
|
-
className: "flex-1 px-4 py-2.5 text-sm font-medium border border-border text-
|
|
786
|
+
className: "flex-1 px-4 py-2.5 text-sm font-medium border border-border-subtle text-text-primary rounded-md hover:bg-bg-sunken transition-colors",
|
|
787
787
|
children: "Clear Cart"
|
|
788
788
|
}), /* @__PURE__ */ v("button", {
|
|
789
789
|
type: "button",
|
|
790
790
|
onClick: () => {
|
|
791
791
|
f(), s("/checkout/addons");
|
|
792
792
|
},
|
|
793
|
-
className: "flex-1 px-4 py-2.5 text-sm font-medium bg-primary text-primary-
|
|
793
|
+
className: "flex-1 px-4 py-2.5 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 transition-colors",
|
|
794
794
|
children: "Checkout"
|
|
795
795
|
})]
|
|
796
796
|
})]
|