@ultraviolet/plus 3.0.0-beta.8 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/dist/components/CodeEditor/CodeEditor.d.ts +3 -2
  2. package/dist/components/CodeEditor/CodeEditor.js +44 -13
  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.d.ts +2 -1
  6. package/dist/components/ContentCard/index.js +131 -50
  7. package/dist/components/ContentCardGroup/Card.d.ts +2 -1
  8. package/dist/components/ContentCardGroup/Card.js +65 -86
  9. package/dist/components/ContentCardGroup/SkeletonCard.d.ts +1 -1
  10. package/dist/components/ContentCardGroup/SkeletonCard.js +4 -22
  11. package/dist/components/ContentCardGroup/index.d.ts +3 -1
  12. package/dist/components/ContentCardGroup/index.js +12 -18
  13. package/dist/components/ContentCardGroup/styles.css.d.ts +7 -0
  14. package/dist/components/ContentCardGroup/styles.css.js +18 -0
  15. package/dist/components/Conversation/index.d.ts +25 -17
  16. package/dist/components/Conversation/index.js +37 -103
  17. package/dist/components/Conversation/styles.css.d.ts +7 -0
  18. package/dist/components/Conversation/styles.css.js +17 -0
  19. package/dist/components/CustomerSatisfaction/index.d.ts +3 -1
  20. package/dist/components/CustomerSatisfaction/index.js +70 -96
  21. package/dist/components/CustomerSatisfaction/styles.css.d.ts +17 -0
  22. package/dist/components/CustomerSatisfaction/styles.css.js +6 -0
  23. package/dist/components/EstimateCost/Components/CustomUnitInput.d.ts +1 -1
  24. package/dist/components/EstimateCost/Components/CustomUnitInput.js +47 -27
  25. package/dist/components/EstimateCost/Components/Item.d.ts +3 -2
  26. package/dist/components/EstimateCost/Components/Item.js +308 -288
  27. package/dist/components/EstimateCost/Components/LineThrough.d.ts +3 -5
  28. package/dist/components/EstimateCost/Components/LineThrough.js +12 -12
  29. package/dist/components/EstimateCost/Components/NumberInput.d.ts +1 -1
  30. package/dist/components/EstimateCost/Components/NumberInput.js +18 -10
  31. package/dist/components/EstimateCost/Components/Region.d.ts +2 -2
  32. package/dist/components/EstimateCost/Components/Region.js +44 -33
  33. package/dist/components/EstimateCost/Components/Regular.d.ts +3 -2
  34. package/dist/components/EstimateCost/Components/Regular.js +21 -29
  35. package/dist/components/EstimateCost/Components/Strong.d.ts +3 -10
  36. package/dist/components/EstimateCost/Components/Strong.js +13 -24
  37. package/dist/components/EstimateCost/Components/Unit.d.ts +3 -1
  38. package/dist/components/EstimateCost/Components/Unit.js +23 -31
  39. package/dist/components/EstimateCost/Components/Zone.d.ts +3 -1
  40. package/dist/components/EstimateCost/Components/Zone.js +42 -32
  41. package/dist/components/EstimateCost/Components/components.css.d.ts +77 -0
  42. package/dist/components/EstimateCost/Components/components.css.js +124 -0
  43. package/dist/components/EstimateCost/EstimateCost.d.ts +29 -29
  44. package/dist/components/EstimateCost/EstimateCost.js +74 -25
  45. package/dist/components/EstimateCost/EstimateCostContent.d.ts +1 -1
  46. package/dist/components/EstimateCost/EstimateCostContent.js +270 -174
  47. package/dist/components/EstimateCost/EstimateCostProvider.d.ts +1 -1
  48. package/dist/components/EstimateCost/EstimateCostProvider.js +24 -21
  49. package/dist/components/EstimateCost/OverlayComponent.d.ts +1 -1
  50. package/dist/components/EstimateCost/OverlayComponent.js +57 -81
  51. package/dist/components/EstimateCost/OverlayContext.d.ts +1 -1
  52. package/dist/components/EstimateCost/OverlayContext.js +2 -4
  53. package/dist/components/EstimateCost/constants.js +0 -4
  54. package/dist/components/EstimateCost/styles.css.d.ts +76 -0
  55. package/dist/components/EstimateCost/styles.css.js +50 -0
  56. package/dist/components/EstimateCost/types.d.ts +2 -1
  57. package/dist/components/FAQ/index.d.ts +3 -1
  58. package/dist/components/FAQ/index.js +4 -3
  59. package/dist/components/FAQ/styles.css.js +0 -1
  60. package/dist/components/InfoTable/InfoTable.d.ts +9 -6
  61. package/dist/components/InfoTable/InfoTable.js +14 -18
  62. package/dist/components/InfoTable/components/Cell.d.ts +3 -6
  63. package/dist/components/InfoTable/components/Cell.js +28 -34
  64. package/dist/components/InfoTable/components/Row.d.ts +3 -14
  65. package/dist/components/InfoTable/components/Row.js +25 -18
  66. package/dist/components/InfoTable/context.d.ts +3 -0
  67. package/dist/components/InfoTable/context.js +5 -0
  68. package/dist/components/InfoTable/styles.css.d.ts +6 -0
  69. package/dist/components/InfoTable/styles.css.js +15 -0
  70. package/dist/components/Navigation/Footer.d.ts +1 -1
  71. package/dist/components/Navigation/Footer.js +35 -33
  72. package/dist/components/Navigation/Header.d.ts +1 -1
  73. package/dist/components/Navigation/Header.js +13 -26
  74. package/dist/components/Navigation/Navigation.d.ts +11 -8
  75. package/dist/components/Navigation/Navigation.js +2 -5
  76. package/dist/components/Navigation/NavigationContent.d.ts +1 -1
  77. package/dist/components/Navigation/NavigationContent.js +60 -71
  78. package/dist/components/Navigation/NavigationProvider.d.ts +1 -1
  79. package/dist/components/Navigation/NavigationProvider.js +108 -70
  80. package/dist/components/Navigation/animations.css.d.ts +6 -0
  81. package/dist/components/Navigation/components/Group.d.ts +3 -2
  82. package/dist/components/Navigation/components/Group.js +21 -43
  83. package/dist/components/Navigation/components/Item.d.ts +3 -2
  84. package/dist/components/Navigation/components/Item.js +552 -405
  85. package/dist/components/Navigation/components/ItemProvider.d.ts +1 -1
  86. package/dist/components/Navigation/components/ItemProvider.js +2 -4
  87. package/dist/components/Navigation/components/PinnedItems.d.ts +3 -2
  88. package/dist/components/Navigation/components/PinnedItems.js +95 -75
  89. package/dist/components/Navigation/components/Separator.d.ts +1 -1
  90. package/dist/components/Navigation/components/Separator.js +3 -11
  91. package/dist/components/Navigation/components/items.css.d.ts +70 -0
  92. package/dist/components/Navigation/components/items.css.js +47 -0
  93. package/dist/components/Navigation/components/styles.css.d.ts +23 -0
  94. package/dist/components/Navigation/components/styles.css.js +17 -0
  95. package/dist/components/Navigation/constants.d.ts +0 -12
  96. package/dist/components/Navigation/constants.js +1 -28
  97. package/dist/components/Navigation/styles.css.d.ts +33 -0
  98. package/dist/components/Navigation/styles.css.js +22 -0
  99. package/dist/components/Navigation/types.d.ts +2 -1
  100. package/dist/components/Navigation/variables.css.d.ts +1 -0
  101. package/dist/components/Navigation/variables.css.js +5 -0
  102. package/dist/components/OfferList/OfferList.d.ts +9 -6
  103. package/dist/components/OfferList/OfferList.js +43 -22
  104. package/dist/components/OfferList/OfferListProvider.d.ts +1 -1
  105. package/dist/components/OfferList/OfferListProvider.js +25 -15
  106. package/dist/components/OfferList/components/Banner.d.ts +1 -1
  107. package/dist/components/OfferList/components/Banner.js +32 -95
  108. package/dist/components/OfferList/components/Cell.d.ts +1 -1
  109. package/dist/components/OfferList/components/Cell.js +16 -37
  110. package/dist/components/OfferList/components/Row.d.ts +4 -2
  111. package/dist/components/OfferList/components/Row.js +141 -125
  112. package/dist/components/OfferList/styles.css.d.ts +42 -0
  113. package/dist/components/OfferList/styles.css.js +38 -0
  114. package/dist/components/OrderSummary/NonScrollableContent.d.ts +1 -1
  115. package/dist/components/OrderSummary/NonScrollableContent.js +70 -34
  116. package/dist/components/OrderSummary/Provider.js +1 -4
  117. package/dist/components/OrderSummary/ScrollableContent.d.ts +1 -1
  118. package/dist/components/OrderSummary/ScrollableContent.js +177 -67
  119. package/dist/components/OrderSummary/constants.js +7 -1
  120. package/dist/components/OrderSummary/helpers.js +39 -21
  121. package/dist/components/OrderSummary/index.d.ts +1 -1
  122. package/dist/components/OrderSummary/index.js +139 -83
  123. package/dist/components/OrderSummary/styles.css.d.ts +8 -0
  124. package/dist/components/OrderSummary/styles.css.js +19 -0
  125. package/dist/components/OrderSummary/types.d.ts +3 -1
  126. package/dist/components/Plans/FeatureHint.d.ts +1 -1
  127. package/dist/components/Plans/FeatureHint.js +27 -25
  128. package/dist/components/Plans/PlanHeader.d.ts +1 -1
  129. package/dist/components/Plans/PlanHeader.js +80 -84
  130. package/dist/components/Plans/index.d.ts +3 -1
  131. package/dist/components/Plans/index.js +150 -109
  132. package/dist/components/Plans/styles.css.d.ts +61 -0
  133. package/dist/components/Plans/styles.css.js +26 -0
  134. package/dist/components/SteppedListCard/Step.d.ts +6 -1
  135. package/dist/components/SteppedListCard/Step.js +44 -32
  136. package/dist/components/SteppedListCard/SteppedListCard.d.ts +9 -5
  137. package/dist/components/SteppedListCard/SteppedListCard.js +70 -45
  138. package/dist/components/SteppedListCard/SteppedListContent.d.ts +4 -3
  139. package/dist/components/SteppedListCard/SteppedListContent.js +20 -51
  140. package/dist/components/SteppedListCard/helper.d.ts +1 -1
  141. package/dist/components/SteppedListCard/helper.js +4 -1
  142. package/dist/components/SteppedListCard/styles.css.d.ts +8 -0
  143. package/dist/components/SteppedListCard/styles.css.js +19 -0
  144. package/dist/plus.css +1 -1
  145. package/package.json +13 -16
  146. package/dist/components/CodeEditor/CodeEditor.cjs +0 -49
  147. package/dist/components/CodeEditor/styles.css.cjs +0 -9
  148. package/dist/components/ContentCard/Skeleton.cjs +0 -23
  149. package/dist/components/ContentCard/index.cjs +0 -61
  150. package/dist/components/ContentCard/styles.css.cjs +0 -27
  151. package/dist/components/ContentCardGroup/Card.cjs +0 -94
  152. package/dist/components/ContentCardGroup/SkeletonCard.cjs +0 -35
  153. package/dist/components/ContentCardGroup/index.cjs +0 -31
  154. package/dist/components/Conversation/index.cjs +0 -127
  155. package/dist/components/CustomerSatisfaction/assets/1-5.svg.cjs +0 -3
  156. package/dist/components/CustomerSatisfaction/assets/1-5NB.svg.cjs +0 -3
  157. package/dist/components/CustomerSatisfaction/assets/2-5.svg.cjs +0 -3
  158. package/dist/components/CustomerSatisfaction/assets/2-5NB.svg.cjs +0 -3
  159. package/dist/components/CustomerSatisfaction/assets/3-5.svg.cjs +0 -3
  160. package/dist/components/CustomerSatisfaction/assets/3-5NB.svg.cjs +0 -3
  161. package/dist/components/CustomerSatisfaction/assets/4-5.svg.cjs +0 -3
  162. package/dist/components/CustomerSatisfaction/assets/4-5NB.svg.cjs +0 -3
  163. package/dist/components/CustomerSatisfaction/assets/5-5.svg.cjs +0 -3
  164. package/dist/components/CustomerSatisfaction/assets/5-5NB.svg.cjs +0 -3
  165. package/dist/components/CustomerSatisfaction/index.cjs +0 -123
  166. package/dist/components/EstimateCost/Components/CustomUnitInput.cjs +0 -34
  167. package/dist/components/EstimateCost/Components/Item.cjs +0 -303
  168. package/dist/components/EstimateCost/Components/LineThrough.cjs +0 -19
  169. package/dist/components/EstimateCost/Components/NumberInput.cjs +0 -31
  170. package/dist/components/EstimateCost/Components/Region.cjs +0 -43
  171. package/dist/components/EstimateCost/Components/Regular.cjs +0 -37
  172. package/dist/components/EstimateCost/Components/Strong.cjs +0 -30
  173. package/dist/components/EstimateCost/Components/Unit.cjs +0 -53
  174. package/dist/components/EstimateCost/Components/Zone.cjs +0 -42
  175. package/dist/components/EstimateCost/EstimateCost.cjs +0 -90
  176. package/dist/components/EstimateCost/EstimateCostContent.cjs +0 -256
  177. package/dist/components/EstimateCost/EstimateCostProvider.cjs +0 -37
  178. package/dist/components/EstimateCost/OverlayComponent.cjs +0 -123
  179. package/dist/components/EstimateCost/OverlayContext.cjs +0 -15
  180. package/dist/components/EstimateCost/componentStyle.cjs +0 -221
  181. package/dist/components/EstimateCost/componentStyle.d.ts +0 -106
  182. package/dist/components/EstimateCost/componentStyle.js +0 -219
  183. package/dist/components/EstimateCost/constants.cjs +0 -32
  184. package/dist/components/EstimateCost/helper.cjs +0 -16
  185. package/dist/components/EstimateCost/locales/en.cjs +0 -23
  186. package/dist/components/FAQ/index.cjs +0 -48
  187. package/dist/components/FAQ/styles.css.cjs +0 -6
  188. package/dist/components/InfoTable/InfoTable.cjs +0 -32
  189. package/dist/components/InfoTable/components/Cell.cjs +0 -44
  190. package/dist/components/InfoTable/components/Row.cjs +0 -26
  191. package/dist/components/Navigation/Footer.cjs +0 -71
  192. package/dist/components/Navigation/Header.cjs +0 -36
  193. package/dist/components/Navigation/Navigation.cjs +0 -18
  194. package/dist/components/Navigation/NavigationContent.cjs +0 -163
  195. package/dist/components/Navigation/NavigationProvider.cjs +0 -129
  196. package/dist/components/Navigation/components/Group.cjs +0 -62
  197. package/dist/components/Navigation/components/Item.cjs +0 -429
  198. package/dist/components/Navigation/components/ItemProvider.cjs +0 -14
  199. package/dist/components/Navigation/components/PinnedItems.cjs +0 -116
  200. package/dist/components/Navigation/components/Separator.cjs +0 -18
  201. package/dist/components/Navigation/constants.cjs +0 -37
  202. package/dist/components/Navigation/locales/en.cjs +0 -11
  203. package/dist/components/OfferList/OfferList.cjs +0 -58
  204. package/dist/components/OfferList/OfferListProvider.cjs +0 -38
  205. package/dist/components/OfferList/components/Banner.cjs +0 -108
  206. package/dist/components/OfferList/components/Cell.cjs +0 -50
  207. package/dist/components/OfferList/components/Row.cjs +0 -192
  208. package/dist/components/OrderSummary/NonScrollableContent.cjs +0 -68
  209. package/dist/components/OrderSummary/Provider.cjs +0 -18
  210. package/dist/components/OrderSummary/ScrollableContent.cjs +0 -106
  211. package/dist/components/OrderSummary/constants.cjs +0 -12
  212. package/dist/components/OrderSummary/helpers.cjs +0 -91
  213. package/dist/components/OrderSummary/index.cjs +0 -135
  214. package/dist/components/OrderSummary/locales/en.cjs +0 -11
  215. package/dist/components/Plans/FeatureHint.cjs +0 -42
  216. package/dist/components/Plans/PlanHeader.cjs +0 -102
  217. package/dist/components/Plans/index.cjs +0 -152
  218. package/dist/components/Plans/locales/en.cjs +0 -7
  219. package/dist/components/SteppedListCard/Step.cjs +0 -51
  220. package/dist/components/SteppedListCard/SteppedListCard.cjs +0 -82
  221. package/dist/components/SteppedListCard/SteppedListContent.cjs +0 -86
  222. package/dist/components/SteppedListCard/helper.cjs +0 -38
  223. package/dist/index.cjs +0 -33
