@ultraviolet/plus 3.0.0-beta.16 → 3.0.0-beta.18

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.
Files changed (109) hide show
  1. package/dist/components/CodeEditor/CodeEditor.d.ts +1 -1
  2. package/dist/components/CodeEditor/CodeEditor.js +41 -11
  3. package/dist/components/ContentCard/Skeleton.d.ts +1 -1
  4. package/dist/components/ContentCard/Skeleton.js +13 -8
  5. package/dist/components/ContentCard/index.js +131 -51
  6. package/dist/components/ContentCardGroup/Card.js +63 -22
  7. package/dist/components/ContentCardGroup/SkeletonCard.d.ts +1 -1
  8. package/dist/components/ContentCardGroup/SkeletonCard.js +1 -1
  9. package/dist/components/ContentCardGroup/index.js +11 -6
  10. package/dist/components/ContentCardGroup/styles.css.js +1 -0
  11. package/dist/components/Conversation/index.d.ts +9 -9
  12. package/dist/components/Conversation/index.js +23 -6
  13. package/dist/components/CustomerSatisfaction/index.d.ts +1 -1
  14. package/dist/components/CustomerSatisfaction/index.js +68 -39
  15. package/dist/components/EstimateCost/Components/CustomUnitInput.d.ts +1 -1
  16. package/dist/components/EstimateCost/Components/CustomUnitInput.js +47 -27
  17. package/dist/components/EstimateCost/Components/Item.d.ts +1 -1
  18. package/dist/components/EstimateCost/Components/Item.js +303 -203
  19. package/dist/components/EstimateCost/Components/LineThrough.d.ts +1 -1
  20. package/dist/components/EstimateCost/Components/LineThrough.js +8 -2
  21. package/dist/components/EstimateCost/Components/NumberInput.d.ts +1 -1
  22. package/dist/components/EstimateCost/Components/NumberInput.js +17 -9
  23. package/dist/components/EstimateCost/Components/Region.d.ts +1 -1
  24. package/dist/components/EstimateCost/Components/Region.js +43 -25
  25. package/dist/components/EstimateCost/Components/Regular.d.ts +1 -1
  26. package/dist/components/EstimateCost/Components/Regular.js +20 -16
  27. package/dist/components/EstimateCost/Components/Strong.d.ts +1 -1
  28. package/dist/components/EstimateCost/Components/Strong.js +11 -10
  29. package/dist/components/EstimateCost/Components/Unit.d.ts +1 -1
  30. package/dist/components/EstimateCost/Components/Unit.js +20 -13
  31. package/dist/components/EstimateCost/Components/Zone.d.ts +1 -1
  32. package/dist/components/EstimateCost/Components/Zone.js +41 -24
  33. package/dist/components/EstimateCost/EstimateCost.d.ts +11 -11
  34. package/dist/components/EstimateCost/EstimateCost.js +61 -10
  35. package/dist/components/EstimateCost/EstimateCostContent.d.ts +1 -1
  36. package/dist/components/EstimateCost/EstimateCostContent.js +264 -120
  37. package/dist/components/EstimateCost/EstimateCostProvider.d.ts +1 -1
  38. package/dist/components/EstimateCost/EstimateCostProvider.js +24 -21
  39. package/dist/components/EstimateCost/OverlayComponent.d.ts +1 -1
  40. package/dist/components/EstimateCost/OverlayComponent.js +53 -41
  41. package/dist/components/EstimateCost/OverlayContext.d.ts +1 -1
  42. package/dist/components/EstimateCost/OverlayContext.js +2 -4
  43. package/dist/components/FAQ/index.d.ts +1 -1
  44. package/dist/components/FAQ/index.js +1 -1
  45. package/dist/components/InfoTable/InfoTable.d.ts +3 -3
  46. package/dist/components/InfoTable/InfoTable.js +10 -4
  47. package/dist/components/InfoTable/components/Cell.d.ts +1 -1
  48. package/dist/components/InfoTable/components/Cell.js +24 -4
  49. package/dist/components/InfoTable/components/Row.d.ts +1 -1
  50. package/dist/components/InfoTable/components/Row.js +16 -10
  51. package/dist/components/InfoTable/styles.css.d.ts +0 -1
  52. package/dist/components/InfoTable/styles.css.js +0 -2
  53. package/dist/components/Navigation/Footer.d.ts +1 -1
  54. package/dist/components/Navigation/Footer.js +34 -19
  55. package/dist/components/Navigation/Header.d.ts +1 -1
  56. package/dist/components/Navigation/Header.js +12 -9
  57. package/dist/components/Navigation/Navigation.d.ts +5 -5
  58. package/dist/components/Navigation/Navigation.js +2 -5
  59. package/dist/components/Navigation/NavigationContent.d.ts +1 -1
  60. package/dist/components/Navigation/NavigationContent.js +56 -18
  61. package/dist/components/Navigation/NavigationProvider.d.ts +1 -1
  62. package/dist/components/Navigation/NavigationProvider.js +108 -70
  63. package/dist/components/Navigation/components/Group.d.ts +1 -1
  64. package/dist/components/Navigation/components/Group.js +20 -19
  65. package/dist/components/Navigation/components/Item.d.ts +1 -1
  66. package/dist/components/Navigation/components/Item.js +551 -254
  67. package/dist/components/Navigation/components/ItemProvider.d.ts +1 -1
  68. package/dist/components/Navigation/components/ItemProvider.js +2 -4
  69. package/dist/components/Navigation/components/PinnedItems.d.ts +1 -1
  70. package/dist/components/Navigation/components/PinnedItems.js +91 -37
  71. package/dist/components/Navigation/components/Separator.d.ts +1 -1
  72. package/dist/components/Navigation/components/Separator.js +1 -1
  73. package/dist/components/Navigation/styles.css.js +0 -1
  74. package/dist/components/Navigation/variables.css.js +1 -0
  75. package/dist/components/OfferList/OfferList.d.ts +3 -3
  76. package/dist/components/OfferList/OfferList.js +41 -9
  77. package/dist/components/OfferList/OfferListProvider.d.ts +1 -1
  78. package/dist/components/OfferList/OfferListProvider.js +25 -15
  79. package/dist/components/OfferList/components/Banner.d.ts +1 -1
  80. package/dist/components/OfferList/components/Banner.js +30 -8
  81. package/dist/components/OfferList/components/Cell.d.ts +1 -1
  82. package/dist/components/OfferList/components/Cell.js +12 -5
  83. package/dist/components/OfferList/components/Row.d.ts +1 -1
  84. package/dist/components/OfferList/components/Row.js +135 -42
  85. package/dist/components/OrderSummary/NonScrollableContent.d.ts +1 -1
  86. package/dist/components/OrderSummary/NonScrollableContent.js +68 -22
  87. package/dist/components/OrderSummary/Provider.js +1 -4
  88. package/dist/components/OrderSummary/ScrollableContent.d.ts +1 -1
  89. package/dist/components/OrderSummary/ScrollableContent.js +174 -33
  90. package/dist/components/OrderSummary/constants.js +7 -1
  91. package/dist/components/OrderSummary/helpers.js +36 -18
  92. package/dist/components/OrderSummary/index.d.ts +1 -1
  93. package/dist/components/OrderSummary/index.js +135 -48
  94. package/dist/components/Plans/FeatureHint.d.ts +1 -1
  95. package/dist/components/Plans/FeatureHint.js +26 -8
  96. package/dist/components/Plans/PlanHeader.d.ts +1 -1
  97. package/dist/components/Plans/PlanHeader.js +79 -25
  98. package/dist/components/Plans/index.d.ts +1 -1
  99. package/dist/components/Plans/index.js +142 -53
  100. package/dist/components/Plans/styles.css.js +0 -1
  101. package/dist/components/SteppedListCard/Step.d.ts +1 -1
  102. package/dist/components/SteppedListCard/Step.js +42 -2
  103. package/dist/components/SteppedListCard/SteppedListCard.d.ts +2 -2
  104. package/dist/components/SteppedListCard/SteppedListCard.js +66 -19
  105. package/dist/components/SteppedListCard/SteppedListContent.d.ts +1 -1
  106. package/dist/components/SteppedListCard/SteppedListContent.js +13 -11
  107. package/dist/components/SteppedListCard/helper.js +3 -1
  108. package/dist/plus.css +1 -1
  109. package/package.json +6 -6
