@ixo/ui 0.0.4 → 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.map +1 -1
- package/dist/{components-_1aj7fli.cjs → components-DmVrcjoe.cjs} +27 -81
- package/dist/{components-_1aj7fli.cjs.map → components-DmVrcjoe.cjs.map} +1 -1
- package/dist/{components-qFMVWjVp.js → components-nIVUDr7n.js} +27 -81
- package/dist/{components-qFMVWjVp.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-Buc_qqM8.js → index--RxXbH22.js} +2 -2
- package/dist/{index-Buc_qqM8.js.map → index--RxXbH22.js.map} +1 -1
- package/dist/{index-4Ok7zUt7.js → index-AdmtrdOj.js} +3 -3
- package/dist/{index-4Ok7zUt7.js.map → index-AdmtrdOj.js.map} +1 -1
- package/dist/{index-sTelSbrd.js → index-B0nV3hVq.js} +2 -2
- package/dist/{index-sTelSbrd.js.map → index-B0nV3hVq.js.map} +1 -1
- package/dist/{index-DkjLBaSk.js → index-BLQvGCp1.js} +2 -2
- package/dist/{index-DkjLBaSk.js.map → index-BLQvGCp1.js.map} +1 -1
- package/dist/{index-DOi5Kjo8.cjs → index-BQ3DAXnq.cjs} +2 -2
- package/dist/{index-DOi5Kjo8.cjs.map → index-BQ3DAXnq.cjs.map} +1 -1
- package/dist/{index-DGfDxTQ6.cjs → index-Bc_MmoiM.cjs} +2 -2
- package/dist/{index-DGfDxTQ6.cjs.map → index-Bc_MmoiM.cjs.map} +1 -1
- package/dist/{index-CDhhze5V.cjs → index-BnU1ktcj.cjs} +2 -2
- package/dist/{index-CDhhze5V.cjs.map → index-BnU1ktcj.cjs.map} +1 -1
- package/dist/{index-BAoRqihu.js → index-BqTxDhWH.js} +2 -2
- package/dist/{index-BAoRqihu.js.map → index-BqTxDhWH.js.map} +1 -1
- package/dist/{index-CcgvizQl.cjs → index-CEFoRpvx.cjs} +2 -2
- package/dist/{index-CcgvizQl.cjs.map → index-CEFoRpvx.cjs.map} +1 -1
- package/dist/{index-qhANrzdI.js → index-CJQwQd4A.js} +3 -3
- package/dist/{index-qhANrzdI.js.map → index-CJQwQd4A.js.map} +1 -1
- package/dist/{index-r8jIjbnw.cjs → index-CZf9DVqp.cjs} +3 -3
- package/dist/{index-r8jIjbnw.cjs.map → index-CZf9DVqp.cjs.map} +1 -1
- package/dist/{index-DQYpSmzE.js → index-CePcVUdl.js} +3 -3
- package/dist/{index-DQYpSmzE.js.map → index-CePcVUdl.js.map} +1 -1
- package/dist/{index-C6py_EuP.js → index-Ch58_nVL.js} +2 -2
- package/dist/{index-C6py_EuP.js.map → index-Ch58_nVL.js.map} +1 -1
- package/dist/{index-B-QsOYPK.cjs → index-CxWtsgMl.cjs} +2 -2
- package/dist/{index-B-QsOYPK.cjs.map → index-CxWtsgMl.cjs.map} +1 -1
- package/dist/{index-nO1TT3Hv.cjs → index-DJEwZuHm.cjs} +3 -3
- package/dist/{index-nO1TT3Hv.cjs.map → index-DJEwZuHm.cjs.map} +1 -1
- package/dist/{index-BAhWhzU2.cjs → index-DrypVliv.cjs} +3 -3
- package/dist/{index-BAhWhzU2.cjs.map → index-DrypVliv.cjs.map} +1 -1
- package/dist/{index-DeBEdBiR.js → index-Dw39BM_E.js} +2 -2
- package/dist/{index-DeBEdBiR.js.map → index-Dw39BM_E.js.map} +1 -1
- package/dist/{index-BRCeR851.cjs → index-iW6JY6LG.cjs} +2 -2
- package/dist/{index-BRCeR851.cjs.map → index-iW6JY6LG.cjs.map} +1 -1
- package/dist/{index-yE1fBF8R.js → index-w29Yeaab.js} +2 -2
- package/dist/{index-yE1fBF8R.js.map → index-w29Yeaab.js.map} +1 -1
- package/dist/{index-9wbX0zfU.cjs → index-wyaeB3FQ.cjs} +2 -2
- package/dist/{index-9wbX0zfU.cjs.map → index-wyaeB3FQ.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/UsersSolid-CEMcHCoD.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { isString, toggle, get, isFunction, assign } from "radash";
|
|
3
3
|
import { useTheme, jsx as jsx$1, keyframes, ThemeProvider } from "@emotion/react";
|
|
4
|
-
import { g as getElementColor, A as AngleDownSolid, a as CheckSolid, C as Close, L as Loading, P as PlusSolid, S as SearchSolid, b as Assistant, c as ArrowUpSolid, E as EllipsisVSolid, U as User, G as Globe, D as Dashboard, d as Groups, e as UserCircleSolid, f as Assets$1, h as Claims, i as Accounts, H as HistorySolid, j as LinkedResources, k as Proposals, I as ImpactCredits, l as GoTo, m as Share, n as PiePiece, o as ImpactCertificates, p as CommentDotsSolid, q as CommentAltSolid, M as MicrophoneSolid, r as Command, s as ArrowCircleRightSolid, t as Protocols, u as Investments, O as Oracles, v as Projects, w as Daos, x as Star, y as AngleLeftSolid, z as AngleRightSolid, B as Expand, F as LeafSolid, J as ArrowDownSolid, K as ArrowLeftSolid, N as ArrowRightSolid, Q as Play, R as CheckCircle, T as Events, V as ThumbsUpSolid, W as CommentsSolid, X as CopySolid, Y as Hourglass, Z as Act, _ as Info$1, $ as ClaimsW, a0 as TachometerAltSolid, a1 as UserCogSolid, a2 as UsersSolid, a3 as EllipsisHSolid
|
|
4
|
+
import { g as getElementColor, A as AngleDownSolid, a as CheckSolid, C as Close, L as Loading, P as PlusSolid, S as SearchSolid, b as Assistant, c as ArrowUpSolid, E as EllipsisVSolid, U as User, G as Globe, D as Dashboard, d as Groups, e as UserCircleSolid, f as Assets$1, h as Claims, i as Accounts, H as HistorySolid, j as LinkedResources, k as Proposals, I as ImpactCredits, l as GoTo, m as Share, n as PiePiece, o as ImpactCertificates, p as CommentDotsSolid, q as CommentAltSolid, M as MicrophoneSolid, r as Command, s as ArrowCircleRightSolid, t as Protocols, u as Investments, O as Oracles, v as Projects, w as Daos, x as Star, y as AngleLeftSolid, z as AngleRightSolid, B as Expand, F as LeafSolid, J as ArrowDownSolid, K as ArrowLeftSolid, N as ArrowRightSolid, Q as Play, R as CheckCircle, T as Events, V as ThumbsUpSolid, W as CommentsSolid, X as CopySolid, Y as Hourglass, Z as Act, _ as Info$1, $ as ClaimsW, a0 as TachometerAltSolid, a1 as UserCogSolid, a2 as UsersSolid, a3 as EllipsisHSolid } from "./UsersSolid-CncjWLR_.js";
|
|
5
5
|
import { useState, useCallback, useRef, useEffect, Suspense, lazy, forwardRef, useId, useMemo, Fragment as Fragment$1, useLayoutEffect, useImperativeHandle, memo } from "react";
|
|
6
6
|
import { T as TAG_SMALL_HEIGHT, D as DEFAULT_ICON_SIZE } from "./constants-B7xlU8b8.js";
|
|
7
7
|
import { Accordion as Accordion$1, Box, Image, Text as Text$1, Badge as Badge$1, Stack as Stack$1, Center } from "@mantine/core";
|
|
@@ -774,8 +774,8 @@ function AccordionTable({
|
|
|
774
774
|
}
|
|
775
775
|
);
|
|
776
776
|
}
|
|
777
|
-
const Header$3 = lazy(() => import("./index-
|
|
778
|
-
const Footer = lazy(() => import("./index-
|
|
777
|
+
const Header$3 = lazy(() => import("./index-CePcVUdl.js"));
|
|
778
|
+
const Footer = lazy(() => import("./index-AdmtrdOj.js"));
|
|
779
779
|
function ActionCard({ header, content, footer, useHoverMode = false }) {
|
|
780
780
|
const hasContent = !!content || !!footer;
|
|
781
781
|
const initialVisibility = footer?.startHidden !== true;
|
|
@@ -859,7 +859,7 @@ function Loader({ size, color = "primary" }) {
|
|
|
859
859
|
}
|
|
860
860
|
const CARD_WIDTH$1 = 350;
|
|
861
861
|
const CARD_HEADER_HEIGHT = 158;
|
|
862
|
-
const Header$2 = lazy(() => import("./index-
|
|
862
|
+
const Header$2 = lazy(() => import("./index-BqTxDhWH.js"));
|
|
863
863
|
function Card({ children, className, contentClassName, roundedBottom, noPadding = false, fullWidth = false, header, wrapperSx, onClick }) {
|
|
864
864
|
const wrapperRef = useRef(null);
|
|
865
865
|
const handleOnClick = useCallback(
|
|
@@ -1294,7 +1294,7 @@ function ModalSheet({ isOpen, children, hideHandler, zIndex, onRequestHide, onRe
|
|
|
1294
1294
|
document.body
|
|
1295
1295
|
);
|
|
1296
1296
|
}
|
|
1297
|
-
const Badge = lazy(() => import("./index-
|
|
1297
|
+
const Badge = lazy(() => import("./index-Ch58_nVL.js"));
|
|
1298
1298
|
function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide, onRequestShow }) {
|
|
1299
1299
|
const shadowScrollRef = useRef(null);
|
|
1300
1300
|
const wrapperContentAreaRef = useRef(null);
|
|
@@ -5059,13 +5059,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
5059
5059
|
}
|
|
5060
5060
|
);
|
|
5061
5061
|
}
|
|
5062
|
-
const MainAction = lazy(() => import("./index-
|
|
5063
|
-
const Header$1 = lazy(() => import("./index-
|
|
5064
|
-
const Content = lazy(() => import("./index-
|
|
5062
|
+
const MainAction = lazy(() => import("./index-Dw39BM_E.js"));
|
|
5063
|
+
const Header$1 = lazy(() => import("./index-BLQvGCp1.js"));
|
|
5064
|
+
const Content = lazy(() => import("./index-B0nV3hVq.js"));
|
|
5065
5065
|
const Map = lazy(() => import("./index-D5Ufmf-s.js"));
|
|
5066
5066
|
const CustomContent = lazy(() => import("./index-DsYjW_4y.js"));
|
|
5067
|
-
const Assets = lazy(() => import("./index-
|
|
5068
|
-
const Actions = lazy(() => import("./index-
|
|
5067
|
+
const Assets = lazy(() => import("./index-w29Yeaab.js"));
|
|
5068
|
+
const Actions = lazy(() => import("./index-CJQwQd4A.js"));
|
|
5069
5069
|
const HOVER_BORDER_WIDTH = 1;
|
|
5070
5070
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
5071
5071
|
const wrapperRef = useRef(null);
|
|
@@ -9448,22 +9448,6 @@ function NavigationActionSelector({ action, onClick }) {
|
|
|
9448
9448
|
color: "rgba(255, 255, 255, 0.5)",
|
|
9449
9449
|
margin: 0
|
|
9450
9450
|
};
|
|
9451
|
-
const premiumTagStyle = {
|
|
9452
|
-
display: "flex",
|
|
9453
|
-
alignItems: "center",
|
|
9454
|
-
padding: "0 8px",
|
|
9455
|
-
height: "20px",
|
|
9456
|
-
background: "rgba(0, 210, 255, 0.2)",
|
|
9457
|
-
borderRadius: "16px",
|
|
9458
|
-
fontSize: "12px",
|
|
9459
|
-
fontWeight: "400",
|
|
9460
|
-
color: "#00D2FF",
|
|
9461
|
-
fontFamily: theme.font.main,
|
|
9462
|
-
position: "absolute",
|
|
9463
|
-
right: "16px",
|
|
9464
|
-
top: "50%",
|
|
9465
|
-
transform: "translateY(-50%)"
|
|
9466
|
-
};
|
|
9467
9451
|
const handleClick = () => {
|
|
9468
9452
|
onClick?.(action);
|
|
9469
9453
|
};
|
|
@@ -9477,53 +9461,12 @@ function NavigationActionSelector({ action, onClick }) {
|
|
|
9477
9461
|
return /* @__PURE__ */ jsxs("button", { style: containerStyle, onClick: handleClick, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [
|
|
9478
9462
|
/* @__PURE__ */ jsx("div", { style: iconContainerStyle, children: /* @__PURE__ */ jsx(IconComponent, {}) }),
|
|
9479
9463
|
/* @__PURE__ */ jsxs("div", { style: textContentStyle, children: [
|
|
9480
|
-
/* @__PURE__ */ jsx("div", { style: titleStyle, children: action.
|
|
9481
|
-
/* @__PURE__ */ jsx("div", { style: descriptionStyle, children: action.
|
|
9482
|
-
] })
|
|
9483
|
-
action.isPremium && /* @__PURE__ */ jsx("div", { style: premiumTagStyle, children: "Premium" })
|
|
9464
|
+
/* @__PURE__ */ jsx("div", { style: titleStyle, children: action.label }),
|
|
9465
|
+
/* @__PURE__ */ jsx("div", { style: descriptionStyle, children: action.label })
|
|
9466
|
+
] })
|
|
9484
9467
|
] });
|
|
9485
9468
|
}
|
|
9486
|
-
function MoreModal({ position, onMouseEnter, onMouseLeave,
|
|
9487
|
-
const defaultNavigationActions = [
|
|
9488
|
-
{
|
|
9489
|
-
id: "resources",
|
|
9490
|
-
title: "Resources",
|
|
9491
|
-
description: "Linked Resources of the Domain",
|
|
9492
|
-
Icon: Resources
|
|
9493
|
-
},
|
|
9494
|
-
{
|
|
9495
|
-
id: "activity",
|
|
9496
|
-
title: "Activity",
|
|
9497
|
-
description: "Show the past activity of the Domain",
|
|
9498
|
-
Icon: HistorySolid
|
|
9499
|
-
},
|
|
9500
|
-
{
|
|
9501
|
-
id: "credentials",
|
|
9502
|
-
title: "Credentials",
|
|
9503
|
-
description: "Shows the Credentials of the Domain",
|
|
9504
|
-
Icon: ShieldAltSolid
|
|
9505
|
-
},
|
|
9506
|
-
{
|
|
9507
|
-
id: "impacts",
|
|
9508
|
-
title: "Impacts",
|
|
9509
|
-
description: "Verify the impacts of your Domain",
|
|
9510
|
-
Icon: Resources,
|
|
9511
|
-
// Using Resources as placeholder for impacts icon
|
|
9512
|
-
isPremium: true
|
|
9513
|
-
}
|
|
9514
|
-
];
|
|
9515
|
-
const convertNavItemsToActions = (items) => {
|
|
9516
|
-
return items.map((item) => ({
|
|
9517
|
-
id: item.id,
|
|
9518
|
-
title: item.label,
|
|
9519
|
-
description: `Navigate to ${item.label}`,
|
|
9520
|
-
// Generic description
|
|
9521
|
-
Icon: item.Icon,
|
|
9522
|
-
isPremium: false
|
|
9523
|
-
// NavItems don't have premium flag
|
|
9524
|
-
}));
|
|
9525
|
-
};
|
|
9526
|
-
const navigationActions = additionalItems.length > 0 ? convertNavItemsToActions(additionalItems) : defaultNavigationActions;
|
|
9469
|
+
function MoreModal({ onItemClick, position, onMouseEnter, onMouseLeave, items }) {
|
|
9527
9470
|
const modalStyle = {
|
|
9528
9471
|
position: "fixed",
|
|
9529
9472
|
left: `${position.x}px`,
|
|
@@ -9561,12 +9504,9 @@ function MoreModal({ position, onMouseEnter, onMouseLeave, additionalItems }) {
|
|
|
9561
9504
|
scrollbarWidth: "thin",
|
|
9562
9505
|
scrollbarColor: "rgba(255, 255, 255, 0.3) transparent"
|
|
9563
9506
|
};
|
|
9564
|
-
const handleActionClick = (action) => {
|
|
9565
|
-
console.log("Clicked navigation action:", action);
|
|
9566
|
-
};
|
|
9567
9507
|
return /* @__PURE__ */ jsxs("div", { style: modalStyle, onMouseEnter, onMouseLeave, children: [
|
|
9568
9508
|
/* @__PURE__ */ jsx("div", { style: headerStyle, children: /* @__PURE__ */ jsx(Typography.Text, { size: "xs", color: "overPicture", children: "More" }) }),
|
|
9569
|
-
/* @__PURE__ */ jsx("div", { style: navigationActionsContainerStyle, children:
|
|
9509
|
+
/* @__PURE__ */ jsx("div", { style: navigationActionsContainerStyle, children: onItemClick && items.map((action) => /* @__PURE__ */ jsx(NavigationActionSelector, { action, onClick: () => onItemClick(action) }, action.id)) })
|
|
9570
9510
|
] });
|
|
9571
9511
|
}
|
|
9572
9512
|
function SpaceSelector({ space, onClick, className }) {
|
|
@@ -10200,15 +10140,12 @@ function NavigationBar({
|
|
|
10200
10140
|
if (estimatedModalHeight <= dynamicNavHeight) {
|
|
10201
10141
|
maxHeight = dynamicNavHeight;
|
|
10202
10142
|
yPosition = dynamicRect.bottom - estimatedModalHeight;
|
|
10203
|
-
console.log(`Small modal: positioning at Y=${yPosition} (DynamicNav bottom - modal height)`);
|
|
10204
10143
|
} else if (estimatedModalHeight <= navBarRect.height) {
|
|
10205
10144
|
maxHeight = navBarRect.height;
|
|
10206
10145
|
yPosition = navBarRect.top;
|
|
10207
|
-
console.log(`Medium modal: positioning at Y=${yPosition} (NavigationBar top)`);
|
|
10208
10146
|
} else {
|
|
10209
10147
|
maxHeight = navBarRect.height;
|
|
10210
10148
|
yPosition = navBarRect.top;
|
|
10211
|
-
console.log(`Large modal: positioning at Y=${yPosition} (NavigationBar top, will be scrollable)`);
|
|
10212
10149
|
}
|
|
10213
10150
|
}
|
|
10214
10151
|
} else if (itemId === "workspaces") {
|
|
@@ -10219,7 +10156,6 @@ function NavigationBar({
|
|
|
10219
10156
|
yPosition = navBarRect.bottom;
|
|
10220
10157
|
}
|
|
10221
10158
|
} else {
|
|
10222
|
-
console.warn("NavigationBar rect not found, using fallback positioning");
|
|
10223
10159
|
xPosition = rect.right + 8;
|
|
10224
10160
|
yPosition = rect.top;
|
|
10225
10161
|
maxHeight = Math.min(400, window.innerHeight - rect.top - 20);
|
|
@@ -10323,7 +10259,17 @@ function NavigationBar({
|
|
|
10323
10259
|
onEcosystemClick
|
|
10324
10260
|
}
|
|
10325
10261
|
),
|
|
10326
|
-
hoveredItem === "more" && /* @__PURE__ */ jsx(
|
|
10262
|
+
hoveredItem === "more" && /* @__PURE__ */ jsx(
|
|
10263
|
+
MoreModal,
|
|
10264
|
+
{
|
|
10265
|
+
position: modalPosition,
|
|
10266
|
+
onClose: handleModalLeave,
|
|
10267
|
+
onItemClick: onNavigate,
|
|
10268
|
+
onMouseEnter: handleModalEnter,
|
|
10269
|
+
onMouseLeave: handleModalLeave,
|
|
10270
|
+
items: getMoreItems()
|
|
10271
|
+
}
|
|
10272
|
+
),
|
|
10327
10273
|
hoveredItem === "workspaces" && /* @__PURE__ */ jsx(
|
|
10328
10274
|
WorkspaceModal,
|
|
10329
10275
|
{
|
|
@@ -10432,4 +10378,4 @@ export {
|
|
|
10432
10378
|
CardOutput as y,
|
|
10433
10379
|
CardUserFollowUp as z
|
|
10434
10380
|
};
|
|
10435
|
-
//# sourceMappingURL=components-
|
|
10381
|
+
//# sourceMappingURL=components-nIVUDr7n.js.map
|