@ndla/ui 4.0.0 → 4.0.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.
Files changed (116) hide show
  1. package/es/Article/ArticleAuthorContent.js +1 -2
  2. package/es/Article/ArticleByline.js +5 -6
  3. package/es/Article/ArticleHeaderWrapper.js +5 -6
  4. package/es/Article/ArticleSideBar.js +5 -6
  5. package/es/AudioPlayer/AudioPlayer.js +15 -16
  6. package/es/CompetenceGoalTab/CompetenceGoalTab.js +6 -7
  7. package/es/ErrorMessage/ErrorResourceAccessDenied.js +2 -3
  8. package/es/FactBox/FactBox.js +1 -2
  9. package/es/Figure/Figure.js +1 -2
  10. package/es/Filter/FilterButtons.js +9 -10
  11. package/es/Footer/FooterAuth.js +8 -9
  12. package/es/Frontpage/FrontpageProgramMenu.js +10 -11
  13. package/es/LanguageSelector/LanguageSelector.js +8 -9
  14. package/es/LearningPaths/LearningPathMenuModalWrapper.js +2 -3
  15. package/es/Masthead/MastheadAuthModal.js +1 -2
  16. package/es/Masthead/MastheadSearchModal.js +4 -5
  17. package/es/NDLAFilm/AboutNdlaFilm.js +2 -3
  18. package/es/Navigation/NavigationBox.js +23 -22
  19. package/es/Navigation/NavigationTopicAbout.js +15 -16
  20. package/es/NoContentBox/NoContentBox.js +1 -2
  21. package/es/Notion/Notion.js +5 -6
  22. package/es/Programme/ProgrammeSubjects.js +1 -2
  23. package/es/RelatedArticleList/RelatedArticleList.js +1 -2
  24. package/es/Search/ContentTypeResult.js +2 -3
  25. package/es/SearchTypeResult/ActiveFilterContent.js +2 -3
  26. package/es/SearchTypeResult/PopupFilter.js +9 -10
  27. package/es/SearchTypeResult/ResultNavigation.js +3 -4
  28. package/es/SearchTypeResult/SearchHeader.js +10 -11
  29. package/es/SearchTypeResult/SearchItem.js +18 -19
  30. package/es/SearchTypeResult/SearchNotionItem.js +13 -14
  31. package/es/SearchTypeResult/SearchTypeHeader.js +6 -7
  32. package/es/Topic/Topic.js +23 -28
  33. package/es/User/AuthModal.js +9 -10
  34. package/es/locale/messages-en.js +3 -0
  35. package/es/locale/messages-nb.js +3 -0
  36. package/es/locale/messages-nn.js +3 -0
  37. package/lib/Article/ArticleByline.js +4 -4
  38. package/lib/Article/ArticleHeaderWrapper.js +4 -4
  39. package/lib/Article/ArticleSideBar.js +4 -4
  40. package/lib/AudioPlayer/AudioPlayer.js +14 -14
  41. package/lib/CompetenceGoalTab/CompetenceGoalTab.js +5 -5
  42. package/lib/ErrorMessage/ErrorResourceAccessDenied.js +1 -2
  43. package/lib/Filter/FilterButtons.js +9 -9
  44. package/lib/Footer/FooterAuth.js +7 -7
  45. package/lib/Frontpage/FrontpageMultidisciplinarySubject.d.ts +5 -5
  46. package/lib/Frontpage/FrontpageProgramMenu.js +10 -10
  47. package/lib/Frontpage/illustrations/FrontpageIllustrations.d.ts +2 -2
  48. package/lib/LanguageSelector/LanguageSelector.js +7 -7
  49. package/lib/LearningPaths/LearningPathMenuModalWrapper.js +1 -2
  50. package/lib/Masthead/MastheadAuthModal.js +1 -1
  51. package/lib/Masthead/MastheadSearchModal.js +3 -4
  52. package/lib/MessageBox/MessageBox.d.ts +1 -1
  53. package/lib/MultidisciplinarySubject/Illustrations.d.ts +7 -7
  54. package/lib/NDLAFilm/AboutNdlaFilm.js +1 -2
  55. package/lib/Navigation/NavigationBox.js +22 -20
  56. package/lib/Navigation/NavigationTopicAbout.js +14 -14
  57. package/lib/NoContentBox/NoContentBox.js +0 -1
  58. package/lib/Notion/Notion.js +4 -4
  59. package/lib/Programme/ProgrammeSubjects.js +1 -2
  60. package/lib/Search/ContentTypeResult.js +1 -1
  61. package/lib/Search/ContentTypeResultStyles.d.ts +3 -3
  62. package/lib/SearchTypeResult/ActiveFilterContent.d.ts +1 -1
  63. package/lib/SearchTypeResult/ActiveFilterContent.js +1 -2
  64. package/lib/SearchTypeResult/PopupFilter.js +8 -8
  65. package/lib/SearchTypeResult/ResultNavigation.js +2 -3
  66. package/lib/SearchTypeResult/SearchHeader.d.ts +1 -1
  67. package/lib/SearchTypeResult/SearchHeader.js +9 -9
  68. package/lib/SearchTypeResult/SearchItem.js +17 -17
  69. package/lib/SearchTypeResult/SearchNotionItem.js +12 -12
  70. package/lib/SearchTypeResult/SearchTypeHeader.d.ts +1 -1
  71. package/lib/SearchTypeResult/SearchTypeHeader.js +6 -6
  72. package/lib/Topic/Topic.js +22 -26
  73. package/lib/User/AuthModal.js +8 -8
  74. package/lib/locale/messages-en.d.ts +3 -0
  75. package/lib/locale/messages-en.js +3 -0
  76. package/lib/locale/messages-nb.d.ts +3 -0
  77. package/lib/locale/messages-nb.js +3 -0
  78. package/lib/locale/messages-nn.d.ts +3 -0
  79. package/lib/locale/messages-nn.js +3 -0
  80. package/package.json +6 -6
  81. package/src/Article/ArticleAuthorContent.tsx +0 -1
  82. package/src/Article/ArticleByline.tsx +0 -1
  83. package/src/Article/ArticleHeaderWrapper.tsx +0 -1
  84. package/src/Article/ArticleSideBar.tsx +0 -1
  85. package/src/AudioPlayer/AudioPlayer.tsx +0 -1
  86. package/src/CompetenceGoalTab/CompetenceGoalTab.tsx +0 -1
  87. package/src/ErrorMessage/ErrorResourceAccessDenied.tsx +0 -1
  88. package/src/FactBox/FactBox.tsx +0 -1
  89. package/src/Figure/Figure.tsx +0 -1
  90. package/src/Filter/FilterButtons.tsx +0 -1
  91. package/src/Footer/FooterAuth.tsx +0 -1
  92. package/src/Frontpage/FrontpageProgramMenu.tsx +0 -1
  93. package/src/LanguageSelector/LanguageSelector.tsx +0 -1
  94. package/src/LearningPaths/LearningPathMenuModalWrapper.tsx +0 -1
  95. package/src/Masthead/MastheadAuthModal.tsx +1 -2
  96. package/src/Masthead/MastheadSearchModal.tsx +0 -1
  97. package/src/NDLAFilm/AboutNdlaFilm.tsx +0 -1
  98. package/src/Navigation/NavigationBox.tsx +1 -2
  99. package/src/Navigation/NavigationTopicAbout.tsx +0 -1
  100. package/src/NoContentBox/NoContentBox.tsx +0 -1
  101. package/src/Notion/Notion.tsx +0 -2
  102. package/src/Programme/ProgrammeSubjects.tsx +0 -1
  103. package/src/RelatedArticleList/RelatedArticleList.tsx +0 -1
  104. package/src/Search/ContentTypeResult.tsx +0 -1
  105. package/src/SearchTypeResult/ActiveFilterContent.tsx +0 -1
  106. package/src/SearchTypeResult/PopupFilter.tsx +0 -1
  107. package/src/SearchTypeResult/ResultNavigation.tsx +0 -1
  108. package/src/SearchTypeResult/SearchHeader.tsx +0 -1
  109. package/src/SearchTypeResult/SearchItem.tsx +0 -1
  110. package/src/SearchTypeResult/SearchNotionItem.tsx +0 -1
  111. package/src/SearchTypeResult/SearchTypeHeader.tsx +0 -1
  112. package/src/Topic/Topic.tsx +0 -5
  113. package/src/User/AuthModal.tsx +0 -1
  114. package/src/locale/messages-en.ts +3 -0
  115. package/src/locale/messages-nb.ts +3 -0
  116. package/src/locale/messages-nn.ts +3 -0
