@ultraviolet/plus 3.4.5 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/dist/.vite/license.md +3 -0
  2. package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/defineProperty.js +15 -0
  3. package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js +28 -0
  4. package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js +18 -0
  5. package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutPropertiesLoose.js +15 -0
  6. package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/toPrimitive.js +17 -0
  7. package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/toPropertyKey.js +12 -0
  8. package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/typeof.js +14 -0
  9. package/dist/_virtual/_rolldown/runtime.js +9 -0
  10. package/dist/components/CodeEditor/CodeEditor.d.ts +1 -1
  11. package/dist/components/CodeEditor/CodeEditor.d.ts.map +1 -1
  12. package/dist/components/CodeEditor/CodeEditor.js +111 -137
  13. package/dist/components/CodeEditor/styles.css.js +18 -15
  14. package/dist/components/ContentCard/Skeleton.d.ts.map +1 -1
  15. package/dist/components/ContentCard/Skeleton.js +31 -27
  16. package/dist/components/ContentCard/index.js +107 -140
  17. package/dist/components/ContentCard/styles.css.d.ts +1 -1
  18. package/dist/components/ContentCard/styles.css.js +23 -19
  19. package/dist/components/ContentCardGroup/Card.js +55 -69
  20. package/dist/components/ContentCardGroup/SkeletonCard.js +28 -14
  21. package/dist/components/ContentCardGroup/index.d.ts +7 -7
  22. package/dist/components/ContentCardGroup/index.js +20 -25
  23. package/dist/components/ContentCardGroup/styles.css.js +6 -11
  24. package/dist/components/Conversation/index.d.ts +29 -23
  25. package/dist/components/Conversation/index.d.ts.map +1 -1
  26. package/dist/components/Conversation/index.js +46 -48
  27. package/dist/components/Conversation/styles.css.js +19 -13
  28. package/dist/components/CustomerSatisfaction/assets/1-5.js +5 -0
  29. package/dist/components/CustomerSatisfaction/assets/1-5NB.js +5 -0
  30. package/dist/components/CustomerSatisfaction/assets/2-5.js +5 -0
  31. package/dist/components/CustomerSatisfaction/assets/2-5NB.js +5 -0
  32. package/dist/components/CustomerSatisfaction/assets/3-5.js +5 -0
  33. package/dist/components/CustomerSatisfaction/assets/3-5NB.js +5 -0
  34. package/dist/components/CustomerSatisfaction/assets/4-5.js +5 -0
  35. package/dist/components/CustomerSatisfaction/assets/4-5NB.js +5 -0
  36. package/dist/components/CustomerSatisfaction/assets/5-5.js +5 -0
  37. package/dist/components/CustomerSatisfaction/assets/5-5NB.js +5 -0
  38. package/dist/components/CustomerSatisfaction/index.d.ts +1 -1
  39. package/dist/components/CustomerSatisfaction/index.d.ts.map +1 -1
  40. package/dist/components/CustomerSatisfaction/index.js +85 -100
  41. package/dist/components/CustomerSatisfaction/styles.css.js +18 -6
  42. package/dist/components/EstimateCost/Components/CustomUnitInput.d.ts.map +1 -1
  43. package/dist/components/EstimateCost/Components/CustomUnitInput.js +39 -52
  44. package/dist/components/EstimateCost/Components/Item.d.ts.map +1 -1
  45. package/dist/components/EstimateCost/Components/Item.js +223 -323
  46. package/dist/components/EstimateCost/Components/LineThrough.d.ts.map +1 -1
  47. package/dist/components/EstimateCost/Components/LineThrough.js +16 -16
  48. package/dist/components/EstimateCost/Components/NumberInput.d.ts.map +1 -1
  49. package/dist/components/EstimateCost/Components/NumberInput.js +33 -37
  50. package/dist/components/EstimateCost/Components/Region.d.ts.map +1 -1
  51. package/dist/components/EstimateCost/Components/Region.js +34 -57
  52. package/dist/components/EstimateCost/Components/Regular.d.ts.map +1 -1
  53. package/dist/components/EstimateCost/Components/Regular.js +21 -26
  54. package/dist/components/EstimateCost/Components/Strong.d.ts.map +1 -1
  55. package/dist/components/EstimateCost/Components/Strong.js +14 -19
  56. package/dist/components/EstimateCost/Components/Unit.d.ts.map +1 -1
  57. package/dist/components/EstimateCost/Components/Unit.js +47 -40
  58. package/dist/components/EstimateCost/Components/Zone.d.ts.map +1 -1
  59. package/dist/components/EstimateCost/Components/Zone.js +33 -55
  60. package/dist/components/EstimateCost/Components/components.css.js +122 -86
  61. package/dist/components/EstimateCost/EstimateCost.d.ts +138 -121
  62. package/dist/components/EstimateCost/EstimateCost.d.ts.map +1 -1
  63. package/dist/components/EstimateCost/EstimateCost.js +79 -124
  64. package/dist/components/EstimateCost/EstimateCostContent.d.ts.map +1 -1
  65. package/dist/components/EstimateCost/EstimateCostContent.js +284 -394
  66. package/dist/components/EstimateCost/EstimateCostProvider.d.ts +1 -1
  67. package/dist/components/EstimateCost/EstimateCostProvider.d.ts.map +1 -1
  68. package/dist/components/EstimateCost/EstimateCostProvider.js +30 -37
  69. package/dist/components/EstimateCost/OverlayComponent.d.ts.map +1 -1
  70. package/dist/components/EstimateCost/OverlayComponent.js +95 -93
  71. package/dist/components/EstimateCost/OverlayContext.d.ts.map +1 -1
  72. package/dist/components/EstimateCost/OverlayContext.js +12 -10
  73. package/dist/components/EstimateCost/constants.js +19 -21
  74. package/dist/components/EstimateCost/helper.d.ts +2 -2
  75. package/dist/components/EstimateCost/helper.d.ts.map +1 -1
  76. package/dist/components/EstimateCost/helper.js +9 -14
  77. package/dist/components/EstimateCost/locales/en.js +24 -23
  78. package/dist/components/EstimateCost/styles.css.d.ts +2 -2
  79. package/dist/components/EstimateCost/styles.css.js +50 -36
  80. package/dist/components/EstimateCost/types.d.ts +1 -1
  81. package/dist/components/EstimateCost/types.d.ts.map +1 -1
  82. package/dist/components/FAQ/index.d.ts.map +1 -1
  83. package/dist/components/FAQ/index.js +37 -31
  84. package/dist/components/FAQ/styles.css.js +6 -4
  85. package/dist/components/InfoTable/InfoTable.d.ts +10 -13
  86. package/dist/components/InfoTable/InfoTable.d.ts.map +1 -1
  87. package/dist/components/InfoTable/InfoTable.js +24 -15
  88. package/dist/components/InfoTable/components/Cell.d.ts.map +1 -1
  89. package/dist/components/InfoTable/components/Cell.js +37 -45
  90. package/dist/components/InfoTable/components/Row.d.ts.map +1 -1
  91. package/dist/components/InfoTable/components/Row.js +19 -27
  92. package/dist/components/InfoTable/context.d.ts +1 -1
  93. package/dist/components/InfoTable/context.d.ts.map +1 -1
  94. package/dist/components/InfoTable/context.js +5 -3
  95. package/dist/components/InfoTable/styles.css.js +6 -10
  96. package/dist/components/Navigation/Footer.d.ts.map +1 -1
  97. package/dist/components/Navigation/Footer.js +59 -75
  98. package/dist/components/Navigation/Header.d.ts.map +1 -1
  99. package/dist/components/Navigation/Header.js +20 -17
  100. package/dist/components/Navigation/Navigation.d.ts +46 -43
  101. package/dist/components/Navigation/Navigation.d.ts.map +1 -1
  102. package/dist/components/Navigation/Navigation.js +23 -27
  103. package/dist/components/Navigation/NavigationContent.d.ts +1 -1
  104. package/dist/components/Navigation/NavigationContent.d.ts.map +1 -1
  105. package/dist/components/Navigation/NavigationContent.js +100 -138
  106. package/dist/components/Navigation/NavigationProvider.d.ts.map +1 -1
  107. package/dist/components/Navigation/NavigationProvider.js +116 -165
  108. package/dist/components/Navigation/components/Group.d.ts.map +1 -1
  109. package/dist/components/Navigation/components/Group.js +36 -43
  110. package/dist/components/Navigation/components/Item.d.ts +1 -1
  111. package/dist/components/Navigation/components/Item.d.ts.map +1 -1
  112. package/dist/components/Navigation/components/Item.js +440 -607
  113. package/dist/components/Navigation/components/ItemProvider.d.ts.map +1 -1
  114. package/dist/components/Navigation/components/ItemProvider.js +13 -8
  115. package/dist/components/Navigation/components/PinnedItems.d.ts.map +1 -1
  116. package/dist/components/Navigation/components/PinnedItems.js +101 -132
  117. package/dist/components/Navigation/components/Separator.js +10 -7
  118. package/dist/components/Navigation/components/ShowHide.d.ts +1 -1
  119. package/dist/components/Navigation/components/ShowHide.d.ts.map +1 -1
  120. package/dist/components/Navigation/components/ShowHide.js +51 -75
  121. package/dist/components/Navigation/components/items.css.js +72 -30
  122. package/dist/components/Navigation/components/styles.css.js +23 -13
  123. package/dist/components/Navigation/locales/en.js +12 -11
  124. package/dist/components/Navigation/styles.css.js +28 -14
  125. package/dist/components/Navigation/variables.css.js +6 -4
  126. package/dist/components/OfferList/OfferList.d.ts +5 -51
  127. package/dist/components/OfferList/OfferList.d.ts.map +1 -1
  128. package/dist/components/OfferList/OfferList.js +11 -78
  129. package/dist/components/OrderSummary/index.d.ts +5 -2
  130. package/dist/components/OrderSummary/index.d.ts.map +1 -1
  131. package/dist/components/OrderSummary/index.js +11 -204
  132. package/dist/components/Plans/index.d.ts +5 -21
  133. package/dist/components/Plans/index.d.ts.map +1 -1
  134. package/dist/components/Plans/index.js +11 -214
  135. package/dist/components/SteppedListCard/index.d.ts +5 -1
  136. package/dist/components/SteppedListCard/index.d.ts.map +1 -1
  137. package/dist/components/SteppedListCard/index.js +11 -0
  138. package/dist/index.js +5 -21
  139. package/dist/plus.css +2 -1
  140. package/package.json +9 -8
  141. package/LICENSE +0 -189
  142. package/dist/components/CustomerSatisfaction/assets/1-5.svg.js +0 -4
  143. package/dist/components/CustomerSatisfaction/assets/1-5NB.svg.js +0 -4
  144. package/dist/components/CustomerSatisfaction/assets/2-5.svg.js +0 -4
  145. package/dist/components/CustomerSatisfaction/assets/2-5NB.svg.js +0 -4
  146. package/dist/components/CustomerSatisfaction/assets/3-5.svg.js +0 -4
  147. package/dist/components/CustomerSatisfaction/assets/3-5NB.svg.js +0 -4
  148. package/dist/components/CustomerSatisfaction/assets/4-5.svg.js +0 -4
  149. package/dist/components/CustomerSatisfaction/assets/4-5NB.svg.js +0 -4
  150. package/dist/components/CustomerSatisfaction/assets/5-5.svg.js +0 -4
  151. package/dist/components/CustomerSatisfaction/assets/5-5NB.svg.js +0 -4
  152. package/dist/components/Navigation/constants.js +0 -10
  153. package/dist/components/OfferList/OfferListProvider.d.ts +0 -30
  154. package/dist/components/OfferList/OfferListProvider.d.ts.map +0 -1
  155. package/dist/components/OfferList/OfferListProvider.js +0 -48
  156. package/dist/components/OfferList/components/Banner.d.ts +0 -13
  157. package/dist/components/OfferList/components/Banner.d.ts.map +0 -1
  158. package/dist/components/OfferList/components/Banner.js +0 -43
  159. package/dist/components/OfferList/components/Cell.d.ts +0 -4
  160. package/dist/components/OfferList/components/Cell.d.ts.map +0 -1
  161. package/dist/components/OfferList/components/Cell.js +0 -35
  162. package/dist/components/OfferList/components/OfferListRowProvider.d.ts +0 -9
  163. package/dist/components/OfferList/components/OfferListRowProvider.d.ts.map +0 -1
  164. package/dist/components/OfferList/components/OfferListRowProvider.js +0 -10
  165. package/dist/components/OfferList/components/Row.d.ts +0 -18
  166. package/dist/components/OfferList/components/Row.d.ts.map +0 -1
  167. package/dist/components/OfferList/components/Row.js +0 -258
  168. package/dist/components/OfferList/styles.css.d.ts +0 -44
  169. package/dist/components/OfferList/styles.css.d.ts.map +0 -1
  170. package/dist/components/OfferList/styles.css.js +0 -40
  171. package/dist/components/OrderSummary/NonScrollableContent.d.ts +0 -20
  172. package/dist/components/OrderSummary/NonScrollableContent.d.ts.map +0 -1
  173. package/dist/components/OrderSummary/NonScrollableContent.js +0 -136
  174. package/dist/components/OrderSummary/Provider.d.ts +0 -15
  175. package/dist/components/OrderSummary/Provider.d.ts.map +0 -1
  176. package/dist/components/OrderSummary/Provider.js +0 -15
  177. package/dist/components/OrderSummary/ScrollableContent.d.ts +0 -2
  178. package/dist/components/OrderSummary/ScrollableContent.d.ts.map +0 -1
  179. package/dist/components/OrderSummary/ScrollableContent.js +0 -314
  180. package/dist/components/OrderSummary/constants.d.ts +0 -3
  181. package/dist/components/OrderSummary/constants.d.ts.map +0 -1
  182. package/dist/components/OrderSummary/constants.js +0 -18
  183. package/dist/components/OrderSummary/helpers.d.ts +0 -28
  184. package/dist/components/OrderSummary/helpers.d.ts.map +0 -1
  185. package/dist/components/OrderSummary/helpers.js +0 -156
  186. package/dist/components/OrderSummary/locales/en.d.ts +0 -11
  187. package/dist/components/OrderSummary/locales/en.d.ts.map +0 -1
  188. package/dist/components/OrderSummary/locales/en.js +0 -12
  189. package/dist/components/OrderSummary/styles.css.d.ts +0 -21
  190. package/dist/components/OrderSummary/styles.css.d.ts.map +0 -1
  191. package/dist/components/OrderSummary/styles.css.js +0 -26
  192. package/dist/components/OrderSummary/types.d.ts +0 -125
  193. package/dist/components/OrderSummary/types.d.ts.map +0 -1
  194. package/dist/components/Plans/FeatureHint.d.ts +0 -7
  195. package/dist/components/Plans/FeatureHint.d.ts.map +0 -1
  196. package/dist/components/Plans/FeatureHint.js +0 -42
  197. package/dist/components/Plans/PlanHeader.d.ts +0 -14
  198. package/dist/components/Plans/PlanHeader.d.ts.map +0 -1
  199. package/dist/components/Plans/PlanHeader.js +0 -96
  200. package/dist/components/Plans/locales/en.d.ts +0 -7
  201. package/dist/components/Plans/locales/en.d.ts.map +0 -1
  202. package/dist/components/Plans/locales/en.js +0 -8
  203. package/dist/components/Plans/styles.css.d.ts +0 -67
  204. package/dist/components/Plans/styles.css.d.ts.map +0 -1
  205. package/dist/components/Plans/styles.css.js +0 -26
  206. package/dist/components/Plans/types.d.ts +0 -38
  207. package/dist/components/Plans/types.d.ts.map +0 -1
  208. package/dist/components/SteppedListCard/Step.d.ts +0 -23
  209. package/dist/components/SteppedListCard/Step.d.ts.map +0 -1
  210. package/dist/components/SteppedListCard/Step.js +0 -61
  211. package/dist/components/SteppedListCard/SteppedListCard.d.ts +0 -69
  212. package/dist/components/SteppedListCard/SteppedListCard.d.ts.map +0 -1
  213. package/dist/components/SteppedListCard/SteppedListCard.js +0 -105
  214. package/dist/components/SteppedListCard/SteppedListContent.d.ts +0 -12
  215. package/dist/components/SteppedListCard/SteppedListContent.d.ts.map +0 -1
  216. package/dist/components/SteppedListCard/SteppedListContent.js +0 -53
  217. package/dist/components/SteppedListCard/helper.d.ts +0 -27
  218. package/dist/components/SteppedListCard/helper.d.ts.map +0 -1
  219. package/dist/components/SteppedListCard/helper.js +0 -41
  220. package/dist/components/SteppedListCard/styles.css.d.ts +0 -9
  221. package/dist/components/SteppedListCard/styles.css.d.ts.map +0 -1
  222. package/dist/components/SteppedListCard/styles.css.js +0 -19
