@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,143 +1,110 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { OpenInNewIcon } from "@ultraviolet/icons/OpenInNewIcon";
1
+ 'use client';
2
+ import { __name } from "../../_virtual/_rolldown/runtime.js";
3
+ import { activeClass, cardClass, fullHeight, iconContainer, iconStack, imageClass, subContainer, subContainerHeightVar } from "./styles.css.js";
4
+ import { Skeleton as Skeleton$1 } from "./Skeleton.js";
4
5
  import { Stack, Text } from "@ultraviolet/ui";
5
6
  import { cn } from "@ultraviolet/utils";
6
7
  import { assignInlineVars } from "@vanilla-extract/dynamic";
7
- import { forwardRef, useRef, useState, useMemo, useEffect } from "react";
8
- import { Skeleton } from "./Skeleton.js";
9
- import { fullHeight, imageClass, subContainerHeightVar, subContainer, iconStack, iconContainer, cardClass, activeClass } from "./styles.css.js";
10
- const ContentCard = forwardRef(
11
- ({
12
- image,
13
- direction = "column",
14
- icon,
15
- subtitle,
16
- title,
17
- headingTag = "h3",
18
- description,
19
- children,
20
- href,
21
- target = "_blank",
22
- onClick,
23
- disabled,
24
- loading,
25
- className,
26
- style
27
- }, ref) => {
28
- const subContainerRef = useRef(null);
29
- const [subContainerHeight, setSubContainerHeight] = useState(
30
- subContainerRef?.current?.offsetHeight
31
- );
32
- const Container = useMemo(() => {
33
- if (href) {
34
- return "a";
35
- }
36
- if (onClick) {
37
- return "button";
38
- }
39
- return "div";
40
- }, [href, onClick]);
41
- useEffect(
42
- () => setSubContainerHeight(subContainerRef?.current?.offsetHeight),
43
- [subContainerRef]
44
- );
45
- return /* @__PURE__ */ jsx(
46
- Container,
47
- {
48
- className: cn(className, cardClass, onClick || href ? activeClass : ""),
49
- disabled,
50
- href: disabled ? void 0 : href,
51
- onClick: disabled ? void 0 : onClick,
52
- ref,
53
- role: onClick && !href ? "button" : void 0,
54
- style,
55
- target,
56
- children: loading ? /* @__PURE__ */ jsx(Skeleton, { direction }) : /* @__PURE__ */ jsxs(Stack, { className: fullHeight, direction, children: [
57
- image ? /* @__PURE__ */ jsx(
58
- "img",
59
- {
60
- alt: "",
61
- className: imageClass[direction],
62
- "data-disabled": disabled,
63
- height: direction === "column" ? 120 : void 0,
64
- src: image,
65
- style: assignInlineVars({
66
- [subContainerHeightVar]: subContainerHeight ? `${subContainerHeight.toString()}px` : void 0
67
- }),
68
- width: direction === "row" ? 220 : void 0
69
- }
70
- ) : null,
71
- /* @__PURE__ */ jsxs(Stack, { direction, flex: 1, gap: 2, children: [
72
- /* @__PURE__ */ jsxs(
73
- Stack,
74
- {
75
- alignItems: subtitle || description || children ? void 0 : "center",
76
- className: subContainer[href ? direction : "noHref"],
77
- direction,
78
- flex: "1 1 auto",
79
- gap: 2,
80
- ref: subContainerRef,
81
- children: [
82
- icon ?? null,
83
- /* @__PURE__ */ jsxs(Stack, { flex: "1 1 auto", gap: 2, justifyContent: "space-between", children: [
84
- /* @__PURE__ */ jsxs(Stack, { gap: 0.5, children: [
85
- /* @__PURE__ */ jsxs(Stack, { children: [
86
- subtitle ? /* @__PURE__ */ jsx(
87
- Text,
88
- {
89
- as: "small",
90
- disabled,
91
- prominence: "weak",
92
- sentiment: "neutral",
93
- variant: "caption",
94
- children: subtitle
95
- }
96
- ) : null,
97
- /* @__PURE__ */ jsx(
98
- Text,
99
- {
100
- as: headingTag,
101
- disabled,
102
- sentiment: "neutral",
103
- variant: "bodyStrong",
104
- children: title
105
- }
106
- )
107
- ] }),
108
- description ? /* @__PURE__ */ jsx(
109
- Text,
110
- {
111
- as: "p",
112
- disabled,
113
- sentiment: "neutral",
114
- variant: "bodySmall",
115
- children: description
116
- }
117
- ) : null
118
- ] }),
119
- children ? /* @__PURE__ */ jsx(Stack, { children }) : null
120
- ] })
121
- ]
122
- }
123
- ),
124
- href ? /* @__PURE__ */ jsx(
125
- Stack,
126
- {
127
- alignItems: direction === "column" ? "flex-end" : "center",
128
- className: iconStack[direction],
129
- direction,
130
- flex: 1,
131
- justifyContent: direction === "column" ? "center" : "flex-end",
132
- children: /* @__PURE__ */ jsx("div", { className: iconContainer, children: /* @__PURE__ */ jsx(OpenInNewIcon, { disabled, sentiment: "neutral" }) })
133
- }
134
- ) : null
135
- ] })
136
- ] })
137
- }
138
- );
139
- }
140
- );
141
- export {
142
- ContentCard
143
- };
8
+ import { forwardRef, useEffect, useMemo, useRef, useState } from "react";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
+ import { OpenInNewIcon } from "@ultraviolet/icons/OpenInNewIcon";
11
+
12
+ //#region src/components/ContentCard/index.tsx
13
+ /**
14
+ * ContentCard is a component that displays a title, subtitle, description, image and icon in a card.
15
+ * It can take different directions to display the image and the content. You can also add more content
16
+ * by passing children.
17
+ */
18
+ const ContentCard = forwardRef(({ image, direction = "column", icon, subtitle, title, headingTag = "h3", description, children, href, target = "_blank", onClick, disabled, loading, className, style }, ref) => {
19
+ var _subContainerRef$curr;
20
+ const subContainerRef = useRef(null);
21
+ const [subContainerHeight, setSubContainerHeight] = useState(subContainerRef === null || subContainerRef === void 0 || (_subContainerRef$curr = subContainerRef.current) === null || _subContainerRef$curr === void 0 ? void 0 : _subContainerRef$curr.offsetHeight);
22
+ const Container = useMemo(() => {
23
+ if (href) return "a";
24
+ if (onClick) return "button";
25
+ return "div";
26
+ }, [href, onClick]);
27
+ useEffect(() => {
28
+ var _subContainerRef$curr2;
29
+ return setSubContainerHeight(subContainerRef === null || subContainerRef === void 0 || (_subContainerRef$curr2 = subContainerRef.current) === null || _subContainerRef$curr2 === void 0 ? void 0 : _subContainerRef$curr2.offsetHeight);
30
+ }, [subContainerRef]);
31
+ return /* @__PURE__ */ jsx(Container, {
32
+ className: cn(className, cardClass, onClick || href ? activeClass : ""),
33
+ disabled,
34
+ href: disabled ? void 0 : href,
35
+ onClick: disabled ? void 0 : onClick,
36
+ ref,
37
+ role: onClick && !href ? "button" : void 0,
38
+ style,
39
+ target,
40
+ children: loading ? /* @__PURE__ */ jsx(Skeleton$1, { direction }) : /* @__PURE__ */ jsxs(Stack, {
41
+ className: fullHeight,
42
+ direction,
43
+ children: [image ? /* @__PURE__ */ jsx("img", {
44
+ alt: "",
45
+ className: imageClass[direction],
46
+ "data-disabled": disabled,
47
+ height: direction === "column" ? 120 : void 0,
48
+ src: image,
49
+ style: assignInlineVars({ [subContainerHeightVar]: subContainerHeight ? `${subContainerHeight.toString()}px` : void 0 }),
50
+ width: direction === "row" ? 220 : void 0
51
+ }) : null, /* @__PURE__ */ jsxs(Stack, {
52
+ direction,
53
+ flex: 1,
54
+ gap: 2,
55
+ children: [/* @__PURE__ */ jsxs(Stack, {
56
+ alignItems: subtitle || description || children ? void 0 : "center",
57
+ className: subContainer[href ? direction : "noHref"],
58
+ direction,
59
+ flex: "1 1 auto",
60
+ gap: 2,
61
+ ref: subContainerRef,
62
+ children: [icon !== null && icon !== void 0 ? icon : null, /* @__PURE__ */ jsxs(Stack, {
63
+ flex: "1 1 auto",
64
+ gap: 2,
65
+ justifyContent: "space-between",
66
+ children: [/* @__PURE__ */ jsxs(Stack, {
67
+ gap: .5,
68
+ children: [/* @__PURE__ */ jsxs(Stack, { children: [subtitle ? /* @__PURE__ */ jsx(Text, {
69
+ as: "small",
70
+ disabled,
71
+ prominence: "weak",
72
+ sentiment: "neutral",
73
+ variant: "caption",
74
+ children: subtitle
75
+ }) : null, /* @__PURE__ */ jsx(Text, {
76
+ as: headingTag,
77
+ disabled,
78
+ sentiment: "neutral",
79
+ variant: "bodyStrong",
80
+ children: title
81
+ })] }), description ? /* @__PURE__ */ jsx(Text, {
82
+ as: "p",
83
+ disabled,
84
+ sentiment: "neutral",
85
+ variant: "bodySmall",
86
+ children: description
87
+ }) : null]
88
+ }), children ? /* @__PURE__ */ jsx(Stack, { children }) : null]
89
+ })]
90
+ }), href ? /* @__PURE__ */ jsx(Stack, {
91
+ alignItems: direction === "column" ? "flex-end" : "center",
92
+ className: iconStack[direction],
93
+ direction,
94
+ flex: 1,
95
+ justifyContent: direction === "column" ? "center" : "flex-end",
96
+ children: /* @__PURE__ */ jsx("div", {
97
+ className: iconContainer,
98
+ children: /* @__PURE__ */ jsx(OpenInNewIcon, {
99
+ disabled,
100
+ sentiment: "neutral"
101
+ })
102
+ })
103
+ }) : null]
104
+ })]
105
+ })
106
+ });
107
+ });
108
+
109
+ //#endregion
110
+ export { ContentCard };
@@ -5,7 +5,7 @@ export declare const activeClass: string;
5
5
  export declare const cardClass: string;
