@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const worker: import("msw/browser").SetupWorker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const handlers: import("msw/lib/core/GraphQLHandler-Cjm7JNGi").G[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './button.css';
|
|
2
|
+
export interface ButtonProps {
|
|
3
|
+
/** Is this the principal call to action on the page? */
|
|
4
|
+
primary?: boolean;
|
|
5
|
+
/** What background color to use */
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
/** How large should the button be? */
|
|
8
|
+
size?: 'small' | 'medium' | 'large';
|
|
9
|
+
/** Button contents */
|
|
10
|
+
label: string;
|
|
11
|
+
/** Optional click handler */
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
}
|
|
14
|
+
/** Primary UI component for user interaction */
|
|
15
|
+
export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Button } from './Button';
|
|
3
|
+
declare const meta: Meta<typeof Button>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Button>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Secondary: Story;
|
|
8
|
+
export declare const Large: Story;
|
|
9
|
+
export declare const Small: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './header.css';
|
|
2
|
+
type User = {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
export interface HeaderProps {
|
|
6
|
+
user?: User;
|
|
7
|
+
onLogin?: () => void;
|
|
8
|
+
onLogout?: () => void;
|
|
9
|
+
onCreateAccount?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Header } from './Header';
|
|
3
|
+
declare const meta: Meta<typeof Header>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Header>;
|
|
6
|
+
export declare const LoggedIn: Story;
|
|
7
|
+
export declare const LoggedOut: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Page } from './Page';
|
|
3
|
+
declare const meta: Meta<typeof Page>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Page>;
|
|
6
|
+
export declare const LoggedOut: Story;
|
|
7
|
+
export declare const LoggedIn: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function capitalizeFirstLetter(string: string): string;
|
|
2
|
+
export declare const WARREN_STATE_LS_KEY = "warrenState";
|
|
3
|
+
export declare const CURRENT_WARREN_ID_LS_KEY = "currentWarrenId";
|
|
4
|
+
export declare const ERROR_MESSAGE_NO_SUBDOMAIN_DEFINED = "No subdomain defined in local storage";
|
|
5
|
+
export declare const getIsCapacitorApp: () => boolean;
|
|
6
|
+
export declare const getApiBase: (subdomain?: string) => string;
|
|
7
|
+
export declare const getGraphQLBase: () => string;
|
|
8
|
+
export declare const createRequestHeaders: (token: string) => Record<string, any>;
|
|
9
|
+
export declare const useGraphQLRequest: () => (query: string, token: string, variables?: any) => Promise<unknown>;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { FormattedInvoice, Quote as Quote$1, PriceList, PaymentMethod as PaymentMethod$1, FrontendTransaction, TransactionKind } from '@bunnyapp/common';
|
|
4
|
+
import react from 'react';
|
|
5
|
+
import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
|
|
6
|
+
import { GraphQLClient } from 'graphql-request';
|
|
7
|
+
|
|
8
|
+
declare function Invoice({ id, invoiceQuoteViewComponent, backButtonName, onBackButtonClick, onInvoiceDownloadError, onPaymentSuccess, }: {
|
|
9
|
+
id?: string;
|
|
10
|
+
invoiceQuoteViewComponent?: react.ReactNode;
|
|
11
|
+
backButtonName?: string;
|
|
12
|
+
onBackButtonClick?: () => void;
|
|
13
|
+
onInvoiceDownloadError?: () => void;
|
|
14
|
+
onPaymentSuccess?: (savePaymentMethod?: boolean) => void;
|
|
15
|
+
}): react_jsx_runtime.JSX.Element;
|
|
16
|
+
|
|
17
|
+
declare global {
|
|
18
|
+
interface Window {
|
|
19
|
+
heap: any;
|
|
20
|
+
PayFields: any;
|
|
21
|
+
Finix: any;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare function Quote({ id }: {
|
|
26
|
+
id?: string;
|
|
27
|
+
}): react_jsx_runtime.JSX.Element;
|
|
28
|
+
|
|
29
|
+
declare function PaymentMethod({ footer, processPublicUrl, }: {
|
|
30
|
+
footer?: React.ReactNode;
|
|
31
|
+
processPublicUrl: string;
|
|
32
|
+
}): react_jsx_runtime.JSX.Element;
|
|
33
|
+
|
|
34
|
+
type CheckoutProps = {
|
|
35
|
+
invoice?: FormattedInvoice;
|
|
36
|
+
onCancel: () => void;
|
|
37
|
+
onFail: (error: any) => void;
|
|
38
|
+
onSuccess: ({ savePaymentMethod }: {
|
|
39
|
+
savePaymentMethod?: boolean;
|
|
40
|
+
}) => void;
|
|
41
|
+
open: boolean;
|
|
42
|
+
quote?: Quote$1;
|
|
43
|
+
selectedPriceList?: PriceList;
|
|
44
|
+
token: string;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
interface CheckoutComponentProps extends CheckoutProps {
|
|
48
|
+
isMobile: boolean;
|
|
49
|
+
token: string;
|
|
50
|
+
storedPaymentMethod?: PaymentMethod$1;
|
|
51
|
+
}
|
|
52
|
+
declare const Checkout: ({ onCancel, onSuccess, onFail, invoice, open, quote, selectedPriceList, isMobile, token, storedPaymentMethod, }: CheckoutComponentProps) => react_jsx_runtime.JSX.Element | null;
|
|
53
|
+
|
|
54
|
+
declare const getQuoteAmountDue: (quote: Quote$1) => number;
|
|
55
|
+
|
|
56
|
+
interface BunnyProviderProps {
|
|
57
|
+
children: React.ReactNode;
|
|
58
|
+
token: string;
|
|
59
|
+
subdomain: string;
|
|
60
|
+
window: Window;
|
|
61
|
+
accountId?: string;
|
|
62
|
+
}
|
|
63
|
+
declare function BunnyProvider({ children, token, subdomain, window, accountId, }: BunnyProviderProps): react_jsx_runtime.JSX.Element;
|
|
64
|
+
|
|
65
|
+
type TransactionListColumnType = "date-and-title" | "state" | "amount" | "download" | "actions";
|
|
66
|
+
|
|
67
|
+
declare function Transactions({ transactionComponent, showSearchBar, showTitle, columns, className, shadow, searchBarClassName, useModal, onTransactionClick, suppressTransactionDisplay, kindsToShow, }: {
|
|
68
|
+
/** A custom component to render instead of the default invoice component */
|
|
69
|
+
transactionComponent?: react.ReactNode;
|
|
70
|
+
/** Whether to show the search bar */
|
|
71
|
+
showSearchBar?: boolean;
|
|
72
|
+
/** Whether to show the title */
|
|
73
|
+
showTitle?: boolean;
|
|
74
|
+
/** The columns to display in the transactions list */
|
|
75
|
+
columns?: TransactionListColumnType[];
|
|
76
|
+
/** A custom class name to apply to the component */
|
|
77
|
+
className?: string;
|
|
78
|
+
/** Whether to use a modal for the invoice drawer */
|
|
79
|
+
useModal?: boolean;
|
|
80
|
+
/** Whether to show a shadow around the transactions list */
|
|
81
|
+
shadow?: "none" | "sm" | "md" | "lg" | "xl";
|
|
82
|
+
/** A custom class name to apply to the search bar */
|
|
83
|
+
searchBarClassName?: string;
|
|
84
|
+
/** A function to call when a transaction is clicked */
|
|
85
|
+
onTransactionClick?: (transaction: FrontendTransaction.Transaction) => void;
|
|
86
|
+
/** Whether to hide the display showing the transaction */
|
|
87
|
+
suppressTransactionDisplay?: boolean;
|
|
88
|
+
/** The kinds of transactions to show */
|
|
89
|
+
kindsToShow?: TransactionKind[];
|
|
90
|
+
}): react_jsx_runtime.JSX.Element;
|
|
91
|
+
|
|
92
|
+
declare const Subscriptions: ({ shadow, gap, showTitle, }: {
|
|
93
|
+
shadow?: "none" | "sm" | "md" | "lg" | undefined;
|
|
94
|
+
gap?: number | undefined;
|
|
95
|
+
showTitle?: boolean | undefined;
|
|
96
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
97
|
+
|
|
98
|
+
declare const usePaymentMethod: (graphQLClient: GraphQLClient) => _tanstack_react_query_build_legacy_types.UseQueryResult<any, Error>;
|
|
99
|
+
|
|
100
|
+
export { BunnyProvider, Checkout, Invoice, PaymentMethod, Quote, Subscriptions, Transactions, getQuoteAmountDue, usePaymentMethod };
|
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bunnyapp/components",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Components from the Bunny portal to embed Bunny UI functionality into your application.",
|
|
5
|
+
"main": "dist/cjs/index.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
13
|
+
"clean": "rimraf dist",
|
|
14
|
+
"build": "npm run clean && rollup -c",
|
|
15
|
+
"storybook": "storybook dev -p 6006",
|
|
16
|
+
"build-storybook": "storybook build",
|
|
17
|
+
"vite": "vite"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [],
|
|
20
|
+
"author": "Bunny",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@chromatic-com/storybook": "^3.2.2",
|
|
24
|
+
"@rollup/plugin-commonjs": "^20.0.0",
|
|
25
|
+
"@rollup/plugin-node-resolve": "^13.0.4",
|
|
26
|
+
"@rollup/plugin-replace": "^6.0.1",
|
|
27
|
+
"@rollup/plugin-typescript": "^8.2.5",
|
|
28
|
+
"@storybook/addon-essentials": "^8.4.5",
|
|
29
|
+
"@storybook/addon-interactions": "^8.4.5",
|
|
30
|
+
"@storybook/addon-onboarding": "^8.4.5",
|
|
31
|
+
"@storybook/blocks": "^8.4.5",
|
|
32
|
+
"@storybook/react": "^8.4.5",
|
|
33
|
+
"@storybook/react-vite": "^8.4.5",
|
|
34
|
+
"@storybook/test": "^8.4.5",
|
|
35
|
+
"@tanstack/eslint-plugin-query": "^5.60.1",
|
|
36
|
+
"@types/hellosign-embedded": "^2.0.6",
|
|
37
|
+
"@types/lodash": "^4.17.13",
|
|
38
|
+
"@types/react": "^18.3.1",
|
|
39
|
+
"@types/react-dom": "^18.3.1",
|
|
40
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
41
|
+
"autoprefixer": "^10.4.20",
|
|
42
|
+
"dependency-cruiser": "^16.8.0",
|
|
43
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
44
|
+
"less": "^4.2.0",
|
|
45
|
+
"msw": "^2.6.5",
|
|
46
|
+
"postcss-less": "^6.0.0",
|
|
47
|
+
"rimraf": "^3.0.2",
|
|
48
|
+
"rollup": "^2.56.2",
|
|
49
|
+
"rollup-plugin-dts": "^3.0.2",
|
|
50
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
51
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
52
|
+
"rollup-plugin-shell": "^1.0.9",
|
|
53
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
54
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
55
|
+
"storybook": "^8.4.6",
|
|
56
|
+
"typescript": "^4.3.5",
|
|
57
|
+
"vite": "^5.4.11"
|
|
58
|
+
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"@bunnyapp/common": "^1.0.32",
|
|
61
|
+
"@stripe/react-stripe-js": "^3.0.0",
|
|
62
|
+
"@stripe/stripe-js": "^5.2.0",
|
|
63
|
+
"@tanstack/react-query": "^5.59.20",
|
|
64
|
+
"antd": "^5.22.1",
|
|
65
|
+
"graphql-request": "^7.1.2",
|
|
66
|
+
"hellosign-embedded": "^2.12.2",
|
|
67
|
+
"interweave": "^13.1.0",
|
|
68
|
+
"less": "^4.2.0",
|
|
69
|
+
"lodash": "^4.17.21",
|
|
70
|
+
"react": "^18.3.1",
|
|
71
|
+
"react-dom": "^18.3.1",
|
|
72
|
+
"react-helmet-async": "^2.0.5",
|
|
73
|
+
"recharts": "^2.15.0",
|
|
74
|
+
"recoil": "^0.7.7",
|
|
75
|
+
"styled-components": "^6.1.13"
|
|
76
|
+
},
|
|
77
|
+
"msw": {
|
|
78
|
+
"workerDirectory": [
|
|
79
|
+
"public"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
}
|