@@ -1,34 +1,52 @@
1
1
  "use client";
2
- import { jsx, jsxs } from "@emotion/react/jsx-runtime";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { memo } from "react";
4
4
  import { useEstimateCost } from "../EstimateCostProvider.js";
5
5
  import { estimateCostImage } from "../styles.css.js";
6
6
  import { Item } from "./Item.js";
7
7
  import { Strong } from "./Strong.js";
8
- const Region = memo(({
9
- label,
10
- image,
11
- shouldBeHidden = false,
12
- priceText,
13
- animated = false,
14
- isFirstElement,
15
- isLastElement,
16
- productsCallback,
17
- iteration,
18
- discount,
19
- noBorder,
20
- noPrice,
21
- hideFromOverlay,
22
- style
23
- }) => {
24
- const {
25
- locales
26
- } = useEstimateCost();
27
- return /* @__PURE__ */ jsx(Item, { animated, discount, hideFromOverlay, isFirstElement, isLastElement, iteration, label: locales["estimate.cost.region.label"], noBorder, noPrice, priceText, productsCallback, shouldBeHidden, style, children: /* @__PURE__ */ jsxs(Strong, { children: [
28
- /* @__PURE__ */ jsx("img", { alt: label, className: estimateCostImage, src: image }),
29
- label
30
- ] }) });
31
- });
8
+ const Region = memo(
9
+ ({
10
+ label,
11
+ image,
12
+ shouldBeHidden = false,
13
+ priceText,
14
+ animated = false,
15
+ isFirstElement,
16
+ isLastElement,
17
+ productsCallback,
18
+ iteration,
19
+ discount,
20
+ noBorder,
21
+ noPrice,
22
+ hideFromOverlay,
23
+ style
24
+ }) => {
25
+ const { locales } = useEstimateCost();
26
+ return /* @__PURE__ */ jsx(
27
+ Item,
28
+ {
29
+ animated,
30
+ discount,
31
+ hideFromOverlay,
32
+ isFirstElement,
33
+ isLastElement,
34
+ iteration,
35
+ label: locales["estimate.cost.region.label"],
36
+ noBorder,
37
+ noPrice,
38
+ priceText,
39
+ productsCallback,
40
+ shouldBeHidden,
41
+ style,
42
+ children: /* @__PURE__ */ jsxs(Strong, { children: [
43
+ /* @__PURE__ */ jsx("img", { alt: label, className: estimateCostImage, src: image }),
44
+ label
45
+ ] })
46
+ }
47
+ );
48
+ }
49
+ );
32
50
  export {
33
51
  Region
34
52
  };
