@burdenoff/microfe-billing 2026.526.1 → 2026.528.1

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 (145) hide show
  1. package/dist/billing/BillingAdminRoutes.js +1 -1
  2. package/dist/billing/BillingAdminRoutes.js.map +1 -1
  3. package/dist/billing/BillingUserRoutes.js +1 -1
  4. package/dist/billing/BillingUserRoutes.js.map +1 -1
  5. package/dist/billing/modules/addons/components/FloatingCartDrawer.js +15 -8
  6. package/dist/billing/modules/addons/components/FloatingCartDrawer.js.map +1 -1
  7. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js +13 -6
  8. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js.map +1 -1
  9. package/dist/billing/modules/addons/pages/AddonCreatePage.js +1 -1
  10. package/dist/billing/modules/addons/pages/AddonCreatePage.js.map +1 -1
  11. package/dist/billing/modules/addons/pages/AddonDetailPage.js +8 -4
  12. package/dist/billing/modules/addons/pages/AddonDetailPage.js.map +1 -1
  13. package/dist/billing/modules/addons/pages/AddonEditPage.js +3 -2
  14. package/dist/billing/modules/addons/pages/AddonEditPage.js.map +1 -1
  15. package/dist/billing/modules/addons/pages/AddonsBrowsePage.js +44 -23
  16. package/dist/billing/modules/addons/pages/AddonsBrowsePage.js.map +1 -1
  17. package/dist/billing/modules/addons/pages/AddonsListPage.js +60 -31
  18. package/dist/billing/modules/addons/pages/AddonsListPage.js.map +1 -1
  19. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js +9 -9
  20. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js.map +1 -1
  21. package/dist/billing/modules/analytics/pages/AnalyticsPage.js +8 -8
  22. package/dist/billing/modules/analytics/pages/AnalyticsPage.js.map +1 -1
  23. package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +16 -10
  24. package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
  25. package/dist/billing/modules/billing/pages/InvoicesListPage.js +24 -16
  26. package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
  27. package/dist/billing/modules/billing/pages/PaymentMethodsPage.js +5 -1
  28. package/dist/billing/modules/billing/pages/PaymentMethodsPage.js.map +1 -1
  29. package/dist/billing/modules/billing/pages/RefundsPage.js +46 -29
  30. package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
  31. package/dist/billing/modules/billing/pages/TransactionsPage.js +34 -22
  32. package/dist/billing/modules/billing/pages/TransactionsPage.js.map +1 -1
  33. package/dist/billing/modules/checkout/components/BillingAccountSelector.js +10 -10
  34. package/dist/billing/modules/checkout/components/BillingAccountSelector.js.map +1 -1
  35. package/dist/billing/modules/checkout/components/CreditsAmountInput.js +3 -3
  36. package/dist/billing/modules/checkout/components/CreditsAmountInput.js.map +1 -1
  37. package/dist/billing/modules/checkout/components/NativeCheckoutView.js +7 -0
  38. package/dist/billing/modules/checkout/components/NativeCheckoutView.js.map +1 -1
  39. package/dist/billing/modules/checkout/components/OrderSummary.js +13 -13
  40. package/dist/billing/modules/checkout/components/OrderSummary.js.map +1 -1
  41. package/dist/billing/modules/checkout/components/PromoCodeInput.js +5 -5
  42. package/dist/billing/modules/checkout/components/PromoCodeInput.js.map +1 -1
  43. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js +5 -5
  44. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js.map +1 -1
  45. package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js +4 -4
  46. package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js.map +1 -1
  47. package/dist/billing/modules/checkout/components/StripePaymentForm.js +11 -11
  48. package/dist/billing/modules/checkout/components/StripePaymentForm.js.map +1 -1
  49. package/dist/billing/modules/checkout/components/SubscriptionSelector.js +3 -3
  50. package/dist/billing/modules/checkout/components/SubscriptionSelector.js.map +1 -1
  51. package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js +8 -8
  52. package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js.map +1 -1
  53. package/dist/billing/modules/checkout/pages/CheckoutPage.js +61 -52
  54. package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -1
  55. package/dist/billing/modules/coupons/pages/CouponDetailPage.js +22 -15
  56. package/dist/billing/modules/coupons/pages/CouponDetailPage.js.map +1 -1
  57. package/dist/billing/modules/coupons/pages/CouponsListPage.js +30 -21
  58. package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
  59. package/dist/billing/modules/coupons/pages/CreateCouponPage.js +9 -8
  60. package/dist/billing/modules/coupons/pages/CreateCouponPage.js.map +1 -1
  61. package/dist/billing/modules/coupons/pages/EditCouponPage.js +11 -8
  62. package/dist/billing/modules/coupons/pages/EditCouponPage.js.map +1 -1
  63. package/dist/billing/modules/credits/pages/AdminCreditsPage.js +1 -1
  64. package/dist/billing/modules/credits/pages/AdminCreditsPage.js.map +1 -1
  65. package/dist/billing/modules/credits/pages/CreditTransactionsPage.js +22 -17
  66. package/dist/billing/modules/credits/pages/CreditTransactionsPage.js.map +1 -1
  67. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +15 -8
  68. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
  69. package/dist/billing/modules/credits/pages/CreditsPage.js +17 -11
  70. package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -1
  71. package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js +15 -11
  72. package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js.map +1 -1
  73. package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js +21 -17
  74. package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js.map +1 -1
  75. package/dist/billing/modules/dashboard/components/BillingAccountCard.js +14 -11
  76. package/dist/billing/modules/dashboard/components/BillingAccountCard.js.map +1 -1
  77. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js +32 -26
  78. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js.map +1 -1
  79. package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js +14 -10
  80. package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js.map +1 -1
  81. package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js +18 -11
  82. package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js.map +1 -1
  83. package/dist/billing/modules/dashboard/pages/OverviewPage.js +44 -32
  84. package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
  85. package/dist/billing/modules/discounts/pages/DiscountsListPage.js +35 -26
  86. package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
  87. package/dist/billing/modules/earnings/pages/EarningsPage.js +15 -15
  88. package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
  89. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +11 -11
  90. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
  91. package/dist/billing/modules/earnings/pages/PayoutsPage.js +5 -5
  92. package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
  93. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +9 -4
  94. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js.map +1 -1
  95. package/dist/billing/modules/plans/pages/PlanCreatePage.js +1 -1
  96. package/dist/billing/modules/plans/pages/PlanCreatePage.js.map +1 -1
  97. package/dist/billing/modules/plans/pages/PlanDetailPage.js +13 -8
  98. package/dist/billing/modules/plans/pages/PlanDetailPage.js.map +1 -1
  99. package/dist/billing/modules/plans/pages/PlanEditPage.js +3 -2
  100. package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
  101. package/dist/billing/modules/plans/pages/PlansBrowsePage.js +14 -7
  102. package/dist/billing/modules/plans/pages/PlansBrowsePage.js.map +1 -1
  103. package/dist/billing/modules/plans/pages/PlansListPage.js +23 -9
  104. package/dist/billing/modules/plans/pages/PlansListPage.js.map +1 -1
  105. package/dist/billing/modules/quota/pages/QuotaPage.js +11 -7
  106. package/dist/billing/modules/quota/pages/QuotaPage.js.map +1 -1
  107. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +3 -3
  108. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js.map +1 -1
  109. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +6 -2
  110. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js.map +1 -1
  111. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +5 -4
  112. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js.map +1 -1
  113. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +26 -12
  114. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js.map +1 -1
  115. package/dist/billing/modules/settings/pages/SettingsPage.js +356 -349
  116. package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
  117. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +157 -123
  118. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
  119. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +13 -8
  120. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js.map +1 -1
  121. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +15 -7
  122. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
  123. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +30 -20
  124. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js.map +1 -1
  125. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +25 -16
  126. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
  127. package/dist/billing/modules/usage/pages/UsagePage.js +50 -34
  128. package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
  129. package/dist/billing/shared/components/AccessDenied.js +2 -2
  130. package/dist/billing/shared/components/AccessDenied.js.map +1 -1
  131. package/dist/billing/shared/components/ActorIdentity.js +67 -0
  132. package/dist/billing/shared/components/ActorIdentity.js.map +1 -0
  133. package/dist/billing/shared/components/CurrencyPriceOverridesEditor.js +6 -2
  134. package/dist/billing/shared/components/CurrencyPriceOverridesEditor.js.map +1 -1
  135. package/dist/billing/shared/components/EmptyState.js +7 -21
  136. package/dist/billing/shared/components/EmptyState.js.map +1 -1
  137. package/dist/billing/shared/components/PageHeader.js +7 -19
  138. package/dist/billing/shared/components/PageHeader.js.map +1 -1
  139. package/dist/billing/shared/components/ServerError.js +5 -4
  140. package/dist/billing/shared/components/ServerError.js.map +1 -1
  141. package/dist/billing/shared/components/index.js +1 -0
  142. package/dist/billing/shared/hooks/index.js +1 -0
  143. package/dist/billing/shared/hooks/useActorProfiles.js +113 -0
  144. package/dist/billing/shared/hooks/useActorProfiles.js.map +1 -0
  145. package/package.json +2 -2
