@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.
Files changed (60) hide show
  1. package/dist/.vite/manifest.json +43 -43
  2. package/dist/{UsersSolid-Cr_JcwNT.cjs → UsersSolid-Bj2vwEHq.cjs} +1 -33
  3. package/dist/UsersSolid-Bj2vwEHq.cjs.map +1 -0
  4. package/dist/{UsersSolid-CEMcHCoD.js → UsersSolid-CncjWLR_.js} +1 -33
  5. package/dist/{UsersSolid-Cr_JcwNT.cjs.map → UsersSolid-CncjWLR_.js.map} +1 -1
  6. package/dist/components/NavigationBar/MoreModal.d.ts +4 -2
  7. package/dist/components/NavigationBar/MoreModal.d.ts.map +1 -1
  8. package/dist/components/NavigationBar/NavigationBar.d.ts.map +1 -1
  9. package/dist/{components-_1aj7fli.cjs → components-DmVrcjoe.cjs} +27 -81
  10. package/dist/{components-_1aj7fli.cjs.map → components-DmVrcjoe.cjs.map} +1 -1
  11. package/dist/{components-qFMVWjVp.js → components-nIVUDr7n.js} +27 -81
  12. package/dist/{components-qFMVWjVp.js.map → components-nIVUDr7n.js.map} +1 -1
  13. package/dist/export/components.cjs +1 -1
  14. package/dist/export/components.mjs +1 -1
  15. package/dist/export/icons/index.cjs +33 -3
  16. package/dist/export/icons/index.cjs.map +1 -1
  17. package/dist/export/icons/index.mjs +34 -4
  18. package/dist/export/icons/index.mjs.map +1 -1
  19. package/dist/{index-Buc_qqM8.js → index--RxXbH22.js} +2 -2
  20. package/dist/{index-Buc_qqM8.js.map → index--RxXbH22.js.map} +1 -1
  21. package/dist/{index-4Ok7zUt7.js → index-AdmtrdOj.js} +3 -3
  22. package/dist/{index-4Ok7zUt7.js.map → index-AdmtrdOj.js.map} +1 -1
  23. package/dist/{index-sTelSbrd.js → index-B0nV3hVq.js} +2 -2
  24. package/dist/{index-sTelSbrd.js.map → index-B0nV3hVq.js.map} +1 -1
  25. package/dist/{index-DkjLBaSk.js → index-BLQvGCp1.js} +2 -2
  26. package/dist/{index-DkjLBaSk.js.map → index-BLQvGCp1.js.map} +1 -1
  27. package/dist/{index-DOi5Kjo8.cjs → index-BQ3DAXnq.cjs} +2 -2
  28. package/dist/{index-DOi5Kjo8.cjs.map → index-BQ3DAXnq.cjs.map} +1 -1
  29. package/dist/{index-DGfDxTQ6.cjs → index-Bc_MmoiM.cjs} +2 -2
  30. package/dist/{index-DGfDxTQ6.cjs.map → index-Bc_MmoiM.cjs.map} +1 -1
  31. package/dist/{index-CDhhze5V.cjs → index-BnU1ktcj.cjs} +2 -2
  32. package/dist/{index-CDhhze5V.cjs.map → index-BnU1ktcj.cjs.map} +1 -1
  33. package/dist/{index-BAoRqihu.js → index-BqTxDhWH.js} +2 -2
  34. package/dist/{index-BAoRqihu.js.map → index-BqTxDhWH.js.map} +1 -1
  35. package/dist/{index-CcgvizQl.cjs → index-CEFoRpvx.cjs} +2 -2
  36. package/dist/{index-CcgvizQl.cjs.map → index-CEFoRpvx.cjs.map} +1 -1
  37. package/dist/{index-qhANrzdI.js → index-CJQwQd4A.js} +3 -3
  38. package/dist/{index-qhANrzdI.js.map → index-CJQwQd4A.js.map} +1 -1
  39. package/dist/{index-r8jIjbnw.cjs → index-CZf9DVqp.cjs} +3 -3
  40. package/dist/{index-r8jIjbnw.cjs.map → index-CZf9DVqp.cjs.map} +1 -1
  41. package/dist/{index-DQYpSmzE.js → index-CePcVUdl.js} +3 -3
  42. package/dist/{index-DQYpSmzE.js.map → index-CePcVUdl.js.map} +1 -1
  43. package/dist/{index-C6py_EuP.js → index-Ch58_nVL.js} +2 -2
  44. package/dist/{index-C6py_EuP.js.map → index-Ch58_nVL.js.map} +1 -1
  45. package/dist/{index-B-QsOYPK.cjs → index-CxWtsgMl.cjs} +2 -2
  46. package/dist/{index-B-QsOYPK.cjs.map → index-CxWtsgMl.cjs.map} +1 -1
  47. package/dist/{index-nO1TT3Hv.cjs → index-DJEwZuHm.cjs} +3 -3
  48. package/dist/{index-nO1TT3Hv.cjs.map → index-DJEwZuHm.cjs.map} +1 -1
  49. package/dist/{index-BAhWhzU2.cjs → index-DrypVliv.cjs} +3 -3
  50. package/dist/{index-BAhWhzU2.cjs.map → index-DrypVliv.cjs.map} +1 -1
  51. package/dist/{index-DeBEdBiR.js → index-Dw39BM_E.js} +2 -2
  52. package/dist/{index-DeBEdBiR.js.map → index-Dw39BM_E.js.map} +1 -1
  53. package/dist/{index-BRCeR851.cjs → index-iW6JY6LG.cjs} +2 -2
  54. package/dist/{index-BRCeR851.cjs.map → index-iW6JY6LG.cjs.map} +1 -1
  55. package/dist/{index-yE1fBF8R.js → index-w29Yeaab.js} +2 -2
  56. package/dist/{index-yE1fBF8R.js.map → index-w29Yeaab.js.map} +1 -1
  57. package/dist/{index-9wbX0zfU.cjs → index-wyaeB3FQ.cjs} +2 -2
  58. package/dist/{index-9wbX0zfU.cjs.map → index-wyaeB3FQ.cjs.map} +1 -1
  59. package/package.json +1 -1
  60. 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-Cr_JcwNT.cjs");
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-BAhWhzU2.cjs")));
801
- const Footer = react$1.lazy(() => Promise.resolve().then(() => require("./index-nO1TT3Hv.cjs")));
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-DGfDxTQ6.cjs")));
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-CDhhze5V.cjs")));
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-DOi5Kjo8.cjs")));
5086
- const Header$1 = react$1.lazy(() => Promise.resolve().then(() => require("./index-CcgvizQl.cjs")));
5087
- const Content = react$1.lazy(() => Promise.resolve().then(() => require("./index-B-QsOYPK.cjs")));
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-9wbX0zfU.cjs")));
5091
- const Actions = react$1.lazy(() => Promise.resolve().then(() => require("./index-r8jIjbnw.cjs")));
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);
@@ -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.title }),
9504
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: descriptionStyle, children: action.description })
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, additionalItems }) {
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: navigationActions.map((action) => /* @__PURE__ */ jsxRuntime.jsx(NavigationActionSelector, { action, onClick: handleActionClick }, action.id)) })
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,15 +10163,12 @@ 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
10174
  } else if (itemId === "workspaces") {
@@ -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);
@@ -10346,7 +10282,17 @@ function NavigationBar({
10346
10282
  onEcosystemClick
10347
10283
  }
10348
10284
  ),
10349
- hoveredItem === "more" && /* @__PURE__ */ jsxRuntime.jsx(MoreModal, { position: modalPosition, onClose: handleModalLeave, onMouseEnter: handleModalEnter, onMouseLeave: handleModalLeave, additionalItems: getMoreItems() }),
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
+ ),
10350
10296
  hoveredItem === "workspaces" && /* @__PURE__ */ jsxRuntime.jsx(
10351
10297
  WorkspaceModal,
10352
10298
  {
@@ -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-_1aj7fli.cjs.map
10402
+ //# sourceMappingURL=components-DmVrcjoe.cjs.map