@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
package/README.md CHANGED
@@ -9,7 +9,7 @@ Ultraviolet Plus is a set of complex components that are built on top of Ultravi
9
9
  ## Get Started
10
10
 
11
11
  ```sh
12
- $ pnpm add @ultraviolet/ui @ultraviolet/plus
12
+ $ pnpm add @ultraviolet/plus
13
13
  ```
14
14
 
15
15
  ### Usage
@@ -1,6 +1,6 @@
1
1
  import { langs } from '@uiw/codemirror-extensions-langs';
2
2
  import CodeMirror from '@uiw/react-codemirror';
3
- import type { ComponentProps, ReactNode } from 'react';
3
+ import type { ComponentProps, CSSProperties, ReactNode } from 'react';
4
4
  type CodeEditorProps = {
5
5
  value: string;
6
6
  onChange: ComponentProps<typeof CodeMirror>['onChange'];
@@ -24,6 +24,7 @@ type CodeEditorProps = {
24
24
  className?: string;
25
25
  error?: string;
26
26
  lineNumbers?: boolean;
27
+ style?: CSSProperties;
27
28
  };
28
- export declare const CodeEditor: ({ value, onChange, extensions, onBlur, height, readOnly, autoCompletion, disabled, label, copyButton, id, helper, labelDescription, "aria-label": ariaLabel, "data-testid": dataTestId, className, error, lineNumbers, }: CodeEditorProps) => import("@emotion/react/jsx-runtime").JSX.Element;
29
+ export declare const CodeEditor: ({ value, onChange, extensions, onBlur, height, readOnly, autoCompletion, disabled, label, copyButton, id, helper, labelDescription, "aria-label": ariaLabel, "data-testid": dataTestId, className, error, lineNumbers, style, }: CodeEditorProps) => import("react/jsx-runtime").JSX.Element;
29
30
  export {};
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsxs, jsx } from "@emotion/react/jsx-runtime";
2
+ import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import { langs } from "@uiw/codemirror-extensions-langs";
4
4
  import { material } from "@uiw/codemirror-theme-material";
5
5
  import CodeMirror from "@uiw/react-codemirror";
