@reown/appkit-ui-react-native 0.0.0-develop-20241121145434 → 0.0.0-develop-20250117202414

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 (205) hide show
  1. package/lib/commonjs/assets/svg/RecycleHorizontal.js +21 -0
  2. package/lib/commonjs/assets/svg/RecycleHorizontal.js.map +1 -0
  3. package/lib/commonjs/components/wui-icon/index.js +2 -0
  4. package/lib/commonjs/components/wui-icon/index.js.map +1 -1
  5. package/lib/commonjs/components/wui-pressable/index.js +68 -0
  6. package/lib/commonjs/components/wui-pressable/index.js.map +1 -0
  7. package/lib/commonjs/components/wui-shimmer/index.js +5 -1
  8. package/lib/commonjs/components/wui-shimmer/index.js.map +1 -1
  9. package/lib/commonjs/components/wui-text/index.js +2 -2
  10. package/lib/commonjs/components/wui-text/index.js.map +1 -1
  11. package/lib/commonjs/composites/wui-button/index.js +2 -1
  12. package/lib/commonjs/composites/wui-button/index.js.map +1 -1
  13. package/lib/commonjs/composites/wui-button/styles.js +3 -3
  14. package/lib/commonjs/composites/wui-button/styles.js.map +1 -1
  15. package/lib/commonjs/composites/wui-card-select/index.js +4 -2
  16. package/lib/commonjs/composites/wui-card-select/index.js.map +1 -1
  17. package/lib/commonjs/composites/wui-input-text/index.js +5 -4
  18. package/lib/commonjs/composites/wui-input-text/index.js.map +1 -1
  19. package/lib/commonjs/composites/wui-list-token/index.js +29 -9
  20. package/lib/commonjs/composites/wui-list-token/index.js.map +1 -1
  21. package/lib/commonjs/composites/wui-list-token/styles.js +3 -0
  22. package/lib/commonjs/composites/wui-list-token/styles.js.map +1 -1
  23. package/lib/commonjs/composites/wui-list-wallet/index.js +2 -3
  24. package/lib/commonjs/composites/wui-list-wallet/index.js.map +1 -1
  25. package/lib/commonjs/composites/wui-network-button/index.js +4 -2
  26. package/lib/commonjs/composites/wui-network-button/index.js.map +1 -1
  27. package/lib/commonjs/composites/wui-search-bar/index.js +2 -4
  28. package/lib/commonjs/composites/wui-search-bar/index.js.map +1 -1
  29. package/lib/commonjs/composites/wui-snackbar/index.js +6 -2
  30. package/lib/commonjs/composites/wui-snackbar/index.js.map +1 -1
  31. package/lib/commonjs/composites/wui-toggle/index.js +65 -0
  32. package/lib/commonjs/composites/wui-toggle/index.js.map +1 -0
  33. package/lib/commonjs/composites/wui-toggle/styles.js +30 -0
  34. package/lib/commonjs/composites/wui-toggle/styles.js.map +1 -0
  35. package/lib/commonjs/composites/wui-token-button/index.js +21 -11
  36. package/lib/commonjs/composites/wui-token-button/index.js.map +1 -1
  37. package/lib/commonjs/composites/wui-token-button/styles.js +4 -0
  38. package/lib/commonjs/composites/wui-token-button/styles.js.map +1 -1
  39. package/lib/commonjs/context/ThemeContext.js +41 -0
  40. package/lib/commonjs/context/ThemeContext.js.map +1 -0
  41. package/lib/commonjs/hooks/useTheme.js +5 -7
  42. package/lib/commonjs/hooks/useTheme.js.map +1 -1
  43. package/lib/commonjs/index.js +27 -0
  44. package/lib/commonjs/index.js.map +1 -1
  45. package/lib/commonjs/layout/wui-flex/index.js +3 -2
  46. package/lib/commonjs/layout/wui-flex/index.js.map +1 -1
  47. package/lib/commonjs/layout/wui-separator/index.js +4 -4
  48. package/lib/commonjs/layout/wui-separator/index.js.map +1 -1
  49. package/lib/commonjs/utils/ThemeUtil.js +18 -1
  50. package/lib/commonjs/utils/ThemeUtil.js.map +1 -1
  51. package/lib/commonjs/utils/TransactionUtil.js +56 -45
  52. package/lib/commonjs/utils/TransactionUtil.js.map +1 -1
  53. package/lib/module/assets/svg/RecycleHorizontal.js +13 -0
  54. package/lib/module/assets/svg/RecycleHorizontal.js.map +1 -0
  55. package/lib/module/components/wui-icon/index.js +2 -0
  56. package/lib/module/components/wui-icon/index.js.map +1 -1
  57. package/lib/module/components/wui-pressable/index.js +62 -0
  58. package/lib/module/components/wui-pressable/index.js.map +1 -0
  59. package/lib/module/components/wui-shimmer/index.js +6 -2
  60. package/lib/module/components/wui-shimmer/index.js.map +1 -1
  61. package/lib/module/components/wui-text/index.js +2 -2
  62. package/lib/module/components/wui-text/index.js.map +1 -1
  63. package/lib/module/composites/wui-button/index.js +2 -1
  64. package/lib/module/composites/wui-button/index.js.map +1 -1
  65. package/lib/module/composites/wui-button/styles.js +3 -3
  66. package/lib/module/composites/wui-button/styles.js.map +1 -1
  67. package/lib/module/composites/wui-card-select/index.js +4 -2
  68. package/lib/module/composites/wui-card-select/index.js.map +1 -1
  69. package/lib/module/composites/wui-input-text/index.js +5 -4
  70. package/lib/module/composites/wui-input-text/index.js.map +1 -1
  71. package/lib/module/composites/wui-list-token/index.js +27 -8
  72. package/lib/module/composites/wui-list-token/index.js.map +1 -1
  73. package/lib/module/composites/wui-list-token/styles.js +3 -0
  74. package/lib/module/composites/wui-list-token/styles.js.map +1 -1
  75. package/lib/module/composites/wui-list-wallet/index.js +3 -4
  76. package/lib/module/composites/wui-list-wallet/index.js.map +1 -1
  77. package/lib/module/composites/wui-network-button/index.js +4 -2
  78. package/lib/module/composites/wui-network-button/index.js.map +1 -1
  79. package/lib/module/composites/wui-search-bar/index.js +2 -4
  80. package/lib/module/composites/wui-search-bar/index.js.map +1 -1
  81. package/lib/module/composites/wui-snackbar/index.js +6 -2
  82. package/lib/module/composites/wui-snackbar/index.js.map +1 -1
  83. package/lib/module/composites/wui-toggle/index.js +58 -0
  84. package/lib/module/composites/wui-toggle/index.js.map +1 -0
  85. package/lib/module/composites/wui-toggle/styles.js +24 -0
  86. package/lib/module/composites/wui-toggle/styles.js.map +1 -0
  87. package/lib/module/composites/wui-token-button/index.js +21 -11
  88. package/lib/module/composites/wui-token-button/index.js.map +1 -1
  89. package/lib/module/composites/wui-token-button/styles.js +4 -0
  90. package/lib/module/composites/wui-token-button/styles.js.map +1 -1
  91. package/lib/module/context/ThemeContext.js +33 -0
  92. package/lib/module/context/ThemeContext.js.map +1 -0
  93. package/lib/module/hooks/useTheme.js +4 -7
  94. package/lib/module/hooks/useTheme.js.map +1 -1
  95. package/lib/module/index.js +4 -1
  96. package/lib/module/index.js.map +1 -1
  97. package/lib/module/layout/wui-flex/index.js +3 -2
  98. package/lib/module/layout/wui-flex/index.js.map +1 -1
  99. package/lib/module/layout/wui-separator/index.js +4 -4
  100. package/lib/module/layout/wui-separator/index.js.map +1 -1
  101. package/lib/module/utils/ThemeUtil.js +16 -0
  102. package/lib/module/utils/ThemeUtil.js.map +1 -1
  103. package/lib/module/utils/TransactionUtil.js +56 -45
  104. package/lib/module/utils/TransactionUtil.js.map +1 -1
  105. package/lib/typescript/assets/svg/RecycleHorizontal.d.ts +4 -0
  106. package/lib/typescript/assets/svg/RecycleHorizontal.d.ts.map +1 -0
  107. package/lib/typescript/components/wui-icon/index.d.ts.map +1 -1
  108. package/lib/typescript/components/wui-pressable/index.d.ts +17 -0
  109. package/lib/typescript/components/wui-pressable/index.d.ts.map +1 -0
  110. package/lib/typescript/components/wui-shimmer/index.d.ts.map +1 -1
  111. package/lib/typescript/components/wui-text/index.d.ts.map +1 -1
  112. package/lib/typescript/composites/wui-card-select/index.d.ts +2 -1
  113. package/lib/typescript/composites/wui-card-select/index.d.ts.map +1 -1
  114. package/lib/typescript/composites/wui-input-text/index.d.ts +3 -1
  115. package/lib/typescript/composites/wui-input-text/index.d.ts.map +1 -1
  116. package/lib/typescript/composites/wui-list-token/index.d.ts +4 -1
  117. package/lib/typescript/composites/wui-list-token/index.d.ts.map +1 -1
  118. package/lib/typescript/composites/wui-list-token/styles.d.ts +3 -0
  119. package/lib/typescript/composites/wui-list-token/styles.d.ts.map +1 -1
  120. package/lib/typescript/composites/wui-list-wallet/index.d.ts.map +1 -1
  121. package/lib/typescript/composites/wui-network-button/index.d.ts +2 -1
  122. package/lib/typescript/composites/wui-network-button/index.d.ts.map +1 -1
  123. package/lib/typescript/composites/wui-search-bar/index.d.ts +1 -2
  124. package/lib/typescript/composites/wui-search-bar/index.d.ts.map +1 -1
  125. package/lib/typescript/composites/wui-snackbar/index.d.ts +1 -1
  126. package/lib/typescript/composites/wui-snackbar/index.d.ts.map +1 -1
  127. package/lib/typescript/composites/wui-toggle/index.d.ts +11 -0
  128. package/lib/typescript/composites/wui-toggle/index.d.ts.map +1 -0
  129. package/lib/typescript/composites/wui-toggle/styles.d.ts +23 -0
  130. package/lib/typescript/composites/wui-toggle/styles.d.ts.map +1 -0
  131. package/lib/typescript/composites/wui-token-button/index.d.ts +7 -3
  132. package/lib/typescript/composites/wui-token-button/index.d.ts.map +1 -1
  133. package/lib/typescript/composites/wui-token-button/styles.d.ts +4 -0
  134. package/lib/typescript/composites/wui-token-button/styles.d.ts.map +1 -1
  135. package/lib/typescript/context/ThemeContext.d.ts +78 -0
  136. package/lib/typescript/context/ThemeContext.d.ts.map +1 -0
  137. package/lib/typescript/hooks/useTheme.d.ts +1 -1
  138. package/lib/typescript/hooks/useTheme.d.ts.map +1 -1
  139. package/lib/typescript/index.d.ts +4 -1
  140. package/lib/typescript/index.d.ts.map +1 -1
  141. package/lib/typescript/layout/wui-flex/index.d.ts +2 -1
  142. package/lib/typescript/layout/wui-flex/index.d.ts.map +1 -1
  143. package/lib/typescript/layout/wui-separator/index.d.ts.map +1 -1
  144. package/lib/typescript/utils/ThemeUtil.d.ts +13 -0
  145. package/lib/typescript/utils/ThemeUtil.d.ts.map +1 -1
  146. package/lib/typescript/utils/TransactionUtil.d.ts +9 -1
  147. package/lib/typescript/utils/TransactionUtil.d.ts.map +1 -1
  148. package/lib/typescript/utils/TypesUtil.d.ts +2 -2
  149. package/lib/typescript/utils/TypesUtil.d.ts.map +1 -1
  150. package/package.json +2 -1
  151. package/src/assets/svg/RecycleHorizontal.tsx +12 -0
  152. package/src/components/wui-icon/index.tsx +2 -0
  153. package/src/components/wui-pressable/index.tsx +92 -0
  154. package/src/components/wui-shimmer/index.tsx +9 -2
  155. package/src/components/wui-text/index.tsx +3 -4
  156. package/src/composites/wui-button/index.tsx +1 -1
  157. package/src/composites/wui-button/styles.ts +3 -3
  158. package/src/composites/wui-card-select/index.tsx +4 -1
  159. package/src/composites/wui-input-text/index.tsx +11 -3
  160. package/src/composites/wui-list-token/index.tsx +31 -8
  161. package/src/composites/wui-list-token/styles.ts +3 -0
  162. package/src/composites/wui-list-wallet/index.tsx +5 -6
  163. package/src/composites/wui-network-button/index.tsx +4 -1
  164. package/src/composites/wui-search-bar/index.tsx +1 -4
  165. package/src/composites/wui-snackbar/index.tsx +13 -3
  166. package/src/composites/wui-toggle/index.tsx +81 -0
  167. package/src/composites/wui-toggle/styles.ts +24 -0
  168. package/src/composites/wui-token-button/index.tsx +37 -8
  169. package/src/composites/wui-token-button/styles.ts +4 -0
  170. package/src/context/ThemeContext.tsx +44 -0
  171. package/src/hooks/useTheme.ts +4 -8
  172. package/src/index.ts +4 -1
  173. package/src/layout/wui-flex/index.tsx +7 -3
  174. package/src/layout/wui-separator/index.tsx +4 -7
  175. package/src/utils/ThemeUtil.ts +18 -0
  176. package/src/utils/TransactionUtil.ts +72 -52
  177. package/src/utils/TypesUtil.ts +2 -0
  178. package/lib/commonjs/components/wui-lean-text/index.js +0 -15
  179. package/lib/commonjs/components/wui-lean-text/index.js.map +0 -1
  180. package/lib/commonjs/components/wui-lean-text/index.web.js +0 -13
  181. package/lib/commonjs/components/wui-lean-text/index.web.js.map +0 -1
  182. package/lib/commonjs/components/wui-lean-view/index.js +0 -15
  183. package/lib/commonjs/components/wui-lean-view/index.js.map +0 -1
  184. package/lib/commonjs/components/wui-lean-view/index.web.js +0 -13
  185. package/lib/commonjs/components/wui-lean-view/index.web.js.map +0 -1
  186. package/lib/module/components/wui-lean-text/index.js +0 -10
  187. package/lib/module/components/wui-lean-text/index.js.map +0 -1
  188. package/lib/module/components/wui-lean-text/index.web.js +0 -3
  189. package/lib/module/components/wui-lean-text/index.web.js.map +0 -1
  190. package/lib/module/components/wui-lean-view/index.js +0 -10
  191. package/lib/module/components/wui-lean-view/index.js.map +0 -1
  192. package/lib/module/components/wui-lean-view/index.web.js +0 -3
  193. package/lib/module/components/wui-lean-view/index.web.js.map +0 -1
  194. package/lib/typescript/components/wui-lean-text/index.d.ts +0 -5
  195. package/lib/typescript/components/wui-lean-text/index.d.ts.map +0 -1
  196. package/lib/typescript/components/wui-lean-text/index.web.d.ts +0 -3
  197. package/lib/typescript/components/wui-lean-text/index.web.d.ts.map +0 -1
  198. package/lib/typescript/components/wui-lean-view/index.d.ts +0 -5
  199. package/lib/typescript/components/wui-lean-view/index.d.ts.map +0 -1
  200. package/lib/typescript/components/wui-lean-view/index.web.d.ts +0 -3
  201. package/lib/typescript/components/wui-lean-view/index.web.d.ts.map +0 -1
  202. package/src/components/wui-lean-text/index.tsx +0 -10
  203. package/src/components/wui-lean-text/index.web.tsx +0 -3
  204. package/src/components/wui-lean-view/index.tsx +0 -10
  205. package/src/components/wui-lean-view/index.web.tsx +0 -3
