@burdenoff/microfe-billing 2026.614.1 → 2026.623.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billing/BillingAdminRoutes.js +7 -6
- package/dist/billing/BillingAdminRoutes.js.map +1 -1
- package/dist/billing/BillingRoot.js +1 -1
- package/dist/billing/BillingRoot.js.map +1 -1
- package/dist/billing/modules/addons/components/FloatingCartDrawer.js +22 -22
- package/dist/billing/modules/addons/components/FloatingCartDrawer.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonCreatePage.js +31 -31
- package/dist/billing/modules/addons/pages/AddonCreatePage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonDetailPage.js +39 -39
- package/dist/billing/modules/addons/pages/AddonDetailPage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonEditPage.js +29 -29
- package/dist/billing/modules/addons/pages/AddonEditPage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonsListPage.js +91 -91
- package/dist/billing/modules/addons/pages/AddonsListPage.js.map +1 -1
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js +40 -40
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +115 -115
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoicesListPage.js +75 -72
- package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/RefundsPage.js +126 -126
- package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/UserRefundsPage.js +45 -45
- package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
- package/dist/billing/modules/checkout/components/BillingAccountSelector.js +25 -25
- package/dist/billing/modules/checkout/components/BillingAccountSelector.js.map +1 -1
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js +31 -35
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js.map +1 -1
- package/dist/billing/modules/checkout/components/CreditsAmountInput.js +9 -9
- package/dist/billing/modules/checkout/components/CreditsAmountInput.js.map +1 -1
- package/dist/billing/modules/checkout/components/OrderSummary.js +31 -31
- package/dist/billing/modules/checkout/components/OrderSummary.js.map +1 -1
- package/dist/billing/modules/checkout/components/PromoCodeInput.js +8 -8
- package/dist/billing/modules/checkout/components/PromoCodeInput.js.map +1 -1
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js +5 -5
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js.map +1 -1
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js +9 -9
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js.map +1 -1
- package/dist/billing/modules/checkout/components/StripePaymentForm.js +21 -21
- package/dist/billing/modules/checkout/components/StripePaymentForm.js.map +1 -1
- package/dist/billing/modules/checkout/components/SubscriptionSelector.js +11 -11
- package/dist/billing/modules/checkout/components/SubscriptionSelector.js.map +1 -1
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js +31 -31
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js.map +1 -1
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js +23 -23
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js.map +1 -1
- package/dist/billing/modules/checkout/pages/CheckoutPage.js +91 -91
- package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js +62 -62
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CouponsListPage.js +72 -60
- package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js +66 -66
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/EditCouponPage.js +46 -46
- package/dist/billing/modules/coupons/pages/EditCouponPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js +19 -19
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js +37 -37
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +90 -90
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditsPage.js +41 -41
- package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -1
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js +31 -31
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js.map +1 -1
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js +35 -35
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js.map +1 -1
- package/dist/billing/modules/dashboard/components/BillingAccountCard.js +24 -24
- package/dist/billing/modules/dashboard/components/BillingAccountCard.js.map +1 -1
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js +99 -99
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js.map +1 -1
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js +23 -23
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js.map +1 -1
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js +22 -22
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js.map +1 -1
- package/dist/billing/modules/dashboard/pages/OverviewPage.js +58 -58
- package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js +126 -126
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +83 -79
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.js +16 -16
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +40 -40
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanCreatePage.js +35 -35
- package/dist/billing/modules/plans/pages/PlanCreatePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanDetailPage.js +57 -57
- package/dist/billing/modules/plans/pages/PlanDetailPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanEditPage.js +35 -35
- package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js +57 -57
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansListPage.js +52 -52
- package/dist/billing/modules/plans/pages/PlansListPage.js.map +1 -1
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +40 -39
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.js.map +1 -1
- package/dist/billing/modules/promotions/pages/PromotionsListPage.js +22 -19
- package/dist/billing/modules/promotions/pages/PromotionsListPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +34 -34
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +47 -47
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +39 -39
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +52 -52
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +23 -23
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +259 -246
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +88 -85
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +51 -51
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
- package/dist/billing/modules/usage/pages/UsagePage.js +206 -196
- package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
- package/dist/billing/shared/components/ServerError.js +4 -4
- package/dist/billing/shared/components/ServerError.js.map +1 -1
- package/dist/billing/shared/components/StatCard.js +11 -33
- package/dist/billing/shared/components/StatCard.js.map +1 -1
- package/dist/billing/shared/ui/Card.js +15 -0
- package/dist/billing/shared/ui/Card.js.map +1 -0
- package/dist/billing/shared/ui/MetricCard.js +44 -0
- package/dist/billing/shared/ui/MetricCard.js.map +1 -0
- package/dist/billing/shared/ui/ProgressBar.js +30 -0
- package/dist/billing/shared/ui/ProgressBar.js.map +1 -0
- package/dist/billing/shared/ui/SectionHeader.js +2 -0
- package/dist/billing/shared/ui/StatusPill.js +28 -0
- package/dist/billing/shared/ui/StatusPill.js.map +1 -0
- package/dist/billing/shared/ui/index.js +5 -0
- package/dist/billing/shared/utils/tokens.js +13 -30
- package/dist/billing/shared/utils/tokens.js.map +1 -1
- package/package.json +1 -1
|
@@ -545,33 +545,33 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
545
545
|
"aria-modal": "true",
|
|
546
546
|
"aria-labelledby": "modal-title",
|
|
547
547
|
children: [/* @__PURE__ */ g("div", {
|
|
548
|
-
className: "absolute inset-0 bg-
|
|
548
|
+
className: "absolute inset-0 bg-bg-overlay backdrop-blur-sm",
|
|
549
549
|
onClick: E ? void 0 : w,
|
|
550
550
|
"aria-hidden": "true"
|
|
551
551
|
}), /* @__PURE__ */ _("div", {
|
|
552
552
|
ref: R,
|
|
553
|
-
className: "relative w-full max-w-2xl mx-4 bg-
|
|
553
|
+
className: "relative w-full max-w-2xl mx-4 bg-bg-surface border border-border-subtle rounded-card shadow-[var(--shadow-elevation-4)] max-h-[90vh] flex flex-col overflow-hidden",
|
|
554
554
|
children: [
|
|
555
555
|
/* @__PURE__ */ _("header", {
|
|
556
|
-
className: "flex items-center justify-between p-4 border-b border-border shrink-0",
|
|
556
|
+
className: "flex items-center justify-between p-4 border-b border-border-subtle shrink-0",
|
|
557
557
|
children: [/* @__PURE__ */ _("div", {
|
|
558
558
|
className: "flex items-center gap-3",
|
|
559
559
|
children: [/* @__PURE__ */ g("div", {
|
|
560
|
-
className: "size-10 rounded-lg bg-
|
|
561
|
-
children: /* @__PURE__ */ g(o, { className: "size-5 text-
|
|
560
|
+
className: "size-10 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center",
|
|
561
|
+
children: /* @__PURE__ */ g(o, { className: "size-5 text-text-link" })
|
|
562
562
|
}), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("h2", {
|
|
563
563
|
id: "modal-title",
|
|
564
|
-
className: "text-lg font-semibold text-
|
|
564
|
+
className: "text-lg font-semibold text-text-primary",
|
|
565
565
|
children: "Create Billing Account"
|
|
566
566
|
}), /* @__PURE__ */ g("p", {
|
|
567
|
-
className: "text-sm text-
|
|
567
|
+
className: "text-sm text-text-secondary",
|
|
568
568
|
children: "Set up a new billing account for your organization"
|
|
569
569
|
})] })]
|
|
570
570
|
}), /* @__PURE__ */ g("button", {
|
|
571
571
|
type: "button",
|
|
572
572
|
onClick: w,
|
|
573
573
|
disabled: E,
|
|
574
|
-
className: "p-2 rounded-
|
|
574
|
+
className: "p-2 rounded-button hover:bg-bg-sunken text-text-secondary hover:text-text-primary transition-colors disabled:opacity-50",
|
|
575
575
|
"aria-label": "Close modal",
|
|
576
576
|
children: /* @__PURE__ */ g(m, { className: "size-5" })
|
|
577
577
|
})]
|
|
@@ -581,7 +581,7 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
581
581
|
className: "p-4 space-y-4 overflow-y-auto flex-1",
|
|
582
582
|
children: [
|
|
583
583
|
D && /* @__PURE__ */ _("div", {
|
|
584
|
-
className: "flex items-center gap-2 p-3 rounded-lg bg-
|
|
584
|
+
className: "flex items-center gap-2 p-3 rounded-lg bg-status-error-bg-subtle border border-status-error-border text-status-error-text",
|
|
585
585
|
children: [/* @__PURE__ */ g(a, { className: "size-4 flex-shrink-0" }), /* @__PURE__ */ g("p", {
|
|
586
586
|
className: "text-sm",
|
|
587
587
|
children: D
|
|
@@ -592,31 +592,31 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
592
592
|
children: [
|
|
593
593
|
/* @__PURE__ */ _("label", {
|
|
594
594
|
htmlFor: "name",
|
|
595
|
-
className: "block text-sm font-medium text-
|
|
595
|
+
className: "block text-sm font-medium text-text-primary",
|
|
596
596
|
children: ["Account Name ", /* @__PURE__ */ g("span", {
|
|
597
|
-
className: "text-
|
|
597
|
+
className: "text-status-error-text",
|
|
598
598
|
children: "*"
|
|
599
599
|
})]
|
|
600
600
|
}),
|
|
601
601
|
/* @__PURE__ */ _("div", {
|
|
602
602
|
className: "relative",
|
|
603
|
-
children: [/* @__PURE__ */ g(o, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-
|
|
603
|
+
children: [/* @__PURE__ */ g(o, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-secondary" }), /* @__PURE__ */ g("input", {
|
|
604
604
|
ref: z,
|
|
605
605
|
type: "text",
|
|
606
606
|
id: "name",
|
|
607
607
|
value: A.name,
|
|
608
608
|
onChange: (e) => K("name", e.target.value),
|
|
609
609
|
className: `
|
|
610
|
-
w-full pl-[3.25rem] pr-3 py-2 border rounded-lg bg-
|
|
611
|
-
placeholder:text-
|
|
612
|
-
${M.name ? "border-
|
|
610
|
+
w-full pl-[3.25rem] pr-3 py-2 border rounded-lg bg-bg-surface text-text-primary
|
|
611
|
+
placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong
|
|
612
|
+
${M.name ? "border-status-error-border" : "border-border-default"}
|
|
613
613
|
`,
|
|
614
614
|
placeholder: "e.g., Acme Corporation",
|
|
615
615
|
disabled: E
|
|
616
616
|
})]
|
|
617
617
|
}),
|
|
618
618
|
M.name && /* @__PURE__ */ g("p", {
|
|
619
|
-
className: "text-sm text-
|
|
619
|
+
className: "text-sm text-status-error-text",
|
|
620
620
|
children: M.name
|
|
621
621
|
})
|
|
622
622
|
]
|
|
@@ -628,30 +628,30 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
628
628
|
children: [
|
|
629
629
|
/* @__PURE__ */ _("label", {
|
|
630
630
|
htmlFor: "email",
|
|
631
|
-
className: "block text-sm font-medium text-
|
|
631
|
+
className: "block text-sm font-medium text-text-primary",
|
|
632
632
|
children: ["Email ", /* @__PURE__ */ g("span", {
|
|
633
|
-
className: "text-
|
|
633
|
+
className: "text-status-error-text",
|
|
634
634
|
children: "*"
|
|
635
635
|
})]
|
|
636
636
|
}),
|
|
637
637
|
/* @__PURE__ */ _("div", {
|
|
638
638
|
className: "relative",
|
|
639
|
-
children: [/* @__PURE__ */ g(d, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-
|
|
639
|
+
children: [/* @__PURE__ */ g(d, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-secondary" }), /* @__PURE__ */ g("input", {
|
|
640
640
|
type: "email",
|
|
641
641
|
id: "email",
|
|
642
642
|
value: A.email,
|
|
643
643
|
onChange: (e) => K("email", e.target.value),
|
|
644
644
|
className: `
|
|
645
|
-
w-full pl-[3.25rem] pr-3 py-2 border rounded-lg bg-
|
|
646
|
-
placeholder:text-
|
|
647
|
-
${M.email ? "border-
|
|
645
|
+
w-full pl-[3.25rem] pr-3 py-2 border rounded-lg bg-bg-surface text-text-primary
|
|
646
|
+
placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong
|
|
647
|
+
${M.email ? "border-status-error-border" : "border-border-default"}
|
|
648
648
|
`,
|
|
649
649
|
placeholder: "contact@company.com",
|
|
650
650
|
disabled: E
|
|
651
651
|
})]
|
|
652
652
|
}),
|
|
653
653
|
M.email && /* @__PURE__ */ g("p", {
|
|
654
|
-
className: "text-sm text-
|
|
654
|
+
className: "text-sm text-status-error-text",
|
|
655
655
|
children: M.email
|
|
656
656
|
})
|
|
657
657
|
]
|
|
@@ -660,41 +660,41 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
660
660
|
children: [
|
|
661
661
|
/* @__PURE__ */ _("label", {
|
|
662
662
|
htmlFor: "billingEmail",
|
|
663
|
-
className: "block text-sm font-medium text-
|
|
663
|
+
className: "block text-sm font-medium text-text-primary",
|
|
664
664
|
children: ["Billing Email ", /* @__PURE__ */ g("span", {
|
|
665
|
-
className: "text-
|
|
665
|
+
className: "text-text-secondary text-xs",
|
|
666
666
|
children: "(optional)"
|
|
667
667
|
})]
|
|
668
668
|
}),
|
|
669
669
|
/* @__PURE__ */ _("div", {
|
|
670
670
|
className: "relative",
|
|
671
|
-
children: [/* @__PURE__ */ g(d, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-
|
|
671
|
+
children: [/* @__PURE__ */ g(d, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-secondary" }), /* @__PURE__ */ g("input", {
|
|
672
672
|
type: "email",
|
|
673
673
|
id: "billingEmail",
|
|
674
674
|
value: A.billingEmail || "",
|
|
675
675
|
onChange: (e) => K("billingEmail", e.target.value),
|
|
676
676
|
className: `
|
|
677
|
-
w-full pl-[3.25rem] pr-3 py-2 border rounded-lg bg-
|
|
678
|
-
placeholder:text-
|
|
679
|
-
${M.billingEmail ? "border-
|
|
677
|
+
w-full pl-[3.25rem] pr-3 py-2 border rounded-lg bg-bg-surface text-text-primary
|
|
678
|
+
placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong
|
|
679
|
+
${M.billingEmail ? "border-status-error-border" : "border-border-default"}
|
|
680
680
|
`,
|
|
681
681
|
placeholder: "billing@company.com",
|
|
682
682
|
disabled: E
|
|
683
683
|
})]
|
|
684
684
|
}),
|
|
685
685
|
M.billingEmail && /* @__PURE__ */ g("p", {
|
|
686
|
-
className: "text-sm text-
|
|
686
|
+
className: "text-sm text-status-error-text",
|
|
687
687
|
children: M.billingEmail
|
|
688
688
|
})
|
|
689
689
|
]
|
|
690
690
|
})]
|
|
691
691
|
}),
|
|
692
692
|
/* @__PURE__ */ _("div", {
|
|
693
|
-
className: "pt-3 border-t border-border",
|
|
693
|
+
className: "pt-3 border-t border-border-subtle",
|
|
694
694
|
children: [
|
|
695
695
|
/* @__PURE__ */ _("h3", {
|
|
696
|
-
className: "text-sm font-medium text-
|
|
697
|
-
children: [/* @__PURE__ */ g(f, { className: "size-4 text-
|
|
696
|
+
className: "text-sm font-medium text-text-primary mb-3 flex items-center gap-2",
|
|
697
|
+
children: [/* @__PURE__ */ g(f, { className: "size-4 text-text-secondary" }), "Billing Address"]
|
|
698
698
|
}),
|
|
699
699
|
/* @__PURE__ */ _("div", {
|
|
700
700
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-3 mb-3",
|
|
@@ -703,9 +703,9 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
703
703
|
children: [
|
|
704
704
|
/* @__PURE__ */ _("label", {
|
|
705
705
|
htmlFor: "country",
|
|
706
|
-
className: "block text-sm font-medium text-
|
|
706
|
+
className: "block text-sm font-medium text-text-primary",
|
|
707
707
|
children: ["Country ", /* @__PURE__ */ g("span", {
|
|
708
|
-
className: "text-
|
|
708
|
+
className: "text-status-error-text",
|
|
709
709
|
children: "*"
|
|
710
710
|
})]
|
|
711
711
|
}),
|
|
@@ -714,9 +714,9 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
714
714
|
value: A.country,
|
|
715
715
|
onChange: (e) => K("country", e.target.value),
|
|
716
716
|
className: `
|
|
717
|
-
w-full px-3 py-2 border rounded-lg bg-
|
|
718
|
-
focus:outline-none focus:ring-2 focus:ring-
|
|
719
|
-
${M.country ? "border-
|
|
717
|
+
w-full px-3 py-2 border rounded-lg bg-bg-surface text-text-primary
|
|
718
|
+
focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong
|
|
719
|
+
${M.country ? "border-status-error-border" : "border-border-default"}
|
|
720
720
|
`,
|
|
721
721
|
disabled: E,
|
|
722
722
|
children: [/* @__PURE__ */ g("option", {
|
|
@@ -728,7 +728,7 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
728
728
|
}, e.code))]
|
|
729
729
|
}),
|
|
730
730
|
M.country && /* @__PURE__ */ g("p", {
|
|
731
|
-
className: "text-sm text-
|
|
731
|
+
className: "text-sm text-status-error-text",
|
|
732
732
|
children: M.country
|
|
733
733
|
})
|
|
734
734
|
]
|
|
@@ -737,9 +737,9 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
737
737
|
children: [
|
|
738
738
|
/* @__PURE__ */ _("label", {
|
|
739
739
|
htmlFor: "line1",
|
|
740
|
-
className: "block text-sm font-medium text-
|
|
740
|
+
className: "block text-sm font-medium text-text-primary",
|
|
741
741
|
children: ["Address Line 1 ", /* @__PURE__ */ g("span", {
|
|
742
|
-
className: "text-
|
|
742
|
+
className: "text-status-error-text",
|
|
743
743
|
children: "*"
|
|
744
744
|
})]
|
|
745
745
|
}),
|
|
@@ -749,15 +749,15 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
749
749
|
value: A.line1,
|
|
750
750
|
onChange: (e) => K("line1", e.target.value),
|
|
751
751
|
className: `
|
|
752
|
-
w-full px-3 py-2 border rounded-lg bg-
|
|
753
|
-
placeholder:text-
|
|
754
|
-
${M.line1 ? "border-
|
|
752
|
+
w-full px-3 py-2 border rounded-lg bg-bg-surface text-text-primary
|
|
753
|
+
placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong
|
|
754
|
+
${M.line1 ? "border-status-error-border" : "border-border-default"}
|
|
755
755
|
`,
|
|
756
756
|
placeholder: "Street address, P.O. box",
|
|
757
757
|
disabled: E
|
|
758
758
|
}),
|
|
759
759
|
M.line1 && /* @__PURE__ */ g("p", {
|
|
760
|
-
className: "text-sm text-
|
|
760
|
+
className: "text-sm text-status-error-text",
|
|
761
761
|
children: M.line1
|
|
762
762
|
})
|
|
763
763
|
]
|
|
@@ -767,9 +767,9 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
767
767
|
className: "space-y-1.5 mb-3",
|
|
768
768
|
children: [/* @__PURE__ */ _("label", {
|
|
769
769
|
htmlFor: "line2",
|
|
770
|
-
className: "block text-sm font-medium text-
|
|
770
|
+
className: "block text-sm font-medium text-text-primary",
|
|
771
771
|
children: ["Address Line 2 ", /* @__PURE__ */ g("span", {
|
|
772
|
-
className: "text-
|
|
772
|
+
className: "text-text-secondary text-xs",
|
|
773
773
|
children: "(optional)"
|
|
774
774
|
})]
|
|
775
775
|
}), /* @__PURE__ */ g("input", {
|
|
@@ -777,7 +777,7 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
777
777
|
id: "line2",
|
|
778
778
|
value: A.line2,
|
|
779
779
|
onChange: (e) => K("line2", e.target.value),
|
|
780
|
-
className: "w-full px-3 py-2 border border-
|
|
780
|
+
className: "w-full px-3 py-2 border border-border-default rounded-input bg-bg-surface text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong",
|
|
781
781
|
placeholder: "Apartment, suite, unit, building, floor",
|
|
782
782
|
disabled: E
|
|
783
783
|
})]
|
|
@@ -790,9 +790,9 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
790
790
|
children: [
|
|
791
791
|
/* @__PURE__ */ _("label", {
|
|
792
792
|
htmlFor: "city",
|
|
793
|
-
className: "block text-sm font-medium text-
|
|
793
|
+
className: "block text-sm font-medium text-text-primary",
|
|
794
794
|
children: ["City ", /* @__PURE__ */ g("span", {
|
|
795
|
-
className: "text-
|
|
795
|
+
className: "text-status-error-text",
|
|
796
796
|
children: "*"
|
|
797
797
|
})]
|
|
798
798
|
}),
|
|
@@ -802,15 +802,15 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
802
802
|
value: A.city,
|
|
803
803
|
onChange: (e) => K("city", e.target.value),
|
|
804
804
|
className: `
|
|
805
|
-
w-full px-3 py-2 border rounded-lg bg-
|
|
806
|
-
placeholder:text-
|
|
807
|
-
${M.city ? "border-
|
|
805
|
+
w-full px-3 py-2 border rounded-lg bg-bg-surface text-text-primary
|
|
806
|
+
placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong
|
|
807
|
+
${M.city ? "border-status-error-border" : "border-border-default"}
|
|
808
808
|
`,
|
|
809
809
|
placeholder: "City",
|
|
810
810
|
disabled: E
|
|
811
811
|
}),
|
|
812
812
|
M.city && /* @__PURE__ */ g("p", {
|
|
813
|
-
className: "text-sm text-
|
|
813
|
+
className: "text-sm text-status-error-text",
|
|
814
814
|
children: M.city
|
|
815
815
|
})
|
|
816
816
|
]
|
|
@@ -820,20 +820,24 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
820
820
|
children: [
|
|
821
821
|
/* @__PURE__ */ _("label", {
|
|
822
822
|
htmlFor: "state",
|
|
823
|
-
className: "block text-sm font-medium text-
|
|
824
|
-
children: [
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
823
|
+
className: "block text-sm font-medium text-text-primary",
|
|
824
|
+
children: [
|
|
825
|
+
"State",
|
|
826
|
+
" ",
|
|
827
|
+
A.country === "IN" && /* @__PURE__ */ g("span", {
|
|
828
|
+
className: "text-status-error-text",
|
|
829
|
+
children: "*"
|
|
830
|
+
})
|
|
831
|
+
]
|
|
828
832
|
}),
|
|
829
833
|
A.country === "IN" ? /* @__PURE__ */ _("select", {
|
|
830
834
|
id: "state",
|
|
831
835
|
value: A.state,
|
|
832
836
|
onChange: (e) => K("state", e.target.value),
|
|
833
837
|
className: `
|
|
834
|
-
w-full px-3 py-2 border rounded-lg bg-
|
|
835
|
-
focus:outline-none focus:ring-2 focus:ring-
|
|
836
|
-
${M.state ? "border-
|
|
838
|
+
w-full px-3 py-2 border rounded-lg bg-bg-surface text-text-primary
|
|
839
|
+
focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong
|
|
840
|
+
${M.state ? "border-status-error-border" : "border-border-default"}
|
|
837
841
|
`,
|
|
838
842
|
disabled: E,
|
|
839
843
|
children: [/* @__PURE__ */ g("option", {
|
|
@@ -848,12 +852,12 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
848
852
|
id: "state",
|
|
849
853
|
value: A.state,
|
|
850
854
|
onChange: (e) => K("state", e.target.value),
|
|
851
|
-
className: "w-full px-3 py-2 border border-
|
|
855
|
+
className: "w-full px-3 py-2 border border-border-default rounded-input bg-bg-surface text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong",
|
|
852
856
|
placeholder: "State/Province",
|
|
853
857
|
disabled: E
|
|
854
858
|
}),
|
|
855
859
|
M.state && /* @__PURE__ */ g("p", {
|
|
856
|
-
className: "text-sm text-
|
|
860
|
+
className: "text-sm text-status-error-text",
|
|
857
861
|
children: M.state
|
|
858
862
|
})
|
|
859
863
|
]
|
|
@@ -863,9 +867,9 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
863
867
|
children: [
|
|
864
868
|
/* @__PURE__ */ _("label", {
|
|
865
869
|
htmlFor: "postalCode",
|
|
866
|
-
className: "block text-sm font-medium text-
|
|
870
|
+
className: "block text-sm font-medium text-text-primary",
|
|
867
871
|
children: ["Postal Code ", /* @__PURE__ */ g("span", {
|
|
868
|
-
className: "text-
|
|
872
|
+
className: "text-status-error-text",
|
|
869
873
|
children: "*"
|
|
870
874
|
})]
|
|
871
875
|
}),
|
|
@@ -875,15 +879,15 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
875
879
|
value: A.postalCode,
|
|
876
880
|
onChange: (e) => K("postalCode", e.target.value),
|
|
877
881
|
className: `
|
|
878
|
-
w-full px-3 py-2 border rounded-lg bg-
|
|
879
|
-
placeholder:text-
|
|
880
|
-
${M.postalCode ? "border-
|
|
882
|
+
w-full px-3 py-2 border rounded-lg bg-bg-surface text-text-primary
|
|
883
|
+
placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong
|
|
884
|
+
${M.postalCode ? "border-status-error-border" : "border-border-default"}
|
|
881
885
|
`,
|
|
882
886
|
placeholder: A.country === "IN" ? "600001" : "ZIP/Postal code",
|
|
883
887
|
disabled: E
|
|
884
888
|
}),
|
|
885
889
|
M.postalCode && /* @__PURE__ */ g("p", {
|
|
886
|
-
className: "text-sm text-
|
|
890
|
+
className: "text-sm text-status-error-text",
|
|
887
891
|
children: M.postalCode
|
|
888
892
|
})
|
|
889
893
|
]
|
|
@@ -893,11 +897,11 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
893
897
|
]
|
|
894
898
|
}),
|
|
895
899
|
/* @__PURE__ */ _("div", {
|
|
896
|
-
className: "grid grid-cols-1 sm:grid-cols-2 gap-4 pt-3 border-t border-border",
|
|
900
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-4 pt-3 border-t border-border-subtle",
|
|
897
901
|
children: [/* @__PURE__ */ _("div", {
|
|
898
902
|
className: "space-y-1.5",
|
|
899
903
|
children: [/* @__PURE__ */ g("label", {
|
|
900
|
-
className: "block text-sm font-medium text-
|
|
904
|
+
className: "block text-sm font-medium text-text-primary",
|
|
901
905
|
children: k("billing.overview.currency", "Currency")
|
|
902
906
|
}), /* @__PURE__ */ _("div", {
|
|
903
907
|
className: "relative",
|
|
@@ -910,7 +914,7 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
910
914
|
w-full flex items-center justify-between gap-2 px-3 py-2 rounded-lg border
|
|
911
915
|
transition-all duration-200 text-left
|
|
912
916
|
disabled:opacity-50 disabled:cursor-not-allowed
|
|
913
|
-
${P ? "border-
|
|
917
|
+
${P ? "border-border-strong ring-1 ring-[var(--color-focus-ring)]" : "border-border-default hover:border-border-strong"}
|
|
914
918
|
`,
|
|
915
919
|
children: [/* @__PURE__ */ _("div", {
|
|
916
920
|
className: "flex items-center gap-2",
|
|
@@ -920,11 +924,11 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
920
924
|
children: S(U.flag)
|
|
921
925
|
}),
|
|
922
926
|
/* @__PURE__ */ g("span", {
|
|
923
|
-
className: "font-medium text-
|
|
927
|
+
className: "font-medium text-text-primary",
|
|
924
928
|
children: U.code
|
|
925
929
|
}),
|
|
926
930
|
/* @__PURE__ */ _("span", {
|
|
927
|
-
className: "text-sm text-
|
|
931
|
+
className: "text-sm text-text-secondary",
|
|
928
932
|
children: [
|
|
929
933
|
U.symbol,
|
|
930
934
|
" · ",
|
|
@@ -932,14 +936,14 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
932
936
|
]
|
|
933
937
|
})
|
|
934
938
|
]
|
|
935
|
-
}), /* @__PURE__ */ g(c, { className: `size-4 text-
|
|
939
|
+
}), /* @__PURE__ */ g(c, { className: `size-4 text-text-secondary transition-transform ${P ? "rotate-180" : ""}` })]
|
|
936
940
|
}), P && /* @__PURE__ */ _("div", {
|
|
937
|
-
className: "absolute z-50 w-full bottom-full mb-1 bg-
|
|
941
|
+
className: "absolute z-50 w-full bottom-full mb-1 bg-bg-elevated border border-border-subtle rounded-card shadow-elevation-3 overflow-hidden",
|
|
938
942
|
onMouseDown: (e) => e.stopPropagation(),
|
|
939
943
|
children: [/* @__PURE__ */ g("div", {
|
|
940
944
|
className: "max-h-48 overflow-y-auto",
|
|
941
945
|
children: H.length === 0 ? /* @__PURE__ */ g("div", {
|
|
942
|
-
className: "px-3 py-4 text-sm text-
|
|
946
|
+
className: "px-3 py-4 text-sm text-text-secondary text-center",
|
|
943
947
|
children: "No currencies found"
|
|
944
948
|
}) : H.map((e) => {
|
|
945
949
|
let t = e.code === A.currency;
|
|
@@ -951,7 +955,7 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
951
955
|
className: `
|
|
952
956
|
w-full flex items-center gap-3 px-3 py-2 text-left
|
|
953
957
|
transition-colors
|
|
954
|
-
${t ? "bg-
|
|
958
|
+
${t ? "bg-[var(--color-accent-soft)] text-text-primary" : "hover:bg-bg-sunken text-text-primary"}
|
|
955
959
|
`,
|
|
956
960
|
children: [
|
|
957
961
|
/* @__PURE__ */ g("span", {
|
|
@@ -966,30 +970,30 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
966
970
|
className: "font-medium",
|
|
967
971
|
children: e.code
|
|
968
972
|
}), /* @__PURE__ */ g("span", {
|
|
969
|
-
className: "text-xs text-
|
|
973
|
+
className: "text-xs text-text-secondary",
|
|
970
974
|
children: e.symbol
|
|
971
975
|
})]
|
|
972
976
|
}), /* @__PURE__ */ g("p", {
|
|
973
|
-
className: "text-xs text-
|
|
977
|
+
className: "text-xs text-text-secondary truncate",
|
|
974
978
|
children: e.name
|
|
975
979
|
})]
|
|
976
980
|
}),
|
|
977
|
-
t && /* @__PURE__ */ g(s, { className: "size-4 text-
|
|
981
|
+
t && /* @__PURE__ */ g(s, { className: "size-4 text-text-link shrink-0" })
|
|
978
982
|
]
|
|
979
983
|
}, e.code);
|
|
980
984
|
})
|
|
981
985
|
}), /* @__PURE__ */ g("div", {
|
|
982
|
-
className: "p-2 border-t border-border",
|
|
986
|
+
className: "p-2 border-t border-border-subtle",
|
|
983
987
|
children: /* @__PURE__ */ _("div", {
|
|
984
988
|
className: "relative",
|
|
985
|
-
children: [/* @__PURE__ */ g(p, { className: "absolute left-2.5 top-1/2 -translate-y-1/2 size-4 text-
|
|
989
|
+
children: [/* @__PURE__ */ g(p, { className: "absolute left-2.5 top-1/2 -translate-y-1/2 size-4 text-text-secondary" }), /* @__PURE__ */ g("input", {
|
|
986
990
|
ref: V,
|
|
987
991
|
type: "text",
|
|
988
992
|
placeholder: "Search currency...",
|
|
989
993
|
value: I,
|
|
990
994
|
onChange: (e) => L(e.target.value),
|
|
991
995
|
onMouseDown: (e) => e.stopPropagation(),
|
|
992
|
-
className: "w-full pl-8 pr-3 py-2 text-sm bg-
|
|
996
|
+
className: "w-full pl-8 pr-3 py-2 text-sm bg-bg-surface border border-border-subtle rounded-button focus:outline-none focus:ring-1 focus:ring-[var(--color-focus-ring)]"
|
|
993
997
|
})]
|
|
994
998
|
})
|
|
995
999
|
})]
|
|
@@ -999,23 +1003,19 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
999
1003
|
className: "space-y-1.5",
|
|
1000
1004
|
children: [/* @__PURE__ */ _("label", {
|
|
1001
1005
|
htmlFor: "taxId",
|
|
1002
|
-
className: "block text-sm font-medium text-
|
|
1003
|
-
children: [
|
|
1004
|
-
"
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
className: "text-muted-foreground text-xs",
|
|
1008
|
-
children: "(optional)"
|
|
1009
|
-
})
|
|
1010
|
-
]
|
|
1006
|
+
className: "block text-sm font-medium text-text-primary",
|
|
1007
|
+
children: ["Tax ID / VAT Number ", /* @__PURE__ */ g("span", {
|
|
1008
|
+
className: "text-text-secondary text-xs",
|
|
1009
|
+
children: "(optional)"
|
|
1010
|
+
})]
|
|
1011
1011
|
}), /* @__PURE__ */ _("div", {
|
|
1012
1012
|
className: "relative",
|
|
1013
|
-
children: [/* @__PURE__ */ g(l, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-
|
|
1013
|
+
children: [/* @__PURE__ */ g(l, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-secondary" }), /* @__PURE__ */ g("input", {
|
|
1014
1014
|
type: "text",
|
|
1015
1015
|
id: "taxId",
|
|
1016
1016
|
value: A.taxId || "",
|
|
1017
1017
|
onChange: (e) => K("taxId", e.target.value),
|
|
1018
|
-
className: "w-full pl-[3.25rem] pr-3 py-2 border border-
|
|
1018
|
+
className: "w-full pl-[3.25rem] pr-3 py-2 border border-border-default rounded-input bg-bg-surface text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong",
|
|
1019
1019
|
placeholder: A.country === "IN" ? "e.g., 22AAAAA0000A1Z5" : "Tax ID / VAT Number",
|
|
1020
1020
|
disabled: E
|
|
1021
1021
|
})]
|
|
@@ -1025,18 +1025,18 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
1025
1025
|
]
|
|
1026
1026
|
}),
|
|
1027
1027
|
/* @__PURE__ */ _("footer", {
|
|
1028
|
-
className: "flex items-center justify-end gap-3 p-4 border-t border-border bg-
|
|
1028
|
+
className: "flex items-center justify-end gap-3 p-4 border-t border-border-subtle bg-bg-sunken rounded-b-card shrink-0",
|
|
1029
1029
|
children: [/* @__PURE__ */ g("button", {
|
|
1030
1030
|
type: "button",
|
|
1031
1031
|
onClick: w,
|
|
1032
1032
|
disabled: E,
|
|
1033
|
-
className: "px-4 py-2 text-sm font-medium text-
|
|
1033
|
+
className: "px-4 py-2 text-sm font-medium text-text-primary border border-border-subtle rounded-button hover:bg-bg-sunken hover:border-border-strong transition-all duration-200 disabled:opacity-50",
|
|
1034
1034
|
children: "Cancel"
|
|
1035
1035
|
}), /* @__PURE__ */ g("button", {
|
|
1036
1036
|
type: "button",
|
|
1037
1037
|
onClick: G,
|
|
1038
1038
|
disabled: E,
|
|
1039
|
-
className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium text-primary-
|
|
1039
|
+
className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium text-action-primary-text bg-action-primary-bg rounded-button hover:bg-action-primary-bgHover transition-colors duration-200 disabled:opacity-50",
|
|
1040
1040
|
children: E ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(u, { className: "size-4 animate-spin" }), "Creating…"] }) : "Create Account"
|
|
1041
1041
|
})]
|
|
1042
1042
|
})
|