@transferwise/components 45.4.0 → 45.5.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 (94) hide show
  1. package/build/es/no-polyfill/actionButton/ActionButton.js +1 -1
  2. package/build/es/no-polyfill/actionButton/ActionButton.spec.js +1 -1
  3. package/build/es/no-polyfill/actionButton/ActionButton.story.js +1 -1
  4. package/build/es/no-polyfill/circularButton/CircularButton.js +1 -1
  5. package/build/es/no-polyfill/common/DOMOperations/DOMOperations.js +6 -6
  6. package/build/es/no-polyfill/common/DOMOperations/index.js +1 -1
  7. package/build/es/no-polyfill/common/flowHeader/FlowHeader.js +1 -1
  8. package/build/es/no-polyfill/common/hooks/index.js +1 -1
  9. package/build/es/no-polyfill/common/hooks/useClientWidth/useClientWidth.js +1 -1
  10. package/build/es/no-polyfill/common/hooks/useLayout/useLayout.js +1 -1
  11. package/build/es/no-polyfill/common/index.js +1 -1
  12. package/build/es/no-polyfill/dateLookup/dateTrigger/DateTrigger.js +1 -1
  13. package/build/es/no-polyfill/decision/Decision.js +2 -2
  14. package/build/es/no-polyfill/definitionList/DefinitionList.js +1 -1
  15. package/build/es/no-polyfill/dimmer/Dimmer.js +2 -2
  16. package/build/es/no-polyfill/flowNavigation/FlowNavigation.js +2 -2
  17. package/build/es/no-polyfill/flowNavigation/backButton/BackButton.js +1 -1
  18. package/build/es/no-polyfill/index.js +1 -1
  19. package/build/es/no-polyfill/overlayHeader/OverlayHeader.js +1 -1
  20. package/build/es/no-polyfill/phoneNumberInput/data/countries.js +1 -1
  21. package/build/es/no-polyfill/snackbar/Snackbar.js +1 -1
  22. package/build/es/no-polyfill/stepper/Stepper.js +1 -1
  23. package/build/es/no-polyfill/tile/Tile.js +1 -1
  24. package/build/es/polyfill/actionButton/ActionButton.js +1 -1
  25. package/build/es/polyfill/actionButton/ActionButton.spec.js +1 -1
  26. package/build/es/polyfill/actionButton/ActionButton.story.js +1 -1
  27. package/build/es/polyfill/circularButton/CircularButton.js +1 -1
  28. package/build/es/polyfill/common/DOMOperations/DOMOperations.js +6 -6
  29. package/build/es/polyfill/common/DOMOperations/index.js +1 -1
  30. package/build/es/polyfill/common/flowHeader/FlowHeader.js +1 -1
  31. package/build/es/polyfill/common/hooks/index.js +1 -1
  32. package/build/es/polyfill/common/hooks/useClientWidth/useClientWidth.js +1 -1
  33. package/build/es/polyfill/common/hooks/useLayout/useLayout.js +1 -1
  34. package/build/es/polyfill/common/index.js +1 -1
  35. package/build/es/polyfill/dateLookup/dateTrigger/DateTrigger.js +1 -1
  36. package/build/es/polyfill/decision/Decision.js +2 -2
  37. package/build/es/polyfill/definitionList/DefinitionList.js +1 -1
  38. package/build/es/polyfill/dimmer/Dimmer.js +2 -2
  39. package/build/es/polyfill/flowNavigation/FlowNavigation.js +2 -2
  40. package/build/es/polyfill/flowNavigation/backButton/BackButton.js +1 -1
  41. package/build/es/polyfill/index.js +1 -1
  42. package/build/es/polyfill/overlayHeader/OverlayHeader.js +1 -1
  43. package/build/es/polyfill/phoneNumberInput/data/countries.js +1 -1
  44. package/build/es/polyfill/snackbar/Snackbar.js +1 -1
  45. package/build/es/polyfill/stepper/Stepper.js +1 -1
  46. package/build/es/polyfill/tile/Tile.js +1 -1
  47. package/build/main.css +1 -1
  48. package/build/styles/actionButton/ActionButton.css +1 -1
  49. package/build/styles/main.css +1 -1
  50. package/build/styles/popover/Popover.css +1 -1
  51. package/build/styles/select/Select.css +1 -1
  52. package/build/styles/snackbar/Snackbar.css +1 -1
  53. package/build/styles/stepper/Stepper.css +1 -1
  54. package/build/types/actionButton/ActionButton.d.ts +3 -0
  55. package/build/types/actionButton/ActionButton.story.d.ts +1 -1
  56. package/build/types/button/Button.story.d.ts +105 -72
  57. package/build/types/circularButton/CircularButton.d.ts +1 -1
  58. package/build/types/common/DOMOperations/DOMOperations.d.ts +2 -2
  59. package/build/types/common/DOMOperations/index.d.ts +3 -3
  60. package/build/types/common/Option/Option.d.ts +1 -1
  61. package/build/types/common/flowHeader/FlowHeader.d.ts +10 -1
  62. package/build/types/common/hooks/index.d.ts +1 -1
  63. package/build/types/common/hooks/useClientWidth/useClientWidth.d.ts +9 -8
  64. package/build/types/common/index.d.ts +1 -1
  65. package/build/types/decision/Decision.d.ts +1 -1
  66. package/build/types/definitionList/DefinitionList.d.ts +1 -1
  67. package/build/types/flowNavigation/FlowNavigation.d.ts +16 -34
  68. package/build/types/index.d.ts +2 -2
  69. package/build/types/inputs/Input.d.ts +1 -1
  70. package/build/types/inputs/TextArea.d.ts +1 -1
  71. package/build/types/listItem/ListItem.d.ts +1 -1
  72. package/build/types/listItem/ListItem.story.d.ts +1 -1
  73. package/build/types/snackbar/Snackbar.d.ts +1 -1
  74. package/build/types/stepper/Stepper.d.ts +13 -18
  75. package/build/umd/no-polyfill/main.js +1 -1
  76. package/build/umd/polyfill/main.js +1 -1
  77. package/package.json +7 -12
  78. package/scripts/generate-type-declarations.js +0 -2
  79. package/build/es/no-polyfill/common/flowHeader/index.js +0 -1
  80. package/build/es/no-polyfill/common/hooks/useClientWidth/index.js +0 -1
  81. package/build/es/no-polyfill/flowNavigation/index.js +0 -1
  82. package/build/es/no-polyfill/stepper/index.js +0 -1
  83. package/build/es/polyfill/common/flowHeader/index.js +0 -1
  84. package/build/es/polyfill/common/hooks/useClientWidth/index.js +0 -1
  85. package/build/es/polyfill/flowNavigation/index.js +0 -1
  86. package/build/es/polyfill/stepper/index.js +0 -1
  87. package/build/types/common/flowHeader/index.d.ts +0 -1
  88. package/build/types/common/hooks/useClientWidth/index.d.ts +0 -1
  89. package/build/types/flowNavigation/index.d.ts +0 -1
  90. package/build/types/stepper/index.d.ts +0 -2
  91. package/scripts/neptune-upgrader.js +0 -114
  92. package/upgrades/2021-02-v34-35.js +0 -193
  93. package/upgrades/2021-04-v35-36-typescript-support.js +0 -290
  94. package/upgrades/utils/index.js +0 -17
