@hyperbridge/ui 0.0.26 → 0.0.28

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.
@@ -1405,10 +1405,37 @@ var SvgTrash = (props) => /* @__PURE__ */ jsx49(
1405
1405
  var Memo49 = memo49(SvgTrash);
1406
1406
  var Trash_default = Memo49;
1407
1407
 
1408
- // src/components/icons/Wallet.tsx
1408
+ // src/components/icons/User.tsx
1409
1409
  import { memo as memo50 } from "react";
1410
- import { jsx as jsx50 } from "react/jsx-runtime";
1411
- var SvgWallet = (props) => /* @__PURE__ */ jsx50(
1410
+ import { jsx as jsx50, jsxs as jsxs6 } from "react/jsx-runtime";
1411
+ var SvgUser = (props) => /* @__PURE__ */ jsxs6(
1412
+ "svg",
1413
+ __spreadProps(__spreadValues({
1414
+ width: "1em",
1415
+ height: "1em",
1416
+ viewBox: "0 0 11 13",
1417
+ fill: "none",
1418
+ xmlns: "http://www.w3.org/2000/svg"
1419
+ }, props), {
1420
+ children: [
1421
+ /* @__PURE__ */ jsx50("title", { children: "User" }),
1422
+ /* @__PURE__ */ jsx50(
1423
+ "path",
1424
+ {
1425
+ d: "M5.401 0a3 3 0 1 0 0 6 3 3 0 0 0 0-6ZM5.401 7C2.62 7 .583 8.862.028 11.334c-.167.74.44 1.333 1.106 1.333h8.535c.666 0 1.272-.592 1.106-1.333C10.219 8.862 8.184 7 5.4 7Z",
1426
+ fill: "currentColor"
1427
+ }
1428
+ )
1429
+ ]
1430
+ })
1431
+ );
1432
+ var Memo50 = memo50(SvgUser);
1433
+ var User_default = Memo50;
1434
+
1435
+ // src/components/icons/Wallet.tsx
1436
+ import { memo as memo51 } from "react";
1437
+ import { jsx as jsx51 } from "react/jsx-runtime";
1438
+ var SvgWallet = (props) => /* @__PURE__ */ jsx51(
1412
1439
  "svg",
1413
1440
  __spreadProps(__spreadValues({
1414
1441
  width: "1em",
@@ -1417,7 +1444,7 @@ var SvgWallet = (props) => /* @__PURE__ */ jsx50(
1417
1444
  fill: "none",
1418
1445
  xmlns: "http://www.w3.org/2000/svg"
1419
1446
  }, props), {
1420
- children: /* @__PURE__ */ jsx50(
1447
+ children: /* @__PURE__ */ jsx51(
1421
1448
  "path",
1422
1449
  {
1423
1450
  fillRule: "evenodd",
@@ -1428,13 +1455,13 @@ var SvgWallet = (props) => /* @__PURE__ */ jsx50(
1428
1455
  )
1429
1456
  })
1430
1457
  );
1431
- var Memo50 = memo50(SvgWallet);
1432
- var Wallet_default = Memo50;
1458
+ var Memo51 = memo51(SvgWallet);
1459
+ var Wallet_default = Memo51;
1433
1460
 
1434
1461
  // src/components/icons/XCircle.tsx
1435
- import { memo as memo51 } from "react";
1436
- import { jsx as jsx51 } from "react/jsx-runtime";
1437
- var SvgXCircle = (props) => /* @__PURE__ */ jsx51(
1462
+ import { memo as memo52 } from "react";
1463
+ import { jsx as jsx52 } from "react/jsx-runtime";
1464
+ var SvgXCircle = (props) => /* @__PURE__ */ jsx52(
1438
1465
  "svg",
1439
1466
  __spreadProps(__spreadValues({
1440
1467
  width: "1em",
@@ -1443,7 +1470,7 @@ var SvgXCircle = (props) => /* @__PURE__ */ jsx51(
1443
1470
  fill: "none",
1444
1471
  xmlns: "http://www.w3.org/2000/svg"
1445
1472
  }, props), {
1446
- children: /* @__PURE__ */ jsx51(
1473
+ children: /* @__PURE__ */ jsx52(
1447
1474
  "path",
1448
1475
  {
1449
1476
  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",
@@ -1452,13 +1479,13 @@ var SvgXCircle = (props) => /* @__PURE__ */ jsx51(
1452
1479
  )
1453
1480
  })
1454
1481
  );
1455
- var Memo51 = memo51(SvgXCircle);
1456
- var XCircle_default = Memo51;
1482
+ var Memo52 = memo52(SvgXCircle);
1483
+ var XCircle_default = Memo52;
1457
1484
 
1458
1485
  // src/components/icons/XIcon.tsx
1459
- import { memo as memo52 } from "react";
1460
- import { jsx as jsx52 } from "react/jsx-runtime";
1461
- var SvgXIcon = (props) => /* @__PURE__ */ jsx52(
1486
+ import { memo as memo53 } from "react";
1487
+ import { jsx as jsx53 } from "react/jsx-runtime";
1488
+ var SvgXIcon = (props) => /* @__PURE__ */ jsx53(
1462
1489
  "svg",
1463
1490
  __spreadProps(__spreadValues({
1464
1491
  width: "1em",
@@ -1467,7 +1494,7 @@ var SvgXIcon = (props) => /* @__PURE__ */ jsx52(
1467
1494
  fill: "none",
1468
1495
  xmlns: "http://www.w3.org/2000/svg"
1469
1496
  }, props), {
1470
- children: /* @__PURE__ */ jsx52(
1497
+ children: /* @__PURE__ */ jsx53(
1471
1498
  "path",
1472
1499
  {
1473
1500
  d: "m3.334 3.334 9.333 9.333m0-9.333-9.333 9.333",
@@ -1478,8 +1505,36 @@ var SvgXIcon = (props) => /* @__PURE__ */ jsx52(
1478
1505
  )
1479
1506
  })
1480
1507
  );
1481
- var Memo52 = memo52(SvgXIcon);
1482
- var XIcon_default = Memo52;
1508
+ var Memo53 = memo53(SvgXIcon);
1509
+ var XIcon_default = Memo53;
1510
+
1511
+ // src/components/icons/Zap.tsx
1512
+ import { memo as memo54 } from "react";
1513
+ import { jsx as jsx54, jsxs as jsxs7 } from "react/jsx-runtime";
1514
+ var SvgZap = (props) => /* @__PURE__ */ jsxs7(
1515
+ "svg",
1516
+ __spreadProps(__spreadValues({
1517
+ width: "1em",
1518
+ height: "1em",
1519
+ viewBox: "0 0 16 16",
1520
+ fill: "none",
1521
+ xmlns: "http://www.w3.org/2000/svg"
1522
+ }, props), {
1523
+ children: [
1524
+ /* @__PURE__ */ jsx54("title", { children: "Zap" }),
1525
+ /* @__PURE__ */ jsx54(
1526
+ "path",
1527
+ {
1528
+ d: "M9.333 1.57c0-.817-1.055-1.146-1.52-.473L2.116 9.36a.833.833 0 0 0 .686 1.307h3.865v3.763c0 .817 1.055 1.146 1.52.473l5.698-8.263a.833.833 0 0 0-.686-1.307H9.333V1.57Z",
1529
+ fill: "currentColor",
1530
+ opacity: 0.5
1531
+ }
1532
+ )
1533
+ ]
1534
+ })
1535
+ );
1536
+ var Memo54 = memo54(SvgZap);
1537
+ var Zap_default = Memo54;
1483
1538
 
1484
1539
  export {
1485
1540
  __spreadValues,
@@ -1534,7 +1589,9 @@ export {
1534
1589
  Testnet_default,
1535
1590
  Transfer_default,
1536
1591
  Trash_default,
1592
+ User_default,
1537
1593
  Wallet_default,
1538
1594
  XCircle_default,
1539
- XIcon_default
1595
+ XIcon_default,
1596
+ Zap_default
1540
1597
  };
@@ -2,6 +2,10 @@ 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$R: React.MemoExoticComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element>;
6
+
7
+ declare const Memo$Q: React.MemoExoticComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element>;
8
+
5
9
  declare const Memo$P: React.MemoExoticComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element>;
6
10
 
7
11
  declare const Memo$O: React.MemoExoticComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element>;
@@ -106,4 +110,4 @@ declare const Memo$1: React.MemoExoticComponent<(props: SVGProps<SVGSVGElement>)
106
110
 
107
111
  declare const Memo: React.MemoExoticComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element>;
108
112
 
109
- export { Memo$P as Alert, Memo$O as ArrowBottomTop, Memo$L as ArrowRight, Memo$N as ArrowRightDownCircle, Memo$M as ArrowRightUpCircle, Memo$K as ArrowSplit, Memo$J as ArrowTopBottom, Memo$I as ArrowTriangleBottom, Memo$H as ArrowTriangleTop, Memo$G as ArrowUpRight, Memo$F as ArtifactNews, Memo$E as BrowserWindow, Memo$D as Check, Memo$C as ChevronBottomDown, Memo$B as ChevronBottomUp, Memo$A as ChevronDoubleRight, Memo$z as ChevronDownSmall, Memo$x as ChevronGrabberVertical, Memo$y as ChevronGrabberVertical1, Memo$t as Circle, Memo$w as CircleInfo, Memo$u as CirclePlaceholder, Memo$v as CirclePlaceholderDashed, Memo$s as Clock, Memo$r as Coins, Memo$q as Copy, Memo$p as Filter, Memo$o as Gas, Memo$n as History, Memo$m as Loader, Memo$l as Mainnet, Memo$k as Menu, Memo$j as Pen, Memo$i as Percent, Memo$h as Plus, Memo$g as Power, Memo$f as Refer, 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 };
113
+ export { Memo$R as Alert, Memo$Q as ArrowBottomTop, Memo$N as ArrowRight, Memo$P as ArrowRightDownCircle, Memo$O as ArrowRightUpCircle, Memo$M as ArrowSplit, Memo$L as ArrowTopBottom, Memo$K as ArrowTriangleBottom, Memo$J as ArrowTriangleTop, Memo$I as ArrowUpRight, Memo$H as ArtifactNews, Memo$G as BrowserWindow, Memo$F as Check, Memo$E as ChevronBottomDown, Memo$D as ChevronBottomUp, Memo$C as ChevronDoubleRight, Memo$B as ChevronDownSmall, Memo$z as ChevronGrabberVertical, Memo$A as ChevronGrabberVertical1, Memo$v as Circle, Memo$y as CircleInfo, Memo$w as CirclePlaceholder, Memo$x as CirclePlaceholderDashed, Memo$u as Clock, Memo$t as Coins, Memo$s as Copy, Memo$r as Filter, Memo$q as Gas, Memo$p as History, Memo$o as Loader, Memo$n as Mainnet, Memo$m as Menu, Memo$l as Pen, Memo$k as Percent, Memo$j as Plus, Memo$i as Power, Memo$h as Refer, Memo$g as RotateCcw, Memo$f as Search, Memo$e as Server, Memo$c as Settings, Memo$d as SettingsGear, Memo$b as Shuffle, Memo$a as SquareArrowTopRight, Memo$9 as Star, Memo$8 as StepBack, Memo$7 as Testnet, Memo$6 as Transfer, Memo$5 as Trash, Memo$4 as User, Memo$3 as Wallet, Memo$2 as XCircle, Memo$1 as XIcon, Memo as Zap };
@@ -48,10 +48,12 @@ import {
48
48
  Testnet_default,
49
49
  Transfer_default,
50
50
  Trash_default,
51
+ User_default,
51
52
  Wallet_default,
52
53
  XCircle_default,
53
- XIcon_default
54
- } from "../chunk-PILUO5EZ.mjs";
54
+ XIcon_default,
55
+ Zap_default
56
+ } from "../chunk-Z3U6XEBY.mjs";
55
57
  export {
56
58
  Alert_default as Alert,
57
59
  ArrowBottomTop_default as ArrowBottomTop,
@@ -102,7 +104,9 @@ export {
102
104
  Testnet_default as Testnet,
103
105
  Transfer_default as Transfer,
104
106
  Trash_default as Trash,
107
+ User_default as User,
105
108
  Wallet_default as Wallet,
106
109
  XCircle_default as XCircle,
107
- XIcon_default as XIcon
110
+ XIcon_default as XIcon,
111
+ Zap_default as Zap
108
112
  };
package/dist/index.d.mts CHANGED
@@ -642,6 +642,7 @@ type ItemProps = {
642
642
  from: BadgeTokenProps;
643
643
  to: BadgeTokenProps;
644
644
  amount: string;
645
+ size?: `${number}rem`;
645
646
  };
646
647
  declare function TxListItemProcessing(props: ItemProps & {
647
648
  eta: string;
package/dist/index.mjs CHANGED
@@ -30,7 +30,7 @@ import {
30
30
  __objRest,
31
31
  __spreadProps,
32
32
  __spreadValues
33
- } from "./chunk-PILUO5EZ.mjs";
33
+ } from "./chunk-Z3U6XEBY.mjs";
34
34
 
35
35
  // src/components/atoms/search-input.tsx
36
36
  import { cva } from "class-variance-authority";
@@ -3392,7 +3392,7 @@ var TimelineItem = React13.forwardRef(function TimelineItem2(props, ref) {
3392
3392
  }
3393
3393
  ),
3394
3394
  /* @__PURE__ */ jsxs25("div", { className: "flex flex-col flex-1 gap-[calc(4/16rem)]", children: [
3395
- /* @__PURE__ */ jsx36("div", { className: "text-brand-white-500 text-[1rem] h-[1.25rem]", children: caption }),
3395
+ /* @__PURE__ */ jsx36("div", { className: "text-brand-white-500 text-xs md:!text-base h-auto md:h-[1.25rem] truncate max-w-[150px] md:max-w-full", children: caption }),
3396
3396
  /* @__PURE__ */ jsx36("div", { className: "text-xs h-[1rem] text-brand-black-100", children: processingStatus === "completed" ? ((_b = props.data) == null ? void 0 : _b.transactionUrl) ? /* @__PURE__ */ jsxs25(
3397
3397
  "a",
3398
3398
  {
@@ -3649,6 +3649,7 @@ function ToastBox(props) {
3649
3649
  import { motion as motion4 } from "motion/react";
3650
3650
  import { Fragment as Fragment9, jsx as jsx38, jsxs as jsxs27 } from "react/jsx-runtime";
3651
3651
  function TxListItemProcessing(props) {
3652
+ const { size = "2rem" } = props;
3652
3653
  return /* @__PURE__ */ jsx38(GradientContainer, { children: /* @__PURE__ */ jsxs27("div", { className: "rounded-[1rem] bg-brand-black-350 px-[0.75rem] h-[3.75rem] flex items-center", children: [
3653
3654
  /* @__PURE__ */ jsx38(
3654
3655
  GradientLine,
@@ -3664,11 +3665,11 @@ function TxListItemProcessing(props) {
3664
3665
  {
3665
3666
  fromToken: props.from,
3666
3667
  toToken: props.to,
3667
- size: "2rem"
3668
+ size
3668
3669
  }
3669
3670
  ),
3670
3671
  /* @__PURE__ */ jsxs27("div", { className: "flex flex-grow flex-col text-start", children: [
3671
- /* @__PURE__ */ jsx38("span", { className: "text-brand-white-500 whitespace-nowrap text-[0.875rem] h-[1.25rem]", children: props.caption }),
3672
+ /* @__PURE__ */ jsx38("span", { className: "text-brand-white-500 whitespace-nowrap text-[0.875rem] h-[1.25rem] max-w-28 md:max-w-full truncate", children: props.caption }),
3672
3673
  /* @__PURE__ */ jsxs27(StatusBadge, { variant: props.status === "failed" ? "error" : "none", children: [
3673
3674
  "~ ",
3674
3675
  props.eta
@@ -3721,7 +3722,23 @@ function TxListItemProcessing(props) {
3721
3722
  ] }) });
3722
3723
  }
3723
3724
  var TxListItem = function TxListItem2(props) {
3724
- const _a = props, { caption, completedAt, mode, from, to, amount } = _a, rest = __objRest(_a, ["caption", "completedAt", "mode", "from", "to", "amount"]);
3725
+ const _a = props, {
3726
+ caption,
3727
+ completedAt,
3728
+ mode,
3729
+ from,
3730
+ to,
3731
+ amount,
3732
+ size = "2rem"
3733
+ } = _a, rest = __objRest(_a, [
3734
+ "caption",
3735
+ "completedAt",
3736
+ "mode",
3737
+ "from",
3738
+ "to",
3739
+ "amount",
3740
+ "size"
3741
+ ]);
3725
3742
  return /* @__PURE__ */ jsx38(
3726
3743
  "button",
3727
3744
  __spreadProps(__spreadValues({}, rest), {
@@ -3730,10 +3747,10 @@ var TxListItem = function TxListItem2(props) {
3730
3747
  "apperance-none rounded-[1rem] bg-brand-black-350 px-[0.75rem] h-[3.75rem] flex items-center",
3731
3748
  props.className
3732
3749
  ),
3733
- children: /* @__PURE__ */ jsxs27("div", { className: "flex gap-[1rem] flex-1 z-20 text-brand-black-100 font-medium", children: [
3734
- /* @__PURE__ */ jsx38(TokenTransferPair, { fromToken: from, toToken: to, size: "2rem" }),
3750
+ children: /* @__PURE__ */ jsxs27("div", { className: "flex justify-between gap-4 flex-1 z-20 text-brand-black-100 font-medium", children: [
3751
+ /* @__PURE__ */ jsx38(TokenTransferPair, { fromToken: from, toToken: to, size }),
3735
3752
  /* @__PURE__ */ jsxs27("div", { className: "flex flex-grow flex-col text-start whitespace-nowrap", children: [
3736
- /* @__PURE__ */ jsx38("span", { className: "text-brand-white-500 text-[0.875rem] h-[1.25rem]", children: caption }),
3753
+ /* @__PURE__ */ jsx38("span", { className: "text-brand-white-500 text-[0.875rem] h-[1.25rem] max-w-28 md:max-w-full truncate", children: caption }),
3737
3754
  /* @__PURE__ */ jsx38(StatusBadge, { variant: mode === "rollback" ? "refunded" : "success" })
3738
3755
  ] }),
3739
3756
  /* @__PURE__ */ jsxs27("div", { className: "shrink-0 flex flex-col text-end", children: [
@@ -3748,25 +3765,18 @@ function StatusBadge({
3748
3765
  variant,
3749
3766
  children
3750
3767
  }) {
3751
- return /* @__PURE__ */ jsxs27("span", { className: "text-xs h-[1rem] flex items-center gap-[0.125rem]", children: [
3768
+ return /* @__PURE__ */ jsxs27("span", { className: "text-[0.625rem] md:text-xs h-[1rem] flex items-center gap-[0.125rem]", children: [
3752
3769
  variant === "success" ? /* @__PURE__ */ jsxs27("span", { className: "text-brand-success-400 flex items-center gap-[0.125rem]", children: [
3753
- /* @__PURE__ */ jsx38(Check_default, { width: "0.75rem", height: "0.75rem" }),
3770
+ /* @__PURE__ */ jsx38(Check_default, { className: "size-2 md:size-3" }),
3754
3771
  " ",
3755
3772
  /* @__PURE__ */ jsx38("span", { children: "Success" })
3756
3773
  ] }) : null,
3757
3774
  variant === "refunded" ? /* @__PURE__ */ jsxs27(Fragment9, { children: [
3758
- /* @__PURE__ */ jsx38(StepBack_default, { strokeWidth: 2, width: "0.75rem", height: "0.75rem" }),
3775
+ /* @__PURE__ */ jsx38(StepBack_default, { strokeWidth: 2, className: "size-2 md:size-3" }),
3759
3776
  /* @__PURE__ */ jsx38("span", { children: "Refunded" })
3760
3777
  ] }) : null,
3761
3778
  variant === "error" ? /* @__PURE__ */ jsxs27(Fragment9, { children: [
3762
- /* @__PURE__ */ jsx38(
3763
- Alert_default,
3764
- {
3765
- width: "0.75rem",
3766
- height: "0.75rem",
3767
- className: "text-brand-danger-500"
3768
- }
3769
- ),
3779
+ /* @__PURE__ */ jsx38(Alert_default, { className: "size-2 md:size-3 text-brand-danger-500" }),
3770
3780
  /* @__PURE__ */ jsx38("span", { className: "text-brand-danger-500", children: "Order expired" })
3771
3781
  ] }) : null,
3772
3782
  variant === "none" ? children : null
@@ -4830,7 +4840,7 @@ function CWDrawerContent(_a) {
4830
4840
  ]);
4831
4841
  const isMobile = useIsMobile();
4832
4842
  if (isMobile) {
4833
- return /* @__PURE__ */ jsx48(HBDrawerContent, { className: "bg-brand-black-550 rounded-t-[1rem] w-full px-[1rem] border-t border-brand-black-300 min-h-[90dvh]", children: /* @__PURE__ */ jsx48("div", { className: "flex flex-col", children }) });
4843
+ return /* @__PURE__ */ jsx48(HBDrawerContent, { className: "bg-brand-black-550 rounded-t-[1rem] w-full px-[1rem] border-t border-brand-black-300 min-h-[90dvh]", children: /* @__PURE__ */ jsx48("div", { className: "flex flex-col flex-1", children }) });
4834
4844
  }
4835
4845
  return /* @__PURE__ */ jsx48(
4836
4846
  SheetContent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperbridge/ui",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "sideEffects": false,
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -33,8 +33,8 @@
33
33
  "typescript": "5.8.3",
34
34
  "vite": "^6.3.4",
35
35
  "vitest": "^3.1.2",
36
- "@repo/typescript-config": "0.0.0",
37
- "@repo/eslint-config": "0.0.0"
36
+ "@repo/eslint-config": "0.0.0",
37
+ "@repo/typescript-config": "0.0.0"
38
38
  },
39
39
  "dependencies": {
40
40
  "@radix-ui/react-dialog": "^1.1.14",