@ultraviolet/plus 3.4.5 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/dist/.vite/license.md +3 -0
  2. package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/defineProperty.js +15 -0
  3. package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js +28 -0
  4. package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js +18 -0
  5. package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutPropertiesLoose.js +15 -0
  6. package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/toPrimitive.js +17 -0
  7. package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/toPropertyKey.js +12 -0
  8. package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/typeof.js +14 -0
  9. package/dist/_virtual/_rolldown/runtime.js +9 -0
  10. package/dist/components/CodeEditor/CodeEditor.d.ts +1 -1
  11. package/dist/components/CodeEditor/CodeEditor.d.ts.map +1 -1
  12. package/dist/components/CodeEditor/CodeEditor.js +111 -137
  13. package/dist/components/CodeEditor/styles.css.js +18 -15
  14. package/dist/components/ContentCard/Skeleton.d.ts.map +1 -1
  15. package/dist/components/ContentCard/Skeleton.js +31 -27
  16. package/dist/components/ContentCard/index.js +107 -140
  17. package/dist/components/ContentCard/styles.css.d.ts +1 -1
  18. package/dist/components/ContentCard/styles.css.js +24 -19
  19. package/dist/components/ContentCardGroup/Card.js +55 -69
  20. package/dist/components/ContentCardGroup/SkeletonCard.js +28 -14
  21. package/dist/components/ContentCardGroup/index.d.ts +7 -7
  22. package/dist/components/ContentCardGroup/index.js +20 -25
  23. package/dist/components/ContentCardGroup/styles.css.js +6 -11
  24. package/dist/components/Conversation/index.d.ts +29 -23
  25. package/dist/components/Conversation/index.d.ts.map +1 -1
  26. package/dist/components/Conversation/index.js +46 -48
  27. package/dist/components/Conversation/styles.css.js +18 -13
  28. package/dist/components/CustomerSatisfaction/assets/1-5.js +5 -0
  29. package/dist/components/CustomerSatisfaction/assets/1-5NB.js +5 -0
  30. package/dist/components/CustomerSatisfaction/assets/2-5.js +5 -0
  31. package/dist/components/CustomerSatisfaction/assets/2-5NB.js +5 -0
  32. package/dist/components/CustomerSatisfaction/assets/3-5.js +5 -0
  33. package/dist/components/CustomerSatisfaction/assets/3-5NB.js +5 -0
  34. package/dist/components/CustomerSatisfaction/assets/4-5.js +5 -0
  35. package/dist/components/CustomerSatisfaction/assets/4-5NB.js +5 -0
  36. package/dist/components/CustomerSatisfaction/assets/5-5.js +5 -0
  37. package/dist/components/CustomerSatisfaction/assets/5-5NB.js +5 -0
  38. package/dist/components/CustomerSatisfaction/index.d.ts +1 -1
  39. package/dist/components/CustomerSatisfaction/index.d.ts.map +1 -1
  40. package/dist/components/CustomerSatisfaction/index.js +85 -100
  41. package/dist/components/CustomerSatisfaction/styles.css.js +18 -6
  42. package/dist/components/EstimateCost/Components/CustomUnitInput.d.ts.map +1 -1
  43. package/dist/components/EstimateCost/Components/CustomUnitInput.js +39 -52
  44. package/dist/components/EstimateCost/Components/Item.d.ts.map +1 -1
  45. package/dist/components/EstimateCost/Components/Item.js +223 -323
  46. package/dist/components/EstimateCost/Components/LineThrough.d.ts.map +1 -1
  47. package/dist/components/EstimateCost/Components/LineThrough.js +16 -16
  48. package/dist/components/EstimateCost/Components/NumberInput.d.ts.map +1 -1
  49. package/dist/components/EstimateCost/Components/NumberInput.js +33 -37
  50. package/dist/components/EstimateCost/Components/Region.d.ts.map +1 -1
  51. package/dist/components/EstimateCost/Components/Region.js +34 -57
  52. package/dist/components/EstimateCost/Components/Regular.d.ts.map +1 -1
  53. package/dist/components/EstimateCost/Components/Regular.js +21 -26
  54. package/dist/components/EstimateCost/Components/Strong.d.ts.map +1 -1
  55. package/dist/components/EstimateCost/Components/Strong.js +14 -19
  56. package/dist/components/EstimateCost/Components/Unit.d.ts.map +1 -1
  57. package/dist/components/EstimateCost/Components/Unit.js +47 -40
  58. package/dist/components/EstimateCost/Components/Zone.d.ts.map +1 -1
  59. package/dist/components/EstimateCost/Components/Zone.js +33 -55
  60. package/dist/components/EstimateCost/Components/components.css.js +122 -86
  61. package/dist/components/EstimateCost/EstimateCost.d.ts +138 -121
  62. package/dist/components/EstimateCost/EstimateCost.d.ts.map +1 -1
  63. package/dist/components/EstimateCost/EstimateCost.js +79 -124
  64. package/dist/components/EstimateCost/EstimateCostContent.d.ts.map +1 -1
  65. package/dist/components/EstimateCost/EstimateCostContent.js +284 -394
  66. package/dist/components/EstimateCost/EstimateCostProvider.d.ts +1 -1
  67. package/dist/components/EstimateCost/EstimateCostProvider.d.ts.map +1 -1
  68. package/dist/components/EstimateCost/EstimateCostProvider.js +30 -37
  69. package/dist/components/EstimateCost/OverlayComponent.d.ts.map +1 -1
  70. package/dist/components/EstimateCost/OverlayComponent.js +95 -93
  71. package/dist/components/EstimateCost/OverlayContext.d.ts.map +1 -1
  72. package/dist/components/EstimateCost/OverlayContext.js +12 -10
  73. package/dist/components/EstimateCost/constants.js +19 -21
  74. package/dist/components/EstimateCost/helper.d.ts +2 -2
  75. package/dist/components/EstimateCost/helper.d.ts.map +1 -1
  76. package/dist/components/EstimateCost/helper.js +9 -14
  77. package/dist/components/EstimateCost/locales/en.js +24 -23
  78. package/dist/components/EstimateCost/styles.css.d.ts +2 -2
  79. package/dist/components/EstimateCost/styles.css.js +50 -36
  80. package/dist/components/EstimateCost/types.d.ts +1 -1
  81. package/dist/components/EstimateCost/types.d.ts.map +1 -1
  82. package/dist/components/FAQ/index.d.ts.map +1 -1
  83. package/dist/components/FAQ/index.js +37 -31
  84. package/dist/components/FAQ/styles.css.js +6 -4
  85. package/dist/components/InfoTable/InfoTable.d.ts +10 -13
  86. package/dist/components/InfoTable/InfoTable.d.ts.map +1 -1
  87. package/dist/components/InfoTable/InfoTable.js +24 -15
  88. package/dist/components/InfoTable/components/Cell.d.ts.map +1 -1
  89. package/dist/components/InfoTable/components/Cell.js +37 -45
  90. package/dist/components/InfoTable/components/Row.d.ts.map +1 -1
  91. package/dist/components/InfoTable/components/Row.js +19 -27
  92. package/dist/components/InfoTable/context.d.ts +1 -1
  93. package/dist/components/InfoTable/context.d.ts.map +1 -1
  94. package/dist/components/InfoTable/context.js +5 -3
  95. package/dist/components/InfoTable/styles.css.js +6 -10
  96. package/dist/components/Navigation/Footer.d.ts.map +1 -1
  97. package/dist/components/Navigation/Footer.js +59 -75
  98. package/dist/components/Navigation/Header.d.ts.map +1 -1
  99. package/dist/components/Navigation/Header.js +20 -17
  100. package/dist/components/Navigation/Navigation.d.ts +46 -43
  101. package/dist/components/Navigation/Navigation.d.ts.map +1 -1
  102. package/dist/components/Navigation/Navigation.js +23 -27
  103. package/dist/components/Navigation/NavigationContent.d.ts +1 -1
  104. package/dist/components/Navigation/NavigationContent.d.ts.map +1 -1
  105. package/dist/components/Navigation/NavigationContent.js +100 -138
  106. package/dist/components/Navigation/NavigationProvider.d.ts.map +1 -1
  107. package/dist/components/Navigation/NavigationProvider.js +116 -165
  108. package/dist/components/Navigation/components/Group.d.ts.map +1 -1
  109. package/dist/components/Navigation/components/Group.js +36 -43
  110. package/dist/components/Navigation/components/Item.d.ts +1 -1
  111. package/dist/components/Navigation/components/Item.d.ts.map +1 -1
  112. package/dist/components/Navigation/components/Item.js +440 -607
  113. package/dist/components/Navigation/components/ItemProvider.d.ts.map +1 -1
  114. package/dist/components/Navigation/components/ItemProvider.js +13 -8
  115. package/dist/components/Navigation/components/PinnedItems.d.ts.map +1 -1
  116. package/dist/components/Navigation/components/PinnedItems.js +101 -132
  117. package/dist/components/Navigation/components/Separator.js +10 -7
  118. package/dist/components/Navigation/components/ShowHide.d.ts +1 -1
  119. package/dist/components/Navigation/components/ShowHide.d.ts.map +1 -1
  120. package/dist/components/Navigation/components/ShowHide.js +51 -75
  121. package/dist/components/Navigation/components/items.css.js +72 -30
  122. package/dist/components/Navigation/components/styles.css.js +23 -13
  123. package/dist/components/Navigation/locales/en.js +12 -11
  124. package/dist/components/Navigation/styles.css.js +29 -14
  125. package/dist/components/Navigation/variables.css.js +4 -4
  126. package/dist/components/OfferList/OfferList.d.ts +5 -51
  127. package/dist/components/OfferList/OfferList.d.ts.map +1 -1
  128. package/dist/components/OfferList/OfferList.js +11 -78
  129. package/dist/components/OrderSummary/index.d.ts +5 -2
  130. package/dist/components/OrderSummary/index.d.ts.map +1 -1
  131. package/dist/components/OrderSummary/index.js +11 -204
  132. package/dist/components/Plans/index.d.ts +5 -21
  133. package/dist/components/Plans/index.d.ts.map +1 -1
  134. package/dist/components/Plans/index.js +11 -214
  135. package/dist/components/SteppedListCard/index.d.ts +5 -1
  136. package/dist/components/SteppedListCard/index.d.ts.map +1 -1
  137. package/dist/components/SteppedListCard/index.js +11 -0
  138. package/dist/index.js +5 -21
  139. package/dist/plus.css +2 -1
  140. package/package.json +8 -7
  141. package/LICENSE +0 -189
  142. package/dist/components/CustomerSatisfaction/assets/1-5.svg.js +0 -4
  143. package/dist/components/CustomerSatisfaction/assets/1-5NB.svg.js +0 -4
  144. package/dist/components/CustomerSatisfaction/assets/2-5.svg.js +0 -4
  145. package/dist/components/CustomerSatisfaction/assets/2-5NB.svg.js +0 -4
  146. package/dist/components/CustomerSatisfaction/assets/3-5.svg.js +0 -4
  147. package/dist/components/CustomerSatisfaction/assets/3-5NB.svg.js +0 -4
  148. package/dist/components/CustomerSatisfaction/assets/4-5.svg.js +0 -4
  149. package/dist/components/CustomerSatisfaction/assets/4-5NB.svg.js +0 -4
  150. package/dist/components/CustomerSatisfaction/assets/5-5.svg.js +0 -4
  151. package/dist/components/CustomerSatisfaction/assets/5-5NB.svg.js +0 -4
  152. package/dist/components/Navigation/constants.js +0 -10
  153. package/dist/components/OfferList/OfferListProvider.d.ts +0 -30
  154. package/dist/components/OfferList/OfferListProvider.d.ts.map +0 -1
  155. package/dist/components/OfferList/OfferListProvider.js +0 -48
  156. package/dist/components/OfferList/components/Banner.d.ts +0 -13
  157. package/dist/components/OfferList/components/Banner.d.ts.map +0 -1
  158. package/dist/components/OfferList/components/Banner.js +0 -43
  159. package/dist/components/OfferList/components/Cell.d.ts +0 -4
  160. package/dist/components/OfferList/components/Cell.d.ts.map +0 -1
  161. package/dist/components/OfferList/components/Cell.js +0 -35
  162. package/dist/components/OfferList/components/OfferListRowProvider.d.ts +0 -9
  163. package/dist/components/OfferList/components/OfferListRowProvider.d.ts.map +0 -1
  164. package/dist/components/OfferList/components/OfferListRowProvider.js +0 -10
  165. package/dist/components/OfferList/components/Row.d.ts +0 -18
  166. package/dist/components/OfferList/components/Row.d.ts.map +0 -1
  167. package/dist/components/OfferList/components/Row.js +0 -258
  168. package/dist/components/OfferList/styles.css.d.ts +0 -44
  169. package/dist/components/OfferList/styles.css.d.ts.map +0 -1
  170. package/dist/components/OfferList/styles.css.js +0 -40
  171. package/dist/components/OrderSummary/NonScrollableContent.d.ts +0 -20
  172. package/dist/components/OrderSummary/NonScrollableContent.d.ts.map +0 -1
  173. package/dist/components/OrderSummary/NonScrollableContent.js +0 -136
  174. package/dist/components/OrderSummary/Provider.d.ts +0 -15
  175. package/dist/components/OrderSummary/Provider.d.ts.map +0 -1
  176. package/dist/components/OrderSummary/Provider.js +0 -15
  177. package/dist/components/OrderSummary/ScrollableContent.d.ts +0 -2
  178. package/dist/components/OrderSummary/ScrollableContent.d.ts.map +0 -1
  179. package/dist/components/OrderSummary/ScrollableContent.js +0 -314
  180. package/dist/components/OrderSummary/constants.d.ts +0 -3
  181. package/dist/components/OrderSummary/constants.d.ts.map +0 -1
  182. package/dist/components/OrderSummary/constants.js +0 -18
  183. package/dist/components/OrderSummary/helpers.d.ts +0 -28
  184. package/dist/components/OrderSummary/helpers.d.ts.map +0 -1
  185. package/dist/components/OrderSummary/helpers.js +0 -156
  186. package/dist/components/OrderSummary/locales/en.d.ts +0 -11
  187. package/dist/components/OrderSummary/locales/en.d.ts.map +0 -1
  188. package/dist/components/OrderSummary/locales/en.js +0 -12
  189. package/dist/components/OrderSummary/styles.css.d.ts +0 -21
  190. package/dist/components/OrderSummary/styles.css.d.ts.map +0 -1
  191. package/dist/components/OrderSummary/styles.css.js +0 -26
  192. package/dist/components/OrderSummary/types.d.ts +0 -125
  193. package/dist/components/OrderSummary/types.d.ts.map +0 -1
  194. package/dist/components/Plans/FeatureHint.d.ts +0 -7
  195. package/dist/components/Plans/FeatureHint.d.ts.map +0 -1
  196. package/dist/components/Plans/FeatureHint.js +0 -42
  197. package/dist/components/Plans/PlanHeader.d.ts +0 -14
  198. package/dist/components/Plans/PlanHeader.d.ts.map +0 -1
  199. package/dist/components/Plans/PlanHeader.js +0 -96
  200. package/dist/components/Plans/locales/en.d.ts +0 -7
  201. package/dist/components/Plans/locales/en.d.ts.map +0 -1
  202. package/dist/components/Plans/locales/en.js +0 -8
  203. package/dist/components/Plans/styles.css.d.ts +0 -67
  204. package/dist/components/Plans/styles.css.d.ts.map +0 -1
  205. package/dist/components/Plans/styles.css.js +0 -26
  206. package/dist/components/Plans/types.d.ts +0 -38
  207. package/dist/components/Plans/types.d.ts.map +0 -1
  208. package/dist/components/SteppedListCard/Step.d.ts +0 -23
  209. package/dist/components/SteppedListCard/Step.d.ts.map +0 -1
  210. package/dist/components/SteppedListCard/Step.js +0 -61
  211. package/dist/components/SteppedListCard/SteppedListCard.d.ts +0 -69
  212. package/dist/components/SteppedListCard/SteppedListCard.d.ts.map +0 -1
  213. package/dist/components/SteppedListCard/SteppedListCard.js +0 -105
  214. package/dist/components/SteppedListCard/SteppedListContent.d.ts +0 -12
  215. package/dist/components/SteppedListCard/SteppedListContent.d.ts.map +0 -1
  216. package/dist/components/SteppedListCard/SteppedListContent.js +0 -53
  217. package/dist/components/SteppedListCard/helper.d.ts +0 -27
  218. package/dist/components/SteppedListCard/helper.d.ts.map +0 -1
  219. package/dist/components/SteppedListCard/helper.js +0 -41
  220. package/dist/components/SteppedListCard/styles.css.d.ts +0 -9
  221. package/dist/components/SteppedListCard/styles.css.d.ts.map +0 -1
  222. package/dist/components/SteppedListCard/styles.css.js +0 -19
