@m4l/styles 1.0.9 → 2.0.1

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,5 +1,5 @@
1
1
  import { Theme, CssVarsTheme } from '@mui/material/styles';
2
- export declare const M4LRHFAutocomplete: (theme: Omit<Theme, "palette" | "applyStyles"> & CssVarsTheme) => {
2
+ export declare const M4LRHFAutocomplete: (theme: Omit<Theme, 'palette' | 'applyStyles'> & CssVarsTheme) => {
3
3
  M4LRHFAutocomplete: {
4
4
  styleOverrides: {
5
5
  '&.M4LRHFAutocomplete-root': {
@@ -47,6 +47,14 @@ export declare const M4LRHFAutocomplete: (theme: Omit<Theme, "palette" | "applyS
47
47
  height: string;
48
48
  padding: string;
49
49
  };
50
+ '& .M4LRHFAutocomplete-containerRefreshDown': {
51
+ display: string;
52
+ width: string;
53
+ '& .M4LRHFAutocomplete-iconLeft': {
54
+ borderLeft: string;
55
+ borderColor: string;
56
+ };
57
+ };
50
58
  '& .M4LRHFAutocomplete-iconDown': {};
51
59
  '& .MuiOutlinedInput-notchedOutline': {
52
60
  inset: string;
@@ -1,6 +1,6 @@
1
1
  import { alpha as o } from "@mui/system";
2
2
  import { alpha as e } from "@mui/material/styles";
3
- const r = (t) => ({
3
+ const a = (t) => ({
4
4
  M4LRHFTextFieldPassword: {
5
5
  styleOverrides: {
6
6
  "&.M4LRHFTextFieldPassword-root": {
@@ -286,6 +286,14 @@ const r = (t) => ({
286
286
  padding: "0 16px 0 8px",
287
287
  ...t.colorSchemes.finalTheme.typography.body
288
288
  },
289
+ "& .M4LRHFAutocomplete-containerRefreshDown": {
290
+ display: "flex",
291
+ width: "auto",
292
+ "& .M4LRHFAutocomplete-iconLeft": {
293
+ borderLeft: "1px solid",
294
+ borderColor: t.vars.palette.state.borderPrimary
295
+ }
296
+ },
289
297
  "& .M4LRHFAutocomplete-iconDown": {},
290
298
  "& .MuiOutlinedInput-notchedOutline": {
291
299
  inset: "0",
@@ -339,7 +347,10 @@ const r = (t) => ({
339
347
  },
340
348
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
341
349
  borderColor: t.vars.palette.state?.hover,
342
- boxShadow: `0px 1px 8px ${e(t.colorSchemes.finalTheme.palette.primary.main, 0.32)}`
350
+ boxShadow: `0px 1px 8px ${e(
351
+ t.colorSchemes.finalTheme.palette.primary.main,
352
+ 0.32
353
+ )}`
343
354
  },
344
355
  "& .MuiInputBase-input": {
345
356
  color: t.vars.palette.text.primary
@@ -357,7 +368,10 @@ const r = (t) => ({
357
368
  background: t.vars.palette.state.active12,
358
369
  border: "2px solid",
359
370
  borderColor: t.vars.palette.state?.active,
360
- boxShadow: `0px 1px 8px ${e(t.colorSchemes.finalTheme.palette.primary.main, 0.32)}`
371
+ boxShadow: `0px 1px 8px ${e(
372
+ t.colorSchemes.finalTheme.palette.primary.main,
373
+ 0.32
374
+ )}`
361
375
  },
362
376
  "& .MuiInputBase-input": {
363
377
  color: t.vars.palette.text.primary
@@ -1052,7 +1066,7 @@ const r = (t) => ({
1052
1066
  });
1053
1067
  export {
1054
1068
  l as M,
1055
- r as a,
1069
+ a,
1056
1070
  p as b,
1057
1071
  s as c,
1058
1072
  d,
@@ -1,7 +1,7 @@
1
- import { F as s, C as o, M as r, L, I as M, a as n, R as i, B as p, b as l, T as c, P as d, S as u, c as g, d as B, A as F, e as P, D as T, f as A, g as b, h as C, i as S, j as y, k as I, l as R, m as v, n as H, o as k, p as D, q as f, r as x, s as w, t as G, u as V, v as j, w as E, x as N, y as O, z as q } from "./MUIComponents/index.5c43e3b5.js";
2
- import { M as z, a as U, b as J, c as K, d as Q, e as W, f as X, g as Y, h as Z } from "./M4LRHFComponents/index.3599b255.js";
3
- import { M as _, a as $, b as t, c as m, d as e, e as h, f as aa, g as sa, h as oa, i as ra, j as La, k as Ma, l as na, m as ia, n as pa, o as la, p as ca, q as da, r as ua, s as ga, t as Ba, u as Fa, v as Pa, w as Ta, x as Aa, y as ba, z as Ca, A as Sa, B as ya, C as Ia, D as Ra, E as va, F as Ha, G as ka, H as Da, I as fa, J as xa, K as wa, L as Ga, N as Va, O as ja, P as Ea, Q as Na, R as Oa, S as qa, T as za, U as Ua, V as Ja, W as Ka, X as Qa, Y as Wa, Z as Xa, _ as Ya, $ as Za } from "./M4LExtendedComponents/index.a1f65f10.js";
4
- function ma(a) {
1
+ import { F as s, C as o, M as r, L, I as M, a as n, R as i, B as p, b as l, T as c, P as d, S as u, c as g, d as B, A as F, e as P, D as A, f as T, g as b, h as C, i as S, j as y, k as I, l as R, m as v, n as H, o as k, p as D, q as f, r as x, s as w, t as G, u as V, v as j, w as E, x as N, y as O, z as q } from "./MUIComponents/index.5c43e3b5.js";
2
+ import { M as z, a as U, b as J, c as K, d as Q, e as W, f as X, g as Y, h as Z } from "./M4LRHFComponents/index.a4e93e8e.js";
3
+ import { M as _, a as $, b as t, c as m, d as e, e as h, f as aa, g as sa, h as oa, i as ra, j as La, k as Ma, l as na, m as ia, n as pa, o as la, p as ca, q as da, r as ua, s as ga, t as Ba, u as Fa, v as Pa, w as Aa, x as Ta, y as ba, z as Ca, A as Sa, B as ya, C as Ia, D as Ra, E as va, F as Ha, G as ka, H as Da, I as fa, J as xa, K as wa, L as Ga, N as Va, O as ja, P as Ea, Q as Na, R as Oa, S as qa, T as za, U as Ua, V as Ja, W as Ka, X as Qa, Y as Wa, Z as Xa, _ as Ya } from "./M4LExtendedComponents/index.79301515.js";
4
+ function ta(a) {
5
5
  return Object.assign(
6
6
  s(a),
7
7
  o(a),
@@ -19,8 +19,8 @@ function ma(a) {
19
19
  B(a),
20
20
  F(a),
21
21
  P(a),
22
- T(a),
23
22
  A(a),
23
+ T(a),
24
24
  b(a),
25
25
  C(),
26
26
  S(),
@@ -72,8 +72,8 @@ function ma(a) {
72
72
  Ba(),
73
73
  Fa(a),
74
74
  Pa(a),
75
- Ta(),
76
- Aa(a),
75
+ Aa(),
76
+ Ta(a),
77
77
  ba(a),
78
78
  Ca(a),
79
79
  Sa(a),
@@ -95,17 +95,16 @@ function ma(a) {
95
95
  Oa(a),
96
96
  qa(),
97
97
  Z(a),
98
- za(a),
99
- Ua(),
98
+ za(),
99
+ Ua(a),
100
100
  Ja(a),
101
101
  Ka(a),
102
- Qa(a),
103
- Wa(),
104
- Xa(a),
105
- Ya(),
106
- Za(a)
102
+ Qa(),
103
+ Wa(a),
104
+ Xa(),
105
+ Ya(a)
107
106
  );
108
107
  }
109
108
  export {
110
- ma as f
109
+ ta as f
111
110
  };
@@ -1,6 +1,13 @@
1
1
  import { createTheme as i } from "@mui/material";
2
- import { r as e, p as t } from "../utils/getFontValue.88831637.js";
3
- const n = "Segoe UI, Poppins, sans-serif", g = i(), l = {
2
+ import "@mui/material/styles";
3
+ import "@mui/material/useMediaQuery";
4
+ import "../utils/getColorPresets.a96a4046.js";
5
+ import "@mui/system";
6
+ import "./defaultThemeOptions.d580f3ec.js";
7
+ import "./shadows.e0c009ff.js";
8
+ import "./palette.287635f2.js";
9
+ import { r as t, p as e } from "../utils/getFontValue.88831637.js";
10
+ const n = "Segoe UI, Poppins, sans-serif", g = i(), W = {
4
11
  ...g.typography,
5
12
  fontFamily: n,
6
13
  fontWeightRegular: 400,
@@ -9,116 +16,116 @@ const n = "Segoe UI, Poppins, sans-serif", g = i(), l = {
9
16
  h1: {
10
17
  fontWeight: 600,
11
18
  lineHeight: 1.5,
12
- ...e({ sm: 38, md: 38, lg: 38 })
19
+ ...t({ sm: 38, md: 38, lg: 38 })
13
20
  },
14
21
  h2: {
15
22
  fontWeight: 600,
16
23
  lineHeight: 1,
17
- ...e({ sm: 40, md: 40, lg: 40 })
24
+ ...t({ sm: 40, md: 40, lg: 40 })
18
25
  },
19
26
  h3: {
20
27
  fontWeight: 600,
21
28
  lineHeight: 1.5,
22
- ...e({ sm: 30, md: 30, lg: 30 })
29
+ ...t({ sm: 30, md: 30, lg: 30 })
23
30
  },
24
31
  h4: {
25
32
  fontWeight: 600,
26
33
  lineHeight: 1.5,
27
- ...e({ sm: 20, md: 20, lg: 20 })
34
+ ...t({ sm: 20, md: 20, lg: 20 })
28
35
  },
29
36
  h5: {
30
37
  fontWeight: 500,
31
38
  lineHeight: "28px",
32
39
  letterSpacing: "-0.01em",
33
- ...e({ sm: 22, md: 22, lg: 22 })
40
+ ...t({ sm: 22, md: 22, lg: 22 })
34
41
  },
35
42
  h6: {
36
43
  fontWeight: 500,
37
44
  lineHeight: "24px",
38
45
  letterSpacing: "-0.08em",
39
- ...e({ sm: 18, md: 18, lg: 18 })
46
+ ...t({ sm: 18, md: 18, lg: 18 })
40
47
  },
41
48
  subtitle: {
42
49
  fontWeight: 400,
43
50
  lineHeight: "20px",
44
51
  letterSpacing: "-0.006em",
45
- ...e({ sm: 15, md: 15, lg: 15 })
52
+ ...t({ sm: 15, md: 15, lg: 15 })
46
53
  },
47
54
  subtitleDens: {
48
55
  fontWeight: 600,
49
56
  lineHeight: "24px",
50
57
  letterSpacing: "-0.006em",
51
- ...e({ sm: 15, md: 15, lg: 15 })
58
+ ...t({ sm: 15, md: 15, lg: 15 })
52
59
  },
53
60
  paragraph: {
54
61
  fontWeight: 400,
55
62
  lineHeight: "16px",
56
63
  letterSpacing: "-0.003em",
57
- ...e({ sm: 13, md: 13, lg: 13 })
64
+ ...t({ sm: 13, md: 13, lg: 13 })
58
65
  },
59
66
  paragraphDens: {
60
67
  fontWeight: 600,
61
68
  lineHeight: "20px",
62
69
  letterSpacing: "-0.003em",
63
- ...e({ sm: 13, md: 13, lg: 13 })
70
+ ...t({ sm: 13, md: 13, lg: 13 })
64
71
  },
65
72
  subtitle1: {
66
73
  fontWeight: 600,
67
74
  lineHeight: 1.5,
68
- fontSize: t(14)
75
+ fontSize: e(14)
69
76
  },
70
77
  subtitle2: {
71
78
  fontWeight: 600,
72
79
  lineHeight: 1.5,
73
- fontSize: t(12)
80
+ fontSize: e(12)
74
81
  },
75
82
  body: {
76
83
  fontWeight: 400,
77
84
  lineHeight: "16px",
78
- ...e({ sm: 11, md: 11, lg: 11 })
85
+ ...t({ sm: 11, md: 11, lg: 11 })
79
86
  },
80
87
  bodyDens: {
81
88
  fontWeight: 600,
82
89
  lineHeight: "16px",
83
- ...e({ sm: 11, md: 11, lg: 11 })
90
+ ...t({ sm: 11, md: 11, lg: 11 })
84
91
  },
85
92
  body0: {
86
93
  lineHeight: 1.5,
87
94
  fontWeight: 400,
88
- fontSize: t(16)
95
+ fontSize: e(16)
89
96
  },
90
97
  body1: {
91
98
  lineHeight: 1.5,
92
99
  fontWeight: 400,
93
- fontSize: t(14)
100
+ fontSize: e(14)
94
101
  },
95
102
  body2: {
96
103
  lineHeight: 1.5,
97
104
  fontWeight: 400,
98
- fontSize: t(12)
105
+ fontSize: e(12)
99
106
  },
100
107
  caption: {
101
108
  lineHeight: 1.5,
102
- fontSize: t(11)
109
+ fontSize: e(11)
103
110
  },
104
111
  overline: {
105
112
  fontWeight: 700,
106
113
  lineHeight: 1.5,
107
- fontSize: t(12),
114
+ fontSize: e(12),
108
115
  textTransform: "uppercase"
109
116
  },
110
117
  button: {
111
118
  fontWeight: 700,
112
119
  lineHeight: 24 / 14,
113
- fontSize: t(14),
120
+ fontSize: e(14),
114
121
  textTransform: "capitalize"
115
122
  },
116
123
  action: {
117
124
  fontWeight: 600,
118
125
  lineHeight: "16px",
119
- ...e({ sm: 12, md: 12, lg: 12 })
126
+ ...t({ sm: 12, md: 12, lg: 12 })
120
127
  }
121
128
  };
122
129
  export {
123
- l as t
130
+ W as t
124
131
  };
@@ -1,137 +1,137 @@
1
- import {
2
- PatronusConstantColors,
3
- PatronusOpacityColors,
4
- PatronusOpacityOptions,
5
- } from '../theme/palette';
6
- import { ColorStateOptions, CustomShadowOptions } from '../theme';
7
- import { ChartPaletteOptions, GradientsPaletteOptions, GridPaletteOptions } from './types';
8
- import { Breakpoints } from '@mui/material';
9
- import { CssVarsTheme } from '@mui/material/styles';
10
-
11
- declare module '@mui/material' {
12
- interface Color {
13
- 0: string;
14
- 500_8: string;
15
- 500_12: string;
16
- 500_16: string;
17
- 500_24: string;
18
- 500_32: string;
19
- 500_48: string;
20
- 500_56: string;
21
- 500_80: string;
22
- }
23
- }
24
-
25
- declare module '@mui/material/styles/createPalette' {}
26
-
27
- // declare module '@mui/core/Typography' {
28
- // interface TypographyProps {
29
- // variant?: 'subtitle';
30
- // }
31
- // }
32
-
33
- declare module '@mui/material/styles' {
34
- interface SimplePaletteColorOptions {
35
- lighter?: string;
36
- darker?: string;
37
- LightSelected?: string;
38
- LightSelectedHover?: string;
39
- DarkSelected?: string;
40
- DarkSelectedHover?: string;
41
- }
42
- interface PaletteColor {
43
- lighter?: string;
44
- darker?: string;
45
- LightSelected?: string;
46
- LightSelectedHover?: string;
47
- DarkSelected?: string;
48
- DarkSelectedHover?: string;
49
- opacity?: string;
50
- name?: string;
51
- }
52
- interface Palette {
53
- gradients?: GradientsPaletteOptions;
54
- chart: ChartPaletteOptions;
55
- grid?: GridPaletteOptions;
56
- patronus?: PatronusConstantColors;
57
- opacity: Record<PatronusOpacityColors, PatronusOpacityOptions>;
58
- state: ColorStateOptions /* Organizar cada caso con los valores específicos. */;
59
- representative: string;
60
- mode: 'light' | 'dark';
61
- /* info: AgumentationInfoOptions; */
62
- }
63
-
64
- interface TypeText {
65
- bgPrimary: string;
66
- }
67
- interface PaletteOptions {
68
- gradients?: GradientsPaletteOptions;
69
- chart?: ChartPaletteOptions;
70
- grid?: GridPaletteOptions;
71
- patronus?: PatronusConstantColors;
72
- opacity: Record<PatronusOpacityColors, PatronusOpacityOptions>;
73
- state: ColorStateOptions /* Organizar cada caso con los valores específicos. */;
74
- representative: string;
75
- mode: 'light' | 'dark';
76
- }
77
-
78
- interface ColorSchemeOverrides {
79
- finalTheme?: true;
80
- }
81
-
82
- interface Theme extends CssVarsTheme {
83
- stretch: boolean;
84
- customShadows: CustomShadowOptions;
85
- breakpoints: Breakpoints;
86
- }
87
-
88
- interface ThemeVars {
89
- customShadows: CustomShadowOptions;
90
- }
91
-
92
- interface ColorSystem {
93
- typography: TypographyVariants;
94
- }
95
-
96
- interface TypeBackground {
97
- neutral: string;
98
- autofill: string;
99
- header: string;
100
- background: string;
101
- }
102
- }
103
-
104
- declare module '@mui/material/styles' {
105
- interface TypographyVariants {
106
- subtitle: Record<string, any>;
107
- subtitleDens: Record<string, any>;
108
- paragraph: Record<string, any>;
109
- paragraphDens: Record<string, any>;
110
- body: Record<string, any>;
111
- bodyDens: Record<string, any>;
112
- action: Record<string, any>;
113
- }
114
-
115
- // allow configuration using `createTheme`
116
- interface TypographyVariantsOptions {
117
- subtitle: React.CSSProperties;
118
- subtitleDens: React.CSSProperties;
119
- paragraph: React.CSSProperties;
120
- paragraphDens: React.CSSProperties;
121
- body: React.CSSProperties;
122
- bodyDens: React.CSSProperties;
123
- action: React.CSSProperties;
124
- }
125
- }
126
-
127
- declare module '@mui/material/Typography' {
128
- interface TypographyPropsVariantOverrides {
129
- subtitle: true;
130
- subtitleDens: true;
131
- paragraph: true;
132
- paragraphDens: true;
133
- body: true;
134
- bodyDens: true;
135
- action: true;
136
- }
137
- }
1
+ import {
2
+ PatronusConstantColors,
3
+ PatronusOpacityColors,
4
+ PatronusOpacityOptions,
5
+ } from '../theme/palette';
6
+ import { ColorStateOptions, CustomShadowOptions } from '../theme';
7
+ import { ChartPaletteOptions, GradientsPaletteOptions, GridPaletteOptions } from './types';
8
+ import { Breakpoints } from '@mui/material';
9
+ import { CssVarsTheme } from '@mui/material/styles';
10
+
11
+ declare module '@mui/material' {
12
+ interface Color {
13
+ 0: string;
14
+ 500_8: string;
15
+ 500_12: string;
16
+ 500_16: string;
17
+ 500_24: string;
18
+ 500_32: string;
19
+ 500_48: string;
20
+ 500_56: string;
21
+ 500_80: string;
22
+ }
23
+ }
24
+
25
+ declare module '@mui/material/styles/createPalette' {}
26
+
27
+ // declare module '@mui/core/Typography' {
28
+ // interface TypographyProps {
29
+ // variant?: 'subtitle';
30
+ // }
31
+ // }
32
+
33
+ declare module '@mui/material/styles' {
34
+ interface SimplePaletteColorOptions {
35
+ lighter?: string;
36
+ darker?: string;
37
+ LightSelected?: string;
38
+ LightSelectedHover?: string;
39
+ DarkSelected?: string;
40
+ DarkSelectedHover?: string;
41
+ }
42
+ interface PaletteColor {
43
+ lighter?: string;
44
+ darker?: string;
45
+ LightSelected?: string;
46
+ LightSelectedHover?: string;
47
+ DarkSelected?: string;
48
+ DarkSelectedHover?: string;
49
+ opacity?: string;
50
+ name?: string;
51
+ }
52
+ interface Palette {
53
+ gradients?: GradientsPaletteOptions;
54
+ chart: ChartPaletteOptions;
55
+ grid?: GridPaletteOptions;
56
+ patronus?: PatronusConstantColors;
57
+ opacity: Record<PatronusOpacityColors, PatronusOpacityOptions>;
58
+ state: ColorStateOptions /* Organizar cada caso con los valores específicos. */;
59
+ representative: string;
60
+ mode: 'light' | 'dark';
61
+ /* info: AgumentationInfoOptions; */
62
+ }
63
+
64
+ interface TypeText {
65
+ bgPrimary: string;
66
+ }
67
+ interface PaletteOptions {
68
+ gradients?: GradientsPaletteOptions;
69
+ chart?: ChartPaletteOptions;
70
+ grid?: GridPaletteOptions;
71
+ patronus?: PatronusConstantColors;
72
+ opacity: Record<PatronusOpacityColors, PatronusOpacityOptions>;
73
+ state: ColorStateOptions /* Organizar cada caso con los valores específicos. */;
74
+ representative: string;
75
+ mode: 'light' | 'dark';
76
+ }
77
+
78
+ interface ColorSchemeOverrides {
79
+ finalTheme?: true;
80
+ }
81
+
82
+ interface Theme extends CssVarsTheme {
83
+ stretch: boolean;
84
+ customShadows: CustomShadowOptions;
85
+ breakpoints: Breakpoints;
86
+ }
87
+
88
+ interface ThemeVars {
89
+ customShadows: CustomShadowOptions;
90
+ }
91
+
92
+ interface ColorSystem {
93
+ typography: TypographyVariants;
94
+ }
95
+
96
+ interface TypeBackground {
97
+ neutral: string;
98
+ autofill: string;
99
+ header: string;
100
+ background: string;
101
+ }
102
+ }
103
+
104
+ declare module '@mui/material/styles' {
105
+ interface TypographyVariants {
106
+ subtitle: Record<string, any>;
107
+ subtitleDens: Record<string, any>;
108
+ paragraph: Record<string, any>;
109
+ paragraphDens: Record<string, any>;
110
+ body: Record<string, any>;
111
+ bodyDens: Record<string, any>;
112
+ action: Record<string, any>;
113
+ }
114
+
115
+ // allow configuration using `createTheme`
116
+ interface TypographyVariantsOptions {
117
+ subtitle: React.CSSProperties;
118
+ subtitleDens: React.CSSProperties;
119
+ paragraph: React.CSSProperties;
120
+ paragraphDens: React.CSSProperties;
121
+ body: React.CSSProperties;
122
+ bodyDens: React.CSSProperties;
123
+ action: React.CSSProperties;
124
+ }
125
+ }
126
+
127
+ declare module '@mui/material/Typography' {
128
+ interface TypographyPropsVariantOverrides {
129
+ subtitle: true;
130
+ subtitleDens: true;
131
+ paragraph: true;
132
+ paragraphDens: true;
133
+ body: true;
134
+ bodyDens: true;
135
+ action: true;
136
+ }
137
+ }
@@ -1,8 +1,13 @@
1
1
  import { alpha as a } from "@mui/system";
2
+ import "../theme/defaultThemeOptions.d580f3ec.js";
3
+ import "../theme/shadows.e0c009ff.js";
2
4
  import { P as e, O as r, S as o } from "../theme/palette.287635f2.js";
3
- const u = (l, d) => {
5
+ import "../theme/typography.947dc33f.js";
6
+ import "@mui/material";
7
+ import "@mui/material/styles";
8
+ const m = (i, l) => {
4
9
  let t = {};
5
- switch (l) {
10
+ switch (i) {
6
11
  case "patronus":
7
12
  t = {
8
13
  light: {
@@ -244,8 +249,8 @@ const u = (l, d) => {
244
249
  };
245
250
  break;
246
251
  }
247
- return d === "light" ? { ...t.light } : { ...t.dark };
252
+ return l === "light" ? { ...t.light } : { ...t.dark };
248
253
  };
249
254
  export {
250
- u as g
255
+ m as g
251
256
  };
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 +0,0 @@
1
-