@ixo/ui 0.0.40 → 0.1.1
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 +53 -53
- package/dist/{UsersSolid-DjJvkV7c.cjs → UsersSolid-C29C53eo.cjs} +5 -3
- package/dist/UsersSolid-C29C53eo.cjs.map +1 -0
- package/dist/{UsersSolid-C6NkfomI.js → UsersSolid-CU7U_J3x.js} +5 -3
- package/dist/UsersSolid-CU7U_J3x.js.map +1 -0
- package/dist/components/AIChatToolbar/index.d.ts.map +1 -1
- package/dist/components/AppShellNavigation/components/AsideResizable.d.ts +3 -1
- package/dist/components/AppShellNavigation/components/AsideResizable.d.ts.map +1 -1
- package/dist/components/AppShellNavigation/components/MenuItem.d.ts.map +1 -1
- package/dist/components/AppShellNavigation/components/NavigationItemSkeleton.d.ts.map +1 -1
- package/dist/components/AppShellNavigation/components/RoomCategory.d.ts.map +1 -1
- package/dist/components/AppShellNavigation/components/RoomItem.d.ts.map +1 -1
- package/dist/components/AppShellNavigation/components/SelectedIndicator.d.ts.map +1 -1
- package/dist/components/AppShellNavigation/components/SpaceItem.d.ts.map +1 -1
- package/dist/components/AppShellNavigation/index.d.ts +2 -1
- package/dist/components/AppShellNavigation/index.d.ts.map +1 -1
- package/dist/components/MoreMenu/index.d.ts.map +1 -1
- package/dist/components/OracleMessage/index.d.ts.map +1 -1
- package/dist/components/Providers/DynamicMantineProvider.d.ts +18 -0
- package/dist/components/Providers/DynamicMantineProvider.d.ts.map +1 -0
- package/dist/components/Table/components/Td.d.ts.map +1 -1
- package/dist/components/Table/components/Th.d.ts.map +1 -1
- package/dist/components/Table/components/Tr.d.ts.map +1 -1
- package/dist/components/UserMessage/index.d.ts.map +1 -1
- package/dist/{components-CqTGmHcg.js → components-Du4fpG-7.js} +112 -107
- package/dist/components-Du4fpG-7.js.map +1 -0
- package/dist/{components-C4syxh7E.cjs → components-kyZV4xKe.cjs} +112 -107
- package/dist/components-kyZV4xKe.cjs.map +1 -0
- package/dist/constants/mantineTheme.d.ts +145 -0
- package/dist/constants/mantineTheme.d.ts.map +1 -0
- package/dist/constants/palette.d.ts +57 -0
- package/dist/constants/palette.d.ts.map +1 -0
- package/dist/export/components.cjs +1 -1
- package/dist/export/components.mjs +1 -1
- package/dist/export/icons/index.cjs +1 -1
- package/dist/export/icons/index.mjs +2 -2
- package/dist/hooks/usePalette.d.ts +3 -0
- package/dist/hooks/usePalette.d.ts.map +1 -0
- package/dist/{index-C6mephxW.js → index-3vUUcEku.js} +3 -3
- package/dist/{index-C6mephxW.js.map → index-3vUUcEku.js.map} +1 -1
- package/dist/{index-BiEPg62o.js → index-B4KPNoed.js} +2 -2
- package/dist/{index-BiEPg62o.js.map → index-B4KPNoed.js.map} +1 -1
- package/dist/{index-C7GIfL0K.js → index-B6tC0CJf.js} +2 -2
- package/dist/{index-C7GIfL0K.js.map → index-B6tC0CJf.js.map} +1 -1
- package/dist/{index-DrPdJdbB.js → index-BDqwxBhm.js} +2 -2
- package/dist/{index-DrPdJdbB.js.map → index-BDqwxBhm.js.map} +1 -1
- package/dist/{index-D_lOxfZA.js → index-BT7xEwsl.js} +2 -2
- package/dist/{index-D_lOxfZA.js.map → index-BT7xEwsl.js.map} +1 -1
- package/dist/{index-vV5U7oln.cjs → index-BUqAh_QT.cjs} +3 -3
- package/dist/{index-vV5U7oln.cjs.map → index-BUqAh_QT.cjs.map} +1 -1
- package/dist/{index-Br-LPA19.cjs → index-BqhR9ZZk.cjs} +2 -2
- package/dist/{index-Br-LPA19.cjs.map → index-BqhR9ZZk.cjs.map} +1 -1
- package/dist/{index-DJJDuYPt.cjs → index-CdvEC2KX.cjs} +3 -3
- package/dist/{index-DJJDuYPt.cjs.map → index-CdvEC2KX.cjs.map} +1 -1
- package/dist/{index-BZZVVGWc.cjs → index-CghhpKGt.cjs} +2 -2
- package/dist/{index-BZZVVGWc.cjs.map → index-CghhpKGt.cjs.map} +1 -1
- package/dist/{index-53vLP_Z1.cjs → index-DEb3PU0a.cjs} +2 -2
- package/dist/{index-53vLP_Z1.cjs.map → index-DEb3PU0a.cjs.map} +1 -1
- package/dist/{index-VKuhFO08.js → index-DfQr-2hP.js} +3 -3
- package/dist/{index-VKuhFO08.js.map → index-DfQr-2hP.js.map} +1 -1
- package/dist/{index-CtuDXjpW.js → index-Dq064c1o.js} +2 -2
- package/dist/{index-CtuDXjpW.js.map → index-Dq064c1o.js.map} +1 -1
- package/dist/{index-w1HUie3I.cjs → index-W8LiSKfV.cjs} +2 -2
- package/dist/{index-w1HUie3I.cjs.map → index-W8LiSKfV.cjs.map} +1 -1
- package/dist/{index-DBmK8wo0.js → index-dQrai2TZ.js} +2 -2
- package/dist/{index-DBmK8wo0.js.map → index-dQrai2TZ.js.map} +1 -1
- package/dist/{index-CAhZlLHI.cjs → index-kAjxkAWZ.cjs} +3 -3
- package/dist/{index-CAhZlLHI.cjs.map → index-kAjxkAWZ.cjs.map} +1 -1
- package/dist/{index-CSyWW5M9.js → index-nRUNkbvD.js} +3 -3
- package/dist/{index-CSyWW5M9.js.map → index-nRUNkbvD.js.map} +1 -1
- package/dist/{index-DjL20pr9.cjs → index-ovSIwiD8.cjs} +2 -2
- package/dist/{index-DjL20pr9.cjs.map → index-ovSIwiD8.cjs.map} +1 -1
- package/dist/{index-CF_eiQT5.cjs → index-wbesxk1o.cjs} +2 -2
- package/dist/{index-CF_eiQT5.cjs.map → index-wbesxk1o.cjs.map} +1 -1
- package/dist/{index-VcdXPa9t.cjs → index-xgtAVpBr.cjs} +2 -2
- package/dist/{index-VcdXPa9t.cjs.map → index-xgtAVpBr.cjs.map} +1 -1
- package/dist/{index-BNsUpFnG.js → index-yfwH6dmJ.js} +2 -2
- package/dist/{index-BNsUpFnG.js.map → index-yfwH6dmJ.js.map} +1 -1
- package/dist/types/IPalette.d.ts +56 -0
- package/dist/types/IPalette.d.ts.map +1 -0
- package/dist/utils/colors.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/UsersSolid-C6NkfomI.js.map +0 -1
- package/dist/UsersSolid-DjJvkV7c.cjs.map +0 -1
- package/dist/components-C4syxh7E.cjs.map +0 -1
- package/dist/components-CqTGmHcg.js.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { isString, toggle, get, isFunction, assign } from "radash";
|
|
3
3
|
import { useTheme, jsx as jsx$1, keyframes, ThemeProvider } from "@emotion/react";
|
|
4
|
-
import { g as getElementColor, A as AngleDownSolid, a as CheckSolid, C as Close, L as Loading, P as PlusSolid, S as SearchSolid, b as Assistant, c as ArrowUpSolid, E as EllipsisVSolid, d as ArrowLeftSolid, e as Canvas, H as HistorySolid, U as User, f as AngleLeftSolid, M as MinusCircleSolid, h as SettingsBarSolid, G as Globe, D as Dashboard, i as Groups, j as UserCircleSolid, k as Assets$1, l as Claims, m as Accounts, n as LinkedResources, o as Proposals, I as ImpactCredits, p as GoTo, q as Share, r as PiePiece, s as ImpactCertificates, t as CommentDotsSolid, u as CommentAltSolid, v as MicrophoneSolid, w as Command, x as ArrowCircleRightSolid, y as Protocols, z as Investments, O as Oracles, B as Projects, F as Daos, J as Star, K as AngleRightSolid, N as Expand, Q as LeafSolid, R as ArrowDownSolid, T as ArrowRightSolid, V as Play, W as CheckCircle, X as Events, Y as ThumbsUpSolid, Z as CommentsSolid, _ as CopySolid, $ as Hourglass, a0 as Act, a1 as Info$1, a2 as ClaimsW, a3 as TachometerAltSolid, a4 as UserCogSolid, a5 as UsersSolid, a6 as EllipsisHSolid } from "./UsersSolid-
|
|
4
|
+
import { g as getElementColor, A as AngleDownSolid, a as CheckSolid, C as Close, L as Loading, P as PlusSolid, S as SearchSolid, b as Assistant, c as ArrowUpSolid, E as EllipsisVSolid, d as ArrowLeftSolid, e as Canvas, H as HistorySolid, U as User, f as AngleLeftSolid, M as MinusCircleSolid, h as SettingsBarSolid, G as Globe, D as Dashboard, i as Groups, j as UserCircleSolid, k as Assets$1, l as Claims, m as Accounts, n as LinkedResources, o as Proposals, I as ImpactCredits, p as GoTo, q as Share, r as PiePiece, s as ImpactCertificates, t as CommentDotsSolid, u as CommentAltSolid, v as MicrophoneSolid, w as Command, x as ArrowCircleRightSolid, y as Protocols, z as Investments, O as Oracles, B as Projects, F as Daos, J as Star, K as AngleRightSolid, N as Expand, Q as LeafSolid, R as ArrowDownSolid, T as ArrowRightSolid, V as Play, W as CheckCircle, X as Events, Y as ThumbsUpSolid, Z as CommentsSolid, _ as CopySolid, $ as Hourglass, a0 as Act, a1 as Info$1, a2 as ClaimsW, a3 as TachometerAltSolid, a4 as UserCogSolid, a5 as UsersSolid, a6 as EllipsisHSolid } from "./UsersSolid-CU7U_J3x.js";
|
|
5
5
|
import { useState, useCallback, useRef, useEffect, Suspense, lazy, forwardRef, 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
7
|
import { Accordion as Accordion$1, Box, Image, Popover, Text as Text$1, Badge as Badge$1, Center, AppShell, Skeleton, Stack as Stack$1, Tooltip as Tooltip$4, Divider, ScrollArea, Space } 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
|
-
import { u as useUITheme } from "./useUITheme-7i8NJ2FG.js";
|
|
12
11
|
import { useResizeObserver, useHover, useDisclosure } from "@mantine/hooks";
|
|
13
12
|
import { a as useLocalStorage, E as EventEmitter, u as useEventSubscribe } from "./useEventSubscribe-BuXZL79s.js";
|
|
13
|
+
import { u as useUITheme } from "./useUITheme-7i8NJ2FG.js";
|
|
14
14
|
import Markdown from "react-markdown";
|
|
15
15
|
import remarkGfm from "remark-gfm";
|
|
16
16
|
import { useCombobox, useSelect } from "downshift";
|
|
@@ -403,11 +403,11 @@ function Td({ children, value, description, icon: Icon, iconNoColor, image, tag,
|
|
|
403
403
|
Icon ? /* @__PURE__ */ jsx(
|
|
404
404
|
"div",
|
|
405
405
|
{
|
|
406
|
-
css: ({ radius
|
|
406
|
+
css: ({ radius }) => ({
|
|
407
407
|
width: radius.roundButtons,
|
|
408
408
|
height: radius.roundButtons,
|
|
409
409
|
borderRadius: radius.small / 2,
|
|
410
|
-
backgroundColor:
|
|
410
|
+
backgroundColor: "var(--mantine-color-neutralColor-5)",
|
|
411
411
|
display: "flex",
|
|
412
412
|
justifyContent: "center",
|
|
413
413
|
alignItems: "center"
|
|
@@ -445,8 +445,8 @@ function Td({ children, value, description, icon: Icon, iconNoColor, image, tag,
|
|
|
445
445
|
/* @__PURE__ */ jsx(
|
|
446
446
|
"span",
|
|
447
447
|
{
|
|
448
|
-
css: ({
|
|
449
|
-
color:
|
|
448
|
+
css: ({ fontSize }) => ({
|
|
449
|
+
color: "var(--mantine-color-neutralColor-8)",
|
|
450
450
|
fontSize: fontSize.regular
|
|
451
451
|
}),
|
|
452
452
|
children: value
|
|
@@ -455,8 +455,8 @@ function Td({ children, value, description, icon: Icon, iconNoColor, image, tag,
|
|
|
455
455
|
/* @__PURE__ */ jsx(
|
|
456
456
|
"span",
|
|
457
457
|
{
|
|
458
|
-
css: ({
|
|
459
|
-
color:
|
|
458
|
+
css: ({ fontSize }) => ({
|
|
459
|
+
color: "var(--mantine-color-neutralColor-8)",
|
|
460
460
|
fontSize: fontSize.xs,
|
|
461
461
|
opacity: 0.7
|
|
462
462
|
}),
|
|
@@ -479,7 +479,7 @@ function Th({ children, align = "center", shrink, expand }) {
|
|
|
479
479
|
"th",
|
|
480
480
|
{
|
|
481
481
|
css: (theme) => ({
|
|
482
|
-
color:
|
|
482
|
+
color: "var(--mantine-color-neutralColor-8)",
|
|
483
483
|
fontFamily: theme.font.main,
|
|
484
484
|
fontSize: theme.fontSize.s,
|
|
485
485
|
textAlign: align,
|
|
@@ -523,17 +523,18 @@ function Tr({ children, selected, onClick }) {
|
|
|
523
523
|
ref: wrapperRef,
|
|
524
524
|
onClick: handleClick,
|
|
525
525
|
role: onClick ? "button" : void 0,
|
|
526
|
-
css: (
|
|
526
|
+
css: () => {
|
|
527
527
|
return {
|
|
528
528
|
cursor: onClick ? "pointer" : void 0,
|
|
529
529
|
"& > td": {
|
|
530
530
|
borderStyle: "solid",
|
|
531
531
|
borderWidth: 1,
|
|
532
532
|
borderColor: "transparent",
|
|
533
|
-
backgroundColor: selected ?
|
|
533
|
+
backgroundColor: selected ? "var(--mantine-color-neutralColor-5)" : "var(--mantine-color-neutralColor-3)",
|
|
534
|
+
color: "var(--mantine-color-neutralColor-8)"
|
|
534
535
|
},
|
|
535
536
|
"&:hover > td": {
|
|
536
|
-
backgroundColor: onClick ?
|
|
537
|
+
backgroundColor: onClick ? "var(--mantine-color-neutralColor-8)" : void 0
|
|
537
538
|
}
|
|
538
539
|
};
|
|
539
540
|
},
|
|
@@ -556,7 +557,7 @@ function Table({ children }) {
|
|
|
556
557
|
width: "100%",
|
|
557
558
|
borderCollapse: "separate",
|
|
558
559
|
borderSpacing: `0 ${theme.spacing * 2}px`,
|
|
559
|
-
background: "
|
|
560
|
+
background: "neutral.1"
|
|
560
561
|
}),
|
|
561
562
|
children
|
|
562
563
|
}
|
|
@@ -774,8 +775,8 @@ function AccordionTable({
|
|
|
774
775
|
}
|
|
775
776
|
);
|
|
776
777
|
}
|
|
777
|
-
const Header$3 = lazy(() => import("./index-
|
|
778
|
-
const Footer = lazy(() => import("./index-
|
|
778
|
+
const Header$3 = lazy(() => import("./index-3vUUcEku.js"));
|
|
779
|
+
const Footer = lazy(() => import("./index-DfQr-2hP.js"));
|
|
779
780
|
function ActionCard({ header, content, footer, useHoverMode = false }) {
|
|
780
781
|
const hasContent = !!content || !!footer;
|
|
781
782
|
const initialVisibility = footer?.startHidden !== true;
|
|
@@ -859,7 +860,7 @@ function Loader({ size, color = "primary" }) {
|
|
|
859
860
|
}
|
|
860
861
|
const CARD_WIDTH$1 = 350;
|
|
861
862
|
const CARD_HEADER_HEIGHT = 158;
|
|
862
|
-
const Header$2 = lazy(() => import("./index-
|
|
863
|
+
const Header$2 = lazy(() => import("./index-BT7xEwsl.js"));
|
|
863
864
|
function Card({ children, className, contentClassName, roundedBottom, noPadding = false, fullWidth = false, header, wrapperSx, onClick }) {
|
|
864
865
|
const wrapperRef = useRef(null);
|
|
865
866
|
const handleOnClick = useCallback(
|
|
@@ -1294,7 +1295,7 @@ function ModalSheet({ isOpen, children, hideHandler, zIndex, onRequestHide, onRe
|
|
|
1294
1295
|
document.body
|
|
1295
1296
|
);
|
|
1296
1297
|
}
|
|
1297
|
-
const Badge = lazy(() => import("./index-
|
|
1298
|
+
const Badge = lazy(() => import("./index-Dq064c1o.js"));
|
|
1298
1299
|
function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide, onRequestShow }) {
|
|
1299
1300
|
const shadowScrollRef = useRef(null);
|
|
1300
1301
|
const wrapperContentAreaRef = useRef(null);
|
|
@@ -1935,28 +1936,28 @@ function Item({ icon, label, disabled, active, onClick }) {
|
|
|
1935
1936
|
return /* @__PURE__ */ jsx(
|
|
1936
1937
|
"button",
|
|
1937
1938
|
{
|
|
1938
|
-
css: (
|
|
1939
|
+
css: () => ({
|
|
1939
1940
|
width: "100%",
|
|
1940
1941
|
borderRadius: 4,
|
|
1941
1942
|
padding: "4px 12px",
|
|
1942
|
-
background:
|
|
1943
|
+
background: "var(--mantine-color-neutralColor-5)",
|
|
1943
1944
|
border: "none",
|
|
1944
1945
|
cursor: disabled ? "not-allowed" : "pointer",
|
|
1945
1946
|
textAlign: "left",
|
|
1946
1947
|
"&:hover": {
|
|
1947
|
-
backgroundColor: disabled ? void 0 :
|
|
1948
|
+
backgroundColor: disabled ? void 0 : "var(--mantine-color-neutralColor-6)"
|
|
1948
1949
|
}
|
|
1949
1950
|
}),
|
|
1950
1951
|
disabled,
|
|
1951
1952
|
onClick,
|
|
1952
1953
|
children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 8, children: [
|
|
1953
|
-
IconComponent && /* @__PURE__ */ jsx(IconComponent, { size: 16 }),
|
|
1954
|
+
IconComponent && /* @__PURE__ */ jsx(IconComponent, { size: 16, color: "overPicture" }),
|
|
1954
1955
|
/* @__PURE__ */ jsx(
|
|
1955
1956
|
Typography.Text,
|
|
1956
1957
|
{
|
|
1957
|
-
css: ({ fontSize
|
|
1958
|
+
css: ({ fontSize }) => ({
|
|
1958
1959
|
fontSize: fontSize.xs,
|
|
1959
|
-
color: disabled ?
|
|
1960
|
+
color: disabled ? "var(--mantine-color-neutralColor-8)" : active ? "var(--mantine-color-neutralColor-8)" : "var(--mantine-color-neutralColor-8)"
|
|
1960
1961
|
}),
|
|
1961
1962
|
children: label
|
|
1962
1963
|
}
|
|
@@ -1966,7 +1967,6 @@ function Item({ icon, label, disabled, active, onClick }) {
|
|
|
1966
1967
|
);
|
|
1967
1968
|
}
|
|
1968
1969
|
function MoreMenu({ items, controlColor = "primary" }) {
|
|
1969
|
-
const theme = useUITheme();
|
|
1970
1970
|
const [opened, setOpened] = useState(false);
|
|
1971
1971
|
return /* @__PURE__ */ jsxs(
|
|
1972
1972
|
Popover,
|
|
@@ -1976,7 +1976,7 @@ function MoreMenu({ items, controlColor = "primary" }) {
|
|
|
1976
1976
|
closeOnClickOutside: true,
|
|
1977
1977
|
styles: {
|
|
1978
1978
|
dropdown: {
|
|
1979
|
-
background:
|
|
1979
|
+
background: "var(--mantine-color-neutralColor-4)",
|
|
1980
1980
|
border: "none",
|
|
1981
1981
|
padding: "12px 4px",
|
|
1982
1982
|
marginLeft: 10
|
|
@@ -2005,7 +2005,7 @@ function MoreMenu({ items, controlColor = "primary" }) {
|
|
|
2005
2005
|
}
|
|
2006
2006
|
) }),
|
|
2007
2007
|
/* @__PURE__ */ jsxs(Popover.Dropdown, { children: [
|
|
2008
|
-
/* @__PURE__ */ jsx(Text$1, { ml: 12, mb: 10, fz: 12, c:
|
|
2008
|
+
/* @__PURE__ */ jsx(Text$1, { ml: 12, mb: 10, fz: 12, c: "neutralColor.8", children: "Page" }),
|
|
2009
2009
|
items.map((item) => /* @__PURE__ */ jsx(
|
|
2010
2010
|
Item,
|
|
2011
2011
|
{
|
|
@@ -2103,12 +2103,11 @@ function AIInputBar({ placeholder, icon, disabledInput, disabledButton, valueInp
|
|
|
2103
2103
|
);
|
|
2104
2104
|
}
|
|
2105
2105
|
function AIChatToolbar({ onClose, onHistoryClick, onPlusClick, onHistoryClose, onCanvasCycle, isHistoryOpened, canvasMode = "hidden", oracleModel, sessionTitle }) {
|
|
2106
|
-
const theme = useUITheme();
|
|
2107
2106
|
const canvasActive = canvasMode !== "hidden";
|
|
2108
|
-
return /* @__PURE__ */ jsxs(Flex, { bg:
|
|
2107
|
+
return /* @__PURE__ */ jsxs(Flex, { bg: "neutralColor.4", py: 16, justify: "space-between", align: "center", children: [
|
|
2109
2108
|
/* @__PURE__ */ jsxs(Flex, { gap: 6, align: "center", children: [
|
|
2110
|
-
sessionTitle && /* @__PURE__ */ jsx(
|
|
2111
|
-
oracleModel && /* @__PURE__ */ jsx(Badge$1, { fw: 300, size: "sm", fz: 12, bg:
|
|
2109
|
+
sessionTitle && /* @__PURE__ */ jsx(Text$1, { c: "neutralColor.8", fz: 14, children: sessionTitle }),
|
|
2110
|
+
oracleModel && /* @__PURE__ */ jsx(Badge$1, { fw: 300, size: "sm", fz: 12, c: "neutralColor.8", bg: "neutralColor.3", tt: "initial", children: oracleModel })
|
|
2112
2111
|
] }),
|
|
2113
2112
|
/* @__PURE__ */ jsx(Flex, { gap: 6, align: "center", justify: "flex-end", children: isHistoryOpened ? /* @__PURE__ */ jsx(
|
|
2114
2113
|
Center,
|
|
@@ -2117,17 +2116,17 @@ function AIChatToolbar({ onClose, onHistoryClick, onPlusClick, onHistoryClose, o
|
|
|
2117
2116
|
cursor: "pointer",
|
|
2118
2117
|
borderRadius: 8,
|
|
2119
2118
|
transition: "background 0.15s",
|
|
2120
|
-
background:
|
|
2119
|
+
background: "var(--mantine-color-neutralColor-5)",
|
|
2121
2120
|
"&:hover": {
|
|
2122
|
-
background:
|
|
2121
|
+
background: "var(--mantine-color-neutralColor-6)"
|
|
2123
2122
|
}
|
|
2124
2123
|
},
|
|
2125
2124
|
p: 4,
|
|
2126
2125
|
onClick: onHistoryClose,
|
|
2127
|
-
children: /* @__PURE__ */ jsx(ArrowLeftSolid, { size: 18 })
|
|
2126
|
+
children: /* @__PURE__ */ jsx(ArrowLeftSolid, { size: 18, color: "secondary" })
|
|
2128
2127
|
}
|
|
2129
2128
|
) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2130
|
-
/* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, onClick: onPlusClick, children: /* @__PURE__ */ jsx(PlusSolid, { size: 18 }) }),
|
|
2129
|
+
/* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, onClick: onPlusClick, children: /* @__PURE__ */ jsx(PlusSolid, { size: 18, color: "secondary" }) }),
|
|
2131
2130
|
/* @__PURE__ */ jsx(
|
|
2132
2131
|
Center,
|
|
2133
2132
|
{
|
|
@@ -2136,10 +2135,10 @@ function AIChatToolbar({ onClose, onHistoryClick, onPlusClick, onHistoryClose, o
|
|
|
2136
2135
|
borderRadius: 24
|
|
2137
2136
|
},
|
|
2138
2137
|
onClick: onCanvasCycle,
|
|
2139
|
-
children: /* @__PURE__ */ jsx(Canvas, { size: 18, color: canvasActive ? "primary" :
|
|
2138
|
+
children: /* @__PURE__ */ jsx(Canvas, { size: 18, color: canvasActive ? "primary" : "secondary" })
|
|
2140
2139
|
}
|
|
2141
2140
|
),
|
|
2142
|
-
/* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, onClick: onHistoryClick, children: /* @__PURE__ */ jsx(HistorySolid, { size: 18 }) }),
|
|
2141
|
+
/* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, onClick: onHistoryClick, children: /* @__PURE__ */ jsx(HistorySolid, { size: 18, color: "secondary" }) }),
|
|
2143
2142
|
/* @__PURE__ */ jsx(
|
|
2144
2143
|
Center,
|
|
2145
2144
|
{
|
|
@@ -2147,14 +2146,14 @@ function AIChatToolbar({ onClose, onHistoryClick, onPlusClick, onHistoryClose, o
|
|
|
2147
2146
|
cursor: "pointer",
|
|
2148
2147
|
borderRadius: 8,
|
|
2149
2148
|
transition: "background 0.15s",
|
|
2150
|
-
background:
|
|
2149
|
+
background: "var(--mantine-color-neutralColor-5)",
|
|
2151
2150
|
"&:hover": {
|
|
2152
|
-
background:
|
|
2151
|
+
background: "var(--mantine-color-neutralColor-6)"
|
|
2153
2152
|
}
|
|
2154
2153
|
},
|
|
2155
2154
|
p: 4,
|
|
2156
2155
|
onClick: onClose,
|
|
2157
|
-
children: /* @__PURE__ */ jsx(Close, { size: 18 })
|
|
2156
|
+
children: /* @__PURE__ */ jsx(Close, { size: 18, color: "secondary" })
|
|
2158
2157
|
}
|
|
2159
2158
|
)
|
|
2160
2159
|
] }) })
|
|
@@ -2197,7 +2196,7 @@ function Avatar({ src, rounded = true, size = 62, did }) {
|
|
|
2197
2196
|
}
|
|
2198
2197
|
const MIN_WIDTH = 200;
|
|
2199
2198
|
const MAX_WIDTH = 700;
|
|
2200
|
-
function AsideResizable({ children, asideCollapsed = false, onAsideToggle, width = 450, onWidthChange, onMaxExpand }) {
|
|
2199
|
+
function AsideResizable({ children, navbarWidth, asideMaximized, asideCollapsed = false, onAsideToggle, width = 450, onWidthChange, onMaxExpand }) {
|
|
2201
2200
|
const [isResizing, setIsResizing] = useState(false);
|
|
2202
2201
|
const [ref] = useResizeObserver();
|
|
2203
2202
|
const isShowingRef = useRef(false);
|
|
@@ -2274,9 +2273,9 @@ function AsideResizable({ children, asideCollapsed = false, onAsideToggle, width
|
|
|
2274
2273
|
return /* @__PURE__ */ jsxs(
|
|
2275
2274
|
AppShell.Aside,
|
|
2276
2275
|
{
|
|
2277
|
-
w: width,
|
|
2276
|
+
w: asideMaximized ? "100%" : width,
|
|
2278
2277
|
miw: 200,
|
|
2279
|
-
maw: MAX_WIDTH,
|
|
2278
|
+
maw: asideMaximized ? `calc(100% - ${navbarWidth}px)` : MAX_WIDTH,
|
|
2280
2279
|
ref,
|
|
2281
2280
|
sx: {
|
|
2282
2281
|
overflowY: "auto",
|
|
@@ -2288,7 +2287,7 @@ function AsideResizable({ children, asideCollapsed = false, onAsideToggle, width
|
|
|
2288
2287
|
}
|
|
2289
2288
|
},
|
|
2290
2289
|
children: [
|
|
2291
|
-
/* @__PURE__ */ jsx(
|
|
2290
|
+
!asideMaximized && /* @__PURE__ */ jsx(
|
|
2292
2291
|
Box,
|
|
2293
2292
|
{
|
|
2294
2293
|
w: 4,
|
|
@@ -2311,7 +2310,6 @@ function AsideResizable({ children, asideCollapsed = false, onAsideToggle, width
|
|
|
2311
2310
|
);
|
|
2312
2311
|
}
|
|
2313
2312
|
function NavigationItemSkeleton() {
|
|
2314
|
-
const theme = useUITheme();
|
|
2315
2313
|
return /* @__PURE__ */ jsxs(
|
|
2316
2314
|
Flex,
|
|
2317
2315
|
{
|
|
@@ -2322,7 +2320,7 @@ function NavigationItemSkeleton() {
|
|
|
2322
2320
|
py: 6,
|
|
2323
2321
|
style: {
|
|
2324
2322
|
borderRadius: 8,
|
|
2325
|
-
backgroundColor:
|
|
2323
|
+
backgroundColor: "var(--mantine-color-neutralColor-5)"
|
|
2326
2324
|
},
|
|
2327
2325
|
children: [
|
|
2328
2326
|
/* @__PURE__ */ jsx(Flex, { align: "center", gap: 4, style: { flex: 1 }, children: /* @__PURE__ */ jsx(
|
|
@@ -2356,7 +2354,6 @@ function NavigationItemSkeleton() {
|
|
|
2356
2354
|
}
|
|
2357
2355
|
function RoomItem({ room }) {
|
|
2358
2356
|
const { hovered, ref } = useHover();
|
|
2359
|
-
const theme = useUITheme();
|
|
2360
2357
|
return /* @__PURE__ */ jsxs(
|
|
2361
2358
|
Flex,
|
|
2362
2359
|
{
|
|
@@ -2369,21 +2366,20 @@ function RoomItem({ room }) {
|
|
|
2369
2366
|
style: {
|
|
2370
2367
|
cursor: "pointer",
|
|
2371
2368
|
borderRadius: 6,
|
|
2372
|
-
backgroundColor: room.isActive || hovered ?
|
|
2369
|
+
backgroundColor: room.isActive || hovered ? "var(--mantine-color-neutralColor-5)" : "transparent",
|
|
2373
2370
|
transform: hovered ? "translateX(2px)" : "translateX(0px)",
|
|
2374
2371
|
transition: "all 0.15s ease"
|
|
2375
2372
|
},
|
|
2376
2373
|
onClick: () => room.onClick(room.id),
|
|
2377
2374
|
children: [
|
|
2378
2375
|
/* @__PURE__ */ jsx(room.icon, { size: 16, color: "secondary" }),
|
|
2379
|
-
/* @__PURE__ */ jsx(Text$1, { fz: 13, c:
|
|
2376
|
+
/* @__PURE__ */ jsx(Text$1, { fz: 13, c: "neutralColor.8", children: room.name })
|
|
2380
2377
|
]
|
|
2381
2378
|
}
|
|
2382
2379
|
);
|
|
2383
2380
|
}
|
|
2384
2381
|
function RoomCategory({ category }) {
|
|
2385
2382
|
const { hovered, ref } = useHover();
|
|
2386
|
-
const theme = useUITheme();
|
|
2387
2383
|
const { value, toggle: toggle2 } = useToggle(false);
|
|
2388
2384
|
return /* @__PURE__ */ jsxs(Stack$1, { gap: 2, children: [
|
|
2389
2385
|
/* @__PURE__ */ jsxs(
|
|
@@ -2397,12 +2393,12 @@ function RoomCategory({ category }) {
|
|
|
2397
2393
|
style: {
|
|
2398
2394
|
cursor: "pointer",
|
|
2399
2395
|
borderRadius: 6,
|
|
2400
|
-
backgroundColor: hovered ?
|
|
2396
|
+
backgroundColor: hovered ? "var(--mantine-color-neutralColor-6)" : "transparent",
|
|
2401
2397
|
transition: "all 0.15s ease"
|
|
2402
2398
|
},
|
|
2403
2399
|
onClick: toggle2,
|
|
2404
2400
|
children: [
|
|
2405
|
-
/* @__PURE__ */ jsx(Text$1, { fz: 12, c:
|
|
2401
|
+
/* @__PURE__ */ jsx(Text$1, { fz: 12, c: "neutralColor.7", children: category.name }),
|
|
2406
2402
|
/* @__PURE__ */ jsx(
|
|
2407
2403
|
Center,
|
|
2408
2404
|
{
|
|
@@ -2425,7 +2421,6 @@ function hasActiveDescendant(children) {
|
|
|
2425
2421
|
}
|
|
2426
2422
|
function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
2427
2423
|
const { hovered, ref } = useHover();
|
|
2428
|
-
const theme = useUITheme();
|
|
2429
2424
|
const hasChildren = item.children && item.children.length > 0;
|
|
2430
2425
|
const hasActiveChild = useMemo(() => hasActiveDescendant(item.children), [item.children]);
|
|
2431
2426
|
const initialExpanded = item?.isActive === true || hasActiveChild;
|
|
@@ -2469,7 +2464,7 @@ function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
|
2469
2464
|
transform: isExpanded ? "rotate(-90deg)" : "rotate(0deg)",
|
|
2470
2465
|
transition: "transform 0.2s ease",
|
|
2471
2466
|
"&:hover": {
|
|
2472
|
-
backgroundColor:
|
|
2467
|
+
backgroundColor: "neutralColor.5"
|
|
2473
2468
|
}
|
|
2474
2469
|
},
|
|
2475
2470
|
children: /* @__PURE__ */ jsx(AngleLeftSolid, { size: 12, color: "secondary" })
|
|
@@ -2497,7 +2492,7 @@ function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
|
2497
2492
|
style: {
|
|
2498
2493
|
cursor: "pointer",
|
|
2499
2494
|
borderRadius: 8,
|
|
2500
|
-
backgroundColor: shouldShowActiveStyle ?
|
|
2495
|
+
backgroundColor: shouldShowActiveStyle ? "var(--mantine-color-neutralColor-6)" : hovered ? "var(--mantine-color-neutralColor-6)" : "transparent",
|
|
2501
2496
|
transform: hovered ? "translateX(4px)" : "translateX(0px)",
|
|
2502
2497
|
transition: "all 0.2s ease"
|
|
2503
2498
|
},
|
|
@@ -2505,7 +2500,7 @@ function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
|
2505
2500
|
children: [
|
|
2506
2501
|
/* @__PURE__ */ jsxs(Flex, { align: "center", gap: 8, children: [
|
|
2507
2502
|
renderIcon(),
|
|
2508
|
-
/* @__PURE__ */ jsx(Text$1, { fz: 14, fw: 500, c:
|
|
2503
|
+
/* @__PURE__ */ jsx(Text$1, { fz: 14, fw: 500, c: item.isActive ? "neutralColor.8" : "neutralColor.7", style: { flex: 1 }, children: item.name }),
|
|
2509
2504
|
item.badgeCount ? /* @__PURE__ */ jsx(Badge$1, { size: "xs", variant: "filled", ml: 4, style: { minWidth: "16px", height: "15px", padding: "0 4px", fontSize: "8px" }, children: item.badgeCount }) : null
|
|
2510
2505
|
] }),
|
|
2511
2506
|
/* @__PURE__ */ jsx(Flex, { children: item?.actions && item.actions.length > 0 && /* @__PURE__ */ jsx(
|
|
@@ -2516,7 +2511,7 @@ function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
|
2516
2511
|
borderRadius: 4,
|
|
2517
2512
|
transition: "transform 0.2s ease",
|
|
2518
2513
|
"&:hover": {
|
|
2519
|
-
|
|
2514
|
+
background: "var(--mantine-color-neutralColor-5)"
|
|
2520
2515
|
}
|
|
2521
2516
|
},
|
|
2522
2517
|
children: /* @__PURE__ */ jsx(MoreMenu, { items: item.actions, controlColor: "secondary" })
|
|
@@ -2529,7 +2524,6 @@ function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
|
2529
2524
|
] });
|
|
2530
2525
|
}
|
|
2531
2526
|
function SelectedIndicator() {
|
|
2532
|
-
const theme = useUITheme();
|
|
2533
2527
|
return /* @__PURE__ */ jsx(
|
|
2534
2528
|
"div",
|
|
2535
2529
|
{
|
|
@@ -2538,7 +2532,7 @@ function SelectedIndicator() {
|
|
|
2538
2532
|
left: -8,
|
|
2539
2533
|
width: 4,
|
|
2540
2534
|
height: 30,
|
|
2541
|
-
backgroundColor:
|
|
2535
|
+
backgroundColor: "var(--mantine-color-neutralColor-8)",
|
|
2542
2536
|
borderRadius: 4
|
|
2543
2537
|
}
|
|
2544
2538
|
}
|
|
@@ -2546,7 +2540,6 @@ function SelectedIndicator() {
|
|
|
2546
2540
|
}
|
|
2547
2541
|
function SpaceItem({ icon, id, name, selectedSpace, onClick }) {
|
|
2548
2542
|
const { hovered, ref } = useHover();
|
|
2549
|
-
const theme = useUITheme();
|
|
2550
2543
|
const isSelected = selectedSpace === id;
|
|
2551
2544
|
return /* @__PURE__ */ jsxs(
|
|
2552
2545
|
Center,
|
|
@@ -2557,7 +2550,7 @@ function SpaceItem({ icon, id, name, selectedSpace, onClick }) {
|
|
|
2557
2550
|
borderRadius: 24
|
|
2558
2551
|
},
|
|
2559
2552
|
pos: "relative",
|
|
2560
|
-
bg: hovered ?
|
|
2553
|
+
bg: hovered ? "neutralColor.6" : "neutralColor.5",
|
|
2561
2554
|
mih: 40,
|
|
2562
2555
|
w: 40,
|
|
2563
2556
|
onClick: () => onClick(id),
|
|
@@ -2608,6 +2601,7 @@ function AppShellNavigation({
|
|
|
2608
2601
|
roomCategories,
|
|
2609
2602
|
right,
|
|
2610
2603
|
asideCollapsed = true,
|
|
2604
|
+
asideMaximized = false,
|
|
2611
2605
|
onAsideToggle,
|
|
2612
2606
|
onMaxExpand,
|
|
2613
2607
|
onAiOpen,
|
|
@@ -2624,7 +2618,6 @@ function AppShellNavigation({
|
|
|
2624
2618
|
}) {
|
|
2625
2619
|
const [isNavbarNotCollapsed, { toggle: toggleNavbar }] = useDisclosure(true);
|
|
2626
2620
|
const [asideWidth, setAsideWidth] = useState(450);
|
|
2627
|
-
const theme = useUITheme();
|
|
2628
2621
|
const [isSplitResizing, setIsSplitResizing] = useState(false);
|
|
2629
2622
|
const isSplitResizingRef = useRef(false);
|
|
2630
2623
|
const mainContainerRef = useRef(null);
|
|
@@ -2750,14 +2743,15 @@ function AppShellNavigation({
|
|
|
2750
2743
|
withBorder: false,
|
|
2751
2744
|
styles: {
|
|
2752
2745
|
navbar: {
|
|
2753
|
-
background:
|
|
2746
|
+
background: "var(--mantine-color-neutralColor-4)",
|
|
2754
2747
|
transition: isNavbarResizing ? "none" : "width 0.3s ease"
|
|
2755
2748
|
},
|
|
2756
2749
|
aside: {
|
|
2757
|
-
background:
|
|
2750
|
+
background: "var(--mantine-color-neutralColor-2)",
|
|
2751
|
+
borderLeft: "1px solid var(--mantine-color-neutralColor-6)"
|
|
2758
2752
|
}
|
|
2759
2753
|
},
|
|
2760
|
-
bg:
|
|
2754
|
+
bg: "neutralColor.2",
|
|
2761
2755
|
navbar: {
|
|
2762
2756
|
width: isNavbarNotCollapsed ? navbarWidth : 56,
|
|
2763
2757
|
breakpoint: "sm"
|
|
@@ -2776,7 +2770,7 @@ function AppShellNavigation({
|
|
|
2776
2770
|
right: 0,
|
|
2777
2771
|
h: "100%",
|
|
2778
2772
|
pos: "absolute",
|
|
2779
|
-
bg: isNavbarResizing ?
|
|
2773
|
+
bg: isNavbarResizing ? "accent.5" : "transparent",
|
|
2780
2774
|
sx: {
|
|
2781
2775
|
zIndex: 2,
|
|
2782
2776
|
cursor: "col-resize",
|
|
@@ -2786,17 +2780,17 @@ function AppShellNavigation({
|
|
|
2786
2780
|
}
|
|
2787
2781
|
),
|
|
2788
2782
|
/* @__PURE__ */ jsxs(Flex, { style: { height: "100%" }, children: [
|
|
2789
|
-
/* @__PURE__ */ jsxs(Stack$1, { p: 8, w: 56, justify: "space-between", h: "100%", bg:
|
|
2783
|
+
/* @__PURE__ */ jsxs(Stack$1, { p: 8, w: 56, justify: "space-between", h: "100%", bg: "neutralColor.2", children: [
|
|
2790
2784
|
/* @__PURE__ */ jsxs(Stack$1, { align: "center", style: { flex: 1 }, gap: 8, children: [
|
|
2791
2785
|
/* @__PURE__ */ jsxs(Center, { sx: { cursor: "pointer", borderRadius: 24 }, pos: "relative", h: 40, w: 40, onClick: companyIcon.onClick, children: [
|
|
2792
2786
|
typeof companyIcon.icon === "string" ? /* @__PURE__ */ jsx(Image, { radius: 24, src: companyIcon.icon, w: 32, h: 32 }) : companyIcon.icon,
|
|
2793
2787
|
companyIcon.isSelected && /* @__PURE__ */ jsx(SelectedIndicator, {})
|
|
2794
2788
|
] }),
|
|
2795
|
-
avatarIcon && /* @__PURE__ */ jsxs(Center, { sx: { cursor: "pointer", borderRadius: 24 }, pos: "relative", bg:
|
|
2789
|
+
avatarIcon && /* @__PURE__ */ jsxs(Center, { sx: { cursor: "pointer", borderRadius: 24 }, pos: "relative", bg: "neutralColor.5", h: 40, w: 40, onClick: avatarIcon.onClick, children: [
|
|
2796
2790
|
/* @__PURE__ */ jsx(Tooltip$4, { label: "Home", position: "right", withArrow: true, ml: 5, fz: 12, children: typeof avatarIcon.icon === "string" ? /* @__PURE__ */ jsx(Image, { radius: 24, src: avatarIcon.icon, w: 32, h: 32 }) : avatarIcon.icon }),
|
|
2797
2791
|
avatarIcon.isSelected && /* @__PURE__ */ jsx(SelectedIndicator, {})
|
|
2798
2792
|
] }),
|
|
2799
|
-
/* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color:
|
|
2793
|
+
/* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color: "neutralColor.5" }),
|
|
2800
2794
|
temporarySpace && !spaces?.some((space) => space.id === temporarySpace.id) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2801
2795
|
/* @__PURE__ */ jsx(
|
|
2802
2796
|
SpaceItem,
|
|
@@ -2809,7 +2803,7 @@ function AppShellNavigation({
|
|
|
2809
2803
|
},
|
|
2810
2804
|
temporarySpace.id
|
|
2811
2805
|
),
|
|
2812
|
-
/* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color:
|
|
2806
|
+
/* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color: "neutralColor.5" })
|
|
2813
2807
|
] }),
|
|
2814
2808
|
/* @__PURE__ */ jsx(
|
|
2815
2809
|
ScrollArea,
|
|
@@ -2829,18 +2823,18 @@ function AppShellNavigation({
|
|
|
2829
2823
|
}
|
|
2830
2824
|
)
|
|
2831
2825
|
] }),
|
|
2832
|
-
onAddSpaceClick && /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg:
|
|
2833
|
-
onMinusSpaceClick && /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg:
|
|
2826
|
+
onAddSpaceClick && /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: "neutralColor.5", h: 40, w: 40, onClick: onAddSpaceClick, children: /* @__PURE__ */ jsx(PlusSolid, { color: "secondary" }) }),
|
|
2827
|
+
onMinusSpaceClick && /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: "neutralColor.5", h: 40, w: 40, onClick: onMinusSpaceClick, children: /* @__PURE__ */ jsx(MinusCircleSolid, { color: "secondary" }) }),
|
|
2834
2828
|
/* @__PURE__ */ jsxs(Stack$1, { align: "center", gap: 8, children: [
|
|
2835
|
-
/* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color:
|
|
2836
|
-
/* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg:
|
|
2829
|
+
/* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color: "neutralColor.5" }),
|
|
2830
|
+
/* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: "neutralColor.5", h: 40, w: 40, onClick: onSettingsIconClick, children: /* @__PURE__ */ jsx(SettingsBarSolid, { size: 22, color: "secondary" }) })
|
|
2837
2831
|
] })
|
|
2838
2832
|
] }),
|
|
2839
2833
|
isAiOpened && isNavbarNotCollapsed && aiNavbarContent,
|
|
2840
2834
|
isNavbarNotCollapsed && !isAiOpened && /* @__PURE__ */ jsxs(Stack$1, { justify: "space-between", w: "100%", pt: 16, pb: 10, px: 12, children: [
|
|
2841
2835
|
/* @__PURE__ */ jsxs(Stack$1, { gap: 5, children: [
|
|
2842
2836
|
/* @__PURE__ */ jsxs(Flex, { mb: 24, style: { width: "100%" }, justify: "space-between", align: "center", children: [
|
|
2843
|
-
/* @__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:
|
|
2837
|
+
/* @__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: cutText(pageItem.pageTitle, 19) || "Unknown" }) }) }),
|
|
2844
2838
|
isAiBtnVisible && !isAiOpened && /* @__PURE__ */ jsx(
|
|
2845
2839
|
Center,
|
|
2846
2840
|
{
|
|
@@ -2848,9 +2842,9 @@ function AppShellNavigation({
|
|
|
2848
2842
|
cursor: "pointer",
|
|
2849
2843
|
borderRadius: 8,
|
|
2850
2844
|
transition: "background 0.15s",
|
|
2851
|
-
background:
|
|
2845
|
+
background: "var(--mantine-color-neutralColor-5)",
|
|
2852
2846
|
"&:hover": {
|
|
2853
|
-
background:
|
|
2847
|
+
background: "var(--mantine-color-neutralColor-6)"
|
|
2854
2848
|
}
|
|
2855
2849
|
},
|
|
2856
2850
|
p: 4,
|
|
@@ -2897,7 +2891,7 @@ function AppShellNavigation({
|
|
|
2897
2891
|
/* @__PURE__ */ jsx(
|
|
2898
2892
|
Box,
|
|
2899
2893
|
{
|
|
2900
|
-
bg:
|
|
2894
|
+
bg: "neutralColor.5",
|
|
2901
2895
|
style: {
|
|
2902
2896
|
width: getCanvasWidth(),
|
|
2903
2897
|
minWidth: shouldShowCanvas && canvasMode === "split" ? CANVAS_MIN_WIDTH : void 0,
|
|
@@ -2907,7 +2901,7 @@ function AppShellNavigation({
|
|
|
2907
2901
|
height: "100%",
|
|
2908
2902
|
transition: isSplitResizing ? "none" : "width 0.3s ease, opacity 0.2s ease",
|
|
2909
2903
|
opacity: shouldShowCanvas ? 1 : 0,
|
|
2910
|
-
borderLeft:
|
|
2904
|
+
borderLeft: "1px solid var(--mantine-color-neutralColor-6)"
|
|
2911
2905
|
},
|
|
2912
2906
|
children: canvasContent
|
|
2913
2907
|
}
|
|
@@ -2917,7 +2911,7 @@ function AppShellNavigation({
|
|
|
2917
2911
|
{
|
|
2918
2912
|
w: 4,
|
|
2919
2913
|
h: "100%",
|
|
2920
|
-
bg: isSplitResizing ?
|
|
2914
|
+
bg: isSplitResizing ? "accent.5" : "transparent",
|
|
2921
2915
|
sx: {
|
|
2922
2916
|
cursor: "col-resize",
|
|
2923
2917
|
flexShrink: 0,
|
|
@@ -2947,7 +2941,19 @@ function AppShellNavigation({
|
|
|
2947
2941
|
)
|
|
2948
2942
|
}
|
|
2949
2943
|
),
|
|
2950
|
-
/* @__PURE__ */ jsx(
|
|
2944
|
+
/* @__PURE__ */ jsx(
|
|
2945
|
+
AsideResizable,
|
|
2946
|
+
{
|
|
2947
|
+
navbarWidth,
|
|
2948
|
+
asideCollapsed,
|
|
2949
|
+
asideMaximized,
|
|
2950
|
+
onAsideToggle,
|
|
2951
|
+
onMaxExpand,
|
|
2952
|
+
width: asideWidth,
|
|
2953
|
+
onWidthChange: setAsideWidth,
|
|
2954
|
+
children: right
|
|
2955
|
+
}
|
|
2956
|
+
)
|
|
2951
2957
|
]
|
|
2952
2958
|
}
|
|
2953
2959
|
);
|
|
@@ -3380,18 +3386,17 @@ function CardHeader({ left, right }) {
|
|
|
3380
3386
|
] }) });
|
|
3381
3387
|
}
|
|
3382
3388
|
function OracleMessage({ oracleName, message }) {
|
|
3383
|
-
const theme = useUITheme();
|
|
3384
3389
|
return /* @__PURE__ */ jsxs(Box, { mb: 32, children: [
|
|
3385
3390
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 10 }, children: [
|
|
3386
|
-
/* @__PURE__ */ jsx(Text$1, { fz: 12, c:
|
|
3387
|
-
/* @__PURE__ */ jsx(Badge$1, { tt: "capitalize", c:
|
|
3391
|
+
/* @__PURE__ */ jsx(Text$1, { fz: 12, c: "accent.5", children: oracleName || "Oracle" }),
|
|
3392
|
+
/* @__PURE__ */ jsx(Badge$1, { tt: "capitalize", c: "accent.5", size: "md", bg: "accent.0", children: "Oracle" })
|
|
3388
3393
|
] }),
|
|
3389
3394
|
/* @__PURE__ */ jsx(Box, { mt: 12, mb: 4, sx: { borderRadius: 16 }, children: /* @__PURE__ */ jsx(
|
|
3390
3395
|
Markdown,
|
|
3391
3396
|
{
|
|
3392
3397
|
remarkPlugins: [remarkGfm],
|
|
3393
3398
|
components: {
|
|
3394
|
-
a: ({ children, href }) => /* @__PURE__ */ jsx("a", { href, style: { color:
|
|
3399
|
+
a: ({ children, href }) => /* @__PURE__ */ jsx("a", { href, style: { color: "var(--mantine-color-accent-5)", textDecoration: "underline" }, children }),
|
|
3395
3400
|
ul: ({ children, ...props }) => /* @__PURE__ */ jsx(
|
|
3396
3401
|
"ul",
|
|
3397
3402
|
{
|
|
@@ -3437,7 +3442,7 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3437
3442
|
marginBottom: 12,
|
|
3438
3443
|
fontSize: "1.1em",
|
|
3439
3444
|
fontWeight: 600,
|
|
3440
|
-
color:
|
|
3445
|
+
color: "var(--mantine-color-neutralColor-6)"
|
|
3441
3446
|
},
|
|
3442
3447
|
children
|
|
3443
3448
|
}
|
|
@@ -3451,7 +3456,7 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3451
3456
|
marginBottom: 8,
|
|
3452
3457
|
fontSize: "1em",
|
|
3453
3458
|
fontWeight: 500,
|
|
3454
|
-
color:
|
|
3459
|
+
color: "var(--mantine-color-neutralColor-6)"
|
|
3455
3460
|
},
|
|
3456
3461
|
children
|
|
3457
3462
|
}
|
|
@@ -3462,7 +3467,8 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3462
3467
|
...props,
|
|
3463
3468
|
style: {
|
|
3464
3469
|
margin: "8px 0",
|
|
3465
|
-
lineHeight: 1.6
|
|
3470
|
+
lineHeight: 1.6,
|
|
3471
|
+
color: "var(--mantine-color-neutralColor-8)"
|
|
3466
3472
|
},
|
|
3467
3473
|
children
|
|
3468
3474
|
}
|
|
@@ -3487,11 +3493,11 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3487
3493
|
{
|
|
3488
3494
|
...props,
|
|
3489
3495
|
style: {
|
|
3490
|
-
border:
|
|
3496
|
+
border: "1px solid var(--mantine-color-neutralColor-7)",
|
|
3491
3497
|
padding: "8px 12px",
|
|
3492
3498
|
fontWeight: 600,
|
|
3493
3499
|
textAlign: "left",
|
|
3494
|
-
backgroundColor:
|
|
3500
|
+
backgroundColor: "var(--mantine-color-neutralColor-5)"
|
|
3495
3501
|
},
|
|
3496
3502
|
children
|
|
3497
3503
|
}
|
|
@@ -3501,7 +3507,7 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3501
3507
|
{
|
|
3502
3508
|
...props,
|
|
3503
3509
|
style: {
|
|
3504
|
-
border:
|
|
3510
|
+
border: "1px solid var(--mantine-color-neutralColor-7)",
|
|
3505
3511
|
padding: "8px 12px",
|
|
3506
3512
|
textAlign: "left"
|
|
3507
3513
|
},
|
|
@@ -3515,10 +3521,9 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3515
3521
|
] });
|
|
3516
3522
|
}
|
|
3517
3523
|
function UserMessage({ message, sender }) {
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
/* @__PURE__ */ jsx(Text$1, { c:
|
|
3521
|
-
/* @__PURE__ */ jsx(Text$1, { c: theme.text.overPicture, mt: 10, sx: { wordBreak: "break-all" }, children: message }, message)
|
|
3524
|
+
return /* @__PURE__ */ jsxs(Box, { w: "fit-content", bg: "neutralColor.6", sx: { borderRadius: 16 }, py: 12, px: 16, mb: 32, children: [
|
|
3525
|
+
/* @__PURE__ */ jsx(Text$1, { c: "neutralColor.8", fz: 12, children: sender }),
|
|
3526
|
+
/* @__PURE__ */ jsx(Text$1, { c: "neutralColor.8", mt: 10, sx: { wordBreak: "break-all" }, children: message }, message)
|
|
3522
3527
|
] });
|
|
3523
3528
|
}
|
|
3524
3529
|
function CardHero({ title, description, tag, pictogram: Pictogram, active, onClick, cornerIcon }) {
|
|
@@ -4652,11 +4657,11 @@ const CommandItem = ({
|
|
|
4652
4657
|
px: 12,
|
|
4653
4658
|
py: 8,
|
|
4654
4659
|
align: "center",
|
|
4655
|
-
bg: isSelected
|
|
4660
|
+
bg: isSelected || hovered ? "var(--mantine-color-neutralColor-2)" : "var(--mantine-color-neutralColor-5)",
|
|
4656
4661
|
gap: 14,
|
|
4657
4662
|
style: {
|
|
4658
4663
|
cursor: "pointer",
|
|
4659
|
-
outline:
|
|
4664
|
+
outline: "none",
|
|
4660
4665
|
transition: "all 0.2s ease",
|
|
4661
4666
|
transform: hovered || isSelected ? "translateY(-1px)" : "translateY(0)",
|
|
4662
4667
|
boxShadow: hovered || isSelected ? "0 4px 12px rgba(0, 0, 0, 0.15)" : "none"
|
|
@@ -4665,10 +4670,10 @@ const CommandItem = ({
|
|
|
4665
4670
|
/* @__PURE__ */ jsx(Icon, { size: 26, color: "secondary" }),
|
|
4666
4671
|
/* @__PURE__ */ jsxs(Stack$1, { gap: 0, children: [
|
|
4667
4672
|
/* @__PURE__ */ jsxs(Flex, { align: "center", gap: 6, children: [
|
|
4668
|
-
/* @__PURE__ */ jsx(Text$1, { c:
|
|
4669
|
-
/* @__PURE__ */ jsx(Badge$1, { size: "sm", fw: 300, c: theme.colors.focus, bg:
|
|
4673
|
+
/* @__PURE__ */ jsx(Text$1, { c: "neutralColor.8", children: name }),
|
|
4674
|
+
/* @__PURE__ */ jsx(Badge$1, { size: "sm", fw: 300, c: theme.colors.focus, bg: "accent.7", children: points > 0 ? `${points} AMP's` : "Free" })
|
|
4670
4675
|
] }),
|
|
4671
|
-
/* @__PURE__ */ jsx(Text$1, { fz: 12, c:
|
|
4676
|
+
/* @__PURE__ */ jsx(Text$1, { fz: 12, c: "neutralColor.7", children: description })
|
|
4672
4677
|
] })
|
|
4673
4678
|
]
|
|
4674
4679
|
}
|
|
@@ -4934,7 +4939,7 @@ function FloatingInput({
|
|
|
4934
4939
|
Box,
|
|
4935
4940
|
{
|
|
4936
4941
|
p: 16,
|
|
4937
|
-
bg:
|
|
4942
|
+
bg: "neutralColor.2",
|
|
4938
4943
|
w: 340,
|
|
4939
4944
|
pos: "absolute",
|
|
4940
4945
|
left: "50%",
|
|
@@ -4950,7 +4955,7 @@ function FloatingInput({
|
|
|
4950
4955
|
children: [
|
|
4951
4956
|
filteredCommands.length !== 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4952
4957
|
/* @__PURE__ */ jsxs(Flex, { mb: 20, align: "center", justify: "space-between", children: [
|
|
4953
|
-
/* @__PURE__ */ jsx(Text$1, { fz: 12, c:
|
|
4958
|
+
/* @__PURE__ */ jsx(Text$1, { fz: 12, c: "neutralColor.8", children: "Commands" }),
|
|
4954
4959
|
/* @__PURE__ */ jsx(EllipsisVSolid, { color: "secondary" })
|
|
4955
4960
|
] }),
|
|
4956
4961
|
/* @__PURE__ */ jsx(Text$1, { fz: 12, c: theme.colors.focus, children: oracleModel }),
|
|
@@ -5968,13 +5973,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
5968
5973
|
}
|
|
5969
5974
|
);
|
|
5970
5975
|
}
|
|
5971
|
-
const MainAction = lazy(() => import("./index-
|
|
5972
|
-
const Header$1 = lazy(() => import("./index-
|
|
5973
|
-
const Content = lazy(() => import("./index-
|
|
5976
|
+
const MainAction = lazy(() => import("./index-yfwH6dmJ.js"));
|
|
5977
|
+
const Header$1 = lazy(() => import("./index-B4KPNoed.js"));
|
|
5978
|
+
const Content = lazy(() => import("./index-B6tC0CJf.js"));
|
|
5974
5979
|
const Map = lazy(() => import("./index-D5Ufmf-s.js"));
|
|
5975
5980
|
const CustomContent = lazy(() => import("./index-DsYjW_4y.js"));
|
|
5976
|
-
const Assets = lazy(() => import("./index-
|
|
5977
|
-
const Actions = lazy(() => import("./index-
|
|
5981
|
+
const Assets = lazy(() => import("./index-dQrai2TZ.js"));
|
|
5982
|
+
const Actions = lazy(() => import("./index-nRUNkbvD.js"));
|
|
5978
5983
|
const HOVER_BORDER_WIDTH = 1;
|
|
5979
5984
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
5980
5985
|
const wrapperRef = useRef(null);
|
|
@@ -11267,4 +11272,4 @@ export {
|
|
|
11267
11272
|
CardHero as y,
|
|
11268
11273
|
CardSelector as z
|
|
11269
11274
|
};
|
|
11270
|
-
//# sourceMappingURL=components-
|
|
11275
|
+
//# sourceMappingURL=components-Du4fpG-7.js.map
|