@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.
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 +14 -2
  20. package/es/locale/messages-nb.js +14 -2
  21. package/es/locale/messages-nn.js +14 -2
  22. package/es/locale/messages-se.js +14 -2
  23. package/es/locale/messages-sma.js +14 -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 +12 -0
  55. package/lib/locale/messages-en.js +14 -2
  56. package/lib/locale/messages-nb.d.ts +12 -0
  57. package/lib/locale/messages-nb.js +14 -2
  58. package/lib/locale/messages-nn.d.ts +12 -0
  59. package/lib/locale/messages-nn.js +14 -2
  60. package/lib/locale/messages-se.d.ts +12 -0
  61. package/lib/locale/messages-se.js +14 -2
  62. package/lib/locale/messages-sma.d.ts +12 -0
  63. package/lib/locale/messages-sma.js +14 -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 +12 -0
  84. package/src/locale/messages-nb.ts +12 -0
  85. package/src/locale/messages-nn.ts +12 -0
  86. package/src/locale/messages-se.ts +12 -0
  87. package/src/locale/messages-sma.ts +12 -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
@@ -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
- });