@ultraviolet/plus 3.0.0-beta.9 → 3.0.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/dist/components/CodeEditor/CodeEditor.d.ts +3 -2
- package/dist/components/CodeEditor/CodeEditor.js +44 -13
- package/dist/components/ContentCard/Skeleton.d.ts +1 -1
- package/dist/components/ContentCard/Skeleton.js +13 -8
- package/dist/components/ContentCard/index.d.ts +2 -1
- package/dist/components/ContentCard/index.js +131 -50
- package/dist/components/ContentCard/styles.css.js +0 -1
- package/dist/components/ContentCardGroup/Card.d.ts +2 -1
- package/dist/components/ContentCardGroup/Card.js +65 -86
- package/dist/components/ContentCardGroup/SkeletonCard.d.ts +1 -1
- package/dist/components/ContentCardGroup/SkeletonCard.js +4 -22
- package/dist/components/ContentCardGroup/index.d.ts +3 -1
- package/dist/components/ContentCardGroup/index.js +12 -18
- package/dist/components/ContentCardGroup/styles.css.d.ts +7 -0
- package/dist/components/ContentCardGroup/styles.css.js +18 -0
- package/dist/components/Conversation/index.d.ts +25 -17
- package/dist/components/Conversation/index.js +37 -103
- package/dist/components/Conversation/styles.css.d.ts +7 -0
- package/dist/components/Conversation/styles.css.js +17 -0
- package/dist/components/CustomerSatisfaction/index.d.ts +3 -1
- package/dist/components/CustomerSatisfaction/index.js +70 -96
- package/dist/components/CustomerSatisfaction/styles.css.d.ts +17 -0
- package/dist/components/CustomerSatisfaction/styles.css.js +6 -0
- package/dist/components/EstimateCost/Components/CustomUnitInput.d.ts +1 -1
- package/dist/components/EstimateCost/Components/CustomUnitInput.js +47 -27
- package/dist/components/EstimateCost/Components/Item.d.ts +3 -2
- package/dist/components/EstimateCost/Components/Item.js +308 -288
- package/dist/components/EstimateCost/Components/LineThrough.d.ts +3 -5
- package/dist/components/EstimateCost/Components/LineThrough.js +12 -12
- package/dist/components/EstimateCost/Components/NumberInput.d.ts +1 -1
- package/dist/components/EstimateCost/Components/NumberInput.js +18 -10
- package/dist/components/EstimateCost/Components/Region.d.ts +2 -2
- package/dist/components/EstimateCost/Components/Region.js +44 -33
- package/dist/components/EstimateCost/Components/Regular.d.ts +3 -2
- package/dist/components/EstimateCost/Components/Regular.js +21 -29
- package/dist/components/EstimateCost/Components/Strong.d.ts +3 -10
- package/dist/components/EstimateCost/Components/Strong.js +13 -24
- package/dist/components/EstimateCost/Components/Unit.d.ts +3 -1
- package/dist/components/EstimateCost/Components/Unit.js +23 -31
- package/dist/components/EstimateCost/Components/Zone.d.ts +3 -1
- package/dist/components/EstimateCost/Components/Zone.js +42 -32
- package/dist/components/EstimateCost/Components/components.css.d.ts +77 -0
- package/dist/components/EstimateCost/Components/components.css.js +124 -0
- package/dist/components/EstimateCost/EstimateCost.d.ts +29 -29
- package/dist/components/EstimateCost/EstimateCost.js +74 -25
- package/dist/components/EstimateCost/EstimateCostContent.d.ts +1 -1
- package/dist/components/EstimateCost/EstimateCostContent.js +270 -174
- package/dist/components/EstimateCost/EstimateCostProvider.d.ts +1 -1
- package/dist/components/EstimateCost/EstimateCostProvider.js +24 -21
- package/dist/components/EstimateCost/OverlayComponent.d.ts +1 -1
- package/dist/components/EstimateCost/OverlayComponent.js +57 -81
- package/dist/components/EstimateCost/OverlayContext.d.ts +1 -1
- package/dist/components/EstimateCost/OverlayContext.js +2 -4
- package/dist/components/EstimateCost/constants.js +0 -4
- package/dist/components/EstimateCost/styles.css.d.ts +76 -0
- package/dist/components/EstimateCost/styles.css.js +50 -0
- package/dist/components/EstimateCost/types.d.ts +2 -1
- package/dist/components/FAQ/index.d.ts +3 -1
- package/dist/components/FAQ/index.js +4 -3
- package/dist/components/InfoTable/InfoTable.d.ts +9 -6
- package/dist/components/InfoTable/InfoTable.js +14 -18
- package/dist/components/InfoTable/components/Cell.d.ts +3 -6
- package/dist/components/InfoTable/components/Cell.js +28 -34
- package/dist/components/InfoTable/components/Row.d.ts +3 -14
- package/dist/components/InfoTable/components/Row.js +25 -18
- package/dist/components/InfoTable/context.d.ts +3 -0
- package/dist/components/InfoTable/context.js +5 -0
- package/dist/components/InfoTable/styles.css.d.ts +6 -0
- package/dist/components/InfoTable/styles.css.js +15 -0
- package/dist/components/Navigation/Footer.d.ts +1 -1
- package/dist/components/Navigation/Footer.js +35 -33
- package/dist/components/Navigation/Header.d.ts +1 -1
- package/dist/components/Navigation/Header.js +13 -26
- package/dist/components/Navigation/Navigation.d.ts +11 -8
- package/dist/components/Navigation/Navigation.js +2 -5
- package/dist/components/Navigation/NavigationContent.d.ts +1 -1
- package/dist/components/Navigation/NavigationContent.js +60 -71
- package/dist/components/Navigation/NavigationProvider.d.ts +1 -1
- package/dist/components/Navigation/NavigationProvider.js +108 -70
- package/dist/components/Navigation/animations.css.d.ts +6 -0
- package/dist/components/Navigation/components/Group.d.ts +3 -2
- package/dist/components/Navigation/components/Group.js +21 -43
- package/dist/components/Navigation/components/Item.d.ts +3 -2
- package/dist/components/Navigation/components/Item.js +552 -405
- package/dist/components/Navigation/components/ItemProvider.d.ts +1 -1
- package/dist/components/Navigation/components/ItemProvider.js +2 -4
- package/dist/components/Navigation/components/PinnedItems.d.ts +3 -2
- package/dist/components/Navigation/components/PinnedItems.js +94 -74
- package/dist/components/Navigation/components/Separator.d.ts +1 -1
- package/dist/components/Navigation/components/Separator.js +3 -11
- package/dist/components/Navigation/components/items.css.d.ts +70 -0
- package/dist/components/Navigation/components/items.css.js +47 -0
- package/dist/components/Navigation/components/styles.css.d.ts +23 -0
- package/dist/components/Navigation/components/styles.css.js +17 -0
- package/dist/components/Navigation/constants.d.ts +0 -12
- package/dist/components/Navigation/constants.js +1 -28
- package/dist/components/Navigation/styles.css.d.ts +33 -0
- package/dist/components/Navigation/styles.css.js +22 -0
- package/dist/components/Navigation/types.d.ts +2 -1
- package/dist/components/Navigation/variables.css.d.ts +1 -0
- package/dist/components/Navigation/variables.css.js +5 -0
- package/dist/components/OfferList/OfferList.d.ts +8 -5
- package/dist/components/OfferList/OfferList.js +43 -22
- package/dist/components/OfferList/OfferListProvider.d.ts +1 -1
- package/dist/components/OfferList/OfferListProvider.js +25 -15
- package/dist/components/OfferList/components/Banner.d.ts +1 -1
- package/dist/components/OfferList/components/Banner.js +32 -95
- package/dist/components/OfferList/components/Cell.d.ts +1 -1
- package/dist/components/OfferList/components/Cell.js +16 -37
- package/dist/components/OfferList/components/Row.d.ts +4 -2
- package/dist/components/OfferList/components/Row.js +141 -125
- package/dist/components/OfferList/styles.css.d.ts +42 -0
- package/dist/components/OfferList/styles.css.js +38 -0
- package/dist/components/OrderSummary/NonScrollableContent.d.ts +1 -1
- package/dist/components/OrderSummary/NonScrollableContent.js +70 -34
- package/dist/components/OrderSummary/Provider.js +1 -4
- package/dist/components/OrderSummary/ScrollableContent.d.ts +1 -1
- package/dist/components/OrderSummary/ScrollableContent.js +175 -68
- package/dist/components/OrderSummary/constants.js +7 -1
- package/dist/components/OrderSummary/helpers.js +39 -21
- package/dist/components/OrderSummary/index.d.ts +1 -1
- package/dist/components/OrderSummary/index.js +139 -83
- package/dist/components/OrderSummary/styles.css.d.ts +8 -0
- package/dist/components/OrderSummary/styles.css.js +19 -0
- package/dist/components/OrderSummary/types.d.ts +2 -1
- package/dist/components/Plans/FeatureHint.d.ts +1 -1
- package/dist/components/Plans/FeatureHint.js +27 -25
- package/dist/components/Plans/PlanHeader.d.ts +1 -1
- package/dist/components/Plans/PlanHeader.js +80 -84
- package/dist/components/Plans/index.d.ts +3 -1
- package/dist/components/Plans/index.js +150 -109
- package/dist/components/Plans/styles.css.d.ts +61 -0
- package/dist/components/Plans/styles.css.js +26 -0
- package/dist/components/SteppedListCard/Step.d.ts +6 -1
- package/dist/components/SteppedListCard/Step.js +44 -32
- package/dist/components/SteppedListCard/SteppedListCard.d.ts +9 -5
- package/dist/components/SteppedListCard/SteppedListCard.js +70 -45
- package/dist/components/SteppedListCard/SteppedListContent.d.ts +4 -3
- package/dist/components/SteppedListCard/SteppedListContent.js +20 -51
- package/dist/components/SteppedListCard/helper.d.ts +1 -1
- package/dist/components/SteppedListCard/helper.js +4 -1
- package/dist/components/SteppedListCard/styles.css.d.ts +8 -0
- package/dist/components/SteppedListCard/styles.css.js +19 -0
- package/dist/plus.css +1 -1
- package/package.json +13 -16
- package/dist/components/CodeEditor/CodeEditor.cjs +0 -49
- package/dist/components/CodeEditor/styles.css.cjs +0 -9
- package/dist/components/ContentCard/Skeleton.cjs +0 -23
- package/dist/components/ContentCard/index.cjs +0 -61
- package/dist/components/ContentCard/styles.css.cjs +0 -28
- package/dist/components/ContentCardGroup/Card.cjs +0 -94
- package/dist/components/ContentCardGroup/SkeletonCard.cjs +0 -35
- package/dist/components/ContentCardGroup/index.cjs +0 -31
- package/dist/components/Conversation/index.cjs +0 -127
- package/dist/components/CustomerSatisfaction/assets/1-5.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/1-5NB.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/2-5.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/2-5NB.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/3-5.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/3-5NB.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/4-5.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/4-5NB.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/5-5.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/5-5NB.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/index.cjs +0 -123
- package/dist/components/EstimateCost/Components/CustomUnitInput.cjs +0 -34
- package/dist/components/EstimateCost/Components/Item.cjs +0 -303
- package/dist/components/EstimateCost/Components/LineThrough.cjs +0 -19
- package/dist/components/EstimateCost/Components/NumberInput.cjs +0 -31
- package/dist/components/EstimateCost/Components/Region.cjs +0 -43
- package/dist/components/EstimateCost/Components/Regular.cjs +0 -37
- package/dist/components/EstimateCost/Components/Strong.cjs +0 -30
- package/dist/components/EstimateCost/Components/Unit.cjs +0 -53
- package/dist/components/EstimateCost/Components/Zone.cjs +0 -42
- package/dist/components/EstimateCost/EstimateCost.cjs +0 -90
- package/dist/components/EstimateCost/EstimateCostContent.cjs +0 -256
- package/dist/components/EstimateCost/EstimateCostProvider.cjs +0 -37
- package/dist/components/EstimateCost/OverlayComponent.cjs +0 -123
- package/dist/components/EstimateCost/OverlayContext.cjs +0 -15
- package/dist/components/EstimateCost/componentStyle.cjs +0 -221
- package/dist/components/EstimateCost/componentStyle.d.ts +0 -106
- package/dist/components/EstimateCost/componentStyle.js +0 -219
- package/dist/components/EstimateCost/constants.cjs +0 -32
- package/dist/components/EstimateCost/helper.cjs +0 -16
- package/dist/components/EstimateCost/locales/en.cjs +0 -23
- package/dist/components/FAQ/index.cjs +0 -48
- package/dist/components/FAQ/styles.css.cjs +0 -5
- package/dist/components/InfoTable/InfoTable.cjs +0 -32
- package/dist/components/InfoTable/components/Cell.cjs +0 -44
- package/dist/components/InfoTable/components/Row.cjs +0 -26
- package/dist/components/Navigation/Footer.cjs +0 -71
- package/dist/components/Navigation/Header.cjs +0 -36
- package/dist/components/Navigation/Navigation.cjs +0 -18
- package/dist/components/Navigation/NavigationContent.cjs +0 -163
- package/dist/components/Navigation/NavigationProvider.cjs +0 -129
- package/dist/components/Navigation/components/Group.cjs +0 -62
- package/dist/components/Navigation/components/Item.cjs +0 -429
- package/dist/components/Navigation/components/ItemProvider.cjs +0 -14
- package/dist/components/Navigation/components/PinnedItems.cjs +0 -116
- package/dist/components/Navigation/components/Separator.cjs +0 -18
- package/dist/components/Navigation/constants.cjs +0 -37
- package/dist/components/Navigation/locales/en.cjs +0 -11
- package/dist/components/OfferList/OfferList.cjs +0 -58
- package/dist/components/OfferList/OfferListProvider.cjs +0 -38
- package/dist/components/OfferList/components/Banner.cjs +0 -108
- package/dist/components/OfferList/components/Cell.cjs +0 -50
- package/dist/components/OfferList/components/Row.cjs +0 -192
- package/dist/components/OrderSummary/NonScrollableContent.cjs +0 -68
- package/dist/components/OrderSummary/Provider.cjs +0 -18
- package/dist/components/OrderSummary/ScrollableContent.cjs +0 -109
- package/dist/components/OrderSummary/constants.cjs +0 -12
- package/dist/components/OrderSummary/helpers.cjs +0 -91
- package/dist/components/OrderSummary/index.cjs +0 -135
- package/dist/components/OrderSummary/locales/en.cjs +0 -11
- package/dist/components/Plans/FeatureHint.cjs +0 -42
- package/dist/components/Plans/PlanHeader.cjs +0 -102
- package/dist/components/Plans/index.cjs +0 -152
- package/dist/components/Plans/locales/en.cjs +0 -7
- package/dist/components/SteppedListCard/Step.cjs +0 -51
- package/dist/components/SteppedListCard/SteppedListCard.cjs +0 -82
- package/dist/components/SteppedListCard/SteppedListContent.cjs +0 -86
- package/dist/components/SteppedListCard/helper.cjs +0 -38
- package/dist/index.cjs +0 -33
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
type
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
type LineThroughProps = ComponentProps<'span'> & {
|
|
2
3
|
isActive?: boolean;
|
|
3
4
|
};
|
|
4
|
-
export declare const LineThrough: import("
|
|
5
|
-
theme?: import("@emotion/react").Theme;
|
|
6
|
-
as?: React.ElementType;
|
|
7
|
-
} & LineThroughProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
5
|
+
export declare const LineThrough: ({ isActive, className, ...props }: LineThroughProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
6
|
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
const LineThrough =
|
|
5
|
-
shouldForwardProp: (prop) => !["isActive"].includes(prop),
|
|
6
|
-
target: "e1d1k6i0"
|
|
7
|
-
} : {
|
|
8
|
-
shouldForwardProp: (prop) => !["isActive"].includes(prop),
|
|
9
|
-
target: "e1d1k6i0",
|
|
10
|
-
label: "LineThrough"
|
|
11
|
-
})(({
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { estimateCostLineThrough } from "./components.css.js";
|
|
4
|
+
const LineThrough = ({
|
|
12
5
|
isActive,
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}) => /* @__PURE__ */ jsx(
|
|
9
|
+
"span",
|
|
10
|
+
{
|
|
11
|
+
className: `${className ? `${className} ` : ""} ${isActive ? estimateCostLineThrough : ""}`,
|
|
12
|
+
...props
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
15
|
export {
|
|
16
16
|
LineThrough
|
|
17
17
|
};
|
|
@@ -6,5 +6,5 @@ type NumberInputProps = {
|
|
|
6
6
|
maxValue?: number;
|
|
7
7
|
controls?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export declare const NumberInput: ({ amount, minValue, maxValue, getAmountValue, itemCallback, controls, }: NumberInputProps) => import("
|
|
9
|
+
export declare const NumberInput: ({ amount, minValue, maxValue, getAmountValue, itemCallback, controls, }: NumberInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx } from "
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { NumberInput as NumberInput$1 } from "@ultraviolet/ui";
|
|
4
4
|
import { useState, useEffect } from "react";
|
|
5
|
-
import { ItemResourceName } from "../componentStyle.js";
|
|
6
5
|
import { useOverlay } from "../OverlayContext.js";
|
|
6
|
+
import { estimateCostItemResourceName } from "./components.css.js";
|
|
7
7
|
import { Regular } from "./Regular.js";
|
|
8
8
|
const NumberInput = ({
|
|
9
9
|
amount,
|
|
@@ -13,18 +13,26 @@ const NumberInput = ({
|
|
|
13
13
|
itemCallback,
|
|
14
14
|
controls = true
|
|
15
15
|
}) => {
|
|
16
|
-
const {
|
|
17
|
-
isOverlay
|
|
18
|
-
} = useOverlay();
|
|
16
|
+
const { isOverlay } = useOverlay();
|
|
19
17
|
const [value, setValue] = useState(amount);
|
|
20
18
|
useEffect(() => {
|
|
21
19
|
getAmountValue?.(amount);
|
|
22
20
|
}, [getAmountValue, amount]);
|
|
23
|
-
return isOverlay ? /* @__PURE__ */ jsx(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
return isOverlay ? /* @__PURE__ */ jsx("div", { className: estimateCostItemResourceName(), children: /* @__PURE__ */ jsx(Regular, { children: amount }) }) : /* @__PURE__ */ jsx(
|
|
22
|
+
NumberInput$1,
|
|
23
|
+
{
|
|
24
|
+
controls,
|
|
25
|
+
max: maxValue,
|
|
26
|
+
min: minValue,
|
|
27
|
+
onChange: (newValue) => {
|
|
28
|
+
setValue(newValue);
|
|
29
|
+
itemCallback?.(newValue, true);
|
|
30
|
+
getAmountValue?.(newValue);
|
|
31
|
+
},
|
|
32
|
+
size: "small",
|
|
33
|
+
value
|
|
34
|
+
}
|
|
35
|
+
);
|
|
28
36
|
};
|
|
29
37
|
export {
|
|
30
38
|
NumberInput
|
|
@@ -17,6 +17,6 @@ type RegionProps = {
|
|
|
17
17
|
image: string;
|
|
18
18
|
noBorder?: boolean;
|
|
19
19
|
noPrice?: boolean;
|
|
20
|
-
} & Pick<ComponentProps<typeof Item>, 'hideFromOverlay'>;
|
|
21
|
-
export declare const Region: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, hideFromOverlay, }: RegionProps) => import("
|
|
20
|
+
} & Pick<ComponentProps<typeof Item>, 'hideFromOverlay' | 'style'>;
|
|
21
|
+
export declare const Region: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, hideFromOverlay, style, }: RegionProps) => import("react/jsx-runtime").JSX.Element>;
|
|
22
22
|
export {};
|
|
@@ -1,41 +1,52 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx, jsxs } from "
|
|
3
|
-
import _styled from "@emotion/styled/base";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { memo } from "react";
|
|
5
4
|
import { useEstimateCost } from "../EstimateCostProvider.js";
|
|
5
|
+
import { estimateCostImage } from "../styles.css.js";
|
|
6
6
|
import { Item } from "./Item.js";
|
|
7
7
|
import { Strong } from "./Strong.js";
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
8
|
+
const Region = memo(
|
|
9
|
+
({
|
|
10
|
+
label,
|
|
11
|
+
image,
|
|
12
|
+
shouldBeHidden = false,
|
|
13
|
+
priceText,
|
|
14
|
+
animated = false,
|
|
15
|
+
isFirstElement,
|
|
16
|
+
isLastElement,
|
|
17
|
+
productsCallback,
|
|
18
|
+
iteration,
|
|
19
|
+
discount,
|
|
20
|
+
noBorder,
|
|
21
|
+
noPrice,
|
|
22
|
+
hideFromOverlay,
|
|
23
|
+
style
|
|
24
|
+
}) => {
|
|
25
|
+
const { locales } = useEstimateCost();
|
|
26
|
+
return /* @__PURE__ */ jsx(
|
|
27
|
+
Item,
|
|
28
|
+
{
|
|
29
|
+
animated,
|
|
30
|
+
discount,
|
|
31
|
+
hideFromOverlay,
|
|
32
|
+
isFirstElement,
|
|
33
|
+
isLastElement,
|
|
34
|
+
iteration,
|
|
35
|
+
label: locales["estimate.cost.region.label"],
|
|
36
|
+
noBorder,
|
|
37
|
+
noPrice,
|
|
38
|
+
priceText,
|
|
39
|
+
productsCallback,
|
|
40
|
+
shouldBeHidden,
|
|
41
|
+
style,
|
|
42
|
+
children: /* @__PURE__ */ jsxs(Strong, { children: [
|
|
43
|
+
/* @__PURE__ */ jsx("img", { alt: label, className: estimateCostImage, src: image }),
|
|
44
|
+
label
|
|
45
|
+
] })
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
);
|
|
39
50
|
export {
|
|
40
51
|
Region
|
|
41
52
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
type RegularProps = {
|
|
3
3
|
variant?: 'normal' | 'small' | 'big' | 'capitalized';
|
|
4
4
|
isDisabledOnOverlay?: boolean;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
+
style?: CSSProperties;
|
|
6
7
|
className?: string;
|
|
7
8
|
};
|
|
8
|
-
export declare const Regular: import("react").MemoExoticComponent<({ variant, isDisabledOnOverlay, children, className, }: RegularProps) => import("
|
|
9
|
+
export declare const Regular: import("react").MemoExoticComponent<({ variant, isDisabledOnOverlay, children, className, style, }: RegularProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
9
10
|
export {};
|
|
@@ -1,35 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx } from "
|
|
3
|
-
import _styled from "@emotion/styled/base";
|
|
4
|
-
import { css } from "@emotion/react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
3
|
import { memo } from "react";
|
|
6
4
|
import { useOverlay } from "../OverlayContext.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}) => {
|
|
28
|
-
const {
|
|
29
|
-
isOverlay
|
|
30
|
-
} = useOverlay();
|
|
31
|
-
return !isDisabledOnOverlay || !isOverlay ? /* @__PURE__ */ jsx(StyledRegular, { className, isOverlay, variant, children }) : null;
|
|
32
|
-
});
|
|
5
|
+
import { estimateCostRegular } from "./components.css.js";
|
|
6
|
+
const Regular = memo(
|
|
7
|
+
({
|
|
8
|
+
variant = "normal",
|
|
9
|
+
isDisabledOnOverlay = false,
|
|
10
|
+
children = null,
|
|
11
|
+
className,
|
|
12
|
+
style
|
|
13
|
+
}) => {
|
|
14
|
+
const { isOverlay } = useOverlay();
|
|
15
|
+
return !isDisabledOnOverlay || !isOverlay ? /* @__PURE__ */ jsx(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
className: `${className ? `${className} ` : ""}${estimateCostRegular({ isOverlay, variant })}`,
|
|
19
|
+
style,
|
|
20
|
+
children
|
|
21
|
+
}
|
|
22
|
+
) : null;
|
|
23
|
+
}
|
|
24
|
+
);
|
|
33
25
|
export {
|
|
34
26
|
Regular
|
|
35
27
|
};
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
type StrongProps = {
|
|
3
3
|
variant?: 'normal' | 'small' | 'big' | 'capitalized';
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
isDisabledOnOverlay?: boolean;
|
|
6
|
+
style?: CSSProperties;
|
|
6
7
|
};
|
|
7
|
-
export declare const
|
|
8
|
-
variant?: "normal" | "small" | "big" | "capitalized";
|
|
9
|
-
isDisabledOnOverlay?: boolean;
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
className?: string;
|
|
12
|
-
} & {
|
|
13
|
-
theme?: import("@emotion/react").Theme;
|
|
14
|
-
} & StrongProps, {}, {}>;
|
|
15
|
-
export declare const Strong: import("react").MemoExoticComponent<({ variant, children, isDisabledOnOverlay, }: StrongProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
8
|
+
export declare const Strong: import("react").MemoExoticComponent<({ variant, children, style }: StrongProps) => import("react/jsx-runtime").JSX.Element>;
|
|
16
9
|
export {};
|
|
@@ -1,28 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx } from "
|
|
3
|
-
import _styled from "@emotion/styled/base";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { memo } from "react";
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
variant
|
|
17
|
-
}) => variant === "capitalized" ? `text-transform: capitalize;` : "", " color:", ({
|
|
18
|
-
theme
|
|
19
|
-
}) => theme.colors.neutral.textStrong, ";font-weight:500;margin-right:4px;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvRXN0aW1hdGVDb3N0L0NvbXBvbmVudHMvU3Ryb25nLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFlZSIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb2xldC9wYWNrYWdlcy9wbHVzL3NyYy9jb21wb25lbnRzL0VzdGltYXRlQ29zdC9Db21wb25lbnRzL1N0cm9uZy50c3giLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIGNsaWVudCdcblxuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgdHlwZSB7IFJlYWN0Tm9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KFxuICAgIDxTdHlsZWRTdHJvbmcgaXNEaXNhYmxlZE9uT3ZlcmxheT17aXNEaXNhYmxlZE9uT3ZlcmxheX0gdmFyaWFudD17dmFyaWFudH0+XG4gICAgICB7Y2hpbGRyZW59XG4gICAgPC9TdHlsZWRTdHJvbmc+XG4gICksXG4pXG4iXX0= */"));
|
|
20
|
-
const Strong = memo(({
|
|
21
|
-
variant = "normal",
|
|
22
|
-
children = null,
|
|
23
|
-
isDisabledOnOverlay = false
|
|
24
|
-
}) => /* @__PURE__ */ jsx(StyledStrong, { isDisabledOnOverlay, variant, children }));
|
|
4
|
+
import { estimateCostRegular, estimateCostStrong } from "./components.css.js";
|
|
5
|
+
const Strong = memo(
|
|
6
|
+
({ variant = "normal", children = null, style }) => /* @__PURE__ */ jsx(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
className: `${estimateCostRegular({ variant })} ${estimateCostStrong({ variant })}`,
|
|
10
|
+
style,
|
|
11
|
+
children
|
|
12
|
+
}
|
|
13
|
+
)
|
|
14
|
+
);
|
|
25
15
|
export {
|
|
26
|
-
Strong
|
|
27
|
-
StyledStrong
|
|
16
|
+
Strong
|
|
28
17
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
1
2
|
type UnitProps = {
|
|
2
3
|
amount?: number;
|
|
3
4
|
itemCallback?: (amount?: number, isVariant?: boolean) => void;
|
|
4
5
|
getAmountValue?: (amount?: number) => void;
|
|
5
6
|
unit?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
6
8
|
};
|
|
7
|
-
export declare const Unit: ({ amount, itemCallback, getAmountValue, unit, }: UnitProps) => import("
|
|
9
|
+
export declare const Unit: ({ amount, itemCallback, getAmountValue, unit, style, }: UnitProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
export {};
|
|
@@ -1,50 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx } from "
|
|
3
|
-
import _styled from "@emotion/styled/base";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { NumberInput } from "@ultraviolet/ui";
|
|
5
4
|
import { useState, useEffect } from "react";
|
|
6
|
-
import { ItemResourceName } from "../componentStyle.js";
|
|
7
5
|
import { useOverlay } from "../OverlayContext.js";
|
|
6
|
+
import { estimateCostItemResourceName, estimateCostNumberInput } from "./components.css.js";
|
|
8
7
|
import { Regular } from "./Regular.js";
|
|
9
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
10
|
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
11
|
-
}
|
|
12
|
-
const StyledNumberInput = /* @__PURE__ */ _styled(NumberInput, process.env.NODE_ENV === "production" ? {
|
|
13
|
-
target: "e1pr25uw0"
|
|
14
|
-
} : {
|
|
15
|
-
target: "e1pr25uw0",
|
|
16
|
-
label: "StyledNumberInput"
|
|
17
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
18
|
-
name: "l1y63n",
|
|
19
|
-
styles: "input[type='number']::-webkit-inner-spin-button,input[type='number']::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}input[type='number']{-moz-appearance:textfield;}"
|
|
20
|
-
} : {
|
|
21
|
-
name: "l1y63n",
|
|
22
|
-
styles: "input[type='number']::-webkit-inner-spin-button,input[type='number']::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}input[type='number']{-moz-appearance:textfield;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvRXN0aW1hdGVDb3N0L0NvbXBvbmVudHMvVW5pdC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUzZDIiwiZmlsZSI6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eVRleHQgPT4ge1xuICAgICAgICAgIGNvbnN0IG5ld0NhcGFjaXR5ID1cbiAgICAgICAgICAgIE51bWJlcihjYXBhY2l0eVRleHQpIDwgMCA/IDAgOiBOdW1iZXIoY2FwYWNpdHlUZXh0KVxuICAgICAgICAgIHNldENhcGFjaXR5KG5ld0NhcGFjaXR5KVxuICAgICAgICAgIGl0ZW1DYWxsYmFjaz8uKG5ld0NhcGFjaXR5LCB0cnVlKVxuICAgICAgICAgIGdldEFtb3VudFZhbHVlPy4oY2FwYWNpdHkpXG4gICAgICAgIH19XG4gICAgICAgIHBsYWNlaG9sZGVyPVwiMDBcIlxuICAgICAgICBzaXplPVwic21hbGxcIlxuICAgICAgICB1bml0PXt1bml0fVxuICAgICAgICB2YWx1ZT17Y2FwYWNpdHl9XG4gICAgICAvPlxuICAgIDwvZGl2PlxuICApXG59XG4iXX0= */",
|
|
23
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
24
|
-
});
|
|
25
8
|
const Unit = ({
|
|
26
9
|
amount,
|
|
27
10
|
itemCallback,
|
|
28
11
|
getAmountValue,
|
|
29
|
-
unit
|
|
12
|
+
unit,
|
|
13
|
+
style
|
|
30
14
|
}) => {
|
|
31
|
-
const {
|
|
32
|
-
isOverlay
|
|
33
|
-
} = useOverlay();
|
|
15
|
+
const { isOverlay } = useOverlay();
|
|
34
16
|
const [capacity, setCapacity] = useState(amount === 0 ? void 0 : amount);
|
|
35
17
|
useEffect(() => {
|
|
36
18
|
setCapacity(amount);
|
|
37
19
|
itemCallback?.(amount, true);
|
|
38
20
|
getAmountValue?.(amount);
|
|
39
21
|
}, [getAmountValue, itemCallback, capacity, amount]);
|
|
40
|
-
return isOverlay ? /* @__PURE__ */ jsx(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
22
|
+
return isOverlay ? /* @__PURE__ */ jsx("div", { className: estimateCostItemResourceName(), style, children: /* @__PURE__ */ jsx(Regular, { children: capacity }) }) : /* @__PURE__ */ jsx("div", { style: { width: "150px", ...style }, children: /* @__PURE__ */ jsx(
|
|
23
|
+
NumberInput,
|
|
24
|
+
{
|
|
25
|
+
className: estimateCostNumberInput,
|
|
26
|
+
controls: false,
|
|
27
|
+
name: "capacity",
|
|
28
|
+
onChange: (capacityText) => {
|
|
29
|
+
const newCapacity = Number(capacityText) < 0 ? 0 : Number(capacityText);
|
|
30
|
+
setCapacity(newCapacity);
|
|
31
|
+
itemCallback?.(newCapacity, true);
|
|
32
|
+
getAmountValue?.(capacity);
|
|
33
|
+
},
|
|
34
|
+
placeholder: "00",
|
|
35
|
+
size: "small",
|
|
36
|
+
unit,
|
|
37
|
+
value: capacity
|
|
38
|
+
}
|
|
39
|
+
) });
|
|
48
40
|
};
|
|
49
41
|
export {
|
|
50
42
|
Unit
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
1
2
|
import type { BareEstimateProduct, EstimateProduct, Iteration } from '../types';
|
|
2
3
|
type RegionProps = {
|
|
3
4
|
shouldBeHidden?: boolean;
|
|
@@ -15,6 +16,7 @@ type RegionProps = {
|
|
|
15
16
|
image: string;
|
|
16
17
|
noBorder?: boolean;
|
|
17
18
|
noPrice?: boolean;
|
|
19
|
+
style?: CSSProperties;
|
|
18
20
|
};
|
|
19
|
-
export declare const Zone: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, }: RegionProps) => import("
|
|
21
|
+
export declare const Zone: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, style, }: RegionProps) => import("react/jsx-runtime").JSX.Element>;
|
|
20
22
|
export {};
|
|
@@ -1,40 +1,50 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx, jsxs } from "
|
|
3
|
-
import _styled from "@emotion/styled/base";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { memo } from "react";
|
|
5
4
|
import { useEstimateCost } from "../EstimateCostProvider.js";
|
|
5
|
+
import { estimateCostImage } from "../styles.css.js";
|
|
6
6
|
import { Item } from "./Item.js";
|
|
7
7
|
import { Strong } from "./Strong.js";
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
8
|
+
const Zone = memo(
|
|
9
|
+
({
|
|
10
|
+
label,
|
|
11
|
+
image,
|
|
12
|
+
shouldBeHidden = false,
|
|
13
|
+
priceText,
|
|
14
|
+
animated = false,
|
|
15
|
+
isFirstElement,
|
|
16
|
+
isLastElement,
|
|
17
|
+
productsCallback,
|
|
18
|
+
iteration,
|
|
19
|
+
discount,
|
|
20
|
+
noBorder,
|
|
21
|
+
noPrice,
|
|
22
|
+
style
|
|
23
|
+
}) => {
|
|
24
|
+
const { locales } = useEstimateCost();
|
|
25
|
+
return /* @__PURE__ */ jsx(
|
|
26
|
+
Item,
|
|
27
|
+
{
|
|
28
|
+
animated,
|
|
29
|
+
discount,
|
|
30
|
+
isFirstElement,
|
|
31
|
+
isLastElement,
|
|
32
|
+
iteration,
|
|
33
|
+
label: locales["estimate.cost.az.label"],
|
|
34
|
+
noBorder,
|
|
35
|
+
noPrice,
|
|
36
|
+
priceText,
|
|
37
|
+
productsCallback,
|
|
38
|
+
shouldBeHidden,
|
|
39
|
+
style,
|
|
40
|
+
children: /* @__PURE__ */ jsxs(Strong, { children: [
|
|
41
|
+
/* @__PURE__ */ jsx("img", { alt: label, className: estimateCostImage, src: image }),
|
|
42
|
+
label
|
|
43
|
+
] })
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
);
|
|
38
48
|
export {
|
|
39
49
|
Zone
|
|
40
50
|
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export declare const maxWidthTextVar: `var(--${string})`;
|
|
2
|
+
export declare const maxWidthText: string;
|
|
3
|
+
export declare const estimateCostImage: string;
|
|
4
|
+
export declare const estimateCostTr: string;
|
|
5
|
+
export declare const styledDiv: string;
|
|
6
|
+
export declare const estimateCostLeftSide: string;
|
|
7
|
+
export declare const estimateCostItemResourceName: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
8
|
+
animated: {
|
|
9
|
+
true: {
|
|
10
|
+
animation: `800ms ${string}`;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
14
|
+
export declare const estimateCostResourceName: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
15
|
+
isOverlay: {
|
|
16
|
+
true: {
|
|
17
|
+
textAlign: "initial";
|
|
18
|
+
height: `var(--${string})`;
|
|
19
|
+
display: "flex";
|
|
20
|
+
flexDirection: "column";
|
|
21
|
+
WebkitBoxPack: "center";
|
|
22
|
+
justifyContent: "center";
|
|
23
|
+
};
|
|
24
|
+
false: {
|
|
25
|
+
textAlign: "right";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
isAnimated: {
|
|
29
|
+
true: {
|
|
30
|
+
animation: `${string} 800ms`;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
}>;
|
|
34
|
+
export declare const estimateCostBadgeItem: string;
|
|
35
|
+
export declare const estimateCostTextItem: string;
|
|
36
|
+
export declare const estimateCostMaxWidthText: string;
|
|
37
|
+
export declare const estimateCostTooltip: string;
|
|
38
|
+
export declare const estimateCostLineThrough: string;
|
|
39
|
+
export declare const estimateCostRegular: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
40
|
+
isOverlay: {
|
|
41
|
+
true: {
|
|
42
|
+
display: "flex";
|
|
43
|
+
};
|
|
44
|
+
false: {
|
|
45
|
+
display: "inline-flex";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
variant: {
|
|
49
|
+
normal: {};
|
|
50
|
+
big: {};
|
|
51
|
+
capitalized: {};
|
|
52
|
+
small: {
|
|
53
|
+
display: "block";
|
|
54
|
+
fontSize: number;
|
|
55
|
+
lineHeight: number;
|
|
56
|
+
color: `var(--${string})`;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}>;
|
|
60
|
+
export declare const estimateCostStrong: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
61
|
+
variant: {
|
|
62
|
+
normal: {
|
|
63
|
+
fontSize: number;
|
|
64
|
+
};
|
|
65
|
+
big: {
|
|
66
|
+
fontSize: number;
|
|
67
|
+
};
|
|
68
|
+
capitalized: {
|
|
69
|
+
fontSize: number;
|
|
70
|
+
textTransform: "capitalize";
|
|
71
|
+
};
|
|
72
|
+
small: {
|
|
73
|
+
fontSize: number;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}>;
|
|
77
|
+
export declare const estimateCostNumberInput: string;
|