@rango-dev/ui 0.1.10-next.87 → 0.1.10-next.90

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 (35) hide show
  1. package/dist/components/Radio/Radio.d.ts +1 -1
  2. package/dist/components/TextField/TextField.stories.d.ts +1 -1
  3. package/dist/components/TokenSelector/TokenSelector.d.ts +1 -1
  4. package/dist/components/Typography/Typography.d.ts +4 -1
  5. package/dist/containers/ConfirmSwap/ConfirmSwap.d.ts +2 -2
  6. package/dist/containers/ConfirmWallets/ConfirmWallets.d.ts +1 -1
  7. package/dist/types/index.d.ts +1 -0
  8. package/dist/types/swaps.d.ts +8 -1
  9. package/dist/types/wallet.d.ts +1 -0
  10. package/dist/ui.cjs.development.js +51 -29
  11. package/dist/ui.cjs.development.js.map +1 -1
  12. package/dist/ui.cjs.production.min.js +1 -1
  13. package/dist/ui.cjs.production.min.js.map +1 -1
  14. package/dist/ui.esm.js +51 -29
  15. package/dist/ui.esm.js.map +1 -1
  16. package/package.json +1 -1
  17. package/src/components/Button/Button.tsx +1 -0
  18. package/src/components/Checkbox/Checkbox.tsx +5 -3
  19. package/src/components/ColorPicker/ColorPicker.tsx +8 -4
  20. package/src/components/Modal/Modal.tsx +5 -1
  21. package/src/components/Radio/Radio.tsx +5 -4
  22. package/src/components/Settings/Settings.tsx +1 -1
  23. package/src/components/Switch/Switch.tsx +1 -1
  24. package/src/components/TextField/TextField.tsx +14 -4
  25. package/src/components/TokenList/TokenList.tsx +0 -1
  26. package/src/components/TokenSelector/TokenSelector.tsx +1 -1
  27. package/src/components/Typography/Typography.tsx +6 -1
  28. package/src/components/Wallet/State.tsx +0 -1
  29. package/src/components/common/FilledCircle.tsx +1 -1
  30. package/src/containers/ConfirmSwap/ConfirmSwap.tsx +16 -12
  31. package/src/containers/ConfirmWallets/ConfirmWallets.tsx +3 -3
  32. package/src/containers/SwapHistory/SwapHistory.tsx +1 -1
  33. package/src/types/index.ts +2 -0
  34. package/src/types/{swaps.tsx → swaps.ts} +8 -0
  35. package/src/types/wallet.ts +1 -0
@@ -5,7 +5,7 @@ export interface PropTypes {
5
5
  label: string;
6
6
  value: string;
7
7
  }[];
8
- defaultValue: string;
8
+ value: string;
9
9
  onChange: (value: string) => void;
10
10
  direction?: 'vertical' | 'horizontal';
11
11
  style?: CSSProperties;
