@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
@@ -70,41 +70,46 @@ var L = {
70
70
  className: "relative",
71
71
  ref: l,
72
72
  children: [/* @__PURE__ */ P("button", {
73
+ type: "button",
73
74
  onClick: () => c(!s),
74
75
  disabled: o,
75
76
  className: "p-1.5 rounded-md hover:bg-muted/50 transition-colors disabled:opacity-50",
76
77
  "aria-label": "Refund actions",
77
- children: o ? /* @__PURE__ */ P(T, { className: "w-4 h-4 animate-spin text-muted-foreground" }) : /* @__PURE__ */ P(E, { className: "w-4 h-4 text-muted-foreground" })
78
+ children: o ? /* @__PURE__ */ P(T, { className: "size-4 animate-spin text-muted-foreground" }) : /* @__PURE__ */ P(E, { className: "size-4 text-muted-foreground" })
78
79
  }), s && /* @__PURE__ */ F("div", {
79
80
  className: "absolute right-0 top-full mt-1 z-50 min-w-[160px] bg-popover border border-border rounded-md shadow-lg py-1",
80
81
  children: [
81
82
  /* @__PURE__ */ F("button", {
83
+ type: "button",
82
84
  onClick: () => {
83
85
  t(), c(!1);
84
86
  },
85
87
  className: "w-full flex items-center gap-2 px-3 py-2 text-sm text-foreground hover:bg-muted/50 transition-colors",
86
- children: [/* @__PURE__ */ P(C, { className: "w-4 h-4" }), "View Details"]
88
+ children: [/* @__PURE__ */ P(C, { className: "size-4" }), "View Details"]
87
89
  }),
88
90
  u && /* @__PURE__ */ F("button", {
91
+ type: "button",
89
92
  onClick: () => {
90
93
  r(), c(!1);
91
94
  },
92
95
  className: `w-full flex items-center gap-2 px-3 py-2 text-sm ${n.success.text} hover:bg-muted/50 transition-colors`,
93
- children: [/* @__PURE__ */ P(ee, { className: "w-4 h-4" }), "Process Refund"]
96
+ children: [/* @__PURE__ */ P(ee, { className: "size-4" }), "Process Refund"]
94
97
  }),
95
98
  d && /* @__PURE__ */ F("button", {
99
+ type: "button",
96
100
  onClick: () => {
97
101
  i(), c(!1);
98
102
  },
99
103
  className: `w-full flex items-center gap-2 px-3 py-2 text-sm ${n.warning.text} hover:bg-muted/50 transition-colors`,
100
- children: [/* @__PURE__ */ P(A, { className: "w-4 h-4" }), "Skip Refund"]
104
+ children: [/* @__PURE__ */ P(A, { className: "size-4" }), "Skip Refund"]
101
105
  }),
102
106
  p && /* @__PURE__ */ F("button", {
107
+ type: "button",
103
108
  onClick: () => {
104
109
  a(), c(!1);
105
110
  },
106
111
  className: `w-full flex items-center gap-2 px-3 py-2 text-sm ${n.info.text} hover:bg-muted/50 transition-colors`,
107
- children: [/* @__PURE__ */ P(O, { className: "w-4 h-4" }), "Retry Refund"]
112
+ children: [/* @__PURE__ */ P(O, { className: "size-4" }), "Retry Refund"]
108
113
  })
109
114
  ]
110
115
  })]
@@ -182,9 +187,10 @@ var L = {
182
187
  className: "text-lg font-semibold",
183
188
  children: "Create Manual Refund"
184
189
  }), /* @__PURE__ */ P("button", {
190
+ type: "button",
185
191
  onClick: x,
186
192
  className: "p-1 rounded-md hover:bg-muted/50 transition-colors",
187
- children: /* @__PURE__ */ P(j, { className: "w-5 h-5" })
193
+ children: /* @__PURE__ */ P(j, { className: "size-5" })
188
194
  })]