@@ -9,7 +9,7 @@ export interface CircularButtonProps {
9
9
  children: string;
10
10
  disabled?: boolean;
11
11
  icon: React.ReactElement<any>;
12
- onClick: (...args: any[])=>any;
12
+ onClick?: (...args: any[])=>any;
13
13
  priority?: CircularButtonPriority;
14
14
  type?: CircularButtonType;
15
15
  }
@@ -1,2 +1,2 @@
1
- export function addNoScrollBodyClass(): void;
2
- export function removeNoScrollBodyClass(): void;
1
+ export function addNoScrollClass(): void;
2
+ export function removeNoScrollClass(): void;
@@ -1,3 +1,3 @@
1
- import { addNoScrollBodyClass } from "./DOMOperations";
2
- import { removeNoScrollBodyClass } from "./DOMOperations";
3
- export { addNoScrollBodyClass, removeNoScrollBodyClass };
1
+ import { addNoScrollClass } from "./DOMOperations";
2
+ import { removeNoScrollClass } from "./DOMOperations";
3
+ export { addNoScrollClass, removeNoScrollClass };
@@ -1,6 +1,6 @@
1
1
  import { MouseEvent, HTMLAttributes, ReactNode, ElementType } from 'react';
2
2
  import { LinkProps } from '../commonProps';
