@solvapay/react 1.3.0 → 1.4.0-preview-ecd61384a4e849717e13d47ab2daa086cdcd91c5

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.
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React, { Ref } from 'react';
3
- import { b as Plan, v as Product, q as UseTopupAmountSelectorReturn, u as PurchaseInfo, T as TopupFormProps } from '../shared-BNZAIWkU.cjs';
4
- export { x as BootstrapPlanLike, y as CheckoutStep, K as SuccessMeta } from '../shared-BNZAIWkU.cjs';
5
- import { j as PaywallStructuredContent, U as UsageSnapshot } from '../index-kXLvp7EU.cjs';
6
- export { E as ActivationFlow, F as ActivationFlowActivateButton, G as ActivationFlowActivated, H as ActivationFlowAmountPicker, I as ActivationFlowContinueButton, J as ActivationFlowError, K as ActivationFlowLoading, L as ActivationFlowRetrying, N as ActivationFlowRoot, A as ActivationFlowStep, O as ActivationFlowSummary, B as BalanceBadge, k as CancelPlanButton, m as CheckoutStatus, n as CheckoutSteps, Q as CheckoutStepsAmountContinueButton, R as CheckoutStepsAmountPicker, S as CheckoutStepsBackLink, T as CheckoutStepsIfStep, V as CheckoutStepsPayment, W as CheckoutStepsPlanContinueButton, X as CheckoutStepsPlanGrid, Y as CheckoutStepsRoot, Z as CheckoutStepsStepHeading, _ as CheckoutStepsStepMessage, $ as CheckoutStepsSuccess, M as MandateText, q as MandateTextProps, a0 as PaymentForm, c as PaymentFormCardElement, a as PaymentFormCustomerFields, h as PaymentFormError, i as PaymentFormLegalFooter, g as PaymentFormLoading, d as PaymentFormMandateText, b as PaymentFormPaymentElement, a1 as PaymentFormRoot, f as PaymentFormSubmitButton, P as PaymentFormSummary, e as PaymentFormTermsCheckbox, r as PlanBadge, s as ProductBadge, t as PurchaseGate, a2 as PurchaseGateAllowed, a3 as PurchaseGateBlocked, a4 as PurchaseGateError, a5 as PurchaseGateLoading, a6 as PurchaseGateRoot, a7 as useActivationFlow, z as useCheckoutStepsContext, a8 as usePurchaseGate } from '../index-kXLvp7EU.cjs';
3
+ import { b as Plan, y as Product, r as UseTopupAmountSelectorReturn, x as PurchaseInfo, T as TopupFormProps, c as SaveAutoRechargeResponse, t as AutoRechargeConfig } from '../shared-LcjvX4fD.cjs';
4
+ export { D as BootstrapPlanLike, E as CheckoutStep, O as SuccessMeta } from '../shared-LcjvX4fD.cjs';
5
+ import { A as AutoRechargeInputPayload, G as AmountInputUnit, H as AutoRechargeFormState, j as PaywallStructuredContent, U as UsageSnapshot } from '../index-CDvQcobx.cjs';
6
+ export { I as ActivationFlow, J as ActivationFlowActivateButton, K as ActivationFlowActivated, L as ActivationFlowAmountPicker, N as ActivationFlowContinueButton, O as ActivationFlowError, Q as ActivationFlowLoading, R as ActivationFlowRetrying, S as ActivationFlowRoot, k as ActivationFlowStep, T as ActivationFlowSummary, B as BalanceBadge, l as CancelPlanButton, n as CheckoutStatus, o as CheckoutSteps, V as CheckoutStepsAmountContinueButton, W as CheckoutStepsAmountPicker, X as CheckoutStepsBackLink, Y as CheckoutStepsIfStep, Z as CheckoutStepsPayment, _ as CheckoutStepsPlanContinueButton, $ as CheckoutStepsPlanGrid, a0 as CheckoutStepsRoot, a1 as CheckoutStepsStepHeading, a2 as CheckoutStepsStepMessage, a3 as CheckoutStepsSuccess, M as MandateText, r as MandateTextProps, a4 as PaymentForm, c as PaymentFormCardElement, a as PaymentFormCustomerFields, h as PaymentFormError, i as PaymentFormLegalFooter, g as PaymentFormLoading, d as PaymentFormMandateText, b as PaymentFormPaymentElement, a5 as PaymentFormRoot, f as PaymentFormSubmitButton, P as PaymentFormSummary, e as PaymentFormTermsCheckbox, s as PlanBadge, t as ProductBadge, u as PurchaseGate, a6 as PurchaseGateAllowed, a7 as PurchaseGateBlocked, a8 as PurchaseGateError, a9 as PurchaseGateLoading, aa as PurchaseGateRoot, ab as useActivationFlow, E as useCheckoutStepsContext, ac as usePurchaseGate } from '../index-CDvQcobx.cjs';
7
7
  import { PaymentElement } from '@stripe/react-stripe-js';
8
8
  import { Stripe, StripeElements } from '@stripe/stripe-js';
9
9
  import '../adapters/auth.cjs';
@@ -592,6 +592,181 @@ declare const TopupForm: {
592
592
  };
593
593
  declare function useTopupForm(): TopupFormContextValue;
594
594
 