@@ -6,5 +6,5 @@ type RegularProps = {
6
6
  style?: CSSProperties;
7
7
  className?: string;
8
8
  };
9
- export declare const Regular: import("react").MemoExoticComponent<({ variant, isDisabledOnOverlay, children, className, style, }: RegularProps) => import("@emotion/react/jsx-runtime").JSX.Element | null>;
9
+ export declare const Regular: import("react").MemoExoticComponent<({ variant, isDisabledOnOverlay, children, className, style, }: RegularProps) => import("react/jsx-runtime").JSX.Element | null>;
10
10
  export {};
@@ -1,23 +1,27 @@
1
1
  "use client";
2
- import { jsx } from "@emotion/react/jsx-runtime";
2
+ import { jsx } from "react/jsx-runtime";
3
3
  import { memo } from "react";
4
4
  import { useOverlay } from "../OverlayContext.js";
5
5
  import { estimateCostRegular } from "./components.css.js";
6
- const Regular = memo(({
7
- variant = "normal",
8
- isDisabledOnOverlay = false,
9
- children = null,
10
- className,
11
- style
12
- }) => {
13
- const {
14
- isOverlay
15
- } = useOverlay();
16
- return !isDisabledOnOverlay || !isOverlay ? /* @__PURE__ */ jsx("div", { className: `${className ? `${className} ` : ""}${estimateCostRegular({
17
- isOverlay,
18
- variant
19
- })}`, style, children }) : null;
20
- });
6
+ const Regular = memo(
7
+ ({
8
+ variant = "normal",
9
+ isDisabledOnOverlay = false,
10
+ children = null,
11
+ className,
12
+ style
13
+ }) => {
14
+ const { isOverlay } = useOverlay();
15
+ return !isDisabledOnOverlay || !isOverlay ? /* @__PURE__ */ jsx(
16
+ "div",
17
+ {
18
+ className: `${className ? `${className} ` : ""}${estimateCostRegular({ isOverlay, variant })}`,
19
+ style,
20
+ children
21
+ }
22
+ ) : null;
23
+ }
24
+ );
21
25
  export {
22
26
  Regular
23
27
  };
