@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.
Files changed (135) hide show
  1. package/dist/billing/BillingAdminRoutes.js +7 -6
  2. package/dist/billing/BillingAdminRoutes.js.map +1 -1
  3. package/dist/billing/BillingRoot.js +1 -1
  4. package/dist/billing/BillingRoot.js.map +1 -1
  5. package/dist/billing/modules/addons/components/FloatingCartDrawer.js +22 -22
  6. package/dist/billing/modules/addons/components/FloatingCartDrawer.js.map +1 -1
  7. package/dist/billing/modules/addons/pages/AddonCreatePage.js +31 -31
  8. package/dist/billing/modules/addons/pages/AddonCreatePage.js.map +1 -1
  9. package/dist/billing/modules/addons/pages/AddonDetailPage.js +39 -39
  10. package/dist/billing/modules/addons/pages/AddonDetailPage.js.map +1 -1
  11. package/dist/billing/modules/addons/pages/AddonEditPage.js +29 -29
  12. package/dist/billing/modules/addons/pages/AddonEditPage.js.map +1 -1
  13. package/dist/billing/modules/addons/pages/AddonsListPage.js +91 -91
  14. package/dist/billing/modules/addons/pages/AddonsListPage.js.map +1 -1
  15. package/dist/billing/modules/analytics/pages/AnalyticsPage.js +40 -40
  16. package/dist/billing/modules/analytics/pages/AnalyticsPage.js.map +1 -1
  17. package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +115 -115
  18. package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
  19. package/dist/billing/modules/billing/pages/InvoicesListPage.js +75 -72
  20. package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
  21. package/dist/billing/modules/billing/pages/RefundsPage.js +126 -126
  22. package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
  23. package/dist/billing/modules/billing/pages/UserRefundsPage.js +45 -45
  24. package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
  25. package/dist/billing/modules/checkout/components/BillingAccountSelector.js +25 -25
  26. package/dist/billing/modules/checkout/components/BillingAccountSelector.js.map +1 -1
  27. package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js +31 -35
  28. package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js.map +1 -1
  29. package/dist/billing/modules/checkout/components/CreditsAmountInput.js +9 -9
  30. package/dist/billing/modules/checkout/components/CreditsAmountInput.js.map +1 -1
  31. package/dist/billing/modules/checkout/components/OrderSummary.js +31 -31
  32. package/dist/billing/modules/checkout/components/OrderSummary.js.map +1 -1
  33. package/dist/billing/modules/checkout/components/PromoCodeInput.js +8 -8
  34. package/dist/billing/modules/checkout/components/PromoCodeInput.js.map +1 -1
  35. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js +5 -5
  36. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js.map +1 -1
  37. package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js +9 -9
  38. package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js.map +1 -1
  39. package/dist/billing/modules/checkout/components/StripePaymentForm.js +21 -21
  40. package/dist/billing/modules/checkout/components/StripePaymentForm.js.map +1 -1
  41. package/dist/billing/modules/checkout/components/SubscriptionSelector.js +11 -11
  42. package/dist/billing/modules/checkout/components/SubscriptionSelector.js.map +1 -1
  43. package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js +31 -31
  44. package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js.map +1 -1
  45. package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js +23 -23
  46. package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js.map +1 -1
  47. package/dist/billing/modules/checkout/pages/CheckoutPage.js +91 -91
  48. package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -1
  49. package/dist/billing/modules/coupons/pages/CouponDetailPage.js +62 -62
  50. package/dist/billing/modules/coupons/pages/CouponDetailPage.js.map +1 -1
  51. package/dist/billing/modules/coupons/pages/CouponsListPage.js +72 -60
  52. package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
  53. package/dist/billing/modules/coupons/pages/CreateCouponPage.js +66 -66
  54. package/dist/billing/modules/coupons/pages/CreateCouponPage.js.map +1 -1
  55. package/dist/billing/modules/coupons/pages/EditCouponPage.js +46 -46
  56. package/dist/billing/modules/coupons/pages/EditCouponPage.js.map +1 -1
  57. package/dist/billing/modules/credits/pages/AdminCreditsPage.js +19 -19
  58. package/dist/billing/modules/credits/pages/AdminCreditsPage.js.map +1 -1
  59. package/dist/billing/modules/credits/pages/CreditTransactionsPage.js +37 -37
  60. package/dist/billing/modules/credits/pages/CreditTransactionsPage.js.map +1 -1
  61. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +90 -90
  62. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
  63. package/dist/billing/modules/credits/pages/CreditsPage.js +41 -41
  64. package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -1
  65. package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js +31 -31
  66. package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js.map +1 -1
  67. package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js +35 -35
  68. package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js.map +1 -1
  69. package/dist/billing/modules/dashboard/components/BillingAccountCard.js +24 -24
  70. package/dist/billing/modules/dashboard/components/BillingAccountCard.js.map +1 -1
  71. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js +99 -99
  72. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js.map +1 -1
  73. package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js +23 -23
  74. package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js.map +1 -1
  75. package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js +22 -22
  76. package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js.map +1 -1
  77. package/dist/billing/modules/dashboard/pages/OverviewPage.js +58 -58
  78. package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
  79. package/dist/billing/modules/discounts/pages/DiscountsListPage.js +126 -126
  80. package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
  81. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +83 -79
  82. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
  83. package/dist/billing/modules/plans/pages/PlanAssignFreePage.js +16 -16
  84. package/dist/billing/modules/plans/pages/PlanAssignFreePage.js.map +1 -1
  85. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +40 -40
  86. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js.map +1 -1
  87. package/dist/billing/modules/plans/pages/PlanCreatePage.js +35 -35
  88. package/dist/billing/modules/plans/pages/PlanCreatePage.js.map +1 -1
  89. package/dist/billing/modules/plans/pages/PlanDetailPage.js +57 -57
  90. package/dist/billing/modules/plans/pages/PlanDetailPage.js.map +1 -1
  91. package/dist/billing/modules/plans/pages/PlanEditPage.js +35 -35
  92. package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
  93. package/dist/billing/modules/plans/pages/PlansBrowsePage.js +57 -57
  94. package/dist/billing/modules/plans/pages/PlansBrowsePage.js.map +1 -1
  95. package/dist/billing/modules/plans/pages/PlansListPage.js +52 -52
  96. package/dist/billing/modules/plans/pages/PlansListPage.js.map +1 -1
  97. package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +40 -39
  98. package/dist/billing/modules/promotions/pages/CreatePromotionPage.js.map +1 -1
  99. package/dist/billing/modules/promotions/pages/PromotionsListPage.js +22 -19
  100. package/dist/billing/modules/promotions/pages/PromotionsListPage.js.map +1 -1
  101. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +34 -34
  102. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js.map +1 -1
  103. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +47 -47
  104. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js.map +1 -1
  105. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +39 -39
  106. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js.map +1 -1
  107. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +52 -52
  108. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js.map +1 -1
  109. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +23 -23
  110. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js.map +1 -1
  111. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +259 -246
  112. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
  113. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +88 -85
  114. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js.map +1 -1
  115. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +51 -51
  116. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
  117. package/dist/billing/modules/usage/pages/UsagePage.js +206 -196
  118. package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
  119. package/dist/billing/shared/components/ServerError.js +4 -4
  120. package/dist/billing/shared/components/ServerError.js.map +1 -1
  121. package/dist/billing/shared/components/StatCard.js +11 -33
  122. package/dist/billing/shared/components/StatCard.js.map +1 -1
  123. package/dist/billing/shared/ui/Card.js +15 -0
  124. package/dist/billing/shared/ui/Card.js.map +1 -0
  125. package/dist/billing/shared/ui/MetricCard.js +44 -0
  126. package/dist/billing/shared/ui/MetricCard.js.map +1 -0
  127. package/dist/billing/shared/ui/ProgressBar.js +30 -0
  128. package/dist/billing/shared/ui/ProgressBar.js.map +1 -0
  129. package/dist/billing/shared/ui/SectionHeader.js +2 -0
  130. package/dist/billing/shared/ui/StatusPill.js +28 -0
  131. package/dist/billing/shared/ui/StatusPill.js.map +1 -0
  132. package/dist/billing/shared/ui/index.js +5 -0
  133. package/dist/billing/shared/utils/tokens.js +13 -30
  134. package/dist/billing/shared/utils/tokens.js.map +1 -1
  135. package/package.json +1 -1
