@m4l/styles 3.2.2 → 6.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.
Files changed (38) hide show
  1. package/index.js +33 -41
  2. package/package.json +1 -1
  3. package/theme/defaultThemeOptions-DVY68pts.js +125 -0
  4. package/theme/defaultThemeOptions.d.ts +2 -1
  5. package/theme/index.d.ts +1 -1
  6. package/theme/overrides/M4LExtendedComponents/{index.dbc24a3d.js → index-BO_x8lkT.js} +595 -274
  7. package/theme/overrides/M4LRHFComponents/{index.7d702163.js → index-Dv4h8DSV.js} +109 -37
  8. package/theme/overrides/MUIComponents/Avatar.d.ts +1 -1
  9. package/theme/overrides/MUIComponents/Input.d.ts +1 -1
  10. package/theme/overrides/MUIComponents/Progress.d.ts +1 -1
  11. package/theme/overrides/MUIComponents/ToggleButton.d.ts +2 -2
  12. package/theme/overrides/MUIComponents/{index.2b5bc914.js → index-DrBJTI1s.js} +108 -61
  13. package/theme/overrides/{index.cc540e59.js → index-BOMUIneQ.js} +20 -14
  14. package/theme/palette/baseOpacityColors.d.ts +3 -0
  15. package/theme/palette/defaultColors.d.ts +14 -0
  16. package/theme/palette/index.d.ts +0 -1
  17. package/theme/palette/presetColors.d.ts +18 -4
  18. package/theme/palette/semanticColors.d.ts +16 -0
  19. package/theme/palette-voCQl3kP.js +792 -0
  20. package/theme/{shadows.67c0a60a.js → shadows-Cek_1mpN.js} +2 -1
  21. package/theme/{typography.616cfe0c.js → typography-BsOO459U.js} +11 -1
  22. package/types/augmentations.d.ts +160 -155
  23. package/types/types.d.ts +72 -31
  24. package/utils/{getColorPresets.38329841.js → getColorPresets-DgmrCj5l.js} +1 -1
  25. package/utils/getColorPresets.d.ts +4 -4
  26. package/utils/getColorState.d.ts +2 -2
  27. package/utils/{getFontValue.88831637.js → getFontValue-BEO-XID9.js} +8 -5
  28. package/utils/getPaletteByPreset.d.ts +127 -0
  29. package/utils/index.d.ts +1 -0
  30. package/vite-env.d.ts +3 -3
  31. package/theme/defaultThemeOptions.b39953a8.js +0 -24
  32. package/theme/palette/palette.d.ts +0 -6
  33. package/theme/palette/stateColors.d.ts +0 -2
  34. package/theme/palette.fc293d0e.js +0 -575
  35. /package/{config.3bb6415c.js → config-B8bZIPuH.js} +0 -0
  36. /package/theme/{index.34d0fdea.js → index-l0sNRNKZ.js} +0 -0
  37. /package/utils/{getColorState.b8092fb6.js → getColorState-D1JKXD4T.js} +0 -0
  38. /package/utils/{useResponsive.2c45e8e0.js → useResponsive-DaeQVwlH.js} +0 -0
