@hyperbridge/ui 0.0.11 → 0.0.13
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.d.mts +10 -6
- package/dist/index.mjs +20 -14
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -382,7 +382,7 @@ declare function ReviewItem(props: {
|
|
|
382
382
|
asset: {
|
|
383
383
|
amount: string;
|
|
384
384
|
symbol: string;
|
|
385
|
-
secondaryValue:
|
|
385
|
+
secondaryValue: React__default.ReactNode;
|
|
386
386
|
};
|
|
387
387
|
AddressInfo: (props: {
|
|
388
388
|
tag: string;
|
|
@@ -557,9 +557,6 @@ declare const SummaryValues: {
|
|
|
557
557
|
};
|
|
558
558
|
};
|
|
559
559
|
|
|
560
|
-
declare function TimelineList(props: {
|
|
561
|
-
children: React__default.ReactNode;
|
|
562
|
-
}): react_jsx_runtime.JSX.Element;
|
|
563
560
|
type TimePrefix = "min" | "second" | "hours";
|
|
564
561
|
type EstimatedTimeFormatted = `${number} ${TimePrefix | `${TimePrefix}s`}` | "";
|
|
565
562
|
type Prettify<T> = {
|
|
@@ -574,7 +571,7 @@ type Level = {
|
|
|
574
571
|
type TimelineData = {
|
|
575
572
|
processingStatus: "processing";
|
|
576
573
|
data: {
|
|
577
|
-
eta:
|
|
574
|
+
eta: React__default.ReactNode;
|
|
578
575
|
};
|
|
579
576
|
} | {
|
|
580
577
|
processingStatus: "upcoming" | "error";
|
|
@@ -594,6 +591,9 @@ declare function TimelineItem(props: TimelineItemProps): react_jsx_runtime.JSX.E
|
|
|
594
591
|
declare function TimelineListGroup(props: {
|
|
595
592
|
children: React__default.ReactNode;
|
|
596
593
|
}): react_jsx_runtime.JSX.Element;
|
|
594
|
+
declare function TimelineList(props: {
|
|
595
|
+
children: React__default.ReactNode;
|
|
596
|
+
}): react_jsx_runtime.JSX.Element;
|
|
597
597
|
declare const TimelineRoot: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React__default.RefAttributes<HTMLUListElement>>;
|
|
598
598
|
type TimerProps = {
|
|
599
599
|
hours: number;
|
|
@@ -829,8 +829,12 @@ interface TokenSelectorProps {
|
|
|
829
829
|
onAddToWallet?: (token: Token) => void;
|
|
830
830
|
}
|
|
831
831
|
declare const TokenSelector: ({ title, isOpen, onClose, allTokens, availableTokens, selectedToken, onTokenSelect, onAddToWallet, }: TokenSelectorProps) => react_jsx_runtime.JSX.Element;
|
|
832
|
+
interface TokenItem extends Pick<Token, "name" | "symbol" | "image" | "address"> {
|
|
833
|
+
amount: React__default.ReactNode;
|
|
834
|
+
secondaryAmount: React__default.ReactNode;
|
|
835
|
+
}
|
|
832
836
|
declare function TokenSelectionItem(props: {
|
|
833
|
-
token:
|
|
837
|
+
token: TokenItem;
|
|
834
838
|
isActive: boolean;
|
|
835
839
|
isAvailable: boolean;
|
|
836
840
|
AddWalletButton: React__default.ReactNode;
|
package/dist/index.mjs
CHANGED
|
@@ -1803,7 +1803,7 @@ var TokenSelector = ({
|
|
|
1803
1803
|
return /* @__PURE__ */ jsx21(
|
|
1804
1804
|
TokenSelectionItem,
|
|
1805
1805
|
{
|
|
1806
|
-
token,
|
|
1806
|
+
token: __spreadProps(__spreadValues({}, token), { secondaryAmount: token.usdValue }),
|
|
1807
1807
|
isActive: isSelected,
|
|
1808
1808
|
isAvailable,
|
|
1809
1809
|
onClick: () => handleTokenSelect(token),
|
|
@@ -1884,8 +1884,17 @@ var TokenSelector = ({
|
|
|
1884
1884
|
] });
|
|
1885
1885
|
};
|
|
1886
1886
|
function TokenSelectionItem(props) {
|
|
1887
|
-
const _a = props, {
|
|
1888
|
-
|
|
1887
|
+
const _a = props, {
|
|
1888
|
+
token,
|
|
1889
|
+
isAvailable = true,
|
|
1890
|
+
isActive,
|
|
1891
|
+
AddWalletButton
|
|
1892
|
+
} = _a, PROPS = __objRest(_a, [
|
|
1893
|
+
"token",
|
|
1894
|
+
"isAvailable",
|
|
1895
|
+
"isActive",
|
|
1896
|
+
"AddWalletButton"
|
|
1897
|
+
]);
|
|
1889
1898
|
const buttonRef = React6.useRef(null);
|
|
1890
1899
|
const buttonContent = /* @__PURE__ */ jsxs13(
|
|
1891
1900
|
"div",
|
|
@@ -1921,10 +1930,10 @@ function TokenSelectionItem(props) {
|
|
|
1921
1930
|
]
|
|
1922
1931
|
})
|
|
1923
1932
|
),
|
|
1924
|
-
/* @__PURE__ */ jsx21("div", { className: "flex flex-col items-end gap-[2px]", children: isAvailable ?
|
|
1925
|
-
/* @__PURE__ */ jsx21("p", { className: "body-1 font-medium text-white", children: token.amount
|
|
1926
|
-
/* @__PURE__ */ jsx21("p", { className: "text-caption text-brand-black-100", children: token.
|
|
1927
|
-
] }) :
|
|
1933
|
+
/* @__PURE__ */ jsx21("div", { className: "flex flex-col items-end gap-[2px]", children: isAvailable ? /* @__PURE__ */ jsxs13(Fragment3, { children: [
|
|
1934
|
+
/* @__PURE__ */ jsx21("p", { className: "body-1 font-medium text-white", children: token.amount }),
|
|
1935
|
+
/* @__PURE__ */ jsx21("p", { className: "text-caption text-brand-black-100", children: token.secondaryAmount })
|
|
1936
|
+
] }) : AddWalletButton })
|
|
1928
1937
|
]
|
|
1929
1938
|
}
|
|
1930
1939
|
);
|
|
@@ -3237,9 +3246,6 @@ function Progress(_a) {
|
|
|
3237
3246
|
|
|
3238
3247
|
// src/components/molecules/timeline.tsx
|
|
3239
3248
|
import { jsx as jsx35, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3240
|
-
function TimelineList(props) {
|
|
3241
|
-
return /* @__PURE__ */ jsx35("ul", { className: "flex flex-col", children: props.children });
|
|
3242
|
-
}
|
|
3243
3249
|
var StatusTextMap = {
|
|
3244
3250
|
processing: "Processing",
|
|
3245
3251
|
upcoming: "Upcoming",
|
|
@@ -3337,10 +3343,7 @@ function TimelineItem(props) {
|
|
|
3337
3343
|
layoutId,
|
|
3338
3344
|
className: "flex gap-[calc(10rem/16)] items-center",
|
|
3339
3345
|
children: [
|
|
3340
|
-
!hideTime && /* @__PURE__ */
|
|
3341
|
-
"~ ",
|
|
3342
|
-
(_d = props == null ? void 0 : props.data) == null ? void 0 : _d.eta
|
|
3343
|
-
] }),
|
|
3346
|
+
!hideTime && /* @__PURE__ */ jsx35("span", { className: "text-[calc(13rem/16)]", children: (_d = props == null ? void 0 : props.data) == null ? void 0 : _d.eta }),
|
|
3344
3347
|
/* @__PURE__ */ jsx35(
|
|
3345
3348
|
Loader2,
|
|
3346
3349
|
{
|
|
@@ -3361,6 +3364,9 @@ function TimelineItem(props) {
|
|
|
3361
3364
|
function TimelineListGroup(props) {
|
|
3362
3365
|
return /* @__PURE__ */ jsx35("ul", { className: cn("flex flex-col overflow-hidden"), children: props.children });
|
|
3363
3366
|
}
|
|
3367
|
+
function TimelineList(props) {
|
|
3368
|
+
return /* @__PURE__ */ jsx35("ul", { className: "flex flex-col", children: props.children });
|
|
3369
|
+
}
|
|
3364
3370
|
var TimelineRoot = React13.forwardRef((props, ref) => {
|
|
3365
3371
|
return /* @__PURE__ */ jsx35(
|
|
3366
3372
|
"ul",
|