@ultraviolet/plus 3.0.0-beta.8 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/dist/components/CodeEditor/CodeEditor.d.ts +3 -2
  2. package/dist/components/CodeEditor/CodeEditor.js +44 -13
  3. package/dist/components/ContentCard/Skeleton.d.ts +1 -1
  4. package/dist/components/ContentCard/Skeleton.js +13 -8
  5. package/dist/components/ContentCard/index.d.ts +2 -1
  6. package/dist/components/ContentCard/index.js +131 -50
  7. package/dist/components/ContentCardGroup/Card.d.ts +2 -1
  8. package/dist/components/ContentCardGroup/Card.js +65 -86
  9. package/dist/components/ContentCardGroup/SkeletonCard.d.ts +1 -1
  10. package/dist/components/ContentCardGroup/SkeletonCard.js +4 -22
  11. package/dist/components/ContentCardGroup/index.d.ts +3 -1
  12. package/dist/components/ContentCardGroup/index.js +12 -18
  13. package/dist/components/ContentCardGroup/styles.css.d.ts +7 -0
  14. package/dist/components/ContentCardGroup/styles.css.js +18 -0
  15. package/dist/components/Conversation/index.d.ts +25 -17
  16. package/dist/components/Conversation/index.js +37 -103
  17. package/dist/components/Conversation/styles.css.d.ts +7 -0
  18. package/dist/components/Conversation/styles.css.js +17 -0
  19. package/dist/components/CustomerSatisfaction/index.d.ts +3 -1
  20. package/dist/components/CustomerSatisfaction/index.js +70 -96
  21. package/dist/components/CustomerSatisfaction/styles.css.d.ts +17 -0
  22. package/dist/components/CustomerSatisfaction/styles.css.js +6 -0
  23. package/dist/components/EstimateCost/Components/CustomUnitInput.d.ts +1 -1
  24. package/dist/components/EstimateCost/Components/CustomUnitInput.js +47 -27
  25. package/dist/components/EstimateCost/Components/Item.d.ts +3 -2
  26. package/dist/components/EstimateCost/Components/Item.js +308 -288
  27. package/dist/components/EstimateCost/Components/LineThrough.d.ts +3 -5
  28. package/dist/components/EstimateCost/Components/LineThrough.js +12 -12
  29. package/dist/components/EstimateCost/Components/NumberInput.d.ts +1 -1
  30. package/dist/components/EstimateCost/Components/NumberInput.js +18 -10
  31. package/dist/components/EstimateCost/Components/Region.d.ts +2 -2
  32. package/dist/components/EstimateCost/Components/Region.js +44 -33
  33. package/dist/components/EstimateCost/Components/Regular.d.ts +3 -2
  34. package/dist/components/EstimateCost/Components/Regular.js +21 -29
  35. package/dist/components/EstimateCost/Components/Strong.d.ts +3 -10
  36. package/dist/components/EstimateCost/Components/Strong.js +13 -24
  37. package/dist/components/EstimateCost/Components/Unit.d.ts +3 -1
  38. package/dist/components/EstimateCost/Components/Unit.js +23 -31
  39. package/dist/components/EstimateCost/Components/Zone.d.ts +3 -1
  40. package/dist/components/EstimateCost/Components/Zone.js +42 -32
  41. package/dist/components/EstimateCost/Components/components.css.d.ts +77 -0
  42. package/dist/components/EstimateCost/Components/components.css.js +124 -0
  43. package/dist/components/EstimateCost/EstimateCost.d.ts +29 -29
  44. package/dist/components/EstimateCost/EstimateCost.js +74 -25
  45. package/dist/components/EstimateCost/EstimateCostContent.d.ts +1 -1
  46. package/dist/components/EstimateCost/EstimateCostContent.js +270 -174
  47. package/dist/components/EstimateCost/EstimateCostProvider.d.ts +1 -1
  48. package/dist/components/EstimateCost/EstimateCostProvider.js +24 -21
  49. package/dist/components/EstimateCost/OverlayComponent.d.ts +1 -1
  50. package/dist/components/EstimateCost/OverlayComponent.js +57 -81
  51. package/dist/components/EstimateCost/OverlayContext.d.ts +1 -1
  52. package/dist/components/EstimateCost/OverlayContext.js +2 -4
  53. package/dist/components/EstimateCost/constants.js +0 -4
  54. package/dist/components/EstimateCost/styles.css.d.ts +76 -0
  55. package/dist/components/EstimateCost/styles.css.js +50 -0
  56. package/dist/components/EstimateCost/types.d.ts +2 -1
  57. package/dist/components/FAQ/index.d.ts +3 -1
  58. package/dist/components/FAQ/index.js +4 -3
  59. package/dist/components/FAQ/styles.css.js +0 -1
  60. package/dist/components/InfoTable/InfoTable.d.ts +9 -6
  61. package/dist/components/InfoTable/InfoTable.js +14 -18
  62. package/dist/components/InfoTable/components/Cell.d.ts +3 -6
  63. package/dist/components/InfoTable/components/Cell.js +28 -34
  64. package/dist/components/InfoTable/components/Row.d.ts +3 -14
  65. package/dist/components/InfoTable/components/Row.js +25 -18
  66. package/dist/components/InfoTable/context.d.ts +3 -0
  67. package/dist/components/InfoTable/context.js +5 -0
  68. package/dist/components/InfoTable/styles.css.d.ts +6 -0
  69. package/dist/components/InfoTable/styles.css.js +15 -0
  70. package/dist/components/Navigation/Footer.d.ts +1 -1
  71. package/dist/components/Navigation/Footer.js +35 -33
  72. package/dist/components/Navigation/Header.d.ts +1 -1
  73. package/dist/components/Navigation/Header.js +13 -26
  74. package/dist/components/Navigation/Navigation.d.ts +11 -8
  75. package/dist/components/Navigation/Navigation.js +2 -5
  76. package/dist/components/Navigation/NavigationContent.d.ts +1 -1
  77. package/dist/components/Navigation/NavigationContent.js +60 -71
  78. package/dist/components/Navigation/NavigationProvider.d.ts +1 -1
  79. package/dist/components/Navigation/NavigationProvider.js +108 -70
  80. package/dist/components/Navigation/animations.css.d.ts +6 -0
  81. package/dist/components/Navigation/components/Group.d.ts +3 -2
  82. package/dist/components/Navigation/components/Group.js +21 -43
  83. package/dist/components/Navigation/components/Item.d.ts +3 -2
  84. package/dist/components/Navigation/components/Item.js +552 -405
  85. package/dist/components/Navigation/components/ItemProvider.d.ts +1 -1
  86. package/dist/components/Navigation/components/ItemProvider.js +2 -4
  87. package/dist/components/Navigation/components/PinnedItems.d.ts +3 -2
  88. package/dist/components/Navigation/components/PinnedItems.js +95 -75
  89. package/dist/components/Navigation/components/Separator.d.ts +1 -1
  90. package/dist/components/Navigation/components/Separator.js +3 -11
  91. package/dist/components/Navigation/components/items.css.d.ts +70 -0
  92. package/dist/components/Navigation/components/items.css.js +47 -0
  93. package/dist/components/Navigation/components/styles.css.d.ts +23 -0
  94. package/dist/components/Navigation/components/styles.css.js +17 -0
  95. package/dist/components/Navigation/constants.d.ts +0 -12
  96. package/dist/components/Navigation/constants.js +1 -28
  97. package/dist/components/Navigation/styles.css.d.ts +33 -0
  98. package/dist/components/Navigation/styles.css.js +22 -0
  99. package/dist/components/Navigation/types.d.ts +2 -1
  100. package/dist/components/Navigation/variables.css.d.ts +1 -0
  101. package/dist/components/Navigation/variables.css.js +5 -0
  102. package/dist/components/OfferList/OfferList.d.ts +9 -6
  103. package/dist/components/OfferList/OfferList.js +43 -22
  104. package/dist/components/OfferList/OfferListProvider.d.ts +1 -1
  105. package/dist/components/OfferList/OfferListProvider.js +25 -15
  106. package/dist/components/OfferList/components/Banner.d.ts +1 -1
  107. package/dist/components/OfferList/components/Banner.js +32 -95
  108. package/dist/components/OfferList/components/Cell.d.ts +1 -1
  109. package/dist/components/OfferList/components/Cell.js +16 -37
  110. package/dist/components/OfferList/components/Row.d.ts +4 -2
  111. package/dist/components/OfferList/components/Row.js +141 -125
  112. package/dist/components/OfferList/styles.css.d.ts +42 -0
  113. package/dist/components/OfferList/styles.css.js +38 -0
  114. package/dist/components/OrderSummary/NonScrollableContent.d.ts +1 -1
  115. package/dist/components/OrderSummary/NonScrollableContent.js +70 -34
  116. package/dist/components/OrderSummary/Provider.js +1 -4
  117. package/dist/components/OrderSummary/ScrollableContent.d.ts +1 -1
  118. package/dist/components/OrderSummary/ScrollableContent.js +177 -67
  119. package/dist/components/OrderSummary/constants.js +7 -1
  120. package/dist/components/OrderSummary/helpers.js +39 -21
  121. package/dist/components/OrderSummary/index.d.ts +1 -1
  122. package/dist/components/OrderSummary/index.js +139 -83
  123. package/dist/components/OrderSummary/styles.css.d.ts +8 -0
  124. package/dist/components/OrderSummary/styles.css.js +19 -0
  125. package/dist/components/OrderSummary/types.d.ts +3 -1
  126. package/dist/components/Plans/FeatureHint.d.ts +1 -1
  127. package/dist/components/Plans/FeatureHint.js +27 -25
  128. package/dist/components/Plans/PlanHeader.d.ts +1 -1
  129. package/dist/components/Plans/PlanHeader.js +80 -84
  130. package/dist/components/Plans/index.d.ts +3 -1
  131. package/dist/components/Plans/index.js +150 -109
  132. package/dist/components/Plans/styles.css.d.ts +61 -0
  133. package/dist/components/Plans/styles.css.js +26 -0
  134. package/dist/components/SteppedListCard/Step.d.ts +6 -1
  135. package/dist/components/SteppedListCard/Step.js +44 -32
  136. package/dist/components/SteppedListCard/SteppedListCard.d.ts +9 -5
  137. package/dist/components/SteppedListCard/SteppedListCard.js +70 -45
  138. package/dist/components/SteppedListCard/SteppedListContent.d.ts +4 -3
  139. package/dist/components/SteppedListCard/SteppedListContent.js +20 -51
  140. package/dist/components/SteppedListCard/helper.d.ts +1 -1
  141. package/dist/components/SteppedListCard/helper.js +4 -1
  142. package/dist/components/SteppedListCard/styles.css.d.ts +8 -0
  143. package/dist/components/SteppedListCard/styles.css.js +19 -0
  144. package/dist/plus.css +1 -1
  145. package/package.json +13 -16
  146. package/dist/components/CodeEditor/CodeEditor.cjs +0 -49
  147. package/dist/components/CodeEditor/styles.css.cjs +0 -9
  148. package/dist/components/ContentCard/Skeleton.cjs +0 -23
  149. package/dist/components/ContentCard/index.cjs +0 -61
  150. package/dist/components/ContentCard/styles.css.cjs +0 -27
  151. package/dist/components/ContentCardGroup/Card.cjs +0 -94
  152. package/dist/components/ContentCardGroup/SkeletonCard.cjs +0 -35
  153. package/dist/components/ContentCardGroup/index.cjs +0 -31
  154. package/dist/components/Conversation/index.cjs +0 -127
  155. package/dist/components/CustomerSatisfaction/assets/1-5.svg.cjs +0 -3
  156. package/dist/components/CustomerSatisfaction/assets/1-5NB.svg.cjs +0 -3
  157. package/dist/components/CustomerSatisfaction/assets/2-5.svg.cjs +0 -3
  158. package/dist/components/CustomerSatisfaction/assets/2-5NB.svg.cjs +0 -3
  159. package/dist/components/CustomerSatisfaction/assets/3-5.svg.cjs +0 -3
  160. package/dist/components/CustomerSatisfaction/assets/3-5NB.svg.cjs +0 -3
  161. package/dist/components/CustomerSatisfaction/assets/4-5.svg.cjs +0 -3
  162. package/dist/components/CustomerSatisfaction/assets/4-5NB.svg.cjs +0 -3
  163. package/dist/components/CustomerSatisfaction/assets/5-5.svg.cjs +0 -3
  164. package/dist/components/CustomerSatisfaction/assets/5-5NB.svg.cjs +0 -3
  165. package/dist/components/CustomerSatisfaction/index.cjs +0 -123
  166. package/dist/components/EstimateCost/Components/CustomUnitInput.cjs +0 -34
  167. package/dist/components/EstimateCost/Components/Item.cjs +0 -303
  168. package/dist/components/EstimateCost/Components/LineThrough.cjs +0 -19
  169. package/dist/components/EstimateCost/Components/NumberInput.cjs +0 -31
  170. package/dist/components/EstimateCost/Components/Region.cjs +0 -43
  171. package/dist/components/EstimateCost/Components/Regular.cjs +0 -37
  172. package/dist/components/EstimateCost/Components/Strong.cjs +0 -30
  173. package/dist/components/EstimateCost/Components/Unit.cjs +0 -53
  174. package/dist/components/EstimateCost/Components/Zone.cjs +0 -42
  175. package/dist/components/EstimateCost/EstimateCost.cjs +0 -90
  176. package/dist/components/EstimateCost/EstimateCostContent.cjs +0 -256
  177. package/dist/components/EstimateCost/EstimateCostProvider.cjs +0 -37
  178. package/dist/components/EstimateCost/OverlayComponent.cjs +0 -123
  179. package/dist/components/EstimateCost/OverlayContext.cjs +0 -15
  180. package/dist/components/EstimateCost/componentStyle.cjs +0 -221
  181. package/dist/components/EstimateCost/componentStyle.d.ts +0 -106
  182. package/dist/components/EstimateCost/componentStyle.js +0 -219
  183. package/dist/components/EstimateCost/constants.cjs +0 -32
  184. package/dist/components/EstimateCost/helper.cjs +0 -16
  185. package/dist/components/EstimateCost/locales/en.cjs +0 -23
  186. package/dist/components/FAQ/index.cjs +0 -48
  187. package/dist/components/FAQ/styles.css.cjs +0 -6
  188. package/dist/components/InfoTable/InfoTable.cjs +0 -32
  189. package/dist/components/InfoTable/components/Cell.cjs +0 -44
  190. package/dist/components/InfoTable/components/Row.cjs +0 -26
  191. package/dist/components/Navigation/Footer.cjs +0 -71
  192. package/dist/components/Navigation/Header.cjs +0 -36
  193. package/dist/components/Navigation/Navigation.cjs +0 -18
  194. package/dist/components/Navigation/NavigationContent.cjs +0 -163
  195. package/dist/components/Navigation/NavigationProvider.cjs +0 -129
  196. package/dist/components/Navigation/components/Group.cjs +0 -62
  197. package/dist/components/Navigation/components/Item.cjs +0 -429
  198. package/dist/components/Navigation/components/ItemProvider.cjs +0 -14
  199. package/dist/components/Navigation/components/PinnedItems.cjs +0 -116
  200. package/dist/components/Navigation/components/Separator.cjs +0 -18
  201. package/dist/components/Navigation/constants.cjs +0 -37
  202. package/dist/components/Navigation/locales/en.cjs +0 -11
  203. package/dist/components/OfferList/OfferList.cjs +0 -58
  204. package/dist/components/OfferList/OfferListProvider.cjs +0 -38
  205. package/dist/components/OfferList/components/Banner.cjs +0 -108
  206. package/dist/components/OfferList/components/Cell.cjs +0 -50
  207. package/dist/components/OfferList/components/Row.cjs +0 -192
  208. package/dist/components/OrderSummary/NonScrollableContent.cjs +0 -68
  209. package/dist/components/OrderSummary/Provider.cjs +0 -18
  210. package/dist/components/OrderSummary/ScrollableContent.cjs +0 -106
  211. package/dist/components/OrderSummary/constants.cjs +0 -12
  212. package/dist/components/OrderSummary/helpers.cjs +0 -91
  213. package/dist/components/OrderSummary/index.cjs +0 -135
  214. package/dist/components/OrderSummary/locales/en.cjs +0 -11
  215. package/dist/components/Plans/FeatureHint.cjs +0 -42
  216. package/dist/components/Plans/PlanHeader.cjs +0 -102
  217. package/dist/components/Plans/index.cjs +0 -152
  218. package/dist/components/Plans/locales/en.cjs +0 -7
  219. package/dist/components/SteppedListCard/Step.cjs +0 -51
  220. package/dist/components/SteppedListCard/SteppedListCard.cjs +0 -82
  221. package/dist/components/SteppedListCard/SteppedListContent.cjs +0 -86
  222. package/dist/components/SteppedListCard/helper.cjs +0 -38
  223. package/dist/index.cjs +0 -33
