uikit-react-public 0.40.0 → 0.40.2

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 (35) hide show
  1. package/dist/components/Header/Header.d.ts +6 -1
  2. package/dist/components/Header/Header.stories.d.ts +1 -1
  3. package/dist/components/HeaderNew/HeaderLogo.d.ts +1 -1
  4. package/dist/index.js +3622 -3573
  5. package/lib/components/AppHeader/AppHeader.stories.tsx +3 -3
  6. package/lib/components/AppHeader/AppHeader.tsx +3 -2
  7. package/lib/components/AppHeader/AppHeaderBottom.tsx +4 -2
  8. package/lib/components/AppHeader/AppHeaderTop.tsx +1 -1
  9. package/lib/components/AppHeader/__tests__/__snapshots__/AppHeader.test.tsx.snap +1 -1
  10. package/lib/components/AppMenu/AppMenuContent.tsx +3 -3
  11. package/lib/components/AppMenu/AppMenuDivider.tsx +1 -1
  12. package/lib/components/AppMenu/AppMenuItem.tsx +6 -6
  13. package/lib/components/AppMenu/__tests__/__snapshots__/AppMenu.test.tsx.snap +1 -1
  14. package/lib/components/Footer/Footer.tsx +5 -5
  15. package/lib/components/Footer/FooterNavLink.tsx +3 -3
  16. package/lib/components/Footer/SocialLink.tsx +3 -3
  17. package/lib/components/Footer/__tests__/__snapshots__/Footer.test.tsx.snap +52 -52
  18. package/lib/components/Header/Header.tsx +70 -5
  19. package/lib/components/Header/__tests__/Header.test.tsx +50 -0
  20. package/lib/components/Header/__tests__/__snapshots__/Header.test.tsx.snap +2 -2
  21. package/lib/components/HeaderDraft/HeaderBottomBreadcrumbs.tsx +2 -2
  22. package/lib/components/HeaderDraft/HeaderBottomHeadingAndAvatar.tsx +7 -7
  23. package/lib/components/HeaderDraft/HeaderBreadcrumb.tsx +4 -4
  24. package/lib/components/HeaderDraft/HeaderDraft.tsx +7 -7
  25. package/lib/components/HeaderDraft/__tests__/__snapshots__/Header.test.tsx.snap +5 -5
  26. package/lib/components/HeaderNew/Header.tsx +1 -1
  27. package/lib/components/HeaderNew/HeaderBorder.tsx +1 -1
  28. package/lib/components/HeaderNew/HeaderItem.tsx +1 -1
  29. package/lib/components/HeaderNew/HeaderLogo.tsx +3 -1
  30. package/lib/components/HeaderNew/HeaderTitle.tsx +1 -1
  31. package/lib/components/Menu/MenuContent.tsx +3 -3
  32. package/lib/components/Menu/MenuItem.tsx +3 -7
  33. package/lib/components/Menu/MenuSection.tsx +1 -1
  34. package/lib/components/UclLogo/UclLogoNegativeSpace.tsx +3 -7
  35. package/package.json +1 -1
