@ultraviolet/plus 3.0.0-beta.14 → 3.0.0-beta.16
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/ContentCard/styles.css.js +0 -1
- package/dist/components/EstimateCost/Components/components.css.js +1 -0
- package/dist/components/InfoTable/components/Cell.js +2 -2
- package/dist/components/InfoTable/styles.css.d.ts +1 -0
- package/dist/components/InfoTable/styles.css.js +2 -0
- package/dist/components/OfferList/OfferList.d.ts +1 -0
- package/dist/components/OfferList/components/Row.d.ts +1 -0
- package/dist/components/OfferList/components/Row.js +1 -1
- package/dist/components/Plans/styles.css.js +1 -0
- package/dist/components/SteppedListCard/Step.d.ts +6 -1
- package/dist/components/SteppedListCard/Step.js +2 -1
- package/dist/components/SteppedListCard/SteppedListCard.d.ts +5 -2
- package/dist/components/SteppedListCard/SteppedListCard.js +10 -6
- package/dist/components/SteppedListCard/SteppedListContent.d.ts +1 -1
- package/dist/components/SteppedListCard/helper.d.ts +1 -1
- package/dist/components/SteppedListCard/helper.js +2 -1
- package/dist/components/SteppedListCard/styles.css.d.ts +1 -0
- package/dist/components/SteppedListCard/styles.css.js +2 -0
- package/dist/plus.css +1 -1
- package/package.json +8 -12
- package/dist/components/CodeEditor/CodeEditor.cjs +0 -50
- package/dist/components/CodeEditor/styles.css.cjs +0 -9
- package/dist/components/ContentCard/Skeleton.cjs +0 -23
- package/dist/components/ContentCard/index.cjs +0 -62
- package/dist/components/ContentCard/styles.css.cjs +0 -28
- package/dist/components/ContentCardGroup/Card.cjs +0 -30
- package/dist/components/ContentCardGroup/SkeletonCard.cjs +0 -15
- package/dist/components/ContentCardGroup/index.cjs +0 -18
- package/dist/components/ContentCardGroup/styles.css.cjs +0 -17
- package/dist/components/Conversation/index.cjs +0 -42
- package/dist/components/Conversation/styles.css.cjs +0 -17
- 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 -66
- package/dist/components/CustomerSatisfaction/styles.css.cjs +0 -6
- package/dist/components/EstimateCost/Components/CustomUnitInput.cjs +0 -34
- package/dist/components/EstimateCost/Components/Item.cjs +0 -221
- package/dist/components/EstimateCost/Components/LineThrough.cjs +0 -11
- package/dist/components/EstimateCost/Components/NumberInput.cjs +0 -31
- package/dist/components/EstimateCost/Components/Region.cjs +0 -34
- package/dist/components/EstimateCost/Components/Regular.cjs +0 -23
- package/dist/components/EstimateCost/Components/Strong.cjs +0 -16
- package/dist/components/EstimateCost/Components/Unit.cjs +0 -36
- package/dist/components/EstimateCost/Components/Zone.cjs +0 -33
- package/dist/components/EstimateCost/Components/components.css.cjs +0 -123
- package/dist/components/EstimateCost/EstimateCost.cjs +0 -86
- package/dist/components/EstimateCost/EstimateCostContent.cjs +0 -206
- package/dist/components/EstimateCost/EstimateCostProvider.cjs +0 -37
- package/dist/components/EstimateCost/OverlayComponent.cjs +0 -85
- package/dist/components/EstimateCost/OverlayContext.cjs +0 -15
- package/dist/components/EstimateCost/constants.cjs +0 -28
- package/dist/components/EstimateCost/helper.cjs +0 -16
- package/dist/components/EstimateCost/locales/en.cjs +0 -23
- package/dist/components/EstimateCost/styles.css.cjs +0 -50
- package/dist/components/FAQ/index.cjs +0 -49
- package/dist/components/FAQ/styles.css.cjs +0 -5
- package/dist/components/InfoTable/InfoTable.cjs +0 -20
- package/dist/components/InfoTable/components/Cell.cjs +0 -16
- package/dist/components/InfoTable/components/Row.cjs +0 -25
- package/dist/components/InfoTable/context.cjs +0 -5
- package/dist/components/InfoTable/styles.css.cjs +0 -15
- package/dist/components/Navigation/Footer.cjs +0 -56
- package/dist/components/Navigation/Header.cjs +0 -18
- package/dist/components/Navigation/Navigation.cjs +0 -18
- package/dist/components/Navigation/NavigationContent.cjs +0 -112
- package/dist/components/Navigation/NavigationProvider.cjs +0 -129
- package/dist/components/Navigation/components/Group.cjs +0 -37
- package/dist/components/Navigation/components/Item.cjs +0 -277
- package/dist/components/Navigation/components/ItemProvider.cjs +0 -14
- package/dist/components/Navigation/components/PinnedItems.cjs +0 -80
- package/dist/components/Navigation/components/Separator.cjs +0 -8
- package/dist/components/Navigation/components/items.css.cjs +0 -47
- package/dist/components/Navigation/components/styles.css.cjs +0 -17
- package/dist/components/Navigation/constants.cjs +0 -10
- package/dist/components/Navigation/locales/en.cjs +0 -11
- package/dist/components/Navigation/styles.css.cjs +0 -23
- package/dist/components/Navigation/variables.css.cjs +0 -4
- package/dist/components/OfferList/OfferList.cjs +0 -45
- package/dist/components/OfferList/OfferListProvider.cjs +0 -38
- package/dist/components/OfferList/components/Banner.cjs +0 -21
- package/dist/components/OfferList/components/Cell.cjs +0 -20
- package/dist/components/OfferList/components/Row.cjs +0 -113
- package/dist/components/OfferList/styles.css.cjs +0 -38
- package/dist/components/OrderSummary/NonScrollableContent.cjs +0 -56
- package/dist/components/OrderSummary/Provider.cjs +0 -18
- package/dist/components/OrderSummary/ScrollableContent.cjs +0 -73
- package/dist/components/OrderSummary/constants.cjs +0 -12
- package/dist/components/OrderSummary/helpers.cjs +0 -91
- package/dist/components/OrderSummary/index.cjs +0 -102
- package/dist/components/OrderSummary/locales/en.cjs +0 -11
- package/dist/components/OrderSummary/styles.css.cjs +0 -19
- package/dist/components/Plans/FeatureHint.cjs +0 -24
- package/dist/components/Plans/PlanHeader.cjs +0 -42
- package/dist/components/Plans/index.cjs +0 -102
- package/dist/components/Plans/locales/en.cjs +0 -7
- package/dist/components/Plans/styles.css.cjs +0 -26
- package/dist/components/SteppedListCard/Step.cjs +0 -20
- package/dist/components/SteppedListCard/SteppedListCard.cjs +0 -54
- package/dist/components/SteppedListCard/SteppedListContent.cjs +0 -51
- package/dist/components/SteppedListCard/helper.cjs +0 -38
- package/dist/components/SteppedListCard/styles.css.cjs +0 -17
- package/dist/index.cjs +0 -33
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
;/* empty css */
|
|
4
|
-
;/* empty css */
|
|
5
|
-
var subContainerHeightVar = "var(--uv_plus_u4r1ts0)";
|
|
6
|
-
var skeletonHeightVar = "var(--uv_plus_u4r1ts1)";
|
|
7
|
-
var skeletonWidthVar = "var(--uv_plus_u4r1ts2)";
|
|
8
|
-
var activeClass = "uv_plus_u4r1ts3";
|
|
9
|
-
var cardClass = "uv_plus_u4r1ts4";
|
|
10
|
-
var iconContainer = "uv_plus_u4r1ts5";
|
|
11
|
-
var iconStack = { column: "uv_plus_u4r1ts6", row: "uv_plus_u4r1ts7" };
|
|
12
|
-
var subContainer = { column: "uv_plus_u4r1ts9 uv_plus_u4r1ts8", row: "uv_plus_u4r1tsa uv_plus_u4r1ts8", noHref: "uv_plus_u4r1tsb uv_plus_u4r1ts8" };
|
|
13
|
-
var imageClass = { column: "uv_plus_u4r1tsd uv_plus_u4r1tsc", row: "uv_plus_u4r1tse uv_plus_u4r1tsc" };
|
|
14
|
-
var fullHeight = "uv_plus_u4r1tsf";
|
|
15
|
-
var skeletonImage = { column: "uv_plus_u4r1tsh uv_plus_u4r1tsg", row: "uv_plus_u4r1tsi uv_plus_u4r1tsg" };
|
|
16
|
-
var paddedStack = "uv_plus_u4r1tsj";
|
|
17
|
-
exports.activeClass = activeClass;
|
|
18
|
-
exports.cardClass = cardClass;
|
|
19
|
-
exports.fullHeight = fullHeight;
|
|
20
|
-
exports.iconContainer = iconContainer;
|
|
21
|
-
exports.iconStack = iconStack;
|
|
22
|
-
exports.imageClass = imageClass;
|
|
23
|
-
exports.paddedStack = paddedStack;
|
|
24
|
-
exports.skeletonHeightVar = skeletonHeightVar;
|
|
25
|
-
exports.skeletonImage = skeletonImage;
|
|
26
|
-
exports.skeletonWidthVar = skeletonWidthVar;
|
|
27
|
-
exports.subContainer = subContainer;
|
|
28
|
-
exports.subContainerHeightVar = subContainerHeightVar;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const icons = require("@ultraviolet/icons");
|
|
6
|
-
const ui = require("@ultraviolet/ui");
|
|
7
|
-
const react = require("react");
|
|
8
|
-
const styles_css = require("./styles.css.cjs");
|
|
9
|
-
const Card = react.forwardRef(({
|
|
10
|
-
title,
|
|
11
|
-
titleAs,
|
|
12
|
-
subtitle,
|
|
13
|
-
subtitleAs,
|
|
14
|
-
description,
|
|
15
|
-
children,
|
|
16
|
-
href,
|
|
17
|
-
target = "_blank",
|
|
18
|
-
style
|
|
19
|
-
}, ref) => /* @__PURE__ */ jsxRuntime.jsx("a", { className: styles_css.styledWrapper, href, ref, style, target, children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { alignItems: "center", className: styles_css.fullHeightStack, direction: "row", gap: 2, justifyContent: "space-between", children: [
|
|
20
|
-
/* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { className: styles_css.customStack, gap: "0.5", children: [
|
|
21
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
22
|
-
subtitle ? /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { as: subtitleAs || "h5", oneLine: true, prominence: "weak", sentiment: "neutral", variant: "caption", children: subtitle }) : null,
|
|
23
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.Text, { as: titleAs || "h3", oneLine: true, sentiment: "neutral", variant: "bodyStrong", children: title })
|
|
24
|
-
] }),
|
|
25
|
-
description ? /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { as: "p", oneLine: true, sentiment: "neutral", variant: "bodySmall", children: description }) : null,
|
|
26
|
-
children
|
|
27
|
-
] }),
|
|
28
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.iconWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(icons.OpenInNewIcon, { sentiment: "neutral" }) })
|
|
29
|
-
] }) }));
|
|
30
|
-
exports.Card = Card;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const ui = require("@ultraviolet/ui");
|
|
6
|
-
const styles_css = require("./styles.css.cjs");
|
|
7
|
-
const SkeletonCard = () => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.skeletonWrapper, children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
8
|
-
/* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { gap: 2, children: [
|
|
9
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.Skeleton, { variant: "line" }),
|
|
10
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.Skeleton, { variant: "line" }),
|
|
11
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.Skeleton, { variant: "line" })
|
|
12
|
-
] }),
|
|
13
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.Skeleton, { className: styles_css.squareSkeleton, variant: "square" })
|
|
14
|
-
] }) });
|
|
15
|
-
exports.SkeletonCard = SkeletonCard;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const ui = require("@ultraviolet/ui");
|
|
6
|
-
const react = require("react");
|
|
7
|
-
const Card = require("./Card.cjs");
|
|
8
|
-
const SkeletonCard = require("./SkeletonCard.cjs");
|
|
9
|
-
const styles_css = require("./styles.css.cjs");
|
|
10
|
-
const BaseContentCardGroup = react.forwardRef(({
|
|
11
|
-
children,
|
|
12
|
-
loading,
|
|
13
|
-
style
|
|
14
|
-
}, ref) => /* @__PURE__ */ jsxRuntime.jsx(ui.Stack, { className: styles_css.groupCardWrapper, direction: "column", ref, style, children: !loading ? children : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: react.Children.map(children, (_child, index) => /* @__PURE__ */ jsxRuntime.jsx(SkeletonCard.SkeletonCard, {}, index)) }) }));
|
|
15
|
-
const ContentCardGroup = Object.assign(BaseContentCardGroup, {
|
|
16
|
-
Card: Card.Card
|
|
17
|
-
});
|
|
18
|
-
exports.ContentCardGroup = ContentCardGroup;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
;/* empty css */
|
|
4
|
-
var customStack = "uv_plus_1gpmh3x0";
|
|
5
|
-
var iconWrapper = "uv_plus_1gpmh3x1";
|
|
6
|
-
var styledWrapper = "uv_plus_1gpmh3x2";
|
|
7
|
-
var fullHeightStack = "uv_plus_1gpmh3x3";
|
|
8
|
-
var groupCardWrapper = "uv_plus_1gpmh3x4";
|
|
9
|
-
var skeletonWrapper = "uv_plus_1gpmh3x5";
|
|
10
|
-
var squareSkeleton = "uv_plus_1gpmh3x6";
|
|
11
|
-
exports.customStack = customStack;
|
|
12
|
-
exports.fullHeightStack = fullHeightStack;
|
|
13
|
-
exports.groupCardWrapper = groupCardWrapper;
|
|
14
|
-
exports.iconWrapper = iconWrapper;
|
|
15
|
-
exports.skeletonWrapper = skeletonWrapper;
|
|
16
|
-
exports.squareSkeleton = squareSkeleton;
|
|
17
|
-
exports.styledWrapper = styledWrapper;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const ui = require("@ultraviolet/ui");
|
|
6
|
-
const styles_css = require("./styles.css.cjs");
|
|
7
|
-
const Conversation = ({
|
|
8
|
-
children,
|
|
9
|
-
style
|
|
10
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(ui.Stack, { style, children });
|
|
11
|
-
const MessageInfos = ({
|
|
12
|
-
children,
|
|
13
|
-
align,
|
|
14
|
-
style
|
|
15
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.conversationInfos[align], style, children });
|
|
16
|
-
const Date = ({
|
|
17
|
-
children,
|
|
18
|
-
style
|
|
19
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { as: "p", className: styles_css.styledText, prominence: "weak", style, variant: "bodySmall", children });
|
|
20
|
-
const Message = ({
|
|
21
|
-
className,
|
|
22
|
-
children,
|
|
23
|
-
avatar,
|
|
24
|
-
align = "right",
|
|
25
|
-
style
|
|
26
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${className ? `${className} ` : ""}${styles_css.conversationContainer[align]}`, style, children: [
|
|
27
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.conversationBubble, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.conversationRawMessage[align], children }) }),
|
|
28
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.conversationAvatar, children: avatar })
|
|
29
|
-
] });
|
|
30
|
-
const MessageTag = ({
|
|
31
|
-
children,
|
|
32
|
-
style
|
|
33
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(ui.Tag, { className: styles_css.conversationTag, style, children });
|
|
34
|
-
Conversation.Date = Date;
|
|
35
|
-
Conversation.Message = Message;
|
|
36
|
-
Conversation.MessageInfos = MessageInfos;
|
|
37
|
-
Conversation.Tag = MessageTag;
|
|
38
|
-
exports.Conversation = Conversation;
|
|
39
|
-
exports.Date = Date;
|
|
40
|
-
exports.Message = Message;
|
|
41
|
-
exports.MessageInfos = MessageInfos;
|
|
42
|
-
exports.MessageTag = MessageTag;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
;/* empty css */
|
|
4
|
-
var conversationInfos = { left: "uv_plus_16zcyo51 uv_plus_16zcyo50", right: "uv_plus_16zcyo52 uv_plus_16zcyo50" };
|
|
5
|
-
var styledText = "uv_plus_16zcyo53";
|
|
6
|
-
var conversationContainer = { left: "uv_plus_16zcyo55 uv_plus_16zcyo54", right: "uv_plus_16zcyo56 uv_plus_16zcyo54" };
|
|
7
|
-
var conversationRawMessage = { left: "uv_plus_16zcyo58 uv_plus_16zcyo57", right: "uv_plus_16zcyo59 uv_plus_16zcyo57" };
|
|
8
|
-
var conversationAvatar = "uv_plus_16zcyo5a";
|
|
9
|
-
var conversationBubble = "uv_plus_16zcyo5b";
|
|
10
|
-
var conversationTag = "uv_plus_16zcyo5c";
|
|
11
|
-
exports.conversationAvatar = conversationAvatar;
|
|
12
|
-
exports.conversationBubble = conversationBubble;
|
|
13
|
-
exports.conversationContainer = conversationContainer;
|
|
14
|
-
exports.conversationInfos = conversationInfos;
|
|
15
|
-
exports.conversationRawMessage = conversationRawMessage;
|
|
16
|
-
exports.conversationTag = conversationTag;
|
|
17
|
-
exports.styledText = styledText;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const rating1 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cpath%20fill='%23eef'%20fill-rule='evenodd'%20d='M36.1%200c-4.3%200-8.6.4-12.9%201.1C11.5%203.1%204%209.6%201.5%2021.4c-1.9%209.3-2.1%2018.7-.2%2028%202.3%2012%209.6%2019.3%2021.6%2021.4%204.3.8%208.7%201.1%2013%201.1s8.6-.4%2012.9-1.1c11.6-2%2019.3-9.2%2021.8-20.9%201.8-9.2%201.8-18.6%200-27.8-2.3-12-9.5-18.9-21.6-21C44.8.4%2040.4%200%2036.1%200'%20clip-rule='evenodd'/%3e%3cpath%20fill='%232e3192'%20fill-rule='evenodd'%20d='M70.7%2022.2c-2.3-12-9.5-18.9-21.6-21-.6-.1-1.2-.2-1.9-.3C50.2%203%2058.7%209.8%2062%2022c.3%201%205.2%2020.2-7%2034-10.9%2012.3-30.9%2015.4-48.1%206.2%203.7%204.5%209.1%207.5%2016%208.7%204.3.8%208.7%201.1%2013%201.1s8.6-.4%2012.9-1.1c11.6-2%2019.3-9.2%2021.8-20.9%201.9-9.2%201.8-18.6.1-27.8'%20clip-rule='evenodd'%20opacity='.06'/%3e%3cpath%20fill='%231b1464'%20d='M37.6%2047.7c-.1%200-.3%200-.4-.1-2.4-.9-5-.9-7.4%200-.6.2-1.4-.1-1.6-.7s.1-1.4.7-1.6c3-1.1%206.2-1.1%209.2%200%20.6.2%201%201%20.7%201.6-.2.5-.7.8-1.2.8'%20opacity='.31'/%3e%3cpath%20fill='%234f0599'%20d='M33.9%2036.2c-7%200-13.6%202.7-18.5%207.7-.5.5-.5%201.3%200%201.7.5.5%201.3.5%201.7%200%204.5-4.5%2010.4-6.9%2016.8-6.9s12.3%202.5%2016.8%206.9c.2.2.6.4.9.4s.6-.1.9-.4c.5-.5.5-1.3%200-1.7-5-5-11.6-7.7-18.6-7.7m-20-6.7c0%202.5%202.1%204.6%204.6%204.6s4.6-2.1%204.6-4.6q0-.75-.3-1.5c.5.1%201%20.1%201.6.1%201.4%200%203-.2%204.8-.7.7-.2%201-.9.9-1.5-.2-.7-.9-1-1.5-.9-8.8%202.4-12.6-3.2-12.7-3.4-.4-.6-1.1-.7-1.7-.4-.6.4-.7%201.1-.4%201.7%200%20.1.9%201.3%202.6%202.6-1.5.8-2.5%202.3-2.5%204m38.5-8.3c-.6-.4-1.3-.2-1.7.4%200%20.1-3.9%205.8-12.7%203.4-.7-.2-1.3.2-1.5.9s.2%201.3.9%201.5c1.8.5%203.4.7%204.8.7.5%200%201.1%200%201.6-.1q-.3.75-.3%201.5c0%202.5%202.1%204.6%204.6%204.6s4.6-2.1%204.6-4.6c0-1.7-.9-3.2-2.3-4%201.7-1.3%202.5-2.5%202.6-2.6.2-.6%200-1.3-.6-1.7'/%3e%3cpath%20fill='none'%20stroke='%23f954a2'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='10'%20stroke-width='1.5'%20d='m46%209.5-2.3%202.3-2.3-2.3m6.5%206.6-2.3-2.3%202.3-2.3m-6.3%206.3%202.3-2.3%202.3%202.3m-6.6-6.5%202.4%202.3-2.4%202.3'/%3e%3c/svg%3e";
|
|
3
|
-
module.exports = rating1;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const rating1NS = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cpath%20fill='%23f0f0f0'%20d='M36.1%200c-4.3%200-8.6.4-12.9%201.1C11.5%203.1%204%209.6%201.5%2021.4c-2%209.2-2.1%2018.8-.2%2028%202.3%2012%209.6%2019.2%2021.6%2021.4%204.3.8%208.6%201.1%2013%201.1%204.3%200%208.6-.4%2012.9-1.1%2011.6-2%2019.3-9.2%2021.8-20.9%201.8-9.2%201.8-18.6%200-27.8-2.3-12-9.5-18.9-21.6-21C44.8.4%2040.4%200%2036.1%200'/%3e%3cpath%20fill='%233b3b3b'%20d='M70.7%2022.2c-2.3-12-9.5-18.9-21.6-21-.6-.2-1.3-.2-1.9-.3C54.4%206.1%2059.6%2013.5%2062%2022c.3%201%205.2%2020.2-7%2034-10.9%2012.3-30.9%2015.4-48%206.2%203.7%204.5%209.1%207.5%2016%208.7%204.3.8%208.6%201.1%2013%201.1%204.3%200%208.6-.4%2012.9-1.1%2011.6-2%2019.3-9.2%2021.8-20.9%201.8-9.2%201.8-18.6%200-27.8'%20opacity='.06'/%3e%3cpath%20fill='%231f1f1f'%20d='M37.6%2047.7c-.2%200-.3%200-.4-.1-2.4-.9-5-.9-7.4%200-.6.2-1.4-.1-1.6-.7s.1-1.4.7-1.6c3-1.2%206.2-1.2%209.2%200%20.6.2%201%201%20.7%201.6-.2.5-.7.8-1.2.8'%20opacity='.31'/%3e%3cpath%20fill='%232b2b2b'%20d='M33.9%2036.2c-6.9%200-13.6%202.7-18.5%207.7-.5.5-.4%201.3.1%201.8.5.4%201.2.4%201.6%200%209.3-9.3%2024.3-9.3%2033.5%200%20.5.5%201.3.4%201.8-.1.4-.5.4-1.2%200-1.6-4.9-5.1-11.5-7.8-18.5-7.8m-20-6.7c-.1%202.5%201.8%204.7%204.4%204.8%202.5.1%204.7-1.8%204.8-4.4v-.4q0-.75-.3-1.5c.5.1%201%20.1%201.5.1%201.6%200%203.2-.2%204.8-.7.7-.2%201-.9.9-1.5-.2-.7-.8-1-1.5-.9-8.8%202.4-12.6-3.2-12.7-3.4-.4-.6-1.1-.7-1.7-.4s-.7%201.1-.4%201.7c.7%201%201.6%201.9%202.6%202.6-1.5.8-2.4%202.3-2.4%204m38.5-8.3c-.6-.4-1.3-.2-1.7.4%200%20.1-3.9%205.8-12.7%203.4-.7-.2-1.3.2-1.5.9s.2%201.3.9%201.5c1.6.4%203.2.7%204.8.7.5%200%201%200%201.5-.1q-.3.75-.3%201.5c0%202.5%202%204.6%204.6%204.6%202.5%200%204.6-2%204.6-4.6%200-1.7-.9-3.2-2.4-4%201-.7%201.9-1.6%202.6-2.6.4-.5.2-1.3-.4-1.7'/%3e%3cpath%20fill='none'%20stroke='%238e8e8e'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='1.5'%20d='m46%209.5-2.3%202.3-2.3-2.3m6.5%206.6-2.3-2.3%202.3-2.3m-6.3%206.3%202.3-2.3%202.3%202.3m-6.5-6.5%202.3%202.3-2.3%202.3'/%3e%3c/svg%3e";
|
|
3
|
-
module.exports = rating1NS;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const rating2 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cg%20data-name='Calque%202'%3e%3cg%20data-name='Calque%201'%3e%3cpath%20fill='%23eef'%20fill-rule='evenodd'%20d='M36.08%200a77%2077%200%200%200-12.91%201.1C11.48%203.08%204%209.65%201.55%2021.43a69.7%2069.7%200%200%200-.24%2028.05c2.31%2012%209.57%2019.25%2021.61%2021.38a75%2075%200%200%200%2013%201.14%2077%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200%200-27.82c-2.31-12-9.54-18.91-21.58-21A75%2075%200%200%200%2036.08%200'/%3e%3cpath%20fill='%232e3192'%20fill-rule='evenodd'%20d='M70.66%2022.18c-2.31-12-9.54-18.91-21.58-21C48.46%201%2047.84%201%2047.22.85A39.73%2039.73%200%200%201%2062%2022c.28%201%205.22%2020.18-7%2034-10.87%2012.29-30.91%2015.38-48%206.17%203.73%204.53%209.06%207.47%2016%208.69A75%2075%200%200%200%2036%2072a77%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200-.05-27.82'%20opacity='.06'/%3e%3cpath%20fill='%234f0599'%20d='M44.7%2040.9a23.75%2023.75%200%200%200-26.47%200%201.11%201.11%200%200%200-.31%201.55%201.14%201.14%200%200%200%201.56.31%2021.5%2021.5%200%200%201%2024%200%201.2%201.2%200%200%200%20.62.19%201.15%201.15%200%200%200%20.94-.5%201.12%201.12%200%200%200-.34-1.55M22.22%2025.15a4.15%204.15%200%201%200-4.15%204.15%204.15%204.15%200%200%200%204.15-4.15M44.85%2021A4.15%204.15%200%201%200%2049%2025.15%204.16%204.16%200%200%200%2044.85%2021'/%3e%3cpath%20fill='%231b1464'%20d='M35.19%2044.84a1.1%201.1%200%200%201-.4-.08%209.2%209.2%200%200%200-6.65%200%201.12%201.12%200%201%201-.8-2.09%2011.4%2011.4%200%200%201%208.25%200%201.12%201.12%200%200%201-.4%202.17'%20opacity='.31'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
-
module.exports = rating2;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const rating2NS = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cpath%20fill='%23f0f0f0'%20d='M36.1%200c-4.3%200-8.6.4-12.9%201.1C11.5%203.1%204%209.6%201.5%2021.4c-2%209.2-2.1%2018.8-.2%2028%202.3%2012%209.6%2019.2%2021.6%2021.4%204.3.8%208.6%201.1%2013%201.1%204.3%200%208.6-.4%2012.9-1.1%2011.6-2%2019.3-9.2%2021.8-20.9%201.8-9.2%201.8-18.6%200-27.8-2.3-12-9.5-18.9-21.6-21C44.8.4%2040.4%200%2036.1%200'/%3e%3cpath%20fill='%233b3b3b'%20d='M70.7%2022.2c-2.3-12-9.5-18.9-21.6-21-.6-.2-1.3-.2-1.9-.3C54.4%206.1%2059.6%2013.5%2062%2022c.3%201%205.2%2020.2-7%2034-10.9%2012.3-30.9%2015.4-48%206.2%203.7%204.5%209.1%207.5%2016%208.7%204.3.8%208.6%201.1%2013%201.1%204.3%200%208.6-.4%2012.9-1.1%2011.6-2%2019.3-9.2%2021.8-20.9%201.8-9.2%201.8-18.6%200-27.8'%20opacity='.06'/%3e%3cpath%20fill='%232b2b2b'%20d='M44.7%2040.9c-8-5.4-18.5-5.4-26.5%200-.5.3-.7%201-.3%201.5s1%20.6%201.6.3c7.3-4.9%2016.7-4.9%2024%200%20.2.1.4.2.6.2.4%200%20.7-.2.9-.5.4-.5.2-1.2-.3-1.5M22.2%2025.1c0-2.3-1.9-4.1-4.1-4.1-2.3%200-4.2%201.9-4.2%204.1s1.9%204.1%204.2%204.1c2.3.1%204.1-1.8%204.1-4.1M44.8%2021c-2.3%200-4.1%201.9-4.1%204.2s1.9%204.1%204.2%204.1%204.1-1.9%204.1-4.1c0-2.3-1.9-4.2-4.2-4.2'/%3e%3cpath%20fill='%231f1f1f'%20d='M35.2%2044.8c-.1%200-.3%200-.4-.1-2.1-.8-4.5-.8-6.6%200-.6.2-1.2%200-1.5-.6-.2-.6%200-1.2.6-1.5h.1c2.7-1%205.6-1%208.2%200%20.6.2.9.9.7%201.4-.2.6-.6.8-1.1.8'%20opacity='.31'/%3e%3c/svg%3e";
|
|
3
|
-
module.exports = rating2NS;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const rating3 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cg%20data-name='Calque%202'%3e%3cg%20data-name='Calque%201'%3e%3cpath%20fill='%23eef'%20fill-rule='evenodd'%20d='M36.08%200a77%2077%200%200%200-12.91%201.1C11.48%203.08%204%209.65%201.55%2021.43a69.7%2069.7%200%200%200-.24%2028.05c2.31%2012%209.57%2019.25%2021.61%2021.38a75%2075%200%200%200%2013%201.14%2077%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200%200-27.82c-2.31-12-9.54-18.91-21.58-21A75%2075%200%200%200%2036.08%200'/%3e%3cpath%20fill='%232e3192'%20fill-rule='evenodd'%20d='M70.66%2022.18c-2.31-12-9.54-18.91-21.58-21C48.46%201%2047.84%201%2047.22.85A39.73%2039.73%200%200%201%2062%2022c.28%201%205.22%2020.18-7%2034-10.87%2012.29-30.91%2015.38-48%206.17%203.73%204.53%209.06%207.47%2016%208.69A75%2075%200%200%200%2036%2072a77%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200-.05-27.82'%20opacity='.06'/%3e%3cpath%20fill='%234f0599'%20d='M23.64%2025.86a4.86%204.86%200%201%200-4.86%204.85%204.87%204.87%200%200%200%204.86-4.85M50.14%2021A4.86%204.86%200%201%200%2055%2025.86%204.86%204.86%200%200%200%2050.14%2021'/%3e%3cpath%20fill='none'%20stroke='%234f0599'%20stroke-linecap='round'%20stroke-miterlimit='10'%20stroke-width='2.51'%20d='M24%2044h22'/%3e%3cpath%20fill='none'%20stroke='%231b1464'%20stroke-linecap='round'%20stroke-miterlimit='10'%20stroke-width='2'%20d='M32%2050h6'%20opacity='.31'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
-
module.exports = rating3;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const rating3NS = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cg%20data-name='Calque%202'%3e%3cg%20data-name='Calque%201'%3e%3cpath%20fill='%23f0f0f0'%20fill-rule='evenodd'%20d='M36.08%200a77%2077%200%200%200-12.91%201.1C11.48%203.08%204%209.65%201.55%2021.43a69.7%2069.7%200%200%200-.24%2028.05c2.31%2012%209.57%2019.25%2021.61%2021.38a75%2075%200%200%200%2013%201.14%2077%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200%200-27.82c-2.31-12-9.54-18.91-21.58-21A75%2075%200%200%200%2036.08%200'/%3e%3cpath%20fill='%233b3b3b'%20fill-rule='evenodd'%20d='M70.66%2022.18c-2.31-12-9.54-18.91-21.58-21C48.46%201%2047.84%201%2047.22.85A39.73%2039.73%200%200%201%2062%2022c.28%201%205.22%2020.18-7%2034-10.87%2012.29-30.91%2015.38-48%206.17%203.73%204.53%209.06%207.47%2016%208.69A75%2075%200%200%200%2036%2072a77%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200-.05-27.82'%20opacity='.06'/%3e%3cpath%20fill='%232b2b2b'%20d='M23.64%2025.86a4.86%204.86%200%201%200-4.86%204.85%204.87%204.87%200%200%200%204.86-4.85M50.14%2021A4.86%204.86%200%201%200%2055%2025.86%204.86%204.86%200%200%200%2050.14%2021'/%3e%3cpath%20fill='none'%20stroke='%232b2b2b'%20stroke-linecap='round'%20stroke-miterlimit='10'%20stroke-width='2.51'%20d='M24%2044h22'/%3e%3cpath%20fill='none'%20stroke='%231f1f1f'%20stroke-linecap='round'%20stroke-miterlimit='10'%20stroke-width='2'%20d='M32%2050h6'%20opacity='.31'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
-
module.exports = rating3NS;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const rating4 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cpath%20fill='%23eef'%20fill-rule='evenodd'%20d='M36.08%200a77%2077%200%200%200-12.91%201.1C11.48%203.08%204%209.65%201.55%2021.43a69.7%2069.7%200%200%200-.24%2028.05c2.31%2012%209.57%2019.25%2021.61%2021.38a75%2075%200%200%200%2013%201.14%2077%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200%200-27.82c-2.31-12-9.54-18.91-21.58-21A75%2075%200%200%200%2036.08%200'/%3e%3cpath%20fill='%234f0599'%20d='M31.5%2046.28a17.85%2017.85%200%200%201-13.09-5.81%201.18%201.18%200%200%201%200-1.59%201%201%200%200%201%201.48%200%2015.66%2015.66%200%200%200%2023.22%200%201%201%200%200%201%201.48%200%201.2%201.2%200%200%201%200%201.59%2017.85%2017.85%200%200%201-13.09%205.81'/%3e%3cpath%20fill='%231b1464'%20d='M31.5%2051.14a17.5%2017.5%200%200%201-5-.74%201.13%201.13%200%200%201-.73-1.4%201%201%200%200%201%201.29-.78%2015.26%2015.26%200%200%200%208.88%200%201%201%200%200%201%201.29.78%201.13%201.13%200%200%201-.72%201.38%2017.5%2017.5%200%200%201-5.01.76'%20opacity='.31'/%3e%3cpath%20fill='%234f0599'%20d='M24.32%2028.58a1.08%201.08%200%200%201-1-1.12A5.3%205.3%200%200%200%2018.19%2022a5.3%205.3%200%200%200-5.09%205.46%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.45%207.45%200%200%201%207.17%207.7%201.08%201.08%200%200%201-1.04%201.12m26.62%200a1.09%201.09%200%200%201-1-1.12%205.1%205.1%200%201%200-10.17%200%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.46%207.46%200%200%201%207.14%207.7%201.08%201.08%200%200%201-1.06%201.12'/%3e%3cellipse%20cx='13.75'%20cy='37.62'%20fill='%23f270a8'%20rx='2.75'%20ry='2.96'/%3e%3cellipse%20cx='49.25'%20cy='37.62'%20fill='%23f270a8'%20rx='2.75'%20ry='2.96'/%3e%3cpath%20fill='%232e3192'%20fill-rule='evenodd'%20d='M70.66%2022.18c-2.31-12-9.54-18.91-21.58-21C48.46%201%2047.84%201%2047.22.85A39.73%2039.73%200%200%201%2062%2022c.28%201%205.22%2020.18-7%2034-10.87%2012.29-30.91%2015.38-48%206.17%203.73%204.53%209.06%207.47%2016%208.69A75%2075%200%200%200%2036%2072a77%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200-.05-27.82'%20opacity='.06'/%3e%3c/svg%3e";
|
|
3
|
-
module.exports = rating4;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const rating4NS = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cdefs%3e%3cstyle%3e%20.cls-2{fill:%232b2b2b}.cls-4{fill:%239d9d9d}%20%3c/style%3e%3c/defs%3e%3cg%20id='Calque_2'%20data-name='Calque%202'%3e%3cg%20id='Calque_1-2'%20data-name='Calque%201'%3e%3cpath%20fill='%23f0f0f0'%20fill-rule='evenodd'%20d='M36.08%200a77%2077%200%200%200-12.91%201.1C11.48%203.08%204%209.65%201.55%2021.43a69.7%2069.7%200%200%200-.24%2028.05c2.31%2012%209.57%2019.25%2021.61%2021.38a75%2075%200%200%200%2013%201.14%2077%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200%200-27.82c-2.31-12-9.54-18.91-21.58-21A75%2075%200%200%200%2036.08%200'/%3e%3cpath%20d='M31.5%2046.28a17.85%2017.85%200%200%201-13.09-5.81%201.18%201.18%200%200%201%200-1.59%201%201%200%200%201%201.48%200%2015.66%2015.66%200%200%200%2023.22%200%201%201%200%200%201%201.48%200%201.2%201.2%200%200%201%200%201.59%2017.85%2017.85%200%200%201-13.09%205.81'%20class='cls-2'/%3e%3cpath%20fill='%231f1f1f'%20d='M31.5%2051.14a17.5%2017.5%200%200%201-5-.74%201.13%201.13%200%200%201-.73-1.4%201%201%200%200%201%201.29-.78%2015.26%2015.26%200%200%200%208.88%200%201%201%200%200%201%201.29.78%201.13%201.13%200%200%201-.72%201.38%2017.5%2017.5%200%200%201-5.01.76'%20opacity='.31'/%3e%3cpath%20d='M24.32%2028.58a1.08%201.08%200%200%201-1-1.12A5.3%205.3%200%200%200%2018.19%2022a5.3%205.3%200%200%200-5.09%205.46%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.45%207.45%200%200%201%207.17%207.7%201.08%201.08%200%200%201-1.04%201.12m26.62%200a1.09%201.09%200%200%201-1-1.12%205.1%205.1%200%201%200-10.17%200%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.46%207.46%200%200%201%207.14%207.7%201.08%201.08%200%200%201-1.06%201.12'%20class='cls-2'/%3e%3cellipse%20cx='13.75'%20cy='37.62'%20class='cls-4'%20rx='2.75'%20ry='2.96'/%3e%3cellipse%20cx='49.25'%20cy='37.62'%20class='cls-4'%20rx='2.75'%20ry='2.96'/%3e%3cpath%20fill='%233b3b3b'%20fill-rule='evenodd'%20d='M70.66%2022.18c-2.31-12-9.54-18.91-21.58-21C48.46%201%2047.84%201%2047.22.85A39.73%2039.73%200%200%201%2062%2022c.28%201%205.22%2020.18-7%2034-10.87%2012.29-30.91%2015.38-48%206.17%203.73%204.53%209.06%207.47%2016%208.69A75%2075%200%200%200%2036%2072a77%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200-.05-27.82'%20opacity='.06'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
-
module.exports = rating4NS;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const rating5 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cg%20data-name='Calque%202'%3e%3cg%20data-name='Calque%201'%3e%3cpath%20fill='%23eef'%20fill-rule='evenodd'%20d='M36.08%200a77%2077%200%200%200-12.91%201.1C11.48%203.08%204%209.65%201.55%2021.43a69.7%2069.7%200%200%200-.24%2028.05c2.31%2012%209.57%2019.25%2021.61%2021.38a75%2075%200%200%200%2013%201.14%2077%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200%200-27.82c-2.31-12-9.54-18.91-21.58-21A75%2075%200%200%200%2036.08%200'/%3e%3cpath%20fill='%234f0599'%20d='M24.32%2028.58a1.08%201.08%200%200%201-1-1.12A5.3%205.3%200%200%200%2018.19%2022a5.3%205.3%200%200%200-5.09%205.46%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.45%207.45%200%200%201%207.17%207.7%201.08%201.08%200%200%201-1.04%201.12m26.62%200a1.09%201.09%200%200%201-1-1.12%205.1%205.1%200%201%200-10.17%200%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.46%207.46%200%200%201%207.14%207.7%201.08%201.08%200%200%201-1.06%201.12'/%3e%3cpath%20fill='%232e3192'%20fill-rule='evenodd'%20d='M70.66%2022.18c-2.31-12-9.54-18.91-21.58-21C48.46%201%2047.84%201%2047.22.85A39.73%2039.73%200%200%201%2062%2022c.28%201%205.22%2020.18-7%2034-10.87%2012.29-30.91%2015.38-48%206.17%203.73%204.53%209.06%207.47%2016%208.69A75%2075%200%200%200%2036%2072a77%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200-.05-27.82'%20opacity='.06'/%3e%3cpath%20fill='%23fff'%20d='M46%2032.9v5.47a21.22%2021.22%200%200%201-30%200V32.9a21.22%2021.22%200%200%200%2030%200'/%3e%3cpath%20fill='%23f954a2'%20d='M34.82%2048.44a6.4%206.4%200%200%201%205.63%203.36%2015%2015%200%200%201-18.9%200A6.39%206.39%200%200%201%2031%2049.71a6.3%206.3%200%200%201%203.82-1.27'/%3e%3cpath%20fill='%23971096'%20d='M46%2038.37v1.78a15%2015%200%200%201-4.39%2010.61c-.37.37-.76.71-1.16%201a6.4%206.4%200%200%200-5.63-3.36A6.3%206.3%200%200%200%2031%2049.71a6.39%206.39%200%200%200-9.45%202.09A15%2015%200%200%201%2016%2040.15v-1.78a21.22%2021.22%200%200%200%2030%200'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
-
module.exports = rating5;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const rating5NS = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cg%20data-name='Calque%202'%3e%3cg%20data-name='Calque%201'%3e%3cpath%20fill='%23f0f0f0'%20fill-rule='evenodd'%20d='M36.08%200a77%2077%200%200%200-12.91%201.1C11.48%203.08%204%209.65%201.55%2021.43a69.7%2069.7%200%200%200-.24%2028.05c2.31%2012%209.57%2019.25%2021.61%2021.38a75%2075%200%200%200%2013%201.14%2077%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200%200-27.82c-2.31-12-9.54-18.91-21.58-21A75%2075%200%200%200%2036.08%200'/%3e%3cpath%20fill='%232b2b2b'%20d='M24.32%2028.58a1.08%201.08%200%200%201-1-1.12A5.3%205.3%200%200%200%2018.19%2022a5.3%205.3%200%200%200-5.09%205.46%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.45%207.45%200%200%201%207.17%207.7%201.08%201.08%200%200%201-1.04%201.12m26.62%200a1.09%201.09%200%200%201-1-1.12%205.1%205.1%200%201%200-10.17%200%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.46%207.46%200%200%201%207.14%207.7%201.08%201.08%200%200%201-1.06%201.12'/%3e%3cpath%20fill='%233b3b3b'%20fill-rule='evenodd'%20d='M70.66%2022.18c-2.31-12-9.54-18.91-21.58-21C48.46%201%2047.84%201%2047.22.85A39.73%2039.73%200%200%201%2062%2022c.28%201%205.22%2020.18-7%2034-10.87%2012.29-30.91%2015.38-48%206.17%203.73%204.53%209.06%207.47%2016%208.69A75%2075%200%200%200%2036%2072a77%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200-.05-27.82'%20opacity='.06'/%3e%3cpath%20fill='%23fff'%20d='M46%2032.9v5.47a21.22%2021.22%200%200%201-30%200V32.9a21.22%2021.22%200%200%200%2030%200'/%3e%3cpath%20fill='%238e8e8e'%20d='M34.82%2048.44a6.4%206.4%200%200%201%205.63%203.36%2015%2015%200%200%201-18.9%200A6.39%206.39%200%200%201%2031%2049.71a6.3%206.3%200%200%201%203.82-1.27'/%3e%3cpath%20fill='%23474747'%20d='M46%2038.37v1.78a15%2015%200%200%201-4.39%2010.61c-.37.37-.76.71-1.16%201a6.4%206.4%200%200%200-5.63-3.36A6.3%206.3%200%200%200%2031%2049.71a6.39%206.39%200%200%200-9.45%202.09A15%2015%200%200%201%2016%2040.15v-1.78a21.22%2021.22%200%200%200%2030%200'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
-
module.exports = rating5NS;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const ui = require("@ultraviolet/ui");
|
|
6
|
-
const react = require("react");
|
|
7
|
-
const _15 = require("./assets/1-5.svg.cjs");
|
|
8
|
-
const _15NB = require("./assets/1-5NB.svg.cjs");
|
|
9
|
-
const _25 = require("./assets/2-5.svg.cjs");
|
|
10
|
-
const _25NB = require("./assets/2-5NB.svg.cjs");
|
|
11
|
-
const _35 = require("./assets/3-5.svg.cjs");
|
|
12
|
-
const _35NB = require("./assets/3-5NB.svg.cjs");
|
|
13
|
-
const _45 = require("./assets/4-5.svg.cjs");
|
|
14
|
-
const _45NB = require("./assets/4-5NB.svg.cjs");
|
|
15
|
-
const _55 = require("./assets/5-5.svg.cjs");
|
|
16
|
-
const _55NB = require("./assets/5-5NB.svg.cjs");
|
|
17
|
-
const styles_css = require("./styles.css.cjs");
|
|
18
|
-
const ratings = [{
|
|
19
|
-
imgNotSelected: _15NB,
|
|
20
|
-
imgSelected: _15,
|
|
21
|
-
value: 1
|
|
22
|
-
}, {
|
|
23
|
-
imgNotSelected: _25NB,
|
|
24
|
-
imgSelected: _25,
|
|
25
|
-
value: 2
|
|
26
|
-
}, {
|
|
27
|
-
imgNotSelected: _35NB,
|
|
28
|
-
imgSelected: _35,
|
|
29
|
-
value: 3
|
|
30
|
-
}, {
|
|
31
|
-
imgNotSelected: _45NB,
|
|
32
|
-
imgSelected: _45,
|
|
33
|
-
value: 4
|
|
34
|
-
}, {
|
|
35
|
-
imgNotSelected: _55NB,
|
|
36
|
-
imgSelected: _55,
|
|
37
|
-
value: 5
|
|
38
|
-
}];
|
|
39
|
-
const CustomerSatisfaction = ({
|
|
40
|
-
value,
|
|
41
|
-
onChange,
|
|
42
|
-
"data-testid": dataTestId,
|
|
43
|
-
className,
|
|
44
|
-
style
|
|
45
|
-
}) => {
|
|
46
|
-
const [hoveredValue, setHoveredValue] = react.useState(0);
|
|
47
|
-
const isHappy = react.useMemo(() => value > ratings.length / 2, [value]);
|
|
48
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ui.Stack, { className, "data-testid": dataTestId, direction: "row", justifyContent: "space-between", style, children: ratings.map((rating) => {
|
|
49
|
-
const isSelected = rating.value === value;
|
|
50
|
-
const isOverfly = rating.value <= hoveredValue;
|
|
51
|
-
const isScaled = rating.value === hoveredValue && isSelected;
|
|
52
|
-
const animated = isHappy ? "happy" : "angry";
|
|
53
|
-
return /* @__PURE__ */ jsxRuntime.jsx("img", { alt: "rating", className: styles_css.customerStatisfaction({
|
|
54
|
-
animated: isSelected ? animated : void 0,
|
|
55
|
-
isScaled
|
|
56
|
-
}), "data-testid": `${dataTestId}-${rating.value}`, onClick: () => {
|
|
57
|
-
onChange(rating.value);
|
|
58
|
-
}, onKeyDown: () => {
|
|
59
|
-
}, onMouseEnter: () => {
|
|
60
|
-
setHoveredValue(rating.value);
|
|
61
|
-
}, onMouseLeave: () => {
|
|
62
|
-
setHoveredValue(0);
|
|
63
|
-
}, src: isSelected || isOverfly || rating.value <= value ? rating.imgSelected : rating.imgNotSelected }, rating.value);
|
|
64
|
-
}) });
|
|
65
|
-
};
|
|
66
|
-
exports.CustomerSatisfaction = CustomerSatisfaction;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
;/* empty css */
|
|
4
|
-
const createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
5
|
-
var customerStatisfaction = createRuntimeFn.createRuntimeFn({ defaultClassName: "uv_plus_wizdzu2", variantClassNames: { isScaled: { true: "uv_plus_wizdzu3" }, animated: { happy: "uv_plus_wizdzu4", angry: "uv_plus_wizdzu5" } }, defaultVariants: {}, compoundVariants: [] });
|
|
6
|
-
exports.customerStatisfaction = customerStatisfaction;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const ui = require("@ultraviolet/ui");
|
|
6
|
-
const react = require("react");
|
|
7
|
-
const EstimateCostProvider = require("../EstimateCostProvider.cjs");
|
|
8
|
-
const CustomUnitInput = react.memo(({
|
|
9
|
-
defaultTimeUnit = "hours",
|
|
10
|
-
setIteration,
|
|
11
|
-
iteration,
|
|
12
|
-
timeUnits
|
|
13
|
-
}) => {
|
|
14
|
-
const {
|
|
15
|
-
locales
|
|
16
|
-
} = EstimateCostProvider.useEstimateCost();
|
|
17
|
-
const options = react.useMemo(() => timeUnits.map((unit) => ({
|
|
18
|
-
label: locales[`estimate.cost.units.${unit}.label`],
|
|
19
|
-
value: unit
|
|
20
|
-
})), [timeUnits, locales]);
|
|
21
|
-
const defaultOption = react.useMemo(() => options.find(({
|
|
22
|
-
value
|
|
23
|
-
}) => value === defaultTimeUnit), [defaultTimeUnit, options]);
|
|
24
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ui.UnitInput, { min: 1, name: "iteration", onChange: (inputValue) => setIteration({
|
|
25
|
-
unit: iteration.unit,
|
|
26
|
-
value: inputValue
|
|
27
|
-
}), onChangeUnitValue: (unitValue) => {
|
|
28
|
-
setIteration({
|
|
29
|
-
unit: unitValue,
|
|
30
|
-
value: iteration.value
|
|
31
|
-
});
|
|
32
|
-
}, options, placeholder: "0", selectInputWidth: "100%", size: "medium", templateColumns: "auto auto", unitValue: iteration.unit || defaultOption?.value, value: iteration.value, width: "100%" });
|
|
33
|
-
});
|
|
34
|
-
exports.CustomUnitInput = CustomUnitInput;
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const icons = require("@ultraviolet/icons");
|
|
6
|
-
const ui = require("@ultraviolet/ui");
|
|
7
|
-
const dynamic = require("@vanilla-extract/dynamic");
|
|
8
|
-
const react = require("react");
|
|
9
|
-
const constants = require("../constants.cjs");
|
|
10
|
-
const EstimateCostProvider = require("../EstimateCostProvider.cjs");
|
|
11
|
-
const helper = require("../helper.cjs");
|
|
12
|
-
const OverlayContext = require("../OverlayContext.cjs");
|
|
13
|
-
const styles_css = require("../styles.css.cjs");
|
|
14
|
-
const components_css = require("./components.css.cjs");
|
|
15
|
-
const TIME_RELATED_UNIT = ["seconds", "minutes", "hours", "days", "months"];
|
|
16
|
-
const Item = react.memo(({
|
|
17
|
-
discount = 0,
|
|
18
|
-
priceText,
|
|
19
|
-
discountText,
|
|
20
|
-
label,
|
|
21
|
-
tooltipInfo,
|
|
22
|
-
// Shows an icon with tooltip that contains this text
|
|
23
|
-
subLabel = "",
|
|
24
|
-
// Usually used for showing amount that is free
|
|
25
|
-
price: basePrice = 0,
|
|
26
|
-
// Hourly price for one unit
|
|
27
|
-
monthlyPrice = 0,
|
|
28
|
-
// Price per month
|
|
29
|
-
unit: baseUnit,
|
|
30
|
-
// Can be GB, MB, Node, Queries, etc.
|
|
31
|
-
amount: currentAmount = 1,
|
|
32
|
-
// Current number of items
|
|
33
|
-
onAmountChange,
|
|
34
|
-
amountFree = 0,
|
|
35
|
-
// Amount that is free - offered by company
|
|
36
|
-
maxAmount = 0,
|
|
37
|
-
// Max amount - used for kubernetes for example
|
|
38
|
-
longFractionDigits = false,
|
|
39
|
-
// In case price is really long 0.0000076 - up 7 fraction digits
|
|
40
|
-
noIteration = false,
|
|
41
|
-
// if item is not based on time (ex: download, upload, transfer)
|
|
42
|
-
noIterationText,
|
|
43
|
-
noBorder,
|
|
44
|
-
// remove the border bottom of the item
|
|
45
|
-
noPrice,
|
|
46
|
-
// remove the price on right side of the table
|
|
47
|
-
isDefined = true,
|
|
48
|
-
children = null,
|
|
49
|
-
isFirstElement = false,
|
|
50
|
-
isLastElement = false,
|
|
51
|
-
isPrimaryBackground = false,
|
|
52
|
-
productsCallback,
|
|
53
|
-
iteration: receivedIteration,
|
|
54
|
-
// Object from parent that contains time period (hours, days, months)
|
|
55
|
-
shouldBeHidden = false,
|
|
56
|
-
// Hide element from overlay if screen width is small
|
|
57
|
-
hideFromOverlay = false,
|
|
58
|
-
// Hide element from overlay in any case
|
|
59
|
-
textNotDefined,
|
|
60
|
-
// Text to display in case of not defined value
|
|
61
|
-
animated = false,
|
|
62
|
-
// if true, zoomIn animation is triggered
|
|
63
|
-
tabulation,
|
|
64
|
-
// Increase left padding of the item
|
|
65
|
-
labelTextVariant,
|
|
66
|
-
// To change left cell typography variant
|
|
67
|
-
labelTextProminence,
|
|
68
|
-
// To change left cell typography prominence
|
|
69
|
-
notice,
|
|
70
|
-
// To display a gray text below the label
|
|
71
|
-
strikeThrough,
|
|
72
|
-
// To strike through the price
|
|
73
|
-
style
|
|
74
|
-
}) => {
|
|
75
|
-
const {
|
|
76
|
-
locales,
|
|
77
|
-
formatNumber
|
|
78
|
-
} = EstimateCostProvider.useEstimateCost();
|
|
79
|
-
let iteration;
|
|
80
|
-
if (noIteration) {
|
|
81
|
-
iteration = {
|
|
82
|
-
...receivedIteration ?? {
|
|
83
|
-
value: 0
|
|
84
|
-
},
|
|
85
|
-
unit: "hours"
|
|
86
|
-
};
|
|
87
|
-
} else {
|
|
88
|
-
iteration = receivedIteration;
|
|
89
|
-
}
|
|
90
|
-
const price = react.useMemo(() => {
|
|
91
|
-
if (monthlyPrice && basePrice === 0) {
|
|
92
|
-
return monthlyPrice / constants.multiplier.months;
|
|
93
|
-
}
|
|
94
|
-
return basePrice;
|
|
95
|
-
}, [basePrice, monthlyPrice]);
|
|
96
|
-
const unit = react.useMemo(() => {
|
|
97
|
-
if (!baseUnit) {
|
|
98
|
-
return locales["estimate.cost.units.gb.label"];
|
|
99
|
-
}
|
|
100
|
-
return baseUnit;
|
|
101
|
-
}, [baseUnit, locales]);
|
|
102
|
-
const {
|
|
103
|
-
isOverlay
|
|
104
|
-
} = OverlayContext.useOverlay();
|
|
105
|
-
const Row = isOverlay ? "li" : "tr";
|
|
106
|
-
const Cell = isOverlay ? "div" : "td";
|
|
107
|
-
const LeftSide = "div";
|
|
108
|
-
const [amount, setAmount] = react.useState(currentAmount);
|
|
109
|
-
const [isVariant, setIsVariant] = react.useState(false);
|
|
110
|
-
react.useEffect(() => setAmount(currentAmount), [setAmount, currentAmount]);
|
|
111
|
-
react.useEffect(() => onAmountChange?.(amount), [onAmountChange, amount]);
|
|
112
|
-
const itemCallback = react.useCallback((localAmount, localIsVariant) => {
|
|
113
|
-
setAmount(localAmount);
|
|
114
|
-
setIsVariant(localIsVariant);
|
|
115
|
-
}, [setAmount, setIsVariant]);
|
|
116
|
-
const id = react.useId();
|
|
117
|
-
react.useEffect(() => () => productsCallback?.remove({
|
|
118
|
-
id
|
|
119
|
-
}), [id, productsCallback]);
|
|
120
|
-
react.useEffect(() => {
|
|
121
|
-
if (!isOverlay) {
|
|
122
|
-
productsCallback?.add({
|
|
123
|
-
amount,
|
|
124
|
-
amountFree,
|
|
125
|
-
discount,
|
|
126
|
-
id,
|
|
127
|
-
isVariant,
|
|
128
|
-
longFractionDigits,
|
|
129
|
-
maxAmount,
|
|
130
|
-
noIteration,
|
|
131
|
-
price
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
}, [price, discount, amount, id, productsCallback, maxAmount, noIteration, isVariant, amountFree, isOverlay, longFractionDigits]);
|
|
135
|
-
const computedItemPrice = react.useMemo(() => helper.calculatePrice({
|
|
136
|
-
amount,
|
|
137
|
-
amountFree,
|
|
138
|
-
discount,
|
|
139
|
-
price,
|
|
140
|
-
timeAmount: noIteration ? 1 : iteration?.value ?? 1,
|
|
141
|
-
timeUnit: noIteration ? "hours" : iteration?.unit ?? "hours"
|
|
142
|
-
}), [price, amount, amountFree, iteration, noIteration, discount]);
|
|
143
|
-
const computedMaxItemPrice = react.useMemo(() => helper.calculatePrice({
|
|
144
|
-
amount: maxAmount,
|
|
145
|
-
amountFree,
|
|
146
|
-
discount,
|
|
147
|
-
price,
|
|
148
|
-
timeAmount: noIteration ? 1 : iteration?.value ?? 1,
|
|
149
|
-
timeUnit: noIteration ? "hours" : iteration?.unit ?? "hours"
|
|
150
|
-
}), [price, maxAmount, amountFree, iteration, noIteration, discount]);
|
|
151
|
-
const formatMaximumFractionDigits = react.useMemo(() => {
|
|
152
|
-
if (!iteration?.unit) {
|
|
153
|
-
return void 0;
|
|
154
|
-
}
|
|
155
|
-
return longFractionDigits ? constants.maximumFractionDigitsLong[iteration?.unit] : constants.maximumFractionDigits[iteration?.unit];
|
|
156
|
-
}, [iteration?.unit, longFractionDigits]);
|
|
157
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Row, { className: isOverlay ? styles_css.estimateCostOverlayRow({
|
|
158
|
-
hideFromOverlay,
|
|
159
|
-
isFirstElement,
|
|
160
|
-
shouldBeHidden
|
|
161
|
-
}) : components_css.estimateCostTr, style, children: [
|
|
162
|
-
/* @__PURE__ */ jsxRuntime.jsx(Cell, { className: styles_css.estimateCostCell({
|
|
163
|
-
hasBorder: !isLastElement && !noBorder && !isOverlay
|
|
164
|
-
}), style: dynamic.assignInlineVars({
|
|
165
|
-
[styles_css.paddingLeftCell]: `${(tabulation ?? 0) * 8 + 16}px`
|
|
166
|
-
}), children: /* @__PURE__ */ jsxRuntime.jsxs(LeftSide, { className: isOverlay ? "" : components_css.estimateCostLeftSide, children: [
|
|
167
|
-
/* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { children: [
|
|
168
|
-
/* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { direction: "row", children: [
|
|
169
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.Text, { as: "p", prominence: labelTextProminence ?? "default", variant: labelTextVariant ?? "body", children: label }),
|
|
170
|
-
tooltipInfo ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: components_css.styledDiv, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { className: components_css.estimateCostTooltip, text: tooltipInfo, children: /* @__PURE__ */ jsxRuntime.jsx(icons.HelpCircleOutlineIcon, { size: "medium" }) }) }) : null,
|
|
171
|
-
subLabel && !isOverlay ? /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { as: "p", className: components_css.estimateCostTextItem, italic: true, sentiment: "primary", variant: "body", children: subLabel }) : null,
|
|
172
|
-
discount > 0 && discountText ? /* @__PURE__ */ jsxRuntime.jsx(ui.Badge, { className: components_css.estimateCostBadgeItem, prominence: "strong", sentiment: "warning", size: "small", children: discountText }) : null
|
|
173
|
-
] }),
|
|
174
|
-
notice ? /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { as: "p", className: components_css.estimateCostMaxWidthText, prominence: "weak", variant: "caption", children: notice }) : null
|
|
175
|
-
] }),
|
|
176
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: components_css.estimateCostResourceName({
|
|
177
|
-
isAnimated: isOverlay && animated,
|
|
178
|
-
isOverlay
|
|
179
|
-
}), children: isDefined ? react.Children.map(children, (child) => react.isValidElement(child) ? react.cloneElement(child, {
|
|
180
|
-
amount,
|
|
181
|
-
itemCallback,
|
|
182
|
-
maxAmount,
|
|
183
|
-
unit
|
|
184
|
-
}) : null) : textNotDefined || locales["estimate.cost.notDefined"] })
|
|
185
|
-
] }) }),
|
|
186
|
-
!isOverlay ? /* @__PURE__ */ jsxRuntime.jsx("td", { className: `${styles_css.estimateCostCell({
|
|
187
|
-
hasBorder: !isLastElement && !noBorder,
|
|
188
|
-
primary: isPrimaryBackground
|
|
189
|
-
})} ${styles_css.estimateCostPriceCell}`, style: dynamic.assignInlineVars({
|
|
190
|
-
[styles_css.paddingLeftCell]: `16px`
|
|
191
|
-
}), children: !noPrice ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
192
|
-
/* @__PURE__ */ jsxRuntime.jsxs(ui.Text, { as: "p", placement: "right", prominence: computedItemPrice === 0 && computedMaxItemPrice === 0 ? "weak" : "default", sentiment: computedItemPrice === 0 && computedMaxItemPrice === 0 ? "neutral" : "primary", strikeThrough, variant: noIterationText ? "headingSmall" : "bodyStrong", children: [
|
|
193
|
-
priceText,
|
|
194
|
-
!priceText ? formatNumber(computedItemPrice, {
|
|
195
|
-
maximumFractionDigits: formatMaximumFractionDigits
|
|
196
|
-
}) : null,
|
|
197
|
-
noIterationText ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Text, { as: "span", sentiment: "primary", variant: "bodySmall", children: [
|
|
198
|
-
"/",
|
|
199
|
-
noIterationText
|
|
200
|
-
] }) : null,
|
|
201
|
-
!priceText && computedMaxItemPrice > 0 ? ` - ${formatNumber(computedMaxItemPrice, {
|
|
202
|
-
maximumFractionDigits: formatMaximumFractionDigits
|
|
203
|
-
})}` : null
|
|
204
|
-
] }),
|
|
205
|
-
amount - amountFree !== 1 && computedItemPrice > 0 || maxAmount > 0 && computedMaxItemPrice > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Text, { as: "p", placement: "right", variant: "body", children: [
|
|
206
|
-
formatNumber(helper.calculatePrice({
|
|
207
|
-
amount: 1,
|
|
208
|
-
discount,
|
|
209
|
-
price,
|
|
210
|
-
timeAmount: 1,
|
|
211
|
-
timeUnit: "hours"
|
|
212
|
-
}), {
|
|
213
|
-
maximumFractionDigits: longFractionDigits ? constants.maximumFractionDigitsLong.hours : constants.maximumFractionDigits.hours
|
|
214
|
-
}),
|
|
215
|
-
TIME_RELATED_UNIT.includes(unit) ? locales[`estimate.cost.units.${unit}.label`].toLowerCase() : `/${unit}`,
|
|
216
|
-
!noIteration ? `/${locales["estimate.cost.units.hours.label"].toLowerCase()}` : null
|
|
217
|
-
] }) : null
|
|
218
|
-
] }) : null }) : null
|
|
219
|
-
] });
|
|
220
|
-
});
|
|
221
|
-
exports.Item = Item;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const components_css = require("./components.css.cjs");
|
|
6
|
-
const LineThrough = ({
|
|
7
|
-
isActive,
|
|
8
|
-
className,
|
|
9
|
-
...props
|
|
10
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: `${className ? `${className} ` : ""} ${isActive ? components_css.estimateCostLineThrough : ""}`, ...props });
|
|
11
|
-
exports.LineThrough = LineThrough;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const ui = require("@ultraviolet/ui");
|
|
6
|
-
const react = require("react");
|
|
7
|
-
const OverlayContext = require("../OverlayContext.cjs");
|
|
8
|
-
const components_css = require("./components.css.cjs");
|
|
9
|
-
const Regular = require("./Regular.cjs");
|
|
10
|
-
const NumberInput = ({
|
|
11
|
-
amount,
|
|
12
|
-
minValue = 0,
|
|
13
|
-
maxValue = 100,
|
|
14
|
-
getAmountValue,
|
|
15
|
-
itemCallback,
|
|
16
|
-
controls = true
|
|
17
|
-
}) => {
|
|
18
|
-
const {
|
|
19
|
-
isOverlay
|
|
20
|
-
} = OverlayContext.useOverlay();
|
|
21
|
-
const [value, setValue] = react.useState(amount);
|
|
22
|
-
react.useEffect(() => {
|
|
23
|
-
getAmountValue?.(amount);
|
|
24
|
-
}, [getAmountValue, amount]);
|
|
25
|
-
return isOverlay ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: components_css.estimateCostItemResourceName(), children: /* @__PURE__ */ jsxRuntime.jsx(Regular.Regular, { children: amount }) }) : /* @__PURE__ */ jsxRuntime.jsx(ui.NumberInput, { controls, max: maxValue, min: minValue, onChange: (newValue) => {
|
|
26
|
-
setValue(newValue);
|
|
27
|
-
itemCallback?.(newValue, true);
|
|
28
|
-
getAmountValue?.(newValue);
|
|
29
|
-
}, size: "small", value });
|
|
30
|
-
};
|
|
31
|
-
exports.NumberInput = NumberInput;
|