@ndla/ui 56.0.142-alpha.0 → 56.0.143-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 +2 -3
- package/dist/styles.css +5 -9
- package/es/Article/Article.mjs +10 -12
- package/es/Article/Article.mjs.map +1 -1
- package/es/Article/ArticleByline.mjs.map +1 -1
- package/es/Article/ArticleFootNotes.mjs.map +1 -1
- package/es/AudioPlayer/AudioPlayer.mjs +3 -3
- package/es/AudioPlayer/AudioPlayer.mjs.map +1 -1
- package/es/AudioPlayer/Controls.mjs +1 -1
- package/es/AudioPlayer/Controls.mjs.map +1 -1
- package/es/AudioPlayer/SpeechControl.mjs +1 -1
- package/es/AudioPlayer/SpeechControl.mjs.map +1 -1
- package/es/Breadcrumb/Breadcrumb.mjs +2 -2
- package/es/Breadcrumb/Breadcrumb.mjs.map +1 -1
- package/es/Breadcrumb/BreadcrumbItem.mjs +1 -1
- package/es/Breadcrumb/BreadcrumbItem.mjs.map +1 -1
- package/es/Breadcrumb/HomeBreadcrumb.mjs +2 -2
- package/es/Breadcrumb/HomeBreadcrumb.mjs.map +1 -1
- package/es/CampaignBlock/CampaignBlock.mjs +1 -1
- package/es/CampaignBlock/CampaignBlock.mjs.map +1 -1
- package/es/CodeBlock/CodeBlock.mjs +1 -1
- package/es/CodeBlock/CodeBlock.mjs.map +1 -1
- package/es/CodeBlock/codeLanguageOptions.mjs.map +1 -1
- package/es/Concept/Concept.mjs +5 -5
- package/es/Concept/Concept.mjs.map +1 -1
- package/es/ContactBlock/ContactBlock.mjs.map +1 -1
- package/es/ContentTypeBadge/ContentTypeBadge.mjs.map +1 -1
- package/es/CopyParagraphButton/CopyParagraphButton.mjs +1 -1
- package/es/CopyParagraphButton/CopyParagraphButton.mjs.map +1 -1
- package/es/Embed/AudioEmbed.mjs +3 -3
- package/es/Embed/AudioEmbed.mjs.map +1 -1
- package/es/Embed/BrightcoveEmbed.mjs +2 -2
- package/es/Embed/BrightcoveEmbed.mjs.map +1 -1
- package/es/Embed/CodeEmbed.mjs +3 -4
- package/es/Embed/CodeEmbed.mjs.map +1 -1
- package/es/Embed/ConceptEmbed.mjs +2 -2
- package/es/Embed/ConceptEmbed.mjs.map +1 -1
- package/es/Embed/ConceptInlineTriggerButton.mjs.map +1 -1
- package/es/Embed/ContentLinkEmbed.mjs +1 -1
- package/es/Embed/ContentLinkEmbed.mjs.map +1 -1
- package/es/Embed/CopyrightEmbed.mjs +1 -1
- package/es/Embed/CopyrightEmbed.mjs.map +1 -1
- package/es/Embed/EmbedErrorPlaceholder.mjs +1 -1
- package/es/Embed/EmbedErrorPlaceholder.mjs.map +1 -1
- package/es/Embed/EmbedWrapper.mjs.map +1 -1
- package/es/Embed/ExternalEmbed.mjs +3 -3
- package/es/Embed/ExternalEmbed.mjs.map +1 -1
- package/es/Embed/FootnoteEmbed.mjs +1 -1
- package/es/Embed/FootnoteEmbed.mjs.map +1 -1
- package/es/Embed/GlossEmbed.mjs +2 -2
- package/es/Embed/GlossEmbed.mjs.map +1 -1
- package/es/Embed/H5pEmbed.mjs +2 -2
- package/es/Embed/H5pEmbed.mjs.map +1 -1
- package/es/Embed/IframeEmbed.mjs +3 -3
- package/es/Embed/IframeEmbed.mjs.map +1 -1
- package/es/Embed/ImageEmbed.mjs +2 -4
- package/es/Embed/ImageEmbed.mjs.map +1 -1
- package/es/Embed/InlineTriggerButton.mjs.map +1 -1
- package/es/Embed/RelatedContentEmbed.mjs +2 -3
- package/es/Embed/RelatedContentEmbed.mjs.map +1 -1
- package/es/Embed/UnknownEmbed.mjs +1 -1
- package/es/Embed/UnknownEmbed.mjs.map +1 -1
- package/es/Embed/UuDisclaimerEmbed.mjs +1 -1
- package/es/Embed/UuDisclaimerEmbed.mjs.map +1 -1
- package/es/FactBox/FactBox.mjs +1 -1
- package/es/FactBox/FactBox.mjs.map +1 -1
- package/es/FileList/File.mjs +34 -30
- package/es/FileList/File.mjs.map +1 -1
- package/es/FileList/FileList.mjs.map +1 -1
- package/es/FileList/PdfFile.mjs.map +1 -1
- package/es/Gloss/Gloss.mjs +5 -7
- package/es/Gloss/Gloss.mjs.map +1 -1
- package/es/Gloss/GlossExample.mjs +1 -1
- package/es/Gloss/GlossExample.mjs.map +1 -1
- package/es/Grid/Grid.mjs.map +1 -1
- package/es/Grid/GridParallaxItem.mjs.map +1 -1
- package/es/KeyFigure/KeyFigure.mjs +1 -1
- package/es/KeyFigure/KeyFigure.mjs.map +1 -1
- package/es/LicenseByline/EmbedByline.mjs +1 -2
- package/es/LicenseByline/EmbedByline.mjs.map +1 -1
- package/es/LicenseByline/LicenseLink.mjs.map +1 -1
- package/es/LinkBlock/LinkBlock.mjs +1 -1
- package/es/LinkBlock/LinkBlock.mjs.map +1 -1
- package/es/LinkBlock/LinkBlockSection.mjs +1 -1
- package/es/LinkBlock/LinkBlockSection.mjs.map +1 -1
- package/es/Pitch/Pitch.mjs.map +1 -1
- package/es/RelatedArticleList/RelatedArticleList.mjs.map +1 -1
- package/es/ResourceBox/ResourceBox.mjs +1 -1
- package/es/ResourceBox/ResourceBox.mjs.map +1 -1
- package/es/TagSelector/TagSelector.mjs.map +1 -1
- package/es/ZendeskButton/ZendeskButton.mjs.map +1 -1
- package/es/_virtual/rolldown_runtime.mjs +3 -1
- package/es/i18n/formatNestedMessages.mjs.map +1 -1
- package/es/i18n/useComponentTranslations.mjs +1 -2
- package/es/i18n/useComponentTranslations.mjs.map +1 -1
- package/es/index.mjs +34 -38
- package/es/locale/messages-en.mjs +2 -2
- package/es/locale/messages-en.mjs.map +1 -1
- package/es/locale/messages-nb.mjs +2 -2
- package/es/locale/messages-nb.mjs.map +1 -1
- package/es/locale/messages-nn.mjs +2 -2
- package/es/locale/messages-nn.mjs.map +1 -1
- package/es/locale/messages-se.mjs +2 -2
- package/es/locale/messages-se.mjs.map +1 -1
- package/es/model/ContentType.mjs.map +1 -1
- package/es/model/SubjectCategories.mjs +1 -2
- package/es/model/SubjectCategories.mjs.map +1 -1
- package/es/model/SubjectTypes.mjs +1 -2
- package/es/model/SubjectTypes.mjs.map +1 -1
- package/es/model/WordClass.mjs +1 -2
- package/es/model/WordClass.mjs.map +1 -1
- package/es/model/index.mjs +1 -1
- package/es/model/index.mjs.map +1 -1
- package/es/utils/licenseAttributes.mjs +1 -2
- package/es/utils/licenseAttributes.mjs.map +1 -1
- package/es/utils/relativeUrl.mjs.map +1 -1
- package/lib/Article/Article.js +24 -20
- package/lib/Article/Article.js.map +1 -1
- package/lib/Article/ArticleByline.js +18 -10
- package/lib/Article/ArticleByline.js.map +1 -1
- package/lib/Article/ArticleFootNotes.js +6 -3
- package/lib/Article/ArticleFootNotes.js.map +1 -1
- package/lib/AudioPlayer/AudioPlayer.js +17 -11
- package/lib/AudioPlayer/AudioPlayer.js.map +1 -1
- package/lib/AudioPlayer/Controls.js +15 -8
- package/lib/AudioPlayer/Controls.js.map +1 -1
- package/lib/AudioPlayer/SpeechControl.js +11 -6
- package/lib/AudioPlayer/SpeechControl.js.map +1 -1
- package/lib/Breadcrumb/Breadcrumb.js +11 -7
- package/lib/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/Breadcrumb/BreadcrumbItem.js +11 -6
- package/lib/Breadcrumb/BreadcrumbItem.js.map +1 -1
- package/lib/Breadcrumb/HomeBreadcrumb.js +11 -7
- package/lib/Breadcrumb/HomeBreadcrumb.js.map +1 -1
- package/lib/CampaignBlock/CampaignBlock.js +17 -10
- package/lib/CampaignBlock/CampaignBlock.js.map +1 -1
- package/lib/CodeBlock/CodeBlock.js +9 -5
- package/lib/CodeBlock/CodeBlock.js.map +1 -1
- package/lib/CodeBlock/codeLanguageOptions.js.map +1 -1
- package/lib/Concept/Concept.js +19 -15
- package/lib/Concept/Concept.js.map +1 -1
- package/lib/ContactBlock/ContactBlock.js +10 -6
- package/lib/ContactBlock/ContactBlock.js.map +1 -1
- package/lib/ContentTypeBadge/ContentTypeBadge.js +28 -24
- package/lib/ContentTypeBadge/ContentTypeBadge.js.map +1 -1
- package/lib/CopyParagraphButton/CopyParagraphButton.js +13 -7
- package/lib/CopyParagraphButton/CopyParagraphButton.js.map +1 -1
- package/lib/Embed/AudioEmbed.js +16 -13
- package/lib/Embed/AudioEmbed.js.map +1 -1
- package/lib/Embed/BrightcoveEmbed.js +19 -13
- package/lib/Embed/BrightcoveEmbed.js.map +1 -1
- package/lib/Embed/CodeEmbed.js +19 -14
- package/lib/Embed/CodeEmbed.js.map +1 -1
- package/lib/Embed/ConceptEmbed.js +21 -15
- package/lib/Embed/ConceptEmbed.js.map +1 -1
- package/lib/Embed/ConceptInlineTriggerButton.js +4 -3
- package/lib/Embed/ConceptInlineTriggerButton.js.map +1 -1
- package/lib/Embed/ContentLinkEmbed.js +7 -4
- package/lib/Embed/ContentLinkEmbed.js.map +1 -1
- package/lib/Embed/CopyrightEmbed.js +7 -5
- package/lib/Embed/CopyrightEmbed.js.map +1 -1
- package/lib/Embed/EmbedErrorPlaceholder.js +13 -8
- package/lib/Embed/EmbedErrorPlaceholder.js.map +1 -1
- package/lib/Embed/EmbedWrapper.js +10 -5
- package/lib/Embed/EmbedWrapper.js.map +1 -1
- package/lib/Embed/ExternalEmbed.js +15 -10
- package/lib/Embed/ExternalEmbed.js.map +1 -1
- package/lib/Embed/FootnoteEmbed.js +7 -4
- package/lib/Embed/FootnoteEmbed.js.map +1 -1
- package/lib/Embed/GlossEmbed.js +17 -12
- package/lib/Embed/GlossEmbed.js.map +1 -1
- package/lib/Embed/H5pEmbed.js +11 -7
- package/lib/Embed/H5pEmbed.js.map +1 -1
- package/lib/Embed/IframeEmbed.js +15 -10
- package/lib/Embed/IframeEmbed.js.map +1 -1
- package/lib/Embed/ImageEmbed.js +21 -16
- package/lib/Embed/ImageEmbed.js.map +1 -1
- package/lib/Embed/InlineTriggerButton.js +8 -4
- package/lib/Embed/InlineTriggerButton.js.map +1 -1
- package/lib/Embed/RelatedContentEmbed.js +12 -11
- package/lib/Embed/RelatedContentEmbed.js.map +1 -1
- package/lib/Embed/UnknownEmbed.js +7 -4
- package/lib/Embed/UnknownEmbed.js.map +1 -1
- package/lib/Embed/UuDisclaimerEmbed.js +15 -8
- package/lib/Embed/UuDisclaimerEmbed.js.map +1 -1
- package/lib/FactBox/FactBox.js +13 -7
- package/lib/FactBox/FactBox.js.map +1 -1
- package/lib/FileList/File.js +51 -39
- package/lib/FileList/File.js.map +1 -1
- package/lib/FileList/FileList.js +8 -4
- package/lib/FileList/FileList.js.map +1 -1
- package/lib/FileList/PdfFile.js +6 -3
- package/lib/FileList/PdfFile.js.map +1 -1
- package/lib/Gloss/Gloss.js +23 -17
- package/lib/Gloss/Gloss.js.map +1 -1
- package/lib/Gloss/GlossExample.js +9 -5
- package/lib/Gloss/GlossExample.js.map +1 -1
- package/lib/Grid/Grid.js +6 -3
- package/lib/Grid/Grid.js.map +1 -1
- package/lib/Grid/GridParallaxItem.js +6 -3
- package/lib/Grid/GridParallaxItem.js.map +1 -1
- package/lib/KeyFigure/KeyFigure.js +7 -4
- package/lib/KeyFigure/KeyFigure.js.map +1 -1
- package/lib/LicenseByline/EmbedByline.js +17 -11
- package/lib/LicenseByline/EmbedByline.js.map +1 -1
- package/lib/LicenseByline/LicenseLink.js +8 -4
- package/lib/LicenseByline/LicenseLink.js.map +1 -1
- package/lib/LinkBlock/LinkBlock.js +17 -10
- package/lib/LinkBlock/LinkBlock.js.map +1 -1
- package/lib/LinkBlock/LinkBlockSection.js +7 -4
- package/lib/LinkBlock/LinkBlockSection.js.map +1 -1
- package/lib/Pitch/Pitch.js +14 -8
- package/lib/Pitch/Pitch.js.map +1 -1
- package/lib/RelatedArticleList/RelatedArticleList.js +20 -12
- package/lib/RelatedArticleList/RelatedArticleList.js.map +1 -1
- package/lib/ResourceBox/ResourceBox.js +14 -7
- package/lib/ResourceBox/ResourceBox.js.map +1 -1
- package/lib/TagSelector/TagSelector.js +12 -6
- package/lib/TagSelector/TagSelector.js.map +1 -1
- package/lib/ZendeskButton/ZendeskButton.js +6 -3
- package/lib/ZendeskButton/ZendeskButton.js.map +1 -1
- package/lib/_virtual/rolldown_runtime.js +5 -13
- package/lib/i18n/formatNestedMessages.js.map +1 -1
- package/lib/i18n/useComponentTranslations.js +5 -4
- package/lib/i18n/useComponentTranslations.js.map +1 -1
- package/lib/index.d.ts +51 -30
- package/lib/index.js +145 -152
- package/lib/locale/messages-en.js +5 -4
- package/lib/locale/messages-en.js.map +1 -1
- package/lib/locale/messages-nb.js +5 -4
- package/lib/locale/messages-nb.js.map +1 -1
- package/lib/locale/messages-nn.js +5 -4
- package/lib/locale/messages-nn.js.map +1 -1
- package/lib/locale/messages-se.js +5 -4
- package/lib/locale/messages-se.js.map +1 -1
- package/lib/model/ContentType.js.map +1 -1
- package/lib/model/SubjectCategories.js +1 -2
- package/lib/model/SubjectCategories.js.map +1 -1
- package/lib/model/SubjectTypes.js +1 -2
- package/lib/model/SubjectTypes.js.map +1 -1
- package/lib/model/WordClass.js +1 -2
- package/lib/model/WordClass.js.map +1 -1
- package/lib/model/index.js +11 -11
- package/lib/model/index.js.map +1 -1
- package/lib/utils/licenseAttributes.js +3 -3
- package/lib/utils/licenseAttributes.js.map +1 -1
- package/lib/utils/relativeUrl.js.map +1 -1
- package/package.json +8 -8
- package/src/Article/Article.tsx +8 -4
- package/src/Concept/Concept.tsx +5 -1
- package/src/Embed/AudioEmbed.stories.tsx +1 -1
- package/src/Embed/AudioEmbed.tsx +2 -2
- package/src/Embed/BrightcoveEmbed.stories.tsx +1 -1
- package/src/Embed/BrightcoveEmbed.tsx +1 -1
- package/src/Embed/CodeEmbed.tsx +2 -2
- package/src/Embed/ConceptEmbed.stories.tsx +1 -1
- package/src/Embed/CopyrightEmbed.tsx +1 -1
- package/src/Embed/EmbedErrorPlaceholder.tsx +1 -2
- package/src/Embed/ExternalEmbed.stories.tsx +1 -1
- package/src/Embed/ExternalEmbed.tsx +1 -1
- package/src/Embed/FootnoteEmbed.stories.tsx +1 -1
- package/src/Embed/GlossEmbed.tsx +1 -1
- package/src/Embed/H5pEmbed.stories.tsx +1 -1
- package/src/Embed/IframeEmbed.stories.tsx +1 -1
- package/src/Embed/IframeEmbed.tsx +1 -1
- package/src/Embed/ImageEmbed.stories.tsx +2 -2
- package/src/Embed/ImageEmbed.tsx +1 -1
- package/src/Embed/RelatedContentEmbed.stories.tsx +2 -2
- package/src/Embed/UuDisclaimerEmbed.stories.tsx +3 -3
- package/src/FileList/File.tsx +18 -7
- package/src/LinkBlock/LinkBlock.stories.tsx +1 -1
- package/src/Pitch/Pitch.stories.tsx +2 -2
- package/src/index.ts +53 -61
- package/es/AudioPlayer/index.mjs +0 -8
- package/es/AudioPlayer/index.mjs.map +0 -1
- package/es/Breadcrumb/index.mjs +0 -9
- package/es/Breadcrumb/index.mjs.map +0 -1
- package/es/ContentTypeBlockQuote/ContentTypeBlockQuote.mjs +0 -25
- package/es/ContentTypeBlockQuote/ContentTypeBlockQuote.mjs.map +0 -1
- package/es/ContentTypeFramedContent/ContentTypeFramedContent.mjs +0 -25
- package/es/ContentTypeFramedContent/ContentTypeFramedContent.mjs.map +0 -1
- package/es/ContentTypeHero/ContentTypeHero.mjs +0 -39
- package/es/ContentTypeHero/ContentTypeHero.mjs.map +0 -1
- package/es/CopyParagraphButton/index.mjs +0 -8
- package/es/CopyParagraphButton/index.mjs.map +0 -1
- package/es/FactBox/index.mjs +0 -8
- package/es/FactBox/index.mjs.map +0 -1
- package/es/RelatedArticleList/index.mjs +0 -8
- package/es/RelatedArticleList/index.mjs.map +0 -1
- package/lib/Article/index.d.ts +0 -10
- package/lib/AudioPlayer/index.d.ts +0 -9
- package/lib/AudioPlayer/index.js +0 -8
- package/lib/AudioPlayer/index.js.map +0 -1
- package/lib/Breadcrumb/index.d.ts +0 -11
- package/lib/Breadcrumb/index.js +0 -9
- package/lib/Breadcrumb/index.js.map +0 -1
- package/lib/CampaignBlock/index.d.ts +0 -8
- package/lib/CodeBlock/index.d.ts +0 -9
- package/lib/ContactBlock/index.d.ts +0 -9
- package/lib/ContentTypeBlockQuote/ContentTypeBlockQuote.d.ts +0 -16
- package/lib/ContentTypeBlockQuote/ContentTypeBlockQuote.js +0 -26
- package/lib/ContentTypeBlockQuote/ContentTypeBlockQuote.js.map +0 -1
- package/lib/ContentTypeFramedContent/ContentTypeFramedContent.d.ts +0 -16
- package/lib/ContentTypeFramedContent/ContentTypeFramedContent.js +0 -26
- package/lib/ContentTypeFramedContent/ContentTypeFramedContent.js.map +0 -1
- package/lib/ContentTypeHero/ContentTypeHero.d.ts +0 -14
- package/lib/ContentTypeHero/ContentTypeHero.js +0 -40
- package/lib/ContentTypeHero/ContentTypeHero.js.map +0 -1
- package/lib/ContentTypeHero/index.d.ts +0 -9
- package/lib/CopyParagraphButton/index.d.ts +0 -10
- package/lib/CopyParagraphButton/index.js +0 -8
- package/lib/CopyParagraphButton/index.js.map +0 -1
- package/lib/Embed/index.d.ts +0 -27
- package/lib/FactBox/index.d.ts +0 -9
- package/lib/FactBox/index.js +0 -8
- package/lib/FactBox/index.js.map +0 -1
- package/lib/FileList/index.d.ts +0 -10
- package/lib/Gloss/index.d.ts +0 -9
- package/lib/Grid/index.d.ts +0 -10
- package/lib/KeyFigure/index.d.ts +0 -8
- package/lib/LicenseByline/index.d.ts +0 -9
- package/lib/LinkBlock/index.d.ts +0 -9
- package/lib/Pitch/index.d.ts +0 -8
- package/lib/RelatedArticleList/index.d.ts +0 -10
- package/lib/RelatedArticleList/index.js +0 -8
- package/lib/RelatedArticleList/index.js.map +0 -1
- package/lib/ResourceBox/index.d.ts +0 -9
- package/lib/i18n/index.d.ts +0 -9
- package/src/Article/index.ts +0 -20
- package/src/AudioPlayer/index.ts +0 -11
- package/src/Breadcrumb/index.ts +0 -15
- package/src/CampaignBlock/index.ts +0 -9
- package/src/CodeBlock/index.ts +0 -10
- package/src/ContactBlock/index.ts +0 -10
- package/src/ContentTypeBlockQuote/ContentTypeBlockQuote.tsx +0 -32
- package/src/ContentTypeFramedContent/ContentTypeFramedContent.tsx +0 -34
- package/src/ContentTypeHero/ContentTypeHero.stories.tsx +0 -75
- package/src/ContentTypeHero/ContentTypeHero.tsx +0 -56
- package/src/ContentTypeHero/index.ts +0 -10
- package/src/CopyParagraphButton/index.tsx +0 -12
- package/src/Embed/index.ts +0 -28
- package/src/FactBox/index.ts +0 -11
- package/src/FileList/index.ts +0 -11
- package/src/Gloss/index.tsx +0 -10
- package/src/Grid/index.ts +0 -12
- package/src/KeyFigure/index.ts +0 -9
- package/src/LicenseByline/index.tsx +0 -10
- package/src/LinkBlock/index.ts +0 -10
- package/src/Pitch/index.ts +0 -9
- package/src/RelatedArticleList/index.ts +0 -13
- package/src/ResourceBox/index.ts +0 -11
- package/src/i18n/index.ts +0 -19
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
export { ContentTypeHero } from "./ContentTypeHero";
|
|
9
|
-
export type { ContentTypeHeroProps } from "./ContentTypeHero";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021-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 CopyParagraphButton from "./CopyParagraphButton";
|
|
9
|
-
export { CopyParagraphButton };
|
|
10
|
-
export default CopyParagraphButton;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const require__Users_jec_code_ndla_frontend_packages_packages_ndla_ui_src_CopyParagraphButton_CopyParagraphButton = require('./CopyParagraphButton.js');
|
|
2
|
-
|
|
3
|
-
//#region src/CopyParagraphButton/index.tsx
|
|
4
|
-
var CopyParagraphButton_default$1 = require__Users_jec_code_ndla_frontend_packages_packages_ndla_ui_src_CopyParagraphButton_CopyParagraphButton.CopyParagraphButton_default$1;
|
|
5
|
-
|
|
6
|
-
//#endregion
|
|
7
|
-
exports.CopyParagraphButton_default = CopyParagraphButton_default$1;
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["CopyParagraphButton"],"sources":["../../src/CopyParagraphButton/index.tsx"],"sourcesContent":["/**\n * Copyright (c) 2021-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport CopyParagraphButton from \"./CopyParagraphButton\";\n\nexport { CopyParagraphButton };\nexport default CopyParagraphButton;\n"],"mappings":";;;AAWA,oCAAeA"}
|
package/lib/Embed/index.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2023-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 ImageEmbed, getCrop, getFocalPoint } from "./ImageEmbed";
|
|
9
|
-
export { InlineTriggerButton } from "./InlineTriggerButton";
|
|
10
|
-
export { default as AudioEmbed } from "./AudioEmbed";
|
|
11
|
-
export { default as H5pEmbed } from "./H5pEmbed";
|
|
12
|
-
export { default as ExternalEmbed } from "./ExternalEmbed";
|
|
13
|
-
export { default as IframeEmbed } from "./IframeEmbed";
|
|
14
|
-
export { default as FootnoteEmbed } from "./FootnoteEmbed";
|
|
15
|
-
export { default as BrightcoveEmbed } from "./BrightcoveEmbed";
|
|
16
|
-
export { default as ContentLinkEmbed } from "./ContentLinkEmbed";
|
|
17
|
-
export { default as RelatedContentEmbed } from "./RelatedContentEmbed";
|
|
18
|
-
export { ConceptEmbed, InlineConcept, BlockConcept } from "./ConceptEmbed";
|
|
19
|
-
export type { InlineConceptProps, BlockConceptProps } from "./ConceptEmbed";
|
|
20
|
-
export { default as UnknownEmbed } from "./UnknownEmbed";
|
|
21
|
-
export { default as UuDisclaimerEmbed } from "./UuDisclaimerEmbed";
|
|
22
|
-
export { default as CopyrightEmbed } from "./CopyrightEmbed";
|
|
23
|
-
export { default as CodeEmbed } from "./CodeEmbed";
|
|
24
|
-
export type { HeartButtonType, CanonicalUrlFuncs, RenderContext } from "./types";
|
|
25
|
-
export { EmbedWrapper } from "./EmbedWrapper";
|
|
26
|
-
export type { EmbedWrapperVariantProps, EmbedWrapperProps } from "./EmbedWrapper";
|
|
27
|
-
export { ConceptInlineTriggerButton } from "./ConceptInlineTriggerButton";
|
package/lib/FactBox/index.d.ts
DELETED
package/lib/FactBox/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const require__Users_jec_code_ndla_frontend_packages_packages_ndla_ui_src_FactBox_FactBox = require('./FactBox.js');
|
|
2
|
-
|
|
3
|
-
//#region src/FactBox/index.ts
|
|
4
|
-
var FactBox_default$1 = require__Users_jec_code_ndla_frontend_packages_packages_ndla_ui_src_FactBox_FactBox.FactBox_default$1;
|
|
5
|
-
|
|
6
|
-
//#endregion
|
|
7
|
-
exports.FactBox_default = FactBox_default$1;
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
package/lib/FactBox/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["FactBox"],"sources":["../../src/FactBox/index.ts"],"sourcesContent":["/**\n * Copyright (c) 2018-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport FactBox from \"./FactBox\";\n\nexport default FactBox;\n"],"mappings":";;;AAUA,wBAAeA"}
|
package/lib/FileList/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2018-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 { FileListEmbed, FileListItem, FileListWrapper } from "./FileList";
|
|
9
|
-
export { File, FileListElement } from "./File";
|
|
10
|
-
export { PdfFile } from "./PdfFile";
|
package/lib/Gloss/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2023-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 Gloss } from "./Gloss";
|
|
9
|
-
export { default as GlossExample } from "./GlossExample";
|
package/lib/Grid/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2023-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 { Grid } from "./Grid";
|
|
9
|
-
export { GridParallaxItem } from "./GridParallaxItem";
|
|
10
|
-
export type { GridProps as GridType } from "./Grid";
|
package/lib/KeyFigure/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2023-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 { EmbedByline } from "./EmbedByline";
|
|
9
|
-
export { LicenseLink } from "./LicenseLink";
|
package/lib/LinkBlock/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2023-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 LinkBlock } from "./LinkBlock";
|
|
9
|
-
export { default as LinkBlockSection } from "./LinkBlockSection";
|
package/lib/Pitch/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2017-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 { RelatedArticle, RelatedArticleList } from "./RelatedArticleList";
|
|
9
|
-
export { RelatedArticle };
|
|
10
|
-
export default RelatedArticleList;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const require__Users_jec_code_ndla_frontend_packages_packages_ndla_ui_src_RelatedArticleList_RelatedArticleList = require('./RelatedArticleList.js');
|
|
2
|
-
|
|
3
|
-
//#region src/RelatedArticleList/index.ts
|
|
4
|
-
var RelatedArticleList_default = require__Users_jec_code_ndla_frontend_packages_packages_ndla_ui_src_RelatedArticleList_RelatedArticleList.RelatedArticleList;
|
|
5
|
-
|
|
6
|
-
//#endregion
|
|
7
|
-
exports.RelatedArticleList_default = RelatedArticleList_default;
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["RelatedArticleList"],"sources":["../../src/RelatedArticleList/index.ts"],"sourcesContent":["/**\n * Copyright (c) 2017-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { RelatedArticle, RelatedArticleList } from \"./RelatedArticleList\";\n\nexport { RelatedArticle };\n\nexport default RelatedArticleList;\n"],"mappings":";;;AAYA,iCAAeA"}
|
package/lib/i18n/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021-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 { formatNestedMessages } from "./formatNestedMessages";
|
|
9
|
-
export { useComboboxTranslations, useTagSelectorTranslations, useTagsInputTranslations, usePaginationTranslations, useAudioSearchTranslations, useImageSearchTranslations, useVideoSearchTranslations, useDatePickerTranslations, } from "./useComponentTranslations";
|
package/src/Article/index.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2017-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 {
|
|
10
|
-
Article,
|
|
11
|
-
ArticleWrapper,
|
|
12
|
-
ArticleHeader,
|
|
13
|
-
ArticleFooter,
|
|
14
|
-
ArticleTitle,
|
|
15
|
-
ArticleHGroup,
|
|
16
|
-
ArticleContent,
|
|
17
|
-
} from "./Article";
|
|
18
|
-
|
|
19
|
-
export { ArticleByline, ArticleBylineAccordionItem } from "./ArticleByline";
|
|
20
|
-
export { ArticleFootNotes } from "./ArticleFootNotes";
|
package/src/AudioPlayer/index.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021-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 AudioPlayer from "./AudioPlayer";
|
|
10
|
-
|
|
11
|
-
export default AudioPlayer;
|
package/src/Breadcrumb/index.ts
DELETED
|
@@ -1,15 +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 Breadcrumb from "./Breadcrumb";
|
|
10
|
-
|
|
11
|
-
export type { SimpleBreadcrumbItem, IndexedBreadcrumbItem } from "./BreadcrumbItem";
|
|
12
|
-
|
|
13
|
-
export { default as HomeBreadcrumb } from "./HomeBreadcrumb";
|
|
14
|
-
|
|
15
|
-
export default Breadcrumb;
|
package/src/CodeBlock/index.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
export { default as CodeBlock } from "./CodeBlock";
|
|
10
|
-
export { codeLanguageOptions } from "./codeLanguageOptions";
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
export { ContactBlock, contactBlockBackgrounds } from "./ContactBlock";
|
|
10
|
-
export type { ContactBlockBackground } from "./ContactBlock";
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
import { forwardRef } from "react";
|
|
10
|
-
import { BlockQuote, type BlockQuoteProps, type BlockQuoteVariantProps } from "@ndla/primitives";
|
|
11
|
-
import type { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
|
|
12
|
-
|
|
13
|
-
export type ContentTypeBlockQuoteVariant = "colored" | "neutral";
|
|
14
|
-
|
|
15
|
-
const contentTypeToVariantMapping = {
|
|
16
|
-
"subject-material": "brand1",
|
|
17
|
-
"source-material": "brand1",
|
|
18
|
-
concept: "brand1",
|
|
19
|
-
"tasks-and-activities": "brand2",
|
|
20
|
-
"assessment-resources": "brand2",
|
|
21
|
-
} as Record<ContentType, NonNullable<BlockQuoteVariantProps>["variant"]>;
|
|
22
|
-
|
|
23
|
-
interface Props extends Omit<BlockQuoteProps, "variant"> {
|
|
24
|
-
variant?: ContentTypeBlockQuoteVariant;
|
|
25
|
-
contentType?: ContentType;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export const ContentTypeBlockQuote = forwardRef<HTMLQuoteElement, Props>(({ variant, contentType, ...props }, ref) => {
|
|
29
|
-
const color = contentType ? (contentTypeToVariantMapping[contentType] ?? "brand1") : "brand1";
|
|
30
|
-
const variantColor = variant === "colored" ? color : undefined;
|
|
31
|
-
return <BlockQuote {...props} variant={variantColor} ref={ref} />;
|
|
32
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
import { forwardRef } from "react";
|
|
10
|
-
import { FramedContent, type FramedContentProps, type FramedContentVariantProps } from "@ndla/primitives";
|
|
11
|
-
import type { ContentType } from "..";
|
|
12
|
-
|
|
13
|
-
const contentTypeToVariantMapping = {
|
|
14
|
-
"subject-material": "brand1",
|
|
15
|
-
"source-material": "brand1",
|
|
16
|
-
concept: "brand1",
|
|
17
|
-
"tasks-and-activities": "brand2",
|
|
18
|
-
"assessment-resources": "brand2",
|
|
19
|
-
} as Record<ContentType, NonNullable<FramedContentVariantProps>["colorTheme"]>;
|
|
20
|
-
|
|
21
|
-
export type ContentTypeFramedContentVariant = "colored" | "neutral";
|
|
22
|
-
|
|
23
|
-
interface Props extends FramedContentProps {
|
|
24
|
-
variant?: ContentTypeFramedContentVariant;
|
|
25
|
-
contentType?: ContentType;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export const ContentTypeFramedContent = forwardRef<HTMLDivElement, Props>(
|
|
29
|
-
({ variant = "neutral", contentType, ...props }, ref) => {
|
|
30
|
-
const color = contentType ? (contentTypeToVariantMapping[contentType] ?? "brand1") : "brand1";
|
|
31
|
-
const variantColor = variant === "colored" ? color : undefined;
|
|
32
|
-
return <FramedContent {...props} colorTheme={variantColor} ref={ref} />;
|
|
33
|
-
},
|
|
34
|
-
);
|
|
@@ -1,75 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
import type { Meta, StoryFn } from "@storybook/react";
|
|
10
|
-
import { HeroBackground, HeroContent, PageContent, Text } from "@ndla/primitives";
|
|
11
|
-
import { styled } from "@ndla/styled-system/jsx";
|
|
12
|
-
import { ContentTypeHero } from "./ContentTypeHero";
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* A thin wrapper around the `Hero` component that automatically assigns a variant based on the provided content type
|
|
16
|
-
*/
|
|
17
|
-
export default {
|
|
18
|
-
title: "Components/ContentTypeHero",
|
|
19
|
-
component: ContentTypeHero,
|
|
20
|
-
tags: ["autodocs"],
|
|
21
|
-
parameters: {
|
|
22
|
-
inlineStories: true,
|
|
23
|
-
layout: "fullscreen",
|
|
24
|
-
},
|
|
25
|
-
args: {
|
|
26
|
-
contentType: "audio",
|
|
27
|
-
},
|
|
28
|
-
} as Meta<typeof ContentTypeHero>;
|
|
29
|
-
|
|
30
|
-
export const HeroStory: StoryFn<typeof ContentTypeHero> = ({ ...args }) => (
|
|
31
|
-
<ContentTypeHero {...args}>
|
|
32
|
-
<HeroBackground />
|
|
33
|
-
<PageContent>
|
|
34
|
-
<HeroContent>Hello</HeroContent>
|
|
35
|
-
|
|
36
|
-
<styled.div css={{ background: "surface.default", padding: "medium" }}>
|
|
37
|
-
<Text>
|
|
38
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut orci a lectus pellentesque porta. Integer
|
|
39
|
-
tellus nunc, lobortis non enim quis, interdum porttitor orci. Suspendisse sit amet sapien at dolor venenatis
|
|
40
|
-
malesuada ut ac turpis. Quisque bibendum ultrices urna, nec sodales dui feugiat vel. Proin dapibus dolor ut
|
|
41
|
-
metus dignissim euismod. Aliquam erat volutpat. Donec vestibulum lectus a accumsan aliquet. Maecenas suscipit
|
|
42
|
-
urna vel neque viverra, sit amet viverra orci fermentum. Pellentesque ac lacus malesuada, imperdiet nisi et,
|
|
43
|
-
scelerisque nulla. Phasellus commodo justo et purus fermentum, eu vulputate mauris auctor.
|
|
44
|
-
</Text>
|
|
45
|
-
<Text>
|
|
46
|
-
Nunc sodales placerat ex ac accumsan. Phasellus a mollis lorem. Maecenas in dictum nisl, ut auctor massa. Sed
|
|
47
|
-
vitae ipsum eget mi sodales tristique non sed est. Praesent nec hendrerit massa. In egestas venenatis
|
|
48
|
-
pharetra. Vivamus rutrum magna vel elit malesuada imperdiet. Nunc cursus, metus a tempor auctor, ante nunc
|
|
49
|
-
ornare mauris, ut blandit eros lacus ut massa. Ut eu velit at arcu vestibulum commodo. Pellentesque ac quam
|
|
50
|
-
facilisis, scelerisque augue fermentum, commodo magna. Ut mauris est, fermentum sit amet pretium a, tempor
|
|
51
|
-
mattis dolor. In vitae finibus nibh. In sit amet vestibulum quam. Etiam sed venenatis eros. Fusce massa
|
|
52
|
-
tellus, pharetra ut dui a, vulputate suscipit felis. Phasellus id velit at purus tristique lobortis.
|
|
53
|
-
</Text>
|
|
54
|
-
<Text>
|
|
55
|
-
Duis non tempus tortor, non aliquet turpis. Sed aliquet et tellus non viverra. Nam luctus eros orci, porttitor
|
|
56
|
-
sollicitudin neque placerat sed. Quisque laoreet lorem et augue commodo, nec maximus justo dapibus. Nullam
|
|
57
|
-
condimentum ex leo. Morbi rhoncus tortor quis ex volutpat, id aliquam arcu eleifend. Interdum et malesuada
|
|
58
|
-
fames ac ante ipsum primis in faucibus. Pellentesque neque justo, rhoncus a nisi in, pretium dapibus felis. Ut
|
|
59
|
-
convallis est et dui placerat, vitae ultricies eros gravida.
|
|
60
|
-
</Text>
|
|
61
|
-
<Text>
|
|
62
|
-
In metus ex, iaculis ac feugiat eget, dignissim in augue. Proin nec ultricies nisi, id elementum ex. Aenean id
|
|
63
|
-
massa quis turpis cursus vulputate. Nam eget turpis iaculis, molestie libero vel, commodo purus. Phasellus
|
|
64
|
-
luctus ipsum in libero venenatis, quis auctor justo fringilla. Donec vel mauris non justo feugiat sodales in
|
|
65
|
-
in orci. Vestibulum fringilla consequat erat. Interdum et malesuada fames ac ante ipsum primis in faucibus.
|
|
66
|
-
Morbi condimentum, justo a dictum venenatis, ante libero gravida enim, et blandit tellus urna ac purus. Nunc
|
|
67
|
-
sed orci sit amet lorem malesuada tincidunt. Duis non dictum leo. Suspendisse eget dui vel risus dictum
|
|
68
|
-
faucibus ac ut mauris. Fusce facilisis at erat a dignissim.
|
|
69
|
-
</Text>
|
|
70
|
-
</styled.div>
|
|
71
|
-
</PageContent>
|
|
72
|
-
</ContentTypeHero>
|
|
73
|
-
);
|
|
74
|
-
|
|
75
|
-
HeroStory.storyName = "Hero";
|
|
@@ -1,56 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
import { forwardRef } from "react";
|
|
10
|
-
import { Hero, type HeroProps, type HeroVariant } from "@ndla/primitives";
|
|
11
|
-
import type { ContentType } from "../ContentTypeBadge/ContentTypeBadge";
|
|
12
|
-
import * as contentTypes from "../model/ContentType";
|
|
13
|
-
|
|
14
|
-
export const contentTypeToHeroMap: Record<ContentType, HeroVariant> = {
|
|
15
|
-
[contentTypes.SUBJECT_MATERIAL]: "primary",
|
|
16
|
-
[contentTypes.TASKS_AND_ACTIVITIES]: "brand2Bold",
|
|
17
|
-
[contentTypes.ASSESSMENT_RESOURCES]: "brand2",
|
|
18
|
-
// This will never happen
|
|
19
|
-
[contentTypes.SUBJECT]: "primary",
|
|
20
|
-
[contentTypes.SOURCE_MATERIAL]: "brand1",
|
|
21
|
-
// This will never happen
|
|
22
|
-
[contentTypes.LEARNING_PATH]: "primary",
|
|
23
|
-
[contentTypes.TOPIC]: "neutral",
|
|
24
|
-
[contentTypes.MULTIDISCIPLINARY]: "primary",
|
|
25
|
-
[contentTypes.CONCEPT]: "brand1Moderate",
|
|
26
|
-
[contentTypes.EXTERNAL]: "primary",
|
|
27
|
-
[contentTypes.IMAGE]: "primary",
|
|
28
|
-
[contentTypes.AUDIO]: "primary",
|
|
29
|
-
[contentTypes.PODCAST]: "primary",
|
|
30
|
-
[contentTypes.VIDEO]: "primary",
|
|
31
|
-
[contentTypes.MISSING]: "neutral",
|
|
32
|
-
[contentTypes.GLOSS]: "brand1Moderate",
|
|
33
|
-
// this will never happen
|
|
34
|
-
[contentTypes.PROGRAMME]: "primary",
|
|
35
|
-
// this will never happen
|
|
36
|
-
[contentTypes.PODCAST_SERIES]: "primary",
|
|
37
|
-
[contentTypes.FRONTPAGE_ARTICLE]: "primary",
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export interface ContentTypeHeroProps extends HeroProps {
|
|
41
|
-
contentType: ContentType | undefined;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export const ContentTypeHero = forwardRef<HTMLDivElement, ContentTypeHeroProps>(
|
|
45
|
-
({ contentType, children, ...props }, ref) => {
|
|
46
|
-
return (
|
|
47
|
-
<Hero
|
|
48
|
-
variant={contentTypeToHeroMap[contentType ?? "missing"] ?? contentTypeToHeroMap["missing"]}
|
|
49
|
-
{...props}
|
|
50
|
-
ref={ref}
|
|
51
|
-
>
|
|
52
|
-
{children}
|
|
53
|
-
</Hero>
|
|
54
|
-
);
|
|
55
|
-
},
|
|
56
|
-
);
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
export { ContentTypeHero } from "./ContentTypeHero";
|
|
10
|
-
export type { ContentTypeHeroProps } from "./ContentTypeHero";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2021-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 CopyParagraphButton from "./CopyParagraphButton";
|
|
10
|
-
|
|
11
|
-
export { CopyParagraphButton };
|
|
12
|
-
export default CopyParagraphButton;
|
package/src/Embed/index.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2023-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 ImageEmbed, getCrop, getFocalPoint } from "./ImageEmbed";
|
|
10
|
-
export { InlineTriggerButton } from "./InlineTriggerButton";
|
|
11
|
-
export { default as AudioEmbed } from "./AudioEmbed";
|
|
12
|
-
export { default as H5pEmbed } from "./H5pEmbed";
|
|
13
|
-
export { default as ExternalEmbed } from "./ExternalEmbed";
|
|
14
|
-
export { default as IframeEmbed } from "./IframeEmbed";
|
|
15
|
-
export { default as FootnoteEmbed } from "./FootnoteEmbed";
|
|
16
|
-
export { default as BrightcoveEmbed } from "./BrightcoveEmbed";
|
|
17
|
-
export { default as ContentLinkEmbed } from "./ContentLinkEmbed";
|
|
18
|
-
export { default as RelatedContentEmbed } from "./RelatedContentEmbed";
|
|
19
|
-
export { ConceptEmbed, InlineConcept, BlockConcept } from "./ConceptEmbed";
|
|
20
|
-
export type { InlineConceptProps, BlockConceptProps } from "./ConceptEmbed";
|
|
21
|
-
export { default as UnknownEmbed } from "./UnknownEmbed";
|
|
22
|
-
export { default as UuDisclaimerEmbed } from "./UuDisclaimerEmbed";
|
|
23
|
-
export { default as CopyrightEmbed } from "./CopyrightEmbed";
|
|
24
|
-
export { default as CodeEmbed } from "./CodeEmbed";
|
|
25
|
-
export type { HeartButtonType, CanonicalUrlFuncs, RenderContext } from "./types";
|
|
26
|
-
export { EmbedWrapper } from "./EmbedWrapper";
|
|
27
|
-
export type { EmbedWrapperVariantProps, EmbedWrapperProps } from "./EmbedWrapper";
|
|
28
|
-
export { ConceptInlineTriggerButton } from "./ConceptInlineTriggerButton";
|
package/src/FactBox/index.ts
DELETED
package/src/FileList/index.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2018-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 { FileListEmbed, FileListItem, FileListWrapper } from "./FileList";
|
|
10
|
-
export { File, FileListElement } from "./File";
|
|
11
|
-
export { PdfFile } from "./PdfFile";
|
package/src/Gloss/index.tsx
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2023-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 Gloss } from "./Gloss";
|
|
10
|
-
export { default as GlossExample } from "./GlossExample";
|
package/src/Grid/index.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2023-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 { Grid } from "./Grid";
|
|
10
|
-
export { GridParallaxItem } from "./GridParallaxItem";
|
|
11
|
-
|
|
12
|
-
export type { GridProps as GridType } from "./Grid";
|
package/src/KeyFigure/index.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2023-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 { EmbedByline } from "./EmbedByline";
|
|
10
|
-
export { LicenseLink } from "./LicenseLink";
|
package/src/LinkBlock/index.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2023-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 LinkBlock } from "./LinkBlock";
|
|
10
|
-
export { default as LinkBlockSection } from "./LinkBlockSection";
|