uikit-react-public 0.43.1 → 0.43.4

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 (64) hide show
  1. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +23 -6
  2. package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -4
  3. package/dist/components/Breadcrumbs/index.d.ts +3 -0
  4. package/dist/components/Paragraph/Paragraph.d.ts +1 -1
  5. package/dist/components/index.d.ts +3 -0
  6. package/dist/index.js +5459 -5222
  7. package/lib/components/Accordion/Accordion.Heading.tsx +0 -2
  8. package/lib/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap +2 -2
  9. package/lib/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +4 -4
  10. package/lib/components/Avatar/Avatar.tsx +7 -1
  11. package/lib/components/Avatar/__tests__/__snapshots__/Avatar.test.tsx.snap +12 -12
  12. package/lib/components/Badge/Badge.tsx +6 -11
  13. package/lib/components/Badge/__tests__/__snapshots__/Badge.test.tsx.snap +9 -9
  14. package/lib/components/Breadcrumbs/Breadcrumbs.tsx +166 -7
  15. package/lib/components/Breadcrumbs/index.ts +3 -0
  16. package/lib/components/Button/Button.tsx +11 -7
  17. package/lib/components/Button/__tests__/__snapshots__/Button.test.tsx.snap +9 -9
  18. package/lib/components/Calendar/__tests__/__snapshots__/Calendar.test.tsx.snap +18 -18
  19. package/lib/components/Calendar/subcomponents/AcademicWeek.tsx +7 -5
  20. package/lib/components/Calendar/subcomponents/ColumnHeading.tsx +12 -7
  21. package/lib/components/Calendar/subcomponents/ControlsSelect.tsx +11 -6
  22. package/lib/components/Checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap +2 -2
  23. package/lib/components/Datepicker/__tests__/__snapshots__/Datepicker.test.tsx.snap +2 -2
  24. package/lib/components/DrawerMenu/DrawerMenu.tsx +4 -3
  25. package/lib/components/DropdownMenu/DropdownMenu.tsx +4 -3
  26. package/lib/components/DropdownUserMenu/DropdownUserMenu.tsx +8 -5
  27. package/lib/components/Field/CharacterCount.tsx +7 -6
  28. package/lib/components/Field/ErrorText.tsx +7 -6
  29. package/lib/components/FileInput/FileInput.tsx +11 -3
  30. package/lib/components/FileInput/__tests__/__snapshots__/FileInput.test.tsx.snap +4 -4
  31. package/lib/components/Footer/Footer.tsx +16 -3
  32. package/lib/components/Footer/FooterColumn.tsx +9 -4
  33. package/lib/components/Footer/__tests__/__snapshots__/Footer.test.tsx.snap +13 -11
  34. package/lib/components/FooterNew/BackToTop.tsx +12 -4
  35. package/lib/components/FooterNew/FooterColumn.tsx +4 -0
  36. package/lib/components/FooterNew/FooterNavLink.tsx +12 -6
  37. package/lib/components/FooterNew/LegalAndCopyright.tsx +11 -6
  38. package/lib/components/FooterNew/LogoAddressAndSocial.tsx +27 -15
  39. package/lib/components/FooterNew/__tests__/__snapshots__/Footer.test.tsx.snap +32 -26
  40. package/lib/components/HeaderDraft/HeaderBottomBreadcrumbs.tsx +6 -1
  41. package/lib/components/HeaderDraft/HeaderBottomHeadingAndAvatar.tsx +19 -8
  42. package/lib/components/HeaderDraft/HeaderBreadcrumb.tsx +11 -2
  43. package/lib/components/HeaderDraft/HeaderDraft.tsx +16 -5
  44. package/lib/components/HeaderDraft/__tests__/__snapshots__/Header.test.tsx.snap +7 -7
  45. package/lib/components/HeaderNew/HeaderItem.tsx +6 -0
  46. package/lib/components/Input/__tests__/__snapshots__/Input.test.tsx.snap +4 -4
  47. package/lib/components/Menu/MenuContent.tsx +9 -1
  48. package/lib/components/NativeDatepicker/NativeDatepicker.tsx +6 -2
  49. package/lib/components/Pagination/PaginationInfo.tsx +8 -6
  50. package/lib/components/Pagination/subcomponents/PaginationCompactControls.tsx +8 -2
  51. package/lib/components/Pagination/subcomponents/PaginationStandardControls.tsx +2 -1
  52. package/lib/components/Paragraph/Paragraph.tsx +6 -4
  53. package/lib/components/Paragraph/__tests__/Paragraph.test.tsx +1 -1
  54. package/lib/components/Paragraph/__tests__/__snapshots__/Paragraph.test.tsx.snap +9 -9
  55. package/lib/components/Radio/__tests__/__snapshots__/Radio.test.tsx.snap +2 -2
  56. package/lib/components/Search/__tests__/__snapshots__/Search.test.tsx.snap +2 -2
  57. package/lib/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +1 -1
  58. package/lib/components/Table/subcomponents/Cell/__tests__/__snapshots__/Cell.test.tsx.snap +2 -2
  59. package/lib/components/Table/subcomponents/HeadCell/__tests__/__snapshots__/HeadCell.test.tsx.snap +1 -1
  60. package/lib/components/Textarea/__tests__/__snapshots__/Textarea.test.tsx.snap +4 -4
  61. package/lib/components/Tooltip/Tooltip.tsx +5 -8
  62. package/lib/components/Tooltip/__tests__/__snapshots__/tooltip.test.tsx.snap +2 -2
  63. package/lib/components/index.ts +4 -0
  64. package/package.json +2 -2
