@rango-dev/ui 0.28.1 → 0.28.2-next.1

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 (65) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/index.js +6 -6
  3. package/dist/index.js.map +4 -4
  4. package/dist/translations/en.d.ts.map +1 -1
  5. package/dist/translations/es.d.ts.map +1 -1
  6. package/dist/translations/fr.d.ts.map +1 -1
  7. package/dist/translations/ja.d.ts.map +1 -1
  8. package/dist/widget/ui/src/components/Alert/Alert.d.ts.map +1 -1
  9. package/dist/widget/ui/src/components/Alert/Alert.styles.d.ts +4 -4
  10. package/dist/widget/ui/src/components/Alert/Alert.types.d.ts +2 -0
  11. package/dist/widget/ui/src/components/Alert/Alert.types.d.ts.map +1 -1
  12. package/dist/widget/ui/src/components/Button/Button.d.ts +6 -6
  13. package/dist/widget/ui/src/components/Button/Button.styles.d.ts +1 -1
  14. package/dist/widget/ui/src/components/Checkbox/Checkbox.styles.d.ts.map +1 -1
  15. package/dist/widget/ui/src/components/Divider/Divider.d.ts +1 -1
  16. package/dist/widget/ui/src/components/Divider/Divider.d.ts.map +1 -1
  17. package/dist/widget/ui/src/components/Divider/Divider.styles.d.ts +2 -2
  18. package/dist/widget/ui/src/components/Icon/common.d.ts +2 -2
  19. package/dist/widget/ui/src/components/MessageBox/MessageBox.styles.d.ts +1 -1
  20. package/dist/widget/ui/src/components/Modal/Modal.d.ts.map +1 -1
  21. package/dist/widget/ui/src/components/Modal/Modal.types.d.ts +6 -1
  22. package/dist/widget/ui/src/components/Modal/Modal.types.d.ts.map +1 -1
  23. package/dist/widget/ui/src/components/RadioGroup/RadioGroup.styles.d.ts +1 -1
  24. package/dist/widget/ui/src/components/StepDetails/StepDetails.styles.d.ts +4 -4
  25. package/dist/widget/ui/src/components/SvgIcon/SvgIcon.style.d.ts +1 -1
  26. package/dist/widget/ui/src/components/Toast/Toast.Provider.d.ts.map +1 -1
  27. package/dist/widget/ui/src/components/Toast/Toast.d.ts.map +1 -1
  28. package/dist/widget/ui/src/components/Toast/Toast.stories.d.ts +4 -3
  29. package/dist/widget/ui/src/components/Toast/Toast.stories.d.ts.map +1 -1
  30. package/dist/widget/ui/src/components/Toast/Toast.styles.d.ts +4 -6
  31. package/dist/widget/ui/src/components/Toast/Toast.styles.d.ts.map +1 -1
  32. package/dist/widget/ui/src/components/Toast/Toast.types.d.ts +14 -14
  33. package/dist/widget/ui/src/components/Toast/Toast.types.d.ts.map +1 -1
  34. package/dist/widget/ui/src/components/TokenAmount/TokenAmount.styles.d.ts +1 -1
  35. package/dist/widget/ui/src/components/Typography/Typography.types.d.ts +1 -1
  36. package/dist/widget/ui/src/components/Typography/Typography.types.d.ts.map +1 -1
  37. package/dist/widget/ui/src/containers/ConnectWalletsModal/ConnectWalletsModal.d.ts.map +1 -1
  38. package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts +6 -6
  39. package/dist/widget/ui/src/containers/SwapInput/TokenSection.styles.d.ts +6 -6
  40. package/dist/widget/ui/src/icons/Autorenew.d.ts +5 -0
  41. package/dist/widget/ui/src/icons/Autorenew.d.ts.map +1 -0
  42. package/dist/widget/ui/src/icons/Exit.d.ts +5 -0
  43. package/dist/widget/ui/src/icons/Exit.d.ts.map +1 -0
  44. package/dist/widget/ui/src/icons/Swap.d.ts +5 -0
  45. package/dist/widget/ui/src/icons/Swap.d.ts.map +1 -0
  46. package/dist/widget/ui/src/icons/index.d.ts +3 -0
  47. package/dist/widget/ui/src/icons/index.d.ts.map +1 -1
  48. package/package.json +2 -2
  49. package/src/components/Alert/Alert.tsx +2 -0
  50. package/src/components/Alert/Alert.types.ts +2 -0
  51. package/src/components/Checkbox/Checkbox.styles.ts +4 -0
  52. package/src/components/Divider/Divider.tsx +2 -1
  53. package/src/components/Modal/Modal.tsx +6 -5
  54. package/src/components/Modal/Modal.types.ts +6 -1
  55. package/src/components/Toast/Toast.Provider.tsx +82 -44
  56. package/src/components/Toast/Toast.stories.tsx +18 -21
  57. package/src/components/Toast/Toast.styles.ts +74 -38
  58. package/src/components/Toast/Toast.tsx +54 -27
  59. package/src/components/Toast/Toast.types.ts +19 -17
  60. package/src/components/Typography/Typography.types.tsx +1 -1
  61. package/src/containers/ConnectWalletsModal/ConnectWalletsModal.tsx +3 -1
  62. package/src/icons/Autorenew.tsx +20 -0
  63. package/src/icons/Exit.tsx +20 -0
  64. package/src/icons/Swap.tsx +20 -0
  65. package/src/icons/index.ts +3 -0
