@ndla/ui 43.0.1 → 43.0.3

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.
Files changed (667) hide show
  1. package/es/Article/Article.js +3 -3
  2. package/es/Article/ArticleByline.js +6 -6
  3. package/es/Article/ArticleContent.js +1 -1
  4. package/es/Article/ArticleFootNotes.js +2 -3
  5. package/es/Article/ArticleHeaderWrapper.js +1 -1
  6. package/es/Article/ArticleNotions.js +5 -6
  7. package/es/Aside/Aside.js +0 -1
  8. package/es/AudioPlayer/AudioPlayer.js +15 -15
  9. package/es/AudioPlayer/Controls.js +22 -22
  10. package/es/AudioPlayer/SpeechControl.js +1 -1
  11. package/es/AudioPlayer/initAudioPlayers.js +3 -1
  12. package/es/BannerCard/BannerCard.js +8 -8
  13. package/es/BlogPosts/BlogPost.js +4 -5
  14. package/es/BlogPosts/BlogPostWrapper.js +1 -2
  15. package/es/Breadcrumb/Breadcrumb.js +3 -3
  16. package/es/Breadcrumb/BreadcrumbItem.js +7 -7
  17. package/es/Breadcrumb/HeaderBreadcrumb.js +3 -4
  18. package/es/Breadcrumb/HomeBreadcrumb.js +6 -7
  19. package/es/CampaignBlock/CampaignBlock.js +7 -8
  20. package/es/CompetenceGoalTab/CompetenceGoalItem.js +0 -1
  21. package/es/CompetenceGoalTab/CompetenceGoalTab.js +3 -3
  22. package/es/CompetenceGoalTab/CompetenceItem.js +5 -6
  23. package/es/CompetenceGoalTab/CoreElementItem.js +0 -1
  24. package/es/CompetenceGoalTab/SearchButton.js +2 -3
  25. package/es/ContentLoader/index.js +0 -1
  26. package/es/ContentPlaceholder/ContentPlaceholder.js +3 -4
  27. package/es/ContentTypeBadge/ContentTypeBadge.js +0 -1
  28. package/es/CopyParagraphButton/CopyParagraphButton.js +3 -3
  29. package/es/CopyParagraphButton/initCopyParagraphButtons.js +2 -1
  30. package/es/CreatedBy/CreatedBy.js +4 -5
  31. package/es/Dialog/Dialog.js +0 -1
  32. package/es/Embed/H5pEmbed.js +1 -2
  33. package/es/Embed/ImageEmbed.js +1 -1
  34. package/es/ErrorMessage/ErrorMessage.js +6 -7
  35. package/es/ErrorMessage/ErrorResourceAccessDenied.js +1 -2
  36. package/es/FactBox/FactBox.js +0 -1
  37. package/es/FactBox/FactBoxV2.js +4 -4
  38. package/es/Figure/Figure.js +0 -1
  39. package/es/Figure/FigureBylineExpandButton.js +0 -1
  40. package/es/Figure/FigureExpandButton.js +0 -1
  41. package/es/Figure/FigureLicense.js +0 -1
  42. package/es/Figure/FigureLicenseDialog.js +0 -1
  43. package/es/Figure/FigureOpenDialogButton.js +0 -1
  44. package/es/FileList/File.js +3 -4
  45. package/es/FileList/FileList.js +3 -4
  46. package/es/Filter/FilterButtons.js +10 -10
  47. package/es/Filter/FilterCarousel.js +5 -5
  48. package/es/Filter/FilterList.js +1 -1
  49. package/es/Filter/FilterListPhone.js +1 -1
  50. package/es/Filter/ToggleItem.js +0 -1
  51. package/es/Footer/EditorName.js +2 -3
  52. package/es/Footer/Footer.js +8 -9
  53. package/es/Footer/FooterLinks.js +6 -7
  54. package/es/Footer/FooterPrivacy.js +3 -4
  55. package/es/Footer/FooterText.js +1 -2
  56. package/es/Frontpage/FrontpageAllSubjects.js +8 -8
  57. package/es/Frontpage/FrontpageFilm.js +4 -5
  58. package/es/Frontpage/FrontpageHeader.js +4 -5
  59. package/es/Frontpage/FrontpageInfo.js +1 -2
  60. package/es/Frontpage/FrontpageMultidisciplinarySubject.js +7 -8
  61. package/es/Frontpage/FrontpageProgramMenu.js +4 -4
  62. package/es/Frontpage/FrontpageSearch.js +3 -3
  63. package/es/Frontpage/FrontpageToolbox.js +4 -5
  64. package/es/Frontpage/illustrations/Fellesfag.js +2 -3
  65. package/es/Frontpage/illustrations/FrontpageHeaderIllustration.js +2 -3
  66. package/es/Frontpage/illustrations/FrontpageSubjectIllustration.js +1 -2
  67. package/es/Frontpage/illustrations/MenuFellesfag.js +2 -3
  68. package/es/Frontpage/illustrations/MenuStudiespesialiserende.js +2 -3
  69. package/es/Frontpage/illustrations/MenuYrkesfag.js +2 -3
  70. package/es/Frontpage/illustrations/Studiespesialiserende.js +2 -3
  71. package/es/Frontpage/illustrations/Yrkesfag.js +2 -3
  72. package/es/Grid/Grid.js +11 -26
  73. package/es/Hero/Hero.js +1 -2
  74. package/es/Image/Image.js +12 -13
  75. package/es/Image/ImageLink.js +1 -2
  76. package/es/Image/LazyLoadImage.js +3 -4
  77. package/es/InfoBlock/InfoBlock.js +5 -6
  78. package/es/InfoBox/InfoBox.js +1 -2
  79. package/es/InfoWidget/InfoWidget.js +8 -9
  80. package/es/KeyFigure/KeyFigure.js +4 -4
  81. package/es/LanguageSelector/LanguageSelector.js +5 -6
  82. package/es/Layout/Content.js +1 -2
  83. package/es/Layout/LayoutItem.js +1 -2
  84. package/es/Layout/OneColumn.js +0 -1
  85. package/es/Layout/PageContainer.js +0 -1
  86. package/es/LearningPaths/LearningPathContent.js +1 -2
  87. package/es/LearningPaths/LearningPathInformation.js +3 -4
  88. package/es/LearningPaths/LearningPathLastStepNavigation.js +4 -5
  89. package/es/LearningPaths/LearningPathMenu.js +4 -4
  90. package/es/LearningPaths/LearningPathMenuAside.js +4 -5
  91. package/es/LearningPaths/LearningPathMenuAsideCopyright.js +2 -3
  92. package/es/LearningPaths/LearningPathMenuContent.js +6 -7
  93. package/es/LearningPaths/LearningPathMenuIntro.js +7 -8
  94. package/es/LearningPaths/LearningPathMenuModalWrapper.js +3 -3
  95. package/es/LearningPaths/LearningPathMobileHeader.js +2 -3
  96. package/es/LearningPaths/LearningPathMobileStepInfo.js +1 -2
  97. package/es/LearningPaths/LearningPathSticky.js +3 -4
  98. package/es/LearningPaths/LearningPathWrapper.js +1 -2
  99. package/es/LetterFilter/LetterFilter.js +3 -3
  100. package/es/LicenseByline/EmbedByline.js +14 -7
  101. package/es/LicenseByline/LicenseDescription.js +2 -18
  102. package/es/Logo/Logo.js +0 -1
  103. package/es/Logo/SvgLogo.js +0 -1
  104. package/es/Masthead/Masthead.js +6 -7
  105. package/es/Masthead/MastheadSearchModal.js +3 -3
  106. package/es/Masthead/SkipToMainContent.js +1 -2
  107. package/es/MediaList/MediaList.js +2 -3
  108. package/es/Messages/MessageBanner.js +3 -4
  109. package/es/Messages/MessageBox.js +9 -10
  110. package/es/Messages/MessageBoxTag.js +1 -2
  111. package/es/MultidisciplinarySubject/List.js +3 -4
  112. package/es/MultidisciplinarySubject/ListItem.js +7 -8
  113. package/es/MultidisciplinarySubject/MultidisciplinarySubject.js +6 -7
  114. package/es/MyNdla/Resource/Folder.js +7 -8
  115. package/es/MyNdla/Resource/FolderInput.js +4 -4
  116. package/es/NDLAFilm/AboutNdlaFilm.js +1 -2
  117. package/es/NDLAFilm/AllMoviesAlphabetically.js +10 -10
  118. package/es/NDLAFilm/FilmContentCard.js +3 -4
  119. package/es/NDLAFilm/FilmContentCardTags.js +2 -3
  120. package/es/NDLAFilm/FilmMovieList.js +1 -2
  121. package/es/NDLAFilm/FilmMovieSearch.js +4 -4
  122. package/es/NDLAFilm/FilmSlideshow.js +8 -8
  123. package/es/NDLAFilm/MovieGrid.js +2 -3
  124. package/es/NDLAFilm/NavigationArrow.js +4 -5
  125. package/es/NDLAFilm/SlideshowIndicator.js +2 -3
  126. package/es/NDLAFilm/VisualElement.js +1 -2
  127. package/es/Navigation/NavigationBox.js +19 -20
  128. package/es/Navigation/NavigationTopicAbout.js +14 -15
  129. package/es/NoContentBox/NoContentBox.js +0 -1
  130. package/es/Notion/ConceptNotion.js +2 -2
  131. package/es/Notion/FigureNotion.js +1 -2
  132. package/es/Notion/Notion.js +5 -5
  133. package/es/Notion/NotionImage.js +2 -3
  134. package/es/Notion/NotionVisualElement.js +2 -3
  135. package/es/Programme/Programme.js +5 -6
  136. package/es/Programme/ProgrammeSubjects.js +2 -2
  137. package/es/RadioButtonGroup/RadioButtonGroup.js +5 -5
  138. package/es/RelatedArticleList/RelatedArticleList.js +1 -1
  139. package/es/Resource/BlockResource.js +6 -7
  140. package/es/Resource/ListResource.js +6 -7
  141. package/es/Resource/resourceComponents.js +12 -12
  142. package/es/ResourceBox/ResourceBox.js +7 -7
  143. package/es/ResourceGroup/ResourceGroup.js +4 -5
  144. package/es/ResourceGroup/ResourceItem.js +11 -12
  145. package/es/ResourceGroup/ResourceList.js +2 -3
  146. package/es/ResourcesWrapper/ResourcesTopicTitle.js +12 -13
  147. package/es/ResourcesWrapper/ResourcesWrapper.js +1 -2
  148. package/es/Search/ActiveFilterContent.js +3 -3
  149. package/es/Search/ActiveFilters.js +6 -7
  150. package/es/Search/ContentTypeResult.js +2 -2
  151. package/es/Search/LoadingWrapper.js +1 -2
  152. package/es/Search/SearchField.js +2 -3
  153. package/es/Search/SearchFieldForm.js +3 -4
  154. package/es/Search/SearchResult.js +11 -11
  155. package/es/Search/SearchResultSleeve.js +9 -9
  156. package/es/Search/ToggleSearchButton.js +3 -3
  157. package/es/SearchTypeResult/ActiveFilterContent.js +3 -3
  158. package/es/SearchTypeResult/ActiveFilters.js +6 -7
  159. package/es/SearchTypeResult/PopupFilter.js +7 -7
  160. package/es/SearchTypeResult/ResultNavigation.js +4 -5
  161. package/es/SearchTypeResult/SearchFieldHeader.js +5 -5
  162. package/es/SearchTypeResult/SearchFilterContent.js +2 -3
  163. package/es/SearchTypeResult/SearchHeader.js +9 -9
  164. package/es/SearchTypeResult/SearchItem.js +8 -8
  165. package/es/SearchTypeResult/SearchItemList.js +12 -12
  166. package/es/SearchTypeResult/SearchItems.js +4 -4
  167. package/es/SearchTypeResult/SearchNotionsResult.js +4 -5
  168. package/es/SearchTypeResult/SearchSubjectItem.js +3 -4
  169. package/es/SearchTypeResult/SearchSubjectResult.js +1 -2
  170. package/es/SearchTypeResult/SearchTypeHeader.js +10 -10
  171. package/es/SearchTypeResult/SearchTypeResult.js +3 -3
  172. package/es/SearchTypeResult/SearchViewType.js +4 -5
  173. package/es/SearchTypeResult/components/ItemContexts.js +6 -6
  174. package/es/SearchTypeResult/components/ItemResourceHeader.js +7 -7
  175. package/es/SearchTypeResult/components/ItemTopicHeader.js +4 -5
  176. package/es/SearchTypeResult/components/SubjectFilters.js +2 -2
  177. package/es/SectionHeading/SectionHeading.js +2 -3
  178. package/es/SnackBar/DefaultSnackbar.js +2 -3
  179. package/es/SnackBar/SnackbarProvider.js +3 -3
  180. package/es/Subject/Subject.js +11 -12
  181. package/es/Subject/SubjectBanner.js +1 -2
  182. package/es/Subject/SubjectHeader.js +4 -5
  183. package/es/Subject/SubjectNewContent.js +8 -9
  184. package/es/Subject/SubjectSocial.js +2 -3
  185. package/es/Table/Table.js +4 -4
  186. package/es/TagSelector/Control.js +1 -2
  187. package/es/TagSelector/DropdownIndicator.js +2 -2
  188. package/es/TagSelector/Input.js +1 -2
  189. package/es/TagSelector/Menu.js +1 -2
  190. package/es/TagSelector/MenuList.js +1 -2
  191. package/es/TagSelector/Option.js +2 -3
  192. package/es/TagSelector/SelectContainer.js +1 -2
  193. package/es/TagSelector/TagSelector.js +3 -3
  194. package/es/TagSelector/ValueButton.js +1 -2
  195. package/es/ToolboxPage/ToolboxInfo.js +1 -2
  196. package/es/Topic/Loader.js +0 -1
  197. package/es/Topic/Topic.js +17 -18
  198. package/es/Translation/Translation.js +0 -1
  199. package/es/Translation/TranslationLine.js +0 -1
  200. package/es/TreeStructure/AddFolderButton.js +3 -3
  201. package/es/TreeStructure/ComboboxButton.js +3 -3
  202. package/es/TreeStructure/FolderItem.js +8 -8
  203. package/es/TreeStructure/FolderItems.js +2 -3
  204. package/es/TreeStructure/TreeStructure.js +6 -6
  205. package/es/User/UserInfo.js +2 -3
  206. package/es/locale/LocaleProvider.js +0 -1
  207. package/es/utils/createUniversalPortal.js +0 -1
  208. package/lib/Article/Article.d.ts +2 -2
  209. package/lib/Article/Article.js +3 -5
  210. package/lib/Article/ArticleByline.js +6 -9
  211. package/lib/Article/ArticleContent.js +1 -3
  212. package/lib/Article/ArticleFootNotes.js +2 -3
  213. package/lib/Article/ArticleHeaderWrapper.js +1 -3
  214. package/lib/Article/ArticleNotions.js +5 -6
  215. package/lib/Aside/Aside.js +0 -1
  216. package/lib/AudioPlayer/AudioPlayer.js +15 -18
  217. package/lib/AudioPlayer/Controls.js +22 -25
  218. package/lib/AudioPlayer/SpeechControl.js +1 -4
  219. package/lib/AudioPlayer/initAudioPlayers.d.ts +7 -0
  220. package/lib/AudioPlayer/initAudioPlayers.js +2 -1
  221. package/lib/BannerCard/BannerCard.d.ts +7 -0
  222. package/lib/BannerCard/BannerCard.js +7 -8
  223. package/lib/BlogPosts/BlogPost.js +4 -5
  224. package/lib/BlogPosts/BlogPostWrapper.js +1 -2
  225. package/lib/Breadcrumb/Breadcrumb.js +3 -5
  226. package/lib/Breadcrumb/BreadcrumbItem.d.ts +2 -2
  227. package/lib/Breadcrumb/BreadcrumbItem.js +7 -10
  228. package/lib/Breadcrumb/HeaderBreadcrumb.js +3 -4
  229. package/lib/Breadcrumb/HomeBreadcrumb.js +6 -7
  230. package/lib/CampaignBlock/CampaignBlock.js +8 -9
  231. package/lib/CompetenceGoalTab/CompetenceGoalItem.js +0 -1
  232. package/lib/CompetenceGoalTab/CompetenceGoalTab.js +3 -6
  233. package/lib/CompetenceGoalTab/CompetenceItem.js +5 -6
  234. package/lib/CompetenceGoalTab/CoreElementItem.js +0 -1
  235. package/lib/CompetenceGoalTab/SearchButton.js +2 -3
  236. package/lib/ContentLoader/index.js +0 -2
  237. package/lib/ContentPlaceholder/ContentPlaceholder.js +3 -4
  238. package/lib/ContentTypeBadge/ContentTypeBadge.js +0 -1
  239. package/lib/CopyParagraphButton/CopyParagraphButton.js +3 -6
  240. package/lib/CopyParagraphButton/initCopyParagraphButtons.js +2 -1
  241. package/lib/CreatedBy/CreatedBy.js +4 -5
  242. package/lib/Dialog/Dialog.js +0 -1
  243. package/lib/Embed/H5pEmbed.js +1 -2
  244. package/lib/Embed/ImageEmbed.js +1 -1
  245. package/lib/ErrorMessage/ErrorMessage.js +6 -7
  246. package/lib/ErrorMessage/ErrorResourceAccessDenied.js +1 -2
  247. package/lib/FactBox/FactBox.js +0 -1
  248. package/lib/FactBox/FactBoxV2.js +4 -6
  249. package/lib/Figure/Figure.js +0 -1
  250. package/lib/Figure/FigureBylineExpandButton.js +0 -2
  251. package/lib/Figure/FigureExpandButton.js +0 -2
  252. package/lib/Figure/FigureLicense.js +0 -1
  253. package/lib/Figure/FigureLicenseDialog.js +0 -1
  254. package/lib/Figure/FigureOpenDialogButton.js +0 -2
  255. package/lib/FileList/File.js +3 -4
  256. package/lib/FileList/FileList.js +3 -4
  257. package/lib/Filter/FilterButtons.js +10 -13
  258. package/lib/Filter/FilterCarousel.js +5 -7
  259. package/lib/Filter/FilterList.js +1 -3
  260. package/lib/Filter/FilterListPhone.js +1 -3
  261. package/lib/Filter/ToggleItem.js +0 -2
  262. package/lib/Footer/EditorName.js +0 -2
  263. package/lib/Footer/Footer.js +8 -9
  264. package/lib/Footer/FooterLinks.js +6 -7
  265. package/lib/Footer/FooterPrivacy.js +3 -4
  266. package/lib/Footer/FooterText.js +1 -2
  267. package/lib/Frontpage/FrontpageAllSubjects.js +8 -11
  268. package/lib/Frontpage/FrontpageFilm.js +5 -6
  269. package/lib/Frontpage/FrontpageHeader.js +4 -5
  270. package/lib/Frontpage/FrontpageInfo.js +1 -2
  271. package/lib/Frontpage/FrontpageMultidisciplinarySubject.d.ts +11 -11
  272. package/lib/Frontpage/FrontpageMultidisciplinarySubject.js +7 -8
  273. package/lib/Frontpage/FrontpageProgramMenu.js +4 -7
  274. package/lib/Frontpage/FrontpageSearch.js +3 -6
  275. package/lib/Frontpage/FrontpageToolbox.js +4 -5
  276. package/lib/Frontpage/illustrations/Fellesfag.js +0 -2
  277. package/lib/Frontpage/illustrations/FrontpageHeaderIllustration.js +0 -2
  278. package/lib/Frontpage/illustrations/FrontpageSubjectIllustration.js +2 -4
  279. package/lib/Frontpage/illustrations/MenuFellesfag.js +0 -2
  280. package/lib/Frontpage/illustrations/MenuStudiespesialiserende.js +0 -2
  281. package/lib/Frontpage/illustrations/MenuYrkesfag.js +0 -2
  282. package/lib/Frontpage/illustrations/Studiespesialiserende.js +0 -2
  283. package/lib/Frontpage/illustrations/Yrkesfag.js +0 -2
  284. package/lib/Grid/Grid.js +18 -32
  285. package/lib/Hero/Hero.js +1 -2
  286. package/lib/Image/Image.d.ts +2 -2
  287. package/lib/Image/Image.js +12 -13
  288. package/lib/Image/ImageLink.js +1 -2
  289. package/lib/Image/LazyLoadImage.js +8 -9
  290. package/lib/InfoBlock/InfoBlock.js +5 -6
  291. package/lib/InfoBox/InfoBox.js +1 -2
  292. package/lib/InfoWidget/InfoWidget.js +8 -9
  293. package/lib/KeyFigure/KeyFigure.js +4 -4
  294. package/lib/LanguageSelector/LanguageSelector.js +5 -6
  295. package/lib/Layout/Content.js +0 -2
  296. package/lib/Layout/LayoutItem.js +8 -9
  297. package/lib/Layout/OneColumn.js +0 -1
  298. package/lib/Layout/PageContainer.js +0 -1
  299. package/lib/LearningPaths/LearningPathContent.js +1 -2
  300. package/lib/LearningPaths/LearningPathInformation.js +3 -4
  301. package/lib/LearningPaths/LearningPathLastStepNavigation.js +5 -6
  302. package/lib/LearningPaths/LearningPathMenu.js +4 -7
  303. package/lib/LearningPaths/LearningPathMenuAside.js +5 -6
  304. package/lib/LearningPaths/LearningPathMenuAsideCopyright.js +2 -3
  305. package/lib/LearningPaths/LearningPathMenuContent.js +8 -9
  306. package/lib/LearningPaths/LearningPathMenuIntro.js +8 -9
  307. package/lib/LearningPaths/LearningPathMenuModalWrapper.js +3 -6
  308. package/lib/LearningPaths/LearningPathMobileHeader.js +2 -3
  309. package/lib/LearningPaths/LearningPathMobileStepInfo.js +1 -2
  310. package/lib/LearningPaths/LearningPathSticky.js +5 -6
  311. package/lib/LearningPaths/LearningPathWrapper.js +1 -2
  312. package/lib/LetterFilter/LetterFilter.js +3 -6
  313. package/lib/LicenseByline/EmbedByline.d.ts +1 -1
  314. package/lib/LicenseByline/EmbedByline.js +15 -8
  315. package/lib/LicenseByline/LicenseDescription.d.ts +1 -1
  316. package/lib/LicenseByline/LicenseDescription.js +10 -23
  317. package/lib/Logo/Logo.js +0 -1
  318. package/lib/Logo/SvgLogo.js +0 -2
  319. package/lib/Masthead/Masthead.js +6 -7
  320. package/lib/Masthead/MastheadSearchModal.js +3 -6
  321. package/lib/Masthead/SkipToMainContent.js +1 -2
  322. package/lib/MediaList/MediaList.js +2 -3
  323. package/lib/Messages/MessageBanner.js +3 -4
  324. package/lib/Messages/MessageBox.js +10 -11
  325. package/lib/Messages/MessageBoxTag.js +1 -2
  326. package/lib/MultidisciplinarySubject/List.js +3 -4
  327. package/lib/MultidisciplinarySubject/ListItem.js +7 -8
  328. package/lib/MultidisciplinarySubject/MultidisciplinarySubject.js +6 -7
  329. package/lib/MyNdla/Resource/Folder.js +7 -8
  330. package/lib/MyNdla/Resource/FolderInput.d.ts +2 -2
  331. package/lib/MyNdla/Resource/FolderInput.js +4 -6
  332. package/lib/NDLAFilm/AboutNdlaFilm.js +1 -2
  333. package/lib/NDLAFilm/AllMoviesAlphabetically.js +10 -13
  334. package/lib/NDLAFilm/FilmContentCard.js +3 -4
  335. package/lib/NDLAFilm/FilmContentCardTags.js +2 -3
  336. package/lib/NDLAFilm/FilmMovieList.js +1 -2
  337. package/lib/NDLAFilm/FilmMovieSearch.js +4 -7
  338. package/lib/NDLAFilm/FilmSlideshow.js +8 -10
  339. package/lib/NDLAFilm/MovieGrid.js +2 -3
  340. package/lib/NDLAFilm/NavigationArrow.d.ts +3 -3
  341. package/lib/NDLAFilm/NavigationArrow.js +6 -7
  342. package/lib/NDLAFilm/SlideshowIndicator.js +2 -3
  343. package/lib/NDLAFilm/VisualElement.js +1 -2
  344. package/lib/Navigation/NavigationBox.js +22 -23
  345. package/lib/Navigation/NavigationTopicAbout.js +15 -16
  346. package/lib/NoContentBox/NoContentBox.js +0 -2
  347. package/lib/Notion/ConceptNotion.js +2 -2
  348. package/lib/Notion/FigureNotion.js +1 -2
  349. package/lib/Notion/Notion.js +5 -8
  350. package/lib/Notion/NotionImage.js +2 -3
  351. package/lib/Notion/NotionVisualElement.js +2 -3
  352. package/lib/Programme/Programme.js +5 -6
  353. package/lib/Programme/ProgrammeSubjects.js +2 -5
  354. package/lib/RadioButtonGroup/RadioButtonGroup.js +5 -7
  355. package/lib/RelatedArticleList/RelatedArticleList.js +1 -3
  356. package/lib/Resource/BlockResource.js +6 -7
  357. package/lib/Resource/ListResource.js +6 -7
  358. package/lib/Resource/resourceComponents.d.ts +2 -2
  359. package/lib/Resource/resourceComponents.js +12 -12
  360. package/lib/ResourceBox/ResourceBox.d.ts +8 -0
  361. package/lib/ResourceBox/ResourceBox.js +6 -7
  362. package/lib/ResourceGroup/ResourceGroup.js +5 -6
  363. package/lib/ResourceGroup/ResourceItem.js +14 -15
  364. package/lib/ResourceGroup/ResourceList.js +4 -5
  365. package/lib/ResourcesWrapper/ResourcesTopicTitle.js +13 -14
  366. package/lib/ResourcesWrapper/ResourcesWrapper.js +1 -2
  367. package/lib/Search/ActiveFilterContent.d.ts +4 -4
  368. package/lib/Search/ActiveFilterContent.js +3 -6
  369. package/lib/Search/ActiveFilters.js +8 -9
  370. package/lib/Search/ContentTypeResult.js +2 -4
  371. package/lib/Search/LoadingWrapper.js +1 -2
  372. package/lib/Search/SearchField.js +4 -5
  373. package/lib/Search/SearchFieldForm.js +5 -6
  374. package/lib/Search/SearchResult.js +11 -13
  375. package/lib/Search/SearchResultSleeve.js +9 -12
  376. package/lib/Search/ToggleSearchButton.d.ts +2 -2
  377. package/lib/Search/ToggleSearchButton.js +3 -5
  378. package/lib/SearchTypeResult/ActiveFilterContent.d.ts +4 -4
  379. package/lib/SearchTypeResult/ActiveFilterContent.js +3 -6
  380. package/lib/SearchTypeResult/ActiveFilters.js +8 -9
  381. package/lib/SearchTypeResult/PopupFilter.js +7 -10
  382. package/lib/SearchTypeResult/ResultNavigation.js +4 -5
  383. package/lib/SearchTypeResult/SearchFieldHeader.js +5 -8
  384. package/lib/SearchTypeResult/SearchFilterContent.js +2 -3
  385. package/lib/SearchTypeResult/SearchHeader.js +9 -12
  386. package/lib/SearchTypeResult/SearchItem.js +8 -11
  387. package/lib/SearchTypeResult/SearchItemList.js +12 -15
  388. package/lib/SearchTypeResult/SearchItems.d.ts +2 -2
  389. package/lib/SearchTypeResult/SearchItems.js +4 -7
  390. package/lib/SearchTypeResult/SearchNotionsResult.js +4 -5
  391. package/lib/SearchTypeResult/SearchSubjectItem.js +3 -4
  392. package/lib/SearchTypeResult/SearchSubjectResult.js +1 -2
  393. package/lib/SearchTypeResult/SearchTypeHeader.d.ts +2 -2
  394. package/lib/SearchTypeResult/SearchTypeHeader.js +10 -13
  395. package/lib/SearchTypeResult/SearchTypeResult.d.ts +2 -2
  396. package/lib/SearchTypeResult/SearchTypeResult.js +3 -5
  397. package/lib/SearchTypeResult/SearchViewType.js +4 -5
  398. package/lib/SearchTypeResult/components/ItemContexts.js +6 -9
  399. package/lib/SearchTypeResult/components/ItemResourceHeader.js +7 -10
  400. package/lib/SearchTypeResult/components/ItemTopicHeader.js +4 -5
  401. package/lib/SearchTypeResult/components/SubjectFilters.js +2 -4
  402. package/lib/SectionHeading/SectionHeading.js +5 -7
  403. package/lib/SnackBar/DefaultSnackbar.js +2 -3
  404. package/lib/SnackBar/SnackbarProvider.js +3 -5
  405. package/lib/Subject/Subject.js +14 -15
  406. package/lib/Subject/SubjectBanner.js +1 -2
  407. package/lib/Subject/SubjectHeader.js +5 -6
  408. package/lib/Subject/SubjectNewContent.js +8 -9
  409. package/lib/Subject/SubjectSocial.js +2 -3
  410. package/lib/Table/Table.js +4 -6
  411. package/lib/TagSelector/Control.js +1 -2
  412. package/lib/TagSelector/DropdownIndicator.js +2 -4
  413. package/lib/TagSelector/Input.js +1 -3
  414. package/lib/TagSelector/Menu.js +1 -3
  415. package/lib/TagSelector/MenuList.d.ts +3 -3
  416. package/lib/TagSelector/MenuList.js +1 -2
  417. package/lib/TagSelector/Option.js +2 -3
  418. package/lib/TagSelector/SelectContainer.js +1 -2
  419. package/lib/TagSelector/TagSelector.js +3 -5
  420. package/lib/TagSelector/ValueButton.d.ts +3 -3
  421. package/lib/TagSelector/ValueButton.js +1 -2
  422. package/lib/ToolboxPage/ToolboxInfo.js +1 -2
  423. package/lib/Topic/Loader.js +0 -1
  424. package/lib/Topic/Topic.js +19 -20
  425. package/lib/Translation/Translation.js +0 -1
  426. package/lib/Translation/TranslationLine.js +0 -1
  427. package/lib/TreeStructure/AddFolderButton.js +3 -6
  428. package/lib/TreeStructure/ComboboxButton.d.ts +2 -2
  429. package/lib/TreeStructure/ComboboxButton.js +3 -6
  430. package/lib/TreeStructure/FolderItem.js +8 -11
  431. package/lib/TreeStructure/FolderItems.js +2 -3
  432. package/lib/TreeStructure/TreeStructure.js +6 -9
  433. package/lib/User/UserInfo.js +2 -3
  434. package/lib/locale/LocaleProvider.js +0 -2
  435. package/lib/utils/createUniversalPortal.js +0 -1
  436. package/package.json +20 -20
  437. package/src/Article/Article.tsx +1 -1
  438. package/src/Article/ArticleByline.tsx +1 -1
  439. package/src/Article/ArticleContent.tsx +1 -1
  440. package/src/Article/ArticleFootNotes.tsx +0 -1
  441. package/src/Article/ArticleHeaderWrapper.tsx +1 -1
  442. package/src/Article/ArticleNotions.tsx +0 -1
  443. package/src/Aside/Aside.tsx +1 -1
  444. package/src/AudioPlayer/AudioPlayer.tsx +1 -1
  445. package/src/AudioPlayer/Controls.tsx +1 -1
  446. package/src/AudioPlayer/SpeechControl.tsx +1 -1
  447. package/src/AudioPlayer/initAudioPlayers.tsx +3 -1
  448. package/src/BannerCard/BannerCard.tsx +1 -1
  449. package/src/BlogPost/BlogPost.stories.tsx +0 -1
  450. package/src/BlogPosts/BlogPost.tsx +0 -1
  451. package/src/BlogPosts/BlogPostWrapper.tsx +1 -1
  452. package/src/Breadcrumb/Breadcrumb.tsx +1 -1
  453. package/src/Breadcrumb/BreadcrumbItem.tsx +1 -1
  454. package/src/Breadcrumb/HeaderBreadcrumb.tsx +0 -1
  455. package/src/Breadcrumb/HomeBreadcrumb.tsx +0 -1
  456. package/src/CampaignBlock/CampaignBlock.stories.tsx +0 -1
  457. package/src/CampaignBlock/CampaignBlock.tsx +1 -1
  458. package/src/CompetenceGoalTab/CompetenceGoalItem.tsx +0 -1
  459. package/src/CompetenceGoalTab/CompetenceGoalTab.tsx +1 -1
  460. package/src/CompetenceGoalTab/CompetenceItem.tsx +0 -1
  461. package/src/CompetenceGoalTab/CoreElementItem.tsx +0 -1
  462. package/src/CompetenceGoalTab/SearchButton.tsx +0 -1
  463. package/src/ContactBlock/Contactblock.stories.tsx +0 -1
  464. package/src/ContentLoader/index.tsx +1 -1
  465. package/src/ContentPlaceholder/ContentPlaceholder.tsx +0 -1
  466. package/src/ContentTypeBadge/ContentTypeBadge.tsx +0 -1
  467. package/src/CopyParagraphButton/CopyParagraphButton.tsx +1 -1
  468. package/src/CopyParagraphButton/initCopyParagraphButtons.tsx +1 -1
  469. package/src/CreatedBy/CreatedBy.tsx +0 -1
  470. package/src/Dialog/Dialog.tsx +1 -1
  471. package/src/Embed/AudioEmbed.stories.tsx +32 -10
  472. package/src/Embed/BrightcoveEmbed.stories.tsx +0 -1
  473. package/src/Embed/ConceptEmbed.stories.tsx +30 -10
  474. package/src/Embed/ExternalEmbed.stories.tsx +0 -1
  475. package/src/Embed/H5pEmbed.stories.tsx +0 -1
  476. package/src/Embed/H5pEmbed.tsx +0 -1
  477. package/src/Embed/IframeEmbed.stories.tsx +32 -11
  478. package/src/Embed/ImageEmbed.stories.tsx +38 -13
  479. package/src/Embed/ImageEmbed.tsx +1 -1
  480. package/src/ErrorMessage/ErrorMessage.tsx +1 -1
  481. package/src/ErrorMessage/ErrorResourceAccessDenied.tsx +0 -1
  482. package/src/FactBox/FactBox.tsx +1 -1
  483. package/src/FactBox/FactBoxV2.tsx +1 -1
  484. package/src/Figure/Figure.tsx +1 -1
  485. package/src/Figure/FigureBylineExpandButton.tsx +0 -1
  486. package/src/Figure/FigureExpandButton.tsx +0 -1
  487. package/src/Figure/FigureLicense.tsx +1 -1
  488. package/src/Figure/FigureLicenseDialog.tsx +1 -1
  489. package/src/Figure/FigureOpenDialogButton.tsx +0 -1
  490. package/src/FileList/File.tsx +0 -1
  491. package/src/FileList/FileList.tsx +0 -1
  492. package/src/Filter/FilterButtons.tsx +1 -1
  493. package/src/Filter/FilterCarousel.tsx +1 -1
  494. package/src/Filter/FilterList.tsx +1 -1
  495. package/src/Filter/FilterListPhone.tsx +1 -1
  496. package/src/Filter/ToggleItem.tsx +1 -1
  497. package/src/Footer/EditorName.tsx +0 -2
  498. package/src/Footer/Footer.tsx +1 -1
  499. package/src/Footer/FooterLinks.tsx +1 -1
  500. package/src/Footer/FooterPrivacy.tsx +0 -1
  501. package/src/Footer/FooterText.tsx +1 -1
  502. package/src/Frontpage/FrontpageAllSubjects.tsx +1 -1
  503. package/src/Frontpage/FrontpageFilm.tsx +0 -1
  504. package/src/Frontpage/FrontpageHeader.tsx +1 -1
  505. package/src/Frontpage/FrontpageInfo.tsx +1 -1
  506. package/src/Frontpage/FrontpageMultidisciplinarySubject.tsx +0 -1
  507. package/src/Frontpage/FrontpageProgramMenu.tsx +1 -1
  508. package/src/Frontpage/FrontpageSearch.tsx +1 -1
  509. package/src/Frontpage/FrontpageToolbox.tsx +0 -1
  510. package/src/Frontpage/illustrations/Fellesfag.tsx +0 -2
  511. package/src/Frontpage/illustrations/FrontpageHeaderIllustration.tsx +0 -2
  512. package/src/Frontpage/illustrations/FrontpageSubjectIllustration.tsx +0 -1
  513. package/src/Frontpage/illustrations/MenuFellesfag.tsx +0 -2
  514. package/src/Frontpage/illustrations/MenuStudiespesialiserende.tsx +0 -2
  515. package/src/Frontpage/illustrations/MenuYrkesfag.tsx +0 -2
  516. package/src/Frontpage/illustrations/Studiespesialiserende.tsx +0 -2
  517. package/src/Frontpage/illustrations/Yrkesfag.tsx +0 -2
  518. package/src/Gloss/Gloss.stories.tsx +0 -1
  519. package/src/Grid/Grid.stories.tsx +0 -1
  520. package/src/Grid/Grid.tsx +9 -31
  521. package/src/Hero/Hero.stories.tsx +0 -1
  522. package/src/Hero/Hero.tsx +1 -1
  523. package/src/Image/Image.tsx +9 -9
  524. package/src/Image/ImageLink.tsx +1 -1
  525. package/src/Image/LazyLoadImage.tsx +0 -2
  526. package/src/Image/__tests__/Image-test.jsx +0 -1
  527. package/src/Image/__tests__/__snapshots__/Image-test.jsx.snap +5 -5
  528. package/src/InfoBlock/InfoBlock.tsx +1 -1
  529. package/src/InfoBox/InfoBox.tsx +1 -1
  530. package/src/InfoWidget/InfoWidget.tsx +1 -1
  531. package/src/KeyFigure/KeyFigure.stories.tsx +0 -1
  532. package/src/KeyFigure/KeyFigure.tsx +0 -1
  533. package/src/LanguageSelector/LanguageSelector.stories.tsx +0 -1
  534. package/src/LanguageSelector/LanguageSelector.tsx +0 -1
  535. package/src/Layout/Content.tsx +1 -1
  536. package/src/Layout/LayoutItem.tsx +1 -1
  537. package/src/Layout/OneColumn.tsx +1 -1
  538. package/src/Layout/PageContainer.tsx +1 -1
  539. package/src/LearningPaths/LearningPathContent.tsx +1 -1
  540. package/src/LearningPaths/LearningPathInformation.tsx +0 -1
  541. package/src/LearningPaths/LearningPathLastStepNavigation.tsx +1 -1
  542. package/src/LearningPaths/LearningPathMenu.stories.tsx +0 -1
  543. package/src/LearningPaths/LearningPathMenu.tsx +1 -1
  544. package/src/LearningPaths/LearningPathMenuAside.tsx +0 -1
  545. package/src/LearningPaths/LearningPathMenuAsideCopyright.tsx +0 -1
  546. package/src/LearningPaths/LearningPathMenuContent.tsx +0 -1
  547. package/src/LearningPaths/LearningPathMenuIntro.tsx +1 -1
  548. package/src/LearningPaths/LearningPathMenuModalWrapper.tsx +1 -1
  549. package/src/LearningPaths/LearningPathMobileHeader.tsx +0 -1
  550. package/src/LearningPaths/LearningPathMobileStepInfo.tsx +0 -1
  551. package/src/LearningPaths/LearningPathSticky.tsx +1 -1
  552. package/src/LearningPaths/LearningPathWrapper.tsx +1 -1
  553. package/src/LetterFilter/LetterFilter.stories.tsx +0 -1
  554. package/src/LetterFilter/LetterFilter.tsx +1 -1
  555. package/src/LicenseByline/EmbedByline.stories.tsx +0 -1
  556. package/src/LicenseByline/EmbedByline.tsx +9 -3
  557. package/src/LicenseByline/LicenseDescription.tsx +6 -7
  558. package/src/Logo/Logo.tsx +0 -1
  559. package/src/Logo/SvgLogo.tsx +0 -1
  560. package/src/Masthead/Masthead.tsx +1 -1
  561. package/src/Masthead/MastheadSearchModal.tsx +1 -1
  562. package/src/Masthead/SkipToMainContent.tsx +0 -1
  563. package/src/MediaList/MediaList.tsx +1 -1
  564. package/src/Messages/MessageBanner.tsx +0 -1
  565. package/src/Messages/MessageBox.tsx +0 -1
  566. package/src/Messages/MessageBoxTag.tsx +0 -1
  567. package/src/MultidisciplinarySubject/List.tsx +0 -1
  568. package/src/MultidisciplinarySubject/ListItem.tsx +0 -1
  569. package/src/MultidisciplinarySubject/MultidisciplinarySubject.tsx +1 -1
  570. package/src/MyNdla/Resource/Folder.stories.tsx +0 -1
  571. package/src/MyNdla/Resource/Folder.tsx +1 -1
  572. package/src/MyNdla/Resource/FolderInput.tsx +1 -1
  573. package/src/NDLAFilm/AboutNdlaFilm.tsx +1 -1
  574. package/src/NDLAFilm/AllMoviesAlphabetically.tsx +1 -1
  575. package/src/NDLAFilm/FilmContentCard.tsx +1 -1
  576. package/src/NDLAFilm/FilmContentCardTags.tsx +0 -1
  577. package/src/NDLAFilm/FilmMovieList.tsx +0 -1
  578. package/src/NDLAFilm/FilmMovieSearch.tsx +1 -1
  579. package/src/NDLAFilm/FilmSlideshow.tsx +1 -1
  580. package/src/NDLAFilm/MovieGrid.tsx +0 -1
  581. package/src/NDLAFilm/NavigationArrow.tsx +0 -1
  582. package/src/NDLAFilm/SlideshowIndicator.tsx +0 -1
  583. package/src/NDLAFilm/VisualElement.tsx +0 -1
  584. package/src/Navigation/NavigationBox.tsx +2 -2
  585. package/src/Navigation/NavigationTopicAbout.tsx +1 -1
  586. package/src/NoContentBox/NoContentBox.tsx +0 -1
  587. package/src/Notion/ConceptNotion.tsx +1 -1
  588. package/src/Notion/FigureNotion.tsx +1 -1
  589. package/src/Notion/Notion.tsx +1 -1
  590. package/src/Notion/NotionImage.tsx +0 -1
  591. package/src/Notion/NotionVisualElement.tsx +1 -1
  592. package/src/Programme/Programme.tsx +0 -1
  593. package/src/Programme/ProgrammeSubjects.tsx +1 -1
  594. package/src/ProgrammeCard/ProgrammeCard.stories.tsx +0 -1
  595. package/src/RadioButtonGroup/RadioButtonGroup.tsx +1 -1
  596. package/src/RelatedArticleList/RelatedArticleList.tsx +1 -1
  597. package/src/Resource/BlockResource.stories.tsx +0 -1
  598. package/src/Resource/BlockResource.tsx +1 -1
  599. package/src/Resource/ListResource.tsx +1 -1
  600. package/src/Resource/Resource.stories.tsx +0 -1
  601. package/src/Resource/resourceComponents.tsx +1 -1
  602. package/src/ResourceBox/ResourceBox.tsx +1 -1
  603. package/src/ResourceGroup/ResourceGroup.tsx +1 -1
  604. package/src/ResourceGroup/ResourceItem.tsx +1 -1
  605. package/src/ResourceGroup/ResourceList.tsx +1 -1
  606. package/src/ResourcesWrapper/ResourcesTopicTitle.tsx +0 -1
  607. package/src/ResourcesWrapper/ResourcesWrapper.tsx +1 -1
  608. package/src/Search/ActiveFilterContent.tsx +1 -1
  609. package/src/Search/ActiveFilters.tsx +0 -1
  610. package/src/Search/ContentTypeResult.tsx +1 -1
  611. package/src/Search/LoadingWrapper.tsx +0 -1
  612. package/src/Search/SearchField.tsx +1 -1
  613. package/src/Search/SearchFieldForm.tsx +1 -1
  614. package/src/Search/SearchResult.tsx +1 -1
  615. package/src/Search/SearchResultSleeve.tsx +1 -1
  616. package/src/Search/ToggleSearchButton.tsx +1 -1
  617. package/src/SearchTypeResult/ActiveFilterContent.tsx +1 -1
  618. package/src/SearchTypeResult/ActiveFilters.tsx +1 -1
  619. package/src/SearchTypeResult/PopupFilter.tsx +1 -1
  620. package/src/SearchTypeResult/ResultNavigation.tsx +0 -1
  621. package/src/SearchTypeResult/SearchFieldHeader.tsx +1 -1
  622. package/src/SearchTypeResult/SearchFilterContent.tsx +0 -1
  623. package/src/SearchTypeResult/SearchHeader.tsx +1 -2
  624. package/src/SearchTypeResult/SearchItem.tsx +1 -1
  625. package/src/SearchTypeResult/SearchItemList.tsx +1 -1
  626. package/src/SearchTypeResult/SearchItems.tsx +1 -1
  627. package/src/SearchTypeResult/SearchNotionsResult.tsx +1 -1
  628. package/src/SearchTypeResult/SearchSubjectItem.tsx +0 -1
  629. package/src/SearchTypeResult/SearchSubjectResult.tsx +0 -1
  630. package/src/SearchTypeResult/SearchTypeHeader.tsx +1 -1
  631. package/src/SearchTypeResult/SearchTypeResult.tsx +1 -1
  632. package/src/SearchTypeResult/SearchViewType.tsx +0 -1
  633. package/src/SearchTypeResult/components/ItemContexts.tsx +1 -1
  634. package/src/SearchTypeResult/components/ItemResourceHeader.tsx +1 -1
  635. package/src/SearchTypeResult/components/ItemTopicHeader.tsx +1 -1
  636. package/src/SearchTypeResult/components/SubjectFilters.tsx +1 -1
  637. package/src/SectionHeading/SectionHeading.tsx +1 -1
  638. package/src/SnackBar/DefaultSnackbar.tsx +0 -1
  639. package/src/SnackBar/SnackbarProvider.tsx +1 -1
  640. package/src/Subject/Subject.tsx +1 -1
  641. package/src/Subject/SubjectBanner.tsx +0 -1
  642. package/src/Subject/SubjectHeader.tsx +0 -1
  643. package/src/Subject/SubjectNewContent.tsx +0 -1
  644. package/src/Subject/SubjectSocial.tsx +1 -1
  645. package/src/Table/Table.tsx +1 -1
  646. package/src/TagSelector/Control.tsx +0 -1
  647. package/src/TagSelector/DropdownIndicator.tsx +1 -1
  648. package/src/TagSelector/Input.tsx +0 -1
  649. package/src/TagSelector/Menu.tsx +0 -1
  650. package/src/TagSelector/MenuList.tsx +0 -1
  651. package/src/TagSelector/Option.tsx +0 -1
  652. package/src/TagSelector/SelectContainer.tsx +0 -1
  653. package/src/TagSelector/TagSelector.tsx +1 -1
  654. package/src/TagSelector/ValueButton.tsx +0 -1
  655. package/src/ToolboxPage/ToolboxInfo.tsx +1 -1
  656. package/src/Topic/Loader.tsx +0 -1
  657. package/src/Topic/Topic.tsx +1 -1
  658. package/src/Translation/Translation.tsx +1 -1
  659. package/src/Translation/TranslationLine.tsx +1 -1
  660. package/src/TreeStructure/AddFolderButton.tsx +1 -1
  661. package/src/TreeStructure/ComboboxButton.tsx +1 -1
  662. package/src/TreeStructure/FolderItem.tsx +1 -1
  663. package/src/TreeStructure/FolderItems.tsx +1 -1
  664. package/src/TreeStructure/TreeStructure.tsx +1 -1
  665. package/src/User/UserInfo.tsx +0 -1
  666. package/src/locale/LocaleProvider.tsx +1 -1
  667. package/src/utils/createUniversalPortal.tsx +1 -1
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import styled from '@emotion/styled';
11
10
  import { User } from '@ndla/icons/common';
