@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.
- package/es/Animation/DisplayOnPageYOffset.js +4 -2
- package/es/Article/Article.js +5 -3
- package/es/Article/ArticleContent.js +4 -1
- package/es/Article/ArticleHeaderWrapper.js +6 -3
- package/es/Aside/Aside.js +4 -1
- package/es/AudioPlayer/AudioPlayer.js +2 -2
- package/es/AudioPlayer/Controls.js +2 -2
- package/es/Breadcrumb/Breadcrumb.js +6 -3
- package/es/Breadcrumblist/Breadcrumblist.js +2 -2
- package/es/CompetenceGoalTab/CompetenceGoalTab.js +2 -2
- package/es/CompetenceGoals/CompetenceGoalsDialog.js +4 -1
- package/es/ContactBlock/ContactBlock.js +150 -0
- package/es/ContactBlock/index.js +9 -0
- package/es/ContentCard/ContentCard.js +4 -1
- package/es/ContentLoader/index.js +4 -1
- package/es/ContentTypeBadge/ContentTypeBadge.js +4 -1
- package/es/CopyParagraphButton/CopyParagraphButton.js +2 -2
- package/es/CopyParagraphButton/CopyParagraphButtonV2.js +2 -2
- package/es/Dialog/Dialog.js +4 -1
- package/es/Embed/AudioEmbed.js +2 -2
- package/es/Embed/BrightcoveEmbed.js +6 -3
- package/es/Embed/ConceptEmbed.js +2 -2
- package/es/Embed/ImageEmbed.js +2 -2
- package/es/Embed/conceptComponents.js +4 -1
- package/es/FactBox/FactBox.js +4 -1
- package/es/FactBox/FactBoxV2.js +6 -3
- package/es/Figure/Figure.js +4 -1
- package/es/Figure/FigureLicense.js +4 -1
- package/es/Figure/FigureLicenseDialog.js +4 -1
- package/es/Figure/FigureLicenseDialogContent.js +4 -1
- package/es/Filter/FilterButtons.js +2 -2
- package/es/Filter/FilterCarousel.js +6 -3
- package/es/Filter/FilterList.js +6 -3
- package/es/Filter/FilterListPhone.js +6 -3
- package/es/Filter/ToggleItem.js +4 -1
- package/es/Footer/FooterAuth.js +4 -1
- package/es/Frontpage/FrontpageAllSubjects.js +1 -1
- package/es/Frontpage/FrontpageProgramMenu.js +2 -2
- package/es/Hero/Hero.js +4 -1
- package/es/Image/Image.js +4 -1
- package/es/Image/ImageLink.js +4 -1
- package/es/Image/LazyLoadImage.js +4 -1
- package/es/KeyPerformanceIndicator/KeyPerformanceIndicator.js +57 -0
- package/es/KeyPerformanceIndicator/index.js +9 -0
- package/es/Layout/PageContainer.js +4 -1
- package/es/LearningPaths/LearningPathMenu.js +2 -2
- package/es/Logo/Logo.js +4 -1
- package/es/Logo/SvgLogo.js +4 -1
- package/es/Masthead/MastheadAuthModal.js +4 -1
- package/es/Masthead/utils.js +2 -2
- package/es/MediaList/MediaList.js +4 -1
- package/es/MultidisciplinarySubject/List.js +4 -1
- package/es/MyNdla/Resource/FolderInput.js +4 -1
- package/es/NDLAFilm/AllMoviesAlphabetically.js +2 -2
- package/es/NDLAFilm/CategorySelect.js +2 -2
- package/es/NDLAFilm/FilmMovieList.js +4 -1
- package/es/NDLAFilm/FilmSlideshow.js +6 -3
- package/es/Notion/ConceptNotion.js +1 -1
- package/es/Notion/FigureNotion.js +1 -1
- package/es/RadioButtonGroup/RadioButtonGroup.js +4 -2
- package/es/RelatedArticleList/RelatedArticleList.js +4 -1
- package/es/RelatedArticleList/RelatedArticleV2.js +6 -3
- package/es/ResourceGroup/ResourceList.js +4 -1
- package/es/ResourcesWrapper/ResourcesWrapper.js +4 -1
- package/es/Search/ContentTypeResult.js +6 -3
- package/es/Search/SearchField.js +4 -1
- package/es/Search/SearchResult.js +3 -1
- package/es/Search/SearchResultSleeve.js +2 -2
- package/es/Search/ToggleSearchButton.js +4 -1
- package/es/SearchTypeResult/PopupFilter.js +2 -2
- package/es/SearchTypeResult/SearchFieldHeader.js +2 -2
- package/es/SearchTypeResult/SearchHeader.js +2 -2
- package/es/SearchTypeResult/SearchTypeResult.js +4 -1
- package/es/SearchTypeResult/components/SubjectFilters.js +6 -3
- package/es/SnackBar/SnackbarProvider.js +6 -3
- package/es/Table/Table.js +6 -3
- package/es/TagSelector/Control.js +4 -1
- package/es/TagSelector/DropdownIndicator.js +4 -1
- package/es/TagSelector/Input.js +4 -1
- package/es/TagSelector/Menu.js +4 -1
- package/es/TagSelector/MenuList.js +4 -1
- package/es/TagSelector/Option.js +4 -1
- package/es/TagSelector/SelectContainer.js +4 -1
- package/es/TagSelector/TagSelector.js +6 -3
- package/es/TagSelector/ValueButton.js +4 -1
- package/es/Translation/Translation.js +4 -1
- package/es/Translation/TranslationLine.js +4 -1
- package/es/TreeStructure/FolderItem.js +53 -22
- package/es/TreeStructure/FolderItems.js +4 -1
- package/es/TreeStructure/TreeStructure.js +2 -2
- package/es/TreeStructure/helperFunctions.js +4 -1
- package/es/User/UserInfo.js +2 -2
- package/es/User/parseUserObject.js +6 -3
- package/es/all.css +1 -1
- package/es/index.js +4 -1
- package/es/locale/messages-en.js +6 -1
- package/es/locale/messages-nb.js +6 -1
- package/es/locale/messages-nn.js +6 -1
- package/es/locale/messages-se.js +83 -78
- package/es/locale/messages-sma.js +6 -1
- package/es/model/ContentType.js +4 -1
- package/lib/Animation/DisplayOnPageYOffset.js +11 -3
- package/lib/Article/Article.js +12 -4
- package/lib/Article/ArticleAccessMessage.js +7 -1
- package/lib/Article/ArticleByline.js +7 -1
- package/lib/Article/ArticleContent.js +10 -1
- package/lib/Article/ArticleHeaderWrapper.js +12 -4
- package/lib/Aside/Aside.js +10 -1
- package/lib/AudioPlayer/AudioPlayer.js +9 -3
- package/lib/AudioPlayer/Controls.js +9 -3
- package/lib/Breadcrumb/Breadcrumb.js +12 -4
- package/lib/Breadcrumb/BreadcrumbItem.js +7 -1
- package/lib/Breadcrumb/HomeBreadcrumb.js +7 -1
- package/lib/Breadcrumblist/Breadcrumblist.js +9 -3
- package/lib/CompetenceGoalTab/CompetenceGoalItem.js +7 -1
- package/lib/CompetenceGoalTab/CompetenceGoalTab.js +9 -3
- package/lib/CompetenceGoalTab/CompetenceItem.js +7 -1
- package/lib/CompetenceGoals/CompetenceGoalsDialog.js +10 -2
- package/lib/ContactBlock/ContactBlock.d.ts +20 -0
- package/lib/ContactBlock/ContactBlock.js +154 -0
- package/lib/ContactBlock/index.d.ts +9 -0
- package/lib/ContactBlock/index.js +17 -0
- package/lib/ContentCard/ContentCard.js +4 -1
- package/lib/ContentLoader/index.js +11 -1
- package/lib/ContentPlaceholder/ContentPlaceholder.js +7 -1
- package/lib/ContentTypeBadge/ContentTypeBadge.js +4 -2
- package/lib/CopyParagraphButton/CopyParagraphButton.js +9 -3
- package/lib/CopyParagraphButton/CopyParagraphButtonV2.js +9 -3
- package/lib/CreatedBy/CreatedBy.js +7 -1
- package/lib/Dialog/Dialog.js +13 -1
- package/lib/Embed/AudioEmbed.js +9 -3
- package/lib/Embed/BrightcoveEmbed.js +13 -4
- package/lib/Embed/ConceptEmbed.js +9 -3
- package/lib/Embed/ConceptListEmbed.js +7 -1
- package/lib/Embed/ExternalEmbed.js +7 -1
- package/lib/Embed/H5pEmbed.js +7 -1
- package/lib/Embed/ImageEmbed.js +9 -3
- package/lib/Embed/conceptComponents.js +11 -2
- package/lib/FactBox/FactBox.js +10 -1
- package/lib/FactBox/FactBoxV2.js +12 -4
- package/lib/Figure/Figure.js +11 -1
- package/lib/Figure/FigureLicense.js +11 -1
- package/lib/Figure/FigureLicenseDialog.js +11 -1
- package/lib/Figure/FigureLicenseDialogContent.js +10 -1
- package/lib/FileList/FileListV2.js +7 -1
- package/lib/Filter/FilterButtons.js +9 -3
- package/lib/Filter/FilterCarousel.js +12 -4
- package/lib/Filter/FilterList.js +12 -4
- package/lib/Filter/FilterListPhone.js +12 -4
- package/lib/Filter/ToggleItem.js +10 -1
- package/lib/Footer/Footer.js +7 -1
- package/lib/Footer/FooterAuth.js +11 -2
- package/lib/Frontpage/FrontpageAllSubjects.js +1 -1
- package/lib/Frontpage/FrontpageProgramMenu.js +2 -2
- package/lib/Frontpage/illustrations/FrontpageSubjectIllustration.js +7 -1
- package/lib/Hero/Hero.js +10 -2
- package/lib/Image/Image.js +11 -2
- package/lib/Image/ImageLink.js +11 -2
- package/lib/Image/LazyLoadImage.js +11 -1
- package/lib/InfoBlock/InfoBlock.js +7 -1
- package/lib/KeyPerformanceIndicator/KeyPerformanceIndicator.d.ts +8 -0
- package/lib/KeyPerformanceIndicator/KeyPerformanceIndicator.js +62 -0
- package/lib/KeyPerformanceIndicator/index.d.ts +1 -0
- package/lib/KeyPerformanceIndicator/index.js +13 -0
- package/lib/LanguageSelector/LanguageSelector.js +7 -1
- package/lib/Layout/PageContainer.js +10 -1
- package/lib/LearningPaths/LearningPathLastStepNavigation.js +7 -1
- package/lib/LearningPaths/LearningPathMenu.js +9 -3
- package/lib/LearningPaths/LearningPathMenuIntro.js +7 -1
- package/lib/Logo/Logo.js +10 -1
- package/lib/Logo/SvgLogo.js +10 -1
- package/lib/Masthead/Masthead.js +7 -1
- package/lib/Masthead/MastheadAuthModal.js +11 -1
- package/lib/Masthead/utils.js +9 -3
- package/lib/MediaList/MediaList.js +10 -1
- package/lib/Messages/MessageBanner.js +7 -1
- package/lib/Messages/MessageBox.js +7 -1
- package/lib/Messages/MessageBoxTag.js +7 -1
- package/lib/MultidisciplinarySubject/List.js +4 -1
- package/lib/MyNdla/Resource/Folder.js +7 -1
- package/lib/MyNdla/Resource/FolderInput.js +10 -1
- package/lib/MyNdla/SettingsMenu.js +7 -1
- package/lib/NDLAFilm/AllMoviesAlphabetically.js +9 -3
- package/lib/NDLAFilm/CategorySelect.js +9 -2
- package/lib/NDLAFilm/FilmMovieList.js +9 -1
- package/lib/NDLAFilm/FilmSlideshow.js +12 -4
- package/lib/NDLAFilm/VisualElement.js +7 -1
- package/lib/Notion/ConceptNotion.js +6 -1
- package/lib/Notion/FigureNotion.js +6 -1
- package/lib/Notion/Notion.js +7 -1
- package/lib/Notion/NotionVisualElement.js +6 -1
- package/lib/RadioButtonGroup/RadioButtonGroup.js +10 -2
- package/lib/RelatedArticleList/RelatedArticleList.js +4 -2
- package/lib/RelatedArticleList/RelatedArticleV2.js +12 -3
- package/lib/Resource/BlockResource.js +7 -1
- package/lib/Resource/ListResource.js +7 -1
- package/lib/Resource/resourceComponents.js +7 -1
- package/lib/ResourceGroup/ResourceItem.js +7 -1
- package/lib/ResourceGroup/ResourceList.js +11 -1
- package/lib/ResourcesWrapper/ResourcesWrapper.js +11 -1
- package/lib/Search/ContentTypeResult.js +5 -3
- package/lib/Search/SearchField.js +10 -1
- package/lib/Search/SearchResult.js +3 -1
- package/lib/Search/SearchResultSleeve.js +8 -2
- package/lib/Search/ToggleSearchButton.js +11 -1
- package/lib/SearchTypeResult/ActiveFilterContent.js +7 -1
- package/lib/SearchTypeResult/ActiveFilters.js +7 -1
- package/lib/SearchTypeResult/PopupFilter.js +9 -3
- package/lib/SearchTypeResult/SearchFieldHeader.js +9 -3
- package/lib/SearchTypeResult/SearchFilterContent.js +7 -1
- package/lib/SearchTypeResult/SearchHeader.js +9 -3
- package/lib/SearchTypeResult/SearchItem.js +7 -1
- package/lib/SearchTypeResult/SearchItemList.js +7 -1
- package/lib/SearchTypeResult/SearchItems.js +7 -1
- package/lib/SearchTypeResult/SearchNotionItem.js +7 -1
- package/lib/SearchTypeResult/SearchSubjectItem.js +7 -1
- package/lib/SearchTypeResult/SearchTypeHeader.js +7 -1
- package/lib/SearchTypeResult/SearchTypeResult.js +9 -1
- package/lib/SearchTypeResult/SearchViewType.js +7 -1
- package/lib/SearchTypeResult/components/ItemContexts.js +7 -1
- package/lib/SearchTypeResult/components/ItemResourceHeader.js +7 -1
- package/lib/SearchTypeResult/components/ItemTopicHeader.js +7 -1
- package/lib/SearchTypeResult/components/SubjectFilters.js +12 -4
- package/lib/SnackBar/SnackbarProvider.js +12 -4
- package/lib/Table/Table.js +12 -4
- package/lib/TagSelector/Control.js +10 -1
- package/lib/TagSelector/DropdownIndicator.js +10 -2
- package/lib/TagSelector/Input.js +10 -1
- package/lib/TagSelector/Menu.js +11 -1
- package/lib/TagSelector/MenuList.js +10 -1
- package/lib/TagSelector/Option.js +10 -1
- package/lib/TagSelector/SelectContainer.js +10 -1
- package/lib/TagSelector/TagSelector.js +12 -4
- package/lib/TagSelector/ValueButton.js +10 -1
- package/lib/Topic/Topic.js +7 -1
- package/lib/Translation/Translation.js +10 -1
- package/lib/Translation/TranslationLine.js +10 -1
- package/lib/TreeStructure/AddFolderButton.js +7 -1
- package/lib/TreeStructure/FolderItem.js +60 -23
- package/lib/TreeStructure/FolderItems.js +11 -1
- package/lib/TreeStructure/TreeStructure.js +9 -3
- package/lib/TreeStructure/helperFunctions.js +4 -1
- package/lib/User/AuthModal.js +7 -1
- package/lib/User/UserInfo.js +8 -3
- package/lib/User/parseUserObject.js +12 -4
- package/lib/all.css +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +21 -0
- package/lib/locale/messages-en.d.ts +2 -0
- package/lib/locale/messages-en.js +12 -1
- package/lib/locale/messages-nb.d.ts +2 -0
- package/lib/locale/messages-nb.js +12 -1
- package/lib/locale/messages-nn.d.ts +2 -0
- package/lib/locale/messages-nn.js +12 -1
- package/lib/locale/messages-se.d.ts +2 -0
- package/lib/locale/messages-se.js +89 -78
- package/lib/locale/messages-sma.d.ts +2 -0
- package/lib/locale/messages-sma.js +12 -1
- package/lib/model/ContentType.js +4 -1
- package/package.json +16 -16
- package/src/BlogPost/BlogPost.stories.tsx +4 -3
- package/src/ContactBlock/ContactBlock.tsx +144 -0
- package/src/ContactBlock/Contactblock.stories.tsx +88 -0
- package/src/ContactBlock/index.ts +10 -0
- package/src/KeyPerformanceIndicator/KeyPerformanceIndicator.stories.tsx +79 -0
- package/src/KeyPerformanceIndicator/KeyPerformanceIndicator.tsx +66 -0
- package/src/KeyPerformanceIndicator/index.ts +9 -0
- package/src/LanguageSelector/LanguageSelector.stories.tsx +4 -3
- package/src/LetterFilter/LetterFilter.stories.tsx +4 -3
- package/src/MyNdla/Resource/Folder.stories.tsx +39 -0
- package/src/Resource/BlockResource.stories.tsx +52 -0
- package/src/Resource/Resource.stories.tsx +52 -0
- package/src/TreeStructure/FolderItem.tsx +39 -20
- package/src/index.ts +3 -0
- package/src/locale/messages-en.ts +2 -0
- package/src/locale/messages-nb.ts +2 -0
- package/src/locale/messages-nn.ts +2 -0
- package/src/locale/messages-se.ts +79 -77
- package/src/locale/messages-sma.ts +2 -0
- package/src/MyNdla/Resource/Folder.stories.mdx +0 -53
- package/src/Resource/BlockResource.stories.mdx +0 -58
- package/src/Resource/Resource.stories.mdx +0 -58
package/lib/Footer/FooterAuth.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
@@ -16,10 +17,18 @@ var _excluded = ["isAuthenticated", "user", "onAuthenticateClick"];
|
|
|
16
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
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; }
|
|
18
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; }
|
|
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; }
|
|
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); }
|
|
20
23
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
24
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
22
|
-
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)."; }
|
|
25
|
+
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
|
+
* Copyright (c) 2021-present, NDLA.
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
29
|
+
* LICENSE file in the root directory of this source tree.
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
23
32
|
var Wrapper = /*#__PURE__*/(0, _base["default"])("div", {
|
|
24
33
|
target: "e1gu6tps6",
|
|
25
34
|
label: "Wrapper"
|
|
@@ -23,7 +23,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
23
23
|
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); }
|
|
24
24
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
25
25
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
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++)
|
|
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
27
|
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
28
|
var StyledWrapper = /*#__PURE__*/(0, _base["default"])("nav", {
|
|
29
29
|
target: "e1kk5ejg6",
|
|
@@ -19,8 +19,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
19
19
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
20
20
|
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."); }
|
|
21
21
|
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); }
|
|
22
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
23
|
-
function _iterableToArrayLimit(arr, i) { var _i =
|
|
22
|
+
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; }
|
|
23
|
+
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; } }
|
|
24
24
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
25
25
|
var StyledWrapper = /*#__PURE__*/(0, _base["default"])("div", {
|
|
26
26
|
target: "e1kv3ghm2",
|
|
@@ -8,7 +8,13 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _react2 = require("@emotion/react");
|
|
9
9
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
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)."; }
|
|
11
|
+
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)."; } /**
|
|
12
|
+
* Copyright (c) 2019-present, NDLA.
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
12
18
|
var cssStyle = process.env.NODE_ENV === "production" ? {
|
|
13
19
|
name: "16ynim7-cssStyle",
|
|
14
20
|
styles: "position:relative;z-index:1;label:cssStyle;"
|
package/lib/Hero/Hero.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
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); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -13,11 +12,20 @@ var _excluded = ["hasImage"];
|
|
|
13
12
|
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); }
|
|
14
13
|
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; }
|
|
15
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
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); }
|
|
16
16
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
17
17
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
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; }
|
|
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
|
+
* Copyright (c) 2016-present, NDLA.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
21
29
|
var classes = new _reactBemHelper["default"]({
|
|
22
30
|
name: 'hero',
|
|
23
31
|
prefix: 'c-'
|
package/lib/Image/Image.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
@@ -13,10 +14,18 @@ var _excluded = ["alt", "src", "lazyLoad", "lazyLoadSrc", "crop", "focalPoint",
|
|
|
13
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
15
|
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; }
|
|
15
16
|
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; }
|
|
16
|
-
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; }
|
|
17
|
+
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; }
|
|
18
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
19
|
+
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
20
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
18
21
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
19
|
-
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)."; }
|
|
22
|
+
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)."; } /**
|
|
23
|
+
* Copyright (c) 2017-present, NDLA.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
20
29
|
var makeSrcQueryString = function makeSrcQueryString(width, crop, focalPoint) {
|
|
21
30
|
var widthParams = width && "width=".concat(width);
|
|
22
31
|
var cropParams = crop && "cropStartX=".concat(crop.startX, "&cropEndX=").concat(crop.endX, "&cropStartY=").concat(crop.startY, "&cropEndY=").concat(crop.endY);
|
package/lib/Image/ImageLink.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
@@ -12,10 +13,18 @@ var _excluded = ["src", "crop", "children"];
|
|
|
12
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
14
|
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; }
|
|
14
15
|
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; }
|
|
15
|
-
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; }
|
|
16
|
+
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; }
|
|
17
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
|
+
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); }
|
|
16
19
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
17
20
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
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)."; }
|
|
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)."; } /**
|
|
22
|
+
* Copyright (c) 2019-present, NDLA.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
19
28
|
var StyledLink = /*#__PURE__*/(0, _base["default"])("a", {
|
|
20
29
|
target: "eo3pjlm0",
|
|
21
30
|
label: "StyledLink"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
@@ -7,10 +8,19 @@ exports["default"] = void 0;
|
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
8
9
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
9
10
|
var _excluded = ["alt", "src", "srcSet", "lazyLoadSrc", "sizes"];
|
|
11
|
+
/**
|
|
12
|
+
* Copyright (c) 2017-present, NDLA.
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
10
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
19
|
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
20
|
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; }
|
|
21
|
+
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; }
|
|
22
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
23
|
+
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); }
|
|
14
24
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
15
25
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
16
26
|
// Lazyload image with lazysizes (https://github.com/aFarkas/lazysizes)
|
|
@@ -9,7 +9,13 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _core = require("@ndla/core");
|
|
10
10
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
-
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)."; }
|
|
12
|
+
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)."; } /*
|
|
13
|
+
* Copyright (c) 2022-present, NDLA.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
13
19
|
var InfoBlockWrapper = /*#__PURE__*/(0, _base["default"])("div", {
|
|
14
20
|
target: "eblg75e4",
|
|
15
21
|
label: "InfoBlockWrapper"
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IImageMetaInformationV3 } from '@ndla/types-backend/build/image-api';
|
|
2
|
+
interface Props {
|
|
3
|
+
image?: IImageMetaInformationV3;
|
|
4
|
+
title: string;
|
|
5
|
+
subTitle: string;
|
|
6
|
+
}
|
|
7
|
+
declare const KeyPerformanceIndicator: ({ image, title, subTitle }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default KeyPerformanceIndicator;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
|
+
var _core = require("@ndla/core");
|
|
9
|
+
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
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)."; } /*
|
|
12
|
+
* Copyright (c) 2023-present, NDLA.
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
var ContentWrapper = /*#__PURE__*/(0, _base["default"])("div", {
|
|
19
|
+
target: "e1wettez3",
|
|
20
|
+
label: "ContentWrapper"
|
|
21
|
+
})("display:flex;flex-direction:column;justify-content:center;align-items:center;padding:", _core.spacing.small, ";align-items:center;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIktleVBlcmZvcm1hbmNlSW5kaWNhdG9yLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFZaUMiLCJmaWxlIjoiS2V5UGVyZm9ybWFuY2VJbmRpY2F0b3IudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIENvcHlyaWdodCAoYykgMjAyMy1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXG4gKlxuICovXG5cbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGJyZWFrcG9pbnRzLCBjb2xvcnMsIGZvbnRzLCBtcSwgc3BhY2luZyB9IGZyb20gJ0BuZGxhL2NvcmUnO1xuaW1wb3J0IHsgSUltYWdlTWV0YUluZm9ybWF0aW9uVjMgfSBmcm9tICdAbmRsYS90eXBlcy1iYWNrZW5kL2J1aWxkL2ltYWdlLWFwaSc7XG5cbmNvbnN0IENvbnRlbnRXcmFwcGVyID0gc3R5bGVkLmRpdmBcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAganVzdGl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BweDtcbmA7XG5cbmludGVyZmFjZSBQcm9wcyB7XG4gIGltYWdlPzogSUltYWdlTWV0YUluZm9ybWF0aW9uVjM7XG4gIHRpdGxlOiBzdHJpbmc7XG4gIHN1YlRpdGxlOiBzdHJpbmc7XG59XG5cbmNvbnN0IEtleVBlcmZvcm1hbmNlSW5kaWNhdG9yID0gKHsgaW1hZ2UsIHRpdGxlLCBzdWJUaXRsZSB9OiBQcm9wcykgPT4ge1xuICByZXR1cm4gKFxuICAgIDxDb250ZW50V3JhcHBlcj5cbiAgICAgIDxTdHlsZWRJbWFnZSBzcmM9e2ltYWdlPy5pbWFnZS5pbWFnZVVybH0gYWx0PXtpbWFnZT8uYWx0dGV4dC5hbHR0ZXh0fSAvPlxuICAgICAgPFRpdGxlV3JhcHBlcj57dGl0bGV9PC9UaXRsZVdyYXBwZXI+XG4gICAgICA8U3ViVGl0bGVXcmFwcGVyPntzdWJUaXRsZX08L1N1YlRpdGxlV3JhcHBlcj5cbiAgICA8L0NvbnRlbnRXcmFwcGVyPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgS2V5UGVyZm9ybWFuY2VJbmRpY2F0b3I7XG4iXX0= */"));
|
|
22
|
+
var StyledImage = /*#__PURE__*/(0, _base["default"])("img", {
|
|
23
|
+
target: "e1wettez2",
|
|
24
|
+
label: "StyledImage"
|
|
25
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
26
|
+
name: "92hyw0",
|
|
27
|
+
styles: "max-width:150px"
|
|
28
|
+
} : {
|
|
29
|
+
name: "92hyw0",
|
|
30
|
+
styles: "max-width:150px",
|
|
31
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIktleVBlcmZvcm1hbmNlSW5kaWNhdG9yLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFxQjhCIiwiZmlsZSI6IktleVBlcmZvcm1hbmNlSW5kaWNhdG9yLnRzeCIsIn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PlxuICAgICAgPFN1YlRpdGxlV3JhcHBlcj57c3ViVGl0bGV9PC9TdWJUaXRsZVdyYXBwZXI+XG4gICAgPC9Db250ZW50V3JhcHBlcj5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEtleVBlcmZvcm1hbmNlSW5kaWNhdG9yO1xuIl19 */",
|
|
32
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
33
|
+
});
|
|
34
|
+
var TitleWrapper = /*#__PURE__*/(0, _base["default"])("div", {
|
|
35
|
+
target: "e1wettez1",
|
|
36
|
+
label: "TitleWrapper"
|
|
37
|
+
})("color:", _core.colors.text.primary, ";font-family:", _core.fonts.sans, ";font-weight:", _core.fonts.weight.bold, ";overflow-wrap:break-word;", _core.fonts.sizes('38px', '48px'), ";", _core.mq.range({
|
|
38
|
+
until: _core.breakpoints.tabletWide
|
|
39
|
+
}), "{", _core.fonts.sizes('30px', '36px'), ";}max-width:240px;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIktleVBlcmZvcm1hbmNlSW5kaWNhdG9yLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5QitCIiwiZmlsZSI6IktleVBlcmZvcm1hbmNlSW5kaWNhdG9yLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBDb3B5cmlnaHQgKGMpIDIwMjMtcHJlc2VudCwgTkRMQS5cbiAqXG4gKiBUaGlzIHNvdXJjZSBjb2RlIGlzIGxpY2Vuc2VkIHVuZGVyIHRoZSBHUEx2MyBsaWNlbnNlIGZvdW5kIGluIHRoZVxuICogTElDRU5TRSBmaWxlIGluIHRoZSByb290IGRpcmVjdG9yeSBvZiB0aGlzIHNvdXJjZSB0cmVlLlxuICpcbiAqL1xuXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBv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FibGV0V2lkZSB9KX0ge1xuICAgIHBhZGRpbmctdG9wOiAke3NwYWNpbmcueHhzbWFsbH07XG4gICAgJHtmb250cy5zaXplcygnMThweCcsICcyOXB4Jyl9O1xuICAgIGNvbG9yOiAke2NvbG9ycy50ZXh0LnByaW1hcnl9O1xuICAgIGZvbnQtd2VpZ2h0OiAke2ZvbnRzLndlaWdodC5ub3JtYWx9O1xuICAgIGZvbnQtZmFtaWx5OiAke2ZvbnRzLnNhbnN9O1xuICB9XG4gIG1heC13aWR0aDogMjQwcHg7XG5gO1xuXG5pbnRlcmZhY2UgUHJvcHMge1xuICBpbWFnZT86IElJbWFnZU1ldGFJbmZvcm1hdGlvblYzO1xuICB0aXRsZTogc3RyaW5nO1xuICBzdWJUaXRsZTogc3RyaW5nO1xufVxuXG5jb25zdCBLZXlQZXJmb3JtYW5jZUluZGljYXRvciA9ICh7IGltYWdlLCB0aXRsZSwgc3ViVGl0bGUgfTogUHJvcHMpID0+IHtcbiAgcmV0dXJuIChcbiAgICA8Q29udGVudFdyYXBwZXI+XG4gICAgICA8U3R5bGVkSW1hZ2Ugc3JjPXtpbWFnZT8uaW1hZ2UuaW1hZ2VVcmx9IGFsdD17aW1hZ2U/LmFsdHRleHQuYWx0dGV4dH0gLz5cbiAgICAgIDxUaXRsZVdyYXBwZXI+e3RpdGxlfTwvVGl0bGVXcmFwcGVyPlxuICAgICAgPFN1YlRpdGxlV3JhcHBlcj57c3ViVGl0bGV9PC9TdWJUaXRsZVdyYXBwZXI+XG4gICAgPC9Db250ZW50V3JhcHBlcj5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEtleVBlcmZvcm1hbmNlSW5kaWNhdG9yO1xuIl19 */"));
|
|
40
|
+
var SubTitleWrapper = /*#__PURE__*/(0, _base["default"])("div", {
|
|
41
|
+
target: "e1wettez0",
|
|
42
|
+
label: "SubTitleWrapper"
|
|
43
|
+
})("overflow-wrap:'break-word';", _core.mq.range({
|
|
44
|
+
until: _core.breakpoints.tabletWide
|
|
45
|
+
}), "{padding-top:", _core.spacing.xxsmall, ";", _core.fonts.sizes('18px', '29px'), ";color:", _core.colors.text.primary, ";font-weight:", _core.fonts.weight.normal, ";font-family:", _core.fonts.sans, ";}max-width:240px;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIktleVBlcmZvcm1hbmNlSW5kaWNhdG9yLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFxQ2tDIiwiZmlsZSI6IktleVBlcmZvcm1hbmNlSW5kaWNhdG9yLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBDb3B5cmlnaHQgKGMpIDIwMjMtcHJlc2VudCwgTkRMQS5cbiAqXG4gKiBUaGlzIHNvdXJjZSBjb2RlIGlzIGxpY2Vuc2VkIHVuZGVyIHRoZSBHUEx2MyBsaWNlbnNlIGZvdW5kIGluIHRoZVxuICogTElDRU5TRSBmaWxlIGluIHRoZSByb290IGRpcmVjdG9yeSBvZiB0aGlzIHNvdXJjZSB0cmVlLlxuICpcbiAqL1xuXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBicmVha3BvaW50cywgY29sb3JzLCBmb250cywgbXEsIHNwYWNpbmcgfSBmcm9tICdAbmRsYS9jb3JlJztcbmltcG9ydCB7IElJbWFnZU1ldGFJbmZvcm1hdGlvblYzIH0gZnJvbSAnQG5kbGEvdHlwZXMtYmFja2VuZC9idWlsZC9pbWFnZS1hcGknO1xuXG5jb25zdCBDb250ZW50V3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gIGRpc3BsYXk6IGZsZXg7XG4gIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBwYWRkaW5nOiAke3N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XRsZTogc3RyaW5nO1xuICBzdWJUaXRsZTogc3RyaW5nO1xufVxuXG5jb25zdCBLZXlQZXJmb3JtYW5jZUluZGljYXRvciA9ICh7IGltYWdlLCB0aXRsZSwgc3ViVGl0bGUgfTogUHJvcHMpID0+IHtcbiAgcmV0dXJuIChcbiAgICA8Q29udGVudFdyYXBwZXI+XG4gICAgICA8U3R5bGVkSW1hZ2Ugc3JjPXtpbWFnZT8uaW1hZ2UuaW1hZ2VVcmx9IGFsdD17aW1hZ2U/LmFsdHRleHQuYWx0dGV4dH0gLz5cbiAgICAgIDxUaXRsZVdyYXBwZXI+e3RpdGxlfTwvVGl0bGVXcmFwcGVyPlxuICAgICAgPFN1YlRpdGxlV3JhcHBlcj57c3ViVGl0bGV9PC9TdWJUaXRsZVdyYXBwZXI+XG4gICAgPC9Db250ZW50V3JhcHBlcj5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEtleVBlcmZvcm1hbmNlSW5kaWNhdG9yO1xuIl19 */"));
|
|
46
|
+
var KeyPerformanceIndicator = function KeyPerformanceIndicator(_ref) {
|
|
47
|
+
var image = _ref.image,
|
|
48
|
+
title = _ref.title,
|
|
49
|
+
subTitle = _ref.subTitle;
|
|
50
|
+
return (0, _jsxRuntime.jsxs)(ContentWrapper, {
|
|
51
|
+
children: [(0, _jsxRuntime.jsx)(StyledImage, {
|
|
52
|
+
src: image === null || image === void 0 ? void 0 : image.image.imageUrl,
|
|
53
|
+
alt: image === null || image === void 0 ? void 0 : image.alttext.alttext
|
|
54
|
+
}), (0, _jsxRuntime.jsx)(TitleWrapper, {
|
|
55
|
+
children: title
|
|
56
|
+
}), (0, _jsxRuntime.jsx)(SubTitleWrapper, {
|
|
57
|
+
children: subTitle
|
|
58
|
+
})]
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
var _default = KeyPerformanceIndicator;
|
|
62
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as KeyPerformanceIndicator } from './KeyPerformanceIndicator';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "KeyPerformanceIndicator", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _KeyPerformanceIndicator["default"];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _KeyPerformanceIndicator = _interopRequireDefault(require("./KeyPerformanceIndicator"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -13,7 +13,13 @@ var _common = require("@ndla/icons/common");
|
|
|
13
13
|
var _core = require("@ndla/core");
|
|
14
14
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
|
-
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
|
+
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)."; } /**
|
|
17
|
+
* Copyright (c) 2022-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
|
+
*/
|
|
17
23
|
var PopoverContent = /*#__PURE__*/(0, _base["default"])(_reactDropdownMenu.Content, {
|
|
18
24
|
target: "e11qxfkm4",
|
|
19
25
|
label: "PopoverContent"
|
|
@@ -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) 2016-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 = new _reactBemHelper["default"]({
|
|
15
24
|
name: 'container',
|
|
16
25
|
prefix: 'o-'
|
|
@@ -13,7 +13,13 @@ var _core = require("@ndla/core");
|
|
|
13
13
|
var _index = require("../index");
|
|
14
14
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
|
-
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
|
+
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)."; } /**
|
|
17
|
+
* Copyright (c) 2019-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
|
+
*/
|
|
17
23
|
var StyledHeader = /*#__PURE__*/(0, _base["default"])("h1", {
|
|
18
24
|
target: "eqtnnjc2",
|
|
19
25
|
label: "StyledHeader"
|
|
@@ -24,9 +24,15 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
24
24
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
25
25
|
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."); }
|
|
26
26
|
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); }
|
|
27
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
28
|
-
function _iterableToArrayLimit(arr, i) { var _i =
|
|
29
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
|
+
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; }
|
|
28
|
+
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; } }
|
|
29
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**
|
|
30
|
+
* Copyright (c) 2019-present, NDLA.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
30
36
|
var SIDE_NAV_WIDTH = '372px';
|
|
31
37
|
var StyledMenu = /*#__PURE__*/(0, _base["default"])("div", {
|
|
32
38
|
target: "el16bnp1",
|
|
@@ -11,7 +11,13 @@ var _reactI18next = require("react-i18next");
|
|
|
11
11
|
var _core = require("@ndla/core");
|
|
12
12
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
-
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)."; }
|
|
14
|
+
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
|
+
* Copyright (c) 2019-present, NDLA.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
15
21
|
var StyledInfoHeader = /*#__PURE__*/(0, _base["default"])("p", {
|
|
16
22
|
target: "e1usg8db3",
|
|
17
23
|
label: "StyledInfoHeader"
|
package/lib/Logo/Logo.js
CHANGED
|
@@ -10,9 +10,18 @@ var _safelink = _interopRequireDefault(require("@ndla/safelink"));
|
|
|
10
10
|
var _SvgLogo = _interopRequireDefault(require("./SvgLogo"));
|
|
11
11
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
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); }
|
|
13
14
|
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; }
|
|
14
15
|
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; }
|
|
15
|
-
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; }
|
|
16
|
+
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; }
|
|
17
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
|
+
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); } /**
|
|
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
|
+
*/ /* eslint-disable max-len */
|
|
16
25
|
var logoClasses = new _reactBemHelper["default"]({
|
|
17
26
|
name: 'logo',
|
|
18
27
|
prefix: 'c-'
|
package/lib/Logo/SvgLogo.js
CHANGED
|
@@ -8,9 +8,18 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _Logo = require("./Logo");
|
|
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) 2016-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
|
+
*/ /* eslint-disable max-len */
|
|
14
23
|
var LogoText = function LogoText(locale) {
|
|
15
24
|
if (locale === 'en') {
|
|
16
25
|
return (0, _jsxRuntime.jsx)("path", {
|
package/lib/Masthead/Masthead.js
CHANGED
|
@@ -12,7 +12,13 @@ var _Messages = require("../Messages");
|
|
|
12
12
|
var _SkipToMainContent = _interopRequireDefault(require("./SkipToMainContent"));
|
|
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) 2016-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 LeftMastheadItem = /*#__PURE__*/(0, _base["default"])("div", {
|
|
17
23
|
target: "e18nenqf3",
|
|
18
24
|
label: "LeftMastheadItem"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
@@ -13,10 +14,19 @@ var _reactI18next = require("react-i18next");
|
|
|
13
14
|
var _AuthModal = _interopRequireDefault(require("../User/AuthModal"));
|
|
14
15
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
15
16
|
var _excluded = ["inverted"];
|
|
17
|
+
/**
|
|
18
|
+
* Copyright (c) 2021-present, NDLA.
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
21
|
+
* LICENSE file in the root directory of this source tree.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
16
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
25
|
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
26
|
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; }
|
|
27
|
+
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; }
|
|
28
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
29
|
+
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
30
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
31
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
22
32
|
var StyledButton = /*#__PURE__*/(0, _base["default"])(_button.ButtonV2, {
|