@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.
Files changed (293) hide show
  1. package/README.md +99 -0
  2. package/dist/cjs/index.js +5179 -0
  3. package/dist/cjs/types/playground/main.d.ts +1 -0
  4. package/dist/cjs/types/src/atoms/pageContentRefAtom.d.ts +1 -0
  5. package/dist/cjs/types/src/atoms/planPickerQuoteDataAtom.d.ts +2 -0
  6. package/dist/cjs/types/src/atoms/updatingChargeQuantityIdAtom.d.ts +2 -0
  7. package/dist/cjs/types/src/components/BunnyProvider.d.ts +19 -0
  8. package/dist/cjs/types/src/components/Card.d.ts +5 -0
  9. package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +9 -0
  10. package/dist/cjs/types/src/components/Checkout/CouponComponent.d.ts +7 -0
  11. package/dist/cjs/types/src/components/Checkout/InvoiceCheckout.d.ts +7 -0
  12. package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +11 -0
  13. package/dist/cjs/types/src/components/Checkout/checkoutUtils.d.ts +2 -0
  14. package/dist/cjs/types/src/components/Checkout/index.d.ts +2 -0
  15. package/dist/cjs/types/src/components/DrawerHeader.d.ts +6 -0
  16. package/dist/cjs/types/src/components/Error.d.ts +5 -0
  17. package/dist/cjs/types/src/components/FeatureUsageGraph.d.ts +6 -0
  18. package/dist/cjs/types/src/components/Footer.d.ts +2 -0
  19. package/dist/cjs/types/src/components/HeaderModalWrapper.d.ts +2 -0
  20. package/dist/cjs/types/src/components/Icons/BunnyFooterIcon.d.ts +4 -0
  21. package/dist/cjs/types/src/components/Icons/CardIcon.d.ts +2 -0
  22. package/dist/cjs/types/src/components/Invoice/Invoice.d.ts +10 -0
  23. package/dist/cjs/types/src/components/Invoice/Invoice.stories.d.ts +9 -0
  24. package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView.d.ts +12 -0
  25. package/dist/cjs/types/src/components/Invoice/index.d.ts +8 -0
  26. package/dist/cjs/types/src/components/LegacyInvoicePDF.d.ts +4 -0
  27. package/dist/cjs/types/src/components/PageContent.d.ts +7 -0
  28. package/dist/cjs/types/src/components/PageHeaderWithActions.d.ts +6 -0
  29. package/dist/cjs/types/src/components/PageWrapper.d.ts +1 -0
  30. package/dist/cjs/types/src/components/PandadocPollingModal.d.ts +7 -0
  31. package/dist/cjs/types/src/components/PaymentForm/CheckoutFooter.d.ts +9 -0
  32. package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayCardCvc.d.ts +7 -0
  33. package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayCardNumber.d.ts +7 -0
  34. package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayExpiry.d.ts +7 -0
  35. package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +3 -0
  36. package/dist/cjs/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +23 -0
  37. package/dist/cjs/types/src/components/PaymentForm/DemoPay/index.d.ts +1 -0
  38. package/dist/cjs/types/src/components/PaymentForm/Finix/FinixCardForm.d.ts +4 -0
  39. package/dist/cjs/types/src/components/PaymentForm/Finix/index.d.ts +2 -0
  40. package/dist/cjs/types/src/components/PaymentForm/FinixAch.d.ts +3 -0
  41. package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +7 -0
  42. package/dist/cjs/types/src/components/PaymentForm/PaymentFormTypes.d.ts +56 -0
  43. package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/CreditCard/CreditCard.d.ts +12 -0
  44. package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/CreditCard/LargCardIcon.d.ts +2 -0
  45. package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/CreditCard/PlusIcon.d.ts +4 -0
  46. package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/PaymentMethod.d.ts +5 -0
  47. package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/PaymentMethodContext.d.ts +6 -0
  48. package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/index.d.ts +1 -0
  49. package/dist/cjs/types/src/components/PaymentForm/PaymentMethodForm.d.ts +3 -0
  50. package/dist/cjs/types/src/components/PaymentForm/PaymentMethodSelector.d.ts +8 -0
  51. package/dist/cjs/types/src/components/PaymentForm/PaymentOption.d.ts +8 -0
  52. package/dist/cjs/types/src/components/PaymentForm/StoredPaymentMethod/StoredPaymentMethodForm.d.ts +3 -0
  53. package/dist/cjs/types/src/components/PaymentForm/Stripe/CheckoutForm.d.ts +3 -0
  54. package/dist/cjs/types/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +3 -0
  55. package/dist/cjs/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +3 -0
  56. package/dist/cjs/types/src/components/PaymentForm/Stripe/index.d.ts +1 -0
  57. package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +20 -0
  58. package/dist/cjs/types/src/components/PaymentForm/index.d.ts +1 -0
  59. package/dist/cjs/types/src/components/PaymentForm/paymentUtils.d.ts +7 -0
  60. package/dist/cjs/types/src/components/Quote/AcceptQuoteModal.d.ts +9 -0
  61. package/dist/cjs/types/src/components/Quote/DocumentNameEnum.d.ts +4 -0
  62. package/dist/cjs/types/src/components/Quote/Quote.d.ts +6 -0
  63. package/dist/cjs/types/src/components/Quote/Quote.stories.d.ts +8 -0
  64. package/dist/cjs/types/src/components/Quote/QuoteContext.d.ts +5 -0
  65. package/dist/cjs/types/src/components/Quote/StyledModal.d.ts +3 -0
  66. package/dist/cjs/types/src/components/Quote/index.d.ts +1 -0
  67. package/dist/cjs/types/src/components/StateTag.d.ts +6 -0
  68. package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +21 -0
  69. package/dist/cjs/types/src/components/Subscriptions/index.d.ts +1 -0
  70. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +5 -0
  71. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/HideExpiredToggle.d.ts +7 -0
  72. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +8 -0
  73. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardHeader.d.ts +8 -0
  74. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +6 -0
  75. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +6 -0
  76. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +10 -0
  77. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +8 -0
  78. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardColumnHeaders.d.ts +12 -0
  79. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +8 -0
  80. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionsCardCell.d.ts +9 -0
  81. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardCellMobile.d.ts +8 -0
  82. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +8 -0
  83. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +20 -0
  84. package/dist/cjs/types/src/components/TaxationForm.d.ts +6 -0
  85. package/dist/cjs/types/src/components/Transactions/DocumentNameEnum.d.ts +4 -0
  86. package/dist/cjs/types/src/components/Transactions/Transactions.d.ts +27 -0
  87. package/dist/cjs/types/src/components/Transactions/Transactions.stories.d.ts +17 -0
  88. package/dist/cjs/types/src/components/Transactions/TransactionsListContext.d.ts +17 -0
  89. package/dist/cjs/types/src/components/Transactions/index.d.ts +1 -0
  90. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionDate.d.ts +4 -0
  91. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionDownload.d.ts +7 -0
  92. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionGridCell.d.ts +7 -0
  93. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionTitle.d.ts +5 -0
  94. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsEmptyState.d.ts +2 -0
  95. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +7 -0
  96. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +6 -0
  97. package/dist/cjs/types/src/components/index.d.ts +7 -0
  98. package/dist/cjs/types/src/consts/paymentConsts.d.ts +16 -0
  99. package/dist/cjs/types/src/contexts/BrandContext.d.ts +7 -0
  100. package/dist/cjs/types/src/contexts/NavigationContext.d.ts +9 -0
  101. package/dist/cjs/types/src/enums/SubscriptionState.d.ts +8 -0
  102. package/dist/cjs/types/src/features/quantityChangeDrawer/QuantityChangeGridRow.d.ts +11 -0
  103. package/dist/cjs/types/src/features/quantityChangeDrawer/QuantityChangeGridTitle.d.ts +6 -0
  104. package/dist/cjs/types/src/features/quantityChangeDrawer/QuantityInput.d.ts +21 -0
  105. package/dist/cjs/types/src/features/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +9 -0
  106. package/dist/cjs/types/src/features/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +14 -0
  107. package/dist/cjs/types/src/graphql/QuoteRequests.d.ts +6 -0
  108. package/dist/cjs/types/src/graphql/SubscriptionRequests.d.ts +2 -0
  109. package/dist/cjs/types/src/graphql/mutations/accountUpdate.d.ts +6 -0
  110. package/dist/cjs/types/src/graphql/mutations/checkout.d.ts +23 -0
  111. package/dist/cjs/types/src/graphql/mutations/quoteAddCoupon.d.ts +7 -0
  112. package/dist/cjs/types/src/graphql/mutations/quoteCompose.d.ts +11 -0
  113. package/dist/cjs/types/src/graphql/mutations/quoteRecalculateTaxes.d.ts +5 -0
  114. package/dist/cjs/types/src/graphql/mutations/quoteSubscriptionReinstate.d.ts +7 -0
  115. package/dist/cjs/types/src/graphql/queries/getBranding.d.ts +6 -0
  116. package/dist/cjs/types/src/graphql/queries/getCurrentUserData.d.ts +12 -0
  117. package/dist/cjs/types/src/graphql/queries/getFeatureUsage.d.ts +9 -0
  118. package/dist/cjs/types/src/graphql/queries/getFormattedInvoice.d.ts +7 -0
  119. package/dist/cjs/types/src/graphql/queries/getFormattedQuote.d.ts +3 -0
  120. package/dist/cjs/types/src/graphql/queries/getInvoice.d.ts +7 -0
  121. package/dist/cjs/types/src/graphql/queries/getPlanChangeOptions.d.ts +8 -0
  122. package/dist/cjs/types/src/graphql/queries/getQuote.d.ts +7 -0
  123. package/dist/cjs/types/src/graphql/queries/getSubscriptions.d.ts +7 -0
  124. package/dist/cjs/types/src/graphql/queries/getTransactions.d.ts +3 -0
  125. package/dist/cjs/types/src/hooks/index.d.ts +1 -0
  126. package/dist/cjs/types/src/hooks/quotes/useSendAcceptQuote.d.ts +14 -0
  127. package/dist/cjs/types/src/hooks/quotes/useSigningComplete.d.ts +5 -0
  128. package/dist/cjs/types/src/hooks/subscriptions/useSubscriptions.d.ts +5 -0
  129. package/dist/cjs/types/src/hooks/useCurrentUserData.d.ts +2 -0
  130. package/dist/cjs/types/src/hooks/useFocusFirstInput.d.ts +7 -0
  131. package/dist/cjs/types/src/hooks/useHasTaxPlugin.d.ts +5 -0
  132. package/dist/cjs/types/src/hooks/useIsExpired.d.ts +2 -0
  133. package/dist/cjs/types/src/hooks/useIsMobile.d.ts +10 -0
  134. package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +2 -0
  135. package/dist/cjs/types/src/hooks/useSigningPlugins.d.ts +2 -0
  136. package/dist/cjs/types/src/index.d.ts +2 -0
  137. package/dist/cjs/types/src/mocks/browser.d.ts +1 -0
  138. package/dist/cjs/types/src/mocks/handlers.d.ts +1 -0
  139. package/dist/cjs/types/src/stories/Button.d.ts +15 -0
  140. package/dist/cjs/types/src/stories/Button.stories.d.ts +9 -0
  141. package/dist/cjs/types/src/stories/Header.d.ts +12 -0
  142. package/dist/cjs/types/src/stories/Header.stories.d.ts +7 -0
  143. package/dist/cjs/types/src/stories/Page.d.ts +3 -0
  144. package/dist/cjs/types/src/stories/Page.stories.d.ts +7 -0
  145. package/dist/cjs/types/src/utils.d.ts +9 -0
  146. package/dist/cjs/types/vite.config.d.ts +2 -0
  147. package/dist/esm/index.js +5143 -0
  148. package/dist/esm/types/playground/main.d.ts +1 -0
  149. package/dist/esm/types/src/atoms/pageContentRefAtom.d.ts +1 -0
  150. package/dist/esm/types/src/atoms/planPickerQuoteDataAtom.d.ts +2 -0
  151. package/dist/esm/types/src/atoms/updatingChargeQuantityIdAtom.d.ts +2 -0
  152. package/dist/esm/types/src/components/BunnyProvider.d.ts +19 -0
  153. package/dist/esm/types/src/components/Card.d.ts +5 -0
  154. package/dist/esm/types/src/components/Checkout/Checkout.d.ts +9 -0
  155. package/dist/esm/types/src/components/Checkout/CouponComponent.d.ts +7 -0
  156. package/dist/esm/types/src/components/Checkout/InvoiceCheckout.d.ts +7 -0
  157. package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +11 -0
  158. package/dist/esm/types/src/components/Checkout/checkoutUtils.d.ts +2 -0
  159. package/dist/esm/types/src/components/Checkout/index.d.ts +2 -0
  160. package/dist/esm/types/src/components/DrawerHeader.d.ts +6 -0
  161. package/dist/esm/types/src/components/Error.d.ts +5 -0
  162. package/dist/esm/types/src/components/FeatureUsageGraph.d.ts +6 -0
  163. package/dist/esm/types/src/components/Footer.d.ts +2 -0
  164. package/dist/esm/types/src/components/HeaderModalWrapper.d.ts +2 -0
  165. package/dist/esm/types/src/components/Icons/BunnyFooterIcon.d.ts +4 -0
  166. package/dist/esm/types/src/components/Icons/CardIcon.d.ts +2 -0
  167. package/dist/esm/types/src/components/Invoice/Invoice.d.ts +10 -0
  168. package/dist/esm/types/src/components/Invoice/Invoice.stories.d.ts +9 -0
  169. package/dist/esm/types/src/components/Invoice/InvoiceQuoteView.d.ts +12 -0
  170. package/dist/esm/types/src/components/Invoice/index.d.ts +8 -0
  171. package/dist/esm/types/src/components/LegacyInvoicePDF.d.ts +4 -0
  172. package/dist/esm/types/src/components/PageContent.d.ts +7 -0
  173. package/dist/esm/types/src/components/PageHeaderWithActions.d.ts +6 -0
  174. package/dist/esm/types/src/components/PageWrapper.d.ts +1 -0
  175. package/dist/esm/types/src/components/PandadocPollingModal.d.ts +7 -0
  176. package/dist/esm/types/src/components/PaymentForm/CheckoutFooter.d.ts +9 -0
  177. package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayCardCvc.d.ts +7 -0
  178. package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayCardNumber.d.ts +7 -0
  179. package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayExpiry.d.ts +7 -0
  180. package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +3 -0
  181. package/dist/esm/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +23 -0
  182. package/dist/esm/types/src/components/PaymentForm/DemoPay/index.d.ts +1 -0
  183. package/dist/esm/types/src/components/PaymentForm/Finix/FinixCardForm.d.ts +4 -0
  184. package/dist/esm/types/src/components/PaymentForm/Finix/index.d.ts +2 -0
  185. package/dist/esm/types/src/components/PaymentForm/FinixAch.d.ts +3 -0
  186. package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +7 -0
  187. package/dist/esm/types/src/components/PaymentForm/PaymentFormTypes.d.ts +56 -0
  188. package/dist/esm/types/src/components/PaymentForm/PaymentMethod/CreditCard/CreditCard.d.ts +12 -0
  189. package/dist/esm/types/src/components/PaymentForm/PaymentMethod/CreditCard/LargCardIcon.d.ts +2 -0
  190. package/dist/esm/types/src/components/PaymentForm/PaymentMethod/CreditCard/PlusIcon.d.ts +4 -0
  191. package/dist/esm/types/src/components/PaymentForm/PaymentMethod/PaymentMethod.d.ts +5 -0
  192. package/dist/esm/types/src/components/PaymentForm/PaymentMethod/PaymentMethodContext.d.ts +6 -0
  193. package/dist/esm/types/src/components/PaymentForm/PaymentMethod/index.d.ts +1 -0
  194. package/dist/esm/types/src/components/PaymentForm/PaymentMethodForm.d.ts +3 -0
  195. package/dist/esm/types/src/components/PaymentForm/PaymentMethodSelector.d.ts +8 -0
  196. package/dist/esm/types/src/components/PaymentForm/PaymentOption.d.ts +8 -0
  197. package/dist/esm/types/src/components/PaymentForm/StoredPaymentMethod/StoredPaymentMethodForm.d.ts +3 -0
  198. package/dist/esm/types/src/components/PaymentForm/Stripe/CheckoutForm.d.ts +3 -0
  199. package/dist/esm/types/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +3 -0
  200. package/dist/esm/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +3 -0
  201. package/dist/esm/types/src/components/PaymentForm/Stripe/index.d.ts +1 -0
  202. package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +20 -0
  203. package/dist/esm/types/src/components/PaymentForm/index.d.ts +1 -0
  204. package/dist/esm/types/src/components/PaymentForm/paymentUtils.d.ts +7 -0
  205. package/dist/esm/types/src/components/Quote/AcceptQuoteModal.d.ts +9 -0
  206. package/dist/esm/types/src/components/Quote/DocumentNameEnum.d.ts +4 -0
  207. package/dist/esm/types/src/components/Quote/Quote.d.ts +6 -0
  208. package/dist/esm/types/src/components/Quote/Quote.stories.d.ts +8 -0
  209. package/dist/esm/types/src/components/Quote/QuoteContext.d.ts +5 -0
  210. package/dist/esm/types/src/components/Quote/StyledModal.d.ts +3 -0
  211. package/dist/esm/types/src/components/Quote/index.d.ts +1 -0
  212. package/dist/esm/types/src/components/StateTag.d.ts +6 -0
  213. package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +21 -0
  214. package/dist/esm/types/src/components/Subscriptions/index.d.ts +1 -0
  215. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +5 -0
  216. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/HideExpiredToggle.d.ts +7 -0
  217. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +8 -0
  218. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardHeader.d.ts +8 -0
  219. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +6 -0
  220. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +6 -0
  221. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +10 -0
  222. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +8 -0
  223. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardColumnHeaders.d.ts +12 -0
  224. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +8 -0
  225. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionsCardCell.d.ts +9 -0
  226. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardCellMobile.d.ts +8 -0
  227. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +8 -0
  228. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +20 -0
  229. package/dist/esm/types/src/components/TaxationForm.d.ts +6 -0
  230. package/dist/esm/types/src/components/Transactions/DocumentNameEnum.d.ts +4 -0
  231. package/dist/esm/types/src/components/Transactions/Transactions.d.ts +27 -0
  232. package/dist/esm/types/src/components/Transactions/Transactions.stories.d.ts +17 -0
  233. package/dist/esm/types/src/components/Transactions/TransactionsListContext.d.ts +17 -0
  234. package/dist/esm/types/src/components/Transactions/index.d.ts +1 -0
  235. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionDate.d.ts +4 -0
  236. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionDownload.d.ts +7 -0
  237. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionGridCell.d.ts +7 -0
  238. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionTitle.d.ts +5 -0
  239. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsEmptyState.d.ts +2 -0
  240. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +7 -0
  241. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +6 -0
  242. package/dist/esm/types/src/components/index.d.ts +7 -0
  243. package/dist/esm/types/src/consts/paymentConsts.d.ts +16 -0
  244. package/dist/esm/types/src/contexts/BrandContext.d.ts +7 -0
  245. package/dist/esm/types/src/contexts/NavigationContext.d.ts +9 -0
  246. package/dist/esm/types/src/enums/SubscriptionState.d.ts +8 -0
  247. package/dist/esm/types/src/features/quantityChangeDrawer/QuantityChangeGridRow.d.ts +11 -0
  248. package/dist/esm/types/src/features/quantityChangeDrawer/QuantityChangeGridTitle.d.ts +6 -0
  249. package/dist/esm/types/src/features/quantityChangeDrawer/QuantityInput.d.ts +21 -0
  250. package/dist/esm/types/src/features/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +9 -0
  251. package/dist/esm/types/src/features/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +14 -0
  252. package/dist/esm/types/src/graphql/QuoteRequests.d.ts +6 -0
  253. package/dist/esm/types/src/graphql/SubscriptionRequests.d.ts +2 -0
  254. package/dist/esm/types/src/graphql/mutations/accountUpdate.d.ts +6 -0
  255. package/dist/esm/types/src/graphql/mutations/checkout.d.ts +23 -0
  256. package/dist/esm/types/src/graphql/mutations/quoteAddCoupon.d.ts +7 -0
  257. package/dist/esm/types/src/graphql/mutations/quoteCompose.d.ts +11 -0
  258. package/dist/esm/types/src/graphql/mutations/quoteRecalculateTaxes.d.ts +5 -0
  259. package/dist/esm/types/src/graphql/mutations/quoteSubscriptionReinstate.d.ts +7 -0
  260. package/dist/esm/types/src/graphql/queries/getBranding.d.ts +6 -0
  261. package/dist/esm/types/src/graphql/queries/getCurrentUserData.d.ts +12 -0
  262. package/dist/esm/types/src/graphql/queries/getFeatureUsage.d.ts +9 -0
  263. package/dist/esm/types/src/graphql/queries/getFormattedInvoice.d.ts +7 -0
  264. package/dist/esm/types/src/graphql/queries/getFormattedQuote.d.ts +3 -0
  265. package/dist/esm/types/src/graphql/queries/getInvoice.d.ts +7 -0
  266. package/dist/esm/types/src/graphql/queries/getPlanChangeOptions.d.ts +8 -0
  267. package/dist/esm/types/src/graphql/queries/getQuote.d.ts +7 -0
  268. package/dist/esm/types/src/graphql/queries/getSubscriptions.d.ts +7 -0
  269. package/dist/esm/types/src/graphql/queries/getTransactions.d.ts +3 -0
  270. package/dist/esm/types/src/hooks/index.d.ts +1 -0
  271. package/dist/esm/types/src/hooks/quotes/useSendAcceptQuote.d.ts +14 -0
  272. package/dist/esm/types/src/hooks/quotes/useSigningComplete.d.ts +5 -0
  273. package/dist/esm/types/src/hooks/subscriptions/useSubscriptions.d.ts +5 -0
  274. package/dist/esm/types/src/hooks/useCurrentUserData.d.ts +2 -0
  275. package/dist/esm/types/src/hooks/useFocusFirstInput.d.ts +7 -0
  276. package/dist/esm/types/src/hooks/useHasTaxPlugin.d.ts +5 -0
  277. package/dist/esm/types/src/hooks/useIsExpired.d.ts +2 -0
  278. package/dist/esm/types/src/hooks/useIsMobile.d.ts +10 -0
  279. package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +2 -0
  280. package/dist/esm/types/src/hooks/useSigningPlugins.d.ts +2 -0
  281. package/dist/esm/types/src/index.d.ts +2 -0
  282. package/dist/esm/types/src/mocks/browser.d.ts +1 -0
  283. package/dist/esm/types/src/mocks/handlers.d.ts +1 -0
  284. package/dist/esm/types/src/stories/Button.d.ts +15 -0
  285. package/dist/esm/types/src/stories/Button.stories.d.ts +9 -0
  286. package/dist/esm/types/src/stories/Header.d.ts +12 -0
  287. package/dist/esm/types/src/stories/Header.stories.d.ts +7 -0
  288. package/dist/esm/types/src/stories/Page.d.ts +3 -0
  289. package/dist/esm/types/src/stories/Page.stories.d.ts +7 -0
  290. package/dist/esm/types/src/utils.d.ts +9 -0
  291. package/dist/esm/types/vite.config.d.ts +2 -0
  292. package/dist/index.d.ts +100 -0
  293. package/package.json +82 -0