@@ -0,0 +1,124 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ /* empty css */
7
+ /* empty css */
8
+ /* empty css */
9
+ /* empty css */
10
+ /* empty css */
11
+ /* empty css */
12
+ /* empty css */
13
+ /* empty css */
14
+ /* empty css */
15
+ /* empty css */
16
+ /* empty css */
17
+ /* empty css */
18
+ /* empty css */
19
+ /* empty css */
20
+ /* empty css */
21
+ /* empty css */
22
+ /* empty css */
23
+ /* empty css */
24
+ /* empty css */
25
+ /* empty css */
26
+ /* empty css */
27
+ /* empty css */
28
+ /* empty css */
29
+ /* empty css */
30
+ /* empty css */
31
+ /* empty css */
32
+ /* empty css */
33
+ /* empty css */
34
+ /* empty css */
35
+ /* empty css */
36
+ /* empty css */
37
+ /* empty css */
38
+ /* empty css */
39
+ /* empty css */
40
+ /* empty css */
41
+ /* empty css */
42
+ /* empty css */
43
+ /* empty css */
44
+ /* empty css */
45
+ /* empty css */
46
+ /* empty css */
47
+ /* empty css */
48
+ /* empty css */
49
+ /* empty css */
50
+ /* empty css */
51
+ /* empty css */
52
+ /* empty css */
53
+ /* empty css */
54
+ /* empty css */
55
+ /* empty css */
56
+ /* empty css */
57
+ /* empty css */
58
+ /* empty css */
59
+ /* empty css */
60
+ /* empty css */
61
+ /* empty css */
62
+ /* empty css */
63
+ /* empty css */
64
+ /* empty css */
65
+ /* empty css */
66
+ /* empty css */
67
+ /* empty css */
68
+ /* empty css */
69
+ /* empty css */
70
+ /* empty css */
71
+ /* empty css */
72
+ /* empty css */
73
+ /* empty css */
74
+ /* empty css */
75
+ /* empty css */
76
+ /* empty css */
77
+ /* empty css */
78
+ /* empty css */
79
+ /* empty css */
80
+ /* empty css */
81
+ /* empty css */
82
+ /* empty css */
83
+ /* empty css */
84
+ /* empty css */
85
+ /* empty css */
86
+ /* empty css */
87
+ /* empty css */
88
+ /* empty css */
89
+ /* empty css */
90
+ /* empty css */
91
+ /* empty css */
92
+ import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
93
+ var maxWidthTextVar = "var(--uv_plus_1ko5kn20)";
94
+ var maxWidthText = "uv_plus_1ko5kn21";
95
+ var estimateCostTr = "uv_plus_1ko5kn23";
96
+ var styledDiv = "uv_plus_1ko5kn24";
97
+ var estimateCostLeftSide = "uv_plus_1ko5kn25";
98
+ var estimateCostItemResourceName = createRuntimeFn({ defaultClassName: "uv_plus_1ko5kn26", variantClassNames: { animated: { true: "uv_plus_1ko5kn27" } }, defaultVariants: { animated: false }, compoundVariants: [] });
99
+ var estimateCostResourceName = createRuntimeFn({ defaultClassName: "uv_plus_1ko5kn28", variantClassNames: { isOverlay: { true: "uv_plus_1ko5kn29", false: "uv_plus_1ko5kn2a" }, isAnimated: { true: "uv_plus_1ko5kn2b" } }, defaultVariants: { isAnimated: false, isOverlay: false }, compoundVariants: [] });
100
+ var estimateCostBadgeItem = "uv_plus_1ko5kn2c";
101
+ var estimateCostTextItem = "uv_plus_1ko5kn2d";
102
+ var estimateCostMaxWidthText = "uv_plus_1ko5kn2e";
103
+ var estimateCostTooltip = "uv_plus_1ko5kn2f";
104
+ var estimateCostLineThrough = "uv_plus_1ko5kn2g";
105
+ var estimateCostRegular = createRuntimeFn({ defaultClassName: "uv_plus_1ko5kn2h", variantClassNames: { isOverlay: { true: "uv_plus_1ko5kn2i", false: "uv_plus_1ko5kn2j" }, variant: { normal: "uv_plus_1ko5kn2k", big: "uv_plus_1ko5kn2l", capitalized: "uv_plus_1ko5kn2m", small: "uv_plus_1ko5kn2n" } }, defaultVariants: { isOverlay: false, variant: "normal" }, compoundVariants: [] });
106
+ var estimateCostStrong = createRuntimeFn({ defaultClassName: "uv_plus_1ko5kn2o", variantClassNames: { variant: { normal: "uv_plus_1ko5kn2p", big: "uv_plus_1ko5kn2q", capitalized: "uv_plus_1ko5kn2r", small: "uv_plus_1ko5kn2s" } }, defaultVariants: { variant: "normal" }, compoundVariants: [] });
107
+ var estimateCostNumberInput = "uv_plus_1ko5kn2t";
108
+ export {
109
+ estimateCostBadgeItem,
110
+ estimateCostItemResourceName,
111
+ estimateCostLeftSide,
112
+ estimateCostLineThrough,
113
+ estimateCostMaxWidthText,
114
+ estimateCostNumberInput,
115
+ estimateCostRegular,
116
+ estimateCostResourceName,
117
+ estimateCostStrong,
118
+ estimateCostTextItem,
119
+ estimateCostTooltip,
120
+ estimateCostTr,
121
+ maxWidthText,
122
+ maxWidthTextVar,
123
+ styledDiv
124
+ };
@@ -1,15 +1,12 @@
1
1
  import { Text } from '@ultraviolet/ui';