@@ -41,7 +41,7 @@ exports[`Calendar > Snapshot: no date provided 1`] = `
41
41
  aria-expanded="false"
42
42
  aria-haspopup="listbox"
43
43
  aria-label="Month"
44
- class="ucl-uikit-select css-10nht8r"
44
+ class="ucl-uikit-select css-njh36g"
45
45
  data-testid="ucl-uikit-select"
46
46
  role="combobox"
47
47
  tabindex="0"
@@ -88,7 +88,7 @@ exports[`Calendar > Snapshot: no date provided 1`] = `
88
88
  aria-expanded="false"
89
89
  aria-haspopup="listbox"
90
90
  aria-label="Year"
91
- class="ucl-uikit-select css-10nht8r"
91
+ class="ucl-uikit-select css-njh36g"
92
92
  data-testid="ucl-uikit-select"
93
93
  role="combobox"
94
94
  tabindex="0"
@@ -162,43 +162,43 @@ exports[`Calendar > Snapshot: no date provided 1`] = `
162
162
  data-testid="ucl-uikit-calendar__grid"
163
163
  >
164
164
  <div
165
- class="ucl-uikit-calendar__column-heading css-76sg87"
165
+ class="ucl-uikit-paragraph ucl-uikit-calendar__column-heading css-9cfwur"
166
166
  data-testid="ucl-uikit-calendar__column-heading"
167
167
  >
168
168
  M
169
169
  </div>
170
170
  <div
171
- class="ucl-uikit-calendar__column-heading css-76sg87"
171
+ class="ucl-uikit-paragraph ucl-uikit-calendar__column-heading css-9cfwur"
172
172
  data-testid="ucl-uikit-calendar__column-heading"
173
173
  >
174
174
  T
175
175
  </div>
176
176
  <div
177
- class="ucl-uikit-calendar__column-heading css-76sg87"
177
+ class="ucl-uikit-paragraph ucl-uikit-calendar__column-heading css-9cfwur"
178
178
  data-testid="ucl-uikit-calendar__column-heading"
179
179
  >
180
180
  W
181
181
  </div>
182
182
  <div
183
- class="ucl-uikit-calendar__column-heading css-76sg87"
183
+ class="ucl-uikit-paragraph ucl-uikit-calendar__column-heading css-9cfwur"
184
184
  data-testid="ucl-uikit-calendar__column-heading"
185
185
  >
186
186
  T
187
187
  </div>
188
188
  <div
189
- class="ucl-uikit-calendar__column-heading css-76sg87"
189
+ class="ucl-uikit-paragraph ucl-uikit-calendar__column-heading css-9cfwur"
190
190
  data-testid="ucl-uikit-calendar__column-heading"
191
191
  >
192
192
  F
193
193
  </div>
194
194
  <div
195
- class="ucl-uikit-calendar__column-heading css-11w8me4"
195
+ class="ucl-uikit-paragraph ucl-uikit-calendar__column-heading css-1yk7pei"
196
196
  data-testid="ucl-uikit-calendar__column-heading"
197
197
  >
198
198
  S
199
199
  </div>
200
200
  <div
201
- class="ucl-uikit-calendar__column-heading css-11w8me4"
201
+ class="ucl-uikit-paragraph ucl-uikit-calendar__column-heading css-1yk7pei"
202
202
  data-testid="ucl-uikit-calendar__column-heading"
203
203
  >
204
204
  S
@@ -795,7 +795,7 @@ exports[`Calendar > Snapshot: with date provided 1`] = `
795
795
  aria-expanded="false"
