@m4l/styles 0.0.3 → 0.0.4
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/config.d.ts +13 -0
- package/index.d.ts +2 -0
- package/index.js +947 -437
- package/package.json +1 -1
- package/theme/defaultThemeOptions.d.ts +1 -2
- package/theme/index.d.ts +4 -5
- package/theme/overrides/M4LExtendedComponents/M4LButton.d.ts +1 -8
- package/theme/overrides/M4LExtendedComponents/M4LIconButton.d.ts +0 -3
- package/theme/overrides/M4LExtendedComponents/M4LImageButton.d.ts +35 -1
- package/theme/overrides/M4LExtendedComponents/M4LNavLink.d.ts +10 -0
- package/theme/overrides/M4LExtendedComponents/M4LPopover.d.ts +5 -1
- package/theme/overrides/M4LExtendedComponents/M4LTypography.d.ts +5 -2
- package/theme/overrides/M4LExtendedComponents/M4LanguagePopover.d.ts +1 -4
- package/theme/overrides/M4LExtendedComponents/M4LoadingButton.d.ts +6 -0
- package/theme/overrides/M4LRHFComponents/M4LRHFAutocomplete.d.ts +10 -0
- package/theme/overrides/M4LRHFComponents/M4LRHFAutocompleteAsync.d.ts +10 -0
- package/theme/overrides/M4LRHFComponents/M4LRHFCheckbox.d.ts +46 -1
- package/theme/overrides/M4LRHFComponents/M4LRHFTextField.d.ts +1 -11
- package/theme/overrides/M4LRHFComponents/M4LRHFTextFieldPassword.d.ts +4 -4
- package/theme/overrides/MUIComponents/Autocomplete.d.ts +0 -3
- package/theme/overrides/MUIComponents/ButtonGroup.d.ts +8 -0
- package/theme/overrides/MUIComponents/Fab.d.ts +1 -1
- package/theme/overrides/MUIComponents/Paper.d.ts +35 -0
- package/theme/overrides/MUIComponents/Typography.d.ts +5 -0
- package/theme/palette.d.ts +167 -93
- package/theme/shadows.d.ts +5 -50
- package/theme/typography.d.ts +146 -18
- package/types/index.d.ts +1 -1
- package/types/types.d.ts +151 -0
- package/utils/getColorPresets.d.ts +9 -105
- package/utils/getColorState.d.ts +15 -0
- package/utils/getFontValue.d.ts +1 -1
- package/utils/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const defaultThemeOptions: ThemeOptions;
|
|
1
|
+
export declare const defaultThemeOptions: any;
|
package/theme/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export type { CustomShadowOptions } from './shadows';
|
|
2
|
-
export type { GradientsPaletteOptions } from './palette';
|
|
3
|
-
export type { ChartPaletteOptions } from './palette';
|
|
4
|
-
export type { GridPaletteOptions } from './palette';
|
|
5
2
|
export { defaultThemeOptions } from './defaultThemeOptions';
|
|
6
|
-
export { shadows,
|
|
7
|
-
export { palette,
|
|
3
|
+
export { shadows, createCustomShadows } from './shadows';
|
|
4
|
+
export { palette, PATRONUSCOLORS } from './palette';
|
|
5
|
+
export type { ColorSchema, StateDefault, StateSkeleton } from './palette';
|
|
6
|
+
export { typography } from './typography';
|
|
8
7
|
export { fnComponentsOverrides } from './overrides';
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { Theme } from '@mui/material/styles';
|
|
2
2
|
export declare const M4LButton: (_theme: Theme) => {
|
|
3
3
|
M4LButton: {
|
|
4
|
-
styleOverrides: {
|
|
5
|
-
'&.M4LButton-root': {
|
|
6
|
-
test: string;
|
|
7
|
-
'.MuiButton-root': {
|
|
8
|
-
border: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
4
|
+
styleOverrides: {};
|
|
12
5
|
};
|
|
13
6
|
};
|
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
import { Theme } from '@mui/material/styles';
|
|
2
|
-
export declare const M4LImageButton: (
|
|
2
|
+
export declare const M4LImageButton: (theme: Theme) => {
|
|
3
3
|
M4LImageButton: {
|
|
4
4
|
styleOverrides: {
|
|
5
5
|
"&.M4LImageButton-root": {
|
|
6
6
|
test: string;
|
|
7
|
+
'.MuiButtonBase-root': {
|
|
8
|
+
display: string;
|
|
9
|
+
padding: string;
|
|
10
|
+
borderRadius: string;
|
|
11
|
+
alignItems: string;
|
|
12
|
+
justifyContent: string;
|
|
13
|
+
};
|
|
14
|
+
".M4LImage-root": {
|
|
15
|
+
display: string;
|
|
16
|
+
alignItems: string;
|
|
17
|
+
justifyContent: string;
|
|
18
|
+
objectFit: string;
|
|
19
|
+
width: string;
|
|
20
|
+
height: string;
|
|
21
|
+
};
|
|
22
|
+
".M4LImage-lazyLoad": {
|
|
23
|
+
borderRadius: string;
|
|
24
|
+
width: string;
|
|
25
|
+
height: string;
|
|
26
|
+
display: string;
|
|
27
|
+
alignItems: string;
|
|
28
|
+
justifyContent: string;
|
|
29
|
+
};
|
|
30
|
+
".M4LImage-img": {
|
|
31
|
+
borderRadius: string;
|
|
32
|
+
};
|
|
33
|
+
'.MuiButtonBase-root:hover': {
|
|
34
|
+
backgroundColor: string;
|
|
35
|
+
};
|
|
36
|
+
'.MuiButtonBase-root:focus': {
|
|
37
|
+
backgroundColor: string;
|
|
38
|
+
border: string;
|
|
39
|
+
borderColor: string;
|
|
40
|
+
};
|
|
7
41
|
};
|
|
8
42
|
};
|
|
9
43
|
};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { Theme } from '@mui/material/styles';
|
|
2
|
-
export declare const M4LPopover: (
|
|
2
|
+
export declare const M4LPopover: (theme: Theme) => {
|
|
3
3
|
M4LPopover: {
|
|
4
4
|
styleOverrides: {
|
|
5
5
|
"&.M4LPopover-root": {
|
|
6
6
|
test: string;
|
|
7
7
|
'.MuiPaper-root': {
|
|
8
8
|
background: string;
|
|
9
|
+
borderRadius: string;
|
|
10
|
+
Padding: string;
|
|
11
|
+
margin: string;
|
|
12
|
+
boxShadow: string;
|
|
9
13
|
};
|
|
10
14
|
};
|
|
11
15
|
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Theme } from '@mui/material/styles';
|
|
2
|
-
export declare const M4LTypography: (
|
|
2
|
+
export declare const M4LTypography: (theme: Theme) => {
|
|
3
3
|
M4LTypography: {
|
|
4
4
|
styleOverrides: {
|
|
5
5
|
"&.M4LTypography-root": {
|
|
6
|
-
|
|
6
|
+
display: string;
|
|
7
|
+
'& .MuiTypography-root': {
|
|
8
|
+
margin: string;
|
|
9
|
+
};
|
|
7
10
|
};
|
|
8
11
|
};
|
|
9
12
|
};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { Theme } from '@mui/material/styles';
|
|
2
|
-
export declare const M4LanguagePopover: (
|
|
2
|
+
export declare const M4LanguagePopover: (theme: Theme) => {
|
|
3
3
|
M4LanguagePopover: {
|
|
4
4
|
styleOverrides: {
|
|
5
5
|
"&.M4LanguagePopover-root": {
|
|
6
6
|
test: string;
|
|
7
|
-
'.MuiIconButton-sizeMedium': {
|
|
8
|
-
border: string;
|
|
9
|
-
};
|
|
10
7
|
};
|
|
11
8
|
};
|
|
12
9
|
};
|
|
@@ -1,9 +1,54 @@
|
|
|
1
1
|
import { Theme } from '@mui/material/styles';
|
|
2
|
-
export declare const M4LRHFCheckbox: (
|
|
2
|
+
export declare const M4LRHFCheckbox: (theme: Theme) => {
|
|
3
3
|
M4LRHFCheckbox: {
|
|
4
4
|
styleOverrides: {
|
|
5
5
|
"&.M4LRHFCheckbox-root": {
|
|
6
6
|
test: string;
|
|
7
|
+
'.M4LRHFCheckbox-checkTypography': {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
display: string;
|
|
10
|
+
gap: string;
|
|
11
|
+
};
|
|
12
|
+
'& .MuiTypography-root': any;
|
|
13
|
+
'.M4LRHFCheckbox-small .MuiButtonBase-root': {
|
|
14
|
+
width: string;
|
|
15
|
+
height: string;
|
|
16
|
+
};
|
|
17
|
+
'.MuiCheckbox-root .MuiSvgIcon-fontSizeSmall': {
|
|
18
|
+
width: string;
|
|
19
|
+
height: string;
|
|
20
|
+
};
|
|
21
|
+
'.M4LRHFCheckbox-medium .MuiButtonBase-root': {
|
|
22
|
+
width: string;
|
|
23
|
+
height: string;
|
|
24
|
+
};
|
|
25
|
+
'.MuiCheckbox-root .MuiSvgIcon-fontSizeMedium': {
|
|
26
|
+
width: string;
|
|
27
|
+
height: string;
|
|
28
|
+
};
|
|
29
|
+
'.MuiButtonBase-root': {
|
|
30
|
+
borderRadius: string;
|
|
31
|
+
};
|
|
32
|
+
'.MuiButtonBase-root:hover': {
|
|
33
|
+
backgroundColor: string;
|
|
34
|
+
};
|
|
35
|
+
'.Mui-focusVisible': {
|
|
36
|
+
border: string;
|
|
37
|
+
borderColor: string;
|
|
38
|
+
};
|
|
39
|
+
'.MuiButtonBase-root:hover .MuiSvgIcon-root': {
|
|
40
|
+
fill: string;
|
|
41
|
+
};
|
|
42
|
+
'.M4LRHFCheckbox-checkTypography .MuiTypography-root': any;
|
|
43
|
+
'.M4LRHFCheckbox-stateDisabled .MuiSvgIcon-root': {
|
|
44
|
+
fill: string;
|
|
45
|
+
};
|
|
46
|
+
'.M4LRHFCheckbox-stateDisabled .MuiTypography-root': {
|
|
47
|
+
color: string;
|
|
48
|
+
};
|
|
49
|
+
'.MuiButtonBase-root .Mui-focusVisible:focus-visible': {
|
|
50
|
+
outline: string;
|
|
51
|
+
};
|
|
7
52
|
};
|
|
8
53
|
};
|
|
9
54
|
};
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { Theme } from '@mui/material/styles';
|
|
2
2
|
export declare const M4LRHFTextField: (_theme: Theme) => {
|
|
3
3
|
M4LRHFTextField: {
|
|
4
|
-
styleOverrides: {
|
|
5
|
-
"&.M4LRHFTextField-root": {
|
|
6
|
-
test: string;
|
|
7
|
-
'.MuiTextField-root': {
|
|
8
|
-
border: string;
|
|
9
|
-
};
|
|
10
|
-
'.MuiFormLabel-root': {
|
|
11
|
-
background: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
4
|
+
styleOverrides: {};
|
|
15
5
|
};
|
|
16
6
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Theme } from '@mui/material/styles';
|
|
2
|
-
export declare const M4LRHFTextFieldPassword: (
|
|
2
|
+
export declare const M4LRHFTextFieldPassword: (theme: Theme) => {
|
|
3
3
|
M4LRHFTextFieldPassword: {
|
|
4
4
|
styleOverrides: {
|
|
5
5
|
"&.M4LRHFTextFieldPassword-root": {
|
|
6
6
|
".M4LRHFTextField-root .MuiTextField-root": {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
test: string;
|
|
8
|
+
display: string;
|
|
9
|
+
flexDirection: string;
|
|
10
10
|
gap: string;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
@@ -2,6 +2,14 @@ import { Theme } from '@mui/material/styles';
|
|
|
2
2
|
export default function ButtonGroup(theme: Theme): {
|
|
3
3
|
MuiButtonGroup: {
|
|
4
4
|
variants: ({
|
|
5
|
+
props: {
|
|
6
|
+
variant: string;
|
|
7
|
+
color: "primary" | "secondary" | "info" | "success" | "warning" | "error";
|
|
8
|
+
};
|
|
9
|
+
style: {
|
|
10
|
+
boxShadow: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
} | {
|
|
5
13
|
props: {
|
|
6
14
|
variant: string;
|
|
7
15
|
color: string;
|
|
@@ -15,7 +15,42 @@ export default function Paper(theme: Theme): {
|
|
|
15
15
|
styleOverrides: {
|
|
16
16
|
root: {
|
|
17
17
|
backgroundImage: string;
|
|
18
|
+
backgroundColor: string;
|
|
18
19
|
borderRadius: string;
|
|
20
|
+
'& .MuiStack-root .MuiMenuItem-root': any;
|
|
21
|
+
'& .MuiStack-root .MuiMenuItem-root:hover': {
|
|
22
|
+
color: string;
|
|
23
|
+
transition: string;
|
|
24
|
+
backgroundColor: string;
|
|
25
|
+
};
|
|
26
|
+
'& .MuiStack-root .MuiMenuItem-root.Mui-selected': {
|
|
27
|
+
color: string;
|
|
28
|
+
transition: string;
|
|
29
|
+
backgroundColor: string;
|
|
30
|
+
};
|
|
31
|
+
'& .MuiStack-root .MuiMenuItem-root:focus': {
|
|
32
|
+
color: string;
|
|
33
|
+
transition: string;
|
|
34
|
+
backgroundColor: string;
|
|
35
|
+
boxShadow: string;
|
|
36
|
+
};
|
|
37
|
+
'& .MuiAutocomplete-listbox .MuiAutocomplete-option': any;
|
|
38
|
+
'& .MuiAutocomplete-listbox .MuiAutocomplete-option:hover': {
|
|
39
|
+
color: string;
|
|
40
|
+
transition: string;
|
|
41
|
+
backgroundColor: string;
|
|
42
|
+
};
|
|
43
|
+
'& .MuiAutocomplete-listbox .MuiAutocomplete-option.Mui-selected': {
|
|
44
|
+
color: string;
|
|
45
|
+
transition: string;
|
|
46
|
+
backgroundColor: string;
|
|
47
|
+
};
|
|
48
|
+
'& .MuiAutocomplete-listbox .MuiAutocomplete-option:active': {
|
|
49
|
+
color: string;
|
|
50
|
+
transition: string;
|
|
51
|
+
backgroundColor: string;
|
|
52
|
+
boxShadow: string;
|
|
53
|
+
};
|
|
19
54
|
};
|
|
20
55
|
};
|
|
21
56
|
};
|