@@ -0,0 +1,127 @@
1
+ import type { ThemeColorOptionsType } from '../types';
2
+ export declare const getPaletteByPreset: (presetColor: ThemeColorOptionsType) => {
3
+ readonly light: {
4
+ readonly info: import("@mui/material").PaletteColor;
5
+ readonly success: import("@mui/material").PaletteColor;
6
+ readonly warning: import("@mui/material").PaletteColor;
7
+ readonly error: import("@mui/material").PaletteColor;
8
+ readonly mode: "light";
9
+ readonly common: import("@mui/material").CommonColors;
10
+ readonly primary: {
11
+ readonly light: string;
12
+ readonly main: string;
13
+ readonly dark: string;
14
+ readonly contrastText: string;
15
+ readonly focusActive: string;
16
+ readonly focusVisible: string;
17
+ readonly hover: string;
18
+ readonly hoverOpacity: string;
19
+ readonly opacity: string;
20
+ readonly toneOpacity: string;
21
+ };
22
+ readonly default: {
23
+ readonly focusVisible: string;
24
+ readonly contrastText: string;
25
+ readonly light: string;
26
+ readonly main: string;
27
+ readonly dark: string;
28
+ readonly focusActive: string;
29
+ readonly hover: string;
30
+ readonly hoverOpacity: string;
31
+ readonly opacity: string;
32
+ readonly toneOpacity: string;
33
+ };
34
+ readonly divider: string;
35
+ readonly text: {
36
+ readonly primary: string;
37
+ readonly secondary: string;
38
+ readonly disabled: string;
39
+ };
40
+ readonly background: {
41
+ readonly default: string;
42
+ readonly neutral: string;
43
+ readonly surface: string;
44
+ readonly hover: string;
45
+ readonly paper: "";
46
+ };
47
+ readonly border: {
48
+ readonly main: string;
49
+ readonly default: string;
50
+ readonly secondary: string;
51
+ readonly dens: string;
52
+ readonly disabled: string;
53
+ readonly error: string;
54
+ };
55
+ readonly general: {
56
+ readonly scrollBar: string;
57
+ readonly gridHover: string;
58
+ };
59
+ readonly grey: import("@mui/material").Color;
60
+ readonly skeleton: {
61
+ readonly default: string;
62
+ readonly transition: string;
63
+ };
64
+ };
65
+ readonly dark: {
66
+ readonly info: import("@mui/material").PaletteColor;
67
+ readonly success: import("@mui/material").PaletteColor;
68
+ readonly warning: import("@mui/material").PaletteColor;
69
+ readonly error: import("@mui/material").PaletteColor;
70
+ readonly mode: "dark";
71
+ readonly common: import("@mui/material").CommonColors;
72
+ readonly primary: {
73
+ readonly light: string;
74
+ readonly main: string;
75
+ readonly dark: string;
76
+ readonly contrastText: string;
77
+ readonly focusActive: string;
78
+ readonly focusVisible: string;
79
+ readonly hover: string;
80
+ readonly hoverOpacity: string;
81
+ readonly opacity: string;
82
+ readonly toneOpacity: string;
83
+ };
84
+ readonly default: {
85
+ readonly focusVisible: string;
86
+ readonly contrastText: string;
87
+ readonly light: string;
88
+ readonly main: string;
89
+ readonly dark: string;
90
+ readonly focusActive: string;
91
+ readonly hover: string;
92
+ readonly hoverOpacity: string;
93
+ readonly opacity: string;
94
+ readonly toneOpacity: string;
95
+ };
96
+ readonly text: {
97
+ readonly primary: string;
98
+ readonly secondary: string;
99
+ readonly disabled: string;
100
+ };
101
+ readonly divider: string;
102
+ readonly background: {
103
+ readonly default: string;
104
+ readonly neutral: string;
105
+ readonly surface: string;
106
+ readonly hover: string;
107
+ readonly paper: "";
108
+ };
109
+ readonly border: {
110
+ readonly main: string;
111
+ readonly default: string;
112
+ readonly secondary: string;
113
+ readonly dens: string;
114
+ readonly disabled: string;
115
+ readonly error: string;
116
+ };
117
+ readonly general: {
118
+ readonly scrollBar: string;
119
+ readonly gridHover: string;
120
+ };
121
+ readonly grey: import("@mui/material").Color;
122
+ readonly skeleton: {
123
+ readonly default: string;
124
+ readonly transition: string;
125
+ };
126
+ };
127
+ };
package/utils/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export { useResponsive } from './useResponsive';
2
2
  export * from './getColorPresets';
3
3
  export * from './getFontValue';
4
4
  export * from './getColorState';
5
+ export * from './getPaletteByPreset';
package/vite-env.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- /// <reference types="vite/client" />
2
- /// <reference types="vitest" />
3
- /// <reference types="vitest/importMeta" />
1
+ /// <reference types="vite/client" />
2
+ /// <reference types="vitest" />
3
+ /// <reference types="vitest/importMeta" />
@@ -1,24 +0,0 @@
1
- import { createTheme as a, alpha as s } from "@mui/material/styles";
2
- import { t as o } from "./typography.616cfe0c.js";
3
- import { s as r, c as m } from "./shadows.67c0a60a.js";
4
- import { g as p } from "./palette.fc293d0e.js";
5
- import { g as h, D as t } from "../utils/getColorPresets.38329841.js";
6
- const e = a(), f = {
7
- ...e,
8
- typography: o,
9
- palette: {
10
- ...e.palette,
11
- ...p(t).light,
12
- mode: "light"
13
- },
14
- shape: { borderRadius: 8 },
15
- shadows: r.dark,
16
- customShadows: {
17
- primary: `0 8px 16px 0 ${s(h(t).main, 0.2)}`,
18
- ...m("dark")
19
- },
20
- stretch: !0
21
- };
22
- export {
23
- f as d
24
- };
@@ -1,6 +0,0 @@
1
- import { Palette } from '@mui/material/styles';
2
- import type { ThemeColorPresets } from '../../types';
3
- export declare const getPaletteByPreset: (presetColor: ThemeColorPresets) => {
4
- readonly light: Palette;
5
- readonly dark: Palette;
6
- };
@@ -1,2 +0,0 @@
1
- import type { StatePalettes } from '../../types';
2
- export declare const STATE_COLORS: StatePalettes;