@linagora/twake-mui 1.6.0 → 2.0.0
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/CHANGELOG.md +27 -0
- package/README.md +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/makeDarkOverrides.d.ts +2 -2
- package/dist/lib/makeDarkOverrides.js +7 -47
- package/dist/lib/makeLightOverrides.d.ts +2 -2
- package/dist/lib/makeLightOverrides.js +519 -39
- package/dist/lib/makePalette.d.ts +2 -1
- package/dist/lib/makePalette.js +40 -40
- package/dist/stories/Alert.stories.d.ts +7 -0
- package/dist/stories/Alert.stories.js +81 -0
- package/dist/stories/Button.stories.js +39 -4
- package/dist/stories/Dialog.stories.js +1 -1
- package/dist/stories/Typography.stories.js +32 -27
- package/package.json +8 -6
- package/dist/lib/overrides/accordionOverrides.d.ts +0 -2
- package/dist/lib/overrides/accordionOverrides.js +0 -63
- package/dist/lib/overrides/autocompleteOverrides.d.ts +0 -2
- package/dist/lib/overrides/autocompleteOverrides.js +0 -31
- package/dist/lib/overrides/avatarOverrides.d.ts +0 -2
- package/dist/lib/overrides/avatarOverrides.js +0 -85
- package/dist/lib/overrides/backdropOverrides.d.ts +0 -2
- package/dist/lib/overrides/backdropOverrides.js +0 -17
- package/dist/lib/overrides/buttonOverrides.d.ts +0 -2
- package/dist/lib/overrides/buttonOverrides.js +0 -86
- package/dist/lib/overrides/checkboxOverrides.d.ts +0 -2
- package/dist/lib/overrides/checkboxOverrides.js +0 -11
- package/dist/lib/overrides/datePickerOverrides.d.ts +0 -2
- package/dist/lib/overrides/datePickerOverrides.js +0 -150
- package/dist/lib/overrides/dialogOverrides.d.ts +0 -5
- package/dist/lib/overrides/dialogOverrides.js +0 -43
- package/dist/lib/overrides/iconButtonOverrides.d.ts +0 -2
- package/dist/lib/overrides/iconButtonOverrides.js +0 -13
- package/dist/lib/overrides/menuItemOverrides.d.ts +0 -2
- package/dist/lib/overrides/menuItemOverrides.js +0 -22
- package/dist/lib/overrides/popoverOverrides.d.ts +0 -2
- package/dist/lib/overrides/popoverOverrides.js +0 -11
- package/dist/lib/overrides/swipeableDrawerOverrides.d.ts +0 -2
- package/dist/lib/overrides/swipeableDrawerOverrides.js +0 -26
- package/dist/lib/overrides/textFieldOverrides.d.ts +0 -5
- package/dist/lib/overrides/textFieldOverrides.js +0 -95
- package/dist/lib/overrides/toggleButtonOverrides.d.ts +0 -3
- package/dist/lib/overrides/toggleButtonOverrides.js +0 -42
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Alert } from '@mui/material';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
3
|
+
declare const meta: Meta<typeof Alert>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Screenshot: Story;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Alert, AlertTitle } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Alert',
|
|
5
|
+
component: Alert,
|
|
6
|
+
parameters: { layout: 'centered' },
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
severity: {
|
|
10
|
+
control: 'text',
|
|
11
|
+
description: 'Severity level (error, warning, info, success) or custom color name (primary, secondary)'
|
|
12
|
+
},
|
|
13
|
+
variant: {
|
|
14
|
+
control: 'select',
|
|
15
|
+
options: ['standard', 'filled', 'outlined']
|
|
16
|
+
},
|
|
17
|
+
color: {
|
|
18
|
+
control: 'text',
|
|
19
|
+
description: 'Custom color (CSS color value or MUI palette color like "primary", "secondary")'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export default meta;
|
|
24
|
+
export const Default = {
|
|
25
|
+
args: {
|
|
26
|
+
severity: 'info',
|
|
27
|
+
variant: 'standard'
|
|
28
|
+
},
|
|
29
|
+
render: args => (React.createElement(Alert, { ...args },
|
|
30
|
+
React.createElement(AlertTitle, null, "Alert Title"),
|
|
31
|
+
"This is the alert content text"))
|
|
32
|
+
};
|
|
33
|
+
// Visual Regression - All severity colors and variants combined
|
|
34
|
+
export const Screenshot = {
|
|
35
|
+
tags: ['argos'],
|
|
36
|
+
render: () => (React.createElement("div", { style: {
|
|
37
|
+
display: 'flex',
|
|
38
|
+
flexDirection: 'column',
|
|
39
|
+
gap: '24px',
|
|
40
|
+
minWidth: '400px'
|
|
41
|
+
} },
|
|
42
|
+
React.createElement("section", null,
|
|
43
|
+
React.createElement("h3", { style: { marginBottom: '12px' } }, "Standard Variant"),
|
|
44
|
+
React.createElement("div", { style: { display: 'flex', flexDirection: 'column', gap: '16px' } },
|
|
45
|
+
React.createElement(Alert, { severity: 'primary' },
|
|
46
|
+
React.createElement(AlertTitle, null, "Primary Alert"),
|
|
47
|
+
"This is a primary alert with title and text"),
|
|
48
|
+
React.createElement(Alert, { severity: 'secondary' },
|
|
49
|
+
React.createElement(AlertTitle, null, "Secondary Alert"),
|
|
50
|
+
"This is a secondary alert with title and text"),
|
|
51
|
+
React.createElement(Alert, { severity: "error" },
|
|
52
|
+
React.createElement(AlertTitle, null, "Error Alert"),
|
|
53
|
+
"This is an error alert with title and text"),
|
|
54
|
+
React.createElement(Alert, { severity: "warning" },
|
|
55
|
+
React.createElement(AlertTitle, null, "Warning Alert"),
|
|
56
|
+
"This is a warning alert with title and text"),
|
|
57
|
+
React.createElement(Alert, { severity: "info" },
|
|
58
|
+
React.createElement(AlertTitle, null, "Info Alert"),
|
|
59
|
+
"This is an info alert with title and text"),
|
|
60
|
+
React.createElement(Alert, { severity: "success" },
|
|
61
|
+
React.createElement(AlertTitle, null, "Success Alert"),
|
|
62
|
+
"This is a success alert with title and text"))),
|
|
63
|
+
React.createElement("section", null,
|
|
64
|
+
React.createElement("h3", { style: { marginBottom: '12px' } }, "Filled Variant"),
|
|
65
|
+
React.createElement("div", { style: { display: 'flex', flexDirection: 'column', gap: '16px' } },
|
|
66
|
+
React.createElement(Alert, { severity: "error", variant: "filled" },
|
|
67
|
+
React.createElement(AlertTitle, null, "Filled Error"),
|
|
68
|
+
"This is a filled error alert"),
|
|
69
|
+
React.createElement(Alert, { severity: "success", variant: "filled" },
|
|
70
|
+
React.createElement(AlertTitle, null, "Filled Success"),
|
|
71
|
+
"This is a filled success alert"))),
|
|
72
|
+
React.createElement("section", null,
|
|
73
|
+
React.createElement("h3", { style: { marginBottom: '12px' } }, "Outlined Variant"),
|
|
74
|
+
React.createElement("div", { style: { display: 'flex', flexDirection: 'column', gap: '16px' } },
|
|
75
|
+
React.createElement(Alert, { severity: "warning", variant: "outlined" },
|
|
76
|
+
React.createElement(AlertTitle, null, "Outlined Warning"),
|
|
77
|
+
"This is an outlined warning alert"),
|
|
78
|
+
React.createElement(Alert, { severity: "info", variant: "outlined" },
|
|
79
|
+
React.createElement(AlertTitle, null, "Outlined Info"),
|
|
80
|
+
"This is an outlined info alert")))))
|
|
81
|
+
};
|
|
@@ -4,7 +4,21 @@ const meta = {
|
|
|
4
4
|
title: 'Button',
|
|
5
5
|
component: Button,
|
|
6
6
|
parameters: { layout: 'centered' },
|
|
7
|
-
tags: ['autodocs']
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
variant: {
|
|
10
|
+
control: 'select',
|
|
11
|
+
options: ['contained', 'outlined', 'text']
|
|
12
|
+
},
|
|
13
|
+
color: {
|
|
14
|
+
control: 'select',
|
|
15
|
+
options: ['primary', 'secondary', 'error', 'warning', 'info', 'success']
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
control: 'select',
|
|
19
|
+
options: ['small', 'medium', 'large']
|
|
20
|
+
}
|
|
21
|
+
}
|
|
8
22
|
};
|
|
9
23
|
export default meta;
|
|
10
24
|
export const Docs = {
|
|
@@ -24,11 +38,32 @@ export const Screenshot = {
|
|
|
24
38
|
React.createElement(Button, { variant: "outlined" }, "Outlined"),
|
|
25
39
|
React.createElement(Button, { variant: "text" }, "Text"))),
|
|
26
40
|
React.createElement("section", null,
|
|
27
|
-
React.createElement("h3", { style: { marginBottom: '12px' } }, "Colors"),
|
|
28
|
-
React.createElement(Stack, { direction:
|
|
41
|
+
React.createElement("h3", { style: { marginBottom: '12px' } }, "Colors contained"),
|
|
42
|
+
React.createElement(Stack, { direction: { xs: 'column', sm: 'row' }, spacing: 2 },
|
|
29
43
|
React.createElement(Button, { variant: "contained", color: "primary" }, "Primary"),
|
|
30
44
|
React.createElement(Button, { variant: "contained", color: "secondary" }, "Secondary"),
|
|
31
|
-
React.createElement(Button, { variant: "contained", color: "
|
|
45
|
+
React.createElement(Button, { variant: "contained", color: "success" }, "Success"),
|
|
46
|
+
React.createElement(Button, { variant: "contained", color: "error" }, "Error"),
|
|
47
|
+
React.createElement(Button, { variant: "contained", color: "warning" }, "Warning"),
|
|
48
|
+
React.createElement(Button, { variant: "contained", color: "info" }, "Info"))),
|
|
49
|
+
React.createElement("section", null,
|
|
50
|
+
React.createElement("h3", { style: { marginBottom: '12px' } }, "Colors outlined"),
|
|
51
|
+
React.createElement(Stack, { direction: { xs: 'column', sm: 'row' }, spacing: 2 },
|
|
52
|
+
React.createElement(Button, { variant: "outlined", color: "primary" }, "Primary"),
|
|
53
|
+
React.createElement(Button, { variant: "outlined", color: "secondary" }, "Secondary"),
|
|
54
|
+
React.createElement(Button, { variant: "outlined", color: "success" }, "Success"),
|
|
55
|
+
React.createElement(Button, { variant: "outlined", color: "error" }, "Error"),
|
|
56
|
+
React.createElement(Button, { variant: "outlined", color: "warning" }, "Warning"),
|
|
57
|
+
React.createElement(Button, { variant: "outlined", color: "info" }, "Info"))),
|
|
58
|
+
React.createElement("section", null,
|
|
59
|
+
React.createElement("h3", { style: { marginBottom: '12px' } }, "Colors text"),
|
|
60
|
+
React.createElement(Stack, { direction: { xs: 'column', sm: 'row' }, spacing: 2 },
|
|
61
|
+
React.createElement(Button, { variant: "text", color: "primary" }, "Primary"),
|
|
62
|
+
React.createElement(Button, { variant: "text", color: "secondary" }, "Secondary"),
|
|
63
|
+
React.createElement(Button, { variant: "text", color: "success" }, "Success"),
|
|
64
|
+
React.createElement(Button, { variant: "text", color: "error" }, "Error"),
|
|
65
|
+
React.createElement(Button, { variant: "text", color: "warning" }, "Warning"),
|
|
66
|
+
React.createElement(Button, { variant: "text", color: "info" }, "Info"))),
|
|
32
67
|
React.createElement("section", null,
|
|
33
68
|
React.createElement("h3", { style: { marginBottom: '12px' } }, "Sizes"),
|
|
34
69
|
React.createElement(Stack, { direction: "row", spacing: 2, sx: { alignItems: 'center' } },
|
|
@@ -30,7 +30,7 @@ export const Screenshot = {
|
|
|
30
30
|
React.createElement("section", null,
|
|
31
31
|
React.createElement("h3", { style: { marginBottom: '12px' } }, "Dialog Components"),
|
|
32
32
|
React.createElement(Stack, { spacing: 2 },
|
|
33
|
-
React.createElement(Dialog, { open: true },
|
|
33
|
+
React.createElement(Dialog, { open: true, disableAutoFocus: true },
|
|
34
34
|
React.createElement(DialogTitle, null, "Standard Dialog"),
|
|
35
35
|
React.createElement(DialogContent, null,
|
|
36
36
|
React.createElement(DialogContentText, null, "This demonstrates the standard dialog appearance with all its subcomponents styled according to the Twake theme.")),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Typography,
|
|
1
|
+
import { Typography, Stack } from '@mui/material';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
const meta = {
|
|
4
4
|
title: 'Typography',
|
|
@@ -16,30 +16,35 @@ export const Default = {
|
|
|
16
16
|
// Visual Regression - All typography combined
|
|
17
17
|
export const Screenshot = {
|
|
18
18
|
tags: ['argos'],
|
|
19
|
-
render: () => (React.createElement(
|
|
20
|
-
React.createElement(
|
|
21
|
-
React.createElement("
|
|
22
|
-
|
|
23
|
-
React.createElement(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
React.createElement("
|
|
38
|
-
|
|
39
|
-
React.createElement(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
19
|
+
render: () => (React.createElement(Stack, { spacing: 2 },
|
|
20
|
+
React.createElement("section", null,
|
|
21
|
+
React.createElement("h3", { style: { marginBottom: '12px' } }, "All Variants"),
|
|
22
|
+
React.createElement(Stack, { spacing: 1 },
|
|
23
|
+
React.createElement(Typography, { variant: "h1" }, "Heading 1"),
|
|
24
|
+
React.createElement(Typography, { variant: "h2" }, "Heading 2"),
|
|
25
|
+
React.createElement(Typography, { variant: "h3" }, "Heading 3"),
|
|
26
|
+
React.createElement(Typography, { variant: "h4" }, "Heading 4"),
|
|
27
|
+
React.createElement(Typography, { variant: "h5" }, "Heading 5"),
|
|
28
|
+
React.createElement(Typography, { variant: "h6" }, "Heading 6"),
|
|
29
|
+
React.createElement(Typography, { variant: "subtitle1" }, "Subtitle 1"),
|
|
30
|
+
React.createElement(Typography, { variant: "subtitle2" }, "Subtitle 2"),
|
|
31
|
+
React.createElement(Typography, { variant: "body1" }, "Body 1 - This is the default body text style used for most content."),
|
|
32
|
+
React.createElement(Typography, { variant: "body2" }, "Body 2 - This is a smaller body text style for secondary content."),
|
|
33
|
+
React.createElement(Typography, { variant: "button" }, "Button Text"),
|
|
34
|
+
React.createElement(Typography, { variant: "caption" }, "Caption text"),
|
|
35
|
+
React.createElement(Typography, { variant: "overline" }, "OVERLINE TEXT"))),
|
|
36
|
+
React.createElement("section", null,
|
|
37
|
+
React.createElement("h3", { style: { marginBottom: '12px', marginTop: '24px' } }, "Colors"),
|
|
38
|
+
React.createElement(Stack, { spacing: 1 },
|
|
39
|
+
React.createElement(Typography, { color: "primary" }, "Primary color text"),
|
|
40
|
+
React.createElement(Typography, { color: "secondary" }, "Secondary color text"),
|
|
41
|
+
React.createElement(Typography, { color: "success" }, "Success color text"),
|
|
42
|
+
React.createElement(Typography, { color: "error" }, "Error color text"),
|
|
43
|
+
React.createElement(Typography, { color: "warning" }, "Warning color text"),
|
|
44
|
+
React.createElement(Typography, { color: "info" }, "Info color text"),
|
|
45
|
+
React.createElement(Typography, { color: "textPrimary" }, "Text primary color"),
|
|
46
|
+
React.createElement(Typography, { color: "textSecondary" }, "Text secondary color"),
|
|
47
|
+
React.createElement(Typography, { color: "textDisabled" }, "Text disabled color"),
|
|
48
|
+
React.createElement(Typography, { sx: { color: 'text.primary' } }, "Text primary color"),
|
|
49
|
+
React.createElement(Typography, { sx: { color: 'text.secondary' } }, "Text secondary color")))))
|
|
45
50
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linagora/twake-mui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
5
|
-
"description": "MUI
|
|
4
|
+
"version": "2.0.0",
|
|
5
|
+
"description": "MUI v9 theme system for Twake applications",
|
|
6
6
|
"author": "Twake",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"engines": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@emotion/react": "^11.5.0",
|
|
52
52
|
"@emotion/styled": "^11.3.0",
|
|
53
|
-
"@mui/material": "^
|
|
53
|
+
"@mui/material": "^9.0.1",
|
|
54
54
|
"react": "^18",
|
|
55
55
|
"react-dom": "^18"
|
|
56
56
|
},
|
|
@@ -59,19 +59,21 @@
|
|
|
59
59
|
"@argos-ci/storybook": "5.3.2",
|
|
60
60
|
"@emotion/react": "^11.5.0",
|
|
61
61
|
"@emotion/styled": "^11.3.0",
|
|
62
|
-
"@mui/icons-material": "
|
|
63
|
-
"@mui/material": "^
|
|
62
|
+
"@mui/icons-material": "^9.0.1",
|
|
63
|
+
"@mui/material": "^9.0.1",
|
|
64
64
|
"@storybook/addon-docs": "10.3.5",
|
|
65
65
|
"@storybook/addon-vitest": "10.3.5",
|
|
66
66
|
"@storybook/builder-vite": "10.3.5",
|
|
67
67
|
"@storybook/react": "10.3.5",
|
|
68
68
|
"@storybook/react-vite": "10.3.5",
|
|
69
|
+
"@types/lodash": "4.17.24",
|
|
69
70
|
"@vitest/browser-playwright": "4.1.5",
|
|
70
71
|
"cozy-tsconfig": "^2.0.0",
|
|
71
72
|
"eslint": "10.2.1",
|
|
72
73
|
"eslint-config-cozy-app": "7.0.0",
|
|
73
74
|
"eslint-plugin-storybook": "10.3.5",
|
|
74
|
-
"
|
|
75
|
+
"lodash": "4.18.1",
|
|
76
|
+
"playwright": "1.60.0",
|
|
75
77
|
"react": "^18.2.0",
|
|
76
78
|
"react-dom": "^18.2.0",
|
|
77
79
|
"storybook": "10.3.5",
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { alpha } from '@mui/material/styles';
|
|
2
|
-
import paletteJson from '../palette.json';
|
|
3
|
-
const paletteData = paletteJson;
|
|
4
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
|
-
export const accordionOverrides = (theme) => {
|
|
6
|
-
return {
|
|
7
|
-
MuiAccordion: {
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
root: {
|
|
10
|
-
'&::before': {
|
|
11
|
-
display: 'none'
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
MuiAccordionSummary: {
|
|
17
|
-
styleOverrides: {
|
|
18
|
-
root: {
|
|
19
|
-
padding: '0',
|
|
20
|
-
minHeight: '32px',
|
|
21
|
-
'&.Mui-expanded': {
|
|
22
|
-
minHeight: '32px'
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
content: {
|
|
26
|
-
fontSize: '14px',
|
|
27
|
-
fontWeight: 500,
|
|
28
|
-
lineHeight: '20px',
|
|
29
|
-
color: alpha(paletteData.Grey[900], 0.9),
|
|
30
|
-
margin: 0,
|
|
31
|
-
'&.Mui-expanded': {
|
|
32
|
-
margin: 0
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
expandIconWrapper: {
|
|
36
|
-
padding: '4px',
|
|
37
|
-
color: alpha(paletteData.Grey[900], 0.48),
|
|
38
|
-
borderRadius: '50%',
|
|
39
|
-
'&:hover': {
|
|
40
|
-
backgroundColor: alpha(paletteData.Primary.A400, 0.04)
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
MuiCssBaseline: {
|
|
46
|
-
styleOverrides: {
|
|
47
|
-
'.MuiAccordion-root .MuiListItem-root': {
|
|
48
|
-
padding: '0',
|
|
49
|
-
borderRadius: '4px',
|
|
50
|
-
'&:hover': {
|
|
51
|
-
backgroundColor: alpha(paletteData.Grey.A900, 0.04)
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
'.MuiAccordion-root .MuiListItem-root label': {
|
|
55
|
-
fontSize: '14px',
|
|
56
|
-
fontStyle: 'normal',
|
|
57
|
-
fontWeight: 400,
|
|
58
|
-
color: alpha(paletteData.Grey[900], 0.9)
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { radius } from '../radius';
|
|
2
|
-
export const autocompleteOverrides = () => {
|
|
3
|
-
return {
|
|
4
|
-
styleOverrides: {
|
|
5
|
-
root: {
|
|
6
|
-
// Using "&&" to increase CSS specificity
|
|
7
|
-
'&&': {
|
|
8
|
-
'& .MuiOutlinedInput-root': {
|
|
9
|
-
paddingLeft: '16px',
|
|
10
|
-
borderRadius: radius.sm,
|
|
11
|
-
'& fieldset.MuiOutlinedInput-notchedOutline': {
|
|
12
|
-
borderRadius: radius.sm
|
|
13
|
-
},
|
|
14
|
-
'&.MuiInputBase-sizeSmall': {
|
|
15
|
-
paddingTop: '8px',
|
|
16
|
-
paddingBottom: '8px',
|
|
17
|
-
paddingLeft: '16px',
|
|
18
|
-
'& .MuiAutocomplete-input': {
|
|
19
|
-
padding: '0px 4px 0px 8px'
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
// Styling for chips in Autocomplete
|
|
26
|
-
tag: {
|
|
27
|
-
margin: '2px'
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
export const avatarOverrides = (theme) => {
|
|
2
|
-
return {
|
|
3
|
-
styleOverrides: {
|
|
4
|
-
root: {
|
|
5
|
-
fontWeight: 600,
|
|
6
|
-
'&.size-xs': {
|
|
7
|
-
width: 18,
|
|
8
|
-
height: 18,
|
|
9
|
-
fontSize: '9.109px',
|
|
10
|
-
fontWeight: 500,
|
|
11
|
-
lineHeight: '18.219px',
|
|
12
|
-
'& svg': {
|
|
13
|
-
width: '50%',
|
|
14
|
-
height: '50%'
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
'&.size-s': {
|
|
18
|
-
width: 28,
|
|
19
|
-
height: 28,
|
|
20
|
-
fontSize: '12.525px',
|
|
21
|
-
fontWeight: 500,
|
|
22
|
-
lineHeight: '18.219px',
|
|
23
|
-
'& svg': {
|
|
24
|
-
width: '50%',
|
|
25
|
-
height: '50%'
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
'&.size-m': {
|
|
29
|
-
width: 36,
|
|
30
|
-
height: 36,
|
|
31
|
-
fontSize: '18.219px',
|
|
32
|
-
fontWeight: 500,
|
|
33
|
-
lineHeight: '27.328px',
|
|
34
|
-
'& svg': {
|
|
35
|
-
width: '50%',
|
|
36
|
-
height: '50%'
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
'&.size-l': {
|
|
40
|
-
width: 54,
|
|
41
|
-
height: 54,
|
|
42
|
-
fontSize: '27.328px',
|
|
43
|
-
fontWeight: 600,
|
|
44
|
-
lineHeight: '36.438px',
|
|
45
|
-
'& svg': {
|
|
46
|
-
width: '50%',
|
|
47
|
-
height: '50%'
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
'&.size-xl': {
|
|
51
|
-
width: 72,
|
|
52
|
-
height: 72,
|
|
53
|
-
fontSize: '36.438px',
|
|
54
|
-
fontWeight: 600,
|
|
55
|
-
lineHeight: '45.547px',
|
|
56
|
-
'& svg': {
|
|
57
|
-
width: '50%',
|
|
58
|
-
height: '50%'
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
'&.disabled': {
|
|
62
|
-
color: theme.palette.primary.contrastText,
|
|
63
|
-
background: theme.palette.grey[300],
|
|
64
|
-
'& img': {
|
|
65
|
-
filter: 'grayscale(1) brightness(2)',
|
|
66
|
-
opacity: 0.5
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
'&.displayInline': {
|
|
70
|
-
display: 'inline-flex'
|
|
71
|
-
},
|
|
72
|
-
'&.border': {
|
|
73
|
-
border: `2px solid ${theme.palette.background.paper}`
|
|
74
|
-
},
|
|
75
|
-
'&.innerBorder': {
|
|
76
|
-
boxShadow: `inset 0px 0px 0px 1px ${theme.palette.divider}`
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
colorDefault: {
|
|
80
|
-
backgroundColor: theme.palette.background.paper,
|
|
81
|
-
color: theme.palette.text.secondary
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { alpha } from '@mui/material/styles';
|
|
2
|
-
export const backdropOverrides = (theme) => {
|
|
3
|
-
return {
|
|
4
|
-
styleOverrides: {
|
|
5
|
-
root: {
|
|
6
|
-
variants: [
|
|
7
|
-
{
|
|
8
|
-
props: { invisible: false },
|
|
9
|
-
style: {
|
|
10
|
-
backgroundColor: alpha(theme.palette.text.primary, theme.palette.action.focusOpacity)
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
]
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { alpha } from '@mui/material/styles';
|
|
2
|
-
import paletteJson from '../palette.json';
|
|
3
|
-
import { radius } from '../radius';
|
|
4
|
-
const paletteData = paletteJson;
|
|
5
|
-
export const buttonOverrides = (theme) => {
|
|
6
|
-
return {
|
|
7
|
-
styleOverrides: {
|
|
8
|
-
root: {
|
|
9
|
-
borderRadius: radius.pill,
|
|
10
|
-
boxShadow: 'none',
|
|
11
|
-
'&:hover': {
|
|
12
|
-
boxShadow: 'none'
|
|
13
|
-
},
|
|
14
|
-
'&:active': {
|
|
15
|
-
boxShadow: 'none'
|
|
16
|
-
},
|
|
17
|
-
'&:focus': {
|
|
18
|
-
boxShadow: 'none'
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
contained: {
|
|
22
|
-
boxShadow: 'none',
|
|
23
|
-
'&:hover': {
|
|
24
|
-
boxShadow: 'none'
|
|
25
|
-
},
|
|
26
|
-
'&:active': {
|
|
27
|
-
boxShadow: 'none'
|
|
28
|
-
},
|
|
29
|
-
'&:focus': {
|
|
30
|
-
boxShadow: 'none'
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
containedSecondary: {
|
|
34
|
-
backgroundColor: theme.palette.secondary.main,
|
|
35
|
-
color: alpha(theme.palette.text.primary, 0.9),
|
|
36
|
-
borderRadius: radius.sm,
|
|
37
|
-
'&:hover': {
|
|
38
|
-
backgroundColor: paletteData.Secondary[700],
|
|
39
|
-
color: alpha(theme.palette.text.primary, 0.9)
|
|
40
|
-
},
|
|
41
|
-
'&.Mui-disabled': {
|
|
42
|
-
backgroundColor: theme.palette.action.disabledBackground
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
outlined: {
|
|
46
|
-
backgroundColor: theme.palette.background.paper,
|
|
47
|
-
borderColor: alpha(paletteData.Grey.A900, 0.28),
|
|
48
|
-
color: alpha(theme.palette.text.primary, 0.9),
|
|
49
|
-
'&:hover': {
|
|
50
|
-
backgroundColor: alpha(theme.palette.primary.main, 0.04),
|
|
51
|
-
color: theme.palette.primary.main,
|
|
52
|
-
borderColor: alpha(theme.palette.primary.main, 0.32)
|
|
53
|
-
},
|
|
54
|
-
'&.Mui-disabled': {
|
|
55
|
-
backgroundColor: theme.palette.background.paper,
|
|
56
|
-
color: alpha(theme.palette.grey[900], 0.38),
|
|
57
|
-
borderColor: alpha(paletteData.Grey.A900, 0.28)
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
text: {
|
|
61
|
-
// Text button overrides
|
|
62
|
-
},
|
|
63
|
-
sizeSmall: {
|
|
64
|
-
padding: '6px 16px'
|
|
65
|
-
},
|
|
66
|
-
containedSizeSmall: {
|
|
67
|
-
paddingTop: '7px',
|
|
68
|
-
paddingBottom: '7px'
|
|
69
|
-
},
|
|
70
|
-
sizeMedium: {
|
|
71
|
-
padding: '9px 24px'
|
|
72
|
-
},
|
|
73
|
-
containedSizeMedium: {
|
|
74
|
-
paddingTop: '10px',
|
|
75
|
-
paddingBottom: '10px'
|
|
76
|
-
},
|
|
77
|
-
sizeLarge: {
|
|
78
|
-
padding: '12px 32px'
|
|
79
|
-
},
|
|
80
|
-
containedSizeLarge: {
|
|
81
|
-
paddingTop: '13px',
|
|
82
|
-
paddingBottom: '13px'
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
};
|