@ixo/ui 0.1.8 → 0.1.9

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 +43 -43
  2. package/dist/components/AppShellNavigation/components/RoomCategory.d.ts +7 -2
  3. package/dist/components/AppShellNavigation/components/RoomCategory.d.ts.map +1 -1
  4. package/dist/components/MoreMenu/index.d.ts +1 -1
  5. package/dist/components/MoreMenu/index.d.ts.map +1 -1
  6. package/dist/components/MoreMenu/types.d.ts +2 -0
  7. package/dist/components/MoreMenu/types.d.ts.map +1 -1
  8. package/dist/{components-t3g1EGWM.cjs → components-BDiiWelU.cjs} +28 -38
  9. package/dist/{components-t3g1EGWM.cjs.map → components-BDiiWelU.cjs.map} +1 -1
  10. package/dist/{components-BTh3OZP_.js → components-EXB_BUs5.js} +29 -39
  11. package/dist/{components-BTh3OZP_.js.map → components-EXB_BUs5.js.map} +1 -1
  12. package/dist/export/components.cjs +1 -1
  13. package/dist/export/components.mjs +1 -1
  14. package/dist/{index-CDydqopl.js → index-2Qg0wBFO.js} +2 -2
  15. package/dist/{index-CDydqopl.js.map → index-2Qg0wBFO.js.map} +1 -1
  16. package/dist/{index-BVV0ucIw.js → index-BHuoPnj7.js} +2 -2
  17. package/dist/{index-BVV0ucIw.js.map → index-BHuoPnj7.js.map} +1 -1
  18. package/dist/{index-DywPfyqK.js → index-BKru_TQX.js} +3 -3
  19. package/dist/{index-DywPfyqK.js.map → index-BKru_TQX.js.map} +1 -1
  20. package/dist/{index-DPUnEcWL.js → index-Be7UORTt.js} +2 -2
  21. package/dist/{index-DPUnEcWL.js.map → index-Be7UORTt.js.map} +1 -1
  22. package/dist/{index-DYL9lt-F.cjs → index-BzEXuxSc.cjs} +3 -3
  23. package/dist/{index-DYL9lt-F.cjs.map → index-BzEXuxSc.cjs.map} +1 -1
  24. package/dist/{index-DTtlPPm6.js → index-CEb94eQ3.js} +2 -2
  25. package/dist/{index-DTtlPPm6.js.map → index-CEb94eQ3.js.map} +1 -1
  26. package/dist/{index-CV9BPzXp.js → index-CGLxKSPk.js} +2 -2
  27. package/dist/{index-CV9BPzXp.js.map → index-CGLxKSPk.js.map} +1 -1
  28. package/dist/{index-B_aWrB-9.cjs → index-CO6Ygcv-.cjs} +2 -2
  29. package/dist/{index-B_aWrB-9.cjs.map → index-CO6Ygcv-.cjs.map} +1 -1
  30. package/dist/{index-D3OehMGn.cjs → index-CTZnqmGU.cjs} +2 -2
  31. package/dist/{index-D3OehMGn.cjs.map → index-CTZnqmGU.cjs.map} +1 -1
  32. package/dist/{index-DKn0Km5O.cjs → index-Ch90kRkK.cjs} +2 -2
  33. package/dist/{index-DKn0Km5O.cjs.map → index-Ch90kRkK.cjs.map} +1 -1
  34. package/dist/{index-CTQ4QmT2.cjs → index-D1bGiH9L.cjs} +2 -2
  35. package/dist/{index-CTQ4QmT2.cjs.map → index-D1bGiH9L.cjs.map} +1 -1
  36. package/dist/{index-DDlFsxQE.cjs → index-D771i3jp.cjs} +2 -2
  37. package/dist/{index-DDlFsxQE.cjs.map → index-D771i3jp.cjs.map} +1 -1
  38. package/dist/{index-B54JveXj.cjs → index-DWUKXIMe.cjs} +2 -2
  39. package/dist/{index-B54JveXj.cjs.map → index-DWUKXIMe.cjs.map} +1 -1
  40. package/dist/{index-DSJ4ojXM.js → index-DccAmgX1.js} +2 -2
  41. package/dist/{index-DSJ4ojXM.js.map → index-DccAmgX1.js.map} +1 -1
  42. package/dist/{index-QUkZftBS.js → index-Dm6B7Yv-.js} +2 -2
  43. package/dist/{index-QUkZftBS.js.map → index-Dm6B7Yv-.js.map} +1 -1
  44. package/dist/{index-C7OE98In.js → index-Dv_e6z8D.js} +2 -2
  45. package/dist/{index-C7OE98In.js.map → index-Dv_e6z8D.js.map} +1 -1
  46. package/dist/{index-C92QAG32.cjs → index-ImM8dR3W.cjs} +3 -3
  47. package/dist/{index-C92QAG32.cjs.map → index-ImM8dR3W.cjs.map} +1 -1
  48. package/dist/{index-BJPFbQjO.cjs → index-LERt98FZ.cjs} +2 -2
  49. package/dist/{index-BJPFbQjO.cjs.map → index-LERt98FZ.cjs.map} +1 -1
  50. package/dist/{index-Dl7hhKbt.js → index-Lu5gXTPs.js} +3 -3
  51. package/dist/{index-Dl7hhKbt.js.map → index-Lu5gXTPs.js.map} +1 -1
  52. package/dist/{index-BQg7t5mI.cjs → index-qHCPELWv.cjs} +2 -2
  53. package/dist/{index-BQg7t5mI.cjs.map → index-qHCPELWv.cjs.map} +1 -1
  54. package/package.json +1 -1
