@reown/appkit-ui-react-native 0.0.0-develop-20241121145434 → 0.0.0-develop-20250117150918
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/lib/commonjs/assets/svg/RecycleHorizontal.js +21 -0
- package/lib/commonjs/assets/svg/RecycleHorizontal.js.map +1 -0
- package/lib/commonjs/components/wui-icon/index.js +2 -0
- package/lib/commonjs/components/wui-icon/index.js.map +1 -1
- package/lib/commonjs/components/wui-pressable/index.js +68 -0
- package/lib/commonjs/components/wui-pressable/index.js.map +1 -0
- package/lib/commonjs/components/wui-shimmer/index.js +5 -1
- package/lib/commonjs/components/wui-shimmer/index.js.map +1 -1
- package/lib/commonjs/components/wui-text/index.js +2 -2
- package/lib/commonjs/components/wui-text/index.js.map +1 -1
- package/lib/commonjs/composites/wui-button/index.js +2 -1
- package/lib/commonjs/composites/wui-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-button/styles.js +3 -3
- package/lib/commonjs/composites/wui-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-card-select/index.js +4 -2
- package/lib/commonjs/composites/wui-card-select/index.js.map +1 -1
- package/lib/commonjs/composites/wui-input-text/index.js +5 -4
- package/lib/commonjs/composites/wui-input-text/index.js.map +1 -1
- package/lib/commonjs/composites/wui-list-token/index.js +29 -9
- package/lib/commonjs/composites/wui-list-token/index.js.map +1 -1
- package/lib/commonjs/composites/wui-list-token/styles.js +3 -0
- package/lib/commonjs/composites/wui-list-token/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-list-wallet/index.js +2 -3
- package/lib/commonjs/composites/wui-list-wallet/index.js.map +1 -1
- package/lib/commonjs/composites/wui-network-button/index.js +4 -2
- package/lib/commonjs/composites/wui-network-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-search-bar/index.js +2 -4
- package/lib/commonjs/composites/wui-search-bar/index.js.map +1 -1
- package/lib/commonjs/composites/wui-snackbar/index.js +6 -2
- package/lib/commonjs/composites/wui-snackbar/index.js.map +1 -1
- package/lib/commonjs/composites/wui-toggle/index.js +65 -0
- package/lib/commonjs/composites/wui-toggle/index.js.map +1 -0
- package/lib/commonjs/composites/wui-toggle/styles.js +30 -0
- package/lib/commonjs/composites/wui-toggle/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-token-button/index.js +21 -11
- package/lib/commonjs/composites/wui-token-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-token-button/styles.js +4 -0
- package/lib/commonjs/composites/wui-token-button/styles.js.map +1 -1
- package/lib/commonjs/context/ThemeContext.js +41 -0
- package/lib/commonjs/context/ThemeContext.js.map +1 -0
- package/lib/commonjs/hooks/useTheme.js +5 -7
- package/lib/commonjs/hooks/useTheme.js.map +1 -1
- package/lib/commonjs/index.js +27 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/layout/wui-flex/index.js +3 -2
- package/lib/commonjs/layout/wui-flex/index.js.map +1 -1
- package/lib/commonjs/layout/wui-separator/index.js +4 -4
- package/lib/commonjs/layout/wui-separator/index.js.map +1 -1
- package/lib/commonjs/utils/ThemeUtil.js +18 -1
- package/lib/commonjs/utils/ThemeUtil.js.map +1 -1
- package/lib/commonjs/utils/TransactionUtil.js +56 -45
- package/lib/commonjs/utils/TransactionUtil.js.map +1 -1
- package/lib/module/assets/svg/RecycleHorizontal.js +13 -0
- package/lib/module/assets/svg/RecycleHorizontal.js.map +1 -0
- package/lib/module/components/wui-icon/index.js +2 -0
- package/lib/module/components/wui-icon/index.js.map +1 -1
- package/lib/module/components/wui-pressable/index.js +62 -0
- package/lib/module/components/wui-pressable/index.js.map +1 -0
- package/lib/module/components/wui-shimmer/index.js +6 -2
- package/lib/module/components/wui-shimmer/index.js.map +1 -1
- package/lib/module/components/wui-text/index.js +2 -2
- package/lib/module/components/wui-text/index.js.map +1 -1
- package/lib/module/composites/wui-button/index.js +2 -1
- package/lib/module/composites/wui-button/index.js.map +1 -1
- package/lib/module/composites/wui-button/styles.js +3 -3
- package/lib/module/composites/wui-button/styles.js.map +1 -1
- package/lib/module/composites/wui-card-select/index.js +4 -2
- package/lib/module/composites/wui-card-select/index.js.map +1 -1
- package/lib/module/composites/wui-input-text/index.js +5 -4
- package/lib/module/composites/wui-input-text/index.js.map +1 -1
- package/lib/module/composites/wui-list-token/index.js +27 -8
- package/lib/module/composites/wui-list-token/index.js.map +1 -1
- package/lib/module/composites/wui-list-token/styles.js +3 -0
- package/lib/module/composites/wui-list-token/styles.js.map +1 -1
- package/lib/module/composites/wui-list-wallet/index.js +3 -4
- package/lib/module/composites/wui-list-wallet/index.js.map +1 -1
- package/lib/module/composites/wui-network-button/index.js +4 -2
- package/lib/module/composites/wui-network-button/index.js.map +1 -1
- package/lib/module/composites/wui-search-bar/index.js +2 -4
- package/lib/module/composites/wui-search-bar/index.js.map +1 -1
- package/lib/module/composites/wui-snackbar/index.js +6 -2
- package/lib/module/composites/wui-snackbar/index.js.map +1 -1
- package/lib/module/composites/wui-toggle/index.js +58 -0
- package/lib/module/composites/wui-toggle/index.js.map +1 -0
- package/lib/module/composites/wui-toggle/styles.js +24 -0
- package/lib/module/composites/wui-toggle/styles.js.map +1 -0
- package/lib/module/composites/wui-token-button/index.js +21 -11
- package/lib/module/composites/wui-token-button/index.js.map +1 -1
- package/lib/module/composites/wui-token-button/styles.js +4 -0
- package/lib/module/composites/wui-token-button/styles.js.map +1 -1
- package/lib/module/context/ThemeContext.js +33 -0
- package/lib/module/context/ThemeContext.js.map +1 -0
- package/lib/module/hooks/useTheme.js +4 -7
- package/lib/module/hooks/useTheme.js.map +1 -1
- package/lib/module/index.js +4 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/layout/wui-flex/index.js +3 -2
- package/lib/module/layout/wui-flex/index.js.map +1 -1
- package/lib/module/layout/wui-separator/index.js +4 -4
- package/lib/module/layout/wui-separator/index.js.map +1 -1
- package/lib/module/utils/ThemeUtil.js +16 -0
- package/lib/module/utils/ThemeUtil.js.map +1 -1
- package/lib/module/utils/TransactionUtil.js +56 -45
- package/lib/module/utils/TransactionUtil.js.map +1 -1
- package/lib/typescript/assets/svg/RecycleHorizontal.d.ts +4 -0
- package/lib/typescript/assets/svg/RecycleHorizontal.d.ts.map +1 -0
- package/lib/typescript/components/wui-icon/index.d.ts.map +1 -1
- package/lib/typescript/components/wui-pressable/index.d.ts +17 -0
- package/lib/typescript/components/wui-pressable/index.d.ts.map +1 -0
- package/lib/typescript/components/wui-shimmer/index.d.ts.map +1 -1
- package/lib/typescript/components/wui-text/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-card-select/index.d.ts +2 -1
- package/lib/typescript/composites/wui-card-select/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-input-text/index.d.ts +3 -1
- package/lib/typescript/composites/wui-input-text/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-token/index.d.ts +4 -1
- package/lib/typescript/composites/wui-list-token/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-token/styles.d.ts +3 -0
- package/lib/typescript/composites/wui-list-token/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-wallet/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-button/index.d.ts +2 -1
- package/lib/typescript/composites/wui-network-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-search-bar/index.d.ts +1 -2
- package/lib/typescript/composites/wui-search-bar/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-snackbar/index.d.ts +1 -1
- package/lib/typescript/composites/wui-snackbar/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-toggle/index.d.ts +11 -0
- package/lib/typescript/composites/wui-toggle/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-toggle/styles.d.ts +23 -0
- package/lib/typescript/composites/wui-toggle/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-token-button/index.d.ts +7 -3
- package/lib/typescript/composites/wui-token-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-token-button/styles.d.ts +4 -0
- package/lib/typescript/composites/wui-token-button/styles.d.ts.map +1 -1
- package/lib/typescript/context/ThemeContext.d.ts +78 -0
- package/lib/typescript/context/ThemeContext.d.ts.map +1 -0
- package/lib/typescript/hooks/useTheme.d.ts +1 -1
- package/lib/typescript/hooks/useTheme.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +4 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/layout/wui-flex/index.d.ts +2 -1
- package/lib/typescript/layout/wui-flex/index.d.ts.map +1 -1
- package/lib/typescript/layout/wui-separator/index.d.ts.map +1 -1
- package/lib/typescript/utils/ThemeUtil.d.ts +13 -0
- package/lib/typescript/utils/ThemeUtil.d.ts.map +1 -1
- package/lib/typescript/utils/TransactionUtil.d.ts +9 -1
- package/lib/typescript/utils/TransactionUtil.d.ts.map +1 -1
- package/lib/typescript/utils/TypesUtil.d.ts +2 -2
- package/lib/typescript/utils/TypesUtil.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/assets/svg/RecycleHorizontal.tsx +12 -0
- package/src/components/wui-icon/index.tsx +2 -0
- package/src/components/wui-pressable/index.tsx +92 -0
- package/src/components/wui-shimmer/index.tsx +9 -2
- package/src/components/wui-text/index.tsx +3 -4
- package/src/composites/wui-button/index.tsx +1 -1
- package/src/composites/wui-button/styles.ts +3 -3
- package/src/composites/wui-card-select/index.tsx +4 -1
- package/src/composites/wui-input-text/index.tsx +11 -3
- package/src/composites/wui-list-token/index.tsx +31 -8
- package/src/composites/wui-list-token/styles.ts +3 -0
- package/src/composites/wui-list-wallet/index.tsx +5 -6
- package/src/composites/wui-network-button/index.tsx +4 -1
- package/src/composites/wui-search-bar/index.tsx +1 -4
- package/src/composites/wui-snackbar/index.tsx +13 -3
- package/src/composites/wui-toggle/index.tsx +81 -0
- package/src/composites/wui-toggle/styles.ts +24 -0
- package/src/composites/wui-token-button/index.tsx +37 -8
- package/src/composites/wui-token-button/styles.ts +4 -0
- package/src/context/ThemeContext.tsx +44 -0
- package/src/hooks/useTheme.ts +4 -8
- package/src/index.ts +4 -1
- package/src/layout/wui-flex/index.tsx +7 -3
- package/src/layout/wui-separator/index.tsx +4 -7
- package/src/utils/ThemeUtil.ts +18 -0
- package/src/utils/TransactionUtil.ts +72 -52
- package/src/utils/TypesUtil.ts +2 -0
- package/lib/commonjs/components/wui-lean-text/index.js +0 -15
- package/lib/commonjs/components/wui-lean-text/index.js.map +0 -1
- package/lib/commonjs/components/wui-lean-text/index.web.js +0 -13
- package/lib/commonjs/components/wui-lean-text/index.web.js.map +0 -1
- package/lib/commonjs/components/wui-lean-view/index.js +0 -15
- package/lib/commonjs/components/wui-lean-view/index.js.map +0 -1
- package/lib/commonjs/components/wui-lean-view/index.web.js +0 -13
- package/lib/commonjs/components/wui-lean-view/index.web.js.map +0 -1
- package/lib/module/components/wui-lean-text/index.js +0 -10
- package/lib/module/components/wui-lean-text/index.js.map +0 -1
- package/lib/module/components/wui-lean-text/index.web.js +0 -3
- package/lib/module/components/wui-lean-text/index.web.js.map +0 -1
- package/lib/module/components/wui-lean-view/index.js +0 -10
- package/lib/module/components/wui-lean-view/index.js.map +0 -1
- package/lib/module/components/wui-lean-view/index.web.js +0 -3
- package/lib/module/components/wui-lean-view/index.web.js.map +0 -1
- package/lib/typescript/components/wui-lean-text/index.d.ts +0 -5
- package/lib/typescript/components/wui-lean-text/index.d.ts.map +0 -1
- package/lib/typescript/components/wui-lean-text/index.web.d.ts +0 -3
- package/lib/typescript/components/wui-lean-text/index.web.d.ts.map +0 -1
- package/lib/typescript/components/wui-lean-view/index.d.ts +0 -5
- package/lib/typescript/components/wui-lean-view/index.d.ts.map +0 -1
- package/lib/typescript/components/wui-lean-view/index.web.d.ts +0 -3
- package/lib/typescript/components/wui-lean-view/index.web.d.ts.map +0 -1
- package/src/components/wui-lean-text/index.tsx +0 -10
- package/src/components/wui-lean-text/index.web.tsx +0 -3
- package/src/components/wui-lean-view/index.tsx +0 -10
- package/src/components/wui-lean-view/index.web.tsx +0 -3
|
@@ -2,7 +2,8 @@ import { DateUtil } from '@reown/appkit-common-react-native';
|
|
|
2
2
|
import type {
|
|
3
3
|
TransactionTransfer,
|
|
4
4
|
Transaction,
|
|
5
|
-
TransactionImage
|
|
5
|
+
TransactionImage,
|
|
6
|
+
TransactionMetadata
|
|
6
7
|
} from '@reown/appkit-common-react-native';
|
|
7
8
|
import type { TransactionType } from './TypesUtil';
|
|
8
9
|
import { UiUtil } from './UiUtil';
|
|
@@ -24,20 +25,22 @@ export const TransactionUtil = {
|
|
|
24
25
|
},
|
|
25
26
|
|
|
26
27
|
getTransactionImages(transfers: TransactionTransfer[]): TransactionImage[] {
|
|
27
|
-
const [
|
|
28
|
-
const isAllNFT = Boolean(transfer) && transfers?.every(item => Boolean(item.nft_info));
|
|
28
|
+
const isAllNFT = Boolean(transfers[0]) && transfers?.every(item => Boolean(item.nft_info));
|
|
29
29
|
const haveMultipleTransfers = transfers?.length > 1;
|
|
30
30
|
const haveTwoTransfers = transfers?.length === 2;
|
|
31
31
|
|
|
32
32
|
if (haveTwoTransfers && !isAllNFT) {
|
|
33
|
-
|
|
33
|
+
const first = transfers.find(t => t?.direction === 'out');
|
|
34
|
+
const second = transfers.find(t => t?.direction === 'in');
|
|
35
|
+
|
|
36
|
+
return [this.getTransactionImage(first), this.getTransactionImage(second)];
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
if (haveMultipleTransfers) {
|
|
37
40
|
return transfers.map(item => this.getTransactionImage(item));
|
|
38
41
|
}
|
|
39
42
|
|
|
40
|
-
return [this.getTransactionImage(
|
|
43
|
+
return [this.getTransactionImage(transfers[0])];
|
|
41
44
|
},
|
|
42
45
|
|
|
43
46
|
getTransactionImage(transfer?: TransactionTransfer): TransactionImage {
|
|
@@ -72,66 +75,83 @@ export const TransactionUtil = {
|
|
|
72
75
|
},
|
|
73
76
|
|
|
74
77
|
getTransactionDescriptions(transaction: Transaction) {
|
|
75
|
-
|
|
78
|
+
if (!transaction.metadata) {
|
|
79
|
+
return ['Unknown transaction'];
|
|
80
|
+
}
|
|
76
81
|
|
|
82
|
+
const type = transaction?.metadata?.operationType as TransactionType;
|
|
77
83
|
const transfers = transaction?.transfers;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
haveTransfer && transfers?.every(transfer => Boolean(transfer?.fungible_info));
|
|
83
|
-
const [firstTransfer, secondTransfer] = transfers;
|
|
84
|
-
|
|
85
|
-
let firstDescription = this.getTransferDescription(firstTransfer);
|
|
86
|
-
let secondDescription = this.getTransferDescription(secondTransfer);
|
|
87
|
-
|
|
88
|
-
if (!haveTransfer) {
|
|
89
|
-
if (isSendOrReceive && isFungible) {
|
|
90
|
-
firstDescription = UiUtil.getTruncateString({
|
|
91
|
-
string: transaction?.metadata.sentFrom,
|
|
92
|
-
charsStart: 4,
|
|
93
|
-
charsEnd: 6,
|
|
94
|
-
truncate: 'middle'
|
|
95
|
-
});
|
|
96
|
-
secondDescription = UiUtil.getTruncateString({
|
|
97
|
-
string: transaction?.metadata.sentTo,
|
|
98
|
-
charsStart: 4,
|
|
99
|
-
charsEnd: 6,
|
|
100
|
-
truncate: 'middle'
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
return [firstDescription, secondDescription];
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
return [transaction.metadata.status];
|
|
84
|
+
|
|
85
|
+
// Early return for trade transactions
|
|
86
|
+
if (type === 'trade') {
|
|
87
|
+
return this.getTradeDescriptions(transfers);
|
|
107
88
|
}
|
|
108
89
|
|
|
109
|
-
|
|
110
|
-
|
|
90
|
+
// Handle multiple transfers
|
|
91
|
+
if (transfers.length > 1) {
|
|
92
|
+
return transfers.map(transfer => this.getTransferDescription(transfer));
|
|
111
93
|
}
|
|
112
94
|
|
|
113
|
-
|
|
114
|
-
if (
|
|
115
|
-
|
|
116
|
-
} else if (minusTypes.includes(type)) {
|
|
117
|
-
prefix = '-';
|
|
95
|
+
// Handle single transfer
|
|
96
|
+
if (transfers.length === 1) {
|
|
97
|
+
return [this.formatSingleTransfer(transfers[0]!, type, transaction.metadata)];
|
|
118
98
|
}
|
|
119
99
|
|
|
120
|
-
|
|
100
|
+
return [transaction.metadata.status];
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
isSendReceiveTransaction(type: TransactionType): boolean {
|
|
104
|
+
return type === 'send' || type === 'receive';
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
hasFungibleTransfers(transfers: TransactionTransfer[]): boolean {
|
|
108
|
+
return transfers.every(transfer => Boolean(transfer?.fungible_info));
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
getSendReceiveDescriptions(metadata: TransactionMetadata): string[] {
|
|
112
|
+
return [this.truncateAddress(metadata.sentFrom), this.truncateAddress(metadata.sentTo)];
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
truncateAddress(address: string): string {
|
|
116
|
+
return UiUtil.getTruncateString({
|
|
117
|
+
string: address,
|
|
118
|
+
charsStart: 4,
|
|
119
|
+
charsEnd: 6,
|
|
120
|
+
truncate: 'middle'
|
|
121
|
+
});
|
|
122
|
+
},
|
|
121
123
|
|
|
122
|
-
|
|
124
|
+
formatSingleTransfer(
|
|
125
|
+
transfer: TransactionTransfer,
|
|
126
|
+
type: TransactionType,
|
|
127
|
+
metadata: TransactionMetadata
|
|
128
|
+
): string {
|
|
129
|
+
const prefix = this.getPrefix(type);
|
|
130
|
+
let description = prefix.concat(this.getTransferDescription(transfer));
|
|
131
|
+
|
|
132
|
+
if (this.isSendReceiveTransaction(type)) {
|
|
123
133
|
const isSend = type === 'send';
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
charsStart: 4,
|
|
127
|
-
charsEnd: 4,
|
|
128
|
-
truncate: 'middle'
|
|
129
|
-
});
|
|
134
|
+
|
|
135
|
+
const address = this.truncateAddress(isSend ? metadata.sentTo : metadata.sentFrom);
|
|
130
136
|
const arrow = isSend ? '→' : '←';
|
|
131
|
-
|
|
137
|
+
description = description.concat(` ${arrow} ${address}`);
|
|
132
138
|
}
|
|
133
139
|
|
|
134
|
-
return
|
|
140
|
+
return description;
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
getPrefix(type: TransactionType): string {
|
|
144
|
+
if (plusTypes.includes(type)) return '+';
|
|
145
|
+
if (minusTypes.includes(type)) return '-';
|
|
146
|
+
|
|
147
|
+
return '';
|
|
148
|
+
},
|
|
149
|
+
|
|
150
|
+
getTradeDescriptions(transfers: TransactionTransfer[]): string[] {
|
|
151
|
+
const outTransfer = transfers.find(transfer => transfer?.direction === 'out');
|
|
152
|
+
const inTransfer = transfers.find(transfer => transfer?.direction === 'in');
|
|
153
|
+
|
|
154
|
+
return [this.getTransferDescription(outTransfer), this.getTransferDescription(inTransfer)];
|
|
135
155
|
},
|
|
136
156
|
|
|
137
157
|
getTransferDescription(transfer?: TransactionTransfer) {
|
package/src/utils/TypesUtil.ts
CHANGED
|
@@ -112,6 +112,7 @@ export type ColorType =
|
|
|
112
112
|
| 'gray-glass-020'
|
|
113
113
|
| 'gray-glass-010'
|
|
114
114
|
| 'gray-glass-005'
|
|
115
|
+
| 'gray-glass-002'
|
|
115
116
|
| 'inverse-000'
|
|
116
117
|
| 'inverse-100'
|
|
117
118
|
| 'success-100'
|
|
@@ -174,6 +175,7 @@ export type IconType =
|
|
|
174
175
|
| 'off'
|
|
175
176
|
| 'paperplane'
|
|
176
177
|
| 'qrCode'
|
|
178
|
+
| 'recycleHorizontal'
|
|
177
179
|
| 'refresh'
|
|
178
180
|
| 'search'
|
|
179
181
|
| 'swapHorizontal'
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.LeanText = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
const LeanText = exports.LeanText = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
9
|
-
return /*#__PURE__*/(0, _react.createElement)('RCTText', {
|
|
10
|
-
...props,
|
|
11
|
-
ref
|
|
12
|
-
});
|
|
13
|
-
});
|
|
14
|
-
LeanText.displayName = 'RCTText';
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","LeanText","exports","forwardRef","props","ref","createElement","displayName"],"sourceRoot":"../../../../src","sources":["components/wui-lean-text/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,MAAMC,QAAQ,GAAAC,OAAA,CAAAD,QAAA,gBAAG,IAAAE,iBAAU,EAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EAC1C,oBAAO,IAAAC,oBAAa,EAAC,SAAS,EAAE;IAAE,GAAGF,KAAK;IAAEC;EAAI,CAAC,CAAC;AACpD,CAAC,CAA6B;AAE9BJ,QAAQ,CAACM,WAAW,GAAG,SAAS"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "LeanText", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _reactNative.Text;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _reactNative = require("react-native");
|
|
13
|
-
//# sourceMappingURL=index.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require"],"sourceRoot":"../../../../src","sources":["components/wui-lean-text/index.web.tsx"],"mappings":";;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.LeanView = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
const LeanView = exports.LeanView = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
9
|
-
return /*#__PURE__*/(0, _react.createElement)('RCTView', {
|
|
10
|
-
...props,
|
|
11
|
-
ref
|
|
12
|
-
});
|
|
13
|
-
});
|
|
14
|
-
LeanView.displayName = 'RCTView';
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","LeanView","exports","forwardRef","props","ref","createElement","displayName"],"sourceRoot":"../../../../src","sources":["components/wui-lean-view/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,MAAMC,QAAQ,GAAAC,OAAA,CAAAD,QAAA,gBAAG,IAAAE,iBAAU,EAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EAC1C,oBAAO,IAAAC,oBAAa,EAAC,SAAS,EAAE;IAAE,GAAGF,KAAK;IAAEC;EAAI,CAAC,CAAC;AACpD,CAAC,CAA6B;AAE9BJ,QAAQ,CAACM,WAAW,GAAG,SAAS"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "LeanView", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _reactNative.View;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _reactNative = require("react-native");
|
|
13
|
-
//# sourceMappingURL=index.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require"],"sourceRoot":"../../../../src","sources":["components/wui-lean-view/index.web.tsx"],"mappings":";;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react';
|
|
2
|
-
const LeanText = /*#__PURE__*/forwardRef((props, ref) => {
|
|
3
|
-
return /*#__PURE__*/createElement('RCTText', {
|
|
4
|
-
...props,
|
|
5
|
-
ref
|
|
6
|
-
});
|
|
7
|
-
});
|
|
8
|
-
LeanText.displayName = 'RCTText';
|
|
9
|
-
export { LeanText };
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createElement","forwardRef","LeanText","props","ref","displayName"],"sourceRoot":"../../../../src","sources":["components/wui-lean-text/index.tsx"],"mappings":"AAAA,SAA6BA,aAAa,EAAEC,UAAU,QAAQ,OAAO;AAGrE,MAAMC,QAAQ,gBAAGD,UAAU,CAAC,CAACE,KAAK,EAAEC,GAAG,KAAK;EAC1C,oBAAOJ,aAAa,CAAC,SAAS,EAAE;IAAE,GAAGG,KAAK;IAAEC;EAAI,CAAC,CAAC;AACpD,CAAC,CAA6B;AAE9BF,QAAQ,CAACG,WAAW,GAAG,SAAS;AAEhC,SAASH,QAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Text","LeanText"],"sourceRoot":"../../../../src","sources":["components/wui-lean-text/index.web.tsx"],"mappings":"AAAA,SAASA,IAAI,QAAQ,cAAc;AAEnC,SAASA,IAAI,IAAIC,QAAQ"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from 'react';
|
|
2
|
-
const LeanView = /*#__PURE__*/forwardRef((props, ref) => {
|
|
3
|
-
return /*#__PURE__*/createElement('RCTView', {
|
|
4
|
-
...props,
|
|
5
|
-
ref
|
|
6
|
-
});
|
|
7
|
-
});
|
|
8
|
-
LeanView.displayName = 'RCTView';
|
|
9
|
-
export { LeanView };
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createElement","forwardRef","LeanView","props","ref","displayName"],"sourceRoot":"../../../../src","sources":["components/wui-lean-view/index.tsx"],"mappings":"AAAA,SAA6BA,aAAa,EAAEC,UAAU,QAAQ,OAAO;AAGrE,MAAMC,QAAQ,gBAAGD,UAAU,CAAC,CAACE,KAAK,EAAEC,GAAG,KAAK;EAC1C,oBAAOJ,aAAa,CAAC,SAAS,EAAE;IAAE,GAAGG,KAAK;IAAEC;EAAI,CAAC,CAAC;AACpD,CAAC,CAA6B;AAE9BF,QAAQ,CAACG,WAAW,GAAG,SAAS;AAEhC,SAASH,QAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["View","LeanView"],"sourceRoot":"../../../../src","sources":["components/wui-lean-view/index.web.tsx"],"mappings":"AAAA,SAASA,IAAI,QAAQ,cAAc;AAEnC,SAASA,IAAI,IAAIC,QAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/wui-lean-text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,OAAO,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,QAAA,MAAM,QAAQ,0BAEgB,CAAC;AAI/B,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/components/wui-lean-text/index.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/wui-lean-view/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,OAAO,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,QAAA,MAAM,QAAQ,0BAEgB,CAAC;AAI/B,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/components/wui-lean-view/index.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ComponentType, createElement, forwardRef } from 'react';
|
|
2
|
-
import type { TextProps } from 'react-native';
|
|
3
|
-
|
|
4
|
-
const LeanText = forwardRef((props, ref) => {
|
|
5
|
-
return createElement('RCTText', { ...props, ref });
|
|
6
|
-
}) as ComponentType<TextProps>;
|
|
7
|
-
|
|
8
|
-
LeanText.displayName = 'RCTText';
|
|
9
|
-
|
|
10
|
-
export { LeanText };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ComponentType, createElement, forwardRef } from 'react';
|
|
2
|
-
import type { ViewProps } from 'react-native';
|
|
3
|
-
|
|
4
|
-
const LeanView = forwardRef((props, ref) => {
|
|
5
|
-
return createElement('RCTView', { ...props, ref });
|
|
6
|
-
}) as ComponentType<ViewProps>;
|
|
7
|
-
|
|
8
|
-
LeanView.displayName = 'RCTView';
|
|
9
|
-
|
|
10
|
-
export { LeanView };
|