@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
|
@@ -23,33 +23,33 @@ var j = {
|
|
|
23
23
|
FAILED: "Failed",
|
|
24
24
|
CANCELED: "Canceled"
|
|
25
25
|
}, M = {
|
|
26
|
-
REQUESTED: "bg-warning-
|
|
27
|
-
APPROVED: "bg-info-
|
|
28
|
-
REJECTED: "bg-
|
|
29
|
-
PROCESSING: "bg-info-
|
|
30
|
-
PAID: "bg-success-
|
|
31
|
-
FAILED: "bg-
|
|
32
|
-
CANCELED: "bg-
|
|
26
|
+
REQUESTED: "bg-status-warning-bg-subtle text-status-warning-text",
|
|
27
|
+
APPROVED: "bg-status-info-bg-subtle text-status-info-text",
|
|
28
|
+
REJECTED: "bg-status-error-bg-subtle text-status-error-text",
|
|
29
|
+
PROCESSING: "bg-status-info-bg-subtle text-status-info-text",
|
|
30
|
+
PAID: "bg-status-success-bg-subtle text-status-success-text",
|
|
31
|
+
FAILED: "bg-status-error-bg-subtle text-status-error-text",
|
|
32
|
+
CANCELED: "bg-bg-sunken text-text-muted"
|
|
33
33
|
};
|
|
34
34
|
function N({ status: e }) {
|
|
35
35
|
return /* @__PURE__ */ k("span", {
|
|
36
|
-
className: `inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium ${M[e] ?? "bg-
|
|
36
|
+
className: `inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium ${M[e] ?? "bg-bg-sunken text-text-muted"}`,
|
|
37
37
|
children: j[e] ?? e
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
function P({ account: e }) {
|
|
41
41
|
let [t, n] = _(!1), r = e.accountDetails;
|
|
42
42
|
return /* @__PURE__ */ A("div", {
|
|
43
|
-
className: "rounded-md border border-border bg-
|
|
43
|
+
className: "rounded-md border border-border-subtle bg-bg-sunken/40 p-3 text-sm",
|
|
44
44
|
children: [/* @__PURE__ */ A("div", {
|
|
45
45
|
className: "flex items-center justify-between",
|
|
46
46
|
children: [/* @__PURE__ */ A("div", {
|
|
47
|
-
className: "flex items-center gap-2 text-
|
|
47
|
+
className: "flex items-center gap-2 text-text-primary font-medium",
|
|
48
48
|
children: [
|
|
49
|
-
/* @__PURE__ */ k(w, { className: "size-4 text-muted
|
|
49
|
+
/* @__PURE__ */ k(w, { className: "size-4 text-text-muted" }),
|
|
50
50
|
e.displayName ?? e.label,
|
|
51
51
|
/* @__PURE__ */ A("span", {
|
|
52
|
-
className: "text-xs text-muted
|
|
52
|
+
className: "text-xs text-text-muted font-normal",
|
|
53
53
|
children: [
|
|
54
54
|
"(",
|
|
55
55
|
e.type === "UPI" ? "UPI" : "Bank",
|
|
@@ -65,7 +65,7 @@ function P({ account: e }) {
|
|
|
65
65
|
}), r && /* @__PURE__ */ k("button", {
|
|
66
66
|
type: "button",
|
|
67
67
|
onClick: () => n((e) => !e),
|
|
68
|
-
className: "text-muted
|
|
68
|
+
className: "text-text-muted hover:text-text-primary",
|
|
69
69
|
children: k(t ? S : x, { className: "size-4" })
|
|
70
70
|
})]
|
|
71
71
|
}), t && r && /* @__PURE__ */ A("div", {
|
|
@@ -74,70 +74,70 @@ function P({ account: e }) {
|
|
|
74
74
|
r.accountHolderName && /* @__PURE__ */ A("div", {
|
|
75
75
|
className: "flex gap-2",
|
|
76
76
|
children: [/* @__PURE__ */ k("span", {
|
|
77
|
-
className: "text-muted
|
|
77
|
+
className: "text-text-muted w-32 shrink-0",
|
|
78
78
|
children: "Account holder"
|
|
79
79
|
}), /* @__PURE__ */ k("span", {
|
|
80
|
-
className: "text-
|
|
80
|
+
className: "text-text-primary",
|
|
81
81
|
children: r.accountHolderName
|
|
82
82
|
})]
|
|
83
83
|
}),
|
|
84
84
|
r.bankName && /* @__PURE__ */ A("div", {
|
|
85
85
|
className: "flex gap-2",
|
|
86
86
|
children: [/* @__PURE__ */ k("span", {
|
|
87
|
-
className: "text-muted
|
|
87
|
+
className: "text-text-muted w-32 shrink-0",
|
|
88
88
|
children: "Bank"
|
|
89
89
|
}), /* @__PURE__ */ k("span", {
|
|
90
|
-
className: "text-
|
|
90
|
+
className: "text-text-primary",
|
|
91
91
|
children: r.bankName
|
|
92
92
|
})]
|
|
93
93
|
}),
|
|
94
94
|
e.accountLast4 && /* @__PURE__ */ A("div", {
|
|
95
95
|
className: "flex gap-2",
|
|
96
96
|
children: [/* @__PURE__ */ k("span", {
|
|
97
|
-
className: "text-muted
|
|
97
|
+
className: "text-text-muted w-32 shrink-0",
|
|
98
98
|
children: "Account (last 4)"
|
|
99
99
|
}), /* @__PURE__ */ A("span", {
|
|
100
|
-
className: "text-
|
|
100
|
+
className: "text-text-primary font-mono",
|
|
101
101
|
children: ["••••", e.accountLast4]
|
|
102
102
|
})]
|
|
103
103
|
}),
|
|
104
104
|
r.ifsc && /* @__PURE__ */ A("div", {
|
|
105
105
|
className: "flex gap-2",
|
|
106
106
|
children: [/* @__PURE__ */ k("span", {
|
|
107
|
-
className: "text-muted
|
|
107
|
+
className: "text-text-muted w-32 shrink-0",
|
|
108
108
|
children: "IFSC"
|
|
109
109
|
}), /* @__PURE__ */ k("span", {
|
|
110
|
-
className: "text-
|
|
110
|
+
className: "text-text-primary font-mono",
|
|
111
111
|
children: r.ifsc
|
|
112
112
|
})]
|
|
113
113
|
}),
|
|
114
114
|
r.routingNumberLast4 && /* @__PURE__ */ A("div", {
|
|
115
115
|
className: "flex gap-2",
|
|
116
116
|
children: [/* @__PURE__ */ k("span", {
|
|
117
|
-
className: "text-muted
|
|
117
|
+
className: "text-text-muted w-32 shrink-0",
|
|
118
118
|
children: "Routing (last 4)"
|
|
119
119
|
}), /* @__PURE__ */ A("span", {
|
|
120
|
-
className: "text-
|
|
120
|
+
className: "text-text-primary font-mono",
|
|
121
121
|
children: ["••••", r.routingNumberLast4]
|
|
122
122
|
})]
|
|
123
123
|
}),
|
|
124
124
|
r.upiIdMasked && /* @__PURE__ */ A("div", {
|
|
125
125
|
className: "flex gap-2",
|
|
126
126
|
children: [/* @__PURE__ */ k("span", {
|
|
127
|
-
className: "text-muted
|
|
127
|
+
className: "text-text-muted w-32 shrink-0",
|
|
128
128
|
children: "UPI ID"
|
|
129
129
|
}), /* @__PURE__ */ k("span", {
|
|
130
|
-
className: "text-
|
|
130
|
+
className: "text-text-primary font-mono",
|
|
131
131
|
children: r.upiIdMasked
|
|
132
132
|
})]
|
|
133
133
|
}),
|
|
134
134
|
r.swift && /* @__PURE__ */ A("div", {
|
|
135
135
|
className: "flex gap-2",
|
|
136
136
|
children: [/* @__PURE__ */ k("span", {
|
|
137
|
-
className: "text-muted
|
|
137
|
+
className: "text-text-muted w-32 shrink-0",
|
|
138
138
|
children: "SWIFT"
|
|
139
139
|
}), /* @__PURE__ */ k("span", {
|
|
140
|
-
className: "text-
|
|
140
|
+
className: "text-text-primary font-mono",
|
|
141
141
|
children: r.swift
|
|
142
142
|
})]
|
|
143
143
|
})
|
|
@@ -148,7 +148,7 @@ function P({ account: e }) {
|
|
|
148
148
|
function F({ request: e, onApprove: t, onReject: n, onMarkPaid: r }) {
|
|
149
149
|
let i = e.status === "REQUESTED" || e.status === "REJECTED", a = e.status === "REQUESTED" || e.status === "APPROVED", c = e.status === "APPROVED" || e.status === "PROCESSING";
|
|
150
150
|
return /* @__PURE__ */ A("div", {
|
|
151
|
-
className: "rounded-
|
|
151
|
+
className: "rounded-card border border-border-subtle bg-bg-surface p-5 space-y-4 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
152
152
|
children: [
|
|
153
153
|
/* @__PURE__ */ A("div", {
|
|
154
154
|
className: "flex flex-wrap items-start justify-between gap-3",
|
|
@@ -157,11 +157,11 @@ function F({ request: e, onApprove: t, onReject: n, onMarkPaid: r }) {
|
|
|
157
157
|
children: [/* @__PURE__ */ A("div", {
|
|
158
158
|
className: "flex items-center gap-2",
|
|
159
159
|
children: [/* @__PURE__ */ k("span", {
|
|
160
|
-
className: "text-xl font-semibold text-
|
|
160
|
+
className: "text-xl font-semibold text-text-primary",
|
|
161
161
|
children: o(e.requestedAmount, e.currency)
|
|
162
162
|
}), /* @__PURE__ */ k(N, { status: e.status })]
|
|
163
163
|
}), /* @__PURE__ */ A("div", {
|
|
164
|
-
className: "text-xs text-muted
|
|
164
|
+
className: "text-xs text-text-muted space-x-2",
|
|
165
165
|
children: [
|
|
166
166
|
/* @__PURE__ */ A("span", { children: ["Requested ", s(e.createdAt)] }),
|
|
167
167
|
e.requesterUserId && /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("span", { children: "·" }), /* @__PURE__ */ A("span", { children: ["by ", e.requesterUserId] })] }),
|
|
@@ -178,19 +178,19 @@ function F({ request: e, onApprove: t, onReject: n, onMarkPaid: r }) {
|
|
|
178
178
|
i && /* @__PURE__ */ A("button", {
|
|
179
179
|
type: "button",
|
|
180
180
|
onClick: () => t(e),
|
|
181
|
-
className: "inline-flex items-center gap-1.5 rounded-
|
|
181
|
+
className: "inline-flex items-center gap-1.5 rounded-button bg-action-primary-bg px-3 py-1.5 text-xs font-medium text-action-primary-text",
|
|
182
182
|
children: [/* @__PURE__ */ k(b, { className: "size-3.5" }), "Approve"]
|
|
183
183
|
}),
|
|
184
184
|
c && /* @__PURE__ */ A("button", {
|
|
185
185
|
type: "button",
|
|
186
186
|
onClick: () => r(e),
|
|
187
|
-
className: "inline-flex items-center gap-1.5 rounded-
|
|
187
|
+
className: "inline-flex items-center gap-1.5 rounded-button bg-status-success-bg-subtle border border-status-success-border px-3 py-1.5 text-xs font-medium text-status-success-text transition-colors hover:bg-status-success-bg-subtle/70",
|
|
188
188
|
children: [/* @__PURE__ */ k(y, { className: "size-3.5" }), "Mark as Paid"]
|
|
189
189
|
}),
|
|
190
190
|
a && /* @__PURE__ */ A("button", {
|
|
191
191
|
type: "button",
|
|
192
192
|
onClick: () => n(e),
|
|
193
|
-
className: "inline-flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-xs font-medium text-
|
|
193
|
+
className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-status-error-text",
|
|
194
194
|
children: [/* @__PURE__ */ k(D, { className: "size-3.5" }), "Reject"]
|
|
195
195
|
})
|
|
196
196
|
]
|
|
@@ -198,24 +198,28 @@ function F({ request: e, onApprove: t, onReject: n, onMarkPaid: r }) {
|
|
|
198
198
|
}),
|
|
199
199
|
e.payoutAccount && /* @__PURE__ */ k(P, { account: e.payoutAccount }),
|
|
200
200
|
e.userNotes && /* @__PURE__ */ A("div", {
|
|
201
|
-
className: "rounded-md bg-
|
|
201
|
+
className: "rounded-md bg-bg-sunken/40 border border-border-subtle px-3 py-2 text-sm",
|
|
202
202
|
children: [/* @__PURE__ */ k("span", {
|
|
203
|
-
className: "text-xs font-medium text-muted
|
|
203
|
+
className: "text-xs font-medium text-text-muted uppercase tracking-wide",
|
|
204
204
|
children: "User note"
|
|
205
205
|
}), /* @__PURE__ */ k("p", {
|
|
206
|
-
className: "mt-1 text-
|
|
206
|
+
className: "mt-1 text-text-primary",
|
|
207
207
|
children: e.userNotes
|
|
208
208
|
})]
|
|
209
209
|
}),
|
|
210
210
|
(e.internalNotes ?? e.failureReason ?? e.externalReference) && /* @__PURE__ */ A("div", {
|
|
211
|
-
className: "grid gap-1 text-xs text-muted
|
|
211
|
+
className: "grid gap-1 text-xs text-text-muted",
|
|
212
212
|
children: [
|
|
213
213
|
e.externalReference && /* @__PURE__ */ A("div", {
|
|
214
214
|
className: "flex gap-2",
|
|
215
|
-
children: [/* @__PURE__ */ k(T, { className: "size-3.5 mt-px shrink-0" }), /* @__PURE__ */ A("span", { children: [
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
215
|
+
children: [/* @__PURE__ */ k(T, { className: "size-3.5 mt-px shrink-0" }), /* @__PURE__ */ A("span", { children: [
|
|
216
|
+
"Ref:",
|
|
217
|
+
" ",
|
|
218
|
+
/* @__PURE__ */ k("span", {
|
|
219
|
+
className: "font-mono text-text-primary",
|
|
220
|
+
children: e.externalReference
|
|
221
|
+
})
|
|
222
|
+
] })]
|
|
219
223
|
}),
|
|
220
224
|
e.internalNotes && /* @__PURE__ */ A("div", {
|
|
221
225
|
className: "flex gap-2",
|
|
@@ -223,18 +227,18 @@ function F({ request: e, onApprove: t, onReject: n, onMarkPaid: r }) {
|
|
|
223
227
|
className: "shrink-0",
|
|
224
228
|
children: "Internal note:"
|
|
225
229
|
}), /* @__PURE__ */ k("span", {
|
|
226
|
-
className: "text-
|
|
230
|
+
className: "text-text-primary",
|
|
227
231
|
children: e.internalNotes
|
|
228
232
|
})]
|
|
229
233
|
}),
|
|
230
234
|
e.failureReason && /* @__PURE__ */ A("div", {
|
|
231
|
-
className: "flex gap-2 text-
|
|
235
|
+
className: "flex gap-2 text-status-error-text",
|
|
232
236
|
children: [/* @__PURE__ */ k(v, { className: "size-3.5 mt-px shrink-0" }), /* @__PURE__ */ k("span", { children: e.failureReason })]
|
|
233
237
|
})
|
|
234
238
|
]
|
|
235
239
|
}),
|
|
236
240
|
(e.paidAt ?? e.processedAt) && /* @__PURE__ */ A("div", {
|
|
237
|
-
className: "flex flex-wrap gap-4 text-xs text-muted
|
|
241
|
+
className: "flex flex-wrap gap-4 text-xs text-text-muted",
|
|
238
242
|
children: [e.processedAt && /* @__PURE__ */ A("span", {
|
|
239
243
|
className: "flex items-center gap-1",
|
|
240
244
|
children: [
|
|
@@ -259,45 +263,45 @@ function I({ summary: e }) {
|
|
|
259
263
|
className: "grid gap-3 sm:grid-cols-3",
|
|
260
264
|
children: [
|
|
261
265
|
/* @__PURE__ */ A("div", {
|
|
262
|
-
className: "rounded-
|
|
266
|
+
className: "rounded-card border border-border-subtle bg-bg-surface p-4 shadow-[var(--shadow-elevation-1)]",
|
|
263
267
|
children: [
|
|
264
268
|
/* @__PURE__ */ k("div", {
|
|
265
|
-
className: "text-xs text-muted
|
|
269
|
+
className: "text-xs text-text-muted uppercase tracking-wide",
|
|
266
270
|
children: "Pending payout"
|
|
267
271
|
}),
|
|
268
272
|
/* @__PURE__ */ k("div", {
|
|
269
|
-
className: "mt-1 text-lg font-semibold text-
|
|
273
|
+
className: "mt-1 text-lg font-semibold text-text-primary",
|
|
270
274
|
children: o(e.totalRequestedAmount, "USD")
|
|
271
275
|
}),
|
|
272
276
|
/* @__PURE__ */ A("div", {
|
|
273
|
-
className: "text-xs text-muted
|
|
277
|
+
className: "text-xs text-text-muted mt-0.5",
|
|
274
278
|
children: [e.pendingCount, " requests"]
|
|
275
279
|
})
|
|
276
280
|
]
|
|
277
281
|
}),
|
|
278
282
|
/* @__PURE__ */ A("div", {
|
|
279
|
-
className: "rounded-
|
|
283
|
+
className: "rounded-card border border-border-subtle bg-bg-surface p-4 shadow-[var(--shadow-elevation-1)]",
|
|
280
284
|
children: [/* @__PURE__ */ k("div", {
|
|
281
|
-
className: "text-xs text-muted
|
|
285
|
+
className: "text-xs text-text-muted uppercase tracking-wide",
|
|
282
286
|
children: "Processing"
|
|
283
287
|
}), /* @__PURE__ */ k("div", {
|
|
284
|
-
className: "mt-1 text-lg font-semibold text-
|
|
288
|
+
className: "mt-1 text-lg font-semibold text-text-primary",
|
|
285
289
|
children: o(e.totalProcessingAmount, "USD")
|
|
286
290
|
})]
|
|
287
291
|
}),
|
|
288
292
|
/* @__PURE__ */ A("div", {
|
|
289
|
-
className: "rounded-
|
|
293
|
+
className: "rounded-card border border-border-subtle bg-bg-surface p-4 shadow-[var(--shadow-elevation-1)]",
|
|
290
294
|
children: [
|
|
291
295
|
/* @__PURE__ */ k("div", {
|
|
292
|
-
className: "text-xs text-muted
|
|
296
|
+
className: "text-xs text-text-muted uppercase tracking-wide",
|
|
293
297
|
children: "Total paid"
|
|
294
298
|
}),
|
|
295
299
|
/* @__PURE__ */ k("div", {
|
|
296
|
-
className: "mt-1 text-lg font-semibold text-
|
|
300
|
+
className: "mt-1 text-lg font-semibold text-text-primary",
|
|
297
301
|
children: o(e.totalPaidAmount, "USD")
|
|
298
302
|
}),
|
|
299
303
|
e.failedCount > 0 && /* @__PURE__ */ A("div", {
|
|
300
|
-
className: "text-xs text-
|
|
304
|
+
className: "text-xs text-status-error-text mt-0.5",
|
|
301
305
|
children: [e.failedCount, " failed"]
|
|
302
306
|
})
|
|
303
307
|
]
|
|
@@ -314,19 +318,19 @@ function L({ dialog: e, onClose: t, onConfirm: n }) {
|
|
|
314
318
|
}), d(!1));
|
|
315
319
|
};
|
|
316
320
|
return /* @__PURE__ */ k("div", {
|
|
317
|
-
className: "fixed inset-0 z-50 flex items-center justify-center bg-overlay
|
|
321
|
+
className: "fixed inset-0 z-50 flex items-center justify-center bg-bg-overlay p-4",
|
|
318
322
|
children: /* @__PURE__ */ A("div", {
|
|
319
|
-
className: "w-full max-w-md rounded-
|
|
323
|
+
className: "w-full max-w-md rounded-card border border-border-subtle bg-bg-elevated p-6 shadow-[var(--shadow-elevation-4)] space-y-4",
|
|
320
324
|
children: [
|
|
321
325
|
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("h3", {
|
|
322
|
-
className: "text-base font-semibold text-
|
|
326
|
+
className: "text-base font-semibold text-text-primary",
|
|
323
327
|
children: {
|
|
324
328
|
approve: "Approve withdrawal request",
|
|
325
329
|
reject: "Reject withdrawal request",
|
|
326
330
|
mark_paid: "Mark as paid"
|
|
327
331
|
}[e.type]
|
|
328
332
|
}), /* @__PURE__ */ A("p", {
|
|
329
|
-
className: "text-sm text-muted
|
|
333
|
+
className: "text-sm text-text-muted mt-1",
|
|
330
334
|
children: [
|
|
331
335
|
o(e.amount, e.currency),
|
|
332
336
|
" · ",
|
|
@@ -337,7 +341,7 @@ function L({ dialog: e, onClose: t, onConfirm: n }) {
|
|
|
337
341
|
className: "space-y-3",
|
|
338
342
|
children: [/* @__PURE__ */ A("div", { children: [
|
|
339
343
|
/* @__PURE__ */ k("label", {
|
|
340
|
-
className: "text-xs font-medium text-
|
|
344
|
+
className: "text-xs font-medium text-text-primary block mb-1",
|
|
341
345
|
children: "Transaction reference / UTR number"
|
|
342
346
|
}),
|
|
343
347
|
/* @__PURE__ */ k("input", {
|
|
@@ -345,37 +349,37 @@ function L({ dialog: e, onClose: t, onConfirm: n }) {
|
|
|
345
349
|
value: c,
|
|
346
350
|
onChange: (e) => l(e.target.value),
|
|
347
351
|
placeholder: "e.g. UTR123456789012, TXN_abc123",
|
|
348
|
-
className: "w-full rounded-
|
|
352
|
+
className: "w-full rounded-input border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-ring"
|
|
349
353
|
}),
|
|
350
354
|
/* @__PURE__ */ k("p", {
|
|
351
|
-
className: "text-xs text-muted
|
|
355
|
+
className: "text-xs text-text-muted mt-1",
|
|
352
356
|
children: "Enter the bank reference number so the user can verify the transfer."
|
|
353
357
|
})
|
|
354
358
|
] }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
355
|
-
className: "text-xs font-medium text-
|
|
359
|
+
className: "text-xs font-medium text-text-primary block mb-1",
|
|
356
360
|
children: "Internal notes (optional)"
|
|
357
361
|
}), /* @__PURE__ */ k("textarea", {
|
|
358
362
|
value: r,
|
|
359
363
|
onChange: (e) => i(e.target.value),
|
|
360
364
|
rows: 2,
|
|
361
365
|
placeholder: "Any internal notes about this payment…",
|
|
362
|
-
className: "w-full rounded-
|
|
366
|
+
className: "w-full rounded-input border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-ring resize-none"
|
|
363
367
|
})] })]
|
|
364
368
|
}),
|
|
365
369
|
e.type === "approve" && /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
366
|
-
className: "text-xs font-medium text-
|
|
370
|
+
className: "text-xs font-medium text-text-primary block mb-1",
|
|
367
371
|
children: "Internal notes (optional)"
|
|
368
372
|
}), /* @__PURE__ */ k("textarea", {
|
|
369
373
|
value: r,
|
|
370
374
|
onChange: (e) => i(e.target.value),
|
|
371
375
|
rows: 3,
|
|
372
376
|
placeholder: "e.g. Verified bank details, approved for transfer…",
|
|
373
|
-
className: "w-full rounded-
|
|
377
|
+
className: "w-full rounded-input border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-ring resize-none"
|
|
374
378
|
})] }),
|
|
375
379
|
e.type === "reject" && /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("label", {
|
|
376
|
-
className: "text-xs font-medium text-
|
|
380
|
+
className: "text-xs font-medium text-text-primary block mb-1",
|
|
377
381
|
children: ["Reason for rejection ", /* @__PURE__ */ k("span", {
|
|
378
|
-
className: "text-
|
|
382
|
+
className: "text-status-error-text",
|
|
379
383
|
children: "*"
|
|
380
384
|
})]
|
|
381
385
|
}), /* @__PURE__ */ k("textarea", {
|
|
@@ -383,7 +387,7 @@ function L({ dialog: e, onClose: t, onConfirm: n }) {
|
|
|
383
387
|
onChange: (e) => s(e.target.value),
|
|
384
388
|
rows: 3,
|
|
385
389
|
placeholder: "e.g. Invalid bank details provided, please re-submit with correct IFSC…",
|
|
386
|
-
className: "w-full rounded-
|
|
390
|
+
className: "w-full rounded-input border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-ring resize-none"
|
|
387
391
|
})] }),
|
|
388
392
|
/* @__PURE__ */ A("div", {
|
|
389
393
|
className: "flex justify-end gap-2 pt-2",
|
|
@@ -391,13 +395,13 @@ function L({ dialog: e, onClose: t, onConfirm: n }) {
|
|
|
391
395
|
type: "button",
|
|
392
396
|
onClick: t,
|
|
393
397
|
disabled: u,
|
|
394
|
-
className: "rounded-md border border-border px-4 py-2 text-sm font-medium text-
|
|
398
|
+
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary disabled:opacity-50",
|
|
395
399
|
children: "Cancel"
|
|
396
400
|
}), /* @__PURE__ */ k("button", {
|
|
397
401
|
type: "button",
|
|
398
402
|
onClick: () => void f(),
|
|
399
403
|
disabled: u || e.type === "reject" && !a.trim(),
|
|
400
|
-
className: `rounded-md px-4 py-2 text-sm font-medium disabled:opacity-50 ${e.type === "reject" ? "bg-
|
|
404
|
+
className: `rounded-md px-4 py-2 text-sm font-medium disabled:opacity-50 ${e.type === "reject" ? "bg-action-danger-bg text-action-danger-text" : "bg-action-primary-bg text-action-primary-text"}`,
|
|
401
405
|
children: u ? "Saving…" : e.type === "approve" ? "Approve" : e.type === "reject" ? "Reject" : "Confirm Payment"
|
|
402
406
|
})]
|
|
403
407
|
})
|
|
@@ -473,7 +477,7 @@ var R = () => {
|
|
|
473
477
|
actions: /* @__PURE__ */ A("button", {
|
|
474
478
|
type: "button",
|
|
475
479
|
onClick: () => void V(),
|
|
476
|
-
className: "inline-flex items-center gap-2 rounded-md border border-border px-3 py-2 text-sm font-medium text-
|
|
480
|
+
className: "inline-flex items-center gap-2 rounded-md border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary",
|
|
477
481
|
children: [/* @__PURE__ */ k(E, { className: `size-4 ${D ? "animate-spin" : ""}` }), "Refresh"]
|
|
478
482
|
})
|
|
479
483
|
}),
|
|
@@ -484,29 +488,29 @@ var R = () => {
|
|
|
484
488
|
1,
|
|
485
489
|
2,
|
|
486
490
|
3
|
|
487
|
-
].map((e) => /* @__PURE__ */ k("div", { className: "h-20 animate-pulse rounded-lg border border-border bg-
|
|
491
|
+
].map((e) => /* @__PURE__ */ k("div", { className: "h-20 animate-pulse rounded-lg border border-border-subtle bg-bg-surface" }, e))
|
|
488
492
|
}),
|
|
489
493
|
j && !c(j) && /* @__PURE__ */ k("div", {
|
|
490
|
-
className: "rounded-lg border border-
|
|
494
|
+
className: "rounded-lg border border-status-error-border bg-status-error-bg-subtle p-4 text-sm text-status-error-text",
|
|
491
495
|
children: j.message
|
|
492
496
|
}),
|
|
493
497
|
/* @__PURE__ */ k("div", {
|
|
494
|
-
className: "border-b border-border",
|
|
498
|
+
className: "border-b border-border-subtle",
|
|
495
499
|
children: /* @__PURE__ */ k("div", {
|
|
496
500
|
className: "flex gap-0",
|
|
497
501
|
children: G.map((e) => /* @__PURE__ */ A("button", {
|
|
498
502
|
type: "button",
|
|
499
503
|
onClick: () => P(e.id),
|
|
500
|
-
className: `flex items-center gap-2 border-b-2 px-4 py-2.5 text-sm font-medium transition-colors ${N === e.id ? "border-primary text-
|
|
504
|
+
className: `flex items-center gap-2 border-b-2 px-4 py-2.5 text-sm font-medium transition-colors ${N === e.id ? "border-action-primary-bg text-text-primary" : "border-transparent text-text-muted hover:text-text-primary"}`,
|
|
501
505
|
children: [e.label, e.count > 0 && /* @__PURE__ */ k("span", {
|
|
502
|
-
className: `rounded-full px-1.5 py-0.5 text-xs ${N === e.id ? "bg-primary text-primary-
|
|
506
|
+
className: `rounded-full px-1.5 py-0.5 text-xs ${N === e.id ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-muted"}`,
|
|
503
507
|
children: e.count
|
|
504
508
|
})]
|
|
505
509
|
}, e.id))
|
|
506
510
|
})
|
|
507
511
|
}),
|
|
508
512
|
N === "approved" && U.length > 0 && /* @__PURE__ */ A("div", {
|
|
509
|
-
className: "rounded-
|
|
513
|
+
className: "rounded-card border border-status-info-border bg-status-info-bg-subtle px-4 py-3 text-sm text-status-info-text",
|
|
510
514
|
children: [
|
|
511
515
|
/* @__PURE__ */ k("strong", { children: "How to pay:" }),
|
|
512
516
|
" Click the account row to expand bank/UPI details → transfer the exact amount via your bank → click ",
|
|
@@ -516,7 +520,7 @@ var R = () => {
|
|
|
516
520
|
}),
|
|
517
521
|
D ? /* @__PURE__ */ k("div", {
|
|
518
522
|
className: "space-y-4",
|
|
519
|
-
children: [1, 2].map((e) => /* @__PURE__ */ k("div", { className: "h-40 animate-pulse rounded-lg border border-border bg-
|
|
523
|
+
children: [1, 2].map((e) => /* @__PURE__ */ k("div", { className: "h-40 animate-pulse rounded-lg border border-border-subtle bg-bg-surface" }, e))
|
|
520
524
|
}) : K.length === 0 ? /* @__PURE__ */ k(r, {
|
|
521
525
|
icon: /* @__PURE__ */ k(b, { className: "size-8" }),
|
|
522
526
|
title: N === "pending" ? "No pending requests" : N === "approved" ? "No approved requests awaiting payment" : "No history yet",
|