@rango-dev/ui 0.1.10-next.83 → 0.1.10-next.86

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.
@@ -1,5 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { BestRouteResponse } from 'rango-sdk';
3
+ export declare const pulse: any;
3
4
  export interface PropTypes {
4
5
  data: BestRouteResponse | null;
5
6
  totalFee: string;
@@ -8,5 +8,6 @@ export interface PropTypes {
8
8
  anchor?: 'bottom' | 'left' | 'right' | 'top';
9
9
  showClose?: boolean;
10
10
  footer?: React.ReactNode;
11
+ container: Element | null;
11
12
  }
12
13
  export declare function Drawer(props: PropTypes): JSX.Element;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IconProps } from './types';
3
+ export declare const CopyIcon: React.FC<IconProps>;
@@ -34,3 +34,4 @@ export { BagIcon } from './BagIcon';
34
34
  export { TimeIcon } from './TimeIcon';
35
35
  export { CloseIcon } from './CloseIcon';
36
36
  export { SignatureIcon } from './SignatureIcon';
37
+ export { CopyIcon } from './CopyIcon';
@@ -3,4 +3,4 @@ export interface IconProps extends React.SVGAttributes<SVGElement> {
3
3
  size?: 16 | 18 | 20 | 24 | 28 | 32 | 36 | 40;
4
4
  color?: 'primary' | 'error' | 'warning' | 'success' | 'black' | 'white';
5
5
  }
6
- export declare type Icon = 'DeleteCircleIcon' | 'CheckSquareIcon' | 'AddIcon' | 'InfoCircleIcon' | 'AddCircleIcon' | 'MinusCircleIcon' | 'CheckCircleIcon' | 'CheckIcon' | 'BanIcon' | 'WarningIcon' | 'HistoryIcon' | 'GasIcon' | 'SettingsIcon' | 'TrashIcon' | 'SearchMinusIcon' | 'SearchIcon' | 'AngleRightIcon' | 'AngleUpIcon' | 'AngleDownIcon' | 'AngleLeftIcon' | 'DownloadIcon' | 'RetryRightIcon' | 'RetryLeftIcon' | 'TryAgainIcon' | 'VerticalSwapIcon' | 'HorizontalSwapIcon' | 'RetryIcon' | 'WalletIcon' | 'AddWalletIcon' | 'DeleteWalletIcon' | 'CheckWalletIcon' | 'SwapWalletIcon' | 'BagIcon' | 'TimeIcon' | 'CloseIcon' | 'SignatureIcon';
6
+ export declare type Icon = 'DeleteCircleIcon' | 'CheckSquareIcon' | 'AddIcon' | 'InfoCircleIcon' | 'AddCircleIcon' | 'MinusCircleIcon' | 'CheckCircleIcon' | 'CheckIcon' | 'BanIcon' | 'WarningIcon' | 'HistoryIcon' | 'GasIcon' | 'SettingsIcon' | 'TrashIcon' | 'SearchMinusIcon' | 'SearchIcon' | 'AngleRightIcon' | 'AngleUpIcon' | 'AngleDownIcon' | 'AngleLeftIcon' | 'DownloadIcon' | 'RetryRightIcon' | 'RetryLeftIcon' | 'TryAgainIcon' | 'VerticalSwapIcon' | 'HorizontalSwapIcon' | 'RetryIcon' | 'WalletIcon' | 'AddWalletIcon' | 'DeleteWalletIcon' | 'CheckWalletIcon' | 'SwapWalletIcon' | 'BagIcon' | 'TimeIcon' | 'CloseIcon' | 'SignatureIcon' | 'CopyIcon';
@@ -7,4 +7,4 @@ export declare type PropTypes = {
7
7
  } & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'size'> & {
8
8
  ref?: ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined;
9
9
  };
