@ndla/ui 56.0.71-alpha.0 → 56.0.73-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 +4 -15
- package/dist/styles.css +16 -57
- package/es/Article/Article.js +1 -2
- package/es/Article/ArticleByline.js +19 -30
- package/es/AudioPlayer/AudioPlayer.js +2 -2
- package/es/AudioPlayer/Controls.js +3 -1
- package/es/Concept/Concept.js +1 -1
- package/es/ContactBlock/ContactBlock.js +1 -1
- package/es/ContentTypeBadge/ContentTypeBadgeNew.js +4 -1
- package/es/ContentTypeHero/ContentTypeHero.js +6 -1
- package/es/Embed/RelatedContentEmbed.js +3 -3
- package/es/ErrorMessage/ErrorMessage.js +8 -8
- package/es/Gloss/Gloss.js +4 -4
- package/es/KeyFigure/KeyFigure.js +1 -1
- package/es/LicenseByline/EmbedByline.js +1 -1
- package/es/LinkBlock/LinkBlock.js +1 -1
- package/es/i18n/formatNestedMessages.js +0 -2
- package/es/index.js +0 -1
- package/es/locale/messages-en.js +6 -2
- package/es/locale/messages-nb.js +6 -2
- package/es/locale/messages-nn.js +6 -2
- package/es/locale/messages-se.js +6 -2
- package/es/locale/messages-sma.js +6 -2
- package/es/model/ContentType.js +9 -2
- package/lib/Article/Article.js +1 -2
- package/lib/Article/ArticleByline.d.ts +1 -3
- package/lib/Article/ArticleByline.js +18 -29
- package/lib/AudioPlayer/AudioPlayer.js +2 -2
- package/lib/AudioPlayer/Controls.js +3 -1
- package/lib/Concept/Concept.js +1 -1
- package/lib/ContactBlock/ContactBlock.js +1 -1
- package/lib/ContentTypeBadge/ContentTypeBadgeNew.d.ts +1 -1
- package/lib/ContentTypeBadge/ContentTypeBadgeNew.js +4 -1
- package/lib/ContentTypeHero/ContentTypeHero.js +6 -1
- package/lib/Embed/RelatedContentEmbed.d.ts +1 -1
- package/lib/Embed/RelatedContentEmbed.js +2 -2
- package/lib/ErrorMessage/ErrorMessage.js +8 -8
- package/lib/Gloss/Gloss.js +4 -4
- package/lib/KeyFigure/KeyFigure.js +1 -1
- package/lib/LicenseByline/EmbedByline.js +1 -1
- package/lib/LinkBlock/LinkBlock.js +1 -1
- package/lib/TagSelector/TagSelector.d.ts +1 -1
- package/lib/i18n/formatNestedMessages.js +0 -2
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -13
- package/lib/locale/messages-en.d.ts +4 -0
- package/lib/locale/messages-en.js +6 -2
- package/lib/locale/messages-nb.d.ts +4 -0
- package/lib/locale/messages-nb.js +6 -2
- package/lib/locale/messages-nn.d.ts +4 -0
- package/lib/locale/messages-nn.js +6 -2
- package/lib/locale/messages-se.d.ts +4 -0
- package/lib/locale/messages-se.js +6 -2
- package/lib/locale/messages-sma.d.ts +4 -0
- package/lib/locale/messages-sma.js +6 -2
- package/lib/model/ContentType.d.ts +5 -0
- package/lib/model/ContentType.js +10 -3
- package/lib/model/index.d.ts +2 -0
- package/package.json +8 -8
- package/src/Article/Article.tsx +1 -2
- package/src/Article/ArticleByline.stories.tsx +0 -3
- package/src/Article/ArticleByline.tsx +17 -32
- package/src/AudioPlayer/AudioPlayer.tsx +2 -2
- package/src/AudioPlayer/Controls.tsx +2 -0
- package/src/Concept/Concept.tsx +1 -1
- package/src/ContactBlock/ContactBlock.tsx +1 -1
- package/src/ContentTypeBadge/ContentTypeBadge.stories.tsx +3 -0
- package/src/ContentTypeBadge/ContentTypeBadgeNew.tsx +7 -1
- package/src/ContentTypeHero/ContentTypeHero.tsx +5 -0
- package/src/Embed/RelatedContentEmbed.tsx +2 -2
- package/src/ErrorMessage/ErrorMessage.stories.tsx +1 -1
- package/src/ErrorMessage/ErrorMessage.tsx +8 -8
- package/src/Gloss/Gloss.tsx +4 -4
- package/src/Grid/Grid.stories.tsx +3 -0
- package/src/KeyFigure/KeyFigure.tsx +1 -1
- package/src/LicenseByline/EmbedByline.tsx +2 -2
- package/src/LinkBlock/LinkBlock.tsx +1 -1
- package/src/TagSelector/TagSelector.tsx +1 -2
- package/src/i18n/formatNestedMessages.ts +0 -1
- package/src/index.ts +0 -2
- package/src/locale/messages-en.ts +4 -0
- package/src/locale/messages-nb.ts +4 -0
- package/src/locale/messages-nn.ts +4 -0
- package/src/locale/messages-se.ts +4 -0
- package/src/locale/messages-sma.ts +4 -0
- package/src/model/ContentType.ts +7 -0
- package/es/Layout/OneColumn.js +0 -43
- package/es/Layout/PageContainer.js +0 -32
- package/es/Layout/index.js +0 -10
- package/lib/Layout/OneColumn.d.ts +0 -11
- package/lib/Layout/OneColumn.js +0 -48
- package/lib/Layout/PageContainer.d.ts +0 -11
- package/lib/Layout/PageContainer.js +0 -37
- package/lib/Layout/index.d.ts +0 -9
- package/lib/Layout/index.js +0 -20
- package/src/Layout/OneColumn.tsx +0 -44
- package/src/Layout/PageContainer.tsx +0 -33
- package/src/Layout/index.ts +0 -10
|
@@ -560,6 +560,7 @@ const messages = {
|
|
|
560
560
|
blog: "Faageblogge",
|
|
561
561
|
tips: "Tipsh learoehkidie",
|
|
562
562
|
vacancies: "Gaavnoes barkoeh",
|
|
563
|
+
contact: "Kontakt oss",
|
|
563
564
|
},
|
|
564
565
|
otherLanguages: "Andre språk",
|
|
565
566
|
},
|
|
@@ -584,6 +585,9 @@ const messages = {
|
|
|
584
585
|
video: "Video",
|
|
585
586
|
missing: "Ukjent",
|
|
586
587
|
external: "Ekstern",
|
|
588
|
+
gloss: "Glose",
|
|
589
|
+
programme: "Programfag",
|
|
590
|
+
"podcast-series": "Podkast-serie",
|
|
587
591
|
},
|
|
588
592
|
modal: {
|
|
589
593
|
closeModal: "Dahph",
|
package/src/model/ContentType.ts
CHANGED
|
@@ -21,6 +21,9 @@ export const IMAGE = "image";
|
|
|
21
21
|
export const VIDEO = "video";
|
|
22
22
|
export const AUDIO = "audio";
|
|
23
23
|
export const PODCAST = "podcast";
|
|
24
|
+
export const GLOSS = "gloss";
|
|
25
|
+
export const PROGRAMME = "programme";
|
|
26
|
+
export const PODCAST_SERIES = "podcast-series";
|
|
24
27
|
|
|
25
28
|
export const contentTypes = {
|
|
26
29
|
SUBJECT_MATERIAL,
|
|
@@ -34,6 +37,8 @@ export const contentTypes = {
|
|
|
34
37
|
CONCEPT,
|
|
35
38
|
EXTERNAL,
|
|
36
39
|
MISSING,
|
|
40
|
+
PROGRAMME,
|
|
41
|
+
PODCAST_SERIES,
|
|
37
42
|
};
|
|
38
43
|
|
|
39
44
|
export const RESOURCE_TYPE_LEARNING_PATH = "urn:resourcetype:learningPath";
|
|
@@ -51,6 +56,7 @@ export const contentTypeMapping: Record<string, string> = {
|
|
|
51
56
|
[RESOURCE_TYPE_SOURCE_MATERIAL]: SOURCE_MATERIAL,
|
|
52
57
|
[RESOURCE_TYPE_CONCEPT]: CONCEPT,
|
|
53
58
|
[MULTIDISCIPLINARY]: MULTIDISCIPLINARY,
|
|
59
|
+
[TOPIC]: TOPIC,
|
|
54
60
|
default: SUBJECT_MATERIAL,
|
|
55
61
|
};
|
|
56
62
|
|
|
@@ -60,4 +66,5 @@ export const resourceEmbedTypeMapping: Record<string, string> = {
|
|
|
60
66
|
concept: "concept",
|
|
61
67
|
audio: "audio",
|
|
62
68
|
podcast: "podcast",
|
|
69
|
+
gloss: "gloss",
|
|
63
70
|
};
|
package/es/Layout/OneColumn.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-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
|
-
|
|
9
|
-
import { styled } from "@ndla/styled-system/jsx";
|
|
10
|
-
|
|
11
|
-
// TODO: This is a rewrite of our old layout. Refactor this.
|
|
12
|
-
export const OneColumn = styled("div", {
|
|
13
|
-
base: {
|
|
14
|
-
marginLeft: "auto",
|
|
15
|
-
marginRight: "auto",
|
|
16
|
-
width: "100%",
|
|
17
|
-
paddingLeft: "18px",
|
|
18
|
-
paddingRight: "18px",
|
|
19
|
-
mobileWide: {
|
|
20
|
-
paddingLeft: "medium",
|
|
21
|
-
paddingRight: "medium"
|
|
22
|
-
},
|
|
23
|
-
_after: {
|
|
24
|
-
content: '""!',
|
|
25
|
-
display: "block!",
|
|
26
|
-
clear: "both!"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
defaultVariants: {
|
|
30
|
-
wide: false
|
|
31
|
-
},
|
|
32
|
-
variants: {
|
|
33
|
-
wide: {
|
|
34
|
-
true: {
|
|
35
|
-
maxWidth: "1150px"
|
|
36
|
-
},
|
|
37
|
-
false: {
|
|
38
|
-
maxWidth: "1024px"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
export default OneColumn;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-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
|
-
|
|
9
|
-
import { styled } from "@ndla/styled-system/jsx";
|
|
10
|
-
|
|
11
|
-
// TODO: Refactor this. It's a rewrite of our old layout.
|
|
12
|
-
export const PageContainer = styled("div", {
|
|
13
|
-
base: {
|
|
14
|
-
minHeight: "100vh",
|
|
15
|
-
display: "flex",
|
|
16
|
-
flexDirection: "column"
|
|
17
|
-
},
|
|
18
|
-
defaultVariants: {
|
|
19
|
-
backgroundWide: false
|
|
20
|
-
},
|
|
21
|
-
variants: {
|
|
22
|
-
backgroundWide: {
|
|
23
|
-
true: {
|
|
24
|
-
tablet: {
|
|
25
|
-
backgroundColor: "#f8f8f8"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
false: {}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
export default PageContainer;
|
package/es/Layout/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-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
|
-
|
|
9
|
-
export { default as OneColumn } from "./OneColumn";
|
|
10
|
-
export { default as PageContainer } from "./PageContainer";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-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
|
-
export declare const OneColumn: import("@ndla/styled-system/types").StyledComponent<"div", {
|
|
9
|
-
wide?: boolean | undefined;
|
|
10
|
-
}>;
|
|
11
|
-
export default OneColumn;
|
package/lib/Layout/OneColumn.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.OneColumn = void 0;
|
|
7
|
-
var _jsx = require("@ndla/styled-system/jsx");
|
|
8
|
-
/**
|
|
9
|
-
* Copyright (c) 2016-present, NDLA.
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the GPLv3 license found in the
|
|
12
|
-
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
// TODO: This is a rewrite of our old layout. Refactor this.
|
|
17
|
-
const OneColumn = exports.OneColumn = (0, _jsx.styled)("div", {
|
|
18
|
-
base: {
|
|
19
|
-
marginLeft: "auto",
|
|
20
|
-
marginRight: "auto",
|
|
21
|
-
width: "100%",
|
|
22
|
-
paddingLeft: "18px",
|
|
23
|
-
paddingRight: "18px",
|
|
24
|
-
mobileWide: {
|
|
25
|
-
paddingLeft: "medium",
|
|
26
|
-
paddingRight: "medium"
|
|
27
|
-
},
|
|
28
|
-
_after: {
|
|
29
|
-
content: '""!',
|
|
30
|
-
display: "block!",
|
|
31
|
-
clear: "both!"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
defaultVariants: {
|
|
35
|
-
wide: false
|
|
36
|
-
},
|
|
37
|
-
variants: {
|
|
38
|
-
wide: {
|
|
39
|
-
true: {
|
|
40
|
-
maxWidth: "1150px"
|
|
41
|
-
},
|
|
42
|
-
false: {
|
|
43
|
-
maxWidth: "1024px"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
var _default = exports.default = OneColumn;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-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
|
-
export declare const PageContainer: import("@ndla/styled-system/types").StyledComponent<"div", {
|
|
9
|
-
backgroundWide?: boolean | undefined;
|
|
10
|
-
}>;
|
|
11
|
-
export default PageContainer;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.PageContainer = void 0;
|
|
7
|
-
var _jsx = require("@ndla/styled-system/jsx");
|
|
8
|
-
/**
|
|
9
|
-
* Copyright (c) 2016-present, NDLA.
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the GPLv3 license found in the
|
|
12
|
-
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
// TODO: Refactor this. It's a rewrite of our old layout.
|
|
17
|
-
const PageContainer = exports.PageContainer = (0, _jsx.styled)("div", {
|
|
18
|
-
base: {
|
|
19
|
-
minHeight: "100vh",
|
|
20
|
-
display: "flex",
|
|
21
|
-
flexDirection: "column"
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
backgroundWide: false
|
|
25
|
-
},
|
|
26
|
-
variants: {
|
|
27
|
-
backgroundWide: {
|
|
28
|
-
true: {
|
|
29
|
-
tablet: {
|
|
30
|
-
backgroundColor: "#f8f8f8"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
false: {}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
var _default = exports.default = PageContainer;
|
package/lib/Layout/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-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
|
-
export { default as OneColumn } from "./OneColumn";
|
|
9
|
-
export { default as PageContainer } from "./PageContainer";
|
package/lib/Layout/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "OneColumn", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _OneColumn.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "PageContainer", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _PageContainer.default;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
var _OneColumn = _interopRequireDefault(require("./OneColumn"));
|
|
19
|
-
var _PageContainer = _interopRequireDefault(require("./PageContainer"));
|
|
20
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
package/src/Layout/OneColumn.tsx
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-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
|
-
|
|
9
|
-
import { styled } from "@ndla/styled-system/jsx";
|
|
10
|
-
|
|
11
|
-
// TODO: This is a rewrite of our old layout. Refactor this.
|
|
12
|
-
export const OneColumn = styled("div", {
|
|
13
|
-
base: {
|
|
14
|
-
marginLeft: "auto",
|
|
15
|
-
marginRight: "auto",
|
|
16
|
-
width: "100%",
|
|
17
|
-
paddingLeft: "18px",
|
|
18
|
-
paddingRight: "18px",
|
|
19
|
-
mobileWide: {
|
|
20
|
-
paddingLeft: "medium",
|
|
21
|
-
paddingRight: "medium",
|
|
22
|
-
},
|
|
23
|
-
_after: {
|
|
24
|
-
content: '""!',
|
|
25
|
-
display: "block!",
|
|
26
|
-
clear: "both!",
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
defaultVariants: {
|
|
30
|
-
wide: false,
|
|
31
|
-
},
|
|
32
|
-
variants: {
|
|
33
|
-
wide: {
|
|
34
|
-
true: {
|
|
35
|
-
maxWidth: "1150px",
|
|
36
|
-
},
|
|
37
|
-
false: {
|
|
38
|
-
maxWidth: "1024px",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
export default OneColumn;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-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
|
-
|
|
9
|
-
import { styled } from "@ndla/styled-system/jsx";
|
|
10
|
-
|
|
11
|
-
// TODO: Refactor this. It's a rewrite of our old layout.
|
|
12
|
-
export const PageContainer = styled("div", {
|
|
13
|
-
base: {
|
|
14
|
-
minHeight: "100vh",
|
|
15
|
-
display: "flex",
|
|
16
|
-
flexDirection: "column",
|
|
17
|
-
},
|
|
18
|
-
defaultVariants: {
|
|
19
|
-
backgroundWide: false,
|
|
20
|
-
},
|
|
21
|
-
variants: {
|
|
22
|
-
backgroundWide: {
|
|
23
|
-
true: {
|
|
24
|
-
tablet: {
|
|
25
|
-
backgroundColor: "#f8f8f8",
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
false: {},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export default PageContainer;
|
package/src/Layout/index.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-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
|
-
|
|
9
|
-
export { default as OneColumn } from "./OneColumn";
|
|
10
|
-
export { default as PageContainer } from "./PageContainer";
|