@bunnyapp/components 1.8.0-beta.21 → 1.8.0-beta.22
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
CHANGED
|
@@ -1291,7 +1291,7 @@ const DEFAULT_CONFIG = {
|
|
|
1291
1291
|
};
|
|
1292
1292
|
|
|
1293
1293
|
// This will be replaced at build time by rollup-plugin-replace
|
|
1294
|
-
const PACKAGE_VERSION = '1.8.0-beta.
|
|
1294
|
+
const PACKAGE_VERSION = '1.8.0-beta.21';
|
|
1295
1295
|
const createRequestHeaders = (token) => {
|
|
1296
1296
|
const headers = createClientDevHeaders({ token });
|
|
1297
1297
|
// Add the components version header
|
|
@@ -24604,7 +24604,8 @@ const SignupQuote = () => {
|
|
|
24604
24604
|
return (jsxRuntime.jsxs("div", { className: "bunny-flex bunny-flex-col bunny-gap-2 bunny-h-full", children: [jsxRuntime.jsxs("div", { className: "bunny-flex bunny-items-center bunny-justify-end bunny-gap-2", children: [isAccepted && (jsxRuntime.jsx(QuoteIsAcceptedLabel, { acceptedByName: quote === null || quote === void 0 ? void 0 : quote.acceptedByName, acceptedAt: quote === null || quote === void 0 ? void 0 : quote.acceptedAt })), documentPreviewFullscreenApi ? (jsxRuntime.jsx(antd.Button, { icon: jsxRuntime.jsx(icons.FullscreenOutlined, {}), onClick: () => documentPreviewFullscreenApi.toggleFullScreen(), children: "Fullscreen" })) : null, jsxRuntime.jsx(DownloadQuoteButton, { id: quote === null || quote === void 0 ? void 0 : quote.id })] }), jsxRuntime.jsx(InvoiceQuoteView, { html: (_b = (_a = quote === null || quote === void 0 ? void 0 : quote.formattedQuote) === null || _a === void 0 ? void 0 : _a.html) !== null && _b !== void 0 ? _b : null, targetUrl: (quote === null || quote === void 0 ? void 0 : quote.documentTemplateId) ? `/pdf/quote/${quote === null || quote === void 0 ? void 0 : quote.id}` : undefined, onDocumentPreviewFullscreenApiChange: setDocumentPreviewFullscreenApi })] }));
|
|
24605
24605
|
};
|
|
24606
24606
|
|
|
24607
|
-
|
|
24607
|
+
const BACKGROUND_COLOR = '#f8fafc';
|
|
24608
|
+
function SignupContent({ priceListCode, defaultFormValues, documentTemplateId, requiredBillingDetails, returnUrl: returnUrlProp, style, }) {
|
|
24608
24609
|
const [purchaseSucceeded] = useSignupPurchaseSucceeded();
|
|
24609
24610
|
const { apiHost } = react.useContext(BunnyContext);
|
|
24610
24611
|
const token = useToken();
|
|
@@ -24618,7 +24619,7 @@ function SignupContent({ priceListCode, defaultFormValues, documentTemplateId, r
|
|
|
24618
24619
|
const priceList = readFragment(Signup_PriceListFragment, maskedPriceList);
|
|
24619
24620
|
const quote = readFragment(Signup_QuoteFragment, signupQuoteFromCache);
|
|
24620
24621
|
const hasExistingAccount = (account === null || account === void 0 ? void 0 : account.id) !== undefined;
|
|
24621
|
-
return (jsxRuntime.jsx(SignupSplitScreenContainer, { left: jsxRuntime.jsxs("div", { className: "bunny-box-border bunny-flex bunny-h-full bunny-min-h-0 bunny-w-4/5 bunny-flex-col bunny-items-start bunny-justify-between bunny-gap-4 bunny-py-24 bunny-overflow-y-auto", children: [jsxRuntime.jsx(Logo, {}), jsxRuntime.jsxs("div", { className: "bunny-flex bunny-min-h-0 bunny-w-full bunny-flex-1 bunny-flex-col bunny-gap-4", children: [jsxRuntime.jsx(PriceListDisplay, { priceList: priceList }), jsxRuntime.jsx(CheckoutSummary, { quote: quote !== null && quote !== void 0 ? quote : undefined, priceList: priceList }), jsxRuntime.jsx(SignupQuote, {})] }), jsxRuntime.jsx(Footer, {})] }), right: jsxRuntime.jsxs("div", { className: "bunny-box-border bunny-flex bunny-h-full bunny-min-h-0 bunny-w-4/5 bunny-flex-col bunny-py-24 bunny-overflow-y-auto", children: [jsxRuntime.jsx(SignupForm, { priceListCode: priceListCode, priceList: priceList, defaultFormValues: defaultFormValues, documentTemplateId: documentTemplateId, requiredBillingDetails: requiredBillingDetails }), !quote && !hasExistingAccount && (jsxRuntime.jsx("div", { className: "bunny-pt-4", children: jsxRuntime.jsx(QuoteCreateButton, { priceListCode: priceListCode, priceList: priceList, documentTemplateId: documentTemplateId }) })), !purchaseSucceeded && quote && (jsxRuntime.jsx("div", { className: "bunny-pt-4", children: jsxRuntime.jsx(SignupPaymentForm, { quote: quote, priceList: priceList }) })), purchaseSucceeded && (jsxRuntime.jsx(SuccessDisplay, { quote: quote, currencyId: priceList === null || priceList === void 0 ? void 0 : priceList.currencyId, returnUrl: returnUrlProp, className: "bunny-p-4" }))] }) }));
|
|
24622
|
+
return (jsxRuntime.jsx("div", { style: { backgroundColor: BACKGROUND_COLOR, ...style }, children: jsxRuntime.jsx(SignupSplitScreenContainer, { left: jsxRuntime.jsxs("div", { className: "bunny-box-border bunny-flex bunny-h-full bunny-min-h-0 bunny-w-4/5 bunny-flex-col bunny-items-start bunny-justify-between bunny-gap-4 bunny-py-24 bunny-overflow-y-auto", children: [jsxRuntime.jsx(Logo, {}), jsxRuntime.jsxs("div", { className: "bunny-flex bunny-min-h-0 bunny-w-full bunny-flex-1 bunny-flex-col bunny-gap-4", children: [jsxRuntime.jsx(PriceListDisplay, { priceList: priceList }), jsxRuntime.jsx(CheckoutSummary, { quote: quote !== null && quote !== void 0 ? quote : undefined, priceList: priceList }), jsxRuntime.jsx(SignupQuote, {})] }), jsxRuntime.jsx(Footer, {})] }), right: jsxRuntime.jsxs("div", { className: "bunny-box-border bunny-flex bunny-h-full bunny-min-h-0 bunny-w-4/5 bunny-flex-col bunny-py-24 bunny-overflow-y-auto", children: [jsxRuntime.jsx(SignupForm, { priceListCode: priceListCode, priceList: priceList, defaultFormValues: defaultFormValues, documentTemplateId: documentTemplateId, requiredBillingDetails: requiredBillingDetails }), !quote && !hasExistingAccount && (jsxRuntime.jsx("div", { className: "bunny-pt-4", children: jsxRuntime.jsx(QuoteCreateButton, { priceListCode: priceListCode, priceList: priceList, documentTemplateId: documentTemplateId }) })), !purchaseSucceeded && quote && (jsxRuntime.jsx("div", { className: "bunny-pt-4", children: jsxRuntime.jsx(SignupPaymentForm, { quote: quote, priceList: priceList }) })), purchaseSucceeded && (jsxRuntime.jsx(SuccessDisplay, { quote: quote, currencyId: priceList === null || priceList === void 0 ? void 0 : priceList.currencyId, returnUrl: returnUrlProp, className: "bunny-p-4" }))] }) }) }));
|
|
24622
24623
|
}
|
|
24623
24624
|
|
|
24624
24625
|
function SignupQuoteProviderContainer({ children }) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SignupProps } from './Signup';
|
|
2
|
-
export declare function SignupContent({ priceListCode, defaultFormValues, documentTemplateId, requiredBillingDetails, returnUrl: returnUrlProp, }: SignupProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function SignupContent({ priceListCode, defaultFormValues, documentTemplateId, requiredBillingDetails, returnUrl: returnUrlProp, style, }: SignupProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/esm/index.js
CHANGED
|
@@ -1289,7 +1289,7 @@ const DEFAULT_CONFIG = {
|
|
|
1289
1289
|
};
|
|
1290
1290
|
|
|
1291
1291
|
// This will be replaced at build time by rollup-plugin-replace
|
|
1292
|
-
const PACKAGE_VERSION = '1.8.0-beta.
|
|
1292
|
+
const PACKAGE_VERSION = '1.8.0-beta.21';
|
|
1293
1293
|
const createRequestHeaders = (token) => {
|
|
1294
1294
|
const headers = createClientDevHeaders({ token });
|
|
1295
1295
|
// Add the components version header
|
|
@@ -24602,7 +24602,8 @@ const SignupQuote = () => {
|
|
|
24602
24602
|
return (jsxs("div", { className: "bunny-flex bunny-flex-col bunny-gap-2 bunny-h-full", children: [jsxs("div", { className: "bunny-flex bunny-items-center bunny-justify-end bunny-gap-2", children: [isAccepted && (jsx(QuoteIsAcceptedLabel, { acceptedByName: quote === null || quote === void 0 ? void 0 : quote.acceptedByName, acceptedAt: quote === null || quote === void 0 ? void 0 : quote.acceptedAt })), documentPreviewFullscreenApi ? (jsx(Button, { icon: jsx(FullscreenOutlined, {}), onClick: () => documentPreviewFullscreenApi.toggleFullScreen(), children: "Fullscreen" })) : null, jsx(DownloadQuoteButton, { id: quote === null || quote === void 0 ? void 0 : quote.id })] }), jsx(InvoiceQuoteView, { html: (_b = (_a = quote === null || quote === void 0 ? void 0 : quote.formattedQuote) === null || _a === void 0 ? void 0 : _a.html) !== null && _b !== void 0 ? _b : null, targetUrl: (quote === null || quote === void 0 ? void 0 : quote.documentTemplateId) ? `/pdf/quote/${quote === null || quote === void 0 ? void 0 : quote.id}` : undefined, onDocumentPreviewFullscreenApiChange: setDocumentPreviewFullscreenApi })] }));
|
|
24603
24603
|
};
|
|
24604
24604
|
|
|
24605
|
-
|
|
24605
|
+
const BACKGROUND_COLOR = '#f8fafc';
|
|
24606
|
+
function SignupContent({ priceListCode, defaultFormValues, documentTemplateId, requiredBillingDetails, returnUrl: returnUrlProp, style, }) {
|
|
24606
24607
|
const [purchaseSucceeded] = useSignupPurchaseSucceeded();
|
|
24607
24608
|
const { apiHost } = useContext(BunnyContext);
|
|
24608
24609
|
const token = useToken();
|
|
@@ -24616,7 +24617,7 @@ function SignupContent({ priceListCode, defaultFormValues, documentTemplateId, r
|
|
|
24616
24617
|
const priceList = readFragment(Signup_PriceListFragment, maskedPriceList);
|
|
24617
24618
|
const quote = readFragment(Signup_QuoteFragment, signupQuoteFromCache);
|
|
24618
24619
|
const hasExistingAccount = (account === null || account === void 0 ? void 0 : account.id) !== undefined;
|
|
24619
|
-
return (jsx(SignupSplitScreenContainer, { left: jsxs("div", { className: "bunny-box-border bunny-flex bunny-h-full bunny-min-h-0 bunny-w-4/5 bunny-flex-col bunny-items-start bunny-justify-between bunny-gap-4 bunny-py-24 bunny-overflow-y-auto", children: [jsx(Logo, {}), jsxs("div", { className: "bunny-flex bunny-min-h-0 bunny-w-full bunny-flex-1 bunny-flex-col bunny-gap-4", children: [jsx(PriceListDisplay, { priceList: priceList }), jsx(CheckoutSummary, { quote: quote !== null && quote !== void 0 ? quote : undefined, priceList: priceList }), jsx(SignupQuote, {})] }), jsx(Footer, {})] }), right: jsxs("div", { className: "bunny-box-border bunny-flex bunny-h-full bunny-min-h-0 bunny-w-4/5 bunny-flex-col bunny-py-24 bunny-overflow-y-auto", children: [jsx(SignupForm, { priceListCode: priceListCode, priceList: priceList, defaultFormValues: defaultFormValues, documentTemplateId: documentTemplateId, requiredBillingDetails: requiredBillingDetails }), !quote && !hasExistingAccount && (jsx("div", { className: "bunny-pt-4", children: jsx(QuoteCreateButton, { priceListCode: priceListCode, priceList: priceList, documentTemplateId: documentTemplateId }) })), !purchaseSucceeded && quote && (jsx("div", { className: "bunny-pt-4", children: jsx(SignupPaymentForm, { quote: quote, priceList: priceList }) })), purchaseSucceeded && (jsx(SuccessDisplay, { quote: quote, currencyId: priceList === null || priceList === void 0 ? void 0 : priceList.currencyId, returnUrl: returnUrlProp, className: "bunny-p-4" }))] }) }));
|
|
24620
|
+
return (jsx("div", { style: { backgroundColor: BACKGROUND_COLOR, ...style }, children: jsx(SignupSplitScreenContainer, { left: jsxs("div", { className: "bunny-box-border bunny-flex bunny-h-full bunny-min-h-0 bunny-w-4/5 bunny-flex-col bunny-items-start bunny-justify-between bunny-gap-4 bunny-py-24 bunny-overflow-y-auto", children: [jsx(Logo, {}), jsxs("div", { className: "bunny-flex bunny-min-h-0 bunny-w-full bunny-flex-1 bunny-flex-col bunny-gap-4", children: [jsx(PriceListDisplay, { priceList: priceList }), jsx(CheckoutSummary, { quote: quote !== null && quote !== void 0 ? quote : undefined, priceList: priceList }), jsx(SignupQuote, {})] }), jsx(Footer, {})] }), right: jsxs("div", { className: "bunny-box-border bunny-flex bunny-h-full bunny-min-h-0 bunny-w-4/5 bunny-flex-col bunny-py-24 bunny-overflow-y-auto", children: [jsx(SignupForm, { priceListCode: priceListCode, priceList: priceList, defaultFormValues: defaultFormValues, documentTemplateId: documentTemplateId, requiredBillingDetails: requiredBillingDetails }), !quote && !hasExistingAccount && (jsx("div", { className: "bunny-pt-4", children: jsx(QuoteCreateButton, { priceListCode: priceListCode, priceList: priceList, documentTemplateId: documentTemplateId }) })), !purchaseSucceeded && quote && (jsx("div", { className: "bunny-pt-4", children: jsx(SignupPaymentForm, { quote: quote, priceList: priceList }) })), purchaseSucceeded && (jsx(SuccessDisplay, { quote: quote, currencyId: priceList === null || priceList === void 0 ? void 0 : priceList.currencyId, returnUrl: returnUrlProp, className: "bunny-p-4" }))] }) }) }));
|
|
24620
24621
|
}
|
|
24621
24622
|
|
|
24622
24623
|
function SignupQuoteProviderContainer({ children }) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SignupProps } from './Signup';
|
|
2
|
-
export declare function SignupContent({ priceListCode, defaultFormValues, documentTemplateId, requiredBillingDetails, returnUrl: returnUrlProp, }: SignupProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function SignupContent({ priceListCode, defaultFormValues, documentTemplateId, requiredBillingDetails, returnUrl: returnUrlProp, style, }: SignupProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED