@ndla/ui 56.0.148-alpha.0 → 56.0.149-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 (263) hide show
  1. package/es/AudioPlayer/AudioPlayer.mjs +5 -6
  2. package/es/AudioPlayer/AudioPlayer.mjs.map +1 -1
  3. package/es/AudioPlayer/Controls.mjs +1 -2
  4. package/es/AudioPlayer/Controls.mjs.map +1 -1
  5. package/es/AudioPlayer/SpeechControl.mjs +1 -2
  6. package/es/AudioPlayer/SpeechControl.mjs.map +1 -1
  7. package/es/Breadcrumb/Breadcrumb.mjs +3 -4
  8. package/es/Breadcrumb/Breadcrumb.mjs.map +1 -1
  9. package/es/Breadcrumb/BreadcrumbItem.mjs +1 -2
  10. package/es/Breadcrumb/BreadcrumbItem.mjs.map +1 -1
  11. package/es/Breadcrumb/HomeBreadcrumb.mjs +3 -4
  12. package/es/Breadcrumb/HomeBreadcrumb.mjs.map +1 -1
  13. package/es/CampaignBlock/CampaignBlock.mjs +1 -2
  14. package/es/CampaignBlock/CampaignBlock.mjs.map +1 -1
  15. package/es/CodeBlock/CodeBlock.mjs +2 -3
  16. package/es/CodeBlock/CodeBlock.mjs.map +1 -1
  17. package/es/Concept/Concept.mjs +7 -7
  18. package/es/Concept/Concept.mjs.map +1 -1
  19. package/es/CopyParagraphButton/CopyParagraphButton.mjs +1 -2
  20. package/es/CopyParagraphButton/CopyParagraphButton.mjs.map +1 -1
  21. package/es/Embed/AudioEmbed.mjs +6 -7
  22. package/es/Embed/AudioEmbed.mjs.map +1 -1
  23. package/es/Embed/BrightcoveEmbed.mjs +3 -4
  24. package/es/Embed/BrightcoveEmbed.mjs.map +1 -1
  25. package/es/Embed/CodeEmbed.mjs +5 -6
  26. package/es/Embed/CodeEmbed.mjs.map +1 -1
  27. package/es/Embed/ConceptEmbed.mjs +2 -2
  28. package/es/Embed/ConceptEmbed.mjs.map +1 -1
  29. package/es/Embed/ContentLinkEmbed.mjs +1 -2
  30. package/es/Embed/ContentLinkEmbed.mjs.map +1 -1
  31. package/es/Embed/CopyrightEmbed.mjs +1 -2
  32. package/es/Embed/CopyrightEmbed.mjs.map +1 -1
  33. package/es/Embed/EmbedErrorPlaceholder.mjs +1 -2
  34. package/es/Embed/EmbedErrorPlaceholder.mjs.map +1 -1
  35. package/es/Embed/ExternalEmbed.mjs +5 -6
  36. package/es/Embed/ExternalEmbed.mjs.map +1 -1
  37. package/es/Embed/FootnoteEmbed.mjs +1 -2
  38. package/es/Embed/FootnoteEmbed.mjs.map +1 -1
  39. package/es/Embed/GlossEmbed.mjs +5 -5
  40. package/es/Embed/GlossEmbed.mjs.map +1 -1
  41. package/es/Embed/H5pEmbed.mjs +3 -4
  42. package/es/Embed/H5pEmbed.mjs.map +1 -1
  43. package/es/Embed/IframeEmbed.mjs +5 -6
  44. package/es/Embed/IframeEmbed.mjs.map +1 -1
  45. package/es/Embed/ImageEmbed.mjs +3 -4
  46. package/es/Embed/ImageEmbed.mjs.map +1 -1
  47. package/es/Embed/RelatedContentEmbed.mjs +1 -2
  48. package/es/Embed/RelatedContentEmbed.mjs.map +1 -1
  49. package/es/Embed/UnknownEmbed.mjs +1 -2
  50. package/es/Embed/UnknownEmbed.mjs.map +1 -1
  51. package/es/Embed/UuDisclaimerEmbed.mjs +1 -2
  52. package/es/Embed/UuDisclaimerEmbed.mjs.map +1 -1
  53. package/es/FactBox/FactBox.mjs +1 -2
  54. package/es/FactBox/FactBox.mjs.map +1 -1
  55. package/es/Gloss/Gloss.mjs +5 -6
  56. package/es/Gloss/Gloss.mjs.map +1 -1
  57. package/es/Gloss/GlossExample.mjs +1 -2
  58. package/es/Gloss/GlossExample.mjs.map +1 -1
  59. package/es/KeyFigure/KeyFigure.mjs +1 -2
  60. package/es/KeyFigure/KeyFigure.mjs.map +1 -1
  61. package/es/LinkBlock/LinkBlock.mjs +1 -2
  62. package/es/LinkBlock/LinkBlock.mjs.map +1 -1
  63. package/es/LinkBlock/LinkBlockSection.mjs +1 -2
  64. package/es/LinkBlock/LinkBlockSection.mjs.map +1 -1
  65. package/es/ResourceBox/ResourceBox.mjs +1 -2
  66. package/es/ResourceBox/ResourceBox.mjs.map +1 -1
  67. package/es/index.mjs +31 -27
  68. package/es/locale/messages-en.mjs +38 -37
  69. package/es/locale/messages-en.mjs.map +1 -1
  70. package/es/locale/messages-nb.mjs +38 -37
  71. package/es/locale/messages-nb.mjs.map +1 -1
  72. package/es/locale/messages-nn.mjs +38 -37
  73. package/es/locale/messages-nn.mjs.map +1 -1
  74. package/es/locale/messages-se.mjs +38 -37
  75. package/es/locale/messages-se.mjs.map +1 -1
  76. package/es/model/SubjectCategories.mjs +9 -2
  77. package/es/model/SubjectCategories.mjs.map +1 -1
  78. package/es/model/SubjectTypes.mjs +9 -2
  79. package/es/model/SubjectTypes.mjs.map +1 -1
  80. package/es/model/WordClass.mjs +1 -1
  81. package/es/model/index.mjs +2 -3
  82. package/es/model/index.mjs.map +1 -1
  83. package/lib/AudioPlayer/AudioPlayer.d.ts +2 -2
  84. package/lib/AudioPlayer/AudioPlayer.js +3 -4
  85. package/lib/AudioPlayer/AudioPlayer.js.map +1 -1
  86. package/lib/AudioPlayer/Controls.d.ts +2 -2
  87. package/lib/AudioPlayer/Controls.js +1 -2
  88. package/lib/AudioPlayer/Controls.js.map +1 -1
  89. package/lib/AudioPlayer/SpeechControl.d.ts +2 -2
  90. package/lib/AudioPlayer/SpeechControl.js +1 -2
  91. package/lib/AudioPlayer/SpeechControl.js.map +1 -1
  92. package/lib/Breadcrumb/Breadcrumb.d.ts +2 -2
  93. package/lib/Breadcrumb/Breadcrumb.js +2 -3
  94. package/lib/Breadcrumb/Breadcrumb.js.map +1 -1
  95. package/lib/Breadcrumb/BreadcrumbItem.d.ts +2 -2
  96. package/lib/Breadcrumb/BreadcrumbItem.js +1 -2
  97. package/lib/Breadcrumb/BreadcrumbItem.js.map +1 -1
  98. package/lib/Breadcrumb/HomeBreadcrumb.d.ts +2 -2
  99. package/lib/Breadcrumb/HomeBreadcrumb.js +2 -3
  100. package/lib/Breadcrumb/HomeBreadcrumb.js.map +1 -1
  101. package/lib/CampaignBlock/CampaignBlock.d.ts +2 -2
  102. package/lib/CampaignBlock/CampaignBlock.js +1 -2
  103. package/lib/CampaignBlock/CampaignBlock.js.map +1 -1
  104. package/lib/CodeBlock/CodeBlock.d.ts +2 -2
  105. package/lib/CodeBlock/CodeBlock.js +2 -3
  106. package/lib/CodeBlock/CodeBlock.js.map +1 -1
  107. package/lib/Concept/Concept.js +2 -2
  108. package/lib/Concept/Concept.js.map +1 -1
  109. package/lib/CopyParagraphButton/CopyParagraphButton.d.ts +2 -2
  110. package/lib/CopyParagraphButton/CopyParagraphButton.js +1 -2
  111. package/lib/CopyParagraphButton/CopyParagraphButton.js.map +1 -1
  112. package/lib/Embed/AudioEmbed.d.ts +2 -2
  113. package/lib/Embed/AudioEmbed.js +4 -5
  114. package/lib/Embed/AudioEmbed.js.map +1 -1
  115. package/lib/Embed/BrightcoveEmbed.d.ts +2 -2
  116. package/lib/Embed/BrightcoveEmbed.js +2 -3
  117. package/lib/Embed/BrightcoveEmbed.js.map +1 -1
  118. package/lib/Embed/CodeEmbed.d.ts +2 -2
  119. package/lib/Embed/CodeEmbed.js +3 -4
  120. package/lib/Embed/CodeEmbed.js.map +1 -1
  121. package/lib/Embed/ConceptEmbed.js +1 -1
  122. package/lib/Embed/ConceptEmbed.js.map +1 -1
  123. package/lib/Embed/ContentLinkEmbed.d.ts +2 -2
  124. package/lib/Embed/ContentLinkEmbed.js +1 -2
  125. package/lib/Embed/ContentLinkEmbed.js.map +1 -1
  126. package/lib/Embed/CopyrightEmbed.d.ts +2 -2
  127. package/lib/Embed/CopyrightEmbed.js +1 -2
  128. package/lib/Embed/CopyrightEmbed.js.map +1 -1
  129. package/lib/Embed/EmbedErrorPlaceholder.d.ts +2 -2
  130. package/lib/Embed/EmbedErrorPlaceholder.js +1 -2
  131. package/lib/Embed/EmbedErrorPlaceholder.js.map +1 -1
  132. package/lib/Embed/ExternalEmbed.d.ts +2 -2
  133. package/lib/Embed/ExternalEmbed.js +3 -4
  134. package/lib/Embed/ExternalEmbed.js.map +1 -1
  135. package/lib/Embed/FootnoteEmbed.d.ts +2 -2
  136. package/lib/Embed/FootnoteEmbed.js +1 -2
  137. package/lib/Embed/FootnoteEmbed.js.map +1 -1
  138. package/lib/Embed/GlossEmbed.js +3 -3
  139. package/lib/Embed/GlossEmbed.js.map +1 -1
  140. package/lib/Embed/H5pEmbed.d.ts +2 -2
  141. package/lib/Embed/H5pEmbed.js +2 -3
  142. package/lib/Embed/H5pEmbed.js.map +1 -1
  143. package/lib/Embed/IframeEmbed.d.ts +2 -2
  144. package/lib/Embed/IframeEmbed.js +3 -4
  145. package/lib/Embed/IframeEmbed.js.map +1 -1
  146. package/lib/Embed/ImageEmbed.d.ts +2 -2
  147. package/lib/Embed/ImageEmbed.js +2 -3
  148. package/lib/Embed/ImageEmbed.js.map +1 -1
  149. package/lib/Embed/RelatedContentEmbed.d.ts +2 -2
  150. package/lib/Embed/RelatedContentEmbed.js +1 -2
  151. package/lib/Embed/RelatedContentEmbed.js.map +1 -1
  152. package/lib/Embed/UnknownEmbed.d.ts +2 -2
  153. package/lib/Embed/UnknownEmbed.js +1 -2
  154. package/lib/Embed/UnknownEmbed.js.map +1 -1
  155. package/lib/Embed/UuDisclaimerEmbed.d.ts +2 -2
  156. package/lib/Embed/UuDisclaimerEmbed.js +1 -2
  157. package/lib/Embed/UuDisclaimerEmbed.js.map +1 -1
  158. package/lib/FactBox/FactBox.d.ts +2 -2
  159. package/lib/FactBox/FactBox.js +1 -2
  160. package/lib/FactBox/FactBox.js.map +1 -1
  161. package/lib/Gloss/Gloss.d.ts +2 -2
  162. package/lib/Gloss/Gloss.js +3 -4
  163. package/lib/Gloss/Gloss.js.map +1 -1
  164. package/lib/Gloss/GlossExample.d.ts +2 -2
  165. package/lib/Gloss/GlossExample.js +1 -2
  166. package/lib/Gloss/GlossExample.js.map +1 -1
  167. package/lib/KeyFigure/KeyFigure.d.ts +1 -2
  168. package/lib/KeyFigure/KeyFigure.js +1 -2
  169. package/lib/KeyFigure/KeyFigure.js.map +1 -1
  170. package/lib/LinkBlock/LinkBlock.d.ts +2 -2
  171. package/lib/LinkBlock/LinkBlock.js +1 -2
  172. package/lib/LinkBlock/LinkBlock.js.map +1 -1
  173. package/lib/LinkBlock/LinkBlockSection.d.ts +2 -2
  174. package/lib/LinkBlock/LinkBlockSection.js +1 -2
  175. package/lib/LinkBlock/LinkBlockSection.js.map +1 -1
  176. package/lib/ResourceBox/ResourceBox.d.ts +1 -1
  177. package/lib/ResourceBox/ResourceBox.js +0 -2
  178. package/lib/ResourceBox/ResourceBox.js.map +1 -1
  179. package/lib/index.d.ts +30 -26
  180. package/lib/index.js +37 -27
  181. package/lib/locale/messages-en.d.ts +11 -9
  182. package/lib/locale/messages-en.js +47 -46
  183. package/lib/locale/messages-en.js.map +1 -1
  184. package/lib/locale/messages-nb.d.ts +11 -9
  185. package/lib/locale/messages-nb.js +47 -46
  186. package/lib/locale/messages-nb.js.map +1 -1
  187. package/lib/locale/messages-nn.d.ts +11 -9
  188. package/lib/locale/messages-nn.js +47 -46
  189. package/lib/locale/messages-nn.js.map +1 -1
  190. package/lib/locale/messages-se.d.ts +11 -9
  191. package/lib/locale/messages-se.js +47 -46
  192. package/lib/locale/messages-se.js.map +1 -1
  193. package/lib/model/SubjectCategories.d.ts +6 -0
  194. package/lib/model/SubjectCategories.js +9 -1
  195. package/lib/model/SubjectCategories.js.map +1 -1
  196. package/lib/model/SubjectTypes.d.ts +6 -0
  197. package/lib/model/SubjectTypes.js +9 -1
  198. package/lib/model/SubjectTypes.js.map +1 -1
  199. package/lib/model/WordClass.js +1 -0
  200. package/lib/model/index.d.ts +1 -2
  201. package/lib/model/index.js +2 -3
  202. package/lib/model/index.js.map +1 -1
  203. package/package.json +8 -8
  204. package/src/AudioPlayer/AudiPlayer.stories.tsx +1 -1
  205. package/src/AudioPlayer/AudioPlayer.tsx +3 -5
  206. package/src/AudioPlayer/Controls.tsx +1 -3
  207. package/src/AudioPlayer/SpeechControl.tsx +1 -3
  208. package/src/Breadcrumb/Breadcrumb.stories.tsx +1 -1
  209. package/src/Breadcrumb/Breadcrumb.tsx +2 -4
  210. package/src/Breadcrumb/BreadcrumbItem.tsx +1 -3
  211. package/src/Breadcrumb/HomeBreadcrumb.stories.tsx +1 -1
  212. package/src/Breadcrumb/HomeBreadcrumb.tsx +2 -4
  213. package/src/CampaignBlock/CampaignBlock.stories.tsx +1 -1
  214. package/src/CampaignBlock/CampaignBlock.tsx +1 -3
  215. package/src/CodeBlock/CodeBlock.stories.tsx +1 -1
  216. package/src/CodeBlock/CodeBlock.tsx +1 -3
  217. package/src/Concept/Concept.tsx +5 -5
  218. package/src/CopyParagraphButton/CopyParagraphButton.tsx +1 -3
  219. package/src/Embed/AudioEmbed.stories.tsx +1 -1
  220. package/src/Embed/AudioEmbed.tsx +3 -5
  221. package/src/Embed/BrightcoveEmbed.stories.tsx +1 -1
  222. package/src/Embed/BrightcoveEmbed.tsx +2 -4
  223. package/src/Embed/CodeEmbed.stories.tsx +1 -1
  224. package/src/Embed/CodeEmbed.tsx +3 -5
  225. package/src/Embed/ConceptEmbed.tsx +1 -1
  226. package/src/Embed/ContentLinkEmbed.tsx +1 -3
  227. package/src/Embed/CopyrightEmbed.tsx +1 -3
  228. package/src/Embed/EmbedErrorPlaceholder.tsx +1 -3
  229. package/src/Embed/ExternalEmbed.stories.tsx +1 -1
  230. package/src/Embed/ExternalEmbed.tsx +3 -4
  231. package/src/Embed/FootnoteEmbed.stories.tsx +1 -1
  232. package/src/Embed/FootnoteEmbed.tsx +1 -3
  233. package/src/Embed/GlossEmbed.tsx +2 -2
  234. package/src/Embed/H5pEmbed.stories.tsx +1 -1
  235. package/src/Embed/H5pEmbed.tsx +2 -4
  236. package/src/Embed/IframeEmbed.stories.tsx +1 -1
  237. package/src/Embed/IframeEmbed.tsx +3 -5
  238. package/src/Embed/ImageEmbed.stories.tsx +1 -1
  239. package/src/Embed/ImageEmbed.tsx +2 -4
  240. package/src/Embed/RelatedContentEmbed.stories.tsx +1 -1
  241. package/src/Embed/RelatedContentEmbed.tsx +1 -3
  242. package/src/Embed/UnknownEmbed.tsx +1 -3
  243. package/src/Embed/UuDisclaimerEmbed.stories.tsx +5 -5
  244. package/src/Embed/UuDisclaimerEmbed.tsx +1 -3
  245. package/src/FactBox/FactBox.tsx +1 -3
  246. package/src/FactBox/Factbox.stories.tsx +1 -1
  247. package/src/Gloss/Gloss.stories.tsx +2 -2
  248. package/src/Gloss/Gloss.tsx +3 -5
  249. package/src/Gloss/GlossExample.tsx +1 -3
  250. package/src/KeyFigure/KeyFigure.stories.tsx +1 -1
  251. package/src/KeyFigure/KeyFigure.tsx +1 -3
  252. package/src/LinkBlock/LinkBlock.stories.tsx +2 -2
  253. package/src/LinkBlock/LinkBlock.tsx +1 -3
  254. package/src/LinkBlock/LinkBlockSection.tsx +1 -3
  255. package/src/ResourceBox/ResourceBox.tsx +0 -2
  256. package/src/index.ts +30 -26
  257. package/src/locale/messages-en.ts +38 -38
  258. package/src/locale/messages-nb.ts +38 -38
  259. package/src/locale/messages-nn.ts +38 -38
  260. package/src/locale/messages-se.ts +38 -38
  261. package/src/model/SubjectCategories.ts +7 -0
  262. package/src/model/SubjectTypes.ts +7 -0
  263. package/src/model/index.ts +1 -3
