@ndla/ui 50.7.3 → 50.8.1
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 +7 -7
- 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 +13 -13
- 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 +17 -17
- 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 +17 -17
- 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 +11 -11
- 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 +27 -27
- 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 +26 -26
- 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 +19 -10
- 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 +16 -16
- 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 -4
- 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 +19 -19
- 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 +40 -46
- 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 +16 -16
- 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 +37 -37
- 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 +18 -18
- package/es/SearchTypeResult/PopupFilter.js +24 -24
- 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 +29 -29
- package/es/SearchTypeResult/SearchItem.js +22 -34
- 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 +26 -26
- 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 +15 -15
- 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 +4 -4
- 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 +8 -8
- 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 +5 -5
- package/lib/CampaignBlock/CampaignBlock.js +12 -12
- 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 +12 -12
- 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 +8 -8
- 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 +19 -19
- 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 +18 -18
- 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 +15 -8
- 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 +10 -10
- 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 +4 -2
- package/lib/List/OrderedList.js +6 -3
- 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 +12 -12
- 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 +31 -37
- 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 +14 -14
- 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 +29 -29
- 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 +12 -12
- package/lib/SearchTypeResult/PopupFilter.d.ts +2 -2
- package/lib/SearchTypeResult/PopupFilter.js +17 -17
- 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 +21 -21
- package/lib/SearchTypeResult/SearchItem.d.ts +4 -4
- package/lib/SearchTypeResult/SearchItem.js +14 -26
- 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 +19 -19
- 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 +11 -11
- 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 +7 -7
- package/src/Article/ArticleNotions.tsx +10 -10
- package/src/Article/component.article.scss +2 -2
- 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 +8 -9
- 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 +18 -18
- 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 -12
- 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 +4 -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 -36
- 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 -8
- 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 +17 -18
- 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 +23 -23
- 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 +10 -11
- 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 +12 -13
- 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 -5
- package/src/LinkBlock/index.ts +2 -2
- package/src/List/OrderedList.stories.tsx +32 -9
- package/src/List/OrderedList.tsx +88 -58
- package/src/List/UnOrderedList.tsx +8 -12
- package/src/List/UnorderedList.stories.tsx +27 -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 +24 -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 +34 -42
- 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 +14 -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 +23 -21
- 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 -12
- 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 +14 -14
- package/src/Search/ContentTypeResult.tsx +16 -16
- package/src/Search/ContentTypeResultStyles.tsx +5 -6
- 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 +36 -37
- package/src/Search/SearchResultSleeve.tsx +32 -32
- package/src/Search/__tests__/Highlight-test.js +20 -20
- package/src/Search/component.search-result.scss +0 -1
- package/src/Search/index.ts +3 -3
- package/src/SearchTypeResult/ActiveFilterContent.tsx +7 -7
- package/src/SearchTypeResult/ActiveFilters.tsx +15 -16
- package/src/SearchTypeResult/PopupFilter.tsx +17 -17
- 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 +23 -24
- package/src/SearchTypeResult/SearchItem.tsx +17 -21
- package/src/SearchTypeResult/SearchItemList.tsx +14 -14
- package/src/SearchTypeResult/SearchItems.tsx +13 -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 +25 -18
- 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 -11
- 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 +23 -23
- 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 -15
- 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,14 +6,14 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { Meta, StoryObj } from
|
|
10
|
-
import CampaignBlock from
|
|
11
|
-
import { defaultParameters } from
|
|
9
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
10
|
+
import CampaignBlock from "./CampaignBlock";
|
|
11
|
+
import { defaultParameters } from "../../../../stories/defaults";
|
|
12
12
|
|
|
13
13
|
export default {
|
|
14
|
-
title:
|
|
14
|
+
title: "Components/Campaign Block",
|
|
15
15
|
component: CampaignBlock,
|
|
16
|
-
tags: [
|
|
16
|
+
tags: ["autodocs"],
|
|
17
17
|
parameters: {
|
|
18
18
|
...defaultParameters,
|
|
19
19
|
},
|
|
@@ -22,38 +22,38 @@ export default {
|
|
|
22
22
|
|
|
23
23
|
export const ImageLeft: StoryObj<typeof CampaignBlock> = {
|
|
24
24
|
args: {
|
|
25
|
-
title: { title:
|
|
25
|
+
title: { title: "NDLA film", language: "nb-no" },
|
|
26
26
|
description: {
|
|
27
|
-
text:
|
|
28
|
-
language:
|
|
27
|
+
text: "NDLA film er en tjeneste i samarbeid med Norgesfilm. Denne tjenesten lar deg se en rekke spillefilmer, kortfilmer, dokumentarer og serier. Du kan også se undervisningsfilm og filmklipp. Velkommen inn i filmens verden!",
|
|
28
|
+
language: "nb-no",
|
|
29
29
|
},
|
|
30
|
-
headingLevel:
|
|
30
|
+
headingLevel: "h2",
|
|
31
31
|
url: {
|
|
32
|
-
url:
|
|
33
|
-
text:
|
|
32
|
+
url: "#",
|
|
33
|
+
text: "Gå til NDLA film",
|
|
34
34
|
},
|
|
35
35
|
image: {
|
|
36
|
-
alt:
|
|
37
|
-
src:
|
|
36
|
+
alt: "",
|
|
37
|
+
src: "https://api.test.ndla.no/image-api/raw/n2UYRxEG.png",
|
|
38
38
|
},
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
export const ImageRight: StoryObj<typeof CampaignBlock> = {
|
|
43
43
|
args: {
|
|
44
|
-
title: { title:
|
|
44
|
+
title: { title: "FN-dagen 24. oktober!", language: "nb-no" },
|
|
45
45
|
description: {
|
|
46
|
-
text:
|
|
47
|
-
language:
|
|
46
|
+
text: " Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation quis nostrud exercitation ",
|
|
47
|
+
language: "nb-no",
|
|
48
48
|
},
|
|
49
49
|
url: {
|
|
50
|
-
url:
|
|
51
|
-
text:
|
|
50
|
+
url: "#",
|
|
51
|
+
text: "Les mer om FN-dagen",
|
|
52
52
|
},
|
|
53
53
|
image: {
|
|
54
|
-
alt:
|
|
55
|
-
src:
|
|
54
|
+
alt: "FN-symbol",
|
|
55
|
+
src: "https://api.test.ndla.no/image-api/raw/LkmDGtip.png",
|
|
56
56
|
},
|
|
57
|
-
imageSide:
|
|
57
|
+
imageSide: "right",
|
|
58
58
|
},
|
|
59
59
|
};
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { css } from
|
|
10
|
-
import styled from
|
|
11
|
-
import { breakpoints, colors, fonts, spacing, mq, misc } from
|
|
12
|
-
import { Forward } from
|
|
13
|
-
import SafeLink from
|
|
14
|
-
import { HeadingLevel } from
|
|
15
|
-
import { getPossiblyRelativeUrl } from
|
|
9
|
+
import { css } from "@emotion/react";
|
|
10
|
+
import styled from "@emotion/styled";
|
|
11
|
+
import { breakpoints, colors, fonts, spacing, mq, misc } from "@ndla/core";
|
|
12
|
+
import { Forward } from "@ndla/icons/common";
|
|
13
|
+
import SafeLink from "@ndla/safelink";
|
|
14
|
+
import { HeadingLevel } from "@ndla/typography";
|
|
15
|
+
import { getPossiblyRelativeUrl } from "../utils/relativeUrl";
|
|
16
16
|
|
|
17
17
|
interface Image {
|
|
18
18
|
src: string;
|
|
@@ -29,12 +29,12 @@ interface Props {
|
|
|
29
29
|
language: string;
|
|
30
30
|
};
|
|
31
31
|
headingLevel?: HeadingLevel;
|
|
32
|
-
url
|
|
33
|
-
url
|
|
34
|
-
text
|
|
32
|
+
url: {
|
|
33
|
+
url?: string;
|
|
34
|
+
text?: string;
|
|
35
35
|
};
|
|
36
36
|
image?: Image;
|
|
37
|
-
imageSide?:
|
|
37
|
+
imageSide?: "left" | "right";
|
|
38
38
|
className?: string;
|
|
39
39
|
path?: string;
|
|
40
40
|
}
|
|
@@ -47,13 +47,13 @@ const Container = styled.div`
|
|
|
47
47
|
border-radius: ${misc.borderRadius};
|
|
48
48
|
padding: ${spacing.normal};
|
|
49
49
|
background-color: ${colors.white};
|
|
50
|
-
&[data-image-side=
|
|
50
|
+
&[data-image-side="right"] {
|
|
51
51
|
flex-direction: column-reverse;
|
|
52
52
|
}
|
|
53
53
|
${mq.range({ from: breakpoints.tabletWide })} {
|
|
54
54
|
max-width: 1100px;
|
|
55
55
|
flex-direction: row;
|
|
56
|
-
&[data-image-side=
|
|
56
|
+
&[data-image-side="right"] {
|
|
57
57
|
flex-direction: row-reverse;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -87,9 +87,9 @@ const TextWrapper = styled.div`
|
|
|
87
87
|
const CampaignBlock = ({
|
|
88
88
|
title,
|
|
89
89
|
image,
|
|
90
|
-
imageSide =
|
|
90
|
+
imageSide = "left",
|
|
91
91
|
description,
|
|
92
|
-
headingLevel: Heading =
|
|
92
|
+
headingLevel: Heading = "h2",
|
|
93
93
|
url,
|
|
94
94
|
path,
|
|
95
95
|
className,
|
|
@@ -98,13 +98,13 @@ const CampaignBlock = ({
|
|
|
98
98
|
<Container className={className} data-type="campaign-block" data-image-side={imageSide}>
|
|
99
99
|
{image && <StyledImg src={image.src} height={200} width={240} alt={image.alt} />}
|
|
100
100
|
<TextWrapper>
|
|
101
|
-
<Heading css={headingStyle} lang={title.language ===
|
|
101
|
+
<Heading css={headingStyle} lang={title.language === "nb" ? "no" : title.language}>
|
|
102
102
|
{title.title}
|
|
103
103
|
</Heading>
|
|
104
|
-
<StyledDescription lang={description.language ===
|
|
104
|
+
<StyledDescription lang={description.language === "nb" ? "no" : description.language}>
|
|
105
105
|
{description.text}
|
|
106
106
|
</StyledDescription>
|
|
107
|
-
{url && (
|
|
107
|
+
{url.url && (
|
|
108
108
|
<StyledLink to={getPossiblyRelativeUrl(url.url, path)}>
|
|
109
109
|
{url.text}
|
|
110
110
|
<Forward />
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { useTranslation } from
|
|
10
|
-
import SearchButton from
|
|
11
|
-
import { GoalItem, GoalList, GoalText, GoalsHeading, ListItemContent } from
|
|
12
|
-
import { CompetenceGoalsItemType } from
|
|
9
|
+
import { useTranslation } from "react-i18next";
|
|
10
|
+
import SearchButton from "./SearchButton";
|
|
11
|
+
import { GoalItem, GoalList, GoalText, GoalsHeading, ListItemContent } from "./styles";
|
|
12
|
+
import { CompetenceGoalsItemType } from "../types";
|
|
13
13
|
|
|
14
14
|
const CompetenceGoalItem = ({ title, goals, isOembed }: CompetenceGoalsItemType) => {
|
|
15
15
|
const { t } = useTranslation();
|
|
@@ -25,7 +25,7 @@ const CompetenceGoalItem = ({ title, goals, isOembed }: CompetenceGoalsItemType)
|
|
|
25
25
|
<SearchButton
|
|
26
26
|
url={goal.url}
|
|
27
27
|
isOembed={isOembed}
|
|
28
|
-
searchText={t(
|
|
28
|
+
searchText={t("competenceGoals.competenceGoalResourceSearchText", { code: goal.id })}
|
|
29
29
|
/>
|
|
30
30
|
)}
|
|
31
31
|
</ListItemContent>
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { useState } from
|
|
10
|
-
import { useTranslation } from
|
|
11
|
-
import styled from
|
|
12
|
-
import { ButtonV2 } from
|
|
13
|
-
import { spacing } from
|
|
14
|
-
import { BY, CC } from
|
|
15
|
-
import { LicenseByline } from
|
|
16
|
-
import SafeLink from
|
|
17
|
-
import Tooltip from
|
|
18
|
-
import CompetenceItem, { ListItemProp } from
|
|
9
|
+
import { useState } from "react";
|
|
10
|
+
import { useTranslation } from "react-i18next";
|
|
11
|
+
import styled from "@emotion/styled";
|
|
12
|
+
import { ButtonV2 } from "@ndla/button";
|
|
13
|
+
import { spacing } from "@ndla/core";
|
|
14
|
+
import { BY, CC } from "@ndla/licenses";
|
|
15
|
+
import { LicenseByline } from "@ndla/notion";
|
|
16
|
+
import SafeLink from "@ndla/safelink";
|
|
17
|
+
import Tooltip from "@ndla/tooltip";
|
|
18
|
+
import CompetenceItem, { ListItemProp } from "./CompetenceItem";
|
|
19
19
|
|
|
20
20
|
type CompetenceProps = {
|
|
21
21
|
list: ListItemProp[];
|
|
@@ -47,16 +47,16 @@ const CompetenceGoalTab = ({ list, isOembed }: CompetenceProps) => {
|
|
|
47
47
|
return (
|
|
48
48
|
<Tooltip
|
|
49
49
|
tooltip={
|
|
50
|
-
type ===
|
|
51
|
-
? t(
|
|
52
|
-
: t(
|
|
50
|
+
type === "coreElement"
|
|
51
|
+
? t("competenceGoals.competenceTabCoreTooltip")
|
|
52
|
+
: t("competenceGoals.showCompetenceGoals")
|
|
53
53
|
}
|
|
54
54
|
key={`tabitem-${id}`}
|
|
55
55
|
>
|
|
56
56
|
<ButtonV2
|
|
57
57
|
shape="pill"
|
|
58
58
|
aria-current={id === currentTabItem.id}
|
|
59
|
-
colorTheme={id !== currentTabItem.id ?
|
|
59
|
+
colorTheme={id !== currentTabItem.id ? "lighter" : undefined}
|
|
60
60
|
onClick={() => setCurrentTab(list[index])}
|
|
61
61
|
>
|
|
62
62
|
{tabTitle}
|
|
@@ -70,11 +70,11 @@ const CompetenceGoalTab = ({ list, isOembed }: CompetenceProps) => {
|
|
|
70
70
|
<LicenseByline licenseRights={[CC, BY]}>
|
|
71
71
|
<LicenseIconsTextWrapper>UDIR</LicenseIconsTextWrapper>
|
|
72
72
|
</LicenseByline>
|
|
73
|
-
{`${t(
|
|
73
|
+
{`${t("competenceGoals.licenseData")} `}
|
|
74
74
|
<SafeLink to="https://data.norge.no/nlod/no" target="_blank">
|
|
75
75
|
NLOD
|
|
76
76
|
</SafeLink>
|
|
77
|
-
{`, ${t(
|
|
77
|
+
{`, ${t("competenceGoals.licenseFrom")} `}
|
|
78
78
|
<SafeLink to="https://data.udir.no/" target="_blank">
|
|
79
79
|
data.udir.no
|
|
80
80
|
</SafeLink>
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { useTranslation } from
|
|
10
|
-
import styled from
|
|
11
|
-
import { colors, spacing } from
|
|
12
|
-
import { MenuBook } from
|
|
13
|
-
import CompetenceGoalItem from
|
|
14
|
-
import CoreElementItem from
|
|
15
|
-
import { CompetenceGoalsItemType, CoreElementsItemType } from
|
|
9
|
+
import { useTranslation } from "react-i18next";
|
|
10
|
+
import styled from "@emotion/styled";
|
|
11
|
+
import { colors, spacing } from "@ndla/core";
|
|
12
|
+
import { MenuBook } from "@ndla/icons/action";
|
|
13
|
+
import CompetenceGoalItem from "./CompetenceGoalItem";
|
|
14
|
+
import CoreElementItem from "./CoreElementItem";
|
|
15
|
+
import { CompetenceGoalsItemType, CoreElementsItemType } from "../types";
|
|
16
16
|
|
|
17
17
|
const GroupedElementWrapper = styled.div`
|
|
18
18
|
margin: ${spacing.normal} 0 ${spacing.large};
|
|
@@ -36,12 +36,11 @@ const GoalsInfo = styled.p`
|
|
|
36
36
|
`;
|
|
37
37
|
|
|
38
38
|
const GoalList = styled.ul`
|
|
39
|
-
margin: 0;
|
|
40
39
|
padding: 0;
|
|
41
40
|
list-style-type: none;
|
|
42
41
|
`;
|
|
43
42
|
|
|
44
|
-
export type CompetenceTypeProps =
|
|
43
|
+
export type CompetenceTypeProps = "competenceGoals" | "coreElement";
|
|
45
44
|
export type CompetenceGoals = {
|
|
46
45
|
title: string;
|
|
47
46
|
elements: CompetenceGoalsItemType[];
|
|
@@ -67,7 +66,7 @@ const CompetenceItem = ({ item, isOembed }: ListItemProps) => {
|
|
|
67
66
|
const { type, groupedCompetenceGoals, groupedCoreElementItems } = item;
|
|
68
67
|
|
|
69
68
|
switch (type) {
|
|
70
|
-
case
|
|
69
|
+
case "competenceGoals":
|
|
71
70
|
return (
|
|
72
71
|
<>
|
|
73
72
|
{groupedCompetenceGoals?.map((group) => (
|
|
@@ -78,7 +77,7 @@ const CompetenceItem = ({ item, isOembed }: ListItemProps) => {
|
|
|
78
77
|
<MenuBook />
|
|
79
78
|
{group.title}
|
|
80
79
|
</GroupedGoalsTitle>
|
|
81
|
-
<GoalsInfo>{t(
|
|
80
|
+
<GoalsInfo>{t("competenceGoals.competenceGoalTitle")}</GoalsInfo>
|
|
82
81
|
</hgroup>
|
|
83
82
|
</GroupedGoalsTitleWrapper>
|
|
84
83
|
{group.elements.length > 0 && (
|
|
@@ -98,7 +97,7 @@ const CompetenceItem = ({ item, isOembed }: ListItemProps) => {
|
|
|
98
97
|
))}
|
|
99
98
|
</>
|
|
100
99
|
);
|
|
101
|
-
case
|
|
100
|
+
case "coreElement":
|
|
102
101
|
return (
|
|
103
102
|
<>
|
|
104
103
|
{groupedCoreElementItems?.map((group) => (
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { useTranslation } from
|
|
10
|
-
import SearchButton from
|
|
11
|
-
import { GoalItem, GoalList, GoalText, GoalsHeading, ListItemContent } from
|
|
12
|
-
import { CoreElementsItemType } from
|
|
9
|
+
import { useTranslation } from "react-i18next";
|
|
10
|
+
import SearchButton from "./SearchButton";
|
|
11
|
+
import { GoalItem, GoalList, GoalText, GoalsHeading, ListItemContent } from "./styles";
|
|
12
|
+
import { CoreElementsItemType } from "../types";
|
|
13
13
|
|
|
14
14
|
const CoreElementItem = ({ title, text, url, id, isOembed }: CoreElementsItemType) => {
|
|
15
15
|
const { t } = useTranslation();
|
|
@@ -24,7 +24,9 @@ const CoreElementItem = ({ title, text, url, id, isOembed }: CoreElementsItemTyp
|
|
|
24
24
|
<SearchButton
|
|
25
25
|
url={url}
|
|
26
26
|
isOembed={isOembed}
|
|
27
|
-
searchText={t(
|
|
27
|
+
searchText={t("competenceGoals.coreResourceSearchText", {
|
|
28
|
+
code: id,
|
|
29
|
+
})}
|
|
28
30
|
/>
|
|
29
31
|
)}
|
|
30
32
|
</ListItemContent>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import styled from
|
|
10
|
-
import { spacing, mq, breakpoints } from
|
|
11
|
-
import { Search } from
|
|
12
|
-
import { SafeLinkButton } from
|
|
9
|
+
import styled from "@emotion/styled";
|
|
10
|
+
import { spacing, mq, breakpoints } from "@ndla/core";
|
|
11
|
+
import { Search } from "@ndla/icons/common";
|
|
12
|
+
import { SafeLinkButton } from "@ndla/safelink";
|
|
13
13
|
|
|
14
14
|
const StyledSearch = styled(Search)`
|
|
15
15
|
height: ${spacing.normal};
|
|
@@ -40,7 +40,7 @@ interface SearchButtonProps {
|
|
|
40
40
|
const SearchButton = ({ url, isOembed, searchText }: SearchButtonProps) => {
|
|
41
41
|
return (
|
|
42
42
|
<GoalSearchWrapper>
|
|
43
|
-
<SafeLinkButton variant="outline" to={url} target={isOembed ?
|
|
43
|
+
<SafeLinkButton variant="outline" to={url} target={isOembed ? "_blank" : "_self"}>
|
|
44
44
|
<StyledSearch size="normal" />
|
|
45
45
|
<span>{searchText}</span>
|
|
46
46
|
</SafeLinkButton>
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import styled from
|
|
10
|
-
import { breakpoints, colors, fonts, mq, spacing } from
|
|
9
|
+
import styled from "@emotion/styled";
|
|
10
|
+
import { breakpoints, colors, fonts, mq, spacing } from "@ndla/core";
|
|
11
11
|
|
|
12
12
|
export const ListItemContent = styled.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
justify-content: space-between;
|
|
15
|
-
${fonts.sizes(
|
|
15
|
+
${fonts.sizes("22px", "32px")};
|
|
16
16
|
${mq.range({ until: breakpoints.tabletWide })} {
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
}
|
|
@@ -21,6 +21,7 @@ export const ListItemContent = styled.div`
|
|
|
21
21
|
export const GoalItem = styled.li`
|
|
22
22
|
margin: ${spacing.medium} 0;
|
|
23
23
|
border-bottom: 1px solid ${colors.brand.neutral7};
|
|
24
|
+
padding: 0;
|
|
24
25
|
`;
|
|
25
26
|
|
|
26
27
|
export const GoalsHeading = styled.h3`
|
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import concat from
|
|
10
|
-
import { ReactNode } from
|
|
11
|
-
import { useTranslation } from
|
|
12
|
-
import { css } from
|
|
13
|
-
import styled from
|
|
14
|
-
import { spacing, fonts, colors, mq, breakpoints, misc } from
|
|
15
|
-
import { BlobPointy, BlobRound } from
|
|
16
|
-
import { COPYRIGHTED, getLicenseByAbbreviation } from
|
|
17
|
-
import { IImageMetaInformationV3 } from
|
|
18
|
-
import { CanonicalUrlFuncs } from
|
|
19
|
-
import { errorSvgSrc } from
|
|
20
|
-
import Image, { ImageLink } from
|
|
21
|
-
import LicenseLink from
|
|
9
|
+
import concat from "lodash/concat";
|
|
10
|
+
import { ReactNode } from "react";
|
|
11
|
+
import { useTranslation } from "react-i18next";
|
|
12
|
+
import { css } from "@emotion/react";
|
|
13
|
+
import styled from "@emotion/styled";
|
|
14
|
+
import { spacing, fonts, colors, mq, breakpoints, misc } from "@ndla/core";
|
|
15
|
+
import { BlobPointy, BlobRound } from "@ndla/icons/common";
|
|
16
|
+
import { COPYRIGHTED, getLicenseByAbbreviation } from "@ndla/licenses";
|
|
17
|
+
import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api";
|
|
18
|
+
import { CanonicalUrlFuncs } from "../Embed";
|
|
19
|
+
import { errorSvgSrc } from "../Embed/ImageEmbed";
|
|
20
|
+
import Image, { ImageLink } from "../Image";
|
|
21
|
+
import LicenseLink from "../LicenseByline/LicenseLink";
|
|
22
22
|
|
|
23
23
|
const BLOB_WIDTH = 90;
|
|
24
24
|
|
|
@@ -26,14 +26,14 @@ interface Props {
|
|
|
26
26
|
image?: IImageMetaInformationV3;
|
|
27
27
|
jobTitle: string;
|
|
28
28
|
description: string;
|
|
29
|
-
blobColor?:
|
|
30
|
-
blob?:
|
|
29
|
+
blobColor?: "pink" | "green";
|
|
30
|
+
blob?: "pointy" | "round";
|
|
31
31
|
imageWidth?: number;
|
|
32
32
|
name: string;
|
|
33
33
|
email: string;
|
|
34
34
|
embedAlt?: string;
|
|
35
35
|
lang?: string;
|
|
36
|
-
imageCanonicalUrl?: CanonicalUrlFuncs[
|
|
36
|
+
imageCanonicalUrl?: CanonicalUrlFuncs["image"];
|
|
37
37
|
}
|
|
38
38
|
const BlockWrapper = styled.div`
|
|
39
39
|
display: flex;
|
|
@@ -56,7 +56,7 @@ const BlockWrapper = styled.div`
|
|
|
56
56
|
`;
|
|
57
57
|
|
|
58
58
|
const StyledHeader = styled.div`
|
|
59
|
-
${fonts.sizes(
|
|
59
|
+
${fonts.sizes("22px", "30px")};
|
|
60
60
|
font-weight: ${fonts.weight.bold};
|
|
61
61
|
margin: 0 0 ${spacing.xsmall} 0;
|
|
62
62
|
padding-top: ${spacing.medium};
|
|
@@ -64,7 +64,7 @@ const StyledHeader = styled.div`
|
|
|
64
64
|
|
|
65
65
|
const StyledText = styled.div`
|
|
66
66
|
display: flex;
|
|
67
|
-
${fonts.sizes(
|
|
67
|
+
${fonts.sizes("16px", "26px")};
|
|
68
68
|
overflow-wrap: anywhere;
|
|
69
69
|
color: ${colors.text.light};
|
|
70
70
|
gap: ${spacing.xxsmall};
|
|
@@ -109,7 +109,7 @@ const ImageWrapper = styled.div`
|
|
|
109
109
|
display: flex;
|
|
110
110
|
flex-direction: column;
|
|
111
111
|
gap: ${spacing.xsmall};
|
|
112
|
-
${fonts.sizes(
|
|
112
|
+
${fonts.sizes("16px", "26px")};
|
|
113
113
|
padding: ${spacing.medium} ${spacing.medium} 0 0;
|
|
114
114
|
${mq.range({ from: breakpoints.tablet })} {
|
|
115
115
|
padding-right: 0;
|
|
@@ -152,14 +152,14 @@ const ContactBlock = ({
|
|
|
152
152
|
name,
|
|
153
153
|
email,
|
|
154
154
|
embedAlt,
|
|
155
|
-
blobColor =
|
|
156
|
-
blob =
|
|
155
|
+
blobColor = "green",
|
|
156
|
+
blob = "pointy",
|
|
157
157
|
imageCanonicalUrl,
|
|
158
158
|
lang,
|
|
159
159
|
}: Props) => {
|
|
160
160
|
const { t, i18n } = useTranslation();
|
|
161
|
-
const isGreenBlob = blobColor ===
|
|
162
|
-
const Blob = blob ===
|
|
161
|
+
const isGreenBlob = blobColor === "green";
|
|
162
|
+
const Blob = blob === "pointy" ? BlobPointy : BlobRound;
|
|
163
163
|
const authors = concat(image?.copyright.processors, image?.copyright.creators, image?.copyright.rightsholders);
|
|
164
164
|
const license = image?.copyright
|
|
165
165
|
? getLicenseByAbbreviation(image.copyright.license.license, i18n.language)
|
|
@@ -180,12 +180,12 @@ const ContactBlock = ({
|
|
|
180
180
|
/>
|
|
181
181
|
</LinkWrapper>
|
|
182
182
|
<span>
|
|
183
|
-
{`${t(
|
|
183
|
+
{`${t("embed.type.image")}: ${authors.map((author) => `${author?.name}`).join(", ")} `}
|
|
184
184
|
{!!license && <LicenseLink license={license} asLink={!!license.url.length} />}
|
|
185
185
|
</span>
|
|
186
186
|
</>
|
|
187
187
|
) : (
|
|
188
|
-
<img alt={t(
|
|
188
|
+
<img alt={t("image.error.url")} src={errorSvgSrc} />
|
|
189
189
|
)}
|
|
190
190
|
</ImageWrapper>
|
|
191
191
|
<ContentWrapper>
|
|
@@ -194,7 +194,7 @@ const ContactBlock = ({
|
|
|
194
194
|
<StyledHeader lang={lang}>{name}</StyledHeader>
|
|
195
195
|
<StyledText lang={lang}>{jobTitle}</StyledText>
|
|
196
196
|
<StyledText>
|
|
197
|
-
<Email>{`${t(
|
|
197
|
+
<Email>{`${t("email")}:`}</Email>
|
|
198
198
|
<EmailLink href={`mailto:${email}`}>{email}</EmailLink>
|
|
199
199
|
</StyledText>
|
|
200
200
|
</InfoWrapper>
|
|
@@ -6,79 +6,79 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { Meta, StoryFn } from
|
|
10
|
-
import ContactBlock from
|
|
11
|
-
import { defaultParameters } from
|
|
9
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
10
|
+
import ContactBlock from "./ContactBlock";
|
|
11
|
+
import { defaultParameters } from "../../../../stories/defaults";
|
|
12
12
|
|
|
13
13
|
export default {
|
|
14
|
-
title:
|
|
14
|
+
title: "Components/Contact block",
|
|
15
15
|
component: ContactBlock,
|
|
16
|
-
tags: [
|
|
16
|
+
tags: ["autodocs"],
|
|
17
17
|
args: {
|
|
18
18
|
image: {
|
|
19
|
-
id:
|
|
20
|
-
metaUrl:
|
|
19
|
+
id: "65750",
|
|
20
|
+
metaUrl: "https://api.test.ndla.no/image-api/v3/images/65750",
|
|
21
21
|
title: {
|
|
22
|
-
title:
|
|
23
|
-
language:
|
|
22
|
+
title: "Sigurd Trageton",
|
|
23
|
+
language: "nb",
|
|
24
24
|
},
|
|
25
25
|
alttext: {
|
|
26
|
-
alttext:
|
|
27
|
-
language:
|
|
26
|
+
alttext: "Sigurd Trageton",
|
|
27
|
+
language: "nb",
|
|
28
28
|
},
|
|
29
29
|
copyright: {
|
|
30
30
|
license: {
|
|
31
|
-
license:
|
|
32
|
-
description:
|
|
33
|
-
url:
|
|
31
|
+
license: "CC-BY-SA-4.0",
|
|
32
|
+
description: "Creative Commons Attribution-ShareAlike 4.0 International",
|
|
33
|
+
url: "https://creativecommons.org/licenses/by-sa/4.0/",
|
|
34
34
|
},
|
|
35
|
-
origin:
|
|
35
|
+
origin: "",
|
|
36
36
|
creators: [
|
|
37
37
|
{
|
|
38
|
-
type:
|
|
39
|
-
name:
|
|
38
|
+
type: "photographer",
|
|
39
|
+
name: "Tom Knudsen",
|
|
40
40
|
},
|
|
41
41
|
],
|
|
42
42
|
processors: [],
|
|
43
43
|
rightsholders: [
|
|
44
44
|
{
|
|
45
|
-
type:
|
|
46
|
-
name:
|
|
45
|
+
type: "rightsholder",
|
|
46
|
+
name: "NTB",
|
|
47
47
|
},
|
|
48
48
|
],
|
|
49
49
|
processed: false,
|
|
50
50
|
},
|
|
51
51
|
tags: {
|
|
52
|
-
tags: [
|
|
53
|
-
language:
|
|
52
|
+
tags: ["Sigurd", "Trageton", "Portrett"],
|
|
53
|
+
language: "nb",
|
|
54
54
|
},
|
|
55
55
|
caption: {
|
|
56
|
-
caption:
|
|
57
|
-
language:
|
|
56
|
+
caption: "Sigurd Trageton",
|
|
57
|
+
language: "nb",
|
|
58
58
|
},
|
|
59
|
-
supportedLanguages: [
|
|
60
|
-
created:
|
|
61
|
-
createdBy:
|
|
62
|
-
modelRelease:
|
|
59
|
+
supportedLanguages: ["nb", "nn"],
|
|
60
|
+
created: "2023-03-29T07:15:50Z",
|
|
61
|
+
createdBy: "f-jBTU8O8kYbUW20lMeIuTSv",
|
|
62
|
+
modelRelease: "not-set",
|
|
63
63
|
image: {
|
|
64
|
-
fileName:
|
|
64
|
+
fileName: "RVrVQIKh.jpg",
|
|
65
65
|
size: 404340,
|
|
66
|
-
contentType:
|
|
67
|
-
imageUrl:
|
|
66
|
+
contentType: "image/jpeg",
|
|
67
|
+
imageUrl: "https://api.test.ndla.no/image-api/raw/RVrVQIKh.jpg",
|
|
68
68
|
dimensions: {
|
|
69
69
|
width: 1600,
|
|
70
70
|
height: 2000,
|
|
71
71
|
},
|
|
72
|
-
language:
|
|
72
|
+
language: "nb",
|
|
73
73
|
},
|
|
74
74
|
},
|
|
75
|
-
jobTitle:
|
|
75
|
+
jobTitle: "Daglig leder og ansvarlig redaktør, Vestland fylkeskommune",
|
|
76
76
|
description:
|
|
77
|
-
|
|
78
|
-
name:
|
|
79
|
-
email:
|
|
80
|
-
blobColor:
|
|
81
|
-
blob:
|
|
77
|
+
"Sigurd har variert ledererfaring fra utdanningssektoren, både fra videregående skole, nasjonalt senter og fra universitets/høgskolesektoren. Ansvarsområdene dekker bl.a. utdanning/opplæring/studiekvalitet, økonomi, HR, stratgi og IT-utvikling/-drift.",
|
|
78
|
+
name: "Sigurd Trageton",
|
|
79
|
+
email: "sigurd@ndla.no",
|
|
80
|
+
blobColor: "green",
|
|
81
|
+
blob: "pointy",
|
|
82
82
|
},
|
|
83
83
|
parameters: {
|
|
84
84
|
...defaultParameters,
|
|
@@ -89,4 +89,4 @@ export const ContactBlockStory: StoryFn<typeof ContactBlock> = ({ ...args }) =>
|
|
|
89
89
|
return <ContactBlock {...args} />;
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
ContactBlockStory.storyName =
|
|
92
|
+
ContactBlockStory.storyName = "Contact block";
|