@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.
- 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 +7 -2
- package/es/locale/messages-nb.js +7 -2
- package/es/locale/messages-nn.js +7 -2
- package/es/locale/messages-se.js +7 -2
- package/es/locale/messages-sma.js +7 -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 +5 -0
- package/lib/locale/messages-en.js +7 -2
- package/lib/locale/messages-nb.d.ts +5 -0
- package/lib/locale/messages-nb.js +7 -2
- package/lib/locale/messages-nn.d.ts +5 -0
- package/lib/locale/messages-nn.js +7 -2
- package/lib/locale/messages-se.d.ts +5 -0
- package/lib/locale/messages-se.js +7 -2
- package/lib/locale/messages-sma.d.ts +5 -0
- package/lib/locale/messages-sma.js +7 -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 +5 -0
- package/src/locale/messages-nb.ts +5 -0
- package/src/locale/messages-nn.ts +5 -0
- package/src/locale/messages-se.ts +5 -0
- package/src/locale/messages-sma.ts +5 -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
|
@@ -6,30 +6,24 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import React from 'react';
|
|
9
|
+
import React, { useMemo } from 'react';
|
|
10
10
|
import { useTranslation } from 'react-i18next';
|
|
11
11
|
import styled from '@emotion/styled';
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
12
|
+
import { spacing } from '@ndla/core';
|
|
13
|
+
import { SafeLinkButton } from '@ndla/safelink';
|
|
14
14
|
import { NavigationBox } from '../Navigation';
|
|
15
15
|
import { MessageBox } from '../Messages';
|
|
16
16
|
|
|
17
|
-
const GradesMenu = styled.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
> *:last-of-type {
|
|
23
|
-
margin-right: 0;
|
|
24
|
-
}
|
|
25
|
-
${mq.range({ from: breakpoints.tablet })} {
|
|
26
|
-
margin-bottom: 40px;
|
|
17
|
+
const GradesMenu = styled.ul`
|
|
18
|
+
display: flex;
|
|
19
|
+
gap: ${spacing.small};
|
|
20
|
+
li {
|
|
21
|
+
list-style: none;
|
|
27
22
|
}
|
|
28
23
|
`;
|
|
29
24
|
|
|
30
25
|
export type GradesProps = {
|
|
31
26
|
selectedGrade?: string;
|
|
32
|
-
onChangeGrade: (newGrade: string) => void;
|
|
33
27
|
grades: {
|
|
34
28
|
missingProgrammeSubjects?: boolean;
|
|
35
29
|
name: string;
|
|
@@ -47,22 +41,32 @@ type Props = GradesProps & {
|
|
|
47
41
|
onNavigate?: () => void;
|
|
48
42
|
};
|
|
49
43
|
|
|
50
|
-
const ProgrammeSubjects = ({ grades, onNavigate,
|
|
44
|
+
const ProgrammeSubjects = ({ grades, onNavigate, selectedGrade = 'vg1' }: Props) => {
|
|
51
45
|
const { t } = useTranslation();
|
|
52
|
-
|
|
46
|
+
|
|
47
|
+
const grade = useMemo(
|
|
48
|
+
() => grades.find((grade) => grade.name.toLowerCase() === selectedGrade) ?? grades[0],
|
|
49
|
+
[grades, selectedGrade],
|
|
50
|
+
);
|
|
51
|
+
|
|
53
52
|
return (
|
|
54
53
|
<>
|
|
55
|
-
<GradesMenu>
|
|
56
|
-
{grades.map((item) =>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
54
|
+
<GradesMenu aria-label={t('programme.grades')}>
|
|
55
|
+
{grades.map((item) => {
|
|
56
|
+
const current = item.name.toLowerCase() === selectedGrade;
|
|
57
|
+
return (
|
|
58
|
+
<li key={item.name}>
|
|
59
|
+
<SafeLinkButton
|
|
60
|
+
to={current ? '' : item.name.toLowerCase()}
|
|
61
|
+
lighter={item !== grade}
|
|
62
|
+
borderShape="rounded"
|
|
63
|
+
buttonSize="normal"
|
|
64
|
+
aria-current={current}>
|
|
65
|
+
{item.name}
|
|
66
|
+
</SafeLinkButton>
|
|
67
|
+
</li>
|
|
68
|
+
);
|
|
69
|
+
})}
|
|
66
70
|
</GradesMenu>
|
|
67
71
|
{grade.missingProgrammeSubjects && <MessageBox>{t('messageBoxInfo.noContent')}</MessageBox>}
|
|
68
72
|
{grade.categories.map((category) => (
|
package/src/Table/Table.tsx
CHANGED
|
@@ -8,60 +8,27 @@
|
|
|
8
8
|
|
|
9
9
|
import React, { ReactNode } from 'react';
|
|
10
10
|
import BEMHelper from 'react-bem-helper';
|
|
11
|
-
import { ZoomOutMap } from '@ndla/icons/common';
|
|
12
|
-
|
|
13
|
-
import { uuid } from '@ndla/util';
|
|
14
|
-
import Dialog from '../Dialog';
|
|
15
11
|
|
|
16
12
|
const classes = BEMHelper('c-table');
|
|
17
13
|
|
|
18
14
|
interface Props {
|
|
19
15
|
id?: string;
|
|
20
|
-
messages: {
|
|
21
|
-
dialogCloseButton: string;
|
|
22
|
-
expandButtonLabel: string;
|
|
23
|
-
};
|
|
24
16
|
children?: ReactNode;
|
|
25
17
|
dangerouslySetInnerHTML?: {
|
|
26
18
|
__html: string;
|
|
27
19
|
};
|
|
28
20
|
}
|
|
29
21
|
|
|
30
|
-
const Table = ({ children,
|
|
31
|
-
const tableId = id || uuid();
|
|
32
|
-
const dialogId = `dialog-${tableId}`;
|
|
33
|
-
|
|
22
|
+
const Table = ({ children, id, ...rest }: Props) => {
|
|
34
23
|
return (
|
|
35
24
|
<div {...classes('wrapper')}>
|
|
36
25
|
<div {...classes('content')}>
|
|
37
26
|
<div {...classes('left-shadow')} />
|
|
38
|
-
<table id={
|
|
27
|
+
<table id={id} {...classes({ extra: ['o-table'] })} {...rest}>
|
|
39
28
|
{children}
|
|
40
29
|
</table>
|
|
41
|
-
<button
|
|
42
|
-
type="button"
|
|
43
|
-
data-dialog-trigger-id={dialogId}
|
|
44
|
-
data-dialog-source-id={tableId}
|
|
45
|
-
data-table-id={tableId}
|
|
46
|
-
{...classes('expand-button')}
|
|
47
|
-
aria-label={messages.expandButtonLabel}>
|
|
48
|
-
<ZoomOutMap />
|
|
49
|
-
</button>
|
|
50
30
|
<div {...classes('right-shadow')} />
|
|
51
31
|
</div>
|
|
52
|
-
<Dialog
|
|
53
|
-
id={dialogId}
|
|
54
|
-
label={messages.expandButtonLabel}
|
|
55
|
-
messages={{
|
|
56
|
-
close: messages.dialogCloseButton,
|
|
57
|
-
}}
|
|
58
|
-
modifier="fullscreen">
|
|
59
|
-
<div {...classes('dialog')}>
|
|
60
|
-
<div {...classes('expanded-table-wrapper')}>
|
|
61
|
-
<div {...classes('content')} />
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</Dialog>
|
|
65
32
|
</div>
|
|
66
33
|
);
|
|
67
34
|
};
|
|
@@ -26,39 +26,6 @@
|
|
|
26
26
|
@include mq($from: desktop) {
|
|
27
27
|
@include grids-expand(4, 6, 2);
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
&--has-scroll {
|
|
31
|
-
.c-table {
|
|
32
|
-
padding-bottom: $spacing;
|
|
33
|
-
|
|
34
|
-
&__expand-button {
|
|
35
|
-
@include mq($from: wide) {
|
|
36
|
-
display: block;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&__expand-button {
|
|
44
|
-
display: none;
|
|
45
|
-
background: $brand-color--lighter;
|
|
46
|
-
border: 0;
|
|
47
|
-
height: 38px;
|
|
48
|
-
width: 38px;
|
|
49
|
-
border-radius: 0;
|
|
50
|
-
margin: $spacing 0 0 auto;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&__expanded-table-wrapper {
|
|
54
|
-
display: inline-block;
|
|
55
|
-
background: $white;
|
|
56
|
-
padding: $spacing--medium $spacing--medium $spacing--large $spacing--medium;
|
|
57
|
-
margin: $spacing--large;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&__dialog {
|
|
61
|
-
text-align: center;
|
|
62
29
|
}
|
|
63
30
|
|
|
64
31
|
&__content {
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import React, { Component } from 'react';
|
|
10
|
-
import PropTypes from 'prop-types';
|
|
11
10
|
import { Back, ChevronRight } from '@ndla/icons/common';
|
|
12
11
|
import { Switch } from '@ndla/switch';
|
|
13
12
|
import styled from '@emotion/styled';
|
|
@@ -15,7 +14,6 @@ import { css } from '@emotion/react';
|
|
|
15
14
|
import { mq, breakpoints, fonts, spacing } from '@ndla/core';
|
|
16
15
|
import SafeLink from '@ndla/safelink';
|
|
17
16
|
import { withTranslation } from 'react-i18next';
|
|
18
|
-
import { TopicShape } from '../shapes';
|
|
19
17
|
import ContentTypeResult from '../Search/ContentTypeResult';
|
|
20
18
|
import { renderAdditionalIcon } from './TopicMenu';
|
|
21
19
|
|
|
@@ -85,17 +83,6 @@ const SubtopicLink = ({
|
|
|
85
83
|
);
|
|
86
84
|
};
|
|
87
85
|
|
|
88
|
-
SubtopicLink.propTypes = {
|
|
89
|
-
classes: PropTypes.func.isRequired,
|
|
90
|
-
subtopic: TopicShape.isRequired,
|
|
91
|
-
to: PropTypes.string.isRequired,
|
|
92
|
-
onSubtopicExpand: PropTypes.func,
|
|
93
|
-
expandedSubtopicId: PropTypes.string,
|
|
94
|
-
toTopic: PropTypes.func,
|
|
95
|
-
subtopicId: PropTypes.string,
|
|
96
|
-
additionalTooltipLabel: PropTypes.string,
|
|
97
|
-
};
|
|
98
|
-
|
|
99
86
|
class SubtopicLinkList extends Component {
|
|
100
87
|
constructor(props) {
|
|
101
88
|
super(props);
|
|
@@ -257,21 +244,4 @@ class SubtopicLinkList extends Component {
|
|
|
257
244
|
}
|
|
258
245
|
}
|
|
259
246
|
|
|
260
|
-
SubtopicLinkList.propTypes = {
|
|
261
|
-
resourceToLinkProps: PropTypes.func.isRequired,
|
|
262
|
-
expandedSubtopicId: PropTypes.string,
|
|
263
|
-
onSubtopicExpand: PropTypes.func,
|
|
264
|
-
classes: PropTypes.func.isRequired,
|
|
265
|
-
className: PropTypes.string,
|
|
266
|
-
closeMenu: PropTypes.func.isRequired,
|
|
267
|
-
topic: TopicShape.isRequired,
|
|
268
|
-
toTopic: PropTypes.func.isRequired,
|
|
269
|
-
onGoBack: PropTypes.func.isRequired,
|
|
270
|
-
backLabel: PropTypes.string.isRequired,
|
|
271
|
-
defaultCount: PropTypes.number,
|
|
272
|
-
t: PropTypes.func.isRequired,
|
|
273
|
-
lastOpen: PropTypes.bool,
|
|
274
|
-
isUngrouped: PropTypes.bool,
|
|
275
|
-
};
|
|
276
|
-
|
|
277
247
|
export default withTranslation()(SubtopicLinkList);
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
/* eslint jsx-a11y/no-noninteractive-element-to-interactive-role: 1 */
|
|
11
11
|
|
|
12
12
|
import React, { Fragment, useEffect, useState } from 'react';
|
|
13
|
-
import PropTypes from 'prop-types';
|
|
14
13
|
import BEMHelper from 'react-bem-helper';
|
|
15
14
|
import debounce from 'lodash/debounce';
|
|
16
15
|
import { spacing } from '@ndla/core';
|
|
@@ -24,7 +23,6 @@ import SafeLink from '@ndla/safelink';
|
|
|
24
23
|
import Tooltip from '@ndla/tooltip';
|
|
25
24
|
import { useTranslation } from 'react-i18next';
|
|
26
25
|
import SubtopicLinkList from './SubtopicLinkList';
|
|
27
|
-
import { TopicShape } from '../shapes';
|
|
28
26
|
|
|
29
27
|
import Logo from '../Logo';
|
|
30
28
|
import FrontpageAllSubjects from '../Frontpage/FrontpageAllSubjects';
|
|
@@ -365,74 +363,6 @@ export const TopicMenu = ({
|
|
|
365
363
|
);
|
|
366
364
|
};
|
|
367
365
|
|
|
368
|
-
TopicMenu.propTypes = {
|
|
369
|
-
topics: PropTypes.arrayOf(TopicShape).isRequired,
|
|
370
|
-
toFrontpage: PropTypes.func.isRequired,
|
|
371
|
-
toTopic: PropTypes.func,
|
|
372
|
-
closeAlert: PropTypes.func,
|
|
373
|
-
toSubject: PropTypes.func,
|
|
374
|
-
close: PropTypes.func,
|
|
375
|
-
defaultCount: PropTypes.number,
|
|
376
|
-
subjectTitle: PropTypes.string,
|
|
377
|
-
resourceToLinkProps: PropTypes.func.isRequired,
|
|
378
|
-
onNavigate: PropTypes.func.isRequired,
|
|
379
|
-
expandedTopicId: PropTypes.string,
|
|
380
|
-
expandedSubtopicsId: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
381
|
-
hideSearch: PropTypes.bool,
|
|
382
|
-
searchFieldComponent: PropTypes.node,
|
|
383
|
-
locale: PropTypes.string,
|
|
384
|
-
messages: PropTypes.arrayOf(
|
|
385
|
-
PropTypes.shape({
|
|
386
|
-
content: PropTypes.string.isRequired,
|
|
387
|
-
closable: PropTypes.bool.isRequired,
|
|
388
|
-
number: PropTypes.number.isRequired,
|
|
389
|
-
}),
|
|
390
|
-
),
|
|
391
|
-
subjectCategories: PropTypes.arrayOf(
|
|
392
|
-
PropTypes.shape({
|
|
393
|
-
name: PropTypes.string.isRequired,
|
|
394
|
-
subjects: PropTypes.arrayOf(
|
|
395
|
-
PropTypes.shape({
|
|
396
|
-
name: PropTypes.string.isRequired,
|
|
397
|
-
url: PropTypes.string.isRequired,
|
|
398
|
-
}),
|
|
399
|
-
),
|
|
400
|
-
}),
|
|
401
|
-
),
|
|
402
|
-
programmes: PropTypes.arrayOf(
|
|
403
|
-
PropTypes.shape({
|
|
404
|
-
label: PropTypes.string.isRequired,
|
|
405
|
-
url: PropTypes.string.isRequired,
|
|
406
|
-
}),
|
|
407
|
-
),
|
|
408
|
-
currentProgramme: PropTypes.shape({
|
|
409
|
-
name: PropTypes.string.isRequired,
|
|
410
|
-
grades: PropTypes.arrayOf(
|
|
411
|
-
PropTypes.shape({
|
|
412
|
-
name: PropTypes.string.isRequired,
|
|
413
|
-
categories: PropTypes.arrayOf(
|
|
414
|
-
PropTypes.shape({
|
|
415
|
-
name: PropTypes.string,
|
|
416
|
-
subjects: PropTypes.arrayOf(
|
|
417
|
-
PropTypes.shape({
|
|
418
|
-
label: PropTypes.string.isRequired,
|
|
419
|
-
url: PropTypes.string.isRequired,
|
|
420
|
-
}),
|
|
421
|
-
),
|
|
422
|
-
}),
|
|
423
|
-
),
|
|
424
|
-
}),
|
|
425
|
-
).isRequired,
|
|
426
|
-
selectedGradeIndex: PropTypes.number,
|
|
427
|
-
}),
|
|
428
|
-
initialSelectedMenu: PropTypes.oneOf([
|
|
429
|
-
MENU_CURRENT_SUBJECT,
|
|
430
|
-
MENU_CURRENT_PROGRAMME,
|
|
431
|
-
MENU_PROGRAMMES,
|
|
432
|
-
MENU_ALL_SUBJECTS,
|
|
433
|
-
]),
|
|
434
|
-
};
|
|
435
|
-
|
|
436
366
|
TopicMenu.defaultProps = {
|
|
437
367
|
defaultCount: 12,
|
|
438
368
|
};
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import PropTypes from 'prop-types';
|
|
11
10
|
import { css } from '@emotion/react';
|
|
12
11
|
import { spacing, fonts, colors, mq, breakpoints } from '@ndla/core';
|
|
13
12
|
import { Menu } from '@ndla/icons/common';
|
|
@@ -49,9 +48,4 @@ const TopicMenuButton = ({ ndlaFilm, children, ...rest }) => (
|
|
|
49
48
|
</Button>
|
|
50
49
|
);
|
|
51
50
|
|
|
52
|
-
TopicMenuButton.propTypes = {
|
|
53
|
-
children: PropTypes.node.isRequired,
|
|
54
|
-
ndlaFilm: PropTypes.bool,
|
|
55
|
-
};
|
|
56
|
-
|
|
57
51
|
export default TopicMenuButton;
|
|
@@ -261,6 +261,7 @@ const messages = {
|
|
|
261
261
|
removeFavorite: 'Remove favorite subject',
|
|
262
262
|
removeConfirmed: '{{subject}} is removed from your favorite subjects',
|
|
263
263
|
addConfirmed: '{{subject}} is added to your favorite subjects',
|
|
264
|
+
shows: 'Shows',
|
|
264
265
|
},
|
|
265
266
|
topicPage: {
|
|
266
267
|
articleErrorDescription: 'Sorry, an error occurred while loading the topic description.',
|
|
@@ -851,6 +852,7 @@ const messages = {
|
|
|
851
852
|
searching: 'Searching...',
|
|
852
853
|
create: 'Create new',
|
|
853
854
|
isSelectedItem: 'Added',
|
|
855
|
+
selected: '{{count}} selected',
|
|
854
856
|
},
|
|
855
857
|
blogPosts: {
|
|
856
858
|
blog1: {
|
|
@@ -1197,6 +1199,9 @@ const messages = {
|
|
|
1197
1199
|
contact: 'Contact',
|
|
1198
1200
|
help: 'Help',
|
|
1199
1201
|
},
|
|
1202
|
+
programme: {
|
|
1203
|
+
grades: 'Grades',
|
|
1204
|
+
},
|
|
1200
1205
|
};
|
|
1201
1206
|
|
|
1202
1207
|
export default messages;
|
|
@@ -260,6 +260,7 @@ const messages = {
|
|
|
260
260
|
removeFavorite: 'Fjern favorittfag',
|
|
261
261
|
removeConfirmed: '{{subject}} er fjernet fra favorittfag',
|
|
262
262
|
addConfirmed: '{{subject}} er lagt til som favorittfag',
|
|
263
|
+
shows: 'Viser',
|
|
263
264
|
},
|
|
264
265
|
topicPage: {
|
|
265
266
|
articleErrorDescription: 'Beklager, en feil oppstod under lasting av emnebeskrivelsen.',
|
|
@@ -850,6 +851,7 @@ const messages = {
|
|
|
850
851
|
searching: 'Søker...',
|
|
851
852
|
create: 'Opprett ny',
|
|
852
853
|
isSelectedItem: 'Lagt til',
|
|
854
|
+
selected: '{{count}} valgte',
|
|
853
855
|
},
|
|
854
856
|
blogPosts: {
|
|
855
857
|
blog1: {
|
|
@@ -1194,6 +1196,9 @@ const messages = {
|
|
|
1194
1196
|
contact: 'Kontakt',
|
|
1195
1197
|
help: 'Hjelp',
|
|
1196
1198
|
},
|
|
1199
|
+
programme: {
|
|
1200
|
+
grades: 'Trinn',
|
|
1201
|
+
},
|
|
1197
1202
|
};
|
|
1198
1203
|
|
|
1199
1204
|
export default messages;
|
|
@@ -260,6 +260,7 @@ const messages = {
|
|
|
260
260
|
removeFavorite: 'Fjern favorittfag',
|
|
261
261
|
removeConfirmed: '{{subject}} er fjerna frå favorittfag',
|
|
262
262
|
addConfirmed: '{{subject}} er lagt til som favorittfag',
|
|
263
|
+
shows: 'Viser',
|
|
263
264
|
},
|
|
264
265
|
topicPage: {
|
|
265
266
|
articleErrorDescription: 'Orsak, ein feil oppstod under lasting av emneskildringa.',
|
|
@@ -851,6 +852,7 @@ const messages = {
|
|
|
851
852
|
searching: 'Søkjer...',
|
|
852
853
|
create: 'Opprett ny',
|
|
853
854
|
isSelectedItem: 'Lagt til',
|
|
855
|
+
selected: '{{count}} valgte',
|
|
854
856
|
},
|
|
855
857
|
blogPosts: {
|
|
856
858
|
blog1: {
|
|
@@ -1195,6 +1197,9 @@ const messages = {
|
|
|
1195
1197
|
contact: 'Kontakt',
|
|
1196
1198
|
help: 'Hjelp',
|
|
1197
1199
|
},
|
|
1200
|
+
programme: {
|
|
1201
|
+
grades: 'Trinn',
|
|
1202
|
+
},
|
|
1198
1203
|
};
|
|
1199
1204
|
|
|
1200
1205
|
export default messages;
|
|
@@ -260,6 +260,7 @@ const messages = {
|
|
|
260
260
|
removeFavorite: 'Fjern favorittfag',
|
|
261
261
|
removeConfirmed: '{{subject}} er fjernet fra favorittfag',
|
|
262
262
|
addConfirmed: '{{subject}} er lagt til som favorittfag',
|
|
263
|
+
shows: 'Viser',
|
|
263
264
|
},
|
|
264
265
|
topicPage: {
|
|
265
266
|
articleErrorDescription: 'Šállošat, boasttuvuohta čuožžilii fáddáčilgehusa viežžamis.',
|
|
@@ -851,6 +852,7 @@ const messages = {
|
|
|
851
852
|
searching: 'Ohcá...',
|
|
852
853
|
create: 'Ráhkat ođđa',
|
|
853
854
|
isSelectedItem: 'Lasihuvvon',
|
|
855
|
+
selected: '{{count}} valgte',
|
|
854
856
|
},
|
|
855
857
|
blogPosts: {
|
|
856
858
|
blog1: {
|
|
@@ -1196,6 +1198,9 @@ const messages = {
|
|
|
1196
1198
|
contact: 'Váldde oktavuođa',
|
|
1197
1199
|
help: 'Veahket',
|
|
1198
1200
|
},
|
|
1201
|
+
programme: {
|
|
1202
|
+
grades: 'Trinn',
|
|
1203
|
+
},
|
|
1199
1204
|
};
|
|
1200
1205
|
|
|
1201
1206
|
export default messages;
|
|
@@ -260,6 +260,7 @@ const messages = {
|
|
|
260
260
|
removeFavorite: 'Fjern favorittfag',
|
|
261
261
|
removeConfirmed: '{{subject}} er fjernet fra favorittfag',
|
|
262
262
|
addConfirmed: '{{subject}} er lagt til som favorittfag',
|
|
263
|
+
shows: 'Viser',
|
|
263
264
|
},
|
|
264
265
|
topicPage: {
|
|
265
266
|
articleErrorDescription: 'Beklager, en feil oppstod under lasting av emnebeskrivelsen.',
|
|
@@ -851,6 +852,7 @@ const messages = {
|
|
|
851
852
|
searching: 'Søker...',
|
|
852
853
|
create: 'Opprett ny',
|
|
853
854
|
isSelectedItem: 'Lagt til',
|
|
855
|
+
selected: '{{count}} valgte',
|
|
854
856
|
},
|
|
855
857
|
blogPosts: {
|
|
856
858
|
blog1: {
|
|
@@ -1196,6 +1198,9 @@ const messages = {
|
|
|
1196
1198
|
contact: 'Kontakt',
|
|
1197
1199
|
help: 'Hjelp',
|
|
1198
1200
|
},
|
|
1201
|
+
programme: {
|
|
1202
|
+
grades: 'Trinn',
|
|
1203
|
+
},
|
|
1199
1204
|
};
|
|
1200
1205
|
|
|
1201
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;
|