@@ -10,5 +10,5 @@ interface Props {
10
10
  examples: IGlossExampleDTO[];
11
11
  originalLanguage: string | undefined;
12
12
  }
13
- declare const GlossExample: ({ examples, originalLanguage }: Props) => import("react/jsx-runtime").JSX.Element;
14
- export default GlossExample;
13
+ export declare const GlossExample: ({ examples, originalLanguage }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -44,8 +44,7 @@ const GlossExample = ({ examples, originalLanguage }) => {
44
44
  }) })
45
45
  ] }, index)) });
46
46
  };
47
- var GlossExample_default = GlossExample;
48
47
 
49
48
  //#endregion
50
- exports.default = GlossExample_default;
49
+ exports.GlossExample = GlossExample;
51
50
  //# sourceMappingURL=GlossExample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GlossExample.js","names":["Text","Fragment","examples"],"sources":["../../src/Gloss/GlossExample.tsx"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Fragment } from \"react\";\nimport { Text } from \"@ndla/primitives\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { IGlossExampleDTO } from \"@ndla/types-backend/concept-api\";\n\ninterface Props {\n examples: IGlossExampleDTO[];\n originalLanguage: string | undefined;\n}\n\nconst StyledGlossExample = styled(\"div\", {\n base: {\n borderTop: \"1px solid\",\n borderColor: \"stroke.subtle\",\n paddingBlock: \"xsmall\",\n paddingInline: \"medium\",\n _first: {\n background: \"surface.brand.1.subtle\",\n borderColor: \"stroke.default\",\n \"& p\": {\n fontWeight: \"bold\",\n },\n },\n },\n});\n\nconst PinyinText = styled(Text, {\n base: {\n fontStyle: \"italic\",\n },\n});\n\nconst GlossExample = ({ examples, originalLanguage }: Props) => {\n return (\n <div>\n {examples.map((examples, index) => (\n <Fragment key={index}>\n <StyledGlossExample lang={examples.language}>\n <Text textStyle=\"label.medium\" lang={examples.language}>\n {examples.example}\n </Text>\n </StyledGlossExample>\n {!!examples.transcriptions.pinyin && (\n <StyledGlossExample>\n <PinyinText data-pinyin=\"\" lang={originalLanguage} textStyle=\"label.medium\">\n {examples.transcriptions?.pinyin}\n </PinyinText>\n </StyledGlossExample>\n )}\n {!!examples.transcriptions?.traditional && (\n <StyledGlossExample>\n <Text textStyle=\"label.medium\" lang={originalLanguage}>\n {examples.transcriptions.traditional}\n </Text>\n </StyledGlossExample>\n )}\n </Fragment>\n ))}\n </div>\n );\n};\n\nexport default GlossExample;\n"],"mappings":";;;;;;;;;;;AAkBA,MAAM,0DAA4B,OAAO,EACvC,MAAM;CACJ,WAAW;CACX,aAAa;CACb,cAAc;CACd,eAAe;CACf,QAAQ;EACN,YAAY;EACZ,aAAa;EACb,OAAO,EACL,YAAY,QACb;EACF;CACF,EACF,CAAC;AAEF,MAAM,kDAAoBA,wBAAM,EAC9B,MAAM,EACJ,WAAW,UACZ,EACF,CAAC;AAEF,MAAM,gBAAgB,EAAE,UAAU,uBAA8B;AAC9D,QACE,2CAAC,mBACE,SAAS,KAAK,YAAU,UACvB,4CAACC;EACC,2CAAC;GAAmB,MAAMC,WAAS;aACjC,2CAACF;IAAK,WAAU;IAAe,MAAME,WAAS;cAC3CA,WAAS;KACL;IACY;EACpB,CAAC,CAACA,WAAS,eAAe,UACzB,2CAAC,gCACC,2CAAC;GAAW,eAAY;GAAG,MAAM;GAAkB,WAAU;aAC1DA,WAAS,gBAAgB;IACf,GACM;EAEtB,CAAC,CAACA,WAAS,gBAAgB,eAC1B,2CAAC,gCACC,2CAACF;GAAK,WAAU;GAAe,MAAM;aAClCE,WAAS,eAAe;IACpB,GACY;MAlBV,MAoBJ,CACX,GACE;;AAIV,2BAAe"}
