@ndla/ui 50.9.3 → 50.9.5
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/Footer/Footer.js +15 -11
- package/es/Footer/FooterLinks.js +12 -9
- package/es/Navigation/NavigationBox.js +14 -14
- package/es/all.css +1 -1
- package/lib/Footer/Footer.js +15 -11
- package/lib/Footer/FooterLinks.js +12 -9
- package/lib/Navigation/NavigationBox.js +14 -14
- package/lib/all.css +1 -1
- package/package.json +17 -17
- package/src/Footer/Footer.tsx +5 -2
- package/src/Footer/FooterLinks.tsx +6 -4
- package/src/Navigation/NavigationBox.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/ui",
|
|
3
|
-
"version": "50.9.
|
|
3
|
+
"version": "50.9.5",
|
|
4
4
|
"description": "UI component library for NDLA.",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -31,23 +31,23 @@
|
|
|
31
31
|
"types"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ndla/accordion": "^3.0.
|
|
35
|
-
"@ndla/button": "^12.0.
|
|
36
|
-
"@ndla/carousel": "^4.0.
|
|
37
|
-
"@ndla/core": "^4.3.
|
|
38
|
-
"@ndla/dropdown-menu": "^1.0.
|
|
39
|
-
"@ndla/forms": "^5.2.
|
|
34
|
+
"@ndla/accordion": "^3.0.24",
|
|
35
|
+
"@ndla/button": "^12.0.29",
|
|
36
|
+
"@ndla/carousel": "^4.0.29",
|
|
37
|
+
"@ndla/core": "^4.3.7",
|
|
38
|
+
"@ndla/dropdown-menu": "^1.0.27",
|
|
39
|
+
"@ndla/forms": "^5.2.20",
|
|
40
40
|
"@ndla/hooks": "^2.1.5",
|
|
41
|
-
"@ndla/icons": "^5.0.
|
|
41
|
+
"@ndla/icons": "^5.0.8",
|
|
42
42
|
"@ndla/licenses": "^7.2.5",
|
|
43
|
-
"@ndla/modal": "^5.0.
|
|
44
|
-
"@ndla/notion": "^6.0.
|
|
45
|
-
"@ndla/safelink": "^4.1.
|
|
46
|
-
"@ndla/select": "^3.3.
|
|
47
|
-
"@ndla/switch": "^1.1.
|
|
48
|
-
"@ndla/tabs": "^3.2.
|
|
49
|
-
"@ndla/tooltip": "^6.0.
|
|
50
|
-
"@ndla/typography": "^0.4.
|
|
43
|
+
"@ndla/modal": "^5.0.28",
|
|
44
|
+
"@ndla/notion": "^6.0.29",
|
|
45
|
+
"@ndla/safelink": "^4.1.54",
|
|
46
|
+
"@ndla/select": "^3.3.3",
|
|
47
|
+
"@ndla/switch": "^1.1.33",
|
|
48
|
+
"@ndla/tabs": "^3.2.13",
|
|
49
|
+
"@ndla/tooltip": "^6.0.15",
|
|
50
|
+
"@ndla/typography": "^0.4.10",
|
|
51
51
|
"@ndla/util": "^4.0.4",
|
|
52
52
|
"@radix-ui/react-popover": "^1.0.7",
|
|
53
53
|
"@radix-ui/react-slider": "^1.1.2",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "8662822e5a1f4521c58caad125c525f353d7ade9"
|
|
85
85
|
}
|
package/src/Footer/Footer.tsx
CHANGED
|
@@ -11,6 +11,7 @@ import { useTranslation } from "react-i18next";
|
|
|
11
11
|
import styled from "@emotion/styled";
|
|
12
12
|
import { colors, spacing, fonts, mq, breakpoints, spacingUnit } from "@ndla/core";
|
|
13
13
|
import { FooterHeaderIcon } from "@ndla/icons/common";
|
|
14
|
+
import { Text } from "@ndla/typography";
|
|
14
15
|
import FooterLinks from "./FooterLinks";
|
|
15
16
|
import FooterPrivacy from "./FooterPrivacy";
|
|
16
17
|
import { OneColumn } from "../Layout";
|
|
@@ -42,7 +43,7 @@ const StyledOneColumn = styled(OneColumn)`
|
|
|
42
43
|
position: relative;
|
|
43
44
|
`;
|
|
44
45
|
|
|
45
|
-
const
|
|
46
|
+
const StyledText = styled(Text)`
|
|
46
47
|
${fonts.sizes(20, 1.5)};
|
|
47
48
|
margin: 0;
|
|
48
49
|
font-weight: ${fonts.weight.semibold};
|
|
@@ -147,7 +148,9 @@ const Footer = ({ children, commonLinks, links, languageSelector, auth, privacyL
|
|
|
147
148
|
<StyledFooterHeaderIcon />
|
|
148
149
|
</div>
|
|
149
150
|
<div>
|
|
150
|
-
<
|
|
151
|
+
<StyledText element="div" textStyle="content-alt" margin="none">
|
|
152
|
+
{t("footer.vision")}
|
|
153
|
+
</StyledText>
|
|
151
154
|
<FooterLinks commonLinks={commonLinks} links={links} />
|
|
152
155
|
</div>
|
|
153
156
|
</StyledColumns>
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
import { ReactNode } from "react";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
import styled from "@emotion/styled";
|
|
12
|
-
import { spacing, fonts, colors, mq, breakpoints
|
|
12
|
+
import { spacing, fonts, colors, mq, breakpoints } from "@ndla/core";
|
|
13
13
|
import { Forward, Launch } from "@ndla/icons/common";
|
|
14
14
|
import SafeLink from "@ndla/safelink";
|
|
15
|
+
import { Text } from "@ndla/typography";
|
|
15
16
|
|
|
16
17
|
const StyledLinksWrapper = styled.div`
|
|
17
18
|
display: flex;
|
|
@@ -85,10 +86,9 @@ const StyledSocialMediaLinkWrapper = styled.div`
|
|
|
85
86
|
align-items: center;
|
|
86
87
|
`;
|
|
87
88
|
|
|
88
|
-
const
|
|
89
|
+
const StyledTextLinks = styled(Text)`
|
|
89
90
|
${fonts.sizes(16, 1.5)};
|
|
90
91
|
font-weight: ${fonts.weight.semibold};
|
|
91
|
-
margin: ${spacing.xsmall} 0;
|
|
92
92
|
`;
|
|
93
93
|
|
|
94
94
|
const FooterLinks = ({ links, commonLinks }: FooterLinksProps) => {
|
|
@@ -97,7 +97,9 @@ const FooterLinks = ({ links, commonLinks }: FooterLinksProps) => {
|
|
|
97
97
|
<>
|
|
98
98
|
<StyledLinksWrapper>
|
|
99
99
|
<div>
|
|
100
|
-
<
|
|
100
|
+
<StyledTextLinks id="otherLinks" element="span" textStyle="content-alt">
|
|
101
|
+
{t("footer.linksHeader")}
|
|
102
|
+
</StyledTextLinks>
|
|
101
103
|
<StyledNav aria-labelledby="otherLinks">
|
|
102
104
|
{commonLinks?.map((link) => (
|
|
103
105
|
<div key={link.to}>
|
|
@@ -37,11 +37,11 @@ const StyledHeading = styled(Heading)`
|
|
|
37
37
|
const StyledList = styled.ul`
|
|
38
38
|
list-style: none;
|
|
39
39
|
padding: 0;
|
|
40
|
-
display: flex;
|
|
41
|
-
flex-direction: column;
|
|
42
40
|
gap: ${spacing.xxsmall};
|
|
43
41
|
|
|
44
42
|
&[data-direction="horizontal"] {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
45
|
${mq.range({ from: breakpoints.tablet })} {
|
|
46
46
|
column-count: 2;
|
|
47
47
|
gap: 20px;
|