@ndla/ui 50.8.0 → 50.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/es/Article/Article.js +21 -21
- package/es/Article/ArticleAccessMessage.js +5 -5
- package/es/Article/ArticleByline.js +27 -27
- package/es/Article/ArticleFootNotes.js +6 -6
- package/es/Article/ArticleHeaderWrapper.js +12 -8
- package/es/Article/ArticleNotions.js +12 -12
- package/es/Article/index.js +4 -4
- package/es/Aside/Aside.js +8 -8
- package/es/Aside/index.js +1 -1
- package/es/AudioPlayer/AudioPlayer.js +31 -31
- package/es/AudioPlayer/Controls.js +44 -44
- package/es/AudioPlayer/SpeechControl.js +7 -7
- package/es/AudioPlayer/index.js +1 -1
- package/es/BannerCard/BannerCard.js +10 -10
- package/es/BannerCard/index.js +1 -1
- package/es/BlogPost/BlogPost.js +13 -13
- package/es/BlogPost/index.js +1 -1
- package/es/Breadcrumb/Breadcrumb.js +11 -11
- package/es/Breadcrumb/BreadcrumbItem.js +12 -12
- package/es/Breadcrumb/HeaderBreadcrumb.js +7 -7
- package/es/Breadcrumb/HomeBreadcrumb.js +12 -12
- package/es/Breadcrumb/index.js +3 -3
- package/es/CampaignBlock/CampaignBlock.js +16 -16
- package/es/CampaignBlock/index.js +1 -1
- package/es/CompetenceGoalTab/CompetenceGoalItem.js +4 -4
- package/es/CompetenceGoalTab/CompetenceGoalTab.js +15 -15
- package/es/CompetenceGoalTab/CompetenceItem.js +13 -13
- package/es/CompetenceGoalTab/CoreElementItem.js +4 -4
- package/es/CompetenceGoalTab/SearchButton.js +6 -6
- package/es/CompetenceGoalTab/index.js +1 -1
- package/es/CompetenceGoalTab/styles.js +7 -7
- package/es/ContactBlock/ContactBlock.js +30 -30
- package/es/ContactBlock/index.js +1 -1
- package/es/ContentLoader/index.js +7 -7
- package/es/ContentPlaceholder/ContentPlaceholder.js +4 -4
- package/es/ContentPlaceholder/index.js +1 -1
- package/es/ContentTypeBadge/ContentTypeBadge.js +24 -23
- package/es/ContentTypeBadge/index.js +2 -2
- package/es/CopyParagraphButton/CopyParagraphButton.js +11 -11
- package/es/CopyParagraphButton/index.js +1 -1
- package/es/CreatedBy/CreatedBy.js +8 -8
- package/es/CreatedBy/index.js +1 -1
- package/es/DefinitionList/DefinitionDescription.js +3 -3
- package/es/DefinitionList/DefinitionTerm.js +3 -3
- package/es/DefinitionList/index.js +2 -2
- package/es/Embed/AudioEmbed.js +15 -15
- package/es/Embed/BrightcoveEmbed.js +27 -27
- package/es/Embed/ConceptEmbed.js +46 -46
- package/es/Embed/ConceptListEmbed.js +8 -8
- package/es/Embed/ContentLinkEmbed.js +6 -6
- package/es/Embed/EmbedErrorPlaceholder.js +6 -6
- package/es/Embed/ExternalEmbed.js +17 -17
- package/es/Embed/FootnoteEmbed.js +5 -5
- package/es/Embed/H5pEmbed.js +5 -5
- package/es/Embed/IframeEmbed.js +18 -18
- package/es/Embed/ImageEmbed.js +41 -41
- package/es/Embed/RelatedContentEmbed.js +13 -13
- package/es/Embed/UnknownEmbed.js +4 -4
- package/es/Embed/conceptComponents.js +29 -29
- package/es/Embed/index.js +14 -14
- package/es/ErrorMessage/ErrorMessage.js +10 -10
- package/es/ErrorMessage/ErrorResourceAccessDenied.js +10 -10
- package/es/ErrorMessage/index.js +2 -2
- package/es/ExpandableBox/index.js +1 -1
- package/es/FactBox/FactBox.js +14 -14
- package/es/FactBox/index.js +1 -1
- package/es/Figure/Figure.js +9 -9
- package/es/Figure/FigureOpenDialogButton.js +15 -15
- package/es/Figure/index.js +2 -2
- package/es/FileList/File.js +5 -5
- package/es/FileList/FileList.js +7 -7
- package/es/FileList/Format.js +9 -9
- package/es/FileList/PdfFile.js +1 -1
- package/es/FileList/index.js +4 -4
- package/es/Filter/FilterButtons.js +22 -22
- package/es/Filter/FilterCarousel.js +23 -23
- package/es/Filter/FilterList.js +17 -17
- package/es/Filter/FilterListPhone.js +35 -35
- package/es/Filter/ToggleItem.js +6 -6
- package/es/Filter/filterClasses.js +3 -3
- package/es/Filter/index.js +5 -5
- package/es/Footer/Footer.js +15 -15
- package/es/Footer/FooterLinks.js +13 -13
- package/es/Footer/FooterPrivacy.js +5 -5
- package/es/Footer/FooterText.js +2 -2
- package/es/Footer/index.js +3 -3
- package/es/FramedContent/FramedContent.js +3 -3
- package/es/FramedContent/index.js +1 -1
- package/es/Frontpage/FrontpageAllSubjects.js +21 -21
- package/es/FrontpageArticle/FrontpageArticle.js +10 -10
- package/es/FrontpageArticle/index.js +1 -1
- package/es/Gloss/Gloss.js +20 -20
- package/es/Gloss/GlossExample.js +5 -5
- package/es/Gloss/index.js +2 -2
- package/es/Grid/Grid.js +5 -5
- package/es/Grid/index.js +1 -1
- package/es/Hero/Hero.js +6 -6
- package/es/Hero/HeroContent.js +2 -2
- package/es/Hero/index.js +2 -2
- package/es/Image/Image.js +13 -13
- package/es/Image/ImageLink.js +2 -2
- package/es/Image/index.js +3 -3
- package/es/KeyFigure/KeyFigure.js +7 -7
- package/es/KeyFigure/index.js +1 -1
- package/es/LanguageSelector/LanguageSelector.js +11 -11
- package/es/LanguageSelector/index.js +1 -1
- package/es/Layout/LayoutItem.js +3 -3
- package/es/Layout/OneColumn.js +7 -7
- package/es/Layout/PageContainer.js +4 -4
- package/es/Layout/index.js +4 -4
- package/es/LearningPaths/LearningPathContent.js +2 -2
- package/es/LearningPaths/LearningPathInformation.js +8 -8
- package/es/LearningPaths/LearningPathLastStepNavigation.js +13 -13
- package/es/LearningPaths/LearningPathMenu.js +16 -16
- package/es/LearningPaths/LearningPathMenuAside.js +13 -13
- package/es/LearningPaths/LearningPathMenuAsideCopyright.js +7 -7
- package/es/LearningPaths/LearningPathMenuContent.js +14 -14
- package/es/LearningPaths/LearningPathMenuIntro.js +10 -10
- package/es/LearningPaths/LearningPathMenuModalWrapper.js +10 -10
- package/es/LearningPaths/LearningPathMobileHeader.js +6 -6
- package/es/LearningPaths/LearningPathMobileStepInfo.js +4 -4
- package/es/LearningPaths/LearningPathSticky.js +12 -12
- package/es/LearningPaths/LearningPathWrapper.js +3 -3
- package/es/LearningPaths/index.js +8 -8
- package/es/LetterFilter/LetterFilter.js +10 -10
- package/es/LetterFilter/alphabet.js +1 -1
- package/es/LetterFilter/index.js +1 -1
- package/es/LicenseByline/EmbedByline.js +18 -18
- package/es/LicenseByline/LicenseDescription.js +2 -2
- package/es/LicenseByline/LicenseLink.js +5 -5
- package/es/LicenseByline/index.js +1 -1
- package/es/LinkBlock/LinkBlock.js +16 -16
- package/es/LinkBlock/LinkBlockSection.js +3 -3
- package/es/LinkBlock/index.js +2 -2
- package/es/List/OrderedList.js +7 -7
- package/es/List/UnOrderedList.js +3 -3
- package/es/List/index.js +2 -2
- package/es/Logo/Logo.js +6 -6
- package/es/Logo/SvgLogo.js +4 -4
- package/es/Logo/index.js +1 -1
- package/es/Masthead/Masthead.js +7 -7
- package/es/Masthead/SkipToMainContent.js +4 -4
- package/es/Masthead/index.js +3 -3
- package/es/Masthead/utils.js +5 -5
- package/es/MediaList/MediaList.js +25 -24
- package/es/MediaList/index.js +1 -1
- package/es/Messages/MessageBanner.js +6 -6
- package/es/Messages/MessageBox.js +10 -10
- package/es/Messages/index.js +2 -2
- package/es/MyNdla/Resource/Folder.js +18 -18
- package/es/MyNdla/Resource/FolderInput.js +20 -20
- package/es/MyNdla/Resource/index.js +2 -2
- package/es/MyNdla/index.js +2 -2
- package/es/NDLAFilm/AllMoviesAlphabetically.js +18 -18
- package/es/NDLAFilm/FilmContentCard.js +14 -14
- package/es/NDLAFilm/FilmContentCardTags.js +3 -3
- package/es/NDLAFilm/FilmMovieList.js +7 -7
- package/es/NDLAFilm/FilmMovieSearch.js +18 -18
- package/es/NDLAFilm/FilmSlideshow.js +18 -18
- package/es/NDLAFilm/MovieGrid.js +7 -7
- package/es/NDLAFilm/VisualElement.js +5 -5
- package/es/NDLAFilm/filmStyles.js +7 -7
- package/es/NDLAFilm/index.js +5 -5
- package/es/Navigation/NavigationBox.js +31 -31
- package/es/Navigation/index.js +1 -1
- package/es/NoContentBox/NoContentBox.js +1 -1
- package/es/NoContentBox/index.js +1 -1
- package/es/Notion/Notion.js +11 -11
- package/es/Notion/NotionImage.js +9 -9
- package/es/Notion/index.js +1 -1
- package/es/Programme/Programme.js +11 -11
- package/es/Programme/ProgrammeSubjects.js +12 -12
- package/es/Programme/index.js +2 -2
- package/es/ProgrammeCard/ProgrammeCard.js +6 -6
- package/es/ProgrammeCard/index.js +1 -1
- package/es/RelatedArticleList/RelatedArticleList.js +22 -22
- package/es/RelatedArticleList/index.js +1 -1
- package/es/Resource/BlockResource.js +21 -21
- package/es/Resource/ListResource.js +35 -35
- package/es/Resource/index.js +2 -2
- package/es/Resource/resourceComponents.js +27 -27
- package/es/Resource/storyComponents.js +17 -17
- package/es/ResourceBox/ResourceBox.js +10 -10
- package/es/ResourceBox/index.js +1 -1
- package/es/ResourceGroup/ResourceGroup.js +8 -8
- package/es/ResourceGroup/ResourceItem.js +38 -36
- package/es/ResourceGroup/ResourceList.js +9 -9
- package/es/ResourceGroup/index.js +1 -1
- package/es/ResourcesWrapper/ResourcesTopicTitle.js +26 -26
- package/es/ResourcesWrapper/ResourcesWrapper.js +2 -2
- package/es/ResourcesWrapper/index.js +2 -2
- package/es/Search/ActiveFilterContent.js +8 -8
- package/es/Search/ActiveFilters.js +17 -17
- package/es/Search/ContentTypeResult.js +16 -16
- package/es/Search/ContentTypeResultStyles.js +15 -15
- package/es/Search/IsPathToHighlight.js +1 -1
- package/es/Search/LoadingWrapper.js +3 -3
- package/es/Search/SearchField.js +18 -18
- package/es/Search/SearchFieldForm.js +4 -4
- package/es/Search/SearchResult.js +36 -36
- package/es/Search/SearchResultSleeve.js +38 -38
- package/es/Search/index.js +3 -3
- package/es/SearchTypeResult/ActiveFilterContent.js +8 -8
- package/es/SearchTypeResult/ActiveFilters.js +16 -16
- package/es/SearchTypeResult/PopupFilter.js +20 -20
- package/es/SearchTypeResult/ResultNavigation.js +13 -13
- package/es/SearchTypeResult/SearchFieldHeader.js +19 -19
- package/es/SearchTypeResult/SearchFilterContent.js +7 -7
- package/es/SearchTypeResult/SearchHeader.js +25 -25
- package/es/SearchTypeResult/SearchItem.js +16 -16
- package/es/SearchTypeResult/SearchItemList.js +20 -20
- package/es/SearchTypeResult/SearchItems.js +10 -10
- package/es/SearchTypeResult/SearchNotionsResult.js +8 -8
- package/es/SearchTypeResult/SearchSubjectItem.js +9 -9
- package/es/SearchTypeResult/SearchSubjectResult.js +3 -3
- package/es/SearchTypeResult/SearchTypeHeader.js +16 -16
- package/es/SearchTypeResult/SearchTypeResult.js +8 -8
- package/es/SearchTypeResult/SearchViewType.js +15 -15
- package/es/SearchTypeResult/components/ItemContexts.js +20 -22
- package/es/SearchTypeResult/components/ItemResourceHeader.js +12 -12
- package/es/SearchTypeResult/components/ItemTopicHeader.js +7 -7
- package/es/SearchTypeResult/components/SubjectFilters.js +9 -9
- package/es/SearchTypeResult/index.js +6 -6
- package/es/SnackBar/DefaultSnackbar.js +8 -8
- package/es/SnackBar/SnackbarProvider.js +11 -11
- package/es/SnackBar/index.js +2 -2
- package/es/Subject/SubjectBanner.js +2 -2
- package/es/Subject/SubjectHeader.js +8 -8
- package/es/Subject/index.js +2 -2
- package/es/Table/Table.js +19 -19
- package/es/Table/index.js +2 -2
- package/es/TagSelector/Control.js +2 -2
- package/es/TagSelector/DropdownIndicator.js +11 -11
- package/es/TagSelector/Input.js +5 -5
- package/es/TagSelector/Menu.js +5 -5
- package/es/TagSelector/MenuList.js +2 -2
- package/es/TagSelector/Option.js +8 -8
- package/es/TagSelector/SelectContainer.js +2 -2
- package/es/TagSelector/TagSelector.js +26 -26
- package/es/TagSelector/ValueButton.js +7 -7
- package/es/TagSelector/ariaMessages.js +31 -31
- package/es/TagSelector/index.js +1 -1
- package/es/ToolboxPage/ToolboxInfo.js +4 -4
- package/es/ToolboxPage/index.js +1 -1
- package/es/Topic/Loader.js +1 -1
- package/es/Topic/Topic.js +40 -40
- package/es/Topic/index.js +1 -1
- package/es/TreeStructure/AddFolderButton.js +10 -10
- package/es/TreeStructure/ComboboxButton.js +16 -16
- package/es/TreeStructure/FolderItem.js +31 -31
- package/es/TreeStructure/FolderItems.js +12 -12
- package/es/TreeStructure/TreeStructure.js +18 -18
- package/es/TreeStructure/arrowNavigation.js +5 -5
- package/es/TreeStructure/index.js +1 -1
- package/es/all.css +1 -1
- package/es/i18n/formatNestedMessages.js +2 -2
- package/es/i18n/i18n.js +14 -14
- package/es/i18n/index.js +2 -2
- package/es/index.js +73 -73
- package/es/locale/LocaleProvider.js +2 -2
- package/es/locale/messages-en.js +887 -887
- package/es/locale/messages-nb.js +890 -890
- package/es/locale/messages-nn.js +890 -890
- package/es/locale/messages-se.js +892 -892
- package/es/locale/messages-sma.js +891 -891
- package/es/model/ContentType.js +20 -20
- package/es/model/SubjectCategories.js +4 -4
- package/es/model/SubjectTypes.js +3 -3
- package/es/model/WordClass.js +35 -35
- package/es/model/index.js +4 -4
- package/es/types.js +1 -1
- package/es/utils/relativeUrl.js +8 -6
- package/es/utils/resourceTypeColor.js +4 -4
- package/lib/Article/Article.d.ts +2 -2
- package/lib/Article/Article.js +9 -9
- package/lib/Article/ArticleAccessMessage.js +2 -2
- package/lib/Article/ArticleByline.d.ts +3 -3
- package/lib/Article/ArticleByline.js +20 -20
- package/lib/Article/ArticleFootNotes.d.ts +1 -1
- package/lib/Article/ArticleFootNotes.js +5 -5
- package/lib/Article/ArticleHeaderWrapper.d.ts +1 -1
- package/lib/Article/ArticleHeaderWrapper.js +8 -5
- package/lib/Article/ArticleNotions.d.ts +1 -1
- package/lib/Article/ArticleNotions.js +8 -8
- package/lib/Article/index.d.ts +4 -4
- package/lib/Aside/Aside.d.ts +2 -2
- package/lib/Aside/Aside.js +5 -5
- package/lib/Aside/index.d.ts +1 -1
- package/lib/AudioPlayer/AudioPlayer.d.ts +1 -1
- package/lib/AudioPlayer/AudioPlayer.js +23 -23
- package/lib/AudioPlayer/Controls.js +35 -35
- package/lib/AudioPlayer/SpeechControl.js +2 -2
- package/lib/AudioPlayer/index.d.ts +1 -1
- package/lib/BannerCard/BannerCard.js +7 -7
- package/lib/BannerCard/index.d.ts +1 -1
- package/lib/BlogPost/BlogPost.d.ts +2 -2
- package/lib/BlogPost/BlogPost.js +8 -8
- package/lib/BlogPost/index.d.ts +1 -1
- package/lib/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/lib/Breadcrumb/Breadcrumb.js +7 -7
- package/lib/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/lib/Breadcrumb/BreadcrumbItem.js +7 -7
- package/lib/Breadcrumb/HeaderBreadcrumb.d.ts +1 -1
- package/lib/Breadcrumb/HeaderBreadcrumb.js +3 -3
- package/lib/Breadcrumb/HomeBreadcrumb.d.ts +1 -1
- package/lib/Breadcrumb/HomeBreadcrumb.js +8 -8
- package/lib/Breadcrumb/index.d.ts +4 -4
- package/lib/CampaignBlock/CampaignBlock.d.ts +2 -2
- package/lib/CampaignBlock/CampaignBlock.js +11 -11
- package/lib/CampaignBlock/index.d.ts +1 -1
- package/lib/CompetenceGoalTab/CompetenceGoalItem.d.ts +1 -1
- package/lib/CompetenceGoalTab/CompetenceGoalItem.js +1 -1
- package/lib/CompetenceGoalTab/CompetenceGoalTab.d.ts +1 -1
- package/lib/CompetenceGoalTab/CompetenceGoalTab.js +6 -6
- package/lib/CompetenceGoalTab/CompetenceItem.d.ts +2 -2
- package/lib/CompetenceGoalTab/CompetenceItem.js +8 -8
- package/lib/CompetenceGoalTab/CoreElementItem.d.ts +1 -1
- package/lib/CompetenceGoalTab/CoreElementItem.js +1 -1
- package/lib/CompetenceGoalTab/SearchButton.js +3 -3
- package/lib/CompetenceGoalTab/index.d.ts +1 -1
- package/lib/CompetenceGoalTab/styles.js +6 -6
- package/lib/ContactBlock/ContactBlock.d.ts +5 -5
- package/lib/ContactBlock/ContactBlock.js +21 -21
- package/lib/ContactBlock/index.d.ts +1 -1
- package/lib/ContentLoader/index.d.ts +2 -2
- package/lib/ContentLoader/index.js +6 -6
- package/lib/ContentPlaceholder/ContentPlaceholder.js +3 -3
- package/lib/ContentPlaceholder/index.d.ts +1 -1
- package/lib/ContentTypeBadge/ContentTypeBadge.d.ts +11 -11
- package/lib/ContentTypeBadge/ContentTypeBadge.js +17 -16
- package/lib/ContentTypeBadge/index.d.ts +2 -2
- package/lib/CopyParagraphButton/CopyParagraphButton.d.ts +1 -1
- package/lib/CopyParagraphButton/CopyParagraphButton.js +5 -5
- package/lib/CopyParagraphButton/index.d.ts +1 -1
- package/lib/CreatedBy/CreatedBy.js +5 -5
- package/lib/CreatedBy/index.d.ts +1 -1
- package/lib/DefinitionList/DefinitionDescription.d.ts +1 -1
- package/lib/DefinitionList/DefinitionDescription.js +1 -1
- package/lib/DefinitionList/DefinitionTerm.d.ts +1 -1
- package/lib/DefinitionList/DefinitionTerm.js +1 -1
- package/lib/DefinitionList/index.d.ts +2 -2
- package/lib/Embed/AudioEmbed.d.ts +3 -3
- package/lib/Embed/AudioEmbed.js +10 -10
- package/lib/Embed/BrightcoveEmbed.d.ts +2 -2
- package/lib/Embed/BrightcoveEmbed.js +17 -17
- package/lib/Embed/ConceptEmbed.d.ts +4 -4
- package/lib/Embed/ConceptEmbed.js +29 -29
- package/lib/Embed/ConceptListEmbed.d.ts +1 -1
- package/lib/Embed/ConceptListEmbed.js +4 -4
- package/lib/Embed/ContentLinkEmbed.d.ts +1 -1
- package/lib/Embed/ContentLinkEmbed.js +4 -4
- package/lib/Embed/EmbedErrorPlaceholder.d.ts +4 -4
- package/lib/Embed/EmbedErrorPlaceholder.js +2 -2
- package/lib/Embed/ExternalEmbed.d.ts +1 -1
- package/lib/Embed/ExternalEmbed.js +12 -12
- package/lib/Embed/FootnoteEmbed.d.ts +1 -1
- package/lib/Embed/FootnoteEmbed.js +3 -3
- package/lib/Embed/H5pEmbed.d.ts +1 -1
- package/lib/Embed/H5pEmbed.js +4 -4
- package/lib/Embed/IframeEmbed.d.ts +1 -1
- package/lib/Embed/IframeEmbed.js +14 -14
- package/lib/Embed/ImageEmbed.d.ts +3 -3
- package/lib/Embed/ImageEmbed.js +30 -30
- package/lib/Embed/RelatedContentEmbed.d.ts +1 -1
- package/lib/Embed/RelatedContentEmbed.js +10 -10
- package/lib/Embed/UnknownEmbed.d.ts +1 -1
- package/lib/Embed/UnknownEmbed.js +2 -2
- package/lib/Embed/conceptComponents.d.ts +8 -8
- package/lib/Embed/conceptComponents.js +18 -18
- package/lib/Embed/index.d.ts +15 -15
- package/lib/Embed/types.d.ts +7 -7
- package/lib/ErrorMessage/ErrorMessage.d.ts +1 -1
- package/lib/ErrorMessage/ErrorMessage.js +8 -8
- package/lib/ErrorMessage/ErrorResourceAccessDenied.js +5 -5
- package/lib/ErrorMessage/index.d.ts +2 -2
- package/lib/ExpandableBox/ExpandableBox.d.ts +1 -1
- package/lib/ExpandableBox/index.d.ts +1 -1
- package/lib/FactBox/FactBox.d.ts +2 -2
- package/lib/FactBox/FactBox.js +8 -8
- package/lib/FactBox/index.d.ts +1 -1
- package/lib/Figure/Figure.d.ts +2 -2
- package/lib/Figure/Figure.js +7 -7
- package/lib/Figure/FigureOpenDialogButton.d.ts +1 -1
- package/lib/Figure/FigureOpenDialogButton.js +13 -13
- package/lib/Figure/index.d.ts +3 -3
- package/lib/FileList/File.js +2 -2
- package/lib/FileList/FileList.d.ts +2 -2
- package/lib/FileList/FileList.js +4 -4
- package/lib/FileList/Format.d.ts +1 -1
- package/lib/FileList/Format.js +5 -5
- package/lib/FileList/index.d.ts +4 -4
- package/lib/Filter/FilterButtons.js +14 -14
- package/lib/Filter/FilterCarousel.d.ts +1 -1
- package/lib/Filter/FilterCarousel.js +18 -18
- package/lib/Filter/FilterList.d.ts +1 -1
- package/lib/Filter/FilterList.js +13 -13
- package/lib/Filter/FilterListPhone.d.ts +1 -1
- package/lib/Filter/FilterListPhone.js +27 -27
- package/lib/Filter/ToggleItem.d.ts +1 -1
- package/lib/Filter/ToggleItem.js +5 -5
- package/lib/Filter/filterClasses.d.ts +1 -1
- package/lib/Filter/filterClasses.js +2 -2
- package/lib/Filter/index.d.ts +5 -5
- package/lib/Footer/Footer.d.ts +2 -2
- package/lib/Footer/Footer.js +9 -9
- package/lib/Footer/FooterLinks.d.ts +1 -1
- package/lib/Footer/FooterLinks.js +9 -9
- package/lib/Footer/FooterPrivacy.js +4 -4
- package/lib/Footer/FooterText.d.ts +1 -1
- package/lib/Footer/FooterText.js +1 -1
- package/lib/Footer/index.d.ts +3 -3
- package/lib/FramedContent/FramedContent.js +1 -1
- package/lib/FramedContent/index.d.ts +1 -1
- package/lib/Frontpage/FrontpageAllSubjects.d.ts +1 -1
- package/lib/Frontpage/FrontpageAllSubjects.js +13 -13
- package/lib/FrontpageArticle/FrontpageArticle.d.ts +3 -3
- package/lib/FrontpageArticle/FrontpageArticle.js +5 -5
- package/lib/FrontpageArticle/index.d.ts +1 -1
- package/lib/Gloss/Gloss.d.ts +1 -1
- package/lib/Gloss/Gloss.js +14 -14
- package/lib/Gloss/GlossExample.d.ts +1 -1
- package/lib/Gloss/GlossExample.js +3 -3
- package/lib/Gloss/index.d.ts +2 -2
- package/lib/Grid/Grid.d.ts +4 -4
- package/lib/Grid/Grid.js +4 -4
- package/lib/Grid/index.d.ts +2 -2
- package/lib/Hero/Hero.d.ts +2 -2
- package/lib/Hero/Hero.js +4 -4
- package/lib/Hero/HeroContent.js +1 -1
- package/lib/Hero/index.d.ts +3 -3
- package/lib/Image/Image.d.ts +1 -1
- package/lib/Image/Image.js +12 -12
- package/lib/Image/ImageLink.d.ts +2 -2
- package/lib/Image/ImageLink.js +1 -1
- package/lib/Image/index.d.ts +4 -4
- package/lib/KeyFigure/KeyFigure.js +6 -6
- package/lib/KeyFigure/index.d.ts +1 -1
- package/lib/LanguageSelector/LanguageSelector.js +6 -6
- package/lib/LanguageSelector/index.d.ts +1 -1
- package/lib/Layout/Content.d.ts +1 -1
- package/lib/Layout/LayoutItem.d.ts +1 -1
- package/lib/Layout/LayoutItem.js +3 -3
- package/lib/Layout/OneColumn.d.ts +1 -1
- package/lib/Layout/OneColumn.js +6 -6
- package/lib/Layout/PageContainer.d.ts +1 -1
- package/lib/Layout/PageContainer.js +3 -3
- package/lib/Layout/index.d.ts +4 -4
- package/lib/LearningPaths/LearningPathContent.d.ts +1 -1
- package/lib/LearningPaths/LearningPathContent.js +1 -1
- package/lib/LearningPaths/LearningPathInformation.js +4 -4
- package/lib/LearningPaths/LearningPathLastStepNavigation.d.ts +1 -1
- package/lib/LearningPaths/LearningPathLastStepNavigation.js +8 -8
- package/lib/LearningPaths/LearningPathMenu.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMenu.js +5 -5
- package/lib/LearningPaths/LearningPathMenuAside.js +7 -7
- package/lib/LearningPaths/LearningPathMenuAsideCopyright.js +3 -3
- package/lib/LearningPaths/LearningPathMenuContent.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMenuContent.js +8 -8
- package/lib/LearningPaths/LearningPathMenuIntro.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMenuIntro.js +7 -7
- package/lib/LearningPaths/LearningPathMenuModalWrapper.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMenuModalWrapper.js +3 -3
- package/lib/LearningPaths/LearningPathMobileHeader.js +3 -3
- package/lib/LearningPaths/LearningPathMobileStepInfo.js +2 -2
- package/lib/LearningPaths/LearningPathSticky.d.ts +2 -2
- package/lib/LearningPaths/LearningPathSticky.js +7 -7
- package/lib/LearningPaths/LearningPathWrapper.d.ts +1 -1
- package/lib/LearningPaths/LearningPathWrapper.js +2 -2
- package/lib/LearningPaths/index.d.ts +8 -8
- package/lib/LetterFilter/LetterFilter.js +5 -5
- package/lib/LetterFilter/alphabet.js +1 -1
- package/lib/LetterFilter/index.d.ts +1 -1
- package/lib/LicenseByline/EmbedByline.d.ts +12 -12
- package/lib/LicenseByline/EmbedByline.js +11 -11
- package/lib/LicenseByline/LicenseDescription.d.ts +1 -1
- package/lib/LicenseByline/LicenseDescription.js +1 -1
- package/lib/LicenseByline/LicenseLink.d.ts +1 -1
- package/lib/LicenseByline/LicenseLink.js +3 -3
- package/lib/LicenseByline/index.d.ts +1 -1
- package/lib/LinkBlock/LinkBlock.d.ts +2 -2
- package/lib/LinkBlock/LinkBlock.js +8 -8
- package/lib/LinkBlock/LinkBlockSection.d.ts +1 -1
- package/lib/LinkBlock/LinkBlockSection.js +1 -1
- package/lib/LinkBlock/index.d.ts +2 -2
- package/lib/List/OrderedList.d.ts +2 -2
- package/lib/List/OrderedList.js +4 -4
- package/lib/List/UnOrderedList.d.ts +1 -1
- package/lib/List/UnOrderedList.js +1 -1
- package/lib/List/index.d.ts +2 -2
- package/lib/Logo/Logo.d.ts +1 -1
- package/lib/Logo/Logo.js +3 -3
- package/lib/Logo/SvgLogo.js +3 -3
- package/lib/Logo/index.d.ts +1 -1
- package/lib/Masthead/Masthead.d.ts +1 -1
- package/lib/Masthead/Masthead.js +3 -3
- package/lib/Masthead/SkipToMainContent.js +2 -2
- package/lib/Masthead/index.d.ts +3 -3
- package/lib/Masthead/utils.js +3 -3
- package/lib/MediaList/MediaList.d.ts +8 -8
- package/lib/MediaList/MediaList.js +18 -17
- package/lib/MediaList/index.d.ts +2 -2
- package/lib/Messages/MessageBanner.d.ts +1 -1
- package/lib/Messages/MessageBanner.js +4 -4
- package/lib/Messages/MessageBox.d.ts +2 -2
- package/lib/Messages/MessageBox.js +7 -7
- package/lib/Messages/index.d.ts +2 -2
- package/lib/MyNdla/Resource/Folder.d.ts +2 -2
- package/lib/MyNdla/Resource/Folder.js +13 -13
- package/lib/MyNdla/Resource/FolderInput.js +10 -10
- package/lib/MyNdla/Resource/index.d.ts +2 -2
- package/lib/MyNdla/index.d.ts +2 -2
- package/lib/NDLAFilm/AllMoviesAlphabetically.d.ts +1 -1
- package/lib/NDLAFilm/AllMoviesAlphabetically.js +11 -11
- package/lib/NDLAFilm/FilmContentCard.d.ts +3 -3
- package/lib/NDLAFilm/FilmContentCard.js +10 -10
- package/lib/NDLAFilm/FilmContentCardTags.d.ts +1 -1
- package/lib/NDLAFilm/FilmContentCardTags.js +2 -2
- package/lib/NDLAFilm/FilmMovieList.d.ts +1 -1
- package/lib/NDLAFilm/FilmMovieList.js +1 -1
- package/lib/NDLAFilm/FilmMovieSearch.d.ts +1 -1
- package/lib/NDLAFilm/FilmMovieSearch.js +11 -11
- package/lib/NDLAFilm/FilmSlideshow.d.ts +1 -1
- package/lib/NDLAFilm/FilmSlideshow.js +10 -10
- package/lib/NDLAFilm/MovieGrid.d.ts +1 -1
- package/lib/NDLAFilm/MovieGrid.js +3 -3
- package/lib/NDLAFilm/VisualElement.js +4 -4
- package/lib/NDLAFilm/filmStyles.js +5 -5
- package/lib/NDLAFilm/index.d.ts +5 -5
- package/lib/Navigation/NavigationBox.d.ts +3 -3
- package/lib/Navigation/NavigationBox.js +22 -22
- package/lib/Navigation/index.d.ts +1 -1
- package/lib/NoContentBox/index.d.ts +1 -1
- package/lib/Notion/Notion.d.ts +1 -1
- package/lib/Notion/Notion.js +8 -8
- package/lib/Notion/NotionImage.d.ts +1 -1
- package/lib/Notion/NotionImage.js +5 -5
- package/lib/Notion/index.d.ts +1 -1
- package/lib/Programme/Programme.d.ts +1 -1
- package/lib/Programme/Programme.js +5 -5
- package/lib/Programme/ProgrammeSubjects.js +6 -6
- package/lib/Programme/index.d.ts +2 -2
- package/lib/ProgrammeCard/ProgrammeCard.js +4 -4
- package/lib/ProgrammeCard/index.d.ts +2 -2
- package/lib/RelatedArticleList/RelatedArticleList.d.ts +3 -3
- package/lib/RelatedArticleList/RelatedArticleList.js +14 -14
- package/lib/RelatedArticleList/index.d.ts +1 -1
- package/lib/Resource/BlockResource.d.ts +2 -2
- package/lib/Resource/BlockResource.js +14 -14
- package/lib/Resource/ListResource.d.ts +2 -2
- package/lib/Resource/ListResource.js +28 -28
- package/lib/Resource/index.d.ts +3 -3
- package/lib/Resource/resourceComponents.d.ts +1 -1
- package/lib/Resource/resourceComponents.js +17 -17
- package/lib/Resource/storyComponents.js +12 -12
- package/lib/ResourceBox/ResourceBox.js +6 -6
- package/lib/ResourceBox/index.d.ts +1 -1
- package/lib/ResourceGroup/ResourceGroup.d.ts +3 -3
- package/lib/ResourceGroup/ResourceGroup.js +5 -5
- package/lib/ResourceGroup/ResourceItem.d.ts +3 -3
- package/lib/ResourceGroup/ResourceItem.js +30 -28
- package/lib/ResourceGroup/ResourceList.d.ts +2 -2
- package/lib/ResourceGroup/ResourceList.js +5 -5
- package/lib/ResourceGroup/index.d.ts +1 -1
- package/lib/ResourcesWrapper/ResourcesTopicTitle.js +19 -19
- package/lib/ResourcesWrapper/ResourcesWrapper.d.ts +1 -1
- package/lib/ResourcesWrapper/ResourcesWrapper.js +1 -1
- package/lib/ResourcesWrapper/index.d.ts +2 -2
- package/lib/Search/ActiveFilterContent.js +5 -5
- package/lib/Search/ActiveFilters.js +12 -12
- package/lib/Search/ContentTypeResult.d.ts +1 -1
- package/lib/Search/ContentTypeResult.js +7 -7
- package/lib/Search/ContentTypeResultStyles.js +13 -13
- package/lib/Search/IsPathToHighlight.js +1 -1
- package/lib/Search/LoadingWrapper.js +1 -1
- package/lib/Search/SearchField.d.ts +1 -1
- package/lib/Search/SearchField.js +11 -11
- package/lib/Search/SearchFieldForm.d.ts +1 -1
- package/lib/Search/SearchFieldForm.js +2 -2
- package/lib/Search/SearchResult.d.ts +1 -1
- package/lib/Search/SearchResult.js +28 -28
- package/lib/Search/SearchResultSleeve.d.ts +1 -1
- package/lib/Search/SearchResultSleeve.js +31 -31
- package/lib/Search/index.d.ts +3 -3
- package/lib/SearchTypeResult/ActiveFilterContent.js +3 -3
- package/lib/SearchTypeResult/ActiveFilters.d.ts +2 -2
- package/lib/SearchTypeResult/ActiveFilters.js +10 -10
- package/lib/SearchTypeResult/PopupFilter.d.ts +2 -2
- package/lib/SearchTypeResult/PopupFilter.js +13 -13
- package/lib/SearchTypeResult/ResultNavigation.js +10 -10
- package/lib/SearchTypeResult/SearchFieldHeader.d.ts +2 -2
- package/lib/SearchTypeResult/SearchFieldHeader.js +13 -13
- package/lib/SearchTypeResult/SearchFilterContent.d.ts +5 -5
- package/lib/SearchTypeResult/SearchFilterContent.js +3 -3
- package/lib/SearchTypeResult/SearchHeader.d.ts +5 -5
- package/lib/SearchTypeResult/SearchHeader.js +17 -17
- package/lib/SearchTypeResult/SearchItem.d.ts +4 -4
- package/lib/SearchTypeResult/SearchItem.js +8 -8
- package/lib/SearchTypeResult/SearchItemList.d.ts +1 -1
- package/lib/SearchTypeResult/SearchItemList.js +12 -12
- package/lib/SearchTypeResult/SearchItems.d.ts +3 -3
- package/lib/SearchTypeResult/SearchItems.js +5 -5
- package/lib/SearchTypeResult/SearchNotionsResult.d.ts +1 -1
- package/lib/SearchTypeResult/SearchNotionsResult.js +4 -4
- package/lib/SearchTypeResult/SearchSubjectItem.js +6 -6
- package/lib/SearchTypeResult/SearchSubjectResult.d.ts +1 -1
- package/lib/SearchTypeResult/SearchSubjectResult.js +1 -1
- package/lib/SearchTypeResult/SearchTypeHeader.d.ts +1 -1
- package/lib/SearchTypeResult/SearchTypeHeader.js +10 -10
- package/lib/SearchTypeResult/SearchTypeResult.d.ts +6 -6
- package/lib/SearchTypeResult/SearchTypeResult.js +2 -2
- package/lib/SearchTypeResult/SearchViewType.d.ts +2 -2
- package/lib/SearchTypeResult/SearchViewType.js +10 -10
- package/lib/SearchTypeResult/components/ItemContexts.js +13 -15
- package/lib/SearchTypeResult/components/ItemResourceHeader.d.ts +4 -4
- package/lib/SearchTypeResult/components/ItemResourceHeader.js +7 -7
- package/lib/SearchTypeResult/components/ItemTopicHeader.d.ts +4 -4
- package/lib/SearchTypeResult/components/ItemTopicHeader.js +4 -4
- package/lib/SearchTypeResult/components/SubjectFilters.d.ts +4 -4
- package/lib/SearchTypeResult/components/SubjectFilters.js +2 -2
- package/lib/SearchTypeResult/index.d.ts +7 -7
- package/lib/SnackBar/DefaultSnackbar.d.ts +1 -1
- package/lib/SnackBar/DefaultSnackbar.js +3 -3
- package/lib/SnackBar/SnackbarProvider.d.ts +1 -1
- package/lib/SnackBar/SnackbarProvider.js +7 -7
- package/lib/SnackBar/index.d.ts +3 -3
- package/lib/Subject/SubjectBanner.js +1 -1
- package/lib/Subject/SubjectHeader.d.ts +1 -1
- package/lib/Subject/SubjectHeader.js +5 -5
- package/lib/Subject/index.d.ts +2 -2
- package/lib/Table/Table.d.ts +1 -1
- package/lib/Table/Table.js +15 -15
- package/lib/Table/index.d.ts +2 -2
- package/lib/TagSelector/Control.d.ts +2 -2
- package/lib/TagSelector/Control.js +1 -1
- package/lib/TagSelector/DropdownIndicator.d.ts +2 -2
- package/lib/TagSelector/DropdownIndicator.js +6 -6
- package/lib/TagSelector/Input.d.ts +2 -2
- package/lib/TagSelector/Input.js +1 -1
- package/lib/TagSelector/Menu.d.ts +2 -2
- package/lib/TagSelector/Menu.js +1 -1
- package/lib/TagSelector/MenuList.d.ts +2 -2
- package/lib/TagSelector/MenuList.js +1 -1
- package/lib/TagSelector/Option.d.ts +2 -2
- package/lib/TagSelector/Option.js +5 -5
- package/lib/TagSelector/SelectContainer.d.ts +2 -2
- package/lib/TagSelector/SelectContainer.js +1 -1
- package/lib/TagSelector/TagSelector.js +13 -13
- package/lib/TagSelector/ValueButton.d.ts +2 -2
- package/lib/TagSelector/ValueButton.js +4 -4
- package/lib/TagSelector/ariaMessages.d.ts +3 -3
- package/lib/TagSelector/ariaMessages.js +31 -31
- package/lib/TagSelector/index.d.ts +2 -2
- package/lib/ToolboxPage/ToolboxInfo.d.ts +2 -2
- package/lib/ToolboxPage/ToolboxInfo.js +1 -1
- package/lib/ToolboxPage/index.d.ts +1 -1
- package/lib/Topic/Topic.d.ts +3 -3
- package/lib/Topic/Topic.js +26 -26
- package/lib/Topic/index.d.ts +1 -1
- package/lib/TreeStructure/AddFolderButton.d.ts +1 -1
- package/lib/TreeStructure/AddFolderButton.js +5 -5
- package/lib/TreeStructure/ComboboxButton.d.ts +2 -2
- package/lib/TreeStructure/ComboboxButton.js +8 -8
- package/lib/TreeStructure/FolderItem.d.ts +2 -2
- package/lib/TreeStructure/FolderItem.js +21 -21
- package/lib/TreeStructure/FolderItems.d.ts +3 -3
- package/lib/TreeStructure/FolderItems.js +9 -9
- package/lib/TreeStructure/TreeStructure.d.ts +2 -2
- package/lib/TreeStructure/TreeStructure.js +11 -11
- package/lib/TreeStructure/arrowNavigation.d.ts +2 -2
- package/lib/TreeStructure/arrowNavigation.js +5 -5
- package/lib/TreeStructure/helperFunctions.d.ts +2 -2
- package/lib/TreeStructure/index.d.ts +2 -2
- package/lib/TreeStructure/types.d.ts +3 -3
- package/lib/all.css +1 -1
- package/lib/i18n/formatNestedMessages.js +2 -2
- package/lib/i18n/i18n.js +6 -6
- package/lib/i18n/index.d.ts +2 -2
- package/lib/index.d.ts +86 -86
- package/lib/locale/LocaleProvider.d.ts +2 -2
- package/lib/locale/messages-en.d.ts +10 -10
- package/lib/locale/messages-en.js +885 -885
- package/lib/locale/messages-nb.d.ts +10 -10
- package/lib/locale/messages-nb.js +888 -888
- package/lib/locale/messages-nn.d.ts +10 -10
- package/lib/locale/messages-nn.js +888 -888
- package/lib/locale/messages-se.d.ts +11 -11
- package/lib/locale/messages-se.js +890 -890
- package/lib/locale/messages-sma.d.ts +11 -11
- package/lib/locale/messages-sma.js +889 -889
- package/lib/model/ContentType.js +20 -20
- package/lib/model/SubjectCategories.js +4 -4
- package/lib/model/SubjectTypes.js +3 -3
- package/lib/model/WordClass.d.ts +1 -1
- package/lib/model/WordClass.js +35 -35
- package/lib/model/index.d.ts +3 -3
- package/lib/types.d.ts +2 -2
- package/lib/types.js +1 -1
- package/lib/utils/relativeUrl.js +7 -5
- package/lib/utils/resourceTypeColor.js +1 -1
- package/package.json +21 -21
- package/src/Article/Article.tsx +22 -22
- package/src/Article/ArticleAccessMessage.tsx +5 -5
- package/src/Article/ArticleByline.stories.tsx +14 -14
- package/src/Article/ArticleByline.tsx +32 -29
- package/src/Article/ArticleFootNotes.tsx +6 -6
- package/src/Article/ArticleHeaderWrapper.tsx +8 -8
- package/src/Article/ArticleNotions.tsx +10 -10
- package/src/Article/component.article.scss +7 -3
- package/src/Article/index.ts +4 -4
- package/src/Aside/Aside.tsx +5 -5
- package/src/Aside/index.ts +1 -1
- package/src/AudioPlayer/AudiPlayer.stories.tsx +20 -20
- package/src/AudioPlayer/AudioPlayer.tsx +22 -22
- package/src/AudioPlayer/Controls.tsx +27 -27
- package/src/AudioPlayer/SpeechControl.tsx +7 -7
- package/src/AudioPlayer/index.ts +1 -1
- package/src/BannerCard/BannerCard.tsx +4 -4
- package/src/BannerCard/index.ts +1 -1
- package/src/BlogPost/BlogPost.stories.tsx +13 -13
- package/src/BlogPost/BlogPost.tsx +13 -13
- package/src/BlogPost/index.ts +1 -1
- package/src/Breadcrumb/Breadcrumb.stories.tsx +14 -14
- package/src/Breadcrumb/Breadcrumb.tsx +10 -10
- package/src/Breadcrumb/BreadcrumbItem.tsx +7 -7
- package/src/Breadcrumb/HeaderBreadcrumb.tsx +6 -6
- package/src/Breadcrumb/HomeBreadcrumb.stories.tsx +14 -14
- package/src/Breadcrumb/HomeBreadcrumb.tsx +8 -8
- package/src/Breadcrumb/index.ts +4 -4
- package/src/CampaignBlock/CampaignBlock.stories.tsx +21 -21
- package/src/CampaignBlock/CampaignBlock.tsx +14 -14
- package/src/CampaignBlock/index.ts +1 -1
- package/src/CompetenceGoalTab/CompetenceGoalItem.tsx +5 -5
- package/src/CompetenceGoalTab/CompetenceGoalTab.tsx +16 -16
- package/src/CompetenceGoalTab/CompetenceItem.tsx +11 -11
- package/src/CompetenceGoalTab/CoreElementItem.tsx +7 -5
- package/src/CompetenceGoalTab/SearchButton.tsx +5 -5
- package/src/CompetenceGoalTab/index.ts +1 -1
- package/src/CompetenceGoalTab/styles.ts +3 -3
- package/src/ContactBlock/ContactBlock.tsx +26 -26
- package/src/ContactBlock/Contactblock.stories.tsx +38 -38
- package/src/ContactBlock/index.ts +1 -1
- package/src/ContentLoader/ContentLoader.stories.tsx +5 -5
- package/src/ContentLoader/index.tsx +9 -9
- package/src/ContentPlaceholder/ContentPlaceholder.tsx +2 -2
- package/src/ContentPlaceholder/index.ts +1 -1
- package/src/ContentTypeBadge/ContentTypeBadge.stories.tsx +10 -10
- package/src/ContentTypeBadge/ContentTypeBadge.tsx +31 -27
- package/src/ContentTypeBadge/index.ts +2 -2
- package/src/CopyParagraphButton/CopyParagraphButton.tsx +10 -10
- package/src/CopyParagraphButton/index.tsx +1 -1
- package/src/CreatedBy/CreatedBy.stories.tsx +8 -8
- package/src/CreatedBy/CreatedBy.tsx +6 -6
- package/src/CreatedBy/index.ts +1 -1
- package/src/DefinitionList/DefinitionDescription.tsx +4 -4
- package/src/DefinitionList/DefinitionTerm.tsx +4 -4
- package/src/DefinitionList/index.tsx +2 -2
- package/src/Embed/AudioEmbed.stories.tsx +96 -93
- package/src/Embed/AudioEmbed.tsx +20 -20
- package/src/Embed/BrightcoveEmbed.stories.tsx +67 -67
- package/src/Embed/BrightcoveEmbed.tsx +28 -28
- package/src/Embed/ConceptEmbed.stories.tsx +119 -114
- package/src/Embed/ConceptEmbed.tsx +52 -44
- package/src/Embed/ConceptListEmbed.tsx +8 -8
- package/src/Embed/ContentLinkEmbed.tsx +7 -7
- package/src/Embed/EmbedErrorPlaceholder.tsx +9 -9
- package/src/Embed/ExternalEmbed.stories.tsx +21 -21
- package/src/Embed/ExternalEmbed.tsx +20 -17
- package/src/Embed/FootnoteEmbed.stories.tsx +35 -30
- package/src/Embed/FootnoteEmbed.tsx +6 -6
- package/src/Embed/H5pEmbed.stories.tsx +23 -23
- package/src/Embed/H5pEmbed.tsx +6 -6
- package/src/Embed/IframeEmbed.stories.tsx +50 -50
- package/src/Embed/IframeEmbed.tsx +18 -18
- package/src/Embed/ImageEmbed.stories.tsx +77 -77
- package/src/Embed/ImageEmbed.tsx +44 -44
- package/src/Embed/RelatedContentEmbed.stories.tsx +187 -187
- package/src/Embed/RelatedContentEmbed.tsx +14 -14
- package/src/Embed/UnknownEmbed.tsx +5 -5
- package/src/Embed/conceptComponents.tsx +38 -35
- package/src/Embed/index.ts +15 -15
- package/src/Embed/types.ts +9 -7
- package/src/ErrorMessage/ErrorMessage.stories.tsx +17 -17
- package/src/ErrorMessage/ErrorMessage.tsx +6 -6
- package/src/ErrorMessage/ErrorResourceAccessDenied.tsx +10 -10
- package/src/ErrorMessage/index.ts +2 -2
- package/src/ExpandableBox/ExpandableBox.stories.tsx +5 -5
- package/src/ExpandableBox/ExpandableBox.tsx +1 -1
- package/src/ExpandableBox/index.ts +1 -1
- package/src/FactBox/FactBox.tsx +11 -11
- package/src/FactBox/Factbox.stories.tsx +8 -8
- package/src/FactBox/index.ts +1 -1
- package/src/Figure/Figure.tsx +17 -17
- package/src/Figure/FigureOpenDialogButton.tsx +8 -8
- package/src/Figure/index.ts +3 -3
- package/src/FileList/File.tsx +5 -5
- package/src/FileList/FileList.stories.tsx +9 -9
- package/src/FileList/FileList.tsx +7 -7
- package/src/FileList/Format.tsx +6 -6
- package/src/FileList/PdfFile.tsx +1 -1
- package/src/FileList/index.ts +4 -4
- package/src/Filter/FilterButtons.tsx +16 -16
- package/src/Filter/FilterCarousel.tsx +16 -16
- package/src/Filter/FilterList.tsx +17 -17
- package/src/Filter/FilterListPhone.tsx +36 -36
- package/src/Filter/ToggleItem.tsx +7 -7
- package/src/Filter/filterClasses.ts +3 -3
- package/src/Filter/index.ts +5 -5
- package/src/Footer/Footer.stories.tsx +37 -31
- package/src/Footer/Footer.tsx +11 -11
- package/src/Footer/FooterLinks.tsx +9 -9
- package/src/Footer/FooterPrivacy.tsx +2 -2
- package/src/Footer/FooterText.tsx +3 -3
- package/src/Footer/index.ts +3 -3
- package/src/FramedContent/FramedContent.stories.tsx +7 -7
- package/src/FramedContent/FramedContent.tsx +4 -4
- package/src/FramedContent/index.ts +1 -1
- package/src/Frontpage/FrontpageAllSubjects.tsx +20 -20
- package/src/FrontpageArticle/FrontpageArticle.tsx +17 -17
- package/src/FrontpageArticle/index.ts +1 -1
- package/src/Gloss/Gloss.stories.tsx +33 -33
- package/src/Gloss/Gloss.tsx +18 -18
- package/src/Gloss/GlossExample.tsx +7 -7
- package/src/Gloss/index.tsx +2 -2
- package/src/Grid/Grid.stories.tsx +16 -16
- package/src/Grid/Grid.tsx +15 -15
- package/src/Grid/index.ts +2 -2
- package/src/Hero/Hero.stories.tsx +9 -9
- package/src/Hero/Hero.tsx +28 -28
- package/src/Hero/HeroContent.tsx +4 -4
- package/src/Hero/index.ts +3 -3
- package/src/Image/Image.stories.tsx +10 -10
- package/src/Image/Image.tsx +12 -12
- package/src/Image/ImageLink.tsx +4 -4
- package/src/Image/__tests__/Image-test.jsx +9 -9
- package/src/Image/__tests__/__snapshots__/Image-test.jsx.snap +9 -9
- package/src/Image/index.ts +4 -4
- package/src/KeyFigure/KeyFigure.stories.tsx +11 -11
- package/src/KeyFigure/KeyFigure.tsx +6 -6
- package/src/KeyFigure/index.ts +1 -1
- package/src/LanguageSelector/LanguageSelector.stories.tsx +11 -11
- package/src/LanguageSelector/LanguageSelector.tsx +8 -8
- package/src/LanguageSelector/index.ts +1 -1
- package/src/Layout/Content.tsx +1 -1
- package/src/Layout/LayoutItem.tsx +4 -4
- package/src/Layout/OneColumn.tsx +8 -8
- package/src/Layout/PageContainer.tsx +5 -5
- package/src/Layout/index.ts +4 -4
- package/src/LearningPaths/LearningPathContent.tsx +3 -3
- package/src/LearningPaths/LearningPathInformation.tsx +6 -6
- package/src/LearningPaths/LearningPathLastStepNavigation.tsx +11 -11
- package/src/LearningPaths/LearningPathMenu.stories.tsx +18 -18
- package/src/LearningPaths/LearningPathMenu.tsx +14 -14
- package/src/LearningPaths/LearningPathMenuAside.tsx +10 -10
- package/src/LearningPaths/LearningPathMenuAsideCopyright.tsx +6 -6
- package/src/LearningPaths/LearningPathMenuContent.tsx +11 -11
- package/src/LearningPaths/LearningPathMenuIntro.tsx +7 -7
- package/src/LearningPaths/LearningPathMenuModalWrapper.tsx +9 -9
- package/src/LearningPaths/LearningPathMobileHeader.tsx +5 -5
- package/src/LearningPaths/LearningPathMobileStepInfo.tsx +4 -4
- package/src/LearningPaths/LearningPathSticky.tsx +12 -12
- package/src/LearningPaths/LearningPathWrapper.tsx +4 -4
- package/src/LearningPaths/index.ts +8 -8
- package/src/LetterFilter/LetterFilter.stories.tsx +8 -8
- package/src/LetterFilter/LetterFilter.tsx +11 -9
- package/src/LetterFilter/alphabet.ts +29 -29
- package/src/LetterFilter/index.ts +1 -1
- package/src/LicenseByline/EmbedByline.stories.tsx +20 -20
- package/src/LicenseByline/EmbedByline.tsx +30 -30
- package/src/LicenseByline/LicenseDescription.tsx +3 -3
- package/src/LicenseByline/LicenseLink.tsx +5 -5
- package/src/LicenseByline/index.tsx +1 -1
- package/src/LinkBlock/LinkBlock.stories.tsx +10 -10
- package/src/LinkBlock/LinkBlock.tsx +14 -14
- package/src/LinkBlock/LinkBlockSection.tsx +3 -3
- package/src/LinkBlock/index.ts +2 -2
- package/src/List/OrderedList.stories.tsx +6 -6
- package/src/List/OrderedList.tsx +28 -28
- package/src/List/UnOrderedList.tsx +4 -4
- package/src/List/UnorderedList.stories.tsx +4 -4
- package/src/List/index.ts +2 -2
- package/src/Logo/Logo.stories.tsx +10 -10
- package/src/Logo/Logo.tsx +6 -6
- package/src/Logo/SvgLogo.tsx +4 -4
- package/src/Logo/index.ts +1 -1
- package/src/Masthead/Masthead.tsx +6 -6
- package/src/Masthead/SkipToMainContent.tsx +4 -4
- package/src/Masthead/index.ts +3 -3
- package/src/Masthead/utils.ts +5 -5
- package/src/MediaList/MediaList.tsx +25 -22
- package/src/MediaList/index.ts +2 -2
- package/src/Messages/MessageBanner.stories.tsx +7 -7
- package/src/Messages/MessageBanner.tsx +5 -5
- package/src/Messages/MessageBox.stories.tsx +17 -17
- package/src/Messages/MessageBox.tsx +11 -11
- package/src/Messages/index.ts +2 -2
- package/src/MyNdla/Resource/Folder.stories.tsx +17 -17
- package/src/MyNdla/Resource/Folder.tsx +20 -20
- package/src/MyNdla/Resource/FolderInput.stories.tsx +7 -7
- package/src/MyNdla/Resource/FolderInput.tsx +19 -19
- package/src/MyNdla/Resource/index.ts +2 -2
- package/src/MyNdla/index.ts +2 -2
- package/src/NDLAFilm/AllMoviesAlphabetically.tsx +16 -13
- package/src/NDLAFilm/FilmContentCard.tsx +20 -18
- package/src/NDLAFilm/FilmContentCardTags.tsx +4 -4
- package/src/NDLAFilm/FilmMovieList.tsx +8 -8
- package/src/NDLAFilm/FilmMovieSearch.tsx +22 -16
- package/src/NDLAFilm/FilmSlideshow.tsx +17 -15
- package/src/NDLAFilm/MovieGrid.tsx +8 -8
- package/src/NDLAFilm/VisualElement.tsx +5 -5
- package/src/NDLAFilm/__tests__/isLetter-test.jsx +8 -8
- package/src/NDLAFilm/filmStyles.ts +5 -5
- package/src/NDLAFilm/index.ts +5 -5
- package/src/Navigation/NavigationBox.tsx +28 -28
- package/src/Navigation/index.ts +1 -1
- package/src/NoContentBox/NoContentBox.tsx +1 -1
- package/src/NoContentBox/index.ts +1 -1
- package/src/Notion/Notion.tsx +9 -9
- package/src/Notion/NotionImage.tsx +9 -9
- package/src/Notion/index.ts +1 -1
- package/src/Programme/Programme.tsx +7 -7
- package/src/Programme/ProgrammeSubjects.tsx +12 -12
- package/src/Programme/index.ts +2 -2
- package/src/ProgrammeCard/ProgrammeCard.stories.tsx +13 -13
- package/src/ProgrammeCard/ProgrammeCard.tsx +5 -5
- package/src/ProgrammeCard/index.tsx +2 -2
- package/src/RelatedArticleList/RelatedArticleList.tsx +17 -17
- package/src/RelatedArticleList/index.ts +1 -1
- package/src/Resource/BlockResource.stories.tsx +19 -19
- package/src/Resource/BlockResource.tsx +15 -15
- package/src/Resource/ListResource.stories.tsx +18 -18
- package/src/Resource/ListResource.tsx +31 -31
- package/src/Resource/index.ts +3 -3
- package/src/Resource/resourceComponents.tsx +22 -19
- package/src/Resource/storyComponents.tsx +14 -11
- package/src/ResourceBox/ResourceBox.tsx +5 -5
- package/src/ResourceBox/index.ts +1 -1
- package/src/ResourceGroup/ResourceGroup.tsx +8 -8
- package/src/ResourceGroup/ResourceItem.stories.tsx +22 -22
- package/src/ResourceGroup/ResourceItem.tsx +35 -37
- package/src/ResourceGroup/ResourceList.tsx +11 -11
- package/src/ResourceGroup/index.ts +1 -1
- package/src/ResourcesWrapper/ResourcesTopicTitle.tsx +17 -17
- package/src/ResourcesWrapper/ResourcesWrapper.tsx +3 -3
- package/src/ResourcesWrapper/index.ts +2 -2
- package/src/Search/ActiveFilterContent.tsx +8 -8
- package/src/Search/ActiveFilters.tsx +12 -12
- package/src/Search/ContentTypeResult.tsx +16 -16
- package/src/Search/ContentTypeResultStyles.tsx +5 -5
- package/src/Search/IsPathToHighlight.ts +1 -1
- package/src/Search/LoadingWrapper.tsx +4 -4
- package/src/Search/SearchField.tsx +19 -19
- package/src/Search/SearchFieldForm.tsx +4 -4
- package/src/Search/SearchResult.tsx +34 -34
- package/src/Search/SearchResultSleeve.tsx +32 -32
- package/src/Search/__tests__/Highlight-test.js +20 -20
- package/src/Search/index.ts +3 -3
- package/src/SearchTypeResult/ActiveFilterContent.tsx +7 -7
- package/src/SearchTypeResult/ActiveFilters.tsx +12 -12
- package/src/SearchTypeResult/PopupFilter.tsx +16 -16
- package/src/SearchTypeResult/ResultNavigation.tsx +11 -11
- package/src/SearchTypeResult/SearchFieldHeader.tsx +16 -16
- package/src/SearchTypeResult/SearchFilterContent.tsx +10 -10
- package/src/SearchTypeResult/SearchHeader.tsx +22 -22
- package/src/SearchTypeResult/SearchItem.tsx +17 -17
- package/src/SearchTypeResult/SearchItemList.tsx +14 -14
- package/src/SearchTypeResult/SearchItems.tsx +12 -12
- package/src/SearchTypeResult/SearchNotionsResult.tsx +7 -7
- package/src/SearchTypeResult/SearchSubjectItem.tsx +7 -7
- package/src/SearchTypeResult/SearchSubjectResult.tsx +3 -3
- package/src/SearchTypeResult/SearchTypeHeader.tsx +11 -11
- package/src/SearchTypeResult/SearchTypeResult.tsx +10 -10
- package/src/SearchTypeResult/SearchViewType.tsx +15 -15
- package/src/SearchTypeResult/components/ItemContexts.tsx +19 -17
- package/src/SearchTypeResult/components/ItemResourceHeader.tsx +13 -13
- package/src/SearchTypeResult/components/ItemTopicHeader.tsx +9 -9
- package/src/SearchTypeResult/components/SubjectFilters.tsx +12 -12
- package/src/SearchTypeResult/index.ts +7 -7
- package/src/SnackBar/DefaultSnackbar.tsx +7 -7
- package/src/SnackBar/Snack.stories.tsx +31 -15
- package/src/SnackBar/SnackbarProvider.tsx +10 -10
- package/src/SnackBar/index.ts +3 -3
- package/src/Subject/SubjectBanner.tsx +2 -2
- package/src/Subject/SubjectHeader.tsx +8 -8
- package/src/Subject/index.ts +2 -2
- package/src/Table/Table.stories.tsx +34 -34
- package/src/Table/Table.tsx +22 -22
- package/src/Table/index.ts +2 -2
- package/src/TagSelector/Control.tsx +4 -4
- package/src/TagSelector/DropdownIndicator.tsx +15 -9
- package/src/TagSelector/Input.tsx +5 -5
- package/src/TagSelector/Menu.tsx +5 -5
- package/src/TagSelector/MenuList.tsx +4 -4
- package/src/TagSelector/Option.tsx +11 -7
- package/src/TagSelector/SelectContainer.tsx +4 -4
- package/src/TagSelector/TagSelector.stories.tsx +27 -27
- package/src/TagSelector/TagSelector.tsx +27 -27
- package/src/TagSelector/ValueButton.tsx +7 -7
- package/src/TagSelector/ariaMessages.ts +50 -41
- package/src/TagSelector/index.ts +2 -2
- package/src/ToolboxPage/ToolboxInfo.tsx +6 -6
- package/src/ToolboxPage/index.ts +1 -1
- package/src/Topic/Loader.tsx +1 -1
- package/src/Topic/Topic.tsx +30 -30
- package/src/Topic/index.ts +1 -1
- package/src/TreeStructure/AddFolderButton.tsx +11 -11
- package/src/TreeStructure/ComboboxButton.tsx +18 -18
- package/src/TreeStructure/FolderItem.tsx +35 -35
- package/src/TreeStructure/FolderItems.tsx +19 -13
- package/src/TreeStructure/TreeStructure.stories.tsx +75 -75
- package/src/TreeStructure/TreeStructure.tsx +18 -18
- package/src/TreeStructure/arrowNavigation.ts +7 -7
- package/src/TreeStructure/helperFunctions.ts +2 -2
- package/src/TreeStructure/index.ts +2 -2
- package/src/TreeStructure/types.ts +3 -3
- package/src/i18n/__tests__/formatNestedMessages-test.ts +8 -8
- package/src/i18n/formatNestedMessages.ts +2 -2
- package/src/i18n/i18n.ts +14 -14
- package/src/i18n/index.ts +2 -2
- package/src/index.ts +86 -86
- package/src/locale/LocaleProvider.tsx +4 -4
- package/src/locale/__tests__/translations-test.ts +13 -13
- package/src/locale/messages-en.ts +891 -888
- package/src/locale/messages-nb.ts +892 -892
- package/src/locale/messages-nn.ts +892 -892
- package/src/locale/messages-se.ts +897 -893
- package/src/locale/messages-sma.ts +895 -893
- package/src/model/ContentType.ts +28 -28
- package/src/model/SubjectCategories.ts +4 -4
- package/src/model/SubjectTypes.ts +3 -3
- package/src/model/WordClass.ts +35 -35
- package/src/model/index.ts +4 -4
- package/src/types.ts +3 -3
- package/src/utils/__tests__/relativeUrl-test.tsx +48 -42
- package/src/utils/relativeUrl.ts +8 -6
- package/src/utils/resourceTypeColor.tsx +4 -4
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { Fragment } from
|
|
10
|
-
import { useTranslation } from
|
|
11
|
-
import styled from
|
|
9
|
+
import { Fragment } from "react";
|
|
10
|
+
import { useTranslation } from "react-i18next";
|
|
11
|
+
import styled from "@emotion/styled";
|
|
12
12
|
|
|
13
|
-
import { fonts, spacing } from
|
|
13
|
+
import { fonts, spacing } from "@ndla/core";
|
|
14
14
|
|
|
15
|
-
import ContentTypeBadge from
|
|
16
|
-
import resourceTypeColor from
|
|
17
|
-
import { SearchItemType } from
|
|
18
|
-
import { ContentType } from
|
|
15
|
+
import ContentTypeBadge from "../../ContentTypeBadge";
|
|
16
|
+
import resourceTypeColor from "../../utils/resourceTypeColor";
|
|
17
|
+
import { SearchItemType } from "../SearchItem";
|
|
18
|
+
import { ContentType } from "../SearchTypeResult";
|
|
19
19
|
|
|
20
20
|
interface ItemTypeProps {
|
|
21
21
|
contentType?: ContentType;
|
|
@@ -53,7 +53,7 @@ const ContentTypeWrapper = styled.div<ItemTypeProps>`
|
|
|
53
53
|
display: flex;
|
|
54
54
|
align-items: center;
|
|
55
55
|
padding: 0 ${spacing.normal};
|
|
56
|
-
${fonts.sizes(
|
|
56
|
+
${fonts.sizes("12px", "16px")};
|
|
57
57
|
font-weight: ${fonts.weight.semibold};
|
|
58
58
|
`;
|
|
59
59
|
|
|
@@ -64,7 +64,7 @@ const ContentTypeIcon = styled.span<ItemTypeProps>`
|
|
|
64
64
|
margin-left: ${spacing.small};
|
|
65
65
|
justify-content: center;
|
|
66
66
|
::before {
|
|
67
|
-
content:
|
|
67
|
+
content: "";
|
|
68
68
|
position: absolute;
|
|
69
69
|
height: 23px;
|
|
70
70
|
width: 78px;
|
|
@@ -93,8 +93,8 @@ const Wrapper = styled.header`
|
|
|
93
93
|
`;
|
|
94
94
|
|
|
95
95
|
interface Props {
|
|
96
|
-
labels: SearchItemType[
|
|
97
|
-
img?: SearchItemType[
|
|
96
|
+
labels: SearchItemType["item"]["labels"];
|
|
97
|
+
img?: SearchItemType["item"]["img"] | null;
|
|
98
98
|
type?: ContentType;
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -118,7 +118,7 @@ const ItemResourceHeader = ({ labels = [], img, type }: Props) => {
|
|
|
118
118
|
<>
|
|
119
119
|
{labels.map((label) => (
|
|
120
120
|
<Fragment key={label}>
|
|
121
|
-
{
|
|
121
|
+
{" "}
|
|
122
122
|
<>•</> {label}
|
|
123
123
|
</Fragment>
|
|
124
124
|
))}
|
|
@@ -6,21 +6,21 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { ReactNode } from
|
|
10
|
-
import { useTranslation } from
|
|
11
|
-
import styled from
|
|
12
|
-
import { colors, fonts, spacing } from
|
|
9
|
+
import { ReactNode } from "react";
|
|
10
|
+
import { useTranslation } from "react-i18next";
|
|
11
|
+
import styled from "@emotion/styled";
|
|
12
|
+
import { colors, fonts, spacing } from "@ndla/core";
|
|
13
13
|
|
|
14
|
-
import ContentTypeBadge from
|
|
15
|
-
import { SearchItemType } from
|
|
16
|
-
import { ContentType } from
|
|
14
|
+
import ContentTypeBadge from "../../ContentTypeBadge";
|
|
15
|
+
import { SearchItemType } from "../SearchItem";
|
|
16
|
+
import { ContentType } from "../SearchTypeResult";
|
|
17
17
|
|
|
18
18
|
const Wrapper = styled.header`
|
|
19
19
|
padding: ${spacing.small} ${spacing.normal} 0;
|
|
20
20
|
`;
|
|
21
21
|
|
|
22
22
|
const Label = styled.div`
|
|
23
|
-
${fonts.sizes(
|
|
23
|
+
${fonts.sizes("12px", "16px")};
|
|
24
24
|
font-weight: ${fonts.weight.semibold};
|
|
25
25
|
height: 26px;
|
|
26
26
|
display: flex;
|
|
@@ -59,7 +59,7 @@ const TopicHeaderImage = styled.img`
|
|
|
59
59
|
|
|
60
60
|
interface Props {
|
|
61
61
|
children: ReactNode;
|
|
62
|
-
image?: SearchItemType[
|
|
62
|
+
image?: SearchItemType["item"]["img"] | null;
|
|
63
63
|
type?: ContentType;
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { useEffect, useRef, useState } from
|
|
10
|
-
import { useTranslation } from
|
|
11
|
-
import styled from
|
|
12
|
-
import { ButtonV2 } from
|
|
13
|
-
import { Plus as PlusIcon } from
|
|
9
|
+
import { useEffect, useRef, useState } from "react";
|
|
10
|
+
import { useTranslation } from "react-i18next";
|
|
11
|
+
import styled from "@emotion/styled";
|
|
12
|
+
import { ButtonV2 } from "@ndla/button";
|
|
13
|
+
import { Plus as PlusIcon } from "@ndla/icons/action";
|
|
14
14
|
|
|
15
|
-
import { Modal, ModalTrigger } from
|
|
16
|
-
import { FilterProps } from
|
|
17
|
-
import ActiveFilters from
|
|
18
|
-
import PopupFilter, { PopupFilterProps } from
|
|
15
|
+
import { Modal, ModalTrigger } from "@ndla/modal";
|
|
16
|
+
import { FilterProps } from "../ActiveFilterContent";
|
|
17
|
+
import ActiveFilters from "../ActiveFilters";
|
|
18
|
+
import PopupFilter, { PopupFilterProps } from "../PopupFilter";
|
|
19
19
|
|
|
20
20
|
const FilterButtonText = styled.span`
|
|
21
21
|
display: inline-block;
|
|
@@ -23,12 +23,12 @@ const FilterButtonText = styled.span`
|
|
|
23
23
|
margin-right: 10px;
|
|
24
24
|
`;
|
|
25
25
|
|
|
26
|
-
type ProgrammeProps = PopupFilterProps[
|
|
26
|
+
type ProgrammeProps = PopupFilterProps["programmes"] & {
|
|
27
27
|
values: string[];
|
|
28
28
|
onProgrammeValuesChange: (values: string[]) => void;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
type SubjectCategoriesProps = PopupFilterProps[
|
|
31
|
+
type SubjectCategoriesProps = PopupFilterProps["subjectCategories"] & {
|
|
32
32
|
values: string[];
|
|
33
33
|
onSubjectValuesChange: (values: string[]) => void;
|
|
34
34
|
};
|
|
@@ -105,7 +105,7 @@ const SubjectFilters = ({ filters, activeFilters, isNarrowScreen }: SubjectFilte
|
|
|
105
105
|
const OpenModalButton = () => (
|
|
106
106
|
<ModalTrigger>
|
|
107
107
|
<ButtonV2 type="button" size="normal" colorTheme="greyLighter" shape="pill">
|
|
108
|
-
<FilterButtonText>{t(
|
|
108
|
+
<FilterButtonText>{t("searchPage.searchFilterMessages.noValuesButtonText")}</FilterButtonText>
|
|
109
109
|
<PlusIcon />
|
|
110
110
|
</ButtonV2>
|
|
111
111
|
</ModalTrigger>
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import SearchFieldHeader from
|
|
10
|
-
import SearchFilterContent from
|
|
11
|
-
import SearchHeader from
|
|
12
|
-
import SearchNotionsResult from
|
|
13
|
-
import SearchSubjectResult from
|
|
14
|
-
import SearchTypeResult from
|
|
9
|
+
import SearchFieldHeader from "./SearchFieldHeader";
|
|
10
|
+
import SearchFilterContent from "./SearchFilterContent";
|
|
11
|
+
import SearchHeader from "./SearchHeader";
|
|
12
|
+
import SearchNotionsResult from "./SearchNotionsResult";
|
|
13
|
+
import SearchSubjectResult from "./SearchSubjectResult";
|
|
14
|
+
import SearchTypeResult from "./SearchTypeResult";
|
|
15
15
|
|
|
16
|
-
export type { ContentType } from
|
|
16
|
+
export type { ContentType } from "./SearchTypeResult";
|
|
17
17
|
|
|
18
18
|
export {
|
|
19
19
|
SearchTypeResult,
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { useTranslation } from
|
|
10
|
-
import styled from
|
|
11
|
-
import { IconButtonV2 } from
|
|
12
|
-
import { breakpoints, colors, fonts, misc, mq, shadows, spacing } from
|
|
13
|
-
import { Cross } from
|
|
14
|
-
import { Snack, useSnack } from
|
|
9
|
+
import { useTranslation } from "react-i18next";
|
|
10
|
+
import styled from "@emotion/styled";
|
|
11
|
+
import { IconButtonV2 } from "@ndla/button";
|
|
12
|
+
import { breakpoints, colors, fonts, misc, mq, shadows, spacing } from "@ndla/core";
|
|
13
|
+
import { Cross } from "@ndla/icons/action";
|
|
14
|
+
import { Snack, useSnack } from "./SnackbarProvider";
|
|
15
15
|
|
|
16
16
|
const DefaultSnackContainer = styled.div`
|
|
17
17
|
display: flex;
|
|
@@ -49,7 +49,7 @@ const DefaultSnack = (snack: Snack) => {
|
|
|
49
49
|
variant="outline"
|
|
50
50
|
colorTheme="greyLighter"
|
|
51
51
|
onClick={() => closeSnack(snack)}
|
|
52
|
-
aria-label={t(
|
|
52
|
+
aria-label={t("snackbar.close")}
|
|
53
53
|
>
|
|
54
54
|
<Cross />
|
|
55
55
|
</IconButtonV2>
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { Meta, StoryObj } from
|
|
10
|
-
import { ButtonV2 } from
|
|
11
|
-
import { PersonOutlined } from
|
|
12
|
-
import { Snack, SnackbarProvider, useSnack } from
|
|
13
|
-
import { defaultParameters } from
|
|
9
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
10
|
+
import { ButtonV2 } from "@ndla/button";
|
|
11
|
+
import { PersonOutlined } from "@ndla/icons/common";
|
|
12
|
+
import { Snack, SnackbarProvider, useSnack } from ".";
|
|
13
|
+
import { defaultParameters } from "../../../../stories/defaults";
|
|
14
14
|
|
|
15
15
|
const SnackComponent = ({ ...args }: Snack) => {
|
|
16
16
|
const { addSnack } = useSnack();
|
|
@@ -26,8 +26,8 @@ const SnackComponent = ({ ...args }: Snack) => {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
export default {
|
|
29
|
-
title:
|
|
30
|
-
tags: [
|
|
29
|
+
title: "Components/Snack",
|
|
30
|
+
tags: ["autodocs"],
|
|
31
31
|
parameters: {
|
|
32
32
|
inlineStories: true,
|
|
33
33
|
...defaultParameters,
|
|
@@ -36,14 +36,23 @@ export default {
|
|
|
36
36
|
content: <span>This is a snack</span>,
|
|
37
37
|
duration: 5000,
|
|
38
38
|
render: undefined,
|
|
39
|
-
id:
|
|
39
|
+
id: "default",
|
|
40
40
|
icon: undefined,
|
|
41
41
|
closable: true,
|
|
42
42
|
},
|
|
43
43
|
argTypes: {
|
|
44
|
-
content: {
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
content: {
|
|
45
|
+
control: false,
|
|
46
|
+
description: "Any JSX component, but usually a span-like element",
|
|
47
|
+
},
|
|
48
|
+
render: {
|
|
49
|
+
control: false,
|
|
50
|
+
description: "Replaces the entire snack with a custom render",
|
|
51
|
+
},
|
|
52
|
+
icon: {
|
|
53
|
+
control: false,
|
|
54
|
+
description: "An additional icon to be shown on the left-hand side of the snack",
|
|
55
|
+
},
|
|
47
56
|
},
|
|
48
57
|
decorators: [
|
|
49
58
|
(Story) => (
|
|
@@ -60,7 +69,14 @@ export const Default: StoryObj<Snack> = {};
|
|
|
60
69
|
const CustomSnack = (snack: Snack) => {
|
|
61
70
|
const { closeSnack } = useSnack();
|
|
62
71
|
return (
|
|
63
|
-
<div
|
|
72
|
+
<div
|
|
73
|
+
style={{
|
|
74
|
+
backgroundColor: "gray",
|
|
75
|
+
zIndex: 1000,
|
|
76
|
+
display: "flex",
|
|
77
|
+
pointerEvents: "all",
|
|
78
|
+
}}
|
|
79
|
+
>
|
|
64
80
|
<p>Custom render!</p>
|
|
65
81
|
<ButtonV2 onClick={() => closeSnack(snack)}>Close</ButtonV2>
|
|
66
82
|
</div>
|
|
@@ -69,7 +85,7 @@ const CustomSnack = (snack: Snack) => {
|
|
|
69
85
|
|
|
70
86
|
export const WithCustomRender: StoryObj<Snack> = {
|
|
71
87
|
args: {
|
|
72
|
-
id:
|
|
88
|
+
id: "customRender",
|
|
73
89
|
content: undefined,
|
|
74
90
|
duration: 2000000,
|
|
75
91
|
render: (id) => <CustomSnack id={id} />,
|
|
@@ -78,14 +94,14 @@ export const WithCustomRender: StoryObj<Snack> = {
|
|
|
78
94
|
|
|
79
95
|
export const NotClosable: StoryObj<Snack> = {
|
|
80
96
|
args: {
|
|
81
|
-
id:
|
|
97
|
+
id: "nonClosable",
|
|
82
98
|
closable: false,
|
|
83
99
|
},
|
|
84
100
|
};
|
|
85
101
|
|
|
86
102
|
export const WithIcon: StoryObj<Snack> = {
|
|
87
103
|
args: {
|
|
88
|
-
id:
|
|
104
|
+
id: "customIcon",
|
|
89
105
|
icon: <PersonOutlined />,
|
|
90
106
|
},
|
|
91
107
|
};
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { useCallback, useMemo, createContext, ReactNode, useState, useContext, useEffect } from
|
|
10
|
-
import { keyframes } from
|
|
11
|
-
import styled from
|
|
12
|
-
import { spacing } from
|
|
13
|
-
import DefaultSnack from
|
|
9
|
+
import { useCallback, useMemo, createContext, ReactNode, useState, useContext, useEffect } from "react";
|
|
10
|
+
import { keyframes } from "@emotion/react";
|
|
11
|
+
import styled from "@emotion/styled";
|
|
12
|
+
import { spacing } from "@ndla/core";
|
|
13
|
+
import DefaultSnack from "./DefaultSnackbar";
|
|
14
14
|
|
|
15
15
|
export interface Snack {
|
|
16
16
|
content?: ReactNode;
|
|
@@ -33,7 +33,7 @@ const SnackbarContext = createContext<SnackContext | undefined>(undefined);
|
|
|
33
33
|
export const useSnack = () => {
|
|
34
34
|
const context = useContext(SnackbarContext);
|
|
35
35
|
if (!context) {
|
|
36
|
-
throw new Error(
|
|
36
|
+
throw new Error("useSnack can only be used within a SnackbarProvider!");
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
return context;
|
|
@@ -82,13 +82,13 @@ interface BaseSnackContainerProps {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
const snackbarInAnimation = keyframes({
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
"0%": { transform: `translateY(${spacing.medium})`, opacity: 0 },
|
|
86
|
+
"100%": { opacity: 1 },
|
|
87
87
|
});
|
|
88
88
|
|
|
89
89
|
const snackbarOutAnimation = keyframes({
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
"0%": { opacity: 1 },
|
|
91
|
+
"100%": { transform: `translateY(${spacing.medium})`, opacity: 0 },
|
|
92
92
|
});
|
|
93
93
|
|
|
94
94
|
const BaseSnackContainer = styled.li<BaseSnackContainerProps>`
|
package/src/SnackBar/index.ts
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
export type { Snack, SnackContext } from
|
|
10
|
-
export { SnackbarProvider, useSnack, BaseSnack } from
|
|
11
|
-
export { default as DefaultSnackbar } from
|
|
9
|
+
export type { Snack, SnackContext } from "./SnackbarProvider";
|
|
10
|
+
export { SnackbarProvider, useSnack, BaseSnack } from "./SnackbarProvider";
|
|
11
|
+
export { default as DefaultSnackbar } from "./DefaultSnackbar";
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { css } from
|
|
10
|
-
import styled from
|
|
11
|
-
import { colors, fonts, mq, spacing, breakpoints } from
|
|
12
|
-
import OneColumn from
|
|
9
|
+
import { css } from "@emotion/react";
|
|
10
|
+
import styled from "@emotion/styled";
|
|
11
|
+
import { colors, fonts, mq, spacing, breakpoints } from "@ndla/core";
|
|
12
|
+
import OneColumn from "../Layout/OneColumn";
|
|
13
13
|
|
|
14
|
-
type Types =
|
|
14
|
+
type Types = "mobile" | "tablet" | "desktop" | "wide";
|
|
15
15
|
|
|
16
16
|
interface Props {
|
|
17
17
|
images: {
|
|
@@ -67,7 +67,7 @@ const StyledBackground = styled.div<StyledBackgroundProps>`
|
|
|
67
67
|
`;
|
|
68
68
|
|
|
69
69
|
const StyledHeading = styled.h1`
|
|
70
|
-
${fonts.sizes(
|
|
70
|
+
${fonts.sizes("24px", "28px")};
|
|
71
71
|
color: ${colors.white};
|
|
72
72
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
|
|
73
73
|
margin: ${spacing.medium} 0 ${spacing.normal} 0;
|
|
@@ -76,12 +76,12 @@ const StyledHeading = styled.h1`
|
|
|
76
76
|
|
|
77
77
|
${mq.range({ from: breakpoints.tablet })} {
|
|
78
78
|
margin: 0;
|
|
79
|
-
${fonts.sizes(
|
|
79
|
+
${fonts.sizes("40px", "40px")};
|
|
80
80
|
padding: 0 0 0 ${spacing.xlarge};
|
|
81
81
|
}
|
|
82
82
|
${mq.range({ from: breakpoints.desktop })} {
|
|
83
83
|
margin: 0;
|
|
84
|
-
${fonts.sizes(
|
|
84
|
+
${fonts.sizes("52px", "52px")};
|
|
85
85
|
padding: 0 0 0 ${spacing.xlarge};
|
|
86
86
|
}
|
|
87
87
|
`;
|
package/src/Subject/index.ts
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { Meta, StoryFn } from
|
|
10
|
-
import Table from
|
|
11
|
-
import { defaultParameters } from
|
|
9
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
10
|
+
import Table from "./Table";
|
|
11
|
+
import { defaultParameters } from "../../../../stories/defaults";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Tabeller skal brukes til å presentere data (tabulære data), ikke til utforming. Det anbefales å holde tabellene så enkle som mulig. Ved mer kompleksitet kan data heller deles opp i flere tabeller.
|
|
@@ -26,15 +26,15 @@ import { defaultParameters } from '../../../../stories/defaults';
|
|
|
26
26
|
|
|
27
27
|
const meta: Meta = {
|
|
28
28
|
component: Table,
|
|
29
|
-
tags: [
|
|
29
|
+
tags: ["autodocs"],
|
|
30
30
|
decorators: [
|
|
31
31
|
(Story) => (
|
|
32
|
-
<div style={{ padding:
|
|
32
|
+
<div style={{ padding: "24px" }}>
|
|
33
33
|
<Story />
|
|
34
34
|
</div>
|
|
35
35
|
),
|
|
36
36
|
],
|
|
37
|
-
title:
|
|
37
|
+
title: "Base styles/Tables",
|
|
38
38
|
parameters: defaultParameters,
|
|
39
39
|
};
|
|
40
40
|
|
|
@@ -170,7 +170,7 @@ export const WithFormatting: StoryFn = () => (
|
|
|
170
170
|
<th>Prefiks</th>
|
|
171
171
|
<th>Symbol</th>
|
|
172
172
|
<th>Namn</th>
|
|
173
|
-
<th style={{ textAlign:
|
|
173
|
+
<th style={{ textAlign: "right" }}>Eksempel</th>
|
|
174
174
|
</tr>
|
|
175
175
|
</thead>
|
|
176
176
|
<tbody>
|
|
@@ -181,7 +181,7 @@ export const WithFormatting: StoryFn = () => (
|
|
|
181
181
|
<td>peta</td>
|
|
182
182
|
<td>P</td>
|
|
183
183
|
<td>billiard</td>
|
|
184
|
-
<td style={{ textAlign:
|
|
184
|
+
<td style={{ textAlign: "right" }}>1000000000000000</td>
|
|
185
185
|
</tr>
|
|
186
186
|
<tr>
|
|
187
187
|
<td>
|
|
@@ -190,7 +190,7 @@ export const WithFormatting: StoryFn = () => (
|
|
|
190
190
|
<td>tera</td>
|
|
191
191
|
<td>T</td>
|
|
192
192
|
<td>billion</td>
|
|
193
|
-
<td style={{ textAlign:
|
|
193
|
+
<td style={{ textAlign: "right" }}>1000000000000</td>
|
|
194
194
|
</tr>
|
|
195
195
|
<tr>
|
|
196
196
|
<td>
|
|
@@ -199,7 +199,7 @@ export const WithFormatting: StoryFn = () => (
|
|
|
199
199
|
<td>giga</td>
|
|
200
200
|
<td>G</td>
|
|
201
201
|
<td>milliard</td>
|
|
202
|
-
<td style={{ textAlign:
|
|
202
|
+
<td style={{ textAlign: "right" }}>1000000000</td>
|
|
203
203
|
</tr>
|
|
204
204
|
<tr>
|
|
205
205
|
<td>
|
|
@@ -208,7 +208,7 @@ export const WithFormatting: StoryFn = () => (
|
|
|
208
208
|
<td>mega</td>
|
|
209
209
|
<td>M</td>
|
|
210
210
|
<td>million</td>
|
|
211
|
-
<td style={{ textAlign:
|
|
211
|
+
<td style={{ textAlign: "right" }}>1000000</td>
|
|
212
212
|
</tr>
|
|
213
213
|
<tr>
|
|
214
214
|
<td>
|
|
@@ -217,7 +217,7 @@ export const WithFormatting: StoryFn = () => (
|
|
|
217
217
|
<td>kilo</td>
|
|
218
218
|
<td>k</td>
|
|
219
219
|
<td>tusen</td>
|
|
220
|
-
<td style={{ textAlign:
|
|
220
|
+
<td style={{ textAlign: "right" }}>1000</td>
|
|
221
221
|
</tr>
|
|
222
222
|
<tr>
|
|
223
223
|
<td>
|
|
@@ -226,7 +226,7 @@ export const WithFormatting: StoryFn = () => (
|
|
|
226
226
|
<td>hekto</td>
|
|
227
227
|
<td>h</td>
|
|
228
228
|
<td>hundre</td>
|
|
229
|
-
<td style={{ textAlign:
|
|
229
|
+
<td style={{ textAlign: "right" }}>100</td>
|
|
230
230
|
</tr>
|
|
231
231
|
<tr>
|
|
232
232
|
<td>
|
|
@@ -235,7 +235,7 @@ export const WithFormatting: StoryFn = () => (
|
|
|
235
235
|
<td>deka</td>
|
|
236
236
|
<td>da</td>
|
|
237
237
|
<td>ti</td>
|
|
238
|
-
<td style={{ textAlign:
|
|
238
|
+
<td style={{ textAlign: "right" }}>10</td>
|
|
239
239
|
</tr>
|
|
240
240
|
<tr>
|
|
241
241
|
<td>
|
|
@@ -244,7 +244,7 @@ export const WithFormatting: StoryFn = () => (
|
|
|
244
244
|
<td>desi</td>
|
|
245
245
|
<td>d</td>
|
|
246
246
|
<td>tidel</td>
|
|
247
|
-
<td style={{ textAlign:
|
|
247
|
+
<td style={{ textAlign: "right" }}>0,1</td>
|
|
248
248
|
</tr>
|
|
249
249
|
<tr>
|
|
250
250
|
<td>
|
|
@@ -261,7 +261,7 @@ export const WithFormatting: StoryFn = () => (
|
|
|
261
261
|
<td>
|
|
262
262
|
<strong>hundredel</strong>
|
|
263
263
|
</td>
|
|
264
|
-
<td style={{ textAlign:
|
|
264
|
+
<td style={{ textAlign: "right" }}>
|
|
265
265
|
<strong>0,01</strong>
|
|
266
266
|
</td>
|
|
267
267
|
</tr>
|
|
@@ -272,7 +272,7 @@ export const WithFormatting: StoryFn = () => (
|
|
|
272
272
|
<td>milli</td>
|
|
273
273
|
<td>m</td>
|
|
274
274
|
<td>tusendel</td>
|
|
275
|
-
<td style={{ textAlign:
|
|
275
|
+
<td style={{ textAlign: "right" }}>0,001</td>
|
|
276
276
|
</tr>
|
|
277
277
|
<tr>
|
|
278
278
|
<td>
|
|
@@ -281,7 +281,7 @@ export const WithFormatting: StoryFn = () => (
|
|
|
281
281
|
<td>mikro</td>
|
|
282
282
|
<td />
|
|
283
283
|
<td>milliondel</td>
|
|
284
|
-
<td style={{ textAlign:
|
|
284
|
+
<td style={{ textAlign: "right" }}>0,000001</td>
|
|
285
285
|
</tr>
|
|
286
286
|
<tr>
|
|
287
287
|
<td>
|
|
@@ -290,7 +290,7 @@ export const WithFormatting: StoryFn = () => (
|
|
|
290
290
|
<td>nano</td>
|
|
291
291
|
<td>n</td>
|
|
292
292
|
<td>milliarddel</td>
|
|
293
|
-
<td style={{ textAlign:
|
|
293
|
+
<td style={{ textAlign: "right" }}>
|
|
294
294
|
<p>0,000000001</p>
|
|
295
295
|
</td>
|
|
296
296
|
</tr>
|
|
@@ -505,13 +505,13 @@ export const WithPicture: StoryFn = () => (
|
|
|
505
505
|
<thead>
|
|
506
506
|
<tr>
|
|
507
507
|
<th />
|
|
508
|
-
<th style={{ textAlign:
|
|
508
|
+
<th style={{ textAlign: "center" }} scope="col">
|
|
509
509
|
Fly
|
|
510
510
|
</th>
|
|
511
|
-
<th style={{ textAlign:
|
|
511
|
+
<th style={{ textAlign: "center" }} scope="col">
|
|
512
512
|
Buss
|
|
513
513
|
</th>
|
|
514
|
-
<th style={{ textAlign:
|
|
514
|
+
<th style={{ textAlign: "center" }} scope="col">
|
|
515
515
|
Sykkel
|
|
516
516
|
</th>
|
|
517
517
|
</tr>
|
|
@@ -540,24 +540,24 @@ export const WithPicture: StoryFn = () => (
|
|
|
540
540
|
</tr>
|
|
541
541
|
<tr>
|
|
542
542
|
<th scope="row">Symbol</th>
|
|
543
|
-
<td style={{ textAlign:
|
|
544
|
-
<svg style={{ width:
|
|
543
|
+
<td style={{ textAlign: "center" }}>
|
|
544
|
+
<svg style={{ width: "24px", height: "24px" }} viewBox="0 0 24 24">
|
|
545
545
|
<path
|
|
546
546
|
fill="#6F6F6F"
|
|
547
547
|
d="M21,16V14L13,9V3.5A1.5,1.5 0 0,0 11.5,2A1.5,1.5 0 0,0 10,3.5V9L2,14V16L10,13.5V19L8,20.5V22L11.5,21L15,22V20.5L13,19V13.5L21,16Z"
|
|
548
548
|
/>
|
|
549
549
|
</svg>
|
|
550
550
|
</td>
|
|
551
|
-
<td style={{ textAlign:
|
|
552
|
-
<svg style={{ width:
|
|
551
|
+
<td style={{ textAlign: "center" }}>
|
|
552
|
+
<svg style={{ width: "24px", height: "24px" }} viewBox="0 0 24 24">
|
|
553
553
|
<path
|
|
554
554
|
fill="#6F6F6F"
|
|
555
555
|
d="M18,11H6V6H18M16.5,17A1.5,1.5 0 0,1 15,15.5A1.5,1.5 0 0,1 16.5,14A1.5,1.5 0 0,1 18,15.5A1.5,1.5 0 0,1 16.5,17M7.5,17A1.5,1.5 0 0,1 6,15.5A1.5,1.5 0 0,1 7.5,14A1.5,1.5 0 0,1 9,15.5A1.5,1.5 0 0,1 7.5,17M4,16C4,16.88 4.39,17.67 5,18.22V20A1,1 0 0,0 6,21H7A1,1 0 0,0 8,20V19H16V20A1,1 0 0,0 17,21H18A1,1 0 0,0 19,20V18.22C19.61,17.67 20,16.88 20,16V6C20,2.5 16.42,2 12,2C7.58,2 4,2.5 4,6V16Z"
|
|
556
556
|
/>
|
|
557
557
|
</svg>
|
|
558
558
|
</td>
|
|
559
|
-
<td style={{ textAlign:
|
|
560
|
-
<svg style={{ width:
|
|
559
|
+
<td style={{ textAlign: "center" }}>
|
|
560
|
+
<svg style={{ width: "24px", height: "24px" }} viewBox="0 0 24 24">
|
|
561
561
|
<path
|
|
562
562
|
fill="#6F6F6F"
|
|
563
563
|
d="M5,20.5A3.5,3.5 0 0,1 1.5,17A3.5,3.5 0 0,1 5,13.5A3.5,3.5 0 0,1 8.5,17A3.5,3.5 0 0,1 5,20.5M5,12A5,5 0 0,0 0,17A5,5 0 0,0 5,22A5,5 0 0,0 10,17A5,5 0 0,0 5,12M14.8,10H19V8.2H15.8L13.86,4.93C13.57,4.43 13,4.1 12.4,4.1C11.93,4.1 11.5,4.29 11.2,4.6L7.5,8.29C7.19,8.6 7,9 7,9.5C7,10.13 7.33,10.66 7.85,10.97L11.2,13V18H13V11.5L10.75,9.85L13.07,7.5M19,20.5A3.5,3.5 0 0,1 15.5,17A3.5,3.5 0 0,1 19,13.5A3.5,3.5 0 0,1 22.5,17A3.5,3.5 0 0,1 19,20.5M19,12A5,5 0 0,0 14,17A5,5 0 0,0 19,22A5,5 0 0,0 24,17A5,5 0 0,0 19,12M16,4.8C17,4.8 17.8,4 17.8,3C17.8,2 17,1.2 16,1.2C15,1.2 14.2,2 14.2,3C14.2,4 15,4.8 16,4.8Z"
|
|
@@ -567,9 +567,9 @@ export const WithPicture: StoryFn = () => (
|
|
|
567
567
|
</tr>
|
|
568
568
|
<tr>
|
|
569
569
|
<th scope="row">Ord</th>
|
|
570
|
-
<td style={{ textAlign:
|
|
571
|
-
<td style={{ textAlign:
|
|
572
|
-
<td style={{ textAlign:
|
|
570
|
+
<td style={{ textAlign: "center" }}>Fly</td>
|
|
571
|
+
<td style={{ textAlign: "center" }}>Buss</td>
|
|
572
|
+
<td style={{ textAlign: "center" }}>Sykkel</td>
|
|
573
573
|
</tr>
|
|
574
574
|
</tbody>
|
|
575
575
|
</Table>
|
|
@@ -669,9 +669,9 @@ export const WithColumnWidth: StoryFn = () => (
|
|
|
669
669
|
<Table>
|
|
670
670
|
<thead>
|
|
671
671
|
<tr>
|
|
672
|
-
<th style={{ width:
|
|
673
|
-
<th style={{ width:
|
|
674
|
-
<th style={{ width:
|
|
672
|
+
<th style={{ width: "33.333%" }}>Fremragende</th>
|
|
673
|
+
<th style={{ width: "33.333%" }}>Kompetent</th>
|
|
674
|
+
<th style={{ width: "33.333%" }}>På vei</th>
|
|
675
675
|
</tr>
|
|
676
676
|
</thead>
|
|
677
677
|
<tbody>
|