@@ -57,9 +57,9 @@ var y = () => {
57
57
  className: "text-center space-y-2",
58
58
  children: [
59
59
  /* @__PURE__ */ g("div", {
60
- className: "size-12 mx-auto rounded-full bg-muted flex items-center justify-center",
60
+ className: "size-12 mx-auto rounded-full bg-bg-sunken flex items-center justify-center",
61
61
  children: /* @__PURE__ */ g("svg", {
62
- className: "size-6 text-muted-foreground",
62
+ className: "size-6 text-text-secondary",
63
63
  fill: "none",
64
64
  viewBox: "0 0 24 24",
65
65
  stroke: "currentColor",
@@ -72,63 +72,63 @@ var y = () => {
72
72
  })
73
73
  }),
74
74
  /* @__PURE__ */ g("h2", {
75
- className: "text-lg font-semibold text-foreground",
75
+ className: "text-lg font-semibold text-text-primary",
76
76
  children: b("billing.accessDenied.title", "Access Denied")
77
77
  }),
78
78
  /* @__PURE__ */ g("p", {
79
- className: "text-sm text-muted-foreground max-w-sm",
79
+ className: "text-sm text-text-secondary max-w-sm",
80
80
  children: b("billing.invoices.noViewPermission", "You don't have permission to view invoices.")
81
81
  })
82
82
  ]
83
83
  })
84
84
  });