@@ -1,34 +1,40 @@
1
- "use client";
1
+ 'use client';
2
+ import { __name } from "../../_virtual/_rolldown/runtime.js";
3
+ import { faq } from "./styles.css.js";
4
+ import { Bullet, Card, Stack, Text } from "@ultraviolet/ui";
2
5
  import { jsx, jsxs } from "react/jsx-runtime";
3
6
  import * as ProductIcon from "@ultraviolet/icons/product";
4
- import { Card, Stack, Bullet, Text } from "@ultraviolet/ui";
5
- import { faq } from "./styles.css.js";
6
- const FAQ = ({
7
- productIconName,
8
- illustrationText,
9
- title,
10
- description,
11
- notes,
12
- style
13
- }) => {
14
- const ProductIconUsed = productIconName ? (
15
- // biome-ignore lint/performance/noDynamicNamespaceImportAccess: to fix
16
- ProductIcon[`${productIconName.charAt(0).toUpperCase() + productIconName.slice(1)}ProductIcon`]
17
- ) : null;
18
- return /* @__PURE__ */ jsx(Card, { className: faq, style, children: /* @__PURE__ */ jsxs(Stack, { direction: "row", gap: 2, children: [
19
- /* @__PURE__ */ jsxs("div", { children: [
20
- !productIconName && illustrationText ? /* @__PURE__ */ jsx(Bullet, { sentiment: "primary", children: illustrationText.toString() }) : null,
21
- ProductIconUsed ? /* @__PURE__ */ jsx(ProductIconUsed, { size: "xlarge" }) : null
22
- ] }),
23
- /* @__PURE__ */ jsxs("div", { children: [
24
- /* @__PURE__ */ jsx(Text, { as: "p", prominence: "strong", variant: "bodyStronger", children: title }),
25
- /* @__PURE__ */ jsxs(Text, { as: "div", variant: "bodySmall", children: [
26
- description,
27
- notes ? /* @__PURE__ */ jsx(Text, { as: "small", italic: true, variant: "caption", children: notes }) : null
28
- ] })
29
- ] })
30
- ] }) });
31
- };
32
- export {
33
- FAQ
7
+
8
+ //#region src/components/FAQ/index.tsx
9
+ const FAQ = ({ productIconName, illustrationText, title, description, notes, style }) => {
10
+ const ProductIconUsed = productIconName ? ProductIcon[`${productIconName.charAt(0).toUpperCase() + productIconName.slice(1)}ProductIcon`] : null;
11
+ return /* @__PURE__ */ jsx(Card, {
12
+ className: faq,
13
+ style,
14
+ children: /* @__PURE__ */ jsxs(Stack, {
15
+ direction: "row",
16
+ gap: 2,
17
+ children: [/* @__PURE__ */ jsxs("div", { children: [!productIconName && illustrationText ? /* @__PURE__ */ jsx(Bullet, {
18
+ sentiment: "primary",
19
+ children: illustrationText.toString()
20
+ }) : null, ProductIconUsed ? /* @__PURE__ */ jsx(ProductIconUsed, { size: "xlarge" }) : null] }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Text, {
21
+ as: "p",
22
+ prominence: "strong",
23
+ variant: "bodyStronger",
24
+ children: title
25
+ }), /* @__PURE__ */ jsxs(Text, {
26
+ as: "div",
27
+ variant: "bodySmall",
28
+ children: [description, notes ? /* @__PURE__ */ jsx(Text, {
29
+ as: "small",
30
+ italic: true,
31
+ variant: "caption",
32
+ children: notes
33
+ }) : null]
34
+ })] })]
35
+ })
36
+ });
34
37
  };
