@ndla/ui 4.1.0 → 4.1.3

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.
@@ -297,7 +297,10 @@ var messages = _objectSpread(_objectSpread({
297
297
  resources: 'This is not a complete course produced by NDLA, but a collection of resources we hope you will find useful.',
298
298
  beta: 'This course is in beta.',
299
299
  outdatedSubject: 'This topic is part of a course that is not updated to the current curriculum.',
300
- newVersion: 'This learning resource is not updated to the current curriculum. You can find an updated version here: '
300
+ newVersion: 'This learning resource is not updated to the current curriculum. You can find an updated version here: ',
301
+ frontPageBeta: 'Coming subjects are adapted to the new curriculum valid from autumn 2022. Beta versions of subjects are subjects we are still working on. We hope, however, that the learning resources available by now may come in useful already.',
302
+ frontPageExpired: 'Expired subjects are not being taught any longer, but it may still be possible to take exams in these subjects.',
303
+ frontPageRevised: 'Revised subjects have been revised in accordance with the new curriculum that will be put into effect from August 2022.'
301
304
  },
302
305
  article: {
303
306
  edition: 'Edition',
@@ -565,6 +568,9 @@ var messages = _objectSpread(_objectSpread({
565
568
  openFilter: 'Filter',
566
569
  closeFilter: 'Close filter',
567
570
  heading: 'Filter'
571
+ },
572
+ alphabet: {
573
+ letterFilter: 'Filter content by the letter {{letter}}.'
568
574
  }
569
575
  },
570
576
  relatedLinks: {
@@ -734,7 +740,7 @@ var messages = _objectSpread(_objectSpread({
734
740
  },
735
741
  frontpageMultidisciplinarySubject: {
736
742
  heading: 'Interdisciplinary topics',
737
- text: 'The three interdisciplinary subjects in the curriculum are based on current societal challenges that require the involvement and efforts of individuals and the community in the local community, nationally and globally.',
743
+ text: 'The three interdisciplinary topics in the curriculum are based on current societal challenges that require the involvement and efforts of individuals and the community in the local community, nationally and globally.',
738
744
  linkText: 'See cases for multidisciplinary topics',
739
745
  publicHealthTopic: 'Public health and life management',
740
746
  democracyTopic: 'Democracy and citizenship',
@@ -744,7 +750,7 @@ var messages = _objectSpread(_objectSpread({
744
750
  frontpageMenu: {
745
751
  program: 'Education programme',
746
752
  allsubjects: 'All subjects',
747
- cursorText: 'Preview new resources from Vg2-subjects to be released this autumn'
753
+ cursorText: 'Have a look at some new learning resources from our revised subjects!'
748
754
  },
749
755
  navigation: {
750
756
  showLongerDescription: 'Show topic description',
@@ -757,6 +763,10 @@ var messages = _objectSpread(_objectSpread({
757
763
  multidisciplinarySubject: {
758
764
  subjectsLinksDescription: 'Case in'
759
765
  },
766
+ multibutton: {
767
+ open: 'Open menu',
768
+ close: 'Close menu'
769
+ },
760
770
  close: 'Close',
761
771
  title: 'Title',
762
772
  image: {
@@ -843,7 +853,11 @@ var messages = _objectSpread(_objectSpread({
843
853
  accessDenied: 'We are sorry, but this resource is only available to teachers who are logged in with Feide.'
844
854
  }
845
855
  },
846
- checkOutNewFeature: 'New feature'
856
+ checkOutNewFeature: 'New feature',
857
+ slateBlockMenu: {
858
+ open: 'Open menu',
859
+ close: 'Close menu'
860
+ }
847
861
  });
848
862
 
849
863
  var _default = messages;
@@ -35,6 +35,10 @@ declare const messages: {
35
35
  };
36
36
  };
37
37
  checkOutNewFeature: string;
38
+ slateBlockMenu: {
39
+ open: string;
40
+ close: string;
41
+ };
38
42
  htmlTitles: {
39
43
  titleTemplate: string;
40
44
  welcomePage: string;
@@ -338,6 +342,9 @@ declare const messages: {
338
342
  beta: string;
339
343
  outdatedSubject: string;
340
344
  newVersion: string;
345
+ frontPageBeta: string;
346
+ frontPageExpired: string;
347
+ frontPageRevised: string;
341
348
  };
342
349
  article: {
343
350
  lastUpdated: string;
@@ -606,6 +613,9 @@ declare const messages: {
606
613
  closeFilter: string;
607
614
  heading: string;
608
615
  };
616
+ alphabet: {
617
+ letterFilter: string;
618
+ };
609
619
  };
610
620
  relatedLinks: {
611
621
  label: string;
@@ -797,6 +807,10 @@ declare const messages: {
797
807
  multidisciplinarySubject: {
798
808
  subjectsLinksDescription: string;
799
809
  };
810
+ multibutton: {
811
+ open: string;
812
+ close: string;
813
+ };
800
814
  close: string;
801
815
  title: string;
802
816
  image: {
@@ -297,7 +297,10 @@ var messages = _objectSpread(_objectSpread({
297
297
  resources: 'Dette er ikke et komplett læremiddel produsert av NDLA, men ei ressurssamling som vi håper kan være nyttig for deg.',
298
298
  beta: 'Dette faget er i betaversjon.',
299
299
  outdatedSubject: 'Dette emnet hører til et fag som ikke er oppdatert etter gjeldende læreplan.',
300
- newVersion: 'Denne læringsressursen er ikke oppdatert etter gjeldende læreplan. Du finner en oppdatert versjon her: '
300
+ newVersion: 'Denne læringsressursen er ikke oppdatert etter gjeldende læreplan. Du finner en oppdatert versjon her: ',
301
+ frontPageBeta: 'Kommende fag er tilpassa ny læreplan som gjelder fra høsten 2022. Betafag er fag under arbeid. Vi håper likevel at læringsressursene i betafaga kan være nyttige allerede nå.',
302
+ frontPageExpired: 'Utgåtte fag undervises det ikke i lenger, men det kan fortsatt være mulig å ta eksamen i faga som privatist.',
303
+ frontPageRevised: 'Kommende fag er tilpassa ny læreplan som gjelder fra høsten 2022.'
301
304
  },
302
305
  article: {
303
306
  lastUpdated: 'Sist oppdatert',
@@ -565,6 +568,9 @@ var messages = _objectSpread(_objectSpread({
565
568
  openFilter: 'Filtrer',
566
569
  closeFilter: 'Lukk filter',
567
570
  heading: 'Filter'
571
+ },
572
+ alphabet: {
573
+ letterFilter: 'Vis innhald på (bokstaven) {{letter}}.'
568
574
  }
569
575
  },
570
576
  relatedLinks: {
@@ -744,7 +750,7 @@ var messages = _objectSpread(_objectSpread({
744
750
  frontpageMenu: {
745
751
  program: 'Utdanningsprogram',
746
752
  allsubjects: 'Alle fag',
747
- cursorText: 'Se smakebiter fra nye ressurser i Vg2-fagene som kommer i høst'
753
+ cursorText: 'Se smakebiter fra fag som kommer høsten 2022.'
748
754
  },
749
755
  navigation: {
750
756
  showLongerDescription: 'Vis hele emnebeskrivelsen',
@@ -757,6 +763,10 @@ var messages = _objectSpread(_objectSpread({
757
763
  multidisciplinarySubject: {
758
764
  subjectsLinksDescription: 'Case innen'
759
765
  },
766
+ multibutton: {
767
+ open: 'Åpne meny',
768
+ close: 'Lukk meny'
769
+ },
760
770
  close: 'Lukk',
761
771
  title: 'Tittel',
762
772
  image: {
@@ -843,7 +853,11 @@ var messages = _objectSpread(_objectSpread({
843
853
  accessDenied: 'Vi beklager, men denne ressursen er bare for lærere innlogget med Feide.'
844
854
  }
845
855
  },
846
- checkOutNewFeature: 'Sjekk ut ny funksjonalitet'
856
+ checkOutNewFeature: 'Sjekk ut ny funksjonalitet',
857
+ slateBlockMenu: {
858
+ open: 'Åpne meny',
859
+ close: 'Lukk meny'
860
+ }
847
861
  });
848
862
 
849
863
  var _default = messages;
@@ -35,6 +35,10 @@ declare const messages: {
35
35
  };
36
36
  };
37
37
  checkOutNewFeature: string;
38
+ slateBlockMenu: {
39
+ open: string;
40
+ close: string;
41
+ };
38
42
  htmlTitles: {
39
43
  titleTemplate: string;
40
44
  welcomePage: string;
@@ -338,6 +342,9 @@ declare const messages: {
338
342
  beta: string;
339
343
  outdatedSubject: string;
340
344
  newVersion: string;
345
+ frontPageBeta: string;
346
+ frontPageExpired: string;
347
+ frontPageRevised: string;
341
348
  };
342
349
  article: {
343
350
  lastUpdated: string;
@@ -606,6 +613,9 @@ declare const messages: {
606
613
  closeFilter: string;
607
614
  heading: string;
608
615
  };
616
+ alphabet: {
617
+ letterFilter: string;
618
+ };
609
619
  };
610
620
  relatedLinks: {
611
621
  label: string;
@@ -797,6 +807,10 @@ declare const messages: {
797
807
  multidisciplinarySubject: {
798
808
  subjectsLinksDescription: string;
799
809
  };
810
+ multibutton: {
811
+ open: string;
812
+ close: string;
813
+ };
800
814
  close: string;
801
815
  title: string;
802
816
  image: {
@@ -297,7 +297,10 @@ var messages = _objectSpread(_objectSpread({
297
297
  resources: 'Dette er ikkje eit komplett læremiddel produsert av NDLA, men ei ressurssamling som vi håper kan vere nyttig for deg.',
298
298
  beta: 'Dette faget er i betaversjon.',
299
299
  outdatedSubject: 'Dette emnet høyrer til eit fag som ikkje er oppdatert etter gjeldande læreplan.',
300
- newVersion: 'Denne læringsressursen er ikkje oppdatert etter gjeldande læreplan. Du finn ein oppdatert versjon her: '
300
+ newVersion: 'Denne læringsressursen er ikkje oppdatert etter gjeldande læreplan. Du finn ein oppdatert versjon her: ',
301
+ frontPageBeta: 'Kommande fag er tilpassa ny læreplan som gjeld fra hausten 2022. Betafag er fag under arbeid. Vi håper likevel at læringsressursane i betafaga kan vere nyttige allereie no.',
302
+ frontPageExpired: 'Utgåtte fag blir det ikkje undervist i lenger, men det kan framleis vere mogleg å ta eksamen i faget som privatist.',
303
+ frontPageRevised: 'Kommande fag er tilpassa ny læreplan som gjeld frå hausten 2022.'
301
304
  },
302
305
  article: {
303
306
  lastUpdated: 'Sist oppdatert',
@@ -565,6 +568,9 @@ var messages = _objectSpread(_objectSpread({
565
568
  openFilter: 'Filtrer',
566
569
  closeFilter: 'Lukk filter',
567
570
  heading: 'Filter'
571
+ },
572
+ alphabet: {
573
+ letterFilter: 'Vis innhold på {{letter}}.'
568
574
  }
569
575
  },
570
576
  relatedLinks: {
@@ -744,7 +750,7 @@ var messages = _objectSpread(_objectSpread({
744
750
  frontpageMenu: {
745
751
  program: 'Utdanningsprogram',
746
752
  allsubjects: 'Alle fag',
747
- cursorText: 'Sjå smakebitar frå nye ressursar i Vg2-faga som kjem i haust'
753
+ cursorText: 'Sjå smakebitar frå fag som kjem hausten 2022.'
748
754
  },
749
755
  navigation: {
750
756
  showLongerDescription: 'Vis heile emneskildringa',
@@ -757,6 +763,10 @@ var messages = _objectSpread(_objectSpread({
757
763
  multidisciplinarySubject: {
758
764
  subjectsLinksDescription: 'Case innan'
759
765
  },
766
+ multibutton: {
767
+ open: 'Åpne meny',
768
+ close: 'Lukk meny'
769
+ },
760
770
  close: 'Lukk',
761
771
  title: 'Tittel',
762
772
  image: {
@@ -843,7 +853,11 @@ var messages = _objectSpread(_objectSpread({
843
853
  accessDenied: 'Vi beklagar, men denne ressursen er berre for lærarar innlogga med Feide.'
844
854
  }
845
855
  },
846
- checkOutNewFeature: 'Sjekk ut ny funksjonalitet'
856
+ checkOutNewFeature: 'Sjekk ut ny funksjonalitet',
857
+ slateBlockMenu: {
858
+ open: 'Åpne meny',
859
+ close: 'Lukk meny'
860
+ }
847
861
  });
848
862
 
849
863
  var _default = messages;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "4.1.0",
3
+ "version": "4.1.3",
4
4
  "description": "UI component library for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -31,40 +31,32 @@
31
31
  "types"
32
32
  ],
33
33
  "dependencies": {
34
- "@ndla/button": "^1.1.9",
35
- "@ndla/carousel": "^1.1.5",
34
+ "@ndla/button": "^1.1.10",
35
+ "@ndla/carousel": "^1.1.6",
36
36
  "@ndla/core": "^0.7.3",
37
37
  "@ndla/hooks": "^1.0.8",
38
38
  "@ndla/icons": "^1.5.0",
39
- "@ndla/licenses": "^2.1.0",
40
- "@ndla/modal": "^1.1.25",
41
- "@ndla/safelink": "^1.0.13",
39
+ "@ndla/licenses": "^2.1.1",
40
+ "@ndla/modal": "^1.1.26",
41
+ "@ndla/safelink": "^1.0.14",
42
42
  "@ndla/switch": "^0.0.34",
43
- "@ndla/tabs": "^1.0.18",
44
- "@ndla/tooltip": "^0.2.51",
43
+ "@ndla/tabs": "^1.0.19",
44
+ "@ndla/tooltip": "^0.2.52",
45
45
  "@ndla/util": "^2.0.2",
46
46
  "@reach/menu-button": "^0.12.1",
47
47
  "@reach/slider": "^0.12.1",
48
- "@types/hoist-non-react-statics": "^3.3.1",
49
- "@types/react-syntax-highlighter": "^13.5.2",
50
- "classnames": "2.2.6",
51
- "focus-trap": "^4.0.2",
52
48
  "focus-trap-react": "^6.0.0",
53
- "hoist-non-react-statics": "^3.3.0",
54
49
  "html-react-parser": "^0.10.3",
55
50
  "i18next-browser-languagedetector": "^6.1.1",
56
51
  "intl-format-cache": "^4.3.1",
57
52
  "intl-messageformat": "5.4.3",
58
53
  "invariant": "^2.2.3",
59
- "jump.js": "^1.0.2",
60
54
  "lodash": "^4.17.20",
61
55
  "react-bem-helper": "1.4.1",
62
56
  "react-device-detect": "^2.1.2",
63
57
  "react-facebook": "^6.0.15",
64
- "react-prop-types": "0.4.0",
65
58
  "react-sticky-el": "^2.0.6",
66
59
  "react-swipeable": "^6.2.0",
67
- "react-syntax-highlighter": "^15.4.4",
68
60
  "react-transition-group": "^2.5.3",
69
61
  "shave": "^2.5.10"
70
62
  },
@@ -82,8 +74,6 @@
82
74
  "@types/react-sticky-el": "^1.0.2",
83
75
  "@types/react-transition-group": "^4.4.2",
84
76
  "css-loader": "^2.1.0",
85
- "enzyme": "^3.8.0",
86
- "enzyme-adapter-react-16": "^1.9.1",
87
77
  "mini-css-extract-plugin": "^0.5.0",
88
78
  "sass-loader": "^7.1.0",
89
79
  "webpack": "^4.44.1",
@@ -92,5 +82,5 @@
92
82
  "publishConfig": {
93
83
  "access": "public"
94
84
  },
95
- "gitHead": "b67642972d195af3997f87d2a0481369eeaf1b0c"
85
+ "gitHead": "e4baf01843a1c8b52baae7268cca6cef5d9091ce"
96
86
  }
@@ -4,6 +4,7 @@ import { useTranslation } from 'react-i18next';
4
4
  import Tabs from '@ndla/tabs';
5
5
  import SafeLink from '@ndla/safelink';
6
6
  import { colors, fonts, mq, breakpoints } from '@ndla/core';
7
+ import { MessageBox } from '../MessageBox';
7
8
  // @ts-ignore
8
9
  import { ToggleItem } from '../Filter';
9
10
 
@@ -69,6 +70,10 @@ const StyledLetterSpacing = styled.span`
69
70
  height: 16px;
70
71
  `;
71
72
 
73
+ const MessageBoxWrapper = styled.div`
74
+ padding-top: 20px;
75
+ `;
76
+
72
77
  type subjectProps = {
73
78
  name: string;
74
79
  url?: string;
@@ -191,7 +196,23 @@ const FrontpageAllSubjects = ({
191
196
  category.visible &&
192
197
  data.push({
193
198
  title: category.name || t(`subjectCategories.${category.type}`),
194
- content: renderList(category.subjects, onNavigate, onToggleSubject, subjectViewType, selectedSubjects),
199
+ content: (
200
+ <>
201
+ {/* Should be persistent til fall 2022 */}
202
+ {category.name === t('subjectCategories.beta') && (
203
+ <MessageBoxWrapper>
204
+ <MessageBox>{t('messageBoxInfo.frontPageBeta')}</MessageBox>
205
+ </MessageBoxWrapper>
206
+ )}
207
+ {category.name === t('subjectCategories.archive') && (
208
+ <MessageBoxWrapper>
209
+ <MessageBox>{t('messageBoxInfo.frontPageExpired')}</MessageBox>
210
+ </MessageBoxWrapper>
211
+ )}
212
+
213
+ {renderList(category.subjects, onNavigate, onToggleSubject, subjectViewType, selectedSubjects)}
214
+ </>
215
+ ),
195
216
  });
196
217
  });
197
218
 
@@ -67,7 +67,6 @@ const Cursor = styled.div<CursorProps>`
67
67
  ${(props) =>
68
68
  props.hide &&
69
69
  `
70
- visibility: hidden;
71
70
  `}
72
71
  `;
73
72
 
@@ -78,13 +77,13 @@ const LeftCursor = styled(Cursor)`
78
77
  background-image: url("data:image/svg+xml,%3Csvg width='37' height='39' viewBox='0 0 37 39' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35.468 12.6697L35.836 12.3311L36.5131 13.0669L36.1452 13.4055L35.468 12.6697ZM1.00002 25.2236L6.37298 23.1107L5.51639 28.8203L1.00002 25.2236ZM35.8066 13.0376C36.1452 13.4055 36.1451 13.4056 36.145 13.4057C36.1449 13.4058 36.1448 13.4059 36.1446 13.4061C36.1442 13.4065 36.1437 13.4069 36.143 13.4076C36.1416 13.4088 36.1397 13.4106 36.1371 13.413C36.132 13.4177 36.1244 13.4245 36.1146 13.4336C36.0948 13.4516 36.0655 13.4782 36.0272 13.5128C35.9506 13.582 35.8376 13.6834 35.691 13.8131C35.3979 14.0724 34.9705 14.4449 34.4315 14.8994C33.3537 15.8082 31.828 17.046 30.0356 18.3628C26.4632 20.9874 21.784 23.9617 17.4626 25.2388L17.1791 24.2798C21.3265 23.0541 25.8902 20.1675 29.4435 17.5569C31.214 16.2562 32.7218 15.0329 33.7869 14.1349C34.3192 13.686 34.7406 13.3187 35.0284 13.0641C35.1723 12.9368 35.2827 12.8377 35.3569 12.7707C35.3941 12.7372 35.4221 12.7117 35.4407 12.6947C35.4501 12.6862 35.457 12.6798 35.4616 12.6756C35.4639 12.6735 35.4656 12.672 35.4666 12.671C35.4672 12.6705 35.4676 12.6701 35.4678 12.6699C35.4679 12.6698 35.468 12.6698 35.468 12.6697C35.4681 12.6697 35.468 12.6697 35.8066 13.0376ZM17.4626 25.2388C12.8958 26.5885 8.51384 26.6382 5.41026 26.3897L5.49009 25.3929C8.51637 25.6352 12.7668 25.5839 17.1791 24.2798L17.4626 25.2388Z' fill='%23757575'/%3E%3C/svg%3E%0A");
79
78
  `;
80
79
 
81
- const BottomCursor = styled(Cursor)`
80
+ /* const BottomCursor = styled(Cursor)`
82
81
  width: 48px;
83
82
  height: 44px;
84
83
  margin-right: 90px;
85
84
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='44' viewBox='0 0 48 44' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.4851 0.879004L16.3641 0.393865L15.3939 0.635857L15.5149 1.121L16.4851 0.879004ZM33.5 42L32.1883 36.3775L27.9749 40.3247L33.5 42ZM16 1C15.5149 1.121 15.5149 1.12107 15.5149 1.12121C15.5149 1.12133 15.515 1.12152 15.5151 1.12175C15.5152 1.12223 15.5153 1.12292 15.5156 1.12384C15.516 1.12567 15.5167 1.12839 15.5176 1.13197C15.5194 1.13915 15.5221 1.14981 15.5256 1.1639C15.5327 1.19207 15.5432 1.23393 15.5571 1.28894C15.5849 1.39894 15.6262 1.56153 15.6802 1.7723C15.7883 2.19384 15.9474 2.80818 16.1518 3.58026C16.5604 5.12435 17.1501 7.29976 17.8743 9.82602C19.3221 14.8761 21.3106 21.3381 23.4684 26.963L24.4021 26.6049C22.2595 21.0198 20.2803 14.5899 18.8356 9.55043C18.1136 7.03195 17.5258 4.86325 17.1185 3.32441C16.9149 2.55503 16.7564 1.9432 16.6489 1.52394C16.5952 1.31431 16.5542 1.15283 16.5266 1.04388C16.5129 0.989408 16.5025 0.948065 16.4955 0.920403C16.492 0.906572 16.4894 0.896161 16.4877 0.889238C16.4868 0.885777 16.4862 0.883187 16.4858 0.881479C16.4855 0.880625 16.4854 0.879991 16.4853 0.879578C16.4852 0.879371 16.4852 0.879228 16.4852 0.879125C16.4851 0.879037 16.4851 0.879004 16 1ZM23.4684 26.963C25.6729 32.7094 28.1331 36.5898 30.0294 39.0236L30.8182 38.409C28.9819 36.0522 26.5707 32.2579 24.4021 26.6049L23.4684 26.963Z' fill='%23757575'/%3E%3C/svg%3E%0A");
86
85
  `;
87
-
86
+ */
88
87
  type Props = {
89
88
  programItems: ItemProps[];
90
89
  subjectCategories: subjectsProps['categories'];
@@ -119,14 +118,12 @@ const FrontpageProgramMenu = ({ programItems, subjectCategories, showBetaCursor
119
118
  <Button onClick={() => toggleSubjects(true)} lighter={!showSubjects} size="medium" borderShape="rounded">
120
119
  <StyledMenuItem>{t('frontpageMenu.allsubjects')}</StyledMenuItem>
121
120
  </Button>
122
-
123
121
  {showBetaCursor && (
124
122
  <CursorPlaceholder>
125
123
  <CursorWrapper>
126
124
  <LeftCursor hide={showSubjects} />
127
125
  <CursorTextWrapper>
128
126
  <CursorText>{t('frontpageMenu.cursorText')}</CursorText>
129
- <BottomCursor hide={!showSubjects} />
130
127
  </CursorTextWrapper>
131
128
  </CursorWrapper>
132
129
  </CursorPlaceholder>
@@ -7,8 +7,6 @@
7
7
  */
8
8
 
9
9
  import React, { ReactNode } from 'react';
10
- //@ts-ignore
11
- import classNames from 'classnames';
12
10
  import BEMHelper from 'react-bem-helper';
13
11
  import { WithTranslation, withTranslation } from 'react-i18next';
14
12
  import { DisplayOnPageYOffset } from '../Animation';
@@ -25,11 +23,8 @@ interface MastheadItemProps {
25
23
  left?: boolean;
26
24
  }
27
25
  export const MastheadItem = ({ children, className, left = false, right = false }: MastheadItemProps) => {
28
- const itemClassNames = classNames(
29
- { [classes('left').className]: left },
30
- { [classes('right').className]: right },
31
- className,
32
- );
26
+ const itemClassName = left ? 'left' : right ? 'right' : undefined;
27
+ const itemClassNames = itemClassName ? classes(itemClassName).className : undefined;
33
28
 
34
29
  return <div className={itemClassNames}>{children}</div>;
35
30
  };
@@ -313,6 +313,7 @@ const messages = {
313
313
  h5p: 'Interactive',
314
314
  },
315
315
  },
316
+
316
317
  messageBoxInfo: {
317
318
  outdatedCoursePlan:
318
319
  'This course is not updated to the current curriculum. Follow this link to find the updated version of the course: ',
@@ -326,6 +327,12 @@ const messages = {
326
327
  outdatedSubject: 'This topic is part of a course that is not updated to the current curriculum.',
327
328
  newVersion:
328
329
  'This learning resource is not updated to the current curriculum. You can find an updated version here: ',
330
+ frontPageBeta:
331
+ 'Coming subjects are adapted to the new curriculum valid from autumn 2022. Beta versions of subjects are subjects we are still working on. We hope, however, that the learning resources available by now may come in useful already.',
332
+ frontPageExpired:
333
+ 'Expired subjects are not being taught any longer, but it may still be possible to take exams in these subjects.',
334
+ frontPageRevised:
335
+ 'Revised subjects have been revised in accordance with the new curriculum that will be put into effect from August 2022.',
329
336
  },
330
337
  article: {
331
338
  edition: 'Edition',
@@ -594,6 +601,9 @@ const messages = {
594
601
  closeFilter: 'Close filter',
595
602
  heading: 'Filter',
596
603
  },
604
+ alphabet: {
605
+ letterFilter: 'Filter content by the letter {{letter}}.',
606
+ },
597
607
  },
598
608
  relatedLinks: {
599
609
  label: 'Related articles',
@@ -767,7 +777,7 @@ const messages = {
767
777
  },
768
778
  frontpageMultidisciplinarySubject: {
769
779
  heading: 'Interdisciplinary topics',
770
- text: 'The three interdisciplinary subjects in the curriculum are based on current societal challenges that require the involvement and efforts of individuals and the community in the local community, nationally and globally.',
780
+ text: 'The three interdisciplinary topics in the curriculum are based on current societal challenges that require the involvement and efforts of individuals and the community in the local community, nationally and globally.',
771
781
  linkText: 'See cases for multidisciplinary topics',
772
782
  publicHealthTopic: 'Public health and life management',
773
783
  democracyTopic: 'Democracy and citizenship',
@@ -777,7 +787,7 @@ const messages = {
777
787
  frontpageMenu: {
778
788
  program: 'Education programme',
779
789
  allsubjects: 'All subjects',
780
- cursorText: 'Preview new resources from Vg2-subjects to be released this autumn',
790
+ cursorText: 'Have a look at some new learning resources from our revised subjects!',
781
791
  },
782
792
  navigation: {
783
793
  showLongerDescription: 'Show topic description',
@@ -790,6 +800,10 @@ const messages = {
790
800
  multidisciplinarySubject: {
791
801
  subjectsLinksDescription: 'Case in',
792
802
  },
803
+ multibutton: {
804
+ open: 'Open menu',
805
+ close: 'Close menu',
806
+ },
793
807
  close: 'Close',
794
808
  title: 'Title',
795
809
  image: {
@@ -877,6 +891,10 @@ const messages = {
877
891
  },
878
892
  },
879
893
  checkOutNewFeature: 'New feature',
894
+ slateBlockMenu: {
895
+ open: 'Open menu',
896
+ close: 'Close menu',
897
+ },
880
898
  };
881
899
 
882
900
  export default messages;
@@ -312,6 +312,7 @@ const messages = {
312
312
  h5p: 'Interaktiv',
313
313
  },
314
314
  },
315
+
315
316
  messageBoxInfo: {
316
317
  outdatedCoursePlan:
317
318
  'Dette faget følger en utgått læreplan. Gå til faget som er oppdatert etter gjeldende læreplan:',
@@ -325,6 +326,11 @@ const messages = {
325
326
  outdatedSubject: 'Dette emnet hører til et fag som ikke er oppdatert etter gjeldende læreplan.',
326
327
  newVersion:
327
328
  'Denne læringsressursen er ikke oppdatert etter gjeldende læreplan. Du finner en oppdatert versjon her: ',
329
+ frontPageBeta:
330
+ 'Kommende fag er tilpassa ny læreplan som gjelder fra høsten 2022. Betafag er fag under arbeid. Vi håper likevel at læringsressursene i betafaga kan være nyttige allerede nå.',
331
+ frontPageExpired:
332
+ 'Utgåtte fag undervises det ikke i lenger, men det kan fortsatt være mulig å ta eksamen i faga som privatist.',
333
+ frontPageRevised: 'Kommende fag er tilpassa ny læreplan som gjelder fra høsten 2022.',
328
334
  },
329
335
  article: {
330
336
  lastUpdated: 'Sist oppdatert',
@@ -593,6 +599,9 @@ const messages = {
593
599
  closeFilter: 'Lukk filter',
594
600
  heading: 'Filter',
595
601
  },
602
+ alphabet: {
603
+ letterFilter: 'Vis innhald på (bokstaven) {{letter}}.',
604
+ },
596
605
  },
597
606
  relatedLinks: {
598
607
  label: 'Tilknyttede artikler',
@@ -776,7 +785,7 @@ const messages = {
776
785
  frontpageMenu: {
777
786
  program: 'Utdanningsprogram',
778
787
  allsubjects: 'Alle fag',
779
- cursorText: 'Se smakebiter fra nye ressurser i Vg2-fagene som kommer i høst',
788
+ cursorText: 'Se smakebiter fra fag som kommer høsten 2022.',
780
789
  },
781
790
  navigation: {
782
791
  showLongerDescription: 'Vis hele emnebeskrivelsen',
@@ -789,6 +798,10 @@ const messages = {
789
798
  multidisciplinarySubject: {
790
799
  subjectsLinksDescription: 'Case innen',
791
800
  },
801
+ multibutton: {
802
+ open: 'Åpne meny',
803
+ close: 'Lukk meny',
804
+ },
792
805
  close: 'Lukk',
793
806
  title: 'Tittel',
794
807
  image: {
@@ -876,6 +889,10 @@ const messages = {
876
889
  },
877
890
  },
878
891
  checkOutNewFeature: 'Sjekk ut ny funksjonalitet',
892
+ slateBlockMenu: {
893
+ open: 'Åpne meny',
894
+ close: 'Lukk meny',
895
+ },
879
896
  };
880
897
 
881
898
  export default messages;
@@ -313,6 +313,7 @@ const messages = {
313
313
  h5p: 'Interaktiv',
314
314
  },
315
315
  },
316
+
316
317
  messageBoxInfo: {
317
318
  outdatedCoursePlan:
318
319
  'Dette faget følgjer ein utgått læreplan. Gå til faget som er oppdatert etter gjeldande læreplan: ',
@@ -326,6 +327,11 @@ const messages = {
326
327
  outdatedSubject: 'Dette emnet høyrer til eit fag som ikkje er oppdatert etter gjeldande læreplan.',
327
328
  newVersion:
328
329
  'Denne læringsressursen er ikkje oppdatert etter gjeldande læreplan. Du finn ein oppdatert versjon her: ',
330
+ frontPageBeta:
331
+ 'Kommande fag er tilpassa ny læreplan som gjeld fra hausten 2022. Betafag er fag under arbeid. Vi håper likevel at læringsressursane i betafaga kan vere nyttige allereie no.',
332
+ frontPageExpired:
333
+ 'Utgåtte fag blir det ikkje undervist i lenger, men det kan framleis vere mogleg å ta eksamen i faget som privatist.',
334
+ frontPageRevised: 'Kommande fag er tilpassa ny læreplan som gjeld frå hausten 2022.',
329
335
  },
330
336
  article: {
331
337
  lastUpdated: 'Sist oppdatert',
@@ -594,6 +600,9 @@ const messages = {
594
600
  closeFilter: 'Lukk filter',
595
601
  heading: 'Filter',
596
602
  },
603
+ alphabet: {
604
+ letterFilter: 'Vis innhold på {{letter}}.',
605
+ },
597
606
  },
598
607
  relatedLinks: {
599
608
  label: 'Tilknytta artiklar',
@@ -777,7 +786,7 @@ const messages = {
777
786
  frontpageMenu: {
778
787
  program: 'Utdanningsprogram',
779
788
  allsubjects: 'Alle fag',
780
- cursorText: 'Sjå smakebitar frå nye ressursar i Vg2-faga som kjem i haust',
789
+ cursorText: 'Sjå smakebitar frå fag som kjem hausten 2022.',
781
790
  },
782
791
  navigation: {
783
792
  showLongerDescription: 'Vis heile emneskildringa',
@@ -790,6 +799,10 @@ const messages = {
790
799
  multidisciplinarySubject: {
791
800
  subjectsLinksDescription: 'Case innan',
792
801
  },
802
+ multibutton: {
803
+ open: 'Åpne meny',
804
+ close: 'Lukk meny',
805
+ },
793
806
  close: 'Lukk',
794
807
  title: 'Tittel',
795
808
  image: {
@@ -877,6 +890,10 @@ const messages = {
877
890
  },
878
891
  },
879
892
  checkOutNewFeature: 'Sjekk ut ny funksjonalitet',
893
+ slateBlockMenu: {
894
+ open: 'Åpne meny',
895
+ close: 'Lukk meny',
896
+ },
880
897
  };
881
898
 
882
899
  export default messages;