@ixo/ui 0.0.40 → 0.1.0
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 +45 -45
- 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/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.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-C4syxh7E.cjs → components-DH1wUH8v.cjs} +93 -102
- package/dist/components-DH1wUH8v.cjs.map +1 -0
- package/dist/{components-CqTGmHcg.js → components-Dd5AcCq0.js} +93 -102
- package/dist/components-Dd5AcCq0.js.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-w1HUie3I.cjs → index-8mrl_91C.cjs} +2 -2
- package/dist/{index-w1HUie3I.cjs.map → index-8mrl_91C.cjs.map} +1 -1
- package/dist/{index-DJJDuYPt.cjs → index-B3UsRV_8.cjs} +3 -3
- package/dist/{index-DJJDuYPt.cjs.map → index-B3UsRV_8.cjs.map} +1 -1
- package/dist/{index-VKuhFO08.js → index-BQ756FwG.js} +3 -3
- package/dist/{index-VKuhFO08.js.map → index-BQ756FwG.js.map} +1 -1
- package/dist/{index-CF_eiQT5.cjs → index-BwFcOXoo.cjs} +2 -2
- package/dist/{index-CF_eiQT5.cjs.map → index-BwFcOXoo.cjs.map} +1 -1
- package/dist/{index-Br-LPA19.cjs → index-C9TPn4gB.cjs} +2 -2
- package/dist/{index-Br-LPA19.cjs.map → index-C9TPn4gB.cjs.map} +1 -1
- package/dist/{index-BZZVVGWc.cjs → index-CEnAOLa3.cjs} +2 -2
- package/dist/{index-BZZVVGWc.cjs.map → index-CEnAOLa3.cjs.map} +1 -1
- package/dist/{index-C6mephxW.js → index-CHxc81t7.js} +3 -3
- package/dist/{index-C6mephxW.js.map → index-CHxc81t7.js.map} +1 -1
- package/dist/{index-C7GIfL0K.js → index-CJf3kiYw.js} +2 -2
- package/dist/{index-C7GIfL0K.js.map → index-CJf3kiYw.js.map} +1 -1
- package/dist/{index-BiEPg62o.js → index-CNVan44C.js} +2 -2
- package/dist/{index-BiEPg62o.js.map → index-CNVan44C.js.map} +1 -1
- package/dist/{index-53vLP_Z1.cjs → index-CWtfpAdi.cjs} +2 -2
- package/dist/{index-53vLP_Z1.cjs.map → index-CWtfpAdi.cjs.map} +1 -1
- package/dist/{index-DjL20pr9.cjs → index-CnUrZJ6d.cjs} +2 -2
- package/dist/{index-DjL20pr9.cjs.map → index-CnUrZJ6d.cjs.map} +1 -1
- package/dist/{index-BNsUpFnG.js → index-DCeJ-EjR.js} +2 -2
- package/dist/{index-BNsUpFnG.js.map → index-DCeJ-EjR.js.map} +1 -1
- package/dist/{index-vV5U7oln.cjs → index-DPdnPYOK.cjs} +3 -3
- package/dist/{index-vV5U7oln.cjs.map → index-DPdnPYOK.cjs.map} +1 -1
- package/dist/{index-CAhZlLHI.cjs → index-DX1KrNFO.cjs} +3 -3
- package/dist/{index-CAhZlLHI.cjs.map → index-DX1KrNFO.cjs.map} +1 -1
- package/dist/{index-DBmK8wo0.js → index-DcOglj4H.js} +2 -2
- package/dist/{index-DBmK8wo0.js.map → index-DcOglj4H.js.map} +1 -1
- package/dist/{index-VcdXPa9t.cjs → index-F3Bif7Ud.cjs} +2 -2
- package/dist/{index-VcdXPa9t.cjs.map → index-F3Bif7Ud.cjs.map} +1 -1
- package/dist/{index-D_lOxfZA.js → index-JPCFjEIL.js} +2 -2
- package/dist/{index-D_lOxfZA.js.map → index-JPCFjEIL.js.map} +1 -1
- package/dist/{index-CSyWW5M9.js → index-LMTN501y.js} +3 -3
- package/dist/{index-CSyWW5M9.js.map → index-LMTN501y.js.map} +1 -1
- package/dist/{index-DrPdJdbB.js → index-wQ0-D7du.js} +2 -2
- package/dist/{index-DrPdJdbB.js.map → index-wQ0-D7du.js.map} +1 -1
- package/dist/{index-CtuDXjpW.js → index-znGVxTmK.js} +2 -2
- package/dist/{index-CtuDXjpW.js.map → index-znGVxTmK.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-CHxc81t7.js"));
|
|
779
|
+
const Footer = lazy(() => import("./index-BQ756FwG.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-JPCFjEIL.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-znGVxTmK.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
|
] }) })
|
|
@@ -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),
|
|
@@ -2624,7 +2617,6 @@ function AppShellNavigation({
|
|
|
2624
2617
|
}) {
|
|
2625
2618
|
const [isNavbarNotCollapsed, { toggle: toggleNavbar }] = useDisclosure(true);
|
|
2626
2619
|
const [asideWidth, setAsideWidth] = useState(450);
|
|
2627
|
-
const theme = useUITheme();
|
|
2628
2620
|
const [isSplitResizing, setIsSplitResizing] = useState(false);
|
|
2629
2621
|
const isSplitResizingRef = useRef(false);
|
|
2630
2622
|
const mainContainerRef = useRef(null);
|
|
@@ -2750,14 +2742,14 @@ function AppShellNavigation({
|
|
|
2750
2742
|
withBorder: false,
|
|
2751
2743
|
styles: {
|
|
2752
2744
|
navbar: {
|
|
2753
|
-
background:
|
|
2745
|
+
background: "var(--mantine-color-neutralColor-4)",
|
|
2754
2746
|
transition: isNavbarResizing ? "none" : "width 0.3s ease"
|
|
2755
2747
|
},
|
|
2756
2748
|
aside: {
|
|
2757
|
-
background:
|
|
2749
|
+
background: "var(--mantine-color-neutralColor-4)"
|
|
2758
2750
|
}
|
|
2759
2751
|
},
|
|
2760
|
-
bg:
|
|
2752
|
+
bg: "neutralColor.2",
|
|
2761
2753
|
navbar: {
|
|
2762
2754
|
width: isNavbarNotCollapsed ? navbarWidth : 56,
|
|
2763
2755
|
breakpoint: "sm"
|
|
@@ -2776,7 +2768,7 @@ function AppShellNavigation({
|
|
|
2776
2768
|
right: 0,
|
|
2777
2769
|
h: "100%",
|
|
2778
2770
|
pos: "absolute",
|
|
2779
|
-
bg: isNavbarResizing ?
|
|
2771
|
+
bg: isNavbarResizing ? "accent.5" : "transparent",
|
|
2780
2772
|
sx: {
|
|
2781
2773
|
zIndex: 2,
|
|
2782
2774
|
cursor: "col-resize",
|
|
@@ -2786,17 +2778,17 @@ function AppShellNavigation({
|
|
|
2786
2778
|
}
|
|
2787
2779
|
),
|
|
2788
2780
|
/* @__PURE__ */ jsxs(Flex, { style: { height: "100%" }, children: [
|
|
2789
|
-
/* @__PURE__ */ jsxs(Stack$1, { p: 8, w: 56, justify: "space-between", h: "100%", bg:
|
|
2781
|
+
/* @__PURE__ */ jsxs(Stack$1, { p: 8, w: 56, justify: "space-between", h: "100%", bg: "neutralColor.2", children: [
|
|
2790
2782
|
/* @__PURE__ */ jsxs(Stack$1, { align: "center", style: { flex: 1 }, gap: 8, children: [
|
|
2791
2783
|
/* @__PURE__ */ jsxs(Center, { sx: { cursor: "pointer", borderRadius: 24 }, pos: "relative", h: 40, w: 40, onClick: companyIcon.onClick, children: [
|
|
2792
2784
|
typeof companyIcon.icon === "string" ? /* @__PURE__ */ jsx(Image, { radius: 24, src: companyIcon.icon, w: 32, h: 32 }) : companyIcon.icon,
|
|
2793
2785
|
companyIcon.isSelected && /* @__PURE__ */ jsx(SelectedIndicator, {})
|
|
2794
2786
|
] }),
|
|
2795
|
-
avatarIcon && /* @__PURE__ */ jsxs(Center, { sx: { cursor: "pointer", borderRadius: 24 }, pos: "relative", bg:
|
|
2787
|
+
avatarIcon && /* @__PURE__ */ jsxs(Center, { sx: { cursor: "pointer", borderRadius: 24 }, pos: "relative", bg: "neutralColor.5", h: 40, w: 40, onClick: avatarIcon.onClick, children: [
|
|
2796
2788
|
/* @__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
2789
|
avatarIcon.isSelected && /* @__PURE__ */ jsx(SelectedIndicator, {})
|
|
2798
2790
|
] }),
|
|
2799
|
-
/* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color:
|
|
2791
|
+
/* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color: "neutralColor.5" }),
|
|
2800
2792
|
temporarySpace && !spaces?.some((space) => space.id === temporarySpace.id) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2801
2793
|
/* @__PURE__ */ jsx(
|
|
2802
2794
|
SpaceItem,
|
|
@@ -2809,7 +2801,7 @@ function AppShellNavigation({
|
|
|
2809
2801
|
},
|
|
2810
2802
|
temporarySpace.id
|
|
2811
2803
|
),
|
|
2812
|
-
/* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color:
|
|
2804
|
+
/* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color: "neutralColor.5" })
|
|
2813
2805
|
] }),
|
|
2814
2806
|
/* @__PURE__ */ jsx(
|
|
2815
2807
|
ScrollArea,
|
|
@@ -2829,18 +2821,18 @@ function AppShellNavigation({
|
|
|
2829
2821
|
}
|
|
2830
2822
|
)
|
|
2831
2823
|
] }),
|
|
2832
|
-
onAddSpaceClick && /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg:
|
|
2833
|
-
onMinusSpaceClick && /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg:
|
|
2824
|
+
onAddSpaceClick && /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: "neutralColor.5", h: 40, w: 40, onClick: onAddSpaceClick, children: /* @__PURE__ */ jsx(PlusSolid, { color: "secondary" }) }),
|
|
2825
|
+
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
2826
|
/* @__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:
|
|
2827
|
+
/* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color: "neutralColor.5" }),
|
|
2828
|
+
/* @__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
2829
|
] })
|
|
2838
2830
|
] }),
|
|
2839
2831
|
isAiOpened && isNavbarNotCollapsed && aiNavbarContent,
|
|
2840
2832
|
isNavbarNotCollapsed && !isAiOpened && /* @__PURE__ */ jsxs(Stack$1, { justify: "space-between", w: "100%", pt: 16, pb: 10, px: 12, children: [
|
|
2841
2833
|
/* @__PURE__ */ jsxs(Stack$1, { gap: 5, children: [
|
|
2842
2834
|
/* @__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:
|
|
2835
|
+
/* @__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
2836
|
isAiBtnVisible && !isAiOpened && /* @__PURE__ */ jsx(
|
|
2845
2837
|
Center,
|
|
2846
2838
|
{
|
|
@@ -2848,9 +2840,9 @@ function AppShellNavigation({
|
|
|
2848
2840
|
cursor: "pointer",
|
|
2849
2841
|
borderRadius: 8,
|
|
2850
2842
|
transition: "background 0.15s",
|
|
2851
|
-
background:
|
|
2843
|
+
background: "var(--mantine-color-neutralColor-5)",
|
|
2852
2844
|
"&:hover": {
|
|
2853
|
-
background:
|
|
2845
|
+
background: "var(--mantine-color-neutralColor-6)"
|
|
2854
2846
|
}
|
|
2855
2847
|
},
|
|
2856
2848
|
p: 4,
|
|
@@ -2897,7 +2889,7 @@ function AppShellNavigation({
|
|
|
2897
2889
|
/* @__PURE__ */ jsx(
|
|
2898
2890
|
Box,
|
|
2899
2891
|
{
|
|
2900
|
-
bg:
|
|
2892
|
+
bg: "neutralColor.5",
|
|
2901
2893
|
style: {
|
|
2902
2894
|
width: getCanvasWidth(),
|
|
2903
2895
|
minWidth: shouldShowCanvas && canvasMode === "split" ? CANVAS_MIN_WIDTH : void 0,
|
|
@@ -2907,7 +2899,7 @@ function AppShellNavigation({
|
|
|
2907
2899
|
height: "100%",
|
|
2908
2900
|
transition: isSplitResizing ? "none" : "width 0.3s ease, opacity 0.2s ease",
|
|
2909
2901
|
opacity: shouldShowCanvas ? 1 : 0,
|
|
2910
|
-
borderLeft:
|
|
2902
|
+
borderLeft: "1px solid var(--mantine-color-neutralColor-6)"
|
|
2911
2903
|
},
|
|
2912
2904
|
children: canvasContent
|
|
2913
2905
|
}
|
|
@@ -2917,7 +2909,7 @@ function AppShellNavigation({
|
|
|
2917
2909
|
{
|
|
2918
2910
|
w: 4,
|
|
2919
2911
|
h: "100%",
|
|
2920
|
-
bg: isSplitResizing ?
|
|
2912
|
+
bg: isSplitResizing ? "accent.5" : "transparent",
|
|
2921
2913
|
sx: {
|
|
2922
2914
|
cursor: "col-resize",
|
|
2923
2915
|
flexShrink: 0,
|
|
@@ -3380,18 +3372,17 @@ function CardHeader({ left, right }) {
|
|
|
3380
3372
|
] }) });
|
|
3381
3373
|
}
|
|
3382
3374
|
function OracleMessage({ oracleName, message }) {
|
|
3383
|
-
const theme = useUITheme();
|
|
3384
3375
|
return /* @__PURE__ */ jsxs(Box, { mb: 32, children: [
|
|
3385
3376
|
/* @__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:
|
|
3377
|
+
/* @__PURE__ */ jsx(Text$1, { fz: 12, c: "accent.5", children: oracleName || "Oracle" }),
|
|
3378
|
+
/* @__PURE__ */ jsx(Badge$1, { tt: "capitalize", c: "accent.5", size: "md", bg: "accent.0", children: "Oracle" })
|
|
3388
3379
|
] }),
|
|
3389
3380
|
/* @__PURE__ */ jsx(Box, { mt: 12, mb: 4, sx: { borderRadius: 16 }, children: /* @__PURE__ */ jsx(
|
|
3390
3381
|
Markdown,
|
|
3391
3382
|
{
|
|
3392
3383
|
remarkPlugins: [remarkGfm],
|
|
3393
3384
|
components: {
|
|
3394
|
-
a: ({ children, href }) => /* @__PURE__ */ jsx("a", { href, style: { color:
|
|
3385
|
+
a: ({ children, href }) => /* @__PURE__ */ jsx("a", { href, style: { color: "var(--mantine-color-accent-5)", textDecoration: "underline" }, children }),
|
|
3395
3386
|
ul: ({ children, ...props }) => /* @__PURE__ */ jsx(
|
|
3396
3387
|
"ul",
|
|
3397
3388
|
{
|
|
@@ -3437,7 +3428,7 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3437
3428
|
marginBottom: 12,
|
|
3438
3429
|
fontSize: "1.1em",
|
|
3439
3430
|
fontWeight: 600,
|
|
3440
|
-
color:
|
|
3431
|
+
color: "var(--mantine-color-neutralColor-6)"
|
|
3441
3432
|
},
|
|
3442
3433
|
children
|
|
3443
3434
|
}
|
|
@@ -3451,7 +3442,7 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3451
3442
|
marginBottom: 8,
|
|
3452
3443
|
fontSize: "1em",
|
|
3453
3444
|
fontWeight: 500,
|
|
3454
|
-
color:
|
|
3445
|
+
color: "var(--mantine-color-neutralColor-6)"
|
|
3455
3446
|
},
|
|
3456
3447
|
children
|
|
3457
3448
|
}
|
|
@@ -3462,7 +3453,8 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3462
3453
|
...props,
|
|
3463
3454
|
style: {
|
|
3464
3455
|
margin: "8px 0",
|
|
3465
|
-
lineHeight: 1.6
|
|
3456
|
+
lineHeight: 1.6,
|
|
3457
|
+
color: "var(--mantine-color-neutralColor-8)"
|
|
3466
3458
|
},
|
|
3467
3459
|
children
|
|
3468
3460
|
}
|
|
@@ -3487,11 +3479,11 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3487
3479
|
{
|
|
3488
3480
|
...props,
|
|
3489
3481
|
style: {
|
|
3490
|
-
border:
|
|
3482
|
+
border: "1px solid var(--mantine-color-neutralColor-7)",
|
|
3491
3483
|
padding: "8px 12px",
|
|
3492
3484
|
fontWeight: 600,
|
|
3493
3485
|
textAlign: "left",
|
|
3494
|
-
backgroundColor:
|
|
3486
|
+
backgroundColor: "var(--mantine-color-neutralColor-5)"
|
|
3495
3487
|
},
|
|
3496
3488
|
children
|
|
3497
3489
|
}
|
|
@@ -3501,7 +3493,7 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3501
3493
|
{
|
|
3502
3494
|
...props,
|
|
3503
3495
|
style: {
|
|
3504
|
-
border:
|
|
3496
|
+
border: "1px solid var(--mantine-color-neutralColor-7)",
|
|
3505
3497
|
padding: "8px 12px",
|
|
3506
3498
|
textAlign: "left"
|
|
3507
3499
|
},
|
|
@@ -3515,10 +3507,9 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3515
3507
|
] });
|
|
3516
3508
|
}
|
|
3517
3509
|
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)
|
|
3510
|
+
return /* @__PURE__ */ jsxs(Box, { w: "fit-content", bg: "neutralColor.6", sx: { borderRadius: 16 }, py: 12, px: 16, mb: 32, children: [
|
|
3511
|
+
/* @__PURE__ */ jsx(Text$1, { c: "neutralColor.8", fz: 12, children: sender }),
|
|
3512
|
+
/* @__PURE__ */ jsx(Text$1, { c: "neutralColor.8", mt: 10, sx: { wordBreak: "break-all" }, children: message }, message)
|
|
3522
3513
|
] });
|
|
3523
3514
|
}
|
|
3524
3515
|
function CardHero({ title, description, tag, pictogram: Pictogram, active, onClick, cornerIcon }) {
|
|
@@ -4652,11 +4643,11 @@ const CommandItem = ({
|
|
|
4652
4643
|
px: 12,
|
|
4653
4644
|
py: 8,
|
|
4654
4645
|
align: "center",
|
|
4655
|
-
bg: isSelected
|
|
4646
|
+
bg: isSelected || hovered ? "var(--mantine-color-neutralColor-2)" : "var(--mantine-color-neutralColor-5)",
|
|
4656
4647
|
gap: 14,
|
|
4657
4648
|
style: {
|
|
4658
4649
|
cursor: "pointer",
|
|
4659
|
-
outline:
|
|
4650
|
+
outline: "none",
|
|
4660
4651
|
transition: "all 0.2s ease",
|
|
4661
4652
|
transform: hovered || isSelected ? "translateY(-1px)" : "translateY(0)",
|
|
4662
4653
|
boxShadow: hovered || isSelected ? "0 4px 12px rgba(0, 0, 0, 0.15)" : "none"
|
|
@@ -4665,10 +4656,10 @@ const CommandItem = ({
|
|
|
4665
4656
|
/* @__PURE__ */ jsx(Icon, { size: 26, color: "secondary" }),
|
|
4666
4657
|
/* @__PURE__ */ jsxs(Stack$1, { gap: 0, children: [
|
|
4667
4658
|
/* @__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:
|
|
4659
|
+
/* @__PURE__ */ jsx(Text$1, { c: "neutralColor.8", children: name }),
|
|
4660
|
+
/* @__PURE__ */ jsx(Badge$1, { size: "sm", fw: 300, c: theme.colors.focus, bg: "accent.7", children: points > 0 ? `${points} AMP's` : "Free" })
|
|
4670
4661
|
] }),
|
|
4671
|
-
/* @__PURE__ */ jsx(Text$1, { fz: 12, c:
|
|
4662
|
+
/* @__PURE__ */ jsx(Text$1, { fz: 12, c: "neutralColor.7", children: description })
|
|
4672
4663
|
] })
|
|
4673
4664
|
]
|
|
4674
4665
|
}
|
|
@@ -4934,7 +4925,7 @@ function FloatingInput({
|
|
|
4934
4925
|
Box,
|
|
4935
4926
|
{
|
|
4936
4927
|
p: 16,
|
|
4937
|
-
bg:
|
|
4928
|
+
bg: "neutralColor.2",
|
|
4938
4929
|
w: 340,
|
|
4939
4930
|
pos: "absolute",
|
|
4940
4931
|
left: "50%",
|
|
@@ -4950,7 +4941,7 @@ function FloatingInput({
|
|
|
4950
4941
|
children: [
|
|
4951
4942
|
filteredCommands.length !== 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4952
4943
|
/* @__PURE__ */ jsxs(Flex, { mb: 20, align: "center", justify: "space-between", children: [
|
|
4953
|
-
/* @__PURE__ */ jsx(Text$1, { fz: 12, c:
|
|
4944
|
+
/* @__PURE__ */ jsx(Text$1, { fz: 12, c: "neutralColor.8", children: "Commands" }),
|
|
4954
4945
|
/* @__PURE__ */ jsx(EllipsisVSolid, { color: "secondary" })
|
|
4955
4946
|
] }),
|
|
4956
4947
|
/* @__PURE__ */ jsx(Text$1, { fz: 12, c: theme.colors.focus, children: oracleModel }),
|
|
@@ -5968,13 +5959,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
5968
5959
|
}
|
|
5969
5960
|
);
|
|
5970
5961
|
}
|
|
5971
|
-
const MainAction = lazy(() => import("./index-
|
|
5972
|
-
const Header$1 = lazy(() => import("./index-
|
|
5973
|
-
const Content = lazy(() => import("./index-
|
|
5962
|
+
const MainAction = lazy(() => import("./index-DCeJ-EjR.js"));
|
|
5963
|
+
const Header$1 = lazy(() => import("./index-CNVan44C.js"));
|
|
5964
|
+
const Content = lazy(() => import("./index-CJf3kiYw.js"));
|
|
5974
5965
|
const Map = lazy(() => import("./index-D5Ufmf-s.js"));
|
|
5975
5966
|
const CustomContent = lazy(() => import("./index-DsYjW_4y.js"));
|
|
5976
|
-
const Assets = lazy(() => import("./index-
|
|
5977
|
-
const Actions = lazy(() => import("./index-
|
|
5967
|
+
const Assets = lazy(() => import("./index-DcOglj4H.js"));
|
|
5968
|
+
const Actions = lazy(() => import("./index-LMTN501y.js"));
|
|
5978
5969
|
const HOVER_BORDER_WIDTH = 1;
|
|
5979
5970
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
5980
5971
|
const wrapperRef = useRef(null);
|
|
@@ -11267,4 +11258,4 @@ export {
|
|
|
11267
11258
|
CardHero as y,
|
|
11268
11259
|
CardSelector as z
|
|
11269
11260
|
};
|
|
11270
|
-
//# sourceMappingURL=components-
|
|
11261
|
+
//# sourceMappingURL=components-Dd5AcCq0.js.map
|