@@ -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, b as getTransparentColor, L as Loading, P as PlusSolid, S as SearchSolid, c as Assistant, d as ArrowUpSolid, E as EllipsisVSolid, e as ArrowLeftSolid, f as Canvas, H as HistorySolid, U as User, h as AngleLeftSolid, M as MinusCircleSolid, i as SettingsBarSolid, G as Globe, D as Dashboard, j as Groups, k as UserCircleSolid, l as Assets$1, m as Claims, n as Accounts, o as LinkedResources, p as Proposals, I as ImpactCredits, q as GoTo, r as Share, s as PiePiece, t as ImpactCertificates, u as CommentDotsSolid, v as CommentAltSolid, w as MicrophoneSolid, x as Command, y as ArrowCircleRightSolid, z as Protocols, B as Investments, O as Oracles, F as Projects, J as Daos, K as Star, N as AngleRightSolid, Q as Expand, R as LeafSolid, T as ArrowDownSolid, V as ArrowRightSolid, W as Play, X as CheckCircle, Y as Events, Z as ThumbsUpSolid, _ as CommentsSolid, $ as CopySolid, a0 as Hourglass, a1 as Act, a2 as Info$1, a3 as ClaimsW, a4 as TachometerAltSolid, a5 as UserCogSolid, a6 as UsersSolid, a7 as EllipsisHSolid } from "./UsersSolid-BAHkDzh8.js";
5
5
  import { useState, useCallback, useRef, forwardRef, useEffect, Suspense, lazy, 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, Text as Text$1, Popover, Stack as Stack$1, Badge as Badge$1, Center, AppShell, Skeleton, Tooltip as Tooltip$4, CloseButton, Group, Burger, Divider, ScrollArea, Space, Overlay } from "@mantine/core";
7
+ import { Accordion as Accordion$1, Box, Image, Text as Text$1, Popover, Center, FocusTrap, Stack as Stack$1, Badge as Badge$1, AppShell, Skeleton, Tooltip as Tooltip$4, CloseButton, Group, Burger, Divider, ScrollArea, Space, Overlay } from "@mantine/core";
8
8
  import { cx, css } from "@emotion/css";
9
9
  import { createPortal } from "react-dom";
10
10
  import DOMPurify from "dompurify";
@@ -823,8 +823,8 @@ function AccordionTable({
823
823
  }
824
824
  );
825
825
  }
