@undefine-ui/design-system 1.0.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/LICENSE +21 -0
- package/README.md +99 -0
- package/dist/index.cjs +6976 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1551 -0
- package/dist/index.d.ts +1551 -0
- package/dist/index.js +6831 -0
- package/dist/index.js.map +1 -0
- package/package.json +67 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,1551 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { SetStateAction, ElementType } from 'react';
|
|
4
|
+
import { Breakpoint, Shadows, Components, Theme, SxProps as SxProps$1 } from '@mui/material/styles';
|
|
5
|
+
import * as _mui_material from '@mui/material';
|
|
6
|
+
import { SxProps, Theme as Theme$1 } from '@mui/material';
|
|
7
|
+
import { BoxProps } from '@mui/material/Box';
|
|
8
|
+
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
9
|
+
import { DataGridProps } from '@mui/x-data-grid';
|
|
10
|
+
import { DropzoneOptions } from 'react-dropzone';
|
|
11
|
+
import { FieldValues, UseFormReturn, SubmitHandler } from 'react-hook-form';
|
|
12
|
+
import { AutocompleteProps } from '@mui/material/Autocomplete';
|
|
13
|
+
import { CheckboxProps } from '@mui/material/Checkbox';
|
|
14
|
+
import { FormGroupProps } from '@mui/material/FormGroup';
|
|
15
|
+
import { FormLabelProps } from '@mui/material/FormLabel';
|
|
16
|
+
import { FormControlProps } from '@mui/material/FormControl';
|
|
17
|
+
import { FormHelperTextProps } from '@mui/material/FormHelperText';
|
|
18
|
+
import { FormControlLabelProps } from '@mui/material/FormControlLabel';
|
|
19
|
+
import { RadioProps } from '@mui/material/Radio';
|
|
20
|
+
import { RadioGroupProps } from '@mui/material/RadioGroup';
|
|
21
|
+
import { SwitchProps } from '@mui/material/Switch';
|
|
22
|
+
import { TextFieldProps } from '@mui/material/TextField';
|
|
23
|
+
|
|
24
|
+
declare const isEqual: (a: any, b: any) => boolean;
|
|
25
|
+
declare const orderBy: <T>(array: T[], properties: (keyof T)[], orders?: ("asc" | "desc")[]) => T[];
|
|
26
|
+
|
|
27
|
+
declare const paramCase: (str: string) => string;
|
|
28
|
+
declare const snakeCase: (str: string) => string;
|
|
29
|
+
declare const sentenceCase: (string: string) => string;
|
|
30
|
+
|
|
31
|
+
interface FormatOptions extends Intl.NumberFormatOptions {
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Formats a number according to the specified locale.
|
|
35
|
+
* Uses Intl.NumberFormat for locale-aware number formatting.
|
|
36
|
+
* If no locale is provided, the runtime's default locale is used.
|
|
37
|
+
* @param inputValue - The number or value convertible to a number to format.
|
|
38
|
+
* @param locale - Optional. A string with a BCP 47 language tag (e.g., "en-US", "de-DE").
|
|
39
|
+
* @param options - Optional Intl.NumberFormatOptions to customize formatting.
|
|
40
|
+
* @returns The formatted number string, or an empty string if the input is invalid.
|
|
41
|
+
*/
|
|
42
|
+
declare const fNumber: (inputValue: unknown, locale?: string, options?: FormatOptions) => string;
|
|
43
|
+
/**
|
|
44
|
+
* Formats a number as currency according to the specified locale and currency code.
|
|
45
|
+
* Uses Intl.NumberFormat with 'currency' style.
|
|
46
|
+
* @param inputValue - The number or value convertible to a number to format as currency.
|
|
47
|
+
* @param currency - The ISO 4217 currency code (e.g., "USD", "EUR").
|
|
48
|
+
* @param locale - Optional. A string with a BCP 47 language tag (e.g., "en-US"). Defaults to runtime's locale.
|
|
49
|
+
* @param options - Optional Intl.NumberFormatOptions to customize formatting.
|
|
50
|
+
* @returns The formatted currency string, or an empty string if the input is invalid.
|
|
51
|
+
*/
|
|
52
|
+
declare const fCurrency: (inputValue: unknown, currency?: string, locale?: string, options?: FormatOptions) => string;
|
|
53
|
+
/**
|
|
54
|
+
* Retrieves the currency symbol for a given currency code and locale.
|
|
55
|
+
* @param currency - The ISO 4217 currency code (e.g., "USD", "EUR").
|
|
56
|
+
* @param locale - Optional. A string with a BCP 47 language tag. Defaults to runtime's locale.
|
|
57
|
+
* @returns The currency symbol (e.g., "$", "£", "€") or null if it cannot be determined.
|
|
58
|
+
*/
|
|
59
|
+
declare const getCurrencySymbol: (currency: string, locale?: string) => string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Formats a number as a percentage according to the specified locale.
|
|
62
|
+
* The input value is divided by 100 before formatting.
|
|
63
|
+
* @param inputValue - The number to format as a percentage (e.g., 50 for 50%).
|
|
64
|
+
* @param locale - Optional. A string with a BCP 47 language tag. Defaults to runtime's locale.
|
|
65
|
+
* @param options - Optional Intl.NumberFormatOptions to customize formatting.
|
|
66
|
+
* @returns The formatted percentage string, or an empty string if the input is invalid.
|
|
67
|
+
*/
|
|
68
|
+
declare const fPercent: (inputValue: unknown, locale?: string, options?: FormatOptions) => string;
|
|
69
|
+
/**
|
|
70
|
+
* Formats a number using compact notation (e.g., 1.2K, 5M) for a given locale.
|
|
71
|
+
* Converts the notation suffix (K, M, B, T) to lowercase.
|
|
72
|
+
* @param inputValue - The number or value convertible to a number to format.
|
|
73
|
+
* @param locale - Optional. A string with a BCP 47 language tag. Defaults to runtime's locale.
|
|
74
|
+
* @param options - Optional Intl.NumberFormatOptions to customize formatting.
|
|
75
|
+
* @returns The formatted number string with a compact, lowercase suffix, or an empty string if the input is invalid.
|
|
76
|
+
*/
|
|
77
|
+
declare const fShortenNumber: (inputValue: unknown, locale?: string, options?: FormatOptions) => string;
|
|
78
|
+
/**
|
|
79
|
+
* Formats a number representing bytes into a human-readable data size string (e.g., "1.23 Kb", "4.56 Mb").
|
|
80
|
+
* @param inputValue - The number of bytes or a value convertible to a number.
|
|
81
|
+
* @returns The formatted data size string (e.g., "1.5 Kb", "10 Mb"), or "0 bytes" if the input is invalid or 0.
|
|
82
|
+
*/
|
|
83
|
+
declare const fData: (inputValue: unknown) => string;
|
|
84
|
+
|
|
85
|
+
interface UseBooleanReturnType {
|
|
86
|
+
value: boolean;
|
|
87
|
+
onTrue: () => void;
|
|
88
|
+
onFalse: () => void;
|
|
89
|
+
onToggle: () => void;
|
|
90
|
+
setValue: React.Dispatch<React.SetStateAction<boolean>>;
|
|
91
|
+
}
|
|
92
|
+
declare const useBoolean: (defaultValue?: boolean) => UseBooleanReturnType;
|
|
93
|
+
|
|
94
|
+
declare const STORAGE_KEY = "app-settings";
|
|
95
|
+
type SettingsValueProps = {
|
|
96
|
+
colorScheme: 'light' | 'dark';
|
|
97
|
+
contrast: 'default' | 'hight';
|
|
98
|
+
primaryColor: 'default';
|
|
99
|
+
fontFamily: string;
|
|
100
|
+
navLayout: 'main' | 'mini';
|
|
101
|
+
};
|
|
102
|
+
declare const defaultSettings: SettingsValueProps;
|
|
103
|
+
|
|
104
|
+
type SettingsContextProps = SettingsValueProps & {
|
|
105
|
+
onUpdate: (updateState: React.SetStateAction<SettingsValueProps>) => void;
|
|
106
|
+
onUpdateField: <K extends keyof SettingsValueProps>(name: K, updateValue: SettingsValueProps[K]) => void;
|
|
107
|
+
canReset: boolean;
|
|
108
|
+
onReset: VoidFunction;
|
|
109
|
+
openDrawer: boolean;
|
|
110
|
+
onToggleDrawer: VoidFunction;
|
|
111
|
+
onCloseDrawer: VoidFunction;
|
|
112
|
+
};
|
|
113
|
+
declare const SettingsContext: react.Context<SettingsContextProps>;
|
|
114
|
+
declare const SettingsConsumer: react.Consumer<SettingsContextProps>;
|
|
115
|
+
interface SettingsProviderProps {
|
|
116
|
+
children: React.ReactNode;
|
|
117
|
+
settings: SettingsValueProps;
|
|
118
|
+
}
|
|
119
|
+
declare const SettingsProvider: ({ children, settings }: SettingsProviderProps) => react_jsx_runtime.JSX.Element;
|
|
120
|
+
|
|
121
|
+
declare const useSettings: () => SettingsContextProps;
|
|
122
|
+
|
|
123
|
+
type ReturnType = boolean;
|
|
124
|
+
type Query = 'up' | 'down' | 'between' | 'only';
|
|
125
|
+
type Value = Breakpoint | number;
|
|
126
|
+
declare const useResponsive: (query: Query, start?: Value, end?: Value) => ReturnType;
|
|
127
|
+
declare const useWidth: () => "sm" | "md" | "lg" | "xs" | "xl" | "2xl";
|
|
128
|
+
|
|
129
|
+
declare const useLocalStorage: <T>(key: string, initialState: T) => {
|
|
130
|
+
state: T;
|
|
131
|
+
setState: (updateState: SetStateAction<T>) => void;
|
|
132
|
+
setField: <K extends keyof T>(name: K, updateValue: T[K]) => void;
|
|
133
|
+
resetState: () => void;
|
|
134
|
+
canReset: boolean;
|
|
135
|
+
};
|
|
136
|
+
declare const getStorage: <T>(key: string) => T | null;
|
|
137
|
+
declare const setStorage: <T>(key: string, value: T) => void;
|
|
138
|
+
declare const removeStorage: (key: string) => void;
|
|
139
|
+
declare const LocalStorageAvailable: () => boolean;
|
|
140
|
+
declare const LocalStorageGetItem: (key: string, defaultValue?: string) => string | undefined;
|
|
141
|
+
|
|
142
|
+
type useEventListenerOptions = {
|
|
143
|
+
eventName: string;
|
|
144
|
+
handler: (event: Event) => void;
|
|
145
|
+
element?: React.RefObject<HTMLElement>;
|
|
146
|
+
options?: AddEventListenerOptions;
|
|
147
|
+
};
|
|
148
|
+
declare const useEventListener: ({ eventName, handler, element, options }: useEventListenerOptions) => void;
|
|
149
|
+
|
|
150
|
+
declare const useCopyToClipboard: () => {
|
|
151
|
+
copy: (text: string) => Promise<boolean>;
|
|
152
|
+
copiedText: string;
|
|
153
|
+
isCopied: boolean;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
interface RadiusOptions {
|
|
157
|
+
'radius-0': string;
|
|
158
|
+
'radius-2xs': string;
|
|
159
|
+
'radius-xs': string;
|
|
160
|
+
'radius-sm': string;
|
|
161
|
+
'radius-md': string;
|
|
162
|
+
'radius-lg': string;
|
|
163
|
+
'radius-xl': string;
|
|
164
|
+
'radius-2xl': string;
|
|
165
|
+
'radius-3xl': string;
|
|
166
|
+
'radius-4xl': string;
|
|
167
|
+
'radius-5xl': string;
|
|
168
|
+
'radius-pill': string;
|
|
169
|
+
}
|
|
170
|
+
declare function radius(baseRadius: number): RadiusOptions;
|
|
171
|
+
|
|
172
|
+
declare function shadows(colorScheme: 'light' | 'dark'): Shadows;
|
|
173
|
+
|
|
174
|
+
type ColorSchema = 'primary' | 'secondary' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
175
|
+
declare const grey: {
|
|
176
|
+
[x: string]: string;
|
|
177
|
+
};
|
|
178
|
+
declare const primary: {
|
|
179
|
+
[x: string]: string;
|
|
180
|
+
};
|
|
181
|
+
declare const secondary: {
|
|
182
|
+
[x: string]: string;
|
|
183
|
+
};
|
|
184
|
+
declare const neutral: {
|
|
185
|
+
[x: string]: string;
|
|
186
|
+
};
|
|
187
|
+
declare const info: {
|
|
188
|
+
[x: string]: string;
|
|
189
|
+
};
|
|
190
|
+
declare const success: {
|
|
191
|
+
[x: string]: string;
|
|
192
|
+
};
|
|
193
|
+
declare const warning: {
|
|
194
|
+
[x: string]: string;
|
|
195
|
+
};
|
|
196
|
+
declare const error: {
|
|
197
|
+
[x: string]: string;
|
|
198
|
+
};
|
|
199
|
+
declare const common: {
|
|
200
|
+
[x: string]: string;
|
|
201
|
+
};
|
|
202
|
+
declare const text: {
|
|
203
|
+
light: {
|
|
204
|
+
[x: string]: string;
|
|
205
|
+
};
|
|
206
|
+
dark: {
|
|
207
|
+
[x: string]: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
declare const background: {
|
|
211
|
+
light: {
|
|
212
|
+
[x: string]: string;
|
|
213
|
+
};
|
|
214
|
+
dark: {
|
|
215
|
+
[x: string]: string;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
declare const surface: {
|
|
219
|
+
light: {
|
|
220
|
+
[x: string]: string;
|
|
221
|
+
};
|
|
222
|
+
dark: {
|
|
223
|
+
[x: string]: string;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
declare const border: {
|
|
227
|
+
light: {
|
|
228
|
+
[x: string]: string;
|
|
229
|
+
};
|
|
230
|
+
dark: {
|
|
231
|
+
[x: string]: string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
declare const icon: {
|
|
235
|
+
light: {
|
|
236
|
+
[x: string]: string;
|
|
237
|
+
};
|
|
238
|
+
dark: {
|
|
239
|
+
[x: string]: string;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
declare const baseAction: {
|
|
243
|
+
hover: string;
|
|
244
|
+
selected: string;
|
|
245
|
+
focus: string;
|
|
246
|
+
disabled: string;
|
|
247
|
+
disabledBackground: string;
|
|
248
|
+
hoverOpacity: number;
|
|
249
|
+
disabledOpacity: number;
|
|
250
|
+
};
|
|
251
|
+
declare const action: {
|
|
252
|
+
light: {
|
|
253
|
+
active: string;
|
|
254
|
+
hover: string;
|
|
255
|
+
selected: string;
|
|
256
|
+
focus: string;
|
|
257
|
+
disabled: string;
|
|
258
|
+
disabledBackground: string;
|
|
259
|
+
hoverOpacity: number;
|
|
260
|
+
disabledOpacity: number;
|
|
261
|
+
};
|
|
262
|
+
dark: {
|
|
263
|
+
active: string;
|
|
264
|
+
hover: string;
|
|
265
|
+
selected: string;
|
|
266
|
+
focus: string;
|
|
267
|
+
disabled: string;
|
|
268
|
+
disabledBackground: string;
|
|
269
|
+
hoverOpacity: number;
|
|
270
|
+
disabledOpacity: number;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
declare const basePalette: {
|
|
274
|
+
primary: {
|
|
275
|
+
[x: string]: string;
|
|
276
|
+
};
|
|
277
|
+
secondary: {
|
|
278
|
+
[x: string]: string;
|
|
279
|
+
};
|
|
280
|
+
neutral: {
|
|
281
|
+
[x: string]: string;
|
|
282
|
+
};
|
|
283
|
+
info: {
|
|
284
|
+
[x: string]: string;
|
|
285
|
+
};
|
|
286
|
+
success: {
|
|
287
|
+
[x: string]: string;
|
|
288
|
+
};
|
|
289
|
+
warning: {
|
|
290
|
+
[x: string]: string;
|
|
291
|
+
};
|
|
292
|
+
error: {
|
|
293
|
+
[x: string]: string;
|
|
294
|
+
};
|
|
295
|
+
grey: {
|
|
296
|
+
[x: string]: string;
|
|
297
|
+
};
|
|
298
|
+
common: {
|
|
299
|
+
[x: string]: string;
|
|
300
|
+
};
|
|
301
|
+
divider: string;
|
|
302
|
+
action: {
|
|
303
|
+
light: {
|
|
304
|
+
active: string;
|
|
305
|
+
hover: string;
|
|
306
|
+
selected: string;
|
|
307
|
+
focus: string;
|
|
308
|
+
disabled: string;
|
|
309
|
+
disabledBackground: string;
|
|
310
|
+
hoverOpacity: number;
|
|
311
|
+
disabledOpacity: number;
|
|
312
|
+
};
|
|
313
|
+
dark: {
|
|
314
|
+
active: string;
|
|
315
|
+
hover: string;
|
|
316
|
+
selected: string;
|
|
317
|
+
focus: string;
|
|
318
|
+
disabled: string;
|
|
319
|
+
disabledBackground: string;
|
|
320
|
+
hoverOpacity: number;
|
|
321
|
+
disabledOpacity: number;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
declare const lightPalette: {
|
|
326
|
+
text: {
|
|
327
|
+
[x: string]: string;
|
|
328
|
+
};
|
|
329
|
+
background: {
|
|
330
|
+
[x: string]: string;
|
|
331
|
+
};
|
|
332
|
+
surface: {
|
|
333
|
+
[x: string]: string;
|
|
334
|
+
};
|
|
335
|
+
border: {
|
|
336
|
+
[x: string]: string;
|
|
337
|
+
};
|
|
338
|
+
icon: {
|
|
339
|
+
[x: string]: string;
|
|
340
|
+
};
|
|
341
|
+
action: {
|
|
342
|
+
active: string;
|
|
343
|
+
hover: string;
|
|
344
|
+
selected: string;
|
|
345
|
+
focus: string;
|
|
346
|
+
disabled: string;
|
|
347
|
+
disabledBackground: string;
|
|
348
|
+
hoverOpacity: number;
|
|
349
|
+
disabledOpacity: number;
|
|
350
|
+
};
|
|
351
|
+
primary: {
|
|
352
|
+
[x: string]: string;
|
|
353
|
+
};
|
|
354
|
+
secondary: {
|
|
355
|
+
[x: string]: string;
|
|
356
|
+
};
|
|
357
|
+
neutral: {
|
|
358
|
+
[x: string]: string;
|
|
359
|
+
};
|
|
360
|
+
info: {
|
|
361
|
+
[x: string]: string;
|
|
362
|
+
};
|
|
363
|
+
success: {
|
|
364
|
+
[x: string]: string;
|
|
365
|
+
};
|
|
366
|
+
warning: {
|
|
367
|
+
[x: string]: string;
|
|
368
|
+
};
|
|
369
|
+
error: {
|
|
370
|
+
[x: string]: string;
|
|
371
|
+
};
|
|
372
|
+
grey: {
|
|
373
|
+
[x: string]: string;
|
|
374
|
+
};
|
|
375
|
+
common: {
|
|
376
|
+
[x: string]: string;
|
|
377
|
+
};
|
|
378
|
+
divider: string;
|
|
379
|
+
};
|
|
380
|
+
declare const darkPalette: {
|
|
381
|
+
text: {
|
|
382
|
+
[x: string]: string;
|
|
383
|
+
};
|
|
384
|
+
background: {
|
|
385
|
+
[x: string]: string;
|
|
386
|
+
};
|
|
387
|
+
surface: {
|
|
388
|
+
[x: string]: string;
|
|
389
|
+
};
|
|
390
|
+
border: {
|
|
391
|
+
[x: string]: string;
|
|
392
|
+
};
|
|
393
|
+
icon: {
|
|
394
|
+
[x: string]: string;
|
|
395
|
+
};
|
|
396
|
+
action: {
|
|
397
|
+
active: string;
|
|
398
|
+
hover: string;
|
|
399
|
+
selected: string;
|
|
400
|
+
focus: string;
|
|
401
|
+
disabled: string;
|
|
402
|
+
disabledBackground: string;
|
|
403
|
+
hoverOpacity: number;
|
|
404
|
+
disabledOpacity: number;
|
|
405
|
+
};
|
|
406
|
+
primary: {
|
|
407
|
+
[x: string]: string;
|
|
408
|
+
};
|
|
409
|
+
secondary: {
|
|
410
|
+
[x: string]: string;
|
|
411
|
+
};
|
|
412
|
+
neutral: {
|
|
413
|
+
[x: string]: string;
|
|
414
|
+
};
|
|
415
|
+
info: {
|
|
416
|
+
[x: string]: string;
|
|
417
|
+
};
|
|
418
|
+
success: {
|
|
419
|
+
[x: string]: string;
|
|
420
|
+
};
|
|
421
|
+
warning: {
|
|
422
|
+
[x: string]: string;
|
|
423
|
+
};
|
|
424
|
+
error: {
|
|
425
|
+
[x: string]: string;
|
|
426
|
+
};
|
|
427
|
+
grey: {
|
|
428
|
+
[x: string]: string;
|
|
429
|
+
};
|
|
430
|
+
common: {
|
|
431
|
+
[x: string]: string;
|
|
432
|
+
};
|
|
433
|
+
divider: string;
|
|
434
|
+
};
|
|
435
|
+
declare const colorSchemes: {
|
|
436
|
+
light: {
|
|
437
|
+
palette: {
|
|
438
|
+
text: {
|
|
439
|
+
[x: string]: string;
|
|
440
|
+
};
|
|
441
|
+
background: {
|
|
442
|
+
[x: string]: string;
|
|
443
|
+
};
|
|
444
|
+
surface: {
|
|
445
|
+
[x: string]: string;
|
|
446
|
+
};
|
|
447
|
+
border: {
|
|
448
|
+
[x: string]: string;
|
|
449
|
+
};
|
|
450
|
+
icon: {
|
|
451
|
+
[x: string]: string;
|
|
452
|
+
};
|
|
453
|
+
action: {
|
|
454
|
+
active: string;
|
|
455
|
+
hover: string;
|
|
456
|
+
selected: string;
|
|
457
|
+
focus: string;
|
|
458
|
+
disabled: string;
|
|
459
|
+
disabledBackground: string;
|
|
460
|
+
hoverOpacity: number;
|
|
461
|
+
disabledOpacity: number;
|
|
462
|
+
};
|
|
463
|
+
primary: {
|
|
464
|
+
[x: string]: string;
|
|
465
|
+
};
|
|
466
|
+
secondary: {
|
|
467
|
+
[x: string]: string;
|
|
468
|
+
};
|
|
469
|
+
neutral: {
|
|
470
|
+
[x: string]: string;
|
|
471
|
+
};
|
|
472
|
+
info: {
|
|
473
|
+
[x: string]: string;
|
|
474
|
+
};
|
|
475
|
+
success: {
|
|
476
|
+
[x: string]: string;
|
|
477
|
+
};
|
|
478
|
+
warning: {
|
|
479
|
+
[x: string]: string;
|
|
480
|
+
};
|
|
481
|
+
error: {
|
|
482
|
+
[x: string]: string;
|
|
483
|
+
};
|
|
484
|
+
grey: {
|
|
485
|
+
[x: string]: string;
|
|
486
|
+
};
|
|
487
|
+
common: {
|
|
488
|
+
[x: string]: string;
|
|
489
|
+
};
|
|
490
|
+
divider: string;
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
dark: {
|
|
494
|
+
palette: {
|
|
495
|
+
text: {
|
|
496
|
+
[x: string]: string;
|
|
497
|
+
};
|
|
498
|
+
background: {
|
|
499
|
+
[x: string]: string;
|
|
500
|
+
};
|
|
501
|
+
surface: {
|
|
502
|
+
[x: string]: string;
|
|
503
|
+
};
|
|
504
|
+
border: {
|
|
505
|
+
[x: string]: string;
|
|
506
|
+
};
|
|
507
|
+
icon: {
|
|
508
|
+
[x: string]: string;
|
|
509
|
+
};
|
|
510
|
+
action: {
|
|
511
|
+
active: string;
|
|
512
|
+
hover: string;
|
|
513
|
+
selected: string;
|
|
514
|
+
focus: string;
|
|
515
|
+
disabled: string;
|
|
516
|
+
disabledBackground: string;
|
|
517
|
+
hoverOpacity: number;
|
|
518
|
+
disabledOpacity: number;
|
|
519
|
+
};
|
|
520
|
+
primary: {
|
|
521
|
+
[x: string]: string;
|
|
522
|
+
};
|
|
523
|
+
secondary: {
|
|
524
|
+
[x: string]: string;
|
|
525
|
+
};
|
|
526
|
+
neutral: {
|
|
527
|
+
[x: string]: string;
|
|
528
|
+
};
|
|
529
|
+
info: {
|
|
530
|
+
[x: string]: string;
|
|
531
|
+
};
|
|
532
|
+
success: {
|
|
533
|
+
[x: string]: string;
|
|
534
|
+
};
|
|
535
|
+
warning: {
|
|
536
|
+
[x: string]: string;
|
|
537
|
+
};
|
|
538
|
+
error: {
|
|
539
|
+
[x: string]: string;
|
|
540
|
+
};
|
|
541
|
+
grey: {
|
|
542
|
+
[x: string]: string;
|
|
543
|
+
};
|
|
544
|
+
common: {
|
|
545
|
+
[x: string]: string;
|
|
546
|
+
};
|
|
547
|
+
divider: string;
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
declare const primaryFont: string;
|
|
553
|
+
declare const secondaryFont: string;
|
|
554
|
+
declare const tertiaryFont: string;
|
|
555
|
+
declare const typography: {
|
|
556
|
+
fontFamily: string;
|
|
557
|
+
fontSecondaryFamily: string;
|
|
558
|
+
fontTertiaryFamily: string;
|
|
559
|
+
fontWeightLight: string;
|
|
560
|
+
fontWeightRegular: string;
|
|
561
|
+
fontWeightMedium: string;
|
|
562
|
+
fontWeightSemiBold: string;
|
|
563
|
+
fontWeightBold: string;
|
|
564
|
+
displayLarge: {
|
|
565
|
+
fontWeight: number;
|
|
566
|
+
lineHeight: number;
|
|
567
|
+
letterSpacing: string;
|
|
568
|
+
fontSize: string;
|
|
569
|
+
fontFamily: string;
|
|
570
|
+
};
|
|
571
|
+
displaySmall: {
|
|
572
|
+
fontWeight: number;
|
|
573
|
+
lineHeight: number;
|
|
574
|
+
letterSpacing: string;
|
|
575
|
+
fontSize: string;
|
|
576
|
+
fontFamily: string;
|
|
577
|
+
};
|
|
578
|
+
h1: {
|
|
579
|
+
fontWeight: number;
|
|
580
|
+
lineHeight: number;
|
|
581
|
+
letterSpacing: string;
|
|
582
|
+
fontSize: string;
|
|
583
|
+
fontFamily: string;
|
|
584
|
+
};
|
|
585
|
+
h2: {
|
|
586
|
+
fontWeight: number;
|
|
587
|
+
lineHeight: number;
|
|
588
|
+
letterSpacing: string;
|
|
589
|
+
fontSize: string;
|
|
590
|
+
fontFamily: string;
|
|
591
|
+
};
|
|
592
|
+
h3: {
|
|
593
|
+
fontWeight: number;
|
|
594
|
+
lineHeight: number;
|
|
595
|
+
letterSpacing: string;
|
|
596
|
+
fontSize: string;
|
|
597
|
+
fontFamily: string;
|
|
598
|
+
};
|
|
599
|
+
h4: {
|
|
600
|
+
fontWeight: number;
|
|
601
|
+
lineHeight: number;
|
|
602
|
+
letterSpacing: string;
|
|
603
|
+
fontSize: string;
|
|
604
|
+
fontFamily: string;
|
|
605
|
+
};
|
|
606
|
+
h5: {
|
|
607
|
+
fontWeight: number;
|
|
608
|
+
lineHeight: number;
|
|
609
|
+
letterSpacing: string;
|
|
610
|
+
fontSize: string;
|
|
611
|
+
fontFamily: string;
|
|
612
|
+
};
|
|
613
|
+
h6: {
|
|
614
|
+
fontWeight: number;
|
|
615
|
+
lineHeight: number;
|
|
616
|
+
letterSpacing: string;
|
|
617
|
+
fontSize: string;
|
|
618
|
+
fontFamily: string;
|
|
619
|
+
};
|
|
620
|
+
h7: {
|
|
621
|
+
fontWeight: number;
|
|
622
|
+
lineHeight: number;
|
|
623
|
+
letterSpacing: string;
|
|
624
|
+
fontFamily: string;
|
|
625
|
+
fontSize: string;
|
|
626
|
+
};
|
|
627
|
+
h8: {
|
|
628
|
+
fontWeight: number;
|
|
629
|
+
lineHeight: number;
|
|
630
|
+
letterSpacing: string;
|
|
631
|
+
fontFamily: string;
|
|
632
|
+
fontSize: string;
|
|
633
|
+
};
|
|
634
|
+
bodyXl: {
|
|
635
|
+
fontWeight: number;
|
|
636
|
+
lineHeight: number;
|
|
637
|
+
letterSpacing: string;
|
|
638
|
+
fontFamily: string;
|
|
639
|
+
fontSize: string;
|
|
640
|
+
};
|
|
641
|
+
bodyLg: {
|
|
642
|
+
fontWeight: number;
|
|
643
|
+
lineHeight: number;
|
|
644
|
+
letterSpacing: string;
|
|
645
|
+
fontFamily: string;
|
|
646
|
+
fontSize: string;
|
|
647
|
+
};
|
|
648
|
+
bodyMd: {
|
|
649
|
+
fontWeight: number;
|
|
650
|
+
lineHeight: number;
|
|
651
|
+
letterSpacing: string;
|
|
652
|
+
fontFamily: string;
|
|
653
|
+
fontSize: string;
|
|
654
|
+
};
|
|
655
|
+
bodySm: {
|
|
656
|
+
fontWeight: number;
|
|
657
|
+
lineHeight: number;
|
|
658
|
+
letterSpacing: string;
|
|
659
|
+
fontFamily: string;
|
|
660
|
+
fontSize: string;
|
|
661
|
+
};
|
|
662
|
+
bodyXs: {
|
|
663
|
+
fontWeight: number;
|
|
664
|
+
lineHeight: number;
|
|
665
|
+
letterSpacing: string;
|
|
666
|
+
fontFamily: string;
|
|
667
|
+
fontSize: string;
|
|
668
|
+
};
|
|
669
|
+
kpiValue: {
|
|
670
|
+
fontWeight: number;
|
|
671
|
+
lineHeight: number;
|
|
672
|
+
letterSpacing: string;
|
|
673
|
+
fontFamily: string;
|
|
674
|
+
fontSize: string;
|
|
675
|
+
};
|
|
676
|
+
subtitle1: {
|
|
677
|
+
fontWeight: number;
|
|
678
|
+
lineHeight: number;
|
|
679
|
+
fontFamily: string;
|
|
680
|
+
fontSize: string;
|
|
681
|
+
};
|
|
682
|
+
subtitle2: {
|
|
683
|
+
fontWeight: number;
|
|
684
|
+
lineHeight: number;
|
|
685
|
+
fontFamily: string;
|
|
686
|
+
fontSize: string;
|
|
687
|
+
};
|
|
688
|
+
body1: {
|
|
689
|
+
lineHeight: number;
|
|
690
|
+
fontFamily: string;
|
|
691
|
+
fontSize: string;
|
|
692
|
+
};
|
|
693
|
+
body2: {
|
|
694
|
+
lineHeight: number;
|
|
695
|
+
fontFamily: string;
|
|
696
|
+
fontSize: string;
|
|
697
|
+
};
|
|
698
|
+
caption: {
|
|
699
|
+
lineHeight: number;
|
|
700
|
+
fontSize: string;
|
|
701
|
+
};
|
|
702
|
+
overline: {
|
|
703
|
+
fontWeight: number;
|
|
704
|
+
lineHeight: number;
|
|
705
|
+
fontSize: string;
|
|
706
|
+
textTransform: string;
|
|
707
|
+
};
|
|
708
|
+
button: {
|
|
709
|
+
fontWeight: number;
|
|
710
|
+
lineHeight: number;
|
|
711
|
+
fontSize: string;
|
|
712
|
+
textTransform: string;
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
|
|
716
|
+
declare const components: Components<Theme>;
|
|
717
|
+
|
|
718
|
+
declare const breakpoints: () => {
|
|
719
|
+
values: {
|
|
720
|
+
xs: number;
|
|
721
|
+
sm: number;
|
|
722
|
+
md: number;
|
|
723
|
+
lg: number;
|
|
724
|
+
xl: number;
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
|
|
728
|
+
declare function createShadowColor(colorChannel: string): string;
|
|
729
|
+
interface CustomShadowOptions {
|
|
730
|
+
'shadow-sm': string;
|
|
731
|
+
'shadow-md': string;
|
|
732
|
+
'shadow-lg': string;
|
|
733
|
+
}
|
|
734
|
+
declare function customShadows(colorScheme: 'light' | 'dark'): CustomShadowOptions;
|
|
735
|
+
|
|
736
|
+
interface CustomSpacingOptions {
|
|
737
|
+
'spacing-0': string;
|
|
738
|
+
'spacing-2xs': string;
|
|
739
|
+
'spacing-xs': string;
|
|
740
|
+
'spacing-sm': string;
|
|
741
|
+
'spacing-md': string;
|
|
742
|
+
'spacing-lg': string;
|
|
743
|
+
'spacing-xl': string;
|
|
744
|
+
'spacing-2xl': string;
|
|
745
|
+
'spacing-3xl': string;
|
|
746
|
+
'spacing-4xl': string;
|
|
747
|
+
'spacing-5xl': string;
|
|
748
|
+
'spacing-6xl': string;
|
|
749
|
+
}
|
|
750
|
+
declare function customSpacing(baseSpacing: number): CustomSpacingOptions;
|
|
751
|
+
|
|
752
|
+
interface DataTableProps extends Omit<DataGridProps, 'rows'> {
|
|
753
|
+
data: any[];
|
|
754
|
+
toggleFilters?: () => void;
|
|
755
|
+
}
|
|
756
|
+
declare const Table: (props: DataTableProps) => react_jsx_runtime.JSX.Element;
|
|
757
|
+
|
|
758
|
+
interface TableNoRowsProps {
|
|
759
|
+
noRowsTitle?: React.ReactNode;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
declare const TablePagination: () => react_jsx_runtime.JSX.Element;
|
|
763
|
+
|
|
764
|
+
type GreyColorVariants = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950' | 'A100' | 'A200' | 'A400' | 'A700';
|
|
765
|
+
type GreyChannelSuffix = {
|
|
766
|
+
[K in GreyColorVariants as `${K}Channel`]: string;
|
|
767
|
+
};
|
|
768
|
+
declare module '@mui/material/styles' {
|
|
769
|
+
interface TypeBackground {
|
|
770
|
+
neutral: string;
|
|
771
|
+
}
|
|
772
|
+
interface Color extends GreyChannelSuffix {
|
|
773
|
+
}
|
|
774
|
+
interface CommonColors {
|
|
775
|
+
whiteChannel: string;
|
|
776
|
+
blackChannel: string;
|
|
777
|
+
}
|
|
778
|
+
interface CssVarsPalette {
|
|
779
|
+
neutral: {
|
|
780
|
+
50: string;
|
|
781
|
+
100: string;
|
|
782
|
+
200: string;
|
|
783
|
+
300: string;
|
|
784
|
+
400: string;
|
|
785
|
+
500: string;
|
|
786
|
+
600: string;
|
|
787
|
+
700: string;
|
|
788
|
+
800: string;
|
|
789
|
+
900: string;
|
|
790
|
+
950: string;
|
|
791
|
+
light: string;
|
|
792
|
+
main: string;
|
|
793
|
+
dark: string;
|
|
794
|
+
contrastText: string;
|
|
795
|
+
'50Channel': string;
|
|
796
|
+
'100Channel': string;
|
|
797
|
+
'200Channel': string;
|
|
798
|
+
'300Channel': string;
|
|
799
|
+
'400Channel': string;
|
|
800
|
+
'500Channel': string;
|
|
801
|
+
'600Channel': string;
|
|
802
|
+
'700Channel': string;
|
|
803
|
+
'800Channel': string;
|
|
804
|
+
'900Channel': string;
|
|
805
|
+
'950Channel': string;
|
|
806
|
+
lightChannel: string;
|
|
807
|
+
mainChannel: string;
|
|
808
|
+
darkChannel: string;
|
|
809
|
+
};
|
|
810
|
+
surface: {
|
|
811
|
+
page: string;
|
|
812
|
+
subtle: string;
|
|
813
|
+
primary: string;
|
|
814
|
+
secondary: string;
|
|
815
|
+
info: string;
|
|
816
|
+
success: string;
|
|
817
|
+
warning: string;
|
|
818
|
+
error: string;
|
|
819
|
+
disable: string;
|
|
820
|
+
pageChannel: string;
|
|
821
|
+
subtleChannel: string;
|
|
822
|
+
primaryChannel: string;
|
|
823
|
+
secondaryChannel: string;
|
|
824
|
+
infoChannel: string;
|
|
825
|
+
successChannel: string;
|
|
826
|
+
warningChannel: string;
|
|
827
|
+
errorChannel: string;
|
|
828
|
+
disableChannel: string;
|
|
829
|
+
};
|
|
830
|
+
border: {
|
|
831
|
+
default: string;
|
|
832
|
+
focus: string;
|
|
833
|
+
subtle: string;
|
|
834
|
+
primary: string;
|
|
835
|
+
secondary: string;
|
|
836
|
+
info: string;
|
|
837
|
+
success: string;
|
|
838
|
+
warning: string;
|
|
839
|
+
error: string;
|
|
840
|
+
mute: string;
|
|
841
|
+
defaultChannel: string;
|
|
842
|
+
focusChannel: string;
|
|
843
|
+
subtleChannel: string;
|
|
844
|
+
primaryChannel: string;
|
|
845
|
+
secondaryChannel: string;
|
|
846
|
+
infoChannel: string;
|
|
847
|
+
successChannel: string;
|
|
848
|
+
warningChannel: string;
|
|
849
|
+
errorChannel: string;
|
|
850
|
+
muteChannel: string;
|
|
851
|
+
};
|
|
852
|
+
icon: {
|
|
853
|
+
white: string;
|
|
854
|
+
black: string;
|
|
855
|
+
secondary: string;
|
|
856
|
+
info: string;
|
|
857
|
+
success: string;
|
|
858
|
+
warning: string;
|
|
859
|
+
error: string;
|
|
860
|
+
disable: string;
|
|
861
|
+
whiteChannel: string;
|
|
862
|
+
blackChannel: string;
|
|
863
|
+
primaryChannel: string;
|
|
864
|
+
secondaryChannel: string;
|
|
865
|
+
infoChannel: string;
|
|
866
|
+
successChannel: string;
|
|
867
|
+
warningChannel: string;
|
|
868
|
+
errorChannel: string;
|
|
869
|
+
disableChannel: string;
|
|
870
|
+
};
|
|
871
|
+
}
|
|
872
|
+
interface SimplePaletteColorOptions {
|
|
873
|
+
50?: string;
|
|
874
|
+
100?: string;
|
|
875
|
+
200?: string;
|
|
876
|
+
300?: string;
|
|
877
|
+
400?: string;
|
|
878
|
+
500?: string;
|
|
879
|
+
600?: string;
|
|
880
|
+
700?: string;
|
|
881
|
+
800?: string;
|
|
882
|
+
900?: string;
|
|
883
|
+
950?: string;
|
|
884
|
+
}
|
|
885
|
+
interface PaletteColor {
|
|
886
|
+
50: string;
|
|
887
|
+
100: string;
|
|
888
|
+
200: string;
|
|
889
|
+
300: string;
|
|
890
|
+
400: string;
|
|
891
|
+
500: string;
|
|
892
|
+
600: string;
|
|
893
|
+
700: string;
|
|
894
|
+
800: string;
|
|
895
|
+
900: string;
|
|
896
|
+
950: string;
|
|
897
|
+
}
|
|
898
|
+
interface PaletteColorChannel {
|
|
899
|
+
'50Channel': string;
|
|
900
|
+
'100Channel': string;
|
|
901
|
+
'200Channel': string;
|
|
902
|
+
'300Channel': string;
|
|
903
|
+
'400Channel': string;
|
|
904
|
+
'500Channel': string;
|
|
905
|
+
'600Channel': string;
|
|
906
|
+
'700Channel': string;
|
|
907
|
+
'800Channel': string;
|
|
908
|
+
'900Channel': string;
|
|
909
|
+
'950Channel': string;
|
|
910
|
+
}
|
|
911
|
+
interface TypeText {
|
|
912
|
+
header: string;
|
|
913
|
+
body: string;
|
|
914
|
+
placeholder: string;
|
|
915
|
+
action: string;
|
|
916
|
+
disable: string;
|
|
917
|
+
info: string;
|
|
918
|
+
hyperlinks: string;
|
|
919
|
+
success: string;
|
|
920
|
+
warning: string;
|
|
921
|
+
error: string;
|
|
922
|
+
headerChannel: string;
|
|
923
|
+
bodyChannel: string;
|
|
924
|
+
placeholderChannel: string;
|
|
925
|
+
actionChannel: string;
|
|
926
|
+
disableChannel: string;
|
|
927
|
+
infoChannel: string;
|
|
928
|
+
hyperlinksChannel: string;
|
|
929
|
+
successChannel: string;
|
|
930
|
+
warningChannel: string;
|
|
931
|
+
errorChannel: string;
|
|
932
|
+
}
|
|
933
|
+
interface Theme {
|
|
934
|
+
customShadows: CustomShadowOptions;
|
|
935
|
+
radius: RadiusOptions;
|
|
936
|
+
customSpacing: CustomSpacingOptions;
|
|
937
|
+
}
|
|
938
|
+
interface ThemeOptions {
|
|
939
|
+
customShadows?: CustomShadowOptions;
|
|
940
|
+
radius?: RadiusOptions;
|
|
941
|
+
customSpacing?: CustomSpacingOptions;
|
|
942
|
+
}
|
|
943
|
+
interface TypographyVariants {
|
|
944
|
+
fontSecondaryFamily: React.CSSProperties['fontFamily'];
|
|
945
|
+
fontTertiaryFamily: React.CSSProperties['fontFamily'];
|
|
946
|
+
fontWeightSemiBold: React.CSSProperties['fontWeight'];
|
|
947
|
+
displayLarge: React.CSSProperties;
|
|
948
|
+
displaySmall: React.CSSProperties;
|
|
949
|
+
h7: React.CSSProperties;
|
|
950
|
+
h8: React.CSSProperties;
|
|
951
|
+
bodyXl: React.CSSProperties;
|
|
952
|
+
bodyLg: React.CSSProperties;
|
|
953
|
+
bodyMd: React.CSSProperties;
|
|
954
|
+
bodySm: React.CSSProperties;
|
|
955
|
+
bodyXs: React.CSSProperties;
|
|
956
|
+
kpiValue: React.CSSProperties;
|
|
957
|
+
}
|
|
958
|
+
interface BreakpointOverrides {
|
|
959
|
+
'2xl': true;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
declare module '@mui/material/Avatar' {
|
|
963
|
+
interface AvatarPropsVariantOverrides {
|
|
964
|
+
userSm: true;
|
|
965
|
+
userMd: true;
|
|
966
|
+
userLg: true;
|
|
967
|
+
brandXs: true;
|
|
968
|
+
brandSm: true;
|
|
969
|
+
brandMd: true;
|
|
970
|
+
brandLg: true;
|
|
971
|
+
brandInitialXs: true;
|
|
972
|
+
brandInitialSm: true;
|
|
973
|
+
brandInitialMd: true;
|
|
974
|
+
brandInitialLg: true;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
declare module '@mui/material/AvatarGroup' {
|
|
978
|
+
interface AvatarGroupPropsVariantOverrides {
|
|
979
|
+
compact: true;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
declare module '@mui/material/Button' {
|
|
983
|
+
interface ButtonPropsVariantOverrides {
|
|
984
|
+
primary: true;
|
|
985
|
+
secondary: true;
|
|
986
|
+
tertiary: true;
|
|
987
|
+
}
|
|
988
|
+
interface ButtonPropsColorOverrides {
|
|
989
|
+
neutral: true;
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
declare module '@mui/material/ButtonGroup' {
|
|
993
|
+
interface ButtonGroupPropsVariantOverrides {
|
|
994
|
+
primary: true;
|
|
995
|
+
secondary: true;
|
|
996
|
+
tertiary: true;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
declare module '@mui/material/Fab' {
|
|
1000
|
+
interface FabPropsVariantOverrides {
|
|
1001
|
+
outlined: true;
|
|
1002
|
+
outlinedExtended: true;
|
|
1003
|
+
soft: true;
|
|
1004
|
+
softExtended: true;
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
declare module '@mui/material/Badge' {
|
|
1008
|
+
interface BadgePropsVariantOverrides {
|
|
1009
|
+
alway: true;
|
|
1010
|
+
busy: true;
|
|
1011
|
+
online: true;
|
|
1012
|
+
offline: true;
|
|
1013
|
+
invisible: true;
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
declare module '@mui/material/Badge' {
|
|
1017
|
+
interface BadgePropsVariantOverrides {
|
|
1018
|
+
alway: true;
|
|
1019
|
+
busy: true;
|
|
1020
|
+
online: true;
|
|
1021
|
+
offline: true;
|
|
1022
|
+
invisible: true;
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
declare module '@mui/material/Chip' {
|
|
1026
|
+
interface ChipPropsVariantOverrides {
|
|
1027
|
+
soft: true;
|
|
1028
|
+
}
|
|
1029
|
+
interface ChipPropsColorOverrides {
|
|
1030
|
+
neutral: true;
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
declare module '@mui/material/Pagination' {
|
|
1034
|
+
interface PaginationPropsVariantOverrides {
|
|
1035
|
+
soft: true;
|
|
1036
|
+
}
|
|
1037
|
+
interface PaginationPropsColorOverrides {
|
|
1038
|
+
info: true;
|
|
1039
|
+
success: true;
|
|
1040
|
+
warning: true;
|
|
1041
|
+
error: true;
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
declare module '@mui/material/Slider' {
|
|
1045
|
+
interface SliderPropsColorOverrides {
|
|
1046
|
+
inherit: true;
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
declare module '@mui/material/TextField' {
|
|
1050
|
+
interface TextFieldPropsSizeOverrides {
|
|
1051
|
+
large: true;
|
|
1052
|
+
xl: true;
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
declare module '@mui/material/ToggleButton' {
|
|
1056
|
+
interface ToggleButtonPropsColorOverrides {
|
|
1057
|
+
neutral: true;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
declare module '@mui/material/Typography' {
|
|
1061
|
+
interface TypographyPropsVariantOverrides {
|
|
1062
|
+
displayLarge: true;
|
|
1063
|
+
displaySmall: true;
|
|
1064
|
+
h7: true;
|
|
1065
|
+
h8: true;
|
|
1066
|
+
bodyXl: true;
|
|
1067
|
+
bodyLg: true;
|
|
1068
|
+
bodyMd: true;
|
|
1069
|
+
bodySm: true;
|
|
1070
|
+
bodyXs: true;
|
|
1071
|
+
kpiValue: true;
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
declare module '@mui/material/Checkbox' {
|
|
1075
|
+
interface CheckboxPropsSizeOverrides {
|
|
1076
|
+
large: true;
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
declare module '@mui/material/Switch' {
|
|
1080
|
+
interface SwitchPropsSizeOverrides {
|
|
1081
|
+
large: true;
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
declare module '@mui/material/Radio' {
|
|
1085
|
+
interface RadioPropsSizeOverrides {
|
|
1086
|
+
large: true;
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
declare module '@mui/x-data-grid' {
|
|
1090
|
+
interface NoRowsOverlayPropsOverrides extends TableNoRowsProps {
|
|
1091
|
+
}
|
|
1092
|
+
interface NoResultsOverlayPropsOverrides extends TableNoRowsProps {
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
declare module '@mui/material/PaginationItem' {
|
|
1096
|
+
interface PaginationItemPropsColorOverrides {
|
|
1097
|
+
info: true;
|
|
1098
|
+
error: true;
|
|
1099
|
+
success: true;
|
|
1100
|
+
warning: true;
|
|
1101
|
+
}
|
|
1102
|
+
interface PaginationItemPropsVariantOverrides {
|
|
1103
|
+
soft: true;
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
declare const stylesMode: {
|
|
1108
|
+
light: string;
|
|
1109
|
+
dark: string;
|
|
1110
|
+
};
|
|
1111
|
+
declare const mediaQueries: {
|
|
1112
|
+
upXs: string;
|
|
1113
|
+
upSm: string;
|
|
1114
|
+
upMd: string;
|
|
1115
|
+
upLg: string;
|
|
1116
|
+
upXl: string;
|
|
1117
|
+
};
|
|
1118
|
+
/**
|
|
1119
|
+
* Set font family
|
|
1120
|
+
*/
|
|
1121
|
+
declare const setFont: (fontName: string) => string;
|
|
1122
|
+
/**
|
|
1123
|
+
* Converts rem to px
|
|
1124
|
+
*/
|
|
1125
|
+
declare const remToPx: (value: string) => number;
|
|
1126
|
+
/**
|
|
1127
|
+
* Converts px to rem
|
|
1128
|
+
*/
|
|
1129
|
+
declare const pxToRem: (value: number) => string;
|
|
1130
|
+
/**
|
|
1131
|
+
* Responsive font sizes
|
|
1132
|
+
*/
|
|
1133
|
+
declare const responsiveFontSizes: ({ sm, md, lg }: {
|
|
1134
|
+
sm: number;
|
|
1135
|
+
md: number;
|
|
1136
|
+
lg: number;
|
|
1137
|
+
}) => {
|
|
1138
|
+
[mediaQueries.upSm]: {
|
|
1139
|
+
fontSize: string;
|
|
1140
|
+
};
|
|
1141
|
+
[mediaQueries.upMd]: {
|
|
1142
|
+
fontSize: string;
|
|
1143
|
+
};
|
|
1144
|
+
[mediaQueries.upLg]: {
|
|
1145
|
+
fontSize: string;
|
|
1146
|
+
};
|
|
1147
|
+
};
|
|
1148
|
+
/**
|
|
1149
|
+
* Converts a hex color to RGB channels
|
|
1150
|
+
*/
|
|
1151
|
+
declare const hexToRgbChannel: (hex: string) => string;
|
|
1152
|
+
/**
|
|
1153
|
+
* Converts a hex color to RGB channels
|
|
1154
|
+
*/
|
|
1155
|
+
declare const createPaletteChannel: (hexPalette: Record<string, string>) => {
|
|
1156
|
+
[x: string]: string;
|
|
1157
|
+
};
|
|
1158
|
+
/**
|
|
1159
|
+
* Color with alpha channel
|
|
1160
|
+
*/
|
|
1161
|
+
declare const varAlpha: (color: string, opacity?: number) => string;
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* Usage:
|
|
1165
|
+
* ...hideScrollX,
|
|
1166
|
+
* ...hideScrollY,
|
|
1167
|
+
*/
|
|
1168
|
+
declare const hideScrollX: {
|
|
1169
|
+
msOverflowStyle: string;
|
|
1170
|
+
scrollbarWidth: string;
|
|
1171
|
+
overflowX: string;
|
|
1172
|
+
'&::-webkit-scrollbar': {
|
|
1173
|
+
display: string;
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
declare const hideScrollY: {
|
|
1177
|
+
msOverflowStyle: string;
|
|
1178
|
+
scrollbarWidth: string;
|
|
1179
|
+
overflowY: string;
|
|
1180
|
+
'&::-webkit-scrollbar': {
|
|
1181
|
+
display: string;
|
|
1182
|
+
};
|
|
1183
|
+
};
|
|
1184
|
+
/**
|
|
1185
|
+
* Usage:
|
|
1186
|
+
* ...textGradient(`to right, ${theme.vars.palette.text.primary}, ${alpha(theme.vars.palette.text.primary, 0.2)}`
|
|
1187
|
+
*/
|
|
1188
|
+
declare const textGradient: (color: string) => {
|
|
1189
|
+
background: string;
|
|
1190
|
+
WebkitBackgroundClip: string;
|
|
1191
|
+
WebkitTextFillColor: string;
|
|
1192
|
+
backgroundClip: string;
|
|
1193
|
+
textFillColor: string;
|
|
1194
|
+
color: string;
|
|
1195
|
+
};
|
|
1196
|
+
/**
|
|
1197
|
+
* Usage:
|
|
1198
|
+
* ...borderGradient({ color: `to right, ${theme.vars.palette.text.primary}, ${alpha(theme.vars.palette.text.primary, 0.2)}`, padding: '4px' }),
|
|
1199
|
+
*/
|
|
1200
|
+
interface BorderGradientProps {
|
|
1201
|
+
color?: string;
|
|
1202
|
+
padding?: string;
|
|
1203
|
+
}
|
|
1204
|
+
declare const borderGradient: (props: BorderGradientProps) => {
|
|
1205
|
+
background?: string | undefined;
|
|
1206
|
+
inset: number;
|
|
1207
|
+
width: string;
|
|
1208
|
+
content: string;
|
|
1209
|
+
height: string;
|
|
1210
|
+
margin: string;
|
|
1211
|
+
position: string;
|
|
1212
|
+
borderRadius: string;
|
|
1213
|
+
padding: string;
|
|
1214
|
+
mask: string;
|
|
1215
|
+
WebkitMask: string;
|
|
1216
|
+
maskComposite: string;
|
|
1217
|
+
WebkitMaskComposite: string;
|
|
1218
|
+
};
|
|
1219
|
+
/**
|
|
1220
|
+
* Usage:
|
|
1221
|
+
* ...bgGradient({ color: `to right, ${theme.vars.palette.grey[900]} 25%, ${varAlpha(theme.vars.palette.primary.darkerChannel, 0.88)}`, imgUrl: '/assets/background/overlay.png' }),
|
|
1222
|
+
*/
|
|
1223
|
+
interface BgGradientProps {
|
|
1224
|
+
color?: string;
|
|
1225
|
+
imgUrl?: string;
|
|
1226
|
+
}
|
|
1227
|
+
declare function bgGradient({ color, imgUrl }: BgGradientProps): {
|
|
1228
|
+
background: string;
|
|
1229
|
+
backgroundSize: string;
|
|
1230
|
+
backgroundRepeat: string;
|
|
1231
|
+
backgroundPosition: string;
|
|
1232
|
+
} | {
|
|
1233
|
+
background: string;
|
|
1234
|
+
backgroundSize?: undefined;
|
|
1235
|
+
backgroundRepeat?: undefined;
|
|
1236
|
+
backgroundPosition?: undefined;
|
|
1237
|
+
};
|
|
1238
|
+
/**
|
|
1239
|
+
* Usage:
|
|
1240
|
+
* ...bgBlur({ color: `varAlpha(theme.vars.palette.surface.paperChannel, 0.8)`, imgUrl: '/assets/background/overlay.png', blur: 6 }),
|
|
1241
|
+
*/
|
|
1242
|
+
interface BgBlurProps {
|
|
1243
|
+
color?: string;
|
|
1244
|
+
blur?: number;
|
|
1245
|
+
imgUrl?: string;
|
|
1246
|
+
}
|
|
1247
|
+
declare const bgBlur: ({ color, blur, imgUrl }: BgBlurProps) => SxProps<Theme$1>;
|
|
1248
|
+
/**
|
|
1249
|
+
* Usage:
|
|
1250
|
+
* ...maxLine({ line: 2, persistent: theme.typography.caption }),
|
|
1251
|
+
*/
|
|
1252
|
+
interface Persistent {
|
|
1253
|
+
fontSize?: string | number;
|
|
1254
|
+
lineHeight?: string | number;
|
|
1255
|
+
[key: string]: any;
|
|
1256
|
+
}
|
|
1257
|
+
interface MaxLineProps {
|
|
1258
|
+
line: number;
|
|
1259
|
+
persistent?: Persistent;
|
|
1260
|
+
}
|
|
1261
|
+
declare const maxLine: ({ line, persistent }: MaxLineProps) => {
|
|
1262
|
+
overflow: string;
|
|
1263
|
+
display: string;
|
|
1264
|
+
textOverflow: string;
|
|
1265
|
+
WebkitLineClamp: number;
|
|
1266
|
+
WebkitBoxOrient: string;
|
|
1267
|
+
};
|
|
1268
|
+
/**
|
|
1269
|
+
* Usage:
|
|
1270
|
+
* ...paper({ theme, color: varAlpha(theme.vars.palette.surface.pageChannel, 0.9), dropdown: true }),
|
|
1271
|
+
*/
|
|
1272
|
+
declare function paper({ theme, color, dropdown }: {
|
|
1273
|
+
theme: Theme$1;
|
|
1274
|
+
color?: string;
|
|
1275
|
+
dropdown?: boolean;
|
|
1276
|
+
}): SxProps<Theme$1>;
|
|
1277
|
+
/**
|
|
1278
|
+
* Usage:
|
|
1279
|
+
* ...menuItem(theme)
|
|
1280
|
+
*/
|
|
1281
|
+
declare const menuItem: (theme: Theme$1) => SxProps<Theme$1>;
|
|
1282
|
+
|
|
1283
|
+
declare const createTheme: (settings: SettingsValueProps) => Theme;
|
|
1284
|
+
|
|
1285
|
+
declare const schemeConfig: {
|
|
1286
|
+
modeStorageKey: string;
|
|
1287
|
+
defaultMode: "light" | "dark";
|
|
1288
|
+
};
|
|
1289
|
+
declare const getInitColorSchemeScript: react_jsx_runtime.JSX.Element;
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* [1] settings @primaryColor
|
|
1293
|
+
* [2] settings @contrast
|
|
1294
|
+
*/
|
|
1295
|
+
declare const updateCoreWithSettings: (theme: Theme, settings: SettingsValueProps) => Theme;
|
|
1296
|
+
declare const updateComponentsWithSettings: (settings: SettingsValueProps) => Pick<Theme, "components">;
|
|
1297
|
+
|
|
1298
|
+
type ThemeProviderProps = {
|
|
1299
|
+
children: React.ReactNode;
|
|
1300
|
+
};
|
|
1301
|
+
declare const ThemeProvider: ({ children }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1302
|
+
|
|
1303
|
+
declare const Eye: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1304
|
+
|
|
1305
|
+
declare const Copy: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1306
|
+
|
|
1307
|
+
declare const Trash: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1308
|
+
|
|
1309
|
+
declare const XMark: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1310
|
+
|
|
1311
|
+
declare const Loader: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1312
|
+
|
|
1313
|
+
declare const Search: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1314
|
+
|
|
1315
|
+
declare const UserFill: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1316
|
+
|
|
1317
|
+
declare const EyeClosed: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1318
|
+
|
|
1319
|
+
declare const XMarkSolid: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1320
|
+
|
|
1321
|
+
declare const CloudUpload: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1322
|
+
|
|
1323
|
+
declare const UserOutline: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1324
|
+
|
|
1325
|
+
declare const RadioSelect: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1326
|
+
|
|
1327
|
+
declare const RadioDefault: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1328
|
+
|
|
1329
|
+
declare const NavArrowDown: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1330
|
+
|
|
1331
|
+
declare const NavArrowLeft: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1332
|
+
|
|
1333
|
+
declare const NavArrowRight: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1334
|
+
|
|
1335
|
+
declare const ClipboardCheck: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1336
|
+
|
|
1337
|
+
declare const CheckboxSelect: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1338
|
+
|
|
1339
|
+
declare const InfoCircleFill: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1340
|
+
|
|
1341
|
+
declare const CheckboxDefault: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1342
|
+
|
|
1343
|
+
declare const InfoCircleOutline: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1344
|
+
|
|
1345
|
+
declare const LongArrowUpLeftSolid: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1346
|
+
|
|
1347
|
+
declare const CheckboxIndeterminate: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1348
|
+
|
|
1349
|
+
declare const Icons_CheckboxDefault: typeof CheckboxDefault;
|
|
1350
|
+
declare const Icons_CheckboxIndeterminate: typeof CheckboxIndeterminate;
|
|
1351
|
+
declare const Icons_CheckboxSelect: typeof CheckboxSelect;
|
|
1352
|
+
declare const Icons_ClipboardCheck: typeof ClipboardCheck;
|
|
1353
|
+
declare const Icons_CloudUpload: typeof CloudUpload;
|
|
1354
|
+
declare const Icons_Copy: typeof Copy;
|
|
1355
|
+
declare const Icons_Eye: typeof Eye;
|
|
1356
|
+
declare const Icons_EyeClosed: typeof EyeClosed;
|
|
1357
|
+
declare const Icons_InfoCircleFill: typeof InfoCircleFill;
|
|
1358
|
+
declare const Icons_InfoCircleOutline: typeof InfoCircleOutline;
|
|
1359
|
+
declare const Icons_Loader: typeof Loader;
|
|
1360
|
+
declare const Icons_LongArrowUpLeftSolid: typeof LongArrowUpLeftSolid;
|
|
1361
|
+
declare const Icons_NavArrowDown: typeof NavArrowDown;
|
|
1362
|
+
declare const Icons_NavArrowLeft: typeof NavArrowLeft;
|
|
1363
|
+
declare const Icons_NavArrowRight: typeof NavArrowRight;
|
|
1364
|
+
declare const Icons_RadioDefault: typeof RadioDefault;
|
|
1365
|
+
declare const Icons_RadioSelect: typeof RadioSelect;
|
|
1366
|
+
declare const Icons_Search: typeof Search;
|
|
1367
|
+
declare const Icons_Trash: typeof Trash;
|
|
1368
|
+
declare const Icons_UserFill: typeof UserFill;
|
|
1369
|
+
declare const Icons_UserOutline: typeof UserOutline;
|
|
1370
|
+
declare const Icons_XMark: typeof XMark;
|
|
1371
|
+
declare const Icons_XMarkSolid: typeof XMarkSolid;
|
|
1372
|
+
declare namespace Icons {
|
|
1373
|
+
export { Icons_CheckboxDefault as CheckboxDefault, Icons_CheckboxIndeterminate as CheckboxIndeterminate, Icons_CheckboxSelect as CheckboxSelect, Icons_ClipboardCheck as ClipboardCheck, Icons_CloudUpload as CloudUpload, Icons_Copy as Copy, Icons_Eye as Eye, Icons_EyeClosed as EyeClosed, Icons_InfoCircleFill as InfoCircleFill, Icons_InfoCircleOutline as InfoCircleOutline, Icons_Loader as Loader, Icons_LongArrowUpLeftSolid as LongArrowUpLeftSolid, Icons_NavArrowDown as NavArrowDown, Icons_NavArrowLeft as NavArrowLeft, Icons_NavArrowRight as NavArrowRight, Icons_RadioDefault as RadioDefault, Icons_RadioSelect as RadioSelect, Icons_Search as Search, Icons_Trash as Trash, Icons_UserFill as UserFill, Icons_UserOutline as UserOutline, Icons_XMark as XMark, Icons_XMarkSolid as XMarkSolid };
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
type IconType = keyof typeof Icons;
|
|
1377
|
+
|
|
1378
|
+
type IconProps = BoxProps & {
|
|
1379
|
+
icon: IconType;
|
|
1380
|
+
};
|
|
1381
|
+
declare const Icon: ({ icon, className, ...props }: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1382
|
+
|
|
1383
|
+
declare const iconClasses: {
|
|
1384
|
+
root: string;
|
|
1385
|
+
};
|
|
1386
|
+
|
|
1387
|
+
interface LogoProps extends BoxProps {
|
|
1388
|
+
disableLink?: boolean;
|
|
1389
|
+
isFull?: boolean;
|
|
1390
|
+
isWhite?: boolean;
|
|
1391
|
+
isBlack?: boolean;
|
|
1392
|
+
href?: string;
|
|
1393
|
+
LinkComponent?: ElementType;
|
|
1394
|
+
}
|
|
1395
|
+
declare const Logo: ({ sx, isFull, isWhite, isBlack, disableLink, LinkComponent, href, ...rest }: LogoProps) => react_jsx_runtime.JSX.Element;
|
|
1396
|
+
|
|
1397
|
+
interface UploadProps extends DropzoneOptions {
|
|
1398
|
+
error?: boolean;
|
|
1399
|
+
sx?: SxProps$1<Theme>;
|
|
1400
|
+
placeholder?: React.ReactNode;
|
|
1401
|
+
helperText?: React.ReactNode;
|
|
1402
|
+
disableMultiple?: boolean;
|
|
1403
|
+
value?: File | string | null | Array<File | string>;
|
|
1404
|
+
onDelete?: VoidFunction;
|
|
1405
|
+
onUpload?: VoidFunction;
|
|
1406
|
+
onRemove?: (file: File | string) => void;
|
|
1407
|
+
onRemoveAll?: VoidFunction;
|
|
1408
|
+
isUploading?: boolean;
|
|
1409
|
+
uploadProgress?: number;
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
declare const Upload: ({ sx, value, error, disabled, onDelete, onUpload, onRemove, helperText, onRemoveAll, uploadProgress, isUploading, multiple, ...rest }: UploadProps) => react_jsx_runtime.JSX.Element;
|
|
1413
|
+
|
|
1414
|
+
interface FormProps<T extends FieldValues> extends Omit<BoxProps, 'onSubmit'> {
|
|
1415
|
+
children: React.ReactNode;
|
|
1416
|
+
methods: UseFormReturn<T>;
|
|
1417
|
+
onSubmit?: SubmitHandler<T>;
|
|
1418
|
+
}
|
|
1419
|
+
declare const Form: <T extends FieldValues>({ children, onSubmit, methods, ...rest }: FormProps<T>) => react_jsx_runtime.JSX.Element;
|
|
1420
|
+
|
|
1421
|
+
interface RHFAutocompleteProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> extends AutocompleteProps<T, Multiple, DisableClearable, FreeSolo> {
|
|
1422
|
+
name: string;
|
|
1423
|
+
label?: string;
|
|
1424
|
+
required?: boolean;
|
|
1425
|
+
placeholder?: string;
|
|
1426
|
+
helperText?: React.ReactNode;
|
|
1427
|
+
handleChange?: (val: any) => void;
|
|
1428
|
+
}
|
|
1429
|
+
declare const RHFAutocomplete: <T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined>({ name, label, required, placeholder, helperText, handleChange, ...other }: Omit<RHFAutocompleteProps<T, Multiple, DisableClearable, FreeSolo>, "renderInput">) => react_jsx_runtime.JSX.Element;
|
|
1430
|
+
|
|
1431
|
+
interface RHFCheckboxProps extends Omit<FormControlLabelProps, 'name' | 'control' | 'slotProps'> {
|
|
1432
|
+
name: string;
|
|
1433
|
+
description?: string;
|
|
1434
|
+
helperText?: React.ReactNode;
|
|
1435
|
+
slotProps?: {
|
|
1436
|
+
wrap?: BoxProps['sx'];
|
|
1437
|
+
checkbox?: CheckboxProps;
|
|
1438
|
+
formLabel?: FormLabelProps;
|
|
1439
|
+
formHelperText?: FormHelperTextProps;
|
|
1440
|
+
};
|
|
1441
|
+
}
|
|
1442
|
+
declare const RHFCheckbox: ({ name, description, helperText, label, sx, slotProps, ...other }: RHFCheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
1443
|
+
interface RHFMultiCheckboxOption {
|
|
1444
|
+
label: string;
|
|
1445
|
+
value: string | number;
|
|
1446
|
+
description?: string;
|
|
1447
|
+
}
|
|
1448
|
+
interface RHFMultiCheckboxProps extends Omit<FormGroupProps, 'children'> {
|
|
1449
|
+
name: string;
|
|
1450
|
+
label?: string;
|
|
1451
|
+
options: RHFMultiCheckboxOption[];
|
|
1452
|
+
helperText?: React.ReactNode;
|
|
1453
|
+
row?: boolean;
|
|
1454
|
+
slotProps?: {
|
|
1455
|
+
formControl?: FormControlProps;
|
|
1456
|
+
checkbox?: CheckboxProps;
|
|
1457
|
+
formLabel?: FormLabelProps;
|
|
1458
|
+
formHelperText?: FormHelperTextProps;
|
|
1459
|
+
};
|
|
1460
|
+
}
|
|
1461
|
+
declare const RHFMultiCheckbox: ({ name, label, options, slotProps, helperText, row, ...other }: RHFMultiCheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
1462
|
+
|
|
1463
|
+
interface RHFRadioGroupOption {
|
|
1464
|
+
label: string;
|
|
1465
|
+
value: string | number;
|
|
1466
|
+
description?: string;
|
|
1467
|
+
}
|
|
1468
|
+
interface RHFRadioGroupProps extends Omit<RadioGroupProps, 'name' | 'control'> {
|
|
1469
|
+
name: string;
|
|
1470
|
+
label?: string;
|
|
1471
|
+
options: RHFRadioGroupOption[];
|
|
1472
|
+
description?: string;
|
|
1473
|
+
helperText?: React.ReactNode;
|
|
1474
|
+
slotProps?: {
|
|
1475
|
+
wrap?: FormControlProps['sx'];
|
|
1476
|
+
radio?: RadioProps;
|
|
1477
|
+
formLabel?: FormLabelProps;
|
|
1478
|
+
formHelperText?: FormHelperTextProps;
|
|
1479
|
+
};
|
|
1480
|
+
}
|
|
1481
|
+
declare const RHFRadioGroup: ({ name, label, options, helperText, slotProps, ...other }: RHFRadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1482
|
+
|
|
1483
|
+
interface RHFUploadProps extends Omit<UploadProps, 'value'> {
|
|
1484
|
+
name: string;
|
|
1485
|
+
multiple?: boolean;
|
|
1486
|
+
}
|
|
1487
|
+
declare const RHFUpload: ({ name, multiple, helperText, ...rest }: RHFUploadProps) => react_jsx_runtime.JSX.Element;
|
|
1488
|
+
|
|
1489
|
+
declare const Field: {
|
|
1490
|
+
Switch: ({ name, description, helperText, label, sx, slotProps, ...other }: Omit<_mui_material.FormControlLabelProps, "name" | "control"> & {
|
|
1491
|
+
name: string;
|
|
1492
|
+
description?: string;
|
|
1493
|
+
helperText?: React.ReactNode;
|
|
1494
|
+
slotProps?: {
|
|
1495
|
+
wrap?: _mui_material.BoxProps["sx"];
|
|
1496
|
+
switch?: _mui_material.SwitchProps;
|
|
1497
|
+
formHelperText?: _mui_material.FormHelperTextProps;
|
|
1498
|
+
};
|
|
1499
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1500
|
+
Upload: ({ name, multiple, helperText, ...rest }: RHFUploadProps) => react_jsx_runtime.JSX.Element;
|
|
1501
|
+
Text: ({ name, helperText, type, slotProps, ...rest }: _mui_material.TextFieldProps) => react_jsx_runtime.JSX.Element;
|
|
1502
|
+
Radio: ({ name, label, options, helperText, slotProps, ...other }: RHFRadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1503
|
+
Checkbox: ({ name, description, helperText, label, sx, slotProps, ...other }: RHFCheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
1504
|
+
Autocomplete: <T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined>({ name, label, required, placeholder, helperText, handleChange, ...other }: Omit<RHFAutocompleteProps<T, Multiple, DisableClearable, FreeSolo>, "renderInput">) => react_jsx_runtime.JSX.Element;
|
|
1505
|
+
MultiCheckbox: ({ name, label, options, slotProps, helperText, row, ...other }: RHFMultiCheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
1506
|
+
};
|
|
1507
|
+
|
|
1508
|
+
type RHFSwitchProps = Omit<FormControlLabelProps, 'name' | 'control'> & {
|
|
1509
|
+
name: string;
|
|
1510
|
+
description?: string;
|
|
1511
|
+
helperText?: React.ReactNode;
|
|
1512
|
+
slotProps?: {
|
|
1513
|
+
wrap?: BoxProps['sx'];
|
|
1514
|
+
switch?: SwitchProps;
|
|
1515
|
+
formHelperText?: FormHelperTextProps;
|
|
1516
|
+
};
|
|
1517
|
+
};
|
|
1518
|
+
declare const RHFSwitch: ({ name, description, helperText, label, sx, slotProps, ...other }: RHFSwitchProps) => react_jsx_runtime.JSX.Element;
|
|
1519
|
+
interface RHFMultiSwitchOption {
|
|
1520
|
+
label: string;
|
|
1521
|
+
value: string | number;
|
|
1522
|
+
}
|
|
1523
|
+
interface RHFMultiSwitchProps extends Omit<FormGroupProps, 'children'> {
|
|
1524
|
+
name: string;
|
|
1525
|
+
label?: string;
|
|
1526
|
+
options: RHFMultiSwitchOption[];
|
|
1527
|
+
helperText?: React.ReactNode;
|
|
1528
|
+
row?: boolean;
|
|
1529
|
+
slotProps?: {
|
|
1530
|
+
formControl?: FormControlProps;
|
|
1531
|
+
switch?: SwitchProps;
|
|
1532
|
+
formLabel?: FormLabelProps;
|
|
1533
|
+
formHelperText?: FormHelperTextProps;
|
|
1534
|
+
};
|
|
1535
|
+
}
|
|
1536
|
+
declare const RHFMultiSwitch: ({ name, label, options, helperText, slotProps, ...other }: RHFMultiSwitchProps) => react_jsx_runtime.JSX.Element;
|
|
1537
|
+
|
|
1538
|
+
declare const RHFTextField: ({ name, helperText, type, slotProps, ...rest }: TextFieldProps) => react_jsx_runtime.JSX.Element;
|
|
1539
|
+
|
|
1540
|
+
interface CopyButtonProps {
|
|
1541
|
+
text: string;
|
|
1542
|
+
size?: 'small' | 'medium';
|
|
1543
|
+
}
|
|
1544
|
+
declare const CopyButton: ({ text, size }: CopyButtonProps) => react_jsx_runtime.JSX.Element;
|
|
1545
|
+
|
|
1546
|
+
interface LoadingScreenProps extends BoxProps {
|
|
1547
|
+
portal?: boolean;
|
|
1548
|
+
}
|
|
1549
|
+
declare const LoadingScreen: ({ portal, sx, ...rest }: LoadingScreenProps) => react_jsx_runtime.JSX.Element;
|
|
1550
|
+
|
|
1551
|
+
export { CheckboxDefault, CheckboxIndeterminate, CheckboxSelect, ClipboardCheck, CloudUpload, type ColorSchema, Copy, CopyButton, type CustomShadowOptions, type CustomSpacingOptions, Eye, EyeClosed, Field, Form, Icon, type IconProps, type IconType, InfoCircleFill, InfoCircleOutline, Loader, LoadingScreen, LocalStorageAvailable, LocalStorageGetItem, Logo, LongArrowUpLeftSolid, NavArrowDown, NavArrowLeft, NavArrowRight, RHFAutocomplete, type RHFAutocompleteProps, RHFCheckbox, type RHFCheckboxProps, RHFMultiCheckbox, type RHFMultiCheckboxOption, type RHFMultiCheckboxProps, RHFMultiSwitch, RHFRadioGroup, type RHFRadioGroupProps, RHFSwitch, RHFTextField, RHFUpload, type RHFUploadProps, RadioDefault, RadioSelect, type RadiusOptions, STORAGE_KEY, Search, SettingsConsumer, SettingsContext, type SettingsContextProps, SettingsProvider, type SettingsValueProps, Table, type TableNoRowsProps, TablePagination, ThemeProvider, Trash, Upload, type UploadProps, type UseBooleanReturnType, UserFill, UserOutline, XMark, XMarkSolid, action, background, baseAction, basePalette, bgBlur, bgGradient, border, borderGradient, breakpoints, colorSchemes, common, components, createPaletteChannel, createShadowColor, createTheme, customShadows, customSpacing, darkPalette, defaultSettings, error, fCurrency, fData, fNumber, fPercent, fShortenNumber, getCurrencySymbol, getInitColorSchemeScript, getStorage, grey, hexToRgbChannel, hideScrollX, hideScrollY, icon, iconClasses, info, isEqual, lightPalette, maxLine, mediaQueries, menuItem, neutral, orderBy, paper, paramCase, primary, primaryFont, pxToRem, radius, remToPx, removeStorage, responsiveFontSizes, schemeConfig, secondary, secondaryFont, sentenceCase, setFont, setStorage, shadows, snakeCase, stylesMode, success, surface, tertiaryFont, text, textGradient, typography, updateComponentsWithSettings, updateCoreWithSettings, useBoolean, useCopyToClipboard, useEventListener, useLocalStorage, useResponsive, useSettings, useWidth, varAlpha, warning };
|