1
+ {"version":3,"file":"GlossExample.js","names":["Text","Fragment","examples"],"sources":["../../src/Gloss/GlossExample.tsx"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Fragment } from \"react\";\nimport { Text } from \"@ndla/primitives\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { IGlossExampleDTO } from \"@ndla/types-backend/concept-api\";\n\ninterface Props {\n examples: IGlossExampleDTO[];\n originalLanguage: string | undefined;\n}\n\nconst StyledGlossExample = styled(\"div\", {\n base: {\n borderTop: \"1px solid\",\n borderColor: \"stroke.subtle\",\n paddingBlock: \"xsmall\",\n paddingInline: \"medium\",\n _first: {\n background: \"surface.brand.1.subtle\",\n borderColor: \"stroke.default\",\n \"& p\": {\n fontWeight: \"bold\",\n },\n },\n },\n});\n\nconst PinyinText = styled(Text, {\n base: {\n fontStyle: \"italic\",\n },\n});\n\nexport const GlossExample = ({ examples, originalLanguage }: Props) => {\n return (\n <div>\n {examples.map((examples, index) => (\n <Fragment key={index}>\n <StyledGlossExample lang={examples.language}>\n <Text textStyle=\"label.medium\" lang={examples.language}>\n {examples.example}\n </Text>\n </StyledGlossExample>\n {!!examples.transcriptions.pinyin && (\n <StyledGlossExample>\n <PinyinText data-pinyin=\"\" lang={originalLanguage} textStyle=\"label.medium\">\n {examples.transcriptions?.pinyin}\n </PinyinText>\n </StyledGlossExample>\n )}\n {!!examples.transcriptions?.traditional && (\n <StyledGlossExample>\n <Text textStyle=\"label.medium\" lang={originalLanguage}>\n {examples.transcriptions.traditional}\n </Text>\n </StyledGlossExample>\n )}\n </Fragment>\n ))}\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;AAkBA,MAAM,0DAA4B,OAAO,EACvC,MAAM;CACJ,WAAW;CACX,aAAa;CACb,cAAc;CACd,eAAe;CACf,QAAQ;EACN,YAAY;EACZ,aAAa;EACb,OAAO,EACL,YAAY,QACb;EACF;CACF,EACF,CAAC;AAEF,MAAM,kDAAoBA,wBAAM,EAC9B,MAAM,EACJ,WAAW,UACZ,EACF,CAAC;AAEF,MAAa,gBAAgB,EAAE,UAAU,uBAA8B;AACrE,QACE,2CAAC,mBACE,SAAS,KAAK,YAAU,UACvB,4CAACC;EACC,2CAAC;GAAmB,MAAMC,WAAS;aACjC,2CAACF;IAAK,WAAU;IAAe,MAAME,WAAS;cAC3CA,WAAS;KACL;IACY;EACpB,CAAC,CAACA,WAAS,eAAe,UACzB,2CAAC,gCACC,2CAAC;GAAW,eAAY;GAAG,MAAM;GAAkB,WAAU;aAC1DA,WAAS,gBAAgB;IACf,GACM;EAEtB,CAAC,CAACA,WAAS,gBAAgB,eAC1B,2CAAC,gCACC,2CAACF;GAAK,WAAU;GAAe,MAAM;aAClCE,WAAS,eAAe;IACpB,GACY;MAlBV,MAoBJ,CACX,GACE"}
@@ -13,5 +13,4 @@ export interface Props {
13
13
  title: string;
14
14
  subtitle: string;
15
15
  }
16
- declare const KeyFigure: ({ image, title, subtitle }: Props) => import("react/jsx-runtime").JSX.Element;
17
- export default KeyFigure;
16
+ export declare const KeyFigure: ({ image, title, subtitle }: Props) => import("react/jsx-runtime").JSX.Element;
@@ -43,8 +43,7 @@ const KeyFigure = ({ image, title, subtitle }) => {
43
43
  ]
44
44
  });
45
45
  };
46
- var KeyFigure_default = KeyFigure;
47
46
 
48
47
  //#endregion
49
- exports.default = KeyFigure_default;
48
+ exports.KeyFigure = KeyFigure;
50
49
  //# sourceMappingURL=KeyFigure.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyFigure.js","names":[],"sources":["../../src/KeyFigure/KeyFigure.tsx"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport parse from \"html-react-parser\";\nimport { styled } from \"@ndla/styled-system/jsx\";\n\nconst ContentWrapper = styled(\"div\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: \"xsmall\",\n\n \"&:not(:has(> img))\": {\n paddingBlock: \"xxlarge\",\n },\n },\n});\n\nconst StyledImage = styled(\"img\", {\n base: {\n height: \"surface.3xsmall\",\n width: \"surface.3xsmall\",\n borderRadius: \"xsmall\",\n },\n});\n\nconst TitleWrapper = styled(\"div\", {\n base: {\n textStyle: \"heading.large\",\n textAlign: \"center\",\n },\n});\n\nconst SubTitleWrapper = styled(\"div\", {\n base: {\n textStyle: \"title.medium\",\n textAlign: \"center\",\n },\n});\n\nexport interface Props {\n image?: {\n src?: string;\n alt?: string;\n };\n title: string;\n subtitle: string;\n}\n\nconst KeyFigure = ({ image, title, subtitle }: Props) => {\n return (\n <ContentWrapper data-embed-type=\"key-figure\">\n {!!image && <StyledImage src={`${image?.src}?width=150`} width={150} height={150} alt={image?.alt} />}\n <TitleWrapper>{parse(title)}</TitleWrapper>\n <SubTitleWrapper>{parse(subtitle)}</SubTitleWrapper>\n </ContentWrapper>\n );\n};\n\nexport default KeyFigure;\n"],"mappings":";;;;;;;;;AAWA,MAAM,sDAAwB,OAAO,EACnC,MAAM;CACJ,SAAS;CACT,eAAe;CACf,YAAY;CACZ,gBAAgB;CAChB,KAAK;CAEL,sBAAsB,EACpB,cAAc,WACf;CACF,EACF,CAAC;AAEF,MAAM,mDAAqB,OAAO,EAChC,MAAM;CACJ,QAAQ;CACR,OAAO;CACP,cAAc;CACf,EACF,CAAC;AAEF,MAAM,oDAAsB,OAAO,EACjC,MAAM;CACJ,WAAW;CACX,WAAW;CACZ,EACF,CAAC;AAEF,MAAM,uDAAyB,OAAO,EACpC,MAAM;CACJ,WAAW;CACX,WAAW;CACZ,EACF,CAAC;AAWF,MAAM,aAAa,EAAE,OAAO,OAAO,eAAsB;AACvD,QACE,4CAAC;EAAe,mBAAgB;;GAC7B,CAAC,CAAC,SAAS,2CAAC;IAAY,KAAK,GAAG,OAAO,IAAI;IAAa,OAAO;IAAK,QAAQ;IAAK,KAAK,OAAO;KAAO;GACrG,2CAAC,yDAAoB,MAAM,GAAgB;GAC3C,2CAAC,4DAAuB,SAAS,GAAmB;;GACrC;;AAIrB,wBAAe"}
1
+ {"version":3,"file":"KeyFigure.js","names":[],"sources":["../../src/KeyFigure/KeyFigure.tsx"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport parse from \"html-react-parser\";\nimport { styled } from \"@ndla/styled-system/jsx\";\n\nconst ContentWrapper = styled(\"div\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: \"xsmall\",\n\n \"&:not(:has(> img))\": {\n paddingBlock: \"xxlarge\",\n },\n },\n});\n\nconst StyledImage = styled(\"img\", {\n base: {\n height: \"surface.3xsmall\",\n width: \"surface.3xsmall\",\n borderRadius: \"xsmall\",\n },\n});\n\nconst TitleWrapper = styled(\"div\", {\n base: {\n textStyle: \"heading.large\",\n textAlign: \"center\",\n },\n});\n\nconst SubTitleWrapper = styled(\"div\", {\n base: {\n textStyle: \"title.medium\",\n textAlign: \"center\",\n },\n});\n\nexport interface Props {\n image?: {\n src?: string;\n alt?: string;\n };\n title: string;\n subtitle: string;\n}\n\nexport const KeyFigure = ({ image, title, subtitle }: Props) => {\n return (\n <ContentWrapper data-embed-type=\"key-figure\">\n {!!image && <StyledImage src={`${image?.src}?width=150`} width={150} height={150} alt={image?.alt} />}\n <TitleWrapper>{parse(title)}</TitleWrapper>\n <SubTitleWrapper>{parse(subtitle)}</SubTitleWrapper>\n </ContentWrapper>\n );\n};\n"],"mappings":";;;;;;;;;AAWA,MAAM,sDAAwB,OAAO,EACnC,MAAM;CACJ,SAAS;CACT,eAAe;CACf,YAAY;CACZ,gBAAgB;CAChB,KAAK;CAEL,sBAAsB,EACpB,cAAc,WACf;CACF,EACF,CAAC;AAEF,MAAM,mDAAqB,OAAO,EAChC,MAAM;CACJ,QAAQ;CACR,OAAO;CACP,cAAc;CACf,EACF,CAAC;AAEF,MAAM,oDAAsB,OAAO,EACjC,MAAM;CACJ,WAAW;CACX,WAAW;CACZ,EACF,CAAC;AAEF,MAAM,uDAAyB,OAAO,EACpC,MAAM;CACJ,WAAW;CACX,WAAW;CACZ,EACF,CAAC;AAWF,MAAa,aAAa,EAAE,OAAO,OAAO,eAAsB;AAC9D,QACE,4CAAC;EAAe,mBAAgB;;GAC7B,CAAC,CAAC,SAAS,2CAAC;IAAY,KAAK,GAAG,OAAO,IAAI;IAAa,OAAO;IAAK,QAAQ;IAAK,KAAK,OAAO;KAAO;GACrG,2CAAC,yDAAoB,MAAM,GAAgB;GAC3C,2CAAC,4DAAuB,SAAS,GAAmB;;GACrC"}
@@ -10,5 +10,5 @@ interface Props extends Omit<LinkBlockEmbedData, "resource"> {
10
10
  path?: string;
11
11
  articleLanguage?: string;
12
12
  }
