@bunnyapp/components 1.8.0-beta.54 → 1.8.0-beta.56
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/README.md +154 -1
- package/dist/cjs/index.js +65 -32
- package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +6 -40
- package/dist/cjs/types/src/components/Checkout/Checkout.stories.d.ts +15 -0
- package/dist/cjs/types/src/components/Checkout/CheckoutContent.d.ts +11 -0
- package/dist/cjs/types/src/components/Checkout/components/CheckoutFlowForm.d.ts +4 -0
- package/dist/cjs/types/src/components/Checkout/graphql/fragments/Checkout_QuoteFragment.d.ts +22 -0
- package/dist/{esm/types/src/components/Signup/components/SignupForm/fragments/SignupForm_AccountFragment.d.ts → cjs/types/src/components/Checkout/graphql/fragments/useCheckoutAccount_AccountFragment.d.ts} +6 -9
- package/dist/cjs/types/src/components/Checkout/graphql/mutations/accountUpdate.d.ts +84 -0
- package/dist/cjs/types/src/components/Checkout/graphql/mutations/contactUpdate.d.ts +40 -0
- package/dist/cjs/types/src/components/Checkout/graphql/mutations/quoteAddCoupon.d.ts +11 -0
- package/dist/cjs/types/src/components/Checkout/graphql/mutations/quoteChangeUpdate.d.ts +7 -0
- package/dist/cjs/types/src/components/Checkout/graphql/mutations/quoteCompose.d.ts +9 -0
- package/dist/cjs/types/src/components/Checkout/graphql/mutations/quoteRemoveCoupon.d.ts +11 -0
- package/dist/cjs/types/src/components/Checkout/graphql/mutations/quoteSetDocumentTemplate.d.ts +8 -0
- package/dist/cjs/types/src/components/Checkout/graphql/queries/getCheckoutAccount.d.ts +10 -0
- package/dist/cjs/types/src/components/Checkout/graphql/queries/getCheckoutQuote.d.ts +10 -0
- package/dist/cjs/types/src/components/Checkout/hooks/useCheckoutAccount.d.ts +21 -0
- package/dist/cjs/types/src/components/Checkout/hooks/useCheckoutCoupon.d.ts +20 -0
- package/dist/cjs/types/src/components/Checkout/hooks/useCheckoutQuote.d.ts +22 -0
- package/dist/cjs/types/src/components/Checkout/hooks/useCheckoutSubmit.d.ts +13 -0
- package/dist/cjs/types/src/components/Checkout/hooks/useSetCheckoutQuoteQueryData.d.ts +4 -0
- package/dist/cjs/types/src/components/Checkout/index.d.ts +4 -0
- package/dist/cjs/types/src/components/Checkout/utils/accountDefaultValues.d.ts +7 -0
- package/dist/cjs/types/src/components/Checkout/utils/storeNewPaymentMethod.d.ts +8 -0
- package/dist/cjs/types/src/components/CheckoutShared/appearance/CheckoutAppearanceProvider.d.ts +14 -0
- package/dist/cjs/types/src/components/CheckoutShared/appearance/adapters/stripe.d.ts +9 -0
- package/dist/cjs/types/src/components/CheckoutShared/appearance/appearance.types.test.d.ts +3 -0
- package/dist/cjs/types/src/components/CheckoutShared/appearance/index.d.ts +3 -0
- package/dist/cjs/types/src/components/CheckoutShared/appearance/resolveAppearance.d.ts +21 -0
- package/dist/cjs/types/src/components/CheckoutShared/appearance/ruleGroups.d.ts +17 -0
- package/dist/cjs/types/src/components/CheckoutShared/appearance/rules.d.ts +27 -0
- package/dist/cjs/types/src/components/CheckoutShared/appearance/rulesToCss.d.ts +5 -0
- package/dist/cjs/types/src/components/CheckoutShared/appearance/scripts/dumpAppearance.d.ts +1 -0
- package/dist/cjs/types/src/components/CheckoutShared/appearance/types.d.ts +144 -0
- package/dist/cjs/types/src/components/CheckoutShared/appearance/variables.d.ts +29 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutFooter.d.ts +4 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/CardBrandIcons.d.ts +2 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/CheckoutFields.d.ts +9 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/CheckoutForm.d.ts +10 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/DemoPayCardBox.d.ts +6 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/DemoPayCardBox.rules.d.ts +30 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/Field.d.ts +24 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/Field.rules.d.ts +44 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/PayButton.d.ts +8 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/PaymentFields.d.ts +7 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/PaymentTile.d.ts +10 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/PaymentTile.rules.d.ts +53 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/PluginTiles.d.ts +4 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/SavedPaymentMethodTiles.d.ts +4 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/StripePaymentElement.d.ts +8 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutLoadingOverlay.d.ts +6 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutRoot.d.ts +28 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutScreen.d.ts +27 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutScreen.rules.d.ts +125 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSplitScreenContainer.d.ts +10 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutStripeElements.d.ts +13 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/CheckoutCouponEditor.d.ts +8 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/CheckoutQuoteDocument.d.ts +15 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/CheckoutReceipt.d.ts +13 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/CheckoutSummary.d.ts +12 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/components/CheckoutSummaryLineItem.d.ts +10 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/components/CheckoutSummaryLineItems.d.ts +7 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/components/CheckoutSummaryTotals.d.ts +24 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/components/SummaryDisclosure.d.ts +10 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/components/SummaryHeader.d.ts +4 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/components/SummaryLayout.d.ts +16 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/SuccessDisplay/SuccessDisplay.d.ts +8 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/controls/Button.d.ts +24 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/controls/Button.rules.d.ts +96 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/controls/Select.d.ts +17 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/controls/Select.rules.d.ts +55 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/controls/Spinner.d.ts +4 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/controls/TextInput.d.ts +7 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/controls/TextInput.rules.d.ts +68 -0
- package/dist/cjs/types/src/components/CheckoutShared/contexts/CheckoutConfigContext.d.ts +69 -0
- package/dist/cjs/types/src/components/CheckoutShared/contexts/CheckoutFieldsContext.d.ts +6 -0
- package/dist/cjs/types/src/components/CheckoutShared/contexts/CheckoutFormContext.d.ts +7 -0
- package/dist/cjs/types/src/components/CheckoutShared/contexts/CheckoutPaymentMethodsContext.d.ts +37 -0
- package/dist/cjs/types/src/components/CheckoutShared/contexts/CheckoutPricingContext.d.ts +23 -0
- package/dist/cjs/types/src/components/CheckoutShared/contexts/CheckoutResultContext.d.ts +20 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/CheckoutQuoteDocument_QuoteFragment.d.ts +14 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/CheckoutReceipt_QuoteFragment.d.ts +31 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/CheckoutResult_QuoteFragment.d.ts +15 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/CheckoutSummaryLineItems_QuoteFragment.d.ts +23 -0
- package/dist/cjs/types/src/components/{Signup/components/CheckoutSummary → CheckoutShared/graphql}/fragments/CheckoutSummary_PriceListFragment.d.ts +5 -12
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/CheckoutSummary_QuoteFragment.d.ts +20 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/SavedPaymentMethodTiles_PaymentMethodFragment.d.ts +16 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/SuccessDisplay_PaymentMethodFragment.d.ts +14 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/SuccessDisplay_PriceListFragment.d.ts +11 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/SuccessDisplay_QuoteFragment.d.ts +18 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/useCheckoutPriceList_PriceListFragment.d.ts +15 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/mutations/priceListAmountDuePreview.d.ts +53 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/mutations/taxationRequiredAccountFields.d.ts +10 -0
- package/dist/{esm/types/src/components/Signup → cjs/types/src/components/CheckoutShared/graphql}/queries/getPriceList.d.ts +1 -1
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useAmountDuePreview.d.ts +33 -0
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useCheckoutBillingDetails.d.ts +3 -0
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useCheckoutFieldValue.d.ts +3 -0
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useCheckoutFormSubmit.d.ts +16 -0
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useCheckoutPriceList.d.ts +14 -0
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useFocusFirstField.d.ts +2 -0
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useNewPaymentMethod.d.ts +10 -0
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useStripePaymentMethodId.d.ts +9 -0
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useTaxRequiredFields.d.ts +9 -0
- package/dist/cjs/types/src/components/CheckoutShared/stories/themes.d.ts +44 -0
- package/dist/cjs/types/src/components/CheckoutShared/utils/amountPaid.d.ts +7 -0
- package/dist/cjs/types/src/components/CheckoutShared/utils/asPluginData.d.ts +6 -0
- package/dist/cjs/types/src/components/CheckoutShared/utils/billingDetails.d.ts +8 -0
- package/dist/cjs/types/src/components/CheckoutShared/utils/compactValues.d.ts +6 -0
- package/dist/cjs/types/src/components/CheckoutShared/utils/nextBillingDate.d.ts +8 -0
- package/dist/cjs/types/src/components/CheckoutShared/utils/planName.d.ts +6 -0
- package/dist/cjs/types/src/components/CheckoutShared/utils/quoteCharges.d.ts +25 -0
- package/dist/cjs/types/src/components/CheckoutShared/utils/resolveCheckoutFields.d.ts +16 -0
- package/dist/cjs/types/src/components/CheckoutShared/utils/validateDemoPayCard.d.ts +5 -0
- package/dist/cjs/types/src/components/DocumentTemplatePreview.d.ts +3 -1
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayCardCvc.d.ts +2 -1
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayCardNumber.d.ts +2 -1
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayExpiry.d.ts +2 -1
- package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeLoader.d.ts +12 -0
- package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +9 -3
- package/dist/cjs/types/src/components/PaymentForm/components/CouponEditor.d.ts +16 -0
- package/dist/cjs/types/src/components/Quote/queries/getFormattedQuote.d.ts +1 -1
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +4 -4
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +2 -2
- package/dist/cjs/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_QuoteFragment.d.ts +1 -1
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +1 -1
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +1 -1
- package/dist/cjs/types/src/components/Signup/Signup.d.ts +4 -32
- package/dist/cjs/types/src/components/Signup/Signup.stories.d.ts +5 -0
- package/dist/cjs/types/src/components/Signup/SignupContent.d.ts +7 -2
- package/dist/cjs/types/src/components/Signup/components/SignupCheckoutForm.d.ts +2 -0
- package/dist/cjs/types/src/components/Signup/graphql/mutations/quoteAccountSignup.d.ts +76 -0
- package/dist/cjs/types/src/components/Signup/hooks/useSignupCheckout.d.ts +11 -0
- package/dist/cjs/types/src/components/Signup/index.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/fragments/UpgradeContent_QuoteFragment.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +4 -4
- package/dist/cjs/types/src/components/Subscriptions/fragments/Subscriptions_SubscriptionFragment.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +3 -3
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusText.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrial.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrialExpired.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +1 -1
- package/dist/cjs/types/src/components/{Checkout → UpgradeCheckout}/QuoteCheckout.d.ts +4 -4
- package/dist/cjs/types/src/components/UpgradeCheckout/UpgradeCheckout.d.ts +41 -0
- package/dist/cjs/types/src/components/index.d.ts +4 -0
- package/dist/cjs/types/src/components/priceListPricing/PricingTooltip.d.ts +7 -2
- package/dist/cjs/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +1 -1
- package/dist/cjs/types/src/graphql/mutations/checkout.d.ts +1 -1
- package/dist/cjs/types/src/hooks/useHasTaxPlugin.d.ts +1 -0
- package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +41 -0
- package/dist/cjs/types/src/mocks/checkoutHandlers.d.ts +3 -0
- package/dist/cjs/types/src/mocks/handlers.d.ts +1 -1
- package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +26 -5
- package/dist/cjs/types/src/utils/chargeUtils.d.ts +1 -1
- package/dist/cjs/types/src/utils/couponUtils.d.ts +2 -2
- package/dist/cjs/types/src/utils/priceListUtils/priceListPriceText.d.ts +1 -1
- package/dist/esm/index.js +65 -32
- package/dist/esm/types/src/components/Checkout/Checkout.d.ts +6 -40
- package/dist/esm/types/src/components/Checkout/Checkout.stories.d.ts +15 -0
- package/dist/esm/types/src/components/Checkout/CheckoutContent.d.ts +11 -0
- package/dist/esm/types/src/components/Checkout/components/CheckoutFlowForm.d.ts +4 -0
- package/dist/esm/types/src/components/Checkout/graphql/fragments/Checkout_QuoteFragment.d.ts +22 -0
- package/dist/{cjs/types/src/components/Signup/components/SignupForm/fragments/SignupForm_AccountFragment.d.ts → esm/types/src/components/Checkout/graphql/fragments/useCheckoutAccount_AccountFragment.d.ts} +6 -9
- package/dist/esm/types/src/components/Checkout/graphql/mutations/accountUpdate.d.ts +84 -0
- package/dist/esm/types/src/components/Checkout/graphql/mutations/contactUpdate.d.ts +40 -0
- package/dist/esm/types/src/components/Checkout/graphql/mutations/quoteAddCoupon.d.ts +11 -0
- package/dist/esm/types/src/components/Checkout/graphql/mutations/quoteChangeUpdate.d.ts +7 -0
- package/dist/esm/types/src/components/Checkout/graphql/mutations/quoteCompose.d.ts +9 -0
- package/dist/esm/types/src/components/Checkout/graphql/mutations/quoteRemoveCoupon.d.ts +11 -0
- package/dist/esm/types/src/components/Checkout/graphql/mutations/quoteSetDocumentTemplate.d.ts +8 -0
- package/dist/esm/types/src/components/Checkout/graphql/queries/getCheckoutAccount.d.ts +10 -0
- package/dist/esm/types/src/components/Checkout/graphql/queries/getCheckoutQuote.d.ts +10 -0
- package/dist/esm/types/src/components/Checkout/hooks/useCheckoutAccount.d.ts +21 -0
- package/dist/esm/types/src/components/Checkout/hooks/useCheckoutCoupon.d.ts +20 -0
- package/dist/esm/types/src/components/Checkout/hooks/useCheckoutQuote.d.ts +22 -0
- package/dist/esm/types/src/components/Checkout/hooks/useCheckoutSubmit.d.ts +13 -0
- package/dist/esm/types/src/components/Checkout/hooks/useSetCheckoutQuoteQueryData.d.ts +4 -0
- package/dist/esm/types/src/components/Checkout/index.d.ts +4 -0
- package/dist/esm/types/src/components/Checkout/utils/accountDefaultValues.d.ts +7 -0
- package/dist/esm/types/src/components/Checkout/utils/storeNewPaymentMethod.d.ts +8 -0
- package/dist/esm/types/src/components/CheckoutShared/appearance/CheckoutAppearanceProvider.d.ts +14 -0
- package/dist/esm/types/src/components/CheckoutShared/appearance/adapters/stripe.d.ts +9 -0
- package/dist/esm/types/src/components/CheckoutShared/appearance/appearance.types.test.d.ts +3 -0
- package/dist/esm/types/src/components/CheckoutShared/appearance/index.d.ts +3 -0
- package/dist/esm/types/src/components/CheckoutShared/appearance/resolveAppearance.d.ts +21 -0
- package/dist/esm/types/src/components/CheckoutShared/appearance/ruleGroups.d.ts +17 -0
- package/dist/esm/types/src/components/CheckoutShared/appearance/rules.d.ts +27 -0
- package/dist/esm/types/src/components/CheckoutShared/appearance/rulesToCss.d.ts +5 -0
- package/dist/esm/types/src/components/CheckoutShared/appearance/scripts/dumpAppearance.d.ts +1 -0
- package/dist/esm/types/src/components/CheckoutShared/appearance/types.d.ts +144 -0
- package/dist/esm/types/src/components/CheckoutShared/appearance/variables.d.ts +29 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutFooter.d.ts +4 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/CardBrandIcons.d.ts +2 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/CheckoutFields.d.ts +9 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/CheckoutForm.d.ts +10 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/DemoPayCardBox.d.ts +6 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/DemoPayCardBox.rules.d.ts +30 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/Field.d.ts +24 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/Field.rules.d.ts +44 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/PayButton.d.ts +8 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/PaymentFields.d.ts +7 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/PaymentTile.d.ts +10 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/PaymentTile.rules.d.ts +53 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/PluginTiles.d.ts +4 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/SavedPaymentMethodTiles.d.ts +4 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/StripePaymentElement.d.ts +8 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutLoadingOverlay.d.ts +6 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutRoot.d.ts +28 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutScreen.d.ts +27 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutScreen.rules.d.ts +125 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSplitScreenContainer.d.ts +10 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutStripeElements.d.ts +13 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/CheckoutCouponEditor.d.ts +8 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/CheckoutQuoteDocument.d.ts +15 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/CheckoutReceipt.d.ts +13 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/CheckoutSummary.d.ts +12 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/components/CheckoutSummaryLineItem.d.ts +10 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/components/CheckoutSummaryLineItems.d.ts +7 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/components/CheckoutSummaryTotals.d.ts +24 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/components/SummaryDisclosure.d.ts +10 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/components/SummaryHeader.d.ts +4 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/components/SummaryLayout.d.ts +16 -0
- package/dist/esm/types/src/components/CheckoutShared/components/SuccessDisplay/SuccessDisplay.d.ts +8 -0
- package/dist/esm/types/src/components/CheckoutShared/components/controls/Button.d.ts +24 -0
- package/dist/esm/types/src/components/CheckoutShared/components/controls/Button.rules.d.ts +96 -0
- package/dist/esm/types/src/components/CheckoutShared/components/controls/Select.d.ts +17 -0
- package/dist/esm/types/src/components/CheckoutShared/components/controls/Select.rules.d.ts +55 -0
- package/dist/esm/types/src/components/CheckoutShared/components/controls/Spinner.d.ts +4 -0
- package/dist/esm/types/src/components/CheckoutShared/components/controls/TextInput.d.ts +7 -0
- package/dist/esm/types/src/components/CheckoutShared/components/controls/TextInput.rules.d.ts +68 -0
- package/dist/esm/types/src/components/CheckoutShared/contexts/CheckoutConfigContext.d.ts +69 -0
- package/dist/esm/types/src/components/CheckoutShared/contexts/CheckoutFieldsContext.d.ts +6 -0
- package/dist/esm/types/src/components/CheckoutShared/contexts/CheckoutFormContext.d.ts +7 -0
- package/dist/esm/types/src/components/CheckoutShared/contexts/CheckoutPaymentMethodsContext.d.ts +37 -0
- package/dist/esm/types/src/components/CheckoutShared/contexts/CheckoutPricingContext.d.ts +23 -0
- package/dist/esm/types/src/components/CheckoutShared/contexts/CheckoutResultContext.d.ts +20 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/CheckoutQuoteDocument_QuoteFragment.d.ts +14 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/CheckoutReceipt_QuoteFragment.d.ts +31 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/CheckoutResult_QuoteFragment.d.ts +15 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/CheckoutSummaryLineItems_QuoteFragment.d.ts +23 -0
- package/dist/esm/types/src/components/{Signup/components/CheckoutSummary → CheckoutShared/graphql}/fragments/CheckoutSummary_PriceListFragment.d.ts +5 -12
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/CheckoutSummary_QuoteFragment.d.ts +20 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/SavedPaymentMethodTiles_PaymentMethodFragment.d.ts +16 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/SuccessDisplay_PaymentMethodFragment.d.ts +14 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/SuccessDisplay_PriceListFragment.d.ts +11 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/SuccessDisplay_QuoteFragment.d.ts +18 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/useCheckoutPriceList_PriceListFragment.d.ts +15 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/mutations/priceListAmountDuePreview.d.ts +53 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/mutations/taxationRequiredAccountFields.d.ts +10 -0
- package/dist/{cjs/types/src/components/Signup → esm/types/src/components/CheckoutShared/graphql}/queries/getPriceList.d.ts +1 -1
- package/dist/esm/types/src/components/CheckoutShared/hooks/useAmountDuePreview.d.ts +33 -0
- package/dist/esm/types/src/components/CheckoutShared/hooks/useCheckoutBillingDetails.d.ts +3 -0
- package/dist/esm/types/src/components/CheckoutShared/hooks/useCheckoutFieldValue.d.ts +3 -0
- package/dist/esm/types/src/components/CheckoutShared/hooks/useCheckoutFormSubmit.d.ts +16 -0
- package/dist/esm/types/src/components/CheckoutShared/hooks/useCheckoutPriceList.d.ts +14 -0
- package/dist/esm/types/src/components/CheckoutShared/hooks/useFocusFirstField.d.ts +2 -0
- package/dist/esm/types/src/components/CheckoutShared/hooks/useNewPaymentMethod.d.ts +10 -0
- package/dist/esm/types/src/components/CheckoutShared/hooks/useStripePaymentMethodId.d.ts +9 -0
- package/dist/esm/types/src/components/CheckoutShared/hooks/useTaxRequiredFields.d.ts +9 -0
- package/dist/esm/types/src/components/CheckoutShared/stories/themes.d.ts +44 -0
- package/dist/esm/types/src/components/CheckoutShared/utils/amountPaid.d.ts +7 -0
- package/dist/esm/types/src/components/CheckoutShared/utils/asPluginData.d.ts +6 -0
- package/dist/esm/types/src/components/CheckoutShared/utils/billingDetails.d.ts +8 -0
- package/dist/esm/types/src/components/CheckoutShared/utils/compactValues.d.ts +6 -0
- package/dist/esm/types/src/components/CheckoutShared/utils/nextBillingDate.d.ts +8 -0
- package/dist/esm/types/src/components/CheckoutShared/utils/planName.d.ts +6 -0
- package/dist/esm/types/src/components/CheckoutShared/utils/quoteCharges.d.ts +25 -0
- package/dist/esm/types/src/components/CheckoutShared/utils/resolveCheckoutFields.d.ts +16 -0
- package/dist/esm/types/src/components/CheckoutShared/utils/validateDemoPayCard.d.ts +5 -0
- package/dist/esm/types/src/components/DocumentTemplatePreview.d.ts +3 -1
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayCardCvc.d.ts +2 -1
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayCardNumber.d.ts +2 -1
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayExpiry.d.ts +2 -1
- package/dist/esm/types/src/components/PaymentForm/Stripe/stripeLoader.d.ts +12 -0
- package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +9 -3
- package/dist/esm/types/src/components/PaymentForm/components/CouponEditor.d.ts +16 -0
- package/dist/esm/types/src/components/Quote/queries/getFormattedQuote.d.ts +1 -1
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +4 -4
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +2 -2
- package/dist/esm/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_QuoteFragment.d.ts +1 -1
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +1 -1
- package/dist/esm/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +1 -1
- package/dist/esm/types/src/components/Signup/Signup.d.ts +4 -32
- package/dist/esm/types/src/components/Signup/Signup.stories.d.ts +5 -0
- package/dist/esm/types/src/components/Signup/SignupContent.d.ts +7 -2
- package/dist/esm/types/src/components/Signup/components/SignupCheckoutForm.d.ts +2 -0
- package/dist/esm/types/src/components/Signup/graphql/mutations/quoteAccountSignup.d.ts +76 -0
- package/dist/esm/types/src/components/Signup/hooks/useSignupCheckout.d.ts +11 -0
- package/dist/esm/types/src/components/Signup/index.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/fragments/UpgradeContent_QuoteFragment.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +4 -4
- package/dist/esm/types/src/components/Subscriptions/fragments/Subscriptions_SubscriptionFragment.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +3 -3
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusText.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrial.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrialExpired.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +1 -1
- package/dist/esm/types/src/components/{Checkout → UpgradeCheckout}/QuoteCheckout.d.ts +4 -4
- package/dist/esm/types/src/components/UpgradeCheckout/UpgradeCheckout.d.ts +41 -0
- package/dist/esm/types/src/components/index.d.ts +4 -0
- package/dist/esm/types/src/components/priceListPricing/PricingTooltip.d.ts +7 -2
- package/dist/esm/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +1 -1
- package/dist/esm/types/src/graphql/mutations/checkout.d.ts +1 -1
- package/dist/esm/types/src/hooks/useHasTaxPlugin.d.ts +1 -0
- package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +41 -0
- package/dist/esm/types/src/mocks/checkoutHandlers.d.ts +3 -0
- package/dist/esm/types/src/mocks/handlers.d.ts +1 -1
- package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +26 -5
- package/dist/esm/types/src/utils/chargeUtils.d.ts +1 -1
- package/dist/esm/types/src/utils/couponUtils.d.ts +2 -2
- package/dist/esm/types/src/utils/priceListUtils/priceListPriceText.d.ts +1 -1
- package/dist/index.d.ts +727 -32
- package/package.json +1 -2
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/CheckoutSummary.d.ts +0 -9
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/components/CheckoutSummaryTotals.d.ts +0 -11
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/fragments/CheckoutSummary_QuoteFragment.d.ts +0 -30
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/hooks/sortQuoteChangeCharges.d.ts +0 -14
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/totalsUtils.d.ts +0 -9
- package/dist/cjs/types/src/components/Signup/components/InitialSignupFormFields.d.ts +0 -47
- package/dist/cjs/types/src/components/Signup/components/LoadingOverlay.d.ts +0 -4
- package/dist/cjs/types/src/components/Signup/components/PriceListDisplay.d.ts +0 -29
- package/dist/cjs/types/src/components/Signup/components/PurchaseSuccessDisplay.d.ts +0 -6
- package/dist/cjs/types/src/components/Signup/components/QuoteCreateButton.d.ts +0 -6
- package/dist/cjs/types/src/components/Signup/components/SelfServiceBuyWarning.d.ts +0 -14
- package/dist/cjs/types/src/components/Signup/components/SignupForm/SignupForm.d.ts +0 -10
- package/dist/cjs/types/src/components/Signup/components/SignupForm/components/ExistingAccountForm.d.ts +0 -27
- package/dist/cjs/types/src/components/Signup/components/SignupForm/components/ExistingAccountLoadedEffect.d.ts +0 -29
- package/dist/cjs/types/src/components/Signup/components/SignupForm/components/NewAccountForm.d.ts +0 -8
- package/dist/cjs/types/src/components/Signup/components/SignupForm/hooks/useExistingAccount.d.ts +0 -15
- package/dist/cjs/types/src/components/Signup/components/SignupPaidPaymentForm.d.ts +0 -5
- package/dist/cjs/types/src/components/Signup/components/SignupPaymentForm.d.ts +0 -15
- package/dist/cjs/types/src/components/Signup/components/SignupSplitScreenContainer.d.ts +0 -6
- package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/SuccessDisplay.d.ts +0 -10
- package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/components/SignupSuccessDisplay.d.ts +0 -6
- package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/components/ViewPortalSubscription.d.ts +0 -5
- package/dist/cjs/types/src/components/Signup/consts.d.ts +0 -1
- package/dist/cjs/types/src/components/Signup/contexts/SignupCallbacksContext.d.ts +0 -17
- package/dist/cjs/types/src/components/Signup/fragments/QuoteAcceptPage_PriceListFragment.d.ts +0 -9
- package/dist/cjs/types/src/components/Signup/fragments/SignupPaymentForm_QuoteFragment.d.ts +0 -13
- package/dist/cjs/types/src/components/Signup/fragments/Signup_PriceListFragment.d.ts +0 -23
- package/dist/cjs/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +0 -31
- package/dist/cjs/types/src/components/Signup/hooks/useAccountDetailsUpdate.d.ts +0 -10
- package/dist/cjs/types/src/components/Signup/hooks/useApplyDefaultCoupon.d.ts +0 -4
- package/dist/cjs/types/src/components/Signup/hooks/useApplySignupFormDefaults.d.ts +0 -9
- package/dist/cjs/types/src/components/Signup/hooks/useQuoteAccountSignupMutation.d.ts +0 -29
- package/dist/cjs/types/src/components/Signup/hooks/useQuoteRecalculateTaxes.d.ts +0 -4
- package/dist/cjs/types/src/components/Signup/hooks/useSetSignupQuoteQueryData.d.ts +0 -5
- package/dist/cjs/types/src/components/Signup/hooks/useSignupQuoteQueryData.d.ts +0 -12
- package/dist/cjs/types/src/components/Signup/mutations/contactUpdate.d.ts +0 -12
- package/dist/cjs/types/src/components/Signup/mutations/quoteAccountSignup.d.ts +0 -34
- package/dist/cjs/types/src/components/Signup/mutations/quoteChangeUpdate.d.ts +0 -12
- package/dist/cjs/types/src/components/Signup/mutations/quoteRecalculateTaxes.d.ts +0 -11
- package/dist/cjs/types/src/components/Signup/queries/getAccountByCode.d.ts +0 -8
- package/dist/cjs/types/src/components/Signup/queries/getAccountForSignupCompose.d.ts +0 -20
- package/dist/cjs/types/src/components/Signup/queries/getCurrentUserAccountForSignup.d.ts +0 -14
- package/dist/cjs/types/src/components/Signup/queries/getSignupQuote.d.ts +0 -10
- package/dist/cjs/types/src/components/Signup/signup-quote/SignupQuote.d.ts +0 -2
- package/dist/cjs/types/src/components/Signup/signup-quote/SignupQuoteProvider.d.ts +0 -9
- package/dist/cjs/types/src/components/Signup/signup-quote/fragments/SignupQuote_QuoteFragment.d.ts +0 -14
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/CheckoutSummary.d.ts +0 -9
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/components/CheckoutSummaryTotals.d.ts +0 -11
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/fragments/CheckoutSummary_QuoteFragment.d.ts +0 -30
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/hooks/sortQuoteChangeCharges.d.ts +0 -14
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/totalsUtils.d.ts +0 -9
- package/dist/esm/types/src/components/Signup/components/InitialSignupFormFields.d.ts +0 -47
- package/dist/esm/types/src/components/Signup/components/LoadingOverlay.d.ts +0 -4
- package/dist/esm/types/src/components/Signup/components/PriceListDisplay.d.ts +0 -29
- package/dist/esm/types/src/components/Signup/components/PurchaseSuccessDisplay.d.ts +0 -6
- package/dist/esm/types/src/components/Signup/components/QuoteCreateButton.d.ts +0 -6
- package/dist/esm/types/src/components/Signup/components/SelfServiceBuyWarning.d.ts +0 -14
- package/dist/esm/types/src/components/Signup/components/SignupForm/SignupForm.d.ts +0 -10
- package/dist/esm/types/src/components/Signup/components/SignupForm/components/ExistingAccountForm.d.ts +0 -27
- package/dist/esm/types/src/components/Signup/components/SignupForm/components/ExistingAccountLoadedEffect.d.ts +0 -29
- package/dist/esm/types/src/components/Signup/components/SignupForm/components/NewAccountForm.d.ts +0 -8
- package/dist/esm/types/src/components/Signup/components/SignupForm/hooks/useExistingAccount.d.ts +0 -15
- package/dist/esm/types/src/components/Signup/components/SignupPaidPaymentForm.d.ts +0 -5
- package/dist/esm/types/src/components/Signup/components/SignupPaymentForm.d.ts +0 -15
- package/dist/esm/types/src/components/Signup/components/SignupSplitScreenContainer.d.ts +0 -6
- package/dist/esm/types/src/components/Signup/components/SuccessDisplay/SuccessDisplay.d.ts +0 -10
- package/dist/esm/types/src/components/Signup/components/SuccessDisplay/components/SignupSuccessDisplay.d.ts +0 -6
- package/dist/esm/types/src/components/Signup/components/SuccessDisplay/components/ViewPortalSubscription.d.ts +0 -5
- package/dist/esm/types/src/components/Signup/consts.d.ts +0 -1
- package/dist/esm/types/src/components/Signup/contexts/SignupCallbacksContext.d.ts +0 -17
- package/dist/esm/types/src/components/Signup/fragments/QuoteAcceptPage_PriceListFragment.d.ts +0 -9
- package/dist/esm/types/src/components/Signup/fragments/SignupPaymentForm_QuoteFragment.d.ts +0 -13
- package/dist/esm/types/src/components/Signup/fragments/Signup_PriceListFragment.d.ts +0 -23
- package/dist/esm/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +0 -31
- package/dist/esm/types/src/components/Signup/hooks/useAccountDetailsUpdate.d.ts +0 -10
- package/dist/esm/types/src/components/Signup/hooks/useApplyDefaultCoupon.d.ts +0 -4
- package/dist/esm/types/src/components/Signup/hooks/useApplySignupFormDefaults.d.ts +0 -9
- package/dist/esm/types/src/components/Signup/hooks/useQuoteAccountSignupMutation.d.ts +0 -29
- package/dist/esm/types/src/components/Signup/hooks/useQuoteRecalculateTaxes.d.ts +0 -4
- package/dist/esm/types/src/components/Signup/hooks/useSetSignupQuoteQueryData.d.ts +0 -5
- package/dist/esm/types/src/components/Signup/hooks/useSignupQuoteQueryData.d.ts +0 -12
- package/dist/esm/types/src/components/Signup/mutations/contactUpdate.d.ts +0 -12
- package/dist/esm/types/src/components/Signup/mutations/quoteAccountSignup.d.ts +0 -34
- package/dist/esm/types/src/components/Signup/mutations/quoteChangeUpdate.d.ts +0 -12
- package/dist/esm/types/src/components/Signup/mutations/quoteRecalculateTaxes.d.ts +0 -11
- package/dist/esm/types/src/components/Signup/queries/getAccountByCode.d.ts +0 -8
- package/dist/esm/types/src/components/Signup/queries/getAccountForSignupCompose.d.ts +0 -20
- package/dist/esm/types/src/components/Signup/queries/getCurrentUserAccountForSignup.d.ts +0 -14
- package/dist/esm/types/src/components/Signup/queries/getSignupQuote.d.ts +0 -10
- package/dist/esm/types/src/components/Signup/signup-quote/SignupQuote.d.ts +0 -2
- package/dist/esm/types/src/components/Signup/signup-quote/SignupQuoteProvider.d.ts +0 -9
- package/dist/esm/types/src/components/Signup/signup-quote/fragments/SignupQuote_QuoteFragment.d.ts +0 -14
- /package/dist/cjs/types/src/components/{Signup → CheckoutShared}/components/Logo.d.ts +0 -0
- /package/dist/cjs/types/src/components/{Signup → CheckoutShared}/components/SuccessDisplay/components/SuccessIcon.d.ts +0 -0
- /package/dist/cjs/types/src/components/{Signup → CheckoutShared}/utils/createPortalReturnUrl.d.ts +0 -0
- /package/dist/cjs/types/src/components/{Checkout → UpgradeCheckout}/QuoteCheckoutPaymentForm.d.ts +0 -0
- /package/dist/cjs/types/src/components/{Checkout → UpgradeCheckout}/QuoteIsLoadingIndicator.d.ts +0 -0
- /package/dist/cjs/types/src/components/{Checkout → UpgradeCheckout}/checkoutUtils.d.ts +0 -0
- /package/dist/esm/types/src/components/{Signup → CheckoutShared}/components/Logo.d.ts +0 -0
- /package/dist/esm/types/src/components/{Signup → CheckoutShared}/components/SuccessDisplay/components/SuccessIcon.d.ts +0 -0
- /package/dist/esm/types/src/components/{Signup → CheckoutShared}/utils/createPortalReturnUrl.d.ts +0 -0
- /package/dist/esm/types/src/components/{Checkout → UpgradeCheckout}/QuoteCheckoutPaymentForm.d.ts +0 -0
- /package/dist/esm/types/src/components/{Checkout → UpgradeCheckout}/QuoteIsLoadingIndicator.d.ts +0 -0
- /package/dist/esm/types/src/components/{Checkout → UpgradeCheckout}/checkoutUtils.d.ts +0 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import type { AppearanceRules } from './rules';
|
|
2
|
+
/**
|
|
3
|
+
* The values the default look is built from: set one when a change should carry through everything
|
|
4
|
+
* built from it. Names follow Stripe's Appearance API; the ones Stripe has too are handed to the
|
|
5
|
+
* payment fields as they are. Every variable is optional, and literal values only (no `var()`).
|
|
6
|
+
*/
|
|
7
|
+
export type AppearanceVariables = {
|
|
8
|
+
/**
|
|
9
|
+
* The primary button, text links, the selected payment method, focused borders, the loading spinner.
|
|
10
|
+
* Its hover and pressed shades and the default focus ring are derived from it, so use a plain color.
|
|
11
|
+
* @default antd `colorPrimary` (your Bunny brand color)
|
|
12
|
+
*/
|
|
13
|
+
colorPrimary?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The form column, inputs and payment method tiles.
|
|
16
|
+
* @default antd `colorBgContainer` (white; dark in dark mode)
|
|
17
|
+
*/
|
|
18
|
+
colorBackground?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Body text and input text.
|
|
21
|
+
* @default antd `colorText`
|
|
22
|
+
*/
|
|
23
|
+
colorText?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Muted text: the "Subscribe to" line, footer links, the back arrow.
|
|
26
|
+
* @default antd `colorTextSecondary`
|
|
27
|
+
*/
|
|
28
|
+
colorTextSecondary?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Placeholders, the empty country select and its chevron.
|
|
31
|
+
* @default antd `colorTextPlaceholder`
|
|
32
|
+
*/
|
|
33
|
+
colorTextPlaceholder?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Invalid field borders and error messages.
|
|
36
|
+
* @default antd `colorError`
|
|
37
|
+
*/
|
|
38
|
+
colorDanger?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Discount amounts and the success check (its tint and strong shade are derived from it, so use a plain color).
|
|
41
|
+
* @default antd `colorSuccess`
|
|
42
|
+
*/
|
|
43
|
+
colorSuccess?: string;
|
|
44
|
+
/**
|
|
45
|
+
* All text on the screen. The payment fields can't inherit your page's font: declare web fonts in `fonts`.
|
|
46
|
+
* @default `'inherit'` (your page's font)
|
|
47
|
+
*/
|
|
48
|
+
fontFamily?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Body, input and button text. On phones, input text is raised to 16px when this is a smaller `px` value.
|
|
51
|
+
* @default antd `fontSize` (`14px`)
|
|
52
|
+
*/
|
|
53
|
+
fontSizeBase?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Corners of inputs, payment method tiles and buttons.
|
|
56
|
+
* @default antd `borderRadius` (`4px`)
|
|
57
|
+
*/
|
|
58
|
+
borderRadius?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Vertical space between form rows.
|
|
61
|
+
* @default `'20px'`
|
|
62
|
+
*/
|
|
63
|
+
gridRowSpacing?: string;
|
|
64
|
+
/**
|
|
65
|
+
* The ring around a focused input or payment method.
|
|
66
|
+
* @default `0 0 0 2px` in a tint of `colorPrimary`
|
|
67
|
+
* @example '0 0 0 3px rgba(20, 83, 45, 0.25)'
|
|
68
|
+
*/
|
|
69
|
+
focusBoxShadow?: string;
|
|
70
|
+
/**
|
|
71
|
+
* The summary column and the loading overlay.
|
|
72
|
+
* @default `'#f8fafc'` (dark mode: `'#121212'`)
|
|
73
|
+
*/
|
|
74
|
+
colorBackgroundSummary?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Borders of inputs, payment method tiles and secondary buttons; also dividers, when set.
|
|
77
|
+
* @default antd `colorBorder`
|
|
78
|
+
*/
|
|
79
|
+
colorBorder?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Width of those borders and of the dividers.
|
|
82
|
+
* @default `'2px'`
|
|
83
|
+
*/
|
|
84
|
+
borderWidth?: string;
|
|
85
|
+
};
|
|
86
|
+
export type RuleProperty = 'color' | 'backgroundColor' | 'border' | 'borderTop' | 'borderRight' | 'borderBottom' | 'borderLeft' | 'borderColor' | 'borderWidth' | 'borderStyle' | 'borderRadius' | 'boxShadow' | 'fontFamily' | 'fontSize' | 'fontWeight' | 'letterSpacing' | 'lineHeight' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'textTransform' | 'textDecoration' | 'transition' | 'outline' | 'outlineOffset';
|
|
87
|
+
/** What a rule can set: the CSS properties (camelCase) a payment provider's hosted fields accept too. */
|
|
88
|
+
export type AppearanceRuleStyle = Partial<Record<RuleProperty, string>>;
|
|
89
|
+
/** Rules for elements only we draw can also size them. */
|
|
90
|
+
export type AppearanceBlockStyle = AppearanceRuleStyle & Partial<Record<'background' | 'maxWidth' | 'minHeight' | 'opacity', string>>;
|
|
91
|
+
/** Selector → style override. The selectors come from the rule sources' public groups (see `rules.ts`). */
|
|
92
|
+
export type { AppearanceRules };
|
|
93
|
+
/**
|
|
94
|
+
* A font the payment provider's fields must load themselves (they render in an iframe and can't see
|
|
95
|
+
* your page's fonts): a stylesheet of `@font-face` rules, or one font file. Your page loads its own copy.
|
|
96
|
+
*/
|
|
97
|
+
export type AppearanceFont = {
|
|
98
|
+
/** URL of a stylesheet of `@font-face` rules, such as a Google Fonts link. */
|
|
99
|
+
cssSrc: string;
|
|
100
|
+
} | {
|
|
101
|
+
/** The name to use in `fontFamily`. */
|
|
102
|
+
family: string;
|
|
103
|
+
/** The font file, as a CSS `src` value: `url(https://...)`. */
|
|
104
|
+
src: string;
|
|
105
|
+
/** CSS `font-weight`, such as `'400'` or `'400 700'`. */
|
|
106
|
+
weight?: string;
|
|
107
|
+
/** CSS `font-style`. */
|
|
108
|
+
style?: 'normal' | 'italic' | 'oblique';
|
|
109
|
+
/** CSS `font-display`. */
|
|
110
|
+
display?: string;
|
|
111
|
+
/** CSS `unicode-range`. */
|
|
112
|
+
unicodeRange?: string;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Restyles the Signup and Checkout screens, modelled on Stripe's Appearance API: `variables` feed the
|
|
116
|
+
* default rules, your `rules` are merged over them selector by selector, and `fonts` are loaded by the
|
|
117
|
+
* payment fields. The payment provider's fields follow the shared rules too. See "Styling Signup and
|
|
118
|
+
* Checkout" in the package README.
|
|
119
|
+
* @example
|
|
120
|
+
* <Signup
|
|
121
|
+
* priceListCode="..."
|
|
122
|
+
* appearance={{
|
|
123
|
+
* variables: { colorPrimary: '#14532d', colorBackgroundSummary: '#f6f1e7', borderRadius: '0px' },
|
|
124
|
+
* rules: {
|
|
125
|
+
* '.Label': { textTransform: 'uppercase', letterSpacing: '0.08em' },
|
|
126
|
+
* '.Input:focus': { borderColor: '#14532d', boxShadow: '0 0 0 1px #14532d' },
|
|
127
|
+
* '.Button': { backgroundColor: '#1c1917', padding: '14px 16px' },
|
|
128
|
+
* },
|
|
129
|
+
* fonts: [{ cssSrc: 'https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;600&display=swap' }],
|
|
130
|
+
* }}
|
|
131
|
+
* />
|
|
132
|
+
*/
|
|
133
|
+
export type Appearance = {
|
|
134
|
+
/** The values the default rules are built from. */
|
|
135
|
+
variables?: AppearanceVariables;
|
|
136
|
+
/** Per-selector overrides, merged over the defaults property by property. Literal values only. */
|
|
137
|
+
rules?: AppearanceRules;
|
|
138
|
+
/**
|
|
139
|
+
* Fonts the payment fields load in their iframe. Set them once, up front: changing them after the
|
|
140
|
+
* payment form mounts remounts it and clears what was typed.
|
|
141
|
+
* @example [{ cssSrc: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap' }]
|
|
142
|
+
*/
|
|
143
|
+
fonts?: AppearanceFont[];
|
|
144
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type GlobalToken } from 'antd';
|
|
2
|
+
import type { AppearanceVariables } from './types';
|
|
3
|
+
/** Every variable, plus the shades the default rules need that customers don't set. */
|
|
4
|
+
type VariablesAndShades = Required<AppearanceVariables> & {
|
|
5
|
+
colorPrimaryHover: string;
|
|
6
|
+
colorPrimaryActive: string;
|
|
7
|
+
colorOnPrimary: string;
|
|
8
|
+
colorTextDisabled: string;
|
|
9
|
+
colorBackgroundDisabled: string;
|
|
10
|
+
colorBorderSecondary: string;
|
|
11
|
+
colorFill: string;
|
|
12
|
+
colorDivider: string;
|
|
13
|
+
colorSuccessBackground: string;
|
|
14
|
+
colorSuccessStrong: string;
|
|
15
|
+
boxShadowPane: string;
|
|
16
|
+
boxShadowPaneStacked: string;
|
|
17
|
+
};
|
|
18
|
+
/** The variables and shades, plus values built from them that several rule sources share. */
|
|
19
|
+
export type ResolvedVariables = VariablesAndShades & {
|
|
20
|
+
controlBorder: string;
|
|
21
|
+
controlTransition: string;
|
|
22
|
+
focusOutline: {
|
|
23
|
+
outline: string;
|
|
24
|
+
outlineOffset: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
/** Our defaults with the customer's variables over them, and every shade derived from the result. */
|
|
28
|
+
export declare function resolveVariables(token: GlobalToken, darkMode: boolean, customer?: AppearanceVariables): ResolvedVariables;
|
|
29
|
+
export {};
|
package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/CheckoutFields.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function EmailField(): import("react").JSX.Element;
|
|
2
|
+
/** The name on the card or bank account being set up with Stripe. */
|
|
3
|
+
export declare function PayerNameField(): import("react").JSX.Element;
|
|
4
|
+
export declare function CountryField(): import("react").JSX.Element;
|
|
5
|
+
/**
|
|
6
|
+
* The remaining account fields, each shown only when `useCheckoutFields` says so. Pairs share a
|
|
7
|
+
* row, so a lone field of a pair fills it.
|
|
8
|
+
*/
|
|
9
|
+
export declare function ExtraFields(): import("react").JSX.Element;
|
package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/CheckoutForm.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CheckoutFormValues } from '../../contexts/CheckoutConfigContext';
|
|
2
|
+
/**
|
|
3
|
+
* The whole right column: email → payment method / payer name / payment details (hidden when nothing is
|
|
4
|
+
* due) → country (only when taxation needs it) → opt-in fields → Pay. What submitting does is
|
|
5
|
+
* up to the flow.
|
|
6
|
+
*/
|
|
7
|
+
export default function CheckoutForm({ onSubmit, isProcessing, }: {
|
|
8
|
+
onSubmit: (values: CheckoutFormValues) => void;
|
|
9
|
+
isProcessing: boolean;
|
|
10
|
+
}): import("react").JSX.Element;
|
package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/DemoPayCardBox.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DemoPay's card inputs drawn as one bordered box: number (with brands) on top, expiry + CVC below.
|
|
3
|
+
* The inputs are PaymentForm's antd ones (test-only, not themed by the appearance); the box around
|
|
4
|
+
* them is.
|
|
5
|
+
*/
|
|
6
|
+
export default function DemoPayCardBox(): import("react").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ResolvedVariables } from '../../appearance/variables';
|
|
2
|
+
export declare function demoPayCardBoxRules(v: ResolvedVariables): {
|
|
3
|
+
internal: {
|
|
4
|
+
'.InputGroup': {
|
|
5
|
+
border: string;
|
|
6
|
+
borderRadius: string;
|
|
7
|
+
backgroundColor: string;
|
|
8
|
+
overflow: string;
|
|
9
|
+
transition: string;
|
|
10
|
+
};
|
|
11
|
+
'.InputGroup:has(.ant-input-status-error)': {
|
|
12
|
+
borderColor: string;
|
|
13
|
+
};
|
|
14
|
+
'.InputGroup:hover': {
|
|
15
|
+
borderColor: string;
|
|
16
|
+
};
|
|
17
|
+
'.InputGroup:focus-within': {
|
|
18
|
+
borderColor: string;
|
|
19
|
+
boxShadow: string;
|
|
20
|
+
};
|
|
21
|
+
'.InputGroup > * + *': {
|
|
22
|
+
borderTop: string;
|
|
23
|
+
};
|
|
24
|
+
'.InputGroupRow > * + *': {
|
|
25
|
+
borderLeft: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
shared: {};
|
|
29
|
+
block: {};
|
|
30
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type FormRule } from 'antd';
|
|
2
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
3
|
+
import { CheckoutFormValues } from '../../contexts/CheckoutConfigContext';
|
|
4
|
+
/**
|
|
5
|
+
* One row of the form without a value of its own (the payment method tiles, Stripe's Payment
|
|
6
|
+
* Element): an optional label over the content. Give the label an id to name a group with it.
|
|
7
|
+
*/
|
|
8
|
+
export declare function FormRow({ label, labelId, children }: {
|
|
9
|
+
label?: ReactNode;
|
|
10
|
+
labelId?: string;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
/**
|
|
14
|
+
* A form field: label, control and validation messages, all our own elements so the appearance's
|
|
15
|
+
* `.Label` and `.Error` rules apply to them directly. antd's `Form.Item` only does the wiring
|
|
16
|
+
* (`noStyle`, so it renders nothing itself): it hands the control its `id` (the field name, as the
|
|
17
|
+
* form is unnamed), `value`, `onChange`, `aria-invalid` and `aria-describedby="<name>_help"`.
|
|
18
|
+
*/
|
|
19
|
+
export default function Field({ name, label, rules, children, }: {
|
|
20
|
+
name: keyof CheckoutFormValues;
|
|
21
|
+
label: string;
|
|
22
|
+
rules?: FormRule[];
|
|
23
|
+
children: ReactElement;
|
|
24
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ResolvedVariables } from '../../appearance/variables';
|
|
2
|
+
export declare function fieldRules(v: ResolvedVariables): {
|
|
3
|
+
internal: {
|
|
4
|
+
'.Fieldset': {
|
|
5
|
+
minWidth: string;
|
|
6
|
+
margin: string;
|
|
7
|
+
padding: string;
|
|
8
|
+
border: string;
|
|
9
|
+
};
|
|
10
|
+
'.Field': {
|
|
11
|
+
marginBottom: string;
|
|
12
|
+
};
|
|
13
|
+
'.LabelBase': {
|
|
14
|
+
display: string;
|
|
15
|
+
width: string;
|
|
16
|
+
lineHeight: string;
|
|
17
|
+
};
|
|
18
|
+
'.ErrorBase': {
|
|
19
|
+
marginTop: string;
|
|
20
|
+
lineHeight: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
shared: {
|
|
24
|
+
/**
|
|
25
|
+
* Field labels, on Bunny's fields and the payment provider's alike.
|
|
26
|
+
* @default 14px, weight 500, `colorText`, 6px below
|
|
27
|
+
*/
|
|
28
|
+
'.Label': {
|
|
29
|
+
fontSize: string;
|
|
30
|
+
fontWeight: string;
|
|
31
|
+
color: string;
|
|
32
|
+
marginBottom: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Validation messages under a field, on Bunny's fields and the payment provider's alike.
|
|
36
|
+
* @default 14px, `colorDanger`
|
|
37
|
+
*/
|
|
38
|
+
'.Error': {
|
|
39
|
+
fontSize: string;
|
|
40
|
+
color: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
block: {};
|
|
44
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* "Pay $50.00" with the amount due (or "Start trial" on a trial, "Complete order" when nothing is due), with the authorization text
|
|
3
|
+
* under it. Disabled only until the amount due first resolves and while a recalculation (e.g. taxes)
|
|
4
|
+
* is in flight; an incomplete form stays submittable so that submitting shows what is missing.
|
|
5
|
+
*/
|
|
6
|
+
export default function PayButton({ isProcessing }: {
|
|
7
|
+
isProcessing: boolean;
|
|
8
|
+
}): import("react").JSX.Element;
|
package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/PaymentFields.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plugin tiles (when there is more than one to choose from), saved payment method tiles plus
|
|
3
|
+
* "New card" (when the account has any), then the form for a new payment method: the payer's name
|
|
4
|
+
* and Stripe's Payment Element (which brings its own labels), or DemoPay's card box. A selected
|
|
5
|
+
* saved method needs neither.
|
|
6
|
+
*/
|
|
7
|
+
export default function PaymentFields(): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* An equal-width selectable tile: icon above label, the selected one outlined in the primary color.
|
|
4
|
+
* Styled by the appearance's `.Tab` rules, like the tabs of Stripe's Payment Element.
|
|
5
|
+
*/
|
|
6
|
+
export default function PaymentTile({ selected, ...props }: {
|
|
7
|
+
selected: boolean;
|
|
8
|
+
} & Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'children'>): import("react").JSX.Element;
|
|
9
|
+
/** CardImage's SVGs are 70x48; shrink them to the icon height of the other tiles. */
|
|
10
|
+
export declare const CardBrand: any;
|
package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/PaymentTile.rules.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ResolvedVariables } from '../../appearance/variables';
|
|
2
|
+
export declare function paymentTileRules(v: ResolvedVariables): {
|
|
3
|
+
internal: {
|
|
4
|
+
'.TabBase': {
|
|
5
|
+
display: string;
|
|
6
|
+
flexDirection: string;
|
|
7
|
+
alignItems: string;
|
|
8
|
+
gap: string;
|
|
9
|
+
boxSizing: string;
|
|
10
|
+
minHeight: string;
|
|
11
|
+
padding: string;
|
|
12
|
+
font: string;
|
|
13
|
+
textAlign: string;
|
|
14
|
+
outline: string;
|
|
15
|
+
cursor: string;
|
|
16
|
+
};
|
|
17
|
+
'.TabBase:disabled': {
|
|
18
|
+
opacity: string;
|
|
19
|
+
cursor: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
shared: {
|
|
23
|
+
/**
|
|
24
|
+
* Payment method tiles: Bunny's own and the payment provider's tabs.
|
|
25
|
+
* @default `borderWidth` solid `colorBorder`, `colorBackground`, weight 500
|
|
26
|
+
*/
|
|
27
|
+
'.Tab': {
|
|
28
|
+
border: string;
|
|
29
|
+
borderRadius: string;
|
|
30
|
+
backgroundColor: string;
|
|
31
|
+
color: string;
|
|
32
|
+
fontWeight: string;
|
|
33
|
+
boxShadow: string;
|
|
34
|
+
transition: string;
|
|
35
|
+
};
|
|
36
|
+
/** A payment method tile under the pointer. Forwarded to the payment provider. @default `colorPrimary`'s hover shade border */
|
|
37
|
+
'.Tab:hover': {
|
|
38
|
+
borderColor: string;
|
|
39
|
+
color: string;
|
|
40
|
+
};
|
|
41
|
+
/** The chosen payment method. Forwarded to the payment provider (its `color` also tints Stripe's tab icon). @default `colorPrimary` border and text */
|
|
42
|
+
'.Tab--selected': {
|
|
43
|
+
borderColor: string;
|
|
44
|
+
color: string;
|
|
45
|
+
boxShadow: string;
|
|
46
|
+
};
|
|
47
|
+
/** A focused payment method tile, selected or not. Forwarded to the payment provider. @default `focusBoxShadow` */
|
|
48
|
+
'.Tab:focus': {
|
|
49
|
+
boxShadow: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
block: {};
|
|
53
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stripe's Payment Element: one tab per payment method the tenant's Stripe account offers, styled
|
|
3
|
+
* through the Elements group's appearance (see `appearance/adapters/stripe`). The name, email,
|
|
4
|
+
* country and postal code come from the form's own fields and are passed on confirm, so the element
|
|
5
|
+
* doesn't ask for them again; without a country field it asks for the country and postal code itself.
|
|
6
|
+
* Read-only follows the antd Form it sits in, like the other inputs.
|
|
7
|
+
*/
|
|
8
|
+
export default function StripePaymentElement(): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/** Covers the page until the price list, plugins, branding and first amount due have all arrived. */
|
|
3
|
+
export default function CheckoutLoadingOverlay({ visible, style }: {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
}): React.JSX.Element | null;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Appearance } from '../appearance';
|
|
3
|
+
import { CheckoutCallbacks, CheckoutFormOptions } from '../contexts/CheckoutConfigContext';
|
|
4
|
+
/** The props Signup and Checkout share. */
|
|
5
|
+
export type CheckoutFlowProps = {
|
|
6
|
+
priceListCode: string;
|
|
7
|
+
/** If trial is allowed on the price list, enableTrial will enable the trial for this checkout */
|
|
8
|
+
enableTrial?: boolean;
|
|
9
|
+
/** A custom style to apply to the component */
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
/**
|
|
12
|
+
* Restyles the screen, modelled on Stripe's Appearance API: `variables` (colors, font, radius) feed the
|
|
13
|
+
* default rules, `rules` override them per selector (`.Input`, `.Tab`, `.Button`, ...), and `fonts` are
|
|
14
|
+
* loaded by the payment fields. The payment provider's fields follow it too. Signup and Checkout take
|
|
15
|
+
* the same prop. See "Styling Signup and Checkout" in the package README.
|
|
16
|
+
*/
|
|
17
|
+
appearance?: Appearance;
|
|
18
|
+
/** Form configuration: default values, optional fields to show and disabled fields */
|
|
19
|
+
form?: CheckoutFormOptions;
|
|
20
|
+
/** A default coupon code to pre-apply to the checkout */
|
|
21
|
+
defaultCouponCode?: string;
|
|
22
|
+
/** Callbacks fired at key lifecycle events */
|
|
23
|
+
callbacks?: CheckoutCallbacks;
|
|
24
|
+
};
|
|
25
|
+
/** The providers both flows mount, in one order: config, form instance, result, then the appearance. */
|
|
26
|
+
export default function CheckoutRoot({ priceListCode, enableTrial, form, defaultCouponCode, callbacks, appearance, children, }: Omit<CheckoutFlowProps, 'style'> & {
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { CheckoutSavedPaymentMethod } from '../contexts/CheckoutPaymentMethodsContext';
|
|
4
|
+
import { CheckoutQuoteDocument_QuoteFragment } from '../graphql/fragments/CheckoutQuoteDocument_QuoteFragment';
|
|
5
|
+
/**
|
|
6
|
+
* The split-screen page: the summary (or the receipt once there is a result) on the left, the flow's
|
|
7
|
+
* form (or the success panel) on the right, under the loading overlay until everything the first
|
|
8
|
+
* paint needs has arrived. The flow renders the pricing provider above this and passes its form in;
|
|
9
|
+
* the payment methods, Stripe elements and DemoPay details the form's submit hook
|
|
10
|
+
* needs are all set up here.
|
|
11
|
+
*
|
|
12
|
+
* The quote PDF is Checkout-only for now (`showQuoteDocument`; Signup never renders it). When a
|
|
13
|
+
* document template is configured it goes under the summary: the composed quote before the checkout,
|
|
14
|
+
* and the checked-out quote under the receipt afterwards.
|
|
15
|
+
*/
|
|
16
|
+
export default function CheckoutScreen({ style, form, savedPaymentMethods, isFlowReady, showQuoteDocument, quote: pendingQuote, }: {
|
|
17
|
+
style?: React.CSSProperties;
|
|
18
|
+
form: ReactNode;
|
|
19
|
+
/** Payment methods already stored on the account, if the flow has one. */
|
|
20
|
+
savedPaymentMethods?: CheckoutSavedPaymentMethod[];
|
|
21
|
+
/** Anything else the flow has to load before the first paint. */
|
|
22
|
+
isFlowReady?: boolean;
|
|
23
|
+
/** Render the quote PDF under the summary and receipt. Checkout-only for now. */
|
|
24
|
+
showQuoteDocument?: boolean;
|
|
25
|
+
/** The quote the flow will check out, if it exists before paying. Its PDF is shown under the summary. */
|
|
26
|
+
quote?: FragmentOf<typeof CheckoutQuoteDocument_QuoteFragment>;
|
|
27
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import type { RuleContext } from '../appearance/ruleGroups';
|
|
2
|
+
import type { ResolvedVariables } from '../appearance/variables';
|
|
3
|
+
export declare function screenRules(v: ResolvedVariables, { isMobile }: RuleContext): {
|
|
4
|
+
internal: {
|
|
5
|
+
'.Screen': {
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
color: string;
|
|
8
|
+
fontFamily: string;
|
|
9
|
+
fontSize: string;
|
|
10
|
+
lineHeight: string;
|
|
11
|
+
};
|
|
12
|
+
'.FormPane': {
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
boxShadow: string;
|
|
15
|
+
};
|
|
16
|
+
'.Overlay': {
|
|
17
|
+
inset: string;
|
|
18
|
+
zIndex: string;
|
|
19
|
+
backgroundColor: string;
|
|
20
|
+
};
|
|
21
|
+
'.Overlay .Spinner': {
|
|
22
|
+
color: string;
|
|
23
|
+
};
|
|
24
|
+
'.Text': {
|
|
25
|
+
color: string;
|
|
26
|
+
fontSize: string;
|
|
27
|
+
};
|
|
28
|
+
'.TextSecondary': {
|
|
29
|
+
color: string;
|
|
30
|
+
};
|
|
31
|
+
'.TextSuccess': {
|
|
32
|
+
color: string;
|
|
33
|
+
};
|
|
34
|
+
'.Heading': {
|
|
35
|
+
margin: string;
|
|
36
|
+
fontSize: string;
|
|
37
|
+
fontWeight: string;
|
|
38
|
+
lineHeight: string;
|
|
39
|
+
};
|
|
40
|
+
'.Separator': {
|
|
41
|
+
color: string;
|
|
42
|
+
};
|
|
43
|
+
'.Divider': {
|
|
44
|
+
margin: string;
|
|
45
|
+
border: string;
|
|
46
|
+
borderTop: string;
|
|
47
|
+
};
|
|
48
|
+
'.Link': {
|
|
49
|
+
color: string;
|
|
50
|
+
textDecoration: string;
|
|
51
|
+
transition: string;
|
|
52
|
+
};
|
|
53
|
+
'.Link:hover': {
|
|
54
|
+
color: string;
|
|
55
|
+
};
|
|
56
|
+
'.Link:focus-visible': {
|
|
57
|
+
borderRadius: string;
|
|
58
|
+
outline: string;
|
|
59
|
+
outlineOffset: string;
|
|
60
|
+
};
|
|
61
|
+
'.BackLink': {
|
|
62
|
+
width: string;
|
|
63
|
+
height: string;
|
|
64
|
+
marginLeft: string;
|
|
65
|
+
borderRadius: string;
|
|
66
|
+
color: string;
|
|
67
|
+
transition: string;
|
|
68
|
+
};
|
|
69
|
+
'.BackLink:hover': {
|
|
70
|
+
color: string;
|
|
71
|
+
backgroundColor: string;
|
|
72
|
+
};
|
|
73
|
+
'.BackLink:focus-visible': {
|
|
74
|
+
outline: string;
|
|
75
|
+
outlineOffset: string;
|
|
76
|
+
};
|
|
77
|
+
'.Disclosure': {
|
|
78
|
+
minHeight: string;
|
|
79
|
+
border: string;
|
|
80
|
+
borderRadius: string;
|
|
81
|
+
background: string;
|
|
82
|
+
color: string;
|
|
83
|
+
font: string;
|
|
84
|
+
};
|
|
85
|
+
'.Disclosure:focus-visible': {
|
|
86
|
+
outlineOffset: string;
|
|
87
|
+
outline: string;
|
|
88
|
+
};
|
|
89
|
+
'.Details': {
|
|
90
|
+
border: string;
|
|
91
|
+
borderRadius: string;
|
|
92
|
+
};
|
|
93
|
+
'.Details > div + div': {
|
|
94
|
+
borderTop: string;
|
|
95
|
+
};
|
|
96
|
+
'.SuccessIcon': {
|
|
97
|
+
width: string;
|
|
98
|
+
height: string;
|
|
99
|
+
borderRadius: string;
|
|
100
|
+
backgroundColor: string;
|
|
101
|
+
color: string;
|
|
102
|
+
};
|
|
103
|
+
'.Document': {
|
|
104
|
+
borderRadius: string;
|
|
105
|
+
};
|
|
106
|
+
'.Placeholder': {
|
|
107
|
+
height: string;
|
|
108
|
+
borderRadius: string;
|
|
109
|
+
backgroundColor: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
shared: {};
|
|
113
|
+
block: {
|
|
114
|
+
/**
|
|
115
|
+
* The summary column's content: header, amount, line items, totals. Bunny only. No default rule; the
|
|
116
|
+
* content is capped at `36rem` with `4rem` padding (`1.5rem` on phones): change it with `maxWidth` and `padding`.
|
|
117
|
+
*/
|
|
118
|
+
'.Summary': {};
|
|
119
|
+
/**
|
|
120
|
+
* The form column's content: the form, or the confirmation after checkout. Bunny only. No default rule;
|
|
121
|
+
* capped and padded like `.Summary`.
|
|
122
|
+
*/
|
|
123
|
+
'.Form': {};
|
|
124
|
+
};
|
|
125
|
+
};
|
package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSplitScreenContainer.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Desktop: the summary on the left (the screen's own background), the form on the right in its pane,
|
|
3
|
+
* separated by a soft shadow. Each column's content hugs the center line and both start at the top.
|
|
4
|
+
* Mobile: the columns stack.
|
|
5
|
+
*/
|
|
6
|
+
export default function CheckoutSplitScreenContainer({ left, right, isMobile, }: {
|
|
7
|
+
left: React.ReactNode;
|
|
8
|
+
right: React.ReactNode;
|
|
9
|
+
isMobile: boolean;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Always rendered so `useStripe()` / `useElements()` resolve below it; `stripe` is null until it loads.
|
|
4
|
+
* Stripe.js is loaded for the tenant's Stripe plugin once, with the current token (the flows never swap tokens).
|
|
5
|
+
*
|
|
6
|
+
* The group is set up for a deferred SetupIntent (created on submit), which is what lets the Payment
|
|
7
|
+
* Element render before any intent exists. Such a group needs its currency from the start, so Stripe
|
|
8
|
+
* is held back until the first amount due preview brings one. Changes to the appearance or currency
|
|
9
|
+
* reach the mounted elements; `fonts` can't change after the group is created, so new fonts remount it.
|
|
10
|
+
*/
|
|
11
|
+
export default function CheckoutStripeElements({ children }: {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The "Have a coupon code?" link and its inline input. Once the coupon is applied the summary shows
|
|
3
|
+
* a Discount row instead of this; an invalid code is dropped by the flow, which leaves the input open.
|
|
4
|
+
*
|
|
5
|
+
* Deliberately not PaymentForm's `CouponEditorView`: this screen is styled by its appearance, not by
|
|
6
|
+
* antd. The two share only the coupon logic the flows put behind `useCheckoutPricing`.
|
|
7
|
+
*/
|
|
8
|
+
export default function CheckoutCouponEditor(): import("react").JSX.Element;
|