@@ -5,5 +5,5 @@ type StrongProps = {
5
5
  isDisabledOnOverlay?: boolean;
6
6
  style?: CSSProperties;
7
7
  };
8
- export declare const Strong: import("react").MemoExoticComponent<({ variant, children, style }: StrongProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
8
+ export declare const Strong: import("react").MemoExoticComponent<({ variant, children, style }: StrongProps) => import("react/jsx-runtime").JSX.Element>;
9
9
  export {};
@@ -1,16 +1,17 @@
1
1
  "use client";
2
- import { jsx } from "@emotion/react/jsx-runtime";
2
+ import { jsx } from "react/jsx-runtime";
3
3
  import { memo } from "react";
4
4
  import { estimateCostRegular, estimateCostStrong } from "./components.css.js";
5
- const Strong = memo(({
6
- variant = "normal",
7
- children = null,
8
- style
9
- }) => /* @__PURE__ */ jsx("div", { className: `${estimateCostRegular({
10
- variant
11
- })} ${estimateCostStrong({
12
- variant
13
- })}`, style, children }));
5
+ const Strong = memo(
6
+ ({ variant = "normal", children = null, style }) => /* @__PURE__ */ jsx(
7
+ "div",
8
+ {
9
+ className: `${estimateCostRegular({ variant })} ${estimateCostStrong({ variant })}`,
10
+ style,
11
+ children
12
+ }
13
+ )
14
+ );
14
15
  export {
15
16
  Strong
16
17
  };
@@ -6,5 +6,5 @@ type UnitProps = {
6
6
  unit?: string;
7
7
  style?: CSSProperties;
8
8
  };
9
- export declare const Unit: ({ amount, itemCallback, getAmountValue, unit, style, }: UnitProps) => import("@emotion/react/jsx-runtime").JSX.Element;
9
+ export declare const Unit: ({ amount, itemCallback, getAmountValue, unit, style, }: UnitProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export {};
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx } from "@emotion/react/jsx-runtime";
2
+ import { jsx } from "react/jsx-runtime";
3
3
  import { NumberInput } from "@ultraviolet/ui";
4
4
  import { useState, useEffect } from "react";
5
5
  import { useOverlay } from "../OverlayContext.js";
@@ -12,24 +12,31 @@ const Unit = ({
12
12
  unit,
13
13
  style
14
14
  }) => {
15
- const {
16
- isOverlay
17
- } = useOverlay();
15
+ const { isOverlay } = useOverlay();
18
16
  const [capacity, setCapacity] = useState(amount === 0 ? void 0 : amount);
19
17
  useEffect(() => {
20
18
  setCapacity(amount);
21
19
  itemCallback?.(amount, true);
22
20
  getAmountValue?.(amount);
23
21
  }, [getAmountValue, itemCallback, capacity, amount]);
24
- return isOverlay ? /* @__PURE__ */ jsx("div", { className: estimateCostItemResourceName(), style, children: /* @__PURE__ */ jsx(Regular, { children: capacity }) }) : /* @__PURE__ */ jsx("div", { style: {
25
- width: "150px",
26
- ...style
27
- }, children: /* @__PURE__ */ jsx(NumberInput, { className: estimateCostNumberInput, controls: false, name: "capacity", onChange: (capacityText) => {
28
- const newCapacity = Number(capacityText) < 0 ? 0 : Number(capacityText);
29
- setCapacity(newCapacity);
30
- itemCallback?.(newCapacity, true);
31
- getAmountValue?.(capacity);
32
- }, placeholder: "00", size: "small", unit, value: capacity }) });
22
+ return isOverlay ? /* @__PURE__ */ jsx("div", { className: estimateCostItemResourceName(), style, children: /* @__PURE__ */ jsx(Regular, { children: capacity }) }) : /* @__PURE__ */ jsx("div", { style: { width: "150px", ...style }, children: /* @__PURE__ */ jsx(
23
+ NumberInput,
24
+ {
25
+ className: estimateCostNumberInput,
26
+ controls: false,
27
+ name: "capacity",
28
+ onChange: (capacityText) => {
29
+ const newCapacity = Number(capacityText) < 0 ? 0 : Number(capacityText);
30
+ setCapacity(newCapacity);
31
+ itemCallback?.(newCapacity, true);
32
+ getAmountValue?.(capacity);
33
+ },
34
+ placeholder: "00",
35
+ size: "small",
36
+ unit,
37
+ value: capacity
38
+ }
39
+ ) });
33
40
  };
34
41
  export {
35
42
  Unit
@@ -18,5 +18,5 @@ type RegionProps = {
18
18
  noPrice?: boolean;
19
19
  style?: CSSProperties;
20
20
  };
21
- export declare const Zone: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, style, }: RegionProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
21
+ export declare const Zone: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, style, }: RegionProps) => import("react/jsx-runtime").JSX.Element>;
22
22
  export {};
