@telefonica/mistica 15.20.0 → 15.20.1

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.
Files changed (93) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.d.ts +2 -2
  3. package/dist/avatar.d.ts +2 -2
  4. package/dist/badge.d.ts +1 -1
  5. package/dist/button-fixed-footer-layout.d.ts +1 -1
  6. package/dist/button-group.d.ts +2 -2
  7. package/dist/button-layout.d.ts +2 -2
  8. package/dist/button.d.ts +2 -2
  9. package/dist/callout.d.ts +1 -1
  10. package/dist/card.d.ts +1 -1
  11. package/dist/checkbox.d.ts +1 -1
  12. package/dist/chip.d.ts +3 -3
  13. package/dist/circle.d.ts +1 -1
  14. package/dist/community/blocks.d.ts +7 -7
  15. package/dist/counter.d.ts +2 -2
  16. package/dist/credit-card-expiration-field.d.ts +2 -2
  17. package/dist/credit-card-fields.d.ts +2 -2
  18. package/dist/credit-card-number-field.d.ts +2 -2
  19. package/dist/cvv-field.d.ts +2 -2
  20. package/dist/date-field.d.ts +2 -2
  21. package/dist/date-time-field.d.ts +2 -2
  22. package/dist/date-time-picker.d.ts +2 -2
  23. package/dist/decimal-field.d.ts +2 -2
  24. package/dist/dialog.js +72 -70
  25. package/dist/divider.d.ts +2 -4
  26. package/dist/double-field.d.ts +2 -2
  27. package/dist/email-field.d.ts +2 -2
  28. package/dist/empty-state-card.d.ts +1 -1
  29. package/dist/empty-state.d.ts +1 -1
  30. package/dist/fade-in.d.ts +1 -1
  31. package/dist/feedback.d.ts +6 -6
  32. package/dist/fixed-to-top.d.ts +1 -1
  33. package/dist/focus-trap.d.ts +1 -1
  34. package/dist/form.d.ts +1 -1
  35. package/dist/grid-layout.d.ts +1 -1
  36. package/dist/header.d.ts +4 -4
  37. package/dist/iban-field.d.ts +2 -2
  38. package/dist/icon-button.d.ts +2 -2
  39. package/dist/icons/icon-amex.d.ts +2 -2
  40. package/dist/icons/icon-chevron.d.ts +1 -1
  41. package/dist/icons/icon-cvv-amex.d.ts +2 -2
  42. package/dist/icons/icon-cvv-visa-mc.d.ts +2 -2
  43. package/dist/icons/icon-mastercard.d.ts +2 -2
  44. package/dist/icons/icon-visa.d.ts +2 -2
  45. package/dist/inline.d.ts +1 -1
  46. package/dist/integer-field.d.ts +1 -1
  47. package/dist/list.d.ts +3 -3
  48. package/dist/loading-bar.d.ts +2 -2
  49. package/dist/master-detail-layout.d.ts +1 -1
  50. package/dist/menu.d.ts +4 -4
  51. package/dist/month-field.d.ts +2 -2
  52. package/dist/mosaic.d.ts +3 -3
  53. package/dist/navigation-bar.d.ts +5 -5
  54. package/dist/navigation-breadcrumbs.d.ts +2 -2
  55. package/dist/negative-box.d.ts +1 -1
  56. package/dist/nestable-context.d.ts +5 -5
  57. package/dist/overlay.d.ts +1 -1
  58. package/dist/package-version.js +1 -1
  59. package/dist/password-field.d.ts +2 -2
  60. package/dist/phone-number-field.d.ts +2 -2
  61. package/dist/placeholder.d.ts +2 -2
  62. package/dist/popover.d.ts +1 -1
  63. package/dist/portal.d.ts +1 -1
  64. package/dist/progress-bar.d.ts +2 -2
  65. package/dist/radio-button.d.ts +2 -2
  66. package/dist/responsive-layout.d.ts +5 -5
  67. package/dist/screen-reader-only.d.ts +1 -1
  68. package/dist/screen-size-context-provider.d.ts +1 -1
  69. package/dist/select.d.ts +1 -1
  70. package/dist/snackbar.js +18 -20
  71. package/dist/spinner.d.ts +1 -1
  72. package/dist/stack.d.ts +1 -1
  73. package/dist/stacking-group.d.ts +1 -1
  74. package/dist/stepper.d.ts +2 -2
  75. package/dist/switch-component.d.ts +1 -1
  76. package/dist/tab-focus.d.ts +1 -1
  77. package/dist/tabs.d.ts +1 -1
  78. package/dist/tag.d.ts +3 -3
  79. package/dist/text-field-base.d.ts +4 -4
  80. package/dist/text-field-components.d.ts +3 -3
  81. package/dist/text-link.d.ts +1 -1
  82. package/dist/text.d.ts +11 -11
  83. package/dist/theme-context-provider.d.ts +1 -1
  84. package/dist/theme-variant-context.d.ts +1 -1
  85. package/dist/timer.d.ts +3 -3
  86. package/dist/tooltip.d.ts +2 -2
  87. package/dist/utils/aspect-ratio-support.d.ts +1 -1
  88. package/dist/utils/document-visibility.d.ts +1 -1
  89. package/dist-es/dialog.js +72 -70
  90. package/dist-es/package-version.js +1 -1
  91. package/dist-es/snackbar.js +21 -23
  92. package/dist-es/style.css +1 -1
  93. package/package.json +3 -3
