@useloops/design-system 1.4.163 → 1.4.164

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,19 +1,23 @@
1
- import react, { ReactElement, FunctionComponent, ChangeEvent, PropsWithChildren, ReactNode, FC, Dispatch, SetStateAction } from 'react';
1
+ import { Icons } from 'BrandCore/Icon';
2
+ export { default as Icon, Icons, iconSizeMap, icons } from 'BrandCore/Icon';
2
3
  import * as _mui_material from '@mui/material';
3
- import { AvatarGroupProps as AvatarGroupProps$1, SxProps, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, MenuProps, MenuItemProps as MenuItemProps$1, FormControlLabelProps as FormControlLabelProps$1, Theme, Breakpoint, TooltipProps as TooltipProps$1, IconButtonProps as IconButtonProps$1, ButtonGroupProps, TextFieldProps as TextFieldProps$1, LinkProps as LinkProps$1, PopperProps as PopperProps$1, ClickAwayListenerProps, FadeProps, SelectProps as SelectProps$1, SelectChangeEvent, PaperProps, SwitchProps as SwitchProps$1, TypographyProps as TypographyProps$1, PaletteMode, Direction } from '@mui/material';
4
+ import { SxProps, Theme, AvatarGroupProps as AvatarGroupProps$1, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, MenuProps, MenuItemProps as MenuItemProps$1, FormControlLabelProps as FormControlLabelProps$1, Breakpoint, TooltipProps as TooltipProps$1, IconButtonProps as IconButtonProps$1, ButtonGroupProps, TextFieldProps as TextFieldProps$1, LinkProps as LinkProps$1, PopperProps as PopperProps$1, ClickAwayListenerProps, FadeProps, SelectProps as SelectProps$1, SelectChangeEvent, PaperProps, SwitchProps as SwitchProps$1, TypographyProps as TypographyProps$1, PaletteMode, Direction } from '@mui/material';
5
+ import react, { FunctionComponent, ReactNode, PropsWithChildren, ReactElement, ChangeEvent, FC } from 'react';
6
+ import { SurfaceProps as SurfaceProps$1 } from 'WebCore/Surface';
7
+ import { GenericSizeMap as GenericSizeMap$1 } from 'BrandCore/primitiveVariables';
4
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
9
  import * as _emotion_styled from '@emotion/styled';
6
10
  import * as _mui_system from '@mui/system';
7
11
  import { Theme as Theme$1 } from '@mui/material/styles';
8
- import { NavigationSizing as NavigationSizing$1 } from 'Platform/Navigation/Navigation';
12
+ import { NavigationSizing as NavigationSizing$1 } from 'Platform/Navigation';
9
13
  import { NumericFormatProps } from 'react-number-format';
14
+ import { InputFieldBaseProps as InputFieldBaseProps$1 } from 'WebCore/InputFieldBase';
10
15
  import { PopupState } from 'material-ui-popup-state/hooks';
11
- import { SurfaceProps as SurfaceProps$1 } from 'WebCore/Surface';
12
16
  import { UniqueIdentifier } from '@dnd-kit/core';
13
17
  import { SubmitHandler } from 'react-hook-form';
14
18
  import { TextFieldProps as TextFieldProps$2, NumberFieldProps as NumberFieldProps$1, TextareaProps as TextareaProps$1, SelectProps as SelectProps$2, CheckboxProps as CheckboxProps$2, CheckboxGroupProps as CheckboxGroupProps$1, SwitchProps as SwitchProps$2, SliderProps as SliderProps$1, DifferentialProps as DifferentialProps$1, LikertProps as LikertProps$1, RadioGroupProps as RadioGroupProps$1, RankProps as RankProps$1, RichTextFieldProps as RichTextFieldProps$1, StarRatingProps as StarRatingProps$1, HtmlProps as HtmlProps$1, CustomFieldProps as CustomFieldProps$1, InputLabelProps as InputLabelProps$1, InputLabelHelpProps as InputLabelHelpProps$1 } from 'WebCore';
15
19
 