85
85
  if (k) return /* @__PURE__ */ _("div", {
86
- className: "space-y-6 p-6",
86
+ className: "space-y-6 px-6 lg:px-8 py-6",
87
87
  children: [/* @__PURE__ */ _("div", {
88
88
  className: "flex items-center gap-4",
89
- children: [/* @__PURE__ */ g("div", { className: "size-10 bg-muted animate-pulse rounded" }), /* @__PURE__ */ _("div", {
89
+ children: [/* @__PURE__ */ g("div", { className: "size-10 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ _("div", {
90
90
  className: "space-y-2",
91
- children: [/* @__PURE__ */ g("div", { className: "h-8 w-48 bg-muted animate-pulse rounded" }), /* @__PURE__ */ g("div", { className: "h-4 w-32 bg-muted animate-pulse rounded" })]
91
+ children: [/* @__PURE__ */ g("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ g("div", { className: "h-4 w-32 bg-bg-sunken animate-pulse rounded" })]
92
92
  })]
93
93
  }), /* @__PURE__ */ _("div", {
94
94
  className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
95
95
  children: [/* @__PURE__ */ _("div", {
96
96
  className: "lg:col-span-2 space-y-6",
97
97
  children: [/* @__PURE__ */ _("div", {
98
- className: "border border-border rounded-lg p-6 space-y-4",
98
+ className: "border border-border-subtle rounded-lg p-6 space-y-4",
99
99
  children: [
100
- /* @__PURE__ */ g("div", { className: "h-6 w-32 bg-muted animate-pulse rounded" }),
101
- /* @__PURE__ */ g("div", { className: "h-4 w-full bg-muted animate-pulse rounded" }),
102
- /* @__PURE__ */ g("div", { className: "h-4 w-3/4 bg-muted animate-pulse rounded" })
100
+ /* @__PURE__ */ g("div", { className: "h-6 w-32 bg-bg-sunken animate-pulse rounded" }),
101
+ /* @__PURE__ */ g("div", { className: "h-4 w-full bg-bg-sunken animate-pulse rounded" }),
102
+ /* @__PURE__ */ g("div", { className: "h-4 w-3/4 bg-bg-sunken animate-pulse rounded" })
103
103
  ]
104
104
  }), /* @__PURE__ */ _("div", {
105
- className: "border border-border rounded-lg p-6 space-y-4",
106
- children: [/* @__PURE__ */ g("div", { className: "h-6 w-24 bg-muted animate-pulse rounded" }), [
105
+ className: "border border-border-subtle rounded-lg p-6 space-y-4",
106
+ children: [/* @__PURE__ */ g("div", { className: "h-6 w-24 bg-bg-sunken animate-pulse rounded" }), [
107
107
  1,
108
108
  2,
109
109
  3
110
110
  ].map((e) => /* @__PURE__ */ _("div", {
111
111
  className: "flex items-center gap-4",
112
112
  children: [
113
- /* @__PURE__ */ g("div", { className: "h-4 flex-1 bg-muted animate-pulse rounded" }),
114
- /* @__PURE__ */ g("div", { className: "h-4 w-16 bg-muted animate-pulse rounded" }),
115
- /* @__PURE__ */ g("div", { className: "h-4 w-16 bg-muted animate-pulse rounded" }),
116
- /* @__PURE__ */ g("div", { className: "h-4 w-20 bg-muted animate-pulse rounded" })
113
+ /* @__PURE__ */ g("div", { className: "h-4 flex-1 bg-bg-sunken animate-pulse rounded" }),
114
+ /* @__PURE__ */ g("div", { className: "h-4 w-16 bg-bg-sunken animate-pulse rounded" }),
115
+ /* @__PURE__ */ g("div", { className: "h-4 w-16 bg-bg-sunken animate-pulse rounded" }),
116
+ /* @__PURE__ */ g("div", { className: "h-4 w-20 bg-bg-sunken animate-pulse rounded" })
117
117
  ]
118
118
  }, e))]
119
119
  })]
120
120
  }), /* @__PURE__ */ g("div", {
121
121
  className: "space-y-6",
122
122
  children: /* @__PURE__ */ _("div", {
123
- className: "border border-border rounded-lg p-6 space-y-4",
124
- children: [/* @__PURE__ */ g("div", { className: "h-6 w-24 bg-muted animate-pulse rounded" }), [
123
+ className: "border border-border-subtle rounded-lg p-6 space-y-4",
124
+ children: [/* @__PURE__ */ g("div", { className: "h-6 w-24 bg-bg-sunken animate-pulse rounded" }), [
125
125
  1,
126
126
  2,
127
127
  3,
128
128
  4
129
129
  ].map((e) => /* @__PURE__ */ _("div", {
130
130
  className: "space-y-1",
131
- children: [/* @__PURE__ */ g("div", { className: "h-3 w-20 bg-muted animate-pulse rounded" }), /* @__PURE__ */ g("div", { className: "h-4 w-28 bg-muted animate-pulse rounded" })]
131
+ children: [/* @__PURE__ */ g("div", { className: "h-3 w-20 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ g("div", { className: "h-4 w-28 bg-bg-sunken animate-pulse rounded" })]
132
132
  }, e))]
133
133
  })
134
134
  })]
@@ -140,9 +140,9 @@ var y = () => {
140
140
  className: "text-center space-y-4",
141
141
  children: [
142
142
  /* @__PURE__ */ g("div", {
143
- className: "size-12 mx-auto rounded-full bg-destructive/10 flex items-center justify-center",
143
+ className: "size-12 mx-auto rounded-full bg-status-error-bg-subtle flex items-center justify-center",
144
144
  children: /* @__PURE__ */ g("svg", {
145
- className: "size-6 text-destructive",
145
+ className: "size-6 text-status-error-text",
146
146
  fill: "none",
147
147
  viewBox: "0 0 24 24",
148
148
  stroke: "currentColor",
@@ -155,11 +155,11 @@ var y = () => {
155
155
  })
156
156
  }),
157
157
  /* @__PURE__ */ g("h2", {
158
- className: "text-lg font-semibold text-foreground",
158
+ className: "text-lg font-semibold text-text-primary",
159
159
  children: b("billing.invoices.invoiceNotFound", "Invoice not found")
160
160
  }),
161
161
  /* @__PURE__ */ g("p", {
162
- className: "text-sm text-muted-foreground",
162
+ className: "text-sm text-text-secondary",
163
163
  children: A?.message || b("billing.invoices.invoiceNotFoundMessage", "The invoice you are looking for does not exist.")
164
164
  }),
165
165
  /* @__PURE__ */ _("div", {
@@ -167,12 +167,12 @@ var y = () => {
167
167
  children: [/* @__PURE__ */ g("button", {
168
168
  type: "button",
169
169
  onClick: () => j(),
170
- className: "px-4 py-2 text-sm font-medium bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",
170
+ 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",
171
171
  children: "Try Again"
172
172
  }), /* @__PURE__ */ g("button", {
173
173
  type: "button",
174
174
  onClick: () => S(d("/invoices", D)),
175
- className: "px-4 py-2 text-sm font-medium border border-border text-foreground rounded-md hover:bg-muted transition-colors",
175
+ className: "px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
176
176
  children: "Back to Invoices"
177
177
  })]
178
178
  })
@@ -181,7 +181,7 @@ var y = () => {
181
181
  });
182
182
  let V = o(O.status), H = O.status === "OPEN", U = O.status === "DRAFT", W = O.items || [], G = O.total - O.amountPaid;
183
183
  return /* @__PURE__ */ _("div", {
184
- className: "space-y-6 p-6",
184
+ className: "space-y-6 px-6 lg:px-8 py-6",
185
185
  children: [
186
186
  /* @__PURE__ */ _("div", {
187
187
  className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
@@ -190,7 +190,7 @@ var y = () => {
190
190
  children: [/* @__PURE__ */ g("button", {
191
191
  type: "button",
192
192
  onClick: () => S(d("/invoices", D)),
193
- className: "p-2 -ml-2 text-muted-foreground hover:text-foreground hover:bg-muted rounded-md transition-colors",
193
+ className: "p-2 -ml-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded-button transition-colors",
194
194
  children: /* @__PURE__ */ g("svg", {
195
195
  className: "size-5",
196
196
  fill: "none",
@@ -206,14 +206,14 @@ var y = () => {
206
206
  }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ _("div", {
207
207
  className: "flex items-center gap-3",
208
208
  children: [/* @__PURE__ */ _("h1", {
209
- className: "text-2xl font-bold text-foreground",
209
+ className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
210
210
  children: ["Invoice ", i(O.invoiceNumber)]
211
211
  }), /* @__PURE__ */ g("span", {
212
212
  className: `px-2 py-1 text-xs font-medium rounded ${s(V)}`,
213
213
  children: a(O.status)
214
214
  })]
215
215
  }), /* @__PURE__ */ _("p", {
216
- className: "text-sm text-muted-foreground mt-1",
216
+ className: "text-sm text-text-secondary mt-1",
217
217
  children: [
218
218
  "Created ",
219
219
  r(O.createdAt, "short"),
@@ -227,37 +227,37 @@ var y = () => {
227
227
  href: O.pdfUrl,
228
228
  target: "_blank",
229
229
  rel: "noopener noreferrer",
230
- className: "px-4 py-2 text-sm font-medium border border-border text-foreground rounded-md hover:bg-muted transition-colors",
230
+ className: "px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
231
231
  children: "Download PDF"
232
232
  }),
233
233
  O.invoiceUrl && /* @__PURE__ */ g("a", {
234
234
  href: O.invoiceUrl,
235
235
  target: "_blank",
236
236
  rel: "noopener noreferrer",
237
- className: "px-4 py-2 text-sm font-medium border border-border text-foreground rounded-md hover:bg-muted transition-colors",
237
+ className: "px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
238
238
  children: "View on Portal"
239
239
  }),
240
240
  H && w.canPayInvoice && /* @__PURE__ */ g("button", {
241
241
  type: "button",
242
242
  onClick: z,
243
243
  disabled: P || !I,
244
- className: "px-4 py-2 text-sm font-medium bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors disabled:opacity-50",
244
+ 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 disabled:opacity-50",
245
245
  children: I ? P ? "Processing..." : "Pay Invoice" : "Default Payment Method Required"
246
246
  }),
247
247
  (H || U) && w.canVoidInvoice && /* @__PURE__ */ g("button", {
248
248
  type: "button",
249
249
  onClick: B,
250
250
  disabled: F,
251
- className: "px-4 py-2 text-sm font-medium border border-border text-destructive rounded-md hover:bg-destructive/10 transition-colors disabled:opacity-50",
251
+ className: "px-4 py-2 text-sm font-medium border border-border-subtle text-status-error-text rounded-button hover:bg-status-error-bg-subtle transition-colors disabled:opacity-50",
252
252
  children: F ? b("billing.invoices.voiding", "Voiding...") : b("billing.invoices.voidInvoice", "Void Invoice")
253
253
  })
254
254
  ]
255
255
  })]
256
256
  }),
257
257
  L && /* @__PURE__ */ g("div", {
258
- className: "p-3 bg-destructive/10 border border-destructive/20 rounded-md",
258
+ className: "p-3 bg-status-error-bg-subtle border border-status-error-border rounded-button",
259
259
  children: /* @__PURE__ */ g("p", {
260
- className: "text-sm text-destructive",
260
+ className: "text-sm text-status-error-text",
261
261
  children: L
262
262
  })
263
263
  }),
@@ -267,12 +267,12 @@ var y = () => {
267
267
  className: "lg:col-span-2 space-y-6",
268
268
  children: [
269
269
  /* @__PURE__ */ _("div", {
270
- className: "border border-border rounded-lg bg-card overflow-hidden",
270
+ className: "border border-border-subtle rounded-card bg-bg-surface shadow-elevation-1 overflow-hidden",
271
271
  children: [
272
272
  /* @__PURE__ */ g("div", {
273
- className: "p-6 border-b border-border bg-muted/30",
273
+ className: "p-6 border-b border-border-subtle bg-bg-sunken",
274
274
  children: /* @__PURE__ */ _("h2", {
275
- className: "text-lg font-semibold text-foreground",
275
+ className: "text-lg font-semibold text-text-primary",
276
276
  children: [
277
277
  b("billing.invoices.lineItems", "Line Items"),
278
278
  " (",
@@ -284,7 +284,7 @@ var y = () => {
284
284
  W.length === 0 ? /* @__PURE__ */ g("div", {
285
285
  className: "p-6",
286
286
  children: /* @__PURE__ */ g("p", {
287
- className: "text-sm text-muted-foreground",
287
+ className: "text-sm text-text-secondary",
288
288
  children: b("billing.invoices.noLineItems", "No line items on this invoice.")
289
289
  })
290
290
  }) : /* @__PURE__ */ g("div", {
@@ -292,44 +292,44 @@ var y = () => {
292
292
  children: /* @__PURE__ */ _("table", {
293
293
  className: "w-full",
294
294
  children: [/* @__PURE__ */ g("thead", {
295
- className: "bg-muted/50",
295
+ className: "bg-bg-sunken",
296
296
  children: /* @__PURE__ */ _("tr", { children: [
297
297
  /* @__PURE__ */ g("th", {
298
- className: "text-left px-4 py-3 text-sm font-medium text-muted-foreground",
298
+ className: "text-left px-4 py-3 text-sm font-medium text-text-secondary",
299
299
  children: "Description"
300
300
  }),
301
301
  /* @__PURE__ */ g("th", {
302
- className: "text-right px-4 py-3 text-sm font-medium text-muted-foreground",
302
+ className: "text-right px-4 py-3 text-sm font-medium text-text-secondary",
303
303
  children: "Qty"
304
304
  }),
305
305
  /* @__PURE__ */ g("th", {
306
- className: "text-right px-4 py-3 text-sm font-medium text-muted-foreground",
306
+ className: "text-right px-4 py-3 text-sm font-medium text-text-secondary",
307
307
  children: "Unit Price"
308
308
  }),
309
309
  /* @__PURE__ */ g("th", {
310
- className: "text-right px-4 py-3 text-sm font-medium text-muted-foreground",
310
+ className: "text-right px-4 py-3 text-sm font-medium text-text-secondary",
311
311
  children: "Amount"
312
312
  })
313
313
  ] })
314
314
  }), /* @__PURE__ */ g("tbody", {
315
- className: "divide-y divide-border",
315
+ className: "divide-y divide-border-subtle",
316
316
  children: W.map((e) => /* @__PURE__ */ _("tr", {
317
- className: "hover:bg-muted/30 transition-colors",
317
+ className: "hover:bg-bg-sunken transition-colors",
318
318
  children: [
319
319
  /* @__PURE__ */ g("td", {
320
- className: "p-4 text-sm text-foreground",
320
+ className: "p-4 text-sm text-text-primary",
321
321
  children: e.description
322
322
  }),
323
323
  /* @__PURE__ */ g("td", {
324
- className: "p-4 text-sm text-muted-foreground text-right",
324
+ className: "p-4 text-sm text-text-secondary text-right",
325
325
  children: e.quantity
326
326
  }),
327
327
  /* @__PURE__ */ g("td", {
328
- className: "p-4 text-sm text-muted-foreground text-right",
328
+ className: "p-4 text-sm text-text-secondary text-right",
329
329
  children: n(e.unitPrice, O.currency)
330
330
  }),
331
331
  /* @__PURE__ */ g("td", {
332
- className: "p-4 text-sm font-medium text-foreground text-right",
332
+ className: "p-4 text-sm font-medium text-text-primary text-right",
333
333
  children: n(e.amount, O.currency)
334
334
  })
335
335
  ]
@@ -338,44 +338,44 @@ var y = () => {
338
338
  })
339
339
  }),
340
340
  /* @__PURE__ */ g("div", {
341
- className: "border-t border-border p-4",
341
+ className: "border-t border-border-subtle p-4",
342
342
  children: /* @__PURE__ */ _("div", {
343
343
  className: "max-w-xs ml-auto space-y-2",
344
344
  children: [
345
345
  /* @__PURE__ */ _("div", {
346
346
  className: "flex items-center justify-between text-sm",
347
347
  children: [/* @__PURE__ */ g("span", {
348
- className: "text-muted-foreground",
348
+ className: "text-text-secondary",
349
349
  children: b("billing.invoices.subtotal", "Subtotal")
350
350
  }), /* @__PURE__ */ g("span", {
351
- className: "text-foreground",
351
+ className: "text-text-primary",
352
352
  children: n(O.subtotal, O.currency)
353
353
  })]
354
354
  }),
355
355
  /* @__PURE__ */ _("div", {
356
356
  className: "flex items-center justify-between text-sm",
357
357
  children: [/* @__PURE__ */ g("span", {
358
- className: "text-muted-foreground",
358
+ className: "text-text-secondary",
359
359
  children: b("billing.invoices.tax", "Tax")
360
360
  }), /* @__PURE__ */ g("span", {
361
- className: "text-foreground",
361
+ className: "text-text-primary",
362
362
  children: n(O.tax, O.currency)
363
363
  })]
364
364
  }),
365
365
  /* @__PURE__ */ _("div", {
366
- className: "flex items-center justify-between text-sm font-semibold border-t border-border pt-2",
366
+ className: "flex items-center justify-between text-sm font-semibold border-t border-border-subtle pt-2",
367
367
  children: [/* @__PURE__ */ g("span", {
368
- className: "text-foreground",
368
+ className: "text-text-primary",
369
369
  children: b("billing.invoices.total", "Total")
370
370
  }), /* @__PURE__ */ g("span", {
371
- className: "text-foreground",
371
+ className: "text-text-primary",
372
372
  children: n(O.total, O.currency)
373
373
  })]
374
374
  }),
375
375
  O.amountPaid > 0 && /* @__PURE__ */ _("div", {
376
376
  className: "flex items-center justify-between text-sm",
377
377
  children: [/* @__PURE__ */ g("span", {
378
- className: "text-muted-foreground",
378
+ className: "text-text-secondary",
379
379
  children: b("billing.invoices.amountPaid", "Amount Paid")
380
380
  }), /* @__PURE__ */ _("span", {
381
381
  className: "text-status-success-text",
@@ -383,9 +383,9 @@ var y = () => {
383
383
  })]
384
384
  }),
385
385
  G > 0 && /* @__PURE__ */ _("div", {
386
- className: "flex items-center justify-between text-sm font-semibold border-t border-border pt-2",
386
+ className: "flex items-center justify-between text-sm font-semibold border-t border-border-subtle pt-2",
387
387
  children: [/* @__PURE__ */ g("span", {
388
- className: "text-foreground",
388
+ className: "text-text-primary",
389
389
  children: b("billing.invoices.amountDue", "Amount Due")
390
390
  }), /* @__PURE__ */ g("span", {
391
391
  className: "text-status-warning-text",
@@ -398,11 +398,11 @@ var y = () => {
398
398
  ]
399
399
  }),
400
400
  O.subscription && /* @__PURE__ */ _("div", {
401
- className: "border border-border rounded-lg bg-card overflow-hidden",
401
+ className: "border border-border-subtle rounded-card bg-bg-surface shadow-elevation-1 overflow-hidden",
402
402
  children: [/* @__PURE__ */ g("div", {
403
- className: "p-6 border-b border-border bg-muted/30",
403
+ className: "p-6 border-b border-border-subtle bg-bg-sunken",
404
404
  children: /* @__PURE__ */ g("h2", {
405
- className: "text-lg font-semibold text-foreground",
405
+ className: "text-lg font-semibold text-text-primary",
406
406
  children: b("billing.invoices.subscription", "Subscription")
407
407
  })
408
408
  }), /* @__PURE__ */ g("div", {
@@ -410,10 +410,10 @@ var y = () => {
410
410
  children: /* @__PURE__ */ _("div", {
411
411
  className: "flex items-center justify-between",
412
412
  children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
413
- className: "font-medium text-foreground",
413
+ className: "font-medium text-text-primary",
414
414
  children: O.subscription.plan?.name || "Unknown Plan"
415
415
  }), /* @__PURE__ */ _("p", {
416
- className: "text-sm text-muted-foreground mt-0.5",
416
+ className: "text-sm text-text-secondary mt-0.5",
417
417
  children: [
418
418
  "Subscription ID:",
419
419
  " ",
@@ -425,18 +425,18 @@ var y = () => {
425
425
  })] }), /* @__PURE__ */ g("button", {
426
426
  type: "button",
427
427
  onClick: () => S(d(`/subscriptions/${O.subscription.id}`, D)),
428
- className: "px-3 py-1.5 text-sm font-medium text-foreground hover:bg-muted rounded-md transition-colors",
428
+ className: "px-3 py-1.5 text-sm font-medium text-text-primary hover:bg-bg-sunken rounded-button transition-colors",
429
429
  children: "View"
430
430
  })]
431
431
  })
432
432
  })]
433
433
  }),
434
434
  O.payment && /* @__PURE__ */ _("div", {
435
- className: "border border-border rounded-lg bg-card overflow-hidden",
435
+ className: "border border-border-subtle rounded-card bg-bg-surface shadow-elevation-1 overflow-hidden",
436
436
  children: [/* @__PURE__ */ g("div", {
437
- className: "p-6 border-b border-border bg-muted/30",
437
+ className: "p-6 border-b border-border-subtle bg-bg-sunken",
438
438
  children: /* @__PURE__ */ g("h2", {
439
- className: "text-lg font-semibold text-foreground",
439
+ className: "text-lg font-semibold text-text-primary",
440
440
  children: b("billing.invoices.payment", "Payment")
441
441
  })
442
442
  }), /* @__PURE__ */ g("div", {
@@ -445,45 +445,45 @@ var y = () => {
445
445
  className: "grid grid-cols-2 gap-4",
446
446
  children: [
447
447
  /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
448
- className: "text-sm text-muted-foreground",
448
+ className: "text-sm text-text-secondary",
449
449
  children: "Payment ID"
450
450
  }), /* @__PURE__ */ g("p", {
451
- className: "font-mono text-sm text-foreground mt-0.5 break-all",
451
+ className: "font-mono text-sm text-text-primary mt-0.5 break-all",
452
452
  children: O.payment.id
453
453
  })] }),
454
454
  /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
455
- className: "text-sm text-muted-foreground",
455
+ className: "text-sm text-text-secondary",
456
456
  children: "Amount"
457
457
  }), /* @__PURE__ */ g("p", {
458
- className: "text-sm text-foreground mt-0.5",
458
+ className: "text-sm text-text-primary mt-0.5",
459
459
  children: n(O.payment.amount, O.payment.currency)
460
460
  })] }),
461
461
  /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
462
- className: "text-sm text-muted-foreground",
462
+ className: "text-sm text-text-secondary",
463
463
  children: "Status"
464
464
  }), /* @__PURE__ */ g("p", {
465
- className: "text-sm text-foreground mt-0.5 capitalize",
465
+ className: "text-sm text-text-primary mt-0.5 capitalize",
466
466
  children: O.payment.status.toLowerCase()
467
467
  })] }),
468
468
  /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
469
- className: "text-sm text-muted-foreground",
469
+ className: "text-sm text-text-secondary",
470
470
  children: "Method"
471
471
  }), /* @__PURE__ */ g("p", {
472
- className: "text-sm text-foreground mt-0.5 capitalize",
472
+ className: "text-sm text-text-primary mt-0.5 capitalize",
473
473
  children: O.payment.method.toLowerCase().replace(/_/g, " ")
474
474
  })] }),
475
475
  O.payment.provider && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
476
- className: "text-sm text-muted-foreground",
476
+ className: "text-sm text-text-secondary",
477
477
  children: "Provider"
478
478
  }), /* @__PURE__ */ g("p", {
479
- className: "text-sm text-foreground mt-0.5 capitalize",
479
+ className: "text-sm text-text-primary mt-0.5 capitalize",
480
480
  children: O.payment.provider
481
481
  })] }),
482
482
  O.payment.paidAt && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
483
- className: "text-sm text-muted-foreground",
483
+ className: "text-sm text-text-secondary",
484
484
  children: "Paid At"
485
485
  }), /* @__PURE__ */ g("p", {
486
- className: "text-sm text-foreground mt-0.5",
486
+ className: "text-sm text-text-primary mt-0.5",
487
487
  children: r(O.payment.paidAt, "short")
488
488
  })] })
489
489
  ]
@@ -495,67 +495,67 @@ var y = () => {
495
495
  className: "space-y-6",
496
496
  children: [
497
497
  /* @__PURE__ */ _("div", {
498
- className: "border border-border rounded-lg bg-card overflow-hidden",
498
+ className: "border border-border-subtle rounded-card bg-bg-surface shadow-elevation-1 overflow-hidden",
499
499
  children: [/* @__PURE__ */ g("div", {
500
- className: "p-6 border-b border-border bg-muted/30",
500
+ className: "p-6 border-b border-border-subtle bg-bg-sunken",
501
501
  children: /* @__PURE__ */ g("h2", {
502
- className: "text-lg font-semibold text-foreground",
502
+ className: "text-lg font-semibold text-text-primary",
503
503
  children: b("billing.invoices.details", "Details")
504
504
  })
505
505
  }), /* @__PURE__ */ _("div", {
506
506
  className: "p-6 space-y-4",
507
507
  children: [
508
508
  /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
509
- className: "text-sm text-muted-foreground",
509
+ className: "text-sm text-text-secondary",
510
510
  children: "Invoice ID"
511
511
  }), /* @__PURE__ */ g("p", {
512
- className: "font-mono text-sm text-foreground mt-0.5 break-all",
512
+ className: "font-mono text-sm text-text-primary mt-0.5 break-all",
513
513
  children: O.id
514
514
  })] }),
515
515
  /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
516
- className: "text-sm text-muted-foreground",
516
+ className: "text-sm text-text-secondary",
517
517
  children: "Invoice Number"
518
518
  }), /* @__PURE__ */ g("p", {
519
- className: "text-sm text-foreground mt-0.5",
519
+ className: "text-sm text-text-primary mt-0.5",
520
520
  children: i(O.invoiceNumber)
521
521
  })] }),
522
522
  O.itemDescription && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
523
- className: "text-sm text-muted-foreground",
523
+ className: "text-sm text-text-secondary",
524
524
  children: "Description"
525
525
  }), /* @__PURE__ */ g("p", {
526
- className: "text-sm text-foreground mt-0.5",
526
+ className: "text-sm text-text-primary mt-0.5",
527
527
  children: O.itemDescription
528
528
  })] }),
529
529
  /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
530
- className: "text-sm text-muted-foreground",
530
+ className: "text-sm text-text-secondary",
531
531
  children: "Status"
532
532
  }), /* @__PURE__ */ g("span", {
533
533
  className: `inline-flex mt-0.5 px-2 py-1 text-xs font-medium rounded ${s(V)}`,
534
534
  children: a(O.status)
535
535
  })] }),
536
536
  /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
537
- className: "text-sm text-muted-foreground",
537
+ className: "text-sm text-text-secondary",
538
538
  children: "Currency"
539
539
  }), /* @__PURE__ */ g("p", {
540
- className: "text-sm text-foreground mt-0.5",
540
+ className: "text-sm text-text-primary mt-0.5",
541
541
  children: O.currency
542
542
  })] }),
543
543
  /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
544
- className: "text-sm text-muted-foreground",
544
+ className: "text-sm text-text-secondary",
545
545
  children: "Total"
546
546
  }), /* @__PURE__ */ g("p", {
547
- className: "text-sm font-semibold text-foreground mt-0.5",
547
+ className: "text-sm font-semibold text-text-primary mt-0.5",
548
548
  children: n(O.total, O.currency)
549
549
  })] }),
550
550
  /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
551
- className: "text-sm text-muted-foreground",
551
+ className: "text-sm text-text-secondary",
552
552
  children: "Amount Paid"
553
553
  }), /* @__PURE__ */ g("p", {
554
554
  className: "text-sm text-status-success-text mt-0.5",
555
555
  children: n(O.amountPaid, O.currency)
556
556
  })] }),
557
557
  G > 0 && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
558
- className: "text-sm text-muted-foreground",
558
+ className: "text-sm text-text-secondary",
559
559
  children: "Amount Due"
560
560
  }), /* @__PURE__ */ g("p", {
561
561
  className: "text-sm font-semibold text-status-warning-text mt-0.5",
@@ -565,62 +565,62 @@ var y = () => {
565
565
  })]
