@reown/appkit-react-native 0.0.0-fix-ui-changes-20250829161224 → 0.0.0-fix-ui-changes-20250829201240

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 (72) hide show
  1. package/lib/commonjs/AppKit.js +6 -1
  2. package/lib/commonjs/AppKit.js.map +1 -1
  3. package/lib/commonjs/partials/w3m-selector-modal/index.js +65 -56
  4. package/lib/commonjs/partials/w3m-selector-modal/index.js.map +1 -1
  5. package/lib/commonjs/partials/w3m-selector-modal/styles.js +9 -10
  6. package/lib/commonjs/partials/w3m-selector-modal/styles.js.map +1 -1
  7. package/lib/commonjs/views/w3m-account-default-view/index.js +2 -2
  8. package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js +3 -2
  9. package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
  10. package/lib/commonjs/views/w3m-onramp-settings-view/index.js +6 -4
  11. package/lib/commonjs/views/w3m-onramp-settings-view/index.js.map +1 -1
  12. package/lib/commonjs/views/w3m-onramp-settings-view/styles.js +4 -1
  13. package/lib/commonjs/views/w3m-onramp-settings-view/styles.js.map +1 -1
  14. package/lib/commonjs/views/w3m-onramp-view/components/Currency.js +3 -2
  15. package/lib/commonjs/views/w3m-onramp-view/components/Currency.js.map +1 -1
  16. package/lib/commonjs/views/w3m-onramp-view/components/Header.js +1 -1
  17. package/lib/commonjs/views/w3m-onramp-view/index.js +4 -3
  18. package/lib/commonjs/views/w3m-onramp-view/index.js.map +1 -1
  19. package/lib/commonjs/views/w3m-onramp-view/styles.js +3 -0
  20. package/lib/commonjs/views/w3m-onramp-view/styles.js.map +1 -1
  21. package/lib/commonjs/views/w3m-upgrade-email-wallet-view/index.js +2 -4
  22. package/lib/commonjs/views/w3m-upgrade-email-wallet-view/index.js.map +1 -1
  23. package/lib/module/AppKit.js +6 -1
  24. package/lib/module/AppKit.js.map +1 -1
  25. package/lib/module/partials/w3m-selector-modal/index.js +66 -57
  26. package/lib/module/partials/w3m-selector-modal/index.js.map +1 -1
  27. package/lib/module/partials/w3m-selector-modal/styles.js +9 -10
  28. package/lib/module/partials/w3m-selector-modal/styles.js.map +1 -1
  29. package/lib/module/views/w3m-account-default-view/index.js +2 -2
  30. package/lib/module/views/w3m-onramp-settings-view/components/Country.js +3 -2
  31. package/lib/module/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
  32. package/lib/module/views/w3m-onramp-settings-view/index.js +6 -4
  33. package/lib/module/views/w3m-onramp-settings-view/index.js.map +1 -1
  34. package/lib/module/views/w3m-onramp-settings-view/styles.js +4 -1
  35. package/lib/module/views/w3m-onramp-settings-view/styles.js.map +1 -1
  36. package/lib/module/views/w3m-onramp-view/components/Currency.js +3 -2
  37. package/lib/module/views/w3m-onramp-view/components/Currency.js.map +1 -1
  38. package/lib/module/views/w3m-onramp-view/components/Header.js +1 -1
  39. package/lib/module/views/w3m-onramp-view/index.js +4 -3
  40. package/lib/module/views/w3m-onramp-view/index.js.map +1 -1
  41. package/lib/module/views/w3m-onramp-view/styles.js +3 -0
  42. package/lib/module/views/w3m-onramp-view/styles.js.map +1 -1
  43. package/lib/module/views/w3m-upgrade-email-wallet-view/index.js +3 -5
  44. package/lib/module/views/w3m-upgrade-email-wallet-view/index.js.map +1 -1
  45. package/lib/typescript/AppKit.d.ts.map +1 -1
  46. package/lib/typescript/partials/w3m-selector-modal/index.d.ts.map +1 -1
  47. package/lib/typescript/partials/w3m-selector-modal/styles.d.ts +6 -7
  48. package/lib/typescript/partials/w3m-selector-modal/styles.d.ts.map +1 -1
  49. package/lib/typescript/views/w3m-onramp-settings-view/components/Country.d.ts +3 -1
  50. package/lib/typescript/views/w3m-onramp-settings-view/components/Country.d.ts.map +1 -1
  51. package/lib/typescript/views/w3m-onramp-settings-view/index.d.ts.map +1 -1
  52. package/lib/typescript/views/w3m-onramp-settings-view/styles.d.ts +4 -1
  53. package/lib/typescript/views/w3m-onramp-settings-view/styles.d.ts.map +1 -1
  54. package/lib/typescript/views/w3m-onramp-view/components/Currency.d.ts +3 -1
  55. package/lib/typescript/views/w3m-onramp-view/components/Currency.d.ts.map +1 -1
  56. package/lib/typescript/views/w3m-onramp-view/index.d.ts.map +1 -1
  57. package/lib/typescript/views/w3m-onramp-view/styles.d.ts +3 -0
  58. package/lib/typescript/views/w3m-onramp-view/styles.d.ts.map +1 -1
  59. package/lib/typescript/views/w3m-upgrade-email-wallet-view/index.d.ts.map +1 -1
  60. package/package.json +5 -5
  61. package/src/AppKit.ts +6 -1
  62. package/src/partials/w3m-selector-modal/index.tsx +78 -62
  63. package/src/partials/w3m-selector-modal/styles.ts +9 -10
  64. package/src/views/w3m-account-default-view/index.tsx +2 -2
  65. package/src/views/w3m-onramp-settings-view/components/Country.tsx +8 -3
  66. package/src/views/w3m-onramp-settings-view/index.tsx +4 -2
  67. package/src/views/w3m-onramp-settings-view/styles.ts +4 -1
  68. package/src/views/w3m-onramp-view/components/Currency.tsx +4 -3
  69. package/src/views/w3m-onramp-view/components/Header.tsx +1 -1
  70. package/src/views/w3m-onramp-view/index.tsx +3 -2
  71. package/src/views/w3m-onramp-view/styles.ts +3 -0
  72. package/src/views/w3m-upgrade-email-wallet-view/index.tsx +3 -5
