@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
|
@@ -24,16 +24,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
25
25
|
const radash = require("radash");
|
|
26
26
|
const react = require("@emotion/react");
|
|
27
|
-
const UsersSolid = require("./UsersSolid-
|
|
27
|
+
const UsersSolid = require("./UsersSolid-C29C53eo.cjs");
|
|
28
28
|
const react$1 = require("react");
|
|
29
29
|
const constants = require("./constants-DFJRYpE2.cjs");
|
|
30
30
|
const core = require("@mantine/core");
|
|
31
31
|
const css = require("@emotion/css");
|
|
32
32
|
const reactDom = require("react-dom");
|
|
33
33
|
const DOMPurify = require("dompurify");
|
|
34
|
-
const useUITheme = require("./useUITheme-DqgAb7n1.cjs");
|
|
35
34
|
const hooks = require("@mantine/hooks");
|
|
36
35
|
const useEventSubscribe = require("./useEventSubscribe-B019T27n.cjs");
|
|
36
|
+
const useUITheme = require("./useUITheme-DqgAb7n1.cjs");
|
|
37
37
|
const Markdown = require("react-markdown");
|
|
38
38
|
const remarkGfm = require("remark-gfm");
|
|
39
39
|
const downshift = require("downshift");
|
|
@@ -426,11 +426,11 @@ function Td({ children, value, description, icon: Icon, iconNoColor, image, tag,
|
|
|
426
426
|
Icon ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
427
427
|
"div",
|
|
428
428
|
{
|
|
429
|
-
css: ({ radius
|
|
429
|
+
css: ({ radius }) => ({
|
|
430
430
|
width: radius.roundButtons,
|
|
431
431
|
height: radius.roundButtons,
|
|
432
432
|
borderRadius: radius.small / 2,
|
|
433
|
-
backgroundColor:
|
|
433
|
+
backgroundColor: "var(--mantine-color-neutralColor-5)",
|
|
434
434
|
display: "flex",
|
|
435
435
|
justifyContent: "center",
|
|
436
436
|
alignItems: "center"
|
|
@@ -468,8 +468,8 @@ function Td({ children, value, description, icon: Icon, iconNoColor, image, tag,
|
|
|
468
468
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
469
469
|
"span",
|
|
470
470
|
{
|
|
471
|
-
css: ({
|
|
472
|
-
color:
|
|
471
|
+
css: ({ fontSize }) => ({
|
|
472
|
+
color: "var(--mantine-color-neutralColor-8)",
|
|
473
473
|
fontSize: fontSize.regular
|
|
474
474
|
}),
|
|
475
475
|
children: value
|
|
@@ -478,8 +478,8 @@ function Td({ children, value, description, icon: Icon, iconNoColor, image, tag,
|
|
|
478
478
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
479
479
|
"span",
|
|
480
480
|
{
|
|
481
|
-
css: ({
|
|
482
|
-
color:
|
|
481
|
+
css: ({ fontSize }) => ({
|
|
482
|
+
color: "var(--mantine-color-neutralColor-8)",
|
|
483
483
|
fontSize: fontSize.xs,
|
|
484
484
|
opacity: 0.7
|
|
485
485
|
}),
|
|
@@ -502,7 +502,7 @@ function Th({ children, align = "center", shrink, expand }) {
|
|
|
502
502
|
"th",
|
|
503
503
|
{
|
|
504
504
|
css: (theme) => ({
|
|
505
|
-
color:
|
|
505
|
+
color: "var(--mantine-color-neutralColor-8)",
|
|
506
506
|
fontFamily: theme.font.main,
|
|
507
507
|
fontSize: theme.fontSize.s,
|
|
508
508
|
textAlign: align,
|
|
@@ -546,17 +546,18 @@ function Tr({ children, selected, onClick }) {
|
|
|
546
546
|
ref: wrapperRef,
|
|
547
547
|
onClick: handleClick,
|
|
548
548
|
role: onClick ? "button" : void 0,
|
|
549
|
-
css: (
|
|
549
|
+
css: () => {
|
|
550
550
|
return {
|
|
551
551
|
cursor: onClick ? "pointer" : void 0,
|
|
552
552
|
"& > td": {
|
|
553
553
|
borderStyle: "solid",
|
|
554
554
|
borderWidth: 1,
|
|
555
555
|
borderColor: "transparent",
|
|
556
|
-
backgroundColor: selected ?
|
|
556
|
+
backgroundColor: selected ? "var(--mantine-color-neutralColor-5)" : "var(--mantine-color-neutralColor-3)",
|
|
557
|
+
color: "var(--mantine-color-neutralColor-8)"
|
|
557
558
|
},
|
|
558
559
|
"&:hover > td": {
|
|
559
|
-
backgroundColor: onClick ?
|
|
560
|
+
backgroundColor: onClick ? "var(--mantine-color-neutralColor-8)" : void 0
|
|
560
561
|
}
|
|
561
562
|
};
|
|
562
563
|
},
|
|
@@ -579,7 +580,7 @@ function Table({ children }) {
|
|
|
579
580
|
width: "100%",
|
|
580
581
|
borderCollapse: "separate",
|
|
581
582
|
borderSpacing: `0 ${theme.spacing * 2}px`,
|
|
582
|
-
background: "
|
|
583
|
+
background: "neutral.1"
|
|
583
584
|
}),
|
|
584
585
|
children
|
|
585
586
|
}
|
|
@@ -797,8 +798,8 @@ function AccordionTable({
|
|
|
797
798
|
}
|
|
798
799
|
);
|
|
799
800
|
}
|
|
800
|
-
const Header$3 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
801
|
-
const Footer = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
801
|
+
const Header$3 = react$1.lazy(() => Promise.resolve().then(() => require("./index-CdvEC2KX.cjs")));
|
|
802
|
+
const Footer = react$1.lazy(() => Promise.resolve().then(() => require("./index-kAjxkAWZ.cjs")));
|
|
802
803
|
function ActionCard({ header, content, footer, useHoverMode = false }) {
|
|
803
804
|
const hasContent = !!content || !!footer;
|
|
804
805
|
const initialVisibility = footer?.startHidden !== true;
|
|
@@ -882,7 +883,7 @@ function Loader({ size, color = "primary" }) {
|
|
|
882
883
|
}
|
|
883
884
|
const CARD_WIDTH$1 = 350;
|
|
884
885
|
const CARD_HEADER_HEIGHT = 158;
|
|
885
|
-
const Header$2 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
886
|
+
const Header$2 = react$1.lazy(() => Promise.resolve().then(() => require("./index-CghhpKGt.cjs")));
|
|
886
887
|
function Card({ children, className, contentClassName, roundedBottom, noPadding = false, fullWidth = false, header, wrapperSx, onClick }) {
|
|
887
888
|
const wrapperRef = react$1.useRef(null);
|
|
888
889
|
const handleOnClick = react$1.useCallback(
|
|
@@ -1317,7 +1318,7 @@ function ModalSheet({ isOpen, children, hideHandler, zIndex, onRequestHide, onRe
|
|
|
1317
1318
|
document.body
|
|
1318
1319
|
);
|
|
1319
1320
|
}
|
|
1320
|
-
const Badge = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
1321
|
+
const Badge = react$1.lazy(() => Promise.resolve().then(() => require("./index-BqhR9ZZk.cjs")));
|
|
1321
1322
|
function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide, onRequestShow }) {
|
|
1322
1323
|
const shadowScrollRef = react$1.useRef(null);
|
|
1323
1324
|
const wrapperContentAreaRef = react$1.useRef(null);
|
|
@@ -1958,28 +1959,28 @@ function Item({ icon, label, disabled, active, onClick }) {
|
|
|
1958
1959
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1959
1960
|
"button",
|
|
1960
1961
|
{
|
|
1961
|
-
css: (
|
|
1962
|
+
css: () => ({
|
|
1962
1963
|
width: "100%",
|
|
1963
1964
|
borderRadius: 4,
|
|
1964
1965
|
padding: "4px 12px",
|
|
1965
|
-
background:
|
|
1966
|
+
background: "var(--mantine-color-neutralColor-5)",
|
|
1966
1967
|
border: "none",
|
|
1967
1968
|
cursor: disabled ? "not-allowed" : "pointer",
|
|
1968
1969
|
textAlign: "left",
|
|
1969
1970
|
"&:hover": {
|
|
1970
|
-
backgroundColor: disabled ? void 0 :
|
|
1971
|
+
backgroundColor: disabled ? void 0 : "var(--mantine-color-neutralColor-6)"
|
|
1971
1972
|
}
|
|
1972
1973
|
}),
|
|
1973
1974
|
disabled,
|
|
1974
1975
|
onClick,
|
|
1975
1976
|
children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { align: "center", gap: 8, children: [
|
|
1976
|
-
IconComponent && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { size: 16 }),
|
|
1977
|
+
IconComponent && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { size: 16, color: "overPicture" }),
|
|
1977
1978
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1978
1979
|
Typography.Text,
|
|
1979
1980
|
{
|
|
1980
|
-
css: ({ fontSize
|
|
1981
|
+
css: ({ fontSize }) => ({
|
|
1981
1982
|
fontSize: fontSize.xs,
|
|
1982
|
-
color: disabled ?
|
|
1983
|
+
color: disabled ? "var(--mantine-color-neutralColor-8)" : active ? "var(--mantine-color-neutralColor-8)" : "var(--mantine-color-neutralColor-8)"
|
|
1983
1984
|
}),
|
|
1984
1985
|
children: label
|
|
1985
1986
|
}
|
|
@@ -1989,7 +1990,6 @@ function Item({ icon, label, disabled, active, onClick }) {
|
|
|
1989
1990
|
);
|
|
1990
1991
|
}
|
|
1991
1992
|
function MoreMenu({ items, controlColor = "primary" }) {
|
|
1992
|
-
const theme = useUITheme.useUITheme();
|
|
1993
1993
|
const [opened, setOpened] = react$1.useState(false);
|
|
1994
1994
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1995
1995
|
core.Popover,
|
|
@@ -1999,7 +1999,7 @@ function MoreMenu({ items, controlColor = "primary" }) {
|
|
|
1999
1999
|
closeOnClickOutside: true,
|
|
2000
2000
|
styles: {
|
|
2001
2001
|
dropdown: {
|
|
2002
|
-
background:
|
|
2002
|
+
background: "var(--mantine-color-neutralColor-4)",
|
|
2003
2003
|
border: "none",
|
|
2004
2004
|
padding: "12px 4px",
|
|
2005
2005
|
marginLeft: 10
|
|
@@ -2028,7 +2028,7 @@ function MoreMenu({ items, controlColor = "primary" }) {
|
|
|
2028
2028
|
}
|
|
2029
2029
|
) }),
|
|
2030
2030
|
/* @__PURE__ */ jsxRuntime.jsxs(core.Popover.Dropdown, { children: [
|
|
2031
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { ml: 12, mb: 10, fz: 12, c:
|
|
2031
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { ml: 12, mb: 10, fz: 12, c: "neutralColor.8", children: "Page" }),
|
|
2032
2032
|
items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2033
2033
|
Item,
|
|
2034
2034
|
{
|
|
@@ -2126,12 +2126,11 @@ function AIInputBar({ placeholder, icon, disabledInput, disabledButton, valueInp
|
|
|
2126
2126
|
);
|
|
2127
2127
|
}
|
|
2128
2128
|
function AIChatToolbar({ onClose, onHistoryClick, onPlusClick, onHistoryClose, onCanvasCycle, isHistoryOpened, canvasMode = "hidden", oracleModel, sessionTitle }) {
|
|
2129
|
-
const theme = useUITheme.useUITheme();
|
|
2130
2129
|
const canvasActive = canvasMode !== "hidden";
|
|
2131
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Flex, { bg:
|
|
2130
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Flex, { bg: "neutralColor.4", py: 16, justify: "space-between", align: "center", children: [
|
|
2132
2131
|
/* @__PURE__ */ jsxRuntime.jsxs(Flex, { gap: 6, align: "center", children: [
|
|
2133
|
-
sessionTitle && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2134
|
-
oracleModel && /* @__PURE__ */ jsxRuntime.jsx(core.Badge, { fw: 300, size: "sm", fz: 12, bg:
|
|
2132
|
+
sessionTitle && /* @__PURE__ */ jsxRuntime.jsx(core.Text, { c: "neutralColor.8", fz: 14, children: sessionTitle }),
|
|
2133
|
+
oracleModel && /* @__PURE__ */ jsxRuntime.jsx(core.Badge, { fw: 300, size: "sm", fz: 12, c: "neutralColor.8", bg: "neutralColor.3", tt: "initial", children: oracleModel })
|
|
2135
2134
|
] }),
|
|
2136
2135
|
/* @__PURE__ */ jsxRuntime.jsx(Flex, { gap: 6, align: "center", justify: "flex-end", children: isHistoryOpened ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2137
2136
|
core.Center,
|
|
@@ -2140,17 +2139,17 @@ function AIChatToolbar({ onClose, onHistoryClick, onPlusClick, onHistoryClose, o
|
|
|
2140
2139
|
cursor: "pointer",
|
|
2141
2140
|
borderRadius: 8,
|
|
2142
2141
|
transition: "background 0.15s",
|
|
2143
|
-
background:
|
|
2142
|
+
background: "var(--mantine-color-neutralColor-5)",
|
|
2144
2143
|
"&:hover": {
|
|
2145
|
-
background:
|
|
2144
|
+
background: "var(--mantine-color-neutralColor-6)"
|
|
2146
2145
|
}
|
|
2147
2146
|
},
|
|
2148
2147
|
p: 4,
|
|
2149
2148
|
onClick: onHistoryClose,
|
|
2150
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.ArrowLeftSolid, { size: 18 })
|
|
2149
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.ArrowLeftSolid, { size: 18, color: "secondary" })
|
|
2151
2150
|
}
|
|
2152
2151
|
) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2153
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, onClick: onPlusClick, children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.PlusSolid, { size: 18 }) }),
|
|
2152
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, onClick: onPlusClick, children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.PlusSolid, { size: 18, color: "secondary" }) }),
|
|
2154
2153
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2155
2154
|
core.Center,
|
|
2156
2155
|
{
|
|
@@ -2159,10 +2158,10 @@ function AIChatToolbar({ onClose, onHistoryClick, onPlusClick, onHistoryClose, o
|
|
|
2159
2158
|
borderRadius: 24
|
|
2160
2159
|
},
|
|
2161
2160
|
onClick: onCanvasCycle,
|
|
2162
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.Canvas, { size: 18, color: canvasActive ? "primary" :
|
|
2161
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.Canvas, { size: 18, color: canvasActive ? "primary" : "secondary" })
|
|
2163
2162
|
}
|
|
2164
2163
|
),
|
|
2165
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, onClick: onHistoryClick, children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.HistorySolid, { size: 18 }) }),
|
|
2164
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, onClick: onHistoryClick, children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.HistorySolid, { size: 18, color: "secondary" }) }),
|
|
2166
2165
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2167
2166
|
core.Center,
|
|
2168
2167
|
{
|
|
@@ -2170,14 +2169,14 @@ function AIChatToolbar({ onClose, onHistoryClick, onPlusClick, onHistoryClose, o
|
|
|
2170
2169
|
cursor: "pointer",
|
|
2171
2170
|
borderRadius: 8,
|
|
2172
2171
|
transition: "background 0.15s",
|
|
2173
|
-
background:
|
|
2172
|
+
background: "var(--mantine-color-neutralColor-5)",
|
|
2174
2173
|
"&:hover": {
|
|
2175
|
-
background:
|
|
2174
|
+
background: "var(--mantine-color-neutralColor-6)"
|
|
2176
2175
|
}
|
|
2177
2176
|
},
|
|
2178
2177
|
p: 4,
|
|
2179
2178
|
onClick: onClose,
|
|
2180
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.Close, { size: 18 })
|
|
2179
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.Close, { size: 18, color: "secondary" })
|
|
2181
2180
|
}
|
|
2182
2181
|
)
|
|
2183
2182
|
] }) })
|
|
@@ -2220,7 +2219,7 @@ function Avatar({ src, rounded = true, size = 62, did }) {
|
|
|
2220
2219
|
}
|
|
2221
2220
|
const MIN_WIDTH = 200;
|
|
2222
2221
|
const MAX_WIDTH = 700;
|
|
2223
|
-
function AsideResizable({ children, asideCollapsed = false, onAsideToggle, width = 450, onWidthChange, onMaxExpand }) {
|
|
2222
|
+
function AsideResizable({ children, navbarWidth, asideMaximized, asideCollapsed = false, onAsideToggle, width = 450, onWidthChange, onMaxExpand }) {
|
|
2224
2223
|
const [isResizing, setIsResizing] = react$1.useState(false);
|
|
2225
2224
|
const [ref] = hooks.useResizeObserver();
|
|
2226
2225
|
const isShowingRef = react$1.useRef(false);
|
|
@@ -2297,9 +2296,9 @@ function AsideResizable({ children, asideCollapsed = false, onAsideToggle, width
|
|
|
2297
2296
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2298
2297
|
core.AppShell.Aside,
|
|
2299
2298
|
{
|
|
2300
|
-
w: width,
|
|
2299
|
+
w: asideMaximized ? "100%" : width,
|
|
2301
2300
|
miw: 200,
|
|
2302
|
-
maw: MAX_WIDTH,
|
|
2301
|
+
maw: asideMaximized ? `calc(100% - ${navbarWidth}px)` : MAX_WIDTH,
|
|
2303
2302
|
ref,
|
|
2304
2303
|
sx: {
|
|
2305
2304
|
overflowY: "auto",
|
|
@@ -2311,7 +2310,7 @@ function AsideResizable({ children, asideCollapsed = false, onAsideToggle, width
|
|
|
2311
2310
|
}
|
|
2312
2311
|
},
|
|
2313
2312
|
children: [
|
|
2314
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2313
|
+
!asideMaximized && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2315
2314
|
core.Box,
|
|
2316
2315
|
{
|
|
2317
2316
|
w: 4,
|
|
@@ -2334,7 +2333,6 @@ function AsideResizable({ children, asideCollapsed = false, onAsideToggle, width
|
|
|
2334
2333
|
);
|
|
2335
2334
|
}
|
|
2336
2335
|
function NavigationItemSkeleton() {
|
|
2337
|
-
const theme = useUITheme.useUITheme();
|
|
2338
2336
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2339
2337
|
Flex,
|
|
2340
2338
|
{
|
|
@@ -2345,7 +2343,7 @@ function NavigationItemSkeleton() {
|
|
|
2345
2343
|
py: 6,
|
|
2346
2344
|
style: {
|
|
2347
2345
|
borderRadius: 8,
|
|
2348
|
-
backgroundColor:
|
|
2346
|
+
backgroundColor: "var(--mantine-color-neutralColor-5)"
|
|
2349
2347
|
},
|
|
2350
2348
|
children: [
|
|
2351
2349
|
/* @__PURE__ */ jsxRuntime.jsx(Flex, { align: "center", gap: 4, style: { flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2379,7 +2377,6 @@ function NavigationItemSkeleton() {
|
|
|
2379
2377
|
}
|
|
2380
2378
|
function RoomItem({ room }) {
|
|
2381
2379
|
const { hovered, ref } = hooks.useHover();
|
|
2382
|
-
const theme = useUITheme.useUITheme();
|
|
2383
2380
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2384
2381
|
Flex,
|
|
2385
2382
|
{
|
|
@@ -2392,21 +2389,20 @@ function RoomItem({ room }) {
|
|
|
2392
2389
|
style: {
|
|
2393
2390
|
cursor: "pointer",
|
|
2394
2391
|
borderRadius: 6,
|
|
2395
|
-
backgroundColor: room.isActive || hovered ?
|
|
2392
|
+
backgroundColor: room.isActive || hovered ? "var(--mantine-color-neutralColor-5)" : "transparent",
|
|
2396
2393
|
transform: hovered ? "translateX(2px)" : "translateX(0px)",
|
|
2397
2394
|
transition: "all 0.15s ease"
|
|
2398
2395
|
},
|
|
2399
2396
|
onClick: () => room.onClick(room.id),
|
|
2400
2397
|
children: [
|
|
2401
2398
|
/* @__PURE__ */ jsxRuntime.jsx(room.icon, { size: 16, color: "secondary" }),
|
|
2402
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 13, c:
|
|
2399
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 13, c: "neutralColor.8", children: room.name })
|
|
2403
2400
|
]
|
|
2404
2401
|
}
|
|
2405
2402
|
);
|
|
2406
2403
|
}
|
|
2407
2404
|
function RoomCategory({ category }) {
|
|
2408
2405
|
const { hovered, ref } = hooks.useHover();
|
|
2409
|
-
const theme = useUITheme.useUITheme();
|
|
2410
2406
|
const { value, toggle } = useToggle(false);
|
|
2411
2407
|
return /* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { gap: 2, children: [
|
|
2412
2408
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -2420,12 +2416,12 @@ function RoomCategory({ category }) {
|
|
|
2420
2416
|
style: {
|
|
2421
2417
|
cursor: "pointer",
|
|
2422
2418
|
borderRadius: 6,
|
|
2423
|
-
backgroundColor: hovered ?
|
|
2419
|
+
backgroundColor: hovered ? "var(--mantine-color-neutralColor-6)" : "transparent",
|
|
2424
2420
|
transition: "all 0.15s ease"
|
|
2425
2421
|
},
|
|
2426
2422
|
onClick: toggle,
|
|
2427
2423
|
children: [
|
|
2428
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12, c:
|
|
2424
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12, c: "neutralColor.7", children: category.name }),
|
|
2429
2425
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2430
2426
|
core.Center,
|
|
2431
2427
|
{
|
|
@@ -2448,7 +2444,6 @@ function hasActiveDescendant(children) {
|
|
|
2448
2444
|
}
|
|
2449
2445
|
function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
2450
2446
|
const { hovered, ref } = hooks.useHover();
|
|
2451
|
-
const theme = useUITheme.useUITheme();
|
|
2452
2447
|
const hasChildren = item.children && item.children.length > 0;
|
|
2453
2448
|
const hasActiveChild = react$1.useMemo(() => hasActiveDescendant(item.children), [item.children]);
|
|
2454
2449
|
const initialExpanded = item?.isActive === true || hasActiveChild;
|
|
@@ -2492,7 +2487,7 @@ function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
|
2492
2487
|
transform: isExpanded ? "rotate(-90deg)" : "rotate(0deg)",
|
|
2493
2488
|
transition: "transform 0.2s ease",
|
|
2494
2489
|
"&:hover": {
|
|
2495
|
-
backgroundColor:
|
|
2490
|
+
backgroundColor: "neutralColor.5"
|
|
2496
2491
|
}
|
|
2497
2492
|
},
|
|
2498
2493
|
children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.AngleLeftSolid, { size: 12, color: "secondary" })
|
|
@@ -2520,7 +2515,7 @@ function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
|
2520
2515
|
style: {
|
|
2521
2516
|
cursor: "pointer",
|
|
2522
2517
|
borderRadius: 8,
|
|
2523
|
-
backgroundColor: shouldShowActiveStyle ?
|
|
2518
|
+
backgroundColor: shouldShowActiveStyle ? "var(--mantine-color-neutralColor-6)" : hovered ? "var(--mantine-color-neutralColor-6)" : "transparent",
|
|
2524
2519
|
transform: hovered ? "translateX(4px)" : "translateX(0px)",
|
|
2525
2520
|
transition: "all 0.2s ease"
|
|
2526
2521
|
},
|
|
@@ -2528,7 +2523,7 @@ function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
|
2528
2523
|
children: [
|
|
2529
2524
|
/* @__PURE__ */ jsxRuntime.jsxs(Flex, { align: "center", gap: 8, children: [
|
|
2530
2525
|
renderIcon(),
|
|
2531
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 14, fw: 500, c:
|
|
2526
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 14, fw: 500, c: item.isActive ? "neutralColor.8" : "neutralColor.7", style: { flex: 1 }, children: item.name }),
|
|
2532
2527
|
item.badgeCount ? /* @__PURE__ */ jsxRuntime.jsx(core.Badge, { size: "xs", variant: "filled", ml: 4, style: { minWidth: "16px", height: "15px", padding: "0 4px", fontSize: "8px" }, children: item.badgeCount }) : null
|
|
2533
2528
|
] }),
|
|
2534
2529
|
/* @__PURE__ */ jsxRuntime.jsx(Flex, { children: item?.actions && item.actions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2539,7 +2534,7 @@ function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
|
2539
2534
|
borderRadius: 4,
|
|
2540
2535
|
transition: "transform 0.2s ease",
|
|
2541
2536
|
"&:hover": {
|
|
2542
|
-
|
|
2537
|
+
background: "var(--mantine-color-neutralColor-5)"
|
|
2543
2538
|
}
|
|
2544
2539
|
},
|
|
2545
2540
|
children: /* @__PURE__ */ jsxRuntime.jsx(MoreMenu, { items: item.actions, controlColor: "secondary" })
|
|
@@ -2552,7 +2547,6 @@ function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
|
2552
2547
|
] });
|
|
2553
2548
|
}
|
|
2554
2549
|
function SelectedIndicator() {
|
|
2555
|
-
const theme = useUITheme.useUITheme();
|
|
2556
2550
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2557
2551
|
"div",
|
|
2558
2552
|
{
|
|
@@ -2561,7 +2555,7 @@ function SelectedIndicator() {
|
|
|
2561
2555
|
left: -8,
|
|
2562
2556
|
width: 4,
|
|
2563
2557
|
height: 30,
|
|
2564
|
-
backgroundColor:
|
|
2558
|
+
backgroundColor: "var(--mantine-color-neutralColor-8)",
|
|
2565
2559
|
borderRadius: 4
|
|
2566
2560
|
}
|
|
2567
2561
|
}
|
|
@@ -2569,7 +2563,6 @@ function SelectedIndicator() {
|
|
|
2569
2563
|
}
|
|
2570
2564
|
function SpaceItem({ icon, id, name, selectedSpace, onClick }) {
|
|
2571
2565
|
const { hovered, ref } = hooks.useHover();
|
|
2572
|
-
const theme = useUITheme.useUITheme();
|
|
2573
2566
|
const isSelected = selectedSpace === id;
|
|
2574
2567
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2575
2568
|
core.Center,
|
|
@@ -2580,7 +2573,7 @@ function SpaceItem({ icon, id, name, selectedSpace, onClick }) {
|
|
|
2580
2573
|
borderRadius: 24
|
|
2581
2574
|
},
|
|
2582
2575
|
pos: "relative",
|
|
2583
|
-
bg: hovered ?
|
|
2576
|
+
bg: hovered ? "neutralColor.6" : "neutralColor.5",
|
|
2584
2577
|
mih: 40,
|
|
2585
2578
|
w: 40,
|
|
2586
2579
|
onClick: () => onClick(id),
|
|
@@ -2631,6 +2624,7 @@ function AppShellNavigation({
|
|
|
2631
2624
|
roomCategories,
|
|
2632
2625
|
right,
|
|
2633
2626
|
asideCollapsed = true,
|
|
2627
|
+
asideMaximized = false,
|
|
2634
2628
|
onAsideToggle,
|
|
2635
2629
|
onMaxExpand,
|
|
2636
2630
|
onAiOpen,
|
|
@@ -2647,7 +2641,6 @@ function AppShellNavigation({
|
|
|
2647
2641
|
}) {
|
|
2648
2642
|
const [isNavbarNotCollapsed, { toggle: toggleNavbar }] = hooks.useDisclosure(true);
|
|
2649
2643
|
const [asideWidth, setAsideWidth] = react$1.useState(450);
|
|
2650
|
-
const theme = useUITheme.useUITheme();
|
|
2651
2644
|
const [isSplitResizing, setIsSplitResizing] = react$1.useState(false);
|
|
2652
2645
|
const isSplitResizingRef = react$1.useRef(false);
|
|
2653
2646
|
const mainContainerRef = react$1.useRef(null);
|
|
@@ -2773,14 +2766,15 @@ function AppShellNavigation({
|
|
|
2773
2766
|
withBorder: false,
|
|
2774
2767
|
styles: {
|
|
2775
2768
|
navbar: {
|
|
2776
|
-
background:
|
|
2769
|
+
background: "var(--mantine-color-neutralColor-4)",
|
|
2777
2770
|
transition: isNavbarResizing ? "none" : "width 0.3s ease"
|
|
2778
2771
|
},
|
|
2779
2772
|
aside: {
|
|
2780
|
-
background:
|
|
2773
|
+
background: "var(--mantine-color-neutralColor-2)",
|
|
2774
|
+
borderLeft: "1px solid var(--mantine-color-neutralColor-6)"
|
|
2781
2775
|
}
|
|
2782
2776
|
},
|
|
2783
|
-
bg:
|
|
2777
|
+
bg: "neutralColor.2",
|
|
2784
2778
|
navbar: {
|
|
2785
2779
|
width: isNavbarNotCollapsed ? navbarWidth : 56,
|
|
2786
2780
|
breakpoint: "sm"
|
|
@@ -2799,7 +2793,7 @@ function AppShellNavigation({
|
|
|
2799
2793
|
right: 0,
|
|
2800
2794
|
h: "100%",
|
|
2801
2795
|
pos: "absolute",
|
|
2802
|
-
bg: isNavbarResizing ?
|
|
2796
|
+
bg: isNavbarResizing ? "accent.5" : "transparent",
|
|
2803
2797
|
sx: {
|
|
2804
2798
|
zIndex: 2,
|
|
2805
2799
|
cursor: "col-resize",
|
|
@@ -2809,17 +2803,17 @@ function AppShellNavigation({
|
|
|
2809
2803
|
}
|
|
2810
2804
|
),
|
|
2811
2805
|
/* @__PURE__ */ jsxRuntime.jsxs(Flex, { style: { height: "100%" }, children: [
|
|
2812
|
-
/* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { p: 8, w: 56, justify: "space-between", h: "100%", bg:
|
|
2806
|
+
/* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { p: 8, w: 56, justify: "space-between", h: "100%", bg: "neutralColor.2", children: [
|
|
2813
2807
|
/* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { align: "center", style: { flex: 1 }, gap: 8, children: [
|
|
2814
2808
|
/* @__PURE__ */ jsxRuntime.jsxs(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, pos: "relative", h: 40, w: 40, onClick: companyIcon.onClick, children: [
|
|
2815
2809
|
typeof companyIcon.icon === "string" ? /* @__PURE__ */ jsxRuntime.jsx(core.Image, { radius: 24, src: companyIcon.icon, w: 32, h: 32 }) : companyIcon.icon,
|
|
2816
2810
|
companyIcon.isSelected && /* @__PURE__ */ jsxRuntime.jsx(SelectedIndicator, {})
|
|
2817
2811
|
] }),
|
|
2818
|
-
avatarIcon && /* @__PURE__ */ jsxRuntime.jsxs(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, pos: "relative", bg:
|
|
2812
|
+
avatarIcon && /* @__PURE__ */ jsxRuntime.jsxs(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, pos: "relative", bg: "neutralColor.5", h: 40, w: 40, onClick: avatarIcon.onClick, children: [
|
|
2819
2813
|
/* @__PURE__ */ jsxRuntime.jsx(core.Tooltip, { label: "Home", position: "right", withArrow: true, ml: 5, fz: 12, children: typeof avatarIcon.icon === "string" ? /* @__PURE__ */ jsxRuntime.jsx(core.Image, { radius: 24, src: avatarIcon.icon, w: 32, h: 32 }) : avatarIcon.icon }),
|
|
2820
2814
|
avatarIcon.isSelected && /* @__PURE__ */ jsxRuntime.jsx(SelectedIndicator, {})
|
|
2821
2815
|
] }),
|
|
2822
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Divider, { w: 40, mx: 10, color:
|
|
2816
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Divider, { w: 40, mx: 10, color: "neutralColor.5" }),
|
|
2823
2817
|
temporarySpace && !spaces?.some((space) => space.id === temporarySpace.id) && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2824
2818
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2825
2819
|
SpaceItem,
|
|
@@ -2832,7 +2826,7 @@ function AppShellNavigation({
|
|
|
2832
2826
|
},
|
|
2833
2827
|
temporarySpace.id
|
|
2834
2828
|
),
|
|
2835
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Divider, { w: 40, mx: 10, color:
|
|
2829
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Divider, { w: 40, mx: 10, color: "neutralColor.5" })
|
|
2836
2830
|
] }),
|
|
2837
2831
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2838
2832
|
core.ScrollArea,
|
|
@@ -2852,18 +2846,18 @@ function AppShellNavigation({
|
|
|
2852
2846
|
}
|
|
2853
2847
|
)
|
|
2854
2848
|
] }),
|
|
2855
|
-
onAddSpaceClick && /* @__PURE__ */ jsxRuntime.jsx(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg:
|
|
2856
|
-
onMinusSpaceClick && /* @__PURE__ */ jsxRuntime.jsx(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg:
|
|
2849
|
+
onAddSpaceClick && /* @__PURE__ */ jsxRuntime.jsx(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: "neutralColor.5", h: 40, w: 40, onClick: onAddSpaceClick, children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.PlusSolid, { color: "secondary" }) }),
|
|
2850
|
+
onMinusSpaceClick && /* @__PURE__ */ jsxRuntime.jsx(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: "neutralColor.5", h: 40, w: 40, onClick: onMinusSpaceClick, children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.MinusCircleSolid, { color: "secondary" }) }),
|
|
2857
2851
|
/* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { align: "center", gap: 8, children: [
|
|
2858
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Divider, { w: 40, mx: 10, color:
|
|
2859
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg:
|
|
2852
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Divider, { w: 40, mx: 10, color: "neutralColor.5" }),
|
|
2853
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: "neutralColor.5", h: 40, w: 40, onClick: onSettingsIconClick, children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.SettingsBarSolid, { size: 22, color: "secondary" }) })
|
|
2860
2854
|
] })
|
|
2861
2855
|
] }),
|
|
2862
2856
|
isAiOpened && isNavbarNotCollapsed && aiNavbarContent,
|
|
2863
2857
|
isNavbarNotCollapsed && !isAiOpened && /* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { justify: "space-between", w: "100%", pt: 16, pb: 10, px: 12, children: [
|
|
2864
2858
|
/* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { gap: 5, children: [
|
|
2865
2859
|
/* @__PURE__ */ jsxRuntime.jsxs(Flex, { mb: 24, style: { width: "100%" }, justify: "space-between", align: "center", children: [
|
|
2866
|
-
/* @__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:
|
|
2860
|
+
/* @__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: cutText(pageItem.pageTitle, 19) || "Unknown" }) }) }),
|
|
2867
2861
|
isAiBtnVisible && !isAiOpened && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2868
2862
|
core.Center,
|
|
2869
2863
|
{
|
|
@@ -2871,9 +2865,9 @@ function AppShellNavigation({
|
|
|
2871
2865
|
cursor: "pointer",
|
|
2872
2866
|
borderRadius: 8,
|
|
2873
2867
|
transition: "background 0.15s",
|
|
2874
|
-
background:
|
|
2868
|
+
background: "var(--mantine-color-neutralColor-5)",
|
|
2875
2869
|
"&:hover": {
|
|
2876
|
-
background:
|
|
2870
|
+
background: "var(--mantine-color-neutralColor-6)"
|
|
2877
2871
|
}
|
|
2878
2872
|
},
|
|
2879
2873
|
p: 4,
|
|
@@ -2920,7 +2914,7 @@ function AppShellNavigation({
|
|
|
2920
2914
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2921
2915
|
core.Box,
|
|
2922
2916
|
{
|
|
2923
|
-
bg:
|
|
2917
|
+
bg: "neutralColor.5",
|
|
2924
2918
|
style: {
|
|
2925
2919
|
width: getCanvasWidth(),
|
|
2926
2920
|
minWidth: shouldShowCanvas && canvasMode === "split" ? CANVAS_MIN_WIDTH : void 0,
|
|
@@ -2930,7 +2924,7 @@ function AppShellNavigation({
|
|
|
2930
2924
|
height: "100%",
|
|
2931
2925
|
transition: isSplitResizing ? "none" : "width 0.3s ease, opacity 0.2s ease",
|
|
2932
2926
|
opacity: shouldShowCanvas ? 1 : 0,
|
|
2933
|
-
borderLeft:
|
|
2927
|
+
borderLeft: "1px solid var(--mantine-color-neutralColor-6)"
|
|
2934
2928
|
},
|
|
2935
2929
|
children: canvasContent
|
|
2936
2930
|
}
|
|
@@ -2940,7 +2934,7 @@ function AppShellNavigation({
|
|
|
2940
2934
|
{
|
|
2941
2935
|
w: 4,
|
|
2942
2936
|
h: "100%",
|
|
2943
|
-
bg: isSplitResizing ?
|
|
2937
|
+
bg: isSplitResizing ? "accent.5" : "transparent",
|
|
2944
2938
|
sx: {
|
|
2945
2939
|
cursor: "col-resize",
|
|
2946
2940
|
flexShrink: 0,
|
|
@@ -2970,7 +2964,19 @@ function AppShellNavigation({
|
|
|
2970
2964
|
)
|
|
2971
2965
|
}
|
|
2972
2966
|
),
|
|
2973
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2967
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2968
|
+
AsideResizable,
|
|
2969
|
+
{
|
|
2970
|
+
navbarWidth,
|
|
2971
|
+
asideCollapsed,
|
|
2972
|
+
asideMaximized,
|
|
2973
|
+
onAsideToggle,
|
|
2974
|
+
onMaxExpand,
|
|
2975
|
+
width: asideWidth,
|
|
2976
|
+
onWidthChange: setAsideWidth,
|
|
2977
|
+
children: right
|
|
2978
|
+
}
|
|
2979
|
+
)
|
|
2974
2980
|
]
|
|
2975
2981
|
}
|
|
2976
2982
|
);
|
|
@@ -3403,18 +3409,17 @@ function CardHeader({ left, right }) {
|
|
|
3403
3409
|
] }) });
|
|
3404
3410
|
}
|
|
3405
3411
|
function OracleMessage({ oracleName, message }) {
|
|
3406
|
-
const theme = useUITheme.useUITheme();
|
|
3407
3412
|
return /* @__PURE__ */ jsxRuntime.jsxs(core.Box, { mb: 32, children: [
|
|
3408
3413
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 10 }, children: [
|
|
3409
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12, c:
|
|
3410
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Badge, { tt: "capitalize", c:
|
|
3414
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12, c: "accent.5", children: oracleName || "Oracle" }),
|
|
3415
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Badge, { tt: "capitalize", c: "accent.5", size: "md", bg: "accent.0", children: "Oracle" })
|
|
3411
3416
|
] }),
|
|
3412
3417
|
/* @__PURE__ */ jsxRuntime.jsx(core.Box, { mt: 12, mb: 4, sx: { borderRadius: 16 }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3413
3418
|
Markdown,
|
|
3414
3419
|
{
|
|
3415
3420
|
remarkPlugins: [remarkGfm],
|
|
3416
3421
|
components: {
|
|
3417
|
-
a: ({ children, href }) => /* @__PURE__ */ jsxRuntime.jsx("a", { href, style: { color:
|
|
3422
|
+
a: ({ children, href }) => /* @__PURE__ */ jsxRuntime.jsx("a", { href, style: { color: "var(--mantine-color-accent-5)", textDecoration: "underline" }, children }),
|
|
3418
3423
|
ul: ({ children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3419
3424
|
"ul",
|
|
3420
3425
|
{
|
|
@@ -3460,7 +3465,7 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3460
3465
|
marginBottom: 12,
|
|
3461
3466
|
fontSize: "1.1em",
|
|
3462
3467
|
fontWeight: 600,
|
|
3463
|
-
color:
|
|
3468
|
+
color: "var(--mantine-color-neutralColor-6)"
|
|
3464
3469
|
},
|
|
3465
3470
|
children
|
|
3466
3471
|
}
|
|
@@ -3474,7 +3479,7 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3474
3479
|
marginBottom: 8,
|
|
3475
3480
|
fontSize: "1em",
|
|
3476
3481
|
fontWeight: 500,
|
|
3477
|
-
color:
|
|
3482
|
+
color: "var(--mantine-color-neutralColor-6)"
|
|
3478
3483
|
},
|
|
3479
3484
|
children
|
|
3480
3485
|
}
|
|
@@ -3485,7 +3490,8 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3485
3490
|
...props,
|
|
3486
3491
|
style: {
|
|
3487
3492
|
margin: "8px 0",
|
|
3488
|
-
lineHeight: 1.6
|
|
3493
|
+
lineHeight: 1.6,
|
|
3494
|
+
color: "var(--mantine-color-neutralColor-8)"
|
|
3489
3495
|
},
|
|
3490
3496
|
children
|
|
3491
3497
|
}
|
|
@@ -3510,11 +3516,11 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3510
3516
|
{
|
|
3511
3517
|
...props,
|
|
3512
3518
|
style: {
|
|
3513
|
-
border:
|
|
3519
|
+
border: "1px solid var(--mantine-color-neutralColor-7)",
|
|
3514
3520
|
padding: "8px 12px",
|
|
3515
3521
|
fontWeight: 600,
|
|
3516
3522
|
textAlign: "left",
|
|
3517
|
-
backgroundColor:
|
|
3523
|
+
backgroundColor: "var(--mantine-color-neutralColor-5)"
|
|
3518
3524
|
},
|
|
3519
3525
|
children
|
|
3520
3526
|
}
|
|
@@ -3524,7 +3530,7 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3524
3530
|
{
|
|
3525
3531
|
...props,
|
|
3526
3532
|
style: {
|
|
3527
|
-
border:
|
|
3533
|
+
border: "1px solid var(--mantine-color-neutralColor-7)",
|
|
3528
3534
|
padding: "8px 12px",
|
|
3529
3535
|
textAlign: "left"
|
|
3530
3536
|
},
|
|
@@ -3538,10 +3544,9 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3538
3544
|
] });
|
|
3539
3545
|
}
|
|
3540
3546
|
function UserMessage({ message, sender }) {
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { c:
|
|
3544
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { c: theme.text.overPicture, mt: 10, sx: { wordBreak: "break-all" }, children: message }, message)
|
|
3547
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(core.Box, { w: "fit-content", bg: "neutralColor.6", sx: { borderRadius: 16 }, py: 12, px: 16, mb: 32, children: [
|
|
3548
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { c: "neutralColor.8", fz: 12, children: sender }),
|
|
3549
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { c: "neutralColor.8", mt: 10, sx: { wordBreak: "break-all" }, children: message }, message)
|
|
3545
3550
|
] });
|
|
3546
3551
|
}
|
|
3547
3552
|
function CardHero({ title, description, tag, pictogram: Pictogram, active, onClick, cornerIcon }) {
|
|
@@ -4675,11 +4680,11 @@ const CommandItem = ({
|
|
|
4675
4680
|
px: 12,
|
|
4676
4681
|
py: 8,
|
|
4677
4682
|
align: "center",
|
|
4678
|
-
bg: isSelected
|
|
4683
|
+
bg: isSelected || hovered ? "var(--mantine-color-neutralColor-2)" : "var(--mantine-color-neutralColor-5)",
|
|
4679
4684
|
gap: 14,
|
|
4680
4685
|
style: {
|
|
4681
4686
|
cursor: "pointer",
|
|
4682
|
-
outline:
|
|
4687
|
+
outline: "none",
|
|
4683
4688
|
transition: "all 0.2s ease",
|
|
4684
4689
|
transform: hovered || isSelected ? "translateY(-1px)" : "translateY(0)",
|
|
4685
4690
|
boxShadow: hovered || isSelected ? "0 4px 12px rgba(0, 0, 0, 0.15)" : "none"
|
|
@@ -4688,10 +4693,10 @@ const CommandItem = ({
|
|
|
4688
4693
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 26, color: "secondary" }),
|
|
4689
4694
|
/* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { gap: 0, children: [
|
|
4690
4695
|
/* @__PURE__ */ jsxRuntime.jsxs(Flex, { align: "center", gap: 6, children: [
|
|
4691
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { c:
|
|
4692
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Badge, { size: "sm", fw: 300, c: theme.colors.focus, bg:
|
|
4696
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { c: "neutralColor.8", children: name }),
|
|
4697
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Badge, { size: "sm", fw: 300, c: theme.colors.focus, bg: "accent.7", children: points > 0 ? `${points} AMP's` : "Free" })
|
|
4693
4698
|
] }),
|
|
4694
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12, c:
|
|
4699
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12, c: "neutralColor.7", children: description })
|
|
4695
4700
|
] })
|
|
4696
4701
|
]
|
|
4697
4702
|
}
|
|
@@ -4957,7 +4962,7 @@ function FloatingInput({
|
|
|
4957
4962
|
core.Box,
|
|
4958
4963
|
{
|
|
4959
4964
|
p: 16,
|
|
4960
|
-
bg:
|
|
4965
|
+
bg: "neutralColor.2",
|
|
4961
4966
|
w: 340,
|
|
4962
4967
|
pos: "absolute",
|
|
4963
4968
|
left: "50%",
|
|
@@ -4973,7 +4978,7 @@ function FloatingInput({
|
|
|
4973
4978
|
children: [
|
|
4974
4979
|
filteredCommands.length !== 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4975
4980
|
/* @__PURE__ */ jsxRuntime.jsxs(Flex, { mb: 20, align: "center", justify: "space-between", children: [
|
|
4976
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12, c:
|
|
4981
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12, c: "neutralColor.8", children: "Commands" }),
|
|
4977
4982
|
/* @__PURE__ */ jsxRuntime.jsx(UsersSolid.EllipsisVSolid, { color: "secondary" })
|
|
4978
4983
|
] }),
|
|
4979
4984
|
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12, c: theme.colors.focus, children: oracleModel }),
|
|
@@ -5991,13 +5996,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
5991
5996
|
}
|
|
5992
5997
|
);
|
|
5993
5998
|
}
|
|
5994
|
-
const MainAction = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5995
|
-
const Header$1 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5996
|
-
const Content = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5999
|
+
const MainAction = react$1.lazy(() => Promise.resolve().then(() => require("./index-wbesxk1o.cjs")));
|
|
6000
|
+
const Header$1 = react$1.lazy(() => Promise.resolve().then(() => require("./index-W8LiSKfV.cjs")));
|
|
6001
|
+
const Content = react$1.lazy(() => Promise.resolve().then(() => require("./index-DEb3PU0a.cjs")));
|
|
5997
6002
|
const Map = react$1.lazy(() => Promise.resolve().then(() => require("./index-D4PsPquZ.cjs")));
|
|
5998
6003
|
const CustomContent = react$1.lazy(() => Promise.resolve().then(() => require("./index-ByrCNpS2.cjs")));
|
|
5999
|
-
const Assets = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6000
|
-
const Actions = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6004
|
+
const Assets = react$1.lazy(() => Promise.resolve().then(() => require("./index-ovSIwiD8.cjs")));
|
|
6005
|
+
const Actions = react$1.lazy(() => Promise.resolve().then(() => require("./index-BUqAh_QT.cjs")));
|
|
6001
6006
|
const HOVER_BORDER_WIDTH = 1;
|
|
6002
6007
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
6003
6008
|
const wrapperRef = react$1.useRef(null);
|
|
@@ -11288,4 +11293,4 @@ exports.UserMessage = UserMessage;
|
|
|
11288
11293
|
exports.WorkspaceModal = WorkspaceModal;
|
|
11289
11294
|
exports.cutText = cutText;
|
|
11290
11295
|
exports.isValidClick = isValidClick;
|
|
11291
|
-
//# sourceMappingURL=components-
|
|
11296
|
+
//# sourceMappingURL=components-kyZV4xKe.cjs.map
|