@ixo/ui 0.0.37 → 0.0.39

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 (50) hide show
  1. package/dist/.vite/manifest.json +43 -43
  2. package/dist/components/AppShellNavigation/index.d.ts +2 -1
  3. package/dist/components/AppShellNavigation/index.d.ts.map +1 -1
  4. package/dist/{components-DN1Oa-f6.cjs → components-Dh6ajpNG.cjs} +44 -34
  5. package/dist/{components-DN1Oa-f6.cjs.map → components-Dh6ajpNG.cjs.map} +1 -1
  6. package/dist/{components-CzYIAVLV.js → components-HlNIe7CZ.js} +45 -35
  7. package/dist/{components-CzYIAVLV.js.map → components-HlNIe7CZ.js.map} +1 -1
  8. package/dist/export/components.cjs +1 -1
  9. package/dist/export/components.mjs +1 -1
  10. package/dist/{index-vNRsVBzW.js → index--70UT2n_.js} +2 -2
  11. package/dist/{index-vNRsVBzW.js.map → index--70UT2n_.js.map} +1 -1
  12. package/dist/{index-CPagTbY2.js → index-9UUyZZ-F.js} +3 -3
  13. package/dist/{index-CPagTbY2.js.map → index-9UUyZZ-F.js.map} +1 -1
  14. package/dist/{index-C1jkvV-X.cjs → index-B-Zre99u.cjs} +2 -2
  15. package/dist/{index-C1jkvV-X.cjs.map → index-B-Zre99u.cjs.map} +1 -1
  16. package/dist/{index-Ch5hR4aV.cjs → index-B279S1ib.cjs} +2 -2
  17. package/dist/{index-Ch5hR4aV.cjs.map → index-B279S1ib.cjs.map} +1 -1
  18. package/dist/{index-kDLY4FBs.js → index-BJlA64RQ.js} +3 -3
  19. package/dist/{index-kDLY4FBs.js.map → index-BJlA64RQ.js.map} +1 -1
  20. package/dist/{index-CwSS7HIf.cjs → index-BSpy7S9t.cjs} +2 -2
  21. package/dist/{index-CwSS7HIf.cjs.map → index-BSpy7S9t.cjs.map} +1 -1
  22. package/dist/{index-FtJpq2EO.js → index-BmURKcEG.js} +2 -2
  23. package/dist/{index-FtJpq2EO.js.map → index-BmURKcEG.js.map} +1 -1
  24. package/dist/{index-F9Irhjcn.js → index-CHd1dAzt.js} +2 -2
  25. package/dist/{index-F9Irhjcn.js.map → index-CHd1dAzt.js.map} +1 -1
  26. package/dist/{index-CpWsRlKO.cjs → index-CJ6bEuh4.cjs} +2 -2
  27. package/dist/{index-CpWsRlKO.cjs.map → index-CJ6bEuh4.cjs.map} +1 -1
  28. package/dist/{index-CdKYqXBt.cjs → index-Cc8QzwfQ.cjs} +2 -2
  29. package/dist/{index-CdKYqXBt.cjs.map → index-Cc8QzwfQ.cjs.map} +1 -1
  30. package/dist/{index-B3L8bASL.js → index-Cdq0xepm.js} +2 -2
  31. package/dist/{index-B3L8bASL.js.map → index-Cdq0xepm.js.map} +1 -1
  32. package/dist/{index-BxdS7Log.js → index-Ct0LG7BZ.js} +2 -2
  33. package/dist/{index-BxdS7Log.js.map → index-Ct0LG7BZ.js.map} +1 -1
  34. package/dist/{index-CakMAOX7.cjs → index-CxrtFKNK.cjs} +2 -2
  35. package/dist/{index-CakMAOX7.cjs.map → index-CxrtFKNK.cjs.map} +1 -1
  36. package/dist/{index-tAWB4Iqa.cjs → index-DAzlT5mC.cjs} +3 -3
  37. package/dist/{index-tAWB4Iqa.cjs.map → index-DAzlT5mC.cjs.map} +1 -1
  38. package/dist/{index-DQlyhNQS.js → index-DBFKFDFv.js} +2 -2
  39. package/dist/{index-DQlyhNQS.js.map → index-DBFKFDFv.js.map} +1 -1
  40. package/dist/{index-DXySGWRo.cjs → index-DZdPdzVn.cjs} +2 -2
  41. package/dist/{index-DXySGWRo.cjs.map → index-DZdPdzVn.cjs.map} +1 -1
  42. package/dist/{index-Cjz-hgYn.js → index-DhGqlduA.js} +2 -2
  43. package/dist/{index-Cjz-hgYn.js.map → index-DhGqlduA.js.map} +1 -1
  44. package/dist/{index-Cp1GJZKj.cjs → index-DnxREYKV.cjs} +3 -3
  45. package/dist/{index-Cp1GJZKj.cjs.map → index-DnxREYKV.cjs.map} +1 -1
  46. package/dist/{index-CcmQ18nv.js → index-E541J7_X.js} +2 -2
  47. package/dist/{index-CcmQ18nv.js.map → index-E541J7_X.js.map} +1 -1
  48. package/dist/{index-BFLvKv53.cjs → index-RMhNdvgC.cjs} +2 -2
  49. package/dist/{index-BFLvKv53.cjs.map → index-RMhNdvgC.cjs.map} +1 -1
  50. package/package.json +5 -5