@@ -1,142 +1,97 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import { Text } from "@ultraviolet/ui";
4
- import { cn } from "@ultraviolet/utils";
5
- import { assignInlineVars } from "@vanilla-extract/dynamic";
6
- import { Children } from "react";
1
+ 'use client';
2
+ import { __name } from "../../_virtual/_rolldown/runtime.js";
3
+ import en_default from "./locales/en.js";
7
4
  import { maxWidthText, maxWidthTextVar } from "./Components/components.css.js";
5
+ import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
6
+ import { EstimateCostProvider } from "./EstimateCostProvider.js";
7
+ import { useOverlay } from "./OverlayContext.js";
8
+ import { estimateCostImage } from "./styles.css.js";
8
9
  import { Item } from "./Components/Item.js";
9
10
  import { LineThrough } from "./Components/LineThrough.js";
10
- import { NumberInput } from "./Components/NumberInput.js";
11
- import { Region } from "./Components/Region.js";
12
11
  import { Regular } from "./Components/Regular.js";
12
+ import { NumberInput as NumberInput$1 } from "./Components/NumberInput.js";
13
13
  import { Strong } from "./Components/Strong.js";
14
+ import { Region } from "./Components/Region.js";
14
15
  import { Unit } from "./Components/Unit.js";
15
16
  import { Zone } from "./Components/Zone.js";
