@ndla/ui 56.0.3-alpha.0 → 56.0.5-alpha.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/panda.buildinfo.json +35 -8
- package/dist/styles.css +148 -29
- package/es/Article/Article.js +1 -5
- package/es/Article/ArticleContent.js +27 -0
- package/es/Article/index.js +2 -1
- package/es/Breadcrumb/Breadcrumb.js +2 -3
- package/es/Breadcrumb/BreadcrumbItem.js +1 -1
- package/es/Breadcrumb/HomeBreadcrumb.js +2 -2
- package/es/Embed/ImageEmbed.js +2 -1
- package/es/ErrorMessage/ErrorMessage.js +2 -0
- package/es/FileList/File.js +78 -23
- package/es/FileList/FileList.js +32 -37
- package/es/FileList/PdfFile.js +17 -16
- package/es/FileList/index.js +3 -5
- package/es/Grid/Grid.js +69 -48
- package/es/Grid/GridParallaxItem.js +32 -0
- package/es/Grid/index.js +2 -1
- package/es/KeyFigure/KeyFigure.js +28 -33
- package/es/LinkBlock/LinkBlockSection.js +1 -0
- package/es/RelatedArticleList/RelatedArticleList.js +1 -1
- package/es/index.js +1 -4
- package/es/styles.css +148 -29
- package/lib/Article/Article.d.ts +0 -1
- package/lib/Article/Article.js +3 -7
- package/lib/Article/ArticleContent.d.ts +11 -0
- package/lib/Article/ArticleContent.js +33 -0
- package/lib/Article/index.d.ts +2 -1
- package/lib/Article/index.js +2 -1
- package/lib/Breadcrumb/Breadcrumb.js +2 -3
- package/lib/Breadcrumb/BreadcrumbItem.js +1 -1
- package/lib/Breadcrumb/HomeBreadcrumb.js +1 -1
- package/lib/Embed/ImageEmbed.js +2 -1
- package/lib/ErrorMessage/ErrorMessage.js +2 -0
- package/lib/FileList/File.d.ts +5 -3
- package/lib/FileList/File.js +78 -23
- package/lib/FileList/FileList.d.ts +6 -6
- package/lib/FileList/FileList.js +35 -38
- package/lib/FileList/PdfFile.d.ts +2 -2
- package/lib/FileList/PdfFile.js +17 -15
- package/lib/FileList/index.d.ts +3 -5
- package/lib/FileList/index.js +19 -18
- package/lib/Grid/Grid.d.ts +4 -7
- package/lib/Grid/Grid.js +71 -49
- package/lib/Grid/GridParallaxItem.d.ts +9 -0
- package/lib/Grid/GridParallaxItem.js +39 -0
- package/lib/Grid/index.d.ts +2 -1
- package/lib/Grid/index.js +4 -5
- package/lib/KeyFigure/KeyFigure.js +30 -33
- package/lib/LinkBlock/LinkBlockSection.js +1 -0
- package/lib/RelatedArticleList/RelatedArticleList.js +1 -1
- package/lib/index.d.ts +1 -4
- package/lib/index.js +9 -24
- package/lib/styles.css +148 -29
- package/package.json +7 -7
- package/src/Article/Article.tsx +1 -6
- package/src/Article/ArticleContent.tsx +21 -0
- package/src/Article/index.ts +2 -1
- package/src/Breadcrumb/Breadcrumb.tsx +1 -2
- package/src/Breadcrumb/BreadcrumbItem.tsx +1 -1
- package/src/Breadcrumb/HomeBreadcrumb.tsx +2 -2
- package/src/ContentTypeBadge/ContentTypeBadge.stories.tsx +8 -7
- package/src/Embed/ImageEmbed.stories.tsx +1 -3
- package/src/Embed/ImageEmbed.tsx +3 -2
- package/src/ErrorMessage/ErrorMessage.tsx +2 -0
- package/src/FileList/File.tsx +63 -28
- package/src/FileList/FileList.stories.tsx +121 -12
- package/src/FileList/FileList.tsx +31 -37
- package/src/FileList/PdfFile.tsx +9 -9
- package/src/FileList/index.ts +3 -7
- package/src/Grid/Grid.stories.tsx +30 -31
- package/src/Grid/Grid.tsx +57 -85
- package/src/Grid/GridParallaxItem.tsx +26 -0
- package/src/Grid/index.ts +3 -1
- package/src/KeyFigure/KeyFigure.stories.tsx +18 -11
- package/src/KeyFigure/KeyFigure.tsx +33 -47
- package/src/LinkBlock/LinkBlockSection.tsx +1 -1
- package/src/RelatedArticleList/RelatedArticleList.tsx +1 -1
- package/src/index.ts +1 -7
- package/es/FileList/Format.js +0 -93
- package/es/Footer/FooterBlock.js +0 -17
- package/es/Footer/index.js +0 -9
- package/es/Messages/MessageBox.js +0 -79
- package/es/Messages/index.js +0 -10
- package/es/utils/resourceTypeColor.js +0 -46
- package/lib/FileList/Format.d.ts +0 -16
- package/lib/FileList/Format.js +0 -98
- package/lib/Footer/FooterBlock.d.ts +0 -13
- package/lib/Footer/FooterBlock.js +0 -24
- package/lib/Footer/index.d.ts +0 -8
- package/lib/Footer/index.js +0 -12
- package/lib/Messages/MessageBox.d.ts +0 -23
- package/lib/Messages/MessageBox.js +0 -87
- package/lib/Messages/index.d.ts +0 -9
- package/lib/Messages/index.js +0 -13
- package/lib/utils/resourceTypeColor.d.ts +0 -9
- package/lib/utils/resourceTypeColor.js +0 -54
- package/src/FileList/Format.tsx +0 -83
- package/src/Footer/Footer.stories.tsx +0 -35
- package/src/Footer/FooterBlock.tsx +0 -30
- package/src/Footer/index.ts +0 -9
- package/src/Messages/MessageBox.stories.tsx +0 -95
- package/src/Messages/MessageBox.tsx +0 -126
- package/src/Messages/index.ts +0 -11
- package/src/utils/resourceTypeColor.tsx +0 -46
package/lib/FileList/FileList.js
CHANGED
|
@@ -3,63 +3,60 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
6
|
+
exports.FileListWrapper = exports.FileListItem = exports.FileListEmbed = void 0;
|
|
8
7
|
var _reactI18next = require("react-i18next");
|
|
9
|
-
var
|
|
10
|
-
var
|
|
8
|
+
var _primitives = require("@ndla/primitives");
|
|
9
|
+
var _jsx2 = require("@ndla/styled-system/jsx");
|
|
11
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
|
|
13
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { 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)."; } /**
|
|
11
|
+
/**
|
|
14
12
|
* Copyright (c) 2023-present, NDLA.
|
|
15
13
|
*
|
|
16
14
|
* This source code is licensed under the GPLv3 license found in the
|
|
17
15
|
* LICENSE file in the root directory of this source tree.
|
|
18
16
|
*
|
|
19
17
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
})
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
18
|
+
|
|
19
|
+
const FileListWrapper = exports.FileListWrapper = (0, _jsx2.styled)("div", {
|
|
20
|
+
base: {
|
|
21
|
+
display: "flex",
|
|
22
|
+
flexDirection: "column",
|
|
23
|
+
gap: "xsmall"
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
const FileListItem = exports.FileListItem = (0, _jsx2.styled)("li", {
|
|
27
|
+
base: {
|
|
28
|
+
background: "surface.infoSubtle",
|
|
29
|
+
borderBlockEnd: "1px solid",
|
|
30
|
+
borderColor: "stroke.default",
|
|
31
|
+
display: "flex",
|
|
32
|
+
justifyContent: "space-between",
|
|
33
|
+
_hover: {
|
|
34
|
+
backgroundColor: "surface.infoSubtle.hover"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
39
37
|
});
|
|
40
|
-
const
|
|
38
|
+
const FileListEmbed = _ref => {
|
|
41
39
|
let {
|
|
42
40
|
children,
|
|
43
|
-
headingButtons,
|
|
44
41
|
...rest
|
|
45
42
|
} = _ref;
|
|
46
43
|
const {
|
|
47
44
|
t
|
|
48
45
|
} = (0, _reactI18next.useTranslation)();
|
|
49
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
46
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(FileListWrapper, {
|
|
50
47
|
...rest,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
"data-embed-type": "file-list",
|
|
49
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Heading, {
|
|
50
|
+
fontWeight: "bold",
|
|
51
|
+
textStyle: "heading.small",
|
|
52
|
+
asChild: true,
|
|
53
|
+
consumeCss: true,
|
|
54
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("h3", {
|
|
56
55
|
children: t("files")
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
})]
|
|
60
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(FilesList, {
|
|
56
|
+
})
|
|
57
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
|
|
61
58
|
children: children
|
|
62
59
|
})]
|
|
63
60
|
});
|
|
64
61
|
};
|
|
65
|
-
|
|
62
|
+
exports.FileListEmbed = FileListEmbed;
|
|
@@ -9,5 +9,5 @@ interface Props {
|
|
|
9
9
|
title: string;
|
|
10
10
|
url: string;
|
|
11
11
|
}
|
|
12
|
-
declare const PdfFile: ({ title, url }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export
|
|
12
|
+
export declare const PdfFile: ({ title, url }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
package/lib/FileList/PdfFile.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.PdfFile = void 0;
|
|
7
7
|
var _primitives = require("@ndla/primitives");
|
|
8
8
|
var _jsx2 = require("@ndla/styled-system/jsx");
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -32,19 +32,21 @@ const PdfFile = _ref => {
|
|
|
32
32
|
title,
|
|
33
33
|
url
|
|
34
34
|
} = _ref;
|
|
35
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
36
|
-
children:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
children:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(StyledFigure, {
|
|
37
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Heading, {
|
|
38
|
+
asChild: true,
|
|
39
|
+
consumeCss: true,
|
|
40
|
+
textStyle: "title.medium",
|
|
41
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("h4", {
|
|
42
|
+
children: title
|
|
43
|
+
})
|
|
44
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledIframe, {
|
|
45
|
+
title: title,
|
|
46
|
+
height: "1050",
|
|
47
|
+
src: url
|
|
48
|
+
})]
|
|
49
|
+
})
|
|
48
50
|
});
|
|
49
51
|
};
|
|
50
|
-
|
|
52
|
+
exports.PdfFile = PdfFile;
|
package/lib/FileList/index.d.ts
CHANGED
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export { default as Format } from "./Format";
|
|
12
|
-
export default FileList;
|
|
8
|
+
export { FileListEmbed, FileListItem } from "./FileList";
|
|
9
|
+
export { File, FileListElement } from "./File";
|
|
10
|
+
export { PdfFile } from "./PdfFile";
|
package/lib/FileList/index.js
CHANGED
|
@@ -6,32 +6,33 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "File", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return _File.
|
|
9
|
+
return _File.File;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "FileListElement", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return
|
|
15
|
+
return _File.FileListElement;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "FileListEmbed", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _FileList.FileListEmbed;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "FileListItem", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _FileList.FileListItem;
|
|
16
28
|
}
|
|
17
29
|
});
|
|
18
30
|
Object.defineProperty(exports, "PdfFile", {
|
|
19
31
|
enumerable: true,
|
|
20
32
|
get: function () {
|
|
21
|
-
return _PdfFile.
|
|
33
|
+
return _PdfFile.PdfFile;
|
|
22
34
|
}
|
|
23
35
|
});
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var _PdfFile = _interopRequireDefault(require("./PdfFile"));
|
|
28
|
-
var _Format = _interopRequireDefault(require("./Format"));
|
|
29
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
30
|
-
/**
|
|
31
|
-
* Copyright (c) 2018-present, NDLA.
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the GPLv3 license found in the
|
|
34
|
-
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
var _default = exports.default = _FileList.default;
|
|
36
|
+
var _FileList = require("./FileList");
|
|
37
|
+
var _File = require("./File");
|
|
38
|
+
var _PdfFile = require("./PdfFile");
|
package/lib/Grid/Grid.d.ts
CHANGED
|
@@ -5,14 +5,11 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { ReactNode } from "react";
|
|
9
9
|
export interface GridProps {
|
|
10
|
-
columns: "2" | "4" | "2x2";
|
|
10
|
+
columns: "2" | "3" | "4" | "2x2";
|
|
11
11
|
border?: "none" | "lightBlue";
|
|
12
|
-
background?: "transparent" | "white";
|
|
13
|
-
size?: boolean;
|
|
12
|
+
background?: "transparent" | "white" | "gray";
|
|
14
13
|
children?: ReactNode[];
|
|
15
14
|
}
|
|
16
|
-
declare const Grid: ({ columns, border, children, background
|
|
17
|
-
export declare const GridParallaxItem: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export default Grid;
|
|
15
|
+
export declare const Grid: ({ columns, border, children, background }: GridProps) => import("react/jsx-runtime").JSX.Element;
|
package/lib/Grid/Grid.js
CHANGED
|
@@ -3,70 +3,92 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
var
|
|
8
|
-
var _core = require("@ndla/core");
|
|
6
|
+
exports.Grid = void 0;
|
|
7
|
+
var _jsx2 = require("@ndla/styled-system/jsx");
|
|
9
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
|
|
11
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { 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
|
+
/**
|
|
12
10
|
* Copyright (c) 2023-present, NDLA.
|
|
13
11
|
*
|
|
14
12
|
* This source code is licensed under the GPLv3 license found in the
|
|
15
13
|
* LICENSE file in the root directory of this source tree.
|
|
16
14
|
*
|
|
17
15
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
|
|
17
|
+
const GridContainer = (0, _jsx2.styled)("div", {
|
|
18
|
+
base: {
|
|
19
|
+
display: "grid",
|
|
20
|
+
justifyContent: "center",
|
|
21
|
+
borderRadius: "xsmall",
|
|
22
|
+
padding: "xsmall",
|
|
23
|
+
gridRowGap: "large",
|
|
24
|
+
gridColumnGap: "medium",
|
|
25
|
+
width: "100%",
|
|
26
|
+
backgroundColor: "background.subtle",
|
|
27
|
+
maxWidth: "surface.4xlarge",
|
|
28
|
+
minWidth: "surface.xxsmall",
|
|
29
|
+
gridTemplateColumns: "repeat(2, minmax(0, 1fr))",
|
|
30
|
+
tabletDown: {
|
|
31
|
+
gridTemplateColumns: "repeat(1, minmax(0, 1fr))"
|
|
32
|
+
},
|
|
33
|
+
tabletToDesktop: {
|
|
34
|
+
gridTemplateColumns: "repeat(2, minmax(0, 1fr))",
|
|
35
|
+
"& > div:nth-child(3):last-child": {
|
|
36
|
+
display: "flex",
|
|
37
|
+
flexFlow: "column",
|
|
38
|
+
justifyContent: "center",
|
|
39
|
+
alignItems: "center",
|
|
40
|
+
gridColumn: "span 2"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
variants: {
|
|
45
|
+
columns: {
|
|
46
|
+
"2": {},
|
|
47
|
+
"2x2": {},
|
|
48
|
+
"3": {
|
|
49
|
+
desktop: {
|
|
50
|
+
gridTemplateColumns: "repeat(3, minmax(0, 1fr))"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"4": {
|
|
54
|
+
desktop: {
|
|
55
|
+
gridTemplateColumns: "repeat(4, minmax(0, 1fr))"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
background: {
|
|
60
|
+
white: {
|
|
61
|
+
backgroundColor: "surface.default"
|
|
62
|
+
},
|
|
63
|
+
transparent: {
|
|
64
|
+
backgroundColor: "transparent"
|
|
65
|
+
},
|
|
66
|
+
gray: {
|
|
67
|
+
backgroundColor: "background.subtle"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
border: {
|
|
71
|
+
lightBlue: {
|
|
72
|
+
border: "1px solid",
|
|
73
|
+
borderColor: "surface.brand.2"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
});
|
|
28
78
|
const Grid = _ref => {
|
|
29
79
|
let {
|
|
30
80
|
columns,
|
|
31
81
|
border,
|
|
32
82
|
children,
|
|
33
|
-
background
|
|
34
|
-
size,
|
|
35
|
-
...rest
|
|
83
|
+
background = "gray"
|
|
36
84
|
} = _ref;
|
|
37
85
|
const amountOfColumns = children?.length === 3 ? "3" : columns;
|
|
38
86
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(GridContainer, {
|
|
39
|
-
"data-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
...rest,
|
|
87
|
+
"data-embed-type": "grid",
|
|
88
|
+
border: border === "none" ? undefined : border,
|
|
89
|
+
columns: amountOfColumns,
|
|
90
|
+
background: background,
|
|
44
91
|
children: children
|
|
45
92
|
});
|
|
46
93
|
};
|
|
47
|
-
|
|
48
|
-
target: "e1c0s8mo0",
|
|
49
|
-
label: "StyledGridParallaxItem"
|
|
50
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
51
|
-
name: "1s7sltv",
|
|
52
|
-
styles: "position:relative;>div{top:var(--masthead-height, 0px);position:sticky;}"
|
|
53
|
-
} : {
|
|
54
|
-
name: "1s7sltv",
|
|
55
|
-
styles: "position:relative;>div{top:var(--masthead-height, 0px);position:sticky;}",
|
|
56
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkdyaWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZGeUMiLCJmaWxlIjoiR3JpZC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAyMy1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91bmQgaW4g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cmFsbGF4SXRlbSB7Li4ucmVzdH0+XG4gICAgPGRpdj57Y2hpbGRyZW59PC9kaXY+XG4gIDwvU3R5bGVkR3JpZFBhcmFsbGF4SXRlbT5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IEdyaWQ7XG4iXX0= */",
|
|
57
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
58
|
-
});
|
|
59
|
-
const GridParallaxItem = _ref2 => {
|
|
60
|
-
let {
|
|
61
|
-
children,
|
|
62
|
-
...rest
|
|
63
|
-
} = _ref2;
|
|
64
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledGridParallaxItem, {
|
|
65
|
-
...rest,
|
|
66
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
67
|
-
children: children
|
|
68
|
-
})
|
|
69
|
-
});
|
|
70
|
-
};
|
|
71
|
-
exports.GridParallaxItem = GridParallaxItem;
|
|
72
|
-
var _default = exports.default = Grid;
|
|
94
|
+
exports.Grid = Grid;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2024-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { HTMLAttributes } from "react";
|
|
9
|
+
export declare const GridParallaxItem: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.GridParallaxItem = void 0;
|
|
7
|
+
var _jsx2 = require("@ndla/styled-system/jsx");
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
/**
|
|
10
|
+
* Copyright (c) 2024-present, NDLA.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const StyledGridParallaxItem = (0, _jsx2.styled)("div", {
|
|
18
|
+
base: {
|
|
19
|
+
position: "relative",
|
|
20
|
+
"& > div": {
|
|
21
|
+
top: "var(--masthead-height, 0px)",
|
|
22
|
+
position: "sticky"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
const GridParallaxItem = _ref => {
|
|
27
|
+
let {
|
|
28
|
+
children,
|
|
29
|
+
...rest
|
|
30
|
+
} = _ref;
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledGridParallaxItem, {
|
|
32
|
+
...rest,
|
|
33
|
+
"data-embed-type": "grid-parallax",
|
|
34
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
35
|
+
children: children
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
exports.GridParallaxItem = GridParallaxItem;
|
package/lib/Grid/index.d.ts
CHANGED
|
@@ -5,5 +5,6 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
export {
|
|
8
|
+
export { Grid } from "./Grid";
|
|
9
|
+
export { GridParallaxItem } from "./GridParallaxItem";
|
|
9
10
|
export type { GridProps as GridType } from "./Grid";
|
package/lib/Grid/index.js
CHANGED
|
@@ -6,15 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "Grid", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return _Grid.
|
|
9
|
+
return _Grid.Grid;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "GridParallaxItem", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return
|
|
15
|
+
return _GridParallaxItem.GridParallaxItem;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
var _Grid =
|
|
19
|
-
|
|
20
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
|
+
var _Grid = require("./Grid");
|
|
19
|
+
var _GridParallaxItem = require("./GridParallaxItem");
|
|
@@ -4,48 +4,44 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
7
|
var _htmlReactParser = _interopRequireDefault(require("html-react-parser"));
|
|
9
|
-
var
|
|
8
|
+
var _jsx2 = require("@ndla/styled-system/jsx");
|
|
10
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
|
|
11
|
+
/**
|
|
13
12
|
* Copyright (c) 2023-present, NDLA.
|
|
14
13
|
*
|
|
15
14
|
* This source code is licensed under the GPLv3 license found in the
|
|
16
15
|
* LICENSE file in the root directory of this source tree.
|
|
17
16
|
*
|
|
18
17
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
18
|
+
|
|
19
|
+
const ContentWrapper = (0, _jsx2.styled)("div", {
|
|
20
|
+
base: {
|
|
21
|
+
display: "flex",
|
|
22
|
+
flexDirection: "column",
|
|
23
|
+
alignItems: "center",
|
|
24
|
+
justifyContent: "center"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
const StyledImage = (0, _jsx2.styled)("img", {
|
|
28
|
+
base: {
|
|
29
|
+
height: "surface.3xsmall",
|
|
30
|
+
width: "surface.3xsmall"
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
const TitleWrapper = (0, _jsx2.styled)("div", {
|
|
34
|
+
base: {
|
|
35
|
+
textStyle: "heading.large",
|
|
36
|
+
textAlign: "center"
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
const SubTitleWrapper = (0, _jsx2.styled)("div", {
|
|
40
|
+
base: {
|
|
41
|
+
textStyle: "title.medium",
|
|
42
|
+
textAlign: "center"
|
|
43
|
+
}
|
|
36
44
|
});
|
|
37
|
-
const TitleWrapper = /*#__PURE__*/(0, _base.default)("div", {
|
|
38
|
-
target: "e14we9tj1",
|
|
39
|
-
label: "TitleWrapper"
|
|
40
|
-
})("color:", _core.colors.text.primary, ";font-family:", _core.fonts.sans, ";font-weight:", _core.fonts.weight.bold, ";overflow-wrap:break-word;", _core.fonts.sizes("38px", "48px"), ";text-align:center;", _core.mq.range({
|
|
41
|
-
until: _core.breakpoints.tabletWide
|
|
42
|
-
}), "{", _core.fonts.sizes("30px", "36px"), ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIktleUZpZ3VyZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNkIrQiIsImZpbGUiOiJLZXlGaWd1cmUudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDb3B5cmlnaH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JHtpbWFnZT8uc3JjfT93aWR0aD0xNTBgfSB3aWR0aD17MTUwfSBoZWlnaHQ9ezE1MH0gYWx0PXtpbWFnZT8uYWx0fSAvPlxuICAgICAgPFRpdGxlV3JhcHBlcj57cGFyc2UodGl0bGUpfTwvVGl0bGVXcmFwcGVyPlxuICAgICAgPFN1YlRpdGxlV3JhcHBlcj57cGFyc2Uoc3VidGl0bGUpfTwvU3ViVGl0bGVXcmFwcGVyPlxuICAgIDwvQ29udGVudFdyYXBwZXI+XG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBLZXlGaWd1cmU7XG4iXX0= */"));
|
|
43
|
-
const SubTitleWrapper = /*#__PURE__*/(0, _base.default)("div", {
|
|
44
|
-
target: "e14we9tj0",
|
|
45
|
-
label: "SubTitleWrapper"
|
|
46
|
-
})("overflow-wrap:\"break-word\";text-align:center;", _core.fonts.sizes("18px", "29px"), ";color:", _core.colors.text.primary, ";font-weight:", _core.fonts.weight.normal, ";font-family:", _core.fonts.sans, ";", _core.mq.range({
|
|
47
|
-
until: _core.breakpoints.tabletWide
|
|
48
|
-
}), "{padding-top:", _core.spacing.xxsmall, ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIktleUZpZ3VyZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMENrQyIsImZpbGUiOiJLZXlGaWd1cmUudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDb3B5cmlnaHQgKGMpIDIwMjMtcHJlc2VudCwgTkRMQS5cbiAqXG4gKiBUaGlzIHNvdXJjZSBjb2RlIGlzIGxpY2Vuc2VkIHVuZGVyIHRoZSBHUEx2MyBsaWNlbnNlIGZvdW5kIGluIHRoZVxuICogTElDRU5TRSBmaWxlIGluIHRoZSByb290IGRpcmVjdG9yeSBvZiB0aGlzIHNvdXJjZSB0cmVlLlxuICpcbiA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U3ViVGl0bGVXcmFwcGVyPlxuICAgIDwvQ29udGVudFdyYXBwZXI+XG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBLZXlGaWd1cmU7XG4iXX0= */"));
|
|
49
45
|
const KeyFigure = _ref => {
|
|
50
46
|
let {
|
|
51
47
|
image,
|
|
@@ -53,7 +49,8 @@ const KeyFigure = _ref => {
|
|
|
53
49
|
subtitle
|
|
54
50
|
} = _ref;
|
|
55
51
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(ContentWrapper, {
|
|
56
|
-
|
|
52
|
+
"data-embed-type": "key-figure",
|
|
53
|
+
children: [image && /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledImage, {
|
|
57
54
|
src: `${image?.src}?width=150`,
|
|
58
55
|
width: 150,
|
|
59
56
|
height: 150,
|
|
@@ -30,6 +30,7 @@ const LinkBlockSection = _ref => {
|
|
|
30
30
|
} = _ref;
|
|
31
31
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("nav", {
|
|
32
32
|
...rest,
|
|
33
|
+
"data-embed-type": "link-block-list",
|
|
33
34
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledList, {
|
|
34
35
|
children: _react.Children.map(children, child => /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
35
36
|
children: child
|
package/lib/index.d.ts
CHANGED
|
@@ -12,13 +12,10 @@ export { getPossiblyRelativeUrl } from "./utils/relativeUrl";
|
|
|
12
12
|
export { default as ContentLoader } from "./ContentLoader";
|
|
13
13
|
export { default as RelatedArticleList, RelatedArticle } from "./RelatedArticleList";
|
|
14
14
|
export { ErrorResourceAccessDenied, default as ErrorMessage } from "./ErrorMessage";
|
|
15
|
-
export {
|
|
15
|
+
export { FileListEmbed, File, PdfFile, FileListItem, FileListElement } from "./FileList";
|
|
16
16
|
export { default as FactBox } from "./FactBox";
|
|
17
17
|
export type { ContentTypeHeroProps } from "./ContentTypeHero";
|
|
18
18
|
export { ContentTypeHero } from "./ContentTypeHero";
|
|
19
|
-
export { FooterBlock } from "./Footer";
|
|
20
|
-
export { default as resourceTypeColor } from "./utils/resourceTypeColor";
|
|
21
|
-
export { MessageBox } from "./Messages";
|
|
22
19
|
export { ResourceBox } from "./ResourceBox";
|
|
23
20
|
export { default as AudioPlayer } from "./AudioPlayer";
|
|
24
21
|
export { default as constants } from "./model";
|