13
- declare const LinkBlock: ({ title, articleLanguage, date, url, path }: Props) => import("react/jsx-runtime").JSX.Element;
14
- export default LinkBlock;
13
+ export declare const LinkBlock: ({ title, articleLanguage, date, url, path }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -75,8 +75,7 @@ const LinkBlock = ({ title, articleLanguage, date, url, path }) => {
75
75
  }), !!date && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledDateContainer, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledCalendarEd, {}), formattedDate] })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ndla_icons.ArrowRightLine, { "data-forward": true })]
76
76
  });
77
77
  };
78
- var LinkBlock_default = LinkBlock;
79
78
 
80
79
  //#endregion
81
- exports.default = LinkBlock_default;
80
+ exports.LinkBlock = LinkBlock;
82
81
  //# sourceMappingURL=LinkBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkBlock.js","names":["SafeLink","CalendarLine","getPossiblyRelativeUrl","Heading","ArrowRightLine"],"sources":["../../src/LinkBlock/LinkBlock.tsx"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport parse from \"html-react-parser\";\nimport { useMemo } from \"react\";\nimport { ArrowRightLine, CalendarLine } from \"@ndla/icons\";\nimport { Heading } from \"@ndla/primitives\";\nimport { SafeLink } from \"@ndla/safelink\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { LinkBlockEmbedData } from \"@ndla/types-embed\";\nimport { getPossiblyRelativeUrl } from \"../utils/relativeUrl\";\n\nconst InfoWrapper = styled(\"div\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"xsmall\",\n },\n});\n\nconst StyledSafeLink = styled(SafeLink, {\n base: {\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n background: \"surface.default\",\n padding: \"medium\",\n border: \"1px solid\",\n borderColor: \"stroke.subtle\",\n borderRadius: \"xsmall\",\n \"& h3\": {\n textDecoration: \"underline\",\n },\n \"& [data-forward]\": {\n transitionProperty: \"width, height\",\n transitionTimingFunction: \"ease-in-out\",\n transitionDuration: \"fast\",\n },\n _hover: {\n \"& h3\": {\n textDecoration: \"none\",\n },\n \"& [data-forward]\": {\n width: \"large\",\n height: \"large\",\n },\n },\n },\n});\n\nconst StyledDateContainer = styled(\"div\", {\n base: {\n display: \"flex\",\n alignItems: \"center\",\n gap: \"xxsmall\",\n },\n});\n\nconst StyledCalendarEd = styled(CalendarLine, {\n base: {\n color: \"icon.strong\",\n },\n});\n\ninterface Props extends Omit<LinkBlockEmbedData, \"resource\"> {\n path?: string;\n articleLanguage?: string;\n}\n\nconst LinkBlock = ({ title, articleLanguage, date, url, path }: Props) => {\n const href = getPossiblyRelativeUrl(url, path);\n const formattedDate = useMemo(() => {\n if (!date) return null;\n return new Intl.DateTimeFormat(articleLanguage, {\n timeZone: \"CET\",\n day: \"2-digit\",\n month: \"long\",\n year: \"numeric\",\n }).format(new Date(date));\n }, [date, articleLanguage]);\n return (\n <StyledSafeLink to={href} data-embed-type=\"link-block\">\n <InfoWrapper>\n <Heading asChild consumeCss textStyle=\"title.medium\">\n <h3 data-heading>{parse(title)}</h3>\n </Heading>\n {!!date && (\n <StyledDateContainer>\n <StyledCalendarEd />\n {formattedDate}\n </StyledDateContainer>\n )}\n </InfoWrapper>\n <ArrowRightLine data-forward />\n </StyledSafeLink>\n );\n};\n\nexport default LinkBlock;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,MAAM,mDAAqB,OAAO,EAChC,MAAM;CACJ,SAAS;CACT,eAAe;CACf,KAAK;CACN,EACF,CAAC;AAEF,MAAM,sDAAwBA,0BAAU,EACtC,MAAM;CACJ,SAAS;CACT,gBAAgB;CAChB,YAAY;CACZ,YAAY;CACZ,SAAS;CACT,QAAQ;CACR,aAAa;CACb,cAAc;CACd,QAAQ,EACN,gBAAgB,aACjB;CACD,oBAAoB;EAClB,oBAAoB;EACpB,0BAA0B;EAC1B,oBAAoB;EACrB;CACD,QAAQ;EACN,QAAQ,EACN,gBAAgB,QACjB;EACD,oBAAoB;GAClB,OAAO;GACP,QAAQ;GACT;EACF;CACF,EACF,CAAC;AAEF,MAAM,2DAA6B,OAAO,EACxC,MAAM;CACJ,SAAS;CACT,YAAY;CACZ,KAAK;CACN,EACF,CAAC;AAEF,MAAM,wDAA0BC,2BAAc,EAC5C,MAAM,EACJ,OAAO,eACR,EACF,CAAC;AAOF,MAAM,aAAa,EAAE,OAAO,iBAAiB,MAAM,KAAK,WAAkB;CACxE,MAAM,OAAOC,2CAAuB,KAAK,KAAK;CAC9C,MAAM,yCAA8B;AAClC,MAAI,CAAC,KAAM,QAAO;AAClB,SAAO,IAAI,KAAK,eAAe,iBAAiB;GAC9C,UAAU;GACV,KAAK;GACL,OAAO;GACP,MAAM;GACP,CAAC,CAAC,OAAO,IAAI,KAAK,KAAK,CAAC;IACxB,CAAC,MAAM,gBAAgB,CAAC;AAC3B,QACE,4CAAC;EAAe,IAAI;EAAM,mBAAgB;aACxC,4CAAC,0BACC,2CAACC;GAAQ;GAAQ;GAAW,WAAU;aACpC,2CAAC;IAAG;6CAAoB,MAAM;KAAM;IAC5B,EACT,CAAC,CAAC,QACD,4CAAC,kCACC,2CAAC,qBAAmB,EACnB,iBACmB,IAEZ,EACd,2CAACC,+BAAe,uBAAe;GAChB;;AAIrB,wBAAe"}
1
+ {"version":3,"file":"LinkBlock.js","names":["SafeLink","CalendarLine","getPossiblyRelativeUrl","Heading","ArrowRightLine"],"sources":["../../src/LinkBlock/LinkBlock.tsx"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport parse from \"html-react-parser\";\nimport { useMemo } from \"react\";\nimport { ArrowRightLine, CalendarLine } from \"@ndla/icons\";\nimport { Heading } from \"@ndla/primitives\";\nimport { SafeLink } from \"@ndla/safelink\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { LinkBlockEmbedData } from \"@ndla/types-embed\";\nimport { getPossiblyRelativeUrl } from \"../utils/relativeUrl\";\n\nconst InfoWrapper = styled(\"div\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"xsmall\",\n },\n});\n\nconst StyledSafeLink = styled(SafeLink, {\n base: {\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n background: \"surface.default\",\n padding: \"medium\",\n border: \"1px solid\",\n borderColor: \"stroke.subtle\",\n borderRadius: \"xsmall\",\n \"& h3\": {\n textDecoration: \"underline\",\n },\n \"& [data-forward]\": {\n transitionProperty: \"width, height\",\n transitionTimingFunction: \"ease-in-out\",\n transitionDuration: \"fast\",\n },\n _hover: {\n \"& h3\": {\n textDecoration: \"none\",\n },\n \"& [data-forward]\": {\n width: \"large\",\n height: \"large\",\n },\n },\n },\n});\n\nconst StyledDateContainer = styled(\"div\", {\n base: {\n display: \"flex\",\n alignItems: \"center\",\n gap: \"xxsmall\",\n },\n});\n\nconst StyledCalendarEd = styled(CalendarLine, {\n base: {\n color: \"icon.strong\",\n },\n});\n\ninterface Props extends Omit<LinkBlockEmbedData, \"resource\"> {\n path?: string;\n articleLanguage?: string;\n}\n\nexport const LinkBlock = ({ title, articleLanguage, date, url, path }: Props) => {\n const href = getPossiblyRelativeUrl(url, path);\n const formattedDate = useMemo(() => {\n if (!date) return null;\n return new Intl.DateTimeFormat(articleLanguage, {\n timeZone: \"CET\",\n day: \"2-digit\",\n month: \"long\",\n year: \"numeric\",\n }).format(new Date(date));\n }, [date, articleLanguage]);\n return (\n <StyledSafeLink to={href} data-embed-type=\"link-block\">\n <InfoWrapper>\n <Heading asChild consumeCss textStyle=\"title.medium\">\n <h3 data-heading>{parse(title)}</h3>\n </Heading>\n {!!date && (\n <StyledDateContainer>\n <StyledCalendarEd />\n {formattedDate}\n </StyledDateContainer>\n )}\n </InfoWrapper>\n <ArrowRightLine data-forward />\n </StyledSafeLink>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,MAAM,mDAAqB,OAAO,EAChC,MAAM;CACJ,SAAS;CACT,eAAe;CACf,KAAK;CACN,EACF,CAAC;AAEF,MAAM,sDAAwBA,0BAAU,EACtC,MAAM;CACJ,SAAS;CACT,gBAAgB;CAChB,YAAY;CACZ,YAAY;CACZ,SAAS;CACT,QAAQ;CACR,aAAa;CACb,cAAc;CACd,QAAQ,EACN,gBAAgB,aACjB;CACD,oBAAoB;EAClB,oBAAoB;EACpB,0BAA0B;EAC1B,oBAAoB;EACrB;CACD,QAAQ;EACN,QAAQ,EACN,gBAAgB,QACjB;EACD,oBAAoB;GAClB,OAAO;GACP,QAAQ;GACT;EACF;CACF,EACF,CAAC;AAEF,MAAM,2DAA6B,OAAO,EACxC,MAAM;CACJ,SAAS;CACT,YAAY;CACZ,KAAK;CACN,EACF,CAAC;AAEF,MAAM,wDAA0BC,2BAAc,EAC5C,MAAM,EACJ,OAAO,eACR,EACF,CAAC;AAOF,MAAa,aAAa,EAAE,OAAO,iBAAiB,MAAM,KAAK,WAAkB;CAC/E,MAAM,OAAOC,2CAAuB,KAAK,KAAK;CAC9C,MAAM,yCAA8B;AAClC,MAAI,CAAC,KAAM,QAAO;AAClB,SAAO,IAAI,KAAK,eAAe,iBAAiB;GAC9C,UAAU;GACV,KAAK;GACL,OAAO;GACP,MAAM;GACP,CAAC,CAAC,OAAO,IAAI,KAAK,KAAK,CAAC;IACxB,CAAC,MAAM,gBAAgB,CAAC;AAC3B,QACE,4CAAC;EAAe,IAAI;EAAM,mBAAgB;aACxC,4CAAC,0BACC,2CAACC;GAAQ;GAAQ;GAAW,WAAU;aACpC,2CAAC;IAAG;6CAAoB,MAAM;KAAM;IAC5B,EACT,CAAC,CAAC,QACD,4CAAC,kCACC,2CAAC,qBAAmB,EACnB,iBACmB,IAEZ,EACd,2CAACC,+BAAe,uBAAe;GAChB"}
@@ -9,5 +9,5 @@ import { type HTMLAttributes, type ReactNode } from "react";
9
9
  interface Props extends HTMLAttributes<HTMLElement> {
10
10
  children: ReactNode;
11
11
  }
12
- declare const LinkBlockSection: ({ children, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
13
- export default LinkBlockSection;
12
+ export declare const LinkBlockSection: ({ children, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -20,8 +20,7 @@ const LinkBlockSection = ({ children,...rest }) => {
20
20
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledList, { children: react.Children.map(children, (child) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: child })) })
21
21
  });
22
22
  };