10
- export declare const TextField: React.ForwardRefExoticComponent<Pick<React.PropsWithChildren<PropTypes>, "color" | "height" | "translate" | "width" | "label" | "prefix" | "size" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "pattern" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "onResize" | "onResizeCapture" | "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" | "suffix"> & React.RefAttributes<HTMLInputElement>>;
10
+ export declare const TextField: React.ForwardRefExoticComponent<Pick<React.PropsWithChildren<PropTypes>, "color" | "content" | "height" | "translate" | "width" | "label" | "prefix" | "size" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "pattern" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "onResize" | "onResizeCapture" | "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" | "suffix"> & React.RefAttributes<HTMLInputElement>>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { PropTypes } from './TextField';
3
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, Pick<React.PropsWithChildren<PropTypes>, "form" | "label" | "slot" | "style" | "title" | "pattern" | "type" | "children" | "list" | "onChange" | "onClick" | "size" | "prefix" | "suffix" | "disabled" | "id" | "defaultChecked" | "checked" | "name" | "color" | "height" | "translate" | "width" | "className" | "lang" | "max" | "min" | "role" | "tabIndex" | "crossOrigin" | "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" | "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" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "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" | "step" | "defaultValue" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "multiple" | "placeholder" | "readOnly" | "required" | "src" | "value" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & React.RefAttributes<HTMLInputElement>>;
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, Pick<React.PropsWithChildren<PropTypes>, "form" | "label" | "slot" | "style" | "title" | "pattern" | "type" | "children" | "list" | "onChange" | "onClick" | "size" | "prefix" | "suffix" | "disabled" | "id" | "defaultChecked" | "checked" | "name" | "color" | "content" | "className" | "height" | "lang" | "max" | "min" | "width" | "role" | "tabIndex" | "crossOrigin" | "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" | "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" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "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" | "translate" | "step" | "defaultValue" | "accept" | "alt" | "autoComplete" | "capture" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "multiple" | "placeholder" | "readOnly" | "required" | "src" | "value" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & React.RefAttributes<HTMLInputElement>>;
4
4
  export default _default;
5
5
  export declare const Main: (args: PropTypes) => JSX.Element;
6
6
  export declare const WithPrefix: (args: PropTypes) => JSX.Element;
@@ -26,3 +26,4 @@ export * from './ColorPicker';
26
26
  export * from './Radio';
27
27
  export * from './TokenList';
28
28
  export * from './common';
29
+ export * from './Drawer';
@@ -3,6 +3,9 @@ import { PendingSwap } from '../History/types';
3
3
  export declare const Line: any;
4
4
  export interface PropTypes {
5
5
  pendingSwap: PendingSwap;
6
+ onCopy: (requestId: string) => void;
6
7
  onBack: () => void;
8
+ isCopied: boolean;
9
+ onCancel: (requestId: string) => void;
7
10
  }
8
11
  export declare function SwapHistory(props: PropTypes): JSX.Element;
@@ -1283,7 +1283,38 @@ SignatureIcon.toString = function () {
1283
1283
  return '._icon';
1284
1284
  };
1285
1285
 