@@ -8,20 +8,19 @@ export default StyleSheet.create({
8
8
  justifyContent: 'flex-end'
9
9
  },
10
10
  header: {
11
- marginBottom: Spacing.s,
12
- paddingHorizontal: Spacing.m
11
+ paddingTop: Spacing['2xs'],
12
+ paddingBottom: Spacing.s
13
+ },
14
+ headerTop: {
15
+ paddingHorizontal: Spacing.m,
16
+ paddingBottom: Spacing.xs
13
17
  },
14
18
  container: {
15
19
  borderTopLeftRadius: BorderRadius.l,
16
- borderTopRightRadius: BorderRadius.l,
17
- paddingTop: Spacing.m
18
- },
19
- selectedContainer: {
20
- paddingHorizontal: Spacing.m
20
+ borderTopRightRadius: BorderRadius.l
21
21
  },
22
22
  listContent: {
23
- paddingTop: Spacing.s,
24
- paddingHorizontal: Spacing.m
23
+ paddingTop: Spacing.s
25
24
  },
26
25
  iconPlaceholder: {
27
26
  height: 32,
@@ -37,6 +36,6 @@ export default StyleSheet.create({
37
36
  marginHorizontal: Spacing.s
38
37
  },
39
38
  separator: {
40
- marginTop: Spacing.m
39
+ marginVertical: Spacing.xs
41
40
  }
42
41
  });
@@ -278,7 +278,7 @@ export function AccountDefaultView() {
278
278
  testID="button-onramp"
279
279
  style={styles.actionButton}
280
280
  >
281
- <Text color="fg-100">Buy crypto</Text>
281
+ <Text color="fg-100">Buy Crypto</Text>
282
282
  </ListItem>
283
283
  ) : null}