23
- var LinkBlockSection_default = LinkBlockSection;
24
23
 
25
24
  //#endregion
26
- exports.default = LinkBlockSection_default;
25
+ exports.LinkBlockSection = LinkBlockSection;
27
26
  //# sourceMappingURL=LinkBlockSection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkBlockSection.js","names":["Children"],"sources":["../../src/LinkBlock/LinkBlockSection.tsx"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Children, type HTMLAttributes, type ReactNode } from \"react\";\nimport { styled } from \"@ndla/styled-system/jsx\";\n\ninterface Props extends HTMLAttributes<HTMLElement> {\n children: ReactNode;\n}\n\nconst StyledList = styled(\"ul\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"xsmall\",\n listStyle: \"none\",\n },\n});\n\nconst LinkBlockSection = ({ children, ...rest }: Props) => {\n return (\n <nav {...rest} data-embed-type=\"link-block-list\">\n <StyledList>\n {Children.map(children, (child) => (\n <li>{child}</li>\n ))}\n </StyledList>\n </nav>\n );\n};\n\nexport default LinkBlockSection;\n"],"mappings":";;;;;;;;;AAeA,MAAM,kDAAoB,MAAM,EAC9B,MAAM;CACJ,SAAS;CACT,eAAe;CACf,KAAK;CACL,WAAW;CACZ,EACF,CAAC;AAEF,MAAM,oBAAoB,EAAE,SAAU,GAAG,WAAkB;AACzD,QACE,2CAAC;EAAI,GAAI;EAAM,mBAAgB;YAC7B,2CAAC,wBACEA,eAAS,IAAI,WAAW,UACvB,2CAAC,kBAAI,QAAW,CAChB,GACS;GACT;;AAIV,+BAAe"}
1
+ {"version":3,"file":"LinkBlockSection.js","names":["Children"],"sources":["../../src/LinkBlock/LinkBlockSection.tsx"],"sourcesContent":["/**\n * Copyright (c) 2023-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Children, type HTMLAttributes, type ReactNode } from \"react\";\nimport { styled } from \"@ndla/styled-system/jsx\";\n\ninterface Props extends HTMLAttributes<HTMLElement> {\n children: ReactNode;\n}\n\nconst StyledList = styled(\"ul\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"xsmall\",\n listStyle: \"none\",\n },\n});\n\nexport const LinkBlockSection = ({ children, ...rest }: Props) => {\n return (\n <nav {...rest} data-embed-type=\"link-block-list\">\n <StyledList>\n {Children.map(children, (child) => (\n <li>{child}</li>\n ))}\n </StyledList>\n </nav>\n );\n};\n"],"mappings":";;;;;;;;;AAeA,MAAM,kDAAoB,MAAM,EAC9B,MAAM;CACJ,SAAS;CACT,eAAe;CACf,KAAK;CACL,WAAW;CACZ,EACF,CAAC;AAEF,MAAa,oBAAoB,EAAE,SAAU,GAAG,WAAkB;AAChE,QACE,2CAAC;EAAI,GAAI;EAAM,mBAAgB;YAC7B,2CAAC,wBACEA,eAAS,IAAI,WAAW,UACvB,2CAAC,kBAAI,QAAW,CAChB,GACS;GACT"}
@@ -17,4 +17,4 @@ interface Props {
17
17
  buttonText: string;
18
18
  }
19
19
  export declare const ResourceBox: ({ image, title, caption, url, buttonText }: Props) => import("react/jsx-runtime").JSX.Element;
20
- export default ResourceBox;
20
+ export {};
@@ -74,9 +74,7 @@ const ResourceBox = ({ image, title, caption, url, buttonText }) => {
74
74
  })
75
75
  ] })] });
76
76
  };
77
- var ResourceBox_default = ResourceBox;
78
77
 
79
78
  //#endregion
80
79
  exports.ResourceBox = ResourceBox;
81
- exports.default = ResourceBox_default;
82
80
  //# sourceMappingURL=ResourceBox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceBox.js","names":["Image","Text","breakpoints","Heading","SafeLinkButton","ShareBoxLine"],"sources":["../../src/ResourceBox/ResourceBox.tsx"],"sourcesContent":["/**\n * Copyright (c) 2022-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { breakpoints } from \"@ndla/core\";\nimport { ShareBoxLine } from \"@ndla/icons\";\nimport { Heading, Image, Text } from \"@ndla/primitives\";\nimport { SafeLinkButton } from \"@ndla/safelink\";\nimport { styled } from \"@ndla/styled-system/jsx\";\n\nconst Container = styled(\"div\", {\n base: {\n display: \"flex\",\n padding: \"medium\",\n borderRadius: \"xsmall\",\n border: \"1px solid\",\n borderColor: \"stroke.default\",\n boxShadow: \"full\",\n marginBlockEnd: \"medium\",\n gap: \"medium\",\n tabletWideDown: {\n padding: \"xsmall\",\n },\n tabletDown: {\n flexDirection: \"column\",\n gap: \"0\",\n padding: \"0\",\n },\n },\n});\n\nconst ContentWrapper = styled(\"div\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"flex-start\",\n gap: \"xsmall\",\n flex: \"1\",\n tabletDown: {\n padding: \"xsmall\",\n },\n },\n});\n\nconst StyledImage = styled(Image, {\n base: {\n objectFit: \"cover\",\n borderRadius: \"xsmall\",\n width: \"fit-content\",\n aspectRatio: \"1/1\",\n tabletDown: {\n width: \"100%\",\n borderRadius: \"0\",\n },\n },\n});\n\nconst StyledText = styled(Text, {\n base: {\n flex: \"1\",\n },\n});\n\ninterface ImageMeta {\n src: string | undefined;\n alt: string;\n}\n\ninterface Props {\n image?: ImageMeta;\n title: string;\n caption: string;\n url: string;\n buttonText: string;\n}\n\nexport const ResourceBox = ({ image, title, caption, url, buttonText }: Props) => {\n return (\n <Container>\n {image ? (\n <StyledImage\n src={image.src}\n alt={image.alt}\n sizes={`(min-width: ${breakpoints.desktop}) 150px, (max-width: ${breakpoints.tablet} ) 400px, 200px`}\n variant=\"rounded\"\n />\n ) : null}\n <ContentWrapper>\n <Heading textStyle=\"label.large\" fontWeight=\"bold\" asChild consumeCss>\n <h3>{title}</h3>\n </Heading>\n <StyledText textStyle=\"body.medium\">{caption}</StyledText>\n <SafeLinkButton to={url} target=\"_blank\" variant=\"secondary\">\n {buttonText}\n <ShareBoxLine />\n </SafeLinkButton>\n </ContentWrapper>\n </Container>\n );\n};\n\nexport default ResourceBox;\n"],"mappings":";;;;;;;;;;;;;;;AAcA,MAAM,iDAAmB,OAAO,EAC9B,MAAM;CACJ,SAAS;CACT,SAAS;CACT,cAAc;CACd,QAAQ;CACR,aAAa;CACb,WAAW;CACX,gBAAgB;CAChB,KAAK;CACL,gBAAgB,EACd,SAAS,UACV;CACD,YAAY;EACV,eAAe;EACf,KAAK;EACL,SAAS;EACV;CACF,EACF,CAAC;AAEF,MAAM,sDAAwB,OAAO,EACnC,MAAM;CACJ,SAAS;CACT,eAAe;CACf,YAAY;CACZ,KAAK;CACL,MAAM;CACN,YAAY,EACV,SAAS,UACV;CACF,EACF,CAAC;AAEF,MAAM,mDAAqBA,yBAAO,EAChC,MAAM;CACJ,WAAW;CACX,cAAc;CACd,OAAO;CACP,aAAa;CACb,YAAY;EACV,OAAO;EACP,cAAc;EACf;CACF,EACF,CAAC;AAEF,MAAM,kDAAoBC,wBAAM,EAC9B,MAAM,EACJ,MAAM,KACP,EACF,CAAC;AAeF,MAAa,eAAe,EAAE,OAAO,OAAO,SAAS,KAAK,iBAAwB;AAChF,QACE,4CAAC,wBACE,QACC,2CAAC;EACC,KAAK,MAAM;EACX,KAAK,MAAM;EACX,OAAO,eAAeC,wBAAY,QAAQ,uBAAuBA,wBAAY,OAAO;EACpF,SAAQ;GACR,GACA,MACJ,4CAAC;EACC,2CAACC;GAAQ,WAAU;GAAc,YAAW;GAAO;GAAQ;aACzD,2CAAC,kBAAI,QAAW;IACR;EACV,2CAAC;GAAW,WAAU;aAAe;IAAqB;EAC1D,4CAACC;GAAe,IAAI;GAAK,QAAO;GAAS,SAAQ;cAC9C,YACD,2CAACC,8BAAe;IACD;KACF,IACP;;AAIhB,0BAAe"}