189
195
  }), /* @__PURE__ */ F("form", {
190
196
  onSubmit: C,
@@ -212,7 +218,7 @@ var L = {
212
218
  onClick: () => S(o),
213
219
  disabled: !o.trim() || m,
214
220
  className: "px-3 py-2 border border-border rounded-md hover:bg-muted/50 transition-colors disabled:opacity-50 flex items-center gap-1 text-sm",
215
- children: m ? /* @__PURE__ */ P(T, { className: "w-4 h-4 animate-spin" }) : /* @__PURE__ */ P(k, { className: "w-4 h-4" })
221
+ children: m ? /* @__PURE__ */ P(T, { className: "size-4 animate-spin" }) : /* @__PURE__ */ P(k, { className: "size-4" })
216
222
  })]
217
223
  }),
218
224
  f && /* @__PURE__ */ P("p", {
@@ -221,7 +227,7 @@ var L = {
221
227
  }),
222
228
  m && /* @__PURE__ */ P("p", {
223
229
  className: "text-xs text-muted-foreground mt-1",
224
- children: "Looking up transaction..."
230
+ children: "Looking up transaction"
225
231
  })
226
232
  ] }),
227
233
  c && /* @__PURE__ */ F(N, { children: [
@@ -229,7 +235,7 @@ var L = {
229
235
  className: "p-3 bg-status-success-bg-subtle border border-border-subtle rounded-md text-sm space-y-1",
230
236
  children: [/* @__PURE__ */ F("div", {
231
237
  className: "flex items-center gap-2 text-status-success-text font-medium",
232
- children: [/* @__PURE__ */ P(v, { className: "w-4 h-4" }), "Transaction found"]
238
+ children: [/* @__PURE__ */ P(v, { className: "size-4" }), "Transaction found"]
233
239
  }), /* @__PURE__ */ F("div", {
234
240
  className: "text-muted-foreground grid grid-cols-2 gap-x-4 gap-y-0.5 mt-1",
235
241
  children: [
@@ -375,7 +381,7 @@ var L = {
375
381
  type: "submit",
376
382
  disabled: r || !c || !_.gatewayPaymentId || _.amount <= 0 || E,
377
383
  className: "flex-1 py-2 px-4 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",
378
- children: [r && /* @__PURE__ */ P(T, { className: "w-4 h-4 animate-spin" }), "Create Refund"]
384
+ children: [r && /* @__PURE__ */ P(T, { className: "size-4 animate-spin" }), "Create Refund"]
379
385
  })]
380
386
  })
381
387
  ]
@@ -397,9 +403,10 @@ var L = {
397
403
  className: "text-lg font-semibold",
398
404
  children: "Skip Refund"
399
405
  }), /* @__PURE__ */ P("button", {
406
+ type: "button",
400
407
  onClick: r,
401
408
  className: "p-1 rounded-md hover:bg-muted/50 transition-colors",
402
- children: /* @__PURE__ */ P(j, { className: "w-5 h-5" })
409
+ children: /* @__PURE__ */ P(j, { className: "size-5" })
403
410
  })]
404
411
  }), /* @__PURE__ */ F("form", {
405
412
  onSubmit: async (e) => {
@@ -411,7 +418,7 @@ var L = {
411
418
  className: `p-3 ${n.warning.bg} border ${n.warning.border} rounded-md`,
412
419
  children: /* @__PURE__ */ F("div", {
413
420
  className: "flex items-start gap-2",
414
- children: [/* @__PURE__ */ P(g, { className: `w-5 h-5 ${n.warning.icon} mt-0.5` }), /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
421
+ children: [/* @__PURE__ */ P(g, { className: `size-5 ${n.warning.icon} mt-0.5` }), /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
415
422
  className: `text-sm font-medium ${n.warning.text}`,
416
423
  children: "You are about to skip this refund"
417
424
  }), /* @__PURE__ */ F("p", {
@@ -442,7 +449,7 @@ var L = {
442
449
  type: "submit",
443
450
  disabled: o || !s.trim(),
444
451
  className: `flex-1 py-2 px-4 ${n.warning.dot} text-primary-foreground rounded-md hover:opacity-90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2`,
445
- children: [o && /* @__PURE__ */ P(T, { className: "w-4 h-4 animate-spin" }), "Skip Refund"]
452
+ children: [o && /* @__PURE__ */ P(T, { className: "size-4 animate-spin" }), "Skip Refund"]
446
453
  })]
447
454
  })
448
455
  ]
@@ -466,9 +473,10 @@ var L = {
466
473
  className: "text-lg font-semibold",
467
474
  children: "Refund Details"
468
475
  }), /* @__PURE__ */ P("button", {
476
+ type: "button",
469
477
  onClick: t,
470
478
  className: "p-1 rounded-md hover:bg-muted/50 transition-colors",
471
- children: /* @__PURE__ */ P(j, { className: "w-5 h-5" })
479
+ children: /* @__PURE__ */ P(j, { className: "size-5" })
472
480
  })]
473
481
  }),