796
796
  aria-haspopup="listbox"
797
797
  aria-label="Month"
798
- class="ucl-uikit-select css-10nht8r"
798
+ class="ucl-uikit-select css-njh36g"
799
799
  data-testid="ucl-uikit-select"
800
800
  role="combobox"
801
801
  tabindex="0"
@@ -842,7 +842,7 @@ exports[`Calendar > Snapshot: with date provided 1`] = `
842
842
  aria-expanded="false"
843
843
  aria-haspopup="listbox"
844
844
  aria-label="Year"
845
- class="ucl-uikit-select css-10nht8r"
845
+ class="ucl-uikit-select css-njh36g"
846
846
  data-testid="ucl-uikit-select"
847
847
  role="combobox"
848
848
  tabindex="0"
@@ -916,43 +916,43 @@ exports[`Calendar > Snapshot: with date provided 1`] = `
916
916
  data-testid="ucl-uikit-calendar__grid"
917
917
  >
918
918
  <div
919
- class="ucl-uikit-calendar__column-heading css-76sg87"
919
+ class="ucl-uikit-paragraph ucl-uikit-calendar__column-heading css-9cfwur"
920
920
  data-testid="ucl-uikit-calendar__column-heading"
921
921
  >
922
922
  M
923
923
  </div>
924
924
  <div
925
- class="ucl-uikit-calendar__column-heading css-76sg87"
925
+ class="ucl-uikit-paragraph ucl-uikit-calendar__column-heading css-9cfwur"
926
926
  data-testid="ucl-uikit-calendar__column-heading"
927
927
  >
928
928
  T
929
929
  </div>
930
930
  <div
931
- class="ucl-uikit-calendar__column-heading css-76sg87"
931
+ class="ucl-uikit-paragraph ucl-uikit-calendar__column-heading css-9cfwur"
932
932
  data-testid="ucl-uikit-calendar__column-heading"
933
933
  >
934
934
  W
935
935
  </div>
936
936
  <div
937
- class="ucl-uikit-calendar__column-heading css-76sg87"
937
+ class="ucl-uikit-paragraph ucl-uikit-calendar__column-heading css-9cfwur"
938
938
  data-testid="ucl-uikit-calendar__column-heading"
939
939
  >
940
940
  T
941
941
  </div>
942
942
  <div
943
- class="ucl-uikit-calendar__column-heading css-76sg87"
943
+ class="ucl-uikit-paragraph ucl-uikit-calendar__column-heading css-9cfwur"
944
944
  data-testid="ucl-uikit-calendar__column-heading"
945
945
  >
946
946
  F
947
947
  </div>
948
948
  <div
949
- class="ucl-uikit-calendar__column-heading css-11w8me4"
949
+ class="ucl-uikit-paragraph ucl-uikit-calendar__column-heading css-1yk7pei"
950
950
  data-testid="ucl-uikit-calendar__column-heading"
951
951
  >
952
952
  S
953
953
  </div>
954
954
  <div
955
- class="ucl-uikit-calendar__column-heading css-11w8me4"
955
+ class="ucl-uikit-paragraph ucl-uikit-calendar__column-heading css-1yk7pei"
956
956
  data-testid="ucl-uikit-calendar__column-heading"
957
957
  >
958
958
  S
@@ -1,5 +1,6 @@
1
1
  import { css, cx } from '@emotion/css';
2
2
  import { useTheme } from '../../../theme';
3
+ import Paragraph from '../../Paragraph';
3
4
 
4
5
  const NAME = 'ucl-uikit-calendar__academic-week';
5
6
 
