@particle-network/ui-shared 0.3.0-beta.1 → 0.3.0-beta.3
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/dist/color.d.ts +4 -22
- package/dist/color.js +17 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/theme-data.d.ts +1010 -0
- package/dist/theme-data.js +1338 -0
- package/package.json +3 -3
package/dist/color.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ export interface DynamicColors {
|
|
|
7
7
|
}
|
|
8
8
|
export type ThemeColors = Record<UXColor, string>;
|
|
9
9
|
export declare const colorMap: Record<'dark' | 'light', Record<UXColor, string>>;
|
|
10
|
-
export declare const foregroundColorList:
|
|
10
|
+
export declare const foregroundColorList: UXForegroundColor[];
|
|
11
|
+
export declare const backgroundColorList: UXBackgroundColor[];
|
|
12
|
+
export declare const uxColorList: UXColor[];
|
|
11
13
|
export declare const colorToCSSVariable: {
|
|
12
14
|
readonly default: "--heroui-foreground";
|
|
13
15
|
readonly foreground: "--heroui-foreground";
|
|
@@ -29,27 +31,7 @@ export declare const colorToCSSVariable: {
|
|
|
29
31
|
readonly overlay: "--heroui-overlay";
|
|
30
32
|
readonly divider: "--heroui-divider";
|
|
31
33
|
};
|
|
32
|
-
export declare const colorToClassName:
|
|
33
|
-
readonly default: "text-foreground";
|
|
34
|
-
readonly white: "text-white";
|
|
35
|
-
readonly foreground: "text-foreground";
|
|
36
|
-
readonly secondary: "text-secondary";
|
|
37
|
-
readonly tertiary: "text-tertiary";
|
|
38
|
-
readonly primary: "text-primary";
|
|
39
|
-
readonly success: "text-success";
|
|
40
|
-
readonly danger: "text-danger";
|
|
41
|
-
readonly alert: "text-alert";
|
|
42
|
-
readonly warning: "text-warning";
|
|
43
|
-
readonly gold: "text-gold";
|
|
44
|
-
readonly bullish: "text-bullish";
|
|
45
|
-
readonly bearish: "text-bearish";
|
|
46
|
-
readonly 'bg-default': "text-background";
|
|
47
|
-
readonly 'bg-200': "text-background-200";
|
|
48
|
-
readonly 'bg-300': "text-background-300";
|
|
49
|
-
readonly 'bg-400': "text-background-400";
|
|
50
|
-
readonly overlay: "text-background-overlay";
|
|
51
|
-
readonly divider: "text-background-divider";
|
|
52
|
-
};
|
|
34
|
+
export declare const colorToClassName: Record<UXColor, string>;
|
|
53
35
|
export type ColorString = `#${string}`;
|
|
54
36
|
export declare function hexColorToHSLValue(hex: ColorString): string;
|
|
55
37
|
export declare function hexColorToHSL(hex: ColorString): string;
|
package/dist/color.js
CHANGED
|
@@ -57,6 +57,19 @@ const foregroundColorList = [
|
|
|
57
57
|
'bullish',
|
|
58
58
|
'bearish'
|
|
59
59
|
];
|
|
60
|
+
const backgroundColorList = [
|
|
61
|
+
'bg-default',
|
|
62
|
+
'bg-200',
|
|
63
|
+
'bg-300',
|
|
64
|
+
'bg-400',
|
|
65
|
+
'overlay',
|
|
66
|
+
'divider',
|
|
67
|
+
'transparent'
|
|
68
|
+
];
|
|
69
|
+
const uxColorList = [
|
|
70
|
+
...foregroundColorList,
|
|
71
|
+
...backgroundColorList
|
|
72
|
+
];
|
|
60
73
|
const colorToCSSVariable = {
|
|
61
74
|
default: '--heroui-foreground',
|
|
62
75
|
foreground: '--heroui-foreground',
|
|
@@ -96,8 +109,9 @@ const colorToClassName = {
|
|
|
96
109
|
'bg-200': 'text-background-200',
|
|
97
110
|
'bg-300': 'text-background-300',
|
|
98
111
|
'bg-400': 'text-background-400',
|
|
99
|
-
overlay: 'text-
|
|
100
|
-
divider: 'text-
|
|
112
|
+
overlay: 'text-overlay',
|
|
113
|
+
divider: 'text-divider',
|
|
114
|
+
transparent: 'text-transparent'
|
|
101
115
|
};
|
|
102
116
|
function hexColorToHSLValue(hex) {
|
|
103
117
|
const hexWithoutHash = hex.replace('#', '');
|
|
@@ -208,4 +222,4 @@ const setColorWithOpacity = (color, opacity)=>{
|
|
|
208
222
|
}
|
|
209
223
|
return `rgba(${r}, ${g}, ${b}, ${opacity})`;
|
|
210
224
|
};
|
|
211
|
-
export { colorMap, colorToCSSVariable, colorToClassName, foregroundColorList, getHexColorFromCSSVariable, hexColorToHSL, hexColorToHSLValue, hslToHex, setColorWithOpacity };
|
|
225
|
+
export { backgroundColorList, colorMap, colorToCSSVariable, colorToClassName, foregroundColorList, getHexColorFromCSSVariable, hexColorToHSL, hexColorToHSLValue, hslToHex, setColorWithOpacity, uxColorList };
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED