@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.
Files changed (63) 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 +1 -1
  9. package/dist/components/NavigationBar/NavigationBar.d.ts.map +1 -1
  10. package/dist/components/NavigationBar/WorkspaceModal.d.ts +1 -1
  11. package/dist/components/NavigationBar/WorkspaceModal.d.ts.map +1 -1
  12. package/dist/{components-CHw5jEoW.cjs → components-DmVrcjoe.cjs} +31 -85
  13. package/dist/{components-CHw5jEoW.cjs.map → components-DmVrcjoe.cjs.map} +1 -1
  14. package/dist/{components-DwhQhLPm.js → components-nIVUDr7n.js} +31 -85
  15. package/dist/{components-DwhQhLPm.js.map → components-nIVUDr7n.js.map} +1 -1
  16. package/dist/export/components.cjs +1 -1
  17. package/dist/export/components.mjs +1 -1
  18. package/dist/export/icons/index.cjs +33 -3
  19. package/dist/export/icons/index.cjs.map +1 -1
  20. package/dist/export/icons/index.mjs +34 -4
  21. package/dist/export/icons/index.mjs.map +1 -1
  22. package/dist/{index-D58mrVim.js → index--RxXbH22.js} +2 -2
  23. package/dist/{index-D58mrVim.js.map → index--RxXbH22.js.map} +1 -1
  24. package/dist/{index-DA1mgDGF.js → index-AdmtrdOj.js} +3 -3
  25. package/dist/{index-DA1mgDGF.js.map → index-AdmtrdOj.js.map} +1 -1
  26. package/dist/{index-CWXtlI-e.js → index-B0nV3hVq.js} +2 -2
  27. package/dist/{index-CWXtlI-e.js.map → index-B0nV3hVq.js.map} +1 -1
  28. package/dist/{index-CmspLyTv.js → index-BLQvGCp1.js} +2 -2
  29. package/dist/{index-CmspLyTv.js.map → index-BLQvGCp1.js.map} +1 -1
  30. package/dist/{index-B_ZmmwEe.cjs → index-BQ3DAXnq.cjs} +2 -2
  31. package/dist/{index-B_ZmmwEe.cjs.map → index-BQ3DAXnq.cjs.map} +1 -1
  32. package/dist/{index-DzhUdjUL.cjs → index-Bc_MmoiM.cjs} +2 -2
  33. package/dist/{index-DzhUdjUL.cjs.map → index-Bc_MmoiM.cjs.map} +1 -1
  34. package/dist/{index-DuQW8UvT.cjs → index-BnU1ktcj.cjs} +2 -2
  35. package/dist/{index-DuQW8UvT.cjs.map → index-BnU1ktcj.cjs.map} +1 -1
  36. package/dist/{index-BBel7Xdj.js → index-BqTxDhWH.js} +2 -2
  37. package/dist/{index-BBel7Xdj.js.map → index-BqTxDhWH.js.map} +1 -1
  38. package/dist/{index-VDoa1Q1D.cjs → index-CEFoRpvx.cjs} +2 -2
  39. package/dist/{index-VDoa1Q1D.cjs.map → index-CEFoRpvx.cjs.map} +1 -1
  40. package/dist/{index-jDvFGrHn.js → index-CJQwQd4A.js} +3 -3
  41. package/dist/{index-jDvFGrHn.js.map → index-CJQwQd4A.js.map} +1 -1
  42. package/dist/{index-C_KUatu4.cjs → index-CZf9DVqp.cjs} +3 -3
  43. package/dist/{index-C_KUatu4.cjs.map → index-CZf9DVqp.cjs.map} +1 -1
  44. package/dist/{index-BxPBL9YF.js → index-CePcVUdl.js} +3 -3
  45. package/dist/{index-BxPBL9YF.js.map → index-CePcVUdl.js.map} +1 -1
  46. package/dist/{index-CcZKqfw0.js → index-Ch58_nVL.js} +2 -2
  47. package/dist/{index-CcZKqfw0.js.map → index-Ch58_nVL.js.map} +1 -1
  48. package/dist/{index-CVdy8C9p.cjs → index-CxWtsgMl.cjs} +2 -2
  49. package/dist/{index-CVdy8C9p.cjs.map → index-CxWtsgMl.cjs.map} +1 -1
  50. package/dist/{index-ENvEnnl-.cjs → index-DJEwZuHm.cjs} +3 -3
  51. package/dist/{index-ENvEnnl-.cjs.map → index-DJEwZuHm.cjs.map} +1 -1
  52. package/dist/{index-VaICO7W_.cjs → index-DrypVliv.cjs} +3 -3
  53. package/dist/{index-VaICO7W_.cjs.map → index-DrypVliv.cjs.map} +1 -1
  54. package/dist/{index-DoQULSJZ.js → index-Dw39BM_E.js} +2 -2
  55. package/dist/{index-DoQULSJZ.js.map → index-Dw39BM_E.js.map} +1 -1
  56. package/dist/{index-B6HOechF.cjs → index-iW6JY6LG.cjs} +2 -2
  57. package/dist/{index-B6HOechF.cjs.map → index-iW6JY6LG.cjs.map} +1 -1
  58. package/dist/{index-BIFVgSxH.js → index-w29Yeaab.js} +2 -2
  59. package/dist/{index-BIFVgSxH.js.map → index-w29Yeaab.js.map} +1 -1
  60. package/dist/{index-BGuk50yr.cjs → index-wyaeB3FQ.cjs} +2 -2
  61. package/dist/{index-BGuk50yr.cjs.map → index-wyaeB3FQ.cjs.map} +1 -1
  62. package/package.json +1 -1
  63. 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, a4 as Resources, a5 as ShieldAltSolid } from "./UsersSolid-CEMcHCoD.js";
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-BxPBL9YF.js"));
778
- const Footer = lazy(() => import("./index-DA1mgDGF.js"));
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-BBel7Xdj.js"));
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-CcZKqfw0.js"));
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-DoQULSJZ.js"));
5063
- const Header$1 = lazy(() => import("./index-CmspLyTv.js"));
5064
- const Content = lazy(() => import("./index-CWXtlI-e.js"));
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-BIFVgSxH.js"));
5068
- const Actions = lazy(() => import("./index-jDvFGrHn.js"));
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);
@@ -8714,7 +8714,7 @@ function UserNav({ workspaces, user, onWorkspaceChange, onItemHover, onItemLeave
8714
8714
  isActive: true,
8715
8715
  showNotification: activeWorkspace.notification !== void 0 && activeWorkspace.notification > 0,
8716
8716
  notificationContent: activeWorkspace.notification,
8717
- onHover: (e) => handleItemHover("workspace", e),
8717
+ onHover: (e) => handleItemHover("workspaces", e),
8718
8718
  onLeave: handleItemLeave,
8719
8719
  onClick: () => onWorkspaceChange?.(activeWorkspace)
8720
8720
  }
@@ -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.title }),
9481
- /* @__PURE__ */ jsx("div", { style: descriptionStyle, children: action.description })
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, additionalItems }) {
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: navigationActions.map((action) => /* @__PURE__ */ jsx(NavigationActionSelector, { action, onClick: handleActionClick }, action.id)) })
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,18 +10140,15 @@ 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
- } else if (itemId === "workspace") {
10151
+ } else if (itemId === "workspaces") {
10215
10152
  maxHeight = navBarRect.height;
10216
10153
  yPosition = navBarRect.bottom;
10217
10154
  } else if (itemId === "user") {
@@ -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);
@@ -10227,7 +10163,7 @@ function NavigationBar({
10227
10163
  clearAllTimeouts();
10228
10164
  hoverEnterTimeoutRef.current = window.setTimeout(() => {
10229
10165
  let useBottomPositioning = false;
10230
- if (itemId === "workspace") {
10166
+ if (itemId === "workspaces") {
10231
10167
  useBottomPositioning = true;
10232
10168
  } else if (itemId === "more") {
10233
10169
  useBottomPositioning = false;
@@ -10323,8 +10259,18 @@ function NavigationBar({
10323
10259
  onEcosystemClick
10324
10260
  }
10325
10261
  ),
10326
- hoveredItem === "more" && /* @__PURE__ */ jsx(MoreModal, { position: modalPosition, onClose: handleModalLeave, onMouseEnter: handleModalEnter, onMouseLeave: handleModalLeave, additionalItems: getMoreItems() }),
10327
- hoveredItem === "workspace" && /* @__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
+ ),
10273
+ hoveredItem === "workspaces" && /* @__PURE__ */ jsx(
10328
10274
  WorkspaceModal,
10329
10275
  {
10330
10276
  position: modalPosition,
@@ -10432,4 +10378,4 @@ export {
10432
10378
  CardOutput as y,
10433
10379
  CardUserFollowUp as z
10434
10380
  };
10435
- //# sourceMappingURL=components-DwhQhLPm.js.map
10381
+ //# sourceMappingURL=components-nIVUDr7n.js.map