@hyperbridge/ui 0.0.21 → 0.0.23

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.
@@ -1244,19 +1244,43 @@ var SvgSquareArrowTopRight = (props) => /* @__PURE__ */ jsx43(
1244
1244
  var Memo43 = memo43(SvgSquareArrowTopRight);
1245
1245
  var SquareArrowTopRight_default = Memo43;
1246
1246
 
1247
- // src/components/icons/StepBack.tsx
1247
+ // src/components/icons/Star.tsx
1248
1248
  import { memo as memo44 } from "react";
1249
1249
  import { jsx as jsx44 } from "react/jsx-runtime";
1250
- var SvgStepBack = (props) => /* @__PURE__ */ jsx44(
1250
+ var SvgStar = (props) => /* @__PURE__ */ jsx44(
1251
1251
  "svg",
1252
1252
  __spreadProps(__spreadValues({
1253
1253
  width: "1em",
1254
1254
  height: "1em",
1255
- viewBox: "0 0 16 16",
1255
+ viewBox: "0 0 14 14",
1256
1256
  fill: "none",
1257
1257
  xmlns: "http://www.w3.org/2000/svg"
1258
1258
  }, props), {
1259
1259
  children: /* @__PURE__ */ jsx44(
1260
+ "path",
1261
+ {
1262
+ d: "M7.927 1.503a.889.889 0 0 0-1.601 0L4.948 4.371l-3.174.416C1.038 4.883.732 5.793 1.28 6.31l2.319 2.187-.582 3.122c-.138.742.646 1.291 1.295.942l2.814-1.518 2.815 1.518c.648.35 1.433-.2 1.294-.942l-.582-3.122 2.32-2.187c.548-.516.241-1.426-.495-1.522l-3.173-.416-1.378-2.868Z",
1263
+ fill: "currentColor"
1264
+ }
1265
+ )
1266
+ })
1267
+ );
1268
+ var Memo44 = memo44(SvgStar);
1269
+ var Star_default = Memo44;
1270
+
1271
+ // src/components/icons/StepBack.tsx
1272
+ import { memo as memo45 } from "react";
1273
+ import { jsx as jsx45 } from "react/jsx-runtime";
1274
+ var SvgStepBack = (props) => /* @__PURE__ */ jsx45(
1275
+ "svg",
1276
+ __spreadProps(__spreadValues({
1277
+ width: "1em",
1278
+ height: "1em",
1279
+ viewBox: "0 0 16 16",
1280
+ fill: "none",
1281
+ xmlns: "http://www.w3.org/2000/svg"
1282
+ }, props), {
1283
+ children: /* @__PURE__ */ jsx45(
1260
1284
  "path",
1261
1285
  {
1262
1286
  fillRule: "evenodd",
@@ -1267,12 +1291,12 @@ var SvgStepBack = (props) => /* @__PURE__ */ jsx44(
1267
1291
  )
1268
1292
  })
1269
1293
  );
1270
- var Memo44 = memo44(SvgStepBack);
1271
- var StepBack_default = Memo44;
1294
+ var Memo45 = memo45(SvgStepBack);
1295
+ var StepBack_default = Memo45;
1272
1296
 
1273
1297
  // src/components/icons/Testnet.tsx
1274
- import { memo as memo45 } from "react";
1275
- import { jsx as jsx45, jsxs as jsxs5 } from "react/jsx-runtime";
1298
+ import { memo as memo46 } from "react";
1299
+ import { jsx as jsx46, jsxs as jsxs5 } from "react/jsx-runtime";
1276
1300
  var SvgTestnet = (props) => /* @__PURE__ */ jsxs5(
1277
1301
  "svg",
1278
1302
  __spreadProps(__spreadValues({
@@ -1283,14 +1307,14 @@ var SvgTestnet = (props) => /* @__PURE__ */ jsxs5(
1283
1307
  xmlns: "http://www.w3.org/2000/svg"
1284
1308
  }, props), {
1285
1309
  children: [
1286
- /* @__PURE__ */ jsx45(
1310
+ /* @__PURE__ */ jsx46(
1287
1311
  "path",
1288
1312
  {
1289
1313
  d: "M11.12 3.12a3.12 3.12 0 1 1-6.24 0 3.12 3.12 0 0 1 6.24 0ZM11.12 12.88a3.12 3.12 0 1 1-6.24 0 3.12 3.12 0 0 1 6.24 0ZM12.88 11.12a3.12 3.12 0 1 1 0-6.24 3.12 3.12 0 0 1 0 6.24Z",
1290
1314
  fill: "#929DAA"
1291
1315
  }
1292
1316
  ),
1293
- /* @__PURE__ */ jsx45(
1317
+ /* @__PURE__ */ jsx46(
1294
1318
  "path",
1295
1319
  {
1296
1320
  d: "M3.12 11.12a3.12 3.12 0 1 1 0-6.24 3.12 3.12 0 0 1 0 6.24Z",
@@ -1300,13 +1324,13 @@ var SvgTestnet = (props) => /* @__PURE__ */ jsxs5(
1300
1324
  ]
1301
1325
  })
1302
1326
  );
1303
- var Memo45 = memo45(SvgTestnet);
1304
- var Testnet_default = Memo45;
1327
+ var Memo46 = memo46(SvgTestnet);
1328
+ var Testnet_default = Memo46;
1305
1329
 
1306
1330
  // src/components/icons/Transfer.tsx
1307
- import { memo as memo46 } from "react";
1308
- import { jsx as jsx46 } from "react/jsx-runtime";
1309
- var SvgTransfer = (props) => /* @__PURE__ */ jsx46(
1331
+ import { memo as memo47 } from "react";
1332
+ import { jsx as jsx47 } from "react/jsx-runtime";
1333
+ var SvgTransfer = (props) => /* @__PURE__ */ jsx47(
1310
1334
  "svg",
1311
1335
  __spreadProps(__spreadValues({
1312
1336
  width: "1em",
@@ -1315,7 +1339,7 @@ var SvgTransfer = (props) => /* @__PURE__ */ jsx46(
1315
1339
  fill: "none",
1316
1340
  xmlns: "http://www.w3.org/2000/svg"
1317
1341
  }, props), {
1318
- children: /* @__PURE__ */ jsx46(
1342
+ children: /* @__PURE__ */ jsx47(
1319
1343
  "path",
1320
1344
  {
1321
1345
  d: "M3 6.538 5.96 4v8.459M12.23 9.923l-2.96 2.538V4.002",
@@ -1327,13 +1351,13 @@ var SvgTransfer = (props) => /* @__PURE__ */ jsx46(
1327
1351
  )
1328
1352
  })
1329
1353
  );
1330
- var Memo46 = memo46(SvgTransfer);
1331
- var Transfer_default = Memo46;
1354
+ var Memo47 = memo47(SvgTransfer);
1355
+ var Transfer_default = Memo47;
1332
1356
 
1333
1357
  // src/components/icons/Trash.tsx
1334
- import { memo as memo47 } from "react";
1335
- import { jsx as jsx47 } from "react/jsx-runtime";
1336
- var SvgTrash = (props) => /* @__PURE__ */ jsx47(
1358
+ import { memo as memo48 } from "react";
1359
+ import { jsx as jsx48 } from "react/jsx-runtime";
1360
+ var SvgTrash = (props) => /* @__PURE__ */ jsx48(
1337
1361
  "svg",
1338
1362
  __spreadProps(__spreadValues({
1339
1363
  width: "1em",
@@ -1342,7 +1366,7 @@ var SvgTrash = (props) => /* @__PURE__ */ jsx47(
1342
1366
  fill: "none",
1343
1367
  xmlns: "http://www.w3.org/2000/svg"
1344
1368
  }, props), {
1345
- children: /* @__PURE__ */ jsx47(
1369
+ children: /* @__PURE__ */ jsx48(
1346
1370
  "path",
1347
1371
  {
1348
1372
  d: "m3.333 4.333.582 8.426c.048.699.629 1.241 1.33 1.241h5.51c.701 0 1.283-.542 1.33-1.241l.582-8.426M2.333 4h11.334M5.38 3.83a2.668 2.668 0 0 1 5.24 0",
@@ -1354,13 +1378,13 @@ var SvgTrash = (props) => /* @__PURE__ */ jsx47(
1354
1378
  )
1355
1379
  })
1356
1380
  );
1357
- var Memo47 = memo47(SvgTrash);
1358
- var Trash_default = Memo47;
1381
+ var Memo48 = memo48(SvgTrash);
1382
+ var Trash_default = Memo48;
1359
1383
 
1360
1384
  // src/components/icons/Wallet.tsx
1361
- import { memo as memo48 } from "react";
1362
- import { jsx as jsx48 } from "react/jsx-runtime";
1363
- var SvgWallet = (props) => /* @__PURE__ */ jsx48(
1385
+ import { memo as memo49 } from "react";
1386
+ import { jsx as jsx49 } from "react/jsx-runtime";
1387
+ var SvgWallet = (props) => /* @__PURE__ */ jsx49(
1364
1388
  "svg",
1365
1389
  __spreadProps(__spreadValues({
1366
1390
  width: "1em",
@@ -1369,7 +1393,7 @@ var SvgWallet = (props) => /* @__PURE__ */ jsx48(
1369
1393
  fill: "none",
1370
1394
  xmlns: "http://www.w3.org/2000/svg"
1371
1395
  }, props), {
1372
- children: /* @__PURE__ */ jsx48(
1396
+ children: /* @__PURE__ */ jsx49(
1373
1397
  "path",
1374
1398
  {
1375
1399
  fillRule: "evenodd",
@@ -1380,13 +1404,13 @@ var SvgWallet = (props) => /* @__PURE__ */ jsx48(
1380
1404
  )
1381
1405
  })
1382
1406
  );
1383
- var Memo48 = memo48(SvgWallet);
1384
- var Wallet_default = Memo48;
1407
+ var Memo49 = memo49(SvgWallet);
1408
+ var Wallet_default = Memo49;
1385
1409
 
1386
1410
  // src/components/icons/XCircle.tsx
1387
- import { memo as memo49 } from "react";
1388
- import { jsx as jsx49 } from "react/jsx-runtime";
1389
- var SvgXCircle = (props) => /* @__PURE__ */ jsx49(
1411
+ import { memo as memo50 } from "react";
1412
+ import { jsx as jsx50 } from "react/jsx-runtime";
1413
+ var SvgXCircle = (props) => /* @__PURE__ */ jsx50(
1390
1414
  "svg",
1391
1415
  __spreadProps(__spreadValues({
1392
1416
  width: "1em",
@@ -1395,7 +1419,7 @@ var SvgXCircle = (props) => /* @__PURE__ */ jsx49(
1395
1419
  fill: "none",
1396
1420
  xmlns: "http://www.w3.org/2000/svg"
1397
1421
  }, props), {
1398
- children: /* @__PURE__ */ jsx49(
1422
+ children: /* @__PURE__ */ jsx50(
1399
1423
  "path",
1400
1424
  {
1401
1425
  d: "M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1Zm2.948 4.054a.673.673 0 0 0-.95-.001L8.001 7.05 6.003 5.052l-.105-.086a.674.674 0 0 0-.931.931l.087.106L7.05 8 5.054 9.997a.672.672 0 0 0 .95.95L8 8.95l1.996 1.996.105.086a.672.672 0 0 0 .931-.93l-.086-.106L8.951 8l1.996-1.996a.673.673 0 0 0 .001-.95Z",
@@ -1404,13 +1428,13 @@ var SvgXCircle = (props) => /* @__PURE__ */ jsx49(
1404
1428
  )
1405
1429
  })
1406
1430
  );
1407
- var Memo49 = memo49(SvgXCircle);
1408
- var XCircle_default = Memo49;
1431
+ var Memo50 = memo50(SvgXCircle);
1432
+ var XCircle_default = Memo50;
1409
1433
 
1410
1434
  // src/components/icons/XIcon.tsx
1411
- import { memo as memo50 } from "react";
1412
- import { jsx as jsx50 } from "react/jsx-runtime";
1413
- var SvgXIcon = (props) => /* @__PURE__ */ jsx50(
1435
+ import { memo as memo51 } from "react";
1436
+ import { jsx as jsx51 } from "react/jsx-runtime";
1437
+ var SvgXIcon = (props) => /* @__PURE__ */ jsx51(
1414
1438
  "svg",
1415
1439
  __spreadProps(__spreadValues({
1416
1440
  width: "1em",
@@ -1419,7 +1443,7 @@ var SvgXIcon = (props) => /* @__PURE__ */ jsx50(
1419
1443
  fill: "none",
1420
1444
  xmlns: "http://www.w3.org/2000/svg"
1421
1445
  }, props), {
1422
- children: /* @__PURE__ */ jsx50(
1446
+ children: /* @__PURE__ */ jsx51(
1423
1447
  "path",
1424
1448
  {
1425
1449
  d: "m3.334 3.334 9.333 9.333m0-9.333-9.333 9.333",
@@ -1430,8 +1454,8 @@ var SvgXIcon = (props) => /* @__PURE__ */ jsx50(
1430
1454
  )
1431
1455
  })
1432
1456
  );
1433
- var Memo50 = memo50(SvgXIcon);
1434
- var XIcon_default = Memo50;
1457
+ var Memo51 = memo51(SvgXIcon);
1458
+ var XIcon_default = Memo51;
1435
1459
 
1436
1460
  export {
1437
1461
  __spreadValues,
@@ -1480,6 +1504,7 @@ export {
1480
1504
  Settings_default,
1481
1505
  Shuffle_default,
1482
1506
  SquareArrowTopRight_default,
1507
+ Star_default,
1483
1508
  StepBack_default,
1484
1509
  Testnet_default,
1485
1510
  Transfer_default,
@@ -2,6 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { SVGProps } from 'react';
4
4
 
5
+ declare const Memo$O: React.MemoExoticComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element>;
6
+
5
7
  declare const Memo$N: React.MemoExoticComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element>;
6
8
 
7
9
  declare const Memo$M: React.MemoExoticComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element>;
@@ -102,4 +104,4 @@ declare const Memo$1: React.MemoExoticComponent<(props: SVGProps<SVGSVGElement>)
102
104
 
103
105
  declare const Memo: React.MemoExoticComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element>;
104
106
 
105
- export { Memo$N as Alert, Memo$M as ArrowBottomTop, Memo$J as ArrowRight, Memo$L as ArrowRightDownCircle, Memo$K as ArrowRightUpCircle, Memo$I as ArrowSplit, Memo$H as ArrowTopBottom, Memo$G as ArrowTriangleBottom, Memo$F as ArrowTriangleTop, Memo$E as ArrowUpRight, Memo$D as ArtifactNews, Memo$C as BrowserWindow, Memo$B as Check, Memo$A as ChevronBottomDown, Memo$z as ChevronBottomUp, Memo$y as ChevronDoubleRight, Memo$x as ChevronDownSmall, Memo$v as ChevronGrabberVertical, Memo$w as ChevronGrabberVertical1, Memo$r as Circle, Memo$u as CircleInfo, Memo$s as CirclePlaceholder, Memo$t as CirclePlaceholderDashed, Memo$q as Clock, Memo$p as Coins, Memo$o as Copy, Memo$n as Filter, Memo$m as Gas, Memo$l as History, Memo$k as Loader, Memo$j as Mainnet, Memo$i as Menu, Memo$h as Pen, Memo$g as Percent, Memo$f as Plus, Memo$e as Power, Memo$d as RotateCcw, Memo$c as Search, Memo$b as Server, Memo$9 as Settings, Memo$a as SettingsGear, Memo$8 as Shuffle, Memo$7 as SquareArrowTopRight, Memo$6 as StepBack, Memo$5 as Testnet, Memo$4 as Transfer, Memo$3 as Trash, Memo$2 as Wallet, Memo$1 as XCircle, Memo as XIcon };
107
+ export { Memo$O as Alert, Memo$N as ArrowBottomTop, Memo$K as ArrowRight, Memo$M as ArrowRightDownCircle, Memo$L as ArrowRightUpCircle, Memo$J as ArrowSplit, Memo$I as ArrowTopBottom, Memo$H as ArrowTriangleBottom, Memo$G as ArrowTriangleTop, Memo$F as ArrowUpRight, Memo$E as ArtifactNews, Memo$D as BrowserWindow, Memo$C as Check, Memo$B as ChevronBottomDown, Memo$A as ChevronBottomUp, Memo$z as ChevronDoubleRight, Memo$y as ChevronDownSmall, Memo$w as ChevronGrabberVertical, Memo$x as ChevronGrabberVertical1, Memo$s as Circle, Memo$v as CircleInfo, Memo$t as CirclePlaceholder, Memo$u as CirclePlaceholderDashed, Memo$r as Clock, Memo$q as Coins, Memo$p as Copy, Memo$o as Filter, Memo$n as Gas, Memo$m as History, Memo$l as Loader, Memo$k as Mainnet, Memo$j as Menu, Memo$i as Pen, Memo$h as Percent, Memo$g as Plus, Memo$f as Power, Memo$e as RotateCcw, Memo$d as Search, Memo$c as Server, Memo$a as Settings, Memo$b as SettingsGear, Memo$9 as Shuffle, Memo$8 as SquareArrowTopRight, Memo$7 as Star, Memo$6 as StepBack, Memo$5 as Testnet, Memo$4 as Transfer, Memo$3 as Trash, Memo$2 as Wallet, Memo$1 as XCircle, Memo as XIcon };
@@ -42,6 +42,7 @@ import {
42
42
  Settings_default,
43
43
  Shuffle_default,
44
44
  SquareArrowTopRight_default,
45
+ Star_default,
45
46
  StepBack_default,
46
47
  Testnet_default,
47
48
  Transfer_default,
@@ -49,7 +50,7 @@ import {
49
50
  Wallet_default,
50
51
  XCircle_default,
51
52
  XIcon_default
52
- } from "../chunk-WFHDED45.mjs";
53
+ } from "../chunk-DAIODMJG.mjs";
53
54
  export {
54
55
  Alert_default as Alert,
55
56
  ArrowBottomTop_default as ArrowBottomTop,
@@ -94,6 +95,7 @@ export {
94
95
  SettingsGear_default as SettingsGear,
95
96
  Shuffle_default as Shuffle,
96
97
  SquareArrowTopRight_default as SquareArrowTopRight,
98
+ Star_default as Star,
97
99
  StepBack_default as StepBack,
98
100
  Testnet_default as Testnet,
99
101
  Transfer_default as Transfer,
package/dist/index.d.mts CHANGED
@@ -556,6 +556,10 @@ declare const SummaryValues: {
556
556
  tooltip: SummaryEntryItem["tooltip"];
557
557
  children: React__default.ReactNode;
558
558
  }) => react_jsx_runtime.JSX.Element;
559
+ Points: ({ children, tooltip: overwriteTooltip, }: {
560
+ tooltip: SummaryEntryItem["tooltip"];
561
+ children: React__default.ReactNode;
562
+ }) => react_jsx_runtime.JSX.Element;
559
563
  };
560
564
  Values: {
561
565
  Highlight: ({ children }: {
package/dist/index.mjs CHANGED
@@ -22,6 +22,7 @@ import {
22
22
  RotateCcw_default,
23
23
  Search_default,
24
24
  Server_default,
25
+ Star_default,
25
26
  StepBack_default,
26
27
  Wallet_default,
27
28
  XCircle_default,
@@ -29,7 +30,7 @@ import {
29
30
  __objRest,
30
31
  __spreadProps,
31
32
  __spreadValues
32
- } from "./chunk-WFHDED45.mjs";
33
+ } from "./chunk-DAIODMJG.mjs";
33
34
 
34
35
  // src/components/atoms/search-input.tsx
35
36
  import { cva } from "class-variance-authority";
@@ -3260,6 +3261,10 @@ var ETA = makeEntry({
3260
3261
  icon: ({ size }) => /* @__PURE__ */ jsx34(Clock_default, { width: size }),
3261
3262
  name: "Estimated time"
3262
3263
  });
3264
+ var Points = makeEntry({
3265
+ icon: ({ size }) => /* @__PURE__ */ jsx34(Star_default, { width: size }),
3266
+ name: "Points"
3267
+ });
3263
3268
  var SummaryValues = {
3264
3269
  Key: {
3265
3270
  Bridge,
@@ -3269,7 +3274,8 @@ var SummaryValues = {
3269
3274
  Route,
3270
3275
  ETA,
3271
3276
  RecipientAddress,
3272
- Fee
3277
+ Fee,
3278
+ Points
3273
3279
  },
3274
3280
  Values: {
3275
3281
  Highlight: ({ children }) => {
@@ -4190,24 +4196,37 @@ var WalletHeaderContentBlur = React14.forwardRef((_a, ref) => {
4190
4196
  var _b = _a, { className, children, asChild = false } = _b, props = __objRest(_b, ["className", "children", "asChild"]);
4191
4197
  const { show: open, setShow } = useWalletHeader();
4192
4198
  const Comp = asChild ? Slot10 : "div";
4193
- return /* @__PURE__ */ jsx41(
4199
+ const handleClose = (e) => {
4200
+ e == null ? void 0 : e.stopPropagation();
4201
+ setShow(false);
4202
+ };
4203
+ const handleKeyDown = (e) => {
4204
+ if (["Enter", " "].includes(e.key)) handleClose(e);
4205
+ };
4206
+ return /* @__PURE__ */ jsxs29(
4194
4207
  Comp,
4195
4208
  __spreadProps(__spreadValues({
4196
4209
  ref,
4197
4210
  className: cn(
4198
- "transition-all pt-[1rem]",
4199
- {
4200
- "opacity-15 filter blur-[2px]": open
4201
- },
4211
+ "relative pt-[1rem] transition-all",
4212
+ open && "opacity-15 blur-[2px]",
4202
4213
  className
4203
- ),
4204
- onClick: (e) => {
4205
- var _a2;
4206
- if (open) setShow(false);
4207
- (_a2 = props.onClick) == null ? void 0 : _a2.call(props, e);
4208
- }
4214
+ )
4209
4215
  }, props), {
4210
- children
4216
+ children: [
4217
+ open && /* @__PURE__ */ jsx41(
4218
+ "div",
4219
+ {
4220
+ className: "absolute inset-0 z-10",
4221
+ onClick: handleClose,
4222
+ onKeyDown: handleKeyDown,
4223
+ tabIndex: 0,
4224
+ role: "button",
4225
+ "aria-label": "Close wallet header"
4226
+ }
4227
+ ),
4228
+ children
4229
+ ]
4211
4230
  })
4212
4231
  );
4213
4232
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperbridge/ui",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "sideEffects": false,
5
5
  "license": "MIT",
6
6
  "private": false,