1286
- var _excluded$z = ["children"];
1286
+ var _excluded$z = ["size", "color"];
1287
+ var CopyIcon = function CopyIcon(_ref) {
1288
+ var _ref$size = _ref.size,
1289
+ size = _ref$size === void 0 ? 16 : _ref$size,
1290
+ color = _ref.color,
1291
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
1292
+ return React.createElement(SvgWithFillColor, Object.assign({
1293
+ width: size,
1294
+ height: size,
1295
+ viewBox: "0 0 64 64",
1296
+ color: color,
1297
+ xmlns: "http://www.w3.org/2000/svg",
1298
+ className: "_icon"
1299
+ }, props), React.createElement("g", {
1300
+ id: "Text-files"
1301
+ }, React.createElement("path", {
1302
+ d: "M53.9791489,9.1429005H50.010849c-0.0826988,0-0.1562004,0.0283995-0.2331009,0.0469999V5.0228\n\t\tC49.7777481,2.253,47.4731483,0,44.6398468,0h-34.422596C7.3839517,0,5.0793519,2.253,5.0793519,5.0228v46.8432999\n\t\tc0,2.7697983,2.3045998,5.0228004,5.1378999,5.0228004h6.0367002v2.2678986C16.253952,61.8274002,18.4702511,64,21.1954517,64\n\t\th32.783699c2.7252007,0,4.9414978-2.1725998,4.9414978-4.8432007V13.9861002\n\t\tC58.9206467,11.3155003,56.7043495,9.1429005,53.9791489,9.1429005z M7.1110516,51.8661003V5.0228\n\t\tc0-1.6487999,1.3938999-2.9909999,3.1062002-2.9909999h34.422596c1.7123032,0,3.1062012,1.3422,3.1062012,2.9909999v46.8432999\n\t\tc0,1.6487999-1.393898,2.9911003-3.1062012,2.9911003h-34.422596C8.5049515,54.8572006,7.1110516,53.5149002,7.1110516,51.8661003z\n\t\t M56.8888474,59.1567993c0,1.550602-1.3055,2.8115005-2.9096985,2.8115005h-32.783699\n\t\tc-1.6042004,0-2.9097996-1.2608986-2.9097996-2.8115005v-2.2678986h26.3541946\n\t\tc2.8333015,0,5.1379013-2.2530022,5.1379013-5.0228004V11.1275997c0.0769005,0.0186005,0.1504021,0.0469999,0.2331009,0.0469999\n\t\th3.9682999c1.6041985,0,2.9096985,1.2609005,2.9096985,2.8115005V59.1567993z"
1303
+ }), React.createElement("path", {
1304
+ d: "M38.6031494,13.2063999H16.253952c-0.5615005,0-1.0159006,0.4542999-1.0159006,1.0158005\n\t\tc0,0.5615997,0.4544001,1.0158997,1.0159006,1.0158997h22.3491974c0.5615005,0,1.0158997-0.4542999,1.0158997-1.0158997\n\t\tC39.6190491,13.6606998,39.16465,13.2063999,38.6031494,13.2063999z"
1305
+ }), React.createElement("path", {
1306
+ d: "M38.6031494,21.3334007H16.253952c-0.5615005,0-1.0159006,0.4542999-1.0159006,1.0157986\n\t\tc0,0.5615005,0.4544001,1.0159016,1.0159006,1.0159016h22.3491974c0.5615005,0,1.0158997-0.454401,1.0158997-1.0159016\n\t\tC39.6190491,21.7877007,39.16465,21.3334007,38.6031494,21.3334007z"
1307
+ }), React.createElement("path", {
1308
+ d: "M38.6031494,29.4603004H16.253952c-0.5615005,0-1.0159006,0.4543991-1.0159006,1.0158997\n\t\ts0.4544001,1.0158997,1.0159006,1.0158997h22.3491974c0.5615005,0,1.0158997-0.4543991,1.0158997-1.0158997\n\t\tS39.16465,29.4603004,38.6031494,29.4603004z"
1309
+ }), React.createElement("path", {
1310
+ d: "M28.4444485,37.5872993H16.253952c-0.5615005,0-1.0159006,0.4543991-1.0159006,1.0158997\n\t\ts0.4544001,1.0158997,1.0159006,1.0158997h12.1904964c0.5615025,0,1.0158005-0.4543991,1.0158005-1.0158997\n\t\tS29.0059509,37.5872993,28.4444485,37.5872993z"
1311
+ })));
1312
+ };
1313
+ CopyIcon.toString = function () {
1314
+ return '._icon';
1315
+ };
1316
+
1317
+ var _excluded$A = ["children"];
1287
1318
  var TypographyContainer = /*#__PURE__*/styled('span', {
1288
1319
  margin: 0,
1289
1320
  color: '$foreground',
@@ -1451,7 +1482,7 @@ var TypographyContainer = /*#__PURE__*/styled('span', {
1451
1482
  });
1452
1483
  function Typography(_ref) {
1453
1484
  var children = _ref.children,
1454
- props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
1485
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
1455
1486
  return React__default.createElement(TypographyContainer, Object.assign({
1456
1487
  className: "_typography"
1457
1488
  }, props), children);
@@ -1541,7 +1572,7 @@ function StepDetail(_ref) {
1541
1572
  }, React__default.createElement(Typography, {
1542
1573
  noWrap: true,
1543
1574
  variant: direction === 'vertical' ? 'body2' : 'h6'
1544
- }, parseFloat(amount).toFixed(2), " ", symbol), React__default.createElement(SubTitle, {
1575
+ }, amount ? parseFloat(amount).toFixed(2) : '?', " ", symbol), React__default.createElement(SubTitle, {
1545
1576
  noWrap: true,
1546
1577
  variant: "caption"
1547
1578
  }, "on ", blockchain)));
@@ -1854,7 +1885,7 @@ function BestRoute(props) {
1854
1885
  }, "No routes found")));