38
+
39
+ //#endregion
40
+ export { FAQ };
@@ -1,5 +1,7 @@
1
- /* empty css */
1
+ /* empty css */
2
+
3
+ //#region src/components/FAQ/styles.css.ts
2
4
  var faq = "uv_plus_5imqkb0";
3
- export {
4
- faq
5
- };
5
+
6
+ //#endregion
7
+ export { faq };
@@ -6,23 +6,20 @@ type InfoTableProps = {
6
6
  'data-testid'?: string;
7
7
  style?: CSSProperties;
8
8
  };
9
- /**
10
- * Use this component to display offers.
11
- * Create rows with `InfoTable.Row` and place cells within each row using `InfoTable.Cell`.
12
- */
13
- export declare const InfoTable: {
14
- ({ children, width, className, style, "data-testid": dataTestId, }: InfoTableProps): import("react/jsx-runtime").JSX.Element;
15
- Row: ({ children, templateColumns, style, }: {
9
+ export declare function InfoTable({ children, width, className, style, 'data-testid': dataTestId }: InfoTableProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare namespace InfoTable {
11
+ var Row: ({ children, templateColumns, style, }: {
16
12
  children: ReactNode;
17
13
  templateColumns: string;
18
- style?: CSSProperties;
14
+ style?: CSSProperties | undefined;
19
15
  }) => import("react/jsx-runtime").JSX.Element;
20
- Cell: ({ children, title, multiline, style, }: {
16
+ }
17
+ export declare namespace InfoTable {
18
+ var Cell: ({ children, title, multiline, style, }: {
21
19
  children: ReactNode;
22
20
  title: ReactNode;
23
- multiline?: boolean;
24
- style?: CSSProperties;
21
+ multiline?: boolean | undefined;
22
+ style?: CSSProperties | undefined;
25
23
  }) => import("react/jsx-runtime").JSX.Element;
26
- };
27
- export {};
24
+ }
28
25
  //# sourceMappingURL=InfoTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InfoTable.d.ts","sourceRoot":"","sources":["../../../src/components/InfoTable/InfoTable.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMrD,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS;wEAMnB,cAAc;;;;;;;;;;;;CAMhB,CAAA"}
1
+ {"version":3,"file":"InfoTable.d.ts","sourceRoot":"","sources":["../../../src/components/InfoTable/InfoTable.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMrD,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;kCAMyB,EACxB,QAAQ,EACR,KAAK,EACL,SAAS,EACT,KAAK,EACL,aAAa,EAAE,UAAU,EAC1B,EAAE,cAAc"}
@@ -1,19 +1,28 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import { cn } from "@ultraviolet/utils";
1
+ 'use client';
2
+ import { __name } from "../../_virtual/_rolldown/runtime.js";
3
+ import { dl } from "./styles.css.js";
4
4
  import { InfoTableCell } from "./components/Cell.js";
5
- import { InfoTableRow } from "./components/Row.js";
6
5
  import { InfoTableContext } from "./context.js";
7
- import { dl } from "./styles.css.js";
8
- const InfoTable = ({
9
- children,
10
- width,
11
- className,
12
- style,
13
- "data-testid": dataTestId
14
- }) => /* @__PURE__ */ jsx(InfoTableContext.Provider, { value: { width }, children: /* @__PURE__ */ jsx("dl", { className: cn(className, dl), "data-testid": dataTestId, style, children }) });
6
+ import { InfoTableRow } from "./components/Row.js";
7
+ import { cn } from "@ultraviolet/utils";
8
+ import { jsx } from "react/jsx-runtime";
9
+
10
+ //#region src/components/InfoTable/InfoTable.tsx
11
+ /**
12
+ * Use this component to display offers.
13
+ * Create rows with `InfoTable.Row` and place cells within each row using `InfoTable.Cell`.
14
+ */
15
+ const InfoTable = ({ children, width, className, style, "data-testid": dataTestId }) => /* @__PURE__ */ jsx(InfoTableContext.Provider, {
16
+ value: { width },
17
+ children: /* @__PURE__ */ jsx("dl", {
18
+ className: cn(className, dl),
19
+ "data-testid": dataTestId,
20
+ style,
21
+ children
22
+ })
23
+ });
15
24
  InfoTable.Row = InfoTableRow;
16
25
  InfoTable.Cell = InfoTableCell;
17
- export {
18
- InfoTable
19
- };
26
+
27
+ //#endregion
28
+ export { InfoTable };
@@ -1 +1 @@
1
- {"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../../src/components/InfoTable/components/Cell.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGrD,KAAK,SAAS,GAAG;IACf,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,wCAK3B,SAAS,4CA+BX,CAAA"}
1
+ {"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../../src/components/InfoTable/components/Cell.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGrD,KAAK,SAAS,GAAG;IACf,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,aAAa,gGAoCzB,CAAA"}
@@ -1,46 +1,38 @@
1
- "use client";
2
- import { jsxs, jsx } from "react/jsx-runtime";
1
+ 'use client';
2
+ import { __name } from "../../../_virtual/_rolldown/runtime.js";
3
+ import { cellText, desc, infoTableCell, term } from "../styles.css.js";
3
4
  import { Stack, Text } from "@ultraviolet/ui";
4
- import { infoTableCell, term, desc, cellText } from "../styles.css.js";
5
- const InfoTableCell = ({
6
- children,
7
- title,
8
- multiline = false,
9
- style
10
- }) => /* @__PURE__ */ jsxs(
11
- Stack,
12
- {
13
- className: infoTableCell,
14
- gap: "0.5",
15
- minWidth: "0",
16
- style,
17
- width: "100%",
18
- children: [
19
- /* @__PURE__ */ jsx("dt", { className: term, children: /* @__PURE__ */ jsx(
20
- Text,
21
- {
22
- as: "div",
23
- prominence: "weak",
24
- sentiment: "neutral",
25
- variant: "bodySmallStrong",
26
- children: title
27
- }
28
- ) }),
29
- /* @__PURE__ */ jsx("dd", { className: desc, children: /* @__PURE__ */ jsx(
30
- Text,
31
- {
32
- as: "div",
33
- className: cellText,
34
- oneLine: !multiline,
35
- prominence: "default",
36
- sentiment: "neutral",
37
- variant: "body",
38
- children
39
- }
40
- ) })
41
- ]
42
- }
43
- );
44
- export {
45
- InfoTableCell
46
- };
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+
7
+ //#region src/components/InfoTable/components/Cell.tsx
8
+ const InfoTableCell = ({ children, title, multiline = false, style }) => /* @__PURE__ */ jsxs(Stack, {
9
+ className: infoTableCell,
10
+ gap: "0.5",
11
+ minWidth: "0",
12
+ style,
13
+ width: "100%",
14
+ children: [/* @__PURE__ */ jsx("dt", {
15
+ className: term,
16
+ children: /* @__PURE__ */ jsx(Text, {
17
+ as: "div",
18
+ prominence: "weak",
19
+ sentiment: "neutral",
20
+ variant: "bodySmallStrong",
21
+ children: title
22
+ })
23
+ }), /* @__PURE__ */ jsx("dd", {
24
+ className: desc,
25
+ children: /* @__PURE__ */ jsx(Text, {
26
+ as: "div",
27
+ className: cellText,
28
+ oneLine: !multiline,
29
+ prominence: "default",
30
+ sentiment: "neutral",
31
+ variant: "body",
32
+ children
33
+ })
34
+ })]
35
+ });
36
+
37
+ //#endregion
38
+ export { InfoTableCell };
@@ -1 +1 @@
1
- {"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../../src/components/InfoTable/components/Row.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrD,KAAK,QAAQ,GAAG;IACd,QAAQ,EAAE,SAAS,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,uCAI1B,QAAQ,4CAiBV,CAAA"}
1
+ {"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../../src/components/InfoTable/components/Row.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrD,KAAK,QAAQ,GAAG;IACd,QAAQ,EAAE,SAAS,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,YAAY,8FAqBxB,CAAA"}
@@ -1,31 +1,23 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
1
+ 'use client';
2
+ import { __name } from "../../../_virtual/_rolldown/runtime.js";
3
+ import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
4
+ import { infoTableRow, rowWidth } from "../styles.css.js";
5
+ import { InfoTableContext } from "../context.js";
3
6
  import { Row } from "@ultraviolet/ui";
4
7
  import { assignInlineVars } from "@vanilla-extract/dynamic";
5
8
  import { useContext } from "react";
6
- import { InfoTableContext } from "../context.js";
7
- import { infoTableRow, rowWidth } from "../styles.css.js";
8
- const InfoTableRow = ({
9
- children,
10
- templateColumns,
11
- style
12
- }) => {
13
- const { width } = useContext(InfoTableContext);
14
- return /* @__PURE__ */ jsx(
15
- Row,
16
- {
17
- className: infoTableRow,
18
- style: {
19
- ...assignInlineVars({
20
- [rowWidth]: width ?? "100%"
21
- }),
22
- ...style
23
- },
24
- templateColumns,
25
- children
26
- }
27
- );
28
- };
29
- export {
30
- InfoTableRow
9
+ import { jsx } from "react/jsx-runtime";
10
+
11
+ //#region src/components/InfoTable/components/Row.tsx
12
+ const InfoTableRow = ({ children, templateColumns, style }) => {
13
+ const { width } = useContext(InfoTableContext);
14
+ return /* @__PURE__ */ jsx(Row, {
15
+ className: infoTableRow,
16
+ style: _objectSpread2(_objectSpread2({}, assignInlineVars({ [rowWidth]: width !== null && width !== void 0 ? width : "100%" })), style),
17
+ templateColumns,
18
+ children
19
+ });
31
20
  };
21
+
22
+ //#endregion
23
+ export { InfoTableRow };
@@ -1,4 +1,4 @@
1
1
  export declare const InfoTableContext: import("react").Context<{
2
- width?: string;
2
+ width?: string | undefined;
3
3
  }>;
4
4
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/InfoTable/context.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;YAA2B,MAAM;EAAO,CAAA"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/InfoTable/context.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;EAAwC,CAAA"}
@@ -1,5 +1,7 @@
1
1
  import { createContext } from "react";
2
+
3
+ //#region src/components/InfoTable/context.tsx
2
4
  const InfoTableContext = createContext({});
3
- export {
4
- InfoTableContext
5
- };
5
+
6
+ //#endregion
7
+ export { InfoTableContext };
@@ -1,4 +1,6 @@
1
- /* empty css */
1
+ /* empty css */
2
+
3
+ //#region src/components/InfoTable/styles.css.ts
2
4
  var rowWidth = "var(--uv_plus_h6pvpm0)";
3
5
  var dl = "uv_plus_h6pvpm1";
4
6
  var infoTableRow = "uv_plus_h6pvpm2";
@@ -6,12 +8,6 @@ var infoTableCell = "uv_plus_h6pvpm3";
6
8
  var term = "uv_plus_h6pvpm4";
7
9
  var desc = "uv_plus_h6pvpm5";
8
10
  var cellText = "uv_plus_h6pvpm6";
9
- export {
10
- cellText,
11
- desc,
12
- dl,
13
- infoTableCell,
14
- infoTableRow,
15
- rowWidth,
16
- term
17
- };
11
+
12
+ //#endregion
13
+ export { cellText, desc, dl, infoTableCell, infoTableRow, rowWidth, term };
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Footer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,eAAe,CAAC,gBAAgB,CAAC,CAAA;IACjD,UAAU,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;CAC7C,CAAA;AAED,eAAO,MAAM,MAAM,GAAI,gCAAgC,WAAW,4CAqFjE,CAAA"}
1
+ {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Footer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,eAAe,CAAC,gBAAgB,CAAC,CAAA;IACjD,UAAU,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;CAC7C,CAAA;AAED,eAAO,MAAM,MAAM,0FAqFlB,CAAA"}
@@ -1,80 +1,64 @@
1
- "use client";
1
+ 'use client';
2
+ import { __name } from "../../_virtual/_rolldown/runtime.js";
3
+ import { useNavigation } from "./NavigationProvider.js";
4
+ import { navigationStickyFooter } from "./styles.css.js";
5
+ import { Button, Tooltip } from "@ultraviolet/ui";
6
+ import { useCallback, useLayoutEffect, useMemo, useState } from "react";
2
7
  import { jsx } from "react/jsx-runtime";
3
8
  import { ArrowLeftDoubleIcon } from "@ultraviolet/icons/ArrowLeftDoubleIcon";
4
9
  import { ArrowRightDoubleIcon } from "@ultraviolet/icons/ArrowRightDoubleIcon";
5
- import { Tooltip, Button } from "@ultraviolet/ui";
6
- import { useCallback, useState, useLayoutEffect, useMemo } from "react";
7
- import { useNavigation } from "./NavigationProvider.js";
8
- import { navigationStickyFooter } from "./styles.css.js";
10
+
11
+ //#region src/components/Navigation/Footer.tsx
9
12
  const Footer = ({ onToggleExpand, contentRef }) => {
10
- const { expanded, toggleExpand, locales, animation } = useNavigation();
11
- const isScrollAtBottom = useCallback(() => {
12
- if (contentRef.current) {
13
- if (contentRef.current.scrollTop + contentRef.current.offsetHeight >= contentRef.current.scrollHeight) {
14
- return false;
15
- }
16
- return true;
17
- }
18
- return true;
19
- }, [contentRef]);
20
- const [footerHasOverflowStyle, setFooterHasOverflowStyle] = useState(
21
- isScrollAtBottom()
22
- );
23
- useLayoutEffect(() => {
24
- const currentContentRef = contentRef.current;
25
- const scroll = () => {
26
- const hasOverflow = isScrollAtBottom();
27
- if (footerHasOverflowStyle !== hasOverflow) {
28
- setFooterHasOverflowStyle(hasOverflow);
29
- }
30
- };
31
- if (currentContentRef) {
32
- currentContentRef.addEventListener("scroll", scroll);
33
- }
34
- return () => {
35
- currentContentRef?.removeEventListener("scroll", scroll);
36
- };
37
- }, [footerHasOverflowStyle, isScrollAtBottom, contentRef]);
38
- useLayoutEffect(() => {
39
- setFooterHasOverflowStyle(isScrollAtBottom());
40
- }, [isScrollAtBottom]);
41
- const Icon = useMemo(
42
- () => expanded ? ArrowLeftDoubleIcon : ArrowRightDoubleIcon,
43
- [expanded]
44
- );
45
- const label = useMemo(
46
- () => expanded ? locales["navigation.collapse.button"] : locales["navigation.expand.button"],
47
- [expanded, locales]
48
- );
49
- return /* @__PURE__ */ jsx(
50
- "div",
51
- {
52
- className: navigationStickyFooter({ overflow: footerHasOverflowStyle }),
53
- children: /* @__PURE__ */ jsx(
54
- Tooltip,
55
- {
56
- disableAnimation: animation === false,
57
- placement: "right",
58
- text: label,
59
- children: /* @__PURE__ */ jsx(
60
- Button,
61
- {
62
- "aria-label": label,
63
- onClick: () => {
64
- toggleExpand();
65
- onToggleExpand?.(!expanded);
66
- },
67
- sentiment: "neutral",
68
- size: "small",
69
- variant: "ghost",
70
- children: /* @__PURE__ */ jsx(Icon, {})
71
- }
72
- )
73
- }
74
- )
75
- }
76
- );
77
- };
78
- export {
79
- Footer
13
+ const { expanded, toggleExpand, locales, animation } = useNavigation();
14
+ const isScrollAtBottom = useCallback(() => {
15
+ if (contentRef.current) {
16
+ if (contentRef.current.scrollTop + contentRef.current.offsetHeight >= contentRef.current.scrollHeight) return false;
17
+ return true;
18
+ }
19
+ return true;
20
+ }, [contentRef]);
21
+ const [footerHasOverflowStyle, setFooterHasOverflowStyle] = useState(isScrollAtBottom());
22
+ useLayoutEffect(() => {
23
+ const currentContentRef = contentRef.current;
24
+ const scroll = () => {
25
+ const hasOverflow = isScrollAtBottom();
26
+ if (footerHasOverflowStyle !== hasOverflow) setFooterHasOverflowStyle(hasOverflow);
27
+ };
28
+ if (currentContentRef) currentContentRef.addEventListener("scroll", scroll);
29
+ return () => {
30
+ currentContentRef === null || currentContentRef === void 0 || currentContentRef.removeEventListener("scroll", scroll);
31
+ };
32
+ }, [
33
+ footerHasOverflowStyle,
34
+ isScrollAtBottom,
35
+ contentRef
36
+ ]);
37
+ useLayoutEffect(() => {
38
+ setFooterHasOverflowStyle(isScrollAtBottom());
39
+ }, [isScrollAtBottom]);
40
+ const Icon = useMemo(() => expanded ? ArrowLeftDoubleIcon : ArrowRightDoubleIcon, [expanded]);
41
+ const label = useMemo(() => expanded ? locales["navigation.collapse.button"] : locales["navigation.expand.button"], [expanded, locales]);
42
+ return /* @__PURE__ */ jsx("div", {
43
+ className: navigationStickyFooter({ overflow: footerHasOverflowStyle }),
44
+ children: /* @__PURE__ */ jsx(Tooltip, {
45
+ disableAnimation: animation === false,
46
+ placement: "right",
47
+ text: label,
48
+ children: /* @__PURE__ */ jsx(Button, {
49
+ "aria-label": label,
50
+ onClick: () => {
51
+ toggleExpand();
52
+ onToggleExpand === null || onToggleExpand === void 0 || onToggleExpand(!expanded);
53
+ },
54
+ sentiment: "neutral",
55
+ size: "small",
56
+ variant: "ghost",
57
+ children: /* @__PURE__ */ jsx(Icon, {})
58
+ })
59
+ })
60
+ });
80
61
  };
62
+
63
+ //#endregion
64
+ export { Footer };
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Header.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,MAAM,iDAAmB,WAAW,6CAc/C,CAAA"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Header.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,MAAM,yGAcjB,CAAA"}
@@ -1,21 +1,24 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import { Stack } from "@ultraviolet/ui";
4
- import { memo } from "react";
1
+ 'use client';
2
+ import { __name } from "../../_virtual/_rolldown/runtime.js";
5
3
  import { useNavigation } from "./NavigationProvider.js";
6
4
  import { navigationHeader, navigationLogoContainer } from "./styles.css.js";
5
+ import { Stack } from "@ultraviolet/ui";
6
+ import { memo } from "react";
7
+ import { jsx } from "react/jsx-runtime";
8
+
9
+ //#region src/components/Navigation/Header.tsx
7
10
  const Header = memo(({ logo }) => {
8
- const { animation, expanded } = useNavigation();
9
- return /* @__PURE__ */ jsx("div", { className: navigationHeader, children: /* @__PURE__ */ jsx(
10
- Stack,
11
- {
12
- alignItems: "flex-start",
13
- className: navigationLogoContainer,
14
- justifyContent: expanded ? void 0 : "center",
15
- children: typeof logo === "function" ? logo(animation ? false : expanded) : logo
16
- }
17
- ) });
11
+ const { animation, expanded } = useNavigation();
12
+ return /* @__PURE__ */ jsx("div", {
13
+ className: navigationHeader,
14
+ children: /* @__PURE__ */ jsx(Stack, {
15
+ alignItems: "flex-start",
16
+ className: navigationLogoContainer,
17
+ justifyContent: expanded ? void 0 : "center",
18
+ children: typeof logo === "function" ? logo(animation ? false : expanded) : logo
19
+ })
20
+ });
18
21
  });
19
- export {
20
- Header
21
- };
22
+
23
+ //#endregion
24
+ export { Header };