@ndla/ui 50.6.2 → 50.6.4

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.
@@ -1031,7 +1031,7 @@ const messages = {
1031
1031
  markAll: 'Mïerhkesjh gaajhkesh dovnesh lohkeme',
1032
1032
  subscribe: 'Datne åadtjoeh daelie bïeljelimmiem orre vaestiedassi bïjre daan tjaalegasse',
1033
1033
  unsubscribe: 'Datne tjeakoeslaakan bïeljelamme jis orre vaestiedassh daan påastese',
1034
- commentedOn: 'tjeakoes laakan vaestiedamme <i>{{title}}</i> maam datne dåarjoehtidh'
1034
+ commentedOn: 'tjeakoes laakan vaestiedamme <i>{{title}}</i>'
1035
1035
  },
1036
1036
  topicsBy: 'Vuesiehtimmien gaavhtan'
1037
1037
  },
@@ -1118,8 +1118,8 @@ const messages = {
1118
1118
  term3: 'NDLA forbeholder seg retten til å oppdatere eller slette utdaterte ressurser.'
1119
1119
  },
1120
1120
  recentFavourites: {
1121
- title: 'Nylig lagt til i mine favoritter',
1122
- link: 'Se alle mappene dine'
1121
+ title: 'Aadtjen mov maabpah lissiehtamme',
1122
+ link: 'Vuartesjh gaajhkide dov maabpide'
1123
1123
  },
1124
1124
  recentArenaPosts: {
1125
1125
  title: 'Nye innlegg i arenaen',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "50.6.2",
3
+ "version": "50.6.4",
4
4
  "description": "UI component library for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "01e39c5380bd6716fe0f0deaa0f095f6fc0f619c"
84
+ "gitHead": "8ad8fc4c040f6e1f5eb1587908c055f0332001b8"
85
85
  }