@@ -4,7 +4,7 @@ import { useTheme, jsx as jsx$1, keyframes, ThemeProvider } from "@emotion/react
4
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, d as ArrowLeftSolid, e as Canvas, H as HistorySolid, U as User, f as AngleLeftSolid, M as MinusCircleSolid, h as SettingsBarSolid, G as Globe, D as Dashboard, i as Groups, j as UserCircleSolid, k as Assets$1, l as Claims, m as Accounts, n as LinkedResources, o as Proposals, I as ImpactCredits, p as GoTo, q as Share, r as PiePiece, s as ImpactCertificates, t as CommentDotsSolid, u as CommentAltSolid, v as MicrophoneSolid, w as Command, x as ArrowCircleRightSolid, y as Protocols, z as Investments, O as Oracles, B as Projects, F as Daos, J as Star, K as AngleRightSolid, N as Expand, Q as LeafSolid, R as ArrowDownSolid, T as ArrowRightSolid, V as Play, W as CheckCircle, X as Events, Y as ThumbsUpSolid, Z as CommentsSolid, _ as CopySolid, $ as Hourglass, a0 as Act, a1 as Info$1, a2 as ClaimsW, a3 as TachometerAltSolid, a4 as UserCogSolid, a5 as UsersSolid, a6 as EllipsisHSolid } from "./UsersSolid-C6NkfomI.js";
5
5
  import { useState, useCallback, useRef, useEffect, Suspense, lazy, forwardRef, useMemo, useId, 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
- import { Accordion as Accordion$1, Box, Image, Popover, Text as Text$1, Badge as Badge$1, Center, AppShell, Skeleton, Stack as Stack$1, Tooltip as Tooltip$4, Divider, ScrollArea } from "@mantine/core";
7
+ import { Accordion as Accordion$1, Box, Image, Popover, Text as Text$1, Badge as Badge$1, Center, AppShell, Skeleton, Stack as Stack$1, Tooltip as Tooltip$4, Divider, ScrollArea, Space } from "@mantine/core";
8
8
  import { cx, css } from "@emotion/css";
9
9
  import { createPortal } from "react-dom";
10
10
  import DOMPurify from "dompurify";
@@ -774,8 +774,8 @@ function AccordionTable({
774
774
  }
775
775
  );
776
776
  }