2
- import type { ReactNode } from 'react';
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, onTotalPriceChange, }: EstimateCostProps): import("@emotion/react/jsx-runtime").JSX.Element;
6
- LineThrough: import("@emotion/styled").StyledComponent<{
7
- theme?: import("@emotion/react").Theme;
8
- as?: React.ElementType;
9
- } & {
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
+ LineThrough: ({ isActive, className, ...props }: import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
10
7
  isActive?: boolean;
11
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
12
- 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, }: {
8
+ }) => import("react/jsx-runtime").JSX.Element;
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, }: {
13
10
  amount?: number;
14
11
  amountFree?: number;
15
12
  animated?: boolean;
@@ -23,8 +20,8 @@ declare const EstimateCost: {
23
20
  isPrimaryBackground?: boolean;
24
21
  iteration?: import("./types").Iteration;
25
22
  label?: ReactNode;
26
- labelTextVariant?: import("react").ComponentProps<typeof Text>["variant"];
27
- labelTextProminence?: import("react").ComponentProps<typeof Text>["prominence"];
23
+ labelTextVariant?: ComponentProps<typeof Text>["variant"];
24
+ labelTextProminence?: ComponentProps<typeof Text>["prominence"];
28
25
  longFractionDigits?: boolean;
29
26
  maxAmount?: number;
30
27
  monthlyPrice?: number;
@@ -47,7 +44,8 @@ declare const EstimateCost: {
47
44
  tooltipInfo?: string;
48
45
  unit?: "mb" | "gb" | "tb" | "seconds" | "minutes" | "hours" | "days" | "months" | "years" | (string & NonNullable<unknown>);
49
46
  strikeThrough?: boolean;
50
- }) => import("@emotion/react/jsx-runtime").JSX.Element>;
47
+ style?: import("react").CSSProperties;
48
+ }) => import("react/jsx-runtime").JSX.Element>;
51
49
  NumberInput: ({ amount, minValue, maxValue, getAmountValue, itemCallback, controls, }: {
52
50
  amount?: number;
53
51
  itemCallback?: (amount?: number | null, isVariant?: boolean) => void;
@@ -55,29 +53,29 @@ declare const EstimateCost: {
55
53
  minValue?: number;
56
54
  maxValue?: number;
57
55
  controls?: boolean;
58
- }) => import("@emotion/react/jsx-runtime").JSX.Element;
59
- Unit: ({ amount, itemCallback, getAmountValue, unit, }: {
56
+ }) => import("react/jsx-runtime").JSX.Element;
57
+ Unit: ({ amount, itemCallback, getAmountValue, unit, style, }: {
60
58
  amount?: number;
61
59
  itemCallback?: (amount?: number, isVariant?: boolean) => void;
62
60
  getAmountValue?: (amount?: number) => void;
63
61
  unit?: string;
64
- }) => import("@emotion/react/jsx-runtime").JSX.Element;
65
- Strong: import("react").MemoExoticComponent<({ variant, children, isDisabledOnOverlay, }: {
62
+ style?: import("react").CSSProperties;
63
+ }) => import("react/jsx-runtime").JSX.Element;
64
+ Strong: import("react").MemoExoticComponent<({ variant, children, style }: {
66
65
  variant?: "normal" | "small" | "big" | "capitalized";
67
66
  children?: ReactNode;
68
67
  isDisabledOnOverlay?: boolean;
69
- }) => import("@emotion/react/jsx-runtime").JSX.Element>;
70
- Regular: import("react").MemoExoticComponent<({ variant, isDisabledOnOverlay, children, className, }: {
68
+ style?: import("react").CSSProperties;
69
+ }) => import("react/jsx-runtime").JSX.Element>;
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
+ style?: import("react").CSSProperties;
74
75
  className?: string;
75
- }) => import("@emotion/react/jsx-runtime").JSX.Element | null>;
76
- Image: import("@emotion/styled").StyledComponent<{
77
- theme?: import("@emotion/react").Theme;
78
- as?: React.ElementType;
79
- }, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
80
- Region: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, hideFromOverlay, }: {
76
+ }) => import("react/jsx-runtime").JSX.Element | null>;
77
+ Image: (props: ComponentProps<"img">) => import("react/jsx-runtime").JSX.Element;
78
+ Region: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, hideFromOverlay, style, }: {
81
79
  shouldBeHidden?: boolean;
82
80
  priceText?: ReactNode;
83
81
  animated?: boolean;
@@ -107,8 +105,8 @@ declare const EstimateCost: {
107
105
  isPrimaryBackground?: boolean;
108
106
  iteration?: import("./types").Iteration;
109
107
  label?: ReactNode;
110
- labelTextVariant?: import("react").ComponentProps<typeof Text>["variant"];
111
- labelTextProminence?: import("react").ComponentProps<typeof Text>["prominence"];
108
+ labelTextVariant?: ComponentProps<typeof Text>["variant"];
109
+ labelTextProminence?: ComponentProps<typeof Text>["prominence"];
112
110
  longFractionDigits?: boolean;
113
111
  maxAmount?: number;
114
112
  monthlyPrice?: number;
@@ -131,8 +129,9 @@ declare const EstimateCost: {
131
129
  tooltipInfo?: string;
132
130
  unit?: "mb" | "gb" | "tb" | "seconds" | "minutes" | "hours" | "days" | "months" | "years" | (string & NonNullable<unknown>);
133
131
  strikeThrough?: boolean;
134
- }, "hideFromOverlay">) => import("@emotion/react/jsx-runtime").JSX.Element>;
135
- Zone: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, }: {
132
+ style?: import("react").CSSProperties;
133
+ }, "style" | "hideFromOverlay">) => import("react/jsx-runtime").JSX.Element>;
134
+ Zone: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, style, }: {
136
135
  shouldBeHidden?: boolean;
137
136
  priceText?: string;
138
137
  animated?: boolean;
@@ -148,11 +147,12 @@ declare const EstimateCost: {
148
147
  image: string;
149
148
  noBorder?: boolean;
150
149
  noPrice?: boolean;
151
- }) => import("@emotion/react/jsx-runtime").JSX.Element>;
150
+ style?: import("react").CSSProperties;
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,8 +1,9 @@
1
1
  "use client";
