@bunnyapp/components 1.0.22 → 1.0.23
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/README.md +8 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/playground/billingdetails/index.d.ts +1 -0
- package/dist/cjs/playground/transactions/index.d.ts +1 -0
- package/dist/cjs/src/components/Quote/Quote.stories.d.ts +20 -20
- package/dist/cjs/src/components/Subscriptions/Subscriptions.d.ts +1 -1
- package/dist/esm/playground/billingdetails/index.d.ts +1 -0
- package/dist/esm/playground/transactions/index.d.ts +1 -0
- package/dist/esm/src/components/Quote/Quote.stories.d.ts +20 -20
- package/dist/esm/src/components/Subscriptions/Subscriptions.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,3 +80,11 @@ function App() {
|
|
|
80
80
|
- `token`: Token that allows access to the Bunny API. Generate this using `portalSessionCreate` from [docs](https://docs.bunny.com/developer/api-reference/mutations/portalsessioncreate)
|
|
81
81
|
- `subdomain`: The subdomain the components will make requests to. e.g. `https://acme.bunny.com`
|
|
82
82
|
- `window`: The window to use for the BunnyProvider. We use the window for handling payment objects.
|
|
83
|
+
|
|
84
|
+
## Development
|
|
85
|
+
|
|
86
|
+
To run the development server, run `npm run dev`.
|
|
87
|
+
|
|
88
|
+
### Storybook stories
|
|
89
|
+
|
|
90
|
+
To view the storybook stories, run `npm run storybook`.
|
package/dist/cjs/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var common = require('@bunnyapp/common');
|
|
|
11
11
|
var reactQuery = require('@tanstack/react-query');
|
|
12
12
|
var theme = require('antd/lib/theme');
|
|
13
13
|
var recoil = require('recoil');
|
|
14
|
-
var request =
|
|
14
|
+
var request = import('graphql-request');
|
|
15
15
|
var reactHelmetAsync = require('react-helmet-async');
|
|
16
16
|
var reactStripeJs = require('@stripe/react-stripe-js');
|
|
17
17
|
var pure = require('@stripe/stripe-js/pure');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -16,13 +16,13 @@ export declare const Default: import("@storybook/csf").StoryAnnotations<import("
|
|
|
16
16
|
className?: string | undefined;
|
|
17
17
|
hideDownloadButton?: boolean | undefined;
|
|
18
18
|
}, {
|
|
19
|
-
entityId?: string | undefined;
|
|
20
|
-
className?: string | undefined;
|
|
21
|
-
id?: string | undefined;
|
|
22
|
-
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
23
19
|
backButtonName?: string | undefined;
|
|
24
20
|
onBackButtonClick?: (() => void) | undefined;
|
|
21
|
+
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
25
22
|
hideDownloadButton?: boolean | undefined;
|
|
23
|
+
id?: string | undefined;
|
|
24
|
+
className?: string | undefined;
|
|
25
|
+
entityId?: string | undefined;
|
|
26
26
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
27
27
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
28
28
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
@@ -39,13 +39,13 @@ export declare const NoShadow: import("@storybook/csf").StoryAnnotations<import(
|
|
|
39
39
|
className?: string | undefined;
|
|
40
40
|
hideDownloadButton?: boolean | undefined;
|
|
41
41
|
}, {
|
|
42
|
-
entityId?: string | undefined;
|
|
43
|
-
className?: string | undefined;
|
|
44
|
-
id?: string | undefined;
|
|
45
|
-
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
46
42
|
backButtonName?: string | undefined;
|
|
47
43
|
onBackButtonClick?: (() => void) | undefined;
|
|
44
|
+
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
48
45
|
hideDownloadButton?: boolean | undefined;
|
|
46
|
+
id?: string | undefined;
|
|
47
|
+
className?: string | undefined;
|
|
48
|
+
entityId?: string | undefined;
|
|
49
49
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
50
50
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
51
51
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
@@ -62,13 +62,13 @@ export declare const Mobile: import("@storybook/csf").StoryAnnotations<import("@
|
|
|
62
62
|
className?: string | undefined;
|
|
63
63
|
hideDownloadButton?: boolean | undefined;
|
|
64
64
|
}, {
|
|
65
|
-
entityId?: string | undefined;
|
|
66
|
-
className?: string | undefined;
|
|
67
|
-
id?: string | undefined;
|
|
68
|
-
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
69
65
|
backButtonName?: string | undefined;
|
|
70
66
|
onBackButtonClick?: (() => void) | undefined;
|
|
67
|
+
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
71
68
|
hideDownloadButton?: boolean | undefined;
|
|
69
|
+
id?: string | undefined;
|
|
70
|
+
className?: string | undefined;
|
|
71
|
+
entityId?: string | undefined;
|
|
72
72
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
73
73
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
74
74
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
@@ -85,13 +85,13 @@ export declare const CustomClassName: import("@storybook/csf").StoryAnnotations<
|
|
|
85
85
|
className?: string | undefined;
|
|
86
86
|
hideDownloadButton?: boolean | undefined;
|
|
87
87
|
}, {
|
|
88
|
-
entityId?: string | undefined;
|
|
89
|
-
className?: string | undefined;
|
|
90
|
-
id?: string | undefined;
|
|
91
|
-
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
92
88
|
backButtonName?: string | undefined;
|
|
93
89
|
onBackButtonClick?: (() => void) | undefined;
|
|
90
|
+
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
94
91
|
hideDownloadButton?: boolean | undefined;
|
|
92
|
+
id?: string | undefined;
|
|
93
|
+
className?: string | undefined;
|
|
94
|
+
entityId?: string | undefined;
|
|
95
95
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
96
96
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
97
97
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
@@ -111,13 +111,13 @@ export declare const DarkMode: import("@storybook/csf").StoryAnnotations<import(
|
|
|
111
111
|
className?: string | undefined;
|
|
112
112
|
hideDownloadButton?: boolean | undefined;
|
|
113
113
|
}, {
|
|
114
|
-
entityId?: string | undefined;
|
|
115
|
-
className?: string | undefined;
|
|
116
|
-
id?: string | undefined;
|
|
117
|
-
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
118
114
|
backButtonName?: string | undefined;
|
|
119
115
|
onBackButtonClick?: (() => void) | undefined;
|
|
116
|
+
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
120
117
|
hideDownloadButton?: boolean | undefined;
|
|
118
|
+
id?: string | undefined;
|
|
119
|
+
className?: string | undefined;
|
|
120
|
+
entityId?: string | undefined;
|
|
121
121
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
122
122
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
123
123
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
@@ -14,7 +14,7 @@ declare const Subscriptions: ({ className, companyName, entityId, hideExpired, o
|
|
|
14
14
|
onSubscriptionsLoaded?: ((subscriptions: Subscription[]) => void) | undefined;
|
|
15
15
|
styles?: {
|
|
16
16
|
gap?: number | undefined;
|
|
17
|
-
shadow?: "none" | "
|
|
17
|
+
shadow?: "none" | "lg" | "md" | "sm" | undefined;
|
|
18
18
|
} | undefined;
|
|
19
19
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export default Subscriptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -16,13 +16,13 @@ export declare const Default: import("@storybook/csf").StoryAnnotations<import("
|
|
|
16
16
|
className?: string | undefined;
|
|
17
17
|
hideDownloadButton?: boolean | undefined;
|
|
18
18
|
}, {
|
|
19
|
-
entityId?: string | undefined;
|
|
20
|
-
className?: string | undefined;
|
|
21
|
-
id?: string | undefined;
|
|
22
|
-
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
23
19
|
backButtonName?: string | undefined;
|
|
24
20
|
onBackButtonClick?: (() => void) | undefined;
|
|
21
|
+
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
25
22
|
hideDownloadButton?: boolean | undefined;
|
|
23
|
+
id?: string | undefined;
|
|
24
|
+
className?: string | undefined;
|
|
25
|
+
entityId?: string | undefined;
|
|
26
26
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
27
27
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
28
28
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
@@ -39,13 +39,13 @@ export declare const NoShadow: import("@storybook/csf").StoryAnnotations<import(
|
|
|
39
39
|
className?: string | undefined;
|
|
40
40
|
hideDownloadButton?: boolean | undefined;
|
|
41
41
|
}, {
|
|
42
|
-
entityId?: string | undefined;
|
|
43
|
-
className?: string | undefined;
|
|
44
|
-
id?: string | undefined;
|
|
45
|
-
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
46
42
|
backButtonName?: string | undefined;
|
|
47
43
|
onBackButtonClick?: (() => void) | undefined;
|
|
44
|
+
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
48
45
|
hideDownloadButton?: boolean | undefined;
|
|
46
|
+
id?: string | undefined;
|
|
47
|
+
className?: string | undefined;
|
|
48
|
+
entityId?: string | undefined;
|
|
49
49
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
50
50
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
51
51
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
@@ -62,13 +62,13 @@ export declare const Mobile: import("@storybook/csf").StoryAnnotations<import("@
|
|
|
62
62
|
className?: string | undefined;
|
|
63
63
|
hideDownloadButton?: boolean | undefined;
|
|
64
64
|
}, {
|
|
65
|
-
entityId?: string | undefined;
|
|
66
|
-
className?: string | undefined;
|
|
67
|
-
id?: string | undefined;
|
|
68
|
-
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
69
65
|
backButtonName?: string | undefined;
|
|
70
66
|
onBackButtonClick?: (() => void) | undefined;
|
|
67
|
+
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
71
68
|
hideDownloadButton?: boolean | undefined;
|
|
69
|
+
id?: string | undefined;
|
|
70
|
+
className?: string | undefined;
|
|
71
|
+
entityId?: string | undefined;
|
|
72
72
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
73
73
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
74
74
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
@@ -85,13 +85,13 @@ export declare const CustomClassName: import("@storybook/csf").StoryAnnotations<
|
|
|
85
85
|
className?: string | undefined;
|
|
86
86
|
hideDownloadButton?: boolean | undefined;
|
|
87
87
|
}, {
|
|
88
|
-
entityId?: string | undefined;
|
|
89
|
-
className?: string | undefined;
|
|
90
|
-
id?: string | undefined;
|
|
91
|
-
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
92
88
|
backButtonName?: string | undefined;
|
|
93
89
|
onBackButtonClick?: (() => void) | undefined;
|
|
90
|
+
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
94
91
|
hideDownloadButton?: boolean | undefined;
|
|
92
|
+
id?: string | undefined;
|
|
93
|
+
className?: string | undefined;
|
|
94
|
+
entityId?: string | undefined;
|
|
95
95
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
96
96
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
97
97
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
@@ -111,13 +111,13 @@ export declare const DarkMode: import("@storybook/csf").StoryAnnotations<import(
|
|
|
111
111
|
className?: string | undefined;
|
|
112
112
|
hideDownloadButton?: boolean | undefined;
|
|
113
113
|
}, {
|
|
114
|
-
entityId?: string | undefined;
|
|
115
|
-
className?: string | undefined;
|
|
116
|
-
id?: string | undefined;
|
|
117
|
-
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
118
114
|
backButtonName?: string | undefined;
|
|
119
115
|
onBackButtonClick?: (() => void) | undefined;
|
|
116
|
+
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
120
117
|
hideDownloadButton?: boolean | undefined;
|
|
118
|
+
id?: string | undefined;
|
|
119
|
+
className?: string | undefined;
|
|
120
|
+
entityId?: string | undefined;
|
|
121
121
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
122
122
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
123
123
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
@@ -14,7 +14,7 @@ declare const Subscriptions: ({ className, companyName, entityId, hideExpired, o
|
|
|
14
14
|
onSubscriptionsLoaded?: ((subscriptions: Subscription[]) => void) | undefined;
|
|
15
15
|
styles?: {
|
|
16
16
|
gap?: number | undefined;
|
|
17
|
-
shadow?: "none" | "
|
|
17
|
+
shadow?: "none" | "lg" | "md" | "sm" | undefined;
|
|
18
18
|
} | undefined;
|
|
19
19
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export default Subscriptions;
|
package/dist/index.d.ts
CHANGED
|
@@ -188,7 +188,7 @@ declare const Subscriptions: ({ className, companyName, entityId, hideExpired, o
|
|
|
188
188
|
onSubscriptionsLoaded?: ((subscriptions: Subscription[]) => void) | undefined;
|
|
189
189
|
styles?: {
|
|
190
190
|
gap?: number | undefined;
|
|
191
|
-
shadow?: "none" | "
|
|
191
|
+
shadow?: "none" | "lg" | "md" | "sm" | undefined;
|
|
192
192
|
} | undefined;
|
|
193
193
|
}) => react_jsx_runtime.JSX.Element;
|
|
194
194
|
|
package/package.json
CHANGED