@ixo/ui 0.0.3 → 0.0.5
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 +43 -43
- package/dist/{UsersSolid-Cr_JcwNT.cjs → UsersSolid-Bj2vwEHq.cjs} +1 -33
- package/dist/UsersSolid-Bj2vwEHq.cjs.map +1 -0
- package/dist/{UsersSolid-CEMcHCoD.js → UsersSolid-CncjWLR_.js} +1 -33
- package/dist/{UsersSolid-Cr_JcwNT.cjs.map → UsersSolid-CncjWLR_.js.map} +1 -1
- package/dist/components/NavigationBar/MoreModal.d.ts +4 -2
- package/dist/components/NavigationBar/MoreModal.d.ts.map +1 -1
- package/dist/components/NavigationBar/NavigationBar.d.ts +1 -1
- package/dist/components/NavigationBar/NavigationBar.d.ts.map +1 -1
- package/dist/components/NavigationBar/WorkspaceModal.d.ts +1 -1
- package/dist/components/NavigationBar/WorkspaceModal.d.ts.map +1 -1
- package/dist/{components-CHw5jEoW.cjs → components-DmVrcjoe.cjs} +31 -85
- package/dist/{components-CHw5jEoW.cjs.map → components-DmVrcjoe.cjs.map} +1 -1
- package/dist/{components-DwhQhLPm.js → components-nIVUDr7n.js} +31 -85
- package/dist/{components-DwhQhLPm.js.map → components-nIVUDr7n.js.map} +1 -1
- package/dist/export/components.cjs +1 -1
- package/dist/export/components.mjs +1 -1
- package/dist/export/icons/index.cjs +33 -3
- package/dist/export/icons/index.cjs.map +1 -1
- package/dist/export/icons/index.mjs +34 -4
- package/dist/export/icons/index.mjs.map +1 -1
- package/dist/{index-D58mrVim.js → index--RxXbH22.js} +2 -2
- package/dist/{index-D58mrVim.js.map → index--RxXbH22.js.map} +1 -1
- package/dist/{index-DA1mgDGF.js → index-AdmtrdOj.js} +3 -3
- package/dist/{index-DA1mgDGF.js.map → index-AdmtrdOj.js.map} +1 -1
- package/dist/{index-CWXtlI-e.js → index-B0nV3hVq.js} +2 -2
- package/dist/{index-CWXtlI-e.js.map → index-B0nV3hVq.js.map} +1 -1
- package/dist/{index-CmspLyTv.js → index-BLQvGCp1.js} +2 -2
- package/dist/{index-CmspLyTv.js.map → index-BLQvGCp1.js.map} +1 -1
- package/dist/{index-B_ZmmwEe.cjs → index-BQ3DAXnq.cjs} +2 -2
- package/dist/{index-B_ZmmwEe.cjs.map → index-BQ3DAXnq.cjs.map} +1 -1
- package/dist/{index-DzhUdjUL.cjs → index-Bc_MmoiM.cjs} +2 -2
- package/dist/{index-DzhUdjUL.cjs.map → index-Bc_MmoiM.cjs.map} +1 -1
- package/dist/{index-DuQW8UvT.cjs → index-BnU1ktcj.cjs} +2 -2
- package/dist/{index-DuQW8UvT.cjs.map → index-BnU1ktcj.cjs.map} +1 -1
- package/dist/{index-BBel7Xdj.js → index-BqTxDhWH.js} +2 -2
- package/dist/{index-BBel7Xdj.js.map → index-BqTxDhWH.js.map} +1 -1
- package/dist/{index-VDoa1Q1D.cjs → index-CEFoRpvx.cjs} +2 -2
- package/dist/{index-VDoa1Q1D.cjs.map → index-CEFoRpvx.cjs.map} +1 -1
- package/dist/{index-jDvFGrHn.js → index-CJQwQd4A.js} +3 -3
- package/dist/{index-jDvFGrHn.js.map → index-CJQwQd4A.js.map} +1 -1
- package/dist/{index-C_KUatu4.cjs → index-CZf9DVqp.cjs} +3 -3
- package/dist/{index-C_KUatu4.cjs.map → index-CZf9DVqp.cjs.map} +1 -1
- package/dist/{index-BxPBL9YF.js → index-CePcVUdl.js} +3 -3
- package/dist/{index-BxPBL9YF.js.map → index-CePcVUdl.js.map} +1 -1
- package/dist/{index-CcZKqfw0.js → index-Ch58_nVL.js} +2 -2
- package/dist/{index-CcZKqfw0.js.map → index-Ch58_nVL.js.map} +1 -1
- package/dist/{index-CVdy8C9p.cjs → index-CxWtsgMl.cjs} +2 -2
- package/dist/{index-CVdy8C9p.cjs.map → index-CxWtsgMl.cjs.map} +1 -1
- package/dist/{index-ENvEnnl-.cjs → index-DJEwZuHm.cjs} +3 -3
- package/dist/{index-ENvEnnl-.cjs.map → index-DJEwZuHm.cjs.map} +1 -1
- package/dist/{index-VaICO7W_.cjs → index-DrypVliv.cjs} +3 -3
- package/dist/{index-VaICO7W_.cjs.map → index-DrypVliv.cjs.map} +1 -1
- package/dist/{index-DoQULSJZ.js → index-Dw39BM_E.js} +2 -2
- package/dist/{index-DoQULSJZ.js.map → index-Dw39BM_E.js.map} +1 -1
- package/dist/{index-B6HOechF.cjs → index-iW6JY6LG.cjs} +2 -2
- package/dist/{index-B6HOechF.cjs.map → index-iW6JY6LG.cjs.map} +1 -1
- package/dist/{index-BIFVgSxH.js → index-w29Yeaab.js} +2 -2
- package/dist/{index-BIFVgSxH.js.map → index-w29Yeaab.js.map} +1 -1
- package/dist/{index-BGuk50yr.cjs → index-wyaeB3FQ.cjs} +2 -2
- package/dist/{index-BGuk50yr.cjs.map → index-wyaeB3FQ.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/UsersSolid-CEMcHCoD.js.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-Bj2vwEHq.cjs");
|
|
28
28
|
const react$1 = require("react");
|
|
29
29
|
const constants = require("./constants-DFJRYpE2.cjs");
|
|
30
30
|
const core = require("@mantine/core");
|
|
@@ -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-DrypVliv.cjs")));
|
|
801
|
+
const Footer = react$1.lazy(() => Promise.resolve().then(() => require("./index-DJEwZuHm.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-Bc_MmoiM.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-BnU1ktcj.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);
|
|
@@ -5082,13 +5082,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
5082
5082
|
}
|
|
5083
5083
|
);
|
|
5084
5084
|
}
|
|
5085
|
-
const MainAction = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5086
|
-
const Header$1 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5087
|
-
const Content = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5085
|
+
const MainAction = react$1.lazy(() => Promise.resolve().then(() => require("./index-BQ3DAXnq.cjs")));
|
|
5086
|
+
const Header$1 = react$1.lazy(() => Promise.resolve().then(() => require("./index-CEFoRpvx.cjs")));
|
|
5087
|
+
const Content = react$1.lazy(() => Promise.resolve().then(() => require("./index-CxWtsgMl.cjs")));
|
|
5088
5088
|
const Map = react$1.lazy(() => Promise.resolve().then(() => require("./index-D4PsPquZ.cjs")));
|
|
5089
5089
|
const CustomContent = react$1.lazy(() => Promise.resolve().then(() => require("./index-ByrCNpS2.cjs")));
|
|
5090
|
-
const Assets = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5091
|
-
const Actions = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5090
|
+
const Assets = react$1.lazy(() => Promise.resolve().then(() => require("./index-wyaeB3FQ.cjs")));
|
|
5091
|
+
const Actions = react$1.lazy(() => Promise.resolve().then(() => require("./index-CZf9DVqp.cjs")));
|
|
5092
5092
|
const HOVER_BORDER_WIDTH = 1;
|
|
5093
5093
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
5094
5094
|
const wrapperRef = react$1.useRef(null);
|
|
@@ -8737,7 +8737,7 @@ function UserNav({ workspaces, user, onWorkspaceChange, onItemHover, onItemLeave
|
|
|
8737
8737
|
isActive: true,
|
|
8738
8738
|
showNotification: activeWorkspace.notification !== void 0 && activeWorkspace.notification > 0,
|
|
8739
8739
|
notificationContent: activeWorkspace.notification,
|
|
8740
|
-
onHover: (e) => handleItemHover("
|
|
8740
|
+
onHover: (e) => handleItemHover("workspaces", e),
|
|
8741
8741
|
onLeave: handleItemLeave,
|
|
8742
8742
|
onClick: () => onWorkspaceChange?.(activeWorkspace)
|
|
8743
8743
|
}
|
|
@@ -9471,22 +9471,6 @@ function NavigationActionSelector({ action, onClick }) {
|
|
|
9471
9471
|
color: "rgba(255, 255, 255, 0.5)",
|
|
9472
9472
|
margin: 0
|
|
9473
9473
|
};
|
|
9474
|
-
const premiumTagStyle = {
|
|
9475
|
-
display: "flex",
|
|
9476
|
-
alignItems: "center",
|
|
9477
|
-
padding: "0 8px",
|
|
9478
|
-
height: "20px",
|
|
9479
|
-
background: "rgba(0, 210, 255, 0.2)",
|
|
9480
|
-
borderRadius: "16px",
|
|
9481
|
-
fontSize: "12px",
|
|
9482
|
-
fontWeight: "400",
|
|
9483
|
-
color: "#00D2FF",
|
|
9484
|
-
fontFamily: theme.font.main,
|
|
9485
|
-
position: "absolute",
|
|
9486
|
-
right: "16px",
|
|
9487
|
-
top: "50%",
|
|
9488
|
-
transform: "translateY(-50%)"
|
|
9489
|
-
};
|
|
9490
9474
|
const handleClick = () => {
|
|
9491
9475
|
onClick?.(action);
|
|
9492
9476
|
};
|
|
@@ -9500,53 +9484,12 @@ function NavigationActionSelector({ action, onClick }) {
|
|
|
9500
9484
|
return /* @__PURE__ */ jsxRuntime.jsxs("button", { style: containerStyle, onClick: handleClick, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [
|
|
9501
9485
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: iconContainerStyle, children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {}) }),
|
|
9502
9486
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: textContentStyle, children: [
|
|
9503
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: titleStyle, children: action.
|
|
9504
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: descriptionStyle, children: action.
|
|
9505
|
-
] })
|
|
9506
|
-
action.isPremium && /* @__PURE__ */ jsxRuntime.jsx("div", { style: premiumTagStyle, children: "Premium" })
|
|
9487
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: titleStyle, children: action.label }),
|
|
9488
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: descriptionStyle, children: action.label })
|
|
9489
|
+
] })
|
|
9507
9490
|
] });
|
|
9508
9491
|
}
|
|
9509
|
-
function MoreModal({ position, onMouseEnter, onMouseLeave,
|
|
9510
|
-
const defaultNavigationActions = [
|
|
9511
|
-
{
|
|
9512
|
-
id: "resources",
|
|
9513
|
-
title: "Resources",
|
|
9514
|
-
description: "Linked Resources of the Domain",
|
|
9515
|
-
Icon: UsersSolid.Resources
|
|
9516
|
-
},
|
|
9517
|
-
{
|
|
9518
|
-
id: "activity",
|
|
9519
|
-
title: "Activity",
|
|
9520
|
-
description: "Show the past activity of the Domain",
|
|
9521
|
-
Icon: UsersSolid.HistorySolid
|
|
9522
|
-
},
|
|
9523
|
-
{
|
|
9524
|
-
id: "credentials",
|
|
9525
|
-
title: "Credentials",
|
|
9526
|
-
description: "Shows the Credentials of the Domain",
|
|
9527
|
-
Icon: UsersSolid.ShieldAltSolid
|
|
9528
|
-
},
|
|
9529
|
-
{
|
|
9530
|
-
id: "impacts",
|
|
9531
|
-
title: "Impacts",
|
|
9532
|
-
description: "Verify the impacts of your Domain",
|
|
9533
|
-
Icon: UsersSolid.Resources,
|
|
9534
|
-
// Using Resources as placeholder for impacts icon
|
|
9535
|
-
isPremium: true
|
|
9536
|
-
}
|
|
9537
|
-
];
|
|
9538
|
-
const convertNavItemsToActions = (items) => {
|
|
9539
|
-
return items.map((item) => ({
|
|
9540
|
-
id: item.id,
|
|
9541
|
-
title: item.label,
|
|
9542
|
-
description: `Navigate to ${item.label}`,
|
|
9543
|
-
// Generic description
|
|
9544
|
-
Icon: item.Icon,
|
|
9545
|
-
isPremium: false
|
|
9546
|
-
// NavItems don't have premium flag
|
|
9547
|
-
}));
|
|
9548
|
-
};
|
|
9549
|
-
const navigationActions = additionalItems.length > 0 ? convertNavItemsToActions(additionalItems) : defaultNavigationActions;
|
|
9492
|
+
function MoreModal({ onItemClick, position, onMouseEnter, onMouseLeave, items }) {
|
|
9550
9493
|
const modalStyle = {
|
|
9551
9494
|
position: "fixed",
|
|
9552
9495
|
left: `${position.x}px`,
|
|
@@ -9584,12 +9527,9 @@ function MoreModal({ position, onMouseEnter, onMouseLeave, additionalItems }) {
|
|
|
9584
9527
|
scrollbarWidth: "thin",
|
|
9585
9528
|
scrollbarColor: "rgba(255, 255, 255, 0.3) transparent"
|
|
9586
9529
|
};
|
|
9587
|
-
const handleActionClick = (action) => {
|
|
9588
|
-
console.log("Clicked navigation action:", action);
|
|
9589
|
-
};
|
|
9590
9530
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: modalStyle, onMouseEnter, onMouseLeave, children: [
|
|
9591
9531
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: headerStyle, children: /* @__PURE__ */ jsxRuntime.jsx(Typography.Text, { size: "xs", color: "overPicture", children: "More" }) }),
|
|
9592
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: navigationActionsContainerStyle, children:
|
|
9532
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: navigationActionsContainerStyle, children: onItemClick && items.map((action) => /* @__PURE__ */ jsxRuntime.jsx(NavigationActionSelector, { action, onClick: () => onItemClick(action) }, action.id)) })
|
|
9593
9533
|
] });
|
|
9594
9534
|
}
|
|
9595
9535
|
function SpaceSelector({ space, onClick, className }) {
|
|
@@ -10223,18 +10163,15 @@ function NavigationBar({
|
|
|
10223
10163
|
if (estimatedModalHeight <= dynamicNavHeight) {
|
|
10224
10164
|
maxHeight = dynamicNavHeight;
|
|
10225
10165
|
yPosition = dynamicRect.bottom - estimatedModalHeight;
|
|
10226
|
-
console.log(`Small modal: positioning at Y=${yPosition} (DynamicNav bottom - modal height)`);
|
|
10227
10166
|
} else if (estimatedModalHeight <= navBarRect.height) {
|
|
10228
10167
|
maxHeight = navBarRect.height;
|
|
10229
10168
|
yPosition = navBarRect.top;
|
|
10230
|
-
console.log(`Medium modal: positioning at Y=${yPosition} (NavigationBar top)`);
|
|
10231
10169
|
} else {
|
|
10232
10170
|
maxHeight = navBarRect.height;
|
|
10233
10171
|
yPosition = navBarRect.top;
|
|
10234
|
-
console.log(`Large modal: positioning at Y=${yPosition} (NavigationBar top, will be scrollable)`);
|
|
10235
10172
|
}
|
|
10236
10173
|
}
|
|
10237
|
-
} else if (itemId === "
|
|
10174
|
+
} else if (itemId === "workspaces") {
|
|
10238
10175
|
maxHeight = navBarRect.height;
|
|
10239
10176
|
yPosition = navBarRect.bottom;
|
|
10240
10177
|
} else if (itemId === "user") {
|
|
@@ -10242,7 +10179,6 @@ function NavigationBar({
|
|
|
10242
10179
|
yPosition = navBarRect.bottom;
|
|
10243
10180
|
}
|
|
10244
10181
|
} else {
|
|
10245
|
-
console.warn("NavigationBar rect not found, using fallback positioning");
|
|
10246
10182
|
xPosition = rect.right + 8;
|
|
10247
10183
|
yPosition = rect.top;
|
|
10248
10184
|
maxHeight = Math.min(400, window.innerHeight - rect.top - 20);
|
|
@@ -10250,7 +10186,7 @@ function NavigationBar({
|
|
|
10250
10186
|
clearAllTimeouts();
|
|
10251
10187
|
hoverEnterTimeoutRef.current = window.setTimeout(() => {
|
|
10252
10188
|
let useBottomPositioning = false;
|
|
10253
|
-
if (itemId === "
|
|
10189
|
+
if (itemId === "workspaces") {
|
|
10254
10190
|
useBottomPositioning = true;
|
|
10255
10191
|
} else if (itemId === "more") {
|
|
10256
10192
|
useBottomPositioning = false;
|
|
@@ -10346,8 +10282,18 @@ function NavigationBar({
|
|
|
10346
10282
|
onEcosystemClick
|
|
10347
10283
|
}
|
|
10348
10284
|
),
|
|
10349
|
-
hoveredItem === "more" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
10350
|
-
|
|
10285
|
+
hoveredItem === "more" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
10286
|
+
MoreModal,
|
|
10287
|
+
{
|
|
10288
|
+
position: modalPosition,
|
|
10289
|
+
onClose: handleModalLeave,
|
|
10290
|
+
onItemClick: onNavigate,
|
|
10291
|
+
onMouseEnter: handleModalEnter,
|
|
10292
|
+
onMouseLeave: handleModalLeave,
|
|
10293
|
+
items: getMoreItems()
|
|
10294
|
+
}
|
|
10295
|
+
),
|
|
10296
|
+
hoveredItem === "workspaces" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
10351
10297
|
WorkspaceModal,
|
|
10352
10298
|
{
|
|
10353
10299
|
position: modalPosition,
|
|
@@ -10453,4 +10399,4 @@ exports.UserMessage = UserMessage;
|
|
|
10453
10399
|
exports.WorkspaceModal = WorkspaceModal;
|
|
10454
10400
|
exports.cutText = cutText;
|
|
10455
10401
|
exports.isValidClick = isValidClick;
|
|
10456
|
-
//# sourceMappingURL=components-
|
|
10402
|
+
//# sourceMappingURL=components-DmVrcjoe.cjs.map
|