@@ -9,7 +9,6 @@
9
9
  import React from 'react';
10
10
  import styled from '@emotion/styled';
11
11
  import { ChevronDown } from '@ndla/icons/common';
12
- // @ts-ignore
13
12
  import Button from '@ndla/button';
14
13
  import { spacing } from '@ndla/core';
15
14
  import { useTranslation } from 'react-i18next';
@@ -10,7 +10,6 @@ import React, { FormEvent } from 'react';
10
10
  import styled from '@emotion/styled';
11
11
  import { breakpoints, fonts, mq, spacing } from '@ndla/core';
12
12
 
13
- // @ts-ignore
14
13
  import Button from '@ndla/button';
15
14
  import { WithTranslation, withTranslation } from 'react-i18next';
16
15
  import { FilterProps } from './ActiveFilterContent';
@@ -11,7 +11,6 @@ import styled from '@emotion/styled';
11
11
  import parse from 'html-react-parser';
12
12
  import { ChevronRight, Additional, Core } from '@ndla/icons/common';
13
13
  import SafeLink from '@ndla/safelink';
14
- // @ts-ignore
15
14
  import Button from '@ndla/button';
16
15
  import Modal, { ModalCloseButton } from '@ndla/modal';
17
16
 
@@ -12,7 +12,6 @@ import parse from 'html-react-parser';
12
12
 
