@configura/web-ui 1.4.0-alpha.1 → 1.4.0
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 +35 -35
- 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/CfgOptionNumericView.d.ts +27 -27
- package/dist/components/productConfiguration/CfgOptionNumericView.js +117 -117
- 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 +45 -45
- 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/_range-view.scss +28 -28
- package/dist/scss/_slider.scss +70 -70
- package/dist/scss/_themed.scss +124 -124
- package/dist/scss/_utilities.scss +21 -21
- 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,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
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export function Chevron(props) {
|
|
3
|
-
const { active } = props;
|
|
4
|
-
let { up } = props;
|
|
5
|
-
if (up === undefined) {
|
|
6
|
-
up = active;
|
|
7
|
-
}
|
|
8
|
-
const upFragment = up ? "up" : "down";
|
|
9
|
-
const activeFragment = active ? "active" : "passive";
|
|
10
|
-
const containerClass = "cfgChevron__container--" + upFragment + " cfgChevron__container--" + activeFragment;
|
|
11
|
-
const leftLineClass = "cfgChevron__lineLeft--" + upFragment + " cfgChevron__lineLeft--" + activeFragment;
|
|
12
|
-
const rightLineClass = "cfgChevron__lineRight--" + upFragment + " cfgChevron__lineRight--" + activeFragment;
|
|
13
|
-
return (React.createElement("span", { className: `cfgChevron ${props.className || ""}`, style: props.style },
|
|
14
|
-
React.createElement("svg", { height: "100%", preserveAspectRatio: "xMidYMid", version: "1.1", viewBox: "0 0 100 100", width: "100%", xmlns: "http://www.w3.org/2000/svg" },
|
|
15
|
-
React.createElement("g", { className: `cfgChevron__container ${containerClass}` },
|
|
16
|
-
React.createElement("line", { className: `cfgChevron__line ${leftLineClass}`, x1: "10", y1: "50", x2: "50", y2: "50" }),
|
|
17
|
-
React.createElement("line", { className: `cfgChevron__line ${rightLineClass}`, x1: "90", y1: "50", x2: "50", y2: "50" })))));
|
|
18
|
-
}
|
|
1
|
+
import React from "react";
|
|
2
|
+
export function Chevron(props) {
|
|
3
|
+
const { active } = props;
|
|
4
|
+
let { up } = props;
|
|
5
|
+
if (up === undefined) {
|
|
6
|
+
up = active;
|
|
7
|
+
}
|
|
8
|
+
const upFragment = up ? "up" : "down";
|
|
9
|
+
const activeFragment = active ? "active" : "passive";
|
|
10
|
+
const containerClass = "cfgChevron__container--" + upFragment + " cfgChevron__container--" + activeFragment;
|
|
11
|
+
const leftLineClass = "cfgChevron__lineLeft--" + upFragment + " cfgChevron__lineLeft--" + activeFragment;
|
|
12
|
+
const rightLineClass = "cfgChevron__lineRight--" + upFragment + " cfgChevron__lineRight--" + activeFragment;
|
|
13
|
+
return (React.createElement("span", { className: `cfgChevron ${props.className || ""}`, style: props.style },
|
|
14
|
+
React.createElement("svg", { height: "100%", preserveAspectRatio: "xMidYMid", version: "1.1", viewBox: "0 0 100 100", width: "100%", xmlns: "http://www.w3.org/2000/svg" },
|
|
15
|
+
React.createElement("g", { className: `cfgChevron__container ${containerClass}` },
|
|
16
|
+
React.createElement("line", { className: `cfgChevron__line ${leftLineClass}`, x1: "10", y1: "50", x2: "50", y2: "50" }),
|
|
17
|
+
React.createElement("line", { className: `cfgChevron__line ${rightLineClass}`, x1: "90", y1: "50", x2: "50", y2: "50" })))));
|
|
18
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CfgAdditionalProductViewProps } from "./CfgFeatureView.js";
|
|
3
|
-
export declare const CfgAdditionalProductView: React.FC<CfgAdditionalProductViewProps>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CfgAdditionalProductViewProps } from "./CfgFeatureView.js";
|
|
3
|
+
export declare const CfgAdditionalProductView: React.FC<CfgAdditionalProductViewProps>;
|
|
4
4
|
//# sourceMappingURL=CfgAdditionalProductView.d.ts.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import { ExpandableHeadingRow, ExpandableHeadingRowSymbol } from "../ExpandableHeadingRow.js";
|
|
3
|
-
import { forwardProps } from "./CfgFeatureView.js";
|
|
4
|
-
import { CfgProductConfigurationView } from "./CfgProductConfigurationView.js";
|
|
5
|
-
export const CfgAdditionalProductView = React.memo((props) => {
|
|
6
|
-
const { product, permanentlyExpandedLevels, additionalProductComponent } = props;
|
|
7
|
-
const { partNumber, optional, selected, configuration, additionalProducts, preview, description, } = product;
|
|
8
|
-
const [open, setOpen] = useState(false);
|
|
9
|
-
const openOrSelected = optional ? selected : open;
|
|
10
|
-
const noChildren = configuration.features.length === 0 && additionalProducts.length === 0;
|
|
11
|
-
const AdditionalProductComponent = additionalProductComponent || CfgAdditionalProductView;
|
|
12
|
-
return (React.createElement("li", { className: "cfgFeatureItem" },
|
|
13
|
-
React.createElement(ExpandableHeadingRow, { heading: description || partNumber, expandable: optional || (!noChildren && permanentlyExpandedLevels <= 0), open: openOrSelected, onClick: () => {
|
|
14
|
-
if (optional) {
|
|
15
|
-
product.setSelected(!selected);
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
setOpen((prev) => !prev);
|
|
19
|
-
}
|
|
20
|
-
}, symbol: optional ? ExpandableHeadingRowSymbol.Checkbox : undefined }, preview && (React.createElement("div", { className: "cfgThumbnailPlaceholder" },
|
|
21
|
-
React.createElement("img", { alt: `Preview for ${description}`, className: "cfgThumbnailImage", src: preview })))),
|
|
22
|
-
!noChildren &&
|
|
23
|
-
(!optional || selected) &&
|
|
24
|
-
(openOrSelected || 0 < permanentlyExpandedLevels) && (React.createElement("div", { className: "cfgFeatureItem__subTree" },
|
|
25
|
-
React.createElement(CfgProductConfigurationView, Object.assign({}, forwardProps(props), { productOrConfiguration: configuration })),
|
|
26
|
-
additionalProducts.length !== 0 && (React.createElement("ul", { className: `cfgOptionTree cfgOptionTree--topLevel` }, additionalProducts.map((additionalProduct) => (React.createElement(AdditionalProductComponent, Object.assign({ key: additionalProduct.key }, forwardProps(props), { product: additionalProduct, permanentlyExpandedLevels: permanentlyExpandedLevels - 1 })))))))),
|
|
27
|
-
React.createElement("hr", { className: "cfgFeatureItem__hr cfgHr" })));
|
|
28
|
-
});
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { ExpandableHeadingRow, ExpandableHeadingRowSymbol } from "../ExpandableHeadingRow.js";
|
|
3
|
+
import { forwardProps } from "./CfgFeatureView.js";
|
|
4
|
+
import { CfgProductConfigurationView } from "./CfgProductConfigurationView.js";
|
|
5
|
+
export const CfgAdditionalProductView = React.memo((props) => {
|
|
6
|
+
const { product, permanentlyExpandedLevels, additionalProductComponent } = props;
|
|
7
|
+
const { partNumber, optional, selected, configuration, additionalProducts, preview, description, } = product;
|
|
8
|
+
const [open, setOpen] = useState(false);
|
|
9
|
+
const openOrSelected = optional ? selected : open;
|
|
10
|
+
const noChildren = configuration.features.length === 0 && additionalProducts.length === 0;
|
|
11
|
+
const AdditionalProductComponent = additionalProductComponent || CfgAdditionalProductView;
|
|
12
|
+
return (React.createElement("li", { className: "cfgFeatureItem" },
|
|
13
|
+
React.createElement(ExpandableHeadingRow, { heading: description || partNumber, expandable: optional || (!noChildren && permanentlyExpandedLevels <= 0), open: openOrSelected, onClick: () => {
|
|
14
|
+
if (optional) {
|
|
15
|
+
product.setSelected(!selected);
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
setOpen((prev) => !prev);
|
|
19
|
+
}
|
|
20
|
+
}, symbol: optional ? ExpandableHeadingRowSymbol.Checkbox : undefined }, preview && (React.createElement("div", { className: "cfgThumbnailPlaceholder" },
|
|
21
|
+
React.createElement("img", { alt: `Preview for ${description}`, className: "cfgThumbnailImage", src: preview })))),
|
|
22
|
+
!noChildren &&
|
|
23
|
+
(!optional || selected) &&
|
|
24
|
+
(openOrSelected || 0 < permanentlyExpandedLevels) && (React.createElement("div", { className: "cfgFeatureItem__subTree" },
|
|
25
|
+
React.createElement(CfgProductConfigurationView, Object.assign({}, forwardProps(props), { productOrConfiguration: configuration })),
|
|
26
|
+
additionalProducts.length !== 0 && (React.createElement("ul", { className: `cfgOptionTree cfgOptionTree--topLevel` }, additionalProducts.map((additionalProduct) => (React.createElement(AdditionalProductComponent, Object.assign({ key: additionalProduct.key }, forwardProps(props), { product: additionalProduct, permanentlyExpandedLevels: permanentlyExpandedLevels - 1 })))))))),
|
|
27
|
+
React.createElement("hr", { className: "cfgFeatureItem__hr cfgHr" })));
|
|
28
|
+
});
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { CfgOption } from "@configura/web-api";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { CssProps } from "../../utilities.js";
|
|
4
|
-
import { CfgProductConfigurationComponentAndPassthroughProps } from "./CfgFeatureView.js";
|
|
5
|
-
import { PassthroughProps } from "./CfgProductConfigurationView.js";
|
|
6
|
-
declare type Props = PassthroughProps & {
|
|
7
|
-
option: CfgOption;
|
|
8
|
-
};
|
|
9
|
-
export declare const CfgCheckboxView: React.FC<Props & CfgProductConfigurationComponentAndPassthroughProps & CssProps>;
|
|
10
|
-
export declare const CfgCheckboxViewMemo: React.NamedExoticComponent<PassthroughProps & {
|
|
11
|
-
option: CfgOption;
|
|
12
|
-
} & {
|
|
13
|
-
additionalProductComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgAdditionalProductViewProps> | undefined;
|
|
14
|
-
featureGroupComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgFeatureViewProps> | undefined;
|
|
15
|
-
featureSelectManyComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgFeatureViewProps> | undefined;
|
|
16
|
-
featureSelectOneComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgFeatureViewProps> | undefined;
|
|
17
|
-
} & CssProps>;
|
|
18
|
-
export {};
|
|
1
|
+
import { CfgOption } from "@configura/web-api";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { CssProps } from "../../utilities.js";
|
|
4
|
+
import { CfgProductConfigurationComponentAndPassthroughProps } from "./CfgFeatureView.js";
|
|
5
|
+
import { PassthroughProps } from "./CfgProductConfigurationView.js";
|
|
6
|
+
declare type Props = PassthroughProps & {
|
|
7
|
+
option: CfgOption;
|
|
8
|
+
};
|
|
9
|
+
export declare const CfgCheckboxView: React.FC<Props & CfgProductConfigurationComponentAndPassthroughProps & CssProps>;
|
|
10
|
+
export declare const CfgCheckboxViewMemo: React.NamedExoticComponent<PassthroughProps & {
|
|
11
|
+
option: CfgOption;
|
|
12
|
+
} & {
|
|
13
|
+
additionalProductComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgAdditionalProductViewProps> | undefined;
|
|
14
|
+
featureGroupComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgFeatureViewProps> | undefined;
|
|
15
|
+
featureSelectManyComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgFeatureViewProps> | undefined;
|
|
16
|
+
featureSelectOneComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgFeatureViewProps> | undefined;
|
|
17
|
+
} & CssProps>;
|
|
18
|
+
export {};
|
|
19
19
|
//# sourceMappingURL=CfgCheckboxView.d.ts.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { useUuid } from "../../useUniqueId.js";
|
|
3
|
-
import { Checkmark } from "../icons/Checkmark.js";
|
|
4
|
-
import { forwardProps, } from "./CfgFeatureView.js";
|
|
5
|
-
import { CfgOptionFeaturesView } from "./CfgOptionFeaturesView.js";
|
|
6
|
-
import { CfgOptionPriceView } from "./CfgOptionPriceView.js";
|
|
7
|
-
export const CfgCheckboxView = (props) => {
|
|
8
|
-
const { option, upchargeDisplayMode } = props;
|
|
9
|
-
const { thumbnail, description, selected, code } = option;
|
|
10
|
-
const uniqueId = useUuid();
|
|
11
|
-
return (React.createElement("li", { className: props.className, style: props.style },
|
|
12
|
-
React.createElement("label", { className: "cfgFeatureItemOptional", htmlFor: uniqueId },
|
|
13
|
-
React.createElement("input", { checked: selected, className: "cfgFeatureItem__hiddenInput", id: uniqueId, name: uniqueId, onChange: () => option.setSelected(!selected), type: "checkbox" }),
|
|
14
|
-
React.createElement("div", { className: "cfgFeatureItem__checkbox" }, selected && React.createElement(Checkmark, null)),
|
|
15
|
-
thumbnail && (React.createElement("img", { alt: `Thumbnail for ${description}`, className: "cfgThumbnailImage cfgMl1", src: thumbnail })),
|
|
16
|
-
React.createElement("div", { className: "cfgFeatureItemOptional__titleWrapper" },
|
|
17
|
-
React.createElement("div", { className: "cfgFeatureItemOptional__title" },
|
|
18
|
-
description || code,
|
|
19
|
-
React.createElement(CfgOptionPriceView, { option: option, upchargeDisplayMode: upchargeDisplayMode })))),
|
|
20
|
-
React.createElement(CfgOptionFeaturesView, Object.assign({ option: option }, forwardProps(props)))));
|
|
21
|
-
};
|
|
22
|
-
export const CfgCheckboxViewMemo = React.memo(CfgCheckboxView);
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { useUuid } from "../../useUniqueId.js";
|
|
3
|
+
import { Checkmark } from "../icons/Checkmark.js";
|
|
4
|
+
import { forwardProps, } from "./CfgFeatureView.js";
|
|
5
|
+
import { CfgOptionFeaturesView } from "./CfgOptionFeaturesView.js";
|
|
6
|
+
import { CfgOptionPriceView } from "./CfgOptionPriceView.js";
|
|
7
|
+
export const CfgCheckboxView = (props) => {
|
|
8
|
+
const { option, upchargeDisplayMode } = props;
|
|
9
|
+
const { thumbnail, description, selected, code } = option;
|
|
10
|
+
const uniqueId = useUuid();
|
|
11
|
+
return (React.createElement("li", { className: props.className, style: props.style },
|
|
12
|
+
React.createElement("label", { className: "cfgFeatureItemOptional", htmlFor: uniqueId },
|
|
13
|
+
React.createElement("input", { checked: selected, className: "cfgFeatureItem__hiddenInput", id: uniqueId, name: uniqueId, onChange: () => option.setSelected(!selected), type: "checkbox" }),
|
|
14
|
+
React.createElement("div", { className: "cfgFeatureItem__checkbox" }, selected && React.createElement(Checkmark, null)),
|
|
15
|
+
thumbnail && (React.createElement("img", { alt: `Thumbnail for ${description}`, className: "cfgThumbnailImage cfgMl1", src: thumbnail })),
|
|
16
|
+
React.createElement("div", { className: "cfgFeatureItemOptional__titleWrapper" },
|
|
17
|
+
React.createElement("div", { className: "cfgFeatureItemOptional__title" },
|
|
18
|
+
description || code,
|
|
19
|
+
React.createElement(CfgOptionPriceView, { option: option, upchargeDisplayMode: upchargeDisplayMode })))),
|
|
20
|
+
React.createElement(CfgOptionFeaturesView, Object.assign({ option: option }, forwardProps(props)))));
|
|
21
|
+
};
|
|
22
|
+
export const CfgCheckboxViewMemo = React.memo(CfgCheckboxView);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CssProps } from "../../utilities.js";
|
|
3
|
-
import { CfgFeatureViewProps } from "./CfgFeatureView.js";
|
|
4
|
-
export declare const CfgCheckboxesView: React.FC<CfgFeatureViewProps & CssProps>;
|
|
5
|
-
export declare const CfgCheckboxesViewMemo: React.NamedExoticComponent<import("./CfgProductConfigurationView.js").PassthroughProps & {
|
|
6
|
-
additionalProductComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgAdditionalProductViewProps> | undefined;
|
|
7
|
-
featureGroupComponent?: React.ComponentType<CfgFeatureViewProps> | undefined;
|
|
8
|
-
featureSelectManyComponent?: React.ComponentType<CfgFeatureViewProps> | undefined;
|
|
9
|
-
featureSelectOneComponent?: React.ComponentType<CfgFeatureViewProps> | undefined;
|
|
10
|
-
} & {
|
|
11
|
-
feature: import("@configura/web-api").CfgFeature;
|
|
12
|
-
} & CssProps>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CssProps } from "../../utilities.js";
|
|
3
|
+
import { CfgFeatureViewProps } from "./CfgFeatureView.js";
|
|
4
|
+
export declare const CfgCheckboxesView: React.FC<CfgFeatureViewProps & CssProps>;
|
|
5
|
+
export declare const CfgCheckboxesViewMemo: React.NamedExoticComponent<import("./CfgProductConfigurationView.js").PassthroughProps & {
|
|
6
|
+
additionalProductComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgAdditionalProductViewProps> | undefined;
|
|
7
|
+
featureGroupComponent?: React.ComponentType<CfgFeatureViewProps> | undefined;
|
|
8
|
+
featureSelectManyComponent?: React.ComponentType<CfgFeatureViewProps> | undefined;
|
|
9
|
+
featureSelectOneComponent?: React.ComponentType<CfgFeatureViewProps> | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
feature: import("@configura/web-api").CfgFeature;
|
|
12
|
+
} & CssProps>;
|
|
13
13
|
//# sourceMappingURL=CfgCheckboxesView.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { SelectionType } from "@configura/web-api";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { CfgCheckboxViewMemo } from "./CfgCheckboxView.js";
|
|
4
|
-
import { forwardProps } from "./CfgFeatureView.js";
|
|
5
|
-
export const CfgCheckboxesView = (props) => {
|
|
6
|
-
const { feature } = props;
|
|
7
|
-
if (feature.selectionType !== SelectionType.SelectMany) {
|
|
8
|
-
throw Error(`Unsupported selection type expected: ${SelectionType.SelectMany}, got: ${feature.selectionType}`);
|
|
9
|
-
}
|
|
10
|
-
const { options, description } = feature;
|
|
11
|
-
if (options.length === 0) {
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
return (React.createElement("li", { className: `cfgFeatureItem cfgFeatureItem--optional ${props.className || ""}`, style: props.style },
|
|
15
|
-
React.createElement("h3", { className: "cfgFeatureItemOptional__header" }, description),
|
|
16
|
-
React.createElement("ul", { className: "cfgOptionTree" }, options.map((option) => (React.createElement(CfgCheckboxViewMemo, Object.assign({ option: option, key: option.key }, forwardProps(props))))))));
|
|
17
|
-
};
|
|
18
|
-
export const CfgCheckboxesViewMemo = React.memo(CfgCheckboxesView);
|
|
1
|
+
import { SelectionType } from "@configura/web-api";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { CfgCheckboxViewMemo } from "./CfgCheckboxView.js";
|
|
4
|
+
import { forwardProps } from "./CfgFeatureView.js";
|
|
5
|
+
export const CfgCheckboxesView = (props) => {
|
|
6
|
+
const { feature } = props;
|
|
7
|
+
if (feature.selectionType !== SelectionType.SelectMany) {
|
|
8
|
+
throw Error(`Unsupported selection type expected: ${SelectionType.SelectMany}, got: ${feature.selectionType}`);
|
|
9
|
+
}
|
|
10
|
+
const { options, description } = feature;
|
|
11
|
+
if (options.length === 0) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
return (React.createElement("li", { className: `cfgFeatureItem cfgFeatureItem--optional ${props.className || ""}`, style: props.style },
|
|
15
|
+
React.createElement("h3", { className: "cfgFeatureItemOptional__header" }, description),
|
|
16
|
+
React.createElement("ul", { className: "cfgOptionTree" }, options.map((option) => (React.createElement(CfgCheckboxViewMemo, Object.assign({ option: option, key: option.key }, forwardProps(props))))))));
|
|
17
|
+
};
|
|
18
|
+
export const CfgCheckboxesViewMemo = React.memo(CfgCheckboxesView);
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { CfgOption } from "@configura/web-api";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { CssProps } from "../../utilities.js";
|
|
4
|
-
import { CfgProductConfigurationComponentAndPassthroughProps } from "./CfgFeatureView.js";
|
|
5
|
-
import { PassthroughProps } from "./CfgProductConfigurationView.js";
|
|
6
|
-
declare type Props = PassthroughProps & {
|
|
7
|
-
option: CfgOption;
|
|
8
|
-
};
|
|
9
|
-
export declare const CfgDropdownOptionView: React.FC<Props & CfgProductConfigurationComponentAndPassthroughProps & CssProps>;
|
|
10
|
-
export declare const CfgDropdownOptionViewMemo: React.NamedExoticComponent<PassthroughProps & {
|
|
11
|
-
option: CfgOption;
|
|
12
|
-
} & {
|
|
13
|
-
additionalProductComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgAdditionalProductViewProps> | undefined;
|
|
14
|
-
featureGroupComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgFeatureViewProps> | undefined;
|
|
15
|
-
featureSelectManyComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgFeatureViewProps> | undefined;
|
|
16
|
-
featureSelectOneComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgFeatureViewProps> | undefined;
|
|
17
|
-
} & CssProps>;
|
|
18
|
-
export {};
|
|
1
|
+
import { CfgOption } from "@configura/web-api";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { CssProps } from "../../utilities.js";
|
|
4
|
+
import { CfgProductConfigurationComponentAndPassthroughProps } from "./CfgFeatureView.js";
|
|
5
|
+
import { PassthroughProps } from "./CfgProductConfigurationView.js";
|
|
6
|
+
declare type Props = PassthroughProps & {
|
|
7
|
+
option: CfgOption;
|
|
8
|
+
};
|
|
9
|
+
export declare const CfgDropdownOptionView: React.FC<Props & CfgProductConfigurationComponentAndPassthroughProps & CssProps>;
|
|
10
|
+
export declare const CfgDropdownOptionViewMemo: React.NamedExoticComponent<PassthroughProps & {
|
|
11
|
+
option: CfgOption;
|
|
12
|
+
} & {
|
|
13
|
+
additionalProductComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgAdditionalProductViewProps> | undefined;
|
|
14
|
+
featureGroupComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgFeatureViewProps> | undefined;
|
|
15
|
+
featureSelectManyComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgFeatureViewProps> | undefined;
|
|
16
|
+
featureSelectOneComponent?: React.ComponentType<import("./CfgFeatureView.js").CfgFeatureViewProps> | undefined;
|
|
17
|
+
} & CssProps>;
|
|
18
|
+
export {};
|
|
19
19
|
//# sourceMappingURL=CfgDropdownOptionView.d.ts.map
|