@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
package/README.md ADDED
@@ -0,0 +1,99 @@
1
+ # ℹ️ About
2
+
3
+ This repository provides components from the Bunny portal to integrate Bunny UI functionality into your application.
4
+
5
+ # 🧩 Components
6
+
7
+ - Invoice
8
+ - Quote
9
+ - PaymentMethod
10
+ - Transactions
11
+ - Subscriptions (view-only mode)
12
+
13
+ # 📦 Install
14
+
15
+ ```bash
16
+ npm install @bunnyapp/components
17
+ ```
18
+
19
+ Ensure all peer dependencies in the package.json are installed.
20
+
21
+ # ⚙️ Configuration
22
+
23
+ 1. Whitelist your subdomain in Bunny (e.g., `localhost` for development, `https://[company-name].bunny.com` for production).
24
+ 2. Generate a portal session token using the `portalSessionCreate` mutation from the [Bunny API docs](https://docs.bunny.com/developer/api-reference/mutations/portalsessioncreate).
25
+
26
+ # 🔨 Usage
27
+
28
+ In order to use any of the components, you must wrap them in the BunnyProvider component.
29
+ The BunnyProvider component provides all the state management and context for the components
30
+ and keeps state up to date between all the components.
31
+
32
+ We recommend placing the BunnyProvider component at the root of your application so that all Bunny components will be children of the BunnyProvider component.
33
+
34
+ The below example shows how to use the BunnyProvider component with the Invoice and PaymentMethod components.
35
+ Here the data such as the saved payment method will be updated between the components.
36
+
37
+ ```tsx
38
+ import {
39
+ BunnyProvider,
40
+ Invoice,
41
+ PaymentMethod,
42
+ Transactions,
43
+ Subscriptions,
44
+ } from "@bunnyapp/components";
45
+
46
+ function App() {
47
+ return (
48
+ <BunnyProvider
49
+ token={portalSessionToken}
50
+ subdomain={subdomain}
51
+ window={window}
52
+ accountId={accountId}
53
+ >
54
+ <Invoice id="12345" />
55
+ <PaymentMethod />
56
+ <Transactions />
57
+ <Subscriptions />
58
+ </BunnyProvider>
59
+ );
60
+ }
61
+ ```
62
+
63
+ In this example, each component has their own BunnyProvider. This is not recommended as it will create a mismatch in the state
64
+ between each of the components. ie if a payment method is saved in the Invoice component, it will not automatically be available in the PaymentMethod component.
65
+
66
+ ```tsx
67
+ import { BunnyProvider, Invoice, PaymentMethod } from "@bunnyapp/components";
68
+
69
+ function App() {
70
+ return (
71
+ <div>
72
+ <BunnyProvider
73
+ token={token}
74
+ subdomain={subdomain}
75
+ window={window}
76
+ accountId={accountId}
77
+ >
78
+ <Invoice id="12345" />
79
+ </BunnyProvider>
80
+ {/* Other components */}
81
+ <BunnyProvider
82
+ token={token}
83
+ subdomain={subdomain}
84
+ window={window}
85
+ accountId={accountId}
86
+ >
87
+ <PaymentMethod />
88
+ </BunnyProvider>
89
+ </div>
90
+ );
91
+ }
92
+ ```
93
+
94
+ ## Parameters
95
+
96
+ - `token`: Token that allows access to the Bunny API. Generate this using `portalSessionCreate` from [docs](https://docs.bunny.com/developer/api-reference/mutations/portalsessioncreate)
97
+ - `subdomain`: The subdomain the components will make requests to. e.g. `https://acme.bunny.com`
98
+ - `window`: The window to use for the BunnyProvider. We use the window for handling payment objects.
99
+ - `accountId`: The accountId to use for the BunnyProvider. To be deprecated.