@learningpool/ui 1.15.5 → 1.16.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/assets/Images.js +7 -18
- package/components/atoms/Autocomplete/Autocomplete.js +3 -14
- package/components/atoms/Button/Button.js +2 -13
- package/components/atoms/Checkbox/Checkbox.js +3 -26
- package/components/atoms/IconButton/IconButton.js +2 -13
- package/components/atoms/Radio/Radio.js +3 -26
- package/components/atoms/Select/Select.js +3 -26
- package/components/atoms/Slider/Slider.js +3 -26
- package/components/atoms/Switch/Switch.js +3 -26
- package/components/atoms/TextField/TextField.js +2 -13
- package/components/atoms/ToggleButton/ToggleButton.js +3 -26
- package/components/datadisplay/Avatar/Avatar.js +13 -28
- package/components/datadisplay/Chip/Chip.js +3 -26
- package/components/datadisplay/List/List.js +2 -13
- package/components/feedback/Alert/Alert.js +3 -26
- package/components/landmarks/Header/Header.js +15 -41
- package/components/landmarks/Header/HeaderActionButtons.d.ts +1 -2
- package/components/landmarks/Header/HeaderActionButtons.js +22 -33
- package/components/landmarks/Header/HeaderStyles.js +54 -11
- package/components/navigation/Drawer/Drawer.js +5 -31
- package/components/navigation/MobileNavigation/MobileNavigation.js +70 -82
- package/components/navigation/MobileNavigation/MobileNavigationAvatar.js +75 -83
- package/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.d.ts +102 -52
- package/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.js +71 -13
- package/components/navigation/MobileNavigation/MobileNavigationDrawer.d.ts +1 -1
- package/components/navigation/MobileNavigation/MobileNavigationDrawer.js +41 -68
- package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.d.ts +34 -18
- package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.js +133 -20
- package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.js +22 -45
- package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.js +8 -19
- package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.js +151 -52
- package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.js +171 -50
- package/components/navigation/MobileNavigation/MobileNavigationMotion.js +11 -11
- package/components/navigation/MobileNavigation/MobileNavigationNotchIndicator.js +11 -15
- package/components/navigation/MobileNavigation/MobileNavigationSearch.d.ts +1 -2
- package/components/navigation/MobileNavigation/MobileNavigationSearch.js +25 -34
- package/components/navigation/MobileNavigation/MobileNavigationSearchStyles.d.ts +34 -18
- package/components/navigation/MobileNavigation/MobileNavigationSearchStyles.js +47 -9
- package/components/navigation/MobileNavigation/MobileNavigationStyles.js +262 -66
- package/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.js +21 -20
- package/components/navigation/MobileNavigation/MobileNavigationToggleX.js +21 -20
- package/components/navigation/VerticalNavigation/VerticalNavigation.js +150 -185
- package/components/navigation/VerticalNavigation/VerticalNavigationAvatar.js +50 -61
- package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.d.ts +102 -52
- package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.js +86 -14
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.js +27 -51
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.js +15 -28
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.js +135 -39
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.js +167 -29
- package/components/navigation/VerticalNavigation/VerticalNavigationMotion.js +11 -11
- package/components/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +34 -18
- package/components/navigation/VerticalNavigation/VerticalNavigationStyles.js +236 -42
- package/components/navigation/helpers.d.ts +1 -2
- package/components/navigation/helpers.js +28 -32
- package/components/pages/ErrorPage/ErrorPage.js +6 -17
- package/components/pages/ErrorPage/ErrorPageStyles.js +13 -18
- package/components/pages/SideInSide/SideInSide.js +12 -23
- package/components/pages/SideInSide/SideInSideStyles.js +6 -6
- package/components/stream/AppHub/AppHub.js +13 -42
- package/components/stream/AppHub/AppHubAdvertStyles.js +24 -8
- package/components/stream/AppHub/AppHubBannerAdvert.d.ts +1 -2
- package/components/stream/AppHub/AppHubBannerAdvert.js +9 -20
- package/components/stream/AppHub/AppHubCustom.js +8 -19
- package/components/stream/AppHub/AppHubCustomStyles.d.ts +1 -1
- package/components/stream/AppHub/AppHubCustomStyles.js +78 -18
- package/components/stream/AppHub/AppHubProduct.js +26 -48
- package/components/stream/AppHub/AppHubProductStyles.js +104 -19
- package/components/stream/AppHub/AppHubStyles.js +31 -11
- package/components/stream/AppHub/constants.d.ts +1 -2
- package/components/stream/AppHub/constants.js +14 -14
- package/components/stream/AppSwitcher/AppSwitcher.js +225 -316
- package/components/stream/AppSwitcher/AppSwitcherItem.js +11 -22
- package/components/stream/AppSwitcher/AppSwitcherStyles.js +337 -42
- package/components/stream/AppSwitcher/AppSwitcherStylesStandalone.js +255 -21
- package/components/stream/AppSwitcher/PromotionalCampaignItem.js +7 -19
- package/components/stream/AppSwitcher/constants.js +3 -3
- package/lang/en-us.js +1 -1
- package/package.json +7 -2
- package/utils/constants.d.ts +7 -0
- package/utils/constants.js +11 -4
- package/utils/dataAttributes.js +1 -1
- package/utils/helpers.js +33 -40
- package/utils/hooks.js +10 -11
- package/utils/theme.js +26 -19
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
13
2
|
import { Constants } from './constants';
|
|
14
3
|
import { AppLink, AppName, StyledLogoSVG } from './AppSwitcherStyles';
|
|
15
4
|
// Bug in the naming of the icons on the CDN
|
|
16
|
-
export
|
|
5
|
+
export const LogoVariants = {
|
|
17
6
|
Default: 'icon',
|
|
18
7
|
Solid: 'icon-solid',
|
|
19
8
|
Outlined: 'icon-outlined',
|
|
@@ -24,28 +13,28 @@ export var LogoVariants = {
|
|
|
24
13
|
* @param internalName {string | null | undefined } - Internal name of the application.
|
|
25
14
|
* @returns {ReactElement | null } SVG containing the application logo retrieved from the CDN.
|
|
26
15
|
*/
|
|
27
|
-
|
|
16
|
+
const renderApplicationLogo = (internalName, logoVariant) => {
|
|
28
17
|
if (!internalName) {
|
|
29
18
|
return _jsx(_Fragment, {});
|
|
30
19
|
}
|
|
31
|
-
|
|
20
|
+
const urlToIcon = `${Constants.AssetsUrl}${internalName}/logo/latest/${logoVariant ?? LogoVariants.Default}.svg`;
|
|
32
21
|
return (_jsx(StyledLogoSVG, { children: _jsx("image", { xlinkHref: urlToIcon, width: "60", height: "60" }) }));
|
|
33
22
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return (_jsxs(AppLink,
|
|
23
|
+
const AppSwitcherItem = (props) => {
|
|
24
|
+
const { applicationId, internalName, shortName, customName, url, handleGoToAppClick } = props;
|
|
25
|
+
const solidLogo = renderApplicationLogo(internalName, LogoVariants.Solid);
|
|
26
|
+
return (_jsxs(AppLink, { href: url ?? '#', target: "_blank", onClick: event => applicationId ? handleGoToAppClick(event, applicationId) : null, children: [applicationId && (
|
|
38
27
|
// Create a stack effect to indicate multiple
|
|
39
|
-
_jsxs(_Fragment, { children: [_jsx("span",
|
|
28
|
+
_jsxs(_Fragment, { children: [_jsx("span", { style: {
|
|
40
29
|
position: 'absolute',
|
|
41
30
|
top: '4px',
|
|
42
31
|
transform: 'scale(0.8)',
|
|
43
32
|
zIndex: 0
|
|
44
|
-
}
|
|
33
|
+
}, children: solidLogo }), _jsx("span", { style: {
|
|
45
34
|
position: 'absolute',
|
|
46
35
|
top: '10px',
|
|
47
36
|
transform: 'scale(0.9)',
|
|
48
37
|
zIndex: 0
|
|
49
|
-
}
|
|
38
|
+
}, children: solidLogo })] })), solidLogo, _jsx(AppName, { children: customName ?? shortName })] }));
|
|
50
39
|
};
|
|
51
40
|
export default AppSwitcherItem;
|
|
@@ -1,65 +1,360 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
1
|
import { Card, CardActionArea, CardMedia } from '@mui/material';
|
|
6
2
|
import { styled } from '@mui/material/styles';
|
|
7
3
|
import Button from '@mui/material/Button';
|
|
8
|
-
export
|
|
4
|
+
export const AppSwitcherPanel = styled('div') `
|
|
5
|
+
background-color: ${props => props.theme.palette.mode === 'dark'
|
|
9
6
|
? props.theme.palette.primary.dark
|
|
10
|
-
: '#E6EAF0';
|
|
7
|
+
: '#E6EAF0'};
|
|
8
|
+
border-radius: 0 4px 4px 0;
|
|
9
|
+
bottom: 0;
|
|
10
|
+
box-shadow: ${props => props.theme.direction === 'ltr'
|
|
11
11
|
? '5px 7px 8px -10px rgb(0 0 0 / 20%), 5px 12px 17px -10px rgb(0 0 0 / 14%), 5px 5px 22px -10px rgb(0 0 0 / 12%)'
|
|
12
|
-
: '-5px 7px 8px -10px rgb(0 0 0 / 20%), -5px 12px 17px -10px rgb(0 0 0 / 14%), -5px 5px 22px -10px rgb(0 0 0 / 12%)'
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
: '-5px 7px 8px -10px rgb(0 0 0 / 20%), -5px 12px 17px -10px rgb(0 0 0 / 14%), -5px 5px 22px -10px rgb(0 0 0 / 12%)'};
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
font-family: 'Roboto';
|
|
15
|
+
height: ${props => props.hasPromotionalCampaign ? 'calc(450px + 100px)' : '450px'};
|
|
16
|
+
left: ${props => props.theme.direction === 'ltr' ? '57px' : 'auto'};
|
|
17
|
+
right: ${props => props.theme.direction === 'rtl' ? '57px' : 'auto'};
|
|
18
|
+
overflow: auto;
|
|
19
|
+
overflow-x: hidden;
|
|
20
|
+
padding: 1rem 1.5rem;
|
|
21
|
+
position: fixed;
|
|
22
|
+
width: 360px;
|
|
23
|
+
z-index: 1;
|
|
24
|
+
|
|
25
|
+
& > div {
|
|
26
|
+
padding-bottom: 3rem;
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
export const List = styled('ul') `
|
|
30
|
+
`;
|
|
31
|
+
export const MenuContent = styled('div') `
|
|
32
|
+
align-items: flex-start;
|
|
33
|
+
flex-direction: row;
|
|
34
|
+
flex-wrap: wrap;
|
|
35
|
+
justify-content: flex-start;
|
|
36
|
+
margin-top: 1rem;
|
|
37
|
+
`;
|
|
38
|
+
export const SearchContent = styled('div') `
|
|
39
|
+
align-items: flex-start;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
justify-content: flex-start;
|
|
43
|
+
padding: 1rem 1rem 2rem;
|
|
44
|
+
`;
|
|
45
|
+
export const AppListHeader = styled('div') `
|
|
46
|
+
align-items: center;
|
|
47
|
+
color: ${props => props.theme.palette.mode === 'dark'
|
|
17
48
|
? props.theme.palette.primary.contrastText
|
|
18
|
-
: '#555'
|
|
19
|
-
|
|
20
|
-
|
|
49
|
+
: '#555'};
|
|
50
|
+
display: flex;
|
|
51
|
+
font-weight: normal;
|
|
52
|
+
justify-content: space-between;
|
|
53
|
+
padding: 1rem 1.25rem 0;
|
|
54
|
+
|
|
55
|
+
& svg {
|
|
56
|
+
height: 24px;
|
|
57
|
+
margin-inline-end: 0.5rem;
|
|
58
|
+
width: 24px;
|
|
59
|
+
}
|
|
60
|
+
`;
|
|
61
|
+
export const AppListItem = styled('div') `
|
|
62
|
+
align-items: center;
|
|
63
|
+
align-self: stretch;
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
flex: 0 0 ${100 / 3}%;
|
|
67
|
+
height: 104px;
|
|
68
|
+
overflow: visible;
|
|
69
|
+
padding: 0.25rem;
|
|
70
|
+
position: relative;
|
|
71
|
+
|
|
72
|
+
&:hover {
|
|
73
|
+
background-color: transparent;
|
|
74
|
+
}
|
|
75
|
+
`;
|
|
76
|
+
export const AppLink = styled('a') `
|
|
77
|
+
align-items: center;
|
|
78
|
+
border-radius: 4px;
|
|
79
|
+
box-shadow: none;
|
|
80
|
+
box-sizing: border-box;
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
font-size: 0.85rem;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
padding: 1rem 0 0.5rem;
|
|
87
|
+
position: absolute;
|
|
88
|
+
text-align: center;
|
|
89
|
+
text-decoration: none;
|
|
90
|
+
width: 100%;
|
|
91
|
+
|
|
92
|
+
& .MuiTouchRipple-rippleVisible {
|
|
93
|
+
color: #004071;
|
|
94
|
+
opacity: 0.25;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:hover,
|
|
98
|
+
&:focus {
|
|
99
|
+
background-color: ${props => props.theme.palette.mode === 'dark'
|
|
21
100
|
? 'rgba(22, 92, 141, 1)'
|
|
22
|
-
: '#ebf2fc';
|
|
101
|
+
: '#ebf2fc'};
|
|
102
|
+
text-decoration: none;
|
|
103
|
+
z-index: 2;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:active {
|
|
107
|
+
background-color: #f1f1f1;
|
|
108
|
+
z-index: 2;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
& svg {
|
|
112
|
+
height: 60px;
|
|
113
|
+
width: 60px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:hover + span,
|
|
117
|
+
&:focus + span {
|
|
118
|
+
opacity: 1;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&:hover svg,
|
|
122
|
+
&:focus svg {
|
|
123
|
+
background-color: ${props => props.theme.palette.mode === 'dark'
|
|
23
124
|
? 'rgba(22, 92, 141, 1)'
|
|
24
|
-
: '#ebf2fc';
|
|
125
|
+
: '#ebf2fc'};
|
|
126
|
+
border-color: ${props => props.theme.palette.mode === 'dark'
|
|
25
127
|
? 'rgba(22, 92, 141, 1)'
|
|
26
|
-
: '#ebf2fc'
|
|
27
|
-
|
|
128
|
+
: '#ebf2fc'};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// Show full app name on hover
|
|
132
|
+
&:hover div,
|
|
133
|
+
&:focus div {
|
|
134
|
+
white-space: normal;
|
|
135
|
+
word-wrap: break-word;
|
|
136
|
+
}
|
|
137
|
+
`;
|
|
138
|
+
export const AppName = styled('div') `
|
|
139
|
+
color: ${props => props.theme.palette.mode === 'dark'
|
|
28
140
|
? props.theme.palette.primary.contrastText
|
|
29
|
-
: '#555'
|
|
30
|
-
|
|
141
|
+
: '#555'};
|
|
142
|
+
font-weight: normal;
|
|
143
|
+
margin: 0.5rem 0 0;
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
text-overflow: ellipsis;
|
|
146
|
+
white-space: nowrap;
|
|
147
|
+
width: 90px;
|
|
148
|
+
`;
|
|
149
|
+
export const BackButton = styled('button') `
|
|
150
|
+
align-items: center;
|
|
151
|
+
background: transparent;
|
|
152
|
+
border: 0;
|
|
153
|
+
color: ${props => props.theme.palette.mode === 'dark'
|
|
31
154
|
? props.theme.palette.primary.contrastText
|
|
32
|
-
: '#555';
|
|
155
|
+
: '#555'};
|
|
156
|
+
cursor: pointer;
|
|
157
|
+
display: flex;
|
|
158
|
+
padding: 0.25rem 0;
|
|
159
|
+
text-align: left;
|
|
160
|
+
width: 100%;
|
|
161
|
+
|
|
162
|
+
&:focus,
|
|
163
|
+
&:hover {
|
|
164
|
+
background-color: ${props => props.theme.palette.mode === 'dark'
|
|
33
165
|
? 'rgba(255, 255, 255, 0.1)'
|
|
34
|
-
: 'rgba(0, 0, 0, 0.1)'
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export
|
|
166
|
+
: 'rgba(0, 0, 0, 0.1)'};
|
|
167
|
+
}
|
|
168
|
+
`;
|
|
169
|
+
export const SearchBox = styled('input') `
|
|
170
|
+
background: #f4f4f4;
|
|
171
|
+
border: thin solid #888;
|
|
172
|
+
box-sizing: border-box;
|
|
173
|
+
color: #777;
|
|
174
|
+
padding: 0.5rem;
|
|
175
|
+
width: 100%;
|
|
176
|
+
|
|
177
|
+
&:hover .MuiOutlinedInput-notchedOutline {
|
|
178
|
+
border-color: #888;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
& .MuiOutlinedInput-root {
|
|
182
|
+
border-radius: 0;
|
|
183
|
+
color: #777;
|
|
184
|
+
padding: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
& .MuiOutlinedInput-input {
|
|
188
|
+
padding: 0.5rem;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
& ::placeholder {
|
|
192
|
+
opacity: 0.75;
|
|
193
|
+
}
|
|
194
|
+
`;
|
|
195
|
+
export const AppOrganisationCount = styled('span') `
|
|
196
|
+
background: #00497D;
|
|
197
|
+
border-color: #616161;
|
|
198
|
+
border-radius: 4px;
|
|
199
|
+
border: none;
|
|
200
|
+
color: white;
|
|
201
|
+
font-size: 1rem;
|
|
202
|
+
font-weight: bold;
|
|
203
|
+
height: 48%;
|
|
204
|
+
left: ${props => props.theme.direction === 'ltr' ? '54%' : 'auto'};
|
|
205
|
+
right: ${props => props.theme.direction === 'rtl' ? '4%' : 'auto'};
|
|
206
|
+
line-height: 50px;
|
|
207
|
+
margin-top: 0;
|
|
208
|
+
opacity: 0;
|
|
209
|
+
pointer-events: none;
|
|
210
|
+
position: absolute;
|
|
211
|
+
text-align: center;
|
|
212
|
+
top: 49%;
|
|
213
|
+
transform: translate(-50%, -50%);
|
|
214
|
+
width: 50%;
|
|
215
|
+
z-index: 3;
|
|
216
|
+
`;
|
|
217
|
+
export const SelectedOrganisation = styled('div') `
|
|
218
|
+
align-items: center;
|
|
219
|
+
color: ${props => props.theme.palette.mode === 'dark'
|
|
38
220
|
? props.theme.palette.primary.contrastText
|
|
39
|
-
: '#555'
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
221
|
+
: '#555'};
|
|
222
|
+
display: flex;
|
|
223
|
+
flex-direction: row;
|
|
224
|
+
justify-content: flex-start;
|
|
225
|
+
padding: 1.5rem 0;
|
|
226
|
+
width: 100%;
|
|
227
|
+
|
|
228
|
+
& svg,
|
|
229
|
+
& svg image {
|
|
230
|
+
height: 24px;
|
|
231
|
+
width: 24px;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
& span {
|
|
235
|
+
font-size: 1.2rem;
|
|
236
|
+
font-weight: normal;
|
|
237
|
+
margin: 0;
|
|
238
|
+
margin-inline-start: 0.5rem;
|
|
239
|
+
}
|
|
240
|
+
`;
|
|
241
|
+
export const StyledSVG = styled('svg') `
|
|
242
|
+
box-sizing: content-box;
|
|
243
|
+
display: inline-block;
|
|
244
|
+
fill: currentcolor;
|
|
245
|
+
flex-shrink: 0;
|
|
246
|
+
font-size: 1.5rem;
|
|
247
|
+
height: 1em;
|
|
248
|
+
margin: 4px;
|
|
249
|
+
padding: 0;
|
|
250
|
+
transform: rotateY(${props => props.theme.direction === 'ltr' ? '0deg' : '180deg'});
|
|
251
|
+
user-select: none;
|
|
252
|
+
width: 1em;
|
|
253
|
+
`;
|
|
254
|
+
export const OrganisationList = styled('div') `
|
|
255
|
+
height: 300px;
|
|
256
|
+
overflow: auto;
|
|
257
|
+
padding-top: 0.5rem;
|
|
258
|
+
width: 100%;
|
|
259
|
+
`;
|
|
260
|
+
export const OrganisationLink = styled('a') `
|
|
261
|
+
align-items: center;
|
|
262
|
+
border-radius: 4px;
|
|
263
|
+
box-shadow: none;
|
|
264
|
+
color: ${props => props.theme.palette.mode === 'dark'
|
|
43
265
|
? props.theme.palette.primary.contrastText
|
|
44
|
-
: '#555';
|
|
266
|
+
: '#555'};
|
|
267
|
+
display: flex;
|
|
268
|
+
font-size: 1rem;
|
|
269
|
+
justify-content: space-between;
|
|
270
|
+
margin: 0 0.125rem;
|
|
271
|
+
padding: 0.5rem;
|
|
272
|
+
text-decoration: none;
|
|
273
|
+
transition: all 200ms ease;
|
|
274
|
+
|
|
275
|
+
& .MuiTouchRipple-rippleVisible {
|
|
276
|
+
color: #004071;
|
|
277
|
+
opacity: 0.25;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
&:focus,
|
|
281
|
+
&:hover {
|
|
282
|
+
background-color: ${props => props.theme.palette.mode === 'dark'
|
|
45
283
|
? 'rgba(255, 255, 255, 0.1)'
|
|
46
|
-
: 'rgba(0, 0, 0, 0.1)'
|
|
47
|
-
|
|
284
|
+
: 'rgba(0, 0, 0, 0.1)'};
|
|
285
|
+
|
|
286
|
+
& svg {
|
|
287
|
+
visibility: visible;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
&:active {
|
|
292
|
+
background-color: #f1f1f1;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
& .MuiLink-root {
|
|
296
|
+
align-items: center;
|
|
297
|
+
color: #555;
|
|
298
|
+
display: flex;
|
|
299
|
+
justify-content: space-between;
|
|
300
|
+
text-decoration: none;
|
|
301
|
+
width: 100%;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
& svg {
|
|
305
|
+
visibility: hidden;
|
|
306
|
+
}
|
|
307
|
+
`;
|
|
308
|
+
export const StyledLogoSVG = styled('svg') `
|
|
309
|
+
background-color: ${props => props.theme.palette.mode === 'dark'
|
|
48
310
|
? props.theme.palette.primary.dark
|
|
49
|
-
: '#E6EAF0';
|
|
311
|
+
: '#E6EAF0'};
|
|
312
|
+
border: thin solid ${props => props.theme.palette.mode === 'dark'
|
|
50
313
|
? props.theme.palette.primary.dark
|
|
51
|
-
: '#E6EAF0'
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export
|
|
56
|
-
|
|
57
|
-
|
|
314
|
+
: '#E6EAF0'};
|
|
315
|
+
position: relative;
|
|
316
|
+
z-index: 1;
|
|
317
|
+
`;
|
|
318
|
+
export const StyleHomeButton = styled(Button) `
|
|
319
|
+
align-items: center;
|
|
320
|
+
color: #00538e;
|
|
321
|
+
display: flex;
|
|
322
|
+
flex-wrap: wrap;
|
|
323
|
+
margin: 0;
|
|
324
|
+
padding: 0;
|
|
325
|
+
text-decoration: none;
|
|
326
|
+
text-transform: none;
|
|
327
|
+
|
|
328
|
+
&:hover {
|
|
329
|
+
background-color: transparent;
|
|
330
|
+
}
|
|
331
|
+
`;
|
|
332
|
+
export const PromotionalCampaignImage = styled(CardMedia) `
|
|
333
|
+
height: 150px;
|
|
334
|
+
width: 300px;
|
|
335
|
+
`;
|
|
336
|
+
export const PromotionalCampaignCard = styled(Card) `
|
|
337
|
+
background: ${props => props.theme.palette.primary.main};
|
|
338
|
+
`;
|
|
339
|
+
export const PromotionalCampaignCardStyled = styled(Card) `
|
|
340
|
+
width: 100%;
|
|
341
|
+
height: 162px;
|
|
342
|
+
margin-bottom: 4px;
|
|
343
|
+
background: ${props => props.theme.palette.primary.main};
|
|
344
|
+
`;
|
|
345
|
+
export const PromotionalCampaignCardActionArea = styled(CardActionArea) `
|
|
346
|
+
width: 100%;
|
|
347
|
+
height: 100%;
|
|
348
|
+
display: flex;
|
|
349
|
+
justify-content: center;
|
|
350
|
+
align-items: center;
|
|
351
|
+
padding: 6px;
|
|
352
|
+
`;
|
|
353
|
+
export const PromotionalCampaignCardMedia = styled(CardMedia)(() => ({
|
|
58
354
|
width: '100%',
|
|
59
355
|
height: '100%',
|
|
60
356
|
objectFit: 'cover',
|
|
61
357
|
'&.MuiCardMedia-img': {
|
|
62
358
|
objectPosition: 'center'
|
|
63
359
|
}
|
|
64
|
-
})
|
|
65
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21;
|
|
360
|
+
}));
|