566
566
  }),
567
567
  /* @__PURE__ */ _("div", {
568
- className: "border border-border rounded-lg bg-card overflow-hidden",
568
+ className: "border border-border-subtle rounded-card bg-bg-surface shadow-elevation-1 overflow-hidden",
569
569
  children: [/* @__PURE__ */ g("div", {
570
- className: "p-6 border-b border-border bg-muted/30",
570
+ className: "p-6 border-b border-border-subtle bg-bg-sunken",
571
571
  children: /* @__PURE__ */ g("h2", {
572
- className: "text-lg font-semibold text-foreground",
572
+ className: "text-lg font-semibold text-text-primary",
573
573
  children: b("billing.invoices.dates", "Dates")
574
574
  })
575
575
  }), /* @__PURE__ */ _("div", {
576
576
  className: "p-6 space-y-4",
577
577
  children: [
578
578
  /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
579
- className: "text-sm text-muted-foreground",
579
+ className: "text-sm text-text-secondary",
580
580
  children: "Created"
581
581
  }), /* @__PURE__ */ g("p", {
582
- className: "text-sm text-foreground mt-0.5",
582
+ className: "text-sm text-text-primary mt-0.5",
583
583
  children: r(O.createdAt)
584
584
  })] }),
585
585
  O.dueDate && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
586
- className: "text-sm text-muted-foreground",
586
+ className: "text-sm text-text-secondary",
587
587
  children: "Due Date"
588
588
  }), /* @__PURE__ */ g("p", {
589
- className: "text-sm text-foreground mt-0.5",
589
+ className: "text-sm text-text-primary mt-0.5",
590
590
  children: r(O.dueDate)
591
591
  })] }),