@@ -87,7 +87,7 @@ const BlogPost = ({ title, author, url, metaImage, headingLevel: Heading = 'h3',
87
87
  const href = getPossiblyRelativeUrl(url, path);
88
88
  return (
89
89
  <Container data-size={size} to={href}>
90
- <Heading className="blog-title" css={headingCss} lang={title.language}>
90
+ <Heading className="blog-title" css={headingCss} lang={title.language === 'nb' ? 'no' : title.language}>
91
91
  {title.title}
92
92
  </Heading>
93
93
  <StyledImg src={metaImage.url} alt={metaImage.alt} />
@@ -99,10 +99,12 @@ const CampaignBlock = ({
99
99
  <Container className={className} data-type="campaign-block" data-image-side={imageSide}>
100
100
  {image && <StyledImg src={image.src} height={200} width={240} alt={image.alt} />}
101
101
  <TextWrapper>
102
- <Heading css={headingStyle} lang={title.language}>
102
+ <Heading css={headingStyle} lang={title.language === 'nb' ? 'no' : title.language}>
103
103
  {title.title}
104
104
  </Heading>
105
- <StyledDescription lang={description.language}>{description.text}</StyledDescription>
105
+ <StyledDescription lang={description.language === 'nb' ? 'no' : description.language}>
106
+ {description.text}
107
+ </StyledDescription>
106
108
  <StyledLink to={href}>
107
109
  {url.text}
108
110
  <Forward />
@@ -21,14 +21,6 @@ const FileListSection = styled.section`
21
21
  padding: 0 0 ${spacing.normal} ${spacing.normal};
22
22
  border-left: 2px solid ${colors.brand.greyLightest};
23
23
  font-family: ${fonts.sans};
24
-
25
- [data-icon] {
26
- margin-top: 3px;
27
- flex-shrink: 0;
28
- margin-right: ${spacing.small};
29
- height: 18px;
30
- width: 18px;
31
- }
32
24
  `;
33
25
 
34
26
  const FileListHeaderWrapper = styled.div`
@@ -84,11 +84,10 @@ const LinkBlock = ({ title, language, date, url, path }: Props) => {
84
84
  const locale = language === 'nb' ? nb : language === 'nn' ? nn : enGB;
85
85
  return format(new Date(date), 'dd. LLLL yyyy', { locale });
86
86
  }, [date, language]);
87
-
88
87
  return (
89
88
  <StyledSafeLink to={href}>
90
89
  <InfoWrapper>
91
- <Heading element="h3" margin="none" headingStyle="h3" lang={language}>
90
+ <Heading element="h3" margin="none" headingStyle="h3" lang={language === 'nb' ? 'no' : language}>
92
91
  {title}
93
92
  </Heading>
94
93
  {date && (
@@ -244,7 +244,7 @@ const ResourceItem = ({
244
244
  <InlineContainer>
245
245
  <ResourceLink
246
246
  to={path}
247
- lang={language}
247
+ lang={language === 'nb' ? 'no' : language}
248
248
  aria-current={active ? 'page' : undefined}
249
249
  aria-describedby={describedBy}
250
250
  >
@@ -1041,7 +1041,7 @@ const messages = {
1041
1041
  markAll: 'Mark all as read',
1042
1042
  subscribe: 'You will now be notified of new replies to this topic',
1043
1043
  unsubscribe: 'You have turned off notification of new replies to this topic',
1044
- commentedOn: 'commented on the post <i>{{title}}</i> which you follow',
1044
+ commentedOn: 'commented on the post <i>{{title}}</i>',
1045
1045
  },
1046
1046
  topicsBy: 'Topics by',
1047
1047
  },
@@ -1133,7 +1133,7 @@ const messages = {
1133
1133
  feideWrongInfo:
1134
1134
  'If the information is incorrect, it has to be updated by the host organizationg or the school that the account is associated with. An overview of user support can be found here: feide.no/brukerstotte',
1135
1135
  recentFavourites: {
1136
- title: 'Recently added to my favourites',
1136
+ title: 'Recently added to my folders',
1137
1137
  link: 'View all of your folders',
1138
1138
  },
1139
1139
  recentArenaPosts: {
@@ -1040,7 +1040,7 @@ const messages = {
1040
1040
  markAll: 'Merk alle som lest',
1041
1041
  subscribe: 'Du får nå varsling om nye svar på dette innlegget',
1042
1042
  unsubscribe: 'Du har skrudd av varsling om nye svar på dette innlegget',
1043
- commentedOn: 'svarte på innlegget <i>{{title}}</i> som du følger',
1043
+ commentedOn: 'svarte på innlegget <i>{{title}}</i>',
1044
1044
  },
1045
1045
  topicsBy: 'Innlegg av',
1046
1046
  },
@@ -1128,8 +1128,8 @@ const messages = {
1128
1128
  term3: 'NDLA forbeholder seg retten til å oppdatere eller slette utdaterte ressurser.',
1129
1129
  },
1130
1130
  recentFavourites: {
1131
- title: 'Nylig lagt til i mine favoritter',
1132
- link: 'Se alle mappene dine',
1131
+ title: 'Nylig lagt til i mine mapper',
1132
+ link: 'Vuartesjh gaajhkide dov maabpide',
1133
1133
  },
1134
1134
  recentArenaPosts: {
1135
1135
  title: 'Nye innlegg i arenaen',
@@ -1040,7 +1040,7 @@ const messages = {
1040
1040
  markAll: 'Merk alle som lest',
1041
1041
  subscribe: 'Du får no varsling om nye svar på dette innlegget',
1042
1042
  unsubscribe: 'Du har skrudd av varsling om nye svar på dette innlegget',
1043
- commentedOn: 'svarte på innlegget <i>{{title}}</i> som du følger',
1043
+ commentedOn: 'svarte på innlegget <i>{{title}}</i>',
1044
1044
  },
1045
1045
  topicsBy: 'Innlegg av',
1046
1046
  },
@@ -1128,7 +1128,7 @@ const messages = {
1128
1128
  term3: 'NDLA tek atterhald om retten til å oppdatere eller slette utdaterte ressursar.',
1129
1129
  },
1130
1130
  recentFavourites: {
1131
- title: 'Nyleg lagt til i mine favorittar',
1131
+ title: 'Nyleg lagt til i mappene mine',
1132
1132
  link: 'Sjå alle mappene dine',
1133
1133
  },
1134
1134
  recentArenaPosts: {
@@ -1042,7 +1042,7 @@ const messages = {
1042
1042
  markAll: 'Merke visot lohkon',
1043
1043
  subscribe: 'Don oaččut dál dieđu ođđa vástádusaid dán čállosii',
1044
1044
  unsubscribe: 'Don leat heaitán muittuheames ođđa vástádusaid dán čállosii',
1045
- commentedOn: 'vástidii sáhkavuoru <i>{{title}}</i> maid don čuovvut',
1045
+ commentedOn: 'vástidii sáhkavuoru <i>{{title}}</i>',
1046
1046
  },
1047
1047
  topicsBy: 'Sáhkavuorru maid',
1048
1048
  },
@@ -1129,7 +1129,7 @@ const messages = {
1129
1129
  term3: 'NDLA bisuha rievtti ođasmahttit dahje sihkkut boarásmuvvan resurssaid.',
1130
1130
  },
1131
1131
  recentFavourites: {
1132
- title: 'Easka lasihuvvon favorihtaide',
1132
+ title: 'Easka lasihuvvon mu máhpaide',
1133
1133
  link: 'Čájet buot máhpaid',
1134
1134
  },
1135
1135
  recentArenaPosts: {
@@ -1044,7 +1044,7 @@ const messages = {
1044
1044
  markAll: 'Mïerhkesjh gaajhkesh dovnesh lohkeme',
1045
1045
  subscribe: 'Datne åadtjoeh daelie bïeljelimmiem orre vaestiedassi bïjre daan tjaalegasse',
1046
1046
  unsubscribe: 'Datne tjeakoeslaakan bïeljelamme jis orre vaestiedassh daan påastese',
1047
- commentedOn: 'tjeakoes laakan vaestiedamme <i>{{title}}</i> maam datne dåarjoehtidh',
1047
+ commentedOn: 'tjeakoes laakan vaestiedamme <i>{{title}}</i>',
1048
1048
  },
1049
1049
  topicsBy: 'Vuesiehtimmien gaavhtan',
1050
1050
  },
@@ -1133,8 +1133,8 @@ const messages = {
1133
1133
  term3: 'NDLA forbeholder seg retten til å oppdatere eller slette utdaterte ressurser.',
1134
1134
  },
1135
1135
  recentFavourites: {
1136
- title: 'Nylig lagt til i mine favoritter',
1137
- link: 'Se alle mappene dine',
1136
+ title: 'Aadtjen mov maabpah lissiehtamme',
1137
+ link: 'Vuartesjh gaajhkide dov maabpide',
1138
1138
  },
1139
1139
  recentArenaPosts: {
1140
1140
  title: 'Nye innlegg i arenaen',