@rango-dev/ui 0.45.1-next.9 → 0.46.0
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/translations/af.d.ts.map +1 -1
- package/dist/translations/ar.d.ts.map +1 -1
- package/dist/translations/bn.d.ts.map +1 -1
- package/dist/translations/ca.d.ts.map +1 -1
- package/dist/translations/da.d.ts.map +1 -1
- package/dist/translations/de.d.ts.map +1 -1
- package/dist/translations/el.d.ts.map +1 -1
- package/dist/translations/en.d.ts.map +1 -1
- package/dist/translations/es.d.ts.map +1 -1
- package/dist/translations/fi.d.ts.map +1 -1
- package/dist/translations/fil.d.ts.map +1 -1
- package/dist/translations/fr.d.ts.map +1 -1
- package/dist/translations/hi.d.ts.map +1 -1
- package/dist/translations/hu.d.ts.map +1 -1
- package/dist/translations/id.d.ts.map +1 -1
- package/dist/translations/it.d.ts.map +1 -1
- package/dist/translations/ja.d.ts.map +1 -1
- package/dist/translations/ko.d.ts.map +1 -1
- package/dist/translations/lt.d.ts.map +1 -1
- package/dist/translations/ms.d.ts.map +1 -1
- package/dist/translations/nl.d.ts.map +1 -1
- package/dist/translations/pl.d.ts.map +1 -1
- package/dist/translations/pt.d.ts.map +1 -1
- package/dist/translations/ru.d.ts.map +1 -1
- package/dist/translations/sk.d.ts.map +1 -1
- package/dist/translations/sr.d.ts.map +1 -1
- package/dist/translations/sv.d.ts.map +1 -1
- package/dist/translations/sw.d.ts.map +1 -1
- package/dist/translations/th.d.ts.map +1 -1
- package/dist/translations/tr.d.ts.map +1 -1
- package/dist/translations/uk.d.ts.map +1 -1
- package/dist/translations/ur.d.ts.map +1 -1
- package/dist/translations/vi.d.ts.map +1 -1
- package/dist/translations/zh-CN.d.ts.map +1 -1
- package/dist/translations/zh-TW.d.ts.map +1 -1
- package/dist/ui.build.json +1 -1
- package/dist/widget/ui/src/components/Modal/Modal.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/StepDetails/StepDetails.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/components/Modal/Modal.styles.ts +1 -0
- package/src/components/StepDetails/StepDetails.tsx +5 -3
- package/src/containers/SwapInput/TokenSection.styles.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Modal/Modal.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEAqBnB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Modal.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Modal/Modal.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEAqBnB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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.ts","sourceRoot":"","sources":["../../../../../../src/components/StepDetails/StepDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG7E,OAAO,KAAwD,MAAM,OAAO,CAAC;AAgL7E,eAAO,MAAM,WAAW,oHAA6B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
"@radix-ui/react-select": "^2.0.0",
|
|
54
54
|
"@radix-ui/react-switch": "^1.0.1",
|
|
55
55
|
"@radix-ui/react-tooltip": "^1.0.2",
|
|
56
|
-
"@rango-dev/wallets-shared": "^0.
|
|
56
|
+
"@rango-dev/wallets-shared": "^0.44.0",
|
|
57
57
|
"@stitches/react": "^1.2.8",
|
|
58
58
|
"copy-to-clipboard": "^3.3.3",
|
|
59
|
-
"rango-types": "^0.1.
|
|
59
|
+
"rango-types": "^0.1.84",
|
|
60
60
|
"react-virtuoso": "^4.6.2"
|
|
61
61
|
},
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
}
|
|
65
|
-
}
|
|
65
|
+
}
|
|
@@ -24,6 +24,8 @@ import {
|
|
|
24
24
|
tokensStyles,
|
|
25
25
|
} from './StepDetails.styles.js';
|
|
26
26
|
|
|
27
|
+
const HIGHT_OF_STICKY_HEADER = 45;
|
|
28
|
+
|
|
27
29
|
const StepDetailsComponent = forwardRef<HTMLDivElement, StepDetailsProps>(
|
|
28
30
|
(props, parentRef) => {
|
|
29
31
|
const {
|
|
@@ -38,6 +40,7 @@ const StepDetailsComponent = forwardRef<HTMLDivElement, StepDetailsProps>(
|
|
|
38
40
|
|
|
39
41
|
const { from, to, swapper } = step;
|
|
40
42
|
const containerRef = useRef<HTMLDivElement>(null);
|
|
43
|
+
const childElement = containerRef.current;
|
|
41
44
|
const isCompleted = state === 'completed' || state === 'error';
|
|
42
45
|
const swappers: InternalSwap[] = step.internalSwaps?.length
|
|
43
46
|
? step.internalSwaps
|
|
@@ -52,12 +55,11 @@ const StepDetailsComponent = forwardRef<HTMLDivElement, StepDetailsProps>(
|
|
|
52
55
|
useEffect(() => {
|
|
53
56
|
const parentElement = (parentRef as React.RefObject<HTMLDivElement>)
|
|
54
57
|
?.current;
|
|
55
|
-
const childElement = containerRef.current;
|
|
56
58
|
if (isFocused && childElement && parentElement) {
|
|
57
59
|
parentElement.scrollTop =
|
|
58
|
-
childElement.offsetTop -
|
|
60
|
+
childElement.offsetTop - HIGHT_OF_STICKY_HEADER;
|
|
59
61
|
}
|
|
60
|
-
}, [isFocused]);
|
|
62
|
+
}, [isFocused, childElement]);
|
|
61
63
|
|
|
62
64
|
return (
|
|
63
65
|
<Container
|