@ixo/ui 0.0.2 → 0.0.4

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 (54) hide show
  1. package/dist/.vite/manifest.json +31 -31
  2. package/dist/components/NavigationBar/NavigationBar.d.ts +2 -2
  3. package/dist/components/NavigationBar/NavigationBar.d.ts.map +1 -1
  4. package/dist/components/NavigationBar/UserNav.d.ts +3 -3
  5. package/dist/components/NavigationBar/UserNav.d.ts.map +1 -1
  6. package/dist/components/NavigationBar/WorkspaceModal.d.ts +1 -1
  7. package/dist/components/NavigationBar/WorkspaceModal.d.ts.map +1 -1
  8. package/dist/{components-CZzxFRC3.cjs → components-_1aj7fli.cjs} +19 -18
  9. package/dist/{components-CZzxFRC3.cjs.map → components-_1aj7fli.cjs.map} +1 -1
  10. package/dist/{components-CcLa67E1.js → components-qFMVWjVp.js} +19 -18
  11. package/dist/{components-CcLa67E1.js.map → components-qFMVWjVp.js.map} +1 -1
  12. package/dist/export/components.cjs +1 -1
  13. package/dist/export/components.mjs +1 -1
  14. package/dist/{index-CMsifKvb.js → index-4Ok7zUt7.js} +3 -3
  15. package/dist/{index-CMsifKvb.js.map → index-4Ok7zUt7.js.map} +1 -1
  16. package/dist/{index-BYyVXK0P.cjs → index-9wbX0zfU.cjs} +2 -2
  17. package/dist/{index-BYyVXK0P.cjs.map → index-9wbX0zfU.cjs.map} +1 -1
  18. package/dist/{index-D2C1JXno.cjs → index-B-QsOYPK.cjs} +2 -2
  19. package/dist/{index-D2C1JXno.cjs.map → index-B-QsOYPK.cjs.map} +1 -1
  20. package/dist/{index-DVsDIbAX.cjs → index-BAhWhzU2.cjs} +2 -2
  21. package/dist/{index-DVsDIbAX.cjs.map → index-BAhWhzU2.cjs.map} +1 -1
  22. package/dist/{index-B4pWZMLl.js → index-BAoRqihu.js} +2 -2
  23. package/dist/{index-B4pWZMLl.js.map → index-BAoRqihu.js.map} +1 -1
  24. package/dist/{index-CZWdbU4E.cjs → index-BRCeR851.cjs} +2 -2
  25. package/dist/{index-CZWdbU4E.cjs.map → index-BRCeR851.cjs.map} +1 -1
  26. package/dist/{index-6y8GG7Bk.js → index-Buc_qqM8.js} +2 -2
  27. package/dist/{index-6y8GG7Bk.js.map → index-Buc_qqM8.js.map} +1 -1
  28. package/dist/{index-BSNwdPFK.js → index-C6py_EuP.js} +2 -2
  29. package/dist/{index-BSNwdPFK.js.map → index-C6py_EuP.js.map} +1 -1
  30. package/dist/{index-CQzAYKbg.cjs → index-CDhhze5V.cjs} +2 -2
  31. package/dist/{index-CQzAYKbg.cjs.map → index-CDhhze5V.cjs.map} +1 -1
  32. package/dist/{index-Cnvoj4ID.cjs → index-CcgvizQl.cjs} +2 -2
  33. package/dist/{index-Cnvoj4ID.cjs.map → index-CcgvizQl.cjs.map} +1 -1
  34. package/dist/{index-BKMghlTE.cjs → index-DGfDxTQ6.cjs} +2 -2
  35. package/dist/{index-BKMghlTE.cjs.map → index-DGfDxTQ6.cjs.map} +1 -1
  36. package/dist/{index-BUyivmx_.cjs → index-DOi5Kjo8.cjs} +2 -2
  37. package/dist/{index-BUyivmx_.cjs.map → index-DOi5Kjo8.cjs.map} +1 -1
  38. package/dist/{index-BuRdNBuS.js → index-DQYpSmzE.js} +2 -2
  39. package/dist/{index-BuRdNBuS.js.map → index-DQYpSmzE.js.map} +1 -1
  40. package/dist/{index-BT_QWzeu.js → index-DeBEdBiR.js} +2 -2
  41. package/dist/{index-BT_QWzeu.js.map → index-DeBEdBiR.js.map} +1 -1
  42. package/dist/{index-BOFcwysu.js → index-DkjLBaSk.js} +2 -2
  43. package/dist/{index-BOFcwysu.js.map → index-DkjLBaSk.js.map} +1 -1
  44. package/dist/{index-vZ3HilDD.cjs → index-nO1TT3Hv.cjs} +3 -3
  45. package/dist/{index-vZ3HilDD.cjs.map → index-nO1TT3Hv.cjs.map} +1 -1
  46. package/dist/{index-B6fPzqfk.js → index-qhANrzdI.js} +3 -3
  47. package/dist/{index-B6fPzqfk.js.map → index-qhANrzdI.js.map} +1 -1
  48. package/dist/{index-CJMaNSid.cjs → index-r8jIjbnw.cjs} +3 -3
  49. package/dist/{index-CJMaNSid.cjs.map → index-r8jIjbnw.cjs.map} +1 -1
  50. package/dist/{index-DjumXADw.js → index-sTelSbrd.js} +2 -2
  51. package/dist/{index-DjumXADw.js.map → index-sTelSbrd.js.map} +1 -1
  52. package/dist/{index-BH5NOZ6n.js → index-yE1fBF8R.js} +2 -2
  53. package/dist/{index-BH5NOZ6n.js.map → index-yE1fBF8R.js.map} +1 -1
  54. package/package.json +1 -1
