@campxdev/react-blueprint 1.1.5 → 1.1.7
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/.prettierrc +8 -0
- package/package.json +4 -1
- package/src/App.tsx +26 -10
- package/src/components/Assets/Icons/IconComponents/AcademicIcon.tsx +41 -0
- package/src/components/Assets/Icons/IconComponents/AccordionArrow.tsx +23 -0
- package/src/components/Assets/Icons/IconComponents/DeleteIcon.tsx +58 -0
- package/src/components/Assets/Icons/IconComponents/EditIcon.tsx +43 -0
- package/src/components/Assets/Icons/IconComponents/NoteIcon.tsx +41 -0
- package/src/components/Assets/Icons/IconComponents/RedirectIcon.tsx +36 -0
- package/src/components/Assets/Icons/IconComponents/ViewIcon.tsx +34 -0
- package/src/components/Assets/Icons/Icons.tsx +68 -55
- package/src/components/Charts/BarChart/BarChart.tsx +33 -9
- package/src/components/Charts/LineChart/LineChart.tsx +10 -4
- package/src/components/Charts/PieChart/PieChart.tsx +3 -2
- package/src/components/Charts/TreeMap/TreeMap.tsx +1 -0
- package/src/components/Charts/export.ts +4 -0
- package/src/components/Charts/types/types.ts +12 -2
- package/src/components/DataDisplay/Accordion/Accordion.tsx +42 -46
- package/src/components/DataDisplay/AccordionGroup/AccordionGroup.tsx +30 -0
- package/src/components/DataDisplay/Avatar/Avatar.tsx +18 -29
- package/src/components/DataDisplay/Card/Card.tsx +29 -8
- package/src/components/DataDisplay/Chips/Chips.tsx +91 -0
- package/src/components/DataDisplay/DataTable/DataTable.tsx +14 -6
- package/src/components/DataDisplay/export.ts +6 -5
- package/src/components/DataDisplay/styles.tsx +2 -3
- package/src/components/Feedback/Snackbar/Snackbar.tsx +6 -5
- package/src/components/Input/DatePicker/DatePicker.tsx +58 -0
- package/src/components/Input/FormActions/FormActions.tsx +49 -0
- package/src/components/Input/FormControlWrapper/FormControlWrapper.tsx +70 -0
- package/src/components/Input/IconButtons/IconButtons/DeleteButton.tsx +10 -0
- package/src/components/Input/IconButtons/IconButtons/EditButton.tsx +10 -0
- package/src/components/Input/IconButtons/IconButtons/RedirectButton.tsx +10 -0
- package/src/components/Input/IconButtons/IconButtons/ViewButton.tsx +10 -0
- package/src/components/Input/IconButtons/IconButtons.tsx +11 -0
- package/src/components/Input/LabelWrapper/LabelWrapper.tsx +1 -1
- package/src/components/Input/SingleSelect/SingleSelect.tsx +43 -54
- package/src/components/Input/{Chips/Chips.tsx → Tags/Tags.tsx} +14 -14
- package/src/components/Input/TimePicker/TimePicker.tsx +39 -0
- package/src/components/Input/export.ts +13 -8
- package/src/components/Layout/PageContent/PageContent.tsx +16 -0
- package/src/components/Layout/PageHeader/PageHeader.tsx +46 -0
- package/src/components/Navigation/DropDownMenu/DropDownButton.tsx +5 -5
- package/src/components/Navigation/Sidebar/Components.tsx +97 -0
- package/src/components/Navigation/Sidebar/MenuItem.tsx +76 -104
- package/src/components/Navigation/Sidebar/Sidebar.tsx +150 -55
- package/src/components/Navigation/Sidebar/SubMenuItem.tsx +34 -0
- package/src/components/Navigation/Sidebar/interfaces.ts +35 -12
- package/src/components/Navigation/Sidebar/styles.tsx +2 -2
- package/src/components/Navigation/exports.ts +2 -0
- package/src/components/export.ts +1 -1
- package/src/stories/DataDisplay/AccordionGroup.stories.tsx +131 -0
- package/src/stories/DataDisplay/Chips.stories.tsx +77 -0
- package/src/stories/Input/DatePicker.stories.tsx +138 -0
- package/src/stories/Input/IconButtons.stories.tsx +30 -0
- package/src/stories/Input/{Chips.stories.tsx → Tags.stories.tsx} +17 -17
- package/src/stories/Input/TimePicker.stories.tsx +123 -0
- package/src/themes/commonTheme.ts +171 -155
- package/src/components/DataDisplay/Accordion/utils/StandardImageList.tsx +0 -70
- package/src/components/Navigation/Sidebar/DropdownItem.tsx +0 -34
- package/src/stories/DataDisplay/Accordion.stories.tsx +0 -62
|
@@ -1,40 +1,56 @@
|
|
|
1
|
-
import { Components } from
|
|
2
|
-
import { TypographyOptions } from
|
|
3
|
-
import { DarkColorTokens } from
|
|
4
|
-
import { LightColorTokens } from
|
|
5
|
-
import { customCssBaseline } from
|
|
1
|
+
import { Components } from '@mui/material';
|
|
2
|
+
import { TypographyOptions } from '@mui/material/styles/createTypography';
|
|
3
|
+
import { DarkColorTokens } from './colorTokens/darkColorTokens';
|
|
4
|
+
import { LightColorTokens } from './colorTokens/lightColorTokens';
|
|
5
|
+
import { customCssBaseline } from './customCssBaseline';
|
|
6
6
|
|
|
7
7
|
export enum Theme {
|
|
8
|
-
LIGHT =
|
|
9
|
-
DARK =
|
|
8
|
+
LIGHT = 'light',
|
|
9
|
+
DARK = 'dark',
|
|
10
10
|
}
|
|
11
11
|
export const getCommonTheme = (mode: Theme) => {
|
|
12
|
-
const ColorTokens = mode
|
|
12
|
+
const ColorTokens = mode === Theme.DARK ? DarkColorTokens : LightColorTokens;
|
|
13
13
|
return {
|
|
14
14
|
typography: {
|
|
15
|
-
fontFamily: [
|
|
15
|
+
fontFamily: ['Heebo', 'Poppins', 'sans-serif'].join(','),
|
|
16
16
|
},
|
|
17
17
|
components: {
|
|
18
|
+
MuiMultiSectionDigitalClockSection: {
|
|
19
|
+
styleOverrides: {
|
|
20
|
+
root: {
|
|
21
|
+
width: '90px',
|
|
22
|
+
scrollbarWidth: 'none',
|
|
23
|
+
display: 'flex',
|
|
24
|
+
flexDirection: 'column',
|
|
25
|
+
alignItems: 'center',
|
|
26
|
+
},
|
|
27
|
+
item: {
|
|
28
|
+
width: '50px',
|
|
29
|
+
borderRadius: '4px',
|
|
30
|
+
padding: '0px 8px',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
18
34
|
MuiAccordionSummary: {
|
|
19
35
|
styleOverrides: {
|
|
20
36
|
root: {
|
|
21
|
-
justifyContent:
|
|
22
|
-
paddingLeft:
|
|
23
|
-
|
|
24
|
-
minHeight:
|
|
37
|
+
justifyContent: 'flex-start',
|
|
38
|
+
paddingLeft: '20px',
|
|
39
|
+
'&.Mui-expanded': {
|
|
40
|
+
minHeight: '0px',
|
|
25
41
|
},
|
|
26
42
|
},
|
|
27
43
|
content: {
|
|
28
|
-
flexGrow:
|
|
29
|
-
margin:
|
|
30
|
-
|
|
31
|
-
margin:
|
|
44
|
+
flexGrow: 'unset',
|
|
45
|
+
margin: '0px 16px 0px 0px',
|
|
46
|
+
'&.Mui-expanded': {
|
|
47
|
+
margin: '16px 16px 0px 0px',
|
|
32
48
|
},
|
|
33
49
|
},
|
|
34
50
|
expandIconWrapper: {
|
|
35
|
-
|
|
36
|
-
transform:
|
|
37
|
-
marginTop:
|
|
51
|
+
'&.Mui-expanded': {
|
|
52
|
+
transform: 'rotate(180deg)',
|
|
53
|
+
marginTop: '16px',
|
|
38
54
|
},
|
|
39
55
|
},
|
|
40
56
|
},
|
|
@@ -42,14 +58,14 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
42
58
|
MuiStepLabel: {
|
|
43
59
|
styleOverrides: {
|
|
44
60
|
root: {
|
|
45
|
-
marginLeft:
|
|
61
|
+
marginLeft: '2px',
|
|
46
62
|
},
|
|
47
63
|
},
|
|
48
64
|
},
|
|
49
65
|
MuiBreadcrumbs: {
|
|
50
66
|
styleOverrides: {
|
|
51
67
|
root: {
|
|
52
|
-
fontFamily:
|
|
68
|
+
fontFamily: 'Poppins',
|
|
53
69
|
},
|
|
54
70
|
separator: {
|
|
55
71
|
color: ColorTokens.text.tertiary,
|
|
@@ -59,10 +75,10 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
59
75
|
MuiAlert: {
|
|
60
76
|
styleOverrides: {
|
|
61
77
|
root: {
|
|
62
|
-
width:
|
|
63
|
-
fontFamily:
|
|
78
|
+
width: '400px',
|
|
79
|
+
fontFamily: 'Poppins',
|
|
64
80
|
fontWeight: 500,
|
|
65
|
-
fontSize:
|
|
81
|
+
fontSize: '14px',
|
|
66
82
|
color: ColorTokens.text.primary,
|
|
67
83
|
},
|
|
68
84
|
standardSuccess: {
|
|
@@ -87,7 +103,7 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
87
103
|
},
|
|
88
104
|
styleOverrides: {
|
|
89
105
|
root: {
|
|
90
|
-
borderRadius:
|
|
106
|
+
borderRadius: '10px',
|
|
91
107
|
},
|
|
92
108
|
},
|
|
93
109
|
},
|
|
@@ -97,9 +113,9 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
97
113
|
},
|
|
98
114
|
styleOverrides: {
|
|
99
115
|
root: {
|
|
100
|
-
|
|
101
|
-
width:
|
|
102
|
-
height:
|
|
116
|
+
'& .MuiSvgIcon-root': {
|
|
117
|
+
width: '20px',
|
|
118
|
+
height: '20px',
|
|
103
119
|
},
|
|
104
120
|
},
|
|
105
121
|
},
|
|
@@ -107,14 +123,14 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
107
123
|
MuiDialogTitle: {
|
|
108
124
|
styleOverrides: {
|
|
109
125
|
root: {
|
|
110
|
-
fontFamily:
|
|
126
|
+
fontFamily: 'poppins',
|
|
111
127
|
fontWeight: 400,
|
|
112
|
-
fontSize:
|
|
128
|
+
fontSize: '16px',
|
|
113
129
|
padding: 0,
|
|
114
130
|
},
|
|
115
131
|
paper: {
|
|
116
132
|
elevation: 2,
|
|
117
|
-
borderRadius:
|
|
133
|
+
borderRadius: '10px',
|
|
118
134
|
},
|
|
119
135
|
},
|
|
120
136
|
},
|
|
@@ -122,24 +138,24 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
122
138
|
styleOverrides: {
|
|
123
139
|
root: {
|
|
124
140
|
backgroundColor: ColorTokens.secondary.main,
|
|
125
|
-
|
|
141
|
+
'&:hover': {
|
|
126
142
|
backgroundColor: ColorTokens.secondary.dark,
|
|
127
143
|
},
|
|
128
|
-
borderRadius:
|
|
129
|
-
padding:
|
|
130
|
-
fontSize:
|
|
144
|
+
borderRadius: '6px',
|
|
145
|
+
padding: '10px 10px',
|
|
146
|
+
fontSize: '14px',
|
|
131
147
|
fontWeight: 400,
|
|
132
|
-
fontFamily:
|
|
133
|
-
margin:
|
|
148
|
+
fontFamily: 'Heebo',
|
|
149
|
+
margin: '5px',
|
|
134
150
|
},
|
|
135
151
|
},
|
|
136
152
|
},
|
|
137
153
|
MuiCard: {
|
|
138
154
|
styleOverrides: {
|
|
139
155
|
root: {
|
|
140
|
-
boxShadow:
|
|
156
|
+
boxShadow: 'none',
|
|
141
157
|
border: `1px solid ${ColorTokens.border.primary}`,
|
|
142
|
-
borderRadius:
|
|
158
|
+
borderRadius: '8px',
|
|
143
159
|
},
|
|
144
160
|
},
|
|
145
161
|
},
|
|
@@ -150,38 +166,38 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
150
166
|
},
|
|
151
167
|
paper: {
|
|
152
168
|
color: ColorTokens.surface.defaultBackground,
|
|
153
|
-
borderRadius:
|
|
154
|
-
width:
|
|
155
|
-
maxHeight:
|
|
156
|
-
overflow:
|
|
157
|
-
boxShadow:
|
|
169
|
+
borderRadius: '5px',
|
|
170
|
+
width: '100%',
|
|
171
|
+
maxHeight: 'calc(100vh - 64px)',
|
|
172
|
+
overflow: 'auto',
|
|
173
|
+
boxShadow: 'none',
|
|
158
174
|
},
|
|
159
175
|
},
|
|
160
176
|
},
|
|
161
177
|
MuiMenu: {
|
|
162
178
|
styleOverrides: {
|
|
163
179
|
list: {
|
|
164
|
-
minWidth:
|
|
180
|
+
minWidth: '240px',
|
|
165
181
|
padding: 0,
|
|
166
|
-
|
|
167
|
-
borderBottom:
|
|
168
|
-
|
|
169
|
-
borderBottom:
|
|
182
|
+
'& > :last-child': {
|
|
183
|
+
borderBottom: 'none',
|
|
184
|
+
'& li': {
|
|
185
|
+
borderBottom: 'none',
|
|
170
186
|
},
|
|
171
187
|
},
|
|
172
188
|
},
|
|
173
189
|
paper: {
|
|
174
|
-
borderRadius:
|
|
190
|
+
borderRadius: '5px',
|
|
175
191
|
border: `1px solid ${ColorTokens.secondary.main}`,
|
|
176
|
-
marginTop:
|
|
192
|
+
marginTop: '10px',
|
|
177
193
|
boxShadow: `0px 5px 15px ${ColorTokens.secondary.main}`,
|
|
178
|
-
|
|
179
|
-
width:
|
|
180
|
-
height:
|
|
194
|
+
'&::-webkit-scrollbar': {
|
|
195
|
+
width: '0.5em',
|
|
196
|
+
height: '0.5em',
|
|
181
197
|
},
|
|
182
|
-
|
|
198
|
+
'&::-webkit-scrollbar-thumb': {
|
|
183
199
|
backgroundColor: ColorTokens.surface.paperBackground,
|
|
184
|
-
borderRadius:
|
|
200
|
+
borderRadius: '3px',
|
|
185
201
|
},
|
|
186
202
|
},
|
|
187
203
|
},
|
|
@@ -189,8 +205,8 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
189
205
|
MuiMenuItem: {
|
|
190
206
|
styleOverrides: {
|
|
191
207
|
root: {
|
|
192
|
-
minHeight:
|
|
193
|
-
padding:
|
|
208
|
+
minHeight: '50px !important',
|
|
209
|
+
padding: '10px 16px',
|
|
194
210
|
},
|
|
195
211
|
},
|
|
196
212
|
},
|
|
@@ -201,7 +217,7 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
201
217
|
styleOverrides: {
|
|
202
218
|
root: {
|
|
203
219
|
background: ColorTokens.surface.defaultBackground,
|
|
204
|
-
|
|
220
|
+
'&.Mui-selected': {
|
|
205
221
|
background: ColorTokens.surface.paperBackground,
|
|
206
222
|
border: `1px solid ${ColorTokens.tertiary.main}`,
|
|
207
223
|
},
|
|
@@ -211,57 +227,57 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
211
227
|
MuiButton: {
|
|
212
228
|
styleOverrides: {
|
|
213
229
|
root: {
|
|
214
|
-
textTransform:
|
|
215
|
-
padding:
|
|
216
|
-
maxHeight:
|
|
217
|
-
borderRadius:
|
|
218
|
-
boxShadow:
|
|
219
|
-
fontSize:
|
|
220
|
-
fontFamily:
|
|
230
|
+
textTransform: 'none',
|
|
231
|
+
padding: '10px 20px ',
|
|
232
|
+
maxHeight: '40px ',
|
|
233
|
+
borderRadius: '5px ',
|
|
234
|
+
boxShadow: 'none ',
|
|
235
|
+
fontSize: '14px ',
|
|
236
|
+
fontFamily: 'Poppins',
|
|
221
237
|
fontWeight: 600,
|
|
222
|
-
|
|
223
|
-
boxShadow:
|
|
224
|
-
|
|
225
|
-
boxShadow:
|
|
238
|
+
'&:hover': {
|
|
239
|
+
boxShadow: 'none ',
|
|
240
|
+
'@media (hover: none )': {
|
|
241
|
+
boxShadow: 'none ',
|
|
226
242
|
},
|
|
227
243
|
},
|
|
228
|
-
|
|
229
|
-
boxShadow:
|
|
244
|
+
'&$focusVisible': {
|
|
245
|
+
boxShadow: 'none',
|
|
230
246
|
},
|
|
231
|
-
|
|
232
|
-
boxShadow:
|
|
247
|
+
'&:active': {
|
|
248
|
+
boxShadow: 'none',
|
|
233
249
|
},
|
|
234
|
-
|
|
250
|
+
'&$disabled': { boxShadow: 'none' },
|
|
235
251
|
},
|
|
236
252
|
text: {
|
|
237
|
-
padding:
|
|
238
|
-
|
|
239
|
-
backgroundColor:
|
|
253
|
+
padding: '0px',
|
|
254
|
+
'&:hover': {
|
|
255
|
+
backgroundColor: 'transparent',
|
|
240
256
|
},
|
|
241
257
|
},
|
|
242
258
|
},
|
|
243
259
|
},
|
|
244
260
|
MuiTextField: {
|
|
245
261
|
defaultProps: {
|
|
246
|
-
variant:
|
|
247
|
-
color:
|
|
262
|
+
variant: 'outlined',
|
|
263
|
+
color: 'primary',
|
|
248
264
|
fullWidth: true,
|
|
249
265
|
},
|
|
250
266
|
styleOverrides: {
|
|
251
267
|
root: {
|
|
252
|
-
|
|
253
|
-
display:
|
|
268
|
+
'& label': {
|
|
269
|
+
display: 'none',
|
|
254
270
|
},
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
display:
|
|
271
|
+
'& legend': {
|
|
272
|
+
'& span': {
|
|
273
|
+
display: 'none',
|
|
258
274
|
},
|
|
259
275
|
},
|
|
260
|
-
|
|
261
|
-
height:
|
|
276
|
+
'& input:-webkit-autofill': {
|
|
277
|
+
height: '7px',
|
|
262
278
|
},
|
|
263
|
-
minWidth:
|
|
264
|
-
margin:
|
|
279
|
+
minWidth: '200px',
|
|
280
|
+
margin: '2px 0px',
|
|
265
281
|
},
|
|
266
282
|
},
|
|
267
283
|
},
|
|
@@ -274,7 +290,7 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
274
290
|
},
|
|
275
291
|
arrow: {
|
|
276
292
|
color: ColorTokens.surface.paperBackground,
|
|
277
|
-
|
|
293
|
+
'&:before': {
|
|
278
294
|
border: `1px solid ${ColorTokens.secondary.main}`,
|
|
279
295
|
},
|
|
280
296
|
},
|
|
@@ -286,43 +302,43 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
286
302
|
width: 45,
|
|
287
303
|
height: 26,
|
|
288
304
|
padding: 0,
|
|
289
|
-
|
|
305
|
+
'& .MuiSwitch-switchBase': {
|
|
290
306
|
padding: 0,
|
|
291
307
|
margin: 2,
|
|
292
|
-
transitionDuration:
|
|
293
|
-
|
|
294
|
-
transform:
|
|
295
|
-
|
|
308
|
+
transitionDuration: '500ms',
|
|
309
|
+
'&.Mui-checked': {
|
|
310
|
+
transform: 'translateX(18px)',
|
|
311
|
+
'& + .MuiSwitch-track': {
|
|
296
312
|
backgroundColor: ColorTokens.surface.grey,
|
|
297
313
|
opacity: 1,
|
|
298
314
|
border: 0,
|
|
299
315
|
},
|
|
300
|
-
|
|
301
|
-
boxSizing:
|
|
316
|
+
'& .MuiSwitch-thumb': {
|
|
317
|
+
boxSizing: 'border-box',
|
|
302
318
|
backgroundColor: ColorTokens.primary.main,
|
|
303
319
|
width: 22,
|
|
304
320
|
height: 22,
|
|
305
321
|
},
|
|
306
|
-
|
|
322
|
+
'&.Mui-disabled + .MuiSwitch-track': {
|
|
307
323
|
opacity: 0.5,
|
|
308
324
|
},
|
|
309
325
|
},
|
|
310
326
|
},
|
|
311
|
-
|
|
312
|
-
boxSizing:
|
|
327
|
+
'& .MuiSwitch-thumb': {
|
|
328
|
+
boxSizing: 'border-box',
|
|
313
329
|
backgroundColor: ColorTokens.surface.paperBackground,
|
|
314
330
|
width: 22,
|
|
315
331
|
height: 22,
|
|
316
332
|
},
|
|
317
|
-
|
|
333
|
+
'& .MuiSwitch-track': {
|
|
318
334
|
borderRadius: 13,
|
|
319
335
|
backgroundColor: ColorTokens.surface.grey,
|
|
320
336
|
opacity: 1,
|
|
321
337
|
},
|
|
322
|
-
|
|
338
|
+
'&.Mui-disabled + .MuiSwitch-track': {
|
|
323
339
|
opacity: 0.1,
|
|
324
340
|
},
|
|
325
|
-
|
|
341
|
+
'&.Mui-disabled + .MuiSwitch-thumb': {
|
|
326
342
|
opacity: 0.1,
|
|
327
343
|
},
|
|
328
344
|
},
|
|
@@ -331,46 +347,46 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
331
347
|
MuiFormHelperText: {
|
|
332
348
|
styleOverrides: {
|
|
333
349
|
root: {
|
|
334
|
-
marginLeft:
|
|
350
|
+
marginLeft: '0px',
|
|
335
351
|
},
|
|
336
352
|
},
|
|
337
353
|
},
|
|
338
354
|
MuiSnackbar: {
|
|
339
355
|
defaultProps: {
|
|
340
356
|
anchorOrigin: {
|
|
341
|
-
vertical:
|
|
342
|
-
horizontal:
|
|
357
|
+
vertical: 'bottom',
|
|
358
|
+
horizontal: 'right',
|
|
343
359
|
},
|
|
344
360
|
},
|
|
345
361
|
},
|
|
346
362
|
MuiAutocomplete: {
|
|
347
363
|
styleOverrides: {
|
|
348
364
|
root: {
|
|
349
|
-
|
|
365
|
+
'& .MuiOutlinedInput-root .MuiAutocomplete-input': {
|
|
350
366
|
padding: 0,
|
|
351
|
-
maxHeight:
|
|
367
|
+
maxHeight: '100px',
|
|
352
368
|
},
|
|
353
|
-
overflowY:
|
|
369
|
+
overflowY: 'auto',
|
|
354
370
|
},
|
|
355
371
|
paper: {
|
|
356
|
-
borderRadius:
|
|
372
|
+
borderRadius: '10px',
|
|
357
373
|
},
|
|
358
374
|
},
|
|
359
375
|
},
|
|
360
376
|
MuiOutlinedInput: {
|
|
361
377
|
styleOverrides: {
|
|
362
378
|
root: {
|
|
363
|
-
|
|
364
|
-
display:
|
|
379
|
+
'& label': {
|
|
380
|
+
display: 'none',
|
|
365
381
|
},
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
display:
|
|
382
|
+
'& legend': {
|
|
383
|
+
'& span': {
|
|
384
|
+
display: 'none',
|
|
369
385
|
},
|
|
370
386
|
},
|
|
371
|
-
maxHeight:
|
|
372
|
-
fontSize:
|
|
373
|
-
fontFamily:
|
|
387
|
+
maxHeight: '40px',
|
|
388
|
+
fontSize: '16px',
|
|
389
|
+
fontFamily: 'Heebo',
|
|
374
390
|
fontWeight: 300,
|
|
375
391
|
color: ColorTokens.text.primary,
|
|
376
392
|
},
|
|
@@ -378,7 +394,7 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
378
394
|
},
|
|
379
395
|
MuiLink: {
|
|
380
396
|
defaultProps: {
|
|
381
|
-
underline:
|
|
397
|
+
underline: 'none',
|
|
382
398
|
},
|
|
383
399
|
styleOverrides: {
|
|
384
400
|
root: {
|
|
@@ -389,18 +405,18 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
389
405
|
MuiTabs: {
|
|
390
406
|
styleOverrides: {
|
|
391
407
|
root: {
|
|
392
|
-
|
|
408
|
+
'& .MuiTabs-flexContainer': {
|
|
393
409
|
borderBottom: `1px solid ${ColorTokens.border.primary}`,
|
|
394
410
|
},
|
|
395
411
|
},
|
|
396
412
|
indicator: {
|
|
397
|
-
display:
|
|
398
|
-
justifyContent:
|
|
399
|
-
backgroundColor:
|
|
400
|
-
height:
|
|
401
|
-
|
|
402
|
-
borderRadius:
|
|
403
|
-
width:
|
|
413
|
+
display: 'flex',
|
|
414
|
+
justifyContent: 'center',
|
|
415
|
+
backgroundColor: 'transparent',
|
|
416
|
+
height: '3px',
|
|
417
|
+
'& .MuiTabs-indicatorSpan': {
|
|
418
|
+
borderRadius: '30px',
|
|
419
|
+
width: '60%',
|
|
404
420
|
backgroundColor: ColorTokens.tertiary.main,
|
|
405
421
|
},
|
|
406
422
|
},
|
|
@@ -413,12 +429,12 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
413
429
|
styleOverrides: {
|
|
414
430
|
root: {
|
|
415
431
|
color: ColorTokens.text.secondary,
|
|
416
|
-
fontSize:
|
|
417
|
-
fontWeight:
|
|
418
|
-
textTransform:
|
|
419
|
-
minHeight:
|
|
420
|
-
paddingBottom:
|
|
421
|
-
|
|
432
|
+
fontSize: '14px',
|
|
433
|
+
fontWeight: '600',
|
|
434
|
+
textTransform: 'initial',
|
|
435
|
+
minHeight: '50px',
|
|
436
|
+
paddingBottom: '0px',
|
|
437
|
+
'&.Mui-selected': {
|
|
422
438
|
color: ColorTokens.text.primary,
|
|
423
439
|
},
|
|
424
440
|
},
|
|
@@ -428,7 +444,7 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
428
444
|
styleOverrides: {
|
|
429
445
|
root: {
|
|
430
446
|
background: ColorTokens.surface.defaultBackground,
|
|
431
|
-
cursor:
|
|
447
|
+
cursor: 'pointer',
|
|
432
448
|
border: `1px solid ${ColorTokens.primary.main}`,
|
|
433
449
|
color: ColorTokens.primary.main,
|
|
434
450
|
},
|
|
@@ -437,63 +453,63 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
437
453
|
MuiTypography: {
|
|
438
454
|
styleOverrides: {
|
|
439
455
|
h6: {
|
|
440
|
-
fontSize:
|
|
456
|
+
fontSize: '24px',
|
|
441
457
|
fontWeight: 800,
|
|
442
|
-
fontFamily:
|
|
458
|
+
fontFamily: 'Poppins',
|
|
443
459
|
color: ColorTokens.text.primary,
|
|
444
460
|
},
|
|
445
461
|
subtitle1: {
|
|
446
|
-
fontSize:
|
|
462
|
+
fontSize: '18px',
|
|
447
463
|
fontWeight: 600,
|
|
448
|
-
fontFamily:
|
|
464
|
+
fontFamily: 'Poppins',
|
|
449
465
|
color: ColorTokens.text.primary,
|
|
450
466
|
},
|
|
451
467
|
subtitle2: {
|
|
452
|
-
fontSize:
|
|
468
|
+
fontSize: '16px',
|
|
453
469
|
fontWeight: 500,
|
|
454
|
-
fontFamily:
|
|
470
|
+
fontFamily: 'Poppins',
|
|
455
471
|
color: ColorTokens.text.primary,
|
|
456
472
|
},
|
|
457
473
|
subtitle3: {
|
|
458
|
-
fontSize:
|
|
474
|
+
fontSize: '14px',
|
|
459
475
|
fontWeight: 400,
|
|
460
|
-
fontFamily:
|
|
476
|
+
fontFamily: 'Poppins',
|
|
461
477
|
color: ColorTokens.text.primary,
|
|
462
478
|
},
|
|
463
479
|
body1: {
|
|
464
|
-
fontSize:
|
|
480
|
+
fontSize: '16px',
|
|
465
481
|
fontWeight: 600,
|
|
466
|
-
fontFamily:
|
|
482
|
+
fontFamily: 'Heebo',
|
|
467
483
|
color: ColorTokens.text.primary,
|
|
468
484
|
},
|
|
469
485
|
body2: {
|
|
470
|
-
fontSize:
|
|
486
|
+
fontSize: '14px',
|
|
471
487
|
fontWeight: 400,
|
|
472
|
-
fontFamily:
|
|
488
|
+
fontFamily: 'Heebo',
|
|
473
489
|
color: ColorTokens.text.primary,
|
|
474
490
|
},
|
|
475
491
|
caption: {
|
|
476
|
-
fontSize:
|
|
492
|
+
fontSize: '12px',
|
|
477
493
|
fontWeight: 400,
|
|
478
|
-
fontFamily:
|
|
494
|
+
fontFamily: 'Heebo',
|
|
479
495
|
color: ColorTokens.text.secondary,
|
|
480
496
|
},
|
|
481
497
|
label1: {
|
|
482
|
-
fontSize:
|
|
498
|
+
fontSize: '14px',
|
|
483
499
|
fontWeight: 400,
|
|
484
|
-
fontFamily:
|
|
500
|
+
fontFamily: 'Heebo',
|
|
485
501
|
color: ColorTokens.text.secondary,
|
|
486
502
|
},
|
|
487
503
|
label2: {
|
|
488
|
-
fontSize:
|
|
504
|
+
fontSize: '12px',
|
|
489
505
|
fontWeight: 400,
|
|
490
|
-
fontFamily:
|
|
506
|
+
fontFamily: 'Poppins',
|
|
491
507
|
color: ColorTokens.text.secondary,
|
|
492
508
|
},
|
|
493
509
|
button1: {
|
|
494
|
-
fontSize:
|
|
510
|
+
fontSize: '14px',
|
|
495
511
|
fontWeight: 600,
|
|
496
|
-
fontFamily:
|
|
512
|
+
fontFamily: 'Poppins',
|
|
497
513
|
color: ColorTokens.text.primary,
|
|
498
514
|
},
|
|
499
515
|
} as TypographyOptions,
|