@bunnyapp/components 1.0.13 → 1.0.15

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 (68) hide show
  1. package/dist/cjs/index.js +16297 -701
  2. package/dist/cjs/src/components/BunnyProvider.d.ts +3 -5
  3. package/dist/cjs/src/components/Invoice/Invoice.d.ts +1 -15
  4. package/dist/cjs/src/components/Invoice/InvoiceQuoteContext.d.ts +15 -0
  5. package/dist/cjs/src/components/PaymentForm/CheckoutFooter.d.ts +3 -4
  6. package/dist/cjs/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +4 -6
  7. package/dist/cjs/src/components/PaymentForm/PaymentForm.d.ts +5 -3
  8. package/dist/cjs/src/components/PaymentForm/PaymentFormTypes.d.ts +3 -28
  9. package/dist/cjs/src/components/PaymentForm/PaymentMethodDetails.d.ts +1 -2
  10. package/dist/cjs/src/components/PaymentForm/PaymentMethodSelector.d.ts +3 -3
  11. package/dist/cjs/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -1
  12. package/dist/cjs/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +4 -5
  13. package/dist/cjs/src/components/Quote/Quote.d.ts +1 -1
  14. package/dist/cjs/src/components/Quote/Quote.stories.d.ts +25 -25
  15. package/dist/cjs/src/components/Quotes/Quotes.d.ts +5 -1
  16. package/dist/cjs/src/components/Signup/PaymentForms.d.ts +3 -3
  17. package/dist/cjs/src/components/Signup/Signup.d.ts +7 -1
  18. package/dist/cjs/src/components/Subscriptions/Subscriptions.d.ts +0 -10
  19. package/dist/cjs/src/components/Subscriptions/SubscriptionsContext.d.ts +10 -0
  20. package/dist/cjs/src/components/Transactions/Transactions.d.ts +11 -2
  21. package/dist/cjs/src/components/Transactions/TransactionsListContext.d.ts +3 -1
  22. package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
  23. package/dist/cjs/src/components/index.d.ts +1 -0
  24. package/dist/cjs/src/contexts/PaymentContext.d.ts +3 -0
  25. package/dist/cjs/src/graphql/graphqlUtil.d.ts +10 -0
  26. package/dist/cjs/src/graphql/queries/getTransactions.d.ts +2 -2
  27. package/dist/esm/index.js +16433 -839
  28. package/dist/esm/src/components/BunnyProvider.d.ts +3 -5
  29. package/dist/esm/src/components/Invoice/Invoice.d.ts +1 -15
  30. package/dist/esm/src/components/Invoice/InvoiceQuoteContext.d.ts +15 -0
  31. package/dist/esm/src/components/PaymentForm/CheckoutFooter.d.ts +3 -4
  32. package/dist/esm/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +4 -6
  33. package/dist/esm/src/components/PaymentForm/PaymentForm.d.ts +5 -3
  34. package/dist/esm/src/components/PaymentForm/PaymentFormTypes.d.ts +3 -28
  35. package/dist/esm/src/components/PaymentForm/PaymentMethodDetails.d.ts +1 -2
  36. package/dist/esm/src/components/PaymentForm/PaymentMethodSelector.d.ts +3 -3
  37. package/dist/esm/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -1
  38. package/dist/esm/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +4 -5
  39. package/dist/esm/src/components/Quote/Quote.d.ts +1 -1
  40. package/dist/esm/src/components/Quote/Quote.stories.d.ts +25 -25
  41. package/dist/esm/src/components/Quotes/Quotes.d.ts +5 -1
  42. package/dist/esm/src/components/Signup/PaymentForms.d.ts +3 -3
  43. package/dist/esm/src/components/Signup/Signup.d.ts +7 -1
  44. package/dist/esm/src/components/Subscriptions/Subscriptions.d.ts +0 -10
  45. package/dist/esm/src/components/Subscriptions/SubscriptionsContext.d.ts +10 -0
  46. package/dist/esm/src/components/Transactions/Transactions.d.ts +11 -2
  47. package/dist/esm/src/components/Transactions/TransactionsListContext.d.ts +3 -1
  48. package/dist/esm/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
  49. package/dist/esm/src/components/index.d.ts +1 -0
  50. package/dist/esm/src/contexts/PaymentContext.d.ts +3 -0
  51. package/dist/esm/src/graphql/graphqlUtil.d.ts +10 -0
  52. package/dist/esm/src/graphql/queries/getTransactions.d.ts +2 -2
  53. package/dist/index.d.ts +41 -15
  54. package/package.json +4 -3
  55. package/dist/cjs/src/components/Checkout/InvoiceCheckout.d.ts +0 -8
  56. package/dist/cjs/src/components/Transactions/DocumentNameEnum.d.ts +0 -4
  57. package/dist/cjs/src/components/icons/BunnyFooterIcon.d.ts +0 -4
  58. package/dist/cjs/src/consts/paymentConsts.d.ts +0 -16
  59. package/dist/cjs/src/graphql/mutations/quoteCreate.d.ts +0 -9
  60. package/dist/cjs/src/graphql/queries/getInvoice.d.ts +0 -7
  61. package/dist/cjs/src/graphql/queries/getSubscription.d.ts +0 -12
  62. package/dist/esm/src/components/Checkout/InvoiceCheckout.d.ts +0 -8
  63. package/dist/esm/src/components/Transactions/DocumentNameEnum.d.ts +0 -4
  64. package/dist/esm/src/components/icons/BunnyFooterIcon.d.ts +0 -4
  65. package/dist/esm/src/consts/paymentConsts.d.ts +0 -16
  66. package/dist/esm/src/graphql/mutations/quoteCreate.d.ts +0 -9
  67. package/dist/esm/src/graphql/queries/getInvoice.d.ts +0 -7
  68. package/dist/esm/src/graphql/queries/getSubscription.d.ts +0 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Components from the Bunny portal to embed Bunny UI functionality into your application.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -16,7 +16,8 @@
