@ixo/ui 0.1.7 → 0.1.9
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 +43 -43
- 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 +15 -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 +1 -1
- package/dist/components/MoreMenu/index.d.ts.map +1 -1
- package/dist/components/MoreMenu/types.d.ts +4 -2
- package/dist/components/MoreMenu/types.d.ts.map +1 -1
- package/dist/{components-BgEk60Ob.cjs → components-BDiiWelU.cjs} +188 -148
- package/dist/components-BDiiWelU.cjs.map +1 -0
- package/dist/{components-B_rD80NH.js → components-EXB_BUs5.js} +189 -149
- package/dist/components-EXB_BUs5.js.map +1 -0
- package/dist/export/components.cjs +1 -1
- package/dist/export/components.mjs +1 -1
- package/dist/{index-DOhTTpb1.js → index-2Qg0wBFO.js} +2 -2
- package/dist/{index-DOhTTpb1.js.map → index-2Qg0wBFO.js.map} +1 -1
- package/dist/{index-DiaMcybu.js → index-BHuoPnj7.js} +2 -2
- package/dist/{index-DiaMcybu.js.map → index-BHuoPnj7.js.map} +1 -1
- package/dist/{index-CTEU3j15.js → index-BKru_TQX.js} +3 -3
- package/dist/{index-CTEU3j15.js.map → index-BKru_TQX.js.map} +1 -1
- package/dist/{index-Bb5oD5S0.js → index-Be7UORTt.js} +2 -2
- package/dist/{index-Bb5oD5S0.js.map → index-Be7UORTt.js.map} +1 -1
- package/dist/{index-CJRQEBo0.cjs → index-BzEXuxSc.cjs} +3 -3
- package/dist/{index-CJRQEBo0.cjs.map → index-BzEXuxSc.cjs.map} +1 -1
- package/dist/{index-YQJXRZBs.js → index-CEb94eQ3.js} +2 -2
- package/dist/{index-YQJXRZBs.js.map → index-CEb94eQ3.js.map} +1 -1
- package/dist/{index-C8qu1Nag.js → index-CGLxKSPk.js} +2 -2
- package/dist/{index-C8qu1Nag.js.map → index-CGLxKSPk.js.map} +1 -1
- package/dist/{index-dGNR0pvK.cjs → index-CO6Ygcv-.cjs} +2 -2
- package/dist/{index-dGNR0pvK.cjs.map → index-CO6Ygcv-.cjs.map} +1 -1
- package/dist/{index-Bfq_mrjY.cjs → index-CTZnqmGU.cjs} +2 -2
- package/dist/{index-Bfq_mrjY.cjs.map → index-CTZnqmGU.cjs.map} +1 -1
- package/dist/{index-CcjXZeyr.cjs → index-Ch90kRkK.cjs} +2 -2
- package/dist/{index-CcjXZeyr.cjs.map → index-Ch90kRkK.cjs.map} +1 -1
- package/dist/{index-Iosewtvm.cjs → index-D1bGiH9L.cjs} +2 -2
- package/dist/{index-Iosewtvm.cjs.map → index-D1bGiH9L.cjs.map} +1 -1
- package/dist/{index-D3rssdnu.cjs → index-D771i3jp.cjs} +2 -2
- package/dist/{index-D3rssdnu.cjs.map → index-D771i3jp.cjs.map} +1 -1
- package/dist/{index-kV2fm9R3.cjs → index-DWUKXIMe.cjs} +2 -2
- package/dist/{index-kV2fm9R3.cjs.map → index-DWUKXIMe.cjs.map} +1 -1
- package/dist/{index-Yq2DRnv3.js → index-DccAmgX1.js} +2 -2
- package/dist/{index-Yq2DRnv3.js.map → index-DccAmgX1.js.map} +1 -1
- package/dist/{index-K66R2MRS.js → index-Dm6B7Yv-.js} +2 -2
- package/dist/{index-K66R2MRS.js.map → index-Dm6B7Yv-.js.map} +1 -1
- package/dist/{index-qjIpKWBJ.js → index-Dv_e6z8D.js} +2 -2
- package/dist/{index-qjIpKWBJ.js.map → index-Dv_e6z8D.js.map} +1 -1
- package/dist/{index-DFw-YGRB.cjs → index-ImM8dR3W.cjs} +3 -3
- package/dist/{index-DFw-YGRB.cjs.map → index-ImM8dR3W.cjs.map} +1 -1
- package/dist/{index-BJXmGwAC.cjs → index-LERt98FZ.cjs} +2 -2
- package/dist/{index-BJXmGwAC.cjs.map → index-LERt98FZ.cjs.map} +1 -1
- package/dist/{index-CYsfssFh.js → index-Lu5gXTPs.js} +3 -3
- package/dist/{index-CYsfssFh.js.map → index-Lu5gXTPs.js.map} +1 -1
- package/dist/{index-BO3dBb76.cjs → index-qHCPELWv.cjs} +2 -2
- package/dist/{index-BO3dBb76.cjs.map → index-qHCPELWv.cjs.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
|
@@ -34,6 +34,7 @@ const DOMPurify = require("dompurify");
|
|
|
34
34
|
const hooks = require("@mantine/hooks");
|
|
35
35
|
const useEventSubscribe = require("./useEventSubscribe-B019T27n.cjs");
|
|
36
36
|
const useUITheme = require("./useUITheme-DqgAb7n1.cjs");
|
|
37
|
+
const iconsReact = require("@tabler/icons-react");
|
|
37
38
|
const Markdown = require("react-markdown");
|
|
38
39
|
const remarkGfm = require("remark-gfm");
|
|
39
40
|
const downshift = require("downshift");
|
|
@@ -845,8 +846,8 @@ function AccordionTable({
|
|
|
845
846
|
}
|
|
846
847
|
);
|
|
847
848
|
}
|
|
848
|
-
const Header$3 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
849
|
-
const Footer = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
849
|
+
const Header$3 = react$1.lazy(() => Promise.resolve().then(() => require("./index-D771i3jp.cjs")));
|
|
850
|
+
const Footer = react$1.lazy(() => Promise.resolve().then(() => require("./index-ImM8dR3W.cjs")));
|
|
850
851
|
function ActionCard({ header, content, footer, useHoverMode = false }) {
|
|
851
852
|
const hasContent = !!content || !!footer;
|
|
852
853
|
const initialVisibility = footer?.startHidden !== true;
|
|
@@ -930,7 +931,7 @@ function Loader({ size, color = "primary" }) {
|
|
|
930
931
|
}
|
|
931
932
|
const CARD_WIDTH$1 = 350;
|
|
932
933
|
const CARD_HEADER_HEIGHT = 158;
|
|
933
|
-
const Header$2 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
934
|
+
const Header$2 = react$1.lazy(() => Promise.resolve().then(() => require("./index-qHCPELWv.cjs")));
|
|
934
935
|
function Card({ children, className, contentClassName, roundedBottom, noPadding = false, fullWidth = false, header, wrapperSx, onClick }) {
|
|
935
936
|
const wrapperRef = react$1.useRef(null);
|
|
936
937
|
const handleOnClick = react$1.useCallback(
|
|
@@ -1365,7 +1366,7 @@ function ModalSheet({ isOpen, children, hideHandler, zIndex, onRequestHide, onRe
|
|
|
1365
1366
|
document.body
|
|
1366
1367
|
);
|
|
1367
1368
|
}
|
|
1368
|
-
const Badge = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
1369
|
+
const Badge = react$1.lazy(() => Promise.resolve().then(() => require("./index-D1bGiH9L.cjs")));
|
|
1369
1370
|
function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide, onRequestShow }) {
|
|
1370
1371
|
const shadowScrollRef = react$1.useRef(null);
|
|
1371
1372
|
const wrapperContentAreaRef = react$1.useRef(null);
|
|
@@ -1483,6 +1484,8 @@ function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide
|
|
|
1483
1484
|
}
|
|
1484
1485
|
) });
|
|
1485
1486
|
}
|
|
1487
|
+
const ICON_COLOR = "var(--mantine-color-neutralColor-8)";
|
|
1488
|
+
const icon = (Icon, size, color) => /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 18, color: color || ICON_COLOR });
|
|
1486
1489
|
function IconButton({
|
|
1487
1490
|
icon: Icon,
|
|
1488
1491
|
onClick,
|
|
@@ -1944,8 +1947,8 @@ function HtmlRender({ content, className }) {
|
|
|
1944
1947
|
const safeHTML = DOMPurify.sanitize(content, { FORBID_ATTR: ["style"] });
|
|
1945
1948
|
return /* @__PURE__ */ jsxRuntime.jsx(StyleDOMApplier, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className, dangerouslySetInnerHTML: { __html: safeHTML } }) });
|
|
1946
1949
|
}
|
|
1947
|
-
function Item({ icon, label, disabled,
|
|
1948
|
-
const IconComponent =
|
|
1950
|
+
function Item({ icon: icon2, label, disabled, onClick }) {
|
|
1951
|
+
const IconComponent = icon2;
|
|
1949
1952
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1950
1953
|
"button",
|
|
1951
1954
|
{
|
|
@@ -1953,9 +1956,9 @@ function Item({ icon, label, disabled, active, onClick }) {
|
|
|
1953
1956
|
width: "100%",
|
|
1954
1957
|
borderRadius: 4,
|
|
1955
1958
|
padding: "4px 12px",
|
|
1956
|
-
background: "
|
|
1959
|
+
background: "transparent",
|
|
1957
1960
|
border: "none",
|
|
1958
|
-
cursor: disabled ? "
|
|
1961
|
+
cursor: disabled ? "default" : "pointer",
|
|
1959
1962
|
textAlign: "left",
|
|
1960
1963
|
"&:hover": {
|
|
1961
1964
|
backgroundColor: disabled ? void 0 : "var(--mantine-color-neutralColor-6)"
|
|
@@ -1964,22 +1967,13 @@ function Item({ icon, label, disabled, active, onClick }) {
|
|
|
1964
1967
|
disabled,
|
|
1965
1968
|
onClick,
|
|
1966
1969
|
children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { align: "center", gap: 8, children: [
|
|
1967
|
-
IconComponent && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { size:
|
|
1968
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1969
|
-
Typography.Text,
|
|
1970
|
-
{
|
|
1971
|
-
css: ({ fontSize }) => ({
|
|
1972
|
-
fontSize: fontSize.xs,
|
|
1973
|
-
color: disabled ? "var(--mantine-color-neutralColor-8)" : active ? "var(--mantine-color-neutralColor-8)" : "var(--mantine-color-neutralColor-8)"
|
|
1974
|
-
}),
|
|
1975
|
-
children: label
|
|
1976
|
-
}
|
|
1977
|
-
)
|
|
1970
|
+
IconComponent && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { size: 18, color: disabled ? "var(--mantine-color-neutralColor-7)" : "var(--mantine-color-neutralColor-8)" }),
|
|
1971
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { c: disabled ? "var(--mantine-color-neutralColor-7)" : void 0, fz: 14, children: label })
|
|
1978
1972
|
] })
|
|
1979
1973
|
}
|
|
1980
1974
|
);
|
|
1981
1975
|
}
|
|
1982
|
-
function MoreMenu({ items, controlColor = "primary" }) {
|
|
1976
|
+
function MoreMenu({ items, controlColor = "primary", Icon }) {
|
|
1983
1977
|
const [opened, setOpened] = react$1.useState(false);
|
|
1984
1978
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1985
1979
|
core.Popover,
|
|
@@ -1990,36 +1984,22 @@ function MoreMenu({ items, controlColor = "primary" }) {
|
|
|
1990
1984
|
styles: {
|
|
1991
1985
|
dropdown: {
|
|
1992
1986
|
background: "var(--mantine-color-neutralColor-4)",
|
|
1993
|
-
border: "none",
|
|
1994
1987
|
padding: "12px 4px",
|
|
1988
|
+
borderColor: "var(--mantine-color-neutralColor-6)",
|
|
1995
1989
|
marginLeft: 10
|
|
1996
1990
|
}
|
|
1997
1991
|
},
|
|
1992
|
+
radius: 16,
|
|
1998
1993
|
trapFocus: true,
|
|
1999
1994
|
width: 200,
|
|
2000
1995
|
position: "right-start",
|
|
2001
1996
|
shadow: "md",
|
|
2002
1997
|
children: [
|
|
2003
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Popover.Target, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2004
|
-
"button",
|
|
2005
|
-
{
|
|
2006
|
-
css: {
|
|
2007
|
-
background: "none",
|
|
2008
|
-
border: "none",
|
|
2009
|
-
padding: 0,
|
|
2010
|
-
cursor: "pointer",
|
|
2011
|
-
position: "relative",
|
|
2012
|
-
display: "flex",
|
|
2013
|
-
alignItems: "center",
|
|
2014
|
-
justifyContent: "center"
|
|
2015
|
-
},
|
|
2016
|
-
onClick: () => setOpened((o) => !o),
|
|
2017
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.EllipsisVSolid, { size: 20, color: controlColor })
|
|
2018
|
-
}
|
|
2019
|
-
) }),
|
|
1998
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Popover.Target, { children: /* @__PURE__ */ jsxRuntime.jsx(core.Center, { onClick: () => setOpened((o) => !o), children: Icon || /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.EllipsisVSolid, { size: 20, color: controlColor }) }) }),
|
|
2020
1999
|
/* @__PURE__ */ jsxRuntime.jsxs(core.Popover.Dropdown, { children: [
|
|
2021
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.
|
|
2022
|
-
|
|
2000
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.FocusTrap.InitialFocus, {}),
|
|
2001
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { ml: 12, mb: 10, fz: 14, c: "neutralColor.7", children: "Actions" }),
|
|
2002
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Stack, { gap: "4px", children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2023
2003
|
Item,
|
|
2024
2004
|
{
|
|
2025
2005
|
icon: item.icon,
|
|
@@ -2032,7 +2012,7 @@ function MoreMenu({ items, controlColor = "primary" }) {
|
|
|
2032
2012
|
}
|
|
2033
2013
|
},
|
|
2034
2014
|
item.label
|
|
2035
|
-
))
|
|
2015
|
+
)) })
|
|
2036
2016
|
] })
|
|
2037
2017
|
]
|
|
2038
2018
|
}
|
|
@@ -2068,7 +2048,7 @@ function AIResponse({ content, agentName, menu }) {
|
|
|
2068
2048
|
}
|
|
2069
2049
|
);
|
|
2070
2050
|
}
|
|
2071
|
-
function AIInputBar({ placeholder, icon, disabledInput, disabledButton, valueInput, inInputChange, onButtonClick }) {
|
|
2051
|
+
function AIInputBar({ placeholder, icon: icon2, disabledInput, disabledButton, valueInput, inInputChange, onButtonClick }) {
|
|
2072
2052
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2073
2053
|
"div",
|
|
2074
2054
|
{
|
|
@@ -2110,7 +2090,7 @@ function AIInputBar({ placeholder, icon, disabledInput, disabledButton, valueInp
|
|
|
2110
2090
|
})
|
|
2111
2091
|
}
|
|
2112
2092
|
),
|
|
2113
|
-
/* @__PURE__ */ jsxRuntime.jsx(RoundedButton, { icon:
|
|
2093
|
+
/* @__PURE__ */ jsxRuntime.jsx(RoundedButton, { icon: icon2 ?? UsersSolid.Assistant, label: "Ask", active: true, disabled: disabledButton, onClick: onButtonClick })
|
|
2114
2094
|
] })
|
|
2115
2095
|
}
|
|
2116
2096
|
);
|
|
@@ -2190,8 +2170,8 @@ function Avatar({ src, rounded = true, size = 62, did }) {
|
|
|
2190
2170
|
if (jazzRef.current) {
|
|
2191
2171
|
jazzRef.current.innerHTML = "";
|
|
2192
2172
|
const seed = Array.from(did).reduce((acc, char) => acc + char.charCodeAt(0), 0);
|
|
2193
|
-
const
|
|
2194
|
-
jazzRef.current.appendChild(
|
|
2173
|
+
const icon2 = jazzicon(size, seed);
|
|
2174
|
+
jazzRef.current.appendChild(icon2);
|
|
2195
2175
|
}
|
|
2196
2176
|
} catch (error) {
|
|
2197
2177
|
console.error("Failed to load jazzicon:", error);
|
|
@@ -2366,33 +2346,92 @@ function NavigationItemSkeleton() {
|
|
|
2366
2346
|
}
|
|
2367
2347
|
);
|
|
2368
2348
|
}
|
|
2349
|
+
function cutText(text, length, ending = "…") {
|
|
2350
|
+
if (!length || text.length <= length) {
|
|
2351
|
+
return text;
|
|
2352
|
+
}
|
|
2353
|
+
const words = text.split(" ");
|
|
2354
|
+
const endingSize = ending.length;
|
|
2355
|
+
let result = "";
|
|
2356
|
+
for (const word of words) {
|
|
2357
|
+
const newValue = result + word + " ";
|
|
2358
|
+
if (newValue.length + endingSize - 1 > length) {
|
|
2359
|
+
break;
|
|
2360
|
+
}
|
|
2361
|
+
result = newValue;
|
|
2362
|
+
}
|
|
2363
|
+
return result.trim() + ending;
|
|
2364
|
+
}
|
|
2365
|
+
function shortStr(str, threshold = 30, saveSymbolsAtTheEnd = 10, insert = "...") {
|
|
2366
|
+
if (!str) return str;
|
|
2367
|
+
const len = str.length;
|
|
2368
|
+
if (len <= threshold) return str;
|
|
2369
|
+
const ending = saveSymbolsAtTheEnd ? str.slice(-1 * saveSymbolsAtTheEnd) : "";
|
|
2370
|
+
const beginning = str.substring(0, threshold - saveSymbolsAtTheEnd - insert.length);
|
|
2371
|
+
return `${beginning}${insert}${ending}`;
|
|
2372
|
+
}
|
|
2373
|
+
function carbonToUSD(carbon) {
|
|
2374
|
+
return (carbon * 0.03).toLocaleString(void 0, {
|
|
2375
|
+
minimumFractionDigits: 0,
|
|
2376
|
+
maximumFractionDigits: 6
|
|
2377
|
+
});
|
|
2378
|
+
}
|
|
2369
2379
|
function RoomItem({ room }) {
|
|
2370
2380
|
const { hovered, ref } = hooks.useHover();
|
|
2371
|
-
|
|
2381
|
+
const renderIcon = () => {
|
|
2382
|
+
if (!room.icon) return null;
|
|
2383
|
+
if (typeof room.icon === "string") {
|
|
2384
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core.Image, { w: 20, h: 20, src: room.icon, radius: "50%" });
|
|
2385
|
+
} else if (typeof room.icon === "function") {
|
|
2386
|
+
const IconComponent = room.icon;
|
|
2387
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { size: 20, color: "secondary" });
|
|
2388
|
+
} else {
|
|
2389
|
+
return room.icon;
|
|
2390
|
+
}
|
|
2391
|
+
};
|
|
2392
|
+
const displayName = shortStr(room.name, 19, 0) || room.name;
|
|
2393
|
+
const shouldShowTooltip = room.name.length > 19;
|
|
2394
|
+
const content = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2372
2395
|
Flex,
|
|
2373
2396
|
{
|
|
2374
2397
|
ref,
|
|
2375
2398
|
align: "center",
|
|
2399
|
+
justify: "space-between",
|
|
2376
2400
|
gap: 8,
|
|
2377
2401
|
px: 12,
|
|
2378
|
-
py:
|
|
2379
|
-
ml: 16,
|
|
2402
|
+
py: 6,
|
|
2380
2403
|
style: {
|
|
2381
2404
|
cursor: "pointer",
|
|
2382
2405
|
borderRadius: 6,
|
|
2383
|
-
backgroundColor: room.isActive || hovered ? "var(--mantine-color-neutralColor-
|
|
2384
|
-
transform: hovered ? "translateX(2px)" : "translateX(0px)",
|
|
2406
|
+
backgroundColor: room.isActive || hovered ? "var(--mantine-color-neutralColor-6)" : "transparent",
|
|
2385
2407
|
transition: "all 0.15s ease"
|
|
2386
2408
|
},
|
|
2387
2409
|
onClick: () => room.onClick(room.id),
|
|
2388
2410
|
children: [
|
|
2389
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2390
|
-
|
|
2411
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Flex, { align: "center", gap: 8, children: [
|
|
2412
|
+
renderIcon(),
|
|
2413
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { c: room.isActive ? "neutralColor.8" : "neutralColor.7", fz: 14, children: displayName })
|
|
2414
|
+
] }),
|
|
2415
|
+
hovered && /* @__PURE__ */ jsxRuntime.jsxs(Flex, { align: "center", gap: 4, children: [
|
|
2416
|
+
room.onActionClick && /* @__PURE__ */ jsxRuntime.jsx(core.Tooltip, { label: room.onActionClick.label, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2417
|
+
core.Center,
|
|
2418
|
+
{
|
|
2419
|
+
onClick: (e) => {
|
|
2420
|
+
e.stopPropagation();
|
|
2421
|
+
room.onActionClick?.onClick();
|
|
2422
|
+
},
|
|
2423
|
+
style: { cursor: "pointer" },
|
|
2424
|
+
children: icon(room.onActionClick.icon, void 0, "var(--mantine-color-neutralColor-7)")
|
|
2425
|
+
}
|
|
2426
|
+
) }),
|
|
2427
|
+
room.tag && room.tagIcon && /* @__PURE__ */ jsxRuntime.jsx(core.Tooltip, { label: room.tag, children: icon(room.tagIcon, void 0, "var(--mantine-color-neutralColor-7)") })
|
|
2428
|
+
] })
|
|
2391
2429
|
]
|
|
2392
2430
|
}
|
|
2393
2431
|
);
|
|
2432
|
+
return shouldShowTooltip ? /* @__PURE__ */ jsxRuntime.jsx(core.Tooltip, { label: room.name, children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: content }) }) : content;
|
|
2394
2433
|
}
|
|
2395
|
-
function RoomCategory({
|
|
2434
|
+
function RoomCategory({ name, rooms, actions, primaryActions }) {
|
|
2396
2435
|
const { hovered, ref } = hooks.useHover();
|
|
2397
2436
|
const { value, toggle } = useToggle(false);
|
|
2398
2437
|
return /* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { gap: 2, children: [
|
|
@@ -2403,7 +2442,7 @@ function RoomCategory({ category }) {
|
|
|
2403
2442
|
align: "center",
|
|
2404
2443
|
justify: "space-between",
|
|
2405
2444
|
px: 12,
|
|
2406
|
-
py:
|
|
2445
|
+
py: 6,
|
|
2407
2446
|
style: {
|
|
2408
2447
|
cursor: "pointer",
|
|
2409
2448
|
borderRadius: 6,
|
|
@@ -2412,21 +2451,53 @@ function RoomCategory({ category }) {
|
|
|
2412
2451
|
},
|
|
2413
2452
|
onClick: toggle,
|
|
2414
2453
|
children: [
|
|
2415
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12,
|
|
2416
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2454
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12, tt: "capitalize", children: name }),
|
|
2455
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Flex, { align: "center", gap: 8, children: [
|
|
2456
|
+
primaryActions && primaryActions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2457
|
+
core.Center,
|
|
2458
|
+
{
|
|
2459
|
+
onClick: (e) => e.stopPropagation(),
|
|
2460
|
+
sx: {
|
|
2461
|
+
cursor: "pointer",
|
|
2462
|
+
borderRadius: 4,
|
|
2463
|
+
transition: "transform 0.2s ease",
|
|
2464
|
+
"&:hover": {
|
|
2465
|
+
background: "var(--mantine-color-neutralColor-5)"
|
|
2466
|
+
}
|
|
2467
|
+
},
|
|
2468
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(MoreMenu, { Icon: icon(iconsReact.IconPlus), items: primaryActions })
|
|
2469
|
+
}
|
|
2470
|
+
),
|
|
2471
|
+
actions && actions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2472
|
+
core.Center,
|
|
2473
|
+
{
|
|
2474
|
+
onClick: (e) => e.stopPropagation(),
|
|
2475
|
+
sx: {
|
|
2476
|
+
cursor: "pointer",
|
|
2477
|
+
borderRadius: 4,
|
|
2478
|
+
transition: "transform 0.2s ease",
|
|
2479
|
+
"&:hover": {
|
|
2480
|
+
background: "var(--mantine-color-neutralColor-5)"
|
|
2481
|
+
}
|
|
2482
|
+
},
|
|
2483
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(MoreMenu, { items: actions, controlColor: "secondary" })
|
|
2484
|
+
}
|
|
2485
|
+
),
|
|
2486
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2487
|
+
core.Center,
|
|
2488
|
+
{
|
|
2489
|
+
sx: {
|
|
2490
|
+
transform: value ? "rotate(-90deg)" : "rotate(0deg)",
|
|
2491
|
+
transition: "transform 0.2s ease"
|
|
2492
|
+
},
|
|
2493
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.AngleLeftSolid, { size: 12, color: "secondary" })
|
|
2494
|
+
}
|
|
2495
|
+
)
|
|
2496
|
+
] })
|
|
2426
2497
|
]
|
|
2427
2498
|
}
|
|
2428
2499
|
),
|
|
2429
|
-
!value && /* @__PURE__ */ jsxRuntime.jsx(core.Stack, { gap:
|
|
2500
|
+
!value && /* @__PURE__ */ jsxRuntime.jsx(core.Stack, { gap: 5, children: rooms?.map((room) => /* @__PURE__ */ jsxRuntime.jsx(RoomItem, { room }, room.id)) })
|
|
2430
2501
|
] });
|
|
2431
2502
|
}
|
|
2432
2503
|
function hasActiveDescendant(children) {
|
|
@@ -2507,7 +2578,6 @@ function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
|
2507
2578
|
cursor: "pointer",
|
|
2508
2579
|
borderRadius: 8,
|
|
2509
2580
|
backgroundColor: shouldShowActiveStyle ? "var(--mantine-color-neutralColor-6)" : hovered ? "var(--mantine-color-neutralColor-6)" : "transparent",
|
|
2510
|
-
transform: hovered ? "translateX(4px)" : "translateX(0px)",
|
|
2511
2581
|
transition: "all 0.2s ease"
|
|
2512
2582
|
},
|
|
2513
2583
|
onClick: handleItemClick,
|
|
@@ -2552,7 +2622,7 @@ function SelectedIndicator() {
|
|
|
2552
2622
|
}
|
|
2553
2623
|
);
|
|
2554
2624
|
}
|
|
2555
|
-
function SpaceItem({ icon, id, name, selectedSpace, onClick }) {
|
|
2625
|
+
function SpaceItem({ icon: icon2, id, name, selectedSpace, onClick }) {
|
|
2556
2626
|
const { hovered, ref } = hooks.useHover();
|
|
2557
2627
|
const isSelected = selectedSpace === id;
|
|
2558
2628
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -2569,42 +2639,12 @@ function SpaceItem({ icon, id, name, selectedSpace, onClick }) {
|
|
|
2569
2639
|
w: 40,
|
|
2570
2640
|
onClick: () => onClick(id),
|
|
2571
2641
|
children: [
|
|
2572
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Tooltip, { label: name, ml: 5, fz: 12, position: "right", withArrow: true, children: typeof
|
|
2642
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Tooltip, { label: name, ml: 5, fz: 12, position: "right", withArrow: true, children: typeof icon2 === "string" ? /* @__PURE__ */ jsxRuntime.jsx(core.Image, { radius: 24, src: icon2, w: 32, h: 32 }) : icon2 }),
|
|
2573
2643
|
isSelected && /* @__PURE__ */ jsxRuntime.jsx(SelectedIndicator, {})
|
|
2574
2644
|
]
|
|
2575
2645
|
}
|
|
2576
2646
|
);
|
|
2577
2647
|
}
|
|
2578
|
-
function cutText(text, length, ending = "…") {
|
|
2579
|
-
if (!length || text.length <= length) {
|
|
2580
|
-
return text;
|
|
2581
|
-
}
|
|
2582
|
-
const words = text.split(" ");
|
|
2583
|
-
const endingSize = ending.length;
|
|
2584
|
-
let result = "";
|
|
2585
|
-
for (const word of words) {
|
|
2586
|
-
const newValue = result + word + " ";
|
|
2587
|
-
if (newValue.length + endingSize - 1 > length) {
|
|
2588
|
-
break;
|
|
2589
|
-
}
|
|
2590
|
-
result = newValue;
|
|
2591
|
-
}
|
|
2592
|
-
return result.trim() + ending;
|
|
2593
|
-
}
|
|
2594
|
-
function shortStr(str, threshold = 30, saveSymbolsAtTheEnd = 10, insert = "...") {
|
|
2595
|
-
if (!str) return str;
|
|
2596
|
-
const len = str.length;
|
|
2597
|
-
if (len <= threshold) return str;
|
|
2598
|
-
const ending = saveSymbolsAtTheEnd ? str.slice(-1 * saveSymbolsAtTheEnd) : "";
|
|
2599
|
-
const beginning = str.substring(0, threshold - saveSymbolsAtTheEnd - insert.length);
|
|
2600
|
-
return `${beginning}${insert}${ending}`;
|
|
2601
|
-
}
|
|
2602
|
-
function carbonToUSD(carbon) {
|
|
2603
|
-
return (carbon * 0.03).toLocaleString(void 0, {
|
|
2604
|
-
minimumFractionDigits: 0,
|
|
2605
|
-
maximumFractionDigits: 6
|
|
2606
|
-
});
|
|
2607
|
-
}
|
|
2608
2648
|
function MobileBurger({ avatarIcon, isOpened, onClick }) {
|
|
2609
2649
|
if (isOpened) {
|
|
2610
2650
|
return /* @__PURE__ */ jsxRuntime.jsx(core.CloseButton, { hiddenFrom: "sm", pos: "absolute", w: 28, sx: { borderRadius: 8, zIndex: 100 }, h: 28, onClick, right: 12, top: 12, bg: "neutralColor.4" });
|
|
@@ -2650,7 +2690,7 @@ function AppShellNavigation({
|
|
|
2650
2690
|
const [asideWidth, setAsideWidth] = react$1.useState(450);
|
|
2651
2691
|
const isMobile = hooks.useMediaQuery("(max-width: 48em)");
|
|
2652
2692
|
const [mobileOpened, { toggle: toggleMobile }] = hooks.useDisclosure();
|
|
2653
|
-
const [desktopOpened
|
|
2693
|
+
const [desktopOpened] = hooks.useDisclosure(true);
|
|
2654
2694
|
const [isSplitResizing, setIsSplitResizing] = react$1.useState(false);
|
|
2655
2695
|
const isSplitResizingRef = react$1.useRef(false);
|
|
2656
2696
|
const mainContainerRef = react$1.useRef(null);
|
|
@@ -2724,7 +2764,7 @@ function AppShellNavigation({
|
|
|
2724
2764
|
const handleNavbarMouseMove = react$1.useCallback(
|
|
2725
2765
|
(e) => {
|
|
2726
2766
|
if (!isNavbarResizingRef.current) return;
|
|
2727
|
-
const minWidth = isAiOpened ? 450 :
|
|
2767
|
+
const minWidth = isAiOpened ? 450 : 330;
|
|
2728
2768
|
const maxWidth = 700;
|
|
2729
2769
|
const newWidth = Math.min(Math.max(e.clientX, minWidth), maxWidth);
|
|
2730
2770
|
if (isAiOpened) {
|
|
@@ -2758,7 +2798,7 @@ function AppShellNavigation({
|
|
|
2758
2798
|
react$1.useEffect(() => {
|
|
2759
2799
|
const handleWindowResize = () => {
|
|
2760
2800
|
const maxWidth = 700;
|
|
2761
|
-
const minWidth = isAiOpened ? 450 :
|
|
2801
|
+
const minWidth = isAiOpened ? 450 : 330;
|
|
2762
2802
|
const currentWidth = isAiOpened ? navbarWidthAiOpen : navbarWidthAiClosed;
|
|
2763
2803
|
const setter = isAiOpened ? setNavbarWidthAiOpen : setNavbarWidthAiClosed;
|
|
2764
2804
|
if (currentWidth > maxWidth) {
|
|
@@ -2853,7 +2893,7 @@ function AppShellNavigation({
|
|
|
2853
2893
|
paddingRight: 8
|
|
2854
2894
|
}
|
|
2855
2895
|
},
|
|
2856
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(core.Stack, { align: "center", gap: 8, children: spaces.map(({ icon, id, name, onClick }) => /* @__PURE__ */ jsxRuntime.jsx(SpaceItem, { selectedSpace, icon, name, id, onClick }, id)) })
|
|
2896
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(core.Stack, { align: "center", gap: 8, children: spaces.map(({ icon: icon2, id, name, onClick }) => /* @__PURE__ */ jsxRuntime.jsx(SpaceItem, { selectedSpace, icon: icon2, name, id, onClick }, id)) })
|
|
2857
2897
|
}
|
|
2858
2898
|
)
|
|
2859
2899
|
] }),
|
|
@@ -2865,28 +2905,28 @@ function AppShellNavigation({
|
|
|
2865
2905
|
] })
|
|
2866
2906
|
] }),
|
|
2867
2907
|
isAiOpened && !isMobile && aiNavbarContent,
|
|
2868
|
-
!isAiOpened && /* @__PURE__ */ jsxRuntime.jsxs(core.
|
|
2869
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2870
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
{
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
"
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2908
|
+
!isAiOpened && /* @__PURE__ */ jsxRuntime.jsxs(core.Box, { w: "100%", style: { height: "100%", display: "flex", flexDirection: "column" }, children: [
|
|
2909
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.AppShell.Section, { px: 12, pt: 16, children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { mb: 24, style: { width: "100%" }, justify: "space-between", align: "center", children: [
|
|
2910
|
+
/* @__PURE__ */ jsxRuntime.jsx(Flex, { align: "center", gap: "10px", children: /* @__PURE__ */ jsxRuntime.jsx(core.Tooltip, { label: pageItem.pageTitle || "Unknown", disabled: !isTitleOverflowing, position: "bottom", withArrow: true, children: /* @__PURE__ */ jsxRuntime.jsx(core.Text, { lh: 1, c: "neutralColor.8", children: isTitleOverflowing ? shortStr(pageItem.pageTitle, 21, 0) : pageItem.pageTitle || "Unknown" }) }) }),
|
|
2911
|
+
isAiBtnVisible && !isAiOpened && !isMobile && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2912
|
+
core.Center,
|
|
2913
|
+
{
|
|
2914
|
+
sx: {
|
|
2915
|
+
cursor: "pointer",
|
|
2916
|
+
borderRadius: 8,
|
|
2917
|
+
transition: "background 0.15s",
|
|
2918
|
+
background: "var(--mantine-color-neutralColor-5)",
|
|
2919
|
+
"&:hover": {
|
|
2920
|
+
background: "var(--mantine-color-neutralColor-6)"
|
|
2921
|
+
}
|
|
2922
|
+
},
|
|
2923
|
+
p: 4,
|
|
2924
|
+
onClick: onAiOpen,
|
|
2925
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.Assistant, { size: 18, color: "primary" })
|
|
2926
|
+
}
|
|
2927
|
+
)
|
|
2928
|
+
] }) }),
|
|
2929
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.AppShell.Section, { grow: true, component: core.ScrollArea, scrollbarSize: 5, sx: { overflowX: "hidden" }, px: 12, children: /* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { gap: 5, children: [
|
|
2890
2930
|
loading ? /* @__PURE__ */ jsxRuntime.jsx(core.Stack, { gap: 5, children: Array.from({ length: 6 }).map((_, idx) => /* @__PURE__ */ jsxRuntime.jsx(NavigationItemSkeleton, {}, idx)) }) : menuItems?.map((item, index) => {
|
|
2891
2931
|
if (index !== 0 && index === separator) {
|
|
2892
2932
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -2896,9 +2936,9 @@ function AppShellNavigation({
|
|
|
2896
2936
|
}
|
|
2897
2937
|
return /* @__PURE__ */ jsxRuntime.jsx(MenuItem, { onMenuItemClick, item }, item.id);
|
|
2898
2938
|
}),
|
|
2899
|
-
roomCategories && roomCategories.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(core.Stack, { gap: 8, mt: 16, children: roomCategories.map((
|
|
2900
|
-
] }),
|
|
2901
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Stack, { gap: 5, children: footerContent })
|
|
2939
|
+
roomCategories && roomCategories.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(core.Stack, { gap: 8, mt: 16, children: roomCategories.map(({ id, name, actions, rooms, primaryActions: onAddClick }) => /* @__PURE__ */ jsxRuntime.jsx(RoomCategory, { id, name, actions, rooms, primaryActions: onAddClick }, id)) })
|
|
2940
|
+
] }) }),
|
|
2941
|
+
footerContent && /* @__PURE__ */ jsxRuntime.jsx(core.AppShell.Section, { px: 12, py: 10, children: /* @__PURE__ */ jsxRuntime.jsx(core.Stack, { gap: 5, children: footerContent }) })
|
|
2902
2942
|
] })
|
|
2903
2943
|
] })
|
|
2904
2944
|
] }) }),
|
|
@@ -5377,7 +5417,7 @@ function ImageIcon({ source: Source, fallback: Fallback, size = 32, iconColor =
|
|
|
5377
5417
|
}
|
|
5378
5418
|
return radash.isString(Source) ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: Source, draggable: false, width: size, height: size, css: { borderRadius: size, objectFit: "cover" } }) : /* @__PURE__ */ jsxRuntime.jsx(Source, { size, color: iconColor });
|
|
5379
5419
|
}
|
|
5380
|
-
function Value({ icon, label, value }) {
|
|
5420
|
+
function Value({ icon: icon2, label, value }) {
|
|
5381
5421
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5382
5422
|
"div",
|
|
5383
5423
|
{
|
|
@@ -5391,7 +5431,7 @@ function Value({ icon, label, value }) {
|
|
|
5391
5431
|
alignItems: "center"
|
|
5392
5432
|
}),
|
|
5393
5433
|
children: [
|
|
5394
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(ImageIcon, { source:
|
|
5434
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(ImageIcon, { source: icon2, size: 32, iconColor: "primary" }) }),
|
|
5395
5435
|
/* @__PURE__ */ jsxRuntime.jsxs(Spacer, { vertical: true, distance: 0, alignItems: "start", children: [
|
|
5396
5436
|
/* @__PURE__ */ jsxRuntime.jsx(Typography.Text, { color: "text", size: "s", children: label }),
|
|
5397
5437
|
/* @__PURE__ */ jsxRuntime.jsx(Typography.Text, { color: "secondary", size: "xs", children: value })
|
|
@@ -6032,13 +6072,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
6032
6072
|
}
|
|
6033
6073
|
);
|
|
6034
6074
|
}
|
|
6035
|
-
const MainAction = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6036
|
-
const Header$1 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6037
|
-
const Content = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6075
|
+
const MainAction = react$1.lazy(() => Promise.resolve().then(() => require("./index-LERt98FZ.cjs")));
|
|
6076
|
+
const Header$1 = react$1.lazy(() => Promise.resolve().then(() => require("./index-CO6Ygcv-.cjs")));
|
|
6077
|
+
const Content = react$1.lazy(() => Promise.resolve().then(() => require("./index-DWUKXIMe.cjs")));
|
|
6038
6078
|
const Map = react$1.lazy(() => Promise.resolve().then(() => require("./index-D4PsPquZ.cjs")));
|
|
6039
6079
|
const CustomContent = react$1.lazy(() => Promise.resolve().then(() => require("./index-ByrCNpS2.cjs")));
|
|
6040
|
-
const Assets = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6041
|
-
const Actions = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6080
|
+
const Assets = react$1.lazy(() => Promise.resolve().then(() => require("./index-CTZnqmGU.cjs")));
|
|
6081
|
+
const Actions = react$1.lazy(() => Promise.resolve().then(() => require("./index-BzEXuxSc.cjs")));
|
|
6042
6082
|
const HOVER_BORDER_WIDTH = 1;
|
|
6043
6083
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
6044
6084
|
const wrapperRef = react$1.useRef(null);
|
|
@@ -6338,7 +6378,7 @@ function AssetInfo({
|
|
|
6338
6378
|
rightTitleColor = "text",
|
|
6339
6379
|
rightSubtitle,
|
|
6340
6380
|
rightSubtitleColor = "focusSecondary",
|
|
6341
|
-
icon
|
|
6381
|
+
icon: icon2
|
|
6342
6382
|
}) {
|
|
6343
6383
|
const theme = react.useTheme();
|
|
6344
6384
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -6353,19 +6393,19 @@ function AssetInfo({
|
|
|
6353
6393
|
justifyContent: "space-between",
|
|
6354
6394
|
children: [
|
|
6355
6395
|
/* @__PURE__ */ jsxRuntime.jsxs(Spacer, { children: [
|
|
6356
|
-
|
|
6396
|
+
icon2 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6357
6397
|
"div",
|
|
6358
6398
|
{
|
|
6359
6399
|
css: ({ radius }) => ({
|
|
6360
6400
|
width: 32,
|
|
6361
6401
|
height: 32,
|
|
6362
6402
|
borderRadius: radius.small / 2,
|
|
6363
|
-
backgroundColor: UsersSolid.getElementColor(theme,
|
|
6403
|
+
backgroundColor: UsersSolid.getElementColor(theme, icon2.bg),
|
|
6364
6404
|
display: "flex",
|
|
6365
6405
|
alignItems: "center",
|
|
6366
6406
|
justifyContent: "center"
|
|
6367
6407
|
}),
|
|
6368
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6408
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icon2.icon, { color: "overPicture" })
|
|
6369
6409
|
}
|
|
6370
6410
|
),
|
|
6371
6411
|
/* @__PURE__ */ jsxRuntime.jsx(Info, { align: "start", title: leftTitle, subtitle: leftSubtitle, titleColor: leftTitleColor, subtitleColor: leftSubtitleColor })
|
|
@@ -7071,7 +7111,7 @@ function ModalSearch({
|
|
|
7071
7111
|
)
|
|
7072
7112
|
] }) });
|
|
7073
7113
|
}
|
|
7074
|
-
function Protocol({ icon, name, category, selected, onClick }) {
|
|
7114
|
+
function Protocol({ icon: icon2, name, category, selected, onClick }) {
|
|
7075
7115
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7076
7116
|
"button",
|
|
7077
7117
|
{
|
|
@@ -7121,7 +7161,7 @@ function Protocol({ icon, name, category, selected, onClick }) {
|
|
|
7121
7161
|
/* @__PURE__ */ jsxRuntime.jsx(Typography.Paragraph, { size: "regular", children: name }),
|
|
7122
7162
|
/* @__PURE__ */ jsxRuntime.jsx(Typography.Paragraph, { color: "focusSecondary", size: "xs", children: category })
|
|
7123
7163
|
] }),
|
|
7124
|
-
/* @__PURE__ */ jsxRuntime.jsx(ImageIcon, { source:
|
|
7164
|
+
/* @__PURE__ */ jsxRuntime.jsx(ImageIcon, { source: icon2, size: 32, iconColor: "secondary" })
|
|
7125
7165
|
]
|
|
7126
7166
|
}
|
|
7127
7167
|
)
|
|
@@ -7149,7 +7189,7 @@ function OracleProtocolsSelection({ items }) {
|
|
|
7149
7189
|
items.find((item) => item.selected) ? /* @__PURE__ */ jsxRuntime.jsx(Typography.Text, { color: "focusSecondary", children: "Protocol Selected" }) : null
|
|
7150
7190
|
] });
|
|
7151
7191
|
}
|
|
7152
|
-
function TagButton({ value, icon, onClick }) {
|
|
7192
|
+
function TagButton({ value, icon: icon2, onClick }) {
|
|
7153
7193
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7154
7194
|
"button",
|
|
7155
7195
|
{
|
|
@@ -7165,7 +7205,7 @@ function TagButton({ value, icon, onClick }) {
|
|
|
7165
7205
|
backgroundColor: colors.focusTransparent10
|
|
7166
7206
|
}
|
|
7167
7207
|
}),
|
|
7168
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Tag, { value, icon, textColor: "focusSecondary" })
|
|
7208
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Tag, { value, icon: icon2, textColor: "focusSecondary" })
|
|
7169
7209
|
}
|
|
7170
7210
|
);
|
|
7171
7211
|
}
|
|
@@ -7355,7 +7395,7 @@ function humanizeNumber(value) {
|
|
|
7355
7395
|
function humanizeTimestamp(timestamp) {
|
|
7356
7396
|
return dayjs(timestamp).fromNow();
|
|
7357
7397
|
}
|
|
7358
|
-
function InteractionButton({ icon, active, total, onClick }) {
|
|
7398
|
+
function InteractionButton({ icon: icon2, active, total, onClick }) {
|
|
7359
7399
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7360
7400
|
"button",
|
|
7361
7401
|
{
|
|
@@ -7371,7 +7411,7 @@ function InteractionButton({ icon, active, total, onClick }) {
|
|
|
7371
7411
|
{
|
|
7372
7412
|
value: humanizeNumber(total),
|
|
7373
7413
|
textColor: active ? "primary" : "secondary",
|
|
7374
|
-
icon,
|
|
7414
|
+
icon: icon2,
|
|
7375
7415
|
css: ({ transition, colors }) => ({
|
|
7376
7416
|
transition: transition.duration,
|
|
7377
7417
|
"&:hover": {
|
|
@@ -7809,7 +7849,7 @@ function ColumnText({ title, subtitle, align = "left" }) {
|
|
|
7809
7849
|
}
|
|
7810
7850
|
);
|
|
7811
7851
|
}
|
|
7812
|
-
function ServiceOffering({ icon, leftText, leftDescription, centerText, centerDescription, rightText, rightDescription, onClick }) {
|
|
7852
|
+
function ServiceOffering({ icon: icon2, leftText, leftDescription, centerText, centerDescription, rightText, rightDescription, onClick }) {
|
|
7813
7853
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7814
7854
|
"div",
|
|
7815
7855
|
{
|
|
@@ -7875,7 +7915,7 @@ function ServiceOffering({ icon, leftText, leftDescription, centerText, centerDe
|
|
|
7875
7915
|
alignItems: "center"
|
|
7876
7916
|
}),
|
|
7877
7917
|
children: [
|
|
7878
|
-
/* @__PURE__ */ jsxRuntime.jsx(ImageIcon, { size: 32, source:
|
|
7918
|
+
/* @__PURE__ */ jsxRuntime.jsx(ImageIcon, { size: 32, source: icon2 }),
|
|
7879
7919
|
/* @__PURE__ */ jsxRuntime.jsx(ColumnText, { title: leftText, subtitle: leftDescription })
|
|
7880
7920
|
]
|
|
7881
7921
|
}
|
|
@@ -11313,4 +11353,4 @@ exports.UserMessage = UserMessage;
|
|
|
11313
11353
|
exports.WorkspaceModal = WorkspaceModal;
|
|
11314
11354
|
exports.cutText = cutText;
|
|
11315
11355
|
exports.isValidClick = isValidClick;
|
|
11316
|
-
//# sourceMappingURL=components-
|
|
11356
|
+
//# sourceMappingURL=components-BDiiWelU.cjs.map
|