777
- const Header$3 = lazy(() => import("./index-F9Irhjcn.js"));
778
- const Footer = lazy(() => import("./index-CPagTbY2.js"));
777
+ const Header$3 = lazy(() => import("./index-CHd1dAzt.js"));
778
+ const Footer = lazy(() => import("./index-9UUyZZ-F.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-DQlyhNQS.js"));
862
+ const Header$2 = lazy(() => import("./index-DBFKFDFv.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-vNRsVBzW.js"));
1297
+ const Badge = lazy(() => import("./index--70UT2n_.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);
@@ -2568,6 +2568,28 @@ function SpaceItem({ icon, id, name, selectedSpace, onClick }) {
2568
2568
  }
2569
2569
  );
2570
2570
  }
2571
+ function cutText(text, length, ending = "…") {
2572
+ if (!length || text.length <= length) {
2573
+ return text;
2574
+ }
2575
+ const words = text.split(" ");
2576
+ const endingSize = ending.length;
2577
+ let result = "";
2578
+ for (const word of words) {
2579
+ const newValue = result + word + " ";
2580
+ if (newValue.length + endingSize - 1 > length) {
2581
+ break;
2582
+ }
2583
+ result = newValue;
2584
+ }
2585
+ return result.trim() + ending;
2586
+ }
2587
+ function carbonToUSD(carbon) {
2588
+ return (carbon * 0.03).toLocaleString(void 0, {
2589
+ minimumFractionDigits: 0,
2590
+ maximumFractionDigits: 6
2591
+ });
2592
+ }
2571
2593
  const CANVAS_MIN_WIDTH = 350;
2572
2594
  const CONTENT_MIN_WIDTH = 350;
2573
2595
  function AppShellNavigation({
@@ -2595,6 +2617,7 @@ function AppShellNavigation({
2595
2617
  isAiBtnVisible,
2596
2618
  loading,
2597
2619
  children,
2620
+ separator,
2598
2621
  aiNavbarContent,
2599
2622
  canvasContent,
2600
2623
  canvasMode = "hidden",
@@ -2634,6 +2657,7 @@ function AppShellNavigation({
2634
2657
  },
2635
2658
  [onSplitRatioChange]
2636
2659
  );
2660
+ const isTitleOverflowing = (pageItem?.pageTitle?.length || 0) > 21;
2637
2661
  const handleSplitMouseUp = useCallback(() => {
2638
2662
  setIsSplitResizing(false);
2639
2663
  isSplitResizingRef.current = false;
@@ -2820,7 +2844,7 @@ function AppShellNavigation({
2820
2844
  /* @__PURE__ */ jsxs(Flex, { mb: 24, style: { width: "100%" }, justify: "space-between", align: "center", children: [
2821
2845
  /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "10px", children: [
2822
2846
  isBackButtonVisible ? /* @__PURE__ */ jsx(Center, { onClick: onBackClick, sx: { borderRadius: 4, cursor: "pointer", padding: 2, background: theme.bg.navIconsBg }, children: /* @__PURE__ */ jsx(ArrowLeftSolid, { size: 18 }) }) : /* @__PURE__ */ jsx(Center, { sx: { borderRadius: 4, padding: 2, background: theme.bg.navIconsBg }, children: pageItem.pageIcon ? /* @__PURE__ */ jsx(pageItem.pageIcon, { size: 18 }) : /* @__PURE__ */ jsx(Globe, { size: 18 }) }),
2823
- /* @__PURE__ */ jsx(Text$1, { lh: 1, c: theme.text.overPicture, children: pageItem.pageTitle || "Unknown" })
2847
+ /* @__PURE__ */ jsx(Tooltip$4, { label: pageItem.pageTitle || "Unknown", disabled: !isTitleOverflowing, position: "bottom", withArrow: true, children: /* @__PURE__ */ jsx(Text$1, { lh: 1, c: theme.text.overPicture, children: cutText(pageItem.pageTitle, 21) || "Unknown" }) })
2824
2848
  ] }),
2825
2849
  isAiBtnVisible && !isAiOpened && /* @__PURE__ */ jsx(
2826
2850
  Center,
@@ -2840,7 +2864,15 @@ function AppShellNavigation({
2840
2864
  }
2841
2865
  )
2842
2866
  ] }),
2843
- loading ? /* @__PURE__ */ jsx(Stack$1, { gap: 5, children: Array.from({ length: 6 }).map((_, idx) => /* @__PURE__ */ jsx(NavigationItemSkeleton, {}, idx)) }) : menuItems?.map((item) => /* @__PURE__ */ jsx(MenuItem, { onMenuItemClick, item }, item.id)),
2867
+ loading ? /* @__PURE__ */ jsx(Stack$1, { gap: 5, children: Array.from({ length: 6 }).map((_, idx) => /* @__PURE__ */ jsx(NavigationItemSkeleton, {}, idx)) }) : menuItems?.map((item, index) => {
2868
+ if (index === separator) {
2869
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
2870
+ /* @__PURE__ */ jsx(Space, { h: 16 }),
2871
+ /* @__PURE__ */ jsx(MenuItem, { onMenuItemClick, item }, item.id)
2872
+ ] });
2873
+ }
2874
+ return /* @__PURE__ */ jsx(MenuItem, { onMenuItemClick, item }, item.id);
2875
+ }),
2844
2876
  roomCategories && roomCategories.length > 0 && /* @__PURE__ */ jsx(Stack$1, { gap: 8, mt: 16, children: roomCategories.map((category) => /* @__PURE__ */ jsx(RoomCategory, { category }, category.id)) })
2845
2877
  ] }),
2846
2878
  /* @__PURE__ */ jsx(Stack$1, { gap: 5, children: footerContent })
@@ -5941,13 +5973,13 @@ function ActionButton({ onClick, left, right }) {
5941
5973
  }
5942
5974
  );
