@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "50.9.3",
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.23",
35
- "@ndla/button": "^12.0.28",
36
- "@ndla/carousel": "^4.0.28",
37
- "@ndla/core": "^4.3.6",
38
- "@ndla/dropdown-menu": "^1.0.26",
39
- "@ndla/forms": "^5.2.18",
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.7",
41
+ "@ndla/icons": "^5.0.8",
42
42
  "@ndla/licenses": "^7.2.5",
43
- "@ndla/modal": "^5.0.27",
44
- "@ndla/notion": "^6.0.28",
45
- "@ndla/safelink": "^4.1.53",
46
- "@ndla/select": "^3.3.2",
47
- "@ndla/switch": "^1.1.32",
48
- "@ndla/tabs": "^3.2.12",
49
- "@ndla/tooltip": "^6.0.14",
50
- "@ndla/typography": "^0.4.9",
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": "e5b1aee3ef691c324fb4c185b9be5353604a35a4"
84
+ "gitHead": "8662822e5a1f4521c58caad125c525f353d7ade9"
85
85
  }
@@ -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 StyledHeader = styled.h2`
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
- <StyledHeader>{t("footer.vision")}</StyledHeader>
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, spacingUnit } from "@ndla/core";
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 StyledHeaderLinks = styled.h3`
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
- <StyledHeaderLinks id="otherLinks">{t("footer.linksHeader")}</StyledHeaderLinks>
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;