@rango-dev/ui 0.36.1-next.1 → 0.36.1-next.3
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/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/ui.build.json +1 -1
- package/dist/widget/ui/src/components/TokenAmount/TokenAmount.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TokenAmount/TokenAmount.styles.d.ts +3 -0
- package/dist/widget/ui/src/components/TokenAmount/TokenAmount.styles.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/TokenAmount/TokenAmount.styles.ts +4 -0
- package/src/components/TokenAmount/TokenAmount.tsx +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenAmount.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TokenAmount/TokenAmount.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TokenAmount.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TokenAmount/TokenAmount.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,qBAmE3C"}
|
|
@@ -478,4 +478,7 @@ export declare const usdValueStyles: import("@stitches/react/types/styled-compon
|
|
|
478
478
|
zIndices: {};
|
|
479
479
|
transitions: {};
|
|
480
480
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
481
|
+
export declare const tooltipRootStyle: {
|
|
482
|
+
width: string;
|
|
483
|
+
};
|
|
481
484
|
//# sourceMappingURL=TokenAmount.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenAmount.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TokenAmount/TokenAmount.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAepB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAI5B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAGzB,CAAC"}
|
|
1
|
+
{"version":3,"file":"TokenAmount.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TokenAmount/TokenAmount.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAepB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAI5B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAGzB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;CAE5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/ui",
|
|
3
|
-
"version": "0.36.1-next.
|
|
3
|
+
"version": "0.36.1-next.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@radix-ui/react-select": "^2.0.0",
|
|
51
51
|
"@radix-ui/react-switch": "^1.0.1",
|
|
52
52
|
"@radix-ui/react-tooltip": "^1.0.2",
|
|
53
|
-
"@rango-dev/wallets-shared": "^0.35.
|
|
53
|
+
"@rango-dev/wallets-shared": "^0.35.2-next.0",
|
|
54
54
|
"@stitches/react": "^1.2.8",
|
|
55
55
|
"copy-to-clipboard": "^3.3.3",
|
|
56
56
|
"rango-sdk": "^0.1.49",
|
|
@@ -60,4 +60,4 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
}
|
|
63
|
-
}
|
|
63
|
+
}
|
|
@@ -12,6 +12,7 @@ import { Typography } from '../Typography';
|
|
|
12
12
|
import {
|
|
13
13
|
Container,
|
|
14
14
|
tokenAmountStyles,
|
|
15
|
+
tooltipRootStyle,
|
|
15
16
|
usdValueStyles,
|
|
16
17
|
} from './TokenAmount.styles';
|
|
17
18
|
|
|
@@ -34,6 +35,7 @@ export function TokenAmount(props: PropTypes) {
|
|
|
34
35
|
)}
|
|
35
36
|
<div>
|
|
36
37
|
<NumericTooltip
|
|
38
|
+
styles={{ root: tooltipRootStyle }}
|
|
37
39
|
content={props.price.realValue}
|
|
38
40
|
open={!props.price.realValue ? false : undefined}
|
|
39
41
|
container={props.tooltipContainer}>
|
|
@@ -64,7 +66,6 @@ export function TokenAmount(props: PropTypes) {
|
|
|
64
66
|
<Typography size="small" variant="body">
|
|
65
67
|
{`~$${props.price.usdValue}`}
|
|
66
68
|
</Typography>
|
|
67
|
-
<Divider direction="horizontal" size={4} />
|
|
68
69
|
</ValueTypography>
|
|
69
70
|
)}
|
|
70
71
|
</NumericTooltip>
|