@configura/web-ui 1.1.1-alpha.0 → 1.1.1
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/.postcssrc.json +8 -8
- package/LICENSE +201 -201
- package/README.md +1 -1
- package/dist/components/CanvasWrapper.d.ts +9 -9
- package/dist/components/CanvasWrapper.js +8 -8
- package/dist/components/ConfigurationActionsButtonRow.d.ts +11 -11
- package/dist/components/ConfigurationActionsButtonRow.js +13 -13
- package/dist/components/Configurator.d.ts +12 -12
- package/dist/components/Configurator.js +15 -15
- package/dist/components/ConfiguratorWrapper.d.ts +8 -8
- package/dist/components/ConfiguratorWrapper.js +5 -5
- package/dist/components/CurrencyPrice.d.ts +9 -9
- package/dist/components/CurrencyPrice.js +7 -7
- package/dist/components/ExpandableHeadingRow.d.ts +15 -15
- package/dist/components/ExpandableHeadingRow.js +21 -21
- package/dist/components/Loading.d.ts +13 -13
- package/dist/components/Loading.js +20 -20
- package/dist/components/ProductInformation.d.ts +10 -10
- package/dist/components/ProductInformation.js +23 -23
- package/dist/components/icons/Checkmark.d.ts +5 -5
- package/dist/components/icons/Checkmark.js +12 -12
- package/dist/components/icons/Chevron.d.ts +6 -6
- package/dist/components/icons/Chevron.js +18 -18
- package/dist/components/productConfiguration/CfgAdditionalProductView.d.ts +3 -3
- package/dist/components/productConfiguration/CfgAdditionalProductView.js +28 -28
- package/dist/components/productConfiguration/CfgCheckboxView.d.ts +18 -18
- package/dist/components/productConfiguration/CfgCheckboxView.js +22 -22
- package/dist/components/productConfiguration/CfgCheckboxesView.d.ts +12 -12
- package/dist/components/productConfiguration/CfgCheckboxesView.js +18 -18
- package/dist/components/productConfiguration/CfgDropdownOptionView.d.ts +18 -18
- package/dist/components/productConfiguration/CfgDropdownOptionView.js +33 -33
- package/dist/components/productConfiguration/CfgDropdownView.d.ts +12 -12
- package/dist/components/productConfiguration/CfgDropdownView.js +20 -20
- package/dist/components/productConfiguration/CfgFeatureView.d.ts +27 -27
- package/dist/components/productConfiguration/CfgFeatureView.js +34 -34
- package/dist/components/productConfiguration/CfgGroupView.d.ts +4 -4
- package/dist/components/productConfiguration/CfgGroupView.js +13 -13
- package/dist/components/productConfiguration/CfgOptionFeaturesView.d.ts +6 -6
- package/dist/components/productConfiguration/CfgOptionFeaturesView.js +13 -13
- package/dist/components/productConfiguration/CfgOptionPriceView.d.ts +9 -9
- package/dist/components/productConfiguration/CfgOptionPriceView.js +29 -29
- package/dist/components/productConfiguration/CfgProductConfigurationView.d.ts +18 -18
- package/dist/components/productConfiguration/CfgProductConfigurationView.js +37 -37
- package/dist/css/web-ui.css.map +1 -1
- package/dist/index.d.ts +20 -20
- package/dist/index.js +20 -20
- package/dist/scss/_button.scss +36 -36
- package/dist/scss/_configurator.scss +67 -67
- package/dist/scss/_expandable.scss +37 -37
- package/dist/scss/_feature-item.scss +124 -124
- package/dist/scss/_hr.scss +16 -16
- package/dist/scss/_loading.scss +98 -98
- package/dist/scss/_mixins.scss +56 -56
- package/dist/scss/_option-tree.scss +29 -29
- package/dist/scss/_product-information.scss +49 -49
- package/dist/scss/_slider.scss +70 -70
- package/dist/scss/_themed.scss +123 -123
- package/dist/scss/_utilities.scss +17 -17
- package/dist/scss/_variables.scss +6 -6
- package/dist/scss/icons/_checkmark.scss +46 -46
- package/dist/scss/icons/_chevron.scss +62 -62
- package/dist/scss/web-ui.scss +11 -11
- package/dist/useObservable.d.ts +4 -4
- package/dist/useObservable.js +18 -18
- package/dist/useRerender.d.ts +1 -1
- package/dist/useRerender.js +5 -5
- package/dist/useResize.d.ts +6 -6
- package/dist/useResize.js +47 -47
- package/dist/useSelected.d.ts +2 -2
- package/dist/useSelected.js +13 -13
- package/dist/useUniqueId.d.ts +1 -1
- package/dist/useUniqueId.js +7 -7
- package/dist/utilities.d.ts +5 -5
- package/dist/utilities.js +1 -1
- package/package.json +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ExportStatus, RenderStatus } from "@configura/web-api";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { CssProps } from "../utilities";
|
|
4
|
-
interface Props {
|
|
5
|
-
exportStatus?: ExportStatus;
|
|
6
|
-
handleExport?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
7
|
-
handleRender?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
-
renderStatus?: RenderStatus;
|
|
9
|
-
}
|
|
10
|
-
export declare const ConfigurationActionsButtonRow: React.FC<Props & CssProps>;
|
|
11
|
-
export {};
|
|
1
|
+
import { ExportStatus, RenderStatus } from "@configura/web-api";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { CssProps } from "../utilities";
|
|
4
|
+
interface Props {
|
|
5
|
+
exportStatus?: ExportStatus;
|
|
6
|
+
handleExport?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
7
|
+
handleRender?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
+
renderStatus?: RenderStatus;
|
|
9
|
+
}
|
|
10
|
+
export declare const ConfigurationActionsButtonRow: React.FC<Props & CssProps>;
|
|
11
|
+
export {};
|
|
12
12
|
//# sourceMappingURL=ConfigurationActionsButtonRow.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export const ConfigurationActionsButtonRow = (props) => {
|
|
3
|
-
const { exportStatus, handleExport, handleRender, renderStatus } = props;
|
|
4
|
-
return (React.createElement("div", { className: `cfgButtonRow ${props.className || ""}`, style: props.style },
|
|
5
|
-
handleExport !== undefined &&
|
|
6
|
-
(exportStatus ? (React.createElement("button", { className: "cfgButtonRow__button cfgButton", disabled: exportStatus.status !== "finished", onClick: exportStatus.status !== "finished"
|
|
7
|
-
? undefined
|
|
8
|
-
: () => window.open(exportStatus.url, "_blank") }, exportStatus.status !== "finished" ? exportStatus.status : "Download")) : (React.createElement("button", { className: "cfgButtonRow__button cfgButton", onClick: handleExport }, "Export"))),
|
|
9
|
-
handleRender !== undefined &&
|
|
10
|
-
(renderStatus ? (React.createElement("button", { className: "cfgButtonRow__button cfgButton", disabled: renderStatus.status !== "finished", onClick: renderStatus.status !== "finished"
|
|
11
|
-
? undefined
|
|
12
|
-
: () => window.open(renderStatus.url, "_blank") }, renderStatus.status !== "finished" ? renderStatus.status : "Download")) : (React.createElement("button", { className: "cfgButtonRow__button cfgButton", onClick: handleRender }, "Render")))));
|
|
13
|
-
};
|
|
1
|
+
import React from "react";
|
|
2
|
+
export const ConfigurationActionsButtonRow = (props) => {
|
|
3
|
+
const { exportStatus, handleExport, handleRender, renderStatus } = props;
|
|
4
|
+
return (React.createElement("div", { className: `cfgButtonRow ${props.className || ""}`, style: props.style },
|
|
5
|
+
handleExport !== undefined &&
|
|
6
|
+
(exportStatus ? (React.createElement("button", { className: "cfgButtonRow__button cfgButton", disabled: exportStatus.status !== "finished", onClick: exportStatus.status !== "finished"
|
|
7
|
+
? undefined
|
|
8
|
+
: () => window.open(exportStatus.url, "_blank") }, exportStatus.status !== "finished" ? exportStatus.status : "Download")) : (React.createElement("button", { className: "cfgButtonRow__button cfgButton", onClick: handleExport }, "Export"))),
|
|
9
|
+
handleRender !== undefined &&
|
|
10
|
+
(renderStatus ? (React.createElement("button", { className: "cfgButtonRow__button cfgButton", disabled: renderStatus.status !== "finished", onClick: renderStatus.status !== "finished"
|
|
11
|
+
? undefined
|
|
12
|
+
: () => window.open(renderStatus.url, "_blank") }, renderStatus.status !== "finished" ? renderStatus.status : "Download")) : (React.createElement("button", { className: "cfgButtonRow__button cfgButton", onClick: handleRender }, "Render")))));
|
|
13
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { CfgProduct, ExportStatus, RenderStatus } from "@configura/web-api";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { CssProps } from "../utilities.js";
|
|
4
|
-
interface Props {
|
|
5
|
-
exportStatus?: ExportStatus;
|
|
6
|
-
handleExport?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
7
|
-
handleRender?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
-
product?: CfgProduct;
|
|
9
|
-
renderStatus?: RenderStatus;
|
|
10
|
-
}
|
|
11
|
-
export declare const Configurator: React.FC<Props & CssProps>;
|
|
12
|
-
export {};
|
|
1
|
+
import { CfgProduct, ExportStatus, RenderStatus } from "@configura/web-api";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { CssProps } from "../utilities.js";
|
|
4
|
+
interface Props {
|
|
5
|
+
exportStatus?: ExportStatus;
|
|
6
|
+
handleExport?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
7
|
+
handleRender?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
+
product?: CfgProduct;
|
|
9
|
+
renderStatus?: RenderStatus;
|
|
10
|
+
}
|
|
11
|
+
export declare const Configurator: React.FC<Props & CssProps>;
|
|
12
|
+
export {};
|
|
13
13
|
//# sourceMappingURL=Configurator.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ConfigurationActionsButtonRow } from "./ConfigurationActionsButtonRow.js";
|
|
3
|
-
import { CfgProductConfigurationView } from "./productConfiguration/CfgProductConfigurationView.js";
|
|
4
|
-
import { ProductInformation } from "./ProductInformation.js";
|
|
5
|
-
export const Configurator = (props) => {
|
|
6
|
-
const { exportStatus, handleExport, handleRender, product, renderStatus } = props;
|
|
7
|
-
return (React.createElement("div", { className: `cfgConfigurator ${props.className || ""}`, style: props.style }, product !== undefined && (React.createElement(React.Fragment, null,
|
|
8
|
-
React.createElement("div", { className: "cfgConfiguratorHeader" },
|
|
9
|
-
React.createElement(ProductInformation, { lang: product.lang, description: product.description, styleNr: product.styleNr, price: product.aggregatedPrice }),
|
|
10
|
-
(handleExport !== undefined || handleRender !== undefined) && (React.createElement("div", { className: "cfgConfiguratorHeader__actions" },
|
|
11
|
-
React.createElement(ConfigurationActionsButtonRow, { handleExport: handleExport, exportStatus: exportStatus, handleRender: handleRender, renderStatus: renderStatus })))),
|
|
12
|
-
React.createElement("div", { className: "cfgConfiguratorTree" },
|
|
13
|
-
React.createElement(CfgProductConfigurationView, { productOrConfiguration: product, permanentlyExpandedAdditionalProductLevels: 1 }),
|
|
14
|
-
props.children)))));
|
|
15
|
-
};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ConfigurationActionsButtonRow } from "./ConfigurationActionsButtonRow.js";
|
|
3
|
+
import { CfgProductConfigurationView } from "./productConfiguration/CfgProductConfigurationView.js";
|
|
4
|
+
import { ProductInformation } from "./ProductInformation.js";
|
|
5
|
+
export const Configurator = (props) => {
|
|
6
|
+
const { exportStatus, handleExport, handleRender, product, renderStatus } = props;
|
|
7
|
+
return (React.createElement("div", { className: `cfgConfigurator ${props.className || ""}`, style: props.style }, product !== undefined && (React.createElement(React.Fragment, null,
|
|
8
|
+
React.createElement("div", { className: "cfgConfiguratorHeader" },
|
|
9
|
+
React.createElement(ProductInformation, { lang: product.lang, description: product.description, styleNr: product.styleNr, price: product.aggregatedPrice }),
|
|
10
|
+
(handleExport !== undefined || handleRender !== undefined) && (React.createElement("div", { className: "cfgConfiguratorHeader__actions" },
|
|
11
|
+
React.createElement(ConfigurationActionsButtonRow, { handleExport: handleExport, exportStatus: exportStatus, handleRender: handleRender, renderStatus: renderStatus })))),
|
|
12
|
+
React.createElement("div", { className: "cfgConfiguratorTree" },
|
|
13
|
+
React.createElement(CfgProductConfigurationView, { productOrConfiguration: product, permanentlyExpandedAdditionalProductLevels: 1 }),
|
|
14
|
+
props.children)))));
|
|
15
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CssProps } from "../utilities";
|
|
3
|
-
interface Props {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export declare type ConfiguratorWrapperRef = HTMLDivElement;
|
|
7
|
-
export declare const ConfiguratorWrapper: React.ForwardRefExoticComponent<Props & CssProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CssProps } from "../utilities";
|
|
3
|
+
interface Props {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare type ConfiguratorWrapperRef = HTMLDivElement;
|
|
7
|
+
export declare const ConfiguratorWrapper: React.ForwardRefExoticComponent<Props & CssProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export {};
|
|
9
9
|
//# sourceMappingURL=ConfiguratorWrapper.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export const ConfiguratorWrapper = React.forwardRef((props, ref) => {
|
|
3
|
-
const { children } = props;
|
|
4
|
-
return (React.createElement("div", { ref: ref, className: `cfgConfiguratorWrapper ${props.className || ""}`, style: props.style }, children));
|
|
5
|
-
});
|
|
1
|
+
import React from "react";
|
|
2
|
+
export const ConfiguratorWrapper = React.forwardRef((props, ref) => {
|
|
3
|
+
const { children } = props;
|
|
4
|
+
return (React.createElement("div", { ref: ref, className: `cfgConfiguratorWrapper ${props.className || ""}`, style: props.style }, children));
|
|
5
|
+
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface Props {
|
|
3
|
-
currency: string;
|
|
4
|
-
language?: string;
|
|
5
|
-
price: number;
|
|
6
|
-
fractionDigits: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const CurrencyPrice: React.FC<Props>;
|
|
9
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
currency: string;
|
|
4
|
+
language?: string;
|
|
5
|
+
price: number;
|
|
6
|
+
fractionDigits: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const CurrencyPrice: React.FC<Props>;
|
|
9
|
+
export {};
|
|
10
10
|
//# sourceMappingURL=CurrencyPrice.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { formatPrice } from "@configura/web-utilities";
|
|
2
|
-
import React from "react";
|
|
3
|
-
export const CurrencyPrice = (props) => {
|
|
4
|
-
const { price, fractionDigits, currency, language } = props;
|
|
5
|
-
const lang = language || navigator.language;
|
|
6
|
-
return React.createElement(React.Fragment, null, formatPrice(price, fractionDigits, lang, currency));
|
|
7
|
-
};
|
|
1
|
+
import { formatPrice } from "@configura/web-utilities";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export const CurrencyPrice = (props) => {
|
|
4
|
+
const { price, fractionDigits, currency, language } = props;
|
|
5
|
+
const lang = language || navigator.language;
|
|
6
|
+
return React.createElement(React.Fragment, null, formatPrice(price, fractionDigits, lang, currency));
|
|
7
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CssProps } from "../utilities.js";
|
|
3
|
-
export declare enum ExpandableHeadingRowSymbol {
|
|
4
|
-
Chevron = 0,
|
|
5
|
-
Checkbox = 1
|
|
6
|
-
}
|
|
7
|
-
declare type Props = {
|
|
8
|
-
heading: string;
|
|
9
|
-
open: boolean;
|
|
10
|
-
onClick: () => void;
|
|
11
|
-
expandable?: boolean;
|
|
12
|
-
symbol?: ExpandableHeadingRowSymbol;
|
|
13
|
-
};
|
|
14
|
-
export declare const ExpandableHeadingRow: React.FC<Props & CssProps>;
|
|
15
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CssProps } from "../utilities.js";
|
|
3
|
+
export declare enum ExpandableHeadingRowSymbol {
|
|
4
|
+
Chevron = 0,
|
|
5
|
+
Checkbox = 1
|
|
6
|
+
}
|
|
7
|
+
declare type Props = {
|
|
8
|
+
heading: string;
|
|
9
|
+
open: boolean;
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
expandable?: boolean;
|
|
12
|
+
symbol?: ExpandableHeadingRowSymbol;
|
|
13
|
+
};
|
|
14
|
+
export declare const ExpandableHeadingRow: React.FC<Props & CssProps>;
|
|
15
|
+
export {};
|
|
16
16
|
//# sourceMappingURL=ExpandableHeadingRow.d.ts.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CheckmarkWithBorder } from "./icons/Checkmark.js";
|
|
3
|
-
import { Chevron } from "./icons/Chevron.js";
|
|
4
|
-
export var ExpandableHeadingRowSymbol;
|
|
5
|
-
(function (ExpandableHeadingRowSymbol) {
|
|
6
|
-
ExpandableHeadingRowSymbol[ExpandableHeadingRowSymbol["Chevron"] = 0] = "Chevron";
|
|
7
|
-
ExpandableHeadingRowSymbol[ExpandableHeadingRowSymbol["Checkbox"] = 1] = "Checkbox";
|
|
8
|
-
})(ExpandableHeadingRowSymbol || (ExpandableHeadingRowSymbol = {}));
|
|
9
|
-
export const ExpandableHeadingRow = (props) => {
|
|
10
|
-
const { heading, open: active, onClick, children } = props;
|
|
11
|
-
const symbol = props.symbol === undefined ? ExpandableHeadingRowSymbol.Chevron : props.symbol;
|
|
12
|
-
if (props.expandable === false) {
|
|
13
|
-
return (React.createElement("div", { className: "cfgExpandableHeadingRow" },
|
|
14
|
-
children,
|
|
15
|
-
React.createElement("div", { className: "cfgExpandableHeadingRow__title cfgTextOverflow" }, heading)));
|
|
16
|
-
}
|
|
17
|
-
return (React.createElement("button", { className: `cfgExpandableHeadingRow cfgExpandableHeadingRow--expandable ${props.className || ""}`, style: props.style, onClick: onClick },
|
|
18
|
-
children,
|
|
19
|
-
React.createElement("div", { className: "cfgExpandableHeadingRow__title cfgTextOverflow" }, heading),
|
|
20
|
-
React.createElement("div", { className: "cfgExpandableHeadingRow__icon" }, symbol === ExpandableHeadingRowSymbol.Chevron ? (React.createElement(Chevron, { active: active })) : (React.createElement(CheckmarkWithBorder, { active: active })))));
|
|
21
|
-
};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CheckmarkWithBorder } from "./icons/Checkmark.js";
|
|
3
|
+
import { Chevron } from "./icons/Chevron.js";
|
|
4
|
+
export var ExpandableHeadingRowSymbol;
|
|
5
|
+
(function (ExpandableHeadingRowSymbol) {
|
|
6
|
+
ExpandableHeadingRowSymbol[ExpandableHeadingRowSymbol["Chevron"] = 0] = "Chevron";
|
|
7
|
+
ExpandableHeadingRowSymbol[ExpandableHeadingRowSymbol["Checkbox"] = 1] = "Checkbox";
|
|
8
|
+
})(ExpandableHeadingRowSymbol || (ExpandableHeadingRowSymbol = {}));
|
|
9
|
+
export const ExpandableHeadingRow = (props) => {
|
|
10
|
+
const { heading, open: active, onClick, children } = props;
|
|
11
|
+
const symbol = props.symbol === undefined ? ExpandableHeadingRowSymbol.Chevron : props.symbol;
|
|
12
|
+
if (props.expandable === false) {
|
|
13
|
+
return (React.createElement("div", { className: "cfgExpandableHeadingRow" },
|
|
14
|
+
children,
|
|
15
|
+
React.createElement("div", { className: "cfgExpandableHeadingRow__title cfgTextOverflow" }, heading)));
|
|
16
|
+
}
|
|
17
|
+
return (React.createElement("button", { className: `cfgExpandableHeadingRow cfgExpandableHeadingRow--expandable ${props.className || ""}`, style: props.style, onClick: onClick },
|
|
18
|
+
children,
|
|
19
|
+
React.createElement("div", { className: "cfgExpandableHeadingRow__title cfgTextOverflow" }, heading),
|
|
20
|
+
React.createElement("div", { className: "cfgExpandableHeadingRow__icon" }, symbol === ExpandableHeadingRowSymbol.Chevron ? (React.createElement(Chevron, { active: active })) : (React.createElement(CheckmarkWithBorder, { active: active })))));
|
|
21
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CssProps } from "../utilities";
|
|
3
|
-
interface SpinnerProps {
|
|
4
|
-
small?: boolean;
|
|
5
|
-
}
|
|
6
|
-
interface OverlayProps {
|
|
7
|
-
clickThrough?: boolean;
|
|
8
|
-
fullWindow?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const Loading: React.FC<SpinnerProps & CssProps>;
|
|
11
|
-
export declare const CenteredLoading: React.FC<CssProps>;
|
|
12
|
-
export declare const OverlayLoading: React.FC<OverlayProps & CssProps>;
|
|
13
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CssProps } from "../utilities";
|
|
3
|
+
interface SpinnerProps {
|
|
4
|
+
small?: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface OverlayProps {
|
|
7
|
+
clickThrough?: boolean;
|
|
8
|
+
fullWindow?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const Loading: React.FC<SpinnerProps & CssProps>;
|
|
11
|
+
export declare const CenteredLoading: React.FC<CssProps>;
|
|
12
|
+
export declare const OverlayLoading: React.FC<OverlayProps & CssProps>;
|
|
13
|
+
export {};
|
|
14
14
|
//# sourceMappingURL=Loading.d.ts.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export const Loading = (props) => {
|
|
3
|
-
const { small } = props;
|
|
4
|
-
const smallClass = small ? "cfgLoading--small" : "";
|
|
5
|
-
return (React.createElement("div", { className: `cfgLoading ${smallClass} ${props.className || ""}`, style: props.style }));
|
|
6
|
-
};
|
|
7
|
-
const LoadingWithText = (props) => {
|
|
8
|
-
return (React.createElement("div", { className: `cfgLoadingWithText ${props.className || ""}`, style: props.style },
|
|
9
|
-
React.createElement(Loading, Object.assign({}, props)),
|
|
10
|
-
React.createElement("div", { className: "cfgLoadingWithText__text" }, "Loading")));
|
|
11
|
-
};
|
|
12
|
-
export const CenteredLoading = (props) => {
|
|
13
|
-
return (React.createElement("div", { className: `cfgCenteredLoading ${props.className || ""}`, style: props.style },
|
|
14
|
-
React.createElement(LoadingWithText, null)));
|
|
15
|
-
};
|
|
16
|
-
export const OverlayLoading = (props) => {
|
|
17
|
-
const { clickThrough, fullWindow } = props;
|
|
18
|
-
return (React.createElement("div", { className: `cfgOverlayLoading ${clickThrough ? "cfgOverlayLoading--clickThrough" : ""} ${fullWindow ? "cfgOverlayLoading--fullWindow" : ""} ${props.className || ""}`, style: props.style },
|
|
19
|
-
React.createElement(LoadingWithText, null)));
|
|
20
|
-
};
|
|
1
|
+
import React from "react";
|
|
2
|
+
export const Loading = (props) => {
|
|
3
|
+
const { small } = props;
|
|
4
|
+
const smallClass = small ? "cfgLoading--small" : "";
|
|
5
|
+
return (React.createElement("div", { className: `cfgLoading ${smallClass} ${props.className || ""}`, style: props.style }));
|
|
6
|
+
};
|
|
7
|
+
const LoadingWithText = (props) => {
|
|
8
|
+
return (React.createElement("div", { className: `cfgLoadingWithText ${props.className || ""}`, style: props.style },
|
|
9
|
+
React.createElement(Loading, Object.assign({}, props)),
|
|
10
|
+
React.createElement("div", { className: "cfgLoadingWithText__text" }, "Loading")));
|
|
11
|
+
};
|
|
12
|
+
export const CenteredLoading = (props) => {
|
|
13
|
+
return (React.createElement("div", { className: `cfgCenteredLoading ${props.className || ""}`, style: props.style },
|
|
14
|
+
React.createElement(LoadingWithText, null)));
|
|
15
|
+
};
|
|
16
|
+
export const OverlayLoading = (props) => {
|
|
17
|
+
const { clickThrough, fullWindow } = props;
|
|
18
|
+
return (React.createElement("div", { className: `cfgOverlayLoading ${clickThrough ? "cfgOverlayLoading--clickThrough" : ""} ${fullWindow ? "cfgOverlayLoading--fullWindow" : ""} ${props.className || ""}`, style: props.style },
|
|
19
|
+
React.createElement(LoadingWithText, null)));
|
|
20
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CfgPrice } from "@configura/web-api";
|
|
2
|
-
import { CssProps } from "../utilities.js";
|
|
3
|
-
interface Props {
|
|
4
|
-
description: string | undefined;
|
|
5
|
-
lang: string | undefined;
|
|
6
|
-
styleNr: string | undefined;
|
|
7
|
-
price: CfgPrice | undefined;
|
|
8
|
-
}
|
|
9
|
-
export declare function ProductInformation(props: Props & CssProps): JSX.Element;
|
|
10
|
-
export {};
|
|
1
|
+
import { CfgPrice } from "@configura/web-api";
|
|
2
|
+
import { CssProps } from "../utilities.js";
|
|
3
|
+
interface Props {
|
|
4
|
+
description: string | undefined;
|
|
5
|
+
lang: string | undefined;
|
|
6
|
+
styleNr: string | undefined;
|
|
7
|
+
price: CfgPrice | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare function ProductInformation(props: Props & CssProps): JSX.Element;
|
|
10
|
+
export {};
|
|
11
11
|
//# sourceMappingURL=ProductInformation.d.ts.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CurrencyPrice } from "./CurrencyPrice.js";
|
|
3
|
-
export function ProductInformation(props) {
|
|
4
|
-
const { styleNr, price, description, lang } = props;
|
|
5
|
-
return (React.createElement("div", { className: `cfgProductInfo ${props.className || ""}`, style: props.style },
|
|
6
|
-
React.createElement("div", { className: "cfgProductInfo__left" },
|
|
7
|
-
React.createElement("h2", { className: "cfgProductInfo__name cfgTextOverflow" }, description),
|
|
8
|
-
React.createElement("div", { className: "cfgProductInfo__number cfgTextOverflow" }, styleNr)),
|
|
9
|
-
React.createElement(ProductInformationPrice, { price: price, lang: lang })));
|
|
10
|
-
}
|
|
11
|
-
function ProductInformationPrice(props) {
|
|
12
|
-
const { price, lang } = props;
|
|
13
|
-
if (price === undefined) {
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
const { listPrice, currency, fractionDigits } = price;
|
|
17
|
-
if (listPrice === 0 || currency === "") {
|
|
18
|
-
return null;
|
|
19
|
-
}
|
|
20
|
-
return (React.createElement("div", { className: "cfgProductInfo__right" },
|
|
21
|
-
React.createElement("div", { className: "cfgProductInfo__name cfgProductInfo__name--right" },
|
|
22
|
-
React.createElement(CurrencyPrice, { currency: currency, language: lang, price: listPrice, fractionDigits: fractionDigits }))));
|
|
23
|
-
}
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CurrencyPrice } from "./CurrencyPrice.js";
|
|
3
|
+
export function ProductInformation(props) {
|
|
4
|
+
const { styleNr, price, description, lang } = props;
|
|
5
|
+
return (React.createElement("div", { className: `cfgProductInfo ${props.className || ""}`, style: props.style },
|
|
6
|
+
React.createElement("div", { className: "cfgProductInfo__left" },
|
|
7
|
+
React.createElement("h2", { className: "cfgProductInfo__name cfgTextOverflow" }, description),
|
|
8
|
+
React.createElement("div", { className: "cfgProductInfo__number cfgTextOverflow" }, styleNr)),
|
|
9
|
+
React.createElement(ProductInformationPrice, { price: price, lang: lang })));
|
|
10
|
+
}
|
|
11
|
+
function ProductInformationPrice(props) {
|
|
12
|
+
const { price, lang } = props;
|
|
13
|
+
if (price === undefined) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
const { listPrice, currency, fractionDigits } = price;
|
|
17
|
+
if (listPrice === 0 || currency === "") {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
return (React.createElement("div", { className: "cfgProductInfo__right" },
|
|
21
|
+
React.createElement("div", { className: "cfgProductInfo__name cfgProductInfo__name--right" },
|
|
22
|
+
React.createElement(CurrencyPrice, { currency: currency, language: lang, price: listPrice, fractionDigits: fractionDigits }))));
|
|
23
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CssProps } from "../../utilities";
|
|
2
|
-
export declare function CheckmarkWithBorder(props: {
|
|
3
|
-
active: boolean;
|
|
4
|
-
} & CssProps): JSX.Element;
|
|
5
|
-
export declare function Checkmark(props: CssProps): JSX.Element;
|
|
1
|
+
import { CssProps } from "../../utilities";
|
|
2
|
+
export declare function CheckmarkWithBorder(props: {
|
|
3
|
+
active: boolean;
|
|
4
|
+
} & CssProps): JSX.Element;
|
|
5
|
+
export declare function Checkmark(props: CssProps): JSX.Element;
|
|
6
6
|
//# sourceMappingURL=Checkmark.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export function CheckmarkWithBorder(props) {
|
|
3
|
-
const { active } = props;
|
|
4
|
-
return (React.createElement("div", { className: `cfgCheckmark__border ${props.className || ""} ${active ? "cfgCheckmark__border--active" : ""}`, style: props.style }, active && React.createElement(Checkmark, null)));
|
|
5
|
-
}
|
|
6
|
-
export function Checkmark(props) {
|
|
7
|
-
return (React.createElement("span", { className: `cfgCheckmark ${props.className || ""}`, style: props.style },
|
|
8
|
-
React.createElement("svg", { height: "100%", preserveAspectRatio: "xMidYMid", version: "1.1", viewBox: "0 0 100 100", width: "100%", xmlns: "http://www.w3.org/2000/svg" },
|
|
9
|
-
React.createElement("g", { className: "cfgCheckmark__container" },
|
|
10
|
-
React.createElement("line", { className: "cfgCheckmark__line cfgCheckmark__lineLeft", x1: "10", y1: "30", x2: "30", y2: "30" }),
|
|
11
|
-
React.createElement("line", { className: "cfgCheckmark__line cfgCheckmark__lineRight", x1: "90", y1: "50", x2: "50", y2: "50" })))));
|
|
12
|
-
}
|
|
1
|
+
import React from "react";
|
|
2
|
+
export function CheckmarkWithBorder(props) {
|
|
3
|
+
const { active } = props;
|
|
4
|
+
return (React.createElement("div", { className: `cfgCheckmark__border ${props.className || ""} ${active ? "cfgCheckmark__border--active" : ""}`, style: props.style }, active && React.createElement(Checkmark, null)));
|
|
5
|
+
}
|
|
6
|
+
export function Checkmark(props) {
|
|
7
|
+
return (React.createElement("span", { className: `cfgCheckmark ${props.className || ""}`, style: props.style },
|
|
8
|
+
React.createElement("svg", { height: "100%", preserveAspectRatio: "xMidYMid", version: "1.1", viewBox: "0 0 100 100", width: "100%", xmlns: "http://www.w3.org/2000/svg" },
|
|
9
|
+
React.createElement("g", { className: "cfgCheckmark__container" },
|
|
10
|
+
React.createElement("line", { className: "cfgCheckmark__line cfgCheckmark__lineLeft", x1: "10", y1: "30", x2: "30", y2: "30" }),
|
|
11
|
+
React.createElement("line", { className: "cfgCheckmark__line cfgCheckmark__lineRight", x1: "90", y1: "50", x2: "50", y2: "50" })))));
|
|
12
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CssProps } from "../../utilities";
|
|
2
|
-
export interface Props {
|
|
3
|
-
active: boolean;
|
|
4
|
-
up?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function Chevron(props: Props & CssProps): JSX.Element;
|
|
1
|
+
import { CssProps } from "../../utilities";
|
|
2
|
+
export interface Props {
|
|
3
|
+
active: boolean;
|
|
4
|
+
up?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function Chevron(props: Props & CssProps): JSX.Element;
|
|
7
7
|
//# sourceMappingURL=Chevron.d.ts.map
|