@m4l/styles 0.0.46 → 0.0.48

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.
@@ -1,121 +1,121 @@
1
- import { PatronusConstantColors, PatronusOpacityColors, PatronusOpacityOptions } from '../theme/palette';
2
- import { ColorStateOptions, CustomShadowOptions } from '../theme';
3
- import { ChartPaletteOptions, GradientsPaletteOptions, GridPaletteOptions } from './types';
4
-
5
-
6
- declare module '@mui/material' {
7
- interface Color {
8
- 0: string;
9
- 500_8: string;
10
- 500_12: string;
11
- 500_16: string;
12
- 500_24: string;
13
- 500_32: string;
14
- 500_48: string;
15
- 500_56: string;
16
- 500_80: string;
17
- }
18
- }
19
-
20
- declare module '@mui/material/styles/createPalette' {
21
-
22
- interface SimplePaletteColorOptions {
23
- lighter?: string;
24
- darker?: string;
25
- LightSelected?: string;
26
- LightSelectedHover?: string;
27
- DarkSelected?: string;
28
- DarkSelectedHover?: string;
29
- }
30
- interface PaletteColor {
31
- lighter?: string;
32
- darker?: string;
33
- LightSelected?: string;
34
- LightSelectedHover?: string;
35
- DarkSelected?: string;
36
- DarkSelectedHover?: string;
37
- opacity?: string;
38
- }
39
- interface Palette {
40
- gradients?: GradientsPaletteOptions;
41
- chart: ChartPaletteOptions;
42
- grid?: GridPaletteOptions;
43
- patronus?: PatronusConstantColors;
44
- opacity: Record<PatronusOpacityColors, PatronusOpacityOptions>;
45
- state: ColorStateOptions /* Organizar cada caso con los valores específicos. */;
46
- representative: string;
47
- /* info: AgumentationInfoOptions; */
48
- }
49
-
50
- interface TypeText {
51
- bgPrimary: string,
52
- }
53
- interface PaletteOptions {
54
- gradients?: GradientsPaletteOptions;
55
- chart?: ChartPaletteOptions;
56
- grid?: GridPaletteOptions;
57
- patronus?: PatronusConstantColors;
58
- opacity: Record<PatronusOpacityColors, PatronusOpacityOptions>;
59
- state: ColorStateOptions /* Organizar cada caso con los valores específicos. */;
60
- representative: string;
61
- }
62
- }
63
-
64
- // declare module '@mui/core/Typography' {
65
- // interface TypographyProps {
66
- // variant?: 'subtitle';
67
- // }
68
- // }
69
-
70
- declare module '@mui/material/styles' {
71
- interface Theme {
72
- stretch?: boolean;
73
- customShadows: CustomShadowOptions;
74
- }
75
-
76
- interface ThemeOptions {
77
- stretch?: boolean;
78
- customShadows?: CustomShadowOptions;
79
- }
80
-
81
- interface TypographyVariants {
82
- subtitle: Record<string, any>;
83
- subtitleDens: Record<string, any>;
84
- paragraph: Record<string, any>;
85
- paragraphDens: Record<string, any>;
86
- body: Record<string, any>;
87
- bodyDens: Record<string, any>;
88
- action: Record<string, any>;
89
- }
90
-
91
- // allow configuration using `createTheme`
92
- interface TypographyVariantsOptions {
93
- subtitle: React.CSSProperties;
94
- subtitleDens: React.CSSProperties;
95
- paragraph: React.CSSProperties;
96
- paragraphDens: React.CSSProperties;
97
- body: React.CSSProperties;
98
- bodyDens: React.CSSProperties;
99
- action: React.CSSProperties;
100
- }
101
-
102
- interface TypeBackground {
103
- neutral: string;
104
- autofill: string;
105
- header: string;
106
- background: string;
107
- }
108
-
109
- }
110
-
111
- declare module '@mui/material/Typography' {
112
- interface TypographyPropsVariantOverrides {
113
- subtitle: true;
114
- subtitleDens: true;
115
- paragraph: true;
116
- paragraphDens: true;
117
- body: true;
118
- bodyDens: true;
119
- action: true;
120
- }
121
- }
1
+ import { PatronusConstantColors, PatronusOpacityColors, PatronusOpacityOptions } from '../theme/palette';
2
+ import { ColorStateOptions, CustomShadowOptions } from '../theme';
3
+ import { ChartPaletteOptions, GradientsPaletteOptions, GridPaletteOptions } from './types';
4
+
5
+
6
+ declare module '@mui/material' {
7
+ interface Color {
8
+ 0: string;
9
+ 500_8: string;
10
+ 500_12: string;
11
+ 500_16: string;
12
+ 500_24: string;
13
+ 500_32: string;
14
+ 500_48: string;
15
+ 500_56: string;
16
+ 500_80: string;
17
+ }
18
+ }
19
+
20
+ declare module '@mui/material/styles/createPalette' {
21
+
22
+ interface SimplePaletteColorOptions {
23
+ lighter?: string;
24
+ darker?: string;
25
+ LightSelected?: string;
26
+ LightSelectedHover?: string;
27
+ DarkSelected?: string;
28
+ DarkSelectedHover?: string;
29
+ }
30
+ interface PaletteColor {
31
+ lighter?: string;
32
+ darker?: string;
33
+ LightSelected?: string;
34
+ LightSelectedHover?: string;
35
+ DarkSelected?: string;
36
+ DarkSelectedHover?: string;
37
+ opacity?: string;
38
+ }
39
+ interface Palette {
40
+ gradients?: GradientsPaletteOptions;
41
+ chart: ChartPaletteOptions;
42
+ grid?: GridPaletteOptions;
43
+ patronus?: PatronusConstantColors;
44
+ opacity: Record<PatronusOpacityColors, PatronusOpacityOptions>;
45
+ state: ColorStateOptions /* Organizar cada caso con los valores específicos. */;
46
+ representative: string;
47
+ /* info: AgumentationInfoOptions; */
48
+ }
49
+
50
+ interface TypeText {
51
+ bgPrimary: string,
52
+ }
53
+ interface PaletteOptions {
54
+ gradients?: GradientsPaletteOptions;
55
+ chart?: ChartPaletteOptions;
56
+ grid?: GridPaletteOptions;
57
+ patronus?: PatronusConstantColors;
58
+ opacity: Record<PatronusOpacityColors, PatronusOpacityOptions>;
59
+ state: ColorStateOptions /* Organizar cada caso con los valores específicos. */;
60
+ representative: string;
61
+ }
62
+ }
63
+
64
+ // declare module '@mui/core/Typography' {
65
+ // interface TypographyProps {
66
+ // variant?: 'subtitle';
67
+ // }
68
+ // }
69
+
70
+ declare module '@mui/material/styles' {
71
+ interface Theme {
72
+ stretch?: boolean;
73
+ customShadows: CustomShadowOptions;
74
+ }
75
+
76
+ interface ThemeOptions {
77
+ stretch?: boolean;
78
+ customShadows?: CustomShadowOptions;
79
+ }
80
+
81
+ interface TypographyVariants {
82
+ subtitle: Record<string, any>;
83
+ subtitleDens: Record<string, any>;
84
+ paragraph: Record<string, any>;
85
+ paragraphDens: Record<string, any>;
86
+ body: Record<string, any>;
87
+ bodyDens: Record<string, any>;
88
+ action: Record<string, any>;
89
+ }
90
+
91
+ // allow configuration using `createTheme`
92
+ interface TypographyVariantsOptions {
93
+ subtitle: React.CSSProperties;
94
+ subtitleDens: React.CSSProperties;
95
+ paragraph: React.CSSProperties;
96
+ paragraphDens: React.CSSProperties;
97
+ body: React.CSSProperties;
98
+ bodyDens: React.CSSProperties;
99
+ action: React.CSSProperties;
100
+ }
101
+
102
+ interface TypeBackground {
103
+ neutral: string;
104
+ autofill: string;
105
+ header: string;
106
+ background: string;
107
+ }
108
+
109
+ }
110
+
111
+ declare module '@mui/material/Typography' {
112
+ interface TypographyPropsVariantOverrides {
113
+ subtitle: true;
114
+ subtitleDens: true;
115
+ paragraph: true;
116
+ paragraphDens: true;
117
+ body: true;
118
+ bodyDens: true;
119
+ action: true;
120
+ }
121
+ }
package/types/types.d.ts CHANGED
@@ -1,24 +1,24 @@
1
- export declare type ThemeColorPresets = 'patronus' | 'turqui' | 'grass' | 'brown' | 'blaze';
2
-
3
- export interface GridPaletteOptions {
4
- sectionHeader: string;
5
- rowHover: string;
6
- divider: string;
7
- }
8
-
9
- export interface ChartPaletteOptions {
10
- violet: string[];
11
- blue: string[];
12
- green: string[];
13
- yellow: string[];
14
- red: string[];
15
- }
16
-
17
- export interface GradientsPaletteOptions {
18
- primary: string;
19
- info: string;
20
- success: string;
21
- warning: string;
22
- error: string;
23
- }
24
-
1
+ export declare type ThemeColorPresets = 'patronus' | 'turqui' | 'grass' | 'brown' | 'blaze';
2
+
3
+ export interface GridPaletteOptions {
4
+ sectionHeader: string;
5
+ rowHover: string;
6
+ divider: string;
7
+ }
8
+
9
+ export interface ChartPaletteOptions {
10
+ violet: string[];
11
+ blue: string[];
12
+ green: string[];
13
+ yellow: string[];
14
+ red: string[];
15
+ }
16
+
17
+ export interface GradientsPaletteOptions {
18
+ primary: string;
19
+ info: string;
20
+ success: string;
21
+ warning: string;
22
+ error: string;
23
+ }
24
+
@@ -1,11 +1,6 @@
1
1
  import { alpha as a } from "@mui/system";
