@ndla/ui 30.1.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/MyNdla/Resource/Folder.js +118 -57
- package/es/NDLAFilm/CategorySelect.js +106 -146
- package/es/Resource/BlockResource.js +45 -30
- package/es/Resource/ListResource.js +46 -41
- package/es/Resource/resourceComponents.js +29 -34
- 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 +2 -2
- package/lib/MyNdla/Resource/Folder.js +115 -57
- 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 +2 -2
- package/lib/Resource/BlockResource.js +44 -30
- package/lib/Resource/ListResource.d.ts +1 -1
- package/lib/Resource/ListResource.js +40 -36
- package/lib/Resource/resourceComponents.d.ts +7 -7
- package/lib/Resource/resourceComponents.js +28 -31
- 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/MyNdla/Resource/Folder.tsx +118 -84
- package/src/NDLAFilm/CategorySelect.tsx +77 -97
- package/src/Resource/BlockResource.tsx +34 -28
- package/src/Resource/ListResource.tsx +76 -74
- package/src/Resource/resourceComponents.tsx +15 -20
- 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
|
@@ -6,7 +6,7 @@ import { isFunction } from '@ndla/util';
|
|
|
6
6
|
import styled from '@emotion/styled';
|
|
7
7
|
import { css } from '@emotion/react';
|
|
8
8
|
import { spacing, mq, breakpoints, colors, shadows } from '@ndla/core';
|
|
9
|
-
import {
|
|
9
|
+
import { useTranslation } from 'react-i18next';
|
|
10
10
|
import ToggleSearchButton from '../Search/ToggleSearchButton';
|
|
11
11
|
|
|
12
12
|
interface Props {
|
|
@@ -91,38 +91,39 @@ const extraBackdrop = css`
|
|
|
91
91
|
box-shadow: ${shadows.searchHeader};
|
|
92
92
|
`;
|
|
93
93
|
|
|
94
|
-
const MastheadSearchModal = ({
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
);
|
|
94
|
+
const MastheadSearchModal = ({ onClose: onSearchClose, children, hideOnNarrowScreen, ndlaFilm }: Props) => {
|
|
95
|
+
const { t } = useTranslation();
|
|
96
|
+
return (
|
|
97
|
+
<Modal
|
|
98
|
+
label={t('searchPage.searchFieldPlaceholder')}
|
|
99
|
+
backgroundColor="grey"
|
|
100
|
+
animation="slide-down"
|
|
101
|
+
animationDuration={200}
|
|
102
|
+
size="full-width"
|
|
103
|
+
onClose={onSearchClose}
|
|
104
|
+
css={modalStyles}
|
|
105
|
+
activateButton={
|
|
106
|
+
<ToggleSearchButton hideOnNarrowScreen={hideOnNarrowScreen} ndlaFilm={ndlaFilm}>
|
|
107
|
+
{t('masthead.menu.search')}
|
|
108
|
+
</ToggleSearchButton>
|
|
109
|
+
}>
|
|
110
|
+
{(closeModal: VoidFunction) => (
|
|
111
|
+
<>
|
|
112
|
+
<div css={extraBackdrop} />
|
|
113
|
+
<StyledHeader>
|
|
114
|
+
{isFunction(children) ? children(closeModal) : children}
|
|
115
|
+
<IconButton
|
|
116
|
+
aria-label={t('welcomePage.closeSearch')}
|
|
117
|
+
variant="ghost"
|
|
118
|
+
colorTheme="light"
|
|
119
|
+
onClick={closeModal}>
|
|
120
|
+
<Cross className="c-icon--medium" />
|
|
121
|
+
</IconButton>
|
|
122
|
+
</StyledHeader>
|
|
123
|
+
</>
|
|
124
|
+
)}
|
|
125
|
+
</Modal>
|
|
126
|
+
);
|
|
127
|
+
};
|
|
127
128
|
|
|
128
|
-
export default
|
|
129
|
+
export default MastheadSearchModal;
|
|
@@ -10,7 +10,6 @@ import React from 'react';
|
|
|
10
10
|
import styled from '@emotion/styled';
|
|
11
11
|
import { breakpoints, colors, fonts, mq, spacing } from '@ndla/core';
|
|
12
12
|
import { InformationOutline, HumanMaleBoard, Forward, WarningOutline } from '@ndla/icons/common';
|
|
13
|
-
import { WithTranslation, withTranslation } from 'react-i18next';
|
|
14
13
|
|
|
15
14
|
// @ts-ignore
|
|
16
15
|
import { Remarkable } from 'remarkable';
|
|
@@ -127,7 +126,7 @@ const Icon = ({ type }: StyledProps) => {
|
|
|
127
126
|
return <InformationOutline />;
|
|
128
127
|
};
|
|
129
128
|
|
|
130
|
-
export const MessageBox = ({ type, children = '', links, showCloseButton, onClose }: Props
|
|
129
|
+
export const MessageBox = ({ type, children = '', links, showCloseButton, onClose }: Props) => {
|
|
131
130
|
return (
|
|
132
131
|
<MessageBoxWrapper type={type}>
|
|
133
132
|
<InfoWrapper>
|
|
@@ -153,4 +152,4 @@ export const MessageBox = ({ type, children = '', links, showCloseButton, onClos
|
|
|
153
152
|
);
|
|
154
153
|
};
|
|
155
154
|
|
|
156
|
-
export default
|
|
155
|
+
export default MessageBox;
|
|
@@ -16,39 +16,72 @@ import { useTranslation } from 'react-i18next';
|
|
|
16
16
|
import SafeLink from '@ndla/safelink';
|
|
17
17
|
import { MenuButton, MenuItemProps } from '@ndla/button';
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
type LayoutType = 'list' | 'listLarger' | 'block';
|
|
20
|
+
interface LayoutProps {
|
|
21
|
+
type: LayoutType;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
|
-
const
|
|
24
|
+
const FolderWrapper = styled.div<LayoutProps>`
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
padding: ${spacing.nsmall};
|
|
29
|
+
gap: ${spacing.small};
|
|
30
|
+
|
|
31
|
+
${mq.range({ until: breakpoints.mobileWide })} {
|
|
32
|
+
${({ type }) =>
|
|
33
|
+
type !== 'list' &&
|
|
34
|
+
css`
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
align-items: unset;
|
|
37
|
+
`}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
${({ type }) =>
|
|
41
|
+
type === 'block' &&
|
|
42
|
+
css`
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
align-items: unset;
|
|
45
|
+
`}
|
|
46
|
+
|
|
47
|
+
border: 1px solid ${colors.brand.neutral7};
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
border-radius: 2px;
|
|
50
|
+
box-shadow: none;
|
|
51
|
+
text-decoration: none;
|
|
52
|
+
&:hover {
|
|
53
|
+
box-shadow: 1px 1px 6px 2px rgba(9, 55, 101, 0.08);
|
|
54
|
+
transition-duration: 0.2s;
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
57
|
+
|
|
58
|
+
const TitleWrapper = styled.div`
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: row;
|
|
61
|
+
align-items: center;
|
|
62
|
+
gap: ${spacing.xsmall};
|
|
63
|
+
justify-content: space-between;
|
|
64
|
+
`;
|
|
65
|
+
|
|
66
|
+
const IconWrapper = styled.div`
|
|
24
67
|
display: flex;
|
|
25
68
|
border-radius: 100%;
|
|
26
|
-
|
|
27
|
-
background-color: ${colors.brand.greyLighter};
|
|
69
|
+
color: ${colors.brand.primary};
|
|
28
70
|
svg {
|
|
29
|
-
width:
|
|
30
|
-
height:
|
|
71
|
+
width: 20px;
|
|
72
|
+
height: 20px;
|
|
31
73
|
}
|
|
32
|
-
${(p) =>
|
|
33
|
-
p.type === 'block' &&
|
|
34
|
-
css`
|
|
35
|
-
background-color: transparent;
|
|
36
|
-
${FolderWrapper}:hover & {
|
|
37
|
-
background-color: ${colors.brand.light};
|
|
38
|
-
transition-duration 0.5s;
|
|
39
|
-
}
|
|
40
|
-
`};
|
|
41
74
|
`;
|
|
42
75
|
|
|
43
|
-
const
|
|
76
|
+
const StyledLink = styled(SafeLink)`
|
|
44
77
|
box-shadow: none;
|
|
45
|
-
color: ${colors.
|
|
78
|
+
color: ${colors.brand.primary};
|
|
46
79
|
flex: 1;
|
|
47
80
|
`;
|
|
48
81
|
|
|
49
82
|
const FolderTitle = styled.h2`
|
|
50
|
-
${fonts.sizes(
|
|
51
|
-
font-weight: ${fonts.weight.
|
|
83
|
+
${fonts.sizes('16px', '20px')};
|
|
84
|
+
font-weight: ${fonts.weight.semibold};
|
|
52
85
|
margin: 0;
|
|
53
86
|
flex: 1;
|
|
54
87
|
|
|
@@ -59,41 +92,50 @@ const FolderTitle = styled.h2`
|
|
|
59
92
|
-webkit-line-clamp: 1;
|
|
60
93
|
line-clamp: 1;
|
|
61
94
|
-webkit-box-orient: vertical;
|
|
95
|
+
|
|
96
|
+
${FolderWrapper}:hover & {
|
|
97
|
+
color: ${colors.brand.primary};
|
|
98
|
+
text-decoration: underline;
|
|
99
|
+
}
|
|
62
100
|
`;
|
|
63
101
|
|
|
64
|
-
const
|
|
102
|
+
const MenuWrapper = styled.div`
|
|
103
|
+
overflow: hidden;
|
|
65
104
|
display: flex;
|
|
105
|
+
flex-direction: row;
|
|
66
106
|
align-items: center;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
107
|
+
gap: ${spacing.xsmall};
|
|
108
|
+
justify-content: space-between;
|
|
109
|
+
margin: -${spacing.nsmall};
|
|
110
|
+
margin-left: 0;
|
|
111
|
+
`;
|
|
112
|
+
|
|
113
|
+
const CountContainer = styled.div`
|
|
114
|
+
overflow: hidden;
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: row;
|
|
76
117
|
gap: ${spacing.small};
|
|
77
|
-
&:hover {
|
|
78
|
-
box-shadow: 1px 1px 6px 2px rgba(9, 55, 101, 0.08);
|
|
79
|
-
transition-duration: 0.2s;
|
|
80
|
-
${FolderTitle} {
|
|
81
|
-
color: ${colors.brand.primary};
|
|
82
|
-
text-decoration: underline;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
118
|
`;
|
|
86
119
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
120
|
+
const IconCountWrapper = styled.div<LayoutProps>`
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
gap: ${spacing.xxsmall};
|
|
124
|
+
color: ${colors.brand.grey};
|
|
125
|
+
white-space: nowrap;
|
|
126
|
+
svg {
|
|
127
|
+
width: 13px;
|
|
128
|
+
height: 13px;
|
|
129
|
+
}
|
|
130
|
+
${fonts.sizes(16)};
|
|
131
|
+
${mq.range({ until: breakpoints.mobileWide })} {
|
|
132
|
+
${({ type }) =>
|
|
133
|
+
type === 'list' &&
|
|
134
|
+
css`
|
|
135
|
+
display: none;
|
|
136
|
+
`}
|
|
137
|
+
}
|
|
138
|
+
`;
|
|
97
139
|
|
|
98
140
|
interface IconCountProps {
|
|
99
141
|
type: 'resource' | 'folder';
|
|
@@ -101,30 +143,7 @@ interface IconCountProps {
|
|
|
101
143
|
layoutType: LayoutType;
|
|
102
144
|
}
|
|
103
145
|
|
|
104
|
-
|
|
105
|
-
type: LayoutType;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
const IconCountWrapper = styled.div<IconCountWrapperProps>`
|
|
109
|
-
display: flex;
|
|
110
|
-
align-items: center;
|
|
111
|
-
gap: 2px;
|
|
112
|
-
${fonts.sizes(16)};
|
|
113
|
-
${(p) =>
|
|
114
|
-
p.type === 'block' &&
|
|
115
|
-
css`
|
|
116
|
-
opacity: 0;
|
|
117
|
-
${FolderWrapper}:hover & {
|
|
118
|
-
opacity: 1;
|
|
119
|
-
}
|
|
120
|
-
`};
|
|
121
|
-
|
|
122
|
-
${mq.range({ until: breakpoints.tabletWide })} {
|
|
123
|
-
display: none;
|
|
124
|
-
}
|
|
125
|
-
`;
|
|
126
|
-
|
|
127
|
-
const IconCount = ({ type, count, layoutType }: IconCountProps) => {
|
|
146
|
+
const Count = ({ type, count, layoutType }: IconCountProps) => {
|
|
128
147
|
const Icon = type === 'resource' ? FileDocumentOutline : FolderOutlined;
|
|
129
148
|
const { t } = useTranslation();
|
|
130
149
|
if (!count) return null;
|
|
@@ -132,12 +151,21 @@ const IconCount = ({ type, count, layoutType }: IconCountProps) => {
|
|
|
132
151
|
return (
|
|
133
152
|
<IconCountWrapper type={layoutType}>
|
|
134
153
|
<Icon aria-label={t(`myNdla.${type}s`)} />
|
|
135
|
-
<span>{
|
|
154
|
+
<span>{t(`myNdla.${type}s`, { count })}</span>
|
|
136
155
|
</IconCountWrapper>
|
|
137
156
|
);
|
|
138
157
|
};
|
|
139
158
|
|
|
140
|
-
|
|
159
|
+
interface Props {
|
|
160
|
+
id: string;
|
|
161
|
+
title: string;
|
|
162
|
+
subFolders?: number;
|
|
163
|
+
subResources?: number;
|
|
164
|
+
description?: string;
|
|
165
|
+
link: string;
|
|
166
|
+
type: LayoutType;
|
|
167
|
+
menuItems?: MenuItemProps[];
|
|
168
|
+
}
|
|
141
169
|
|
|
142
170
|
const Folder = ({ id, link, title, subFolders, subResources, type = 'list', menuItems }: Props) => {
|
|
143
171
|
const { t } = useTranslation();
|
|
@@ -148,16 +176,22 @@ const Folder = ({ id, link, title, subFolders, subResources, type = 'list', menu
|
|
|
148
176
|
};
|
|
149
177
|
|
|
150
178
|
return (
|
|
151
|
-
<FolderWrapper onClick={onClick} id={id}>
|
|
152
|
-
<
|
|
153
|
-
<
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
<
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
179
|
+
<FolderWrapper type={type} onClick={onClick} id={id}>
|
|
180
|
+
<TitleWrapper>
|
|
181
|
+
<IconWrapper>
|
|
182
|
+
<FolderOutlined aria-label={t('myNdla.folder.folder')} />
|
|
183
|
+
</IconWrapper>
|
|
184
|
+
<StyledLink to={link} ref={linkRef}>
|
|
185
|
+
<FolderTitle>{title}</FolderTitle>
|
|
186
|
+
</StyledLink>
|
|
187
|
+
</TitleWrapper>
|
|
188
|
+
<MenuWrapper>
|
|
189
|
+
<CountContainer>
|
|
190
|
+
<Count layoutType={type} type={'folder'} count={subFolders} />
|
|
191
|
+
<Count layoutType={type} type={'resource'} count={subResources} />
|
|
192
|
+
</CountContainer>
|
|
193
|
+
{menuItems && menuItems.length > 0 && <MenuButton alignRight size="small" menuItems={menuItems} />}
|
|
194
|
+
</MenuWrapper>
|
|
161
195
|
</FolderWrapper>
|
|
162
196
|
);
|
|
163
197
|
};
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2019-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
|
+
|
|
9
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
2
10
|
import FocusTrapReact from 'focus-trap-react';
|
|
3
11
|
import styled from '@emotion/styled';
|
|
4
12
|
import { keyframes } from '@emotion/react';
|
|
5
13
|
import { breakpoints, colors, fonts, mq, spacing } from '@ndla/core';
|
|
6
14
|
import { ChevronDown } from '@ndla/icons/common';
|
|
7
|
-
import {
|
|
15
|
+
import { useTranslation } from 'react-i18next';
|
|
8
16
|
import { MovieResourceType } from './types';
|
|
9
17
|
|
|
10
18
|
const zoomInSelect = keyframes`
|
|
@@ -70,7 +78,7 @@ const DropdownWrapper = styled.div<DropdownWrapperProps>`
|
|
|
70
78
|
top: -${(props) => props.offsetDropdown * 52 + 13}px;
|
|
71
79
|
${DropdownButton} {
|
|
72
80
|
border-radius: 0;
|
|
73
|
-
text-transform:
|
|
81
|
+
text-transform: none;
|
|
74
82
|
letter-spacing: 0;
|
|
75
83
|
}
|
|
76
84
|
display: flex;
|
|
@@ -105,110 +113,82 @@ const DropdownWrapper = styled.div<DropdownWrapperProps>`
|
|
|
105
113
|
}
|
|
106
114
|
`;
|
|
107
115
|
|
|
108
|
-
interface Props
|
|
116
|
+
interface Props {
|
|
109
117
|
resourceTypes: MovieResourceType[];
|
|
110
118
|
resourceTypeSelected?: MovieResourceType;
|
|
111
119
|
ariaControlId?: string;
|
|
112
120
|
onChangeResourceType: (resourceId?: string) => void;
|
|
113
121
|
}
|
|
114
122
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
class CategorySelect extends Component<Props, State> {
|
|
119
|
-
references: Record<string, HTMLButtonElement | null>;
|
|
120
|
-
constructor(props: Props) {
|
|
121
|
-
super(props);
|
|
122
|
-
this.state = {
|
|
123
|
-
resourceTypesIsOpen: false,
|
|
124
|
-
};
|
|
125
|
-
this.references = {};
|
|
126
|
-
this.createRef = this.createRef.bind(this);
|
|
127
|
-
this.openSelect = this.openSelect.bind(this);
|
|
128
|
-
this.onSelect = this.onSelect.bind(this);
|
|
129
|
-
}
|
|
123
|
+
const CategorySelect = ({ resourceTypes, resourceTypeSelected, ariaControlId, onChangeResourceType }: Props) => {
|
|
124
|
+
const { t } = useTranslation();
|
|
125
|
+
const refs = useRef<Record<string, HTMLButtonElement | null>>({});
|
|
130
126
|
|
|
131
|
-
|
|
132
|
-
this.references[name] = el;
|
|
133
|
-
}
|
|
127
|
+
const [resourceTypesIsOpen, setResourceTypesIsOpen] = useState<boolean>(false);
|
|
134
128
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
{
|
|
139
|
-
resourceTypesIsOpen: true,
|
|
140
|
-
},
|
|
141
|
-
() => {
|
|
142
|
-
if (resourceTypeSelected && this.references[resourceTypeSelected.id]) {
|
|
143
|
-
this.references[resourceTypeSelected.id]?.focus();
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
);
|
|
147
|
-
}
|
|
129
|
+
const updateRef = (el: HTMLButtonElement | null, name: string) => {
|
|
130
|
+
refs.current[name] = el;
|
|
131
|
+
};
|
|
148
132
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
133
|
+
useEffect(() => {
|
|
134
|
+
if (resourceTypeSelected && refs.current[resourceTypeSelected.id]) {
|
|
135
|
+
refs.current[resourceTypeSelected.id]?.focus();
|
|
136
|
+
}
|
|
137
|
+
}, [resourceTypesIsOpen, resourceTypeSelected]);
|
|
138
|
+
|
|
139
|
+
const onSelect = (val?: string) => {
|
|
140
|
+
onChangeResourceType(val);
|
|
141
|
+
setResourceTypesIsOpen(false);
|
|
142
|
+
};
|
|
155
143
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
const offsetDropDown = resourceTypeSelected
|
|
160
|
-
? resourceTypes.findIndex((resource) => resource.id === resourceTypeSelected.id) + 1
|
|
161
|
-
: 0;
|
|
144
|
+
const offsetDropDown = resourceTypeSelected
|
|
145
|
+
? resourceTypes.findIndex((resource) => resource.id === resourceTypeSelected.id) + 1
|
|
146
|
+
: 0;
|
|
162
147
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
<DropdownButton
|
|
193
|
-
|
|
148
|
+
return (
|
|
149
|
+
<DropdownContainer className="u-12/12">
|
|
150
|
+
<DropdownButton
|
|
151
|
+
aria-expanded={!resourceTypesIsOpen}
|
|
152
|
+
aria-controls="selectCategory"
|
|
153
|
+
type="button"
|
|
154
|
+
tabIndex={resourceTypesIsOpen ? -1 : 0}
|
|
155
|
+
onClick={() => setResourceTypesIsOpen(true)}>
|
|
156
|
+
<div>
|
|
157
|
+
<span>{t('ndlaFilm.search.chooseCategory')}</span>
|
|
158
|
+
<small>{(resourceTypeSelected && resourceTypeSelected.name) || t('ndlaFilm.search.categoryFromNdla')}</small>
|
|
159
|
+
</div>
|
|
160
|
+
<div>
|
|
161
|
+
<ChevronDown className="c-icon--22" />
|
|
162
|
+
</div>
|
|
163
|
+
</DropdownButton>
|
|
164
|
+
{resourceTypesIsOpen && (
|
|
165
|
+
<FocusTrapReact
|
|
166
|
+
active={resourceTypesIsOpen}
|
|
167
|
+
focusTrapOptions={{
|
|
168
|
+
onDeactivate: () => setResourceTypesIsOpen(false),
|
|
169
|
+
clickOutsideDeactivates: true,
|
|
170
|
+
escapeDeactivates: true,
|
|
171
|
+
}}>
|
|
172
|
+
<DropdownWrapper id="selectCategory" offsetDropdown={offsetDropDown}>
|
|
173
|
+
<DropdownButton aria-controls={ariaControlId} type="button" onClick={() => onSelect()}>
|
|
174
|
+
<span>{t('ndlaFilm.search.categoryFromNdla')}</span>
|
|
175
|
+
</DropdownButton>
|
|
176
|
+
{resourceTypes.map((resourceType) => (
|
|
177
|
+
<DropdownButton
|
|
178
|
+
aria-controls={ariaControlId}
|
|
179
|
+
type="button"
|
|
180
|
+
ref={(el) => updateRef(el, resourceType.id)}
|
|
181
|
+
onClick={() => onSelect(resourceType.id)}
|
|
182
|
+
data-id={resourceType.id}
|
|
183
|
+
key={resourceType.id}>
|
|
184
|
+
<span>{resourceType.name}</span>
|
|
194
185
|
</DropdownButton>
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
key={resourceType.id}>
|
|
203
|
-
<span>{resourceType.name}</span>
|
|
204
|
-
</DropdownButton>
|
|
205
|
-
))}
|
|
206
|
-
</DropdownWrapper>
|
|
207
|
-
</FocusTrapReact>
|
|
208
|
-
)}
|
|
209
|
-
</DropdownContainer>
|
|
210
|
-
);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
186
|
+
))}
|
|
187
|
+
</DropdownWrapper>
|
|
188
|
+
</FocusTrapReact>
|
|
189
|
+
)}
|
|
190
|
+
</DropdownContainer>
|
|
191
|
+
);
|
|
192
|
+
};
|
|
213
193
|
|
|
214
|
-
export default
|
|
194
|
+
export default CategorySelect;
|