@ndla/ui 30.2.0 → 30.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Article/ArticleHeaderWrapper.js +75 -112
- package/es/Footer/FooterLinks.js +13 -10
- package/es/Frontpage/FrontpageFilm.js +11 -8
- package/es/Frontpage/FrontpageMultidisciplinarySubject.js +13 -10
- package/es/Frontpage/FrontpageToolbox.js +11 -8
- package/es/LearningPaths/LearningPathLastStepNavigation.js +11 -8
- package/es/LearningPaths/LearningPathMenuAside.js +13 -10
- package/es/LearningPaths/LearningPathMobileHeader.js +8 -6
- package/es/LearningPaths/LearningPathMobileStepInfo.js +8 -5
- package/es/Masthead/MastheadSearchModal.js +10 -7
- package/es/Messages/MessageBox.js +11 -12
- package/es/NDLAFilm/CategorySelect.js +106 -146
- package/es/SearchTypeResult/ActiveFilterContent.js +9 -6
- package/es/SearchTypeResult/SearchHeader.js +14 -12
- package/es/SearchTypeResult/SearchNotionsResult.js +5 -6
- package/es/SearchTypeResult/SearchTypeHeader.js +17 -15
- package/es/Subject/SubjectCarousel.js +11 -8
- package/es/ToolboxPage/ToolboxInfo.js +9 -6
- package/es/User/UserInfo.js +23 -2
- package/es/User/parseUserObject.js +22 -12
- package/es/locale/messages-en.js +5 -1
- package/es/locale/messages-nb.js +5 -1
- package/es/locale/messages-nn.js +5 -1
- package/es/locale/messages-se.js +33 -29
- package/es/locale/messages-sma.js +5 -1
- package/es/utils/createUniversalPortal.js +1 -1
- package/lib/Animation/DisplayOnPageYOffset.d.ts +2 -2
- package/lib/Animation/Fade.d.ts +2 -2
- package/lib/Article/Article.d.ts +3 -3
- package/lib/Article/ArticleAccessMessage.d.ts +1 -1
- package/lib/Article/ArticleByline.d.ts +1 -1
- package/lib/Article/ArticleContent.d.ts +1 -1
- package/lib/Article/ArticleFootNotes.d.ts +1 -1
- package/lib/Article/ArticleHeaderWrapper.d.ts +4 -5
- package/lib/Article/ArticleHeaderWrapper.js +73 -108
- package/lib/Article/ArticleNotions.d.ts +1 -1
- package/lib/Article/ArticleSideBar.d.ts +1 -1
- package/lib/Aside/Aside.d.ts +1 -1
- package/lib/AudioPlayer/AudioPlayer.d.ts +1 -1
- package/lib/AudioPlayer/Controls.d.ts +1 -1
- package/lib/AudioPlayer/SpeechControl.d.ts +1 -1
- package/lib/AuthorInfo/AuthorInfo.d.ts +1 -1
- package/lib/BannerCard/BannerCard.d.ts +1 -1
- package/lib/BlogPosts/BlogPost.d.ts +1 -1
- package/lib/BlogPosts/BlogPostWrapper.d.ts +1 -1
- package/lib/Breadcrumb/ActionBreadcrumb.d.ts +1 -1
- package/lib/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/lib/Breadcrumb/HeaderBreadcrumb.d.ts +1 -1
- package/lib/Breadcrumb/HomeBreadcrumb.d.ts +1 -1
- package/lib/Breadcrumblist/Breadcrumblist.d.ts +1 -1
- package/lib/CompetenceGoalTab/CompetenceGoalItem.d.ts +1 -1
- package/lib/CompetenceGoalTab/CompetenceGoalTab.d.ts +1 -1
- package/lib/CompetenceGoalTab/CompetenceItem.d.ts +1 -1
- package/lib/CompetenceGoalTab/SearchButton.d.ts +1 -1
- package/lib/CompetenceGoals/CompetenceGoalsDialog.d.ts +1 -1
- package/lib/ComponentCursor/ComponentCursor.d.ts +1 -1
- package/lib/ContentCard/ContentCard.d.ts +1 -1
- package/lib/ContentLoader/index.d.ts +1 -1
- package/lib/ContentPlaceholder/ContentPlaceholder.d.ts +1 -1
- package/lib/ContentTypeBadge/ContentTypeBadge.d.ts +9 -9
- package/lib/CopyParagraphButton/CopyParagraphButton.d.ts +1 -1
- package/lib/CreatedBy/CreatedBy.d.ts +1 -1
- package/lib/Dialog/Dialog.d.ts +1 -1
- package/lib/ErrorMessage/ErrorMessage.d.ts +1 -1
- package/lib/ErrorMessage/ErrorResourceAccessDenied.d.ts +1 -1
- package/lib/FactBox/FactBox.d.ts +1 -1
- package/lib/Figure/Figure.d.ts +2 -2
- package/lib/Figure/FigureBylineExpandButton.d.ts +1 -1
- package/lib/Figure/FigureExpandButton.d.ts +1 -1
- package/lib/Figure/FigureLicense.d.ts +2 -2
- package/lib/Figure/FigureLicenseDialog.d.ts +1 -1
- package/lib/Figure/FigureOpenDialogButton.d.ts +1 -1
- package/lib/FileList/File.d.ts +1 -1
- package/lib/FileList/FileList.d.ts +1 -1
- package/lib/Filter/FilterButtons.d.ts +1 -1
- package/lib/Filter/FilterCarousel.d.ts +1 -1
- package/lib/Filter/FilterList.d.ts +1 -1
- package/lib/Filter/FilterListPhone.d.ts +1 -1
- package/lib/Filter/ToggleItem.d.ts +1 -1
- package/lib/Footer/EditorName.d.ts +1 -1
- package/lib/Footer/Footer.d.ts +1 -1
- package/lib/Footer/FooterAuth.d.ts +1 -1
- package/lib/Footer/FooterLinks.d.ts +3 -4
- package/lib/Footer/FooterLinks.js +12 -10
- package/lib/Footer/FooterPrivacy.d.ts +1 -1
- package/lib/Footer/FooterText.d.ts +1 -1
- package/lib/Footer/privacy_en.d.ts +1 -1
- package/lib/Footer/privacy_nb.d.ts +1 -1
- package/lib/Footer/privacy_nn.d.ts +1 -1
- package/lib/Frontpage/FrontpageAllSubjects.d.ts +1 -1
- package/lib/Frontpage/FrontpageFilm.d.ts +2 -4
- package/lib/Frontpage/FrontpageFilm.js +10 -8
- package/lib/Frontpage/FrontpageHeader.d.ts +1 -1
- package/lib/Frontpage/FrontpageInfo.d.ts +1 -1
- package/lib/Frontpage/FrontpageMultidisciplinarySubject.d.ts +7 -8
- package/lib/Frontpage/FrontpageMultidisciplinarySubject.js +12 -10
- package/lib/Frontpage/FrontpageProgramMenu.d.ts +1 -1
- package/lib/Frontpage/FrontpageSearch.d.ts +1 -1
- package/lib/Frontpage/FrontpageToolbox.d.ts +2 -4
- package/lib/Frontpage/FrontpageToolbox.js +10 -8
- package/lib/Frontpage/illustrations/Fellesfag.d.ts +1 -1
- package/lib/Frontpage/illustrations/FrontpageHeaderIllustration.d.ts +1 -1
- package/lib/Frontpage/illustrations/FrontpageIllustrations.d.ts +2 -2
- package/lib/Frontpage/illustrations/FrontpageSubjectIllustration.d.ts +1 -1
- package/lib/Frontpage/illustrations/MenuFellesfag.d.ts +1 -1
- package/lib/Frontpage/illustrations/MenuStudiespesialiserende.d.ts +1 -1
- package/lib/Frontpage/illustrations/MenuYrkesfag.d.ts +1 -1
- package/lib/Frontpage/illustrations/Studiespesialiserende.d.ts +1 -1
- package/lib/Frontpage/illustrations/Yrkesfag.d.ts +1 -1
- package/lib/Frontpage/illustrations/index.d.ts +6 -6
- package/lib/Hero/Hero.d.ts +8 -8
- package/lib/Image/Image.d.ts +2 -2
- package/lib/Image/ImageLink.d.ts +1 -1
- package/lib/Image/LazyLoadImage.d.ts +1 -1
- package/lib/InfoBlock/InfoBlock.d.ts +1 -1
- package/lib/InfoBox/InfoBox.d.ts +1 -1
- package/lib/InfoWidget/InfoWidget.d.ts +1 -1
- package/lib/LanguageSelector/LanguageSelector.d.ts +1 -1
- package/lib/LanguageSelector/LanguageSelectorContent.d.ts +1 -1
- package/lib/Layout/Content.d.ts +2 -2
- package/lib/Layout/LayoutItem.d.ts +1 -1
- package/lib/Layout/OneColumn.d.ts +1 -1
- package/lib/Layout/PageContainer.d.ts +1 -1
- package/lib/LearningPaths/LearningPathContent.d.ts +1 -1
- package/lib/LearningPaths/LearningPathInformation.d.ts +1 -1
- package/lib/LearningPaths/LearningPathLastStepNavigation.d.ts +3 -4
- package/lib/LearningPaths/LearningPathLastStepNavigation.js +10 -8
- package/lib/LearningPaths/LearningPathMenu.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMenuAside.d.ts +2 -4
- package/lib/LearningPaths/LearningPathMenuAside.js +12 -10
- package/lib/LearningPaths/LearningPathMenuAsideCopyright.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMenuContent.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMenuIntro.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMenuModalWrapper.d.ts +1 -1
- package/lib/LearningPaths/LearningPathMobileHeader.d.ts +2 -4
- package/lib/LearningPaths/LearningPathMobileHeader.js +7 -6
- package/lib/LearningPaths/LearningPathMobileStepInfo.d.ts +2 -4
- package/lib/LearningPaths/LearningPathMobileStepInfo.js +7 -5
- package/lib/LearningPaths/LearningPathSticky.d.ts +3 -3
- package/lib/LearningPaths/LearningPathWrapper.d.ts +1 -1
- package/lib/Logo/Logo.d.ts +1 -1
- package/lib/Logo/SvgLogo.d.ts +1 -1
- package/lib/Masthead/Masthead.d.ts +2 -2
- package/lib/Masthead/MastheadAuthModal.d.ts +1 -1
- package/lib/Masthead/MastheadSearchModal.d.ts +3 -4
- package/lib/Masthead/MastheadSearchModal.js +9 -7
- package/lib/Masthead/SkipToMainContent.d.ts +1 -1
- package/lib/MediaList/MediaList.d.ts +8 -8
- package/lib/Messages/MessageBanner.d.ts +1 -1
- package/lib/Messages/MessageBox.d.ts +2 -5
- package/lib/Messages/MessageBox.js +10 -14
- package/lib/Messages/MessageBoxTag.d.ts +1 -1
- package/lib/MultidisciplinarySubject/Illustrations.d.ts +7 -7
- package/lib/MultidisciplinarySubject/List.d.ts +1 -1
- package/lib/MultidisciplinarySubject/ListItem.d.ts +1 -1
- package/lib/MultidisciplinarySubject/MultidisciplinarySubject.d.ts +1 -1
- package/lib/MultidisciplinarySubject/MultidisciplinarySubjectHeader.d.ts +1 -1
- package/lib/MyNdla/Resource/Folder.d.ts +1 -1
- package/lib/MyNdla/Resource/FolderInput.d.ts +1 -1
- package/lib/NDLAFilm/AboutNdlaFilm.d.ts +1 -1
- package/lib/NDLAFilm/AllMoviesAlphabetically.d.ts +1 -1
- package/lib/NDLAFilm/CategorySelect.d.ts +10 -5
- package/lib/NDLAFilm/CategorySelect.js +99 -145
- package/lib/NDLAFilm/FilmContentCard.d.ts +1 -1
- package/lib/NDLAFilm/FilmContentCardTags.d.ts +1 -1
- package/lib/NDLAFilm/FilmMovieList.d.ts +1 -1
- package/lib/NDLAFilm/FilmMovieSearch.d.ts +1 -1
- package/lib/NDLAFilm/FilmSlideshow.d.ts +1 -1
- package/lib/NDLAFilm/MovieGrid.d.ts +1 -1
- package/lib/NDLAFilm/NavigationArrow.d.ts +2 -2
- package/lib/NDLAFilm/SlideshowIndicator.d.ts +1 -1
- package/lib/NDLAFilm/VisualElement.d.ts +1 -1
- package/lib/NDLAFilm/filmStyles.d.ts +2 -2
- package/lib/Navigation/NavigationBox.d.ts +1 -1
- package/lib/Navigation/NavigationHeading.d.ts +1 -1
- package/lib/Navigation/NavigationTopicAbout.d.ts +1 -1
- package/lib/NoContentBox/NoContentBox.d.ts +1 -1
- package/lib/Notion/ConceptNotion.d.ts +1 -1
- package/lib/Notion/FigureNotion.d.ts +1 -1
- package/lib/Notion/Notion.d.ts +1 -1
- package/lib/Notion/NotionImage.d.ts +1 -1
- package/lib/Notion/NotionVisualElement.d.ts +1 -1
- package/lib/Portrait/Portrait.d.ts +1 -1
- package/lib/Programme/Programme.d.ts +1 -1
- package/lib/Programme/ProgrammeSubjects.d.ts +1 -1
- package/lib/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
- package/lib/RelatedArticleList/RelatedArticleList.d.ts +2 -2
- package/lib/Resource/BlockResource.d.ts +1 -1
- package/lib/Resource/ListResource.d.ts +1 -1
- package/lib/Resource/resourceComponents.d.ts +7 -7
- package/lib/ResourceBox/ResourceBox.d.ts +1 -1
- package/lib/ResourceGroup/ResourceGroup.d.ts +1 -1
- package/lib/ResourceGroup/ResourceItem.d.ts +1 -1
- package/lib/ResourceGroup/ResourceList.d.ts +1 -1
- package/lib/ResourcesWrapper/ResourcesTitle.d.ts +1 -1
- package/lib/ResourcesWrapper/ResourcesTopicTitle.d.ts +1 -1
- package/lib/ResourcesWrapper/ResourcesWrapper.d.ts +1 -1
- package/lib/Search/ActiveFilterContent.d.ts +2 -2
- package/lib/Search/ActiveFilters.d.ts +1 -1
- package/lib/Search/ContentTypeResult.d.ts +1 -1
- package/lib/Search/ContentTypeResultStyles.d.ts +6 -6
- package/lib/Search/LoadingWrapper.d.ts +1 -1
- package/lib/Search/SearchField.d.ts +1 -1
- package/lib/Search/SearchFieldForm.d.ts +1 -1
- package/lib/Search/SearchResult.d.ts +2 -2
- package/lib/Search/SearchResultSleeve.d.ts +1 -1
- package/lib/Search/ToggleSearchButton.d.ts +1 -1
- package/lib/SearchTypeResult/ActiveFilterContent.d.ts +3 -4
- package/lib/SearchTypeResult/ActiveFilterContent.js +8 -6
- package/lib/SearchTypeResult/ActiveFilters.d.ts +1 -1
- package/lib/SearchTypeResult/PopupFilter.d.ts +1 -1
- package/lib/SearchTypeResult/ResultNavigation.d.ts +1 -1
- package/lib/SearchTypeResult/SearchFieldHeader.d.ts +1 -1
- package/lib/SearchTypeResult/SearchFilterContent.d.ts +1 -1
- package/lib/SearchTypeResult/SearchHeader.d.ts +3 -4
- package/lib/SearchTypeResult/SearchHeader.js +13 -12
- package/lib/SearchTypeResult/SearchItem.d.ts +1 -1
- package/lib/SearchTypeResult/SearchItemList.d.ts +1 -1
- package/lib/SearchTypeResult/SearchItems.d.ts +1 -1
- package/lib/SearchTypeResult/SearchNotionItem.d.ts +1 -1
- package/lib/SearchTypeResult/SearchNotionsResult.d.ts +3 -4
- package/lib/SearchTypeResult/SearchNotionsResult.js +5 -6
- package/lib/SearchTypeResult/SearchSubjectItem.d.ts +1 -1
- package/lib/SearchTypeResult/SearchSubjectResult.d.ts +1 -1
- package/lib/SearchTypeResult/SearchTypeHeader.d.ts +1 -2
- package/lib/SearchTypeResult/SearchTypeHeader.js +15 -12
- package/lib/SearchTypeResult/SearchTypeResult.d.ts +1 -1
- package/lib/SearchTypeResult/SearchViewType.d.ts +1 -1
- package/lib/SearchTypeResult/components/ItemContexts.d.ts +1 -1
- package/lib/SearchTypeResult/components/ItemResourceHeader.d.ts +1 -1
- package/lib/SearchTypeResult/components/ItemTopicHeader.d.ts +1 -1
- package/lib/SearchTypeResult/components/SubjectFilters.d.ts +1 -1
- package/lib/SectionHeading/SectionHeading.d.ts +1 -1
- package/lib/SnackBar/DefaultSnackbar.d.ts +1 -1
- package/lib/SnackBar/SnackbarProvider.d.ts +2 -2
- package/lib/Subject/Subject.d.ts +8 -8
- package/lib/Subject/SubjectAbout.d.ts +1 -1
- package/lib/Subject/SubjectArchive.d.ts +1 -1
- package/lib/Subject/SubjectBanner.d.ts +1 -1
- package/lib/Subject/SubjectCarousel.d.ts +2 -4
- package/lib/Subject/SubjectCarousel.js +10 -8
- package/lib/Subject/SubjectHeader.d.ts +1 -1
- package/lib/Subject/SubjectLinks.d.ts +1 -1
- package/lib/Subject/SubjectNewContent.d.ts +1 -1
- package/lib/Subject/SubjectShortcuts.d.ts +1 -1
- package/lib/Subject/SubjectSocial.d.ts +2 -2
- package/lib/Table/Table.d.ts +1 -1
- package/lib/TagSelector/Control.d.ts +1 -1
- package/lib/TagSelector/DropdownIndicator.d.ts +1 -1
- package/lib/TagSelector/Input.d.ts +1 -1
- package/lib/TagSelector/Menu.d.ts +1 -1
- package/lib/TagSelector/MenuList.d.ts +2 -2
- package/lib/TagSelector/Option.d.ts +1 -1
- package/lib/TagSelector/SelectContainer.d.ts +1 -1
- package/lib/TagSelector/TagSelector.d.ts +1 -1
- package/lib/TagSelector/ValueButton.d.ts +2 -2
- package/lib/ToolboxPage/ToolboxInfo.d.ts +3 -4
- package/lib/ToolboxPage/ToolboxInfo.js +8 -6
- package/lib/Topic/Loader.d.ts +1 -1
- package/lib/Topic/Topic.d.ts +1 -1
- package/lib/TopicIntroductionList/TopicIntroduction.d.ts +1 -1
- package/lib/TopicIntroductionList/TopicIntroductionList.d.ts +1 -1
- package/lib/TopicIntroductionList/TopicIntroductionShortcuts.d.ts +1 -1
- package/lib/TopicIntroductionList/TopicShortcutItem.d.ts +1 -1
- package/lib/Translation/Translation.d.ts +1 -1
- package/lib/Translation/TranslationBox.d.ts +1 -1
- package/lib/Translation/TranslationLine.d.ts +1 -1
- package/lib/TreeStructure/AddFolderButton.d.ts +1 -1
- package/lib/TreeStructure/FolderItem.d.ts +1 -1
- package/lib/TreeStructure/FolderItems.d.ts +1 -1
- package/lib/TreeStructure/NavigationLink.d.ts +1 -1
- package/lib/TreeStructure/TreeStructure.d.ts +1 -1
- package/lib/TreeStructure/helperFunctions.d.ts +1 -1
- package/lib/User/AuthModal.d.ts +1 -1
- package/lib/User/UserInfo.d.ts +1 -1
- package/lib/User/UserInfo.js +23 -2
- package/lib/User/apiTypes.d.ts +10 -2
- package/lib/User/parseUserObject.d.ts +2 -1
- package/lib/User/parseUserObject.js +22 -12
- package/lib/locale/LocaleProvider.d.ts +1 -1
- package/lib/locale/messages-en.d.ts +4 -0
- package/lib/locale/messages-en.js +5 -1
- package/lib/locale/messages-nb.d.ts +4 -0
- package/lib/locale/messages-nb.js +5 -1
- package/lib/locale/messages-nn.d.ts +4 -0
- package/lib/locale/messages-nn.js +5 -1
- package/lib/locale/messages-se.d.ts +4 -0
- package/lib/locale/messages-se.js +33 -29
- package/lib/locale/messages-sma.d.ts +4 -0
- package/lib/locale/messages-sma.js +5 -1
- package/lib/utils/createUniversalPortal.d.ts +1 -1
- package/lib/utils/createUniversalPortal.js +1 -1
- package/package.json +10 -10
- package/src/Article/ArticleHeaderWrapper.tsx +53 -66
- package/src/Footer/FooterLinks.tsx +43 -40
- package/src/Frontpage/FrontpageFilm.tsx +20 -17
- package/src/Frontpage/FrontpageMultidisciplinarySubject.tsx +33 -30
- package/src/Frontpage/FrontpageToolbox.tsx +21 -18
- package/src/LearningPaths/LearningPathLastStepNavigation.tsx +32 -29
- package/src/LearningPaths/LearningPathMenuAside.tsx +25 -29
- package/src/LearningPaths/LearningPathMobileHeader.tsx +11 -8
- package/src/LearningPaths/LearningPathMobileStepInfo.tsx +13 -10
- package/src/Masthead/MastheadSearchModal.tsx +36 -35
- package/src/Messages/MessageBox.tsx +2 -3
- package/src/NDLAFilm/CategorySelect.tsx +77 -97
- package/src/SearchTypeResult/ActiveFilterContent.tsx +18 -15
- package/src/SearchTypeResult/SearchHeader.tsx +4 -4
- package/src/SearchTypeResult/SearchNotionsResult.tsx +2 -3
- package/src/SearchTypeResult/SearchTypeHeader.tsx +48 -45
- package/src/Subject/SubjectCarousel.tsx +93 -96
- package/src/ToolboxPage/ToolboxInfo.tsx +19 -16
- package/src/User/UserInfo.tsx +22 -0
- package/src/User/__tests__/parseUserObject-test.ts +1 -0
- package/src/User/apiTypes.ts +11 -2
- package/src/User/parseUserObject.ts +17 -11
- package/src/locale/messages-en.ts +4 -0
- package/src/locale/messages-nb.ts +4 -0
- package/src/locale/messages-nn.ts +4 -0
- package/src/locale/messages-se.ts +32 -28
- package/src/locale/messages-sma.ts +4 -0
- package/src/utils/createUniversalPortal.tsx +1 -6
|
@@ -5,5 +5,5 @@ declare type Props = GradesProps & {
|
|
|
5
5
|
messageBoxText?: string;
|
|
6
6
|
headingId?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const Programme: ({ heading, image, grades, selectedGrade, onChangeGrade, messageBoxText, headingId, }: Props) => import("@emotion/react/
|
|
8
|
+
export declare const Programme: ({ heading, image, grades, selectedGrade, onChangeGrade, messageBoxText, headingId, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
9
|
export default Programme;
|
|
@@ -23,5 +23,5 @@ export declare type GradesProps = {
|
|
|
23
23
|
declare type Props = GradesProps & {
|
|
24
24
|
onNavigate?: () => void;
|
|
25
25
|
};
|
|
26
|
-
declare const ProgrammeSubjects: ({ grades, onNavigate, onChangeGrade, selectedGrade }: Props) => import("@emotion/react/
|
|
26
|
+
declare const ProgrammeSubjects: ({ grades, onNavigate, onChangeGrade, selectedGrade }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
27
27
|
export default ProgrammeSubjects;
|
|
@@ -24,6 +24,6 @@ declare class RadioButtonGroup extends Component<Props, State> {
|
|
|
24
24
|
private readonly uuid?;
|
|
25
25
|
constructor(props: Props);
|
|
26
26
|
handleOnChange(e: ChangeEvent<HTMLInputElement>): void;
|
|
27
|
-
render(): import("@emotion/react/
|
|
27
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
28
|
}
|
|
29
29
|
export default RadioButtonGroup;
|
|
@@ -8,7 +8,7 @@ interface RelatedArticleProps {
|
|
|
8
8
|
linkInfo?: string;
|
|
9
9
|
target?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const RelatedArticle: ({ title, introduction, icon, modifier, to, linkInfo, target, }: RelatedArticleProps) => import("@emotion/react/
|
|
11
|
+
export declare const RelatedArticle: ({ title, introduction, icon, modifier, to, linkInfo, target, }: RelatedArticleProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
12
|
interface Props {
|
|
13
13
|
messages: {
|
|
14
14
|
title: string;
|
|
@@ -21,5 +21,5 @@ interface Props {
|
|
|
21
21
|
};
|
|
22
22
|
articleCount?: number;
|
|
23
23
|
}
|
|
24
|
-
declare const RelatedArticleList: ({ messages, children, articleCount, dangerouslySetInnerHTML }: Props) => import("@emotion/react/
|
|
24
|
+
declare const RelatedArticleList: ({ messages, children, articleCount, dangerouslySetInnerHTML }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
25
25
|
export default RelatedArticleList;
|
|
@@ -24,5 +24,5 @@ interface Props {
|
|
|
24
24
|
name: string;
|
|
25
25
|
}[];
|
|
26
26
|
}
|
|
27
|
-
declare const BlockResource: ({ id, link, tagLinkPrefix, title, tags, resourceImage, description, menuItems, isLoading, headingLevel, targetBlank, resourceTypes, }: Props) => import("@emotion/react/
|
|
27
|
+
declare const BlockResource: ({ id, link, tagLinkPrefix, title, tags, resourceImage, description, menuItems, isLoading, headingLevel, targetBlank, resourceTypes, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
28
|
export default BlockResource;
|
|
@@ -24,5 +24,5 @@ export interface ListResourceProps {
|
|
|
24
24
|
isLoading?: boolean;
|
|
25
25
|
targetBlank?: boolean;
|
|
26
26
|
}
|
|
27
|
-
declare const ListResource: ({ id, link, tagLinkPrefix, title, tags, resourceImage, resourceTypes, headingLevel, description, menuItems, isLoading, targetBlank, }: ListResourceProps) => import("@emotion/react/
|
|
27
|
+
declare const ListResource: ({ id, link, tagLinkPrefix, title, tags, resourceImage, resourceTypes, headingLevel, description, menuItems, isLoading, targetBlank, }: ListResourceProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
28
|
export default ListResource;
|
|
@@ -10,23 +10,23 @@ export interface ResourceImageProps {
|
|
|
10
10
|
alt: string;
|
|
11
11
|
src: string;
|
|
12
12
|
}
|
|
13
|
-
export declare const ResourceTitleLink: import("@emotion/styled").StyledComponent<Pick<import("@ndla/safelink").SafeLinkProps, "replace" | "media" | "
|
|
13
|
+
export declare const ResourceTitleLink: import("@emotion/styled").StyledComponent<Pick<import("@ndla/safelink").SafeLinkProps, "replace" | "type" | "id" | "media" | "state" | "color" | "translate" | "hidden" | "slot" | "style" | "title" | "dir" | "target" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "download" | "hrefLang" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "to" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "rel" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ping" | "referrerPolicy" | "reloadDocument" | "showNewWindowIcon" | "asAnchor"> & React.RefAttributes<HTMLAnchorElement> & {
|
|
14
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
15
|
}, {}, {}>;
|
|
16
16
|
export declare const ResourceTitle: import("@emotion/styled").StyledComponent<{
|
|
17
17
|
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
-
as?:
|
|
18
|
+
as?: React.ElementType<any> | undefined;
|
|
19
19
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
|
|
20
20
|
export declare const Row: import("@emotion/styled").StyledComponent<{
|
|
21
21
|
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
-
as?:
|
|
22
|
+
as?: React.ElementType<any> | undefined;
|
|
23
23
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
24
24
|
export interface ContentIconProps {
|
|
25
25
|
contentType: string;
|
|
26
26
|
}
|
|
27
27
|
export declare const StyledContentIconWrapper: import("@emotion/styled").StyledComponent<{
|
|
28
28
|
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
-
as?:
|
|
29
|
+
as?: React.ElementType<any> | undefined;
|
|
30
30
|
} & ContentIconProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
31
31
|
interface TagListProps {
|
|
32
32
|
tags?: string[];
|
|
@@ -36,17 +36,17 @@ export interface LoaderProps {
|
|
|
36
36
|
loading?: boolean;
|
|
37
37
|
children?: ReactNode;
|
|
38
38
|
}
|
|
39
|
-
export declare const TagList: ({ tags, tagLinkPrefix }: TagListProps) => import("@emotion/react/
|
|
39
|
+
export declare const TagList: ({ tags, tagLinkPrefix }: TagListProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
40
40
|
interface CompressedTagListProps {
|
|
41
41
|
tags: string[];
|
|
42
42
|
tagLinkPrefix?: string;
|
|
43
43
|
}
|
|
44
|
-
export declare const CompressedTagList: ({ tags, tagLinkPrefix }: CompressedTagListProps) => import("@emotion/react/
|
|
44
|
+
export declare const CompressedTagList: ({ tags, tagLinkPrefix }: CompressedTagListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
45
45
|
interface ResourceTypeListProps {
|
|
46
46
|
resourceTypes?: {
|
|
47
47
|
id: string;
|
|
48
48
|
name: string;
|
|
49
49
|
}[];
|
|
50
50
|
}
|
|
51
|
-
export declare const ResourceTypeList: ({ resourceTypes }: ResourceTypeListProps) => import("@emotion/react/
|
|
51
|
+
export declare const ResourceTypeList: ({ resourceTypes }: ResourceTypeListProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
52
52
|
export {};
|
|
@@ -8,5 +8,5 @@ interface Props {
|
|
|
8
8
|
caption: string;
|
|
9
9
|
url: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const ResourceBox: ({ image, title, caption, url }: Props) => import("@emotion/react/
|
|
11
|
+
export declare const ResourceBox: ({ image, title, caption, url }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
12
|
export default ResourceBox;
|
|
@@ -12,5 +12,5 @@ declare type Props = {
|
|
|
12
12
|
toggleAdditionalResources: () => void;
|
|
13
13
|
heartButton?: (path: string) => ReactNode;
|
|
14
14
|
};
|
|
15
|
-
declare const ResourceGroup: ({ title, resources, showAdditionalResources, toggleAdditionalResources, contentType, invertedStyle, heartButton, }: Props & ResourceListProps) => import("@emotion/react/
|
|
15
|
+
declare const ResourceGroup: ({ title, resources, showAdditionalResources, toggleAdditionalResources, contentType, invertedStyle, heartButton, }: Props & ResourceListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
16
|
export default ResourceGroup;
|
|
@@ -17,5 +17,5 @@ declare type Props = {
|
|
|
17
17
|
access?: 'teacher';
|
|
18
18
|
heartButton?: (path: string) => ReactNode;
|
|
19
19
|
};
|
|
20
|
-
declare const ResourceItem: ({ id, contentTypeName, contentTypeDescription, name, path, contentType, active, additional, extraBottomMargin, showAdditionalResources, access, heartButton, }: Props & Resource) => import("@emotion/react/
|
|
20
|
+
declare const ResourceItem: ({ id, contentTypeName, contentTypeDescription, name, path, contentType, active, additional, extraBottomMargin, showAdditionalResources, access, heartButton, }: Props & Resource) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
21
21
|
export default ResourceItem;
|
|
@@ -15,5 +15,5 @@ export declare type ResourceListProps = {
|
|
|
15
15
|
showAdditionalResources?: boolean;
|
|
16
16
|
heartButton?: (path: string) => ReactNode;
|
|
17
17
|
};
|
|
18
|
-
declare const ResourceList: ({ resources, onClick, contentType, title, showAdditionalResources, heartButton, }: ResourceListProps) => import("@emotion/react/
|
|
18
|
+
declare const ResourceList: ({ resources, onClick, contentType, title, showAdditionalResources, heartButton, }: ResourceListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
19
|
export default ResourceList;
|
|
@@ -9,5 +9,5 @@ import { ReactNode } from 'react';
|
|
|
9
9
|
interface Props {
|
|
10
10
|
children: ReactNode;
|
|
11
11
|
}
|
|
12
|
-
declare const ResourceTitle: ({ children }: Props) => import("@emotion/react/
|
|
12
|
+
declare const ResourceTitle: ({ children }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default ResourceTitle;
|
|
@@ -9,5 +9,5 @@ interface Props {
|
|
|
9
9
|
additionalFilterLabel: string;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
declare const ResourcesTopicTitle: ({ title, hasAdditionalResources, toggleAdditionalResources, showAdditionalResources, messages, invertedStyle, }: Props) => import("@emotion/react/
|
|
12
|
+
declare const ResourcesTopicTitle: ({ title, hasAdditionalResources, toggleAdditionalResources, showAdditionalResources, messages, invertedStyle, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default ResourcesTopicTitle;
|
|
@@ -14,5 +14,5 @@ interface Props {
|
|
|
14
14
|
subjectPage?: boolean;
|
|
15
15
|
id?: string;
|
|
16
16
|
}
|
|
17
|
-
declare const ResourcesWrapper: ({ children, header, subjectPage, id }: Props) => import("@emotion/react/
|
|
17
|
+
declare const ResourcesWrapper: ({ children, header, subjectPage, id }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
18
18
|
export default ResourcesWrapper;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const StyledActiveFilterTitle: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?:
|
|
4
|
+
as?: React.ElementType<any> | undefined;
|
|
5
5
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
6
6
|
interface Props {
|
|
7
7
|
filter: {
|
|
@@ -12,5 +12,5 @@ interface Props {
|
|
|
12
12
|
onFilterRemove: (value: string, filterName?: string) => void;
|
|
13
13
|
ariaLabel: string;
|
|
14
14
|
}
|
|
15
|
-
declare const ActiveFilterContent: ({ filter, onFilterRemove, ariaLabel }: Props) => import("@emotion/react/
|
|
15
|
+
declare const ActiveFilterContent: ({ filter, onFilterRemove, ariaLabel }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
16
|
export default ActiveFilterContent;
|
|
@@ -8,5 +8,5 @@ interface Props {
|
|
|
8
8
|
onFilterRemove: (value: string, filterName?: string) => void;
|
|
9
9
|
showOnSmallScreen?: boolean;
|
|
10
10
|
}
|
|
11
|
-
declare const ActiveFilters: ({ filters, onFilterRemove, showOnSmallScreen }: Props) => import("@emotion/react/
|
|
11
|
+
declare const ActiveFilters: ({ filters, onFilterRemove, showOnSmallScreen }: Props) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
12
12
|
export default ActiveFilters;
|
|
@@ -18,5 +18,5 @@ declare type Props = {
|
|
|
18
18
|
animateList?: number;
|
|
19
19
|
unGrouped?: boolean;
|
|
20
20
|
};
|
|
21
|
-
declare const ContentTypeResult: ({ contentTypeResult, onNavigate, defaultCount, resourceToLinkProps, showAdditionalResources, messages, ignoreContentTypeBadge, keyboardPathNavigation, inMenu, animateList, unGrouped, }: Props) => import("@emotion/react/
|
|
21
|
+
declare const ContentTypeResult: ({ contentTypeResult, onNavigate, defaultCount, resourceToLinkProps, showAdditionalResources, messages, ignoreContentTypeBadge, keyboardPathNavigation, inMenu, animateList, unGrouped, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
22
22
|
export default ContentTypeResult;
|
|
@@ -8,31 +8,31 @@ declare type inMenuProps = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare const StyledNoHit: import("@emotion/styled").StyledComponent<{
|
|
10
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
-
as?:
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
12
|
} & inMenuProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
13
13
|
export declare const showAllButtonStyle: import("@emotion/utils").SerializedStyles;
|
|
14
14
|
export declare const tooltipStyle: import("@emotion/utils").SerializedStyles;
|
|
15
15
|
export declare const StyledWrapper: import("@emotion/styled").StyledComponent<{
|
|
16
16
|
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
-
as?:
|
|
17
|
+
as?: import("react").ElementType<any> | undefined;
|
|
18
18
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
19
19
|
export declare const StyledHeader: import("@emotion/styled").StyledComponent<{
|
|
20
20
|
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
-
as?:
|
|
21
|
+
as?: import("react").ElementType<any> | undefined;
|
|
22
22
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
23
23
|
declare type StyledListItemProps = {
|
|
24
24
|
delayAnimation?: boolean;
|
|
25
25
|
};
|
|
26
26
|
export declare const StyledListItem: import("@emotion/styled").StyledComponent<{
|
|
27
27
|
theme?: import("@emotion/react").Theme | undefined;
|
|
28
|
-
as?:
|
|
28
|
+
as?: import("react").ElementType<any> | undefined;
|
|
29
29
|
} & StyledListItemProps, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
30
30
|
export declare const StyledList: import("@emotion/styled").StyledComponent<{
|
|
31
31
|
theme?: import("@emotion/react").Theme | undefined;
|
|
32
|
-
as?:
|
|
32
|
+
as?: import("react").ElementType<any> | undefined;
|
|
33
33
|
} & inMenuProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
34
34
|
export declare const StyledTag: import("@emotion/styled").StyledComponent<{
|
|
35
35
|
theme?: import("@emotion/react").Theme | undefined;
|
|
36
|
-
as?:
|
|
36
|
+
as?: import("react").ElementType<any> | undefined;
|
|
37
37
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
38
38
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare type Props = {
|
|
2
2
|
value: string;
|
|
3
3
|
};
|
|
4
|
-
declare const LoadingWrapper: ({ value }: Props) => import("@emotion/react/
|
|
4
|
+
declare const LoadingWrapper: ({ value }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default LoadingWrapper;
|
|
@@ -15,5 +15,5 @@ interface Props {
|
|
|
15
15
|
inputRef?: RefObject<HTMLInputElement>;
|
|
16
16
|
frontPageSearch?: boolean;
|
|
17
17
|
}
|
|
18
|
-
declare const SearchField: ({ placeholder, value, onChange, filters, onClick, onFocus, onBlur, loading, onFilterRemove, inputRef, frontPageSearch, }: Props) => import("@emotion/react/
|
|
18
|
+
declare const SearchField: ({ placeholder, value, onChange, filters, onClick, onFocus, onBlur, loading, onFilterRemove, inputRef, frontPageSearch, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
19
|
export default SearchField;
|
|
@@ -4,5 +4,5 @@ interface Props {
|
|
|
4
4
|
inputHasFocus?: boolean;
|
|
5
5
|
onSubmit?: (event: FormEvent) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const SearchFieldForm: ({ children, inputHasFocus, onSubmit }: Props) => import("@emotion/react/
|
|
7
|
+
export declare const SearchFieldForm: ({ children, inputHasFocus, onSubmit }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -27,10 +27,10 @@ interface SearchResultItemProps {
|
|
|
27
27
|
additionalContentTooltip: string;
|
|
28
28
|
item: ItemType;
|
|
29
29
|
}
|
|
30
|
-
export declare const SearchResultItem: ({ item, subjectsLabel, additionalContentTooltip, children, }: SearchResultItemProps) => import("@emotion/react/
|
|
30
|
+
export declare const SearchResultItem: ({ item, subjectsLabel, additionalContentTooltip, children, }: SearchResultItemProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
31
31
|
interface SearchResultListProps {
|
|
32
32
|
loading?: boolean;
|
|
33
33
|
results?: ItemType[];
|
|
34
34
|
}
|
|
35
|
-
export declare const SearchResultList: ({ results, loading }: SearchResultListProps) => import("@emotion/react/
|
|
35
|
+
export declare const SearchResultList: ({ results, loading }: SearchResultListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
36
36
|
export {};
|
|
@@ -14,5 +14,5 @@ declare type Props = {
|
|
|
14
14
|
suggestion?: string;
|
|
15
15
|
suggestionUrl?: string;
|
|
16
16
|
};
|
|
17
|
-
declare const SearchResultSleeve: ({ result, allResultUrl, resourceToLinkProps, onNavigate, infoText, ignoreContentTypeBadge, searchString, loading, frontpage, suggestion, suggestionUrl, }: Props) => import("@emotion/react/
|
|
17
|
+
declare const SearchResultSleeve: ({ result, allResultUrl, resourceToLinkProps, onNavigate, infoText, ignoreContentTypeBadge, searchString, loading, frontpage, suggestion, suggestionUrl, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
18
18
|
export default SearchResultSleeve;
|
|
@@ -11,5 +11,5 @@ interface Props extends ButtonProps {
|
|
|
11
11
|
hideOnWideScreen?: boolean;
|
|
12
12
|
ndlaFilm?: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare const ToggleSearchButton: ({ children, ndlaFilm, hideOnNarrowScreen, hideOnWideScreen, ...rest }: Props) => import("@emotion/react/
|
|
14
|
+
declare const ToggleSearchButton: ({ children, ndlaFilm, hideOnNarrowScreen, hideOnWideScreen, ...rest }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
15
|
export default ToggleSearchButton;
|
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import { WithTranslation } from 'react-i18next';
|
|
10
9
|
export declare const StyledActiveFilterTitle: import("@emotion/styled").StyledComponent<{
|
|
11
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
as?:
|
|
11
|
+
as?: React.ElementType<any> | undefined;
|
|
13
12
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
14
13
|
export declare type FilterProps = {
|
|
15
14
|
value: string;
|
|
@@ -20,5 +19,5 @@ declare type Props = {
|
|
|
20
19
|
filter: FilterProps;
|
|
21
20
|
onFilterRemove: (value: string, name: string) => void;
|
|
22
21
|
};
|
|
23
|
-
declare const
|
|
24
|
-
export default
|
|
22
|
+
declare const ActiveFilterContent: ({ filter, onFilterRemove }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default ActiveFilterContent;
|
|
@@ -26,7 +26,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
26
26
|
var StyledActiveFilterTitle = /*#__PURE__*/(0, _base["default"])("span", {
|
|
27
27
|
target: "e90waln1",
|
|
28
28
|
label: "StyledActiveFilterTitle"
|
|
29
|
-
})("white-space:nowrap;padding-right:", _core.spacing.small, ";font-weight:", _core.fonts.weight.semibold, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
29
|
+
})("white-space:nowrap;padding-right:", _core.spacing.small, ";font-weight:", _core.fonts.weight.semibold, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkFjdGl2ZUZpbHRlckNvbnRlbnQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWVrRCIsImZpbGUiOiJBY3RpdmVGaWx0ZXJDb250ZW50LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ29weXJpZ2h0IChjKSAyMDIwLXByZXNlbnQsIE5ETEEuXG4gKlxuICogVGhpcyBzb3VyY2UgY29kZSBpcyBsaWNlbnNlZCB1bmRlciB0aGUgR1BMdjMgbGljZW5zZSBmb3VuZCBpbiB0aGVcbiAqIExJQ0VOU0UgZmlsZSBpbiB0aGUgcm9vdCBkaXJlY3Rvcnkgb2YgdGhpcyBzb3VyY2UgdHJlZS5cbiAqXG4gKi9cblxuaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IENyb3NzIH0gZnJvbSAnQG5kbGEvaWNvbnMvYWN0aW9uJztcbmltcG9ydCB7IHNwYWNpbmcsIGZvbnRzIH0gZnJvbSAnQG5kbGEvY29yZSc7XG5pbXBvcnQgQnV0dG9uIGZyb20gJ0BuZGxhL2J1dHRvbic7XG5pbXBvcnQgeyB1c2VUcmFuc2xhdGlvbiB9IGZyb20gJ3JlYWN0LWkxOG5leHQnO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkQWN0aXZlRmlsdGVyVGl0bGUgPSBzdHlsZWQuc3BhbmBcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgcGFkZGluZy1yaWdodDogJHtzcGFjaW5nLnNtYWxsfTtcbiAgZm9udC13ZWlnaHQ6ICR7Zm9udHMud2VpZ2h0LnNlbWlib2xkfTtcbmA7XG5cbmNvbnN0IFN0eWxlZEJ1dHRvbiA9IHN0eWxlZChCdXR0b24pYFxuICBkaXNwbGF5OiBncmlkO1xuICBncmlkLXRlbXBsYXRlLWNvbHVtbnM6IDFmciBhdXRvO1xuYDtcblxuZXhwb3J0IHR5cGUgRmlsdGVyUHJvcHMgPSB7XG4gIHZhbHVlOiBzdHJpbmc7XG4gIHRpdGxlOiBzdHJpbmc7XG4gIG5hbWU6IHN0cmluZztcbn07XG5cbnR5cGUgUHJvcHMgPSB7XG4gIGZpbHRlcjogRmlsdGVyUHJvcHM7XG4gIG9uRmlsdGVyUmVtb3ZlOiAodmFsdWU6IHN0cmluZywgbmFtZTogc3RyaW5nKSA9PiB2b2lkO1xufTtcblxuY29uc3QgQWN0aXZlRmlsdGVyQ29udGVudCA9ICh7IGZpbHRlciwgb25GaWx0ZXJSZW1vdmUgfTogUHJvcHMpID0+IHtcbiAgY29uc3QgeyB0IH0gPSB1c2VUcmFuc2xhdGlvbigpO1xuICByZXR1cm4gKFxuICAgIDxTdHlsZWRCdXR0b25cbiAgICAgIGFyaWEtbGFiZWw9e3QoJ3NlYXJjaFBhZ2Uuc2VhcmNoRmlsdGVyTWVzc2FnZXMucmVtb3ZlRmlsdGVyJywge1xuICAgICAgICBmaWx0ZXJOYW1lOiBmaWx0ZXIudGl0bGUsXG4gICAgICB9KX1cbiAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgc2l6ZT1cIm5vcm1hbFwiXG4gICAgICBib3JkZXJTaGFwZT1cInJvdW5kZWRcIlxuICAgICAgb25DbGljaz17KCkgPT4gb25GaWx0ZXJSZW1vdmUoZmlsdGVyLnZhbHVlLCBmaWx0ZXIubmFtZSl9PlxuICAgICAgPFN0eWxlZEFjdGl2ZUZpbHRlclRpdGxlPntmaWx0ZXIudGl0bGV9PC9TdHlsZWRBY3RpdmVGaWx0ZXJUaXRsZT5cbiAgICAgIDxDcm9zcyAvPlxuICAgIDwvU3R5bGVkQnV0dG9uPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgQWN0aXZlRmlsdGVyQ29udGVudDtcbiJdfQ== */"));
|
|
30
30
|
exports.StyledActiveFilterTitle = StyledActiveFilterTitle;
|
|
31
31
|
var StyledButton = /*#__PURE__*/(0, _base["default"])(_button["default"], {
|
|
32
32
|
target: "e90waln0",
|
|
@@ -37,14 +37,17 @@ var StyledButton = /*#__PURE__*/(0, _base["default"])(_button["default"], {
|
|
|
37
37
|
} : {
|
|
38
38
|
name: "1uffw4e",
|
|
39
39
|
styles: "display:grid;grid-template-columns:1fr auto",
|
|
40
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
40
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkFjdGl2ZUZpbHRlckNvbnRlbnQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFCbUMiLCJmaWxlIjoiQWN0aXZlRmlsdGVyQ29udGVudC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAyMC1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXG4gKlxuICovXG5cbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBDcm9zcyB9IGZyb20gJ0BuZGxhL2ljb25zL2FjdGlvbic7XG5pbXBvcnQgeyBzcGFjaW5nLCBmb250cyB9IGZyb20gJ0BuZGxhL2NvcmUnO1xuaW1wb3J0IEJ1dHRvbiBmcm9tICdAbmRsYS9idXR0b24nO1xuaW1wb3J0IHsgdXNlVHJhbnNsYXRpb24gfSBmcm9tICdyZWFjdC1pMThuZXh0JztcblxuZXhwb3J0IGNvbnN0IFN0eWxlZEFjdGl2ZUZpbHRlclRpdGxlID0gc3R5bGVkLnNwYW5gXG4gIHdoaXRlLXNwYWNlOiBub3dyYXA7XG4gIHBhZGRpbmctcmlnaHQ6ICR7c3BhY2luZy5zbWFsbH07XG4gIGZvbnQtd2VpZ2h0OiAke2ZvbnRzLndlaWdodC5zZW1pYm9sZH07XG5gO1xuXG5jb25zdCBTdHlsZWRCdXR0b24gPSBzdHlsZWQoQnV0dG9uKWBcbiAgZGlzcGxheTogZ3JpZDtcbiAgZ3JpZC10ZW1wbGF0ZS1jb2x1bW5zOiAxZnIgYXV0bztcbmA7XG5cbmV4cG9ydCB0eXBlIEZpbHRlclByb3BzID0ge1xuICB2YWx1ZTogc3RyaW5nO1xuICB0aXRsZTogc3RyaW5nO1xuICBuYW1lOiBzdHJpbmc7XG59O1xuXG50eXBlIFByb3BzID0ge1xuICBmaWx0ZXI6IEZpbHRlclByb3BzO1xuICBvbkZpbHRlclJlbW92ZTogKHZhbHVlOiBzdHJpbmcsIG5hbWU6IHN0cmluZykgPT4gdm9pZDtcbn07XG5cbmNvbnN0IEFjdGl2ZUZpbHRlckNvbnRlbnQgPSAoeyBmaWx0ZXIsIG9uRmlsdGVyUmVtb3ZlIH06IFByb3BzKSA9PiB7XG4gIGNvbnN0IHsgdCB9ID0gdXNlVHJhbnNsYXRpb24oKTtcbiAgcmV0dXJuIChcbiAgICA8U3R5bGVkQnV0dG9uXG4gICAgICBhcmlhLWxhYmVsPXt0KCdzZWFyY2hQYWdlLnNlYXJjaEZpbHRlck1lc3NhZ2VzLnJlbW92ZUZpbHRlcicsIHtcbiAgICAgICAgZmlsdGVyTmFtZTogZmlsdGVyLnRpdGxlLFxuICAgICAgfSl9XG4gICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgIHNpemU9XCJub3JtYWxcIlxuICAgICAgYm9yZGVyU2hhcGU9XCJyb3VuZGVkXCJcbiAgICAgIG9uQ2xpY2s9eygpID0+IG9uRmlsdGVyUmVtb3ZlKGZpbHRlci52YWx1ZSwgZmlsdGVyLm5hbWUpfT5cbiAgICAgIDxTdHlsZWRBY3RpdmVGaWx0ZXJUaXRsZT57ZmlsdGVyLnRpdGxlfTwvU3R5bGVkQWN0aXZlRmlsdGVyVGl0bGU+XG4gICAgICA8Q3Jvc3MgLz5cbiAgICA8L1N0eWxlZEJ1dHRvbj5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEFjdGl2ZUZpbHRlckNvbnRlbnQ7XG4iXX0= */",
|
|
41
41
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
var ActiveFilterContent = function ActiveFilterContent(_ref) {
|
|
45
45
|
var filter = _ref.filter,
|
|
46
|
-
onFilterRemove = _ref.onFilterRemove
|
|
47
|
-
|
|
46
|
+
onFilterRemove = _ref.onFilterRemove;
|
|
47
|
+
|
|
48
|
+
var _useTranslation = (0, _reactI18next.useTranslation)(),
|
|
49
|
+
t = _useTranslation.t;
|
|
50
|
+
|
|
48
51
|
return (0, _jsxRuntime.jsxs)(StyledButton, {
|
|
49
52
|
"aria-label": t('searchPage.searchFilterMessages.removeFilter', {
|
|
50
53
|
filterName: filter.title
|
|
@@ -61,6 +64,5 @@ var ActiveFilterContent = function ActiveFilterContent(_ref) {
|
|
|
61
64
|
});
|
|
62
65
|
};
|
|
63
66
|
|
|
64
|
-
var _default =
|
|
65
|
-
|
|
67
|
+
var _default = ActiveFilterContent;
|
|
66
68
|
exports["default"] = _default;
|
|
@@ -14,5 +14,5 @@ declare type Props = {
|
|
|
14
14
|
customElements?: ReactElement[];
|
|
15
15
|
onClickShowHiddenSubjects: () => void;
|
|
16
16
|
};
|
|
17
|
-
declare const ActiveFilters: ({ filters, onFilterRemove, showOnSmallScreen, customElements, onClickShowHiddenSubjects, }: Props) => import("@emotion/react/
|
|
17
|
+
declare const ActiveFilters: ({ filters, onFilterRemove, showOnSmallScreen, customElements, onClickShowHiddenSubjects, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
18
18
|
export default ActiveFilters;
|
|
@@ -24,5 +24,5 @@ export declare type PopupFilterProps = {
|
|
|
24
24
|
onToggleProgramme: (value: string) => void;
|
|
25
25
|
isOpen: boolean;
|
|
26
26
|
};
|
|
27
|
-
declare const PopupFilter: ({ programmes, subjectCategories, subjectValues, programmesValues, onToggleSubject, onToggleProgramme, onClose, isOpen, }: PopupFilterProps) => import("@emotion/react/
|
|
27
|
+
declare const PopupFilter: ({ programmes, subjectCategories, subjectValues, programmesValues, onToggleSubject, onToggleProgramme, onClose, isOpen, }: PopupFilterProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
28
|
export default PopupFilter;
|
|
@@ -11,5 +11,5 @@ export declare type PaginationType = {
|
|
|
11
11
|
toCount: number;
|
|
12
12
|
contentType?: string;
|
|
13
13
|
};
|
|
14
|
-
declare const ResultNavigation: ({ onShowMore, totalCount, toCount, contentType }: PaginationType) => import("@emotion/react/
|
|
14
|
+
declare const ResultNavigation: ({ onShowMore, totalCount, toCount, contentType }: PaginationType) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
15
|
export default ResultNavigation;
|
|
@@ -13,5 +13,5 @@ declare type Props = {
|
|
|
13
13
|
onChange: (value: string) => void;
|
|
14
14
|
isNarrowScreen?: boolean;
|
|
15
15
|
};
|
|
16
|
-
declare const SearchFieldHeader: ({ value, onSubmit, onChange, filters, activeFilters, isNarrowScreen, }: Props & SubjectFilterProps) => import("@emotion/react/
|
|
16
|
+
declare const SearchFieldHeader: ({ value, onSubmit, onChange, filters, activeFilters, isNarrowScreen, }: Props & SubjectFilterProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
17
|
export default SearchFieldHeader;
|
|
@@ -12,5 +12,5 @@ declare type Props = {
|
|
|
12
12
|
onFilterToggle: FilterButtonsProps['onFilterToggle'];
|
|
13
13
|
onRemoveAllFilters: FilterButtonsProps['onRemoveAllFilters'];
|
|
14
14
|
};
|
|
15
|
-
declare const SearchFilterContent: ({ viewType, onChangeViewType, items, onFilterToggle, onRemoveAllFilters, }: SearchViewTypeProps & Props) => import("@emotion/react/
|
|
15
|
+
declare const SearchFilterContent: ({ viewType, onChangeViewType, items, onFilterToggle, onRemoveAllFilters, }: SearchViewTypeProps & Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
16
|
export default SearchFilterContent;
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
9
|
-
import { WithTranslation } from 'react-i18next';
|
|
8
|
+
import { FormEvent } from 'react';
|
|
10
9
|
import { CompetenceGoalsItemType } from '../types';
|
|
11
10
|
import { SubjectFilterProps } from './components/SubjectFilters';
|
|
12
11
|
declare type Props = {
|
|
@@ -21,5 +20,5 @@ declare type Props = {
|
|
|
21
20
|
onSubmit: (event: FormEvent<HTMLFormElement>) => void;
|
|
22
21
|
noResults?: boolean;
|
|
23
22
|
};
|
|
24
|
-
declare const
|
|
25
|
-
export default
|
|
23
|
+
declare const SearchHeader: ({ searchPhrase, searchPhraseSuggestion, searchPhraseSuggestionOnClick, searchValue, onSearchValueChange, onSubmit, activeFilters, filters, competenceGoals, noResults, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
|
+
export default SearchHeader;
|