@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.
Files changed (44) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/index.js.map +3 -3
  3. package/dist/translations/af.d.ts.map +1 -1
  4. package/dist/translations/ar.d.ts.map +1 -1
  5. package/dist/translations/bn.d.ts.map +1 -1
  6. package/dist/translations/ca.d.ts.map +1 -1
  7. package/dist/translations/da.d.ts.map +1 -1
  8. package/dist/translations/de.d.ts.map +1 -1
  9. package/dist/translations/el.d.ts.map +1 -1
  10. package/dist/translations/en.d.ts.map +1 -1
  11. package/dist/translations/es.d.ts.map +1 -1
  12. package/dist/translations/fi.d.ts.map +1 -1
  13. package/dist/translations/fil.d.ts.map +1 -1
  14. package/dist/translations/fr.d.ts.map +1 -1
  15. package/dist/translations/hi.d.ts.map +1 -1
  16. package/dist/translations/hu.d.ts.map +1 -1
  17. package/dist/translations/id.d.ts.map +1 -1
  18. package/dist/translations/it.d.ts.map +1 -1
  19. package/dist/translations/ja.d.ts.map +1 -1
  20. package/dist/translations/ko.d.ts.map +1 -1
  21. package/dist/translations/lt.d.ts.map +1 -1
  22. package/dist/translations/ms.d.ts.map +1 -1
  23. package/dist/translations/nl.d.ts.map +1 -1
  24. package/dist/translations/pl.d.ts.map +1 -1
  25. package/dist/translations/pt.d.ts.map +1 -1
  26. package/dist/translations/ru.d.ts.map +1 -1
  27. package/dist/translations/sk.d.ts.map +1 -1
  28. package/dist/translations/sr.d.ts.map +1 -1
  29. package/dist/translations/sv.d.ts.map +1 -1
  30. package/dist/translations/sw.d.ts.map +1 -1
  31. package/dist/translations/th.d.ts.map +1 -1
  32. package/dist/translations/tr.d.ts.map +1 -1
  33. package/dist/translations/uk.d.ts.map +1 -1
  34. package/dist/translations/ur.d.ts.map +1 -1
  35. package/dist/translations/vi.d.ts.map +1 -1
  36. package/dist/translations/zh-CN.d.ts.map +1 -1
  37. package/dist/translations/zh-TW.d.ts.map +1 -1
  38. package/dist/ui.build.json +1 -1
  39. package/dist/widget/ui/src/components/Modal/Modal.styles.d.ts.map +1 -1
  40. package/dist/widget/ui/src/components/StepDetails/StepDetails.d.ts.map +1 -1
  41. package/package.json +4 -4
  42. package/src/components/Modal/Modal.styles.ts +1 -0
  43. package/src/components/StepDetails/StepDetails.tsx +5 -3
  44. 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEAsDzB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEAOf,CAAC;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEAOf,CAAC;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEAatB,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEASlB,CAAC;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEAUjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StepDetails.d.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;AA8K7E,eAAO,MAAM,WAAW,oHAA6B,CAAC"}
1
+ {"version":3,"file":"StepDetails.d.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.45.1-next.9",
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.43.1-next.5",
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.83",
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
+ }
@@ -27,6 +27,7 @@ export const BackDrop = styled('div', {
27
27
  export const ModalContainer = styled('div', {
28
28
  backgroundColor: '$background',
29
29
  width: '100%',
30
+ maxHeight: '100%',
30
31
  borderRadius: '$primary',
31
32
  display: 'flex',
32
33
  flexDirection: 'column',
@@ -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 - parentElement.offsetTop;
60
+ childElement.offsetTop - HIGHT_OF_STICKY_HEADER;
59
61
  }
60
- }, [isFocused]);
62
+ }, [isFocused, childElement]);
61
63
 
62
64
  return (
63
65
  <Container
@@ -104,7 +104,7 @@ export const SymbolTooltipStyles: TooltipPropTypes['styles'] = {
104
104
  },
105
105
  root: {
106
106
  zIndex: 10,
107
- width: 'calc(100% - 18px)',
107
+ maxWidth: 'calc(100% - 18px)',
108
108
  display: 'flex',
109
109
  justifyContent: 'start',
110
110
  },