@ndla/ui 30.0.2 → 30.0.6
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 +6 -4
- package/es/Animation/Fade.js +12 -6
- package/es/Article/Article.js +91 -68
- package/es/Article/ArticleAccessMessage.js +12 -8
- package/es/Article/ArticleByline.js +88 -70
- package/es/Article/ArticleContent.js +8 -3
- package/es/Article/ArticleFavoritesButton.js +18 -16
- package/es/Article/ArticleFootNotes.js +28 -20
- package/es/Article/ArticleHeaderWrapper.js +42 -29
- package/es/Article/ArticleNotions.js +58 -50
- package/es/Article/ArticleSideBar.js +53 -43
- package/es/Aside/Aside.js +13 -5
- package/es/AudioPlayer/AudioPlayer.js +99 -93
- package/es/AudioPlayer/Controls.js +181 -192
- package/es/AudioPlayer/SpeechControl.js +20 -18
- package/es/AudioPlayer/initAudioPlayers.js +4 -3
- package/es/AuthorInfo/AuthorInfo.js +23 -17
- package/es/BannerCard/BannerCard.js +27 -29
- package/es/BlogPosts/BlogPost.js +33 -28
- package/es/BlogPosts/BlogPostWrapper.js +6 -7
- package/es/Breadcrumb/ActionBreadcrumb.js +22 -34
- package/es/Breadcrumb/Breadcrumb.js +30 -33
- package/es/Breadcrumb/BreadcrumbItem.js +24 -28
- package/es/Breadcrumb/HeaderBreadcrumb.js +18 -29
- package/es/Breadcrumb/HomeBreadcrumb.js +28 -43
- package/es/Breadcrumblist/Breadcrumblist.js +62 -61
- package/es/CompetenceGoalTab/CompetenceGoalItem.js +33 -34
- package/es/CompetenceGoalTab/CompetenceGoalTab.js +44 -40
- package/es/CompetenceGoalTab/CompetenceItem.js +66 -63
- package/es/CompetenceGoalTab/SearchButton.js +20 -16
- package/es/CompetenceGoals/CompetenceGoalsDialog.js +41 -29
- package/es/ComponentCursor/ComponentCursor.js +19 -34
- package/es/ContentCard/ContentCard.js +38 -35
- package/es/ContentLoader/index.js +57 -43
- package/es/ContentPlaceholder/ContentPlaceholder.js +8 -11
- package/es/ContentTypeBadge/ContentTypeBadge.js +27 -20
- package/es/CopyParagraphButton/CopyParagraphButton.js +32 -30
- package/es/CopyParagraphButton/initCopyParagraphButtons.js +3 -2
- package/es/CreatedBy/CreatedBy.js +24 -23
- package/es/Dialog/Dialog.js +23 -12
- package/es/ErrorMessage/ErrorMessage.js +46 -34
- package/es/ErrorMessage/ErrorResourceAccessDenied.js +14 -13
- package/es/FactBox/FactBox.js +20 -11
- package/es/Figure/Figure.js +72 -34
- package/es/Figure/FigureBylineExpandButton.js +11 -8
- package/es/Figure/FigureExpandButton.js +11 -8
- package/es/Figure/FigureLicense.js +42 -24
- package/es/Figure/FigureLicenseDialog.js +27 -15
- package/es/Figure/FigureOpenDialogButton.js +29 -26
- package/es/FileList/File.js +24 -22
- package/es/FileList/FileList.js +17 -17
- package/es/Filter/FilterButtons.js +112 -87
- package/es/Filter/FilterCarousel.js +52 -48
- package/es/Filter/FilterList.js +74 -51
- package/es/Filter/FilterListPhone.js +152 -110
- package/es/Filter/ToggleItem.js +24 -13
- package/es/Footer/EditorName.js +8 -2
- package/es/Footer/Footer.js +40 -34
- package/es/Footer/FooterAuth.js +51 -54
- package/es/Footer/FooterLinks.js +43 -36
- package/es/Footer/FooterPrivacy.js +30 -24
- package/es/Footer/FooterText.js +5 -5
- package/es/Footer/privacy_en.js +36 -2
- package/es/Footer/privacy_nb.js +36 -2
- package/es/Footer/privacy_nn.js +34 -2
- package/es/Frontpage/FrontpageAllSubjects.js +75 -64
- package/es/Frontpage/FrontpageFilm.js +27 -27
- package/es/Frontpage/FrontpageHeader.js +20 -21
- package/es/Frontpage/FrontpageInfo.js +5 -5
- package/es/Frontpage/FrontpageMultidisciplinarySubject.js +41 -40
- package/es/Frontpage/FrontpageProgramMenu.js +53 -53
- package/es/Frontpage/FrontpageSearch.js +42 -41
- package/es/Frontpage/FrontpageToolbox.js +29 -27
- package/es/Frontpage/illustrations/Fellesfag.js +85 -81
- package/es/Frontpage/illustrations/FrontpageHeaderIllustration.js +100 -87
- package/es/Frontpage/illustrations/FrontpageIllustrations.js +2 -6
- package/es/Frontpage/illustrations/FrontpageSubjectIllustration.js +162 -155
- package/es/Frontpage/illustrations/MenuFellesfag.js +66 -61
- package/es/Frontpage/illustrations/MenuStudiespesialiserende.js +63 -59
- package/es/Frontpage/illustrations/MenuYrkesfag.js +93 -89
- package/es/Frontpage/illustrations/Studiespesialiserende.js +73 -69
- package/es/Frontpage/illustrations/Yrkesfag.js +104 -100
- package/es/Hero/Hero.js +17 -10
- package/es/Image/Image.js +35 -24
- package/es/Image/ImageLink.js +11 -7
- package/es/Image/LazyLoadImage.js +29 -21
- package/es/InfoBlock/InfoBlock.js +18 -17
- package/es/InfoBox/InfoBox.js +5 -5
- package/es/InfoWidget/InfoWidget.js +54 -58
- package/es/LanguageSelector/LanguageSelector.js +54 -67
- package/es/LanguageSelector/LanguageSelectorContent.js +30 -32
- package/es/Layout/Content.js +6 -4
- package/es/Layout/LayoutItem.js +18 -13
- package/es/Layout/OneColumn.js +6 -4
- package/es/Layout/PageContainer.js +12 -3
- package/es/LearningPaths/LearningPathContent.js +5 -5
- package/es/LearningPaths/LearningPathInformation.js +25 -25
- package/es/LearningPaths/LearningPathLastStepNavigation.js +32 -28
- package/es/LearningPaths/LearningPathMenu.js +48 -47
- package/es/LearningPaths/LearningPathMenuAside.js +30 -43
- package/es/LearningPaths/LearningPathMenuAsideCopyright.js +16 -15
- package/es/LearningPaths/LearningPathMenuContent.js +38 -39
- package/es/LearningPaths/LearningPathMenuIntro.js +25 -31
- package/es/LearningPaths/LearningPathMenuModalWrapper.js +29 -18
- package/es/LearningPaths/LearningPathMobileHeader.js +12 -19
- package/es/LearningPaths/LearningPathMobileStepInfo.js +8 -8
- package/es/LearningPaths/LearningPathSticky.js +22 -22
- package/es/LearningPaths/LearningPathWrapper.js +8 -13
- package/es/Logo/Logo.js +25 -12
- package/es/Logo/SvgLogo.js +25 -18
- package/es/Masthead/Masthead.js +34 -38
- package/es/Masthead/MastheadAuthModal.js +13 -9
- package/es/Masthead/MastheadSearchModal.js +31 -32
- package/es/Masthead/SkipToMainContent.js +6 -7
- package/es/MediaList/MediaList.js +58 -38
- package/es/Messages/MessageBanner.js +15 -19
- package/es/Messages/MessageBox.js +41 -50
- package/es/Messages/MessageBoxTag.js +5 -5
- package/es/MultidisciplinarySubject/Illustrations.js +7 -21
- package/es/MultidisciplinarySubject/List.js +19 -16
- package/es/MultidisciplinarySubject/ListItem.js +30 -32
- package/es/MultidisciplinarySubject/MultidisciplinarySubject.js +40 -34
- package/es/MultidisciplinarySubject/MultidisciplinarySubjectHeader.js +37 -33
- package/es/MyNdla/Resource/Folder.js +46 -63
- package/es/MyNdla/Resource/FolderInput.js +40 -38
- package/es/NDLAFilm/AboutNdlaFilm.js +38 -21
- package/es/NDLAFilm/AllMoviesAlphabetically.js +47 -55
- package/es/NDLAFilm/CategorySelect.js +64 -52
- package/es/NDLAFilm/FilmContentCard.js +25 -26
- package/es/NDLAFilm/FilmContentCardTags.js +10 -12
- package/es/NDLAFilm/FilmMovieList.js +28 -23
- package/es/NDLAFilm/FilmMovieSearch.js +33 -24
- package/es/NDLAFilm/FilmSlideshow.js +73 -59
- package/es/NDLAFilm/MovieGrid.js +26 -23
- package/es/NDLAFilm/NavigationArrow.js +19 -29
- package/es/NDLAFilm/SlideshowIndicator.js +15 -17
- package/es/NDLAFilm/VisualElement.js +4 -6
- package/es/NDLAFilm/filmStyles.js +2 -6
- package/es/Navigation/NavigationBox.js +90 -111
- package/es/Navigation/NavigationHeading.js +15 -15
- package/es/Navigation/NavigationTopicAbout.js +60 -57
- package/es/NoContentBox/NoContentBox.js +16 -5
- package/es/Notion/ConceptNotion.js +68 -55
- package/es/Notion/FigureNotion.js +40 -41
- package/es/Notion/Notion.js +23 -20
- package/es/Notion/NotionImage.js +18 -19
- package/es/Notion/NotionVisualElement.js +18 -17
- package/es/Portrait/Portrait.js +12 -21
- package/es/Programme/Programme.js +32 -27
- package/es/Programme/ProgrammeSubjects.js +27 -22
- package/es/RadioButtonGroup/RadioButtonGroup.js +31 -32
- package/es/RelatedArticleList/RelatedArticleList.js +42 -22
- package/es/Resource/BlockResource.js +85 -84
- package/es/Resource/ListResource.js +107 -108
- package/es/Resource/resourceComponents.js +56 -76
- package/es/ResourceBox/ResourceBox.js +28 -30
- package/es/ResourceGroup/ResourceGroup.js +21 -21
- package/es/ResourceGroup/ResourceItem.js +77 -79
- package/es/ResourceGroup/ResourceList.js +35 -32
- package/es/ResourcesWrapper/ResourcesTitle.js +17 -5
- package/es/ResourcesWrapper/ResourcesTopicTitle.js +76 -49
- package/es/ResourcesWrapper/ResourcesWrapper.js +15 -6
- package/es/Search/ActiveFilterContent.js +10 -10
- package/es/Search/ActiveFilters.js +33 -43
- package/es/Search/ContentTypeResult.js +96 -69
- package/es/Search/ContentTypeResultStyles.js +15 -59
- package/es/Search/LoadingWrapper.js +12 -7
- package/es/Search/SearchField.js +55 -50
- package/es/Search/SearchFieldForm.js +9 -18
- package/es/Search/SearchResult.js +101 -73
- package/es/Search/SearchResultSleeve.js +78 -64
- package/es/Search/ToggleSearchButton.js +15 -10
- package/es/SearchTypeResult/ActiveFilterContent.js +10 -10
- package/es/SearchTypeResult/ActiveFilters.js +50 -53
- package/es/SearchTypeResult/PopupFilter.js +68 -65
- package/es/SearchTypeResult/ResultNavigation.js +29 -28
- package/es/SearchTypeResult/SearchFieldHeader.js +53 -57
- package/es/SearchTypeResult/SearchFilterContent.js +19 -18
- package/es/SearchTypeResult/SearchHeader.js +60 -48
- package/es/SearchTypeResult/SearchItem.js +52 -45
- package/es/SearchTypeResult/SearchItemList.js +56 -54
- package/es/SearchTypeResult/SearchItems.js +16 -18
- package/es/SearchTypeResult/SearchNotionItem.js +86 -77
- package/es/SearchTypeResult/SearchNotionsResult.js +20 -19
- package/es/SearchTypeResult/SearchSubjectItem.js +19 -15
- package/es/SearchTypeResult/SearchSubjectResult.js +10 -12
- package/es/SearchTypeResult/SearchTypeHeader.js +53 -51
- package/es/SearchTypeResult/SearchTypeResult.js +24 -17
- package/es/SearchTypeResult/SearchViewType.js +42 -39
- package/es/SearchTypeResult/components/ItemContexts.js +65 -58
- package/es/SearchTypeResult/components/ItemResourceHeader.js +41 -38
- package/es/SearchTypeResult/components/ItemTopicHeader.js +24 -23
- package/es/SearchTypeResult/components/SubjectFilters.js +32 -21
- package/es/SectionHeading/SectionHeading.js +9 -16
- package/es/SnackBar/DefaultSnackbar.js +18 -18
- package/es/SnackBar/SnackbarProvider.js +24 -26
- package/es/Subject/Subject.js +52 -54
- package/es/Subject/SubjectAbout.js +27 -36
- package/es/Subject/SubjectArchive.js +64 -57
- package/es/Subject/SubjectBanner.js +3 -5
- package/es/Subject/SubjectCarousel.js +94 -93
- package/es/Subject/SubjectHeader.js +20 -25
- package/es/Subject/SubjectLinks.js +26 -15
- package/es/Subject/SubjectNewContent.js +37 -35
- package/es/Subject/SubjectShortcuts.js +32 -27
- package/es/Subject/SubjectSocial.js +12 -9
- package/es/Table/Table.js +39 -21
- package/es/TagSelector/Control.js +11 -14
- package/es/TagSelector/DropdownIndicator.js +15 -11
- package/es/TagSelector/Input.js +9 -8
- package/es/TagSelector/Menu.js +12 -9
- package/es/TagSelector/MenuList.js +11 -14
- package/es/TagSelector/Option.js +13 -10
- package/es/TagSelector/SelectContainer.js +11 -12
- package/es/TagSelector/TagSelector.js +49 -50
- package/es/TagSelector/ValueButton.js +15 -9
- package/es/ToolboxPage/ToolboxInfo.js +18 -14
- package/es/Topic/Loader.js +97 -95
- package/es/Topic/Topic.js +128 -121
- package/es/TopicIntroductionList/TopicIntroduction.js +51 -36
- package/es/TopicIntroductionList/TopicIntroductionList.js +29 -22
- package/es/TopicIntroductionList/TopicIntroductionShortcuts.js +29 -16
- package/es/TopicIntroductionList/TopicShortcutItem.js +22 -12
- package/es/TopicMenu/SubtopicLinkList.js +109 -101
- package/es/TopicMenu/TopicMenu.js +202 -139
- package/es/TopicMenu/TopicMenuButton.js +14 -10
- package/es/Translation/Translation.js +16 -2
- package/es/Translation/TranslationBox.js +10 -8
- package/es/Translation/TranslationLine.js +23 -7
- package/es/TreeStructure/AddFolderButton.js +33 -34
- package/es/TreeStructure/ComboboxButton.js +32 -32
- package/es/TreeStructure/FolderItem.js +55 -58
- package/es/TreeStructure/FolderItems.js +59 -51
- package/es/TreeStructure/NavigationLink.js +10 -17
- package/es/TreeStructure/TreeStructure.js +64 -75
- package/es/User/AuthModal.js +48 -45
- package/es/User/UserInfo.js +51 -40
- package/es/internal-icons/Book.js +8 -6
- package/es/internal-icons/Download.js +9 -7
- package/es/internal-icons/Embed.js +8 -6
- package/es/internal-icons/InsertTemplate.js +8 -6
- package/es/internal-icons/OpenWindow.js +8 -6
- package/es/locale/LocaleProvider.js +13 -7
- 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/model/SubjectTypes.js +1 -0
- package/es/utils/createUniversalPortal.js +6 -4
- package/lib/Animation/DisplayOnPageYOffset.js +6 -5
- package/lib/Animation/Fade.js +12 -7
- package/lib/Article/Article.js +91 -69
- package/lib/Article/ArticleAccessMessage.js +11 -9
- package/lib/Article/ArticleByline.js +87 -71
- package/lib/Article/ArticleContent.js +8 -4
- package/lib/Article/ArticleFavoritesButton.js +18 -17
- package/lib/Article/ArticleFootNotes.js +27 -21
- package/lib/Article/ArticleHeaderWrapper.js +42 -30
- package/lib/Article/ArticleNotions.js +58 -51
- package/lib/Article/ArticleSideBar.js +52 -44
- package/lib/Aside/Aside.js +13 -6
- package/lib/AudioPlayer/AudioPlayer.js +98 -94
- package/lib/AudioPlayer/Controls.js +181 -193
- package/lib/AudioPlayer/SpeechControl.js +20 -19
- package/lib/AudioPlayer/initAudioPlayers.js +4 -4
- package/lib/AuthorInfo/AuthorInfo.js +23 -18
- package/lib/BannerCard/BannerCard.js +27 -30
- package/lib/BlogPosts/BlogPost.js +32 -29
- package/lib/BlogPosts/BlogPostWrapper.js +7 -8
- package/lib/Breadcrumb/ActionBreadcrumb.js +23 -34
- package/lib/Breadcrumb/Breadcrumb.js +31 -34
- package/lib/Breadcrumb/BreadcrumbItem.js +24 -27
- package/lib/Breadcrumb/HeaderBreadcrumb.js +18 -29
- package/lib/Breadcrumb/HomeBreadcrumb.js +29 -37
- package/lib/Breadcrumblist/Breadcrumblist.js +61 -62
- package/lib/CompetenceGoalTab/CompetenceGoalItem.js +33 -35
- package/lib/CompetenceGoalTab/CompetenceGoalTab.js +44 -41
- package/lib/CompetenceGoalTab/CompetenceItem.js +65 -64
- package/lib/CompetenceGoalTab/SearchButton.js +20 -17
- package/lib/CompetenceGoals/CompetenceGoalsDialog.js +40 -30
- package/lib/ComponentCursor/ComponentCursor.js +19 -33
- package/lib/ContentCard/ContentCard.js +38 -36
- package/lib/ContentLoader/index.js +56 -44
- package/lib/ContentPlaceholder/ContentPlaceholder.js +8 -12
- package/lib/ContentTypeBadge/ContentTypeBadge.js +27 -21
- package/lib/CopyParagraphButton/CopyParagraphButton.js +32 -31
- package/lib/CopyParagraphButton/initCopyParagraphButtons.js +3 -3
- package/lib/CreatedBy/CreatedBy.js +24 -24
- package/lib/Dialog/Dialog.js +22 -13
- package/lib/ErrorMessage/ErrorMessage.js +46 -33
- package/lib/ErrorMessage/ErrorResourceAccessDenied.js +14 -14
- package/lib/FactBox/FactBox.js +19 -12
- package/lib/Figure/Figure.js +70 -35
- package/lib/Figure/FigureBylineExpandButton.js +10 -9
- package/lib/Figure/FigureExpandButton.js +10 -9
- package/lib/Figure/FigureLicense.js +40 -25
- package/lib/Figure/FigureLicenseDialog.js +26 -16
- package/lib/Figure/FigureOpenDialogButton.js +28 -27
- package/lib/FileList/File.js +24 -23
- package/lib/FileList/FileList.js +17 -18
- package/lib/Filter/FilterButtons.js +111 -88
- package/lib/Filter/FilterCarousel.js +52 -47
- package/lib/Filter/FilterList.js +73 -53
- package/lib/Filter/FilterListPhone.js +150 -111
- package/lib/Filter/ToggleItem.js +23 -14
- package/lib/Footer/EditorName.js +7 -3
- package/lib/Footer/Footer.js +39 -35
- package/lib/Footer/FooterAuth.js +50 -48
- package/lib/Footer/FooterLinks.js +42 -37
- package/lib/Footer/FooterPrivacy.js +30 -25
- package/lib/Footer/FooterText.js +6 -6
- package/lib/Footer/privacy_en.js +35 -3
- package/lib/Footer/privacy_nb.js +35 -3
- package/lib/Footer/privacy_nn.js +33 -3
- package/lib/Frontpage/FrontpageAllSubjects.d.ts +1 -0
- package/lib/Frontpage/FrontpageAllSubjects.js +74 -66
- package/lib/Frontpage/FrontpageFilm.js +27 -26
- package/lib/Frontpage/FrontpageHeader.js +20 -22
- package/lib/Frontpage/FrontpageInfo.js +6 -6
- package/lib/Frontpage/FrontpageMultidisciplinarySubject.js +41 -41
- package/lib/Frontpage/FrontpageProgramMenu.js +53 -54
- package/lib/Frontpage/FrontpageSearch.js +42 -42
- package/lib/Frontpage/FrontpageToolbox.js +29 -28
- package/lib/Frontpage/illustrations/Fellesfag.js +84 -82
- package/lib/Frontpage/illustrations/FrontpageHeaderIllustration.js +99 -88
- package/lib/Frontpage/illustrations/FrontpageIllustrations.js +2 -6
- package/lib/Frontpage/illustrations/FrontpageSubjectIllustration.js +161 -154
- package/lib/Frontpage/illustrations/MenuFellesfag.js +65 -62
- package/lib/Frontpage/illustrations/MenuStudiespesialiserende.js +62 -60
- package/lib/Frontpage/illustrations/MenuYrkesfag.js +92 -90
- package/lib/Frontpage/illustrations/Studiespesialiserende.js +72 -70
- package/lib/Frontpage/illustrations/Yrkesfag.js +103 -101
- package/lib/Hero/Hero.js +17 -11
- package/lib/Image/Image.js +35 -25
- package/lib/Image/ImageLink.js +12 -8
- package/lib/Image/LazyLoadImage.js +27 -22
- package/lib/InfoBlock/InfoBlock.js +18 -18
- package/lib/InfoBox/InfoBox.js +6 -6
- package/lib/InfoWidget/InfoWidget.js +56 -59
- package/lib/LanguageSelector/LanguageSelector.js +54 -66
- package/lib/LanguageSelector/LanguageSelectorContent.js +30 -32
- package/lib/Layout/Content.js +6 -5
- package/lib/Layout/LayoutItem.js +18 -14
- package/lib/Layout/OneColumn.js +6 -5
- package/lib/Layout/PageContainer.js +12 -11
- package/lib/LearningPaths/LearningPathContent.js +6 -6
- package/lib/LearningPaths/LearningPathInformation.js +25 -26
- package/lib/LearningPaths/LearningPathLastStepNavigation.js +32 -27
- package/lib/LearningPaths/LearningPathMenu.js +47 -46
- package/lib/LearningPaths/LearningPathMenuAside.js +30 -42
- package/lib/LearningPaths/LearningPathMenuAsideCopyright.js +16 -16
- package/lib/LearningPaths/LearningPathMenuContent.js +38 -38
- package/lib/LearningPaths/LearningPathMenuIntro.js +25 -30
- package/lib/LearningPaths/LearningPathMenuModalWrapper.js +27 -17
- package/lib/LearningPaths/LearningPathMobileHeader.js +12 -19
- package/lib/LearningPaths/LearningPathMobileStepInfo.js +9 -9
- package/lib/LearningPaths/LearningPathSticky.js +22 -21
- package/lib/LearningPaths/LearningPathWrapper.js +9 -12
- package/lib/Logo/Logo.js +23 -21
- package/lib/Logo/SvgLogo.js +24 -19
- package/lib/Masthead/Masthead.js +33 -37
- package/lib/Masthead/MastheadAuthModal.js +13 -10
- package/lib/Masthead/MastheadSearchModal.js +30 -31
- package/lib/Masthead/SkipToMainContent.js +7 -8
- package/lib/MediaList/MediaList.js +58 -40
- package/lib/Messages/MessageBanner.js +15 -20
- package/lib/Messages/MessageBox.js +41 -49
- package/lib/Messages/MessageBoxTag.js +6 -6
- package/lib/MultidisciplinarySubject/Illustrations.js +7 -21
- package/lib/MultidisciplinarySubject/List.js +19 -17
- package/lib/MultidisciplinarySubject/ListItem.js +30 -33
- package/lib/MultidisciplinarySubject/MultidisciplinarySubject.js +39 -35
- package/lib/MultidisciplinarySubject/MultidisciplinarySubjectHeader.js +36 -34
- package/lib/MyNdla/Resource/Folder.js +46 -61
- package/lib/MyNdla/Resource/FolderInput.js +39 -32
- package/lib/NDLAFilm/AboutNdlaFilm.js +38 -22
- package/lib/NDLAFilm/AllMoviesAlphabetically.js +47 -54
- package/lib/NDLAFilm/CategorySelect.js +64 -51
- package/lib/NDLAFilm/FilmContentCard.js +25 -27
- package/lib/NDLAFilm/FilmContentCardTags.js +11 -13
- package/lib/NDLAFilm/FilmMovieList.js +28 -24
- package/lib/NDLAFilm/FilmMovieSearch.js +33 -25
- package/lib/NDLAFilm/FilmSlideshow.js +72 -58
- package/lib/NDLAFilm/MovieGrid.js +26 -24
- package/lib/NDLAFilm/NavigationArrow.js +20 -28
- package/lib/NDLAFilm/SlideshowIndicator.js +16 -18
- package/lib/NDLAFilm/VisualElement.js +5 -7
- package/lib/NDLAFilm/filmStyles.js +2 -6
- package/lib/Navigation/NavigationBox.js +90 -110
- package/lib/Navigation/NavigationHeading.js +15 -14
- package/lib/Navigation/NavigationTopicAbout.js +59 -56
- package/lib/NoContentBox/NoContentBox.js +15 -6
- package/lib/Notion/ConceptNotion.js +67 -50
- package/lib/Notion/FigureNotion.js +40 -37
- package/lib/Notion/Notion.js +22 -21
- package/lib/Notion/NotionImage.js +19 -20
- package/lib/Notion/NotionVisualElement.js +19 -16
- package/lib/Portrait/Portrait.js +13 -21
- package/lib/Programme/Programme.js +32 -28
- package/lib/Programme/ProgrammeSubjects.js +26 -23
- package/lib/RadioButtonGroup/RadioButtonGroup.js +31 -33
- package/lib/RelatedArticleList/RelatedArticleList.js +41 -23
- package/lib/Resource/BlockResource.js +84 -78
- package/lib/Resource/ListResource.js +106 -102
- package/lib/Resource/resourceComponents.js +55 -70
- package/lib/ResourceBox/ResourceBox.js +28 -31
- package/lib/ResourceGroup/ResourceGroup.js +21 -22
- package/lib/ResourceGroup/ResourceItem.js +76 -78
- package/lib/ResourceGroup/ResourceList.js +35 -31
- package/lib/ResourcesWrapper/ResourcesTitle.js +16 -13
- package/lib/ResourcesWrapper/ResourcesTopicTitle.js +75 -48
- package/lib/ResourcesWrapper/ResourcesWrapper.js +14 -7
- package/lib/Search/ActiveFilterContent.js +10 -11
- package/lib/Search/ActiveFilters.js +34 -42
- package/lib/Search/ContentTypeResult.js +92 -68
- package/lib/Search/ContentTypeResultStyles.js +15 -59
- package/lib/Search/LoadingWrapper.js +12 -8
- package/lib/Search/SearchField.js +57 -51
- package/lib/Search/SearchFieldForm.js +10 -17
- package/lib/Search/SearchResult.js +101 -74
- package/lib/Search/SearchResultSleeve.js +78 -65
- package/lib/Search/ToggleSearchButton.js +15 -11
- package/lib/SearchTypeResult/ActiveFilterContent.js +10 -11
- package/lib/SearchTypeResult/ActiveFilters.js +50 -52
- package/lib/SearchTypeResult/PopupFilter.js +68 -66
- package/lib/SearchTypeResult/ResultNavigation.js +29 -29
- package/lib/SearchTypeResult/SearchFieldHeader.js +53 -58
- package/lib/SearchTypeResult/SearchFilterContent.js +19 -19
- package/lib/SearchTypeResult/SearchHeader.js +59 -49
- package/lib/SearchTypeResult/SearchItem.js +51 -46
- package/lib/SearchTypeResult/SearchItemList.js +55 -55
- package/lib/SearchTypeResult/SearchItems.js +17 -19
- package/lib/SearchTypeResult/SearchNotionItem.js +85 -78
- package/lib/SearchTypeResult/SearchNotionsResult.js +20 -20
- package/lib/SearchTypeResult/SearchSubjectItem.js +18 -16
- package/lib/SearchTypeResult/SearchSubjectResult.js +11 -13
- package/lib/SearchTypeResult/SearchTypeHeader.js +54 -53
- package/lib/SearchTypeResult/SearchTypeResult.js +24 -25
- package/lib/SearchTypeResult/SearchViewType.js +42 -40
- package/lib/SearchTypeResult/components/ItemContexts.js +64 -59
- package/lib/SearchTypeResult/components/ItemResourceHeader.js +40 -39
- package/lib/SearchTypeResult/components/ItemTopicHeader.js +23 -24
- package/lib/SearchTypeResult/components/SubjectFilters.js +31 -22
- package/lib/SectionHeading/SectionHeading.js +10 -15
- package/lib/SnackBar/DefaultSnackbar.js +18 -19
- package/lib/SnackBar/SnackbarProvider.js +24 -25
- package/lib/Subject/Subject.js +52 -53
- package/lib/Subject/SubjectAbout.js +27 -35
- package/lib/Subject/SubjectArchive.js +63 -58
- package/lib/Subject/SubjectBanner.js +4 -6
- package/lib/Subject/SubjectCarousel.js +96 -96
- package/lib/Subject/SubjectHeader.js +20 -24
- package/lib/Subject/SubjectLinks.js +26 -16
- package/lib/Subject/SubjectNewContent.js +37 -36
- package/lib/Subject/SubjectShortcuts.js +32 -28
- package/lib/Subject/SubjectSocial.js +12 -10
- package/lib/Table/Table.js +38 -22
- package/lib/TagSelector/Control.js +12 -8
- package/lib/TagSelector/DropdownIndicator.js +16 -12
- package/lib/TagSelector/Input.js +8 -6
- package/lib/TagSelector/Menu.js +12 -8
- package/lib/TagSelector/MenuList.js +12 -8
- package/lib/TagSelector/Option.js +13 -11
- package/lib/TagSelector/SelectContainer.js +12 -13
- package/lib/TagSelector/TagSelector.js +49 -51
- package/lib/TagSelector/ValueButton.js +15 -10
- package/lib/ToolboxPage/ToolboxInfo.js +17 -15
- package/lib/Topic/Loader.js +97 -96
- package/lib/Topic/Topic.js +127 -120
- package/lib/TopicIntroductionList/TopicIntroduction.js +50 -37
- package/lib/TopicIntroductionList/TopicIntroductionList.js +28 -23
- package/lib/TopicIntroductionList/TopicIntroductionShortcuts.js +33 -21
- package/lib/TopicIntroductionList/TopicShortcutItem.js +21 -13
- package/lib/TopicMenu/SubtopicLinkList.js +112 -104
- package/lib/TopicMenu/TopicMenu.js +207 -144
- package/lib/TopicMenu/TopicMenuButton.js +13 -9
- package/lib/Translation/Translation.js +15 -10
- package/lib/Translation/TranslationBox.js +11 -9
- package/lib/Translation/TranslationLine.js +21 -8
- package/lib/TreeStructure/AddFolderButton.js +35 -37
- package/lib/TreeStructure/ComboboxButton.js +32 -33
- package/lib/TreeStructure/FolderItem.js +55 -59
- package/lib/TreeStructure/FolderItems.js +58 -52
- package/lib/TreeStructure/NavigationLink.js +10 -11
- package/lib/TreeStructure/TreeStructure.js +64 -74
- package/lib/User/AuthModal.js +48 -46
- package/lib/User/UserInfo.js +52 -36
- package/lib/internal-icons/Book.js +8 -7
- package/lib/internal-icons/Download.js +9 -8
- package/lib/internal-icons/Embed.js +8 -7
- package/lib/internal-icons/InsertTemplate.js +8 -7
- package/lib/internal-icons/OpenWindow.js +8 -7
- package/lib/locale/LocaleProvider.js +12 -8
- package/lib/locale/messages-en.d.ts +1 -0
- package/lib/locale/messages-en.js +1 -1
- package/lib/locale/messages-nb.d.ts +1 -0
- package/lib/locale/messages-nb.js +1 -1
- package/lib/locale/messages-nn.d.ts +1 -0
- package/lib/locale/messages-nn.js +1 -1
- package/lib/locale/messages-se.d.ts +1 -0
- package/lib/locale/messages-se.js +1 -1
- package/lib/locale/messages-sma.d.ts +1 -0
- package/lib/locale/messages-sma.js +1 -1
- package/lib/model/SubjectTypes.d.ts +1 -0
- package/lib/model/SubjectTypes.js +3 -1
- package/lib/utils/createUniversalPortal.js +6 -5
- package/package.json +15 -15
- package/src/AudioPlayer/Controls.tsx +2 -2
- package/src/AudioPlayer/SpeechControl.tsx +2 -2
- package/src/Frontpage/FrontpageAllSubjects.tsx +8 -7
- package/src/locale/messages-en.ts +1 -0
- package/src/locale/messages-nb.ts +1 -0
- package/src/locale/messages-nn.ts +1 -0
- package/src/locale/messages-se.ts +1 -0
- package/src/locale/messages-sma.ts +1 -0
- package/src/model/SubjectTypes.ts +1 -0
- package/src/.DS_Store +0 -0
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Copyright (c) 2019-present, NDLA.
|
|
3
6
|
*
|
|
@@ -6,112 +9,113 @@
|
|
|
6
9
|
*
|
|
7
10
|
*/
|
|
8
11
|
import React from 'react';
|
|
9
|
-
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
10
12
|
|
|
11
13
|
var Illustration = function Illustration() {
|
|
12
|
-
return
|
|
14
|
+
return _jsx("svg", {
|
|
13
15
|
width: "90px",
|
|
14
16
|
height: "90px",
|
|
15
17
|
viewBox: "0 0 90 90",
|
|
16
18
|
version: "1.1",
|
|
17
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
19
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
20
|
+
children: _jsxs("g", {
|
|
21
|
+
id: "Artboard",
|
|
22
|
+
stroke: "none",
|
|
23
|
+
strokeWidth: "1",
|
|
24
|
+
fill: "none",
|
|
25
|
+
fillRule: "evenodd",
|
|
26
|
+
children: [_jsx("path", {
|
|
27
|
+
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",
|
|
28
|
+
id: "Path",
|
|
29
|
+
stroke: "#000000",
|
|
30
|
+
strokeWidth: "0.5"
|
|
31
|
+
}), _jsx("path", {
|
|
32
|
+
d: "M39.7196249,33.4594669 C39.0366355,32.577042 42.1670033,35.3713876 42.6792453,33.8271441",
|
|
33
|
+
id: "Path",
|
|
34
|
+
stroke: "#000000",
|
|
35
|
+
strokeWidth: "0.5"
|
|
36
|
+
}), _jsx("path", {
|
|
37
|
+
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",
|
|
38
|
+
id: "Path",
|
|
39
|
+
stroke: "#000000",
|
|
40
|
+
strokeWidth: "0.5",
|
|
41
|
+
strokeLinecap: "round"
|
|
42
|
+
}), _jsx("path", {
|
|
43
|
+
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",
|
|
44
|
+
id: "Path",
|
|
45
|
+
stroke: "#000000",
|
|
46
|
+
strokeWidth: "0.5"
|
|
47
|
+
}), _jsx("path", {
|
|
48
|
+
d: "M38.6037736,55.6981132 C38.9564586,51.1005769 41.6603774,42.4528302 41.6603774,42.4528302",
|
|
49
|
+
id: "Path",
|
|
50
|
+
stroke: "#000000",
|
|
51
|
+
strokeWidth: "0.5",
|
|
52
|
+
strokeLinecap: "round"
|
|
53
|
+
}), _jsx("path", {
|
|
54
|
+
d: "M44.7169811,43.4716981 C44.2953806,43.9465103 41.6252439,52.0776699 40.6415094,55.6981132",
|
|
55
|
+
id: "Path",
|
|
56
|
+
stroke: "#000000",
|
|
57
|
+
strokeWidth: "0.5",
|
|
58
|
+
strokeLinecap: "round"
|
|
59
|
+
}), _jsx("path", {
|
|
60
|
+
d: "M32.3886792,41.4339623 C32.3886792,41.4339623 32.3886792,51.8608842 31.5735849,52.6415094",
|
|
61
|
+
id: "Path",
|
|
62
|
+
stroke: "#000000",
|
|
63
|
+
strokeWidth: "0.5",
|
|
64
|
+
strokeLinecap: "round"
|
|
65
|
+
}), _jsx("path", {
|
|
66
|
+
d: "M29.8924528,41.4339623 L29.9943396,55.6981132",
|
|
67
|
+
id: "Path",
|
|
68
|
+
stroke: "#000000",
|
|
69
|
+
strokeWidth: "0.5",
|
|
70
|
+
strokeLinecap: "round"
|
|
71
|
+
}), _jsx("path", {
|
|
72
|
+
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",
|
|
73
|
+
id: "Path",
|
|
74
|
+
stroke: "#000000",
|
|
75
|
+
strokeWidth: "0.5"
|
|
76
|
+
}), _jsx("path", {
|
|
77
|
+
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",
|
|
78
|
+
id: "Path",
|
|
79
|
+
stroke: "#000000",
|
|
80
|
+
strokeWidth: "0.5"
|
|
81
|
+
}), _jsx("path", {
|
|
82
|
+
d: "M50.8301887,26.0105223 C50.8952228,26.7835023 53.8867925,24.1132075 53.8867925,24.1132075",
|
|
83
|
+
id: "Path",
|
|
84
|
+
stroke: "#000000",
|
|
85
|
+
strokeWidth: "0.5",
|
|
86
|
+
strokeLinecap: "round"
|
|
87
|
+
}), _jsx("path", {
|
|
88
|
+
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",
|
|
89
|
+
id: "Path",
|
|
90
|
+
stroke: "#000000",
|
|
91
|
+
strokeWidth: "0.5",
|
|
92
|
+
strokeLinecap: "round"
|
|
93
|
+
}), _jsx("path", {
|
|
94
|
+
d: "M57.9622642,47.5471698 C57.9622642,47.9864422 57.5613981,53.5322562 53.8867925,56.7169811",
|
|
95
|
+
id: "Path",
|
|
96
|
+
stroke: "#000000",
|
|
97
|
+
strokeWidth: "0.5",
|
|
98
|
+
strokeLinecap: "round"
|
|
99
|
+
}), _jsx("path", {
|
|
100
|
+
d: "M69.1698113,54.6792453 C69.3087478,55.1050408 70.1886792,61.8113208 70.1886792,61.8113208",
|
|
101
|
+
id: "Path",
|
|
102
|
+
stroke: "#000000",
|
|
103
|
+
strokeWidth: "0.5",
|
|
104
|
+
strokeLinecap: "round"
|
|
105
|
+
}), _jsx("path", {
|
|
106
|
+
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",
|
|
107
|
+
id: "Path",
|
|
108
|
+
stroke: "#000000",
|
|
109
|
+
strokeWidth: "0.5"
|
|
110
|
+
}), _jsx("path", {
|
|
111
|
+
d: "M6,63.3396226 L26.3773585,63.3396226",
|
|
112
|
+
id: "Path",
|
|
113
|
+
stroke: "#000000",
|
|
114
|
+
strokeWidth: "0.5",
|
|
115
|
+
strokeLinecap: "round"
|
|
116
|
+
})]
|
|
117
|
+
})
|
|
118
|
+
});
|
|
115
119
|
};
|
|
116
120
|
|
|
117
121
|
export default Illustration;
|
package/es/Hero/Hero.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
+
|
|
1
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
6
|
|
|
5
|
-
function
|
|
7
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
8
|
+
|
|
9
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
10
|
+
|
|
11
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
12
|
|
|
7
13
|
/**
|
|
8
14
|
* Copyright (c) 2016-present, NDLA.
|
|
@@ -14,7 +20,6 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
14
20
|
import React from 'react';
|
|
15
21
|
import BEMHelper from 'react-bem-helper';
|
|
16
22
|
import * as contentTypes from '../model/ContentType';
|
|
17
|
-
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
18
23
|
var classes = new BEMHelper({
|
|
19
24
|
name: 'hero',
|
|
20
25
|
prefix: 'c-'
|
|
@@ -22,35 +27,37 @@ var classes = new BEMHelper({
|
|
|
22
27
|
export var Hero = function Hero(_ref) {
|
|
23
28
|
var children = _ref.children,
|
|
24
29
|
contentType = _ref.contentType;
|
|
25
|
-
return
|
|
30
|
+
return _jsx("div", _objectSpread(_objectSpread({}, classes('', contentType)), {}, {
|
|
31
|
+
children: children || null
|
|
32
|
+
}));
|
|
26
33
|
};
|
|
27
34
|
export var SubjectMaterialHero = function SubjectMaterialHero(props) {
|
|
28
|
-
return
|
|
35
|
+
return _jsx(Hero, _objectSpread({
|
|
29
36
|
contentType: contentTypes.SUBJECT_MATERIAL
|
|
30
37
|
}, props));
|
|
31
38
|
};
|
|
32
39
|
export var TasksAndActivitiesHero = function TasksAndActivitiesHero(props) {
|
|
33
|
-
return
|
|
40
|
+
return _jsx(Hero, _objectSpread({
|
|
34
41
|
contentType: contentTypes.TASKS_AND_ACTIVITIES
|
|
35
42
|
}, props));
|
|
36
43
|
};
|
|
37
44
|
export var AssessmentResourcesHero = function AssessmentResourcesHero(props) {
|
|
38
|
-
return
|
|
45
|
+
return _jsx(Hero, _objectSpread({
|
|
39
46
|
contentType: contentTypes.ASSESSMENT_RESOURCES
|
|
40
47
|
}, props));
|
|
41
48
|
};
|
|
42
49
|
export var SubjectHero = function SubjectHero(props) {
|
|
43
|
-
return
|
|
50
|
+
return _jsx(Hero, _objectSpread({
|
|
44
51
|
contentType: contentTypes.SUBJECT
|
|
45
52
|
}, props));
|
|
46
53
|
};
|
|
47
54
|
export var ExternalLearningResourcesHero = function ExternalLearningResourcesHero(props) {
|
|
48
|
-
return
|
|
55
|
+
return _jsx(Hero, _objectSpread({
|
|
49
56
|
contentType: contentTypes.EXTERNAL_LEARNING_RESOURCES
|
|
50
57
|
}, props));
|
|
51
58
|
};
|
|
52
59
|
export var SourceMaterialHero = function SourceMaterialHero(props) {
|
|
53
|
-
return
|
|
60
|
+
return _jsx(Hero, _objectSpread({
|
|
54
61
|
contentType: contentTypes.SOURCE_MATERIAL
|
|
55
62
|
}, props));
|
|
56
63
|
};
|
|
@@ -58,7 +65,7 @@ export var NdlaFilmHero = function NdlaFilmHero(_ref2) {
|
|
|
58
65
|
var hasImage = _ref2.hasImage,
|
|
59
66
|
rest = _objectWithoutProperties(_ref2, ["hasImage"]);
|
|
60
67
|
|
|
61
|
-
return
|
|
68
|
+
return _jsx(Hero, _objectSpread(_objectSpread({}, rest), {}, {
|
|
62
69
|
contentType: hasImage ? 'ndla-film has-image' : 'ndla-film'
|
|
63
70
|
}));
|
|
64
71
|
};
|
package/es/Image/Image.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
|
+
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
2
4
|
|
|
3
|
-
function
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
8
|
+
|
|
9
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
10
|
|
|
5
11
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
12
|
|
|
@@ -17,7 +23,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
17
23
|
*/
|
|
18
24
|
import React from 'react';
|
|
19
25
|
import LazyLoadImage from './LazyLoadImage';
|
|
20
|
-
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
21
26
|
export var makeSrcQueryString = function makeSrcQueryString(width, crop, focalPoint) {
|
|
22
27
|
var widthParams = width && "width=".concat(width);
|
|
23
28
|
var cropParams = crop && "cropStartX=".concat(crop.startX, "&cropEndX=").concat(crop.endX, "&cropStartY=").concat(crop.startY, "&cropEndY=").concat(crop.endY);
|
|
@@ -35,9 +40,7 @@ var getSrcSet = function getSrcSet(src, crop, focalPoint) {
|
|
|
35
40
|
}).join(', ');
|
|
36
41
|
};
|
|
37
42
|
|
|
38
|
-
var StyledImageWrapper = /*#__PURE__*/_styled("div",
|
|
39
|
-
target: "ejtxxex0"
|
|
40
|
-
} : {
|
|
43
|
+
var StyledImageWrapper = /*#__PURE__*/_styled("div", {
|
|
41
44
|
target: "ejtxxex0",
|
|
42
45
|
label: "StyledImageWrapper"
|
|
43
46
|
})(process.env.NODE_ENV === "production" ? {
|
|
@@ -71,30 +74,38 @@ var Image = function Image(_ref) {
|
|
|
71
74
|
var queryString = makeSrcQueryString(fallbackWidth, crop, focalPoint);
|
|
72
75
|
|
|
73
76
|
if (contentType && contentType === 'image/gif') {
|
|
74
|
-
return
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
return _jsx(StyledImageWrapper, {
|
|
78
|
+
children: _jsx("img", _objectSpread({
|
|
79
|
+
alt: alt,
|
|
80
|
+
src: "".concat(src)
|
|
81
|
+
}, rest))
|
|
82
|
+
});
|
|
78
83
|
}
|
|
79
84
|
|
|
80
85
|
if (lazyLoad) {
|
|
81
|
-
return
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
return _jsx(StyledImageWrapper, {
|
|
87
|
+
children: _jsx(LazyLoadImage, {
|
|
88
|
+
alt: alt,
|
|
89
|
+
src: "".concat(src, "?").concat(queryString),
|
|
90
|
+
srcSet: srcSet,
|
|
91
|
+
sizes: sizes,
|
|
92
|
+
lazyLoadSrc: lazyLoadSrc
|
|
93
|
+
})
|
|
94
|
+
});
|
|
88
95
|
}
|
|
89
96
|
|
|
90
|
-
return
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
return _jsxs(StyledImageWrapper, {
|
|
98
|
+
children: [_jsxs("picture", {
|
|
99
|
+
children: [_jsx("source", {
|
|
100
|
+
type: contentType,
|
|
101
|
+
srcSet: srcSet,
|
|
102
|
+
sizes: sizes
|
|
103
|
+
}), _jsx("img", _objectSpread({
|
|
104
|
+
alt: alt,
|
|
105
|
+
src: "".concat(src, "?").concat(queryString)
|
|
106
|
+
}, rest))]
|
|
107
|
+
}), expandButton]
|
|
108
|
+
});
|
|
98
109
|
};
|
|
99
110
|
|
|
100
111
|
export default Image;
|
package/es/Image/ImageLink.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
2
3
|
|
|
3
|
-
function
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
5
|
+
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
7
|
+
|
|
8
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
9
|
|
|
5
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
11
|
|
|
@@ -17,11 +22,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
17
22
|
*/
|
|
18
23
|
import React from 'react';
|
|
19
24
|
import { makeSrcQueryString } from './Image';
|
|
20
|
-
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
21
25
|
|
|
22
|
-
var StyledLink = /*#__PURE__*/_styled("a",
|
|
23
|
-
target: "eo3pjlm0"
|
|
24
|
-
} : {
|
|
26
|
+
var StyledLink = /*#__PURE__*/_styled("a", {
|
|
25
27
|
target: "eo3pjlm0",
|
|
26
28
|
label: "StyledLink"
|
|
27
29
|
})(process.env.NODE_ENV === "production" ? {
|
|
@@ -40,9 +42,11 @@ export function ImageLink(_ref) {
|
|
|
40
42
|
children = _ref.children,
|
|
41
43
|
rest = _objectWithoutProperties(_ref, ["src", "crop", "children"]);
|
|
42
44
|
|
|
43
|
-
return
|
|
45
|
+
return _jsx(StyledLink, _objectSpread(_objectSpread({
|
|
44
46
|
target: "_blank",
|
|
45
47
|
href: "".concat(src, "?").concat(makeSrcQueryString(undefined, crop)),
|
|
46
48
|
rel: "noopener noreferrer"
|
|
47
|
-
}, rest),
|
|
49
|
+
}, rest), {}, {
|
|
50
|
+
children: children
|
|
51
|
+
}));
|
|
48
52
|
}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { Fragment as _Fragment } from "@emotion/react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
8
|
+
|
|
9
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
10
|
|
|
3
11
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
12
|
|
|
@@ -12,7 +20,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
12
20
|
*
|
|
13
21
|
*/
|
|
14
22
|
import React from 'react';
|
|
15
|
-
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
23
|
|
|
17
24
|
// Lazyload image with lazysizes (https://github.com/aFarkas/lazysizes)
|
|
18
25
|
var LazyLoadImage = function LazyLoadImage(_ref) {
|
|
@@ -23,25 +30,26 @@ var LazyLoadImage = function LazyLoadImage(_ref) {
|
|
|
23
30
|
sizes = _ref.sizes,
|
|
24
31
|
rest = _objectWithoutProperties(_ref, ["alt", "src", "srcSet", "lazyLoadSrc", "sizes"]);
|
|
25
32
|
|
|
26
|
-
return
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
33
|
+
return _jsxs(_Fragment, {
|
|
34
|
+
children: [_jsx("noscript", {
|
|
35
|
+
children: _jsx("img", _objectSpread({
|
|
36
|
+
alt: alt,
|
|
37
|
+
src: "".concat(src),
|
|
38
|
+
srcSet: srcSet,
|
|
39
|
+
sizes: sizes
|
|
40
|
+
}, rest))
|
|
41
|
+
}, "noscript"), _jsx("img", _objectSpread({
|
|
42
|
+
alt: alt,
|
|
43
|
+
style: {
|
|
44
|
+
width: '100%'
|
|
45
|
+
},
|
|
46
|
+
className: "lazyload",
|
|
47
|
+
src: lazyLoadSrc,
|
|
48
|
+
"data-src": src,
|
|
49
|
+
"data-src-set": srcSet,
|
|
50
|
+
"data-sizes": sizes
|
|
51
|
+
}, rest), "img")]
|
|
52
|
+
});
|
|
45
53
|
};
|
|
46
54
|
|
|
47
55
|
export default LazyLoadImage;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
4
|
|
|
3
5
|
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)."; }
|
|
4
6
|
|
|
@@ -11,18 +13,13 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
11
13
|
*/
|
|
12
14
|
import React from 'react';
|
|
13
15
|
import { spacing, fonts, colors } from '@ndla/core';
|
|
14
|
-
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
15
16
|
|
|
16
|
-
var InfoBlockWrapper = /*#__PURE__*/_styled("div",
|
|
17
|
-
target: "eblg75e4"
|
|
18
|
-
} : {
|
|
17
|
+
var InfoBlockWrapper = /*#__PURE__*/_styled("div", {
|
|
19
18
|
target: "eblg75e4",
|
|
20
19
|
label: "InfoBlockWrapper"
|
|
21
20
|
})("border-bottom:1px solid ", colors.brand.neutral7, ";padding:", spacing.small, " 0;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkluZm9CbG9jay50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWW1DIiwiZmlsZSI6IkluZm9CbG9jay50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQ29weXJpZ2h0IChjKSAyMDIyLXByZXNlbnQsIE5ETEEuXG4gKlxuICogVGhpcyBzb3VyY2UgY29kZSBpcyBsaWNlbnNlZCB1bmRlciB0aGUgR1BMdjMgbGljZW5zZSBmb3VuZCBpbiB0aGVcbiAqIEx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/OiBSZWFjdE5vZGU7XG59XG5leHBvcnQgY29uc3QgSW5mb0Jsb2NrID0gKHsgaWNvbiwgdGl0bGUsIGNoaWxkcmVuIH06IEluZm9CbG9ja1Byb3BzKSA9PiB7XG4gIHJldHVybiAoXG4gICAgPEluZm9CbG9ja1dyYXBwZXI+XG4gICAgICA8VGl0bGVXcmFwcGVyPlxuICAgICAgICA8SWNvbldyYXBwZXI+e2ljb259PC9JY29uV3JhcHBlcj5cbiAgICAgICAgPFN0eWxlZFRpdGxlPnt0aXRsZX08L1N0eWxlZFRpdGxlPlxuICAgICAgPC9UaXRsZVdyYXBwZXI+XG4gICAgICA8U3R5bGVkVGV4dFdyYXBwZXI+e2NoaWxkcmVufTwvU3R5bGVkVGV4dFdyYXBwZXI+XG4gICAgPC9JbmZvQmxvY2tXcmFwcGVyPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgSW5mb0Jsb2NrO1xuIl19 */"));
|
|
22
21
|
|
|
23
|
-
var IconWrapper = /*#__PURE__*/_styled("div",
|
|
24
|
-
target: "eblg75e3"
|
|
25
|
-
} : {
|
|
22
|
+
var IconWrapper = /*#__PURE__*/_styled("div", {
|
|
26
23
|
target: "eblg75e3",
|
|
27
24
|
label: "IconWrapper"
|
|
28
25
|
})(process.env.NODE_ENV === "production" ? {
|
|
@@ -35,23 +32,17 @@ var IconWrapper = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "producti
|
|
|
35
32
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
36
33
|
});
|
|
37
34
|
|
|
38
|
-
var StyledTextWrapper = /*#__PURE__*/_styled("div",
|
|
39
|
-
target: "eblg75e2"
|
|
40
|
-
} : {
|
|
35
|
+
var StyledTextWrapper = /*#__PURE__*/_styled("div", {
|
|
41
36
|
target: "eblg75e2",
|
|
42
37
|
label: "StyledTextWrapper"
|
|
43
38
|
})(fonts.sizes(18), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset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LmRpdmBcbiAgZGlzcGxheTogZmxleDtcblxuICBnYXA6ICR7c3BhY2luZy5zbWFsbH07XG5gO1xuXG5jb25zdCBTdHlsZWRUaXRsZSA9IHN0eWxlZC5oMmBcbiAgJHtmb250cy5zaXplcygnMTgnKX1cbiAgZm9udC13ZWlnaHQ6IDcwMDtcbiAgbWFyZ2luOiAwO1xuYDtcblxuaW50ZXJmYWNlIEluZm9CbG9ja1Byb3BzIHtcbiAgaWNvbj86IFJlYWN0Tm9kZTtcbiAgdGl0bGU/OiBzdHJpbmc7XG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xufVxuZXhwb3J0IGNvbnN0IEluZm9CbG9jayA9ICh7IGljb24sIHRpdGxlLCBjaGlsZHJlbiB9OiBJbmZvQmxvY2tQcm9wcykgPT4ge1xuICByZXR1cm4gKFxuICAgIDxJbmZvQmxvY2tXcmFwcGVyPlxuICAgICAgPFRpdGxlV3JhcHBlcj5cbiAgICAgICAgPEljb25XcmFwcGVyPntpY29ufTwvSWNvbldyYXBwZXI+XG4gICAgICAgIDxTdHlsZWRUaXRsZT57dGl0bGV9PC9TdHlsZWRUaXRsZT5cbiAgICAgIDwvVGl0bGVXcmFwcGVyPlxuICAgICAgPFN0eWxlZFRleHRXcmFwcGVyPntjaGlsZHJlbn08L1N0eWxlZFRleHRXcmFwcGVyPlxuICAgIDwvSW5mb0Jsb2NrV3JhcHBlcj5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEluZm9CbG9jaztcbiJdfQ== */"));
|
|
44
39
|
|
|
45
|
-
var TitleWrapper = /*#__PURE__*/_styled("div",
|
|
46
|
-
target: "eblg75e1"
|
|
47
|
-
} : {
|
|
40
|
+
var TitleWrapper = /*#__PURE__*/_styled("div", {
|
|
48
41
|
target: "eblg75e1",
|
|
49
42
|
label: "TitleWrapper"
|
|
50
43
|
})("display:flex;gap:", spacing.small, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-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dmBcbiAgZGlzcGxheTogZmxleDtcblxuICBnYXA6ICR7c3BhY2luZy5zbWFsbH07XG5gO1xuXG5jb25zdCBTdHlsZWRUaXRsZSA9IHN0eWxlZC5oMmBcbiAgJHtmb250cy5zaXplcygnMTgnKX1cbiAgZm9udC13ZWlnaHQ6IDcwMDtcbiAgbWFyZ2luOiAwO1xuYDtcblxuaW50ZXJmYWNlIEluZm9CbG9ja1Byb3BzIHtcbiAgaWNvbj86IFJlYWN0Tm9kZTtcbiAgdGl0bGU/OiBzdHJpbmc7XG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xufVxuZXhwb3J0IGNvbnN0IEluZm9CbG9jayA9ICh7IGljb24sIHRpdGxlLCBjaGlsZHJlbiB9OiBJbmZvQmxvY2tQcm9wcykgPT4ge1xuICByZXR1cm4gKFxuICAgIDxJbmZvQmxvY2tXcmFwcGVyPlxuICAgICAgPFRpdGxlV3JhcHBlcj5cbiAgICAgICAgPEljb25XcmFwcGVyPntpY29ufTwvSWNvbldyYXBwZXI+XG4gICAgICAgIDxTdHlsZWRUaXRsZT57dGl0bGV9PC9TdHlsZWRUaXRsZT5cbiAgICAgIDwvVGl0bGVXcmFwcGVyPlxuICAgICAgPFN0eWxlZFRleHRXcmFwcGVyPntjaGlsZHJlbn08L1N0eWxlZFRleHRXcmFwcGVyPlxuICAgIDwvSW5mb0Jsb2NrV3JhcHBlcj5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEluZm9CbG9jaztcbiJdfQ== */"));
|
|
51
44
|
|
|
52
|
-
var StyledTitle = /*#__PURE__*/_styled("h2",
|
|
53
|
-
target: "eblg75e0"
|
|
54
|
-
} : {
|
|
45
|
+
var StyledTitle = /*#__PURE__*/_styled("h2", {
|
|
55
46
|
target: "eblg75e0",
|
|
56
47
|
label: "StyledTitle"
|
|
57
48
|
})(fonts.sizes('18'), " font-weight:700;margin:0;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=ut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RpdmBcbiAgZGlzcGxheTogZmxleDtcblxuICBnYXA6ICR7c3BhY2luZy5zbWFsbH07XG5gO1xuXG5jb25zdCBTdHlsZWRUaXRsZSA9IHN0eWxlZC5oMmBcbiAgJHtmb250cy5zaXplcygnMTgnKX1cbiAgZm9udC13ZWlnaHQ6IDcwMDtcbiAgbWFyZ2luOiAwO1xuYDtcblxuaW50ZXJmYWNlIEluZm9CbG9ja1Byb3BzIHtcbiAgaWNvbj86IFJlYWN0Tm9kZTtcbiAgdGl0bGU/OiBzdHJpbmc7XG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xufVxuZXhwb3J0IGNvbnN0IEluZm9CbG9jayA9ICh7IGljb24sIHRpdGxlLCBjaGlsZHJlbiB9OiBJbmZvQmxvY2tQcm9wcykgPT4ge1xuICByZXR1cm4gKFxuICAgIDxJbmZvQmxvY2tXcmFwcGVyPlxuICAgICAgPFRpdGxlV3JhcHBlcj5cbiAgICAgICAgPEljb25XcmFwcGVyPntpY29ufTwvSWNvbldyYXBwZXI+XG4gICAgICAgIDxTdHlsZWRUaXRsZT57dGl0bGV9PC9TdHlsZWRUaXRsZT5cbiAgICAgIDwvVGl0bGVXcmFwcGVyPlxuICAgICAgPFN0eWxlZFRleHRXcmFwcGVyPntjaGlsZHJlbn08L1N0eWxlZFRleHRXcmFwcGVyPlxuICAgIDwvSW5mb0Jsb2NrV3JhcHBlcj5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEluZm9CbG9jaztcbiJdfQ== */"));
|
|
@@ -60,6 +51,16 @@ export var InfoBlock = function InfoBlock(_ref) {
|
|
|
60
51
|
var icon = _ref.icon,
|
|
61
52
|
title = _ref.title,
|
|
62
53
|
children = _ref.children;
|
|
63
|
-
return
|
|
54
|
+
return _jsxs(InfoBlockWrapper, {
|
|
55
|
+
children: [_jsxs(TitleWrapper, {
|
|
56
|
+
children: [_jsx(IconWrapper, {
|
|
57
|
+
children: icon
|
|
58
|
+
}), _jsx(StyledTitle, {
|
|
59
|
+
children: title
|
|
60
|
+
})]
|
|
61
|
+
}), _jsx(StyledTextWrapper, {
|
|
62
|
+
children: children
|
|
63
|
+
})]
|
|
64
|
+
});
|
|
64
65
|
};
|
|
65
66
|
export default InfoBlock;
|
package/es/InfoBox/InfoBox.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
2
3
|
import { breakpoints, colors, fonts, mq, spacing } from '@ndla/core';
|
|
3
4
|
import React from 'react';
|
|
4
|
-
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
5
|
|
|
6
|
-
var StyledInfoBox = /*#__PURE__*/_styled("div",
|
|
7
|
-
target: "e1vfzkqo0"
|
|
8
|
-
} : {
|
|
6
|
+
var StyledInfoBox = /*#__PURE__*/_styled("div", {
|
|
9
7
|
target: "e1vfzkqo0",
|
|
10
8
|
label: "StyledInfoBox"
|
|
11
9
|
})("background:", colors.support.yellowLight, ";padding:", spacing.small, " ", spacing.normal, ";font-family:", fonts.sans, ";", fonts.sizes('14px', '18px'), ";margin-bottom:", spacing.medium, ";", mq.range({
|
|
@@ -14,7 +12,9 @@ var StyledInfoBox = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "produc
|
|
|
14
12
|
|
|
15
13
|
var InfoBox = function InfoBox(_ref) {
|
|
16
14
|
var children = _ref.children;
|
|
17
|
-
return
|
|
15
|
+
return _jsx(StyledInfoBox, {
|
|
16
|
+
children: children
|
|
17
|
+
});
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export default InfoBox;
|