@m4l/styles 7.1.42 → 7.1.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/styles",
3
- "version": "7.1.42",
3
+ "version": "7.1.43",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -0,0 +1,158 @@
1
+ import type { CustomShadowOptions } from '../theme';
2
+ import type { Size } from '../theme/sizes/types';
3
+ import type { BaseChipColors } from './types';
4
+ declare module '@mui/material' {
5
+ interface Color {
6
+ 0: string;
7
+ 500_8: string;
8
+ 500_12: string;
9
+ 500_16: string;
10
+ 500_24: string;
11
+ 500_32: string;
12
+ 500_48: string;
13
+ 500_56: string;
14
+ 500_80: string;
15
+ }
16
+ }
17
+ declare module '@mui/material/styles' {
18
+ interface PaletteColor {
19
+ enabled: string;
20
+ enabledOpacity: string;
21
+ hover: string;
22
+ hoverOpacity: string;
23
+ focus: string;
24
+ focusOpacity: string;
25
+ focusVisible: string;
26
+ selected: string;
27
+ selectedOpacity: string;
28
+ active: string;
29
+ activeOpacity: string;
30
+ opacity: string;
31
+ toneOpacity: string;
32
+ semanticText: string;
33
+ opacityGradient1: string;
34
+ opacityGradient2: string;
35
+ }
36
+ interface Palette {
37
+ mode: 'light' | 'dark';
38
+ secondary: never;
39
+ skeleton: { default: string; transition: string };
40
+ default: PaletteColor;
41
+ border: {
42
+ main: string;
43
+ default: string;
44
+ secondary: string;
45
+ dens: string;
46
+ disabled: string;
47
+ error: string;
48
+ };
49
+ chips: BaseChipColors;
50
+ general: {
51
+ scrollBar: string;
52
+ gridHover: string;
53
+ };
54
+ }
55
+ /**
56
+ * MUI palette options interface: defines the color palette customization options
57
+ * that can be used when creating a theme with `createTheme`.
58
+ */
59
+ interface PaletteOptions {
60
+ mode: 'light' | 'dark';
61
+ secondary: never;
62
+ skeleton: { default: string; transition: string };
63
+ border: {
64
+ main: string;
65
+ default: string;
66
+ secondary: string;
67
+ dens: string;
68
+ disabled: string;
69
+ error: string;
70
+ };
71
+ chips: BaseChipColors;
72
+ default: PaletteColor;
73
+ general: {
74
+ scrollBar: string;
75
+ gridHover: string;
76
+ };
77
+ }
78
+
79
+ interface TypeText {
80
+ primary: string;
81
+ secondary: string;
82
+ disabled: string;
83
+ contrastText: string;
84
+ }
85
+ interface ColorSchemeOverrides {
86
+ finalTheme?: true;
87
+ }
88
+ interface CssVarsTheme {
89
+ generalSettings: {
90
+ isMobile: boolean;
91
+ };
92
+ }
93
+ interface Theme extends CssVarsTheme {
94
+ stretch: boolean;
95
+ customShadows: CustomShadowOptions;
96
+ size: Size;
97
+ }
98
+ interface CssVarsThemeOptions {
99
+ generalSettings: {
100
+ isMobile: boolean;
101
+ };
102
+ }
103
+ interface ThemeVars {
104
+ customShadows: CustomShadowOptions;
105
+ /**
106
+ * Base sizes and spacing collection in the design system.
107
+ */
108
+ size: Size;
109
+ }
110
+ interface ColorSystem {
111
+ typography: TypographyVariants;
112
+ }
113
+ interface TypeBackground {
114
+ default: string;
115
+ neutral: string;
116
+ surface: string;
117
+ hover: string;
118
+ backdrop: string;
119
+ base: string;
120
+ blur: string;
121
+ contrastDefault: string;
122
+ }
123
+ interface TypographyVariants {
124
+ subtitle: Record<string, any>;
125
+ subtitleDens: Record<string, any>;
126
+ paragraph: Record<string, any>;
127
+ paragraphDens: Record<string, any>;
128
+ body: Record<string, any>;
129
+ bodyDens: Record<string, any>;
130
+ action: Record<string, any>;
131
+ caption: Record<string, any>;
132
+ captionDens: Record<string, any>;
133
+ }
134
+ interface TypographyVariantsOptions {
135
+ subtitle: React.CSSProperties;
136
+ subtitleDens: React.CSSProperties;
137
+ paragraph: React.CSSProperties;
138
+ paragraphDens: React.CSSProperties;
139
+ body: React.CSSProperties;
140
+ bodyDens: React.CSSProperties;
141
+ action: React.CSSProperties;
142
+ caption: React.CSSProperties;
143
+ captionDens: React.CSSProperties;
144
+ }
145
+ }
146
+ declare module '@mui/material/Typography' {
147
+ interface TypographyPropsVariantOverrides {
148
+ subtitle: true;
149
+ subtitleDens: true;
150
+ paragraph: true;
151
+ paragraphDens: true;
152
+ body: true;
153
+ bodyDens: true;
154
+ action: true;
155
+ caption: true;
156
+ captionDens: true;
157
+ }
158
+ }