@@ -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" | "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>>;
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" | "value" | "accept" | "alt" | "autoComplete" | "capture" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "multiple" | "placeholder" | "readOnly" | "required" | "src" | "defaultValue" | "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;
@@ -3,7 +3,7 @@ import { TokenWithAmount } from '../TokenList/TokenList';
3
3
  export interface PropTypes {
4
4
  list: TokenWithAmount[];
5
5
  type?: 'Source' | 'Destination';
6
- selected?: TokenWithAmount;
6
+ selected: TokenWithAmount | null;
7
7
  onChange: (token: TokenWithAmount) => void;
8
8
  hasHeader?: boolean;
9
9
  multiSelect?: boolean;
@@ -1,3 +1,4 @@
1
+ import { CSSProperties } from '@stitches/react';
1
2
  import { PropsWithChildren } from 'react';
2
3
  export interface PropTypes {
3
4
  variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body1' | 'body2' | 'caption';
@@ -7,8 +8,10 @@ export interface PropTypes {
7
8
  mb?: 2 | 4 | 8 | 12;
8
9
  ml?: 2 | 4 | 8 | 12;
9
10
  mr?: 2 | 4 | 8 | 12;
11
+ className?: string;
12
+ style?: CSSProperties;
10
13
  }
11
- export declare function Typography({ children, ...props }: PropsWithChildren<PropTypes>): JSX.Element;
14
+ export declare function Typography({ children, className, ...props }: PropsWithChildren<PropTypes>): JSX.Element;
12
15
  export declare namespace Typography {
13
16
  var toString: () => string;
14
17
  }
@@ -1,5 +1,5 @@
1
- import { BestRouteResponse } from 'rango-sdk';
2
1
  import React, { PropsWithChildren, ReactNode } from 'react';
2
+ import { BestRouteWithFee } from '../../types/swaps';
3
3
  export declare const Line: any;
4
4
  export declare const SwapperContainer: any;
5
5
  export declare const BodyError: any;
@@ -13,7 +13,7 @@ export declare const ArrowDown: any;
13
13
  export declare const UpdateIcon: any;
14
14
  export declare const StyledUpdateIcon: any;
15
15
  export interface PropTypes {
16
- bestRoute: BestRouteResponse | null;
16
+ bestRoute: BestRouteWithFee | null;
17
17
  onRefresh?: React.MouseEventHandler<SVGElement>;
18
18
  confirmButtonTitle: string;
19
19
  confirmButtonDisabled: boolean;
@@ -2,7 +2,7 @@ import { BestRouteResponse } from 'rango-sdk';
2
2
  import React, { PropsWithChildren } from 'react';
3
3
  import { SelectableWallet } from '../../types';
4
4
  export interface PropTypes {
5
- swap: BestRouteResponse;
5
+ swap: BestRouteResponse | null;
6
6
  fromAmount: string;
7
7
  toAmount: string;
8
8
  onBack: () => void;
@@ -1 +1,2 @@
1
1
  export * from './wallet';
2
+ export { BestRouteWithFee } from './swaps';
@@ -1,4 +1,4 @@
1
- import { BestRouteResponse, BlockchainValidationStatus, WalletRequiredAssets } from 'rango-sdk';
1
+ import { BestRouteResponse, BlockchainValidationStatus, SimulationResult, SwapResult, WalletRequiredAssets } from 'rango-sdk';
2
2
  export declare type SwapStatus = 'running' | 'failed' | 'success';
3
3
  export declare type MessageSeverity = 'error' | 'warning' | 'info' | 'success';
4
4
  export declare type StepStatus = 'created' | 'running' | 'failed' | 'success' | 'waitingForApproval' | 'approved';
@@ -20,3 +20,10 @@ export declare type SwapSavedSettings = {
20
20
  export declare type SimulationAssetAndAmount = WalletRequiredAssets;
21
21
  export declare type SimulationValidationStatus = BlockchainValidationStatus;
22
22
  export declare type BestRouteType = BestRouteResponse;
23
+ export declare type BestRouteWithFee = Omit<BestRouteResponse, 'result'> & {
24
+ result: Omit<SimulationResult, 'swaps'> & {
25
+ swaps: (SwapResult & {
26
+ feeInUsd?: string;
27
+ })[];
28
+ };
29
+ };
@@ -11,6 +11,7 @@ export declare type WalletInfo = {
11
11
  name: string;
12
12
  image: string;
13
13
  type: WalletType;
14
+ showOnMobile: boolean;
14
15
  };
15
16
  export interface SelectableWallet {
16
17
  chain: string;
@@ -1314,7 +1314,7 @@ CopyIcon.toString = function () {
1314
1314
  return '._icon';
1315
1315
  };
1316
1316
 
1317
- var _excluded$A = ["children"];
1317
+ var _excluded$A = ["children", "className"];
1318
1318
  var TypographyContainer = /*#__PURE__*/styled('span', {
1319
1319
  margin: 0,
1320
1320
  color: '$foreground',
@@ -1482,9 +1482,10 @@ var TypographyContainer = /*#__PURE__*/styled('span', {
1482
1482
  });
1483
1483
  function Typography(_ref) {
1484
1484
  var children = _ref.children,
1485
+ className = _ref.className,
1485
1486
  props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
1486
1487
  return React__default.createElement(TypographyContainer, Object.assign({
1487
- className: "_typography"
1488
+ className: "_typography _text " + className
1488
1489
  }, props), children);
1489
1490
  }
1490
1491
  Typography.toString = function () {
@@ -2225,7 +2226,8 @@ function Button(_ref) {
2225
2226
  align: align,
2226
2227
  ml: !!prefix,
2227
2228
  mr: !!suffix && !loading,
2228
- flexContent: flexContent
2229
+ flexContent: flexContent,
2230
+ className: "_text"
2229
2231
  }, children), loading && React__default.createElement(Spinner, {
2230
2232
  size: 16,
2231
2233
  color: props.type
@@ -2235,7 +2237,7 @@ function Button(_ref) {
2235
2237
  var FilledCircle = /*#__PURE__*/styled('span', {
2236
2238
  width: '10px',
2237
2239
  height: '10px',
2238
- backgroundColor: '$primary500',
2240
+ backgroundColor: '$primary',
2239
2241
  borderRadius: '99999px'
2240
2242
  });
2241
2243
 
@@ -2304,7 +2306,7 @@ var InputContainer = /*#__PURE__*/styled('div', {
2304
2306
  color: '$foreground',
2305
2307
  transition: 'border-color ease .3s',
2306
2308
  '&:focus-within': {
2307
- borderColor: '$primary500'
2309
+ borderColor: '$primary'
2308
2310
  },
2309
2311
  variants: {
2310
2312
  size: {
@@ -2347,7 +2349,7 @@ var InputContainer = /*#__PURE__*/styled('div', {
2347
2349
  }
2348
2350
  });
2349
2351
  var Input = /*#__PURE__*/styled('input', {
2350
- color: '$text',
2352
+ color: '$foreground',
2351
2353
  paddingLeft: '$16',
2352
2354
  paddingRight: '$16',
2353
2355
  flexGrow: 1,
@@ -2366,6 +2368,7 @@ var Input = /*#__PURE__*/styled('input', {
2366
2368
  var Label = /*#__PURE__*/styled('label', {
2367
2369
  display: 'inline-block',
2368
2370
  fontSize: '$14',
2371
+ color: '$foreground',
2369
2372
  marginBottom: '$4'
2370
2373
  });
2371
2374
  var TextField = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
@@ -2375,15 +2378,20 @@ var TextField = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
2375
2378
  size = props.size,
2376
2379
  style = props.style,
2377
2380
  inputAttributes = _objectWithoutPropertiesLoose(props, _excluded$C);
2378
- return React__default.createElement(React__default.Fragment, null, label && React__default.createElement(Label, Object.assign({}, inputAttributes.id && {
2381
+ return React__default.createElement(React__default.Fragment, null, label && React__default.createElement(Label, Object.assign({
2382
+ className: "_text"
2383
+ }, inputAttributes.id && {
2379
2384
  htmlFor: inputAttributes.id
2380
2385
  }), label), React__default.createElement(InputContainer, {
2381
2386
  disabled: inputAttributes.disabled,
2382
2387
  prefix: !!prefix,
2383
2388
  suffix: !!suffix,
2384
2389
  size: size,
2385
- style: style
2386
- }, prefix || null, React__default.createElement(Input, Object.assign({}, inputAttributes, {
2390
+ style: style,
2391
+ className: "_text"
2392
+ }, prefix || null, React__default.createElement(Input, Object.assign({
2393
+ className: "_text"
2394
+ }, inputAttributes, {
2387
2395
  spellCheck: false,
2388
2396
  ref: ref
2389
2397
  })), suffix || null));
@@ -2573,7 +2581,7 @@ var CheckboxRoot = /*#__PURE__*/styled(RadixCheckbox.Root, {
2573
2581
  width: 20,
2574
2582
  padding: 0,
2575
2583
  height: 20,
2576
- border: '1px solid',
2584
+ border: '1px solid $foreground',
2577
2585
  display: 'flex',
2578
2586
  alignItems: 'center',
2579
2587
  justifyContent: 'center',
@@ -2581,7 +2589,7 @@ var CheckboxRoot = /*#__PURE__*/styled(RadixCheckbox.Root, {
2581
2589
  backgroundColor: '$neutral-100'
2582
2590
  });
2583
2591
  var Label$1 = /*#__PURE__*/styled('label', {
2584
- color: '$text',
2592
+ color: '$foreground',
2585
2593
  fontSize: '$m',
2586
2594
  marginLeft: '$8'
2587
2595
  });
@@ -2594,8 +2602,9 @@ function Checkbox(_ref) {
2594
2602
  }, props), React__default.createElement(RadixCheckbox.Indicator, null, React__default.createElement(CheckIcon, {
2595
2603
  size: 20
2596
2604
  }))), React__default.createElement(Label$1, {
2605
+ className: "_text",
2597
2606
  htmlFor: id
2598
- }, label, " "));
2607
+ }, label));
2599
2608
  }
2600
2609
 
2601
2610
  var ChipCointainer = /*#__PURE__*/styled('div', {
@@ -2680,6 +2689,9 @@ function Modal(props) {
2680
2689
  var handleBackDropClick = function handleBackDropClick(event) {
2681
2690
  if (event.target === event.currentTarget) onClose();
2682
2691
  };
2692
+ React.useEffect(function () {
2693
+ if (open) document.body.style.overflow = 'hidden';else document.body.style.overflow = 'unset';
2694
+ }, [open]);
2683
2695
  return React__default.createElement(React__default.Fragment, null, open && reactDom.createPortal(React__default.createElement(BackDrop, {
2684
2696
  onClick: handleBackDropClick
2685
2697
  }, React__default.createElement(ModalContainer, {
@@ -2702,7 +2714,6 @@ function Modal(props) {
2702
2714
  })(exports.WalletState || (exports.WalletState = {}));
2703
2715
 
2704
2716
  var StateIconContainer = /*#__PURE__*/styled('span', {
2705
- width: '$28',
2706
2717
  display: 'flex',
2707
2718
  justifyContent: 'center',
2708
2719
  alignItems: 'center'
@@ -2901,7 +2912,7 @@ var StyledSwitchThumb = /*#__PURE__*/styled(RadixSwitch.Thumb, {
2901
2912
  willChange: 'transform',
2902
2913
  '&[data-state="checked"]': {
2903
2914
  transform: 'translateX(20px)',
2904
- backgroundColor: '$primary500'
2915
+ backgroundColor: '$primary'
2905
2916
  }
2906
2917
  });
2907
2918
  function Switch(props) {
@@ -3219,17 +3230,18 @@ var StyledIndicator = /*#__PURE__*/styled(RadioGroup.Indicator, {
3219
3230
  });
3220
3231
  var Label$2 = /*#__PURE__*/styled('label', {
3221
3232
  paddingLeft: '$8',
3222
- cursor: 'pointer'
3233
+ cursor: 'pointer',
3234
+ color: '$foreground'
3223
3235
  });
3224
3236
  function Radio(props) {
3225
- var defaultValue = props.defaultValue,
3237
+ var value = props.value,
3226
3238
  onChange = props.onChange,
3227
3239
  _props$direction = props.direction,
3228
3240
  direction = _props$direction === void 0 ? 'vertical' : _props$direction,
3229
3241
  style = props.style;
3230
3242
  return React__default.createElement(Container$3, null, React__default.createElement(StyledRoot, {
3231
3243
  onValueChange: onChange,
3232
- defaultValue: defaultValue,
3244
+ value: value,
3233
3245
  direction: direction,
3234
3246
  style: style
3235
3247
  }, props.options.map(function (option, index) {
@@ -3239,6 +3251,7 @@ function Radio(props) {
3239
3251
  value: option.value,
3240
3252
  id: option.value
3241
3253
  }, React__default.createElement(StyledIndicator, null)), React__default.createElement(Label$2, {
3254
+ className: "_text",
3242
3255
  htmlFor: option.value
3243
3256
  }, React__default.createElement(Typography, {
3244
3257
  variant: "body2"
@@ -3338,7 +3351,7 @@ function Settings(props) {
3338
3351
  }))), React__default.createElement(ThemesContainer, null, React__default.createElement(Title, {
3339
3352
  variant: "body2"
3340
3353
  }, "Theme"), React__default.createElement(Radio, {
3341
- defaultValue: selectedTheme,
3354
+ value: selectedTheme,
3342
3355
  options: [{
3343
3356
  value: 'dark',
3344
3357
  label: 'Dark'
@@ -3840,6 +3853,12 @@ var Popover = /*#__PURE__*/styled('div', {
3840
3853
  }
3841
3854
  }
3842
3855
  });
3856
+ var Label$3 = /*#__PURE__*/styled('label', {
3857
+ display: 'inline-block',
3858
+ fontSize: '$14',
3859
+ marginBottom: '$4',
3860
+ color: '$foreground'
3861
+ });
3843
3862
  function ColorPicker(_ref) {
3844
3863
  var color = _ref.color,
3845
3864
  onChangeColor = _ref.onChangeColor,
@@ -3848,9 +3867,8 @@ function ColorPicker(_ref) {
3848
3867
  var _useState = React.useState(false),
3849
3868
  displayColorPicker = _useState[0],
3850
3869
  setDisplayColorPicker = _useState[1];
3851
- return React__default.createElement(Container$5, null, React__default.createElement(Typography, {
3852
- mb: 4,
3853
- variant: "body2"
3870
+ return React__default.createElement(Container$5, null, React__default.createElement(Label$3, {
3871
+ className: "_text"
3854
3872
  }, label), React__default.createElement(Button, {
3855
3873
  variant: "outlined",
3856
3874
  prefix: React__default.createElement(Color, {
@@ -4057,15 +4075,19 @@ function ConfirmSwap(props) {
4057
4075
  onClick: onRefresh
4058
4076
  })
4059
4077
  }, React__default.createElement(MainContainer$2, null, React__default.createElement("div", null, extraMessages || null, React__default.createElement(Alerts, null, errors == null ? void 0 : errors.map(function (error, index) {
4060
- return React__default.createElement(Alert, {
4078
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement(Spacer, {
4079
+ direction: "vertical"
4080
+ }), React__default.createElement(Alert, {
4061
4081
  type: "error",
4062
4082
  key: index
4063
- }, error);
4083
+ }, error));
4064
4084
  }), warnings == null ? void 0 : warnings.map(function (warning, index) {
4065
- return React__default.createElement(Alert, {
4085
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement(Spacer, {
4086
+ direction: "vertical"
4087
+ }), React__default.createElement(Alert, {
4066
4088
  type: "warning",
4067
4089
  key: index
4068
- }, warning);
4090
+ }, warning));
4069
4091
  }))), React__default.createElement(BestRouteContainer$1, null, bestRoute == null ? void 0 : (_bestRoute$result = bestRoute.result) == null ? void 0 : _bestRoute$result.swaps.map(function (swap, index) {
4070
4092
  var _bestRoute$result2;
4071
4093
  return React__default.createElement(React.Fragment, {
@@ -4085,7 +4107,7 @@ function ConfirmSwap(props) {
4085
4107
  }, swap.swapperType, " from ", swap.from.symbol, " to", ' ', swap.to.symbol, " via ", swap.swapperId, ' '), React__default.createElement(Fee, null, React__default.createElement(GasIcon, null), React__default.createElement(Typography, {
4086
4108
  ml: 4,
4087
4109
  variant: "caption"
4088
- }, parseFloat(swap.fee[0].amount).toFixed(6), " estimated gas fee")))), React__default.createElement(Line$2, null), index + 1 === ((_bestRoute$result2 = bestRoute.result) == null ? void 0 : _bestRoute$result2.swaps.length) && React__default.createElement(ArrowDown, null), React__default.createElement(StepDetail, {
4110
+ }, "$", swap.feeInUsd, " estimated gas fee")))), React__default.createElement(Line$2, null), index + 1 === ((_bestRoute$result2 = bestRoute.result) == null ? void 0 : _bestRoute$result2.swaps.length) && React__default.createElement(ArrowDown, null), React__default.createElement(StepDetail, {
4089
4111
  logo: swap.to.logo,
4090
4112
  symbol: swap.to.symbol,
4091
4113
  chainLogo: swap.to.blockchainLogo,
@@ -4119,8 +4141,8 @@ function ConfirmWallets(props) {
4119
4141
  handleConnectChain = props.handleConnectChain,
4120
4142
  fromAmount = props.fromAmount,
4121
4143
  toAmount = props.toAmount;
4122
- var firstStep = (_swap$result = swap.result) == null ? void 0 : _swap$result.swaps[0];
4123
- var lastStep = (_swap$result2 = swap.result) == null ? void 0 : _swap$result2.swaps[((_swap$result3 = swap.result) == null ? void 0 : _swap$result3.swaps.length) - 1];
4144
+ var firstStep = swap == null ? void 0 : (_swap$result = swap.result) == null ? void 0 : _swap$result.swaps[0];
4145
+ var lastStep = swap == null ? void 0 : (_swap$result2 = swap.result) == null ? void 0 : _swap$result2.swaps[((_swap$result3 = swap.result) == null ? void 0 : _swap$result3.swaps.length) - 1];
4124
4146
  return React__default.createElement(SecondaryPage, {
4125
4147
  textField: false,
4126
4148
  title: "Confirm Swap",
@@ -4363,7 +4385,7 @@ function SwapHistory(props) {
4363
4385
  }, step.swapperType, " from ", step.fromSymbol, " to ", step.toSymbol, "via ", step.swapperId), React__default.createElement(Fee, null, React__default.createElement(GasIcon, null), React__default.createElement(Typography, {
4364
4386
  ml: 4,
4365
4387
  variant: "caption"
4366
- }, step.feeInUsd, " estimated gas fee")))), React__default.createElement("div", {
4388
+ }, "$", step.feeInUsd, " estimated gas fee")))), React__default.createElement("div", {
4367
4389
  style: {
4368
4390
  display: 'flex'
4369
4391
  }