6
6
  export declare const iconContainer: string;
7
7
  export declare const iconStack: Record<"column" | "row", string>;
8
- export declare const subContainer: Record<"column" | "row" | "noHref", string>;
8
+ export declare const subContainer: Record<"column" | "noHref" | "row", string>;
9
9
  export declare const imageClass: Record<"column" | "row", string>;
10
10
  export declare const fullHeight: string;
11
11
  export declare const skeletonImage: Record<"column" | "row", string>;
@@ -1,27 +1,32 @@
1
- /* empty css */
1
+ /* empty css */
2
+ /* empty css */
3
+
4
+ //#region src/components/ContentCard/styles.css.ts
2
5
  var subContainerHeightVar = "var(--uv_plus_u4r1ts0)";
3
6
  var skeletonHeightVar = "var(--uv_plus_u4r1ts1)";
4
7
  var skeletonWidthVar = "var(--uv_plus_u4r1ts2)";
5
8
  var activeClass = "uv_plus_u4r1ts3";
6
9
  var cardClass = "uv_plus_u4r1ts4";
7
10
  var iconContainer = "uv_plus_u4r1ts5";
8
- var iconStack = { column: "uv_plus_u4r1ts6", row: "uv_plus_u4r1ts7" };
9
- var subContainer = { column: "uv_plus_u4r1ts9 uv_plus_u4r1ts8", noHref: "uv_plus_u4r1tsa uv_plus_u4r1ts8", row: "uv_plus_u4r1tsb uv_plus_u4r1ts8" };
10
- var imageClass = { column: "uv_plus_u4r1tsd uv_plus_u4r1tsc", row: "uv_plus_u4r1tse uv_plus_u4r1tsc" };
11
+ var iconStack = {
12
+ column: "uv_plus_u4r1ts6",
13
+ row: "uv_plus_u4r1ts7"
14
+ };
15
+ var subContainer = {
16
+ column: "uv_plus_u4r1ts9 uv_plus_u4r1ts8",
17
+ noHref: "uv_plus_u4r1tsa uv_plus_u4r1ts8",
18
+ row: "uv_plus_u4r1tsb uv_plus_u4r1ts8"
19
+ };
20
+ var imageClass = {
21
+ column: "uv_plus_u4r1tsd uv_plus_u4r1tsc",
22
+ row: "uv_plus_u4r1tse uv_plus_u4r1tsc"
23
+ };
11
24
  var fullHeight = "uv_plus_u4r1tsf";
