@ndla/ui 50.2.2 → 50.4.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/es/Article/Article.js +6 -6
- package/es/Article/ArticleByline.js +8 -8
- package/es/Article/ArticleFootNotes.js +3 -3
- package/es/Article/ArticleNotions.js +5 -5
- package/es/Aside/index.js +8 -0
- package/es/AudioPlayer/AudioPlayer.js +16 -16
- package/es/AudioPlayer/Controls.js +26 -26
- package/es/AudioPlayer/SpeechControl.js +1 -1
- package/es/AudioPlayer/index.js +8 -0
- package/es/BannerCard/BannerCard.js +7 -7
- package/es/BlogPost/BlogPost.js +6 -6
- package/es/Breadcrumb/Breadcrumb.js +3 -3
- package/es/Breadcrumb/BreadcrumbItem.js +8 -8
- package/es/CampaignBlock/CampaignBlock.js +8 -8
- package/es/CompetenceGoalTab/CompetenceGoalTab.js +4 -4
- package/es/CompetenceGoalTab/CompetenceItem.js +7 -7
- package/es/CompetenceGoalTab/index.js +8 -0
- package/es/ContactBlock/ContactBlock.js +14 -14
- package/es/ContentTypeBadge/ContentTypeBadge.js +9 -1
- package/es/ContentTypeBadge/index.js +8 -0
- package/es/CopyParagraphButton/CopyParagraphButton.js +3 -3
- package/es/DefinitionList/DefinitionDescription.js +2 -2
- package/es/DefinitionList/DefinitionTerm.js +2 -2
- package/es/Embed/AudioEmbed.js +1 -1
- package/es/Embed/BrightcoveEmbed.js +6 -6
- package/es/Embed/ConceptEmbed.js +15 -15
- package/es/Embed/ConceptListEmbed.js +3 -3
- package/es/Embed/EmbedErrorPlaceholder.js +3 -3
- package/es/Embed/ExternalEmbed.js +2 -2
- package/es/Embed/FootnoteEmbed.js +1 -1
- package/es/Embed/ImageEmbed.js +6 -6
- package/es/Embed/conceptComponents.js +12 -12
- package/es/ErrorMessage/ErrorResourceAccessDenied.js +2 -2
- package/es/FactBox/FactBox.js +8 -8
- package/es/FactBox/index.js +8 -0
- package/es/Figure/FigureOpenDialogButton.js +1 -1
- package/es/FileList/File.js +4 -4
- package/es/FileList/FileList.js +4 -4
- package/es/FileList/index.js +8 -0
- package/es/Filter/FilterButtons.js +11 -11
- package/es/Filter/FilterCarousel.js +5 -5
- package/es/Filter/FilterList.js +2 -2
- package/es/Filter/FilterListPhone.js +4 -4
- package/es/Filter/ToggleItem.js +1 -1
- package/es/Filter/filterClasses.js +1 -1
- package/es/Footer/Footer.js +9 -9
- package/es/Footer/FooterLinks.js +16 -8
- package/es/Footer/index.js +1 -1
- package/es/Frontpage/FrontpageAllSubjects.js +18 -10
- package/es/FrontpageArticle/FrontpageArticle.js +1 -1
- package/es/Gloss/Gloss.js +9 -9
- package/es/Grid/Grid.js +2 -2
- package/es/Image/Image.js +2 -2
- package/es/Image/ImageLink.js +1 -1
- package/es/KeyFigure/KeyFigure.js +5 -5
- package/es/KeyFigure/index.js +1 -1
- package/es/LanguageSelector/LanguageSelector.js +8 -8
- package/es/LanguageSelector/index.js +8 -0
- package/es/LearningPaths/LearningPathLastStepNavigation.js +6 -6
- package/es/LearningPaths/LearningPathMenu.js +8 -8
- package/es/LearningPaths/LearningPathMenuAside.js +6 -6
- package/es/LearningPaths/LearningPathMenuAsideCopyright.js +3 -3
- package/es/LearningPaths/LearningPathMenuContent.js +6 -6
- package/es/LearningPaths/LearningPathMenuIntro.js +7 -7
- package/es/LearningPaths/LearningPathMenuModalWrapper.js +5 -5
- package/es/LearningPaths/LearningPathMobileHeader.js +3 -3
- package/es/LearningPaths/LearningPathMobileStepInfo.js +2 -2
- package/es/LearningPaths/LearningPathSticky.js +4 -4
- package/es/LearningPaths/index.js +2 -2
- package/es/LetterFilter/LetterFilter.js +3 -3
- package/es/LicenseByline/EmbedByline.js +7 -7
- package/es/LicenseByline/LicenseDescription.js +1 -1
- package/es/LicenseByline/LicenseLink.js +3 -3
- package/es/LicenseByline/index.js +8 -0
- package/es/LinkBlock/LinkBlock.js +8 -8
- package/es/LinkBlock/LinkBlockSection.js +2 -2
- package/es/List/OrderedList.js +2 -2
- package/es/List/UnOrderedList.js +2 -2
- package/es/Masthead/Masthead.js +4 -4
- package/es/Masthead/SkipToMainContent.js +9 -1
- package/es/Masthead/index.js +1 -1
- package/es/MediaList/MediaList.js +6 -6
- package/es/Messages/MessageBanner.js +4 -4
- package/es/Messages/MessageBox.js +7 -7
- package/es/Messages/index.js +1 -1
- package/es/MyNdla/Resource/Folder.js +10 -10
- package/es/MyNdla/Resource/FolderInput.js +6 -6
- package/es/MyNdla/index.js +8 -0
- package/es/NDLAFilm/AllMoviesAlphabetically.js +12 -12
- package/es/NDLAFilm/FilmContentCard.js +5 -5
- package/es/NDLAFilm/FilmContentCardTags.js +10 -2
- package/es/NDLAFilm/FilmMovieList.js +5 -4
- package/es/NDLAFilm/FilmMovieSearch.js +5 -5
- package/es/NDLAFilm/FilmSlideshow.js +9 -9
- package/es/NDLAFilm/MovieGrid.js +11 -3
- package/es/NDLAFilm/filmStyles.js +11 -3
- package/es/NDLAFilm/index.js +4 -5
- package/es/Navigation/NavigationBox.js +29 -21
- package/es/Notion/Notion.js +4 -4
- package/es/Notion/NotionImage.js +6 -5
- package/es/Notion/index.js +8 -0
- package/es/Programme/Programme.js +15 -7
- package/es/Programme/ProgrammeSubjects.js +2 -2
- package/es/ProgrammeCard/ProgrammeCard.js +4 -4
- package/es/RelatedArticleList/RelatedArticleList.js +64 -30
- package/es/Resource/BlockResource.js +8 -8
- package/es/Resource/ListResource.js +7 -7
- package/es/Resource/resourceComponents.js +16 -16
- package/es/Resource/storyComponents.js +2 -2
- package/es/ResourceBox/ResourceBox.js +6 -7
- package/es/ResourceGroup/ResourceGroup.js +4 -4
- package/es/ResourceGroup/ResourceItem.js +11 -11
- package/es/ResourceGroup/ResourceList.js +2 -2
- package/es/ResourcesWrapper/ResourcesTopicTitle.js +22 -14
- package/es/Search/ActiveFilterContent.js +11 -3
- package/es/Search/ActiveFilters.js +15 -7
- package/es/Search/ContentTypeResult.js +12 -4
- package/es/Search/ContentTypeResultStyles.js +19 -11
- package/es/Search/IsPathToHighlight.js +8 -0
- package/es/Search/LoadingWrapper.js +9 -1
- package/es/Search/SearchField.js +4 -4
- package/es/Search/SearchFieldForm.js +10 -2
- package/es/Search/SearchResult.js +23 -15
- package/es/Search/SearchResultSleeve.js +10 -10
- package/es/Search/index.js +1 -1
- package/es/SearchTypeResult/ActiveFilterContent.js +5 -5
- package/es/SearchTypeResult/ActiveFilters.js +7 -7
- package/es/SearchTypeResult/PopupFilter.js +9 -9
- package/es/SearchTypeResult/ResultNavigation.js +5 -5
- package/es/SearchTypeResult/SearchFieldHeader.js +6 -6
- package/es/SearchTypeResult/SearchHeader.js +10 -10
- package/es/SearchTypeResult/SearchItem.js +11 -11
- package/es/SearchTypeResult/SearchItemList.js +13 -13
- package/es/SearchTypeResult/SearchItems.js +2 -2
- package/es/SearchTypeResult/SearchNotionsResult.js +5 -5
- package/es/SearchTypeResult/SearchSubjectItem.js +5 -5
- package/es/SearchTypeResult/SearchTypeHeader.js +10 -10
- package/es/SearchTypeResult/SearchTypeResult.js +4 -4
- package/es/SearchTypeResult/SearchViewType.js +6 -6
- package/es/SearchTypeResult/components/ItemContexts.js +9 -9
- package/es/SearchTypeResult/components/ItemResourceHeader.js +7 -7
- package/es/SearchTypeResult/components/ItemTopicHeader.js +4 -4
- package/es/SearchTypeResult/components/SubjectFilters.js +2 -2
- package/es/SearchTypeResult/index.js +3 -3
- package/es/SectionHeading/SectionHeading.js +10 -2
- package/es/SectionHeading/index.js +8 -0
- package/es/Subject/SubjectBanner.js +9 -1
- package/es/Subject/SubjectHeader.js +11 -3
- package/es/Subject/index.js +8 -0
- package/es/Table/Table.js +9 -9
- package/es/TagSelector/Control.js +1 -1
- package/es/TagSelector/DropdownIndicator.js +2 -2
- package/es/TagSelector/Input.js +2 -2
- package/es/TagSelector/Menu.js +2 -2
- package/es/TagSelector/MenuList.js +1 -1
- package/es/TagSelector/Option.js +2 -2
- package/es/TagSelector/SelectContainer.js +1 -1
- package/es/TagSelector/TagSelector.js +9 -9
- package/es/TagSelector/ValueButton.js +1 -1
- package/es/Topic/Loader.js +8 -0
- package/es/Topic/Topic.js +23 -23
- package/es/TreeStructure/AddFolderButton.js +3 -3
- package/es/TreeStructure/ComboboxButton.js +5 -5
- package/es/TreeStructure/FolderItem.js +9 -9
- package/es/TreeStructure/FolderItems.js +2 -2
- package/es/TreeStructure/TreeStructure.js +8 -8
- package/es/TreeStructure/helperFunctions.js +8 -0
- package/es/all.css +1 -1
- package/es/i18n/i18n.js +3 -3
- package/es/index.js +1 -1
- package/es/locale/messages-en.js +12 -259
- package/es/locale/messages-nb.js +12 -259
- package/es/locale/messages-nn.js +12 -259
- package/es/locale/messages-se.js +12 -259
- package/es/locale/messages-sma.js +12 -259
- package/lib/Article/Article.js +6 -6
- package/lib/Article/ArticleByline.js +8 -8
- package/lib/Article/ArticleFootNotes.d.ts +7 -0
- package/lib/Article/ArticleFootNotes.js +3 -3
- package/lib/Article/ArticleNotions.js +5 -5
- package/lib/Aside/index.d.ts +7 -0
- package/lib/Aside/index.js +7 -0
- package/lib/AudioPlayer/AudioPlayer.js +16 -16
- package/lib/AudioPlayer/Controls.js +26 -26
- package/lib/AudioPlayer/SpeechControl.js +1 -1
- package/lib/AudioPlayer/index.d.ts +7 -0
- package/lib/AudioPlayer/index.js +7 -0
- package/lib/BannerCard/BannerCard.js +7 -7
- package/lib/BlogPost/BlogPost.js +6 -6
- package/lib/Breadcrumb/Breadcrumb.js +3 -3
- package/lib/Breadcrumb/BreadcrumbItem.js +8 -8
- package/lib/CampaignBlock/CampaignBlock.js +8 -8
- package/lib/CompetenceGoalTab/CompetenceGoalTab.js +4 -4
- package/lib/CompetenceGoalTab/CompetenceItem.js +7 -7
- package/lib/CompetenceGoalTab/index.d.ts +7 -0
- package/lib/CompetenceGoalTab/index.js +7 -0
- package/lib/ContactBlock/ContactBlock.js +14 -14
- package/lib/ContentTypeBadge/ContentTypeBadge.d.ts +7 -0
- package/lib/ContentTypeBadge/ContentTypeBadge.js +9 -1
- package/lib/ContentTypeBadge/index.d.ts +7 -0
- package/lib/ContentTypeBadge/index.js +7 -0
- package/lib/CopyParagraphButton/CopyParagraphButton.js +3 -3
- package/lib/DefinitionList/DefinitionDescription.js +2 -2
- package/lib/DefinitionList/DefinitionTerm.js +2 -2
- package/lib/Embed/AudioEmbed.js +1 -1
- package/lib/Embed/BrightcoveEmbed.js +6 -6
- package/lib/Embed/ConceptEmbed.js +15 -15
- package/lib/Embed/ConceptListEmbed.js +3 -3
- package/lib/Embed/EmbedErrorPlaceholder.js +3 -3
- package/lib/Embed/ExternalEmbed.js +2 -2
- package/lib/Embed/FootnoteEmbed.js +1 -1
- package/lib/Embed/ImageEmbed.js +6 -6
- package/lib/Embed/conceptComponents.d.ts +1 -1
- package/lib/Embed/conceptComponents.js +12 -12
- package/lib/Embed/types.d.ts +1 -1
- package/lib/ErrorMessage/ErrorResourceAccessDenied.js +2 -2
- package/lib/FactBox/FactBox.js +8 -8
- package/lib/FactBox/index.d.ts +7 -0
- package/lib/FactBox/index.js +7 -0
- package/lib/Figure/FigureOpenDialogButton.js +1 -1
- package/lib/FileList/File.js +4 -4
- package/lib/FileList/FileList.js +4 -4
- package/lib/FileList/index.d.ts +7 -0
- package/lib/FileList/index.js +7 -0
- package/lib/Filter/FilterButtons.js +11 -11
- package/lib/Filter/FilterCarousel.js +5 -5
- package/lib/Filter/FilterList.d.ts +7 -0
- package/lib/Filter/FilterList.js +2 -2
- package/lib/Filter/FilterListPhone.d.ts +7 -0
- package/lib/Filter/FilterListPhone.js +4 -4
- package/lib/Filter/ToggleItem.d.ts +7 -0
- package/lib/Filter/ToggleItem.js +1 -1
- package/lib/Filter/filterClasses.d.ts +7 -0
- package/lib/Filter/filterClasses.js +1 -1
- package/lib/Footer/Footer.js +9 -9
- package/lib/Footer/FooterLinks.d.ts +7 -0
- package/lib/Footer/FooterLinks.js +15 -9
- package/lib/Footer/index.d.ts +1 -1
- package/lib/Footer/index.js +1 -1
- package/lib/Frontpage/FrontpageAllSubjects.d.ts +7 -0
- package/lib/Frontpage/FrontpageAllSubjects.js +17 -11
- package/lib/FrontpageArticle/FrontpageArticle.js +1 -1
- package/lib/Gloss/Gloss.js +9 -9
- package/lib/Grid/Grid.js +2 -2
- package/lib/Image/Image.js +2 -2
- package/lib/Image/ImageLink.js +1 -1
- package/lib/KeyFigure/KeyFigure.d.ts +7 -0
- package/lib/KeyFigure/KeyFigure.js +5 -5
- package/lib/KeyFigure/index.d.ts +7 -0
- package/lib/LanguageSelector/LanguageSelector.js +8 -8
- package/lib/LanguageSelector/index.d.ts +7 -0
- package/lib/LearningPaths/LearningPathLastStepNavigation.js +6 -6
- package/lib/LearningPaths/LearningPathMenu.js +8 -8
- package/lib/LearningPaths/LearningPathMenuAside.js +6 -6
- package/lib/LearningPaths/LearningPathMenuAsideCopyright.js +3 -3
- package/lib/LearningPaths/LearningPathMenuContent.js +6 -6
- package/lib/LearningPaths/LearningPathMenuIntro.js +7 -7
- package/lib/LearningPaths/LearningPathMenuModalWrapper.js +5 -5
- package/lib/LearningPaths/LearningPathMobileHeader.js +3 -3
- package/lib/LearningPaths/LearningPathMobileStepInfo.js +2 -2
- package/lib/LearningPaths/LearningPathSticky.js +4 -4
- package/lib/LearningPaths/index.d.ts +2 -2
- package/lib/LearningPaths/index.js +2 -2
- package/lib/LetterFilter/LetterFilter.js +3 -3
- package/lib/LicenseByline/EmbedByline.d.ts +1 -1
- package/lib/LicenseByline/EmbedByline.js +7 -7
- package/lib/LicenseByline/LicenseDescription.js +1 -1
- package/lib/LicenseByline/LicenseLink.js +3 -3
- package/lib/LicenseByline/index.d.ts +7 -0
- package/lib/LinkBlock/LinkBlock.js +8 -8
- package/lib/LinkBlock/LinkBlockSection.js +2 -2
- package/lib/List/OrderedList.js +2 -2
- package/lib/List/UnOrderedList.js +2 -2
- package/lib/Masthead/Masthead.js +4 -4
- package/lib/Masthead/SkipToMainContent.d.ts +7 -0
- package/lib/Masthead/SkipToMainContent.js +9 -1
- package/lib/Masthead/index.d.ts +1 -1
- package/lib/Masthead/index.js +1 -1
- package/lib/MediaList/MediaList.d.ts +7 -0
- package/lib/MediaList/MediaList.js +6 -6
- package/lib/Messages/MessageBanner.js +4 -4
- package/lib/Messages/MessageBox.js +7 -7
- package/lib/Messages/index.d.ts +1 -1
- package/lib/Messages/index.js +1 -1
- package/lib/MyNdla/Resource/Folder.js +10 -10
- package/lib/MyNdla/Resource/FolderInput.js +6 -6
- package/lib/MyNdla/index.d.ts +7 -0
- package/lib/NDLAFilm/AllMoviesAlphabetically.js +12 -12
- package/lib/NDLAFilm/FilmContentCard.js +5 -5
- package/lib/NDLAFilm/FilmContentCardTags.d.ts +7 -0
- package/lib/NDLAFilm/FilmContentCardTags.js +10 -2
- package/lib/NDLAFilm/FilmMovieList.d.ts +2 -1
- package/lib/NDLAFilm/FilmMovieList.js +5 -4
- package/lib/NDLAFilm/FilmMovieSearch.js +5 -5
- package/lib/NDLAFilm/FilmSlideshow.js +9 -9
- package/lib/NDLAFilm/MovieGrid.d.ts +7 -0
- package/lib/NDLAFilm/MovieGrid.js +11 -3
- package/lib/NDLAFilm/filmStyles.d.ts +7 -0
- package/lib/NDLAFilm/filmStyles.js +11 -3
- package/lib/NDLAFilm/index.d.ts +4 -5
- package/lib/NDLAFilm/index.js +3 -10
- package/lib/NDLAFilm/types.d.ts +7 -0
- package/lib/Navigation/NavigationBox.d.ts +7 -0
- package/lib/Navigation/NavigationBox.js +28 -22
- package/lib/Notion/Notion.js +4 -4
- package/lib/Notion/NotionImage.d.ts +2 -1
- package/lib/Notion/NotionImage.js +6 -5
- package/lib/Notion/index.d.ts +7 -0
- package/lib/Programme/Programme.d.ts +7 -0
- package/lib/Programme/Programme.js +14 -8
- package/lib/Programme/ProgrammeSubjects.js +2 -2
- package/lib/ProgrammeCard/ProgrammeCard.js +4 -4
- package/lib/RelatedArticleList/RelatedArticleList.d.ts +2 -2
- package/lib/RelatedArticleList/RelatedArticleList.js +64 -30
- package/lib/Resource/BlockResource.js +8 -8
- package/lib/Resource/ListResource.js +7 -7
- package/lib/Resource/resourceComponents.js +16 -16
- package/lib/Resource/storyComponents.js +2 -2
- package/lib/ResourceBox/ResourceBox.d.ts +0 -1
- package/lib/ResourceBox/ResourceBox.js +6 -7
- package/lib/ResourceGroup/ResourceGroup.js +4 -4
- package/lib/ResourceGroup/ResourceItem.js +11 -11
- package/lib/ResourceGroup/ResourceList.js +2 -2
- package/lib/ResourcesWrapper/ResourcesTopicTitle.d.ts +7 -0
- package/lib/ResourcesWrapper/ResourcesTopicTitle.js +21 -15
- package/lib/Search/ActiveFilterContent.d.ts +7 -0
- package/lib/Search/ActiveFilterContent.js +11 -3
- package/lib/Search/ActiveFilters.d.ts +7 -0
- package/lib/Search/ActiveFilters.js +14 -8
- package/lib/Search/ContentTypeResult.d.ts +7 -0
- package/lib/Search/ContentTypeResult.js +12 -4
- package/lib/Search/ContentTypeResultStyles.d.ts +7 -0
- package/lib/Search/ContentTypeResultStyles.js +19 -11
- package/lib/Search/IsPathToHighlight.d.ts +7 -0
- package/lib/Search/IsPathToHighlight.js +8 -0
- package/lib/Search/LoadingWrapper.d.ts +7 -0
- package/lib/Search/LoadingWrapper.js +9 -1
- package/lib/Search/SearchField.d.ts +7 -0
- package/lib/Search/SearchField.js +4 -4
- package/lib/Search/SearchFieldForm.d.ts +7 -0
- package/lib/Search/SearchFieldForm.js +10 -2
- package/lib/Search/SearchResult.d.ts +7 -0
- package/lib/Search/SearchResult.js +23 -15
- package/lib/Search/SearchResultSleeve.d.ts +7 -0
- package/lib/Search/SearchResultSleeve.js +10 -10
- package/lib/Search/index.d.ts +1 -1
- package/lib/Search/index.js +1 -1
- package/lib/SearchTypeResult/ActiveFilterContent.js +5 -5
- package/lib/SearchTypeResult/ActiveFilters.js +7 -7
- package/lib/SearchTypeResult/PopupFilter.js +9 -9
- package/lib/SearchTypeResult/ResultNavigation.js +5 -5
- package/lib/SearchTypeResult/SearchFieldHeader.js +6 -6
- package/lib/SearchTypeResult/SearchHeader.d.ts +1 -1
- package/lib/SearchTypeResult/SearchHeader.js +10 -10
- package/lib/SearchTypeResult/SearchItem.d.ts +1 -1
- package/lib/SearchTypeResult/SearchItem.js +11 -11
- package/lib/SearchTypeResult/SearchItemList.js +13 -13
- package/lib/SearchTypeResult/SearchItems.js +2 -2
- package/lib/SearchTypeResult/SearchNotionsResult.js +5 -5
- package/lib/SearchTypeResult/SearchSubjectItem.js +5 -5
- package/lib/SearchTypeResult/SearchTypeHeader.js +10 -10
- package/lib/SearchTypeResult/SearchTypeResult.d.ts +3 -3
- package/lib/SearchTypeResult/SearchTypeResult.js +4 -4
- package/lib/SearchTypeResult/SearchViewType.js +6 -6
- package/lib/SearchTypeResult/components/ItemContexts.js +9 -9
- package/lib/SearchTypeResult/components/ItemResourceHeader.d.ts +1 -1
- package/lib/SearchTypeResult/components/ItemResourceHeader.js +7 -7
- package/lib/SearchTypeResult/components/ItemTopicHeader.js +4 -4
- package/lib/SearchTypeResult/components/SubjectFilters.d.ts +1 -1
- package/lib/SearchTypeResult/components/SubjectFilters.js +2 -2
- package/lib/SearchTypeResult/index.d.ts +3 -3
- package/lib/SearchTypeResult/index.js +3 -3
- package/lib/SectionHeading/SectionHeading.d.ts +7 -0
- package/lib/SectionHeading/SectionHeading.js +10 -2
- package/lib/SectionHeading/index.d.ts +7 -0
- package/lib/SectionHeading/index.js +7 -0
- package/lib/Subject/SubjectBanner.d.ts +7 -0
- package/lib/Subject/SubjectBanner.js +9 -1
- package/lib/Subject/SubjectHeader.d.ts +7 -0
- package/lib/Subject/SubjectHeader.js +11 -3
- package/lib/Subject/index.d.ts +7 -0
- package/lib/Table/Table.d.ts +7 -0
- package/lib/Table/Table.js +16 -16
- package/lib/TagSelector/Control.js +1 -1
- package/lib/TagSelector/DropdownIndicator.js +2 -2
- package/lib/TagSelector/Input.js +2 -2
- package/lib/TagSelector/Menu.js +2 -2
- package/lib/TagSelector/MenuList.js +1 -1
- package/lib/TagSelector/Option.js +2 -2
- package/lib/TagSelector/SelectContainer.js +1 -1
- package/lib/TagSelector/TagSelector.js +9 -9
- package/lib/TagSelector/ValueButton.js +1 -1
- package/lib/TagSelector/ariaMessages.d.ts +1 -1
- package/lib/Topic/Loader.d.ts +7 -0
- package/lib/Topic/Loader.js +8 -0
- package/lib/Topic/Topic.js +23 -23
- package/lib/TreeStructure/AddFolderButton.js +3 -3
- package/lib/TreeStructure/ComboboxButton.js +5 -5
- package/lib/TreeStructure/FolderItem.js +9 -9
- package/lib/TreeStructure/FolderItems.js +2 -2
- package/lib/TreeStructure/TreeStructure.js +8 -8
- package/lib/TreeStructure/arrowNavigation.d.ts +1 -1
- package/lib/TreeStructure/helperFunctions.d.ts +7 -0
- package/lib/TreeStructure/helperFunctions.js +8 -0
- package/lib/all.css +1 -1
- package/lib/i18n/i18n.d.ts +7 -0
- package/lib/i18n/i18n.js +3 -3
- package/lib/index.d.ts +1 -1
- package/lib/index.js +0 -6
- package/lib/locale/messages-en.d.ts +552 -793
- package/lib/locale/messages-en.js +13 -261
- package/lib/locale/messages-nb.d.ts +552 -793
- package/lib/locale/messages-nb.js +13 -261
- package/lib/locale/messages-nn.d.ts +552 -793
- package/lib/locale/messages-nn.js +13 -261
- package/lib/locale/messages-se.d.ts +552 -793
- package/lib/locale/messages-se.js +13 -261
- package/lib/locale/messages-sma.d.ts +552 -793
- package/lib/locale/messages-sma.js +13 -261
- package/package.json +21 -21
- package/src/Article/Article.tsx +5 -5
- package/src/Article/ArticleByline.stories.tsx +1 -1
- package/src/Article/ArticleByline.tsx +4 -4
- package/src/Article/ArticleFootNotes.tsx +1 -1
- package/src/Article/ArticleNotions.tsx +2 -2
- package/src/Aside/index.ts +8 -0
- package/src/AudioPlayer/AudioPlayer.tsx +2 -2
- package/src/AudioPlayer/Controls.tsx +5 -5
- package/src/AudioPlayer/SpeechControl.tsx +1 -1
- package/src/AudioPlayer/index.ts +8 -0
- package/src/BannerCard/BannerCard.tsx +1 -1
- package/src/BlogPost/BlogPost.tsx +3 -3
- package/src/Breadcrumb/Breadcrumb.tsx +2 -2
- package/src/Breadcrumb/BreadcrumbItem.tsx +3 -3
- package/src/CampaignBlock/CampaignBlock.tsx +3 -3
- package/src/CompetenceGoalTab/CompetenceGoalItem.tsx +1 -1
- package/src/CompetenceGoalTab/CompetenceGoalTab.tsx +3 -3
- package/src/CompetenceGoalTab/CompetenceItem.tsx +3 -3
- package/src/CompetenceGoalTab/CoreElementItem.tsx +1 -1
- package/src/CompetenceGoalTab/index.ts +8 -0
- package/src/ContactBlock/ContactBlock.tsx +3 -3
- package/src/ContentTypeBadge/ContentTypeBadge.tsx +9 -1
- package/src/ContentTypeBadge/index.ts +8 -0
- package/src/CopyParagraphButton/CopyParagraphButton.tsx +1 -1
- package/src/DefinitionList/DefinitionDescription.tsx +1 -1
- package/src/DefinitionList/DefinitionTerm.tsx +1 -1
- package/src/Embed/AudioEmbed.tsx +4 -4
- package/src/Embed/BrightcoveEmbed.tsx +6 -6
- package/src/Embed/ConceptEmbed.tsx +9 -9
- package/src/Embed/ConceptListEmbed.tsx +1 -1
- package/src/Embed/EmbedErrorPlaceholder.tsx +1 -1
- package/src/Embed/ExternalEmbed.tsx +3 -3
- package/src/Embed/FootnoteEmbed.tsx +1 -1
- package/src/Embed/IframeEmbed.tsx +1 -1
- package/src/Embed/ImageEmbed.stories.tsx +2 -2
- package/src/Embed/ImageEmbed.tsx +8 -8
- package/src/Embed/RelatedContentEmbed.stories.tsx +1 -1
- package/src/Embed/RelatedContentEmbed.tsx +1 -1
- package/src/Embed/conceptComponents.tsx +6 -6
- package/src/Embed/types.ts +1 -1
- package/src/ErrorMessage/ErrorMessage.stories.tsx +1 -1
- package/src/ErrorMessage/ErrorResourceAccessDenied.tsx +1 -1
- package/src/FactBox/FactBox.tsx +2 -2
- package/src/FactBox/index.ts +8 -0
- package/src/Figure/FigureOpenDialogButton.tsx +1 -1
- package/src/FileList/File.tsx +2 -2
- package/src/FileList/FileList.stories.tsx +1 -1
- package/src/FileList/FileList.tsx +2 -2
- package/src/FileList/index.ts +8 -0
- package/src/Filter/FilterButtons.tsx +2 -2
- package/src/Filter/FilterCarousel.tsx +2 -2
- package/src/Filter/FilterList.tsx +2 -2
- package/src/Filter/FilterListPhone.tsx +4 -4
- package/src/Filter/ToggleItem.tsx +1 -1
- package/src/Filter/filterClasses.ts +1 -1
- package/src/Footer/Footer.stories.tsx +2 -2
- package/src/Footer/Footer.tsx +2 -2
- package/src/Footer/FooterLinks.tsx +10 -2
- package/src/Footer/index.ts +1 -1
- package/src/FramedContent/FramedContent.stories.tsx +1 -1
- package/src/Frontpage/FrontpageAllSubjects.tsx +12 -4
- package/src/FrontpageArticle/FrontpageArticle.tsx +2 -2
- package/src/Gloss/Gloss.tsx +4 -4
- package/src/Grid/Grid.stories.tsx +1 -1
- package/src/Grid/Grid.tsx +1 -1
- package/src/Hero/Hero.stories.tsx +1 -1
- package/src/Image/Image.tsx +1 -1
- package/src/Image/ImageLink.tsx +1 -1
- package/src/KeyFigure/KeyFigure.stories.tsx +1 -1
- package/src/KeyFigure/KeyFigure.tsx +1 -1
- package/src/KeyFigure/index.ts +1 -1
- package/src/LanguageSelector/LanguageSelector.stories.tsx +2 -2
- package/src/LanguageSelector/LanguageSelector.tsx +3 -3
- package/src/LanguageSelector/index.ts +8 -0
- package/src/LearningPaths/LearningPathLastStepNavigation.tsx +3 -3
- package/src/LearningPaths/LearningPathMenu.stories.tsx +1 -1
- package/src/LearningPaths/LearningPathMenu.tsx +6 -6
- package/src/LearningPaths/LearningPathMenuAside.tsx +3 -3
- package/src/LearningPaths/LearningPathMenuAsideCopyright.tsx +1 -1
- package/src/LearningPaths/LearningPathMenuContent.tsx +2 -2
- package/src/LearningPaths/LearningPathMenuIntro.tsx +2 -2
- package/src/LearningPaths/LearningPathMenuModalWrapper.tsx +4 -4
- package/src/LearningPaths/LearningPathMobileHeader.tsx +1 -1
- package/src/LearningPaths/LearningPathMobileStepInfo.tsx +1 -1
- package/src/LearningPaths/LearningPathSticky.tsx +2 -2
- package/src/LearningPaths/index.ts +2 -2
- package/src/LetterFilter/LetterFilter.stories.tsx +2 -2
- package/src/LetterFilter/LetterFilter.tsx +2 -2
- package/src/LicenseByline/EmbedByline.stories.tsx +3 -3
- package/src/LicenseByline/EmbedByline.tsx +4 -4
- package/src/LicenseByline/LicenseDescription.tsx +1 -1
- package/src/LicenseByline/LicenseLink.tsx +1 -1
- package/src/LicenseByline/index.tsx +8 -0
- package/src/LinkBlock/LinkBlock.stories.tsx +1 -1
- package/src/LinkBlock/LinkBlock.tsx +3 -3
- package/src/LinkBlock/LinkBlockSection.tsx +1 -1
- package/src/List/OrderedList.tsx +1 -1
- package/src/List/UnOrderedList.tsx +1 -1
- package/src/Masthead/Masthead.tsx +2 -2
- package/src/Masthead/SkipToMainContent.tsx +8 -0
- package/src/Masthead/index.ts +1 -1
- package/src/MediaList/MediaList.tsx +5 -5
- package/src/Messages/MessageBanner.tsx +2 -2
- package/src/Messages/MessageBox.tsx +3 -3
- package/src/Messages/index.ts +1 -1
- package/src/MyNdla/Resource/Folder.stories.tsx +4 -5
- package/src/MyNdla/Resource/Folder.tsx +4 -4
- package/src/MyNdla/Resource/FolderInput.tsx +4 -4
- package/src/MyNdla/index.ts +8 -0
- package/src/NDLAFilm/AllMoviesAlphabetically.tsx +4 -4
- package/src/NDLAFilm/FilmContentCard.tsx +2 -2
- package/src/NDLAFilm/FilmContentCardTags.tsx +9 -1
- package/src/NDLAFilm/FilmMovieList.tsx +5 -4
- package/src/NDLAFilm/FilmMovieSearch.tsx +2 -2
- package/src/NDLAFilm/FilmSlideshow.tsx +2 -2
- package/src/NDLAFilm/MovieGrid.tsx +10 -2
- package/src/NDLAFilm/filmStyles.ts +8 -0
- package/src/NDLAFilm/index.ts +4 -5
- package/src/NDLAFilm/types.ts +8 -0
- package/src/Navigation/NavigationBox.tsx +13 -5
- package/src/Notion/Notion.tsx +1 -1
- package/src/Notion/NotionImage.tsx +4 -3
- package/src/Notion/index.ts +8 -0
- package/src/Programme/Programme.tsx +10 -2
- package/src/Programme/ProgrammeSubjects.tsx +1 -1
- package/src/ProgrammeCard/ProgrammeCard.tsx +1 -1
- package/src/RelatedArticleList/RelatedArticleList.tsx +79 -24
- package/src/Resource/BlockResource.stories.tsx +2 -2
- package/src/Resource/BlockResource.tsx +3 -3
- package/src/Resource/ListResource.stories.tsx +1 -1
- package/src/Resource/ListResource.tsx +2 -2
- package/src/Resource/resourceComponents.tsx +6 -6
- package/src/Resource/storyComponents.tsx +2 -2
- package/src/ResourceBox/ResourceBox.tsx +1 -2
- package/src/ResourceGroup/ResourceGroup.tsx +1 -1
- package/src/ResourceGroup/ResourceItem.tsx +4 -4
- package/src/ResourceGroup/ResourceList.tsx +2 -2
- package/src/ResourcesWrapper/ResourcesTopicTitle.tsx +10 -2
- package/src/Search/ActiveFilterContent.tsx +9 -1
- package/src/Search/ActiveFilters.tsx +10 -2
- package/src/Search/ContentTypeResult.tsx +12 -4
- package/src/Search/ContentTypeResultStyles.tsx +9 -1
- package/src/Search/IsPathToHighlight.ts +8 -0
- package/src/Search/LoadingWrapper.tsx +8 -0
- package/src/Search/SearchField.tsx +3 -3
- package/src/Search/SearchFieldForm.tsx +9 -1
- package/src/Search/SearchResult.tsx +13 -5
- package/src/Search/SearchResultSleeve.tsx +2 -2
- package/src/Search/index.ts +1 -2
- package/src/SearchTypeResult/ActiveFilterContent.tsx +3 -3
- package/src/SearchTypeResult/ActiveFilters.tsx +2 -2
- package/src/SearchTypeResult/PopupFilter.tsx +3 -3
- package/src/SearchTypeResult/ResultNavigation.tsx +1 -1
- package/src/SearchTypeResult/SearchFieldHeader.tsx +2 -2
- package/src/SearchTypeResult/SearchHeader.tsx +3 -3
- package/src/SearchTypeResult/SearchItem.tsx +5 -5
- package/src/SearchTypeResult/SearchItemList.tsx +2 -2
- package/src/SearchTypeResult/SearchItems.tsx +2 -2
- package/src/SearchTypeResult/SearchNotionsResult.tsx +1 -1
- package/src/SearchTypeResult/SearchSubjectItem.tsx +2 -2
- package/src/SearchTypeResult/SearchTypeHeader.tsx +2 -2
- package/src/SearchTypeResult/SearchTypeResult.tsx +4 -4
- package/src/SearchTypeResult/SearchViewType.tsx +2 -2
- package/src/SearchTypeResult/components/ItemContexts.tsx +4 -4
- package/src/SearchTypeResult/components/ItemResourceHeader.tsx +3 -4
- package/src/SearchTypeResult/components/ItemTopicHeader.tsx +1 -1
- package/src/SearchTypeResult/components/SubjectFilters.tsx +2 -2
- package/src/SearchTypeResult/index.ts +3 -3
- package/src/SectionHeading/SectionHeading.tsx +8 -0
- package/src/SectionHeading/index.ts +8 -0
- package/src/Subject/SubjectBanner.tsx +8 -0
- package/src/Subject/SubjectHeader.tsx +9 -1
- package/src/Subject/index.ts +8 -0
- package/src/Table/Table.stories.tsx +1 -1
- package/src/Table/Table.tsx +3 -3
- package/src/TagSelector/Control.tsx +1 -1
- package/src/TagSelector/DropdownIndicator.tsx +2 -2
- package/src/TagSelector/Input.tsx +1 -1
- package/src/TagSelector/Menu.tsx +1 -1
- package/src/TagSelector/MenuList.tsx +1 -1
- package/src/TagSelector/Option.tsx +1 -1
- package/src/TagSelector/SelectContainer.tsx +1 -1
- package/src/TagSelector/TagSelector.stories.tsx +1 -1
- package/src/TagSelector/TagSelector.tsx +9 -9
- package/src/TagSelector/ValueButton.tsx +1 -1
- package/src/TagSelector/ariaMessages.ts +1 -1
- package/src/ToolboxPage/ToolboxInfo.tsx +1 -1
- package/src/Topic/Loader.tsx +8 -0
- package/src/Topic/Topic.tsx +9 -9
- package/src/TreeStructure/AddFolderButton.tsx +1 -1
- package/src/TreeStructure/ComboboxButton.tsx +3 -3
- package/src/TreeStructure/FolderItem.tsx +3 -3
- package/src/TreeStructure/FolderItems.tsx +1 -1
- package/src/TreeStructure/TreeStructure.stories.tsx +2 -2
- package/src/TreeStructure/TreeStructure.tsx +3 -3
- package/src/TreeStructure/arrowNavigation.ts +1 -1
- package/src/TreeStructure/helperFunctions.ts +8 -0
- package/src/i18n/i18n.ts +3 -3
- package/src/index.ts +1 -8
- package/src/locale/__tests__/translations-test.ts +1 -1
- package/src/locale/messages-en.ts +2 -256
- package/src/locale/messages-nb.ts +2 -255
- package/src/locale/messages-nn.ts +2 -255
- package/src/locale/messages-se.ts +2 -255
- package/src/locale/messages-sma.ts +2 -255
- package/src/main.scss +0 -1
- package/es/NDLAFilm/AboutNdlaFilm.js +0 -57
- package/lib/NDLAFilm/AboutNdlaFilm.d.ts +0 -15
- package/lib/NDLAFilm/AboutNdlaFilm.js +0 -63
- package/src/NDLAFilm/AboutNdlaFilm.tsx +0 -84
- package/src/RelatedArticleList/component.related-articles.scss +0 -115
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
import { format } from 'date-fns';
|
|
10
10
|
import { enGB, nb, nn } from 'date-fns/locale';
|
|
11
|
+
import { useMemo } from 'react';
|
|
11
12
|
import styled from '@emotion/styled';
|
|
12
|
-
import SafeLink from '@ndla/safelink';
|
|
13
|
-
import { Forward, CalendarEd } from '@ndla/icons/common';
|
|
14
13
|
import { breakpoints, colors, spacing, mq } from '@ndla/core';
|
|
14
|
+
import { Forward, CalendarEd } from '@ndla/icons/common';
|
|
15
|
+
import SafeLink from '@ndla/safelink';
|
|
15
16
|
import { LinkBlockEmbedData } from '@ndla/types-embed';
|
|
16
|
-
import { useMemo } from 'react';
|
|
17
17
|
import { Heading } from '@ndla/typography';
|
|
18
18
|
import { getPossiblyRelativeUrl } from '../utils/relativeUrl';
|
|
19
19
|
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { Children, HTMLAttributes, ReactNode } from 'react';
|
|
9
10
|
import styled from '@emotion/styled';
|
|
10
11
|
import { spacing } from '@ndla/core';
|
|
11
|
-
import { Children, HTMLAttributes, ReactNode } from 'react';
|
|
12
12
|
|
|
13
13
|
interface Props extends HTMLAttributes<HTMLElement> {
|
|
14
14
|
children: ReactNode;
|
package/src/List/OrderedList.tsx
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { forwardRef, HTMLAttributes } from 'react';
|
|
9
10
|
import styled from '@emotion/styled';
|
|
10
11
|
import { fonts, spacing } from '@ndla/core';
|
|
11
|
-
import { forwardRef, HTMLAttributes } from 'react';
|
|
12
12
|
|
|
13
13
|
export const generateListResets = (counterName: string) => {
|
|
14
14
|
let styles = '';
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { forwardRef, HTMLAttributes } from 'react';
|
|
9
10
|
import styled from '@emotion/styled';
|
|
10
11
|
import { colors, fonts, spacing } from '@ndla/core';
|
|
11
|
-
import { forwardRef, HTMLAttributes } from 'react';
|
|
12
12
|
|
|
13
13
|
const StyledUl = styled.ul`
|
|
14
14
|
padding-left: ${spacing.nsmall} !important;
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { ReactNode } from 'react';
|
|
9
10
|
import { css } from '@emotion/react';
|
|
10
11
|
import styled from '@emotion/styled';
|
|
11
12
|
import { breakpoints, colors, fonts, mq, spacing } from '@ndla/core';
|
|
12
|
-
import { ReactNode } from 'react';
|
|
13
|
-
import { MessageBanner } from '../Messages';
|
|
14
13
|
import SkipToMainContent from './SkipToMainContent';
|
|
14
|
+
import { MessageBanner } from '../Messages';
|
|
15
15
|
|
|
16
16
|
const MastheadContent = styled.div`
|
|
17
17
|
justify-content: center;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
1
9
|
import { useTranslation } from 'react-i18next';
|
|
2
10
|
import styled from '@emotion/styled';
|
|
3
11
|
import { colors } from '@ndla/core';
|
package/src/Masthead/index.ts
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
import Masthead from './Masthead';
|
|
10
10
|
|
|
11
|
-
import { getMastheadHeight, useMastheadHeight } from './utils';
|
|
12
11
|
import { default as SkipToMainContent } from './SkipToMainContent';
|
|
12
|
+
import { getMastheadHeight, useMastheadHeight } from './utils';
|
|
13
13
|
|
|
14
14
|
export { getMastheadHeight, useMastheadHeight, SkipToMainContent };
|
|
15
15
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
2
|
* Copyright (c) 2016-present, NDLA.
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the GPLv3 license found in the
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { ReactNode } from 'react';
|
|
10
|
+
import BEMHelper from 'react-bem-helper';
|
|
11
|
+
import styled from '@emotion/styled';
|
|
12
|
+
import { breakpoints, colors, mq, spacing } from '@ndla/core';
|
|
13
|
+
import { Launch } from '@ndla/icons/common';
|
|
10
14
|
import {
|
|
11
15
|
getLicenseByAbbreviation,
|
|
12
16
|
getResourceTypeNamespace,
|
|
@@ -15,11 +19,7 @@ import {
|
|
|
15
19
|
} from '@ndla/licenses';
|
|
16
20
|
import type { MetaType } from '@ndla/licenses';
|
|
17
21
|
import { LicenseDescription } from '@ndla/notion';
|
|
18
|
-
import BEMHelper from 'react-bem-helper';
|
|
19
22
|
import { uuid } from '@ndla/util';
|
|
20
|
-
import styled from '@emotion/styled';
|
|
21
|
-
import { breakpoints, colors, mq, spacing } from '@ndla/core';
|
|
22
|
-
import { Launch } from '@ndla/icons/common';
|
|
23
23
|
|
|
24
24
|
const oClasses = new BEMHelper({
|
|
25
25
|
name: 'media',
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { ReactNode } from 'react';
|
|
9
10
|
import styled from '@emotion/styled';
|
|
10
|
-
import { colors, spacing } from '@ndla/core';
|
|
11
11
|
import { CloseButton } from '@ndla/button';
|
|
12
|
-
import {
|
|
12
|
+
import { colors, spacing } from '@ndla/core';
|
|
13
13
|
|
|
14
14
|
interface WrapperProps {
|
|
15
15
|
small?: boolean;
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { ReactNode } from 'react';
|
|
10
|
+
import { css } from '@emotion/react';
|
|
9
11
|
import styled from '@emotion/styled';
|
|
12
|
+
import { CloseButton } from '@ndla/button';
|
|
10
13
|
import { breakpoints, colors, fonts, mq, spacing } from '@ndla/core';
|
|
11
14
|
import { Forward } from '@ndla/icons/common';
|
|
12
|
-
import { CloseButton } from '@ndla/button';
|
|
13
|
-
import { css } from '@emotion/react';
|
|
14
|
-
import { ReactNode } from 'react';
|
|
15
15
|
|
|
16
16
|
type MessageBoxType = 'ghost' | 'danger';
|
|
17
17
|
|
package/src/Messages/index.ts
CHANGED
|
@@ -8,15 +8,14 @@
|
|
|
8
8
|
|
|
9
9
|
import styled from '@emotion/styled';
|
|
10
10
|
import { Meta, StoryFn, StoryObj } from '@storybook/react';
|
|
11
|
+
import { ButtonV2, IconButtonV2 } from '@ndla/button';
|
|
11
12
|
import { spacing } from '@ndla/core';
|
|
12
|
-
import { Pencil } from '@ndla/icons/action';
|
|
13
|
-
import { DeleteForever } from '@ndla/icons/editor';
|
|
14
13
|
import { DropdownMenu, DropdownTrigger, DropdownContent, DropdownItem } from '@ndla/dropdown-menu';
|
|
15
|
-
import {
|
|
14
|
+
import { Pencil } from '@ndla/icons/action';
|
|
16
15
|
import { HorizontalMenu } from '@ndla/icons/contentType';
|
|
17
|
-
import {
|
|
18
|
-
|
|
16
|
+
import { DeleteForever } from '@ndla/icons/editor';
|
|
19
17
|
import Folder from './Folder';
|
|
18
|
+
import { defaultParameters } from '../../../../../stories/defaults';
|
|
20
19
|
|
|
21
20
|
export default {
|
|
22
21
|
title: 'My NDLA/Folder',
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import styled from '@emotion/styled';
|
|
10
9
|
import { ReactNode } from 'react';
|
|
11
|
-
import { FolderOutlined, FolderSharedOutlined } from '@ndla/icons/contentType';
|
|
12
|
-
import { FileDocumentOutline, Share } from '@ndla/icons/common';
|
|
13
|
-
import { fonts, spacing, colors, mq, breakpoints } from '@ndla/core';
|
|
14
10
|
import { useTranslation } from 'react-i18next';
|
|
11
|
+
import styled from '@emotion/styled';
|
|
12
|
+
import { fonts, spacing, colors, mq, breakpoints } from '@ndla/core';
|
|
13
|
+
import { FileDocumentOutline, Share } from '@ndla/icons/common';
|
|
14
|
+
import { FolderOutlined, FolderSharedOutlined } from '@ndla/icons/contentType';
|
|
15
15
|
import { ResourceTitleLink } from '../../Resource/resourceComponents';
|
|
16
16
|
|
|
17
17
|
export type LayoutType = 'list' | 'listLarger' | 'block';
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import styled from '@emotion/styled';
|
|
10
|
-
import { IconButtonV2 } from '@ndla/button';
|
|
11
|
-
import { Cross } from '@ndla/icons/action';
|
|
12
9
|
import { ComponentPropsWithRef, forwardRef, useEffect, useRef } from 'react';
|
|
13
10
|
import { isMobile } from 'react-device-detect';
|
|
14
11
|
import { useTranslation } from 'react-i18next';
|
|
12
|
+
import styled from '@emotion/styled';
|
|
13
|
+
import { IconButtonV2 } from '@ndla/button';
|
|
15
14
|
import { colors, spacing } from '@ndla/core';
|
|
16
15
|
import { InputContainer, FieldErrorMessage, InputV3, FieldHelper, FormControl, Label } from '@ndla/forms';
|
|
17
|
-
import { Done } from '@ndla/icons/editor';
|
|
18
16
|
import { Spinner } from '@ndla/icons';
|
|
17
|
+
import { Cross } from '@ndla/icons/action';
|
|
18
|
+
import { Done } from '@ndla/icons/editor';
|
|
19
19
|
import { composeRefs } from '@ndla/util';
|
|
20
20
|
|
|
21
21
|
interface Props {
|
package/src/MyNdla/index.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
1
9
|
import Folder from './Resource/Folder';
|
|
2
10
|
import FolderInput from './Resource/FolderInput';
|
|
3
11
|
export { Folder, FolderInput };
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import groupBy from 'lodash/groupBy';
|
|
10
|
+
import sortBy from 'lodash/sortBy';
|
|
9
11
|
import { RefObject, useMemo, useRef } from 'react';
|
|
12
|
+
import { useTranslation } from 'react-i18next';
|
|
10
13
|
import styled from '@emotion/styled';
|
|
11
14
|
import { breakpoints, mq, spacing, spacingUnit, colors } from '@ndla/core';
|
|
12
15
|
import SafeLink from '@ndla/safelink';
|
|
13
|
-
import groupBy from 'lodash/groupBy';
|
|
14
|
-
import sortBy from 'lodash/sortBy';
|
|
15
|
-
import { useTranslation } from 'react-i18next';
|
|
16
|
-
import { makeSrcQueryString } from '../Image';
|
|
17
16
|
import { MovieType } from './types';
|
|
17
|
+
import { makeSrcQueryString } from '../Image';
|
|
18
18
|
|
|
19
19
|
const IMAGE_WIDTH = 143;
|
|
20
20
|
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { HTMLAttributes } from 'react';
|
|
10
|
+
import styled from '@emotion/styled';
|
|
10
11
|
import { spacing, colors, fonts, breakpoints, misc, mq } from '@ndla/core';
|
|
11
12
|
import SafeLink from '@ndla/safelink';
|
|
12
|
-
import styled from '@emotion/styled';
|
|
13
|
-
import { makeSrcQueryString } from '../Image';
|
|
14
13
|
import FilmContentCardTags from './FilmContentCardTags';
|
|
15
14
|
import { MovieResourceType, MovieType } from './types';
|
|
15
|
+
import { makeSrcQueryString } from '../Image';
|
|
16
16
|
|
|
17
17
|
interface Props extends HTMLAttributes<HTMLElement> {
|
|
18
18
|
movie: MovieType;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2019-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
2
9
|
import styled from '@emotion/styled';
|
|
10
|
+
import { spacing, spacingUnit, colors, fonts, misc } from '@ndla/core';
|
|
3
11
|
import { MovieResourceType } from './types';
|
|
4
12
|
|
|
5
13
|
const StyledWrapperDiv = styled.div`
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2016-present, NDLA.
|
|
2
3
|
*
|
|
3
4
|
* This source code is licensed under the GPLv3 license found in the
|
|
4
5
|
* LICENSE file in the root directory of this source tree.
|
|
5
6
|
*
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
|
-
import { Carousel } from '@ndla/carousel';
|
|
9
9
|
import styled from '@emotion/styled';
|
|
10
10
|
import { IconButtonV2 } from '@ndla/button';
|
|
11
|
-
import {
|
|
11
|
+
import { Carousel } from '@ndla/carousel';
|
|
12
12
|
import { breakpoints, mq, spacing } from '@ndla/core';
|
|
13
|
+
import { ChevronLeft, ChevronRight } from '@ndla/icons/common';
|
|
13
14
|
import FilmContentCard from './FilmContentCard';
|
|
14
|
-
import { MovieResourceType, MovieType } from './types';
|
|
15
15
|
import { StyledHeadingH2 } from './filmStyles';
|
|
16
|
+
import { MovieResourceType, MovieType } from './types';
|
|
16
17
|
|
|
17
18
|
interface Props {
|
|
18
19
|
movies: MovieType[];
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { useCallback, useMemo } from 'react';
|
|
10
|
-
import SafeLink from '@ndla/safelink';
|
|
11
10
|
import { useTranslation } from 'react-i18next';
|
|
12
11
|
import styled from '@emotion/styled';
|
|
13
12
|
import { spacing, mq, breakpoints, colors } from '@ndla/core';
|
|
13
|
+
import SafeLink from '@ndla/safelink';
|
|
14
14
|
import { Option, Select, SingleValue } from '@ndla/select';
|
|
15
|
+
import { StyledHeadingH2 } from './filmStyles';
|
|
15
16
|
import { MovieResourceType } from './types';
|
|
16
17
|
import { OneColumn } from '..';
|
|
17
|
-
import { StyledHeadingH2 } from './filmStyles';
|
|
18
18
|
|
|
19
19
|
const FilmMovieSearchContainer = styled.div`
|
|
20
20
|
margin: ${spacing.normal} 0 ${spacing.large};
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
import { useCallback, useState } from 'react';
|
|
10
10
|
import styled from '@emotion/styled';
|
|
11
|
+
import { IconButtonV2 } from '@ndla/button';
|
|
11
12
|
import { Carousel } from '@ndla/carousel';
|
|
12
13
|
import { breakpoints, colors, misc, mq, spacing } from '@ndla/core';
|
|
13
|
-
import SafeLink from '@ndla/safelink';
|
|
14
|
-
import { IconButtonV2 } from '@ndla/button';
|
|
15
14
|
import { ChevronLeft, ChevronRight } from '@ndla/icons/common';
|
|
15
|
+
import SafeLink from '@ndla/safelink';
|
|
16
16
|
import FilmContentCard from './FilmContentCard';
|
|
17
17
|
import { MovieType } from './types';
|
|
18
18
|
import Image from '../Image';
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2018-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { useTranslation } from 'react-i18next';
|
|
1
10
|
import styled from '@emotion/styled';
|
|
2
11
|
import { breakpoints, mq, spacing, spacingUnit } from '@ndla/core';
|
|
3
|
-
import { useTranslation } from 'react-i18next';
|
|
4
12
|
import FilmContentCard from './FilmContentCard';
|
|
5
|
-
import { MovieResourceType, MovieType } from './types';
|
|
6
13
|
import { setAnimations, StyledHeadingH1 } from './filmStyles';
|
|
14
|
+
import { MovieResourceType, MovieType } from './types';
|
|
7
15
|
|
|
8
16
|
interface MovieListingProps {
|
|
9
17
|
marginLeft?: number;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
1
9
|
import { css } from '@emotion/react';
|
|
2
10
|
import styled from '@emotion/styled';
|
|
3
11
|
import { fonts, spacing, colors, mq, breakpoints, spacingUnit } from '@ndla/core';
|
package/src/NDLAFilm/index.ts
CHANGED
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import AllMoviesAlphabetically from './AllMoviesAlphabetically';
|
|
10
|
+
import FilmMovieList from './FilmMovieList';
|
|
11
|
+
import FilmMovieSearch from './FilmMovieSearch';
|
|
9
12
|
import FilmSlideshow from './FilmSlideshow';
|
|
10
13
|
import MovieGrid from './MovieGrid';
|
|
11
|
-
import AboutNdlaFilm from './AboutNdlaFilm';
|
|
12
|
-
import FilmMovieSearch from './FilmMovieSearch';
|
|
13
|
-
import FilmMovieList from './FilmMovieList';
|
|
14
|
-
import AllMoviesAlphabetically from './AllMoviesAlphabetically';
|
|
15
14
|
|
|
16
|
-
export { FilmSlideshow, MovieGrid,
|
|
15
|
+
export { FilmSlideshow, MovieGrid, FilmMovieSearch, FilmMovieList, AllMoviesAlphabetically };
|
package/src/NDLAFilm/types.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2019-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
1
9
|
export interface MovieType {
|
|
2
10
|
id: number | string;
|
|
3
11
|
metaDescription: string;
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
1
9
|
import { MouseEvent } from 'react';
|
|
10
|
+
import { useTranslation } from 'react-i18next';
|
|
11
|
+
import { css } from '@emotion/react';
|
|
2
12
|
import styled from '@emotion/styled';
|
|
3
|
-
import { SafeLinkButton } from '@ndla/safelink';
|
|
4
13
|
import { ButtonV2 } from '@ndla/button';
|
|
5
14
|
import { breakpoints, colors, misc, mq, spacing } from '@ndla/core';
|
|
6
|
-
import { css } from '@emotion/react';
|
|
7
|
-
import { Switch } from '@ndla/switch';
|
|
8
|
-
import { uuid } from '@ndla/util';
|
|
9
|
-
import { useTranslation } from 'react-i18next';
|
|
10
15
|
import { HumanMaleBoard } from '@ndla/icons/common';
|
|
16
|
+
import { SafeLinkButton } from '@ndla/safelink';
|
|
17
|
+
import { Switch } from '@ndla/switch';
|
|
11
18
|
import { Heading } from '@ndla/typography';
|
|
19
|
+
import { uuid } from '@ndla/util';
|
|
12
20
|
|
|
13
21
|
const StyledWrapper = styled.nav`
|
|
14
22
|
margin: 20px 0 34px;
|
package/src/Notion/Notion.tsx
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
import { Fragment, ReactNode } from 'react';
|
|
9
|
-
import styled from '@emotion/styled';
|
|
10
9
|
import { useTranslation } from 'react-i18next';
|
|
10
|
+
import styled from '@emotion/styled';
|
|
11
11
|
import { breakpoints, fonts, mq, spacing } from '@ndla/core';
|
|
12
12
|
|
|
13
13
|
const ContentWrapper = styled.div`
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
* Copyright (c) 2022-present, NDLA.
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
6
7
|
*/
|
|
7
8
|
|
|
9
|
+
import { useTranslation } from 'react-i18next';
|
|
8
10
|
import styled from '@emotion/styled';
|
|
9
11
|
import { animations, breakpoints, mq, spacing } from '@ndla/core';
|
|
10
|
-
import { useTranslation } from 'react-i18next';
|
|
11
|
-
import Image from '../Image';
|
|
12
12
|
import { Figure, FigureOpenDialogButton } from '../Figure';
|
|
13
|
+
import Image from '../Image';
|
|
13
14
|
|
|
14
15
|
const StyledImageWrapper = styled.div`
|
|
15
16
|
overflow: hidden;
|
package/src/Notion/index.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { useTranslation } from 'react-i18next';
|
|
1
10
|
import styled from '@emotion/styled';
|
|
2
11
|
import { breakpoints, mq, spacing } from '@ndla/core';
|
|
3
|
-
import { useTranslation } from 'react-i18next';
|
|
4
12
|
import { Heading } from '@ndla/typography';
|
|
5
|
-
import LayoutItem, { OneColumn } from '../Layout';
|
|
6
13
|
import ProgrammeSubjects, { GradesProps } from './ProgrammeSubjects';
|
|
14
|
+
import LayoutItem, { OneColumn } from '../Layout';
|
|
7
15
|
import MessageBox from '../Messages/MessageBox';
|
|
8
16
|
const StyledWrapper = styled.div`
|
|
9
17
|
display: flex;
|
|
@@ -11,8 +11,8 @@ import { useTranslation } from 'react-i18next';
|
|
|
11
11
|
import styled from '@emotion/styled';
|
|
12
12
|
import { spacing } from '@ndla/core';
|
|
13
13
|
import { SafeLinkButton } from '@ndla/safelink';
|
|
14
|
-
import { NavigationBox } from '../Navigation';
|
|
15
14
|
import { MessageBox } from '../Messages';
|
|
15
|
+
import { NavigationBox } from '../Navigation';
|
|
16
16
|
|
|
17
17
|
const GradesMenu = styled.ul`
|
|
18
18
|
display: flex;
|