@codecademy/brand 1.27.0 → 1.28.0-alpha.45a0038f0b.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.
- package/dist/InfoCard/index.js +17 -10
- package/package.json +1 -1
package/dist/InfoCard/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Anchor, Box, Card, FlexBox, Text } from '@codecademy/gamut';
|
|
1
|
+
import { Anchor, Box, Card, FlexBox, Markdown, Text } from '@codecademy/gamut';
|
|
2
2
|
import { pxRem } from '@codecademy/gamut-styles';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -44,15 +44,22 @@ const Subtitle = ({
|
|
|
44
44
|
});
|
|
45
45
|
const Body = ({
|
|
46
46
|
text
|
|
47
|
-
}) => /*#__PURE__*/_jsx(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
}) => /*#__PURE__*/_jsx(Markdown, {
|
|
48
|
+
text: text,
|
|
49
|
+
overrides: {
|
|
50
|
+
p: {
|
|
51
|
+
component: props => /*#__PURE__*/_jsx(Text, {
|
|
52
|
+
...props,
|
|
53
|
+
textColor: "gray-900",
|
|
54
|
+
variant: "p-small",
|
|
55
|
+
truncate: "ellipsis",
|
|
56
|
+
truncateLines: 3
|
|
57
|
+
})
|
|
58
|
+
},
|
|
59
|
+
a: {
|
|
60
|
+
component: Anchor
|
|
61
|
+
}
|
|
62
|
+
}
|
|
56
63
|
});
|
|
57
64
|
const Footer = ({
|
|
58
65
|
bottomLeftText,
|
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.
|
|
4
|
+
"version": "1.28.0-alpha.45a0038f0b.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@emotion/is-prop-valid": "^1.2.1",
|