1855
1886
  }
1856
1887
 
1857
- var _excluded$A = ["children", "loading", "disabled", "prefix", "suffix", "align", "flexContent"];
1888
+ var _excluded$B = ["children", "loading", "disabled", "prefix", "suffix", "align", "flexContent"];
1858
1889
  var _ghost, _css, _css2, _css3, _css4;
1859
1890
  var ButtonContainer = /*#__PURE__*/styled('button', {
1860
1891
  borderRadius: '$5',
@@ -2184,7 +2215,7 @@ function Button(_ref) {
2184
2215
  suffix = _ref.suffix,
2185
2216
  align = _ref.align,
2186
2217
  flexContent = _ref.flexContent,
2187
- props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
2218
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
2188
2219
  var isDisabled = loading || disabled;
2189
2220
  return React__default.createElement(ButtonContainer, Object.assign({
2190
2221
  disabled: isDisabled
@@ -2259,7 +2290,7 @@ function BlockchainsList(props) {
2259
2290
  }));
2260
2291
  }
2261
2292
 
2262
- var _excluded$B = ["label", "prefix", "suffix", "children", "size", "style"];
2293
+ var _excluded$C = ["label", "prefix", "suffix", "children", "size", "style"];
2263
2294
  var InputContainer = /*#__PURE__*/styled('div', {
2264
2295
  backgroundColor: '$background',
2265
2296
  boxSizing: 'border-box',
@@ -2343,7 +2374,7 @@ var TextField = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
2343
2374
  suffix = props.suffix,
2344
2375
  size = props.size,
2345
2376
  style = props.style,
2346
- inputAttributes = _objectWithoutPropertiesLoose(props, _excluded$B);
2377
+ inputAttributes = _objectWithoutPropertiesLoose(props, _excluded$C);
2347
2378
  return React__default.createElement(React__default.Fragment, null, label && React__default.createElement(Label, Object.assign({}, inputAttributes.id && {
2348
2379
  htmlFor: inputAttributes.id
2349
2380
  }), label), React__default.createElement(InputContainer, {
@@ -2364,6 +2395,7 @@ var Container$1 = /*#__PURE__*/styled('div', {
2364
2395
  height: '100%',
2365
2396
  width: '100%',
2366
2397
  padding: '$12 0',
2398
+ position: 'relative',
2367
2399
  '@lg': {
2368
2400
  padding: '$16 0'
2369
2401
  }
@@ -2531,7 +2563,7 @@ function BlockchainSelector(props) {
2531
2563
  });
2532
2564
  }
2533
2565
 
2534
- var _excluded$C = ["label", "id"];
2566
+ var _excluded$D = ["label", "id"];
2535
2567
  var CheckboxContainer = /*#__PURE__*/styled('div', {
2536
2568
  display: 'flex',
2537
2569
  alignItems: 'center'
@@ -2556,7 +2588,7 @@ var Label$1 = /*#__PURE__*/styled('label', {
2556
2588
  function Checkbox(_ref) {
2557
2589
  var label = _ref.label,
2558
2590
  id = _ref.id,
2559
- props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
2591
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
2560
2592
  return React__default.createElement(CheckboxContainer, null, React__default.createElement(CheckboxRoot, Object.assign({
2561
2593
  id: id
2562
2594
  }, props), React__default.createElement(RadixCheckbox.Indicator, null, React__default.createElement(CheckIcon, {
@@ -3355,7 +3387,8 @@ var MainContainer$1 = /*#__PURE__*/styled('div', {
3355
3387
  flexDirection: 'column',
3356
3388
  alignItems: 'end',
3357
3389
  padding: '$16 $24',
3358
- boxSizing: 'border-box'
3390
+ boxSizing: 'border-box',
3391
+ position: 'relative'
3359
3392
  });
3360
3393
  var ContentContainer$3 = /*#__PURE__*/styled('div', {
3361
3394
  width: '100%'
@@ -3364,7 +3397,8 @@ function SwapContainer(props) {
3364
3397
  var children = props.children,
3365
3398
  style = props.style;
3366
3399
  return React__default.createElement(MainContainer$1, {
3367
- style: style
3400
+ style: style,
3401
+ id: "swap-box"
3368
3402
  }, React__default.createElement(ContentContainer$3, null, children));
3369
3403
  }
3370
3404
 
@@ -3464,10 +3498,10 @@ function SwapDetail(_ref) {
3464
3498
  blockchain: firstStep.fromBlockchain,
3465
3499
  amount: swap.inputAmount
3466
3500
  }), React__default.createElement(Arrow, null, React__default.createElement(Dot$1, null), React__default.createElement(Line$1, null), React__default.createElement(ArrowRight$1, null)), React__default.createElement(StepDetail, {
3467
- logo: lastStep.fromLogo,
3468
- symbol: lastStep.fromSymbol,
3469
- chainLogo: lastStep.fromBlockchainLogo,
3470
- blockchain: lastStep.fromBlockchain,
3501
+ logo: lastStep.toLogo,
3502
+ symbol: lastStep.toSymbol,
3503
+ chainLogo: lastStep.toBlockchainLogo,
3504
+ blockchain: lastStep.toBlockchain,
3471
3505
  amount: lastStep.outputAmount
3472
3506
  })))), React__default.createElement(StatusContainer, null, status === 'running' ? React__default.createElement(TryAgainIcon, {
3473
3507
  size: 16
@@ -3508,8 +3542,8 @@ function VirtualizedList(props) {
3508
3542
  return size;
3509
3543
  },
3510
3544
  itemCount: itemCount,
3511
- height: height,
3512
- width: width,
3545
+ height: height || 0,
3546
+ width: width || 0,
3513
3547
  onItemsRendered: onItemsRendered
3514
3548
  }, function (_ref3) {
3515
3549
  var index = _ref3.index,
@@ -3573,7 +3607,7 @@ function TokenItem(props) {
3573
3607
  }, token.name))));
3574
3608
  }
3575
3609
 
3576
- var _excluded$D = ["style"];
3610
+ var _excluded$E = ["style"];
3577
3611
  var PAGE_SIZE = 20;
3578
3612
  function TokenList(props) {
3579
3613
  var list = props.list,
@@ -3613,7 +3647,7 @@ function TokenList(props) {
3613
3647
  }, [tokens.length]);
3614
3648
  var innerElementType = React.forwardRef(function (_ref, ref) {
3615
3649
  var style = _ref.style,
3616
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$D);
3650
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$E);
3617
3651
  return React__default.createElement("div", Object.assign({
3618
3652
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3619
3653
  ref: ref,
@@ -3844,6 +3878,98 @@ function ColorPicker(_ref) {
3844
3878
  })));
3845
3879
  }
3846
3880
 
3881
+ var BackDrop$1 = /*#__PURE__*/styled('div', {
3882
+ position: 'absolute',
3883
+ top: '0',
3884
+ left: '0',
3885
+ width: '100%',
3886
+ height: '100%',
3887
+ zIndex: 9999999,
3888
+ backgroundColor: 'rgba(0,0,0,.1)',
3889
+ borderRadius: '$10'
3890
+ });
3891
+ var DrawerContainer = /*#__PURE__*/styled('div', {
3892
+ position: 'absolute',
3893
+ boxShadow: '$s',
3894
+ background: '$background',
3895
+ padding: '$20',
3896
+ display: 'flex',
3897
+ flexDirection: 'column',
3898
+ justifyContent: 'space-between',
3899
+ zIndex: 9999999,
3900
+ borderRadius: '$10',
3901
+ variants: {
3902
+ anchor: {
3903
+ left: {
3904
+ top: 0,
3905
+ left: 0,
3906
+ height: '100%',
3907
+ minWidth: '300px',
3908
+ maxWidth: '90%'
3909
+ },
3910
+ right: {
3911
+ top: 0,
3912
+ right: 0,
3913
+ height: '100%',
3914
+ minWidth: '300px',
3915
+ maxWidth: '90%'
3916
+ },
3917
+ bottom: {
3918
+ bottom: 0,
3919
+ width: '100%',
3920
+ maxHeight: '90%'
3921
+ },
3922
+ top: {
3923
+ top: 0,
3924
+ width: '100%',
3925
+ maxHeight: '90%'
3926
+ }
3927
+ }
3928
+ }
3929
+ });
3930
+ var DrawerHeader = /*#__PURE__*/styled('div', {
3931
+ display: 'flex',
3932
+ justifyContent: 'space-between',
3933
+ alignItems: 'center',
3934
+ position: 'relative',
3935
+ marginBottom: '$16'
3936
+ });
3937
+ var Body = /*#__PURE__*/styled('div', {
3938
+ overflowY: 'auto',
3939
+ height: '100%'
3940
+ });
3941
+ var Footer = /*#__PURE__*/styled('footer', {
3942
+ width: '100%',
3943
+ marginTop: '$28'
3944
+ });
3945
+ function Drawer(props) {
3946
+ var title = props.title,
3947
+ content = props.content,
3948
+ open = props.open,
3949
+ onClose = props.onClose,
3950
+ containerStyle = props.containerStyle,
3951
+ _props$anchor = props.anchor,
3952
+ anchor = _props$anchor === void 0 ? 'bottom' : _props$anchor,
3953
+ _props$showClose = props.showClose,
3954
+ showClose = _props$showClose === void 0 ? false : _props$showClose,
3955
+ footer = props.footer,
3956
+ container = props.container;
3957
+ var handleBackDropClick = function handleBackDropClick(event) {
3958
+ if (event.target === event.currentTarget) onClose();
3959
+ };
3960
+ return React__default.createElement(React__default.Fragment, null, open && container && reactDom.createPortal(React__default.createElement(BackDrop$1, {
3961
+ onClick: handleBackDropClick
3962
+ }, React__default.createElement(DrawerContainer, {
3963
+ anchor: anchor,
3964
+ style: containerStyle
3965
+ }, React__default.createElement(DrawerHeader, null, React__default.createElement(Typography, {
3966
+ variant: "h4"
3967
+ }, title), showClose && React__default.createElement(CloseIcon, {
3968
+ size: 24,
3969
+ onClick: onClose
3970
+ })), React__default.createElement(Body, null, content), React__default.createElement(Footer, null, footer))), container));
3971
+ }
3972
+
3847
3973
  var MainContainer$2 = /*#__PURE__*/styled('div', {
3848
3974
  overflow: 'hidden'
3849
3975
  });
@@ -3870,7 +3996,7 @@ var SwapperLogo$1 = /*#__PURE__*/styled('img', {
3870
3996
  var RelativeContainer$1 = /*#__PURE__*/styled('div', {
3871
3997
  position: 'relative'
3872
3998
  });
3873
- var Footer = /*#__PURE__*/styled('div', {
3999
+ var Footer$1 = /*#__PURE__*/styled('div', {
3874
4000
  display: 'flex',
3875
4001
  alignItems: 'center'
3876
4002
  });
@@ -3918,7 +4044,7 @@ function ConfirmSwap(props) {
3918
4044
  textField: false,
3919
4045
  title: "Swap",
3920
4046
  onBack: onBack,
3921
- Footer: React__default.createElement(Footer, null, React__default.createElement(Button, {
4047
+ Footer: React__default.createElement(Footer$1, null, React__default.createElement(Button, {
3922
4048
  type: "primary",
3923
4049
  fullWidth: true,
3924
4050
  loading: loading,
@@ -3969,7 +4095,7 @@ function ConfirmSwap(props) {
3969
4095
  }))));
3970
4096
  }
3971
4097
 
3972
- var Footer$1 = /*#__PURE__*/styled('div', {
4098
+ var Footer$2 = /*#__PURE__*/styled('div', {
3973
4099
  display: 'flex',
3974
4100
  alignItems: 'center'
3975
4101
  });
@@ -3999,7 +4125,7 @@ function ConfirmWallets(props) {
3999
4125
  textField: false,
4000
4126
  title: "Confirm Swap",
4001
4127
  onBack: onBack,
4002
- Footer: React__default.createElement(Footer$1, null, React__default.createElement(ConfirmButton, {
4128
+ Footer: React__default.createElement(Footer$2, null, React__default.createElement(ConfirmButton, {
4003
4129
  fullWidth: true,
4004
4130
  loading: loading,
4005
4131
  type: "primary",
@@ -4073,7 +4199,8 @@ var filteredHistory = function filteredHistory(list, searchedFor) {
4073
4199
  };
4074
4200
  var Group = /*#__PURE__*/styled('div', {
4075
4201
  marginBottom: '$24',
4076
- paddingRight: '$8'
4202
+ paddingRight: '$8',
4203
+ maxHeight: '600px'
4077
4204
  });
4078
4205
  var GroupTitle = /*#__PURE__*/styled(Typography, {
4079
4206
  color: '$neutrals500'
@@ -4106,7 +4233,7 @@ function History(_ref) {
4106
4233
  onBack: onBack,
4107
4234
  textField: true,
4108
4235
  textFieldPlaceholder: "Search By Blockchain Or Token",
4109
- title: "History"
4236
+ title: "Swaps"
4110
4237
  }, function (searchedFor) {
4111
4238
  var filterSwaps = filteredHistory(list, searchedFor);
4112
4239
  return filterSwaps.length ? React__default.createElement(SwapsGroup, {
@@ -4143,20 +4270,84 @@ var Error = /*#__PURE__*/styled(Description, {
4143
4270
  });
4144
4271
  var Line$3 = /*#__PURE__*/styled('div', {
4145
4272
  width: '0',
4273
+ minHeight: '$16',
4146
4274
  marginLeft: '$12',
4147
4275
  border: '1px dashed $foreground',
4148
4276
  borderRadius: 'inherit'
4149
4277
  });
4278
+ var RequestIdContainer = /*#__PURE__*/styled('div', {
4279
+ cursor: 'pointer',
4280
+ backgroundColor: '$neutrals200',
4281
+ padding: '$4',
4282
+ display: 'flex',
4283
+ justifyContent: 'center',
4284
+ alignItems: 'center',
4285
+ borderRadius: '$5',
4286
+ marginBottom: '$16'
4287
+ });
4288
+ var RequestId = /*#__PURE__*/styled(Typography, {
4289
+ color: '$warning500'
4290
+ });
4291
+ var CancelButtonContainer = /*#__PURE__*/styled('div', {
4292
+ display: 'flex',
4293
+ justifyContent: 'center',
4294
+ alignItems: 'center'
4295
+ });
4296
+ var StepContainer$1 = /*#__PURE__*/styled('div', {
4297
+ variants: {
4298
+ hasNotStarted: {
4299
+ "true": {
4300
+ filter: 'grayscale(100%)'
4301
+ }
4302
+ },
4303
+ isRunning: {
4304
+ "true": {
4305
+ animation: pulse + " 2s ease-in-out infinite"
4306
+ }
4307
+ }
4308
+ }
4309
+ });
4150
4310
  function SwapHistory(props) {
4151
4311
  var pendingSwap = props.pendingSwap,
4152
- onBack = props.onBack;
4312
+ onBack = props.onBack,
4313
+ onCopy = props.onCopy,
4314
+ isCopied = props.isCopied,
4315
+ onCancel = props.onCancel;
4316
+ var _useState = React.useState(false),
4317
+ showDrawer = _useState[0],
4318
+ setShowDrawer = _useState[1];
4153
4319
  return React__default.createElement(SecondaryPage, {
4154
- title: "History",
4320
+ title: "Swap Details",
4155
4321
  textField: false,
4156
4322
  onBack: onBack
4157
- }, React__default.createElement(React__default.Fragment, null, pendingSwap == null ? void 0 : pendingSwap.steps.map(function (step, index) {
4158
- return React__default.createElement(React.Fragment, {
4159
- key: index
4323
+ }, React__default.createElement("div", {
4324
+ style: {
4325
+ overflow: 'hidden'
4326
+ }
4327
+ }, React__default.createElement("div", null, React__default.createElement(Typography, {
4328
+ variant: "body1"
4329
+ }, " request ID :"), React__default.createElement(RequestIdContainer, {
4330
+ onClick: onCopy.bind(null, pendingSwap == null ? void 0 : pendingSwap.requestId)
4331
+ }, React__default.createElement(RequestId, {
4332
+ variant: "body1"
4333
+ }, pendingSwap == null ? void 0 : pendingSwap.requestId), React__default.createElement(Spacer, {
4334
+ size: 12
4335
+ }), isCopied ? React__default.createElement(CheckSquareIcon, {
4336
+ color: "success",
4337
+ size: 18
4338
+ }) : React__default.createElement(CopyIcon, {
4339
+ color: "warning",
4340
+ size: 18
4341
+ }))), React__default.createElement("div", {
4342
+ style: {
4343
+ overflow: 'auto',
4344
+ position: 'relative'
4345
+ }
4346
+ }, pendingSwap == null ? void 0 : pendingSwap.steps.map(function (step, index) {
4347
+ return React__default.createElement(StepContainer$1, {
4348
+ key: index,
4349
+ hasNotStarted: step.status === 'created',
4350
+ isRunning: step.status != 'failed' && step.status != 'success' && step.status != 'created'
4160
4351
  }, index === 0 && React__default.createElement(RelativeContainer$1, null, React__default.createElement(StepDetail, {
4161
4352
  logo: step.fromLogo,
4162
4353
  symbol: step.fromSymbol,
@@ -4200,7 +4391,46 @@ function SwapHistory(props) {
4200
4391
  blockchain: step.toBlockchain,
4201
4392
  amount: step.outputAmount
4202
4393
  }));
4203
- })));
4394
+ }), (pendingSwap == null ? void 0 : pendingSwap.status) === 'running' && React__default.createElement(CancelButtonContainer, null, React__default.createElement(Button, {
4395
+ variant: "contained",
4396
+ type: "error",
4397
+ onClick: setShowDrawer.bind(null, true)
4398
+ }, "Cancel")))), React__default.createElement(Drawer, {
4399
+ onClose: setShowDrawer.bind(null, false),
4400
+ open: showDrawer,
4401
+ showClose: true,
4402
+ anchor: "bottom",
4403
+ title: "Cancel Progress",
4404
+ content: React__default.createElement(React__default.Fragment, null, React__default.createElement(Alert, {
4405
+ type: "warning"
4406
+ }, React__default.createElement(Typography, {
4407
+ variant: "body2"
4408
+ }, React__default.createElement("p", null, "Warning: Rango ", React__default.createElement("u", null, "neither reverts"), " your transaction", React__default.createElement("u", null, "nor refunds"), " you if you've already signed and sent a transaction to the blockchain since it's out of Rango's control. Beware that \"Cancel\" only stops next steps from being executed."), React__default.createElement(Spacer, {
4409
+ size: 12,
4410
+ direction: "vertical"
4411
+ }), React__default.createElement("p", null, "If you have already signed your transaction to blockchain, you should wait for that to complete or rollback")))),
4412
+ footer: React__default.createElement("div", {
4413
+ style: {
4414
+ display: 'flex',
4415
+ justifyContent: 'center',
4416
+ alignItems: 'center'
4417
+ }
4418
+ }, React__default.createElement(Button, {
4419
+ variant: "contained",
4420
+ type: "success",
4421
+ onClick: setShowDrawer.bind(null, false)
4422
+ }, "Skip"), React__default.createElement(Spacer, {
4423
+ size: 16
4424
+ }), React__default.createElement(Button, {
4425
+ variant: "contained",
4426
+ type: "error",
4427
+ onClick: function onClick() {
4428
+ onCancel(pendingSwap.requestId);
4429
+ setShowDrawer(false);
4430
+ }
4431
+ }, "Cancel progress")),
4432
+ container: document.getElementById('swap-box')
4433
+ }));
4204
4434
  }
4205
4435
 
4206
4436
  exports.AddCircleIcon = AddCircleIcon;
@@ -4227,9 +4457,11 @@ exports.ColorPicker = ColorPicker;
4227
4457
  exports.ConfirmSwap = ConfirmSwap;
4228
4458
  exports.ConfirmWallets = ConfirmWallets;
4229
4459
  exports.ConnectWalletsModal = ConnectWalletsModal;
4460
+ exports.CopyIcon = CopyIcon;
4230
4461
  exports.DeleteCircleIcon = DeleteCircleIcon;
4231
4462
  exports.DeleteWalletIcon = DeleteWalletIcon;
4232
4463
  exports.DownloadIcon = DownloadIcon;
4464
+ exports.Drawer = Drawer;
4233
4465
  exports.FilledCircle = FilledCircle;
4234
4466
  exports.GasIcon = GasIcon;
4235
4467
  exports.History = History;