@bunnyapp/components 1.0.11 → 1.0.13
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 +1112 -1214
- package/dist/cjs/src/components/BillingDetails/BillingDetails.d.ts +10 -0
- package/dist/cjs/src/components/BillingDetails/BillingDetails.stories.d.ts +11 -0
- package/dist/cjs/src/components/BillingDetails/index.d.ts +1 -0
- package/dist/cjs/src/components/BunnyProvider.d.ts +3 -3
- package/dist/cjs/src/components/Checkout/InvoiceCheckout.d.ts +1 -21
- package/dist/cjs/src/components/Checkout/QuoteCheckout.d.ts +1 -1
- package/dist/cjs/src/components/Invoice/Invoice.d.ts +8 -2
- package/dist/cjs/src/components/Invoice/Invoice.stories.d.ts +14 -5
- package/dist/cjs/src/components/PageHeaderWithActions.d.ts +2 -1
- package/dist/cjs/src/components/PaymentForm/CheckoutFooter.d.ts +8 -7
- package/dist/cjs/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +6 -2
- package/dist/cjs/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -3
- package/dist/cjs/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +13 -0
- package/dist/cjs/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +21 -0
- package/dist/cjs/src/components/PaymentForm/PaymentForm.d.ts +10 -6
- package/dist/cjs/src/components/PaymentForm/PaymentFormTypes.d.ts +0 -8
- package/dist/cjs/src/components/PaymentForm/PaymentMethod/CreditCard/CreditCard.d.ts +12 -2
- package/dist/cjs/src/components/PaymentForm/PaymentMethod/PaymentMethod.d.ts +6 -4
- package/dist/cjs/src/components/PaymentForm/PaymentMethod/PaymentMethod.stories.d.ts +11 -0
- package/dist/cjs/src/components/PaymentForm/PaymentMethodDetails.d.ts +8 -0
- package/dist/cjs/src/components/PaymentForm/PaymentMethodSelector.d.ts +2 -3
- package/dist/cjs/src/components/PaymentForm/SavePaymentMethodFooter.d.ts +6 -0
- package/dist/cjs/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +6 -2
- package/dist/cjs/src/components/PaymentForm/Stripe/StripeForm.d.ts +6 -2
- package/dist/cjs/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +12 -0
- package/dist/cjs/src/components/PaymentForm/Stripe/hooks/useSave.d.ts +10 -0
- package/dist/cjs/src/components/PaymentForm/Stripe/stripeUtils.d.ts +9 -3
- package/dist/cjs/src/components/PaymentForm/useRemovePaymentMethod.d.ts +3 -0
- package/dist/cjs/src/components/Quote/Quote.d.ts +2 -4
- package/dist/cjs/src/components/Quote/Quote.stories.d.ts +122 -6
- package/dist/cjs/src/components/Quotes/Quotes.d.ts +8 -4
- package/dist/cjs/src/components/Quotes/Quotes.stories.d.ts +22 -0
- package/dist/cjs/src/components/Signup/PaymentForms.d.ts +2 -4
- package/dist/cjs/src/components/Signup/Signup.d.ts +11 -1
- package/dist/cjs/src/components/Signup/Signup.stories.d.ts +6 -4
- package/dist/cjs/src/components/StateTag.d.ts +3 -5
- package/dist/cjs/src/components/Subscriptions/Subscriptions.d.ts +2 -1
- package/dist/cjs/src/components/Subscriptions/Subscriptions.stories.d.ts +10 -0
- package/dist/cjs/src/components/Transactions/Transactions.d.ts +7 -5
- package/dist/cjs/src/components/Transactions/Transactions.stories.d.ts +15 -6
- package/dist/cjs/src/components/Transactions/TransactionsListContext.d.ts +5 -1
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
- package/dist/cjs/src/contexts/PaymentContext.d.ts +2 -2
- package/dist/cjs/src/graphql/queries/getAccount.d.ts +1 -1
- package/dist/cjs/src/hooks/quotes/useSendAcceptQuote.d.ts +2 -2
- package/dist/cjs/src/hooks/usePaymentMethod.d.ts +1 -1
- package/dist/cjs/src/mocks/handlers.d.ts +1 -1
- package/dist/cjs/src/storybook-utils.d.ts +10 -0
- package/dist/cjs/src/types/shadowType.d.ts +1 -0
- package/dist/esm/index.js +1116 -1218
- package/dist/esm/src/components/BillingDetails/BillingDetails.d.ts +10 -0
- package/dist/esm/src/components/BillingDetails/BillingDetails.stories.d.ts +11 -0
- package/dist/esm/src/components/BillingDetails/index.d.ts +1 -0
- package/dist/esm/src/components/BunnyProvider.d.ts +3 -3
- package/dist/esm/src/components/Checkout/InvoiceCheckout.d.ts +1 -21
- package/dist/esm/src/components/Checkout/QuoteCheckout.d.ts +1 -1
- package/dist/esm/src/components/Invoice/Invoice.d.ts +8 -2
- package/dist/esm/src/components/Invoice/Invoice.stories.d.ts +14 -5
- package/dist/esm/src/components/PageHeaderWithActions.d.ts +2 -1
- package/dist/esm/src/components/PaymentForm/CheckoutFooter.d.ts +8 -7
- package/dist/esm/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +6 -2
- package/dist/esm/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -3
- package/dist/esm/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +13 -0
- package/dist/esm/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +21 -0
- package/dist/esm/src/components/PaymentForm/PaymentForm.d.ts +10 -6
- package/dist/esm/src/components/PaymentForm/PaymentFormTypes.d.ts +0 -8
- package/dist/esm/src/components/PaymentForm/PaymentMethod/CreditCard/CreditCard.d.ts +12 -2
- package/dist/esm/src/components/PaymentForm/PaymentMethod/PaymentMethod.d.ts +6 -4
- package/dist/esm/src/components/PaymentForm/PaymentMethod/PaymentMethod.stories.d.ts +11 -0
- package/dist/esm/src/components/PaymentForm/PaymentMethodDetails.d.ts +8 -0
- package/dist/esm/src/components/PaymentForm/PaymentMethodSelector.d.ts +2 -3
- package/dist/esm/src/components/PaymentForm/SavePaymentMethodFooter.d.ts +6 -0
- package/dist/esm/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +6 -2
- package/dist/esm/src/components/PaymentForm/Stripe/StripeForm.d.ts +6 -2
- package/dist/esm/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +12 -0
- package/dist/esm/src/components/PaymentForm/Stripe/hooks/useSave.d.ts +10 -0
- package/dist/esm/src/components/PaymentForm/Stripe/stripeUtils.d.ts +9 -3
- package/dist/esm/src/components/PaymentForm/useRemovePaymentMethod.d.ts +3 -0
- package/dist/esm/src/components/Quote/Quote.d.ts +2 -4
- package/dist/esm/src/components/Quote/Quote.stories.d.ts +122 -6
- package/dist/esm/src/components/Quotes/Quotes.d.ts +8 -4
- package/dist/esm/src/components/Quotes/Quotes.stories.d.ts +22 -0
- package/dist/esm/src/components/Signup/PaymentForms.d.ts +2 -4
- package/dist/esm/src/components/Signup/Signup.d.ts +11 -1
- package/dist/esm/src/components/Signup/Signup.stories.d.ts +6 -4
- package/dist/esm/src/components/StateTag.d.ts +3 -5
- package/dist/esm/src/components/Subscriptions/Subscriptions.d.ts +2 -1
- package/dist/esm/src/components/Subscriptions/Subscriptions.stories.d.ts +10 -0
- package/dist/esm/src/components/Transactions/Transactions.d.ts +7 -5
- package/dist/esm/src/components/Transactions/Transactions.stories.d.ts +15 -6
- package/dist/esm/src/components/Transactions/TransactionsListContext.d.ts +5 -1
- package/dist/esm/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
- package/dist/esm/src/contexts/PaymentContext.d.ts +2 -2
- package/dist/esm/src/graphql/queries/getAccount.d.ts +1 -1
- package/dist/esm/src/hooks/quotes/useSendAcceptQuote.d.ts +2 -2
- package/dist/esm/src/hooks/usePaymentMethod.d.ts +1 -1
- package/dist/esm/src/mocks/handlers.d.ts +1 -1
- package/dist/esm/src/storybook-utils.d.ts +10 -0
- package/dist/esm/src/types/shadowType.d.ts +1 -0
- package/dist/index.d.ts +45 -25
- package/package.json +2 -2
- package/dist/cjs/src/components/PaymentForm/Finix/FinixCardForm.d.ts +0 -4
- package/dist/cjs/src/components/PaymentForm/Finix/index.d.ts +0 -2
- package/dist/cjs/src/components/PaymentForm/FinixAch.d.ts +0 -3
- package/dist/cjs/src/components/PaymentForm/PaymentMethod/PaymentMethodContext.d.ts +0 -5
- package/dist/cjs/src/components/PaymentForm/PaymentMethodForm.d.ts +0 -3
- package/dist/cjs/src/components/PaymentForm/PaymentOption.d.ts +0 -8
- package/dist/cjs/src/components/PaymentForm/StoredPaymentMethod/StoredPaymentMethodForm.d.ts +0 -3
- package/dist/cjs/src/components/PaymentForm/Stripe/CheckoutForm.d.ts +0 -3
- package/dist/cjs/src/components/PaymentForm/Stripe/index.d.ts +0 -1
- package/dist/cjs/src/components/PaymentForm/paymentUtils.d.ts +0 -7
- package/dist/cjs/src/stories/Button.d.ts +0 -15
- package/dist/cjs/src/stories/Button.stories.d.ts +0 -9
- package/dist/cjs/src/stories/Header.d.ts +0 -12
- package/dist/cjs/src/stories/Header.stories.d.ts +0 -7
- package/dist/cjs/src/stories/Page.d.ts +0 -3
- package/dist/cjs/src/stories/Page.stories.d.ts +0 -7
- package/dist/esm/src/components/PaymentForm/Finix/FinixCardForm.d.ts +0 -4
- package/dist/esm/src/components/PaymentForm/Finix/index.d.ts +0 -2
- package/dist/esm/src/components/PaymentForm/FinixAch.d.ts +0 -3
- package/dist/esm/src/components/PaymentForm/PaymentMethod/PaymentMethodContext.d.ts +0 -5
- package/dist/esm/src/components/PaymentForm/PaymentMethodForm.d.ts +0 -3
- package/dist/esm/src/components/PaymentForm/PaymentOption.d.ts +0 -8
- package/dist/esm/src/components/PaymentForm/StoredPaymentMethod/StoredPaymentMethodForm.d.ts +0 -3
- package/dist/esm/src/components/PaymentForm/Stripe/CheckoutForm.d.ts +0 -3
- package/dist/esm/src/components/PaymentForm/Stripe/index.d.ts +0 -1
- package/dist/esm/src/components/PaymentForm/paymentUtils.d.ts +0 -7
- package/dist/esm/src/stories/Button.d.ts +0 -15
- package/dist/esm/src/stories/Button.stories.d.ts +0 -9
- package/dist/esm/src/stories/Header.d.ts +0 -12
- package/dist/esm/src/stories/Header.stories.d.ts +0 -7
- package/dist/esm/src/stories/Page.d.ts +0 -3
- package/dist/esm/src/stories/Page.stories.d.ts +0 -7
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { Quote } from "@bunnyapp/common";
|
|
2
2
|
import { OnPaymentSuccessType } from "../PaymentForm/PaymentFormTypes";
|
|
3
|
-
export default function PaymentForms({ quote,
|
|
3
|
+
export default function PaymentForms({ quote, handlePaymentSaveSuccess, handlePaymentFail, handleSubmit, proceedingToPayment, entityId, accountId, }: {
|
|
4
4
|
quote?: Quote;
|
|
5
|
-
paying: boolean;
|
|
6
|
-
setIsPaying: (paying: boolean) => void;
|
|
7
5
|
handlePaymentSaveSuccess: (paymentSuccess: OnPaymentSuccessType) => void;
|
|
8
6
|
handlePaymentFail: (error: any) => void;
|
|
9
7
|
handleSubmit: (formData: FormData) => void;
|
|
10
8
|
proceedingToPayment: boolean;
|
|
11
|
-
accountId?: string;
|
|
12
9
|
entityId: string;
|
|
10
|
+
accountId?: string;
|
|
13
11
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
12
|
export type FormData = {
|
|
15
13
|
firstName: string;
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import "../../styles/index.less";
|
|
2
|
-
|
|
3
|
+
import { ShadowType } from "../../types/shadowType";
|
|
4
|
+
export default function Signup({ companyName, entityId, priceListCode, returnUrl, isCardEnabled, className, shadow, style, }: {
|
|
3
5
|
companyName: string;
|
|
4
6
|
entityId: string;
|
|
5
7
|
priceListCode: string;
|
|
6
8
|
returnUrl?: string;
|
|
9
|
+
/** Whether or not to display signup within a card */
|
|
10
|
+
isCardEnabled?: boolean;
|
|
11
|
+
/** A custom class name to apply to the component */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** The shadow level to apply to the component */
|
|
14
|
+
shadow?: ShadowType;
|
|
15
|
+
/** A custom style to apply to the component */
|
|
16
|
+
style?: React.CSSProperties;
|
|
7
17
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/react";
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
2
|
import Signup from "./Signup";
|
|
3
|
-
declare const meta:
|
|
4
|
-
component: typeof Signup;
|
|
5
|
-
};
|
|
3
|
+
declare const meta: Meta<typeof Signup>;
|
|
6
4
|
export default meta;
|
|
7
5
|
type Story = StoryObj<typeof meta>;
|
|
8
6
|
export declare const Default: Story;
|
|
7
|
+
export declare const NoCard: Story;
|
|
8
|
+
export declare const Mobile: Story;
|
|
9
|
+
export declare const CustomClassName: Story;
|
|
10
|
+
export declare const DarkMode: Story;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
declare const StateTag: ({ state }: StateTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
declare const StateTag: ({ state }: {
|
|
2
|
+
state: string;
|
|
3
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
4
|
export default StateTag;
|
|
@@ -13,11 +13,12 @@ export type EditingQuoteDataType = {
|
|
|
13
13
|
id: string;
|
|
14
14
|
isTrial: boolean;
|
|
15
15
|
};
|
|
16
|
-
declare const Subscriptions: ({ companyName, entityId, gap, shadow, showTitle, }: {
|
|
16
|
+
declare const Subscriptions: ({ companyName, entityId, gap, shadow, showTitle, className, }: {
|
|
17
17
|
companyName: string;
|
|
18
18
|
entityId: string;
|
|
19
19
|
gap?: number | undefined;
|
|
20
20
|
shadow?: "none" | "lg" | "md" | "sm" | undefined;
|
|
21
21
|
showTitle?: boolean | undefined;
|
|
22
|
+
className?: string | undefined;
|
|
22
23
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
export default Subscriptions;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import Subscriptions from "./Subscriptions";
|
|
3
|
+
declare const meta: Meta<typeof Subscriptions>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Mobile: Story;
|
|
8
|
+
export declare const NoShadow: Story;
|
|
9
|
+
export declare const CustomClassName: Story;
|
|
10
|
+
export declare const DarkMode: Story;
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FrontendTransaction as T, TransactionKind } from "@bunnyapp/common";
|
|
3
|
-
|
|
3
|
+
import { ShadowType } from "../../types/shadowType";
|
|
4
|
+
export default function Transactions({ transactionComponent, showSearchBar, showTitle, title, columns, className, shadow, searchBarClassName, useModal, onTransactionClick, suppressTransactionDisplay, kindsToShow, style, filter, noTransactionsMessage, entityId, }: {
|
|
4
5
|
/** A custom component to render instead of the default invoice component */
|
|
5
6
|
transactionComponent?: React.ReactNode;
|
|
6
7
|
/** Whether to show the search bar */
|
|
7
8
|
showSearchBar?: boolean;
|
|
8
9
|
/** Whether to show the title */
|
|
9
10
|
showTitle?: boolean;
|
|
11
|
+
/** The title to display in the transactions list */
|
|
12
|
+
title?: string;
|
|
10
13
|
/** The columns to display in the transactions list */
|
|
11
|
-
columns?: ("date-and-title" | "state" | "amount" | "download"
|
|
14
|
+
columns?: ("date-and-title" | "state" | "amount" | "download")[];
|
|
12
15
|
/** A custom class name to apply to the component */
|
|
13
16
|
className?: string;
|
|
14
17
|
/** Whether to use a modal for the invoice drawer */
|
|
15
18
|
useModal?: boolean;
|
|
16
19
|
/** Whether to show a shadow around the transactions list */
|
|
17
|
-
shadow?:
|
|
20
|
+
shadow?: ShadowType;
|
|
18
21
|
/** A custom class name to apply to the search bar */
|
|
19
22
|
searchBarClassName?: string;
|
|
20
23
|
/** A function to call when a transaction is clicked */
|
|
@@ -32,9 +35,8 @@ export default function Transactions({ transactionComponent, showSearchBar, show
|
|
|
32
35
|
/** The entity id to pass to the invoice component */
|
|
33
36
|
entityId: string;
|
|
34
37
|
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export declare function TransactionsDisplay({ transactions, onSearchValueChanged, search,
|
|
38
|
+
export declare function TransactionsDisplay({ transactions, onSearchValueChanged, search, }: {
|
|
36
39
|
transactions: T.Transaction[];
|
|
37
40
|
onSearchValueChanged: (value: string) => void;
|
|
38
41
|
search: string;
|
|
39
|
-
title?: string;
|
|
40
42
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,26 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/react";
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
2
|
import Transactions from "./Transactions";
|
|
3
|
-
declare const meta:
|
|
4
|
-
component: typeof Transactions;
|
|
5
|
-
tags: string[];
|
|
6
|
-
};
|
|
3
|
+
declare const meta: Meta<typeof Transactions>;
|
|
7
4
|
export default meta;
|
|
8
5
|
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const basicArgs: {
|
|
7
|
+
token: string;
|
|
8
|
+
entityId: string;
|
|
9
|
+
};
|
|
9
10
|
export declare const Default: Story;
|
|
11
|
+
export declare const Padding0BGRed: Story;
|
|
12
|
+
export declare const NoShadow: Story;
|
|
10
13
|
export declare const WithModal: Story;
|
|
11
|
-
export declare const
|
|
14
|
+
export declare const HideSearchBar: Story;
|
|
15
|
+
export declare const HideTitle: Story;
|
|
16
|
+
export declare const HideTitleAndSearchBar: Story;
|
|
17
|
+
export declare const CustomTitle: Story;
|
|
12
18
|
export declare const Mobile: Story;
|
|
13
19
|
export declare const WithCustomTransactionComponent: Story;
|
|
14
20
|
export declare const WithCustomColumns1: Story;
|
|
15
21
|
export declare const WithCustomColumns2: Story;
|
|
16
22
|
export declare const WithCustomColumns3: Story;
|
|
17
23
|
export declare const WithCustomColumns4: Story;
|
|
24
|
+
export declare const WithCustomColumns5: Story;
|
|
25
|
+
export declare const DarkMode: Story;
|
|
26
|
+
export declare const CustomColors: Story;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FrontendTransaction as T, TransactionKind } from "@bunnyapp/common";
|
|
3
3
|
import { TransactionListColumnType } from "./transactionsList/TransactionsListDesktop";
|
|
4
|
+
import { ShadowType } from "../../types/shadowType";
|
|
4
5
|
export type TransactionsContextValues = {
|
|
5
6
|
showSearchBar?: boolean;
|
|
6
7
|
showTitle?: boolean;
|
|
8
|
+
title?: string;
|
|
7
9
|
transactionComponent?: React.ReactNode;
|
|
10
|
+
transactionStateRenderer?: (state: string) => React.ReactNode;
|
|
8
11
|
columns: TransactionListColumnType[];
|
|
9
12
|
className?: string;
|
|
10
|
-
shadow?:
|
|
13
|
+
shadow?: ShadowType;
|
|
11
14
|
searchBarClassName?: string;
|
|
12
15
|
useModal?: boolean;
|
|
13
16
|
onTransactionClick?: (transaction: T.Transaction) => void;
|
|
17
|
+
onTransactionDisplayClose?: (transaction: T.Transaction | null) => void;
|
|
14
18
|
suppressTransactionDisplay?: boolean;
|
|
15
19
|
kindsToShow: TransactionKind[];
|
|
16
20
|
style?: React.CSSProperties;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FrontendTransaction as T } from "@bunnyapp/common";
|
|
2
|
-
export type TransactionListColumnType = "date-and-title" | "state" | "amount" | "download"
|
|
2
|
+
export type TransactionListColumnType = "date-and-title" | "state" | "amount" | "download";
|
|
3
3
|
declare const TransactionsListDesktop: ({ transactions, onTransactionClick, }: {
|
|
4
4
|
transactions: T.Transaction[];
|
|
5
5
|
onTransactionClick?: ((transaction: T.Transaction) => void) | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export type PaymentContextValues = {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
onClickCancel?: () => void;
|
|
4
|
+
accountId?: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const PaymentContext: import("react").Context<PaymentContextValues>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const useSendAcceptQuote: ({ entityId,
|
|
2
|
+
declare const useSendAcceptQuote: ({ entityId, onTokenExpired, quoteId, apiHost, token, }: {
|
|
3
3
|
entityId: string;
|
|
4
|
-
|
|
4
|
+
onTokenExpired?: (() => void) | undefined;
|
|
5
5
|
quoteId?: string | undefined;
|
|
6
6
|
apiHost: string;
|
|
7
7
|
token: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { GraphQLClient } from "graphql-request";
|
|
2
|
-
export declare const usePaymentMethod: (graphQLClient: GraphQLClient) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<any, Error>;
|
|
2
|
+
export declare const usePaymentMethod: (graphQLClient: GraphQLClient, accountId?: string) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<any, Error>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const handlers: import("msw/lib/core/GraphQLHandler-C5CUIS_N").G[];
|
|
1
|
+
export declare const handlers: (import("msw/lib/core/handlers/HttpHandler").HttpHandler | import("msw/lib/core/GraphQLHandler-C5CUIS_N").G)[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ShadowType = "shadow-none" | "shadow-sm" | "shadow-md" | "shadow-lg" | "shadow-xl";
|