uikit-react-public 0.40.0 → 0.40.1
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/dist/index.js +927 -929
- package/lib/components/AppHeader/AppHeader.stories.tsx +3 -3
- package/lib/components/AppHeader/AppHeader.tsx +3 -2
- package/lib/components/AppHeader/AppHeaderBottom.tsx +4 -2
- package/lib/components/AppHeader/AppHeaderTop.tsx +1 -1
- package/lib/components/AppHeader/__tests__/__snapshots__/AppHeader.test.tsx.snap +1 -1
- package/lib/components/AppMenu/AppMenuContent.tsx +3 -3
- package/lib/components/AppMenu/AppMenuDivider.tsx +1 -1
- package/lib/components/AppMenu/AppMenuItem.tsx +6 -6
- package/lib/components/AppMenu/__tests__/__snapshots__/AppMenu.test.tsx.snap +1 -1
- package/lib/components/Footer/Footer.tsx +5 -5
- package/lib/components/Footer/FooterNavLink.tsx +3 -3
- package/lib/components/Footer/SocialLink.tsx +3 -3
- package/lib/components/Footer/__tests__/__snapshots__/Footer.test.tsx.snap +52 -52
- package/lib/components/Header/Header.tsx +3 -3
- package/lib/components/Header/__tests__/__snapshots__/Header.test.tsx.snap +2 -2
- package/lib/components/HeaderDraft/HeaderBottomBreadcrumbs.tsx +2 -2
- package/lib/components/HeaderDraft/HeaderBottomHeadingAndAvatar.tsx +7 -7
- package/lib/components/HeaderDraft/HeaderBreadcrumb.tsx +4 -4
- package/lib/components/HeaderDraft/HeaderDraft.tsx +7 -7
- package/lib/components/HeaderDraft/__tests__/__snapshots__/Header.test.tsx.snap +5 -5
- package/lib/components/Menu/MenuContent.tsx +3 -3
- package/lib/components/Menu/MenuItem.tsx +3 -7
- package/lib/components/Menu/MenuSection.tsx +1 -1
- package/lib/components/UclLogo/UclLogoNegativeSpace.tsx +3 -7
- 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.
|
|
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.
|
|
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.
|
|
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.
|
|
34
|
-
color: ${theme.
|
|
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: ${
|
|
28
|
-
|
|
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.
|
|
38
|
+
color: ${theme.color.display.greenDark}; // default header/logo colour
|
|
39
39
|
`;
|
|
40
40
|
|
|
41
41
|
const uclLogoStyle = cx(uclLogoBaseStyle, logoClassName);
|
|
@@ -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:
|
|
43
|
+
background-color: white;
|
|
44
44
|
box-shadow: ${theme.boxShadow.y1};
|
|
45
|
-
border: ${theme.border.b1} solid ${theme.
|
|
45
|
+
border: ${theme.border.b1} solid ${theme.color.neutral.grey20};
|
|
46
46
|
padding-left: 0;
|
|
47
47
|
padding-right: 0;
|
|
48
|
-
color: ${theme.
|
|
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.
|
|
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.
|
|
62
|
+
color: ${theme.color.text.secondary};
|
|
63
63
|
`;
|
|
64
64
|
|
|
65
65
|
const clickableMenuItemStyle = css`
|
|
66
|
-
color: ${theme.
|
|
66
|
+
color: ${theme.color.text.primary};
|
|
67
67
|
&:hover {
|
|
68
|
-
background-color: ${theme.
|
|
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.
|
|
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.
|
|
85
|
+
background-color: ${theme.color.interaction.blue5};
|
|
86
86
|
}
|
|
87
87
|
&:visited {
|
|
88
|
-
color: ${theme.
|
|
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-
|
|
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.
|
|
38
|
-
color: ${theme.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
33
|
+
color: ${theme.color.text.inverted};
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
&:hover {
|
|
37
37
|
text-decoration: underline;
|
|
38
|
-
color: ${theme.
|
|
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.
|
|
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.
|
|
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.
|
|
70
|
+
color: ${theme.color.neutral.grey20};
|
|
71
71
|
}
|
|
72
72
|
`;
|
|
73
73
|
|