@bunnyapp/components 1.8.0-beta.25 → 1.8.0-beta.27
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 +151 -115
- package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Collapsible.d.ts +7 -0
- package/dist/cjs/types/src/components/PaymentForm/constants.d.ts +1 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +7 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/BillingPeriodDescription.d.ts +1 -0
- package/dist/esm/index.js +152 -116
- package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Collapsible.d.ts +7 -0
- package/dist/esm/types/src/components/PaymentForm/constants.d.ts +1 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +7 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/BillingPeriodDescription.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ declare function PaymentFormRoot({ currencyId: accountCurrencyId, invoice: maske
|
|
|
37
37
|
accountId?: string;
|
|
38
38
|
customCheckoutFunction?: (pluginId: string, paymentMethodId: string) => Promise<any>;
|
|
39
39
|
children?: ReactNode | ((state: PaymentFormRenderState) => ReactNode);
|
|
40
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
41
41
|
type PaymentFormProps = ComponentProps<typeof PaymentFormRoot>;
|
|
42
42
|
export type PaymentFormRenderState = {
|
|
43
43
|
hasPaymentMethods: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PAYMENT_FORM_GAP = "bunny-gap-2";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import PriceList from '@/types/PriceList';
|
|
2
2
|
import Product from '@/types/Product';
|
|
3
|
-
declare const EverythingPlanFeatures: ({ displayPriceLists, selectedProduct, plansToDisplay, hideBorder, }: {
|
|
3
|
+
declare const EverythingPlanFeatures: ({ displayPriceLists, selectedProduct, plansToDisplay, hideBorder, className, }: {
|
|
4
4
|
displayPriceLists: PriceList[];
|
|
5
5
|
plansToDisplay: number;
|
|
6
6
|
selectedProduct?: Product;
|
|
7
7
|
hideBorder?: boolean;
|
|
8
|
+
className?: string;
|
|
8
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default EverythingPlanFeatures;
|
package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import PriceList from '@/types/PriceList';
|
|
2
|
+
import Feature from '@/types/Feature';
|
|
2
3
|
import { PlanFeature } from '@/types/frontendTypes';
|
|
4
|
+
export type FeatureGroup = {
|
|
5
|
+
groupFeature?: Feature;
|
|
6
|
+
features: Feature[];
|
|
7
|
+
};
|
|
8
|
+
export declare const organizeFeaturesIntoGroups: (features: Feature[]) => FeatureGroup[];
|
|
3
9
|
export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
|
|
4
10
|
availablePriceLists: PriceList[];
|
|
5
11
|
}) => {
|
|
@@ -16,7 +22,7 @@ export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
|
|
|
16
22
|
contactUsUrl?: string;
|
|
17
23
|
createdAt: string;
|
|
18
24
|
description?: string;
|
|
19
|
-
features?:
|
|
25
|
+
features?: Feature[];
|
|
20
26
|
id: string;
|
|
21
27
|
internalNotes?: string;
|
|
22
28
|
isAvailableNow?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FragmentOf } from 'gql.tada';
|
|
2
2
|
export declare const BillingPeriodDescription_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
3
|
periodMonths: number | null;
|
|
4
|
+
basePrice: number | null;
|
|
4
5
|
}, {}, {
|
|
5
6
|
fragment: "BillingPeriodDescription_PriceListFragment";
|
|
6
7
|
on: "PriceList";
|
package/dist/index.d.ts
CHANGED
|
@@ -191,7 +191,7 @@ declare function PaymentFormRoot({ currencyId: accountCurrencyId, invoice: maske
|
|
|
191
191
|
accountId?: string;
|
|
192
192
|
customCheckoutFunction?: (pluginId: string, paymentMethodId: string) => Promise<any>;
|
|
193
193
|
children?: ReactNode | ((state: PaymentFormRenderState) => ReactNode);
|
|
194
|
-
}): react_jsx_runtime.JSX.Element;
|
|
194
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
195
195
|
type PaymentFormProps = ComponentProps<typeof PaymentFormRoot>;
|
|
196
196
|
type PaymentFormRenderState = {
|
|
197
197
|
hasPaymentMethods: boolean;
|
package/package.json
CHANGED