@ndla/ui 33.1.4 → 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.
- package/es/Animation/DisplayOnPageYOffset.js +0 -6
- package/es/Article/ArticleHeaderWrapper.js +14 -56
- package/es/Aside/Aside.js +0 -9
- package/es/ContentTypeBadge/ContentTypeBadge.js +0 -10
- package/es/CopyParagraphButton/CopyParagraphButton.js +3 -3
- package/es/Figure/FigureLicenseDialog.js +1 -1
- package/es/Layout/Content.js +0 -4
- package/es/Layout/LayoutItem.js +0 -5
- package/es/Layout/OneColumn.js +0 -9
- package/es/Layout/PageContainer.js +0 -13
- package/es/LearningPaths/LearningPathSticky.js +3 -7
- package/es/Programme/Programme.js +6 -8
- package/es/Programme/ProgrammeSubjects.js +22 -20
- package/es/Table/Table.js +5 -31
- package/es/TopicMenu/SubtopicLinkList.js +5 -33
- package/es/TopicMenu/TopicMenu.js +1 -51
- package/es/TopicMenu/TopicMenuButton.js +1 -6
- package/es/all.css +1 -1
- package/es/locale/messages-en.js +14 -2
- package/es/locale/messages-nb.js +14 -2
- package/es/locale/messages-nn.js +14 -2
- package/es/locale/messages-se.js +14 -2
- package/es/locale/messages-sma.js +14 -2
- package/lib/Animation/DisplayOnPageYOffset.d.ts +0 -6
- package/lib/Animation/DisplayOnPageYOffset.js +0 -6
- package/lib/Article/ArticleHeaderWrapper.d.ts +0 -5
- package/lib/Article/ArticleHeaderWrapper.js +15 -58
- package/lib/Aside/Aside.d.ts +1 -12
- package/lib/Aside/Aside.js +0 -9
- package/lib/ContentTypeBadge/ContentTypeBadge.d.ts +0 -8
- package/lib/ContentTypeBadge/ContentTypeBadge.js +0 -9
- package/lib/CopyParagraphButton/CopyParagraphButton.js +3 -3
- package/lib/Figure/FigureLicenseDialog.js +1 -1
- package/lib/Layout/Content.d.ts +1 -7
- package/lib/Layout/Content.js +0 -4
- package/lib/Layout/LayoutItem.d.ts +1 -8
- package/lib/Layout/LayoutItem.js +0 -5
- package/lib/Layout/OneColumn.d.ts +1 -12
- package/lib/Layout/OneColumn.js +0 -9
- package/lib/Layout/PageContainer.d.ts +1 -16
- package/lib/Layout/PageContainer.js +0 -13
- package/lib/LearningPaths/LearningPathSticky.d.ts +1 -7
- package/lib/LearningPaths/LearningPathSticky.js +3 -7
- package/lib/Programme/Programme.d.ts +1 -1
- package/lib/Programme/Programme.js +6 -8
- package/lib/Programme/ProgrammeSubjects.d.ts +1 -2
- package/lib/Programme/ProgrammeSubjects.js +24 -19
- package/lib/Table/Table.d.ts +1 -5
- package/lib/Table/Table.js +5 -31
- package/lib/TopicMenu/SubtopicLinkList.js +5 -33
- package/lib/TopicMenu/TopicMenu.js +1 -51
- package/lib/TopicMenu/TopicMenuButton.js +1 -6
- package/lib/all.css +1 -1
- package/lib/locale/messages-en.d.ts +12 -0
- package/lib/locale/messages-en.js +14 -2
- package/lib/locale/messages-nb.d.ts +12 -0
- package/lib/locale/messages-nb.js +14 -2
- package/lib/locale/messages-nn.d.ts +12 -0
- package/lib/locale/messages-nn.js +14 -2
- package/lib/locale/messages-se.d.ts +12 -0
- package/lib/locale/messages-se.js +14 -2
- package/lib/locale/messages-sma.d.ts +12 -0
- package/lib/locale/messages-sma.js +14 -2
- package/package.json +19 -20
- package/src/Animation/DisplayOnPageYOffset.tsx +0 -6
- package/src/Article/ArticleHeaderWrapper.tsx +5 -57
- package/src/Aside/Aside.tsx +0 -10
- package/src/ContentTypeBadge/ContentTypeBadge.tsx +0 -11
- package/src/CopyParagraphButton/CopyParagraphButton.tsx +1 -1
- package/src/Figure/FigureLicenseDialog.tsx +2 -2
- package/src/Layout/Content.tsx +0 -5
- package/src/Layout/LayoutItem.tsx +0 -6
- package/src/Layout/OneColumn.tsx +0 -10
- package/src/Layout/PageContainer.tsx +0 -15
- package/src/LearningPaths/LearningPathSticky.tsx +0 -5
- package/src/Programme/Programme.tsx +2 -10
- package/src/Programme/ProgrammeSubjects.tsx +31 -27
- package/src/Table/Table.tsx +2 -35
- package/src/Table/component.tables.scss +0 -33
- package/src/TopicMenu/SubtopicLinkList.jsx +0 -30
- package/src/TopicMenu/TopicMenu.jsx +0 -70
- package/src/TopicMenu/TopicMenuButton.jsx +0 -6
- package/src/locale/messages-en.ts +12 -0
- package/src/locale/messages-nb.ts +12 -0
- package/src/locale/messages-nn.ts +12 -0
- package/src/locale/messages-se.ts +12 -0
- package/src/locale/messages-sma.ts +12 -0
- package/src/main.scss +0 -1
- package/es/internal-icons/Book.js +0 -29
- package/es/internal-icons/Download.js +0 -28
- package/es/internal-icons/Embed.js +0 -26
- package/es/internal-icons/InsertTemplate.js +0 -29
- package/es/internal-icons/OpenWindow.js +0 -26
- package/es/shapes.js +0 -75
- package/lib/internal-icons/Book.js +0 -37
- package/lib/internal-icons/Download.js +0 -36
- package/lib/internal-icons/Embed.js +0 -34
- package/lib/internal-icons/InsertTemplate.js +0 -37
- package/lib/internal-icons/OpenWindow.js +0 -34
- package/lib/shapes.js +0 -96
- package/src/global/components/component.source-list.scss +0 -16
- package/src/internal-icons/Book.jsx +0 -22
- package/src/internal-icons/Download.jsx +0 -25
- package/src/internal-icons/Embed.jsx +0 -22
- package/src/internal-icons/InsertTemplate.jsx +0 -28
- package/src/internal-icons/OpenWindow.jsx +0 -22
- package/src/internal-icons/close.svg +0 -7
- package/src/shapes.js +0 -101
|
@@ -252,8 +252,15 @@ const messages = {
|
|
|
252
252
|
archived: 'Dette er et utgått fag som ikke vedlikeholdes.',
|
|
253
253
|
},
|
|
254
254
|
subjectsPage: {
|
|
255
|
+
allSubjects: 'Alle fag',
|
|
255
256
|
errorDescription: 'Beklager, en feil oppstod under lasting av fagene.',
|
|
256
257
|
chooseSubject: 'Velg fag',
|
|
258
|
+
confirmRemove: 'Er du sikker på at du vil fjerne {{subject}} fra favorittfag?',
|
|
259
|
+
addFavorite: 'Legg til favorittfag',
|
|
260
|
+
removeFavorite: 'Fjern favorittfag',
|
|
261
|
+
removeConfirmed: '{{subject}} er fjernet fra favorittfag',
|
|
262
|
+
addConfirmed: '{{subject}} er lagt til som favorittfag',
|
|
263
|
+
shows: 'Viser',
|
|
257
264
|
},
|
|
258
265
|
topicPage: {
|
|
259
266
|
articleErrorDescription: 'Beklager, en feil oppstod under lasting av emnebeskrivelsen.',
|
|
@@ -845,6 +852,7 @@ const messages = {
|
|
|
845
852
|
searching: 'Søker...',
|
|
846
853
|
create: 'Opprett ny',
|
|
847
854
|
isSelectedItem: 'Lagt til',
|
|
855
|
+
selected: '{{count}} valgte',
|
|
848
856
|
},
|
|
849
857
|
blogPosts: {
|
|
850
858
|
blog1: {
|
|
@@ -1088,6 +1096,7 @@ const messages = {
|
|
|
1088
1096
|
confirmDeleteTag: 'Er du sikker på at du vil slette emneknagg? Denne handlingen kan ikke endres.',
|
|
1089
1097
|
myFolders: 'Mine mapper',
|
|
1090
1098
|
myTags: 'Mine emneknagger',
|
|
1099
|
+
mySubjects: 'Mine fag',
|
|
1091
1100
|
newFolder: 'Ny mappe',
|
|
1092
1101
|
newFolderUnder: 'Lag ny mappe under {{folderName}}',
|
|
1093
1102
|
myAccount: 'Min konto',
|
|
@@ -1189,6 +1198,9 @@ const messages = {
|
|
|
1189
1198
|
contact: 'Kontakt',
|
|
1190
1199
|
help: 'Hjelp',
|
|
1191
1200
|
},
|
|
1201
|
+
programme: {
|
|
1202
|
+
grades: 'Trinn',
|
|
1203
|
+
},
|
|
1192
1204
|
};
|
|
1193
1205
|
|
|
1194
1206
|
export default messages;
|
package/src/main.scss
CHANGED
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
@import 'MediaList/component.medialist';
|
|
18
18
|
@import 'RelatedArticleList/component.related-articles';
|
|
19
19
|
@import 'ContentTypeBadge/component.content-type-badge';
|
|
20
|
-
@import 'global/components/component.source-list';
|
|
21
20
|
@import 'Table/component.tables';
|
|
22
21
|
@import 'TopicMenu/component.topic-menu';
|
|
23
22
|
@import 'Filter/component.filter';
|
|
@@ -1,29 +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
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
12
|
-
var Book = function Book(_ref) {
|
|
13
|
-
var className = _ref.className;
|
|
14
|
-
return _jsx("svg", {
|
|
15
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
16
|
-
version: "1",
|
|
17
|
-
width: "26",
|
|
18
|
-
height: "26",
|
|
19
|
-
viewBox: "0 0 26 26",
|
|
20
|
-
className: className,
|
|
21
|
-
children: _jsx("path", {
|
|
22
|
-
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"
|
|
23
|
-
})
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
Book.propTypes = {
|
|
27
|
-
className: PropTypes.string.isRequired
|
|
28
|
-
};
|
|
29
|
-
export default Book;
|
|
@@ -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
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
12
|
-
var Download = function Download(_ref) {
|
|
13
|
-
var className = _ref.className;
|
|
14
|
-
return _jsx("svg", {
|
|
15
|
-
version: "1",
|
|
16
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
-
viewBox: "0 0 32 32",
|
|
18
|
-
className: className,
|
|
19
|
-
children: _jsx("path", {
|
|
20
|
-
className: "path1",
|
|
21
|
-
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"
|
|
22
|
-
})
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
Download.propTypes = {
|
|
26
|
-
className: PropTypes.string.isRequired
|
|
27
|
-
};
|
|
28
|
-
export default Download;
|
|
@@ -1,26 +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
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
12
|
-
var Embed = function Embed(_ref) {
|
|
13
|
-
var className = _ref.className;
|
|
14
|
-
return _jsx("svg", {
|
|
15
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
16
|
-
viewBox: "0 0 50 50",
|
|
17
|
-
className: className,
|
|
18
|
-
children: _jsx("path", {
|
|
19
|
-
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"
|
|
20
|
-
})
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
Embed.propTypes = {
|
|
24
|
-
className: PropTypes.string.isRequired
|
|
25
|
-
};
|
|
26
|
-
export default Embed;
|
|
@@ -1,29 +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
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
12
|
-
var InsertTemplate = function InsertTemplate(_ref) {
|
|
13
|
-
var className = _ref.className;
|
|
14
|
-
return _jsx("svg", {
|
|
15
|
-
version: "1.1",
|
|
16
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
-
width: "32",
|
|
18
|
-
height: "32",
|
|
19
|
-
viewBox: "0 0 32 32",
|
|
20
|
-
className: className,
|
|
21
|
-
children: _jsx("path", {
|
|
22
|
-
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"
|
|
23
|
-
})
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
InsertTemplate.propTypes = {
|
|
27
|
-
className: PropTypes.string.isRequired
|
|
28
|
-
};
|
|
29
|
-
export default InsertTemplate;
|
|
@@ -1,26 +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
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
12
|
-
var OpenWindow = function OpenWindow(_ref) {
|
|
13
|
-
var className = _ref.className;
|
|
14
|
-
return _jsx("svg", {
|
|
15
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
16
|
-
viewBox: "0 0 50 50",
|
|
17
|
-
className: className,
|
|
18
|
-
children: _jsx("path", {
|
|
19
|
-
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"
|
|
20
|
-
})
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
OpenWindow.propTypes = {
|
|
24
|
-
className: PropTypes.string.isRequired
|
|
25
|
-
};
|
|
26
|
-
export default OpenWindow;
|
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;
|