@@ -1,33 +1,50 @@
1
1
  "use client";
2
- import { jsx, jsxs } from "@emotion/react/jsx-runtime";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { memo } from "react";
4
4
  import { useEstimateCost } from "../EstimateCostProvider.js";
5
5
  import { estimateCostImage } from "../styles.css.js";
6
6
  import { Item } from "./Item.js";
7
7
  import { Strong } from "./Strong.js";
8
- const Zone = memo(({
9
- label,
10
- image,
11
- shouldBeHidden = false,
12
- priceText,
13
- animated = false,
14
- isFirstElement,
15
- isLastElement,
16
- productsCallback,
17
- iteration,
18
- discount,
19
- noBorder,
20
- noPrice,
21
- style
22
- }) => {
23
- const {
24
- locales
25
- } = useEstimateCost();
26
- return /* @__PURE__ */ jsx(Item, { animated, discount, isFirstElement, isLastElement, iteration, label: locales["estimate.cost.az.label"], noBorder, noPrice, priceText, productsCallback, shouldBeHidden, style, children: /* @__PURE__ */ jsxs(Strong, { children: [
27
- /* @__PURE__ */ jsx("img", { alt: label, className: estimateCostImage, src: image }),
28
- label
29
- ] }) });
30
- });
8
+ const Zone = memo(
9
+ ({
10
+ label,
11
+ image,
12
+ shouldBeHidden = false,
13
+ priceText,
14
+ animated = false,
15
+ isFirstElement,
16
+ isLastElement,
17
+ productsCallback,
18
+ iteration,
19
+ discount,
20
+ noBorder,
21
+ noPrice,
22
+ style
23
+ }) => {
24
+ const { locales } = useEstimateCost();
25
+ return /* @__PURE__ */ jsx(
26
+ Item,
27
+ {
28
+ animated,
29
+ discount,
30
+ isFirstElement,
31
+ isLastElement,
32
+ iteration,
33
+ label: locales["estimate.cost.az.label"],
34
+ noBorder,
35
+ noPrice,
36
+ priceText,
37
+ productsCallback,
38
+ shouldBeHidden,
39
+ style,
40
+ children: /* @__PURE__ */ jsxs(Strong, { children: [
41
+ /* @__PURE__ */ jsx("img", { alt: label, className: estimateCostImage, src: image }),
42
+ label
43
+ ] })
44
+ }
45
+ );
46
+ }
47
+ );
31
48
  export {
32
49
  Zone
33
50
  };