package/dist/form.d.ts CHANGED
@@ -12,5 +12,5 @@ type FormProps = {
12
12
  onValidationErrors?: (errors: FormErrors) => void;
13
13
  className?: string;
14
14
  };
15
- declare const Form: React.FC<FormProps>;
15
+ declare const Form: ({ children, className, onSubmit, initialValues, autoJump, onValidationErrors, id: idProp, }: FormProps) => JSX.Element;
16
16
  export default Form;
@@ -44,5 +44,5 @@ type PropsTemplate8 = {
44
44
  children: React.ReactNode;
45
45
  };
46
46
  type Props = CommonProps & ExclusifyUnion<PropsChildren | PropsTemplate6plus6 | PropsTemplate8plus4 | PropsTemplate4plus6 | PropsTemplate5plus4 | PropsTemplate3plus9 | PropsTemplate10 | PropsTemplate8>;
47
- declare const GridLayout: React.FC<Props>;
47
+ declare const GridLayout: ({ dataAttributes, template, left, right, verticalSpace, collapseBreakpoint, children, }: Props) => JSX.Element;
48
48
  export default GridLayout;
package/dist/header.d.ts CHANGED
@@ -45,14 +45,14 @@ type HeaderProps = {
45
45
  */
46
46
  isErrorAmount?: boolean;
47
47
  };
48
- export declare const Header: React.FC<HeaderProps>;
48
+ export declare const Header: ({ headline, pretitle, pretitleAs, title, titleAs, description, dataAttributes, small, preamount, amount, button, subtitle, isErrorAmount, secondaryButton, }: HeaderProps) => JSX.Element;
49
49
  type MainSectionHeaderProps = {
50
50
  title: string;
51
51
  titleAs?: HeadingType;
52
52
  description?: string;
53
53
  button?: RendersNullableElement<typeof ButtonPrimary> | RendersNullableElement<typeof ButtonSecondary>;
54
54
  };
