@flipdish/portal-library 1.0.13 → 1.0.15
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/components/index.d.ts +5 -0
- package/dist/components/index.esm.js +6 -0
- package/dist/components/index.esm.js.map +1 -0
- package/dist/components/index.js +16 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/themes/flipdishPublicTheme.d.ts +19 -0
- package/dist/components/themes/flipdishPublicTheme.esm.js +171 -0
- package/dist/components/themes/flipdishPublicTheme.esm.js.map +1 -0
- package/dist/components/themes/flipdishPublicTheme.js +173 -0
- package/dist/components/themes/flipdishPublicTheme.js.map +1 -0
- package/dist/components/ui/LazyComponent/LazyComponent.d.ts +9 -0
- package/dist/components/ui/LazyComponent/LazyComponent.esm.js +14 -0
- package/dist/components/ui/LazyComponent/LazyComponent.esm.js.map +1 -0
- package/dist/components/ui/LazyComponent/LazyComponent.js +16 -0
- package/dist/components/ui/LazyComponent/LazyComponent.js.map +1 -0
- package/dist/components/ui/NotFoundPage/NotFoundPage.d.ts +5 -0
- package/dist/components/ui/NotFoundPage/NotFoundPage.esm.js +18 -0
- package/dist/components/ui/NotFoundPage/NotFoundPage.esm.js.map +1 -0
- package/dist/components/ui/NotFoundPage/NotFoundPage.js +20 -0
- package/dist/components/ui/NotFoundPage/NotFoundPage.js.map +1 -0
- package/dist/components/ui/PortalMock/PortalMock.d.ts +9 -0
- package/dist/components/ui/PortalMock/PortalMock.esm.js +45 -0
- package/dist/components/ui/PortalMock/PortalMock.esm.js.map +1 -0
- package/dist/components/ui/PortalMock/PortalMock.js +47 -0
- package/dist/components/ui/PortalMock/PortalMock.js.map +1 -0
- package/dist/components/ui/Spacer/Spacer.d.ts +12 -0
- package/dist/components/ui/Spacer/Spacer.esm.js +32 -0
- package/dist/components/ui/Spacer/Spacer.esm.js.map +1 -0
- package/dist/components/ui/Spacer/Spacer.js +34 -0
- package/dist/components/ui/Spacer/Spacer.js.map +1 -0
- package/dist/localization/en.json.esm.js +52 -0
- package/dist/localization/en.json.esm.js.map +1 -0
- package/dist/localization/en.json.js +67 -0
- package/dist/localization/en.json.js.map +1 -0
- package/dist/providers/TranslationProvider.esm.js +21 -0
- package/dist/providers/TranslationProvider.esm.js.map +1 -0
- package/dist/providers/TranslationProvider.js +23 -0
- package/dist/providers/TranslationProvider.js.map +1 -0
- package/package.json +1 -1
- package/dist/index.d.ts +0 -42
- package/dist/index.esm.js +0 -325
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js +0 -331
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as flipdishPublicTheme } from './themes/flipdishPublicTheme.js';
|
|
2
|
+
export { default as NotFoundPage } from './ui/NotFoundPage/NotFoundPage.js';
|
|
3
|
+
export { default as PortalMock } from './ui/PortalMock/PortalMock.js';
|
|
4
|
+
export { default as LazyComponent } from './ui/LazyComponent/LazyComponent.js';
|
|
5
|
+
export { default as Spacer } from './ui/Spacer/Spacer.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as flipdishPublicTheme } from './themes/flipdishPublicTheme.esm.js';
|
|
2
|
+
export { default as NotFoundPage } from './ui/NotFoundPage/NotFoundPage.esm.js';
|
|
3
|
+
export { default as PortalMock } from './ui/PortalMock/PortalMock.esm.js';
|
|
4
|
+
export { default as LazyComponent } from './ui/LazyComponent/LazyComponent.esm.js';
|
|
5
|
+
export { default as Spacer } from './ui/Spacer/Spacer.esm.js';
|
|
6
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var flipdishPublicTheme = require('./themes/flipdishPublicTheme.js');
|
|
4
|
+
var NotFoundPage = require('./ui/NotFoundPage/NotFoundPage.js');
|
|
5
|
+
var PortalMock = require('./ui/PortalMock/PortalMock.js');
|
|
6
|
+
var LazyComponent = require('./ui/LazyComponent/LazyComponent.js');
|
|
7
|
+
var Spacer = require('./ui/Spacer/Spacer.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.flipdishPublicTheme = flipdishPublicTheme;
|
|
12
|
+
exports.NotFoundPage = NotFoundPage;
|
|
13
|
+
exports.PortalMock = PortalMock;
|
|
14
|
+
exports.LazyComponent = LazyComponent;
|
|
15
|
+
exports.Spacer = Spacer;
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as _mui_material from '@mui/material';
|
|
2
|
+
|
|
3
|
+
declare const _default: _mui_material.Theme;
|
|
4
|
+
|
|
5
|
+
declare module '@mui/material/styles' {
|
|
6
|
+
interface Palette {
|
|
7
|
+
black: Palette['primary'];
|
|
8
|
+
white: Palette['primary'];
|
|
9
|
+
flippyBlue: Palette['primary'];
|
|
10
|
+
freezerBurn: Palette['primary'];
|
|
11
|
+
spricyCarrot: Palette['primary'];
|
|
12
|
+
pebble: Palette['primary'];
|
|
13
|
+
donutPanic: Palette['primary'];
|
|
14
|
+
eletricLime: Palette['primary'];
|
|
15
|
+
pending: Palette['primary'];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { _default as default };
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { createTheme } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
// Colours and fonts as per our brand guidelines
|
|
4
|
+
const fontTheme = createTheme({
|
|
5
|
+
typography: {
|
|
6
|
+
body1: {
|
|
7
|
+
fontFamily: "'Roboto', sans-serif",
|
|
8
|
+
},
|
|
9
|
+
body2: {
|
|
10
|
+
fontFamily: "'Roboto', sans-serif",
|
|
11
|
+
},
|
|
12
|
+
h1: {
|
|
13
|
+
fontFamily: 'clarendon-text-pro,Domine,serif',
|
|
14
|
+
},
|
|
15
|
+
h2: {
|
|
16
|
+
fontFamily: 'clarendon-text-pro,Domine,serif',
|
|
17
|
+
},
|
|
18
|
+
h3: {
|
|
19
|
+
fontFamily: 'clarendon-text-pro,Domine,serif',
|
|
20
|
+
},
|
|
21
|
+
h4: {
|
|
22
|
+
fontFamily: 'clarendon-text-pro,Domine,serif',
|
|
23
|
+
},
|
|
24
|
+
h5: {
|
|
25
|
+
fontFamily: 'clarendon-text-pro,Domine,serif',
|
|
26
|
+
},
|
|
27
|
+
h6: {
|
|
28
|
+
fontFamily: 'clarendon-text-pro,Domine,serif',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
palette: {
|
|
32
|
+
success: {
|
|
33
|
+
main: '#20C26E',
|
|
34
|
+
dark: '#137442',
|
|
35
|
+
light: '#D2F3E2',
|
|
36
|
+
},
|
|
37
|
+
error: {
|
|
38
|
+
main: '#CA0030',
|
|
39
|
+
dark: '#79001D',
|
|
40
|
+
light: '#FADBE2',
|
|
41
|
+
},
|
|
42
|
+
warning: {
|
|
43
|
+
main: '#FFBC2C',
|
|
44
|
+
dark: '#FF7A00',
|
|
45
|
+
light: '#FFF2D5',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
const theme = createTheme(fontTheme, {
|
|
50
|
+
palette: {
|
|
51
|
+
// Primary
|
|
52
|
+
black: fontTheme.palette.augmentColor({
|
|
53
|
+
color: {
|
|
54
|
+
main: '#000000',
|
|
55
|
+
},
|
|
56
|
+
name: 'black',
|
|
57
|
+
}),
|
|
58
|
+
white: fontTheme.palette.augmentColor({
|
|
59
|
+
color: {
|
|
60
|
+
main: '#ffffff',
|
|
61
|
+
},
|
|
62
|
+
name: 'white',
|
|
63
|
+
}),
|
|
64
|
+
flippyBlue: fontTheme.palette.augmentColor({
|
|
65
|
+
color: {
|
|
66
|
+
main: '#0b75d7',
|
|
67
|
+
},
|
|
68
|
+
name: 'flippyBlue',
|
|
69
|
+
}),
|
|
70
|
+
// Core
|
|
71
|
+
freezerBurn: fontTheme.palette.augmentColor({
|
|
72
|
+
color: {
|
|
73
|
+
main: '#a5e2f6',
|
|
74
|
+
},
|
|
75
|
+
name: 'freezerBurn',
|
|
76
|
+
}),
|
|
77
|
+
spricyCarrot: fontTheme.palette.augmentColor({
|
|
78
|
+
color: {
|
|
79
|
+
main: '#f7742b',
|
|
80
|
+
},
|
|
81
|
+
name: 'spricyCarrot',
|
|
82
|
+
}),
|
|
83
|
+
pebble: fontTheme.palette.augmentColor({
|
|
84
|
+
color: {
|
|
85
|
+
main: '#eeebe3',
|
|
86
|
+
},
|
|
87
|
+
name: 'pebble',
|
|
88
|
+
}),
|
|
89
|
+
// Secondary
|
|
90
|
+
donutPanic: fontTheme.palette.augmentColor({
|
|
91
|
+
color: {
|
|
92
|
+
main: '#ffbae4',
|
|
93
|
+
},
|
|
94
|
+
name: 'donutPanic',
|
|
95
|
+
}),
|
|
96
|
+
eletricLime: fontTheme.palette.augmentColor({
|
|
97
|
+
color: {
|
|
98
|
+
main: '#cff27d',
|
|
99
|
+
},
|
|
100
|
+
name: 'eletricLime',
|
|
101
|
+
}),
|
|
102
|
+
pending: fontTheme.palette.augmentColor({
|
|
103
|
+
color: {
|
|
104
|
+
main: '#DEACFA',
|
|
105
|
+
dark: '#A56AC6',
|
|
106
|
+
light: '#FCF7FE',
|
|
107
|
+
},
|
|
108
|
+
name: 'pending',
|
|
109
|
+
}),
|
|
110
|
+
},
|
|
111
|
+
});
|
|
112
|
+
var flipdishPublicTheme = createTheme(theme, {
|
|
113
|
+
palette: {
|
|
114
|
+
primary: {
|
|
115
|
+
main: theme.palette.flippyBlue.main,
|
|
116
|
+
},
|
|
117
|
+
secondary: {
|
|
118
|
+
main: theme.palette.spricyCarrot.main,
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
components: {
|
|
122
|
+
MuiButton: {
|
|
123
|
+
styleOverrides: {
|
|
124
|
+
root: {
|
|
125
|
+
padding: '7px 14px',
|
|
126
|
+
textTransform: 'none',
|
|
127
|
+
boxShadow: 'none',
|
|
128
|
+
'&:hover': {
|
|
129
|
+
boxShadow: 'none',
|
|
130
|
+
},
|
|
131
|
+
borderRadius: '25px',
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
MuiCard: {
|
|
136
|
+
styleOverrides: {
|
|
137
|
+
root: {
|
|
138
|
+
borderRadius: 0,
|
|
139
|
+
boxShadow: 'none',
|
|
140
|
+
borderWidth: '1px',
|
|
141
|
+
borderStyle: 'solid',
|
|
142
|
+
borderColor: '#999999',
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
MuiChip: {
|
|
147
|
+
styleOverrides: {
|
|
148
|
+
root: {
|
|
149
|
+
borderRadius: '5px',
|
|
150
|
+
fontWeight: 'bold',
|
|
151
|
+
textTransform: 'uppercase',
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
MuiListItemButton: {
|
|
156
|
+
styleOverrides: {
|
|
157
|
+
root: {
|
|
158
|
+
'&:hover': {
|
|
159
|
+
backgroundColor: '#eaf2ff',
|
|
160
|
+
},
|
|
161
|
+
'&:not(:last-child)': {
|
|
162
|
+
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
export { flipdishPublicTheme as default };
|
|
171
|
+
//# sourceMappingURL=flipdishPublicTheme.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flipdishPublicTheme.esm.js","sources":["../../../src/components/themes/flipdishPublicTheme.ts"],"sourcesContent":["import { createTheme } from '@mui/material';\n\n// Colours and fonts as per our brand guidelines\nconst fontTheme = createTheme({\n typography: {\n body1: {\n fontFamily: \"'Roboto', sans-serif\",\n },\n body2: {\n fontFamily: \"'Roboto', sans-serif\",\n },\n h1: {\n fontFamily: 'clarendon-text-pro,Domine,serif',\n },\n h2: {\n fontFamily: 'clarendon-text-pro,Domine,serif',\n },\n h3: {\n fontFamily: 'clarendon-text-pro,Domine,serif',\n },\n h4: {\n fontFamily: 'clarendon-text-pro,Domine,serif',\n },\n h5: {\n fontFamily: 'clarendon-text-pro,Domine,serif',\n },\n h6: {\n fontFamily: 'clarendon-text-pro,Domine,serif',\n },\n },\n palette: {\n success: {\n main: '#20C26E',\n dark: '#137442',\n light: '#D2F3E2',\n },\n error: {\n main: '#CA0030',\n dark: '#79001D',\n light: '#FADBE2',\n },\n warning: {\n main: '#FFBC2C',\n dark: '#FF7A00',\n light: '#FFF2D5',\n },\n },\n});\n\nconst theme = createTheme(fontTheme, {\n palette: {\n // Primary\n black: fontTheme.palette.augmentColor({\n color: {\n main: '#000000',\n },\n name: 'black',\n }),\n white: fontTheme.palette.augmentColor({\n color: {\n main: '#ffffff',\n },\n name: 'white',\n }),\n flippyBlue: fontTheme.palette.augmentColor({\n color: {\n main: '#0b75d7',\n },\n name: 'flippyBlue',\n }),\n // Core\n freezerBurn: fontTheme.palette.augmentColor({\n color: {\n main: '#a5e2f6',\n },\n name: 'freezerBurn',\n }),\n spricyCarrot: fontTheme.palette.augmentColor({\n color: {\n main: '#f7742b',\n },\n name: 'spricyCarrot',\n }),\n pebble: fontTheme.palette.augmentColor({\n color: {\n main: '#eeebe3',\n },\n name: 'pebble',\n }),\n // Secondary\n donutPanic: fontTheme.palette.augmentColor({\n color: {\n main: '#ffbae4',\n },\n name: 'donutPanic',\n }),\n eletricLime: fontTheme.palette.augmentColor({\n color: {\n main: '#cff27d',\n },\n name: 'eletricLime',\n }),\n pending: fontTheme.palette.augmentColor({\n color: {\n main: '#DEACFA',\n dark: '#A56AC6',\n light: '#FCF7FE',\n },\n name: 'pending',\n }),\n },\n});\n\nexport default createTheme(theme, {\n palette: {\n primary: {\n main: theme.palette.flippyBlue.main,\n },\n secondary: {\n main: theme.palette.spricyCarrot.main,\n },\n },\n components: {\n MuiButton: {\n styleOverrides: {\n root: {\n padding: '7px 14px',\n textTransform: 'none',\n boxShadow: 'none',\n '&:hover': {\n boxShadow: 'none',\n },\n borderRadius: '25px',\n },\n },\n },\n MuiCard: {\n styleOverrides: {\n root: {\n borderRadius: 0,\n boxShadow: 'none',\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor: '#999999',\n },\n },\n },\n MuiChip: {\n styleOverrides: {\n root: {\n borderRadius: '5px',\n fontWeight: 'bold',\n textTransform: 'uppercase',\n },\n },\n },\n MuiListItemButton: {\n styleOverrides: {\n root: {\n '&:hover': {\n backgroundColor: '#eaf2ff',\n },\n '&:not(:last-child)': {\n borderBottom: `1px solid ${theme.palette.divider}`,\n },\n },\n },\n },\n },\n});\n\ndeclare module '@mui/material/styles' {\n interface Palette {\n black: Palette['primary'];\n white: Palette['primary'];\n flippyBlue: Palette['primary'];\n freezerBurn: Palette['primary'];\n spricyCarrot: Palette['primary'];\n pebble: Palette['primary'];\n donutPanic: Palette['primary'];\n eletricLime: Palette['primary'];\n pending: Palette['primary'];\n }\n}\n"],"names":[],"mappings":";;AAEA;AACA,MAAM,SAAS,GAAG,WAAW,CAAC;AAC1B,IAAA,UAAU,EAAE;AACR,QAAA,KAAK,EAAE;AACH,YAAA,UAAU,EAAE,sBAAsB;AACrC,SAAA;AACD,QAAA,KAAK,EAAE;AACH,YAAA,UAAU,EAAE,sBAAsB;AACrC,SAAA;AACD,QAAA,EAAE,EAAE;AACA,YAAA,UAAU,EAAE,iCAAiC;AAChD,SAAA;AACD,QAAA,EAAE,EAAE;AACA,YAAA,UAAU,EAAE,iCAAiC;AAChD,SAAA;AACD,QAAA,EAAE,EAAE;AACA,YAAA,UAAU,EAAE,iCAAiC;AAChD,SAAA;AACD,QAAA,EAAE,EAAE;AACA,YAAA,UAAU,EAAE,iCAAiC;AA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|
|
2
|
+
|
|
3
|
+
var material = require('@mui/material');
|
|
4
|
+
|
|
5
|
+
// Colours and fonts as per our brand guidelines
|
|
6
|
+
const fontTheme = material.createTheme({
|
|
7
|
+
typography: {
|
|
8
|
+
body1: {
|
|
9
|
+
fontFamily: "'Roboto', sans-serif",
|
|
10
|
+
},
|
|
11
|
+
body2: {
|
|
12
|
+
fontFamily: "'Roboto', sans-serif",
|
|
13
|
+
},
|
|
14
|
+
h1: {
|
|
15
|
+
fontFamily: 'clarendon-text-pro,Domine,serif',
|
|
16
|
+
},
|
|
17
|
+
h2: {
|
|
18
|
+
fontFamily: 'clarendon-text-pro,Domine,serif',
|
|
19
|
+
},
|
|
20
|
+
h3: {
|
|
21
|
+
fontFamily: 'clarendon-text-pro,Domine,serif',
|
|
22
|
+
},
|
|
23
|
+
h4: {
|
|
24
|
+
fontFamily: 'clarendon-text-pro,Domine,serif',
|
|
25
|
+
},
|
|
26
|
+
h5: {
|
|
27
|
+
fontFamily: 'clarendon-text-pro,Domine,serif',
|
|
28
|
+
},
|
|
29
|
+
h6: {
|
|
30
|
+
fontFamily: 'clarendon-text-pro,Domine,serif',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
palette: {
|
|
34
|
+
success: {
|
|
35
|
+
main: '#20C26E',
|
|
36
|
+
dark: '#137442',
|
|
37
|
+
light: '#D2F3E2',
|
|
38
|
+
},
|
|
39
|
+
error: {
|
|
40
|
+
main: '#CA0030',
|
|
41
|
+
dark: '#79001D',
|
|
42
|
+
light: '#FADBE2',
|
|
43
|
+
},
|
|
44
|
+
warning: {
|
|
45
|
+
main: '#FFBC2C',
|
|
46
|
+
dark: '#FF7A00',
|
|
47
|
+
light: '#FFF2D5',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
const theme = material.createTheme(fontTheme, {
|
|
52
|
+
palette: {
|
|
53
|
+
// Primary
|
|
54
|
+
black: fontTheme.palette.augmentColor({
|
|
55
|
+
color: {
|
|
56
|
+
main: '#000000',
|
|
57
|
+
},
|
|
58
|
+
name: 'black',
|
|
59
|
+
}),
|
|
60
|
+
white: fontTheme.palette.augmentColor({
|
|
61
|
+
color: {
|
|
62
|
+
main: '#ffffff',
|
|
63
|
+
},
|
|
64
|
+
name: 'white',
|
|
65
|
+
}),
|
|
66
|
+
flippyBlue: fontTheme.palette.augmentColor({
|
|
67
|
+
color: {
|
|
68
|
+
main: '#0b75d7',
|
|
69
|
+
},
|
|
70
|
+
name: 'flippyBlue',
|
|
71
|
+
}),
|
|
72
|
+
// Core
|
|
73
|
+
freezerBurn: fontTheme.palette.augmentColor({
|
|
74
|
+
color: {
|
|
75
|
+
main: '#a5e2f6',
|
|
76
|
+
},
|
|
77
|
+
name: 'freezerBurn',
|
|
78
|
+
}),
|
|
79
|
+
spricyCarrot: fontTheme.palette.augmentColor({
|
|
80
|
+
color: {
|
|
81
|
+
main: '#f7742b',
|
|
82
|
+
},
|
|
83
|
+
name: 'spricyCarrot',
|
|
84
|
+
}),
|
|
85
|
+
pebble: fontTheme.palette.augmentColor({
|
|
86
|
+
color: {
|
|
87
|
+
main: '#eeebe3',
|
|
88
|
+
},
|
|
89
|
+
name: 'pebble',
|
|
90
|
+
}),
|
|
91
|
+
// Secondary
|
|
92
|
+
donutPanic: fontTheme.palette.augmentColor({
|
|
93
|
+
color: {
|
|
94
|
+
main: '#ffbae4',
|
|
95
|
+
},
|
|
96
|
+
name: 'donutPanic',
|
|
97
|
+
}),
|
|
98
|
+
eletricLime: fontTheme.palette.augmentColor({
|
|
99
|
+
color: {
|
|
100
|
+
main: '#cff27d',
|
|
101
|
+
},
|
|
102
|
+
name: 'eletricLime',
|
|
103
|
+
}),
|
|
104
|
+
pending: fontTheme.palette.augmentColor({
|
|
105
|
+
color: {
|
|
106
|
+
main: '#DEACFA',
|
|
107
|
+
dark: '#A56AC6',
|
|
108
|
+
light: '#FCF7FE',
|
|
109
|
+
},
|
|
110
|
+
name: 'pending',
|
|
111
|
+
}),
|
|
112
|
+
},
|
|
113
|
+
});
|
|
114
|
+
var flipdishPublicTheme = material.createTheme(theme, {
|
|
115
|
+
palette: {
|
|
116
|
+
primary: {
|
|
117
|
+
main: theme.palette.flippyBlue.main,
|
|
118
|
+
},
|
|
119
|
+
secondary: {
|
|
120
|
+
main: theme.palette.spricyCarrot.main,
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
components: {
|
|
124
|
+
MuiButton: {
|
|
125
|
+
styleOverrides: {
|
|
126
|
+
root: {
|
|
127
|
+
padding: '7px 14px',
|
|
128
|
+
textTransform: 'none',
|
|
129
|
+
boxShadow: 'none',
|
|
130
|
+
'&:hover': {
|
|
131
|
+
boxShadow: 'none',
|
|
132
|
+
},
|
|
133
|
+
borderRadius: '25px',
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
MuiCard: {
|
|
138
|
+
styleOverrides: {
|
|
139
|
+
root: {
|
|
140
|
+
borderRadius: 0,
|
|
141
|
+
boxShadow: 'none',
|
|
142
|
+
borderWidth: '1px',
|
|
143
|
+
borderStyle: 'solid',
|
|
144
|
+
borderColor: '#999999',
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
MuiChip: {
|
|
149
|
+
styleOverrides: {
|
|
150
|
+
root: {
|
|
151
|
+
borderRadius: '5px',
|
|
152
|
+
fontWeight: 'bold',
|
|
153
|
+
textTransform: 'uppercase',
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
MuiListItemButton: {
|
|
158
|
+
styleOverrides: {
|
|
159
|
+
root: {
|
|
160
|
+
'&:hover': {
|
|
161
|
+
backgroundColor: '#eaf2ff',
|
|
162
|
+
},
|
|
163
|
+
'&:not(:last-child)': {
|
|
164
|
+
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
module.exports = flipdishPublicTheme;
|
|
173
|
+
//# sourceMappingURL=flipdishPublicTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flipdishPublicTheme.js","sources":["../../../src/components/themes/flipdishPublicTheme.ts"],"sourcesContent":["import { createTheme } from '@mui/material';\n\n// Colours and fonts as per our brand guidelines\nconst fontTheme = createTheme({\n typography: {\n body1: {\n fontFamily: \"'Roboto', sans-serif\",\n },\n body2: {\n fontFamily: \"'Roboto', sans-serif\",\n },\n h1: {\n fontFamily: 'clarendon-text-pro,Domine,serif',\n },\n h2: {\n fontFamily: 'clarendon-text-pro,Domine,serif',\n },\n h3: {\n fontFamily: 'clarendon-text-pro,Domine,serif',\n },\n h4: {\n fontFamily: 'clarendon-text-pro,Domine,serif',\n },\n h5: {\n fontFamily: 'clarendon-text-pro,Domine,serif',\n },\n h6: {\n fontFamily: 'clarendon-text-pro,Domine,serif',\n },\n },\n palette: {\n success: {\n main: '#20C26E',\n dark: '#137442',\n light: '#D2F3E2',\n },\n error: {\n main: '#CA0030',\n dark: '#79001D',\n light: '#FADBE2',\n },\n warning: {\n main: '#FFBC2C',\n dark: '#FF7A00',\n light: '#FFF2D5',\n },\n },\n});\n\nconst theme = createTheme(fontTheme, {\n palette: {\n // Primary\n black: fontTheme.palette.augmentColor({\n color: {\n main: '#000000',\n },\n name: 'black',\n }),\n white: fontTheme.palette.augmentColor({\n color: {\n main: '#ffffff',\n },\n name: 'white',\n }),\n flippyBlue: fontTheme.palette.augmentColor({\n color: {\n main: '#0b75d7',\n },\n name: 'flippyBlue',\n }),\n // Core\n freezerBurn: fontTheme.palette.augmentColor({\n color: {\n main: '#a5e2f6',\n },\n name: 'freezerBurn',\n }),\n spricyCarrot: fontTheme.palette.augmentColor({\n color: {\n main: '#f7742b',\n },\n name: 'spricyCarrot',\n }),\n pebble: fontTheme.palette.augmentColor({\n color: {\n main: '#eeebe3',\n },\n name: 'pebble',\n }),\n // Secondary\n donutPanic: fontTheme.palette.augmentColor({\n color: {\n main: '#ffbae4',\n },\n name: 'donutPanic',\n }),\n eletricLime: fontTheme.palette.augmentColor({\n color: {\n main: '#cff27d',\n },\n name: 'eletricLime',\n }),\n pending: fontTheme.palette.augmentColor({\n color: {\n main: '#DEACFA',\n dark: '#A56AC6',\n light: '#FCF7FE',\n },\n name: 'pending',\n }),\n },\n});\n\nexport default createTheme(theme, {\n palette: {\n primary: {\n main: theme.palette.flippyBlue.main,\n },\n secondary: {\n main: theme.palette.spricyCarrot.main,\n },\n },\n components: {\n MuiButton: {\n styleOverrides: {\n root: {\n padding: '7px 14px',\n textTransform: 'none',\n boxShadow: 'none',\n '&:hover': {\n boxShadow: 'none',\n },\n borderRadius: '25px',\n },\n },\n },\n MuiCard: {\n styleOverrides: {\n root: {\n borderRadius: 0,\n boxShadow: 'none',\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor: '#999999',\n },\n },\n },\n MuiChip: {\n styleOverrides: {\n root: {\n borderRadius: '5px',\n fontWeight: 'bold',\n textTransform: 'uppercase',\n },\n },\n },\n MuiListItemButton: {\n styleOverrides: {\n root: {\n '&:hover': {\n backgroundColor: '#eaf2ff',\n },\n '&:not(:last-child)': {\n borderBottom: `1px solid ${theme.palette.divider}`,\n },\n },\n },\n },\n },\n});\n\ndeclare module '@mui/material/styles' {\n interface Palette {\n black: Palette['primary'];\n white: Palette['primary'];\n flippyBlue: Palette['primary'];\n freezerBurn: Palette['primary'];\n spricyCarrot: Palette['primary'];\n pebble: Palette['primary'];\n donutPanic: Palette['primary'];\n eletricLime: Palette['primary'];\n pending: Palette['primary'];\n }\n}\n"],"names":["createTheme"],"mappings":";;;;AAEA;AACA,MAAM,SAAS,GAAGA,oBAAW,CAAC;AAC1B,IAAA,UAAU,EAAE;AACR,QAAA,KAAK,EAAE;AACH,YAAA,UAAU,EAAE,sBAAsB;AACrC,SAAA;AACD,QAAA,KAAK,EAAE;AACH,YAAA,UAAU,EAAE,sBAAsB;A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AAE,SAAS;AAC7B,qBAAA;AACD,oBAAA,oBAAoB,EAAE;AAClB,wBAAA,YAAY,EAAE,CAAa,UAAA,EAAA,KAAK,CAAC,OAAO,CAAC,OAAO,CAAE,CAAA;AACrD,qBAAA;AACJ,iBAAA;AACJ,aAAA;AACJ,SAAA;AACJ,KAAA;AACJ,CAAA,CAAC;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type LazyComponentProps = {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
declare const LazyComponent: ({ children }: LazyComponentProps) => react_jsx_runtime.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { LazyComponent as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Suspense } from 'react';
|
|
3
|
+
import CircularProgress from '@mui/material/CircularProgress';
|
|
4
|
+
import { styled } from '@mui/material/styles';
|
|
5
|
+
|
|
6
|
+
const StyledLoadingContainer = styled('div')({
|
|
7
|
+
display: 'flex',
|
|
8
|
+
justifyContent: 'center',
|
|
9
|
+
alignItems: 'center',
|
|
10
|
+
});
|
|
11
|
+
const LazyComponent = ({ children }) => (jsx(Suspense, { fallback: jsx(StyledLoadingContainer, { children: jsx(CircularProgress, { size: 56 }) }), children: children }));
|
|
12
|
+
|
|
13
|
+
export { LazyComponent as default };
|
|
14
|
+
//# sourceMappingURL=LazyComponent.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LazyComponent.esm.js","sources":["../../../../src/components/ui/LazyComponent/LazyComponent.tsx"],"sourcesContent":["import { Suspense, ReactNode } from 'react';\n\nimport CircularProgress from '@mui/material/CircularProgress';\nimport { styled } from '@mui/material/styles';\n\ntype LazyComponentProps = {\n children: ReactNode;\n};\n\nconst StyledLoadingContainer = styled('div')({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n});\n\nconst LazyComponent = ({ children }: LazyComponentProps) => (\n <Suspense\n fallback={\n <StyledLoadingContainer>\n <CircularProgress size={56} />\n </StyledLoadingContainer>\n }\n >\n {children}\n </Suspense>\n);\n\nexport default LazyComponent;\n"],"names":["_jsx"],"mappings":";;;;;AASA,MAAM,sBAAsB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;AACzC,IAAA,OAAO,EAAE,MAAM;AACf,IAAA,cAAc,EAAE,QAAQ;AACxB,IAAA,UAAU,EAAE,QAAQ;AACvB,CAAA,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAsB,MACnDA,GAAC,CAAA,QAAQ,IACL,QAAQ,EACJA,GAAC,CAAA,sBAAsB,EACnB,EAAA,QAAA,EAAAA,GAAA,CAAC,gBAAgB,EAAA,EAAC,IAAI,EAAE,EAAE,EAAA,CAAI,EACT,CAAA,EAAA,QAAA,EAG5B,QAAQ,EAAA,CACF;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var react = require('react');
|
|
5
|
+
var CircularProgress = require('@mui/material/CircularProgress');
|
|
6
|
+
var styles = require('@mui/material/styles');
|
|
7
|
+
|
|
8
|
+
const StyledLoadingContainer = styles.styled('div')({
|
|
9
|
+
display: 'flex',
|
|
10
|
+
justifyContent: 'center',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
});
|
|
13
|
+
const LazyComponent = ({ children }) => (jsxRuntime.jsx(react.Suspense, { fallback: jsxRuntime.jsx(StyledLoadingContainer, { children: jsxRuntime.jsx(CircularProgress, { size: 56 }) }), children: children }));
|
|
14
|
+
|
|
15
|
+
module.exports = LazyComponent;
|
|
16
|
+
//# sourceMappingURL=LazyComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LazyComponent.js","sources":["../../../../src/components/ui/LazyComponent/LazyComponent.tsx"],"sourcesContent":["import { Suspense, ReactNode } from 'react';\n\nimport CircularProgress from '@mui/material/CircularProgress';\nimport { styled } from '@mui/material/styles';\n\ntype LazyComponentProps = {\n children: ReactNode;\n};\n\nconst StyledLoadingContainer = styled('div')({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n});\n\nconst LazyComponent = ({ children }: LazyComponentProps) => (\n <Suspense\n fallback={\n <StyledLoadingContainer>\n <CircularProgress size={56} />\n </StyledLoadingContainer>\n }\n >\n {children}\n </Suspense>\n);\n\nexport default LazyComponent;\n"],"names":["styled","_jsx","Suspense"],"mappings":";;;;;;;AASA,MAAM,sBAAsB,GAAGA,aAAM,CAAC,KAAK,CAAC,CAAC;AACzC,IAAA,OAAO,EAAE,MAAM;AACf,IAAA,cAAc,EAAE,QAAQ;AACxB,IAAA,UAAU,EAAE,QAAQ;AACvB,CAAA,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAsB,MACnDC,cAAC,CAAAC,cAAQ,IACL,QAAQ,EACJD,cAAC,CAAA,sBAAsB,EACnB,EAAA,QAAA,EAAAA,cAAA,CAAC,gBAAgB,EAAA,EAAC,IAAI,EAAE,EAAE,EAAA,CAAI,EACT,CAAA,EAAA,QAAA,EAG5B,QAAQ,EAAA,CACF;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { styled } from '@mui/material/styles';
|
|
3
|
+
import Typography from '@mui/material/Typography';
|
|
4
|
+
import { useTranslation } from '../../../providers/TranslationProvider.esm.js';
|
|
5
|
+
|
|
6
|
+
const StyledTextContainer = styled('div')(({ theme }) => ({
|
|
7
|
+
marginTop: theme.spacing(2),
|
|
8
|
+
display: 'flex',
|
|
9
|
+
justifyContent: 'center',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
}));
|
|
12
|
+
const NotFoundPage = () => {
|
|
13
|
+
const { translate } = useTranslation();
|
|
14
|
+
return (jsx(StyledTextContainer, { children: jsx(Typography, { children: translate('Page_Not_Found') }) }));
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { NotFoundPage as default };
|
|
18
|
+
//# sourceMappingURL=NotFoundPage.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotFoundPage.esm.js","sources":["../../../../src/components/ui/NotFoundPage/NotFoundPage.tsx"],"sourcesContent":["import { styled } from '@mui/material/styles';\nimport Typography from '@mui/material/Typography';\nimport { useTranslation } from '../../../providers/TranslationProvider';\n\nconst StyledTextContainer = styled('div')(({ theme }) => ({\n marginTop: theme.spacing(2),\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n}));\n\nconst NotFoundPage = () => {\n const { translate } = useTranslation();\n return (\n <StyledTextContainer>\n <Typography>{translate('Page_Not_Found')}</Typography>\n </StyledTextContainer>\n );\n};\n\nexport default NotFoundPage;\n"],"names":["_jsx"],"mappings":";;;;;AAIA,MAAM,mBAAmB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM;AACtD,IAAA,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC3B,IAAA,OAAO,EAAE,MAAM;AACf,IAAA,cAAc,EAAE,QAAQ;AACxB,IAAA,UAAU,EAAE,QAAQ;AACvB,CAAA,CAAC,CAAC,CAAC;AAEE,MAAA,YAAY,GAAG,MAAK;AACtB,IAAA,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAC;AACvC,IAAA,QACIA,GAAA,CAAC,mBAAmB,EAAA,EAAA,QAAA,EAChBA,IAAC,UAAU,EAAA,EAAA,QAAA,EAAE,SAAS,CAAC,gBAAgB,CAAC,EAAc,CAAA,EAAA,CACpC,EACxB;AACN;;;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var styles = require('@mui/material/styles');
|
|
5
|
+
var Typography = require('@mui/material/Typography');
|
|
6
|
+
var TranslationProvider = require('../../../providers/TranslationProvider.js');
|
|
7
|
+
|
|
8
|
+
const StyledTextContainer = styles.styled('div')(({ theme }) => ({
|
|
9
|
+
marginTop: theme.spacing(2),
|
|
10
|
+
display: 'flex',
|
|
11
|
+
justifyContent: 'center',
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
}));
|
|
14
|
+
const NotFoundPage = () => {
|
|
15
|
+
const { translate } = TranslationProvider.useTranslation();
|
|
16
|
+
return (jsxRuntime.jsx(StyledTextContainer, { children: jsxRuntime.jsx(Typography, { children: translate('Page_Not_Found') }) }));
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
module.exports = NotFoundPage;
|
|
20
|
+
//# sourceMappingURL=NotFoundPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotFoundPage.js","sources":["../../../../src/components/ui/NotFoundPage/NotFoundPage.tsx"],"sourcesContent":["import { styled } from '@mui/material/styles';\nimport Typography from '@mui/material/Typography';\nimport { useTranslation } from '../../../providers/TranslationProvider';\n\nconst StyledTextContainer = styled('div')(({ theme }) => ({\n marginTop: theme.spacing(2),\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n}));\n\nconst NotFoundPage = () => {\n const { translate } = useTranslation();\n return (\n <StyledTextContainer>\n <Typography>{translate('Page_Not_Found')}</Typography>\n </StyledTextContainer>\n );\n};\n\nexport default NotFoundPage;\n"],"names":["styled","useTranslation","_jsx"],"mappings":";;;;;;;AAIA,MAAM,mBAAmB,GAAGA,aAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM;AACtD,IAAA,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC3B,IAAA,OAAO,EAAE,MAAM;AACf,IAAA,cAAc,EAAE,QAAQ;AACxB,IAAA,UAAU,EAAE,QAAQ;AACvB,CAAA,CAAC,CAAC,CAAC;AAEE,MAAA,YAAY,GAAG,MAAK;AACtB,IAAA,MAAM,EAAE,SAAS,EAAE,GAAGC,kCAAc,EAAE,CAAC;AACvC,IAAA,QACIC,cAAA,CAAC,mBAAmB,EAAA,EAAA,QAAA,EAChBA,eAAC,UAAU,EAAA,EAAA,QAAA,EAAE,SAAS,CAAC,gBAAgB,CAAC,EAAc,CAAA,EAAA,CACpC,EACxB;AACN;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
loadedFromPortal: boolean;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
declare const PortalMock: ({ children, loadedFromPortal }: Props) => react_jsx_runtime.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { PortalMock as default };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { styled, useTheme } from '@mui/material/styles';
|
|
3
|
+
import { Typography, Box, CssBaseline, AppBar, Drawer } from '@mui/material';
|
|
4
|
+
|
|
5
|
+
const StyledHeader = styled('div')(({ theme }) => ({
|
|
6
|
+
display: 'flex',
|
|
7
|
+
justifyContent: 'center',
|
|
8
|
+
alignItems: 'center',
|
|
9
|
+
backgroundColor: theme.palette.grey[300],
|
|
10
|
+
height: '65px',
|
|
11
|
+
color: theme.palette.text.primary,
|
|
12
|
+
borderBottom: `2px solid ${theme.palette.grey[400]}`,
|
|
13
|
+
}));
|
|
14
|
+
const StyledSidebar = styled('div')(({ theme }) => ({
|
|
15
|
+
display: 'flex',
|
|
16
|
+
justifyContent: 'center',
|
|
17
|
+
alignItems: 'center',
|
|
18
|
+
backgroundColor: theme.palette.grey[300],
|
|
19
|
+
height: '100%',
|
|
20
|
+
color: theme.palette.text.primary,
|
|
21
|
+
}));
|
|
22
|
+
const drawerWidth = 198;
|
|
23
|
+
const PortalMock = ({ children, loadedFromPortal }) => {
|
|
24
|
+
const theme = useTheme();
|
|
25
|
+
if (loadedFromPortal) {
|
|
26
|
+
return jsx(Fragment, { children: children });
|
|
27
|
+
}
|
|
28
|
+
const drawer = (jsx(StyledSidebar, { children: jsx(Typography, { sx: { fontWeight: 'bold' }, children: "Sidebar" }) }));
|
|
29
|
+
return (jsxs(Box, { sx: { display: 'flex' }, children: [jsx(CssBaseline, {}), jsx(AppBar, { position: "fixed", sx: {
|
|
30
|
+
width: { sm: `calc(100% - ${drawerWidth}px)` },
|
|
31
|
+
ml: { sm: `${drawerWidth}px` },
|
|
32
|
+
boxShadow: 'none',
|
|
33
|
+
}, children: jsx(StyledHeader, { children: jsx(Typography, { sx: { fontWeight: 'bold' }, children: "Header" }) }) }), jsx(Box, { component: "nav", sx: { width: { sm: drawerWidth }, flexShrink: { sm: 0 } }, "aria-label": "mailbox folders", children: jsx(Drawer, { variant: "permanent", sx: {
|
|
34
|
+
display: { xs: 'none', sm: 'block' },
|
|
35
|
+
'& .MuiDrawer-paper': {
|
|
36
|
+
boxSizing: 'border-box',
|
|
37
|
+
width: drawerWidth,
|
|
38
|
+
borderColor: theme.palette.grey[400],
|
|
39
|
+
borderWidth: '2px',
|
|
40
|
+
},
|
|
41
|
+
}, open: true, children: drawer }) }), jsx(Box, { component: "main", sx: { flexGrow: 1, width: { sm: `calc(100% - ${drawerWidth}px)`, marginTop: '65px' } }, children: children })] }));
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export { PortalMock as default };
|
|
45
|
+
//# sourceMappingURL=PortalMock.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PortalMock.esm.js","sources":["../../../../src/components/ui/PortalMock/PortalMock.tsx"],"sourcesContent":["import { styled, useTheme } from '@mui/material/styles';\nimport { AppBar, Box, CssBaseline, Drawer, Typography } from '@mui/material';\n\nconst StyledHeader = styled('div')(({ theme }) => ({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: theme.palette.grey[300],\n height: '65px',\n color: theme.palette.text.primary,\n borderBottom: `2px solid ${theme.palette.grey[400]}`,\n}));\n\nconst StyledSidebar = styled('div')(({ theme }) => ({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: theme.palette.grey[300],\n height: '100%',\n color: theme.palette.text.primary,\n}));\n\ntype Props = {\n loadedFromPortal: boolean;\n children: React.ReactNode;\n};\nconst drawerWidth = 198;\n\nconst PortalMock = ({ children, loadedFromPortal }: Props) => {\n const theme = useTheme();\n\n if (loadedFromPortal) {\n return <>{children}</>;\n }\n\n const drawer = (\n <StyledSidebar>\n <Typography sx={{ fontWeight: 'bold' }}>Sidebar</Typography>\n </StyledSidebar>\n );\n\n return (\n <Box sx={{ display: 'flex' }}>\n <CssBaseline />\n <AppBar\n position=\"fixed\"\n sx={{\n width: { sm: `calc(100% - ${drawerWidth}px)` },\n ml: { sm: `${drawerWidth}px` },\n boxShadow: 'none',\n }}\n >\n <StyledHeader>\n <Typography sx={{ fontWeight: 'bold' }}>Header</Typography>\n </StyledHeader>\n </AppBar>\n <Box component=\"nav\" sx={{ width: { sm: drawerWidth }, flexShrink: { sm: 0 } }} aria-label=\"mailbox folders\">\n <Drawer\n variant=\"permanent\"\n sx={{\n display: { xs: 'none', sm: 'block' },\n '& .MuiDrawer-paper': {\n boxSizing: 'border-box',\n width: drawerWidth,\n borderColor: theme.palette.grey[400],\n borderWidth: '2px',\n },\n }}\n open\n >\n {drawer}\n </Drawer>\n </Box>\n <Box component=\"main\" sx={{ flexGrow: 1, width: { sm: `calc(100% - ${drawerWidth}px)`, marginTop: '65px' } }}>\n {children}\n </Box>\n </Box>\n );\n};\n\nexport default PortalMock;\n"],"names":["_jsx","_Fragment","_jsxs"],"mappings":";;;;AAGA,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,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