@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
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import React, { useEffect, useState } from 'react';
8
+ import { useEffect, useState } from 'react';
9
9
  import styled from '@emotion/styled';
10
10
  import { ButtonV2 } from '@ndla/button';
11
11
  import { breakpoints, colors, fonts, mq, spacing } from '@ndla/core';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { ReactChild, useEffect, useLayoutEffect, useRef, useState } from 'react';
9
+ import { ReactChild, useEffect, useLayoutEffect, useRef, useState } from 'react';
10
10
  import { useTranslation } from 'react-i18next';
11
11
  import styled from '@emotion/styled';
12
12
  import { css } from '@emotion/react';
@@ -6,7 +6,7 @@
6
6
  * FRI OG BEGRENSET
7
7
  */
8
8
 
9
- import React, { ReactNode, useState } from 'react';
9
+ import { ReactNode, useState } from 'react';
10
10
  import { ChevronDown, ChevronUp } from '@ndla/icons/common';
11
11
 
12
12
  import { classes } from './filterClasses';
@@ -6,7 +6,7 @@
6
6
  * FRI OG BEGRENSET
7
7
  */
8
8
 
9
- import React, { ChangeEvent, useCallback, useEffect, useState } from 'react';
9
+ import { ChangeEvent, useCallback, useEffect, useState } from 'react';
10
10
  import { ChevronDown, ChevronUp } from '@ndla/icons/common';
11
11
  import { ModalHeader, ModalBody, ModalCloseButton, Modal, ModalTrigger, ModalContent } from '@ndla/modal';
12
12
  import { ButtonV2 } from '@ndla/button';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { ChangeEvent, ElementType } from 'react';
9
+ import { ChangeEvent, ElementType } from 'react';
10
10
  import { classes } from './filterClasses';
11
11
 
