@swype-org/react-sdk 0.1.167 → 0.1.171
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/index.cjs +40 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +40 -41
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2176,38 +2176,28 @@ function svgToDataUri(svg) {
|
|
|
2176
2176
|
var BASE_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 111 111" fill="none">
|
|
2177
2177
|
<path d="M54.921 110.034C85.359 110.034 110.034 85.402 110.034 55.017C110.034 24.6319 85.359 0 54.921 0C26.0432 0 2.35281 22.1714 0 50.3923H72.8467V59.6416H0C2.35281 87.8625 26.0432 110.034 54.921 110.034Z" fill="#0052FF"/>
|
|
2178
2178
|
</svg>`;
|
|
2179
|
-
var METAMASK_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
|
2180
|
-
<
|
|
2181
|
-
<
|
|
2182
|
-
<
|
|
2183
|
-
<
|
|
2184
|
-
<
|
|
2185
|
-
<
|
|
2186
|
-
<
|
|
2187
|
-
<polygon fill="#CD6116" stroke="#CD6116" stroke-linecap="round" stroke-linejoin="round" points="177.9,230.9 211.8,247.4 207.1,208.1"/>
|
|
2188
|
-
<polygon fill="#E4761B" stroke="#E4761B" stroke-linecap="round" stroke-linejoin="round" points="211.8,247.4 177.9,230.9 180.6,253 180.3,262.3"/>
|
|
2189
|
-
<polygon fill="#E4761B" stroke="#E4761B" stroke-linecap="round" stroke-linejoin="round" points="107.8,247.4 138.3,262.3 138.1,253 140.6,230.9"/>
|
|
2190
|
-
<polygon fill="#763D16" stroke="#763D16" stroke-linecap="round" stroke-linejoin="round" points="138.8,193.5 110.6,185.2 130.5,176.1"/>
|
|
2191
|
-
<polygon fill="#763D16" stroke="#763D16" stroke-linecap="round" stroke-linejoin="round" points="179.7,193.5 188,176.1 208,185.2"/>
|
|
2192
|
-
<polygon fill="#F6851B" stroke="#F6851B" stroke-linecap="round" stroke-linejoin="round" points="107.8,247.4 111.6,206.8 81.3,207.7"/>
|
|
2193
|
-
<polygon fill="#F6851B" stroke="#F6851B" stroke-linecap="round" stroke-linejoin="round" points="207,206.8 211.8,247.4 238.3,207.7"/>
|
|
2194
|
-
<polygon fill="#F6851B" stroke="#F6851B" stroke-linecap="round" stroke-linejoin="round" points="230.8,162.1 174.6,164.6 179.8,193.5 188.1,176.1 208.1,185.2"/>
|
|
2195
|
-
<polygon fill="#F6851B" stroke="#F6851B" stroke-linecap="round" stroke-linejoin="round" points="110.6,185.2 130.6,176.1 138.8,193.5 143.1,164.6 87.8,162.1"/>
|
|
2196
|
-
<polygon fill="#E4751F" stroke="#E4751F" stroke-linecap="round" stroke-linejoin="round" points="87.8,162.1 111.4,208.1 110.6,185.2"/>
|
|
2197
|
-
<polygon fill="#E4751F" stroke="#E4751F" stroke-linecap="round" stroke-linejoin="round" points="208.1,185.2 207.1,208.1 230.8,162.1"/>
|
|
2198
|
-
<polygon fill="#E4751F" stroke="#E4751F" stroke-linecap="round" stroke-linejoin="round" points="143.1,164.6 138.8,193.5 144.1,218.9 145.3,182.8"/>
|
|
2199
|
-
<polygon fill="#E4751F" stroke="#E4751F" stroke-linecap="round" stroke-linejoin="round" points="174.6,164.6 173.1,182.6 174.4,218.9 179.8,193.5"/>
|
|
2200
|
-
<polygon fill="#F6851B" stroke="#F6851B" stroke-linecap="round" stroke-linejoin="round" points="179.8,193.5 174.4,218.9 177.9,230.9 207.1,208.1 208.1,185.2"/>
|
|
2201
|
-
<polygon fill="#F6851B" stroke="#F6851B" stroke-linecap="round" stroke-linejoin="round" points="110.6,185.2 111.4,208.1 140.6,230.9 144.1,218.9 138.8,193.5"/>
|
|
2202
|
-
<polygon fill="#C0AD9E" stroke="#C0AD9E" stroke-linecap="round" stroke-linejoin="round" points="180.3,262.3 180.6,253 178.1,250.8 140.4,250.8 138.1,253 138.3,262.3 107.8,247.4 117.8,255.1 140.1,271.9 178.4,271.9 200.8,255.1 211.8,247.4"/>
|
|
2203
|
-
<polygon fill="#161616" stroke="#161616" stroke-linecap="round" stroke-linejoin="round" points="177.9,230.9 174.4,218.9 178.1,250.8 180.6,253"/>
|
|
2204
|
-
<polygon fill="#161616" stroke="#161616" stroke-linecap="round" stroke-linejoin="round" points="140.6,230.9 138.1,253 140.4,250.8 144.1,218.9"/>
|
|
2205
|
-
<polygon fill="#763D16" stroke="#763D16" stroke-linecap="round" stroke-linejoin="round" points="278.3,114.2 286.8,73.7 274.1,35.5 174.6,109.4 214.9,138.2 267.2,153.5 278.8,140 273.8,136.4 281.8,129.1 275.4,124.1 283.4,118"/>
|
|
2206
|
-
<polygon fill="#763D16" stroke="#763D16" stroke-linecap="round" stroke-linejoin="round" points="31.8,73.7 40.3,114.2 35.5,118 43.5,124.1 36.8,129.1 44.8,136.4 39.8,140 51.3,153.5 103.6,138.2 143.1,110.1 44.4,35.5"/>
|
|
2179
|
+
var METAMASK_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 142 136.878">
|
|
2180
|
+
<path fill="#FF5C16" d="M132.682,132.192l-30.583-9.106l-23.063,13.787l-16.092-0.007l-23.077-13.78l-30.569,9.106L0,100.801l9.299-34.839L0,36.507L9.299,0l47.766,28.538h27.85L132.682,0l9.299,36.507l-9.299,29.455l9.299,34.839L132.682,132.192L132.682,132.192z"/>
|
|
2181
|
+
<path fill="#FF5C16" d="M9.305,0l47.767,28.558l-1.899,19.599L9.305,0z M39.875,100.814l21.017,16.01l-21.017,6.261C39.875,123.085,39.875,100.814,39.875,100.814z M59.212,74.345l-4.039-26.174L29.317,65.97l-0.014-0.007v0.013l0.08,18.321l10.485-9.951L59.212,74.345L59.212,74.345z M132.682,0L84.915,28.558l1.893,19.599L132.682,0z M102.113,100.814l-21.018,16.01l21.018,6.261V100.814z M112.678,65.975h0.007H112.678v-0.013l-0.006,0.007L86.815,48.171l-4.039,26.174h19.336l10.492,9.95C112.604,84.295,112.678,65.975,112.678,65.975z"/>
|
|
2182
|
+
<path fill="#E34807" d="M39.868,123.085l-30.569,9.106L0,100.814h39.868C39.868,100.814,39.868,123.085,39.868,123.085z M59.205,74.338l5.839,37.84l-8.093-21.04L29.37,84.295l10.491-9.956h19.344L59.205,74.338z M102.112,123.085l30.57,9.106l9.299-31.378h-39.869C102.112,100.814,102.112,123.085,102.112,123.085z M82.776,74.338l-5.839,37.84l8.092-21.04l27.583-6.843l-10.498-9.956H82.776V74.338z"/>
|
|
2183
|
+
<path fill="#FF8D5D" d="M0,100.801l9.299-34.839h19.997l0.073,18.327l27.584,6.843l8.092,21.039l-4.16,4.633l-21.017-16.01H0V100.801z M141.981,100.801l-9.299-34.839h-19.998l-0.073,18.327l-27.582,6.843l-8.093,21.039l4.159,4.633l21.018-16.01h39.868V100.801z M84.915,28.538h-27.85l-1.891,19.599l9.872,64.013h11.891l9.878-64.013L84.915,28.538z"/>
|
|
2184
|
+
<path fill="#661800" d="M9.299,0L0,36.507l9.299,29.455h19.997l25.87-17.804L9.299,0z M53.426,81.938h-9.059l-4.932,4.835l17.524,4.344l-3.533-9.186V81.938z M132.682,0l9.299,36.507l-9.299,29.455h-19.998L86.815,48.158L132.682,0z M88.568,81.938h9.072l4.932,4.841l-17.544,4.353l3.54-9.201V81.938z M79.029,124.385l2.067-7.567l-4.16-4.633h-11.9l-4.159,4.633l2.066,7.567"/>
|
|
2185
|
+
<path fill="#C0C4CD" d="M79.029,124.384v12.495H62.945v-12.495L79.029,124.384L79.029,124.384z"/>
|
|
2186
|
+
<path fill="#E7EBF6" d="M39.875,123.072l23.083,13.8v-12.495l-2.067-7.566C60.891,116.811,39.875,123.072,39.875,123.072z M102.113,123.072l-23.084,13.8v-12.495l2.067-7.566C81.096,116.811,102.113,123.072,102.113,123.072z"/>
|
|
2207
2187
|
</svg>`;
|
|
2208
|
-
var TRUST_WALLET_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="
|
|
2209
|
-
<
|
|
2210
|
-
<
|
|
2188
|
+
var TRUST_WALLET_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="729 341 463 521">
|
|
2189
|
+
<defs>
|
|
2190
|
+
<linearGradient id="tw-grad" x1="1123.26" y1="1865.78" x2="954.61" y2="1337.5" gradientTransform="translate(0 2182) scale(1 -1)" gradientUnits="userSpaceOnUse">
|
|
2191
|
+
<stop offset=".02" stop-color="blue"/>
|
|
2192
|
+
<stop offset=".08" stop-color="#0094ff"/>
|
|
2193
|
+
<stop offset=".16" stop-color="#48ff91"/>
|
|
2194
|
+
<stop offset=".42" stop-color="#0094ff"/>
|
|
2195
|
+
<stop offset=".68" stop-color="#0038ff"/>
|
|
2196
|
+
<stop offset=".9" stop-color="#0500ff"/>
|
|
2197
|
+
</linearGradient>
|
|
2198
|
+
</defs>
|
|
2199
|
+
<path fill="#0500ff" d="m738.71,423.41l221.45-72.3v500.52c-158.18-66.74-221.45-194.65-221.45-266.94v-161.28Z"/>
|
|
2200
|
+
<path fill="url(#tw-grad)" d="m1181.62,423.41l-221.45-72.3v500.52c158.18-66.74,221.45-194.65,221.45-266.94v-161.28Z"/>
|
|
2211
2201
|
</svg>`;
|
|
2212
2202
|
var SWYPE_SVG = `<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2213
2203
|
<g clip-path="url(#clip0_125_480)">
|
|
@@ -2322,19 +2312,22 @@ var badgeStyle = (color) => ({
|
|
|
2322
2312
|
function PoweredByFooter() {
|
|
2323
2313
|
const { tokens } = useSwypeConfig();
|
|
2324
2314
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: containerStyle3(tokens.textMuted), children: [
|
|
2325
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2326
|
-
"
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2315
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: rowStyle, children: [
|
|
2316
|
+
/* @__PURE__ */ jsxRuntime.jsx("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2317
|
+
"path",
|
|
2318
|
+
{
|
|
2319
|
+
d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM12 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3-9H9V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2z",
|
|
2320
|
+
fill: "currentColor"
|
|
2321
|
+
}
|
|
2322
|
+
) }),
|
|
2323
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Powered by Blink" })
|
|
2324
|
+
] }),
|
|
2333
2325
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: pillStyle(tokens.textMuted, tokens.border), children: "Beta Version" })
|
|
2334
2326
|
] });
|
|
2335
2327
|
}
|
|
2336
2328
|
var containerStyle3 = (color) => ({
|
|
2337
2329
|
display: "flex",
|
|
2330
|
+
flexDirection: "column",
|
|
2338
2331
|
alignItems: "center",
|
|
2339
2332
|
justifyContent: "center",
|
|
2340
2333
|
gap: 6,
|
|
@@ -2342,6 +2335,11 @@ var containerStyle3 = (color) => ({
|
|
|
2342
2335
|
color,
|
|
2343
2336
|
padding: "12px 0 4px"
|
|
2344
2337
|
});
|
|
2338
|
+
var rowStyle = {
|
|
2339
|
+
display: "flex",
|
|
2340
|
+
alignItems: "center",
|
|
2341
|
+
gap: 6
|
|
2342
|
+
};
|
|
2345
2343
|
var pillStyle = (color, border) => ({
|
|
2346
2344
|
fontSize: "0.65rem",
|
|
2347
2345
|
fontWeight: 600,
|
|
@@ -2936,7 +2934,7 @@ function StepList({ steps }) {
|
|
|
2936
2934
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { style: listStyle, children: steps.map((step, i) => {
|
|
2937
2935
|
const isComplete = step.status === "complete";
|
|
2938
2936
|
const isActive = step.status === "active";
|
|
2939
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style:
|
|
2937
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: rowStyle2, children: [
|
|
2940
2938
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2941
2939
|
"div",
|
|
2942
2940
|
{
|
|
@@ -2959,7 +2957,7 @@ var listStyle = {
|
|
|
2959
2957
|
flexDirection: "column",
|
|
2960
2958
|
gap: 12
|
|
2961
2959
|
};
|
|
2962
|
-
var
|
|
2960
|
+
var rowStyle2 = {
|
|
2963
2961
|
display: "flex",
|
|
2964
2962
|
alignItems: "center",
|
|
2965
2963
|
gap: 12
|
|
@@ -5277,6 +5275,7 @@ function TokenPickerScreen({
|
|
|
5277
5275
|
const entries = [];
|
|
5278
5276
|
for (const wallet of account.wallets) {
|
|
5279
5277
|
for (const source of wallet.sources) {
|
|
5278
|
+
if (source.balance.total.amount <= 0) continue;
|
|
5280
5279
|
entries.push({
|
|
5281
5280
|
walletId: wallet.id,
|
|
5282
5281
|
chainName: wallet.chain.name,
|