@ndla/ui 55.0.15-alpha.0 → 55.0.17-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 +125 -29
- package/dist/styles.css +453 -103
- package/es/Article/Article.js +101 -162
- package/es/Article/ArticleByline.js +89 -56
- package/es/Article/ArticleFootNotes.js +35 -23
- package/es/Article/ArticleParagraph.js +2 -2
- package/es/Article/index.js +3 -5
- package/es/AudioPlayer/AudioPlayer.js +20 -20
- package/es/AudioPlayer/Controls.js +45 -45
- package/es/AudioPlayer/SpeechControl.js +8 -8
- package/es/BlogPost/BlogPost.js +6 -6
- package/es/Breadcrumb/Breadcrumb.js +19 -29
- package/es/Breadcrumb/BreadcrumbItem.js +20 -49
- package/es/Breadcrumb/HomeBreadcrumb.js +36 -82
- package/es/CampaignBlock/CampaignBlock.js +12 -12
- package/es/CodeBlock/CodeBlock.js +2 -2
- package/es/Concept/Concept.js +11 -11
- package/es/ContactBlock/ContactBlock.js +170 -185
- package/es/ContactBlock/index.js +3 -3
- package/es/ContentLoader/index.js +12 -12
- package/es/ContentPlaceholder/ContentPlaceholder.js +3 -3
- package/es/ContentTypeBadge/ContentTypeBadge.js +81 -80
- package/es/ContentTypeBadge/ContentTypeBadgeNew.js +3 -2
- package/es/ContentTypeHero/ContentTypeHero.js +50 -0
- package/es/{Logo → ContentTypeHero}/index.js +2 -3
- package/es/CopyParagraphButton/CopyParagraphButton.js +13 -12
- package/es/Embed/AudioEmbed.js +7 -7
- package/es/Embed/BrightcoveEmbed.js +8 -8
- package/es/Embed/CodeEmbed.js +6 -6
- package/es/Embed/ConceptEmbed.js +13 -13
- package/es/Embed/ConceptListEmbed.js +9 -9
- package/es/Embed/ContentLinkEmbed.js +6 -6
- package/es/Embed/CopyrightEmbed.js +3 -3
- package/es/Embed/EmbedErrorPlaceholder.js +5 -5
- package/es/Embed/ExternalEmbed.js +5 -5
- package/es/Embed/FootnoteEmbed.js +5 -5
- package/es/Embed/GlossEmbed.js +11 -11
- package/es/Embed/H5pEmbed.js +5 -5
- package/es/Embed/IframeEmbed.js +6 -6
- package/es/Embed/ImageEmbed.js +10 -10
- package/es/Embed/InlineTriggerButton.js +2 -2
- package/es/Embed/RelatedContentEmbed.js +5 -5
- package/es/Embed/UnknownEmbed.js +3 -3
- package/es/Embed/UuDisclaimerEmbed.js +6 -6
- package/es/ErrorMessage/ErrorMessage.js +14 -14
- package/es/ErrorMessage/ErrorResourceAccessDenied.js +6 -6
- package/es/FactBox/FactBox.js +5 -5
- package/es/FileList/File.js +3 -3
- package/es/FileList/FileList.js +6 -6
- package/es/FileList/Format.js +6 -6
- package/es/FileList/PdfFile.js +5 -5
- package/es/FrontpageArticle/FrontpageArticle.js +7 -8
- package/es/Gloss/Gloss.js +23 -23
- package/es/Gloss/GlossExample.js +9 -9
- package/es/Grid/Grid.js +4 -4
- package/es/KeyFigure/KeyFigure.js +5 -5
- package/es/Layout/LayoutItem.js +25 -37
- package/es/Layout/OneColumn.js +33 -31
- package/es/Layout/PageContainer.js +21 -30
- package/es/LicenseByline/EmbedByline.js +21 -21
- package/es/LicenseByline/LicenseLink.js +3 -3
- package/es/LinkBlock/LinkBlock.js +8 -8
- package/es/LinkBlock/LinkBlockSection.js +4 -4
- package/es/Messages/MessageBox.js +11 -11
- package/es/Messages/index.js +1 -2
- package/es/ProgrammeCard/ProgrammeCard.js +5 -5
- package/es/RelatedArticleList/RelatedArticleList.js +15 -15
- package/es/ResourceBox/ResourceBox.js +9 -9
- package/es/SnackBar/DefaultSnackbar.js +5 -5
- package/es/SnackBar/SnackbarProvider.js +7 -7
- package/es/TagSelector/TagSelector.js +17 -17
- package/es/TreeStructure/AddFolderButton.js +4 -4
- package/es/TreeStructure/ComboboxButton.js +7 -7
- package/es/TreeStructure/FolderItem.js +13 -13
- package/es/TreeStructure/FolderItems.js +6 -6
- package/es/TreeStructure/TreeStructure.js +9 -9
- package/es/ZendeskButton/ZendeskButton.js +2 -2
- package/es/i18n/index.js +1 -1
- package/es/index.js +5 -12
- package/es/locale/messages-en.js +1 -1
- package/es/locale/messages-nb.js +1 -1
- package/es/locale/messages-nn.js +1 -1
- package/es/locale/messages-se.js +1 -1
- package/es/locale/messages-sma.js +1 -1
- package/es/model/ContentType.js +3 -1
- package/es/styles.css +453 -103
- package/lib/Article/Article.d.ts +9 -30
- package/lib/Article/Article.js +104 -164
- package/lib/Article/ArticleByline.d.ts +1 -3
- package/lib/Article/ArticleByline.js +89 -56
- package/lib/Article/ArticleFootNotes.js +35 -24
- package/lib/Article/ArticleParagraph.js +2 -2
- package/lib/Article/index.d.ts +2 -5
- package/lib/Article/index.js +18 -24
- package/lib/AudioPlayer/AudioPlayer.js +20 -20
- package/lib/AudioPlayer/Controls.js +45 -45
- package/lib/AudioPlayer/SpeechControl.js +8 -8
- package/lib/BlogPost/BlogPost.js +6 -6
- package/lib/Breadcrumb/Breadcrumb.js +21 -29
- package/lib/Breadcrumb/BreadcrumbItem.js +22 -50
- package/lib/Breadcrumb/HomeBreadcrumb.d.ts +1 -2
- package/lib/Breadcrumb/HomeBreadcrumb.js +38 -82
- package/lib/CampaignBlock/CampaignBlock.js +12 -12
- package/lib/CodeBlock/CodeBlock.js +2 -2
- package/lib/Concept/Concept.js +11 -11
- package/lib/ContactBlock/ContactBlock.d.ts +6 -7
- package/lib/ContactBlock/ContactBlock.js +173 -184
- package/lib/ContactBlock/index.d.ts +3 -3
- package/lib/ContactBlock/index.js +13 -11
- package/lib/ContentLoader/index.js +12 -12
- package/lib/ContentPlaceholder/ContentPlaceholder.js +3 -3
- package/lib/ContentTypeBadge/ContentTypeBadge.d.ts +11 -12
- package/lib/ContentTypeBadge/ContentTypeBadge.js +83 -80
- package/lib/ContentTypeBadge/ContentTypeBadgeNew.d.ts +1 -2
- package/lib/ContentTypeBadge/ContentTypeBadgeNew.js +3 -2
- package/lib/ContentTypeHero/ContentTypeHero.d.ts +15 -0
- package/lib/ContentTypeHero/ContentTypeHero.js +57 -0
- package/lib/ContentTypeHero/index.d.ts +9 -0
- package/lib/ContentTypeHero/index.js +12 -0
- package/lib/CopyParagraphButton/CopyParagraphButton.js +13 -12
- package/lib/Embed/AudioEmbed.js +7 -7
- package/lib/Embed/BrightcoveEmbed.js +8 -8
- package/lib/Embed/CodeEmbed.js +6 -6
- package/lib/Embed/ConceptEmbed.js +13 -13
- package/lib/Embed/ConceptListEmbed.js +9 -9
- package/lib/Embed/ContentLinkEmbed.js +6 -6
- package/lib/Embed/CopyrightEmbed.js +3 -3
- package/lib/Embed/EmbedErrorPlaceholder.js +5 -5
- package/lib/Embed/ExternalEmbed.js +5 -5
- package/lib/Embed/FootnoteEmbed.js +5 -5
- package/lib/Embed/GlossEmbed.js +11 -11
- package/lib/Embed/H5pEmbed.js +5 -5
- package/lib/Embed/IframeEmbed.js +6 -6
- package/lib/Embed/ImageEmbed.js +10 -10
- package/lib/Embed/InlineTriggerButton.js +2 -2
- package/lib/Embed/RelatedContentEmbed.js +5 -5
- package/lib/Embed/UnknownEmbed.js +3 -3
- package/lib/Embed/UuDisclaimerEmbed.js +6 -6
- package/lib/ErrorMessage/ErrorMessage.js +14 -14
- package/lib/ErrorMessage/ErrorResourceAccessDenied.js +6 -6
- package/lib/FactBox/FactBox.js +5 -5
- package/lib/FileList/File.js +3 -3
- package/lib/FileList/FileList.js +6 -6
- package/lib/FileList/Format.js +6 -6
- package/lib/FileList/PdfFile.js +5 -5
- package/lib/FrontpageArticle/FrontpageArticle.js +7 -8
- package/lib/Gloss/Gloss.js +23 -23
- package/lib/Gloss/GlossExample.js +9 -9
- package/lib/Grid/Grid.js +4 -4
- package/lib/KeyFigure/KeyFigure.js +5 -5
- package/lib/Layout/LayoutItem.d.ts +3 -7
- package/lib/Layout/LayoutItem.js +27 -38
- package/lib/Layout/OneColumn.d.ts +3 -6
- package/lib/Layout/OneColumn.js +36 -33
- package/lib/Layout/PageContainer.d.ts +3 -6
- package/lib/Layout/PageContainer.js +24 -32
- package/lib/LicenseByline/EmbedByline.js +21 -21
- package/lib/LicenseByline/LicenseLink.js +3 -3
- package/lib/LinkBlock/LinkBlock.js +8 -8
- package/lib/LinkBlock/LinkBlockSection.js +4 -4
- package/lib/Messages/MessageBox.js +11 -11
- package/lib/Messages/index.d.ts +1 -2
- package/lib/Messages/index.js +0 -7
- package/lib/ProgrammeCard/ProgrammeCard.js +5 -5
- package/lib/RelatedArticleList/RelatedArticleList.js +15 -15
- package/lib/ResourceBox/ResourceBox.js +9 -9
- package/lib/SnackBar/DefaultSnackbar.js +5 -5
- package/lib/SnackBar/SnackbarProvider.js +7 -7
- package/lib/TagSelector/TagSelector.js +17 -17
- package/lib/TreeStructure/AddFolderButton.js +4 -4
- package/lib/TreeStructure/ComboboxButton.js +7 -7
- package/lib/TreeStructure/FolderItem.js +13 -13
- package/lib/TreeStructure/FolderItems.js +6 -6
- package/lib/TreeStructure/TreeStructure.js +9 -9
- package/lib/ZendeskButton/ZendeskButton.js +2 -2
- package/lib/i18n/index.d.ts +1 -1
- package/lib/i18n/index.js +6 -0
- package/lib/index.d.ts +8 -15
- package/lib/index.js +30 -139
- package/lib/locale/messages-en.js +1 -1
- package/lib/locale/messages-nb.js +1 -1
- package/lib/locale/messages-nn.js +1 -1
- package/lib/locale/messages-se.js +1 -1
- package/lib/locale/messages-sma.js +1 -1
- package/lib/model/ContentType.d.ts +1 -0
- package/lib/model/ContentType.js +4 -2
- package/lib/styles.css +453 -103
- package/package.json +10 -11
- package/src/Article/Article.tsx +101 -229
- package/src/Article/ArticleByline.tsx +82 -69
- package/src/Article/ArticleFootNotes.tsx +32 -36
- package/src/Article/index.ts +3 -7
- package/src/Breadcrumb/Breadcrumb.tsx +20 -18
- package/src/Breadcrumb/BreadcrumbItem.tsx +36 -59
- package/src/Breadcrumb/HomeBreadcrumb.stories.tsx +0 -12
- package/src/Breadcrumb/HomeBreadcrumb.tsx +33 -46
- package/src/ContactBlock/{Contactblock.stories.tsx → ContactBlock.stories.tsx} +3 -4
- package/src/ContactBlock/ContactBlock.tsx +165 -199
- package/src/ContactBlock/index.ts +3 -3
- package/src/ContentTypeBadge/ContentTypeBadge.tsx +77 -77
- package/src/ContentTypeBadge/ContentTypeBadgeNew.tsx +3 -1
- package/src/ContentTypeHero/ContentTypeHero.stories.tsx +76 -0
- package/src/ContentTypeHero/ContentTypeHero.tsx +55 -0
- package/src/ContentTypeHero/index.ts +10 -0
- package/src/CopyParagraphButton/CopyParagraphButton.tsx +10 -3
- package/src/Embed/AudioEmbed.stories.tsx +6 -8
- package/src/Embed/BrightcoveEmbed.stories.tsx +6 -8
- package/src/Embed/ConceptEmbed.stories.tsx +6 -8
- package/src/Embed/ExternalEmbed.stories.tsx +5 -5
- package/src/Embed/H5pEmbed.stories.tsx +6 -8
- package/src/Embed/IframeEmbed.stories.tsx +6 -8
- package/src/Embed/ImageEmbed.stories.tsx +6 -8
- package/src/Embed/RelatedContentEmbed.stories.tsx +6 -8
- package/src/Embed/UuDisclaimerEmbed.stories.tsx +6 -8
- package/src/FrontpageArticle/FrontpageArticle.tsx +1 -1
- package/src/Layout/LayoutItem.tsx +25 -41
- package/src/Layout/OneColumn.tsx +33 -33
- package/src/Layout/PageContainer.tsx +22 -24
- package/src/Messages/index.ts +1 -2
- package/src/i18n/index.ts +1 -0
- package/src/index.ts +11 -35
- package/src/locale/messages-en.ts +1 -1
- package/src/locale/messages-nb.ts +1 -1
- package/src/locale/messages-nn.ts +1 -1
- package/src/locale/messages-se.ts +1 -1
- package/src/locale/messages-sma.ts +1 -1
- package/src/model/ContentType.ts +2 -0
- package/es/Article/ArticleHeaderWrapper.js +0 -33
- package/es/CreatedBy/CreatedBy.js +0 -73
- package/es/CreatedBy/index.js +0 -10
- package/es/Hero/Hero.js +0 -68
- package/es/Hero/HeroContent.js +0 -16
- package/es/Hero/index.js +0 -10
- package/es/LanguageSelector/LanguageSelector.js +0 -87
- package/es/LanguageSelector/index.js +0 -10
- package/es/Logo/Logo.js +0 -52
- package/es/Logo/SvgLogo.js +0 -54
- package/es/Messages/MessageBanner.js +0 -72
- package/es/Search/ActiveFilterContent.js +0 -40
- package/es/Search/ActiveFilters.js +0 -112
- package/es/Search/ContentTypeResult.js +0 -151
- package/es/Search/ContentTypeResultStyles.js +0 -51
- package/es/Search/IsPathToHighlight.js +0 -12
- package/es/Search/LoadingWrapper.js +0 -31
- package/es/Search/SearchField.js +0 -110
- package/es/Search/SearchFieldForm.js +0 -33
- package/es/Search/SearchResult.js +0 -185
- package/es/Search/SearchResultSleeve.js +0 -229
- package/es/Search/index.js +0 -12
- package/lib/Article/ArticleHeaderWrapper.d.ts +0 -14
- package/lib/Article/ArticleHeaderWrapper.js +0 -40
- package/lib/CreatedBy/CreatedBy.d.ts +0 -15
- package/lib/CreatedBy/CreatedBy.js +0 -78
- package/lib/CreatedBy/index.d.ts +0 -9
- package/lib/CreatedBy/index.js +0 -16
- package/lib/Hero/Hero.d.ts +0 -25
- package/lib/Hero/Hero.js +0 -83
- package/lib/Hero/HeroContent.d.ts +0 -12
- package/lib/Hero/HeroContent.js +0 -23
- package/lib/Hero/index.d.ts +0 -10
- package/lib/Hero/index.js +0 -61
- package/lib/LanguageSelector/LanguageSelector.d.ts +0 -15
- package/lib/LanguageSelector/LanguageSelector.js +0 -92
- package/lib/LanguageSelector/index.d.ts +0 -9
- package/lib/LanguageSelector/index.js +0 -13
- package/lib/Logo/Logo.d.ts +0 -20
- package/lib/Logo/Logo.js +0 -58
- package/lib/Logo/SvgLogo.d.ts +0 -14
- package/lib/Logo/SvgLogo.js +0 -62
- package/lib/Logo/index.d.ts +0 -9
- package/lib/Logo/index.js +0 -16
- package/lib/Messages/MessageBanner.d.ts +0 -16
- package/lib/Messages/MessageBanner.js +0 -77
- package/lib/Search/ActiveFilterContent.d.ts +0 -23
- package/lib/Search/ActiveFilterContent.js +0 -47
- package/lib/Search/ActiveFilters.d.ts +0 -19
- package/lib/Search/ActiveFilters.js +0 -119
- package/lib/Search/ContentTypeResult.d.ts +0 -29
- package/lib/Search/ContentTypeResult.js +0 -159
- package/lib/Search/ContentTypeResultStyles.d.ts +0 -45
- package/lib/Search/ContentTypeResultStyles.js +0 -58
- package/lib/Search/IsPathToHighlight.d.ts +0 -8
- package/lib/Search/IsPathToHighlight.js +0 -19
- package/lib/Search/LoadingWrapper.d.ts +0 -12
- package/lib/Search/LoadingWrapper.js +0 -38
- package/lib/Search/SearchField.d.ts +0 -25
- package/lib/Search/SearchField.js +0 -117
- package/lib/Search/SearchFieldForm.d.ts +0 -15
- package/lib/Search/SearchFieldForm.js +0 -41
- package/lib/Search/SearchResult.d.ts +0 -43
- package/lib/Search/SearchResult.js +0 -194
- package/lib/Search/SearchResultSleeve.d.ts +0 -25
- package/lib/Search/SearchResultSleeve.js +0 -237
- package/lib/Search/index.d.ts +0 -11
- package/lib/Search/index.js +0 -33
- package/src/Article/ArticleHeaderWrapper.tsx +0 -38
- package/src/CreatedBy/CreatedBy.stories.tsx +0 -36
- package/src/CreatedBy/CreatedBy.tsx +0 -63
- package/src/CreatedBy/index.ts +0 -11
- package/src/Hero/Hero.stories.tsx +0 -35
- package/src/Hero/Hero.tsx +0 -129
- package/src/Hero/HeroContent.tsx +0 -43
- package/src/Hero/index.ts +0 -21
- package/src/LanguageSelector/LanguageSelector.stories.tsx +0 -44
- package/src/LanguageSelector/LanguageSelector.tsx +0 -101
- package/src/LanguageSelector/index.ts +0 -11
- package/src/Logo/Logo.stories.tsx +0 -47
- package/src/Logo/Logo.tsx +0 -47
- package/src/Logo/SvgLogo.tsx +0 -48
- package/src/Logo/index.ts +0 -11
- package/src/Messages/MessageBanner.stories.tsx +0 -31
- package/src/Messages/MessageBanner.tsx +0 -67
- package/src/Search/ActiveFilterContent.tsx +0 -64
- package/src/Search/ActiveFilters.tsx +0 -145
- package/src/Search/ContentTypeResult.tsx +0 -190
- package/src/Search/ContentTypeResultStyles.tsx +0 -172
- package/src/Search/IsPathToHighlight.ts +0 -12
- package/src/Search/LoadingWrapper.tsx +0 -44
- package/src/Search/SearchField.tsx +0 -175
- package/src/Search/SearchFieldForm.tsx +0 -64
- package/src/Search/SearchResult.tsx +0 -368
- package/src/Search/SearchResultSleeve.tsx +0 -367
- package/src/Search/__tests__/Highlight-test.ts +0 -66
- package/src/Search/index.ts +0 -14
|
@@ -10,7 +10,7 @@ import punycode from "punycode/";
|
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
import { contentTypeMapping } from "../model/ContentType";
|
|
12
12
|
import { RelatedArticle } from "../RelatedArticleList/RelatedArticleList";
|
|
13
|
-
import { Fragment as _Fragment, jsx as _jsx } from "
|
|
13
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
const RelatedContentEmbed = _ref => {
|
|
15
15
|
let {
|
|
16
16
|
embed,
|
|
@@ -22,7 +22,7 @@ const RelatedContentEmbed = _ref => {
|
|
|
22
22
|
t
|
|
23
23
|
} = useTranslation();
|
|
24
24
|
if (embed.status === "error") {
|
|
25
|
-
return _jsx(_Fragment, {});
|
|
25
|
+
return /*#__PURE__*/_jsx(_Fragment, {});
|
|
26
26
|
}
|
|
27
27
|
const {
|
|
28
28
|
data,
|
|
@@ -32,7 +32,7 @@ const RelatedContentEmbed = _ref => {
|
|
|
32
32
|
const typeId = data.resource?.resourceTypes.find(rt => contentTypeMapping[rt.id])?.id;
|
|
33
33
|
const type = typeId ? contentTypeMapping[typeId] : undefined;
|
|
34
34
|
const path = data.resource?.paths.find(p => p.split("/")[1] === subject?.replace("urn:", "")) ?? data.resource?.path ?? `/article/${embedData.articleId}`;
|
|
35
|
-
return _jsx(RelatedArticle, {
|
|
35
|
+
return /*#__PURE__*/_jsx(RelatedArticle, {
|
|
36
36
|
title: data.article.title?.title ?? "",
|
|
37
37
|
introduction: data.article.metaDescription?.metaDescription ?? "",
|
|
38
38
|
target: isOembed ? "_blank" : undefined,
|
|
@@ -41,7 +41,7 @@ const RelatedContentEmbed = _ref => {
|
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
if (typeof embedData.url === "string") {
|
|
44
|
-
return _jsx(RelatedArticle, {
|
|
44
|
+
return /*#__PURE__*/_jsx(RelatedArticle, {
|
|
45
45
|
title: embedData.title ?? "",
|
|
46
46
|
introduction: "",
|
|
47
47
|
to: embedData.url,
|
|
@@ -52,6 +52,6 @@ const RelatedContentEmbed = _ref => {
|
|
|
52
52
|
punycode.toUnicode(embedData.url.match(/^(?:https?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:/\n]+)/im)?.[1] || embedData.url)}`
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
return _jsx(_Fragment, {});
|
|
55
|
+
return /*#__PURE__*/_jsx(_Fragment, {});
|
|
56
56
|
};
|
|
57
57
|
export default RelatedContentEmbed;
|
package/es/Embed/UnknownEmbed.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { useTranslation } from "react-i18next";
|
|
10
10
|
import { Text } from "@ndla/primitives";
|
|
11
|
-
import { jsx as _jsx } from "
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
const UnknownEmbed = _ref => {
|
|
13
13
|
let {
|
|
14
14
|
embed
|
|
@@ -16,11 +16,11 @@ const UnknownEmbed = _ref => {
|
|
|
16
16
|
const {
|
|
17
17
|
t
|
|
18
18
|
} = useTranslation();
|
|
19
|
-
return _jsx(Text, {
|
|
19
|
+
return /*#__PURE__*/_jsx(Text, {
|
|
20
20
|
color: "text.error",
|
|
21
21
|
asChild: true,
|
|
22
22
|
consumeCss: true,
|
|
23
|
-
children: _jsx("span", {
|
|
23
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
24
24
|
children: t("embed.unsupported", {
|
|
25
25
|
type: embed.resource
|
|
26
26
|
})
|
|
@@ -11,7 +11,7 @@ import { InformationOutline } from "@ndla/icons/common";
|
|
|
11
11
|
import { MessageBox } from "@ndla/primitives";
|
|
12
12
|
import { SafeLink } from "@ndla/safelink";
|
|
13
13
|
import { styled } from "@ndla/styled-system/jsx";
|
|
14
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "
|
|
14
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
const StyledMessageBox = styled(MessageBox, {
|
|
16
16
|
base: {
|
|
17
17
|
display: "flex",
|
|
@@ -38,20 +38,20 @@ const UuDisclaimerEmbed = _ref => {
|
|
|
38
38
|
embedData,
|
|
39
39
|
data
|
|
40
40
|
} = embed;
|
|
41
|
-
const disclaimerLink = data?.disclaimerLink ? _jsxs(_Fragment, {
|
|
42
|
-
children: [` ${t("uuDisclaimer.alternative")} `, _jsx(SafeLink, {
|
|
41
|
+
const disclaimerLink = data?.disclaimerLink ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
42
|
+
children: [` ${t("uuDisclaimer.alternative")} `, /*#__PURE__*/_jsx(SafeLink, {
|
|
43
43
|
to: data.disclaimerLink.href,
|
|
44
44
|
target: "_blank",
|
|
45
45
|
rel: "noopener noreferrer",
|
|
46
46
|
children: data.disclaimerLink.text
|
|
47
47
|
})]
|
|
48
48
|
}) : null;
|
|
49
|
-
return _jsxs("div", {
|
|
49
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
50
50
|
role: "region",
|
|
51
|
-
children: [_jsxs(StyledMessageBox, {
|
|
51
|
+
children: [/*#__PURE__*/_jsxs(StyledMessageBox, {
|
|
52
52
|
variant: "warning",
|
|
53
53
|
contentEditable: false,
|
|
54
|
-
children: [_jsx(InformationOutline, {}), _jsxs(Disclaimer, {
|
|
54
|
+
children: [/*#__PURE__*/_jsx(InformationOutline, {}), /*#__PURE__*/_jsxs(Disclaimer, {
|
|
55
55
|
children: [embedData.disclaimer, disclaimerLink]
|
|
56
56
|
})]
|
|
57
57
|
}), children]
|
|
@@ -11,7 +11,7 @@ import { SafeLink } from "@ndla/safelink";
|
|
|
11
11
|
import { styled } from "@ndla/styled-system/jsx";
|
|
12
12
|
|
|
13
13
|
// TODO: This has not been redesignet yet. This is just a rewrite of the previous design in panda
|
|
14
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
const StyledErrorMessage = styled("article", {
|
|
16
16
|
base: {
|
|
17
17
|
textAlign: "center",
|
|
@@ -57,33 +57,33 @@ export const ErrorMessage = _ref => {
|
|
|
57
57
|
illustrationElement,
|
|
58
58
|
customElement
|
|
59
59
|
} = _ref;
|
|
60
|
-
return _jsxs(StyledErrorMessage, {
|
|
61
|
-
children: [illustration && _jsx(IllustrationWrapper, {
|
|
62
|
-
children: _jsx("img", {
|
|
60
|
+
return /*#__PURE__*/_jsxs(StyledErrorMessage, {
|
|
61
|
+
children: [illustration && /*#__PURE__*/_jsx(IllustrationWrapper, {
|
|
62
|
+
children: /*#__PURE__*/_jsx("img", {
|
|
63
63
|
src: illustration.url,
|
|
64
64
|
alt: illustration.altText
|
|
65
65
|
})
|
|
66
|
-
}), illustrationElement && _jsx(IllustrationWrapper, {
|
|
66
|
+
}), illustrationElement && /*#__PURE__*/_jsx(IllustrationWrapper, {
|
|
67
67
|
children: illustrationElement
|
|
68
|
-
}), _jsx("h1", {
|
|
68
|
+
}), /*#__PURE__*/_jsx("h1", {
|
|
69
69
|
children: messages.title
|
|
70
|
-
}), messages.description && _jsx(Description, {
|
|
70
|
+
}), messages.description && /*#__PURE__*/_jsx(Description, {
|
|
71
71
|
children: messages.description
|
|
72
|
-
}), customElement && _jsx(CustomElementWrapper, {
|
|
72
|
+
}), customElement && /*#__PURE__*/_jsx(CustomElementWrapper, {
|
|
73
73
|
children: customElement
|
|
74
|
-
}), messages.linksTitle && _jsx("h2", {
|
|
74
|
+
}), messages.linksTitle && /*#__PURE__*/_jsx("h2", {
|
|
75
75
|
children: messages.linksTitle
|
|
76
|
-
}), messages.back && _jsx(SafeLink, {
|
|
76
|
+
}), messages.back && /*#__PURE__*/_jsx(SafeLink, {
|
|
77
77
|
to: `/#${encodeURI(messages.back)}`,
|
|
78
78
|
onClick: () => window.history.back(),
|
|
79
79
|
children: messages.back
|
|
80
|
-
}), messages.goToFrontPage && _jsx(MessageWrapper, {
|
|
81
|
-
children: _jsx(SafeLink, {
|
|
80
|
+
}), messages.goToFrontPage && /*#__PURE__*/_jsx(MessageWrapper, {
|
|
81
|
+
children: /*#__PURE__*/_jsx(SafeLink, {
|
|
82
82
|
to: "/",
|
|
83
83
|
children: messages.goToFrontPage
|
|
84
84
|
})
|
|
85
|
-
}), messages.logInFailed && _jsx(MessageWrapper, {
|
|
86
|
-
children: _jsx(SafeLink, {
|
|
85
|
+
}), messages.logInFailed && /*#__PURE__*/_jsx(MessageWrapper, {
|
|
86
|
+
children: /*#__PURE__*/_jsx(SafeLink, {
|
|
87
87
|
to: "/minndla",
|
|
88
88
|
children: messages.logInFailed
|
|
89
89
|
})
|
|
@@ -13,7 +13,7 @@ import { styled } from "@ndla/styled-system/jsx";
|
|
|
13
13
|
import ErrorMessage from "./ErrorMessage";
|
|
14
14
|
|
|
15
15
|
// TODO: This has not been redesignet yet. This is just a rewrite of the previous design in panda
|
|
16
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
17
|
const StyledLogInIconWrapper = styled("span", {
|
|
18
18
|
base: {
|
|
19
19
|
marginLeft: "3xsmall"
|
|
@@ -26,21 +26,21 @@ const ErrorResourceAccessDenied = _ref => {
|
|
|
26
26
|
const {
|
|
27
27
|
t
|
|
28
28
|
} = useTranslation();
|
|
29
|
-
return _jsx(ErrorMessage, {
|
|
29
|
+
return /*#__PURE__*/_jsx(ErrorMessage, {
|
|
30
30
|
messages: {
|
|
31
31
|
title: t("user.resource.accessDenied"),
|
|
32
32
|
back: t("errorMessage.back"),
|
|
33
33
|
goToFrontPage: t("errorMessage.goToFrontPage")
|
|
34
34
|
},
|
|
35
|
-
illustrationElement: _jsx(HumanMaleBoard, {
|
|
35
|
+
illustrationElement: /*#__PURE__*/_jsx(HumanMaleBoard, {
|
|
36
36
|
size: "medium"
|
|
37
37
|
}),
|
|
38
|
-
customElement: _jsxs(ButtonV2, {
|
|
38
|
+
customElement: /*#__PURE__*/_jsxs(ButtonV2, {
|
|
39
39
|
size: "medium",
|
|
40
40
|
onClick: onAuthenticateClick,
|
|
41
|
-
children: [t("user.buttonLogIn"), _jsx(StyledLogInIconWrapper, {
|
|
41
|
+
children: [t("user.buttonLogIn"), /*#__PURE__*/_jsx(StyledLogInIconWrapper, {
|
|
42
42
|
"aria-hidden": true,
|
|
43
|
-
children: _jsx(LogIn, {
|
|
43
|
+
children: /*#__PURE__*/_jsx(LogIn, {
|
|
44
44
|
size: "medium"
|
|
45
45
|
})
|
|
46
46
|
})]
|
package/es/FactBox/FactBox.js
CHANGED
|
@@ -11,7 +11,7 @@ import { useTranslation } from "react-i18next";
|
|
|
11
11
|
import { ChevronDown } from "@ndla/icons/common";
|
|
12
12
|
import { IconButton } from "@ndla/primitives";
|
|
13
13
|
import { styled } from "@ndla/styled-system/jsx";
|
|
14
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
const StyledAside = styled("aside", {
|
|
16
16
|
base: {
|
|
17
17
|
display: "flex",
|
|
@@ -129,18 +129,18 @@ const FactBox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
129
129
|
setState(newState);
|
|
130
130
|
onOpenChange?.(newState === "open");
|
|
131
131
|
}, [state, onOpenChange]);
|
|
132
|
-
return _jsxs(StyledAside, {
|
|
132
|
+
return /*#__PURE__*/_jsxs(StyledAside, {
|
|
133
133
|
"data-state": state,
|
|
134
134
|
...rest,
|
|
135
135
|
ref: ref,
|
|
136
|
-
children: [_jsx(StyledIconButton, {
|
|
136
|
+
children: [/*#__PURE__*/_jsx(StyledIconButton, {
|
|
137
137
|
"data-state": state,
|
|
138
138
|
onClick: onClick,
|
|
139
139
|
"aria-expanded": state === "open",
|
|
140
140
|
"aria-controls": contentId,
|
|
141
141
|
"aria-label": t(`factbox.${state === "open" ? "close" : "open"}`),
|
|
142
|
-
children: _jsx(ChevronDown, {})
|
|
143
|
-
}), _jsx(StyledContent, {
|
|
142
|
+
children: /*#__PURE__*/_jsx(ChevronDown, {})
|
|
143
|
+
}), /*#__PURE__*/_jsx(StyledContent, {
|
|
144
144
|
id: contentId,
|
|
145
145
|
"data-state": state,
|
|
146
146
|
"aria-hidden": state === "closed",
|
package/es/FileList/File.js
CHANGED
|
@@ -10,7 +10,7 @@ import _styled from "@emotion/styled/base";
|
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
import { breakpoints, colors, mq, spacing } from "@ndla/core";
|
|
12
12
|
import Format from "./Format";
|
|
13
|
-
import { jsx as _jsx } from "
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
const StyledFileItem = /*#__PURE__*/_styled("li", {
|
|
15
15
|
target: "ei1p2nz0",
|
|
16
16
|
label: "StyledFileItem"
|
|
@@ -28,8 +28,8 @@ const File = _ref => {
|
|
|
28
28
|
t
|
|
29
29
|
} = useTranslation();
|
|
30
30
|
const tooltip = `${t("download")} ${url.split("/").pop()}`;
|
|
31
|
-
return _jsx(StyledFileItem, {
|
|
32
|
-
children: _jsx(Format, {
|
|
31
|
+
return /*#__PURE__*/_jsx(StyledFileItem, {
|
|
32
|
+
children: /*#__PURE__*/_jsx(Format, {
|
|
33
33
|
format: {
|
|
34
34
|
url,
|
|
35
35
|
fileType,
|
package/es/FileList/FileList.js
CHANGED
|
@@ -11,7 +11,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
11
11
|
import { useTranslation } from "react-i18next";
|
|
12
12
|
import { colors, fonts, spacing } from "@ndla/core";
|
|
13
13
|
import { Heading } from "@ndla/typography";
|
|
14
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
const FileListSection = /*#__PURE__*/_styled("section", {
|
|
16
16
|
target: "e1o67ylf2",
|
|
17
17
|
label: "FileListSection"
|
|
@@ -41,18 +41,18 @@ const FileList = _ref => {
|
|
|
41
41
|
const {
|
|
42
42
|
t
|
|
43
43
|
} = useTranslation();
|
|
44
|
-
return _jsxs(FileListSection, {
|
|
44
|
+
return /*#__PURE__*/_jsxs(FileListSection, {
|
|
45
45
|
...rest,
|
|
46
|
-
children: [_jsxs(FileListHeaderWrapper, {
|
|
47
|
-
children: [_jsx(Heading, {
|
|
46
|
+
children: [/*#__PURE__*/_jsxs(FileListHeaderWrapper, {
|
|
47
|
+
children: [/*#__PURE__*/_jsx(Heading, {
|
|
48
48
|
element: "h3",
|
|
49
49
|
headingStyle: "list-title",
|
|
50
50
|
margin: "none",
|
|
51
51
|
children: t("files")
|
|
52
|
-
}), _jsx("div", {
|
|
52
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
53
53
|
children: headingButtons
|
|
54
54
|
})]
|
|
55
|
-
}), _jsx(FilesList, {
|
|
55
|
+
}), /*#__PURE__*/_jsx(FilesList, {
|
|
56
56
|
children: children
|
|
57
57
|
})]
|
|
58
58
|
});
|
package/es/FileList/Format.js
CHANGED
|
@@ -12,7 +12,7 @@ import { colors, spacing } from "@ndla/core";
|
|
|
12
12
|
import { Download } from "@ndla/icons/common";
|
|
13
13
|
import { SafeLink } from "@ndla/safelink";
|
|
14
14
|
import { Text } from "@ndla/typography";
|
|
15
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
16
|
const StyledText = /*#__PURE__*/_styled(Text, {
|
|
17
17
|
target: "elufxu24",
|
|
18
18
|
label: "StyledText"
|
|
@@ -66,8 +66,8 @@ const Format = _ref => {
|
|
|
66
66
|
} = _ref;
|
|
67
67
|
const titleWithFormat = `${title} (${format.fileType.toUpperCase()})`;
|
|
68
68
|
if (isDeadLink) {
|
|
69
|
-
return _jsxs(StyledDeadLinkWrapper, {
|
|
70
|
-
children: [_jsx(StyledDownload, {}), _jsx(StyledDeadLinkText, {
|
|
69
|
+
return /*#__PURE__*/_jsxs(StyledDeadLinkWrapper, {
|
|
70
|
+
children: [/*#__PURE__*/_jsx(StyledDownload, {}), /*#__PURE__*/_jsx(StyledDeadLinkText, {
|
|
71
71
|
element: "span",
|
|
72
72
|
textStyle: "label-small",
|
|
73
73
|
margin: "none",
|
|
@@ -75,13 +75,13 @@ const Format = _ref => {
|
|
|
75
75
|
})]
|
|
76
76
|
}, format.url);
|
|
77
77
|
}
|
|
78
|
-
return _jsxs(FileLink, {
|
|
78
|
+
return /*#__PURE__*/_jsxs(FileLink, {
|
|
79
79
|
to: format.url,
|
|
80
80
|
target: "_blank",
|
|
81
81
|
"aria-label": titleWithFormat,
|
|
82
|
-
children: [_jsx(StyledDownload, {}), _jsx("div", {
|
|
82
|
+
children: [/*#__PURE__*/_jsx(StyledDownload, {}), /*#__PURE__*/_jsx("div", {
|
|
83
83
|
"aria-label": format.tooltip,
|
|
84
|
-
children: _jsx(StyledText, {
|
|
84
|
+
children: /*#__PURE__*/_jsx(StyledText, {
|
|
85
85
|
element: "span",
|
|
86
86
|
textStyle: "label-small",
|
|
87
87
|
margin: "none",
|
package/es/FileList/PdfFile.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { Heading, Figure } from "@ndla/primitives";
|
|
10
10
|
import { styled } from "@ndla/styled-system/jsx";
|
|
11
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
const StyledIframe = styled("iframe", {
|
|
13
13
|
base: {
|
|
14
14
|
width: "100%"
|
|
@@ -26,15 +26,15 @@ const PdfFile = _ref => {
|
|
|
26
26
|
title,
|
|
27
27
|
url
|
|
28
28
|
} = _ref;
|
|
29
|
-
return _jsxs(StyledFigure, {
|
|
30
|
-
children: [_jsx(Heading, {
|
|
29
|
+
return /*#__PURE__*/_jsxs(StyledFigure, {
|
|
30
|
+
children: [/*#__PURE__*/_jsx(Heading, {
|
|
31
31
|
asChild: true,
|
|
32
32
|
consumeCss: true,
|
|
33
33
|
textStyle: "title.medium",
|
|
34
|
-
children: _jsx("h4", {
|
|
34
|
+
children: /*#__PURE__*/_jsx("h4", {
|
|
35
35
|
children: title
|
|
36
36
|
})
|
|
37
|
-
}), _jsx(StyledIframe, {
|
|
37
|
+
}), /*#__PURE__*/_jsx(StyledIframe, {
|
|
38
38
|
title: title,
|
|
39
39
|
height: "1050",
|
|
40
40
|
src: url
|
|
@@ -12,13 +12,13 @@ import { spacing } from "@ndla/core";
|
|
|
12
12
|
import { useComponentSize } from "@ndla/hooks";
|
|
13
13
|
import { Heading, Text } from "@ndla/typography";
|
|
14
14
|
import { ArticleByline } from "../Article";
|
|
15
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
16
|
export const FRONTPAGE_ARTICLE_MAX_WIDTH = "773px";
|
|
17
17
|
export const WIDE_FRONTPAGE_ARTICLE_MAX_WIDTH = "1100px";
|
|
18
18
|
const StyledArticle = /*#__PURE__*/_styled("article", {
|
|
19
19
|
target: "e10a6yg80",
|
|
20
20
|
label: "StyledArticle"
|
|
21
|
-
})("width:100%;max-width:773px;h2[id]{margin-top:", spacing.large, ";}div[data-type=\"campaign-block\"]{margin:", spacing.large, " 0px;}div[data-type=\"grid\"]{h2,h3,h4{margin-top:0px;}}div[data-type=\"grid\"]+div[data-type=\"grid\"]{margin-top:", spacing.xxlarge, ";}&[data-wide=\"true\"]{max-width:1100px;h2[id]{margin-top:", spacing.xxlarge, ";}div[data-type=\"campaign-block\"]{margin:", spacing.xxlarge, " 0px;}}" + (process.env.NODE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XNXaWRlLCBsaWNlbnNlQm94LCBsYW5nIH06IFByb3BzKSA9PiB7XG4gIGNvbnN0IHsgaGVpZ2h0ID0gMCB9ID0gdXNlQ29tcG9uZW50U2l6ZShcIm1hc3RoZWFkXCIpO1xuICBjb25zdCBjc3NWYXJzID0gdXNlTWVtbygoKSA9PiAoeyBcIi0tbWFzdGhlYWQtaGVpZ2h0XCI6IGAke2hlaWdodH1weGAgfSkgYXMgdW5rbm93biBhcyBDU1NQcm9wZXJ0aWVzLCBbaGVpZ2h0XSk7XG4gIGNvbnN0IHsgdGl0bGUsIGludHJvZHVjdGlvbiwgY29udGVudCB9ID0gYXJ0aWNsZTtcblxuICBpZiAoaXNXaWRlKSB7XG4gICAgcmV0dXJuIChcbiAgICAgIDxTdHlsZWRBcnRpY2xlIGRhdGEtd2lkZT17aXNXaWRlfSBzdHlsZT17Y3NzVmFyc30gaWQ9e2lkfT5cbiAgICAgICAge2NvbnRlbnR9XG4gICAgICA8L1N0eWxlZEFydGljbGU+XG4gICAgKTtcbiAgfVxuXG4gIHJldHVybiAoXG4gICAgPFN0eWxlZEFydGljbGUgc3R5bGU9e2Nzc1ZhcnN9PlxuICAgICAgPEhlYWRpbmcgaWQ9e2lkfSBoZWFkaW5nU3R5bGU9XCJoMS1yZXNvdXJjZVwiIGVsZW1lbnQ9XCJoMVwiIG1hcmdpbj1cIm5vcm1hbFwiIHRhYkluZGV4PXstMX0gbGFuZz17bGFuZ30+XG4gICAgICAgIHt0aXRsZX1cbiAgICAgIDwvSGVhZGluZz5cbiAgICAgIDxUZXh0IHRleHRTdHlsZT1cImluZ3Jlc3NcIiBlbGVtZW50PVwiZGl2XCIgbGFuZz17bGFuZ30+XG4gICAgICAgIHtpbnRyb2R1Y3Rpb259XG4gICAgICA8L1RleHQ+
|
|
21
|
+
})("width:100%;max-width:773px;h2[id]{margin-top:", spacing.large, ";}div[data-type=\"campaign-block\"]{margin:", spacing.large, " 0px;}div[data-type=\"grid\"]{h2,h3,h4{margin-top:0px;}}div[data-type=\"grid\"]+div[data-type=\"grid\"]{margin-top:", spacing.xxlarge, ";}&[data-wide=\"true\"]{max-width:1100px;h2[id]{margin-top:", spacing.xxlarge, ";}div[data-type=\"campaign-block\"]{margin:", spacing.xxlarge, " 0px;}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZyb250cGFnZUFydGljbGUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTJCb0MiLCJmaWxlIjoiRnJvbnRwYWdlQXJ0aWNsZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAyMy1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXG4gKlxuICovXG5cbmltcG9ydCB7IENTU1Byb3BlcnRpZXMsIFJlYWN0Tm9kZSwgdXNlTWVtbyB9IGZyb20gXCJyZWFjdFwiO1xuaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQgeyBzcGFjaW5nIH0gZnJvbSBcIkBuZGxhL2NvcmVcIjtcbmltcG9ydCB7IHVzZUNvbXBvbmVudFNpemUgfSBmcm9tIFwiQG5kbGEvaG9va3NcIjtcbmltcG9ydCB7IEhlYWRpbmcsIFRleHQgfSBmcm9tIFwiQG5kbGEvdHlwb2dyYXBoeVwiO1xuaW1wb3J0IHsgQXJ0aWNsZUJ5bGluZSB9IGZyb20gXCIuLi9BcnRpY2xlXCI7XG5pbXBvcnQgeyBBcnRpY2xlIH0gZnJvbSBcIi4uL3R5cGVzXCI7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gICAgIHtpbnRyb2R1Y3Rpb259XG4gICAgICA8L1RleHQ+XG4gICAgICB7Y29udGVudH1cbiAgICAgIDxBcnRpY2xlQnlsaW5lIGxpY2Vuc2VCb3g9e2xpY2Vuc2VCb3h9IGRpc3BsYXlCeWxpbmU9e2ZhbHNlfSAvPlxuICAgIDwvU3R5bGVkQXJ0aWNsZT5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEZyb250cGFnZUFydGljbGU7XG4iXX0= */"));
|
|
22
22
|
export const FrontpageArticle = _ref => {
|
|
23
23
|
let {
|
|
24
24
|
article,
|
|
@@ -39,16 +39,16 @@ export const FrontpageArticle = _ref => {
|
|
|
39
39
|
content
|
|
40
40
|
} = article;
|
|
41
41
|
if (isWide) {
|
|
42
|
-
return _jsx(StyledArticle, {
|
|
42
|
+
return /*#__PURE__*/_jsx(StyledArticle, {
|
|
43
43
|
"data-wide": isWide,
|
|
44
44
|
style: cssVars,
|
|
45
45
|
id: id,
|
|
46
46
|
children: content
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
return _jsxs(StyledArticle, {
|
|
49
|
+
return /*#__PURE__*/_jsxs(StyledArticle, {
|
|
50
50
|
style: cssVars,
|
|
51
|
-
children: [_jsx(Heading, {
|
|
51
|
+
children: [/*#__PURE__*/_jsx(Heading, {
|
|
52
52
|
id: id,
|
|
53
53
|
headingStyle: "h1-resource",
|
|
54
54
|
element: "h1",
|
|
@@ -56,13 +56,12 @@ export const FrontpageArticle = _ref => {
|
|
|
56
56
|
tabIndex: -1,
|
|
57
57
|
lang: lang,
|
|
58
58
|
children: title
|
|
59
|
-
}), _jsx(Text, {
|
|
59
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
60
60
|
textStyle: "ingress",
|
|
61
61
|
element: "div",
|
|
62
62
|
lang: lang,
|
|
63
63
|
children: introduction
|
|
64
|
-
}), content, _jsx(ArticleByline, {
|
|
65
|
-
accordionHeaderVariant: "white",
|
|
64
|
+
}), content, /*#__PURE__*/_jsx(ArticleByline, {
|
|
66
65
|
licenseBox: licenseBox,
|
|
67
66
|
displayByline: false
|
|
68
67
|
})]
|
package/es/Gloss/Gloss.js
CHANGED
|
@@ -18,7 +18,7 @@ import SpeechControl from "../AudioPlayer/SpeechControl";
|
|
|
18
18
|
// TODO: Figure out padding between bordered and simple variant.
|
|
19
19
|
// The design says that the content above the accordion content should have enough padding to align with the accordion content.
|
|
20
20
|
// When a gloss is bordered there's way too much padding.
|
|
21
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
22
|
const getFilteredExamples = (glossData, exampleIds, exampleLangs) => {
|
|
23
23
|
if (exampleIds !== undefined || exampleLangs !== undefined) {
|
|
24
24
|
const exampleIdsList = exampleIds?.toString()?.split(",") ?? [];
|
|
@@ -90,81 +90,81 @@ const Gloss = _ref => {
|
|
|
90
90
|
} = useTranslation();
|
|
91
91
|
const filteredExamples = useMemo(() => getFilteredExamples(glossData, exampleIds, exampleLangs), [exampleIds, exampleLangs, glossData]);
|
|
92
92
|
if (!glossData) return null;
|
|
93
|
-
return _jsx(AccordionRoot, {
|
|
93
|
+
return /*#__PURE__*/_jsx(AccordionRoot, {
|
|
94
94
|
multiple: true,
|
|
95
95
|
variant: "clean",
|
|
96
|
-
children: _jsxs(StyledAccordionItem, {
|
|
96
|
+
children: /*#__PURE__*/_jsxs(StyledAccordionItem, {
|
|
97
97
|
value: "gloss",
|
|
98
98
|
variant: variant,
|
|
99
|
-
children: [_jsxs(Container, {
|
|
100
|
-
children: [_jsxs(TextWrapper, {
|
|
101
|
-
children: [_jsx(Text, {
|
|
99
|
+
children: [/*#__PURE__*/_jsxs(Container, {
|
|
100
|
+
children: [/*#__PURE__*/_jsxs(TextWrapper, {
|
|
101
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
102
102
|
textStyle: "label.medium",
|
|
103
103
|
fontWeight: "bold",
|
|
104
104
|
asChild: true,
|
|
105
105
|
consumeCss: true,
|
|
106
106
|
lang: glossData.originalLanguage,
|
|
107
|
-
children: _jsx("span", {
|
|
107
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
108
108
|
children: glossData.gloss
|
|
109
109
|
})
|
|
110
|
-
}), glossData.transcriptions.traditional && _jsx(Text, {
|
|
110
|
+
}), glossData.transcriptions.traditional && /*#__PURE__*/_jsx(Text, {
|
|
111
111
|
textStyle: "label.medium",
|
|
112
112
|
asChild: true,
|
|
113
113
|
consumeCss: true,
|
|
114
|
-
children: _jsx("span", {
|
|
114
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
115
115
|
"aria-label": t("gloss.transcriptions.traditional"),
|
|
116
116
|
lang: glossData.originalLanguage,
|
|
117
117
|
children: glossData.transcriptions.traditional
|
|
118
118
|
}, t("gloss.transcriptions.traditional"))
|
|
119
|
-
}), glossData.transcriptions.pinyin && _jsx(Text, {
|
|
119
|
+
}), glossData.transcriptions.pinyin && /*#__PURE__*/_jsx(Text, {
|
|
120
120
|
textStyle: "label.medium",
|
|
121
121
|
asChild: true,
|
|
122
122
|
consumeCss: true,
|
|
123
|
-
children: _jsx("span", {
|
|
123
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
124
124
|
"data-pinyin": "",
|
|
125
125
|
"aria-label": t("gloss.transcriptions.pinyin"),
|
|
126
126
|
lang: glossData.originalLanguage,
|
|
127
127
|
children: glossData.transcriptions.pinyin
|
|
128
128
|
}, t("gloss.transcriptions.pinyin"))
|
|
129
|
-
}), glossData.wordClass && _jsx(Text, {
|
|
129
|
+
}), glossData.wordClass && /*#__PURE__*/_jsx(Text, {
|
|
130
130
|
textStyle: "label.medium",
|
|
131
131
|
asChild: true,
|
|
132
132
|
consumeCss: true,
|
|
133
|
-
children: _jsx("span", {
|
|
133
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
134
134
|
"aria-label": t("gloss.wordClass"),
|
|
135
135
|
children: t(`wordClass.${glossData.wordClass}`).toLowerCase()
|
|
136
136
|
})
|
|
137
137
|
})]
|
|
138
|
-
}), audio?.src && _jsx(SpeechControl, {
|
|
138
|
+
}), audio?.src && /*#__PURE__*/_jsx(SpeechControl, {
|
|
139
139
|
src: audio.src,
|
|
140
140
|
title: audio.title,
|
|
141
141
|
type: "gloss"
|
|
142
142
|
})]
|
|
143
|
-
}), _jsxs(StyledContainer, {
|
|
144
|
-
children: [_jsx(Text, {
|
|
143
|
+
}), /*#__PURE__*/_jsxs(StyledContainer, {
|
|
144
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
145
145
|
textStyle: "label.medium",
|
|
146
146
|
asChild: true,
|
|
147
147
|
consumeCss: true,
|
|
148
|
-
children: _jsx("span", {
|
|
148
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
149
149
|
lang: title.language,
|
|
150
150
|
children: title.title
|
|
151
151
|
})
|
|
152
|
-
}), !!filteredExamples.length && _jsx(AccordionItemTrigger, {
|
|
152
|
+
}), !!filteredExamples.length && /*#__PURE__*/_jsx(AccordionItemTrigger, {
|
|
153
153
|
asChild: true,
|
|
154
|
-
children: _jsx(IconButton, {
|
|
154
|
+
children: /*#__PURE__*/_jsx(IconButton, {
|
|
155
155
|
variant: "tertiary",
|
|
156
156
|
"aria-label": t("gloss.showExamples"),
|
|
157
157
|
title: t("gloss.showExamples"),
|
|
158
|
-
children: _jsx(AccordionItemIndicator, {
|
|
158
|
+
children: /*#__PURE__*/_jsx(AccordionItemIndicator, {
|
|
159
159
|
asChild: true,
|
|
160
|
-
children: _jsx(ChevronDown, {
|
|
160
|
+
children: /*#__PURE__*/_jsx(ChevronDown, {
|
|
161
161
|
size: "medium"
|
|
162
162
|
})
|
|
163
163
|
})
|
|
164
164
|
})
|
|
165
165
|
})]
|
|
166
|
-
}), _jsx(StyledAccordionItemContent, {
|
|
167
|
-
children: filteredExamples.map((examples, index) => _jsx(GlossExample, {
|
|
166
|
+
}), /*#__PURE__*/_jsx(StyledAccordionItemContent, {
|
|
167
|
+
children: filteredExamples.map((examples, index) => /*#__PURE__*/_jsx(GlossExample, {
|
|
168
168
|
examples: examples,
|
|
169
169
|
originalLanguage: glossData.originalLanguage
|
|
170
170
|
}, `gloss-example-${index}`))
|
package/es/Gloss/GlossExample.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { Fragment } from "react";
|
|
10
10
|
import { Text } from "@ndla/primitives";
|
|
11
11
|
import { styled } from "@ndla/styled-system/jsx";
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
const StyledGlossExample = styled("div", {
|
|
14
14
|
base: {
|
|
15
15
|
borderTop: "1px solid",
|
|
@@ -35,24 +35,24 @@ const GlossExample = _ref => {
|
|
|
35
35
|
examples,
|
|
36
36
|
originalLanguage
|
|
37
37
|
} = _ref;
|
|
38
|
-
return _jsx("div", {
|
|
39
|
-
children: examples.map((examples, index) => _jsxs(Fragment, {
|
|
40
|
-
children: [_jsx(StyledGlossExample, {
|
|
38
|
+
return /*#__PURE__*/_jsx("div", {
|
|
39
|
+
children: examples.map((examples, index) => /*#__PURE__*/_jsxs(Fragment, {
|
|
40
|
+
children: [/*#__PURE__*/_jsx(StyledGlossExample, {
|
|
41
41
|
lang: examples.language,
|
|
42
|
-
children: _jsx(Text, {
|
|
42
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
43
43
|
textStyle: "label.medium",
|
|
44
44
|
lang: examples.language,
|
|
45
45
|
children: examples.example
|
|
46
46
|
})
|
|
47
|
-
}), !!examples.transcriptions.pinyin && _jsx(StyledGlossExample, {
|
|
48
|
-
children: _jsx(PinyinText, {
|
|
47
|
+
}), !!examples.transcriptions.pinyin && /*#__PURE__*/_jsx(StyledGlossExample, {
|
|
48
|
+
children: /*#__PURE__*/_jsx(PinyinText, {
|
|
49
49
|
"data-pinyin": "",
|
|
50
50
|
lang: originalLanguage,
|
|
51
51
|
textStyle: "label.medium",
|
|
52
52
|
children: examples.transcriptions?.pinyin
|
|
53
53
|
})
|
|
54
|
-
}), !!examples.transcriptions?.traditional && _jsx(StyledGlossExample, {
|
|
55
|
-
children: _jsx(Text, {
|
|
54
|
+
}), !!examples.transcriptions?.traditional && /*#__PURE__*/_jsx(StyledGlossExample, {
|
|
55
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
56
56
|
textStyle: "label.medium",
|
|
57
57
|
lang: originalLanguage,
|
|
58
58
|
children: examples.transcriptions.traditional
|
package/es/Grid/Grid.js
CHANGED
|
@@ -9,7 +9,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { breakpoints, colors, misc, mq, spacing } from "@ndla/core";
|
|
12
|
-
import { jsx as _jsx } from "
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
const GridContainer = /*#__PURE__*/_styled("div", {
|
|
14
14
|
target: "e1c0s8mo1",
|
|
15
15
|
label: "GridContainer"
|
|
@@ -30,7 +30,7 @@ const Grid = _ref => {
|
|
|
30
30
|
...rest
|
|
31
31
|
} = _ref;
|
|
32
32
|
const amountOfColumns = children?.length === 3 ? "3" : columns;
|
|
33
|
-
return _jsx(GridContainer, {
|
|
33
|
+
return /*#__PURE__*/_jsx(GridContainer, {
|
|
34
34
|
"data-frontpage": size,
|
|
35
35
|
"data-border": border,
|
|
36
36
|
"data-columns": amountOfColumns,
|
|
@@ -56,9 +56,9 @@ export const GridParallaxItem = _ref2 => {
|
|
|
56
56
|
children,
|
|
57
57
|
...rest
|
|
58
58
|
} = _ref2;
|
|
59
|
-
return _jsx(StyledGridParallaxItem, {
|
|
59
|
+
return /*#__PURE__*/_jsx(StyledGridParallaxItem, {
|
|
60
60
|
...rest,
|
|
61
|
-
children: _jsx("div", {
|
|
61
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
62
62
|
children: children
|
|
63
63
|
})
|
|
64
64
|
});
|
|
@@ -10,7 +10,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
10
10
|
|
|
11
11
|
import parse from "html-react-parser";
|
|
12
12
|
import { breakpoints, colors, fonts, mq, spacing } from "@ndla/core";
|
|
13
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
const ContentWrapper = /*#__PURE__*/_styled("div", {
|
|
15
15
|
target: "e14we9tj3",
|
|
16
16
|
label: "ContentWrapper"
|
|
@@ -47,15 +47,15 @@ const KeyFigure = _ref => {
|
|
|
47
47
|
title,
|
|
48
48
|
subtitle
|
|
49
49
|
} = _ref;
|
|
50
|
-
return _jsxs(ContentWrapper, {
|
|
51
|
-
children: [_jsx(StyledImage, {
|
|
50
|
+
return /*#__PURE__*/_jsxs(ContentWrapper, {
|
|
51
|
+
children: [/*#__PURE__*/_jsx(StyledImage, {
|
|
52
52
|
src: `${image?.src}?width=150`,
|
|
53
53
|
width: 150,
|
|
54
54
|
height: 150,
|
|
55
55
|
alt: image?.alt
|
|
56
|
-
}), _jsx(TitleWrapper, {
|
|
56
|
+
}), /*#__PURE__*/_jsx(TitleWrapper, {
|
|
57
57
|
children: parse(title)
|
|
58
|
-
}), _jsx(SubTitleWrapper, {
|
|
58
|
+
}), /*#__PURE__*/_jsx(SubTitleWrapper, {
|
|
59
59
|
children: parse(subtitle)
|
|
60
60
|
})]
|
|
61
61
|
});
|