@oottoo-core/oottoo-ui 0.0.2 → 0.0.4
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/README.md +47 -0
- package/dist/index-Bywq0IP9.js +40854 -0
- package/dist/index-jDA5PqgD.js +4053 -0
- package/dist/oottoo-ui.css +1 -0
- package/dist/oottoo-ui.es.js +221 -67
- package/dist/oottoo-ui.umd.js +3200 -1
- package/dist/secp256k1-CipCme_y.js +1479 -0
- package/dist/secp256k1-DKwHNZkY.js +1479 -0
- package/package.json +7 -2
- package/dist/oottoo-core.css +0 -1
package/README.md
CHANGED
|
@@ -83,6 +83,53 @@ Requiere `@oottoo-core/oottoo-icons`:
|
|
|
83
83
|
- `size`: number | string
|
|
84
84
|
- `color`: string
|
|
85
85
|
|
|
86
|
+
### OVeChainLogin
|
|
87
|
+
|
|
88
|
+
Componente para conectar wallet VeChain usando `@vechain/dapp-kit-ui`.
|
|
89
|
+
|
|
90
|
+
**Instalación de dependencia peer:**
|
|
91
|
+
```bash
|
|
92
|
+
npm install @vechain/dapp-kit-ui
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
**Uso:**
|
|
96
|
+
```vue
|
|
97
|
+
<template>
|
|
98
|
+
<o-vechain-login
|
|
99
|
+
variant="primary"
|
|
100
|
+
size="lg"
|
|
101
|
+
network="mainnet"
|
|
102
|
+
@connected="handleConnected"
|
|
103
|
+
@disconnected="handleDisconnected"
|
|
104
|
+
@error="handleError"
|
|
105
|
+
/>
|
|
106
|
+
</template>
|
|
107
|
+
|
|
108
|
+
<script setup>
|
|
109
|
+
const handleConnected = (address) => {
|
|
110
|
+
console.log('Wallet conectada:', address)
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const handleDisconnected = () => {
|
|
114
|
+
console.log('Wallet desconectada')
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const handleError = (error) => {
|
|
118
|
+
console.error('Error:', error)
|
|
119
|
+
}
|
|
120
|
+
</script>
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
**Props:**
|
|
124
|
+
- `variant`: 'primary' | 'secondary' | 'ghost' (default: 'primary')
|
|
125
|
+
- `size`: 'sm' | 'md' | 'lg' (default: 'md')
|
|
126
|
+
- `network`: 'mainnet' | 'testnet' (default: 'mainnet')
|
|
127
|
+
|
|
128
|
+
**Events:**
|
|
129
|
+
- `connected(address)`: Se emite al conectar una wallet
|
|
130
|
+
- `disconnected`: Se emite al desconectar la wallet
|
|
131
|
+
- `error(message)`: Se emite cuando hay un error de conexión
|
|
132
|
+
|
|
86
133
|
## 📄 Licencia
|
|
87
134
|
|
|
88
135
|
MIT - Oottoo Core Team
|