@ndla/ui 50.1.6 → 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 +10 -5
  18. package/es/locale/messages-nb.js +9 -3
  19. package/es/locale/messages-nn.js +9 -3
  20. package/es/locale/messages-se.js +10 -4
  21. package/es/locale/messages-sma.js +12 -6
  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 +8 -2
  46. package/lib/locale/messages-en.js +11 -7
  47. package/lib/locale/messages-nb.d.ts +7 -1
  48. package/lib/locale/messages-nb.js +9 -3
  49. package/lib/locale/messages-nn.d.ts +7 -1
  50. package/lib/locale/messages-nn.js +9 -3
  51. package/lib/locale/messages-se.d.ts +7 -1
  52. package/lib/locale/messages-se.js +10 -4
  53. package/lib/locale/messages-sma.d.ts +7 -1
  54. package/lib/locale/messages-sma.js +12 -6
  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 +9 -2
  74. package/src/locale/messages-nb.ts +8 -1
  75. package/src/locale/messages-nn.ts +8 -1
  76. package/src/locale/messages-se.ts +9 -2
  77. package/src/locale/messages-sma.ts +11 -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
@@ -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
- }