@ultraviolet/plus 3.0.0-beta.9 → 3.1.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/README.md +1 -1
  2. package/dist/components/CodeEditor/CodeEditor.d.ts +3 -2
  3. package/dist/components/CodeEditor/CodeEditor.js +44 -13
  4. package/dist/components/ContentCard/Skeleton.d.ts +1 -1
  5. package/dist/components/ContentCard/Skeleton.js +13 -8
  6. package/dist/components/ContentCard/index.d.ts +2 -1
  7. package/dist/components/ContentCard/index.js +131 -50
  8. package/dist/components/ContentCardGroup/Card.d.ts +2 -1
  9. package/dist/components/ContentCardGroup/Card.js +65 -86
  10. package/dist/components/ContentCardGroup/SkeletonCard.d.ts +1 -1
  11. package/dist/components/ContentCardGroup/SkeletonCard.js +4 -22
  12. package/dist/components/ContentCardGroup/index.d.ts +3 -1
  13. package/dist/components/ContentCardGroup/index.js +12 -18
  14. package/dist/components/ContentCardGroup/styles.css.d.ts +7 -0
  15. package/dist/components/ContentCardGroup/styles.css.js +17 -0
  16. package/dist/components/Conversation/index.d.ts +25 -17
  17. package/dist/components/Conversation/index.js +37 -103
  18. package/dist/components/Conversation/styles.css.d.ts +7 -0
  19. package/dist/components/Conversation/styles.css.js +17 -0
  20. package/dist/components/CustomerSatisfaction/index.d.ts +3 -1
  21. package/dist/components/CustomerSatisfaction/index.js +70 -96
  22. package/dist/components/CustomerSatisfaction/styles.css.d.ts +17 -0
  23. package/dist/components/CustomerSatisfaction/styles.css.js +6 -0
  24. package/dist/components/EstimateCost/Components/CustomUnitInput.d.ts +1 -1
  25. package/dist/components/EstimateCost/Components/CustomUnitInput.js +47 -27
  26. package/dist/components/EstimateCost/Components/Item.d.ts +3 -2
  27. package/dist/components/EstimateCost/Components/Item.js +308 -288
  28. package/dist/components/EstimateCost/Components/LineThrough.d.ts +3 -5
  29. package/dist/components/EstimateCost/Components/LineThrough.js +12 -12
  30. package/dist/components/EstimateCost/Components/NumberInput.d.ts +1 -1
  31. package/dist/components/EstimateCost/Components/NumberInput.js +18 -10
  32. package/dist/components/EstimateCost/Components/Region.d.ts +2 -2
  33. package/dist/components/EstimateCost/Components/Region.js +44 -33
  34. package/dist/components/EstimateCost/Components/Regular.d.ts +3 -2
  35. package/dist/components/EstimateCost/Components/Regular.js +21 -29
  36. package/dist/components/EstimateCost/Components/Strong.d.ts +3 -10
  37. package/dist/components/EstimateCost/Components/Strong.js +13 -24
  38. package/dist/components/EstimateCost/Components/Unit.d.ts +3 -1
  39. package/dist/components/EstimateCost/Components/Unit.js +23 -31
  40. package/dist/components/EstimateCost/Components/Zone.d.ts +3 -1
  41. package/dist/components/EstimateCost/Components/Zone.js +42 -32
  42. package/dist/components/EstimateCost/Components/components.css.d.ts +77 -0
  43. package/dist/components/EstimateCost/Components/components.css.js +124 -0
  44. package/dist/components/EstimateCost/EstimateCost.d.ts +29 -29
  45. package/dist/components/EstimateCost/EstimateCost.js +74 -25
  46. package/dist/components/EstimateCost/EstimateCostContent.d.ts +1 -1
  47. package/dist/components/EstimateCost/EstimateCostContent.js +270 -174
  48. package/dist/components/EstimateCost/EstimateCostProvider.d.ts +1 -1
  49. package/dist/components/EstimateCost/EstimateCostProvider.js +24 -21
  50. package/dist/components/EstimateCost/OverlayComponent.d.ts +1 -1
  51. package/dist/components/EstimateCost/OverlayComponent.js +57 -81
  52. package/dist/components/EstimateCost/OverlayContext.d.ts +1 -1
  53. package/dist/components/EstimateCost/OverlayContext.js +2 -4
  54. package/dist/components/EstimateCost/constants.js +0 -4
  55. package/dist/components/EstimateCost/styles.css.d.ts +76 -0
  56. package/dist/components/EstimateCost/styles.css.js +50 -0
  57. package/dist/components/EstimateCost/types.d.ts +2 -1
  58. package/dist/components/FAQ/index.d.ts +3 -1
  59. package/dist/components/FAQ/index.js +4 -3
  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 +94 -74
  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 +23 -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 +4 -0
  102. package/dist/components/OfferList/OfferList.d.ts +8 -5
  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 +4 -1
  115. package/dist/components/OrderSummary/NonScrollableContent.js +80 -36
  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 +217 -69
  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 +145 -83
  123. package/dist/components/OrderSummary/styles.css.d.ts +19 -0
  124. package/dist/components/OrderSummary/styles.css.js +24 -0
  125. package/dist/components/OrderSummary/types.d.ts +11 -2
  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 +8 -1
  131. package/dist/components/Plans/index.js +166 -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 +14 -18
  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 -28
  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 -5
  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 -109
  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
@@ -20,7 +20,7 @@ const calculatePrice = ({
20
20
  }) => {
21
21
  const nonNanTimeAmount = Number.isNaN(timeAmount) ? 1 : timeAmount;
22
22
  const valueBeforeDiscount = price * (fixedPrice ? 1 : nonNanTimeAmount * multiplier[`${timeUnit}`]) * Math.max(amount - amountFree, 0);
23
- const finalValue = valueBeforeDiscount * (1 - (discount < 1 ? discount : 0)) - (discount >= 1 ? Math.abs(discount) : 0);
23
+ const finalValue = valueBeforeDiscount * (1 - (discount <= 1 ? discount : 0)) - (discount > 1 ? Math.abs(discount) : 0);
24
24
  return finalValue;
25
25
  };