595
+ type AutoRechargeDataState = 'loading' | 'idle' | 'saving' | 'disabling' | 'setup' | 'error';
596
+ type AutoRechargeContextValue = {
597
+ form: AutoRechargeFormState;
598
+ updateForm: (patch: Partial<AutoRechargeFormState>) => void;
599
+ resetForm: () => void;
600
+ validationError: string | null;
601
+ currency: string;
602
+ config: AutoRechargeConfig | null;
603
+ loading: boolean;
604
+ saving: boolean;
605
+ disabling: boolean;
606
+ error: Error | null;
607
+ statusMessage: string | null;
608
+ setup: SaveAutoRechargeResponse | null;
609
+ dataState: AutoRechargeDataState;
610
+ creditsPerMinorUnit: number | null;
611
+ displayExchangeRate: number | null;
612
+ canToggleUnits: boolean;
613
+ isApproximate: boolean;
614
+ summaryLine: string | null;
615
+ savedSummaryLine: string | null;
616
+ deferCardSetup: boolean;
617
+ fixedTopupHint: string | null;
618
+ open: boolean;
619
+ setOpen: (next: boolean) => void;
620
+ titleId: string;
621
+ registerTriggerRef: (node: HTMLButtonElement | null) => void;
622
+ focusTrigger: () => void;
623
+ save: () => Promise<void>;
624
+ disable: () => Promise<void>;
625
+ completeSetup: () => Promise<void>;
626
+ flipUnit: (valueKey: 'thresholdAmountMajor' | 'topupAmountMajor', unitKey: 'thresholdUnit' | 'topupUnit', baseValueKey: 'thresholdBaseValue' | 'topupBaseValue', baseUnitKey: 'thresholdBaseUnit' | 'topupBaseUnit', currentUnit: AmountInputUnit) => void;
627
+ };
628
+ type UnitToggleProps = {
629
+ unit: AmountInputUnit;
630
+ fieldLabel: string;
631
+ onToggle: () => void;
632
+ };
633
+ type CardSetupProps = {
634
+ setup: SaveAutoRechargeResponse;
635
+ onComplete: () => void | Promise<void>;
636
+ };
637
+ declare function CardSetup({ setup, onComplete }: CardSetupProps): react_jsx_runtime.JSX.Element;
638
+ declare const AutoRechargeRoot: React.ForwardRefExoticComponent<{
639
+ currency?: string;
640
+ defaultThresholdAmountMajor?: number;
641
+ defaultTopupAmountMajor?: number;
642
+ open?: boolean;
643
+ defaultOpen?: boolean;
644
+ onOpenChange?: (open: boolean) => void;
645
+ onSetupRequired?: (result: SaveAutoRechargeResponse) => void | Promise<void>;
646
+ onSaved?: (result: SaveAutoRechargeResponse) => void | Promise<void>;
647
+ onDisabled?: () => void | Promise<void>;
648
+ deferCardSetup?: boolean;
649
+ onPendingConfig?: (payload: AutoRechargeInputPayload) => void | Promise<void>;
650
+ asChild?: boolean;
651
+ children?: React.ReactNode;
652
+ } & Omit<React.HTMLAttributes<HTMLElement>, "children"> & React.RefAttributes<HTMLElement>>;
653
+ declare const AutoRechargeLoading: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
654
+ declare const AutoRechargeCard: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
655
+ declare const AutoRechargeCardHeading: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
656
+ declare const AutoRechargeCardSummary: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
657
+ declare const AutoRechargeTrigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
658
+ asChild?: boolean;
659
+ } & React.RefAttributes<HTMLButtonElement>>;
660
+ declare const AutoRechargeOverlay: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
661
+ declare const AutoRechargeContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
662
+ children?: React.ReactNode;
663
+ } & React.RefAttributes<HTMLDivElement>>;
664
+ declare const AutoRechargeTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
665
+ declare const AutoRechargeEnableQuestion: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
666
+ declare const AutoRechargeEnableSentence: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>>;
667
+ declare const AutoRechargeEnableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
668
+ declare const AutoRechargeCancelButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
669
+ asChild?: boolean;
670
+ } & React.RefAttributes<HTMLButtonElement>>;
671
+ declare const AutoRechargeHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
672
+ declare const AutoRechargeDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
673
+ declare const AutoRechargeEnableSwitch: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & {
674
+ asChild?: boolean;
675
+ appearance?: "switch" | "checkbox";
676
+ } & React.RefAttributes<HTMLInputElement>>;
677
+ declare const AutoRechargeFields: React.ForwardRefExoticComponent<React.FieldsetHTMLAttributes<HTMLFieldSetElement> & React.RefAttributes<HTMLFieldSetElement>>;
678
+ declare const AutoRechargeSetup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
679
+ declare const AutoRechargeBody: React.ForwardRefExoticComponent<React.FieldsetHTMLAttributes<HTMLFieldSetElement> & React.RefAttributes<HTMLFieldSetElement>>;
680
+ declare const AutoRechargeSummary: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
681
+ declare const AutoRechargeThresholdField: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
682
+ declare const AutoRechargeTopupField: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
683
+ declare const AutoRechargeAmountField: React.ForwardRefExoticComponent<{
684
+ field: "threshold" | "fixed";
685
+ showLabel?: boolean;
686
+ asChild?: boolean;
687
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "children"> & React.RefAttributes<HTMLInputElement>>;
688
+ declare const AutoRechargeUnitToggle: React.ForwardRefExoticComponent<UnitToggleProps & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
689
+ declare const AutoRechargeHint: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
690
+ declare const AutoRechargeValidationError: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
691
+ declare const AutoRechargeActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
692
+ declare const AutoRechargeSaveButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
693
+ asChild?: boolean;
694
+ } & React.RefAttributes<HTMLButtonElement>>;
695
+ declare const AutoRechargeDisableButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
696
+ asChild?: boolean;
697
+ } & React.RefAttributes<HTMLButtonElement>>;
698
+ declare const AutoRechargeError: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
699
+ declare const AutoRechargeStatusMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
700
+ declare const AutoRechargeStatus: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
701
+ declare const AutoRechargeCardSetup: typeof CardSetup;
702
+ declare const AutoRecharge: {
703
+ readonly Root: React.ForwardRefExoticComponent<{
704
+ currency?: string;
705
+ defaultThresholdAmountMajor?: number;
706
+ defaultTopupAmountMajor?: number;
707
+ open?: boolean;
708
+ defaultOpen?: boolean;
709
+ onOpenChange?: (open: boolean) => void;
710
+ onSetupRequired?: (result: SaveAutoRechargeResponse) => void | Promise<void>;
711
+ onSaved?: (result: SaveAutoRechargeResponse) => void | Promise<void>;
712
+ onDisabled?: () => void | Promise<void>;
713
+ deferCardSetup?: boolean;
714
+ onPendingConfig?: (payload: AutoRechargeInputPayload) => void | Promise<void>;
715
+ asChild?: boolean;
716
+ children?: React.ReactNode;
717
+ } & Omit<React.HTMLAttributes<HTMLElement>, "children"> & React.RefAttributes<HTMLElement>>;
718
+ readonly Loading: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
719
+ readonly Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
720
+ readonly CardHeading: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
721
+ readonly CardSummary: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
722
+ readonly Trigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
723
+ asChild?: boolean;
724
+ } & React.RefAttributes<HTMLButtonElement>>;
725
+ readonly Overlay: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
726
+ readonly Content: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
727
+ children?: React.ReactNode;
728
+ } & React.RefAttributes<HTMLDivElement>>;
729
+ readonly Title: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
730
+ readonly EnableQuestion: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
731
+ readonly EnableSentence: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>>;
732
+ readonly EnableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
733
+ readonly CancelButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
734
+ asChild?: boolean;
735
+ } & React.RefAttributes<HTMLButtonElement>>;
736
+ readonly Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
737
+ readonly Description: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
738
+ readonly EnableSwitch: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & {
739
+ asChild?: boolean;
740
+ appearance?: "switch" | "checkbox";
741
+ } & React.RefAttributes<HTMLInputElement>>;
742
+ readonly Fields: React.ForwardRefExoticComponent<React.FieldsetHTMLAttributes<HTMLFieldSetElement> & React.RefAttributes<HTMLFieldSetElement>>;
743
+ readonly Setup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
744
+ readonly Body: React.ForwardRefExoticComponent<React.FieldsetHTMLAttributes<HTMLFieldSetElement> & React.RefAttributes<HTMLFieldSetElement>>;
745
+ readonly Summary: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
746
+ readonly ThresholdField: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
747
+ readonly TopupField: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
748
+ readonly AmountField: React.ForwardRefExoticComponent<{
749
+ field: "threshold" | "fixed";
750
+ showLabel?: boolean;
751
+ asChild?: boolean;
752
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "children"> & React.RefAttributes<HTMLInputElement>>;
753
+ readonly UnitToggle: React.ForwardRefExoticComponent<UnitToggleProps & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
754
+ readonly Hint: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
755
+ readonly ValidationError: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
756
+ readonly Actions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
757
+ readonly SaveButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
758
+ asChild?: boolean;
759
+ } & React.RefAttributes<HTMLButtonElement>>;
760
+ readonly DisableButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
761
+ asChild?: boolean;
762
+ } & React.RefAttributes<HTMLButtonElement>>;
763
+ readonly Error: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
764
+ readonly StatusMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
765
+ readonly Status: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
766
+ readonly CardSetup: typeof CardSetup;
767
+ };
768
+ declare function useAutoRechargeForm(): AutoRechargeContextValue;
769
+
595
770
  /**
596
771
  * LegalFooter primitive.
597
772
  *
@@ -811,4 +986,4 @@ declare const UsageMeter: React.ForwardRefExoticComponent<UsageMeterRootProps &
811
986
 
812
987
  declare function useUsageMeter(): UsageMeterContextValue;
813
988
 
814
- export { AmountPicker, AmountPickerConfirm, AmountPickerCustom, AmountPickerOption, AmountPickerRoot, CancelledPlanNotice, CancelledPlanNoticeAccessUntil, CancelledPlanNoticeCancelledOn, CancelledPlanNoticeDaysRemaining, CancelledPlanNoticeExpires, CancelledPlanNoticeHeading, CancelledPlanNoticeReactivateButton, CancelledPlanNoticeReason, CancelledPlanNoticeRoot, CheckoutSummary, CheckoutSummaryPlan, CheckoutSummaryPrice, CheckoutSummaryProduct, CheckoutSummaryRoot, CheckoutSummaryTaxNote, CheckoutSummaryTrial, CreditGate, CreditGateError, CreditGateHeading, CreditGateLoading, CreditGateRoot, CreditGateSubheading, CreditGateTopup, LegalFooter, type LegalFooterProps, PaywallNotice, Balance as PaywallNoticeBalance, type PaywallNoticeClassNames, EmbeddedCheckout as PaywallNoticeEmbeddedCheckout, Heading as PaywallNoticeHeading, HostedCheckoutLink as PaywallNoticeHostedCheckoutLink, Message as PaywallNoticeMessage, Plans as PaywallNoticePlans, ProductContext as PaywallNoticeProductContext, Retry as PaywallNoticeRetry, Root$1 as PaywallNoticeRoot, type PaywallNoticeRootProps, PlanSelector, PlanSelectorCard, PlanSelectorCardBadge, PlanSelectorCardCurrency, PlanSelectorCardInterval, PlanSelectorCardName, PlanSelectorCardPrice, PlanSelectorCurrencySwitcher, PlanSelectorError, PlanSelectorGrid, PlanSelectorHeading, PlanSelectorLoading, PlanSelectorRoot, Slot, Slottable, TopupForm, TopupFormError, TopupFormLegalFooter, TopupFormLoading, TopupFormPaymentElement, TopupFormRoot, TopupFormSubmitButton, UsageMeter, Bar as UsageMeterBar, type UsageMeterClassNames, Empty as UsageMeterEmpty, Label as UsageMeterLabel, Loading as UsageMeterLoading, Percentage as UsageMeterPercentage, ResetsIn as UsageMeterResetsIn, Root as UsageMeterRoot, type UsageMeterRootProps, composeEventHandlers, composeRefs, setRef, useAmountPicker, useAmountPickerCopy, useCancelledPlanNotice, useCheckoutSummary, useCreditGate, usePaywallNotice, usePlanSelector, useTopupForm, useUsageMeter };
989
+ export { AmountPicker, AmountPickerConfirm, AmountPickerCustom, AmountPickerOption, AmountPickerRoot, AutoRecharge, AutoRechargeActions, AutoRechargeAmountField, AutoRechargeBody, AutoRechargeCancelButton, AutoRechargeCard, AutoRechargeCardHeading, AutoRechargeCardSetup, AutoRechargeCardSummary, AutoRechargeContent, AutoRechargeDescription, AutoRechargeDisableButton, AutoRechargeEnableQuestion, AutoRechargeEnableRow, AutoRechargeEnableSentence, AutoRechargeEnableSwitch, AutoRechargeError, AutoRechargeFields, AutoRechargeFormState, AutoRechargeHeader, AutoRechargeHint, AutoRechargeInputPayload, AutoRechargeLoading, AutoRechargeOverlay, AutoRechargeRoot, AutoRechargeSaveButton, AutoRechargeSetup, AutoRechargeStatus, AutoRechargeStatusMessage, AutoRechargeSummary, AutoRechargeThresholdField, AutoRechargeTitle, AutoRechargeTopupField, AutoRechargeTrigger, AutoRechargeUnitToggle, AutoRechargeValidationError, CancelledPlanNotice, CancelledPlanNoticeAccessUntil, CancelledPlanNoticeCancelledOn, CancelledPlanNoticeDaysRemaining, CancelledPlanNoticeExpires, CancelledPlanNoticeHeading, CancelledPlanNoticeReactivateButton, CancelledPlanNoticeReason, CancelledPlanNoticeRoot, CheckoutSummary, CheckoutSummaryPlan, CheckoutSummaryPrice, CheckoutSummaryProduct, CheckoutSummaryRoot, CheckoutSummaryTaxNote, CheckoutSummaryTrial, CreditGate, CreditGateError, CreditGateHeading, CreditGateLoading, CreditGateRoot, CreditGateSubheading, CreditGateTopup, LegalFooter, type LegalFooterProps, PaywallNotice, Balance as PaywallNoticeBalance, type PaywallNoticeClassNames, EmbeddedCheckout as PaywallNoticeEmbeddedCheckout, Heading as PaywallNoticeHeading, HostedCheckoutLink as PaywallNoticeHostedCheckoutLink, Message as PaywallNoticeMessage, Plans as PaywallNoticePlans, ProductContext as PaywallNoticeProductContext, Retry as PaywallNoticeRetry, Root$1 as PaywallNoticeRoot, type PaywallNoticeRootProps, PlanSelector, PlanSelectorCard, PlanSelectorCardBadge, PlanSelectorCardCurrency, PlanSelectorCardInterval, PlanSelectorCardName, PlanSelectorCardPrice, PlanSelectorCurrencySwitcher, PlanSelectorError, PlanSelectorGrid, PlanSelectorHeading, PlanSelectorLoading, PlanSelectorRoot, Slot, Slottable, TopupForm, TopupFormError, TopupFormLegalFooter, TopupFormLoading, TopupFormPaymentElement, TopupFormRoot, TopupFormSubmitButton, UsageMeter, Bar as UsageMeterBar, type UsageMeterClassNames, Empty as UsageMeterEmpty, Label as UsageMeterLabel, Loading as UsageMeterLoading, Percentage as UsageMeterPercentage, ResetsIn as UsageMeterResetsIn, Root as UsageMeterRoot, type UsageMeterRootProps, composeEventHandlers, composeRefs, setRef, useAmountPicker, useAmountPickerCopy, useAutoRechargeForm, useCancelledPlanNotice, useCheckoutSummary, useCreditGate, usePaywallNotice, usePlanSelector, useTopupForm, useUsageMeter };
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React, { Ref } from 'react';
3
- import { b as Plan, v as Product, q as UseTopupAmountSelectorReturn, u as PurchaseInfo, T as TopupFormProps } from '../shared-lIhc8DS3.js';
4
- export { x as BootstrapPlanLike, y as CheckoutStep, K as SuccessMeta } from '../shared-lIhc8DS3.js';
5
- import { j as PaywallStructuredContent, U as UsageSnapshot } from '../index-BwwdMBdt.js';
6
- export { E as ActivationFlow, F as ActivationFlowActivateButton, G as ActivationFlowActivated, H as ActivationFlowAmountPicker, I as ActivationFlowContinueButton, J as ActivationFlowError, K as ActivationFlowLoading, L as ActivationFlowRetrying, N as ActivationFlowRoot, A as ActivationFlowStep, O as ActivationFlowSummary, B as BalanceBadge, k as CancelPlanButton, m as CheckoutStatus, n as CheckoutSteps, Q as CheckoutStepsAmountContinueButton, R as CheckoutStepsAmountPicker, S as CheckoutStepsBackLink, T as CheckoutStepsIfStep, V as CheckoutStepsPayment, W as CheckoutStepsPlanContinueButton, X as CheckoutStepsPlanGrid, Y as CheckoutStepsRoot, Z as CheckoutStepsStepHeading, _ as CheckoutStepsStepMessage, $ as CheckoutStepsSuccess, M as MandateText, q as MandateTextProps, a0 as PaymentForm, c as PaymentFormCardElement, a as PaymentFormCustomerFields, h as PaymentFormError, i as PaymentFormLegalFooter, g as PaymentFormLoading, d as PaymentFormMandateText, b as PaymentFormPaymentElement, a1 as PaymentFormRoot, f as PaymentFormSubmitButton, P as PaymentFormSummary, e as PaymentFormTermsCheckbox, r as PlanBadge, s as ProductBadge, t as PurchaseGate, a2 as PurchaseGateAllowed, a3 as PurchaseGateBlocked, a4 as PurchaseGateError, a5 as PurchaseGateLoading, a6 as PurchaseGateRoot, a7 as useActivationFlow, z as useCheckoutStepsContext, a8 as usePurchaseGate } from '../index-BwwdMBdt.js';
3
+ import { b as Plan, y as Product, r as UseTopupAmountSelectorReturn, x as PurchaseInfo, T as TopupFormProps, c as SaveAutoRechargeResponse, t as AutoRechargeConfig } from '../shared-D8raw1Nv.js';
4
+ export { D as BootstrapPlanLike, E as CheckoutStep, O as SuccessMeta } from '../shared-D8raw1Nv.js';
5
+ import { A as AutoRechargeInputPayload, G as AmountInputUnit, H as AutoRechargeFormState, j as PaywallStructuredContent, U as UsageSnapshot } from '../index-w_VMlKm5.js';
6
+ export { I as ActivationFlow, J as ActivationFlowActivateButton, K as ActivationFlowActivated, L as ActivationFlowAmountPicker, N as ActivationFlowContinueButton, O as ActivationFlowError, Q as ActivationFlowLoading, R as ActivationFlowRetrying, S as ActivationFlowRoot, k as ActivationFlowStep, T as ActivationFlowSummary, B as BalanceBadge, l as CancelPlanButton, n as CheckoutStatus, o as CheckoutSteps, V as CheckoutStepsAmountContinueButton, W as CheckoutStepsAmountPicker, X as CheckoutStepsBackLink, Y as CheckoutStepsIfStep, Z as CheckoutStepsPayment, _ as CheckoutStepsPlanContinueButton, $ as CheckoutStepsPlanGrid, a0 as CheckoutStepsRoot, a1 as CheckoutStepsStepHeading, a2 as CheckoutStepsStepMessage, a3 as CheckoutStepsSuccess, M as MandateText, r as MandateTextProps, a4 as PaymentForm, c as PaymentFormCardElement, a as PaymentFormCustomerFields, h as PaymentFormError, i as PaymentFormLegalFooter, g as PaymentFormLoading, d as PaymentFormMandateText, b as PaymentFormPaymentElement, a5 as PaymentFormRoot, f as PaymentFormSubmitButton, P as PaymentFormSummary, e as PaymentFormTermsCheckbox, s as PlanBadge, t as ProductBadge, u as PurchaseGate, a6 as PurchaseGateAllowed, a7 as PurchaseGateBlocked, a8 as PurchaseGateError, a9 as PurchaseGateLoading, aa as PurchaseGateRoot, ab as useActivationFlow, E as useCheckoutStepsContext, ac as usePurchaseGate } from '../index-w_VMlKm5.js';
7
7
  import { PaymentElement } from '@stripe/react-stripe-js';
8
8
  import { Stripe, StripeElements } from '@stripe/stripe-js';
9
9
  import '../adapters/auth.js';
@@ -592,6 +592,181 @@ declare const TopupForm: {
592
592
  };
593
593
  declare function useTopupForm(): TopupFormContextValue;
594
594
 
595
+ type AutoRechargeDataState = 'loading' | 'idle' | 'saving' | 'disabling' | 'setup' | 'error';
596
+ type AutoRechargeContextValue = {
597
+ form: AutoRechargeFormState;
598
+ updateForm: (patch: Partial<AutoRechargeFormState>) => void;
599
+ resetForm: () => void;
600
+ validationError: string | null;
601
+ currency: string;
602
+ config: AutoRechargeConfig | null;
603
+ loading: boolean;
604
+ saving: boolean;
605
+ disabling: boolean;
606
+ error: Error | null;
607
+ statusMessage: string | null;
608
+ setup: SaveAutoRechargeResponse | null;
609
+ dataState: AutoRechargeDataState;
610
+ creditsPerMinorUnit: number | null;
611
+ displayExchangeRate: number | null;
612
+ canToggleUnits: boolean;
613
+ isApproximate: boolean;
614
+ summaryLine: string | null;
615
+ savedSummaryLine: string | null;
616
+ deferCardSetup: boolean;
617
+ fixedTopupHint: string | null;
618
+ open: boolean;
619
+ setOpen: (next: boolean) => void;
620
+ titleId: string;
621
+ registerTriggerRef: (node: HTMLButtonElement | null) => void;
622
+ focusTrigger: () => void;
623
+ save: () => Promise<void>;
624
+ disable: () => Promise<void>;
625
+ completeSetup: () => Promise<void>;
626
+ flipUnit: (valueKey: 'thresholdAmountMajor' | 'topupAmountMajor', unitKey: 'thresholdUnit' | 'topupUnit', baseValueKey: 'thresholdBaseValue' | 'topupBaseValue', baseUnitKey: 'thresholdBaseUnit' | 'topupBaseUnit', currentUnit: AmountInputUnit) => void;
627
+ };
628
+ type UnitToggleProps = {
629
+ unit: AmountInputUnit;
630
+ fieldLabel: string;
631
+ onToggle: () => void;
632
+ };
633
+ type CardSetupProps = {
634
+ setup: SaveAutoRechargeResponse;
635
+ onComplete: () => void | Promise<void>;
636
+ };
637
+ declare function CardSetup({ setup, onComplete }: CardSetupProps): react_jsx_runtime.JSX.Element;
638
+ declare const AutoRechargeRoot: React.ForwardRefExoticComponent<{
639
+ currency?: string;
640
+ defaultThresholdAmountMajor?: number;
641
+ defaultTopupAmountMajor?: number;
642
+ open?: boolean;
643
+ defaultOpen?: boolean;
644
+ onOpenChange?: (open: boolean) => void;
645
+ onSetupRequired?: (result: SaveAutoRechargeResponse) => void | Promise<void>;
646
+ onSaved?: (result: SaveAutoRechargeResponse) => void | Promise<void>;
647
+ onDisabled?: () => void | Promise<void>;
648
+ deferCardSetup?: boolean;
649
+ onPendingConfig?: (payload: AutoRechargeInputPayload) => void | Promise<void>;
650
+ asChild?: boolean;
651
+ children?: React.ReactNode;
652
+ } & Omit<React.HTMLAttributes<HTMLElement>, "children"> & React.RefAttributes<HTMLElement>>;
653
+ declare const AutoRechargeLoading: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
654
+ declare const AutoRechargeCard: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
655
+ declare const AutoRechargeCardHeading: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
656
+ declare const AutoRechargeCardSummary: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
657
+ declare const AutoRechargeTrigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
658
+ asChild?: boolean;
659
+ } & React.RefAttributes<HTMLButtonElement>>;
660
+ declare const AutoRechargeOverlay: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
661
+ declare const AutoRechargeContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
662
+ children?: React.ReactNode;
663
+ } & React.RefAttributes<HTMLDivElement>>;
664
+ declare const AutoRechargeTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
665
+ declare const AutoRechargeEnableQuestion: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
666
+ declare const AutoRechargeEnableSentence: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>>;
667
+ declare const AutoRechargeEnableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
668
+ declare const AutoRechargeCancelButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
669
+ asChild?: boolean;
670
+ } & React.RefAttributes<HTMLButtonElement>>;
671
+ declare const AutoRechargeHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
672
+ declare const AutoRechargeDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
673
+ declare const AutoRechargeEnableSwitch: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & {
674
+ asChild?: boolean;
675
+ appearance?: "switch" | "checkbox";
676
+ } & React.RefAttributes<HTMLInputElement>>;
677
+ declare const AutoRechargeFields: React.ForwardRefExoticComponent<React.FieldsetHTMLAttributes<HTMLFieldSetElement> & React.RefAttributes<HTMLFieldSetElement>>;
678
+ declare const AutoRechargeSetup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
679
+ declare const AutoRechargeBody: React.ForwardRefExoticComponent<React.FieldsetHTMLAttributes<HTMLFieldSetElement> & React.RefAttributes<HTMLFieldSetElement>>;
680
+ declare const AutoRechargeSummary: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
681
+ declare const AutoRechargeThresholdField: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
682
+ declare const AutoRechargeTopupField: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
683
+ declare const AutoRechargeAmountField: React.ForwardRefExoticComponent<{
684
+ field: "threshold" | "fixed";
685
+ showLabel?: boolean;
686
+ asChild?: boolean;
687
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "children"> & React.RefAttributes<HTMLInputElement>>;
688
+ declare const AutoRechargeUnitToggle: React.ForwardRefExoticComponent<UnitToggleProps & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
689
+ declare const AutoRechargeHint: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
690
+ declare const AutoRechargeValidationError: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
691
+ declare const AutoRechargeActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
692
+ declare const AutoRechargeSaveButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
693
+ asChild?: boolean;
694
+ } & React.RefAttributes<HTMLButtonElement>>;
695
+ declare const AutoRechargeDisableButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
696
+ asChild?: boolean;
697
+ } & React.RefAttributes<HTMLButtonElement>>;
698
+ declare const AutoRechargeError: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
699
+ declare const AutoRechargeStatusMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
700
+ declare const AutoRechargeStatus: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
701
+ declare const AutoRechargeCardSetup: typeof CardSetup;
702
+ declare const AutoRecharge: {
703
+ readonly Root: React.ForwardRefExoticComponent<{
704
+ currency?: string;
705
+ defaultThresholdAmountMajor?: number;
706
+ defaultTopupAmountMajor?: number;
707
+ open?: boolean;
708
+ defaultOpen?: boolean;
709
+ onOpenChange?: (open: boolean) => void;
710
+ onSetupRequired?: (result: SaveAutoRechargeResponse) => void | Promise<void>;
711
+ onSaved?: (result: SaveAutoRechargeResponse) => void | Promise<void>;
712
+ onDisabled?: () => void | Promise<void>;
713
+ deferCardSetup?: boolean;
714
+ onPendingConfig?: (payload: AutoRechargeInputPayload) => void | Promise<void>;
715
+ asChild?: boolean;
716
+ children?: React.ReactNode;
717
+ } & Omit<React.HTMLAttributes<HTMLElement>, "children"> & React.RefAttributes<HTMLElement>>;
718
+ readonly Loading: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
719
+ readonly Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
720
+ readonly CardHeading: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
721
+ readonly CardSummary: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
722
+ readonly Trigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
723
+ asChild?: boolean;
724
+ } & React.RefAttributes<HTMLButtonElement>>;
725
+ readonly Overlay: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
726
+ readonly Content: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
727
+ children?: React.ReactNode;
728
+ } & React.RefAttributes<HTMLDivElement>>;
729
+ readonly Title: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
730
+ readonly EnableQuestion: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
731
+ readonly EnableSentence: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>>;
732
+ readonly EnableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
733
+ readonly CancelButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
734
+ asChild?: boolean;
735
+ } & React.RefAttributes<HTMLButtonElement>>;
736
+ readonly Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
737
+ readonly Description: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
738
+ readonly EnableSwitch: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & {
739
+ asChild?: boolean;
740
+ appearance?: "switch" | "checkbox";
741
+ } & React.RefAttributes<HTMLInputElement>>;
742
+ readonly Fields: React.ForwardRefExoticComponent<React.FieldsetHTMLAttributes<HTMLFieldSetElement> & React.RefAttributes<HTMLFieldSetElement>>;
743
+ readonly Setup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
744
+ readonly Body: React.ForwardRefExoticComponent<React.FieldsetHTMLAttributes<HTMLFieldSetElement> & React.RefAttributes<HTMLFieldSetElement>>;
745
+ readonly Summary: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
746
+ readonly ThresholdField: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
747
+ readonly TopupField: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
748
+ readonly AmountField: React.ForwardRefExoticComponent<{
749
+ field: "threshold" | "fixed";
750
+ showLabel?: boolean;
751
+ asChild?: boolean;
752
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "children"> & React.RefAttributes<HTMLInputElement>>;
753
+ readonly UnitToggle: React.ForwardRefExoticComponent<UnitToggleProps & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
754
+ readonly Hint: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
755
+ readonly ValidationError: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
756
+ readonly Actions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
757
+ readonly SaveButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
758
+ asChild?: boolean;
759
+ } & React.RefAttributes<HTMLButtonElement>>;
760
+ readonly DisableButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
761
+ asChild?: boolean;
762
+ } & React.RefAttributes<HTMLButtonElement>>;
763
+ readonly Error: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
764
+ readonly StatusMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
765
+ readonly Status: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
766
+ readonly CardSetup: typeof CardSetup;
767
+ };
768
+ declare function useAutoRechargeForm(): AutoRechargeContextValue;
769
+
595
770
  /**
596
771
  * LegalFooter primitive.
597
772
  *
@@ -811,4 +986,4 @@ declare const UsageMeter: React.ForwardRefExoticComponent<UsageMeterRootProps &
811
986
 
812
987
  declare function useUsageMeter(): UsageMeterContextValue;
813
988
 
814
- export { AmountPicker, AmountPickerConfirm, AmountPickerCustom, AmountPickerOption, AmountPickerRoot, CancelledPlanNotice, CancelledPlanNoticeAccessUntil, CancelledPlanNoticeCancelledOn, CancelledPlanNoticeDaysRemaining, CancelledPlanNoticeExpires, CancelledPlanNoticeHeading, CancelledPlanNoticeReactivateButton, CancelledPlanNoticeReason, CancelledPlanNoticeRoot, CheckoutSummary, CheckoutSummaryPlan, CheckoutSummaryPrice, CheckoutSummaryProduct, CheckoutSummaryRoot, CheckoutSummaryTaxNote, CheckoutSummaryTrial, CreditGate, CreditGateError, CreditGateHeading, CreditGateLoading, CreditGateRoot, CreditGateSubheading, CreditGateTopup, LegalFooter, type LegalFooterProps, PaywallNotice, Balance as PaywallNoticeBalance, type PaywallNoticeClassNames, EmbeddedCheckout as PaywallNoticeEmbeddedCheckout, Heading as PaywallNoticeHeading, HostedCheckoutLink as PaywallNoticeHostedCheckoutLink, Message as PaywallNoticeMessage, Plans as PaywallNoticePlans, ProductContext as PaywallNoticeProductContext, Retry as PaywallNoticeRetry, Root$1 as PaywallNoticeRoot, type PaywallNoticeRootProps, PlanSelector, PlanSelectorCard, PlanSelectorCardBadge, PlanSelectorCardCurrency, PlanSelectorCardInterval, PlanSelectorCardName, PlanSelectorCardPrice, PlanSelectorCurrencySwitcher, PlanSelectorError, PlanSelectorGrid, PlanSelectorHeading, PlanSelectorLoading, PlanSelectorRoot, Slot, Slottable, TopupForm, TopupFormError, TopupFormLegalFooter, TopupFormLoading, TopupFormPaymentElement, TopupFormRoot, TopupFormSubmitButton, UsageMeter, Bar as UsageMeterBar, type UsageMeterClassNames, Empty as UsageMeterEmpty, Label as UsageMeterLabel, Loading as UsageMeterLoading, Percentage as UsageMeterPercentage, ResetsIn as UsageMeterResetsIn, Root as UsageMeterRoot, type UsageMeterRootProps, composeEventHandlers, composeRefs, setRef, useAmountPicker, useAmountPickerCopy, useCancelledPlanNotice, useCheckoutSummary, useCreditGate, usePaywallNotice, usePlanSelector, useTopupForm, useUsageMeter };
989
+ export { AmountPicker, AmountPickerConfirm, AmountPickerCustom, AmountPickerOption, AmountPickerRoot, AutoRecharge, AutoRechargeActions, AutoRechargeAmountField, AutoRechargeBody, AutoRechargeCancelButton, AutoRechargeCard, AutoRechargeCardHeading, AutoRechargeCardSetup, AutoRechargeCardSummary, AutoRechargeContent, AutoRechargeDescription, AutoRechargeDisableButton, AutoRechargeEnableQuestion, AutoRechargeEnableRow, AutoRechargeEnableSentence, AutoRechargeEnableSwitch, AutoRechargeError, AutoRechargeFields, AutoRechargeFormState, AutoRechargeHeader, AutoRechargeHint, AutoRechargeInputPayload, AutoRechargeLoading, AutoRechargeOverlay, AutoRechargeRoot, AutoRechargeSaveButton, AutoRechargeSetup, AutoRechargeStatus, AutoRechargeStatusMessage, AutoRechargeSummary, AutoRechargeThresholdField, AutoRechargeTitle, AutoRechargeTopupField, AutoRechargeTrigger, AutoRechargeUnitToggle, AutoRechargeValidationError, CancelledPlanNotice, CancelledPlanNoticeAccessUntil, CancelledPlanNoticeCancelledOn, CancelledPlanNoticeDaysRemaining, CancelledPlanNoticeExpires, CancelledPlanNoticeHeading, CancelledPlanNoticeReactivateButton, CancelledPlanNoticeReason, CancelledPlanNoticeRoot, CheckoutSummary, CheckoutSummaryPlan, CheckoutSummaryPrice, CheckoutSummaryProduct, CheckoutSummaryRoot, CheckoutSummaryTaxNote, CheckoutSummaryTrial, CreditGate, CreditGateError, CreditGateHeading, CreditGateLoading, CreditGateRoot, CreditGateSubheading, CreditGateTopup, LegalFooter, type LegalFooterProps, PaywallNotice, Balance as PaywallNoticeBalance, type PaywallNoticeClassNames, EmbeddedCheckout as PaywallNoticeEmbeddedCheckout, Heading as PaywallNoticeHeading, HostedCheckoutLink as PaywallNoticeHostedCheckoutLink, Message as PaywallNoticeMessage, Plans as PaywallNoticePlans, ProductContext as PaywallNoticeProductContext, Retry as PaywallNoticeRetry, Root$1 as PaywallNoticeRoot, type PaywallNoticeRootProps, PlanSelector, PlanSelectorCard, PlanSelectorCardBadge, PlanSelectorCardCurrency, PlanSelectorCardInterval, PlanSelectorCardName, PlanSelectorCardPrice, PlanSelectorCurrencySwitcher, PlanSelectorError, PlanSelectorGrid, PlanSelectorHeading, PlanSelectorLoading, PlanSelectorRoot, Slot, Slottable, TopupForm, TopupFormError, TopupFormLegalFooter, TopupFormLoading, TopupFormPaymentElement, TopupFormRoot, TopupFormSubmitButton, UsageMeter, Bar as UsageMeterBar, type UsageMeterClassNames, Empty as UsageMeterEmpty, Label as UsageMeterLabel, Loading as UsageMeterLoading, Percentage as UsageMeterPercentage, ResetsIn as UsageMeterResetsIn, Root as UsageMeterRoot, type UsageMeterRootProps, composeEventHandlers, composeRefs, setRef, useAmountPicker, useAmountPickerCopy, useAutoRechargeForm, useCancelledPlanNotice, useCheckoutSummary, useCreditGate, usePaywallNotice, usePlanSelector, useTopupForm, useUsageMeter };
@@ -9,6 +9,40 @@ import {
9
9
  ActivationFlowRetrying,
10
10
  ActivationFlowRoot,
11
11
  ActivationFlowSummary,
12
+ AutoRecharge,
13
+ AutoRechargeActions,
14
+ AutoRechargeAmountField,
15
+ AutoRechargeBody,
16
+ AutoRechargeCancelButton,
17
+ AutoRechargeCard,
18
+ AutoRechargeCardHeading,
19
+ AutoRechargeCardSetup,
20
+ AutoRechargeCardSummary,
21
+ AutoRechargeContent,
22
+ AutoRechargeDescription,
23
+ AutoRechargeDisableButton,
24
+ AutoRechargeEnableQuestion,
25
+ AutoRechargeEnableRow,
26
+ AutoRechargeEnableSentence,
27
+ AutoRechargeEnableSwitch,
28
+ AutoRechargeError,
29
+ AutoRechargeFields,
30
+ AutoRechargeHeader,
31
+ AutoRechargeHint,
32
+ AutoRechargeLoading,
33
+ AutoRechargeOverlay,
34
+ AutoRechargeRoot,
35
+ AutoRechargeSaveButton,
36
+ AutoRechargeSetup,
37
+ AutoRechargeStatus,
38
+ AutoRechargeStatusMessage,
39
+ AutoRechargeSummary,
40
+ AutoRechargeThresholdField,
41
+ AutoRechargeTitle,
42
+ AutoRechargeTopupField,
43
+ AutoRechargeTrigger,
44
+ AutoRechargeUnitToggle,
45
+ AutoRechargeValidationError,
12
46
  Balance,
13
47
  CheckoutSteps,
14
48
  CheckoutStepsAmountContinueButton,
@@ -47,11 +81,12 @@ import {
47
81
  Retry,
48
82
  Root as Root2,
49
83
  useActivationFlow,
84
+ useAutoRechargeForm,
50
85
  useCheckoutSteps,
51
86
  useCreditGate,
52
87
  usePaywallNotice,
53
88
  usePurchaseGate
54
- } from "../chunk-K7ZUJI26.js";
89
+ } from "../chunk-GFWMLRR3.js";
55
90
  import {
56
91
  AmountPicker,
57
92
  AmountPickerConfirm,
@@ -130,8 +165,9 @@ import {
130
165
  usePlanSelector,
131
166
  useTopupForm,
132
167
  useUsageMeter
133
- } from "../chunk-DW5FJUUG.js";
168
+ } from "../chunk-6RR4J74H.js";
134
169
  import "../chunk-UMXOAUW7.js";
170
+ import "../chunk-MLKGABMK.js";
135
171
  export {
136
172
  ActivationFlow,
137
173
  ActivationFlowActivateButton,
@@ -148,6 +184,40 @@ export {
148
184
  AmountPickerCustom,
149
185
  AmountPickerOption,
150
186
  AmountPickerRoot,
187
+ AutoRecharge,
188
+ AutoRechargeActions,
189
+ AutoRechargeAmountField,
190
+ AutoRechargeBody,
191
+ AutoRechargeCancelButton,
192
+ AutoRechargeCard,
193
+ AutoRechargeCardHeading,
194
+ AutoRechargeCardSetup,
195
+ AutoRechargeCardSummary,
196
+ AutoRechargeContent,
197
+ AutoRechargeDescription,
198
+ AutoRechargeDisableButton,
199
+ AutoRechargeEnableQuestion,
200
+ AutoRechargeEnableRow,
201
+ AutoRechargeEnableSentence,
202
+ AutoRechargeEnableSwitch,
203
+ AutoRechargeError,
204
+ AutoRechargeFields,
205
+ AutoRechargeHeader,
206
+ AutoRechargeHint,
207
+ AutoRechargeLoading,
208
+ AutoRechargeOverlay,
209
+ AutoRechargeRoot,
210
+ AutoRechargeSaveButton,
211
+ AutoRechargeSetup,
212
+ AutoRechargeStatus,
213
+ AutoRechargeStatusMessage,
214
+ AutoRechargeSummary,
215
+ AutoRechargeThresholdField,
216
+ AutoRechargeTitle,
217
+ AutoRechargeTopupField,
218
+ AutoRechargeTrigger,
219
+ AutoRechargeUnitToggle,
220
+ AutoRechargeValidationError,
151
221
  BalanceBadge,
152
222
  CancelPlanButton,
153
223
  CancelledPlanNotice,
@@ -253,6 +323,7 @@ export {
253
323
  useActivationFlow,
254
324
  useAmountPicker,
255
325
  useAmountPickerCopy,
326
+ useAutoRechargeForm,
256
327
  useCancelledPlanNotice,
257
328
  useCheckoutSteps as useCheckoutStepsContext,
258
329
  useCheckoutSummary,