@useloops/design-system 1.4.35 → 1.4.36
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 +4 -4
- package/dist/index.d.ts +313 -232
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ReactElement, FunctionComponent, ChangeEvent, PropsWithChildren, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
3
3
|
import * as _mui_material from '@mui/material';
|
|
4
|
-
import {
|
|
4
|
+
import { AvatarGroupProps as AvatarGroupProps$1, SxProps, CheckboxProps as CheckboxProps$1, FormControlLabelProps as FormControlLabelProps$1, Theme, Breakpoint, ButtonGroupProps, LinkProps as LinkProps$1, MenuItemProps, SelectProps as SelectProps$1, PaperProps, SwitchProps as SwitchProps$1, TextFieldProps as TextFieldProps$1, TypographyProps as TypographyProps$1, PaletteMode, Direction } from '@mui/material';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
7
|
+
import { Theme as Theme$1 } from '@mui/material/styles';
|
|
7
8
|
import * as _emotion_styled from '@emotion/styled';
|
|
8
9
|
import * as _mui_system from '@mui/system';
|
|
9
10
|
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
@@ -27,6 +28,7 @@ interface ColorRange {
|
|
|
27
28
|
}
|
|
28
29
|
interface ColorRangeAlpha {
|
|
29
30
|
0: string;
|
|
31
|
+
0.01: string;
|
|
30
32
|
1: string;
|
|
31
33
|
2: string;
|
|
32
34
|
3: string;
|
|
@@ -170,20 +172,6 @@ interface CustomTheme {
|
|
|
170
172
|
};
|
|
171
173
|
}
|
|
172
174
|
|
|
173
|
-
type SupportedCurrency = 'gbp' | 'eur' | 'usd';
|
|
174
|
-
type SupportedFrequency = 'monthly' | 'annual';
|
|
175
|
-
interface AnnualControllerProps {
|
|
176
|
-
body: string;
|
|
177
|
-
currency: string;
|
|
178
|
-
changeCurrencyEvent?: (value: string) => void;
|
|
179
|
-
frequency: string;
|
|
180
|
-
heading: string;
|
|
181
|
-
setCurrency?: Dispatch<SetStateAction<SupportedCurrency>>;
|
|
182
|
-
setFrequency?: Dispatch<SetStateAction<SupportedFrequency>>;
|
|
183
|
-
togglePayAnnuallyEvent?: () => void;
|
|
184
|
-
}
|
|
185
|
-
declare const AnnualController: FunctionComponent<AnnualControllerProps>;
|
|
186
|
-
|
|
187
175
|
interface AuthFormHeaderProps {
|
|
188
176
|
logo?: ReactElement | false | undefined;
|
|
189
177
|
headerText?: string;
|
|
@@ -191,13 +179,18 @@ interface AuthFormHeaderProps {
|
|
|
191
179
|
}
|
|
192
180
|
declare const AuthFormHeader: FunctionComponent<AuthFormHeaderProps>;
|
|
193
181
|
|
|
194
|
-
interface AvatarProps
|
|
182
|
+
interface AvatarProps {
|
|
195
183
|
variation?: 'sm' | 'lg';
|
|
184
|
+
src: string;
|
|
185
|
+
alt: string;
|
|
186
|
+
className: string;
|
|
196
187
|
}
|
|
197
188
|
declare const Avatar: FunctionComponent<AvatarProps>;
|
|
198
189
|
|
|
199
190
|
interface AvatarGroupProps extends AvatarGroupProps$1 {
|
|
200
191
|
variation?: 'primary';
|
|
192
|
+
max?: number;
|
|
193
|
+
sx: SxProps;
|
|
201
194
|
}
|
|
202
195
|
declare const AvatarGroup: FunctionComponent<AvatarGroupProps>;
|
|
203
196
|
|
|
@@ -205,32 +198,40 @@ type GenericSizeMap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
205
198
|
|
|
206
199
|
type ButtonSizing = Exclude<GenericSizeMap, 'none'>;
|
|
207
200
|
|
|
208
|
-
interface
|
|
209
|
-
loading?: boolean;
|
|
210
|
-
sizing: any;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
interface ButtonProps extends Pick<ButtonBaseProps, 'fullWidth' | 'className' | 'disabled' | 'tabIndex' | 'href' | 'endIcon' | 'startIcon' | 'children' | 'onClick' | 'type'> {
|
|
201
|
+
interface ButtonProps {
|
|
214
202
|
loading?: boolean;
|
|
215
203
|
variation?: 'primary' | 'secondary' | 'outlined' | 'subtle';
|
|
216
204
|
sizing?: ButtonSizing;
|
|
205
|
+
fullWidth?: boolean;
|
|
206
|
+
className?: string;
|
|
207
|
+
disabled?: boolean;
|
|
208
|
+
tabIndex?: number;
|
|
209
|
+
href?: string;
|
|
210
|
+
endIcon?: ReactElement;
|
|
211
|
+
startIcon?: ReactElement;
|
|
212
|
+
children: ReactElement | string;
|
|
213
|
+
onClick?: () => void;
|
|
214
|
+
type?: 'button' | 'submit' | 'reset';
|
|
217
215
|
}
|
|
218
216
|
declare const Button: FunctionComponent<ButtonProps>;
|
|
219
217
|
|
|
220
|
-
interface FormControlLabelProps extends Omit<FormControlLabelProps$1, 'label'> {
|
|
221
|
-
label?: string;
|
|
222
|
-
}
|
|
223
|
-
declare const FormControlLabel: FunctionComponent<FormControlLabelProps>;
|
|
224
|
-
|
|
225
218
|
interface StyledCheckboxProps extends CheckboxProps$1 {
|
|
226
219
|
sizing?: 'default' | 'lg';
|
|
227
220
|
}
|
|
228
221
|
|
|
229
|
-
interface CheckboxProps
|
|
222
|
+
interface CheckboxProps {
|
|
230
223
|
sizing?: StyledCheckboxProps['sizing'];
|
|
224
|
+
checked?: boolean;
|
|
231
225
|
indeterminate?: StyledCheckboxProps['indeterminate'];
|
|
232
226
|
checkboxLabel?: string;
|
|
233
227
|
internalChange?: () => void;
|
|
228
|
+
onChange?: (event: React.SyntheticEvent<Element, Event>, checked: boolean) => void;
|
|
229
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
230
|
+
defaultChecked?: boolean;
|
|
231
|
+
disabled?: boolean;
|
|
232
|
+
id?: string;
|
|
233
|
+
required?: boolean;
|
|
234
|
+
value?: any;
|
|
234
235
|
}
|
|
235
236
|
declare const Checkbox: FunctionComponent<CheckboxProps>;
|
|
236
237
|
|
|
@@ -258,13 +259,12 @@ interface CheckboxGroupProps {
|
|
|
258
259
|
}
|
|
259
260
|
declare const CheckboxGroup: FunctionComponent<CheckboxGroupProps>;
|
|
260
261
|
|
|
261
|
-
interface
|
|
262
|
+
interface ColorBackgroundContainerProps {
|
|
263
|
+
sx?: SxProps;
|
|
264
|
+
children: ReactElement;
|
|
262
265
|
texture?: 'none' | 'noise1';
|
|
263
266
|
gradient?: 'tone1' | 'tone2' | 'tone3' | 'tone4';
|
|
264
267
|
}
|
|
265
|
-
|
|
266
|
-
interface ColorBackgroundContainerProps extends ContainerProps, BackgroundOptions {
|
|
267
|
-
}
|
|
268
268
|
declare const ColorBackgroundContainer: FunctionComponent<ColorBackgroundContainerProps>;
|
|
269
269
|
|
|
270
270
|
interface DifferentialProps {
|
|
@@ -312,6 +312,22 @@ interface DragAndDropRankingProps extends Omit<SortableListProps<any>, 'renderIt
|
|
|
312
312
|
}
|
|
313
313
|
declare const DragAndDropRanking: FunctionComponent<DragAndDropRankingProps>;
|
|
314
314
|
|
|
315
|
+
interface FormControlLabelProps {
|
|
316
|
+
control: FormControlLabelProps$1['control'];
|
|
317
|
+
checked?: boolean;
|
|
318
|
+
disabled?: boolean;
|
|
319
|
+
label?: string;
|
|
320
|
+
sx?: SxProps<Theme>;
|
|
321
|
+
onChange?: FormControlLabelProps$1['onChange'];
|
|
322
|
+
value?: unknown;
|
|
323
|
+
required?: boolean;
|
|
324
|
+
error?: boolean;
|
|
325
|
+
name?: string;
|
|
326
|
+
id?: string;
|
|
327
|
+
inputRef?: FormControlLabelProps$1['inputRef'];
|
|
328
|
+
}
|
|
329
|
+
declare const FormControlLabel: FunctionComponent<FormControlLabelProps>;
|
|
330
|
+
|
|
315
331
|
interface GridOverlayProps {
|
|
316
332
|
breakpoint?: Breakpoint;
|
|
317
333
|
}
|
|
@@ -327,14 +343,22 @@ declare const Icon: FunctionComponent<IconProps>;
|
|
|
327
343
|
type IconButtonSizing = 'lg' | 'md';
|
|
328
344
|
type IconButtonShapeMap = 'default' | 'round';
|
|
329
345
|
type IconButtonVariation = 'default' | 'toggle' | 'outlined' | 'raised';
|
|
330
|
-
|
|
346
|
+
|
|
347
|
+
interface IconButtonProps {
|
|
331
348
|
variation?: IconButtonVariation;
|
|
332
349
|
shape?: IconButtonShapeMap;
|
|
333
350
|
sizing?: IconButtonSizing;
|
|
334
351
|
icon: ReactElement;
|
|
335
352
|
loading?: boolean;
|
|
353
|
+
edge?: 'start' | 'end';
|
|
354
|
+
children?: ReactNode | string;
|
|
355
|
+
onClick?: () => void;
|
|
356
|
+
disabled?: boolean;
|
|
357
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
358
|
+
id?: string;
|
|
359
|
+
type?: 'button' | 'submit' | 'reset';
|
|
360
|
+
className?: string;
|
|
336
361
|
}
|
|
337
|
-
|
|
338
362
|
declare const IconButton: ({ icon, loading, sizing, ...rest }: IconButtonProps) => react_jsx_runtime.JSX.Element;
|
|
339
363
|
|
|
340
364
|
interface IconButtonGroupProps extends PropsWithChildren {
|
|
@@ -350,19 +374,25 @@ declare const IconButtonGroup: FunctionComponent<IconButtonGroupProps>;
|
|
|
350
374
|
|
|
351
375
|
type InputVariation = 'default' | 'help';
|
|
352
376
|
|
|
353
|
-
|
|
377
|
+
interface InputLabelProps {
|
|
354
378
|
variation?: InputVariation;
|
|
355
|
-
align?: 'left' | 'center' | 'right';
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
379
|
+
align?: 'left' | 'center' | 'right' | undefined;
|
|
380
|
+
sx?: SxProps<Theme$1>;
|
|
381
|
+
children?: ReactElement | string;
|
|
382
|
+
disabled?: boolean;
|
|
383
|
+
error?: boolean;
|
|
384
|
+
required?: boolean;
|
|
359
385
|
}
|
|
360
386
|
declare const InputLabel: FunctionComponent<InputLabelProps>;
|
|
361
387
|
|
|
362
|
-
interface InputLabelHelpProps
|
|
388
|
+
interface InputLabelHelpProps {
|
|
363
389
|
state?: 'default' | 'positive' | 'negative' | 'disabled';
|
|
364
390
|
showicon?: boolean;
|
|
365
391
|
icon?: ReactNode;
|
|
392
|
+
align?: 'left' | 'center' | 'right';
|
|
393
|
+
children?: ReactNode;
|
|
394
|
+
disabled?: boolean;
|
|
395
|
+
required?: boolean;
|
|
366
396
|
}
|
|
367
397
|
declare const InputLabelHelp: FunctionComponent<InputLabelHelpProps>;
|
|
368
398
|
|
|
@@ -397,178 +427,6 @@ interface PillProps {
|
|
|
397
427
|
}
|
|
398
428
|
declare const Pill: FunctionComponent<PillProps>;
|
|
399
429
|
|
|
400
|
-
declare const _default: {
|
|
401
|
-
headings: {
|
|
402
|
-
"01-starter": {
|
|
403
|
-
heading: string;
|
|
404
|
-
pricing: string;
|
|
405
|
-
};
|
|
406
|
-
"02-team": {
|
|
407
|
-
heading: string;
|
|
408
|
-
pricing: string;
|
|
409
|
-
};
|
|
410
|
-
"03-plus": {
|
|
411
|
-
heading: string;
|
|
412
|
-
pricing: string;
|
|
413
|
-
};
|
|
414
|
-
"04-scale": {
|
|
415
|
-
heading: string;
|
|
416
|
-
pricing: string;
|
|
417
|
-
};
|
|
418
|
-
};
|
|
419
|
-
rows: {
|
|
420
|
-
"01-seats": {
|
|
421
|
-
heading: string;
|
|
422
|
-
description: string;
|
|
423
|
-
starter: string;
|
|
424
|
-
team: string;
|
|
425
|
-
plus: string;
|
|
426
|
-
scale: string;
|
|
427
|
-
};
|
|
428
|
-
"02-servicing": {
|
|
429
|
-
heading: string;
|
|
430
|
-
description: string;
|
|
431
|
-
starter: string;
|
|
432
|
-
team: string;
|
|
433
|
-
plus: string;
|
|
434
|
-
scale: string;
|
|
435
|
-
};
|
|
436
|
-
"03-respondents": {
|
|
437
|
-
heading: string;
|
|
438
|
-
description: string;
|
|
439
|
-
starter: string;
|
|
440
|
-
team: string;
|
|
441
|
-
plus: string;
|
|
442
|
-
scale: string;
|
|
443
|
-
};
|
|
444
|
-
"04-questions": {
|
|
445
|
-
heading: string;
|
|
446
|
-
description: string;
|
|
447
|
-
starter: string;
|
|
448
|
-
team: string;
|
|
449
|
-
plus: string;
|
|
450
|
-
scale: string;
|
|
451
|
-
};
|
|
452
|
-
"05-ai": {
|
|
453
|
-
heading: string;
|
|
454
|
-
description: string;
|
|
455
|
-
starter: string;
|
|
456
|
-
team: string;
|
|
457
|
-
plus: string;
|
|
458
|
-
scale: string;
|
|
459
|
-
};
|
|
460
|
-
"06-demographics": {
|
|
461
|
-
heading: string;
|
|
462
|
-
description: string;
|
|
463
|
-
starter: string;
|
|
464
|
-
team: string;
|
|
465
|
-
plus: string;
|
|
466
|
-
scale: string;
|
|
467
|
-
};
|
|
468
|
-
"07-training": {
|
|
469
|
-
heading: string;
|
|
470
|
-
description: string;
|
|
471
|
-
starter: string;
|
|
472
|
-
team: string;
|
|
473
|
-
plus: string;
|
|
474
|
-
scale: string;
|
|
475
|
-
};
|
|
476
|
-
"08-invite": {
|
|
477
|
-
heading: string;
|
|
478
|
-
description: string;
|
|
479
|
-
starter: string;
|
|
480
|
-
team: string;
|
|
481
|
-
plus: string;
|
|
482
|
-
scale: string;
|
|
483
|
-
};
|
|
484
|
-
"09-email": {
|
|
485
|
-
heading: string;
|
|
486
|
-
description: string;
|
|
487
|
-
starter: string;
|
|
488
|
-
team: string;
|
|
489
|
-
plus: string;
|
|
490
|
-
scale: string;
|
|
491
|
-
};
|
|
492
|
-
"10-beta": {
|
|
493
|
-
heading: string;
|
|
494
|
-
description: string;
|
|
495
|
-
starter: string;
|
|
496
|
-
team: string;
|
|
497
|
-
plus: string;
|
|
498
|
-
scale: string;
|
|
499
|
-
};
|
|
500
|
-
"11-sso": {
|
|
501
|
-
heading: string;
|
|
502
|
-
description: string;
|
|
503
|
-
starter: string;
|
|
504
|
-
team: string;
|
|
505
|
-
plus: string;
|
|
506
|
-
scale: string;
|
|
507
|
-
};
|
|
508
|
-
"12-minimum": {
|
|
509
|
-
heading: string;
|
|
510
|
-
description: string;
|
|
511
|
-
starter: string;
|
|
512
|
-
team: string;
|
|
513
|
-
plus: string;
|
|
514
|
-
scale: string;
|
|
515
|
-
};
|
|
516
|
-
};
|
|
517
|
-
};
|
|
518
|
-
|
|
519
|
-
interface PlanFeatureTableProps {
|
|
520
|
-
currencySymbol: string;
|
|
521
|
-
data: typeof _default;
|
|
522
|
-
starterPrice: string;
|
|
523
|
-
starterRespondentPrice: string;
|
|
524
|
-
teamPrice: string;
|
|
525
|
-
teamRespondentPrice: string;
|
|
526
|
-
plusPrice: string;
|
|
527
|
-
plusRespondentPrice: string;
|
|
528
|
-
scalePrice: string;
|
|
529
|
-
scaleRespondentPrice: string;
|
|
530
|
-
variation?: 'default' | 'platform';
|
|
531
|
-
}
|
|
532
|
-
declare const PlanFeatureTable: FunctionComponent<PlanFeatureTableProps>;
|
|
533
|
-
|
|
534
|
-
interface PlanTierCardProps {
|
|
535
|
-
amount: string;
|
|
536
|
-
billingType?: string;
|
|
537
|
-
body: string;
|
|
538
|
-
ctaEvent?: (heading: string) => void;
|
|
539
|
-
ctaLink?: string;
|
|
540
|
-
ctaTarget?: string;
|
|
541
|
-
ctaText: string;
|
|
542
|
-
ctaVariation?: 'primary' | 'secondary' | 'outlined';
|
|
543
|
-
currencySymbol: string;
|
|
544
|
-
currentPlan?: boolean;
|
|
545
|
-
features?: string[];
|
|
546
|
-
freeTrialLength?: string;
|
|
547
|
-
freeTrialText?: string;
|
|
548
|
-
frequency: string;
|
|
549
|
-
heading: string;
|
|
550
|
-
label?: string;
|
|
551
|
-
largestHeaderHeight?: number;
|
|
552
|
-
perMonth: string;
|
|
553
|
-
setLargestHeaderHeight?: (height: number) => void;
|
|
554
|
-
variation?: 'default' | 'platform';
|
|
555
|
-
}
|
|
556
|
-
declare const PlanTierCard: FunctionComponent<PlanTierCardProps>;
|
|
557
|
-
|
|
558
|
-
interface PlanTierCardScaleProps {
|
|
559
|
-
amount: string;
|
|
560
|
-
body: string;
|
|
561
|
-
ctaEvent?: (heading: string) => void;
|
|
562
|
-
ctaLink?: string;
|
|
563
|
-
ctaTarget?: string;
|
|
564
|
-
ctaText: string;
|
|
565
|
-
currencySymbol: string;
|
|
566
|
-
heading: string;
|
|
567
|
-
preText: string;
|
|
568
|
-
postText: string;
|
|
569
|
-
}
|
|
570
|
-
declare const PlanTierCardScale: FunctionComponent<PlanTierCardScaleProps>;
|
|
571
|
-
|
|
572
430
|
interface PortalProps extends PropsWithChildren {
|
|
573
431
|
}
|
|
574
432
|
declare const Portal: FunctionComponent<PortalProps>;
|
|
@@ -581,8 +439,17 @@ interface ProgressProps {
|
|
|
581
439
|
}
|
|
582
440
|
declare const Progress: FunctionComponent<ProgressProps>;
|
|
583
441
|
|
|
584
|
-
interface RadioProps
|
|
442
|
+
interface RadioProps {
|
|
585
443
|
sizing?: 'default' | 'lg';
|
|
444
|
+
disabled?: boolean;
|
|
445
|
+
name?: string;
|
|
446
|
+
value?: unknown;
|
|
447
|
+
autoFocus?: boolean;
|
|
448
|
+
onChange?: ((event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void) | undefined;
|
|
449
|
+
checked?: boolean;
|
|
450
|
+
readOnly?: boolean;
|
|
451
|
+
required?: boolean;
|
|
452
|
+
'aria-label'?: string;
|
|
586
453
|
}
|
|
587
454
|
declare const Radio: FunctionComponent<RadioProps>;
|
|
588
455
|
|
|
@@ -596,42 +463,70 @@ interface RadioGroupOther {
|
|
|
596
463
|
placeholder?: string;
|
|
597
464
|
name?: string;
|
|
598
465
|
}
|
|
599
|
-
interface RadioGroupProps
|
|
466
|
+
interface RadioGroupProps {
|
|
600
467
|
options: RadioGroupOption[];
|
|
468
|
+
children?: ReactNode;
|
|
601
469
|
other?: RadioGroupOther;
|
|
602
470
|
onChange: (value: string) => void;
|
|
603
471
|
internalChange?: () => void;
|
|
472
|
+
name?: string | undefined;
|
|
473
|
+
value: string;
|
|
604
474
|
}
|
|
605
475
|
declare const RadioGroup: FunctionComponent<RadioGroupProps>;
|
|
606
476
|
|
|
607
|
-
type
|
|
608
|
-
sizing?: 'lg' | 'md' | 'xs';
|
|
609
|
-
};
|
|
610
|
-
|
|
611
|
-
type SelectProps = Pick<StyledSelectProps, 'onChange' | 'id' | 'onBlur' | 'autoFocus' | 'disabled' | 'error' | 'fullWidth' | 'name' | 'placeholder' | 'readOnly' | 'required' | 'ref' | 'value' | 'inputRef' | 'MenuProps' | 'sizing'> & {
|
|
477
|
+
type SelectProps = {
|
|
612
478
|
selections: {
|
|
613
479
|
value: string;
|
|
614
480
|
label: string;
|
|
615
481
|
}[];
|
|
616
482
|
selectOptionProps?: MenuItemProps;
|
|
617
483
|
internalChange?: () => void;
|
|
618
|
-
sx?:
|
|
484
|
+
sx?: SelectProps$1['sx'];
|
|
485
|
+
onChange?: SelectProps$1['onChange'];
|
|
486
|
+
onBlur?: SelectProps$1['onBlur'];
|
|
487
|
+
ref?: SelectProps$1['ref'];
|
|
488
|
+
inputRef?: SelectProps$1['inputRef'];
|
|
489
|
+
MenuProps?: SelectProps$1['MenuProps'];
|
|
490
|
+
value?: SelectProps$1['value'];
|
|
491
|
+
id?: string;
|
|
492
|
+
autoFocus?: boolean;
|
|
493
|
+
disabled?: boolean;
|
|
494
|
+
error?: boolean;
|
|
495
|
+
fullWidth?: boolean;
|
|
496
|
+
name?: string | undefined;
|
|
497
|
+
placeholder?: string | undefined;
|
|
498
|
+
readOnly?: boolean;
|
|
499
|
+
required?: boolean;
|
|
500
|
+
sizing?: 'xs' | 'md' | 'lg';
|
|
619
501
|
};
|
|
620
502
|
declare const Select: FunctionComponent<SelectProps>;
|
|
621
503
|
|
|
622
|
-
|
|
623
|
-
interface SliderProps extends SliderComponentProps {
|
|
504
|
+
interface SliderProps {
|
|
624
505
|
labelLeft: string;
|
|
625
506
|
labelRight: string;
|
|
626
507
|
labelMiddle?: string;
|
|
627
|
-
min:
|
|
508
|
+
min: number;
|
|
628
509
|
labelRightProps?: InputLabelHelpProps;
|
|
629
510
|
labelLeftProps?: InputLabelHelpProps;
|
|
630
511
|
internalChange?: () => void;
|
|
512
|
+
defaultValue?: number;
|
|
513
|
+
disabled?: boolean;
|
|
514
|
+
max?: number;
|
|
515
|
+
onChange?: (event: Event, value: number | number[], activeThumb: number) => void;
|
|
516
|
+
step?: number;
|
|
517
|
+
value?: number;
|
|
631
518
|
}
|
|
632
519
|
declare const Slider: FunctionComponent<SliderProps>;
|
|
633
520
|
|
|
634
|
-
interface StarRatingProps
|
|
521
|
+
interface StarRatingProps {
|
|
522
|
+
defaultValue?: number;
|
|
523
|
+
disabled?: boolean;
|
|
524
|
+
readOnly?: boolean;
|
|
525
|
+
onChange?: (event: React.ChangeEvent<{}>, value: number | null) => void;
|
|
526
|
+
precision?: number;
|
|
527
|
+
name?: string;
|
|
528
|
+
IconContainerComponent?: any;
|
|
529
|
+
value?: number | null;
|
|
635
530
|
internalChange?: () => void;
|
|
636
531
|
}
|
|
637
532
|
declare const StarRating: FunctionComponent<StarRatingProps>;
|
|
@@ -642,7 +537,7 @@ interface SurfaceProps extends PaperProps {
|
|
|
642
537
|
}
|
|
643
538
|
declare const Surface: _emotion_styled.StyledComponent<_mui_material.PaperOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
644
539
|
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
645
|
-
}, "
|
|
540
|
+
}, "sx" | "className" | "style" | "classes" | "children" | "elevation" | "square" | "variant"> & _mui_system.MUIStyledCommonProps<Theme> & SurfaceProps, {}, {}>;
|
|
646
541
|
|
|
647
542
|
interface SwitchProps extends SwitchProps$1 {
|
|
648
543
|
}
|
|
@@ -679,12 +574,6 @@ type TextFieldProps = InputFieldBaseProps & {
|
|
|
679
574
|
};
|
|
680
575
|
declare const TextField: FunctionComponent<TextFieldProps>;
|
|
681
576
|
|
|
682
|
-
interface TickGroupProps {
|
|
683
|
-
heading: string;
|
|
684
|
-
ticks: string[];
|
|
685
|
-
}
|
|
686
|
-
declare const TickGroup: FunctionComponent<TickGroupProps>;
|
|
687
|
-
|
|
688
577
|
type ToastStatus = 'neutral' | 'success' | 'warning' | 'danger' | 'discover';
|
|
689
578
|
type ToastVariation = 'sm' | 'lg';
|
|
690
579
|
interface ToastProps {
|
|
@@ -800,6 +689,198 @@ interface AuthContainerSurfaceProps extends SurfaceProps {
|
|
|
800
689
|
}
|
|
801
690
|
declare const AuthContainerSurface: FunctionComponent<AuthContainerSurfaceProps>;
|
|
802
691
|
|
|
692
|
+
type SupportedCurrency = 'gbp' | 'eur' | 'usd';
|
|
693
|
+
type SupportedFrequency = 'monthly' | 'annual';
|
|
694
|
+
interface AnnualControllerProps {
|
|
695
|
+
body: string;
|
|
696
|
+
currency: string;
|
|
697
|
+
changeCurrencyEvent?: (value: string) => void;
|
|
698
|
+
frequency: string;
|
|
699
|
+
heading: string;
|
|
700
|
+
setCurrency?: Dispatch<SetStateAction<SupportedCurrency>>;
|
|
701
|
+
setFrequency?: Dispatch<SetStateAction<SupportedFrequency>>;
|
|
702
|
+
togglePayAnnuallyEvent?: () => void;
|
|
703
|
+
}
|
|
704
|
+
declare const AnnualController: FunctionComponent<AnnualControllerProps>;
|
|
705
|
+
|
|
706
|
+
declare const _default: {
|
|
707
|
+
headings: {
|
|
708
|
+
"01-starter": {
|
|
709
|
+
heading: string;
|
|
710
|
+
pricing: string;
|
|
711
|
+
};
|
|
712
|
+
"02-team": {
|
|
713
|
+
heading: string;
|
|
714
|
+
pricing: string;
|
|
715
|
+
};
|
|
716
|
+
"03-plus": {
|
|
717
|
+
heading: string;
|
|
718
|
+
pricing: string;
|
|
719
|
+
};
|
|
720
|
+
"04-scale": {
|
|
721
|
+
heading: string;
|
|
722
|
+
pricing: string;
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
rows: {
|
|
726
|
+
"01-seats": {
|
|
727
|
+
heading: string;
|
|
728
|
+
description: string;
|
|
729
|
+
starter: string;
|
|
730
|
+
team: string;
|
|
731
|
+
plus: string;
|
|
732
|
+
scale: string;
|
|
733
|
+
};
|
|
734
|
+
"02-servicing": {
|
|
735
|
+
heading: string;
|
|
736
|
+
description: string;
|
|
737
|
+
starter: string;
|
|
738
|
+
team: string;
|
|
739
|
+
plus: string;
|
|
740
|
+
scale: string;
|
|
741
|
+
};
|
|
742
|
+
"03-respondents": {
|
|
743
|
+
heading: string;
|
|
744
|
+
description: string;
|
|
745
|
+
starter: string;
|
|
746
|
+
team: string;
|
|
747
|
+
plus: string;
|
|
748
|
+
scale: string;
|
|
749
|
+
};
|
|
750
|
+
"04-questions": {
|
|
751
|
+
heading: string;
|
|
752
|
+
description: string;
|
|
753
|
+
starter: string;
|
|
754
|
+
team: string;
|
|
755
|
+
plus: string;
|
|
756
|
+
scale: string;
|
|
757
|
+
};
|
|
758
|
+
"05-ai": {
|
|
759
|
+
heading: string;
|
|
760
|
+
description: string;
|
|
761
|
+
starter: string;
|
|
762
|
+
team: string;
|
|
763
|
+
plus: string;
|
|
764
|
+
scale: string;
|
|
765
|
+
};
|
|
766
|
+
"06-demographics": {
|
|
767
|
+
heading: string;
|
|
768
|
+
description: string;
|
|
769
|
+
starter: string;
|
|
770
|
+
team: string;
|
|
771
|
+
plus: string;
|
|
772
|
+
scale: string;
|
|
773
|
+
};
|
|
774
|
+
"07-training": {
|
|
775
|
+
heading: string;
|
|
776
|
+
description: string;
|
|
777
|
+
starter: string;
|
|
778
|
+
team: string;
|
|
779
|
+
plus: string;
|
|
780
|
+
scale: string;
|
|
781
|
+
};
|
|
782
|
+
"08-invite": {
|
|
783
|
+
heading: string;
|
|
784
|
+
description: string;
|
|
785
|
+
starter: string;
|
|
786
|
+
team: string;
|
|
787
|
+
plus: string;
|
|
788
|
+
scale: string;
|
|
789
|
+
};
|
|
790
|
+
"09-email": {
|
|
791
|
+
heading: string;
|
|
792
|
+
description: string;
|
|
793
|
+
starter: string;
|
|
794
|
+
team: string;
|
|
795
|
+
plus: string;
|
|
796
|
+
scale: string;
|
|
797
|
+
};
|
|
798
|
+
"10-beta": {
|
|
799
|
+
heading: string;
|
|
800
|
+
description: string;
|
|
801
|
+
starter: string;
|
|
802
|
+
team: string;
|
|
803
|
+
plus: string;
|
|
804
|
+
scale: string;
|
|
805
|
+
};
|
|
806
|
+
"11-sso": {
|
|
807
|
+
heading: string;
|
|
808
|
+
description: string;
|
|
809
|
+
starter: string;
|
|
810
|
+
team: string;
|
|
811
|
+
plus: string;
|
|
812
|
+
scale: string;
|
|
813
|
+
};
|
|
814
|
+
"12-minimum": {
|
|
815
|
+
heading: string;
|
|
816
|
+
description: string;
|
|
817
|
+
starter: string;
|
|
818
|
+
team: string;
|
|
819
|
+
plus: string;
|
|
820
|
+
scale: string;
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
|
|
825
|
+
interface PlanFeatureTableProps {
|
|
826
|
+
currencySymbol: string;
|
|
827
|
+
data: typeof _default;
|
|
828
|
+
starterPrice: string;
|
|
829
|
+
starterRespondentPrice: string;
|
|
830
|
+
teamPrice: string;
|
|
831
|
+
teamRespondentPrice: string;
|
|
832
|
+
plusPrice: string;
|
|
833
|
+
plusRespondentPrice: string;
|
|
834
|
+
scalePrice: string;
|
|
835
|
+
scaleRespondentPrice: string;
|
|
836
|
+
variation?: 'default' | 'platform';
|
|
837
|
+
}
|
|
838
|
+
declare const PlanFeatureTable: FunctionComponent<PlanFeatureTableProps>;
|
|
839
|
+
|
|
840
|
+
interface PlanTierCardProps {
|
|
841
|
+
amount: string;
|
|
842
|
+
billingType?: string;
|
|
843
|
+
body: string;
|
|
844
|
+
ctaEvent?: (heading: string) => void;
|
|
845
|
+
ctaLink?: string;
|
|
846
|
+
ctaTarget?: string;
|
|
847
|
+
ctaText: string;
|
|
848
|
+
ctaVariation?: 'primary' | 'secondary' | 'outlined';
|
|
849
|
+
currencySymbol: string;
|
|
850
|
+
currentPlan?: boolean;
|
|
851
|
+
features?: string[];
|
|
852
|
+
freeTrialLength?: string;
|
|
853
|
+
freeTrialText?: string;
|
|
854
|
+
frequency: string;
|
|
855
|
+
heading: string;
|
|
856
|
+
label?: string;
|
|
857
|
+
largestHeaderHeight?: number;
|
|
858
|
+
perMonth: string;
|
|
859
|
+
setLargestHeaderHeight?: (height: number) => void;
|
|
860
|
+
variation?: 'default' | 'platform';
|
|
861
|
+
}
|
|
862
|
+
declare const PlanTierCard: FunctionComponent<PlanTierCardProps>;
|
|
863
|
+
|
|
864
|
+
interface PlanTierCardScaleProps {
|
|
865
|
+
amount: string;
|
|
866
|
+
body: string;
|
|
867
|
+
ctaEvent?: (heading: string) => void;
|
|
868
|
+
ctaLink?: string;
|
|
869
|
+
ctaTarget?: string;
|
|
870
|
+
ctaText: string;
|
|
871
|
+
currencySymbol: string;
|
|
872
|
+
heading: string;
|
|
873
|
+
preText: string;
|
|
874
|
+
postText: string;
|
|
875
|
+
}
|
|
876
|
+
declare const PlanTierCardScale: FunctionComponent<PlanTierCardScaleProps>;
|
|
877
|
+
|
|
878
|
+
interface TickGroupProps {
|
|
879
|
+
heading: string;
|
|
880
|
+
ticks: string[];
|
|
881
|
+
}
|
|
882
|
+
declare const TickGroup: FunctionComponent<TickGroupProps>;
|
|
883
|
+
|
|
803
884
|
type ScreenSize = 'sm' | 'lg';
|
|
804
885
|
|
|
805
886
|
interface Props {
|