@ndla/ui 55.0.15-alpha.0 → 55.0.17-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/dist/panda.buildinfo.json +125 -29
  2. package/dist/styles.css +453 -103
  3. package/es/Article/Article.js +101 -162
  4. package/es/Article/ArticleByline.js +89 -56
  5. package/es/Article/ArticleFootNotes.js +35 -23
  6. package/es/Article/ArticleParagraph.js +2 -2
  7. package/es/Article/index.js +3 -5
  8. package/es/AudioPlayer/AudioPlayer.js +20 -20
  9. package/es/AudioPlayer/Controls.js +45 -45
  10. package/es/AudioPlayer/SpeechControl.js +8 -8
  11. package/es/BlogPost/BlogPost.js +6 -6
  12. package/es/Breadcrumb/Breadcrumb.js +19 -29
  13. package/es/Breadcrumb/BreadcrumbItem.js +20 -49
  14. package/es/Breadcrumb/HomeBreadcrumb.js +36 -82
  15. package/es/CampaignBlock/CampaignBlock.js +12 -12
  16. package/es/CodeBlock/CodeBlock.js +2 -2
  17. package/es/Concept/Concept.js +11 -11
  18. package/es/ContactBlock/ContactBlock.js +170 -185
  19. package/es/ContactBlock/index.js +3 -3
  20. package/es/ContentLoader/index.js +12 -12
  21. package/es/ContentPlaceholder/ContentPlaceholder.js +3 -3
  22. package/es/ContentTypeBadge/ContentTypeBadge.js +81 -80
  23. package/es/ContentTypeBadge/ContentTypeBadgeNew.js +3 -2
  24. package/es/ContentTypeHero/ContentTypeHero.js +50 -0
  25. package/es/{Logo → ContentTypeHero}/index.js +2 -3
  26. package/es/CopyParagraphButton/CopyParagraphButton.js +13 -12
  27. package/es/Embed/AudioEmbed.js +7 -7
  28. package/es/Embed/BrightcoveEmbed.js +8 -8
  29. package/es/Embed/CodeEmbed.js +6 -6
  30. package/es/Embed/ConceptEmbed.js +13 -13
  31. package/es/Embed/ConceptListEmbed.js +9 -9
  32. package/es/Embed/ContentLinkEmbed.js +6 -6
  33. package/es/Embed/CopyrightEmbed.js +3 -3
  34. package/es/Embed/EmbedErrorPlaceholder.js +5 -5
  35. package/es/Embed/ExternalEmbed.js +5 -5
  36. package/es/Embed/FootnoteEmbed.js +5 -5
  37. package/es/Embed/GlossEmbed.js +11 -11
  38. package/es/Embed/H5pEmbed.js +5 -5
  39. package/es/Embed/IframeEmbed.js +6 -6
  40. package/es/Embed/ImageEmbed.js +10 -10
  41. package/es/Embed/InlineTriggerButton.js +2 -2
  42. package/es/Embed/RelatedContentEmbed.js +5 -5
  43. package/es/Embed/UnknownEmbed.js +3 -3
  44. package/es/Embed/UuDisclaimerEmbed.js +6 -6
  45. package/es/ErrorMessage/ErrorMessage.js +14 -14
  46. package/es/ErrorMessage/ErrorResourceAccessDenied.js +6 -6
  47. package/es/FactBox/FactBox.js +5 -5
  48. package/es/FileList/File.js +3 -3
  49. package/es/FileList/FileList.js +6 -6
  50. package/es/FileList/Format.js +6 -6
  51. package/es/FileList/PdfFile.js +5 -5
  52. package/es/FrontpageArticle/FrontpageArticle.js +7 -8
  53. package/es/Gloss/Gloss.js +23 -23
  54. package/es/Gloss/GlossExample.js +9 -9
  55. package/es/Grid/Grid.js +4 -4
  56. package/es/KeyFigure/KeyFigure.js +5 -5
  57. package/es/Layout/LayoutItem.js +25 -37
  58. package/es/Layout/OneColumn.js +33 -31
  59. package/es/Layout/PageContainer.js +21 -30
  60. package/es/LicenseByline/EmbedByline.js +21 -21
  61. package/es/LicenseByline/LicenseLink.js +3 -3
  62. package/es/LinkBlock/LinkBlock.js +8 -8
  63. package/es/LinkBlock/LinkBlockSection.js +4 -4
  64. package/es/Messages/MessageBox.js +11 -11
  65. package/es/Messages/index.js +1 -2
  66. package/es/ProgrammeCard/ProgrammeCard.js +5 -5
  67. package/es/RelatedArticleList/RelatedArticleList.js +15 -15
  68. package/es/ResourceBox/ResourceBox.js +9 -9
  69. package/es/SnackBar/DefaultSnackbar.js +5 -5
  70. package/es/SnackBar/SnackbarProvider.js +7 -7
  71. package/es/TagSelector/TagSelector.js +17 -17
  72. package/es/TreeStructure/AddFolderButton.js +4 -4
  73. package/es/TreeStructure/ComboboxButton.js +7 -7
  74. package/es/TreeStructure/FolderItem.js +13 -13
  75. package/es/TreeStructure/FolderItems.js +6 -6
  76. package/es/TreeStructure/TreeStructure.js +9 -9
  77. package/es/ZendeskButton/ZendeskButton.js +2 -2
  78. package/es/i18n/index.js +1 -1
  79. package/es/index.js +5 -12
  80. package/es/locale/messages-en.js +1 -1
  81. package/es/locale/messages-nb.js +1 -1
  82. package/es/locale/messages-nn.js +1 -1
  83. package/es/locale/messages-se.js +1 -1
  84. package/es/locale/messages-sma.js +1 -1
  85. package/es/model/ContentType.js +3 -1
  86. package/es/styles.css +453 -103
  87. package/lib/Article/Article.d.ts +9 -30
  88. package/lib/Article/Article.js +104 -164
  89. package/lib/Article/ArticleByline.d.ts +1 -3
  90. package/lib/Article/ArticleByline.js +89 -56
  91. package/lib/Article/ArticleFootNotes.js +35 -24
  92. package/lib/Article/ArticleParagraph.js +2 -2
  93. package/lib/Article/index.d.ts +2 -5
  94. package/lib/Article/index.js +18 -24
  95. package/lib/AudioPlayer/AudioPlayer.js +20 -20
  96. package/lib/AudioPlayer/Controls.js +45 -45
  97. package/lib/AudioPlayer/SpeechControl.js +8 -8
  98. package/lib/BlogPost/BlogPost.js +6 -6
  99. package/lib/Breadcrumb/Breadcrumb.js +21 -29
  100. package/lib/Breadcrumb/BreadcrumbItem.js +22 -50
  101. package/lib/Breadcrumb/HomeBreadcrumb.d.ts +1 -2
  102. package/lib/Breadcrumb/HomeBreadcrumb.js +38 -82
  103. package/lib/CampaignBlock/CampaignBlock.js +12 -12
  104. package/lib/CodeBlock/CodeBlock.js +2 -2
  105. package/lib/Concept/Concept.js +11 -11
  106. package/lib/ContactBlock/ContactBlock.d.ts +6 -7
  107. package/lib/ContactBlock/ContactBlock.js +173 -184
  108. package/lib/ContactBlock/index.d.ts +3 -3
  109. package/lib/ContactBlock/index.js +13 -11
  110. package/lib/ContentLoader/index.js +12 -12
  111. package/lib/ContentPlaceholder/ContentPlaceholder.js +3 -3
  112. package/lib/ContentTypeBadge/ContentTypeBadge.d.ts +11 -12
  113. package/lib/ContentTypeBadge/ContentTypeBadge.js +83 -80
  114. package/lib/ContentTypeBadge/ContentTypeBadgeNew.d.ts +1 -2
  115. package/lib/ContentTypeBadge/ContentTypeBadgeNew.js +3 -2
  116. package/lib/ContentTypeHero/ContentTypeHero.d.ts +15 -0
  117. package/lib/ContentTypeHero/ContentTypeHero.js +57 -0
  118. package/lib/ContentTypeHero/index.d.ts +9 -0
  119. package/lib/ContentTypeHero/index.js +12 -0
  120. package/lib/CopyParagraphButton/CopyParagraphButton.js +13 -12
  121. package/lib/Embed/AudioEmbed.js +7 -7
  122. package/lib/Embed/BrightcoveEmbed.js +8 -8
  123. package/lib/Embed/CodeEmbed.js +6 -6
  124. package/lib/Embed/ConceptEmbed.js +13 -13
  125. package/lib/Embed/ConceptListEmbed.js +9 -9
  126. package/lib/Embed/ContentLinkEmbed.js +6 -6
  127. package/lib/Embed/CopyrightEmbed.js +3 -3
  128. package/lib/Embed/EmbedErrorPlaceholder.js +5 -5
  129. package/lib/Embed/ExternalEmbed.js +5 -5
  130. package/lib/Embed/FootnoteEmbed.js +5 -5
  131. package/lib/Embed/GlossEmbed.js +11 -11
  132. package/lib/Embed/H5pEmbed.js +5 -5
  133. package/lib/Embed/IframeEmbed.js +6 -6
  134. package/lib/Embed/ImageEmbed.js +10 -10
  135. package/lib/Embed/InlineTriggerButton.js +2 -2
  136. package/lib/Embed/RelatedContentEmbed.js +5 -5
  137. package/lib/Embed/UnknownEmbed.js +3 -3
  138. package/lib/Embed/UuDisclaimerEmbed.js +6 -6
  139. package/lib/ErrorMessage/ErrorMessage.js +14 -14
  140. package/lib/ErrorMessage/ErrorResourceAccessDenied.js +6 -6
  141. package/lib/FactBox/FactBox.js +5 -5
  142. package/lib/FileList/File.js +3 -3
  143. package/lib/FileList/FileList.js +6 -6
  144. package/lib/FileList/Format.js +6 -6
  145. package/lib/FileList/PdfFile.js +5 -5
  146. package/lib/FrontpageArticle/FrontpageArticle.js +7 -8
  147. package/lib/Gloss/Gloss.js +23 -23
  148. package/lib/Gloss/GlossExample.js +9 -9
  149. package/lib/Grid/Grid.js +4 -4
  150. package/lib/KeyFigure/KeyFigure.js +5 -5
  151. package/lib/Layout/LayoutItem.d.ts +3 -7
  152. package/lib/Layout/LayoutItem.js +27 -38
  153. package/lib/Layout/OneColumn.d.ts +3 -6
  154. package/lib/Layout/OneColumn.js +36 -33
  155. package/lib/Layout/PageContainer.d.ts +3 -6
  156. package/lib/Layout/PageContainer.js +24 -32
  157. package/lib/LicenseByline/EmbedByline.js +21 -21
  158. package/lib/LicenseByline/LicenseLink.js +3 -3
  159. package/lib/LinkBlock/LinkBlock.js +8 -8
  160. package/lib/LinkBlock/LinkBlockSection.js +4 -4
  161. package/lib/Messages/MessageBox.js +11 -11
  162. package/lib/Messages/index.d.ts +1 -2
  163. package/lib/Messages/index.js +0 -7
  164. package/lib/ProgrammeCard/ProgrammeCard.js +5 -5
  165. package/lib/RelatedArticleList/RelatedArticleList.js +15 -15
  166. package/lib/ResourceBox/ResourceBox.js +9 -9
  167. package/lib/SnackBar/DefaultSnackbar.js +5 -5
  168. package/lib/SnackBar/SnackbarProvider.js +7 -7
  169. package/lib/TagSelector/TagSelector.js +17 -17
  170. package/lib/TreeStructure/AddFolderButton.js +4 -4
  171. package/lib/TreeStructure/ComboboxButton.js +7 -7
  172. package/lib/TreeStructure/FolderItem.js +13 -13
  173. package/lib/TreeStructure/FolderItems.js +6 -6
  174. package/lib/TreeStructure/TreeStructure.js +9 -9
  175. package/lib/ZendeskButton/ZendeskButton.js +2 -2
  176. package/lib/i18n/index.d.ts +1 -1
  177. package/lib/i18n/index.js +6 -0
  178. package/lib/index.d.ts +8 -15
  179. package/lib/index.js +30 -139
  180. package/lib/locale/messages-en.js +1 -1
  181. package/lib/locale/messages-nb.js +1 -1
  182. package/lib/locale/messages-nn.js +1 -1
  183. package/lib/locale/messages-se.js +1 -1
  184. package/lib/locale/messages-sma.js +1 -1
  185. package/lib/model/ContentType.d.ts +1 -0
  186. package/lib/model/ContentType.js +4 -2
  187. package/lib/styles.css +453 -103
  188. package/package.json +10 -11
  189. package/src/Article/Article.tsx +101 -229
  190. package/src/Article/ArticleByline.tsx +82 -69
  191. package/src/Article/ArticleFootNotes.tsx +32 -36
  192. package/src/Article/index.ts +3 -7
  193. package/src/Breadcrumb/Breadcrumb.tsx +20 -18
  194. package/src/Breadcrumb/BreadcrumbItem.tsx +36 -59
  195. package/src/Breadcrumb/HomeBreadcrumb.stories.tsx +0 -12
  196. package/src/Breadcrumb/HomeBreadcrumb.tsx +33 -46
  197. package/src/ContactBlock/{Contactblock.stories.tsx → ContactBlock.stories.tsx} +3 -4
  198. package/src/ContactBlock/ContactBlock.tsx +165 -199
  199. package/src/ContactBlock/index.ts +3 -3
  200. package/src/ContentTypeBadge/ContentTypeBadge.tsx +77 -77
  201. package/src/ContentTypeBadge/ContentTypeBadgeNew.tsx +3 -1
  202. package/src/ContentTypeHero/ContentTypeHero.stories.tsx +76 -0
  203. package/src/ContentTypeHero/ContentTypeHero.tsx +55 -0
  204. package/src/ContentTypeHero/index.ts +10 -0
  205. package/src/CopyParagraphButton/CopyParagraphButton.tsx +10 -3
  206. package/src/Embed/AudioEmbed.stories.tsx +6 -8
  207. package/src/Embed/BrightcoveEmbed.stories.tsx +6 -8
  208. package/src/Embed/ConceptEmbed.stories.tsx +6 -8
  209. package/src/Embed/ExternalEmbed.stories.tsx +5 -5
  210. package/src/Embed/H5pEmbed.stories.tsx +6 -8
  211. package/src/Embed/IframeEmbed.stories.tsx +6 -8
  212. package/src/Embed/ImageEmbed.stories.tsx +6 -8
  213. package/src/Embed/RelatedContentEmbed.stories.tsx +6 -8
  214. package/src/Embed/UuDisclaimerEmbed.stories.tsx +6 -8
  215. package/src/FrontpageArticle/FrontpageArticle.tsx +1 -1
  216. package/src/Layout/LayoutItem.tsx +25 -41
  217. package/src/Layout/OneColumn.tsx +33 -33
  218. package/src/Layout/PageContainer.tsx +22 -24
  219. package/src/Messages/index.ts +1 -2
  220. package/src/i18n/index.ts +1 -0
  221. package/src/index.ts +11 -35
  222. package/src/locale/messages-en.ts +1 -1
  223. package/src/locale/messages-nb.ts +1 -1
  224. package/src/locale/messages-nn.ts +1 -1
  225. package/src/locale/messages-se.ts +1 -1
  226. package/src/locale/messages-sma.ts +1 -1
  227. package/src/model/ContentType.ts +2 -0
  228. package/es/Article/ArticleHeaderWrapper.js +0 -33
  229. package/es/CreatedBy/CreatedBy.js +0 -73
  230. package/es/CreatedBy/index.js +0 -10
  231. package/es/Hero/Hero.js +0 -68
  232. package/es/Hero/HeroContent.js +0 -16
  233. package/es/Hero/index.js +0 -10
  234. package/es/LanguageSelector/LanguageSelector.js +0 -87
  235. package/es/LanguageSelector/index.js +0 -10
  236. package/es/Logo/Logo.js +0 -52
  237. package/es/Logo/SvgLogo.js +0 -54
  238. package/es/Messages/MessageBanner.js +0 -72
  239. package/es/Search/ActiveFilterContent.js +0 -40
  240. package/es/Search/ActiveFilters.js +0 -112
  241. package/es/Search/ContentTypeResult.js +0 -151
  242. package/es/Search/ContentTypeResultStyles.js +0 -51
  243. package/es/Search/IsPathToHighlight.js +0 -12
  244. package/es/Search/LoadingWrapper.js +0 -31
  245. package/es/Search/SearchField.js +0 -110
  246. package/es/Search/SearchFieldForm.js +0 -33
  247. package/es/Search/SearchResult.js +0 -185
  248. package/es/Search/SearchResultSleeve.js +0 -229
  249. package/es/Search/index.js +0 -12
  250. package/lib/Article/ArticleHeaderWrapper.d.ts +0 -14
  251. package/lib/Article/ArticleHeaderWrapper.js +0 -40
  252. package/lib/CreatedBy/CreatedBy.d.ts +0 -15
  253. package/lib/CreatedBy/CreatedBy.js +0 -78
  254. package/lib/CreatedBy/index.d.ts +0 -9
  255. package/lib/CreatedBy/index.js +0 -16
  256. package/lib/Hero/Hero.d.ts +0 -25
  257. package/lib/Hero/Hero.js +0 -83
  258. package/lib/Hero/HeroContent.d.ts +0 -12
  259. package/lib/Hero/HeroContent.js +0 -23
  260. package/lib/Hero/index.d.ts +0 -10
  261. package/lib/Hero/index.js +0 -61
  262. package/lib/LanguageSelector/LanguageSelector.d.ts +0 -15
  263. package/lib/LanguageSelector/LanguageSelector.js +0 -92
  264. package/lib/LanguageSelector/index.d.ts +0 -9
  265. package/lib/LanguageSelector/index.js +0 -13
  266. package/lib/Logo/Logo.d.ts +0 -20
  267. package/lib/Logo/Logo.js +0 -58
  268. package/lib/Logo/SvgLogo.d.ts +0 -14
  269. package/lib/Logo/SvgLogo.js +0 -62
  270. package/lib/Logo/index.d.ts +0 -9
  271. package/lib/Logo/index.js +0 -16
  272. package/lib/Messages/MessageBanner.d.ts +0 -16
  273. package/lib/Messages/MessageBanner.js +0 -77
  274. package/lib/Search/ActiveFilterContent.d.ts +0 -23
  275. package/lib/Search/ActiveFilterContent.js +0 -47
  276. package/lib/Search/ActiveFilters.d.ts +0 -19
  277. package/lib/Search/ActiveFilters.js +0 -119
  278. package/lib/Search/ContentTypeResult.d.ts +0 -29
  279. package/lib/Search/ContentTypeResult.js +0 -159
  280. package/lib/Search/ContentTypeResultStyles.d.ts +0 -45
  281. package/lib/Search/ContentTypeResultStyles.js +0 -58
  282. package/lib/Search/IsPathToHighlight.d.ts +0 -8
  283. package/lib/Search/IsPathToHighlight.js +0 -19
  284. package/lib/Search/LoadingWrapper.d.ts +0 -12
  285. package/lib/Search/LoadingWrapper.js +0 -38
  286. package/lib/Search/SearchField.d.ts +0 -25
  287. package/lib/Search/SearchField.js +0 -117
  288. package/lib/Search/SearchFieldForm.d.ts +0 -15
  289. package/lib/Search/SearchFieldForm.js +0 -41
  290. package/lib/Search/SearchResult.d.ts +0 -43
  291. package/lib/Search/SearchResult.js +0 -194
  292. package/lib/Search/SearchResultSleeve.d.ts +0 -25
  293. package/lib/Search/SearchResultSleeve.js +0 -237
  294. package/lib/Search/index.d.ts +0 -11
  295. package/lib/Search/index.js +0 -33
  296. package/src/Article/ArticleHeaderWrapper.tsx +0 -38
  297. package/src/CreatedBy/CreatedBy.stories.tsx +0 -36
  298. package/src/CreatedBy/CreatedBy.tsx +0 -63
  299. package/src/CreatedBy/index.ts +0 -11
  300. package/src/Hero/Hero.stories.tsx +0 -35
  301. package/src/Hero/Hero.tsx +0 -129
  302. package/src/Hero/HeroContent.tsx +0 -43
  303. package/src/Hero/index.ts +0 -21
  304. package/src/LanguageSelector/LanguageSelector.stories.tsx +0 -44
  305. package/src/LanguageSelector/LanguageSelector.tsx +0 -101
  306. package/src/LanguageSelector/index.ts +0 -11
  307. package/src/Logo/Logo.stories.tsx +0 -47
  308. package/src/Logo/Logo.tsx +0 -47
  309. package/src/Logo/SvgLogo.tsx +0 -48
  310. package/src/Logo/index.ts +0 -11
  311. package/src/Messages/MessageBanner.stories.tsx +0 -31
  312. package/src/Messages/MessageBanner.tsx +0 -67
  313. package/src/Search/ActiveFilterContent.tsx +0 -64
  314. package/src/Search/ActiveFilters.tsx +0 -145
  315. package/src/Search/ContentTypeResult.tsx +0 -190
  316. package/src/Search/ContentTypeResultStyles.tsx +0 -172
  317. package/src/Search/IsPathToHighlight.ts +0 -12
  318. package/src/Search/LoadingWrapper.tsx +0 -44
  319. package/src/Search/SearchField.tsx +0 -175
  320. package/src/Search/SearchFieldForm.tsx +0 -64
  321. package/src/Search/SearchResult.tsx +0 -368
  322. package/src/Search/SearchResultSleeve.tsx +0 -367
  323. package/src/Search/__tests__/Highlight-test.ts +0 -66
  324. package/src/Search/index.ts +0 -14