16
- interface ColorRange {
20
+ interface ColorRange$1 {
17
21
  0: string;
18
22
  50?: string;
19
23
  100: string;
@@ -29,7 +33,7 @@ interface ColorRange {
29
33
  1000: string;
30
34
  1100?: string;
31
35
  }
32
- interface ColorRangeAlpha {
36
+ interface ColorRangeAlpha$1 {
33
37
  0: string;
34
38
  0.01: string;
35
39
  1: string;
@@ -38,6 +42,462 @@ interface ColorRangeAlpha {
38
42
  4: string;
39
43
  5: string;
40
44
  }
45
+ declare enum FontWeight {
46
+ DEFAULT = 400,
47
+ BOLD = 500
48
+ }
49
+ interface SemanticColor {
50
+ light: {
51
+ surface: {
52
+ sunken: string | undefined;
53
+ default: string | undefined;
54
+ raised: string | undefined;
55
+ overlay: string | undefined;
56
+ scrim: string | undefined;
57
+ transparent: string | undefined;
58
+ };
59
+ interaction: {
60
+ none: string | undefined;
61
+ hover: string | undefined;
62
+ press: string | undefined;
63
+ hoverOnDark: string | undefined;
64
+ pressOnDark: string | undefined;
65
+ disabled: string | undefined;
66
+ };
67
+ stroke: {
68
+ default: string | undefined;
69
+ focus: string | undefined;
70
+ disabled: string | undefined;
71
+ };
72
+ text: {
73
+ primary: string | undefined;
74
+ secondary: string | undefined;
75
+ placeholder: string | undefined;
76
+ disabled: string | undefined;
77
+ textLink: string | undefined;
78
+ textLinkHover: string | undefined;
79
+ primaryInverted: string | undefined;
80
+ secondaryInverted: string | undefined;
81
+ placeholderInverted: string | undefined;
82
+ disabledInverted: string | undefined;
83
+ positive: string | undefined;
84
+ negative: string | undefined;
85
+ lockedWhite: string | undefined;
86
+ };
87
+ icon: {
88
+ primary: string | undefined;
89
+ secondary: string | undefined;
90
+ disabled: string | undefined;
91
+ primaryInverted: string | undefined;
92
+ secondaryInverted: string | undefined;
93
+ disabledInverted: string | undefined;
94
+ positive: string | undefined;
95
+ negative: string | undefined;
96
+ lockedWhite: string | undefined;
97
+ };
98
+ input: {
99
+ default: string | undefined;
100
+ disabled: string | undefined;
101
+ };
102
+ };
103
+ dark: {
104
+ surface: {
105
+ sunken: string | undefined;
106
+ default: string | undefined;
107
+ raised: string | undefined;
108
+ overlay: string | undefined;
109
+ scrim: string | undefined;
110
+ transparent: string | undefined;
111
+ };
112
+ interaction: {
113
+ none: string | undefined;
114
+ hover: string | undefined;
115
+ press: string | undefined;
116
+ hoverOnDark: string | undefined;
117
+ pressOnDark: string | undefined;
118
+ disabled: string | undefined;
119
+ };
120
+ stroke: {
121
+ default: string | undefined;
122
+ focus: string | undefined;
123
+ disabled: string | undefined;
124
+ };
125
+ text: {
126
+ primary: string | undefined;
127
+ secondary: string | undefined;
128
+ placeholder: string | undefined;
129
+ disabled: string | undefined;
130
+ textLink: string | undefined;
131
+ textLinkHover: string | undefined;
132
+ primaryInverted: string | undefined;
133
+ secondaryInverted: string | undefined;
134
+ placeholderInverted: string | undefined;
135
+ disabledInverted: string | undefined;
136
+ positive: string | undefined;
137
+ negative: string | undefined;
138
+ lockedWhite: string | undefined;
139
+ };
140
+ icon: {
141
+ primary: string | undefined;
142
+ secondary: string | undefined;
143
+ disabled: string | undefined;
144
+ primaryInverted: string | undefined;
145
+ secondaryInverted: string | undefined;
146
+ disabledInverted: string | undefined;
147
+ positive: string | undefined;
148
+ negative: string | undefined;
149
+ lockedWhite: string | undefined;
150
+ };
151
+ input: {
152
+ default: string | undefined;
153
+ disabled: string | undefined;
154
+ };
155
+ };
156
+ }
157
+
158
+ declare const neutralRamp: {
159
+ light: {
160
+ 0: string;
161
+ 50: string | undefined;
162
+ 100: string;
163
+ 200: string;
164
+ 300: string;
165
+ 400: string;
166
+ 500: string;
167
+ 600: string;
168
+ 700: string;
169
+ 800: string;
170
+ 900: string;
171
+ 950: string | undefined;
172
+ 1000: string;
173
+ 1100: string | undefined;
174
+ };
175
+ dark: {
176
+ 0: string;
177
+ 50: string | undefined;
178
+ 100: string;
179
+ 200: string;
180
+ 300: string;
181
+ 400: string;
182
+ 500: string;
183
+ 600: string;
184
+ 700: string;
185
+ 800: string;
186
+ 900: string;
187
+ 950: string | undefined;
188
+ 1000: string;
189
+ 1100: string | undefined;
190
+ };
191
+ };
192
+ declare const generateRamp: (color: ColorRange$1) => {
193
+ light: {
194
+ 0: string;
195
+ 100: string;
196
+ 200: string;
197
+ 300: string;
198
+ 400: string;
199
+ 500: string;
200
+ 600: string;
201
+ 700: string;
202
+ 800: string;
203
+ 900: string;
204
+ 1000: string;
205
+ };
206
+ dark: {
207
+ 0: string;
208
+ 100: string;
209
+ 200: string;
210
+ 300: string;
211
+ 400: string;
212
+ 500: string;
213
+ 600: string;
214
+ 700: string;
215
+ 800: string;
216
+ 900: string;
217
+ 1000: string;
218
+ };
219
+ };
220
+ declare const purpleRamp: {
221
+ light: {
222
+ 0: string;
223
+ 100: string;
224
+ 200: string;
225
+ 300: string;
226
+ 400: string;
227
+ 500: string;
228
+ 600: string;
229
+ 700: string;
230
+ 800: string;
231
+ 900: string;
232
+ 1000: string;
233
+ };
234
+ dark: {
235
+ 0: string;
236
+ 100: string;
237
+ 200: string;
238
+ 300: string;
239
+ 400: string;
240
+ 500: string;
241
+ 600: string;
242
+ 700: string;
243
+ 800: string;
244
+ 900: string;
245
+ 1000: string;
246
+ };
247
+ };
248
+ declare const redRamp: {
249
+ light: {
250
+ 0: string;
251
+ 100: string;
252
+ 200: string;
253
+ 300: string;
254
+ 400: string;
255
+ 500: string;
256
+ 600: string;
257
+ 700: string;
258
+ 800: string;
259
+ 900: string;
260
+ 1000: string;
261
+ };
262
+ dark: {
263
+ 0: string;
264
+ 100: string;
265
+ 200: string;
266
+ 300: string;
267
+ 400: string;
268
+ 500: string;
269
+ 600: string;
270
+ 700: string;
271
+ 800: string;
272
+ 900: string;
273
+ 1000: string;
274
+ };
275
+ };
276
+ declare const peachRamp: {
277
+ light: {
278
+ 0: string;
279
+ 100: string;
280
+ 200: string;
281
+ 300: string;
282
+ 400: string;
283
+ 500: string;
284
+ 600: string;
285
+ 700: string;
286
+ 800: string;
287
+ 900: string;
288
+ 1000: string;
289
+ };
290
+ dark: {
291
+ 0: string;
292
+ 100: string;
293
+ 200: string;
294
+ 300: string;
295
+ 400: string;
296
+ 500: string;
297
+ 600: string;
298
+ 700: string;
299
+ 800: string;
300
+ 900: string;
301
+ 1000: string;
302
+ };
303
+ };
304
+ declare const yellowRamp: {
305
+ light: {
306
+ 0: string;
307
+ 100: string;
308
+ 200: string;
309
+ 300: string;
310
+ 400: string;
311
+ 500: string;
312
+ 600: string;
313
+ 700: string;
314
+ 800: string;
315
+ 900: string;
316
+ 1000: string;
317
+ };
318
+ dark: {
319
+ 0: string;
320
+ 100: string;
321
+ 200: string;
322
+ 300: string;
323
+ 400: string;
324
+ 500: string;
325
+ 600: string;
326
+ 700: string;
327
+ 800: string;
328
+ 900: string;
329
+ 1000: string;
330
+ };
331
+ };
332
+ declare const blueRamp: {
333
+ light: {
334
+ 0: string;
335
+ 100: string;
336
+ 200: string;
337
+ 300: string;
338
+ 400: string;
339
+ 500: string;
340
+ 600: string;
341
+ 700: string;
342
+ 800: string;
343
+ 900: string;
344
+ 1000: string;
345
+ };
346
+ dark: {
347
+ 0: string;
348
+ 100: string;
349
+ 200: string;
350
+ 300: string;
351
+ 400: string;
352
+ 500: string;
353
+ 600: string;
354
+ 700: string;
355
+ 800: string;
356
+ 900: string;
357
+ 1000: string;
358
+ };
359
+ };
360
+ declare const greenRamp: {
361
+ light: {
362
+ 0: string;
363
+ 100: string;
364
+ 200: string;
365
+ 300: string;
366
+ 400: string;
367
+ 500: string;
368
+ 600: string;
369
+ 700: string;
370
+ 800: string;
371
+ 900: string;
372
+ 1000: string;
373
+ };
374
+ dark: {
375
+ 0: string;
376
+ 100: string;
377
+ 200: string;
378
+ 300: string;
379
+ 400: string;
380
+ 500: string;
381
+ 600: string;
382
+ 700: string;
383
+ 800: string;
384
+ 900: string;
385
+ 1000: string;
386
+ };
387
+ };
388
+
389
+ declare const neutral: ColorRange$1;
390
+ declare const darkNeutral: ColorRange$1;
391
+ declare const neutralAlpha: ColorRangeAlpha$1;
392
+ declare const darkNeutralAlpha: ColorRangeAlpha$1;
393
+ declare const purple: ColorRange$1;
394
+ declare const red: ColorRange$1;
395
+ declare const peach: ColorRange$1;
396
+ declare const yellow: ColorRange$1;
397
+ declare const blue: ColorRange$1;
398
+ declare const green: ColorRange$1;
399
+
400
+ type GenericSizeMap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
401
+ declare const breakpoints: {
402
+ sm: number;
403
+ md: number;
404
+ lg: number;
405
+ lgNav: number;
406
+ xl: number;
407
+ xxl: number;
408
+ };
409
+ declare const space: {
410
+ 0: number;
411
+ 25: number;
412
+ 50: number;
413
+ 100: number;
414
+ 150: number;
415
+ 200: number;
416
+ 300: number;
417
+ 350: number;
418
+ 400: number;
419
+ 500: number;
420
+ 600: number;
421
+ 800: number;
422
+ 1000: number;
423
+ 2000: number;
424
+ };
425
+ declare const base: number;
426
+ declare const margin: {
427
+ none: number;
428
+ xs: number;
429
+ sm: number;
430
+ md: number;
431
+ lg: number;
432
+ xl: number;
433
+ xxl: number;
434
+ xxxl: number;
435
+ };
436
+ declare const padding: {
437
+ none: number;
438
+ xs: number;
439
+ sm: number;
440
+ md: number;
441
+ lg: number;
442
+ xl: number;
443
+ };
444
+ declare const radius: {
445
+ none: number;
446
+ xs: number;
447
+ sm: number;
448
+ md: number;
449
+ lg: number;
450
+ xl: number;
451
+ round: number;
452
+ };
453
+ declare const elevation: {
454
+ raised: string;
455
+ overlay: string;
456
+ };
457
+ declare const elevationFilter: {
458
+ raised: string;
459
+ overlay: string;
460
+ };
461
+ declare const boxShadow: {
462
+ input: {
463
+ focus: string;
464
+ };
465
+ };
466
+ declare const easing: {
467
+ default: string;
468
+ input: string;
469
+ };
470
+
471
+ declare const semantic: SemanticColor;
472
+
473
+ declare const fonts: {
474
+ Domaine: {
475
+ name: string;
476
+ default: {
477
+ fileName: string;
478
+ weight: FontWeight;
479
+ };
480
+ bold: {
481
+ fileName: string;
482
+ weight: FontWeight;
483
+ };
484
+ };
485
+ FoundersGrotesk: {
486
+ name: string;
487
+ default: {
488
+ fileName: string;
489
+ weight: FontWeight;
490
+ };
491
+ bold: {
492
+ fileName: string;
493
+ weight: FontWeight;
494
+ };
495
+ };
496
+ FontStack: {
497
+ Serif: string;
498
+ SansSerif: string;
499
+ };
500
+ };
41
501
 
42
502
  interface CustomTheme {
43
503
  palette: {
@@ -146,13 +606,13 @@ interface CustomTheme {
146
606
  handle: string;
147
607
  };
148
608
  };
149
- shape: {
150
- borderRadius: number;
151
- hotspot: {
152
- active: number;
153
- default: number
154
- }
155
- },
609
+ shape: {
610
+ borderRadius: number;
611
+ hotspot: {
612
+ active: number;
613
+ default: number;
614
+ };
615
+ };
156
616
  typography: {
157
617
  headline: {
158
618
  xs: string;
@@ -175,6 +635,49 @@ interface CustomTheme {
175
635
  };
176
636
  }
177
637
 
638
+ interface AuthContainerSurfaceProps extends SurfaceProps$1 {
639
+ headContent?: ReactNode;
640
+ sx?: SxProps<Theme>;
641
+ }
642
+ declare const AuthContainerSurface: FunctionComponent<AuthContainerSurfaceProps>;
643
+
644
+ type NavigationSizing = 'sm' | 'lg';
645
+ interface NavigationProps {
646
+ isMobile?: boolean;
647
+ logoLink?: string;
648
+ nudgeProps: NudgeProps$1;
649
+ primaryMenuItemProps: MenuItemProps[];
650
+ secondaryMenuItemProps: MenuItemProps[];
651
+ sizing?: NavigationSizing;
652
+ tertiaryMenuItemProps: MenuItemProps[];
653
+ toggleMenuOnClick?: () => void;
654
+ userMenuProps: UserMenuProps$1;
655
+ }
656
+ interface MenuItemProps {
657
+ active?: boolean;
658
+ children?: MenuItemProps[];
659
+ danger?: boolean;
660
+ fullWidth?: boolean;
661
+ href?: string;
662
+ icon?: Icons;
663
+ label: string;
664
+ onClick?: () => void;
665
+ selected?: boolean;
666
+ sizing?: NavigationSizing;
667
+ }
668
+ interface UserMenuProps$1 {
669
+ avatar: string;
670
+ email: string;
671
+ menuItems: MenuItemProps[];
672
+ name: string;
673
+ }
674
+ interface NudgeProps$1 extends PropsWithChildren {
675
+ description: string;
676
+ notification: boolean;
677
+ title: string;
678
+ }
679
+ declare const Navigation: FunctionComponent<NavigationProps>;
680
+
178
681
  interface AuthFormHeaderProps {
179
682
  logo?: ReactElement | false | undefined;
180
683
  headerText?: string;
@@ -198,9 +701,7 @@ interface AvatarGroupProps extends AvatarGroupProps$1 {
198
701
  }
199
702
  declare const AvatarGroup: FunctionComponent<AvatarGroupProps>;
200
703
 
201
- type GenericSizeMap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
202
-
203
- type ButtonSizing = Exclude<GenericSizeMap, 'none'>;
704
+ type ButtonSizing = Exclude<GenericSizeMap$1, 'none'>;
204
705
 
205
706
  interface ButtonBaseProps extends ButtonProps$1 {
206
707
  loading?: boolean;
@@ -351,13 +852,6 @@ interface HtmlProps {
351
852
  }
352
853
  declare const Html: FunctionComponent<HtmlProps>;
353
854
 
354
- interface IconProps {
355
- name: 'access-time' | 'arrow-forward' | 'check-circle' | 'check-thin' | 'check' | 'chevron-right' | 'close' | 'dash' | 'error-outline' | 'expand-more' | 'folder' | 'gift' | 'google' | 'help' | 'home' | 'info' | 'lightbulb' | 'linkedin-color' | 'linkedin' | 'lock' | 'loopsOfficial' | 'medium' | 'menu' | 'navigation-arrow' | 'negative' | 'neutral' | 'notification' | 'open-in-new' | 'play' | 'positive' | 'push-left' | 'push-right' | 'settings' | 'star' | 'unfold-more' | 'warning-amber' | string;
356
- size?: number;
357
- sx?: SxProps;
358
- }
359
- declare const Icon: FunctionComponent<IconProps>;
360
-
361
855
  interface TooltipProps extends PropsWithChildren {
362
856
  message: TooltipProps$1['title'];
363
857
  variation?: 'primary';
@@ -477,52 +971,15 @@ declare const Logo: FunctionComponent<React.SVGProps<SVGSVGElement>>;
477
971
 
478
972
  declare const Markdown: (props: any) => react_jsx_runtime.JSX.Element;
479
973
 
480
- type NavigationSizing = 'sm' | 'lg';
481
- interface NavigationProps {
482
- isMobile?: boolean;
483
- logoLink?: string;
484
- nudgeProps: NudgeProps$1;
485
- primaryMenuItemProps: MenuItemProps[];
486
- secondaryMenuItemProps: MenuItemProps[];
487
- sizing?: NavigationSizing;
488
- tertiaryMenuItemProps: MenuItemProps[];
489
- toggleMenuOnClick?: () => void;
490
- userMenuProps: UserMenuProps$1;
491
- }
492
- interface MenuItemProps {
493
- active?: boolean;
494
- children?: MenuItemProps[];
495
- danger?: boolean;
496
- fullWidth?: boolean;
497
- href?: string;
498
- icon?: string;
499
- label: string;
500
- onClick?: () => void;
501
- selected?: boolean;
502
- sizing?: NavigationSizing;
503
- }
504
- interface UserMenuProps$1 {
505
- avatar: string;
506
- email: string;
507
- menuItems: MenuItemProps[];
508
- name: string;
509
- }
510
- interface NudgeProps$1 extends PropsWithChildren {
511
- description: string;
512
- notification: boolean;
513
- title: string;
514
- }
515
- declare const Navigation: FunctionComponent<NavigationProps>;
516
-
517
974
  type MenuButtonSizing = 'sm' | 'md' | 'lg';
518
975
  interface MenuButtonProps {
519
976
  active?: boolean;
520
977
  danger?: boolean;
521
978
  fullWidth?: boolean;
522
979
  href?: string;
523
- icon?: string;
980
+ icon?: Icons;
524
981
  label: string;
525
- navigationSizing: NavigationSizing;
982
+ navigationSizing: NavigationSizing$1;
526
983
  onClick?: () => void;
527
984
  sizing?: MenuButtonSizing;
528
985
  }
@@ -536,7 +993,7 @@ interface NudgeProps extends PropsWithChildren {
536
993
  }
537
994
  declare const Nudge: FunctionComponent<NudgeProps>;
538
995
 
539
- type NumberFieldProps = InputFieldBaseProps & {
996
+ type NumberFieldProps = InputFieldBaseProps$1 & {
540
997
  hideActionButtons?: boolean;
541
998
  max?: number;
542
999
  min?: number;
@@ -578,7 +1035,7 @@ declare const Portal: FunctionComponent<PortalProps>;
578
1035
 
579
1036
  declare const PoweredByWatermarkLogo: () => react_jsx_runtime.JSX.Element;
580
1037
 
581
- type ProgressSizing = Exclude<GenericSizeMap, 'none'>;
1038
+ type ProgressSizing = Exclude<GenericSizeMap$1, 'none'>;
582
1039
  interface ProgressProps {
583
1040
  sizing?: ProgressSizing;
584
1041
  }
@@ -619,41 +1076,6 @@ interface RadioGroupProps {
619
1076
  }
620
1077
  declare const RadioGroup: FunctionComponent<RadioGroupProps>;
621
1078
 
622
- type SelectOption = {
623
- label: string;
624
- value: string;
625
- };
626
-
627
- type SelectOnChange = (event: SelectChangeEvent<any>, child: React.ReactNode) => void;
628
- type AutocompleteOnChange = (value: string | string[]) => void;
629
- type SelectProps = {
630
- selections: SelectOption[];
631
- autoComplete?: boolean;
632
- autoFocus?: boolean;
633
- disabled?: boolean;
634
- disablePortal?: boolean;
635
- error?: boolean;
636
- fullWidth?: boolean;
637
- id?: string;
638
- inputRef?: SelectProps$1['inputRef'];
639
- internalChange?: () => void;
640
- MenuProps?: SelectProps$1['MenuProps'];
641
- multi?: boolean;
642
- name: string;
643
- onBlur?: SelectProps$1['onBlur'];
644
- onChange?: SelectOnChange | AutocompleteOnChange;
645
- placeholder?: string | undefined;
646
- readOnly?: boolean;
647
- ref?: SelectProps$1['ref'];
648
- required?: boolean;
649
- selectOptionProps?: MenuItemProps$1;
650
- sizing?: 'xs' | 'md' | 'lg';
651
- sx?: SelectProps$1['sx'];
652
- value?: SelectProps$1['value'];
653
- renderListItem?: (value: string, label: string) => ReactElement;
654
- };
655
- declare const Select: FunctionComponent<SelectProps>;
656
-
657
1079
  interface Option {
658
1080
  label: string;
659
1081
  value: string;
@@ -707,6 +1129,41 @@ type RichTextFieldProps = Omit<InputFieldBaseProps, 'value' | 'onChange'> & {
707
1129
  };
708
1130
  declare const RichTextField: FunctionComponent<RichTextFieldProps>;
709
1131
 
1132
+ type SelectOption = {
1133
+ label: string;
1134
+ value: string;
1135
+ };
1136
+
1137
+ type SelectOnChange = (event: SelectChangeEvent<any>, child: React.ReactNode) => void;
1138
+ type AutocompleteOnChange = (value: string | string[]) => void;
1139
+ type SelectProps = {
1140
+ selections: SelectOption[];
1141
+ autoComplete?: boolean;
1142
+ autoFocus?: boolean;
1143
+ disabled?: boolean;
1144
+ disablePortal?: boolean;
1145
+ error?: boolean;
1146
+ fullWidth?: boolean;
1147
+ id?: string;
1148
+ inputRef?: SelectProps$1['inputRef'];
1149
+ internalChange?: () => void;
1150
+ MenuProps?: SelectProps$1['MenuProps'];
1151
+ multi?: boolean;
1152
+ name: string;
1153
+ onBlur?: SelectProps$1['onBlur'];
1154
+ onChange?: SelectOnChange | AutocompleteOnChange;
1155
+ placeholder?: string | undefined;
1156
+ readOnly?: boolean;
1157
+ ref?: SelectProps$1['ref'];
1158
+ required?: boolean;
1159
+ selectOptionProps?: MenuItemProps$1;
1160
+ sizing?: 'xs' | 'md' | 'lg';
1161
+ sx?: SelectProps$1['sx'];
1162
+ value?: SelectProps$1['value'];
1163
+ renderListItem?: (value: string, label: string) => ReactElement;
1164
+ };
1165
+ declare const Select: FunctionComponent<SelectProps>;
1166
+
710
1167
  interface SliderProps {
711
1168
  labelLeft: string;
712
1169
  labelRight: string;
@@ -748,9 +1205,11 @@ interface SurfaceProps extends PropsWithChildren {
748
1205
  declare const Surface: FC<SurfaceProps>;
749
1206
 
750
1207
  interface StyledSwitchProps extends SwitchProps$1 {
1208
+ sizing?: 'sm' | 'lg';
751
1209
  }
752
1210
 
753
1211
  interface SwitchProps extends StyledSwitchProps {
1212
+ sizing?: 'sm' | 'lg';
754
1213
  value?: boolean;
755
1214
  label?: string | ReactElement;
756
1215
  labelPlacement?: Exclude<FormControlLabelProps['labelPlacement'], 'top' | 'bottom'>;
@@ -760,7 +1219,7 @@ interface SwitchProps extends StyledSwitchProps {
760
1219
  }
761
1220
  declare const Switch: FunctionComponent<SwitchProps>;
762
1221
 
763
- type TextareaProps = InputFieldBaseProps & {
1222
+ type TextareaProps = InputFieldBaseProps$1 & {
764
1223
  startAdornment?: ReactElement;
765
1224
  endAdornment?: ReactElement;
766
1225
  internalChange?: () => void;
@@ -783,7 +1242,7 @@ interface TextBarDividerProps {
783
1242
  }
784
1243
  declare const TextBarDivider: FunctionComponent<TextBarDividerProps>;
785
1244
 
786
- type TextFieldProps = InputFieldBaseProps & {
1245
+ type TextFieldProps = InputFieldBaseProps$1 & {
787
1246
  startAdornment?: ReactElement;
788
1247
  endAdornment?: ReactElement;
789
1248
  internalChange?: () => void;
@@ -942,204 +1401,6 @@ declare const passwordValidation: (min?: number) => {
942
1401
  };
943
1402
  };
944
1403
 
945
- interface AuthContainerSurfaceProps extends SurfaceProps {
946
- headContent?: ReactNode;
947
- sx?: SxProps<Theme>;
948
- }
949
- declare const AuthContainerSurface: FunctionComponent<AuthContainerSurfaceProps>;
950
-
951
- type SupportedCurrency = 'gbp' | 'eur' | 'usd';
952
- type SupportedFrequency = 'monthly' | 'annual';
953
- interface AnnualControllerProps {
954
- body: string;
955
- currency: string;
956
- changeCurrencyEvent?: (value: string) => void;
957
- frequency: string;
958
- heading: string;
959
- setCurrency?: Dispatch<SetStateAction<SupportedCurrency>>;
960
- setFrequency?: Dispatch<SetStateAction<SupportedFrequency>>;
961
- togglePayAnnuallyEvent?: () => void;
962
- }
963
- declare const AnnualController: FunctionComponent<AnnualControllerProps>;
964
-
965
- declare const _default: {
966
- headings: {
967
- "01-starter": {
968
- heading: string;
969
- pricing: string;
970
- };
971
- "02-team": {
972
- heading: string;
973
- pricing: string;
974
- };
975
- "03-plus": {
976
- heading: string;
977
- pricing: string;
978
- };
979
- "04-scale": {
980
- heading: string;
981
- pricing: string;
982
- };
983
- };
984
- rows: {
985
- "01-seats": {
986
- heading: string;
987
- description: string;
988
- starter: string;
989
- team: string;
990
- plus: string;
991
- scale: string;
992
- };
993
- "02-servicing": {
994
- heading: string;
995
- description: string;
996
- starter: string;
997
- team: string;
998
- plus: string;
999
- scale: string;
1000
- };
1001
- "03-respondents": {
1002
- heading: string;
1003
- description: string;
1004
- starter: string;
1005
- team: string;
1006
- plus: string;
1007
- scale: string;
1008
- };
1009
- "04-questions": {
1010
- heading: string;
1011
- description: string;
1012
- starter: string;
1013
- team: string;
1014
- plus: string;
1015
- scale: string;
1016
- };
1017
- "05-ai": {
1018
- heading: string;
1019
- description: string;
1020
- starter: string;
1021
- team: string;
1022
- plus: string;
1023
- scale: string;
1024
- };
1025
- "06-demographics": {
1026
- heading: string;
1027
- description: string;
1028
- starter: string;
1029
- team: string;
1030
- plus: string;
1031
- scale: string;
1032
- };
1033
- "07-training": {
1034
- heading: string;
1035
- description: string;
1036
- starter: string;
1037
- team: string;
1038
- plus: string;
1039
- scale: string;
1040
- };
1041
- "08-invite": {
1042
- heading: string;
1043
- description: string;
1044
- starter: string;
1045
- team: string;
1046
- plus: string;
1047
- scale: string;
1048
- };
1049
- "09-email": {
1050
- heading: string;
1051
- description: string;
1052
- starter: string;
1053
- team: string;
1054
- plus: string;
1055
- scale: string;
1056
- };
1057
- "10-beta": {
1058
- heading: string;
1059
- description: string;
1060
- starter: string;
1061
- team: string;
1062
- plus: string;
1063
- scale: string;
1064
- };
1065
- "11-sso": {
1066
- heading: string;
1067
- description: string;
1068
- starter: string;
1069
- team: string;
1070
- plus: string;
1071
- scale: string;
1072
- };
1073
- "12-minimum": {
1074
- heading: string;
1075
- description: string;
1076
- starter: string;
1077
- team: string;
1078
- plus: string;
1079
- scale: string;
1080
- };
1081
- };
1082
- };
1083
-
1084
- interface PlanFeatureTableProps {
1085
- currencySymbol: string;
1086
- data: typeof _default;
1087
- starterPrice: string;
1088
- starterRespondentPrice: string;
1089
- teamPrice: string;
1090
- teamRespondentPrice: string;
1091
- plusPrice: string;
1092
- plusRespondentPrice: string;
1093
- scalePrice: string;
1094
- scaleRespondentPrice: string;
1095
- variation?: 'default' | 'platform';
1096
- }
1097
- declare const PlanFeatureTable: FunctionComponent<PlanFeatureTableProps>;
1098
-
1099
- interface PlanTierCardProps {
1100
- amount: string;
1101
- billingType?: string;
1102
- body: string;
1103
- ctaEvent?: (heading: string) => void;
1104
- ctaLink?: string;
1105
- ctaTarget?: string;
1106
- ctaText: string;
1107
- ctaVariation?: 'primary' | 'secondary' | 'outlined';
1108
- currencySymbol: string;
1109
- currentPlan?: boolean;
1110
- features?: string[];
1111
- freeTrialLength?: string;
1112
- freeTrialText?: string;
1113
- frequency: string;
1114
- heading: string;
1115
- label?: string;
1116
- largestHeaderHeight?: number;
1117
- perMonth: string;
1118
- setLargestHeaderHeight?: (height: number) => void;
1119
- variation?: 'default' | 'platform';
1120
- }
1121
- declare const PlanTierCard: FunctionComponent<PlanTierCardProps>;
1122
-
1123
- interface PlanTierCardScaleProps {
1124
- amount: string;
1125
- body: string;
1126
- ctaEvent?: (heading: string) => void;
1127
- ctaLink?: string;
1128
- ctaTarget?: string;
1129
- ctaText: string;
1130
- currencySymbol: string;
1131
- heading: string;
1132
- preText: string;
1133
- postText: string;
1134
- }
1135
- declare const PlanTierCardScale: FunctionComponent<PlanTierCardScaleProps>;
1136
-
1137
- interface TickGroupProps {
1138
- heading: string;
1139
- ticks: string[];
1140
- }
1141
- declare const TickGroup: FunctionComponent<TickGroupProps>;
1142
-
1143
1404
  type ScreenSize = 'sm' | 'lg';
1144
1405
 
1145
1406
  interface Props extends PropsWithChildren {
@@ -1182,14 +1443,14 @@ declare module '@mui/material/styles' {
1182
1443
  palette?: {
1183
1444
  black?: string;
1184
1445
  white?: string;
1185
- neutral?: ColorRange;
1186
- neutralAlpha?: ColorRangeAlpha;
1187
- purple?: ColorRange;
1188
- red?: ColorRange;
1189
- peach?: ColorRange;
1190
- yellow?: ColorRange;
1191
- blue?: ColorRange;
1192
- green?: ColorRange;
1446
+ neutral?: ColorRange$1;
1447
+ neutralAlpha?: ColorRangeAlpha$1;
1448
+ purple?: ColorRange$1;
1449
+ red?: ColorRange$1;
1450
+ peach?: ColorRange$1;
1451
+ yellow?: ColorRange$1;
1452
+ blue?: ColorRange$1;
1453
+ green?: ColorRange$1;
1193
1454
  icon?: {
1194
1455
  primary?: string;
1195
1456
  secondary?: string;
@@ -1349,4 +1610,4 @@ declare module '@mui/system' {
1349
1610
  }
1350
1611
  }
1351
1612
 
1352
- export { AnnualController, type AnnualControllerProps, AuthContainerSurface, type AuthContainerSurfaceProps, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Button, type ButtonProps, CheckboxGroup as CheckBoxGroup, Checkbox, type CheckboxGroupProps, type CheckboxProps, ColorBackgroundContainer, type ColorBackgroundContainerProps, CustomField, type CustomFieldProps, DEFAULT_MAX_INPUT_LENGTH, Differential, type DifferentialProps, DropdownMenu, type FieldType, type FieldTypes, FormControlLabel, FormGenerator, type FormGeneratorConfig, type FormGeneratorHandler, GridOverlay, type GridOverlayProps, Html, type HtmlProps, Icon, IconButton, IconButtonGroup, type IconButtonProps, InputFieldBase, type InputFieldBaseProps, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, Markdown, MenuButton, type MenuButtonProps, Navigation, type NavigationProps, type NavigationSizing, Nudge, type NudgeProps, NumberField, type NumberFieldProps, Pill, type PillProps, PlanFeatureTable, type PlanFeatureTableProps, PlanTierCard, type PlanTierCardProps, PlanTierCardScale, type PlanTierCardScaleProps, Popper, type PopperProps, Portal, type PortalProps, PoweredByWatermarkLogo, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rank, type RankProps, RichTextField, type RichTextFieldProps, Select, type SelectProps, Slider, type SliderProps, SortableList, type SortableListProps, StarRating, type StarRatingProps, Surface, type SurfaceProps, Switch, type SwitchProps, Textarea as TextArea, TextBarDivider, type TextBarDividerProps, TextField, type TextFieldProps, type TextareaProps, ThemeProvider, TickGroup, type TickGroupProps, Toast, type ToastProps, Tooltip, type TooltipProps, Typography, type TypographyProps, UserMenu, type UserMenuProps, backgroundCreator, chooseArticle, defaultInputValidation, emailValidation, passwordValidation, useDropdownMenu };
1613
+ export { AuthContainerSurface, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Button, type ButtonProps, CheckboxGroup as CheckBoxGroup, Checkbox, 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, Html, type HtmlProps, IconButton, IconButtonGroup, type IconButtonProps, InputFieldBase, type InputFieldBaseProps, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, Markdown, MenuButton, type MenuButtonProps, Navigation, type NavigationProps, type NavigationSizing, Nudge, type NudgeProps, NumberField, type NumberFieldProps, Pill, type PillProps, Popper, type PopperProps, Portal, type PortalProps, PoweredByWatermarkLogo, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rank, type RankProps, RichTextField, type RichTextFieldProps, Select, type SelectProps, type SemanticColor, Slider, type SliderProps, SortableList, type SortableListProps, StarRating, type StarRatingProps, Surface, type SurfaceProps, Switch, type SwitchProps, Textarea as TextArea, TextBarDivider, type TextBarDividerProps, TextField, type TextFieldProps, type TextareaProps, ThemeProvider, Toast, type ToastProps, Tooltip, type TooltipProps, Typography, type TypographyProps, UserMenu, type UserMenuProps, backgroundCreator, base, blue, blueRamp, boxShadow, breakpoints, chooseArticle, darkNeutral, darkNeutralAlpha, defaultInputValidation, easing, elevation, elevationFilter, emailValidation, fonts, generateRamp, green, greenRamp, margin, neutral, neutralAlpha, neutralRamp, padding, passwordValidation, peach, peachRamp, purple, purpleRamp, radius, red, redRamp, semantic, space, useDropdownMenu, yellow, yellowRamp };