55
- export declare const MainSectionHeader: React.FC<MainSectionHeaderProps>;
55
+ export declare const MainSectionHeader: ({ title, titleAs, description, button, }: MainSectionHeaderProps) => JSX.Element;
56
56
  type HeaderLayoutProps = {
57
57
  isInverse?: boolean;
58
58
  breadcrumbs?: RendersNullableElement<typeof NavigationBreadcrumbs>;
@@ -68,11 +68,11 @@ type HeaderLayoutProps = {
68
68
  bleed?: boolean;
69
69
  noPaddingY?: boolean;
70
70
  };
71
- export declare const HeaderLayout: React.FC<HeaderLayoutProps>;
71
+ export declare const HeaderLayout: ({ isInverse, breadcrumbs, header, extra, sideBySideExtraOnDesktop, dataAttributes, bleed, noPaddingY, }: HeaderLayoutProps) => JSX.Element;
72
72
  type MainSectionHeaderLayoutProps = {
73
73
  isInverse?: boolean;
74
74
  children: RendersElement<typeof MainSectionHeader>;
75
75
  dataAttributes?: DataAttributes;
76
76
  };
77
- export declare const MainSectionHeaderLayout: React.FC<MainSectionHeaderLayoutProps>;
77
+ export declare const MainSectionHeaderLayout: ({ isInverse, children, dataAttributes, }: MainSectionHeaderLayoutProps) => JSX.Element;
78
78
  export {};
@@ -1,9 +1,9 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  import type { CommonFormFieldProps } from './text-field-base';
3
3
  export interface IbanFieldProps extends CommonFormFieldProps {
4
4
  onChangeValue?: (value: string, rawValue: string) => void;
5
5
  prefix?: string;
6
6
  getSuggestions?: (value: string) => Array<string>;
7
7
  }
8
- declare const IbanField: React.FC<IbanFieldProps>;
8
+ declare const IbanField: ({ disabled, error, helperText, name, optional, validate: customValidate, onChange, onChangeValue, onBlur, value, defaultValue, dataAttributes, ...rest }: IbanFieldProps) => JSX.Element;
9
9
  export default IbanField;
@@ -80,7 +80,7 @@ interface BaseProps {
80
80
  role?: string;
81
81
  }
82
82
  interface IconButtonBaseProps {
83
- Icon: React.FC<IconProps>;
83
+ Icon: (props: IconProps) => JSX.Element;
84
84
  type?: IconButtonType;
85
85
  backgroundType?: IconButtonBackgroundType;
86
86
  }
@@ -93,7 +93,7 @@ export declare const RawIconButton: React.ForwardRefExoticComponent<(IconButtonP
93
93
  export declare const InternalIconButton: React.ForwardRefExoticComponent<ExclusifyUnion<DeprecatedProps | (IconButtonProps & InternalIconButtonBaseProps)> & React.RefAttributes<TouchableElement>>;
94
94
  export declare const IconButton: React.ForwardRefExoticComponent<ExclusifyUnion<DeprecatedProps | IconButtonProps> & React.RefAttributes<TouchableElement>>;
95
95
  type ToggleStateProps = {
96
- Icon: React.FC<IconProps>;
96
+ Icon: (props: IconProps) => JSX.Element;
97
97
  type?: IconButtonType;
98
98
  backgroundType?: IconButtonBackgroundType;
99
99
  } & AriaProps;
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  type Props = {
3
3
  role?: string;
4
4
  size?: number | string;
5
5
  };
6
- declare const IconAmex: React.FC<Props>;
6
+ declare const IconAmex: ({ role, size }: Props) => JSX.Element;
7
7
  export default IconAmex;
@@ -8,5 +8,5 @@ type Props = {
8
8
  direction?: Direction;
9
9
  transitionDuration?: number;
10
10
  };
11
- declare const IconChevron: React.FC<Props>;
11
+ declare const IconChevron: ({ size, color, className, style, transitionDuration, direction, }: Props) => JSX.Element;
12
12
  export default IconChevron;
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  type Props = {
3
3
  role?: string;
4
4
  size?: number | string;
5
5
  color?: string;
6
6
  };
7
- declare const IconCvvAmex: React.FC<Props>;
7
+ declare const IconCvvAmex: ({ role, size, color }: Props) => JSX.Element;
8
8
  export default IconCvvAmex;
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  type Props = {
3
3
  role?: string;
4
4
  size?: number | string;
5
5
  color?: string;
6
6
  };
7
- declare const IconCvvVisaMc: React.FC<Props>;
7
+ declare const IconCvvVisaMc: ({ role, size, color }: Props) => JSX.Element;
8
8
  export default IconCvvVisaMc;
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  type Props = {
3
3
  role?: string;
4
4
  size?: number | string;
5
5
  };
6
- declare const IconMastercard: React.FC<Props>;
6
+ declare const IconMastercard: ({ role, size }: Props) => JSX.Element;
7
7
  export default IconMastercard;
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  type Props = {
3
3
  role?: string;
4
4
  size?: number | string;
5
5
  };
6
- declare const IconVisa: React.FC<Props>;
6
+ declare const IconVisa: ({ role, size }: Props) => JSX.Element;
7
7
  export default IconVisa;
package/dist/inline.d.ts CHANGED
@@ -13,5 +13,5 @@ type Props = {
13
13
  dataAttributes?: DataAttributes;
14
14
  wrap?: boolean;
15
15
  };
16
- declare const Inline: React.FC<Props>;
16
+ declare const Inline: ({ space, className, children, role, alignItems, "aria-labelledby": ariaLabelledBy, fullWidth, wrap, dataAttributes, }: Props) => JSX.Element;
17
17
  export default Inline;
@@ -8,5 +8,5 @@ export declare const IntegerInput: ({ inputRef, value, defaultValue, type, ...re
8
8
  export interface IntegerFieldProps extends CommonFormFieldProps {
9
9
  onChangeValue?: (value: string, rawValue: string) => void;
10
10
  }
11
- declare const IntegerField: React.FC<IntegerFieldProps>;
11
+ declare const IntegerField: ({ disabled, error, helperText, name, optional, validate: validateProp, onChange, onChangeValue, onBlur, value, defaultValue, dataAttributes, ...rest }: IntegerFieldProps) => JSX.Element;
12
12
  export default IntegerField;
package/dist/list.d.ts CHANGED
@@ -36,7 +36,7 @@ interface ContentProps extends CommonProps {
36
36
  /** This id is to link the title with the related control */
37
37
  labelId?: string;
38
38
  }
39
- export declare const Content: React.FC<ContentProps>;
39
+ export declare const Content: ({ withChevron, headline, headlineRef, extraRef, title, titleAs, titleLinesMax, subtitle, subtitleLinesMax, description, descriptionLinesMax, detail, asset, danger, badge, right, rightRef, extra, labelId, disabled, control, }: ContentProps) => JSX.Element;
40
40
  type ControlProps = {
41
41
  name?: string;
42
42
  value?: boolean;
@@ -91,7 +91,7 @@ type RowListProps = {
91
91
  role?: string;
92
92
  dataAttributes?: DataAttributes;
93
93
  };
94
- export declare const RowList: React.FC<RowListProps>;
94
+ export declare const RowList: ({ children, ariaLabelledby, role, dataAttributes, }: RowListProps) => JSX.Element;
95
95
  type CommonBoxedRowProps = {
96
96
  danger: true;
97
97
  isInverse?: false;
@@ -110,5 +110,5 @@ type BoxedRowListProps = {
110
110
  role?: string;
111
111
  dataAttributes?: DataAttributes;
112
112
  };
113
- export declare const BoxedRowList: React.FC<BoxedRowListProps>;
113
+ export declare const BoxedRowList: ({ children, ariaLabelledby, role, dataAttributes, }: BoxedRowListProps) => JSX.Element;
114
114
  export {};
@@ -1,9 +1,9 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  import type { DataAttributes } from './utils/types';
3
3
  type Props = {
4
4
  visible: boolean;
5
5
  children?: void;
6
6
  dataAttributes?: DataAttributes;
7
7
  };
8
- declare const LoadingBar: React.FC<Props>;
8
+ declare const LoadingBar: ({ visible, dataAttributes }: Props) => JSX.Element;
9
9
  export default LoadingBar;
@@ -5,5 +5,5 @@ type Props = {
5
5
  detail?: React.ReactNode;
6
6
  children?: void;
7
7
  };
8
- declare const MasterDetailLayout: React.FC<Props>;
8
+ declare const MasterDetailLayout: ({ isOpen, master, detail }: Props) => JSX.Element;
9
9
  export default MasterDetailLayout;
package/dist/menu.d.ts CHANGED
@@ -3,7 +3,7 @@ import type { ExclusifyUnion } from './utils/utility-types';
3
3
  import type { DataAttributes, IconProps } from './utils/types';
4
4
  interface MenuItemBaseProps {
5
5
  label: string;
6
- Icon?: React.FC<IconProps>;
6
+ Icon?: (props: IconProps) => JSX.Element;
7
7
  destructive?: boolean;
8
8
  disabled?: boolean;
9
9
  onPress: (item: number) => void;
@@ -17,11 +17,11 @@ interface MenuItemWithControlProps extends MenuItemBaseProps {
17
17
  checked?: boolean;
18
18
  }
19
19
  type MenuItemProps = ExclusifyUnion<MenuItemWithControlProps | MenuItemWithoutControlProps>;
20
- export declare const MenuItem: React.FC<MenuItemProps>;
20
+ export declare const MenuItem: ({ label, Icon, destructive, disabled, onPress, controlType, checked, }: MenuItemProps) => JSX.Element;
21
21
  type MenuSectionProps = {
22
22
  children?: React.ReactNode;
23
23
  };
24
- export declare const MenuSection: React.FC<MenuSectionProps>;
24
+ export declare const MenuSection: ({ children }: MenuSectionProps) => JSX.Element;
25
25
  type MenuRenderProps = {
26
26
  ref: (element: HTMLElement | null) => void;
27
27
  className: string;
@@ -40,5 +40,5 @@ export type MenuProps = {
40
40
  position?: 'left' | 'right';
41
41
  dataAttributes?: DataAttributes;
42
42
  };
43
- export declare const Menu: React.FC<MenuProps>;
43
+ export declare const Menu: ({ renderTarget, renderMenu, width, position, dataAttributes, }: MenuProps) => JSX.Element;
44
44
  export {};
@@ -1,9 +1,9 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  import type { CommonFormFieldProps } from './text-field-base';
3
3
  export interface DateFieldProps extends CommonFormFieldProps {
4
4
  onChangeValue?: (value: string, rawValue: string) => void;
5
5
  min?: Date;
6
6
  max?: Date;
7
7
  }
8
- declare const DateField: React.FC<DateFieldProps>;
8
+ declare const DateField: ({ disabled, error, helperText, name, optional, validate: validateProp, onChange, onChangeValue: onChangeValueProp, onBlur, value, defaultValue, min, max, dataAttributes, ...rest }: DateFieldProps) => JSX.Element;
9
9
  export default DateField;
package/dist/mosaic.d.ts CHANGED
@@ -6,10 +6,10 @@ type HorizontalMosaicProps = {
6
6
  free?: boolean;
7
7
  dataAttributes?: DataAttributes;
8
8
  };
9
- export declare const HorizontalMosaic: React.FC<HorizontalMosaicProps>;
10
- type Props = {
9
+ export declare const HorizontalMosaic: ({ items, withBullets, free, dataAttributes, }: HorizontalMosaicProps) => JSX.Element;
10
+ type VerticalMosaicProps = {
11
11
  items: ReadonlyArray<React.ReactElement>;
12
12
  dataAttributes?: DataAttributes;
13
13
  };
14
- export declare const VerticalMosaic: React.FC<Props>;
14
+ export declare const VerticalMosaic: ({ items, dataAttributes }: VerticalMosaicProps) => JSX.Element;
15
15
  export {};
@@ -33,7 +33,7 @@ type MainNavigationBarPropsBase = {
33
33
  large?: boolean;
34
34
  };
35
35
  type MainNavigationBarProps = MainNavigationBarPropsBase;
36
- export declare const MainNavigationBar: React.FC<MainNavigationBarProps>;
36
+ export declare const MainNavigationBar: ({ sections, selectedIndex, right, variant, isInverse, topFixed, withBorder, burgerMenuExtra, logo, large, }: MainNavigationBarProps) => JSX.Element;
37
37
  interface NavigationBarCommonProps {
38
38
  /** @deprecated Use variant instead */
39
39
  isInverse?: boolean;
@@ -54,7 +54,7 @@ interface NavigationBarNotFixedProps extends NavigationBarCommonProps {
54
54
  paddingX?: number;
55
55
  }
56
56
  type NavigationBarProps = NavigationBarTopFixedProps | NavigationBarNotFixedProps;
57
- export declare const NavigationBar: React.FC<NavigationBarProps>;
57
+ export declare const NavigationBar: ({ onBack, title, titleAs, right, variant, isInverse, topFixed, paddingX, withBorder, }: NavigationBarProps) => JSX.Element;
58
58
  type FunnelNavigationBarProps = {
59
59
  variant?: Variant;
60
60
  /** @deprecated Use variant instead */
@@ -65,11 +65,11 @@ type FunnelNavigationBarProps = {
65
65
  children?: undefined;
66
66
  withBorder?: boolean;
67
67
  };
68
- export declare const FunnelNavigationBar: React.FC<FunnelNavigationBarProps>;
68
+ export declare const FunnelNavigationBar: ({ logo, right, variant, isInverse, topFixed, withBorder, }: FunnelNavigationBarProps) => JSX.Element;
69
69
  type NavigationBarActionGroupProps = {
70
70
  children: React.ReactNode;
71
71
  };
72
- export declare const NavigationBarActionGroup: React.FC<NavigationBarActionGroupProps>;
72
+ export declare const NavigationBarActionGroup: ({ children }: NavigationBarActionGroupProps) => JSX.Element;
73
73
  type NavigationBarActionProps = TouchableProps;
74
- export declare const NavigationBarAction: React.FC<NavigationBarActionProps>;
74
+ export declare const NavigationBarAction: ({ children, ...touchableProps }: NavigationBarActionProps) => JSX.Element;
75
75
  export {};
@@ -2,7 +2,7 @@
2
2
  * Figma: https://www.figma.com/file/BctaFHf0PVPX2uwRSl8taf/Breadcrumbs?node-id=2%3A61
3
3
  * Accessibility: https://www.w3.org/WAI/ARIA/apg/example-index/breadcrumb/index.html
4
4
  */
5
- import * as React from 'react';
5
+ /// <reference types="react" />
6
6
  import type { DataAttributes } from './utils/types';
7
7
  export type NavigationBreadcrumbsProps = {
8
8
  title: string;
@@ -15,5 +15,5 @@ export type NavigationBreadcrumbsProps = {
15
15
  dataAttributes?: DataAttributes;
16
16
  'aria-label'?: string;
17
17
  };
18
- declare const NavigationBreadcrumbs: React.FC<NavigationBreadcrumbsProps>;
18
+ declare const NavigationBreadcrumbs: ({ title, breadcrumbs, dataAttributes, "aria-label": ariaLabel, }: NavigationBreadcrumbsProps) => JSX.Element;
19
19
  export default NavigationBreadcrumbs;
@@ -4,5 +4,5 @@ type Props = {
4
4
  right?: boolean;
5
5
  left?: boolean;
6
6
  };
7
- declare const NegativeBox: React.FC<Props>;
7
+ declare const NegativeBox: ({ left, right, children }: Props) => JSX.Element;
8
8
  export default NegativeBox;
@@ -3,13 +3,13 @@ type ProviderProps = {
3
3
  children: React.ReactNode;
4
4
  };
5
5
  export type NestableContext<Value> = {
6
- Getter: React.FC<{
6
+ Getter: (props: {
7
7
  children: (value: Value) => React.ReactNode;
8
- }>;
9
- Provider: React.FC<ProviderProps>;
10
- Setter: React.FC<{
8
+ }) => JSX.Element;
9
+ Provider: (props: ProviderProps) => JSX.Element;
10
+ Setter: (props: {
11
11
  value: Value;
12
- }>;
12
+ }) => null;
13
13
  useValue: () => Value;
14
14
  useSetValue: (value: Value) => void;
15
15
  };
package/dist/overlay.d.ts CHANGED
@@ -8,5 +8,5 @@ type Props = {
8
8
  disableScroll?: boolean;
9
9
  dataAttributes?: DataAttributes;
10
10
  };
11
- declare const Overlay: React.FC<Props>;
11
+ declare const Overlay: ({ onPress, children, className, style, disableScroll, dataAttributes, }: Props) => JSX.Element;
12
12
  export default Overlay;
@@ -8,4 +8,4 @@ Object.defineProperty(exports, "PACKAGE_VERSION", {
8
8
  return o;
9
9
  }
10
10
  });
11
- const o = "15.20.0";
11
+ const o = "15.20.1";
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  import type { CommonFormFieldProps } from './text-field-base';
3
3
  export interface PasswordFieldProps extends CommonFormFieldProps {
4
4
  onChangeValue?: (value: string, rawValue: string) => void;
5
5
  }
6
- declare const PasswordField: React.FC<PasswordFieldProps>;
6
+ declare const PasswordField: ({ disabled, error, helperText, name, optional, validate, onChange, onChangeValue, onBlur, value, autoComplete, defaultValue, dataAttributes, ...rest }: PasswordFieldProps) => JSX.Element;
7
7
  export default PasswordField;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  import type { CommonFormFieldProps } from './text-field-base';
3
3
  export interface PhoneNumberFieldProps extends CommonFormFieldProps {
4
4
  onChangeValue?: (value: string, rawValue: string) => void;
@@ -6,5 +6,5 @@ export interface PhoneNumberFieldProps extends CommonFormFieldProps {
6
6
  getSuggestions?: (value: string) => Array<string>;
7
7
  e164?: boolean;
8
8
  }
9
- declare const PhoneNumberField: React.FC<PhoneNumberFieldProps>;
9
+ declare const PhoneNumberField: ({ disabled, error, helperText, name, optional, validate, onChange, onChangeValue, onBlur, value, defaultValue, e164, dataAttributes, ...rest }: PhoneNumberFieldProps) => JSX.Element;
10
10
  export default PhoneNumberField;
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  type PlaceholderProps = {
3
3
  width?: string | number;
4
4
  height?: string | number;
5
5
  children?: void;
6
6
  };
7
- export declare const Placeholder: React.FC<PlaceholderProps>;
7
+ export declare const Placeholder: ({ width, height }: PlaceholderProps) => JSX.Element;
8
8
  export {};
package/dist/popover.d.ts CHANGED
@@ -16,5 +16,5 @@ type Props = {
16
16
  extra?: React.ReactNode;
17
17
  dataAttributes?: DataAttributes;
18
18
  };
19
- declare const Popover: React.FC<Props>;
19
+ declare const Popover: ({ open, extra, children, onClose, closeButtonLabel, dataAttributes, trackingEvent, title, description, asset, ...props }: Props) => JSX.Element;
20
20
  export default Popover;
package/dist/portal.d.ts CHANGED
@@ -11,5 +11,5 @@ type Props = {
11
11
  children: React.ReactNode;
12
12
  className?: string;
13
13
  };
14
- export declare const Portal: React.FC<Props>;
14
+ export declare const Portal: ({ children, className }: Props) => JSX.Element | null;
15
15
  export {};
@@ -10,7 +10,7 @@ type ProgressBarProps = {
10
10
  dataAttributes?: DataAttributes;
11
11
  reverse?: boolean;
12
12
  };
13
- export declare const ProgressBar: React.FC<ProgressBarProps>;
13
+ export declare const ProgressBar: ({ progressPercent, color, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-hidden": ariaHidden, dataAttributes, reverse, }: ProgressBarProps) => JSX.Element;
14
14
  type ProgressBarSteppedProps = {
15
15
  steps: number;
16
16
  currentStep?: number;
@@ -20,5 +20,5 @@ type ProgressBarSteppedProps = {
20
20
  'aria-labelledby'?: string;
21
21
  'aria-hidden'?: React.HTMLAttributes<HTMLDivElement>['aria-hidden'];
22
22
  };
23
- export declare const ProgressBarStepped: React.FC<ProgressBarSteppedProps>;
23
+ export declare const ProgressBarStepped: ({ steps, currentStep, color, dataAttributes, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-hidden": ariaHidden, }: ProgressBarSteppedProps) => JSX.Element;
24
24
  export {};
@@ -32,7 +32,7 @@ type PropsChildren = {
32
32
  'aria-label'?: string;
33
33
  'aria-labelledby'?: string;
34
34
  };
35
- declare const RadioButton: React.FC<PropsRender | PropsChildren>;
35
+ declare const RadioButton: ({ value, id, dataAttributes, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, ...rest }: PropsRender | PropsChildren) => JSX.Element;
36
36
  type RadioGroupProps = {
37
37
  name: string;
38
38
  disabled?: boolean;
@@ -43,5 +43,5 @@ type RadioGroupProps = {
43
43
  onChange?: (value: string) => void;
44
44
  dataAttributes?: DataAttributes;
45
45
  };
46
- export declare const RadioGroup: React.FC<RadioGroupProps>;
46
+ export declare const RadioGroup: (props: RadioGroupProps) => JSX.Element;
47
47
  export default RadioButton;
@@ -10,14 +10,14 @@ type Props = {
10
10
  backgroundColor?: string;
11
11
  dataAttributes?: DataAttributes;
12
12
  };
13
- export declare const InternalResponsiveLayout: React.FC<Props & {
13
+ export declare const InternalResponsiveLayout: ({ children, isInverse, variant, backgroundColor, className, fullWidth, dataAttributes, shouldExpandWhenNested, innerDivClassName, }: Props & {
14
14
  shouldExpandWhenNested?: boolean | 'desktop';
15
15
  innerDivClassName?: string;
16
- }>;
17
- declare const ResponsiveLayout: React.FC<Props>;
18
- export declare const ResetResponsiveLayout: React.FC<{
16
+ }) => JSX.Element;
17
+ declare const ResponsiveLayout: ({ children, ...props }: Props) => JSX.Element;
18
+ export declare const ResetResponsiveLayout: ({ children, skipMobile, skipDesktop, }: {
19
19
  children: React.ReactNode;
20
20
  skipMobile?: boolean;
21
21
  skipDesktop?: boolean;
22
- }>;
22
+ }) => JSX.Element;
23
23
  export default ResponsiveLayout;
@@ -4,5 +4,5 @@ type Props = {
4
4
  children: React.ReactNode;
5
5
  dataAttributes?: DataAttributes;
6
6
  };
7
- declare const ScreenReaderOnly: React.FC<Props>;
7
+ declare const ScreenReaderOnly: ({ children, dataAttributes }: Props) => JSX.Element;
8
8
  export default ScreenReaderOnly;
@@ -2,5 +2,5 @@ import * as React from 'react';
2
2
  type Props = {
3
3
  children: React.ReactNode;
4
4
  };
5
- declare const ScreenSizeContextProvider: React.FC<Props>;
5
+ declare const ScreenSizeContextProvider: ({ children }: Props) => JSX.Element;
6
6
  export default ScreenSizeContextProvider;
package/dist/select.d.ts CHANGED
@@ -21,5 +21,5 @@ export type SelectProps = {
21
21
  native?: boolean;
22
22
  children?: void;
23
23
  };
24
- declare const Select: React.FC<SelectProps>;
24
+ declare const Select: ({ id, label, helperText: helperTextProp, value: valueProp, defaultValue, onChangeValue: onChangeValueProp, name, fullWidth, options, optional, disabled: disabledProp, error: errorProp, onBlur, autoFocus, native, }: SelectProps) => JSX.Element;
25
25
  export default Select;
package/dist/snackbar.js CHANGED
@@ -126,31 +126,31 @@ const ee = [
126
126
  "CONSECUTIVE",
127
127
  "BUTTON"
128
128
  ], re = 5e3, te = 1e4, ne = /*#__PURE__*/ _react.forwardRef((param, g)=>{
129
- let { message: m, buttonText: n, buttonAccessibilityLabel: u, closeButtonLabel: d, duration: t, onClose: o, type: c, withDismiss: p = !1, dataAttributes: R } = param;
130
- const { texts: T } = (0, _hooks.useTheme)(), [a, s] = _react.useState(!1), { width: I, ref: v } = (0, _hooks.useElementDimensions)(), { isDesktopOrBigger: i } = (0, _hooks.useScreenSize)(), l = I > (i ? 160 : 128), B = _react.useRef(null), E = t === 1 / 0 && !n || p, h = _react.useRef(o);
129
+ let { message: m, buttonText: n, buttonAccessibilityLabel: u, closeButtonLabel: I, duration: t, onClose: o, type: c, withDismiss: d = !1, dataAttributes: R } = param;
130
+ const { texts: T } = (0, _hooks.useTheme)(), [a, s] = _react.useState(!1), { width: p, ref: v } = (0, _hooks.useElementDimensions)(), { isDesktopOrBigger: i } = (0, _hooks.useScreenSize)(), l = p > (i ? 160 : 128), k = _react.useRef(null), E = t === 1 / 0 && !n || d, h = _react.useRef(o);
131
131
  _react.useEffect(()=>{
132
132
  h.current = o;
133
133
  }, [
134
134
  o
135
135
  ]);
136
- const f = _react.useCallback((k)=>{
136
+ const f = _react.useCallback((B)=>{
137
137
  s(!1), setTimeout(()=>{
138
138
  var S;
139
- (S = h.current) == null || S.call(h, k);
139
+ (S = h.current) == null || S.call(h, B);
140
140
  }, process.env.NODE_ENV === "test" ? 0 : _snackbarcssmistica.TRANSITION_TIME_IN_MS);
141
141
  }, []);
142
- return _react.useImperativeHandle(g, ()=>_object_spread_props(_object_spread({}, B), {
142
+ return _react.useImperativeHandle(g, ()=>_object_spread_props(_object_spread({}, k), {
143
143
  close: f
144
144
  }), [
145
145
  f
146
146
  ]), _react.useEffect(()=>{
147
- const k = setTimeout(()=>{
147
+ const B = setTimeout(()=>{
148
148
  s(!0);
149
149
  }, 50), S = t !== 1 / 0 ? setTimeout(()=>f({
150
150
  action: "TIMEOUT"
151
151
  }), t) : void 0;
152
152
  return ()=>{
153
- clearTimeout(k), clearTimeout(S);
153
+ clearTimeout(B), clearTimeout(S);
154
154
  };
155
155
  }, [
156
156
  f,
@@ -158,7 +158,7 @@ const ee = [
158
158
  ]), /* @__PURE__ */ (0, _jsxruntime.jsx)(_portal.Portal, {
159
159
  className: _snackbarcssmistica.snackbarContainer,
160
160
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
161
- ref: B,
161
+ ref: k,
162
162
  className: (0, _classnames.default)(_snackbarcssmistica.snackbar, {
163
163
  [_snackbarcssmistica.snackbarOpen]: a
164
164
  }),
@@ -224,7 +224,7 @@ const ee = [
224
224
  action: "DISMISS"
225
225
  });
226
226
  },
227
- "aria-label": d !== null && d !== void 0 ? d : T.closeButtonLabel,
227
+ "aria-label": I !== null && I !== void 0 ? I : T.closeButtonLabel,
228
228
  className: _snackbarcssmistica.dismissButton[l ? "topRight" : "centered"],
229
229
  style: {
230
230
  display: "flex",
@@ -244,24 +244,22 @@ const ee = [
244
244
  })
245
245
  });
246
246
  }), oe = /*#__PURE__*/ _react.forwardRef((param, g)=>{
247
- let { message: m, buttonText: n, buttonAccessibilityLabel: u, closeButtonLabel: d, duration: t, onClose: o = ()=>{}, type: c = "INFORMATIVE", withDismiss: p, dataAttributes: R } = param;
247
+ let { message: m, buttonText: n, buttonAccessibilityLabel: u, closeButtonLabel: I, duration: t, onClose: o = ()=>{}, type: c = "INFORMATIVE", withDismiss: d, dataAttributes: R } = param;
248
248
  const T = n ? te : re;
249
249
  t = Math.max(t !== null && t !== void 0 ? t : T, T);
250
- const a = (0, _webviewbridge.isWebViewBridgeAvailable)(), s = _react.useRef(o), I = _react.useRef(!1);
250
+ const a = (0, _webviewbridge.isWebViewBridgeAvailable)(), s = _react.useRef(o), p = _react.useRef(!1);
251
251
  return _react.useEffect(()=>{
252
252
  s.current = o;
253
253
  }, [
254
254
  o
255
255
  ]), _react.useEffect(()=>{
256
- a && !I.current && (I.current = !0, (0, _webviewbridge.nativeMessage)({
256
+ a && !p.current && (p.current = !0, (0, _webviewbridge.nativeMessage)({
257
257
  message: m,
258
- // @ts-expect-error duration can be 'PERSISTENT' in new webview-bridge lib versions, and old apps will ignore it
259
258
  duration: t === 1 / 0 ? "PERSISTENT" : void 0,
260
259
  buttonText: n,
261
260
  buttonAccessibilityLabel: u,
262
- closeButtonLabel: d,
263
261
  type: c,
264
- withDismiss: p
262
+ withDismiss: d
265
263
  }).then((v)=>{
266
264
  const i = v;
267
265
  i != null && i.action && ee.includes(i.action) ? s.current({
@@ -270,27 +268,27 @@ const ee = [
270
268
  action: "DISMISS"
271
269
  });
272
270
  }).finally(()=>{
273
- I.current = !1;
271
+ p.current = !1;
274
272
  }));
275
273
  }, [
276
274
  u,
277
- d,
275
+ I,
278
276
  n,
279
277
  t,
280
278
  m,
281
279
  a,
282
280
  c,
283
- p
281
+ d
284
282
  ]), a ? null : /* @__PURE__ */ (0, _jsxruntime.jsx)(ne, {
285
283
  ref: g,
286
284
  message: m,
287
285
  duration: t,
288
286
  buttonText: n,
289
287
  buttonAccessibilityLabel: u,
290
- closeButtonLabel: d,
288
+ closeButtonLabel: I,
291
289
  type: c,
292
290
  onClose: s.current,
293
- withDismiss: p,
291
+ withDismiss: d,
294
292
  dataAttributes: R
295
293
  });
296
294
  }), Se = oe;
package/dist/spinner.d.ts CHANGED
@@ -7,5 +7,5 @@ type Props = {
7
7
  style?: React.CSSProperties;
8
8
  children?: void;
9
9
  };
10
- declare const Spinner: React.FC<Props>;
10
+ declare const Spinner: ({ color, delay, size, style, rolePresentation }: Props) => JSX.Element;
11
11
  export default Spinner;
package/dist/stack.d.ts CHANGED
@@ -10,5 +10,5 @@ type Props = {
10
10
  'aria-labelledby'?: string;
11
11
  dataAttributes?: DataAttributes;
12
12
  };
13
- declare const Stack: React.FC<Props>;
13
+ declare const Stack: ({ space, className, children, role, "aria-labelledby": ariaLabelledby, dataAttributes, }: Props) => JSX.Element;
14
14
  export default Stack;