@@ -0,0 +1,78 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { ThemeMode, ThemeVariables } from '@reown/appkit-common-react-native';
3
+ type ThemeContextType = {
4
+ themeMode?: ThemeMode;
5
+ themeVariables?: ThemeVariables;
6
+ };
7
+ export declare const ThemeContext: import("react").Context<ThemeContextType | undefined>;
8
+ interface ThemeProviderProps {
9
+ children: ReactNode;
10
+ themeMode?: ThemeMode;
11
+ themeVariables?: ThemeVariables;
12
+ }
13
+ export declare function ThemeProvider({ children, themeMode, themeVariables }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function useTheme(): {
15
+ "accent-100": string;
16
+ "accent-090": string;
17
+ "accent-080": string;
18
+ "accent-020": string;
19
+ "accent-glass-090": string;
20
+ "accent-glass-080": string;
21
+ "accent-glass-020": string;
22
+ "accent-glass-015": string;
23
+ "accent-glass-010": string;
24
+ "accent-glass-005": string;
25
+ "accent-glass-002": string;
26
+ "fg-100": string;
27
+ "fg-125": string;
28
+ "fg-150": string;
29
+ "fg-175": string;
30
+ "fg-200": string;
31
+ "fg-225": string;
32
+ "fg-250": string;
33
+ "fg-275": string;
34
+ "fg-300": string;
35
+ "bg-100": string;
36
+ "bg-125": string;
37
+ "bg-150": string;
38
+ "bg-175": string;
39
+ "bg-200": string;
40
+ "bg-225": string;
41
+ "bg-250": string;
42
+ "bg-275": string;
43
+ "bg-300": string;
44
+ "inverse-100": string;
45
+ "inverse-000": string;
46
+ "success-100": string;
47
+ "success-glass-020": string;
48
+ "success-glass-015": string;
49
+ "success-glass-010": string;
50
+ "success-glass-005": string;
51
+ "error-100": string;
52
+ "error-glass-020": string;
53
+ "error-glass-015": string;
54
+ "error-glass-010": string;
55
+ "error-glass-005": string;
56
+ "teal-100": string;
57
+ "magenta-100": string;
58
+ "indigo-100": string;
59
+ "orange-100": string;
60
+ "purple-100": string;
61
+ "yellow-100": string;
62
+ "gray-glass-001": string;
63
+ "gray-glass-002": string;
64
+ "gray-glass-005": string;
65
+ "gray-glass-010": string;
66
+ "gray-glass-015": string;
67
+ "gray-glass-020": string;
68
+ "gray-glass-025": string;
69
+ "gray-glass-030": string;
70
+ "gray-glass-060": string;
71
+ "gray-glass-070": string;
72
+ "gray-glass-080": string;
73
+ "gray-glass-090": string;
74
+ "icon-box-bg-error-100": string;
75
+ "icon-box-bg-success-100": string;
76
+ };
77
+ export {};
78
+ //# sourceMappingURL=ThemeContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/context/ThemeContext.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAInF,KAAK,gBAAgB,GAAG;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,YAAY,uDAAyD,CAAC;AAEnF,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,kBAAkB,2CAIxF;AAED,wBAAgB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBvB"}
@@ -1,4 +1,4 @@
1
- export declare function useTheme(): {
1
+ export declare const useTheme: () => {
2
2
  "accent-100": string;
3
3
  "accent-090": string;
4
4
  "accent-080": string;
@@ -1 +1 @@
1
- {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTheme.ts"],"names":[],"mappings":"AAGA,wBAAgB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKvB"}
1
+ {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTheme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEpB,CAAC"}
@@ -29,7 +29,7 @@ export { Link, type LinkProps } from './composites/wui-link';
29
29
  export { ListItem, type ListItemProps } from './composites/wui-list-item';
30
30
  export { ListItemLoader, type ListItemLoaderProps } from './composites/wui-list-item-loader';
31
31
  export { ListSocial, type ListSocialProps } from './composites/wui-list-social';
32
- export { ListToken, type ListTokenProps } from './composites/wui-list-token';
32
+ export { ListToken, ListTokenTotalHeight, type ListTokenProps } from './composites/wui-list-token';
33
33
  export { ListTransaction, type ListTransactionProps } from './composites/wui-list-transaction';
34
34
  export { ListWallet, type ListWalletProps } from './composites/wui-list-wallet';
35
35
  export { Logo, type LogoProps } from './composites/wui-logo';
@@ -37,12 +37,14 @@ export { LogoSelect, type LogoSelectProps } from './composites/wui-logo-select';
37
37
  export { NetworkButton, type NetworkButtonProps } from './composites/wui-network-button';
38
38
  export { NetworkImage, type NetworkImageProps } from './composites/wui-network-image';
39
39
  export { Otp, type OtpProps } from './composites/wui-otp';
40
+ export { Pressable, type PressableProps } from './components/wui-pressable';
40
41
  export { Promo, type PromoProps } from './composites/wui-promo';
41
42
  export { QrCode, type QrCodeProps } from './composites/wui-qr-code';
42
43
  export { SearchBar, type SearchBarProps } from './composites/wui-search-bar';
43
44
  export { Snackbar, type SnackbarProps } from './composites/wui-snackbar';
44
45
  export { Tabs, type TabsProps } from './composites/wui-tabs';
45
46
  export { Tag, type TagProps } from './composites/wui-tag';
47
+ export { Toggle, type ToggleProps } from './composites/wui-toggle';
46
48
  export { TokenButton, type TokenButtonProps } from './composites/wui-token-button';
47
49
  export { Tooltip, type TooltipProps } from './composites/wui-tooltip';
48
50
  export { WalletImage, type WalletImageProps } from './composites/wui-wallet-image';
@@ -54,5 +56,6 @@ export { UiUtil } from './utils/UiUtil';
54
56
  export { TransactionUtil } from './utils/TransactionUtil';
55
57
  export { Spacing, BorderRadius } from './utils/ThemeUtil';
56
58
  export { useTheme } from './hooks/useTheme';
59
+ export { ThemeProvider } from './context/ThemeContext';
57
60
  export { useAnimatedValue } from './hooks/useAnimatedValue';
58
61
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,o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C;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,YAAY,EACV,UAAU,EACV,cAAc,EACd,QAAQ,EACR,SAAS,EACT,SAAS,IAAI,cAAc,EAC3B,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,UAAU,EACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -1,8 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { type StyleProp, type ViewStyle } from 'react-native';
2
+ import { type LayoutChangeEvent, type StyleProp, type ViewStyle } from 'react-native';
3
3
  import type { FlexAlignType, FlexDirectionType, FlexGrowType, FlexJustifyContentType, FlexShrinkType, FlexWrapType, SpacingType } from '../../utils/TypesUtil';
4
4
  export interface FlexViewProps {
5
5
  children?: React.ReactNode;
6
+ onLayout?: (event: LayoutChangeEvent) => void;
6
7
  flexDirection?: FlexDirectionType;
7
8
  flexWrap?: FlexWrapType;
8
9
  flexGrow?: FlexGrowType;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layout/wui-flex/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,sBAAsB,EACtB,cAAc,EACd,YAAY,EACZ,WAAW,EACZ,MAAM,uBAAuB,C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AAE,aAAa,CAAC;IAC1B,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,OAAO,CAAC,EAAE,WAAW,GAAG,WAAW,EAAE,CAAC;IACtC,MAAM,CAAC,EAAE,WAAW,GAAG,WAAW,EAAE,CAAC;IACrC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,2CAwB5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layout/wui-separator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9D,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,cAAc,2CAsBxD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layout/wui-separator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAQ,MAAM,cAAc,CAAC;AAMpE,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,cAAc,2CAoBxD"}
@@ -1,4 +1,17 @@
1
1
  import type { SpacingType, ThemeKeys } from './TypesUtil';
2
+ export declare const getAccentColors: (baseAccentColor: string) => {
3
+ 'accent-100': string;
4
+ 'accent-090': string;
5
+ 'accent-080': string;
6
+ 'accent-020': string;
7
+ 'accent-glass-090': string;
8
+ 'accent-glass-080': string;
9
+ 'accent-glass-020': string;
10
+ 'accent-glass-015': string;
11
+ 'accent-glass-010': string;
12
+ 'accent-glass-005': string;
13
+ 'accent-glass-002': string;
14
+ };
2
15
  export declare const DarkTheme: {
3
16
  [key in ThemeKeys]: string;
4
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/ThemeUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE1D,eAAO,MAAM,SAAS,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAuEnD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAuEpD,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;CAWxB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;CAOpB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE;KAAG,CAAC,IAAI,WAAW,GAAG,MAAM;CAajD,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;CAM3B,CAAC"}
1
+ {"version":3,"file":"ThemeUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/ThemeUtil.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE1D,eAAO,MAAM,eAAe,oBAAqB,MAAM;;;;;;;;;;;;CActD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAuEnD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAuEpD,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;CAWxB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;CAOpB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE;KAAG,CAAC,IAAI,WAAW,GAAG,MAAM;CAajD,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;CAM3B,CAAC"}
@@ -1,4 +1,5 @@
1
- import type { TransactionTransfer, Transaction, TransactionImage } from '@reown/appkit-common-react-native';
1
+ import type { TransactionTransfer, Transaction, TransactionImage, TransactionMetadata } from '@reown/appkit-common-react-native';
2
+ import type { TransactionType } from './TypesUtil';
2
3
  export declare const TransactionUtil: {
3
4
  getTransactionGroupTitle(year: string, month: string): string;
4
5
  getTransactionImages(transfers: TransactionTransfer[]): TransactionImage[];
@@ -6,6 +7,13 @@ export declare const TransactionUtil: {
6
7
  getTransactionImageURL(transfer: TransactionTransfer | undefined): string | undefined;
7
8
  getTransactionTransferTokenType(transfer?: TransactionTransfer): 'FUNGIBLE' | 'NFT' | undefined;
8
9
  getTransactionDescriptions(transaction: Transaction): string[];
10
+ isSendReceiveTransaction(type: TransactionType): boolean;
11
+ hasFungibleTransfers(transfers: TransactionTransfer[]): boolean;
12
+ getSendReceiveDescriptions(metadata: TransactionMetadata): string[];
13
+ truncateAddress(address: string): string;
14
+ formatSingleTransfer(transfer: TransactionTransfer, type: TransactionType, metadata: TransactionMetadata): string;
15
+ getPrefix(type: TransactionType): string;
16
+ getTradeDescriptions(transfers: TransactionTransfer[]): string[];
9
17
  getTransferDescription(transfer?: TransactionTransfer): string;
10
18
  getFungibleTransferDescription(transfer?: TransactionTransfer): string | null;
11
19
  getQuantityFixedValue(value: string | undefined): string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/TransactionUtil.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EACjB,MAAM,mCAAmC,CAAC;AAU3C,eAAO,MAAM,eAAe;mCACK,MAAM,SAAS,MAAM;oCASpB,mBAAmB,EAAE,GAAG,gBAAgB,EAAE;mCAiB3C,mBAAmB,GAAG,gBAAgB;qCAOpC,mBAAmB,GAAG,SAAS;+CAcrB,mBAAmB,GAAG,UAAU,GAAG,KAAK,GAAG,SAAS;4CAUvD,WAAW;sCA+DjB,mBAAmB;8CAgBX,mBAAmB;iCAWhC,MAAM,GAAG,SAAS;CAShD,CAAC"}
1
+ {"version":3,"file":"TransactionUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/TransactionUtil.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AASnD,eAAO,MAAM,eAAe;mCACK,MAAM,SAAS,MAAM;oCASpB,mBAAmB,EAAE,GAAG,gBAAgB,EAAE;mCAmB3C,mBAAmB,GAAG,gBAAgB;qCAOpC,mBAAmB,GAAG,SAAS;+CAcrB,mBAAmB,GAAG,UAAU,GAAG,KAAK,GAAG,SAAS;4CAUvD,WAAW;mCA0BpB,eAAe,GAAG,OAAO;oCAIxB,mBAAmB,EAAE,GAAG,OAAO;yCAI1B,mBAAmB,GAAG,MAAM,EAAE;6BAI1C,MAAM,GAAG,MAAM;mCAU5B,mBAAmB,QACvB,eAAe,YACX,mBAAmB,GAC5B,MAAM;oBAeO,eAAe,GAAG,MAAM;oCAOR,mBAAmB,EAAE,GAAG,MAAM,EAAE;sCAO9B,mBAAmB;8CAgBX,mBAAmB;iCAWhC,MAAM,GAAG,SAAS;CAShD,CAAC"}
@@ -1,11 +1,11 @@
1
1
  export type ThemeKeys = 'accent-100' | 'accent-090' | 'accent-080' | 'accent-020' | 'accent-glass-090' | 'accent-glass-080' | 'accent-glass-020' | 'accent-glass-015' | 'accent-glass-010' | 'accent-glass-005' | 'accent-glass-002' | 'fg-100' | 'fg-125' | 'fg-150' | 'fg-175' | 'fg-200' | 'fg-225' | 'fg-250' | 'fg-275' | 'fg-300' | 'bg-100' | 'bg-125' | 'bg-150' | 'bg-175' | 'bg-200' | 'bg-225' | 'bg-250' | 'bg-275' | 'bg-300' | 'inverse-100' | 'inverse-000' | 'success-100' | 'success-glass-020' | 'success-glass-015' | 'success-glass-010' | 'success-glass-005' | 'error-100' | 'error-glass-020' | 'error-glass-015' | 'error-glass-010' | 'error-glass-005' | 'teal-100' | 'magenta-100' | 'indigo-100' | 'orange-100' | 'purple-100' | 'yellow-100' | 'gray-glass-001' | 'gray-glass-002' | 'gray-glass-005' | 'gray-glass-010' | 'gray-glass-015' | 'gray-glass-020' | 'gray-glass-025' | 'gray-glass-030' | 'gray-glass-060' | 'gray-glass-070' | 'gray-glass-080' | 'gray-glass-090' | 'icon-box-bg-error-100' | 'icon-box-bg-success-100';
2
2
  export type TextType = 'medium-title-400' | 'medium-title-500' | 'medium-title-600' | 'small-title-400' | 'small-title-500' | 'small-title-600' | 'large-400' | 'large-500' | 'large-600' | 'medium-400' | 'medium-500' | 'medium-600' | 'paragraph-400' | 'paragraph-500' | 'paragraph-600' | 'small-400' | 'small-500' | 'small-600' | 'tiny-400' | 'tiny-500' | 'tiny-600' | 'micro-600' | 'micro-700';
3
- export type ColorType = 'accent-100' | 'error-100' | 'fg-100' | 'fg-150' | 'fg-175' | 'fg-200' | 'fg-250' | 'fg-275' | 'fg-300' | 'bg-100' | 'bg-125' | 'bg-150' | 'bg-175' | 'bg-200' | 'bg-225' | 'bg-250' | 'bg-275' | 'bg-300' | 'accent-glass-020' | 'accent-glass-015' | 'accent-glass-010' | 'accent-glass-005' | 'gray-glass-020' | 'gray-glass-010' | 'gray-glass-005' | 'inverse-000' | 'inverse-100' | 'success-100' | 'teal-100' | 'magenta-100' | 'indigo-100' | 'orange-100' | 'purple-100' | 'yellow-100';
3
+ export type ColorType = 'accent-100' | 'error-100' | 'fg-100' | 'fg-150' | 'fg-175' | 'fg-200' | 'fg-250' | 'fg-275' | 'fg-300' | 'bg-100' | 'bg-125' | 'bg-150' | 'bg-175' | 'bg-200' | 'bg-225' | 'bg-250' | 'bg-275' | 'bg-300' | 'accent-glass-020' | 'accent-glass-015' | 'accent-glass-010' | 'accent-glass-005' | 'gray-glass-020' | 'gray-glass-010' | 'gray-glass-005' | 'gray-glass-002' | 'inverse-000' | 'inverse-100' | 'success-100' | 'teal-100' | 'magenta-100' | 'indigo-100' | 'orange-100' | 'purple-100' | 'yellow-100';
4
4
  export type SizeType = 'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'xxs';
5
5
  export type PlacementType = 'bottom' | 'left' | 'right' | 'top';
6
6
  export type ButtonType = 'accent' | 'fill' | 'shade';
7
7
  export type ChipType = 'fill' | 'shade' | 'transparent';
8
- export type IconType = 'allWallets' | 'apple' | 'arrowBottom' | 'arrowBottomCircle' | 'arrowLeft' | 'arrowRight' | 'arrowTop' | 'browser' | 'checkmark' | 'chevronBottom' | 'chevronLeft' | 'chevronRight' | 'chevronRightSmall' | 'chevronTop' | 'clock' | 'close' | 'coinPlaceholder' | 'compass' | 'copy' | 'copySmall' | 'cursor' | 'desktop' | 'disconnect' | 'discord' | 'etherscan' | 'extension' | 'externalLink' | 'facebook' | 'farcaster' | 'farcasterSquare' | 'filters' | 'github' | 'google' | 'helpCircle' | 'infoCircle' | 'mail' | 'mobile' | 'more' | 'networkPlaceholder' | 'nftPlaceholder' | 'off' | 'paperplane' | 'qrCode' | 'refresh' | 'search' | 'swapHorizontal' | 'swapVertical' | 'telegram' | 'twitch' | 'verify' | 'wallet' | 'walletSmall' | 'walletConnect' | 'walletConnectLightBrown' | 'walletPlaceholder' | 'warningCircle' | 'x';
8
+ export type IconType = 'allWallets' | 'apple' | 'arrowBottom' | 'arrowBottomCircle' | 'arrowLeft' | 'arrowRight' | 'arrowTop' | 'browser' | 'checkmark' | 'chevronBottom' | 'chevronLeft' | 'chevronRight' | 'chevronRightSmall' | 'chevronTop' | 'clock' | 'close' | 'coinPlaceholder' | 'compass' | 'copy' | 'copySmall' | 'cursor' | 'desktop' | 'disconnect' | 'discord' | 'etherscan' | 'extension' | 'externalLink' | 'facebook' | 'farcaster' | 'farcasterSquare' | 'filters' | 'github' | 'google' | 'helpCircle' | 'infoCircle' | 'mail' | 'mobile' | 'more' | 'networkPlaceholder' | 'nftPlaceholder' | 'off' | 'paperplane' | 'qrCode' | 'recycleHorizontal' | 'refresh' | 'search' | 'swapHorizontal' | 'swapVertical' | 'telegram' | 'twitch' | 'verify' | 'wallet' | 'walletSmall' | 'walletConnect' | 'walletConnectLightBrown' | 'walletPlaceholder' | 'warningCircle' | 'x';
9
9
  export type VisualType = 'browser' | 'dao' | 'defi' | 'defiAlt' | 'eth' | 'google' | 'layers' | 'lightbulb' | 'lock' | 'login' | 'network' | 'nft' | 'noun' | 'pencil' | 'profile' | 'system';
10
10
  export type LogoType = 'apple' | 'discord' | 'facebook' | 'farcaster' | 'farcasterSquare' | 'github' | 'google' | 'more' | 'telegram' | 'twitch' | 'x';
11
11
  export type TagType = 'main' | 'shade' | 'error' | 'success';
@@ -1 +1 @@
1
- {"version":3,"file":"TypesUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/TypesUtil.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GACjB,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,aAAa,GACb,aAAa,GACb,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,WAAW,GACX,iBAAiB,GACjB,iBAAiB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QAAQ,GACR,MAAM,GACN,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,GACN,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,SAAS,GACT,UAAU,CAAC"}
1
+ {"version":3,"file":"TypesUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/TypesUtil.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GACjB,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,aAAa,GACb,aAAa,GACb,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,WAAW,GACX,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,UAAU,GACV,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,uBAAuB,GACvB,yBAAyB,CAAC;AAE9B,MAAM,MAAM,QAAQ,GAChB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,WAAW,GACX,WAAW,GACX,WAAW,GACX,Y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AAO,CAAC,WAAW,EAAE,IAAI,GAAG,KAAK,CAAC,CAAC;AAElE,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG,QAAQ,GAAG,aAAa,GAAG,KAAK,CAAC;AAEpF,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,cAAc,GAAG,MAAM,CAAC;AAE9D,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,CAAC;AAEjC,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,CAAC,CAAC;AAEnC,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,GAAG,SAAS,CAAC;AAE1F,MAAM,MAAM,sBAAsB,GAC9B,QAAQ,GACR,UAAU,GACV,YAAY,GACZ,cAAc,GACd,eAAe,GACf,cAAc,CAAC;AAEnB,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEtD,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,eAAe,GACvB,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,GACN,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,SAAS,GACT,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reown/appkit-ui-react-native",
3
- "version": "0.0.0-develop-20241121145434",
3
+ "version": "0.0.0-develop-20250117202414",
4
4
  "main": "lib/commonjs/index.js",
5
5
  "types": "lib/typescript/index.d.ts",
6
6
  "module": "lib/module/index.js",
@@ -38,6 +38,7 @@
38
38
  "access": "public"
39
39
  },
40
40
  "dependencies": {
41
+ "polished": "4.3.1",
41
42
  "qrcode": "1.5.3"
42
43
  },
43
44
  "peerDependencies": {
@@ -0,0 +1,12 @@
1
+ import Svg, { Path, type SvgProps } from 'react-native-svg';
2
+ const RecycleHorizontalSvg = (props: SvgProps) => (
3
+ <Svg viewBox="0 0 21 20" fill="none" {...props}>
4
+ <Path
5
+ fill={props.fill || '#fff'}
6
+ fillRule="evenodd"
7
+ d="M8.8071 0.292893C9.19763 0.683417 9.19763 1.31658 8.8071 1.70711L6.91421 3.6H11.8404C14.3368 3.6 16.5533 5.1975 17.3427 7.56588L17.4487 7.88377C17.6233 8.40772 17.3402 8.97404 16.8162 9.14868C16.2923 9.32333 15.726 9.04017 15.5513 8.51623L15.4453 8.19834C14.9281 6.64664 13.476 5.6 11.8404 5.6H6.91421L8.8071 7.49289C9.19763 7.88342 9.19763 8.51658 8.8071 8.90711C8.41658 9.29763 7.78341 9.29763 7.39289 8.90711L3.79289 5.30711C3.40236 4.91658 3.40236 4.28342 3.79289 3.89289L7.39289 0.292893C7.78341 -0.0976311 8.41658 -0.0976311 8.8071 0.292893ZM4.18377 10.8513C4.70771 10.6767 5.27403 10.9598 5.44868 11.4838L5.55464 11.8017C6.07188 13.3534 7.52401 14.4 9.15964 14.4L14.0858 14.4L12.1929 12.5071C11.8024 12.1166 11.8024 11.4834 12.1929 11.0929C12.5834 10.7024 13.2166 10.7024 13.6071 11.0929L17.2071 14.6929C17.5976 15.0834 17.5976 15.7166 17.2071 16.1071L13.6071 19.7071C13.2166 20.0976 12.5834 20.0976 12.1929 19.7071C11.8024 19.3166 11.8024 18.6834 12.1929 18.2929L14.0858 16.4L9.15964 16.4C6.66314 16.4 4.44674 14.8025 3.65728 12.4341L3.55131 12.1162C3.37667 11.5923 3.65983 11.026 4.18377 10.8513Z"
8
+ clipRule="evenodd"
9
+ />
10
+ </Svg>
11
+ );
12
+ export default RecycleHorizontalSvg;
@@ -45,6 +45,7 @@ import NftPlaceholderSvg from '../../assets/svg/NftPlaceholder';
45
45
  import OffSvg from '../../assets/svg/Off';
46
46
  import PaperplaneSvg from '../../assets/svg/Paperplane';
47
47
  import QrCodeSvg from '../../assets/svg/QrCode';
48
+ import RecycleHorizontalSvg from '../../assets/svg/RecycleHorizontal';
48
49
  import RefreshSvg from '../../assets/svg/Refresh';
49
50
  import SearchSvg from '../../assets/svg/Search';
50
51
  import SwapHorizontalSvg from '../../assets/svg/SwapHorizontal';
@@ -105,6 +106,7 @@ const svgOptions: Record<IconType, (props: SvgProps) => JSX.Element> = {
105
106
  off: OffSvg,
106
107
  paperplane: PaperplaneSvg,
107
108
  qrCode: QrCodeSvg,
109
+ recycleHorizontal: RecycleHorizontalSvg,
108
110
  refresh: RefreshSvg,
109
111
  search: SearchSvg,
110
112
  swapHorizontal: SwapHorizontalSvg,
@@ -0,0 +1,92 @@
1
+ import { useRef } from 'react';
2
+ import {
3
+ Animated,
4
+ Pressable as RNPressable,
5
+ type PressableProps as RNPressableProps,
6
+ type StyleProp,
7
+ type ViewStyle
8
+ } from 'react-native';
9
+ import { useTheme } from '../../hooks/useTheme';
10
+ import type { ColorType } from '../../utils/TypesUtil';
11
+
12
+ const AnimatedPressable = Animated.createAnimatedComponent(RNPressable);
13
+
14
+ export interface PressableProps extends RNPressableProps {
15
+ children: React.ReactNode;
16
+ style?: StyleProp<ViewStyle>;
17
+ backgroundColor?: ColorType | 'transparent';
18
+ pressedBackgroundColor?: ColorType;
19
+ bounceScale?: number;
20
+ animationDuration?: number;
21
+ disabled?: boolean;
22
+ pressable?: boolean;
23
+ }
24
+
25
+ export function Pressable({
26
+ children,
27
+ style,
28
+ disabled = false,
29
+ pressable = true,
30
+ onPress,
31
+ backgroundColor = 'gray-glass-002',
32
+ pressedBackgroundColor = 'gray-glass-010',
33
+ bounceScale = 0.99, // Scale to 99% of original size
34
+ animationDuration = 200, // 200ms animation
35
+ ...rest
36
+ }: PressableProps) {
37
+ const Theme = useTheme();
38
+ const pressAnimation = useRef(new Animated.Value(0));
39
+ const scaleAnimation = useRef(new Animated.Value(1));
40
+
41
+ const onPressIn = () => {
42
+ Animated.parallel([
43
+ Animated.timing(pressAnimation.current, {
44
+ toValue: 1,
45
+ useNativeDriver: false,
46
+ duration: animationDuration
47
+ }),
48
+
49
+ Animated.timing(scaleAnimation.current, {
50
+ toValue: bounceScale,
51
+ useNativeDriver: false,
52
+ duration: animationDuration
53
+ })
54
+ ]).start();
55
+ };
56
+
57
+ const onPressOut = () => {
58
+ Animated.parallel([
59
+ Animated.timing(pressAnimation.current, {
60
+ toValue: 0,
61
+ useNativeDriver: false,
62
+ duration: animationDuration
63
+ }),
64
+ Animated.timing(scaleAnimation.current, {
65
+ toValue: 1,
66
+ useNativeDriver: false,
67
+ duration: animationDuration
68
+ })
69
+ ]).start();
70
+ };
71
+
72
+ const bgColor = pressAnimation.current.interpolate({
73
+ inputRange: [0, 1],
74
+ outputRange: [
75
+ Theme[backgroundColor as ColorType] ?? 'transparent',
76
+ Theme[pressedBackgroundColor as ColorType] ?? 'transparent'
77
+ ]
78
+ });
79
+
80
+ return (
81
+ <AnimatedPressable
82
+ disabled={disabled || !pressable}
83
+ style={[{ backgroundColor: bgColor, transform: [{ scale: scaleAnimation.current }] }, style]}
84
+ onPressIn={onPressIn}
85
+ onPressOut={onPressOut}
86
+ onPress={onPress}
87
+ {...rest}
88
+ >
89
+ {children}
90
+ </AnimatedPressable>
91
+ );
92
+ }
@@ -1,5 +1,5 @@
1
1
  import { Svg, Rect } from 'react-native-svg';
2
- import { Animated, type StyleProp, type ViewStyle } from 'react-native';
2
+ import { Animated, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
3
3
  import { useTheme } from '../../hooks/useTheme';
4
4
 
5
5
  const AnimatedRect = Animated.createAnimatedComponent(Rect);
@@ -52,7 +52,14 @@ export const Shimmer = ({
52
52
  ).start();
53
53
 
54
54
  return (
55
- <Svg width={width} height={height} style={style}>
55
+ <Svg
56
+ width={width}
57
+ height={height}
58
+ style={[
59
+ { borderWidth: StyleSheet.hairlineWidth, borderColor: Theme['bg-300'], borderRadius },
60
+ style
61
+ ]}
62
+ >
56
63
  <AnimatedRect {...animatedProps} />
57
64
  </Svg>
58
65
  );
@@ -1,6 +1,5 @@
1
- import { type TextProps as NativeProps } from 'react-native';
1
+ import { Text as NativeText, type TextProps as NativeProps } from 'react-native';
2
2
  import { useTheme } from '../../hooks/useTheme';
3
- import { LeanText } from '../wui-lean-text';
4
3
  import type { ColorType, TextType } from '../../utils/TypesUtil';
5
4
  import styles from './styles';
6
5
 
@@ -21,7 +20,7 @@ export function Text({
21
20
  const Theme = useTheme();
22
21
 
23
22
  return (
24
- <LeanText
23
+ <NativeText
25
24
  style={[
26
25
  styles.base,
27
26
  styles[variant],
@@ -32,6 +31,6 @@ export function Text({
32
31
  {...rest}
33
32
  >
34
33
  {children}
35
- </LeanText>
34
+ </NativeText>
36
35
  );
37
36
  }
@@ -95,7 +95,7 @@ export function Button({
95
95
  style={[styles.iconLeft, iconStyle]}
96
96
  />
97
97
  )}
98
- {loading && <LoadingSpinner color={iconColor} />}
98
+ {loading && <LoadingSpinner color={iconColor} size="md" />}
99
99
  {!loading &&
100
100
  (typeof children === 'string' ? (
101
101
  <Text
@@ -9,13 +9,13 @@ export const getThemedButtonStyle = (
9
9
  pressed?: boolean
10
10
  ): StyleProp<any> => {
11
11
  const buttonBaseStyle = {
12
- borderColor: theme['gray-glass-010']
12
+ borderColor: theme['accent-glass-020']
13
13
  };
14
14
 
15
15
  if (disabled) {
16
16
  return {
17
- backgroundColor: variant === 'fill' ? theme['gray-glass-005'] : theme['gray-glass-010'],
18
- borderColor: theme['gray-glass-002']
17
+ ...buttonBaseStyle,
18
+ backgroundColor: variant === 'fill' ? theme['gray-glass-005'] : theme['gray-glass-010']
19
19
  };
20
20
  }
21
21
 
@@ -25,6 +25,7 @@ export interface CardSelectProps {
25
25
  type?: CardSelectType;
26
26
  onPress?: () => void;
27
27
  style?: StyleProp<ViewStyle>;
28
+ testID?: string;
28
29
  }
29
30
 
30
31
  function _CardSelect({
@@ -36,7 +37,8 @@ function _CardSelect({
36
37
  disabled,
37
38
  installed,
38
39
  selected,
39
- style
40
+ style,
41
+ testID
40
42
  }: CardSelectProps) {
41
43
  const Theme = useTheme();
42
44
  const normalbackgroundColor = getBackgroundColor({ selected, disabled, pressed: false });
@@ -77,6 +79,7 @@ function _CardSelect({
77
79
  onPressOut={setStartValue}
78
80
  disabled={disabled}
79
81
  style={[styles.container, { backgroundColor: animatedValue }, style]}
82
+ testID={testID}
80
83
  >
81
84
  <View>
82
85
  <Image
@@ -4,8 +4,10 @@ import {
4
4
  Pressable,
5
5
  TextInput,
6
6
  type NativeSyntheticEvent,
7
+ type StyleProp,
7
8
  type TextInputFocusEventData,
8
- type TextInputProps
9
+ type TextInputProps,
10
+ type ViewStyle
9
11
  } from 'react-native';
10
12
  import { Icon } from '../../components/wui-icon';
11
13
  import useAnimatedValue from '../../hooks/useAnimatedValue';
@@ -26,6 +28,7 @@ export type InputTextProps = TextInputProps & {
26
28
  icon?: IconType;
27
29
  disabled?: boolean;
28
30
  size?: Exclude<SizeType, 'xl' | 'lg' | 'xxs'>;
31
+ style?: StyleProp<ViewStyle>;
29
32
  };
30
33
 
31
34
  export const InputText = forwardRef<InputRef, InputTextProps>(
@@ -40,6 +43,7 @@ export const InputText = forwardRef<InputRef, InputTextProps>(
40
43
  returnKeyType,
41
44
  onBlur,
42
45
  onFocus,
46
+ style,
43
47
  ...rest
44
48
  }: InputTextProps,
45
49
  ref
@@ -94,10 +98,13 @@ export const InputText = forwardRef<InputRef, InputTextProps>(
94
98
  return (
95
99
  <>
96
100
  <AnimatedPressable
97
- style={[styles.outerBorder, { borderColor: outerBorder, borderRadius: outerRadius }]}
101
+ style={[
102
+ styles.outerBorder,
103
+ { borderColor: outerBorder, borderRadius: outerRadius },
104
+ style
105
+ ]}
98
106
  disabled={disabled}
99
107
  onPress={() => inputRef.current?.focus()}
100
- testID={rest.testID}
101
108
  >
102
109
  <Animated.View
103
110
  style={[
@@ -123,6 +130,7 @@ export const InputText = forwardRef<InputRef, InputTextProps>(
123
130
  underlineColorAndroid="transparent"
124
131
  selectTextOnFocus={false}
125
132
  editable={!disabled}
133
+ testID="wui-input-text"
126
134
  {...rest}
127
135
  />
128
136
  {children}