@bunnyapp/components 1.0.44 → 1.0.45
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 +2347 -522
- package/dist/cjs/src/components/Footer/BunnyFooterIcon.d.ts +4 -0
- package/dist/cjs/src/components/Footer/Footer.d.ts +4 -0
- package/dist/cjs/src/components/Quote/Quote.stories.d.ts +10 -10
- package/dist/cjs/src/components/Subscriptions/CheckIcon.d.ts +5 -0
- package/dist/cjs/src/components/Subscriptions/PageTitle.d.ts +5 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanManager.d.ts +5 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/NextPriceListButton.d.ts +8 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PlanPicker.d.ts +7 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PriceListGrid.d.ts +15 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PriceListSelector.d.ts +11 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +8 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +12 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutButton.d.ts +6 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutPrice.d.ts +7 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +5 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +11 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +6 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/FeatureGridCell.d.ts +7 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +7 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanPickerGridCell.d.ts +6 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +14 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +15 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/consts.d.ts +1 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +2 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +14 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +11 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerUtils.d.ts +12 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCard.d.ts +10 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardButton.d.ts +9 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardDescription.d.ts +4 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardFeature.d.ts +6 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPrice.d.ts +6 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +7 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardTitle.d.ts +7 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/priceListCardUtils.d.ts +10 -0
- package/dist/cjs/src/components/Subscriptions/PlanManager/PreviewModeAdvisary.d.ts +4 -0
- package/dist/cjs/src/components/Subscriptions/SubscriptionRequests.d.ts +2 -0
- package/dist/cjs/src/components/Subscriptions/Subscriptions.d.ts +10 -12
- package/dist/cjs/src/components/Subscriptions/SubscriptionsContext.d.ts +13 -0
- package/dist/cjs/src/components/Subscriptions/SubscriptionsListContainer.d.ts +16 -0
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +11 -0
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridTitle.d.ts +6 -0
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuantityInput.d.ts +21 -0
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +9 -0
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +14 -0
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +5 -0
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/HideExpiredToggle.d.ts +6 -0
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +9 -0
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +5 -2
- package/dist/cjs/src/components/index.d.ts +0 -1
- package/dist/cjs/src/graphql/QuoteRequests.d.ts +6 -0
- package/dist/cjs/src/graphql/mutations/quoteCompose.d.ts +1 -1
- package/dist/cjs/src/graphql/queries/getPortalPreviewQuery.d.ts +2 -0
- package/dist/cjs/src/graphql/queries/getQuote.d.ts +7 -0
- package/dist/cjs/src/hooks/useCurrentUserData.d.ts +2 -0
- package/dist/cjs/src/index.d.ts +0 -1
- package/dist/cjs/src/utils/apiUtils.d.ts +2 -0
- package/dist/cjs/src/utils/pricePickerUtils.d.ts +5 -0
- package/dist/esm/index.js +2350 -523
- package/dist/esm/src/components/Footer/BunnyFooterIcon.d.ts +4 -0
- package/dist/esm/src/components/Footer/Footer.d.ts +4 -0
- package/dist/esm/src/components/Quote/Quote.stories.d.ts +10 -10
- package/dist/esm/src/components/Subscriptions/CheckIcon.d.ts +5 -0
- package/dist/esm/src/components/Subscriptions/PageTitle.d.ts +5 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanManager.d.ts +5 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/NextPriceListButton.d.ts +8 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PlanPicker.d.ts +7 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PriceListGrid.d.ts +15 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PriceListSelector.d.ts +11 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +8 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +12 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutButton.d.ts +6 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutPrice.d.ts +7 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +5 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +11 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +6 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/FeatureGridCell.d.ts +7 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +7 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanPickerGridCell.d.ts +6 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +14 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +15 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/consts.d.ts +1 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +2 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +14 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +11 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerUtils.d.ts +12 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCard.d.ts +10 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardButton.d.ts +9 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardDescription.d.ts +4 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardFeature.d.ts +6 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPrice.d.ts +6 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +7 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardTitle.d.ts +7 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/priceListCardUtils.d.ts +10 -0
- package/dist/esm/src/components/Subscriptions/PlanManager/PreviewModeAdvisary.d.ts +4 -0
- package/dist/esm/src/components/Subscriptions/SubscriptionRequests.d.ts +2 -0
- package/dist/esm/src/components/Subscriptions/Subscriptions.d.ts +10 -12
- package/dist/esm/src/components/Subscriptions/SubscriptionsContext.d.ts +13 -0
- package/dist/esm/src/components/Subscriptions/SubscriptionsListContainer.d.ts +16 -0
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +11 -0
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridTitle.d.ts +6 -0
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuantityInput.d.ts +21 -0
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +9 -0
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +14 -0
- package/dist/esm/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +5 -0
- package/dist/esm/src/components/Subscriptions/subscriptionsList/HideExpiredToggle.d.ts +6 -0
- package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +9 -0
- package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +5 -2
- package/dist/esm/src/components/index.d.ts +0 -1
- package/dist/esm/src/graphql/QuoteRequests.d.ts +6 -0
- package/dist/esm/src/graphql/mutations/quoteCompose.d.ts +1 -1
- package/dist/esm/src/graphql/queries/getPortalPreviewQuery.d.ts +2 -0
- package/dist/esm/src/graphql/queries/getQuote.d.ts +7 -0
- package/dist/esm/src/hooks/useCurrentUserData.d.ts +2 -0
- package/dist/esm/src/index.d.ts +0 -1
- package/dist/esm/src/utils/apiUtils.d.ts +2 -0
- package/dist/esm/src/utils/pricePickerUtils.d.ts +5 -0
- package/dist/index.d.ts +10 -42
- package/package.json +2 -2
- package/dist/cjs/src/components/Checkout/index.d.ts +0 -2
- package/dist/cjs/src/graphql/mutations/quoteSubscriptionReinstate.d.ts +0 -7
- package/dist/cjs/src/hooks/index.d.ts +0 -1
- package/dist/cjs/src/utils/quoteInvoiceUtils.d.ts +0 -6
- package/dist/esm/src/components/Checkout/index.d.ts +0 -2
- package/dist/esm/src/graphql/mutations/quoteSubscriptionReinstate.d.ts +0 -7
- package/dist/esm/src/hooks/index.d.ts +0 -1
- package/dist/esm/src/utils/quoteInvoiceUtils.d.ts +0 -6
|
@@ -18,12 +18,12 @@ export declare const Default: import("@storybook/core/csf").StoryAnnotations<imp
|
|
|
18
18
|
onInvoiceLoaded?: ((formattedInvoice: import("@bunnyapp/common").FormattedInvoice) => void) | undefined;
|
|
19
19
|
onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
|
|
20
20
|
}, {
|
|
21
|
+
className?: string | undefined;
|
|
22
|
+
id?: string | undefined;
|
|
21
23
|
backButtonName?: string | undefined;
|
|
22
24
|
onBackButtonClick?: (() => void) | undefined;
|
|
23
25
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
24
26
|
hideDownloadButton?: boolean | undefined;
|
|
25
|
-
id?: string | undefined;
|
|
26
|
-
className?: string | undefined;
|
|
27
27
|
entityId?: string | undefined;
|
|
28
28
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
29
29
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
@@ -45,12 +45,12 @@ export declare const NoShadow: import("@storybook/core/csf").StoryAnnotations<im
|
|
|
45
45
|
onInvoiceLoaded?: ((formattedInvoice: import("@bunnyapp/common").FormattedInvoice) => void) | undefined;
|
|
46
46
|
onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
|
|
47
47
|
}, {
|
|
48
|
+
className?: string | undefined;
|
|
49
|
+
id?: string | undefined;
|
|
48
50
|
backButtonName?: string | undefined;
|
|
49
51
|
onBackButtonClick?: (() => void) | undefined;
|
|
50
52
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
51
53
|
hideDownloadButton?: boolean | undefined;
|
|
52
|
-
id?: string | undefined;
|
|
53
|
-
className?: string | undefined;
|
|
54
54
|
entityId?: string | undefined;
|
|
55
55
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
56
56
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
@@ -72,12 +72,12 @@ export declare const Mobile: import("@storybook/core/csf").StoryAnnotations<impo
|
|
|
72
72
|
onInvoiceLoaded?: ((formattedInvoice: import("@bunnyapp/common").FormattedInvoice) => void) | undefined;
|
|
73
73
|
onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
|
|
74
74
|
}, {
|
|
75
|
+
className?: string | undefined;
|
|
76
|
+
id?: string | undefined;
|
|
75
77
|
backButtonName?: string | undefined;
|
|
76
78
|
onBackButtonClick?: (() => void) | undefined;
|
|
77
79
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
78
80
|
hideDownloadButton?: boolean | undefined;
|
|
79
|
-
id?: string | undefined;
|
|
80
|
-
className?: string | undefined;
|
|
81
81
|
entityId?: string | undefined;
|
|
82
82
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
83
83
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
@@ -99,12 +99,12 @@ export declare const CustomClassName: import("@storybook/core/csf").StoryAnnotat
|
|
|
99
99
|
onInvoiceLoaded?: ((formattedInvoice: import("@bunnyapp/common").FormattedInvoice) => void) | undefined;
|
|
100
100
|
onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
|
|
101
101
|
}, {
|
|
102
|
+
className?: string | undefined;
|
|
103
|
+
id?: string | undefined;
|
|
102
104
|
backButtonName?: string | undefined;
|
|
103
105
|
onBackButtonClick?: (() => void) | undefined;
|
|
104
106
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
105
107
|
hideDownloadButton?: boolean | undefined;
|
|
106
|
-
id?: string | undefined;
|
|
107
|
-
className?: string | undefined;
|
|
108
108
|
entityId?: string | undefined;
|
|
109
109
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
110
110
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
@@ -129,12 +129,12 @@ export declare const DarkMode: import("@storybook/core/csf").StoryAnnotations<im
|
|
|
129
129
|
onInvoiceLoaded?: ((formattedInvoice: import("@bunnyapp/common").FormattedInvoice) => void) | undefined;
|
|
130
130
|
onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
|
|
131
131
|
}, {
|
|
132
|
+
className?: string | undefined;
|
|
133
|
+
id?: string | undefined;
|
|
132
134
|
backButtonName?: string | undefined;
|
|
133
135
|
onBackButtonClick?: (() => void) | undefined;
|
|
134
136
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
135
137
|
hideDownloadButton?: boolean | undefined;
|
|
136
|
-
id?: string | undefined;
|
|
137
|
-
className?: string | undefined;
|
|
138
138
|
entityId?: string | undefined;
|
|
139
139
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
140
140
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { PriceList } from "@bunnyapp/common";
|
|
3
|
+
declare const NextPriceListButton: ({ availablePriceLists, priceListStart, setPriceListStart, }: {
|
|
4
|
+
availablePriceLists: PriceList[];
|
|
5
|
+
priceListStart: number;
|
|
6
|
+
setPriceListStart: Dispatch<SetStateAction<number>>;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default NextPriceListButton;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PlanChangeOptions, PriceList, Product, Subscription } from "@bunnyapp/common";
|
|
2
|
+
import { Dispatch, SetStateAction } from "react";
|
|
3
|
+
type PriceListGridProps = {
|
|
4
|
+
availablePriceLists: PriceList[];
|
|
5
|
+
onChangePriceList: (selectedPriceList: PriceList) => void;
|
|
6
|
+
planChangeOptions?: PlanChangeOptions;
|
|
7
|
+
selectedPriceList?: PriceList;
|
|
8
|
+
selectedProduct?: Product;
|
|
9
|
+
subscriptions: Subscription[];
|
|
10
|
+
priceListStart: number;
|
|
11
|
+
setPriceListStart: Dispatch<SetStateAction<number>>;
|
|
12
|
+
upgradingSubscriptionState?: Subscription;
|
|
13
|
+
};
|
|
14
|
+
declare const PriceListGrid: ({ availablePriceLists, onChangePriceList, planChangeOptions, priceListStart, selectedPriceList, selectedProduct, setPriceListStart, subscriptions, upgradingSubscriptionState, }: PriceListGridProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default PriceListGrid;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PlanChangeOptions, PriceList, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListSelector: ({ arePlanChangeOptionsLoading, areSubscriptionsLoading, onChangePriceList, planChangeOptions, selectedPriceList, subscriptions, upgradingSubscription, }: {
|
|
3
|
+
arePlanChangeOptionsLoading: boolean;
|
|
4
|
+
areSubscriptionsLoading: boolean;
|
|
5
|
+
onChangePriceList: (selectedPriceList: PriceList) => void;
|
|
6
|
+
planChangeOptions?: PlanChangeOptions | undefined;
|
|
7
|
+
selectedPriceList?: PriceList | undefined;
|
|
8
|
+
subscriptions: Subscription[];
|
|
9
|
+
upgradingSubscription?: Subscription | undefined;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default PriceListSelector;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PriceList, PriceListCharge } from "@bunnyapp/common";
|
|
2
|
+
declare const CheckoutBarInput: ({ charge, quantity, selectedPriceList, setQuantity, }: {
|
|
3
|
+
charge: PriceListCharge;
|
|
4
|
+
quantity: number;
|
|
5
|
+
selectedPriceList?: PriceList | undefined;
|
|
6
|
+
setQuantity: (quantity: number) => void;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export default CheckoutBarInput;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PriceList, Quote, QuotePreviewData, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const CheckoutBarSummarySection: ({ open, quantityLocal, quote, selectedPriceList, onClickCheckout, entityId, upgradingSubscription, quotePreviewData, }: {
|
|
3
|
+
open: boolean;
|
|
4
|
+
quantityLocal: number;
|
|
5
|
+
quote?: Quote | undefined;
|
|
6
|
+
selectedPriceList: PriceList;
|
|
7
|
+
onClickCheckout: () => void;
|
|
8
|
+
entityId: string;
|
|
9
|
+
upgradingSubscription?: Subscription | undefined;
|
|
10
|
+
quotePreviewData?: QuotePreviewData | undefined;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default CheckoutBarSummarySection;
|
package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutPrice.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PriceList, Quote } from "@bunnyapp/common";
|
|
2
|
+
declare const CheckoutPrice: ({ isUsage, quote, selectedPriceList, }: {
|
|
3
|
+
isUsage: boolean;
|
|
4
|
+
quote?: Quote | undefined;
|
|
5
|
+
selectedPriceList: PriceList;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export default CheckoutPrice;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BillingPeriod, Product } from "@bunnyapp/common";
|
|
2
|
+
import { PeriodMonths } from "../../../../../utils/pricePickerUtils";
|
|
3
|
+
declare const BillingPeriodSelector: ({ availableBillingPeriods, onChangeBillingPeriod, products, selectedBillingPeriod, selectedProduct, onChangeProduct, }: {
|
|
4
|
+
availableBillingPeriods?: PeriodMonths[] | undefined;
|
|
5
|
+
onChangeBillingPeriod: (billingPeriod: BillingPeriod) => void;
|
|
6
|
+
products?: Product[] | undefined;
|
|
7
|
+
selectedBillingPeriod?: BillingPeriod | undefined;
|
|
8
|
+
selectedProduct?: Product | undefined;
|
|
9
|
+
onChangeProduct: (product: Product) => void;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export default BillingPeriodSelector;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Plan, Product } from "@bunnyapp/common";
|
|
2
|
+
declare const EverythingPlanFeatures: ({ availablePlansArray, selectedProduct, }: {
|
|
3
|
+
availablePlansArray: Plan[];
|
|
4
|
+
selectedProduct?: Product | undefined;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default EverythingPlanFeatures;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const FeatureGridCell: ({ children, isFeatureGroup, noBorder, rowIndex, }: {
|
|
2
|
+
children?: React.ReactNode;
|
|
3
|
+
isFeatureGroup?: boolean | undefined;
|
|
4
|
+
noBorder?: boolean | undefined;
|
|
5
|
+
rowIndex: number;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default FeatureGridCell;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Plan, Product } from "@bunnyapp/common";
|
|
2
|
+
declare const PlanFeatures: ({ availablePlansArray, plans, selectedProduct, }: {
|
|
3
|
+
availablePlansArray: Plan[];
|
|
4
|
+
plans?: Plan[] | undefined;
|
|
5
|
+
selectedProduct?: Product | undefined;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export default PlanFeatures;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Feature, PriceList, Plan, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListCardDesktop: ({ description, disableOnClick, feature, isPriceListCurrentSubscription, isSelected, onClick, plan, priceList, subscriptionPlan, trialRemainingDays, }: {
|
|
3
|
+
description: string;
|
|
4
|
+
disableOnClick: boolean;
|
|
5
|
+
feature?: Feature | undefined;
|
|
6
|
+
isPriceListCurrentSubscription: boolean;
|
|
7
|
+
isSelected: boolean;
|
|
8
|
+
onClick: (priceList: PriceList) => void;
|
|
9
|
+
plan: Plan;
|
|
10
|
+
priceList: PriceList;
|
|
11
|
+
subscriptionPlan?: Subscription | undefined;
|
|
12
|
+
trialRemainingDays?: number | undefined;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default PriceListCardDesktop;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Plan, PlanChangeOptions, PriceList, Product, Subscription } from "@bunnyapp/common";
|
|
2
|
+
import { Dispatch, SetStateAction } from "react";
|
|
3
|
+
type PriceListGridDesktopProps = {
|
|
4
|
+
availablePriceLists: PriceList[];
|
|
5
|
+
onChangePriceList: (selectedPriceList: PriceList) => void;
|
|
6
|
+
planChangeOptions?: PlanChangeOptions;
|
|
7
|
+
priceListStart: number;
|
|
8
|
+
selectedPlan?: Plan;
|
|
9
|
+
selectedProduct?: Product;
|
|
10
|
+
setPriceListStart: Dispatch<SetStateAction<number>>;
|
|
11
|
+
subscriptions: Subscription[];
|
|
12
|
+
trialRemainingDays: number;
|
|
13
|
+
};
|
|
14
|
+
declare const PriceListGridDesktop: ({ availablePriceLists, onChangePriceList, planChangeOptions, priceListStart, selectedPlan, selectedProduct, setPriceListStart, subscriptions, trialRemainingDays, }: PriceListGridDesktopProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default PriceListGridDesktop;
|
package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/consts.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PLANS_TO_DISPLAY = 3;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Feature, Plan, PriceList, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListCardMobile: ({ description, disableOnClick, feature, isPriceListCurrentSubscription, isSelected, onClick, plan, priceList, subscriptionPlan, trialRemainingDays, }: {
|
|
3
|
+
description: string;
|
|
4
|
+
disableOnClick: boolean;
|
|
5
|
+
feature?: Feature | undefined;
|
|
6
|
+
isPriceListCurrentSubscription: boolean;
|
|
7
|
+
isSelected: boolean;
|
|
8
|
+
onClick: (priceList: PriceList) => void;
|
|
9
|
+
plan: Plan;
|
|
10
|
+
priceList: PriceList;
|
|
11
|
+
subscriptionPlan?: Subscription | undefined;
|
|
12
|
+
trialRemainingDays?: number | undefined;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default PriceListCardMobile;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Plan, PlanChangeOptions, PriceList, Product, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListGridMobile: ({ availablePriceLists, onChangePriceList, planChangeOptions, selectedPlan, selectedProduct, subscriptions, trialRemainingDays, }: {
|
|
3
|
+
availablePriceLists: PriceList[];
|
|
4
|
+
onChangePriceList: (selectedPriceList: PriceList) => void;
|
|
5
|
+
planChangeOptions?: PlanChangeOptions | undefined;
|
|
6
|
+
selectedPlan?: Plan | undefined;
|
|
7
|
+
selectedProduct?: Product | undefined;
|
|
8
|
+
subscriptions?: Subscription[] | undefined;
|
|
9
|
+
trialRemainingDays?: number | undefined;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default PriceListGridMobile;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Plan, PlanChangeOptions, PriceList } from "@bunnyapp/common";
|
|
2
|
+
export declare const getAvailablePlansAndPriceLists: ({ availablePriceLists, planChangeOptions, priceListStart, }: {
|
|
3
|
+
availablePriceLists: PriceList[];
|
|
4
|
+
planChangeOptions?: PlanChangeOptions | undefined;
|
|
5
|
+
priceListStart: number;
|
|
6
|
+
}) => {
|
|
7
|
+
availablePlansArray: Plan[];
|
|
8
|
+
displayPriceLists: PriceList[];
|
|
9
|
+
};
|
|
10
|
+
export declare const everythingInPlusString: ({ plan }: {
|
|
11
|
+
plan: Plan;
|
|
12
|
+
}) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Plan, PriceList, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListCard: ({ isSelected, onClick, plan, priceList, subscriptions, trialRemainingDays, }: {
|
|
3
|
+
isSelected: boolean;
|
|
4
|
+
onClick: (priceList: PriceList) => void;
|
|
5
|
+
plan: Plan;
|
|
6
|
+
priceList: PriceList;
|
|
7
|
+
subscriptions?: Subscription[] | undefined;
|
|
8
|
+
trialRemainingDays?: number | undefined;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export default PriceListCard;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plan, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListCardButton: ({ disableOnClick, isPriceListCurrentSubscription, isSelected, plan, subscriptionPlan, }: {
|
|
3
|
+
disableOnClick: boolean;
|
|
4
|
+
isPriceListCurrentSubscription: boolean;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
plan: Plan;
|
|
7
|
+
subscriptionPlan?: Subscription | undefined;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default PriceListCardButton;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Feature, Plan, PriceList } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListCardPriceDescription: ({ feature, plan, priceList, }: {
|
|
3
|
+
feature?: Feature | undefined;
|
|
4
|
+
plan: Plan;
|
|
5
|
+
priceList: PriceList;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export default PriceListCardPriceDescription;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Plan } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListCardTitle: ({ plan, isPriceListCurrentSubscription, trialRemainingDays, }: {
|
|
3
|
+
plan: Plan;
|
|
4
|
+
isPriceListCurrentSubscription: boolean;
|
|
5
|
+
trialRemainingDays?: number | undefined;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default PriceListCardTitle;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Plan, PriceList, PriceListCharge, Subscription } from "@bunnyapp/common";
|
|
2
|
+
export declare const createPlanDescription: (plan: Plan) => string;
|
|
3
|
+
export declare const getActivePlanPriceData: (plan?: Plan, selectedPriceList?: PriceList) => {
|
|
4
|
+
activeCharge: PriceListCharge | undefined;
|
|
5
|
+
} | undefined;
|
|
6
|
+
export declare const isPriceListDisabled: ({ priceList, subscriptions, upgradingSubscription, }: {
|
|
7
|
+
priceList: PriceList;
|
|
8
|
+
subscriptions?: Subscription[] | undefined;
|
|
9
|
+
upgradingSubscription: Subscription | undefined;
|
|
10
|
+
}) => boolean;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const useCancelSubscription: () => (subscriptionIds: string[], token: string, apiHost: string) => Promise<any>;
|
|
2
|
+
export declare const useSubscriptionTrialConvert: (handlePortalErrors: (errors: any) => void, apiHost: string) => (subscriptionId: string, token: string, paymentId?: string) => Promise<any>;
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import { Subscription } from "@bunnyapp/common";
|
|
3
|
-
import "../../styles/index.less";
|
|
1
|
+
import { ReactNode } from "react";
|
|
4
2
|
export type EditingQuoteDataType = {
|
|
5
3
|
id: string;
|
|
6
4
|
isTrial: boolean;
|
|
7
5
|
};
|
|
8
|
-
declare const
|
|
9
|
-
|
|
10
|
-
companyName: string;
|
|
6
|
+
declare const SubscriptionsWrapper: ({ handlePortalErrors, entityId, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, hideTitle, }: {
|
|
7
|
+
handlePortalErrors: (errors: any) => void;
|
|
11
8
|
entityId: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
companyName: string;
|
|
10
|
+
isInPreviewMode?: boolean | undefined;
|
|
11
|
+
productId?: string | undefined;
|
|
12
|
+
className?: string | undefined;
|
|
16
13
|
styles?: {
|
|
17
14
|
gap?: number | undefined;
|
|
18
|
-
shadow?: "none" | "
|
|
15
|
+
shadow?: "none" | "sm" | "md" | "lg" | undefined;
|
|
19
16
|
subscriptionProductNameStyle?: import("react").CSSProperties | undefined;
|
|
20
17
|
} | undefined;
|
|
21
18
|
noSubscriptionsComponent?: React.ReactNode;
|
|
19
|
+
hideTitle?: boolean | undefined;
|
|
22
20
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export default
|
|
21
|
+
export default SubscriptionsWrapper;
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { QuotePreviewData, Subscription } from "@bunnyapp/common";
|
|
2
3
|
export type SubscriptionsContextValues = {
|
|
3
4
|
gap?: number;
|
|
4
5
|
shadow?: "none" | "sm" | "md" | "lg";
|
|
5
6
|
showTitle?: boolean;
|
|
7
|
+
className?: string;
|
|
6
8
|
subscriptionProductNameStyle?: React.CSSProperties;
|
|
9
|
+
productId?: string;
|
|
10
|
+
entityId: string;
|
|
11
|
+
isInPreviewMode: boolean;
|
|
12
|
+
upgradingSubscription?: Subscription;
|
|
13
|
+
setUpgradingSubscription: React.Dispatch<React.SetStateAction<Subscription | undefined>>;
|
|
14
|
+
updatingChargeQuantityId?: string;
|
|
15
|
+
setUpdatingChargeQuantityId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
16
|
+
quotePreviewData?: QuotePreviewData;
|
|
17
|
+
setQuotePreviewData: React.Dispatch<React.SetStateAction<QuotePreviewData | undefined>>;
|
|
18
|
+
subscriptionUpgradeId: string | null;
|
|
19
|
+
setSubscriptionUpgradeId: React.Dispatch<React.SetStateAction<string | null>>;
|
|
7
20
|
};
|
|
8
21
|
export declare const SubscriptionsContext: import("react").Context<SubscriptionsContextValues>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Subscription } from "@bunnyapp/common";
|
|
2
|
+
import "../../styles/index.less";
|
|
3
|
+
export type EditingQuoteDataType = {
|
|
4
|
+
id: string;
|
|
5
|
+
isTrial: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const SubscriptionsListContainer: ({ companyName, hideExpired, onCancelSubscriptionClick, onChangePlanClick, noSubscriptionsComponent, subscriptions, subscriptionsAreLoading, }: {
|
|
8
|
+
companyName: string;
|
|
9
|
+
hideExpired?: boolean | undefined;
|
|
10
|
+
onCancelSubscriptionClick?: ((subscription: Subscription) => void) | undefined;
|
|
11
|
+
onChangePlanClick?: ((subscription: Subscription) => void) | undefined;
|
|
12
|
+
noSubscriptionsComponent?: React.ReactNode;
|
|
13
|
+
subscriptions: Subscription[];
|
|
14
|
+
subscriptionsAreLoading: boolean;
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default SubscriptionsListContainer;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Quote, Subscription, SubscriptionCharge } from "@bunnyapp/common";
|
|
2
|
+
declare const QuantityChangeGridRow: ({ chargeIndex, editingQuote, subscriptions, subscriptionIndex, setEditingQuoteData, subscription, subscriptionCharge, }: {
|
|
3
|
+
chargeIndex: number;
|
|
4
|
+
editingQuote?: Quote | undefined;
|
|
5
|
+
subscriptions: Subscription[];
|
|
6
|
+
subscriptionIndex: number;
|
|
7
|
+
setEditingQuoteData: (value: any) => void;
|
|
8
|
+
subscription: Subscription;
|
|
9
|
+
subscriptionCharge: SubscriptionCharge;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export default QuantityChangeGridRow;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Quote, Subscription, SubscriptionCharge } from "@bunnyapp/common";
|
|
2
|
+
export type EditingSubscriptionType = {
|
|
3
|
+
chargeId: string;
|
|
4
|
+
chargeIndex: number;
|
|
5
|
+
quantity: number;
|
|
6
|
+
subscription: Subscription;
|
|
7
|
+
subscriptionIndex: number;
|
|
8
|
+
};
|
|
9
|
+
declare const QuantityInput: ({ charge, chargeIndex, editingQuote, setEditingQuoteData, subscription, subscriptionIndex, subscriptions, }: {
|
|
10
|
+
charge: SubscriptionCharge;
|
|
11
|
+
chargeIndex: number;
|
|
12
|
+
editingQuote?: Quote | undefined;
|
|
13
|
+
setEditingQuoteData: (editingQuoteData: {
|
|
14
|
+
id: string;
|
|
15
|
+
isTrial: boolean;
|
|
16
|
+
} | undefined) => void;
|
|
17
|
+
subscription: Subscription;
|
|
18
|
+
subscriptionIndex: number;
|
|
19
|
+
subscriptions: Subscription[];
|
|
20
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default QuantityInput;
|
package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Quote } from "@bunnyapp/common";
|
|
2
|
+
import { EditingQuoteDataType } from "../SubscriptionsListContainer";
|
|
3
|
+
declare const QuoteChangeSummarySection: ({ editingQuote, editingQuoteData, openCheckout, setEditingQuoteData, }: {
|
|
4
|
+
editingQuote?: Quote | undefined;
|
|
5
|
+
editingQuoteData?: EditingQuoteDataType | undefined;
|
|
6
|
+
openCheckout: () => void;
|
|
7
|
+
setEditingQuoteData: (editingQuoteData: EditingQuoteDataType | undefined) => void;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default QuoteChangeSummarySection;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Quote, Subscription } from "@bunnyapp/common";
|
|
2
|
+
import { EditingQuoteDataType } from "../../SubscriptionsListContainer";
|
|
3
|
+
export declare const QUANTITY_CHANGE_HEADER_TITLE = "Update unit quantity";
|
|
4
|
+
export declare const QUANTITY_CHANGE_HEADER_DESCRIPTION = "Adjust quantities below. The change will take effect immediately after checkout has been completed.";
|
|
5
|
+
declare const QuantityChangeDrawerDesktop: ({ editingQuote, editingQuoteData, onClose, open, openCheckout, setEditingQuoteData, subscriptions, }: {
|
|
6
|
+
editingQuote?: Quote | undefined;
|
|
7
|
+
editingQuoteData?: EditingQuoteDataType | undefined;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
open: boolean;
|
|
10
|
+
openCheckout: () => void;
|
|
11
|
+
setEditingQuoteData: (value: EditingQuoteDataType | undefined) => void;
|
|
12
|
+
subscriptions: Subscription[];
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
export default QuantityChangeDrawerDesktop;
|
|
@@ -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,9 @@
|
|
|
1
|
+
import { Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const SubscriptionsNavigation: ({ expiredSwitchVisible, hideExpired, setHideExpired, setQuantityDrawerOpen, subscriptions, }: {
|
|
3
|
+
expiredSwitchVisible: boolean;
|
|
4
|
+
hideExpired: boolean;
|
|
5
|
+
setHideExpired: (value: boolean) => void;
|
|
6
|
+
setQuantityDrawerOpen: (value: boolean) => void;
|
|
7
|
+
subscriptions: Subscription[];
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default SubscriptionsNavigation;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { Plan, Product, Quote, Subscription, SubscriptionCharge } from "@bunnyapp/common";
|
|
2
|
+
import { EditingSubscriptionType } from "../quantityChangeDrawer/QuantityInput";
|
|
2
3
|
export declare const canShowQuantitiesInput: (charge: SubscriptionCharge, subscription: Subscription) => boolean | undefined;
|
|
3
|
-
export declare const createQuoteParams: (quote: Quote, subscriptionQuantity: number, editedSubscription?:
|
|
4
|
+
export declare const createQuoteParams: (quote: Quote, subscriptionQuantity: number, editedSubscription?: EditingSubscriptionType) => {
|
|
4
5
|
charges: {
|
|
5
6
|
id: string;
|
|
6
7
|
quantity: number;
|
|
7
8
|
}[];
|
|
8
9
|
quoteChange: import("@bunnyapp/common").QuoteChange | undefined;
|
|
9
10
|
};
|
|
11
|
+
export declare const canShowChangeQuantities: ({ subscriptions, }: {
|
|
12
|
+
subscriptions: Subscription[];
|
|
13
|
+
}) => boolean;
|
|
10
14
|
export declare const isSubscriptionNotActive: (subscription: Subscription) => boolean;
|
|
11
15
|
export declare const productPlanName: ({ plan, product, }: {
|
|
12
16
|
plan: Plan;
|
|
13
17
|
product: Product;
|
|
14
18
|
}) => string;
|
|
15
19
|
export declare const canShowSubscriptionActions: (subscription: Subscription) => boolean;
|
|
16
|
-
export declare const canShowCanceledActions: (subscription: Subscription) => boolean;
|
|
@@ -2,7 +2,6 @@ export { Invoice } from "./Invoice";
|
|
|
2
2
|
export { Quote } from "./Quote";
|
|
3
3
|
export { Quotes } from "./Quotes";
|
|
4
4
|
export { PaymentMethod, PaymentForm } from "./PaymentForm";
|
|
5
|
-
export * from "./Checkout";
|
|
6
5
|
export { Signup } from "./Signup";
|
|
7
6
|
export { default as BunnyProvider } from "./BunnyProvider";
|
|
8
7
|
export { default as Transactions } from "./Transactions";
|