2
- import "../theme/defaultThemeOptions.656b9eff.js";
3
- import "../theme/shadows.86540b18.js";
4
2
  import { P as e, O as r, S as o } from "../theme/palette.0590e8a6.js";
5
- import "../theme/typography.ed54f014.js";
6
- import "@mui/material";
7
- import "@mui/material/styles";
8
- const c = (i, n) => {
3
+ const u = (i, n) => {
9
4
  let t = {};
10
5
  switch (i) {
11
6
  case "patronus":
@@ -240,5 +235,5 @@ const c = (i, n) => {
240
235
  return n === "light" ? { ...t.light } : { ...t.dark };
241
236
  };
242
237
  export {
243
- c as g
238
+ u as g
244
239
  };
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,7 +0,0 @@
1
- import "./defaultThemeOptions.656b9eff.js";
2
- import "./shadows.86540b18.js";
3
- import "./palette.0590e8a6.js";
4
- import "./typography.ed54f014.js";
5
- import "@mui/material";
6
- import "@mui/material/styles";
7
- import "@mui/system";
@@ -1,55 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export default function Dialog(theme: Theme): {
3
- MuiDialog: {
4
- styleOverrides: {
5
- paper: {
6
- boxShadow: string;
7
- '&.MuiPaper-rounded': {
8
- borderRadius: number;
9
- };
10
- '&.MuiDialog-paperFullScreen': {
11
- borderRadius: number;
12
- };
13
- '&.MuiDialog-paper .MuiDialogActions-root': {
14
- padding: string;
15
- };
16
- '@media (max-width: 600px)': {
17
- margin: string;
18
- };
19
- '@media (max-width: 663.95px)': {
20
- '&.MuiDialog-paperWidthSm.MuiDialog-paperScrollBody': {
21
- maxWidth: string;
22
- };
23
- };
24
- };
25
- paperFullWidth: {
26
- width: string;
27
- };
28
- };
29
- };
30
- MuiDialogTitle: {
31
- styleOverrides: {
32
- root: {
33
- padding: string;
34
- };
35
- };
36
- };
37
- MuiDialogContent: {
38
- styleOverrides: {
39
- root: {
40
- borderTop: number;
41
- borderBottom: number;
42
- padding: string;
43
- };
44
- };
45
- };
46
- MuiDialogActions: {
47
- styleOverrides: {
48
- root: {
49
- '& > :not(:first-of-type)': {
50
- marginLeft: string;
51
- };
52
- };
53
- };
54
- };
55
- };
@@ -1,111 +0,0 @@
1
- import { F as s, C as o, M as r, L, I as M, a as i, R as n, B as l, b as p, T as c, P as d, S as u, c as g, d as B, D as F, A as P, e as A, f as T, g as b, h as C, i as y, j as S, k as I, l as R, m as v, n as D, o as H, p as k, q as f, r as x, s as w, t as G, u as E, v as V, w as j, x as N, y as O, z as q, E as z } from "./MUIComponents/index.b3f5b7a7.js";
2
- import { M as U, a as J, b as K, c as Q, d as W, e as X, f as Y, g as Z, h as _, i as $, j as t, k as m, l as e, m as h, n as aa, o as sa, p as oa, q as ra, r as La, s as Ma, t as ia, u as na, v as la, w as pa, x as ca, y as da, z as ua, A as ga, B as Ba, C as Fa, D as Pa, E as Aa, F as Ta, G as ba, H as Ca, I as ya, J as Sa, K as Ia, L as Ra, N as va, O as Da, P as Ha, Q as ka, R as fa, S as xa, T as wa, U as Ga, V as Ea, W as Va, X as ja, Y as Na, Z as Oa, _ as qa } from "./M4LExtendedComponents/index.af978cd0.js";
3
- import { M as za, a as Ua, b as Ja, c as Ka, d as Qa, e as Wa, f as Xa, g as Ya, h as Za } from "./M4LRHFComponents/index.02fada22.js";
4
- function ma(a) {
5
- return Object.assign(
6
- s(a),
7
- o(a),
8
- r(a),
9
- L(a),
10
- M(a),
11
- i(),
12
- n(a),
13
- l(),
14
- p(a),
15
- c(a),
16
- d(a),
17
- u(a),
18
- g(a),
19
- B(a),
20
- F(a),
21
- P(a),
22
- A(a),
23
- T(a),
24
- b(a),
25
- C(a),
26
- y(),
27
- S(),
28
- I(a),
29
- R(a),
30
- v(a),
31
- D(a),
32
- H(a),
33
- k(a),
34
- f(a),
35
- x(a),
36
- w(a),
37
- G(a),
38
- E(a),
39
- V(),
40
- j(a),
41
- N(a),
42
- O(a),
43
- q(a),
44
- U(a),
45
- z(),
46
- J(a),
47
- za(a),
48
- Ua(),
49
- Ja(a),
50
- Ka(),
51
- Qa(a),
52
- K(),
53
- Wa(a),
54
- Xa(),
55
- Q(a),
56
- W(a),
57
- X(),
58
- Y(a),
59
- Z(a),
60
- _(),
61
- $(a),
62
- t(a),
63
- Ya(a),
64
- m(a),
65
- e(a),
66
- h(a),
67
- aa(a),
68
- sa(a),
69
- oa(a),
70
- ra(a),
71
- La(a),
72
- Ma(a),
73
- ia(a),
74
- na(),
75
- la(a),
76
- pa(a),
77
- ca(),
78
- da(a),
79
- ua(a),
80
- ga(a),
81
- Ba(a),
82
- Fa(a),
83
- Pa(a),
84
- Aa(a),
85
- Ta(a),
86
- ba(a),
87
- Ca(a),
88
- ya(),
89
- Sa(a),
90
- Ia(),
91
- Ra(a),
92
- va(),
93
- Da(a),
94
- Ha(a),
95
- ka(a),
96
- fa(a),
97
- xa(a),
98
- wa(),
99
- Za(a),
100
- Ga(a),
101
- Ea(),
102
- Va(a),
103
- ja(a),
104
- Na(a),
105
- Oa(),
106
- qa(a)
107
- );
108
- }
109
- export {
110
- ma as f
111
- };