@@ -2,10 +2,10 @@ import { Text } from '@ultraviolet/ui';
2
2
  import type { ComponentProps, ReactNode } from 'react';
3
3
  import type { EstimateCostProps } from './types';
4
4
  declare const EstimateCost: {
5
- ({ description, alert, alertTitle, alertVariant, defaultTimeUnit, timeUnits, hideOverlay, disableOverlayLeft, disableOverlayRight, hideTimeUnit, hideTotal, discount, OverlayRight, OverlayLeft, overlayMargin, isBeta, commitmentFees, commitmentFeesContent, monthlyFees, monthlyFeesLabel, monthlyFeesContent, overlayUnit, children, locales, numberLocales, currency, style, onTotalPriceChange, }: EstimateCostProps): import("@emotion/react/jsx-runtime").JSX.Element;
5
+ ({ description, alert, alertTitle, alertVariant, defaultTimeUnit, timeUnits, hideOverlay, disableOverlayLeft, disableOverlayRight, hideTimeUnit, hideTotal, discount, OverlayRight, OverlayLeft, overlayMargin, isBeta, commitmentFees, commitmentFeesContent, monthlyFees, monthlyFeesLabel, monthlyFeesContent, overlayUnit, children, locales, numberLocales, currency, style, onTotalPriceChange, }: EstimateCostProps): import("react/jsx-runtime").JSX.Element;
6
6
  LineThrough: ({ isActive, className, ...props }: import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
7
7
  isActive?: boolean;
8
- }) => import("@emotion/react/jsx-runtime").JSX.Element;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
9
  Item: import("react").MemoExoticComponent<({ discount, priceText, discountText, label, tooltipInfo, subLabel, price: basePrice, monthlyPrice, unit: baseUnit, amount: currentAmount, onAmountChange, amountFree, maxAmount, longFractionDigits, noIteration, noIterationText, noBorder, noPrice, isDefined, children, isFirstElement, isLastElement, isPrimaryBackground, productsCallback, iteration: receivedIteration, shouldBeHidden, hideFromOverlay, textNotDefined, animated, tabulation, labelTextVariant, labelTextProminence, notice, strikeThrough, style, }: {
10
10
  amount?: number;
11
11
  amountFree?: number;
@@ -45,7 +45,7 @@ declare const EstimateCost: {
45
45
  unit?: "mb" | "gb" | "tb" | "seconds" | "minutes" | "hours" | "days" | "months" | "years" | (string & NonNullable<unknown>);
46
46
  strikeThrough?: boolean;
47
47
  style?: import("react").CSSProperties;
48
- }) => import("@emotion/react/jsx-runtime").JSX.Element>;
48
+ }) => import("react/jsx-runtime").JSX.Element>;
49
49
  NumberInput: ({ amount, minValue, maxValue, getAmountValue, itemCallback, controls, }: {
50
50
  amount?: number;
51
51
  itemCallback?: (amount?: number | null, isVariant?: boolean) => void;
@@ -53,28 +53,28 @@ declare const EstimateCost: {
53
53
  minValue?: number;
54
54
  maxValue?: number;
55
55
  controls?: boolean;
56
- }) => import("@emotion/react/jsx-runtime").JSX.Element;
56
+ }) => import("react/jsx-runtime").JSX.Element;
57
57
  Unit: ({ amount, itemCallback, getAmountValue, unit, style, }: {
58
58
  amount?: number;
59
59
  itemCallback?: (amount?: number, isVariant?: boolean) => void;
60
60
  getAmountValue?: (amount?: number) => void;
61
61
  unit?: string;
62
62
  style?: import("react").CSSProperties;
63
- }) => import("@emotion/react/jsx-runtime").JSX.Element;
63
+ }) => import("react/jsx-runtime").JSX.Element;
64
64
  Strong: import("react").MemoExoticComponent<({ variant, children, style }: {
65
65
  variant?: "normal" | "small" | "big" | "capitalized";
66
66
  children?: ReactNode;
67
67
  isDisabledOnOverlay?: boolean;
68
68
  style?: import("react").CSSProperties;
69
- }) => import("@emotion/react/jsx-runtime").JSX.Element>;
69
+ }) => import("react/jsx-runtime").JSX.Element>;
70
70
  Regular: import("react").MemoExoticComponent<({ variant, isDisabledOnOverlay, children, className, style, }: {
71
71
  variant?: "normal" | "small" | "big" | "capitalized";
72
72
  isDisabledOnOverlay?: boolean;
73
73
  children?: ReactNode;
74
74
  style?: import("react").CSSProperties;
75
75
  className?: string;
76
- }) => import("@emotion/react/jsx-runtime").JSX.Element | null>;
77
- Image: (props: ComponentProps<"img">) => import("@emotion/react/jsx-runtime").JSX.Element;
76
+ }) => import("react/jsx-runtime").JSX.Element | null>;
77
+ Image: (props: ComponentProps<"img">) => import("react/jsx-runtime").JSX.Element;
78
78
  Region: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, hideFromOverlay, style, }: {
79
79
  shouldBeHidden?: boolean;
80
80
  priceText?: ReactNode;
@@ -130,7 +130,7 @@ declare const EstimateCost: {
130
130
  unit?: "mb" | "gb" | "tb" | "seconds" | "minutes" | "hours" | "days" | "months" | "years" | (string & NonNullable<unknown>);
131
131
  strikeThrough?: boolean;
132
132
  style?: import("react").CSSProperties;
133
- }, "style" | "hideFromOverlay">) => import("@emotion/react/jsx-runtime").JSX.Element>;
133
+ }, "style" | "hideFromOverlay">) => import("react/jsx-runtime").JSX.Element>;
134
134
  Zone: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, style, }: {
135
135
  shouldBeHidden?: boolean;
136
136
  priceText?: string;
@@ -148,11 +148,11 @@ declare const EstimateCost: {
148
148
  noBorder?: boolean;
149
149
  noPrice?: boolean;
150
150
  style?: import("react").CSSProperties;
151
- }) => import("@emotion/react/jsx-runtime").JSX.Element>;
151
+ }) => import("react/jsx-runtime").JSX.Element>;
152
152
  Ellipsis: ({ children, maxWidth, "data-testid": dataTestId, }: {
153
153
  children: ReactNode;
154
154
  maxWidth?: number;
155
155
  "data-testid"?: string;
156
- }) => import("@emotion/react/jsx-runtime").JSX.Element;
156
+ }) => import("react/jsx-runtime").JSX.Element;
157
157
  };