2
- import { jsx } from "@emotion/react/jsx-runtime";
3
- import _styled from "@emotion/styled/base";
2
+ import { jsx } from "react/jsx-runtime";
4
3
  import { Text } from "@ultraviolet/ui";
4
+ import { assignInlineVars } from "@vanilla-extract/dynamic";
5
5
  import { Children } from "react";
6
+ import { maxWidthText, maxWidthTextVar } from "./Components/components.css.js";
6
7
  import { Item } from "./Components/Item.js";
7
8
  import { LineThrough } from "./Components/LineThrough.js";
8
9
  import { NumberInput } from "./Components/NumberInput.js";
@@ -15,15 +16,16 @@ import { EstimateCostContent } from "./EstimateCostContent.js";
15
16
  import { EstimateCostProvider } from "./EstimateCostProvider.js";
16
17
  import EstimateCostLocales from "./locales/en.js";
17
18
  import { useOverlay } from "./OverlayContext.js";
18
- const MaxWidthText = /* @__PURE__ */ _styled(Text, process.env.NODE_ENV === "production" ? {
19
- target: "e13v5qur1"
20
- } : {
21
- target: "e13v5qur1",
22
- label: "MaxWidthText"
23
- })("max-width:", ({
24
- maxWidth
25
- }) => maxWidth, "px;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvRXN0aW1hdGVDb3N0L0VzdGltYXRlQ29zdC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBb0J3RCIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb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lbixcbiAgbWF4V2lkdGggPSAzNTAsXG4gICdkYXRhLXRlc3RpZCc6IGRhdGFUZXN0SWQsXG59OiB7XG4gIGNoaWxkcmVuOiBSZWFjdE5vZGVcbiAgbWF4V2lkdGg/OiBudW1iZXJcbiAgJ2RhdGEtdGVzdGlkJz86IHN0cmluZ1xufSkgPT4ge1xuICBjb25zdCB7IGlzT3ZlcmxheSB9ID0gdXNlT3ZlcmxheSgpXG4gIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tYmFzZS10by1zdHJpbmdcbiAgY29uc3QgdGV4dCA9IENoaWxkcmVuLnRvQXJyYXkoY2hpbGRyZW4pLmpvaW4oJycpLnRvU3RyaW5nKClcblxuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIGRhdGEtdGVzdGlkPXtkYXRhVGVzdElkfVxuICAgICAgc3R5bGU9e3sgZGlzcGxheTogIWlzT3ZlcmxheSA/ICdpbmxpbmUtZmxleCcgOiB1bmRlZmluZWQgfX1cbiAgICA+XG4gICAgICA8TWF4V2lkdGhUZXh0XG4gICAgICAgIGFzPVwicFwiXG4gICAgICAgIG1heFdpZHRoPXtpc092ZXJsYXkgPyAyMDAgOiBtYXhXaWR0aH1cbiAgICAgICAgb25lTGluZVxuICAgICAgICB2YXJpYW50PVwiYm9keVN0cm9uZ1wiXG4gICAgICA+XG4gICAgICAgIHt0ZXh0fVxuICAgICAgPC9NYXhXaWR0aFRleHQ+XG4gICAgPC9kaXY+XG4gIClcbn1cblxuRXN0aW1hdGVDb3N0LkVsbGlwc2lzID0gRWxsaXBzaXNcblxuZXhwb3J0IHsgRXN0aW1hdGVDb3N0IH1cbiJdfQ== */"));
19
+ import { estimateCostImage } from "./styles.css.js";
26
20
  const DEFAULT_UNIT_LIST = ["hours", "days", "months"];
