@flipdish/portal-library 1.0.21 → 1.0.22
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.cjs.js +1 -15
- package/dist/components/index.cjs.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -5
- package/dist/components/index.js.map +1 -1
- package/dist/components/themes/flipdishPublicTheme.cjs.js +1 -172
- package/dist/components/themes/flipdishPublicTheme.cjs.js.map +1 -1
- package/dist/components/themes/flipdishPublicTheme.d.ts +9 -2
- package/dist/components/themes/flipdishPublicTheme.js +1 -170
- package/dist/components/themes/flipdishPublicTheme.js.map +1 -1
- package/dist/components/ui/FDErrorBoundary/FDErrorBoundary.cjs.js +2 -0
- package/dist/components/ui/FDErrorBoundary/FDErrorBoundary.cjs.js.map +1 -0
- package/dist/components/ui/FDErrorBoundary/FDErrorBoundary.js +2 -0
- package/dist/components/ui/FDErrorBoundary/FDErrorBoundary.js.map +1 -0
- package/dist/components/ui/LazyComponent/LazyComponent.cjs.js +1 -15
- package/dist/components/ui/LazyComponent/LazyComponent.cjs.js.map +1 -1
- package/dist/components/ui/LazyComponent/LazyComponent.js +1 -13
- package/dist/components/ui/LazyComponent/LazyComponent.js.map +1 -1
- package/dist/components/ui/NotFoundPage/NotFoundPage.cjs.js +1 -20
- package/dist/components/ui/NotFoundPage/NotFoundPage.cjs.js.map +1 -1
- package/dist/components/ui/NotFoundPage/NotFoundPage.js +1 -18
- package/dist/components/ui/NotFoundPage/NotFoundPage.js.map +1 -1
- package/dist/components/ui/PageLayout/DocumentTitle.cjs.js +2 -0
- package/dist/components/ui/PageLayout/DocumentTitle.cjs.js.map +1 -0
- package/dist/components/ui/PageLayout/DocumentTitle.js +2 -0
- package/dist/components/ui/PageLayout/DocumentTitle.js.map +1 -0
- package/dist/components/ui/PageLayout/FullWidthContainer.cjs.js +2 -0
- package/dist/components/ui/PageLayout/FullWidthContainer.cjs.js.map +1 -0
- package/dist/components/ui/PageLayout/FullWidthContainer.js +2 -0
- package/dist/components/ui/PageLayout/FullWidthContainer.js.map +1 -0
- package/dist/components/ui/PageLayout/PageLayout.cjs.js +2 -0
- package/dist/components/ui/PageLayout/PageLayout.cjs.js.map +1 -0
- package/dist/components/ui/PageLayout/PageLayout.d.ts +26 -0
- package/dist/components/ui/PageLayout/PageLayout.js +2 -0
- package/dist/components/ui/PageLayout/PageLayout.js.map +1 -0
- package/dist/components/ui/PortalMock/PortalMock.cjs.js +1 -46
- package/dist/components/ui/PortalMock/PortalMock.cjs.js.map +1 -1
- package/dist/components/ui/PortalMock/PortalMock.js +1 -44
- package/dist/components/ui/PortalMock/PortalMock.js.map +1 -1
- package/dist/components/ui/Spacer/Spacer.cjs.js +1 -33
- package/dist/components/ui/Spacer/Spacer.cjs.js.map +1 -1
- package/dist/components/ui/Spacer/Spacer.js +1 -31
- package/dist/components/ui/Spacer/Spacer.js.map +1 -1
- package/dist/localization/en.json.cjs.js +1 -66
- package/dist/localization/en.json.cjs.js.map +1 -1
- package/dist/localization/en.json.js +1 -51
- package/dist/localization/en.json.js.map +1 -1
- package/dist/node_modules/.pnpm/@remix-run_router@1.20.0/node_modules/@remix-run/router/dist/router.cjs.js +12 -0
- package/dist/node_modules/.pnpm/@remix-run_router@1.20.0/node_modules/@remix-run/router/dist/router.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@remix-run_router@1.20.0/node_modules/@remix-run/router/dist/router.js +12 -0
- package/dist/node_modules/.pnpm/@remix-run_router@1.20.0/node_modules/@remix-run/router/dist/router.js.map +1 -0
- package/dist/node_modules/.pnpm/react-router@6.27.0_react@18.3.1/node_modules/react-router/dist/index.cjs.js +12 -0
- package/dist/node_modules/.pnpm/react-router@6.27.0_react@18.3.1/node_modules/react-router/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/react-router@6.27.0_react@18.3.1/node_modules/react-router/dist/index.js +12 -0
- package/dist/node_modules/.pnpm/react-router@6.27.0_react@18.3.1/node_modules/react-router/dist/index.js.map +1 -0
- package/dist/providers/TranslationProvider.cjs.js +1 -22
- package/dist/providers/TranslationProvider.cjs.js.map +1 -1
- package/dist/providers/TranslationProvider.js +1 -20
- package/dist/providers/TranslationProvider.js.map +1 -1
- package/dist/utilities/renderUtilities.cjs.js +2 -0
- package/dist/utilities/renderUtilities.cjs.js.map +1 -0
- package/dist/utilities/renderUtilities.js +2 -0
- package/dist/utilities/renderUtilities.js.map +1 -0
- package/dist/utilities/validation.cjs.js +2 -0
- package/dist/utilities/validation.cjs.js.map +1 -0
- package/dist/utilities/validation.js +2 -0
- package/dist/utilities/validation.js.map +1 -0
- package/package.json +3 -10
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var flipdishPublicTheme = require('./themes/flipdishPublicTheme.cjs.js');
|
|
4
|
-
var NotFoundPage = require('./ui/NotFoundPage/NotFoundPage.cjs.js');
|
|
5
|
-
var PortalMock = require('./ui/PortalMock/PortalMock.cjs.js');
|
|
6
|
-
var LazyComponent = require('./ui/LazyComponent/LazyComponent.cjs.js');
|
|
7
|
-
var Spacer = require('./ui/Spacer/Spacer.cjs.js');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
exports.flipdishPublicTheme = flipdishPublicTheme;
|
|
12
|
-
exports.NotFoundPage = NotFoundPage;
|
|
13
|
-
exports.PortalMock = PortalMock;
|
|
14
|
-
exports.LazyComponent = LazyComponent;
|
|
15
|
-
exports.Spacer = Spacer;
|
|
1
|
+
"use strict";var e=require("./themes/flipdishPublicTheme.cjs.js"),o=require("./ui/NotFoundPage/NotFoundPage.cjs.js"),r=require("./ui/PageLayout/PageLayout.cjs.js"),s=require("./ui/PortalMock/PortalMock.cjs.js"),t=require("./ui/LazyComponent/LazyComponent.cjs.js"),u=require("./ui/Spacer/Spacer.cjs.js");exports.flipdishPublicTheme=e,exports.NotFoundPage=o,exports.PageLayout=r.default,exports.PortalMock=s,exports.LazyComponent=t,exports.Spacer=u;
|
|
16
2
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as flipdishPublicTheme } from './themes/flipdishPublicTheme.js';
|
|
2
2
|
export { default as NotFoundPage } from './ui/NotFoundPage/NotFoundPage.js';
|
|
3
|
+
export { default as PageLayout } from './ui/PageLayout/PageLayout.js';
|
|
3
4
|
export { default as PortalMock } from './ui/PortalMock/PortalMock.js';
|
|
4
5
|
export { default as LazyComponent } from './ui/LazyComponent/LazyComponent.js';
|
|
5
6
|
export { default as Spacer } from './ui/Spacer/Spacer.js';
|
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export { default as
|
|
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';
|
|
1
|
+
export{default as flipdishPublicTheme}from"./themes/flipdishPublicTheme.js";export{default as NotFoundPage}from"./ui/NotFoundPage/NotFoundPage.js";export{default as PageLayout}from"./ui/PageLayout/PageLayout.js";export{default as PortalMock}from"./ui/PortalMock/PortalMock.js";export{default as LazyComponent}from"./ui/LazyComponent/LazyComponent.js";export{default as Spacer}from"./ui/Spacer/Spacer.js";
|
|
6
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,173 +1,2 @@
|
|
|
1
|
-
|
|
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;
|
|
1
|
+
"use strict";var e=require("@mui/material/styles/createTheme");const o=e({typography:{body1:{fontFamily:"'Roboto', sans-serif"},body2:{fontFamily:"'Roboto', sans-serif"},h1:{fontFamily:"clarendon-text-pro,Domine,serif"},h2:{fontFamily:"clarendon-text-pro,Domine,serif"},h3:{fontFamily:"clarendon-text-pro,Domine,serif"},h4:{fontFamily:"clarendon-text-pro,Domine,serif"},h5:{fontFamily:"clarendon-text-pro,Domine,serif"},h6:{fontFamily:"clarendon-text-pro,Domine,serif"}},palette:{success:{main:"#20C26E",dark:"#137442",light:"#D2F3E2"},error:{main:"#CA0030",dark:"#79001D",light:"#FADBE2"},warning:{main:"#FFBC2C",dark:"#FF7A00",light:"#FFF2D5"}}}),r=e(o,{palette:{black:o.palette.augmentColor({color:{main:"#000000"},name:"black"}),white:o.palette.augmentColor({color:{main:"#ffffff"},name:"white"}),flippyBlue:o.palette.augmentColor({color:{main:"#0b75d7"},name:"flippyBlue"}),freezerBurn:o.palette.augmentColor({color:{main:"#a5e2f6"},name:"freezerBurn"}),spricyCarrot:o.palette.augmentColor({color:{main:"#f7742b"},name:"spricyCarrot"}),pebble:o.palette.augmentColor({color:{main:"#eeebe3"},name:"pebble"}),donutPanic:o.palette.augmentColor({color:{main:"#ffbae4"},name:"donutPanic"}),eletricLime:o.palette.augmentColor({color:{main:"#cff27d"},name:"eletricLime"}),pending:o.palette.augmentColor({color:{main:"#DEACFA",dark:"#A56AC6",light:"#FCF7FE"},name:"pending"})}});var t=e(r,{palette:{primary:{main:r.palette.flippyBlue.main},secondary:{main:r.palette.spricyCarrot.main}},components:{MuiButton:{styleOverrides:{root:{padding:"7px 14px",textTransform:"none",boxShadow:"none","&:hover":{boxShadow:"none"},borderRadius:"25px"}}},MuiCard:{styleOverrides:{root:{borderRadius:0,boxShadow:"none",borderWidth:"1px",borderStyle:"solid",borderColor:"#999999"}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontWeight:"bold",textTransform:"uppercase"}}},MuiListItemButton:{styleOverrides:{root:{"&:hover":{backgroundColor:"#eaf2ff"},"&:not(:last-child)":{borderBottom:`1px solid ${r.palette.divider}`}}}}}});module.exports=t;
|
|
173
2
|
//# sourceMappingURL=flipdishPublicTheme.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flipdishPublicTheme.cjs.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"
|
|
1
|
+
{"version":3,"file":"flipdishPublicTheme.cjs.js","sources":["../../../src/components/themes/flipdishPublicTheme.ts"],"sourcesContent":["import { Breakpoint } from '@mui/material/styles';\nimport createTheme, { ThemeOptions } from '@mui/material/styles/createTheme';\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 as ThemeOptions, {\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 as ThemeOptions, {\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 interface Theme {\n breakpoints: {\n down: (key: number | Breakpoint) => string;\n only: (key: number | Breakpoint) => string;\n };\n }\n}\n"],"names":["fontTheme","createTheme","typography","body1","fontFamily","body2","h1","h2","h3","h4","h5","h6","palette","success","main","dark","light","error","warning","theme","black","augmentColor","color","name","white","flippyBlue","freezerBurn","spricyCarrot","pebble","donutPanic","eletricLime","pending","flipdishPublicTheme","primary","secondary","components","MuiButton","styleOverrides","root","padding","textTransform","boxShadow","borderRadius","MuiCard","borderWidth","borderStyle","borderColor","MuiChip","fontWeight","MuiListItemButton","backgroundColor","borderBottom","divider"],"mappings":"+DAIA,MAAMA,EAAYC,EAAY,CAC1BC,WAAY,CACRC,MAAO,CACHC,WAAY,wBAEhBC,MAAO,CACHD,WAAY,wBAEhBE,GAAI,CACAF,WAAY,mCAEhBG,GAAI,CACAH,WAAY,mCAEhBI,GAAI,CACAJ,WAAY,mCAEhBK,GAAI,CACAL,WAAY,mCAEhBM,GAAI,CACAN,WAAY,mCAEhBO,GAAI,CACAP,WAAY,oCAGpBQ,QAAS,CACLC,QAAS,CACLC,KAAM,UACNC,KAAM,UACNC,MAAO,WAEXC,MAAO,CACHH,KAAM,UACNC,KAAM,UACNC,MAAO,WAEXE,QAAS,CACLJ,KAAM,UACNC,KAAM,UACNC,MAAO,cAKbG,EAAQlB,EAAYD,EAA2B,CACjDY,QAAS,CAELQ,MAAOpB,EAAUY,QAAQS,aAAa,CAClCC,MAAO,CACHR,KAAM,WAEVS,KAAM,UAEVC,MAAOxB,EAAUY,QAAQS,aAAa,CAClCC,MAAO,CACHR,KAAM,WAEVS,KAAM,UAEVE,WAAYzB,EAAUY,QAAQS,aAAa,CACvCC,MAAO,CACHR,KAAM,WAEVS,KAAM,eAGVG,YAAa1B,EAAUY,QAAQS,aAAa,CACxCC,MAAO,CACHR,KAAM,WAEVS,KAAM,gBAEVI,aAAc3B,EAAUY,QAAQS,aAAa,CACzCC,MAAO,CACHR,KAAM,WAEVS,KAAM,iBAEVK,OAAQ5B,EAAUY,QAAQS,aAAa,CACnCC,MAAO,CACHR,KAAM,WAEVS,KAAM,WAGVM,WAAY7B,EAAUY,QAAQS,aAAa,CACvCC,MAAO,CACHR,KAAM,WAEVS,KAAM,eAEVO,YAAa9B,EAAUY,QAAQS,aAAa,CACxCC,MAAO,CACHR,KAAM,WAEVS,KAAM,gBAEVQ,QAAS/B,EAAUY,QAAQS,aAAa,CACpCC,MAAO,CACHR,KAAM,UACNC,KAAM,UACNC,MAAO,WAEXO,KAAM,eAKlB,IAAeS,EAAA/B,EAAYkB,EAAuB,CAC9CP,QAAS,CACLqB,QAAS,CACLnB,KAAMK,EAAMP,QAAQa,WAAWX,MAEnCoB,UAAW,CACPpB,KAAMK,EAAMP,QAAQe,aAAab,OAGzCqB,WAAY,CACRC,UAAW,CACPC,eAAgB,CACZC,KAAM,CACFC,QAAS,WACTC,cAAe,OACfC,UAAW,OACX,UAAW,CACPA,UAAW,QAEfC,aAAc,UAI1BC,QAAS,CACLN,eAAgB,CACZC,KAAM,CACFI,aAAc,EACdD,UAAW,OACXG,YAAa,MACbC,YAAa,QACbC,YAAa,aAIzBC,QAAS,CACLV,eAAgB,CACZC,KAAM,CACFI,aAAc,MACdM,WAAY,OACZR,cAAe,eAI3BS,kBAAmB,CACfZ,eAAgB,CACZC,KAAM,CACF,UAAW,CACPY,gBAAiB,WAErB,qBAAsB,CAClBC,aAAc,aAAahC,EAAMP,QAAQwC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _mui_material_styles from '@mui/material/styles';
|
|
2
|
+
import { Breakpoint } from '@mui/material/styles';
|
|
2
3
|
|
|
3
|
-
declare const _default:
|
|
4
|
+
declare const _default: _mui_material_styles.Theme;
|
|
4
5
|
|
|
5
6
|
declare module '@mui/material/styles' {
|
|
6
7
|
interface Palette {
|
|
@@ -14,6 +15,12 @@ declare module '@mui/material/styles' {
|
|
|
14
15
|
eletricLime: Palette['primary'];
|
|
15
16
|
pending: Palette['primary'];
|
|
16
17
|
}
|
|
18
|
+
interface Theme {
|
|
19
|
+
breakpoints: {
|
|
20
|
+
down: (key: number | Breakpoint) => string;
|
|
21
|
+
only: (key: number | Breakpoint) => string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
17
24
|
}
|
|
18
25
|
|
|
19
26
|
export { _default as default };
|
|
@@ -1,171 +1,2 @@
|
|
|
1
|
-
import
|
|
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 };
|
|
1
|
+
import e from"@mui/material/styles/createTheme";const o=e({typography:{body1:{fontFamily:"'Roboto', sans-serif"},body2:{fontFamily:"'Roboto', sans-serif"},h1:{fontFamily:"clarendon-text-pro,Domine,serif"},h2:{fontFamily:"clarendon-text-pro,Domine,serif"},h3:{fontFamily:"clarendon-text-pro,Domine,serif"},h4:{fontFamily:"clarendon-text-pro,Domine,serif"},h5:{fontFamily:"clarendon-text-pro,Domine,serif"},h6:{fontFamily:"clarendon-text-pro,Domine,serif"}},palette:{success:{main:"#20C26E",dark:"#137442",light:"#D2F3E2"},error:{main:"#CA0030",dark:"#79001D",light:"#FADBE2"},warning:{main:"#FFBC2C",dark:"#FF7A00",light:"#FFF2D5"}}}),r=e(o,{palette:{black:o.palette.augmentColor({color:{main:"#000000"},name:"black"}),white:o.palette.augmentColor({color:{main:"#ffffff"},name:"white"}),flippyBlue:o.palette.augmentColor({color:{main:"#0b75d7"},name:"flippyBlue"}),freezerBurn:o.palette.augmentColor({color:{main:"#a5e2f6"},name:"freezerBurn"}),spricyCarrot:o.palette.augmentColor({color:{main:"#f7742b"},name:"spricyCarrot"}),pebble:o.palette.augmentColor({color:{main:"#eeebe3"},name:"pebble"}),donutPanic:o.palette.augmentColor({color:{main:"#ffbae4"},name:"donutPanic"}),eletricLime:o.palette.augmentColor({color:{main:"#cff27d"},name:"eletricLime"}),pending:o.palette.augmentColor({color:{main:"#DEACFA",dark:"#A56AC6",light:"#FCF7FE"},name:"pending"})}});var t=e(r,{palette:{primary:{main:r.palette.flippyBlue.main},secondary:{main:r.palette.spricyCarrot.main}},components:{MuiButton:{styleOverrides:{root:{padding:"7px 14px",textTransform:"none",boxShadow:"none","&:hover":{boxShadow:"none"},borderRadius:"25px"}}},MuiCard:{styleOverrides:{root:{borderRadius:0,boxShadow:"none",borderWidth:"1px",borderStyle:"solid",borderColor:"#999999"}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontWeight:"bold",textTransform:"uppercase"}}},MuiListItemButton:{styleOverrides:{root:{"&:hover":{backgroundColor:"#eaf2ff"},"&:not(:last-child)":{borderBottom:`1px solid ${r.palette.divider}`}}}}}});export{t as default};
|
|
171
2
|
//# sourceMappingURL=flipdishPublicTheme.js.map
|
|
@@ -1 +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":[
|
|
1
|
+
{"version":3,"file":"flipdishPublicTheme.js","sources":["../../../src/components/themes/flipdishPublicTheme.ts"],"sourcesContent":["import { Breakpoint } from '@mui/material/styles';\nimport createTheme, { ThemeOptions } from '@mui/material/styles/createTheme';\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 as ThemeOptions, {\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 as ThemeOptions, {\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 interface Theme {\n breakpoints: {\n down: (key: number | Breakpoint) => string;\n only: (key: number | Breakpoint) => string;\n };\n }\n}\n"],"names":["fontTheme","createTheme","typography","body1","fontFamily","body2","h1","h2","h3","h4","h5","h6","palette","success","main","dark","light","error","warning","theme","black","augmentColor","color","name","white","flippyBlue","freezerBurn","spricyCarrot","pebble","donutPanic","eletricLime","pending","flipdishPublicTheme","primary","secondary","components","MuiButton","styleOverrides","root","padding","textTransform","boxShadow","borderRadius","MuiCard","borderWidth","borderStyle","borderColor","MuiChip","fontWeight","MuiListItemButton","backgroundColor","borderBottom","divider"],"mappings":"gDAIA,MAAMA,EAAYC,EAAY,CAC1BC,WAAY,CACRC,MAAO,CACHC,WAAY,wBAEhBC,MAAO,CACHD,WAAY,wBAEhBE,GAAI,CACAF,WAAY,mCAEhBG,GAAI,CACAH,WAAY,mCAEhBI,GAAI,CACAJ,WAAY,mCAEhBK,GAAI,CACAL,WAAY,mCAEhBM,GAAI,CACAN,WAAY,mCAEhBO,GAAI,CACAP,WAAY,oCAGpBQ,QAAS,CACLC,QAAS,CACLC,KAAM,UACNC,KAAM,UACNC,MAAO,WAEXC,MAAO,CACHH,KAAM,UACNC,KAAM,UACNC,MAAO,WAEXE,QAAS,CACLJ,KAAM,UACNC,KAAM,UACNC,MAAO,cAKbG,EAAQlB,EAAYD,EAA2B,CACjDY,QAAS,CAELQ,MAAOpB,EAAUY,QAAQS,aAAa,CAClCC,MAAO,CACHR,KAAM,WAEVS,KAAM,UAEVC,MAAOxB,EAAUY,QAAQS,aAAa,CAClCC,MAAO,CACHR,KAAM,WAEVS,KAAM,UAEVE,WAAYzB,EAAUY,QAAQS,aAAa,CACvCC,MAAO,CACHR,KAAM,WAEVS,KAAM,eAGVG,YAAa1B,EAAUY,QAAQS,aAAa,CACxCC,MAAO,CACHR,KAAM,WAEVS,KAAM,gBAEVI,aAAc3B,EAAUY,QAAQS,aAAa,CACzCC,MAAO,CACHR,KAAM,WAEVS,KAAM,iBAEVK,OAAQ5B,EAAUY,QAAQS,aAAa,CACnCC,MAAO,CACHR,KAAM,WAEVS,KAAM,WAGVM,WAAY7B,EAAUY,QAAQS,aAAa,CACvCC,MAAO,CACHR,KAAM,WAEVS,KAAM,eAEVO,YAAa9B,EAAUY,QAAQS,aAAa,CACxCC,MAAO,CACHR,KAAM,WAEVS,KAAM,gBAEVQ,QAAS/B,EAAUY,QAAQS,aAAa,CACpCC,MAAO,CACHR,KAAM,UACNC,KAAM,UACNC,MAAO,WAEXO,KAAM,eAKlB,IAAeS,EAAA/B,EAAYkB,EAAuB,CAC9CP,QAAS,CACLqB,QAAS,CACLnB,KAAMK,EAAMP,QAAQa,WAAWX,MAEnCoB,UAAW,CACPpB,KAAMK,EAAMP,QAAQe,aAAab,OAGzCqB,WAAY,CACRC,UAAW,CACPC,eAAgB,CACZC,KAAM,CACFC,QAAS,WACTC,cAAe,OACfC,UAAW,OACX,UAAW,CACPA,UAAW,QAEfC,aAAc,UAI1BC,QAAS,CACLN,eAAgB,CACZC,KAAM,CACFI,aAAc,EACdD,UAAW,OACXG,YAAa,MACbC,YAAa,QACbC,YAAa,aAIzBC,QAAS,CACLV,eAAgB,CACZC,KAAM,CACFI,aAAc,MACdM,WAAY,OACZR,cAAe,eAI3BS,kBAAmB,CACfZ,eAAgB,CACZC,KAAM,CACF,UAAW,CACPY,gBAAiB,WAErB,qBAAsB,CAClBC,aAAc,aAAahC,EAAMP,QAAQwC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var r=require("react/jsx-runtime"),e=require("react-error-boundary"),n=require("../../../providers/TranslationProvider.cjs.js");const t=require("@mui/material/styles").styled("div")((({theme:r})=>({marginTop:r.spacing(2),display:"flex",justifyContent:"center",alignItems:"center"})));module.exports=({identifier:s,children:i})=>{const{translate:o}=n.useTranslation();return r.jsx(e.ErrorBoundary,{FallbackComponent:()=>r.jsx(t,{children:o("Something_went_wrong_please_refresh_the_page")}),onError:(r,e)=>{window.fdlogger?.error(`${s?.toString()} Error Boundary`,{message:r?.message,stack:e})},children:i})};
|
|
2
|
+
//# sourceMappingURL=FDErrorBoundary.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FDErrorBoundary.cjs.js","sources":["../../../../src/components/ui/FDErrorBoundary/FDErrorBoundary.tsx"],"sourcesContent":["import { ErrorBoundary } from 'react-error-boundary';\nimport { useTranslation } from '../../../providers/TranslationProvider';\nimport { ReactNode } from 'react';\nimport { styled } from '@mui/material/styles';\n\nconst StyledTextContainer = styled('div')(({ theme }) => ({\n marginTop: theme.spacing(2),\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n}));\nconst FDErrorBoundary = ({ identifier, children }: { identifier: string; children: ReactNode }) => {\n const { translate } = useTranslation();\n return (\n <ErrorBoundary\n FallbackComponent={() => <StyledTextContainer>{translate('Something_went_wrong_please_refresh_the_page')}</StyledTextContainer>}\n onError={(error, info) => {\n window.fdlogger?.error(`${identifier?.toString()} Error Boundary`, {\n message: error?.message,\n stack: info,\n });\n }}\n >\n {children}\n </ErrorBoundary>\n );\n};\n\nexport default FDErrorBoundary;\n"],"names":["StyledTextContainer","styled","theme","marginTop","spacing","display","justifyContent","alignItems","identifier","children","translate","useTranslation","_jsx","ErrorBoundary","FallbackComponent","onError","error","info","window","fdlogger","toString","message","stack"],"mappings":"6IAKA,MAAMA,kCAAsBC,OAAO,MAAPA,EAAc,EAAGC,YAAa,CACtDC,UAAWD,EAAME,QAAQ,GACzBC,QAAS,OACTC,eAAgB,SAChBC,WAAY,4BAEQ,EAAGC,aAAYC,eACnC,MAAMC,UAAEA,GAAcC,EAAAA,iBACtB,OACIC,EAAAA,IAACC,EAAAA,cACG,CAAAC,kBAAmB,IAAMF,EAAAA,IAACZ,EAAmB,CAAAS,SAAEC,EAAU,kDACzDK,QAAS,CAACC,EAAOC,KACbC,OAAOC,UAAUH,MAAM,GAAGR,GAAYY,4BAA6B,CAC/DC,QAASL,GAAOK,QAChBC,MAAOL,GACT,EAGLR,SAAAA,GAEP"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{ErrorBoundary as e}from"react-error-boundary";import{useTranslation as t}from"../../../providers/TranslationProvider.js";import{styled as o}from"@mui/material/styles";const n=o("div")((({theme:r})=>({marginTop:r.spacing(2),display:"flex",justifyContent:"center",alignItems:"center"}))),i=({identifier:o,children:i})=>{const{translate:a}=t();return r(e,{FallbackComponent:()=>r(n,{children:a("Something_went_wrong_please_refresh_the_page")}),onError:(r,e)=>{window.fdlogger?.error(`${o?.toString()} Error Boundary`,{message:r?.message,stack:e})},children:i})};export{i as default};
|
|
2
|
+
//# sourceMappingURL=FDErrorBoundary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FDErrorBoundary.js","sources":["../../../../src/components/ui/FDErrorBoundary/FDErrorBoundary.tsx"],"sourcesContent":["import { ErrorBoundary } from 'react-error-boundary';\nimport { useTranslation } from '../../../providers/TranslationProvider';\nimport { ReactNode } from 'react';\nimport { styled } from '@mui/material/styles';\n\nconst StyledTextContainer = styled('div')(({ theme }) => ({\n marginTop: theme.spacing(2),\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n}));\nconst FDErrorBoundary = ({ identifier, children }: { identifier: string; children: ReactNode }) => {\n const { translate } = useTranslation();\n return (\n <ErrorBoundary\n FallbackComponent={() => <StyledTextContainer>{translate('Something_went_wrong_please_refresh_the_page')}</StyledTextContainer>}\n onError={(error, info) => {\n window.fdlogger?.error(`${identifier?.toString()} Error Boundary`, {\n message: error?.message,\n stack: info,\n });\n }}\n >\n {children}\n </ErrorBoundary>\n );\n};\n\nexport default FDErrorBoundary;\n"],"names":["StyledTextContainer","styled","theme","marginTop","spacing","display","justifyContent","alignItems","FDErrorBoundary","identifier","children","translate","useTranslation","_jsx","ErrorBoundary","FallbackComponent","onError","error","info","window","fdlogger","toString","message","stack"],"mappings":"sNAKA,MAAMA,EAAsBC,EAAO,MAAPA,EAAc,EAAGC,YAAa,CACtDC,UAAWD,EAAME,QAAQ,GACzBC,QAAS,OACTC,eAAgB,SAChBC,WAAY,aAEVC,EAAkB,EAAGC,aAAYC,eACnC,MAAMC,UAAEA,GAAcC,IACtB,OACIC,EAACC,EACG,CAAAC,kBAAmB,IAAMF,EAACb,EAAmB,CAAAU,SAAEC,EAAU,kDACzDK,QAAS,CAACC,EAAOC,KACbC,OAAOC,UAAUH,MAAM,GAAGR,GAAYY,4BAA6B,CAC/DC,QAASL,GAAOK,QAChBC,MAAOL,GACT,EAGLR,SAAAA,GAEP"}
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
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;
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("react"),i=require("@mui/material/CircularProgress");const s=require("@mui/material/styles").styled("div")({display:"flex",justifyContent:"center",alignItems:"center"});module.exports=({children:t})=>e.jsx(r.Suspense,{fallback:e.jsx(s,{children:e.jsx(i,{size:56})}),children:t});
|
|
16
2
|
//# sourceMappingURL=LazyComponent.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LazyComponent.cjs.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","
|
|
1
|
+
{"version":3,"file":"LazyComponent.cjs.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":["StyledLoadingContainer","styled","display","justifyContent","alignItems","children","_jsx","Suspense","fallback","jsx","CircularProgress","size"],"mappings":"+GASA,MAAMA,kCAAyBC,OAAO,MAAPA,CAAc,CACzCC,QAAS,OACTC,eAAgB,SAChBC,WAAY,0BAGM,EAAGC,cACrBC,EAAAA,IAACC,EAAAA,UACGC,SACIF,EAACG,IAAAT,EACG,CAAAK,SAAAC,MAACI,EAAgB,CAACC,KAAM,OACHN,SAG5BA"}
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import
|
|
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 };
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{Suspense as e}from"react";import t from"@mui/material/CircularProgress";import{styled as i}from"@mui/material/styles";const m=i("div")({display:"flex",justifyContent:"center",alignItems:"center"}),a=({children:i})=>r(e,{fallback:r(m,{children:r(t,{size:56})}),children:i});export{a as default};
|
|
14
2
|
//# sourceMappingURL=LazyComponent.js.map
|
|
@@ -1 +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":["
|
|
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":["StyledLoadingContainer","styled","display","justifyContent","alignItems","LazyComponent","children","_jsx","Suspense","fallback","CircularProgress","size"],"mappings":"qKASA,MAAMA,EAAyBC,EAAO,MAAPA,CAAc,CACzCC,QAAS,OACTC,eAAgB,SAChBC,WAAY,WAGVC,EAAgB,EAAGC,cACrBC,EAACC,GACGC,SACIF,EAACP,EACG,CAAAM,SAAAC,EAACG,EAAgB,CAACC,KAAM,OACHL,SAG5BA"}
|