@m4l/styles 7.1.29-beta.1 → 7.1.29

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/index.js CHANGED
@@ -1,55 +1,63 @@
1
1
  import { D as e, g as s, m as a } from "./config.js";
2
- import { c as p, s as m } from "./theme/shadows.js";
3
- import { f as S } from "./theme/overrides/index.js";
4
- import { B as x } from "./theme/palette/baseColors.js";
5
- import { B as O } from "./theme/palette/baseOpacityColors.js";
2
+ import { c as E, s as S } from "./theme/shadows.js";
3
+ import { f as _ } from "./theme/overrides/index.js";
4
+ import { B as O } from "./theme/palette/baseColors.js";
5
+ import { B as f } from "./theme/palette/baseOpacityColors.js";
6
6
  import { C as P } from "./theme/palette/commonColors.js";
7
- import { G as R } from "./theme/palette/greyPalette.js";
8
- import { p as A } from "./theme/palette/presetColors.js";
9
- import { B as g } from "./theme/typography/baseFontSize.js";
10
- import { B as l } from "./theme/typography/baseLetterSpacing.js";
11
- import { B as L } from "./theme/typography/baseLineHeight.js";
12
- import { B as Y } from "./theme/typography/baseWeight.js";
13
- import { T as u } from "./theme/typography/typography.js";
14
- import { a as H, T as N } from "./theme/typography/typographySizes.js";
15
- import { t as M } from "./theme/typographyOld.js";
16
- import { P as F, a as v } from "./theme/sizes/pointerQr.js";
17
- import { u as U } from "./utils/useResponsive.js";
18
- import { D as w, d as z, g as K } from "./utils/getColorPresets.js";
19
- import { p as b, r as k, a as V } from "./utils/getFontValue.js";
20
- import { g as j } from "./utils/getColorState.js";
21
- import { g as J } from "./utils/getPaletteByPreset.js";
22
- import { g as $ } from "./utils/getUserThemeOptions.js";
7
+ import { G as A } from "./theme/palette/greyPalette.js";
8
+ import { P as C, p as I } from "./theme/palette/presetColors.js";
9
+ import { a as g, B as G } from "./theme/palette/baseChipsPalette.js";
10
+ import { P as l } from "./theme/palette/defaultColors.js";
11
+ import { P as D } from "./theme/palette/semanticColors.js";
12
+ import { B as H } from "./theme/typography/baseFontSize.js";
13
+ import { B as d } from "./theme/typography/baseLetterSpacing.js";
14
+ import { B as M } from "./theme/typography/baseLineHeight.js";
15
+ import { B as F } from "./theme/typography/baseWeight.js";
16
+ import { T as U } from "./theme/typography/typography.js";
17
+ import { a as y, T as K } from "./theme/typography/typographySizes.js";
18
+ import { t as w } from "./theme/typographyOld.js";
19
+ import { P as J, a as Q } from "./theme/sizes/pointerQr.js";
20
+ import { u as k } from "./utils/useResponsive.js";
21
+ import { D as W, d as j, g as q } from "./utils/getColorPresets.js";
22
+ import { p as $, r as oo, a as ro } from "./utils/getFontValue.js";
23
+ import { g as so } from "./utils/getColorState.js";
24
+ import { g as to } from "./utils/getPaletteByPreset.js";
25
+ import { g as So } from "./utils/getUserThemeOptions.js";
23
26
  export {
24
- x as BASE_COLORS,
25
- g as BASE_FONT_SIZE,
26
- l as BASE_LETTER_SPACING,
27
- L as BASE_LINE_HEIGHT,
28
- O as BASE_OPACITY_COLORS,
29
- Y as BASE_WEIGHT,
27
+ O as BASE_COLORS,
28
+ H as BASE_FONT_SIZE,
29
+ d as BASE_LETTER_SPACING,
30
+ M as BASE_LINE_HEIGHT,
31
+ f as BASE_OPACITY_COLORS,
32
+ g as BASE_TAG_OBJECT_COLORS_DARK,
33
+ G as BASE_TAG_OBJECT_COLORS_LIGHT,
34
+ F as BASE_WEIGHT,
30
35
  P as COMMON_COLORS,
31
- w as DEFAULT_PRESET,
36
+ W as DEFAULT_PRESET,
32
37
  e as DEFAULT_SIZE,
33
- R as GREY_PALETTE,
34
- F as POINTER_QR_DESKTOP_SIZES,
35
- v as POINTER_QR_MOBILE_SIZES,
36
- u as TYPOGRAPHY,
37
- H as TYPOGRAPHY_SIZES_DESKTOP,
38
- N as TYPOGRAPHY_SIZES_MOBILE,
39
- p as createCustomShadows,
40
- z as defaultPresetColors,
41
- S as fnComponentsOverrides,
42
- K as getColorPresets,
43
- j as getColorState,
44
- J as getPaletteByPreset,
45
- $ as getUserThemeOptions,
38
+ A as GREY_PALETTE,
39
+ J as POINTER_QR_DESKTOP_SIZES,
40
+ Q as POINTER_QR_MOBILE_SIZES,
41
+ C as PRESET_COLORS,
42
+ l as PRESET_DEFAULT,
43
+ D as PRESET_SEMANTICS_COLORS,
44
+ U as TYPOGRAPHY,
45
+ y as TYPOGRAPHY_SIZES_DESKTOP,
46
+ K as TYPOGRAPHY_SIZES_MOBILE,
47
+ E as createCustomShadows,
48
+ j as defaultPresetColors,
49
+ _ as fnComponentsOverrides,
50
+ q as getColorPresets,
51
+ so as getColorState,
52
+ to as getPaletteByPreset,
53
+ So as getUserThemeOptions,
46
54
  s as globalRemSize,
47
55
  a as muiBreakpointsValues,
48
- A as presetsOptionsMainColor,
49
- b as pxToRem,
50
- k as remToPx,
51
- V as responsiveFontSizes,
52
- m as shadows,
53
- M as typographyOld,
54
- U as useResponsive
56
+ I as presetsOptionsMainColor,
57
+ $ as pxToRem,
58
+ oo as remToPx,
59
+ ro as responsiveFontSizes,
60
+ S as shadows,
61
+ w as typographyOld,
62
+ k as useResponsive
55
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/styles",
3
- "version": "7.1.29-beta.1",
3
+ "version": "7.1.29",
4
4
  "license": "UNLICENSED",
5
5
  "author": "m4l team",
6
6
  "publishConfig": {
@@ -6,7 +6,7 @@ export default function ControlLabel(theme: Omit<Theme, 'palette' | 'applyStyles
6
6
  MuiFormControlLabel: {
7
7
  styleOverrides: {
8
8
  label: {
9
- [x: string]: unknown;
9
+ [k: string]: unknown;
10
10
  '@font-face'?: import('@mui/material/styles/createTypography').Fontface | import('@mui/material/styles/createTypography').Fontface[];
11
11
  accentColor?: import("csstype").Property.AccentColor | undefined;
12
12
  alignContent?: import("csstype").Property.AlignContent | undefined;
@@ -13,7 +13,7 @@ export default function TreeView(theme: Omit<Theme, 'palette' | 'applyStyles'> &
13
13
  MuiTreeItem: {
14
14
  styleOverrides: {
15
15
  label: {
16
- [x: string]: unknown;
16
+ [k: string]: unknown;
17
17
  '@font-face'?: import('@mui/material/styles/createTypography').Fontface | import('@mui/material/styles/createTypography').Fontface[];
18
18
  accentColor?: import("csstype").Property.AccentColor | undefined;
19
19
  alignContent?: import("csstype").Property.AlignContent | undefined;
@@ -12,7 +12,7 @@ const c = {
12
12
  backgroundActive: r.oxford[30],
13
13
  // Comprobado
14
14
  /* Tone */
15
- colorTone: o.oxford[20],
15
+ colorTone: o.oxford[60],
16
16
  // Comprobado
17
17
  backgroundColorTone: o.oxford[40],
18
18
  // Comprobado
@@ -140,7 +140,7 @@ const F = {
140
140
  // Comprobado
141
141
  90: "#27423A",
142
142
  // Comprobado
143
- 95: "#00120B"
143
+ 95: "#233329"
144
144
  // Comprobado
145
145
  },
146
146
  desertBeige: {
@@ -1,26 +1,26 @@
1
- import { alpha as i } from "@mui/material/styles";
1
+ import { alpha as e } from "@mui/material/styles";
2
2
  import { B as a } from "./baseOpacityColors.js";
3
- import { B as e } from "./baseColors.js";
3
+ import { B as i } from "./baseColors.js";
4
4
  const t = {
5
- enabledLight: e.oxford[10],
5
+ enabledLight: i.marbleLight[30],
6
6
  // Comprobado
7
- enabledDark: e.onyx[30],
7
+ enabledDark: i.onyx[30],
8
8
  // Comprobado
9
- hoverLight: e.oxford[20],
9
+ hoverLight: i.oxford[30],
10
10
  // Comprobado
11
- hoverDark: e.onyx[20],
11
+ hoverDark: i.onyx[20],
12
12
  // Comprobado
13
- selectedLight: e.oxford[30],
13
+ selectedLight: i.oxford[30],
14
14
  // Comprobado
15
- selectedDark: e.coolGrey[40],
15
+ selectedDark: i.coolGrey[40],
16
16
  // Comprobado
17
- activeLight: e.oxford[30],
17
+ activeLight: i.oxford[30],
18
18
  // Comprobado
19
- activeDark: e.coolGrey[80],
19
+ activeDark: i.coolGrey[80],
20
20
  // Comprobado
21
- focusLight: e.oxford[40],
21
+ focusLight: i.oxford[40],
22
22
  // Comprobado
23
- focusDark: e.onyx[50],
23
+ focusDark: i.onyx[50],
24
24
  // Comprobado
25
25
  enabledOpacityLight: a.oxford[5],
26
26
  // Comprobado
@@ -30,9 +30,9 @@ const t = {
30
30
  // Comprobado
31
31
  hoverOpacityDark: a.mint[10],
32
32
  // Comprobado
33
- selectedOpacityLight: i("#091E42", 0.2),
33
+ selectedOpacityLight: e("#091E42", 0.2),
34
34
  // Comprobado
35
- selectedOpacityDark: i("#8E9DB4", 0.31),
35
+ selectedOpacityDark: e("#8E9DB4", 0.31),
36
36
  // Comprobado
37
37
  activeOpacityLight: a.oxford[30],
38
38
  // Comprobado
@@ -42,7 +42,7 @@ const t = {
42
42
  // Comprobado
43
43
  focusOpacityDark: a.mint[40],
44
44
  // Comprobado
45
- contrastText: e.onyx[20],
45
+ contrastText: i.onyx[20],
46
46
  // Comprobado
47
47
  mainLight: a.oxford[10],
48
48
  // Comprobado
@@ -57,11 +57,11 @@ const t = {
57
57
  darker: a.mint[50],
58
58
  // Comprobado,
59
59
  // Tone colors
60
- toneOpacityLight: e.marbleLight[30],
60
+ toneOpacityLight: i.marbleLight[30],
61
61
  // Comprobado
62
- toneOpacityDark: e.onyx[30]
62
+ toneOpacityDark: i.onyx[30]
63
63
  // Comprobado
64
- }, h = {
64
+ }, y = {
65
65
  enabled: t.enabledLight,
66
66
  enabledOpacity: t.enabledOpacityLight,
67
67
  hover: t.hoverLight,
@@ -74,12 +74,14 @@ const t = {
74
74
  active: t.activeLight,
75
75
  activeOpacity: t.activeOpacityLight,
76
76
  opacity: t.light,
77
+ opacityGradient1: e(t.light, 0.25),
78
+ opacityGradient2: e(t.light, 0.1),
77
79
  toneOpacity: t.toneOpacityLight,
78
80
  //Por compatibilidad con MUI
79
81
  main: t.mainLight,
80
82
  light: t.light,
81
83
  dark: t.dark
82
- }, y = {
84
+ }, d = {
83
85
  enabled: t.enabledDark,
84
86
  enabledOpacity: t.enabledOpacityDark,
85
87
  hover: t.hoverDark,
@@ -92,6 +94,8 @@ const t = {
92
94
  active: t.activeDark,
93
95
  activeOpacity: t.activeOpacityDark,
94
96
  opacity: t.dark,
97
+ opacityGradient1: e(t.dark, 0.25),
98
+ opacityGradient2: e(t.dark, 0.1),
95
99
  toneOpacity: t.toneOpacityDark,
96
100
  //Por compatibilidad con MUI
97
101
  main: t.mainDark,
@@ -99,6 +103,7 @@ const t = {
99
103
  dark: t.dark
100
104
  };
101
105
  export {
102
- h as B,
106
+ d as B,
107
+ t as P,
103
108
  y as a
104
109
  };
@@ -3,3 +3,7 @@ export { BASE_OPACITY_COLORS } from './baseOpacityColors';
3
3
  export { COMMON_COLORS } from './commonColors';
4
4
  export { GREY_PALETTE } from './greyPalette';
5
5
  export { presetsOptionsMainColor } from './presetColors';
6
+ export { BASE_TAG_OBJECT_COLORS_LIGHT, BASE_TAG_OBJECT_COLORS_DARK } from './baseChipsPalette';
7
+ export { PRESET_DEFAULT } from './defaultColors';
8
+ export { PRESET_SEMANTICS_COLORS } from './semanticColors';
9
+ export { PRESET_COLORS } from './presetColors';
@@ -1,3 +1,4 @@
1
+ import { alpha as i } from "@mui/material";
1
2
  import { B as t } from "./baseColors.js";
2
3
  import { B as e } from "./baseOpacityColors.js";
3
4
  const a = {
@@ -68,7 +69,7 @@ const a = {
68
69
  toneOpacityDark: t.patronusBlue[95],
69
70
  // comprobado,
70
71
  // border
71
- borderMainLight: e.patronus[40],
72
+ borderMainLight: e.patronus[50],
72
73
  // comprobado,
73
74
  borderMainDark: e.patronus[40]
74
75
  // comprobado,
@@ -140,7 +141,7 @@ const a = {
140
141
  toneOpacityDark: t.grassGreen[95],
141
142
  // comprobado,
142
143
  // border
143
- borderMainLight: e.grass[40],
144
+ borderMainLight: e.grass[50],
144
145
  // comprobado,
145
146
  borderMainDark: e.grass[40]
146
147
  // comprobado,
@@ -212,7 +213,7 @@ const a = {
212
213
  toneOpacityDark: t.turquiBlue[95],
213
214
  // comprobado,
214
215
  // border
215
- borderMainLight: e.turqui[40],
216
+ borderMainLight: e.turqui[50],
216
217
  // comprobado,
217
218
  borderMainDark: e.turqui[40]
218
219
  // comprobado,
@@ -356,12 +357,12 @@ const a = {
356
357
  toneOpacityDark: t.blazeOrange[95],
357
358
  // comprobado,
358
359
  // border
359
- borderMainLight: e.blaze[40],
360
+ borderMainLight: e.blaze[50],
360
361
  // comprobado,
361
362
  borderMainDark: e.blaze[40]
362
363
  // comprobado,
363
364
  }
364
- }, o = {
365
+ }, u = {
365
366
  patronus: {
366
367
  enabled: a.patronus.enabledLight,
367
368
  enabledOpacity: a.patronus.enabledOpacityLight,
@@ -375,6 +376,8 @@ const a = {
375
376
  active: a.patronus.activeLight,
376
377
  activeOpacity: a.patronus.activeOpacityLight,
377
378
  opacity: a.patronus.opacityLight,
379
+ opacityGradient1: i(a.patronus.opacityLight, 0.25),
380
+ opacityGradient2: i(a.patronus.opacityLight, 0.1),
378
381
  toneOpacity: a.patronus.toneOpacityLight,
379
382
  contrastText: a.patronus.contrastText,
380
383
  semanticText: a.patronus.semanticTextLight,
@@ -396,6 +399,8 @@ const a = {
396
399
  active: a.blaze.activeLight,
397
400
  activeOpacity: a.blaze.activeOpacityLight,
398
401
  opacity: a.blaze.opacityLight,
402
+ opacityGradient1: i(a.blaze.opacityLight, 0.25),
403
+ opacityGradient2: i(a.blaze.opacityLight, 0.1),
399
404
  toneOpacity: a.blaze.toneOpacityLight,
400
405
  contrastText: a.blaze.contrastText,
401
406
  semanticText: a.blaze.semanticTextLight,
@@ -417,6 +422,8 @@ const a = {
417
422
  active: a.brown.activeLight,
418
423
  activeOpacity: a.brown.activeOpacityLight,
419
424
  opacity: a.brown.opacityLight,
425
+ opacityGradient1: i(a.brown.opacityLight, 0.25),
426
+ opacityGradient2: i(a.brown.opacityLight, 0.1),
420
427
  toneOpacity: a.brown.toneOpacityLight,
421
428
  contrastText: a.brown.contrastText,
422
429
  semanticText: a.brown.semanticTextLight,
@@ -438,6 +445,8 @@ const a = {
438
445
  active: a.grass.activeLight,
439
446
  activeOpacity: a.grass.activeOpacityLight,
440
447
  opacity: a.grass.opacityLight,
448
+ opacityGradient1: i(a.grass.opacityLight, 0.25),
449
+ opacityGradient2: i(a.grass.opacityLight, 0.1),
441
450
  toneOpacity: a.grass.toneOpacityLight,
442
451
  contrastText: a.grass.contrastText,
443
452
  semanticText: a.grass.semanticTextLight,
@@ -459,6 +468,8 @@ const a = {
459
468
  active: a.turqui.activeLight,
460
469
  activeOpacity: a.turqui.activeOpacityLight,
461
470
  opacity: a.turqui.opacityLight,
471
+ opacityGradient1: i(a.turqui.opacityLight, 0.25),
472
+ opacityGradient2: i(a.turqui.opacityLight, 0.1),
462
473
  toneOpacity: a.turqui.toneOpacityLight,
463
474
  contrastText: a.turqui.contrastText,
464
475
  semanticText: a.turqui.semanticTextLight,
@@ -467,7 +478,7 @@ const a = {
467
478
  light: a.turqui.light,
468
479
  dark: a.turqui.dark
469
480
  }
470
- }, n = {
481
+ }, p = {
471
482
  patronus: {
472
483
  enabled: a.patronus.enabledDark,
473
484
  enabledOpacity: a.patronus.enabledOpacityDark,
@@ -481,6 +492,8 @@ const a = {
481
492
  active: a.patronus.activeDark,
482
493
  activeOpacity: a.patronus.activeOpacityDark,
483
494
  opacity: a.patronus.opacityDark,
495
+ opacityGradient1: i(a.patronus.opacityDark, 0.25),
496
+ opacityGradient2: i(a.patronus.opacityDark, 0.1),
484
497
  toneOpacity: a.patronus.toneOpacityDark,
485
498
  contrastText: a.patronus.contrastText,
486
499
  semanticText: a.patronus.semanticTextDark,
@@ -502,6 +515,8 @@ const a = {
502
515
  active: a.blaze.activeDark,
503
516
  activeOpacity: a.blaze.activeOpacityDark,
504
517
  opacity: a.blaze.opacityDark,
518
+ opacityGradient1: i(a.blaze.opacityDark, 0.25),
519
+ opacityGradient2: i(a.blaze.opacityDark, 0.1),
505
520
  toneOpacity: a.blaze.toneOpacityDark,
506
521
  contrastText: a.blaze.contrastText,
507
522
  semanticText: a.blaze.semanticTextDark,
@@ -523,6 +538,8 @@ const a = {
523
538
  active: a.brown.activeDark,
524
539
  activeOpacity: a.brown.activeOpacityDark,
525
540
  opacity: a.brown.opacityDark,
541
+ opacityGradient1: i(a.brown.opacityDark, 0.25),
542
+ opacityGradient2: i(a.brown.opacityDark, 0.1),
526
543
  toneOpacity: a.brown.toneOpacityDark,
527
544
  contrastText: a.brown.contrastText,
528
545
  semanticText: a.brown.semanticTextDark,
@@ -544,6 +561,8 @@ const a = {
544
561
  active: a.grass.activeDark,
545
562
  activeOpacity: a.grass.activeOpacityDark,
546
563
  opacity: a.grass.opacityDark,
564
+ opacityGradient1: i(a.grass.opacityDark, 0.25),
565
+ opacityGradient2: i(a.grass.opacityDark, 0.1),
547
566
  toneOpacity: a.grass.toneOpacityDark,
548
567
  contrastText: a.grass.contrastText,
549
568
  semanticText: a.grass.semanticTextDark,
@@ -565,6 +584,8 @@ const a = {
565
584
  active: a.turqui.activeDark,
566
585
  activeOpacity: a.turqui.activeOpacityDark,
567
586
  opacity: a.turqui.opacityDark,
587
+ opacityGradient1: i(a.turqui.opacityDark, 0.25),
588
+ opacityGradient2: i(a.turqui.opacityDark, 0.1),
568
589
  toneOpacity: a.turqui.toneOpacityDark,
569
590
  contrastText: a.turqui.contrastText,
570
591
  semanticText: a.turqui.semanticTextDark,
@@ -573,13 +594,13 @@ const a = {
573
594
  light: a.turqui.light,
574
595
  dark: a.turqui.dark
575
596
  }
576
- }, i = Object.keys(a), u = i.map((r) => ({
597
+ }, c = Object.keys(a), l = c.map((r) => ({
577
598
  name: r,
578
599
  value: a[r].main
579
600
  }));
580
601
  export {
581
602
  a as P,
582
- o as a,
583
- n as b,
584
- u as p
603
+ p as a,
604
+ u as b,
605
+ l as p
585
606
  };