16
17
  import { EstimateCostContent } from "./EstimateCostContent.js";
17
- import { EstimateCostProvider } from "./EstimateCostProvider.js";
18
- import EstimateCostLocales from "./locales/en.js";
19
- import { useOverlay } from "./OverlayContext.js";
20
- import { estimateCostImage } from "./styles.css.js";
21
- const DEFAULT_UNIT_LIST = ["hours", "days", "months"];
22
- const Image = (props) => /* @__PURE__ */ jsx(
23
- "img",
24
- {
25
- alt: props.alt,
26
- height: props.height,
27
- width: props.width,
28
- ...props,
29
- className: cn(props.className, estimateCostImage)
30
- }
31
- );
32
- const EstimateCost = ({
33
- description,
34
- alert,
35
- alertTitle,
36
- alertVariant = "warning",
37
- defaultTimeUnit = "hours",
38
- timeUnits = DEFAULT_UNIT_LIST,
39
- hideOverlay = false,
40
- disableOverlayLeft = false,
41
- disableOverlayRight = false,
42
- hideTimeUnit = false,
43
- hideTotal = false,
44
- discount = 0,
45
- OverlayRight,
46
- OverlayLeft,
47
- overlayMargin,
48
- isBeta = false,
49
- commitmentFees,
50
- commitmentFeesContent,
51
- monthlyFees,
52
- monthlyFeesLabel,
53
- monthlyFeesContent,
54
- overlayUnit = "hours",
55
- children = null,
56
- locales = EstimateCostLocales,
57
- compact,
58
- numberLocales = "en-EN",
59
- currency = "EUR",
60
- style,
61
- onTotalPriceChange
62
- }) => /* @__PURE__ */ jsx(
63
- EstimateCostProvider,
64
- {
65
- currency,
66
- locales,
67
- numberLocales,
68
- children: /* @__PURE__ */ jsx(
69
- EstimateCostContent,
70
- {
71
- alert,
72
- alertTitle,
73
- alertVariant,
74
- commitmentFees,
75
- commitmentFeesContent,
76
- compact,
77
- defaultTimeUnit,
78
- description,
79
- disableOverlayLeft,
80
- disableOverlayRight,
81
- discount,
82
- hideOverlay,
83
- hideTimeUnit,
84
- hideTotal,
85
- isBeta,
86
- locales,
87
- monthlyFees,
88
- monthlyFeesContent,
89
- monthlyFeesLabel,
90
- OverlayLeft,
91
- OverlayRight,
92
- onTotalPriceChange,
93
- overlayMargin,
94
- overlayUnit,
95
- style,
96
- timeUnits,
97
- children
98
- }
99
- )
100
- }
101
- );
18
+ import { Text } from "@ultraviolet/ui";
19
+ import { cn } from "@ultraviolet/utils";
20
+ import { assignInlineVars } from "@vanilla-extract/dynamic";
21
+ import { Children } from "react";
22
+ import { jsx } from "react/jsx-runtime";
23
+
24
+ //#region src/components/EstimateCost/EstimateCost.tsx
25
+ const DEFAULT_UNIT_LIST = [
26
+ "hours",
27
+ "days",
28
+ "months"
29
+ ];
30
+ const Image = (props) => /* @__PURE__ */ jsx("img", _objectSpread2(_objectSpread2({
31
+ alt: props.alt,
32
+ height: props.height,
33
+ width: props.width
34
+ }, props), {}, { className: cn(props.className, estimateCostImage) }));
35
+ const EstimateCost = ({ description, alert, alertTitle, alertVariant = "warning", defaultTimeUnit = "hours", timeUnits = DEFAULT_UNIT_LIST, hideOverlay = false, disableOverlayLeft = false, disableOverlayRight = false, hideTimeUnit = false, hideTotal = false, discount = 0, OverlayRight, OverlayLeft, overlayMargin, isBeta = false, commitmentFees, commitmentFeesContent, monthlyFees, monthlyFeesLabel, monthlyFeesContent, overlayUnit = "hours", children = null, locales = en_default, compact, numberLocales = "en-EN", currency = "EUR", style, onTotalPriceChange }) => /* @__PURE__ */ jsx(EstimateCostProvider, {
36
+ currency,
37
+ locales,
38
+ numberLocales,
39
+ children: /* @__PURE__ */ jsx(EstimateCostContent, {
40
+ alert,
41
+ alertTitle,
42
+ alertVariant,
43
+ commitmentFees,
44
+ commitmentFeesContent,
45
+ compact,
46
+ defaultTimeUnit,
47
+ description,
48
+ disableOverlayLeft,
49
+ disableOverlayRight,
50
+ discount,
51
+ hideOverlay,
52
+ hideTimeUnit,
53
+ hideTotal,
54
+ isBeta,
55
+ locales,
56
+ monthlyFees,
57
+ monthlyFeesContent,
58
+ monthlyFeesLabel,
59
+ OverlayLeft,
60
+ OverlayRight,
61
+ onTotalPriceChange,
62
+ overlayMargin,
63
+ overlayUnit,
64
+ style,
65
+ timeUnits,
66
+ children
67
+ })
68
+ });
102
69
  EstimateCost.LineThrough = LineThrough;
