@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 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare const pageContentRefState: import("recoil").RecoilState<HTMLDivElement | null>;
@@ -0,0 +1,2 @@
1
+ import { QuotePreviewData } from "@bunnyapp/common";
2
+ export declare const planPickerQuoteDataState: import("recoil").RecoilState<QuotePreviewData | undefined>;
@@ -0,0 +1,2 @@
1
+ declare const updatingChargeQuantityIdState: import("recoil").RecoilState<string | undefined>;
2
+ export default updatingChargeQuantityIdState;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { GraphQLClient } from "graphql-request";
3
+ export type BunnyContextValues = {
4
+ subdomain: string;
5
+ graphQLClient: GraphQLClient;
6
+ window: Window;
7
+ token: string;
8
+ accountId?: string;
9
+ };
10
+ export declare const BunnyContext: import("react").Context<BunnyContextValues>;
11
+ interface BunnyProviderProps {
12
+ children: React.ReactNode;
13
+ token: string;
14
+ subdomain: string;
15
+ window: Window;
16
+ accountId?: string;
17
+ }
18
+ declare function BunnyProvider({ children, token, subdomain, window, accountId, }: BunnyProviderProps): import("react/jsx-runtime").JSX.Element;
19
+ export default BunnyProvider;
@@ -0,0 +1,5 @@
1
+ declare const Card: ({ children, className, }: {
2
+ children: React.ReactNode;
3
+ className?: string | undefined;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default Card;
@@ -0,0 +1,9 @@
1
+ import { CheckoutProps } from "../PaymentForm/PaymentFormTypes";
2
+ import { PaymentMethod } from "@bunnyapp/common";
3
+ interface CheckoutComponentProps extends CheckoutProps {
4
+ isMobile: boolean;
5
+ token: string;
6
+ storedPaymentMethod?: PaymentMethod;
7
+ }
8
+ declare const Checkout: ({ onCancel, onSuccess, onFail, invoice, open, quote, selectedPriceList, isMobile, token, storedPaymentMethod, }: CheckoutComponentProps) => import("react/jsx-runtime").JSX.Element | null;
9
+ export default Checkout;
@@ -0,0 +1,7 @@
1
+ import { Quote } from "@bunnyapp/common";
2
+ declare const CouponComponent: ({ quote, onSuccess, onFail, }: {
3
+ quote: Quote;
4
+ onSuccess?: ((couponCode: string) => void) | undefined;
5
+ onFail?: ((error: any) => void) | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default CouponComponent;
@@ -0,0 +1,7 @@
1
+ import { FormattedInvoice } from "@bunnyapp/common";
2
+ import { InvoiceQuoteParentProps } from "../PaymentForm/PaymentFormTypes";
3
+ interface InvoiceCheckoutProps extends InvoiceQuoteParentProps {
4
+ invoice: FormattedInvoice;
5
+ }
6
+ declare const InvoiceCheckout: ({ isSaving, onSuccess, onFail, invoice, setIsSaving, }: InvoiceCheckoutProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default InvoiceCheckout;
@@ -0,0 +1,11 @@
1
+ import { Account, PaymentMethod, Quote, TaxationRequiredAccountFields } from "@bunnyapp/common";
2
+ import { InvoiceQuoteParentProps } from "../PaymentForm/PaymentFormTypes";
3
+ interface QuoteCheckoutProps extends InvoiceQuoteParentProps {
4
+ account: Account;
5
+ quote: Quote;
6
+ taxationRequiredAccountFields?: TaxationRequiredAccountFields | null;
7
+ token: string;
8
+ storedPaymentMethod?: PaymentMethod;
9
+ }
10
+ declare const QuoteCheckout: ({ account, isSaving, onSuccess, onFail, quote, setIsSaving, taxationRequiredAccountFields, storedPaymentMethod, }: QuoteCheckoutProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default QuoteCheckout;
@@ -0,0 +1,2 @@
1
+ import { Quote } from "@bunnyapp/common";
2
+ export declare const getQuoteAmountDue: (quote: Quote) => number;
@@ -0,0 +1,2 @@
1
+ export { default as Checkout } from "./Checkout";
2
+ export { getQuoteAmountDue } from "./checkoutUtils";
@@ -0,0 +1,6 @@
1
+ declare const DrawerHeader: ({ description, onClose, title, }: {
2
+ description?: string | undefined;
3
+ onClose: () => void;
4
+ title: string;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default DrawerHeader;
@@ -0,0 +1,5 @@
1
+ declare const ErrorView: ({ children, message, }: {
2
+ children?: React.ReactNode;
3
+ message: string;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default ErrorView;
@@ -0,0 +1,6 @@
1
+ import { FeatureUsage, SubscriptionCharge } from "@bunnyapp/common";
2
+ declare const FeatureUsageGraph: ({ charge, featureUsage, }: {
3
+ charge: SubscriptionCharge;
4
+ featureUsage: FeatureUsage;
5
+ }) => import("react/jsx-runtime").JSX.Element | "no usage";
6
+ export default FeatureUsageGraph;
@@ -0,0 +1,2 @@
1
+ declare const Footer: () => import("react/jsx-runtime").JSX.Element | null;
2
+ export default Footer;
@@ -0,0 +1,2 @@
1
+ declare const HeaderModalWrapper: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default HeaderModalWrapper;
@@ -0,0 +1,4 @@
1
+ declare const BunnyFooterIcon: ({ color }: {
2
+ color: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default BunnyFooterIcon;
@@ -0,0 +1,2 @@
1
+ declare const CardIcon: () => import("react/jsx-runtime").JSX.Element;
2
+ export default CardIcon;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import "../../styles/index.less";
3
+ export default function Invoice({ id, invoiceQuoteViewComponent, backButtonName, onBackButtonClick, onInvoiceDownloadError, onPaymentSuccess, }: {
4
+ id?: string;
5
+ invoiceQuoteViewComponent?: React.ReactNode;
6
+ backButtonName?: string;
7
+ onBackButtonClick?: () => void;
8
+ onInvoiceDownloadError?: () => void;
9
+ onPaymentSuccess?: (savePaymentMethod?: boolean) => void;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import type { StoryObj } from "@storybook/react";
2
+ import Invoice from "./Invoice";
3
+ declare const meta: {
4
+ component: typeof Invoice;
5
+ tags: string[];
6
+ };
7
+ export default meta;
8
+ type Story = StoryObj<typeof meta>;
9
+ export declare const Default: Story;
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from "react";
2
+ import { FormattedInvoice } from "@bunnyapp/common";
3
+ declare const InvoiceQuoteView: ({ children, formattedInvoice, html, isMobile, backButtonName, onBackButtonClick, onDownloadError, }: {
4
+ html: string;
5
+ isMobile: boolean;
6
+ children?: ReactNode;
7
+ formattedInvoice?: FormattedInvoice | undefined;
8
+ backButtonName?: string | undefined;
9
+ onBackButtonClick?: (() => void) | undefined;
10
+ onDownloadError?: (() => void) | undefined;
11
+ }) => import("react/jsx-runtime").JSX.Element;
12
+ export default InvoiceQuoteView;
@@ -0,0 +1,8 @@
1
+ export { default as Invoice } from "./Invoice";
2
+ declare global {
3
+ interface Window {
4
+ heap: any;
5
+ PayFields: any;
6
+ Finix: any;
7
+ }
8
+ }
@@ -0,0 +1,4 @@
1
+ export default function InvoicePDF({ invoiceUuid, subdomain, }: {
2
+ invoiceUuid?: string;
3
+ subdomain?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CSSProperties, ReactNode } from "react";
2
+ declare const PageContent: ({ children, className, style, }: {
3
+ children: ReactNode | ReactNode[];
4
+ className?: string | undefined;
5
+ style?: CSSProperties | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default PageContent;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ declare const PageHeaderWithActions: ({ children, title, }: {
3
+ children?: ReactNode | ReactNode[];
4
+ title?: string | ReactNode;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default PageHeaderWithActions;
@@ -0,0 +1 @@
1
+ export declare const pageWrapperClassName: (isMobile: boolean) => string;
@@ -0,0 +1,7 @@
1
+ interface PandadocPollingModalProps {
2
+ isVisible: boolean;
3
+ setVisible: (visible: boolean) => void;
4
+ id?: string;
5
+ }
6
+ declare const PandadocPollingModal: ({ isVisible, setVisible, id, }: PandadocPollingModalProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default PandadocPollingModal;
@@ -0,0 +1,9 @@
1
+ declare const CheckoutFooter: ({ amountDue, currencyId, isSaving, onPaymentSubmit, onlySavePaymentMethod, noPadding, }: {
2
+ amountDue?: number | undefined;
3
+ currencyId?: string | undefined;
4
+ isSaving: boolean;
5
+ onPaymentSubmit: () => void;
6
+ onlySavePaymentMethod?: boolean | undefined;
7
+ noPadding?: boolean | undefined;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ export default CheckoutFooter;
@@ -0,0 +1,7 @@
1
+ declare const DemoPayCardCvc: ({ autoFocus, onChange, placeholder, value, }: {
2
+ autoFocus?: boolean | undefined;
3
+ onChange: (cvc: string) => void;
4
+ placeholder?: string | undefined;
5
+ value: string;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default DemoPayCardCvc;
@@ -0,0 +1,7 @@
1
+ declare const DemoPayCardNumber: ({ autoFocus, onChange, placeholder, value, }: {
2
+ autoFocus?: boolean | undefined;
3
+ onChange: (number: string) => void;
4
+ placeholder?: string | undefined;
5
+ value: string;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default DemoPayCardNumber;
@@ -0,0 +1,7 @@
1
+ declare const DemoPayExpiry: ({ autoFocus, onChange, placeholder, value, }: {
2
+ autoFocus?: boolean | undefined;
3
+ onChange: (cvc: string) => void;
4
+ placeholder?: string | undefined;
5
+ value: string;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default DemoPayExpiry;
@@ -0,0 +1,3 @@
1
+ import { PluginFormProps } from "../PaymentFormTypes";
2
+ declare const DemoPayForm: ({ isSaving, invoice, onFail, onPaymentSuccess, plugin, quote, setIsSaving, }: PluginFormProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default DemoPayForm;
@@ -0,0 +1,23 @@
1
+ import { PluginData } from "@bunnyapp/common";
2
+ export declare const confirmPayment: ({ amount, currency, cardDetails, }: {
3
+ amount: number;
4
+ currency: string;
5
+ cardDetails: any;
6
+ }) => {
7
+ token: string;
8
+ amount: number;
9
+ currency: string;
10
+ cardDetails: any;
11
+ };
12
+ export declare const isDigit: (char: string) => boolean;
13
+ export declare const isValidKey: (code: number) => boolean;
14
+ export declare const isValidExpiry: (expiry: string) => boolean;
15
+ export declare const isCardExpired: (expiry: string) => boolean;
16
+ export declare const formatCardExpiry: (cardExpiry: string) => string;
17
+ export declare const unformatCardNumber: (cardNumber: string) => string;
18
+ export declare const storePayment: (options: {
19
+ testCreditCardCvc: string;
20
+ testCreditCardExpirationDate: string;
21
+ testCreditCardNumber: string;
22
+ token: string;
23
+ }, plugin: PluginData, accountId?: string, subdomain?: string) => Promise<any>;
@@ -0,0 +1 @@
1
+ export { default as DemoPayForm } from "./DemoPayForm";
@@ -0,0 +1,4 @@
1
+ import { PluginFormProps } from "../PaymentFormTypes";
2
+ export declare const formatFinixError: (response: any) => any;
3
+ declare const FinixForm: ({ invoice, isSaving, onFail, onPaymentSuccess, plugin, quote, setIsSaving, }: PluginFormProps) => import("react/jsx-runtime").JSX.Element | null;
4
+ export default FinixForm;
@@ -0,0 +1,2 @@
1
+ export { default as FinixCardForm } from "./FinixCardForm";
2
+ export { formatFinixError } from "./FinixCardForm";
@@ -0,0 +1,3 @@
1
+ import { PluginFormProps } from "./PaymentFormTypes";
2
+ declare const FinixAchPayment: ({ invoice, isSaving, onFail, onPaymentSuccess, plugin, quote, setIsSaving, }: PluginFormProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default FinixAchPayment;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from "react";
2
+ import { GeneralPaymentFormProps } from "./PaymentFormTypes";
3
+ export declare const PaymentFormWrapper: ({ children, setMaxHeight, }: {
4
+ children: ReactNode | ReactNode[];
5
+ setMaxHeight: boolean;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const PaymentForm: ({ invoice, isSaving, onFail, onPaymentSuccess, quote, setIsSaving, }: GeneralPaymentFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,56 @@
1
+ import { Quote, FormattedInvoice, PluginData, PriceList, Payable, PaymentMethod } from "@bunnyapp/common";
2
+ export type SavedPaymentMethodResponse = {
3
+ paymentMethodId: string;
4
+ };
5
+ export type PluginPaymentResponse = {
6
+ metadata?: Record<string, any>;
7
+ plugin: PluginData;
8
+ savePaymentMethod?: boolean;
9
+ token: string;
10
+ };
11
+ export interface PaymentMethodFormProps extends GeneralPaymentFormProps {
12
+ isPlugin: boolean;
13
+ paymentMethod: PaymentMethod | PluginData;
14
+ }
15
+ export interface StoredPaymentMethodFormProps extends GeneralPaymentFormProps {
16
+ paymentMethod: PaymentMethod;
17
+ }
18
+ export interface PluginPaymentFormProps extends PluginFormProps {
19
+ formData: any;
20
+ }
21
+ export interface PluginFormProps extends GeneralPaymentFormProps {
22
+ plugin: PluginData;
23
+ }
24
+ export type InvoiceQuoteParentProps = {
25
+ isSaving: boolean;
26
+ onSuccess: ({ savePaymentMethod }: {
27
+ savePaymentMethod?: boolean;
28
+ }) => void;
29
+ onFail: (error: any) => void;
30
+ setIsSaving: (isSaving: boolean) => void;
31
+ };
32
+ export type OnPaymentSuccessType = {
33
+ pluginPaymentResponse?: PluginPaymentResponse;
34
+ savedPaymentMethodResponse?: SavedPaymentMethodResponse;
35
+ };
36
+ export type GeneralPaymentFormProps = {
37
+ payable?: Payable;
38
+ invoice?: FormattedInvoice;
39
+ quote?: Quote;
40
+ isSaving: boolean;
41
+ onFail: (error: any) => void;
42
+ onPaymentSuccess: ({ pluginPaymentResponse, savedPaymentMethodResponse, }: OnPaymentSuccessType) => void;
43
+ setIsSaving: (isSaving: boolean) => void;
44
+ };
45
+ export type CheckoutProps = {
46
+ invoice?: FormattedInvoice;
47
+ onCancel: () => void;
48
+ onFail: (error: any) => void;
49
+ onSuccess: ({ savePaymentMethod }: {
50
+ savePaymentMethod?: boolean;
51
+ }) => void;
52
+ open: boolean;
53
+ quote?: Quote;
54
+ selectedPriceList?: PriceList;
55
+ token: string;
56
+ };
@@ -0,0 +1,12 @@
1
+ import { PaymentMethod } from "@bunnyapp/common";
2
+ type CreditCardProps = {
3
+ onClickRemove: () => void;
4
+ onClickUpdate: () => void;
5
+ paymentMethodData: PaymentMethod;
6
+ };
7
+ declare const CreditCard: ({ onClickRemove, onClickUpdate, paymentMethodData, }: CreditCardProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const EmptyCard: ({ onClick }: {
9
+ onClick: () => void;
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
+ export { EmptyCard };
12
+ export default CreditCard;
@@ -0,0 +1,2 @@
1
+ declare const LargeCardIcon: () => import("react/jsx-runtime").JSX.Element;
2
+ export default LargeCardIcon;
@@ -0,0 +1,4 @@
1
+ declare const PlusIcon: ({ color }: {
2
+ color: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default PlusIcon;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare function PaymentMethod({ footer, processPublicUrl, }: {
3
+ footer?: React.ReactNode;
4
+ processPublicUrl: string;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export type PaymentMethodContextValues = {
3
+ footer?: React.ReactNode;
4
+ processPublicUrl: string;
5
+ };
6
+ export declare const PaymentMethodContext: import("react").Context<PaymentMethodContextValues>;
@@ -0,0 +1 @@
1
+ export { PaymentMethod } from "./PaymentMethod";
@@ -0,0 +1,3 @@
1
+ import { PaymentMethodFormProps } from "./PaymentFormTypes";
2
+ declare const PaymentMethodForm: ({ invoice, isPlugin, isSaving, onFail, onPaymentSuccess, paymentMethod, quote, setIsSaving, }: PaymentMethodFormProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default PaymentMethodForm;
@@ -0,0 +1,8 @@
1
+ import { PluginData, PaymentMethod } from "@bunnyapp/common";
2
+ declare const PaymentMethodSelector: ({ paymentMethodAllowedPlugins, onSelect, showStoredPaymentMethodOption, value, }: {
3
+ onSelect: (paymentMethod?: PluginData | PaymentMethod) => void;
4
+ paymentMethodAllowedPlugins?: PluginData[] | undefined;
5
+ showStoredPaymentMethodOption: boolean;
6
+ value?: PluginData | PaymentMethod | null | undefined;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export default PaymentMethodSelector;
@@ -0,0 +1,8 @@
1
+ import { PluginData, PaymentMethod } from "@bunnyapp/common";
2
+ declare const PaymentOption: ({ selected, paymentOption, onClick, name, }: {
3
+ onClick: (paymentMethod: PluginData | PaymentMethod) => void;
4
+ selected: boolean;
5
+ paymentOption: PluginData | PaymentMethod;
6
+ name: string;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export default PaymentOption;
@@ -0,0 +1,3 @@
1
+ import { StoredPaymentMethodFormProps } from "../PaymentFormTypes";
2
+ declare const StoredPaymentMethodForm: ({ isSaving, invoice, onPaymentSuccess, paymentMethod, quote, setIsSaving, }: StoredPaymentMethodFormProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default StoredPaymentMethodForm;
@@ -0,0 +1,3 @@
1
+ import { PluginFormProps } from "../PaymentFormTypes";
2
+ declare const CheckoutForm: ({ payable, plugin, isSaving, setIsSaving, onFail, onPaymentSuccess, }: PluginFormProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default CheckoutForm;
@@ -0,0 +1,3 @@
1
+ import { PluginFormProps } from "../PaymentFormTypes";
2
+ declare const PaymentMethodForm: ({ isSaving, setIsSaving, plugin, onFail, onPaymentSuccess, }: PluginFormProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default PaymentMethodForm;
@@ -0,0 +1,3 @@
1
+ import { PluginFormProps } from "../PaymentFormTypes";
2
+ declare const StripeForm: ({ payable, plugin, isSaving, setIsSaving, onFail, onPaymentSuccess, }: PluginFormProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default StripeForm;
@@ -0,0 +1 @@
1
+ export { default as StripeForm } from "./StripeForm";
@@ -0,0 +1,20 @@
1
+ import { Stripe } from "@stripe/stripe-js";
2
+ import { PluginData, Payable } from "@bunnyapp/common";
3
+ export declare const createPaymentMethod: ({ paymentMethodId, plugin, token, subdomain, accountId, }: {
4
+ paymentMethodId: string;
5
+ plugin: PluginData;
6
+ token: string;
7
+ subdomain?: string | undefined;
8
+ accountId?: string | undefined;
9
+ }) => Promise<any>;
10
+ export declare const createSetupIntent: (plugin: PluginData, token: string, accountId?: string, subdomain?: string) => Promise<any>;
11
+ export declare const createPaymentIntent: ({ payable, savePaymentMethod, memo, plugin, token, subdomain, accountId, }: {
12
+ payable: Payable;
13
+ savePaymentMethod: boolean;
14
+ memo?: string | undefined;
15
+ plugin: PluginData;
16
+ token: string;
17
+ subdomain: string;
18
+ accountId?: string | undefined;
19
+ }) => Promise<any>;
20
+ export declare const useStripePlugin: (plugin: PluginData, token: string, subdomain?: string, accountId?: string) => Stripe | null;
@@ -0,0 +1 @@
1
+ export { PaymentMethod } from "./PaymentMethod";
@@ -0,0 +1,7 @@
1
+ import { PluginData } from "@bunnyapp/common";
2
+ export declare const retrieveConfig: ({ plugin, token, subdomain, accountId, }: {
3
+ plugin: PluginData;
4
+ token: string;
5
+ subdomain?: string | undefined;
6
+ accountId?: string | undefined;
7
+ }) => Promise<any>;
@@ -0,0 +1,9 @@
1
+ import { FormattedQuote } from "@bunnyapp/common";
2
+ declare const AcceptQuoteModal: ({ acceptBoxVisible, formattedQuote, sendAccept, setAcceptBoxVisible, setIsAccepting, }: {
3
+ acceptBoxVisible: boolean;
4
+ formattedQuote: FormattedQuote;
5
+ sendAccept: (changedFields: any) => void;
6
+ setAcceptBoxVisible: (visible: boolean) => void;
7
+ setIsAccepting: (accepting: boolean) => void;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ export default AcceptQuoteModal;
@@ -0,0 +1,4 @@
1
+ export declare enum DOCUMENT_NAME {
2
+ INVOICE = "invoice",
3
+ QUOTE = "quote"
4
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import "../../styles/index.less";
3
+ export declare const MarkupContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ export default function Quote({ id }: {
5
+ id?: string;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { StoryObj } from "@storybook/react";
2
+ import Transactions from "./Quote";
3
+ declare const meta: {
4
+ component: typeof Transactions;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Default: Story;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export type QuoteContextValues = {
3
+ id?: string;
4
+ };
5
+ export declare const QuoteContext: import("react").Context<QuoteContextValues>;
@@ -0,0 +1,3 @@
1
+ import { ModalProps } from "antd";
2
+ declare const StyledModal: (props: ModalProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default StyledModal;
@@ -0,0 +1 @@
1
+ export { default as Quote } from "./Quote";
@@ -0,0 +1,6 @@
1
+ import { FrontendTransaction as Transaction } from "@bunnyapp/common";
2
+ type StateTagProps = {
3
+ state: Transaction.TransactionState;
4
+ };
5
+ declare const StateTag: ({ state }: StateTagProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default StateTag;
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import "../../styles/index.less";
3
+ export type SubscriptionsContextValues = {
4
+ onChangePlanClick: () => void;
5
+ onClickUpgrade: () => void;
6
+ isTempViewOnly: boolean;
7
+ shadow?: "none" | "sm" | "md" | "lg";
8
+ gap?: number;
9
+ showTitle?: boolean;
10
+ };
11
+ export declare const SubscriptionsContext: import("react").Context<SubscriptionsContextValues>;
12
+ export type EditingQuoteDataType = {
13
+ id: string;
14
+ isTrial: boolean;
15
+ };
16
+ declare const Subscriptions: ({ shadow, gap, showTitle, }: {
17
+ shadow?: "none" | "sm" | "md" | "lg" | undefined;
18
+ gap?: number | undefined;
19
+ showTitle?: boolean | undefined;
20
+ }) => import("react/jsx-runtime").JSX.Element;
21
+ export default Subscriptions;
@@ -0,0 +1 @@
1
+ export { default as Subscriptions } from "./Subscriptions";
@@ -0,0 +1,5 @@
1
+ declare const ChangeQuantitiesButton: ({ canShowChangeQuantitiesButton, setQuantityDrawerOpen, }: {
2
+ canShowChangeQuantitiesButton: boolean;
3
+ setQuantityDrawerOpen: (value: boolean) => void;
4
+ }) => import("react/jsx-runtime").JSX.Element | null;
5
+ export default ChangeQuantitiesButton;
@@ -0,0 +1,7 @@
1
+ import { Subscription } from "@bunnyapp/common";
2
+ declare const HideExpiredToggle: ({ hideExpired, setHideExpired, subscriptions, }: {
3
+ hideExpired: boolean;
4
+ setHideExpired: (value: boolean) => void;
5
+ subscriptions?: Subscription[] | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element | null;
7
+ export default HideExpiredToggle;
@@ -0,0 +1,8 @@
1
+ import { PlanChangeOptions, Subscription } from "@bunnyapp/common";
2
+ declare const SubscriptionCardActions: ({ planChangeOptions, subscription, setEditingQuoteData, setPayModalVisible, }: {
3
+ planChangeOptions?: PlanChangeOptions | undefined;
4
+ subscription: Subscription;
5
+ setEditingQuoteData: (value: any) => void;
6
+ setPayModalVisible: (value: any) => void;
7
+ }) => import("react/jsx-runtime").JSX.Element | null;
8
+ export default SubscriptionCardActions;
@@ -0,0 +1,8 @@
1
+ import { PlanChangeOptions, Subscription } from "@bunnyapp/common";
2
+ declare const SubscriptionCardHeader: ({ 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 SubscriptionCardHeader;