12
11
  import { spacing, fonts, colors } from '@ndla/core';
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import styled from '@emotion/styled';
11
10
  import { css } from '@emotion/react';
12
11
  import { colors, spacing, spacingUnit, fonts, mq, breakpoints, animations, utils } from '@ndla/core';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { ReactNode } from 'react';
9
+ import { ReactNode } from 'react';
10
10
  import styled from '@emotion/styled';
11
11
  import { css } from '@emotion/react';
12
12
  import { useTranslation } from 'react-i18next';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { ReactNode, useCallback, useState } from 'react';
9
+ import { ReactNode, useCallback, useState } from 'react';
10
10
  import { spacing, mq, breakpoints, colors } from '@ndla/core';
11
11
  import { ModalHeader, ModalBody, ModalTrigger, ModalCloseButton, Modal, ModalContent } from '@ndla/modal';
12
12
  import { css } from '@emotion/react';
@@ -8,7 +8,6 @@
8
8
 
9
9
  import styled from '@emotion/styled';
10
10
  import { colors, fonts, spacing } from '@ndla/core';
11
- import React from 'react';
12
11
  import { useTranslation } from 'react-i18next';
13
12
  import { LearningPathBadge } from '../ContentTypeBadge';
14
13
 
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import styled from '@emotion/styled';
11
10
  import { mq, breakpoints, typography } from '@ndla/core';