13
13
  import { breakpoints, colors, fonts, mq, spacing } from '@ndla/core';
14
14
  import { getLicenseByAbbreviation } from '@ndla/licenses';
15
- // @ts-ignore
16
15
  import Button from '@ndla/button';
17
16
  import { Play } from '@ndla/icons/common';
18
17
  import { ArrowExpand } from '@ndla/icons/editor';
@@ -8,7 +8,6 @@
8
8
 
9
9
  import React, { MouseEvent, memo } from 'react'; // useMemo , { Children }
10
10
  import styled from '@emotion/styled';
11
- // @ts-ignore
12
11
  import Button from '@ndla/button';
13
12
  import { breakpoints, mq, spacing } from '@ndla/core';
14
13
  import { WithTranslation, withTranslation } from 'react-i18next';
@@ -13,7 +13,6 @@ import { animations, breakpoints, colors, fonts, mq, spacing } from '@ndla/core'
13
13
  import parse from 'html-react-parser';
14
14
  import { ChevronDown, ChevronUp, PlayCircleFilled } from '@ndla/icons/common';
15
15
  import Modal, { ModalCloseButton, ModalHeader, ModalBody } from '@ndla/modal';
16
- // @ts-ignore
17
16
  import Button from '@ndla/button';
18
17
  import { CursorClick, ExpandTwoArrows } from '@ndla/icons/action';
19
18
  import { css } from '@emotion/core';
@@ -280,8 +279,6 @@ const Topic = ({
280
279
  topic.image.focalPoint,
281
280
  )}`}
282
281
  alt={topic.image.alt}
283
- crop={topic.image.crop}
284
- focalPoint={topic.image.focalPoint}
285
282
  />
286
283
  <TopicHeaderOverlay />
287
284
  </ShowVisualElementWrapper>
@@ -318,8 +315,6 @@ const Topic = ({
318
315
  <TopicHeaderImage
319
316
  src={`${topic.image.url}?${makeSrcQueryString(400, topic.image.crop, topic.image.focalPoint)}`}
320
317
  alt={topic.image.alt}
321
- crop={topic.image.crop}
322
- focalPoint={topic.image.focalPoint}
323
318
  />
324
319
  )}
325
320
  </TopicHeaderVisualElementWrapper>
@@ -10,7 +10,6 @@ import React, { ReactElement, ReactNode } from 'react';
10
10
  import styled from '@emotion/styled';
11
11
  import { useTranslation } from 'react-i18next';
12
12
  import Modal, { ModalCloseButton } from '@ndla/modal';
13
- // @ts-ignore
14
13
  import Button from '@ndla/button';
15
14
  import { FeideText, LogIn, LogOut, HumanMaleBoard } from '@ndla/icons/common';
16
15
  import { fonts, spacing } from '@ndla/core';
@@ -474,6 +474,9 @@ const messages = {
474
474
  embed: 'Embed',
475
475
  embedCopied: 'Copied embed code!',
476
476
  copyText: {
477
+ now: 'now',
478
+ podcast: 'podcast',
479
+ by: 'by',
477
480
  internet: '[Internet]. ',
478
481
  noTitle: 'No title',
479
482
  downloadedFrom: 'Downloaded from: ',
@@ -395,6 +395,9 @@ const messages = {
395
395
  embed: 'Bygg inn',
396
396
  embedCopied: 'Kopierte innbyggingskode!',
397
397
  copyText: {
398
+ now: 'nå',
399
+ podcast: 'podkast',
400
+ by: 'av',
398
401
  internet: '[Internett]. ',
399
402
  noTitle: 'Uten tittel',
400
403
  downloadedFrom: 'Hentet fra: ',
@@ -396,6 +396,9 @@ const messages = {
396
396
  embed: 'Bygg inn',
397
397
  embedCopied: 'Kopierte innbyggingskode!',
398
398
  copyText: {
399
+ now: 'nå',
400
+ podcast: 'podkast',
401
+ by: 'av',
399
402
  internet: '[Internett]. ',
400
403
  noTitle: 'Utan tittel',
401
404
  downloadedFrom: 'Henta frå: ',