@ndla/ui 28.0.0 → 30.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Animation/DisplayOnPageYOffset.js +1 -1
- package/es/Animation/Fade.js +1 -1
- package/es/Article/Article.js +18 -14
- package/es/Article/ArticleAccessMessage.js +14 -10
- package/es/Article/ArticleByline.js +22 -14
- package/es/Article/ArticleContent.js +1 -1
- package/es/Article/ArticleFavoritesButton.js +1 -1
- package/es/Article/ArticleFootNotes.js +1 -1
- package/es/Article/ArticleHeaderWrapper.js +27 -19
- package/es/Article/ArticleNotions.js +22 -12
- package/es/Article/ArticleSideBar.js +26 -18
- package/es/Aside/Aside.js +1 -1
- package/es/AudioPlayer/AudioPlayer.js +67 -39
- package/es/AudioPlayer/Controls.js +137 -85
- package/es/AudioPlayer/SpeechControl.js +5 -3
- package/es/AudioPlayer/initAudioPlayers.js +1 -1
- package/es/AuthorInfo/AuthorInfo.js +14 -8
- package/es/BannerCard/BannerCard.js +29 -15
- package/es/BlogPosts/BlogPost.js +22 -14
- package/es/BlogPosts/BlogPostWrapper.js +7 -5
- package/es/Breadcrumb/ActionBreadcrumb.js +26 -10
- package/es/Breadcrumb/Breadcrumb.js +14 -10
- package/es/Breadcrumb/BreadcrumbItem.js +38 -26
- package/es/Breadcrumb/HeaderBreadcrumb.js +21 -7
- package/es/Breadcrumb/HomeBreadcrumb.js +37 -18
- package/es/Breadcrumblist/Breadcrumblist.js +37 -25
- package/es/CompetenceGoalTab/CompetenceGoalItem.js +42 -26
- package/es/CompetenceGoalTab/CompetenceGoalTab.js +26 -16
- package/es/CompetenceGoalTab/CompetenceItem.js +74 -54
- package/es/CompetenceGoalTab/SearchButton.js +10 -6
- package/es/CompetenceGoals/CompetenceGoalsDialog.js +17 -11
- package/es/ComponentCursor/ComponentCursor.js +54 -36
- package/es/ContentCard/ContentCard.js +35 -19
- package/es/ContentLoader/index.js +1 -1
- package/es/ContentPlaceholder/ContentPlaceholder.js +21 -15
- package/es/ContentTypeBadge/ContentTypeBadge.js +1 -1
- package/es/CopyParagraphButton/CopyParagraphButton.js +47 -35
- package/es/CopyParagraphButton/initCopyParagraphButtons.js +1 -1
- package/es/CreatedBy/CreatedBy.js +26 -18
- package/es/Dialog/Dialog.js +1 -1
- package/es/ErrorMessage/ErrorMessage.js +23 -15
- package/es/ErrorMessage/ErrorResourceAccessDenied.js +5 -3
- package/es/FactBox/FactBox.js +1 -1
- package/es/Figure/Figure.js +1 -1
- package/es/Figure/FigureBylineExpandButton.js +1 -1
- package/es/Figure/FigureExpandButton.js +1 -1
- package/es/Figure/FigureLicense.js +1 -1
- package/es/Figure/FigureLicenseDialog.js +1 -1
- package/es/Figure/FigureOpenDialogButton.js +1 -1
- package/es/FileList/File.js +17 -11
- package/es/FileList/FileList.js +17 -11
- package/es/Filter/FilterButtons.js +45 -27
- package/es/Filter/FilterCarousel.js +31 -25
- package/es/Filter/FilterList.js +1 -1
- package/es/Filter/FilterListPhone.js +1 -1
- package/es/Filter/ToggleItem.js +1 -1
- package/es/Footer/EditorName.js +1 -1
- package/es/Footer/Footer.js +37 -23
- package/es/Footer/FooterAuth.js +36 -15
- package/es/Footer/FooterLinks.js +31 -19
- package/es/Footer/FooterPrivacy.js +13 -9
- package/es/Footer/FooterText.js +8 -6
- package/es/Footer/privacy_en.js +1 -1
- package/es/Footer/privacy_nb.js +1 -1
- package/es/Footer/privacy_nn.js +1 -1
- package/es/Frontpage/FrontpageAllSubjects.js +46 -32
- package/es/Frontpage/FrontpageFilm.js +22 -12
- package/es/Frontpage/FrontpageHeader.js +18 -10
- package/es/Frontpage/FrontpageInfo.js +6 -4
- package/es/Frontpage/FrontpageMultidisciplinarySubject.js +38 -24
- package/es/Frontpage/FrontpageProgramMenu.js +55 -37
- package/es/Frontpage/FrontpageSearch.js +11 -7
- package/es/Frontpage/FrontpageToolbox.js +18 -10
- package/es/Frontpage/illustrations/Fellesfag.js +1 -1
- package/es/Frontpage/illustrations/FrontpageHeaderIllustration.js +1 -1
- package/es/Frontpage/illustrations/FrontpageIllustrations.js +13 -9
- package/es/Frontpage/illustrations/FrontpageSubjectIllustration.js +7 -7
- package/es/Frontpage/illustrations/MenuFellesfag.js +1 -1
- package/es/Frontpage/illustrations/MenuStudiespesialiserende.js +1 -1
- package/es/Frontpage/illustrations/MenuYrkesfag.js +1 -1
- package/es/Frontpage/illustrations/Studiespesialiserende.js +1 -1
- package/es/Frontpage/illustrations/Yrkesfag.js +1 -1
- package/es/Hero/Hero.js +1 -1
- package/es/Image/Image.js +9 -7
- package/es/Image/ImageLink.js +9 -7
- package/es/Image/LazyLoadImage.js +2 -2
- package/es/InfoBlock/InfoBlock.js +22 -12
- package/es/InfoBox/InfoBox.js +6 -4
- package/es/InfoWidget/InfoWidget.js +46 -28
- package/es/LanguageSelector/LanguageSelector.js +42 -21
- package/es/LanguageSelector/LanguageSelectorContent.js +18 -6
- package/es/Layout/Content.js +1 -1
- package/es/Layout/LayoutItem.js +1 -1
- package/es/Layout/OneColumn.js +1 -1
- package/es/Layout/PageContainer.js +1 -1
- package/es/LearningPaths/LearningPathContent.js +6 -4
- package/es/LearningPaths/LearningPathInformation.js +16 -10
- package/es/LearningPaths/LearningPathLastStepNavigation.js +26 -16
- package/es/LearningPaths/LearningPathMenu.js +19 -11
- package/es/LearningPaths/LearningPathMenuAside.js +35 -15
- package/es/LearningPaths/LearningPathMenuAsideCopyright.js +10 -6
- package/es/LearningPaths/LearningPathMenuContent.js +33 -21
- package/es/LearningPaths/LearningPathMenuIntro.js +39 -23
- package/es/LearningPaths/LearningPathMenuModalWrapper.js +8 -4
- package/es/LearningPaths/LearningPathMobileHeader.js +18 -6
- package/es/LearningPaths/LearningPathMobileStepInfo.js +5 -3
- package/es/LearningPaths/LearningPathSticky.js +21 -13
- package/es/LearningPaths/LearningPathWrapper.js +13 -7
- package/es/Logo/Logo.js +1 -1
- package/es/Logo/SvgLogo.js +1 -1
- package/es/Masthead/Masthead.js +32 -20
- package/es/Masthead/MastheadAuthModal.js +5 -3
- package/es/Masthead/MastheadSearchModal.js +20 -10
- package/es/Masthead/SkipToMainContent.js +5 -3
- package/es/MediaList/MediaList.js +1 -1
- package/es/Messages/MessageBanner.js +18 -12
- package/es/Messages/MessageBox.js +51 -29
- package/es/Messages/MessageBoxTag.js +9 -7
- package/es/MultidisciplinarySubject/Illustrations.js +28 -14
- package/es/MultidisciplinarySubject/List.js +19 -13
- package/es/MultidisciplinarySubject/ListItem.js +41 -27
- package/es/MultidisciplinarySubject/MultidisciplinarySubject.js +42 -28
- package/es/MultidisciplinarySubject/MultidisciplinarySubjectHeader.js +38 -26
- package/es/MyNdla/Resource/Folder.js +45 -19
- package/es/MyNdla/Resource/FolderInput.js +17 -6
- package/es/NDLAFilm/AboutNdlaFilm.js +7 -5
- package/es/NDLAFilm/AllMoviesAlphabetically.js +62 -42
- package/es/NDLAFilm/CategorySelect.js +17 -11
- package/es/NDLAFilm/FilmContentCard.js +15 -9
- package/es/NDLAFilm/FilmContentCardTags.js +10 -6
- package/es/NDLAFilm/FilmMovieList.js +5 -3
- package/es/NDLAFilm/FilmMovieSearch.js +10 -6
- package/es/NDLAFilm/FilmSlideshow.js +44 -32
- package/es/NDLAFilm/MovieGrid.js +11 -7
- package/es/NDLAFilm/NavigationArrow.js +25 -13
- package/es/NDLAFilm/SlideshowIndicator.js +12 -8
- package/es/NDLAFilm/VisualElement.js +9 -7
- package/es/NDLAFilm/filmStyles.js +7 -3
- package/es/Navigation/NavigationBox.js +120 -82
- package/es/Navigation/NavigationHeading.js +26 -20
- package/es/Navigation/NavigationTopicAbout.js +82 -64
- package/es/NoContentBox/NoContentBox.js +1 -1
- package/es/Notion/ConceptNotion.js +12 -6
- package/es/Notion/FigureNotion.js +11 -3
- package/es/Notion/Notion.js +26 -18
- package/es/Notion/NotionImage.js +10 -6
- package/es/Notion/NotionVisualElement.js +12 -10
- package/es/Portrait/Portrait.js +14 -4
- package/es/Programme/Programme.js +30 -20
- package/es/Programme/ProgrammeSubjects.js +6 -4
- package/es/RadioButtonGroup/RadioButtonGroup.js +20 -12
- package/es/RelatedArticleList/RelatedArticleList.js +1 -1
- package/es/Resource/BlockResource.js +32 -13
- package/es/Resource/ListResource.js +53 -32
- package/es/Resource/resourceComponents.js +61 -30
- package/es/ResourceBox/ResourceBox.js +27 -15
- package/es/ResourceGroup/ResourceGroup.js +13 -7
- package/es/ResourceGroup/ResourceItem.js +59 -29
- package/es/ResourceGroup/ResourceList.js +13 -7
- package/es/ResourcesWrapper/ResourcesTitle.js +1 -1
- package/es/ResourcesWrapper/ResourcesTopicTitle.js +31 -19
- package/es/ResourcesWrapper/ResourcesWrapper.js +1 -1
- package/es/Search/ActiveFilterContent.js +10 -6
- package/es/Search/ActiveFilters.js +36 -24
- package/es/Search/ContentTypeResult.js +2 -4
- package/es/Search/ContentTypeResultStyles.js +76 -32
- package/es/Search/LoadingWrapper.js +6 -4
- package/es/Search/SearchField.js +13 -7
- package/es/Search/SearchFieldForm.js +19 -9
- package/es/Search/SearchResult.js +46 -26
- package/es/Search/SearchResultSleeve.js +35 -19
- package/es/Search/ToggleSearchButton.js +10 -6
- package/es/SearchTypeResult/ActiveFilterContent.js +14 -10
- package/es/SearchTypeResult/ActiveFilters.js +36 -24
- package/es/SearchTypeResult/PopupFilter.js +41 -27
- package/es/SearchTypeResult/ResultNavigation.js +18 -10
- package/es/SearchTypeResult/SearchFieldHeader.js +22 -14
- package/es/SearchTypeResult/SearchFilterContent.js +14 -10
- package/es/SearchTypeResult/SearchHeader.js +34 -18
- package/es/SearchTypeResult/SearchItem.js +51 -37
- package/es/SearchTypeResult/SearchItemList.js +71 -44
- package/es/SearchTypeResult/SearchItems.js +16 -12
- package/es/SearchTypeResult/SearchNotionItem.js +63 -39
- package/es/SearchTypeResult/SearchNotionsResult.js +19 -11
- package/es/SearchTypeResult/SearchSubjectItem.js +14 -8
- package/es/SearchTypeResult/SearchSubjectResult.js +9 -7
- package/es/SearchTypeResult/SearchTypeHeader.js +41 -23
- package/es/SearchTypeResult/SearchTypeResult.js +11 -7
- package/es/SearchTypeResult/SearchViewType.js +22 -14
- package/es/SearchTypeResult/components/ItemContexts.js +33 -19
- package/es/SearchTypeResult/components/ItemResourceHeader.js +47 -25
- package/es/SearchTypeResult/components/ItemTopicHeader.js +33 -15
- package/es/SearchTypeResult/components/SubjectFilters.js +9 -7
- package/es/SectionHeading/SectionHeading.js +16 -8
- package/es/SnackBar/DefaultSnackbar.js +13 -7
- package/es/SnackBar/SnackbarProvider.js +17 -13
- package/es/Subject/Subject.js +64 -38
- package/es/Subject/SubjectAbout.js +46 -26
- package/es/Subject/SubjectArchive.js +54 -32
- package/es/Subject/SubjectBanner.js +7 -5
- package/es/Subject/SubjectCarousel.js +26 -14
- package/es/Subject/SubjectHeader.js +23 -13
- package/es/Subject/SubjectLinks.js +17 -11
- package/es/Subject/SubjectNewContent.js +39 -23
- package/es/Subject/SubjectShortcuts.js +22 -14
- package/es/Subject/SubjectSocial.js +10 -6
- package/es/Table/Table.js +1 -1
- package/es/TagSelector/Control.js +32 -0
- package/es/TagSelector/DropdownIndicator.js +68 -0
- package/es/TagSelector/Input.js +28 -0
- package/es/TagSelector/Menu.js +35 -0
- package/es/TagSelector/MenuList.js +31 -0
- package/es/TagSelector/Option.js +59 -0
- package/es/TagSelector/SelectContainer.js +28 -0
- package/es/TagSelector/TagSelector.js +167 -102
- package/es/TagSelector/ValueButton.js +48 -0
- package/es/TagSelector/ariaMessages.js +104 -0
- package/es/TagSelector/index.js +2 -1
- package/es/TagSelector/types.js +0 -0
- package/es/ToolboxPage/ToolboxInfo.js +10 -6
- package/es/Topic/Loader.js +1 -1
- package/es/Topic/Topic.js +117 -83
- package/es/TopicIntroductionList/TopicIntroduction.js +1 -1
- package/es/TopicIntroductionList/TopicIntroductionList.js +1 -1
- package/es/TopicIntroductionList/TopicIntroductionShortcuts.js +1 -1
- package/es/TopicIntroductionList/TopicShortcutItem.js +1 -1
- package/es/TopicMenu/SubtopicLinkList.js +33 -19
- package/es/TopicMenu/TopicMenu.js +5 -3
- package/es/TopicMenu/TopicMenuButton.js +8 -4
- package/es/Translation/Translation.js +1 -1
- package/es/Translation/TranslationBox.js +1 -1
- package/es/Translation/TranslationLine.js +1 -1
- package/es/TreeStructure/AddFolderButton.js +14 -10
- package/es/TreeStructure/ComboboxButton.js +29 -24
- package/es/TreeStructure/FolderItem.js +27 -15
- package/es/TreeStructure/FolderItems.js +11 -7
- package/es/TreeStructure/NavigationLink.js +21 -10
- package/es/TreeStructure/TreeStructure.js +46 -28
- package/es/User/AuthModal.js +33 -19
- package/es/User/UserInfo.js +20 -10
- package/es/internal-icons/Book.js +1 -1
- package/es/internal-icons/Download.js +1 -1
- package/es/internal-icons/Embed.js +1 -1
- package/es/internal-icons/InsertTemplate.js +1 -1
- package/es/internal-icons/OpenWindow.js +1 -1
- package/es/locale/LocaleProvider.js +1 -1
- package/es/locale/messages-en.js +41 -3
- package/es/locale/messages-nb.js +41 -3
- package/es/locale/messages-nn.js +41 -3
- package/es/locale/messages-se.js +41 -3
- package/es/locale/messages-sma.js +41 -3
- package/es/utils/createUniversalPortal.js +1 -1
- package/lib/Animation/DisplayOnPageYOffset.d.ts +1 -1
- package/lib/Animation/DisplayOnPageYOffset.js +2 -2
- package/lib/Animation/Fade.d.ts +1 -1
- package/lib/Animation/Fade.js +2 -2
- package/lib/Article/Article.d.ts +3 -3
- package/lib/Article/Article.js +39 -35
- package/lib/Article/ArticleAccessMessage.d.ts +1 -2
- package/lib/Article/ArticleAccessMessage.js +15 -11
- package/lib/Article/ArticleByline.d.ts +1 -1
- package/lib/Article/ArticleByline.js +33 -25
- package/lib/Article/ArticleContent.d.ts +1 -2
- package/lib/Article/ArticleContent.js +2 -2
- package/lib/Article/ArticleFavoritesButton.d.ts +1 -2
- package/lib/Article/ArticleFavoritesButton.js +5 -5
- package/lib/Article/ArticleFootNotes.d.ts +1 -2
- package/lib/Article/ArticleFootNotes.js +7 -7
- package/lib/Article/ArticleHeaderWrapper.d.ts +2 -2
- package/lib/Article/ArticleHeaderWrapper.js +36 -28
- package/lib/Article/ArticleNotions.d.ts +1 -2
- package/lib/Article/ArticleNotions.js +33 -23
- package/lib/Article/ArticleSideBar.d.ts +1 -1
- package/lib/Article/ArticleSideBar.js +34 -26
- package/lib/Aside/Aside.d.ts +1 -1
- package/lib/Aside/Aside.js +2 -2
- package/lib/AudioPlayer/AudioPlayer.d.ts +1 -1
- package/lib/AudioPlayer/AudioPlayer.js +83 -55
- package/lib/AudioPlayer/Controls.d.ts +1 -2
- package/lib/AudioPlayer/Controls.js +161 -109
- package/lib/AudioPlayer/SpeechControl.d.ts +1 -2
- package/lib/AudioPlayer/SpeechControl.js +8 -6
- package/lib/AudioPlayer/initAudioPlayers.js +3 -3
- package/lib/AuthorInfo/AuthorInfo.d.ts +1 -2
- package/lib/AuthorInfo/AuthorInfo.js +16 -10
- package/lib/BannerCard/BannerCard.d.ts +1 -2
- package/lib/BannerCard/BannerCard.js +31 -17
- package/lib/BlogPosts/BlogPost.d.ts +1 -2
- package/lib/BlogPosts/BlogPost.js +26 -18
- package/lib/BlogPosts/BlogPostWrapper.d.ts +1 -1
- package/lib/BlogPosts/BlogPostWrapper.js +8 -6
- package/lib/Breadcrumb/ActionBreadcrumb.d.ts +1 -2
- package/lib/Breadcrumb/ActionBreadcrumb.js +31 -16
- package/lib/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/lib/Breadcrumb/Breadcrumb.js +17 -13
- package/lib/Breadcrumb/BreadcrumbItem.js +41 -29
- package/lib/Breadcrumb/HeaderBreadcrumb.d.ts +1 -2
- package/lib/Breadcrumb/HeaderBreadcrumb.js +24 -11
- package/lib/Breadcrumb/HomeBreadcrumb.d.ts +1 -2
- package/lib/Breadcrumb/HomeBreadcrumb.js +37 -25
- package/lib/Breadcrumblist/Breadcrumblist.d.ts +1 -1
- package/lib/Breadcrumblist/Breadcrumblist.js +51 -39
- package/lib/CompetenceGoalTab/CompetenceGoalItem.d.ts +1 -2
- package/lib/CompetenceGoalTab/CompetenceGoalItem.js +45 -29
- package/lib/CompetenceGoalTab/CompetenceGoalTab.d.ts +1 -2
- package/lib/CompetenceGoalTab/CompetenceGoalTab.js +32 -22
- package/lib/CompetenceGoalTab/CompetenceItem.d.ts +1 -2
- package/lib/CompetenceGoalTab/CompetenceItem.js +84 -64
- package/lib/CompetenceGoalTab/SearchButton.d.ts +1 -2
- package/lib/CompetenceGoalTab/SearchButton.js +13 -9
- package/lib/CompetenceGoals/CompetenceGoalsDialog.d.ts +1 -1
- package/lib/CompetenceGoals/CompetenceGoalsDialog.js +22 -16
- package/lib/ComponentCursor/ComponentCursor.d.ts +1 -2
- package/lib/ComponentCursor/ComponentCursor.js +59 -41
- package/lib/ContentCard/ContentCard.d.ts +1 -2
- package/lib/ContentCard/ContentCard.js +39 -23
- package/lib/ContentLoader/index.d.ts +1 -1
- package/lib/ContentLoader/index.js +11 -11
- package/lib/ContentPlaceholder/ContentPlaceholder.d.ts +1 -2
- package/lib/ContentPlaceholder/ContentPlaceholder.js +22 -16
- package/lib/ContentTypeBadge/ContentTypeBadge.d.ts +9 -10
- package/lib/ContentTypeBadge/ContentTypeBadge.js +19 -19
- package/lib/CopyParagraphButton/CopyParagraphButton.d.ts +1 -2
- package/lib/CopyParagraphButton/CopyParagraphButton.js +47 -35
- package/lib/CopyParagraphButton/initCopyParagraphButtons.js +2 -2
- package/lib/CreatedBy/CreatedBy.d.ts +1 -2
- package/lib/CreatedBy/CreatedBy.js +29 -21
- package/lib/Dialog/Dialog.d.ts +1 -1
- package/lib/Dialog/Dialog.js +4 -4
- package/lib/ErrorMessage/ErrorMessage.d.ts +1 -1
- package/lib/ErrorMessage/ErrorMessage.js +31 -25
- package/lib/ErrorMessage/ErrorResourceAccessDenied.d.ts +1 -2
- package/lib/ErrorMessage/ErrorResourceAccessDenied.js +10 -8
- package/lib/FactBox/FactBox.d.ts +1 -1
- package/lib/FactBox/FactBox.js +4 -4
- package/lib/Figure/Figure.d.ts +2 -2
- package/lib/Figure/Figure.js +10 -10
- package/lib/Figure/FigureBylineExpandButton.d.ts +1 -2
- package/lib/Figure/FigureBylineExpandButton.js +4 -4
- package/lib/Figure/FigureExpandButton.d.ts +1 -2
- package/lib/Figure/FigureExpandButton.js +4 -4
- package/lib/Figure/FigureLicense.d.ts +2 -2
- package/lib/Figure/FigureLicense.js +7 -7
- package/lib/Figure/FigureLicenseDialog.d.ts +1 -1
- package/lib/Figure/FigureLicenseDialog.js +5 -5
- package/lib/Figure/FigureOpenDialogButton.d.ts +1 -2
- package/lib/Figure/FigureOpenDialogButton.js +7 -7
- package/lib/FileList/File.d.ts +1 -2
- package/lib/FileList/File.js +23 -17
- package/lib/FileList/FileList.d.ts +1 -2
- package/lib/FileList/FileList.js +19 -13
- package/lib/Filter/FilterButtons.d.ts +1 -2
- package/lib/Filter/FilterButtons.js +64 -46
- package/lib/Filter/FilterCarousel.d.ts +1 -1
- package/lib/Filter/FilterCarousel.js +37 -31
- package/lib/Filter/FilterList.d.ts +1 -1
- package/lib/Filter/FilterList.js +5 -5
- package/lib/Filter/FilterListPhone.d.ts +1 -2
- package/lib/Filter/FilterListPhone.js +19 -19
- package/lib/Filter/ToggleItem.d.ts +1 -1
- package/lib/Filter/ToggleItem.js +4 -4
- package/lib/Footer/EditorName.d.ts +1 -2
- package/lib/Footer/EditorName.js +2 -2
- package/lib/Footer/Footer.d.ts +1 -1
- package/lib/Footer/Footer.js +43 -29
- package/lib/Footer/FooterAuth.d.ts +1 -2
- package/lib/Footer/FooterAuth.js +38 -24
- package/lib/Footer/FooterLinks.d.ts +1 -1
- package/lib/Footer/FooterLinks.js +38 -26
- package/lib/Footer/FooterPrivacy.d.ts +1 -2
- package/lib/Footer/FooterPrivacy.js +21 -17
- package/lib/Footer/FooterText.d.ts +1 -1
- package/lib/Footer/FooterText.js +9 -7
- package/lib/Footer/privacy_en.d.ts +1 -2
- package/lib/Footer/privacy_en.js +2 -2
- package/lib/Footer/privacy_nb.d.ts +1 -2
- package/lib/Footer/privacy_nb.js +2 -2
- package/lib/Footer/privacy_nn.d.ts +1 -2
- package/lib/Footer/privacy_nn.js +2 -2
- package/lib/Frontpage/FrontpageAllSubjects.d.ts +1 -2
- package/lib/Frontpage/FrontpageAllSubjects.js +55 -41
- package/lib/Frontpage/FrontpageFilm.d.ts +1 -1
- package/lib/Frontpage/FrontpageFilm.js +39 -29
- package/lib/Frontpage/FrontpageHeader.d.ts +1 -1
- package/lib/Frontpage/FrontpageHeader.js +22 -14
- package/lib/Frontpage/FrontpageInfo.d.ts +1 -1
- package/lib/Frontpage/FrontpageInfo.js +7 -5
- package/lib/Frontpage/FrontpageMultidisciplinarySubject.d.ts +21 -6
- package/lib/Frontpage/FrontpageMultidisciplinarySubject.js +46 -32
- package/lib/Frontpage/FrontpageProgramMenu.d.ts +1 -2
- package/lib/Frontpage/FrontpageProgramMenu.js +61 -43
- package/lib/Frontpage/FrontpageSearch.d.ts +1 -1
- package/lib/Frontpage/FrontpageSearch.js +16 -12
- package/lib/Frontpage/FrontpageToolbox.d.ts +1 -1
- package/lib/Frontpage/FrontpageToolbox.js +23 -15
- package/lib/Frontpage/illustrations/Fellesfag.d.ts +1 -2
- package/lib/Frontpage/illustrations/Fellesfag.js +15 -15
- package/lib/Frontpage/illustrations/FrontpageHeaderIllustration.d.ts +1 -2
- package/lib/Frontpage/illustrations/FrontpageHeaderIllustration.js +31 -31
- package/lib/Frontpage/illustrations/FrontpageIllustrations.d.ts +8 -2
- package/lib/Frontpage/illustrations/FrontpageIllustrations.js +13 -9
- package/lib/Frontpage/illustrations/FrontpageSubjectIllustration.d.ts +1 -2
- package/lib/Frontpage/illustrations/FrontpageSubjectIllustration.js +47 -47
- package/lib/Frontpage/illustrations/MenuFellesfag.d.ts +1 -2
- package/lib/Frontpage/illustrations/MenuFellesfag.js +16 -16
- package/lib/Frontpage/illustrations/MenuStudiespesialiserende.d.ts +1 -2
- package/lib/Frontpage/illustrations/MenuStudiespesialiserende.js +13 -13
- package/lib/Frontpage/illustrations/MenuYrkesfag.d.ts +1 -2
- package/lib/Frontpage/illustrations/MenuYrkesfag.js +20 -20
- package/lib/Frontpage/illustrations/Studiespesialiserende.d.ts +1 -2
- package/lib/Frontpage/illustrations/Studiespesialiserende.js +13 -13
- package/lib/Frontpage/illustrations/Yrkesfag.d.ts +1 -2
- package/lib/Frontpage/illustrations/Yrkesfag.js +19 -19
- package/lib/Frontpage/illustrations/index.d.ts +6 -7
- package/lib/Hero/Hero.d.ts +8 -8
- package/lib/Hero/Hero.js +9 -9
- package/lib/Image/Image.d.ts +1 -1
- package/lib/Image/Image.js +13 -11
- package/lib/Image/ImageLink.d.ts +1 -1
- package/lib/Image/ImageLink.js +10 -8
- package/lib/Image/LazyLoadImage.d.ts +1 -2
- package/lib/Image/LazyLoadImage.js +4 -4
- package/lib/InfoBlock/InfoBlock.d.ts +1 -1
- package/lib/InfoBlock/InfoBlock.js +23 -13
- package/lib/InfoBox/InfoBox.d.ts +1 -1
- package/lib/InfoBox/InfoBox.js +7 -5
- package/lib/InfoWidget/InfoWidget.d.ts +1 -1
- package/lib/InfoWidget/InfoWidget.js +56 -38
- package/lib/LanguageSelector/LanguageSelector.d.ts +1 -2
- package/lib/LanguageSelector/LanguageSelector.js +51 -30
- package/lib/LanguageSelector/LanguageSelectorContent.d.ts +1 -2
- package/lib/LanguageSelector/LanguageSelectorContent.js +21 -10
- package/lib/Layout/Content.d.ts +1 -1
- package/lib/Layout/Content.js +2 -2
- package/lib/Layout/LayoutItem.d.ts +1 -1
- package/lib/Layout/LayoutItem.js +5 -5
- package/lib/Layout/OneColumn.d.ts +1 -1
- package/lib/Layout/OneColumn.js +2 -2
- package/lib/Layout/PageContainer.d.ts +1 -1
- package/lib/Layout/PageContainer.js +2 -2
- package/lib/LearningPaths/LearningPathContent.d.ts +1 -1
- package/lib/LearningPaths/LearningPathContent.js +7 -5
- package/lib/LearningPaths/LearningPathInformation.d.ts +1 -2
- package/lib/LearningPaths/LearningPathInformation.js +21 -15
- package/lib/LearningPaths/LearningPathLastStepNavigation.d.ts +1 -1
- package/lib/LearningPaths/LearningPathLastStepNavigation.js +32 -22
- package/lib/LearningPaths/LearningPathMenu.d.ts +1 -2
- package/lib/LearningPaths/LearningPathMenu.js +38 -30
- package/lib/LearningPaths/LearningPathMenuAside.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMenuAside.js +49 -29
- package/lib/LearningPaths/LearningPathMenuAsideCopyright.d.ts +1 -2
- package/lib/LearningPaths/LearningPathMenuAsideCopyright.js +13 -9
- package/lib/LearningPaths/LearningPathMenuContent.d.ts +1 -2
- package/lib/LearningPaths/LearningPathMenuContent.js +53 -41
- package/lib/LearningPaths/LearningPathMenuIntro.d.ts +1 -2
- package/lib/LearningPaths/LearningPathMenuIntro.js +48 -32
- package/lib/LearningPaths/LearningPathMenuModalWrapper.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMenuModalWrapper.js +13 -9
- package/lib/LearningPaths/LearningPathMobileHeader.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMobileHeader.js +19 -8
- package/lib/LearningPaths/LearningPathMobileStepInfo.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMobileStepInfo.js +6 -4
- package/lib/LearningPaths/LearningPathSticky.d.ts +3 -3
- package/lib/LearningPaths/LearningPathSticky.js +37 -29
- package/lib/LearningPaths/LearningPathWrapper.d.ts +1 -1
- package/lib/LearningPaths/LearningPathWrapper.js +17 -11
- package/lib/Logo/Logo.d.ts +1 -2
- package/lib/Logo/Logo.js +5 -5
- package/lib/Logo/SvgLogo.d.ts +1 -2
- package/lib/Logo/SvgLogo.js +8 -8
- package/lib/Masthead/Masthead.d.ts +2 -2
- package/lib/Masthead/Masthead.js +48 -36
- package/lib/Masthead/MastheadAuthModal.d.ts +1 -2
- package/lib/Masthead/MastheadAuthModal.js +8 -6
- package/lib/Masthead/MastheadSearchModal.d.ts +1 -1
- package/lib/Masthead/MastheadSearchModal.js +40 -30
- package/lib/Masthead/SkipToMainContent.d.ts +1 -2
- package/lib/Masthead/SkipToMainContent.js +6 -4
- package/lib/MediaList/MediaList.d.ts +8 -8
- package/lib/MediaList/MediaList.js +15 -15
- package/lib/Messages/MessageBanner.d.ts +1 -2
- package/lib/Messages/MessageBanner.js +21 -15
- package/lib/Messages/MessageBox.d.ts +2 -2
- package/lib/Messages/MessageBox.js +60 -38
- package/lib/Messages/MessageBoxTag.d.ts +1 -2
- package/lib/Messages/MessageBoxTag.js +10 -8
- package/lib/MultidisciplinarySubject/Illustrations.d.ts +28 -7
- package/lib/MultidisciplinarySubject/Illustrations.js +28 -14
- package/lib/MultidisciplinarySubject/List.d.ts +1 -2
- package/lib/MultidisciplinarySubject/List.js +21 -15
- package/lib/MultidisciplinarySubject/ListItem.d.ts +1 -2
- package/lib/MultidisciplinarySubject/ListItem.js +45 -31
- package/lib/MultidisciplinarySubject/MultidisciplinarySubject.d.ts +1 -1
- package/lib/MultidisciplinarySubject/MultidisciplinarySubject.js +47 -33
- package/lib/MultidisciplinarySubject/MultidisciplinarySubjectHeader.d.ts +1 -2
- package/lib/MultidisciplinarySubject/MultidisciplinarySubjectHeader.js +47 -35
- package/lib/MyNdla/Resource/Folder.d.ts +1 -2
- package/lib/MyNdla/Resource/Folder.js +53 -28
- package/lib/MyNdla/Resource/FolderInput.d.ts +1 -1
- package/lib/MyNdla/Resource/FolderInput.js +15 -11
- package/lib/NDLAFilm/AboutNdlaFilm.d.ts +1 -1
- package/lib/NDLAFilm/AboutNdlaFilm.js +14 -12
- package/lib/NDLAFilm/AllMoviesAlphabetically.d.ts +1 -2
- package/lib/NDLAFilm/AllMoviesAlphabetically.js +80 -60
- package/lib/NDLAFilm/CategorySelect.js +31 -25
- package/lib/NDLAFilm/FilmContentCard.d.ts +1 -2
- package/lib/NDLAFilm/FilmContentCard.js +20 -14
- package/lib/NDLAFilm/FilmContentCardTags.d.ts +1 -2
- package/lib/NDLAFilm/FilmContentCardTags.js +12 -8
- package/lib/NDLAFilm/FilmMovieList.d.ts +1 -2
- package/lib/NDLAFilm/FilmMovieList.js +8 -6
- package/lib/NDLAFilm/FilmMovieSearch.d.ts +1 -2
- package/lib/NDLAFilm/FilmMovieSearch.js +17 -13
- package/lib/NDLAFilm/FilmSlideshow.d.ts +1 -2
- package/lib/NDLAFilm/FilmSlideshow.js +91 -79
- package/lib/NDLAFilm/MovieGrid.d.ts +1 -2
- package/lib/NDLAFilm/MovieGrid.js +15 -11
- package/lib/NDLAFilm/NavigationArrow.d.ts +5 -2
- package/lib/NDLAFilm/NavigationArrow.js +27 -15
- package/lib/NDLAFilm/SlideshowIndicator.d.ts +1 -2
- package/lib/NDLAFilm/SlideshowIndicator.js +15 -11
- package/lib/NDLAFilm/VisualElement.d.ts +1 -2
- package/lib/NDLAFilm/VisualElement.js +11 -9
- package/lib/NDLAFilm/filmStyles.d.ts +8 -2
- package/lib/NDLAFilm/filmStyles.js +7 -3
- package/lib/Navigation/NavigationBox.d.ts +1 -1
- package/lib/Navigation/NavigationBox.js +128 -90
- package/lib/Navigation/NavigationHeading.d.ts +1 -1
- package/lib/Navigation/NavigationHeading.js +35 -29
- package/lib/Navigation/NavigationTopicAbout.d.ts +1 -1
- package/lib/Navigation/NavigationTopicAbout.js +88 -70
- package/lib/NoContentBox/NoContentBox.d.ts +1 -2
- package/lib/NoContentBox/NoContentBox.js +2 -2
- package/lib/Notion/ConceptNotion.d.ts +1 -2
- package/lib/Notion/ConceptNotion.js +16 -16
- package/lib/Notion/FigureNotion.d.ts +1 -1
- package/lib/Notion/FigureNotion.js +10 -8
- package/lib/Notion/Notion.d.ts +1 -1
- package/lib/Notion/Notion.js +31 -23
- package/lib/Notion/NotionImage.d.ts +1 -2
- package/lib/Notion/NotionImage.js +13 -9
- package/lib/Notion/NotionVisualElement.d.ts +1 -1
- package/lib/Notion/NotionVisualElement.js +16 -14
- package/lib/Portrait/Portrait.d.ts +1 -2
- package/lib/Portrait/Portrait.js +15 -6
- package/lib/Programme/Programme.d.ts +1 -2
- package/lib/Programme/Programme.js +34 -24
- package/lib/Programme/ProgrammeSubjects.d.ts +1 -2
- package/lib/Programme/ProgrammeSubjects.js +10 -8
- package/lib/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
- package/lib/RadioButtonGroup/RadioButtonGroup.js +25 -17
- package/lib/RelatedArticleList/RelatedArticleList.d.ts +2 -2
- package/lib/RelatedArticleList/RelatedArticleList.js +7 -7
- package/lib/Resource/BlockResource.d.ts +1 -2
- package/lib/Resource/BlockResource.js +41 -29
- package/lib/Resource/ListResource.d.ts +1 -2
- package/lib/Resource/ListResource.js +68 -54
- package/lib/Resource/resourceComponents.d.ts +18 -7
- package/lib/Resource/resourceComponents.js +65 -41
- package/lib/ResourceBox/ResourceBox.d.ts +1 -2
- package/lib/ResourceBox/ResourceBox.js +30 -18
- package/lib/ResourceGroup/ResourceGroup.d.ts +1 -2
- package/lib/ResourceGroup/ResourceGroup.js +15 -9
- package/lib/ResourceGroup/ResourceItem.d.ts +1 -2
- package/lib/ResourceGroup/ResourceItem.js +89 -59
- package/lib/ResourceGroup/ResourceList.d.ts +1 -2
- package/lib/ResourceGroup/ResourceList.js +15 -9
- package/lib/ResourcesWrapper/ResourcesTitle.d.ts +1 -1
- package/lib/ResourcesWrapper/ResourcesTitle.js +3 -3
- package/lib/ResourcesWrapper/ResourcesTopicTitle.d.ts +1 -2
- package/lib/ResourcesWrapper/ResourcesTopicTitle.js +43 -31
- package/lib/ResourcesWrapper/ResourcesWrapper.d.ts +1 -1
- package/lib/ResourcesWrapper/ResourcesWrapper.js +3 -3
- package/lib/Search/ActiveFilterContent.d.ts +5 -2
- package/lib/Search/ActiveFilterContent.js +12 -8
- package/lib/Search/ActiveFilters.d.ts +1 -2
- package/lib/Search/ActiveFilters.js +46 -34
- package/lib/Search/ContentTypeResult.d.ts +1 -2
- package/lib/Search/ContentTypeResult.js +15 -17
- package/lib/Search/ContentTypeResultStyles.d.ts +24 -6
- package/lib/Search/ContentTypeResultStyles.js +84 -40
- package/lib/Search/LoadingWrapper.d.ts +1 -2
- package/lib/Search/LoadingWrapper.js +7 -5
- package/lib/Search/SearchField.d.ts +1 -1
- package/lib/Search/SearchField.js +25 -19
- package/lib/Search/SearchFieldForm.d.ts +1 -1
- package/lib/Search/SearchFieldForm.js +21 -11
- package/lib/Search/SearchResult.d.ts +2 -2
- package/lib/Search/SearchResult.js +61 -41
- package/lib/Search/SearchResultSleeve.d.ts +1 -2
- package/lib/Search/SearchResultSleeve.js +46 -30
- package/lib/Search/ToggleSearchButton.d.ts +1 -2
- package/lib/Search/ToggleSearchButton.js +12 -8
- package/lib/SearchTypeResult/ActiveFilterContent.d.ts +5 -2
- package/lib/SearchTypeResult/ActiveFilterContent.js +16 -12
- package/lib/SearchTypeResult/ActiveFilters.d.ts +1 -1
- package/lib/SearchTypeResult/ActiveFilters.js +53 -41
- package/lib/SearchTypeResult/PopupFilter.d.ts +1 -2
- package/lib/SearchTypeResult/PopupFilter.js +50 -36
- package/lib/SearchTypeResult/ResultNavigation.d.ts +1 -2
- package/lib/SearchTypeResult/ResultNavigation.js +22 -14
- package/lib/SearchTypeResult/SearchFieldHeader.d.ts +1 -1
- package/lib/SearchTypeResult/SearchFieldHeader.js +29 -21
- package/lib/SearchTypeResult/SearchFilterContent.d.ts +1 -2
- package/lib/SearchTypeResult/SearchFilterContent.js +16 -12
- package/lib/SearchTypeResult/SearchHeader.d.ts +1 -1
- package/lib/SearchTypeResult/SearchHeader.js +40 -24
- package/lib/SearchTypeResult/SearchItem.d.ts +1 -1
- package/lib/SearchTypeResult/SearchItem.js +58 -44
- package/lib/SearchTypeResult/SearchItemList.d.ts +1 -2
- package/lib/SearchTypeResult/SearchItemList.js +79 -52
- package/lib/SearchTypeResult/SearchItems.d.ts +1 -1
- package/lib/SearchTypeResult/SearchItems.js +18 -14
- package/lib/SearchTypeResult/SearchNotionItem.d.ts +1 -1
- package/lib/SearchTypeResult/SearchNotionItem.js +75 -51
- package/lib/SearchTypeResult/SearchNotionsResult.d.ts +1 -1
- package/lib/SearchTypeResult/SearchNotionsResult.js +21 -13
- package/lib/SearchTypeResult/SearchSubjectItem.d.ts +1 -2
- package/lib/SearchTypeResult/SearchSubjectItem.js +16 -10
- package/lib/SearchTypeResult/SearchSubjectResult.d.ts +1 -2
- package/lib/SearchTypeResult/SearchSubjectResult.js +11 -9
- package/lib/SearchTypeResult/SearchTypeHeader.d.ts +1 -1
- package/lib/SearchTypeResult/SearchTypeHeader.js +47 -29
- package/lib/SearchTypeResult/SearchTypeResult.d.ts +1 -1
- package/lib/SearchTypeResult/SearchTypeResult.js +14 -10
- package/lib/SearchTypeResult/SearchViewType.d.ts +1 -2
- package/lib/SearchTypeResult/SearchViewType.js +28 -20
- package/lib/SearchTypeResult/components/ItemContexts.d.ts +1 -2
- package/lib/SearchTypeResult/components/ItemContexts.js +46 -32
- package/lib/SearchTypeResult/components/ItemResourceHeader.d.ts +1 -2
- package/lib/SearchTypeResult/components/ItemResourceHeader.js +50 -29
- package/lib/SearchTypeResult/components/ItemTopicHeader.d.ts +1 -1
- package/lib/SearchTypeResult/components/ItemTopicHeader.js +35 -24
- package/lib/SearchTypeResult/components/SubjectFilters.d.ts +1 -2
- package/lib/SearchTypeResult/components/SubjectFilters.js +14 -12
- package/lib/SectionHeading/SectionHeading.d.ts +1 -1
- package/lib/SectionHeading/SectionHeading.js +21 -13
- package/lib/SnackBar/DefaultSnackbar.d.ts +1 -2
- package/lib/SnackBar/DefaultSnackbar.js +15 -9
- package/lib/SnackBar/SnackbarProvider.d.ts +2 -2
- package/lib/SnackBar/SnackbarProvider.js +27 -23
- package/lib/Subject/Subject.d.ts +8 -8
- package/lib/Subject/Subject.js +97 -71
- package/lib/Subject/SubjectAbout.d.ts +1 -1
- package/lib/Subject/SubjectAbout.js +63 -43
- package/lib/Subject/SubjectArchive.d.ts +1 -1
- package/lib/Subject/SubjectArchive.js +65 -43
- package/lib/Subject/SubjectBanner.d.ts +1 -2
- package/lib/Subject/SubjectBanner.js +8 -6
- package/lib/Subject/SubjectCarousel.d.ts +1 -1
- package/lib/Subject/SubjectCarousel.js +43 -31
- package/lib/Subject/SubjectHeader.d.ts +1 -2
- package/lib/Subject/SubjectHeader.js +39 -29
- package/lib/Subject/SubjectLinks.d.ts +1 -2
- package/lib/Subject/SubjectLinks.js +20 -14
- package/lib/Subject/SubjectNewContent.d.ts +1 -2
- package/lib/Subject/SubjectNewContent.js +42 -26
- package/lib/Subject/SubjectShortcuts.d.ts +1 -1
- package/lib/Subject/SubjectShortcuts.js +28 -20
- package/lib/Subject/SubjectSocial.d.ts +2 -2
- package/lib/Subject/SubjectSocial.js +12 -8
- package/lib/Table/Table.d.ts +1 -1
- package/lib/Table/Table.js +5 -5
- package/lib/TagSelector/Control.d.ts +11 -0
- package/lib/TagSelector/Control.js +37 -0
- package/lib/TagSelector/DropdownIndicator.d.ts +11 -0
- package/lib/TagSelector/DropdownIndicator.js +82 -0
- package/lib/TagSelector/Input.d.ts +11 -0
- package/lib/TagSelector/Input.js +35 -0
- package/lib/TagSelector/Menu.d.ts +11 -0
- package/lib/TagSelector/Menu.js +42 -0
- package/lib/TagSelector/MenuList.d.ts +16 -0
- package/lib/TagSelector/MenuList.js +38 -0
- package/lib/TagSelector/Option.d.ts +11 -0
- package/lib/TagSelector/Option.js +65 -0
- package/lib/TagSelector/SelectContainer.d.ts +11 -0
- package/lib/TagSelector/SelectContainer.js +40 -0
- package/lib/TagSelector/TagSelector.d.ts +14 -12
- package/lib/TagSelector/TagSelector.js +171 -98
- package/lib/TagSelector/ValueButton.d.ts +19 -0
- package/lib/TagSelector/ValueButton.js +57 -0
- package/lib/TagSelector/ariaMessages.d.ts +16 -0
- package/lib/TagSelector/ariaMessages.js +113 -0
- package/lib/TagSelector/index.d.ts +2 -1
- package/lib/TagSelector/index.js +3 -5
- package/lib/TagSelector/types.d.ts +11 -0
- package/lib/TagSelector/types.js +1 -0
- package/lib/ToolboxPage/ToolboxInfo.d.ts +1 -1
- package/lib/ToolboxPage/ToolboxInfo.js +11 -7
- package/lib/Topic/Loader.d.ts +1 -2
- package/lib/Topic/Loader.js +15 -15
- package/lib/Topic/Topic.d.ts +1 -1
- package/lib/Topic/Topic.js +132 -98
- package/lib/TopicIntroductionList/TopicIntroduction.d.ts +1 -2
- package/lib/TopicIntroductionList/TopicIntroduction.js +15 -15
- package/lib/TopicIntroductionList/TopicIntroductionList.d.ts +1 -2
- package/lib/TopicIntroductionList/TopicIntroductionList.js +4 -4
- package/lib/TopicIntroductionList/TopicIntroductionShortcuts.d.ts +1 -2
- package/lib/TopicIntroductionList/TopicIntroductionShortcuts.js +7 -7
- package/lib/TopicIntroductionList/TopicShortcutItem.d.ts +1 -2
- package/lib/TopicIntroductionList/TopicShortcutItem.js +5 -5
- package/lib/TopicMenu/SubtopicLinkList.js +50 -36
- package/lib/TopicMenu/TopicMenu.js +32 -30
- package/lib/TopicMenu/TopicMenuButton.js +11 -7
- package/lib/Translation/Translation.d.ts +1 -1
- package/lib/Translation/Translation.js +2 -2
- package/lib/Translation/TranslationBox.d.ts +1 -1
- package/lib/Translation/TranslationBox.js +4 -4
- package/lib/Translation/TranslationLine.d.ts +1 -1
- package/lib/Translation/TranslationLine.js +5 -5
- package/lib/TreeStructure/AddFolderButton.d.ts +1 -2
- package/lib/TreeStructure/AddFolderButton.js +17 -13
- package/lib/TreeStructure/ComboboxButton.js +33 -28
- package/lib/TreeStructure/FolderItem.d.ts +1 -2
- package/lib/TreeStructure/FolderItem.js +32 -20
- package/lib/TreeStructure/FolderItems.d.ts +1 -1
- package/lib/TreeStructure/FolderItems.js +17 -13
- package/lib/TreeStructure/NavigationLink.d.ts +1 -2
- package/lib/TreeStructure/NavigationLink.js +16 -12
- package/lib/TreeStructure/TreeStructure.d.ts +1 -2
- package/lib/TreeStructure/TreeStructure.js +51 -33
- package/lib/User/AuthModal.d.ts +1 -1
- package/lib/User/AuthModal.js +42 -28
- package/lib/User/UserInfo.d.ts +1 -2
- package/lib/User/UserInfo.js +24 -20
- package/lib/internal-icons/Book.js +3 -3
- package/lib/internal-icons/Download.js +3 -3
- package/lib/internal-icons/Embed.js +3 -3
- package/lib/internal-icons/InsertTemplate.js +3 -3
- package/lib/internal-icons/OpenWindow.js +3 -3
- package/lib/locale/LocaleProvider.d.ts +1 -1
- package/lib/locale/LocaleProvider.js +4 -4
- package/lib/locale/messages-en.d.ts +40 -2
- package/lib/locale/messages-en.js +41 -3
- package/lib/locale/messages-nb.d.ts +40 -2
- package/lib/locale/messages-nb.js +41 -3
- package/lib/locale/messages-nn.d.ts +40 -2
- package/lib/locale/messages-nn.js +41 -3
- package/lib/locale/messages-se.d.ts +40 -2
- package/lib/locale/messages-se.js +41 -3
- package/lib/locale/messages-sma.d.ts +40 -2
- package/lib/locale/messages-sma.js +41 -3
- package/lib/utils/createUniversalPortal.d.ts +1 -1
- package/lib/utils/createUniversalPortal.js +2 -2
- package/package.json +19 -18
- package/src/Breadcrumb/BreadcrumbItem.tsx +1 -1
- package/src/ComponentCursor/ComponentCursor.tsx +1 -1
- package/src/CopyParagraphButton/CopyParagraphButton.tsx +21 -19
- package/src/Filter/FilterCarousel.tsx +1 -1
- package/src/Frontpage/FrontpageFilm.tsx +1 -1
- package/src/Frontpage/illustrations/FrontpageSubjectIllustration.tsx +1 -1
- package/src/Image/LazyLoadImage.tsx +0 -1
- package/src/Image/__tests__/Image-test.jsx +8 -7
- package/src/Image/__tests__/__snapshots__/Image-test.jsx.snap +8 -20
- package/src/InfoWidget/InfoWidget.tsx +1 -1
- package/src/LanguageSelector/LanguageSelector.tsx +1 -1
- package/src/LearningPaths/LearningPathLastStepNavigation.tsx +1 -1
- package/src/LearningPaths/LearningPathMenu.tsx +1 -1
- package/src/LearningPaths/LearningPathMenuAside.tsx +1 -1
- package/src/LearningPaths/LearningPathMenuContent.tsx +1 -1
- package/src/LearningPaths/LearningPathMenuIntro.tsx +1 -1
- package/src/LearningPaths/LearningPathMenuModalWrapper.tsx +1 -1
- package/src/LearningPaths/LearningPathSticky.tsx +1 -1
- package/src/LearningPaths/LearningPathWrapper.tsx +1 -1
- package/src/Masthead/Masthead.tsx +1 -1
- package/src/Masthead/MastheadSearchModal.tsx +1 -1
- package/src/Messages/MessageBox.tsx +1 -1
- package/src/MyNdla/Resource/Folder.tsx +1 -1
- package/src/NDLAFilm/AllMoviesAlphabetically.tsx +1 -1
- package/src/NDLAFilm/CategorySelect.tsx +1 -1
- package/src/NDLAFilm/FilmSlideshow.tsx +1 -1
- package/src/NDLAFilm/NavigationArrow.tsx +1 -1
- package/src/Navigation/NavigationBox.tsx +1 -1
- package/src/Navigation/NavigationHeading.tsx +1 -1
- package/src/Navigation/NavigationTopicAbout.tsx +1 -1
- package/src/Notion/ConceptNotion.tsx +0 -2
- package/src/Notion/NotionVisualElement.tsx +1 -1
- package/src/Resource/ListResource.tsx +1 -1
- package/src/ResourceGroup/ResourceItem.tsx +2 -2
- package/src/ResourceGroup/ResourceList.tsx +2 -2
- package/src/ResourcesWrapper/ResourcesTopicTitle.tsx +1 -1
- package/src/Search/ActiveFilters.tsx +1 -1
- package/src/Search/ContentTypeResultStyles.tsx +1 -1
- package/src/Search/SearchField.tsx +1 -1
- package/src/Search/SearchFieldForm.tsx +1 -1
- package/src/SearchTypeResult/ActiveFilters.tsx +1 -1
- package/src/SearchTypeResult/SearchItem.tsx +6 -49
- package/src/SearchTypeResult/SearchItemList.tsx +12 -19
- package/src/SearchTypeResult/components/ItemResourceHeader.tsx +19 -23
- package/src/SearchTypeResult/components/ItemTopicHeader.tsx +3 -5
- package/src/SectionHeading/SectionHeading.tsx +1 -1
- package/src/SnackBar/SnackbarProvider.tsx +1 -1
- package/src/Subject/Subject.tsx +1 -1
- package/src/Subject/SubjectAbout.tsx +1 -1
- package/src/Subject/SubjectCarousel.tsx +1 -1
- package/src/Subject/SubjectHeader.tsx +1 -1
- package/src/TagSelector/Control.tsx +34 -0
- package/src/TagSelector/DropdownIndicator.tsx +47 -0
- package/src/TagSelector/Input.tsx +31 -0
- package/src/TagSelector/Menu.tsx +38 -0
- package/src/TagSelector/MenuList.tsx +30 -0
- package/src/TagSelector/Option.tsx +53 -0
- package/src/TagSelector/SelectContainer.tsx +32 -0
- package/src/TagSelector/TagSelector.tsx +105 -84
- package/src/TagSelector/ValueButton.tsx +46 -0
- package/src/TagSelector/ariaMessages.ts +87 -0
- package/src/TagSelector/index.ts +2 -1
- package/src/TagSelector/types.ts +12 -0
- package/src/Topic/Topic.tsx +1 -1
- package/src/TopicMenu/SubtopicLinkList.jsx +1 -1
- package/src/TopicMenu/TopicMenuButton.jsx +1 -1
- package/src/TreeStructure/ComboboxButton.tsx +15 -17
- package/src/TreeStructure/TreeStructure.tsx +3 -12
- package/src/locale/messages-en.ts +42 -3
- package/src/locale/messages-nb.ts +42 -3
- package/src/locale/messages-nn.ts +42 -3
- package/src/locale/messages-se.ts +42 -3
- package/src/locale/messages-sma.ts +42 -3
- package/es/TagSelector/SuggestionInput.js +0 -285
- package/es/TagSelector/Suggestions.js +0 -97
- package/lib/TagSelector/SuggestionInput.d.ts +0 -19
- package/lib/TagSelector/SuggestionInput.js +0 -299
- package/lib/TagSelector/Suggestions.d.ts +0 -12
- package/lib/TagSelector/Suggestions.js +0 -99
- package/src/TagSelector/SuggestionInput.tsx +0 -287
- package/src/TagSelector/Suggestions.tsx +0 -139
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { InputProps } from 'react-select';
|
|
9
|
+
import { TagType } from './types';
|
|
10
|
+
declare const Input: (props: InputProps<TagType, true>) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
11
|
+
export default Input;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
|
+
|
|
10
|
+
var _core = require("@ndla/core");
|
|
11
|
+
|
|
12
|
+
var _react2 = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _reactSelect = require("react-select");
|
|
15
|
+
|
|
16
|
+
var _ValueButton = require("./ValueButton");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
|
+
|
|
22
|
+
var inputStyle =
|
|
23
|
+
/*#__PURE__*/
|
|
24
|
+
|
|
25
|
+
/*#__PURE__*/
|
|
26
|
+
(0, _react.css)("&&{padding:0 ", _core.spacing.small, ";color:", _core.colors.brand.primary, ";margin:0;", _ValueButton.StyledValueButton, "+&{padding-left:", _core.spacing.xxsmall, ";}}" + (process.env.NODE_ENV === "production" ? "" : ";label:inputStyle;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIklucHV0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFlc0IiLCJmaWxlIjoiSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDb3B5cmlnaHQgKGMpIDIwMjItcHJlc2VudCwgTkRMQS5cbiAqXG4gKiBUaGlzIHNvdXJjZSBjb2RlIGlzIGxpY2Vuc2VkIHVuZGVyIHRoZSBHUEx2MyBsaWNlbnNlIGZvdW5kIGluIHRoZVxuICogTElDRU5TRSBmaWxlIGluIHRoZSByb290IGRpcmVjdG9yeSBvZiB0aGlzIHNvdXJjZSB0cmVlLlxuICpcbiAqL1xuXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyBjb2xvcnMsIHNwYWNpbmcgfSBmcm9tICdAbmRsYS9jb3JlJztcbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBjb21wb25lbnRzLCBJbnB1dFByb3BzIH0gZnJvbSAncmVhY3Qtc2VsZWN0JztcbmltcG9ydCB7IFRhZ1R5cGUgfSBmcm9tICcuL3R5cGVzJztcbmltcG9ydCB7IFN0eWxlZFZhbHVlQnV0dG9uIH0gZnJvbSAnLi9WYWx1ZUJ1dHRvbic7XG5cbmNvbnN0IGlucHV0U3R5bGUgPSBjc3NgXG4gICYmIHtcbiAgICBwYWRkaW5nOiAwICR7c3BhY2luZy5zbWFsbH07XG4gICAgY29sb3I6ICR7Y29sb3JzLmJyYW5kLnByaW1hcnl9O1xuICAgIG1hcmdpbjogMDtcbiAgICAke1N0eWxlZFZhbHVlQnV0dG9ufSArICYge1xuICAgICAgcGFkZGluZy1sZWZ0OiAke3NwYWNpbmcueHhzbWFsbH07XG4gICAgfVxuICB9XG5gO1xuXG5jb25zdCBJbnB1dCA9IChwcm9wczogSW5wdXRQcm9wczxUYWdUeXBlLCB0cnVlPikgPT4ge1xuICByZXR1cm4gPGNvbXBvbmVudHMuSW5wdXQgY3NzPXtpbnB1dFN0eWxlfSB7Li4ucHJvcHN9IC8+O1xufTtcblxuZXhwb3J0IGRlZmF1bHQgSW5wdXQ7XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:inputStyle;");
|
|
27
|
+
|
|
28
|
+
var Input = function Input(props) {
|
|
29
|
+
return (0, _react.jsx)(_reactSelect.components.Input, _extends({
|
|
30
|
+
css: inputStyle
|
|
31
|
+
}, props));
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
var _default = Input;
|
|
35
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { MenuProps } from 'react-select';
|
|
9
|
+
import { TagType } from './types';
|
|
10
|
+
declare const Menu: ({ children, ...props }: MenuProps<TagType, true>) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
11
|
+
export default Menu;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
|
+
|
|
10
|
+
var _core = require("@ndla/core");
|
|
11
|
+
|
|
12
|
+
var _react2 = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _reactSelect = require("react-select");
|
|
15
|
+
|
|
16
|
+
var _MenuList = require("./MenuList");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
var menuStyle =
|
|
27
|
+
/*#__PURE__*/
|
|
28
|
+
|
|
29
|
+
/*#__PURE__*/
|
|
30
|
+
(0, _react.css)("display:flex;position:relative;flex-direction:column;margin:0;overflow:hidden;border-top:1px solid ", _core.colors.brand.tertiary, ";min-height:70px;:has(", _MenuList.StyledMenuList, ">*:only-child){min-height:40px;}" + (process.env.NODE_ENV === "production" ? "" : ";label:menuStyle;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk1lbnUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWVxQiIsImZpbGUiOiJNZW51LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ29weXJpZ2h0IChjKSAyMDIyLXByZXNlbnQsIE5ETEEuXG4gKlxuICogVGhpcyBzb3VyY2UgY29kZSBpcyBsaWNlbnNlZCB1bmRlciB0aGUgR1BMdjMgbGljZW5zZSBmb3VuZCBpbiB0aGVcbiAqIExJQ0VOU0UgZmlsZSBpbiB0aGUgcm9vdCBkaXJlY3Rvcnkgb2YgdGhpcyBzb3VyY2UgdHJlZS5cbiAqXG4gKi9cblxuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgY29sb3JzIH0gZnJvbSAnQG5kbGEvY29yZSc7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgTWVudVByb3BzLCBjb21wb25lbnRzIH0gZnJvbSAncmVhY3Qtc2VsZWN0JztcbmltcG9ydCB7IFN0eWxlZE1lbnVMaXN0IH0gZnJvbSAnLi9NZW51TGlzdCc7XG5pbXBvcnQgeyBUYWdUeXBlIH0gZnJvbSAnLi90eXBlcyc7XG5cbmNvbnN0IG1lbnVTdHlsZSA9IGNzc2BcbiAgZGlzcGxheTogZmxleDtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICBtYXJnaW46IDA7XG4gIG92ZXJmbG93OiBoaWRkZW47XG4gIGJvcmRlci10b3A6IDFweCBzb2xpZCAke2NvbG9ycy5icmFuZC50ZXJ0aWFyeX07XG4gIG1pbi1oZWlnaHQ6IDcwcHg7XG5cbiAgOmhhcygke1N0eWxlZE1lbnVMaXN0fT4qOm9ubHktY2hpbGQpIHtcbiAgICBtaW4taGVpZ2h0OiA0MHB4O1xuICB9XG5gO1xuXG5jb25zdCBNZW51ID0gKHsgY2hpbGRyZW4sIC4uLnByb3BzIH06IE1lbnVQcm9wczxUYWdUeXBlLCB0cnVlPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxjb21wb25lbnRzLk1lbnUgY3NzPXttZW51U3R5bGV9IHsuLi5wcm9wc30+XG4gICAgICB7Y2hpbGRyZW59XG4gICAgPC9jb21wb25lbnRzLk1lbnU+XG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBNZW51O1xuIl19 */", process.env.NODE_ENV === "production" ? "" : ";label:menuStyle;");
|
|
31
|
+
|
|
32
|
+
var Menu = function Menu(_ref) {
|
|
33
|
+
var children = _ref.children,
|
|
34
|
+
props = _objectWithoutProperties(_ref, ["children"]);
|
|
35
|
+
|
|
36
|
+
return (0, _react.jsx)(_reactSelect.components.Menu, _extends({
|
|
37
|
+
css: menuStyle
|
|
38
|
+
}, props), children);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
var _default = Menu;
|
|
42
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { MenuListProps } from 'react-select';
|
|
10
|
+
import { TagType } from './types';
|
|
11
|
+
export declare const StyledMenuList: import("@emotion/styled").StyledComponent<{
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
as?: "symbol" | "object" | "big" | "link" | "small" | "sub" | "sup" | "track" | "progress" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "main" | "map" | "mark" | "menu" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "slot" | "source" | "span" | "strong" | "style" | "summary" | "table" | "tbody" | "td" | "template" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "u" | "ul" | "var" | "video" | "wbr" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "svg" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | "menuitem" | "keygen" | "noindex" | "webview" | "animate" | "animateMotion" | "animateTransform" | "feDropShadow" | "mpath" | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
|
|
14
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
|
+
declare const MenuList: ({ innerProps, innerRef, children }: MenuListProps<TagType, true>) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
16
|
+
export default MenuList;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.StyledMenuList = void 0;
|
|
7
|
+
|
|
8
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
|
+
|
|
10
|
+
var _core = require("@ndla/core");
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
|
+
|
|
20
|
+
var StyledMenuList = /*#__PURE__*/(0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
21
|
+
target: "e1e7c4ob0"
|
|
22
|
+
} : {
|
|
23
|
+
target: "e1e7c4ob0",
|
|
24
|
+
label: "StyledMenuList"
|
|
25
|
+
})("overflow:overlay;", _core.utils.scrollbar, " display:flex;flex-direction:column;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk1lbnVMaXN0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFjd0MiLCJmaWxlIjoiTWVudUxpc3QudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDb3B5cmlnaHQgKGMpIDIwMjItcHJlc2VudCwgTkRMQS5cbiAqXG4gKiBUaGlzIHNvdXJjZSBjb2RlIGlzIGxpY2Vuc2VkIHVuZGVyIHRoZSBHUEx2MyBsaWNlbnNlIGZvdW5kIGluIHRoZVxuICogTElDRU5TRSBmaWxlIGluIHRoZSByb290IGRpcmVjdG9yeSBvZiB0aGlzIHNvdXJjZSB0cmVlLlxuICpcbiAqL1xuXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyB1dGlscyB9IGZyb20gJ0BuZGxhL2NvcmUnO1xuaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IE1lbnVMaXN0UHJvcHMgfSBmcm9tICdyZWFjdC1zZWxlY3QnO1xuaW1wb3J0IHsgVGFnVHlwZSB9IGZyb20gJy4vdHlwZXMnO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkTWVudUxpc3QgPSBzdHlsZWQuZGl2YFxuICBvdmVyZmxvdzogb3ZlcmxheTtcbiAgJHt1dGlscy5zY3JvbGxiYXJ9XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG5gO1xuXG5jb25zdCBNZW51TGlzdCA9ICh7IGlubmVyUHJvcHMsIGlubmVyUmVmLCBjaGlsZHJlbiB9OiBNZW51TGlzdFByb3BzPFRhZ1R5cGUsIHRydWU+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPFN0eWxlZE1lbnVMaXN0IHJlZj17aW5uZXJSZWZ9IHsuLi5pbm5lclByb3BzfT5cbiAgICAgIHtjaGlsZHJlbn1cbiAgICA8L1N0eWxlZE1lbnVMaXN0PlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgTWVudUxpc3Q7XG4iXX0= */"));
|
|
26
|
+
exports.StyledMenuList = StyledMenuList;
|
|
27
|
+
|
|
28
|
+
var MenuList = function MenuList(_ref) {
|
|
29
|
+
var innerProps = _ref.innerProps,
|
|
30
|
+
innerRef = _ref.innerRef,
|
|
31
|
+
children = _ref.children;
|
|
32
|
+
return (0, _react2.jsx)(StyledMenuList, _extends({
|
|
33
|
+
ref: innerRef
|
|
34
|
+
}, innerProps), children);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
var _default = MenuList;
|
|
38
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { OptionProps } from 'react-select';
|
|
9
|
+
import { TagType } from './types';
|
|
10
|
+
declare const Option: ({ innerProps, innerRef, children, isSelected, isFocused }: OptionProps<TagType, true>) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
11
|
+
export default Option;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _button = require("@ndla/button");
|
|
13
|
+
|
|
14
|
+
var _core = require("@ndla/core");
|
|
15
|
+
|
|
16
|
+
var _editor = require("@ndla/icons/editor");
|
|
17
|
+
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
|
+
|
|
24
|
+
var StyledMenuOption = /*#__PURE__*/(0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
25
|
+
target: "ec486651"
|
|
26
|
+
} : {
|
|
27
|
+
target: "ec486651",
|
|
28
|
+
label: "StyledMenuOption"
|
|
29
|
+
})("&&{background:", function (_ref) {
|
|
30
|
+
var focused = _ref.focused;
|
|
31
|
+
return focused && _core.colors.brand.lighter;
|
|
32
|
+
}, ";color:", function (_ref2) {
|
|
33
|
+
var focused = _ref2.focused;
|
|
34
|
+
return focused && _core.colors.brand.primary;
|
|
35
|
+
}, ";justify-content:space-between;", _core.fonts.sizes(16), ";font-weight:", _core.fonts.weight.normal, ";color:", function (_ref3) {
|
|
36
|
+
var selected = _ref3.selected;
|
|
37
|
+
return selected && _core.colors.brand.grey;
|
|
38
|
+
}, ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk9wdGlvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBcUJnRCIsImZpbGUiOiJPcHRpb24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDb3B5cmlnaHQgKGMpIDIwMjItcHJlc2VudCwgTkRMQS5cbiAqXG4gKiBUaGlzIHNvdXJjZSBjb2RlIGlzIGxpY2Vuc2VkIHVuZGVyIHRoZSBHUEx2MyBsaWNlbnNlIGZvdW5kIGluIHRoZVxuICogTElDRU5TRSBmaWxlIGluIHRoZSByb290IGRpcmVjdG9yeSBvZiB0aGlzIHNvdXJjZSB0cmVlLlxuICpcbiAqL1xuXG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgT3B0aW9uUHJvcHMgfSBmcm9tICdyZWFjdC1zZWxlY3QnO1xuaW1wb3J0IHsgYnV0dG9uU3R5bGVWMiBhcyBidXR0b25TdHlsZSB9IGZyb20gJ0BuZGxhL2J1dHRvbic7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBjb2xvcnMsIGZvbnRzIH0gZnJvbSAnQG5kbGEvY29yZSc7XG5pbXBvcnQgeyBEb25lIH0gZnJvbSAnQG5kbGEvaWNvbnMvZWRpdG9yJztcbmltcG9ydCB7IFRhZ1R5cGUgfSBmcm9tICcuL3R5cGVzJztcblxuaW50ZXJmYWNlIFN0eWxlZFByb3BzIHtcbiAgc2VsZWN0ZWQ6IGJvb2xlYW47XG4gIGZvY3VzZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IFN0eWxlZE1lbnVPcHRpb24gPSBzdHlsZWQuZGl2PFN0eWxlZFByb3BzPmBcbiAgJiYge1xuICAgIGJhY2tncm91bmQ6ICR7KHsgZm9jdXNlZCB9KSA9PiBmb2N1c2VkICYmIGNvbG9ycy5icmFuZC5saWdodGVyfTtcbiAgICBjb2xvcjogJHsoeyBmb2N1c2VkIH0pID0+IGZvY3VzZWQgJiYgY29sb3JzLmJyYW5kLnByaW1hcnl9O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgICAke2ZvbnRzLnNpemVzKDE2KX07XG4gICAgZm9udC13ZWlnaHQ6ICR7Zm9udHMud2VpZ2h0Lm5vcm1hbH07XG4gICAgY29sb3I6ICR7KHsgc2VsZWN0ZWQgfSkgPT4gc2VsZWN0ZWQgJiYgY29sb3JzLmJyYW5kLmdyZXl9O1xuICB9XG5gO1xuXG5jb25zdCBTdHlsZWRDaGVjayA9IHN0eWxlZChEb25lKWBcbiAgd2lkdGg6IDI0cHg7XG4gIGhlaWdodDogMjRweDtcbiAgZmlsbDogJHtjb2xvcnMuYnJhbmQudGVydGlhcnl9O1xuYDtcblxuY29uc3QgT3B0aW9uID0gKHsgaW5uZXJQcm9wcywgaW5uZXJSZWYsIGNoaWxkcmVuLCBpc1NlbGVjdGVkLCBpc0ZvY3VzZWQgfTogT3B0aW9uUHJvcHM8VGFnVHlwZSwgdHJ1ZT4pID0+IHtcbiAgcmV0dXJuIChcbiAgICA8U3R5bGVkTWVudU9wdGlvblxuICAgICAgZm9jdXNlZD17aXNGb2N1c2VkfVxuICAgICAgc2VsZWN0ZWQ9e2lzU2VsZWN0ZWR9XG4gICAgICBjc3M9e2J1dHRvblN0eWxlKHsgY29sb3JUaGVtZTogJ2xpZ2h0ZXInLCB2YXJpYW50OiAnZ2hvc3QnLCBzaGFwZTogJ3NoYXJwJyB9KX1cbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uaW5uZXJQcm9wc30+XG4gICAgICB7Y2hpbGRyZW59XG4gICAgICB7aXNTZWxlY3RlZCAmJiA8U3R5bGVkQ2hlY2sgLz59XG4gICAgPC9TdHlsZWRNZW51T3B0aW9uPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgT3B0aW9uO1xuIl19 */"));
|
|
39
|
+
var StyledCheck = /*#__PURE__*/(0, _base["default"])(_editor.Done, process.env.NODE_ENV === "production" ? {
|
|
40
|
+
target: "ec486650"
|
|
41
|
+
} : {
|
|
42
|
+
target: "ec486650",
|
|
43
|
+
label: "StyledCheck"
|
|
44
|
+
})("width:24px;height:24px;fill:", _core.colors.brand.tertiary, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk9wdGlvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0NnQyIsImZpbGUiOiJPcHRpb24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDb3B5cmlnaHQgKGMpIDIwMjItcHJlc2VudCwgTkRMQS5cbiAqXG4gKiBUaGlzIHNvdXJjZSBjb2RlIGlzIGxpY2Vuc2VkIHVuZGVyIHRoZSBHUEx2MyBsaWNlbnNlIGZvdW5kIGluIHRoZVxuICogTElDRU5TRSBmaWxlIGluIHRoZSByb290IGRpcmVjdG9yeSBvZiB0aGlzIHNvdXJjZSB0cmVlLlxuICpcbiAqL1xuXG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgT3B0aW9uUHJvcHMgfSBmcm9tICdyZWFjdC1zZWxlY3QnO1xuaW1wb3J0IHsgYnV0dG9uU3R5bGVWMiBhcyBidXR0b25TdHlsZSB9IGZyb20gJ0BuZGxhL2J1dHRvbic7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBjb2xvcnMsIGZvbnRzIH0gZnJvbSAnQG5kbGEvY29yZSc7XG5pbXBvcnQgeyBEb25lIH0gZnJvbSAnQG5kbGEvaWNvbnMvZWRpdG9yJztcbmltcG9ydCB7IFRhZ1R5cGUgfSBmcm9tICcuL3R5cGVzJztcblxuaW50ZXJmYWNlIFN0eWxlZFByb3BzIHtcbiAgc2VsZWN0ZWQ6IGJvb2xlYW47XG4gIGZvY3VzZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IFN0eWxlZE1lbnVPcHRpb24gPSBzdHlsZWQuZGl2PFN0eWxlZFByb3BzPmBcbiAgJiYge1xuICAgIGJhY2tncm91bmQ6ICR7KHsgZm9jdXNlZCB9KSA9PiBmb2N1c2VkICYmIGNvbG9ycy5icmFuZC5saWdodGVyfTtcbiAgICBjb2xvcjogJHsoeyBmb2N1c2VkIH0pID0+IGZvY3VzZWQgJiYgY29sb3JzLmJyYW5kLnByaW1hcnl9O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgICAke2ZvbnRzLnNpemVzKDE2KX07XG4gICAgZm9udC13ZWlnaHQ6ICR7Zm9udHMud2VpZ2h0Lm5vcm1hbH07XG4gICAgY29sb3I6ICR7KHsgc2VsZWN0ZWQgfSkgPT4gc2VsZWN0ZWQgJiYgY29sb3JzLmJyYW5kLmdyZXl9O1xuICB9XG5gO1xuXG5jb25zdCBTdHlsZWRDaGVjayA9IHN0eWxlZChEb25lKWBcbiAgd2lkdGg6IDI0cHg7XG4gIGhlaWdodDogMjRweDtcbiAgZmlsbDogJHtjb2xvcnMuYnJhbmQudGVydGlhcnl9O1xuYDtcblxuY29uc3QgT3B0aW9uID0gKHsgaW5uZXJQcm9wcywgaW5uZXJSZWYsIGNoaWxkcmVuLCBpc1NlbGVjdGVkLCBpc0ZvY3VzZWQgfTogT3B0aW9uUHJvcHM8VGFnVHlwZSwgdHJ1ZT4pID0+IHtcbiAgcmV0dXJuIChcbiAgICA8U3R5bGVkTWVudU9wdGlvblxuICAgICAgZm9jdXNlZD17aXNGb2N1c2VkfVxuICAgICAgc2VsZWN0ZWQ9e2lzU2VsZWN0ZWR9XG4gICAgICBjc3M9e2J1dHRvblN0eWxlKHsgY29sb3JUaGVtZTogJ2xpZ2h0ZXInLCB2YXJpYW50OiAnZ2hvc3QnLCBzaGFwZTogJ3NoYXJwJyB9KX1cbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uaW5uZXJQcm9wc30+XG4gICAgICB7Y2hpbGRyZW59XG4gICAgICB7aXNTZWxlY3RlZCAmJiA8U3R5bGVkQ2hlY2sgLz59XG4gICAgPC9TdHlsZWRNZW51T3B0aW9uPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgT3B0aW9uO1xuIl19 */"));
|
|
45
|
+
|
|
46
|
+
var Option = function Option(_ref4) {
|
|
47
|
+
var innerProps = _ref4.innerProps,
|
|
48
|
+
innerRef = _ref4.innerRef,
|
|
49
|
+
children = _ref4.children,
|
|
50
|
+
isSelected = _ref4.isSelected,
|
|
51
|
+
isFocused = _ref4.isFocused;
|
|
52
|
+
return (0, _react2.jsx)(StyledMenuOption, _extends({
|
|
53
|
+
focused: isFocused,
|
|
54
|
+
selected: isSelected,
|
|
55
|
+
css: (0, _button.buttonStyleV2)({
|
|
56
|
+
colorTheme: 'lighter',
|
|
57
|
+
variant: 'ghost',
|
|
58
|
+
shape: 'sharp'
|
|
59
|
+
}),
|
|
60
|
+
ref: innerRef
|
|
61
|
+
}, innerProps), children, isSelected && (0, _react2.jsx)(StyledCheck, null));
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
var _default = Option;
|
|
65
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { ContainerProps } from 'react-select';
|
|
9
|
+
import { TagType } from './types';
|
|
10
|
+
declare const SelectContainer: ({ innerProps, selectProps, children }: ContainerProps<TagType, true>) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
11
|
+
export default SelectContainer;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
|
+
|
|
10
|
+
var _core = require("@ndla/core");
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Copyright (c) 2022-present, NDLA.
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
22
|
+
* LICENSE file in the root directory of this source tree.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
var StyledContainer = /*#__PURE__*/(0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
26
|
+
target: "exs06kq0"
|
|
27
|
+
} : {
|
|
28
|
+
target: "exs06kq0",
|
|
29
|
+
label: "StyledContainer"
|
|
30
|
+
})("display:grid;grid-template-rows:auto 1fr;overflow:hidden;border:1px solid ", _core.colors.brand.neutral7, ";border-radius:", _core.misc.borderRadius, ";&:focus-within{border-color:", _core.colors.brand.tertiary, ";}", _core.fonts.sizes(16), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNlbGVjdENvbnRhaW5lci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBY2tDIiwiZmlsZSI6IlNlbGVjdENvbnRhaW5lci50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAyMi1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXG4gKlxuICovXG5cbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGNvbG9ycywgZm9udHMsIG1pc2MgfSBmcm9tICdAbmRsYS9jb3JlJztcbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBDb250YWluZXJQcm9wcyB9IGZyb20gJ3JlYWN0LXNlbGVjdCc7XG5pbXBvcnQgeyBUYWdUeXBlIH0gZnJvbSAnLi90eXBlcyc7XG5cbmNvbnN0IFN0eWxlZENvbnRhaW5lciA9IHN0eWxlZC5kaXZgXG4gIGRpc3BsYXk6IGdyaWQ7XG4gIGdyaWQtdGVtcGxhdGUtcm93czogYXV0byAxZnI7XG4gIG92ZXJmbG93OiBoaWRkZW47XG5cbiAgYm9yZGVyOiAxcHggc29saWQgJHtjb2xvcnMuYnJhbmQubmV1dHJhbDd9O1xuICBib3JkZXItcmFkaXVzOiAke21pc2MuYm9yZGVyUmFkaXVzfTtcbiAgJjpmb2N1cy13aXRoaW4ge1xuICAgIGJvcmRlci1jb2xvcjogJHtjb2xvcnMuYnJhbmQudGVydGlhcnl9O1xuICB9XG4gICR7Zm9udHMuc2l6ZXMoMTYpfTtcbmA7XG5cbmNvbnN0IFNlbGVjdENvbnRhaW5lciA9ICh7IGlubmVyUHJvcHMsIHNlbGVjdFByb3BzLCBjaGlsZHJlbiB9OiBDb250YWluZXJQcm9wczxUYWdUeXBlLCB0cnVlPikgPT4ge1xuICByZXR1cm4gPFN0eWxlZENvbnRhaW5lciB7Li4uaW5uZXJQcm9wc30+e2NoaWxkcmVufTwvU3R5bGVkQ29udGFpbmVyPjtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFNlbGVjdENvbnRhaW5lcjtcbiJdfQ== */"));
|
|
31
|
+
|
|
32
|
+
var SelectContainer = function SelectContainer(_ref) {
|
|
33
|
+
var innerProps = _ref.innerProps,
|
|
34
|
+
selectProps = _ref.selectProps,
|
|
35
|
+
children = _ref.children;
|
|
36
|
+
return (0, _react2.jsx)(StyledContainer, innerProps, children);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
var _default = SelectContainer;
|
|
40
|
+
exports["default"] = _default;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
6
8
|
interface Props {
|
|
7
9
|
label: string;
|
|
8
|
-
tags:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
onCreateTag: (
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
tags: string[];
|
|
11
|
+
selected: string[];
|
|
12
|
+
onChange: (tags: string[]) => void;
|
|
13
|
+
onCreateTag: (name: string) => void;
|
|
14
|
+
className?: string;
|
|
15
|
+
labelHidden?: boolean;
|
|
14
16
|
}
|
|
15
|
-
declare const TagSelector: ({
|
|
17
|
+
declare const TagSelector: ({ selected: _selected, tags: _tags, onChange, onCreateTag, className, label }: Props) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
16
18
|
export default TagSelector;
|