12
- var skeletonImage = { column: "uv_plus_u4r1tsh uv_plus_u4r1tsg", row: "uv_plus_u4r1tsi uv_plus_u4r1tsg" };
13
- var paddedStack = "uv_plus_u4r1tsj";
14
- export {
15
- activeClass,
16
- cardClass,
17
- fullHeight,
18
- iconContainer,
19
- iconStack,
20
- imageClass,
21
- paddedStack,
22
- skeletonHeightVar,
23
- skeletonImage,
24
- skeletonWidthVar,
25
- subContainer,
26
- subContainerHeightVar
25
+ var skeletonImage = {
26
+ column: "uv_plus_u4r1tsh uv_plus_u4r1tsg",
27
+ row: "uv_plus_u4r1tsi uv_plus_u4r1tsg"
27
28
  };
29
+ var paddedStack = "uv_plus_u4r1tsj";
30
+
31
+ //#endregion
32
+ export { activeClass, cardClass, fullHeight, iconContainer, iconStack, imageClass, paddedStack, skeletonHeightVar, skeletonImage, skeletonWidthVar, subContainer, subContainerHeightVar };
@@ -1,71 +1,57 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { OpenInNewIcon } from "@ultraviolet/icons/OpenInNewIcon";
1
+ 'use client';
2
+ import { __name } from "../../_virtual/_rolldown/runtime.js";
3
+ import { customStack, fullHeightStack, iconWrapper, styledWrapper } from "./styles.css.js";
4
4
  import { Stack, Text } from "@ultraviolet/ui";
5
5
  import { forwardRef } from "react";
6
- import { styledWrapper, fullHeightStack, customStack, iconWrapper } from "./styles.css.js";
7
- const Card = forwardRef(
8
- ({
9
- title,
10
- titleAs,
11
- subtitle,
12
- subtitleAs,
13
- description,
14
- children,
15
- href,
16
- target = "_blank",
17
- style
18
- }, ref) => /* @__PURE__ */ jsx(
19
- "a",
20
- {
21
- className: styledWrapper,
22
- href,
23
- ref,
24
- style,
25
- target,
26
- children: /* @__PURE__ */ jsxs(
27
- Stack,
28
- {
29
- alignItems: "center",
30
- className: fullHeightStack,
31
- direction: "row",
32
- gap: 2,
33
- justifyContent: "space-between",
34
- children: [
35
- /* @__PURE__ */ jsxs(Stack, { className: customStack, gap: "0.5", children: [
36
- /* @__PURE__ */ jsxs("div", { children: [
37
- subtitle ? /* @__PURE__ */ jsx(
38
- Text,
39
- {
40
- as: subtitleAs ?? "h5",
41
- oneLine: true,
42
- prominence: "weak",
43
- sentiment: "neutral",
44
- variant: "caption",
45
- children: subtitle
46
- }
47
- ) : null,
48
- /* @__PURE__ */ jsx(
49
- Text,
50
- {
51
- as: titleAs ?? "h3",
52
- oneLine: true,
53
- sentiment: "neutral",
54
- variant: "bodyStrong",
55
- children: title
56
- }
57
- )
58
- ] }),
59
- description ? /* @__PURE__ */ jsx(Text, { as: "p", oneLine: true, sentiment: "neutral", variant: "bodySmall", children: description }) : null,
60
- children
61
- ] }),
62
- /* @__PURE__ */ jsx("div", { className: iconWrapper, children: /* @__PURE__ */ jsx(OpenInNewIcon, { sentiment: "neutral" }) })
63
- ]
64
- }
65
- )
66
- }
67
- )
68
- );
69
- export {
70
- Card
71
- };
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ import { OpenInNewIcon } from "@ultraviolet/icons/OpenInNewIcon";
8
+
9
+ //#region src/components/ContentCardGroup/Card.tsx
10
+ const Card$1 = forwardRef(({ title, titleAs, subtitle, subtitleAs, description, children, href, target = "_blank", style }, ref) => /* @__PURE__ */ jsx("a", {
11
+ className: styledWrapper,
12
+ href,
13
+ ref,
14
+ style,
15
+ target,
16
+ children: /* @__PURE__ */ jsxs(Stack, {
17
+ alignItems: "center",
18
+ className: fullHeightStack,
19
+ direction: "row",
20
+ gap: 2,
21
+ justifyContent: "space-between",
22
+ children: [/* @__PURE__ */ jsxs(Stack, {
23
+ className: customStack,
24
+ gap: "0.5",
25
+ children: [
26
+ /* @__PURE__ */ jsxs("div", { children: [subtitle ? /* @__PURE__ */ jsx(Text, {
27
+ as: subtitleAs !== null && subtitleAs !== void 0 ? subtitleAs : "h5",
28
+ oneLine: true,
29
+ prominence: "weak",
30
+ sentiment: "neutral",
31
+ variant: "caption",
32
+ children: subtitle
33
+ }) : null, /* @__PURE__ */ jsx(Text, {
34
+ as: titleAs !== null && titleAs !== void 0 ? titleAs : "h3",
35
+ oneLine: true,
36
+ sentiment: "neutral",
37
+ variant: "bodyStrong",
38
+ children: title
39
+ })] }),
40
+ description ? /* @__PURE__ */ jsx(Text, {
41
+ as: "p",
42
+ oneLine: true,
43
+ sentiment: "neutral",
44
+ variant: "bodySmall",
45
+ children: description
46
+ }) : null,
47
+ children
48
+ ]
49
+ }), /* @__PURE__ */ jsx("div", {
50
+ className: iconWrapper,
51
+ children: /* @__PURE__ */ jsx(OpenInNewIcon, { sentiment: "neutral" })
52
+ })]
53
+ })
54
+ }));
55
+
56
+ //#endregion
57
+ export { Card$1 as Card };
@@ -1,15 +1,29 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { Stack, Skeleton } from "@ultraviolet/ui";
1
+ 'use client';
2
+ import { __name } from "../../_virtual/_rolldown/runtime.js";
4
3
  import { skeletonWrapper, squareSkeleton } from "./styles.css.js";
5
- const SkeletonCard = () => /* @__PURE__ */ jsx("div", { className: skeletonWrapper, children: /* @__PURE__ */ jsxs(Stack, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
6
- /* @__PURE__ */ jsxs(Stack, { gap: 2, children: [
7
- /* @__PURE__ */ jsx(Skeleton, { variant: "line" }),
8
- /* @__PURE__ */ jsx(Skeleton, { variant: "line" }),
9
- /* @__PURE__ */ jsx(Skeleton, { variant: "line" })
10
- ] }),
11
- /* @__PURE__ */ jsx(Skeleton, { className: squareSkeleton, variant: "square" })
12
- ] }) });
13
- export {
14
- SkeletonCard
15
- };
4
+ import { Skeleton, Stack } from "@ultraviolet/ui";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+
7
+ //#region src/components/ContentCardGroup/SkeletonCard.tsx
8
+ const SkeletonCard = () => /* @__PURE__ */ jsx("div", {
9
+ className: skeletonWrapper,
10
+ children: /* @__PURE__ */ jsxs(Stack, {
11
+ alignItems: "center",
12
+ direction: "row",
13
+ justifyContent: "space-between",
14
+ children: [/* @__PURE__ */ jsxs(Stack, {
15
+ gap: 2,
16
+ children: [
17
+ /* @__PURE__ */ jsx(Skeleton, { variant: "line" }),
18
+ /* @__PURE__ */ jsx(Skeleton, { variant: "line" }),
19
+ /* @__PURE__ */ jsx(Skeleton, { variant: "line" })
20
+ ]
21
+ }), /* @__PURE__ */ jsx(Skeleton, {
22
+ className: squareSkeleton,
23
+ variant: "square"
24
+ })]
25
+ })
26
+ });
27
+
28
+ //#endregion
29
+ export { SkeletonCard };
@@ -6,15 +6,15 @@ type BaseContentCardGroupProps = {
6
6
  };
