@ndla/ui 35.0.27 → 35.1.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 (282) hide show
  1. package/es/Animation/DisplayOnPageYOffset.js +4 -2
  2. package/es/Article/Article.js +5 -3
  3. package/es/Article/ArticleContent.js +4 -1
  4. package/es/Article/ArticleHeaderWrapper.js +6 -3
  5. package/es/Aside/Aside.js +4 -1
  6. package/es/AudioPlayer/AudioPlayer.js +2 -2
  7. package/es/AudioPlayer/Controls.js +2 -2
  8. package/es/Breadcrumb/Breadcrumb.js +6 -3
  9. package/es/Breadcrumblist/Breadcrumblist.js +2 -2
  10. package/es/CompetenceGoalTab/CompetenceGoalTab.js +2 -2
  11. package/es/CompetenceGoals/CompetenceGoalsDialog.js +4 -1
  12. package/es/ContactBlock/ContactBlock.js +150 -0
  13. package/es/ContactBlock/index.js +9 -0
  14. package/es/ContentCard/ContentCard.js +4 -1
  15. package/es/ContentLoader/index.js +4 -1
  16. package/es/ContentTypeBadge/ContentTypeBadge.js +4 -1
  17. package/es/CopyParagraphButton/CopyParagraphButton.js +2 -2
  18. package/es/CopyParagraphButton/CopyParagraphButtonV2.js +2 -2
  19. package/es/Dialog/Dialog.js +4 -1
  20. package/es/Embed/AudioEmbed.js +2 -2
  21. package/es/Embed/BrightcoveEmbed.js +6 -3
  22. package/es/Embed/ConceptEmbed.js +2 -2
  23. package/es/Embed/ImageEmbed.js +2 -2
  24. package/es/Embed/conceptComponents.js +4 -1
  25. package/es/FactBox/FactBox.js +4 -1
  26. package/es/FactBox/FactBoxV2.js +6 -3
  27. package/es/Figure/Figure.js +4 -1
  28. package/es/Figure/FigureLicense.js +4 -1
  29. package/es/Figure/FigureLicenseDialog.js +4 -1
  30. package/es/Figure/FigureLicenseDialogContent.js +4 -1
  31. package/es/Filter/FilterButtons.js +2 -2
  32. package/es/Filter/FilterCarousel.js +6 -3
  33. package/es/Filter/FilterList.js +6 -3
  34. package/es/Filter/FilterListPhone.js +6 -3
  35. package/es/Filter/ToggleItem.js +4 -1
  36. package/es/Footer/FooterAuth.js +4 -1
  37. package/es/Frontpage/FrontpageAllSubjects.js +1 -1
  38. package/es/Frontpage/FrontpageProgramMenu.js +2 -2
  39. package/es/Hero/Hero.js +4 -1
  40. package/es/Image/Image.js +4 -1
  41. package/es/Image/ImageLink.js +4 -1
  42. package/es/Image/LazyLoadImage.js +4 -1
  43. package/es/KeyPerformanceIndicator/KeyPerformanceIndicator.js +57 -0
  44. package/es/KeyPerformanceIndicator/index.js +9 -0
  45. package/es/Layout/PageContainer.js +4 -1
  46. package/es/LearningPaths/LearningPathMenu.js +2 -2
  47. package/es/Logo/Logo.js +4 -1
  48. package/es/Logo/SvgLogo.js +4 -1
  49. package/es/Masthead/MastheadAuthModal.js +4 -1
  50. package/es/Masthead/utils.js +2 -2
  51. package/es/MediaList/MediaList.js +4 -1
  52. package/es/MultidisciplinarySubject/List.js +4 -1
  53. package/es/MyNdla/Resource/FolderInput.js +4 -1
  54. package/es/NDLAFilm/AllMoviesAlphabetically.js +2 -2
  55. package/es/NDLAFilm/CategorySelect.js +2 -2
  56. package/es/NDLAFilm/FilmMovieList.js +4 -1
  57. package/es/NDLAFilm/FilmSlideshow.js +6 -3
  58. package/es/Notion/ConceptNotion.js +1 -1
  59. package/es/Notion/FigureNotion.js +1 -1
  60. package/es/RadioButtonGroup/RadioButtonGroup.js +4 -2
  61. package/es/RelatedArticleList/RelatedArticleList.js +4 -1
  62. package/es/RelatedArticleList/RelatedArticleV2.js +6 -3
  63. package/es/ResourceGroup/ResourceList.js +4 -1
  64. package/es/ResourcesWrapper/ResourcesWrapper.js +4 -1
  65. package/es/Search/ContentTypeResult.js +6 -3
  66. package/es/Search/SearchField.js +4 -1
  67. package/es/Search/SearchResult.js +3 -1
  68. package/es/Search/SearchResultSleeve.js +2 -2
  69. package/es/Search/ToggleSearchButton.js +4 -1
  70. package/es/SearchTypeResult/PopupFilter.js +2 -2
  71. package/es/SearchTypeResult/SearchFieldHeader.js +2 -2
  72. package/es/SearchTypeResult/SearchHeader.js +2 -2
  73. package/es/SearchTypeResult/SearchTypeResult.js +4 -1
  74. package/es/SearchTypeResult/components/SubjectFilters.js +6 -3
  75. package/es/SnackBar/SnackbarProvider.js +6 -3
  76. package/es/Table/Table.js +6 -3
  77. package/es/TagSelector/Control.js +4 -1
  78. package/es/TagSelector/DropdownIndicator.js +4 -1
  79. package/es/TagSelector/Input.js +4 -1
  80. package/es/TagSelector/Menu.js +4 -1
  81. package/es/TagSelector/MenuList.js +4 -1
  82. package/es/TagSelector/Option.js +4 -1
  83. package/es/TagSelector/SelectContainer.js +4 -1
  84. package/es/TagSelector/TagSelector.js +6 -3
  85. package/es/TagSelector/ValueButton.js +4 -1
  86. package/es/Translation/Translation.js +4 -1
  87. package/es/Translation/TranslationLine.js +4 -1
  88. package/es/TreeStructure/FolderItem.js +53 -22
  89. package/es/TreeStructure/FolderItems.js +4 -1
  90. package/es/TreeStructure/TreeStructure.js +2 -2
  91. package/es/TreeStructure/helperFunctions.js +4 -1
  92. package/es/User/UserInfo.js +2 -2
  93. package/es/User/parseUserObject.js +6 -3
  94. package/es/all.css +1 -1
  95. package/es/index.js +4 -1
  96. package/es/locale/messages-en.js +6 -1
  97. package/es/locale/messages-nb.js +6 -1
  98. package/es/locale/messages-nn.js +6 -1
  99. package/es/locale/messages-se.js +83 -78
  100. package/es/locale/messages-sma.js +6 -1
  101. package/es/model/ContentType.js +4 -1
  102. package/lib/Animation/DisplayOnPageYOffset.js +11 -3
  103. package/lib/Article/Article.js +12 -4
  104. package/lib/Article/ArticleAccessMessage.js +7 -1
  105. package/lib/Article/ArticleByline.js +7 -1
  106. package/lib/Article/ArticleContent.js +10 -1
  107. package/lib/Article/ArticleHeaderWrapper.js +12 -4
  108. package/lib/Aside/Aside.js +10 -1
  109. package/lib/AudioPlayer/AudioPlayer.js +9 -3
  110. package/lib/AudioPlayer/Controls.js +9 -3
  111. package/lib/Breadcrumb/Breadcrumb.js +12 -4
  112. package/lib/Breadcrumb/BreadcrumbItem.js +7 -1
  113. package/lib/Breadcrumb/HomeBreadcrumb.js +7 -1
  114. package/lib/Breadcrumblist/Breadcrumblist.js +9 -3
  115. package/lib/CompetenceGoalTab/CompetenceGoalItem.js +7 -1
  116. package/lib/CompetenceGoalTab/CompetenceGoalTab.js +9 -3
  117. package/lib/CompetenceGoalTab/CompetenceItem.js +7 -1
  118. package/lib/CompetenceGoals/CompetenceGoalsDialog.js +10 -2
  119. package/lib/ContactBlock/ContactBlock.d.ts +20 -0
  120. package/lib/ContactBlock/ContactBlock.js +154 -0
  121. package/lib/ContactBlock/index.d.ts +9 -0
  122. package/lib/ContactBlock/index.js +17 -0
  123. package/lib/ContentCard/ContentCard.js +4 -1
  124. package/lib/ContentLoader/index.js +11 -1
  125. package/lib/ContentPlaceholder/ContentPlaceholder.js +7 -1
  126. package/lib/ContentTypeBadge/ContentTypeBadge.js +4 -2
  127. package/lib/CopyParagraphButton/CopyParagraphButton.js +9 -3
  128. package/lib/CopyParagraphButton/CopyParagraphButtonV2.js +9 -3
  129. package/lib/CreatedBy/CreatedBy.js +7 -1
  130. package/lib/Dialog/Dialog.js +13 -1
  131. package/lib/Embed/AudioEmbed.js +9 -3
  132. package/lib/Embed/BrightcoveEmbed.js +13 -4
  133. package/lib/Embed/ConceptEmbed.js +9 -3
  134. package/lib/Embed/ConceptListEmbed.js +7 -1
  135. package/lib/Embed/ExternalEmbed.js +7 -1
  136. package/lib/Embed/H5pEmbed.js +7 -1
  137. package/lib/Embed/ImageEmbed.js +9 -3
  138. package/lib/Embed/conceptComponents.js +11 -2
  139. package/lib/FactBox/FactBox.js +10 -1
  140. package/lib/FactBox/FactBoxV2.js +12 -4
  141. package/lib/Figure/Figure.js +11 -1
  142. package/lib/Figure/FigureLicense.js +11 -1
  143. package/lib/Figure/FigureLicenseDialog.js +11 -1
  144. package/lib/Figure/FigureLicenseDialogContent.js +10 -1
  145. package/lib/FileList/FileListV2.js +7 -1
  146. package/lib/Filter/FilterButtons.js +9 -3
  147. package/lib/Filter/FilterCarousel.js +12 -4
  148. package/lib/Filter/FilterList.js +12 -4
  149. package/lib/Filter/FilterListPhone.js +12 -4
  150. package/lib/Filter/ToggleItem.js +10 -1
  151. package/lib/Footer/Footer.js +7 -1
  152. package/lib/Footer/FooterAuth.js +11 -2
  153. package/lib/Frontpage/FrontpageAllSubjects.js +1 -1
  154. package/lib/Frontpage/FrontpageProgramMenu.js +2 -2
  155. package/lib/Frontpage/illustrations/FrontpageSubjectIllustration.js +7 -1
  156. package/lib/Hero/Hero.js +10 -2
  157. package/lib/Image/Image.js +11 -2
  158. package/lib/Image/ImageLink.js +11 -2
  159. package/lib/Image/LazyLoadImage.js +11 -1
  160. package/lib/InfoBlock/InfoBlock.js +7 -1
  161. package/lib/KeyPerformanceIndicator/KeyPerformanceIndicator.d.ts +8 -0
  162. package/lib/KeyPerformanceIndicator/KeyPerformanceIndicator.js +62 -0
  163. package/lib/KeyPerformanceIndicator/index.d.ts +1 -0
  164. package/lib/KeyPerformanceIndicator/index.js +13 -0
  165. package/lib/LanguageSelector/LanguageSelector.js +7 -1
  166. package/lib/Layout/PageContainer.js +10 -1
  167. package/lib/LearningPaths/LearningPathLastStepNavigation.js +7 -1
  168. package/lib/LearningPaths/LearningPathMenu.js +9 -3
  169. package/lib/LearningPaths/LearningPathMenuIntro.js +7 -1
  170. package/lib/Logo/Logo.js +10 -1
  171. package/lib/Logo/SvgLogo.js +10 -1
  172. package/lib/Masthead/Masthead.js +7 -1
  173. package/lib/Masthead/MastheadAuthModal.js +11 -1
  174. package/lib/Masthead/utils.js +9 -3
  175. package/lib/MediaList/MediaList.js +10 -1
  176. package/lib/Messages/MessageBanner.js +7 -1
  177. package/lib/Messages/MessageBox.js +7 -1
  178. package/lib/Messages/MessageBoxTag.js +7 -1
  179. package/lib/MultidisciplinarySubject/List.js +4 -1
  180. package/lib/MyNdla/Resource/Folder.js +7 -1
  181. package/lib/MyNdla/Resource/FolderInput.js +10 -1
  182. package/lib/MyNdla/SettingsMenu.js +7 -1
  183. package/lib/NDLAFilm/AllMoviesAlphabetically.js +9 -3
  184. package/lib/NDLAFilm/CategorySelect.js +9 -2
  185. package/lib/NDLAFilm/FilmMovieList.js +9 -1
  186. package/lib/NDLAFilm/FilmSlideshow.js +12 -4
  187. package/lib/NDLAFilm/VisualElement.js +7 -1
  188. package/lib/Notion/ConceptNotion.js +6 -1
  189. package/lib/Notion/FigureNotion.js +6 -1
  190. package/lib/Notion/Notion.js +7 -1
  191. package/lib/Notion/NotionVisualElement.js +6 -1
  192. package/lib/RadioButtonGroup/RadioButtonGroup.js +10 -2
  193. package/lib/RelatedArticleList/RelatedArticleList.js +4 -2
  194. package/lib/RelatedArticleList/RelatedArticleV2.js +12 -3
  195. package/lib/Resource/BlockResource.js +7 -1
  196. package/lib/Resource/ListResource.js +7 -1
  197. package/lib/Resource/resourceComponents.js +7 -1
  198. package/lib/ResourceGroup/ResourceItem.js +7 -1
  199. package/lib/ResourceGroup/ResourceList.js +11 -1
  200. package/lib/ResourcesWrapper/ResourcesWrapper.js +11 -1
  201. package/lib/Search/ContentTypeResult.js +5 -3
  202. package/lib/Search/SearchField.js +10 -1
  203. package/lib/Search/SearchResult.js +3 -1
  204. package/lib/Search/SearchResultSleeve.js +8 -2
  205. package/lib/Search/ToggleSearchButton.js +11 -1
  206. package/lib/SearchTypeResult/ActiveFilterContent.js +7 -1
  207. package/lib/SearchTypeResult/ActiveFilters.js +7 -1
  208. package/lib/SearchTypeResult/PopupFilter.js +9 -3
  209. package/lib/SearchTypeResult/SearchFieldHeader.js +9 -3
  210. package/lib/SearchTypeResult/SearchFilterContent.js +7 -1
  211. package/lib/SearchTypeResult/SearchHeader.js +9 -3
  212. package/lib/SearchTypeResult/SearchItem.js +7 -1
  213. package/lib/SearchTypeResult/SearchItemList.js +7 -1
  214. package/lib/SearchTypeResult/SearchItems.js +7 -1
  215. package/lib/SearchTypeResult/SearchNotionItem.js +7 -1
  216. package/lib/SearchTypeResult/SearchSubjectItem.js +7 -1
  217. package/lib/SearchTypeResult/SearchTypeHeader.js +7 -1
  218. package/lib/SearchTypeResult/SearchTypeResult.js +9 -1
  219. package/lib/SearchTypeResult/SearchViewType.js +7 -1
  220. package/lib/SearchTypeResult/components/ItemContexts.js +7 -1
  221. package/lib/SearchTypeResult/components/ItemResourceHeader.js +7 -1
  222. package/lib/SearchTypeResult/components/ItemTopicHeader.js +7 -1
  223. package/lib/SearchTypeResult/components/SubjectFilters.js +12 -4
  224. package/lib/SnackBar/SnackbarProvider.js +12 -4
  225. package/lib/Table/Table.js +12 -4
  226. package/lib/TagSelector/Control.js +10 -1
  227. package/lib/TagSelector/DropdownIndicator.js +10 -2
  228. package/lib/TagSelector/Input.js +10 -1
  229. package/lib/TagSelector/Menu.js +11 -1
  230. package/lib/TagSelector/MenuList.js +10 -1
  231. package/lib/TagSelector/Option.js +10 -1
  232. package/lib/TagSelector/SelectContainer.js +10 -1
  233. package/lib/TagSelector/TagSelector.js +12 -4
  234. package/lib/TagSelector/ValueButton.js +10 -1
  235. package/lib/Topic/Topic.js +7 -1
  236. package/lib/Translation/Translation.js +10 -1
  237. package/lib/Translation/TranslationLine.js +10 -1
  238. package/lib/TreeStructure/AddFolderButton.js +7 -1
  239. package/lib/TreeStructure/FolderItem.js +60 -23
  240. package/lib/TreeStructure/FolderItems.js +11 -1
  241. package/lib/TreeStructure/TreeStructure.js +9 -3
  242. package/lib/TreeStructure/helperFunctions.js +4 -1
  243. package/lib/User/AuthModal.js +7 -1
  244. package/lib/User/UserInfo.js +8 -3
  245. package/lib/User/parseUserObject.js +12 -4
  246. package/lib/all.css +1 -1
  247. package/lib/index.d.ts +3 -0
  248. package/lib/index.js +21 -0
  249. package/lib/locale/messages-en.d.ts +2 -0
  250. package/lib/locale/messages-en.js +12 -1
  251. package/lib/locale/messages-nb.d.ts +2 -0
  252. package/lib/locale/messages-nb.js +12 -1
  253. package/lib/locale/messages-nn.d.ts +2 -0
  254. package/lib/locale/messages-nn.js +12 -1
  255. package/lib/locale/messages-se.d.ts +2 -0
  256. package/lib/locale/messages-se.js +89 -78
  257. package/lib/locale/messages-sma.d.ts +2 -0
  258. package/lib/locale/messages-sma.js +12 -1
  259. package/lib/model/ContentType.js +4 -1
  260. package/package.json +16 -16
  261. package/src/BlogPost/BlogPost.stories.tsx +4 -3
  262. package/src/ContactBlock/ContactBlock.tsx +144 -0
  263. package/src/ContactBlock/Contactblock.stories.tsx +88 -0
  264. package/src/ContactBlock/index.ts +10 -0
  265. package/src/KeyPerformanceIndicator/KeyPerformanceIndicator.stories.tsx +79 -0
  266. package/src/KeyPerformanceIndicator/KeyPerformanceIndicator.tsx +66 -0
  267. package/src/KeyPerformanceIndicator/index.ts +9 -0
  268. package/src/LanguageSelector/LanguageSelector.stories.tsx +4 -3
  269. package/src/LetterFilter/LetterFilter.stories.tsx +4 -3
  270. package/src/MyNdla/Resource/Folder.stories.tsx +39 -0
  271. package/src/Resource/BlockResource.stories.tsx +52 -0
  272. package/src/Resource/Resource.stories.tsx +52 -0
  273. package/src/TreeStructure/FolderItem.tsx +39 -20
  274. package/src/index.ts +3 -0
  275. package/src/locale/messages-en.ts +2 -0
  276. package/src/locale/messages-nb.ts +2 -0
  277. package/src/locale/messages-nn.ts +2 -0
  278. package/src/locale/messages-se.ts +79 -77
  279. package/src/locale/messages-sma.ts +2 -0
  280. package/src/MyNdla/Resource/Folder.stories.mdx +0 -53
  281. package/src/Resource/BlockResource.stories.mdx +0 -58
  282. package/src/Resource/Resource.stories.mdx +0 -58