158
158
  export { EstimateCost };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx } from "@emotion/react/jsx-runtime";
2
+ import { jsx } from "react/jsx-runtime";
3
3
  import { Text } from "@ultraviolet/ui";
4
4
  import { assignInlineVars } from "@vanilla-extract/dynamic";
5
5
  import { Children } from "react";
@@ -55,7 +55,45 @@ const EstimateCost = ({
55
55
  currency = "EUR",
56
56
  style,
57
57
  onTotalPriceChange
58
- }) => /* @__PURE__ */ jsx(EstimateCostProvider, { currency, locales, numberLocales, children: /* @__PURE__ */ jsx(EstimateCostContent, { alert, alertTitle, alertVariant, commitmentFees, commitmentFeesContent, defaultTimeUnit, description, disableOverlayLeft, disableOverlayRight, discount, hideOverlay, hideTimeUnit, hideTotal, isBeta, locales, monthlyFees, monthlyFeesContent, monthlyFeesLabel, OverlayLeft, OverlayRight, onTotalPriceChange, overlayMargin, overlayUnit, style, timeUnits, children }) });
58
+ }) => /* @__PURE__ */ jsx(
59
+ EstimateCostProvider,
60
+ {
61
+ currency,
62
+ locales,
63
+ numberLocales,
64
+ children: /* @__PURE__ */ jsx(
65
+ EstimateCostContent,
66
+ {
67
+ alert,
68
+ alertTitle,
69
+ alertVariant,
70
+ commitmentFees,
71
+ commitmentFeesContent,
72
+ defaultTimeUnit,
73
+ description,
74
+ disableOverlayLeft,
75
+ disableOverlayRight,
76
+ discount,
77
+ hideOverlay,
78
+ hideTimeUnit,
79
+ hideTotal,
80
+ isBeta,
81
+ locales,
82
+ monthlyFees,
83
+ monthlyFeesContent,
84
+ monthlyFeesLabel,
85
+ OverlayLeft,
86
+ OverlayRight,
87
+ onTotalPriceChange,
88
+ overlayMargin,
89
+ overlayUnit,
90
+ style,
91
+ timeUnits,
92
+ children
93
+ }
94
+ )
95
+ }
96
+ );
59
97
  EstimateCost.LineThrough = LineThrough;
