@ndla/ui 22.2.0 → 22.3.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.
- package/es/Animation/DisplayOnPageYOffset.js +1 -1
- package/es/Article/Article.js +3 -3
- package/es/Article/ArticleByline.js +5 -6
- package/es/Breadcrumb/ActionBreadcrumb.js +3 -3
- package/es/Figure/FigureOpenDialogButton.js +1 -2
- package/es/Filter/FilterListPhone.js +1 -1
- package/es/Frontpage/FrontpageProgramMenu.js +10 -11
- package/es/NDLAFilm/AllMoviesAlphabetically.js +12 -12
- package/es/ResourceGroup/ResourceItem.js +13 -13
- package/es/ResourceGroup/ResourceList.js +3 -3
- package/es/Search/ActiveFilters.js +18 -18
- package/es/Search/SearchPage.js +1 -1
- package/es/SearchTypeResult/ActiveFilters.js +18 -18
- package/es/SearchTypeResult/SearchFieldHeader.js +5 -6
- package/es/TopicMenu/TopicMenu.js +1 -1
- package/es/locale/messages-en.js +2 -0
- package/es/locale/messages-nb.js +2 -0
- package/es/locale/messages-nn.js +2 -0
- package/es/locale/messages-se.js +2 -0
- package/es/locale/messages-sma.js +2 -0
- package/lib/Animation/DisplayOnPageYOffset.js +2 -2
- package/lib/Article/Article.js +4 -4
- package/lib/Article/ArticleByline.js +4 -4
- package/lib/Breadcrumb/ActionBreadcrumb.js +3 -3
- package/lib/Filter/FilterListPhone.js +2 -2
- package/lib/Frontpage/FrontpageProgramMenu.js +9 -9
- package/lib/NDLAFilm/AllMoviesAlphabetically.js +13 -13
- package/lib/ResourceGroup/ResourceItem.js +12 -14
- package/lib/ResourceGroup/ResourceList.js +2 -4
- package/lib/Search/ActiveFilters.js +30 -32
- package/lib/Search/SearchPage.js +2 -2
- package/lib/SearchTypeResult/ActiveFilters.js +37 -39
- package/lib/SearchTypeResult/SearchFieldHeader.js +6 -6
- package/lib/TopicMenu/TopicMenu.js +2 -2
- package/lib/locale/messages-en.d.ts +2 -0
- package/lib/locale/messages-en.js +2 -0
- package/lib/locale/messages-nb.d.ts +2 -0
- package/lib/locale/messages-nb.js +2 -0
- package/lib/locale/messages-nn.d.ts +2 -0
- package/lib/locale/messages-nn.js +2 -0
- package/lib/locale/messages-se.d.ts +2 -0
- package/lib/locale/messages-se.js +2 -0
- package/lib/locale/messages-sma.d.ts +2 -0
- package/lib/locale/messages-sma.js +2 -0
- package/package.json +17 -16
- package/src/Animation/DisplayOnPageYOffset.tsx +1 -1
- package/src/Article/Article.tsx +1 -1
- package/src/Article/ArticleByline.tsx +1 -2
- package/src/Breadcrumb/ActionBreadcrumb.tsx +1 -2
- package/src/Figure/FigureOpenDialogButton.tsx +1 -2
- package/src/Filter/FilterListPhone.jsx +1 -1
- package/src/Frontpage/FrontpageProgramMenu.tsx +1 -2
- package/src/NDLAFilm/AllMoviesAlphabetically.tsx +1 -1
- package/src/ResourceGroup/ResourceItem.tsx +1 -1
- package/src/ResourceGroup/ResourceList.tsx +1 -1
- package/src/Search/ActiveFilters.jsx +1 -1
- package/src/Search/SearchPage.jsx +1 -1
- package/src/SearchTypeResult/ActiveFilters.tsx +1 -1
- package/src/SearchTypeResult/SearchFieldHeader.tsx +1 -2
- package/src/TopicMenu/TopicMenu.jsx +1 -1
- package/src/locale/messages-en.ts +2 -0
- package/src/locale/messages-nb.ts +2 -0
- package/src/locale/messages-nn.ts +2 -0
- package/src/locale/messages-se.ts +2 -0
- package/src/locale/messages-sma.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/ui",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.3.0",
|
|
4
4
|
"description": "UI component library for NDLA.",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -31,21 +31,22 @@
|
|
|
31
31
|
"types"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ndla/
|
|
35
|
-
"@ndla/
|
|
36
|
-
"@ndla/
|
|
37
|
-
"@ndla/
|
|
38
|
-
"@ndla/
|
|
39
|
-
"@ndla/
|
|
40
|
-
"@ndla/
|
|
41
|
-
"@ndla/
|
|
42
|
-
"@ndla/
|
|
43
|
-
"@ndla/
|
|
44
|
-
"@ndla/
|
|
45
|
-
"@ndla/
|
|
46
|
-
"@ndla/
|
|
34
|
+
"@ndla/article-scripts": "^3.0.1",
|
|
35
|
+
"@ndla/button": "^3.3.1",
|
|
36
|
+
"@ndla/carousel": "^1.2.16",
|
|
37
|
+
"@ndla/core": "^2.3.4",
|
|
38
|
+
"@ndla/forms": "^3.1.4",
|
|
39
|
+
"@ndla/hooks": "^1.1.5",
|
|
40
|
+
"@ndla/icons": "^1.11.4",
|
|
41
|
+
"@ndla/licenses": "^5.0.7",
|
|
42
|
+
"@ndla/modal": "^1.2.18",
|
|
43
|
+
"@ndla/notion": "^3.1.30",
|
|
44
|
+
"@ndla/safelink": "^2.2.7",
|
|
45
|
+
"@ndla/switch": "^0.1.11",
|
|
46
|
+
"@ndla/tabs": "^1.1.15",
|
|
47
|
+
"@ndla/tooltip": "^2.1.6",
|
|
47
48
|
"@ndla/types-learningpath-api": "^0.0.12",
|
|
48
|
-
"@ndla/util": "^3.0.
|
|
49
|
+
"@ndla/util": "^3.0.1",
|
|
49
50
|
"@reach/menu-button": "^0.16.2",
|
|
50
51
|
"@reach/slider": "^0.16.0",
|
|
51
52
|
"focus-trap-react": "^8.9.2",
|
|
@@ -84,5 +85,5 @@
|
|
|
84
85
|
"publishConfig": {
|
|
85
86
|
"access": "public"
|
|
86
87
|
},
|
|
87
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "1c8439d413eefda014a9438d78a34c1639194321"
|
|
88
89
|
}
|
package/src/Article/Article.tsx
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import React, { ComponentType, ReactNode, useEffect, useRef, useState, forwardRef } from 'react';
|
|
10
10
|
import BEMHelper from 'react-bem-helper';
|
|
11
|
-
import isString from 'lodash
|
|
11
|
+
import { isString } from 'lodash';
|
|
12
12
|
import parse from 'html-react-parser';
|
|
13
13
|
import styled from '@emotion/styled';
|
|
14
14
|
|
|
@@ -13,8 +13,7 @@ import Button, { CopyButton } from '@ndla/button';
|
|
|
13
13
|
import { colors, fonts, spacing } from '@ndla/core';
|
|
14
14
|
import { copyTextToClipboard, printPage } from '@ndla/util';
|
|
15
15
|
import { useTranslation } from 'react-i18next';
|
|
16
|
-
import { LicenseByline } from '@ndla/licenses';
|
|
17
|
-
import { getLicenseByAbbreviation } from '@ndla/licenses';
|
|
16
|
+
import { LicenseByline, getLicenseByAbbreviation } from '@ndla/licenses';
|
|
18
17
|
import { TFunction } from 'i18next';
|
|
19
18
|
|
|
20
19
|
const Wrapper = styled.div`
|
|
@@ -11,8 +11,7 @@ import { colors, fonts, spacing } from '@ndla/core';
|
|
|
11
11
|
import { ChevronRight } from '@ndla/icons/common';
|
|
12
12
|
import SafeLink from '@ndla/safelink';
|
|
13
13
|
import React from 'react';
|
|
14
|
-
import { MenuButton } from '@ndla/button';
|
|
15
|
-
import { MenuItemProps } from '@ndla/button';
|
|
14
|
+
import { MenuButton, MenuItemProps } from '@ndla/button';
|
|
16
15
|
import Breadcrumb from './Breadcrumb';
|
|
17
16
|
import { IndexedBreadcrumbItem, SimpleBreadcrumbItem } from './BreadcrumbItem';
|
|
18
17
|
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { Play } from '@ndla/icons/common';
|
|
11
|
-
import { ExpandTwoArrows } from '@ndla/icons/action';
|
|
12
|
-
import { CursorClick } from '@ndla/icons/action';
|
|
11
|
+
import { ExpandTwoArrows, CursorClick } from '@ndla/icons/action';
|
|
13
12
|
|
|
14
13
|
interface Props {
|
|
15
14
|
type?: 'image' | 'video' | 'h5p' | 'iframe' | 'external';
|
|
@@ -12,7 +12,7 @@ import { ChevronDown, ChevronUp } from '@ndla/icons/common';
|
|
|
12
12
|
import { Cross } from '@ndla/icons/action';
|
|
13
13
|
import Modal, { ModalHeader, ModalBody, ModalCloseButton } from '@ndla/modal';
|
|
14
14
|
import Button from '@ndla/button';
|
|
15
|
-
import debounce from 'lodash
|
|
15
|
+
import { debounce } from 'lodash';
|
|
16
16
|
import { classes } from './filterClasses';
|
|
17
17
|
import ToggleItem from './ToggleItem';
|
|
18
18
|
import ActiveFilters from '../Search/ActiveFilters';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import Button from '@ndla/button';
|
|
4
|
-
import { fonts } from '@ndla/core';
|
|
5
|
-
import { breakpoints, mq } from '@ndla/core';
|
|
4
|
+
import { fonts, breakpoints, mq } from '@ndla/core';
|
|
6
5
|
import { useTranslation } from 'react-i18next';
|
|
7
6
|
import NavigationBox, { ItemProps } from '../Navigation/NavigationBox';
|
|
8
7
|
import FrontpageAllSubjects, { subjectsProps } from './FrontpageAllSubjects';
|
|
@@ -10,7 +10,7 @@ import React, { Fragment, RefObject, useEffect, useRef, useState } from 'react';
|
|
|
10
10
|
import { isIE, browserVersion } from 'react-device-detect';
|
|
11
11
|
import styled from '@emotion/styled';
|
|
12
12
|
import { css } from '@emotion/core';
|
|
13
|
-
import throttle from 'lodash
|
|
13
|
+
import { throttle } from 'lodash';
|
|
14
14
|
import { breakpoints, mq, spacing, spacingUnit, colors, fonts, animations } from '@ndla/core';
|
|
15
15
|
import SafeLink from '@ndla/safelink';
|
|
16
16
|
import { makeSrcQueryString } from '../Image';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { useTranslation } from 'react-i18next';
|
|
11
11
|
import styled from '@emotion/styled';
|
|
12
|
-
import css from '@emotion/
|
|
12
|
+
import { css } from '@emotion/core';
|
|
13
13
|
import { keyframes } from '@emotion/core';
|
|
14
14
|
import SafeLink from '@ndla/safelink';
|
|
15
15
|
import { Additional, Core, HumanMaleBoard } from '@ndla/icons/common';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import styled from '@emotion/styled';
|
|
11
|
-
import css from '@emotion/
|
|
11
|
+
import { css } from '@emotion/core';
|
|
12
12
|
import { keyframes } from '@emotion/core';
|
|
13
13
|
import { useTranslation } from 'react-i18next';
|
|
14
14
|
import NoContentBox from '../NoContentBox';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
import css from '@emotion/
|
|
4
|
+
import { css } from '@emotion/core';
|
|
5
5
|
import { spacing, mq, breakpoints } from '@ndla/core';
|
|
6
6
|
import Tooltip from '@ndla/tooltip';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
@@ -2,7 +2,7 @@ import React, { Component, Fragment, createRef } from 'react';
|
|
|
2
2
|
import BEMHelper from 'react-bem-helper';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { Back } from '@ndla/icons/common';
|
|
5
|
-
import debounce from 'lodash
|
|
5
|
+
import { debounce } from 'lodash';
|
|
6
6
|
import { getCurrentBreakpoint, breakpoints } from '@ndla/util';
|
|
7
7
|
import Modal, { ModalHeader, ModalBody, ModalCloseButton } from '@ndla/modal';
|
|
8
8
|
import Button from '@ndla/button';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import React, { ReactElement } from 'react';
|
|
10
10
|
import { useTranslation } from 'react-i18next';
|
|
11
11
|
import styled from '@emotion/styled';
|
|
12
|
-
import css from '@emotion/
|
|
12
|
+
import { css } from '@emotion/core';
|
|
13
13
|
import { spacing, mq, breakpoints } from '@ndla/core';
|
|
14
14
|
import Tooltip from '@ndla/tooltip';
|
|
15
15
|
import Button from '@ndla/button';
|
|
@@ -7,9 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import React, { FormEvent, useRef, useState } from 'react';
|
|
9
9
|
import styled from '@emotion/styled';
|
|
10
|
-
import { colors } from '@ndla/core';
|
|
11
10
|
import { Search as SearchIcon } from '@ndla/icons/common';
|
|
12
|
-
import { spacing } from '@ndla/core';
|
|
11
|
+
import { spacing, colors } from '@ndla/core';
|
|
13
12
|
import { Cross as CrossIcon } from '@ndla/icons/action';
|
|
14
13
|
|
|
15
14
|
import { useTranslation } from 'react-i18next';
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import React, { Fragment, useEffect, useState } from 'react';
|
|
13
13
|
import PropTypes from 'prop-types';
|
|
14
14
|
import BEMHelper from 'react-bem-helper';
|
|
15
|
-
import debounce from 'lodash
|
|
15
|
+
import { debounce } from 'lodash';
|
|
16
16
|
|
|
17
17
|
import { Home, Back, Additional, ChevronRight } from '@ndla/icons/common';
|
|
18
18
|
import { Cross } from '@ndla/icons/action';
|
|
@@ -1025,6 +1025,8 @@ const messages = {
|
|
|
1025
1025
|
detailView: 'Detailed listview',
|
|
1026
1026
|
shortView: 'Short view',
|
|
1027
1027
|
myPage: {
|
|
1028
|
+
confirmDeleteAccount: 'Are you sure you want to delete your account?',
|
|
1029
|
+
confirmDeleteAccountButton: 'Delete account',
|
|
1028
1030
|
myPage: 'My page',
|
|
1029
1031
|
logout: 'Log out of My NDLA',
|
|
1030
1032
|
loginTerms: 'Log in with Feide to receive access. By logging on your accept your terms of service',
|
|
@@ -1023,6 +1023,8 @@ const messages = {
|
|
|
1023
1023
|
detailView: 'Detaljrik listevisning',
|
|
1024
1024
|
shortView: 'Kort visning',
|
|
1025
1025
|
myPage: {
|
|
1026
|
+
confirmDeleteAccount: 'Er du sikker på at du vil slette kontoen?',
|
|
1027
|
+
confirmDeleteAccountButton: 'Slett konto',
|
|
1026
1028
|
myPage: 'Min side',
|
|
1027
1029
|
deleteAccount: 'Slett Min NDLA',
|
|
1028
1030
|
logout: 'Logg ut av Min NDLA',
|
|
@@ -1024,6 +1024,8 @@ const messages = {
|
|
|
1024
1024
|
detailView: 'Detaljrik listevisning',
|
|
1025
1025
|
shortView: 'Kort visning',
|
|
1026
1026
|
myPage: {
|
|
1027
|
+
confirmDeleteAccount: 'Er du sikker på at du vil slette kontoen?',
|
|
1028
|
+
confirmDeleteAccountButton: 'Slett konto',
|
|
1027
1029
|
myPage: 'Min side',
|
|
1028
1030
|
deleteAccount: 'Slett Min NDLA',
|
|
1029
1031
|
logout: 'Logg ut av Min NDLA',
|
|
@@ -1023,6 +1023,8 @@ const messages = {
|
|
|
1023
1023
|
detailView: 'Detaljrik listevisning',
|
|
1024
1024
|
shortView: 'Kort visning',
|
|
1025
1025
|
myPage: {
|
|
1026
|
+
confirmDeleteAccount: 'Er du sikker på at du vil slette kontoen?',
|
|
1027
|
+
confirmDeleteAccountButton: 'Slett konto',
|
|
1026
1028
|
myPage: 'Min side',
|
|
1027
1029
|
deleteAccount: 'Slett Min NDLA',
|
|
1028
1030
|
logout: 'Logg ut av Min NDLA',
|
|
@@ -1023,6 +1023,8 @@ const messages = {
|
|
|
1023
1023
|
detailView: 'Detaljrik listevisning',
|
|
1024
1024
|
shortView: 'Kort visning',
|
|
1025
1025
|
myPage: {
|
|
1026
|
+
confirmDeleteAccount: 'Er du sikker på at du vil slette kontoen?',
|
|
1027
|
+
confirmDeleteAccountButton: 'Slett konto',
|
|
1026
1028
|
myPage: 'Min side',
|
|
1027
1029
|
deleteAccount: 'Slett Min NDLA',
|
|
1028
1030
|
logout: 'Logg ut av Min NDLA',
|