26
26
  const calculateSubCategoryPrice = (subCategory, hideTimeUnit, timePeriodAmount, timePeriodUnit) => {
@@ -57,30 +57,48 @@ const calculateSubCategoryPrice = (subCategory, hideTimeUnit, timePeriodAmount,
57
57
  return [price, price];
58
58
  };
59
59
  const calculateCategoryPrice = (category, hideTimeUnit, timePeriodAmount, timePeriodUnit) => {
60
- const categoryPrice = category.subCategories?.reduce((acc, subCategory) => {
61
- const computedPrices = calculateSubCategoryPrice(subCategory, hideTimeUnit, timePeriodAmount, timePeriodUnit);
62
- return [acc[0] + computedPrices[0], acc[1] + computedPrices[1]];
63
- }, [0, 0]) || [0, 0];
64
- const discountedPriceMin = category.discount && category.discount < 1 ? categoryPrice[0] * category.discount : categoryPrice[0] - (category.discount ?? 0);
65
- const discountedPriceMax = category.discount && category.discount < 1 ? categoryPrice[1] * category.discount : categoryPrice[1] - (category.discount ?? 0);
60
+ const categoryPrice = category.subCategories?.reduce(
61
+ (acc, subCategory) => {
62
+ const computedPrices = calculateSubCategoryPrice(
63
+ subCategory,
64
+ hideTimeUnit,
65
+ timePeriodAmount,
66
+ timePeriodUnit
67
+ );
68
+ return [acc[0] + computedPrices[0], acc[1] + computedPrices[1]];
69
+ },
70
+ [0, 0]
71
+ ) || [0, 0];
72
+ const discountedPriceMin = category.discount && category.discount <= 1 ? categoryPrice[0] * category.discount : categoryPrice[0] - (category.discount ?? 0);
73
+ const discountedPriceMax = category.discount && category.discount <= 1 ? categoryPrice[1] * category.discount : categoryPrice[1] - (category.discount ?? 0);
66
74
  const discountedPrice = category.allowNegative ? [discountedPriceMin, discountedPriceMax] : [Math.max(discountedPriceMin, 0), Math.max(discountedPriceMax, 0)];
67
- categoryPrice.map((price) => Math.max(category.discount && category.discount < 1 ? price * category.discount : price - (category.discount ?? 0), 0));
68
- return {
69
- categoryPrice,
70
- discountedPrice
71
- };
75
+ categoryPrice.map(
76
+ (price) => Math.max(
77
+ category.discount && category.discount <= 1 ? price * category.discount : price - (category.discount ?? 0),
78
+ 0
79
+ )
80
+ );
81
+ return { categoryPrice, discountedPrice };
72
82
  };
73
- const DisplayPrice = ({
74
- price,
75
- beforeOrAfter
76
- }) => {
77
- const {
83
+ const DisplayPrice = ({ price, beforeOrAfter }) => {
84
+ const { localeFormat, currency, fractionDigits } = useContext(OrderSummaryContext);
85
+ const withDiscount = beforeOrAfter === "after" ? "WithDiscount" : "";
86
+ return price.totalPrice === price.maxPrice ? formatNumber(
87
+ price[`totalPrice${withDiscount}`],
78
88
  localeFormat,
79
89
  currency,
80
- fractionDigits
81
- } = useContext(OrderSummaryContext);
82
- const withDiscount = beforeOrAfter === "after" ? "WithDiscount" : "";
83
- return price.totalPrice === price.maxPrice ? formatNumber(price[`totalPrice${withDiscount}`], localeFormat, currency, fractionDigits ?? 2) : `${formatNumber(price[`totalPrice${withDiscount}`], localeFormat, currency, fractionDigits ?? 2)} - ${formatNumber(price[`maxPrice${withDiscount}`], localeFormat, currency, fractionDigits ?? 2)}`;
90
+ fractionDigits ?? 2
91
+ ) : `${formatNumber(
92
+ price[`totalPrice${withDiscount}`],
93
+ localeFormat,
94
+ currency,
95
+ fractionDigits ?? 2
96
+ )} - ${formatNumber(
97
+ price[`maxPrice${withDiscount}`],
98
+ localeFormat,
99
+ currency,
100
+ fractionDigits ?? 2
101
+ )}`;
84
102
  };
85
103
  export {
86
104
  DisplayPrice,
@@ -1,2 +1,2 @@
1
1
  import type { OrderSummaryProps } from './types';
2
- export declare const OrderSummary: ({ header, hideTimeUnit, periodOptions, valueUnitInput, unitUnitInput, items, locales, currency, localeFormat, footer, children, discount, totalPriceInfo, fractionDigits, hideDetails, onChange, onChangeUnitInput, totalPriceDescription, additionalInfo, className, "data-testid": dataTestId, }: OrderSummaryProps) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export declare const OrderSummary: ({ header, hideTimeUnit, periodOptions, valueUnitInput, unitUnitInput, items, locales, currency, localeFormat, footer, children, discount, totalPriceInfo, fractionDigits, hideDetails, onChange, onChangeUnitInput, totalPriceDescription, additionalInfo, className, totalPriceInfoPlacement, hideBeforePrice, "data-testid": dataTestId, style, priceInformation, }: OrderSummaryProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
- import { jsx, jsxs } from "@emotion/react/jsx-runtime";
2
- import _styled from "@emotion/styled/base";
3
- import { Text, UnitInput, Stack } from "@ultraviolet/ui";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Stack, Text, UnitInput } from "@ultraviolet/ui";
4
3
  import { useState, useMemo, useEffect } from "react";
5
4
  import { Units } from "./constants.js";
6
5
  import { calculateCategoryPrice } from "./helpers.js";
@@ -8,38 +7,7 @@ import orderSummaryLocales from "./locales/en.js";
8
7
  import { NonScrollableContent } from "./NonScrollableContent.js";
9
8
  import { OrderSummaryContext } from "./Provider.js";
10
9
  import { ScrollableContent } from "./ScrollableContent.js";
11
- const Container = /* @__PURE__ */ _styled(Stack, process.env.NODE_ENV === "production" ? {
12
- target: "e14yhwy32"
13
- } : {
14
- target: "e14yhwy32",
15
- label: "Container"
16
- })("background-color:", ({
17
- theme
18
- }) => theme.colors.neutral.backgroundWeak, ";height:100%;min-width:20rem;@media (min-width: ", ({
19
- theme
20
- }) => theme.breakpoints.large, "){min-width:27.5rem;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvT3JkZXJTdW1tYXJ5L2luZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFXK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InNwYWNlLWJldHdlZW5cIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxUZXh0XG4gICAgICAgICAgICAgIGFzPVwiaDNcIlxuICAgICAgICAgICAgICBwcm9taW5lbmNlPVwic3Ryb25nXCJcbiAgICAgICAgICAgICAgc2VudGltZW50PVwibmV1dHJhbFwiXG4gICAgICAgICAgICAgIHZhcmlhbnQ9XCJoZWFkaW5nU21hbGxTdHJvbmdcIlxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICB7aGVhZGVyfVxuICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICAgeyFoaWRlVGltZVVuaXQgJiYgIWhpZGVEZXRhaWxzID8gKFxuICAgICAgICAgICAgICA8U3R5bGVkU3RhY2s+XG4gICAgICAgICAgICAgICAgPFVuaXRJbnB1dFxuICAgICAgICAgICAgICAgICAgZHJvcGRvd25BbGlnbj1cImNlbnRlclwiXG4gICAgICAgICAgICAgICAgICBvbkNoYW5nZT17dmFsdWUgPT4ge1xuICAgICAgICAgICAgICAgICAgICBzZXRUaW1lUGVyaW9kQW1vdW50KHZhbHVlKVxuICAgICAgICAgICAgICAgICAgfX1cbiAgICAgICAgICAgICAgICAgIG9uQ2hhbmdlVW5pdFZhbHVlPXsodmFsOiBzdHJpbmcpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgc2V0VGltZVBlcmlvZFVuaXQodmFsIGFzIFRpbWVVbml0KVxuICAgICAgICAgICAgICAgICAgICBvbkNoYW5nZVVuaXRJbnB1dD8uKHZhbClcbiAgICAgICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAgICAgICBvcHRpb25zPXtjb21wdXRlUGVyaW9kT3B0aW9uc31cbiAgICAgICAgICAgICAgICAgIHNlbGVjdElucHV0V2lkdGg9XCIxMDAlXCJcbiAgICAgICAgICAgICAgICAgIHNpemU9XCJzbWFsbFwiXG4gICAgICAgICAgICAgICAgICB0ZW1wbGF0ZUNvbHVtbnM9XCIyZnIgM2ZyXCJcbiAgICAgICAgICAgICAgICAgIHVuaXRWYWx1ZT17dW5pdFVuaXRJbnB1dH1cbiAgICAgICAgICAgICAgICAgIHZhbHVlPXt2YWx1ZVVuaXRJbnB1dH1cbiAgICAgICAgICAgICAgICAgIHdpZHRoPVwiMTU1cHhcIlxuICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgIDwvU3R5bGVkU3RhY2s+XG4gICAgICAgICAgICApIDogbnVsbH1cbiAgICAgICAgICA8L0hlYWRlckNvbnRhaW5lcj5cbiAgICAgICAgKSA6IG51bGx9XG4gICAgICAgIHshaGlkZURldGFpbHMgPyA8U2Nyb2xsYWJsZUNvbnRlbnQgLz4gOiBudWxsfVxuICAgICAgICA8Tm9uU2Nyb2xsYWJsZUNvbnRlbnRcbiAgICAgICAgICBhZGRpdGlvbmFsSW5mbz17YWRkaXRpb25hbEluZm99XG4gICAgICAgICAgZGlzY291bnQ9e2Rpc2NvdW50fVxuICAgICAgICAgIGZvb3Rlcj17Zm9vdGVyfVxuICAgICAgICAgIGhpZGVEZXRhaWxzPXtoaWRlRGV0YWlsc31cbiAgICAgICAgICB0b3RhbFByaWNlPXt0b3RhbFByaWNlfVxuICAgICAgICAgIHRvdGFsUHJpY2VEZXNjcmlwdGlvbj17dG90YWxQcmljZURlc2NyaXB0aW9ufVxuICAgICAgICAgIHRvdGFsUHJpY2VJbmZvPXt0b3RhbFByaWNlSW5mb31cbiAgICAgICAgICB1bml0PXt1bml0VW5pdElucHV0fVxuICAgICAgICA+XG4gICAgICAgICAge2NoaWxkcmVufVxuICAgICAgICA8L05vblNjcm9sbGFibGVDb250ZW50PlxuICAgICAgPC9Db250YWluZXI+XG4gICAgPC9PcmRlclN1bW1hcnlDb250ZXh0LlByb3ZpZGVyPlxuICApXG59XG4iXX0= */"));
21
- const HeaderContainer = /* @__PURE__ */ _styled(Stack, process.env.NODE_ENV === "production" ? {
22
- target: "e14yhwy31"
23
- } : {
24
- target: "e14yhwy31",
25
- label: "HeaderContainer"
26
- })("height:", ({
27
- theme
28
- }) => theme.sizing[900], ";padding:", ({
29
- theme
30
- }) => theme.space[3], ";padding-bottom:", ({
31
- theme
32
- }) => theme.space[2], ';&[data-hidedetails="false"]{border-bottom:1px solid ', ({
33
- theme
34
- }) => theme.colors.neutral.border, ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvT3JkZXJTdW1tYXJ5L2luZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFxQnNFIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvT3JkZXJTdW1tYXJ5L2luZGV4LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHsgU3RhY2ssIFRleHQsIFVuaXRJbnB1dCB9IGZyb20gJ0B1bHRyYXZpb2xldC91aSdcbmltcG9ydCB7IHVzZUVmZmVjdCwgdXNlTWVtbywgdXNlU3RhdGUgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IFVuaXRzIH0gZnJvbSAnLi9jb25zdGFudHMnXG5pbXBvcnQgeyBjYWxjdWxhdGVDYXRlZ29yeVByaWNlIH0gZnJvbSAnLi9oZWxwZXJzJ1xuaW1wb3J0IG9yZGVyU3VtbWFyeUxvY2FsZXMgZnJvbSAnLi9sb2NhbGVzL2VuJ1xuaW1wb3J0IHsgTm9uU2Nyb2xsYWJsZUNvbnRlbnQgfSBmcm9tICcuL05vblNjcm9sbGFibGVDb250ZW50J1xuaW1wb3J0IHsgT3JkZXJTdW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2MsIGNhdGVnb3J5KSA9PiB7XG4gICAgICAgIGNvbnN0IHsgY2F0ZWdvcnlQcmljZSwgZGlzY291bnRlZFByaWNlIH0gPSBjYWxjdWxhdGVDYXRlZ29yeVByaWNlKFxuICAgICAgICAgIGNhdGVnb3J5LFxuICAgICAgICAgIGhpZGVUaW1lVW5pdCxcbiAgICAgICAgICB0aW1lUGVyaW9kQW1vdW50LFxuICAgICAgICAgIHRpbWVQZXJpb2RVbml0LFxuICAgICAgICApXG5cbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAuLi5hY2MsXG4gICAgICAgICAgW2NhdGVnb3J5LmNhdGVnb3J5XToge1xuICAgICAgICAgICAgbWF4UHJpY2U6IGNhdGVnb3J5UHJpY2VbMV0sXG4gICAgICAgICAgICBtYXhQcmljZVdpdGhEaXNjb3VudDogZGlzY291bnRlZFByaWNlWzFdLFxuICAgICAgICAgICAgdGltZVVuaXQ6IHVuaXRVbml0SW5wdXQsXG4gICAgICAgICAgICB0b3RhbFByaWNlOiBjYXRlZ29yeVByaWNlWzBdLFxuICAgICAgICAgICAgdG90YWxQcmljZVdpdGhEaXNjb3VudDogZGlzY291bnRlZFByaWNlWzBdLFxuICAgICAgICAgIH0sXG4gICAgICAgIH1cbiAgICAgIH0sIHt9KSxcbiAgICBbaGlkZVRpbWVVbml0LCBpdGVtcywgdGltZVBlcmlvZEFtb3VudCwgdGltZVBlcmlvZFVuaXQsIHVuaXRVbml0SW5wdXRdLFxuICApXG5cbiAgY29uc3QgdG90YWxQcmljZSA9IHVzZU1lbW8oKCkgPT4ge1xuICAgIGNvbnN0IHByaWNlID0gT2JqZWN0LnZhbHVlcyhjYXRlZ29yaWVzUHJpY2UpLnJlZHVjZTxbbnVtYmVyLCBudW1iZXJdPihcbiAgICAgIChhY2MsIGNhdGVnb3J5UHJpY2UpID0+IFtcbiAgICAgICAgYWNjWzBdICsgY2F0ZWdvcnlQcmljZS50b3RhbFByaWNlV2l0aERpc2NvdW50LFxuICAgICAgICBhY2NbMV0gKyBjYXRlZ29yeVByaWNlLm1heFByaWNlV2l0aERpc2NvdW50LFxuICAgICAgXSxcbiAgICAgIFswLCAwXSxcbiAgICApXG5cbiAgICBjb25zdCBjb21wdXRlZFByaWNlID0ge1xuICAgICAgbWF4UHJpY2U6IE1hdGgubWF4KHByaWNlWzFdLCAwKSxcbiAgICAgIG1heFByaWNlV2l0aERpc2NvdW50OiBNYXRoLm1heChcbiAgICAgICAgcHJpY2VbMV0gKiAoZGlzY291bnQgPCAxID8gMSAtIGRpc2NvdW50IDogMSkgLVxuICAgICAgICAgIChkaXNjb3VudCA+PSAxID8gTWF0aC5hYnMoZGlzY291bnQpIDogMCksXG4gICAgICAgIDAsXG4gICAgICApLFxuICAgICAgdGltZVVuaXQ6IHVuaXRVbml0SW5wdXQsXG4gICAgICB0b3RhbFByaWNlOiBNYXRoLm1heChwcmljZVswXSwgMCksXG4gICAgICB0b3RhbFByaWNlV2l0aERpc2NvdW50OiBNYXRoLm1heChcbiAgICAgICAgcHJpY2VbMF0gKiAoZGlzY291bnQgPCAxID8gMSAtIGRpc2NvdW50IDogMSkgLVxuICAgICAgICAgIChkaXNjb3VudCA+PSAxID8gTWF0aC5hYnMoZGlzY291bnQpIDogMCksXG4gICAgICAgIDAsXG4gICAgICApLFxuICAgIH1cblxuICAgIHJldHVybiBjb21wdXRlZFByaWNlXG4gIH0sIFtjYXRlZ29yaWVzUHJpY2UsIGRpc2NvdW50LCB1bml0VW5pdElucHV0XSlcblxuICBjb25zdCB2YWx1ZUNvbnRleHQgPSB1c2VNZW1vKFxuICAgICgpID0+ICh7XG4gICAgICBjYXRlZ29yaWVzUHJpY2UsXG4gICAgICBjdXJyZW5jeSxcbiAgICAgIGZyYWN0aW9uRGlnaXRzLFxuICAgICAgaGlkZVRpbWVVbml0LFxuICAgICAgaXRlbXMsXG4gICAgICBsb2NhbGVGb3JtYXQsXG4gICAgICBsb2NhbGVzLFxuICAgICAgdGltZVBlcmlvZEFtb3VudCx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YWluZXJcbiAgICAgICAgY2xhc3NOYW1lPXtjbGFzc05hbWV9XG4gICAgICAgIGRhdGEtdGVzdElkPXtkYXRhVGVzdElkfVxuICAgICAgICBqdXN0aWZ5Q29udGVudD17aGlkZURldGFpbHMgPyAnZmxleC1zdGFydCcgOiAnc3BhY2UtYmV0d2Vlbid9XG4gICAgICA+XG4gICAgICAgIHtoZWFkZXIgPyAoXG4gICAgICAgICAgPEhlYWRlckNvbnRhaW5lclxuICAgICAgICAgICAgZGF0YS1oaWRlZGV0YWlscz17aGlkZURldGFpbHN9XG4gICAgICAgICAgICBkaXJlY3Rpb249XCJyb3dcIlxuICAgICAgICAgICAganVzdGlmeUNvbnRlbnQ9XCJzcGFjZS1iZXR3ZWVuXCJcbiAgICAgICAgICA+XG4gICAgICAgICAgICA8VGV4dFxuICAgICAgICAgICAgICBhcz1cImgzXCJcbiAgICAgICAgICAgICAgcHJvbWluZW5jZT1cInN0cm9uZ1wiXG4gICAgICAgICAgICAgIHNlbnRpbWVudD1cIm5ldXRyYWxcIlxuICAgICAgICAgICAgICB2YXJpYW50PVwiaGVhZGluZ1NtYWxsU3Ryb25nXCJcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAge2hlYWRlcn1cbiAgICAgICAgICAgIDwvVGV4dD5cbiAgICAgICAgICAgIHshaGlkZVRpbWVVbml0ICYmICFoaWRlRGV0YWlscyA/IChcbiAgICAgICAgICAgICAgPFN0eWxlZFN0YWNrPlxuICAgICAgICAgICAgICAgIDxVbml0SW5wdXRcbiAgICAgICAgICAgICAgICAgIGRyb3Bkb3duQWxpZ249XCJjZW50ZXJcIlxuICAgICAgICAgICAgICAgICAgb25DaGFuZ2U9e3ZhbHVlID0+IHtcbiAgICAgICAgICAgICAgICAgICAgc2V0VGltZVBlcmlvZEFtb3VudCh2YWx1ZSlcbiAgICAgICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAgICAgICBvbkNoYW5nZVVuaXRWYWx1ZT17KHZhbDogc3RyaW5nKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHNldFRpbWVQZXJpb2RVbml0KHZhbCBhcyBUaW1lVW5pdClcbiAgICAgICAgICAgICAgICAgICAgb25DaGFuZ2VVbml0SW5wdXQ/Lih2YWwpXG4gICAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICAgICAgb3B0aW9ucz17Y29tcHV0ZVBlcmlvZE9wdGlvbnN9XG4gICAgICAgICAgICAgICAgICBzZWxlY3RJbnB1dFdpZHRoPVwiMTAwJVwiXG4gICAgICAgICAgICAgICAgICBzaXplPVwic21hbGxcIlxuICAgICAgICAgICAgICAgICAgdGVtcGxhdGVDb2x1bW5zPVwiMmZyIDNmclwiXG4gICAgICAgICAgICAgICAgICB1bml0VmFsdWU9e3VuaXRVbml0SW5wdXR9XG4gICAgICAgICAgICAgICAgICB2YWx1ZT17dmFsdWVVbml0SW5wdXR9XG4gICAgICAgICAgICAgICAgICB3aWR0aD1cIjE1NXB4XCJcbiAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICA8L1N0eWxlZFN0YWNrPlxuICAgICAgICAgICAgKSA6IG51bGx9XG4gICAgICAgICAgPC9IZWFkZXJDb250YWluZXI+XG4gICAgICAgICkgOiBudWxsfVxuICAgICAgICB7IWhpZGVEZXRhaWxzID8gPFNjcm9sbGFibGVDb250ZW50IC8+IDogbnVsbH1cbiAgICAgICAgPE5vblNjcm9sbGFibGVDb250ZW50XG4gICAgICAgICAgYWRkaXRpb25hbEluZm89e2FkZGl0aW9uYWxJbmZvfVxuICAgICAgICAgIGRpc2NvdW50PXtkaXNjb3VudH1cbiAgICAgICAgICBmb290ZXI9e2Zvb3Rlcn1cbiAgICAgICAgICBoaWRlRGV0YWlscz17aGlkZURldGFpbHN9XG4gICAgICAgICAgdG90YWxQcmljZT17dG90YWxQcmljZX1cbiAgICAgICAgICB0b3RhbFByaWNlRGVzY3JpcHRpb249e3RvdGFsUHJpY2VEZXNjcmlwdGlvbn1cbiAgICAgICAgICB0b3RhbFByaWNlSW5mbz17dG90YWxQcmljZUluZm99XG4gICAgICAgICAgdW5pdD17dW5pdFVuaXRJbnB1dH1cbiAgICAgICAgPlxuICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgPC9Ob25TY3JvbGxhYmxlQ29udGVudD5cbiAgICAgIDwvQ29udGFpbmVyPlxuICAgIDwvT3JkZXJTdW1tYXJ5Q29udGV4dC5Qcm92aWRlcj5cbiAgKVxufVxuIl19 */"));
35
- const StyledStack = /* @__PURE__ */ _styled(Stack, process.env.NODE_ENV === "production" ? {
36
- target: "e14yhwy30"
37
- } : {
38
- target: "e14yhwy30",
39
- label: "StyledStack"
40
- })("background-color:", ({
41
- theme
42
- }) => theme.colors.neutral.background, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvT3JkZXJTdW1tYXJ5L2luZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE4QmlDIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvT3JkZXJTdW1tYXJ5L2luZGV4LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHsgU3RhY2ssIFRleHQsIFVuaXRJbnB1dCB9IGZyb20gJ0B1bHRyYXZpb2xldC91aSdcbmltcG9ydCB7IHVzZUVmZmVjdCwgdXNlTWVtbywgdXNlU3RhdGUgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IFVuaXRzIH0gZnJvbSAnLi9jb25zdGFud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QcmljZSA9IHVzZU1lbW8oKCkgPT4ge1xuICAgIGNvbnN0IHByaWNlID0gT2JqZWN0LnZhbHVlcyhjYXRlZ29yaWVzUHJpY2UpLnJlZHVjZTxbbnVtYmVyLCBudW1iZXJdPihcbiAgICAgIChhY2MsIGNhdGVnb3J5UHJpY2UpID0+IFtcbiAgICAgICAgYWNjWzBdICsgY2F0ZWdvcnlQcmljZS50b3RhbFByaWNlV2l0aERpc2NvdW50LFxuICAgICAgICBhY2NbMV0gKyBjYXRlZ29yeVByaWNlLm1heFByaWNlV2l0aERpc2NvdW50LFxuICAgICAgXSxcbiAgICAgIFswLCAwXSxcbiAgICApXG5cbiAgICBjb25zdCBjb21wdXRlZFByaWNlID0ge1xuICAgICAgbWF4UHJpY2U6IE1hdGgubWF4KHByaWNlWzFdLCAwKSxcbiAgICAgIG1heFByaWNlV2l0aERpc2NvdW50OiBNYXRoLm1heChcbiAgICAgICAgcHJpY2VbMV0gKiAoZGlzY291bnQgPCAxID8gMSAtIGRpc2NvdW50IDogMSkgLVxuICAgICAgICAgIChkaXNjb3VudCA+PSAxID8gTWF0aC5hYnMoZGlzY291bnQpIDogMCksXG4gICAgICAgIDAsXG4gICAgICApLFxuICAgICAgdGltZVVuaXQ6IHVuaXRVbml0SW5wdXQsXG4gICAgICB0b3RhbFByaWNlOiBNYXRoLm1heChwcmljZVswXSwgMCksXG4gICAgICB0b3RhbFByaWNlV2l0aERpc2NvdW50OiBNYXRoLm1heChcbiAgICAgICAgcHJpY2VbMF0gKiAoZGlzY291bnQgPCAxID8gMSAtIGRpc2NvdW50IDogMSkgLVxuICAgICAgICAgIChkaXNjb3VudCA+PSAxID8gTWF0aC5hYnMoZGlzY291bnQpIDogMCksXG4gICAgICAgIDAsXG4gICAgICApLFxuICAgIH1cblxuICAgIHJldHVybiBjb21wdXRlZFByaWNlXG4gIH0sIFtjYXRlZ29yaWVzUHJpY2UsIGRpc2NvdW50LCB1bml0VW5pdElucHV0XSlcblxuICBjb25zdCB2Y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mZlY3QoKCkgPT4ge1xuICAgIG9uQ2hhbmdlPy4oY2F0ZWdvcmllc1ByaWNlLCB0b3RhbFByaWNlKVxuICB9LCBbY2F0ZWdvcmllc1ByaWNlLCB0b3RhbFByaWNlLCBvbkNoYW5nZV0pXG5cbiAgcmV0dXJuIChcbiAgICA8T3JkZXJTdW1tYXJ5Q29udGV4dC5Qcm92aWRlciB2YWx1ZT17dmFsdWVDb250ZXh0fT5cbiAgICAgIDxDb250YWluZXJcbiAgICAgICAgY2xhc3NOYW1lPXtjbGFzc05hbWV9XG4gICAgICAgIGRhdGEtdGVzdElkPXtkYXRhVGVzdElkfVxuICAgICAgICBqdXN0aWZ5Q29udGVudD17aGlkZURldGFpbHMgPyAnZmxleC1zdGFydCcgOiAnc3BhY2UtYmV0d2Vlbid9XG4gICAgICA+XG4gICAgICAgIHtoZWFkZXIgPyAoXG4gICAgICAgICAgPEhlYWRlckNvbnRhaW5lclxuICAgICAgICAgICAgZGF0YS1oaWRlZGV0YWlscz17aGlkZURldGFpbHN9XG4gICAgICAgICAgICBkaXJlY3Rpb249XCJyb3dcIlxuICAgICAgICAgICAganVzdGlmeUNvbnRlbnQ9XCJzcGFjZS1iZXR3ZWVuXCJcbiAgICAgICAgICA+XG4gICAgICAgICAgICA8VGV4dFxuICAgICAgICAgICAgICBhcz1cImgzXCJcbiAgICAgICAgICAgICAgcHJvbWluZW5jZT1cInN0cm9uZ1wiXG4gICAgICAgICAgICAgIHNlbnRpbWVudD1cIm5ldXRyYWxcIlxuICAgICAgICAgICAgICB2YXJpYW50PVwiaGVhZGluZ1NtYWxsU3Ryb25nXCJcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAge2hlYWRlcn1cbiAgICAgICAgICAgIDwvVGV4dD5cbiAgICAgICAgICAgIHshaGlkZVRpbWVVbml0ICYmICFoaWRlRGV0YWlscyA/IChcbiAgICAgICAgICAgICAgPFN0eWxlZFN0YWNrPlxuICAgICAgICAgICAgICAgIDxVbml0SW5wdXRcbiAgICAgICAgICAgICAgICAgIGRyb3Bkb3duQWxpZ249XCJjZW50ZXJcIlxuICAgICAgICAgICAgICAgICAgb25DaGFuZ2U9e3ZhbHVlID0+IHtcbiAgICAgICAgICAgICAgICAgICAgc2V0VGltZVBlcmlvZEFtb3VudCh2YWx1ZSlcbiAgICAgICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAgICAgICBvbkNoYW5nZVVuaXRWYWx1ZT17KHZhbDogc3RyaW5nKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHNldFRpbWVQZXJpb2RVbml0KHZhbCBhcyBUaW1lVW5pdClcbiAgICAgICAgICAgICAgICAgICAgb25DaGFuZ2VVbml0SW5wdXQ/Lih2YWwpXG4gICAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICAgICAgb3B0aW9ucz17Y29tcHV0ZVBlcmlvZE9wdGlvbnN9XG4gICAgICAgICAgICAgICAgICBzZWxlY3RJbnB1dFdpZHRoPVwiMTAwJVwiXG4gICAgICAgICAgICAgICAgICBzaXplPVwic21hbGxcIlxuICAgICAgICAgICAgICAgICAgdGVtcGxhdGVDb2x1bW5zPVwiMmZyIDNmclwiXG4gICAgICAgICAgICAgICAgICB1bml0VmFsdWU9e3VuaXRVbml0SW5wdXR9XG4gICAgICAgICAgICAgICAgICB2YWx1ZT17dmFsdWVVbml0SW5wdXR9XG4gICAgICAgICAgICAgICAgICB3aWR0aD1cIjE1NXB4XCJcbiAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICA8L1N0eWxlZFN0YWNrPlxuICAgICAgICAgICAgKSA6IG51bGx9XG4gICAgICAgICAgPC9IZWFkZXJDb250YWluZXI+XG4gICAgICAgICkgOiBudWxsfVxuICAgICAgICB7IWhpZGVEZXRhaWxzID8gPFNjcm9sbGFibGVDb250ZW50IC8+IDogbnVsbH1cbiAgICAgICAgPE5vblNjcm9sbGFibGVDb250ZW50XG4gICAgICAgICAgYWRkaXRpb25hbEluZm89e2FkZGl0aW9uYWxJbmZvfVxuICAgICAgICAgIGRpc2NvdW50PXtkaXNjb3VudH1cbiAgICAgICAgICBmb290ZXI9e2Zvb3Rlcn1cbiAgICAgICAgICBoaWRlRGV0YWlscz17aGlkZURldGFpbHN9XG4gICAgICAgICAgdG90YWxQcmljZT17dG90YWxQcmljZX1cbiAgICAgICAgICB0b3RhbFByaWNlRGVzY3JpcHRpb249e3RvdGFsUHJpY2VEZXNjcmlwdGlvbn1cbiAgICAgICAgICB0b3RhbFByaWNlSW5mbz17dG90YWxQcmljZUluZm99XG4gICAgICAgICAgdW5pdD17dW5pdFVuaXRJbnB1dH1cbiAgICAgICAgPlxuICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgPC9Ob25TY3JvbGxhYmxlQ29udGVudD5cbiAgICAgIDwvQ29udGFpbmVyPlxuICAgIDwvT3JkZXJTdW1tYXJ5Q29udGV4dC5Qcm92aWRlcj5cbiAgKVxufVxuIl19 */"));
10
+ import { orderSummaryContainer, orderSummaryHeaderContainer, orderSummaryStackBackground } from "./styles.css.js";
43
11
  const OrderSummary = ({
44
12
  header,
45
13
  hideTimeUnit = false,
@@ -61,72 +29,166 @@ const OrderSummary = ({
61
29
  totalPriceDescription,
62
30
  additionalInfo,
63
31
  className,
64
- "data-testid": dataTestId
32
+ totalPriceInfoPlacement = "left",
33
+ hideBeforePrice = false,
34
+ "data-testid": dataTestId,
35
+ style,
36
+ priceInformation
65
37
  }) => {
66
38
  const [timePeriodUnit, setTimePeriodUnit] = useState(unitUnitInput);
67
39
  const [timePeriodAmount, setTimePeriodAmount] = useState(valueUnitInput);
68
- const categoriesPrice = useMemo(() => items.reduce((acc, category) => {
69
- const {
70
- categoryPrice,
71
- discountedPrice
72
- } = calculateCategoryPrice(category, hideTimeUnit, timePeriodAmount, timePeriodUnit);
73
- return {
74
- ...acc,
75
- [category.category]: {
76
- maxPrice: categoryPrice[1],
77
- maxPriceWithDiscount: discountedPrice[1],
78
- timeUnit: unitUnitInput,
79
- totalPrice: categoryPrice[0],
80
- totalPriceWithDiscount: discountedPrice[0]
81
- }
82
- };
83
- }, {}), [hideTimeUnit, items, timePeriodAmount, timePeriodUnit, unitUnitInput]);
40
+ const categoriesPrice = useMemo(
41
+ () => items.reduce((acc, category) => {
42
+ const { categoryPrice, discountedPrice } = calculateCategoryPrice(
43
+ category,
44
+ hideTimeUnit,
45
+ timePeriodAmount,
46
+ timePeriodUnit
47
+ );
48
+ return {
49
+ ...acc,
50
+ [category.category]: {
51
+ maxPrice: categoryPrice[1],
52
+ maxPriceWithDiscount: discountedPrice[1],
53
+ timeUnit: unitUnitInput,
54
+ totalPrice: categoryPrice[0],
55
+ totalPriceWithDiscount: discountedPrice[0]
56
+ }
57
+ };
58
+ }, {}),
59
+ [hideTimeUnit, items, timePeriodAmount, timePeriodUnit, unitUnitInput]
60
+ );
84
61
  const totalPrice = useMemo(() => {
85
- const price = Object.values(categoriesPrice).reduce((acc, categoryPrice) => [acc[0] + categoryPrice.totalPriceWithDiscount, acc[1] + categoryPrice.maxPriceWithDiscount], [0, 0]);
62
+ const price = Object.values(categoriesPrice).reduce(
63
+ (acc, categoryPrice) => [
64
+ acc[0] + categoryPrice.totalPriceWithDiscount,
65
+ acc[1] + categoryPrice.maxPriceWithDiscount
66
+ ],
67
+ [0, 0]
68
+ );
86
69
  const computedPrice = {
87
70
  maxPrice: Math.max(price[1], 0),
88
- maxPriceWithDiscount: Math.max(price[1] * (discount < 1 ? 1 - discount : 1) - (discount >= 1 ? Math.abs(discount) : 0), 0),
71
+ maxPriceWithDiscount: Math.max(
72
+ price[1] * (discount <= 1 ? 1 - discount : 1) - (discount > 1 ? Math.abs(discount) : 0),
73
+ 0
74
+ ),
89
75
  timeUnit: unitUnitInput,
90
76
  totalPrice: Math.max(price[0], 0),
91
- totalPriceWithDiscount: Math.max(price[0] * (discount < 1 ? 1 - discount : 1) - (discount >= 1 ? Math.abs(discount) : 0), 0)
77
+ totalPriceWithDiscount: Math.max(
78
+ price[0] * (discount <= 1 ? 1 - discount : 1) - (discount > 1 ? Math.abs(discount) : 0),
79
+ 0
80
+ )
92
81
  };
93
82
  return computedPrice;
94
83
  }, [categoriesPrice, discount, unitUnitInput]);
95
- const valueContext = useMemo(() => ({
96
- categoriesPrice,
97
- currency,
98
- fractionDigits,
99
- hideTimeUnit,
100
- items,
101
- localeFormat,
102
- locales,
103
- timePeriodAmount,
104
- timePeriodUnit
105
- }), [currency, localeFormat, items, categoriesPrice, hideTimeUnit, timePeriodUnit, timePeriodAmount, locales, fractionDigits]);
84
+ const valueContext = useMemo(
85
+ () => ({
86
+ categoriesPrice,
87
+ currency,
88
+ fractionDigits,
89
+ hideTimeUnit,
90
+ items,
91
+ localeFormat,
92
+ locales,
93
+ timePeriodAmount,
94
+ timePeriodUnit
95
+ }),
96
+ [
97
+ currency,
98
+ localeFormat,
99
+ items,
100
+ categoriesPrice,
101
+ hideTimeUnit,
102
+ timePeriodUnit,
103
+ timePeriodAmount,
104
+ locales,
105
+ fractionDigits
106
+ ]
107
+ );
106
108
  const computePeriodOptions = useMemo(() => {
107
109
  const computedPeriodOptions = [];
108
- periodOptions.forEach((option) => computedPeriodOptions.push({
109
- label: locales[`order.summary.units.${option}.label`],
110
- value: option
111
- }));
110
+ periodOptions.forEach(
111
+ (option) => computedPeriodOptions.push({
112
+ label: locales[`order.summary.units.${option}.label`],
113
+ value: option
114
+ })
115
+ );
112
116
  return computedPeriodOptions;
113
117
  }, [periodOptions, locales]);
114
118
  useEffect(() => {
115
119
  onChange?.(categoriesPrice, totalPrice);
116
120
  }, [categoriesPrice, totalPrice, onChange]);
117
- return /* @__PURE__ */ jsx(OrderSummaryContext.Provider, { value: valueContext, children: /* @__PURE__ */ jsxs(Container, { className, "data-testId": dataTestId, justifyContent: hideDetails ? "flex-start" : "space-between", children: [
118
- header ? /* @__PURE__ */ jsxs(HeaderContainer, { "data-hidedetails": hideDetails, direction: "row", justifyContent: "space-between", children: [
119
- /* @__PURE__ */ jsx(Text, { as: "h3", prominence: "strong", sentiment: "neutral", variant: "headingSmallStrong", children: header }),
120
- !hideTimeUnit && !hideDetails ? /* @__PURE__ */ jsx(StyledStack, { children: /* @__PURE__ */ jsx(UnitInput, { dropdownAlign: "center", onChange: (value) => {
121
- setTimePeriodAmount(value);
122
- }, onChangeUnitValue: (val) => {
123
- setTimePeriodUnit(val);
124
- onChangeUnitInput?.(val);
125
- }, options: computePeriodOptions, selectInputWidth: "100%", size: "small", templateColumns: "2fr 3fr", unitValue: unitUnitInput, value: valueUnitInput, width: "155px" }) }) : null
126
- ] }) : null,
127
- !hideDetails ? /* @__PURE__ */ jsx(ScrollableContent, {}) : null,
128
- /* @__PURE__ */ jsx(NonScrollableContent, { additionalInfo, discount, footer, hideDetails, totalPrice, totalPriceDescription, totalPriceInfo, unit: unitUnitInput, children })
129
- ] }) });
121
+ return /* @__PURE__ */ jsx(OrderSummaryContext.Provider, { value: valueContext, children: /* @__PURE__ */ jsxs(
122
+ Stack,
123
+ {
124
+ className: `${className ? `${className} ` : ""}${orderSummaryContainer}`,
125
+ "data-testId": dataTestId,
126
+ justifyContent: hideDetails ? "flex-start" : "space-between",
127
+ style,
128
+ children: [
129
+ header ? /* @__PURE__ */ jsxs(
130
+ Stack,
131
+ {
132
+ alignItems: "center",
133
+ className: orderSummaryHeaderContainer[hideDetails ? "hideDetails" : "showDetails"],
134
+ direction: "row",
135
+ gap: 2,
136
+ justifyContent: "space-between",
137
+ children: [
138
+ /* @__PURE__ */ jsx(
139
+ Text,
140
+ {
141
+ as: "h3",
142
+ prominence: "strong",
143
+ sentiment: "neutral",
144
+ variant: "headingSmallStrong",
145
+ children: header
146
+ }
147
+ ),
148
+ !hideTimeUnit && !hideDetails ? /* @__PURE__ */ jsx(Stack, { className: orderSummaryStackBackground, children: /* @__PURE__ */ jsx(
149
+ UnitInput,
150
+ {
151
+ dropdownAlign: "center",
152
+ maxWidth: "200px",
153
+ onChange: (value) => {
154
+ setTimePeriodAmount(value);
155
+ },
156
+ onChangeUnitValue: (val) => {
157
+ setTimePeriodUnit(val);
158
+ onChangeUnitInput?.(val);
159
+ },
160
+ options: computePeriodOptions,
161
+ selectInputWidth: "100%",
162
+ size: "small",
163
+ templateColumns: "2fr 3fr",
164
+ unitValue: unitUnitInput,
165
+ value: valueUnitInput
166
+ }
167
+ ) }) : null
168
+ ]
169
+ }
170
+ ) : null,
171
+ !hideDetails ? /* @__PURE__ */ jsx(ScrollableContent, {}) : null,
172
+ /* @__PURE__ */ jsx(
173
+ NonScrollableContent,
174
+ {
175
+ additionalInfo,
176
+ discount,
177
+ footer,
178
+ hideBeforePrice,
179
+ hideDetails,
180
+ priceInformation,
181
+ totalPrice,
182
+ totalPriceDescription,
183
+ totalPriceInfo,
184
+ totalPriceInfoPlacement,
185
+ unit: unitUnitInput,
186
+ children
187
+ }
188
+ )
189
+ ]
190
+ }
191
+ ) });
130
192
  };
131
193
  export {
132
194
  OrderSummary
@@ -0,0 +1,19 @@
1
+ export declare const orderSummaryContainer: string;
2
+ export declare const orderSummaryHeaderContainer: Record<"hideDetails" | "showDetails", string>;
3
+ export declare const orderSummaryStackBackground: string;
4
+ export declare const orderSummaryNonScrollableContainer: string;
5
+ export declare const orderSummaryNumberInput: string;
6
+ export declare const orderSummaryScrollableContainer: string;
7
+ export declare const orderSummaryDetails: string;
8
+ export declare const orderSummaryCategory: string;
9
+ export declare const orderSummaryAnchor: string;
10
+ export declare const orderSummaryAnchorIcon: import("@vanilla-extract/recipes").RuntimeFn<{
11
+ size: {
12
+ small: {
13
+ marginTop: `var(--${string})`;
14
+ };
15
+ medium: {
16
+ marginTop: `var(--${string})`;
17
+ };
18
+ };
19
+ }>;
@@ -0,0 +1,24 @@
1
+ /* empty css */
2
+ import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
3
+ var orderSummaryContainer = "uv_plus_1q5g1ma0";
4
+ var orderSummaryHeaderContainer = { hideDetails: "uv_plus_1q5g1ma2 uv_plus_1q5g1ma1", showDetails: "uv_plus_1q5g1ma3 uv_plus_1q5g1ma1" };
5
+ var orderSummaryStackBackground = "uv_plus_1q5g1ma4";
6
+ var orderSummaryNonScrollableContainer = "uv_plus_1q5g1ma5";
7
+ var orderSummaryNumberInput = "uv_plus_1q5g1ma6";
8
+ var orderSummaryScrollableContainer = "uv_plus_1q5g1ma7";
9
+ var orderSummaryDetails = "uv_plus_1q5g1ma8";
10
+ var orderSummaryCategory = "uv_plus_1q5g1ma9";
11
+ var orderSummaryAnchor = "uv_plus_1q5g1maa";
12
+ var orderSummaryAnchorIcon = createRuntimeFn({ defaultClassName: "uv_plus_1q5g1mab", variantClassNames: { size: { small: "uv_plus_1q5g1mac", medium: "uv_plus_1q5g1mad" } }, defaultVariants: {}, compoundVariants: [] });
13
+ export {
14
+ orderSummaryAnchor,
15
+ orderSummaryAnchorIcon,
16
+ orderSummaryCategory,
17
+ orderSummaryContainer,
18
+ orderSummaryDetails,
19
+ orderSummaryHeaderContainer,
20
+ orderSummaryNonScrollableContainer,
21
+ orderSummaryNumberInput,
22
+ orderSummaryScrollableContainer,
23
+ orderSummaryStackBackground
24
+ };
@@ -1,5 +1,5 @@
1
1
  import type { UnitInput } from '@ultraviolet/ui';
2
- import type { ComponentProps, ReactNode } from 'react';
2
+ import type { ComponentProps, CSSProperties, ReactNode } from 'react';
3
3
  import type orderSummaryLocales from './locales/en';
4
4
  export type TimeUnit = 'seconds' | 'minutes' | 'hours' | 'days' | 'months';
5
5
  type PeriodProps = {
@@ -39,12 +39,13 @@ export type PriceTypeSingle = {
39
39
  export type PriceType = Record<string, PriceTypeSingle>;
40
40
  export type SubCategoryType = {
41
41
  title?: string;
42
+ icon?: ReactNode;
42
43
  additionalInfo?: ReactNode;
43
44
  price?: number;
44
45
  /**
45
46
  * List of elements to be displayed in the subcategory
46
47
  */
47
- details?: string[];
48
+ details?: ReactNode[];
48
49
  discount?: number;
49
50
  amount?: number[] | number;
50
51
  amountFree?: number;
@@ -64,10 +65,13 @@ export type SubCategoryType = {
64
65
  * Custom content to display next to the price
65
66
  */
66
67
  customContent?: ReactNode;
68
+ anchor?: string;
67
69
  } & NumberInputType;
68
70
  export type ItemsType = {
69
71
  category: string;
70
72
  additionalInfo?: ReactNode;
73
+ /** Information to add beneath the catecgory name */
74
+ subTitle?: ReactNode;
71
75
  subCategories?: SubCategoryType[];
72
76
  discount?: number;
73
77
  /**
@@ -78,6 +82,7 @@ export type ItemsType = {
78
82
  * Whether the category price can be < 0 (e.g coupons)
79
83
  */
80
84
  allowNegative?: boolean;
85
+ anchor?: string;
81
86
  } & NumberInputType;
82
87
  export type CurrencyType = 'EUR';
83
88
  export type LocalesFormatType = Intl.LocalesArgument;
@@ -97,8 +102,11 @@ export type OrderSummaryProps = {
97
102
  footer?: ReactNode;
98
103
  children?: ReactNode;
99
104
  totalPriceInfo?: ReactNode;
105
+ totalPriceInfoPlacement?: 'left' | 'right';
100
106
  totalPriceDescription?: ReactNode;
101
107
  additionalInfo?: string;
108
+ priceInformation?: ReactNode;
109
+ hideBeforePrice?: boolean;
102
110
  /**
103
111
  * Number of fraction digit to display in the price details
104
112
  */
@@ -111,5 +119,6 @@ export type OrderSummaryProps = {
111
119
  hideDetails?: boolean;
112
120
  className?: string;
113
121
  ['data-testid']?: string;
122
+ style?: CSSProperties;
114
123
  } & PeriodProps;
115
124
  export {};
@@ -2,5 +2,5 @@ import type { Hint } from './types';
2
2
  type FeatureHintProps = {
3
3
  hint?: Hint;
4
4
  };
5
- export declare const FeatureHint: ({ hint }: FeatureHintProps) => import("@emotion/react/jsx-runtime").JSX.Element;
5
+ export declare const FeatureHint: ({ hint }: FeatureHintProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export {};
@@ -1,27 +1,9 @@
1
- import { jsx } from "@emotion/react/jsx-runtime";
2
- import _styled from "@emotion/styled/base";
1
+ import { jsx } from "react/jsx-runtime";
3
2
  import { InformationOutlineIcon } from "@ultraviolet/icons";
4
3
  import { Tooltip, Popover } from "@ultraviolet/ui";
5
4
  import { useState } from "react";
6
- function _EMOTION_STRINGIFIED_CSS_ERROR__() {
7
- 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).";
8
- }
9
- const IconWrapper = /* @__PURE__ */ _styled("div", process.env.NODE_ENV === "production" ? {
10
- target: "edqjxph0"
11
- } : {
12
- target: "edqjxph0",
13
- label: "IconWrapper"
14
- })(process.env.NODE_ENV === "production" ? {
15
- name: "e0dnmk",
16
- styles: "cursor:pointer"
17
- } : {
18
- name: "e0dnmk",
19
- styles: "cursor:pointer/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvUGxhbnMvRmVhdHVyZUhpbnQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVU4QiIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb2xldC9wYWNrYWdlcy9wbHVzL3NyYy9jb21wb25lbnRzL1BsYW5zL0ZlYXR1cmVIaW50LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHsgSW5mb3JtYXRpb25PdXRsaW5lSWNvbiB9IGZyb20gJ0B1bHRyYXZpb2xldC9pY29ucydcbmltcG9ydCB7IFBvcG92ZXIsIFRvb2x0aXAgfSBmcm9tICdAdWx0cmF2aW9sZXQvdWknXG5pbXBvcnQgeyB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHR5cGUgeyBIaW50IH0gZnJvbSAnLi90eXBlcydcblxudHlwZSBGZWF0dXJlSGludFByb3BzID0ge1xuICBoaW50PzogSGludFxufVxuXG5jb25zdCBJY29uV3JhcHBlciA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gICAgPlxuICAgICAgICA8SW5mb3JtYXRpb25PdXRsaW5lSWNvbiBwcm9taW5lbmNlPVwid2Vha1wiIHNlbnRpbWVudD1cIm5ldXRyYWxcIiAvPlxuICAgICAgPC9JY29uV3JhcHBlcj5cbiAgICA8L1BvcG92ZXI+XG4gIClcbn1cbiJdfQ== */",
20
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
21
- });
22
- const FeatureHint = ({
23
- hint
24
- }) => {
5
+ import { plansIconWrapper } from "./styles.css.js";
6
+ const FeatureHint = ({ hint }) => {
25
7
  const [visible, setVisible] = useState(false);
26
8
  if (!hint) {
27
9
  return /* @__PURE__ */ jsx("div", {});
@@ -29,11 +11,31 @@ const FeatureHint = ({
29
11
  if (hint.type === "tooltip") {
30
12
  return /* @__PURE__ */ jsx(Tooltip, { text: hint.text, children: /* @__PURE__ */ jsx(InformationOutlineIcon, { prominence: "weak", sentiment: "neutral" }) });
31
13
  }
32
- return /* @__PURE__ */ jsx(Popover, { content: hint.content, onClose: () => setVisible(false), title: hint.title, visible, children: /* @__PURE__ */ jsx(IconWrapper, { "data-testid": "hint-popover", onClick: () => setVisible(true), onKeyDown: (event) => {
33
- if (event.key === "Space" || event.key === "Enter") {
34
- setVisible(true);
14
+ return /* @__PURE__ */ jsx(
15
+ Popover,
16
+ {
17
+ content: hint.content,
18
+ onClose: () => setVisible(false),
19
+ title: hint.title,
20
+ visible,
21
+ children: /* @__PURE__ */ jsx(
22
+ "div",
23
+ {
24
+ className: plansIconWrapper,
25
+ "data-testid": "hint-popover",
26
+ onClick: () => setVisible(true),
27
+ onKeyDown: (event) => {
28
+ if (event.key === "Space" || event.key === "Enter") {
29
+ setVisible(true);
30
+ }
31
+ },
32
+ role: "button",
33
+ tabIndex: 0,
34
+ children: /* @__PURE__ */ jsx(InformationOutlineIcon, { prominence: "weak", sentiment: "neutral" })
35
+ }
36
+ )
35
37
  }
36
- }, role: "button", tabIndex: 0, children: /* @__PURE__ */ jsx(InformationOutlineIcon, { prominence: "weak", sentiment: "neutral" }) }) });
38
+ );
37
39
  };
38
40
  export {
39
41
  FeatureHint
@@ -9,5 +9,5 @@ type PlanHeaderProps = {
9
9
  disabled: boolean;
10
10
  locales?: Record<keyof typeof PlansLocales, string>;
11
11
  };
12
- export declare const PlanHeader: ({ fieldName, setFocusedPlan, onChange, currentPlanValue, plan, disabled, locales, }: PlanHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
12
+ export declare const PlanHeader: ({ fieldName, setFocusedPlan, onChange, currentPlanValue, plan, disabled, locales, }: PlanHeaderProps) => import("react/jsx-runtime").JSX.Element;
13
13
  export {};