60
98
  EstimateCost.Item = Item;
61
99
  EstimateCost.NumberInput = NumberInput;
@@ -70,15 +108,28 @@ const Ellipsis = ({
70
108
  maxWidth = 350,
71
109
  "data-testid": dataTestId
72
110
  }) => {
73
- const {
74
- isOverlay
75
- } = useOverlay();
111
+ const { isOverlay } = useOverlay();
76
112
  const text = Children.toArray(children).join("").toString();
77
- return /* @__PURE__ */ jsx("div", { "data-testid": dataTestId, style: {
78
- display: !isOverlay ? "inline-flex" : void 0
79
- }, children: /* @__PURE__ */ jsx(Text, { as: "p", className: maxWidthText, oneLine: true, style: assignInlineVars({
80
- [maxWidthTextVar]: isOverlay ? "200px" : `${maxWidth}px`
81
- }), variant: "bodyStrong", children: text }) });
113
+ return /* @__PURE__ */ jsx(
114
+ "div",
115
+ {
116
+ "data-testid": dataTestId,
117
+ style: { display: !isOverlay ? "inline-flex" : void 0 },
118
+ children: /* @__PURE__ */ jsx(
119
+ Text,
120
+ {
121
+ as: "p",
122
+ className: maxWidthText,
123
+ oneLine: true,
124
+ style: assignInlineVars({
125
+ [maxWidthTextVar]: isOverlay ? "200px" : `${maxWidth}px`
126
+ }),
127
+ variant: "bodyStrong",
128
+ children: text
129
+ }
130
+ )
131
+ }
132
+ );
82
133
  };
83
134
  EstimateCost.Ellipsis = Ellipsis;
84
135
  export {
@@ -1,2 +1,2 @@
1
1
  import type { EstimateCostProps } from './types';
2
- export declare const EstimateCostContent: ({ description, alert, alertTitle, alertVariant, defaultTimeUnit, timeUnits, hideOverlay, disableOverlayLeft, disableOverlayRight, hideTimeUnit, hideTotal, hideHourlyPriceOnTotal, discount, OverlayRight, OverlayLeft, isBeta, commitmentFees, commitmentFeesContent, monthlyFees, monthlyFeesLabel, monthlyFeesContent, overlayUnit, children, locales, overlayMargin, onTotalPriceChange, style, }: EstimateCostProps) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export declare const EstimateCostContent: ({ description, alert, alertTitle, alertVariant, defaultTimeUnit, timeUnits, hideOverlay, disableOverlayLeft, disableOverlayRight, hideTimeUnit, hideTotal, hideHourlyPriceOnTotal, discount, OverlayRight, OverlayLeft, isBeta, commitmentFees, commitmentFeesContent, monthlyFees, monthlyFeesLabel, monthlyFeesContent, overlayUnit, children, locales, overlayMargin, onTotalPriceChange, style, }: EstimateCostProps) => import("react/jsx-runtime").JSX.Element;