12
11
  import { useTranslation } from 'react-i18next';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { ReactNode } from 'react';
9
+ import { ReactNode } from 'react';
10
10
  import styled from '@emotion/styled';
11
11
  import { css } from '@emotion/react';
12
12
  import { colors, spacing, animations, mq, breakpoints } from '@ndla/core';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { ReactNode } from 'react';
9
+ import { ReactNode } from 'react';
10
10
  import styled from '@emotion/styled';
11
11
  import { spacing, spacingUnit, breakpoints, mq } from '@ndla/core';
12
12
 
@@ -8,7 +8,6 @@
8
8
 
9
9
  import { Meta, StoryFn } from '@storybook/react';
10
10
  import { useArgs } from '@storybook/client-api';
11
- import React from 'react';
12
11
  import { defaultParameters } from '../../../../stories/defaults';
13
12
  import LetterFilter from './LetterFilter';
14
13
 
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import styled from '@emotion/styled';
10
- import React, { useMemo } from 'react';
10
+ import { useMemo } from 'react';
11
11
  import { colors, fonts, spacing } from '@ndla/core';
12
12
  import { useTranslation } from 'react-i18next';
13
13
  import { IconButtonV2 as IconButton } from '@ndla/button';
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import { Meta, StoryFn } from '@storybook/react';
11
10
  import styled from '@emotion/styled';
