@bunnyapp/components 1.0.6 → 1.0.7

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.
@@ -0,0 +1 @@
1
+ export { default as Quotes } from "./Quotes";
@@ -1,5 +1,6 @@
1
1
  export { Invoice } from "./Invoice";
2
2
  export { Quote } from "./Quote";
3
+ export { Quotes } from "./Quotes";
3
4
  export { PaymentMethod } from "./PaymentForm/PaymentMethod";
4
5
  export * from "./Checkout";
5
6
  export { Signup } from "./Signup";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { FormattedInvoice, Quote as Quote$1, PriceList, PaymentMethod as PaymentMethod$1, FrontendTransaction, TransactionKind } from '@bunnyapp/common';
3
+ import { FrontendTransaction, FormattedInvoice, Quote as Quote$1, PriceList, PaymentMethod as PaymentMethod$1, TransactionKind } from '@bunnyapp/common';
4
4
  import react from 'react';
5
5
  import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
6
6
  import { GraphQLClient } from 'graphql-request';
@@ -26,6 +26,35 @@ declare function Quote({ id }: {
26
26
  id?: string;
27
27
  }): react_jsx_runtime.JSX.Element;
28
28
 
29
+ declare function Quotes({ filter, quoteComponent, showSearchBar, showTitle, columns, className, shadow, searchBarClassName, useModal, onQuoteClick, suppressQuoteDisplay, style, noQuotesMessage, }: {
30
+ /** A custom component to render instead of the default invoice component */
31
+ quoteComponent?: React.ReactNode;
32
+ /** Whether to show the search bar */
33
+ showSearchBar?: boolean;
34
+ /** Whether to show the title */
35
+ showTitle?: boolean;
36
+ /** The columns to display in the transactions list */
37
+ columns?: ("date-and-title" | "state" | "amount" | "download" | "actions")[];
38
+ /** A custom class name to apply to the component */
39
+ className?: string;
40
+ /** Whether to use a modal for the invoice drawer */
41
+ useModal?: boolean;
42
+ /** Whether to show a shadow around the transactions list */
43
+ shadow?: "none" | "sm" | "md" | "lg" | "xl";
44
+ /** A custom class name to apply to the search bar */
45
+ searchBarClassName?: string;
46
+ /** A function to call when a quote is clicked */
47
+ onQuoteClick?: (quote: FrontendTransaction.Transaction) => void;
48
+ /** Whether to hide the display showing the quote */
49
+ suppressQuoteDisplay?: boolean;
50
+ /** A custom style to apply to the component */
51
+ style?: React.CSSProperties;
52
+ /** A filter to apply to the quotes. Docs on filter: https://docs.bunny.com/developer/getting-started/using-filters-in-queries */
53
+ filter?: string;
54
+ /** Message to display when there are no quotes */
55
+ noQuotesMessage?: string;
56
+ }): react_jsx_runtime.JSX.Element;
57
+
29
58
  declare function PaymentMethod({ footer, processPublicUrl, }: {
30
59
  footer?: React.ReactNode;
31
60
  processPublicUrl: string;
@@ -106,4 +135,4 @@ declare const Subscriptions: ({ shadow, gap, showTitle, }: {
106
135
 
107
136
  declare const usePaymentMethod: (graphQLClient: GraphQLClient) => _tanstack_react_query_build_legacy_types.UseQueryResult<any, Error>;
108
137
 
109
- export { BunnyProvider, Checkout, Invoice, PaymentMethod, Quote, Signup, Subscriptions, Transactions, getQuoteAmountDue, usePaymentMethod };
138
+ export { BunnyProvider, Checkout, Invoice, PaymentMethod, Quote, Quotes, Signup, Subscriptions, Transactions, getQuoteAmountDue, usePaymentMethod };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
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",