@ndla/ui 50.8.0 → 50.8.2
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/README.md +3 -3
- package/es/Article/Article.js +21 -21
- package/es/Article/ArticleAccessMessage.js +5 -5
- package/es/Article/ArticleByline.js +27 -27
- package/es/Article/ArticleFootNotes.js +6 -6
- package/es/Article/ArticleHeaderWrapper.js +12 -8
- package/es/Article/ArticleNotions.js +12 -12
- package/es/Article/index.js +4 -4
- package/es/Aside/Aside.js +8 -8
- package/es/Aside/index.js +1 -1
- package/es/AudioPlayer/AudioPlayer.js +31 -31
- package/es/AudioPlayer/Controls.js +44 -44
- package/es/AudioPlayer/SpeechControl.js +7 -7
- package/es/AudioPlayer/index.js +1 -1
- package/es/BannerCard/BannerCard.js +10 -10
- package/es/BannerCard/index.js +1 -1
- package/es/BlogPost/BlogPost.js +13 -13
- package/es/BlogPost/index.js +1 -1
- package/es/Breadcrumb/Breadcrumb.js +11 -11
- package/es/Breadcrumb/BreadcrumbItem.js +12 -12
- package/es/Breadcrumb/HeaderBreadcrumb.js +7 -7
- package/es/Breadcrumb/HomeBreadcrumb.js +12 -12
- package/es/Breadcrumb/index.js +3 -3
- package/es/CampaignBlock/CampaignBlock.js +16 -16
- package/es/CampaignBlock/index.js +1 -1
- package/es/CompetenceGoalTab/CompetenceGoalItem.js +4 -4
- package/es/CompetenceGoalTab/CompetenceGoalTab.js +15 -15
- package/es/CompetenceGoalTab/CompetenceItem.js +13 -13
- package/es/CompetenceGoalTab/CoreElementItem.js +4 -4
- package/es/CompetenceGoalTab/SearchButton.js +6 -6
- package/es/CompetenceGoalTab/index.js +1 -1
- package/es/CompetenceGoalTab/styles.js +7 -7
- package/es/ContactBlock/ContactBlock.js +30 -30
- package/es/ContactBlock/index.js +1 -1
- package/es/ContentLoader/index.js +7 -7
- package/es/ContentPlaceholder/ContentPlaceholder.js +4 -4
- package/es/ContentPlaceholder/index.js +1 -1
- package/es/ContentTypeBadge/ContentTypeBadge.js +24 -23
- package/es/ContentTypeBadge/index.js +2 -2
- package/es/CopyParagraphButton/CopyParagraphButton.js +11 -11
- package/es/CopyParagraphButton/index.js +1 -1
- package/es/CreatedBy/CreatedBy.js +8 -8
- package/es/CreatedBy/index.js +1 -1
- package/es/DefinitionList/DefinitionDescription.js +3 -3
- package/es/DefinitionList/DefinitionTerm.js +3 -3
- package/es/DefinitionList/index.js +2 -2
- package/es/Embed/AudioEmbed.js +15 -15
- package/es/Embed/BrightcoveEmbed.js +27 -27
- package/es/Embed/ConceptEmbed.js +46 -46
- package/es/Embed/ConceptListEmbed.js +8 -8
- package/es/Embed/ContentLinkEmbed.js +6 -6
- package/es/Embed/EmbedErrorPlaceholder.js +6 -6
- package/es/Embed/ExternalEmbed.js +17 -17
- package/es/Embed/FootnoteEmbed.js +5 -5
- package/es/Embed/H5pEmbed.js +5 -5
- package/es/Embed/IframeEmbed.js +18 -18
- package/es/Embed/ImageEmbed.js +41 -41
- package/es/Embed/RelatedContentEmbed.js +13 -13
- package/es/Embed/UnknownEmbed.js +4 -4
- package/es/Embed/conceptComponents.js +29 -29
- package/es/Embed/index.js +14 -14
- package/es/ErrorMessage/ErrorMessage.js +10 -10
- package/es/ErrorMessage/ErrorResourceAccessDenied.js +10 -10
- package/es/ErrorMessage/index.js +2 -2
- package/es/ExpandableBox/index.js +1 -1
- package/es/FactBox/FactBox.js +14 -14
- package/es/FactBox/index.js +1 -1
- package/es/Figure/Figure.js +9 -9
- package/es/Figure/FigureOpenDialogButton.js +15 -15
- package/es/Figure/index.js +2 -2
- package/es/FileList/File.js +5 -5
- package/es/FileList/FileList.js +7 -7
- package/es/FileList/Format.js +9 -9
- package/es/FileList/PdfFile.js +1 -1
- package/es/FileList/index.js +4 -4
- package/es/Filter/FilterButtons.js +22 -22
- package/es/Filter/FilterCarousel.js +23 -23
- package/es/Filter/FilterList.js +17 -17
- package/es/Filter/FilterListPhone.js +35 -35
- package/es/Filter/ToggleItem.js +6 -6
- package/es/Filter/filterClasses.js +3 -3
- package/es/Filter/index.js +5 -5
- package/es/Footer/Footer.js +15 -15
- package/es/Footer/FooterLinks.js +13 -13
- package/es/Footer/FooterPrivacy.js +5 -5
- package/es/Footer/FooterText.js +2 -2
- package/es/Footer/index.js +3 -3
- package/es/FramedContent/FramedContent.js +3 -3
- package/es/FramedContent/index.js +1 -1
- package/es/Frontpage/FrontpageAllSubjects.js +21 -21
- package/es/FrontpageArticle/FrontpageArticle.js +10 -10
- package/es/FrontpageArticle/index.js +1 -1
- package/es/Gloss/Gloss.js +20 -20
- package/es/Gloss/GlossExample.js +5 -5
- package/es/Gloss/index.js +2 -2
- package/es/Grid/Grid.js +5 -5
- package/es/Grid/index.js +1 -1
- package/es/Hero/Hero.js +6 -6
- package/es/Hero/HeroContent.js +2 -2
- package/es/Hero/index.js +2 -2
- package/es/Image/Image.js +13 -13
- package/es/Image/ImageLink.js +2 -2
- package/es/Image/index.js +3 -3
- package/es/KeyFigure/KeyFigure.js +7 -7
- package/es/KeyFigure/index.js +1 -1
- package/es/LanguageSelector/LanguageSelector.js +11 -11
- package/es/LanguageSelector/index.js +1 -1
- package/es/Layout/LayoutItem.js +3 -3
- package/es/Layout/OneColumn.js +7 -7
- package/es/Layout/PageContainer.js +4 -4
- package/es/Layout/index.js +4 -4
- package/es/LearningPaths/LearningPathContent.js +2 -2
- package/es/LearningPaths/LearningPathInformation.js +8 -8
- package/es/LearningPaths/LearningPathLastStepNavigation.js +13 -13
- package/es/LearningPaths/LearningPathMenu.js +16 -16
- package/es/LearningPaths/LearningPathMenuAside.js +13 -13
- package/es/LearningPaths/LearningPathMenuAsideCopyright.js +7 -7
- package/es/LearningPaths/LearningPathMenuContent.js +14 -14
- package/es/LearningPaths/LearningPathMenuIntro.js +10 -10
- package/es/LearningPaths/LearningPathMenuModalWrapper.js +10 -10
- package/es/LearningPaths/LearningPathMobileHeader.js +6 -6
- package/es/LearningPaths/LearningPathMobileStepInfo.js +4 -4
- package/es/LearningPaths/LearningPathSticky.js +12 -12
- package/es/LearningPaths/LearningPathWrapper.js +3 -3
- package/es/LearningPaths/index.js +8 -8
- package/es/LetterFilter/LetterFilter.js +10 -10
- package/es/LetterFilter/alphabet.js +1 -1
- package/es/LetterFilter/index.js +1 -1
- package/es/LicenseByline/EmbedByline.js +18 -18
- package/es/LicenseByline/LicenseDescription.js +2 -2
- package/es/LicenseByline/LicenseLink.js +5 -5
- package/es/LicenseByline/index.js +1 -1
- package/es/LinkBlock/LinkBlock.js +16 -16
- package/es/LinkBlock/LinkBlockSection.js +3 -3
- package/es/LinkBlock/index.js +2 -2
- package/es/List/OrderedList.js +7 -7
- package/es/List/UnOrderedList.js +3 -3
- package/es/List/index.js +2 -2
- package/es/Logo/Logo.js +6 -6
- package/es/Logo/SvgLogo.js +4 -4
- package/es/Logo/index.js +1 -1
- package/es/Masthead/Masthead.js +7 -7
- package/es/Masthead/SkipToMainContent.js +4 -4
- package/es/Masthead/index.js +3 -3
- package/es/Masthead/utils.js +5 -5
- package/es/MediaList/MediaList.js +25 -24
- package/es/MediaList/index.js +1 -1
- package/es/Messages/MessageBanner.js +6 -6
- package/es/Messages/MessageBox.js +10 -10
- package/es/Messages/index.js +2 -2
- package/es/MyNdla/Resource/Folder.js +18 -18
- package/es/MyNdla/Resource/FolderInput.js +20 -20
- package/es/MyNdla/Resource/index.js +2 -2
- package/es/MyNdla/index.js +2 -2
- package/es/NDLAFilm/AllMoviesAlphabetically.js +18 -18
- package/es/NDLAFilm/FilmContentCard.js +14 -14
- package/es/NDLAFilm/FilmContentCardTags.js +3 -3
- package/es/NDLAFilm/FilmMovieList.js +7 -7
- package/es/NDLAFilm/FilmMovieSearch.js +18 -18
- package/es/NDLAFilm/FilmSlideshow.js +18 -18
- package/es/NDLAFilm/MovieGrid.js +7 -7
- package/es/NDLAFilm/VisualElement.js +5 -5
- package/es/NDLAFilm/filmStyles.js +7 -7
- package/es/NDLAFilm/index.js +5 -5
- package/es/Navigation/NavigationBox.js +31 -31
- package/es/Navigation/index.js +1 -1
- package/es/NoContentBox/NoContentBox.js +1 -1
- package/es/NoContentBox/index.js +1 -1
- package/es/Notion/Notion.js +11 -11
- package/es/Notion/NotionImage.js +9 -9
- package/es/Notion/index.js +1 -1
- package/es/Programme/Programme.js +11 -11
- package/es/Programme/ProgrammeSubjects.js +12 -12
- package/es/Programme/index.js +2 -2
- package/es/ProgrammeCard/ProgrammeCard.js +6 -6
- package/es/ProgrammeCard/index.js +1 -1
- package/es/RelatedArticleList/RelatedArticleList.js +22 -22
- package/es/RelatedArticleList/index.js +1 -1
- package/es/Resource/BlockResource.js +21 -21
- package/es/Resource/ListResource.js +35 -35
- package/es/Resource/index.js +2 -2
- package/es/Resource/resourceComponents.js +27 -27
- package/es/Resource/storyComponents.js +17 -17
- package/es/ResourceBox/ResourceBox.js +10 -10
- package/es/ResourceBox/index.js +1 -1
- package/es/ResourceGroup/ResourceGroup.js +8 -8
- package/es/ResourceGroup/ResourceItem.js +38 -36
- package/es/ResourceGroup/ResourceList.js +9 -9
- package/es/ResourceGroup/index.js +1 -1
- package/es/ResourcesWrapper/ResourcesTopicTitle.js +26 -26
- package/es/ResourcesWrapper/ResourcesWrapper.js +2 -2
- package/es/ResourcesWrapper/index.js +2 -2
- package/es/Search/ActiveFilterContent.js +8 -8
- package/es/Search/ActiveFilters.js +17 -17
- package/es/Search/ContentTypeResult.js +16 -16
- package/es/Search/ContentTypeResultStyles.js +15 -15
- package/es/Search/IsPathToHighlight.js +1 -1
- package/es/Search/LoadingWrapper.js +3 -3
- package/es/Search/SearchField.js +18 -18
- package/es/Search/SearchFieldForm.js +4 -4
- package/es/Search/SearchResult.js +36 -36
- package/es/Search/SearchResultSleeve.js +38 -38
- package/es/Search/index.js +3 -3
- package/es/SearchTypeResult/ActiveFilterContent.js +8 -8
- package/es/SearchTypeResult/ActiveFilters.js +16 -16
- package/es/SearchTypeResult/PopupFilter.js +20 -20
- package/es/SearchTypeResult/ResultNavigation.js +13 -13
- package/es/SearchTypeResult/SearchFieldHeader.js +19 -19
- package/es/SearchTypeResult/SearchFilterContent.js +7 -7
- package/es/SearchTypeResult/SearchHeader.js +25 -25
- package/es/SearchTypeResult/SearchItem.js +16 -16
- package/es/SearchTypeResult/SearchItemList.js +20 -20
- package/es/SearchTypeResult/SearchItems.js +10 -10
- package/es/SearchTypeResult/SearchNotionsResult.js +8 -8
- package/es/SearchTypeResult/SearchSubjectItem.js +9 -9
- package/es/SearchTypeResult/SearchSubjectResult.js +3 -3
- package/es/SearchTypeResult/SearchTypeHeader.js +16 -16
- package/es/SearchTypeResult/SearchTypeResult.js +8 -8
- package/es/SearchTypeResult/SearchViewType.js +15 -15
- package/es/SearchTypeResult/components/ItemContexts.js +20 -22
- package/es/SearchTypeResult/components/ItemResourceHeader.js +12 -12
- package/es/SearchTypeResult/components/ItemTopicHeader.js +7 -7
- package/es/SearchTypeResult/components/SubjectFilters.js +9 -9
- package/es/SearchTypeResult/index.js +6 -6
- package/es/SnackBar/DefaultSnackbar.js +8 -8
- package/es/SnackBar/SnackbarProvider.js +11 -11
- package/es/SnackBar/index.js +2 -2
- package/es/Subject/SubjectBanner.js +2 -2
- package/es/Subject/SubjectHeader.js +8 -8
- package/es/Subject/index.js +2 -2
- package/es/Table/Table.js +19 -19
- package/es/Table/index.js +2 -2
- package/es/TagSelector/Control.js +2 -2
- package/es/TagSelector/DropdownIndicator.js +11 -11
- package/es/TagSelector/Input.js +5 -5
- package/es/TagSelector/Menu.js +5 -5
- package/es/TagSelector/MenuList.js +2 -2
- package/es/TagSelector/Option.js +8 -8
- package/es/TagSelector/SelectContainer.js +2 -2
- package/es/TagSelector/TagSelector.js +26 -26
- package/es/TagSelector/ValueButton.js +7 -7
- package/es/TagSelector/ariaMessages.js +31 -31
- package/es/TagSelector/index.js +1 -1
- package/es/ToolboxPage/ToolboxInfo.js +4 -4
- package/es/ToolboxPage/index.js +1 -1
- package/es/Topic/Loader.js +1 -1
- package/es/Topic/Topic.js +40 -40
- package/es/Topic/index.js +1 -1
- package/es/TreeStructure/AddFolderButton.js +10 -10
- package/es/TreeStructure/ComboboxButton.js +16 -16
- package/es/TreeStructure/FolderItem.js +31 -31
- package/es/TreeStructure/FolderItems.js +12 -12
- package/es/TreeStructure/TreeStructure.js +18 -18
- package/es/TreeStructure/arrowNavigation.js +5 -5
- package/es/TreeStructure/index.js +1 -1
- package/es/all.css +1 -1
- package/es/i18n/formatNestedMessages.js +2 -2
- package/es/i18n/i18n.js +14 -14
- package/es/i18n/index.js +2 -2
- package/es/index.js +73 -73
- package/es/locale/LocaleProvider.js +2 -2
- package/es/locale/messages-en.js +887 -887
- package/es/locale/messages-nb.js +890 -890
- package/es/locale/messages-nn.js +890 -890
- package/es/locale/messages-se.js +892 -892
- package/es/locale/messages-sma.js +891 -891
- package/es/model/ContentType.js +20 -20
- package/es/model/SubjectCategories.js +4 -4
- package/es/model/SubjectTypes.js +3 -3
- package/es/model/WordClass.js +35 -35
- package/es/model/index.js +4 -4
- package/es/types.js +1 -1
- package/es/utils/relativeUrl.js +8 -6
- package/es/utils/resourceTypeColor.js +4 -4
- package/lib/Article/Article.d.ts +2 -2
- package/lib/Article/Article.js +9 -9
- package/lib/Article/ArticleAccessMessage.js +2 -2
- package/lib/Article/ArticleByline.d.ts +3 -3
- package/lib/Article/ArticleByline.js +20 -20
- package/lib/Article/ArticleFootNotes.d.ts +1 -1
- package/lib/Article/ArticleFootNotes.js +5 -5
- package/lib/Article/ArticleHeaderWrapper.d.ts +1 -1
- package/lib/Article/ArticleHeaderWrapper.js +8 -5
- package/lib/Article/ArticleNotions.d.ts +1 -1
- package/lib/Article/ArticleNotions.js +8 -8
- package/lib/Article/index.d.ts +4 -4
- package/lib/Aside/Aside.d.ts +2 -2
- package/lib/Aside/Aside.js +5 -5
- package/lib/Aside/index.d.ts +1 -1
- package/lib/AudioPlayer/AudioPlayer.d.ts +1 -1
- package/lib/AudioPlayer/AudioPlayer.js +23 -23
- package/lib/AudioPlayer/Controls.js +35 -35
- package/lib/AudioPlayer/SpeechControl.js +2 -2
- package/lib/AudioPlayer/index.d.ts +1 -1
- package/lib/BannerCard/BannerCard.js +7 -7
- package/lib/BannerCard/index.d.ts +1 -1
- package/lib/BlogPost/BlogPost.d.ts +2 -2
- package/lib/BlogPost/BlogPost.js +8 -8
- package/lib/BlogPost/index.d.ts +1 -1
- package/lib/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/lib/Breadcrumb/Breadcrumb.js +7 -7
- package/lib/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/lib/Breadcrumb/BreadcrumbItem.js +7 -7
- package/lib/Breadcrumb/HeaderBreadcrumb.d.ts +1 -1
- package/lib/Breadcrumb/HeaderBreadcrumb.js +3 -3
- package/lib/Breadcrumb/HomeBreadcrumb.d.ts +1 -1
- package/lib/Breadcrumb/HomeBreadcrumb.js +8 -8
- package/lib/Breadcrumb/index.d.ts +4 -4
- package/lib/CampaignBlock/CampaignBlock.d.ts +2 -2
- package/lib/CampaignBlock/CampaignBlock.js +11 -11
- package/lib/CampaignBlock/index.d.ts +1 -1
- package/lib/CompetenceGoalTab/CompetenceGoalItem.d.ts +1 -1
- package/lib/CompetenceGoalTab/CompetenceGoalItem.js +1 -1
- package/lib/CompetenceGoalTab/CompetenceGoalTab.d.ts +1 -1
- package/lib/CompetenceGoalTab/CompetenceGoalTab.js +6 -6
- package/lib/CompetenceGoalTab/CompetenceItem.d.ts +2 -2
- package/lib/CompetenceGoalTab/CompetenceItem.js +8 -8
- package/lib/CompetenceGoalTab/CoreElementItem.d.ts +1 -1
- package/lib/CompetenceGoalTab/CoreElementItem.js +1 -1
- package/lib/CompetenceGoalTab/SearchButton.js +3 -3
- package/lib/CompetenceGoalTab/index.d.ts +1 -1
- package/lib/CompetenceGoalTab/styles.js +6 -6
- package/lib/ContactBlock/ContactBlock.d.ts +5 -5
- package/lib/ContactBlock/ContactBlock.js +21 -21
- package/lib/ContactBlock/index.d.ts +1 -1
- package/lib/ContentLoader/index.d.ts +2 -2
- package/lib/ContentLoader/index.js +6 -6
- package/lib/ContentPlaceholder/ContentPlaceholder.js +3 -3
- package/lib/ContentPlaceholder/index.d.ts +1 -1
- package/lib/ContentTypeBadge/ContentTypeBadge.d.ts +11 -11
- package/lib/ContentTypeBadge/ContentTypeBadge.js +17 -16
- package/lib/ContentTypeBadge/index.d.ts +2 -2
- package/lib/CopyParagraphButton/CopyParagraphButton.d.ts +1 -1
- package/lib/CopyParagraphButton/CopyParagraphButton.js +5 -5
- package/lib/CopyParagraphButton/index.d.ts +1 -1
- package/lib/CreatedBy/CreatedBy.js +5 -5
- package/lib/CreatedBy/index.d.ts +1 -1
- package/lib/DefinitionList/DefinitionDescription.d.ts +1 -1
- package/lib/DefinitionList/DefinitionDescription.js +1 -1
- package/lib/DefinitionList/DefinitionTerm.d.ts +1 -1
- package/lib/DefinitionList/DefinitionTerm.js +1 -1
- package/lib/DefinitionList/index.d.ts +2 -2
- package/lib/Embed/AudioEmbed.d.ts +3 -3
- package/lib/Embed/AudioEmbed.js +10 -10
- package/lib/Embed/BrightcoveEmbed.d.ts +2 -2
- package/lib/Embed/BrightcoveEmbed.js +17 -17
- package/lib/Embed/ConceptEmbed.d.ts +4 -4
- package/lib/Embed/ConceptEmbed.js +29 -29
- package/lib/Embed/ConceptListEmbed.d.ts +1 -1
- package/lib/Embed/ConceptListEmbed.js +4 -4
- package/lib/Embed/ContentLinkEmbed.d.ts +1 -1
- package/lib/Embed/ContentLinkEmbed.js +4 -4
- package/lib/Embed/EmbedErrorPlaceholder.d.ts +4 -4
- package/lib/Embed/EmbedErrorPlaceholder.js +2 -2
- package/lib/Embed/ExternalEmbed.d.ts +1 -1
- package/lib/Embed/ExternalEmbed.js +12 -12
- package/lib/Embed/FootnoteEmbed.d.ts +1 -1
- package/lib/Embed/FootnoteEmbed.js +3 -3
- package/lib/Embed/H5pEmbed.d.ts +1 -1
- package/lib/Embed/H5pEmbed.js +4 -4
- package/lib/Embed/IframeEmbed.d.ts +1 -1
- package/lib/Embed/IframeEmbed.js +14 -14
- package/lib/Embed/ImageEmbed.d.ts +3 -3
- package/lib/Embed/ImageEmbed.js +30 -30
- package/lib/Embed/RelatedContentEmbed.d.ts +1 -1
- package/lib/Embed/RelatedContentEmbed.js +10 -10
- package/lib/Embed/UnknownEmbed.d.ts +1 -1
- package/lib/Embed/UnknownEmbed.js +2 -2
- package/lib/Embed/conceptComponents.d.ts +8 -8
- package/lib/Embed/conceptComponents.js +18 -18
- package/lib/Embed/index.d.ts +15 -15
- package/lib/Embed/types.d.ts +7 -7
- package/lib/ErrorMessage/ErrorMessage.d.ts +1 -1
- package/lib/ErrorMessage/ErrorMessage.js +8 -8
- package/lib/ErrorMessage/ErrorResourceAccessDenied.js +5 -5
- package/lib/ErrorMessage/index.d.ts +2 -2
- package/lib/ExpandableBox/ExpandableBox.d.ts +1 -1
- package/lib/ExpandableBox/index.d.ts +1 -1
- package/lib/FactBox/FactBox.d.ts +2 -2
- package/lib/FactBox/FactBox.js +8 -8
- package/lib/FactBox/index.d.ts +1 -1
- package/lib/Figure/Figure.d.ts +2 -2
- package/lib/Figure/Figure.js +7 -7
- package/lib/Figure/FigureOpenDialogButton.d.ts +1 -1
- package/lib/Figure/FigureOpenDialogButton.js +13 -13
- package/lib/Figure/index.d.ts +3 -3
- package/lib/FileList/File.js +2 -2
- package/lib/FileList/FileList.d.ts +2 -2
- package/lib/FileList/FileList.js +4 -4
- package/lib/FileList/Format.d.ts +1 -1
- package/lib/FileList/Format.js +5 -5
- package/lib/FileList/index.d.ts +4 -4
- package/lib/Filter/FilterButtons.js +14 -14
- package/lib/Filter/FilterCarousel.d.ts +1 -1
- package/lib/Filter/FilterCarousel.js +18 -18
- package/lib/Filter/FilterList.d.ts +1 -1
- package/lib/Filter/FilterList.js +13 -13
- package/lib/Filter/FilterListPhone.d.ts +1 -1
- package/lib/Filter/FilterListPhone.js +27 -27
- package/lib/Filter/ToggleItem.d.ts +1 -1
- package/lib/Filter/ToggleItem.js +5 -5
- package/lib/Filter/filterClasses.d.ts +1 -1
- package/lib/Filter/filterClasses.js +2 -2
- package/lib/Filter/index.d.ts +5 -5
- package/lib/Footer/Footer.d.ts +2 -2
- package/lib/Footer/Footer.js +9 -9
- package/lib/Footer/FooterLinks.d.ts +1 -1
- package/lib/Footer/FooterLinks.js +9 -9
- package/lib/Footer/FooterPrivacy.js +4 -4
- package/lib/Footer/FooterText.d.ts +1 -1
- package/lib/Footer/FooterText.js +1 -1
- package/lib/Footer/index.d.ts +3 -3
- package/lib/FramedContent/FramedContent.js +1 -1
- package/lib/FramedContent/index.d.ts +1 -1
- package/lib/Frontpage/FrontpageAllSubjects.d.ts +1 -1
- package/lib/Frontpage/FrontpageAllSubjects.js +13 -13
- package/lib/FrontpageArticle/FrontpageArticle.d.ts +3 -3
- package/lib/FrontpageArticle/FrontpageArticle.js +5 -5
- package/lib/FrontpageArticle/index.d.ts +1 -1
- package/lib/Gloss/Gloss.d.ts +1 -1
- package/lib/Gloss/Gloss.js +14 -14
- package/lib/Gloss/GlossExample.d.ts +1 -1
- package/lib/Gloss/GlossExample.js +3 -3
- package/lib/Gloss/index.d.ts +2 -2
- package/lib/Grid/Grid.d.ts +4 -4
- package/lib/Grid/Grid.js +4 -4
- package/lib/Grid/index.d.ts +2 -2
- package/lib/Hero/Hero.d.ts +2 -2
- package/lib/Hero/Hero.js +4 -4
- package/lib/Hero/HeroContent.js +1 -1
- package/lib/Hero/index.d.ts +3 -3
- package/lib/Image/Image.d.ts +1 -1
- package/lib/Image/Image.js +12 -12
- package/lib/Image/ImageLink.d.ts +2 -2
- package/lib/Image/ImageLink.js +1 -1
- package/lib/Image/index.d.ts +4 -4
- package/lib/KeyFigure/KeyFigure.js +6 -6
- package/lib/KeyFigure/index.d.ts +1 -1
- package/lib/LanguageSelector/LanguageSelector.js +6 -6
- package/lib/LanguageSelector/index.d.ts +1 -1
- package/lib/Layout/Content.d.ts +1 -1
- package/lib/Layout/LayoutItem.d.ts +1 -1
- package/lib/Layout/LayoutItem.js +3 -3
- package/lib/Layout/OneColumn.d.ts +1 -1
- package/lib/Layout/OneColumn.js +6 -6
- package/lib/Layout/PageContainer.d.ts +1 -1
- package/lib/Layout/PageContainer.js +3 -3
- package/lib/Layout/index.d.ts +4 -4
- package/lib/LearningPaths/LearningPathContent.d.ts +1 -1
- package/lib/LearningPaths/LearningPathContent.js +1 -1
- package/lib/LearningPaths/LearningPathInformation.js +4 -4
- package/lib/LearningPaths/LearningPathLastStepNavigation.d.ts +1 -1
- package/lib/LearningPaths/LearningPathLastStepNavigation.js +8 -8
- package/lib/LearningPaths/LearningPathMenu.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMenu.js +5 -5
- package/lib/LearningPaths/LearningPathMenuAside.js +7 -7
- package/lib/LearningPaths/LearningPathMenuAsideCopyright.js +3 -3
- package/lib/LearningPaths/LearningPathMenuContent.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMenuContent.js +8 -8
- package/lib/LearningPaths/LearningPathMenuIntro.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMenuIntro.js +7 -7
- package/lib/LearningPaths/LearningPathMenuModalWrapper.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMenuModalWrapper.js +3 -3
- package/lib/LearningPaths/LearningPathMobileHeader.js +3 -3
- package/lib/LearningPaths/LearningPathMobileStepInfo.js +2 -2
- package/lib/LearningPaths/LearningPathSticky.d.ts +2 -2
- package/lib/LearningPaths/LearningPathSticky.js +7 -7
- package/lib/LearningPaths/LearningPathWrapper.d.ts +1 -1
- package/lib/LearningPaths/LearningPathWrapper.js +2 -2
- package/lib/LearningPaths/index.d.ts +8 -8
- package/lib/LetterFilter/LetterFilter.js +5 -5
- package/lib/LetterFilter/alphabet.js +1 -1
- package/lib/LetterFilter/index.d.ts +1 -1
- package/lib/LicenseByline/EmbedByline.d.ts +12 -12
- package/lib/LicenseByline/EmbedByline.js +11 -11
- package/lib/LicenseByline/LicenseDescription.d.ts +1 -1
- package/lib/LicenseByline/LicenseDescription.js +1 -1
- package/lib/LicenseByline/LicenseLink.d.ts +1 -1
- package/lib/LicenseByline/LicenseLink.js +3 -3
- package/lib/LicenseByline/index.d.ts +1 -1
- package/lib/LinkBlock/LinkBlock.d.ts +2 -2
- package/lib/LinkBlock/LinkBlock.js +8 -8
- package/lib/LinkBlock/LinkBlockSection.d.ts +1 -1
- package/lib/LinkBlock/LinkBlockSection.js +1 -1
- package/lib/LinkBlock/index.d.ts +2 -2
- package/lib/List/OrderedList.d.ts +2 -2
- package/lib/List/OrderedList.js +4 -4
- package/lib/List/UnOrderedList.d.ts +1 -1
- package/lib/List/UnOrderedList.js +1 -1
- package/lib/List/index.d.ts +2 -2
- package/lib/Logo/Logo.d.ts +1 -1
- package/lib/Logo/Logo.js +3 -3
- package/lib/Logo/SvgLogo.js +3 -3
- package/lib/Logo/index.d.ts +1 -1
- package/lib/Masthead/Masthead.d.ts +1 -1
- package/lib/Masthead/Masthead.js +3 -3
- package/lib/Masthead/SkipToMainContent.js +2 -2
- package/lib/Masthead/index.d.ts +3 -3
- package/lib/Masthead/utils.js +3 -3
- package/lib/MediaList/MediaList.d.ts +8 -8
- package/lib/MediaList/MediaList.js +18 -17
- package/lib/MediaList/index.d.ts +2 -2
- package/lib/Messages/MessageBanner.d.ts +1 -1
- package/lib/Messages/MessageBanner.js +4 -4
- package/lib/Messages/MessageBox.d.ts +2 -2
- package/lib/Messages/MessageBox.js +7 -7
- package/lib/Messages/index.d.ts +2 -2
- package/lib/MyNdla/Resource/Folder.d.ts +2 -2
- package/lib/MyNdla/Resource/Folder.js +13 -13
- package/lib/MyNdla/Resource/FolderInput.js +10 -10
- package/lib/MyNdla/Resource/index.d.ts +2 -2
- package/lib/MyNdla/index.d.ts +2 -2
- package/lib/NDLAFilm/AllMoviesAlphabetically.d.ts +1 -1
- package/lib/NDLAFilm/AllMoviesAlphabetically.js +11 -11
- package/lib/NDLAFilm/FilmContentCard.d.ts +3 -3
- package/lib/NDLAFilm/FilmContentCard.js +10 -10
- package/lib/NDLAFilm/FilmContentCardTags.d.ts +1 -1
- package/lib/NDLAFilm/FilmContentCardTags.js +2 -2
- package/lib/NDLAFilm/FilmMovieList.d.ts +1 -1
- package/lib/NDLAFilm/FilmMovieList.js +1 -1
- package/lib/NDLAFilm/FilmMovieSearch.d.ts +1 -1
- package/lib/NDLAFilm/FilmMovieSearch.js +11 -11
- package/lib/NDLAFilm/FilmSlideshow.d.ts +1 -1
- package/lib/NDLAFilm/FilmSlideshow.js +10 -10
- package/lib/NDLAFilm/MovieGrid.d.ts +1 -1
- package/lib/NDLAFilm/MovieGrid.js +3 -3
- package/lib/NDLAFilm/VisualElement.js +4 -4
- package/lib/NDLAFilm/filmStyles.js +5 -5
- package/lib/NDLAFilm/index.d.ts +5 -5
- package/lib/Navigation/NavigationBox.d.ts +3 -3
- package/lib/Navigation/NavigationBox.js +22 -22
- package/lib/Navigation/index.d.ts +1 -1
- package/lib/NoContentBox/index.d.ts +1 -1
- package/lib/Notion/Notion.d.ts +1 -1
- package/lib/Notion/Notion.js +8 -8
- package/lib/Notion/NotionImage.d.ts +1 -1
- package/lib/Notion/NotionImage.js +5 -5
- package/lib/Notion/index.d.ts +1 -1
- package/lib/Programme/Programme.d.ts +1 -1
- package/lib/Programme/Programme.js +5 -5
- package/lib/Programme/ProgrammeSubjects.js +6 -6
- package/lib/Programme/index.d.ts +2 -2
- package/lib/ProgrammeCard/ProgrammeCard.js +4 -4
- package/lib/ProgrammeCard/index.d.ts +2 -2
- package/lib/RelatedArticleList/RelatedArticleList.d.ts +3 -3
- package/lib/RelatedArticleList/RelatedArticleList.js +14 -14
- package/lib/RelatedArticleList/index.d.ts +1 -1
- package/lib/Resource/BlockResource.d.ts +2 -2
- package/lib/Resource/BlockResource.js +14 -14
- package/lib/Resource/ListResource.d.ts +2 -2
- package/lib/Resource/ListResource.js +28 -28
- package/lib/Resource/index.d.ts +3 -3
- package/lib/Resource/resourceComponents.d.ts +1 -1
- package/lib/Resource/resourceComponents.js +17 -17
- package/lib/Resource/storyComponents.js +12 -12
- package/lib/ResourceBox/ResourceBox.js +6 -6
- package/lib/ResourceBox/index.d.ts +1 -1
- package/lib/ResourceGroup/ResourceGroup.d.ts +3 -3
- package/lib/ResourceGroup/ResourceGroup.js +5 -5
- package/lib/ResourceGroup/ResourceItem.d.ts +3 -3
- package/lib/ResourceGroup/ResourceItem.js +30 -28
- package/lib/ResourceGroup/ResourceList.d.ts +2 -2
- package/lib/ResourceGroup/ResourceList.js +5 -5
- package/lib/ResourceGroup/index.d.ts +1 -1
- package/lib/ResourcesWrapper/ResourcesTopicTitle.js +19 -19
- package/lib/ResourcesWrapper/ResourcesWrapper.d.ts +1 -1
- package/lib/ResourcesWrapper/ResourcesWrapper.js +1 -1
- package/lib/ResourcesWrapper/index.d.ts +2 -2
- package/lib/Search/ActiveFilterContent.js +5 -5
- package/lib/Search/ActiveFilters.js +12 -12
- package/lib/Search/ContentTypeResult.d.ts +1 -1
- package/lib/Search/ContentTypeResult.js +7 -7
- package/lib/Search/ContentTypeResultStyles.js +13 -13
- package/lib/Search/IsPathToHighlight.js +1 -1
- package/lib/Search/LoadingWrapper.js +1 -1
- package/lib/Search/SearchField.d.ts +1 -1
- package/lib/Search/SearchField.js +11 -11
- package/lib/Search/SearchFieldForm.d.ts +1 -1
- package/lib/Search/SearchFieldForm.js +2 -2
- package/lib/Search/SearchResult.d.ts +1 -1
- package/lib/Search/SearchResult.js +28 -28
- package/lib/Search/SearchResultSleeve.d.ts +1 -1
- package/lib/Search/SearchResultSleeve.js +31 -31
- package/lib/Search/index.d.ts +3 -3
- package/lib/SearchTypeResult/ActiveFilterContent.js +3 -3
- package/lib/SearchTypeResult/ActiveFilters.d.ts +2 -2
- package/lib/SearchTypeResult/ActiveFilters.js +10 -10
- package/lib/SearchTypeResult/PopupFilter.d.ts +2 -2
- package/lib/SearchTypeResult/PopupFilter.js +13 -13
- package/lib/SearchTypeResult/ResultNavigation.js +10 -10
- package/lib/SearchTypeResult/SearchFieldHeader.d.ts +2 -2
- package/lib/SearchTypeResult/SearchFieldHeader.js +13 -13
- package/lib/SearchTypeResult/SearchFilterContent.d.ts +5 -5
- package/lib/SearchTypeResult/SearchFilterContent.js +3 -3
- package/lib/SearchTypeResult/SearchHeader.d.ts +5 -5
- package/lib/SearchTypeResult/SearchHeader.js +17 -17
- package/lib/SearchTypeResult/SearchItem.d.ts +4 -4
- package/lib/SearchTypeResult/SearchItem.js +8 -8
- package/lib/SearchTypeResult/SearchItemList.d.ts +1 -1
- package/lib/SearchTypeResult/SearchItemList.js +12 -12
- package/lib/SearchTypeResult/SearchItems.d.ts +3 -3
- package/lib/SearchTypeResult/SearchItems.js +5 -5
- package/lib/SearchTypeResult/SearchNotionsResult.d.ts +1 -1
- package/lib/SearchTypeResult/SearchNotionsResult.js +4 -4
- package/lib/SearchTypeResult/SearchSubjectItem.js +6 -6
- package/lib/SearchTypeResult/SearchSubjectResult.d.ts +1 -1
- package/lib/SearchTypeResult/SearchSubjectResult.js +1 -1
- package/lib/SearchTypeResult/SearchTypeHeader.d.ts +1 -1
- package/lib/SearchTypeResult/SearchTypeHeader.js +10 -10
- package/lib/SearchTypeResult/SearchTypeResult.d.ts +6 -6
- package/lib/SearchTypeResult/SearchTypeResult.js +2 -2
- package/lib/SearchTypeResult/SearchViewType.d.ts +2 -2
- package/lib/SearchTypeResult/SearchViewType.js +10 -10
- package/lib/SearchTypeResult/components/ItemContexts.js +13 -15
- package/lib/SearchTypeResult/components/ItemResourceHeader.d.ts +4 -4
- package/lib/SearchTypeResult/components/ItemResourceHeader.js +7 -7
- package/lib/SearchTypeResult/components/ItemTopicHeader.d.ts +4 -4
- package/lib/SearchTypeResult/components/ItemTopicHeader.js +4 -4
- package/lib/SearchTypeResult/components/SubjectFilters.d.ts +4 -4
- package/lib/SearchTypeResult/components/SubjectFilters.js +2 -2
- package/lib/SearchTypeResult/index.d.ts +7 -7
- package/lib/SnackBar/DefaultSnackbar.d.ts +1 -1
- package/lib/SnackBar/DefaultSnackbar.js +3 -3
- package/lib/SnackBar/SnackbarProvider.d.ts +1 -1
- package/lib/SnackBar/SnackbarProvider.js +7 -7
- package/lib/SnackBar/index.d.ts +3 -3
- package/lib/Subject/SubjectBanner.js +1 -1
- package/lib/Subject/SubjectHeader.d.ts +1 -1
- package/lib/Subject/SubjectHeader.js +5 -5
- package/lib/Subject/index.d.ts +2 -2
- package/lib/Table/Table.d.ts +1 -1
- package/lib/Table/Table.js +15 -15
- package/lib/Table/index.d.ts +2 -2
- package/lib/TagSelector/Control.d.ts +2 -2
- package/lib/TagSelector/Control.js +1 -1
- package/lib/TagSelector/DropdownIndicator.d.ts +2 -2
- package/lib/TagSelector/DropdownIndicator.js +6 -6
- package/lib/TagSelector/Input.d.ts +2 -2
- package/lib/TagSelector/Input.js +1 -1
- package/lib/TagSelector/Menu.d.ts +2 -2
- package/lib/TagSelector/Menu.js +1 -1
- package/lib/TagSelector/MenuList.d.ts +2 -2
- package/lib/TagSelector/MenuList.js +1 -1
- package/lib/TagSelector/Option.d.ts +2 -2
- package/lib/TagSelector/Option.js +5 -5
- package/lib/TagSelector/SelectContainer.d.ts +2 -2
- package/lib/TagSelector/SelectContainer.js +1 -1
- package/lib/TagSelector/TagSelector.js +13 -13
- package/lib/TagSelector/ValueButton.d.ts +2 -2
- package/lib/TagSelector/ValueButton.js +4 -4
- package/lib/TagSelector/ariaMessages.d.ts +3 -3
- package/lib/TagSelector/ariaMessages.js +31 -31
- package/lib/TagSelector/index.d.ts +2 -2
- package/lib/ToolboxPage/ToolboxInfo.d.ts +2 -2
- package/lib/ToolboxPage/ToolboxInfo.js +1 -1
- package/lib/ToolboxPage/index.d.ts +1 -1
- package/lib/Topic/Topic.d.ts +3 -3
- package/lib/Topic/Topic.js +26 -26
- package/lib/Topic/index.d.ts +1 -1
- package/lib/TreeStructure/AddFolderButton.d.ts +1 -1
- package/lib/TreeStructure/AddFolderButton.js +5 -5
- package/lib/TreeStructure/ComboboxButton.d.ts +2 -2
- package/lib/TreeStructure/ComboboxButton.js +8 -8
- package/lib/TreeStructure/FolderItem.d.ts +2 -2
- package/lib/TreeStructure/FolderItem.js +21 -21
- package/lib/TreeStructure/FolderItems.d.ts +3 -3
- package/lib/TreeStructure/FolderItems.js +9 -9
- package/lib/TreeStructure/TreeStructure.d.ts +2 -2
- package/lib/TreeStructure/TreeStructure.js +11 -11
- package/lib/TreeStructure/arrowNavigation.d.ts +2 -2
- package/lib/TreeStructure/arrowNavigation.js +5 -5
- package/lib/TreeStructure/helperFunctions.d.ts +2 -2
- package/lib/TreeStructure/index.d.ts +2 -2
- package/lib/TreeStructure/types.d.ts +3 -3
- package/lib/all.css +1 -1
- package/lib/i18n/formatNestedMessages.js +2 -2
- package/lib/i18n/i18n.js +6 -6
- package/lib/i18n/index.d.ts +2 -2
- package/lib/index.d.ts +86 -86
- package/lib/locale/LocaleProvider.d.ts +2 -2
- package/lib/locale/messages-en.d.ts +10 -10
- package/lib/locale/messages-en.js +885 -885
- package/lib/locale/messages-nb.d.ts +10 -10
- package/lib/locale/messages-nb.js +888 -888
- package/lib/locale/messages-nn.d.ts +10 -10
- package/lib/locale/messages-nn.js +888 -888
- package/lib/locale/messages-se.d.ts +11 -11
- package/lib/locale/messages-se.js +890 -890
- package/lib/locale/messages-sma.d.ts +11 -11
- package/lib/locale/messages-sma.js +889 -889
- package/lib/model/ContentType.js +20 -20
- package/lib/model/SubjectCategories.js +4 -4
- package/lib/model/SubjectTypes.js +3 -3
- package/lib/model/WordClass.d.ts +1 -1
- package/lib/model/WordClass.js +35 -35
- package/lib/model/index.d.ts +3 -3
- package/lib/types.d.ts +2 -2
- package/lib/types.js +1 -1
- package/lib/utils/relativeUrl.js +7 -5
- package/lib/utils/resourceTypeColor.js +1 -1
- package/package.json +21 -21
- package/src/Article/Article.tsx +22 -22
- package/src/Article/ArticleAccessMessage.tsx +5 -5
- package/src/Article/ArticleByline.stories.tsx +14 -14
- package/src/Article/ArticleByline.tsx +32 -29
- package/src/Article/ArticleFootNotes.tsx +6 -6
- package/src/Article/ArticleHeaderWrapper.tsx +8 -8
- package/src/Article/ArticleNotions.tsx +10 -10
- package/src/Article/component.article.scss +7 -3
- package/src/Article/index.ts +4 -4
- package/src/Aside/Aside.tsx +5 -5
- package/src/Aside/index.ts +1 -1
- package/src/AudioPlayer/AudiPlayer.stories.tsx +20 -20
- package/src/AudioPlayer/AudioPlayer.tsx +22 -22
- package/src/AudioPlayer/Controls.tsx +27 -27
- package/src/AudioPlayer/SpeechControl.tsx +7 -7
- package/src/AudioPlayer/index.ts +1 -1
- package/src/BannerCard/BannerCard.tsx +4 -4
- package/src/BannerCard/index.ts +1 -1
- package/src/BlogPost/BlogPost.stories.tsx +13 -13
- package/src/BlogPost/BlogPost.tsx +13 -13
- package/src/BlogPost/index.ts +1 -1
- package/src/Breadcrumb/Breadcrumb.stories.tsx +14 -14
- package/src/Breadcrumb/Breadcrumb.tsx +10 -10
- package/src/Breadcrumb/BreadcrumbItem.tsx +7 -7
- package/src/Breadcrumb/HeaderBreadcrumb.tsx +6 -6
- package/src/Breadcrumb/HomeBreadcrumb.stories.tsx +14 -14
- package/src/Breadcrumb/HomeBreadcrumb.tsx +8 -8
- package/src/Breadcrumb/index.ts +4 -4
- package/src/CampaignBlock/CampaignBlock.stories.tsx +21 -21
- package/src/CampaignBlock/CampaignBlock.tsx +14 -14
- package/src/CampaignBlock/index.ts +1 -1
- package/src/CompetenceGoalTab/CompetenceGoalItem.tsx +5 -5
- package/src/CompetenceGoalTab/CompetenceGoalTab.tsx +16 -16
- package/src/CompetenceGoalTab/CompetenceItem.tsx +11 -11
- package/src/CompetenceGoalTab/CoreElementItem.tsx +7 -5
- package/src/CompetenceGoalTab/SearchButton.tsx +5 -5
- package/src/CompetenceGoalTab/index.ts +1 -1
- package/src/CompetenceGoalTab/styles.ts +3 -3
- package/src/ContactBlock/ContactBlock.tsx +26 -26
- package/src/ContactBlock/Contactblock.stories.tsx +38 -38
- package/src/ContactBlock/index.ts +1 -1
- package/src/ContentLoader/ContentLoader.stories.tsx +5 -5
- package/src/ContentLoader/index.tsx +9 -9
- package/src/ContentPlaceholder/ContentPlaceholder.tsx +2 -2
- package/src/ContentPlaceholder/index.ts +1 -1
- package/src/ContentTypeBadge/ContentTypeBadge.stories.tsx +10 -10
- package/src/ContentTypeBadge/ContentTypeBadge.tsx +31 -27
- package/src/ContentTypeBadge/index.ts +2 -2
- package/src/CopyParagraphButton/CopyParagraphButton.tsx +10 -10
- package/src/CopyParagraphButton/index.tsx +1 -1
- package/src/CreatedBy/CreatedBy.stories.tsx +8 -8
- package/src/CreatedBy/CreatedBy.tsx +6 -6
- package/src/CreatedBy/index.ts +1 -1
- package/src/DefinitionList/DefinitionDescription.tsx +4 -4
- package/src/DefinitionList/DefinitionTerm.tsx +4 -4
- package/src/DefinitionList/index.tsx +2 -2
- package/src/Embed/AudioEmbed.stories.tsx +96 -93
- package/src/Embed/AudioEmbed.tsx +20 -20
- package/src/Embed/BrightcoveEmbed.stories.tsx +67 -67
- package/src/Embed/BrightcoveEmbed.tsx +28 -28
- package/src/Embed/ConceptEmbed.stories.tsx +119 -114
- package/src/Embed/ConceptEmbed.tsx +52 -44
- package/src/Embed/ConceptListEmbed.tsx +8 -8
- package/src/Embed/ContentLinkEmbed.tsx +7 -7
- package/src/Embed/EmbedErrorPlaceholder.tsx +9 -9
- package/src/Embed/ExternalEmbed.stories.tsx +21 -21
- package/src/Embed/ExternalEmbed.tsx +20 -17
- package/src/Embed/FootnoteEmbed.stories.tsx +35 -30
- package/src/Embed/FootnoteEmbed.tsx +6 -6
- package/src/Embed/H5pEmbed.stories.tsx +23 -23
- package/src/Embed/H5pEmbed.tsx +6 -6
- package/src/Embed/IframeEmbed.stories.tsx +50 -50
- package/src/Embed/IframeEmbed.tsx +18 -18
- package/src/Embed/ImageEmbed.stories.tsx +77 -77
- package/src/Embed/ImageEmbed.tsx +44 -44
- package/src/Embed/RelatedContentEmbed.stories.tsx +187 -187
- package/src/Embed/RelatedContentEmbed.tsx +14 -14
- package/src/Embed/UnknownEmbed.tsx +5 -5
- package/src/Embed/conceptComponents.tsx +38 -35
- package/src/Embed/index.ts +15 -15
- package/src/Embed/types.ts +9 -7
- package/src/ErrorMessage/ErrorMessage.stories.tsx +17 -17
- package/src/ErrorMessage/ErrorMessage.tsx +6 -6
- package/src/ErrorMessage/ErrorResourceAccessDenied.tsx +10 -10
- package/src/ErrorMessage/index.ts +2 -2
- package/src/ExpandableBox/ExpandableBox.stories.tsx +5 -5
- package/src/ExpandableBox/ExpandableBox.tsx +1 -1
- package/src/ExpandableBox/index.ts +1 -1
- package/src/FactBox/FactBox.tsx +11 -11
- package/src/FactBox/Factbox.stories.tsx +8 -8
- package/src/FactBox/index.ts +1 -1
- package/src/Figure/Figure.tsx +17 -17
- package/src/Figure/FigureOpenDialogButton.tsx +8 -8
- package/src/Figure/index.ts +3 -3
- package/src/FileList/File.tsx +5 -5
- package/src/FileList/FileList.stories.tsx +9 -9
- package/src/FileList/FileList.tsx +7 -7
- package/src/FileList/Format.tsx +6 -6
- package/src/FileList/PdfFile.tsx +1 -1
- package/src/FileList/index.ts +4 -4
- package/src/Filter/FilterButtons.tsx +16 -16
- package/src/Filter/FilterCarousel.tsx +16 -16
- package/src/Filter/FilterList.tsx +17 -17
- package/src/Filter/FilterListPhone.tsx +36 -36
- package/src/Filter/ToggleItem.tsx +7 -7
- package/src/Filter/filterClasses.ts +3 -3
- package/src/Filter/index.ts +5 -5
- package/src/Footer/Footer.stories.tsx +37 -31
- package/src/Footer/Footer.tsx +11 -11
- package/src/Footer/FooterLinks.tsx +9 -9
- package/src/Footer/FooterPrivacy.tsx +2 -2
- package/src/Footer/FooterText.tsx +3 -3
- package/src/Footer/index.ts +3 -3
- package/src/FramedContent/FramedContent.stories.tsx +7 -7
- package/src/FramedContent/FramedContent.tsx +4 -4
- package/src/FramedContent/index.ts +1 -1
- package/src/Frontpage/FrontpageAllSubjects.tsx +20 -20
- package/src/FrontpageArticle/FrontpageArticle.tsx +17 -17
- package/src/FrontpageArticle/index.ts +1 -1
- package/src/Gloss/Gloss.stories.tsx +33 -33
- package/src/Gloss/Gloss.tsx +18 -18
- package/src/Gloss/GlossExample.tsx +7 -7
- package/src/Gloss/index.tsx +2 -2
- package/src/Grid/Grid.stories.tsx +16 -16
- package/src/Grid/Grid.tsx +15 -15
- package/src/Grid/index.ts +2 -2
- package/src/Hero/Hero.stories.tsx +9 -9
- package/src/Hero/Hero.tsx +28 -28
- package/src/Hero/HeroContent.tsx +4 -4
- package/src/Hero/index.ts +3 -3
- package/src/Image/Image.stories.tsx +10 -10
- package/src/Image/Image.tsx +12 -12
- package/src/Image/ImageLink.tsx +4 -4
- package/src/Image/__tests__/Image-test.jsx +9 -9
- package/src/Image/__tests__/__snapshots__/Image-test.jsx.snap +9 -9
- package/src/Image/index.ts +4 -4
- package/src/KeyFigure/KeyFigure.stories.tsx +11 -11
- package/src/KeyFigure/KeyFigure.tsx +6 -6
- package/src/KeyFigure/index.ts +1 -1
- package/src/LanguageSelector/LanguageSelector.stories.tsx +11 -11
- package/src/LanguageSelector/LanguageSelector.tsx +8 -8
- package/src/LanguageSelector/index.ts +1 -1
- package/src/Layout/Content.tsx +1 -1
- package/src/Layout/LayoutItem.tsx +4 -4
- package/src/Layout/OneColumn.tsx +8 -8
- package/src/Layout/PageContainer.tsx +5 -5
- package/src/Layout/index.ts +4 -4
- package/src/LearningPaths/LearningPathContent.tsx +3 -3
- package/src/LearningPaths/LearningPathInformation.tsx +6 -6
- package/src/LearningPaths/LearningPathLastStepNavigation.tsx +11 -11
- package/src/LearningPaths/LearningPathMenu.stories.tsx +18 -18
- package/src/LearningPaths/LearningPathMenu.tsx +14 -14
- package/src/LearningPaths/LearningPathMenuAside.tsx +10 -10
- package/src/LearningPaths/LearningPathMenuAsideCopyright.tsx +6 -6
- package/src/LearningPaths/LearningPathMenuContent.tsx +11 -11
- package/src/LearningPaths/LearningPathMenuIntro.tsx +7 -7
- package/src/LearningPaths/LearningPathMenuModalWrapper.tsx +9 -9
- package/src/LearningPaths/LearningPathMobileHeader.tsx +5 -5
- package/src/LearningPaths/LearningPathMobileStepInfo.tsx +4 -4
- package/src/LearningPaths/LearningPathSticky.tsx +12 -12
- package/src/LearningPaths/LearningPathWrapper.tsx +4 -4
- package/src/LearningPaths/index.ts +8 -8
- package/src/LetterFilter/LetterFilter.stories.tsx +8 -8
- package/src/LetterFilter/LetterFilter.tsx +11 -9
- package/src/LetterFilter/alphabet.ts +29 -29
- package/src/LetterFilter/index.ts +1 -1
- package/src/LicenseByline/EmbedByline.stories.tsx +20 -20
- package/src/LicenseByline/EmbedByline.tsx +30 -30
- package/src/LicenseByline/LicenseDescription.tsx +3 -3
- package/src/LicenseByline/LicenseLink.tsx +5 -5
- package/src/LicenseByline/index.tsx +1 -1
- package/src/LinkBlock/LinkBlock.stories.tsx +10 -10
- package/src/LinkBlock/LinkBlock.tsx +14 -14
- package/src/LinkBlock/LinkBlockSection.tsx +3 -3
- package/src/LinkBlock/index.ts +2 -2
- package/src/List/OrderedList.stories.tsx +6 -6
- package/src/List/OrderedList.tsx +28 -28
- package/src/List/UnOrderedList.tsx +4 -4
- package/src/List/UnorderedList.stories.tsx +4 -4
- package/src/List/index.ts +2 -2
- package/src/Logo/Logo.stories.tsx +10 -10
- package/src/Logo/Logo.tsx +6 -6
- package/src/Logo/SvgLogo.tsx +4 -4
- package/src/Logo/index.ts +1 -1
- package/src/Masthead/Masthead.tsx +6 -6
- package/src/Masthead/SkipToMainContent.tsx +4 -4
- package/src/Masthead/index.ts +3 -3
- package/src/Masthead/utils.ts +5 -5
- package/src/MediaList/MediaList.tsx +25 -22
- package/src/MediaList/index.ts +2 -2
- package/src/Messages/MessageBanner.stories.tsx +7 -7
- package/src/Messages/MessageBanner.tsx +5 -5
- package/src/Messages/MessageBox.stories.tsx +17 -17
- package/src/Messages/MessageBox.tsx +11 -11
- package/src/Messages/index.ts +2 -2
- package/src/MyNdla/Resource/Folder.stories.tsx +17 -17
- package/src/MyNdla/Resource/Folder.tsx +20 -20
- package/src/MyNdla/Resource/FolderInput.stories.tsx +7 -7
- package/src/MyNdla/Resource/FolderInput.tsx +19 -19
- package/src/MyNdla/Resource/index.ts +2 -2
- package/src/MyNdla/index.ts +2 -2
- package/src/NDLAFilm/AllMoviesAlphabetically.tsx +16 -13
- package/src/NDLAFilm/FilmContentCard.tsx +20 -18
- package/src/NDLAFilm/FilmContentCardTags.tsx +4 -4
- package/src/NDLAFilm/FilmMovieList.tsx +8 -8
- package/src/NDLAFilm/FilmMovieSearch.tsx +22 -16
- package/src/NDLAFilm/FilmSlideshow.tsx +17 -15
- package/src/NDLAFilm/MovieGrid.tsx +8 -8
- package/src/NDLAFilm/VisualElement.tsx +5 -5
- package/src/NDLAFilm/__tests__/isLetter-test.jsx +8 -8
- package/src/NDLAFilm/filmStyles.ts +5 -5
- package/src/NDLAFilm/index.ts +5 -5
- package/src/Navigation/NavigationBox.tsx +28 -28
- package/src/Navigation/index.ts +1 -1
- package/src/NoContentBox/NoContentBox.tsx +1 -1
- package/src/NoContentBox/index.ts +1 -1
- package/src/Notion/Notion.tsx +9 -9
- package/src/Notion/NotionImage.tsx +9 -9
- package/src/Notion/index.ts +1 -1
- package/src/Programme/Programme.tsx +7 -7
- package/src/Programme/ProgrammeSubjects.tsx +12 -12
- package/src/Programme/index.ts +2 -2
- package/src/ProgrammeCard/ProgrammeCard.stories.tsx +13 -13
- package/src/ProgrammeCard/ProgrammeCard.tsx +5 -5
- package/src/ProgrammeCard/index.tsx +2 -2
- package/src/RelatedArticleList/RelatedArticleList.tsx +17 -17
- package/src/RelatedArticleList/index.ts +1 -1
- package/src/Resource/BlockResource.stories.tsx +19 -19
- package/src/Resource/BlockResource.tsx +15 -15
- package/src/Resource/ListResource.stories.tsx +18 -18
- package/src/Resource/ListResource.tsx +31 -31
- package/src/Resource/index.ts +3 -3
- package/src/Resource/resourceComponents.tsx +22 -19
- package/src/Resource/storyComponents.tsx +14 -11
- package/src/ResourceBox/ResourceBox.tsx +5 -5
- package/src/ResourceBox/index.ts +1 -1
- package/src/ResourceGroup/ResourceGroup.tsx +8 -8
- package/src/ResourceGroup/ResourceItem.stories.tsx +22 -22
- package/src/ResourceGroup/ResourceItem.tsx +35 -37
- package/src/ResourceGroup/ResourceList.tsx +11 -11
- package/src/ResourceGroup/index.ts +1 -1
- package/src/ResourcesWrapper/ResourcesTopicTitle.tsx +17 -17
- package/src/ResourcesWrapper/ResourcesWrapper.tsx +3 -3
- package/src/ResourcesWrapper/index.ts +2 -2
- package/src/Search/ActiveFilterContent.tsx +8 -8
- package/src/Search/ActiveFilters.tsx +12 -12
- package/src/Search/ContentTypeResult.tsx +16 -16
- package/src/Search/ContentTypeResultStyles.tsx +5 -5
- package/src/Search/IsPathToHighlight.ts +1 -1
- package/src/Search/LoadingWrapper.tsx +4 -4
- package/src/Search/SearchField.tsx +19 -19
- package/src/Search/SearchFieldForm.tsx +4 -4
- package/src/Search/SearchResult.tsx +34 -34
- package/src/Search/SearchResultSleeve.tsx +32 -32
- package/src/Search/__tests__/Highlight-test.js +20 -20
- package/src/Search/index.ts +3 -3
- package/src/SearchTypeResult/ActiveFilterContent.tsx +7 -7
- package/src/SearchTypeResult/ActiveFilters.tsx +12 -12
- package/src/SearchTypeResult/PopupFilter.tsx +16 -16
- package/src/SearchTypeResult/ResultNavigation.tsx +11 -11
- package/src/SearchTypeResult/SearchFieldHeader.tsx +16 -16
- package/src/SearchTypeResult/SearchFilterContent.tsx +10 -10
- package/src/SearchTypeResult/SearchHeader.tsx +22 -22
- package/src/SearchTypeResult/SearchItem.tsx +17 -17
- package/src/SearchTypeResult/SearchItemList.tsx +14 -14
- package/src/SearchTypeResult/SearchItems.tsx +12 -12
- package/src/SearchTypeResult/SearchNotionsResult.tsx +7 -7
- package/src/SearchTypeResult/SearchSubjectItem.tsx +7 -7
- package/src/SearchTypeResult/SearchSubjectResult.tsx +3 -3
- package/src/SearchTypeResult/SearchTypeHeader.tsx +11 -11
- package/src/SearchTypeResult/SearchTypeResult.tsx +10 -10
- package/src/SearchTypeResult/SearchViewType.tsx +15 -15
- package/src/SearchTypeResult/components/ItemContexts.tsx +19 -17
- package/src/SearchTypeResult/components/ItemResourceHeader.tsx +13 -13
- package/src/SearchTypeResult/components/ItemTopicHeader.tsx +9 -9
- package/src/SearchTypeResult/components/SubjectFilters.tsx +12 -12
- package/src/SearchTypeResult/index.ts +7 -7
- package/src/SnackBar/DefaultSnackbar.tsx +7 -7
- package/src/SnackBar/Snack.stories.tsx +31 -15
- package/src/SnackBar/SnackbarProvider.tsx +10 -10
- package/src/SnackBar/index.ts +3 -3
- package/src/Subject/SubjectBanner.tsx +2 -2
- package/src/Subject/SubjectHeader.tsx +8 -8
- package/src/Subject/index.ts +2 -2
- package/src/Table/Table.stories.tsx +34 -34
- package/src/Table/Table.tsx +22 -22
- package/src/Table/index.ts +2 -2
- package/src/TagSelector/Control.tsx +4 -4
- package/src/TagSelector/DropdownIndicator.tsx +15 -9
- package/src/TagSelector/Input.tsx +5 -5
- package/src/TagSelector/Menu.tsx +5 -5
- package/src/TagSelector/MenuList.tsx +4 -4
- package/src/TagSelector/Option.tsx +11 -7
- package/src/TagSelector/SelectContainer.tsx +4 -4
- package/src/TagSelector/TagSelector.stories.tsx +27 -27
- package/src/TagSelector/TagSelector.tsx +27 -27
- package/src/TagSelector/ValueButton.tsx +7 -7
- package/src/TagSelector/ariaMessages.ts +50 -41
- package/src/TagSelector/index.ts +2 -2
- package/src/ToolboxPage/ToolboxInfo.tsx +6 -6
- package/src/ToolboxPage/index.ts +1 -1
- package/src/Topic/Loader.tsx +1 -1
- package/src/Topic/Topic.tsx +30 -30
- package/src/Topic/index.ts +1 -1
- package/src/TreeStructure/AddFolderButton.tsx +11 -11
- package/src/TreeStructure/ComboboxButton.tsx +18 -18
- package/src/TreeStructure/FolderItem.tsx +35 -35
- package/src/TreeStructure/FolderItems.tsx +19 -13
- package/src/TreeStructure/TreeStructure.stories.tsx +75 -75
- package/src/TreeStructure/TreeStructure.tsx +18 -18
- package/src/TreeStructure/arrowNavigation.ts +7 -7
- package/src/TreeStructure/helperFunctions.ts +2 -2
- package/src/TreeStructure/index.ts +2 -2
- package/src/TreeStructure/types.ts +3 -3
- package/src/i18n/__tests__/formatNestedMessages-test.ts +8 -8
- package/src/i18n/formatNestedMessages.ts +2 -2
- package/src/i18n/i18n.ts +14 -14
- package/src/i18n/index.ts +2 -2
- package/src/index.ts +86 -86
- package/src/locale/LocaleProvider.tsx +4 -4
- package/src/locale/__tests__/translations-test.ts +13 -13
- package/src/locale/messages-en.ts +891 -888
- package/src/locale/messages-nb.ts +892 -892
- package/src/locale/messages-nn.ts +892 -892
- package/src/locale/messages-se.ts +897 -893
- package/src/locale/messages-sma.ts +895 -893
- package/src/model/ContentType.ts +28 -28
- package/src/model/SubjectCategories.ts +4 -4
- package/src/model/SubjectTypes.ts +3 -3
- package/src/model/WordClass.ts +35 -35
- package/src/model/index.ts +4 -4
- package/src/types.ts +3 -3
- package/src/utils/__tests__/relativeUrl-test.tsx +48 -42
- package/src/utils/relativeUrl.ts +8 -6
- package/src/utils/resourceTypeColor.tsx +4 -4
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { Fragment } from
|
|
10
|
-
import { useTranslation } from
|
|
11
|
-
import styled from
|
|
12
|
-
import { colors, fonts, mq, breakpoints } from
|
|
13
|
-
import SafeLink from
|
|
14
|
-
import Tabs from
|
|
15
|
-
import ContentLoader from
|
|
16
|
-
import { ToggleItem } from
|
|
17
|
-
import { MessageBox } from
|
|
9
|
+
import { Fragment } from "react";
|
|
10
|
+
import { useTranslation } from "react-i18next";
|
|
11
|
+
import styled from "@emotion/styled";
|
|
12
|
+
import { colors, fonts, mq, breakpoints } from "@ndla/core";
|
|
13
|
+
import SafeLink from "@ndla/safelink";
|
|
14
|
+
import Tabs from "@ndla/tabs";
|
|
15
|
+
import ContentLoader from "../ContentLoader";
|
|
16
|
+
import { ToggleItem } from "../Filter";
|
|
17
|
+
import { MessageBox } from "../Messages";
|
|
18
18
|
|
|
19
19
|
const StyledWrapper = styled.nav`
|
|
20
20
|
margin: 32px 0 0;
|
|
@@ -44,7 +44,7 @@ const StyledLetterItem = styled.span<{ subjectViewType?: string }>`
|
|
|
44
44
|
font-weight: ${fonts.weight.bold};
|
|
45
45
|
color: ${colors.brand.primary};
|
|
46
46
|
margin-bottom: 8px;
|
|
47
|
-
${(props) => props.subjectViewType ===
|
|
47
|
+
${(props) => props.subjectViewType === "checkbox" && `margin-left:37px;`}
|
|
48
48
|
`;
|
|
49
49
|
|
|
50
50
|
const StyledSpacingElement = styled.span`
|
|
@@ -76,7 +76,7 @@ type categoryProps = {
|
|
|
76
76
|
|
|
77
77
|
export type subjectsProps = {
|
|
78
78
|
categories: categoryProps[];
|
|
79
|
-
subjectViewType?:
|
|
79
|
+
subjectViewType?: "link" | "checkbox";
|
|
80
80
|
onToggleSubject?: (id: string) => void;
|
|
81
81
|
onNavigate?: () => void;
|
|
82
82
|
selectedSubjects?: string[];
|
|
@@ -87,10 +87,10 @@ type letterCategories = {
|
|
|
87
87
|
items: subjectProps[];
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
-
const sortAlphabetically = (subjects: subjectProps[], locale: string =
|
|
90
|
+
const sortAlphabetically = (subjects: subjectProps[], locale: string = "nb") => {
|
|
91
91
|
const subjectsSorted = subjects.sort((a, b) => a.name.localeCompare(b.name, locale));
|
|
92
92
|
const subjectsLetterCategories: letterCategories[] = [];
|
|
93
|
-
let previousLetter =
|
|
93
|
+
let previousLetter = "";
|
|
94
94
|
let letterItems: subjectProps[] = [];
|
|
95
95
|
subjectsSorted.forEach((subject: subjectProps) => {
|
|
96
96
|
const currentLetter = subject.name.substr(0, 1);
|
|
@@ -118,9 +118,9 @@ const sortAlphabetically = (subjects: subjectProps[], locale: string = 'nb') =>
|
|
|
118
118
|
const renderList = (
|
|
119
119
|
subjects: subjectProps[],
|
|
120
120
|
onNavigate?: () => void,
|
|
121
|
-
onToggleSubject?: subjectsProps[
|
|
122
|
-
subjectViewType?: subjectsProps[
|
|
123
|
-
selectedSubjects: subjectsProps[
|
|
121
|
+
onToggleSubject?: subjectsProps["onToggleSubject"],
|
|
122
|
+
subjectViewType?: subjectsProps["subjectViewType"],
|
|
123
|
+
selectedSubjects: subjectsProps["selectedSubjects"] = [],
|
|
124
124
|
) => (
|
|
125
125
|
<StyledList>
|
|
126
126
|
{sortAlphabetically(subjects).map((letter: any) => {
|
|
@@ -130,7 +130,7 @@ const renderList = (
|
|
|
130
130
|
<Fragment key={subject.name}>
|
|
131
131
|
<StyledListItem>
|
|
132
132
|
{index === 0 && <StyledLetterItem subjectViewType={subjectViewType}>{letter.letter}</StyledLetterItem>}
|
|
133
|
-
{subjectViewType ===
|
|
133
|
+
{subjectViewType === "checkbox" && subject.id ? (
|
|
134
134
|
<ToggleItem
|
|
135
135
|
id={subject.id}
|
|
136
136
|
value={subject.id}
|
|
@@ -151,7 +151,7 @@ const renderList = (
|
|
|
151
151
|
onNavigate();
|
|
152
152
|
}
|
|
153
153
|
}}
|
|
154
|
-
to={subject.path ||
|
|
154
|
+
to={subject.path || ""}
|
|
155
155
|
>
|
|
156
156
|
{subject.name}
|
|
157
157
|
</SafeLink>
|
|
@@ -216,8 +216,8 @@ const FrontpageAllSubjects = ({
|
|
|
216
216
|
});
|
|
217
217
|
|
|
218
218
|
data.push({
|
|
219
|
-
title: t(
|
|
220
|
-
id:
|
|
219
|
+
title: t("frontpageMenu.allsubjects"),
|
|
220
|
+
id: "allsubjects",
|
|
221
221
|
content: renderList(allSubjects, onNavigate, onToggleSubject, subjectViewType, selectedSubjects),
|
|
222
222
|
});
|
|
223
223
|
|
|
@@ -6,24 +6,24 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { CSSProperties, ReactNode, useMemo } from
|
|
10
|
-
import styled from
|
|
11
|
-
import { spacing, spacingUnit } from
|
|
12
|
-
import { Heading, Text } from
|
|
13
|
-
import { ArticleByline } from
|
|
14
|
-
import { useMastheadHeight } from
|
|
15
|
-
import { Article } from
|
|
9
|
+
import { CSSProperties, ReactNode, useMemo } from "react";
|
|
10
|
+
import styled from "@emotion/styled";
|
|
11
|
+
import { spacing, spacingUnit } from "@ndla/core";
|
|
12
|
+
import { Heading, Text } from "@ndla/typography";
|
|
13
|
+
import { ArticleByline } from "../Article";
|
|
14
|
+
import { useMastheadHeight } from "../Masthead";
|
|
15
|
+
import { Article } from "../types";
|
|
16
16
|
|
|
17
17
|
interface Props {
|
|
18
|
-
article: Omit<Article,
|
|
18
|
+
article: Omit<Article, "footNotes">;
|
|
19
19
|
id: string;
|
|
20
20
|
isWide?: boolean;
|
|
21
21
|
licenseBox?: ReactNode;
|
|
22
22
|
lang?: string;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export const FRONTPAGE_ARTICLE_MAX_WIDTH =
|
|
26
|
-
export const WIDE_FRONTPAGE_ARTICLE_MAX_WIDTH =
|
|
25
|
+
export const FRONTPAGE_ARTICLE_MAX_WIDTH = "773px";
|
|
26
|
+
export const WIDE_FRONTPAGE_ARTICLE_MAX_WIDTH = "1100px";
|
|
27
27
|
|
|
28
28
|
const StyledArticle = styled.article`
|
|
29
29
|
width: 100%;
|
|
@@ -31,10 +31,10 @@ const StyledArticle = styled.article`
|
|
|
31
31
|
h2[id] {
|
|
32
32
|
margin-top: ${spacing.large};
|
|
33
33
|
}
|
|
34
|
-
div[data-type=
|
|
34
|
+
div[data-type="campaign-block"] {
|
|
35
35
|
margin: ${spacing.large} 0px;
|
|
36
36
|
}
|
|
37
|
-
div[data-type=
|
|
37
|
+
div[data-type="grid"] {
|
|
38
38
|
h2,
|
|
39
39
|
h3,
|
|
40
40
|
h4 {
|
|
@@ -42,16 +42,16 @@ const StyledArticle = styled.article`
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
div[data-type=
|
|
45
|
+
div[data-type="grid"] + div[data-type="grid"] {
|
|
46
46
|
margin-top: ${spacing.xxlarge};
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
&[data-wide=
|
|
49
|
+
&[data-wide="true"] {
|
|
50
50
|
max-width: 1100px;
|
|
51
51
|
h2[id] {
|
|
52
52
|
margin-top: ${spacing.xxlarge};
|
|
53
53
|
}
|
|
54
|
-
div[data-type=
|
|
54
|
+
div[data-type="campaign-block"] {
|
|
55
55
|
margin: ${spacing.xxlarge} 0px;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -59,7 +59,7 @@ const StyledArticle = styled.article`
|
|
|
59
59
|
|
|
60
60
|
export const FrontpageArticle = ({ article, id, isWide, licenseBox, lang }: Props) => {
|
|
61
61
|
const { height = 0 } = useMastheadHeight();
|
|
62
|
-
const cssVars = useMemo(() => ({
|
|
62
|
+
const cssVars = useMemo(() => ({ "--masthead-height": `${height}px` }) as unknown as CSSProperties, [height]);
|
|
63
63
|
const { title, introduction, content } = article;
|
|
64
64
|
|
|
65
65
|
if (isWide) {
|
|
@@ -79,7 +79,7 @@ export const FrontpageArticle = ({ article, id, isWide, licenseBox, lang }: Prop
|
|
|
79
79
|
{introduction}
|
|
80
80
|
</Text>
|
|
81
81
|
{content}
|
|
82
|
-
<ArticleByline accordionHeaderVariant={
|
|
82
|
+
<ArticleByline accordionHeaderVariant={"white"} licenseBox={licenseBox} displayByline={false} />
|
|
83
83
|
</StyledArticle>
|
|
84
84
|
);
|
|
85
85
|
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import FrontpageArticle, { FRONTPAGE_ARTICLE_MAX_WIDTH, WIDE_FRONTPAGE_ARTICLE_MAX_WIDTH } from
|
|
9
|
+
import FrontpageArticle, { FRONTPAGE_ARTICLE_MAX_WIDTH, WIDE_FRONTPAGE_ARTICLE_MAX_WIDTH } from "./FrontpageArticle";
|
|
10
10
|
|
|
11
11
|
export { FRONTPAGE_ARTICLE_MAX_WIDTH, WIDE_FRONTPAGE_ARTICLE_MAX_WIDTH };
|
|
12
12
|
|
|
@@ -6,58 +6,58 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { Meta, StoryObj, StoryFn } from
|
|
10
|
-
import Gloss from
|
|
11
|
-
import { defaultParameters } from
|
|
12
|
-
import { wordClass } from
|
|
9
|
+
import { Meta, StoryObj, StoryFn } from "@storybook/react";
|
|
10
|
+
import Gloss from "./Gloss";
|
|
11
|
+
import { defaultParameters } from "../../../../stories/defaults";
|
|
12
|
+
import { wordClass } from "../model/WordClass";
|
|
13
13
|
|
|
14
14
|
const meta: Meta<typeof Gloss> = {
|
|
15
|
-
title:
|
|
15
|
+
title: "Components/Gloss",
|
|
16
16
|
component: Gloss,
|
|
17
|
-
tags: [
|
|
17
|
+
tags: ["autodocs"],
|
|
18
18
|
parameters: {
|
|
19
19
|
...defaultParameters,
|
|
20
20
|
},
|
|
21
21
|
args: {
|
|
22
22
|
title: {
|
|
23
|
-
title:
|
|
24
|
-
language:
|
|
23
|
+
title: "Å angripe",
|
|
24
|
+
language: "nb",
|
|
25
25
|
},
|
|
26
26
|
glossData: {
|
|
27
|
-
gloss:
|
|
27
|
+
gloss: "angreifen",
|
|
28
28
|
wordClass: wordClass.verb,
|
|
29
|
-
originalLanguage:
|
|
29
|
+
originalLanguage: "de",
|
|
30
30
|
transcriptions: {},
|
|
31
31
|
examples: [
|
|
32
32
|
[
|
|
33
33
|
{
|
|
34
|
-
example:
|
|
35
|
-
language:
|
|
34
|
+
example: "Hitler greift die Sowjetunion an",
|
|
35
|
+
language: "de",
|
|
36
36
|
transcriptions: {},
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
example:
|
|
40
|
-
language:
|
|
39
|
+
example: "Hitler angriper Sovjetunionen",
|
|
40
|
+
language: "nb",
|
|
41
41
|
transcriptions: {},
|
|
42
42
|
},
|
|
43
43
|
],
|
|
44
44
|
[
|
|
45
45
|
{
|
|
46
|
-
example:
|
|
47
|
-
language:
|
|
46
|
+
example: "Ich greife an",
|
|
47
|
+
language: "de",
|
|
48
48
|
transcriptions: {},
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
example:
|
|
52
|
-
language:
|
|
51
|
+
example: "Jeg griper an",
|
|
52
|
+
language: "nb",
|
|
53
53
|
transcriptions: {},
|
|
54
54
|
},
|
|
55
55
|
],
|
|
56
56
|
],
|
|
57
57
|
},
|
|
58
58
|
audio: {
|
|
59
|
-
title:
|
|
60
|
-
src:
|
|
59
|
+
title: "",
|
|
60
|
+
src: "",
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
};
|
|
@@ -71,37 +71,37 @@ export const GlossStory: StoryFn<typeof Gloss> = ({ ...args }) => {
|
|
|
71
71
|
export const GlossChineseStory: StoryObj<typeof Gloss> = {
|
|
72
72
|
args: {
|
|
73
73
|
title: {
|
|
74
|
-
title:
|
|
75
|
-
language:
|
|
74
|
+
title: "Ma Hong",
|
|
75
|
+
language: "nb",
|
|
76
76
|
},
|
|
77
77
|
glossData: {
|
|
78
|
-
gloss:
|
|
78
|
+
gloss: "马红",
|
|
79
79
|
wordClass: wordClass.properNoun,
|
|
80
|
-
originalLanguage:
|
|
80
|
+
originalLanguage: "zh",
|
|
81
81
|
transcriptions: {
|
|
82
|
-
traditional:
|
|
83
|
-
pinyin:
|
|
82
|
+
traditional: "(馬紅)",
|
|
83
|
+
pinyin: "Mǎ Hóng",
|
|
84
84
|
},
|
|
85
85
|
examples: [
|
|
86
86
|
[
|
|
87
87
|
{
|
|
88
|
-
example:
|
|
89
|
-
language:
|
|
88
|
+
example: "我叫马红",
|
|
89
|
+
language: "zh",
|
|
90
90
|
transcriptions: {
|
|
91
|
-
pinyin:
|
|
91
|
+
pinyin: "wo jiao ma hong",
|
|
92
92
|
},
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
|
-
example:
|
|
96
|
-
language:
|
|
95
|
+
example: "Jeg heter ma hong",
|
|
96
|
+
language: "nb",
|
|
97
97
|
transcriptions: {},
|
|
98
98
|
},
|
|
99
99
|
],
|
|
100
100
|
],
|
|
101
101
|
},
|
|
102
102
|
audio: {
|
|
103
|
-
title:
|
|
104
|
-
src:
|
|
103
|
+
title: "Spill av lyd",
|
|
104
|
+
src: "https://api.staging.ndla.no/audio/files/shu3jia4.mp3",
|
|
105
105
|
},
|
|
106
106
|
},
|
|
107
107
|
};
|
package/src/Gloss/Gloss.tsx
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { useMemo } from
|
|
10
|
-
import { useTranslation } from
|
|
11
|
-
import styled from
|
|
12
|
-
import { AccordionRoot, AccordionItem, AccordionHeader, AccordionContent } from
|
|
13
|
-
import { colors, spacing, misc, fonts } from
|
|
14
|
-
import { IGlossData, IGlossExample } from
|
|
15
|
-
import GlossExample from
|
|
16
|
-
import SpeechControl from
|
|
9
|
+
import { useMemo } from "react";
|
|
10
|
+
import { useTranslation } from "react-i18next";
|
|
11
|
+
import styled from "@emotion/styled";
|
|
12
|
+
import { AccordionRoot, AccordionItem, AccordionHeader, AccordionContent } from "@ndla/accordion";
|
|
13
|
+
import { colors, spacing, misc, fonts } from "@ndla/core";
|
|
14
|
+
import { IGlossData, IGlossExample } from "@ndla/types-backend/concept-api";
|
|
15
|
+
import GlossExample from "./GlossExample";
|
|
16
|
+
import SpeechControl from "../AudioPlayer/SpeechControl";
|
|
17
17
|
|
|
18
18
|
export interface Props {
|
|
19
19
|
title: {
|
|
@@ -53,7 +53,7 @@ const GlossContainer = styled.div`
|
|
|
53
53
|
flex-wrap: wrap;
|
|
54
54
|
gap: ${spacing.nsmall};
|
|
55
55
|
span {
|
|
56
|
-
${fonts.sizes(
|
|
56
|
+
${fonts.sizes("16px", "24px")};
|
|
57
57
|
}
|
|
58
58
|
span[data-pinyin] {
|
|
59
59
|
font-style: italic;
|
|
@@ -66,7 +66,7 @@ const GlossSpan = styled.span`
|
|
|
66
66
|
|
|
67
67
|
const StyledAccordionHeader = styled(AccordionHeader)`
|
|
68
68
|
font-family: ${fonts.sans};
|
|
69
|
-
${fonts.sizes(
|
|
69
|
+
${fonts.sizes("16px", "24px")};
|
|
70
70
|
font-weight: ${fonts.weight.semibold};
|
|
71
71
|
background-color: ${colors.background.lightBlue};
|
|
72
72
|
`;
|
|
@@ -81,8 +81,8 @@ const getFilteredExamples = (
|
|
|
81
81
|
exampleLangs: string | undefined,
|
|
82
82
|
): IGlossExample[][] => {
|
|
83
83
|
if (exampleIds !== undefined || exampleLangs !== undefined) {
|
|
84
|
-
const exampleIdsList = exampleIds?.toString()?.split(
|
|
85
|
-
const exampleLangsList = exampleLangs?.split(
|
|
84
|
+
const exampleIdsList = exampleIds?.toString()?.split(",") ?? [];
|
|
85
|
+
const exampleLangsList = exampleLangs?.split(",") ?? [];
|
|
86
86
|
|
|
87
87
|
const filteredExamples =
|
|
88
88
|
glossData?.examples?.map((examples, i) => {
|
|
@@ -113,8 +113,8 @@ const Gloss = ({ title, glossData, audio, exampleIds, exampleLangs }: Props) =>
|
|
|
113
113
|
<GlossSpan lang={glossData.originalLanguage}>{glossData.gloss}</GlossSpan>
|
|
114
114
|
{glossData.transcriptions.traditional && (
|
|
115
115
|
<span
|
|
116
|
-
key={t(
|
|
117
|
-
aria-label={t(
|
|
116
|
+
key={t("gloss.transcriptions.traditional")}
|
|
117
|
+
aria-label={t("gloss.transcriptions.traditional")}
|
|
118
118
|
lang={glossData.originalLanguage}
|
|
119
119
|
>
|
|
120
120
|
{glossData.transcriptions.traditional}
|
|
@@ -123,15 +123,15 @@ const Gloss = ({ title, glossData, audio, exampleIds, exampleLangs }: Props) =>
|
|
|
123
123
|
{glossData.transcriptions.pinyin && (
|
|
124
124
|
<span
|
|
125
125
|
data-pinyin=""
|
|
126
|
-
key={t(
|
|
127
|
-
aria-label={t(
|
|
126
|
+
key={t("gloss.transcriptions.pinyin")}
|
|
127
|
+
aria-label={t("gloss.transcriptions.pinyin")}
|
|
128
128
|
lang={glossData.originalLanguage}
|
|
129
129
|
>
|
|
130
130
|
{glossData.transcriptions.pinyin}
|
|
131
131
|
</span>
|
|
132
132
|
)}
|
|
133
133
|
{glossData.wordClass && (
|
|
134
|
-
<span aria-label={t(
|
|
134
|
+
<span aria-label={t("gloss.wordClass")}>{t(`wordClass.${glossData.wordClass}`).toLowerCase()}</span>
|
|
135
135
|
)}
|
|
136
136
|
</GlossContainer>
|
|
137
137
|
{audio?.src && <SpeechControl src={audio.src} title={audio.title}></SpeechControl>}
|
|
@@ -141,7 +141,7 @@ const Gloss = ({ title, glossData, audio, exampleIds, exampleLangs }: Props) =>
|
|
|
141
141
|
{filteredExamples.length > 0 && (
|
|
142
142
|
<AccordionRoot type="single" collapsible>
|
|
143
143
|
<AccordionItem value="1">
|
|
144
|
-
<StyledAccordionHeader headingLevel="span">{t(
|
|
144
|
+
<StyledAccordionHeader headingLevel="span">{t("gloss.examples")}</StyledAccordionHeader>
|
|
145
145
|
<StyledAccordionContent>
|
|
146
146
|
{filteredExamples.map((examples, index) => (
|
|
147
147
|
<div key={`gloss-example-${index}`}>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import styled from
|
|
10
|
-
import { colors, spacing, fonts } from
|
|
11
|
-
import { IGlossExample } from
|
|
12
|
-
import { Text } from
|
|
9
|
+
import styled from "@emotion/styled";
|
|
10
|
+
import { colors, spacing, fonts } from "@ndla/core";
|
|
11
|
+
import { IGlossExample } from "@ndla/types-backend/concept-api";
|
|
12
|
+
import { Text } from "@ndla/typography";
|
|
13
13
|
|
|
14
14
|
export interface Props {
|
|
15
15
|
example: IGlossExample;
|
|
@@ -19,7 +19,7 @@ export interface Props {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
const StyledGlossExampleWrapper = styled.div`
|
|
22
|
-
&[data-is-standalone=
|
|
22
|
+
&[data-is-standalone="true"] {
|
|
23
23
|
&:first-of-type {
|
|
24
24
|
border-top: 1px solid ${colors.brand.lighter};
|
|
25
25
|
}
|
|
@@ -31,12 +31,12 @@ const StyledGlossExample = styled.div`
|
|
|
31
31
|
border: 1px solid ${colors.brand.lighter};
|
|
32
32
|
border-top: none;
|
|
33
33
|
|
|
34
|
-
&[data-is-first=
|
|
34
|
+
&[data-is-first="true"] {
|
|
35
35
|
background-color: ${colors.background.lightBlue};
|
|
36
36
|
}
|
|
37
37
|
`;
|
|
38
38
|
const StyledText = styled(Text)`
|
|
39
|
-
&[data-is-first=
|
|
39
|
+
&[data-is-first="true"] {
|
|
40
40
|
font-weight: ${fonts.weight.bold};
|
|
41
41
|
color: ${colors.brand.dark};
|
|
42
42
|
}
|
package/src/Gloss/index.tsx
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import styled from
|
|
10
|
-
import { DocsContainer, DocsContainerProps } from
|
|
11
|
-
import { Meta, StoryFn } from
|
|
12
|
-
import { colors } from
|
|
13
|
-
import Grid from
|
|
14
|
-
import { defaultParameters } from
|
|
15
|
-
import { BlogPostStory } from
|
|
16
|
-
import { KeyFigureStory } from
|
|
9
|
+
import styled from "@emotion/styled";
|
|
10
|
+
import { DocsContainer, DocsContainerProps } from "@storybook/addon-docs";
|
|
11
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
12
|
+
import { colors } from "@ndla/core";
|
|
13
|
+
import Grid from "./Grid";
|
|
14
|
+
import { defaultParameters } from "../../../../stories/defaults";
|
|
15
|
+
import { BlogPostStory } from "../BlogPost/BlogPost.stories";
|
|
16
|
+
import { KeyFigureStory } from "../KeyFigure/KeyFigure.stories";
|
|
17
17
|
|
|
18
18
|
const GridWrapper = styled.div`
|
|
19
19
|
.docs-story {
|
|
@@ -28,25 +28,25 @@ const GridDocsContainer = ({ ...props }: DocsContainerProps) => (
|
|
|
28
28
|
);
|
|
29
29
|
|
|
30
30
|
export default {
|
|
31
|
-
title:
|
|
31
|
+
title: "Components/Grid",
|
|
32
32
|
component: Grid,
|
|
33
|
-
tags: [
|
|
33
|
+
tags: ["autodocs"],
|
|
34
34
|
parameters: {
|
|
35
35
|
...defaultParameters,
|
|
36
|
-
layout:
|
|
36
|
+
layout: "centered",
|
|
37
37
|
docs: {
|
|
38
38
|
container: GridDocsContainer,
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
41
|
args: {
|
|
42
|
-
columns:
|
|
43
|
-
border:
|
|
44
|
-
background:
|
|
42
|
+
columns: "2",
|
|
43
|
+
border: "none",
|
|
44
|
+
background: "white",
|
|
45
45
|
},
|
|
46
46
|
} as Meta<typeof Grid>;
|
|
47
47
|
|
|
48
48
|
export const GridKeyPerformanceStory: StoryFn<typeof Grid> = ({ ...args }) => {
|
|
49
|
-
const columns = args.columns ===
|
|
49
|
+
const columns = args.columns === "2x2" ? 4 : parseInt(args.columns);
|
|
50
50
|
const items = new Array(columns).fill(
|
|
51
51
|
<KeyFigureStory
|
|
52
52
|
title={KeyFigureStory.args?.title!}
|
|
@@ -58,7 +58,7 @@ export const GridKeyPerformanceStory: StoryFn<typeof Grid> = ({ ...args }) => {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
export const GridBlogPostStory: StoryFn<typeof Grid> = ({ ...args }) => {
|
|
61
|
-
const columns = args.columns ===
|
|
61
|
+
const columns = args.columns === "2x2" ? 4 : parseInt(args.columns);
|
|
62
62
|
const items = new Array(columns).fill(
|
|
63
63
|
<BlogPostStory
|
|
64
64
|
metaImage={BlogPostStory.args?.metaImage!}
|
package/src/Grid/Grid.tsx
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { HTMLAttributes, ReactNode } from
|
|
10
|
-
import styled from
|
|
11
|
-
import { breakpoints, colors, misc, mq, spacing } from
|
|
9
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
10
|
+
import styled from "@emotion/styled";
|
|
11
|
+
import { breakpoints, colors, misc, mq, spacing } from "@ndla/core";
|
|
12
12
|
|
|
13
13
|
export interface GridProps {
|
|
14
|
-
columns:
|
|
15
|
-
border?:
|
|
16
|
-
background?:
|
|
14
|
+
columns: "2" | "4" | "2x2";
|
|
15
|
+
border?: "none" | "lightBlue";
|
|
16
|
+
background?: "transparent" | "white";
|
|
17
17
|
size?: boolean;
|
|
18
18
|
children?: ReactNode[];
|
|
19
19
|
}
|
|
@@ -26,9 +26,9 @@ const GridContainer = styled.div`
|
|
|
26
26
|
grid-gap: ${spacing.normal};
|
|
27
27
|
|
|
28
28
|
${mq.range({ until: breakpoints.tabletWide })} {
|
|
29
|
-
&[data-columns=
|
|
30
|
-
&[data-columns=
|
|
31
|
-
&[data-columns=
|
|
29
|
+
&[data-columns="2x2"],
|
|
30
|
+
&[data-columns="3"],
|
|
31
|
+
&[data-columns="4"] {
|
|
32
32
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -46,23 +46,23 @@ const GridContainer = styled.div`
|
|
|
46
46
|
${mq.range({ from: breakpoints.tabletWide })} {
|
|
47
47
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
48
48
|
|
|
49
|
-
&[data-columns=
|
|
49
|
+
&[data-columns="3"] {
|
|
50
50
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
&[data-columns=
|
|
53
|
+
&[data-columns="4"] {
|
|
54
54
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
&[data-frontpage=
|
|
58
|
+
&[data-frontpage="true"] {
|
|
59
59
|
grid-gap: ${spacing.large};
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
&[data-border=
|
|
62
|
+
&[data-border="lightBlue"] {
|
|
63
63
|
border: 1px solid ${colors.brand.lighter};
|
|
64
64
|
}
|
|
65
|
-
&[data-background=
|
|
65
|
+
&[data-background="white"] {
|
|
66
66
|
background-color: ${colors.white};
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -72,7 +72,7 @@ const GridContainer = styled.div`
|
|
|
72
72
|
`;
|
|
73
73
|
|
|
74
74
|
const Grid = ({ columns, border, children, background, size, ...rest }: GridProps) => {
|
|
75
|
-
const amountOfColumns = children?.length === 3 ?
|
|
75
|
+
const amountOfColumns = children?.length === 3 ? "3" : columns;
|
|
76
76
|
|
|
77
77
|
return (
|
|
78
78
|
<GridContainer
|
package/src/Grid/index.ts
CHANGED
|
@@ -6,25 +6,25 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import styled from
|
|
10
|
-
import { Meta, StoryFn } from
|
|
11
|
-
import { Hero } from
|
|
12
|
-
import { defaultParameters } from
|
|
9
|
+
import styled from "@emotion/styled";
|
|
10
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
11
|
+
import { Hero } from "./Hero";
|
|
12
|
+
import { defaultParameters } from "../../../../stories/defaults";
|
|
13
13
|
|
|
14
14
|
const StyledDiv = styled.div`
|
|
15
15
|
width: 1000px;
|
|
16
16
|
`;
|
|
17
17
|
|
|
18
18
|
export default {
|
|
19
|
-
title:
|
|
19
|
+
title: "Components/Hero",
|
|
20
20
|
component: Hero,
|
|
21
|
-
tags: [
|
|
21
|
+
tags: ["autodocs"],
|
|
22
22
|
parameters: {
|
|
23
23
|
...defaultParameters,
|
|
24
|
-
layout:
|
|
24
|
+
layout: "centered",
|
|
25
25
|
},
|
|
26
26
|
args: {
|
|
27
|
-
contentType:
|
|
27
|
+
contentType: "assessment-resources",
|
|
28
28
|
},
|
|
29
29
|
} as Meta<typeof Hero>;
|
|
30
30
|
|
|
@@ -34,4 +34,4 @@ export const HeroStory: StoryFn<typeof Hero> = ({ ...args }) => (
|
|
|
34
34
|
</Hero>
|
|
35
35
|
);
|
|
36
36
|
|
|
37
|
-
HeroStory.storyName =
|
|
37
|
+
HeroStory.storyName = "Hero";
|