826
- const Header$3 = lazy(() => import("./index-CDydqopl.js"));
827
- const Footer = lazy(() => import("./index-DywPfyqK.js"));
826
+ const Header$3 = lazy(() => import("./index-2Qg0wBFO.js"));
827
+ const Footer = lazy(() => import("./index-BKru_TQX.js"));
828
828
  function ActionCard({ header, content, footer, useHoverMode = false }) {
829
829
  const hasContent = !!content || !!footer;
830
830
  const initialVisibility = footer?.startHidden !== true;
@@ -908,7 +908,7 @@ function Loader({ size, color = "primary" }) {
908
908
  }
909
909
  const CARD_WIDTH$1 = 350;
910
910
  const CARD_HEADER_HEIGHT = 158;
911
- const Header$2 = lazy(() => import("./index-DPUnEcWL.js"));
911
+ const Header$2 = lazy(() => import("./index-Be7UORTt.js"));
912
912
  function Card({ children, className, contentClassName, roundedBottom, noPadding = false, fullWidth = false, header, wrapperSx, onClick }) {
913
913
  const wrapperRef = useRef(null);
914
914
  const handleOnClick = useCallback(
@@ -1343,7 +1343,7 @@ function ModalSheet({ isOpen, children, hideHandler, zIndex, onRequestHide, onRe
1343
1343
  document.body
1344
1344
  );
1345
1345
  }
1346
- const Badge = lazy(() => import("./index-C7OE98In.js"));
1346
+ const Badge = lazy(() => import("./index-Dv_e6z8D.js"));
1347
1347
  function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide, onRequestShow }) {
1348
1348
  const shadowScrollRef = useRef(null);
1349
1349
  const wrapperContentAreaRef = useRef(null);
@@ -1461,7 +1461,8 @@ function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide
1461
1461
  }
1462
1462
  ) });
1463
1463
  }
1464
- const icon = (Icon, size, color) => /* @__PURE__ */ jsx(Icon, { size: 18, color });
1464
+ const ICON_COLOR = "var(--mantine-color-neutralColor-8)";
1465
+ const icon = (Icon, size, color) => /* @__PURE__ */ jsx(Icon, { size: 18, color: color || ICON_COLOR });
1465
1466
  function IconButton({
1466
1467
  icon: Icon,
1467
1468
  onClick,
@@ -1949,7 +1950,7 @@ function Item({ icon: icon2, label, disabled, onClick }) {
1949
1950
  }
1950
1951
  );
1951
1952
  }
