@acuteinfo/common-base 1.2.93 → 1.2.94
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/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/theme/generateTheme/buildPalette.d.ts +7 -64
- package/dist/theme/generateTheme/types.d.ts +18 -15
- package/dist/theme/generators/neutralPaletteGenerator.d.ts +2 -12
- package/dist/theme/generators/radiusGenerator.d.ts +3 -2
- package/dist/theme/generators/semanticGenerator.d.ts +10 -6
- package/dist/theme/generators/shadowGenerator.d.ts +3 -2
- package/dist/theme/generators/themeColorGenerator.d.ts +6 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/types/themeExtensions.d.ts +28 -198
- package/package.json +1 -1
|
@@ -67,71 +67,14 @@ export declare const buildPalette: (colors: ResolvedColors, tokens: GeneratedTok
|
|
|
67
67
|
disabled: string;
|
|
68
68
|
disabledBackground: string;
|
|
69
69
|
};
|
|
70
|
-
surface:
|
|
71
|
-
page: string;
|
|
72
|
-
card: string;
|
|
73
|
-
elevated: string;
|
|
74
|
-
sidebar: string;
|
|
75
|
-
header: string;
|
|
76
|
-
footer: string;
|
|
77
|
-
input: string;
|
|
78
|
-
tabs: string;
|
|
79
|
-
};
|
|
70
|
+
surface: import("..").ThemeSurfaces;
|
|
80
71
|
border: import("..").ThemeBorderTokens;
|
|
81
|
-
state:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
pressed: string;
|
|
86
|
-
};
|
|
87
|
-
greyPalette: {
|
|
88
|
-
50: string;
|
|
89
|
-
100: string;
|
|
90
|
-
200: string;
|
|
91
|
-
300: string;
|
|
92
|
-
400: string;
|
|
93
|
-
500: string;
|
|
94
|
-
600: string;
|
|
95
|
-
700: string;
|
|
96
|
-
800: string;
|
|
97
|
-
900: string;
|
|
98
|
-
};
|
|
99
|
-
shadow: {
|
|
100
|
-
input: string;
|
|
101
|
-
card: string;
|
|
102
|
-
popover: string;
|
|
103
|
-
dialog: string;
|
|
104
|
-
paper: string;
|
|
105
|
-
alert: string;
|
|
106
|
-
default: string;
|
|
107
|
-
tooltip: string;
|
|
108
|
-
button: string;
|
|
109
|
-
table: string;
|
|
110
|
-
form: string;
|
|
111
|
-
box: string;
|
|
112
|
-
grid: string;
|
|
113
|
-
stack: string;
|
|
114
|
-
container: string;
|
|
115
|
-
stepper: string;
|
|
116
|
-
tabs: string;
|
|
117
|
-
};
|
|
118
|
-
radius: {
|
|
119
|
-
xs: string;
|
|
120
|
-
sm: string;
|
|
121
|
-
md: string;
|
|
122
|
-
lg: string;
|
|
123
|
-
xl: string;
|
|
124
|
-
pill: string;
|
|
125
|
-
dialog: string;
|
|
126
|
-
card: string;
|
|
127
|
-
button: string;
|
|
128
|
-
input: string;
|
|
129
|
-
};
|
|
72
|
+
state: import("..").ThemeStates;
|
|
73
|
+
greyPalette: import("..").NeutralPalette;
|
|
74
|
+
shadow: import("..").ThemeShadows;
|
|
75
|
+
radius: import("..").ThemeRadius;
|
|
130
76
|
gradient: import("..").ThemeGradients;
|
|
77
|
+
themeColor: import("..").ThemeColors;
|
|
131
78
|
space: import("..").ThemeSpacingTokens;
|
|
132
|
-
transition:
|
|
133
|
-
fast: string;
|
|
134
|
-
normal: string;
|
|
135
|
-
slow: string;
|
|
136
|
-
};
|
|
79
|
+
transition: import("..").ThemeTransitions;
|
|
137
80
|
};
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { NeutralPalette } from "../generators/neutralPaletteGenerator";
|
|
2
|
+
import { ThemeSurfaces, ThemeStates, ThemeTransitions } from "../generators/semanticGenerator";
|
|
3
|
+
import { ThemeBorderTokens } from "../generators/borderGenerator";
|
|
4
|
+
import { ThemeShadows } from "../generators/shadowGenerator";
|
|
5
|
+
import { ThemeRadius } from "../generators/radiusGenerator";
|
|
6
|
+
import { ThemeGradients } from "../generators/gradientGenerator";
|
|
7
|
+
import { ThemeSpacingTokens } from "../generators/spacingGenerator";
|
|
8
|
+
import { ThemeColors } from "../generators/themeColorGenerator";
|
|
7
9
|
export interface GeneratedTokens {
|
|
8
|
-
greyPalette:
|
|
9
|
-
surface:
|
|
10
|
-
border:
|
|
11
|
-
state:
|
|
12
|
-
shadow:
|
|
13
|
-
radius:
|
|
14
|
-
gradient:
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
greyPalette: NeutralPalette;
|
|
11
|
+
surface: ThemeSurfaces;
|
|
12
|
+
border: ThemeBorderTokens;
|
|
13
|
+
state: ThemeStates;
|
|
14
|
+
shadow: ThemeShadows;
|
|
15
|
+
radius: ThemeRadius;
|
|
16
|
+
gradient: ThemeGradients;
|
|
17
|
+
themeColor: ThemeColors;
|
|
18
|
+
space: ThemeSpacingTokens;
|
|
19
|
+
transition: ThemeTransitions;
|
|
17
20
|
appBarTextColor: string;
|
|
18
21
|
}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
100: string;
|
|
4
|
-
200: string;
|
|
5
|
-
300: string;
|
|
6
|
-
400: string;
|
|
7
|
-
500: string;
|
|
8
|
-
600: string;
|
|
9
|
-
700: string;
|
|
10
|
-
800: string;
|
|
11
|
-
900: string;
|
|
12
|
-
};
|
|
1
|
+
export type NeutralPalette = Record<number, string>;
|
|
2
|
+
export declare const generateNeutralPalette: (baseBg: string, isDark: boolean) => NeutralPalette;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface ThemeRadius {
|
|
2
2
|
xs: string;
|
|
3
3
|
sm: string;
|
|
4
4
|
md: string;
|
|
@@ -9,4 +9,5 @@ export declare const generateRadius: () => {
|
|
|
9
9
|
card: string;
|
|
10
10
|
button: string;
|
|
11
11
|
input: string;
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
|
+
export declare const generateRadius: () => ThemeRadius;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface ThemeSurfaces {
|
|
2
2
|
page: string;
|
|
3
3
|
card: string;
|
|
4
4
|
elevated: string;
|
|
@@ -7,16 +7,20 @@ export declare const generateSurfaces: (resolvedBg: string, resolvedPaper: strin
|
|
|
7
7
|
footer: string;
|
|
8
8
|
input: string;
|
|
9
9
|
tabs: string;
|
|
10
|
-
}
|
|
10
|
+
}
|
|
11
|
+
export declare const generateSurfaces: (resolvedBg: string, resolvedPaper: string, isDark: boolean) => ThemeSurfaces;
|
|
11
12
|
export { generateBorders } from "./borderGenerator";
|
|
12
|
-
export
|
|
13
|
+
export type { ThemeBorderTokens } from "./borderGenerator";
|
|
14
|
+
export interface ThemeStates {
|
|
13
15
|
hover: string;
|
|
14
16
|
selected: string;
|
|
15
17
|
focus: string;
|
|
16
18
|
pressed: string;
|
|
17
|
-
}
|
|
18
|
-
export declare const
|
|
19
|
+
}
|
|
20
|
+
export declare const generateStates: (isDark: boolean) => ThemeStates;
|
|
21
|
+
export interface ThemeTransitions {
|
|
19
22
|
fast: string;
|
|
20
23
|
normal: string;
|
|
21
24
|
slow: string;
|
|
22
|
-
}
|
|
25
|
+
}
|
|
26
|
+
export declare const generateTransitions: () => ThemeTransitions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface ThemeShadows {
|
|
2
2
|
input: string;
|
|
3
3
|
card: string;
|
|
4
4
|
popover: string;
|
|
@@ -16,4 +16,5 @@ export declare const generateShadows: (isDark: boolean) => {
|
|
|
16
16
|
container: string;
|
|
17
17
|
stepper: string;
|
|
18
18
|
tabs: string;
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
|
+
export declare const generateShadows: (isDark: boolean) => ThemeShadows;
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./generators/radiusGenerator";
|
|
|
9
9
|
export * from "./generators/gradientGenerator";
|
|
10
10
|
export * from "./generators/spacingGenerator";
|
|
11
11
|
export * from "./generators/borderGenerator";
|
|
12
|
+
export * from "./generators/themeColorGenerator";
|
|
12
13
|
export * from "./generateTheme";
|
|
13
14
|
export * from "./presets/presets";
|
|
14
15
|
export * from "./legacy/syncLegacyVars";
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import "@mui/material/styles";
|
|
2
|
+
import { NeutralPalette } from "../generators/neutralPaletteGenerator";
|
|
3
|
+
import { ThemeSurfaces, ThemeStates, ThemeTransitions } from "../generators/semanticGenerator";
|
|
4
|
+
import { ThemeBorderTokens } from "../generators/borderGenerator";
|
|
5
|
+
import { ThemeShadows } from "../generators/shadowGenerator";
|
|
6
|
+
import { ThemeRadius } from "../generators/radiusGenerator";
|
|
7
|
+
import { ThemeGradients } from "../generators/gradientGenerator";
|
|
8
|
+
import { ThemeSpacingTokens } from "../generators/spacingGenerator";
|
|
9
|
+
import { ThemeColors } from "../generators/themeColorGenerator";
|
|
2
10
|
declare module "@mui/material/styles" {
|
|
3
11
|
interface Theme {
|
|
4
12
|
customShadows?: any;
|
|
@@ -23,205 +31,27 @@ declare module "@mui/material/styles" {
|
|
|
23
31
|
darker?: string;
|
|
24
32
|
}
|
|
25
33
|
interface Palette {
|
|
26
|
-
surface:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
border: {
|
|
37
|
-
subtle: string;
|
|
38
|
-
default: string;
|
|
39
|
-
strong: string;
|
|
40
|
-
primary: string;
|
|
41
|
-
secondary: string;
|
|
42
|
-
disabled: string;
|
|
43
|
-
error: string;
|
|
44
|
-
success: string;
|
|
45
|
-
warning: string;
|
|
46
|
-
info: string;
|
|
47
|
-
};
|
|
48
|
-
state: {
|
|
49
|
-
hover: string;
|
|
50
|
-
selected: string;
|
|
51
|
-
focus: string;
|
|
52
|
-
pressed: string;
|
|
53
|
-
};
|
|
54
|
-
greyPalette: {
|
|
55
|
-
[key: number]: string;
|
|
56
|
-
};
|
|
57
|
-
shadow: {
|
|
58
|
-
input: string;
|
|
59
|
-
card: string;
|
|
60
|
-
popover: string;
|
|
61
|
-
dialog: string;
|
|
62
|
-
paper: string;
|
|
63
|
-
alert: string;
|
|
64
|
-
default: string;
|
|
65
|
-
tooltip: string;
|
|
66
|
-
button: string;
|
|
67
|
-
table: string;
|
|
68
|
-
form: string;
|
|
69
|
-
box: string;
|
|
70
|
-
grid: string;
|
|
71
|
-
stack: string;
|
|
72
|
-
container: string;
|
|
73
|
-
stepper: string;
|
|
74
|
-
tabs: string;
|
|
75
|
-
};
|
|
76
|
-
radius: {
|
|
77
|
-
xs: string;
|
|
78
|
-
sm: string;
|
|
79
|
-
md: string;
|
|
80
|
-
lg: string;
|
|
81
|
-
xl: string;
|
|
82
|
-
pill: string;
|
|
83
|
-
dialog: string;
|
|
84
|
-
card: string;
|
|
85
|
-
button: string;
|
|
86
|
-
input: string;
|
|
87
|
-
};
|
|
88
|
-
gradient: {
|
|
89
|
-
primary: string;
|
|
90
|
-
secondary: string;
|
|
91
|
-
primaryToSecondary: string;
|
|
92
|
-
subtle: string;
|
|
93
|
-
glow: string;
|
|
94
|
-
button: string;
|
|
95
|
-
buttonHover: string;
|
|
96
|
-
success: string;
|
|
97
|
-
error: string;
|
|
98
|
-
warning: string;
|
|
99
|
-
info: string;
|
|
100
|
-
};
|
|
101
|
-
space: {
|
|
102
|
-
none: string;
|
|
103
|
-
hairline: string;
|
|
104
|
-
xxs: string;
|
|
105
|
-
xs: string;
|
|
106
|
-
sm: string;
|
|
107
|
-
md: string;
|
|
108
|
-
lg: string;
|
|
109
|
-
xl: string;
|
|
110
|
-
xxl: string;
|
|
111
|
-
xxxl: string;
|
|
112
|
-
huge: string;
|
|
113
|
-
appbar: string;
|
|
114
|
-
card: string;
|
|
115
|
-
container: string;
|
|
116
|
-
section: string;
|
|
117
|
-
compact: string;
|
|
118
|
-
relaxed: string;
|
|
119
|
-
};
|
|
120
|
-
transition: {
|
|
121
|
-
fast: string;
|
|
122
|
-
normal: string;
|
|
123
|
-
slow: string;
|
|
124
|
-
};
|
|
34
|
+
surface: ThemeSurfaces;
|
|
35
|
+
border: ThemeBorderTokens;
|
|
36
|
+
state: ThemeStates;
|
|
37
|
+
greyPalette: NeutralPalette;
|
|
38
|
+
shadow: ThemeShadows;
|
|
39
|
+
radius: ThemeRadius;
|
|
40
|
+
gradient: ThemeGradients;
|
|
41
|
+
space: ThemeSpacingTokens;
|
|
42
|
+
transition: ThemeTransitions;
|
|
43
|
+
themeColor: ThemeColors;
|
|
125
44
|
}
|
|
126
45
|
interface PaletteOptions {
|
|
127
|
-
surface?:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
border?: {
|
|
138
|
-
subtle?: string;
|
|
139
|
-
default?: string;
|
|
140
|
-
strong?: string;
|
|
141
|
-
primary?: string;
|
|
142
|
-
secondary?: string;
|
|
143
|
-
disabled?: string;
|
|
144
|
-
error?: string;
|
|
145
|
-
success?: string;
|
|
146
|
-
warning?: string;
|
|
147
|
-
info?: string;
|
|
148
|
-
};
|
|
149
|
-
state?: {
|
|
150
|
-
hover?: string;
|
|
151
|
-
selected?: string;
|
|
152
|
-
focus?: string;
|
|
153
|
-
pressed?: string;
|
|
154
|
-
};
|
|
155
|
-
greyPalette?: {
|
|
156
|
-
[key: number]: string;
|
|
157
|
-
};
|
|
158
|
-
shadow?: {
|
|
159
|
-
input?: string;
|
|
160
|
-
card?: string;
|
|
161
|
-
popover?: string;
|
|
162
|
-
dialog?: string;
|
|
163
|
-
paper?: string;
|
|
164
|
-
alert?: string;
|
|
165
|
-
default?: string;
|
|
166
|
-
tooltip?: string;
|
|
167
|
-
button?: string;
|
|
168
|
-
table?: string;
|
|
169
|
-
form?: string;
|
|
170
|
-
box?: string;
|
|
171
|
-
grid?: string;
|
|
172
|
-
stack?: string;
|
|
173
|
-
container?: string;
|
|
174
|
-
stepper?: string;
|
|
175
|
-
tabs?: string;
|
|
176
|
-
};
|
|
177
|
-
radius?: {
|
|
178
|
-
xs?: string;
|
|
179
|
-
sm?: string;
|
|
180
|
-
md?: string;
|
|
181
|
-
lg?: string;
|
|
182
|
-
xl?: string;
|
|
183
|
-
pill?: string;
|
|
184
|
-
dialog?: string;
|
|
185
|
-
card?: string;
|
|
186
|
-
button?: string;
|
|
187
|
-
input?: string;
|
|
188
|
-
};
|
|
189
|
-
gradient?: {
|
|
190
|
-
primary?: string;
|
|
191
|
-
secondary?: string;
|
|
192
|
-
primaryToSecondary?: string;
|
|
193
|
-
subtle?: string;
|
|
194
|
-
glow?: string;
|
|
195
|
-
button?: string;
|
|
196
|
-
buttonHover?: string;
|
|
197
|
-
success?: string;
|
|
198
|
-
error?: string;
|
|
199
|
-
warning?: string;
|
|
200
|
-
info?: string;
|
|
201
|
-
};
|
|
202
|
-
space?: {
|
|
203
|
-
none?: string;
|
|
204
|
-
hairline?: string;
|
|
205
|
-
xxs?: string;
|
|
206
|
-
xs?: string;
|
|
207
|
-
sm?: string;
|
|
208
|
-
md?: string;
|
|
209
|
-
lg?: string;
|
|
210
|
-
xl?: string;
|
|
211
|
-
xxl?: string;
|
|
212
|
-
xxxl?: string;
|
|
213
|
-
huge?: string;
|
|
214
|
-
appbar?: string;
|
|
215
|
-
card?: string;
|
|
216
|
-
container?: string;
|
|
217
|
-
section?: string;
|
|
218
|
-
compact?: string;
|
|
219
|
-
relaxed?: string;
|
|
220
|
-
};
|
|
221
|
-
transition?: {
|
|
222
|
-
fast?: string;
|
|
223
|
-
normal?: string;
|
|
224
|
-
slow?: string;
|
|
225
|
-
};
|
|
46
|
+
surface?: Partial<ThemeSurfaces>;
|
|
47
|
+
border?: Partial<ThemeBorderTokens>;
|
|
48
|
+
state?: Partial<ThemeStates>;
|
|
49
|
+
greyPalette?: NeutralPalette;
|
|
50
|
+
shadow?: Partial<ThemeShadows>;
|
|
51
|
+
radius?: Partial<ThemeRadius>;
|
|
52
|
+
gradient?: Partial<ThemeGradients>;
|
|
53
|
+
space?: Partial<ThemeSpacingTokens>;
|
|
54
|
+
transition?: Partial<ThemeTransitions>;
|
|
55
|
+
themeColor?: Partial<ThemeColors>;
|
|
226
56
|
}
|
|
227
57
|
}
|