@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.
@@ -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,7 @@
1
+ import { ReactNode } from 'react';
2
+ type CollapsibleProps = {
3
+ open: boolean;
4
+ children: ReactNode;
5
+ };
6
+ export declare function Collapsible({ open, children }: CollapsibleProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -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;
@@ -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?: import("../../../../../types/Feature").default[];
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.8.0-beta.25",
3
+ "version": "1.8.0-beta.27",
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",