@@ -30,7 +30,9 @@ export function ConnectWalletsModal(props: PropTypes) {
30
30
  title={i18n.t('Connect Wallets')}
31
31
  open={open}
32
32
  onClose={onClose}
33
- containerStyle={{ width: '75%', maxWidth: '30rem', height: '60%' }}>
33
+ styles={{
34
+ container: { width: '75%', maxWidth: '30rem', height: '60%' },
35
+ }}>
34
36
  <ModalContent>
35
37
  {list.map((info) => (
36
38
  <Wallet {...info} key={info.title} onClick={onSelect} />
@@ -0,0 +1,20 @@
1
+ import type { SvgIconPropsWithChildren } from '../components/SvgIcon';
2
+
3
+ import React, { createElement } from 'react';
4
+
5
+ import { SvgIcon } from '../components/SvgIcon';
6
+
7
+ function SvgAutorenew(props: SvgIconPropsWithChildren) {
8
+ return createElement(
9
+ SvgIcon,
10
+ props,
11
+ <svg viewBox="0 0 24 24">
12
+ <path
13
+ fillRule="evenodd"
14
+ d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"
15
+ fill="currentColor"
16
+ />
17
+ </svg>
18
+ );
19
+ }
20
+ export default SvgAutorenew;
@@ -0,0 +1,20 @@
1
+ import type { SvgIconPropsWithChildren } from '../components/SvgIcon';
2
+
3
+ import React, { createElement } from 'react';
4
+
5
+ import { SvgIcon } from '../components/SvgIcon';
6
+
7
+ function SvgExit(props: SvgIconPropsWithChildren) {
8
+ return createElement(
9
+ SvgIcon,
10
+ props,
11
+ <svg viewBox="0 0 24 24">
12
+ <path
13
+ fillRule="evenodd"
14
+ d="M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
15
+ fill="currentColor"
16
+ />
17
+ </svg>
18
+ );
19
+ }
20
+ export default SvgExit;
@@ -0,0 +1,20 @@
1
+ import type { SvgIconPropsWithChildren } from '../components/SvgIcon';
2
+
3
+ import React, { createElement } from 'react';
4
+
5
+ import { SvgIcon } from '../components/SvgIcon';
6
+
7
+ function SvgSwap(props: SvgIconPropsWithChildren) {
8
+ return createElement(
9
+ SvgIcon,
10
+ props,
11
+ <svg viewBox="0 0 24 24">
12
+ <path
13
+ fillRule="evenodd"
14
+ d="M6.99 11 3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"
15
+ fill="currentColor"
16
+ />
17
+ </svg>
18
+ );
19
+ }
20
+ export default SvgSwap;
@@ -1,5 +1,6 @@
1
1
  export { default as AddIcon } from './Add';
2
2
  export { default as AutoThemeIcon } from './AutoTheme';
3
+ export { default as AutorenewIcon } from './Autorenew';
3
4
  export { default as BorderRadiusIcon } from './BorderRadius';
4
5
  export { default as ChevronDownIcon } from './ChevronDown';
5
6
  export { default as ChevronLeftIcon } from './ChevronLeft';
@@ -16,6 +17,7 @@ export { default as DesktopIcon } from './Desktop';
16
17
  export { default as DoneIcon } from './Done';
17
18
  export { default as EvmCategoryIcon } from './EvmCategory';
18
19
  export { default as ErrorIcon } from './Error';
20
+ export { default as ExitIcon } from './Exit';
19
21
  export { default as ExternalLinkIcon } from './ExternalLink';
20
22
  export { default as FontIcon } from './Font';
21
23
  export { default as GasIcon } from './Gas';
@@ -41,6 +43,7 @@ export { default as RefreshIcon } from './Refresh';
41
43
  export { default as ReverseIcon } from './Reverse';
42
44
  export { default as RouteIcon } from './Route';
43
45
  export { default as SearchIcon } from './Search';
46
+ export { default as SwapIcon } from './Swap';
44
47
  export { default as TimeIcon } from './Time';
45
48
  export { default as TransactionIcon } from './Transaction';
46
49
  export { default as UtxoCategoryIcon } from './UtxoCategory';