@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.
- package/dist/cjs/index.js +16297 -701
- package/dist/cjs/src/components/BunnyProvider.d.ts +3 -5
- package/dist/cjs/src/components/Invoice/Invoice.d.ts +1 -15
- package/dist/cjs/src/components/Invoice/InvoiceQuoteContext.d.ts +15 -0
- package/dist/cjs/src/components/PaymentForm/CheckoutFooter.d.ts +3 -4
- package/dist/cjs/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +4 -6
- package/dist/cjs/src/components/PaymentForm/PaymentForm.d.ts +5 -3
- package/dist/cjs/src/components/PaymentForm/PaymentFormTypes.d.ts +3 -28
- package/dist/cjs/src/components/PaymentForm/PaymentMethodDetails.d.ts +1 -2
- package/dist/cjs/src/components/PaymentForm/PaymentMethodSelector.d.ts +3 -3
- package/dist/cjs/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -1
- package/dist/cjs/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +4 -5
- package/dist/cjs/src/components/Quote/Quote.d.ts +1 -1
- package/dist/cjs/src/components/Quote/Quote.stories.d.ts +25 -25
- package/dist/cjs/src/components/Quotes/Quotes.d.ts +5 -1
- package/dist/cjs/src/components/Signup/PaymentForms.d.ts +3 -3
- package/dist/cjs/src/components/Signup/Signup.d.ts +7 -1
- package/dist/cjs/src/components/Subscriptions/Subscriptions.d.ts +0 -10
- package/dist/cjs/src/components/Subscriptions/SubscriptionsContext.d.ts +10 -0
- package/dist/cjs/src/components/Transactions/Transactions.d.ts +11 -2
- package/dist/cjs/src/components/Transactions/TransactionsListContext.d.ts +3 -1
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
- package/dist/cjs/src/components/index.d.ts +1 -0
- package/dist/cjs/src/contexts/PaymentContext.d.ts +3 -0
- package/dist/cjs/src/graphql/graphqlUtil.d.ts +10 -0
- package/dist/cjs/src/graphql/queries/getTransactions.d.ts +2 -2
- package/dist/esm/index.js +16433 -839
- package/dist/esm/src/components/BunnyProvider.d.ts +3 -5
- package/dist/esm/src/components/Invoice/Invoice.d.ts +1 -15
- package/dist/esm/src/components/Invoice/InvoiceQuoteContext.d.ts +15 -0
- package/dist/esm/src/components/PaymentForm/CheckoutFooter.d.ts +3 -4
- package/dist/esm/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +4 -6
- package/dist/esm/src/components/PaymentForm/PaymentForm.d.ts +5 -3
- package/dist/esm/src/components/PaymentForm/PaymentFormTypes.d.ts +3 -28
- package/dist/esm/src/components/PaymentForm/PaymentMethodDetails.d.ts +1 -2
- package/dist/esm/src/components/PaymentForm/PaymentMethodSelector.d.ts +3 -3
- package/dist/esm/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -1
- package/dist/esm/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +4 -5
- package/dist/esm/src/components/Quote/Quote.d.ts +1 -1
- package/dist/esm/src/components/Quote/Quote.stories.d.ts +25 -25
- package/dist/esm/src/components/Quotes/Quotes.d.ts +5 -1
- package/dist/esm/src/components/Signup/PaymentForms.d.ts +3 -3
- package/dist/esm/src/components/Signup/Signup.d.ts +7 -1
- package/dist/esm/src/components/Subscriptions/Subscriptions.d.ts +0 -10
- package/dist/esm/src/components/Subscriptions/SubscriptionsContext.d.ts +10 -0
- package/dist/esm/src/components/Transactions/Transactions.d.ts +11 -2
- package/dist/esm/src/components/Transactions/TransactionsListContext.d.ts +3 -1
- package/dist/esm/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
- package/dist/esm/src/components/index.d.ts +1 -0
- package/dist/esm/src/contexts/PaymentContext.d.ts +3 -0
- package/dist/esm/src/graphql/graphqlUtil.d.ts +10 -0
- package/dist/esm/src/graphql/queries/getTransactions.d.ts +2 -2
- package/dist/index.d.ts +41 -15
- package/package.json +4 -3
- package/dist/cjs/src/components/Checkout/InvoiceCheckout.d.ts +0 -8
- package/dist/cjs/src/components/Transactions/DocumentNameEnum.d.ts +0 -4
- package/dist/cjs/src/components/icons/BunnyFooterIcon.d.ts +0 -4
- package/dist/cjs/src/consts/paymentConsts.d.ts +0 -16
- package/dist/cjs/src/graphql/mutations/quoteCreate.d.ts +0 -9
- package/dist/cjs/src/graphql/queries/getInvoice.d.ts +0 -7
- package/dist/cjs/src/graphql/queries/getSubscription.d.ts +0 -12
- package/dist/esm/src/components/Checkout/InvoiceCheckout.d.ts +0 -8
- package/dist/esm/src/components/Transactions/DocumentNameEnum.d.ts +0 -4
- package/dist/esm/src/components/icons/BunnyFooterIcon.d.ts +0 -4
- package/dist/esm/src/consts/paymentConsts.d.ts +0 -16
- package/dist/esm/src/graphql/mutations/quoteCreate.d.ts +0 -9
- package/dist/esm/src/graphql/queries/getInvoice.d.ts +0 -7
- 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.
|
|
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.
|
|
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,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,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,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,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;
|