@ndla/ui 50.1.5 → 50.2.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 (84) hide show
  1. package/es/Embed/ConceptEmbed.js +28 -14
  2. package/es/Embed/FootnoteEmbed.js +7 -2
  3. package/es/Embed/conceptComponents.js +14 -10
  4. package/es/Filter/FilterCarousel.js +4 -4
  5. package/es/FrontpageArticle/FrontpageArticle.js +1 -1
  6. package/es/Gloss/Gloss.js +39 -34
  7. package/es/Gloss/GlossExample.js +62 -0
  8. package/es/Gloss/index.js +2 -1
  9. package/es/Resource/resourceComponents.js +11 -11
  10. package/es/ResourceGroup/ResourceItem.js +9 -9
  11. package/es/SearchTypeResult/ActiveFilters.js +6 -6
  12. package/es/TreeStructure/AddFolderButton.js +2 -2
  13. package/es/TreeStructure/FolderItem.js +7 -7
  14. package/es/TreeStructure/FolderItems.js +2 -2
  15. package/es/all.css +1 -1
  16. package/es/index.js +1 -1
  17. package/es/locale/messages-en.js +12 -6
  18. package/es/locale/messages-nb.js +11 -4
  19. package/es/locale/messages-nn.js +11 -4
  20. package/es/locale/messages-se.js +12 -5
  21. package/es/locale/messages-sma.js +14 -7
  22. package/es/model/index.js +1 -3
  23. package/lib/Embed/ConceptEmbed.d.ts +6 -2
  24. package/lib/Embed/ConceptEmbed.js +28 -14
  25. package/lib/Embed/FootnoteEmbed.js +8 -2
  26. package/lib/Embed/conceptComponents.d.ts +2 -0
  27. package/lib/Embed/conceptComponents.js +14 -10
  28. package/lib/Filter/FilterCarousel.js +4 -4
  29. package/lib/FrontpageArticle/FrontpageArticle.js +1 -1
  30. package/lib/Gloss/Gloss.d.ts +5 -14
  31. package/lib/Gloss/Gloss.js +39 -34
  32. package/lib/Gloss/GlossExample.d.ts +16 -0
  33. package/lib/Gloss/GlossExample.js +68 -0
  34. package/lib/Gloss/index.d.ts +1 -0
  35. package/lib/Gloss/index.js +7 -0
  36. package/lib/Resource/resourceComponents.js +11 -11
  37. package/lib/ResourceGroup/ResourceItem.js +9 -9
  38. package/lib/SearchTypeResult/ActiveFilters.js +6 -6
  39. package/lib/TreeStructure/AddFolderButton.js +2 -2
  40. package/lib/TreeStructure/FolderItem.js +7 -7
  41. package/lib/TreeStructure/FolderItems.js +2 -2
  42. package/lib/all.css +1 -1
  43. package/lib/index.d.ts +1 -1
  44. package/lib/index.js +6 -0
  45. package/lib/locale/messages-en.d.ts +9 -2
  46. package/lib/locale/messages-en.js +13 -8
  47. package/lib/locale/messages-nb.d.ts +8 -1
  48. package/lib/locale/messages-nb.js +11 -4
  49. package/lib/locale/messages-nn.d.ts +8 -1
  50. package/lib/locale/messages-nn.js +11 -4
  51. package/lib/locale/messages-se.d.ts +8 -1
  52. package/lib/locale/messages-se.js +12 -5
  53. package/lib/locale/messages-sma.d.ts +8 -1
  54. package/lib/locale/messages-sma.js +14 -7
  55. package/lib/model/index.d.ts +0 -2
  56. package/lib/model/index.js +1 -3
  57. package/package.json +5 -5
  58. package/src/Embed/ConceptEmbed.tsx +18 -0
  59. package/src/Embed/FootnoteEmbed.tsx +29 -3
  60. package/src/Embed/conceptComponents.tsx +6 -0
  61. package/src/Filter/FilterCarousel.tsx +3 -1
  62. package/src/FrontpageArticle/FrontpageArticle.tsx +1 -1
  63. package/src/Gloss/Gloss.tsx +41 -57
  64. package/src/Gloss/GlossExample.tsx +75 -0
  65. package/src/Gloss/index.tsx +1 -0
  66. package/src/Resource/resourceComponents.tsx +1 -1
  67. package/src/ResourceGroup/ResourceItem.tsx +3 -1
  68. package/src/SearchTypeResult/ActiveFilters.tsx +1 -3
  69. package/src/TreeStructure/AddFolderButton.tsx +2 -2
  70. package/src/TreeStructure/FolderItem.tsx +1 -1
  71. package/src/TreeStructure/FolderItems.tsx +2 -2
  72. package/src/index.ts +1 -1
  73. package/src/locale/messages-en.ts +10 -2
  74. package/src/locale/messages-nb.ts +9 -1
  75. package/src/locale/messages-nn.ts +9 -1
  76. package/src/locale/messages-se.ts +10 -2
  77. package/src/locale/messages-sma.ts +12 -4
  78. package/src/main.scss +0 -1
  79. package/src/model/index.ts +0 -2
  80. package/es/model/Transcriptions.js +0 -1
  81. package/lib/model/Transcriptions.d.ts +0 -11
  82. package/lib/model/Transcriptions.js +0 -5
  83. package/src/Article/component.footnotes.scss +0 -74
  84. package/src/model/Transcriptions.ts +0 -12