21
+ const Image = (props) => /* @__PURE__ */ jsx(
22
+ "img",
23
+ {
24
+ alt: props.alt,
25
+ ...props,
26
+ className: `${props.className ? `${props.className} ` : ""}${estimateCostImage}`
27
+ }
28
+ );
27
29
  const EstimateCost = ({
28
30
  description,
29
31
  alert,
@@ -51,22 +53,54 @@ const EstimateCost = ({
51
53
  locales = EstimateCostLocales,
52
54
  numberLocales = "en-EN",
53
55
  currency = "EUR",
56
+ style,
54
57
  onTotalPriceChange
55
- }) => /* @__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, 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
+ );
56
97
  EstimateCost.LineThrough = LineThrough;
57
98
  EstimateCost.Item = Item;
58
99
  EstimateCost.NumberInput = NumberInput;
59
100
  EstimateCost.Unit = Unit;
60
101
  EstimateCost.Strong = Strong;
61
102
  EstimateCost.Regular = Regular;
62
- EstimateCost.Image = /* @__PURE__ */ _styled("img", process.env.NODE_ENV === "production" ? {
63
- target: "e13v5qur0"
64
- } : {
65
- target: "e13v5qur0",
66
- label: "EstimateCost-Image"
67
- })("width:15px;margin-right:", ({
68
- theme
69
- }) => theme.space["1"], ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvRXN0aW1hdGVDb3N0L0VzdGltYXRlQ29zdC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUcrQiIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb2xldC9wYWNrYWdlcy9wbHVzL3NyYy9jb21wb25lbnRzL0VzdGltYXRlQ29zdC9Fc3RpbWF0ZUNvc3QudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBjbGllbnQnXG5cbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHsgVGV4dCB9IGZyb20gJ0B1bHRyYXZpb2xldC91aSdcbmltcG9ydCB0eXBlIHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBDaGlsZHJlbiB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgSXRlbSB9IGZyb20gJy4vQ29tcG9uZW50cy9JdGVtJ1xuaW1wb3J0IHsgTGluZVRocm91Z2ggfSBmcm9tICcuL0NvbXBvbmVudHMvTGluZVRocm91Z2gnXG5pbXBvcnQgeyBOdW1iZXJJbnB1dCB9IGZyb20gJy4vQ29tcG9uZW50cy9OdW1iZXJJbnB1dCdcbmltcG9ydCB7IFJlZ2lvbiB9IGZyb20gJy4vQ29tcG9uZW50cy9SZWdpb24nXG5pbXBvcnQgeyBSZWd1bGFyIH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ICAgIG1heFdpZHRoPXtpc092ZXJsYXkgPyAyMDAgOiBtYXhXaWR0aH1cbiAgICAgICAgb25lTGluZVxuICAgICAgICB2YXJpYW50PVwiYm9keVN0cm9uZ1wiXG4gICAgICA+XG4gICAgICAgIHt0ZXh0fVxuICAgICAgPC9NYXhXaWR0aFRleHQ+XG4gICAgPC9kaXY+XG4gIClcbn1cblxuRXN0aW1hdGVDb3N0LkVsbGlwc2lzID0gRWxsaXBzaXNcblxuZXhwb3J0IHsgRXN0aW1hdGVDb3N0IH1cbiJdfQ== */"));
103
+ EstimateCost.Image = Image;
70
104
  EstimateCost.Region = Region;
71
105
  EstimateCost.Zone = Zone;
72
106
  const Ellipsis = ({
@@ -74,13 +108,28 @@ const Ellipsis = ({
74
108
  maxWidth = 350,
75
109
  "data-testid": dataTestId
76
110
  }) => {
77
- const {
78
- isOverlay
79
- } = useOverlay();
111
+ const { isOverlay } = useOverlay();
80
112
  const text = Children.toArray(children).join("").toString();
81
- return /* @__PURE__ */ jsx("div", { "data-testid": dataTestId, style: {
82
- display: !isOverlay ? "inline-flex" : void 0
83
- }, children: /* @__PURE__ */ jsx(MaxWidthText, { as: "p", maxWidth: isOverlay ? 200 : maxWidth, oneLine: true, 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
+ );
84
133
  };
85
134
  EstimateCost.Ellipsis = Ellipsis;
86
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, }: 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;