@@ -0,0 +1,6 @@
1
+ import { Subscription, SubscriptionCharge } from "@bunnyapp/common";
2
+ declare const SubscriptionChargeTotal: ({ charge, subscription, }: {
3
+ charge: SubscriptionCharge;
4
+ subscription: Subscription;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default SubscriptionChargeTotal;
@@ -0,0 +1,6 @@
1
+ import { Subscription, SubscriptionCharge } from "@bunnyapp/common";
2
+ declare const SubscriptionChargeUnitPrice: ({ charge, subscription, }: {
3
+ charge: SubscriptionCharge;
4
+ subscription: Subscription;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default SubscriptionChargeUnitPrice;
@@ -0,0 +1,10 @@
1
+ import { Invoice, PlanChangeOptions, Subscription } from "@bunnyapp/common";
2
+ declare const SubscriptionsList: ({ hideExpired, planChangeOptions, setEditingQuoteData, setPayModalVisible, subscriptions, }: {
3
+ hideExpired: boolean;
4
+ invoice?: Invoice | undefined;
5
+ planChangeOptions?: PlanChangeOptions | undefined;
6
+ setEditingQuoteData: (value: any) => void;
7
+ setPayModalVisible: (value: any) => void;
8
+ subscriptions: Subscription[];
9
+ }) => (import("react/jsx-runtime").JSX.Element | null)[];
10
+ export default SubscriptionsList;
@@ -0,0 +1,8 @@
1
+ import { Subscription } from "@bunnyapp/common";
2
+ declare const SubscriptionsNavigation: ({ hideExpired, setHideExpired, setQuantityDrawerOpen, subscriptions, }: {
3
+ hideExpired: boolean;
4
+ setHideExpired: (value: boolean) => void;
5
+ setQuantityDrawerOpen: (value: boolean) => void;
6
+ subscriptions: Subscription[];
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export default SubscriptionsNavigation;
@@ -0,0 +1,12 @@
1
+ declare const SubscriptionCardColumnHeaders: ({ columns, }: {
2
+ columns: ({
3
+ title: string;
4
+ width: string;
5
+ className?: undefined;
6
+ } | {
7
+ className: string;
8
+ title: string;
9
+ width: string;
10
+ })[];
11
+ }) => import("react/jsx-runtime").JSX.Element[];
12
+ export default SubscriptionCardColumnHeaders;
@@ -0,0 +1,8 @@
1
+ import { PlanChangeOptions, Subscription } from "@bunnyapp/common";
2
+ declare const SubscriptionCardDesktop: ({ planChangeOptions, setEditingQuoteData, setPayModalVisible, subscription, }: {
3
+ planChangeOptions?: PlanChangeOptions | undefined;
4
+ setEditingQuoteData: (value: any) => void;
5
+ setPayModalVisible: (value: any) => void;
6
+ subscription: Subscription;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export default SubscriptionCardDesktop;
@@ -0,0 +1,9 @@
1
+ import { CSSProperties, ReactNode } from "react";
2
+ declare const SubscriptionsListCell: ({ children, className, gridColumn, right, style, }: {
3
+ children?: ReactNode | ReactNode[];
4
+ className?: string | undefined;
5
+ gridColumn?: string | number | undefined;
6
+ right?: boolean | undefined;
7
+ style?: CSSProperties | undefined;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ export default SubscriptionsListCell;
@@ -0,0 +1,8 @@
1
+ import { CSSProperties, ReactNode } from "react";
2
+ type SubscriptionCardCellMobileProps = {
3
+ children: ReactNode;
4
+ className?: string;
5
+ style?: CSSProperties;
6
+ };
7
+ declare const SubscriptionCardCellMobile: ({ children, className, style, }: SubscriptionCardCellMobileProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default SubscriptionCardCellMobile;
@@ -0,0 +1,8 @@
1
+ import { PlanChangeOptions, Subscription } from "@bunnyapp/common";
2
+ declare const SubscriptionCard: ({ planChangeOptions, setEditingQuoteData, setPayModalVisible, subscription, }: {
3
+ planChangeOptions?: PlanChangeOptions | undefined;
4
+ setEditingQuoteData: (value: any) => void;
5
+ setPayModalVisible: (value: any) => void;
6
+ subscription: Subscription;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export default SubscriptionCard;
@@ -0,0 +1,20 @@
1
+ import { Plan, Product, Quote, Subscription, SubscriptionCharge } from "@bunnyapp/common";
2
+ import { EditingSubscriptionType } from "../../../features/quantityChangeDrawer/QuantityInput";
3
+ export declare const canShowQuantitiesInput: (charge: SubscriptionCharge, subscription: Subscription) => boolean | undefined;
4
+ export declare const createQuoteParams: (quote: Quote, subscriptionQuantity: number, editedSubscription?: EditingSubscriptionType) => {
5
+ charges: {
6
+ id: string;
7
+ quantity: number;
8
+ }[];
9
+ quoteChange: import("@bunnyapp/common").QuoteChange | undefined;
10
+ };
11
+ export declare const canShowChangeQuantities: ({ subscriptions, }: {
12
+ subscriptions: Subscription[];
13
+ }) => boolean;
14
+ export declare const isSubscriptionNotActive: (subscription: Subscription) => boolean;
15
+ export declare const productPlanName: ({ plan, product, }: {
16
+ plan: Plan;
17
+ product: Product;
18
+ }) => string;
19
+ export declare const canShowSubscriptionActions: (subscription: Subscription) => boolean;
20
+ export declare const canShowCanceledActions: (subscription: Subscription) => boolean;
@@ -0,0 +1,6 @@
1
+ import { Account, Quote } from "@bunnyapp/common";
2
+ declare const TaxationForm: ({ account, quote, }: {
3
+ account: Account;
4
+ quote: Quote;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default TaxationForm;
@@ -0,0 +1,4 @@
1
+ export declare enum DOCUMENT_NAME {
2
+ INVOICE = "invoice",
3
+ QUOTE = "quote"
4
+ }
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ import { TransactionListColumnType } from "./transactionsList/TransactionsListDesktop";
3
+ import { FrontendTransaction as T, TransactionKind } from "@bunnyapp/common";
4
+ export default function Transactions({ transactionComponent, showSearchBar, showTitle, columns, className, shadow, searchBarClassName, useModal, onTransactionClick, suppressTransactionDisplay, kindsToShow, }: {
5
+ /** A custom component to render instead of the default invoice component */
6
+ transactionComponent?: React.ReactNode;
7
+ /** Whether to show the search bar */
8
+ showSearchBar?: boolean;
9
+ /** Whether to show the title */
10
+ showTitle?: boolean;
11
+ /** The columns to display in the transactions list */
12
+ columns?: TransactionListColumnType[];
13
+ /** A custom class name to apply to the component */
14
+ className?: string;
15
+ /** Whether to use a modal for the invoice drawer */
16
+ useModal?: boolean;
17
+ /** Whether to show a shadow around the transactions list */
18
+ shadow?: "none" | "sm" | "md" | "lg" | "xl";
19
+ /** A custom class name to apply to the search bar */
20
+ searchBarClassName?: string;
21
+ /** A function to call when a transaction is clicked */
22
+ onTransactionClick?: (transaction: T.Transaction) => void;
23
+ /** Whether to hide the display showing the transaction */
24
+ suppressTransactionDisplay?: boolean;
25
+ /** The kinds of transactions to show */
26
+ kindsToShow?: TransactionKind[];
27
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import type { StoryObj } from "@storybook/react";
2
+ import Transactions from "./Transactions";
3
+ declare const meta: {
4
+ component: typeof Transactions;
5
+ tags: string[];
6
+ };
7
+ export default meta;
8
+ type Story = StoryObj<typeof meta>;
9
+ export declare const Default: Story;
10
+ export declare const WithModal: Story;
11
+ export declare const WithoutSearchBar: Story;
12
+ export declare const Mobile: Story;
13
+ export declare const WithCustomTransactionComponent: Story;
14
+ export declare const WithCustomColumns1: Story;
15
+ export declare const WithCustomColumns2: Story;
16
+ export declare const WithCustomColumns3: Story;
17
+ export declare const WithCustomColumns4: Story;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { FrontendTransaction as T, TransactionKind } from "@bunnyapp/common";
3
+ import { TransactionListColumnType } from "./transactionsList/TransactionsListDesktop";
4
+ export type TransactionsContextValues = {
5
+ showSearchBar?: boolean;
6
+ showTitle?: boolean;
7
+ transactionComponent?: React.ReactNode;
8
+ columns: TransactionListColumnType[];
9
+ className?: string;
10
+ shadow?: "none" | "sm" | "md" | "lg" | "xl";
11
+ searchBarClassName?: string;
12
+ useModal?: boolean;
13
+ onTransactionClick?: (transaction: T.Transaction) => void;
14
+ suppressTransactionDisplay?: boolean;
15
+ kindsToShow: TransactionKind[];
16
+ };
17
+ export declare const TransactionsListContext: import("react").Context<TransactionsContextValues>;
@@ -0,0 +1 @@
1
+ export { default } from "./Transactions";
@@ -0,0 +1,4 @@
1
+ declare const TransactionDate: ({ date }: {
2
+ date: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default TransactionDate;
@@ -0,0 +1,7 @@
1
+ import { FrontendTransaction as T } from "@bunnyapp/common";
2
+ declare const TransactionDownload: ({ transaction, token, subdomain, }: {
3
+ transaction: T.Transaction;
4
+ token: string;
5
+ subdomain: string;
6
+ }) => import("react/jsx-runtime").JSX.Element | null;
7
+ export default TransactionDownload;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const TransactionGridCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
+ gridColumn?: string | number | undefined;
4
+ padding?: string | undefined;
5
+ right?: boolean | undefined;
6
+ }>> & string;
7
+ export default TransactionGridCell;
@@ -0,0 +1,5 @@
1
+ import { FrontendTransaction as T } from "@bunnyapp/common";
2
+ declare const TransactionRowTitle: ({ transaction, }: {
3
+ transaction: T.Transaction;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default TransactionRowTitle;
@@ -0,0 +1,2 @@
1
+ declare const TransactionsEmptyState: () => import("react/jsx-runtime").JSX.Element;
2
+ export default TransactionsEmptyState;
@@ -0,0 +1,7 @@
1
+ import { FrontendTransaction as T } from "@bunnyapp/common";
2
+ export type TransactionListColumnType = "date-and-title" | "state" | "amount" | "download" | "actions";
3
+ declare const TransactionsListDesktop: ({ transactions, onTransactionClick, }: {
4
+ transactions: T.Transaction[];
5
+ onTransactionClick: (transaction: T.Transaction) => void;
6
+ }) => import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").JSX.Element[];
7
+ export default TransactionsListDesktop;
@@ -0,0 +1,6 @@
1
+ import { FrontendTransaction as T } from "@bunnyapp/common";
2
+ declare const TransactionsListMobile: ({ transactions, onTransactionClick, }: {
3
+ transactions: T.Transaction[];
4
+ onTransactionClick: (transaction: T.Transaction) => void;
5
+ }) => import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").JSX.Element[];
6
+ export default TransactionsListMobile;
@@ -0,0 +1,7 @@
1
+ export { Invoice } from "./Invoice";
2
+ export { Quote } from "./Quote";
3
+ export { PaymentMethod } from "./PaymentForm/PaymentMethod";
4
+ export * from "./Checkout";
5
+ export { default as BunnyProvider } from "./BunnyProvider";
6
+ export { default as Transactions } from "./Transactions";
7
+ export { Subscriptions } from "./Subscriptions";
@@ -0,0 +1,16 @@
1
+ export declare const finixStyles: (isMobile: boolean) => {
2
+ default: {
3
+ color: string;
4
+ border: string;
5
+ padding: string;
6
+ backgroundColor: string;
7
+ fontSize: string;
8
+ borderRadius: string;
9
+ };
10
+ success: {
11
+ color: string;
12
+ };
13
+ error: {
14
+ color: string;
15
+ };
16
+ };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const BrandContext: import("react").Context<{
3
+ accentColor: string;
4
+ brandColor: string;
5
+ secondaryColor: string;
6
+ topNavImageUrl: string;
7
+ }>;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export type NavigationContextValues = {
3
+ searchParams: URLSearchParams;
4
+ location: Location;
5
+ subdomain?: string;
6
+ navigate?: (url: string) => void;
7
+ navigateBackAfterDownload?: () => void;
8
+ };
9
+ export declare const NavigationContext: import("react").Context<NavigationContextValues>;
@@ -0,0 +1,8 @@
1
+ declare enum SubscriptionState {
2
+ ACTIVE = "ACTIVE",
3
+ TRIAL = "TRIAL",
4
+ PENDING = "PENDING",
5
+ EXPIRED = "EXPIRED",
6
+ CANCELED = "CANCELED"
7
+ }
8
+ export default SubscriptionState;
@@ -0,0 +1,11 @@
1
+ import { Quote, Subscription, SubscriptionCharge } from "@bunnyapp/common";
2
+ declare const QuantityChangeGridRow: ({ chargeIndex, editingQuote, subscriptions, subscriptionIndex, setEditingQuoteData, subscription, subscriptionCharge, }: {
3
+ chargeIndex: number;
4
+ editingQuote?: Quote | undefined;
5
+ subscriptions: Subscription[];
6
+ subscriptionIndex: number;
7
+ setEditingQuoteData: (value: any) => void;
8
+ subscription: Subscription;
9
+ subscriptionCharge: SubscriptionCharge;
10
+ }) => import("react/jsx-runtime").JSX.Element | null;
11
+ export default QuantityChangeGridRow;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ declare const QuantityChangeGridTitle: ({ children, right, }: {
3
+ children: ReactNode;
4
+ right?: boolean | undefined;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default QuantityChangeGridTitle;
@@ -0,0 +1,21 @@
1
+ import { Subscription, SubscriptionCharge, Quote } from "@bunnyapp/common";
2
+ export type EditingSubscriptionType = {
3
+ chargeId: string;
4
+ chargeIndex: number;
5
+ quantity: number;
6
+ subscription: Subscription;
7
+ subscriptionIndex: number;
8
+ };
9
+ declare const QuantityInput: ({ charge, chargeIndex, editingQuote, setEditingQuoteData, subscription, subscriptionIndex, subscriptions, }: {
10
+ charge: SubscriptionCharge;
11
+ chargeIndex: number;
12
+ editingQuote?: Quote | undefined;
13
+ setEditingQuoteData: (editingQuoteData: {
14
+ id: string;
15
+ isTrial: boolean;
16
+ } | undefined) => void;
17
+ subscription: Subscription;
18
+ subscriptionIndex: number;
19
+ subscriptions: Subscription[];
20
+ }) => import("react/jsx-runtime").JSX.Element;
21
+ export default QuantityInput;
@@ -0,0 +1,9 @@
1
+ import { Quote } from "@bunnyapp/common";
2
+ import { EditingQuoteDataType } from "../../components/Subscriptions/Subscriptions";
3
+ declare const QuoteChangeSummarySection: ({ editingQuote, editingQuoteData, openCheckout, setEditingQuoteData, }: {
4
+ editingQuote?: Quote | undefined;
5
+ editingQuoteData?: EditingQuoteDataType | undefined;
6
+ openCheckout: () => void;
7
+ setEditingQuoteData: (editingQuoteData: EditingQuoteDataType | undefined) => void;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ export default QuoteChangeSummarySection;
@@ -0,0 +1,14 @@
1
+ import { Subscription, Quote } from "@bunnyapp/common";
2
+ import { EditingQuoteDataType } from "../../../components/Subscriptions/Subscriptions";
3
+ export declare const QUANTITY_CHANGE_HEADER_TITLE = "Update unit quantity";
4
+ export declare const QUANTITY_CHANGE_HEADER_DESCRIPTION = "Adjust quantities below. The change will take effect immediately after checkout has been completed.";
5
+ declare const QuantityChangeDrawerDesktop: ({ editingQuote, editingQuoteData, onClose, open, openCheckout, setEditingQuoteData, subscriptions, }: {
6
+ editingQuote?: Quote | undefined;
7
+ editingQuoteData?: EditingQuoteDataType | undefined;
8
+ onClose: () => void;
9
+ open: boolean;
10
+ openCheckout: () => void;
11
+ setEditingQuoteData: (value: EditingQuoteDataType | undefined) => void;
12
+ subscriptions: Subscription[];
13
+ }) => import("react/jsx-runtime").JSX.Element | null;
14
+ export default QuantityChangeDrawerDesktop;
@@ -0,0 +1,6 @@
1
+ export declare const useCreateSubscriptionQuote: () => (subscriptionIds: string[], token: string) => Promise<unknown>;
2
+ export declare const useQuoteChangeUpdate: () => (charges: {
3
+ id: string;
4
+ quantity: number;
5
+ }[], quoteChangeId: string, token: string) => Promise<unknown>;
6
+ export declare const useQuoteDelete: () => (quoteId: string, token: string) => Promise<unknown>;
@@ -0,0 +1,2 @@
1
+ export declare const useCancelSubscription: () => (subscriptionIds: string[], token: string) => Promise<any>;
2
+ export declare const useSubscriptionTrialConvert: () => (subscriptionId: string, token: string, paymentId?: string) => Promise<any>;
@@ -0,0 +1,6 @@
1
+ declare const accountUpdate: ({ accountId, attributes, token, }: {
2
+ accountId: string;
3
+ attributes: Record<string, string>;
4
+ token: string;
5
+ }) => Promise<any>;
6
+ export default accountUpdate;
@@ -0,0 +1,23 @@
1
+ import { Payment, Invoice, Transaction, PaymentApplication } from "@bunnyapp/common";
2
+ export type CheckoutResponse = {
3
+ invoice: Invoice;
4
+ payment: Payment;
5
+ paymentApplication: PaymentApplication;
6
+ transaction: Transaction;
7
+ };
8
+ declare const checkout: ({ quoteId, invoiceId, paymentMethodId, paymentMethodData, token, subdomain, }: {
9
+ quoteId?: string | undefined;
10
+ invoiceId?: string | undefined;
11
+ paymentMethodId?: string | undefined;
12
+ paymentMethodData?: {
13
+ token: string;
14
+ pluginGuid: string;
15
+ savePaymentMethod?: boolean | undefined;
16
+ metadata?: Record<string, any> | undefined;
17
+ } | undefined;
18
+ token: string;
19
+ subdomain?: string | undefined;
20
+ }) => Promise<{
21
+ savePaymentMethod: boolean | undefined;
22
+ }>;
23
+ export default checkout;
@@ -0,0 +1,7 @@
1
+ import { Quote } from "@bunnyapp/common";
2
+ declare const quoteAddCoupon: ({ quoteId, couponCode, token, }: {
3
+ quoteId?: string | undefined;
4
+ couponCode?: string | undefined;
5
+ token: string;
6
+ }) => Promise<Quote>;
7
+ export default quoteAddCoupon;
@@ -0,0 +1,11 @@
1
+ import { Quote } from "@bunnyapp/common";
2
+ type Options = {
3
+ quoteId?: string;
4
+ priceListId?: string;
5
+ subscriptionId?: string;
6
+ quantity?: number;
7
+ token: string;
8
+ };
9
+ export declare const QUOTE_FIELDS = "quote {\n formattedQuote {\n html\n }\n acceptedByName\n acceptedByTitle\n accountId\n amount\n amountDue\n applicationDate\n applied\n billingDay\n contactId\n createdAt\n credits\n currencyId\n dealId\n discount\n discountValue\n endDate\n evergreen\n expiresAt\n id\n invoiceUntil\n isPendingApprovalRequest\n kind\n message\n name\n netPaymentDays\n notes\n ownerId\n periodAmount\n poNumber\n requiresApproval\n startDate\n state\n subtotal\n taxAmount\n updatedAt\n uuid\n amountsByPeriod {\n amount\n id\n name\n }\n endDateOptions {\n endDate\n label\n }\n invoiceUntilOptions {\n endDate\n label\n }\n quoteChanges {\n id\n priceListId\n charges {\n amount\n amountsByPeriod { amount startDate }\n billingPeriod\n billingPeriodAmounts { id amount prorationRate }\n chargeType\n couponId\n createdAt\n currencyId\n discount\n endDate\n feature { id name code isUnit unitName }\n id\n invoiceLineText\n name\n price\n priceDecimals\n priceTiers { starts price }\n pricingModel\n prorationRate\n quantity\n quantityMax\n quantityMin\n startDate\n tieredAveragePrice\n updatedAt\n }\n }\n}";
10
+ declare const quoteCompose: ({ quoteId, priceListId, subscriptionId, quantity, token, }: Options) => Promise<Quote>;
11
+ export default quoteCompose;
@@ -0,0 +1,5 @@
1
+ declare const quoteRecalculateTaxes: ({ quoteId, token, }: {
2
+ quoteId: string;
3
+ token: string;
4
+ }) => Promise<any>;
5
+ export default quoteRecalculateTaxes;
@@ -0,0 +1,7 @@
1
+ import { Quote } from "@bunnyapp/common";
2
+ declare const getGuoteSubscriptionReinstate: ({ ids, token, subdomain, }: {
3
+ ids: string[];
4
+ token: string;
5
+ subdomain: string;
6
+ }) => Promise<Quote>;
7
+ export default getGuoteSubscriptionReinstate;
@@ -0,0 +1,6 @@
1
+ import { EntityBranding } from "@bunnyapp/common";
2
+ declare const getBranding: ({ token, subdomain, }: {
3
+ token: string;
4
+ subdomain?: string | undefined;
5
+ }) => Promise<EntityBranding>;
6
+ export default getBranding;
@@ -0,0 +1,12 @@
1
+ declare const getCurrentUserData: ({ token, subdomain, }: {
2
+ token: string;
3
+ subdomain?: string | undefined;
4
+ }) => Promise<{
5
+ authObjectName: any;
6
+ companyName: any;
7
+ entityId: any;
8
+ returnUrl: any;
9
+ privacyUrl: any;
10
+ termsUrl: any;
11
+ }>;
12
+ export default getCurrentUserData;
@@ -0,0 +1,9 @@
1
+ import { FeatureUsage } from "@bunnyapp/common";
2
+ declare const getFeatureUsage: ({ subscriptionChargeId, startDate, endDate, dataInterval, token, }: {
3
+ subscriptionChargeId: string;
4
+ startDate?: string | undefined;
5
+ endDate?: string | undefined;
6
+ dataInterval?: number | undefined;
7
+ token: string;
8
+ }) => Promise<FeatureUsage>;
9
+ export default getFeatureUsage;
@@ -0,0 +1,7 @@
1
+ import { FormattedInvoice } from "@bunnyapp/common";
2
+ declare const getFormattedInvoice: ({ id, token, subdomain, }: {
3
+ id?: string | undefined;
4
+ subdomain?: string | undefined;
5
+ token: string;
6
+ }) => Promise<FormattedInvoice>;
7
+ export default getFormattedInvoice;
@@ -0,0 +1,3 @@
1
+ import { FormattedQuote } from "@bunnyapp/common";
2
+ export declare const getFormattedQuote: (token: string, apiEndpoint?: string, id?: string) => Promise<FormattedQuote>;
3
+ export default getFormattedQuote;
@@ -0,0 +1,7 @@
1
+ import { Invoice } from "@bunnyapp/common";
2
+ declare const getInvoice: ({ token, id, subdomain, }: {
3
+ token: string;
4
+ id?: string | undefined;
5
+ subdomain?: string | undefined;
6
+ }) => Promise<Invoice>;
7
+ export default getInvoice;
@@ -0,0 +1,8 @@
1
+ import { Subscription } from "@bunnyapp/common";
2
+ declare const getPlanChangeOptions: ({ isInPreviewMode, token, upgradingSubscription, subdomain, }: {
3
+ isInPreviewMode?: boolean | undefined;
4
+ token: string;
5
+ upgradingSubscription?: Subscription | undefined;
6
+ subdomain: string;
7
+ }) => Promise<any>;
8
+ export default getPlanChangeOptions;
@@ -0,0 +1,7 @@
1
+ import { Quote } from "@bunnyapp/common";
2
+ declare const getQuote: ({ id, token, subdomain, }: {
3
+ id: string;
4
+ token: string;
5
+ subdomain: string;
6
+ }) => Promise<Quote>;
7
+ export default getQuote;
@@ -0,0 +1,7 @@
1
+ declare const getSubscriptions: ({ entityId, isInPreviewMode, token, subdomain, }: {
2
+ entityId: string;
3
+ isInPreviewMode?: boolean | undefined;
4
+ token: string;
5
+ subdomain: string;
6
+ }) => Promise<any>;
7
+ export default getSubscriptions;
@@ -0,0 +1,3 @@
1
+ import { TransactionKind } from "@bunnyapp/common";
2
+ declare const getTransactions: (filter: string, token: string, subdomain: string, kindsToShow: TransactionKind[]) => Promise<any>;
3
+ export default getTransactions;
@@ -0,0 +1 @@
1
+ export { usePaymentMethod } from "./usePaymentMethod";
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ declare const useSendAcceptQuote: (token: string, subdomain?: string, quoteId?: string) => {
3
+ acceptBoxVisible: boolean;
4
+ isAccepting: boolean;
5
+ sendAccept: (changedFormItems: {
6
+ [key: string]: string;
7
+ }) => void;
8
+ setAcceptBoxVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
9
+ setIsAccepting: import("react").Dispatch<import("react").SetStateAction<boolean>>;
10
+ startAcceptance: () => void;
11
+ pandadocPollingModalVisible: boolean;
12
+ setPandadocPollingModalVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
13
+ };
14
+ export default useSendAcceptQuote;
@@ -0,0 +1,5 @@
1
+ declare const useSigningComplete: ({ data, token }: {
2
+ data: any;
3
+ token: string;
4
+ }) => void;
5
+ export default useSigningComplete;
@@ -0,0 +1,5 @@
1
+ import { Subscription } from "@bunnyapp/common";
2
+ declare const useSubscriptions: ({ data }: {
3
+ data: Subscription[];
4
+ }) => Subscription[];
5
+ export default useSubscriptions;
@@ -0,0 +1,2 @@
1
+ declare const useCurrentUserData: () => any;
2
+ export default useCurrentUserData;
@@ -0,0 +1,7 @@
1
+ import { InputRef } from "antd";
2
+ import { RefObject } from "react";
3
+ declare const useFocusFirstInput: ({ firstInputRef, isVisible, }: {
4
+ firstInputRef: RefObject<InputRef>;
5
+ isVisible?: boolean | undefined;
6
+ }) => void;
7
+ export default useFocusFirstInput;
@@ -0,0 +1,5 @@
1
+ declare const useHasTaxPlugin: ({ subdomain, token, }: {
2
+ subdomain?: string | undefined;
3
+ token: string;
4
+ }) => boolean;
5
+ export default useHasTaxPlugin;
@@ -0,0 +1,2 @@
1
+ declare const useIsExpired: (expiresAt?: string) => boolean;
2
+ export default useIsExpired;
@@ -0,0 +1,10 @@
1
+ export declare enum BreakpointNumbers {
2
+ xs = 480,
3
+ sm = 768,
4
+ md = 992,
5
+ lg = 1200,
6
+ xl = 1400,
7
+ xxl = 2000
8
+ }
9
+ export declare const breakpointList: BreakpointNumbers[];
10
+ export declare const useIsMobile: (window: Window) => boolean;
@@ -0,0 +1,2 @@
1
+ import { GraphQLClient } from "graphql-request";
2
+ export declare const usePaymentMethod: (graphQLClient: GraphQLClient) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<any, Error>;