@ixo/ui 0.1.7 → 0.1.8
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/.vite/manifest.json +31 -31
- package/dist/components/AppShellNavigation/components/MenuItem.d.ts +2 -1
- package/dist/components/AppShellNavigation/components/MenuItem.d.ts.map +1 -1
- package/dist/components/AppShellNavigation/components/RoomCategory.d.ts +10 -4
- package/dist/components/AppShellNavigation/components/RoomCategory.d.ts.map +1 -1
- package/dist/components/AppShellNavigation/components/RoomItem.d.ts +10 -1
- package/dist/components/AppShellNavigation/components/RoomItem.d.ts.map +1 -1
- package/dist/components/AppShellNavigation/index.d.ts.map +1 -1
- package/dist/components/IconButton/index.d.ts +2 -0
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/MoreMenu/components/Item/index.d.ts +1 -1
- package/dist/components/MoreMenu/components/Item/index.d.ts.map +1 -1
- package/dist/components/MoreMenu/components/Item/types.d.ts +8 -2
- package/dist/components/MoreMenu/components/Item/types.d.ts.map +1 -1
- package/dist/components/MoreMenu/index.d.ts.map +1 -1
- package/dist/components/MoreMenu/types.d.ts +2 -2
- package/dist/components/MoreMenu/types.d.ts.map +1 -1
- package/dist/{components-B_rD80NH.js → components-BTh3OZP_.js} +181 -131
- package/dist/components-BTh3OZP_.js.map +1 -0
- package/dist/{components-BgEk60Ob.cjs → components-t3g1EGWM.cjs} +180 -130
- package/dist/components-t3g1EGWM.cjs.map +1 -0
- package/dist/export/components.cjs +1 -1
- package/dist/export/components.mjs +1 -1
- package/dist/{index-kV2fm9R3.cjs → index-B54JveXj.cjs} +2 -2
- package/dist/{index-kV2fm9R3.cjs.map → index-B54JveXj.cjs.map} +1 -1
- package/dist/{index-BJXmGwAC.cjs → index-BJPFbQjO.cjs} +2 -2
- package/dist/{index-BJXmGwAC.cjs.map → index-BJPFbQjO.cjs.map} +1 -1
- package/dist/{index-BO3dBb76.cjs → index-BQg7t5mI.cjs} +2 -2
- package/dist/{index-BO3dBb76.cjs.map → index-BQg7t5mI.cjs.map} +1 -1
- package/dist/{index-DiaMcybu.js → index-BVV0ucIw.js} +2 -2
- package/dist/{index-DiaMcybu.js.map → index-BVV0ucIw.js.map} +1 -1
- package/dist/{index-dGNR0pvK.cjs → index-B_aWrB-9.cjs} +2 -2
- package/dist/{index-dGNR0pvK.cjs.map → index-B_aWrB-9.cjs.map} +1 -1
- package/dist/{index-qjIpKWBJ.js → index-C7OE98In.js} +2 -2
- package/dist/{index-qjIpKWBJ.js.map → index-C7OE98In.js.map} +1 -1
- package/dist/{index-DFw-YGRB.cjs → index-C92QAG32.cjs} +3 -3
- package/dist/{index-DFw-YGRB.cjs.map → index-C92QAG32.cjs.map} +1 -1
- package/dist/{index-DOhTTpb1.js → index-CDydqopl.js} +2 -2
- package/dist/{index-DOhTTpb1.js.map → index-CDydqopl.js.map} +1 -1
- package/dist/{index-Iosewtvm.cjs → index-CTQ4QmT2.cjs} +2 -2
- package/dist/{index-Iosewtvm.cjs.map → index-CTQ4QmT2.cjs.map} +1 -1
- package/dist/{index-C8qu1Nag.js → index-CV9BPzXp.js} +2 -2
- package/dist/{index-C8qu1Nag.js.map → index-CV9BPzXp.js.map} +1 -1
- package/dist/{index-Bfq_mrjY.cjs → index-D3OehMGn.cjs} +2 -2
- package/dist/{index-Bfq_mrjY.cjs.map → index-D3OehMGn.cjs.map} +1 -1
- package/dist/{index-D3rssdnu.cjs → index-DDlFsxQE.cjs} +2 -2
- package/dist/{index-D3rssdnu.cjs.map → index-DDlFsxQE.cjs.map} +1 -1
- package/dist/{index-CcjXZeyr.cjs → index-DKn0Km5O.cjs} +2 -2
- package/dist/{index-CcjXZeyr.cjs.map → index-DKn0Km5O.cjs.map} +1 -1
- package/dist/{index-Bb5oD5S0.js → index-DPUnEcWL.js} +2 -2
- package/dist/{index-Bb5oD5S0.js.map → index-DPUnEcWL.js.map} +1 -1
- package/dist/{index-Yq2DRnv3.js → index-DSJ4ojXM.js} +2 -2
- package/dist/{index-Yq2DRnv3.js.map → index-DSJ4ojXM.js.map} +1 -1
- package/dist/{index-YQJXRZBs.js → index-DTtlPPm6.js} +2 -2
- package/dist/{index-YQJXRZBs.js.map → index-DTtlPPm6.js.map} +1 -1
- package/dist/{index-CJRQEBo0.cjs → index-DYL9lt-F.cjs} +3 -3
- package/dist/{index-CJRQEBo0.cjs.map → index-DYL9lt-F.cjs.map} +1 -1
- package/dist/{index-CYsfssFh.js → index-Dl7hhKbt.js} +3 -3
- package/dist/{index-CYsfssFh.js.map → index-Dl7hhKbt.js.map} +1 -1
- package/dist/{index-CTEU3j15.js → index-DywPfyqK.js} +3 -3
- package/dist/{index-CTEU3j15.js.map → index-DywPfyqK.js.map} +1 -1
- package/dist/{index-K66R2MRS.js → index-QUkZftBS.js} +2 -2
- package/dist/{index-K66R2MRS.js.map → index-QUkZftBS.js.map} +1 -1
- package/package.json +2 -1
- package/dist/components-B_rD80NH.js.map +0 -1
- package/dist/components-BgEk60Ob.cjs.map +0 -1
|
@@ -4,13 +4,14 @@ import { useTheme, jsx as jsx$1, keyframes, ThemeProvider } from "@emotion/react
|
|
|
4
4
|
import { g as getElementColor, A as AngleDownSolid, a as CheckSolid, C as Close, b as getTransparentColor, L as Loading, P as PlusSolid, S as SearchSolid, c as Assistant, d as ArrowUpSolid, E as EllipsisVSolid, e as ArrowLeftSolid, f as Canvas, H as HistorySolid, U as User, h as AngleLeftSolid, M as MinusCircleSolid, i as SettingsBarSolid, G as Globe, D as Dashboard, j as Groups, k as UserCircleSolid, l as Assets$1, m as Claims, n as Accounts, o as LinkedResources, p as Proposals, I as ImpactCredits, q as GoTo, r as Share, s as PiePiece, t as ImpactCertificates, u as CommentDotsSolid, v as CommentAltSolid, w as MicrophoneSolid, x as Command, y as ArrowCircleRightSolid, z as Protocols, B as Investments, O as Oracles, F as Projects, J as Daos, K as Star, N as AngleRightSolid, Q as Expand, R as LeafSolid, T as ArrowDownSolid, V as ArrowRightSolid, W as Play, X as CheckCircle, Y as Events, Z as ThumbsUpSolid, _ as CommentsSolid, $ as CopySolid, a0 as Hourglass, a1 as Act, a2 as Info$1, a3 as ClaimsW, a4 as TachometerAltSolid, a5 as UserCogSolid, a6 as UsersSolid, a7 as EllipsisHSolid } from "./UsersSolid-BAHkDzh8.js";
|
|
5
5
|
import { useState, useCallback, useRef, forwardRef, useEffect, Suspense, lazy, useMemo, useId, Fragment as Fragment$1, useLayoutEffect, useImperativeHandle, memo } from "react";
|
|
6
6
|
import { T as TAG_SMALL_HEIGHT, D as DEFAULT_ICON_SIZE } from "./constants-B7xlU8b8.js";
|
|
7
|
-
import { Accordion as Accordion$1, Box, Image, Text as Text$1, Popover, Badge as Badge$1, Center, AppShell, Skeleton,
|
|
7
|
+
import { Accordion as Accordion$1, Box, Image, Text as Text$1, Popover, Stack as Stack$1, Badge as Badge$1, Center, AppShell, Skeleton, Tooltip as Tooltip$4, CloseButton, Group, Burger, Divider, ScrollArea, Space, Overlay } from "@mantine/core";
|
|
8
8
|
import { cx, css } from "@emotion/css";
|
|
9
9
|
import { createPortal } from "react-dom";
|
|
10
10
|
import DOMPurify from "dompurify";
|
|
11
11
|
import { useMediaQuery, useResizeObserver, useHover, useDisclosure } from "@mantine/hooks";
|
|
12
12
|
import { a as useLocalStorage, E as EventEmitter, u as useEventSubscribe } from "./useEventSubscribe-BuXZL79s.js";
|
|
13
13
|
import { u as useUITheme } from "./useUITheme-7i8NJ2FG.js";
|
|
14
|
+
import { IconPlus } from "@tabler/icons-react";
|
|
14
15
|
import Markdown from "react-markdown";
|
|
15
16
|
import remarkGfm from "remark-gfm";
|
|
16
17
|
import { useCombobox, useSelect } from "downshift";
|
|
@@ -822,8 +823,8 @@ function AccordionTable({
|
|
|
822
823
|
}
|
|
823
824
|
);
|
|
824
825
|
}
|
|
825
|
-
const Header$3 = lazy(() => import("./index-
|
|
826
|
-
const Footer = lazy(() => import("./index-
|
|
826
|
+
const Header$3 = lazy(() => import("./index-CDydqopl.js"));
|
|
827
|
+
const Footer = lazy(() => import("./index-DywPfyqK.js"));
|
|
827
828
|
function ActionCard({ header, content, footer, useHoverMode = false }) {
|
|
828
829
|
const hasContent = !!content || !!footer;
|
|
829
830
|
const initialVisibility = footer?.startHidden !== true;
|
|
@@ -907,7 +908,7 @@ function Loader({ size, color = "primary" }) {
|
|
|
907
908
|
}
|
|
908
909
|
const CARD_WIDTH$1 = 350;
|
|
909
910
|
const CARD_HEADER_HEIGHT = 158;
|
|
910
|
-
const Header$2 = lazy(() => import("./index-
|
|
911
|
+
const Header$2 = lazy(() => import("./index-DPUnEcWL.js"));
|
|
911
912
|
function Card({ children, className, contentClassName, roundedBottom, noPadding = false, fullWidth = false, header, wrapperSx, onClick }) {
|
|
912
913
|
const wrapperRef = useRef(null);
|
|
913
914
|
const handleOnClick = useCallback(
|
|
@@ -1342,7 +1343,7 @@ function ModalSheet({ isOpen, children, hideHandler, zIndex, onRequestHide, onRe
|
|
|
1342
1343
|
document.body
|
|
1343
1344
|
);
|
|
1344
1345
|
}
|
|
1345
|
-
const Badge = lazy(() => import("./index-
|
|
1346
|
+
const Badge = lazy(() => import("./index-C7OE98In.js"));
|
|
1346
1347
|
function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide, onRequestShow }) {
|
|
1347
1348
|
const shadowScrollRef = useRef(null);
|
|
1348
1349
|
const wrapperContentAreaRef = useRef(null);
|
|
@@ -1460,6 +1461,7 @@ function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide
|
|
|
1460
1461
|
}
|
|
1461
1462
|
) });
|
|
1462
1463
|
}
|
|
1464
|
+
const icon = (Icon, size, color) => /* @__PURE__ */ jsx(Icon, { size: 18, color });
|
|
1463
1465
|
function IconButton({
|
|
1464
1466
|
icon: Icon,
|
|
1465
1467
|
onClick,
|
|
@@ -1921,8 +1923,8 @@ function HtmlRender({ content, className }) {
|
|
|
1921
1923
|
const safeHTML = DOMPurify.sanitize(content, { FORBID_ATTR: ["style"] });
|
|
1922
1924
|
return /* @__PURE__ */ jsx(StyleDOMApplier, { children: /* @__PURE__ */ jsx("div", { className, dangerouslySetInnerHTML: { __html: safeHTML } }) });
|
|
1923
1925
|
}
|
|
1924
|
-
function Item({ icon, label, disabled,
|
|
1925
|
-
const IconComponent =
|
|
1926
|
+
function Item({ icon: icon2, label, disabled, onClick }) {
|
|
1927
|
+
const IconComponent = icon2;
|
|
1926
1928
|
return /* @__PURE__ */ jsx(
|
|
1927
1929
|
"button",
|
|
1928
1930
|
{
|
|
@@ -1930,9 +1932,9 @@ function Item({ icon, label, disabled, active, onClick }) {
|
|
|
1930
1932
|
width: "100%",
|
|
1931
1933
|
borderRadius: 4,
|
|
1932
1934
|
padding: "4px 12px",
|
|
1933
|
-
background: "
|
|
1935
|
+
background: "transparent",
|
|
1934
1936
|
border: "none",
|
|
1935
|
-
cursor: disabled ? "
|
|
1937
|
+
cursor: disabled ? "default" : "pointer",
|
|
1936
1938
|
textAlign: "left",
|
|
1937
1939
|
"&:hover": {
|
|
1938
1940
|
backgroundColor: disabled ? void 0 : "var(--mantine-color-neutralColor-6)"
|
|
@@ -1941,17 +1943,8 @@ function Item({ icon, label, disabled, active, onClick }) {
|
|
|
1941
1943
|
disabled,
|
|
1942
1944
|
onClick,
|
|
1943
1945
|
children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 8, children: [
|
|
1944
|
-
IconComponent && /* @__PURE__ */ jsx(IconComponent, { size:
|
|
1945
|
-
/* @__PURE__ */ jsx(
|
|
1946
|
-
Typography.Text,
|
|
1947
|
-
{
|
|
1948
|
-
css: ({ fontSize }) => ({
|
|
1949
|
-
fontSize: fontSize.xs,
|
|
1950
|
-
color: disabled ? "var(--mantine-color-neutralColor-8)" : active ? "var(--mantine-color-neutralColor-8)" : "var(--mantine-color-neutralColor-8)"
|
|
1951
|
-
}),
|
|
1952
|
-
children: label
|
|
1953
|
-
}
|
|
1954
|
-
)
|
|
1946
|
+
IconComponent && /* @__PURE__ */ jsx(IconComponent, { size: 18, color: disabled ? "var(--mantine-color-neutralColor-7)" : "var(--mantine-color-neutralColor-8)" }),
|
|
1947
|
+
/* @__PURE__ */ jsx(Text$1, { c: disabled ? "var(--mantine-color-neutralColor-7)" : void 0, fz: 14, children: label })
|
|
1955
1948
|
] })
|
|
1956
1949
|
}
|
|
1957
1950
|
);
|
|
@@ -1967,11 +1960,12 @@ function MoreMenu({ items, controlColor = "primary" }) {
|
|
|
1967
1960
|
styles: {
|
|
1968
1961
|
dropdown: {
|
|
1969
1962
|
background: "var(--mantine-color-neutralColor-4)",
|
|
1970
|
-
border: "none",
|
|
1971
1963
|
padding: "12px 4px",
|
|
1964
|
+
borderColor: "var(--mantine-color-neutralColor-6)",
|
|
1972
1965
|
marginLeft: 10
|
|
1973
1966
|
}
|
|
1974
1967
|
},
|
|
1968
|
+
radius: 16,
|
|
1975
1969
|
trapFocus: true,
|
|
1976
1970
|
width: 200,
|
|
1977
1971
|
position: "right-start",
|
|
@@ -1995,8 +1989,8 @@ function MoreMenu({ items, controlColor = "primary" }) {
|
|
|
1995
1989
|
}
|
|
1996
1990
|
) }),
|
|
1997
1991
|
/* @__PURE__ */ jsxs(Popover.Dropdown, { children: [
|
|
1998
|
-
/* @__PURE__ */ jsx(Text$1, { ml: 12, mb: 10, fz:
|
|
1999
|
-
items.map((item) => /* @__PURE__ */ jsx(
|
|
1992
|
+
/* @__PURE__ */ jsx(Text$1, { ml: 12, mb: 10, fz: 14, c: "neutralColor.7", children: "Page" }),
|
|
1993
|
+
/* @__PURE__ */ jsx(Stack$1, { gap: "4px", children: items.map((item) => /* @__PURE__ */ jsx(
|
|
2000
1994
|
Item,
|
|
2001
1995
|
{
|
|
2002
1996
|
icon: item.icon,
|
|
@@ -2009,7 +2003,7 @@ function MoreMenu({ items, controlColor = "primary" }) {
|
|
|
2009
2003
|
}
|
|
2010
2004
|
},
|
|
2011
2005
|
item.label
|
|
2012
|
-
))
|
|
2006
|
+
)) })
|
|
2013
2007
|
] })
|
|
2014
2008
|
]
|
|
2015
2009
|
}
|
|
@@ -2045,7 +2039,7 @@ function AIResponse({ content, agentName, menu }) {
|
|
|
2045
2039
|
}
|
|
2046
2040
|
);
|
|
2047
2041
|
}
|
|
2048
|
-
function AIInputBar({ placeholder, icon, disabledInput, disabledButton, valueInput, inInputChange, onButtonClick }) {
|
|
2042
|
+
function AIInputBar({ placeholder, icon: icon2, disabledInput, disabledButton, valueInput, inInputChange, onButtonClick }) {
|
|
2049
2043
|
return /* @__PURE__ */ jsx(
|
|
2050
2044
|
"div",
|
|
2051
2045
|
{
|
|
@@ -2087,7 +2081,7 @@ function AIInputBar({ placeholder, icon, disabledInput, disabledButton, valueInp
|
|
|
2087
2081
|
})
|
|
2088
2082
|
}
|
|
2089
2083
|
),
|
|
2090
|
-
/* @__PURE__ */ jsx(RoundedButton, { icon:
|
|
2084
|
+
/* @__PURE__ */ jsx(RoundedButton, { icon: icon2 ?? Assistant, label: "Ask", active: true, disabled: disabledButton, onClick: onButtonClick })
|
|
2091
2085
|
] })
|
|
2092
2086
|
}
|
|
2093
2087
|
);
|
|
@@ -2167,8 +2161,8 @@ function Avatar({ src, rounded = true, size = 62, did }) {
|
|
|
2167
2161
|
if (jazzRef.current) {
|
|
2168
2162
|
jazzRef.current.innerHTML = "";
|
|
2169
2163
|
const seed = Array.from(did).reduce((acc, char) => acc + char.charCodeAt(0), 0);
|
|
2170
|
-
const
|
|
2171
|
-
jazzRef.current.appendChild(
|
|
2164
|
+
const icon2 = jazzicon(size, seed);
|
|
2165
|
+
jazzRef.current.appendChild(icon2);
|
|
2172
2166
|
}
|
|
2173
2167
|
} catch (error) {
|
|
2174
2168
|
console.error("Failed to load jazzicon:", error);
|
|
@@ -2343,33 +2337,92 @@ function NavigationItemSkeleton() {
|
|
|
2343
2337
|
}
|
|
2344
2338
|
);
|
|
2345
2339
|
}
|
|
2340
|
+
function cutText(text, length, ending = "…") {
|
|
2341
|
+
if (!length || text.length <= length) {
|
|
2342
|
+
return text;
|
|
2343
|
+
}
|
|
2344
|
+
const words = text.split(" ");
|
|
2345
|
+
const endingSize = ending.length;
|
|
2346
|
+
let result = "";
|
|
2347
|
+
for (const word of words) {
|
|
2348
|
+
const newValue = result + word + " ";
|
|
2349
|
+
if (newValue.length + endingSize - 1 > length) {
|
|
2350
|
+
break;
|
|
2351
|
+
}
|
|
2352
|
+
result = newValue;
|
|
2353
|
+
}
|
|
2354
|
+
return result.trim() + ending;
|
|
2355
|
+
}
|
|
2356
|
+
function shortStr(str, threshold = 30, saveSymbolsAtTheEnd = 10, insert = "...") {
|
|
2357
|
+
if (!str) return str;
|
|
2358
|
+
const len = str.length;
|
|
2359
|
+
if (len <= threshold) return str;
|
|
2360
|
+
const ending = saveSymbolsAtTheEnd ? str.slice(-1 * saveSymbolsAtTheEnd) : "";
|
|
2361
|
+
const beginning = str.substring(0, threshold - saveSymbolsAtTheEnd - insert.length);
|
|
2362
|
+
return `${beginning}${insert}${ending}`;
|
|
2363
|
+
}
|
|
2364
|
+
function carbonToUSD(carbon) {
|
|
2365
|
+
return (carbon * 0.03).toLocaleString(void 0, {
|
|
2366
|
+
minimumFractionDigits: 0,
|
|
2367
|
+
maximumFractionDigits: 6
|
|
2368
|
+
});
|
|
2369
|
+
}
|
|
2346
2370
|
function RoomItem({ room }) {
|
|
2347
2371
|
const { hovered, ref } = useHover();
|
|
2348
|
-
|
|
2372
|
+
const renderIcon = () => {
|
|
2373
|
+
if (!room.icon) return null;
|
|
2374
|
+
if (typeof room.icon === "string") {
|
|
2375
|
+
return /* @__PURE__ */ jsx(Image, { w: 20, h: 20, src: room.icon, radius: "50%" });
|
|
2376
|
+
} else if (typeof room.icon === "function") {
|
|
2377
|
+
const IconComponent = room.icon;
|
|
2378
|
+
return /* @__PURE__ */ jsx(IconComponent, { size: 20, color: "secondary" });
|
|
2379
|
+
} else {
|
|
2380
|
+
return room.icon;
|
|
2381
|
+
}
|
|
2382
|
+
};
|
|
2383
|
+
const displayName = shortStr(room.name, 19, 0) || room.name;
|
|
2384
|
+
const shouldShowTooltip = room.name.length > 19;
|
|
2385
|
+
const content = /* @__PURE__ */ jsxs(
|
|
2349
2386
|
Flex,
|
|
2350
2387
|
{
|
|
2351
2388
|
ref,
|
|
2352
2389
|
align: "center",
|
|
2390
|
+
justify: "space-between",
|
|
2353
2391
|
gap: 8,
|
|
2354
2392
|
px: 12,
|
|
2355
|
-
py:
|
|
2356
|
-
ml: 16,
|
|
2393
|
+
py: 6,
|
|
2357
2394
|
style: {
|
|
2358
2395
|
cursor: "pointer",
|
|
2359
2396
|
borderRadius: 6,
|
|
2360
|
-
backgroundColor: room.isActive || hovered ? "var(--mantine-color-neutralColor-
|
|
2361
|
-
transform: hovered ? "translateX(2px)" : "translateX(0px)",
|
|
2397
|
+
backgroundColor: room.isActive || hovered ? "var(--mantine-color-neutralColor-6)" : "transparent",
|
|
2362
2398
|
transition: "all 0.15s ease"
|
|
2363
2399
|
},
|
|
2364
2400
|
onClick: () => room.onClick(room.id),
|
|
2365
2401
|
children: [
|
|
2366
|
-
/* @__PURE__ */
|
|
2367
|
-
|
|
2402
|
+
/* @__PURE__ */ jsxs(Flex, { align: "center", gap: 8, children: [
|
|
2403
|
+
renderIcon(),
|
|
2404
|
+
/* @__PURE__ */ jsx(Text$1, { c: room.isActive ? "neutralColor.8" : "neutralColor.7", fz: 14, children: displayName })
|
|
2405
|
+
] }),
|
|
2406
|
+
hovered && /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 4, children: [
|
|
2407
|
+
room.onActionClick && /* @__PURE__ */ jsx(Tooltip$4, { label: room.onActionClick.label, children: /* @__PURE__ */ jsx(
|
|
2408
|
+
Center,
|
|
2409
|
+
{
|
|
2410
|
+
onClick: (e) => {
|
|
2411
|
+
e.stopPropagation();
|
|
2412
|
+
room.onActionClick?.onClick();
|
|
2413
|
+
},
|
|
2414
|
+
style: { cursor: "pointer" },
|
|
2415
|
+
children: icon(room.onActionClick.icon, void 0, "var(--mantine-color-neutralColor-7)")
|
|
2416
|
+
}
|
|
2417
|
+
) }),
|
|
2418
|
+
room.tag && room.tagIcon && /* @__PURE__ */ jsx(Tooltip$4, { label: room.tag, children: icon(room.tagIcon, void 0, "var(--mantine-color-neutralColor-7)") })
|
|
2419
|
+
] })
|
|
2368
2420
|
]
|
|
2369
2421
|
}
|
|
2370
2422
|
);
|
|
2423
|
+
return shouldShowTooltip ? /* @__PURE__ */ jsx(Tooltip$4, { label: room.name, children: /* @__PURE__ */ jsx("span", { children: content }) }) : content;
|
|
2371
2424
|
}
|
|
2372
|
-
function RoomCategory({
|
|
2425
|
+
function RoomCategory({ name, rooms, actions, onAddClick }) {
|
|
2373
2426
|
const { hovered, ref } = useHover();
|
|
2374
2427
|
const { value, toggle: toggle2 } = useToggle(false);
|
|
2375
2428
|
return /* @__PURE__ */ jsxs(Stack$1, { gap: 2, children: [
|
|
@@ -2380,7 +2433,7 @@ function RoomCategory({ category }) {
|
|
|
2380
2433
|
align: "center",
|
|
2381
2434
|
justify: "space-between",
|
|
2382
2435
|
px: 12,
|
|
2383
|
-
py:
|
|
2436
|
+
py: 6,
|
|
2384
2437
|
style: {
|
|
2385
2438
|
cursor: "pointer",
|
|
2386
2439
|
borderRadius: 6,
|
|
@@ -2389,21 +2442,49 @@ function RoomCategory({ category }) {
|
|
|
2389
2442
|
},
|
|
2390
2443
|
onClick: toggle2,
|
|
2391
2444
|
children: [
|
|
2392
|
-
/* @__PURE__ */ jsx(Text$1, { fz: 12,
|
|
2393
|
-
/* @__PURE__ */
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2445
|
+
/* @__PURE__ */ jsx(Text$1, { fz: 12, tt: "capitalize", children: name }),
|
|
2446
|
+
/* @__PURE__ */ jsxs(Flex, { align: "center", gap: 8, children: [
|
|
2447
|
+
onAddClick && /* @__PURE__ */ jsx(
|
|
2448
|
+
Center,
|
|
2449
|
+
{
|
|
2450
|
+
onClick: (e) => {
|
|
2451
|
+
e.stopPropagation();
|
|
2452
|
+
onAddClick();
|
|
2453
|
+
},
|
|
2454
|
+
sx: { cursor: "pointer", borderRadius: 4, transition: "transform 0.2s ease", "&:hover": { background: "var(--mantine-color-neutralColor-5)" } },
|
|
2455
|
+
children: icon(IconPlus, void 0, "var(--mantine-color-neutralColor-7)")
|
|
2456
|
+
}
|
|
2457
|
+
),
|
|
2458
|
+
actions && actions.length > 0 && /* @__PURE__ */ jsx(
|
|
2459
|
+
Center,
|
|
2460
|
+
{
|
|
2461
|
+
onClick: (e) => e.stopPropagation(),
|
|
2462
|
+
sx: {
|
|
2463
|
+
cursor: "pointer",
|
|
2464
|
+
borderRadius: 4,
|
|
2465
|
+
transition: "transform 0.2s ease",
|
|
2466
|
+
"&:hover": {
|
|
2467
|
+
background: "var(--mantine-color-neutralColor-5)"
|
|
2468
|
+
}
|
|
2469
|
+
},
|
|
2470
|
+
children: /* @__PURE__ */ jsx(MoreMenu, { items: actions, controlColor: "secondary" })
|
|
2471
|
+
}
|
|
2472
|
+
),
|
|
2473
|
+
/* @__PURE__ */ jsx(
|
|
2474
|
+
Center,
|
|
2475
|
+
{
|
|
2476
|
+
sx: {
|
|
2477
|
+
transform: value ? "rotate(-90deg)" : "rotate(0deg)",
|
|
2478
|
+
transition: "transform 0.2s ease"
|
|
2479
|
+
},
|
|
2480
|
+
children: /* @__PURE__ */ jsx(AngleLeftSolid, { size: 12, color: "secondary" })
|
|
2481
|
+
}
|
|
2482
|
+
)
|
|
2483
|
+
] })
|
|
2403
2484
|
]
|
|
2404
2485
|
}
|
|
2405
2486
|
),
|
|
2406
|
-
!value && /* @__PURE__ */ jsx(Stack$1, { gap:
|
|
2487
|
+
!value && /* @__PURE__ */ jsx(Stack$1, { gap: 5, children: rooms?.map((room) => /* @__PURE__ */ jsx(RoomItem, { room }, room.id)) })
|
|
2407
2488
|
] });
|
|
2408
2489
|
}
|
|
2409
2490
|
function hasActiveDescendant(children) {
|
|
@@ -2484,7 +2565,6 @@ function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
|
2484
2565
|
cursor: "pointer",
|
|
2485
2566
|
borderRadius: 8,
|
|
2486
2567
|
backgroundColor: shouldShowActiveStyle ? "var(--mantine-color-neutralColor-6)" : hovered ? "var(--mantine-color-neutralColor-6)" : "transparent",
|
|
2487
|
-
transform: hovered ? "translateX(4px)" : "translateX(0px)",
|
|
2488
2568
|
transition: "all 0.2s ease"
|
|
2489
2569
|
},
|
|
2490
2570
|
onClick: handleItemClick,
|
|
@@ -2529,7 +2609,7 @@ function SelectedIndicator() {
|
|
|
2529
2609
|
}
|
|
2530
2610
|
);
|
|
2531
2611
|
}
|
|
2532
|
-
function SpaceItem({ icon, id, name, selectedSpace, onClick }) {
|
|
2612
|
+
function SpaceItem({ icon: icon2, id, name, selectedSpace, onClick }) {
|
|
2533
2613
|
const { hovered, ref } = useHover();
|
|
2534
2614
|
const isSelected = selectedSpace === id;
|
|
2535
2615
|
return /* @__PURE__ */ jsxs(
|
|
@@ -2546,42 +2626,12 @@ function SpaceItem({ icon, id, name, selectedSpace, onClick }) {
|
|
|
2546
2626
|
w: 40,
|
|
2547
2627
|
onClick: () => onClick(id),
|
|
2548
2628
|
children: [
|
|
2549
|
-
/* @__PURE__ */ jsx(Tooltip$4, { label: name, ml: 5, fz: 12, position: "right", withArrow: true, children: typeof
|
|
2629
|
+
/* @__PURE__ */ jsx(Tooltip$4, { label: name, ml: 5, fz: 12, position: "right", withArrow: true, children: typeof icon2 === "string" ? /* @__PURE__ */ jsx(Image, { radius: 24, src: icon2, w: 32, h: 32 }) : icon2 }),
|
|
2550
2630
|
isSelected && /* @__PURE__ */ jsx(SelectedIndicator, {})
|
|
2551
2631
|
]
|
|
2552
2632
|
}
|
|
2553
2633
|
);
|
|
2554
2634
|
}
|
|
2555
|
-
function cutText(text, length, ending = "…") {
|
|
2556
|
-
if (!length || text.length <= length) {
|
|
2557
|
-
return text;
|
|
2558
|
-
}
|
|
2559
|
-
const words = text.split(" ");
|
|
2560
|
-
const endingSize = ending.length;
|
|
2561
|
-
let result = "";
|
|
2562
|
-
for (const word of words) {
|
|
2563
|
-
const newValue = result + word + " ";
|
|
2564
|
-
if (newValue.length + endingSize - 1 > length) {
|
|
2565
|
-
break;
|
|
2566
|
-
}
|
|
2567
|
-
result = newValue;
|
|
2568
|
-
}
|
|
2569
|
-
return result.trim() + ending;
|
|
2570
|
-
}
|
|
2571
|
-
function shortStr(str, threshold = 30, saveSymbolsAtTheEnd = 10, insert = "...") {
|
|
2572
|
-
if (!str) return str;
|
|
2573
|
-
const len = str.length;
|
|
2574
|
-
if (len <= threshold) return str;
|
|
2575
|
-
const ending = saveSymbolsAtTheEnd ? str.slice(-1 * saveSymbolsAtTheEnd) : "";
|
|
2576
|
-
const beginning = str.substring(0, threshold - saveSymbolsAtTheEnd - insert.length);
|
|
2577
|
-
return `${beginning}${insert}${ending}`;
|
|
2578
|
-
}
|
|
2579
|
-
function carbonToUSD(carbon) {
|
|
2580
|
-
return (carbon * 0.03).toLocaleString(void 0, {
|
|
2581
|
-
minimumFractionDigits: 0,
|
|
2582
|
-
maximumFractionDigits: 6
|
|
2583
|
-
});
|
|
2584
|
-
}
|
|
2585
2635
|
function MobileBurger({ avatarIcon, isOpened, onClick }) {
|
|
2586
2636
|
if (isOpened) {
|
|
2587
2637
|
return /* @__PURE__ */ jsx(CloseButton, { hiddenFrom: "sm", pos: "absolute", w: 28, sx: { borderRadius: 8, zIndex: 100 }, h: 28, onClick, right: 12, top: 12, bg: "neutralColor.4" });
|
|
@@ -2627,7 +2677,7 @@ function AppShellNavigation({
|
|
|
2627
2677
|
const [asideWidth, setAsideWidth] = useState(450);
|
|
2628
2678
|
const isMobile = useMediaQuery("(max-width: 48em)");
|
|
2629
2679
|
const [mobileOpened, { toggle: toggleMobile }] = useDisclosure();
|
|
2630
|
-
const [desktopOpened
|
|
2680
|
+
const [desktopOpened] = useDisclosure(true);
|
|
2631
2681
|
const [isSplitResizing, setIsSplitResizing] = useState(false);
|
|
2632
2682
|
const isSplitResizingRef = useRef(false);
|
|
2633
2683
|
const mainContainerRef = useRef(null);
|
|
@@ -2701,7 +2751,7 @@ function AppShellNavigation({
|
|
|
2701
2751
|
const handleNavbarMouseMove = useCallback(
|
|
2702
2752
|
(e) => {
|
|
2703
2753
|
if (!isNavbarResizingRef.current) return;
|
|
2704
|
-
const minWidth = isAiOpened ? 450 :
|
|
2754
|
+
const minWidth = isAiOpened ? 450 : 330;
|
|
2705
2755
|
const maxWidth = 700;
|
|
2706
2756
|
const newWidth = Math.min(Math.max(e.clientX, minWidth), maxWidth);
|
|
2707
2757
|
if (isAiOpened) {
|
|
@@ -2735,7 +2785,7 @@ function AppShellNavigation({
|
|
|
2735
2785
|
useEffect(() => {
|
|
2736
2786
|
const handleWindowResize = () => {
|
|
2737
2787
|
const maxWidth = 700;
|
|
2738
|
-
const minWidth = isAiOpened ? 450 :
|
|
2788
|
+
const minWidth = isAiOpened ? 450 : 330;
|
|
2739
2789
|
const currentWidth = isAiOpened ? navbarWidthAiOpen : navbarWidthAiClosed;
|
|
2740
2790
|
const setter = isAiOpened ? setNavbarWidthAiOpen : setNavbarWidthAiClosed;
|
|
2741
2791
|
if (currentWidth > maxWidth) {
|
|
@@ -2830,7 +2880,7 @@ function AppShellNavigation({
|
|
|
2830
2880
|
paddingRight: 8
|
|
2831
2881
|
}
|
|
2832
2882
|
},
|
|
2833
|
-
children: /* @__PURE__ */ jsx(Stack$1, { align: "center", gap: 8, children: spaces.map(({ icon, id, name, onClick }) => /* @__PURE__ */ jsx(SpaceItem, { selectedSpace, icon, name, id, onClick }, id)) })
|
|
2883
|
+
children: /* @__PURE__ */ jsx(Stack$1, { align: "center", gap: 8, children: spaces.map(({ icon: icon2, id, name, onClick }) => /* @__PURE__ */ jsx(SpaceItem, { selectedSpace, icon: icon2, name, id, onClick }, id)) })
|
|
2834
2884
|
}
|
|
2835
2885
|
)
|
|
2836
2886
|
] }),
|
|
@@ -2842,28 +2892,28 @@ function AppShellNavigation({
|
|
|
2842
2892
|
] })
|
|
2843
2893
|
] }),
|
|
2844
2894
|
isAiOpened && !isMobile && aiNavbarContent,
|
|
2845
|
-
!isAiOpened && /* @__PURE__ */ jsxs(
|
|
2846
|
-
/* @__PURE__ */ jsxs(
|
|
2847
|
-
/* @__PURE__ */
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
{
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
"
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2895
|
+
!isAiOpened && /* @__PURE__ */ jsxs(Box, { w: "100%", style: { height: "100%", display: "flex", flexDirection: "column" }, children: [
|
|
2896
|
+
/* @__PURE__ */ jsx(AppShell.Section, { px: 12, pt: 16, children: /* @__PURE__ */ jsxs(Flex, { mb: 24, style: { width: "100%" }, justify: "space-between", align: "center", children: [
|
|
2897
|
+
/* @__PURE__ */ jsx(Flex, { align: "center", gap: "10px", children: /* @__PURE__ */ jsx(Tooltip$4, { label: pageItem.pageTitle || "Unknown", disabled: !isTitleOverflowing, position: "bottom", withArrow: true, children: /* @__PURE__ */ jsx(Text$1, { lh: 1, c: "neutralColor.8", children: isTitleOverflowing ? shortStr(pageItem.pageTitle, 21, 0) : pageItem.pageTitle || "Unknown" }) }) }),
|
|
2898
|
+
isAiBtnVisible && !isAiOpened && !isMobile && /* @__PURE__ */ jsx(
|
|
2899
|
+
Center,
|
|
2900
|
+
{
|
|
2901
|
+
sx: {
|
|
2902
|
+
cursor: "pointer",
|
|
2903
|
+
borderRadius: 8,
|
|
2904
|
+
transition: "background 0.15s",
|
|
2905
|
+
background: "var(--mantine-color-neutralColor-5)",
|
|
2906
|
+
"&:hover": {
|
|
2907
|
+
background: "var(--mantine-color-neutralColor-6)"
|
|
2908
|
+
}
|
|
2909
|
+
},
|
|
2910
|
+
p: 4,
|
|
2911
|
+
onClick: onAiOpen,
|
|
2912
|
+
children: /* @__PURE__ */ jsx(Assistant, { size: 18, color: "primary" })
|
|
2913
|
+
}
|
|
2914
|
+
)
|
|
2915
|
+
] }) }),
|
|
2916
|
+
/* @__PURE__ */ jsx(AppShell.Section, { grow: true, component: ScrollArea, scrollbarSize: 5, sx: { overflowX: "hidden" }, px: 12, children: /* @__PURE__ */ jsxs(Stack$1, { gap: 5, children: [
|
|
2867
2917
|
loading ? /* @__PURE__ */ jsx(Stack$1, { gap: 5, children: Array.from({ length: 6 }).map((_, idx) => /* @__PURE__ */ jsx(NavigationItemSkeleton, {}, idx)) }) : menuItems?.map((item, index) => {
|
|
2868
2918
|
if (index !== 0 && index === separator) {
|
|
2869
2919
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -2873,9 +2923,9 @@ function AppShellNavigation({
|
|
|
2873
2923
|
}
|
|
2874
2924
|
return /* @__PURE__ */ jsx(MenuItem, { onMenuItemClick, item }, item.id);
|
|
2875
2925
|
}),
|
|
2876
|
-
roomCategories && roomCategories.length > 0 && /* @__PURE__ */ jsx(Stack$1, { gap: 8, mt: 16, children: roomCategories.map((
|
|
2877
|
-
] }),
|
|
2878
|
-
/* @__PURE__ */ jsx(Stack$1, { gap: 5, children: footerContent })
|
|
2926
|
+
roomCategories && roomCategories.length > 0 && /* @__PURE__ */ jsx(Stack$1, { gap: 8, mt: 16, children: roomCategories.map(({ id, name, actions, rooms, onAddClick }) => /* @__PURE__ */ jsx(RoomCategory, { id, name, actions, rooms, onAddClick }, id)) })
|
|
2927
|
+
] }) }),
|
|
2928
|
+
footerContent && /* @__PURE__ */ jsx(AppShell.Section, { px: 12, py: 10, children: /* @__PURE__ */ jsx(Stack$1, { gap: 5, children: footerContent }) })
|
|
2879
2929
|
] })
|
|
2880
2930
|
] })
|
|
2881
2931
|
] }) }),
|
|
@@ -5354,7 +5404,7 @@ function ImageIcon({ source: Source, fallback: Fallback, size = 32, iconColor =
|
|
|
5354
5404
|
}
|
|
5355
5405
|
return isString(Source) ? /* @__PURE__ */ jsx("img", { src: Source, draggable: false, width: size, height: size, css: { borderRadius: size, objectFit: "cover" } }) : /* @__PURE__ */ jsx(Source, { size, color: iconColor });
|
|
5356
5406
|
}
|
|
5357
|
-
function Value({ icon, label, value }) {
|
|
5407
|
+
function Value({ icon: icon2, label, value }) {
|
|
5358
5408
|
return /* @__PURE__ */ jsxs(
|
|
5359
5409
|
"div",
|
|
5360
5410
|
{
|
|
@@ -5368,7 +5418,7 @@ function Value({ icon, label, value }) {
|
|
|
5368
5418
|
alignItems: "center"
|
|
5369
5419
|
}),
|
|
5370
5420
|
children: [
|
|
5371
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(ImageIcon, { source:
|
|
5421
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(ImageIcon, { source: icon2, size: 32, iconColor: "primary" }) }),
|
|
5372
5422
|
/* @__PURE__ */ jsxs(Spacer, { vertical: true, distance: 0, alignItems: "start", children: [
|
|
5373
5423
|
/* @__PURE__ */ jsx(Typography.Text, { color: "text", size: "s", children: label }),
|
|
5374
5424
|
/* @__PURE__ */ jsx(Typography.Text, { color: "secondary", size: "xs", children: value })
|
|
@@ -6009,13 +6059,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
6009
6059
|
}
|
|
6010
6060
|
);
|
|
6011
6061
|
}
|
|
6012
|
-
const MainAction = lazy(() => import("./index-
|
|
6013
|
-
const Header$1 = lazy(() => import("./index-
|
|
6014
|
-
const Content = lazy(() => import("./index-
|
|
6062
|
+
const MainAction = lazy(() => import("./index-DSJ4ojXM.js"));
|
|
6063
|
+
const Header$1 = lazy(() => import("./index-DTtlPPm6.js"));
|
|
6064
|
+
const Content = lazy(() => import("./index-QUkZftBS.js"));
|
|
6015
6065
|
const Map = lazy(() => import("./index-D5Ufmf-s.js"));
|
|
6016
6066
|
const CustomContent = lazy(() => import("./index-DsYjW_4y.js"));
|
|
6017
|
-
const Assets = lazy(() => import("./index-
|
|
6018
|
-
const Actions = lazy(() => import("./index-
|
|
6067
|
+
const Assets = lazy(() => import("./index-BVV0ucIw.js"));
|
|
6068
|
+
const Actions = lazy(() => import("./index-Dl7hhKbt.js"));
|
|
6019
6069
|
const HOVER_BORDER_WIDTH = 1;
|
|
6020
6070
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
6021
6071
|
const wrapperRef = useRef(null);
|
|
@@ -6315,7 +6365,7 @@ function AssetInfo({
|
|
|
6315
6365
|
rightTitleColor = "text",
|
|
6316
6366
|
rightSubtitle,
|
|
6317
6367
|
rightSubtitleColor = "focusSecondary",
|
|
6318
|
-
icon
|
|
6368
|
+
icon: icon2
|
|
6319
6369
|
}) {
|
|
6320
6370
|
const theme = useTheme();
|
|
6321
6371
|
return /* @__PURE__ */ jsxs(
|
|
@@ -6330,19 +6380,19 @@ function AssetInfo({
|
|
|
6330
6380
|
justifyContent: "space-between",
|
|
6331
6381
|
children: [
|
|
6332
6382
|
/* @__PURE__ */ jsxs(Spacer, { children: [
|
|
6333
|
-
|
|
6383
|
+
icon2 && /* @__PURE__ */ jsx(
|
|
6334
6384
|
"div",
|
|
6335
6385
|
{
|
|
6336
6386
|
css: ({ radius }) => ({
|
|
6337
6387
|
width: 32,
|
|
6338
6388
|
height: 32,
|
|
6339
6389
|
borderRadius: radius.small / 2,
|
|
6340
|
-
backgroundColor: getElementColor(theme,
|
|
6390
|
+
backgroundColor: getElementColor(theme, icon2.bg),
|
|
6341
6391
|
display: "flex",
|
|
6342
6392
|
alignItems: "center",
|
|
6343
6393
|
justifyContent: "center"
|
|
6344
6394
|
}),
|
|
6345
|
-
children: /* @__PURE__ */ jsx(
|
|
6395
|
+
children: /* @__PURE__ */ jsx(icon2.icon, { color: "overPicture" })
|
|
6346
6396
|
}
|
|
6347
6397
|
),
|
|
6348
6398
|
/* @__PURE__ */ jsx(Info, { align: "start", title: leftTitle, subtitle: leftSubtitle, titleColor: leftTitleColor, subtitleColor: leftSubtitleColor })
|
|
@@ -7048,7 +7098,7 @@ function ModalSearch({
|
|
|
7048
7098
|
)
|
|
7049
7099
|
] }) });
|
|
7050
7100
|
}
|
|
7051
|
-
function Protocol({ icon, name, category, selected, onClick }) {
|
|
7101
|
+
function Protocol({ icon: icon2, name, category, selected, onClick }) {
|
|
7052
7102
|
return /* @__PURE__ */ jsxs(
|
|
7053
7103
|
"button",
|
|
7054
7104
|
{
|
|
@@ -7098,7 +7148,7 @@ function Protocol({ icon, name, category, selected, onClick }) {
|
|
|
7098
7148
|
/* @__PURE__ */ jsx(Typography.Paragraph, { size: "regular", children: name }),
|
|
7099
7149
|
/* @__PURE__ */ jsx(Typography.Paragraph, { color: "focusSecondary", size: "xs", children: category })
|
|
7100
7150
|
] }),
|
|
7101
|
-
/* @__PURE__ */ jsx(ImageIcon, { source:
|
|
7151
|
+
/* @__PURE__ */ jsx(ImageIcon, { source: icon2, size: 32, iconColor: "secondary" })
|
|
7102
7152
|
]
|
|
7103
7153
|
}
|
|
7104
7154
|
)
|
|
@@ -7126,7 +7176,7 @@ function OracleProtocolsSelection({ items }) {
|
|
|
7126
7176
|
items.find((item) => item.selected) ? /* @__PURE__ */ jsx(Typography.Text, { color: "focusSecondary", children: "Protocol Selected" }) : null
|
|
7127
7177
|
] });
|
|
7128
7178
|
}
|
|
7129
|
-
function TagButton({ value, icon, onClick }) {
|
|
7179
|
+
function TagButton({ value, icon: icon2, onClick }) {
|
|
7130
7180
|
return /* @__PURE__ */ jsx(
|
|
7131
7181
|
"button",
|
|
7132
7182
|
{
|
|
@@ -7142,7 +7192,7 @@ function TagButton({ value, icon, onClick }) {
|
|
|
7142
7192
|
backgroundColor: colors.focusTransparent10
|
|
7143
7193
|
}
|
|
7144
7194
|
}),
|
|
7145
|
-
children: /* @__PURE__ */ jsx(Tag, { value, icon, textColor: "focusSecondary" })
|
|
7195
|
+
children: /* @__PURE__ */ jsx(Tag, { value, icon: icon2, textColor: "focusSecondary" })
|
|
7146
7196
|
}
|
|
7147
7197
|
);
|
|
7148
7198
|
}
|
|
@@ -7332,7 +7382,7 @@ function humanizeNumber(value) {
|
|
|
7332
7382
|
function humanizeTimestamp(timestamp) {
|
|
7333
7383
|
return dayjs(timestamp).fromNow();
|
|
7334
7384
|
}
|
|
7335
|
-
function InteractionButton({ icon, active, total, onClick }) {
|
|
7385
|
+
function InteractionButton({ icon: icon2, active, total, onClick }) {
|
|
7336
7386
|
return /* @__PURE__ */ jsx(
|
|
7337
7387
|
"button",
|
|
7338
7388
|
{
|
|
@@ -7348,7 +7398,7 @@ function InteractionButton({ icon, active, total, onClick }) {
|
|
|
7348
7398
|
{
|
|
7349
7399
|
value: humanizeNumber(total),
|
|
7350
7400
|
textColor: active ? "primary" : "secondary",
|
|
7351
|
-
icon,
|
|
7401
|
+
icon: icon2,
|
|
7352
7402
|
css: ({ transition, colors }) => ({
|
|
7353
7403
|
transition: transition.duration,
|
|
7354
7404
|
"&:hover": {
|
|
@@ -7786,7 +7836,7 @@ function ColumnText({ title, subtitle, align = "left" }) {
|
|
|
7786
7836
|
}
|
|
7787
7837
|
);
|
|
7788
7838
|
}
|
|
7789
|
-
function ServiceOffering({ icon, leftText, leftDescription, centerText, centerDescription, rightText, rightDescription, onClick }) {
|
|
7839
|
+
function ServiceOffering({ icon: icon2, leftText, leftDescription, centerText, centerDescription, rightText, rightDescription, onClick }) {
|
|
7790
7840
|
return /* @__PURE__ */ jsxs(
|
|
7791
7841
|
"div",
|
|
7792
7842
|
{
|
|
@@ -7852,7 +7902,7 @@ function ServiceOffering({ icon, leftText, leftDescription, centerText, centerDe
|
|
|
7852
7902
|
alignItems: "center"
|
|
7853
7903
|
}),
|
|
7854
7904
|
children: [
|
|
7855
|
-
/* @__PURE__ */ jsx(ImageIcon, { size: 32, source:
|
|
7905
|
+
/* @__PURE__ */ jsx(ImageIcon, { size: 32, source: icon2 }),
|
|
7856
7906
|
/* @__PURE__ */ jsx(ColumnText, { title: leftText, subtitle: leftDescription })
|
|
7857
7907
|
]
|
|
7858
7908
|
}
|
|
@@ -11292,4 +11342,4 @@ export {
|
|
|
11292
11342
|
CardHero as y,
|
|
11293
11343
|
CardSelector as z
|
|
11294
11344
|
};
|
|
11295
|
-
//# sourceMappingURL=components-
|
|
11345
|
+
//# sourceMappingURL=components-BTh3OZP_.js.map
|