1
+ {"version":3,"file":"ResourceBox.js","names":["Image","Text","breakpoints","Heading","SafeLinkButton","ShareBoxLine"],"sources":["../../src/ResourceBox/ResourceBox.tsx"],"sourcesContent":["/**\n * Copyright (c) 2022-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { breakpoints } from \"@ndla/core\";\nimport { ShareBoxLine } from \"@ndla/icons\";\nimport { Heading, Image, Text } from \"@ndla/primitives\";\nimport { SafeLinkButton } from \"@ndla/safelink\";\nimport { styled } from \"@ndla/styled-system/jsx\";\n\nconst Container = styled(\"div\", {\n base: {\n display: \"flex\",\n padding: \"medium\",\n borderRadius: \"xsmall\",\n border: \"1px solid\",\n borderColor: \"stroke.default\",\n boxShadow: \"full\",\n marginBlockEnd: \"medium\",\n gap: \"medium\",\n tabletWideDown: {\n padding: \"xsmall\",\n },\n tabletDown: {\n flexDirection: \"column\",\n gap: \"0\",\n padding: \"0\",\n },\n },\n});\n\nconst ContentWrapper = styled(\"div\", {\n base: {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"flex-start\",\n gap: \"xsmall\",\n flex: \"1\",\n tabletDown: {\n padding: \"xsmall\",\n },\n },\n});\n\nconst StyledImage = styled(Image, {\n base: {\n objectFit: \"cover\",\n borderRadius: \"xsmall\",\n width: \"fit-content\",\n aspectRatio: \"1/1\",\n tabletDown: {\n width: \"100%\",\n borderRadius: \"0\",\n },\n },\n});\n\nconst StyledText = styled(Text, {\n base: {\n flex: \"1\",\n },\n});\n\ninterface ImageMeta {\n src: string | undefined;\n alt: string;\n}\n\ninterface Props {\n image?: ImageMeta;\n title: string;\n caption: string;\n url: string;\n buttonText: string;\n}\n\nexport const ResourceBox = ({ image, title, caption, url, buttonText }: Props) => {\n return (\n <Container>\n {image ? (\n <StyledImage\n src={image.src}\n alt={image.alt}\n sizes={`(min-width: ${breakpoints.desktop}) 150px, (max-width: ${breakpoints.tablet} ) 400px, 200px`}\n variant=\"rounded\"\n />\n ) : null}\n <ContentWrapper>\n <Heading textStyle=\"label.large\" fontWeight=\"bold\" asChild consumeCss>\n <h3>{title}</h3>\n </Heading>\n <StyledText textStyle=\"body.medium\">{caption}</StyledText>\n <SafeLinkButton to={url} target=\"_blank\" variant=\"secondary\">\n {buttonText}\n <ShareBoxLine />\n </SafeLinkButton>\n </ContentWrapper>\n </Container>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;AAcA,MAAM,iDAAmB,OAAO,EAC9B,MAAM;CACJ,SAAS;CACT,SAAS;CACT,cAAc;CACd,QAAQ;CACR,aAAa;CACb,WAAW;CACX,gBAAgB;CAChB,KAAK;CACL,gBAAgB,EACd,SAAS,UACV;CACD,YAAY;EACV,eAAe;EACf,KAAK;EACL,SAAS;EACV;CACF,EACF,CAAC;AAEF,MAAM,sDAAwB,OAAO,EACnC,MAAM;CACJ,SAAS;CACT,eAAe;CACf,YAAY;CACZ,KAAK;CACL,MAAM;CACN,YAAY,EACV,SAAS,UACV;CACF,EACF,CAAC;AAEF,MAAM,mDAAqBA,yBAAO,EAChC,MAAM;CACJ,WAAW;CACX,cAAc;CACd,OAAO;CACP,aAAa;CACb,YAAY;EACV,OAAO;EACP,cAAc;EACf;CACF,EACF,CAAC;AAEF,MAAM,kDAAoBC,wBAAM,EAC9B,MAAM,EACJ,MAAM,KACP,EACF,CAAC;AAeF,MAAa,eAAe,EAAE,OAAO,OAAO,SAAS,KAAK,iBAAwB;AAChF,QACE,4CAAC,wBACE,QACC,2CAAC;EACC,KAAK,MAAM;EACX,KAAK,MAAM;EACX,OAAO,eAAeC,wBAAY,QAAQ,uBAAuBA,wBAAY,OAAO;EACpF,SAAQ;GACR,GACA,MACJ,4CAAC;EACC,2CAACC;GAAQ,WAAU;GAAc,YAAW;GAAO;GAAQ;aACzD,2CAAC,kBAAI,QAAW;IACR;EACV,2CAAC;GAAW,WAAU;aAAe;IAAqB;EAC1D,4CAACC;GAAe,IAAI;GAAK,QAAO;GAAS,SAAQ;cAC9C,YACD,2CAACC,8BAAe;IACD;KACF,IACP"}
package/lib/index.d.ts CHANGED
@@ -6,21 +6,21 @@
6
6
  *
7
7
  */
8
8
  export { Concept } from "./Concept/Concept";
9
- export { default as ImageEmbed, getCrop, getFocalPoint } from "./Embed/ImageEmbed";
9
+ export { ImageEmbed, getCrop, getFocalPoint } from "./Embed/ImageEmbed";
10
10
  export { InlineTriggerButton } from "./Embed/InlineTriggerButton";
11
- export { default as AudioEmbed } from "./Embed/AudioEmbed";
12
- export { default as H5pEmbed } from "./Embed/H5pEmbed";
13
- export { default as ExternalEmbed } from "./Embed/ExternalEmbed";
14
- export { default as IframeEmbed } from "./Embed/IframeEmbed";
15
- export { default as FootnoteEmbed } from "./Embed/FootnoteEmbed";
16
- export { default as BrightcoveEmbed } from "./Embed/BrightcoveEmbed";
17
- export { default as ContentLinkEmbed } from "./Embed/ContentLinkEmbed";
18
- export { default as RelatedContentEmbed } from "./Embed/RelatedContentEmbed";
11
+ export { AudioEmbed } from "./Embed/AudioEmbed";
12
+ export { H5pEmbed } from "./Embed/H5pEmbed";
13
+ export { ExternalEmbed } from "./Embed/ExternalEmbed";
14
+ export { IframeEmbed } from "./Embed/IframeEmbed";
15
+ export { FootnoteEmbed } from "./Embed/FootnoteEmbed";
16
+ export { BrightcoveEmbed } from "./Embed/BrightcoveEmbed";
17
+ export { ContentLinkEmbed } from "./Embed/ContentLinkEmbed";
18
+ export { RelatedContentEmbed } from "./Embed/RelatedContentEmbed";
19
19
  export { ConceptEmbed, InlineConcept, BlockConcept } from "./Embed/ConceptEmbed";
20
- export { default as UnknownEmbed } from "./Embed/UnknownEmbed";
21
- export { default as UuDisclaimerEmbed } from "./Embed/UuDisclaimerEmbed";
22
- export { default as CopyrightEmbed } from "./Embed/CopyrightEmbed";
23
- export { default as CodeEmbed } from "./Embed/CodeEmbed";
20
+ export { UnknownEmbed } from "./Embed/UnknownEmbed";
21
+ export { UuDisclaimerEmbed } from "./Embed/UuDisclaimerEmbed";
22
+ export { CopyrightEmbed } from "./Embed/CopyrightEmbed";
23
+ export { CodeEmbed } from "./Embed/CodeEmbed";
24
24
  export { ConceptInlineTriggerButton } from "./Embed/ConceptInlineTriggerButton";
25
25
  export { EmbedWrapper } from "./Embed/EmbedWrapper";
26
26
  export type { EmbedWrapperVariantProps, EmbedWrapperProps } from "./Embed/EmbedWrapper";
@@ -35,38 +35,42 @@ export { RelatedArticleList, RelatedArticle } from "./RelatedArticleList/Related
35
35
  export { FileListEmbed, FileListItem, FileListWrapper } from "./FileList/FileList";
36
36
  export { File, FileListElement } from "./FileList/File";
37
37
  export { PdfFile } from "./FileList/PdfFile";
38
- export { default as FactBox } from "./FactBox/FactBox";
38
+ export { FactBox } from "./FactBox/FactBox";
39
39
  export { ResourceBox } from "./ResourceBox/ResourceBox";
40
- export { default as AudioPlayer } from "./AudioPlayer/AudioPlayer";
41
- export { default as constants } from "./model";
40
+ export { AudioPlayer } from "./AudioPlayer/AudioPlayer";
41
+ export { constants } from "./model";
42
+ export { contentTypes, contentTypeMapping, resourceEmbedTypeMapping } from "./model/ContentType";
43
+ export { subjectTypes } from "./model/SubjectTypes";
44
+ export { wordClass } from "./model/WordClass";
45
+ export { subjectCategories } from "./model/SubjectCategories";
42
46
  export { default as messagesNB } from "./locale/messages-nb";
43
47
  export { default as messagesNN } from "./locale/messages-nn";
44
48
  export { default as messagesEN } from "./locale/messages-en";
45
49
  export { default as messagesSE } from "./locale/messages-se";
46
- export { default as Breadcrumb } from "./Breadcrumb/Breadcrumb";
47
- export { default as HomeBreadcrumb } from "./Breadcrumb/HomeBreadcrumb";
50
+ export { Breadcrumb } from "./Breadcrumb/Breadcrumb";
51
+ export { HomeBreadcrumb } from "./Breadcrumb/HomeBreadcrumb";
48
52
  export type { SimpleBreadcrumbItem, IndexedBreadcrumbItem } from "./Breadcrumb/BreadcrumbItem";
49
53
  export { formatNestedMessages } from "./i18n/formatNestedMessages";
50
54
  export { useTagsInputTranslations, useTagSelectorTranslations, useComboboxTranslations, usePaginationTranslations, useAudioSearchTranslations, useImageSearchTranslations, useVideoSearchTranslations, useDatePickerTranslations, } from "./i18n/useComponentTranslations";
51
55
  export type { ContentTypeBadgeProps, StrictContentType, ContentType } from "./ContentTypeBadge/ContentTypeBadge";
52
56
  export { ContentTypeBadge, contentTypeToBadgeVariantMap } from "./ContentTypeBadge/ContentTypeBadge";
53
- export { default as CopyParagraphButton } from "./CopyParagraphButton/CopyParagraphButton";
57
+ export { CopyParagraphButton } from "./CopyParagraphButton/CopyParagraphButton";
54
58
  export type { TagSelectorControlProps, TagSelectorInputProps, TagSelectorRootProps } from "./TagSelector/TagSelector";
55
59
  export { TagSelectorRoot, TagSelectorLabel, TagSelectorItemInput, TagSelectorTrigger, TagSelectorControl, TagSelectorClearTrigger, TagSelectorInputBase, TagSelectorInput, } from "./TagSelector/TagSelector";
56
60
  export { Pitch } from "./Pitch/Pitch";
57
- export { default as KeyFigure } from "./KeyFigure/KeyFigure";
61
+ export { KeyFigure } from "./KeyFigure/KeyFigure";
58
62
  export { ContactBlock, contactBlockBackgrounds } from "./ContactBlock/ContactBlock";
59
63
  export type { ContactBlockBackground } from "./ContactBlock/ContactBlock";
60
- export { default as CampaignBlock } from "./CampaignBlock/CampaignBlock";
64
+ export { CampaignBlock } from "./CampaignBlock/CampaignBlock";
61
65
  export { Grid } from "./Grid/Grid";
62
66
  export { GridParallaxItem } from "./Grid/GridParallaxItem";
63
67
  export type { GridProps as GridType } from "./Grid/Grid";
64
- export { default as Gloss } from "./Gloss/Gloss";
65
- export { default as GlossExample } from "./Gloss/GlossExample";
66
- export { default as LinkBlock } from "./LinkBlock/LinkBlock";
67
- export { default as LinkBlockSection } from "./LinkBlock/LinkBlockSection";
68
+ export { Gloss } from "./Gloss/Gloss";
69
+ export { GlossExample } from "./Gloss/GlossExample";
70
+ export { LinkBlock } from "./LinkBlock/LinkBlock";
71
+ export { LinkBlockSection } from "./LinkBlock/LinkBlockSection";
68
72
  export type { Article as ArticleType, HeadingLevel } from "./types";
69
- export { default as CodeBlock } from "./CodeBlock/CodeBlock";
73
+ export { CodeBlock } from "./CodeBlock/CodeBlock";
70
74
  export { codeLanguageOptions } from "./CodeBlock/codeLanguageOptions";
71
75
  export { ZendeskButton } from "./ZendeskButton/ZendeskButton";
72
76
  export type { ZendeskButtonProps } from "./ZendeskButton/ZendeskButton";
package/lib/index.js CHANGED
@@ -13,6 +13,7 @@ const require_AudioPlayer = require('./AudioPlayer/AudioPlayer.js');
13
13
  const require_AudioEmbed = require('./Embed/AudioEmbed.js');
14
14
  const require_FootnoteEmbed = require('./Embed/FootnoteEmbed.js');
15
15
  const require_ContentLinkEmbed = require('./Embed/ContentLinkEmbed.js');
16
+ const require_ContentType = require('./model/ContentType.js');
16
17
  const require_ContentTypeBadge = require('./ContentTypeBadge/ContentTypeBadge.js');
17
18
  const require_RelatedArticleList = require('./RelatedArticleList/RelatedArticleList.js');
18
19
  const require_RelatedContentEmbed = require('./Embed/RelatedContentEmbed.js');
@@ -35,6 +36,9 @@ const require_FileList = require('./FileList/FileList.js');
35
36
  const require_File = require('./FileList/File.js');
36
37
  const require_PdfFile = require('./FileList/PdfFile.js');
37
38
  const require_FactBox = require('./FactBox/FactBox.js');
39
+ const require_SubjectCategories = require('./model/SubjectCategories.js');
40
+ const require_SubjectTypes = require('./model/SubjectTypes.js');
41
+ const require_WordClass = require('./model/WordClass.js');
38
42
  const require_index = require('./model/index.js');
39
43
  const require_messages_nb = require('./locale/messages-nb.js');
40
44
  const require_messages_nn = require('./locale/messages-nn.js');
@@ -66,51 +70,51 @@ exports.ArticleHGroup = require_Article.ArticleHGroup;
66
70
  exports.ArticleHeader = require_Article.ArticleHeader;
67
71
  exports.ArticleTitle = require_Article.ArticleTitle;
68
72
  exports.ArticleWrapper = require_Article.ArticleWrapper;
69
- exports.AudioEmbed = require_AudioEmbed.default;
70
- exports.AudioPlayer = require_AudioPlayer.default;
73
+ exports.AudioEmbed = require_AudioEmbed.AudioEmbed;
74
+ exports.AudioPlayer = require_AudioPlayer.AudioPlayer;
71
75
  exports.BlockConcept = require_ConceptEmbed.BlockConcept;
72
- exports.Breadcrumb = require_Breadcrumb.default;
73
- exports.BrightcoveEmbed = require_BrightcoveEmbed.default;
74
- exports.CampaignBlock = require_CampaignBlock.default;
75
- exports.CodeBlock = require_CodeBlock.default;
76
- exports.CodeEmbed = require_CodeEmbed.default;
76
+ exports.Breadcrumb = require_Breadcrumb.Breadcrumb;
77
+ exports.BrightcoveEmbed = require_BrightcoveEmbed.BrightcoveEmbed;
78
+ exports.CampaignBlock = require_CampaignBlock.CampaignBlock;
79
+ exports.CodeBlock = require_CodeBlock.CodeBlock;
80
+ exports.CodeEmbed = require_CodeEmbed.CodeEmbed;
77
81
  exports.Concept = require_Concept.Concept;
78
82
  exports.ConceptEmbed = require_ConceptEmbed.ConceptEmbed;
79
83
  exports.ConceptInlineTriggerButton = require_ConceptInlineTriggerButton.ConceptInlineTriggerButton;
80
84
  exports.ContactBlock = require_ContactBlock.ContactBlock;
81
- exports.ContentLinkEmbed = require_ContentLinkEmbed.default;
85
+ exports.ContentLinkEmbed = require_ContentLinkEmbed.ContentLinkEmbed;
82
86
  exports.ContentTypeBadge = require_ContentTypeBadge.ContentTypeBadge;
83
- exports.CopyParagraphButton = require_CopyParagraphButton.default;
84
- exports.CopyrightEmbed = require_CopyrightEmbed.default;
87
+ exports.CopyParagraphButton = require_CopyParagraphButton.CopyParagraphButton;
88
+ exports.CopyrightEmbed = require_CopyrightEmbed.CopyrightEmbed;
85
89
  exports.EmbedByline = require_EmbedByline.EmbedByline;
86
90
  exports.EmbedWrapper = require_EmbedWrapper.EmbedWrapper;
87
- exports.ExternalEmbed = require_ExternalEmbed.default;
88
- exports.FactBox = require_FactBox.default;
91
+ exports.ExternalEmbed = require_ExternalEmbed.ExternalEmbed;
92
+ exports.FactBox = require_FactBox.FactBox;
89
93
  exports.File = require_File.File;
90
94
  exports.FileListElement = require_File.FileListElement;
91
95
  exports.FileListEmbed = require_FileList.FileListEmbed;
92
96
  exports.FileListItem = require_FileList.FileListItem;
93
97
  exports.FileListWrapper = require_FileList.FileListWrapper;
94
- exports.FootnoteEmbed = require_FootnoteEmbed.default;
95
- exports.Gloss = require_Gloss.default;
96
- exports.GlossExample = require_GlossExample.default;
98
+ exports.FootnoteEmbed = require_FootnoteEmbed.FootnoteEmbed;
99
+ exports.Gloss = require_Gloss.Gloss;
100
+ exports.GlossExample = require_GlossExample.GlossExample;
97
101
  exports.Grid = require_Grid.Grid;
98
102
  exports.GridParallaxItem = require_GridParallaxItem.GridParallaxItem;
99
- exports.H5pEmbed = require_H5pEmbed.default;
100
- exports.HomeBreadcrumb = require_HomeBreadcrumb.default;
101
- exports.IframeEmbed = require_IframeEmbed.default;
102
- exports.ImageEmbed = require_ImageEmbed.default;
103
+ exports.H5pEmbed = require_H5pEmbed.H5pEmbed;
104
+ exports.HomeBreadcrumb = require_HomeBreadcrumb.HomeBreadcrumb;
105
+ exports.IframeEmbed = require_IframeEmbed.IframeEmbed;
106
+ exports.ImageEmbed = require_ImageEmbed.ImageEmbed;
103
107
  exports.InlineConcept = require_ConceptEmbed.InlineConcept;
104
108
  exports.InlineTriggerButton = require_InlineTriggerButton.InlineTriggerButton;
105
- exports.KeyFigure = require_KeyFigure.default;
109
+ exports.KeyFigure = require_KeyFigure.KeyFigure;
106
110
  exports.LicenseLink = require_LicenseLink.LicenseLink;
107
- exports.LinkBlock = require_LinkBlock.default;
108
- exports.LinkBlockSection = require_LinkBlockSection.default;
111
+ exports.LinkBlock = require_LinkBlock.LinkBlock;
112
+ exports.LinkBlockSection = require_LinkBlockSection.LinkBlockSection;
109
113
  exports.PdfFile = require_PdfFile.PdfFile;
110
114
  exports.Pitch = require_Pitch.Pitch;
111
115
  exports.RelatedArticle = require_RelatedArticleList.RelatedArticle;
112
116
  exports.RelatedArticleList = require_RelatedArticleList.RelatedArticleList;
113
- exports.RelatedContentEmbed = require_RelatedContentEmbed.default;
117
+ exports.RelatedContentEmbed = require_RelatedContentEmbed.RelatedContentEmbed;
114
118
  exports.ResourceBox = require_ResourceBox.ResourceBox;
115
119
  exports.TagSelectorClearTrigger = require_TagSelector.TagSelectorClearTrigger;
116
120
  exports.TagSelectorControl = require_TagSelector.TagSelectorControl;
@@ -120,13 +124,15 @@ exports.TagSelectorItemInput = require_TagSelector.TagSelectorItemInput;
120
124
  exports.TagSelectorLabel = require_TagSelector.TagSelectorLabel;
121
125
  exports.TagSelectorRoot = require_TagSelector.TagSelectorRoot;
122
126
  exports.TagSelectorTrigger = require_TagSelector.TagSelectorTrigger;
123
- exports.UnknownEmbed = require_UnknownEmbed.default;
124
- exports.UuDisclaimerEmbed = require_UuDisclaimerEmbed.default;
127
+ exports.UnknownEmbed = require_UnknownEmbed.UnknownEmbed;
128
+ exports.UuDisclaimerEmbed = require_UuDisclaimerEmbed.UuDisclaimerEmbed;
125
129
  exports.ZendeskButton = require_ZendeskButton.ZendeskButton;
126
130
  exports.codeLanguageOptions = require_codeLanguageOptions.codeLanguageOptions;
127
- exports.constants = require_index.default;
131
+ exports.constants = require_index.constants;
128
132
  exports.contactBlockBackgrounds = require_ContactBlock.contactBlockBackgrounds;
133
+ exports.contentTypeMapping = require_ContentType.contentTypeMapping;
129
134
  exports.contentTypeToBadgeVariantMap = require_ContentTypeBadge.contentTypeToBadgeVariantMap;
135
+ exports.contentTypes = require_ContentType.contentTypes;
130
136
  exports.formatNestedMessages = require_formatNestedMessages.formatNestedMessages;
131
137
  exports.getCrop = require_ImageEmbed.getCrop;
132
138
  exports.getFocalPoint = require_ImageEmbed.getFocalPoint;
@@ -136,6 +142,9 @@ exports.messagesEN = require_messages_en.default;
136
142
  exports.messagesNB = require_messages_nb.default;
137
143
  exports.messagesNN = require_messages_nn.default;
138
144
  exports.messagesSE = require_messages_se.default;
145
+ exports.resourceEmbedTypeMapping = require_ContentType.resourceEmbedTypeMapping;
146
+ exports.subjectCategories = require_SubjectCategories.subjectCategories;
147
+ exports.subjectTypes = require_SubjectTypes.subjectTypes;
139
148
  exports.useAudioSearchTranslations = require_useComponentTranslations.useAudioSearchTranslations;
140
149
  exports.useComboboxTranslations = require_useComponentTranslations.useComboboxTranslations;
141
150
  exports.useDatePickerTranslations = require_useComponentTranslations.useDatePickerTranslations;
@@ -143,4 +152,5 @@ exports.useImageSearchTranslations = require_useComponentTranslations.useImageSe
143
152
  exports.usePaginationTranslations = require_useComponentTranslations.usePaginationTranslations;
144
153
  exports.useTagSelectorTranslations = require_useComponentTranslations.useTagSelectorTranslations;
145
154
  exports.useTagsInputTranslations = require_useComponentTranslations.useTagsInputTranslations;
146
- exports.useVideoSearchTranslations = require_useComponentTranslations.useVideoSearchTranslations;
155
+ exports.useVideoSearchTranslations = require_useComponentTranslations.useVideoSearchTranslations;
156
+ exports.wordClass = require_WordClass.wordClass;
@@ -5,20 +5,22 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
+ import { subjectCategories } from "../model/SubjectCategories";
9
+ import { subjectTypes } from "../model/SubjectTypes";
8
10
  declare const messages: {
9
11
  askNDLA: string;
10
12
  subjectCategories: {
11
- active: string;
12
- archive: string;
13
- beta: string;
14
- otherResources: string;
15
- resourceCollection: string;
13
+ [subjectCategories.ACTIVE_SUBJECTS]: string;
14
+ [subjectCategories.ARCHIVE_SUBJECTS]: string;
15
+ [subjectCategories.BETA_SUBJECTS]: string;
16
+ [subjectCategories.OTHER]: string;
17
+ [subjectTypes.RESOURCE_COLLECTION]: string;
16
18
  };
17
19
  subjectTypes: {
18
- archiveSubject: string;
19
- betaSubject: string;
20
- resourceCollection: string;
21
- subject: string;
20
+ [subjectTypes.ARCHIVE_SUBJECT]: string;
21
+ [subjectTypes.BETA_SUBJECT]: string;
22
+ [subjectTypes.RESOURCE_COLLECTION]: string;
23
+ [subjectTypes.SUBJECT]: string;
22
24
  };
23
25
  meta: {
24
26
  description: string;
@@ -1,10 +1,11 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
2
- const require_index = require('../model/index.js');
2
+ const require_SubjectCategories = require('../model/SubjectCategories.js');
3
+ const require_SubjectTypes = require('../model/SubjectTypes.js');
4
+ const require_WordClass = require('../model/WordClass.js');
3
5
  let __ndla_licenses = require("@ndla/licenses");
4
6
  __ndla_licenses = require_rolldown_runtime.__toESM(__ndla_licenses);
5
7
 
6
8
  //#region src/locale/messages-en.ts
7
- const { subjectCategories, subjectTypes, wordClass } = require_index.default;
8
9
  const messages = {
9
10
  ...Object.entries(__ndla_licenses.contributorTypes).reduce((acc, curr) => {
10
11
  acc[curr[0]] = curr[1].en;
@@ -12,17 +13,17 @@ const messages = {
12
13
  }, {}),
13
14
  askNDLA: "Ask NDLA",
14
15
  subjectCategories: {
15
- [subjectCategories.ACTIVE_SUBJECTS]: "Active",
16
- [subjectCategories.ARCHIVE_SUBJECTS]: "Expired",
17
- [subjectCategories.BETA_SUBJECTS]: "Revised",
18
- [subjectCategories.OTHER]: "Other resources",
19
- [subjectTypes.RESOURCE_COLLECTION]: "Resource collections"
16
+ [require_SubjectCategories.subjectCategories.ACTIVE_SUBJECTS]: "Active",
17
+ [require_SubjectCategories.subjectCategories.ARCHIVE_SUBJECTS]: "Expired",
18
+ [require_SubjectCategories.subjectCategories.BETA_SUBJECTS]: "Revised",
19
+ [require_SubjectCategories.subjectCategories.OTHER]: "Other resources",
20
+ [require_SubjectTypes.subjectTypes.RESOURCE_COLLECTION]: "Resource collections"
20
21
  },
21
22
  subjectTypes: {
22
- [subjectTypes.ARCHIVE_SUBJECT]: "Archive subject",
23
- [subjectTypes.BETA_SUBJECT]: "Beta subject",
24
- [subjectTypes.RESOURCE_COLLECTION]: "Resource collection",
25
- [subjectTypes.SUBJECT]: "Subject"
23
+ [require_SubjectTypes.subjectTypes.ARCHIVE_SUBJECT]: "Archive subject",
24
+ [require_SubjectTypes.subjectTypes.BETA_SUBJECT]: "Beta subject",
25
+ [require_SubjectTypes.subjectTypes.RESOURCE_COLLECTION]: "Resource collection",
26
+ [require_SubjectTypes.subjectTypes.SUBJECT]: "Subject"
26
27
  },
27
28
  meta: {
28
29
  description: "Norwegian Digital Learning Arena, Open Educational Resources for upper secondary education.",
@@ -301,41 +302,41 @@ const messages = {
301
302
  }
302
303
  },
303
304
  wordClass: {
304
- [wordClass.wordClass.adjective]: "Adjective",
305
- [wordClass.wordClass.adverb]: "Adverb",
306
- [wordClass.wordClass.properNoun]: "Proper Noun",
307
- [wordClass.wordClass.auxiliary]: "Auxiliary",
308
- [wordClass.wordClass.complement]: "Complement",
309
- [wordClass.wordClass.conjunction]: "Conjunction",
310
- [wordClass.wordClass.coverb]: "Coverb",
311
- [wordClass.wordClass.determiner]: "Determiner",
312
- [wordClass.wordClass.interjection]: "Interjection",
313
- [wordClass.wordClass.quantifier]: "Quantifier",
314
- [wordClass.wordClass.marker]: "Marker",
315
- [wordClass.wordClass.modalVerb]: "Modal Verb",
316
- [wordClass.wordClass.measureWord]: "Measure Word",
317
- [wordClass.wordClass.noun]: "Noun",
318
- [wordClass.wordClass["noun-zh"]]: "Noun",
319
- [wordClass.wordClass.nounPhrase]: "Noun Phrase",
320
- [wordClass.wordClass.onomatopoeia]: "Onomatopoeia",
321
- [wordClass.wordClass.particle]: "Particle",
322
- [wordClass.wordClass.demonstrative]: "Demonstrative",
323
- [wordClass.wordClass.personalPronoun]: "Personal Pronoun",
324
- [wordClass.wordClass.preposition]: "Preposition",
325
- [wordClass.wordClass.pronoun]: "Pronoun",
326
- [wordClass.wordClass.questionWord]: "Question Word",
327
- [wordClass.wordClass.locationWord]: "Location Word",
328
- [wordClass.wordClass.suffix]: "Suffix",
329
- [wordClass.wordClass.numeral]: "Numeral",
330
- [wordClass.wordClass.timeWord]: "Time word",
331
- [wordClass.wordClass.timeExpression]: "Time Expression",
332
- [wordClass.wordClass.stativeVerb]: "Stative Verb",
333
- [wordClass.wordClass.subordinatingConjunction]: "Subordinating Conjunction",
334
- [wordClass.wordClass.exclamationWord]: "Exclamation Word",
335
- [wordClass.wordClass.expression]: "Expression",
336
- [wordClass.wordClass.verb]: "Verb",
337
- [wordClass.wordClass.verbComplement]: "Verb-Complement",
338
- [wordClass.wordClass.verbObject]: "Verb-Object"
305
+ [require_WordClass.wordClass.adjective]: "Adjective",
306
+ [require_WordClass.wordClass.adverb]: "Adverb",
307
+ [require_WordClass.wordClass.properNoun]: "Proper Noun",
308
+ [require_WordClass.wordClass.auxiliary]: "Auxiliary",
309
+ [require_WordClass.wordClass.complement]: "Complement",
310
+ [require_WordClass.wordClass.conjunction]: "Conjunction",
311
+ [require_WordClass.wordClass.coverb]: "Coverb",
312
+ [require_WordClass.wordClass.determiner]: "Determiner",
313
+ [require_WordClass.wordClass.interjection]: "Interjection",
314
+ [require_WordClass.wordClass.quantifier]: "Quantifier",
315
+ [require_WordClass.wordClass.marker]: "Marker",
316
+ [require_WordClass.wordClass.modalVerb]: "Modal Verb",
317
+ [require_WordClass.wordClass.measureWord]: "Measure Word",
318
+ [require_WordClass.wordClass.noun]: "Noun",
319
+ [require_WordClass.wordClass["noun-zh"]]: "Noun",
320
+ [require_WordClass.wordClass.nounPhrase]: "Noun Phrase",
321
+ [require_WordClass.wordClass.onomatopoeia]: "Onomatopoeia",
322
+ [require_WordClass.wordClass.particle]: "Particle",
323
+ [require_WordClass.wordClass.demonstrative]: "Demonstrative",
324
+ [require_WordClass.wordClass.personalPronoun]: "Personal Pronoun",
325
+ [require_WordClass.wordClass.preposition]: "Preposition",
326
+ [require_WordClass.wordClass.pronoun]: "Pronoun",
327
+ [require_WordClass.wordClass.questionWord]: "Question Word",
328
+ [require_WordClass.wordClass.locationWord]: "Location Word",
329
+ [require_WordClass.wordClass.suffix]: "Suffix",
330
+ [require_WordClass.wordClass.numeral]: "Numeral",
331
+ [require_WordClass.wordClass.timeWord]: "Time word",
332
+ [require_WordClass.wordClass.timeExpression]: "Time Expression",
333
+ [require_WordClass.wordClass.stativeVerb]: "Stative Verb",
334
+ [require_WordClass.wordClass.subordinatingConjunction]: "Subordinating Conjunction",
335
+ [require_WordClass.wordClass.exclamationWord]: "Exclamation Word",
336
+ [require_WordClass.wordClass.expression]: "Expression",
337
+ [require_WordClass.wordClass.verb]: "Verb",
338
+ [require_WordClass.wordClass.verbComplement]: "Verb-Complement",
339
+ [require_WordClass.wordClass.verbObject]: "Verb-Object"
339
340
  },
340
341
  login: "Log in",
341
342
  component: {