12
11
  import { breakpoints, mq, spacing } from '@ndla/core';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import { ReactNode } from 'react';
9
+ import { ReactNode, useMemo } from 'react';
10
10
  import { useTranslation } from 'react-i18next';
11
11
  import styled from '@emotion/styled';
12
12
  import { css } from '@emotion/react';
@@ -17,6 +17,7 @@ import { ICopyright as AudioCopyright } from '@ndla/types-backend/audio-api';
17
17
  import { ICopyright as ConceptCopyright } from '@ndla/types-backend/concept-api';
18
18
  import { BrightcoveCopyright } from '@ndla/types-embed';
19
19
  import { WarningOutline } from '@ndla/icons/common';
20
+ import { parseMarkdown } from '@ndla/util';
20
21
  import LicenseLink from './LicenseLink';
21
22
  import LicenseDescription from './LicenseDescription';
22
23
 
@@ -131,7 +132,7 @@ const EmbedByline = ({
131
132
  type,
132
133
  topRounded,
133
134
  bottomRounded,
134
- description,
135
+ description: descriptionProp,
135
136
  children,
136
137
  visibleAlt,
137
138
  first = true,
@@ -139,7 +140,12 @@ const EmbedByline = ({
139
140
  ...props
140
141
  }: Props) => {
141
142
  const { t, i18n } = useTranslation();
142
- const strippedDescription = description?.trim();
143
+ const strippedDescription = descriptionProp?.trim();
144
+
145
+ const description = useMemo(() => {
146
+ const stripped = strippedDescription?.trim() ?? '';
147
+ return parseMarkdown(stripped, 'caption');
148
+ }, [strippedDescription]);
143
149
 
144
150
  if (props.error) {
145
151
  const typeString = type === 'h5p' ? 'H5P' : t(`embed.type.${type}`).toLowerCase();
@@ -7,18 +7,14 @@
7
7
  */
8
8
 
9
9
  import styled from '@emotion/styled';
10
- import { colors, spacing } from '@ndla/core';
10
+ import { spacing } from '@ndla/core';
11
11
  import { ReactNode } from 'react';
12
12
 
13
13
  interface Props {
14
- description: string;
14
+ description: ReactNode;
15
15
  icon?: ReactNode;
16
16
  }
17
17
 
18
- const StyledParagraph = styled.p`
19
- margin: 0;
20
- `;
21
-
22
18
  const StyledFigCaption = styled.figcaption`
23
19
  display: flex;
24
20
  gap: ${spacing.small};
@@ -29,13 +25,16 @@ const StyledFigCaption = styled.figcaption`
29
25
  color: unset;
30
26
  padding-bottom: ${spacing.xsmall};
31
27
  border-bottom: inherit;
28
+ p {
29
+ margin: 0;
30
+ }
32
31
  `;
33
32
 
34
33
  const LicenseDescription = ({ description, icon }: Props) => {
35
34
  return (
36
35
  <StyledFigCaption>
37
36
  {icon}
38
- <StyledParagraph>{description}</StyledParagraph>
37
+ {description}
39
38
  </StyledFigCaption>
40
39
  );
41
40
  };
package/src/Logo/Logo.tsx CHANGED
@@ -7,7 +7,6 @@
7
7
  */
8
8
  /* eslint-disable max-len */
9
9
 
10
- import React from 'react';
11
10
  import BEMHelper from 'react-bem-helper';
12
11
  import SafeLink from '@ndla/safelink';
13
12
  import SvgLogo from './SvgLogo';
@@ -7,7 +7,6 @@
7
7
  */
8
8
  /* eslint-disable max-len */
9
9
 
10
- import React from 'react';
11
10
  import { logoClasses } from './Logo';
12
11
 
13
12
  const LogoText = (locale?: string) => {
@@ -9,7 +9,7 @@
9
9
  import { css } from '@emotion/react';
10
10
  import styled from '@emotion/styled';
11
11
  import { breakpoints, colors, fonts, mq, spacing } from '@ndla/core';
12
- import React, { ReactNode } from 'react';
12
+ import { ReactNode } from 'react';
13
13
  import { MessageBanner } from '../Messages';
14
14
  import SkipToMainContent from './SkipToMainContent';
15
15
 
@@ -1,4 +1,4 @@
1
- import React, { ReactNode, useCallback, useState } from 'react';
1
+ import { ReactNode, useCallback, useState } from 'react';
2
2
  import { Drawer, Modal, ModalTrigger } from '@ndla/modal';
3
3
  import { IconButtonV2 as IconButton } from '@ndla/button';
4
4
  import { Cross } from '@ndla/icons/action';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { useTranslation } from 'react-i18next';
3
2
  import styled from '@emotion/styled';
4
3
  import { colors } from '@ndla/core';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { ReactNode } from 'react';
9
+ import { ReactNode } from 'react';
10
10
  import {
11
11
  getLicenseByAbbreviation,
12
12
  getResourceTypeNamespace,
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import styled from '@emotion/styled';
11
10
  import { colors, spacing } from '@ndla/core';
12
11
  // @ts-ignore
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import styled from '@emotion/styled';
11
10
  import { breakpoints, colors, fonts, mq, spacing } from '@ndla/core';
12
11
  import { InformationOutline, HumanMaleBoard, Forward, WarningOutline } from '@ndla/icons/common';
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import { useTranslation } from 'react-i18next';
11
10
 
12
11
  import styled from '@emotion/styled';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import styled from '@emotion/styled';
3
2
  import { breakpoints, mq } from '@ndla/core';
4
3
 
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import styled from '@emotion/styled';
3
2
  import { colors } from '@ndla/core';
4
3
  import SafeLink from '@ndla/safelink';
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
3
  import styled from '@emotion/styled';
4
4
  import { breakpoints, mq } from '@ndla/core';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { Meta, StoryFn } from '@storybook/react';
3
2
  import { Pencil } from '@ndla/icons/action';
4
3
  import { DeleteForever } from '@ndla/icons/editor';
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import styled from '@emotion/styled';
10
- import React, { ReactNode } from 'react';
10
+ import { ReactNode } from 'react';
11
11
  import { FolderOutlined, FolderShared } from '@ndla/icons/contentType';
12
12
  import { FileDocumentOutline, Share } from '@ndla/icons/common';
13
13
  import { fonts, spacing, colors, mq, breakpoints } from '@ndla/core';
@@ -9,7 +9,7 @@
9
9
  import styled from '@emotion/styled';
10
10
  import { IconButtonV2 } from '@ndla/button';
11
11
  import { Cross } from '@ndla/icons/action';
12
- import React, { ComponentProps, forwardRef, useEffect } from 'react';
12
+ import { ComponentProps, forwardRef, useEffect } from 'react';
13
13
  import { isMobile } from 'react-device-detect';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { colors, spacing } from '@ndla/core';
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
3
  import styled from '@emotion/styled';
4
4
  import { ModalHeader, ModalBody, ModalCloseButton, Modal, ModalTrigger, ModalContent } from '@ndla/modal';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { RefObject, useMemo, useRef } from 'react';
9
+ import { RefObject, useMemo, useRef } from 'react';
10
10
  import styled from '@emotion/styled';
11
11
  import { breakpoints, mq, spacing, spacingUnit, colors } from '@ndla/core';
12
12
  import SafeLink from '@ndla/safelink';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { HTMLAttributes } from 'react';
9
+ import { HTMLAttributes } from 'react';
10
10
  import { spacing, colors, fonts, breakpoints, misc } from '@ndla/core';
11
11
  import SafeLink from '@ndla/safelink';
12
12
  import styled from '@emotion/styled';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { spacing, spacingUnit, colors, fonts, misc } from '@ndla/core';
3
2
  import styled from '@emotion/styled';
4
3
  import { MovieResourceType } from './types';
@@ -5,7 +5,6 @@
5
5
  *
6
6
  */
7
7
 
8
- import React from 'react';
9
8
  import { Carousel, CalculatedCarouselProps } from '@ndla/carousel';
10
9
  import styled from '@emotion/styled';
11
10
  import { IconButtonV2 } from '@ndla/button';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { useCallback, useMemo } from 'react';
9
+ import { useCallback, useMemo } from 'react';
10
10
  import SafeLink from '@ndla/safelink';
11
11
  import { useTranslation } from 'react-i18next';
12
12
  import styled from '@emotion/styled';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { useCallback, useState } from 'react';
9
+ import { useCallback, useState } from 'react';
10
10
  import styled from '@emotion/styled';
11
11
  import { Carousel, CarouselAutosize } from '@ndla/carousel';
12
12
  import { breakpoints, colors, misc, mq, spacing, spacingUnit } from '@ndla/core';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import styled from '@emotion/styled';
3
2
  import { spacing } from '@ndla/core';
4
3
  import { CalculatedCarouselProps } from '@ndla/carousel';
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import { ChevronRight, ChevronLeft } from '@ndla/icons/common';
11
10
  import styled from '@emotion/styled';
12
11
  import { breakpoints, colors, mq, spacing } from '@ndla/core';
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import styled from '@emotion/styled';
11
10
  import { breakpoints, colors, mq, spacing } from '@ndla/core';
12
11
  import { MovieType } from './types';
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import styled from '@emotion/styled';
11
10
  import Image from '../Image';
12
11
 
@@ -1,8 +1,8 @@
1
- import React, { MouseEvent } from 'react';
1
+ import { MouseEvent } from 'react';
2
2
  import styled from '@emotion/styled';
3
3
  import { SafeLinkButton } from '@ndla/safelink';
4
4
  import { ButtonV2 } from '@ndla/button';
5
- import { breakpoints, colors, fonts, misc, mq, spacing } from '@ndla/core';
5
+ import { breakpoints, colors, misc, mq, spacing } from '@ndla/core';
6
6
  import { css } from '@emotion/react';
7
7
  import { Switch } from '@ndla/switch';
8
8
  import { uuid } from '@ndla/util';
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import parse from 'html-react-parser';
3
3
  import styled from '@emotion/styled';
4
4
  import { breakpoints, colors, fonts, mq, spacing } from '@ndla/core';
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import { ButtonV2 } from '@ndla/button';
11
10
 
12
11
  interface Props {
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import styled from '@emotion/styled';
8
8
 
9
- import React, { useEffect } from 'react';
9
+ import { useEffect } from 'react';
10
10
  //@ts-ignore
11
11
  import { initArticleScripts } from '@ndla/article-scripts';
12
12
  import { useTranslation } from 'react-i18next';
@@ -8,7 +8,7 @@
8
8
  import styled from '@emotion/styled';
9
9
  import { colors, spacing } from '@ndla/core';
10
10
  import { getGroupedContributorDescriptionList, getLicenseByAbbreviation, getLicenseCredits } from '@ndla/licenses';
11
- import React, { ReactNode } from 'react';
11
+ import { ReactNode } from 'react';
12
12
  import { useTranslation } from 'react-i18next';
13
13
  import { Figure, FigureCaption, FigureLicenseDialog, FigureType } from '../Figure';
14
14
  import { Copyright } from '../types';
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import React, { Fragment, ReactNode } from 'react';
8
+ import { Fragment, ReactNode } from 'react';
9
9
  import styled from '@emotion/styled';
10
10
  import { useTranslation } from 'react-i18next';
11
11
  import { parseMarkdown } from '@ndla/util';
@@ -5,7 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree. *
6
6
  */
7
7
 
8
- import React from 'react';
9
8
  import styled from '@emotion/styled';
10
9
  import { animations, breakpoints, mq, spacing } from '@ndla/core';
11
10
  import { useTranslation } from 'react-i18next';
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import { css } from '@emotion/react';
8
8
  import styled from '@emotion/styled';
9
- import React, { ReactNode } from 'react';
9
+ import { ReactNode } from 'react';
10
10
  import { Copyright } from '../types';
11
11
  import FigureNotion from './FigureNotion';
12
12
 
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import styled from '@emotion/styled';
3
2
  import { breakpoints, mq, spacing } from '@ndla/core';
4
3
  import { useTranslation } from 'react-i18next';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { useMemo } from 'react';
9
+ import { useMemo } from 'react';
10
10
  import { useTranslation } from 'react-i18next';
11
11
  import styled from '@emotion/styled';
12
12
  import { spacing } from '@ndla/core';
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import { Meta, StoryFn } from '@storybook/react';
11
10
  import ProgrammeCard from './ProgrammeCard';
12
11
  import { defaultParameters } from '../../../../stories/defaults';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { Fragment, Component, ChangeEvent } from 'react';
9
+ import { Fragment, Component, ChangeEvent } from 'react';
10
10
  import styled from '@emotion/styled';
11
11
  import { uuid } from '@ndla/util';
12
12
  import { spacing, fonts, colors } from '@ndla/core';
@@ -1,4 +1,4 @@
1
- import React, { Children, cloneElement, ReactElement } from 'react';
1
+ import { Children, cloneElement, ReactElement } from 'react';
2
2
  import BEMHelper from 'react-bem-helper';
3
3
  import { ButtonV2 } from '@ndla/button';
4
4
  import SafeLink from '@ndla/safelink';
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import { Meta, StoryFn } from '@storybook/react';
11
10
  import { defaultParameters } from '../../../../stories/defaults';
12
11
  import BlockResource from './BlockResource';
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import styled from '@emotion/styled';
10
- import React, { ReactNode } from 'react';
10
+ import { ReactNode } from 'react';
11
11
  import { colors, fonts, spacing } from '@ndla/core';
12
12
  import ContentTypeBadge from '../ContentTypeBadge';
13
13
  import Image from '../Image';
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import styled from '@emotion/styled';
10
- import React, { ReactNode } from 'react';
10
+ import { ReactNode } from 'react';
11
11
  import { fonts, spacing, colors, breakpoints, mq } from '@ndla/core';
12
12
  import Image from '../Image';
13
13
  import {
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import { Meta, StoryFn } from '@storybook/react';
11
10
  import { DropdownMenu, DropdownContent, DropdownItem, DropdownTrigger } from '@ndla/dropdown-menu';
12
11
  import { ButtonV2, IconButtonV2 } from '@ndla/button';
@@ -8,7 +8,7 @@
8
8
 
9
9
  import styled from '@emotion/styled';
10
10
  import { colors, fonts, spacing } from '@ndla/core';
11
- import React, { CSSProperties, HTMLAttributes, ReactNode, useMemo } from 'react';
11
+ import { CSSProperties, HTMLAttributes, ReactNode, useMemo } from 'react';
12
12
  import { useTranslation } from 'react-i18next';
13
13
  import { IconButtonV2 } from '@ndla/button';
14
14
  import SafeLink, { SafeLinkButton } from '@ndla/safelink';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  */
9
- import React from 'react';
9
+
10
10
  import { breakpoints, fonts, mq, colors, spacing } from '@ndla/core';
11
11
  import { Launch } from '@ndla/icons/common';
12
12
  import { SafeLinkButton } from '@ndla/safelink';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { ReactNode } from 'react';
9
+ import { ReactNode } from 'react';
10
10
  import styled from '@emotion/styled';
11
11
  import { css } from '@emotion/react';
12
12
  import { colors, fonts, spacing } from '@ndla/core';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { ReactNode } from 'react';
9
+ import { ReactNode } from 'react';
10
10
  import { useTranslation } from 'react-i18next';
11
11
  import styled from '@emotion/styled';
12
12
  import { css, keyframes } from '@emotion/react';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { ReactNode } from 'react';
9
+ import { ReactNode } from 'react';
10
10
  import styled from '@emotion/styled';
11
11
  import { css, keyframes } from '@emotion/react';
12
12
  import { useTranslation } from 'react-i18next';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { useTranslation } from 'react-i18next';
3
2
  import { css } from '@emotion/react';
4
3
  import styled from '@emotion/styled';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { HTMLAttributes, ReactNode } from 'react';
9
+ import { HTMLAttributes, ReactNode } from 'react';
10
10
  import styled from '@emotion/styled';
11
11
  import { spacing } from '@ndla/core';
12
12