@codecademy/brand 1.24.0-alpha.daef801e8d.0 → 1.25.0-alpha.4549b32a00.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.
@@ -7,7 +7,7 @@ export declare enum ResourceType {
7
7
  }
8
8
  export type ResourceCardProps = CardProps & {
9
9
  title: string;
10
- description: string;
10
+ description: string | React.ReactNode;
11
11
  resourceType: ResourceType;
12
12
  headingLevel: HeadingTags;
13
13
  path?: string[];
@@ -47,13 +47,13 @@ export const ResourceCard = ({
47
47
  pt: 12,
48
48
  pb: 4,
49
49
  children: title
50
- }), description && /*#__PURE__*/_jsx(Text, {
50
+ }), description && (typeof description === 'string' ? /*#__PURE__*/_jsx(Text, {
51
51
  variant: "p-small",
52
52
  truncate: "ellipsis",
53
53
  truncateLines: 2,
54
54
  mb: 16,
55
55
  children: description
56
- })]
56
+ }) : description)]
57
57
  })]
58
58
  });
59
59
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/brand",
3
3
  "description": "Brand component library for Codecademy",
4
- "version": "1.24.0-alpha.daef801e8d.0",
4
+ "version": "1.25.0-alpha.4549b32a00.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@emotion/is-prop-valid": "^1.2.1",