@ultraviolet/plus 3.4.5 → 3.5.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/.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 +24 -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 +18 -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 +29 -14
- package/dist/components/Navigation/variables.css.js +4 -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 +8 -7
- 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,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import EstimateCostLocales from './locales/en';
|
|
3
3
|
export declare const useEstimateCost: () => {
|
|
4
|
-
locales: Record<
|
|
4
|
+
locales: Record<"estimate.cost.az.label" | "estimate.cost.beta.badge" | "estimate.cost.beta.discount" | "estimate.cost.beta.free" | "estimate.cost.description" | "estimate.cost.fees.commitment" | "estimate.cost.fees.monthly.title" | "estimate.cost.fees.oneTime.title" | "estimate.cost.label" | "estimate.cost.notDefined" | "estimate.cost.region.label" | "estimate.cost.submit.label" | "estimate.cost.units.days.label" | "estimate.cost.units.gb.label" | "estimate.cost.units.hours.label" | "estimate.cost.units.minutes.label" | "estimate.cost.units.months.label" | "estimate.cost.units.seconds.label" | "estimate.cost.units.years.label", string>;
|
|
5
5
|
formatNumber: (number: number, options: FormatNumberOption) => string;
|
|
6
6
|
};
|
|
7
7
|
type EstimateCostProviderProps = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EstimateCostProvider.d.ts","sourceRoot":"","sources":["../../../src/components/EstimateCost/EstimateCostProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,mBAAmB,MAAM,cAAc,CAAA;AAQ9C,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"EstimateCostProvider.d.ts","sourceRoot":"","sources":["../../../src/components/EstimateCost/EstimateCostProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,mBAAmB,MAAM,cAAc,CAAA;AAQ9C,eAAO,MAAM,eAAe;;;CAAwC,CAAA;AAEpE,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,OAAO,mBAAmB,EAAE,MAAM,CAAC,CAAA;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,eAAe,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAA;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;IACzC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,oBAAoB,yHAsChC,CAAA"}
|
|
@@ -1,40 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import en_default from "./locales/en.js";
|
|
4
|
+
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
5
|
+
import { createContext, useCallback, useContext, useMemo } from "react";
|
|
2
6
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const EstimateCostContext = createContext({
|
|
7
|
+
|
|
8
|
+
//#region src/components/EstimateCost/EstimateCostProvider.tsx
|
|
9
|
+
const EstimateCostContext = createContext({
|
|
10
|
+
formatNumber: () => "",
|
|
11
|
+
locales: en_default
|
|
12
|
+
});
|
|
6
13
|
const useEstimateCost = () => useContext(EstimateCostContext);
|
|
7
|
-
const EstimateCostProvider = ({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
});
|
|
24
|
-
return numberFormat.format(number);
|
|
25
|
-
},
|
|
26
|
-
[currency, numberLocales]
|
|
27
|
-
);
|
|
28
|
-
const value = useMemo(
|
|
29
|
-
() => ({
|
|
30
|
-
formatNumber,
|
|
31
|
-
locales: newLocales
|
|
32
|
-
}),
|
|
33
|
-
[formatNumber, newLocales]
|
|
34
|
-
);
|
|
35
|
-
return /* @__PURE__ */ jsx(EstimateCostContext.Provider, { value, children });
|
|
36
|
-
};
|
|
37
|
-
export {
|
|
38
|
-
EstimateCostProvider,
|
|
39
|
-
useEstimateCost
|
|
14
|
+
const EstimateCostProvider = ({ children, locales, currency, numberLocales }) => {
|
|
15
|
+
const newLocales = useMemo(() => locales ? _objectSpread2(_objectSpread2({}, en_default), locales) : en_default, [locales]);
|
|
16
|
+
const formatNumber = useCallback((number, options) => {
|
|
17
|
+
return new Intl.NumberFormat(numberLocales, _objectSpread2({
|
|
18
|
+
currency,
|
|
19
|
+
style: "currency"
|
|
20
|
+
}, options)).format(number);
|
|
21
|
+
}, [currency, numberLocales]);
|
|
22
|
+
const value = useMemo(() => ({
|
|
23
|
+
formatNumber,
|
|
24
|
+
locales: newLocales
|
|
25
|
+
}), [formatNumber, newLocales]);
|
|
26
|
+
return /* @__PURE__ */ jsx(EstimateCostContext.Provider, {
|
|
27
|
+
value,
|
|
28
|
+
children
|
|
29
|
+
});
|
|
40
30
|
};
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { EstimateCostProvider, useEstimateCost };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlayComponent.d.ts","sourceRoot":"","sources":["../../../src/components/EstimateCost/OverlayComponent.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAgB3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAOpC,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,EAAE,SAAS,CAAA;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,KAAK,CAAA;IACX,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE;QACpB,QAAQ,EAAE,SAAS,CAAA;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;KACnB,KAAK,GAAG,CAAC,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE;QACrB,QAAQ,CAA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,CAAA"}
|
|
@@ -1,97 +1,99 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { CalculatorIcon } from "@ultraviolet/icons/CalculatorIcon";
|
|
4
|
-
import { Stack, Badge } from "@ultraviolet/ui";
|
|
5
|
-
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
6
|
-
import { useMemo, Children, cloneElement, isValidElement } from "react";
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
7
3
|
import { estimateCostResourceName } from "./Components/components.css.js";
|
|
8
|
-
import {
|
|
9
|
-
import { Strong } from "./Components/Strong.js";
|
|
10
|
-
import { multiplier, maximumFractionDigits } from "./constants.js";
|
|
4
|
+
import { maximumFractionDigits, multiplier } from "./constants.js";
|
|
11
5
|
import { useEstimateCost } from "./EstimateCostProvider.js";
|
|
12
6
|
import { OverlayContextProvider } from "./OverlayContext.js";
|
|
13
|
-
import {
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
7
|
+
import { estimateCostBadge, estimateCostList, estimateCostOverlayContainer, estimateCostOverlayRow, estimateCostSideItem, overlayMarginVar } from "./styles.css.js";
|
|
8
|
+
import { LineThrough } from "./Components/LineThrough.js";
|
|
9
|
+
import { Strong } from "./Components/Strong.js";
|
|
10
|
+
import { Badge, Stack } from "@ultraviolet/ui";
|
|
11
|
+
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
12
|
+
import { Children, cloneElement, isValidElement, useMemo } from "react";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { CalculatorIcon } from "@ultraviolet/icons/CalculatorIcon";
|
|
15
|
+
|
|
16
|
+
//#region src/components/EstimateCost/OverlayComponent.tsx
|
|
17
|
+
const OverlayComponent = ({ children, inView = false, discount = 1, OverlayRight, disableOverlayRight = false, OverlayLeft, disableOverlayLeft = false, totalPrice, unit = "hours", isBeta = false, overlayMargin }) => {
|
|
18
|
+
const { locales, formatNumber } = useEstimateCost();
|
|
19
|
+
const value = useMemo(() => ({ isOverlay: true }), []);
|
|
20
|
+
const totalOverlayPrice = {
|
|
21
|
+
days: totalPrice.maxOverlayHourly * multiplier.days,
|
|
22
|
+
hours: totalPrice.maxOverlayHourly,
|
|
23
|
+
minutes: totalPrice.maxOverlayHourly * multiplier.minutes,
|
|
24
|
+
months: totalPrice.maxOverlayHourly * multiplier.months,
|
|
25
|
+
seconds: totalPrice.maxOverlayHourly * multiplier.seconds
|
|
26
|
+
}[unit];
|
|
27
|
+
const overlayPrice = {
|
|
28
|
+
days: totalPrice.overlayHourly * multiplier.days,
|
|
29
|
+
hours: totalPrice.overlayHourly,
|
|
30
|
+
minutes: totalPrice.overlayHourly * multiplier.minutes,
|
|
31
|
+
months: totalPrice.overlayHourly * multiplier.months,
|
|
32
|
+
seconds: totalPrice.overlayHourly * multiplier.seconds
|
|
33
|
+
}[unit];
|
|
34
|
+
return /* @__PURE__ */ jsx(OverlayContextProvider, {
|
|
35
|
+
value,
|
|
36
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
37
|
+
className: estimateCostOverlayContainer({ inView }),
|
|
38
|
+
"data-testid": "summary-overlay",
|
|
39
|
+
style: assignInlineVars({ [overlayMarginVar]: overlayMargin !== null && overlayMargin !== void 0 ? overlayMargin : "0" }),
|
|
40
|
+
children: /* @__PURE__ */ jsxs("ul", {
|
|
41
|
+
className: estimateCostList,
|
|
42
|
+
children: [
|
|
43
|
+
OverlayLeft ? /* @__PURE__ */ jsx("li", {
|
|
44
|
+
className: estimateCostSideItem,
|
|
45
|
+
children: /* @__PURE__ */ jsx(OverlayLeft, {
|
|
46
|
+
disabled: disableOverlayLeft,
|
|
47
|
+
children: locales["estimate.cost.submit.label"]
|
|
48
|
+
})
|
|
49
|
+
}) : null,
|
|
50
|
+
Children.map(children, (child, index) => isValidElement(child) ? cloneElement(child, {
|
|
51
|
+
isFirstElement: index === 0,
|
|
52
|
+
isLastElement: index === Children.count(children) - 1
|
|
53
|
+
}) : null),
|
|
54
|
+
/* @__PURE__ */ jsxs("li", {
|
|
55
|
+
className: estimateCostOverlayRow(),
|
|
56
|
+
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
57
|
+
alignItems: "center",
|
|
58
|
+
direction: "row",
|
|
59
|
+
gap: 1,
|
|
60
|
+
children: [/* @__PURE__ */ jsx(CalculatorIcon, {
|
|
61
|
+
sentiment: "primary",
|
|
62
|
+
size: "medium"
|
|
63
|
+
}), locales["estimate.cost.label"]]
|
|
64
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
65
|
+
className: estimateCostResourceName(),
|
|
66
|
+
children: [/* @__PURE__ */ jsx(Strong, {
|
|
67
|
+
variant: "big",
|
|
68
|
+
children: /* @__PURE__ */ jsxs(LineThrough, {
|
|
69
|
+
isActive: isBeta && discount === 0,
|
|
70
|
+
children: [
|
|
71
|
+
formatNumber(overlayPrice, { maximumFractionDigits: maximumFractionDigits[unit] }),
|
|
72
|
+
totalOverlayPrice > 0 ? ` - ${formatNumber(totalOverlayPrice, { maximumFractionDigits: maximumFractionDigits[unit] })}` : null,
|
|
73
|
+
"/",
|
|
74
|
+
locales[`estimate.cost.units.${unit}.label`]
|
|
75
|
+
]
|
|
76
|
+
})
|
|
77
|
+
}), isBeta ? /* @__PURE__ */ jsxs(Badge, {
|
|
78
|
+
className: estimateCostBadge,
|
|
79
|
+
prominence: "strong",
|
|
80
|
+
sentiment: "warning",
|
|
81
|
+
children: [discount > 0 ? discount * 100 : "", locales[`estimate.cost.beta.${discount > 0 ? "discount" : "free"}`]]
|
|
82
|
+
}) : null]
|
|
83
|
+
})]
|
|
84
|
+
}),
|
|
85
|
+
OverlayRight ? /* @__PURE__ */ jsx("li", {
|
|
86
|
+
className: estimateCostSideItem,
|
|
87
|
+
children: /* @__PURE__ */ jsx(OverlayRight, {
|
|
88
|
+
disabled: disableOverlayRight,
|
|
89
|
+
children: locales["estimate.cost.submit.label"]
|
|
90
|
+
})
|
|
91
|
+
}) : null
|
|
92
|
+
]
|
|
93
|
+
})
|
|
94
|
+
})
|
|
95
|
+
});
|
|
97
96
|
};
|
|
97
|
+
|
|
98
|
+
//#endregion
|
|
99
|
+
export { OverlayComponent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlayContext.d.ts","sourceRoot":"","sources":["../../../src/components/EstimateCost/OverlayContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,eAAO,MAAM,UAAU;;CAAmC,CAAA;AAE1D,KAAK,2BAA2B,GAAG;IACjC,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"OverlayContext.d.ts","sourceRoot":"","sources":["../../../src/components/EstimateCost/OverlayContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,eAAO,MAAM,UAAU;;CAAmC,CAAA;AAE1D,KAAK,2BAA2B,GAAG;IACjC,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,sBAAsB,gGAKlC,CAAA"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { createContext, useContext } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/EstimateCost/OverlayContext.tsx
|
|
4
7
|
const OverlayContext = createContext({ isOverlay: false });
|
|
5
8
|
const useOverlay = () => useContext(OverlayContext);
|
|
6
|
-
const OverlayContextProvider = ({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
9
|
+
const OverlayContextProvider = ({ children, value }) => /* @__PURE__ */ jsx(OverlayContext.Provider, {
|
|
10
|
+
value,
|
|
11
|
+
children
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { OverlayContextProvider, useOverlay };
|
|
@@ -1,28 +1,26 @@
|
|
|
1
|
+
//#region src/components/EstimateCost/constants.ts
|
|
1
2
|
const APPROXIMATE_HOURS_IN_MONTH = 730;
|
|
2
3
|
const multiplier = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
days: 24,
|
|
5
|
+
hours: 1,
|
|
6
|
+
minutes: 1 / 60,
|
|
7
|
+
months: 730,
|
|
8
|
+
seconds: 1 / 60 / 60
|
|
8
9
|
};
|
|
9
10
|
const maximumFractionDigits = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
days: 3,
|
|
12
|
+
hours: 5,
|
|
13
|
+
minutes: 8,
|
|
14
|
+
months: 2,
|
|
15
|
+
seconds: 10
|
|
15
16
|
};
|
|
16
17
|
const maximumFractionDigitsLong = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
APPROXIMATE_HOURS_IN_MONTH,
|
|
25
|
-
maximumFractionDigits,
|
|
26
|
-
maximumFractionDigitsLong,
|
|
27
|
-
multiplier
|
|
18
|
+
days: 4,
|
|
19
|
+
hours: 8,
|
|
20
|
+
minutes: 10,
|
|
21
|
+
months: 2,
|
|
22
|
+
seconds: 12
|
|
28
23
|
};
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { maximumFractionDigits, maximumFractionDigitsLong, multiplier };
|
|
@@ -2,9 +2,9 @@ import type { Units } from './types';
|
|
|
2
2
|
export declare const calculatePrice: ({ price, amount, amountFree, timeUnit, timeAmount, discount, }: {
|
|
3
3
|
price: number;
|
|
4
4
|
amount: number;
|
|
5
|
-
amountFree?: number;
|
|
5
|
+
amountFree?: number | undefined;
|
|
6
6
|
timeUnit: Units;
|
|
7
7
|
timeAmount: number;
|
|
8
|
-
discount?: number;
|
|
8
|
+
discount?: number | undefined;
|
|
9
9
|
}) => number;
|
|
10
10
|
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/components/EstimateCost/helper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAIpC,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/components/EstimateCost/helper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAIpC,eAAO,MAAM,cAAc;;;;;;;YAsB1B,CAAA"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
+
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
1
2
|
import { multiplier } from "./constants.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
timeAmount,
|
|
8
|
-
discount = 0
|
|
9
|
-
}) => {
|
|
10
|
-
const nonNanTimeAmount = Number.isNaN(timeAmount) ? 0 : timeAmount;
|
|
11
|
-
const value = (price - price * discount) * (nonNanTimeAmount * multiplier[timeUnit]) * Math.max(amount - amountFree, 0);
|
|
12
|
-
return value;
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
calculatePrice
|
|
3
|
+
|
|
4
|
+
//#region src/components/EstimateCost/helper.ts
|
|
5
|
+
const calculatePrice = ({ price, amount, amountFree = 0, timeUnit, timeAmount, discount = 0 }) => {
|
|
6
|
+
const nonNanTimeAmount = Number.isNaN(timeAmount) ? 0 : timeAmount;
|
|
7
|
+
return (price - price * discount) * (nonNanTimeAmount * multiplier[timeUnit]) * Math.max(amount - amountFree, 0);
|
|
16
8
|
};
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { calculatePrice };
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
EstimateCostLocales as default
|
|
1
|
+
//#region src/components/EstimateCost/locales/en.ts
|
|
2
|
+
var en_default = {
|
|
3
|
+
"estimate.cost.az.label": "Availability Zone",
|
|
4
|
+
"estimate.cost.beta.badge": "Beta Version",
|
|
5
|
+
"estimate.cost.beta.discount": "% off during Beta",
|
|
6
|
+
"estimate.cost.beta.free": "Free During Beta",
|
|
7
|
+
"estimate.cost.description": "This summary provides a cost estimation based on your configuration, the amount of time you expect to use the resource for, and the scale of your expected usage. For the purposes of this calculation, we consider that 1 month equals to 730 hours.",
|
|
8
|
+
"estimate.cost.fees.commitment": "Commitment Fees",
|
|
9
|
+
"estimate.cost.fees.monthly.title": "Each month",
|
|
10
|
+
"estimate.cost.fees.oneTime.title": "One time fees",
|
|
11
|
+
"estimate.cost.label": "Estimated cost",
|
|
12
|
+
"estimate.cost.notDefined": "Not defined",
|
|
13
|
+
"estimate.cost.region.label": "Region",
|
|
14
|
+
"estimate.cost.submit.label": "Create",
|
|
15
|
+
"estimate.cost.units.days.label": "Day(s)",
|
|
16
|
+
"estimate.cost.units.gb.label": "GB",
|
|
17
|
+
"estimate.cost.units.hours.label": "Hour(s)",
|
|
18
|
+
"estimate.cost.units.minutes.label": "Minute(s)",
|
|
19
|
+
"estimate.cost.units.months.label": "Month(s)",
|
|
20
|
+
"estimate.cost.units.seconds.label": "Second(s)",
|
|
21
|
+
"estimate.cost.units.years.label": "Year(s)"
|
|
24
22
|
};
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { en_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const paddingLeftCell: `var(--${string})`;
|
|
2
2
|
export declare const overlayMarginVar: `var(--${string})`;
|
|
3
3
|
export declare const estimateCostImage: string;
|
|
4
|
-
export declare const estimateCostTable: Record<"
|
|
4
|
+
export declare const estimateCostTable: Record<"noTotal" | "total", string>;
|
|
5
5
|
export declare const estimateCostFeesTable: string;
|
|
6
6
|
export declare const estimateCostPriceColumn: string;
|
|
7
7
|
export declare const estimateCostPriceCell: string;
|
|
@@ -74,7 +74,7 @@ export declare const estimateCostOverlayContainer: import("@vanilla-extract/reci
|
|
|
74
74
|
}>;
|
|
75
75
|
export declare const estimateCostList: string;
|
|
76
76
|
export declare const estimateCostSideItem: string;
|
|
77
|
-
export declare const estimateCostContent: Record<"
|
|
77
|
+
export declare const estimateCostContent: Record<"compact" | "default", string>;
|
|
78
78
|
export declare const estimateCostCompact: string;
|
|
79
79
|
export declare const estimateCostCompactText: string;
|
|
80
80
|
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -1,56 +1,70 @@
|
|
|
1
|
-
/* empty css
|
|
1
|
+
/* empty css */
|
|
2
2
|
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
+
|
|
4
|
+
//#region src/components/EstimateCost/styles.css.ts
|
|
3
5
|
var paddingLeftCell = "var(--uv_plus_sk5tga0)";
|
|
4
6
|
var overlayMarginVar = "var(--uv_plus_sk5tga1)";
|
|
5
7
|
var estimateCostImage = "uv_plus_sk5tga2";
|
|
6
|
-
var estimateCostTable = {
|
|
8
|
+
var estimateCostTable = {
|
|
9
|
+
noTotal: "uv_plus_sk5tga4 uv_plus_sk5tga3",
|
|
10
|
+
total: "uv_plus_sk5tga5 uv_plus_sk5tga3"
|
|
11
|
+
};
|
|
7
12
|
var estimateCostFeesTable = "uv_plus_sk5tga6 uv_plus_sk5tga3";
|
|
8
13
|
var estimateCostPriceColumn = "uv_plus_sk5tga7";
|
|
9
14
|
var estimateCostPriceCell = "uv_plus_sk5tga8";
|
|
10
|
-
var estimateCostCell = createRuntimeFn({
|
|
15
|
+
var estimateCostCell = createRuntimeFn({
|
|
16
|
+
defaultClassName: "uv_plus_sk5tga9",
|
|
17
|
+
variantClassNames: {
|
|
18
|
+
hasBorder: { true: "uv_plus_sk5tgaa" },
|
|
19
|
+
primary: { true: "uv_plus_sk5tgab" }
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: {},
|
|
22
|
+
compoundVariants: []
|
|
23
|
+
});
|
|
11
24
|
var estimateCostTotalPriceCell = "uv_plus_sk5tgac";
|
|
12
25
|
var estimateCostEmptyTable = "uv_plus_sk5tgad";
|
|
13
26
|
var estimateCostTitle = "uv_plus_sk5tgae";
|
|
14
27
|
var estimateCostEmptyCell = "uv_plus_sk5tgaf";
|
|
15
28
|
var estimateCostTimeCell = "uv_plus_sk5tgag";
|
|
16
|
-
var estimateCostBadgeBeta = {
|
|
17
|
-
|
|
29
|
+
var estimateCostBadgeBeta = {
|
|
30
|
+
"long": "uv_plus_sk5tgai uv_plus_sk5tgah",
|
|
31
|
+
"short": "uv_plus_sk5tgaj uv_plus_sk5tgah"
|
|
32
|
+
};
|
|
33
|
+
var estimateCostOverlayRow = createRuntimeFn({
|
|
34
|
+
defaultClassName: "uv_plus_sk5tgak",
|
|
35
|
+
variantClassNames: {
|
|
36
|
+
hideFromOverlay: { true: "uv_plus_sk5tgal" },
|
|
37
|
+
isFirstElement: { true: "uv_plus_sk5tgam" },
|
|
38
|
+
shouldBeHidden: { true: "uv_plus_sk5tgan" }
|
|
39
|
+
},
|
|
40
|
+
defaultVariants: {},
|
|
41
|
+
compoundVariants: []
|
|
42
|
+
});
|
|
18
43
|
var estimateCostBadge = "uv_plus_sk5tgao";
|
|
19
44
|
var estimatecostFeesText = "uv_plus_sk5tgap";
|
|
20
|
-
var estimateCostText = {
|
|
45
|
+
var estimateCostText = {
|
|
46
|
+
beta: "uv_plus_sk5tgaq",
|
|
47
|
+
notBeta: "uv_plus_sk5tgar"
|
|
48
|
+
};
|
|
21
49
|
var estimateCostCalculatorIcon = "uv_plus_sk5tgas";
|
|
22
50
|
var estimateCostPriceCellContent = "uv_plus_sk5tgat";
|
|
23
|
-
var estimateCostOverlayContainer = createRuntimeFn({
|
|
51
|
+
var estimateCostOverlayContainer = createRuntimeFn({
|
|
52
|
+
defaultClassName: "uv_plus_sk5tgau",
|
|
53
|
+
variantClassNames: { inView: {
|
|
54
|
+
false: "uv_plus_sk5tgav",
|
|
55
|
+
true: "uv_plus_sk5tgaw"
|
|
56
|
+
} },
|
|
57
|
+
defaultVariants: {},
|
|
58
|
+
compoundVariants: []
|
|
59
|
+
});
|
|
24
60
|
var estimateCostList = "uv_plus_sk5tgax";
|
|
25
61
|
var estimateCostSideItem = "uv_plus_sk5tgay";
|
|
26
|
-
var estimateCostContent = {
|
|
62
|
+
var estimateCostContent = {
|
|
63
|
+
compact: "uv_plus_sk5tgaz",
|
|
64
|
+
"default": "uv_plus_sk5tga10"
|
|
65
|
+
};
|
|
27
66
|
var estimateCostCompact = "uv_plus_sk5tga11";
|
|
28
67
|
var estimateCostCompactText = "uv_plus_sk5tga12";
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
estimateCostCalculatorIcon,
|
|
33
|
-
estimateCostCell,
|
|
34
|
-
estimateCostCompact,
|
|
35
|
-
estimateCostCompactText,
|
|
36
|
-
estimateCostContent,
|
|
37
|
-
estimateCostEmptyCell,
|
|
38
|
-
estimateCostEmptyTable,
|
|
39
|
-
estimateCostFeesTable,
|
|
40
|
-
estimateCostImage,
|
|
41
|
-
estimateCostList,
|
|
42
|
-
estimateCostOverlayContainer,
|
|
43
|
-
estimateCostOverlayRow,
|
|
44
|
-
estimateCostPriceCell,
|
|
45
|
-
estimateCostPriceCellContent,
|
|
46
|
-
estimateCostPriceColumn,
|
|
47
|
-
estimateCostSideItem,
|
|
48
|
-
estimateCostTable,
|
|
49
|
-
estimateCostText,
|
|
50
|
-
estimateCostTimeCell,
|
|
51
|
-
estimateCostTitle,
|
|
52
|
-
estimateCostTotalPriceCell,
|
|
53
|
-
estimatecostFeesText,
|
|
54
|
-
overlayMarginVar,
|
|
55
|
-
paddingLeftCell
|
|
56
|
-
};
|
|
68
|
+
|
|
69
|
+
//#endregion
|
|
70
|
+
export { estimateCostBadge, estimateCostBadgeBeta, estimateCostCalculatorIcon, estimateCostCell, estimateCostCompact, estimateCostCompactText, estimateCostContent, estimateCostEmptyCell, estimateCostEmptyTable, estimateCostFeesTable, estimateCostImage, estimateCostList, estimateCostOverlayContainer, estimateCostOverlayRow, estimateCostPriceCell, estimateCostPriceCellContent, estimateCostPriceColumn, estimateCostSideItem, estimateCostTable, estimateCostText, estimateCostTimeCell, estimateCostTitle, estimateCostTotalPriceCell, estimatecostFeesText, overlayMarginVar, paddingLeftCell };
|
|
@@ -116,7 +116,7 @@ export type EstimateCostProps = {
|
|
|
116
116
|
*/
|
|
117
117
|
numberLocales?: string;
|
|
118
118
|
overlayMargin?: string;
|
|
119
|
-
onTotalPriceChange?: ({ total, totalMax
|
|
119
|
+
onTotalPriceChange?: ({ total, totalMax }: {
|
|
120
120
|
/**
|
|
121
121
|
* The total price of the estimate cost.
|
|
122
122
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/EstimateCost/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC1E,OAAO,KAAK,mBAAmB,MAAM,cAAc,CAAA;AAEnD,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC,WAAW,CAAC,CAAA;IACxD,QAAQ,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AAC,EAAE,MAAM,CAAA;KAClB,KAAK,IAAI,CAAA;CACX,CAAA;AAED,MAAM,MAAM,KAAK,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;AAEvE,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,KAAK,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG;IAClD,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,OAAO,CAAA;IACpB,kBAAkB,EAAE,OAAO,CAAA;IAC3B,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FAQ/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,WAAW,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAA;AAGjE,KAAK,QAAQ,GAAG;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,8BAA8B,CAC9C,MAAM,OAAO,WAAW,EACxB,aAAa,CACd,CAAA;IACD,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FAQ/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,WAAW,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAA;AAGjE,KAAK,QAAQ,GAAG;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,8BAA8B,CAC9C,MAAM,OAAO,WAAW,EACxB,aAAa,CACd,CAAA;IACD,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,GAAG,iIA0Cf,CAAA"}
|