@@ -1140,7 +1140,9 @@ const messages = {
1140
1140
  folder: {
1141
1141
  folder: 'Máhppa',
1142
1142
  delete: 'Sihko máhpa',
1143
+ deleteShort: 'Sihko',
1143
1144
  edit: 'Rievdat máhpa',
1145
+ editShort: 'Rievdat',
1144
1146
  copy: 'Máŋge máhpa',
1145
1147
  open: 'Raba máhpa',
1146
1148
  close: 'Gidde máhpa',
@@ -1181,11 +1183,15 @@ const messages = {
1181
1183
  },
1182
1184
  button: {
1183
1185
  share: 'Juoge máhpa',
1184
- preview: 'Čájet ovdagihtii juogaduvvon máhpa',
1186
+ shareShort: 'Juoge',
1187
+ preview: 'Ovdačájehanmáhppa',
1188
+ previewShort: 'Ovdačájeheapmi',
1185
1189
  goTo: 'Mana juogaduvvon máhppii',
1186
1190
  unShare: 'Loahpat juogdeami',
1187
1191
  shareLink: 'Máŋge liŋkka',
1188
1192
  },
1193
+ previewInformation:
1194
+ 'Juohkejuvvon máhpa ovdačájeheapmi. Máhppa ii leat earáid olámuttos ovdal go ođasmahttá stáhtusa juohkehažžii.',
1189
1195
  },
1190
1196
  },
1191
1197
  arena: {
@@ -1259,9 +1265,9 @@ const messages = {
1259
1265
  'Bures boahtin NDLA Arenai. Dáppe sáhtát digaštallat, juogadit ja ovttasbargat eará oahpaheddjiiguin olles Norggas. Sierra fágaide ja fáttáide gávdnojit forumat.',
1260
1266
  myNotification: 'Mu signállat',
1261
1267
  markAll: 'Merke visot lohkon',
1262
- commentedOn: 'vástidedje du sáhkavuoru',
1263
1268
  subscribe: 'Don oaččut dál dieđu ođđa vástádusaid dán čállosii',
1264
1269
  unsubscribe: 'Don leat heaitán muittuheames ođđa vástádusaid dán čállosii',
1270
+ commentedOn: 'vástidii sáhkavuoru {{title}} maid don čuovvut',
1265
1271
  },
1266
1272
  topicsBy: 'Sáhkavuorru maid',
1267
1273
  },