1952
- function MoreMenu({ items, controlColor = "primary" }) {
1953
+ function MoreMenu({ items, controlColor = "primary", Icon }) {
1953
1954
  const [opened, setOpened] = useState(false);
1954
1955
  return /* @__PURE__ */ jsxs(
1955
1956
  Popover,
@@ -1971,25 +1972,10 @@ function MoreMenu({ items, controlColor = "primary" }) {
1971
1972
  position: "right-start",
1972
1973
  shadow: "md",
1973
1974
  children: [
1974
- /* @__PURE__ */ jsx(Popover.Target, { children: /* @__PURE__ */ jsx(
1975
- "button",
1976
- {
1977
- css: {
1978
- background: "none",
1979
- border: "none",
1980
- padding: 0,
1981
- cursor: "pointer",
1982
- position: "relative",
1983
- display: "flex",
1984
- alignItems: "center",
1985
- justifyContent: "center"
1986
- },
1987
- onClick: () => setOpened((o) => !o),
1988
- children: /* @__PURE__ */ jsx(EllipsisVSolid, { size: 20, color: controlColor })
1989
- }
1990
- ) }),
1975
+ /* @__PURE__ */ jsx(Popover.Target, { children: /* @__PURE__ */ jsx(Center, { onClick: () => setOpened((o) => !o), children: Icon || /* @__PURE__ */ jsx(EllipsisVSolid, { size: 20, color: controlColor }) }) }),
1991
1976
  /* @__PURE__ */ jsxs(Popover.Dropdown, { children: [
1992
- /* @__PURE__ */ jsx(Text$1, { ml: 12, mb: 10, fz: 14, c: "neutralColor.7", children: "Page" }),
1977
+ /* @__PURE__ */ jsx(FocusTrap.InitialFocus, {}),
1978
+ /* @__PURE__ */ jsx(Text$1, { ml: 12, mb: 10, fz: 14, c: "neutralColor.7", children: "Actions" }),
1993
1979
  /* @__PURE__ */ jsx(Stack$1, { gap: "4px", children: items.map((item) => /* @__PURE__ */ jsx(
1994
1980
  Item,
1995
1981
  {
@@ -2422,7 +2408,7 @@ function RoomItem({ room }) {
2422
2408
  );
2423
2409
  return shouldShowTooltip ? /* @__PURE__ */ jsx(Tooltip$4, { label: room.name, children: /* @__PURE__ */ jsx("span", { children: content }) }) : content;
2424
2410
  }
2425
- function RoomCategory({ name, rooms, actions, onAddClick }) {
2411
+ function RoomCategory({ name, rooms, actions, primaryActions }) {
2426
2412
  const { hovered, ref } = useHover();
2427
2413
  const { value, toggle: toggle2 } = useToggle(false);
2428
2414
  return /* @__PURE__ */ jsxs(Stack$1, { gap: 2, children: [
@@ -2444,15 +2430,19 @@ function RoomCategory({ name, rooms, actions, onAddClick }) {
2444
2430
  children: [
2445
2431
  /* @__PURE__ */ jsx(Text$1, { fz: 12, tt: "capitalize", children: name }),
2446
2432
  /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 8, children: [
2447
- onAddClick && /* @__PURE__ */ jsx(
2433
+ primaryActions && primaryActions.length > 0 && /* @__PURE__ */ jsx(
2448
2434
  Center,
2449
2435
  {
2450
- onClick: (e) => {
2451
- e.stopPropagation();
2452
- onAddClick();
2436
+ onClick: (e) => e.stopPropagation(),
2437
+ sx: {
2438
+ cursor: "pointer",
2439
+ borderRadius: 4,
2440
+ transition: "transform 0.2s ease",
2441
+ "&:hover": {
2442
+ background: "var(--mantine-color-neutralColor-5)"
2443
+ }
2453
2444
  },
2454
- sx: { cursor: "pointer", borderRadius: 4, transition: "transform 0.2s ease", "&:hover": { background: "var(--mantine-color-neutralColor-5)" } },
2455
- children: icon(IconPlus, void 0, "var(--mantine-color-neutralColor-7)")
2445
+ children: /* @__PURE__ */ jsx(MoreMenu, { Icon: icon(IconPlus), items: primaryActions })
2456
2446
  }
2457
2447
  ),
2458
2448
  actions && actions.length > 0 && /* @__PURE__ */ jsx(
@@ -2923,7 +2913,7 @@ function AppShellNavigation({
2923
2913
  }
2924
2914
  return /* @__PURE__ */ jsx(MenuItem, { onMenuItemClick, item }, item.id);
2925
2915
  }),
2926
- roomCategories && roomCategories.length > 0 && /* @__PURE__ */ jsx(Stack$1, { gap: 8, mt: 16, children: roomCategories.map(({ id, name, actions, rooms, onAddClick }) => /* @__PURE__ */ jsx(RoomCategory, { id, name, actions, rooms, onAddClick }, id)) })
2916
+ roomCategories && roomCategories.length > 0 && /* @__PURE__ */ jsx(Stack$1, { gap: 8, mt: 16, children: roomCategories.map(({ id, name, actions, rooms, primaryActions: onAddClick }) => /* @__PURE__ */ jsx(RoomCategory, { id, name, actions, rooms, primaryActions: onAddClick }, id)) })
2927
2917
  ] }) }),
2928
2918
  footerContent && /* @__PURE__ */ jsx(AppShell.Section, { px: 12, py: 10, children: /* @__PURE__ */ jsx(Stack$1, { gap: 5, children: footerContent }) })
2929
2919
  ] })
@@ -6059,13 +6049,13 @@ function ActionButton({ onClick, left, right }) {
6059
6049
  }
6060
6050
  );
6061
6051
  }
6062
- const MainAction = lazy(() => import("./index-DSJ4ojXM.js"));
6063
- const Header$1 = lazy(() => import("./index-DTtlPPm6.js"));
6064
- const Content = lazy(() => import("./index-QUkZftBS.js"));
6052
+ const MainAction = lazy(() => import("./index-DccAmgX1.js"));
6053
+ const Header$1 = lazy(() => import("./index-CEb94eQ3.js"));
6054
+ const Content = lazy(() => import("./index-Dm6B7Yv-.js"));
6065
6055
  const Map = lazy(() => import("./index-D5Ufmf-s.js"));
6066
6056
  const CustomContent = lazy(() => import("./index-DsYjW_4y.js"));
6067
- const Assets = lazy(() => import("./index-BVV0ucIw.js"));
6068
- const Actions = lazy(() => import("./index-Dl7hhKbt.js"));
6057
+ const Assets = lazy(() => import("./index-BHuoPnj7.js"));
6058
+ const Actions = lazy(() => import("./index-Lu5gXTPs.js"));
6069
6059
  const HOVER_BORDER_WIDTH = 1;
6070
6060
  function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
6071
6061
  const wrapperRef = useRef(null);
@@ -11342,4 +11332,4 @@ export {
11342
11332
  CardHero as y,
11343
11333
  CardSelector as z
11344
11334
  };
11345
- //# sourceMappingURL=components-BTh3OZP_.js.map
11335
+ //# sourceMappingURL=components-EXB_BUs5.js.map