3
- export interface BaseOptionProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
3
+ export interface BaseOptionProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'content'> {
4
4
  'aria-label'?: string;
5
5
  media?: ReactNode;
6
6
  name?: string;
@@ -1,2 +1,11 @@
1
+ import * as React from 'react';
2
+ import { Layout } from '../propsValues/layouts';
3
+ export interface FlowHeaderProps {
4
+ bottomContent?: React.ReactNode;
5
+ className?: string;
6
+ layout?: Layout.VERTICAL | Layout.HORIZONTAL;
7
+ leftContent?: React.ReactNode;
8
+ rightContent?: React.ReactNode;
9
+ }
10
+ declare const FlowHeader: React.ForwardRefExoticComponent<FlowHeaderProps & React.RefAttributes<HTMLDivElement>>;
1
11
  export default FlowHeader;
2
- declare const FlowHeader: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
@@ -1,4 +1,4 @@
1
- export { default as useClientWidth } from "./useClientWidth";
1
+ export { useClientWidth } from "./useClientWidth/useClientWidth";
2
2
  export { default as useConditionalListener } from "./useConditionalListener";
3
3
  export { default as useDirection } from "./useDirection";
4
4
  export { default as useHasIntersected } from "./useHasIntersected";
@@ -1,9 +1,10 @@
1
- export function useClientWidth({ ref, throttleMs }: {
2
- ref: any;
3
- throttleMs?: number | undefined;
4
- }): null[];
5
- export namespace useClientWidth {
6
- export { THROTTLE_MS };
7
- }
8
- declare const THROTTLE_MS: 100;
1
+ /// <reference types="react" />
2
+ type FlowNavigationProps = {
3
+ ref: React.RefObject<HTMLElement> | Window | undefined;
4
+ throttleMs?: number;
5
+ };
6
+ export declare const useClientWidth: {
7
+ ({ ref, throttleMs }: FlowNavigationProps): (number | null)[];
8
+ THROTTLE_MS: number;
9
+ };
9
10
  export {};
@@ -22,4 +22,4 @@ export { Variant } from "./propsValues/variant";
22
22
  export { MarkdownNodeType } from "./propsValues/markdownNodeType";
23
23
  export { FileType } from "./fileType";
24
24
  export { Key } from "./key";
25
- export { addNoScrollBodyClass, removeNoScrollBodyClass } from "./DOMOperations";
25
+ export { addNoScrollClass, removeNoScrollClass } from "./DOMOperations";
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  export interface DecisionOptions {
4
4
  description?: React.ReactNode;
5
5
  disabled?: boolean;
6
- href?: any;
6
+ href?: string;
7
7
  target?: "_self" | "_blank" | "_parent" | "_top";
8
8
  media?: {
9
9
  block: React.ReactNode;
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  export interface DefinitionListDefinitions {
4
4
  action?: {
5
5
  label: string;
6
- onClick: (...args: any[])=>any;
6
+ onClick?: (...args: any[])=>any;
7
7
  };
8
8
  title: React.ReactNode;
9
9
  value: React.ReactNode;
@@ -1,34 +1,16 @@
1
- import * as React from 'react';
2
-
3
- export interface FlowNavigationSteps {
4
- label: React.ReactNode;
5
- onClick?: (...args: any[])=>any;
6
- hoverLabel?: React.ReactNode;
7
- }
8
-
9
- export interface FlowNavigationProps {
10
- activeStep?: number;
11
- /**
12
- * An Avatar
13
- */
14
- avatar?: React.ReactElement<any>;
15
- logo?: React.ReactNode;
16
- /**
17
- * Called when the close button is clicked. If not provided the close button won't show
18
- */
19
- onClose?: (...args: any[])=>any;
20
- /**
21
- * Called when the back button is clicked. If not provided the back button won't show. The back button only shows on small screens
22
- */
23
- onGoBack?: (...args: any[])=>any;
24
- done?: boolean;
25
- /**
26
- * Steps to be displayed in stepper. If you don't need the stepper, please use OverlayHeader instead
27
- */
28
- steps: FlowNavigationSteps[];
29
- }
30
-
31
- declare const FlowNavigation: React.FC<FlowNavigationProps>;
32
-
33
- export default FlowNavigation;
34
-
1
+ import React from 'react';
2
+ import { Step } from '../stepper/Stepper';
3
+ export interface FlowNavigationProps {
4
+ activeStep?: number;
5
+ avatar?: Element;
6
+ logo?: React.ReactNode;
7
+ done?: boolean;
8
+ /** Called when the close button is clicked. If not provided the close button won't show */
9
+ onClose?: () => void;
10
+ /** Called when the back button is clicked. If not provided the back button won't show. The back button only shows on small screens */
11
+ onGoBack?: () => void;
12
+ /** Steps to be displayed in stepper. If you don't need the stepper, please use OverlayHeader instead */
13
+ steps: Step[];
14
+ }
15
+ declare const FlowNavigation: ({ activeStep, avatar, logo, done, onClose, onGoBack, steps, }: FlowNavigationProps) => JSX.Element;
16
+ export default FlowNavigation;
@@ -37,7 +37,7 @@ export { default as Drawer } from './drawer';
37
37
  export { default as DropFade } from './dropFade';
38
38
  export { default as DynamicFieldDefinitionList } from './dynamicFieldDefinitionList';
39
39
  export { default as Emphasis } from './emphasis';
40
- export { default as FlowNavigation } from './flowNavigation';
40
+ export { default as FlowNavigation } from './flowNavigation/FlowNavigation';
41
41
  export { default as Header } from './header';
42
42
  export { default as Image } from './image';
43
43
  export { default as Info } from './info';
@@ -73,7 +73,7 @@ export { default as SlidingPanel } from './slidingPanel';
73
73
  export { default as SnackbarPortal } from './snackbar/Snackbar';
74
74
  export { default as SnackbarProvider } from './snackbar/SnackbarProvider';
75
75
  export { default as StatusIcon } from './statusIcon/StatusIcon';
76
- export { default as Stepper } from './stepper';
76
+ export { default as Stepper } from './stepper/Stepper';
77
77
  export { default as Sticky } from './sticky';
78
78
  export { default as Summary } from './summary';
79
79
  export { default as Switch } from './switch';
@@ -10,4 +10,4 @@ export declare const Input: import("react").ForwardRefExoticComponent<Pick<Omit<
10
10
  }, "size" | "aria-invalid"> & {
11
11
  size?: "auto" | "sm" | "md" | "lg" | undefined;
12
12
  'aria-invalid'?: boolean | undefined;
13
- }, "size" | "form" | "slot" | "style" | "title" | "pattern" | "key" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "width" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLInputElement>>;
13
+ }, "size" | "form" | "slot" | "style" | "title" | "pattern" | "key" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "width" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -7,4 +7,4 @@ export declare const TextArea: import("react").ForwardRefExoticComponent<Pick<Om
7
7
  ref?: ((instance: HTMLTextAreaElement | null) => void) | import("react").RefObject<HTMLTextAreaElement> | null | undefined;
8
8
  }, "aria-invalid"> & {
9
9
  'aria-invalid'?: boolean | undefined;
10
- }, "form" | "slot" | "style" | "title" | "key" | "autoComplete" | "autoFocus" | "disabled" | "maxLength" | "minLength" | "name" | "placeholder" | "readOnly" | "required" | "value" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "cols" | "dirName" | "rows" | "wrap"> & import("react").RefAttributes<HTMLTextAreaElement>>;
10
+ }, "form" | "slot" | "style" | "title" | "key" | "autoComplete" | "disabled" | "maxLength" | "minLength" | "name" | "placeholder" | "readOnly" | "required" | "value" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "cols" | "dirName" | "rows" | "wrap"> & import("react").RefAttributes<HTMLTextAreaElement>>;
@@ -1,7 +1,7 @@
1
1
  import { ElementType, FC, ReactNode } from 'react';