284
284
  {showSend ? (
@@ -332,7 +332,7 @@ export function AccountDefaultView() {
332
332
  loading={loading}
333
333
  >
334
334
  <Text color="fg-100">{`Switch to your ${
335
- accountType === 'eoa' ? 'smart account' : 'EOA'
335
+ accountType === 'eoa' ? 'Smart Account' : 'EOA'
336
336
  }`}</Text>
337
337
  </ListItem>
338
338
  ) : null}
@@ -7,24 +7,29 @@ import {
7
7
  Icon,
8
8
  BorderRadius
9
9
  } from '@reown/appkit-ui-react-native';
10
- import { StyleSheet } from 'react-native';
10
+ import { StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
11
11
  import { SvgUri } from 'react-native-svg';
12
12
 
13
13
  interface Props {
14
14
  onPress: (item: OnRampCountry) => void;
15
15
  item: OnRampCountry;
16
16
  selected: boolean;
17
+ style?: StyleProp<ViewStyle>;
17
18
  }
18
19
 
19
20
  export const ITEM_HEIGHT = 60;
20
21
 
21
- export function Country({ onPress, item, selected }: Props) {
22
+ export function Country({ onPress, item, selected, style }: Props) {
22
23
  const handlePress = () => {
23
24
  onPress(item);
24
25
  };
25
26
 
26
27
  return (
27
- <Pressable onPress={handlePress} style={styles.container} backgroundColor="transparent">
28
+ <Pressable
29
+ onPress={handlePress}
30
+ style={[styles.container, style]}
31
+ backgroundColor="transparent"
32
+ >
28
33
  <FlexView flexDirection="row" alignItems="center" justifyContent="flex-start" padding="s">
29
34
  <FlexView style={styles.imageContainer}>
30
35
  {item.flagImageUrl && SvgUri ? (
@@ -55,6 +55,7 @@ export function OnRampSettingsView() {
55
55
  item={parsedItem}
56
56
  onPress={onPressModalItem}
57
57
  selected={parsedItem.countryCode === selectedCountry?.countryCode}
58
+ style={styles.selectorItem}
58
59
  />
59
60
  );
60
61
  }
@@ -68,6 +69,7 @@ export function OnRampSettingsView() {
68
69
  selected={parsedItem.currencyCode === paymentCurrency?.currencyCode}
69
70
  title={parsedItem.name}
70
71
  subtitle={parsedItem.currencyCode}
72
+ style={styles.selectorItem}
71
73
  />
72
74
  );
73
75
  };
@@ -79,7 +81,7 @@ export function OnRampSettingsView() {
79
81
  onPress={onCountryPress}
80
82
  chevron
81
83
  style={styles.firstItem}
82
- contentStyle={styles.itemContent}
84
+ contentStyle={styles.listItem}
83
85
  >
84
86
  <FlexView
85
87
  alignItems="center"
@@ -101,7 +103,7 @@ export function OnRampSettingsView() {
101
103
  ) : null}
102
104
  </FlexView>
103
105
  </ListItem>
104
- <ListItem onPress={onPaymentCurrencyPress} chevron contentStyle={styles.itemContent}>
106
+ <ListItem onPress={onPaymentCurrencyPress} chevron contentStyle={styles.listItem}>
105
107
  <FlexView
106
108
  alignItems="center"
107
109
  justifyContent="center"
@@ -2,7 +2,7 @@ import { BorderRadius, Spacing } from '@reown/appkit-ui-react-native';
2
2
  import { StyleSheet } from 'react-native';
3
3
 
4
4
  export const styles = StyleSheet.create({
5
- itemContent: {
5
+ listItem: {
6
6
  paddingLeft: 0
7
7
  },
8
8
  firstItem: {
@@ -21,5 +21,8 @@ export const styles = StyleSheet.create({
21
21
  imageBorder: {
22
22
  borderRadius: BorderRadius.full,
23
23
  overflow: 'hidden'
24
+ },
25
+ selectorItem: {
26
+ paddingHorizontal: Spacing.m
24
27
  }
25
28
  });
@@ -11,7 +11,7 @@ import {
11
11
  Icon,
12
12
  BorderRadius
13
13
  } from '@reown/appkit-ui-react-native';
14
- import { StyleSheet, Image } from 'react-native';
14
+ import { StyleSheet, Image, type StyleProp, type ViewStyle } from 'react-native';
15
15
 
16
16
  export const ITEM_HEIGHT = 60;
17
17
 
@@ -22,9 +22,10 @@ interface Props {
22
22
  title: string;
23
23
  subtitle: string;
24
24
  testID?: string;
25
+ style?: StyleProp<ViewStyle>;
25
26
  }
26
27
 
27
- export function Currency({ onPress, item, selected, title, subtitle, testID }: Props) {
28
+ export function Currency({ onPress, item, selected, title, subtitle, testID, style }: Props) {
28
29
  const Theme = useTheme();
29
30
 
30
31
  const handlePress = () => {
@@ -34,7 +35,7 @@ export function Currency({ onPress, item, selected, title, subtitle, testID }: P
34
35
  return (
35
36
  <Pressable
36
37
  onPress={handlePress}
37
- style={styles.container}
38
+ style={[styles.container, style]}
38
39
  backgroundColor="transparent"
39
40
  testID={testID}
40
41
  >
@@ -23,7 +23,7 @@ export function Header({ onSettingsPress }: HeaderProps) {
23
23
  style={styles.icon}
24
24
  />
25
25
  <Text variant="paragraph-600" numberOfLines={1} testID="header-text">
26
- Buy crypto
26
+ Buy Crypto
27
27
  </Text>
28
28
  <IconLink
29
29
  icon="settings"
@@ -135,6 +135,7 @@ export function OnRampView() {
135
135
  title={item.name}
136
136
  subtitle={item.currencyCode.split('_')[0] ?? item.currencyCode}
137
137
  testID={`currency-item-${item.currencyCode}`}
138
+ style={styles.currencyItem}
138
139
  />
139
140
  );
140
141
  };
@@ -183,7 +184,7 @@ export function OnRampView() {
183
184
  You Buy
184
185
  </Text>
185
186
  <TokenButton
186
- placeholder={'Select currency'}
187
+ placeholder={'Select Token'}
187
188
  imageUrl={purchaseCurrency?.symbolImageUrl}
188
189
  text={purchaseCurrencyCode}
189
190
  onPress={() => setIsCurrencyModalVisible(true)}
@@ -258,7 +259,7 @@ export function OnRampView() {
258
259
  onSearch={handleSearch}
259
260
  renderItem={renderCurrencyItem}
260
261
  keyExtractor={item => item.currencyCode}
261
- title="Select token"
262
+ title="Select Token"
262
263
  itemHeight={CURRENCY_ITEM_HEIGHT}
263
264
  showNetwork
264
265
  />
@@ -24,6 +24,9 @@ export default StyleSheet.create({
24
24
  borderWidth: 0,
25
25
  borderRadius: BorderRadius['3xs']
26
26
  },
27
+ currencyItem: {
28
+ paddingHorizontal: Spacing.m
29
+ },
27
30
  currencyInput: {
28
31
  marginBottom: Spacing.m
29
32
  },
@@ -1,13 +1,11 @@
1
- import { Linking, StyleSheet } from 'react-native';
1
+ import { StyleSheet } from 'react-native';
2
2
  import { Chip, FlexView, Spacing, Text } from '@reown/appkit-ui-react-native';
3
3
  import { ConstantsUtil } from '@reown/appkit-common-react-native';
4
+ import { CoreHelperUtil } from '@reown/appkit-core-react-native';
4
5
 
5
6
  export function UpgradeEmailWalletView() {
6
7
  const onLinkPress = () => {
7
- const link = ConstantsUtil.SECURE_SITE_DASHBOARD;
8
- Linking.canOpenURL(link).then(supported => {
9
- if (supported) Linking.openURL(link);
10
- });
8
+ CoreHelperUtil.openLink(ConstantsUtil.SECURE_SITE_DASHBOARD);
11
9
  };
12
10
 
13
11
  return (