@m4l/styles 3.1.4 → 3.1.5

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,24 +1,26 @@
1
1
  import { D as o, g as a, m as r } from "./config-B8bZIPuH.js";
2
2
  import { d as p } from "./theme/defaultThemeOptions-BlJvKCE6.js";
3
- import { c as f, s as O } from "./theme/shadows-GTYqExFA.js";
4
- import { t as n } from "./theme/typography-BsOO459U.js";
5
- import { f as E } from "./theme/overrides/index-DrDgOdnk.js";
6
- import { B as g, a as i, C as l, G as T, g as u, p as P } from "./theme/palette-DM0gXxA2.js";
3
+ import { c as f, s as x } from "./theme/shadows-GTYqExFA.js";
4
+ import { t as g } from "./theme/typography-BsOO459U.js";
5
+ import { f as S } from "./theme/overrides/index-DrDgOdnk.js";
6
+ import { B as n, a as E, C as i, G as T, g as u, p as P } from "./theme/palette-DM0gXxA2.js";
7
7
  import { u as d } from "./utils/useResponsive-DaeQVwlH.js";
8
8
  import { D as A, d as L, g as B } from "./utils/getColorPresets-CXZaM9oS.js";
9
9
  import { g as D, p as F, a as v, r as y } from "./utils/getFontValue-BEO-XID9.js";
10
+ import { g as w } from "./utils/getColorState-BpWbEUBV.js";
10
11
  export {
11
- g as BASE_COLORS,
12
- i as BASE_OPACITY_COLORS,
13
- l as COMMON_COLORS,
12
+ n as BASE_COLORS,
13
+ E as BASE_OPACITY_COLORS,
14
+ i as COMMON_COLORS,
14
15
  A as DEFAULT_PRESET,
15
16
  o as DEFAULT_SIZE,
16
17
  T as GREY_PALETTE,
17
18
  f as createCustomShadows,
18
19
  L as defaultPresetColors,
19
20
  p as defaultThemeOptions,
20
- E as fnComponentsOverrides,
21
+ S as fnComponentsOverrides,
21
22
  B as getColorPresets,
23
+ w as getColorState,
22
24
  D as getFontValue,
23
25
  u as getPaletteByPreset,
24
26
  a as globalRemSize,
@@ -27,7 +29,7 @@ export {
27
29
  F as pxToRem,
28
30
  v as remToPx,
29
31
  y as responsiveFontSizes,
30
- O as shadows,
31
- n as typography,
32
+ x as shadows,
33
+ g as typography,
32
34
  d as useResponsive
33
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/styles",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "license": "UNLICENSED",
5
5
  "author": "m4l team",
6
6
  "dependencies": {
package/types/types.d.ts CHANGED
@@ -54,3 +54,5 @@ export declare type PresetsOptions = Array<{
54
54
  name: string | undefined;
55
55
  value: string;
56
56
  }>;
57
+ export declare type ColorState = 'warning' | 'delete' | 'info' | 'success';
58
+ export declare type SystemColor = `#${string}` | `rgb(${number},${number},${number})` | `rgba(${number},${number},${number},${number})` | `hsl(${number},${number}%,${number}%)` | `hsla(${number},${number}%,${number}%,${number})`;
@@ -0,0 +1,10 @@
1
+ import { B as e } from "../theme/palette-DM0gXxA2.js";
2
+ const s = {
3
+ warning: e.middleYellow[60],
4
+ delete: e.flameRed[40],
5
+ info: e.crayonBlue[50],
6
+ success: e.acidGreen[60]
7
+ }, r = (n) => ["warning", "delete", "info", "success"].includes(n) ? s[n] : n;
8
+ export {
9
+ r as g
10
+ };
@@ -0,0 +1,2 @@
1
+ import { ColorState, SystemColor } from 'src/types';
2
+ export declare const getColorState: (color: ColorState | SystemColor) => string;
package/utils/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { useResponsive } from './useResponsive';
2
2
  export * from './getColorPresets';
3
3
  export * from './getFontValue';
4
+ export * from './getColorState';