@@ -27,7 +27,7 @@ export const WithBreadcrumbs: Story = {
27
27
 
28
28
  // This ought to be done in`<Breadcrumb>`or in `<AppHeader.Bottom>`!
29
29
  const invertedTextStyle = css`
30
- color: ${theme.colour.text.inverse};
30
+ color: ${theme.color.text.inverted};
31
31
  `;
32
32
 
33
33
  return (
@@ -60,7 +60,7 @@ export const WithMultipleBreadcrumbs: Story = {
60
60
  render: () => {
61
61
  const [theme] = useTheme();
62
62
  const invertedTextStyle = css`
63
- color: ${theme.colour.text.inverse};
63
+ color: ${theme.color.text.inverted};
64
64
  `;
65
65
  return (
66
66
  <AppHeader>
@@ -92,7 +92,7 @@ export const WithAppMenu: Story = {
92
92
  `;
93
93
 
94
94
  const invertedTextStyle = css`
95
- color: ${theme.colour.text.inverse};
95
+ color: ${theme.color.text.inverted};
96
96
  `;
97
97
 
98
98
  return (
@@ -30,8 +30,9 @@ const AppHeader = ({
30
30
  const [theme] = useTheme();
31
31
 
32
32
  const baseStyle = css`
33
- background-color: ${theme.colour.surface.default};
34
- color: ${theme.colour.text.default};
33
+ background-color: ${theme.color.neutral.white};
34
+ color: ${theme.color.text.primary};
35
+ font-family: ${theme.font.family.primary};
35
36
  `;
36
37
 
37
38
  const fixedStyle = css`
@@ -24,8 +24,10 @@ const AppHeaderBottom = ({
24
24
  line-height: 48px;
25
25
  display: flex;
26
26
  align-items: center;
27
- background-color: ${theme.colour.surface.inverseBrandPrimary};
28
- color: ${theme.colour.text.brandInverse};
27
+ background-color: ${
28
+ theme.color.display.greenDark
29
+ }; // default header/logo colour
30
+ color: inherit;
29
31
  `;
30
32
 
31
33
  const style = cx(NAME, baseStyle, className);
@@ -35,7 +35,7 @@ const AppHeaderTop = ({
35
35
  margin-left: auto;
36
36
  margin-top: 20px;
37
37
  height: 36px;
38
- color: ${theme.colour.text.brandPrimary};
38
+ color: ${theme.color.display.greenDark}; // default header/logo colour
39
39
  `;
40
40
 
41
41
  const uclLogoStyle = cx(uclLogoBaseStyle, logoClassName);
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports[`AppHeader > snapshot: no props 1`] = `
4
4
  <div
5
- class="ucl-uikit-app-header css-1xtg6wh"
5
+ class="ucl-uikit-app-header css-14i4gnx"
6
6
  data-testid="ucl-uikit-app-header"
7
7
  />
8
8
  `;
@@ -40,12 +40,12 @@ const AppMenuContent: React.FC<AppMenuContentProps> = ({
40
40
  min-width: 140px;
41
41
  white-space: nowrap;
42
42
  cursor: default;
43
- background-color: ${theme.colour.surface.default};
43
+ background-color: white;
44
44
  box-shadow: ${theme.boxShadow.y1};
45
- border: ${theme.border.b1} solid ${theme.colour.border.disabled};
45
+ border: ${theme.border.b1} solid ${theme.color.neutral.grey20};
46
46
  padding-left: 0;
47
47
  padding-right: 0;
48
- color: ${theme.colour.text.default};
48
+ color: ${theme.color.text.primary};
49
49
  list-style: none;
50
50
 
51
51
  @media (max-width: ${theme.breakpoints.desktop}px) {
@@ -22,7 +22,7 @@ const AppMenuDivider: React.FC<AppMenuDividerProps> = ({
22
22
  margin: 0;
23
23
  height: 1px;
24
24
  border: none;
25
- background-color: ${theme.colour.border.disabled};
25
+ background-color: ${theme.color.neutral.grey20};
26
26
  `;
27
27
 
28
28
  const style = cx(NAME, baseStyle, className);
@@ -59,13 +59,13 @@ const AppMenuItem: React.FC<AppMenuItemProps> = ({
59
59
  font-size: ${mdSemibold.fontSize}px;
60
60
  font-weight: ${mdSemibold.fontWeight};
61
61
  line-height: ${mdSemibold.lineHeight}%;
62
- color: ${theme.colour.text.secondary};
62
+ color: ${theme.color.text.secondary};
63
63
  `;
64
64
 
65
65
  const clickableMenuItemStyle = css`
66
- color: ${theme.colour.text.default};
66
+ color: ${theme.color.text.primary};
67
67
  &:hover {
68
- background-color: ${theme.colour.surface.brandSecondary};
68
+ background-color: ${theme.color.interaction.blue5};
69
69
  }
70
70
  &:focus-visible {
71
71
  outline: none;
@@ -76,16 +76,16 @@ const AppMenuItem: React.FC<AppMenuItemProps> = ({
76
76
 
77
77
  const menuLinkStyle = css`
78
78
  text-decoration: none;
79
- color: ${theme.colour.text.default};
79
+ color: ${theme.color.text.primary};
80
80
  display: flex;
81
81
  align-items: center;
82
82
  width: 100%;
83
83
  height: 100%;
84
84
  &:hover {
85
- background-color: ${theme.colour.surface.brandSecondary};
85
+ background-color: ${theme.color.interaction.blue5};
86
86
  }
87
87
  &:visited {
88
- color: ${theme.colour.text.default};
88
+ color: ${theme.color.text.primary};
89
89
  }
90
90
  &:focus-visible {
91
91
  outline: none;
@@ -36,7 +36,7 @@ exports[`AppMenu > snapshot: defaultOpen prop 1`] = `
36
36
  </button>
37
37
  <ul
38
38
  aria-labelledby="app-menu-button"
39
- class="ucl-app-menu__content css-1r69pxi"
39
+ class="ucl-app-menu__content css-63xuy3"
40
40
  data-testid="ucl-app-menu__content"
41
41
  id="app-menu"
42
42
  role="menu"
@@ -34,8 +34,8 @@ const Footer = ({
34
34
  const [theme] = useTheme();
35
35
 
36
36
  const baseStyle = css`
37
- background-color: ${theme.colour.surface.inverseBrandPrimary};
38
- color: ${theme.colour.text.brandInverse};
37
+ background-color: ${theme.color.neutral.grey90};
38
+ color: ${theme.color.text.inverted};
39
39
  font-family: ${theme.font.family.primary};
40
40
  font-weight: 300;
41
41
  padding: ${theme.padding.p40} 0 ${theme.padding.p40};
@@ -70,7 +70,7 @@ const Footer = ({
70
70
 
71
71
  const uclLogoStyle = css`
72
72
  height: 32px;
73
- color: ${theme.colour.icon.brandInverse};
73
+ color: ${theme.color.neutral.grey90};
74
74
 
75
75
  @media screen and (min-width: ${theme.breakpoints.tablet}px) {
76
76
  margin-right: auto;
@@ -91,7 +91,7 @@ const Footer = ({
91
91
 
92
92
  const contactInfoAndCopyrightStyle = css`
93
93
  padding: ${theme.padding.p12} 0;
94
- color: ${theme.colour.text.brandInverseSecondary};
94
+ color: ${theme.color.neutral.grey20};
95
95
  display: flex;
96
96
  flex-direction: column;
97
97
  font-size: ${theme.font.size.f14};
@@ -151,7 +151,7 @@ const Footer = ({
151
151
  margin-bottom: ${theme.margin.m8};
152
152
  margin-right: ${theme.margin.m32};
153
153
  text-decoration: none;
154
- color: ${theme.colour.link.inverseSecondary};
154
+ color: ${theme.color.neutral.grey20};
155
155
  transition: color 0.2s ease-out;
156
156
 
157
157
  &:focus-visible {
@@ -21,7 +21,7 @@ const FooterNavLink = ({
21
21
  const baseStyle = css`
22
22
  margin: ${theme.margin.m8} 0;
23
23
  text-decoration: none;
24
- color: ${theme.colour.text.brandInverse};
24
+ color: ${theme.color.text.inverted};
25
25
  transition: color 0.2s ease-out;
26
26
 
27
27
  &:focus-visible {
@@ -30,12 +30,12 @@ const FooterNavLink = ({
30
30
  }
31
31
 
32
32
  &:visited {
33
- color: ${theme.colour.text.brandInverse};
33
+ color: ${theme.color.text.inverted};
34
34
  }
35
35
 
36
36
  &:hover {
37
37
  text-decoration: underline;
38
- color: ${theme.colour.text.brandInverse};
38
+ color: ${theme.color.text.inverted};
39
39
  }
40
40
  `;
41
41
 
@@ -49,7 +49,7 @@ const SocialLink = ({
49
49
  height: ${theme.height.h24};
50
50
  border-radius: ${theme.radius.r8};
51
51
  margin-left: ${theme.margin.m12};
52
- color: ${theme.colour.icon.brandInverse};
52
+ color: ${theme.color.text.inverted};
53
53
  transition: color 0.2s ease-out;
54
54
 
55
55
  @media screen and (min-width: ${theme.breakpoints.tablet}px) {
@@ -58,7 +58,7 @@ const SocialLink = ({
58
58
 
59
59
  &:visited,
60
60
  &:active {
61
- color: ${theme.colour.icon.brandInverse};
61
+ color: ${theme.color.text.inverted};
62
62
  }
63
63
 
64
64
  &:focus-visible {
@@ -67,7 +67,7 @@ const SocialLink = ({
67
67
  }
68
68
 
69
69
  &:hover {
70
- color: ${theme.colour.icon.brandInverseSecondaryHover};
70
+ color: ${theme.color.neutral.grey20};
71
71
  }
72
72
  `;
73
73