@@ -1284,6 +1290,7 @@ const messages = {
1284
1290
  myTags: 'Mu fáddágilkorat',
1285
1291
  mySubjects: 'Mu fágat',
1286
1292
  newFolder: 'Ođđa máhppa',
1293
+ newFolderShort: 'Ođđa',
1287
1294
  newFolderUnder: 'Ráhkat ođđa máhpa dán vuolde {{folderName}}',
1288
1295
  myAccount: 'Mu kontu',
1289
1296
  favourites: 'Oiddohat',
@@ -1534,6 +1541,7 @@ const messages = {
1534
1541
  about: {
1535
1542
  menuTitle: 'NDLA birra',
1536
1543
  },
1544
+ login: 'Čálit sisa',
1537
1545
  };
1538
1546
 
1539
1547
  export default messages;
@@ -1141,8 +1141,10 @@ const messages = {
1141
1141
  showEditOptions: 'Vuesehth guktie edtja øørnedh',
1142
1142
  folder: {
1143
1143
  folder: 'Mappe',
1144
- delete: 'Slett mappe',
1145
- edit: 'Rediger mappe',
1144
+ delete: 'Maabpem sliejhtedh',
1145
+ deleteShort: 'Staeriedidh',
1146
+ edit: 'Maabpah staeriedidh',
1147
+ editShort: 'Rediger',
1146
1148
  copy: 'Kopier mappe',
1147
1149
  open: 'Åpne mappe',
1148
1150
  close: 'Lukk mappe',
@@ -1183,11 +1185,15 @@ const messages = {
1183
1185
  },
1184
1186
  button: {
1185
1187
  share: 'Juekieh maabpah',
1188
+ shareShort: 'Juekieh',
1186
1189
  preview: 'Maahpa åvtelhbodti vuartasjidh',
1190
+ previewShort: 'Åvtelhbodti soejkesjimmie',
1187
1191
  goTo: 'Vaedtsieh naemhtie juekedh mappine',
1188
1192
  unShare: 'Orrijh juekedh',
1189
1193
  shareLink: 'Lïenghkem kopijeradidh',
1190
1194
  },
1195
+ previewInformation:
1196
+ 'Åvtevuesiehtimmie juakeme maabpeste. Jeatjah eah maahta maabpam nåhtadidh åvtelen datne statusen bïjre orresth.',
1191
1197
  },
1192
1198
  },
1193
1199
  arena: {
@@ -1261,9 +1267,9 @@ const messages = {
1261
1267
  'Buerie båeteme NDLA Aernesne . Daesnie maahtah digkiedidh , juekedh jïh laavenjostedh jeatjah lohkehtæjjajgujmie abpe Nöörjeste . Datne gaavnh forume, ovmessie faagh jïh aamhtesh .',
1262
1268
  myNotification: 'Mov tjoejemolseme',
1263
1269
  markAll: 'Mïerhkesjh gaajhkesh dovnesh lohkeme',
1264
- commentedOn: 'vaestiedi gåessie dov saarnoeh',
1265
1270
  subscribe: 'Datne åadtjoeh daelie bïeljelimmiem orre vaestiedassi bïjre daan tjaalegasse',
1266
1271
  unsubscribe: 'Datne tjeakoeslaakan bïeljelamme jis orre vaestiedassh daan påastese',
1272
+ commentedOn: 'tjeakoes laakan vaestiedamme {{title}} maam datne dåarjoehtidh',
1267
1273
  },
1268
1274
  topicsBy: 'Vuesiehtimmien gaavhtan',
1269
1275
  },
@@ -1286,7 +1292,8 @@ const messages = {
1286
1292
  myFolders: 'Mine mapper',
1287
1293
  myTags: 'Mine emneknagger',
1288
1294
  mySubjects: 'Mine fag',
1289
- newFolder: 'Ny mappe',
1295
+ newFolder: 'Orre maabpe',
1296
+ newFolderShort: 'Orre',
1290
1297
  newFolderUnder: 'Lag ny mappe under {{folderName}}',
1291
1298
  myAccount: 'Min konto',
1292
1299
  favourites: 'Favoritter',
@@ -1538,6 +1545,7 @@ const messages = {
1538
1545
  about: {
1539
1546
  menuTitle: 'Om NDLA',
1540
1547
  },
1548
+ login: 'Tjaangh sïjse',
1541
1549
  };
1542
1550
 
1543
1551
  export default messages;
package/src/main.scss CHANGED
@@ -9,7 +9,6 @@
9
9
  @import 'Figure/component.figure-license';
10
10
  @import 'FactBox/component.factbox';
11
11
  @import 'Aside/component.aside';
12
- @import 'Article/component.footnotes';
13
12
  @import 'global/components/component.logo';
14
13
  @import 'MediaList/component.medialist';
15
14
  @import 'RelatedArticleList/component.related-articles';
@@ -10,7 +10,6 @@ import { contentTypes, contentTypeMapping, resourceEmbedTypeMapping } from './Co
10
10
  import * as subjectCategories from './SubjectCategories';
11
11
  import * as subjectTypes from './SubjectTypes';
12
12
  import * as wordClass from './WordClass';
13
- import * as Transcriptions from './Transcriptions';
14
13
 
15
14
  const model = {
16
15
  contentTypes,
@@ -19,7 +18,6 @@ const model = {
19
18
  contentTypeMapping,
20
19
  resourceEmbedTypeMapping,
21
20
  wordClass,
22
- Transcriptions,
23
21
  };
24
22
 
25
23
  export default model;
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * Copyright (c) 2023-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
- export interface Transcription {
9
- traditional?: string;
10
- pinyin?: string;
11
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,74 +0,0 @@
1
- /**
2
- ** FOOTNOTES
3
- **
4
- ** EXAMPLE:
5
- ** <ol class="c-footnotes">
6
- ** <li class="c-footnotes__item">
7
- ** <cite class="c-footnotes__cite">Tekst her</cite>
8
- ** </li>
9
- ** </ol>
10
- **/
11
-
12
- $highlight-color: $brand-grey--lighter;
13
-
14
- .c-footnotes {
15
- margin: $spacing--large 0 0 0;
16
- padding: $spacing--large 0 0 0;
17
- display: block;
18
- border-top: 2px solid $brand-grey--lighter;
19
- color: gray;
20
- @include font-size(15px, 1.6);
21
- }
22
- .c-footnotes__item {
23
- margin-bottom: $spacing--small;
24
- margin-left: 0;
25
- &:before {
26
- display: none;
27
- }
28
- }
29
-
30
- .c-footnotes__cite {
31
- position: relative;
32
- sup {
33
- position: absolute;
34
- left: -45px;
35
- top: -5px;
36
- a {
37
- padding: 10px 15px;
38
- box-shadow: none;
39
- text-decoration: underline;
40
- @include font-size(15px, 1.6);
41
-
42
- &:hover,
43
- &:active,
44
- &:focus {
45
- background-color: $highlight-color;
46
- text-decoration: underline;
47
- }
48
- }
49
- }
50
- }
51
-
52
- .c-footnotes__ref {
53
- &:target {
54
- background-color: $highlight-color;
55
- padding: 3px 4px;
56
- box-shadow: 4px 0 0 $highlight-color, -4px 0 0 $highlight-color;
57
- }
58
-
59
- sup {
60
- a {
61
- margin-left: -2px;
62
- padding: 10px 4px;
63
- box-shadow: none;
64
- text-decoration: underline;
65
-
66
- &:hover,
67
- &:active,
68
- &:focus {
69
- background-color: $highlight-color;
70
- text-decoration: underline;
71
- }
72
- }
73
- }
74
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * Copyright (c) 2023-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
- export interface Transcription {
10
- traditional?: string;
11
- pinyin?: string;
12
- }