@@ -16,20 +17,21 @@ const AcademicWeek = ({ weekNumber }: AcademicWeekProps) => {
16
17
  justify-content: center;
17
18
  width: 100%;
18
19
  height: 40px;
19
- font-family: ${theme.font.family.primary};
20
- font-size: ${theme.font.size.f14};
21
20
  color: ${theme.colour.text.brandPrimary};
22
21
  `;
23
22
 
24
23
  const style = cx(NAME, baseStyle);
25
24
 
26
25
  return (
27
- <div
28
- data-testid={NAME}
26
+ <Paragraph
27
+ as='div'
28
+ level='sm'
29
+ noMargins
30
+ testId={NAME}
29
31
  className={style}
30
32
  >
31
33
  {weekNumber && 'W ' + weekNumber.toString().padStart(2, '0')}
32
- </div>
34
+ </Paragraph>
33
35
  );
34
36
  };
35
37
 
@@ -1,5 +1,6 @@
1
1
  import { css, cx } from '@emotion/css';
2
2
  import { useTheme } from '../../../theme';
3
+ import Paragraph from '../../Paragraph';
3
4
 
4
5
  interface ColumnHeadingProps {
5
6
  index: number;
@@ -18,22 +19,26 @@ const ColumnHeading = ({ index, day, isWeekend }: ColumnHeadingProps) => {
18
19
  justify-content: center;
19
20
  width: 40px;
20
21
  height: 32px;
21
- color: ${isWeekend
22
- ? theme.colour.text.warningOnBgFill
23
- : theme.colour.text.secondary};
24
- font-weight: 700;
22
+ color: ${
23
+ isWeekend
24
+ ? theme.colour.text.warningOnBgFill
25
+ : theme.colour.text.secondary
26
+ };
25
27
  `;
26
28
 
27
29
  const style = cx(NAME, baseStyle);
28
30
 
29
31
  return (
30
- <div
32
+ <Paragraph
33
+ as='div'
34
+ level='md-semibold'
35
+ noMargins
31
36
  className={style}
32
- data-testid={NAME}
37
+ testId={NAME}
33
38
  key={index}
34
39
  >
35
40
  {day}
36
- </div>
41
+ </Paragraph>
37
42
  );
38
43
  };
39
44
 
