@m4l/styles 3.1.6 → 3.2.0
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
|
@@ -7,7 +7,7 @@ import { B as n, a as E, C as i, G as T, g as u, p as P } from "./theme/palette-
|
|
|
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-
|
|
10
|
+
import { g as w } from "./utils/getColorState-D1JKXD4T.js";
|
|
11
11
|
export {
|
|
12
12
|
n as BASE_COLORS,
|
|
13
13
|
E as BASE_OPACITY_COLORS,
|
package/package.json
CHANGED
package/types/types.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare type Sizes = 'small' | 'medium' | 'large';
|
|
|
6
6
|
export declare type ThemeColorPresets = 'patronus' | 'turqui' | 'grass' | 'brown' | 'blaze';
|
|
7
7
|
export declare type StateColorSchema = 'info' | 'success' | 'warning' | 'error';
|
|
8
8
|
export declare type ColorSchema = 'primary' | 'secondary' | StateColorSchema;
|
|
9
|
+
export declare type ColorSchemeComponent = ColorSchema | string;
|
|
9
10
|
export declare type BasePalettes = 'patronusBlue' | 'crayonBlue' | 'middleYellow' | 'acidGreen' | 'grassGreen' | 'desertBeige' | 'turquiBlue' | 'blazeOrange' | 'flameRed' | 'coolGrey' | 'brown' | 'marbleLight' | 'onyx' | 'mint' | 'oxford';
|
|
10
11
|
export declare type BaseOpacityPalettes = 'patronus' | 'turqui' | 'grass' | 'brown' | 'beige' | 'orange' | 'cool' | 'marble' | 'mint' | 'oxford';
|
|
11
12
|
export interface Colors {
|
|
@@ -55,4 +56,3 @@ export declare type PresetsOptions = Array<{
|
|
|
55
56
|
value: string;
|
|
56
57
|
}>;
|
|
57
58
|
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})`;
|
package/utils/getColorState.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ColorSchemeComponent } from '../types/types';
|
|
2
|
+
import { Theme } from '@mui/material';
|
|
3
|
+
export declare const getColorState: (color: ColorSchemeComponent, palette: Theme['palette'] | Theme['vars']['palette']) => string;
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
};
|