@@ -19,14 +19,22 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
19
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
20
20
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
21
21
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
22
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
22
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
24
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23
25
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
24
26
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
25
27
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
26
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
27
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
28
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
29
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
28
30
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
29
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
31
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
32
+ * Copyright (c) 2016-present, NDLA.
33
+ *
34
+ * This source code is licensed under the GPLv3 license found in the
35
+ * LICENSE file in the root directory of this source tree.
36
+ *
37
+ */
30
38
  var classes = new _reactBemHelper["default"]({
31
39
  name: 'article',
32
40
  prefix: 'c-'
@@ -8,9 +8,18 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _reactBemHelper = _interopRequireDefault(require("react-bem-helper"));
9
9
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11
12
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12
13
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
13
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
17
+ * Copyright (c) 2018-present, NDLA.
18
+ *
19
+ * This source code is licensed under the GPLv3 license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ *
22
+ */
14
23
  var classes = (0, _reactBemHelper["default"])({
15
24
  prefix: 'c-',
16
25
  name: 'aside'
@@ -22,10 +22,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
22
22
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
23
23
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24
24
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
25
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
26
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
25
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
26
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
27
27
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
28
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
28
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
29
+ * Copyright (c) 2017-present, NDLA.
30
+ *
31
+ * This source code is licensed under the GPLv3 license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ *
34
+ */
29
35
  var InfoWrapper = /*#__PURE__*/(0, _base["default"])("div", {
30
36
  target: "e1wmpntw13",
31
37
  label: "InfoWrapper"
@@ -20,10 +20,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
20
20
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
21
21
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
22
22
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
23
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
24
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
23
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
25
25
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
26
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
26
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
27
+ * Copyright (c) 2021-present, NDLA.
28
+ *
29
+ * This source code is licensed under the GPLv3 license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ *
32
+ */
27
33
  var ControlsWrapper = /*#__PURE__*/(0, _base["default"])("div", {
28
34
  target: "e1gaeajv25",
29
35
  label: "ControlsWrapper"
@@ -16,14 +16,22 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
17
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18
18
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
19
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
20
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
21
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20
22
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
21
23
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
22
24
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
23
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
24
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
25
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
26
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
25
27
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
26
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
28
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
29
+ * Copyright (c) 2016-present, NDLA.
30
+ *
31
+ * This source code is licensed under the GPLv3 license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ *
34
+ */
27
35
  var BreadcrumbNav = /*#__PURE__*/(0, _base["default"])("nav", {
28
36
  target: "e1oxrjfx1",
29
37
  label: "BreadcrumbNav"
@@ -15,7 +15,13 @@ var _jsxRuntime = require("@emotion/react/jsx-runtime");
15
15
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
18
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
18
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
19
+ * Copyright (c) 2016-present, NDLA.
20
+ *
21
+ * This source code is licensed under the GPLv3 license found in the
22
+ * LICENSE file in the root directory of this source tree.
23
+ *
24
+ */
19
25
  var StyledListItem = /*#__PURE__*/(0, _base["default"])("li", {
20
26
  target: "ehxjdfm3",
21
27
  label: "StyledListItem"
@@ -12,7 +12,13 @@ var _react = _interopRequireDefault(require("react"));
12
12
  var _Breadcrumb = _interopRequireDefault(require("./Breadcrumb"));
13
13
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
15
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
16
+ * Copyright (c) 2022-present, NDLA.
17
+ *
18
+ * This source code is licensed under the GPLv3 license found in the
19
+ * LICENSE file in the root directory of this source tree.
20
+ *
21
+ */
16
22
  var StyledSeparator = /*#__PURE__*/(0, _base["default"])("div", {
17
23
  target: "eb9bmw15",
18
24
  label: "StyledSeparator"
@@ -20,10 +20,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
20
20
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
21
21
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
22
22
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
23
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
24
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
23
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
25
25
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
26
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
26
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
27
+ * Copyright (c) 2020-present, NDLA.
28
+ *
29
+ * This source code is licensed under the GPLv3 license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ *
32
+ */
27
33
  var Wrapper = /*#__PURE__*/(0, _base["default"])("div", {
28
34
  target: "eblhk4x5",
29
35
  label: "Wrapper"
@@ -12,7 +12,13 @@ var _safelink = require("@ndla/safelink");
12
12
  var _reactI18next = require("react-i18next");
13
13
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
15
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
16
+ * Copyright (c) 2021-present, NDLA.
17
+ *
18
+ * This source code is licensed under the GPLv3 license found in the
19
+ * LICENSE file in the root directory of this source tree.
20
+ *
21
+ */
16
22
  var GoalItem = /*#__PURE__*/(0, _base["default"])("li", {
17
23
  target: "e4hkjaf6",
18
24
  label: "GoalItem"
@@ -22,10 +22,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
22
22
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
23
23
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24
24
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
25
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
26
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
25
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
26
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
27
27
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
28
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
28
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
29
+ * Copyright (c) 2021-present, NDLA.
30
+ *
31
+ * This source code is licensed under the GPLv3 license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ *
34
+ */
29
35
  var ButtonWrapper = /*#__PURE__*/(0, _base["default"])("div", {
30
36
  target: "er5un7h1",
31
37
  label: "ButtonWrapper"
@@ -12,7 +12,13 @@ var _reactI18next = require("react-i18next");
12
12
  var _CompetenceGoalItem = _interopRequireDefault(require("./CompetenceGoalItem"));
13
13
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
15
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
16
+ * Copyright (c) 2021-present, NDLA.
17
+ *
18
+ * This source code is licensed under the GPLv3 license found in the
19
+ * LICENSE file in the root directory of this source tree.
20
+ *
21
+ */
16
22
  var GroupedGoalsWrapper = /*#__PURE__*/(0, _base["default"])("div", {
17
23
  target: "e1il0wzc5",
18
24
  label: "GroupedGoalsWrapper"
@@ -17,8 +17,16 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
17
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
18
18
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
19
19
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
20
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
20
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
22
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
24
+ * Copyright (c) 2018-present, NDLA.
25
+ *
26
+ * This source code is licensed under the GPLv3 license found in the
27
+ * LICENSE file in the root directory of this source tree.
28
+ *
29
+ */
22
30
  var HeaderWrapper = /*#__PURE__*/(0, _base["default"])("div", {
23
31
  target: "e1gm3dqo2",
24
32
  label: "HeaderWrapper"
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright (c) 2023-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ import { IImageMetaInformationV3 } from '@ndla/types-backend/image-api';
9
+ interface Props {
10
+ image?: IImageMetaInformationV3;
11
+ jobTitle: string;
12
+ description: string;
13
+ blobColor?: 'pink' | 'green';
14
+ blob?: 'pointy' | 'round';
15
+ imageWidth?: number;
16
+ name: string;
17
+ email: string;
18
+ }
19
+ declare const ContactBlock: ({ image, jobTitle, description, name, email, blobColor, blob }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
20
+ export default ContactBlock;