@rango-dev/ui 0.1.10-next.90 → 0.1.10-next.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Alert/Alert.d.ts +3 -2
- package/dist/components/Button/Button.d.ts +3 -3
- package/dist/components/Icon/ChevronRightIcon.d.ts +3 -0
- package/dist/components/Icon/DisconnectIcon.d.ts +3 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/Spacer/Spacer.d.ts +1 -1
- package/dist/components/TextField/TextField.stories.d.ts +1 -1
- package/dist/components/Typography/Typography.d.ts +3 -2
- package/dist/containers/ConfirmWallets/ConfirmWallets.d.ts +3 -5
- package/dist/ui.cjs.development.js +643 -445
- package/dist/ui.cjs.development.js.map +1 -1
- package/dist/ui.cjs.production.min.js +1 -1
- package/dist/ui.cjs.production.min.js.map +1 -1
- package/dist/ui.esm.js +644 -448
- package/dist/ui.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Alert/Alert.tsx +40 -37
- package/src/components/BestRoute/BestRoute.tsx +28 -19
- package/src/components/BlockchainSelector/BlockchainSelector.tsx +1 -3
- package/src/components/Button/Button.stories.tsx +1 -1
- package/src/components/Button/Button.tsx +35 -23
- package/src/components/Chip/Chip.tsx +7 -4
- package/src/components/Icon/ChevronRightIcon.tsx +29 -0
- package/src/components/Icon/DisconnectIcon.tsx +31 -0
- package/src/components/Icon/HistoryIcon.tsx +12 -18
- package/src/components/Icon/RetryIcon.tsx +13 -13
- package/src/components/Icon/SettingIcon.tsx +6 -14
- package/src/components/Icon/index.ts +2 -0
- package/src/components/Icon/types.tsx +1 -1
- package/src/components/LiquiditySourceList/LiquiditySourceList.tsx +34 -10
- package/src/components/LiquiditySourcesSelector/LiquiditySourcesSelector.tsx +1 -1
- package/src/components/Radio/Radio.tsx +5 -4
- package/src/components/SelectableWalletList/SelectableWalletList.tsx +0 -1
- package/src/components/Settings/Settings.tsx +22 -6
- package/src/components/Spacer/Spacer.tsx +31 -1
- package/src/components/StepDetail/StepDetail.tsx +18 -7
- package/src/components/SwapContainer/SwapContainer.tsx +1 -1
- package/src/components/Switch/Switch.tsx +7 -5
- package/src/components/TextField/TextField.tsx +2 -1
- package/src/components/Typography/Typography.stories.tsx +4 -0
- package/src/components/Typography/Typography.tsx +20 -9
- package/src/components/Wallet/State.tsx +2 -3
- package/src/components/Wallet/Wallet.tsx +32 -5
- package/src/containers/ConfirmSwap/ConfirmSwap.tsx +0 -2
- package/src/containers/ConfirmWallets/ConfirmWallets.tsx +76 -51
- package/src/theme.ts +4 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
export interface PropTypes {
|
|
3
|
-
type
|
|
3
|
+
type?: 'primary' | 'secondary' | 'success' | 'warning' | 'error';
|
|
4
4
|
title?: string;
|
|
5
|
+
footer?: ReactNode;
|
|
5
6
|
}
|
|
6
7
|
export declare function Alert(props: PropsWithChildren<PropTypes>): JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CSSProperties } from '@stitches/react';
|
|
2
|
-
import React, { PropsWithChildren } from 'react';
|
|
3
|
-
export interface PropTypes {
|
|
2
|
+
import React, { PropsWithChildren, HTMLAttributes } from 'react';
|
|
3
|
+
export interface PropTypes extends Omit<HTMLAttributes<HTMLButtonElement>, 'prefix'> {
|
|
4
4
|
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
-
size?: 'small' | 'medium' | 'large';
|
|
5
|
+
size?: 'small' | 'medium' | 'large' | 'compact';
|
|
6
6
|
variant?: 'contained' | 'outlined' | 'ghost';
|
|
7
7
|
type?: 'primary' | 'error' | 'warning' | 'success';
|
|
8
8
|
prefix?: React.ReactNode;
|
|
@@ -19,6 +19,7 @@ export { AngleUpIcon } from './AngleUpIcon';
|
|
|
19
19
|
export { AngleDownIcon } from './AngleDownIcon';
|
|
20
20
|
export { AngleLeftIcon } from './AngleLeftIcon';
|
|
21
21
|
export { DownloadIcon } from './DownloadIcon';
|
|
22
|
+
export { ChevronRightIcon } from './ChevronRightIcon';
|
|
22
23
|
export { RetryRightIcon } from './RetryRightIcon';
|
|
23
24
|
export { RetryLeftIcon } from './RetryLeftIcon';
|
|
24
25
|
export { TryAgainIcon } from './TryAgainIcon';
|
|
@@ -30,6 +31,7 @@ export { AddWalletIcon } from './AddWalletIcon';
|
|
|
30
31
|
export { DeleteWalletIcon } from './DeleteWalletIcon';
|
|
31
32
|
export { CheckWalletIcon } from './CheckWalletIcon';
|
|
32
33
|
export { SwapWalletIcon } from './SwapWalletIcon';
|
|
34
|
+
export { DisconnectIcon } from './DisconnectIcon';
|
|
33
35
|
export { BagIcon } from './BagIcon';
|
|
34
36
|
export { TimeIcon } from './TimeIcon';
|
|
35
37
|
export { CloseIcon } from './CloseIcon';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface IconProps extends React.SVGAttributes<SVGElement> {
|
|
3
|
-
size?: 16 | 18 | 20 | 24 | 28 | 32 | 36 | 40;
|
|
3
|
+
size?: 12 | 16 | 18 | 20 | 24 | 28 | 32 | 36 | 40;
|
|
4
4
|
color?: 'primary' | 'error' | 'warning' | 'success' | 'black' | 'white';
|
|
5
5
|
}
|
|
6
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';
|
|
@@ -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" | "
|
|
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" | "prefix" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "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" | "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" | "size" | "suffix" | "disabled" | "step" | "checked" | "name" | "height" | "max" | "min" | "width" | "crossOrigin" | "value" | "accept" | "alt" | "autoComplete" | "capture" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "src"> & 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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from '@stitches/react';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
3
|
export interface PropTypes {
|
|
4
|
-
variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body1' | 'body2' | 'caption';
|
|
4
|
+
variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body1' | 'body2' | 'body3' | 'caption';
|
|
5
5
|
align?: 'center' | 'left' | 'right';
|
|
6
6
|
noWrap?: boolean;
|
|
7
7
|
mt?: 2 | 4 | 8 | 12;
|
|
@@ -10,8 +10,9 @@ export interface PropTypes {
|
|
|
10
10
|
mr?: 2 | 4 | 8 | 12;
|
|
11
11
|
className?: string;
|
|
12
12
|
style?: CSSProperties;
|
|
13
|
+
color?: string;
|
|
13
14
|
}
|
|
14
|
-
export declare function Typography({ children, className, ...props }: PropsWithChildren<PropTypes>): JSX.Element;
|
|
15
|
+
export declare function Typography({ children, className, color, ...props }: PropsWithChildren<PropTypes>): JSX.Element;
|
|
15
16
|
export declare namespace Typography {
|
|
16
17
|
var toString: () => string;
|
|
17
18
|
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import React, { PropsWithChildren } from 'react';
|
|
1
|
+
import React, { PropsWithChildren, ReactNode } from 'react';
|
|
3
2
|
import { SelectableWallet } from '../../types';
|
|
4
3
|
export interface PropTypes {
|
|
5
|
-
swap: BestRouteResponse | null;
|
|
6
|
-
fromAmount: string;
|
|
7
|
-
toAmount: string;
|
|
8
4
|
onBack: () => void;
|
|
9
5
|
onConfirm?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
10
6
|
confirmDisabled?: boolean;
|
|
@@ -14,5 +10,7 @@ export interface PropTypes {
|
|
|
14
10
|
onChange: (w: SelectableWallet) => void;
|
|
15
11
|
isExperimentalChain?: (wallet: string) => boolean;
|
|
16
12
|
handleConnectChain?: (wallet: string) => void;
|
|
13
|
+
previewInputs?: ReactNode;
|
|
14
|
+
previewRoutes?: ReactNode;
|
|
17
15
|
}
|
|
18
16
|
export declare function ConfirmWallets(props: PropsWithChildren<PropTypes>): JSX.Element;
|