12
12
  interface Props {
@@ -6,8 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
-
11
9
  type EditorNameProps = {
12
10
  title: string;
13
11
  name: string;
@@ -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 { useTranslation } from 'react-i18next';
12
12
  import { colors, spacing, fonts, mq, breakpoints, spacingUnit } from '@ndla/core';
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import styled from '@emotion/styled';
3
3
  import { spacing, fonts, colors, mq, breakpoints, spacingUnit } from '@ndla/core';
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 styled from '@emotion/styled';
11
10
  import { spacing, fonts, misc, mq, breakpoints } from '@ndla/core';
12
11
 
@@ -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, fonts, mq, breakpoints } from '@ndla/core';
12
12
 
@@ -1,4 +1,4 @@
1
- import React, { Fragment } from 'react';
1
+ import { Fragment } from 'react';
2
2
  import styled from '@emotion/styled';
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import Tabs from '@ndla/tabs';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import styled from '@emotion/styled';
3
2
  import { css } from '@emotion/react';
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 styled from '@emotion/styled';
3
3
  import { colors, spacing, spacingUnit, mq, breakpoints } from '@ndla/core';
4
4
  import SafeLink from '@ndla/safelink';
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import styled from '@emotion/styled';
3
3
  import { spacing, spacingUnit, mq, breakpoints } from '@ndla/core';
4
4
 
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import SafeLink, { SafeLinkButton } from '@ndla/safelink';
3
2
  import styled from '@emotion/styled';
4
3
  import { spacing, breakpoints, mq } from '@ndla/core';
@@ -1,4 +1,4 @@
1
- import React, { useEffect, useState } from 'react';
1
+ import { useEffect, useState } from 'react';
2
2
  import styled from '@emotion/styled';
3
3
  import { ButtonV2 } from '@ndla/button';
4
4
  import { fonts, breakpoints, mq } from '@ndla/core';
@@ -1,4 +1,4 @@
1
- import React, { FormEvent, useEffect, useRef } from 'react';
1
+ import { FormEvent, useEffect, useRef } from 'react';
2
2
  import { isIE, browserVersion, isMobileSafari } from 'react-device-detect';
3
3
  import styled from '@emotion/styled';
4
4
  import { colors, spacing, mq, breakpoints, animations } from '@ndla/core';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import styled from '@emotion/styled';
3
2
  import { useTranslation } from 'react-i18next';
4
3
  import { spacing, breakpoints, mq } from '@ndla/core';
@@ -6,8 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
-
11
9
  const Illustration = () => (
12
10
  <svg width="90px" height="90px" viewBox="0 0 90 90" version="1.1" xmlns="http://www.w3.org/2000/svg">
13
11
  <g id="Artboard" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
@@ -6,8 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
-
11
9
  const FrontpageHeaderIllustration = () => (
12
10
  <svg width="482" height="68" viewBox="68 48 779 100" xmlns="http://www.w3.org/2000/svg">
13
11
  <style>
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import { css } from '@emotion/react';
11
10
 
12
11
  const cssStyle = css`
@@ -6,8 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
-
11
9
  const Illustration = () => (
12
10
  <svg width="940px" height="175px" viewBox="0 0 940 175" version="1.1" xmlns="http://www.w3.org/2000/svg">
13
11
  <g id="MenuOpen3" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
@@ -6,8 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
-
11
9
  const Illustration = () => (
12
10
  <svg width="940px" height="175px" viewBox="0 0 940 175" version="1.1" xmlns="http://www.w3.org/2000/svg">
13
11
  <g id="MenuOpen1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
@@ -6,8 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
-
11
9
  const Illustration = () => (
12
10
  <svg width="940px" height="175px" viewBox="0 0 940 175" version="1.1" xmlns="http://www.w3.org/2000/svg">
13
11
  <g id="MenuOpen2" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
@@ -6,8 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
-
11
9
  const Illustration = () => (
12
10
  <svg width="90px" height="90px" viewBox="0 0 90 90" version="1.1" xmlns="http://www.w3.org/2000/svg">
13
11
  <g id="Artboard" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
@@ -6,8 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
-
11
9
  const Illustration = () => (
12
10
  <svg width="90px" height="90px" viewBox="0 0 90 90" version="1.1" xmlns="http://www.w3.org/2000/svg">
13
11
  <g id="Artboard" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import { Meta, StoryObj, StoryFn } from '@storybook/react';
11
10
  import Gloss from './Gloss';
12
11
  import { defaultParameters } from '../../../../stories/defaults';
@@ -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 { DocsContainer, DocsContainerProps } from '@storybook/addon-docs';
package/src/Grid/Grid.tsx CHANGED
@@ -29,7 +29,6 @@ const GridContainer = styled.div`
29
29
  &[data-columns='2x2'],
30
30
  &[data-columns='3'],
31
31
  &[data-columns='4'] {
32
- padding: ${spacing.normal};
33
32
  grid-template-columns: repeat(2, minmax(0, 1fr));
34
33
  }
35
34
  }
@@ -46,7 +45,6 @@ const GridContainer = styled.div`
46
45
 
47
46
  ${mq.range({ from: breakpoints.tabletWide })} {
48
47
  grid-template-columns: repeat(2, minmax(0, 1fr));
49
- padding: ${spacing.medium};
50
48
 
51
49
  &[data-columns='3'] {
52
50
  grid-template-columns: repeat(3, minmax(0, 1fr));
@@ -71,41 +69,21 @@ const GridContainer = styled.div`
71
69
  p {
72
70
  word-break: break-word;
73
71
  }
74
-
75
- /** The styling here is to handle figures/text until a new figure element is developed */
76
- figure,
77
- iframe {
78
- inset: 0;
79
- width: 100% !important;
80
- padding: 0;
81
- }
82
- `;
83
-
84
- const OuterContainer = styled.div`
85
- display: flex;
86
- width: 100%;
87
- align-items: center;
88
-
89
- &[data-columns='2x2'] {
90
- justify-content: center;
91
- }
92
72
  `;
93
73
 
94
74
  const Grid = ({ columns, border, children, background, size, ...rest }: GridProps) => {
95
75
  const amountOfColumns = children?.length === 3 ? '3' : columns;
96
76
 
97
77
  return (
98
- <OuterContainer>
99
- <GridContainer
100
- data-frontpage={size}
101
- data-border={border}
102
- data-columns={amountOfColumns}
103
- data-background={background}
104
- {...rest}
105
- >
106
- {children}
107
- </GridContainer>
108
- </OuterContainer>
78
+ <GridContainer
79
+ data-frontpage={size}
80
+ data-border={border}
81
+ data-columns={amountOfColumns}
82
+ data-background={background}
83
+ {...rest}
84
+ >
85
+ {children}
86
+ </GridContainer>
109
87
  );
110
88
  };
111
89
 
@@ -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 { Meta, StoryFn } from '@storybook/react';
12
11
  import { defaultParameters } from '../../../../stories/defaults';
package/src/Hero/Hero.tsx CHANGED
@@ -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 { breakpoints, colors, mq, spacing, spacingUnit } from '@ndla/core';
12
12
  import {
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { ReactNode } from 'react';
9
+ import { ReactNode } from 'react';
10
10
  import { colors } from '@ndla/core';
11
11
  import styled from '@emotion/styled';
12
12
  import LazyLoadImage from './LazyLoadImage';
@@ -49,7 +49,7 @@ const StyledImageWrapper = styled.div`
49
49
  display: flex;
50
50
  justify-content: center;
51
51
  }
52
- &[data-in-grid='true'] {
52
+ &[data-border='true'] {
53
53
  border: 1px solid ${colors.brand.tertiary};
54
54
  border-bottom: 0;
55
55
  border-radius: 4px;
@@ -59,7 +59,7 @@ const StyledImageWrapper = styled.div`
59
59
  `;
60
60
 
61
61
  const StyledImage = styled.img`
62
- &[data-in-grid='true'] {
62
+ &[data-border='true'] {
63
63
  border-radius: 3px;
64
64
  border-bottom-left-radius: 0;
65
65
  border-bottom-right-radius: 0;
@@ -78,7 +78,7 @@ interface Props {
78
78
  expandButton?: ReactNode;
79
79
  crop?: ImageCrop;
80
80
  focalPoint?: ImageFocalPoint;
81
- inGrid?: boolean;
81
+ border?: string;
82
82
  }
83
83
 
84
84
  const Image = ({
@@ -92,7 +92,7 @@ const Image = ({
92
92
  sizes = '(min-width: 1024px) 1024px, 100vw',
93
93
  expandButton,
94
94
  fallbackWidth = 1024,
95
- inGrid,
95
+ border,
96
96
  ...rest
97
97
  }: Props) => {
98
98
  const srcSet = rest.srcSet ?? getSrcSet(src, crop, focalPoint);
@@ -100,8 +100,8 @@ const Image = ({
100
100
 
101
101
  if (contentType && contentType === 'image/gif') {
102
102
  return (
103
- <StyledImageWrapper data-in-grid={inGrid}>
104
- <StyledImage alt={alt} src={`${src}`} {...rest} data-in-grid={inGrid} />
103
+ <StyledImageWrapper data-border={border}>
104
+ <StyledImage alt={alt} src={`${src}`} {...rest} data-border={border} />
105
105
  </StyledImageWrapper>
106
106
  );
107
107
  }
@@ -121,10 +121,10 @@ const Image = ({
121
121
  }
122
122
 
123
123
  return (
124
- <StyledImageWrapper data-svg={contentType === 'image/svg+xml'} data-in-grid={inGrid}>
124
+ <StyledImageWrapper data-svg={contentType === 'image/svg+xml'} data-border={border}>
125
125
  <picture>
126
126
  <source type={contentType} srcSet={srcSet} sizes={sizes} />
127
- <StyledImage alt={alt} src={`${src}?${queryString}`} {...rest} data-in-grid={inGrid} />
127
+ <StyledImage alt={alt} src={`${src}?${queryString}`} {...rest} data-border={border} />
128
128
  </picture>
129
129
  {expandButton}
130
130
  </StyledImageWrapper>
@@ -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 { makeSrcQueryString } from './Image';
12
12
  import { ImageCrop, ImageFocalPoint } from '.';
@@ -6,8 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
-
11
9
  interface Props {
12
10
  alt: string;
13
11
  src: string;
@@ -8,7 +8,6 @@
8
8
 
9
9
  /* eslint-env jest */
10
10
 
11
- import React from 'react';
12
11
  import { render } from '@testing-library/react';
13
12
  import '@testing-library/jest-dom';
14
13
  import Image, { makeSrcQueryString } from '../Image';
@@ -20,7 +20,7 @@ exports[`Image renderers correctly 1`] = `
20
20
  justify-content: center;
21
21
  }
22
22
 
23
- .emotion-0[data-in-grid='true'] {
23
+ .emotion-0[data-border='true'] {
24
24
  border: 1px solid #a5bcd3;
25
25
  border-bottom: 0;
26
26
  border-radius: 4px;
@@ -28,7 +28,7 @@ exports[`Image renderers correctly 1`] = `
28
28
  border-bottom-right-radius: 0;
29
29
  }
30
30
 
31
- .emotion-1[data-in-grid='true'] {
31
+ .emotion-1[data-border='true'] {
32
32
  border-radius: 3px;
33
33
  border-bottom-left-radius: 0;
34
34
  border-bottom-right-radius: 0;
@@ -72,7 +72,7 @@ exports[`Image with crop and focalpoint props renderers correctly 1`] = `
72
72
  justify-content: center;
73
73
  }
74
74
 
75
- .emotion-0[data-in-grid='true'] {
75
+ .emotion-0[data-border='true'] {
76
76
  border: 1px solid #a5bcd3;
77
77
  border-bottom: 0;
78
78
  border-radius: 4px;
@@ -80,7 +80,7 @@ exports[`Image with crop and focalpoint props renderers correctly 1`] = `
80
80
  border-bottom-right-radius: 0;
81
81
  }
82
82
 
83
- .emotion-1[data-in-grid='true'] {
83
+ .emotion-1[data-border='true'] {
84
84
  border-radius: 3px;
85
85
  border-bottom-left-radius: 0;
86
86
  border-bottom-right-radius: 0;
@@ -124,7 +124,7 @@ exports[`Lazyloaded image renderers correctly 1`] = `
124
124
  justify-content: center;
125
125
  }
126
126
 
127
- .emotion-0[data-in-grid='true'] {
127
+ .emotion-0[data-border='true'] {
128
128
  border: 1px solid #a5bcd3;
129
129
  border-bottom: 0;
130
130
  border-radius: 4px;
@@ -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, fonts, colors } from '@ndla/core';
12
12
 
@@ -1,6 +1,6 @@
1
1
  import styled from '@emotion/styled';
2
2
  import { breakpoints, colors, fonts, mq, spacing } from '@ndla/core';
3
- import React, { ReactNode } from 'react';
3
+ import { ReactNode } from 'react';
4
4
 
5
5
  interface Props {
6
6
  children?: ReactNode;
@@ -1,6 +1,6 @@
1
1
  import styled from '@emotion/styled';
2
2
  import { css } from '@emotion/react';
3
- import React, { ReactNode } from 'react';
3
+ import { ReactNode } from 'react';
4
4
  import { Forward } from '@ndla/icons/common';
5
5
  import SafeLink from '@ndla/safelink';
6
6
  import { colors, fonts, 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 { defaultParameters } from '../../../../stories/defaults';
12
11
  import KeyFigure from './KeyFigure';
@@ -16,7 +16,6 @@ const ContentWrapper = styled.div`
16
16
  align-items: center;
17
17
  padding: ${spacing.small};
18
18
  align-items: center;
19
- max-width: 215px;
20
19
  `;
21
20
 
22
21
  const StyledImage = styled.img`
@@ -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 { LanguageSelector } from '@ndla/ui';
12
11
  import styled from '@emotion/styled';
@@ -6,7 +6,6 @@
6
6
  *
7
7
  */
8
8
 
9
- import React from 'react';
10
9
  import { DropdownMenu, DropdownTrigger, DropdownContent, DropdownItem } from '@ndla/dropdown-menu';
11
10
  import { ButtonV2 } from '@ndla/button';
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
 
11
11
  interface Props {
12
12
  children: ReactNode;
@@ -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
 
11
11
  interface Props extends HTMLAttributes<HTMLElement> {
12
12
  children?: ReactNode;
@@ -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 BEMHelper from 'react-bem-helper';
11
11
 
12
12
  const classes = BEMHelper({
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { ReactNode } from 'react';
9
+ import { ReactNode } from 'react';
10
10
  import BEMHelper from 'react-bem-helper';
11
11
 
12
12
  const classes = new BEMHelper({
@@ -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 { mq, breakpoints, colors, spacing, spacingUnit } from '@ndla/core';
12
12
 
@@ -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 { spacing, spacingUnit, breakpoints, mq, colors } from '@ndla/core';
12
11
  import { getLicenseByAbbreviation } from '@ndla/licenses';
@@ -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 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 { contentTypes } from '../model/ContentType';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { ReactNode, useState } from 'react';
9
+ import { ReactNode, useState } 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,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 { Time } from '@ndla/icons/common';