592
592
  O.paidAt && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
593
- className: "text-sm text-muted-foreground",
593
+ className: "text-sm text-text-secondary",
594
594
  children: "Paid At"
595
595
  }), /* @__PURE__ */ g("p", {
596
- className: "text-sm text-foreground mt-0.5",
596
+ className: "text-sm text-text-primary mt-0.5",
597
597
  children: r(O.paidAt)
598
598
  })] }),
599
599
  /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
600
- className: "text-sm text-muted-foreground",
600
+ className: "text-sm text-text-secondary",
601
601
  children: "Last Updated"
602
602
  }), /* @__PURE__ */ g("p", {
603
- className: "text-sm text-foreground mt-0.5",
603
+ className: "text-sm text-text-primary mt-0.5",
604
604
  children: r(O.updatedAt)
605
605
  })] })
606
606
  ]
607
607
  })]
608
608
  }),
609
609
  /* @__PURE__ */ _("div", {
610
- className: "border border-border rounded-lg bg-card overflow-hidden",
610
+ className: "border border-border-subtle rounded-card bg-bg-surface shadow-elevation-1 overflow-hidden",
611
611
  children: [/* @__PURE__ */ g("div", {
612
- className: "p-6 border-b border-border bg-muted/30",
612
+ className: "p-6 border-b border-border-subtle bg-bg-sunken",
613
613
  children: /* @__PURE__ */ g("h2", {
614
- className: "text-lg font-semibold text-foreground",
614
+ className: "text-lg font-semibold text-text-primary",
615
615
  children: b("billing.invoices.organization", "Organization")
616
616
  })
617
617
  }), /* @__PURE__ */ g("div", {
618
618
  className: "p-6 space-y-4",
619
619
  children: /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
620
- className: "text-sm text-muted-foreground",
620
+ className: "text-sm text-text-secondary",
621
621
  children: "Organization ID"
622
622
  }), /* @__PURE__ */ g("p", {
623
- className: "font-mono text-sm text-foreground mt-0.5 break-all",
623
+ className: "font-mono text-sm text-text-primary mt-0.5 break-all",
624
624
  children: O.orgId
625
625
  })] })
626
626
  })]