2
2
  type ListItemProps = {
3
3
  title: ReactNode;
4
- value: string;
4
+ value: ReactNode;
5
5
  media?: ReactNode;
6
6
  action?: ReactNode;
7
7
  className?: string;
@@ -2,7 +2,7 @@
2
2
  declare const _default: {
3
3
  component: import("react").FC<{
4
4
  title: import("react").ReactNode;
5
- value: string;
5
+ value: import("react").ReactNode;
6
6
  media?: import("react").ReactNode;
7
7
  action?: import("react").ReactNode;
8
8
  className?: string | undefined;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
 
3
3
  export interface SnackbarAction {
4
4
  label: string;
5
- onClick: (...args: any[])=>any;
5
+ onClick?: (...args: any[])=>any;
6
6
  }
7
7
 
8
8
  export type SnackbarTheme = "light" | "dark";
@@ -1,18 +1,13 @@
1
- import * as React from 'react';
2
-
3
- export interface StepperSteps {
4
- label: React.ReactNode;
5
- onClick?: (...args: any[])=>any;
6
- hoverLabel?: React.ReactNode;
7
- }
8
-
9
- export interface StepperProps {
10
- steps: StepperSteps[];
11
- activeStep?: number;
12
- className?: string;
13
- }
14
-
15
- declare const Stepper: React.FC<StepperProps>;
16
-
17
- export default Stepper;
18
-
1
+ import * as React from 'react';
2
+ export interface Step {
3
+ label: React.ReactNode;
4
+ onClick?: () => void;
5
+ hoverLabel?: React.ReactNode;
6
+ }
7
+ export interface StepperProps {
8
+ steps: Step[];
9
+ activeStep?: number;
10
+ className?: string;
11
+ }
12
+ declare const Stepper: ({ steps, activeStep, className }: StepperProps) => JSX.Element | null;
13
+ export default Stepper;