474
482
  /* @__PURE__ */ F("div", {
@@ -476,7 +484,7 @@ var L = {
476
484
  children: [
477
485
  /* @__PURE__ */ F("div", {
478
486
  className: `flex items-center gap-2 p-3 rounded-md ${z(L[e.status].color)}`,
479
- children: [/* @__PURE__ */ P(r, { className: "w-5 h-5" }), /* @__PURE__ */ P("span", {
487
+ children: [/* @__PURE__ */ P(r, { className: "size-5" }), /* @__PURE__ */ P("span", {
480
488
  className: "font-medium",
481
489
  children: L[e.status].label
482
490
  })]
@@ -604,6 +612,7 @@ var L = {
604
612
  /* @__PURE__ */ P("div", {
605
613
  className: "p-4 border-t border-border",
606
614
  children: /* @__PURE__ */ P("button", {
615
+ type: "button",
607
616
  onClick: t,
608
617
  className: "w-full py-2 px-4 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",
609
618
  children: "Close"
@@ -740,25 +749,28 @@ var L = {
740
749
  className: "flex items-center gap-2",
741
750
  children: [
742
751
  Y.length > 0 && /* @__PURE__ */ F("button", {
752
+ type: "button",
743
753
  onClick: we,
744
754
  disabled: Q,
745
755
  className: `inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md border ${n.warning.border} ${n.warning.bg} ${n.warning.text} hover:opacity-90 transition-colors disabled:opacity-50`,
746
756
  children: [
747
- Q ? /* @__PURE__ */ P(T, { className: "w-4 h-4 animate-spin" }) : /* @__PURE__ */ P(S, { className: "w-4 h-4" }),
757
+ Q ? /* @__PURE__ */ P(T, { className: "size-4 animate-spin" }) : /* @__PURE__ */ P(S, { className: "size-4" }),
748
758
  "Import ",
749
759
  Y.length,
750
760
  " Failed Webhooks"
751
761
  ]
752
762
  }),
753
763
  /* @__PURE__ */ F("button", {
764
+ type: "button",
754
765
  onClick: () => X(),
755
766
  className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md border border-border bg-background hover:bg-muted/50 transition-colors",
756
- children: [/* @__PURE__ */ P(D, { className: "w-4 h-4" }), "Refresh"]
767
+ children: [/* @__PURE__ */ P(D, { className: "size-4" }), "Refresh"]
757
768
  }),
758
769
  /* @__PURE__ */ F("button", {
770
+ type: "button",
759
771
  onClick: () => N(!0),
760
772
  className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",
761
- children: [/* @__PURE__ */ P(te, { className: "w-4 h-4" }), "Create Manual Refund"]
773
+ children: [/* @__PURE__ */ P(te, { className: "size-4" }), "Create Manual Refund"]
762
774
  })
763
775
  ]
764
776
  })
@@ -770,6 +782,7 @@ var L = {
770
782
  children: Object.keys(V).map((e) => {
771
783
  let t = m === e, n = K ? e === "PENDING" ? K.pending : e === "COMPLETED" ? K.completed : e === "FAILED" ? K.failed : K.pending + K.processing + K.completed + K.failed + K.skipped : 0;
772
784
  return /* @__PURE__ */ F("button", {
785
+ type: "button",
773
786
  onClick: () => ye(e),
774
787
  className: `flex items-center gap-2 px-4 py-3 text-sm font-medium border-b-2 transition-colors whitespace-nowrap ${t ? "border-primary text-primary" : "border-transparent text-muted-foreground hover:text-foreground hover:border-border"}`,
775
788
  children: [V[e].label, K && /* @__PURE__ */ P("span", {
@@ -785,7 +798,7 @@ var L = {
785
798
  children: [
786
799
  /* @__PURE__ */ F("div", {
787
800
  className: "relative flex-1",
788
- children: [/* @__PURE__ */ P(k, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground" }), /* @__PURE__ */ P("input", {
801
+ children: [/* @__PURE__ */ P(k, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted-foreground" }), /* @__PURE__ */ P("input", {
789
802
  type: "text",
790
803
  placeholder: "Search by payment ID, order ID, or reason...",
791
804
  value: _,
@@ -794,10 +807,11 @@ var L = {
794
807
  })]
795
808
  }),
796
809
  /* @__PURE__ */ F("button", {
810
+ type: "button",
797
811
  onClick: () => ee(!E),
798
812
  className: `inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md border transition-colors ${E ? "border-primary bg-primary/10 text-primary" : "border-border bg-background hover:bg-muted/50"}`,
799
813
  children: [
800
- /* @__PURE__ */ P(w, { className: "w-4 h-4" }),
814
+ /* @__PURE__ */ P(w, { className: "size-4" }),
801
815
  "Filters",
802
816
  Object.values(x).filter(Boolean).length > 0 && /* @__PURE__ */ P("span", {
803
817
  className: "px-1.5 py-0.5 text-xs rounded-full bg-primary text-primary-foreground",
@@ -806,11 +820,12 @@ var L = {
806
820
  ]
807
821
  }),
808
822
  Object.values(x).filter(Boolean).length > 0 && /* @__PURE__ */ F("button", {
823
+ type: "button",
809
824
  onClick: () => {
810
825
  C({}), Z({});
811
826
  },
812
827
  className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md text-muted-foreground hover:text-foreground transition-colors",
813
- children: [/* @__PURE__ */ P(j, { className: "w-4 h-4" }), "Clear"]
828
+ children: [/* @__PURE__ */ P(j, { className: "size-4" }), "Clear"]
814
829
  })
815
830
  ]
816
831
  }),
@@ -859,7 +874,7 @@ var L = {
859
874
  type: "date",
860
875
  value: x.fromDate ? x.fromDate.split("T")[0] : "",
861
876
  onChange: (e) => $("fromDate", e.target.value ? new Date(e.target.value).toISOString() : void 0),
862
- className: "w-full sm:flex-1 px-2 py-2 border border-border rounded-md bg-background text-sm"
877
+ className: "w-full sm:flex-1 p-2 border border-border rounded-md bg-background text-sm"
863
878
  }),
864
879
  /* @__PURE__ */ P("span", {
865
880
  className: "text-muted-foreground hidden sm:inline",
@@ -869,7 +884,7 @@ var L = {
869
884
  type: "date",
870
885
  value: x.toDate ? x.toDate.split("T")[0] : "",
871
886
  onChange: (e) => $("toDate", e.target.value ? new Date(e.target.value).toISOString() : void 0),
872
- className: "w-full sm:flex-1 px-2 py-2 border border-border rounded-md bg-background text-sm"
887
+ className: "w-full sm:flex-1 p-2 border border-border rounded-md bg-background text-sm"
873
888
  })
874
889
  ]
875
890
  })]
@@ -877,7 +892,7 @@ var L = {
877
892
  ]
878
893
  }),
879
894
  Te.length === 0 ? /* @__PURE__ */ P(r, {
880
- icon: /* @__PURE__ */ P(D, { className: "w-6 h-6 text-muted-foreground" }),
895
+ icon: /* @__PURE__ */ P(D, { className: "size-6 text-muted-foreground" }),
881
896
  title: "No refund records found",
882
897
  description: Object.values(x).filter(Boolean).length > 0 ? "Try adjusting your filters." : m === "PENDING" ? "No pending refunds to process." : "Refund records will appear here when created."
883
898
  }) : /* @__PURE__ */ P("div", {
@@ -917,7 +932,7 @@ var L = {
917
932
  className: "text-left text-sm font-medium text-muted-foreground px-3 py-2 whitespace-nowrap hidden lg:table-cell",
918
933
  children: "Reason"
919
934
  }),
920
- /* @__PURE__ */ P("th", { className: "px-2 py-2 w-10" })
935
+ /* @__PURE__ */ P("th", { className: "p-2 w-10" })
921
936
  ] })
922
937
  }), /* @__PURE__ */ P("tbody", {
923
938
  className: "divide-y divide-border",
@@ -940,7 +955,7 @@ var L = {
940
955
  className: "px-3 py-2 whitespace-nowrap",
941
956
  children: /* @__PURE__ */ F("span", {
942
957
  className: `inline-flex items-center gap-1 px-2 py-0.5 text-xs font-medium rounded ${z(L[e.status].color)}`,
943
- children: [/* @__PURE__ */ P(t, { className: "w-3 h-3" }), /* @__PURE__ */ P("span", {
958
+ children: [/* @__PURE__ */ P(t, { className: "size-3" }), /* @__PURE__ */ P("span", {
944
959
  className: "hidden sm:inline",
945
960
  children: L[e.status].label
946
961
  })]
@@ -967,7 +982,7 @@ var L = {
967
982
  children: e.reason || "-"
968
983
  }),
969
984
  /* @__PURE__ */ P("td", {
970
- className: "px-2 py-2 text-center",
985
+ className: "p-2 text-center",
971
986
  children: /* @__PURE__ */ P(ie, {
972
987
  record: e,
973
988
  onViewDetails: () => A(e),
@@ -1005,10 +1020,11 @@ var L = {
1005
1020
  className: "flex items-center gap-2",
1006
1021
  children: [
1007
1022
  /* @__PURE__ */ F("button", {
1023
+ type: "button",
1008
1024
  onClick: de,
1009
1025
  disabled: !q.hasPrevious,
1010
1026
  className: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-md border border-border bg-background hover:bg-muted/50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
1011
- children: [/* @__PURE__ */ P(y, { className: "w-4 h-4" }), /* @__PURE__ */ P("span", {
1027
+ children: [/* @__PURE__ */ P(y, { className: "size-4" }), /* @__PURE__ */ P("span", {
1012
1028
  className: "hidden sm:inline",
1013
1029
  children: "Previous"
1014
1030
  })]
@@ -1035,13 +1051,14 @@ var L = {
1035
1051
  ]
1036
1052
  }),
1037
1053
  /* @__PURE__ */ F("button", {
1054
+ type: "button",
1038
1055
  onClick: ue,
1039
1056
  disabled: !q.hasMore,
1040
1057
  className: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-md border border-border bg-background hover:bg-muted/50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
1041
1058
  children: [/* @__PURE__ */ P("span", {
1042
1059
  className: "hidden sm:inline",
1043
1060
  children: "Next"
1044
- }), /* @__PURE__ */ P(b, { className: "w-4 h-4" })]
1061
+ }), /* @__PURE__ */ P(b, { className: "size-4" })]
1045
1062
  })
1046
1063
  ]
1047
1064
  })]