@ultraviolet/plus 3.4.5 → 3.5.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 (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 +24 -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 +18 -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 +29 -14
  125. package/dist/components/Navigation/variables.css.js +4 -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 +8 -7
  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,39 +1,35 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import { NumberInput as NumberInput$1 } from "@ultraviolet/ui";
4
- import { useState, useEffect } from "react";
5
- import { useOverlay } from "../OverlayContext.js";
1
+ 'use client';
2
+ import { __name } from "../../../_virtual/_rolldown/runtime.js";
6
3
  import { estimateCostItemResourceName } from "./components.css.js";
4
+ import { useOverlay } from "../OverlayContext.js";
7
5
  import { Regular } from "./Regular.js";
8
- const NumberInput = ({
9
- amount,
10
- minValue = 0,
11
- maxValue = 100,
12
- getAmountValue,
13
- itemCallback,
14
- controls = true
15
- }) => {
16
- const { isOverlay } = useOverlay();
17
- const [value, setValue] = useState(amount);
18
- useEffect(() => {
19
- getAmountValue?.(amount);
20
- }, [getAmountValue, amount]);
21
- return isOverlay ? /* @__PURE__ */ jsx("div", { className: estimateCostItemResourceName(), children: /* @__PURE__ */ jsx(Regular, { children: amount }) }) : /* @__PURE__ */ jsx(
22
- NumberInput$1,
23
- {
24
- controls,
25
- max: maxValue,
26
- min: minValue,
27
- onChange: (newValue) => {
28
- setValue(newValue);
29
- itemCallback?.(newValue, true);
30
- getAmountValue?.(newValue);
31
- },
32
- size: "small",
33
- value
34
- }
35
- );
36
- };
37
- export {
38
- NumberInput
39
- };
6
+ import { NumberInput } from "@ultraviolet/ui";
7
+ import { useEffect, useState } from "react";
8
+ import { jsx } from "react/jsx-runtime";
9
+
10
+ //#region src/components/EstimateCost/Components/NumberInput.tsx
11
+ const NumberInput$1 = /* @__PURE__ */ __name(({ amount, minValue = 0, maxValue = 100, getAmountValue, itemCallback, controls = true }) => {
12
+ const { isOverlay } = useOverlay();
13
+ const [value, setValue] = useState(amount);
14
+ useEffect(() => {
15
+ getAmountValue === null || getAmountValue === void 0 || getAmountValue(amount);
16
+ }, [getAmountValue, amount]);
17
+ return isOverlay ? /* @__PURE__ */ jsx("div", {
18
+ className: estimateCostItemResourceName(),
19
+ children: /* @__PURE__ */ jsx(Regular, { children: amount })
20
+ }) : /* @__PURE__ */ jsx(NumberInput, {
21
+ controls,
22
+ max: maxValue,
23
+ min: minValue,
24
+ onChange: (newValue) => {
25
+ setValue(newValue);
26
+ itemCallback === null || itemCallback === void 0 || itemCallback(newValue, true);
27
+ getAmountValue === null || getAmountValue === void 0 || getAmountValue(newValue);
28
+ },
29
+ size: "small",
30
+ value
31
+ });
32
+ }, "NumberInput");
33
+
34
+ //#endregion
35
+ export { NumberInput$1 as NumberInput };
@@ -1 +1 @@
1
- {"version":3,"file":"Region.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Region.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItD,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAC/E,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAG7B,KAAK,WAAW,GAAG;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,CAAC,EAAE;QACjB,GAAG,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAA;QACvC,MAAM,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAA;KAC/C,CAAA;IACD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,CAAA;AAElE,eAAO,MAAM,MAAM,gNAgBd,WAAW,6CAgCf,CAAA"}
1
+ {"version":3,"file":"Region.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Region.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItD,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAC/E,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAG7B,KAAK,WAAW,GAAG;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,CAAC,EAAE;QACjB,GAAG,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAA;QACvC,MAAM,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAA;KAC/C,CAAA;IACD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,CAAA;AAElE,eAAO,MAAM,MAAM,wQAgDlB,CAAA"}
@@ -1,61 +1,38 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { memo } from "react";
1
+ 'use client';
2
+ import { __name } from "../../../_virtual/_rolldown/runtime.js";
4
3
  import { useEstimateCost } from "../EstimateCostProvider.js";
5
4
  import { estimateCostImage } from "../styles.css.js";
6
5
  import { Item } from "./Item.js";
7
6
  import { Strong } from "./Strong.js";
8
- const Region = memo(
9
- ({
10
- label,
11
- image,
12
- shouldBeHidden = false,
13
- priceText,
14
- animated = false,
15
- isFirstElement,
16
- isLastElement,
17
- productsCallback,
18
- iteration,
19
- discount,
20
- noBorder,
21
- noPrice,
22
- hideFromOverlay,
23
- style
24
- }) => {
25
- const { locales } = useEstimateCost();
26
- return /* @__PURE__ */ jsx(
27
- Item,
28
- {
29
- animated,
30
- discount,
31
- hideFromOverlay,
32
- isFirstElement,
33
- isLastElement,
34
- iteration,
35
- label: locales["estimate.cost.region.label"],
36
- noBorder,
37
- noPrice,
38
- priceText,
39
- productsCallback,
40
- shouldBeHidden,
41
- style,
42
- children: /* @__PURE__ */ jsxs(Strong, { children: [
43
- /* @__PURE__ */ jsx(
44
- "img",
45
- {
46
- alt: label,
47
- className: estimateCostImage,
48
- height: "auto",
49
- src: image,
50
- width: "auto"
51
- }
52
- ),
53
- label
54
- ] })
55
- }
56
- );
57
- }
58
- );
59
- export {
60
- Region
61
- };
7
+ import { memo } from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+
10
+ //#region src/components/EstimateCost/Components/Region.tsx
11
+ const Region = memo(({ label, image, shouldBeHidden = false, priceText, animated = false, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, hideFromOverlay, style }) => {
12
+ const { locales } = useEstimateCost();
13
+ return /* @__PURE__ */ jsx(Item, {
14
+ animated,
15
+ discount,
16
+ hideFromOverlay,
17
+ isFirstElement,
18
+ isLastElement,
19
+ iteration,
20
+ label: locales["estimate.cost.region.label"],
21
+ noBorder,
22
+ noPrice,
23
+ priceText,
24
+ productsCallback,
25
+ shouldBeHidden,
26
+ style,
27
+ children: /* @__PURE__ */ jsxs(Strong, { children: [/* @__PURE__ */ jsx("img", {
28
+ alt: label,
29
+ className: estimateCostImage,
30
+ height: "auto",
31
+ src: image,
32
+ width: "auto"
33
+ }), label] })
34
+ });
35
+ });
36
+
37
+ //#endregion
38
+ export { Region };
@@ -1 +1 @@
1
- {"version":3,"file":"Regular.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Regular.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrD,KAAK,YAAY,GAAG;IAClB,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,aAAa,CAAA;IACpD,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,OAAO,sGAOf,YAAY,oDAYhB,CAAA"}
1
+ {"version":3,"file":"Regular.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Regular.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrD,KAAK,YAAY,GAAG;IAClB,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,aAAa,CAAA;IACpD,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,OAAO,sKAmBnB,CAAA"}
@@ -1,28 +1,23 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
1
+ 'use client';
2
+ import { __name } from "../../../_virtual/_rolldown/runtime.js";
3
+ import { estimateCostRegular } from "./components.css.js";
4
+ import { useOverlay } from "../OverlayContext.js";
3
5
  import { cn } from "@ultraviolet/utils";
4
6
  import { memo } from "react";
5
- import { useOverlay } from "../OverlayContext.js";
6
- import { estimateCostRegular } from "./components.css.js";
7
- const Regular = memo(
8
- ({
9
- variant = "normal",
10
- isDisabledOnOverlay = false,
11
- children = null,
12
- className,
13
- style
14
- }) => {
15
- const { isOverlay } = useOverlay();
16
- return isDisabledOnOverlay && isOverlay ? null : /* @__PURE__ */ jsx(
17
- "div",
18
- {
19
- className: cn(className, estimateCostRegular({ isOverlay, variant })),
20
- style,
21
- children
22
- }
23
- );
24
- }
25
- );
26
- export {
27
- Regular
28
- };
7
+ import { jsx } from "react/jsx-runtime";
8
+
9
+ //#region src/components/EstimateCost/Components/Regular.tsx
10
+ const Regular = memo(({ variant = "normal", isDisabledOnOverlay = false, children = null, className, style }) => {
11
+ const { isOverlay } = useOverlay();
12
+ return isDisabledOnOverlay && isOverlay ? null : /* @__PURE__ */ jsx("div", {
13
+ className: cn(className, estimateCostRegular({
14
+ isOverlay,
15
+ variant
16
+ })),
17
+ style,
18
+ children
19
+ });
20
+ });
21
+
22
+ //#endregion
23
+ export { Regular };
@@ -1 +1 @@
1
- {"version":3,"file":"Strong.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Strong.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIrD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,aAAa,CAAA;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AACD,eAAO,MAAM,MAAM,qEACgC,WAAW,6CAW7D,CAAA"}
1
+ {"version":3,"file":"Strong.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Strong.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIrD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,aAAa,CAAA;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AACD,eAAO,MAAM,MAAM,6HAYlB,CAAA"}
@@ -1,21 +1,16 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
1
+ 'use client';
2
+ import { __name } from "../../../_virtual/_rolldown/runtime.js";
3
+ import { estimateCostRegular, estimateCostStrong } from "./components.css.js";
3
4
  import { cn } from "@ultraviolet/utils";
4
5
  import { memo } from "react";
5
- import { estimateCostRegular, estimateCostStrong } from "./components.css.js";
6
- const Strong = memo(
7
- ({ variant = "normal", children = null, style }) => /* @__PURE__ */ jsx(
8
- "div",
9
- {
10
- className: cn(
11
- estimateCostRegular({ variant }),
12
- estimateCostStrong({ variant })
13
- ),
14
- style,
15
- children
16
- }
17
- )
18
- );
19
- export {
20
- Strong
21
- };
6
+ import { jsx } from "react/jsx-runtime";
7
+
8
+ //#region src/components/EstimateCost/Components/Strong.tsx
9
+ const Strong = memo(({ variant = "normal", children = null, style }) => /* @__PURE__ */ jsx("div", {
10
+ className: cn(estimateCostRegular({ variant }), estimateCostStrong({ variant })),
11
+ style,
12
+ children
13
+ }));
14
+
15
+ //#endregion
16
+ export { Strong };
@@ -1 +1 @@
1
- {"version":3,"file":"Unit.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Unit.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAS1C,KAAK,SAAS,GAAG;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC7D,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,IAAI,GAAI,wDAMlB,SAAS,4CAkCX,CAAA"}
1
+ {"version":3,"file":"Unit.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Unit.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAS1C,KAAK,SAAS,GAAG;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC7D,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,IAAI,gHAwChB,CAAA"}
@@ -1,43 +1,50 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import { NumberInput } from "@ultraviolet/ui";
4
- import { useState, useEffect } from "react";
5
- import { useOverlay } from "../OverlayContext.js";
1
+ 'use client';
2
+ import { __name } from "../../../_virtual/_rolldown/runtime.js";
6
3
  import { estimateCostItemResourceName, estimateCostNumberInput } from "./components.css.js";
4
+ import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
5
+ import { useOverlay } from "../OverlayContext.js";
7
6
  import { Regular } from "./Regular.js";
8
- const Unit = ({
9
- amount,
10
- itemCallback,
11
- getAmountValue,
12
- unit,
13
- style
14
- }) => {
15
- const { isOverlay } = useOverlay();
16
- const [capacity, setCapacity] = useState(amount === 0 ? void 0 : amount);
17
- useEffect(() => {
18
- setCapacity(amount);
19
- itemCallback?.(amount, true);
20
- getAmountValue?.(amount);
21
- }, [getAmountValue, itemCallback, capacity, amount]);
22
- return isOverlay ? /* @__PURE__ */ jsx("div", { className: estimateCostItemResourceName(), style, children: /* @__PURE__ */ jsx(Regular, { children: capacity }) }) : /* @__PURE__ */ jsx("div", { style: { width: "150px", ...style }, children: /* @__PURE__ */ jsx(
23
- NumberInput,
24
- {
25
- className: estimateCostNumberInput,
26
- controls: false,
27
- name: "capacity",
28
- onChange: (capacityText) => {
29
- const newCapacity = Number(capacityText) < 0 ? 0 : Number(capacityText);
30
- setCapacity(newCapacity);
31
- itemCallback?.(newCapacity, true);
32
- getAmountValue?.(capacity);
33
- },
34
- placeholder: "00",
35
- size: "small",
36
- unit,
37
- value: capacity
38
- }
39
- ) });
40
- };
41
- export {
42
- Unit
7
+ import { NumberInput } from "@ultraviolet/ui";
8
+ import { useEffect, useState } from "react";
9
+ import { jsx } from "react/jsx-runtime";
10
+
11
+ //#region src/components/EstimateCost/Components/Unit.tsx
12
+ const Unit = ({ amount, itemCallback, getAmountValue, unit, style }) => {
13
+ const { isOverlay } = useOverlay();
14
+ const [capacity, setCapacity] = useState(amount === 0 ? void 0 : amount);
15
+ useEffect(() => {
16
+ setCapacity(amount);
17
+ itemCallback === null || itemCallback === void 0 || itemCallback(amount, true);
18
+ getAmountValue === null || getAmountValue === void 0 || getAmountValue(amount);
19
+ }, [
20
+ getAmountValue,
21
+ itemCallback,
22
+ capacity,
23
+ amount
24
+ ]);
25
+ return isOverlay ? /* @__PURE__ */ jsx("div", {
26
+ className: estimateCostItemResourceName(),
27
+ style,
28
+ children: /* @__PURE__ */ jsx(Regular, { children: capacity })
29
+ }) : /* @__PURE__ */ jsx("div", {
30
+ style: _objectSpread2({ width: "150px" }, style),
31
+ children: /* @__PURE__ */ jsx(NumberInput, {
32
+ className: estimateCostNumberInput,
33
+ controls: false,
34
+ name: "capacity",
35
+ onChange: (capacityText) => {
36
+ const newCapacity = Number(capacityText) < 0 ? 0 : Number(capacityText);
37
+ setCapacity(newCapacity);
38
+ itemCallback === null || itemCallback === void 0 || itemCallback(newCapacity, true);
39
+ getAmountValue === null || getAmountValue === void 0 || getAmountValue(capacity);
40
+ },
41
+ placeholder: "00",
42
+ size: "small",
43
+ unit,
44
+ value: capacity
45
+ })
46
+ });
43
47
  };
48
+
49
+ //#endregion
50
+ export { Unit };
@@ -1 +1 @@
1
- {"version":3,"file":"Zone.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Zone.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAI1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAI/E,KAAK,WAAW,GAAG;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,CAAC,EAAE;QACjB,GAAG,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAA;QACvC,MAAM,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAA;KAC/C,CAAA;IACD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,IAAI,+LAeZ,WAAW,6CA+Bf,CAAA"}
1
+ {"version":3,"file":"Zone.d.ts","sourceRoot":"","sources":["../../../../src/components/EstimateCost/Components/Zone.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAI1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAI/E,KAAK,WAAW,GAAG;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,CAAC,EAAE;QACjB,GAAG,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAA;QACvC,MAAM,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAA;KAC/C,CAAA;IACD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,IAAI,uPA8ChB,CAAA"}
@@ -1,59 +1,37 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { memo } from "react";
1
+ 'use client';
2
+ import { __name } from "../../../_virtual/_rolldown/runtime.js";
4
3
  import { useEstimateCost } from "../EstimateCostProvider.js";
5
4
  import { estimateCostImage } from "../styles.css.js";
6
5
  import { Item } from "./Item.js";
7
6
  import { Strong } from "./Strong.js";
8
- const Zone = memo(
9
- ({
10
- label,
11
- image,
12
- shouldBeHidden = false,
13
- priceText,
14
- animated = false,
15
- isFirstElement,
16
- isLastElement,
17
- productsCallback,
18
- iteration,
19
- discount,
20
- noBorder,
21
- noPrice,
22
- style
23
- }) => {
24
- const { locales } = useEstimateCost();
25
- return /* @__PURE__ */ jsx(
26
- Item,
27
- {
28
- animated,
29
- discount,
30
- isFirstElement,
31
- isLastElement,
32
- iteration,
33
- label: locales["estimate.cost.az.label"],
34
- noBorder,
35
- noPrice,
36
- priceText,
37
- productsCallback,
38
- shouldBeHidden,
39
- style,
40
- children: /* @__PURE__ */ jsxs(Strong, { children: [
41
- /* @__PURE__ */ jsx(
42
- "img",
43
- {
44
- alt: label,
45
- className: estimateCostImage,
46
- height: "auto",
47
- src: image,
48
- width: "auto"
49
- }
50
- ),
51
- label
52
- ] })
53
- }
54
- );
55
- }
56
- );
57
- export {
58
- Zone
59
- };
7
+ import { memo } from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+
10
+ //#region src/components/EstimateCost/Components/Zone.tsx
11
+ const Zone = memo(({ label, image, shouldBeHidden = false, priceText, animated = false, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, style }) => {
12
+ const { locales } = useEstimateCost();
13
+ return /* @__PURE__ */ jsx(Item, {
14
+ animated,
15
+ discount,
16
+ isFirstElement,
17
+ isLastElement,
18
+ iteration,
19
+ label: locales["estimate.cost.az.label"],
20
+ noBorder,
21
+ noPrice,
22
+ priceText,
23
+ productsCallback,
24
+ shouldBeHidden,
25
+ style,
26
+ children: /* @__PURE__ */ jsxs(Strong, { children: [/* @__PURE__ */ jsx("img", {
27
+ alt: label,
28
+ className: estimateCostImage,
29
+ height: "auto",
30
+ src: image,
31
+ width: "auto"
32
+ }), label] })
33
+ });
34
+ });
35
+
36
+ //#endregion
37
+ export { Zone };