@useloops/design-system 1.4.244 → 1.4.246
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/esm/index.js +23 -0
- package/dist/index.d.ts +2075 -0
- package/dist/index.js +23 -0
- package/package.json +1 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2075 @@
|
|
|
1
|
+
import * as _mui_material from '@mui/material';
|
|
2
|
+
import { SxProps, Theme, PaperProps, PopperProps as PopperProps$1, CSSObject, AvatarGroupProps as AvatarGroupProps$1, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, FormControlLabelProps as FormControlLabelProps$1, Breakpoint, TypographyProps as TypographyProps$1, IconButtonProps as IconButtonProps$1, TooltipProps as TooltipProps$1, ButtonGroupProps, TextFieldProps as TextFieldProps$1, LinkProps as LinkProps$1, ClickAwayListenerProps, FadeProps, LinearProgressProps, SelectProps as SelectProps$1, SelectChangeEvent, SkeletonProps as SkeletonProps$1, SwitchProps as SwitchProps$1, PaletteMode, Direction } from '@mui/material';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import react__default, { FunctionComponent, PropsWithChildren, FC, ReactNode, Dispatch, SetStateAction, ReactElement, ChangeEvent } from 'react';
|
|
5
|
+
import { PopupState } from 'material-ui-popup-state/hooks';
|
|
6
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
+
import { SubmitHandler } from 'react-hook-form';
|
|
8
|
+
import { Theme as Theme$1 } from '@mui/material/styles';
|
|
9
|
+
import { NumericFormatProps } from 'react-number-format';
|
|
10
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
11
|
+
import * as _mui_system from '@mui/system';
|
|
12
|
+
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
13
|
+
import { Mark } from '@mui/material/Slider/useSlider.types';
|
|
14
|
+
import { LazyLoadImageProps } from 'react-lazy-load-image-component';
|
|
15
|
+
import { ChipProps } from '@mui/material/Chip';
|
|
16
|
+
|
|
17
|
+
interface ColorRange$1 {
|
|
18
|
+
0: string;
|
|
19
|
+
50?: string;
|
|
20
|
+
100: string;
|
|
21
|
+
200: string;
|
|
22
|
+
300: string;
|
|
23
|
+
400: string;
|
|
24
|
+
500: string;
|
|
25
|
+
600: string;
|
|
26
|
+
700: string;
|
|
27
|
+
800: string;
|
|
28
|
+
900: string;
|
|
29
|
+
950?: string;
|
|
30
|
+
1000: string;
|
|
31
|
+
1100?: string;
|
|
32
|
+
}
|
|
33
|
+
interface ColorRangeAlpha$1 {
|
|
34
|
+
0: string;
|
|
35
|
+
0.01: string;
|
|
36
|
+
1: string;
|
|
37
|
+
2: string;
|
|
38
|
+
3: string;
|
|
39
|
+
4: string;
|
|
40
|
+
5: string;
|
|
41
|
+
}
|
|
42
|
+
declare enum FontWeight {
|
|
43
|
+
DEFAULT = 400,
|
|
44
|
+
BOLD = 500
|
|
45
|
+
}
|
|
46
|
+
interface SemanticColor {
|
|
47
|
+
light: {
|
|
48
|
+
surface: {
|
|
49
|
+
sunken: string | undefined;
|
|
50
|
+
default: string | undefined;
|
|
51
|
+
raised: string | undefined;
|
|
52
|
+
overlay: string | undefined;
|
|
53
|
+
scrim: string | undefined;
|
|
54
|
+
transparent: string | undefined;
|
|
55
|
+
};
|
|
56
|
+
interaction: {
|
|
57
|
+
none: string | undefined;
|
|
58
|
+
hover: string | undefined;
|
|
59
|
+
press: string | undefined;
|
|
60
|
+
hoverOnDark: string | undefined;
|
|
61
|
+
pressOnDark: string | undefined;
|
|
62
|
+
disabled: string | undefined;
|
|
63
|
+
};
|
|
64
|
+
stroke: {
|
|
65
|
+
default: string | undefined;
|
|
66
|
+
focus: string | undefined;
|
|
67
|
+
disabled: string | undefined;
|
|
68
|
+
};
|
|
69
|
+
text: {
|
|
70
|
+
primary: string | undefined;
|
|
71
|
+
secondary: string | undefined;
|
|
72
|
+
placeholder: string | undefined;
|
|
73
|
+
disabled: string | undefined;
|
|
74
|
+
link: string | undefined;
|
|
75
|
+
linkHover: string | undefined;
|
|
76
|
+
primaryInverted: string | undefined;
|
|
77
|
+
secondaryInverted: string | undefined;
|
|
78
|
+
placeholderInverted: string | undefined;
|
|
79
|
+
disabledInverted: string | undefined;
|
|
80
|
+
positive: string | undefined;
|
|
81
|
+
negative: string | undefined;
|
|
82
|
+
lockedWhite: string | undefined;
|
|
83
|
+
};
|
|
84
|
+
icon: {
|
|
85
|
+
primary: string | undefined;
|
|
86
|
+
secondary: string | undefined;
|
|
87
|
+
disabled: string | undefined;
|
|
88
|
+
primaryInverted: string | undefined;
|
|
89
|
+
secondaryInverted: string | undefined;
|
|
90
|
+
disabledInverted: string | undefined;
|
|
91
|
+
positive: string | undefined;
|
|
92
|
+
negative: string | undefined;
|
|
93
|
+
lockedWhite: string | undefined;
|
|
94
|
+
link: string | undefined;
|
|
95
|
+
linkHover: string | undefined;
|
|
96
|
+
};
|
|
97
|
+
input: {
|
|
98
|
+
default: string | undefined;
|
|
99
|
+
disabled: string | undefined;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
dark: {
|
|
103
|
+
surface: {
|
|
104
|
+
sunken: string | undefined;
|
|
105
|
+
default: string | undefined;
|
|
106
|
+
raised: string | undefined;
|
|
107
|
+
overlay: string | undefined;
|
|
108
|
+
scrim: string | undefined;
|
|
109
|
+
transparent: string | undefined;
|
|
110
|
+
};
|
|
111
|
+
interaction: {
|
|
112
|
+
none: string | undefined;
|
|
113
|
+
hover: string | undefined;
|
|
114
|
+
press: string | undefined;
|
|
115
|
+
hoverOnDark: string | undefined;
|
|
116
|
+
pressOnDark: string | undefined;
|
|
117
|
+
disabled: string | undefined;
|
|
118
|
+
};
|
|
119
|
+
stroke: {
|
|
120
|
+
default: string | undefined;
|
|
121
|
+
focus: string | undefined;
|
|
122
|
+
disabled: string | undefined;
|
|
123
|
+
};
|
|
124
|
+
text: {
|
|
125
|
+
primary: string | undefined;
|
|
126
|
+
secondary: string | undefined;
|
|
127
|
+
placeholder: string | undefined;
|
|
128
|
+
disabled: string | undefined;
|
|
129
|
+
link: string | undefined;
|
|
130
|
+
linkHover: string | undefined;
|
|
131
|
+
primaryInverted: string | undefined;
|
|
132
|
+
secondaryInverted: string | undefined;
|
|
133
|
+
placeholderInverted: string | undefined;
|
|
134
|
+
disabledInverted: string | undefined;
|
|
135
|
+
positive: string | undefined;
|
|
136
|
+
negative: string | undefined;
|
|
137
|
+
lockedWhite: string | undefined;
|
|
138
|
+
};
|
|
139
|
+
icon: {
|
|
140
|
+
primary: string | undefined;
|
|
141
|
+
secondary: string | undefined;
|
|
142
|
+
disabled: string | undefined;
|
|
143
|
+
primaryInverted: string | undefined;
|
|
144
|
+
secondaryInverted: string | undefined;
|
|
145
|
+
disabledInverted: string | undefined;
|
|
146
|
+
positive: string | undefined;
|
|
147
|
+
negative: string | undefined;
|
|
148
|
+
lockedWhite: string | undefined;
|
|
149
|
+
link: string | undefined;
|
|
150
|
+
linkHover: string | undefined;
|
|
151
|
+
};
|
|
152
|
+
input: {
|
|
153
|
+
default: string | undefined;
|
|
154
|
+
disabled: string | undefined;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
declare const neutralRamp: {
|
|
160
|
+
light: {
|
|
161
|
+
0: string;
|
|
162
|
+
50: string | undefined;
|
|
163
|
+
100: string;
|
|
164
|
+
200: string;
|
|
165
|
+
300: string;
|
|
166
|
+
400: string;
|
|
167
|
+
500: string;
|
|
168
|
+
600: string;
|
|
169
|
+
700: string;
|
|
170
|
+
800: string;
|
|
171
|
+
900: string;
|
|
172
|
+
950: string | undefined;
|
|
173
|
+
1000: string;
|
|
174
|
+
1100: string | undefined;
|
|
175
|
+
};
|
|
176
|
+
dark: {
|
|
177
|
+
0: string;
|
|
178
|
+
50: string | undefined;
|
|
179
|
+
100: string;
|
|
180
|
+
200: string;
|
|
181
|
+
300: string;
|
|
182
|
+
400: string;
|
|
183
|
+
500: string;
|
|
184
|
+
600: string;
|
|
185
|
+
700: string;
|
|
186
|
+
800: string;
|
|
187
|
+
900: string;
|
|
188
|
+
950: string | undefined;
|
|
189
|
+
1000: string;
|
|
190
|
+
1100: string | undefined;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
declare const generateRamp: (color: ColorRange$1) => {
|
|
194
|
+
light: {
|
|
195
|
+
0: string;
|
|
196
|
+
100: string;
|
|
197
|
+
200: string;
|
|
198
|
+
300: string;
|
|
199
|
+
400: string;
|
|
200
|
+
500: string;
|
|
201
|
+
600: string;
|
|
202
|
+
700: string;
|
|
203
|
+
800: string;
|
|
204
|
+
900: string;
|
|
205
|
+
1000: string;
|
|
206
|
+
};
|
|
207
|
+
dark: {
|
|
208
|
+
0: string;
|
|
209
|
+
100: string;
|
|
210
|
+
200: string;
|
|
211
|
+
300: string;
|
|
212
|
+
400: string;
|
|
213
|
+
500: string;
|
|
214
|
+
600: string;
|
|
215
|
+
700: string;
|
|
216
|
+
800: string;
|
|
217
|
+
900: string;
|
|
218
|
+
1000: string;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
declare const purpleRamp: {
|
|
222
|
+
light: {
|
|
223
|
+
0: string;
|
|
224
|
+
100: string;
|
|
225
|
+
200: string;
|
|
226
|
+
300: string;
|
|
227
|
+
400: string;
|
|
228
|
+
500: string;
|
|
229
|
+
600: string;
|
|
230
|
+
700: string;
|
|
231
|
+
800: string;
|
|
232
|
+
900: string;
|
|
233
|
+
1000: string;
|
|
234
|
+
};
|
|
235
|
+
dark: {
|
|
236
|
+
0: string;
|
|
237
|
+
100: string;
|
|
238
|
+
200: string;
|
|
239
|
+
300: string;
|
|
240
|
+
400: string;
|
|
241
|
+
500: string;
|
|
242
|
+
600: string;
|
|
243
|
+
700: string;
|
|
244
|
+
800: string;
|
|
245
|
+
900: string;
|
|
246
|
+
1000: string;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
declare const redRamp: {
|
|
250
|
+
light: {
|
|
251
|
+
0: string;
|
|
252
|
+
100: string;
|
|
253
|
+
200: string;
|
|
254
|
+
300: string;
|
|
255
|
+
400: string;
|
|
256
|
+
500: string;
|
|
257
|
+
600: string;
|
|
258
|
+
700: string;
|
|
259
|
+
800: string;
|
|
260
|
+
900: string;
|
|
261
|
+
1000: string;
|
|
262
|
+
};
|
|
263
|
+
dark: {
|
|
264
|
+
0: string;
|
|
265
|
+
100: string;
|
|
266
|
+
200: string;
|
|
267
|
+
300: string;
|
|
268
|
+
400: string;
|
|
269
|
+
500: string;
|
|
270
|
+
600: string;
|
|
271
|
+
700: string;
|
|
272
|
+
800: string;
|
|
273
|
+
900: string;
|
|
274
|
+
1000: string;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
declare const peachRamp: {
|
|
278
|
+
light: {
|
|
279
|
+
0: string;
|
|
280
|
+
100: string;
|
|
281
|
+
200: string;
|
|
282
|
+
300: string;
|
|
283
|
+
400: string;
|
|
284
|
+
500: string;
|
|
285
|
+
600: string;
|
|
286
|
+
700: string;
|
|
287
|
+
800: string;
|
|
288
|
+
900: string;
|
|
289
|
+
1000: string;
|
|
290
|
+
};
|
|
291
|
+
dark: {
|
|
292
|
+
0: string;
|
|
293
|
+
100: string;
|
|
294
|
+
200: string;
|
|
295
|
+
300: string;
|
|
296
|
+
400: string;
|
|
297
|
+
500: string;
|
|
298
|
+
600: string;
|
|
299
|
+
700: string;
|
|
300
|
+
800: string;
|
|
301
|
+
900: string;
|
|
302
|
+
1000: string;
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
declare const yellowRamp: {
|
|
306
|
+
light: {
|
|
307
|
+
0: string;
|
|
308
|
+
100: string;
|
|
309
|
+
200: string;
|
|
310
|
+
300: string;
|
|
311
|
+
400: string;
|
|
312
|
+
500: string;
|
|
313
|
+
600: string;
|
|
314
|
+
700: string;
|
|
315
|
+
800: string;
|
|
316
|
+
900: string;
|
|
317
|
+
1000: string;
|
|
318
|
+
};
|
|
319
|
+
dark: {
|
|
320
|
+
0: string;
|
|
321
|
+
100: string;
|
|
322
|
+
200: string;
|
|
323
|
+
300: string;
|
|
324
|
+
400: string;
|
|
325
|
+
500: string;
|
|
326
|
+
600: string;
|
|
327
|
+
700: string;
|
|
328
|
+
800: string;
|
|
329
|
+
900: string;
|
|
330
|
+
1000: string;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
declare const blueRamp: {
|
|
334
|
+
light: {
|
|
335
|
+
0: string;
|
|
336
|
+
100: string;
|
|
337
|
+
200: string;
|
|
338
|
+
300: string;
|
|
339
|
+
400: string;
|
|
340
|
+
500: string;
|
|
341
|
+
600: string;
|
|
342
|
+
700: string;
|
|
343
|
+
800: string;
|
|
344
|
+
900: string;
|
|
345
|
+
1000: string;
|
|
346
|
+
};
|
|
347
|
+
dark: {
|
|
348
|
+
0: string;
|
|
349
|
+
100: string;
|
|
350
|
+
200: string;
|
|
351
|
+
300: string;
|
|
352
|
+
400: string;
|
|
353
|
+
500: string;
|
|
354
|
+
600: string;
|
|
355
|
+
700: string;
|
|
356
|
+
800: string;
|
|
357
|
+
900: string;
|
|
358
|
+
1000: string;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
declare const greenRamp: {
|
|
362
|
+
light: {
|
|
363
|
+
0: string;
|
|
364
|
+
100: string;
|
|
365
|
+
200: string;
|
|
366
|
+
300: string;
|
|
367
|
+
400: string;
|
|
368
|
+
500: string;
|
|
369
|
+
600: string;
|
|
370
|
+
700: string;
|
|
371
|
+
800: string;
|
|
372
|
+
900: string;
|
|
373
|
+
1000: string;
|
|
374
|
+
};
|
|
375
|
+
dark: {
|
|
376
|
+
0: string;
|
|
377
|
+
100: string;
|
|
378
|
+
200: string;
|
|
379
|
+
300: string;
|
|
380
|
+
400: string;
|
|
381
|
+
500: string;
|
|
382
|
+
600: string;
|
|
383
|
+
700: string;
|
|
384
|
+
800: string;
|
|
385
|
+
900: string;
|
|
386
|
+
1000: string;
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
declare const neutral: ColorRange$1;
|
|
391
|
+
declare const darkNeutral: ColorRange$1;
|
|
392
|
+
declare const neutralAlpha: ColorRangeAlpha$1;
|
|
393
|
+
declare const darkNeutralAlpha: ColorRangeAlpha$1;
|
|
394
|
+
declare const purple: ColorRange$1;
|
|
395
|
+
declare const red: ColorRange$1;
|
|
396
|
+
declare const peach: ColorRange$1;
|
|
397
|
+
declare const yellow: ColorRange$1;
|
|
398
|
+
declare const blue: ColorRange$1;
|
|
399
|
+
declare const green: ColorRange$1;
|
|
400
|
+
|
|
401
|
+
type GenericSizeMap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
|
|
402
|
+
declare const breakpoints: {
|
|
403
|
+
sm: number;
|
|
404
|
+
md: number;
|
|
405
|
+
lg: number;
|
|
406
|
+
lgNav: number;
|
|
407
|
+
xl: number;
|
|
408
|
+
xxl: number;
|
|
409
|
+
};
|
|
410
|
+
declare const space: {
|
|
411
|
+
0: number;
|
|
412
|
+
25: number;
|
|
413
|
+
50: number;
|
|
414
|
+
100: number;
|
|
415
|
+
150: number;
|
|
416
|
+
200: number;
|
|
417
|
+
300: number;
|
|
418
|
+
350: number;
|
|
419
|
+
400: number;
|
|
420
|
+
500: number;
|
|
421
|
+
600: number;
|
|
422
|
+
800: number;
|
|
423
|
+
1000: number;
|
|
424
|
+
2000: number;
|
|
425
|
+
};
|
|
426
|
+
declare const base: number;
|
|
427
|
+
declare const margin: {
|
|
428
|
+
none: number;
|
|
429
|
+
xs: number;
|
|
430
|
+
sm: number;
|
|
431
|
+
md: number;
|
|
432
|
+
lg: number;
|
|
433
|
+
xl: number;
|
|
434
|
+
xxl: number;
|
|
435
|
+
xxxl: number;
|
|
436
|
+
};
|
|
437
|
+
declare const padding: {
|
|
438
|
+
none: number;
|
|
439
|
+
xs: number;
|
|
440
|
+
sm: number;
|
|
441
|
+
md: number;
|
|
442
|
+
lg: number;
|
|
443
|
+
xl: number;
|
|
444
|
+
};
|
|
445
|
+
declare const radius: {
|
|
446
|
+
none: number;
|
|
447
|
+
xs: number;
|
|
448
|
+
sm: number;
|
|
449
|
+
md: number;
|
|
450
|
+
lg: number;
|
|
451
|
+
xl: number;
|
|
452
|
+
round: number;
|
|
453
|
+
};
|
|
454
|
+
declare const elevation: {
|
|
455
|
+
raised: string;
|
|
456
|
+
overlay: string;
|
|
457
|
+
};
|
|
458
|
+
declare const elevationFilter: {
|
|
459
|
+
raised: string;
|
|
460
|
+
overlay: string;
|
|
461
|
+
};
|
|
462
|
+
declare const boxShadow: {
|
|
463
|
+
input: {
|
|
464
|
+
focus: string;
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
declare const easing: {
|
|
468
|
+
default: string;
|
|
469
|
+
input: string;
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
declare const semantic: SemanticColor;
|
|
473
|
+
|
|
474
|
+
declare const fonts: {
|
|
475
|
+
Domaine: {
|
|
476
|
+
name: string;
|
|
477
|
+
default: {
|
|
478
|
+
fileName: string;
|
|
479
|
+
weight: FontWeight;
|
|
480
|
+
};
|
|
481
|
+
bold: {
|
|
482
|
+
fileName: string;
|
|
483
|
+
weight: FontWeight;
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
FoundersGrotesk: {
|
|
487
|
+
name: string;
|
|
488
|
+
default: {
|
|
489
|
+
fileName: string;
|
|
490
|
+
weight: FontWeight;
|
|
491
|
+
};
|
|
492
|
+
bold: {
|
|
493
|
+
fileName: string;
|
|
494
|
+
weight: FontWeight;
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
FontStack: {
|
|
498
|
+
Serif: string;
|
|
499
|
+
SansSerif: string;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
declare const iconSizeMap: Record<string, number>;
|
|
504
|
+
interface IconProps {
|
|
505
|
+
color?: string;
|
|
506
|
+
name: IconName;
|
|
507
|
+
size?: number;
|
|
508
|
+
sx?: SxProps;
|
|
509
|
+
}
|
|
510
|
+
declare const Icon: FunctionComponent<IconProps>;
|
|
511
|
+
|
|
512
|
+
type IconName = 'brand-wordmark' | 'brand-logomark' | 'menu' | 'menu-open' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'arrow-left' | 'arrow-right' | 'search' | 'close' | 'more-horizontal' | 'more-vertical' | 'home' | 'home-filled' | 'settings' | 'controls' | 'help' | 'filter-list' | 'open-in-new' | 'nav-toggle' | 'nav-collapse' | 'nav-expand' | 'play-circle' | 'play-video' | 'email' | 'document' | 'folder' | 'attach-file' | 'save' | 'image-add' | 'image-search' | 'upload' | 'upload-cloud' | 'time' | 'time-filled' | 'zoom-in' | 'zoom-out' | 'add' | 'remove' | 'test' | 'dashboard' | 'list-view' | 'grid-view' | 'grid-view-filled' | 'eye' | 'eye-off' | 'notification' | 'pound' | 'euro' | 'dollar' | 'play' | 'pause' | 'stop' | 'shuffle' | 'send' | 'comment' | 'comment-filled' | 'chat' | 'microphone' | 'keyboard' | 'error' | 'warning' | 'lightbulb' | 'check-circle' | 'thumb-up' | 'info' | 'info-filled' | 'cancel' | 'compress' | 'expand' | 'unfold' | 'drag-handle' | 'focus' | 'drag-select' | 'lock' | 'copy' | 'edit' | 'delete' | 'check' | 'alert-dot' | 'star' | 'star-half' | 'star-filled' | 'thumbs-up-down' | 'emoticon' | 'linear-scale' | 'check-double' | 'rank' | 'ai' | 'work' | 'gift' | 'social-medium-single-colour' | 'social-linkedin-single-colour' | 'social-youtube-single-colour' | 'social-linkedin-full-colour' | 'social-google-full-colour' | 'badge-tick' | 'badge-tick-in-circle' | 'badge-cross' | 'badge-cross-in-circle' | 'badge-hyphen' | 'badge-hyphen-in-circle' | 'badge-question' | 'badge-question-in-circle';
|
|
513
|
+
|
|
514
|
+
interface CustomTheme {
|
|
515
|
+
palette: {
|
|
516
|
+
black: string;
|
|
517
|
+
white: string;
|
|
518
|
+
neutral: ColorRange;
|
|
519
|
+
neutralAlpha: ColorRangeAlpha;
|
|
520
|
+
purple: ColorRange;
|
|
521
|
+
red: ColorRange;
|
|
522
|
+
peach: ColorRange;
|
|
523
|
+
yellow: ColorRange;
|
|
524
|
+
blue: ColorRange;
|
|
525
|
+
green: ColorRange;
|
|
526
|
+
icon: {
|
|
527
|
+
primary: string;
|
|
528
|
+
secondary: string;
|
|
529
|
+
disabled: string;
|
|
530
|
+
primaryInverted: string;
|
|
531
|
+
secondaryInverted: string;
|
|
532
|
+
disabledInverted: string;
|
|
533
|
+
lockedWhite: string;
|
|
534
|
+
link: string;
|
|
535
|
+
linkHover: string;
|
|
536
|
+
};
|
|
537
|
+
interaction: {
|
|
538
|
+
none: string;
|
|
539
|
+
hover: string;
|
|
540
|
+
press: string;
|
|
541
|
+
hoverOnDark: string;
|
|
542
|
+
pressOnDark: string;
|
|
543
|
+
disabled: string;
|
|
544
|
+
};
|
|
545
|
+
stroke: {
|
|
546
|
+
default: string;
|
|
547
|
+
focus: string;
|
|
548
|
+
disabled: string;
|
|
549
|
+
};
|
|
550
|
+
surface: {
|
|
551
|
+
default: string;
|
|
552
|
+
sunken: string;
|
|
553
|
+
raised: string;
|
|
554
|
+
overlay: string;
|
|
555
|
+
scrim: string;
|
|
556
|
+
transparent: string;
|
|
557
|
+
};
|
|
558
|
+
text: {
|
|
559
|
+
primary: string;
|
|
560
|
+
secondary: string;
|
|
561
|
+
placeholder: string;
|
|
562
|
+
disabled: string;
|
|
563
|
+
link: string;
|
|
564
|
+
linkHover: string;
|
|
565
|
+
primaryInverted: string;
|
|
566
|
+
secondaryInverted: string;
|
|
567
|
+
placeholderInverted: string;
|
|
568
|
+
disabledInverted: string;
|
|
569
|
+
positive: string;
|
|
570
|
+
negative: string;
|
|
571
|
+
lockedWhite: string;
|
|
572
|
+
};
|
|
573
|
+
input: {
|
|
574
|
+
default: string;
|
|
575
|
+
disabled: string;
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
margin: {
|
|
579
|
+
none: number;
|
|
580
|
+
xs: number;
|
|
581
|
+
sm: number;
|
|
582
|
+
md: number;
|
|
583
|
+
lg: number;
|
|
584
|
+
xl: number;
|
|
585
|
+
xxl: number;
|
|
586
|
+
xxxl: number;
|
|
587
|
+
};
|
|
588
|
+
padding: {
|
|
589
|
+
none: number;
|
|
590
|
+
xs: number;
|
|
591
|
+
sm: number;
|
|
592
|
+
md: number;
|
|
593
|
+
lg: number;
|
|
594
|
+
xl: number;
|
|
595
|
+
};
|
|
596
|
+
radius: {
|
|
597
|
+
none: number;
|
|
598
|
+
xs: number;
|
|
599
|
+
sm: number;
|
|
600
|
+
md: number;
|
|
601
|
+
lg: number;
|
|
602
|
+
xl: number;
|
|
603
|
+
round: number;
|
|
604
|
+
};
|
|
605
|
+
elevation: {
|
|
606
|
+
raised: string;
|
|
607
|
+
overlay: string;
|
|
608
|
+
};
|
|
609
|
+
elevationFilter: {
|
|
610
|
+
raised: string;
|
|
611
|
+
overlay: string;
|
|
612
|
+
};
|
|
613
|
+
easing: {
|
|
614
|
+
default: string;
|
|
615
|
+
input: string;
|
|
616
|
+
};
|
|
617
|
+
boxShadow: {
|
|
618
|
+
input: {
|
|
619
|
+
focus: string;
|
|
620
|
+
handle: string;
|
|
621
|
+
};
|
|
622
|
+
};
|
|
623
|
+
shape: {
|
|
624
|
+
borderRadius: number;
|
|
625
|
+
hotspot: {
|
|
626
|
+
active: number;
|
|
627
|
+
default: number;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
typography: {
|
|
631
|
+
headline: {
|
|
632
|
+
xxs: string;
|
|
633
|
+
xs: string;
|
|
634
|
+
sm: string;
|
|
635
|
+
md: string;
|
|
636
|
+
lg: string;
|
|
637
|
+
xl: string;
|
|
638
|
+
xxl: string;
|
|
639
|
+
xxxl: string;
|
|
640
|
+
};
|
|
641
|
+
body: {
|
|
642
|
+
xxs: string;
|
|
643
|
+
xs: string;
|
|
644
|
+
sm: string;
|
|
645
|
+
md: string;
|
|
646
|
+
lg: string;
|
|
647
|
+
xl: string;
|
|
648
|
+
xxl: string;
|
|
649
|
+
xxxl: string;
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
type SurfaceVariation = 'default' | 'sunken' | 'raised' | 'overlay';
|
|
655
|
+
type BorderRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
656
|
+
|
|
657
|
+
interface SurfaceProps extends PropsWithChildren {
|
|
658
|
+
variation?: SurfaceVariation;
|
|
659
|
+
borderradius?: BorderRadius;
|
|
660
|
+
sx?: SxProps<Theme>;
|
|
661
|
+
ref?: PaperProps['ref'];
|
|
662
|
+
component?: PaperProps['component'];
|
|
663
|
+
}
|
|
664
|
+
declare const Surface: FC<SurfaceProps>;
|
|
665
|
+
|
|
666
|
+
interface AuthContainerSurfaceProps extends SurfaceProps {
|
|
667
|
+
headContent?: ReactNode;
|
|
668
|
+
sx?: SxProps<Theme>;
|
|
669
|
+
children: ReactNode;
|
|
670
|
+
}
|
|
671
|
+
declare const AuthContainerSurface: FunctionComponent<AuthContainerSurfaceProps>;
|
|
672
|
+
|
|
673
|
+
interface BreadcrumbLink {
|
|
674
|
+
label: string;
|
|
675
|
+
href?: string;
|
|
676
|
+
}
|
|
677
|
+
interface BreadcrumbProps {
|
|
678
|
+
links?: BreadcrumbLink[];
|
|
679
|
+
}
|
|
680
|
+
declare const Breadcrumb: FunctionComponent<BreadcrumbProps>;
|
|
681
|
+
|
|
682
|
+
interface HeaderProps {
|
|
683
|
+
backHref?: string;
|
|
684
|
+
breadcrumbLinks?: BreadcrumbLink[];
|
|
685
|
+
buttons?: ReactNode;
|
|
686
|
+
controlBar?: ReactNode;
|
|
687
|
+
title?: string;
|
|
688
|
+
}
|
|
689
|
+
declare const Header: FunctionComponent<HeaderProps>;
|
|
690
|
+
|
|
691
|
+
type NavigationButtonSizing = 'sm' | 'md' | 'lg';
|
|
692
|
+
interface NavigationButtonProps {
|
|
693
|
+
active?: boolean;
|
|
694
|
+
danger?: boolean;
|
|
695
|
+
fullWidth?: boolean;
|
|
696
|
+
href?: string;
|
|
697
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
698
|
+
external?: boolean;
|
|
699
|
+
icon?: IconName;
|
|
700
|
+
label?: string;
|
|
701
|
+
navigationSizing?: NavigationSizing;
|
|
702
|
+
onClick?: () => void;
|
|
703
|
+
sizing?: NavigationButtonSizing;
|
|
704
|
+
}
|
|
705
|
+
declare const NavigationButton: FunctionComponent<NavigationButtonProps>;
|
|
706
|
+
|
|
707
|
+
interface MenuItemProps {
|
|
708
|
+
active?: boolean;
|
|
709
|
+
children?: MenuItemProps[];
|
|
710
|
+
baseState?: PopupState;
|
|
711
|
+
closeOnClick?: boolean;
|
|
712
|
+
danger?: boolean;
|
|
713
|
+
divider?: boolean;
|
|
714
|
+
heading?: boolean;
|
|
715
|
+
label?: string;
|
|
716
|
+
onClick?: () => void;
|
|
717
|
+
selected?: boolean;
|
|
718
|
+
selectOne?: boolean;
|
|
719
|
+
width?: number;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
interface UserMenuProps extends PropsWithChildren {
|
|
723
|
+
avatar?: string;
|
|
724
|
+
email: string;
|
|
725
|
+
menuItems?: MenuItemProps[];
|
|
726
|
+
name: string;
|
|
727
|
+
offset?: number[];
|
|
728
|
+
placement?: PopperProps$1['placement'];
|
|
729
|
+
rounded?: boolean;
|
|
730
|
+
width?: number;
|
|
731
|
+
}
|
|
732
|
+
declare const UserMenu: FunctionComponent<UserMenuProps>;
|
|
733
|
+
|
|
734
|
+
type NavigationSizing = 'sm' | 'lg';
|
|
735
|
+
interface NavigationProps {
|
|
736
|
+
isMobile?: boolean;
|
|
737
|
+
logoLink?: () => void;
|
|
738
|
+
nudgeProps?: NudgeProps$1;
|
|
739
|
+
primaryMenuItemProps?: NavigationButtonProps[];
|
|
740
|
+
secondaryMenuItemProps?: NavigationButtonProps[];
|
|
741
|
+
sizing?: NavigationSizing;
|
|
742
|
+
tertiaryMenuItemProps?: NavigationButtonProps[];
|
|
743
|
+
toggleMenuOnClick?: () => void;
|
|
744
|
+
userMenuProps: UserMenuProps;
|
|
745
|
+
}
|
|
746
|
+
interface NudgeProps$1 extends PropsWithChildren {
|
|
747
|
+
description: string;
|
|
748
|
+
notification: boolean;
|
|
749
|
+
title: string;
|
|
750
|
+
}
|
|
751
|
+
declare const Navigation: FunctionComponent<NavigationProps>;
|
|
752
|
+
|
|
753
|
+
type OnboardingItem = {
|
|
754
|
+
complete: boolean;
|
|
755
|
+
title: string;
|
|
756
|
+
description?: string;
|
|
757
|
+
onClick?: () => void;
|
|
758
|
+
};
|
|
759
|
+
interface OnboardingCardProps {
|
|
760
|
+
cardTitle: string;
|
|
761
|
+
cardSubtitle: string;
|
|
762
|
+
welcomeImageUrl: string;
|
|
763
|
+
welcomeImageAltDescription?: string;
|
|
764
|
+
items: OnboardingItem[];
|
|
765
|
+
}
|
|
766
|
+
declare const OnboardingCard: FunctionComponent<OnboardingCardProps>;
|
|
767
|
+
|
|
768
|
+
interface ProjectItemViewType {
|
|
769
|
+
viewType?: 'grid' | 'list';
|
|
770
|
+
}
|
|
771
|
+
interface UserProps {
|
|
772
|
+
id: string;
|
|
773
|
+
email: string;
|
|
774
|
+
firstName: string;
|
|
775
|
+
lastName: string;
|
|
776
|
+
country: string | null;
|
|
777
|
+
city: string | null;
|
|
778
|
+
profileImage: string | null;
|
|
779
|
+
jobTitle: string | null;
|
|
780
|
+
role: string | null;
|
|
781
|
+
}
|
|
782
|
+
interface ProjectItemDataProps {
|
|
783
|
+
id: string;
|
|
784
|
+
postId: string;
|
|
785
|
+
versionId: string;
|
|
786
|
+
thumbnail: string;
|
|
787
|
+
demoSurveyId: string;
|
|
788
|
+
title: string;
|
|
789
|
+
description: string | null;
|
|
790
|
+
demoProjectSummary?: string | null;
|
|
791
|
+
demoSurveySummary?: string | null;
|
|
792
|
+
name: string;
|
|
793
|
+
user: UserProps;
|
|
794
|
+
isAuthor: boolean;
|
|
795
|
+
isDemo: boolean;
|
|
796
|
+
loopCount: number | null;
|
|
797
|
+
testCount: number | null;
|
|
798
|
+
draftCount: number | null;
|
|
799
|
+
updatedAt?: string;
|
|
800
|
+
tags?: string[] | null;
|
|
801
|
+
onClick?: () => void;
|
|
802
|
+
loading?: boolean;
|
|
803
|
+
moreActions?: React.ReactNode;
|
|
804
|
+
}
|
|
805
|
+
interface ProjectItemProps extends ProjectItemDataProps, ProjectItemViewType {
|
|
806
|
+
}
|
|
807
|
+
interface ProjectItemEmptyProps {
|
|
808
|
+
onClick?: () => void;
|
|
809
|
+
viewType?: 'grid' | 'list';
|
|
810
|
+
title: string;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
declare const ProjectItem: FunctionComponent<ProjectItemProps>;
|
|
814
|
+
|
|
815
|
+
declare const ProjectItemEmpty: FunctionComponent<ProjectItemEmptyProps>;
|
|
816
|
+
|
|
817
|
+
interface ProjectsProps {
|
|
818
|
+
}
|
|
819
|
+
declare const Projects: FunctionComponent<ProjectsProps>;
|
|
820
|
+
|
|
821
|
+
interface SectionHeaderProps {
|
|
822
|
+
buttons?: ReactNode;
|
|
823
|
+
loading?: boolean;
|
|
824
|
+
subtitle?: string;
|
|
825
|
+
title?: string;
|
|
826
|
+
}
|
|
827
|
+
declare const SectionHeader: FunctionComponent<SectionHeaderProps>;
|
|
828
|
+
|
|
829
|
+
declare const emailValidation: {
|
|
830
|
+
pattern: {
|
|
831
|
+
value: RegExp;
|
|
832
|
+
message: string;
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
declare const chooseArticle: (word: string) => string;
|
|
837
|
+
declare const defaultInputValidation: (inputName?: string, isRequired?: boolean, maxLength?: number) => {
|
|
838
|
+
required?: string | undefined;
|
|
839
|
+
maxLength: {
|
|
840
|
+
value: number;
|
|
841
|
+
message: string;
|
|
842
|
+
};
|
|
843
|
+
};
|
|
844
|
+
declare const DEFAULT_MAX_INPUT_LENGTH: number;
|
|
845
|
+
|
|
846
|
+
declare const passwordValidation: (min?: number) => {
|
|
847
|
+
minLength: {
|
|
848
|
+
value: number;
|
|
849
|
+
message: string;
|
|
850
|
+
};
|
|
851
|
+
equal: {
|
|
852
|
+
value: string;
|
|
853
|
+
message: string;
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
|
|
857
|
+
declare const subtle: (theme: Theme) => {
|
|
858
|
+
backgroundColor: string;
|
|
859
|
+
fontWeight: number;
|
|
860
|
+
'&:focus-visible': {
|
|
861
|
+
boxShadow: string;
|
|
862
|
+
};
|
|
863
|
+
};
|
|
864
|
+
declare const outlined$1: (theme: Theme) => {
|
|
865
|
+
backgroundColor: string;
|
|
866
|
+
border: string;
|
|
867
|
+
'&:hover': {
|
|
868
|
+
backgroundColor: string;
|
|
869
|
+
};
|
|
870
|
+
'&:focus-visible': {
|
|
871
|
+
boxShadow: string;
|
|
872
|
+
};
|
|
873
|
+
'&:active': {
|
|
874
|
+
backgroundColor: string;
|
|
875
|
+
};
|
|
876
|
+
'&:disabled': {
|
|
877
|
+
border: string;
|
|
878
|
+
};
|
|
879
|
+
};
|
|
880
|
+
declare const secondary: (theme: Theme) => {
|
|
881
|
+
backgroundColor: ColorRange;
|
|
882
|
+
'&:hover': {
|
|
883
|
+
backgroundColor: ColorRange;
|
|
884
|
+
};
|
|
885
|
+
'&:focus-visible': {
|
|
886
|
+
boxShadow: string;
|
|
887
|
+
};
|
|
888
|
+
'&:active': {
|
|
889
|
+
backgroundColor: ColorRange;
|
|
890
|
+
};
|
|
891
|
+
};
|
|
892
|
+
declare const primary: (theme: Theme) => {
|
|
893
|
+
backgroundColor: ColorRange;
|
|
894
|
+
color: string;
|
|
895
|
+
'&:hover': {
|
|
896
|
+
backgroundColor: ColorRange;
|
|
897
|
+
color: string;
|
|
898
|
+
'&::before': {
|
|
899
|
+
backgroundColor: string;
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
'&:focus-visible': {
|
|
903
|
+
boxShadow: string;
|
|
904
|
+
'&::before': {
|
|
905
|
+
backgroundColor: string;
|
|
906
|
+
};
|
|
907
|
+
};
|
|
908
|
+
'&:active': {
|
|
909
|
+
backgroundColor: ColorRange;
|
|
910
|
+
color: string;
|
|
911
|
+
'&::before': {
|
|
912
|
+
backgroundColor: string;
|
|
913
|
+
};
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
declare const buttonInteraction: (theme: Theme, active?: boolean) => {
|
|
917
|
+
backgroundColor: string;
|
|
918
|
+
fontWeight: number;
|
|
919
|
+
'&:focus-visible': {
|
|
920
|
+
boxShadow: string;
|
|
921
|
+
};
|
|
922
|
+
'&:hover': {
|
|
923
|
+
backgroundColor: string;
|
|
924
|
+
};
|
|
925
|
+
'&:focus': {
|
|
926
|
+
backgroundColor: string;
|
|
927
|
+
};
|
|
928
|
+
'&:active': {
|
|
929
|
+
backgroundColor: string;
|
|
930
|
+
};
|
|
931
|
+
cursor: string;
|
|
932
|
+
'&:disabled': {
|
|
933
|
+
backgroundColor: string;
|
|
934
|
+
color: string;
|
|
935
|
+
};
|
|
936
|
+
};
|
|
937
|
+
type ButtonSizing = Exclude<GenericSizeMap, 'none'>;
|
|
938
|
+
declare const getIconSizing$1: (sizing: ButtonSizing) => CSSObject;
|
|
939
|
+
declare const getButtonTypography: (sizing: ButtonSizing) => CSSObject;
|
|
940
|
+
declare const getButtonSizing: (sizing: ButtonSizing) => CSSObject;
|
|
941
|
+
|
|
942
|
+
interface BackgroundOptions {
|
|
943
|
+
texture?: 'none' | 'noise1';
|
|
944
|
+
gradient?: 'tone1' | 'tone2' | 'tone3' | 'tone4';
|
|
945
|
+
}
|
|
946
|
+
declare const backgroundCreator: (theme: Theme, options: BackgroundOptions) => string;
|
|
947
|
+
|
|
948
|
+
type SupportedCurrency = 'gbp' | 'eur' | 'usd';
|
|
949
|
+
type SupportedFrequency = 'monthly' | 'annual';
|
|
950
|
+
interface AnnualControllerProps {
|
|
951
|
+
body: string;
|
|
952
|
+
currency: string;
|
|
953
|
+
changeCurrencyEvent?: (value: string) => void;
|
|
954
|
+
frequency: string;
|
|
955
|
+
heading: string;
|
|
956
|
+
setCurrency?: Dispatch<SetStateAction<SupportedCurrency>>;
|
|
957
|
+
setFrequency?: Dispatch<SetStateAction<SupportedFrequency>>;
|
|
958
|
+
togglePayAnnuallyEvent?: () => void;
|
|
959
|
+
selections?: {
|
|
960
|
+
value: SupportedCurrency;
|
|
961
|
+
label: string;
|
|
962
|
+
}[];
|
|
963
|
+
}
|
|
964
|
+
declare const AnnualController: FunctionComponent<AnnualControllerProps>;
|
|
965
|
+
|
|
966
|
+
interface AuthFormHeaderProps {
|
|
967
|
+
logo?: ReactElement | false | undefined;
|
|
968
|
+
headerText?: string;
|
|
969
|
+
subText?: ReactElement | string;
|
|
970
|
+
}
|
|
971
|
+
declare const AuthFormHeader: FunctionComponent<AuthFormHeaderProps>;
|
|
972
|
+
|
|
973
|
+
interface AvatarProps {
|
|
974
|
+
alt?: string;
|
|
975
|
+
children?: ReactElement;
|
|
976
|
+
className?: string;
|
|
977
|
+
sizing?: 'sm' | 'lg';
|
|
978
|
+
src?: string;
|
|
979
|
+
}
|
|
980
|
+
declare const Avatar: FunctionComponent<AvatarProps>;
|
|
981
|
+
|
|
982
|
+
interface AvatarGroupProps extends AvatarGroupProps$1 {
|
|
983
|
+
variation?: 'primary';
|
|
984
|
+
max?: number;
|
|
985
|
+
sx: SxProps<Theme>;
|
|
986
|
+
}
|
|
987
|
+
declare const AvatarGroup: FunctionComponent<AvatarGroupProps>;
|
|
988
|
+
|
|
989
|
+
interface BadgeProps extends PropsWithChildren {
|
|
990
|
+
}
|
|
991
|
+
declare const Badge: FunctionComponent<BadgeProps>;
|
|
992
|
+
|
|
993
|
+
interface ButtonBaseProps extends ButtonProps$1 {
|
|
994
|
+
loading?: boolean;
|
|
995
|
+
sizing: any;
|
|
996
|
+
}
|
|
997
|
+
declare const ButtonBase: ({ children, loading, sizing, ...rest }: ButtonBaseProps) => react_jsx_runtime.JSX.Element;
|
|
998
|
+
|
|
999
|
+
interface ButtonProps {
|
|
1000
|
+
loading?: boolean;
|
|
1001
|
+
variation?: 'primary' | 'secondary' | 'outlined' | 'subtle';
|
|
1002
|
+
sizing?: ButtonSizing;
|
|
1003
|
+
fullWidth?: boolean;
|
|
1004
|
+
className?: string;
|
|
1005
|
+
disabled?: boolean;
|
|
1006
|
+
tabIndex?: number;
|
|
1007
|
+
href?: string;
|
|
1008
|
+
endIcon?: ReactElement;
|
|
1009
|
+
startIcon?: ReactElement;
|
|
1010
|
+
children: ButtonBaseProps['children'];
|
|
1011
|
+
onClick?: ButtonBaseProps['onClick'];
|
|
1012
|
+
onMouseDown?: ButtonBaseProps['onMouseDown'];
|
|
1013
|
+
onMouseUp?: ButtonBaseProps['onMouseUp'];
|
|
1014
|
+
type?: 'button' | 'submit' | 'reset';
|
|
1015
|
+
}
|
|
1016
|
+
declare const Button: FunctionComponent<ButtonProps>;
|
|
1017
|
+
|
|
1018
|
+
interface StyledCheckboxProps extends CheckboxProps$1 {
|
|
1019
|
+
sizing?: 'default' | 'lg';
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
interface CheckboxProps {
|
|
1023
|
+
sizing?: StyledCheckboxProps['sizing'];
|
|
1024
|
+
checked?: boolean;
|
|
1025
|
+
indeterminate?: StyledCheckboxProps['indeterminate'];
|
|
1026
|
+
checkboxLabel?: string | ReactElement;
|
|
1027
|
+
internalChange?: () => void;
|
|
1028
|
+
onChange?: (event: React.SyntheticEvent<Element, Event>, checked: boolean) => void;
|
|
1029
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
1030
|
+
defaultChecked?: boolean;
|
|
1031
|
+
disabled?: boolean;
|
|
1032
|
+
id?: string;
|
|
1033
|
+
required?: boolean;
|
|
1034
|
+
value?: boolean;
|
|
1035
|
+
}
|
|
1036
|
+
declare const Checkbox: FunctionComponent<CheckboxProps>;
|
|
1037
|
+
|
|
1038
|
+
interface CheckboxGroupOption {
|
|
1039
|
+
label: string;
|
|
1040
|
+
value: string;
|
|
1041
|
+
exclusive?: boolean;
|
|
1042
|
+
}
|
|
1043
|
+
interface CheckboxGroupOther {
|
|
1044
|
+
label?: string;
|
|
1045
|
+
enabled?: boolean;
|
|
1046
|
+
placeholder?: string;
|
|
1047
|
+
name?: string;
|
|
1048
|
+
defaultValue?: string;
|
|
1049
|
+
}
|
|
1050
|
+
interface CheckboxGroupProps {
|
|
1051
|
+
options: CheckboxGroupOption[];
|
|
1052
|
+
value: string[];
|
|
1053
|
+
sizing?: CheckboxProps['sizing'];
|
|
1054
|
+
onChange: (arrayIds: string[]) => void;
|
|
1055
|
+
id: string;
|
|
1056
|
+
inputRef?: any;
|
|
1057
|
+
other?: CheckboxGroupOther;
|
|
1058
|
+
internalChange?: () => void;
|
|
1059
|
+
}
|
|
1060
|
+
declare const CheckboxGroup: FunctionComponent<CheckboxGroupProps>;
|
|
1061
|
+
|
|
1062
|
+
interface ColorBackgroundContainerProps {
|
|
1063
|
+
sx?: SxProps<Theme>;
|
|
1064
|
+
children: ContainerProps['children'];
|
|
1065
|
+
texture?: 'none' | 'noise1';
|
|
1066
|
+
gradient?: 'tone1' | 'tone2' | 'tone3' | 'tone4';
|
|
1067
|
+
}
|
|
1068
|
+
declare const ColorBackgroundContainer: FunctionComponent<ColorBackgroundContainerProps>;
|
|
1069
|
+
|
|
1070
|
+
type CustomFieldProps = {
|
|
1071
|
+
inputField: react__default.FC<{
|
|
1072
|
+
onChange: (data: unknown) => void;
|
|
1073
|
+
}>;
|
|
1074
|
+
onChange?: (data: unknown) => void;
|
|
1075
|
+
defaultValue?: unknown;
|
|
1076
|
+
value?: unknown;
|
|
1077
|
+
placeholder?: string;
|
|
1078
|
+
transformValue?: (value?: unknown) => void;
|
|
1079
|
+
internalChange?: () => void;
|
|
1080
|
+
};
|
|
1081
|
+
declare const CustomField: FunctionComponent<CustomFieldProps>;
|
|
1082
|
+
|
|
1083
|
+
interface DifferentialProps {
|
|
1084
|
+
labelLeft: string;
|
|
1085
|
+
labelRight: string;
|
|
1086
|
+
labelCenter?: string;
|
|
1087
|
+
disabled?: boolean;
|
|
1088
|
+
value?: string;
|
|
1089
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
1090
|
+
internalChange?: () => void;
|
|
1091
|
+
}
|
|
1092
|
+
declare const Differential: FunctionComponent<DifferentialProps>;
|
|
1093
|
+
|
|
1094
|
+
interface DropdownMenuItemProps {
|
|
1095
|
+
icon?: ReactElement;
|
|
1096
|
+
label: string;
|
|
1097
|
+
onClick: () => void;
|
|
1098
|
+
menuItemProps?: MenuItemProps$1;
|
|
1099
|
+
}
|
|
1100
|
+
interface DropdownMenuProps extends MenuProps$1 {
|
|
1101
|
+
open: boolean;
|
|
1102
|
+
anchorEl: HTMLElement | null;
|
|
1103
|
+
handleClose: () => void;
|
|
1104
|
+
handleClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
1105
|
+
items?: DropdownMenuItemProps[];
|
|
1106
|
+
}
|
|
1107
|
+
declare const DropdownMenu: FunctionComponent<DropdownMenuProps>;
|
|
1108
|
+
|
|
1109
|
+
declare const useDropdownMenu: () => {
|
|
1110
|
+
open: boolean;
|
|
1111
|
+
handleClick: (event: react__default.MouseEvent<HTMLButtonElement>) => void;
|
|
1112
|
+
handleClose: () => void;
|
|
1113
|
+
anchorEl: HTMLElement | null;
|
|
1114
|
+
};
|
|
1115
|
+
|
|
1116
|
+
interface FormControlLabelProps {
|
|
1117
|
+
control: FormControlLabelProps$1['control'];
|
|
1118
|
+
checked?: boolean;
|
|
1119
|
+
disabled?: boolean;
|
|
1120
|
+
label?: string | ReactElement;
|
|
1121
|
+
labelPlacement?: FormControlLabelProps$1['labelPlacement'];
|
|
1122
|
+
sx?: SxProps<Theme>;
|
|
1123
|
+
onChange?: FormControlLabelProps$1['onChange'];
|
|
1124
|
+
value?: unknown;
|
|
1125
|
+
required?: boolean;
|
|
1126
|
+
error?: boolean;
|
|
1127
|
+
name?: string;
|
|
1128
|
+
id?: string;
|
|
1129
|
+
inputRef?: FormControlLabelProps$1['inputRef'];
|
|
1130
|
+
}
|
|
1131
|
+
declare const FormControlLabel: FunctionComponent<FormControlLabelProps>;
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Form Generator Core Types
|
|
1135
|
+
*/
|
|
1136
|
+
interface FormGeneratorHandler {
|
|
1137
|
+
set: () => void;
|
|
1138
|
+
reset: () => void;
|
|
1139
|
+
submit: () => void;
|
|
1140
|
+
values: () => void;
|
|
1141
|
+
valid: () => void;
|
|
1142
|
+
errors: () => void;
|
|
1143
|
+
triggerFormValidation: () => Promise<unknown>;
|
|
1144
|
+
}
|
|
1145
|
+
type FormGeneratorProps = FunctionComponent<{
|
|
1146
|
+
ref?: any;
|
|
1147
|
+
formConfig: FormGeneratorConfig;
|
|
1148
|
+
onFormSubmit?: SubmitHandler<any>;
|
|
1149
|
+
onFormChange?: (formData: any) => void;
|
|
1150
|
+
submitButton?: ReactElement;
|
|
1151
|
+
secondaryButton?: ReactElement;
|
|
1152
|
+
}>;
|
|
1153
|
+
interface FormGeneratorConfig {
|
|
1154
|
+
fields: FieldTypes[];
|
|
1155
|
+
autoComplete?: 'off';
|
|
1156
|
+
mode?: 'onSubmit' | 'onBlur' | 'onChange';
|
|
1157
|
+
formId?: string;
|
|
1158
|
+
reValidateMode?: 'onSubmit' | 'onBlur' | 'onChange';
|
|
1159
|
+
validateOnInit?: boolean;
|
|
1160
|
+
styleOverrides?: {
|
|
1161
|
+
sxForm?: SxProps<Theme>;
|
|
1162
|
+
sxButtons?: SxProps<Theme>;
|
|
1163
|
+
sxStack?: SxProps<Theme>;
|
|
1164
|
+
};
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* Field Types
|
|
1168
|
+
*/
|
|
1169
|
+
type FieldTypes = CheckboxType | CheckboxGroupType | SwitchType | TextareaType | SelectType | TextFieldType | SliderType | DifferentialType | RichTextFieldType | LikertType | RadioGroupType | DragAndDropRankingType | NumberFieldType | StarRatingType | HTMLType | CustomFieldType;
|
|
1170
|
+
type TextFieldType = CreateFieldType<'textfield', TextFieldProps, string>;
|
|
1171
|
+
type NumberFieldType = CreateFieldType<'numberfield', NumberFieldProps, number>;
|
|
1172
|
+
type TextareaType = CreateFieldType<'textarea', TextareaProps, string>;
|
|
1173
|
+
type SelectType = CreateFieldType<'select', SelectProps, SelectProps['value']>;
|
|
1174
|
+
type CheckboxType = CreateFieldType<'checkbox', CheckboxProps, NonNullable<CheckboxProps['value']>>;
|
|
1175
|
+
type CheckboxGroupType = CreateFieldType<'checkboxGroup', CheckboxGroupProps, string[]>;
|
|
1176
|
+
type SwitchType = CreateFieldType<'switch', SwitchProps, NonNullable<SwitchProps['checked']>>;
|
|
1177
|
+
type SliderType = CreateFieldType<'slider', SliderProps, NonNullable<SliderProps['value']>>;
|
|
1178
|
+
type DifferentialType = CreateFieldType<'differential', DifferentialProps, NonNullable<DifferentialProps['value']>>;
|
|
1179
|
+
type LikertType = CreateFieldType<'likert', LikertProps, LikertProps['value']>;
|
|
1180
|
+
type RadioGroupType = CreateFieldType<'radioGroup', RadioGroupProps, RadioGroupProps['value']>;
|
|
1181
|
+
type DragAndDropRankingType = CreateFieldType<'ranking', RankProps, NonNullable<RankProps['value']>>;
|
|
1182
|
+
type RichTextFieldType = CreateFieldType<'richTextfield', RichTextFieldProps, RichTextFieldProps['value']>;
|
|
1183
|
+
type StarRatingType = CreateFieldType<'starRating', StarRatingProps, NonNullable<StarRatingProps['value']>>;
|
|
1184
|
+
type HTMLType = {
|
|
1185
|
+
fieldType: 'html';
|
|
1186
|
+
content: HtmlProps['children'];
|
|
1187
|
+
defaultValue?: never;
|
|
1188
|
+
} & BaseField;
|
|
1189
|
+
type CustomFieldType = {
|
|
1190
|
+
fieldType: 'customfield';
|
|
1191
|
+
defaultValue?: CustomFieldProps['value'];
|
|
1192
|
+
} & BaseField & CustomFieldProps;
|
|
1193
|
+
/**
|
|
1194
|
+
* Field Type Utilities
|
|
1195
|
+
*/
|
|
1196
|
+
interface BaseField {
|
|
1197
|
+
id?: string;
|
|
1198
|
+
name: string;
|
|
1199
|
+
ref?: any;
|
|
1200
|
+
multiline?: boolean;
|
|
1201
|
+
content?: ReactElement;
|
|
1202
|
+
label?: string;
|
|
1203
|
+
labelProps?: InputLabelProps;
|
|
1204
|
+
helperText?: string;
|
|
1205
|
+
hidden?: boolean;
|
|
1206
|
+
type?: string;
|
|
1207
|
+
helpTextProps?: InputLabelHelpProps;
|
|
1208
|
+
validation?: any;
|
|
1209
|
+
valueTransformer?: (valueToTransform: string) => string;
|
|
1210
|
+
disabled?: boolean;
|
|
1211
|
+
strengthIndicator?: boolean;
|
|
1212
|
+
styleOverrides?: {
|
|
1213
|
+
sxInputWrapper?: SxProps<Theme>;
|
|
1214
|
+
sxInputBase?: SxProps<Theme>;
|
|
1215
|
+
sxInputStack?: SxProps<Theme>;
|
|
1216
|
+
};
|
|
1217
|
+
}
|
|
1218
|
+
type CreateFieldType<TFieldType extends string, TProps, TDefaultValue extends any = void> = {
|
|
1219
|
+
fieldType: TFieldType;
|
|
1220
|
+
} & BaseField & Omit<TProps, 'id' | 'name' | 'value' | 'defaultValue' | 'onChange'> & (TDefaultValue extends void ? unknown : {
|
|
1221
|
+
defaultValue?: TDefaultValue;
|
|
1222
|
+
});
|
|
1223
|
+
type FieldType = FieldTypes['fieldType'];
|
|
1224
|
+
|
|
1225
|
+
declare const FormGenerator: FormGeneratorProps;
|
|
1226
|
+
|
|
1227
|
+
interface GridOverlayProps {
|
|
1228
|
+
breakpoint?: Breakpoint;
|
|
1229
|
+
position?: 'fixed' | 'absolute';
|
|
1230
|
+
}
|
|
1231
|
+
declare const GridOverlay: FunctionComponent<GridOverlayProps>;
|
|
1232
|
+
|
|
1233
|
+
interface HtmlProps {
|
|
1234
|
+
children: ReactElement;
|
|
1235
|
+
}
|
|
1236
|
+
declare const Html: FunctionComponent<HtmlProps>;
|
|
1237
|
+
|
|
1238
|
+
interface TypographyProps extends Omit<TypographyProps$1, 'ref'> {
|
|
1239
|
+
clamp?: number;
|
|
1240
|
+
component: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p';
|
|
1241
|
+
type?: 'default' | 'button';
|
|
1242
|
+
variation?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
|
|
1243
|
+
weight?: 'default' | 'bold';
|
|
1244
|
+
sx?: SxProps<Theme>;
|
|
1245
|
+
}
|
|
1246
|
+
declare const Typography: FunctionComponent<TypographyProps>;
|
|
1247
|
+
|
|
1248
|
+
type HtmlParserProps = {
|
|
1249
|
+
children: string;
|
|
1250
|
+
typographyProps?: Partial<TypographyProps>;
|
|
1251
|
+
};
|
|
1252
|
+
declare const HtmlParser: FC<HtmlParserProps>;
|
|
1253
|
+
|
|
1254
|
+
type IconButtonSizing = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1255
|
+
type IconButtonShapeMap = 'default' | 'round';
|
|
1256
|
+
type IconButtonVariation = 'default' | 'toggle' | 'outlined' | 'raised';
|
|
1257
|
+
|
|
1258
|
+
declare const defaultStyle: (theme: Theme) => CSSObject;
|
|
1259
|
+
declare const toggle: (theme: Theme) => CSSObject;
|
|
1260
|
+
declare const outlined: (theme: Theme) => CSSObject;
|
|
1261
|
+
declare const raised: (theme: Theme) => CSSObject;
|
|
1262
|
+
declare const getIconButtonRadius: (shape: IconButtonShapeMap, theme: Theme) => CSSObject;
|
|
1263
|
+
declare const buttonSizeMap: {
|
|
1264
|
+
xs: number;
|
|
1265
|
+
sm: number;
|
|
1266
|
+
md: number;
|
|
1267
|
+
lg: number;
|
|
1268
|
+
xl: number;
|
|
1269
|
+
};
|
|
1270
|
+
declare const getIconButtonSizing: (sizing: IconButtonSizing) => CSSObject;
|
|
1271
|
+
declare const IconSizeMap: {
|
|
1272
|
+
xs: number;
|
|
1273
|
+
sm: number;
|
|
1274
|
+
md: number;
|
|
1275
|
+
lg: number;
|
|
1276
|
+
xl: number;
|
|
1277
|
+
};
|
|
1278
|
+
declare const getIconSizing: (sizing: IconButtonSizing) => CSSObject;
|
|
1279
|
+
|
|
1280
|
+
declare const IconButton_variantHelpers_IconSizeMap: typeof IconSizeMap;
|
|
1281
|
+
declare const IconButton_variantHelpers_buttonSizeMap: typeof buttonSizeMap;
|
|
1282
|
+
declare const IconButton_variantHelpers_defaultStyle: typeof defaultStyle;
|
|
1283
|
+
declare const IconButton_variantHelpers_getIconButtonRadius: typeof getIconButtonRadius;
|
|
1284
|
+
declare const IconButton_variantHelpers_getIconButtonSizing: typeof getIconButtonSizing;
|
|
1285
|
+
declare const IconButton_variantHelpers_getIconSizing: typeof getIconSizing;
|
|
1286
|
+
declare const IconButton_variantHelpers_outlined: typeof outlined;
|
|
1287
|
+
declare const IconButton_variantHelpers_raised: typeof raised;
|
|
1288
|
+
declare const IconButton_variantHelpers_toggle: typeof toggle;
|
|
1289
|
+
declare namespace IconButton_variantHelpers {
|
|
1290
|
+
export { IconButton_variantHelpers_IconSizeMap as IconSizeMap, IconButton_variantHelpers_buttonSizeMap as buttonSizeMap, IconButton_variantHelpers_defaultStyle as defaultStyle, IconButton_variantHelpers_getIconButtonRadius as getIconButtonRadius, IconButton_variantHelpers_getIconButtonSizing as getIconButtonSizing, IconButton_variantHelpers_getIconSizing as getIconSizing, IconButton_variantHelpers_outlined as outlined, IconButton_variantHelpers_raised as raised, IconButton_variantHelpers_toggle as toggle };
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
interface IconButtonBaseProps extends IconButtonProps$1 {
|
|
1294
|
+
variation?: IconButtonVariation;
|
|
1295
|
+
shape?: IconButtonShapeMap;
|
|
1296
|
+
sizing?: IconButtonSizing;
|
|
1297
|
+
}
|
|
1298
|
+
declare const IconButtonBase: ({ children, ...rest }: IconButtonBaseProps) => react_jsx_runtime.JSX.Element;
|
|
1299
|
+
|
|
1300
|
+
interface TooltipProps extends PropsWithChildren {
|
|
1301
|
+
message: TooltipProps$1['title'];
|
|
1302
|
+
variation?: 'primary';
|
|
1303
|
+
placement?: TooltipProps$1['placement'];
|
|
1304
|
+
}
|
|
1305
|
+
declare const Tooltip: FunctionComponent<TooltipProps>;
|
|
1306
|
+
|
|
1307
|
+
interface IconButtonProps extends IconButtonBaseProps {
|
|
1308
|
+
icon: ReactElement;
|
|
1309
|
+
loading?: boolean;
|
|
1310
|
+
tooltipMessage?: TooltipProps['message'];
|
|
1311
|
+
slotProps?: {
|
|
1312
|
+
tooltip?: Omit<TooltipProps, 'message'>;
|
|
1313
|
+
};
|
|
1314
|
+
}
|
|
1315
|
+
declare const IconButton: react.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
1316
|
+
|
|
1317
|
+
interface IconButtonGroupProps extends PropsWithChildren {
|
|
1318
|
+
ButtonGroupProps?: ButtonGroupProps;
|
|
1319
|
+
variation?: 'default' | 'toggle';
|
|
1320
|
+
orientation: ButtonGroupProps['orientation'];
|
|
1321
|
+
sizing?: IconButtonProps['sizing'];
|
|
1322
|
+
iconColor?: string;
|
|
1323
|
+
groupRaised?: boolean;
|
|
1324
|
+
className?: string;
|
|
1325
|
+
onClick?: (e: any) => void;
|
|
1326
|
+
onMouseDown?: (e: any) => void;
|
|
1327
|
+
sx?: SxProps<Theme>;
|
|
1328
|
+
}
|
|
1329
|
+
declare const IconButtonGroup: FunctionComponent<IconButtonGroupProps>;
|
|
1330
|
+
|
|
1331
|
+
interface ImageProps extends LazyLoadImageProps {
|
|
1332
|
+
}
|
|
1333
|
+
declare const Image: FunctionComponent<ImageProps>;
|
|
1334
|
+
|
|
1335
|
+
type InputFieldBaseProps = TextFieldProps$1;
|
|
1336
|
+
declare const InputFieldBase: _emotion_styled.StyledComponent<{
|
|
1337
|
+
variant?: _mui_material.TextFieldVariants | undefined;
|
|
1338
|
+
} & Omit<_mui_material.FilledTextFieldProps | _mui_material.OutlinedTextFieldProps | _mui_material.StandardTextFieldProps, "variant"> & (_mui_system.MUIStyledCommonProps<_mui_material.Theme> & InputFieldBaseProps), {}, {}>;
|
|
1339
|
+
|
|
1340
|
+
type InputVariation = 'default' | 'help';
|
|
1341
|
+
|
|
1342
|
+
interface InputLabelProps {
|
|
1343
|
+
variation?: InputVariation;
|
|
1344
|
+
align?: 'left' | 'center' | 'right' | undefined;
|
|
1345
|
+
sx?: SxProps<Theme$1>;
|
|
1346
|
+
children?: ReactElement | string;
|
|
1347
|
+
disabled?: boolean;
|
|
1348
|
+
error?: boolean;
|
|
1349
|
+
required?: boolean;
|
|
1350
|
+
}
|
|
1351
|
+
declare const InputLabel: FunctionComponent<InputLabelProps>;
|
|
1352
|
+
|
|
1353
|
+
interface InputLabelHelpProps {
|
|
1354
|
+
state?: 'default' | 'positive' | 'negative' | 'disabled';
|
|
1355
|
+
showicon?: boolean;
|
|
1356
|
+
icon?: ReactNode;
|
|
1357
|
+
align?: 'left' | 'center' | 'right';
|
|
1358
|
+
children?: ReactNode;
|
|
1359
|
+
disabled?: boolean;
|
|
1360
|
+
required?: boolean;
|
|
1361
|
+
}
|
|
1362
|
+
declare const InputLabelHelp: FunctionComponent<InputLabelHelpProps>;
|
|
1363
|
+
|
|
1364
|
+
interface LikertOption {
|
|
1365
|
+
label: string;
|
|
1366
|
+
value: string;
|
|
1367
|
+
}
|
|
1368
|
+
interface LikertProps {
|
|
1369
|
+
options: LikertOption[];
|
|
1370
|
+
disabled?: boolean;
|
|
1371
|
+
onChange: (value: LikertOption['value']) => void;
|
|
1372
|
+
value: string;
|
|
1373
|
+
sizing?: 'default' | 'lg';
|
|
1374
|
+
internalChange?: () => void;
|
|
1375
|
+
}
|
|
1376
|
+
declare const Likert: FunctionComponent<LikertProps>;
|
|
1377
|
+
|
|
1378
|
+
interface StyledLinkProps extends LinkProps$1 {
|
|
1379
|
+
disabled?: boolean | undefined;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
interface LinkProps {
|
|
1383
|
+
children: React.ReactNode;
|
|
1384
|
+
href?: string;
|
|
1385
|
+
target?: string;
|
|
1386
|
+
onClick?: StyledLinkProps['onClick'];
|
|
1387
|
+
disabled?: boolean;
|
|
1388
|
+
sx?: SxProps<Theme>;
|
|
1389
|
+
underline?: 'none' | 'hover' | 'always' | undefined;
|
|
1390
|
+
noWrap?: boolean;
|
|
1391
|
+
component?: any;
|
|
1392
|
+
rel?: any;
|
|
1393
|
+
title?: string;
|
|
1394
|
+
}
|
|
1395
|
+
declare const Link: FunctionComponent<LinkProps>;
|
|
1396
|
+
|
|
1397
|
+
interface LoaderProps {
|
|
1398
|
+
}
|
|
1399
|
+
declare const Loader: FunctionComponent<LoaderProps>;
|
|
1400
|
+
|
|
1401
|
+
declare const Logo: FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
1402
|
+
|
|
1403
|
+
interface LoopsAiButtonProps {
|
|
1404
|
+
disabled?: boolean;
|
|
1405
|
+
onClick?: () => void;
|
|
1406
|
+
}
|
|
1407
|
+
declare const LoopsAiButton: FunctionComponent<LoopsAiButtonProps>;
|
|
1408
|
+
|
|
1409
|
+
type MarkdownProps = {
|
|
1410
|
+
typographyProps?: Partial<TypographyProps>;
|
|
1411
|
+
children?: string;
|
|
1412
|
+
};
|
|
1413
|
+
declare const Markdown: FC<MarkdownProps>;
|
|
1414
|
+
|
|
1415
|
+
type BindOn = 'trigger' | 'contextMenu' | 'toggle' | 'hover' | 'focus' | 'doubleClick';
|
|
1416
|
+
interface PopperProps {
|
|
1417
|
+
popperProps?: Partial<PopperProps$1>;
|
|
1418
|
+
clickAwayListenerProps?: Partial<Omit<ClickAwayListenerProps, 'onClickAway'> & {
|
|
1419
|
+
onClickAway?: (event: MouseEvent | TouchEvent, state: PopupState) => void;
|
|
1420
|
+
}>;
|
|
1421
|
+
transitionFadeProps?: Pick<FadeProps, 'easing' | 'timeout' | 'appear' | 'enter' | 'exit'>;
|
|
1422
|
+
surfaceProps?: SurfaceProps;
|
|
1423
|
+
bindOn?: BindOn[];
|
|
1424
|
+
trigger: ReactElement;
|
|
1425
|
+
children: ReactElement;
|
|
1426
|
+
state?: PopupState;
|
|
1427
|
+
}
|
|
1428
|
+
declare const Popper: ({ bindOn, trigger, children, state, ...props }: PopperProps) => react_jsx_runtime.JSX.Element;
|
|
1429
|
+
|
|
1430
|
+
interface MenuProps extends PropsWithChildren {
|
|
1431
|
+
menuItems?: MenuItemProps[];
|
|
1432
|
+
offset?: number[];
|
|
1433
|
+
placement?: PopperProps$1['placement'];
|
|
1434
|
+
state?: PopupState;
|
|
1435
|
+
bindOn?: PopperProps['bindOn'];
|
|
1436
|
+
trigger: ReactElement;
|
|
1437
|
+
width?: number;
|
|
1438
|
+
}
|
|
1439
|
+
declare const Menu: FunctionComponent<MenuProps>;
|
|
1440
|
+
|
|
1441
|
+
interface NudgeProps extends PropsWithChildren {
|
|
1442
|
+
description: string;
|
|
1443
|
+
notification?: boolean;
|
|
1444
|
+
title: string;
|
|
1445
|
+
navigationSizing: NavigationSizing;
|
|
1446
|
+
}
|
|
1447
|
+
declare const Nudge: FunctionComponent<NudgeProps>;
|
|
1448
|
+
|
|
1449
|
+
type NumberFieldProps = InputFieldBaseProps & {
|
|
1450
|
+
hideActionButtons?: boolean;
|
|
1451
|
+
max?: number;
|
|
1452
|
+
min?: number;
|
|
1453
|
+
startAdornment?: ReactElement | string;
|
|
1454
|
+
endAdornment?: ReactElement | string;
|
|
1455
|
+
numericFormatProps?: NumericFormatProps;
|
|
1456
|
+
onChange?: (value: number | null) => void;
|
|
1457
|
+
step?: number;
|
|
1458
|
+
internalChange?: () => void;
|
|
1459
|
+
value?: number | null;
|
|
1460
|
+
};
|
|
1461
|
+
declare const NumberField: FunctionComponent<NumberFieldProps>;
|
|
1462
|
+
|
|
1463
|
+
interface StyledChipProps extends ChipProps {
|
|
1464
|
+
variation?: 'default' | 'peach' | 'peachDark' | 'purple';
|
|
1465
|
+
weight?: 'heavy' | 'light';
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
interface PillProps extends Omit<StyledChipProps, 'size' | 'color' | 'label' | 'children'> {
|
|
1469
|
+
body: string;
|
|
1470
|
+
}
|
|
1471
|
+
declare const Pill: FunctionComponent<PillProps>;
|
|
1472
|
+
|
|
1473
|
+
declare const PoweredByWatermarkLogo: () => react_jsx_runtime.JSX.Element;
|
|
1474
|
+
|
|
1475
|
+
type ProgressSizing = Exclude<GenericSizeMap, 'none'>;
|
|
1476
|
+
interface ProgressProps {
|
|
1477
|
+
sizing?: ProgressSizing;
|
|
1478
|
+
}
|
|
1479
|
+
declare const Progress: FunctionComponent<ProgressProps>;
|
|
1480
|
+
|
|
1481
|
+
interface ProgressBarProps {
|
|
1482
|
+
variation: LinearProgressProps['variant'];
|
|
1483
|
+
value: LinearProgressProps['value'];
|
|
1484
|
+
}
|
|
1485
|
+
declare const ProgressBar: FunctionComponent<ProgressBarProps>;
|
|
1486
|
+
|
|
1487
|
+
interface RadioProps {
|
|
1488
|
+
sizing?: 'default' | 'lg';
|
|
1489
|
+
disabled?: boolean;
|
|
1490
|
+
name?: string;
|
|
1491
|
+
value?: unknown;
|
|
1492
|
+
autoFocus?: boolean;
|
|
1493
|
+
onChange?: ((event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void) | undefined;
|
|
1494
|
+
checked?: boolean;
|
|
1495
|
+
readOnly?: boolean;
|
|
1496
|
+
required?: boolean;
|
|
1497
|
+
'aria-label'?: string;
|
|
1498
|
+
}
|
|
1499
|
+
declare const Radio: FunctionComponent<RadioProps>;
|
|
1500
|
+
|
|
1501
|
+
interface RadioGroupOption {
|
|
1502
|
+
label: string;
|
|
1503
|
+
value: string;
|
|
1504
|
+
}
|
|
1505
|
+
interface RadioGroupOther {
|
|
1506
|
+
label?: string;
|
|
1507
|
+
enabled?: boolean;
|
|
1508
|
+
placeholder?: string;
|
|
1509
|
+
name?: string;
|
|
1510
|
+
}
|
|
1511
|
+
interface RadioGroupProps {
|
|
1512
|
+
options: RadioGroupOption[];
|
|
1513
|
+
children?: ReactNode;
|
|
1514
|
+
other?: RadioGroupOther;
|
|
1515
|
+
onChange: (value: string) => void;
|
|
1516
|
+
internalChange?: () => void;
|
|
1517
|
+
name: string;
|
|
1518
|
+
value: string;
|
|
1519
|
+
}
|
|
1520
|
+
declare const RadioGroup: FunctionComponent<RadioGroupProps>;
|
|
1521
|
+
|
|
1522
|
+
type SelectOption = {
|
|
1523
|
+
label: string;
|
|
1524
|
+
value: string;
|
|
1525
|
+
};
|
|
1526
|
+
type GroupSelectOption = SelectOption & {
|
|
1527
|
+
group: string;
|
|
1528
|
+
};
|
|
1529
|
+
|
|
1530
|
+
type SelectOnChange = (event: SelectChangeEvent<any>, child: React.ReactNode) => void;
|
|
1531
|
+
type AutocompleteOnChange = (value: string | string[]) => void;
|
|
1532
|
+
type SelectProps = {
|
|
1533
|
+
selections: SelectOption[];
|
|
1534
|
+
autoComplete?: boolean;
|
|
1535
|
+
autoFocus?: boolean;
|
|
1536
|
+
disabled?: boolean;
|
|
1537
|
+
disablePortal?: boolean;
|
|
1538
|
+
error?: boolean;
|
|
1539
|
+
fullWidth?: boolean;
|
|
1540
|
+
grouped?: boolean;
|
|
1541
|
+
id?: string;
|
|
1542
|
+
inputRef?: SelectProps$1['inputRef'];
|
|
1543
|
+
internalChange?: () => void;
|
|
1544
|
+
MenuProps?: SelectProps$1['MenuProps'];
|
|
1545
|
+
multi?: boolean;
|
|
1546
|
+
name: string;
|
|
1547
|
+
onBlur?: SelectProps$1['onBlur'];
|
|
1548
|
+
onChange?: SelectOnChange | AutocompleteOnChange;
|
|
1549
|
+
placeholder?: string | undefined;
|
|
1550
|
+
readOnly?: boolean;
|
|
1551
|
+
ref?: SelectProps$1['ref'];
|
|
1552
|
+
required?: boolean;
|
|
1553
|
+
selectOptionProps?: MenuItemProps$1;
|
|
1554
|
+
sizing?: 'xs' | 'md' | 'lg';
|
|
1555
|
+
sx?: SelectProps$1['sx'];
|
|
1556
|
+
value?: SelectProps$1['value'];
|
|
1557
|
+
renderListItem?: (value: string, label: string) => ReactElement;
|
|
1558
|
+
};
|
|
1559
|
+
declare const Select: FunctionComponent<SelectProps>;
|
|
1560
|
+
|
|
1561
|
+
interface Option {
|
|
1562
|
+
label: string;
|
|
1563
|
+
value: string;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
interface Props$1 {
|
|
1567
|
+
id: UniqueIdentifier;
|
|
1568
|
+
top?: JSX.Element;
|
|
1569
|
+
bottom?: JSX.Element;
|
|
1570
|
+
}
|
|
1571
|
+
declare function SortableItem({ children, top, bottom, id }: PropsWithChildren<Props$1>): react_jsx_runtime.JSX.Element;
|
|
1572
|
+
declare function DragHandle(): react_jsx_runtime.JSX.Element;
|
|
1573
|
+
|
|
1574
|
+
interface BaseItem {
|
|
1575
|
+
id: UniqueIdentifier;
|
|
1576
|
+
}
|
|
1577
|
+
interface SortableListProps<T extends BaseItem> {
|
|
1578
|
+
items: T[];
|
|
1579
|
+
onChange(items: T[]): void;
|
|
1580
|
+
renderItem(item: T, isOverlay?: boolean, isDragActive?: boolean): ReactNode;
|
|
1581
|
+
disabled?: boolean;
|
|
1582
|
+
direction?: 'horizontal' | 'vertical';
|
|
1583
|
+
}
|
|
1584
|
+
declare function SortableList<T extends BaseItem>({ items, onChange, renderItem, disabled, direction }: SortableListProps<T>): react_jsx_runtime.JSX.Element | undefined;
|
|
1585
|
+
declare namespace SortableList {
|
|
1586
|
+
var Item: typeof SortableItem;
|
|
1587
|
+
var DragHandle: typeof DragHandle;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
interface RankProps extends Omit<SortableListProps<any>, 'renderItem' | 'items'> {
|
|
1591
|
+
labelTop: string;
|
|
1592
|
+
labelBottom: string;
|
|
1593
|
+
fullWidth?: boolean;
|
|
1594
|
+
options: (Option & {
|
|
1595
|
+
id: string;
|
|
1596
|
+
})[];
|
|
1597
|
+
internalChange?: () => void;
|
|
1598
|
+
value?: (Option & {
|
|
1599
|
+
id: string;
|
|
1600
|
+
})[];
|
|
1601
|
+
}
|
|
1602
|
+
declare const Rank: FunctionComponent<RankProps>;
|
|
1603
|
+
|
|
1604
|
+
type RichTextFieldProps = Omit<InputFieldBaseProps, 'value' | 'onChange'> & {
|
|
1605
|
+
onChange?: (content: string) => void;
|
|
1606
|
+
internalChange?: () => void;
|
|
1607
|
+
minHeight?: number;
|
|
1608
|
+
minWidth?: number;
|
|
1609
|
+
maxHeight?: number;
|
|
1610
|
+
value: string;
|
|
1611
|
+
};
|
|
1612
|
+
declare const RichTextField: FunctionComponent<RichTextFieldProps>;
|
|
1613
|
+
|
|
1614
|
+
interface SkeletonProps {
|
|
1615
|
+
animation?: SkeletonProps$1['animation'];
|
|
1616
|
+
children?: SkeletonProps$1['children'];
|
|
1617
|
+
height?: SkeletonProps$1['height'];
|
|
1618
|
+
sx?: SkeletonProps$1['sx'];
|
|
1619
|
+
variant?: SkeletonProps$1['variant'];
|
|
1620
|
+
width?: SkeletonProps$1['width'];
|
|
1621
|
+
component?: SkeletonProps$1['component'];
|
|
1622
|
+
ref?: SkeletonProps$1['ref'];
|
|
1623
|
+
}
|
|
1624
|
+
declare const Skeleton: FunctionComponent<SkeletonProps>;
|
|
1625
|
+
|
|
1626
|
+
interface SliderProps {
|
|
1627
|
+
labelLeft: string;
|
|
1628
|
+
labelRight: string;
|
|
1629
|
+
labelMiddle?: string;
|
|
1630
|
+
min?: number;
|
|
1631
|
+
max?: number;
|
|
1632
|
+
labelRightProps?: InputLabelHelpProps;
|
|
1633
|
+
labelLeftProps?: InputLabelHelpProps;
|
|
1634
|
+
marks?: Mark[];
|
|
1635
|
+
marksStep?: number;
|
|
1636
|
+
internalChange?: () => void;
|
|
1637
|
+
disabled?: boolean;
|
|
1638
|
+
onChange?: (event: Event, value: number | number[], activeThumb: number) => void;
|
|
1639
|
+
step?: number;
|
|
1640
|
+
value?: number | number[];
|
|
1641
|
+
}
|
|
1642
|
+
declare const Slider: FunctionComponent<SliderProps>;
|
|
1643
|
+
|
|
1644
|
+
interface StarRatingProps {
|
|
1645
|
+
disabled?: boolean;
|
|
1646
|
+
readOnly?: boolean;
|
|
1647
|
+
onChange?: (event: React.ChangeEvent<{}>, value: number | null) => void;
|
|
1648
|
+
precision?: number;
|
|
1649
|
+
name: string;
|
|
1650
|
+
IconContainerComponent?: any;
|
|
1651
|
+
value?: number | null;
|
|
1652
|
+
internalChange?: () => void;
|
|
1653
|
+
}
|
|
1654
|
+
declare const StarRating: FunctionComponent<StarRatingProps>;
|
|
1655
|
+
|
|
1656
|
+
interface StyledSwitchProps extends SwitchProps$1 {
|
|
1657
|
+
sizing?: 'sm' | 'lg';
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
interface SwitchProps extends Omit<StyledSwitchProps, 'inputProps'> {
|
|
1661
|
+
sizing?: 'sm' | 'lg';
|
|
1662
|
+
value?: boolean;
|
|
1663
|
+
label?: string | ReactElement;
|
|
1664
|
+
labelPlacement?: Exclude<FormControlLabelProps['labelPlacement'], 'top' | 'bottom'>;
|
|
1665
|
+
fullWidth?: boolean;
|
|
1666
|
+
onChange?: (event: React.SyntheticEvent<Element, Event>, checked: boolean) => void;
|
|
1667
|
+
internalChange?: () => void;
|
|
1668
|
+
}
|
|
1669
|
+
declare const Switch: FunctionComponent<SwitchProps>;
|
|
1670
|
+
|
|
1671
|
+
type TextareaProps = InputFieldBaseProps & {
|
|
1672
|
+
startAdornment?: ReactElement;
|
|
1673
|
+
endAdornment?: ReactElement;
|
|
1674
|
+
internalChange?: () => void;
|
|
1675
|
+
};
|
|
1676
|
+
declare const Textarea: FunctionComponent<TextareaProps>;
|
|
1677
|
+
|
|
1678
|
+
interface TextBarDividerProps {
|
|
1679
|
+
sx?: SxProps<Theme>;
|
|
1680
|
+
typographyProps?: Partial<TypographyProps>;
|
|
1681
|
+
text: string;
|
|
1682
|
+
}
|
|
1683
|
+
declare const TextBarDivider: FunctionComponent<TextBarDividerProps>;
|
|
1684
|
+
|
|
1685
|
+
type TextFieldProps = InputFieldBaseProps & {
|
|
1686
|
+
startAdornment?: ReactElement;
|
|
1687
|
+
endAdornment?: ReactElement;
|
|
1688
|
+
internalChange?: () => void;
|
|
1689
|
+
};
|
|
1690
|
+
declare const TextField: FunctionComponent<TextFieldProps>;
|
|
1691
|
+
|
|
1692
|
+
type ToastStatus = 'neutral' | 'success' | 'warning' | 'danger' | 'discover';
|
|
1693
|
+
type ToastVariation = 'sm' | 'lg';
|
|
1694
|
+
interface ToastProps {
|
|
1695
|
+
buttons?: ReactElement;
|
|
1696
|
+
message: string | ReactElement;
|
|
1697
|
+
status?: ToastStatus;
|
|
1698
|
+
variation?: ToastVariation;
|
|
1699
|
+
}
|
|
1700
|
+
declare const Toast: FunctionComponent<ToastProps>;
|
|
1701
|
+
|
|
1702
|
+
type TrialCardProps = {
|
|
1703
|
+
promoHeadline: string;
|
|
1704
|
+
promoDescription: string;
|
|
1705
|
+
ctaText: string;
|
|
1706
|
+
ctaFn: () => void;
|
|
1707
|
+
};
|
|
1708
|
+
declare const TrialCard: FunctionComponent<TrialCardProps>;
|
|
1709
|
+
|
|
1710
|
+
interface VideoModalProps {
|
|
1711
|
+
modalVisible: boolean;
|
|
1712
|
+
showModal: (visible: boolean) => void;
|
|
1713
|
+
video: string;
|
|
1714
|
+
}
|
|
1715
|
+
declare const VideoModal: FunctionComponent<VideoModalProps>;
|
|
1716
|
+
|
|
1717
|
+
interface BrandBadgeProps {
|
|
1718
|
+
color?: 'purple' | 'peach' | 'red' | 'default';
|
|
1719
|
+
name: 'emotion-meh' | 'emotion-good' | 'emotion-great' | 'understanding-unknown' | 'understanding-low' | 'understanding-good' | 'understanding-great' | 'property-secure' | 'property-private';
|
|
1720
|
+
size?: number;
|
|
1721
|
+
sx?: SxProps;
|
|
1722
|
+
}
|
|
1723
|
+
declare const BrandBadge: FunctionComponent<BrandBadgeProps>;
|
|
1724
|
+
|
|
1725
|
+
interface BulletGraphicProps {
|
|
1726
|
+
name: 'placeholder' | 'variant-test' | 'worldwide' | 'celebrate-collaborate' | 'ai' | 'many-media' | 'qual-and-quant' | 'alert' | 'comment';
|
|
1727
|
+
size?: number;
|
|
1728
|
+
sx?: SxProps;
|
|
1729
|
+
}
|
|
1730
|
+
declare const BulletGraphic: FunctionComponent<BulletGraphicProps>;
|
|
1731
|
+
|
|
1732
|
+
interface PlanHeading {
|
|
1733
|
+
heading: string;
|
|
1734
|
+
pricing: string;
|
|
1735
|
+
}
|
|
1736
|
+
interface PlanRow {
|
|
1737
|
+
heading: string;
|
|
1738
|
+
description: string;
|
|
1739
|
+
starter: string;
|
|
1740
|
+
team: string;
|
|
1741
|
+
plus: string;
|
|
1742
|
+
scale: string;
|
|
1743
|
+
}
|
|
1744
|
+
interface PlanFeatureTableData {
|
|
1745
|
+
headings: {
|
|
1746
|
+
'01-starter': PlanHeading;
|
|
1747
|
+
'02-team': PlanHeading;
|
|
1748
|
+
'03-plus': PlanHeading;
|
|
1749
|
+
'04-scale': PlanHeading;
|
|
1750
|
+
};
|
|
1751
|
+
rows: {
|
|
1752
|
+
'01-seats': PlanRow;
|
|
1753
|
+
'02-servicing': PlanRow;
|
|
1754
|
+
'03-respondents': PlanRow;
|
|
1755
|
+
'04-questions': PlanRow;
|
|
1756
|
+
'05-ai': PlanRow;
|
|
1757
|
+
'06-demographics': PlanRow;
|
|
1758
|
+
'07-training': PlanRow;
|
|
1759
|
+
'08-invite': PlanRow;
|
|
1760
|
+
'09-email': PlanRow;
|
|
1761
|
+
'10-beta': PlanRow;
|
|
1762
|
+
'11-sso': PlanRow;
|
|
1763
|
+
'12-minimum': PlanRow;
|
|
1764
|
+
};
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
interface PlanFeatureTableProps {
|
|
1768
|
+
currencySymbol: string;
|
|
1769
|
+
data: PlanFeatureTableData;
|
|
1770
|
+
starterPrice: string;
|
|
1771
|
+
starterRespondentPrice: string;
|
|
1772
|
+
teamPrice: string;
|
|
1773
|
+
teamRespondentPrice: string;
|
|
1774
|
+
plusPrice: string;
|
|
1775
|
+
plusRespondentPrice: string;
|
|
1776
|
+
scalePrice: string;
|
|
1777
|
+
scaleRespondentPrice: string;
|
|
1778
|
+
variation?: 'default' | 'platform';
|
|
1779
|
+
}
|
|
1780
|
+
declare const PlanFeatureTable: FunctionComponent<PlanFeatureTableProps>;
|
|
1781
|
+
|
|
1782
|
+
type Section = 'headerHeight' | 'bodyHeight' | 'respondentCardHeight' | 'bottomHeight';
|
|
1783
|
+
interface PlanTierCardProps {
|
|
1784
|
+
amount: string;
|
|
1785
|
+
billingType?: string;
|
|
1786
|
+
body: string;
|
|
1787
|
+
ctaEvent?: (heading: string) => void;
|
|
1788
|
+
ctaLink?: string;
|
|
1789
|
+
ctaTarget?: string;
|
|
1790
|
+
ctaText: string;
|
|
1791
|
+
ctaVariation?: 'primary' | 'secondary' | 'outlined';
|
|
1792
|
+
currencySymbol: string;
|
|
1793
|
+
currentPlan?: boolean;
|
|
1794
|
+
features?: string[];
|
|
1795
|
+
heading: string;
|
|
1796
|
+
label?: string;
|
|
1797
|
+
perMonth: string;
|
|
1798
|
+
respondentsTitle?: string;
|
|
1799
|
+
respondentsFeatures?: string[];
|
|
1800
|
+
saving?: string;
|
|
1801
|
+
sectionHeights: Record<Section, number>;
|
|
1802
|
+
updateSectionHeight?: (section: Section, height: number) => void;
|
|
1803
|
+
}
|
|
1804
|
+
declare const PlanTierCard: FunctionComponent<PlanTierCardProps>;
|
|
1805
|
+
|
|
1806
|
+
interface PlanTierCardScaleProps {
|
|
1807
|
+
amount: string;
|
|
1808
|
+
body: string;
|
|
1809
|
+
ctaEvent?: (heading: string) => void;
|
|
1810
|
+
ctaLink?: string;
|
|
1811
|
+
ctaTarget?: string;
|
|
1812
|
+
ctaText: string;
|
|
1813
|
+
currencySymbol: string;
|
|
1814
|
+
heading: string;
|
|
1815
|
+
preText: string;
|
|
1816
|
+
postText: string;
|
|
1817
|
+
}
|
|
1818
|
+
declare const PlanTierCardScale: FunctionComponent<PlanTierCardScaleProps>;
|
|
1819
|
+
|
|
1820
|
+
interface TickGroupProps {
|
|
1821
|
+
heading: string;
|
|
1822
|
+
ticks: string[];
|
|
1823
|
+
}
|
|
1824
|
+
declare const TickGroup: FunctionComponent<TickGroupProps>;
|
|
1825
|
+
|
|
1826
|
+
type BreakpointOrNull = Breakpoint | null;
|
|
1827
|
+
declare const useBreakpoint: () => Breakpoint;
|
|
1828
|
+
|
|
1829
|
+
declare function compareArrayMembers(arr1: string[], arr2: string[]): boolean;
|
|
1830
|
+
|
|
1831
|
+
declare const useScreenSize: () => {
|
|
1832
|
+
width: number | undefined;
|
|
1833
|
+
height: number | undefined;
|
|
1834
|
+
};
|
|
1835
|
+
|
|
1836
|
+
declare const usePrevious: <TValue>(value: TValue) => TValue | undefined;
|
|
1837
|
+
|
|
1838
|
+
type ScreenSize = 'sm' | 'lg';
|
|
1839
|
+
|
|
1840
|
+
declare const customTheme: (mode: PaletteMode, size: ScreenSize, direction?: Direction) => Theme;
|
|
1841
|
+
|
|
1842
|
+
interface ThemeCtx {
|
|
1843
|
+
breakpoint: string;
|
|
1844
|
+
gridOverlayVisible: boolean;
|
|
1845
|
+
mode: PaletteMode;
|
|
1846
|
+
theme: Theme;
|
|
1847
|
+
toggleGridOverlay: () => void;
|
|
1848
|
+
toggleMode: (mode?: PaletteMode) => void;
|
|
1849
|
+
}
|
|
1850
|
+
declare const ThemeContext: react.Context<Nullable<ThemeCtx>>;
|
|
1851
|
+
|
|
1852
|
+
declare const useThemeBuilder: (initialMode?: PaletteMode, initialScreenSize?: ScreenSize, initialDirection?: Direction) => {
|
|
1853
|
+
breakpoint: "" | "sm" | "md" | "lg" | "xl";
|
|
1854
|
+
gridOverlayVisible: boolean;
|
|
1855
|
+
mode: PaletteMode;
|
|
1856
|
+
theme: _mui_material.Theme;
|
|
1857
|
+
toggleGridOverlay: () => void;
|
|
1858
|
+
toggleMode: (mode?: PaletteMode) => void;
|
|
1859
|
+
};
|
|
1860
|
+
declare const useTheme: () => ThemeCtx;
|
|
1861
|
+
|
|
1862
|
+
interface Props extends PropsWithChildren {
|
|
1863
|
+
mode?: PaletteMode;
|
|
1864
|
+
screenSize?: ScreenSize;
|
|
1865
|
+
direction?: Direction;
|
|
1866
|
+
ignoreCacheProvider?: boolean;
|
|
1867
|
+
}
|
|
1868
|
+
declare const ThemeProvider: FunctionComponent<Props>;
|
|
1869
|
+
|
|
1870
|
+
declare module '@mui/material/styles' {
|
|
1871
|
+
interface BreakpointOverrides {
|
|
1872
|
+
xs: false;
|
|
1873
|
+
sm: true;
|
|
1874
|
+
md: true;
|
|
1875
|
+
lg: true;
|
|
1876
|
+
lgNav: true;
|
|
1877
|
+
xl: true;
|
|
1878
|
+
xxl: true;
|
|
1879
|
+
}
|
|
1880
|
+
interface TypographyVariants {
|
|
1881
|
+
xxxl: React.CSSProperties;
|
|
1882
|
+
xxl: React.CSSProperties;
|
|
1883
|
+
xl: React.CSSProperties;
|
|
1884
|
+
lg: React.CSSProperties;
|
|
1885
|
+
md: React.CSSProperties;
|
|
1886
|
+
sm: React.CSSProperties;
|
|
1887
|
+
xs: React.CSSProperties;
|
|
1888
|
+
xxs: React.CSSProperties;
|
|
1889
|
+
}
|
|
1890
|
+
interface TypographyVariantsOptions {
|
|
1891
|
+
xxxl?: React.CSSProperties;
|
|
1892
|
+
xxl?: React.CSSProperties;
|
|
1893
|
+
xl?: React.CSSProperties;
|
|
1894
|
+
lg?: React.CSSProperties;
|
|
1895
|
+
md?: React.CSSProperties;
|
|
1896
|
+
sm?: React.CSSProperties;
|
|
1897
|
+
xs?: React.CSSProperties;
|
|
1898
|
+
xxs?: React.CSSProperties;
|
|
1899
|
+
}
|
|
1900
|
+
interface ThemeOptions {
|
|
1901
|
+
custom?: {
|
|
1902
|
+
palette?: {
|
|
1903
|
+
black?: string;
|
|
1904
|
+
white?: string;
|
|
1905
|
+
neutral?: ColorRange$1;
|
|
1906
|
+
neutralAlpha?: ColorRangeAlpha$1;
|
|
1907
|
+
purple?: ColorRange$1;
|
|
1908
|
+
red?: ColorRange$1;
|
|
1909
|
+
peach?: ColorRange$1;
|
|
1910
|
+
yellow?: ColorRange$1;
|
|
1911
|
+
blue?: ColorRange$1;
|
|
1912
|
+
green?: ColorRange$1;
|
|
1913
|
+
icon?: {
|
|
1914
|
+
primary?: string;
|
|
1915
|
+
secondary?: string;
|
|
1916
|
+
disabled?: string;
|
|
1917
|
+
primaryInverted?: string;
|
|
1918
|
+
secondaryInverted?: string;
|
|
1919
|
+
disabledInverted?: string;
|
|
1920
|
+
};
|
|
1921
|
+
interaction?: {
|
|
1922
|
+
none?: string;
|
|
1923
|
+
hover?: string;
|
|
1924
|
+
press?: string;
|
|
1925
|
+
};
|
|
1926
|
+
stroke?: {
|
|
1927
|
+
default?: string;
|
|
1928
|
+
focus?: string;
|
|
1929
|
+
disabled?: string;
|
|
1930
|
+
};
|
|
1931
|
+
surface?: {
|
|
1932
|
+
default?: string;
|
|
1933
|
+
sunken?: string;
|
|
1934
|
+
raised?: string;
|
|
1935
|
+
overlay?: string;
|
|
1936
|
+
scrim?: string;
|
|
1937
|
+
};
|
|
1938
|
+
text?: {
|
|
1939
|
+
primary?: string;
|
|
1940
|
+
secondary?: string;
|
|
1941
|
+
placeholder?: string;
|
|
1942
|
+
disabled?: string;
|
|
1943
|
+
primaryInverted?: string;
|
|
1944
|
+
secondaryInverted?: string;
|
|
1945
|
+
placeholderInverted?: string;
|
|
1946
|
+
disabledInverted?: string;
|
|
1947
|
+
success?: string;
|
|
1948
|
+
error?: string;
|
|
1949
|
+
};
|
|
1950
|
+
input?: {
|
|
1951
|
+
default?: string;
|
|
1952
|
+
disabled?: string;
|
|
1953
|
+
};
|
|
1954
|
+
};
|
|
1955
|
+
margin?: {
|
|
1956
|
+
none?: number;
|
|
1957
|
+
xs?: number;
|
|
1958
|
+
sm?: number;
|
|
1959
|
+
md?: number;
|
|
1960
|
+
lg?: number;
|
|
1961
|
+
xl?: number;
|
|
1962
|
+
xxl?: number;
|
|
1963
|
+
xxxl?: number;
|
|
1964
|
+
};
|
|
1965
|
+
padding?: {
|
|
1966
|
+
none?: number;
|
|
1967
|
+
xs?: number;
|
|
1968
|
+
sm?: number;
|
|
1969
|
+
md?: number;
|
|
1970
|
+
lg?: number;
|
|
1971
|
+
xl?: number;
|
|
1972
|
+
};
|
|
1973
|
+
radius?: {
|
|
1974
|
+
none?: number;
|
|
1975
|
+
xs?: number;
|
|
1976
|
+
sm?: number;
|
|
1977
|
+
md?: number;
|
|
1978
|
+
lg?: number;
|
|
1979
|
+
xl?: number;
|
|
1980
|
+
round?: number;
|
|
1981
|
+
};
|
|
1982
|
+
elevation?: {
|
|
1983
|
+
raised?: string;
|
|
1984
|
+
overlay?: string;
|
|
1985
|
+
};
|
|
1986
|
+
elevationFilter?: {
|
|
1987
|
+
raised?: string;
|
|
1988
|
+
overlay?: string;
|
|
1989
|
+
};
|
|
1990
|
+
easing?: {
|
|
1991
|
+
default?: string;
|
|
1992
|
+
};
|
|
1993
|
+
boxShadow?: {
|
|
1994
|
+
input?: {
|
|
1995
|
+
focus?: string;
|
|
1996
|
+
handle?: string;
|
|
1997
|
+
};
|
|
1998
|
+
};
|
|
1999
|
+
typography?: {
|
|
2000
|
+
headline?: {
|
|
2001
|
+
xxs?: string;
|
|
2002
|
+
xs?: string;
|
|
2003
|
+
sm?: string;
|
|
2004
|
+
md?: string;
|
|
2005
|
+
lg?: string;
|
|
2006
|
+
xl?: string;
|
|
2007
|
+
xxl?: string;
|
|
2008
|
+
xxxl?: string;
|
|
2009
|
+
};
|
|
2010
|
+
body?: {
|
|
2011
|
+
xxs?: string;
|
|
2012
|
+
xs?: string;
|
|
2013
|
+
sm?: string;
|
|
2014
|
+
md?: string;
|
|
2015
|
+
lg?: string;
|
|
2016
|
+
xl?: string;
|
|
2017
|
+
xxl?: string;
|
|
2018
|
+
xxxl?: string;
|
|
2019
|
+
};
|
|
2020
|
+
};
|
|
2021
|
+
};
|
|
2022
|
+
}
|
|
2023
|
+
interface Theme {
|
|
2024
|
+
custom: CustomTheme;
|
|
2025
|
+
margin: {
|
|
2026
|
+
0: number;
|
|
2027
|
+
xs: number;
|
|
2028
|
+
sm: number;
|
|
2029
|
+
md: number;
|
|
2030
|
+
lg: number;
|
|
2031
|
+
xl: number;
|
|
2032
|
+
xxl: number;
|
|
2033
|
+
xxxl: number;
|
|
2034
|
+
};
|
|
2035
|
+
padding: {
|
|
2036
|
+
0: number;
|
|
2037
|
+
xs: number;
|
|
2038
|
+
sm: number;
|
|
2039
|
+
md: number;
|
|
2040
|
+
lg: number;
|
|
2041
|
+
xl: number;
|
|
2042
|
+
};
|
|
2043
|
+
radius: {
|
|
2044
|
+
0: number;
|
|
2045
|
+
xs: number;
|
|
2046
|
+
sm: number;
|
|
2047
|
+
md: number;
|
|
2048
|
+
lg: number;
|
|
2049
|
+
xl: number;
|
|
2050
|
+
round: number;
|
|
2051
|
+
};
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
declare module '@mui/material/Typography' {
|
|
2055
|
+
interface TypographyPropsVariantOverrides {
|
|
2056
|
+
xxxl: true;
|
|
2057
|
+
xxl: true;
|
|
2058
|
+
xl: true;
|
|
2059
|
+
lg: true;
|
|
2060
|
+
md: true;
|
|
2061
|
+
sm: true;
|
|
2062
|
+
xs: true;
|
|
2063
|
+
xxs: true;
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
declare module '@mui/system' {
|
|
2067
|
+
interface Shape {
|
|
2068
|
+
hotspot: {
|
|
2069
|
+
active: number;
|
|
2070
|
+
default: number;
|
|
2071
|
+
};
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
export { AnnualController, type AnnualControllerProps, AuthContainerSurface, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, BrandBadge, type BrandBadgeProps, Breadcrumb, type BreadcrumbProps, type BreakpointOrNull, BulletGraphic, type BulletGraphicProps, Button, ButtonBase, type ButtonBaseProps, type ButtonProps, type ButtonSizing, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ColorBackgroundContainer, type ColorBackgroundContainerProps, type ColorRange$1 as ColorRange, type ColorRangeAlpha$1 as ColorRangeAlpha, CustomField, type CustomFieldProps, DEFAULT_MAX_INPUT_LENGTH, Differential, type DifferentialProps, DropdownMenu, type FieldType, type FieldTypes, FontWeight, FormControlLabel, FormGenerator, type FormGeneratorConfig, type FormGeneratorHandler, type GenericSizeMap, GridOverlay, type GridOverlayProps, type GroupSelectOption, Header, type HeaderProps, Html, HtmlParser, type HtmlParserProps, type HtmlProps, Icon, IconButton, IconButtonBase, type IconButtonBaseProps, IconButtonGroup, type IconButtonProps, type IconName, Image, type ImageProps, InputFieldBase, type InputFieldBaseProps, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, LoopsAiButton, type LoopsAiButtonProps, Markdown, type MarkdownProps, Menu, type MenuProps, Navigation, NavigationButton, type NavigationButtonProps, type NavigationProps, type NavigationSizing, Nudge, type NudgeProps, NumberField, type NumberFieldProps, OnboardingCard, type OnboardingCardProps, type OnboardingItem, Pill, type PillProps, PlanFeatureTable, type PlanFeatureTableData, type PlanFeatureTableProps, PlanTierCard, type PlanTierCardProps, PlanTierCardScale, type PlanTierCardScaleProps, Popper, type PopperProps, PoweredByWatermarkLogo, Progress, ProgressBar, type ProgressBarProps, type ProgressProps, ProjectItem, ProjectItemEmpty, type ProjectItemEmptyProps, type ProjectItemProps, Projects, type ProjectsProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rank, type RankProps, RichTextField, type RichTextFieldProps, type Section, SectionHeader, type SectionHeaderProps, Select, type SelectOption, type SelectProps, type SemanticColor, Skeleton, type SkeletonProps, Slider, type SliderProps, SortableList, type SortableListProps, StarRating, type StarRatingProps, Surface, type SurfaceProps, Switch, type SwitchProps, TextBarDivider, type TextBarDividerProps, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeContext, type ThemeCtx, ThemeProvider, TickGroup, type TickGroupProps, Toast, type ToastProps, Tooltip, type TooltipProps, TrialCard, type TrialCardProps, Typography, type TypographyProps, UserMenu, type UserMenuProps, VideoModal, type VideoModalProps, backgroundCreator, base, blue, blueRamp, boxShadow, breakpoints, buttonInteraction, chooseArticle, compareArrayMembers, customTheme, darkNeutral, darkNeutralAlpha, defaultInputValidation, easing, elevation, elevationFilter, emailValidation, fonts, generateRamp, getButtonSizing, getButtonTypography, getIconSizing$1 as getIconSizing, green, greenRamp, IconButton_variantHelpers as iconButtonHelpers, iconSizeMap, margin, neutral, neutralAlpha, neutralRamp, outlined$1 as outlined, padding, passwordValidation, peach, peachRamp, primary, purple, purpleRamp, radius, red, redRamp, secondary, semantic, space, subtle, useBreakpoint, useDropdownMenu, usePrevious, useScreenSize, useTheme, useThemeBuilder, yellow, yellowRamp };
|