@@ -1,8 +1,6 @@
1
- type LineThroughProps = {
1
+ import type { ComponentProps } from 'react';
2
+ type LineThroughProps = ComponentProps<'span'> & {
2
3
  isActive?: boolean;
3
4
  };
4
- export declare const LineThrough: import("@emotion/styled").StyledComponent<{
5
- theme?: import("@emotion/react").Theme;
6
- as?: React.ElementType;
7
- } & LineThroughProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
5
+ export declare const LineThrough: ({ isActive, className, ...props }: LineThroughProps) => import("react/jsx-runtime").JSX.Element;
8
6
  export {};
@@ -1,17 +1,17 @@
1
1
  "use client";
2
- import _styled from "@emotion/styled/base";
3
- import { css } from "@emotion/react";
4
- const LineThrough = /* @__PURE__ */ _styled("span", process.env.NODE_ENV === "production" ? {
5
- shouldForwardProp: (prop) => !["isActive"].includes(prop),
6
- target: "e1d1k6i0"
7
- } : {
8
- shouldForwardProp: (prop) => !["isActive"].includes(prop),
9
- target: "e1d1k6i0",
10
- label: "LineThrough"
11
- })(({
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { estimateCostLineThrough } from "./components.css.js";
4
+ const LineThrough = ({
12
5
  isActive,
13
- theme
14
- }) => isActive ? /* @__PURE__ */ css("text-decoration-line:line-through;text-decoration-color:", theme.colors.warning.border, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:LineThrough;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvRXN0aW1hdGVDb3N0L0NvbXBvbmVudHMvTGluZVRocm91Z2gudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNXIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvRXN0aW1hdGVDb3N0L0NvbXBvbmVudHMvTGluZVRocm91Z2gudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBjbGllbnQnXG5cbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5cbnR5cGUgTGluZVRocm91Z2hQcm9wcyA9IHtcbiAgaXNBY3RpdmU/OiBib29sZWFuXG59XG5cbmV4cG9ydCBjb25zdCBMaW5lVGhyb3VnaCA9IHN0eWxlZCgnc3BhbicsIHtcbiAgc2hvdWxkRm9yd2FyZFByb3A6IHByb3AgPT4gIVsnaXNBY3RpdmUnXS5pbmNsdWRlcyhwcm9wKSxcbn0pPExpbmVUaHJvdWdoUHJvcHM+YFxuICAkeyh7IGlzQWN0aXZlLCB0aGVtZSB9KSA9PlxuICAgIGlzQWN0aXZlXG4gICAgICA/IGNzc2BcbiAgICAgICAgICB0ZXh0LWRlY29yYXRpb24tbGluZTogbGluZS10aHJvdWdoO1xuICAgICAgICAgIHRleHQtZGVjb3JhdGlvbi1jb2xvcjogJHt0aGVtZS5jb2xvcnMud2FybmluZy5ib3JkZXJ9O1xuICAgICAgICBgXG4gICAgICA6IG51bGx9XG5gXG4iXX0= */") : null, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvRXN0aW1hdGVDb3N0L0NvbXBvbmVudHMvTGluZVRocm91Z2gudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVdvQiIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb2xldC9wYWNrYWdlcy9wbHVzL3NyYy9jb21wb25lbnRzL0VzdGltYXRlQ29zdC9Db21wb25lbnRzL0xpbmVUaHJvdWdoLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50J1xuXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuXG50eXBlIExpbmVUaHJvdWdoUHJvcHMgPSB7XG4gIGlzQWN0aXZlPzogYm9vbGVhblxufVxuXG5leHBvcnQgY29uc3QgTGluZVRocm91Z2ggPSBzdHlsZWQoJ3NwYW4nLCB7XG4gIHNob3VsZEZvcndhcmRQcm9wOiBwcm9wID0+ICFbJ2lzQWN0aXZlJ10uaW5jbHVkZXMocHJvcCksXG59KTxMaW5lVGhyb3VnaFByb3BzPmBcbiAgJHsoeyBpc0FjdGl2ZSwgdGhlbWUgfSkgPT5cbiAgICBpc0FjdGl2ZVxuICAgICAgPyBjc3NgXG4gICAgICAgICAgdGV4dC1kZWNvcmF0aW9uLWxpbmU6IGxpbmUtdGhyb3VnaDtcbiAgICAgICAgICB0ZXh0LWRlY29yYXRpb24tY29sb3I6ICR7dGhlbWUuY29sb3JzLndhcm5pbmcuYm9yZGVyfTtcbiAgICAgICAgYFxuICAgICAgOiBudWxsfVxuYFxuIl19 */"));
6
+ className,
7
+ ...props
8
+ }) => /* @__PURE__ */ jsx(
9
+ "span",
10
+ {
11
+ className: `${className ? `${className} ` : ""} ${isActive ? estimateCostLineThrough : ""}`,
12
+ ...props
13
+ }
14
+ );
15
15
  export {
16
16
  LineThrough
17
17
  };
@@ -6,5 +6,5 @@ type NumberInputProps = {
6
6
  maxValue?: number;
7
7
  controls?: boolean;
8
8
  };
9
- export declare const NumberInput: ({ amount, minValue, maxValue, getAmountValue, itemCallback, controls, }: NumberInputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
9
+ export declare const NumberInput: ({ amount, minValue, maxValue, getAmountValue, itemCallback, controls, }: NumberInputProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export {};
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { jsx } from "@emotion/react/jsx-runtime";
2
+ import { jsx } from "react/jsx-runtime";
3
3
  import { NumberInput as NumberInput$1 } from "@ultraviolet/ui";
4
4
  import { useState, useEffect } from "react";
5
- import { ItemResourceName } from "../componentStyle.js";
6
5
  import { useOverlay } from "../OverlayContext.js";
6
+ import { estimateCostItemResourceName } from "./components.css.js";
7
7
  import { Regular } from "./Regular.js";
8
8
  const NumberInput = ({
9
9
  amount,
@@ -13,18 +13,26 @@ const NumberInput = ({
13
13
  itemCallback,
14
14
  controls = true
15
15
  }) => {
16
- const {
17
- isOverlay
18
- } = useOverlay();
16
+ const { isOverlay } = useOverlay();
19
17
  const [value, setValue] = useState(amount);
20
18
  useEffect(() => {
21
19
  getAmountValue?.(amount);
22
20
  }, [getAmountValue, amount]);
23
- return isOverlay ? /* @__PURE__ */ jsx(ItemResourceName, { animated: false, children: /* @__PURE__ */ jsx(Regular, { children: amount }) }) : /* @__PURE__ */ jsx(NumberInput$1, { controls, max: maxValue, min: minValue, onChange: (newValue) => {
24
- setValue(newValue);
25
- itemCallback?.(newValue, true);
26
- getAmountValue?.(newValue);
27
- }, size: "small", value });
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
+ );
28
36
  };
29
37
  export {
30
38
  NumberInput
@@ -17,6 +17,6 @@ type RegionProps = {
17
17
  image: string;
18
18
  noBorder?: boolean;
19
19
  noPrice?: boolean;
20
- } & Pick<ComponentProps<typeof Item>, 'hideFromOverlay'>;
21
- export declare const Region: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, hideFromOverlay, }: RegionProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
20
+ } & Pick<ComponentProps<typeof Item>, 'hideFromOverlay' | 'style'>;
21
+ export declare const Region: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, hideFromOverlay, style, }: RegionProps) => import("react/jsx-runtime").JSX.Element>;
22
22
  export {};
@@ -1,41 +1,52 @@
1
1
  "use client";
2
- import { jsx, jsxs } from "@emotion/react/jsx-runtime";
3
- import _styled from "@emotion/styled/base";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
4
3
  import { memo } from "react";
5
4
  import { useEstimateCost } from "../EstimateCostProvider.js";
5
+ import { estimateCostImage } from "../styles.css.js";
6
6
  import { Item } from "./Item.js";
7
7
  import { Strong } from "./Strong.js";
8
- const StyledImage = /* @__PURE__ */ _styled("img", process.env.NODE_ENV === "production" ? {
9
- target: "exu7lwu0"
10
- } : {
11
- target: "exu7lwu0",
12
- label: "StyledImage"
13
- })("width:15px;margin-right:", ({
14
- theme
15
- }) => theme.space["1"], ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvRXN0aW1hdGVDb3N0L0NvbXBvbmVudHMvUmVnaW9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFVOEIiLCJmaWxlIjoiL2hvbWUvcnVubmVyL3dvcmsvdWx0cmF2aW9sZXQvdWx0cmF2aW9sZXQvcGFja2FnZXMvcGx1cy9zcmMvY29tcG9uZW50cy9Fc3RpbWF0ZUNvc3QvQ29tcG9uZW50cy9SZWdpb24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBjbGllbnQnXG5cbmltcG9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AgICAgcHJvZHVjdHNDYWxsYmFjaz17cHJvZHVjdHNDYWxsYmFja31cbiAgICAgICAgc2hvdWxkQmVIaWRkZW49e3Nob3VsZEJlSGlkZGVufVxuICAgICAgPlxuICAgICAgICA8U3Ryb25nPlxuICAgICAgICAgIDxTdHlsZWRJbWFnZSBhbHQ9e2xhYmVsfSBzcmM9e2ltYWdlfSAvPlxuICAgICAgICAgIHtsYWJlbH1cbiAgICAgICAgPC9TdHJvbmc+XG4gICAgICA8L0l0ZW0+XG4gICAgKVxuICB9LFxuKVxuIl19 */"));
16
- const Region = memo(({
17
- label,
18
- image,
19
- shouldBeHidden = false,
20
- priceText,
21
- animated = false,
22
- isFirstElement,
23
- isLastElement,
24
- productsCallback,
25
- iteration,
26
- discount,
27
- noBorder,
28
- noPrice,
29
- hideFromOverlay
30
- }) => {
31
- const {
32
- locales
33
- } = useEstimateCost();
34
- return /* @__PURE__ */ jsx(Item, { animated, discount, hideFromOverlay, isFirstElement, isLastElement, iteration, label: locales["estimate.cost.region.label"], noBorder, noPrice, priceText, productsCallback, shouldBeHidden, children: /* @__PURE__ */ jsxs(Strong, { children: [
35
- /* @__PURE__ */ jsx(StyledImage, { alt: label, src: image }),
36
- label
37
- ] }) });
38
- });
8
+ const Region = memo(
9
+ ({
10
+ label,
11
+ image,
12
+ shouldBeHidden = false,
13
+ priceText,
14
+ animated = false,
15
+ isFirstElement,
16
+ isLastElement,
17
+ productsCallback,
18
+ iteration,
19
+ discount,
20
+ noBorder,
21
+ noPrice,
22
+ hideFromOverlay,
23
+ style
24
+ }) => {
25
+ const { locales } = useEstimateCost();
26
+ return /* @__PURE__ */ jsx(
27
+ Item,
28
+ {
29
+ animated,
30
+ discount,
31
+ hideFromOverlay,
32
+ isFirstElement,
33
+ isLastElement,
34
+ iteration,
35
+ label: locales["estimate.cost.region.label"],
36
+ noBorder,
37
+ noPrice,
38
+ priceText,
39
+ productsCallback,
40
+ shouldBeHidden,
41
+ style,
42
+ children: /* @__PURE__ */ jsxs(Strong, { children: [
43
+ /* @__PURE__ */ jsx("img", { alt: label, className: estimateCostImage, src: image }),
44
+ label
45
+ ] })
46
+ }
47
+ );
48
+ }
49
+ );
39
50
  export {
40
51
  Region
41
52
  };
@@ -1,9 +1,10 @@
1
- import type { ReactNode } from 'react';
1
+ import type { CSSProperties, ReactNode } from 'react';
2
2
  type RegularProps = {
3
3
  variant?: 'normal' | 'small' | 'big' | 'capitalized';
4
4
  isDisabledOnOverlay?: boolean;
5
5
  children?: ReactNode;
6
+ style?: CSSProperties;
6
7
  className?: string;
7
8
  };
8
- export declare const Regular: import("react").MemoExoticComponent<({ variant, isDisabledOnOverlay, children, className, }: RegularProps) => import("@emotion/react/jsx-runtime").JSX.Element | null>;
9
+ export declare const Regular: import("react").MemoExoticComponent<({ variant, isDisabledOnOverlay, children, className, style, }: RegularProps) => import("react/jsx-runtime").JSX.Element | null>;
9
10
  export {};
@@ -1,35 +1,27 @@
1
1
  "use client";
2
- import { jsx } from "@emotion/react/jsx-runtime";
3
- import _styled from "@emotion/styled/base";
4
- import { css } from "@emotion/react";
2
+ import { jsx } from "react/jsx-runtime";
5
3
  import { memo } from "react";
6
4
  import { useOverlay } from "../OverlayContext.js";
7
- const StyledRegular = /* @__PURE__ */ _styled("div", process.env.NODE_ENV === "production" ? {
8
- shouldForwardProp: (prop) => !["variant", "isOverlay"].includes(prop),
9
- target: "e1l9k4qo0"
10
- } : {
11
- shouldForwardProp: (prop) => !["variant", "isOverlay"].includes(prop),
12
- target: "e1l9k4qo0",
13
- label: "StyledRegular"
14
- })("display:", ({
15
- isOverlay
16
- }) => isOverlay ? "flex" : "inline-flex", ";max-width:500px;align-items:center;font-size:16px;color:", ({
17
- theme
18
- }) => theme.colors.neutral.textStrong, ";margin-right:4px;", ({
19
- theme,
20
- variant
21
- }) => variant === "small" && /* @__PURE__ */ css("display:block;font-size:14px;line-height:8px;color:", theme.colors.neutral.text, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:StyledRegular;"), process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FtZT17Y2xhc3NOYW1lfVxuICAgICAgICBpc092ZXJsYXk9e2lzT3ZlcmxheX1cbiAgICAgICAgdmFyaWFudD17dmFyaWFudH1cbiAgICAgID5cbiAgICAgICAge2NoaWxkcmVufVxuICAgICAgPC9TdHlsZWRSZWd1bGFyPlxuICAgICkgOiBudWxsXG4gIH0sXG4pXG4iXX0= */"), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvRXN0aW1hdGVDb3N0L0NvbXBvbmVudHMvUmVndWxhci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBb0JFIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvRXN0aW1hdGVDb3N0L0NvbXBvbmVudHMvUmVndWxhci50c3giLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIGNsaWVudCdcblxuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB0eXBlIHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBtZW1vIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyB1c2VPdmVybGF5IH0gZnJvbSAnLi4vT3ZlcmxheUNvbnRleHQnXG5cbnR5cGUgUmVndWxhclByb3BzID0ge1xuICB2YXJpYW50PzogJ25vcm1hbCcgfCAnc21hbGwnIHwgJ2JpZycgfCAnY2FwaXRhbGl6ZWQnXG4gIGlzRGlzYWJsZWRPbk92ZXJsYXk/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B9OiBSZWd1bGFyUHJvcHMpID0+IHtcbiAgICBjb25zdCB7IGlzT3ZlcmxheSB9ID0gdXNlT3ZlcmxheSgpXG5cbiAgICByZXR1cm4gIWlzRGlzYWJsZWRPbk92ZXJsYXkgfHwgIWlzT3ZlcmxheSA/IChcbiAgICAgIDxTdHlsZWRSZWd1bGFyXG4gICAgICAgIGNsYXNzTmFtZT17Y2xhc3NOYW1lfVxuICAgICAgICBpc092ZXJsYXk9e2lzT3ZlcmxheX1cbiAgICAgICAgdmFyaWFudD17dmFyaWFudH1cbiAgICAgID5cbiAgICAgICAge2NoaWxkcmVufVxuICAgICAgPC9TdHlsZWRSZWd1bGFyPlxuICAgICkgOiBudWxsXG4gIH0sXG4pXG4iXX0= */"));
22
- const Regular = memo(({
23
- variant = "normal",
24
- isDisabledOnOverlay = false,
25
- children = null,
26
- className
27
- }) => {
28
- const {
29
- isOverlay
30
- } = useOverlay();
31
- return !isDisabledOnOverlay || !isOverlay ? /* @__PURE__ */ jsx(StyledRegular, { className, isOverlay, variant, children }) : null;
32
- });
5
+ import { estimateCostRegular } from "./components.css.js";
6
+ const Regular = memo(
7
+ ({
8
+ variant = "normal",
9
+ isDisabledOnOverlay = false,
10
+ children = null,
11
+ className,
12
+ style
13
+ }) => {
14
+ const { isOverlay } = useOverlay();
15
+ return !isDisabledOnOverlay || !isOverlay ? /* @__PURE__ */ jsx(
16
+ "div",
17
+ {
18
+ className: `${className ? `${className} ` : ""}${estimateCostRegular({ isOverlay, variant })}`,
19
+ style,
20
+ children
21
+ }
22
+ ) : null;
23
+ }
24
+ );
33
25
  export {
34
26
  Regular
35
27
  };
@@ -1,16 +1,9 @@
1
- import type { ReactNode } from 'react';
1
+ import type { CSSProperties, ReactNode } from 'react';
2
2
  type StrongProps = {
3
3
  variant?: 'normal' | 'small' | 'big' | 'capitalized';
4
4
  children?: ReactNode;
5
5
  isDisabledOnOverlay?: boolean;
6
+ style?: CSSProperties;
6
7
  };
7
- export declare const StyledStrong: import("@emotion/styled").StyledComponent<{
8
- variant?: "normal" | "small" | "big" | "capitalized";
9
- isDisabledOnOverlay?: boolean;
10
- children?: ReactNode;
11
- className?: string;
12
- } & {
13
- theme?: import("@emotion/react").Theme;
14
- } & StrongProps, {}, {}>;
15
- export declare const Strong: import("react").MemoExoticComponent<({ variant, children, isDisabledOnOverlay, }: StrongProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
8
+ export declare const Strong: import("react").MemoExoticComponent<({ variant, children, style }: StrongProps) => import("react/jsx-runtime").JSX.Element>;
16
9
  export {};
@@ -1,28 +1,17 @@
1
1
  "use client";
2
- import { jsx } from "@emotion/react/jsx-runtime";
3
- import _styled from "@emotion/styled/base";
2
+ import { jsx } from "react/jsx-runtime";
4
3
  import { memo } from "react";
5
- import { Regular } from "./Regular.js";
6
- const StyledStrong = /* @__PURE__ */ _styled(Regular, process.env.NODE_ENV === "production" ? {
7
- shouldForwardProp: (prop) => !["variant"].includes(prop),
8
- target: "e1bhvxf60"
9
- } : {
10
- shouldForwardProp: (prop) => !["variant"].includes(prop),
11
- target: "e1bhvxf60",
12
- label: "StyledStrong"
13
- })("display:inline-flex;align-items:center;font-size:", ({
14
- variant
15
- }) => variant === "big" ? 24 : 16, "px;", ({
16
- variant
17
- }) => variant === "capitalized" ? `text-transform: capitalize;` : "", " color:", ({
18
- theme
19
- }) => theme.colors.neutral.textStrong, ";font-weight:500;margin-right:4px;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvRXN0aW1hdGVDb3N0L0NvbXBvbmVudHMvU3Ryb25nLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFlZSIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bH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aHQ6IDUwMDtcbiAgbWFyZ2luLXJpZ2h0OiA0cHg7XG5gXG5cbmV4cG9ydCBjb25zdCBTdHJvbmcgPSBtZW1vKFxuICAoe1xuICAgIHZhcmlhbnQgPSAnbm9ybWFsJyxcbiAgICBjaGlsZHJlbiA9IG51bGwsXG4gICAgaXNEaXNhYmxlZE9uT3ZlcmxheSA9IGZhbHNlLFxuICB9OiBTdHJvbmdQcm9wcykgPT4gKFxuICAgIDxTdHlsZWRTdHJvbmcgaXNEaXNhYmxlZE9uT3ZlcmxheT17aXNEaXNhYmxlZE9uT3ZlcmxheX0gdmFyaWFudD17dmFyaWFudH0+XG4gICAgICB7Y2hpbGRyZW59XG4gICAgPC9TdHlsZWRTdHJvbmc+XG4gICksXG4pXG4iXX0= */"));
20
- const Strong = memo(({
21
- variant = "normal",
22
- children = null,
23
- isDisabledOnOverlay = false
24
- }) => /* @__PURE__ */ jsx(StyledStrong, { isDisabledOnOverlay, variant, children }));
4
+ import { estimateCostRegular, estimateCostStrong } from "./components.css.js";
5
+ const Strong = memo(
6
+ ({ variant = "normal", children = null, style }) => /* @__PURE__ */ jsx(
7
+ "div",
8
+ {
9
+ className: `${estimateCostRegular({ variant })} ${estimateCostStrong({ variant })}`,
10
+ style,
11
+ children
12
+ }
13
+ )
14
+ );
25
15
  export {
26
- Strong,
27
- StyledStrong
16
+ Strong
28
17
  };
@@ -1,8 +1,10 @@
1
+ import type { CSSProperties } from 'react';
1
2
  type UnitProps = {
2
3
  amount?: number;
3
4
  itemCallback?: (amount?: number, isVariant?: boolean) => void;
4
5
  getAmountValue?: (amount?: number) => void;
5
6
  unit?: string;
7
+ style?: CSSProperties;
6
8
  };
7
- export declare const Unit: ({ amount, itemCallback, getAmountValue, unit, }: UnitProps) => import("@emotion/react/jsx-runtime").JSX.Element;
9
+ export declare const Unit: ({ amount, itemCallback, getAmountValue, unit, style, }: UnitProps) => import("react/jsx-runtime").JSX.Element;
8
10
  export {};
@@ -1,50 +1,42 @@
1
1
  "use client";
2
- import { jsx } from "@emotion/react/jsx-runtime";
3
- import _styled from "@emotion/styled/base";
2
+ import { jsx } from "react/jsx-runtime";
4
3
  import { NumberInput } from "@ultraviolet/ui";
5
4
  import { useState, useEffect } from "react";
6
- import { ItemResourceName } from "../componentStyle.js";
7
5
  import { useOverlay } from "../OverlayContext.js";
6
+ import { estimateCostItemResourceName, estimateCostNumberInput } from "./components.css.js";
8
7
  import { Regular } from "./Regular.js";
9
- function _EMOTION_STRINGIFIED_CSS_ERROR__() {
10
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
11
- }
12
- const StyledNumberInput = /* @__PURE__ */ _styled(NumberInput, process.env.NODE_ENV === "production" ? {
13
- target: "e1pr25uw0"
14
- } : {
15
- target: "e1pr25uw0",
16
- label: "StyledNumberInput"
17
- })(process.env.NODE_ENV === "production" ? {
18
- name: "l1y63n",
19
- styles: "input[type='number']::-webkit-inner-spin-button,input[type='number']::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}input[type='number']{-moz-appearance:textfield;}"
20
- } : {
21
- name: "l1y63n",
22
- styles: "input[type='number']::-webkit-inner-spin-button,input[type='number']::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}input[type='number']{-moz-appearance:textfield;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvRXN0aW1hdGVDb3N0L0NvbXBvbmVudHMvVW5pdC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUzZDIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvR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MCA/IDAgOiBOdW1iZXIoY2FwYWNpdHlUZXh0KVxuICAgICAgICAgIHNldENhcGFjaXR5KG5ld0NhcGFjaXR5KVxuICAgICAgICAgIGl0ZW1DYWxsYmFjaz8uKG5ld0NhcGFjaXR5LCB0cnVlKVxuICAgICAgICAgIGdldEFtb3VudFZhbHVlPy4oY2FwYWNpdHkpXG4gICAgICAgIH19XG4gICAgICAgIHBsYWNlaG9sZGVyPVwiMDBcIlxuICAgICAgICBzaXplPVwic21hbGxcIlxuICAgICAgICB1bml0PXt1bml0fVxuICAgICAgICB2YWx1ZT17Y2FwYWNpdHl9XG4gICAgICAvPlxuICAgIDwvZGl2PlxuICApXG59XG4iXX0= */",
23
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
24
- });
25
8
  const Unit = ({
26
9
  amount,
27
10
  itemCallback,
28
11
  getAmountValue,
29
- unit
12
+ unit,
13
+ style
30
14
  }) => {
31
- const {
32
- isOverlay
33
- } = useOverlay();
15
+ const { isOverlay } = useOverlay();
34
16
  const [capacity, setCapacity] = useState(amount === 0 ? void 0 : amount);
35
17
  useEffect(() => {
36
18
  setCapacity(amount);
37
19
  itemCallback?.(amount, true);
38
20
  getAmountValue?.(amount);
39
21
  }, [getAmountValue, itemCallback, capacity, amount]);
40
- return isOverlay ? /* @__PURE__ */ jsx(ItemResourceName, { animated: false, children: /* @__PURE__ */ jsx(Regular, { children: capacity }) }) : /* @__PURE__ */ jsx("div", { style: {
41
- width: "150px"
42
- }, children: /* @__PURE__ */ jsx(StyledNumberInput, { controls: false, name: "capacity", onChange: (capacityText) => {
43
- const newCapacity = Number(capacityText) < 0 ? 0 : Number(capacityText);
44
- setCapacity(newCapacity);
45
- itemCallback?.(newCapacity, true);
46
- getAmountValue?.(capacity);
47
- }, placeholder: "00", size: "small", unit, value: capacity }) });
22
+ return isOverlay ? /* @__PURE__ */ jsx("div", { className: estimateCostItemResourceName(), style, children: /* @__PURE__ */ jsx(Regular, { children: capacity }) }) : /* @__PURE__ */ jsx("div", { style: { width: "150px", ...style }, children: /* @__PURE__ */ jsx(
23
+ NumberInput,
24
+ {
25
+ className: estimateCostNumberInput,
26
+ controls: false,
27
+ name: "capacity",
28
+ onChange: (capacityText) => {
29
+ const newCapacity = Number(capacityText) < 0 ? 0 : Number(capacityText);
30
+ setCapacity(newCapacity);
31
+ itemCallback?.(newCapacity, true);
32
+ getAmountValue?.(capacity);
33
+ },
34
+ placeholder: "00",
35
+ size: "small",
36
+ unit,
37
+ value: capacity
38
+ }
39
+ ) });
48
40
  };
49
41
  export {
50
42
  Unit
@@ -1,3 +1,4 @@
1
+ import type { CSSProperties } from 'react';
1
2
  import type { BareEstimateProduct, EstimateProduct, Iteration } from '../types';
2
3
  type RegionProps = {
3
4
  shouldBeHidden?: boolean;
@@ -15,6 +16,7 @@ type RegionProps = {
15
16
  image: string;
16
17
  noBorder?: boolean;
17
18
  noPrice?: boolean;
19
+ style?: CSSProperties;
18
20
  };
19
- export declare const Zone: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, }: RegionProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
21
+ export declare const Zone: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, style, }: RegionProps) => import("react/jsx-runtime").JSX.Element>;
20
22
  export {};
@@ -1,40 +1,50 @@
1
1
  "use client";
2
- import { jsx, jsxs } from "@emotion/react/jsx-runtime";
3
- import _styled from "@emotion/styled/base";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
4
3
  import { memo } from "react";
5
4
  import { useEstimateCost } from "../EstimateCostProvider.js";
5
+ import { estimateCostImage } from "../styles.css.js";
6
6
  import { Item } from "./Item.js";
7
7
  import { Strong } from "./Strong.js";
8
- const StyledImage = /* @__PURE__ */ _styled("img", process.env.NODE_ENV === "production" ? {
9
- target: "e24b3x10"
10
- } : {
11
- target: "e24b3x10",
12
- label: "StyledImage"
13
- })("width:15px;margin-right:", ({
14
- theme
15
- }) => theme.space["1"], ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvRXN0aW1hdGVDb3N0L0NvbXBvbmVudHMvWm9uZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUzhCIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvRXN0aW1hdGVDb3N0L0NvbXBvbmVudHMvWm9uZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIGNsaWVudCdcblxuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgeyBtZW1vIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyB1c2VFc3RpbWF0ZUNvc3QgfSBmcm9tICcuLi9Fc3RpbWF0ZUNvc3RQcm92aWRlcidcbmltcG9ydCB0eXBlIHsgQmFyZUVzdGltYXRlUHJvZHVjdCwgRXN0aW1hdGVQcm9kdWN0LCBJdGVyYXRpb24gfSBmcm9tICcuLi90eXBlcydcbmltcG9ydCB7IEl0ZW0gfSBmcm9tICcuL0l0ZW0nXG5pbXBvcnQgeyBTdHJvbmcgfSBmcm9tICcuL1N0cm9uZydcblxuY29uc3QgU3R5bGVkSW1hZ2UgPSBzdHlsZWQuaW1nYFxuICB3aWR0aDogMTVweDtcbiAgbWFyZ2luLXJpZ2h0OiAkeyh7IHRoZW1lIH0pID0+IHRoZW1lLnNwYWNlWycxJ119O1xuYFxuXG50eXBlIFJlZ2lvblByb3BzID0ge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c3RFbGVtZW50fVxuICAgICAgICBpc0xhc3RFbGVtZW50PXtpc0xhc3RFbGVtZW50fVxuICAgICAgICBpdGVyYXRpb249e2l0ZXJhdGlvbn1cbiAgICAgICAgbGFiZWw9e2xvY2FsZXNbJ2VzdGltYXRlLmNvc3QuYXoubGFiZWwnXX1cbiAgICAgICAgbm9Cb3JkZXI9e25vQm9yZGVyfVxuICAgICAgICBub1ByaWNlPXtub1ByaWNlfVxuICAgICAgICBwcmljZVRleHQ9e3ByaWNlVGV4dH1cbiAgICAgICAgcHJvZHVjdHNDYWxsYmFjaz17cHJvZHVjdHNDYWxsYmFja31cbiAgICAgICAgc2hvdWxkQmVIaWRkZW49e3Nob3VsZEJlSGlkZGVufVxuICAgICAgPlxuICAgICAgICA8U3Ryb25nPlxuICAgICAgICAgIDxTdHlsZWRJbWFnZSBhbHQ9e2xhYmVsfSBzcmM9e2ltYWdlfSAvPlxuICAgICAgICAgIHtsYWJlbH1cbiAgICAgICAgPC9TdHJvbmc+XG4gICAgICA8L0l0ZW0+XG4gICAgKVxuICB9LFxuKVxuIl19 */"));
16
- const Zone = memo(({
17
- label,
18
- image,
19
- shouldBeHidden = false,
20
- priceText,
21
- animated = false,
22
- isFirstElement,
23
- isLastElement,
24
- productsCallback,
25
- iteration,
26
- discount,
27
- noBorder,
28
- noPrice
29
- }) => {
30
- const {
31
- locales
32
- } = useEstimateCost();
33
- return /* @__PURE__ */ jsx(Item, { animated, discount, isFirstElement, isLastElement, iteration, label: locales["estimate.cost.az.label"], noBorder, noPrice, priceText, productsCallback, shouldBeHidden, children: /* @__PURE__ */ jsxs(Strong, { children: [
34
- /* @__PURE__ */ jsx(StyledImage, { alt: label, src: image }),
35
- label
36
- ] }) });
37
- });
8
+ const Zone = memo(
9
+ ({
10
+ label,
11
+ image,
12
+ shouldBeHidden = false,
13
+ priceText,
14
+ animated = false,
15
+ isFirstElement,
16
+ isLastElement,
17
+ productsCallback,
18
+ iteration,
19
+ discount,
20
+ noBorder,
21
+ noPrice,
22
+ style
23
+ }) => {
24
+ const { locales } = useEstimateCost();
25
+ return /* @__PURE__ */ jsx(
26
+ Item,
27
+ {
28
+ animated,
29
+ discount,
30
+ isFirstElement,
31
+ isLastElement,
32
+ iteration,
33
+ label: locales["estimate.cost.az.label"],
34
+ noBorder,
35
+ noPrice,
36
+ priceText,
37
+ productsCallback,
38
+ shouldBeHidden,
39
+ style,
40
+ children: /* @__PURE__ */ jsxs(Strong, { children: [
41
+ /* @__PURE__ */ jsx("img", { alt: label, className: estimateCostImage, src: image }),
42
+ label
43
+ ] })
44
+ }
45
+ );
46
+ }
47
+ );
38
48
  export {
39
49
  Zone
40
50
  };
@@ -0,0 +1,77 @@
1
+ export declare const maxWidthTextVar: `var(--${string})`;
2
+ export declare const maxWidthText: string;
3
+ export declare const estimateCostImage: string;
4
+ export declare const estimateCostTr: string;
5
+ export declare const styledDiv: string;
6
+ export declare const estimateCostLeftSide: string;
7
+ export declare const estimateCostItemResourceName: import("@vanilla-extract/recipes").RuntimeFn<{
8
+ animated: {
9
+ true: {
10
+ animation: `800ms ${string}`;
11
+ };
12
+ };
13
+ }>;
14
+ export declare const estimateCostResourceName: import("@vanilla-extract/recipes").RuntimeFn<{
15
+ isOverlay: {
16
+ true: {
17
+ textAlign: "initial";
18
+ height: `var(--${string})`;
19
+ display: "flex";
20
+ flexDirection: "column";
21
+ WebkitBoxPack: "center";
22
+ justifyContent: "center";
23
+ };
24
+ false: {
25
+ textAlign: "right";
26
+ };
27
+ };
28
+ isAnimated: {
29
+ true: {
30
+ animation: `${string} 800ms`;
31
+ };
32
+ };
33
+ }>;
34
+ export declare const estimateCostBadgeItem: string;
35
+ export declare const estimateCostTextItem: string;
36
+ export declare const estimateCostMaxWidthText: string;
37
+ export declare const estimateCostTooltip: string;
38
+ export declare const estimateCostLineThrough: string;
39
+ export declare const estimateCostRegular: import("@vanilla-extract/recipes").RuntimeFn<{
40
+ isOverlay: {
41
+ true: {
42
+ display: "flex";
43
+ };
44
+ false: {
45
+ display: "inline-flex";
46
+ };
47
+ };
48
+ variant: {
49
+ normal: {};
50
+ big: {};
51
+ capitalized: {};
52
+ small: {
53
+ display: "block";
54
+ fontSize: number;
55
+ lineHeight: number;
56
+ color: `var(--${string})`;
57
+ };
58
+ };
59
+ }>;
60
+ export declare const estimateCostStrong: import("@vanilla-extract/recipes").RuntimeFn<{
61
+ variant: {
62
+ normal: {
63
+ fontSize: number;
64
+ };
65
+ big: {
66
+ fontSize: number;
67
+ };
68
+ capitalized: {
69
+ fontSize: number;
70
+ textTransform: "capitalize";
71
+ };
72
+ small: {
73
+ fontSize: number;
74
+ };
75
+ };
76
+ }>;
77
+ export declare const estimateCostNumberInput: string;