@@ -8,7 +8,7 @@ import { AlertCircle as p, AlertTriangle as m, CheckCircle as h, ChevronDown as
8
8
  import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
9
9
  import { useI18n as te } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
10
10
  //#region src/billing/modules/usage/pages/UsagePage.tsx
11
- var A = ({ status: e, className: n = "w-4 h-4" }) => {
11
+ var A = ({ status: e, className: n = "size-4" }) => {
12
12
  switch (e) {
13
13
  case "EXHAUSTED": return /* @__PURE__ */ O(E, { className: `${n} ${t.error.icon}` });
14
14
  case "CRITICAL": return /* @__PURE__ */ O(m, { className: `${n} ${t.error.icon}` });
@@ -67,6 +67,7 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
67
67
  gray: t.neutral.icon
68
68
  };
69
69
  return /* @__PURE__ */ k("button", {
70
+ type: "button",
70
71
  onClick: o,
71
72
  className: `border rounded-lg p-4 w-full text-left transition-all ${c[i]} ${o ? "cursor-pointer hover:shadow-md" : ""} ${a ? l[i] : ""}`,
72
73
  children: [/* @__PURE__ */ k("div", {
@@ -189,11 +190,12 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
189
190
  className: "border border-border rounded-lg bg-card overflow-hidden",
190
191
  children: [
191
192
  /* @__PURE__ */ k("button", {
193
+ type: "button",
192
194
  onClick: () => a(!i),
193
195
  className: "w-full flex items-center justify-between p-4 hover:bg-muted/50 transition-colors",
194
196
  children: [/* @__PURE__ */ k("div", {
195
197
  className: "flex items-center gap-3",
196
- children: [/* @__PURE__ */ O(S, { className: "w-5 h-5 text-primary" }), /* @__PURE__ */ k("div", {
198
+ children: [/* @__PURE__ */ O(S, { className: "size-5 text-primary" }), /* @__PURE__ */ k("div", {
197
199
  className: "text-left",
198
200
  children: [/* @__PURE__ */ k("div", {
199
201
  className: "flex items-center gap-2",
@@ -213,7 +215,7 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
213
215
  ]
214
216
  })]
215
217
  })]
216
- }), O(i ? g : v, { className: "w-5 h-5 text-muted-foreground" })]
218
+ }), O(i ? g : v, { className: "size-5 text-muted-foreground" })]
217
219
  }),
218
220
  i && e.aggregatedQuotas.length > 0 && /* @__PURE__ */ O("div", {
219
221
  className: "border-t border-border",
@@ -256,7 +258,7 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
256
258
  className: "flex items-center gap-3",
257
259
  children: [/* @__PURE__ */ O(A, {
258
260
  status: a.status,
259
- className: "w-5 h-5"
261
+ className: "size-5"
260
262
  }), /* @__PURE__ */ k("div", { children: [
261
263
  /* @__PURE__ */ O("h2", {
262
264
  id: "quota-detail-title",
@@ -281,10 +283,11 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
281
283
  })
282
284
  ] })]
283
285
  }), /* @__PURE__ */ O("button", {
286
+ type: "button",
284
287
  onClick: o,
285
288
  className: "p-1 rounded-md hover:bg-muted/50 transition-colors",
286
289
  "aria-label": "Close quota details",
287
- children: /* @__PURE__ */ O(T, { className: "w-5 h-5" })
290
+ children: /* @__PURE__ */ O(T, { className: "size-5" })
288
291
  })]
289
292
  }),
290
293
  /* @__PURE__ */ k("div", {
@@ -333,7 +336,7 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
333
336
  className: `flex items-center justify-between px-3 py-2.5 ${a ? "bg-muted/30" : s ? t.warning.bg : "bg-background"}`,
334
337
  children: [/* @__PURE__ */ k("div", {
335
338
  className: "flex items-center gap-2",
336
- children: [s && !a && /* @__PURE__ */ O("span", { className: `w-2 h-2 rounded-full ${t.warning.dot} animate-pulse` }), /* @__PURE__ */ k("div", {
339
+ children: [s && !a && /* @__PURE__ */ O("span", { className: `size-2 rounded-full ${t.warning.dot} animate-pulse` }), /* @__PURE__ */ k("div", {
337
340
  className: "flex flex-col",
338
341
  children: [/* @__PURE__ */ O("span", {
339
342
  className: `text-sm ${a ? "text-muted-foreground" : "text-foreground"}`,
@@ -411,7 +414,7 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
411
414
  }),
412
415
  a.isCollectorBased ? /* @__PURE__ */ O("p", {
413
416
  className: "text-sm text-muted-foreground text-center py-6",
414
- children: "Usage is tracked via system metrics individual event records are not available for this quota."
417
+ children: "Usage is tracked via system metrics, individual event records are not available for this quota."
415
418
  }) : b ? /* @__PURE__ */ O("div", {
416
419
  className: "space-y-2",
417
420
  children: [
@@ -449,22 +452,24 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
449
452
  className: "flex items-center justify-center gap-2 mt-4",
450
453
  children: [
451
454
  /* @__PURE__ */ O("button", {
455
+ type: "button",
452
456
  onClick: w,
453
457
  disabled: s.length === 1,
454
458
  className: "px-3 py-1.5 text-sm border border-border rounded-md disabled:opacity-50",
455
459
  "aria-label": "Previous usage page",
456
- children: /* @__PURE__ */ O(_, { className: "w-4 h-4" })
460
+ children: /* @__PURE__ */ O(_, { className: "size-4" })
457
461
  }),
458
462
  /* @__PURE__ */ k("span", {
459
463
  className: "text-sm text-muted-foreground",
460
464
  children: ["Page ", d]
461
465
  }),
462
466
  /* @__PURE__ */ O("button", {
467
+ type: "button",
463
468
  onClick: C,
464
469
  disabled: !g,
465
470
  className: "px-3 py-1.5 text-sm border border-border rounded-md disabled:opacity-50",
466
471
  "aria-label": "Next usage page",
467
- children: /* @__PURE__ */ O(v, { className: "w-4 h-4" })
472
+ children: /* @__PURE__ */ O(v, { className: "size-4" })
468
473
  })
469
474
  ]
470
475
  })
@@ -473,6 +478,7 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
473
478
  /* @__PURE__ */ O("div", {
474
479
  className: "sticky bottom-0 bg-background border-t border-border p-4",
475
480
  children: /* @__PURE__ */ O("button", {
481
+ type: "button",
476
482
  onClick: o,
477
483
  className: "w-full py-2 px-4 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",
478
484
  children: "Close"
@@ -530,8 +536,8 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
530
536
  className: "text-center space-y-2",
531
537
  children: [
532
538
  /* @__PURE__ */ O("div", {
533
- className: "w-12 h-12 mx-auto rounded-full bg-muted flex items-center justify-center",
534
- children: /* @__PURE__ */ O(m, { className: "w-6 h-6 text-muted-foreground" })
539
+ className: "size-12 mx-auto rounded-full bg-muted flex items-center justify-center",
540
+ children: /* @__PURE__ */ O(m, { className: "size-6 text-muted-foreground" })
535
541
  }),
536
542
  /* @__PURE__ */ O("h2", {
537
543
  className: "text-lg font-semibold text-foreground",
@@ -566,8 +572,8 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
566
572
  className: "text-center space-y-4",
567
573
  children: [
568
574
  /* @__PURE__ */ O("div", {
569
- className: "w-12 h-12 mx-auto rounded-full bg-destructive/10 flex items-center justify-center",
570
- children: /* @__PURE__ */ O(m, { className: "w-6 h-6 text-destructive" })
575
+ className: "size-12 mx-auto rounded-full bg-destructive/10 flex items-center justify-center",
576
+ children: /* @__PURE__ */ O(m, { className: "size-6 text-destructive" })
571
577
  }),
572
578
  /* @__PURE__ */ O("h2", {
573
579
  className: "text-lg font-semibold text-foreground",
@@ -578,6 +584,7 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
578
584
  children: U.message
579
585
  }),
580
586
  /* @__PURE__ */ O("button", {
587
+ type: "button",
581
588
  onClick: () => W(),
582
589
  className: "px-4 py-2 text-sm font-medium bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",
583
590
  children: "Try Again"
@@ -608,10 +615,11 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
608
615
  children: e.name
609
616
  }, e.id))
610
617
  }), /* @__PURE__ */ O("button", {
618
+ type: "button",
611
619
  onClick: () => W(),
612
620
  className: "p-2 border border-border rounded-md hover:bg-muted/50 transition-colors",
613
621
  title: "Refresh",
614
- children: /* @__PURE__ */ O(C, { className: "w-4 h-4" })
622
+ children: /* @__PURE__ */ O(C, { className: "size-4" })
615
623
  })]
616
624
  })]
617
625
  }),
@@ -621,7 +629,7 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
621
629
  /* @__PURE__ */ k("div", {
622
630
  className: "relative flex-1 max-w-md",
623
631
  children: [
624
- /* @__PURE__ */ O(w, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground" }),
632
+ /* @__PURE__ */ O(w, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted-foreground" }),
625
633
  /* @__PURE__ */ O("input", {
626
634
  type: "text",
627
635
  value: b,
@@ -630,29 +638,33 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
630
638
  className: "w-full pl-9 pr-3 py-2 text-sm border border-border rounded-md bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary"
631
639
  }),
632
640
  (b || fe) && /* @__PURE__ */ O("button", {
641
+ type: "button",
633
642
  onClick: () => E(""),
634
643
  className: "absolute right-2 top-1/2 -translate-y-1/2 p-1 rounded hover:bg-muted/50",
635
- children: fe ? /* @__PURE__ */ O(C, { className: "w-3 h-3 text-muted-foreground animate-spin" }) : /* @__PURE__ */ O(T, { className: "w-3 h-3 text-muted-foreground" })
644
+ children: fe ? /* @__PURE__ */ O(C, { className: "size-3 text-muted-foreground animate-spin" }) : /* @__PURE__ */ O(T, { className: "size-3 text-muted-foreground" })
636
645
  })
637
646
  ]
638
647
  }),
639
648
  /* @__PURE__ */ k("div", {
640
649
  className: "flex items-center bg-muted/50 rounded-lg p-1 border border-border",
641
650
  children: [/* @__PURE__ */ k("button", {
651
+ type: "button",
642
652
  onClick: () => F("active"),
643
653
  className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-md transition-all ${P === "active" ? "bg-background text-foreground shadow-sm font-medium" : "text-muted-foreground hover:text-foreground"}`,
644
- children: [/* @__PURE__ */ O(S, { className: "w-3.5 h-3.5" }), "Active"]
654
+ children: [/* @__PURE__ */ O(S, { className: "size-3.5" }), "Active"]
645
655
  }), /* @__PURE__ */ k("button", {
656
+ type: "button",
646
657
  onClick: () => F("past"),
647
658
  disabled: H && P !== "past",
648
659
  className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-md transition-all ${P === "past" ? "bg-background text-foreground shadow-sm font-medium" : "text-muted-foreground hover:text-foreground"} ${H && P !== "past" ? "opacity-70" : ""}`,
649
- children: [H && P === "past" ? /* @__PURE__ */ O(C, { className: "w-3.5 h-3.5 animate-spin" }) : /* @__PURE__ */ O(y, { className: "w-3.5 h-3.5" }), "Past"]
660
+ children: [H && P === "past" ? /* @__PURE__ */ O(C, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ O(y, { className: "size-3.5" }), "Past"]
650
661
  })]
651
662
  }),
652
663
  Q && /* @__PURE__ */ k("button", {
664
+ type: "button",
653
665
  onClick: pe,
654
666
  className: "flex items-center gap-1.5 px-3 py-1.5 text-sm text-muted-foreground hover:text-foreground border border-border rounded-md hover:bg-muted/50 transition-colors",
655
- children: [/* @__PURE__ */ O(T, { className: "w-3 h-3" }), "Clear filters"]
667
+ children: [/* @__PURE__ */ O(T, { className: "size-3" }), "Clear filters"]
656
668
  })
657
669
  ]
658
670
  }),
@@ -673,7 +685,7 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
673
685
  /* @__PURE__ */ O(N, {
674
686
  label: "Total Quotas",
675
687
  value: R.totalQuotas,
676
- icon: /* @__PURE__ */ O(x, { className: "w-5 h-5" }),
688
+ icon: /* @__PURE__ */ O(x, { className: "size-5" }),
677
689
  color: "blue",
678
690
  isActive: j === "all",
679
691
  onClick: () => M("all")
@@ -681,7 +693,7 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
681
693
  /* @__PURE__ */ O(N, {
682
694
  label: "Healthy",
683
695
  value: R.healthyQuotas,
684
- icon: /* @__PURE__ */ O(h, { className: "w-5 h-5" }),
696
+ icon: /* @__PURE__ */ O(h, { className: "size-5" }),
685
697
  color: "emerald",
686
698
  isActive: j === "healthy",
687
699
  onClick: () => $("healthy")
@@ -689,7 +701,7 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
689
701
  /* @__PURE__ */ O(N, {
690
702
  label: "Warning",
691
703
  value: R.warningQuotas,
692
- icon: /* @__PURE__ */ O(p, { className: "w-5 h-5" }),
704
+ icon: /* @__PURE__ */ O(p, { className: "size-5" }),
693
705
  color: "amber",
694
706
  isActive: j === "warning",
695
707
  onClick: () => $("warning")
@@ -697,7 +709,7 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
697
709
  /* @__PURE__ */ O(N, {
698
710
  label: "Critical / Exhausted",
699
711
  value: R.criticalQuotas + R.exhaustedQuotas,
700
- icon: /* @__PURE__ */ O(m, { className: "w-5 h-5" }),
712
+ icon: /* @__PURE__ */ O(m, { className: "size-5" }),
701
713
  color: "red",
702
714
  isActive: j === "critical",
703
715
  onClick: () => $("critical")
@@ -734,7 +746,7 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
734
746
  }),
735
747
  Z.active.length > 0 && /* @__PURE__ */ k("section", { children: [/* @__PURE__ */ k("h2", {
736
748
  className: "text-lg font-semibold text-foreground mb-4 flex items-center gap-2",
737
- children: [/* @__PURE__ */ O(S, { className: "w-5 h-5 text-primary" }), P === "all" ? "Active Subscription Quotas" : "Subscription Quotas"]
749
+ children: [/* @__PURE__ */ O(S, { className: "size-5 text-primary" }), P === "all" ? "Active Subscription Quotas" : "Subscription Quotas"]
738
750
  }), /* @__PURE__ */ O("div", {
739
751
  className: "space-y-4",
740
752
  children: Z.active.map((e) => /* @__PURE__ */ O(re, {
@@ -746,7 +758,7 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
746
758
  Z.past.length > 0 && /* @__PURE__ */ k("section", { children: [/* @__PURE__ */ k("h2", {
747
759
  className: "text-lg font-semibold text-foreground mb-4 flex items-center gap-2",
748
760
  children: [
749
- /* @__PURE__ */ O(y, { className: "w-5 h-5 text-muted-foreground" }),
761
+ /* @__PURE__ */ O(y, { className: "size-5 text-muted-foreground" }),
750
762
  "Past Subscription Quotas",
751
763
  /* @__PURE__ */ O("span", {
752
764
  className: "text-xs font-normal text-muted-foreground",
@@ -771,17 +783,18 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
771
783
  }, e.id)), G && /* @__PURE__ */ O("div", {
772
784
  className: "flex justify-center pt-2",
773
785
  children: /* @__PURE__ */ O("button", {
786
+ type: "button",
774
787
  onClick: ue,
775
788
  disabled: de,
776
789
  className: "flex items-center gap-2 px-4 py-2 text-sm font-medium text-muted-foreground hover:text-foreground border border-border rounded-md hover:bg-muted/50 transition-colors disabled:opacity-50",
777
- children: de ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(C, { className: "w-4 h-4 animate-spin" }), "Loading..."] }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(g, { className: "w-4 h-4" }), "Load more past subscriptions"] })
790
+ children: de ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(C, { className: "size-4 animate-spin" }), "Loading"] }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(g, { className: "size-4" }), "Load more past subscriptions"] })
778
791
  })
779
792
  })]
780
793
  })] }),
781
794
  P !== "past" && J.length > 0 && /* @__PURE__ */ k("section", { children: [/* @__PURE__ */ k("h2", {
782
795
  className: "text-lg font-semibold text-foreground mb-4 flex items-center gap-2",
783
796
  children: [
784
- /* @__PURE__ */ O(x, { className: `w-5 h-5 ${t.info.icon}` }),
797
+ /* @__PURE__ */ O(x, { className: `size-5 ${t.info.icon}` }),
785
798
  "Pooled Quotas",
786
799
  /* @__PURE__ */ O("span", {
787
800
  className: "text-xs font-normal text-muted-foreground",
@@ -797,8 +810,8 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
797
810
  className: "flex flex-col items-center justify-center py-12 border border-dashed border-border rounded-lg",
798
811
  children: [
799
812
  /* @__PURE__ */ O("div", {
800
- className: "w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-4",
801
- children: /* @__PURE__ */ O(x, { className: "w-6 h-6 text-muted-foreground" })
813
+ className: "size-12 rounded-full bg-muted flex items-center justify-center mb-4",
814
+ children: /* @__PURE__ */ O(x, { className: "size-6 text-muted-foreground" })
802
815
  }),
803
816
  /* @__PURE__ */ O("h3", {
804
817
  className: "text-lg font-medium text-foreground",
@@ -814,8 +827,8 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
814
827
  className: "flex flex-col items-center justify-center py-12 border border-dashed border-border rounded-lg",
815
828
  children: [
816
829
  /* @__PURE__ */ O("div", {
817
- className: "w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-4",
818
- children: /* @__PURE__ */ O(y, { className: "w-6 h-6 text-muted-foreground" })
830
+ className: "size-12 rounded-full bg-muted flex items-center justify-center mb-4",
831
+ children: /* @__PURE__ */ O(y, { className: "size-6 text-muted-foreground" })
819
832
  }),
820
833
  /* @__PURE__ */ O("h3", {
821
834
  className: "text-lg font-medium text-foreground",
@@ -826,6 +839,7 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
826
839
  children: "You don't have any canceled, expired, or upgraded subscriptions yet."
827
840
  }),
828
841
  /* @__PURE__ */ O("button", {
842
+ type: "button",
829
843
  onClick: () => F("active"),
830
844
  className: "mt-4 px-4 py-2 text-sm font-medium bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",
831
845
  children: "View active subscriptions"
@@ -844,11 +858,11 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
844
858
  className: "flex flex-col items-center justify-center py-12 border border-dashed border-border rounded-lg",
845
859
  children: [
846
860
  /* @__PURE__ */ O("div", {
847
- className: "w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-4",
861
+ className: "size-12 rounded-full bg-muted flex items-center justify-center mb-4",
848
862
  children: j !== "all" && !b ? /* @__PURE__ */ O(A, {
849
863
  status: j === "healthy" ? "HEALTHY" : j === "warning" ? "WARNING" : "CRITICAL",
850
- className: "w-6 h-6"
851
- }) : /* @__PURE__ */ O(w, { className: "w-6 h-6 text-muted-foreground" })
864
+ className: "size-6"
865
+ }) : /* @__PURE__ */ O(w, { className: "size-6 text-muted-foreground" })
852
866
  }),
853
867
  /* @__PURE__ */ O("h3", {
854
868
  className: "text-lg font-medium text-foreground",
@@ -882,10 +896,12 @@ var A = ({ status: e, className: n = "w-4 h-4" }) => {
882
896
  /* @__PURE__ */ k("div", {
883
897
  className: "flex gap-2 mt-4",
884
898
  children: [/* @__PURE__ */ O("button", {
899
+ type: "button",
885
900
  onClick: pe,
886
901
  className: "px-4 py-2 text-sm font-medium border border-border rounded-md hover:bg-muted/50 transition-colors",
887
902
  children: j === "all" ? "Clear filters" : "Show all quotas"
888
903
  }), P === "active" && b && /* @__PURE__ */ O("button", {
904
+ type: "button",
889
905
  onClick: () => F("all"),
890
906
  className: "px-4 py-2 text-sm font-medium bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",
891
907
  children: "Search all"