@m4l/graphics 0.1.28 → 0.1.30
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/contexts/HostThemeContext/index.9fe9854f.js +50 -0
- package/contexts/{index.2f4a4040.js → index.8c4de295.js} +1 -1
- package/hooks/index.64cf4fc4.js +34 -0
- package/hooks/index.d.ts +1 -1
- package/hooks/useHostTheme/index.d.ts +1 -1
- package/index.d.ts +1 -14
- package/index.js +38 -41
- package/package.json +2 -3
- package/utils/getColorPresets.d.ts +1 -1
- package/utils/index.22212127.js +113 -0
- package/utils/index.d.ts +3 -0
- package/{theme/palette.2baf72f5.js → vendor.158914a7.js} +20 -11
- package/contexts/HostThemeContext/index.a6a62c70.js +0 -50
- package/hooks/index.c13bc37e.js +0 -27
- package/hooks/useHostTheme/index.1c8e4ad7.js +0 -11
- package/m4l-graphics-0.1.28.tgz +0 -0
- package/theme/breakpoints.d.ts +0 -10
- package/theme/defaultThemeOptions.b2cdbe59.js +0 -36
- package/theme/defaultThemeOptions.d.ts +0 -2
- package/theme/overrides/Accordion.d.ts +0 -861
- package/theme/overrides/Autocomplete.d.ts +0 -26
- package/theme/overrides/Avatar.d.ts +0 -24
- package/theme/overrides/Backdrop.d.ts +0 -13
- package/theme/overrides/Badge.d.ts +0 -12
- package/theme/overrides/Breadcrumbs.d.ts +0 -11
- package/theme/overrides/Button.d.ts +0 -52
- package/theme/overrides/ButtonGroup.d.ts +0 -39
- package/theme/overrides/Card.d.ts +0 -36
- package/theme/overrides/Checkbox.d.ts +0 -18
- package/theme/overrides/ControlLabel.d.ts +0 -813
- package/theme/overrides/CssBaseline.d.ts +0 -42
- package/theme/overrides/DataGrid.d.ts +0 -1670
- package/theme/overrides/Dialog.d.ts +0 -55
- package/theme/overrides/Drawer.d.ts +0 -17
- package/theme/overrides/Fab.d.ts +0 -34
- package/theme/overrides/IconButton.d.ts +0 -23
- package/theme/overrides/Input.d.ts +0 -1661
- package/theme/overrides/InputLabel.d.ts +0 -14
- package/theme/overrides/Link.d.ts +0 -15
- package/theme/overrides/List.d.ts +0 -32
- package/theme/overrides/LoadingButton.d.ts +0 -811
- package/theme/overrides/Menu.d.ts +0 -15
- package/theme/overrides/Pagination.d.ts +0 -30
- package/theme/overrides/Paper.d.ts +0 -22
- package/theme/overrides/Popover.d.ts +0 -11
- package/theme/overrides/Progress.d.ts +0 -20
- package/theme/overrides/Radio.d.ts +0 -16
- package/theme/overrides/Skeleton.d.ts +0 -13
- package/theme/overrides/Slider.d.ts +0 -23
- package/theme/overrides/Stepper.d.ts +0 -10
- package/theme/overrides/SvgIcon.d.ts +0 -17
- package/theme/overrides/Switch.d.ts +0 -28
- package/theme/overrides/Table.d.ts +0 -3238
- package/theme/overrides/Tabs.d.ts +0 -845
- package/theme/overrides/Timeline.d.ts +0 -17
- package/theme/overrides/ToggleButton.d.ts +0 -43
- package/theme/overrides/Tooltip.d.ts +0 -13
- package/theme/overrides/Typography.d.ts +0 -13
- package/theme/overrides/index.d.ts +0 -2
- package/theme/overrides.7958c0ab.js +0 -1299
- package/theme/palette.d.ts +0 -323
- package/theme/shadows.bf8dc290.js +0 -61
- package/theme/shadows.d.ts +0 -67
- package/theme/stretch.d.ts +0 -9
- package/theme/typography.63fff3ec.js +0 -88
- package/theme/typography.d.ts +0 -132
- package/types/index.d.ts +0 -7
- package/utils/anchorEl.d.ts +0 -13
- package/utils/index.7ab4fc54.js +0 -159
- package/vendor.3b4b3674.js +0 -27
package/theme/palette.d.ts
DELETED
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
export declare type ColorSchema = 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error';
|
|
2
|
-
export interface GradientsPaletteOptions {
|
|
3
|
-
primary: string;
|
|
4
|
-
info: string;
|
|
5
|
-
success: string;
|
|
6
|
-
warning: string;
|
|
7
|
-
error: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ChartPaletteOptions {
|
|
10
|
-
violet: string[];
|
|
11
|
-
blue: string[];
|
|
12
|
-
green: string[];
|
|
13
|
-
yellow: string[];
|
|
14
|
-
red: string[];
|
|
15
|
-
}
|
|
16
|
-
export interface GridPaletteOptions {
|
|
17
|
-
sectionHeader: string;
|
|
18
|
-
rowHover: string;
|
|
19
|
-
divider: string;
|
|
20
|
-
}
|
|
21
|
-
declare module '@mui/material/styles/createPalette' {
|
|
22
|
-
interface TypeBackground {
|
|
23
|
-
neutral: string;
|
|
24
|
-
autofill: string;
|
|
25
|
-
header: string;
|
|
26
|
-
}
|
|
27
|
-
interface SimplePaletteColorOptions {
|
|
28
|
-
lighter?: string;
|
|
29
|
-
darker?: string;
|
|
30
|
-
LightSelected?: string;
|
|
31
|
-
LightSelectedHover?: string;
|
|
32
|
-
DarkSelected?: string;
|
|
33
|
-
DarkSelectedHover?: string;
|
|
34
|
-
}
|
|
35
|
-
interface PaletteColor {
|
|
36
|
-
lighter?: string;
|
|
37
|
-
darker?: string;
|
|
38
|
-
LightSelected?: string;
|
|
39
|
-
LightSelectedHover?: string;
|
|
40
|
-
DarkSelected?: string;
|
|
41
|
-
DarkSelectedHover?: string;
|
|
42
|
-
}
|
|
43
|
-
interface Palette {
|
|
44
|
-
gradients?: GradientsPaletteOptions;
|
|
45
|
-
chart: ChartPaletteOptions;
|
|
46
|
-
grid?: GridPaletteOptions;
|
|
47
|
-
}
|
|
48
|
-
interface PaletteOptions {
|
|
49
|
-
gradients?: GradientsPaletteOptions;
|
|
50
|
-
chart?: ChartPaletteOptions;
|
|
51
|
-
grid?: GridPaletteOptions;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
declare module '@mui/material' {
|
|
55
|
-
interface Color {
|
|
56
|
-
0: string;
|
|
57
|
-
500_8: string;
|
|
58
|
-
500_12: string;
|
|
59
|
-
500_16: string;
|
|
60
|
-
500_24: string;
|
|
61
|
-
500_32: string;
|
|
62
|
-
500_48: string;
|
|
63
|
-
500_56: string;
|
|
64
|
-
500_80: string;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
export declare const GREY: {
|
|
68
|
-
0: string;
|
|
69
|
-
100: string;
|
|
70
|
-
200: string;
|
|
71
|
-
300: string;
|
|
72
|
-
400: string;
|
|
73
|
-
500: string;
|
|
74
|
-
600: string;
|
|
75
|
-
700: string;
|
|
76
|
-
800: string;
|
|
77
|
-
900: string;
|
|
78
|
-
5008: string;
|
|
79
|
-
50012: string;
|
|
80
|
-
50016: string;
|
|
81
|
-
50024: string;
|
|
82
|
-
50032: string;
|
|
83
|
-
50048: string;
|
|
84
|
-
50056: string;
|
|
85
|
-
50080: string;
|
|
86
|
-
};
|
|
87
|
-
export declare const palette: {
|
|
88
|
-
readonly light: {
|
|
89
|
-
readonly mode: "light";
|
|
90
|
-
readonly text: {
|
|
91
|
-
readonly primary: string;
|
|
92
|
-
readonly secondary: string;
|
|
93
|
-
readonly disabled: string;
|
|
94
|
-
};
|
|
95
|
-
readonly background: {
|
|
96
|
-
readonly paper: "#fff";
|
|
97
|
-
readonly default: "#fff";
|
|
98
|
-
readonly neutral: string;
|
|
99
|
-
readonly autocomplete: string;
|
|
100
|
-
readonly header: "#F6F7F9";
|
|
101
|
-
};
|
|
102
|
-
readonly action: {
|
|
103
|
-
readonly hover: string;
|
|
104
|
-
readonly selected: string;
|
|
105
|
-
readonly disabled: string;
|
|
106
|
-
readonly disabledBackground: string;
|
|
107
|
-
readonly focus: string;
|
|
108
|
-
readonly hoverOpacity: number;
|
|
109
|
-
readonly disabledOpacity: number;
|
|
110
|
-
readonly active: string;
|
|
111
|
-
};
|
|
112
|
-
readonly grid: {
|
|
113
|
-
readonly sectionHeader: "#F6F7F9";
|
|
114
|
-
readonly divider: "#EDEFF2";
|
|
115
|
-
readonly rowHover: "#FAFBFC";
|
|
116
|
-
};
|
|
117
|
-
readonly common: {
|
|
118
|
-
black: string;
|
|
119
|
-
white: string;
|
|
120
|
-
};
|
|
121
|
-
readonly primary: {
|
|
122
|
-
contrastText: string;
|
|
123
|
-
lighter: string;
|
|
124
|
-
light: string;
|
|
125
|
-
main: string;
|
|
126
|
-
dark: string;
|
|
127
|
-
darker: string;
|
|
128
|
-
};
|
|
129
|
-
readonly secondary: {
|
|
130
|
-
contrastText: string;
|
|
131
|
-
lighter: string;
|
|
132
|
-
light: string;
|
|
133
|
-
main: string;
|
|
134
|
-
dark: string;
|
|
135
|
-
darker: string;
|
|
136
|
-
};
|
|
137
|
-
readonly info: {
|
|
138
|
-
contrastText: string;
|
|
139
|
-
lighter: string;
|
|
140
|
-
light: string;
|
|
141
|
-
main: string;
|
|
142
|
-
dark: string;
|
|
143
|
-
darker: string;
|
|
144
|
-
};
|
|
145
|
-
readonly success: {
|
|
146
|
-
contrastText: string;
|
|
147
|
-
lighter: string;
|
|
148
|
-
light: string;
|
|
149
|
-
main: string;
|
|
150
|
-
dark: string;
|
|
151
|
-
darker: string;
|
|
152
|
-
};
|
|
153
|
-
readonly warning: {
|
|
154
|
-
contrastText: string;
|
|
155
|
-
lighter: string;
|
|
156
|
-
light: string;
|
|
157
|
-
main: string;
|
|
158
|
-
dark: string;
|
|
159
|
-
darker: string;
|
|
160
|
-
};
|
|
161
|
-
readonly error: {
|
|
162
|
-
contrastText: string;
|
|
163
|
-
lighter: string;
|
|
164
|
-
light: string;
|
|
165
|
-
main: string;
|
|
166
|
-
dark: string;
|
|
167
|
-
darker: string;
|
|
168
|
-
};
|
|
169
|
-
readonly grey: {
|
|
170
|
-
0: string;
|
|
171
|
-
100: string;
|
|
172
|
-
200: string;
|
|
173
|
-
300: string;
|
|
174
|
-
400: string;
|
|
175
|
-
500: string;
|
|
176
|
-
600: string;
|
|
177
|
-
700: string;
|
|
178
|
-
800: string;
|
|
179
|
-
900: string;
|
|
180
|
-
5008: string;
|
|
181
|
-
50012: string;
|
|
182
|
-
50016: string;
|
|
183
|
-
50024: string;
|
|
184
|
-
50032: string;
|
|
185
|
-
50048: string;
|
|
186
|
-
50056: string;
|
|
187
|
-
50080: string;
|
|
188
|
-
};
|
|
189
|
-
readonly gradients: {
|
|
190
|
-
primary: string;
|
|
191
|
-
info: string;
|
|
192
|
-
success: string;
|
|
193
|
-
warning: string;
|
|
194
|
-
error: string;
|
|
195
|
-
};
|
|
196
|
-
readonly chart: {
|
|
197
|
-
violet: string[];
|
|
198
|
-
blue: string[];
|
|
199
|
-
green: string[];
|
|
200
|
-
yellow: string[];
|
|
201
|
-
red: string[];
|
|
202
|
-
};
|
|
203
|
-
readonly divider: string;
|
|
204
|
-
};
|
|
205
|
-
readonly dark: {
|
|
206
|
-
readonly mode: "dark";
|
|
207
|
-
readonly text: {
|
|
208
|
-
readonly primary: "#fff";
|
|
209
|
-
readonly secondary: string;
|
|
210
|
-
readonly disabled: string;
|
|
211
|
-
};
|
|
212
|
-
readonly background: {
|
|
213
|
-
readonly paper: string;
|
|
214
|
-
readonly default: string;
|
|
215
|
-
readonly neutral: string;
|
|
216
|
-
readonly autocomplete: string;
|
|
217
|
-
readonly header: "#29313A";
|
|
218
|
-
};
|
|
219
|
-
readonly action: {
|
|
220
|
-
readonly hover: string;
|
|
221
|
-
readonly selected: string;
|
|
222
|
-
readonly disabled: string;
|
|
223
|
-
readonly disabledBackground: string;
|
|
224
|
-
readonly focus: string;
|
|
225
|
-
readonly hoverOpacity: number;
|
|
226
|
-
readonly disabledOpacity: number;
|
|
227
|
-
readonly active: string;
|
|
228
|
-
};
|
|
229
|
-
readonly grid: {
|
|
230
|
-
readonly sectionHeader: "#29313A";
|
|
231
|
-
readonly divider: "#3E464F";
|
|
232
|
-
readonly rowHover: "#1F262F";
|
|
233
|
-
};
|
|
234
|
-
readonly common: {
|
|
235
|
-
black: string;
|
|
236
|
-
white: string;
|
|
237
|
-
};
|
|
238
|
-
readonly primary: {
|
|
239
|
-
contrastText: string;
|
|
240
|
-
lighter: string;
|
|
241
|
-
light: string;
|
|
242
|
-
main: string;
|
|
243
|
-
dark: string;
|
|
244
|
-
darker: string;
|
|
245
|
-
};
|
|
246
|
-
readonly secondary: {
|
|
247
|
-
contrastText: string;
|
|
248
|
-
lighter: string;
|
|
249
|
-
light: string;
|
|
250
|
-
main: string;
|
|
251
|
-
dark: string;
|
|
252
|
-
darker: string;
|
|
253
|
-
};
|
|
254
|
-
readonly info: {
|
|
255
|
-
contrastText: string;
|
|
256
|
-
lighter: string;
|
|
257
|
-
light: string;
|
|
258
|
-
main: string;
|
|
259
|
-
dark: string;
|
|
260
|
-
darker: string;
|
|
261
|
-
};
|
|
262
|
-
readonly success: {
|
|
263
|
-
contrastText: string;
|
|
264
|
-
lighter: string;
|
|
265
|
-
light: string;
|
|
266
|
-
main: string;
|
|
267
|
-
dark: string;
|
|
268
|
-
darker: string;
|
|
269
|
-
};
|
|
270
|
-
readonly warning: {
|
|
271
|
-
contrastText: string;
|
|
272
|
-
lighter: string;
|
|
273
|
-
light: string;
|
|
274
|
-
main: string;
|
|
275
|
-
dark: string;
|
|
276
|
-
darker: string;
|
|
277
|
-
};
|
|
278
|
-
readonly error: {
|
|
279
|
-
contrastText: string;
|
|
280
|
-
lighter: string;
|
|
281
|
-
light: string;
|
|
282
|
-
main: string;
|
|
283
|
-
dark: string;
|
|
284
|
-
darker: string;
|
|
285
|
-
};
|
|
286
|
-
readonly grey: {
|
|
287
|
-
0: string;
|
|
288
|
-
100: string;
|
|
289
|
-
200: string;
|
|
290
|
-
300: string;
|
|
291
|
-
400: string;
|
|
292
|
-
500: string;
|
|
293
|
-
600: string;
|
|
294
|
-
700: string;
|
|
295
|
-
800: string;
|
|
296
|
-
900: string;
|
|
297
|
-
5008: string;
|
|
298
|
-
50012: string;
|
|
299
|
-
50016: string;
|
|
300
|
-
50024: string;
|
|
301
|
-
50032: string;
|
|
302
|
-
50048: string;
|
|
303
|
-
50056: string;
|
|
304
|
-
50080: string;
|
|
305
|
-
};
|
|
306
|
-
readonly gradients: {
|
|
307
|
-
primary: string;
|
|
308
|
-
info: string;
|
|
309
|
-
success: string;
|
|
310
|
-
warning: string;
|
|
311
|
-
error: string;
|
|
312
|
-
};
|
|
313
|
-
readonly chart: {
|
|
314
|
-
violet: string[];
|
|
315
|
-
blue: string[];
|
|
316
|
-
green: string[];
|
|
317
|
-
yellow: string[];
|
|
318
|
-
red: string[];
|
|
319
|
-
};
|
|
320
|
-
readonly divider: string;
|
|
321
|
-
};
|
|
322
|
-
};
|
|
323
|
-
export default palette;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { alpha as t } from "@mui/material/styles";
|
|
2
|
-
import { p as a } from "./palette.2baf72f5.js";
|
|
3
|
-
const i = a.light.grey[500], e = "#000000", r = (n) => {
|
|
4
|
-
const p = t(n, 0.2), x = t(n, 0.14), $ = t(n, 0.12);
|
|
5
|
-
return [
|
|
6
|
-
"none",
|
|
7
|
-
`0px 2px 1px -1px ${p},0px 1px 1px 0px ${x},0px 1px 3px 0px ${$}`,
|
|
8
|
-
`0px 3px 1px -2px ${p},0px 2px 2px 0px ${x},0px 1px 5px 0px ${$}`,
|
|
9
|
-
`0px 3px 3px -2px ${p},0px 3px 4px 0px ${x},0px 1px 8px 0px ${$}`,
|
|
10
|
-
`0px 2px 4px -1px ${p},0px 4px 5px 0px ${x},0px 1px 10px 0px ${$}`,
|
|
11
|
-
`0px 3px 5px -1px ${p},0px 5px 8px 0px ${x},0px 1px 14px 0px ${$}`,
|
|
12
|
-
`0px 3px 5px -1px ${p},0px 6px 10px 0px ${x},0px 1px 18px 0px ${$}`,
|
|
13
|
-
`0px 4px 5px -2px ${p},0px 7px 10px 1px ${x},0px 2px 16px 1px ${$}`,
|
|
14
|
-
`0px 5px 5px -3px ${p},0px 8px 10px 1px ${x},0px 3px 14px 2px ${$}`,
|
|
15
|
-
`0px 5px 6px -3px ${p},0px 9px 12px 1px ${x},0px 3px 16px 2px ${$}`,
|
|
16
|
-
`0px 6px 6px -3px ${p},0px 10px 14px 1px ${x},0px 4px 18px 3px ${$}`,
|
|
17
|
-
`0px 6px 7px -4px ${p},0px 11px 15px 1px ${x},0px 4px 20px 3px ${$}`,
|
|
18
|
-
`0px 7px 8px -4px ${p},0px 12px 17px 2px ${x},0px 5px 22px 4px ${$}`,
|
|
19
|
-
`0px 7px 8px -4px ${p},0px 13px 19px 2px ${x},0px 5px 24px 4px ${$}`,
|
|
20
|
-
`0px 7px 9px -4px ${p},0px 14px 21px 2px ${x},0px 5px 26px 4px ${$}`,
|
|
21
|
-
`0px 8px 9px -5px ${p},0px 15px 22px 2px ${x},0px 6px 28px 5px ${$}`,
|
|
22
|
-
`0px 8px 10px -5px ${p},0px 16px 24px 2px ${x},0px 6px 30px 5px ${$}`,
|
|
23
|
-
`0px 8px 11px -5px ${p},0px 17px 26px 2px ${x},0px 6px 32px 5px ${$}`,
|
|
24
|
-
`0px 9px 11px -5px ${p},0px 18px 28px 2px ${x},0px 7px 34px 6px ${$}`,
|
|
25
|
-
`0px 9px 12px -6px ${p},0px 19px 29px 2px ${x},0px 7px 36px 6px ${$}`,
|
|
26
|
-
`0px 10px 13px -6px ${p},0px 20px 31px 3px ${x},0px 8px 38px 7px ${$}`,
|
|
27
|
-
`0px 10px 13px -6px ${p},0px 21px 33px 3px ${x},0px 8px 40px 7px ${$}`,
|
|
28
|
-
`0px 10px 14px -6px ${p},0px 22px 35px 3px ${x},0px 8px 42px 7px ${$}`,
|
|
29
|
-
`0px 11px 14px -7px ${p},0px 23px 36px 3px ${x},0px 9px 44px 8px ${$}`,
|
|
30
|
-
`0px 11px 15px -7px ${p},0px 24px 38px 3px ${x},0px 9px 46px 8px ${$}`
|
|
31
|
-
];
|
|
32
|
-
}, s = (n) => {
|
|
33
|
-
const p = t(n, 0.16);
|
|
34
|
-
return {
|
|
35
|
-
z1: `0 1px 2px 0 ${p}`,
|
|
36
|
-
z8: `0 8px 16px 0 ${p}`,
|
|
37
|
-
z12: `0 12px 24px -4px ${p}`,
|
|
38
|
-
z16: `0 16px 32px -4px ${p}`,
|
|
39
|
-
z20: `0 20px 40px -4px ${p}`,
|
|
40
|
-
z24: `0 24px 48px 0 ${p}`,
|
|
41
|
-
primary: `0 8px 16px 0 ${t(a.light.primary.main, 0.24)}`,
|
|
42
|
-
info: `0 8px 16px 0 ${t(a.light.info.main, 0.24)}`,
|
|
43
|
-
secondary: `0 8px 16px 0 ${t(a.light.secondary.main, 0.24)}`,
|
|
44
|
-
success: `0 8px 16px 0 ${t(a.light.success.main, 0.24)}`,
|
|
45
|
-
warning: `0 8px 16px 0 ${t(a.light.warning.main, 0.24)}`,
|
|
46
|
-
error: `0 8px 16px 0 ${t(a.light.error.main, 0.24)}`,
|
|
47
|
-
card: `0 0 2px 0 ${t(n, 0.2)}, 0 12px 24px -4px ${t(n, 0.12)}`,
|
|
48
|
-
dialog: `-40px 40px 80px -8px ${t(a.light.common.black, 0.24)}`,
|
|
49
|
-
dropdown: `0 0 2px 0 ${t(n, 0.24)}, -20px 20px 40px -4px ${t(n, 0.24)}`
|
|
50
|
-
};
|
|
51
|
-
}, m = {
|
|
52
|
-
light: s(i),
|
|
53
|
-
dark: s(e)
|
|
54
|
-
}, h = {
|
|
55
|
-
light: r(i),
|
|
56
|
-
dark: r(e)
|
|
57
|
-
};
|
|
58
|
-
export {
|
|
59
|
-
m as c,
|
|
60
|
-
h as s
|
|
61
|
-
};
|
package/theme/shadows.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { Shadows } from '@mui/material/styles/shadows';
|
|
2
|
-
export interface CustomShadowOptions {
|
|
3
|
-
z1: string;
|
|
4
|
-
z8: string;
|
|
5
|
-
z12: string;
|
|
6
|
-
z16: string;
|
|
7
|
-
z20: string;
|
|
8
|
-
z24: string;
|
|
9
|
-
primary: string;
|
|
10
|
-
secondary: string;
|
|
11
|
-
info: string;
|
|
12
|
-
success: string;
|
|
13
|
-
warning: string;
|
|
14
|
-
error: string;
|
|
15
|
-
card: string;
|
|
16
|
-
dialog: string;
|
|
17
|
-
dropdown: string;
|
|
18
|
-
}
|
|
19
|
-
declare module '@mui/material/styles' {
|
|
20
|
-
interface Theme {
|
|
21
|
-
customShadows: CustomShadowOptions;
|
|
22
|
-
}
|
|
23
|
-
interface ThemeOptions {
|
|
24
|
-
customShadows?: CustomShadowOptions;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export declare const customShadows: {
|
|
28
|
-
light: {
|
|
29
|
-
z1: string;
|
|
30
|
-
z8: string;
|
|
31
|
-
z12: string;
|
|
32
|
-
z16: string;
|
|
33
|
-
z20: string;
|
|
34
|
-
z24: string;
|
|
35
|
-
primary: string;
|
|
36
|
-
info: string;
|
|
37
|
-
secondary: string;
|
|
38
|
-
success: string;
|
|
39
|
-
warning: string;
|
|
40
|
-
error: string;
|
|
41
|
-
card: string;
|
|
42
|
-
dialog: string;
|
|
43
|
-
dropdown: string;
|
|
44
|
-
};
|
|
45
|
-
dark: {
|
|
46
|
-
z1: string;
|
|
47
|
-
z8: string;
|
|
48
|
-
z12: string;
|
|
49
|
-
z16: string;
|
|
50
|
-
z20: string;
|
|
51
|
-
z24: string;
|
|
52
|
-
primary: string;
|
|
53
|
-
info: string;
|
|
54
|
-
secondary: string;
|
|
55
|
-
success: string;
|
|
56
|
-
warning: string;
|
|
57
|
-
error: string;
|
|
58
|
-
card: string;
|
|
59
|
-
dialog: string;
|
|
60
|
-
dropdown: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
export declare const shadows: {
|
|
64
|
-
light: Shadows;
|
|
65
|
-
dark: Shadows;
|
|
66
|
-
};
|
|
67
|
-
export default shadows;
|
package/theme/stretch.d.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { p as t, r as e } from "../utils/index.7ab4fc54.js";
|
|
2
|
-
const i = "Public Sans, sans-serif", o = {
|
|
3
|
-
fontFamily: i,
|
|
4
|
-
fontWeightRegular: 400,
|
|
5
|
-
fontWeightMedium: 600,
|
|
6
|
-
fontWeightBold: 700,
|
|
7
|
-
h1: {
|
|
8
|
-
fontWeight: 700,
|
|
9
|
-
lineHeight: 80 / 64,
|
|
10
|
-
fontSize: t(40),
|
|
11
|
-
letterSpacing: 2,
|
|
12
|
-
...e({ sm: 52, md: 58, lg: 64 })
|
|
13
|
-
},
|
|
14
|
-
h2: {
|
|
15
|
-
fontWeight: 700,
|
|
16
|
-
lineHeight: 64 / 48,
|
|
17
|
-
fontSize: t(32),
|
|
18
|
-
...e({ sm: 40, md: 44, lg: 48 })
|
|
19
|
-
},
|
|
20
|
-
h3: {
|
|
21
|
-
fontWeight: 700,
|
|
22
|
-
lineHeight: 1.5,
|
|
23
|
-
fontSize: t(24),
|
|
24
|
-
...e({ sm: 26, md: 30, lg: 32 })
|
|
25
|
-
},
|
|
26
|
-
h4: {
|
|
27
|
-
fontWeight: 700,
|
|
28
|
-
lineHeight: 1.5,
|
|
29
|
-
fontSize: t(20),
|
|
30
|
-
...e({ sm: 20, md: 24, lg: 24 })
|
|
31
|
-
},
|
|
32
|
-
h5: {
|
|
33
|
-
fontWeight: 700,
|
|
34
|
-
lineHeight: 1.5,
|
|
35
|
-
fontSize: t(18),
|
|
36
|
-
...e({ sm: 19, md: 20, lg: 20 })
|
|
37
|
-
},
|
|
38
|
-
h6: {
|
|
39
|
-
fontWeight: 700,
|
|
40
|
-
lineHeight: 28 / 18,
|
|
41
|
-
fontSize: t(17),
|
|
42
|
-
...e({ sm: 18, md: 18, lg: 18 })
|
|
43
|
-
},
|
|
44
|
-
subtitle1: {
|
|
45
|
-
fontWeight: 600,
|
|
46
|
-
lineHeight: 1.5,
|
|
47
|
-
fontSize: t(14)
|
|
48
|
-
},
|
|
49
|
-
subtitle2: {
|
|
50
|
-
fontWeight: 600,
|
|
51
|
-
lineHeight: 1.5,
|
|
52
|
-
fontSize: t(12)
|
|
53
|
-
},
|
|
54
|
-
body0: {
|
|
55
|
-
lineHeight: 1.5,
|
|
56
|
-
fontWeight: 400,
|
|
57
|
-
fontSize: t(16)
|
|
58
|
-
},
|
|
59
|
-
body1: {
|
|
60
|
-
lineHeight: 1.5,
|
|
61
|
-
fontWeight: 400,
|
|
62
|
-
fontSize: t(14)
|
|
63
|
-
},
|
|
64
|
-
body2: {
|
|
65
|
-
lineHeight: 1.5,
|
|
66
|
-
fontWeight: 400,
|
|
67
|
-
fontSize: t(12)
|
|
68
|
-
},
|
|
69
|
-
caption: {
|
|
70
|
-
lineHeight: 1.5,
|
|
71
|
-
fontSize: t(11)
|
|
72
|
-
},
|
|
73
|
-
overline: {
|
|
74
|
-
fontWeight: 700,
|
|
75
|
-
lineHeight: 1.5,
|
|
76
|
-
fontSize: t(12),
|
|
77
|
-
textTransform: "uppercase"
|
|
78
|
-
},
|
|
79
|
-
button: {
|
|
80
|
-
fontWeight: 700,
|
|
81
|
-
lineHeight: 24 / 14,
|
|
82
|
-
fontSize: t(14),
|
|
83
|
-
textTransform: "capitalize"
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
export {
|
|
87
|
-
o as t
|
|
88
|
-
};
|
package/theme/typography.d.ts
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
export declare const typography: {
|
|
2
|
-
readonly fontFamily: "Public Sans, sans-serif";
|
|
3
|
-
readonly fontWeightRegular: 400;
|
|
4
|
-
readonly fontWeightMedium: 600;
|
|
5
|
-
readonly fontWeightBold: 700;
|
|
6
|
-
readonly h1: {
|
|
7
|
-
readonly '@media (min-width:600px)': {
|
|
8
|
-
fontSize: string;
|
|
9
|
-
};
|
|
10
|
-
readonly '@media (min-width:900px)': {
|
|
11
|
-
fontSize: string;
|
|
12
|
-
};
|
|
13
|
-
readonly '@media (min-width:1200px)': {
|
|
14
|
-
fontSize: string;
|
|
15
|
-
};
|
|
16
|
-
readonly fontWeight: 700;
|
|
17
|
-
readonly lineHeight: number;
|
|
18
|
-
readonly fontSize: string;
|
|
19
|
-
readonly letterSpacing: 2;
|
|
20
|
-
};
|
|
21
|
-
readonly h2: {
|
|
22
|
-
readonly '@media (min-width:600px)': {
|
|
23
|
-
fontSize: string;
|
|
24
|
-
};
|
|
25
|
-
readonly '@media (min-width:900px)': {
|
|
26
|
-
fontSize: string;
|
|
27
|
-
};
|
|
28
|
-
readonly '@media (min-width:1200px)': {
|
|
29
|
-
fontSize: string;
|
|
30
|
-
};
|
|
31
|
-
readonly fontWeight: 700;
|
|
32
|
-
readonly lineHeight: number;
|
|
33
|
-
readonly fontSize: string;
|
|
34
|
-
};
|
|
35
|
-
readonly h3: {
|
|
36
|
-
readonly '@media (min-width:600px)': {
|
|
37
|
-
fontSize: string;
|
|
38
|
-
};
|
|
39
|
-
readonly '@media (min-width:900px)': {
|
|
40
|
-
fontSize: string;
|
|
41
|
-
};
|
|
42
|
-
readonly '@media (min-width:1200px)': {
|
|
43
|
-
fontSize: string;
|
|
44
|
-
};
|
|
45
|
-
readonly fontWeight: 700;
|
|
46
|
-
readonly lineHeight: 1.5;
|
|
47
|
-
readonly fontSize: string;
|
|
48
|
-
};
|
|
49
|
-
readonly h4: {
|
|
50
|
-
readonly '@media (min-width:600px)': {
|
|
51
|
-
fontSize: string;
|
|
52
|
-
};
|
|
53
|
-
readonly '@media (min-width:900px)': {
|
|
54
|
-
fontSize: string;
|
|
55
|
-
};
|
|
56
|
-
readonly '@media (min-width:1200px)': {
|
|
57
|
-
fontSize: string;
|
|
58
|
-
};
|
|
59
|
-
readonly fontWeight: 700;
|
|
60
|
-
readonly lineHeight: 1.5;
|
|
61
|
-
readonly fontSize: string;
|
|
62
|
-
};
|
|
63
|
-
readonly h5: {
|
|
64
|
-
readonly '@media (min-width:600px)': {
|
|
65
|
-
fontSize: string;
|
|
66
|
-
};
|
|
67
|
-
readonly '@media (min-width:900px)': {
|
|
68
|
-
fontSize: string;
|
|
69
|
-
};
|
|
70
|
-
readonly '@media (min-width:1200px)': {
|
|
71
|
-
fontSize: string;
|
|
72
|
-
};
|
|
73
|
-
readonly fontWeight: 700;
|
|
74
|
-
readonly lineHeight: 1.5;
|
|
75
|
-
readonly fontSize: string;
|
|
76
|
-
};
|
|
77
|
-
readonly h6: {
|
|
78
|
-
readonly '@media (min-width:600px)': {
|
|
79
|
-
fontSize: string;
|
|
80
|
-
};
|
|
81
|
-
readonly '@media (min-width:900px)': {
|
|
82
|
-
fontSize: string;
|
|
83
|
-
};
|
|
84
|
-
readonly '@media (min-width:1200px)': {
|
|
85
|
-
fontSize: string;
|
|
86
|
-
};
|
|
87
|
-
readonly fontWeight: 700;
|
|
88
|
-
readonly lineHeight: number;
|
|
89
|
-
readonly fontSize: string;
|
|
90
|
-
};
|
|
91
|
-
readonly subtitle1: {
|
|
92
|
-
readonly fontWeight: 600;
|
|
93
|
-
readonly lineHeight: 1.5;
|
|
94
|
-
readonly fontSize: string;
|
|
95
|
-
};
|
|
96
|
-
readonly subtitle2: {
|
|
97
|
-
readonly fontWeight: 600;
|
|
98
|
-
readonly lineHeight: 1.5;
|
|
99
|
-
readonly fontSize: string;
|
|
100
|
-
};
|
|
101
|
-
readonly body0: {
|
|
102
|
-
readonly lineHeight: 1.5;
|
|
103
|
-
readonly fontWeight: 400;
|
|
104
|
-
readonly fontSize: string;
|
|
105
|
-
};
|
|
106
|
-
readonly body1: {
|
|
107
|
-
readonly lineHeight: 1.5;
|
|
108
|
-
readonly fontWeight: 400;
|
|
109
|
-
readonly fontSize: string;
|
|
110
|
-
};
|
|
111
|
-
readonly body2: {
|
|
112
|
-
readonly lineHeight: 1.5;
|
|
113
|
-
readonly fontWeight: 400;
|
|
114
|
-
readonly fontSize: string;
|
|
115
|
-
};
|
|
116
|
-
readonly caption: {
|
|
117
|
-
readonly lineHeight: 1.5;
|
|
118
|
-
readonly fontSize: string;
|
|
119
|
-
};
|
|
120
|
-
readonly overline: {
|
|
121
|
-
readonly fontWeight: 700;
|
|
122
|
-
readonly lineHeight: 1.5;
|
|
123
|
-
readonly fontSize: string;
|
|
124
|
-
readonly textTransform: "uppercase";
|
|
125
|
-
};
|
|
126
|
-
readonly button: {
|
|
127
|
-
readonly fontWeight: 700;
|
|
128
|
-
readonly lineHeight: number;
|
|
129
|
-
readonly fontSize: string;
|
|
130
|
-
readonly textTransform: "capitalize";
|
|
131
|
-
};
|
|
132
|
-
};
|
package/types/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface SkeletonProps {
|
|
2
|
-
isSkeleton?: boolean;
|
|
3
|
-
width?: string | number;
|
|
4
|
-
height?: string | number;
|
|
5
|
-
}
|
|
6
|
-
export declare type ThemeColorPresets = 'default' | 'purple' | 'cyan' | 'blue' | 'orange' | 'red';
|
|
7
|
-
export type { HostThemeType } from '../contexts/HostThemeContext/types';
|
package/utils/anchorEl.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare type AnchorEl = HTMLElement | (() => HTMLElement);
|
|
2
|
-
export interface AnchorOrigin {
|
|
3
|
-
vertical: 'top' | 'center' | 'bottom' | number;
|
|
4
|
-
horizontal: 'left' | 'center' | 'right' | number;
|
|
5
|
-
}
|
|
6
|
-
export interface AnchorPosition {
|
|
7
|
-
top: number;
|
|
8
|
-
left: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const getAnchorElPositionWindow: (anchorElement: HTMLElement, newWindowRect: Pick<DOMRect, 'width' | 'height'>, anchorOrigin: AnchorOrigin, transformOrigin: AnchorOrigin, marginThreshold?: number) => {
|
|
11
|
-
top: number;
|
|
12
|
-
left: number;
|
|
13
|
-
};
|