@transferwise/components 43.13.26 → 43.13.28-beta-fc0fb6fb79.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ declare const Panel: import("react").ForwardRefExoticComponent<{
16
16
  altAxis?: boolean | undefined;
17
17
  open?: boolean | undefined;
18
18
  onClose?: ((event: Event | SyntheticEvent) => void) | undefined;
19
- position?: "left" | "right" | "top" | "bottom" | undefined;
19
+ position?: "top" | "bottom" | "left" | "right" | undefined;
20
20
  anchorRef: RefObject<Element>;
21
21
  anchorWidth?: boolean | undefined;
22
22
  } & {
@@ -5,7 +5,7 @@ declare const ResponsivePanel: import("react").ForwardRefExoticComponent<{
5
5
  altAxis?: boolean | undefined;
6
6
  open?: boolean | undefined;
7
7
  onClose?: ((event: Event | import("react").SyntheticEvent<Element, Event>) => void) | undefined;
8
- position?: "left" | "right" | "top" | "bottom" | undefined;
8
+ position?: "top" | "bottom" | "left" | "right" | undefined;
9
9
  anchorRef: import("react").RefObject<Element>;
10
10
  anchorWidth?: boolean | undefined;
11
11
  } & {
@@ -1,9 +1,10 @@
1
1
  import { MouseEvent, ReactElement, ReactNode } from 'react';
2
- import { CommonProps } from '../common';
2
+ import { CommonProps, PositionBottom, PositionCenter, PositionTop } from '../common';
3
3
  export declare const EXIT_ANIMATION = 350;
4
4
  type DimmerProps = CommonProps & {
5
5
  children?: ReactNode;
6
6
  disableClickToClose?: boolean;
7
+ contentPosition?: PositionTop | PositionCenter | PositionBottom;
7
8
  fadeContentOnEnter?: boolean;
8
9
  fadeContentOnExit?: boolean;
9
10
  open?: boolean;
@@ -12,7 +13,7 @@ type DimmerProps = CommonProps & {
12
13
  onClose?: (event: KeyboardEvent | MouseEvent) => void;
13
14
  };
14
15
  export declare const handleTouchMove: (event: Event) => void;
15
- declare const Dimmer: ({ children, className, disableClickToClose, fadeContentOnEnter, fadeContentOnExit, open, scrollable, transparent, onClose, }: DimmerProps) => JSX.Element;
16
+ declare const Dimmer: ({ children, className, disableClickToClose, contentPosition, fadeContentOnEnter, fadeContentOnExit, open, scrollable, transparent, onClose, }: DimmerProps) => JSX.Element;
16
17
  export declare const DimmerContentWrapper: ({ children, scrollBody, }: {
17
18
  children: ReactElement;
18
19
  scrollBody: boolean;
@@ -21,6 +22,7 @@ export { Dimmer };
21
22
  declare const _default: (props: CommonProps & {
22
23
  children?: ReactNode;
23
24
  disableClickToClose?: boolean | undefined;
25
+ contentPosition?: "top" | "center" | "bottom" | undefined;
24
26
  fadeContentOnEnter?: boolean | undefined;
25
27
  fadeContentOnExit?: boolean | undefined;
26
28
  open?: boolean | undefined;
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  component: (props: import("../common").CommonProps & {
4
4
  children?: import("react").ReactNode;
5
5
  disableClickToClose?: boolean | undefined;
6
+ contentPosition?: "top" | "center" | "bottom" | undefined;
6
7
  fadeContentOnEnter?: boolean | undefined;
7
8
  fadeContentOnExit?: boolean | undefined;
8
9
  open?: boolean | undefined;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
3
  component: ({ position, children, label, className, }: {
4
- position?: "left" | "right" | "top" | "bottom" | undefined;
4
+ position?: "top" | "bottom" | "left" | "right" | undefined;
5
5
  label: import("react").ReactNode;
6
6
  } & {
7
7
  children?: import("react").ReactNode;