5943
5975
  }
5944
- const MainAction = lazy(() => import("./index-B3L8bASL.js"));
5945
- const Header$1 = lazy(() => import("./index-Cjz-hgYn.js"));
5946
- const Content = lazy(() => import("./index-CcmQ18nv.js"));
5976
+ const MainAction = lazy(() => import("./index-Cdq0xepm.js"));
5977
+ const Header$1 = lazy(() => import("./index-DhGqlduA.js"));
5978
+ const Content = lazy(() => import("./index-E541J7_X.js"));
5947
5979
  const Map = lazy(() => import("./index-D5Ufmf-s.js"));
5948
5980
  const CustomContent = lazy(() => import("./index-DsYjW_4y.js"));
5949
- const Assets = lazy(() => import("./index-FtJpq2EO.js"));
5950
- const Actions = lazy(() => import("./index-kDLY4FBs.js"));
5981
+ const Assets = lazy(() => import("./index-BmURKcEG.js"));
5982
+ const Actions = lazy(() => import("./index-BJlA64RQ.js"));
5951
5983
  const HOVER_BORDER_WIDTH = 1;
5952
5984
  function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
5953
5985
  const wrapperRef = useRef(null);
@@ -6284,28 +6316,6 @@ function AssetInfo({
6284
6316
  }
6285
6317
  );
6286
6318
  }
6287
- function cutText(text, length, ending = "…") {
6288
- if (!length || text.length <= length) {
6289
- return text;
6290
- }
6291
- const words = text.split(" ");
6292
- const endingSize = ending.length;
6293
- let result = "";
6294
- for (const word of words) {
6295
- const newValue = result + word + " ";
6296
- if (newValue.length + endingSize - 1 > length) {
6297
- break;
6298
- }
6299
- result = newValue;
6300
- }
6301
- return result.trim() + ending;
6302
- }
6303
- function carbonToUSD(carbon) {
6304
- return (carbon * 0.03).toLocaleString(void 0, {
6305
- minimumFractionDigits: 0,
6306
- maximumFractionDigits: 6
6307
- });
6308
- }
6309
6319
  const SHARED_ASSET_PROPS = {
6310
6320
  leftTitleColor: "text",
6311
6321
  rightTitleColor: "text",
@@ -11262,4 +11272,4 @@ export {
11262
11272
  CardHero as y,
11263
11273
  CardSelector as z
11264
11274
  };
11265
- //# sourceMappingURL=components-CzYIAVLV.js.map
11275
+ //# sourceMappingURL=components-HlNIe7CZ.js.map