7
7
  export declare const ContentCardGroup: import("react").ForwardRefExoticComponent<BaseContentCardGroupProps & import("react").RefAttributes<HTMLDivElement>> & {
8
8
  Card: import("react").ForwardRefExoticComponent<{
9
- title?: string;
10
- titleAs?: import("react").ElementType;
11
- subtitle?: string;
12
- subtitleAs?: import("react").ElementType;
13
- description?: string;
9
+ title?: string | undefined;
10
+ titleAs?: import("react").ElementType | undefined;
11
+ subtitle?: string | undefined;
12
+ subtitleAs?: import("react").ElementType | undefined;
13
+ description?: string | undefined;
14
14
  children?: ReactNode;
15
15
  href: string;
16
- target?: import("react").AnchorHTMLAttributes<HTMLAnchorElement>["target"];
17
- style?: CSSProperties;
16
+ target?: import("react").HTMLAttributeAnchorTarget | undefined;
17
+ style?: CSSProperties | undefined;
18
18
  } & import("react").RefAttributes<HTMLAnchorElement>>;
19
19
  };
20
20
  export {};
@@ -1,26 +1,21 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import { Stack } from "@ultraviolet/ui";
4
- import { forwardRef, Children } from "react";
5
- import { Card } from "./Card.js";
6
- import { SkeletonCard } from "./SkeletonCard.js";
1
+ 'use client';
2
+ import { __name } from "../../_virtual/_rolldown/runtime.js";
7
3
  import { groupCardWrapper } from "./styles.css.js";
