@ndla/ui 29.0.0 → 30.0.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/Animation/DisplayOnPageYOffset.js +1 -1
- package/es/Animation/Fade.js +1 -1
- package/es/Article/Article.js +18 -14
- package/es/Article/ArticleAccessMessage.js +14 -10
- package/es/Article/ArticleByline.js +22 -14
- package/es/Article/ArticleContent.js +1 -1
- package/es/Article/ArticleFavoritesButton.js +1 -1
- package/es/Article/ArticleFootNotes.js +1 -1
- package/es/Article/ArticleHeaderWrapper.js +27 -19
- package/es/Article/ArticleNotions.js +22 -12
- package/es/Article/ArticleSideBar.js +26 -18
- package/es/Aside/Aside.js +1 -1
- package/es/AudioPlayer/AudioPlayer.js +67 -39
- package/es/AudioPlayer/Controls.js +137 -85
- package/es/AudioPlayer/SpeechControl.js +5 -3
- package/es/AudioPlayer/initAudioPlayers.js +1 -1
- package/es/AuthorInfo/AuthorInfo.js +14 -8
- package/es/BannerCard/BannerCard.js +29 -15
- package/es/BlogPosts/BlogPost.js +22 -14
- package/es/BlogPosts/BlogPostWrapper.js +7 -5
- package/es/Breadcrumb/ActionBreadcrumb.js +26 -10
- package/es/Breadcrumb/Breadcrumb.js +14 -10
- package/es/Breadcrumb/BreadcrumbItem.js +38 -26
- package/es/Breadcrumb/HeaderBreadcrumb.js +21 -7
- package/es/Breadcrumb/HomeBreadcrumb.js +37 -18
- package/es/Breadcrumblist/Breadcrumblist.js +37 -25
- package/es/CompetenceGoalTab/CompetenceGoalItem.js +42 -26
- package/es/CompetenceGoalTab/CompetenceGoalTab.js +26 -16
- package/es/CompetenceGoalTab/CompetenceItem.js +74 -54
- package/es/CompetenceGoalTab/SearchButton.js +10 -6
- package/es/CompetenceGoals/CompetenceGoalsDialog.js +17 -11
- package/es/ComponentCursor/ComponentCursor.js +54 -36
- package/es/ContentCard/ContentCard.js +35 -19
- package/es/ContentLoader/index.js +1 -1
- package/es/ContentPlaceholder/ContentPlaceholder.js +21 -15
- package/es/ContentTypeBadge/ContentTypeBadge.js +1 -1
- package/es/CopyParagraphButton/CopyParagraphButton.js +47 -35
- package/es/CopyParagraphButton/initCopyParagraphButtons.js +1 -1
- package/es/CreatedBy/CreatedBy.js +26 -18
- package/es/Dialog/Dialog.js +1 -1
- package/es/ErrorMessage/ErrorMessage.js +23 -15
- package/es/ErrorMessage/ErrorResourceAccessDenied.js +5 -3
- package/es/FactBox/FactBox.js +1 -1
- package/es/Figure/Figure.js +1 -1
- package/es/Figure/FigureBylineExpandButton.js +1 -1
- package/es/Figure/FigureExpandButton.js +1 -1
- package/es/Figure/FigureLicense.js +1 -1
- package/es/Figure/FigureLicenseDialog.js +1 -1
- package/es/Figure/FigureOpenDialogButton.js +1 -1
- package/es/FileList/File.js +17 -11
- package/es/FileList/FileList.js +17 -11
- package/es/Filter/FilterButtons.js +45 -27
- package/es/Filter/FilterCarousel.js +31 -25
- package/es/Filter/FilterList.js +1 -1
- package/es/Filter/FilterListPhone.js +1 -1
- package/es/Filter/ToggleItem.js +1 -1
- package/es/Footer/EditorName.js +1 -1
- package/es/Footer/Footer.js +37 -23
- package/es/Footer/FooterAuth.js +36 -15
- package/es/Footer/FooterLinks.js +31 -19
- package/es/Footer/FooterPrivacy.js +13 -9
- package/es/Footer/FooterText.js +8 -6
- package/es/Footer/privacy_en.js +1 -1
- package/es/Footer/privacy_nb.js +1 -1
- package/es/Footer/privacy_nn.js +1 -1
- package/es/Frontpage/FrontpageAllSubjects.js +46 -32
- package/es/Frontpage/FrontpageFilm.js +22 -12
- package/es/Frontpage/FrontpageHeader.js +18 -10
- package/es/Frontpage/FrontpageInfo.js +6 -4
- package/es/Frontpage/FrontpageMultidisciplinarySubject.js +38 -24
- package/es/Frontpage/FrontpageProgramMenu.js +55 -37
- package/es/Frontpage/FrontpageSearch.js +11 -7
- package/es/Frontpage/FrontpageToolbox.js +18 -10
- package/es/Frontpage/illustrations/Fellesfag.js +1 -1
- package/es/Frontpage/illustrations/FrontpageHeaderIllustration.js +1 -1
- package/es/Frontpage/illustrations/FrontpageIllustrations.js +13 -9
- package/es/Frontpage/illustrations/FrontpageSubjectIllustration.js +7 -7
- package/es/Frontpage/illustrations/MenuFellesfag.js +1 -1
- package/es/Frontpage/illustrations/MenuStudiespesialiserende.js +1 -1
- package/es/Frontpage/illustrations/MenuYrkesfag.js +1 -1
- package/es/Frontpage/illustrations/Studiespesialiserende.js +1 -1
- package/es/Frontpage/illustrations/Yrkesfag.js +1 -1
- package/es/Hero/Hero.js +1 -1
- package/es/Image/Image.js +9 -7
- package/es/Image/ImageLink.js +9 -7
- package/es/Image/LazyLoadImage.js +2 -2
- package/es/InfoBlock/InfoBlock.js +22 -12
- package/es/InfoBox/InfoBox.js +6 -4
- package/es/InfoWidget/InfoWidget.js +46 -28
- package/es/LanguageSelector/LanguageSelector.js +42 -21
- package/es/LanguageSelector/LanguageSelectorContent.js +18 -6
- package/es/Layout/Content.js +1 -1
- package/es/Layout/LayoutItem.js +1 -1
- package/es/Layout/OneColumn.js +1 -1
- package/es/Layout/PageContainer.js +1 -1
- package/es/LearningPaths/LearningPathContent.js +6 -4
- package/es/LearningPaths/LearningPathInformation.js +16 -10
- package/es/LearningPaths/LearningPathLastStepNavigation.js +26 -16
- package/es/LearningPaths/LearningPathMenu.js +19 -11
- package/es/LearningPaths/LearningPathMenuAside.js +35 -15
- package/es/LearningPaths/LearningPathMenuAsideCopyright.js +10 -6
- package/es/LearningPaths/LearningPathMenuContent.js +33 -21
- package/es/LearningPaths/LearningPathMenuIntro.js +39 -23
- package/es/LearningPaths/LearningPathMenuModalWrapper.js +8 -4
- package/es/LearningPaths/LearningPathMobileHeader.js +18 -6
- package/es/LearningPaths/LearningPathMobileStepInfo.js +5 -3
- package/es/LearningPaths/LearningPathSticky.js +21 -13
- package/es/LearningPaths/LearningPathWrapper.js +13 -7
- package/es/Logo/Logo.js +1 -1
- package/es/Logo/SvgLogo.js +1 -1
- package/es/Masthead/Masthead.js +32 -20
- package/es/Masthead/MastheadAuthModal.js +5 -3
- package/es/Masthead/MastheadSearchModal.js +20 -10
- package/es/Masthead/SkipToMainContent.js +5 -3
- package/es/MediaList/MediaList.js +1 -1
- package/es/Messages/MessageBanner.js +18 -12
- package/es/Messages/MessageBox.js +51 -29
- package/es/Messages/MessageBoxTag.js +9 -7
- package/es/MultidisciplinarySubject/Illustrations.js +28 -14
- package/es/MultidisciplinarySubject/List.js +19 -13
- package/es/MultidisciplinarySubject/ListItem.js +41 -27
- package/es/MultidisciplinarySubject/MultidisciplinarySubject.js +42 -28
- package/es/MultidisciplinarySubject/MultidisciplinarySubjectHeader.js +38 -26
- package/es/MyNdla/Resource/Folder.js +45 -19
- package/es/MyNdla/Resource/FolderInput.js +17 -6
- package/es/NDLAFilm/AboutNdlaFilm.js +7 -5
- package/es/NDLAFilm/AllMoviesAlphabetically.js +62 -42
- package/es/NDLAFilm/CategorySelect.js +17 -11
- package/es/NDLAFilm/FilmContentCard.js +15 -9
- package/es/NDLAFilm/FilmContentCardTags.js +10 -6
- package/es/NDLAFilm/FilmMovieList.js +5 -3
- package/es/NDLAFilm/FilmMovieSearch.js +10 -6
- package/es/NDLAFilm/FilmSlideshow.js +44 -32
- package/es/NDLAFilm/MovieGrid.js +11 -7
- package/es/NDLAFilm/NavigationArrow.js +25 -13
- package/es/NDLAFilm/SlideshowIndicator.js +12 -8
- package/es/NDLAFilm/VisualElement.js +9 -7
- package/es/NDLAFilm/filmStyles.js +7 -3
- package/es/Navigation/NavigationBox.js +120 -82
- package/es/Navigation/NavigationHeading.js +26 -20
- package/es/Navigation/NavigationTopicAbout.js +82 -64
- package/es/NoContentBox/NoContentBox.js +1 -1
- package/es/Notion/ConceptNotion.js +12 -6
- package/es/Notion/FigureNotion.js +11 -3
- package/es/Notion/Notion.js +26 -18
- package/es/Notion/NotionImage.js +10 -6
- package/es/Notion/NotionVisualElement.js +12 -10
- package/es/Portrait/Portrait.js +14 -4
- package/es/Programme/Programme.js +30 -20
- package/es/Programme/ProgrammeSubjects.js +6 -4
- package/es/RadioButtonGroup/RadioButtonGroup.js +20 -12
- package/es/RelatedArticleList/RelatedArticleList.js +1 -1
- package/es/Resource/BlockResource.js +32 -13
- package/es/Resource/ListResource.js +45 -24
- package/es/Resource/resourceComponents.js +61 -30
- package/es/ResourceBox/ResourceBox.js +27 -15
- package/es/ResourceGroup/ResourceGroup.js +13 -7
- package/es/ResourceGroup/ResourceItem.js +59 -29
- package/es/ResourceGroup/ResourceList.js +13 -7
- package/es/ResourcesWrapper/ResourcesTitle.js +1 -1
- package/es/ResourcesWrapper/ResourcesTopicTitle.js +31 -19
- package/es/ResourcesWrapper/ResourcesWrapper.js +1 -1
- package/es/Search/ActiveFilterContent.js +10 -6
- package/es/Search/ActiveFilters.js +36 -24
- package/es/Search/ContentTypeResult.js +2 -4
- package/es/Search/ContentTypeResultStyles.js +76 -32
- package/es/Search/LoadingWrapper.js +6 -4
- package/es/Search/SearchField.js +13 -7
- package/es/Search/SearchFieldForm.js +19 -9
- package/es/Search/SearchResult.js +46 -26
- package/es/Search/SearchResultSleeve.js +35 -19
- package/es/Search/ToggleSearchButton.js +10 -6
- package/es/SearchTypeResult/ActiveFilterContent.js +14 -10
- package/es/SearchTypeResult/ActiveFilters.js +36 -24
- package/es/SearchTypeResult/PopupFilter.js +41 -27
- package/es/SearchTypeResult/ResultNavigation.js +18 -10
- package/es/SearchTypeResult/SearchFieldHeader.js +22 -14
- package/es/SearchTypeResult/SearchFilterContent.js +14 -10
- package/es/SearchTypeResult/SearchHeader.js +34 -18
- package/es/SearchTypeResult/SearchItem.js +51 -37
- package/es/SearchTypeResult/SearchItemList.js +71 -44
- package/es/SearchTypeResult/SearchItems.js +16 -12
- package/es/SearchTypeResult/SearchNotionItem.js +63 -39
- package/es/SearchTypeResult/SearchNotionsResult.js +19 -11
- package/es/SearchTypeResult/SearchSubjectItem.js +14 -8
- package/es/SearchTypeResult/SearchSubjectResult.js +9 -7
- package/es/SearchTypeResult/SearchTypeHeader.js +41 -23
- package/es/SearchTypeResult/SearchTypeResult.js +11 -7
- package/es/SearchTypeResult/SearchViewType.js +22 -14
- package/es/SearchTypeResult/components/ItemContexts.js +33 -19
- package/es/SearchTypeResult/components/ItemResourceHeader.js +47 -25
- package/es/SearchTypeResult/components/ItemTopicHeader.js +33 -15
- package/es/SearchTypeResult/components/SubjectFilters.js +9 -7
- package/es/SectionHeading/SectionHeading.js +16 -8
- package/es/SnackBar/DefaultSnackbar.js +13 -7
- package/es/SnackBar/SnackbarProvider.js +17 -13
- package/es/Subject/Subject.js +64 -38
- package/es/Subject/SubjectAbout.js +46 -26
- package/es/Subject/SubjectArchive.js +54 -32
- package/es/Subject/SubjectBanner.js +7 -5
- package/es/Subject/SubjectCarousel.js +26 -14
- package/es/Subject/SubjectHeader.js +23 -13
- package/es/Subject/SubjectLinks.js +17 -11
- package/es/Subject/SubjectNewContent.js +39 -23
- package/es/Subject/SubjectShortcuts.js +22 -14
- package/es/Subject/SubjectSocial.js +10 -6
- package/es/Table/Table.js +1 -1
- package/es/TagSelector/Control.js +13 -4
- package/es/TagSelector/DropdownIndicator.js +5 -3
- package/es/TagSelector/Input.js +13 -4
- package/es/TagSelector/Menu.js +13 -4
- package/es/TagSelector/MenuList.js +12 -3
- package/es/TagSelector/Option.js +10 -6
- package/es/TagSelector/SelectContainer.js +13 -3
- package/es/TagSelector/TagSelector.js +15 -11
- package/es/TagSelector/ValueButton.js +5 -3
- package/es/ToolboxPage/ToolboxInfo.js +10 -6
- package/es/Topic/Loader.js +1 -1
- package/es/Topic/Topic.js +117 -83
- package/es/TopicIntroductionList/TopicIntroduction.js +1 -1
- package/es/TopicIntroductionList/TopicIntroductionList.js +1 -1
- package/es/TopicIntroductionList/TopicIntroductionShortcuts.js +1 -1
- package/es/TopicIntroductionList/TopicShortcutItem.js +1 -1
- package/es/TopicMenu/SubtopicLinkList.js +33 -19
- package/es/TopicMenu/TopicMenu.js +5 -3
- package/es/TopicMenu/TopicMenuButton.js +8 -4
- package/es/Translation/Translation.js +1 -1
- package/es/Translation/TranslationBox.js +1 -1
- package/es/Translation/TranslationLine.js +1 -1
- package/es/TreeStructure/AddFolderButton.js +14 -10
- package/es/TreeStructure/ComboboxButton.js +10 -6
- package/es/TreeStructure/FolderItem.js +27 -15
- package/es/TreeStructure/FolderItems.js +11 -7
- package/es/TreeStructure/NavigationLink.js +21 -10
- package/es/TreeStructure/TreeStructure.js +45 -27
- package/es/User/AuthModal.js +33 -19
- package/es/User/UserInfo.js +20 -10
- package/es/internal-icons/Book.js +1 -1
- package/es/internal-icons/Download.js +1 -1
- package/es/internal-icons/Embed.js +1 -1
- package/es/internal-icons/InsertTemplate.js +1 -1
- package/es/internal-icons/OpenWindow.js +1 -1
- package/es/locale/LocaleProvider.js +1 -1
- package/es/locale/messages-en.js +1 -1
- package/es/locale/messages-nb.js +1 -1
- package/es/locale/messages-nn.js +1 -1
- package/es/locale/messages-se.js +1 -1
- package/es/locale/messages-sma.js +1 -1
- package/es/utils/createUniversalPortal.js +1 -1
- package/lib/Animation/DisplayOnPageYOffset.d.ts +1 -1
- package/lib/Animation/DisplayOnPageYOffset.js +2 -2
- package/lib/Animation/Fade.d.ts +1 -1
- package/lib/Animation/Fade.js +2 -2
- package/lib/Article/Article.d.ts +3 -3
- package/lib/Article/Article.js +39 -35
- package/lib/Article/ArticleAccessMessage.d.ts +1 -2
- package/lib/Article/ArticleAccessMessage.js +15 -11
- package/lib/Article/ArticleByline.d.ts +1 -1
- package/lib/Article/ArticleByline.js +33 -25
- package/lib/Article/ArticleContent.d.ts +1 -2
- package/lib/Article/ArticleContent.js +2 -2
- package/lib/Article/ArticleFavoritesButton.d.ts +1 -2
- package/lib/Article/ArticleFavoritesButton.js +5 -5
- package/lib/Article/ArticleFootNotes.d.ts +1 -2
- package/lib/Article/ArticleFootNotes.js +7 -7
- package/lib/Article/ArticleHeaderWrapper.d.ts +2 -2
- package/lib/Article/ArticleHeaderWrapper.js +36 -28
- package/lib/Article/ArticleNotions.d.ts +1 -2
- package/lib/Article/ArticleNotions.js +33 -23
- package/lib/Article/ArticleSideBar.d.ts +1 -1
- package/lib/Article/ArticleSideBar.js +34 -26
- package/lib/Aside/Aside.d.ts +1 -1
- package/lib/Aside/Aside.js +2 -2
- package/lib/AudioPlayer/AudioPlayer.d.ts +1 -1
- package/lib/AudioPlayer/AudioPlayer.js +83 -55
- package/lib/AudioPlayer/Controls.d.ts +1 -2
- package/lib/AudioPlayer/Controls.js +161 -109
- package/lib/AudioPlayer/SpeechControl.d.ts +1 -2
- package/lib/AudioPlayer/SpeechControl.js +8 -6
- package/lib/AudioPlayer/initAudioPlayers.js +3 -3
- package/lib/AuthorInfo/AuthorInfo.d.ts +1 -2
- package/lib/AuthorInfo/AuthorInfo.js +16 -10
- package/lib/BannerCard/BannerCard.d.ts +1 -2
- package/lib/BannerCard/BannerCard.js +31 -17
- package/lib/BlogPosts/BlogPost.d.ts +1 -2
- package/lib/BlogPosts/BlogPost.js +26 -18
- package/lib/BlogPosts/BlogPostWrapper.d.ts +1 -1
- package/lib/BlogPosts/BlogPostWrapper.js +8 -6
- package/lib/Breadcrumb/ActionBreadcrumb.d.ts +1 -2
- package/lib/Breadcrumb/ActionBreadcrumb.js +31 -16
- package/lib/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/lib/Breadcrumb/Breadcrumb.js +17 -13
- package/lib/Breadcrumb/BreadcrumbItem.js +41 -29
- package/lib/Breadcrumb/HeaderBreadcrumb.d.ts +1 -2
- package/lib/Breadcrumb/HeaderBreadcrumb.js +24 -11
- package/lib/Breadcrumb/HomeBreadcrumb.d.ts +1 -2
- package/lib/Breadcrumb/HomeBreadcrumb.js +37 -25
- package/lib/Breadcrumblist/Breadcrumblist.d.ts +1 -1
- package/lib/Breadcrumblist/Breadcrumblist.js +51 -39
- package/lib/CompetenceGoalTab/CompetenceGoalItem.d.ts +1 -2
- package/lib/CompetenceGoalTab/CompetenceGoalItem.js +45 -29
- package/lib/CompetenceGoalTab/CompetenceGoalTab.d.ts +1 -2
- package/lib/CompetenceGoalTab/CompetenceGoalTab.js +32 -22
- package/lib/CompetenceGoalTab/CompetenceItem.d.ts +1 -2
- package/lib/CompetenceGoalTab/CompetenceItem.js +84 -64
- package/lib/CompetenceGoalTab/SearchButton.d.ts +1 -2
- package/lib/CompetenceGoalTab/SearchButton.js +13 -9
- package/lib/CompetenceGoals/CompetenceGoalsDialog.d.ts +1 -1
- package/lib/CompetenceGoals/CompetenceGoalsDialog.js +22 -16
- package/lib/ComponentCursor/ComponentCursor.d.ts +1 -2
- package/lib/ComponentCursor/ComponentCursor.js +59 -41
- package/lib/ContentCard/ContentCard.d.ts +1 -2
- package/lib/ContentCard/ContentCard.js +39 -23
- package/lib/ContentLoader/index.d.ts +1 -1
- package/lib/ContentLoader/index.js +11 -11
- package/lib/ContentPlaceholder/ContentPlaceholder.d.ts +1 -2
- package/lib/ContentPlaceholder/ContentPlaceholder.js +22 -16
- package/lib/ContentTypeBadge/ContentTypeBadge.d.ts +9 -10
- package/lib/ContentTypeBadge/ContentTypeBadge.js +19 -19
- package/lib/CopyParagraphButton/CopyParagraphButton.d.ts +1 -2
- package/lib/CopyParagraphButton/CopyParagraphButton.js +47 -35
- package/lib/CopyParagraphButton/initCopyParagraphButtons.js +2 -2
- package/lib/CreatedBy/CreatedBy.d.ts +1 -2
- package/lib/CreatedBy/CreatedBy.js +29 -21
- package/lib/Dialog/Dialog.d.ts +1 -1
- package/lib/Dialog/Dialog.js +4 -4
- package/lib/ErrorMessage/ErrorMessage.d.ts +1 -1
- package/lib/ErrorMessage/ErrorMessage.js +31 -25
- package/lib/ErrorMessage/ErrorResourceAccessDenied.d.ts +1 -2
- package/lib/ErrorMessage/ErrorResourceAccessDenied.js +10 -8
- package/lib/FactBox/FactBox.d.ts +1 -1
- package/lib/FactBox/FactBox.js +4 -4
- package/lib/Figure/Figure.d.ts +2 -2
- package/lib/Figure/Figure.js +10 -10
- package/lib/Figure/FigureBylineExpandButton.d.ts +1 -2
- package/lib/Figure/FigureBylineExpandButton.js +4 -4
- package/lib/Figure/FigureExpandButton.d.ts +1 -2
- package/lib/Figure/FigureExpandButton.js +4 -4
- package/lib/Figure/FigureLicense.d.ts +2 -2
- package/lib/Figure/FigureLicense.js +7 -7
- package/lib/Figure/FigureLicenseDialog.d.ts +1 -1
- package/lib/Figure/FigureLicenseDialog.js +5 -5
- package/lib/Figure/FigureOpenDialogButton.d.ts +1 -2
- package/lib/Figure/FigureOpenDialogButton.js +7 -7
- package/lib/FileList/File.d.ts +1 -2
- package/lib/FileList/File.js +23 -17
- package/lib/FileList/FileList.d.ts +1 -2
- package/lib/FileList/FileList.js +19 -13
- package/lib/Filter/FilterButtons.d.ts +1 -2
- package/lib/Filter/FilterButtons.js +64 -46
- package/lib/Filter/FilterCarousel.d.ts +1 -1
- package/lib/Filter/FilterCarousel.js +37 -31
- package/lib/Filter/FilterList.d.ts +1 -1
- package/lib/Filter/FilterList.js +5 -5
- package/lib/Filter/FilterListPhone.d.ts +1 -2
- package/lib/Filter/FilterListPhone.js +19 -19
- package/lib/Filter/ToggleItem.d.ts +1 -1
- package/lib/Filter/ToggleItem.js +4 -4
- package/lib/Footer/EditorName.d.ts +1 -2
- package/lib/Footer/EditorName.js +2 -2
- package/lib/Footer/Footer.d.ts +1 -1
- package/lib/Footer/Footer.js +43 -29
- package/lib/Footer/FooterAuth.d.ts +1 -2
- package/lib/Footer/FooterAuth.js +38 -24
- package/lib/Footer/FooterLinks.d.ts +1 -1
- package/lib/Footer/FooterLinks.js +38 -26
- package/lib/Footer/FooterPrivacy.d.ts +1 -2
- package/lib/Footer/FooterPrivacy.js +21 -17
- package/lib/Footer/FooterText.d.ts +1 -1
- package/lib/Footer/FooterText.js +9 -7
- package/lib/Footer/privacy_en.d.ts +1 -2
- package/lib/Footer/privacy_en.js +2 -2
- package/lib/Footer/privacy_nb.d.ts +1 -2
- package/lib/Footer/privacy_nb.js +2 -2
- package/lib/Footer/privacy_nn.d.ts +1 -2
- package/lib/Footer/privacy_nn.js +2 -2
- package/lib/Frontpage/FrontpageAllSubjects.d.ts +1 -2
- package/lib/Frontpage/FrontpageAllSubjects.js +55 -41
- package/lib/Frontpage/FrontpageFilm.d.ts +1 -1
- package/lib/Frontpage/FrontpageFilm.js +39 -29
- package/lib/Frontpage/FrontpageHeader.d.ts +1 -1
- package/lib/Frontpage/FrontpageHeader.js +22 -14
- package/lib/Frontpage/FrontpageInfo.d.ts +1 -1
- package/lib/Frontpage/FrontpageInfo.js +7 -5
- package/lib/Frontpage/FrontpageMultidisciplinarySubject.d.ts +21 -6
- package/lib/Frontpage/FrontpageMultidisciplinarySubject.js +46 -32
- package/lib/Frontpage/FrontpageProgramMenu.d.ts +1 -2
- package/lib/Frontpage/FrontpageProgramMenu.js +61 -43
- package/lib/Frontpage/FrontpageSearch.d.ts +1 -1
- package/lib/Frontpage/FrontpageSearch.js +16 -12
- package/lib/Frontpage/FrontpageToolbox.d.ts +1 -1
- package/lib/Frontpage/FrontpageToolbox.js +23 -15
- package/lib/Frontpage/illustrations/Fellesfag.d.ts +1 -2
- package/lib/Frontpage/illustrations/Fellesfag.js +15 -15
- package/lib/Frontpage/illustrations/FrontpageHeaderIllustration.d.ts +1 -2
- package/lib/Frontpage/illustrations/FrontpageHeaderIllustration.js +31 -31
- package/lib/Frontpage/illustrations/FrontpageIllustrations.d.ts +8 -2
- package/lib/Frontpage/illustrations/FrontpageIllustrations.js +13 -9
- package/lib/Frontpage/illustrations/FrontpageSubjectIllustration.d.ts +1 -2
- package/lib/Frontpage/illustrations/FrontpageSubjectIllustration.js +47 -47
- package/lib/Frontpage/illustrations/MenuFellesfag.d.ts +1 -2
- package/lib/Frontpage/illustrations/MenuFellesfag.js +16 -16
- package/lib/Frontpage/illustrations/MenuStudiespesialiserende.d.ts +1 -2
- package/lib/Frontpage/illustrations/MenuStudiespesialiserende.js +13 -13
- package/lib/Frontpage/illustrations/MenuYrkesfag.d.ts +1 -2
- package/lib/Frontpage/illustrations/MenuYrkesfag.js +20 -20
- package/lib/Frontpage/illustrations/Studiespesialiserende.d.ts +1 -2
- package/lib/Frontpage/illustrations/Studiespesialiserende.js +13 -13
- package/lib/Frontpage/illustrations/Yrkesfag.d.ts +1 -2
- package/lib/Frontpage/illustrations/Yrkesfag.js +19 -19
- package/lib/Frontpage/illustrations/index.d.ts +6 -7
- package/lib/Hero/Hero.d.ts +8 -8
- package/lib/Hero/Hero.js +9 -9
- package/lib/Image/Image.d.ts +1 -1
- package/lib/Image/Image.js +13 -11
- package/lib/Image/ImageLink.d.ts +1 -1
- package/lib/Image/ImageLink.js +10 -8
- package/lib/Image/LazyLoadImage.d.ts +1 -2
- package/lib/Image/LazyLoadImage.js +4 -4
- package/lib/InfoBlock/InfoBlock.d.ts +1 -1
- package/lib/InfoBlock/InfoBlock.js +23 -13
- package/lib/InfoBox/InfoBox.d.ts +1 -1
- package/lib/InfoBox/InfoBox.js +7 -5
- package/lib/InfoWidget/InfoWidget.d.ts +1 -1
- package/lib/InfoWidget/InfoWidget.js +56 -38
- package/lib/LanguageSelector/LanguageSelector.d.ts +1 -2
- package/lib/LanguageSelector/LanguageSelector.js +51 -30
- package/lib/LanguageSelector/LanguageSelectorContent.d.ts +1 -2
- package/lib/LanguageSelector/LanguageSelectorContent.js +21 -10
- package/lib/Layout/Content.d.ts +1 -1
- package/lib/Layout/Content.js +2 -2
- package/lib/Layout/LayoutItem.d.ts +1 -1
- package/lib/Layout/LayoutItem.js +5 -5
- package/lib/Layout/OneColumn.d.ts +1 -1
- package/lib/Layout/OneColumn.js +2 -2
- package/lib/Layout/PageContainer.d.ts +1 -1
- package/lib/Layout/PageContainer.js +2 -2
- package/lib/LearningPaths/LearningPathContent.d.ts +1 -1
- package/lib/LearningPaths/LearningPathContent.js +7 -5
- package/lib/LearningPaths/LearningPathInformation.d.ts +1 -2
- package/lib/LearningPaths/LearningPathInformation.js +21 -15
- package/lib/LearningPaths/LearningPathLastStepNavigation.d.ts +1 -1
- package/lib/LearningPaths/LearningPathLastStepNavigation.js +32 -22
- package/lib/LearningPaths/LearningPathMenu.d.ts +1 -2
- package/lib/LearningPaths/LearningPathMenu.js +38 -30
- package/lib/LearningPaths/LearningPathMenuAside.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMenuAside.js +49 -29
- package/lib/LearningPaths/LearningPathMenuAsideCopyright.d.ts +1 -2
- package/lib/LearningPaths/LearningPathMenuAsideCopyright.js +13 -9
- package/lib/LearningPaths/LearningPathMenuContent.d.ts +1 -2
- package/lib/LearningPaths/LearningPathMenuContent.js +53 -41
- package/lib/LearningPaths/LearningPathMenuIntro.d.ts +1 -2
- package/lib/LearningPaths/LearningPathMenuIntro.js +48 -32
- package/lib/LearningPaths/LearningPathMenuModalWrapper.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMenuModalWrapper.js +13 -9
- package/lib/LearningPaths/LearningPathMobileHeader.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMobileHeader.js +19 -8
- package/lib/LearningPaths/LearningPathMobileStepInfo.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMobileStepInfo.js +6 -4
- package/lib/LearningPaths/LearningPathSticky.d.ts +3 -3
- package/lib/LearningPaths/LearningPathSticky.js +37 -29
- package/lib/LearningPaths/LearningPathWrapper.d.ts +1 -1
- package/lib/LearningPaths/LearningPathWrapper.js +17 -11
- package/lib/Logo/Logo.d.ts +1 -2
- package/lib/Logo/Logo.js +5 -5
- package/lib/Logo/SvgLogo.d.ts +1 -2
- package/lib/Logo/SvgLogo.js +8 -8
- package/lib/Masthead/Masthead.d.ts +2 -2
- package/lib/Masthead/Masthead.js +48 -36
- package/lib/Masthead/MastheadAuthModal.d.ts +1 -2
- package/lib/Masthead/MastheadAuthModal.js +8 -6
- package/lib/Masthead/MastheadSearchModal.d.ts +1 -1
- package/lib/Masthead/MastheadSearchModal.js +40 -30
- package/lib/Masthead/SkipToMainContent.d.ts +1 -2
- package/lib/Masthead/SkipToMainContent.js +6 -4
- package/lib/MediaList/MediaList.d.ts +8 -8
- package/lib/MediaList/MediaList.js +15 -15
- package/lib/Messages/MessageBanner.d.ts +1 -2
- package/lib/Messages/MessageBanner.js +21 -15
- package/lib/Messages/MessageBox.d.ts +2 -2
- package/lib/Messages/MessageBox.js +60 -38
- package/lib/Messages/MessageBoxTag.d.ts +1 -2
- package/lib/Messages/MessageBoxTag.js +10 -8
- package/lib/MultidisciplinarySubject/Illustrations.d.ts +28 -7
- package/lib/MultidisciplinarySubject/Illustrations.js +28 -14
- package/lib/MultidisciplinarySubject/List.d.ts +1 -2
- package/lib/MultidisciplinarySubject/List.js +21 -15
- package/lib/MultidisciplinarySubject/ListItem.d.ts +1 -2
- package/lib/MultidisciplinarySubject/ListItem.js +45 -31
- package/lib/MultidisciplinarySubject/MultidisciplinarySubject.d.ts +1 -1
- package/lib/MultidisciplinarySubject/MultidisciplinarySubject.js +47 -33
- package/lib/MultidisciplinarySubject/MultidisciplinarySubjectHeader.d.ts +1 -2
- package/lib/MultidisciplinarySubject/MultidisciplinarySubjectHeader.js +47 -35
- package/lib/MyNdla/Resource/Folder.d.ts +1 -2
- package/lib/MyNdla/Resource/Folder.js +53 -28
- package/lib/MyNdla/Resource/FolderInput.d.ts +1 -1
- package/lib/MyNdla/Resource/FolderInput.js +15 -11
- package/lib/NDLAFilm/AboutNdlaFilm.d.ts +1 -1
- package/lib/NDLAFilm/AboutNdlaFilm.js +14 -12
- package/lib/NDLAFilm/AllMoviesAlphabetically.d.ts +1 -2
- package/lib/NDLAFilm/AllMoviesAlphabetically.js +80 -60
- package/lib/NDLAFilm/CategorySelect.js +31 -25
- package/lib/NDLAFilm/FilmContentCard.d.ts +1 -2
- package/lib/NDLAFilm/FilmContentCard.js +20 -14
- package/lib/NDLAFilm/FilmContentCardTags.d.ts +1 -2
- package/lib/NDLAFilm/FilmContentCardTags.js +12 -8
- package/lib/NDLAFilm/FilmMovieList.d.ts +1 -2
- package/lib/NDLAFilm/FilmMovieList.js +8 -6
- package/lib/NDLAFilm/FilmMovieSearch.d.ts +1 -2
- package/lib/NDLAFilm/FilmMovieSearch.js +17 -13
- package/lib/NDLAFilm/FilmSlideshow.d.ts +1 -2
- package/lib/NDLAFilm/FilmSlideshow.js +91 -79
- package/lib/NDLAFilm/MovieGrid.d.ts +1 -2
- package/lib/NDLAFilm/MovieGrid.js +15 -11
- package/lib/NDLAFilm/NavigationArrow.d.ts +5 -2
- package/lib/NDLAFilm/NavigationArrow.js +27 -15
- package/lib/NDLAFilm/SlideshowIndicator.d.ts +1 -2
- package/lib/NDLAFilm/SlideshowIndicator.js +15 -11
- package/lib/NDLAFilm/VisualElement.d.ts +1 -2
- package/lib/NDLAFilm/VisualElement.js +11 -9
- package/lib/NDLAFilm/filmStyles.d.ts +8 -2
- package/lib/NDLAFilm/filmStyles.js +7 -3
- package/lib/Navigation/NavigationBox.d.ts +1 -1
- package/lib/Navigation/NavigationBox.js +128 -90
- package/lib/Navigation/NavigationHeading.d.ts +1 -1
- package/lib/Navigation/NavigationHeading.js +35 -29
- package/lib/Navigation/NavigationTopicAbout.d.ts +1 -1
- package/lib/Navigation/NavigationTopicAbout.js +88 -70
- package/lib/NoContentBox/NoContentBox.d.ts +1 -2
- package/lib/NoContentBox/NoContentBox.js +2 -2
- package/lib/Notion/ConceptNotion.d.ts +1 -2
- package/lib/Notion/ConceptNotion.js +16 -16
- package/lib/Notion/FigureNotion.d.ts +1 -1
- package/lib/Notion/FigureNotion.js +10 -8
- package/lib/Notion/Notion.d.ts +1 -1
- package/lib/Notion/Notion.js +31 -23
- package/lib/Notion/NotionImage.d.ts +1 -2
- package/lib/Notion/NotionImage.js +13 -9
- package/lib/Notion/NotionVisualElement.d.ts +1 -1
- package/lib/Notion/NotionVisualElement.js +16 -14
- package/lib/Portrait/Portrait.d.ts +1 -2
- package/lib/Portrait/Portrait.js +15 -6
- package/lib/Programme/Programme.d.ts +1 -2
- package/lib/Programme/Programme.js +34 -24
- package/lib/Programme/ProgrammeSubjects.d.ts +1 -2
- package/lib/Programme/ProgrammeSubjects.js +10 -8
- package/lib/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
- package/lib/RadioButtonGroup/RadioButtonGroup.js +25 -17
- package/lib/RelatedArticleList/RelatedArticleList.d.ts +2 -2
- package/lib/RelatedArticleList/RelatedArticleList.js +7 -7
- package/lib/Resource/BlockResource.d.ts +1 -2
- package/lib/Resource/BlockResource.js +41 -29
- package/lib/Resource/ListResource.d.ts +1 -2
- package/lib/Resource/ListResource.js +60 -46
- package/lib/Resource/resourceComponents.d.ts +18 -7
- package/lib/Resource/resourceComponents.js +65 -41
- package/lib/ResourceBox/ResourceBox.d.ts +1 -2
- package/lib/ResourceBox/ResourceBox.js +30 -18
- package/lib/ResourceGroup/ResourceGroup.d.ts +1 -2
- package/lib/ResourceGroup/ResourceGroup.js +15 -9
- package/lib/ResourceGroup/ResourceItem.d.ts +1 -2
- package/lib/ResourceGroup/ResourceItem.js +89 -59
- package/lib/ResourceGroup/ResourceList.d.ts +1 -2
- package/lib/ResourceGroup/ResourceList.js +15 -9
- package/lib/ResourcesWrapper/ResourcesTitle.d.ts +1 -1
- package/lib/ResourcesWrapper/ResourcesTitle.js +3 -3
- package/lib/ResourcesWrapper/ResourcesTopicTitle.d.ts +1 -2
- package/lib/ResourcesWrapper/ResourcesTopicTitle.js +43 -31
- package/lib/ResourcesWrapper/ResourcesWrapper.d.ts +1 -1
- package/lib/ResourcesWrapper/ResourcesWrapper.js +3 -3
- package/lib/Search/ActiveFilterContent.d.ts +5 -2
- package/lib/Search/ActiveFilterContent.js +12 -8
- package/lib/Search/ActiveFilters.d.ts +1 -2
- package/lib/Search/ActiveFilters.js +46 -34
- package/lib/Search/ContentTypeResult.d.ts +1 -2
- package/lib/Search/ContentTypeResult.js +15 -17
- package/lib/Search/ContentTypeResultStyles.d.ts +24 -6
- package/lib/Search/ContentTypeResultStyles.js +84 -40
- package/lib/Search/LoadingWrapper.d.ts +1 -2
- package/lib/Search/LoadingWrapper.js +7 -5
- package/lib/Search/SearchField.d.ts +1 -1
- package/lib/Search/SearchField.js +25 -19
- package/lib/Search/SearchFieldForm.d.ts +1 -1
- package/lib/Search/SearchFieldForm.js +21 -11
- package/lib/Search/SearchResult.d.ts +2 -2
- package/lib/Search/SearchResult.js +61 -41
- package/lib/Search/SearchResultSleeve.d.ts +1 -2
- package/lib/Search/SearchResultSleeve.js +46 -30
- package/lib/Search/ToggleSearchButton.d.ts +1 -2
- package/lib/Search/ToggleSearchButton.js +12 -8
- package/lib/SearchTypeResult/ActiveFilterContent.d.ts +5 -2
- package/lib/SearchTypeResult/ActiveFilterContent.js +16 -12
- package/lib/SearchTypeResult/ActiveFilters.d.ts +1 -1
- package/lib/SearchTypeResult/ActiveFilters.js +53 -41
- package/lib/SearchTypeResult/PopupFilter.d.ts +1 -2
- package/lib/SearchTypeResult/PopupFilter.js +50 -36
- package/lib/SearchTypeResult/ResultNavigation.d.ts +1 -2
- package/lib/SearchTypeResult/ResultNavigation.js +22 -14
- package/lib/SearchTypeResult/SearchFieldHeader.d.ts +1 -1
- package/lib/SearchTypeResult/SearchFieldHeader.js +29 -21
- package/lib/SearchTypeResult/SearchFilterContent.d.ts +1 -2
- package/lib/SearchTypeResult/SearchFilterContent.js +16 -12
- package/lib/SearchTypeResult/SearchHeader.d.ts +1 -1
- package/lib/SearchTypeResult/SearchHeader.js +40 -24
- package/lib/SearchTypeResult/SearchItem.d.ts +1 -1
- package/lib/SearchTypeResult/SearchItem.js +58 -44
- package/lib/SearchTypeResult/SearchItemList.d.ts +1 -2
- package/lib/SearchTypeResult/SearchItemList.js +79 -52
- package/lib/SearchTypeResult/SearchItems.d.ts +1 -1
- package/lib/SearchTypeResult/SearchItems.js +18 -14
- package/lib/SearchTypeResult/SearchNotionItem.d.ts +1 -1
- package/lib/SearchTypeResult/SearchNotionItem.js +75 -51
- package/lib/SearchTypeResult/SearchNotionsResult.d.ts +1 -1
- package/lib/SearchTypeResult/SearchNotionsResult.js +21 -13
- package/lib/SearchTypeResult/SearchSubjectItem.d.ts +1 -2
- package/lib/SearchTypeResult/SearchSubjectItem.js +16 -10
- package/lib/SearchTypeResult/SearchSubjectResult.d.ts +1 -2
- package/lib/SearchTypeResult/SearchSubjectResult.js +11 -9
- package/lib/SearchTypeResult/SearchTypeHeader.d.ts +1 -1
- package/lib/SearchTypeResult/SearchTypeHeader.js +47 -29
- package/lib/SearchTypeResult/SearchTypeResult.d.ts +1 -1
- package/lib/SearchTypeResult/SearchTypeResult.js +14 -10
- package/lib/SearchTypeResult/SearchViewType.d.ts +1 -2
- package/lib/SearchTypeResult/SearchViewType.js +28 -20
- package/lib/SearchTypeResult/components/ItemContexts.d.ts +1 -2
- package/lib/SearchTypeResult/components/ItemContexts.js +46 -32
- package/lib/SearchTypeResult/components/ItemResourceHeader.d.ts +1 -2
- package/lib/SearchTypeResult/components/ItemResourceHeader.js +50 -29
- package/lib/SearchTypeResult/components/ItemTopicHeader.d.ts +1 -1
- package/lib/SearchTypeResult/components/ItemTopicHeader.js +35 -24
- package/lib/SearchTypeResult/components/SubjectFilters.d.ts +1 -2
- package/lib/SearchTypeResult/components/SubjectFilters.js +14 -12
- package/lib/SectionHeading/SectionHeading.d.ts +1 -1
- package/lib/SectionHeading/SectionHeading.js +21 -13
- package/lib/SnackBar/DefaultSnackbar.d.ts +1 -2
- package/lib/SnackBar/DefaultSnackbar.js +15 -9
- package/lib/SnackBar/SnackbarProvider.d.ts +2 -2
- package/lib/SnackBar/SnackbarProvider.js +27 -23
- package/lib/Subject/Subject.d.ts +8 -8
- package/lib/Subject/Subject.js +97 -71
- package/lib/Subject/SubjectAbout.d.ts +1 -1
- package/lib/Subject/SubjectAbout.js +63 -43
- package/lib/Subject/SubjectArchive.d.ts +1 -1
- package/lib/Subject/SubjectArchive.js +65 -43
- package/lib/Subject/SubjectBanner.d.ts +1 -2
- package/lib/Subject/SubjectBanner.js +8 -6
- package/lib/Subject/SubjectCarousel.d.ts +1 -1
- package/lib/Subject/SubjectCarousel.js +43 -31
- package/lib/Subject/SubjectHeader.d.ts +1 -2
- package/lib/Subject/SubjectHeader.js +39 -29
- package/lib/Subject/SubjectLinks.d.ts +1 -2
- package/lib/Subject/SubjectLinks.js +20 -14
- package/lib/Subject/SubjectNewContent.d.ts +1 -2
- package/lib/Subject/SubjectNewContent.js +42 -26
- package/lib/Subject/SubjectShortcuts.d.ts +1 -1
- package/lib/Subject/SubjectShortcuts.js +28 -20
- package/lib/Subject/SubjectSocial.d.ts +2 -2
- package/lib/Subject/SubjectSocial.js +12 -8
- package/lib/Table/Table.d.ts +1 -1
- package/lib/Table/Table.js +5 -5
- package/lib/TagSelector/Control.d.ts +1 -2
- package/lib/TagSelector/Control.js +7 -5
- package/lib/TagSelector/DropdownIndicator.d.ts +1 -2
- package/lib/TagSelector/DropdownIndicator.js +8 -6
- package/lib/TagSelector/Input.d.ts +1 -2
- package/lib/TagSelector/Input.js +8 -6
- package/lib/TagSelector/Menu.d.ts +1 -2
- package/lib/TagSelector/Menu.js +8 -6
- package/lib/TagSelector/MenuList.d.ts +5 -2
- package/lib/TagSelector/MenuList.js +6 -4
- package/lib/TagSelector/Option.d.ts +1 -2
- package/lib/TagSelector/Option.js +12 -8
- package/lib/TagSelector/SelectContainer.d.ts +1 -2
- package/lib/TagSelector/SelectContainer.js +13 -4
- package/lib/TagSelector/TagSelector.d.ts +1 -2
- package/lib/TagSelector/TagSelector.js +18 -14
- package/lib/TagSelector/ValueButton.d.ts +5 -2
- package/lib/TagSelector/ValueButton.js +8 -6
- package/lib/ToolboxPage/ToolboxInfo.d.ts +1 -1
- package/lib/ToolboxPage/ToolboxInfo.js +11 -7
- package/lib/Topic/Loader.d.ts +1 -2
- package/lib/Topic/Loader.js +15 -15
- package/lib/Topic/Topic.d.ts +1 -1
- package/lib/Topic/Topic.js +132 -98
- package/lib/TopicIntroductionList/TopicIntroduction.d.ts +1 -2
- package/lib/TopicIntroductionList/TopicIntroduction.js +15 -15
- package/lib/TopicIntroductionList/TopicIntroductionList.d.ts +1 -2
- package/lib/TopicIntroductionList/TopicIntroductionList.js +4 -4
- package/lib/TopicIntroductionList/TopicIntroductionShortcuts.d.ts +1 -2
- package/lib/TopicIntroductionList/TopicIntroductionShortcuts.js +7 -7
- package/lib/TopicIntroductionList/TopicShortcutItem.d.ts +1 -2
- package/lib/TopicIntroductionList/TopicShortcutItem.js +5 -5
- package/lib/TopicMenu/SubtopicLinkList.js +50 -36
- package/lib/TopicMenu/TopicMenu.js +32 -30
- package/lib/TopicMenu/TopicMenuButton.js +11 -7
- package/lib/Translation/Translation.d.ts +1 -1
- package/lib/Translation/Translation.js +2 -2
- package/lib/Translation/TranslationBox.d.ts +1 -1
- package/lib/Translation/TranslationBox.js +4 -4
- package/lib/Translation/TranslationLine.d.ts +1 -1
- package/lib/Translation/TranslationLine.js +5 -5
- package/lib/TreeStructure/AddFolderButton.d.ts +1 -2
- package/lib/TreeStructure/AddFolderButton.js +17 -13
- package/lib/TreeStructure/ComboboxButton.js +14 -10
- package/lib/TreeStructure/FolderItem.d.ts +1 -2
- package/lib/TreeStructure/FolderItem.js +32 -20
- package/lib/TreeStructure/FolderItems.d.ts +1 -1
- package/lib/TreeStructure/FolderItems.js +17 -13
- package/lib/TreeStructure/NavigationLink.d.ts +1 -2
- package/lib/TreeStructure/NavigationLink.js +16 -12
- package/lib/TreeStructure/TreeStructure.d.ts +1 -2
- package/lib/TreeStructure/TreeStructure.js +51 -33
- package/lib/User/AuthModal.d.ts +1 -1
- package/lib/User/AuthModal.js +42 -28
- package/lib/User/UserInfo.d.ts +1 -2
- package/lib/User/UserInfo.js +24 -20
- package/lib/internal-icons/Book.js +3 -3
- package/lib/internal-icons/Download.js +3 -3
- package/lib/internal-icons/Embed.js +3 -3
- package/lib/internal-icons/InsertTemplate.js +3 -3
- package/lib/internal-icons/OpenWindow.js +3 -3
- package/lib/locale/LocaleProvider.d.ts +1 -1
- package/lib/locale/LocaleProvider.js +4 -4
- package/lib/locale/messages-en.js +1 -1
- package/lib/locale/messages-nb.js +1 -1
- package/lib/locale/messages-nn.js +1 -1
- package/lib/locale/messages-se.js +1 -1
- package/lib/locale/messages-sma.js +1 -1
- package/lib/utils/createUniversalPortal.d.ts +1 -1
- package/lib/utils/createUniversalPortal.js +2 -2
- package/package.json +18 -18
- package/src/Breadcrumb/BreadcrumbItem.tsx +1 -1
- package/src/ComponentCursor/ComponentCursor.tsx +1 -1
- package/src/CopyParagraphButton/CopyParagraphButton.tsx +21 -19
- package/src/Filter/FilterCarousel.tsx +1 -1
- package/src/Frontpage/FrontpageFilm.tsx +1 -1
- package/src/Frontpage/illustrations/FrontpageSubjectIllustration.tsx +1 -1
- package/src/Image/LazyLoadImage.tsx +0 -1
- package/src/Image/__tests__/Image-test.jsx +8 -7
- package/src/Image/__tests__/__snapshots__/Image-test.jsx.snap +8 -20
- package/src/InfoWidget/InfoWidget.tsx +1 -1
- package/src/LanguageSelector/LanguageSelector.tsx +1 -1
- package/src/LearningPaths/LearningPathLastStepNavigation.tsx +1 -1
- package/src/LearningPaths/LearningPathMenu.tsx +1 -1
- package/src/LearningPaths/LearningPathMenuAside.tsx +1 -1
- package/src/LearningPaths/LearningPathMenuContent.tsx +1 -1
- package/src/LearningPaths/LearningPathMenuIntro.tsx +1 -1
- package/src/LearningPaths/LearningPathMenuModalWrapper.tsx +1 -1
- package/src/LearningPaths/LearningPathSticky.tsx +1 -1
- package/src/LearningPaths/LearningPathWrapper.tsx +1 -1
- package/src/Masthead/Masthead.tsx +1 -1
- package/src/Masthead/MastheadSearchModal.tsx +1 -1
- package/src/Messages/MessageBox.tsx +1 -1
- package/src/MyNdla/Resource/Folder.tsx +1 -1
- package/src/NDLAFilm/AllMoviesAlphabetically.tsx +1 -1
- package/src/NDLAFilm/CategorySelect.tsx +1 -1
- package/src/NDLAFilm/FilmSlideshow.tsx +1 -1
- package/src/NDLAFilm/NavigationArrow.tsx +1 -1
- package/src/Navigation/NavigationBox.tsx +1 -1
- package/src/Navigation/NavigationHeading.tsx +1 -1
- package/src/Navigation/NavigationTopicAbout.tsx +1 -1
- package/src/Notion/ConceptNotion.tsx +0 -2
- package/src/Notion/NotionVisualElement.tsx +1 -1
- package/src/ResourceGroup/ResourceItem.tsx +2 -2
- package/src/ResourceGroup/ResourceList.tsx +2 -2
- package/src/ResourcesWrapper/ResourcesTopicTitle.tsx +1 -1
- package/src/Search/ActiveFilters.tsx +1 -1
- package/src/Search/ContentTypeResultStyles.tsx +1 -1
- package/src/Search/SearchField.tsx +1 -1
- package/src/Search/SearchFieldForm.tsx +1 -1
- package/src/SearchTypeResult/ActiveFilters.tsx +1 -1
- package/src/SearchTypeResult/SearchItem.tsx +6 -49
- package/src/SearchTypeResult/SearchItemList.tsx +12 -19
- package/src/SearchTypeResult/components/ItemResourceHeader.tsx +19 -23
- package/src/SearchTypeResult/components/ItemTopicHeader.tsx +3 -5
- package/src/SectionHeading/SectionHeading.tsx +1 -1
- package/src/SnackBar/SnackbarProvider.tsx +1 -1
- package/src/Subject/Subject.tsx +1 -1
- package/src/Subject/SubjectAbout.tsx +1 -1
- package/src/Subject/SubjectCarousel.tsx +1 -1
- package/src/Subject/SubjectHeader.tsx +1 -1
- package/src/TagSelector/Input.tsx +1 -1
- package/src/TagSelector/Menu.tsx +1 -1
- package/src/Topic/Topic.tsx +1 -1
- package/src/TopicMenu/SubtopicLinkList.jsx +1 -1
- package/src/TopicMenu/TopicMenuButton.jsx +1 -1
- package/src/TreeStructure/TreeStructure.tsx +1 -1
- package/src/locale/messages-en.ts +1 -1
- package/src/locale/messages-nb.ts +1 -1
- package/src/locale/messages-nn.ts +1 -1
- package/src/locale/messages-se.ts +1 -1
- package/src/locale/messages-sma.ts +1 -1
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _react2 = require("@emotion/react");
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
|
|
@@ -19,72 +19,72 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
var Illustration = function Illustration() {
|
|
22
|
-
return (0,
|
|
22
|
+
return (0, _react2.jsx)("svg", {
|
|
23
23
|
width: "90px",
|
|
24
24
|
height: "90px",
|
|
25
25
|
viewBox: "0 0 90 90",
|
|
26
26
|
version: "1.1",
|
|
27
27
|
xmlns: "http://www.w3.org/2000/svg"
|
|
28
|
-
}, (0,
|
|
28
|
+
}, (0, _react2.jsx)("g", {
|
|
29
29
|
id: "Artboard",
|
|
30
30
|
stroke: "none",
|
|
31
31
|
strokeWidth: "1",
|
|
32
32
|
fill: "none",
|
|
33
33
|
fillRule: "evenodd"
|
|
34
|
-
}, (0,
|
|
34
|
+
}, (0, _react2.jsx)("path", {
|
|
35
35
|
d: "M44,62.0697056 C44,62.0697056 41.634042,52.2742526 40.7199219,47.4586109 C40.6123784,46.8019325 20.7705945,46.9661021 19.1036696,47.2397181 C18.4046366,48.7719677 21.4696276,63 21.4696276,63",
|
|
36
36
|
id: "Path",
|
|
37
37
|
stroke: "#000000",
|
|
38
38
|
strokeWidth: "0.5",
|
|
39
39
|
strokeLinecap: "round"
|
|
40
|
-
}), (0,
|
|
40
|
+
}), (0, _react2.jsx)("path", {
|
|
41
41
|
d: "M4,69 C5.97368266,68.8880303 7.59435434,68.7604131 8.75270513,68.6209555 C19.5914009,67.3397747 -6.4105208,62.6954945 22,63.0157897",
|
|
42
42
|
id: "Path",
|
|
43
43
|
stroke: "#000000",
|
|
44
44
|
strokeWidth: "0.5"
|
|
45
|
-
}), (0,
|
|
45
|
+
}), (0, _react2.jsx)("path", {
|
|
46
46
|
d: "M48.0752486,23 C48.0752486,23 43.7332955,23.1060711 45.3679132,28.5687314 C46.5938764,32.7055032 49.1990483,34.7208536 50.7315023,33.766214 C51.2423203,33.4480007 51.6509748,32.8115743 51.8042202,31.8569346 C52.5704472,27.9323049 51.0379931,23.4773198 48.0752486,23 Z",
|
|
47
47
|
id: "Path",
|
|
48
48
|
stroke: "#000000",
|
|
49
49
|
strokeWidth: "0.5",
|
|
50
50
|
strokeLinecap: "round"
|
|
51
|
-
}), (0,
|
|
51
|
+
}), (0, _react2.jsx)("path", {
|
|
52
52
|
d: "M52.5402715,34 C52.5402715,34 52.6454503,37.2398088 55.1697425,37.8771483 C57.6940347,38.5144877 61.8485989,34.7435627 64.6884276,44.7285472 C67.5808458,54.7135318 69.8421909,59.3342427 65.8453949,61.0869262 C61.8485989,62.8396096 53.6446493,61.7242656 51.9617879,60.6089216 C50.226337,59.4935776 49.5426745,56.2537688 47.22874,57.7408941 C44.9148055,59.2280195 42.8638181,62.3616051 49.4374957,60.8744797",
|
|
53
53
|
id: "Path",
|
|
54
54
|
stroke: "#000000",
|
|
55
55
|
strokeWidth: "0.5",
|
|
56
56
|
strokeLinecap: "round"
|
|
57
|
-
}), (0,
|
|
57
|
+
}), (0, _react2.jsx)("path", {
|
|
58
58
|
d: "M49.8588081,34 C50.2567222,34.4904632 49.9724978,39.013624 46.9028742,41.1934605 C43.7764056,43.373297 42.2984386,48.986376 43.3216465,54",
|
|
59
59
|
id: "Path",
|
|
60
60
|
stroke: "#000000",
|
|
61
61
|
strokeWidth: "0.5",
|
|
62
62
|
strokeLinecap: "round"
|
|
63
|
-
}), (0,
|
|
63
|
+
}), (0, _react2.jsx)("path", {
|
|
64
64
|
d: "M61,45 C61,45 61.3528496,56.1818182 62.7642479,57.4909091 C64.1756463,58.8 66.393558,58.8 65.9398943,60",
|
|
65
65
|
id: "Path",
|
|
66
66
|
stroke: "#000000",
|
|
67
67
|
strokeWidth: "0.5",
|
|
68
68
|
strokeLinecap: "round"
|
|
69
|
-
}), (0,
|
|
69
|
+
}), (0, _react2.jsx)("path", {
|
|
70
70
|
d: "M63,57 C59.7818182,58.040833 52.3090909,59.081666 51,58.9949299",
|
|
71
71
|
id: "Path",
|
|
72
72
|
stroke: "#000000",
|
|
73
73
|
strokeWidth: "0.5",
|
|
74
74
|
strokeLinecap: "round"
|
|
75
|
-
}), (0,
|
|
75
|
+
}), (0, _react2.jsx)("path", {
|
|
76
76
|
d: "M47,30.4066057 C47.6556747,30.0110096 50.0910379,29.9318903 49.9973701,30.0505692 C49.9037023,30.169248 47.8898442,30.8813212 47.7961764,31",
|
|
77
77
|
id: "Path",
|
|
78
78
|
stroke: "#000000",
|
|
79
79
|
strokeWidth: "0.5",
|
|
80
80
|
strokeLinecap: "round"
|
|
81
|
-
}), (0,
|
|
81
|
+
}), (0, _react2.jsx)("path", {
|
|
82
82
|
d: "M46,23.6916557 C46.270895,23.5363054 50.6593942,20.0668149 52.1222272,23.5363054 C53.5850603,27.0057959 53.2599863,31.5109553 55.5896833,33.8412101 C57.9193804,36.1714649 57.2150534,37 54.5602823,37",
|
|
83
83
|
id: "Path",
|
|
84
84
|
stroke: "#000000",
|
|
85
85
|
strokeWidth: "0.5",
|
|
86
86
|
strokeLinecap: "round"
|
|
87
|
-
}), (0,
|
|
87
|
+
}), (0, _react2.jsx)("path", {
|
|
88
88
|
d: "M66,61.6333945 L82,61.3666055",
|
|
89
89
|
id: "Path",
|
|
90
90
|
stroke: "#000000",
|
|
@@ -5,6 +5,5 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
declare const Illustration: () => JSX.Element;
|
|
8
|
+
declare const Illustration: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
10
9
|
export default Illustration;
|
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _react2 = require("@emotion/react");
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
|
|
@@ -19,103 +19,103 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
var Illustration = function Illustration() {
|
|
22
|
-
return (0,
|
|
22
|
+
return (0, _react2.jsx)("svg", {
|
|
23
23
|
width: "90px",
|
|
24
24
|
height: "90px",
|
|
25
25
|
viewBox: "0 0 90 90",
|
|
26
26
|
version: "1.1",
|
|
27
27
|
xmlns: "http://www.w3.org/2000/svg"
|
|
28
|
-
}, (0,
|
|
28
|
+
}, (0, _react2.jsx)("g", {
|
|
29
29
|
id: "Artboard",
|
|
30
30
|
stroke: "none",
|
|
31
31
|
strokeWidth: "1",
|
|
32
32
|
fill: "none",
|
|
33
33
|
fillRule: "evenodd"
|
|
34
|
-
}, (0,
|
|
34
|
+
}, (0, _react2.jsx)("path", {
|
|
35
35
|
d: "M40.3344969,28.2189361 C40.3344969,28.2189361 35.0859962,32.25877 35.5799727,35.1104175 C36.1356964,37.9620651 39.408291,40.0413913 41.3841971,36.5362413 C41.8781736,35.6451014 42.248656,34.6351429 42.4338972,33.6845937 C43.113115,30.7141276 42.3721501,27.8624802 40.3344969,28.2189361 Z",
|
|
36
36
|
id: "Path",
|
|
37
37
|
stroke: "#000000",
|
|
38
38
|
strokeWidth: "0.5"
|
|
39
|
-
}), (0,
|
|
39
|
+
}), (0, _react2.jsx)("path", {
|
|
40
40
|
d: "M39.7196249,33.4594669 C39.0366355,32.577042 42.1670033,35.3713876 42.6792453,33.8271441",
|
|
41
41
|
id: "Path",
|
|
42
42
|
stroke: "#000000",
|
|
43
43
|
strokeWidth: "0.5"
|
|
44
|
-
}), (0,
|
|
44
|
+
}), (0, _react2.jsx)("path", {
|
|
45
45
|
d: "M30.2865714,59.46123 C30.2865714,59.46123 32.0647439,62.4600941 32.4089064,61.6826108 C32.6957084,61.0161965 32.1794648,59.1835574 32.0647439,58.6282121 C32.0647439,58.5726776 32.1221044,58.5726776 32.1221044,58.5726776 C32.8677897,59.46123 33.8429166,61.3494036 36.5388556,61.3494036 C39.4068758,61.3494036 35.7358098,58.5726776 33.211952,57.017711 C30.6880942,55.4627444 23.0591604,57.4619872 20.8794649,58.1284014 C18.6424091,58.7392812 17.8967239,56.4068313 18.3556071,55.1850718 C18.8144904,53.9633124 19.617536,51.7974661 22.7723583,47.5768424 C25.9271806,43.4117533 30.3439318,41.0793035 33.8429166,40.4684237 C37.3419013,39.857544 37.16982,37.3584906 37.16982,37.3584906",
|
|
46
46
|
id: "Path",
|
|
47
47
|
stroke: "#000000",
|
|
48
48
|
strokeWidth: "0.5",
|
|
49
49
|
strokeLinecap: "round"
|
|
50
|
-
}), (0,
|
|
50
|
+
}), (0, _react2.jsx)("path", {
|
|
51
51
|
d: "M40.6415094,38.3773585 C40.6415094,38.3773585 40.9844274,41.1354405 43.9563825,42.5144815 C46.9283376,43.8935224 50.1289047,46.6516044 49.7859868,49.4096864 C49.4430689,52.1677682 47.8999384,55.0913352 47.5570205,55.6981132",
|
|
52
52
|
id: "Path",
|
|
53
53
|
stroke: "#000000",
|
|
54
54
|
strokeWidth: "0.5"
|
|
55
|
-
}), (0,
|
|
55
|
+
}), (0, _react2.jsx)("path", {
|
|
56
56
|
d: "M38.6037736,55.6981132 C38.9564586,51.1005769 41.6603774,42.4528302 41.6603774,42.4528302",
|
|
57
57
|
id: "Path",
|
|
58
58
|
stroke: "#000000",
|
|
59
59
|
strokeWidth: "0.5",
|
|
60
60
|
strokeLinecap: "round"
|
|
61
|
-
}), (0,
|
|
61
|
+
}), (0, _react2.jsx)("path", {
|
|
62
62
|
d: "M44.7169811,43.4716981 C44.2953806,43.9465103 41.6252439,52.0776699 40.6415094,55.6981132",
|
|
63
63
|
id: "Path",
|
|
64
64
|
stroke: "#000000",
|
|
65
65
|
strokeWidth: "0.5",
|
|
66
66
|
strokeLinecap: "round"
|
|
67
|
-
}), (0,
|
|
67
|
+
}), (0, _react2.jsx)("path", {
|
|
68
68
|
d: "M32.3886792,41.4339623 C32.3886792,41.4339623 32.3886792,51.8608842 31.5735849,52.6415094",
|
|
69
69
|
id: "Path",
|
|
70
70
|
stroke: "#000000",
|
|
71
71
|
strokeWidth: "0.5",
|
|
72
72
|
strokeLinecap: "round"
|
|
73
|
-
}), (0,
|
|
73
|
+
}), (0, _react2.jsx)("path", {
|
|
74
74
|
d: "M29.8924528,41.4339623 L29.9943396,55.6981132",
|
|
75
75
|
id: "Path",
|
|
76
76
|
stroke: "#000000",
|
|
77
77
|
strokeWidth: "0.5",
|
|
78
78
|
strokeLinecap: "round"
|
|
79
|
-
}), (0,
|
|
79
|
+
}), (0, _react2.jsx)("path", {
|
|
80
80
|
d: "M33.3325574,62.1435603 L31.2802035,62.5865464 L26.3773585,63.9708778 L43.651336,72 L66.1132075,62.2543068 L48.0410926,56.7169811 C47.242955,56.8831009 36.069029,61.0360951 36.069029,61.0360951",
|
|
81
81
|
id: "Path",
|
|
82
82
|
stroke: "#000000",
|
|
83
83
|
strokeWidth: "0.5"
|
|
84
|
-
}), (0,
|
|
84
|
+
}), (0, _react2.jsx)("path", {
|
|
85
85
|
d: "M51.177305,18.4855798 C50.5012691,18.7725734 50.3885964,28.0711682 54.8955022,28.1859657 C59.4024079,28.3007632 59.2897352,24.7420417 58.6700357,23.4218708 C57.9939998,22.1017 56.6419281,16.3044279 51.177305,18.4855798 Z",
|
|
86
86
|
id: "Path",
|
|
87
87
|
stroke: "#000000",
|
|
88
88
|
strokeWidth: "0.5"
|
|
89
|
-
}), (0,
|
|
89
|
+
}), (0, _react2.jsx)("path", {
|
|
90
90
|
d: "M50.8301887,26.0105223 C50.8952228,26.7835023 53.8867925,24.1132075 53.8867925,24.1132075",
|
|
91
91
|
id: "Path",
|
|
92
92
|
stroke: "#000000",
|
|
93
93
|
strokeWidth: "0.5",
|
|
94
94
|
strokeLinecap: "round"
|
|
95
|
-
}), (0,
|
|
95
|
+
}), (0, _react2.jsx)("path", {
|
|
96
96
|
d: "M57.1552073,27.1698113 C57.1552073,27.1698113 57.2144059,28.9230949 58.9311654,29.4886703 C61.4175067,30.3370334 65.4430117,30.7329361 67.1005726,35.9362294 C68.7581335,41.1395227 71.4812692,50.5846313 71.1852761,51.3764368 C70.8892832,52.1682422 66.9229768,57.9936685 65.1470187,59.4076068 C63.3710605,60.8215453 55.3200506,60.369085 55.852838,61.2740056 C56.3264269,62.2354837 58.6351723,61.6133507 58.6351723,61.6133507 C58.6351723,61.6133507 63.1934648,60.1994124 65.0286215,56.7494027 C65.0286215,56.7494027 61.5951025,58.6158014 58.9903639,53.9215258 C56.3856254,49.2272504 55.5568451,34.0698308 56.3856254,31.5247416 C57.2144059,28.9796525 54.9056604,28.4140771 54.9056604,28.4140771",
|
|
97
97
|
id: "Path",
|
|
98
98
|
stroke: "#000000",
|
|
99
99
|
strokeWidth: "0.5",
|
|
100
100
|
strokeLinecap: "round"
|
|
101
|
-
}), (0,
|
|
101
|
+
}), (0, _react2.jsx)("path", {
|
|
102
102
|
d: "M57.9622642,47.5471698 C57.9622642,47.9864422 57.5613981,53.5322562 53.8867925,56.7169811",
|
|
103
103
|
id: "Path",
|
|
104
104
|
stroke: "#000000",
|
|
105
105
|
strokeWidth: "0.5",
|
|
106
106
|
strokeLinecap: "round"
|
|
107
|
-
}), (0,
|
|
107
|
+
}), (0, _react2.jsx)("path", {
|
|
108
108
|
d: "M69.1698113,54.6792453 C69.3087478,55.1050408 70.1886792,61.8113208 70.1886792,61.8113208",
|
|
109
109
|
id: "Path",
|
|
110
110
|
stroke: "#000000",
|
|
111
111
|
strokeWidth: "0.5",
|
|
112
112
|
strokeLinecap: "round"
|
|
113
|
-
}), (0,
|
|
113
|
+
}), (0, _react2.jsx)("path", {
|
|
114
114
|
d: "M65.2950397,56.7169811 C65.2950397,56.7169811 69.5129241,53.5471698 67.6968905,46.6415094 C65.8222752,39.2830189 63.0103524,36.8490566 62.014463,34.4716981 C61.0185736,32.0943396 60.5499198,31.8113208 61.6629726,30.2264151",
|
|
115
115
|
id: "Path",
|
|
116
116
|
stroke: "#000000",
|
|
117
117
|
strokeWidth: "0.5"
|
|
118
|
-
}), (0,
|
|
118
|
+
}), (0, _react2.jsx)("path", {
|
|
119
119
|
d: "M6,63.3396226 L26.3773585,63.3396226",
|
|
120
120
|
id: "Path",
|
|
121
121
|
stroke: "#000000",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import Fellesfag from './Fellesfag';
|
|
3
2
|
import Yrkesfag from './Yrkesfag';
|
|
4
3
|
import Studiespesialiserende from './Studiespesialiserende';
|
|
@@ -7,13 +6,13 @@ import MenuYrkesfag from './MenuYrkesfag';
|
|
|
7
6
|
import MenuStudiespesialiserende from './MenuStudiespesialiserende';
|
|
8
7
|
import FrontpageSubjectIllustration from './FrontpageSubjectIllustration';
|
|
9
8
|
declare const categoryIllustrations: {
|
|
10
|
-
yrkesfag: () =>
|
|
11
|
-
studiespesialiserende: () =>
|
|
12
|
-
fellesfag: () =>
|
|
9
|
+
yrkesfag: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
10
|
+
studiespesialiserende: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
11
|
+
fellesfag: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
13
12
|
};
|
|
14
13
|
declare const categoryIllustrationsInModal: {
|
|
15
|
-
yrkesfag: () =>
|
|
16
|
-
studiespesialiserende: () =>
|
|
17
|
-
fellesfag: () =>
|
|
14
|
+
yrkesfag: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
15
|
+
studiespesialiserende: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
16
|
+
fellesfag: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
18
17
|
};
|
|
19
18
|
export { Fellesfag, Yrkesfag, Studiespesialiserende, MenuFellesfag, MenuYrkesfag, MenuStudiespesialiserende, FrontpageSubjectIllustration, categoryIllustrations, categoryIllustrationsInModal, };
|
package/lib/Hero/Hero.d.ts
CHANGED
|
@@ -11,17 +11,17 @@ interface HeroProps {
|
|
|
11
11
|
children?: ReactNode;
|
|
12
12
|
contentType?: HeroContentType;
|
|
13
13
|
}
|
|
14
|
-
export declare const Hero: ({ children, contentType }: HeroProps) =>
|
|
14
|
+
export declare const Hero: ({ children, contentType }: HeroProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
15
15
|
interface Props {
|
|
16
16
|
children?: ReactNode;
|
|
17
17
|
}
|
|
18
|
-
export declare const SubjectMaterialHero: (props: Props) =>
|
|
19
|
-
export declare const TasksAndActivitiesHero: (props: Props) =>
|
|
20
|
-
export declare const AssessmentResourcesHero: (props: Props) =>
|
|
21
|
-
export declare const SubjectHero: (props: Props) =>
|
|
22
|
-
export declare const ExternalLearningResourcesHero: (props: Props) =>
|
|
23
|
-
export declare const SourceMaterialHero: (props: Props) =>
|
|
18
|
+
export declare const SubjectMaterialHero: (props: Props) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
19
|
+
export declare const TasksAndActivitiesHero: (props: Props) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
20
|
+
export declare const AssessmentResourcesHero: (props: Props) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
21
|
+
export declare const SubjectHero: (props: Props) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
22
|
+
export declare const ExternalLearningResourcesHero: (props: Props) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
23
|
+
export declare const SourceMaterialHero: (props: Props) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
24
24
|
export declare const NdlaFilmHero: ({ hasImage, ...rest }: Props & {
|
|
25
25
|
hasImage?: boolean | undefined;
|
|
26
|
-
}) =>
|
|
26
|
+
}) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
27
27
|
export {};
|
package/lib/Hero/Hero.js
CHANGED
|
@@ -13,7 +13,7 @@ var _reactBemHelper = _interopRequireDefault(require("react-bem-helper"));
|
|
|
13
13
|
|
|
14
14
|
var contentTypes = _interopRequireWildcard(require("../model/ContentType"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _react2 = require("@emotion/react");
|
|
17
17
|
|
|
18
18
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
19
19
|
|
|
@@ -35,13 +35,13 @@ var classes = new _reactBemHelper["default"]({
|
|
|
35
35
|
var Hero = function Hero(_ref) {
|
|
36
36
|
var children = _ref.children,
|
|
37
37
|
contentType = _ref.contentType;
|
|
38
|
-
return (0,
|
|
38
|
+
return (0, _react2.jsx)("div", classes('', contentType), children || null);
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
exports.Hero = Hero;
|
|
42
42
|
|
|
43
43
|
var SubjectMaterialHero = function SubjectMaterialHero(props) {
|
|
44
|
-
return (0,
|
|
44
|
+
return (0, _react2.jsx)(Hero, _extends({
|
|
45
45
|
contentType: contentTypes.SUBJECT_MATERIAL
|
|
46
46
|
}, props));
|
|
47
47
|
};
|
|
@@ -49,7 +49,7 @@ var SubjectMaterialHero = function SubjectMaterialHero(props) {
|
|
|
49
49
|
exports.SubjectMaterialHero = SubjectMaterialHero;
|
|
50
50
|
|
|
51
51
|
var TasksAndActivitiesHero = function TasksAndActivitiesHero(props) {
|
|
52
|
-
return (0,
|
|
52
|
+
return (0, _react2.jsx)(Hero, _extends({
|
|
53
53
|
contentType: contentTypes.TASKS_AND_ACTIVITIES
|
|
54
54
|
}, props));
|
|
55
55
|
};
|
|
@@ -57,7 +57,7 @@ var TasksAndActivitiesHero = function TasksAndActivitiesHero(props) {
|
|
|
57
57
|
exports.TasksAndActivitiesHero = TasksAndActivitiesHero;
|
|
58
58
|
|
|
59
59
|
var AssessmentResourcesHero = function AssessmentResourcesHero(props) {
|
|
60
|
-
return (0,
|
|
60
|
+
return (0, _react2.jsx)(Hero, _extends({
|
|
61
61
|
contentType: contentTypes.ASSESSMENT_RESOURCES
|
|
62
62
|
}, props));
|
|
63
63
|
};
|
|
@@ -65,7 +65,7 @@ var AssessmentResourcesHero = function AssessmentResourcesHero(props) {
|
|
|
65
65
|
exports.AssessmentResourcesHero = AssessmentResourcesHero;
|
|
66
66
|
|
|
67
67
|
var SubjectHero = function SubjectHero(props) {
|
|
68
|
-
return (0,
|
|
68
|
+
return (0, _react2.jsx)(Hero, _extends({
|
|
69
69
|
contentType: contentTypes.SUBJECT
|
|
70
70
|
}, props));
|
|
71
71
|
};
|
|
@@ -73,7 +73,7 @@ var SubjectHero = function SubjectHero(props) {
|
|
|
73
73
|
exports.SubjectHero = SubjectHero;
|
|
74
74
|
|
|
75
75
|
var ExternalLearningResourcesHero = function ExternalLearningResourcesHero(props) {
|
|
76
|
-
return (0,
|
|
76
|
+
return (0, _react2.jsx)(Hero, _extends({
|
|
77
77
|
contentType: contentTypes.EXTERNAL_LEARNING_RESOURCES
|
|
78
78
|
}, props));
|
|
79
79
|
};
|
|
@@ -81,7 +81,7 @@ var ExternalLearningResourcesHero = function ExternalLearningResourcesHero(props
|
|
|
81
81
|
exports.ExternalLearningResourcesHero = ExternalLearningResourcesHero;
|
|
82
82
|
|
|
83
83
|
var SourceMaterialHero = function SourceMaterialHero(props) {
|
|
84
|
-
return (0,
|
|
84
|
+
return (0, _react2.jsx)(Hero, _extends({
|
|
85
85
|
contentType: contentTypes.SOURCE_MATERIAL
|
|
86
86
|
}, props));
|
|
87
87
|
};
|
|
@@ -92,7 +92,7 @@ var NdlaFilmHero = function NdlaFilmHero(_ref2) {
|
|
|
92
92
|
var hasImage = _ref2.hasImage,
|
|
93
93
|
rest = _objectWithoutProperties(_ref2, ["hasImage"]);
|
|
94
94
|
|
|
95
|
-
return (0,
|
|
95
|
+
return (0, _react2.jsx)(Hero, _extends({}, rest, {
|
|
96
96
|
contentType: hasImage ? 'ndla-film has-image' : 'ndla-film'
|
|
97
97
|
}));
|
|
98
98
|
};
|
package/lib/Image/Image.d.ts
CHANGED
|
@@ -30,5 +30,5 @@ interface Props {
|
|
|
30
30
|
crop?: ImageCrop;
|
|
31
31
|
focalPoint?: ImageFocalPoint;
|
|
32
32
|
}
|
|
33
|
-
declare const Image: ({ alt, src, lazyLoad, lazyLoadSrc, crop, focalPoint, contentType, sizes, expandButton, fallbackWidth, ...rest }: Props) =>
|
|
33
|
+
declare const Image: ({ alt, src, lazyLoad, lazyLoadSrc, crop, focalPoint, contentType, sizes, expandButton, fallbackWidth, ...rest }: Props) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
34
34
|
export default Image;
|
package/lib/Image/Image.js
CHANGED
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = exports.makeSrcQueryString = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
12
|
var _LazyLoadImage = _interopRequireDefault(require("./LazyLoadImage"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
17
|
|
|
@@ -42,15 +42,17 @@ var getSrcSet = function getSrcSet(src, crop, focalPoint) {
|
|
|
42
42
|
}).join(', ');
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
var StyledImageWrapper = (0,
|
|
45
|
+
var StyledImageWrapper = /*#__PURE__*/(0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
46
|
+
target: "ejtxxex0"
|
|
47
|
+
} : {
|
|
46
48
|
target: "ejtxxex0",
|
|
47
49
|
label: "StyledImageWrapper"
|
|
48
50
|
})(process.env.NODE_ENV === "production" ? {
|
|
49
|
-
name: "
|
|
50
|
-
styles: "position:relative
|
|
51
|
+
name: "bjn8wh",
|
|
52
|
+
styles: "position:relative"
|
|
51
53
|
} : {
|
|
52
|
-
name: "
|
|
53
|
-
styles: "position:relative
|
|
54
|
+
name: "bjn8wh",
|
|
55
|
+
styles: "position:relative",
|
|
54
56
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkltYWdlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1Q3FDIiwiZmlsZSI6IkltYWdlLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ29weXJpZ2h0IChjKSAyMDE3LXByZXNlbnQsIE5ETEEuXG4gKlxuICogVGhpcyBzb3VyY2UgY29kZSBpcyBsaWNlbnNlZCB1bmRlciB0aGUgR1BMdjMgbGljZW5zZSBmb3VuZCBpbiB0aGVcbiAqIExJQ0VOU0UgZmlsZSBpbiB0aGUgcm9vdCBkaXJlY3Rvcnkgb2YgdGhpcyBzb3VyY2UgdHJlZS5cbiAqXG4gKi9cblxuaW1wb3J0IFJlYWN0LCB7IFJlYWN0Tm9kZSB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBMYXp5TG9hZEltYWdlIGZyb20gJy4vTGF6eUxvYWRJbWFnZSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgSW1hZ2VDcm9wIHtcbiAgc3RhcnRYOiBudW1iZXI7XG4gIHN0YXJ0WTogbnVtYmVyO1xuICBlbmRYOiBudW1iZXI7XG4gIGVuZFk6IG51bWJlcjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBJbWFnZUZvY2FsUG9pbnQge1xuICB4OiBudW1iZXI7XG4gIHk6IG51bWJlcjtcbn1cblxuZXhwb3J0IGNvbnN0IG1ha2VTcmNRdWVyeVN0cmluZyA9ICh3aWR0aDogbnVtYmVyIHwgdW5kZWZpbmVkLCBjcm9wPzogSW1hZ2VDcm9wLCBmb2NhbFBvaW50PzogSW1hZ2VGb2NhbFBvaW50KSA9PiB7XG4gIGNvbnN0IHdpZHRoUGFyYW1zID0gd2lkdGggJiYgYHdpZHRoPSR7d2lkdGh9YDtcbiAgY29uc3QgY3JvcFBhcmFtcyA9XG4gICAgY3JvcCAmJiBgY3JvcFN0YXJ0WD0ke2Nyb3Auc3RhcnRYfSZjcm9wRW5kWD0ke2Nyb3AuZW5kWH0mY3JvcFN0YXJ0WT0ke2Nyb3Auc3RhcnRZfSZjcm9wRW5kWT0ke2Nyb3AuZW5kWX1gO1xuICBjb25zdCBmb2NhbFBvaW50UGFyYW1zID0gZm9jYWxQb2ludCAmJiBgZm9jYWxYPSR7Zm9jYWxQb2ludC54fSZmb2NhbFk9JHtmb2NhbFBvaW50Lnl9YDtcbiAgY29uc3QgcGFyYW1zID0gW3dpZHRoUGFyYW1zLCBjcm9wUGFyYW1zLCBmb2NhbFBvaW50UGFyYW1zXS5maWx0ZXIoKHApID0+IHApLmpvaW4oJyYnKTtcblxuICByZXR1cm4gcGFyYW1zO1xufTtcblxuY29uc3QgZ2V0U3JjU2V0ID0gKHNyYzogc3RyaW5nLCBjcm9wOiBJbWFnZUNyb3AgfCB1bmRlZmluZWQsIGZvY2FsUG9pbnQ6IEltYWdlRm9jYWxQb2ludCB8IHVuZGVmaW5lZCkgPT4ge1xuICBjb25zdCB3aWR0aHMgPSBbMjcyMCwgMjA4MCwgMTc2MCwgMTQ0MCwgMTEyMCwgMTAwMCwgOTYwLCA4MDAsIDY0MCwgNDgwLCAzMjAsIDI0MCwgMTgwXTtcbiAgcmV0dXJuIHdpZHRocy5tYXAoKHdpZHRoKSA9PiBgJHtzcmN9PyR7bWFrZVNyY1F1ZXJ5U3RyaW5nKHdpZHRoLCBjcm9wLCBmb2NhbFBvaW50KX0gJHt3aWR0aH13YCkuam9pbignLCAnKTtcbn07XG5cbmNvbnN0IFN0eWxlZEltYWdlV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbmA7XG5pbnRlcmZhY2UgUHJvcHMge1xuICBhbHQ6IHN0cmluZztcbiAgc3JjOiBzdHJpbmc7XG4gIHNpemVzPzogc3RyaW5nO1xuICBmYWxsYmFja1dpZHRoPzogbnVtYmVyO1xuICBjb250ZW50VHlwZT86IHN0cmluZztcbiAgc3JjU2V0Pzogc3RyaW5nO1xuICBsYXp5TG9hZD86IGJvb2xlYW47XG4gIGxhenlMb2FkU3JjPzogc3RyaW5nO1xuICBleHBhbmRCdXR0b24/OiBSZWFjdE5vZGU7XG4gIGNyb3A/OiBJbWFnZUNyb3A7XG4gIGZvY2FsUG9pbnQ/OiBJbWFnZUZvY2FsUG9pbnQ7XG59XG5cbmNvbnN0IEltYWdlID0gKHtcbiAgYWx0LFxuICBzcmMsXG4gIGxhenlMb2FkLFxuICBsYXp5TG9hZFNyYyxcbiAgY3JvcCxcbiAgZm9jYWxQb2ludCxcbiAgY29udGVudFR5cGUsXG4gIHNpemVzID0gJyhtaW4td2lkdGg6IDEwMjRweCkgMTAyNHB4LCAxMDB2dycsXG4gIGV4cGFuZEJ1dHRvbixcbiAgZmFsbGJhY2tXaWR0aCA9IDEwMjQsXG4gIC4uLnJlc3Rcbn06IFByb3BzKSA9PiB7XG4gIGNvbnN0IHNyY1NldCA9IHJlc3Quc3JjU2V0ID8/IGdldFNyY1NldChzcmMsIGNyb3AsIGZvY2FsUG9pbnQpO1xuICBjb25zdCBxdWVyeVN0cmluZyA9IG1ha2VTcmNRdWVyeVN0cmluZyhmYWxsYmFja1dpZHRoLCBjcm9wLCBmb2NhbFBvaW50KTtcblxuICBpZiAoY29udGVudFR5cGUgJiYgY29udGVudFR5cGUgPT09ICdpbWFnZS9naWYnKSB7XG4gICAgcmV0dXJuIChcbiAgICAgIDxTdHlsZWRJbWFnZVdyYXBwZXI+XG4gICAgICAgIDxpbWcgYWx0PXthbHR9IHNyYz17YCR7c3JjfWB9IHsuLi5yZXN0fSAvPlxuICAgICAgPC9TdHlsZWRJbWFnZVdyYXBwZXI+XG4gICAgKTtcbiAgfVxuXG4gIGlmIChsYXp5TG9hZCkge1xuICAgIHJldHVybiAoXG4gICAgICA8U3R5bGVkSW1hZ2VXcmFwcGVyPlxuICAgICAgICA8TGF6eUxvYWRJbWFnZVxuICAgICAgICAgIGFsdD17YWx0fVxuICAgICAgICAgIHNyYz17YCR7c3JjfT8ke3F1ZXJ5U3RyaW5nfWB9XG4gICAgICAgICAgc3JjU2V0PXtzcmNTZXR9XG4gICAgICAgICAgc2l6ZXM9e3NpemVzfVxuICAgICAgICAgIGxhenlMb2FkU3JjPXtsYXp5TG9hZFNyY31cbiAgICAgICAgLz5cbiAgICAgIDwvU3R5bGVkSW1hZ2VXcmFwcGVyPlxuICAgICk7XG4gIH1cblxuICByZXR1cm4gKFxuICAgIDxTdHlsZWRJbWFnZVdyYXBwZXI+XG4gICAgICA8cGljdHVyZT5cbiAgICAgICAgPHNvdXJjZSB0eXBlPXtjb250ZW50VHlwZX0gc3JjU2V0PXtzcmNTZXR9IHNpemVzPXtzaXplc30gLz5cbiAgICAgICAgPGltZyBhbHQ9e2FsdH0gc3JjPXtgJHtzcmN9PyR7cXVlcnlTdHJpbmd9YH0gey4uLnJlc3R9IC8+XG4gICAgICA8L3BpY3R1cmU+XG4gICAgICB7ZXhwYW5kQnV0dG9ufVxuICAgIDwvU3R5bGVkSW1hZ2VXcmFwcGVyPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgSW1hZ2U7XG4iXX0= */",
|
|
55
57
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
56
58
|
});
|
|
@@ -76,14 +78,14 @@ var Image = function Image(_ref) {
|
|
|
76
78
|
var queryString = makeSrcQueryString(fallbackWidth, crop, focalPoint);
|
|
77
79
|
|
|
78
80
|
if (contentType && contentType === 'image/gif') {
|
|
79
|
-
return (0,
|
|
81
|
+
return (0, _react2.jsx)(StyledImageWrapper, null, (0, _react2.jsx)("img", _extends({
|
|
80
82
|
alt: alt,
|
|
81
83
|
src: "".concat(src)
|
|
82
84
|
}, rest)));
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
if (lazyLoad) {
|
|
86
|
-
return (0,
|
|
88
|
+
return (0, _react2.jsx)(StyledImageWrapper, null, (0, _react2.jsx)(_LazyLoadImage["default"], {
|
|
87
89
|
alt: alt,
|
|
88
90
|
src: "".concat(src, "?").concat(queryString),
|
|
89
91
|
srcSet: srcSet,
|
|
@@ -92,11 +94,11 @@ var Image = function Image(_ref) {
|
|
|
92
94
|
}));
|
|
93
95
|
}
|
|
94
96
|
|
|
95
|
-
return (0,
|
|
97
|
+
return (0, _react2.jsx)(StyledImageWrapper, null, (0, _react2.jsx)("picture", null, (0, _react2.jsx)("source", {
|
|
96
98
|
type: contentType,
|
|
97
99
|
srcSet: srcSet,
|
|
98
100
|
sizes: sizes
|
|
99
|
-
}), (0,
|
|
101
|
+
}), (0, _react2.jsx)("img", _extends({
|
|
100
102
|
alt: alt,
|
|
101
103
|
src: "".concat(src, "?").concat(queryString)
|
|
102
104
|
}, rest))), expandButton);
|
package/lib/Image/ImageLink.d.ts
CHANGED
|
@@ -14,5 +14,5 @@ interface Props {
|
|
|
14
14
|
crop?: ImageCrop;
|
|
15
15
|
focalPoint?: ImageFocalPoint;
|
|
16
16
|
}
|
|
17
|
-
export declare function ImageLink({ src, crop, children, ...rest }: Props):
|
|
17
|
+
export declare function ImageLink({ src, crop, children, ...rest }: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
18
18
|
export {};
|
package/lib/Image/ImageLink.js
CHANGED
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.ImageLink = ImageLink;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
12
|
var _Image = require("./Image");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
17
|
|
|
@@ -23,15 +23,17 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
23
23
|
|
|
24
24
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
25
25
|
|
|
26
|
-
var StyledLink = (0,
|
|
26
|
+
var StyledLink = /*#__PURE__*/(0, _base["default"])("a", process.env.NODE_ENV === "production" ? {
|
|
27
|
+
target: "eo3pjlm0"
|
|
28
|
+
} : {
|
|
27
29
|
target: "eo3pjlm0",
|
|
28
30
|
label: "StyledLink"
|
|
29
31
|
})(process.env.NODE_ENV === "production" ? {
|
|
30
|
-
name: "
|
|
31
|
-
styles: "box-shadow:inset 0 0
|
|
32
|
+
name: "1lq5d17",
|
|
33
|
+
styles: "box-shadow:inset 0 0"
|
|
32
34
|
} : {
|
|
33
|
-
name: "
|
|
34
|
-
styles: "box-shadow:inset 0 0
|
|
35
|
+
name: "1lq5d17",
|
|
36
|
+
styles: "box-shadow:inset 0 0",
|
|
35
37
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkltYWdlTGluay50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBYTJCIiwiZmlsZSI6IkltYWdlTGluay50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxOS1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXG4gKlxuICovXG5cbmltcG9ydCBSZWFjdCwgeyBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBtYWtlU3JjUXVlcnlTdHJpbmcgfSBmcm9tICcuL0ltYWdlJztcbmltcG9ydCB7IEltYWdlQ3JvcCwgSW1hZ2VGb2NhbFBvaW50IH0gZnJvbSAnLic7XG5cbmNvbnN0IFN0eWxlZExpbmsgPSBzdHlsZWQuYWBcbiAgYm94LXNoYWRvdzogaW5zZXQgMCAwO1xuYDtcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgc3JjOiBzdHJpbmc7XG4gIGNoaWxkcmVuOiBSZWFjdE5vZGU7XG4gIHNpemVzPzogc3RyaW5nO1xuICBjcm9wPzogSW1hZ2VDcm9wO1xuICBmb2NhbFBvaW50PzogSW1hZ2VGb2NhbFBvaW50O1xufVxuXG5leHBvcnQgZnVuY3Rpb24gSW1hZ2VMaW5rKHsgc3JjLCBjcm9wLCBjaGlsZHJlbiwgLi4ucmVzdCB9OiBQcm9wcykge1xuICByZXR1cm4gKFxuICAgIDxTdHlsZWRMaW5rXG4gICAgICB0YXJnZXQ9XCJfYmxhbmtcIlxuICAgICAgaHJlZj17YCR7c3JjfT8ke21ha2VTcmNRdWVyeVN0cmluZyh1bmRlZmluZWQsIGNyb3ApfWB9XG4gICAgICByZWw9XCJub29wZW5lciBub3JlZmVycmVyXCJcbiAgICAgIHsuLi5yZXN0fT5cbiAgICAgIHtjaGlsZHJlbn1cbiAgICA8L1N0eWxlZExpbms+XG4gICk7XG59XG4iXX0= */",
|
|
36
38
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
37
39
|
});
|
|
@@ -42,7 +44,7 @@ function ImageLink(_ref) {
|
|
|
42
44
|
children = _ref.children,
|
|
43
45
|
rest = _objectWithoutProperties(_ref, ["src", "crop", "children"]);
|
|
44
46
|
|
|
45
|
-
return (0,
|
|
47
|
+
return (0, _react2.jsx)(StyledLink, _extends({
|
|
46
48
|
target: "_blank",
|
|
47
49
|
href: "".concat(src, "?").concat((0, _Image.makeSrcQueryString)(undefined, crop)),
|
|
48
50
|
rel: "noopener noreferrer"
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
/// <reference types="react" />
|
|
9
8
|
interface Props {
|
|
10
9
|
alt: string;
|
|
11
10
|
src: string;
|
|
@@ -14,5 +13,5 @@ interface Props {
|
|
|
14
13
|
srcSet?: string;
|
|
15
14
|
lazyLoadSrc?: string;
|
|
16
15
|
}
|
|
17
|
-
declare const LazyLoadImage: ({ alt, src, srcSet, lazyLoadSrc, sizes, ...rest }: Props) =>
|
|
16
|
+
declare const LazyLoadImage: ({ alt, src, srcSet, lazyLoadSrc, sizes, ...rest }: Props) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
18
17
|
export default LazyLoadImage;
|
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _react2 = require("@emotion/react");
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
|
|
@@ -26,14 +26,14 @@ var LazyLoadImage = function LazyLoadImage(_ref) {
|
|
|
26
26
|
sizes = _ref.sizes,
|
|
27
27
|
rest = _objectWithoutProperties(_ref, ["alt", "src", "srcSet", "lazyLoadSrc", "sizes"]);
|
|
28
28
|
|
|
29
|
-
return (0,
|
|
29
|
+
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)("noscript", {
|
|
30
30
|
key: "noscript"
|
|
31
|
-
}, (0,
|
|
31
|
+
}, (0, _react2.jsx)("img", _extends({
|
|
32
32
|
alt: alt,
|
|
33
33
|
src: "".concat(src),
|
|
34
34
|
srcSet: srcSet,
|
|
35
35
|
sizes: sizes
|
|
36
|
-
}, rest))),
|
|
36
|
+
}, rest))), (0, _react2.jsx)("img", _extends({
|
|
37
37
|
alt: alt,
|
|
38
38
|
key: "img",
|
|
39
39
|
style: {
|
|
@@ -4,5 +4,5 @@ interface InfoBlockProps {
|
|
|
4
4
|
title?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const InfoBlock: ({ icon, title, children }: InfoBlockProps) =>
|
|
7
|
+
export declare const InfoBlock: ({ icon, title, children }: InfoBlockProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
8
8
|
export default InfoBlock;
|