@burdenoff/microfe-billing 2026.614.1 → 2026.623.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/BillingAdminRoutes.js +7 -6
- package/dist/billing/BillingAdminRoutes.js.map +1 -1
- package/dist/billing/BillingRoot.js +1 -1
- package/dist/billing/BillingRoot.js.map +1 -1
- package/dist/billing/modules/addons/components/FloatingCartDrawer.js +22 -22
- package/dist/billing/modules/addons/components/FloatingCartDrawer.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonCreatePage.js +31 -31
- package/dist/billing/modules/addons/pages/AddonCreatePage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonDetailPage.js +39 -39
- package/dist/billing/modules/addons/pages/AddonDetailPage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonEditPage.js +29 -29
- package/dist/billing/modules/addons/pages/AddonEditPage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonsListPage.js +91 -91
- package/dist/billing/modules/addons/pages/AddonsListPage.js.map +1 -1
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js +40 -40
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +115 -115
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoicesListPage.js +75 -72
- package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/RefundsPage.js +126 -126
- package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/UserRefundsPage.js +45 -45
- package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
- package/dist/billing/modules/checkout/components/BillingAccountSelector.js +25 -25
- package/dist/billing/modules/checkout/components/BillingAccountSelector.js.map +1 -1
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js +31 -35
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js.map +1 -1
- package/dist/billing/modules/checkout/components/CreditsAmountInput.js +9 -9
- package/dist/billing/modules/checkout/components/CreditsAmountInput.js.map +1 -1
- package/dist/billing/modules/checkout/components/OrderSummary.js +31 -31
- package/dist/billing/modules/checkout/components/OrderSummary.js.map +1 -1
- package/dist/billing/modules/checkout/components/PromoCodeInput.js +8 -8
- package/dist/billing/modules/checkout/components/PromoCodeInput.js.map +1 -1
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js +5 -5
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js.map +1 -1
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js +9 -9
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js.map +1 -1
- package/dist/billing/modules/checkout/components/StripePaymentForm.js +21 -21
- package/dist/billing/modules/checkout/components/StripePaymentForm.js.map +1 -1
- package/dist/billing/modules/checkout/components/SubscriptionSelector.js +11 -11
- package/dist/billing/modules/checkout/components/SubscriptionSelector.js.map +1 -1
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js +31 -31
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js.map +1 -1
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js +23 -23
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js.map +1 -1
- package/dist/billing/modules/checkout/pages/CheckoutPage.js +91 -91
- package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js +62 -62
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CouponsListPage.js +72 -60
- package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js +66 -66
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/EditCouponPage.js +46 -46
- package/dist/billing/modules/coupons/pages/EditCouponPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js +19 -19
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js +37 -37
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +90 -90
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditsPage.js +41 -41
- package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -1
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js +31 -31
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js.map +1 -1
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js +35 -35
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js.map +1 -1
- package/dist/billing/modules/dashboard/components/BillingAccountCard.js +24 -24
- package/dist/billing/modules/dashboard/components/BillingAccountCard.js.map +1 -1
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js +99 -99
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js.map +1 -1
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js +23 -23
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js.map +1 -1
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js +22 -22
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js.map +1 -1
- package/dist/billing/modules/dashboard/pages/OverviewPage.js +58 -58
- package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js +126 -126
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +83 -79
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.js +16 -16
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +40 -40
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanCreatePage.js +35 -35
- package/dist/billing/modules/plans/pages/PlanCreatePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanDetailPage.js +57 -57
- package/dist/billing/modules/plans/pages/PlanDetailPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanEditPage.js +35 -35
- package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js +57 -57
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansListPage.js +52 -52
- package/dist/billing/modules/plans/pages/PlansListPage.js.map +1 -1
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +40 -39
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.js.map +1 -1
- package/dist/billing/modules/promotions/pages/PromotionsListPage.js +22 -19
- package/dist/billing/modules/promotions/pages/PromotionsListPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +34 -34
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +47 -47
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +39 -39
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +52 -52
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +23 -23
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +259 -246
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +88 -85
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +51 -51
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
- package/dist/billing/modules/usage/pages/UsagePage.js +206 -196
- package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
- package/dist/billing/shared/components/ServerError.js +4 -4
- package/dist/billing/shared/components/ServerError.js.map +1 -1
- package/dist/billing/shared/components/StatCard.js +11 -33
- package/dist/billing/shared/components/StatCard.js.map +1 -1
- package/dist/billing/shared/ui/Card.js +15 -0
- package/dist/billing/shared/ui/Card.js.map +1 -0
- package/dist/billing/shared/ui/MetricCard.js +44 -0
- package/dist/billing/shared/ui/MetricCard.js.map +1 -0
- package/dist/billing/shared/ui/ProgressBar.js +30 -0
- package/dist/billing/shared/ui/ProgressBar.js.map +1 -0
- package/dist/billing/shared/ui/SectionHeader.js +2 -0
- package/dist/billing/shared/ui/StatusPill.js +28 -0
- package/dist/billing/shared/ui/StatusPill.js.map +1 -0
- package/dist/billing/shared/ui/index.js +5 -0
- package/dist/billing/shared/utils/tokens.js +13 -30
- package/dist/billing/shared/utils/tokens.js.map +1 -1
- package/package.json +1 -1
|
@@ -48,9 +48,9 @@ var C = () => {
|
|
|
48
48
|
className: "text-center space-y-2",
|
|
49
49
|
children: [
|
|
50
50
|
/* @__PURE__ */ v("div", {
|
|
51
|
-
className: "size-12 mx-auto rounded-full bg-
|
|
51
|
+
className: "size-12 mx-auto rounded-full bg-bg-sunken flex items-center justify-center",
|
|
52
52
|
children: /* @__PURE__ */ v("svg", {
|
|
53
|
-
className: "size-6 text-muted
|
|
53
|
+
className: "size-6 text-text-muted",
|
|
54
54
|
fill: "none",
|
|
55
55
|
viewBox: "0 0 24 24",
|
|
56
56
|
stroke: "currentColor",
|
|
@@ -63,11 +63,11 @@ var C = () => {
|
|
|
63
63
|
})
|
|
64
64
|
}),
|
|
65
65
|
/* @__PURE__ */ v("h2", {
|
|
66
|
-
className: "text-lg font-semibold text-
|
|
66
|
+
className: "text-lg font-semibold text-text-primary",
|
|
67
67
|
children: t("billing.accessDenied.title", "Access Denied")
|
|
68
68
|
}),
|
|
69
69
|
/* @__PURE__ */ v("p", {
|
|
70
|
-
className: "text-sm text-muted
|
|
70
|
+
className: "text-sm text-text-muted max-w-sm",
|
|
71
71
|
children: t("billing.addons.noViewPermission", "You don't have permission to view addons.")
|
|
72
72
|
})
|
|
73
73
|
]
|
|
@@ -86,24 +86,24 @@ var C = () => {
|
|
|
86
86
|
};
|
|
87
87
|
return f && u.length === 0 ? /* @__PURE__ */ y("div", {
|
|
88
88
|
className: "space-y-6 p-6",
|
|
89
|
-
children: [/* @__PURE__ */ v("div", { className: "h-8 w-48 bg-
|
|
89
|
+
children: [/* @__PURE__ */ v("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ v("div", {
|
|
90
90
|
className: "grid grid-cols-1 md:grid-cols-3 gap-6",
|
|
91
91
|
children: [
|
|
92
92
|
1,
|
|
93
93
|
2,
|
|
94
94
|
3
|
|
95
95
|
].map((e) => /* @__PURE__ */ y("div", {
|
|
96
|
-
className: "border border-border rounded-lg p-6 space-y-4",
|
|
96
|
+
className: "border border-border-subtle rounded-lg p-6 space-y-4",
|
|
97
97
|
children: [
|
|
98
|
-
/* @__PURE__ */ v("div", { className: "h-6 w-24 bg-
|
|
99
|
-
/* @__PURE__ */ v("div", { className: "h-8 w-32 bg-
|
|
98
|
+
/* @__PURE__ */ v("div", { className: "h-6 w-24 bg-bg-sunken animate-pulse rounded" }),
|
|
99
|
+
/* @__PURE__ */ v("div", { className: "h-8 w-32 bg-bg-sunken animate-pulse rounded" }),
|
|
100
100
|
/* @__PURE__ */ v("div", {
|
|
101
101
|
className: "space-y-2",
|
|
102
102
|
children: [
|
|
103
103
|
1,
|
|
104
104
|
2,
|
|
105
105
|
3
|
|
106
|
-
].map((e) => /* @__PURE__ */ v("div", { className: "h-4 w-full bg-
|
|
106
|
+
].map((e) => /* @__PURE__ */ v("div", { className: "h-4 w-full bg-bg-sunken animate-pulse rounded" }, e))
|
|
107
107
|
})
|
|
108
108
|
]
|
|
109
109
|
}, e))
|
|
@@ -114,9 +114,9 @@ var C = () => {
|
|
|
114
114
|
className: "text-center space-y-4",
|
|
115
115
|
children: [
|
|
116
116
|
/* @__PURE__ */ v("div", {
|
|
117
|
-
className: "size-12 mx-auto rounded-full bg-
|
|
117
|
+
className: "size-12 mx-auto rounded-full bg-status-error-bg-subtle flex items-center justify-center",
|
|
118
118
|
children: /* @__PURE__ */ v("svg", {
|
|
119
|
-
className: "size-6 text-
|
|
119
|
+
className: "size-6 text-status-error-text",
|
|
120
120
|
fill: "none",
|
|
121
121
|
viewBox: "0 0 24 24",
|
|
122
122
|
stroke: "currentColor",
|
|
@@ -129,17 +129,17 @@ var C = () => {
|
|
|
129
129
|
})
|
|
130
130
|
}),
|
|
131
131
|
/* @__PURE__ */ v("h2", {
|
|
132
|
-
className: "text-lg font-semibold text-
|
|
132
|
+
className: "text-lg font-semibold text-text-primary",
|
|
133
133
|
children: t("billing.addons.failedToLoad", "Failed to load addons")
|
|
134
134
|
}),
|
|
135
135
|
/* @__PURE__ */ v("p", {
|
|
136
|
-
className: "text-sm text-muted
|
|
136
|
+
className: "text-sm text-text-muted",
|
|
137
137
|
children: p.message
|
|
138
138
|
}),
|
|
139
139
|
/* @__PURE__ */ v("button", {
|
|
140
140
|
type: "button",
|
|
141
141
|
onClick: () => m(),
|
|
142
|
-
className: "px-4 py-2 text-sm font-medium bg-primary text-primary-
|
|
142
|
+
className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors",
|
|
143
143
|
children: "Try Again"
|
|
144
144
|
})
|
|
145
145
|
]
|
|
@@ -150,15 +150,15 @@ var C = () => {
|
|
|
150
150
|
/* @__PURE__ */ y("div", {
|
|
151
151
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
152
152
|
children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h1", {
|
|
153
|
-
className: "text-2xl font-
|
|
153
|
+
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
|
|
154
154
|
children: t("billing.addons.title", "Addons")
|
|
155
155
|
}), /* @__PURE__ */ v("p", {
|
|
156
|
-
className: "text-sm text-muted
|
|
156
|
+
className: "text-sm text-text-muted mt-1",
|
|
157
157
|
children: t("billing.addons.subtitle", "Enhance your subscription with additional features")
|
|
158
158
|
})] }), r.canManageAddons && /* @__PURE__ */ y("button", {
|
|
159
159
|
type: "button",
|
|
160
160
|
onClick: () => n("/addons/new"),
|
|
161
|
-
className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium bg-primary text-primary-
|
|
161
|
+
className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors",
|
|
162
162
|
children: [/* @__PURE__ */ v("svg", {
|
|
163
163
|
className: "size-4",
|
|
164
164
|
fill: "none",
|
|
@@ -174,27 +174,27 @@ var C = () => {
|
|
|
174
174
|
})]
|
|
175
175
|
}),
|
|
176
176
|
/* @__PURE__ */ y("div", {
|
|
177
|
-
className: "flex flex-wrap items-center gap-4 pb-4 border-b border-border",
|
|
177
|
+
className: "flex flex-wrap items-center gap-4 pb-4 border-b border-border-subtle",
|
|
178
178
|
children: [
|
|
179
179
|
/* @__PURE__ */ y("div", {
|
|
180
|
-
className: "inline-flex rounded-lg border border-border p-1 bg-
|
|
180
|
+
className: "inline-flex rounded-lg border border-border-subtle p-1 bg-bg-sunken/50",
|
|
181
181
|
children: [
|
|
182
182
|
/* @__PURE__ */ v("button", {
|
|
183
183
|
type: "button",
|
|
184
184
|
onClick: () => N("all"),
|
|
185
|
-
className: `px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${M === "all" ? "bg-
|
|
185
|
+
className: `px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${M === "all" ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-muted hover:text-text-primary"}`,
|
|
186
186
|
children: "All"
|
|
187
187
|
}),
|
|
188
188
|
/* @__PURE__ */ v("button", {
|
|
189
189
|
type: "button",
|
|
190
190
|
onClick: () => N("monthly"),
|
|
191
|
-
className: `px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${M === "monthly" ? "bg-
|
|
191
|
+
className: `px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${M === "monthly" ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-muted hover:text-text-primary"}`,
|
|
192
192
|
children: "Monthly"
|
|
193
193
|
}),
|
|
194
194
|
/* @__PURE__ */ v("button", {
|
|
195
195
|
type: "button",
|
|
196
196
|
onClick: () => N("yearly"),
|
|
197
|
-
className: `px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${M === "yearly" ? "bg-
|
|
197
|
+
className: `px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${M === "yearly" ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-muted hover:text-text-primary"}`,
|
|
198
198
|
children: "Yearly"
|
|
199
199
|
})
|
|
200
200
|
]
|
|
@@ -205,18 +205,18 @@ var C = () => {
|
|
|
205
205
|
type: "checkbox",
|
|
206
206
|
checked: A,
|
|
207
207
|
onChange: (e) => j(e.target.checked),
|
|
208
|
-
className: "size-4 rounded border-border text-
|
|
208
|
+
className: "size-4 rounded border-border-subtle text-text-link focus:ring-[var(--color-focus-ring)]"
|
|
209
209
|
}), /* @__PURE__ */ v("span", {
|
|
210
|
-
className: "text-muted
|
|
210
|
+
className: "text-text-muted",
|
|
211
211
|
children: t("billing.addons.showInactive", "Show inactive addons")
|
|
212
212
|
})]
|
|
213
213
|
}),
|
|
214
214
|
/* @__PURE__ */ y("div", {
|
|
215
|
-
className: "ml-auto inline-flex rounded-lg border border-border p-1 bg-
|
|
215
|
+
className: "ml-auto inline-flex rounded-lg border border-border-subtle p-1 bg-bg-sunken/50",
|
|
216
216
|
children: [/* @__PURE__ */ v("button", {
|
|
217
217
|
type: "button",
|
|
218
218
|
onClick: () => k("grid"),
|
|
219
|
-
className: `p-1.5 rounded-md transition-colors ${O === "grid" ? "bg-
|
|
219
|
+
className: `p-1.5 rounded-md transition-colors ${O === "grid" ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-muted hover:text-text-primary"}`,
|
|
220
220
|
title: "Grid view",
|
|
221
221
|
children: /* @__PURE__ */ v("svg", {
|
|
222
222
|
className: "size-4",
|
|
@@ -233,7 +233,7 @@ var C = () => {
|
|
|
233
233
|
}), /* @__PURE__ */ v("button", {
|
|
234
234
|
type: "button",
|
|
235
235
|
onClick: () => k("list"),
|
|
236
|
-
className: `p-1.5 rounded-md transition-colors ${O === "list" ? "bg-
|
|
236
|
+
className: `p-1.5 rounded-md transition-colors ${O === "list" ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-muted hover:text-text-primary"}`,
|
|
237
237
|
title: "List view",
|
|
238
238
|
children: /* @__PURE__ */ v("svg", {
|
|
239
239
|
className: "size-4",
|
|
@@ -252,12 +252,12 @@ var C = () => {
|
|
|
252
252
|
]
|
|
253
253
|
}),
|
|
254
254
|
F.length === 0 ? /* @__PURE__ */ y("div", {
|
|
255
|
-
className: "flex flex-col items-center justify-center py-
|
|
255
|
+
className: "flex flex-col items-center justify-center py-16 border border-dashed border-border-subtle rounded-card bg-bg-surface",
|
|
256
256
|
children: [
|
|
257
257
|
/* @__PURE__ */ v("div", {
|
|
258
|
-
className: "size-12 rounded-full bg-
|
|
258
|
+
className: "size-12 rounded-full bg-[var(--color-accent-soft)] flex items-center justify-center mb-4",
|
|
259
259
|
children: /* @__PURE__ */ v("svg", {
|
|
260
|
-
className: "size-6 text-muted
|
|
260
|
+
className: "size-6 text-text-muted",
|
|
261
261
|
fill: "none",
|
|
262
262
|
viewBox: "0 0 24 24",
|
|
263
263
|
stroke: "currentColor",
|
|
@@ -270,17 +270,17 @@ var C = () => {
|
|
|
270
270
|
})
|
|
271
271
|
}),
|
|
272
272
|
/* @__PURE__ */ v("h3", {
|
|
273
|
-
className: "text-lg font-medium text-
|
|
273
|
+
className: "text-lg font-medium text-text-primary",
|
|
274
274
|
children: t("billing.addons.noAddonsFound", "No addons found")
|
|
275
275
|
}),
|
|
276
276
|
/* @__PURE__ */ v("p", {
|
|
277
|
-
className: "text-sm text-muted
|
|
277
|
+
className: "text-sm text-text-muted mt-1",
|
|
278
278
|
children: A ? t("billing.addons.noAddonsFiltered", "No addons match your current filters.") : t("billing.addons.noActiveAddons", "There are no active addons available.")
|
|
279
279
|
}),
|
|
280
280
|
r.canManageAddons && /* @__PURE__ */ v("button", {
|
|
281
281
|
type: "button",
|
|
282
282
|
onClick: () => n("/addons/new"),
|
|
283
|
-
className: "mt-4 px-4 py-2 text-sm font-medium bg-primary text-primary-
|
|
283
|
+
className: "mt-4 px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors",
|
|
284
284
|
children: t("billing.addons.createFirstAddon", "Create your first addon")
|
|
285
285
|
})
|
|
286
286
|
]
|
|
@@ -329,14 +329,14 @@ var C = () => {
|
|
|
329
329
|
}, w = ({ addon: r, onView: i, onEdit: a, onToggle: o, canManage: s, displayCurrency: c, isToggling: l, isInCart: d, cartQuantity: g, onAddToCart: _, onUpdateQuantity: b, onRemoveFromCart: C }) => {
|
|
330
330
|
let w = u(() => x(r.features || []), [r.features]);
|
|
331
331
|
return /* @__PURE__ */ y("div", {
|
|
332
|
-
className: `relative border rounded-
|
|
332
|
+
className: `relative border rounded-card p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:-translate-y-0.5 hover:border-border-strong hover:shadow-[var(--shadow-elevation-2)] flex flex-col h-full ${r.isActive ? d ? "border-action-primary-bg bg-[var(--color-accent-soft)]" : "border-border-subtle bg-bg-surface" : "border-dashed border-text-muted/30 bg-bg-sunken/30"}`,
|
|
333
333
|
children: [
|
|
334
334
|
!r.isActive && /* @__PURE__ */ v("span", {
|
|
335
|
-
className: "absolute top-4 right-4 px-2 py-1 text-xs font-medium bg-
|
|
335
|
+
className: "absolute top-4 right-4 px-2 py-1 text-xs font-medium bg-bg-sunken text-text-muted rounded",
|
|
336
336
|
children: "Inactive"
|
|
337
337
|
}),
|
|
338
338
|
d && r.isActive && /* @__PURE__ */ y("span", {
|
|
339
|
-
className: "absolute top-4 right-4 px-2 py-1 text-xs font-medium bg-primary text-primary-
|
|
339
|
+
className: "absolute top-4 right-4 px-2 py-1 text-xs font-medium bg-action-primary-bg text-action-primary-text rounded",
|
|
340
340
|
children: [
|
|
341
341
|
"In Cart (",
|
|
342
342
|
g,
|
|
@@ -344,9 +344,9 @@ var C = () => {
|
|
|
344
344
|
]
|
|
345
345
|
}),
|
|
346
346
|
/* @__PURE__ */ v("div", {
|
|
347
|
-
className: "size-10 rounded-lg bg-
|
|
347
|
+
className: "size-10 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center mb-4",
|
|
348
348
|
children: /* @__PURE__ */ v("svg", {
|
|
349
|
-
className: "size-5 text-
|
|
349
|
+
className: "size-5 text-text-link",
|
|
350
350
|
fill: "none",
|
|
351
351
|
viewBox: "0 0 24 24",
|
|
352
352
|
stroke: "currentColor",
|
|
@@ -361,23 +361,23 @@ var C = () => {
|
|
|
361
361
|
/* @__PURE__ */ y("div", {
|
|
362
362
|
className: "mb-4",
|
|
363
363
|
children: [/* @__PURE__ */ v("h3", {
|
|
364
|
-
className: "text-lg font-bold text-
|
|
364
|
+
className: "text-lg font-bold text-text-primary",
|
|
365
365
|
children: r.name
|
|
366
366
|
}), /* @__PURE__ */ v("span", {
|
|
367
|
-
className: "text-sm text-muted
|
|
367
|
+
className: "text-sm text-text-muted",
|
|
368
368
|
children: n(r.duration)
|
|
369
369
|
})]
|
|
370
370
|
}),
|
|
371
371
|
/* @__PURE__ */ y("div", {
|
|
372
372
|
className: "flex items-baseline gap-1 mb-4",
|
|
373
373
|
children: [/* @__PURE__ */ v("span", {
|
|
374
|
-
className: "text-2xl font-bold text-
|
|
374
|
+
className: "text-2xl font-bold text-text-primary",
|
|
375
375
|
children: (() => {
|
|
376
376
|
let { price: t, currency: n } = S(r, c);
|
|
377
377
|
return e(t, n);
|
|
378
378
|
})()
|
|
379
379
|
}), /* @__PURE__ */ y("span", {
|
|
380
|
-
className: "text-muted
|
|
380
|
+
className: "text-text-muted text-sm",
|
|
381
381
|
children: ["/ ", t(r.duration)]
|
|
382
382
|
})]
|
|
383
383
|
}),
|
|
@@ -399,15 +399,15 @@ var C = () => {
|
|
|
399
399
|
d: "M5 13l4 4L19 7"
|
|
400
400
|
})
|
|
401
401
|
}), /* @__PURE__ */ v("span", {
|
|
402
|
-
className: "text-
|
|
402
|
+
className: "text-text-primary",
|
|
403
403
|
children: e.name
|
|
404
404
|
})]
|
|
405
405
|
}), /* @__PURE__ */ v("span", {
|
|
406
|
-
className: "font-medium text-
|
|
406
|
+
className: "font-medium text-text-primary",
|
|
407
407
|
children: e.totalValue.toLocaleString()
|
|
408
408
|
})]
|
|
409
409
|
}, e.quotaId)), w.length > 4 && /* @__PURE__ */ y("li", {
|
|
410
|
-
className: "text-sm text-muted
|
|
410
|
+
className: "text-sm text-text-muted pl-6",
|
|
411
411
|
children: [
|
|
412
412
|
"+",
|
|
413
413
|
w.length - 4,
|
|
@@ -416,7 +416,7 @@ var C = () => {
|
|
|
416
416
|
})]
|
|
417
417
|
}),
|
|
418
418
|
/* @__PURE__ */ y("div", {
|
|
419
|
-
className: "space-y-2 pt-4 border-t border-border mt-auto",
|
|
419
|
+
className: "space-y-2 pt-4 border-t border-border-subtle mt-auto",
|
|
420
420
|
children: [
|
|
421
421
|
r.isActive && (d ? /* @__PURE__ */ y("div", {
|
|
422
422
|
className: "flex items-center justify-between gap-2",
|
|
@@ -426,7 +426,7 @@ var C = () => {
|
|
|
426
426
|
/* @__PURE__ */ v("button", {
|
|
427
427
|
type: "button",
|
|
428
428
|
onClick: () => b(r.id, g - 1),
|
|
429
|
-
className: "p-1.5 rounded border border-border hover:bg-
|
|
429
|
+
className: "p-1.5 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
430
430
|
children: /* @__PURE__ */ v(f, { className: "size-4" })
|
|
431
431
|
}),
|
|
432
432
|
/* @__PURE__ */ v("span", {
|
|
@@ -436,27 +436,27 @@ var C = () => {
|
|
|
436
436
|
/* @__PURE__ */ v("button", {
|
|
437
437
|
type: "button",
|
|
438
438
|
onClick: () => b(r.id, g + 1),
|
|
439
|
-
className: "p-1.5 rounded border border-border hover:bg-
|
|
439
|
+
className: "p-1.5 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
440
440
|
children: /* @__PURE__ */ v(p, { className: "size-4" })
|
|
441
441
|
})
|
|
442
442
|
]
|
|
443
443
|
}), /* @__PURE__ */ v("button", {
|
|
444
444
|
type: "button",
|
|
445
445
|
onClick: () => C(r.id),
|
|
446
|
-
className: "p-1.5 rounded text-
|
|
446
|
+
className: "p-1.5 rounded text-status-error-text hover:bg-status-error-bg-subtle transition-colors",
|
|
447
447
|
title: "Remove from cart",
|
|
448
448
|
children: /* @__PURE__ */ v(h, { className: "size-4" })
|
|
449
449
|
})]
|
|
450
450
|
}) : /* @__PURE__ */ y("button", {
|
|
451
451
|
type: "button",
|
|
452
452
|
onClick: () => _(r),
|
|
453
|
-
className: "w-full px-4 py-2 text-sm font-medium bg-primary text-primary-
|
|
453
|
+
className: "w-full px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors flex items-center justify-center gap-2",
|
|
454
454
|
children: [/* @__PURE__ */ v(m, { className: "size-4" }), "Add to Cart"]
|
|
455
455
|
})),
|
|
456
456
|
/* @__PURE__ */ v("button", {
|
|
457
457
|
type: "button",
|
|
458
458
|
onClick: () => i(r),
|
|
459
|
-
className: "w-full px-4 py-2 text-sm font-medium border border-border text-
|
|
459
|
+
className: "w-full px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
|
|
460
460
|
children: "View Details"
|
|
461
461
|
}),
|
|
462
462
|
s && /* @__PURE__ */ y("div", {
|
|
@@ -464,13 +464,13 @@ var C = () => {
|
|
|
464
464
|
children: [/* @__PURE__ */ v("button", {
|
|
465
465
|
type: "button",
|
|
466
466
|
onClick: () => a(r),
|
|
467
|
-
className: "flex-1 px-3 py-2 text-sm font-medium border border-border text-
|
|
467
|
+
className: "flex-1 px-3 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
|
|
468
468
|
children: "Edit"
|
|
469
469
|
}), /* @__PURE__ */ v("button", {
|
|
470
470
|
type: "button",
|
|
471
471
|
onClick: () => o(r),
|
|
472
472
|
disabled: l,
|
|
473
|
-
className: `px-3 py-2 text-sm font-medium border border-border rounded-md transition-colors ${r.isActive ? "text-
|
|
473
|
+
className: `px-3 py-2 text-sm font-medium border border-border-subtle rounded-md transition-colors ${r.isActive ? "text-status-error-text hover:bg-status-error-bg-subtle" : "text-status-success-text hover:bg-status-success-bg-subtle"}`,
|
|
474
474
|
children: r.isActive ? "Deactivate" : "Activate"
|
|
475
475
|
})]
|
|
476
476
|
})
|
|
@@ -481,12 +481,12 @@ var C = () => {
|
|
|
481
481
|
}, T = ({ addon: n, onView: r, onEdit: i, onToggle: a, canManage: o, displayCurrency: s, isToggling: c, isInCart: l, cartQuantity: d, onAddToCart: g, onUpdateQuantity: b, onRemoveFromCart: C }) => {
|
|
482
482
|
let w = u(() => x(n.features || []), [n.features]);
|
|
483
483
|
return /* @__PURE__ */ y("div", {
|
|
484
|
-
className: `flex items-center gap-4 p-4 border rounded-
|
|
484
|
+
className: `flex items-center gap-4 p-4 border rounded-card shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:border-border-strong hover:shadow-[var(--shadow-elevation-2)] ${n.isActive ? l ? "border-action-primary-bg bg-[var(--color-accent-soft)]" : "border-border-subtle bg-bg-surface" : "border-dashed border-text-muted/30 bg-bg-sunken/30"}`,
|
|
485
485
|
children: [
|
|
486
486
|
/* @__PURE__ */ v("div", {
|
|
487
|
-
className: "size-10 rounded-lg bg-
|
|
487
|
+
className: "size-10 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center shrink-0",
|
|
488
488
|
children: /* @__PURE__ */ v("svg", {
|
|
489
|
-
className: "size-5 text-
|
|
489
|
+
className: "size-5 text-text-link",
|
|
490
490
|
fill: "none",
|
|
491
491
|
viewBox: "0 0 24 24",
|
|
492
492
|
stroke: "currentColor",
|
|
@@ -504,15 +504,15 @@ var C = () => {
|
|
|
504
504
|
className: "flex items-center gap-2",
|
|
505
505
|
children: [
|
|
506
506
|
/* @__PURE__ */ v("h3", {
|
|
507
|
-
className: "font-semibold text-
|
|
507
|
+
className: "font-semibold text-text-primary truncate",
|
|
508
508
|
children: n.name
|
|
509
509
|
}),
|
|
510
510
|
!n.isActive && /* @__PURE__ */ v("span", {
|
|
511
|
-
className: "px-2 py-0.5 text-xs font-medium bg-
|
|
511
|
+
className: "px-2 py-0.5 text-xs font-medium bg-bg-sunken text-text-muted rounded",
|
|
512
512
|
children: "Inactive"
|
|
513
513
|
}),
|
|
514
514
|
l && n.isActive && /* @__PURE__ */ y("span", {
|
|
515
|
-
className: "px-2 py-0.5 text-xs font-medium bg-primary text-primary-
|
|
515
|
+
className: "px-2 py-0.5 text-xs font-medium bg-action-primary-bg text-action-primary-text rounded",
|
|
516
516
|
children: [
|
|
517
517
|
"In Cart (",
|
|
518
518
|
d,
|
|
@@ -521,7 +521,7 @@ var C = () => {
|
|
|
521
521
|
})
|
|
522
522
|
]
|
|
523
523
|
}), /* @__PURE__ */ y("p", {
|
|
524
|
-
className: "text-sm text-muted
|
|
524
|
+
className: "text-sm text-text-muted",
|
|
525
525
|
children: [
|
|
526
526
|
w.length,
|
|
527
527
|
" quota",
|
|
@@ -532,13 +532,13 @@ var C = () => {
|
|
|
532
532
|
/* @__PURE__ */ y("div", {
|
|
533
533
|
className: "text-right",
|
|
534
534
|
children: [/* @__PURE__ */ v("div", {
|
|
535
|
-
className: "font-semibold text-
|
|
535
|
+
className: "font-semibold text-text-primary",
|
|
536
536
|
children: (() => {
|
|
537
537
|
let { price: t, currency: r } = S(n, s);
|
|
538
538
|
return e(t, r);
|
|
539
539
|
})()
|
|
540
540
|
}), /* @__PURE__ */ y("div", {
|
|
541
|
-
className: "text-sm text-muted
|
|
541
|
+
className: "text-sm text-text-muted",
|
|
542
542
|
children: ["per ", t(n.duration)]
|
|
543
543
|
})]
|
|
544
544
|
}),
|
|
@@ -548,7 +548,7 @@ var C = () => {
|
|
|
548
548
|
/* @__PURE__ */ v("button", {
|
|
549
549
|
type: "button",
|
|
550
550
|
onClick: () => b(n.id, d - 1),
|
|
551
|
-
className: "p-1.5 rounded border border-border hover:bg-
|
|
551
|
+
className: "p-1.5 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
552
552
|
children: /* @__PURE__ */ v(f, { className: "size-4" })
|
|
553
553
|
}),
|
|
554
554
|
/* @__PURE__ */ v("span", {
|
|
@@ -558,13 +558,13 @@ var C = () => {
|
|
|
558
558
|
/* @__PURE__ */ v("button", {
|
|
559
559
|
type: "button",
|
|
560
560
|
onClick: () => b(n.id, d + 1),
|
|
561
|
-
className: "p-1.5 rounded border border-border hover:bg-
|
|
561
|
+
className: "p-1.5 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
562
562
|
children: /* @__PURE__ */ v(p, { className: "size-4" })
|
|
563
563
|
}),
|
|
564
564
|
/* @__PURE__ */ v("button", {
|
|
565
565
|
type: "button",
|
|
566
566
|
onClick: () => C(n.id),
|
|
567
|
-
className: "p-1.5 rounded text-
|
|
567
|
+
className: "p-1.5 rounded text-status-error-text hover:bg-status-error-bg-subtle transition-colors ml-1",
|
|
568
568
|
title: "Remove from cart",
|
|
569
569
|
children: /* @__PURE__ */ v(h, { className: "size-4" })
|
|
570
570
|
})
|
|
@@ -572,7 +572,7 @@ var C = () => {
|
|
|
572
572
|
}) : /* @__PURE__ */ y("button", {
|
|
573
573
|
type: "button",
|
|
574
574
|
onClick: () => g(n),
|
|
575
|
-
className: "px-3 py-1.5 text-sm font-medium bg-primary text-primary-
|
|
575
|
+
className: "px-3 py-1.5 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors flex items-center gap-1.5",
|
|
576
576
|
children: [/* @__PURE__ */ v(m, { className: "size-4" }), "Add"]
|
|
577
577
|
})),
|
|
578
578
|
/* @__PURE__ */ y("div", {
|
|
@@ -580,18 +580,18 @@ var C = () => {
|
|
|
580
580
|
children: [/* @__PURE__ */ v("button", {
|
|
581
581
|
type: "button",
|
|
582
582
|
onClick: () => r(n),
|
|
583
|
-
className: "px-3 py-1.5 text-sm font-medium border border-border text-
|
|
583
|
+
className: "px-3 py-1.5 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
|
|
584
584
|
children: "View"
|
|
585
585
|
}), o && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("button", {
|
|
586
586
|
type: "button",
|
|
587
587
|
onClick: () => i(n),
|
|
588
|
-
className: "px-3 py-1.5 text-sm font-medium border border-border text-
|
|
588
|
+
className: "px-3 py-1.5 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
|
|
589
589
|
children: "Edit"
|
|
590
590
|
}), /* @__PURE__ */ v("button", {
|
|
591
591
|
type: "button",
|
|
592
592
|
onClick: () => a(n),
|
|
593
593
|
disabled: c,
|
|
594
|
-
className: `px-3 py-1.5 text-sm font-medium border border-border rounded-md transition-colors ${n.isActive ? "text-
|
|
594
|
+
className: `px-3 py-1.5 text-sm font-medium border border-border-subtle rounded-md transition-colors ${n.isActive ? "text-status-error-text hover:bg-status-error-bg-subtle" : "text-status-success-text hover:bg-status-success-bg-subtle"}`,
|
|
595
595
|
children: n.isActive ? "Deactivate" : "Activate"
|
|
596
596
|
})] })]
|
|
597
597
|
})
|
|
@@ -602,7 +602,7 @@ var C = () => {
|
|
|
602
602
|
return i.length === 0 && !s ? null : /* @__PURE__ */ y(_, { children: [!s && i.length > 0 && /* @__PURE__ */ y("button", {
|
|
603
603
|
type: "button",
|
|
604
604
|
onClick: c,
|
|
605
|
-
className: "fixed bottom-6 right-6 z-50 flex items-center gap-2 px-4 py-3 bg-primary text-primary-
|
|
605
|
+
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-[var(--shadow-elevation-3)] hover:bg-action-primary-bgHover transition-all duration-200",
|
|
606
606
|
children: [
|
|
607
607
|
/* @__PURE__ */ v(m, { className: "size-5" }),
|
|
608
608
|
/* @__PURE__ */ y("span", {
|
|
@@ -614,7 +614,7 @@ var C = () => {
|
|
|
614
614
|
]
|
|
615
615
|
}),
|
|
616
616
|
/* @__PURE__ */ v("span", {
|
|
617
|
-
className: "px-2 py-0.5 bg-
|
|
617
|
+
className: "px-2 py-0.5 bg-[var(--color-accent-soft)] rounded-full text-sm",
|
|
618
618
|
children: e(i.reduce((e, { addon: t, quantity: r }) => {
|
|
619
619
|
let { price: i } = S(t, n);
|
|
620
620
|
return e + i * r;
|
|
@@ -627,20 +627,20 @@ var C = () => {
|
|
|
627
627
|
className: "absolute inset-0 bg-overlay-scrim",
|
|
628
628
|
onClick: l
|
|
629
629
|
}), /* @__PURE__ */ y("div", {
|
|
630
|
-
className: "relative w-full max-w-md max-h-[80vh] bg-
|
|
630
|
+
className: "relative w-full max-w-md max-h-[80vh] bg-bg-elevated border border-border-subtle rounded-t-card sm:rounded-card shadow-[var(--shadow-elevation-4)] overflow-hidden",
|
|
631
631
|
children: [
|
|
632
632
|
/* @__PURE__ */ y("div", {
|
|
633
|
-
className: "flex items-center justify-between px-4 py-3 border-b border-border bg-
|
|
633
|
+
className: "flex items-center justify-between px-4 py-3 border-b border-border-subtle bg-bg-sunken/30",
|
|
634
634
|
children: [/* @__PURE__ */ y("div", {
|
|
635
635
|
className: "flex items-center gap-2",
|
|
636
636
|
children: [
|
|
637
|
-
/* @__PURE__ */ v(m, { className: "size-5 text-
|
|
637
|
+
/* @__PURE__ */ v(m, { className: "size-5 text-text-primary" }),
|
|
638
638
|
/* @__PURE__ */ v("h3", {
|
|
639
|
-
className: "font-semibold text-
|
|
639
|
+
className: "font-semibold text-text-primary",
|
|
640
640
|
children: "Your Cart"
|
|
641
641
|
}),
|
|
642
642
|
/* @__PURE__ */ y("span", {
|
|
643
|
-
className: "px-2 py-0.5 text-xs bg-primary text-primary-
|
|
643
|
+
className: "px-2 py-0.5 text-xs bg-action-primary-bg text-action-primary-text rounded-full",
|
|
644
644
|
children: [
|
|
645
645
|
x,
|
|
646
646
|
" item",
|
|
@@ -651,19 +651,19 @@ var C = () => {
|
|
|
651
651
|
}), /* @__PURE__ */ v("button", {
|
|
652
652
|
type: "button",
|
|
653
653
|
onClick: l,
|
|
654
|
-
className: "p-1.5 rounded hover:bg-
|
|
654
|
+
className: "p-1.5 rounded hover:bg-bg-sunken transition-colors",
|
|
655
655
|
children: /* @__PURE__ */ v(g, { className: "size-5" })
|
|
656
656
|
})]
|
|
657
657
|
}),
|
|
658
658
|
/* @__PURE__ */ v("div", {
|
|
659
|
-
className: "overflow-y-auto max-h-[50vh] divide-y divide-border",
|
|
659
|
+
className: "overflow-y-auto max-h-[50vh] divide-y divide-border-subtle",
|
|
660
660
|
children: i.map(({ addon: r, quantity: i }) => /* @__PURE__ */ y("div", {
|
|
661
661
|
className: "p-4 flex items-center gap-3",
|
|
662
662
|
children: [
|
|
663
663
|
/* @__PURE__ */ v("div", {
|
|
664
|
-
className: "size-10 rounded-lg bg-
|
|
664
|
+
className: "size-10 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center shrink-0",
|
|
665
665
|
children: /* @__PURE__ */ v("svg", {
|
|
666
|
-
className: "size-5 text-
|
|
666
|
+
className: "size-5 text-text-link",
|
|
667
667
|
fill: "none",
|
|
668
668
|
viewBox: "0 0 24 24",
|
|
669
669
|
stroke: "currentColor",
|
|
@@ -678,10 +678,10 @@ var C = () => {
|
|
|
678
678
|
/* @__PURE__ */ y("div", {
|
|
679
679
|
className: "flex-1 min-w-0",
|
|
680
680
|
children: [/* @__PURE__ */ v("h4", {
|
|
681
|
-
className: "font-medium text-
|
|
681
|
+
className: "font-medium text-text-primary truncate",
|
|
682
682
|
children: r.name
|
|
683
683
|
}), /* @__PURE__ */ y("p", {
|
|
684
|
-
className: "text-sm text-muted
|
|
684
|
+
className: "text-sm text-text-muted",
|
|
685
685
|
children: [
|
|
686
686
|
(() => {
|
|
687
687
|
let { price: t, currency: i } = S(r, n);
|
|
@@ -699,7 +699,7 @@ var C = () => {
|
|
|
699
699
|
/* @__PURE__ */ v("button", {
|
|
700
700
|
type: "button",
|
|
701
701
|
onClick: () => d(r.id, i - 1),
|
|
702
|
-
className: "p-1 rounded border border-border hover:bg-
|
|
702
|
+
className: "p-1 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
703
703
|
children: /* @__PURE__ */ v(f, { className: "size-3" })
|
|
704
704
|
}),
|
|
705
705
|
/* @__PURE__ */ v("span", {
|
|
@@ -709,7 +709,7 @@ var C = () => {
|
|
|
709
709
|
/* @__PURE__ */ v("button", {
|
|
710
710
|
type: "button",
|
|
711
711
|
onClick: () => d(r.id, i + 1),
|
|
712
|
-
className: "p-1 rounded border border-border hover:bg-
|
|
712
|
+
className: "p-1 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
|
|
713
713
|
children: /* @__PURE__ */ v(p, { className: "size-3" })
|
|
714
714
|
})
|
|
715
715
|
]
|
|
@@ -717,7 +717,7 @@ var C = () => {
|
|
|
717
717
|
/* @__PURE__ */ v("div", {
|
|
718
718
|
className: "text-right",
|
|
719
719
|
children: /* @__PURE__ */ v("p", {
|
|
720
|
-
className: "font-medium text-
|
|
720
|
+
className: "font-medium text-text-primary",
|
|
721
721
|
children: (() => {
|
|
722
722
|
let { price: t, currency: a } = S(r, n);
|
|
723
723
|
return e(t * i, a);
|
|
@@ -727,21 +727,21 @@ var C = () => {
|
|
|
727
727
|
/* @__PURE__ */ v("button", {
|
|
728
728
|
type: "button",
|
|
729
729
|
onClick: () => u(r.id),
|
|
730
|
-
className: "p-1.5 rounded text-
|
|
730
|
+
className: "p-1.5 rounded text-status-error-text hover:bg-status-error-bg-subtle transition-colors",
|
|
731
731
|
children: /* @__PURE__ */ v(h, { className: "size-4" })
|
|
732
732
|
})
|
|
733
733
|
]
|
|
734
734
|
}, r.id))
|
|
735
735
|
}),
|
|
736
736
|
/* @__PURE__ */ y("div", {
|
|
737
|
-
className: "border-t border-border p-4 space-y-3 bg-
|
|
737
|
+
className: "border-t border-border-subtle p-4 space-y-3 bg-bg-sunken/20",
|
|
738
738
|
children: [/* @__PURE__ */ y("div", {
|
|
739
739
|
className: "flex items-center justify-between text-lg font-semibold",
|
|
740
740
|
children: [/* @__PURE__ */ v("span", {
|
|
741
|
-
className: "text-
|
|
741
|
+
className: "text-text-primary",
|
|
742
742
|
children: "Total"
|
|
743
743
|
}), /* @__PURE__ */ v("span", {
|
|
744
|
-
className: "text-
|
|
744
|
+
className: "text-text-primary",
|
|
745
745
|
children: e(i.reduce((e, { addon: t, quantity: r }) => {
|
|
746
746
|
let { price: i } = S(t, n);
|
|
747
747
|
return e + i * r;
|
|
@@ -752,14 +752,14 @@ var C = () => {
|
|
|
752
752
|
children: [/* @__PURE__ */ v("button", {
|
|
753
753
|
type: "button",
|
|
754
754
|
onClick: b,
|
|
755
|
-
className: "flex-1 px-4 py-2.5 text-sm font-medium border border-border text-
|
|
755
|
+
className: "flex-1 px-4 py-2.5 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
|
|
756
756
|
children: "Clear Cart"
|
|
757
757
|
}), /* @__PURE__ */ v("button", {
|
|
758
758
|
type: "button",
|
|
759
759
|
onClick: () => {
|
|
760
760
|
l(), r("/checkout/addons");
|
|
761
761
|
},
|
|
762
|
-
className: "flex-1 px-4 py-2.5 text-sm font-medium bg-primary text-primary-
|
|
762
|
+
className: "flex-1 px-4 py-2.5 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors",
|
|
763
763
|
children: "Checkout"
|
|
764
764
|
})]
|
|
765
765
|
})]
|