@mictonode/widget 0.3.17 → 0.3.19
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/dist/{main-465ae991.js → main-c424432b.js} +82 -82
- package/dist/ping-widget.js +2 -2
- package/dist/ping-widget.umd.cjs +15 -15
- package/dist/{query.lcd-d9c6163c.js → query.lcd-8531915e.js} +1 -1
- package/dist/{query.rpc.Query-a479e6f9.js → query.rpc.Query-d1e130b4.js} +1 -1
- package/dist/{tx.rpc.msg-7444045d.js → tx.rpc.msg-ef7ee094.js} +1 -1
- package/lib/components/ConnectWallet/index.vue +7 -7
- package/lib/components/TokenConvert/index.vue +10 -10
- package/lib/components/TxDialog/index.vue +422 -422
- package/lib/components/TxDialog/messages/Delegate.vue +4 -4
- package/lib/components/TxDialog/messages/Deposit.vue +3 -3
- package/lib/components/TxDialog/messages/Redelegate.vue +5 -5
- package/lib/components/TxDialog/messages/Send.vue +5 -5
- package/lib/components/TxDialog/messages/Transfer.vue +6 -6
- package/lib/components/TxDialog/messages/Unbond.vue +3 -3
- package/lib/components/TxDialog/messages/Vote.vue +1 -1
- package/lib/components/TxDialog/messages/Withdraw.vue +1 -1
- package/lib/components/TxDialog/messages/WithdrawCommission.vue +1 -1
- package/lib/components/TxDialog/wasm/ClearAdmin.vue +2 -2
- package/lib/components/TxDialog/wasm/ExecuteContract.vue +5 -5
- package/lib/components/TxDialog/wasm/InstantiateContract.vue +6 -6
- package/lib/components/TxDialog/wasm/MigrateContract.vue +4 -4
- package/lib/components/TxDialog/wasm/MigrateContract2.vue +4 -4
- package/lib/components/TxDialog/wasm/StoreCode.vue +2 -2
- package/lib/components/TxDialog/wasm/UpdateAdmin.vue +3 -3
- package/lib/main.css +540 -44
- package/lib/main.ts +1 -0
- package/package.json +3 -4
- package/src/App.vue +6 -6
- package/src/styles/design-system.css +35 -1
- package/tailwind.config.js +1 -54
package/src/App.vue
CHANGED
|
@@ -159,10 +159,10 @@ console.log(ethermintToEth("evmos13zl7c4ea60jt05hxhl2dp443r7zrlz4plc5m8z"))
|
|
|
159
159
|
</script>
|
|
160
160
|
|
|
161
161
|
<template>
|
|
162
|
-
<div class="bg-gray-50 dark:bg-
|
|
162
|
+
<div class="bg-gray-50 dark:bg-surface dark:text-white min-h-[100vh]">
|
|
163
163
|
Ping Widget Version: {{ pingWidget?.version }}
|
|
164
164
|
|
|
165
|
-
<div class="btn
|
|
165
|
+
<div class="btn btn-primary btn-sm normal-case" @click="switchTheme()">
|
|
166
166
|
Theme: {{ theme }}
|
|
167
167
|
</div>
|
|
168
168
|
|
|
@@ -182,7 +182,7 @@ console.log(ethermintToEth("evmos13zl7c4ea60jt05hxhl2dp443r7zrlz4plc5m8z"))
|
|
|
182
182
|
|
|
183
183
|
<br />
|
|
184
184
|
|
|
185
|
-
<label :for="toOpen" class="btn
|
|
185
|
+
<label :for="toOpen" class="btn btn-primary dark:text-white">{{ toOpen }}</label>
|
|
186
186
|
<ping-tx-dialog
|
|
187
187
|
:type="toOpen"
|
|
188
188
|
:sender="conf.sender"
|
|
@@ -194,7 +194,7 @@ console.log(ethermintToEth("evmos13zl7c4ea60jt05hxhl2dp443r7zrlz4plc5m8z"))
|
|
|
194
194
|
|
|
195
195
|
<br />
|
|
196
196
|
// example:<br />
|
|
197
|
-
<label for="withdraw" class="btn
|
|
197
|
+
<label for="withdraw" class="btn btn-primary dark:text-white">Withdraw</label>
|
|
198
198
|
<ping-tx-dialog
|
|
199
199
|
type="withdraw"
|
|
200
200
|
:sender="conf.sender"
|
|
@@ -203,7 +203,7 @@ console.log(ethermintToEth("evmos13zl7c4ea60jt05hxhl2dp443r7zrlz4plc5m8z"))
|
|
|
203
203
|
:params="conf.params"
|
|
204
204
|
></ping-tx-dialog>
|
|
205
205
|
|
|
206
|
-
<label for="store_code" class="btn
|
|
206
|
+
<label for="store_code" class="btn btn-primary dark:text-white">Store Code</label>
|
|
207
207
|
<ping-tx-dialog
|
|
208
208
|
type="store_code"
|
|
209
209
|
:sender="conf.sender"
|
|
@@ -213,7 +213,7 @@ console.log(ethermintToEth("evmos13zl7c4ea60jt05hxhl2dp443r7zrlz4plc5m8z"))
|
|
|
213
213
|
:params="conf.params"
|
|
214
214
|
></ping-tx-dialog>
|
|
215
215
|
|
|
216
|
-
<label for="PingTokenConvert" class="btn
|
|
216
|
+
<label for="PingTokenConvert" class="btn btn-primary dark:text-white">Token Convert</label>
|
|
217
217
|
<ping-token-convert
|
|
218
218
|
:chain-name="conf.chainName"
|
|
219
219
|
:endpoint="conf.endpoint"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
--color-neutral-700: lch(30% 12% 250deg);
|
|
58
58
|
--color-neutral-800: lch(20% 10% 250deg);
|
|
59
59
|
--color-neutral-900: lch(12% 6% 250deg);
|
|
60
|
-
--color-neutral-950: lch(
|
|
60
|
+
--color-neutral-950: lch(5% 2.4 256deg); /* Exact #0f1419 */
|
|
61
61
|
|
|
62
62
|
/* Semantic Colors */
|
|
63
63
|
--color-success: lch(65% 55% 145deg); /* #3fb68b equivalent */
|
|
@@ -65,6 +65,29 @@
|
|
|
65
65
|
--color-error: lch(60% 65% 25deg); /* #ff5353 equivalent */
|
|
66
66
|
--color-info: lch(60% 70% 250deg); /* #0066ff equivalent */
|
|
67
67
|
|
|
68
|
+
/* ==========================================================================
|
|
69
|
+
SEMANTIC ALIAS TOKENS
|
|
70
|
+
Purpose-driven names that resolve to scale tokens above.
|
|
71
|
+
Use these in components for intent, not color.
|
|
72
|
+
========================================================================== */
|
|
73
|
+
|
|
74
|
+
/* Text */
|
|
75
|
+
--color-text-brand: var(--color-primary-500);
|
|
76
|
+
--color-text-muted: var(--color-neutral-400);
|
|
77
|
+
|
|
78
|
+
/* Surface (backgrounds) */
|
|
79
|
+
--color-surface: var(--color-neutral-50); /* Light mode main bg */
|
|
80
|
+
--color-surface-raised: var(--color-neutral-100); /* Card/panel bg */
|
|
81
|
+
--color-surface-overlay: var(--color-neutral-200); /* Modal/dropdown bg */
|
|
82
|
+
|
|
83
|
+
/* Borders */
|
|
84
|
+
--color-border-subtle: var(--color-neutral-200);
|
|
85
|
+
--color-border-default: var(--color-neutral-300);
|
|
86
|
+
|
|
87
|
+
/* Interactive */
|
|
88
|
+
--color-interactive: var(--color-primary-500);
|
|
89
|
+
--color-interactive-hover: var(--color-primary-600);
|
|
90
|
+
|
|
68
91
|
/* ==========================================================================
|
|
69
92
|
SPACING TOKENS (8-Point Grid)
|
|
70
93
|
========================================================================== */
|
|
@@ -147,4 +170,15 @@ html.dark,
|
|
|
147
170
|
html[data-theme='dark'] {
|
|
148
171
|
--color-primary-500: lch(60% 70% 250deg);
|
|
149
172
|
--color-accent-500: lch(70% 65% 190deg);
|
|
173
|
+
|
|
174
|
+
/* Semantic alias dark overrides */
|
|
175
|
+
--color-text-brand: var(--color-primary-400); /* WCAG AA */
|
|
176
|
+
--color-text-muted: var(--color-neutral-400);
|
|
177
|
+
--color-surface: var(--color-neutral-950); /* #0f1419 */
|
|
178
|
+
--color-surface-raised: var(--color-neutral-900); /* Card bg */
|
|
179
|
+
--color-surface-overlay: var(--color-neutral-800); /* Modal bg */
|
|
180
|
+
--color-border-subtle: var(--color-neutral-800);
|
|
181
|
+
--color-border-default: var(--color-neutral-700);
|
|
182
|
+
--color-interactive: var(--color-primary-500);
|
|
183
|
+
--color-interactive-hover: var(--color-primary-400);
|
|
150
184
|
}
|
package/tailwind.config.js
CHANGED
|
@@ -154,58 +154,5 @@ export default {
|
|
|
154
154
|
},
|
|
155
155
|
},
|
|
156
156
|
},
|
|
157
|
-
plugins: [
|
|
158
|
-
daisyui: {
|
|
159
|
-
themes: [
|
|
160
|
-
{
|
|
161
|
-
light: {
|
|
162
|
-
...require('daisyui/src/theming/themes')['[data-theme=light]'],
|
|
163
|
-
// PROTECTED: Primary color #0066ff (synced with explorer)
|
|
164
|
-
primary: '#0066ff',
|
|
165
|
-
'primary-focus': '#0052cc',
|
|
166
|
-
'primary-content': '#ffffff',
|
|
167
|
-
secondary: '#1e40af',
|
|
168
|
-
'secondary-focus': '#1e3a8a',
|
|
169
|
-
'secondary-content': '#ffffff',
|
|
170
|
-
accent: '#3b82f6',
|
|
171
|
-
'accent-focus': '#2563eb',
|
|
172
|
-
'accent-content': '#ffffff',
|
|
173
|
-
info: '#0066ff',
|
|
174
|
-
success: '#3fb68b',
|
|
175
|
-
warning: '#f59e0b',
|
|
176
|
-
error: '#ff5353',
|
|
177
|
-
neutral: '#1e40af',
|
|
178
|
-
'neutral-focus': '#1e3a8a',
|
|
179
|
-
'neutral-content': '#ffffff',
|
|
180
|
-
},
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
dark: {
|
|
184
|
-
...require('daisyui/src/theming/themes')['[data-theme=dark]'],
|
|
185
|
-
// PROTECTED: Primary color #0066ff (synced with explorer)
|
|
186
|
-
primary: '#0066ff',
|
|
187
|
-
'primary-focus': '#0052cc',
|
|
188
|
-
'primary-content': '#ffffff',
|
|
189
|
-
secondary: '#1e40af',
|
|
190
|
-
'secondary-focus': '#1e3a8a',
|
|
191
|
-
'secondary-content': '#ffffff',
|
|
192
|
-
accent: '#3b82f6',
|
|
193
|
-
'accent-focus': '#2563eb',
|
|
194
|
-
'accent-content': '#ffffff',
|
|
195
|
-
info: '#0066ff',
|
|
196
|
-
success: '#3fb68b',
|
|
197
|
-
warning: '#f59e0b',
|
|
198
|
-
error: '#ff5353',
|
|
199
|
-
neutral: '#1e40af',
|
|
200
|
-
'neutral-focus': '#1e3a8a',
|
|
201
|
-
'neutral-content': '#ffffff',
|
|
202
|
-
// Explorer DS overrides (S4 4.20)
|
|
203
|
-
'base-100': '#0f1419',
|
|
204
|
-
'base-200': '#1a1f2e',
|
|
205
|
-
'base-300': '#232a3a',
|
|
206
|
-
'base-content': '#e5e7eb',
|
|
207
|
-
},
|
|
208
|
-
},
|
|
209
|
-
],
|
|
210
|
-
},
|
|
157
|
+
plugins: [],
|
|
211
158
|
};
|