16
16
  "storybook": "storybook dev -p 6006",
17
17
  "test": "echo \"Error: no test specified\" && exit 1",
18
18
  "vite": "vite",
19
- "build-css": "tailwindcss -i ./src/styles/input.less -o ./src/styles/output.less --watch"
19
+ "build-css": "tailwindcss -i ./src/styles/input.less -o ./src/styles/output.less --watch",
20
+ "dependency-cruiser": "npx depcruise --exclude '^node_modules' --output-type dot src | dot -T svg > dependencygraph.svg"
20
21
  },
21
22
  "keywords": [],
22
23
  "author": "Bunny",
@@ -61,7 +62,7 @@
61
62
  "vite": "^5.4.11"
62
63
  },
63
64
  "peerDependencies": {
64
- "@bunnyapp/common": "^1.0.38",
65
+ "@bunnyapp/common": "^1.0.40",
65
66
  "@fortawesome/fontawesome-svg-core": "^6.7.2",
66
67
  "@fortawesome/free-brands-svg-icons": "^6.7.2",
67
68
  "@fortawesome/free-regular-svg-icons": "^6.7.2",
@@ -1,8 +0,0 @@
1
- import { FormattedInvoice } from "@bunnyapp/common";
2
- import { InvoiceQuoteParentProps } from "../PaymentForm/PaymentFormTypes";
3
- interface InvoiceCheckoutProps extends InvoiceQuoteParentProps {
4
- invoice?: FormattedInvoice;
5
- entityId: string;
6
- }
7
- declare const InvoiceCheckout: ({ onSuccess, onFail, invoice, entityId, }: InvoiceCheckoutProps) => import("react/jsx-runtime").JSX.Element;
8
- export default InvoiceCheckout;
@@ -1,4 +0,0 @@
1
- export declare enum DOCUMENT_NAME {
2
- INVOICE = "invoice",
3
- QUOTE = "quote"
4
- }
@@ -1,4 +0,0 @@
1
- declare const BunnyFooterIcon: ({ color }: {
2
- color: string;
3
- }) => import("react/jsx-runtime").JSX.Element;
4
- export default BunnyFooterIcon;
@@ -1,16 +0,0 @@
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
- };
@@ -1,9 +0,0 @@
1
- import { Quote } from "@bunnyapp/common";
2
- declare const quoteCreate: ({ token, apiHost, quoteName, accountId, contactId, }: {
3
- token: string;
4
- apiHost: string;
5
- quoteName: string;
6
- accountId: string;
7
- contactId: string;
8
- }) => Promise<Quote>;
9
- export default quoteCreate;
@@ -1,7 +0,0 @@
1
- import { Invoice } from "@bunnyapp/common";
2
- declare const getInvoice: ({ token, id, apiHost, }: {
3
- token: string;
4
- id?: string | undefined;
5
- apiHost: string;
6
- }) => Promise<Invoice>;
7
- export default getInvoice;
@@ -1,12 +0,0 @@
1
- import { Subscription } from "@bunnyapp/common";
2
- interface SubscriptionExtended extends Subscription {
3
- invoices?: {
4
- id?: string;
5
- }[];
6
- }
7
- declare const getSubscription: ({ token, id, apiHost, }: {
8
- token: string;
9
- id: string;
10
- apiHost: string;
11
- }) => Promise<SubscriptionExtended>;
12
- export default getSubscription;
@@ -1,8 +0,0 @@
1
- import { FormattedInvoice } from "@bunnyapp/common";
2
- import { InvoiceQuoteParentProps } from "../PaymentForm/PaymentFormTypes";
3
- interface InvoiceCheckoutProps extends InvoiceQuoteParentProps {
4
- invoice?: FormattedInvoice;
5
- entityId: string;
6
- }
7
- declare const InvoiceCheckout: ({ onSuccess, onFail, invoice, entityId, }: InvoiceCheckoutProps) => import("react/jsx-runtime").JSX.Element;
8
- export default InvoiceCheckout;
@@ -1,4 +0,0 @@
1
- export declare enum DOCUMENT_NAME {
2
- INVOICE = "invoice",
3
- QUOTE = "quote"
4
- }
@@ -1,4 +0,0 @@
1
- declare const BunnyFooterIcon: ({ color }: {
2
- color: string;
3
- }) => import("react/jsx-runtime").JSX.Element;
4
- export default BunnyFooterIcon;
@@ -1,16 +0,0 @@
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
- };
@@ -1,9 +0,0 @@
1
- import { Quote } from "@bunnyapp/common";
2
- declare const quoteCreate: ({ token, apiHost, quoteName, accountId, contactId, }: {
3
- token: string;
4
- apiHost: string;
5
- quoteName: string;
6
- accountId: string;
7
- contactId: string;
8
- }) => Promise<Quote>;
9
- export default quoteCreate;
@@ -1,7 +0,0 @@
1
- import { Invoice } from "@bunnyapp/common";
2
- declare const getInvoice: ({ token, id, apiHost, }: {
3
- token: string;
4
- id?: string | undefined;
5
- apiHost: string;
6
- }) => Promise<Invoice>;
7
- export default getInvoice;
@@ -1,12 +0,0 @@
1
- import { Subscription } from "@bunnyapp/common";
2
- interface SubscriptionExtended extends Subscription {
3
- invoices?: {
4
- id?: string;
5
- }[];
6
- }
7
- declare const getSubscription: ({ token, id, apiHost, }: {
8
- token: string;
9
- id: string;
10
- apiHost: string;
11
- }) => Promise<SubscriptionExtended>;
12
- export default getSubscription;