@@ -10,7 +10,7 @@ import punycode from "punycode/";
10
10
  import { useTranslation } from "react-i18next";
11
11
  import { contentTypeMapping } from "../model/ContentType";
12
12
  import { RelatedArticle } from "../RelatedArticleList/RelatedArticleList";
13
- import { Fragment as _Fragment, jsx as _jsx } from "@emotion/react/jsx-runtime";
13
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
14
14
  const RelatedContentEmbed = _ref => {
15
15
  let {
16
16
  embed,
@@ -22,7 +22,7 @@ const RelatedContentEmbed = _ref => {
22
22
  t
23
23
  } = useTranslation();
24
24
  if (embed.status === "error") {
25
- return _jsx(_Fragment, {});
25
+ return /*#__PURE__*/_jsx(_Fragment, {});
26
26
  }
27
27
  const {
28
28
  data,
@@ -32,7 +32,7 @@ const RelatedContentEmbed = _ref => {
32
32
  const typeId = data.resource?.resourceTypes.find(rt => contentTypeMapping[rt.id])?.id;
33
33
  const type = typeId ? contentTypeMapping[typeId] : undefined;
34
34
  const path = data.resource?.paths.find(p => p.split("/")[1] === subject?.replace("urn:", "")) ?? data.resource?.path ?? `/article/${embedData.articleId}`;
35
- return _jsx(RelatedArticle, {
35
+ return /*#__PURE__*/_jsx(RelatedArticle, {
36
36
  title: data.article.title?.title ?? "",
37
37
  introduction: data.article.metaDescription?.metaDescription ?? "",
38
38
  target: isOembed ? "_blank" : undefined,
@@ -41,7 +41,7 @@ const RelatedContentEmbed = _ref => {
41
41
  });
42
42
  }
43
43
  if (typeof embedData.url === "string") {
44
- return _jsx(RelatedArticle, {
44
+ return /*#__PURE__*/_jsx(RelatedArticle, {
45
45
  title: embedData.title ?? "",
46
46
  introduction: "",
47
47
  to: embedData.url,
@@ -52,6 +52,6 @@ const RelatedContentEmbed = _ref => {
52
52
  punycode.toUnicode(embedData.url.match(/^(?:https?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:/\n]+)/im)?.[1] || embedData.url)}`
53
53
  });
54
54
  }
55
- return _jsx(_Fragment, {});
55
+ return /*#__PURE__*/_jsx(_Fragment, {});
56
56
  };
57
57
  export default RelatedContentEmbed;
@@ -8,7 +8,7 @@
8
8
 
9
9
  import { useTranslation } from "react-i18next";
10
10
  import { Text } from "@ndla/primitives";
11
- import { jsx as _jsx } from "@emotion/react/jsx-runtime";
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
12
  const UnknownEmbed = _ref => {
13
13
  let {
14
14
  embed
@@ -16,11 +16,11 @@ const UnknownEmbed = _ref => {
16
16
  const {
17
17
  t
18
18
  } = useTranslation();
19
- return _jsx(Text, {
19
+ return /*#__PURE__*/_jsx(Text, {
20
20
  color: "text.error",
21
21
  asChild: true,
22
22
  consumeCss: true,
23
- children: _jsx("span", {
23
+ children: /*#__PURE__*/_jsx("span", {
24
24
  children: t("embed.unsupported", {
25
25
  type: embed.resource
26
26
  })
@@ -11,7 +11,7 @@ import { InformationOutline } from "@ndla/icons/common";
11
11
  import { MessageBox } from "@ndla/primitives";
12
12
  import { SafeLink } from "@ndla/safelink";
13
13
  import { styled } from "@ndla/styled-system/jsx";
14
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
14
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
15
15
  const StyledMessageBox = styled(MessageBox, {
16
16
  base: {
17
17
  display: "flex",
@@ -38,20 +38,20 @@ const UuDisclaimerEmbed = _ref => {
38
38
  embedData,
39
39
  data
40
40
  } = embed;
41
- const disclaimerLink = data?.disclaimerLink ? _jsxs(_Fragment, {
42
- children: [` ${t("uuDisclaimer.alternative")} `, _jsx(SafeLink, {
41
+ const disclaimerLink = data?.disclaimerLink ? /*#__PURE__*/_jsxs(_Fragment, {
42
+ children: [` ${t("uuDisclaimer.alternative")} `, /*#__PURE__*/_jsx(SafeLink, {
43
43
  to: data.disclaimerLink.href,
44
44
  target: "_blank",
45
45
  rel: "noopener noreferrer",
46
46
  children: data.disclaimerLink.text
47
47
  })]
48
48
  }) : null;
49
- return _jsxs("div", {
49
+ return /*#__PURE__*/_jsxs("div", {
50
50
  role: "region",
51
- children: [_jsxs(StyledMessageBox, {
51
+ children: [/*#__PURE__*/_jsxs(StyledMessageBox, {
52
52
  variant: "warning",
53
53
  contentEditable: false,
54
- children: [_jsx(InformationOutline, {}), _jsxs(Disclaimer, {
54
+ children: [/*#__PURE__*/_jsx(InformationOutline, {}), /*#__PURE__*/_jsxs(Disclaimer, {
55
55
  children: [embedData.disclaimer, disclaimerLink]
56
56
  })]
57
57
  }), children]
@@ -11,7 +11,7 @@ import { SafeLink } from "@ndla/safelink";
11
11
  import { styled } from "@ndla/styled-system/jsx";
12
12
 
13
13
  // TODO: This has not been redesignet yet. This is just a rewrite of the previous design in panda
14
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
15
  const StyledErrorMessage = styled("article", {
16
16
  base: {
17
17
  textAlign: "center",
@@ -57,33 +57,33 @@ export const ErrorMessage = _ref => {
57
57
  illustrationElement,
58
58
  customElement
59
59
  } = _ref;
60
- return _jsxs(StyledErrorMessage, {
61
- children: [illustration && _jsx(IllustrationWrapper, {
62
- children: _jsx("img", {
60
+ return /*#__PURE__*/_jsxs(StyledErrorMessage, {
61
+ children: [illustration && /*#__PURE__*/_jsx(IllustrationWrapper, {
62
+ children: /*#__PURE__*/_jsx("img", {
63
63
  src: illustration.url,
64
64
  alt: illustration.altText
65
65
  })
66
- }), illustrationElement && _jsx(IllustrationWrapper, {
66
+ }), illustrationElement && /*#__PURE__*/_jsx(IllustrationWrapper, {
67
67
  children: illustrationElement
68
- }), _jsx("h1", {
68
+ }), /*#__PURE__*/_jsx("h1", {
69
69
  children: messages.title
70
- }), messages.description && _jsx(Description, {
70
+ }), messages.description && /*#__PURE__*/_jsx(Description, {
71
71
  children: messages.description
72
- }), customElement && _jsx(CustomElementWrapper, {
72
+ }), customElement && /*#__PURE__*/_jsx(CustomElementWrapper, {
73
73
  children: customElement
74
- }), messages.linksTitle && _jsx("h2", {
74
+ }), messages.linksTitle && /*#__PURE__*/_jsx("h2", {
75
75
  children: messages.linksTitle
76
- }), messages.back && _jsx(SafeLink, {
76
+ }), messages.back && /*#__PURE__*/_jsx(SafeLink, {
77
77
  to: `/#${encodeURI(messages.back)}`,
78
78
  onClick: () => window.history.back(),
79
79
  children: messages.back
80
- }), messages.goToFrontPage && _jsx(MessageWrapper, {
81
- children: _jsx(SafeLink, {
80
+ }), messages.goToFrontPage && /*#__PURE__*/_jsx(MessageWrapper, {
81
+ children: /*#__PURE__*/_jsx(SafeLink, {
82
82
  to: "/",
83
83
  children: messages.goToFrontPage
84
84
  })
85
- }), messages.logInFailed && _jsx(MessageWrapper, {
86
- children: _jsx(SafeLink, {
85
+ }), messages.logInFailed && /*#__PURE__*/_jsx(MessageWrapper, {
86
+ children: /*#__PURE__*/_jsx(SafeLink, {
87
87
  to: "/minndla",
88
88
  children: messages.logInFailed
89
89
  })
@@ -13,7 +13,7 @@ import { styled } from "@ndla/styled-system/jsx";
13
13
  import ErrorMessage from "./ErrorMessage";
14
14
 
15
15
  // TODO: This has not been redesignet yet. This is just a rewrite of the previous design in panda
16
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
16
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
17
  const StyledLogInIconWrapper = styled("span", {
18
18
  base: {
19
19
  marginLeft: "3xsmall"
@@ -26,21 +26,21 @@ const ErrorResourceAccessDenied = _ref => {
26
26
  const {
27
27
  t
28
28
  } = useTranslation();
29
- return _jsx(ErrorMessage, {
29
+ return /*#__PURE__*/_jsx(ErrorMessage, {
30
30
  messages: {
31
31
  title: t("user.resource.accessDenied"),
32
32
  back: t("errorMessage.back"),
33
33
  goToFrontPage: t("errorMessage.goToFrontPage")
34
34
  },
35
- illustrationElement: _jsx(HumanMaleBoard, {
35
+ illustrationElement: /*#__PURE__*/_jsx(HumanMaleBoard, {
36
36
  size: "medium"
37
37
  }),
38
- customElement: _jsxs(ButtonV2, {
38
+ customElement: /*#__PURE__*/_jsxs(ButtonV2, {
39
39
  size: "medium",
40
40
  onClick: onAuthenticateClick,
41
- children: [t("user.buttonLogIn"), _jsx(StyledLogInIconWrapper, {
41
+ children: [t("user.buttonLogIn"), /*#__PURE__*/_jsx(StyledLogInIconWrapper, {
42
42
  "aria-hidden": true,
43
- children: _jsx(LogIn, {
43
+ children: /*#__PURE__*/_jsx(LogIn, {
44
44
  size: "medium"
45
45
  })
46
46
  })]
@@ -11,7 +11,7 @@ import { useTranslation } from "react-i18next";
11
11
  import { ChevronDown } from "@ndla/icons/common";
12
12
  import { IconButton } from "@ndla/primitives";
13
13
  import { styled } from "@ndla/styled-system/jsx";
14
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
15
  const StyledAside = styled("aside", {
16
16
  base: {
17
17
  display: "flex",
@@ -129,18 +129,18 @@ const FactBox = /*#__PURE__*/forwardRef((_ref, ref) => {
129
129
  setState(newState);
130
130
  onOpenChange?.(newState === "open");
131
131
  }, [state, onOpenChange]);
132
- return _jsxs(StyledAside, {
132
+ return /*#__PURE__*/_jsxs(StyledAside, {
133
133
  "data-state": state,
134
134
  ...rest,
135
135
  ref: ref,
136
- children: [_jsx(StyledIconButton, {
136
+ children: [/*#__PURE__*/_jsx(StyledIconButton, {
137
137
  "data-state": state,
138
138
  onClick: onClick,
139
139
  "aria-expanded": state === "open",
140
140
  "aria-controls": contentId,
141
141
  "aria-label": t(`factbox.${state === "open" ? "close" : "open"}`),
142
- children: _jsx(ChevronDown, {})
143
- }), _jsx(StyledContent, {
142
+ children: /*#__PURE__*/_jsx(ChevronDown, {})
143
+ }), /*#__PURE__*/_jsx(StyledContent, {
144
144
  id: contentId,
145
145
  "data-state": state,
146
146
  "aria-hidden": state === "closed",
@@ -10,7 +10,7 @@ import _styled from "@emotion/styled/base";
10
10
  import { useTranslation } from "react-i18next";
11
11
  import { breakpoints, colors, mq, spacing } from "@ndla/core";
12
12
  import Format from "./Format";
13
- import { jsx as _jsx } from "@emotion/react/jsx-runtime";
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
14
  const StyledFileItem = /*#__PURE__*/_styled("li", {
15
15
  target: "ei1p2nz0",
16
16
  label: "StyledFileItem"
@@ -28,8 +28,8 @@ const File = _ref => {
28
28
  t
29
29
  } = useTranslation();
30
30
  const tooltip = `${t("download")} ${url.split("/").pop()}`;
31
- return _jsx(StyledFileItem, {
32
- children: _jsx(Format, {
31
+ return /*#__PURE__*/_jsx(StyledFileItem, {
32
+ children: /*#__PURE__*/_jsx(Format, {
33
33
  format: {
34
34
  url,
35
35
  fileType,
@@ -11,7 +11,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
11
11
  import { useTranslation } from "react-i18next";
12
12
  import { colors, fonts, spacing } from "@ndla/core";
13
13
  import { Heading } from "@ndla/typography";
14
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
15
  const FileListSection = /*#__PURE__*/_styled("section", {
16
16
  target: "e1o67ylf2",
17
17
  label: "FileListSection"
@@ -41,18 +41,18 @@ const FileList = _ref => {
41
41
  const {
42
42
  t
43
43
  } = useTranslation();
44
- return _jsxs(FileListSection, {
44
+ return /*#__PURE__*/_jsxs(FileListSection, {
45
45
  ...rest,
46
- children: [_jsxs(FileListHeaderWrapper, {
47
- children: [_jsx(Heading, {
46
+ children: [/*#__PURE__*/_jsxs(FileListHeaderWrapper, {
47
+ children: [/*#__PURE__*/_jsx(Heading, {
48
48
  element: "h3",
49
49
  headingStyle: "list-title",
50
50
  margin: "none",
51
51
  children: t("files")
52
- }), _jsx("div", {
52
+ }), /*#__PURE__*/_jsx("div", {
53
53
  children: headingButtons
54
54
  })]
55
- }), _jsx(FilesList, {
55
+ }), /*#__PURE__*/_jsx(FilesList, {
56
56
  children: children
57
57
  })]
58
58
  });
@@ -12,7 +12,7 @@ import { colors, spacing } from "@ndla/core";
12
12
  import { Download } from "@ndla/icons/common";
13
13
  import { SafeLink } from "@ndla/safelink";
14
14
  import { Text } from "@ndla/typography";
15
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
15
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  const StyledText = /*#__PURE__*/_styled(Text, {
17
17
  target: "elufxu24",
18
18
  label: "StyledText"
@@ -66,8 +66,8 @@ const Format = _ref => {
66
66
  } = _ref;
67
67
  const titleWithFormat = `${title} (${format.fileType.toUpperCase()})`;
68
68
  if (isDeadLink) {
69
- return _jsxs(StyledDeadLinkWrapper, {
70
- children: [_jsx(StyledDownload, {}), _jsx(StyledDeadLinkText, {
69
+ return /*#__PURE__*/_jsxs(StyledDeadLinkWrapper, {
70
+ children: [/*#__PURE__*/_jsx(StyledDownload, {}), /*#__PURE__*/_jsx(StyledDeadLinkText, {
71
71
  element: "span",
72
72
  textStyle: "label-small",
73
73
  margin: "none",
@@ -75,13 +75,13 @@ const Format = _ref => {
75
75
  })]
76
76
  }, format.url);
77
77
  }
78
- return _jsxs(FileLink, {
78
+ return /*#__PURE__*/_jsxs(FileLink, {
79
79
  to: format.url,
80
80
  target: "_blank",
81
81
  "aria-label": titleWithFormat,
82
- children: [_jsx(StyledDownload, {}), _jsx("div", {
82
+ children: [/*#__PURE__*/_jsx(StyledDownload, {}), /*#__PURE__*/_jsx("div", {
83
83
  "aria-label": format.tooltip,
84
- children: _jsx(StyledText, {
84
+ children: /*#__PURE__*/_jsx(StyledText, {
85
85
  element: "span",
86
86
  textStyle: "label-small",
87
87
  margin: "none",
@@ -8,7 +8,7 @@
8
8
 
9
9
  import { Heading, Figure } from "@ndla/primitives";
10
10
  import { styled } from "@ndla/styled-system/jsx";
11
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
12
  const StyledIframe = styled("iframe", {
13
13
  base: {
14
14
  width: "100%"
@@ -26,15 +26,15 @@ const PdfFile = _ref => {
26
26
  title,
27
27
  url
28
28
  } = _ref;
29
- return _jsxs(StyledFigure, {
30
- children: [_jsx(Heading, {
29
+ return /*#__PURE__*/_jsxs(StyledFigure, {
30
+ children: [/*#__PURE__*/_jsx(Heading, {
31
31
  asChild: true,
32
32
  consumeCss: true,
33
33
  textStyle: "title.medium",
34
- children: _jsx("h4", {
34
+ children: /*#__PURE__*/_jsx("h4", {
35
35
  children: title
36
36
  })
37
- }), _jsx(StyledIframe, {
37
+ }), /*#__PURE__*/_jsx(StyledIframe, {
38
38
  title: title,
39
39
  height: "1050",
40
40
  src: url
@@ -12,13 +12,13 @@ import { spacing } from "@ndla/core";
12
12
  import { useComponentSize } from "@ndla/hooks";
13
13
  import { Heading, Text } from "@ndla/typography";
14
14
  import { ArticleByline } from "../Article";
15
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
15
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  export const FRONTPAGE_ARTICLE_MAX_WIDTH = "773px";
17
17
  export const WIDE_FRONTPAGE_ARTICLE_MAX_WIDTH = "1100px";
18
18
  const StyledArticle = /*#__PURE__*/_styled("article", {
19
19
  target: "e10a6yg80",
20
20
  label: "StyledArticle"
21
- })("width:100%;max-width:773px;h2[id]{margin-top:", spacing.large, ";}div[data-type=\"campaign-block\"]{margin:", spacing.large, " 0px;}div[data-type=\"grid\"]{h2,h3,h4{margin-top:0px;}}div[data-type=\"grid\"]+div[data-type=\"grid\"]{margin-top:", spacing.xxlarge, ";}&[data-wide=\"true\"]{max-width:1100px;h2[id]{margin-top:", spacing.xxlarge, ";}div[data-type=\"campaign-block\"]{margin:", spacing.xxlarge, " 0px;}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZyb250cGFnZUFydGljbGUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTJCb0MiLCJmaWxlIjoiRnJvbnRwYWdlQXJ0aWNsZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAyMy1wcmVzZW50LCBORExBLlxuICpcbiA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GVpZ2h0XSk7XG4gIGNvbnN0IHsgdGl0bGUsIGludHJvZHVjdGlvbiwgY29udGVudCB9ID0gYXJ0aWNsZTtcblxuICBpZiAoaXNXaWRlKSB7XG4gICAgcmV0dXJuIChcbiAgICAgIDxTdHlsZWRBcnRpY2xlIGRhdGEtd2lkZT17aXNXaWRlfSBzdHlsZT17Y3NzVmFyc30gaWQ9e2lkfT5cbiAgICAgICAge2NvbnRlbnR9XG4gICAgICA8L1N0eWxlZEFydGljbGU+XG4gICAgKTtcbiAgfVxuXG4gIHJldHVybiAoXG4gICAgPFN0eWxlZEFydGljbGUgc3R5bGU9e2Nzc1ZhcnN9PlxuICAgICAgPEhlYWRpbmcgaWQ9e2lkfSBoZWFkaW5nU3R5bGU9XCJoMS1yZXNvdXJjZVwiIGVsZW1lbnQ9XCJoMVwiIG1hcmdpbj1cIm5vcm1hbFwiIHRhYkluZGV4PXstMX0gbGFuZz17bGFuZ30+XG4gICAgICAgIHt0aXRsZX1cbiAgICAgIDwvSGVhZGluZz5cbiAgICAgIDxUZXh0IHRleHRTdHlsZT1cImluZ3Jlc3NcIiBlbGVtZW50PVwiZGl2XCIgbGFuZz17bGFuZ30+XG4gICAgICAgIHtpbnRyb2R1Y3Rpb259XG4gICAgICA8L1RleHQ+XG4gICAgICB7Y29udGVudH1cbiAgICAgIDxBcnRpY2xlQnlsaW5lIGFjY29yZGlvbkhlYWRlclZhcmlhbnQ9e1wid2hpdGVcIn0gbGljZW5zZUJveD17bGljZW5zZUJveH0gZGlzcGxheUJ5bGluZT17ZmFsc2V9IC8+XG4gICAgPC9TdHlsZWRBcnRpY2xlPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgRnJvbnRwYWdlQXJ0aWNsZTtcbiJdfQ== */"));
21
+ })("width:100%;max-width:773px;h2[id]{margin-top:", spacing.large, ";}div[data-type=\"campaign-block\"]{margin:", spacing.large, " 0px;}div[data-type=\"grid\"]{h2,h3,h4{margin-top:0px;}}div[data-type=\"grid\"]+div[data-type=\"grid\"]{margin-top:", spacing.xxlarge, ";}&[data-wide=\"true\"]{max-width:1100px;h2[id]{margin-top:", spacing.xxlarge, ";}div[data-type=\"campaign-block\"]{margin:", spacing.xxlarge, " 0px;}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZyb250cGFnZUFydGljbGUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTJCb0MiLCJmaWxlIjoiRnJvbnRwYWdlQXJ0aWNsZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAyMy1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXG4gKlxuICovXG5cbmltcG9ydCB7IENTU1Byb3BlcnRpZXMsIFJlYWN0Tm9kZSwgdXNlTWVtbyB9IGZyb20gXCJyZWFjdFwiO1xuaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQgeyBzcGFjaW5nIH0gZnJvbSBcIkBuZGxhL2NvcmVcIjtcbmltcG9ydCB7IHVzZUNvbXBvbmVudFNpemUgfSBmcm9tIFwiQG5kbGEvaG9va3NcIjtcbmltcG9ydCB7IEhlYWRpbmcsIFRleHQgfSBmcm9tIFwiQG5kbGEvdHlwb2dyYXBoeVwiO1xuaW1wb3J0IHsgQXJ0aWNsZUJ5bGluZSB9IGZyb20gXCIuLi9BcnRpY2xlXCI7XG5pbXBvcnQgeyBBcnRpY2xlIH0gZnJvbSBcIi4uL3R5cGVzXCI7XG5cbmludGVyZmFjZSBQ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3Rpb259XG4gICAgICA8L1RleHQ+XG4gICAgICB7Y29udGVudH1cbiAgICAgIDxBcnRpY2xlQnlsaW5lIGxpY2Vuc2VCb3g9e2xpY2Vuc2VCb3h9IGRpc3BsYXlCeWxpbmU9e2ZhbHNlfSAvPlxuICAgIDwvU3R5bGVkQXJ0aWNsZT5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEZyb250cGFnZUFydGljbGU7XG4iXX0= */"));
22
22
  export const FrontpageArticle = _ref => {
23
23
  let {
24
24
  article,
@@ -39,16 +39,16 @@ export const FrontpageArticle = _ref => {
39
39
  content
40
40
  } = article;
41
41
  if (isWide) {
42
- return _jsx(StyledArticle, {
42
+ return /*#__PURE__*/_jsx(StyledArticle, {
43
43
  "data-wide": isWide,
44
44
  style: cssVars,
45
45
  id: id,
46
46
  children: content
47
47
  });
48
48
  }
49
- return _jsxs(StyledArticle, {
49
+ return /*#__PURE__*/_jsxs(StyledArticle, {
50
50
  style: cssVars,
51
- children: [_jsx(Heading, {
51
+ children: [/*#__PURE__*/_jsx(Heading, {
52
52
  id: id,
53
53
  headingStyle: "h1-resource",
54
54
  element: "h1",
@@ -56,13 +56,12 @@ export const FrontpageArticle = _ref => {
56
56
  tabIndex: -1,
57
57
  lang: lang,
58
58
  children: title
59
- }), _jsx(Text, {
59
+ }), /*#__PURE__*/_jsx(Text, {
60
60
  textStyle: "ingress",
61
61
  element: "div",
62
62
  lang: lang,
63
63
  children: introduction
64
- }), content, _jsx(ArticleByline, {
65
- accordionHeaderVariant: "white",
64
+ }), content, /*#__PURE__*/_jsx(ArticleByline, {
66
65
  licenseBox: licenseBox,
67
66
  displayByline: false
68
67
  })]
package/es/Gloss/Gloss.js CHANGED
@@ -18,7 +18,7 @@ import SpeechControl from "../AudioPlayer/SpeechControl";
18
18
  // TODO: Figure out padding between bordered and simple variant.
19
19
  // The design says that the content above the accordion content should have enough padding to align with the accordion content.
20
20
  // When a gloss is bordered there's way too much padding.
21
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
21
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
22
  const getFilteredExamples = (glossData, exampleIds, exampleLangs) => {
23
23
  if (exampleIds !== undefined || exampleLangs !== undefined) {
24
24
  const exampleIdsList = exampleIds?.toString()?.split(",") ?? [];
@@ -90,81 +90,81 @@ const Gloss = _ref => {
90
90
  } = useTranslation();
91
91
  const filteredExamples = useMemo(() => getFilteredExamples(glossData, exampleIds, exampleLangs), [exampleIds, exampleLangs, glossData]);
92
92
  if (!glossData) return null;
93
- return _jsx(AccordionRoot, {
93
+ return /*#__PURE__*/_jsx(AccordionRoot, {
94
94
  multiple: true,
95
95
  variant: "clean",
96
- children: _jsxs(StyledAccordionItem, {
96
+ children: /*#__PURE__*/_jsxs(StyledAccordionItem, {
97
97
  value: "gloss",
98
98
  variant: variant,
99
- children: [_jsxs(Container, {
100
- children: [_jsxs(TextWrapper, {
101
- children: [_jsx(Text, {
99
+ children: [/*#__PURE__*/_jsxs(Container, {
100
+ children: [/*#__PURE__*/_jsxs(TextWrapper, {
101
+ children: [/*#__PURE__*/_jsx(Text, {
102
102
  textStyle: "label.medium",
103
103
  fontWeight: "bold",
104
104
  asChild: true,
105
105
  consumeCss: true,
106
106
  lang: glossData.originalLanguage,
107
- children: _jsx("span", {
107
+ children: /*#__PURE__*/_jsx("span", {
108
108
  children: glossData.gloss
109
109
  })
110
- }), glossData.transcriptions.traditional && _jsx(Text, {
110
+ }), glossData.transcriptions.traditional && /*#__PURE__*/_jsx(Text, {
111
111
  textStyle: "label.medium",
112
112
  asChild: true,
113
113
  consumeCss: true,
114
- children: _jsx("span", {
114
+ children: /*#__PURE__*/_jsx("span", {
115
115
  "aria-label": t("gloss.transcriptions.traditional"),
116
116
  lang: glossData.originalLanguage,
117
117
  children: glossData.transcriptions.traditional
118
118
  }, t("gloss.transcriptions.traditional"))
119
- }), glossData.transcriptions.pinyin && _jsx(Text, {
119
+ }), glossData.transcriptions.pinyin && /*#__PURE__*/_jsx(Text, {
120
120
  textStyle: "label.medium",
121
121
  asChild: true,
122
122
  consumeCss: true,
123
- children: _jsx("span", {
123
+ children: /*#__PURE__*/_jsx("span", {
124
124
  "data-pinyin": "",
125
125
  "aria-label": t("gloss.transcriptions.pinyin"),
126
126
  lang: glossData.originalLanguage,
127
127
  children: glossData.transcriptions.pinyin
128
128
  }, t("gloss.transcriptions.pinyin"))
129
- }), glossData.wordClass && _jsx(Text, {
129
+ }), glossData.wordClass && /*#__PURE__*/_jsx(Text, {
130
130
  textStyle: "label.medium",
131
131
  asChild: true,
132
132
  consumeCss: true,
133
- children: _jsx("span", {
133
+ children: /*#__PURE__*/_jsx("span", {
134
134
  "aria-label": t("gloss.wordClass"),
135
135
  children: t(`wordClass.${glossData.wordClass}`).toLowerCase()
136
136
  })
137
137
  })]
138
- }), audio?.src && _jsx(SpeechControl, {
138
+ }), audio?.src && /*#__PURE__*/_jsx(SpeechControl, {
139
139
  src: audio.src,
140
140
  title: audio.title,
141
141
  type: "gloss"
142
142
  })]
143
- }), _jsxs(StyledContainer, {
144
- children: [_jsx(Text, {
143
+ }), /*#__PURE__*/_jsxs(StyledContainer, {
144
+ children: [/*#__PURE__*/_jsx(Text, {
145
145
  textStyle: "label.medium",
146
146
  asChild: true,
147
147
  consumeCss: true,
148
- children: _jsx("span", {
148
+ children: /*#__PURE__*/_jsx("span", {
149
149
  lang: title.language,
150
150
  children: title.title
151
151
  })
152
- }), !!filteredExamples.length && _jsx(AccordionItemTrigger, {
152
+ }), !!filteredExamples.length && /*#__PURE__*/_jsx(AccordionItemTrigger, {
153
153
  asChild: true,
154
- children: _jsx(IconButton, {
154
+ children: /*#__PURE__*/_jsx(IconButton, {
155
155
  variant: "tertiary",
156
156
  "aria-label": t("gloss.showExamples"),
157
157
  title: t("gloss.showExamples"),
158
- children: _jsx(AccordionItemIndicator, {
158
+ children: /*#__PURE__*/_jsx(AccordionItemIndicator, {
159
159
  asChild: true,
160
- children: _jsx(ChevronDown, {
160
+ children: /*#__PURE__*/_jsx(ChevronDown, {
161
161
  size: "medium"
162
162
  })
163
163
  })
164
164
  })
165
165
  })]
166
- }), _jsx(StyledAccordionItemContent, {
167
- children: filteredExamples.map((examples, index) => _jsx(GlossExample, {
166
+ }), /*#__PURE__*/_jsx(StyledAccordionItemContent, {
167
+ children: filteredExamples.map((examples, index) => /*#__PURE__*/_jsx(GlossExample, {
168
168
  examples: examples,
169
169
  originalLanguage: glossData.originalLanguage
170
170
  }, `gloss-example-${index}`))
@@ -9,7 +9,7 @@
9
9
  import { Fragment } from "react";
10
10
  import { Text } from "@ndla/primitives";
11
11
  import { styled } from "@ndla/styled-system/jsx";
12
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  const StyledGlossExample = styled("div", {
14
14
  base: {
15
15
  borderTop: "1px solid",
@@ -35,24 +35,24 @@ const GlossExample = _ref => {
35
35
  examples,
36
36
  originalLanguage
37
37
  } = _ref;
38
- return _jsx("div", {
39
- children: examples.map((examples, index) => _jsxs(Fragment, {
40
- children: [_jsx(StyledGlossExample, {
38
+ return /*#__PURE__*/_jsx("div", {
39
+ children: examples.map((examples, index) => /*#__PURE__*/_jsxs(Fragment, {
40
+ children: [/*#__PURE__*/_jsx(StyledGlossExample, {
41
41
  lang: examples.language,
42
- children: _jsx(Text, {
42
+ children: /*#__PURE__*/_jsx(Text, {
43
43
  textStyle: "label.medium",
44
44
  lang: examples.language,
45
45
  children: examples.example
46
46
  })
47
- }), !!examples.transcriptions.pinyin && _jsx(StyledGlossExample, {
48
- children: _jsx(PinyinText, {
47
+ }), !!examples.transcriptions.pinyin && /*#__PURE__*/_jsx(StyledGlossExample, {
48
+ children: /*#__PURE__*/_jsx(PinyinText, {
49
49
  "data-pinyin": "",
50
50
  lang: originalLanguage,
51
51
  textStyle: "label.medium",
52
52
  children: examples.transcriptions?.pinyin
53
53
  })
54
- }), !!examples.transcriptions?.traditional && _jsx(StyledGlossExample, {
55
- children: _jsx(Text, {
54
+ }), !!examples.transcriptions?.traditional && /*#__PURE__*/_jsx(StyledGlossExample, {
55
+ children: /*#__PURE__*/_jsx(Text, {
56
56
  textStyle: "label.medium",
57
57
  lang: originalLanguage,
58
58
  children: examples.transcriptions.traditional
package/es/Grid/Grid.js CHANGED
@@ -9,7 +9,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
9
9
  */
10
10
 
11
11
  import { breakpoints, colors, misc, mq, spacing } from "@ndla/core";
12
- import { jsx as _jsx } from "@emotion/react/jsx-runtime";
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  const GridContainer = /*#__PURE__*/_styled("div", {
14
14
  target: "e1c0s8mo1",
15
15
  label: "GridContainer"
@@ -30,7 +30,7 @@ const Grid = _ref => {
30
30
  ...rest
31
31
  } = _ref;
32
32
  const amountOfColumns = children?.length === 3 ? "3" : columns;
33
- return _jsx(GridContainer, {
33
+ return /*#__PURE__*/_jsx(GridContainer, {
34
34
  "data-frontpage": size,
35
35
  "data-border": border,
36
36
  "data-columns": amountOfColumns,
@@ -56,9 +56,9 @@ export const GridParallaxItem = _ref2 => {
56
56
  children,
57
57
  ...rest
58
58
  } = _ref2;
59
- return _jsx(StyledGridParallaxItem, {
59
+ return /*#__PURE__*/_jsx(StyledGridParallaxItem, {
60
60
  ...rest,
61
- children: _jsx("div", {
61
+ children: /*#__PURE__*/_jsx("div", {
62
62
  children: children
63
63
  })
64
64
  });
@@ -10,7 +10,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
10
10
 
11
11
  import parse from "html-react-parser";
12
12
  import { breakpoints, colors, fonts, mq, spacing } from "@ndla/core";
13
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
14
  const ContentWrapper = /*#__PURE__*/_styled("div", {
15
15
  target: "e14we9tj3",
16
16
  label: "ContentWrapper"
@@ -47,15 +47,15 @@ const KeyFigure = _ref => {
47
47
  title,
48
48
  subtitle
49
49
  } = _ref;
50
- return _jsxs(ContentWrapper, {
51
- children: [_jsx(StyledImage, {
50
+ return /*#__PURE__*/_jsxs(ContentWrapper, {
51
+ children: [/*#__PURE__*/_jsx(StyledImage, {
52
52
  src: `${image?.src}?width=150`,
53
53
  width: 150,
54
54
  height: 150,
55
55
  alt: image?.alt
56
- }), _jsx(TitleWrapper, {
56
+ }), /*#__PURE__*/_jsx(TitleWrapper, {
57
57
  children: parse(title)
58
- }), _jsx(SubTitleWrapper, {
58
+ }), /*#__PURE__*/_jsx(SubTitleWrapper, {
59
59
  children: parse(subtitle)
60
60
  })]
61
61
  });