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