@ultraviolet/plus 3.4.5 → 3.5.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/dist/.vite/license.md +3 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/defineProperty.js +15 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js +28 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js +18 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutPropertiesLoose.js +15 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/toPrimitive.js +17 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/toPropertyKey.js +12 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/typeof.js +14 -0
- package/dist/_virtual/_rolldown/runtime.js +9 -0
- package/dist/components/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/components/CodeEditor/CodeEditor.js +111 -137
- package/dist/components/CodeEditor/styles.css.js +18 -15
- package/dist/components/ContentCard/Skeleton.d.ts.map +1 -1
- package/dist/components/ContentCard/Skeleton.js +31 -27
- package/dist/components/ContentCard/index.js +107 -140
- package/dist/components/ContentCard/styles.css.d.ts +1 -1
- package/dist/components/ContentCard/styles.css.js +23 -19
- package/dist/components/ContentCardGroup/Card.js +55 -69
- package/dist/components/ContentCardGroup/SkeletonCard.js +28 -14
- package/dist/components/ContentCardGroup/index.d.ts +7 -7
- package/dist/components/ContentCardGroup/index.js +20 -25
- package/dist/components/ContentCardGroup/styles.css.js +6 -11
- package/dist/components/Conversation/index.d.ts +29 -23
- package/dist/components/Conversation/index.d.ts.map +1 -1
- package/dist/components/Conversation/index.js +46 -48
- package/dist/components/Conversation/styles.css.js +19 -13
- package/dist/components/CustomerSatisfaction/assets/1-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/1-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/2-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/2-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/3-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/3-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/4-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/4-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/5-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/5-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/index.d.ts +1 -1
- package/dist/components/CustomerSatisfaction/index.d.ts.map +1 -1
- package/dist/components/CustomerSatisfaction/index.js +85 -100
- package/dist/components/CustomerSatisfaction/styles.css.js +18 -6
- package/dist/components/EstimateCost/Components/CustomUnitInput.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/CustomUnitInput.js +39 -52
- package/dist/components/EstimateCost/Components/Item.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Item.js +223 -323
- package/dist/components/EstimateCost/Components/LineThrough.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/LineThrough.js +16 -16
- package/dist/components/EstimateCost/Components/NumberInput.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/NumberInput.js +33 -37
- package/dist/components/EstimateCost/Components/Region.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Region.js +34 -57
- package/dist/components/EstimateCost/Components/Regular.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Regular.js +21 -26
- package/dist/components/EstimateCost/Components/Strong.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Strong.js +14 -19
- package/dist/components/EstimateCost/Components/Unit.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Unit.js +47 -40
- package/dist/components/EstimateCost/Components/Zone.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Zone.js +33 -55
- package/dist/components/EstimateCost/Components/components.css.js +122 -86
- package/dist/components/EstimateCost/EstimateCost.d.ts +138 -121
- package/dist/components/EstimateCost/EstimateCost.d.ts.map +1 -1
- package/dist/components/EstimateCost/EstimateCost.js +79 -124
- package/dist/components/EstimateCost/EstimateCostContent.d.ts.map +1 -1
- package/dist/components/EstimateCost/EstimateCostContent.js +284 -394
- package/dist/components/EstimateCost/EstimateCostProvider.d.ts +1 -1
- package/dist/components/EstimateCost/EstimateCostProvider.d.ts.map +1 -1
- package/dist/components/EstimateCost/EstimateCostProvider.js +30 -37
- package/dist/components/EstimateCost/OverlayComponent.d.ts.map +1 -1
- package/dist/components/EstimateCost/OverlayComponent.js +95 -93
- package/dist/components/EstimateCost/OverlayContext.d.ts.map +1 -1
- package/dist/components/EstimateCost/OverlayContext.js +12 -10
- package/dist/components/EstimateCost/constants.js +19 -21
- package/dist/components/EstimateCost/helper.d.ts +2 -2
- package/dist/components/EstimateCost/helper.d.ts.map +1 -1
- package/dist/components/EstimateCost/helper.js +9 -14
- package/dist/components/EstimateCost/locales/en.js +24 -23
- package/dist/components/EstimateCost/styles.css.d.ts +2 -2
- package/dist/components/EstimateCost/styles.css.js +50 -36
- package/dist/components/EstimateCost/types.d.ts +1 -1
- package/dist/components/EstimateCost/types.d.ts.map +1 -1
- package/dist/components/FAQ/index.d.ts.map +1 -1
- package/dist/components/FAQ/index.js +37 -31
- package/dist/components/FAQ/styles.css.js +6 -4
- package/dist/components/InfoTable/InfoTable.d.ts +10 -13
- package/dist/components/InfoTable/InfoTable.d.ts.map +1 -1
- package/dist/components/InfoTable/InfoTable.js +24 -15
- package/dist/components/InfoTable/components/Cell.d.ts.map +1 -1
- package/dist/components/InfoTable/components/Cell.js +37 -45
- package/dist/components/InfoTable/components/Row.d.ts.map +1 -1
- package/dist/components/InfoTable/components/Row.js +19 -27
- package/dist/components/InfoTable/context.d.ts +1 -1
- package/dist/components/InfoTable/context.d.ts.map +1 -1
- package/dist/components/InfoTable/context.js +5 -3
- package/dist/components/InfoTable/styles.css.js +6 -10
- package/dist/components/Navigation/Footer.d.ts.map +1 -1
- package/dist/components/Navigation/Footer.js +59 -75
- package/dist/components/Navigation/Header.d.ts.map +1 -1
- package/dist/components/Navigation/Header.js +20 -17
- package/dist/components/Navigation/Navigation.d.ts +46 -43
- package/dist/components/Navigation/Navigation.d.ts.map +1 -1
- package/dist/components/Navigation/Navigation.js +23 -27
- package/dist/components/Navigation/NavigationContent.d.ts +1 -1
- package/dist/components/Navigation/NavigationContent.d.ts.map +1 -1
- package/dist/components/Navigation/NavigationContent.js +100 -138
- package/dist/components/Navigation/NavigationProvider.d.ts.map +1 -1
- package/dist/components/Navigation/NavigationProvider.js +116 -165
- package/dist/components/Navigation/components/Group.d.ts.map +1 -1
- package/dist/components/Navigation/components/Group.js +36 -43
- package/dist/components/Navigation/components/Item.d.ts +1 -1
- package/dist/components/Navigation/components/Item.d.ts.map +1 -1
- package/dist/components/Navigation/components/Item.js +440 -607
- package/dist/components/Navigation/components/ItemProvider.d.ts.map +1 -1
- package/dist/components/Navigation/components/ItemProvider.js +13 -8
- package/dist/components/Navigation/components/PinnedItems.d.ts.map +1 -1
- package/dist/components/Navigation/components/PinnedItems.js +101 -132
- package/dist/components/Navigation/components/Separator.js +10 -7
- package/dist/components/Navigation/components/ShowHide.d.ts +1 -1
- package/dist/components/Navigation/components/ShowHide.d.ts.map +1 -1
- package/dist/components/Navigation/components/ShowHide.js +51 -75
- package/dist/components/Navigation/components/items.css.js +72 -30
- package/dist/components/Navigation/components/styles.css.js +23 -13
- package/dist/components/Navigation/locales/en.js +12 -11
- package/dist/components/Navigation/styles.css.js +28 -14
- package/dist/components/Navigation/variables.css.js +6 -4
- package/dist/components/OfferList/OfferList.d.ts +5 -51
- package/dist/components/OfferList/OfferList.d.ts.map +1 -1
- package/dist/components/OfferList/OfferList.js +11 -78
- package/dist/components/OrderSummary/index.d.ts +5 -2
- package/dist/components/OrderSummary/index.d.ts.map +1 -1
- package/dist/components/OrderSummary/index.js +11 -204
- package/dist/components/Plans/index.d.ts +5 -21
- package/dist/components/Plans/index.d.ts.map +1 -1
- package/dist/components/Plans/index.js +11 -214
- package/dist/components/SteppedListCard/index.d.ts +5 -1
- package/dist/components/SteppedListCard/index.d.ts.map +1 -1
- package/dist/components/SteppedListCard/index.js +11 -0
- package/dist/index.js +5 -21
- package/dist/plus.css +2 -1
- package/package.json +9 -8
- package/LICENSE +0 -189
- package/dist/components/CustomerSatisfaction/assets/1-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/1-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/2-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/2-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/3-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/3-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/4-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/4-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/5-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/5-5NB.svg.js +0 -4
- package/dist/components/Navigation/constants.js +0 -10
- package/dist/components/OfferList/OfferListProvider.d.ts +0 -30
- package/dist/components/OfferList/OfferListProvider.d.ts.map +0 -1
- package/dist/components/OfferList/OfferListProvider.js +0 -48
- package/dist/components/OfferList/components/Banner.d.ts +0 -13
- package/dist/components/OfferList/components/Banner.d.ts.map +0 -1
- package/dist/components/OfferList/components/Banner.js +0 -43
- package/dist/components/OfferList/components/Cell.d.ts +0 -4
- package/dist/components/OfferList/components/Cell.d.ts.map +0 -1
- package/dist/components/OfferList/components/Cell.js +0 -35
- package/dist/components/OfferList/components/OfferListRowProvider.d.ts +0 -9
- package/dist/components/OfferList/components/OfferListRowProvider.d.ts.map +0 -1
- package/dist/components/OfferList/components/OfferListRowProvider.js +0 -10
- package/dist/components/OfferList/components/Row.d.ts +0 -18
- package/dist/components/OfferList/components/Row.d.ts.map +0 -1
- package/dist/components/OfferList/components/Row.js +0 -258
- package/dist/components/OfferList/styles.css.d.ts +0 -44
- package/dist/components/OfferList/styles.css.d.ts.map +0 -1
- package/dist/components/OfferList/styles.css.js +0 -40
- package/dist/components/OrderSummary/NonScrollableContent.d.ts +0 -20
- package/dist/components/OrderSummary/NonScrollableContent.d.ts.map +0 -1
- package/dist/components/OrderSummary/NonScrollableContent.js +0 -136
- package/dist/components/OrderSummary/Provider.d.ts +0 -15
- package/dist/components/OrderSummary/Provider.d.ts.map +0 -1
- package/dist/components/OrderSummary/Provider.js +0 -15
- package/dist/components/OrderSummary/ScrollableContent.d.ts +0 -2
- package/dist/components/OrderSummary/ScrollableContent.d.ts.map +0 -1
- package/dist/components/OrderSummary/ScrollableContent.js +0 -314
- package/dist/components/OrderSummary/constants.d.ts +0 -3
- package/dist/components/OrderSummary/constants.d.ts.map +0 -1
- package/dist/components/OrderSummary/constants.js +0 -18
- package/dist/components/OrderSummary/helpers.d.ts +0 -28
- package/dist/components/OrderSummary/helpers.d.ts.map +0 -1
- package/dist/components/OrderSummary/helpers.js +0 -156
- package/dist/components/OrderSummary/locales/en.d.ts +0 -11
- package/dist/components/OrderSummary/locales/en.d.ts.map +0 -1
- package/dist/components/OrderSummary/locales/en.js +0 -12
- package/dist/components/OrderSummary/styles.css.d.ts +0 -21
- package/dist/components/OrderSummary/styles.css.d.ts.map +0 -1
- package/dist/components/OrderSummary/styles.css.js +0 -26
- package/dist/components/OrderSummary/types.d.ts +0 -125
- package/dist/components/OrderSummary/types.d.ts.map +0 -1
- package/dist/components/Plans/FeatureHint.d.ts +0 -7
- package/dist/components/Plans/FeatureHint.d.ts.map +0 -1
- package/dist/components/Plans/FeatureHint.js +0 -42
- package/dist/components/Plans/PlanHeader.d.ts +0 -14
- package/dist/components/Plans/PlanHeader.d.ts.map +0 -1
- package/dist/components/Plans/PlanHeader.js +0 -96
- package/dist/components/Plans/locales/en.d.ts +0 -7
- package/dist/components/Plans/locales/en.d.ts.map +0 -1
- package/dist/components/Plans/locales/en.js +0 -8
- package/dist/components/Plans/styles.css.d.ts +0 -67
- package/dist/components/Plans/styles.css.d.ts.map +0 -1
- package/dist/components/Plans/styles.css.js +0 -26
- package/dist/components/Plans/types.d.ts +0 -38
- package/dist/components/Plans/types.d.ts.map +0 -1
- package/dist/components/SteppedListCard/Step.d.ts +0 -23
- package/dist/components/SteppedListCard/Step.d.ts.map +0 -1
- package/dist/components/SteppedListCard/Step.js +0 -61
- package/dist/components/SteppedListCard/SteppedListCard.d.ts +0 -69
- package/dist/components/SteppedListCard/SteppedListCard.d.ts.map +0 -1
- package/dist/components/SteppedListCard/SteppedListCard.js +0 -105
- package/dist/components/SteppedListCard/SteppedListContent.d.ts +0 -12
- package/dist/components/SteppedListCard/SteppedListContent.d.ts.map +0 -1
- package/dist/components/SteppedListCard/SteppedListContent.js +0 -53
- package/dist/components/SteppedListCard/helper.d.ts +0 -27
- package/dist/components/SteppedListCard/helper.d.ts.map +0 -1
- package/dist/components/SteppedListCard/helper.js +0 -41
- package/dist/components/SteppedListCard/styles.css.d.ts +0 -9
- package/dist/components/SteppedListCard/styles.css.d.ts.map +0 -1
- package/dist/components/SteppedListCard/styles.css.js +0 -19
|
@@ -1,39 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { NumberInput as NumberInput$1 } from "@ultraviolet/ui";
|
|
4
|
-
import { useState, useEffect } from "react";
|
|
5
|
-
import { useOverlay } from "../OverlayContext.js";
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
6
3
|
import { estimateCostItemResourceName } from "./components.css.js";
|
|
4
|
+
import { useOverlay } from "../OverlayContext.js";
|
|
7
5
|
import { Regular } from "./Regular.js";
|
|
8
|
-
|
|
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
|
-
export {
|
|
38
|
-
NumberInput
|
|
39
|
-
};
|
|
6
|
+
import { NumberInput } from "@ultraviolet/ui";
|
|
7
|
+
import { useEffect, useState } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
|
|
10
|
+
//#region src/components/EstimateCost/Components/NumberInput.tsx
|
|
11
|
+
const NumberInput$1 = /* @__PURE__ */ __name(({ amount, minValue = 0, maxValue = 100, getAmountValue, itemCallback, controls = true }) => {
|
|
12
|
+
const { isOverlay } = useOverlay();
|
|
13
|
+
const [value, setValue] = useState(amount);
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
getAmountValue === null || getAmountValue === void 0 || getAmountValue(amount);
|
|
16
|
+
}, [getAmountValue, amount]);
|
|
17
|
+
return isOverlay ? /* @__PURE__ */ jsx("div", {
|
|
18
|
+
className: estimateCostItemResourceName(),
|
|
19
|
+
children: /* @__PURE__ */ jsx(Regular, { children: amount })
|
|
20
|
+
}) : /* @__PURE__ */ jsx(NumberInput, {
|
|
21
|
+
controls,
|
|
22
|
+
max: maxValue,
|
|
23
|
+
min: minValue,
|
|
24
|
+
onChange: (newValue) => {
|
|
25
|
+
setValue(newValue);
|
|
26
|
+
itemCallback === null || itemCallback === void 0 || itemCallback(newValue, true);
|
|
27
|
+
getAmountValue === null || getAmountValue === void 0 || getAmountValue(newValue);
|
|
28
|
+
},
|
|
29
|
+
size: "small",
|
|
30
|
+
value
|
|
31
|
+
});
|
|
32
|
+
}, "NumberInput");
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
export { NumberInput$1 as NumberInput };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Region.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Region.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItD,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAC/E,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAG7B,KAAK,WAAW,GAAG;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,CAAC,EAAE;QACjB,GAAG,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAA;QACvC,MAAM,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAA;KAC/C,CAAA;IACD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,CAAA;AAElE,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Region.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Region.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItD,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAC/E,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAG7B,KAAK,WAAW,GAAG;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,CAAC,EAAE;QACjB,GAAG,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAA;QACvC,MAAM,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAA;KAC/C,CAAA;IACD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,CAAA;AAElE,eAAO,MAAM,MAAM,wQAgDlB,CAAA"}
|
|
@@ -1,61 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { memo } from "react";
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
4
3
|
import { useEstimateCost } from "../EstimateCostProvider.js";
|
|
5
4
|
import { estimateCostImage } from "../styles.css.js";
|
|
6
5
|
import { Item } from "./Item.js";
|
|
7
6
|
import { Strong } from "./Strong.js";
|
|
8
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
shouldBeHidden,
|
|
41
|
-
style,
|
|
42
|
-
children: /* @__PURE__ */ jsxs(Strong, { children: [
|
|
43
|
-
/* @__PURE__ */ jsx(
|
|
44
|
-
"img",
|
|
45
|
-
{
|
|
46
|
-
alt: label,
|
|
47
|
-
className: estimateCostImage,
|
|
48
|
-
height: "auto",
|
|
49
|
-
src: image,
|
|
50
|
-
width: "auto"
|
|
51
|
-
}
|
|
52
|
-
),
|
|
53
|
-
label
|
|
54
|
-
] })
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
export {
|
|
60
|
-
Region
|
|
61
|
-
};
|
|
7
|
+
import { memo } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
|
|
10
|
+
//#region src/components/EstimateCost/Components/Region.tsx
|
|
11
|
+
const Region = memo(({ label, image, shouldBeHidden = false, priceText, animated = false, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, hideFromOverlay, style }) => {
|
|
12
|
+
const { locales } = useEstimateCost();
|
|
13
|
+
return /* @__PURE__ */ jsx(Item, {
|
|
14
|
+
animated,
|
|
15
|
+
discount,
|
|
16
|
+
hideFromOverlay,
|
|
17
|
+
isFirstElement,
|
|
18
|
+
isLastElement,
|
|
19
|
+
iteration,
|
|
20
|
+
label: locales["estimate.cost.region.label"],
|
|
21
|
+
noBorder,
|
|
22
|
+
noPrice,
|
|
23
|
+
priceText,
|
|
24
|
+
productsCallback,
|
|
25
|
+
shouldBeHidden,
|
|
26
|
+
style,
|
|
27
|
+
children: /* @__PURE__ */ jsxs(Strong, { children: [/* @__PURE__ */ jsx("img", {
|
|
28
|
+
alt: label,
|
|
29
|
+
className: estimateCostImage,
|
|
30
|
+
height: "auto",
|
|
31
|
+
src: image,
|
|
32
|
+
width: "auto"
|
|
33
|
+
}), label] })
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { Region };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Regular.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Regular.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrD,KAAK,YAAY,GAAG;IAClB,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,aAAa,CAAA;IACpD,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Regular.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Regular.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrD,KAAK,YAAY,GAAG;IAClB,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,aAAa,CAAA;IACpD,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,OAAO,sKAmBnB,CAAA"}
|
|
@@ -1,28 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { estimateCostRegular } from "./components.css.js";
|
|
4
|
+
import { useOverlay } from "../OverlayContext.js";
|
|
3
5
|
import { cn } from "@ultraviolet/utils";
|
|
4
6
|
import { memo } from "react";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
export {
|
|
27
|
-
Regular
|
|
28
|
-
};
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
|
|
9
|
+
//#region src/components/EstimateCost/Components/Regular.tsx
|
|
10
|
+
const Regular = memo(({ variant = "normal", isDisabledOnOverlay = false, children = null, className, style }) => {
|
|
11
|
+
const { isOverlay } = useOverlay();
|
|
12
|
+
return isDisabledOnOverlay && isOverlay ? null : /* @__PURE__ */ jsx("div", {
|
|
13
|
+
className: cn(className, estimateCostRegular({
|
|
14
|
+
isOverlay,
|
|
15
|
+
variant
|
|
16
|
+
})),
|
|
17
|
+
style,
|
|
18
|
+
children
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { Regular };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Strong.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Strong.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIrD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,aAAa,CAAA;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AACD,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Strong.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Strong.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIrD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,aAAa,CAAA;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AACD,eAAO,MAAM,MAAM,6HAYlB,CAAA"}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { estimateCostRegular, estimateCostStrong } from "./components.css.js";
|
|
3
4
|
import { cn } from "@ultraviolet/utils";
|
|
4
5
|
import { memo } from "react";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
)
|
|
18
|
-
);
|
|
19
|
-
export {
|
|
20
|
-
Strong
|
|
21
|
-
};
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/EstimateCost/Components/Strong.tsx
|
|
9
|
+
const Strong = memo(({ variant = "normal", children = null, style }) => /* @__PURE__ */ jsx("div", {
|
|
10
|
+
className: cn(estimateCostRegular({ variant }), estimateCostStrong({ variant })),
|
|
11
|
+
style,
|
|
12
|
+
children
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Strong };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Unit.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Unit.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAS1C,KAAK,SAAS,GAAG;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC7D,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Unit.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Unit.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAS1C,KAAK,SAAS,GAAG;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC7D,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,IAAI,gHAwChB,CAAA"}
|
|
@@ -1,43 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { NumberInput } from "@ultraviolet/ui";
|
|
4
|
-
import { useState, useEffect } from "react";
|
|
5
|
-
import { useOverlay } from "../OverlayContext.js";
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
6
3
|
import { estimateCostItemResourceName, estimateCostNumberInput } from "./components.css.js";
|
|
4
|
+
import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
5
|
+
import { useOverlay } from "../OverlayContext.js";
|
|
7
6
|
import { Regular } from "./Regular.js";
|
|
8
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
7
|
+
import { NumberInput } from "@ultraviolet/ui";
|
|
8
|
+
import { useEffect, useState } from "react";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
|
|
11
|
+
//#region src/components/EstimateCost/Components/Unit.tsx
|
|
12
|
+
const Unit = ({ amount, itemCallback, getAmountValue, unit, style }) => {
|
|
13
|
+
const { isOverlay } = useOverlay();
|
|
14
|
+
const [capacity, setCapacity] = useState(amount === 0 ? void 0 : amount);
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
setCapacity(amount);
|
|
17
|
+
itemCallback === null || itemCallback === void 0 || itemCallback(amount, true);
|
|
18
|
+
getAmountValue === null || getAmountValue === void 0 || getAmountValue(amount);
|
|
19
|
+
}, [
|
|
20
|
+
getAmountValue,
|
|
21
|
+
itemCallback,
|
|
22
|
+
capacity,
|
|
23
|
+
amount
|
|
24
|
+
]);
|
|
25
|
+
return isOverlay ? /* @__PURE__ */ jsx("div", {
|
|
26
|
+
className: estimateCostItemResourceName(),
|
|
27
|
+
style,
|
|
28
|
+
children: /* @__PURE__ */ jsx(Regular, { children: capacity })
|
|
29
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
30
|
+
style: _objectSpread2({ width: "150px" }, style),
|
|
31
|
+
children: /* @__PURE__ */ jsx(NumberInput, {
|
|
32
|
+
className: estimateCostNumberInput,
|
|
33
|
+
controls: false,
|
|
34
|
+
name: "capacity",
|
|
35
|
+
onChange: (capacityText) => {
|
|
36
|
+
const newCapacity = Number(capacityText) < 0 ? 0 : Number(capacityText);
|
|
37
|
+
setCapacity(newCapacity);
|
|
38
|
+
itemCallback === null || itemCallback === void 0 || itemCallback(newCapacity, true);
|
|
39
|
+
getAmountValue === null || getAmountValue === void 0 || getAmountValue(capacity);
|
|
40
|
+
},
|
|
41
|
+
placeholder: "00",
|
|
42
|
+
size: "small",
|
|
43
|
+
unit,
|
|
44
|
+
value: capacity
|
|
45
|
+
})
|
|
46
|
+
});
|
|
43
47
|
};
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
export { Unit };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Zone.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Zone.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAI1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAI/E,KAAK,WAAW,GAAG;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,CAAC,EAAE;QACjB,GAAG,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAA;QACvC,MAAM,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAA;KAC/C,CAAA;IACD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"Zone.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Zone.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAI1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAI/E,KAAK,WAAW,GAAG;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,CAAC,EAAE;QACjB,GAAG,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAA;QACvC,MAAM,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAA;KAC/C,CAAA;IACD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,IAAI,uPA8ChB,CAAA"}
|
|
@@ -1,59 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { memo } from "react";
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
4
3
|
import { useEstimateCost } from "../EstimateCostProvider.js";
|
|
5
4
|
import { estimateCostImage } from "../styles.css.js";
|
|
6
5
|
import { Item } from "./Item.js";
|
|
7
6
|
import { Strong } from "./Strong.js";
|
|
8
|
-
|
|
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
|
-
|
|
39
|
-
style,
|
|
40
|
-
children: /* @__PURE__ */ jsxs(Strong, { children: [
|
|
41
|
-
/* @__PURE__ */ jsx(
|
|
42
|
-
"img",
|
|
43
|
-
{
|
|
44
|
-
alt: label,
|
|
45
|
-
className: estimateCostImage,
|
|
46
|
-
height: "auto",
|
|
47
|
-
src: image,
|
|
48
|
-
width: "auto"
|
|
49
|
-
}
|
|
50
|
-
),
|
|
51
|
-
label
|
|
52
|
-
] })
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
export {
|
|
58
|
-
Zone
|
|
59
|
-
};
|
|
7
|
+
import { memo } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
|
|
10
|
+
//#region src/components/EstimateCost/Components/Zone.tsx
|
|
11
|
+
const Zone = memo(({ label, image, shouldBeHidden = false, priceText, animated = false, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, style }) => {
|
|
12
|
+
const { locales } = useEstimateCost();
|
|
13
|
+
return /* @__PURE__ */ jsx(Item, {
|
|
14
|
+
animated,
|
|
15
|
+
discount,
|
|
16
|
+
isFirstElement,
|
|
17
|
+
isLastElement,
|
|
18
|
+
iteration,
|
|
19
|
+
label: locales["estimate.cost.az.label"],
|
|
20
|
+
noBorder,
|
|
21
|
+
noPrice,
|
|
22
|
+
priceText,
|
|
23
|
+
productsCallback,
|
|
24
|
+
shouldBeHidden,
|
|
25
|
+
style,
|
|
26
|
+
children: /* @__PURE__ */ jsxs(Strong, { children: [/* @__PURE__ */ jsx("img", {
|
|
27
|
+
alt: label,
|
|
28
|
+
className: estimateCostImage,
|
|
29
|
+
height: "auto",
|
|
30
|
+
src: image,
|
|
31
|
+
width: "auto"
|
|
32
|
+
}), label] })
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
export { Zone };
|