@ndla/ui 33.2.0 → 33.3.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 (108) hide show
  1. package/es/Animation/DisplayOnPageYOffset.js +0 -6
  2. package/es/Article/ArticleHeaderWrapper.js +14 -56
  3. package/es/Aside/Aside.js +0 -9
  4. package/es/ContentTypeBadge/ContentTypeBadge.js +0 -10
  5. package/es/CopyParagraphButton/CopyParagraphButton.js +3 -3
  6. package/es/Figure/FigureLicenseDialog.js +1 -1
  7. package/es/Layout/Content.js +0 -4
  8. package/es/Layout/LayoutItem.js +0 -5
  9. package/es/Layout/OneColumn.js +0 -9
  10. package/es/Layout/PageContainer.js +0 -13
  11. package/es/LearningPaths/LearningPathSticky.js +3 -7
  12. package/es/Programme/Programme.js +6 -8
  13. package/es/Programme/ProgrammeSubjects.js +22 -20
  14. package/es/Table/Table.js +5 -31
  15. package/es/TopicMenu/SubtopicLinkList.js +5 -33
  16. package/es/TopicMenu/TopicMenu.js +1 -51
  17. package/es/TopicMenu/TopicMenuButton.js +1 -6
  18. package/es/all.css +1 -1
  19. package/es/locale/messages-en.js +7 -2
  20. package/es/locale/messages-nb.js +7 -2
  21. package/es/locale/messages-nn.js +7 -2
  22. package/es/locale/messages-se.js +7 -2
  23. package/es/locale/messages-sma.js +7 -2
  24. package/lib/Animation/DisplayOnPageYOffset.d.ts +0 -6
  25. package/lib/Animation/DisplayOnPageYOffset.js +0 -6
  26. package/lib/Article/ArticleHeaderWrapper.d.ts +0 -5
  27. package/lib/Article/ArticleHeaderWrapper.js +15 -58
  28. package/lib/Aside/Aside.d.ts +1 -12
  29. package/lib/Aside/Aside.js +0 -9
  30. package/lib/ContentTypeBadge/ContentTypeBadge.d.ts +0 -8
  31. package/lib/ContentTypeBadge/ContentTypeBadge.js +0 -9
  32. package/lib/CopyParagraphButton/CopyParagraphButton.js +3 -3
  33. package/lib/Figure/FigureLicenseDialog.js +1 -1
  34. package/lib/Layout/Content.d.ts +1 -7
  35. package/lib/Layout/Content.js +0 -4
  36. package/lib/Layout/LayoutItem.d.ts +1 -8
  37. package/lib/Layout/LayoutItem.js +0 -5
  38. package/lib/Layout/OneColumn.d.ts +1 -12
  39. package/lib/Layout/OneColumn.js +0 -9
  40. package/lib/Layout/PageContainer.d.ts +1 -16
  41. package/lib/Layout/PageContainer.js +0 -13
  42. package/lib/LearningPaths/LearningPathSticky.d.ts +1 -7
  43. package/lib/LearningPaths/LearningPathSticky.js +3 -7
  44. package/lib/Programme/Programme.d.ts +1 -1
  45. package/lib/Programme/Programme.js +6 -8
  46. package/lib/Programme/ProgrammeSubjects.d.ts +1 -2
  47. package/lib/Programme/ProgrammeSubjects.js +24 -19
  48. package/lib/Table/Table.d.ts +1 -5
  49. package/lib/Table/Table.js +5 -31
  50. package/lib/TopicMenu/SubtopicLinkList.js +5 -33
  51. package/lib/TopicMenu/TopicMenu.js +1 -51
  52. package/lib/TopicMenu/TopicMenuButton.js +1 -6
  53. package/lib/all.css +1 -1
  54. package/lib/locale/messages-en.d.ts +5 -0
  55. package/lib/locale/messages-en.js +7 -2
  56. package/lib/locale/messages-nb.d.ts +5 -0
  57. package/lib/locale/messages-nb.js +7 -2
  58. package/lib/locale/messages-nn.d.ts +5 -0
  59. package/lib/locale/messages-nn.js +7 -2
  60. package/lib/locale/messages-se.d.ts +5 -0
  61. package/lib/locale/messages-se.js +7 -2
  62. package/lib/locale/messages-sma.d.ts +5 -0
  63. package/lib/locale/messages-sma.js +7 -2
  64. package/package.json +19 -20
  65. package/src/Animation/DisplayOnPageYOffset.tsx +0 -6
  66. package/src/Article/ArticleHeaderWrapper.tsx +5 -57
  67. package/src/Aside/Aside.tsx +0 -10
  68. package/src/ContentTypeBadge/ContentTypeBadge.tsx +0 -11
  69. package/src/CopyParagraphButton/CopyParagraphButton.tsx +1 -1
  70. package/src/Figure/FigureLicenseDialog.tsx +2 -2
  71. package/src/Layout/Content.tsx +0 -5
  72. package/src/Layout/LayoutItem.tsx +0 -6
  73. package/src/Layout/OneColumn.tsx +0 -10
  74. package/src/Layout/PageContainer.tsx +0 -15
  75. package/src/LearningPaths/LearningPathSticky.tsx +0 -5
  76. package/src/Programme/Programme.tsx +2 -10
  77. package/src/Programme/ProgrammeSubjects.tsx +31 -27
  78. package/src/Table/Table.tsx +2 -35
  79. package/src/Table/component.tables.scss +0 -33
  80. package/src/TopicMenu/SubtopicLinkList.jsx +0 -30
  81. package/src/TopicMenu/TopicMenu.jsx +0 -70
  82. package/src/TopicMenu/TopicMenuButton.jsx +0 -6
  83. package/src/locale/messages-en.ts +5 -0
  84. package/src/locale/messages-nb.ts +5 -0
  85. package/src/locale/messages-nn.ts +5 -0
  86. package/src/locale/messages-se.ts +5 -0
  87. package/src/locale/messages-sma.ts +5 -0
  88. package/src/main.scss +0 -1
  89. package/es/internal-icons/Book.js +0 -29
  90. package/es/internal-icons/Download.js +0 -28
  91. package/es/internal-icons/Embed.js +0 -26
  92. package/es/internal-icons/InsertTemplate.js +0 -29
  93. package/es/internal-icons/OpenWindow.js +0 -26
  94. package/es/shapes.js +0 -75
  95. package/lib/internal-icons/Book.js +0 -37
  96. package/lib/internal-icons/Download.js +0 -36
  97. package/lib/internal-icons/Embed.js +0 -34
  98. package/lib/internal-icons/InsertTemplate.js +0 -37
  99. package/lib/internal-icons/OpenWindow.js +0 -34
  100. package/lib/shapes.js +0 -96
  101. package/src/global/components/component.source-list.scss +0 -16
  102. package/src/internal-icons/Book.jsx +0 -22
  103. package/src/internal-icons/Download.jsx +0 -25
  104. package/src/internal-icons/Embed.jsx +0 -22
  105. package/src/internal-icons/InsertTemplate.jsx +0 -28
  106. package/src/internal-icons/OpenWindow.jsx +0 -22
  107. package/src/internal-icons/close.svg +0 -7
  108. package/src/shapes.js +0 -101