@@ -23,21 +23,52 @@ const CodeEditor = ({
23
23
  "data-testid": dataTestId,
24
24
  className,
25
25
  error,
26
- lineNumbers = true
27
- }) => /* @__PURE__ */ jsxs(Stack, { className: disabled ? disabledStack : "", gap: 0.5, children: [
26
+ lineNumbers = true,
27
+ style
28
+ }) => /* @__PURE__ */ jsxs(Stack, { className: disabled ? disabledStack : "", gap: 0.5, style, children: [
28
29
  label ? /* @__PURE__ */ jsx(Label, { labelDescription, children: label }) : null,
29
30
  /* @__PURE__ */ jsxs("div", { className: codeEditor[disabled ? "disabled" : "default"], children: [
30
- /* @__PURE__ */ jsx(CodeMirror, { "aria-disabled": disabled, "aria-label": ariaLabel, basicSetup: {
31
- autocompletion: autoCompletion,
32
- highlightActiveLine: false,
33
- highlightActiveLineGutter: false,
34
- lineNumbers
35
- }, className, "data-testid": dataTestId, editable: !disabled || !readOnly, extensions: [langs[extensions]?.() ?? langs["sh"]], height, id, onBlur, onChange, onUpdate: () => {
36
- if (disabled) {
37
- document.getSelection()?.empty();
31
+ /* @__PURE__ */ jsx(
32
+ CodeMirror,
33
+ {
34
+ "aria-disabled": disabled,
35
+ "aria-label": ariaLabel,
36
+ basicSetup: {
37
+ autocompletion: autoCompletion,
38
+ highlightActiveLine: false,
39
+ highlightActiveLineGutter: false,
40
+ lineNumbers
41
+ },
42
+ className,
43
+ "data-testid": dataTestId,
44
+ editable: !disabled || !readOnly,
45
+ extensions: [langs[extensions]?.() ?? langs["sh"]],
46
+ height,
47
+ id,
48
+ onBlur,
49
+ onChange,
50
+ onUpdate: () => {
51
+ if (disabled) {
52
+ document.getSelection()?.empty();
53
+ }
54
+ },
55
+ readOnly: readOnly || disabled,
56
+ theme: material,
57
+ value,
58
+ width: "100%"
38
59
  }
39
- }, readOnly: readOnly || disabled, theme: material, value, width: "100%" }),
40
- copyButton$1 && !disabled ? /* @__PURE__ */ jsx(CopyButton, { bordered: true, className: copyButton, sentiment: "neutral", size: "small", value, children: typeof copyButton$1 === "string" ? copyButton$1 : void 0 }) : null
60
+ ),
61
+ copyButton$1 && !disabled ? /* @__PURE__ */ jsx(
62
+ CopyButton,
63
+ {
64
+ bordered: true,
65
+ className: copyButton,
66
+ sentiment: "neutral",
67
+ size: "small",
68
+ value,
69
+ children: typeof copyButton$1 === "string" ? copyButton$1 : void 0
70
+ }
71
+ ) : null
41
72
  ] }),
42
73
  error && typeof error !== "boolean" ? /* @__PURE__ */ jsx(Text, { as: "span", sentiment: "danger", variant: "caption", children: error }) : null,
43
74
  !error && helper ? /* @__PURE__ */ jsx(Text, { as: "span", prominence: "weak", sentiment: "neutral", variant: "caption", children: helper }) : null
@@ -1,5 +1,5 @@
1
1
  type SkeletonProps = {
2
2
  direction: 'row' | 'column';
3
3
  };
4
- export declare const Skeleton: ({ direction }: SkeletonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
4
+ export declare const Skeleton: ({ direction }: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
5
5
  export {};
@@ -1,15 +1,20 @@
1
1
  "use client";
2
- import { jsxs, jsx } from "@emotion/react/jsx-runtime";
2
+ import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import { Stack, Skeleton as Skeleton$1 } from "@ultraviolet/ui";
4
4
  import { assignInlineVars } from "@vanilla-extract/dynamic";
5
5
  import { skeletonImage, skeletonWidthVar, skeletonHeightVar, paddedStack } from "./styles.css.js";
6
- const Skeleton = ({
7
- direction
8
- }) => /* @__PURE__ */ jsxs(Stack, { direction, children: [
9
- /* @__PURE__ */ jsx(Skeleton$1, { className: skeletonImage[direction], style: assignInlineVars({
10
- [skeletonHeightVar]: direction === "column" ? "120px" : "unset",
11
- [skeletonWidthVar]: direction === "row" ? "220px" : "100%"
12
- }), variant: "square" }),
6
+ const Skeleton = ({ direction }) => /* @__PURE__ */ jsxs(Stack, { direction, children: [
7
+ /* @__PURE__ */ jsx(
8
+ Skeleton$1,
9
+ {
10
+ className: skeletonImage[direction],
11
+ style: assignInlineVars({
12
+ [skeletonHeightVar]: direction === "column" ? "120px" : "unset",
13
+ [skeletonWidthVar]: direction === "row" ? "220px" : "100%"
14
+ }),
15
+ variant: "square"
16
+ }
17
+ ),
13
18
  /* @__PURE__ */ jsxs(Stack, { className: paddedStack, gap: 2, children: [
14
19
  /* @__PURE__ */ jsx(Skeleton$1, { variant: "line" }),
15
20
  /* @__PURE__ */ jsx(Skeleton$1, { variant: "line" }),
@@ -1,4 +1,4 @@
1
- import type { MouseEventHandler, ReactNode } from 'react';
1
+ import type { CSSProperties, MouseEventHandler, ReactNode } from 'react';
2
2
  type ContentCardProps = {
3
3
  direction?: 'row' | 'column';
4
4
  /**
@@ -25,6 +25,7 @@ type ContentCardProps = {
25
25
  disabled?: boolean;
26
26
  loading?: boolean;
27
27
  className?: string;
28
+ style?: CSSProperties;
28
29
  };
29
30
  /**
30
31
  * ContentCard is a component that displays a title, subtitle, description, image and icon in a card.
@@ -1,61 +1,142 @@
1
1
  "use client";
2
- import { jsx, jsxs } from "@emotion/react/jsx-runtime";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { OpenInNewIcon } from "@ultraviolet/icons";
4
4
  import { Stack, Text } from "@ultraviolet/ui";
5
5
  import { assignInlineVars } from "@vanilla-extract/dynamic";
6
6
  import { forwardRef, useRef, useState, useMemo, useEffect } from "react";
7
7
  import { Skeleton } from "./Skeleton.js";
8
8
  import { cardClass, activeClass, fullHeight, imageClass, subContainerHeightVar, subContainer, iconStack, iconContainer } from "./styles.css.js";
9
- const ContentCard = forwardRef(({
10
- image,
11
- direction = "column",
12
- icon,
13
- subtitle,
14
- title,
15
- headingTag = "h3",
16
- description,
17
- children,
18
- href,
19
- target = "_blank",
20
- onClick,
21
- disabled,
22
- loading,
23
- className
24
- }, ref) => {
25
- const subContainerRef = useRef(null);
26
- const [subContainerHeight, setSubContainerHeight] = useState(subContainerRef?.current?.offsetHeight);
27
- const Container = useMemo(() => {
28
- if (href) {
29
- return "a";
30
- }
31
- if (onClick) {
32
- return "button";
33
- }
34
- return "div";
35
- }, [href, onClick]);
36
- useEffect(() => setSubContainerHeight(subContainerRef?.current?.offsetHeight), [subContainerRef]);
37
- return /* @__PURE__ */ jsx(Container, { className: `${className ? `${className} ` : ""}${cardClass}${onClick || href ? ` ${activeClass}` : ""}`, disabled, href: !disabled ? href : void 0, onClick: !disabled ? onClick : void 0, ref, role: onClick && !href ? "button" : void 0, target, children: loading ? /* @__PURE__ */ jsx(Skeleton, { direction }) : /* @__PURE__ */ jsxs(Stack, { className: fullHeight, direction, children: [
38
- image ? /* @__PURE__ */ jsx("img", { alt: "", className: imageClass[direction], "data-disabled": disabled, height: direction === "column" ? 120 : void 0, src: image, style: assignInlineVars({
39
- [subContainerHeightVar]: subContainerHeight ? `${subContainerHeight.toString()}px` : void 0
40
- }), width: direction === "row" ? 220 : void 0 }) : null,
41
- /* @__PURE__ */ jsxs(Stack, { direction, flex: 1, gap: 2, children: [
42
- /* @__PURE__ */ jsxs(Stack, { alignItems: !subtitle && !description && !children ? "center" : void 0, className: subContainer[!href ? "noHref" : direction], direction, flex: "1 1 auto", gap: 2, ref: subContainerRef, children: [
43
- icon ?? null,
44
- /* @__PURE__ */ jsxs(Stack, { flex: "1 1 auto", gap: 2, justifyContent: "space-between", children: [
45
- /* @__PURE__ */ jsxs(Stack, { gap: 0.5, children: [
46
- /* @__PURE__ */ jsxs(Stack, { children: [
47
- subtitle ? /* @__PURE__ */ jsx(Text, { as: "small", disabled, prominence: "weak", sentiment: "neutral", variant: "caption", children: subtitle }) : null,
48
- /* @__PURE__ */ jsx(Text, { as: headingTag, disabled, sentiment: "neutral", variant: "bodyStrong", children: title })
49
- ] }),
50
- description ? /* @__PURE__ */ jsx(Text, { as: "p", disabled, sentiment: "neutral", variant: "bodySmall", children: description }) : null
51
- ] }),
52
- children ? /* @__PURE__ */ jsx(Stack, { children }) : null
9
+ const ContentCard = forwardRef(
10
+ ({
11
+ image,
12
+ direction = "column",
13
+ icon,
14
+ subtitle,
15
+ title,
16
+ headingTag = "h3",
17
+ description,
18
+ children,
19
+ href,
20
+ target = "_blank",
21
+ onClick,
22
+ disabled,
23
+ loading,
24
+ className,
25
+ style
26
+ }, ref) => {
27
+ const subContainerRef = useRef(null);
28
+ const [subContainerHeight, setSubContainerHeight] = useState(
29
+ subContainerRef?.current?.offsetHeight
30
+ );
31
+ const Container = useMemo(() => {
32
+ if (href) {
33
+ return "a";
34
+ }
35
+ if (onClick) {
36
+ return "button";
37
+ }
38
+ return "div";
39
+ }, [href, onClick]);
40
+ useEffect(
41
+ () => setSubContainerHeight(subContainerRef?.current?.offsetHeight),
42
+ [subContainerRef]
43
+ );
44
+ return /* @__PURE__ */ jsx(
45
+ Container,
46
+ {
47
+ className: `${className ? `${className} ` : ""}${cardClass}${onClick || href ? ` ${activeClass}` : ""}`,
48
+ disabled,
49
+ href: !disabled ? href : void 0,
50
+ onClick: !disabled ? onClick : void 0,
51
+ ref,
52
+ role: onClick && !href ? "button" : void 0,
53
+ style,
54
+ target,
55
+ children: loading ? /* @__PURE__ */ jsx(Skeleton, { direction }) : /* @__PURE__ */ jsxs(Stack, { className: fullHeight, direction, children: [
56
+ image ? /* @__PURE__ */ jsx(
57
+ "img",
58
+ {
59
+ alt: "",
60
+ className: imageClass[direction],
61
+ "data-disabled": disabled,
62
+ height: direction === "column" ? 120 : void 0,
63
+ src: image,
64
+ style: assignInlineVars({
65
+ [subContainerHeightVar]: subContainerHeight ? `${subContainerHeight.toString()}px` : void 0
66
+ }),
67
+ width: direction === "row" ? 220 : void 0
68
+ }
69
+ ) : null,
70
+ /* @__PURE__ */ jsxs(Stack, { direction, flex: 1, gap: 2, children: [
71
+ /* @__PURE__ */ jsxs(
72
+ Stack,
73
+ {
74
+ alignItems: !subtitle && !description && !children ? "center" : void 0,
75
+ className: subContainer[!href ? "noHref" : direction],
76
+ direction,
77
+ flex: "1 1 auto",
78
+ gap: 2,
79
+ ref: subContainerRef,
80
+ children: [
81
+ icon ?? null,
82
+ /* @__PURE__ */ jsxs(Stack, { flex: "1 1 auto", gap: 2, justifyContent: "space-between", children: [
83
+ /* @__PURE__ */ jsxs(Stack, { gap: 0.5, children: [
84
+ /* @__PURE__ */ jsxs(Stack, { children: [
85
+ subtitle ? /* @__PURE__ */ jsx(
86
+ Text,
87
+ {
88
+ as: "small",
89
+ disabled,
90
+ prominence: "weak",
91
+ sentiment: "neutral",
92
+ variant: "caption",
93
+ children: subtitle
94
+ }
95
+ ) : null,
96
+ /* @__PURE__ */ jsx(
97
+ Text,
98
+ {
99
+ as: headingTag,
100
+ disabled,
101
+ sentiment: "neutral",
102
+ variant: "bodyStrong",
103
+ children: title
104
+ }
105
+ )
106
+ ] }),
107
+ description ? /* @__PURE__ */ jsx(
108
+ Text,
109
+ {
110
+ as: "p",
111
+ disabled,
112
+ sentiment: "neutral",
113
+ variant: "bodySmall",
114
+ children: description
115
+ }
116
+ ) : null
117
+ ] }),
118
+ children ? /* @__PURE__ */ jsx(Stack, { children }) : null
119
+ ] })
120
+ ]
121
+ }
122
+ ),
123
+ href ? /* @__PURE__ */ jsx(
124
+ Stack,
125
+ {
126
+ alignItems: direction === "column" ? "flex-end" : "center",
127
+ className: iconStack[direction],
128
+ direction,
129
+ flex: 1,
130
+ justifyContent: direction === "column" ? "center" : "end",
131
+ children: /* @__PURE__ */ jsx("div", { className: iconContainer, children: /* @__PURE__ */ jsx(OpenInNewIcon, { disabled, sentiment: "neutral" }) })
132
+ }
133
+ ) : null
134
+ ] })
53
135
  ] })
54
- ] }),
55
- href ? /* @__PURE__ */ jsx(Stack, { alignItems: direction === "column" ? "flex-end" : "center", className: iconStack[direction], direction, flex: 1, justifyContent: direction === "column" ? "center" : "end", children: /* @__PURE__ */ jsx("div", { className: iconContainer, children: /* @__PURE__ */ jsx(OpenInNewIcon, { disabled, sentiment: "neutral" }) }) }) : null
56
- ] })
57
- ] }) });
58
- });
136
+ }
137
+ );
138
+ }
139
+ );
59
140
  export {
60
141
  ContentCard
61
142
  };
@@ -1,4 +1,4 @@
1
- import type { AnchorHTMLAttributes, ElementType, ReactNode } from 'react';
1
+ import type { AnchorHTMLAttributes, CSSProperties, ElementType, ReactNode } from 'react';
2
2
  type CardProps = {
3
3
  title?: string;
4
4
  titleAs?: ElementType;
@@ -8,6 +8,7 @@ type CardProps = {
8
8
  children?: ReactNode;
9
9
  href: string;
10
10
  target?: AnchorHTMLAttributes<HTMLAnchorElement>['target'];
11
+ style?: CSSProperties;
11
12
  };
12
13
  export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLAnchorElement>>;
13
14
  export {};
@@ -1,92 +1,71 @@
1
1
  "use client";
2
- import { jsx, jsxs } from "@emotion/react/jsx-runtime";
3
- import _styled from "@emotion/styled/base";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
4
3
  import { OpenInNewIcon } from "@ultraviolet/icons";
5
- import { Text, Stack } from "@ultraviolet/ui";
4
+ import { Stack, Text } from "@ultraviolet/ui";
6
5
  import { forwardRef } from "react";
7
- function _EMOTION_STRINGIFIED_CSS_ERROR__() {
8
- 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).";
9
- }
10
- const StyledStack = /* @__PURE__ */ _styled(Stack, process.env.NODE_ENV === "production" ? {
11
- target: "eqcw8nr3"
12
- } : {
13
- target: "eqcw8nr3",
14
- label: "StyledStack"
15
- })(process.env.NODE_ENV === "production" ? {
16
- name: "ovk77c",
17
- styles: "min-width:0"
18
- } : {
19
- name: "ovk77c",
20
- styles: "min-width:0/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvQ29udGVudENhcmRHcm91cC9DYXJkLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtQmlDIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvQ29udGVudENhcmRHcm91cC9DYXJkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50J1xuXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IE9wZW5Jbk5ld0ljb24gfSBmcm9tICdAdWx0cmF2aW9sZXQvaWNvbnMnXG5pbXBvcnQ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ICBzdWJ0aXRsZSxcbiAgICAgIHN1YnRpdGxlQXMsXG4gICAgICBkZXNjcmlwdGlvbixcbiAgICAgIGNoaWxkcmVuLFxuICAgICAgaHJlZixcbiAgICAgIHRhcmdldCA9ICdfYmxhbmsnLFxuICAgIH0sXG4gICAgcmVmLFxuICApID0+IChcbiAgICA8U3R5bGVkV3JhcHBlciBocmVmPXtocmVmfSByZWY9e3JlZn0gdGFyZ2V0PXt0YXJnZXR9PlxuICAgICAgPEZ1bGxIZWlnaHRTdGFja1xuICAgICAgICBhbGlnbkl0ZW1zPVwiY2VudGVyXCJcbiAgICAgICAgZGlyZWN0aW9uPVwicm93XCJcbiAgICAgICAgZ2FwPXsyfVxuICAgICAgICBqdXN0aWZ5Q29udGVudD1cInNwYWNlLWJldHdlZW5cIlxuICAgICAgPlxuICAgICAgICA8U3R5bGVkU3RhY2sgZ2FwPVwiMC41XCI+XG4gICAgICAgICAgPGRpdj5cbiAgICAgICAgICAgIHtzdWJ0aXRsZSA/IChcbiAgICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgICBhcz17c3VidGl0bGVBcyB8fCAnaDUnfVxuICAgICAgICAgICAgICAgIG9uZUxpbmVcbiAgICAgICAgICAgICAgICBwcm9taW5lbmNlPVwid2Vha1wiXG4gICAgICAgICAgICAgICAgc2VudGltZW50PVwibmV1dHJhbFwiXG4gICAgICAgICAgICAgICAgdmFyaWFudD1cImNhcHRpb25cIlxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAge3N1YnRpdGxlfVxuICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICApIDogbnVsbH1cbiAgICAgICAgICAgIDxUZXh0XG4gICAgICAgICAgICAgIGFzPXt0aXRsZUFzIHx8ICdoMyd9XG4gICAgICAgICAgICAgIG9uZUxpbmVcbiAgICAgICAgICAgICAgc2VudGltZW50PVwibmV1dHJhbFwiXG4gICAgICAgICAgICAgIHZhcmlhbnQ9XCJib2R5U3Ryb25nXCJcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAge3RpdGxlfVxuICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIHtkZXNjcmlwdGlvbiA/IChcbiAgICAgICAgICAgIDxUZXh0IGFzPVwicFwiIG9uZUxpbmUgc2VudGltZW50PVwibmV1dHJhbFwiIHZhcmlhbnQ9XCJib2R5U21hbGxcIj5cbiAgICAgICAgICAgICAge2Rlc2NyaXB0aW9ufVxuICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgPC9TdHlsZWRTdGFjaz5cbiAgICAgICAgPEljb25XcmFwcGVyPlxuICAgICAgICAgIDxPcGVuSW5OZXdJY29uIHNlbnRpbWVudD1cIm5ldXRyYWxcIiAvPlxuICAgICAgICA8L0ljb25XcmFwcGVyPlxuICAgICAgPC9GdWxsSGVpZ2h0U3RhY2s+XG4gICAgPC9TdHlsZWRXcmFwcGVyPlxuICApLFxuKVxuIl19 */",
21
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
22
- });
23
- const IconWrapper = /* @__PURE__ */ _styled("div", process.env.NODE_ENV === "production" ? {
24
- target: "eqcw8nr2"
25
- } : {
26
- target: "eqcw8nr2",
27
- label: "IconWrapper"
28
- })("display:inline-flex;background:", ({
29
- theme
30
- }) => theme.colors.neutral.backgroundWeak, ";padding:", ({
31
- theme
32
- }) => theme.space["1"], ";border-radius:", ({
33
- theme
34
- }) => theme.radii.default, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvQ29udGVudENhcmRHcm91cC9DYXJkLnRzeCJdLCJuYW1lcyI6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5ldXRyYWwuYmFja2dyb3VuZEhvdmVyfTtcblxuICAgICYgJHtJY29uV3JhcHBlcn0ge1xuICAgICAgYmFja2dyb3VuZDogbm9uZTtcbiAgICB9XG4gIH1cbmBcblxuY29uc3QgRnVsbEhlaWdodFN0YWNrID0gc3R5bGVkKFN0YWNrKWBcbiAgaGVpZ2h0OiAxMDAlO1xuYFxuXG5leHBvcnQgY29uc3QgQ2FyZCA9IGZvcndhcmRSZWY8SFRNTEFuY2hvckVsZW1lbnQsIENhcmRQcm9wcz4oXG4gIChcbiAgICB7XG4gICAgICB0aXRsZSxcbiAgICAgIHRpdGxlQXMsXG4gICAgICBzdWJ0aXRsZSxcbiAgICAgIHN1YnRpdGxlQXMsXG4gICAgICBkZXNjcmlwdGlvbixcbiAgICAgIGNoaWxkcmVuLFxuICAgICAgaHJlZixcbiAgICAgIHRhcmdldCA9ICdfYmxhbmsnLFxuICAgIH0sXG4gICAgcmVmLFxuICApID0+IChcbiAgICA8U3R5bGVkV3JhcHBlciBocmVmPXtocmVmfSByZWY9e3JlZn0gdGFyZ2V0PXt0YXJnZXR9PlxuICAgICAgPEZ1bGxIZWlnaHRTdGFja1xuICAgICAgICBhbGlnbkl0ZW1zPVwiY2VudGVyXCJcbiAgICAgICAgZGlyZWN0aW9uPVwicm93XCJcbiAgICAgICAgZ2FwPXsyfVxuICAgICAgICBqdXN0aWZ5Q29udGVudD1cInNwYWNlLWJldHdlZW5cIlxuICAgICAgPlxuICAgICAgICA8U3R5bGVkU3RhY2sgZ2FwPVwiMC41XCI+XG4gICAgICAgICAgPGRpdj5cbiAgICAgICAgICAgIHtzdWJ0aXRsZSA/IChcbiAgICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgICBhcz17c3VidGl0bGVBcyB8fCAnaDUnfVxuICAgICAgICAgICAgICAgIG9uZUxpbmVcbiAgICAgICAgICAgICAgICBwcm9taW5lbmNlPVwid2Vha1wiXG4gICAgICAgICAgICAgICAgc2VudGltZW50PVwibmV1dHJhbFwiXG4gICAgICAgICAgICAgICAgdmFyaWFudD1cImNhcHRpb25cIlxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAge3N1YnRpdGxlfVxuICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICApIDogbnVsbH1cbiAgICAgICAgICAgIDxUZXh0XG4gICAgICAgICAgICAgIGFzPXt0aXRsZUFzIHx8ICdoMyd9XG4gICAgICAgICAgICAgIG9uZUxpbmVcbiAgICAgICAgICAgICAgc2VudGltZW50PVwibmV1dHJhbFwiXG4gICAgICAgICAgICAgIHZhcmlhbnQ9XCJib2R5U3Ryb25nXCJcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAge3RpdGxlfVxuICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIHtkZXNjcmlwdGlvbiA/IChcbiAgICAgICAgICAgIDxUZXh0IGFzPVwicFwiIG9uZUxpbmUgc2VudGltZW50PVwibmV1dHJhbFwiIHZhcmlhbnQ9XCJib2R5U21hbGxcIj5cbiAgICAgICAgICAgICAge2Rlc2NyaXB0aW9ufVxuICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgPC9TdHlsZWRTdGFjaz5cbiAgICAgICAgPEljb25XcmFwcGVyPlxuICAgICAgICAgIDxPcGVuSW5OZXdJY29uIHNlbnRpbWVudD1cIm5ldXRyYWxcIiAvPlxuICAgICAgICA8L0ljb25XcmFwcGVyPlxuICAgICAgPC9GdWxsSGVpZ2h0U3RhY2s+XG4gICAgPC9TdHlsZWRXcmFwcGVyPlxuICApLFxuKVxuIl19 */"));
35
- const StyledWrapper = /* @__PURE__ */ _styled("a", process.env.NODE_ENV === "production" ? {
36
- target: "eqcw8nr1"
37
- } : {
38
- target: "eqcw8nr1",
39
- label: "StyledWrapper"
40
- })("padding:", ({
41
- theme
42
- }) => theme.space["3"], ";text-decoration:none;height:100%;&:not(:first-child){border-top:1px solid ", ({
43
- theme
44
- }) => theme.colors.neutral.border, ";}&:first-child{border-radius:", ({
45
- theme
46
- }) => theme.radii.default, " ", ({
47
- theme
48
- }) => theme.radii.default, " 0 0;}&:last-child{border-radius:0 0 ", ({
49
- theme
50
- }) => theme.radii.default, " ", ({
51
- theme
52
- }) => theme.radii.default, ";}& ", IconWrapper, "{background:", ({
53
- theme
54
- }) => theme.colors.neutral.backgroundWeak, ";}&:hover{background:", ({
55
- theme
56
- }) => theme.colors.neutral.backgroundHover, ";& ", IconWrapper, "{background:none;}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvQ29udGVudENhcmRHcm91cC9DYXJkLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE4QjhCIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvQ29udGVudENhcmRHcm91cC9DYXJkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50J1xuXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IE9wZW5Jbk5ld0ljb24gfSBmcm9tICdAdWx0cmF2aW9sZXQvaWNvbnMnXG5pbXBvcnQgeyBTdGFjaywgVGV4dCB9IGZyb20gJ0B1bHRyYXZpb2xldC91aSdcbmltcG9ydCB0eXBlIHsgQW5jaG9ySFRNTEF0dHJpYnV0ZXMsIEVsZW1lbnRUeXBlLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IGZ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cbiAgICA8U3R5bGVkV3JhcHBlciBocmVmPXtocmVmfSByZWY9e3JlZn0gdGFyZ2V0PXt0YXJnZXR9PlxuICAgICAgPEZ1bGxIZWlnaHRTdGFja1xuICAgICAgICBhbGlnbkl0ZW1zPVwiY2VudGVyXCJcbiAgICAgICAgZGlyZWN0aW9uPVwicm93XCJcbiAgICAgICAgZ2FwPXsyfVxuICAgICAgICBqdXN0aWZ5Q29udGVudD1cInNwYWNlLWJldHdlZW5cIlxuICAgICAgPlxuICAgICAgICA8U3R5bGVkU3RhY2sgZ2FwPVwiMC41XCI+XG4gICAgICAgICAgPGRpdj5cbiAgICAgICAgICAgIHtzdWJ0aXRsZSA/IChcbiAgICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgICBhcz17c3VidGl0bGVBcyB8fCAnaDUnfVxuICAgICAgICAgICAgICAgIG9uZUxpbmVcbiAgICAgICAgICAgICAgICBwcm9taW5lbmNlPVwid2Vha1wiXG4gICAgICAgICAgICAgICAgc2VudGltZW50PVwibmV1dHJhbFwiXG4gICAgICAgICAgICAgICAgdmFyaWFudD1cImNhcHRpb25cIlxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAge3N1YnRpdGxlfVxuICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICApIDogbnVsbH1cbiAgICAgICAgICAgIDxUZXh0XG4gICAgICAgICAgICAgIGFzPXt0aXRsZUFzIHx8ICdoMyd9XG4gICAgICAgICAgICAgIG9uZUxpbmVcbiAgICAgICAgICAgICAgc2VudGltZW50PVwibmV1dHJhbFwiXG4gICAgICAgICAgICAgIHZhcmlhbnQ9XCJib2R5U3Ryb25nXCJcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAge3RpdGxlfVxuICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIHtkZXNjcmlwdGlvbiA/IChcbiAgICAgICAgICAgIDxUZXh0IGFzPVwicFwiIG9uZUxpbmUgc2VudGltZW50PVwibmV1dHJhbFwiIHZhcmlhbnQ9XCJib2R5U21hbGxcIj5cbiAgICAgICAgICAgICAge2Rlc2NyaXB0aW9ufVxuICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgPC9TdHlsZWRTdGFjaz5cbiAgICAgICAgPEljb25XcmFwcGVyPlxuICAgICAgICAgIDxPcGVuSW5OZXdJY29uIHNlbnRpbWVudD1cIm5ldXRyYWxcIiAvPlxuICAgICAgICA8L0ljb25XcmFwcGVyPlxuICAgICAgPC9GdWxsSGVpZ2h0U3RhY2s+XG4gICAgPC9TdHlsZWRXcmFwcGVyPlxuICApLFxuKVxuIl19 */"));
57
- const FullHeightStack = /* @__PURE__ */ _styled(Stack, process.env.NODE_ENV === "production" ? {
58
- target: "eqcw8nr0"
59
- } : {
60
- target: "eqcw8nr0",
61
- label: "FullHeightStack"
62
- })(process.env.NODE_ENV === "production" ? {
63
- name: "13udsys",
64
- styles: "height:100%"
65
- } : {
66
- name: "13udsys",
67
- styles: "height:100%/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvQ29udGVudENhcmRHcm91cC9DYXJkLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE4RHFDIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvQ29udGVudENhcmRHcm91cC9DYXJkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50J1xuXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZ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W1lbnQsIENhcmRQcm9wcz4oXG4gIChcbiAgICB7XG4gICAgICB0aXRsZSxcbiAgICAgIHRpdGxlQXMsXG4gICAgICBzdWJ0aXRsZSxcbiAgICAgIHN1YnRpdGxlQXMsXG4gICAgICBkZXNjcmlwdGlvbixcbiAgICAgIGNoaWxkcmVuLFxuICAgICAgaHJlZixcbiAgICAgIHRhcmdldCA9ICdfYmxhbmsnLFxuICAgIH0sXG4gICAgcmVmLFxuICApID0+IChcbiAgICA8U3R5bGVkV3JhcHBlciBocmVmPXtocmVmfSByZWY9e3JlZn0gdGFyZ2V0PXt0YXJnZXR9PlxuICAgICAgPEZ1bGxIZWlnaHRTdGFja1xuICAgICAgICBhbGlnbkl0ZW1zPVwiY2VudGVyXCJcbiAgICAgICAgZGlyZWN0aW9uPVwicm93XCJcbiAgICAgICAgZ2FwPXsyfVxuICAgICAgICBqdXN0aWZ5Q29udGVudD1cInNwYWNlLWJldHdlZW5cIlxuICAgICAgPlxuICAgICAgICA8U3R5bGVkU3RhY2sgZ2FwPVwiMC41XCI+XG4gICAgICAgICAgPGRpdj5cbiAgICAgICAgICAgIHtzdWJ0aXRsZSA/IChcbiAgICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgICBhcz17c3VidGl0bGVBcyB8fCAnaDUnfVxuICAgICAgICAgICAgICAgIG9uZUxpbmVcbiAgICAgICAgICAgICAgICBwcm9taW5lbmNlPVwid2Vha1wiXG4gICAgICAgICAgICAgICAgc2VudGltZW50PVwibmV1dHJhbFwiXG4gICAgICAgICAgICAgICAgdmFyaWFudD1cImNhcHRpb25cIlxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAge3N1YnRpdGxlfVxuICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICApIDogbnVsbH1cbiAgICAgICAgICAgIDxUZXh0XG4gICAgICAgICAgICAgIGFzPXt0aXRsZUFzIHx8ICdoMyd9XG4gICAgICAgICAgICAgIG9uZUxpbmVcbiAgICAgICAgICAgICAgc2VudGltZW50PVwibmV1dHJhbFwiXG4gICAgICAgICAgICAgIHZhcmlhbnQ9XCJib2R5U3Ryb25nXCJcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAge3RpdGxlfVxuICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIHtkZXNjcmlwdGlvbiA/IChcbiAgICAgICAgICAgIDxUZXh0IGFzPVwicFwiIG9uZUxpbmUgc2VudGltZW50PVwibmV1dHJhbFwiIHZhcmlhbnQ9XCJib2R5U21hbGxcIj5cbiAgICAgICAgICAgICAge2Rlc2NyaXB0aW9ufVxuICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgPC9TdHlsZWRTdGFjaz5cbiAgICAgICAgPEljb25XcmFwcGVyPlxuICAgICAgICAgIDxPcGVuSW5OZXdJY29uIHNlbnRpbWVudD1cIm5ldXRyYWxcIiAvPlxuICAgICAgICA8L0ljb25XcmFwcGVyPlxuICAgICAgPC9GdWxsSGVpZ2h0U3RhY2s+XG4gICAgPC9TdHlsZWRXcmFwcGVyPlxuICApLFxuKVxuIl19 */",
68
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
69
- });
70
- const Card = forwardRef(({
71
- title,
72
- titleAs,
73
- subtitle,
74
- subtitleAs,
75
- description,
76
- children,
77
- href,
78
- target = "_blank"
79
- }, ref) => /* @__PURE__ */ jsx(StyledWrapper, { href, ref, target, children: /* @__PURE__ */ jsxs(FullHeightStack, { alignItems: "center", direction: "row", gap: 2, justifyContent: "space-between", children: [
80
- /* @__PURE__ */ jsxs(StyledStack, { gap: "0.5", children: [
81
- /* @__PURE__ */ jsxs("div", { children: [
82
- subtitle ? /* @__PURE__ */ jsx(Text, { as: subtitleAs || "h5", oneLine: true, prominence: "weak", sentiment: "neutral", variant: "caption", children: subtitle }) : null,
83
- /* @__PURE__ */ jsx(Text, { as: titleAs || "h3", oneLine: true, sentiment: "neutral", variant: "bodyStrong", children: title })
84
- ] }),
85
- description ? /* @__PURE__ */ jsx(Text, { as: "p", oneLine: true, sentiment: "neutral", variant: "bodySmall", children: description }) : null,
86
- children
87
- ] }),
88
- /* @__PURE__ */ jsx(IconWrapper, { children: /* @__PURE__ */ jsx(OpenInNewIcon, { sentiment: "neutral" }) })
89
- ] }) }));
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
+ );
90
69
  export {
91
70
  Card
92
71
  };
@@ -1 +1 @@
1
- export declare const SkeletonCard: () => import("@emotion/react/jsx-runtime").JSX.Element;
1
+ export declare const SkeletonCard: () => import("react/jsx-runtime").JSX.Element;
@@ -1,32 +1,14 @@
1
1
  "use client";
2
- import { jsx, jsxs } from "@emotion/react/jsx-runtime";
3
- import _styled from "@emotion/styled/base";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
4
3
  import { Stack, Skeleton } from "@ultraviolet/ui";
5
- const StyledWrapper = /* @__PURE__ */ _styled("div", process.env.NODE_ENV === "production" ? {
6
- target: "e1xovou51"
7
- } : {
8
- target: "e1xovou51",
9
- label: "StyledWrapper"
10
- })("padding:", ({
11
- theme
12
- }) => theme.space["3"], ";&:not(:first-child){border-top:1px solid ", ({
13
- theme
14
- }) => theme.colors.neutral.border, ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvQ29udGVudENhcmRHcm91cC9Ta2VsZXRvbkNhcmQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUtnQyIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb2xldC9wYWNrYWdlcy9wbHVzL3NyYy9jb21wb25lbnRzL0NvbnRlbnRDYXJkR3JvdXAvU2tlbGV0b25DYXJkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50J1xuXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IFNrZWxldG9uLCBTdGFjayB9IGZyb20gJ0B1bHRyYXZpb2xldC91aSdcblxuY29uc3QgU3R5bGVkV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gIHBhZGRpbmc6ICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUuc3BhY2VbJzMnXX07XG5cbiAgJjpub3QoOmZpcnN0LWNoaWxkKSB7XG4gICAgYm9yZGVyLXRvcDogMXB4IHNvbGlkICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUuY29sb3JzLm5ldXRyYWwuYm9yZGVyfTtcbiAgfVxuYFxuXG5jb25zdCBTdHlsZWRTcXVhcmVTa2VsZXRvbiA9IHN0eWxlZChTa2VsZXRvbilgXG4gIGhlaWdodDogMzJweDtcbiAgd2lkdGg6IDMycHg7XG4gIGJvcmRlci1yYWRpdXM6ICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUucmFkaWkuZGVmYXVsdH07XG5gXG5cbmV4cG9ydCBjb25zdCBTa2VsZXRvbkNhcmQgPSAoKSA9PiAoXG4gIDxTdHlsZWRXcmFwcGVyPlxuICAgIDxTdGFjayBhbGlnbkl0ZW1zPVwiY2VudGVyXCIgZGlyZWN0aW9uPVwicm93XCIganVzdGlmeUNvbnRlbnQ9XCJzcGFjZS1iZXR3ZWVuXCI+XG4gICAgICA8U3RhY2sgZ2FwPXsyfT5cbiAgICAgICAgPFNrZWxldG9uIHZhcmlhbnQ9XCJsaW5lXCIgLz5cbiAgICAgICAgPFNrZWxldG9uIHZhcmlhbnQ9XCJsaW5lXCIgLz5cbiAgICAgICAgPFNrZWxldG9uIHZhcmlhbnQ9XCJsaW5lXCIgLz5cbiAgICAgIDwvU3RhY2s+XG4gICAgICA8U3R5bGVkU3F1YXJlU2tlbGV0b24gdmFyaWFudD1cInNxdWFyZVwiIC8+XG4gICAgPC9TdGFjaz5cbiAgPC9TdHlsZWRXcmFwcGVyPlxuKVxuIl19 */"));
15
- const StyledSquareSkeleton = /* @__PURE__ */ _styled(Skeleton, process.env.NODE_ENV === "production" ? {
16
- target: "e1xovou50"
17
- } : {
18
- target: "e1xovou50",
19
- label: "StyledSquareSkeleton"
20
- })("height:32px;width:32px;border-radius:", ({
21
- theme
22
- }) => theme.radii.default, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvQ29udGVudENhcmRHcm91cC9Ta2VsZXRvbkNhcmQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWE2QyIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb2xldC9wYWNrYWdlcy9wbHVzL3NyYy9jb21wb25lbnRzL0NvbnRlbnRDYXJkR3JvdXAvU2tlbGV0b25DYXJkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50J1xuXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IFNrZWxldG9uLCBTdGFjayB9IGZyb20gJ0B1bHRyYXZpb2xldC91aSdcblxuY29uc3QgU3R5bGVkV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gIHBhZGRpbmc6ICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUuc3BhY2VbJzMnXX07XG5cbiAgJjpub3QoOmZpcnN0LWNoaWxkKSB7XG4gICAgYm9yZGVyLXRvcDogMXB4IHNvbGlkICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUuY29sb3JzLm5ldXRyYWwuYm9yZGVyfTtcbiAgfVxuYFxuXG5jb25zdCBTdHlsZWRTcXVhcmVTa2VsZXRvbiA9IHN0eWxlZChTa2VsZXRvbilgXG4gIGhlaWdodDogMzJweDtcbiAgd2lkdGg6IDMycHg7XG4gIGJvcmRlci1yYWRpdXM6ICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUucmFkaWkuZGVmYXVsdH07XG5gXG5cbmV4cG9ydCBjb25zdCBTa2VsZXRvbkNhcmQgPSAoKSA9PiAoXG4gIDxTdHlsZWRXcmFwcGVyPlxuICAgIDxTdGFjayBhbGlnbkl0ZW1zPVwiY2VudGVyXCIgZGlyZWN0aW9uPVwicm93XCIganVzdGlmeUNvbnRlbnQ9XCJzcGFjZS1iZXR3ZWVuXCI+XG4gICAgICA8U3RhY2sgZ2FwPXsyfT5cbiAgICAgICAgPFNrZWxldG9uIHZhcmlhbnQ9XCJsaW5lXCIgLz5cbiAgICAgICAgPFNrZWxldG9uIHZhcmlhbnQ9XCJsaW5lXCIgLz5cbiAgICAgICAgPFNrZWxldG9uIHZhcmlhbnQ9XCJsaW5lXCIgLz5cbiAgICAgIDwvU3RhY2s+XG4gICAgICA8U3R5bGVkU3F1YXJlU2tlbGV0b24gdmFyaWFudD1cInNxdWFyZVwiIC8+XG4gICAgPC9TdGFjaz5cbiAgPC9TdHlsZWRXcmFwcGVyPlxuKVxuIl19 */"));
23
- const SkeletonCard = () => /* @__PURE__ */ jsx(StyledWrapper, { children: /* @__PURE__ */ jsxs(Stack, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
4
+ 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: [
24
6
  /* @__PURE__ */ jsxs(Stack, { gap: 2, children: [
25
7
  /* @__PURE__ */ jsx(Skeleton, { variant: "line" }),
26
8
  /* @__PURE__ */ jsx(Skeleton, { variant: "line" }),
27
9
  /* @__PURE__ */ jsx(Skeleton, { variant: "line" })
28
10
  ] }),
29
- /* @__PURE__ */ jsx(StyledSquareSkeleton, { variant: "square" })
11
+ /* @__PURE__ */ jsx(Skeleton, { className: squareSkeleton, variant: "square" })
30
12
  ] }) });
31
13
  export {
32
14
  SkeletonCard
@@ -1,7 +1,8 @@
1
- import type { ReactNode } from 'react';
1
+ import type { CSSProperties, ReactNode } from 'react';
2
2
  type BaseContentCardGroupProps = {
3
3
  children: ReactNode;
4
4
  loading?: boolean;
5
+ style?: CSSProperties;
5
6
  };
6
7
  export declare const ContentCardGroup: import("react").ForwardRefExoticComponent<BaseContentCardGroupProps & import("react").RefAttributes<HTMLDivElement>> & {
7
8
  Card: import("react").ForwardRefExoticComponent<{
@@ -13,6 +14,7 @@ export declare const ContentCardGroup: import("react").ForwardRefExoticComponent
13
14
  children?: ReactNode;
14
15
  href: string;
15
16
  target?: import("react").AnchorHTMLAttributes<HTMLAnchorElement>["target"];
17
+ style?: CSSProperties;
16
18
  } & import("react").RefAttributes<HTMLAnchorElement>>;
17
19
  };
18
20
  export {};