@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
|
@@ -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-B3UsRV_8.cjs")));
|
|
802
|
+
const Footer = react$1.lazy(() => Promise.resolve().then(() => require("./index-DX1KrNFO.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-CEnAOLa3.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-C9TPn4gB.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
|
] }) })
|
|
@@ -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),
|
|
@@ -2647,7 +2640,6 @@ function AppShellNavigation({
|
|
|
2647
2640
|
}) {
|
|
2648
2641
|
const [isNavbarNotCollapsed, { toggle: toggleNavbar }] = hooks.useDisclosure(true);
|
|
2649
2642
|
const [asideWidth, setAsideWidth] = react$1.useState(450);
|
|
2650
|
-
const theme = useUITheme.useUITheme();
|
|
2651
2643
|
const [isSplitResizing, setIsSplitResizing] = react$1.useState(false);
|
|
2652
2644
|
const isSplitResizingRef = react$1.useRef(false);
|
|
2653
2645
|
const mainContainerRef = react$1.useRef(null);
|
|
@@ -2773,14 +2765,14 @@ function AppShellNavigation({
|
|
|
2773
2765
|
withBorder: false,
|
|
2774
2766
|
styles: {
|
|
2775
2767
|
navbar: {
|
|
2776
|
-
background:
|
|
2768
|
+
background: "var(--mantine-color-neutralColor-4)",
|
|
2777
2769
|
transition: isNavbarResizing ? "none" : "width 0.3s ease"
|
|
2778
2770
|
},
|
|
2779
2771
|
aside: {
|
|
2780
|
-
background:
|
|
2772
|
+
background: "var(--mantine-color-neutralColor-4)"
|
|
2781
2773
|
}
|
|
2782
2774
|
},
|
|
2783
|
-
bg:
|
|
2775
|
+
bg: "neutralColor.2",
|
|
2784
2776
|
navbar: {
|
|
2785
2777
|
width: isNavbarNotCollapsed ? navbarWidth : 56,
|
|
2786
2778
|
breakpoint: "sm"
|
|
@@ -2799,7 +2791,7 @@ function AppShellNavigation({
|
|
|
2799
2791
|
right: 0,
|
|
2800
2792
|
h: "100%",
|
|
2801
2793
|
pos: "absolute",
|
|
2802
|
-
bg: isNavbarResizing ?
|
|
2794
|
+
bg: isNavbarResizing ? "accent.5" : "transparent",
|
|
2803
2795
|
sx: {
|
|
2804
2796
|
zIndex: 2,
|
|
2805
2797
|
cursor: "col-resize",
|
|
@@ -2809,17 +2801,17 @@ function AppShellNavigation({
|
|
|
2809
2801
|
}
|
|
2810
2802
|
),
|
|
2811
2803
|
/* @__PURE__ */ jsxRuntime.jsxs(Flex, { style: { height: "100%" }, children: [
|
|
2812
|
-
/* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { p: 8, w: 56, justify: "space-between", h: "100%", bg:
|
|
2804
|
+
/* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { p: 8, w: 56, justify: "space-between", h: "100%", bg: "neutralColor.2", children: [
|
|
2813
2805
|
/* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { align: "center", style: { flex: 1 }, gap: 8, children: [
|
|
2814
2806
|
/* @__PURE__ */ jsxRuntime.jsxs(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, pos: "relative", h: 40, w: 40, onClick: companyIcon.onClick, children: [
|
|
2815
2807
|
typeof companyIcon.icon === "string" ? /* @__PURE__ */ jsxRuntime.jsx(core.Image, { radius: 24, src: companyIcon.icon, w: 32, h: 32 }) : companyIcon.icon,
|
|
2816
2808
|
companyIcon.isSelected && /* @__PURE__ */ jsxRuntime.jsx(SelectedIndicator, {})
|
|
2817
2809
|
] }),
|
|
2818
|
-
avatarIcon && /* @__PURE__ */ jsxRuntime.jsxs(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, pos: "relative", bg:
|
|
2810
|
+
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
2811
|
/* @__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
2812
|
avatarIcon.isSelected && /* @__PURE__ */ jsxRuntime.jsx(SelectedIndicator, {})
|
|
2821
2813
|
] }),
|
|
2822
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Divider, { w: 40, mx: 10, color:
|
|
2814
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Divider, { w: 40, mx: 10, color: "neutralColor.5" }),
|
|
2823
2815
|
temporarySpace && !spaces?.some((space) => space.id === temporarySpace.id) && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2824
2816
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2825
2817
|
SpaceItem,
|
|
@@ -2832,7 +2824,7 @@ function AppShellNavigation({
|
|
|
2832
2824
|
},
|
|
2833
2825
|
temporarySpace.id
|
|
2834
2826
|
),
|
|
2835
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Divider, { w: 40, mx: 10, color:
|
|
2827
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Divider, { w: 40, mx: 10, color: "neutralColor.5" })
|
|
2836
2828
|
] }),
|
|
2837
2829
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2838
2830
|
core.ScrollArea,
|
|
@@ -2852,18 +2844,18 @@ function AppShellNavigation({
|
|
|
2852
2844
|
}
|
|
2853
2845
|
)
|
|
2854
2846
|
] }),
|
|
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:
|
|
2847
|
+
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" }) }),
|
|
2848
|
+
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
2849
|
/* @__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:
|
|
2850
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Divider, { w: 40, mx: 10, color: "neutralColor.5" }),
|
|
2851
|
+
/* @__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
2852
|
] })
|
|
2861
2853
|
] }),
|
|
2862
2854
|
isAiOpened && isNavbarNotCollapsed && aiNavbarContent,
|
|
2863
2855
|
isNavbarNotCollapsed && !isAiOpened && /* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { justify: "space-between", w: "100%", pt: 16, pb: 10, px: 12, children: [
|
|
2864
2856
|
/* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { gap: 5, children: [
|
|
2865
2857
|
/* @__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:
|
|
2858
|
+
/* @__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
2859
|
isAiBtnVisible && !isAiOpened && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2868
2860
|
core.Center,
|
|
2869
2861
|
{
|
|
@@ -2871,9 +2863,9 @@ function AppShellNavigation({
|
|
|
2871
2863
|
cursor: "pointer",
|
|
2872
2864
|
borderRadius: 8,
|
|
2873
2865
|
transition: "background 0.15s",
|
|
2874
|
-
background:
|
|
2866
|
+
background: "var(--mantine-color-neutralColor-5)",
|
|
2875
2867
|
"&:hover": {
|
|
2876
|
-
background:
|
|
2868
|
+
background: "var(--mantine-color-neutralColor-6)"
|
|
2877
2869
|
}
|
|
2878
2870
|
},
|
|
2879
2871
|
p: 4,
|
|
@@ -2920,7 +2912,7 @@ function AppShellNavigation({
|
|
|
2920
2912
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2921
2913
|
core.Box,
|
|
2922
2914
|
{
|
|
2923
|
-
bg:
|
|
2915
|
+
bg: "neutralColor.5",
|
|
2924
2916
|
style: {
|
|
2925
2917
|
width: getCanvasWidth(),
|
|
2926
2918
|
minWidth: shouldShowCanvas && canvasMode === "split" ? CANVAS_MIN_WIDTH : void 0,
|
|
@@ -2930,7 +2922,7 @@ function AppShellNavigation({
|
|
|
2930
2922
|
height: "100%",
|
|
2931
2923
|
transition: isSplitResizing ? "none" : "width 0.3s ease, opacity 0.2s ease",
|
|
2932
2924
|
opacity: shouldShowCanvas ? 1 : 0,
|
|
2933
|
-
borderLeft:
|
|
2925
|
+
borderLeft: "1px solid var(--mantine-color-neutralColor-6)"
|
|
2934
2926
|
},
|
|
2935
2927
|
children: canvasContent
|
|
2936
2928
|
}
|
|
@@ -2940,7 +2932,7 @@ function AppShellNavigation({
|
|
|
2940
2932
|
{
|
|
2941
2933
|
w: 4,
|
|
2942
2934
|
h: "100%",
|
|
2943
|
-
bg: isSplitResizing ?
|
|
2935
|
+
bg: isSplitResizing ? "accent.5" : "transparent",
|
|
2944
2936
|
sx: {
|
|
2945
2937
|
cursor: "col-resize",
|
|
2946
2938
|
flexShrink: 0,
|
|
@@ -3403,18 +3395,17 @@ function CardHeader({ left, right }) {
|
|
|
3403
3395
|
] }) });
|
|
3404
3396
|
}
|
|
3405
3397
|
function OracleMessage({ oracleName, message }) {
|
|
3406
|
-
const theme = useUITheme.useUITheme();
|
|
3407
3398
|
return /* @__PURE__ */ jsxRuntime.jsxs(core.Box, { mb: 32, children: [
|
|
3408
3399
|
/* @__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:
|
|
3400
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12, c: "accent.5", children: oracleName || "Oracle" }),
|
|
3401
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Badge, { tt: "capitalize", c: "accent.5", size: "md", bg: "accent.0", children: "Oracle" })
|
|
3411
3402
|
] }),
|
|
3412
3403
|
/* @__PURE__ */ jsxRuntime.jsx(core.Box, { mt: 12, mb: 4, sx: { borderRadius: 16 }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3413
3404
|
Markdown,
|
|
3414
3405
|
{
|
|
3415
3406
|
remarkPlugins: [remarkGfm],
|
|
3416
3407
|
components: {
|
|
3417
|
-
a: ({ children, href }) => /* @__PURE__ */ jsxRuntime.jsx("a", { href, style: { color:
|
|
3408
|
+
a: ({ children, href }) => /* @__PURE__ */ jsxRuntime.jsx("a", { href, style: { color: "var(--mantine-color-accent-5)", textDecoration: "underline" }, children }),
|
|
3418
3409
|
ul: ({ children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3419
3410
|
"ul",
|
|
3420
3411
|
{
|
|
@@ -3460,7 +3451,7 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3460
3451
|
marginBottom: 12,
|
|
3461
3452
|
fontSize: "1.1em",
|
|
3462
3453
|
fontWeight: 600,
|
|
3463
|
-
color:
|
|
3454
|
+
color: "var(--mantine-color-neutralColor-6)"
|
|
3464
3455
|
},
|
|
3465
3456
|
children
|
|
3466
3457
|
}
|
|
@@ -3474,7 +3465,7 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3474
3465
|
marginBottom: 8,
|
|
3475
3466
|
fontSize: "1em",
|
|
3476
3467
|
fontWeight: 500,
|
|
3477
|
-
color:
|
|
3468
|
+
color: "var(--mantine-color-neutralColor-6)"
|
|
3478
3469
|
},
|
|
3479
3470
|
children
|
|
3480
3471
|
}
|
|
@@ -3485,7 +3476,8 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3485
3476
|
...props,
|
|
3486
3477
|
style: {
|
|
3487
3478
|
margin: "8px 0",
|
|
3488
|
-
lineHeight: 1.6
|
|
3479
|
+
lineHeight: 1.6,
|
|
3480
|
+
color: "var(--mantine-color-neutralColor-8)"
|
|
3489
3481
|
},
|
|
3490
3482
|
children
|
|
3491
3483
|
}
|
|
@@ -3510,11 +3502,11 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3510
3502
|
{
|
|
3511
3503
|
...props,
|
|
3512
3504
|
style: {
|
|
3513
|
-
border:
|
|
3505
|
+
border: "1px solid var(--mantine-color-neutralColor-7)",
|
|
3514
3506
|
padding: "8px 12px",
|
|
3515
3507
|
fontWeight: 600,
|
|
3516
3508
|
textAlign: "left",
|
|
3517
|
-
backgroundColor:
|
|
3509
|
+
backgroundColor: "var(--mantine-color-neutralColor-5)"
|
|
3518
3510
|
},
|
|
3519
3511
|
children
|
|
3520
3512
|
}
|
|
@@ -3524,7 +3516,7 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3524
3516
|
{
|
|
3525
3517
|
...props,
|
|
3526
3518
|
style: {
|
|
3527
|
-
border:
|
|
3519
|
+
border: "1px solid var(--mantine-color-neutralColor-7)",
|
|
3528
3520
|
padding: "8px 12px",
|
|
3529
3521
|
textAlign: "left"
|
|
3530
3522
|
},
|
|
@@ -3538,10 +3530,9 @@ function OracleMessage({ oracleName, message }) {
|
|
|
3538
3530
|
] });
|
|
3539
3531
|
}
|
|
3540
3532
|
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)
|
|
3533
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(core.Box, { w: "fit-content", bg: "neutralColor.6", sx: { borderRadius: 16 }, py: 12, px: 16, mb: 32, children: [
|
|
3534
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { c: "neutralColor.8", fz: 12, children: sender }),
|
|
3535
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { c: "neutralColor.8", mt: 10, sx: { wordBreak: "break-all" }, children: message }, message)
|
|
3545
3536
|
] });
|
|
3546
3537
|
}
|
|
3547
3538
|
function CardHero({ title, description, tag, pictogram: Pictogram, active, onClick, cornerIcon }) {
|
|
@@ -4675,11 +4666,11 @@ const CommandItem = ({
|
|
|
4675
4666
|
px: 12,
|
|
4676
4667
|
py: 8,
|
|
4677
4668
|
align: "center",
|
|
4678
|
-
bg: isSelected
|
|
4669
|
+
bg: isSelected || hovered ? "var(--mantine-color-neutralColor-2)" : "var(--mantine-color-neutralColor-5)",
|
|
4679
4670
|
gap: 14,
|
|
4680
4671
|
style: {
|
|
4681
4672
|
cursor: "pointer",
|
|
4682
|
-
outline:
|
|
4673
|
+
outline: "none",
|
|
4683
4674
|
transition: "all 0.2s ease",
|
|
4684
4675
|
transform: hovered || isSelected ? "translateY(-1px)" : "translateY(0)",
|
|
4685
4676
|
boxShadow: hovered || isSelected ? "0 4px 12px rgba(0, 0, 0, 0.15)" : "none"
|
|
@@ -4688,10 +4679,10 @@ const CommandItem = ({
|
|
|
4688
4679
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 26, color: "secondary" }),
|
|
4689
4680
|
/* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { gap: 0, children: [
|
|
4690
4681
|
/* @__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:
|
|
4682
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { c: "neutralColor.8", children: name }),
|
|
4683
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Badge, { size: "sm", fw: 300, c: theme.colors.focus, bg: "accent.7", children: points > 0 ? `${points} AMP's` : "Free" })
|
|
4693
4684
|
] }),
|
|
4694
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12, c:
|
|
4685
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12, c: "neutralColor.7", children: description })
|
|
4695
4686
|
] })
|
|
4696
4687
|
]
|
|
4697
4688
|
}
|
|
@@ -4957,7 +4948,7 @@ function FloatingInput({
|
|
|
4957
4948
|
core.Box,
|
|
4958
4949
|
{
|
|
4959
4950
|
p: 16,
|
|
4960
|
-
bg:
|
|
4951
|
+
bg: "neutralColor.2",
|
|
4961
4952
|
w: 340,
|
|
4962
4953
|
pos: "absolute",
|
|
4963
4954
|
left: "50%",
|
|
@@ -4973,7 +4964,7 @@ function FloatingInput({
|
|
|
4973
4964
|
children: [
|
|
4974
4965
|
filteredCommands.length !== 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4975
4966
|
/* @__PURE__ */ jsxRuntime.jsxs(Flex, { mb: 20, align: "center", justify: "space-between", children: [
|
|
4976
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12, c:
|
|
4967
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12, c: "neutralColor.8", children: "Commands" }),
|
|
4977
4968
|
/* @__PURE__ */ jsxRuntime.jsx(UsersSolid.EllipsisVSolid, { color: "secondary" })
|
|
4978
4969
|
] }),
|
|
4979
4970
|
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 12, c: theme.colors.focus, children: oracleModel }),
|
|
@@ -5991,13 +5982,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
5991
5982
|
}
|
|
5992
5983
|
);
|
|
5993
5984
|
}
|
|
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-
|
|
5985
|
+
const MainAction = react$1.lazy(() => Promise.resolve().then(() => require("./index-BwFcOXoo.cjs")));
|
|
5986
|
+
const Header$1 = react$1.lazy(() => Promise.resolve().then(() => require("./index-8mrl_91C.cjs")));
|
|
5987
|
+
const Content = react$1.lazy(() => Promise.resolve().then(() => require("./index-CWtfpAdi.cjs")));
|
|
5997
5988
|
const Map = react$1.lazy(() => Promise.resolve().then(() => require("./index-D4PsPquZ.cjs")));
|
|
5998
5989
|
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-
|
|
5990
|
+
const Assets = react$1.lazy(() => Promise.resolve().then(() => require("./index-CnUrZJ6d.cjs")));
|
|
5991
|
+
const Actions = react$1.lazy(() => Promise.resolve().then(() => require("./index-DPdnPYOK.cjs")));
|
|
6001
5992
|
const HOVER_BORDER_WIDTH = 1;
|
|
6002
5993
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
6003
5994
|
const wrapperRef = react$1.useRef(null);
|
|
@@ -11288,4 +11279,4 @@ exports.UserMessage = UserMessage;
|
|
|
11288
11279
|
exports.WorkspaceModal = WorkspaceModal;
|
|
11289
11280
|
exports.cutText = cutText;
|
|
11290
11281
|
exports.isValidClick = isValidClick;
|
|
11291
|
-
//# sourceMappingURL=components-
|
|
11282
|
+
//# sourceMappingURL=components-DH1wUH8v.cjs.map
|