@@ -17,6 +17,7 @@ const ControlsSelect = <T extends string | number>({
17
17
  onValueChange,
18
18
  }: ControlsSelectProps<T>) => {
19
19
  const [theme] = useTheme();
20
+ const { md, mdSemibold } = theme.typography.body;
20
21
 
21
22
  const selectStyle = css`
22
23
  && {
@@ -27,10 +28,11 @@ const ControlsSelect = <T extends string | number>({
27
28
  padding: 0;
28
29
  border: 0;
29
30
  background-color: transparent;
30
- font-family: ${theme.font.family.primary};
31
- font-size: ${theme.font.size.f16};
32
- font-weight: 700;
33
- line-height: 20px;
31
+ font-family: ${mdSemibold.fontFamily};
32
+ font-feature-settings: ${mdSemibold.fontSettings};
33
+ font-size: ${mdSemibold.fontSize}px;
34
+ font-weight: ${mdSemibold.fontWeight};
35
+ line-height: ${mdSemibold.lineHeight}%;
34
36
 
35
37
  &:focus-visible,
36
38
  &:focus-within {
@@ -60,8 +62,11 @@ const ControlsSelect = <T extends string | number>({
60
62
  const optionStyle = css`
61
63
  min-height: 48px;
62
64
  padding: 12px ${theme.padding.p16};
63
- font-weight: 400;
64
- line-height: ${theme.font.lineHeight.h150};
65
+ font-family: ${md.fontFamily};
66
+ font-feature-settings: ${md.fontSettings};
67
+ font-size: ${md.fontSize}px;
68
+ font-weight: ${md.fontWeight};
69
+ line-height: ${md.lineHeight}%;
65
70
  `;
66
71
 
67
72
  return (
@@ -77,7 +77,7 @@ exports[`Checkbox > snapshot: indeterminate prop 1`] = `
77
77
 
78
78
  exports[`Checkbox > snapshot: no props 1`] = `
79
79
  <span
80
- class="ucl-uikit-base-checkbox ucl-uikit-checkbox css-tfrbiv"
80
+ class="ucl-uikit-base-checkbox ucl-uikit-checkbox css-qoivhx"
81
81
  data-testid="ucl-uikit-checkbox__root"
82
82
  >
83
83
  <input
@@ -94,7 +94,7 @@ exports[`Checkbox > snapshot: no props 1`] = `
94
94
 
95
95
  exports[`Checkbox > snapshot: testId prop 1`] = `
96
96
  <span
97
- class="ucl-uikit-base-checkbox ucl-uikit-checkbox css-tfrbiv"
97
+ class="ucl-uikit-base-checkbox ucl-uikit-checkbox css-qoivhx"
98
98
  data-testid="test123__root"
99
99
  >
100
100
  <input
@@ -6,7 +6,7 @@ exports[`Datepicker > Snapshot: no date provided 1`] = `
6
6
  data-testid="ucl-uikit-datepicker"
7
7
  >
8
8
  <div
9
- class="ucl-uikit-datepicker__visible-field css-j8089z"
9
+ class="ucl-uikit-datepicker__visible-field css-2ui4ji"
10
10
  data-testid="ucl-uikit-datepicker__visible-field"
11
11
  >
12
12
  <input
@@ -61,7 +61,7 @@ exports[`Datepicker > Snapshot: with date provided 1`] = `
61
61
  data-testid="ucl-uikit-datepicker"
62
62
  >
63
63
  <div
64
- class="ucl-uikit-datepicker__visible-field css-j8089z"
64
+ class="ucl-uikit-datepicker__visible-field css-2ui4ji"
65
65
  data-testid="ucl-uikit-datepicker__visible-field"
66
66
  >
67
67
  <input
@@ -13,8 +13,7 @@ export interface DrawerMenuChildrenApi {
13
13
  }
14
14
 
15
15
  type DrawerMenuChildren =
16
- | ReactNode
17
- | ((api: DrawerMenuChildrenApi) => ReactNode);
16
+ ReactNode | ((api: DrawerMenuChildrenApi) => ReactNode);
18
17
 
19
18
  export interface DrawerMenuProps
20
19
  extends
@@ -74,8 +73,10 @@ const DrawerMenu = ({
74
73
  const triggerStyle = css`
75
74
  color: ${theme.colour.text.brandPrimary};
76
75
  font-family: ${theme.typography.body.mdNumeric.fontFamily};
76
+ font-feature-settings: ${theme.typography.body.mdNumeric.fontSettings};
77
+ font-size: ${theme.typography.body.mdNumeric.fontSize}px;
77
78
  font-weight: ${theme.typography.body.mdNumeric.fontWeight};
78
- font-size: 14px;
79
+ line-height: ${theme.typography.body.mdNumeric.lineHeight}%;
79
80
  `;
80
81
 
81
82
  const dropdownStyle = cx(NAME, dropdownClassName);
@@ -13,8 +13,7 @@ export interface DropdownMenuChildrenApi {
13
13
  }
14
14
 
15
15
  type DropdownMenuChildren =
16
- | ReactNode
17
- | ((api: DropdownMenuChildrenApi) => ReactNode);
16
+ ReactNode | ((api: DropdownMenuChildrenApi) => ReactNode);
18
17
 
19
18
  export interface DropdownMenuProps
20
19
  extends
@@ -64,8 +63,10 @@ const DropdownMenu = ({
64
63
  const triggerStyle = css`
65
64
  color: ${theme.colour.text.brandPrimary};
66
65
  font-family: ${theme.typography.body.mdNumeric.fontFamily};
66
+ font-feature-settings: ${theme.typography.body.mdNumeric.fontSettings};
67
+ font-size: ${theme.typography.body.mdNumeric.fontSize}px;
67
68
  font-weight: ${theme.typography.body.mdNumeric.fontWeight};
68
- font-size: 14px;
69
+ line-height: ${theme.typography.body.mdNumeric.lineHeight}%;
69
70
  `;
70
71
 
71
72
  const dropdownStyle = cx(NAME, dropdownClassName);
@@ -3,6 +3,7 @@ import { css, cx } from '@emotion/css';
3
3
  import Dropdown, { DropdownProps } from '../Dropdown';
4
4
  import Avatar, { AvatarProps } from '../Avatar';
5
5
  import Icon from '../Icon';
6
+ import Text from '../Text';
6
7
  import useTheme from '../../theme/useTheme';
7
8
  import useMediaQuery from '../../hooks/useMediaQuery';
8
9
 
@@ -67,10 +68,7 @@ const DropdownUserMenu = ({
67
68
  `;
68
69
 
69
70
  const userNameStyle = css`
70
- font-family: ${theme.typography.body.md.fontFamily};
71
- font-feature-settings: ${theme.typography.body.md.fontSettings};
72
- font-size: ${theme.typography.body.md.fontSize}px;
73
- line-height: 1.2;
71
+ color: inherit;
74
72
  white-space: nowrap;
75
73
  `;
76
74
 
@@ -111,7 +109,12 @@ const DropdownUserMenu = ({
111
109
  className={resolvedTriggerClassName}
112
110
  >
113
111
  {isDesktop ? (
114
- <span className={resolvedUserNameClassName}>{userName}</span>
112
+ <Text
113
+ level='md'
114
+ className={resolvedUserNameClassName}
115
+ >
116
+ {userName}
117
+ </Text>
115
118
  ) : null}
116
119
  <Avatar
117
120
  tabIndex={-1}
@@ -2,6 +2,7 @@ import { HTMLAttributes, use } from 'react';
2
2
  import { css, cx } from '@emotion/css';
3
3
  import { FieldContext } from './Field';
4
4
  import { useTheme } from '../../theme';
5
+ import Paragraph from '../Paragraph';
5
6
 
6
7
  const NAME = 'ucl-uikit-field__char-count';
7
8
 
@@ -22,9 +23,6 @@ const CharacaterCount = ({
22
23
 
23
24
  const baseStyle = css`
24
25
  color: ${theme.colour.text.secondary};
25
- font-size: ${theme.font.size.f14};
26
- font-family: ${theme.font.family.primary};
27
- line-height: ${theme.font.lineHeight.h120};
28
26
  text-align: right;
29
27
  `;
30
28
 
@@ -35,13 +33,16 @@ const CharacaterCount = ({
35
33
  const style = cx(NAME, baseStyle, disabled && disabledStyle, className);
36
34
 
37
35
  return (
38
- <div
36
+ <Paragraph
37
+ as='div'
38
+ level='sm'
39
+ noMargins
39
40
  className={style}
40
- data-testid={testId}
41
+ testId={testId}
41
42
  {...props}
42
43
  >
43
44
  {charCount}/{maxChars}
44
- </div>
45
+ </Paragraph>
45
46
  );
46
47
  };
47
48
 
@@ -3,6 +3,7 @@ import { css, cx } from '@emotion/css';
3
3
  import { FieldContext } from './Field';
4
4
  import { Icon } from '../';
5
5
  import { useTheme } from '../../theme';
6
+ import Paragraph from '../Paragraph';
6
7
 
7
8
  const NAME = 'ucl-uikit-field__error-text';
8
9
 
@@ -27,9 +28,6 @@ const ErrorText = ({
27
28
  gap: 8px;
28
29
  margin-top: 8px;
29
30
  color: ${theme.colour.text.critical};
30
- font-family: ${theme.font.family.primary};
31
- font-size: ${theme.font.size.f14};
32
- line-height: ${theme.font.lineHeight.h120};
33
31
  `;
34
32
 
35
33
  // Prevents the icon getting squished by lots of text
@@ -41,15 +39,18 @@ const ErrorText = ({
41
39
  const style = cx(NAME, baseStyle, className);
42
40
 
43
41
  return (
44
- <div
42
+ <Paragraph
43
+ as='div'
44
+ level='sm'
45
+ noMargins
45
46
  className={style}
46
- data-testid={testId}
47
+ testId={testId}
47
48
  {...props}
48
49
  role='alert'
49
50
  >
50
51
  <Icon.Info className={iconStyle} />
51
52
  {children}
52
- </div>
53
+ </Paragraph>
53
54
  );
54
55
  };
55
56
 
@@ -19,10 +19,14 @@ const FileInput = ({
19
19
  }: FileInputProps) => {
20
20
  const [theme] = useTheme();
21
21
  const fileInputRef = useRef<HTMLInputElement>(null);
22
+ const { md, mdSemibold } = theme.typography.body;
22
23
 
23
24
  const baseStyle = css`
24
- font-size: ${theme.font.size.f16};
25
- font-family: ${theme.font.family.primary};
25
+ font-family: ${md.fontFamily};
26
+ font-feature-settings: ${md.fontSettings};
27
+ font-size: ${md.fontSize}px;
28
+ font-weight: ${md.fontWeight};
29
+ line-height: ${md.lineHeight}%;
26
30
  color: ${theme.colour.link.default};
27
31
  `;
28
32
 
@@ -37,7 +41,11 @@ const FileInput = ({
37
41
  display: inline-flex;
38
42
  text-decoration: underline;
39
43
  gap: 6px;
40
- font-weight: 700;
44
+ font-family: ${mdSemibold.fontFamily};
45
+ font-feature-settings: ${mdSemibold.fontSettings};
46
+ font-size: ${mdSemibold.fontSize}px;
47
+ font-weight: ${mdSemibold.fontWeight};
48
+ line-height: ${mdSemibold.lineHeight}%;
41
49
  margin-top: 3px;
42
50
  cursor: pointer;
43
51
  `;
@@ -2,10 +2,10 @@
2
2
 
3
3
  exports[`Input > snapshot: no props 1`] = `
4
4
  <div
5
- class="ucl-uikit-fileinput css-1ubxuij"
5
+ class="ucl-uikit-fileinput css-1aikphx"
6
6
  >
7
7
  <label
8
- class="css-1lc9iag"
8
+ class="css-iffx76"
9
9
  for="file-input-1"
10
10
  >
11
11
  <svg
@@ -39,10 +39,10 @@ exports[`Input > snapshot: no props 1`] = `
39
39
 
40
40
  exports[`Input > snapshot: value prop 1`] = `
41
41
  <div
42
- class="ucl-uikit-fileinput css-1ubxuij"
42
+ class="ucl-uikit-fileinput css-1aikphx"
43
43
  >
44
44
  <label
45
- class="css-1lc9iag"
45
+ class="css-iffx76"
46
46
  for="file-input-1"
47
47
  >
48
48
  <svg
@@ -40,12 +40,16 @@ const LegacyFooter = ({
40
40
  const copyrightYear = new Date().getFullYear();
41
41
 
42
42
  const [theme] = useTheme();
43
+ const footerTypography = theme.typography.body.sm;
43
44
 
44
45
  const baseStyle = css`
45
46
  background-color: ${theme.color.neutral.grey90};
46
47
  color: ${theme.color.text.inverted};
47
- font-family: ${theme.font.family.primary};
48
- font-weight: 300;
48
+ font-family: ${footerTypography.fontFamily};
49
+ font-feature-settings: ${footerTypography.fontSettings};
50
+ font-size: ${footerTypography.fontSize}px;
51
+ font-weight: ${footerTypography.fontWeight};
52
+ line-height: ${footerTypography.lineHeight}%;
49
53
  padding: ${theme.padding.p40} 0 ${theme.padding.p40};
50
54
  `;
51
55
 
@@ -102,7 +106,11 @@ const LegacyFooter = ({
102
106
  color: ${theme.color.neutral.grey20};
103
107
  display: flex;
104
108
  flex-direction: column;
105
- font-size: ${theme.font.size.f14};
109
+ font-family: ${footerTypography.fontFamily};
110
+ font-feature-settings: ${footerTypography.fontSettings};
111
+ font-size: ${footerTypography.fontSize}px;
112
+ font-weight: ${footerTypography.fontWeight};
113
+ line-height: ${footerTypography.lineHeight}%;
106
114
 
107
115
  @media screen and (min-width: ${theme.breakpoints.tablet}px) {
108
116
  flex-direction: row;
@@ -148,6 +156,11 @@ const LegacyFooter = ({
148
156
  padding: ${theme.padding.p8} 0;
149
157
  display: flex;
150
158
  flex-direction: column;
159
+ font-family: ${footerTypography.fontFamily};
160
+ font-feature-settings: ${footerTypography.fontSettings};
161
+ font-size: ${footerTypography.fontSize}px;
162
+ font-weight: ${footerTypography.fontWeight};
163
+ line-height: ${footerTypography.lineHeight}%;
151
164
 
152
165
  @media screen and (min-width: ${theme.breakpoints.tablet}px) {
153
166
  flex-direction: row;
@@ -1,6 +1,7 @@
1
1
  import { memo, HTMLAttributes } from 'react';
2
2
  import { css, cx } from '@emotion/css';
3
3
  import { useTheme } from '../../theme';
4
+ import Heading from '../Heading';
4
5
 
5
6
  export const NAME = 'ucl-uikit-footer__column';
6
7
 
@@ -32,9 +33,6 @@ const FooterColumn = ({
32
33
 
33
34
  const headingStyle = css`
34
35
  margin: 0 0 ${theme.margin.m12};
35
- font-family: ${theme.font.family.primary};
36
- font-weight: 600;
37
- font-size: ${theme.font.size.f20};
38
36
  `;
39
37
 
40
38
  return (
@@ -43,7 +41,14 @@ const FooterColumn = ({
43
41
  data-testid={testId}
44
42
  {...props}
45
43
  >
46
- <h3 className={headingStyle}>{heading}</h3>
44
+ <Heading
45
+ as='h3'
46
+ level='xs'
47
+ margins={false}
48
+ className={headingStyle}
49
+ >
50
+ {heading}
51
+ </Heading>
47
52
 
48
53
  {children}
49
54
  </div>
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports[`Footer > snapshot: footer links provided 1`] = `
4
4
  <footer
5
- class="ucl-uikit-footer css-mq639a"
5
+ class="ucl-uikit-footer css-1if83z3"
6
6
  data-testid="ucl-uikit-footer"
7
7
  >
8
8
  <div
@@ -227,7 +227,7 @@ exports[`Footer > snapshot: footer links provided 1`] = `
227
227
  role="separator"
228
228
  />
229
229
  <div
230
- class="css-1ah386p"
230
+ class="css-s55e1t"
231
231
  >
232
232
  <span
233
233
  class="css-13yf1i2"
@@ -249,7 +249,7 @@ exports[`Footer > snapshot: footer links provided 1`] = `
249
249
  </span>
250
250
  </div>
251
251
  <div
252
- class="css-1k5afze"
252
+ class="css-ho31tg"
253
253
  >
254
254
  <a
255
255
  class="css-16lix8i"
@@ -306,7 +306,7 @@ exports[`Footer > snapshot: footer links provided 1`] = `
306
306
 
307
307
  exports[`Footer > snapshot: nav links 1`] = `
308
308
  <footer
309
- class="ucl-uikit-footer css-mq639a"
309
+ class="ucl-uikit-footer css-1if83z3"
310
310
  data-testid="ucl-uikit-footer"
311
311
  >
312
312
  <div
@@ -320,7 +320,8 @@ exports[`Footer > snapshot: nav links 1`] = `
320
320
  data-testid="ucl-uikit-footer__column"
321
321
  >
322
322
  <h3
323
- class="css-7bhh44"
323
+ class="ucl-uikit-heading css-sy55ia"
324
+ data-testid="ucl-uikit-heading"
324
325
  >
325
326
  Category 1
326
327
  </h3>
@@ -344,7 +345,8 @@ exports[`Footer > snapshot: nav links 1`] = `
344
345
  data-testid="ucl-uikit-footer__column"
345
346
  >
346
347
  <h3
347
- class="css-7bhh44"
348
+ class="ucl-uikit-heading css-sy55ia"
349
+ data-testid="ucl-uikit-heading"
348
350
  >
349
351
  Category 2
350
352
  </h3>
@@ -580,7 +582,7 @@ exports[`Footer > snapshot: nav links 1`] = `
580
582
  role="separator"
581
583
  />
582
584
  <div
583
- class="css-1ah386p"
585
+ class="css-s55e1t"
584
586
  >
585
587
  <span
586
588
  class="css-13yf1i2"
@@ -602,7 +604,7 @@ exports[`Footer > snapshot: nav links 1`] = `
602
604
  </span>
603
605
  </div>
604
606
  <div
605
- class="css-1k5afze"
607
+ class="css-ho31tg"
606
608
  >
607
609
  <a
608
610
  class="css-16lix8i"
@@ -659,7 +661,7 @@ exports[`Footer > snapshot: nav links 1`] = `
659
661
 
660
662
  exports[`Footer > snapshot: no nav links 1`] = `
661
663
  <footer
662
- class="ucl-uikit-footer css-mq639a"
664
+ class="ucl-uikit-footer css-1if83z3"
663
665
  data-testid="ucl-uikit-footer"
664
666
  >
665
667
  <div
@@ -884,7 +886,7 @@ exports[`Footer > snapshot: no nav links 1`] = `
884
886
  role="separator"
885
887
  />
886
888
  <div
887
- class="css-1ah386p"
889
+ class="css-s55e1t"
888
890
  >
889
891
  <span
890
892
  class="css-13yf1i2"
@@ -906,7 +908,7 @@ exports[`Footer > snapshot: no nav links 1`] = `
906
908
  </span>
907
909
  </div>
908
910
  <div
909
- class="css-1k5afze"
911
+ class="css-ho31tg"
910
912
  >
911
913
  <a
912
914
  class="css-16lix8i"