103
70
  EstimateCost.Item = Item;
104
- EstimateCost.NumberInput = NumberInput;
71
+ EstimateCost.NumberInput = NumberInput$1;
105
72
  EstimateCost.Unit = Unit;
106
73
  EstimateCost.Strong = Strong;
107
74
  EstimateCost.Regular = Regular;
108
75
  EstimateCost.Image = Image;
109
76
  EstimateCost.Region = Region;
110
77
  EstimateCost.Zone = Zone;
111
- const Ellipsis = ({
112
- children,
113
- maxWidth = 350,
114
- "data-testid": dataTestId
115
- }) => {
116
- const { isOverlay } = useOverlay();
117
- const text = Children.toArray(children).join("").toString();
118
- return /* @__PURE__ */ jsx(
119
- "div",
120
- {
121
- "data-testid": dataTestId,
122
- style: { display: isOverlay ? void 0 : "inline-flex" },
123
- children: /* @__PURE__ */ jsx(
124
- Text,
125
- {
126
- as: "p",
127
- className: maxWidthText,
128
- oneLine: true,
129
- style: assignInlineVars({
130
- [maxWidthTextVar]: isOverlay ? "200px" : `${maxWidth}px`
131
- }),
132
- variant: "bodyStrong",
133
- children: text
134
- }
135
- )
136
- }
137
- );
78
+ const Ellipsis = ({ children, maxWidth = 350, "data-testid": dataTestId }) => {
79
+ const { isOverlay } = useOverlay();
80
+ const text = Children.toArray(children).join("").toString();
81
+ return /* @__PURE__ */ jsx("div", {
82
+ "data-testid": dataTestId,
83
+ style: { display: isOverlay ? void 0 : "inline-flex" },
84
+ children: /* @__PURE__ */ jsx(Text, {
85
+ as: "p",
86
+ className: maxWidthText,
87
+ oneLine: true,
88
+ style: assignInlineVars({ [maxWidthTextVar]: isOverlay ? "200px" : `${maxWidth}px` }),
89
+ variant: "bodyStrong",
90
+ children: text
91
+ })
92
+ });
138
93
  };
139
94
  EstimateCost.Ellipsis = Ellipsis;
140
- export {
141
- EstimateCost
142
- };
95
+
96
+ //#endregion
97
+ export { EstimateCost };
@@ -1 +1 @@
1
- {"version":3,"file":"EstimateCostContent.d.ts","sourceRoot":"","sources":["../../../src/components/EstimateCost/EstimateCostContent.tsx"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EAEV,iBAAiB,EAIlB,MAAM,SAAS,CAAA;AAgDhB,eAAO,MAAM,mBAAmB,GAAI,gZA6BjC,iBAAiB,4CAsbnB,CAAA"}
1
+ {"version":3,"file":"EstimateCostContent.d.ts","sourceRoot":"","sources":["../../../src/components/EstimateCost/EstimateCostContent.tsx"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EAEV,iBAAiB,EAIlB,MAAM,SAAS,CAAA;AAgDhB,eAAO,MAAM,mBAAmB,gdAmd/B,CAAA"}