@@ -774,8 +774,8 @@ function AccordionTable({
774
774
  }
775
775
  );
776
776
  }
777
- const Header$3 = lazy(() => import("./index-BuRdNBuS.js"));
778
- const Footer = lazy(() => import("./index-CMsifKvb.js"));
777
+ const Header$3 = lazy(() => import("./index-DQYpSmzE.js"));
778
+ const Footer = lazy(() => import("./index-4Ok7zUt7.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-B4pWZMLl.js"));
862
+ const Header$2 = lazy(() => import("./index-BAoRqihu.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-BSNwdPFK.js"));
1297
+ const Badge = lazy(() => import("./index-C6py_EuP.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-BT_QWzeu.js"));
5063
- const Header$1 = lazy(() => import("./index-BOFcwysu.js"));
5064
- const Content = lazy(() => import("./index-DjumXADw.js"));
5062
+ const MainAction = lazy(() => import("./index-DeBEdBiR.js"));
5063
+ const Header$1 = lazy(() => import("./index-DkjLBaSk.js"));
5064
+ const Content = lazy(() => import("./index-sTelSbrd.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-BH5NOZ6n.js"));
5068
- const Actions = lazy(() => import("./index-B6fPzqfk.js"));
5067
+ const Assets = lazy(() => import("./index-yE1fBF8R.js"));
5068
+ const Actions = lazy(() => import("./index-qhANrzdI.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);
@@ -8679,7 +8679,7 @@ function UserNav({ workspaces, user, onWorkspaceChange, onItemHover, onItemLeave
8679
8679
  const handleItemLeave = useCallback(() => {
8680
8680
  onItemLeave?.();
8681
8681
  }, [onItemLeave]);
8682
- const activeWorkspace = workspaces.find((w) => w.isActive);
8682
+ const activeWorkspace = workspaces?.find((w) => w.isActive);
8683
8683
  const containerStyle = {
8684
8684
  display: "flex",
8685
8685
  flexDirection: "column",
@@ -8702,8 +8702,9 @@ function UserNav({ workspaces, user, onWorkspaceChange, onItemHover, onItemLeave
8702
8702
  alignItems: "center",
8703
8703
  width: "100%"
8704
8704
  };
8705
+ if (!workspaces && !user) return null;
8705
8706
  return /* @__PURE__ */ jsx("div", { style: containerStyle, "data-user-nav": true, children: /* @__PURE__ */ jsxs("div", { style: contentStyle, children: [
8706
- activeWorkspace && /* @__PURE__ */ jsx(
8707
+ activeWorkspace && workspaces && workspaces?.length > 0 && /* @__PURE__ */ jsx(
8707
8708
  NavigationItem,
8708
8709
  {
8709
8710
  useImage: activeWorkspace.type === "domain" || activeWorkspace.type === "basic",
@@ -8713,12 +8714,12 @@ function UserNav({ workspaces, user, onWorkspaceChange, onItemHover, onItemLeave
8713
8714
  isActive: true,
8714
8715
  showNotification: activeWorkspace.notification !== void 0 && activeWorkspace.notification > 0,
8715
8716
  notificationContent: activeWorkspace.notification,
8716
- onHover: (e) => handleItemHover("workspace", e),
8717
+ onHover: (e) => handleItemHover("workspaces", e),
8717
8718
  onLeave: handleItemLeave,
8718
8719
  onClick: () => onWorkspaceChange?.(activeWorkspace)
8719
8720
  }
8720
8721
  ),
8721
- /* @__PURE__ */ jsx(
8722
+ user && /* @__PURE__ */ jsx(
8722
8723
  NavigationItem,
8723
8724
  {
8724
8725
  useImage: true,
@@ -10210,7 +10211,7 @@ function NavigationBar({
10210
10211
  console.log(`Large modal: positioning at Y=${yPosition} (NavigationBar top, will be scrollable)`);
10211
10212
  }
10212
10213
  }
10213
- } else if (itemId === "workspace") {
10214
+ } else if (itemId === "workspaces") {
10214
10215
  maxHeight = navBarRect.height;
10215
10216
  yPosition = navBarRect.bottom;
10216
10217
  } else if (itemId === "user") {
@@ -10226,7 +10227,7 @@ function NavigationBar({
10226
10227
  clearAllTimeouts();
10227
10228
  hoverEnterTimeoutRef.current = window.setTimeout(() => {
10228
10229
  let useBottomPositioning = false;
10229
- if (itemId === "workspace") {
10230
+ if (itemId === "workspaces") {
10230
10231
  useBottomPositioning = true;
10231
10232
  } else if (itemId === "more") {
10232
10233
  useBottomPositioning = false;
@@ -10323,7 +10324,7 @@ function NavigationBar({
10323
10324
  }
10324
10325
  ),
10325
10326
  hoveredItem === "more" && /* @__PURE__ */ jsx(MoreModal, { position: modalPosition, onClose: handleModalLeave, onMouseEnter: handleModalEnter, onMouseLeave: handleModalLeave, additionalItems: getMoreItems() }),
10326
- hoveredItem === "workspace" && /* @__PURE__ */ jsx(
10327
+ hoveredItem === "workspaces" && /* @__PURE__ */ jsx(
10327
10328
  WorkspaceModal,
10328
10329
  {
10329
10330
  position: modalPosition,
@@ -10336,7 +10337,7 @@ function NavigationBar({
10336
10337
  onInputBlur: handleModalInputBlur
10337
10338
  }
10338
10339
  ),
10339
- hoveredItem === "user" && /* @__PURE__ */ jsx(UserModal, { items: userModalItems, position: modalPosition, onMouseEnter: handleModalEnter, onMouseLeave: handleModalLeave })
10340
+ hoveredItem === "user" && user && /* @__PURE__ */ jsx(UserModal, { items: userModalItems, position: modalPosition, onMouseEnter: handleModalEnter, onMouseLeave: handleModalLeave })
10340
10341
  ] });
10341
10342
  }
10342
10343
  export {
@@ -10431,4 +10432,4 @@ export {
10431
10432
  CardOutput as y,
10432
10433
  CardUserFollowUp as z
10433
10434
  };
10434
- //# sourceMappingURL=components-CcLa67E1.js.map
10435
+ //# sourceMappingURL=components-qFMVWjVp.js.map