@bunnyapp/components 1.0.20 → 1.0.21
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 +9 -5
- package/dist/cjs/src/components/Card.d.ts +1 -0
- package/dist/cjs/src/components/Quote/Quote.stories.d.ts +16 -15
- package/dist/cjs/src/components/Subscriptions/Subscriptions.d.ts +1 -1
- package/dist/cjs/src/hooks/quotes/useSendAcceptQuote.d.ts +1 -0
- package/dist/esm/index.js +8 -4
- package/dist/esm/src/components/Card.d.ts +1 -0
- package/dist/esm/src/components/Quote/Quote.stories.d.ts +16 -15
- package/dist/esm/src/components/Subscriptions/Subscriptions.d.ts +1 -1
- package/dist/esm/src/hooks/quotes/useSendAcceptQuote.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/src/components/PageHeaderWithActions.d.ts +0 -7
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +0 -5
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/HideExpiredToggle.d.ts +0 -7
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +0 -8
- package/dist/cjs/src/graphql/queries/getQuote.d.ts +0 -7
- package/dist/esm/src/components/PageHeaderWithActions.d.ts +0 -7
- package/dist/esm/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +0 -5
- package/dist/esm/src/components/Subscriptions/subscriptionsList/HideExpiredToggle.d.ts +0 -7
- package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +0 -8
- package/dist/esm/src/graphql/queries/getQuote.d.ts +0 -7
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');
|
|
@@ -4695,9 +4695,11 @@ var SubscriptionCardDesktopRow = function (_a) {
|
|
|
4695
4695
|
var isDiscount = charge.kind === common.SubscriptionChargeKind.DISCOUNT;
|
|
4696
4696
|
return (jsxRuntime.jsxs("div", __assign({ className: "contents" }, { children: [(isRampFirstRow || !isRamp) && (jsxRuntime.jsx(SubscriptionsListCell, __assign({ gridColumn: isRamp ? "1/-1" : "1" }, { children: jsxRuntime.jsx("div", __assign({ className: "flex items-center gap-2 ".concat(isDiscount ? "pl-4" : "") }, { children: jsxRuntime.jsx("div", { children: isRampFirstRow || (!isRamp && !dontShowChargeName)
|
|
4697
4697
|
? charge.name
|
|
4698
|
-
: "" }) })) }))), jsxRuntime.jsx(SubscriptionsListCell, __assign({ gridColumn: 2 }, { children: jsxRuntime.jsx("div", { children: chargePeriod }) })), jsxRuntime.jsx(SubscriptionsListCell, __assign({ right: true }, { children: charge.
|
|
4699
|
-
?
|
|
4700
|
-
: charge.
|
|
4698
|
+
: "" }) })) }))), jsxRuntime.jsx(SubscriptionsListCell, __assign({ gridColumn: 2 }, { children: jsxRuntime.jsx("div", { children: chargePeriod }) })), jsxRuntime.jsx(SubscriptionsListCell, __assign({ right: true }, { children: charge.kind === common.SubscriptionChargeKind.DISCOUNT
|
|
4699
|
+
? ""
|
|
4700
|
+
: charge.chargeType === common.ChargeType.USAGE
|
|
4701
|
+
? data && jsxRuntime.jsx(FeatureUsageGraph, { charge: charge, featureUsage: data })
|
|
4702
|
+
: charge.quantity })), jsxRuntime.jsx(SubscriptionsListCell, __assign({ right: true }, { children: jsxRuntime.jsx(SubscriptionChargeUnitPrice, { charge: charge, subscription: subscription }) })), jsxRuntime.jsx(SubscriptionsListCell, __assign({ right: true }, { children: jsxRuntime.jsx(SubscriptionChargeTotal, { charge: charge, subscription: subscription }) }))] })));
|
|
4701
4703
|
};
|
|
4702
4704
|
|
|
4703
4705
|
var Text = antd.Typography.Text;
|
|
@@ -4746,7 +4748,9 @@ var SubscriptionCard = function (_a) {
|
|
|
4746
4748
|
return null;
|
|
4747
4749
|
var isRamp = charge.isRamp;
|
|
4748
4750
|
var chargePeriod = "".concat(common.formatDate(charge.startDate), " - ").concat(common.formatDate(charge.endDate));
|
|
4749
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "contents" }, { children: [((isRamp && chargeIndex === 0) || !isRamp) && (jsxRuntime.jsxs(SubscriptionCardCellMobile, __assign({ className: CHARGE_COLUMNS[0].className, style: { gridColumn: isRamp ? "1/-1" : "1" } }, { children: [jsxRuntime.jsx("span", { children: charge.name }), !isRamp ? " - ".concat(chargePeriod) : ""] }))), isRamp && (jsxRuntime.jsx(SubscriptionCardCellMobile, __assign({ className: CHARGE_COLUMNS[0].className }, { children: "- ".concat(chargePeriod) }))), jsxRuntime.jsx(SubscriptionCardCellMobile, __assign({ className: CHARGE_COLUMNS[1].className }, { children: charge.
|
|
4751
|
+
return (jsxRuntime.jsxs("div", __assign({ className: "contents" }, { children: [((isRamp && chargeIndex === 0) || !isRamp) && (jsxRuntime.jsxs(SubscriptionCardCellMobile, __assign({ className: CHARGE_COLUMNS[0].className, style: { gridColumn: isRamp ? "1/-1" : "1" } }, { children: [jsxRuntime.jsx("span", { children: charge.name }), !isRamp ? " - ".concat(chargePeriod) : ""] }))), isRamp && (jsxRuntime.jsx(SubscriptionCardCellMobile, __assign({ className: CHARGE_COLUMNS[0].className }, { children: "- ".concat(chargePeriod) }))), jsxRuntime.jsx(SubscriptionCardCellMobile, __assign({ className: CHARGE_COLUMNS[1].className }, { children: charge.kind === common.SubscriptionChargeKind.DISCOUNT
|
|
4752
|
+
? ""
|
|
4753
|
+
: charge.quantity })), jsxRuntime.jsx(SubscriptionCardCellMobile, __assign({ className: CHARGE_COLUMNS[2].className }, { children: jsxRuntime.jsx(SubscriptionChargeUnitPrice, { charge: charge, subscription: subscription }) })), jsxRuntime.jsx(SubscriptionCardCellMobile, __assign({ className: CHARGE_COLUMNS[3].className }, { children: jsxRuntime.jsx(SubscriptionChargeTotal, { charge: charge, subscription: subscription }) }))] }), chargeIndex));
|
|
4750
4754
|
})] }))] })) }));
|
|
4751
4755
|
};
|
|
4752
4756
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
3
|
import Quote from "./Quote";
|
|
3
4
|
declare const meta: Meta<typeof Quote>;
|
|
@@ -15,16 +16,16 @@ export declare const Default: import("@storybook/csf").StoryAnnotations<import("
|
|
|
15
16
|
className?: string | undefined;
|
|
16
17
|
hideDownloadButton?: boolean | undefined;
|
|
17
18
|
}, {
|
|
19
|
+
entityId?: string | undefined;
|
|
18
20
|
className?: string | undefined;
|
|
19
21
|
id?: string | undefined;
|
|
20
|
-
entityId?: string | undefined;
|
|
21
22
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
22
|
-
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
23
23
|
backButtonName?: string | undefined;
|
|
24
24
|
onBackButtonClick?: (() => void) | undefined;
|
|
25
|
+
hideDownloadButton?: boolean | undefined;
|
|
26
|
+
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
25
27
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
26
28
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
27
|
-
hideDownloadButton?: boolean | undefined;
|
|
28
29
|
}>;
|
|
29
30
|
export declare const NoShadow: import("@storybook/csf").StoryAnnotations<import("@storybook/react/dist/types-a5624094").R, {
|
|
30
31
|
id?: string | undefined;
|
|
@@ -38,16 +39,16 @@ export declare const NoShadow: import("@storybook/csf").StoryAnnotations<import(
|
|
|
38
39
|
className?: string | undefined;
|
|
39
40
|
hideDownloadButton?: boolean | undefined;
|
|
40
41
|
}, {
|
|
42
|
+
entityId?: string | undefined;
|
|
41
43
|
className?: string | undefined;
|
|
42
44
|
id?: string | undefined;
|
|
43
|
-
entityId?: string | undefined;
|
|
44
45
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
45
|
-
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
46
46
|
backButtonName?: string | undefined;
|
|
47
47
|
onBackButtonClick?: (() => void) | undefined;
|
|
48
|
+
hideDownloadButton?: boolean | undefined;
|
|
49
|
+
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
48
50
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
49
51
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
50
|
-
hideDownloadButton?: boolean | undefined;
|
|
51
52
|
}>;
|
|
52
53
|
export declare const Mobile: import("@storybook/csf").StoryAnnotations<import("@storybook/react/dist/types-a5624094").R, {
|
|
53
54
|
id?: string | undefined;
|
|
@@ -61,16 +62,16 @@ export declare const Mobile: import("@storybook/csf").StoryAnnotations<import("@
|
|
|
61
62
|
className?: string | undefined;
|
|
62
63
|
hideDownloadButton?: boolean | undefined;
|
|
63
64
|
}, {
|
|
65
|
+
entityId?: string | undefined;
|
|
64
66
|
className?: string | undefined;
|
|
65
67
|
id?: string | undefined;
|
|
66
|
-
entityId?: string | undefined;
|
|
67
68
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
68
|
-
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
69
69
|
backButtonName?: string | undefined;
|
|
70
70
|
onBackButtonClick?: (() => void) | undefined;
|
|
71
|
+
hideDownloadButton?: boolean | undefined;
|
|
72
|
+
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
71
73
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
72
74
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
73
|
-
hideDownloadButton?: boolean | undefined;
|
|
74
75
|
}>;
|
|
75
76
|
export declare const CustomClassName: import("@storybook/csf").StoryAnnotations<import("@storybook/react/dist/types-a5624094").R, {
|
|
76
77
|
id?: string | undefined;
|
|
@@ -84,16 +85,16 @@ export declare const CustomClassName: import("@storybook/csf").StoryAnnotations<
|
|
|
84
85
|
className?: string | undefined;
|
|
85
86
|
hideDownloadButton?: boolean | undefined;
|
|
86
87
|
}, {
|
|
88
|
+
entityId?: string | undefined;
|
|
87
89
|
className?: string | undefined;
|
|
88
90
|
id?: string | undefined;
|
|
89
|
-
entityId?: string | undefined;
|
|
90
91
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
91
|
-
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
92
92
|
backButtonName?: string | undefined;
|
|
93
93
|
onBackButtonClick?: (() => void) | undefined;
|
|
94
|
+
hideDownloadButton?: boolean | undefined;
|
|
95
|
+
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
94
96
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
95
97
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
96
|
-
hideDownloadButton?: boolean | undefined;
|
|
97
98
|
}>;
|
|
98
99
|
export declare const HideDownloadButton: Story;
|
|
99
100
|
export declare const AcceptedQuote: Story;
|
|
@@ -110,14 +111,14 @@ export declare const DarkMode: import("@storybook/csf").StoryAnnotations<import(
|
|
|
110
111
|
className?: string | undefined;
|
|
111
112
|
hideDownloadButton?: boolean | undefined;
|
|
112
113
|
}, {
|
|
114
|
+
entityId?: string | undefined;
|
|
113
115
|
className?: string | undefined;
|
|
114
116
|
id?: string | undefined;
|
|
115
|
-
entityId?: string | undefined;
|
|
116
117
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
117
|
-
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
118
118
|
backButtonName?: string | undefined;
|
|
119
119
|
onBackButtonClick?: (() => void) | undefined;
|
|
120
|
+
hideDownloadButton?: boolean | undefined;
|
|
121
|
+
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
120
122
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
121
123
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
122
|
-
hideDownloadButton?: boolean | undefined;
|
|
123
124
|
}>;
|
|
@@ -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/esm/index.js
CHANGED
|
@@ -4666,9 +4666,11 @@ var SubscriptionCardDesktopRow = function (_a) {
|
|
|
4666
4666
|
var isDiscount = charge.kind === SubscriptionChargeKind.DISCOUNT;
|
|
4667
4667
|
return (jsxs("div", __assign({ className: "contents" }, { children: [(isRampFirstRow || !isRamp) && (jsx(SubscriptionsListCell, __assign({ gridColumn: isRamp ? "1/-1" : "1" }, { children: jsx("div", __assign({ className: "flex items-center gap-2 ".concat(isDiscount ? "pl-4" : "") }, { children: jsx("div", { children: isRampFirstRow || (!isRamp && !dontShowChargeName)
|
|
4668
4668
|
? charge.name
|
|
4669
|
-
: "" }) })) }))), jsx(SubscriptionsListCell, __assign({ gridColumn: 2 }, { children: jsx("div", { children: chargePeriod }) })), jsx(SubscriptionsListCell, __assign({ right: true }, { children: charge.
|
|
4670
|
-
?
|
|
4671
|
-
: charge.
|
|
4669
|
+
: "" }) })) }))), jsx(SubscriptionsListCell, __assign({ gridColumn: 2 }, { children: jsx("div", { children: chargePeriod }) })), jsx(SubscriptionsListCell, __assign({ right: true }, { children: charge.kind === SubscriptionChargeKind.DISCOUNT
|
|
4670
|
+
? ""
|
|
4671
|
+
: charge.chargeType === ChargeType.USAGE
|
|
4672
|
+
? data && jsx(FeatureUsageGraph, { charge: charge, featureUsage: data })
|
|
4673
|
+
: charge.quantity })), jsx(SubscriptionsListCell, __assign({ right: true }, { children: jsx(SubscriptionChargeUnitPrice, { charge: charge, subscription: subscription }) })), jsx(SubscriptionsListCell, __assign({ right: true }, { children: jsx(SubscriptionChargeTotal, { charge: charge, subscription: subscription }) }))] })));
|
|
4672
4674
|
};
|
|
4673
4675
|
|
|
4674
4676
|
var Text = Typography.Text;
|
|
@@ -4717,7 +4719,9 @@ var SubscriptionCard = function (_a) {
|
|
|
4717
4719
|
return null;
|
|
4718
4720
|
var isRamp = charge.isRamp;
|
|
4719
4721
|
var chargePeriod = "".concat(formatDate(charge.startDate), " - ").concat(formatDate(charge.endDate));
|
|
4720
|
-
return (jsxs("div", __assign({ className: "contents" }, { children: [((isRamp && chargeIndex === 0) || !isRamp) && (jsxs(SubscriptionCardCellMobile, __assign({ className: CHARGE_COLUMNS[0].className, style: { gridColumn: isRamp ? "1/-1" : "1" } }, { children: [jsx("span", { children: charge.name }), !isRamp ? " - ".concat(chargePeriod) : ""] }))), isRamp && (jsx(SubscriptionCardCellMobile, __assign({ className: CHARGE_COLUMNS[0].className }, { children: "- ".concat(chargePeriod) }))), jsx(SubscriptionCardCellMobile, __assign({ className: CHARGE_COLUMNS[1].className }, { children: charge.
|
|
4722
|
+
return (jsxs("div", __assign({ className: "contents" }, { children: [((isRamp && chargeIndex === 0) || !isRamp) && (jsxs(SubscriptionCardCellMobile, __assign({ className: CHARGE_COLUMNS[0].className, style: { gridColumn: isRamp ? "1/-1" : "1" } }, { children: [jsx("span", { children: charge.name }), !isRamp ? " - ".concat(chargePeriod) : ""] }))), isRamp && (jsx(SubscriptionCardCellMobile, __assign({ className: CHARGE_COLUMNS[0].className }, { children: "- ".concat(chargePeriod) }))), jsx(SubscriptionCardCellMobile, __assign({ className: CHARGE_COLUMNS[1].className }, { children: charge.kind === SubscriptionChargeKind.DISCOUNT
|
|
4723
|
+
? ""
|
|
4724
|
+
: charge.quantity })), jsx(SubscriptionCardCellMobile, __assign({ className: CHARGE_COLUMNS[2].className }, { children: jsx(SubscriptionChargeUnitPrice, { charge: charge, subscription: subscription }) })), jsx(SubscriptionCardCellMobile, __assign({ className: CHARGE_COLUMNS[3].className }, { children: jsx(SubscriptionChargeTotal, { charge: charge, subscription: subscription }) }))] }), chargeIndex));
|
|
4721
4725
|
})] }))] })) }));
|
|
4722
4726
|
};
|
|
4723
4727
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
3
|
import Quote from "./Quote";
|
|
3
4
|
declare const meta: Meta<typeof Quote>;
|
|
@@ -15,16 +16,16 @@ export declare const Default: import("@storybook/csf").StoryAnnotations<import("
|
|
|
15
16
|
className?: string | undefined;
|
|
16
17
|
hideDownloadButton?: boolean | undefined;
|
|
17
18
|
}, {
|
|
19
|
+
entityId?: string | undefined;
|
|
18
20
|
className?: string | undefined;
|
|
19
21
|
id?: string | undefined;
|
|
20
|
-
entityId?: string | undefined;
|
|
21
22
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
22
|
-
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
23
23
|
backButtonName?: string | undefined;
|
|
24
24
|
onBackButtonClick?: (() => void) | undefined;
|
|
25
|
+
hideDownloadButton?: boolean | undefined;
|
|
26
|
+
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
25
27
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
26
28
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
27
|
-
hideDownloadButton?: boolean | undefined;
|
|
28
29
|
}>;
|
|
29
30
|
export declare const NoShadow: import("@storybook/csf").StoryAnnotations<import("@storybook/react/dist/types-a5624094").R, {
|
|
30
31
|
id?: string | undefined;
|
|
@@ -38,16 +39,16 @@ export declare const NoShadow: import("@storybook/csf").StoryAnnotations<import(
|
|
|
38
39
|
className?: string | undefined;
|
|
39
40
|
hideDownloadButton?: boolean | undefined;
|
|
40
41
|
}, {
|
|
42
|
+
entityId?: string | undefined;
|
|
41
43
|
className?: string | undefined;
|
|
42
44
|
id?: string | undefined;
|
|
43
|
-
entityId?: string | undefined;
|
|
44
45
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
45
|
-
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
46
46
|
backButtonName?: string | undefined;
|
|
47
47
|
onBackButtonClick?: (() => void) | undefined;
|
|
48
|
+
hideDownloadButton?: boolean | undefined;
|
|
49
|
+
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
48
50
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
49
51
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
50
|
-
hideDownloadButton?: boolean | undefined;
|
|
51
52
|
}>;
|
|
52
53
|
export declare const Mobile: import("@storybook/csf").StoryAnnotations<import("@storybook/react/dist/types-a5624094").R, {
|
|
53
54
|
id?: string | undefined;
|
|
@@ -61,16 +62,16 @@ export declare const Mobile: import("@storybook/csf").StoryAnnotations<import("@
|
|
|
61
62
|
className?: string | undefined;
|
|
62
63
|
hideDownloadButton?: boolean | undefined;
|
|
63
64
|
}, {
|
|
65
|
+
entityId?: string | undefined;
|
|
64
66
|
className?: string | undefined;
|
|
65
67
|
id?: string | undefined;
|
|
66
|
-
entityId?: string | undefined;
|
|
67
68
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
68
|
-
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
69
69
|
backButtonName?: string | undefined;
|
|
70
70
|
onBackButtonClick?: (() => void) | undefined;
|
|
71
|
+
hideDownloadButton?: boolean | undefined;
|
|
72
|
+
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
71
73
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
72
74
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
73
|
-
hideDownloadButton?: boolean | undefined;
|
|
74
75
|
}>;
|
|
75
76
|
export declare const CustomClassName: import("@storybook/csf").StoryAnnotations<import("@storybook/react/dist/types-a5624094").R, {
|
|
76
77
|
id?: string | undefined;
|
|
@@ -84,16 +85,16 @@ export declare const CustomClassName: import("@storybook/csf").StoryAnnotations<
|
|
|
84
85
|
className?: string | undefined;
|
|
85
86
|
hideDownloadButton?: boolean | undefined;
|
|
86
87
|
}, {
|
|
88
|
+
entityId?: string | undefined;
|
|
87
89
|
className?: string | undefined;
|
|
88
90
|
id?: string | undefined;
|
|
89
|
-
entityId?: string | undefined;
|
|
90
91
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
91
|
-
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
92
92
|
backButtonName?: string | undefined;
|
|
93
93
|
onBackButtonClick?: (() => void) | undefined;
|
|
94
|
+
hideDownloadButton?: boolean | undefined;
|
|
95
|
+
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
94
96
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
95
97
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
96
|
-
hideDownloadButton?: boolean | undefined;
|
|
97
98
|
}>;
|
|
98
99
|
export declare const HideDownloadButton: Story;
|
|
99
100
|
export declare const AcceptedQuote: Story;
|
|
@@ -110,14 +111,14 @@ export declare const DarkMode: import("@storybook/csf").StoryAnnotations<import(
|
|
|
110
111
|
className?: string | undefined;
|
|
111
112
|
hideDownloadButton?: boolean | undefined;
|
|
112
113
|
}, {
|
|
114
|
+
entityId?: string | undefined;
|
|
113
115
|
className?: string | undefined;
|
|
114
116
|
id?: string | undefined;
|
|
115
|
-
entityId?: string | undefined;
|
|
116
117
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
117
|
-
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
118
118
|
backButtonName?: string | undefined;
|
|
119
119
|
onBackButtonClick?: (() => void) | undefined;
|
|
120
|
+
hideDownloadButton?: boolean | undefined;
|
|
121
|
+
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
120
122
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
121
123
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
122
|
-
hideDownloadButton?: boolean | undefined;
|
|
123
124
|
}>;
|
|
@@ -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
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
declare const PageHeaderWithActions: ({ children, title, className, }: {
|
|
3
|
-
children?: ReactNode | ReactNode[];
|
|
4
|
-
title?: string | ReactNode;
|
|
5
|
-
className?: string | undefined;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default PageHeaderWithActions;
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Subscription } from "@bunnyapp/common";
|
|
2
|
-
declare const HideExpiredToggle: ({ hideExpired, setHideExpired, subscriptions, }: {
|
|
3
|
-
hideExpired: boolean;
|
|
4
|
-
setHideExpired: (value: boolean) => void;
|
|
5
|
-
subscriptions?: Subscription[] | undefined;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
export default HideExpiredToggle;
|
package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Subscription } from "@bunnyapp/common";
|
|
2
|
-
declare const SubscriptionsNavigation: ({ hideExpired, setHideExpired, setQuantityDrawerOpen, subscriptions, }: {
|
|
3
|
-
hideExpired: boolean;
|
|
4
|
-
setHideExpired: (value: boolean) => void;
|
|
5
|
-
setQuantityDrawerOpen: (value: boolean) => void;
|
|
6
|
-
subscriptions: Subscription[];
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default SubscriptionsNavigation;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
declare const PageHeaderWithActions: ({ children, title, className, }: {
|
|
3
|
-
children?: ReactNode | ReactNode[];
|
|
4
|
-
title?: string | ReactNode;
|
|
5
|
-
className?: string | undefined;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default PageHeaderWithActions;
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Subscription } from "@bunnyapp/common";
|
|
2
|
-
declare const HideExpiredToggle: ({ hideExpired, setHideExpired, subscriptions, }: {
|
|
3
|
-
hideExpired: boolean;
|
|
4
|
-
setHideExpired: (value: boolean) => void;
|
|
5
|
-
subscriptions?: Subscription[] | undefined;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
export default HideExpiredToggle;
|
package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Subscription } from "@bunnyapp/common";
|
|
2
|
-
declare const SubscriptionsNavigation: ({ hideExpired, setHideExpired, setQuantityDrawerOpen, subscriptions, }: {
|
|
3
|
-
hideExpired: boolean;
|
|
4
|
-
setHideExpired: (value: boolean) => void;
|
|
5
|
-
setQuantityDrawerOpen: (value: boolean) => void;
|
|
6
|
-
subscriptions: Subscription[];
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default SubscriptionsNavigation;
|