8
- const BaseContentCardGroup = forwardRef(({ children, loading, style }, ref) => /* @__PURE__ */ jsx(
9
- Stack,
10
- {
11
- className: groupCardWrapper,
12
- direction: "column",
13
- ref,
14
- style,
15
- children: loading ? Children.map(children, (_child, index) => (
16
- // biome-ignore lint/suspicious/noArrayIndexKey: error
17
- /* @__PURE__ */ jsx(SkeletonCard, {}, index)
18
- )) : children
19
- }
20
- ));
21
- const ContentCardGroup = Object.assign(BaseContentCardGroup, {
22
- Card
23
- });
24
- export {
25
- ContentCardGroup
26
- };
4
+ import { Card as Card$1 } from "./Card.js";
5
+ import { SkeletonCard } from "./SkeletonCard.js";
6
+ import { Stack } from "@ultraviolet/ui";
7
+ import { Children, forwardRef } from "react";
8
+ import { jsx } from "react/jsx-runtime";
9
+
10
+ //#region src/components/ContentCardGroup/index.tsx
11
+ const BaseContentCardGroup = forwardRef(({ children, loading, style }, ref) => /* @__PURE__ */ jsx(Stack, {
12
+ className: groupCardWrapper,
13
+ direction: "column",
14
+ ref,
15
+ style,
16
+ children: loading ? Children.map(children, (_child, index) => /* @__PURE__ */ jsx(SkeletonCard, {}, index)) : children
17
+ }));
18
+ const ContentCardGroup = Object.assign(BaseContentCardGroup, { Card: Card$1 });
19
+
20
+ //#endregion
21
+ export { ContentCardGroup };
@@ -1,5 +1,6 @@
1
- /* empty css */
2
- /* empty css */
1
+ /* empty css */
2
+
3
+ //#region src/components/ContentCardGroup/styles.css.ts
3
4
  var customStack = "uv_plus_1gpmh3x0";
4
5
  var styledWrapper = "uv_plus_1gpmh3x1";
5
6
  var iconWrapper = "uv_plus_1gpmh3x2";
@@ -7,12 +8,6 @@ var fullHeightStack = "uv_plus_1gpmh3x3";
7
8
  var groupCardWrapper = "uv_plus_1gpmh3x4";
8
9
  var skeletonWrapper = "uv_plus_1gpmh3x5";
9
10
  var squareSkeleton = "uv_plus_1gpmh3x6";
10
- export {
11
- customStack,
12
- fullHeightStack,
13
- groupCardWrapper,
14
- iconWrapper,
15
- skeletonWrapper,
16
- squareSkeleton,
17
- styledWrapper
18
- };
11
+
12
+ //#endregion
13
+ export { customStack, fullHeightStack, groupCardWrapper, iconWrapper, skeletonWrapper, squareSkeleton, styledWrapper };