@bunnyapp/components 1.0.0
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 +99 -0
- package/dist/cjs/index.js +5179 -0
- package/dist/cjs/types/playground/main.d.ts +1 -0
- package/dist/cjs/types/src/atoms/pageContentRefAtom.d.ts +1 -0
- package/dist/cjs/types/src/atoms/planPickerQuoteDataAtom.d.ts +2 -0
- package/dist/cjs/types/src/atoms/updatingChargeQuantityIdAtom.d.ts +2 -0
- package/dist/cjs/types/src/components/BunnyProvider.d.ts +19 -0
- package/dist/cjs/types/src/components/Card.d.ts +5 -0
- package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +9 -0
- package/dist/cjs/types/src/components/Checkout/CouponComponent.d.ts +7 -0
- package/dist/cjs/types/src/components/Checkout/InvoiceCheckout.d.ts +7 -0
- package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +11 -0
- package/dist/cjs/types/src/components/Checkout/checkoutUtils.d.ts +2 -0
- package/dist/cjs/types/src/components/Checkout/index.d.ts +2 -0
- package/dist/cjs/types/src/components/DrawerHeader.d.ts +6 -0
- package/dist/cjs/types/src/components/Error.d.ts +5 -0
- package/dist/cjs/types/src/components/FeatureUsageGraph.d.ts +6 -0
- package/dist/cjs/types/src/components/Footer.d.ts +2 -0
- package/dist/cjs/types/src/components/HeaderModalWrapper.d.ts +2 -0
- package/dist/cjs/types/src/components/Icons/BunnyFooterIcon.d.ts +4 -0
- package/dist/cjs/types/src/components/Icons/CardIcon.d.ts +2 -0
- package/dist/cjs/types/src/components/Invoice/Invoice.d.ts +10 -0
- package/dist/cjs/types/src/components/Invoice/Invoice.stories.d.ts +9 -0
- package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView.d.ts +12 -0
- package/dist/cjs/types/src/components/Invoice/index.d.ts +8 -0
- package/dist/cjs/types/src/components/LegacyInvoicePDF.d.ts +4 -0
- package/dist/cjs/types/src/components/PageContent.d.ts +7 -0
- package/dist/cjs/types/src/components/PageHeaderWithActions.d.ts +6 -0
- package/dist/cjs/types/src/components/PageWrapper.d.ts +1 -0
- package/dist/cjs/types/src/components/PandadocPollingModal.d.ts +7 -0
- package/dist/cjs/types/src/components/PaymentForm/CheckoutFooter.d.ts +9 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayCardCvc.d.ts +7 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayCardNumber.d.ts +7 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayExpiry.d.ts +7 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +3 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +23 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/index.d.ts +1 -0
- package/dist/cjs/types/src/components/PaymentForm/Finix/FinixCardForm.d.ts +4 -0
- package/dist/cjs/types/src/components/PaymentForm/Finix/index.d.ts +2 -0
- package/dist/cjs/types/src/components/PaymentForm/FinixAch.d.ts +3 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +7 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentFormTypes.d.ts +56 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/CreditCard/CreditCard.d.ts +12 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/CreditCard/LargCardIcon.d.ts +2 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/CreditCard/PlusIcon.d.ts +4 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/PaymentMethod.d.ts +5 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/PaymentMethodContext.d.ts +6 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/index.d.ts +1 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethodForm.d.ts +3 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethodSelector.d.ts +8 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentOption.d.ts +8 -0
- package/dist/cjs/types/src/components/PaymentForm/StoredPaymentMethod/StoredPaymentMethodForm.d.ts +3 -0
- package/dist/cjs/types/src/components/PaymentForm/Stripe/CheckoutForm.d.ts +3 -0
- package/dist/cjs/types/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +3 -0
- package/dist/cjs/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +3 -0
- package/dist/cjs/types/src/components/PaymentForm/Stripe/index.d.ts +1 -0
- package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +20 -0
- package/dist/cjs/types/src/components/PaymentForm/index.d.ts +1 -0
- package/dist/cjs/types/src/components/PaymentForm/paymentUtils.d.ts +7 -0
- package/dist/cjs/types/src/components/Quote/AcceptQuoteModal.d.ts +9 -0
- package/dist/cjs/types/src/components/Quote/DocumentNameEnum.d.ts +4 -0
- package/dist/cjs/types/src/components/Quote/Quote.d.ts +6 -0
- package/dist/cjs/types/src/components/Quote/Quote.stories.d.ts +8 -0
- package/dist/cjs/types/src/components/Quote/QuoteContext.d.ts +5 -0
- package/dist/cjs/types/src/components/Quote/StyledModal.d.ts +3 -0
- package/dist/cjs/types/src/components/Quote/index.d.ts +1 -0
- package/dist/cjs/types/src/components/StateTag.d.ts +6 -0
- package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +21 -0
- package/dist/cjs/types/src/components/Subscriptions/index.d.ts +1 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +5 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/HideExpiredToggle.d.ts +7 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +8 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardHeader.d.ts +8 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +6 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +6 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +10 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +8 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardColumnHeaders.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +8 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionsCardCell.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardCellMobile.d.ts +8 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +8 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +20 -0
- package/dist/cjs/types/src/components/TaxationForm.d.ts +6 -0
- package/dist/cjs/types/src/components/Transactions/DocumentNameEnum.d.ts +4 -0
- package/dist/cjs/types/src/components/Transactions/Transactions.d.ts +27 -0
- package/dist/cjs/types/src/components/Transactions/Transactions.stories.d.ts +17 -0
- package/dist/cjs/types/src/components/Transactions/TransactionsListContext.d.ts +17 -0
- package/dist/cjs/types/src/components/Transactions/index.d.ts +1 -0
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionDate.d.ts +4 -0
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionDownload.d.ts +7 -0
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionGridCell.d.ts +7 -0
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionTitle.d.ts +5 -0
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsEmptyState.d.ts +2 -0
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +7 -0
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +6 -0
- package/dist/cjs/types/src/components/index.d.ts +7 -0
- package/dist/cjs/types/src/consts/paymentConsts.d.ts +16 -0
- package/dist/cjs/types/src/contexts/BrandContext.d.ts +7 -0
- package/dist/cjs/types/src/contexts/NavigationContext.d.ts +9 -0
- package/dist/cjs/types/src/enums/SubscriptionState.d.ts +8 -0
- package/dist/cjs/types/src/features/quantityChangeDrawer/QuantityChangeGridRow.d.ts +11 -0
- package/dist/cjs/types/src/features/quantityChangeDrawer/QuantityChangeGridTitle.d.ts +6 -0
- package/dist/cjs/types/src/features/quantityChangeDrawer/QuantityInput.d.ts +21 -0
- package/dist/cjs/types/src/features/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +9 -0
- package/dist/cjs/types/src/features/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +14 -0
- package/dist/cjs/types/src/graphql/QuoteRequests.d.ts +6 -0
- package/dist/cjs/types/src/graphql/SubscriptionRequests.d.ts +2 -0
- package/dist/cjs/types/src/graphql/mutations/accountUpdate.d.ts +6 -0
- package/dist/cjs/types/src/graphql/mutations/checkout.d.ts +23 -0
- package/dist/cjs/types/src/graphql/mutations/quoteAddCoupon.d.ts +7 -0
- package/dist/cjs/types/src/graphql/mutations/quoteCompose.d.ts +11 -0
- package/dist/cjs/types/src/graphql/mutations/quoteRecalculateTaxes.d.ts +5 -0
- package/dist/cjs/types/src/graphql/mutations/quoteSubscriptionReinstate.d.ts +7 -0
- package/dist/cjs/types/src/graphql/queries/getBranding.d.ts +6 -0
- package/dist/cjs/types/src/graphql/queries/getCurrentUserData.d.ts +12 -0
- package/dist/cjs/types/src/graphql/queries/getFeatureUsage.d.ts +9 -0
- package/dist/cjs/types/src/graphql/queries/getFormattedInvoice.d.ts +7 -0
- package/dist/cjs/types/src/graphql/queries/getFormattedQuote.d.ts +3 -0
- package/dist/cjs/types/src/graphql/queries/getInvoice.d.ts +7 -0
- package/dist/cjs/types/src/graphql/queries/getPlanChangeOptions.d.ts +8 -0
- package/dist/cjs/types/src/graphql/queries/getQuote.d.ts +7 -0
- package/dist/cjs/types/src/graphql/queries/getSubscriptions.d.ts +7 -0
- package/dist/cjs/types/src/graphql/queries/getTransactions.d.ts +3 -0
- package/dist/cjs/types/src/hooks/index.d.ts +1 -0
- package/dist/cjs/types/src/hooks/quotes/useSendAcceptQuote.d.ts +14 -0
- package/dist/cjs/types/src/hooks/quotes/useSigningComplete.d.ts +5 -0
- package/dist/cjs/types/src/hooks/subscriptions/useSubscriptions.d.ts +5 -0
- package/dist/cjs/types/src/hooks/useCurrentUserData.d.ts +2 -0
- package/dist/cjs/types/src/hooks/useFocusFirstInput.d.ts +7 -0
- package/dist/cjs/types/src/hooks/useHasTaxPlugin.d.ts +5 -0
- package/dist/cjs/types/src/hooks/useIsExpired.d.ts +2 -0
- package/dist/cjs/types/src/hooks/useIsMobile.d.ts +10 -0
- package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +2 -0
- package/dist/cjs/types/src/hooks/useSigningPlugins.d.ts +2 -0
- package/dist/cjs/types/src/index.d.ts +2 -0
- package/dist/cjs/types/src/mocks/browser.d.ts +1 -0
- package/dist/cjs/types/src/mocks/handlers.d.ts +1 -0
- package/dist/cjs/types/src/stories/Button.d.ts +15 -0
- package/dist/cjs/types/src/stories/Button.stories.d.ts +9 -0
- package/dist/cjs/types/src/stories/Header.d.ts +12 -0
- package/dist/cjs/types/src/stories/Header.stories.d.ts +7 -0
- package/dist/cjs/types/src/stories/Page.d.ts +3 -0
- package/dist/cjs/types/src/stories/Page.stories.d.ts +7 -0
- package/dist/cjs/types/src/utils.d.ts +9 -0
- package/dist/cjs/types/vite.config.d.ts +2 -0
- package/dist/esm/index.js +5143 -0
- package/dist/esm/types/playground/main.d.ts +1 -0
- package/dist/esm/types/src/atoms/pageContentRefAtom.d.ts +1 -0
- package/dist/esm/types/src/atoms/planPickerQuoteDataAtom.d.ts +2 -0
- package/dist/esm/types/src/atoms/updatingChargeQuantityIdAtom.d.ts +2 -0
- package/dist/esm/types/src/components/BunnyProvider.d.ts +19 -0
- package/dist/esm/types/src/components/Card.d.ts +5 -0
- package/dist/esm/types/src/components/Checkout/Checkout.d.ts +9 -0
- package/dist/esm/types/src/components/Checkout/CouponComponent.d.ts +7 -0
- package/dist/esm/types/src/components/Checkout/InvoiceCheckout.d.ts +7 -0
- package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +11 -0
- package/dist/esm/types/src/components/Checkout/checkoutUtils.d.ts +2 -0
- package/dist/esm/types/src/components/Checkout/index.d.ts +2 -0
- package/dist/esm/types/src/components/DrawerHeader.d.ts +6 -0
- package/dist/esm/types/src/components/Error.d.ts +5 -0
- package/dist/esm/types/src/components/FeatureUsageGraph.d.ts +6 -0
- package/dist/esm/types/src/components/Footer.d.ts +2 -0
- package/dist/esm/types/src/components/HeaderModalWrapper.d.ts +2 -0
- package/dist/esm/types/src/components/Icons/BunnyFooterIcon.d.ts +4 -0
- package/dist/esm/types/src/components/Icons/CardIcon.d.ts +2 -0
- package/dist/esm/types/src/components/Invoice/Invoice.d.ts +10 -0
- package/dist/esm/types/src/components/Invoice/Invoice.stories.d.ts +9 -0
- package/dist/esm/types/src/components/Invoice/InvoiceQuoteView.d.ts +12 -0
- package/dist/esm/types/src/components/Invoice/index.d.ts +8 -0
- package/dist/esm/types/src/components/LegacyInvoicePDF.d.ts +4 -0
- package/dist/esm/types/src/components/PageContent.d.ts +7 -0
- package/dist/esm/types/src/components/PageHeaderWithActions.d.ts +6 -0
- package/dist/esm/types/src/components/PageWrapper.d.ts +1 -0
- package/dist/esm/types/src/components/PandadocPollingModal.d.ts +7 -0
- package/dist/esm/types/src/components/PaymentForm/CheckoutFooter.d.ts +9 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayCardCvc.d.ts +7 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayCardNumber.d.ts +7 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayExpiry.d.ts +7 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +3 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +23 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/index.d.ts +1 -0
- package/dist/esm/types/src/components/PaymentForm/Finix/FinixCardForm.d.ts +4 -0
- package/dist/esm/types/src/components/PaymentForm/Finix/index.d.ts +2 -0
- package/dist/esm/types/src/components/PaymentForm/FinixAch.d.ts +3 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +7 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentFormTypes.d.ts +56 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentMethod/CreditCard/CreditCard.d.ts +12 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentMethod/CreditCard/LargCardIcon.d.ts +2 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentMethod/CreditCard/PlusIcon.d.ts +4 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentMethod/PaymentMethod.d.ts +5 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentMethod/PaymentMethodContext.d.ts +6 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentMethod/index.d.ts +1 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentMethodForm.d.ts +3 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentMethodSelector.d.ts +8 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentOption.d.ts +8 -0
- package/dist/esm/types/src/components/PaymentForm/StoredPaymentMethod/StoredPaymentMethodForm.d.ts +3 -0
- package/dist/esm/types/src/components/PaymentForm/Stripe/CheckoutForm.d.ts +3 -0
- package/dist/esm/types/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +3 -0
- package/dist/esm/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +3 -0
- package/dist/esm/types/src/components/PaymentForm/Stripe/index.d.ts +1 -0
- package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +20 -0
- package/dist/esm/types/src/components/PaymentForm/index.d.ts +1 -0
- package/dist/esm/types/src/components/PaymentForm/paymentUtils.d.ts +7 -0
- package/dist/esm/types/src/components/Quote/AcceptQuoteModal.d.ts +9 -0
- package/dist/esm/types/src/components/Quote/DocumentNameEnum.d.ts +4 -0
- package/dist/esm/types/src/components/Quote/Quote.d.ts +6 -0
- package/dist/esm/types/src/components/Quote/Quote.stories.d.ts +8 -0
- package/dist/esm/types/src/components/Quote/QuoteContext.d.ts +5 -0
- package/dist/esm/types/src/components/Quote/StyledModal.d.ts +3 -0
- package/dist/esm/types/src/components/Quote/index.d.ts +1 -0
- package/dist/esm/types/src/components/StateTag.d.ts +6 -0
- package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +21 -0
- package/dist/esm/types/src/components/Subscriptions/index.d.ts +1 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +5 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/HideExpiredToggle.d.ts +7 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +8 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardHeader.d.ts +8 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +6 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +6 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +10 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +8 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardColumnHeaders.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +8 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionsCardCell.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardCellMobile.d.ts +8 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +8 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +20 -0
- package/dist/esm/types/src/components/TaxationForm.d.ts +6 -0
- package/dist/esm/types/src/components/Transactions/DocumentNameEnum.d.ts +4 -0
- package/dist/esm/types/src/components/Transactions/Transactions.d.ts +27 -0
- package/dist/esm/types/src/components/Transactions/Transactions.stories.d.ts +17 -0
- package/dist/esm/types/src/components/Transactions/TransactionsListContext.d.ts +17 -0
- package/dist/esm/types/src/components/Transactions/index.d.ts +1 -0
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionDate.d.ts +4 -0
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionDownload.d.ts +7 -0
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionGridCell.d.ts +7 -0
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionTitle.d.ts +5 -0
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsEmptyState.d.ts +2 -0
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +7 -0
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +6 -0
- package/dist/esm/types/src/components/index.d.ts +7 -0
- package/dist/esm/types/src/consts/paymentConsts.d.ts +16 -0
- package/dist/esm/types/src/contexts/BrandContext.d.ts +7 -0
- package/dist/esm/types/src/contexts/NavigationContext.d.ts +9 -0
- package/dist/esm/types/src/enums/SubscriptionState.d.ts +8 -0
- package/dist/esm/types/src/features/quantityChangeDrawer/QuantityChangeGridRow.d.ts +11 -0
- package/dist/esm/types/src/features/quantityChangeDrawer/QuantityChangeGridTitle.d.ts +6 -0
- package/dist/esm/types/src/features/quantityChangeDrawer/QuantityInput.d.ts +21 -0
- package/dist/esm/types/src/features/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +9 -0
- package/dist/esm/types/src/features/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +14 -0
- package/dist/esm/types/src/graphql/QuoteRequests.d.ts +6 -0
- package/dist/esm/types/src/graphql/SubscriptionRequests.d.ts +2 -0
- package/dist/esm/types/src/graphql/mutations/accountUpdate.d.ts +6 -0
- package/dist/esm/types/src/graphql/mutations/checkout.d.ts +23 -0
- package/dist/esm/types/src/graphql/mutations/quoteAddCoupon.d.ts +7 -0
- package/dist/esm/types/src/graphql/mutations/quoteCompose.d.ts +11 -0
- package/dist/esm/types/src/graphql/mutations/quoteRecalculateTaxes.d.ts +5 -0
- package/dist/esm/types/src/graphql/mutations/quoteSubscriptionReinstate.d.ts +7 -0
- package/dist/esm/types/src/graphql/queries/getBranding.d.ts +6 -0
- package/dist/esm/types/src/graphql/queries/getCurrentUserData.d.ts +12 -0
- package/dist/esm/types/src/graphql/queries/getFeatureUsage.d.ts +9 -0
- package/dist/esm/types/src/graphql/queries/getFormattedInvoice.d.ts +7 -0
- package/dist/esm/types/src/graphql/queries/getFormattedQuote.d.ts +3 -0
- package/dist/esm/types/src/graphql/queries/getInvoice.d.ts +7 -0
- package/dist/esm/types/src/graphql/queries/getPlanChangeOptions.d.ts +8 -0
- package/dist/esm/types/src/graphql/queries/getQuote.d.ts +7 -0
- package/dist/esm/types/src/graphql/queries/getSubscriptions.d.ts +7 -0
- package/dist/esm/types/src/graphql/queries/getTransactions.d.ts +3 -0
- package/dist/esm/types/src/hooks/index.d.ts +1 -0
- package/dist/esm/types/src/hooks/quotes/useSendAcceptQuote.d.ts +14 -0
- package/dist/esm/types/src/hooks/quotes/useSigningComplete.d.ts +5 -0
- package/dist/esm/types/src/hooks/subscriptions/useSubscriptions.d.ts +5 -0
- package/dist/esm/types/src/hooks/useCurrentUserData.d.ts +2 -0
- package/dist/esm/types/src/hooks/useFocusFirstInput.d.ts +7 -0
- package/dist/esm/types/src/hooks/useHasTaxPlugin.d.ts +5 -0
- package/dist/esm/types/src/hooks/useIsExpired.d.ts +2 -0
- package/dist/esm/types/src/hooks/useIsMobile.d.ts +10 -0
- package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +2 -0
- package/dist/esm/types/src/hooks/useSigningPlugins.d.ts +2 -0
- package/dist/esm/types/src/index.d.ts +2 -0
- package/dist/esm/types/src/mocks/browser.d.ts +1 -0
- package/dist/esm/types/src/mocks/handlers.d.ts +1 -0
- package/dist/esm/types/src/stories/Button.d.ts +15 -0
- package/dist/esm/types/src/stories/Button.stories.d.ts +9 -0
- package/dist/esm/types/src/stories/Header.d.ts +12 -0
- package/dist/esm/types/src/stories/Header.stories.d.ts +7 -0
- package/dist/esm/types/src/stories/Page.d.ts +3 -0
- package/dist/esm/types/src/stories/Page.stories.d.ts +7 -0
- package/dist/esm/types/src/utils.d.ts +9 -0
- package/dist/esm/types/vite.config.d.ts +2 -0
- package/dist/index.d.ts +100 -0
- package/package.json +82 -0
package/README.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# ℹ️ About
|
|
2
|
+
|
|
3
|
+
This repository provides components from the Bunny portal to integrate Bunny UI functionality into your application.
|
|
4
|
+
|
|
5
|
+
# 🧩 Components
|
|
6
|
+
|
|
7
|
+
- Invoice
|
|
8
|
+
- Quote
|
|
9
|
+
- PaymentMethod
|
|
10
|
+
- Transactions
|
|
11
|
+
- Subscriptions (view-only mode)
|
|
12
|
+
|
|
13
|
+
# 📦 Install
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @bunnyapp/components
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Ensure all peer dependencies in the package.json are installed.
|
|
20
|
+
|
|
21
|
+
# ⚙️ Configuration
|
|
22
|
+
|
|
23
|
+
1. Whitelist your subdomain in Bunny (e.g., `localhost` for development, `https://[company-name].bunny.com` for production).
|
|
24
|
+
2. Generate a portal session token using the `portalSessionCreate` mutation from the [Bunny API docs](https://docs.bunny.com/developer/api-reference/mutations/portalsessioncreate).
|
|
25
|
+
|
|
26
|
+
# 🔨 Usage
|
|
27
|
+
|
|
28
|
+
In order to use any of the components, you must wrap them in the BunnyProvider component.
|
|
29
|
+
The BunnyProvider component provides all the state management and context for the components
|
|
30
|
+
and keeps state up to date between all the components.
|
|
31
|
+
|
|
32
|
+
We recommend placing the BunnyProvider component at the root of your application so that all Bunny components will be children of the BunnyProvider component.
|
|
33
|
+
|
|
34
|
+
The below example shows how to use the BunnyProvider component with the Invoice and PaymentMethod components.
|
|
35
|
+
Here the data such as the saved payment method will be updated between the components.
|
|
36
|
+
|
|
37
|
+
```tsx
|
|
38
|
+
import {
|
|
39
|
+
BunnyProvider,
|
|
40
|
+
Invoice,
|
|
41
|
+
PaymentMethod,
|
|
42
|
+
Transactions,
|
|
43
|
+
Subscriptions,
|
|
44
|
+
} from "@bunnyapp/components";
|
|
45
|
+
|
|
46
|
+
function App() {
|
|
47
|
+
return (
|
|
48
|
+
<BunnyProvider
|
|
49
|
+
token={portalSessionToken}
|
|
50
|
+
subdomain={subdomain}
|
|
51
|
+
window={window}
|
|
52
|
+
accountId={accountId}
|
|
53
|
+
>
|
|
54
|
+
<Invoice id="12345" />
|
|
55
|
+
<PaymentMethod />
|
|
56
|
+
<Transactions />
|
|
57
|
+
<Subscriptions />
|
|
58
|
+
</BunnyProvider>
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
In this example, each component has their own BunnyProvider. This is not recommended as it will create a mismatch in the state
|
|
64
|
+
between each of the components. ie if a payment method is saved in the Invoice component, it will not automatically be available in the PaymentMethod component.
|
|
65
|
+
|
|
66
|
+
```tsx
|
|
67
|
+
import { BunnyProvider, Invoice, PaymentMethod } from "@bunnyapp/components";
|
|
68
|
+
|
|
69
|
+
function App() {
|
|
70
|
+
return (
|
|
71
|
+
<div>
|
|
72
|
+
<BunnyProvider
|
|
73
|
+
token={token}
|
|
74
|
+
subdomain={subdomain}
|
|
75
|
+
window={window}
|
|
76
|
+
accountId={accountId}
|
|
77
|
+
>
|
|
78
|
+
<Invoice id="12345" />
|
|
79
|
+
</BunnyProvider>
|
|
80
|
+
{/* Other components */}
|
|
81
|
+
<BunnyProvider
|
|
82
|
+
token={token}
|
|
83
|
+
subdomain={subdomain}
|
|
84
|
+
window={window}
|
|
85
|
+
accountId={accountId}
|
|
86
|
+
>
|
|
87
|
+
<PaymentMethod />
|
|
88
|
+
</BunnyProvider>
|
|
89
|
+
</div>
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Parameters
|
|
95
|
+
|
|
96
|
+
- `token`: Token that allows access to the Bunny API. Generate this using `portalSessionCreate` from [docs](https://docs.bunny.com/developer/api-reference/mutations/portalsessioncreate)
|
|
97
|
+
- `subdomain`: The subdomain the components will make requests to. e.g. `https://acme.bunny.com`
|
|
98
|
+
- `window`: The window to use for the BunnyProvider. We use the window for handling payment objects.
|
|
99
|
+
- `accountId`: The accountId to use for the BunnyProvider. To be deprecated.
|