package/es/shapes.js DELETED
@@ -1,75 +0,0 @@
1
- /**
2
- * Copyright (c) 2017-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
-
9
- import PropTypes from 'prop-types';
10
- import * as contentTypes from './model/ContentType';
11
- export var LicenseRightShape = PropTypes.shape({
12
- "short": PropTypes.string.isRequired,
13
- title: PropTypes.string.isRequired,
14
- userFriendlyTitle: PropTypes.string.isRequired,
15
- description: PropTypes.string.isRequired
16
- });
17
- export var LicenseShape = PropTypes.shape({
18
- "short": PropTypes.string.isRequired,
19
- title: PropTypes.string.isRequired,
20
- userFriendlyTitle: PropTypes.string.isRequired,
21
- description: PropTypes.string.isRequired,
22
- rights: PropTypes.arrayOf(PropTypes.string).isRequired
23
- });
24
- export var SubjectShape = PropTypes.shape({
25
- id: PropTypes.string.isRequired,
26
- name: PropTypes.string.isRequired
27
- });
28
- export var TopicShape = PropTypes.shape({
29
- id: PropTypes.string.isRequired,
30
- name: PropTypes.string.isRequired,
31
- subtopics: PropTypes.array
32
- });
33
- export var FootNoteShape = PropTypes.shape({
34
- ref: PropTypes.number.isRequired,
35
- title: PropTypes.string.isRequired,
36
- year: PropTypes.string.isRequired,
37
- authors: PropTypes.arrayOf(PropTypes.string).isRequired,
38
- edition: PropTypes.string,
39
- publisher: PropTypes.string,
40
- url: PropTypes.string
41
- });
42
- export var ContributorShape = PropTypes.shape({
43
- type: PropTypes.string.isRequired,
44
- name: PropTypes.string.isRequired
45
- });
46
- export var ArticleShape = PropTypes.shape({
47
- title: PropTypes.string.isRequired,
48
- content: PropTypes.oneOf([PropTypes.string, PropTypes.elementType]).isRequired,
49
- copyright: PropTypes.shape({
50
- authors: PropTypes.array,
51
- creators: PropTypes.arrayOf(ContributorShape)
52
- }).isRequired,
53
- published: PropTypes.string.isRequired
54
- });
55
- export var ResourceShape = PropTypes.shape({
56
- id: PropTypes.string.isRequired,
57
- name: PropTypes.string.isRequired,
58
- contentUri: PropTypes.string,
59
- primary: PropTypes.bool,
60
- contentType: PropTypes.string,
61
- type: PropTypes.string
62
- });
63
- export var ContentTypeShape = PropTypes.oneOf([contentTypes.SUBJECT_MATERIAL, contentTypes.TASKS_AND_ACTIVITIES, contentTypes.ASSESSMENT_RESOURCES, contentTypes.SUBJECT, contentTypes.EXTERNAL_LEARNING_RESOURCES, contentTypes.SOURCE_MATERIAL, contentTypes.LEARNING_PATH, contentTypes.TOPIC, contentTypes.MULTIDISCIPLINARY_TOPIC, 'beta', 'ndla-film', 'ndla-film has-image']);
64
- export var ContentTypeResultShape = PropTypes.shape({
65
- title: PropTypes.string.isRequired,
66
- resources: PropTypes.arrayOf(PropTypes.shape({
67
- path: PropTypes.string.isRequired,
68
- name: PropTypes.string.isRequired
69
- }))
70
- });
71
- export var CompetenceGoalShape = PropTypes.shape({
72
- id: PropTypes.string.isRequired,
73
- name: PropTypes.string.isRequired,
74
- url: PropTypes.string
75
- });
@@ -1,37 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _jsxRuntime = require("@emotion/react/jsx-runtime");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
- /**
12
- * Copyright (c) 2016-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
-
19
- var Book = function Book(_ref) {
20
- var className = _ref.className;
21
- return (0, _jsxRuntime.jsx)("svg", {
22
- xmlns: "http://www.w3.org/2000/svg",
23
- version: "1",
24
- width: "26",
25
- height: "26",
26
- viewBox: "0 0 26 26",
27
- className: className,
28
- children: (0, _jsxRuntime.jsx)("path", {
29
- d: "M 4 1 L 4 19 C 7.4 19 10 18.30625 12 19.90625 L 12 2.8125 C 10 1.0125 7.4 1 4 1 z M 22 1 C 18.6 1 16 1.0125 14 2.8125 L 14 19.90625 C 16 18.30625 18.6 19 22 19 L 22 1 z M 1 4 C 0.4 4 0 4.4 0 5 L 0 23 C 0 23.6 0.4 24 1 24 L 9.09375 24 C 10.09375 24 11.4 25.90625 13 25.90625 C 14.6 25.90625 15.90625 24 16.90625 24 L 25 24 C 25.6 24 26 23.6 26 23 L 26 5 C 26 4.4 25.6 4 25 4 L 24 4 L 24 19 C 24 20.5 23.5 21 22 21 L 17.6875 21 C 15.9875 21 15.2875 21.09375 14.6875 22.09375 C 14.2875 22.69375 13.7 23 13 23 C 12.3 23 11.7125 22.69375 11.3125 22.09375 C 10.7125 21.09375 9.9125 21 8.3125 21 L 4 21 C 2.5 21 2 20.4 2 19 L 2 4 L 1 4 z"
30
- })
31
- });
32
- };
33
- Book.propTypes = {
34
- className: _propTypes["default"].string.isRequired
35
- };
36
- var _default = Book;
37
- exports["default"] = _default;
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _jsxRuntime = require("@emotion/react/jsx-runtime");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
- /**
12
- * Copyright (c) 2016-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
-
19
- var Download = function Download(_ref) {
20
- var className = _ref.className;
21
- return (0, _jsxRuntime.jsx)("svg", {
22
- version: "1",
23
- xmlns: "http://www.w3.org/2000/svg",
24
- viewBox: "0 0 32 32",
25
- className: className,
26
- children: (0, _jsxRuntime.jsx)("path", {
27
- className: "path1",
28
- d: "M28 16h-5l-7 7-7-7h-5l-4 8v2h32v-2l-4-8zM0 28h32v2h-32v-2zM18 10v-8h-4v8h-7l9 9 9-9h-7z"
29
- })
30
- });
31
- };
32
- Download.propTypes = {
33
- className: _propTypes["default"].string.isRequired
34
- };
35
- var _default = Download;
36
- exports["default"] = _default;
@@ -1,34 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _jsxRuntime = require("@emotion/react/jsx-runtime");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
- /**
12
- * Copyright (c) 2016-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
-
19
- var Embed = function Embed(_ref) {
20
- var className = _ref.className;
21
- return (0, _jsxRuntime.jsx)("svg", {
22
- xmlns: "http://www.w3.org/2000/svg",
23
- viewBox: "0 0 50 50",
24
- className: className,
25
- children: (0, _jsxRuntime.jsx)("path", {
26
- d: "M 29.125 7.34375 L 17.125 41.34375 L 20.875 42.65625 L 32.875 8.65625 L 29.125 7.34375 z M 9.9375 13.375 L 1.25 23.71875 L 0.1875 25 L 1.25 26.28125 L 9.9375 36.65625 L 13.03125 34.09375 L 5.40625 25 L 13 15.9375 L 9.9375 13.375 z M 40.0625 13.375 L 37 15.9375 L 44.59375 25 L 37 34.0625 L 40.09375 36.625 L 48.71875 26.28125 L 49.78125 25 L 48.71875 23.71875 L 40.0625 13.375 z"
27
- })
28
- });
29
- };
30
- Embed.propTypes = {
31
- className: _propTypes["default"].string.isRequired
32
- };
33
- var _default = Embed;
34
- exports["default"] = _default;
@@ -1,37 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _jsxRuntime = require("@emotion/react/jsx-runtime");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
- /**
12
- * Copyright (c) 2016-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
-
19
- var InsertTemplate = function InsertTemplate(_ref) {
20
- var className = _ref.className;
21
- return (0, _jsxRuntime.jsx)("svg", {
22
- version: "1.1",
23
- xmlns: "http://www.w3.org/2000/svg",
24
- width: "32",
25
- height: "32",
26
- viewBox: "0 0 32 32",
27
- className: className,
28
- children: (0, _jsxRuntime.jsx)("path", {
29
- d: "M12 6h4v2h-4zM18 6h4v2h-4zM28 6v8h-6v-2h4v-4h-2v-2zM10 12h4v2h-4zM16 12h4v2h-4zM6 8v4h2v2h-4v-8h6v2zM12 18h4v2h-4zM18 18h4v2h-4zM28 18v8h-6v-2h4v-4h-2v-2zM10 24h4v2h-4zM16 24h4v2h-4zM6 20v4h2v2h-4v-8h6v2zM30 2h-28v28h28v-28zM32 0v0 32h-32v-32h32z"
30
- })
31
- });
32
- };
33
- InsertTemplate.propTypes = {
34
- className: _propTypes["default"].string.isRequired
35
- };
36
- var _default = InsertTemplate;
37
- exports["default"] = _default;
@@ -1,34 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _jsxRuntime = require("@emotion/react/jsx-runtime");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
- /**
12
- * Copyright (c) 2016-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
-
19
- var OpenWindow = function OpenWindow(_ref) {
20
- var className = _ref.className;
21
- return (0, _jsxRuntime.jsx)("svg", {
22
- xmlns: "http://www.w3.org/2000/svg",
23
- viewBox: "0 0 50 50",
24
- className: className,
25
- children: (0, _jsxRuntime.jsx)("path", {
26
- d: "M 7 7 C 5.3 7 4 8.3 4 10 L 4 38 L 6 36 L 6 15 L 44 15 L 44 40 C 44 40.6 43.6 41 43 41 L 11 41 L 9 43 L 43 43 C 44.7 43 46 41.7 46 40 L 46 10 C 46 8.3 44.7 7 43 7 L 7 7 z M 7 9 L 43 9 C 43.6 9 44 9.4 44 10 L 44 13 L 6 13 L 6 10 C 6 9.4 6.4 9 7 9 z M 8 10 C 7.4477153 10 7 10.447715 7 11 C 7 11.552285 7.4477153 12 8 12 C 8.5522847 12 9 11.552285 9 11 C 9 10.447715 8.5522847 10 8 10 z M 11 10 C 10.447715 10 10 10.447715 10 11 C 10 11.552285 10.447715 12 11 12 C 11.552285 12 12 11.552285 12 11 C 12 10.447715 11.552285 10 11 10 z M 14 10 C 13.447715 10 13 10.447715 13 11 C 13 11.552285 13.447715 12 14 12 C 14.552285 12 15 11.552285 15 11 C 15 10.447715 14.552285 10 14 10 z M 11 24 L 11 26 L 19.59375 26 L 4.09375 41.5 L 5.5 42.90625 L 21 27.40625 L 21 36 L 23 36 L 23 25 L 23 24 L 22 24 L 11 24 z"
27
- })
28
- });
29
- };
30
- OpenWindow.propTypes = {
31
- className: _propTypes["default"].string.isRequired
32
- };
33
- var _default = OpenWindow;
34
- exports["default"] = _default;
package/lib/shapes.js DELETED
@@ -1,96 +0,0 @@
1
- "use strict";
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
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.TopicShape = exports.SubjectShape = exports.ResourceShape = exports.LicenseShape = exports.LicenseRightShape = exports.FootNoteShape = exports.ContributorShape = exports.ContentTypeShape = exports.ContentTypeResultShape = exports.CompetenceGoalShape = exports.ArticleShape = void 0;
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var contentTypes = _interopRequireWildcard(require("./model/ContentType"));
10
- 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); }
11
- 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; }
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
- /**
14
- * Copyright (c) 2017-present, NDLA.
15
- *
16
- * This source code is licensed under the GPLv3 license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- *
19
- */
20
-
21
- var LicenseRightShape = _propTypes["default"].shape({
22
- "short": _propTypes["default"].string.isRequired,
23
- title: _propTypes["default"].string.isRequired,
24
- userFriendlyTitle: _propTypes["default"].string.isRequired,
25
- description: _propTypes["default"].string.isRequired
26
- });
27
- exports.LicenseRightShape = LicenseRightShape;
28
- var LicenseShape = _propTypes["default"].shape({
29
- "short": _propTypes["default"].string.isRequired,
30
- title: _propTypes["default"].string.isRequired,
31
- userFriendlyTitle: _propTypes["default"].string.isRequired,
32
- description: _propTypes["default"].string.isRequired,
33
- rights: _propTypes["default"].arrayOf(_propTypes["default"].string).isRequired
34
- });
35
- exports.LicenseShape = LicenseShape;
36
- var SubjectShape = _propTypes["default"].shape({
37
- id: _propTypes["default"].string.isRequired,
38
- name: _propTypes["default"].string.isRequired
39
- });
40
- exports.SubjectShape = SubjectShape;
41
- var TopicShape = _propTypes["default"].shape({
42
- id: _propTypes["default"].string.isRequired,
43
- name: _propTypes["default"].string.isRequired,
44
- subtopics: _propTypes["default"].array
45
- });
46
- exports.TopicShape = TopicShape;
47
- var FootNoteShape = _propTypes["default"].shape({
48
- ref: _propTypes["default"].number.isRequired,
49
- title: _propTypes["default"].string.isRequired,
50
- year: _propTypes["default"].string.isRequired,
51
- authors: _propTypes["default"].arrayOf(_propTypes["default"].string).isRequired,
52
- edition: _propTypes["default"].string,
53
- publisher: _propTypes["default"].string,
54
- url: _propTypes["default"].string
55
- });
56
- exports.FootNoteShape = FootNoteShape;
57
- var ContributorShape = _propTypes["default"].shape({
58
- type: _propTypes["default"].string.isRequired,
59
- name: _propTypes["default"].string.isRequired
60
- });
61
- exports.ContributorShape = ContributorShape;
62
- var ArticleShape = _propTypes["default"].shape({
63
- title: _propTypes["default"].string.isRequired,
64
- content: _propTypes["default"].oneOf([_propTypes["default"].string, _propTypes["default"].elementType]).isRequired,
65
- copyright: _propTypes["default"].shape({
66
- authors: _propTypes["default"].array,
67
- creators: _propTypes["default"].arrayOf(ContributorShape)
68
- }).isRequired,
69
- published: _propTypes["default"].string.isRequired
70
- });
71
- exports.ArticleShape = ArticleShape;
72
- var ResourceShape = _propTypes["default"].shape({
73
- id: _propTypes["default"].string.isRequired,
74
- name: _propTypes["default"].string.isRequired,
75
- contentUri: _propTypes["default"].string,
76
- primary: _propTypes["default"].bool,
77
- contentType: _propTypes["default"].string,
78
- type: _propTypes["default"].string
79
- });
80
- exports.ResourceShape = ResourceShape;
81
- var ContentTypeShape = _propTypes["default"].oneOf([contentTypes.SUBJECT_MATERIAL, contentTypes.TASKS_AND_ACTIVITIES, contentTypes.ASSESSMENT_RESOURCES, contentTypes.SUBJECT, contentTypes.EXTERNAL_LEARNING_RESOURCES, contentTypes.SOURCE_MATERIAL, contentTypes.LEARNING_PATH, contentTypes.TOPIC, contentTypes.MULTIDISCIPLINARY_TOPIC, 'beta', 'ndla-film', 'ndla-film has-image']);
82
- exports.ContentTypeShape = ContentTypeShape;
83
- var ContentTypeResultShape = _propTypes["default"].shape({
84
- title: _propTypes["default"].string.isRequired,
85
- resources: _propTypes["default"].arrayOf(_propTypes["default"].shape({
86
- path: _propTypes["default"].string.isRequired,
87
- name: _propTypes["default"].string.isRequired
88
- }))
89
- });
90
- exports.ContentTypeResultShape = ContentTypeResultShape;
91
- var CompetenceGoalShape = _propTypes["default"].shape({
92
- id: _propTypes["default"].string.isRequired,
93
- name: _propTypes["default"].string.isRequired,
94
- url: _propTypes["default"].string
95
- });
96
- exports.CompetenceGoalShape = CompetenceGoalShape;
@@ -1,16 +0,0 @@
1
- .c-source-list {
2
- display: flex;
3
- border-top: 1px solid $brand-color--tertiary;
4
- padding-top: $spacing--small;
5
- margin-top: $spacing--small;
6
- vertical-align: middle;
7
- align-items: center;
8
- }
9
- .c-source-list__item {
10
- display: flex;
11
- flex-direction: row;
12
- margin-right: $spacing--small;
13
- color: $brand-grey;
14
- fill: $brand-grey;
15
- @include inuit-font-size(15px);
16
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * Copyright (c) 2016-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
-
9
- import React from 'react';
10
- import PropTypes from 'prop-types';
11
-
12
- const Book = ({ className }) => (
13
- <svg xmlns="http://www.w3.org/2000/svg" version="1" width="26" height="26" viewBox="0 0 26 26" className={className}>
14
- <path d="M 4 1 L 4 19 C 7.4 19 10 18.30625 12 19.90625 L 12 2.8125 C 10 1.0125 7.4 1 4 1 z M 22 1 C 18.6 1 16 1.0125 14 2.8125 L 14 19.90625 C 16 18.30625 18.6 19 22 19 L 22 1 z M 1 4 C 0.4 4 0 4.4 0 5 L 0 23 C 0 23.6 0.4 24 1 24 L 9.09375 24 C 10.09375 24 11.4 25.90625 13 25.90625 C 14.6 25.90625 15.90625 24 16.90625 24 L 25 24 C 25.6 24 26 23.6 26 23 L 26 5 C 26 4.4 25.6 4 25 4 L 24 4 L 24 19 C 24 20.5 23.5 21 22 21 L 17.6875 21 C 15.9875 21 15.2875 21.09375 14.6875 22.09375 C 14.2875 22.69375 13.7 23 13 23 C 12.3 23 11.7125 22.69375 11.3125 22.09375 C 10.7125 21.09375 9.9125 21 8.3125 21 L 4 21 C 2.5 21 2 20.4 2 19 L 2 4 L 1 4 z" />
15
- </svg>
16
- );
17
-
18
- Book.propTypes = {
19
- className: PropTypes.string.isRequired,
20
- };
21
-
22
- export default Book;
@@ -1,25 +0,0 @@
1
- /**
2
- * Copyright (c) 2016-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
-
9
- import React from 'react';
10
- import PropTypes from 'prop-types';
11
-
12
- const Download = ({ className }) => (
13
- <svg version="1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" className={className}>
14
- <path
15
- className="path1"
16
- d="M28 16h-5l-7 7-7-7h-5l-4 8v2h32v-2l-4-8zM0 28h32v2h-32v-2zM18 10v-8h-4v8h-7l9 9 9-9h-7z"
17
- />
18
- </svg>
19
- );
20
-
21
- Download.propTypes = {
22
- className: PropTypes.string.isRequired,
23
- };
24
-
25
- export default Download;
@@ -1,22 +0,0 @@
1
- /**
2
- * Copyright (c) 2016-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
-
9
- import React from 'react';
10
- import PropTypes from 'prop-types';
11
-
12
- const Embed = ({ className }) => (
13
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" className={className}>
14
- <path d="M 29.125 7.34375 L 17.125 41.34375 L 20.875 42.65625 L 32.875 8.65625 L 29.125 7.34375 z M 9.9375 13.375 L 1.25 23.71875 L 0.1875 25 L 1.25 26.28125 L 9.9375 36.65625 L 13.03125 34.09375 L 5.40625 25 L 13 15.9375 L 9.9375 13.375 z M 40.0625 13.375 L 37 15.9375 L 44.59375 25 L 37 34.0625 L 40.09375 36.625 L 48.71875 26.28125 L 49.78125 25 L 48.71875 23.71875 L 40.0625 13.375 z" />
15
- </svg>
16
- );
17
-
18
- Embed.propTypes = {
19
- className: PropTypes.string.isRequired,
20
- };
21
-
22
- export default Embed;
@@ -1,28 +0,0 @@
1
- /**
2
- * Copyright (c) 2016-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
-
9
- import React from 'react';
10
- import PropTypes from 'prop-types';
11
-
12
- const InsertTemplate = ({ className }) => (
13
- <svg
14
- version="1.1"
15
- xmlns="http://www.w3.org/2000/svg"
16
- width="32"
17
- height="32"
18
- viewBox="0 0 32 32"
19
- className={className}>
20
- <path d="M12 6h4v2h-4zM18 6h4v2h-4zM28 6v8h-6v-2h4v-4h-2v-2zM10 12h4v2h-4zM16 12h4v2h-4zM6 8v4h2v2h-4v-8h6v2zM12 18h4v2h-4zM18 18h4v2h-4zM28 18v8h-6v-2h4v-4h-2v-2zM10 24h4v2h-4zM16 24h4v2h-4zM6 20v4h2v2h-4v-8h6v2zM30 2h-28v28h28v-28zM32 0v0 32h-32v-32h32z" />
21
- </svg>
22
- );
23
-
24
- InsertTemplate.propTypes = {
25
- className: PropTypes.string.isRequired,
26
- };
27
-
28
- export default InsertTemplate;
@@ -1,22 +0,0 @@
1
- /**
2
- * Copyright (c) 2016-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
-
9
- import React from 'react';
10
- import PropTypes from 'prop-types';
11
-
12
- const OpenWindow = ({ className }) => (
13
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" className={className}>
14
- <path d="M 7 7 C 5.3 7 4 8.3 4 10 L 4 38 L 6 36 L 6 15 L 44 15 L 44 40 C 44 40.6 43.6 41 43 41 L 11 41 L 9 43 L 43 43 C 44.7 43 46 41.7 46 40 L 46 10 C 46 8.3 44.7 7 43 7 L 7 7 z M 7 9 L 43 9 C 43.6 9 44 9.4 44 10 L 44 13 L 6 13 L 6 10 C 6 9.4 6.4 9 7 9 z M 8 10 C 7.4477153 10 7 10.447715 7 11 C 7 11.552285 7.4477153 12 8 12 C 8.5522847 12 9 11.552285 9 11 C 9 10.447715 8.5522847 10 8 10 z M 11 10 C 10.447715 10 10 10.447715 10 11 C 10 11.552285 10.447715 12 11 12 C 11.552285 12 12 11.552285 12 11 C 12 10.447715 11.552285 10 11 10 z M 14 10 C 13.447715 10 13 10.447715 13 11 C 13 11.552285 13.447715 12 14 12 C 14.552285 12 15 11.552285 15 11 C 15 10.447715 14.552285 10 14 10 z M 11 24 L 11 26 L 19.59375 26 L 4.09375 41.5 L 5.5 42.90625 L 21 27.40625 L 21 36 L 23 36 L 23 25 L 23 24 L 22 24 L 11 24 z" />
15
- </svg>
16
- );
17
-
18
- OpenWindow.propTypes = {
19
- className: PropTypes.string.isRequired,
20
- };
21
-
22
- export default OpenWindow;
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 20.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 14.7 12.6" style="enable-background:new 0 0 14.7 12.6;" xml:space="preserve">
5
- <line class="st0" x1="4.4" y1="3" x2="10.6" y2="9.2" stroke="black"/>
6
- <line class="st0" x1="10.6" y1="3" x2="4.4" y2="9.3" stroke="black"/>
7
- </svg>
package/src/shapes.js DELETED
@@ -1,101 +0,0 @@
1
- /**
2
- * Copyright (c) 2017-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
-
9
- import PropTypes from 'prop-types';
10
- import * as contentTypes from './model/ContentType';
11
-
12
- export const LicenseRightShape = PropTypes.shape({
13
- short: PropTypes.string.isRequired,
14
- title: PropTypes.string.isRequired,
15
- userFriendlyTitle: PropTypes.string.isRequired,
16
- description: PropTypes.string.isRequired,
17
- });
18
-
19
- export const LicenseShape = PropTypes.shape({
20
- short: PropTypes.string.isRequired,
21
- title: PropTypes.string.isRequired,
22
- userFriendlyTitle: PropTypes.string.isRequired,
23
- description: PropTypes.string.isRequired,
24
- rights: PropTypes.arrayOf(PropTypes.string).isRequired,
25
- });
26
-
27
- export const SubjectShape = PropTypes.shape({
28
- id: PropTypes.string.isRequired,
29
- name: PropTypes.string.isRequired,
30
- });
31
-
32
- export const TopicShape = PropTypes.shape({
33
- id: PropTypes.string.isRequired,
34
- name: PropTypes.string.isRequired,
35
- subtopics: PropTypes.array,
36
- });
37
-
38
- export const FootNoteShape = PropTypes.shape({
39
- ref: PropTypes.number.isRequired,
40
- title: PropTypes.string.isRequired,
41
- year: PropTypes.string.isRequired,
42
- authors: PropTypes.arrayOf(PropTypes.string).isRequired,
43
- edition: PropTypes.string,
44
- publisher: PropTypes.string,
45
- url: PropTypes.string,
46
- });
47
-
48
- export const ContributorShape = PropTypes.shape({
49
- type: PropTypes.string.isRequired,
50
- name: PropTypes.string.isRequired,
51
- });
52
-
53
- export const ArticleShape = PropTypes.shape({
54
- title: PropTypes.string.isRequired,
55
- content: PropTypes.oneOf([PropTypes.string, PropTypes.elementType]).isRequired,
56
- copyright: PropTypes.shape({
57
- authors: PropTypes.array,
58
- creators: PropTypes.arrayOf(ContributorShape),
59
- }).isRequired,
60
- published: PropTypes.string.isRequired,
61
- });
62
-
63
- export const ResourceShape = PropTypes.shape({
64
- id: PropTypes.string.isRequired,
65
- name: PropTypes.string.isRequired,
66
- contentUri: PropTypes.string,
67
- primary: PropTypes.bool,
68
- contentType: PropTypes.string,
69
- type: PropTypes.string,
70
- });
71
-
72
- export const ContentTypeShape = PropTypes.oneOf([
73
- contentTypes.SUBJECT_MATERIAL,
74
- contentTypes.TASKS_AND_ACTIVITIES,
75
- contentTypes.ASSESSMENT_RESOURCES,
76
- contentTypes.SUBJECT,
77
- contentTypes.EXTERNAL_LEARNING_RESOURCES,
78
- contentTypes.SOURCE_MATERIAL,
79
- contentTypes.LEARNING_PATH,
80
- contentTypes.TOPIC,
81
- contentTypes.MULTIDISCIPLINARY_TOPIC,
82
- 'beta',
83
- 'ndla-film',
84
- 'ndla-film has-image',
85
- ]);
86
-
87
- export const ContentTypeResultShape = PropTypes.shape({
88
- title: PropTypes.string.isRequired,
89
- resources: PropTypes.arrayOf(
90
- PropTypes.shape({
91
- path: PropTypes.string.isRequired,
92
- name: PropTypes.string.isRequired,
93
- }),
94
- ),
95
- });
96
-
97
- export const CompetenceGoalShape = PropTypes.shape({
98
- id: PropTypes.string.isRequired,
99
- name: PropTypes.string.isRequired,
100
- url: PropTypes.string,
101
- });