@ixo/ui 0.0.36 → 0.0.37
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 +46 -46
- package/dist/{UsersSolid-BAU7PbE4.js → UsersSolid-C6NkfomI.js} +62 -43
- package/dist/UsersSolid-C6NkfomI.js.map +1 -0
- package/dist/{UsersSolid-D60imcQv.cjs → UsersSolid-DjJvkV7c.cjs} +20 -1
- package/dist/UsersSolid-DjJvkV7c.cjs.map +1 -0
- package/dist/components/AIChatToolbar/index.d.ts +4 -1
- package/dist/components/AIChatToolbar/index.d.ts.map +1 -1
- package/dist/components/AppShellNavigation/index.d.ts +6 -1
- package/dist/components/AppShellNavigation/index.d.ts.map +1 -1
- package/dist/{components-B1a2iVqu.js → components-CzYIAVLV.js} +178 -28
- package/dist/{components-B1a2iVqu.js.map → components-CzYIAVLV.js.map} +1 -1
- package/dist/{components-DClyFU-M.cjs → components-DN1Oa-f6.cjs} +178 -28
- package/dist/{components-DClyFU-M.cjs.map → components-DN1Oa-f6.cjs.map} +1 -1
- package/dist/export/components.cjs +1 -1
- package/dist/export/components.mjs +1 -1
- package/dist/export/hooks.cjs +5 -1
- package/dist/export/hooks.cjs.map +1 -1
- package/dist/export/hooks.d.ts +1 -0
- package/dist/export/hooks.d.ts.map +1 -1
- package/dist/export/hooks.mjs +5 -1
- package/dist/export/icons/index.cjs +2 -1
- package/dist/export/icons/index.cjs.map +1 -1
- package/dist/export/icons/index.mjs +45 -44
- package/dist/export/types.d.ts +1 -0
- package/dist/export/types.d.ts.map +1 -1
- package/dist/hooks/useLocalStorage.d.ts +20 -0
- package/dist/hooks/useLocalStorage.d.ts.map +1 -0
- package/dist/icons/Canvas.d.ts +4 -0
- package/dist/icons/Canvas.d.ts.map +1 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/{index-D2vpQrea.js → index-B3L8bASL.js} +2 -2
- package/dist/{index-D2vpQrea.js.map → index-B3L8bASL.js.map} +1 -1
- package/dist/{index-cb7wQOdp.cjs → index-BFLvKv53.cjs} +2 -2
- package/dist/{index-cb7wQOdp.cjs.map → index-BFLvKv53.cjs.map} +1 -1
- package/dist/{index-BBHzZvIm.js → index-BxdS7Log.js} +2 -2
- package/dist/{index-BBHzZvIm.js.map → index-BxdS7Log.js.map} +1 -1
- package/dist/{index-BPMwSQiu.cjs → index-C1jkvV-X.cjs} +2 -2
- package/dist/{index-BPMwSQiu.cjs.map → index-C1jkvV-X.cjs.map} +1 -1
- package/dist/{index-CkY33lka.js → index-CPagTbY2.js} +3 -3
- package/dist/{index-CkY33lka.js.map → index-CPagTbY2.js.map} +1 -1
- package/dist/{index-BCq1MsXT.cjs → index-CakMAOX7.cjs} +2 -2
- package/dist/{index-BCq1MsXT.cjs.map → index-CakMAOX7.cjs.map} +1 -1
- package/dist/{index-CgY82myI.js → index-CcmQ18nv.js} +2 -2
- package/dist/{index-CgY82myI.js.map → index-CcmQ18nv.js.map} +1 -1
- package/dist/{index-BSG0zFC9.cjs → index-CdKYqXBt.cjs} +2 -2
- package/dist/{index-BSG0zFC9.cjs.map → index-CdKYqXBt.cjs.map} +1 -1
- package/dist/{index-eldkvceu.cjs → index-Ch5hR4aV.cjs} +2 -2
- package/dist/{index-eldkvceu.cjs.map → index-Ch5hR4aV.cjs.map} +1 -1
- package/dist/{index-CrLkPKdH.js → index-Cjz-hgYn.js} +2 -2
- package/dist/{index-CrLkPKdH.js.map → index-Cjz-hgYn.js.map} +1 -1
- package/dist/{index-B9pVBHoG.cjs → index-Cp1GJZKj.cjs} +3 -3
- package/dist/{index-B9pVBHoG.cjs.map → index-Cp1GJZKj.cjs.map} +1 -1
- package/dist/{index-BnNEw5sb.cjs → index-CpWsRlKO.cjs} +3 -3
- package/dist/{index-BnNEw5sb.cjs.map → index-CpWsRlKO.cjs.map} +1 -1
- package/dist/{index-DIjbP65y.cjs → index-CwSS7HIf.cjs} +2 -2
- package/dist/{index-DIjbP65y.cjs.map → index-CwSS7HIf.cjs.map} +1 -1
- package/dist/{index-D0Hsuk8i.js → index-DQlyhNQS.js} +2 -2
- package/dist/{index-D0Hsuk8i.js.map → index-DQlyhNQS.js.map} +1 -1
- package/dist/{index-DAeeijml.cjs → index-DXySGWRo.cjs} +2 -2
- package/dist/{index-DAeeijml.cjs.map → index-DXySGWRo.cjs.map} +1 -1
- package/dist/{index-CHaUG4pj.js → index-F9Irhjcn.js} +3 -3
- package/dist/{index-CHaUG4pj.js.map → index-F9Irhjcn.js.map} +1 -1
- package/dist/{index-Dzht1xdr.js → index-FtJpq2EO.js} +2 -2
- package/dist/{index-Dzht1xdr.js.map → index-FtJpq2EO.js.map} +1 -1
- package/dist/{index-BUOaLr6a.js → index-kDLY4FBs.js} +3 -3
- package/dist/{index-BUOaLr6a.js.map → index-kDLY4FBs.js.map} +1 -1
- package/dist/{index-CfGbTIXG.cjs → index-tAWB4Iqa.cjs} +3 -3
- package/dist/{index-CfGbTIXG.cjs.map → index-tAWB4Iqa.cjs.map} +1 -1
- package/dist/{index-NInTEDOl.js → index-vNRsVBzW.js} +2 -2
- package/dist/{index-NInTEDOl.js.map → index-vNRsVBzW.js.map} +1 -1
- package/dist/types/canvas.d.ts +22 -0
- package/dist/types/canvas.d.ts.map +1 -0
- package/dist/useEventSubscribe-B019T27n.cjs +95 -0
- package/dist/useEventSubscribe-B019T27n.cjs.map +1 -0
- package/dist/useEventSubscribe-BuXZL79s.js +96 -0
- package/dist/useEventSubscribe-BuXZL79s.js.map +1 -0
- package/package.json +5 -2
- package/dist/UsersSolid-BAU7PbE4.js.map +0 -1
- package/dist/UsersSolid-D60imcQv.cjs.map +0 -1
- package/dist/useEventSubscribe-16wxaghO.js +0 -43
- package/dist/useEventSubscribe-16wxaghO.js.map +0 -1
- package/dist/useEventSubscribe-BTFTMdWH.cjs +0 -42
- package/dist/useEventSubscribe-BTFTMdWH.cjs.map +0 -1
|
@@ -24,7 +24,7 @@ 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-DjJvkV7c.cjs");
|
|
28
28
|
const react$1 = require("react");
|
|
29
29
|
const constants = require("./constants-DFJRYpE2.cjs");
|
|
30
30
|
const core = require("@mantine/core");
|
|
@@ -33,13 +33,13 @@ const reactDom = require("react-dom");
|
|
|
33
33
|
const DOMPurify = require("dompurify");
|
|
34
34
|
const useUITheme = require("./useUITheme-DqgAb7n1.cjs");
|
|
35
35
|
const hooks = require("@mantine/hooks");
|
|
36
|
+
const useEventSubscribe = require("./useEventSubscribe-B019T27n.cjs");
|
|
36
37
|
const Markdown = require("react-markdown");
|
|
37
38
|
const remarkGfm = require("remark-gfm");
|
|
38
39
|
const downshift = require("downshift");
|
|
39
40
|
const reactTinyPopover = require("react-tiny-popover");
|
|
40
41
|
const dayjs = require("dayjs");
|
|
41
42
|
const Blank = require("./Blank-DapEucFF.cjs");
|
|
42
|
-
const useEventSubscribe = require("./useEventSubscribe-BTFTMdWH.cjs");
|
|
43
43
|
const themes = require("./themes-BwGjuKnC.cjs");
|
|
44
44
|
function SlideUpArea({ children, isVisible }) {
|
|
45
45
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -797,8 +797,8 @@ function AccordionTable({
|
|
|
797
797
|
}
|
|
798
798
|
);
|
|
799
799
|
}
|
|
800
|
-
const Header$3 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
801
|
-
const Footer = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
800
|
+
const Header$3 = react$1.lazy(() => Promise.resolve().then(() => require("./index-CpWsRlKO.cjs")));
|
|
801
|
+
const Footer = react$1.lazy(() => Promise.resolve().then(() => require("./index-tAWB4Iqa.cjs")));
|
|
802
802
|
function ActionCard({ header, content, footer, useHoverMode = false }) {
|
|
803
803
|
const hasContent = !!content || !!footer;
|
|
804
804
|
const initialVisibility = footer?.startHidden !== true;
|
|
@@ -882,7 +882,7 @@ function Loader({ size, color = "primary" }) {
|
|
|
882
882
|
}
|
|
883
883
|
const CARD_WIDTH$1 = 350;
|
|
884
884
|
const CARD_HEADER_HEIGHT = 158;
|
|
885
|
-
const Header$2 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
885
|
+
const Header$2 = react$1.lazy(() => Promise.resolve().then(() => require("./index-CdKYqXBt.cjs")));
|
|
886
886
|
function Card({ children, className, contentClassName, roundedBottom, noPadding = false, fullWidth = false, header, wrapperSx, onClick }) {
|
|
887
887
|
const wrapperRef = react$1.useRef(null);
|
|
888
888
|
const handleOnClick = react$1.useCallback(
|
|
@@ -1317,7 +1317,7 @@ function ModalSheet({ isOpen, children, hideHandler, zIndex, onRequestHide, onRe
|
|
|
1317
1317
|
document.body
|
|
1318
1318
|
);
|
|
1319
1319
|
}
|
|
1320
|
-
const Badge = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
1320
|
+
const Badge = react$1.lazy(() => Promise.resolve().then(() => require("./index-Ch5hR4aV.cjs")));
|
|
1321
1321
|
function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide, onRequestShow }) {
|
|
1322
1322
|
const shadowScrollRef = react$1.useRef(null);
|
|
1323
1323
|
const wrapperContentAreaRef = react$1.useRef(null);
|
|
@@ -2125,8 +2125,9 @@ function AIInputBar({ placeholder, icon, disabledInput, disabledButton, valueInp
|
|
|
2125
2125
|
}
|
|
2126
2126
|
);
|
|
2127
2127
|
}
|
|
2128
|
-
function AIChatToolbar({ onClose, onHistoryClick, onPlusClick, onHistoryClose, isHistoryOpened, oracleModel, sessionTitle }) {
|
|
2128
|
+
function AIChatToolbar({ onClose, onHistoryClick, onPlusClick, onHistoryClose, onCanvasCycle, isHistoryOpened, canvasMode = "hidden", oracleModel, sessionTitle }) {
|
|
2129
2129
|
const theme = useUITheme.useUITheme();
|
|
2130
|
+
const canvasActive = canvasMode !== "hidden";
|
|
2130
2131
|
return /* @__PURE__ */ jsxRuntime.jsxs(Flex, { bg: theme.bg.navIconsBg, py: 16, justify: "space-between", align: "center", children: [
|
|
2131
2132
|
/* @__PURE__ */ jsxRuntime.jsxs(Flex, { gap: 6, align: "center", children: [
|
|
2132
2133
|
sessionTitle && /* @__PURE__ */ jsxRuntime.jsx(Typography.Text, { color: "overPicture", size: "s", children: sessionTitle }),
|
|
@@ -2150,6 +2151,17 @@ function AIChatToolbar({ onClose, onHistoryClick, onPlusClick, onHistoryClose, i
|
|
|
2150
2151
|
}
|
|
2151
2152
|
) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2152
2153
|
/* @__PURE__ */ jsxRuntime.jsx(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, onClick: onPlusClick, children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.PlusSolid, { size: 18 }) }),
|
|
2154
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2155
|
+
core.Center,
|
|
2156
|
+
{
|
|
2157
|
+
sx: {
|
|
2158
|
+
cursor: "pointer",
|
|
2159
|
+
borderRadius: 24
|
|
2160
|
+
},
|
|
2161
|
+
onClick: onCanvasCycle,
|
|
2162
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.Canvas, { size: 18, color: canvasActive ? "primary" : void 0 })
|
|
2163
|
+
}
|
|
2164
|
+
),
|
|
2153
2165
|
/* @__PURE__ */ jsxRuntime.jsx(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, onClick: onHistoryClick, children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.HistorySolid, { size: 18 }) }),
|
|
2154
2166
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2155
2167
|
core.Center,
|
|
@@ -2579,6 +2591,8 @@ function SpaceItem({ icon, id, name, selectedSpace, onClick }) {
|
|
|
2579
2591
|
}
|
|
2580
2592
|
);
|
|
2581
2593
|
}
|
|
2594
|
+
const CANVAS_MIN_WIDTH = 350;
|
|
2595
|
+
const CONTENT_MIN_WIDTH = 350;
|
|
2582
2596
|
function AppShellNavigation({
|
|
2583
2597
|
spaces,
|
|
2584
2598
|
pageItem,
|
|
@@ -2604,20 +2618,78 @@ function AppShellNavigation({
|
|
|
2604
2618
|
isAiBtnVisible,
|
|
2605
2619
|
loading,
|
|
2606
2620
|
children,
|
|
2607
|
-
aiNavbarContent
|
|
2621
|
+
aiNavbarContent,
|
|
2622
|
+
canvasContent,
|
|
2623
|
+
canvasMode = "hidden",
|
|
2624
|
+
splitRatio = 0.4,
|
|
2625
|
+
onSplitRatioChange
|
|
2608
2626
|
}) {
|
|
2609
2627
|
const [isNavbarNotCollapsed, { toggle: toggleNavbar }] = hooks.useDisclosure(true);
|
|
2610
2628
|
const [asideWidth, setAsideWidth] = react$1.useState(450);
|
|
2611
2629
|
const theme = useUITheme.useUITheme();
|
|
2612
|
-
const [
|
|
2613
|
-
const
|
|
2614
|
-
const
|
|
2630
|
+
const [isSplitResizing, setIsSplitResizing] = react$1.useState(false);
|
|
2631
|
+
const isSplitResizingRef = react$1.useRef(false);
|
|
2632
|
+
const mainContainerRef = react$1.useRef(null);
|
|
2633
|
+
const isRightPanelOpen = !asideCollapsed && !!right;
|
|
2634
|
+
const shouldShowCanvas = canvasMode !== "hidden" && !isRightPanelOpen;
|
|
2635
|
+
const shouldShowContent = (canvasMode === "hidden" || canvasMode === "split") && !isRightPanelOpen || isRightPanelOpen;
|
|
2636
|
+
const getCanvasWidth = () => {
|
|
2637
|
+
if (!shouldShowCanvas) return "0%";
|
|
2638
|
+
if (canvasMode === "full") return "100%";
|
|
2639
|
+
return `${splitRatio * 100}%`;
|
|
2640
|
+
};
|
|
2641
|
+
const getContentWidth = () => {
|
|
2642
|
+
if (!shouldShowContent) return "0%";
|
|
2643
|
+
if (canvasMode === "hidden" || isRightPanelOpen) return "100%";
|
|
2644
|
+
if (canvasMode === "full") return "0%";
|
|
2645
|
+
return `${(1 - splitRatio) * 100}%`;
|
|
2646
|
+
};
|
|
2647
|
+
const handleSplitMouseMove = react$1.useCallback(
|
|
2648
|
+
(e) => {
|
|
2649
|
+
if (!isSplitResizingRef.current || !mainContainerRef.current) return;
|
|
2650
|
+
const containerRect = mainContainerRef.current.getBoundingClientRect();
|
|
2651
|
+
const containerWidth = containerRect.width;
|
|
2652
|
+
const relativeX = e.clientX - containerRect.left;
|
|
2653
|
+
const minRatio = CANVAS_MIN_WIDTH / containerWidth;
|
|
2654
|
+
const maxRatio = 1 - CONTENT_MIN_WIDTH / containerWidth;
|
|
2655
|
+
const newRatio = Math.min(Math.max(relativeX / containerWidth, minRatio), maxRatio);
|
|
2656
|
+
onSplitRatioChange?.(newRatio);
|
|
2657
|
+
},
|
|
2658
|
+
[onSplitRatioChange]
|
|
2659
|
+
);
|
|
2660
|
+
const handleSplitMouseUp = react$1.useCallback(() => {
|
|
2661
|
+
setIsSplitResizing(false);
|
|
2662
|
+
isSplitResizingRef.current = false;
|
|
2663
|
+
}, []);
|
|
2664
|
+
const handleSplitMouseDown = (e) => {
|
|
2665
|
+
e.preventDefault();
|
|
2666
|
+
setIsSplitResizing(true);
|
|
2667
|
+
isSplitResizingRef.current = true;
|
|
2668
|
+
};
|
|
2615
2669
|
react$1.useEffect(() => {
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2670
|
+
if (isSplitResizing) {
|
|
2671
|
+
document.addEventListener("mousemove", handleSplitMouseMove);
|
|
2672
|
+
document.addEventListener("mouseup", handleSplitMouseUp);
|
|
2673
|
+
document.body.style.cursor = "col-resize";
|
|
2674
|
+
document.body.style.userSelect = "none";
|
|
2675
|
+
} else {
|
|
2676
|
+
document.removeEventListener("mousemove", handleSplitMouseMove);
|
|
2677
|
+
document.removeEventListener("mouseup", handleSplitMouseUp);
|
|
2678
|
+
document.body.style.cursor = "";
|
|
2679
|
+
document.body.style.userSelect = "";
|
|
2619
2680
|
}
|
|
2620
|
-
|
|
2681
|
+
return () => {
|
|
2682
|
+
document.removeEventListener("mousemove", handleSplitMouseMove);
|
|
2683
|
+
document.removeEventListener("mouseup", handleSplitMouseUp);
|
|
2684
|
+
document.body.style.cursor = "";
|
|
2685
|
+
document.body.style.userSelect = "";
|
|
2686
|
+
};
|
|
2687
|
+
}, [isSplitResizing, handleSplitMouseMove, handleSplitMouseUp]);
|
|
2688
|
+
const [navbarWidthAiOpen, setNavbarWidthAiOpen] = useEventSubscribe.useLocalStorage("navbar-width-ai-open", 450);
|
|
2689
|
+
const [navbarWidthAiClosed, setNavbarWidthAiClosed] = useEventSubscribe.useLocalStorage("navbar-width-ai-closed", 300);
|
|
2690
|
+
const navbarWidth = isAiOpened ? navbarWidthAiOpen : navbarWidthAiClosed;
|
|
2691
|
+
const [isNavbarResizing, setIsNavbarResizing] = react$1.useState(false);
|
|
2692
|
+
const isNavbarResizingRef = react$1.useRef(false);
|
|
2621
2693
|
function clearNavbarListeners() {
|
|
2622
2694
|
document.removeEventListener("mousemove", handleNavbarMouseMove);
|
|
2623
2695
|
document.removeEventListener("mouseup", handleNavbarMouseUp);
|
|
@@ -2630,7 +2702,11 @@ function AppShellNavigation({
|
|
|
2630
2702
|
const minWidth = isAiOpened ? 450 : 300;
|
|
2631
2703
|
const maxWidth = 700;
|
|
2632
2704
|
const newWidth = Math.min(Math.max(e.clientX, minWidth), maxWidth);
|
|
2633
|
-
|
|
2705
|
+
if (isAiOpened) {
|
|
2706
|
+
setNavbarWidthAiOpen(newWidth);
|
|
2707
|
+
} else {
|
|
2708
|
+
setNavbarWidthAiClosed(newWidth);
|
|
2709
|
+
}
|
|
2634
2710
|
},
|
|
2635
2711
|
[isAiOpened]
|
|
2636
2712
|
);
|
|
@@ -2658,15 +2734,17 @@ function AppShellNavigation({
|
|
|
2658
2734
|
const handleWindowResize = () => {
|
|
2659
2735
|
const maxWidth = 700;
|
|
2660
2736
|
const minWidth = isAiOpened ? 450 : 300;
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2737
|
+
const currentWidth = isAiOpened ? navbarWidthAiOpen : navbarWidthAiClosed;
|
|
2738
|
+
const setter = isAiOpened ? setNavbarWidthAiOpen : setNavbarWidthAiClosed;
|
|
2739
|
+
if (currentWidth > maxWidth) {
|
|
2740
|
+
setter(maxWidth);
|
|
2741
|
+
} else if (currentWidth < minWidth) {
|
|
2742
|
+
setter(minWidth);
|
|
2665
2743
|
}
|
|
2666
2744
|
};
|
|
2667
2745
|
window.addEventListener("resize", handleWindowResize);
|
|
2668
2746
|
return () => window.removeEventListener("resize", handleWindowResize);
|
|
2669
|
-
}, [
|
|
2747
|
+
}, [navbarWidthAiOpen, navbarWidthAiClosed, isAiOpened]);
|
|
2670
2748
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2671
2749
|
core.AppShell,
|
|
2672
2750
|
{
|
|
@@ -2792,7 +2870,79 @@ function AppShellNavigation({
|
|
|
2792
2870
|
] })
|
|
2793
2871
|
] })
|
|
2794
2872
|
] }) }),
|
|
2795
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2873
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2874
|
+
core.AppShell.Main,
|
|
2875
|
+
{
|
|
2876
|
+
style: {
|
|
2877
|
+
display: "flex",
|
|
2878
|
+
flexDirection: "column",
|
|
2879
|
+
height: "100vh",
|
|
2880
|
+
overflow: "hidden"
|
|
2881
|
+
},
|
|
2882
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2883
|
+
Flex,
|
|
2884
|
+
{
|
|
2885
|
+
ref: mainContainerRef,
|
|
2886
|
+
style: {
|
|
2887
|
+
flex: 1,
|
|
2888
|
+
height: "100%",
|
|
2889
|
+
overflow: "hidden",
|
|
2890
|
+
position: "relative"
|
|
2891
|
+
},
|
|
2892
|
+
children: [
|
|
2893
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2894
|
+
core.Box,
|
|
2895
|
+
{
|
|
2896
|
+
bg: theme.bg.navIconsBg,
|
|
2897
|
+
style: {
|
|
2898
|
+
width: getCanvasWidth(),
|
|
2899
|
+
minWidth: shouldShowCanvas && canvasMode === "split" ? CANVAS_MIN_WIDTH : void 0,
|
|
2900
|
+
display: shouldShowCanvas ? "flex" : "none",
|
|
2901
|
+
flexDirection: "column",
|
|
2902
|
+
overflow: "hidden",
|
|
2903
|
+
height: "100%",
|
|
2904
|
+
transition: isSplitResizing ? "none" : "width 0.3s ease, opacity 0.2s ease",
|
|
2905
|
+
opacity: shouldShowCanvas ? 1 : 0,
|
|
2906
|
+
borderLeft: `1px solid ${theme.neutral.transparent10}`
|
|
2907
|
+
},
|
|
2908
|
+
children: canvasContent
|
|
2909
|
+
}
|
|
2910
|
+
),
|
|
2911
|
+
canvasMode === "split" && !isRightPanelOpen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2912
|
+
core.Box,
|
|
2913
|
+
{
|
|
2914
|
+
w: 4,
|
|
2915
|
+
h: "100%",
|
|
2916
|
+
bg: isSplitResizing ? theme.colors.focus : "transparent",
|
|
2917
|
+
sx: {
|
|
2918
|
+
cursor: "col-resize",
|
|
2919
|
+
flexShrink: 0,
|
|
2920
|
+
transition: "background-color 0.2s ease"
|
|
2921
|
+
},
|
|
2922
|
+
onMouseDown: handleSplitMouseDown
|
|
2923
|
+
}
|
|
2924
|
+
),
|
|
2925
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2926
|
+
core.Box,
|
|
2927
|
+
{
|
|
2928
|
+
style: {
|
|
2929
|
+
width: getContentWidth(),
|
|
2930
|
+
minWidth: shouldShowContent && canvasMode === "split" ? CONTENT_MIN_WIDTH : void 0,
|
|
2931
|
+
display: shouldShowContent ? "flex" : "none",
|
|
2932
|
+
flexDirection: "column",
|
|
2933
|
+
overflow: "auto",
|
|
2934
|
+
height: "100%",
|
|
2935
|
+
transition: isSplitResizing ? "none" : "width 0.3s ease, opacity 0.2s ease",
|
|
2936
|
+
opacity: shouldShowContent ? 1 : 0
|
|
2937
|
+
},
|
|
2938
|
+
children
|
|
2939
|
+
}
|
|
2940
|
+
)
|
|
2941
|
+
]
|
|
2942
|
+
}
|
|
2943
|
+
)
|
|
2944
|
+
}
|
|
2945
|
+
),
|
|
2796
2946
|
/* @__PURE__ */ jsxRuntime.jsx(AsideResizable, { asideCollapsed, onAsideToggle, onMaxExpand, width: asideWidth, onWidthChange: setAsideWidth, children: right })
|
|
2797
2947
|
]
|
|
2798
2948
|
}
|
|
@@ -5814,13 +5964,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
5814
5964
|
}
|
|
5815
5965
|
);
|
|
5816
5966
|
}
|
|
5817
|
-
const MainAction = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5818
|
-
const Header$1 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5819
|
-
const Content = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5967
|
+
const MainAction = react$1.lazy(() => Promise.resolve().then(() => require("./index-CwSS7HIf.cjs")));
|
|
5968
|
+
const Header$1 = react$1.lazy(() => Promise.resolve().then(() => require("./index-DXySGWRo.cjs")));
|
|
5969
|
+
const Content = react$1.lazy(() => Promise.resolve().then(() => require("./index-C1jkvV-X.cjs")));
|
|
5820
5970
|
const Map = react$1.lazy(() => Promise.resolve().then(() => require("./index-D4PsPquZ.cjs")));
|
|
5821
5971
|
const CustomContent = react$1.lazy(() => Promise.resolve().then(() => require("./index-ByrCNpS2.cjs")));
|
|
5822
|
-
const Assets = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5823
|
-
const Actions = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5972
|
+
const Assets = react$1.lazy(() => Promise.resolve().then(() => require("./index-CakMAOX7.cjs")));
|
|
5973
|
+
const Actions = react$1.lazy(() => Promise.resolve().then(() => require("./index-Cp1GJZKj.cjs")));
|
|
5824
5974
|
const HOVER_BORDER_WIDTH = 1;
|
|
5825
5975
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
5826
5976
|
const wrapperRef = react$1.useRef(null);
|
|
@@ -11133,4 +11283,4 @@ exports.UserMessage = UserMessage;
|
|
|
11133
11283
|
exports.WorkspaceModal = WorkspaceModal;
|
|
11134
11284
|
exports.cutText = cutText;
|
|
11135
11285
|
exports.isValidClick = isValidClick;
|
|
11136
|
-
//# sourceMappingURL=components-
|
|
11286
|
+
//# sourceMappingURL=components-DN1Oa-f6.cjs.map
|