@ixo/ui 0.1.13 → 0.1.15

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 (57) hide show
  1. package/dist/.vite/manifest.json +31 -31
  2. package/dist/components/AppShellNavigation/components/AsideResizable.d.ts.map +1 -1
  3. package/dist/components/AppShellNavigation/components/RoomItem.d.ts +2 -1
  4. package/dist/components/AppShellNavigation/components/RoomItem.d.ts.map +1 -1
  5. package/dist/components/MoreMenu/components/Item/types.d.ts +1 -1
  6. package/dist/components/MoreMenu/components/Item/types.d.ts.map +1 -1
  7. package/dist/components/MoreMenu/index.d.ts +1 -1
  8. package/dist/components/MoreMenu/index.d.ts.map +1 -1
  9. package/dist/components/MoreMenu/types.d.ts +1 -0
  10. package/dist/components/MoreMenu/types.d.ts.map +1 -1
  11. package/dist/{components-CJrqVhQR.cjs → components-BWISh0mc.cjs} +41 -18
  12. package/dist/{components-CJrqVhQR.cjs.map → components-BWISh0mc.cjs.map} +1 -1
  13. package/dist/{components-GC_64xlg.js → components-CSb7qSeQ.js} +41 -18
  14. package/dist/{components-GC_64xlg.js.map → components-CSb7qSeQ.js.map} +1 -1
  15. package/dist/export/components.cjs +1 -1
  16. package/dist/export/components.mjs +1 -1
  17. package/dist/{index-BpxUOj0_.js → index-3BXIAJMs.js} +2 -2
  18. package/dist/{index-BpxUOj0_.js.map → index-3BXIAJMs.js.map} +1 -1
  19. package/dist/{index-CbIehUPm.js → index-79BN9bQp.js} +2 -2
  20. package/dist/{index-CbIehUPm.js.map → index-79BN9bQp.js.map} +1 -1
  21. package/dist/{index-COjoiQ6v.js → index-BoyyPoe7.js} +2 -2
  22. package/dist/{index-COjoiQ6v.js.map → index-BoyyPoe7.js.map} +1 -1
  23. package/dist/{index-DhuIVvP-.js → index-CG7ua6U5.js} +2 -2
  24. package/dist/{index-DhuIVvP-.js.map → index-CG7ua6U5.js.map} +1 -1
  25. package/dist/{index-D4hjQu7o.cjs → index-CcNuU5D_.cjs} +3 -3
  26. package/dist/{index-D4hjQu7o.cjs.map → index-CcNuU5D_.cjs.map} +1 -1
  27. package/dist/{index-BpkeS09U.cjs → index-CfxTeub_.cjs} +2 -2
  28. package/dist/{index-BpkeS09U.cjs.map → index-CfxTeub_.cjs.map} +1 -1
  29. package/dist/{index-C6Lz1EwO.cjs → index-CtRJgMrQ.cjs} +2 -2
  30. package/dist/{index-C6Lz1EwO.cjs.map → index-CtRJgMrQ.cjs.map} +1 -1
  31. package/dist/{index-BOA1rttV.cjs → index-D9g1TKno.cjs} +2 -2
  32. package/dist/{index-BOA1rttV.cjs.map → index-D9g1TKno.cjs.map} +1 -1
  33. package/dist/{index-CF95Yjpx.cjs → index-DKRrekUN.cjs} +2 -2
  34. package/dist/{index-CF95Yjpx.cjs.map → index-DKRrekUN.cjs.map} +1 -1
  35. package/dist/{index-CKLLUc_t.cjs → index-DU7qOQm4.cjs} +3 -3
  36. package/dist/{index-CKLLUc_t.cjs.map → index-DU7qOQm4.cjs.map} +1 -1
  37. package/dist/{index-mBNnN5WH.js → index-Dc5K_Tpd.js} +2 -2
  38. package/dist/{index-mBNnN5WH.js.map → index-Dc5K_Tpd.js.map} +1 -1
  39. package/dist/{index-C4p0n2GU.js → index-Dg03DAzQ.js} +2 -2
  40. package/dist/{index-C4p0n2GU.js.map → index-Dg03DAzQ.js.map} +1 -1
  41. package/dist/{index-BZJenoN5.js → index-Dg3Be72o.js} +2 -2
  42. package/dist/{index-BZJenoN5.js.map → index-Dg3Be72o.js.map} +1 -1
  43. package/dist/{index-CLu6bi6f.cjs → index-DkO3nUqT.cjs} +2 -2
  44. package/dist/{index-CLu6bi6f.cjs.map → index-DkO3nUqT.cjs.map} +1 -1
  45. package/dist/{index-IBMUjXjl.js → index-DwUyDHTC.js} +2 -2
  46. package/dist/{index-IBMUjXjl.js.map → index-DwUyDHTC.js.map} +1 -1
  47. package/dist/{index-WKkZDhwm.js → index-F_vabNrb.js} +3 -3
  48. package/dist/{index-WKkZDhwm.js.map → index-F_vabNrb.js.map} +1 -1
  49. package/dist/{index-DRGAD1wN.cjs → index-QE9Jy5-f.cjs} +2 -2
  50. package/dist/{index-DRGAD1wN.cjs.map → index-QE9Jy5-f.cjs.map} +1 -1
  51. package/dist/{index-9ec-F2tJ.js → index-QRDAEcwI.js} +3 -3
  52. package/dist/{index-9ec-F2tJ.js.map → index-QRDAEcwI.js.map} +1 -1
  53. package/dist/{index-MS9bqnlO.cjs → index-qvBz31v8.cjs} +2 -2
  54. package/dist/{index-MS9bqnlO.cjs.map → index-qvBz31v8.cjs.map} +1 -1
  55. package/dist/{index-CxwDOTKU.cjs → index-ySZqJOLy.cjs} +2 -2
  56. package/dist/{index-CxwDOTKU.cjs.map → index-ySZqJOLy.cjs.map} +1 -1
  57. package/package.json +1 -1
@@ -823,8 +823,8 @@ function AccordionTable({
823
823
  }
824
824
  );
825
825
  }
826
- const Header$3 = lazy(() => import("./index-C4p0n2GU.js"));
827
- const Footer = lazy(() => import("./index-9ec-F2tJ.js"));
826
+ const Header$3 = lazy(() => import("./index-Dg03DAzQ.js"));
827
+ const Footer = lazy(() => import("./index-QRDAEcwI.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-CbIehUPm.js"));
911
+ const Header$2 = lazy(() => import("./index-79BN9bQp.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-mBNnN5WH.js"));
1346
+ const Badge = lazy(() => import("./index-Dc5K_Tpd.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);
@@ -1950,13 +1950,17 @@ function Item({ icon: icon2, label, disabled, onClick }) {
1950
1950
  }
1951
1951
  );
1952
1952
  }
1953
- function MoreMenu({ items, controlColor = "primary", Icon }) {
1953
+ function MoreMenu({ items, controlColor = "primary", Icon, onOpenChange }) {
1954
1954
  const [opened, setOpened] = useState(false);
1955
+ const handleOpenChange = (value) => {
1956
+ setOpened(value);
1957
+ onOpenChange?.(value);
1958
+ };
1955
1959
  return /* @__PURE__ */ jsxs(
1956
1960
  Popover,
1957
1961
  {
1958
1962
  opened,
1959
- onChange: setOpened,
1963
+ onChange: handleOpenChange,
1960
1964
  closeOnClickOutside: true,
1961
1965
  styles: {
1962
1966
  dropdown: {
@@ -1972,7 +1976,7 @@ function MoreMenu({ items, controlColor = "primary", Icon }) {
1972
1976
  position: "right-start",
1973
1977
  shadow: "md",
1974
1978
  children: [
1975
- /* @__PURE__ */ jsx(Popover.Target, { children: /* @__PURE__ */ jsx(Center, { onClick: () => setOpened((o) => !o), children: Icon || /* @__PURE__ */ jsx(EllipsisVSolid, { size: 20, color: controlColor }) }) }),
1979
+ /* @__PURE__ */ jsx(Popover.Target, { children: /* @__PURE__ */ jsx(Center, { onClick: () => handleOpenChange(!opened), children: Icon || /* @__PURE__ */ jsx(EllipsisVSolid, { size: 20, color: controlColor }) }) }),
1976
1980
  /* @__PURE__ */ jsxs(Popover.Dropdown, { children: [
1977
1981
  /* @__PURE__ */ jsx(FocusTrap.InitialFocus, {}),
1978
1982
  /* @__PURE__ */ jsx(Text$1, { ml: 12, mb: 10, fz: 14, c: "neutralColor.7", children: "Actions" }),
@@ -1985,7 +1989,7 @@ function MoreMenu({ items, controlColor = "primary", Icon }) {
1985
1989
  active: item.active,
1986
1990
  onClick: () => {
1987
1991
  item.onClick();
1988
- setOpened(false);
1992
+ handleOpenChange(false);
1989
1993
  }
1990
1994
  },
1991
1995
  item.label
@@ -2208,12 +2212,14 @@ function AsideResizable({ children, navbarWidth, asideMaximized, asideCollapsed
2208
2212
  onWidthChange?.(constrainedWidth);
2209
2213
  };
2210
2214
  useEffect(() => {
2215
+ if (isMobile) return;
2211
2216
  if (width === MIN_WIDTH && !asideCollapsed && onAsideToggle && !isShowingRef.current) {
2212
2217
  clearListeners();
2213
2218
  onAsideToggle();
2214
2219
  }
2215
- }, [width, asideCollapsed]);
2220
+ }, [width, asideCollapsed, isMobile]);
2216
2221
  useEffect(() => {
2222
+ if (isMobile) return;
2217
2223
  const maxWidth = Math.min(window.innerWidth - 600, MAX_WIDTH);
2218
2224
  if (width >= maxWidth && onMaxExpand && !hasFiredMaxExpand.current) {
2219
2225
  hasFiredMaxExpand.current = true;
@@ -2222,7 +2228,7 @@ function AsideResizable({ children, navbarWidth, asideMaximized, asideCollapsed
2222
2228
  } else if (width < maxWidth) {
2223
2229
  hasFiredMaxExpand.current = false;
2224
2230
  }
2225
- }, [width, onMaxExpand]);
2231
+ }, [width, onMaxExpand, isMobile]);
2226
2232
  useEffect(() => {
2227
2233
  const handleWindowResize = () => {
2228
2234
  const newMaxWidth = Math.min(window.innerWidth - 600, MAX_WIDTH);
@@ -2326,6 +2332,8 @@ function NavigationItemSkeleton() {
2326
2332
  }
2327
2333
  function RoomItem({ room, navbarWidth }) {
2328
2334
  const { hovered, ref } = useHover();
2335
+ const [menuOpened, setMenuOpened] = useState(false);
2336
+ const showActions = hovered || menuOpened;
2329
2337
  const renderIcon = () => {
2330
2338
  if (!room.icon) return null;
2331
2339
  if (typeof room.icon === "string") {
@@ -2350,7 +2358,7 @@ function RoomItem({ room, navbarWidth }) {
2350
2358
  style: {
2351
2359
  cursor: "pointer",
2352
2360
  borderRadius: 6,
2353
- backgroundColor: room.isActive || hovered ? "var(--mantine-color-neutralColor-6)" : "transparent",
2361
+ backgroundColor: room.isActive || showActions ? "var(--mantine-color-neutralColor-6)" : "transparent",
2354
2362
  transition: "all 0.15s ease"
2355
2363
  },
2356
2364
  onClick: () => room.onClick(room.id),
@@ -2359,7 +2367,7 @@ function RoomItem({ room, navbarWidth }) {
2359
2367
  renderIcon(),
2360
2368
  /* @__PURE__ */ jsx(Text$1, { c: room.isActive ? "neutralColor.8" : "neutralColor.7", fz: 14, truncate: true, style: { maxWidth: textMaxWidth }, children: room.name })
2361
2369
  ] }),
2362
- hovered && /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 4, children: [
2370
+ showActions && /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 4, children: [
2363
2371
  room.onActionClick && /* @__PURE__ */ jsx(Tooltip$4, { label: room.onActionClick.label, children: /* @__PURE__ */ jsx(
2364
2372
  Center,
2365
2373
  {
@@ -2371,6 +2379,21 @@ function RoomItem({ room, navbarWidth }) {
2371
2379
  children: icon(room.onActionClick.icon, void 0, "var(--mantine-color-neutralColor-7)")
2372
2380
  }
2373
2381
  ) }),
2382
+ room.actions && room.actions.length > 0 && /* @__PURE__ */ jsx(
2383
+ Center,
2384
+ {
2385
+ onClick: (e) => e.stopPropagation(),
2386
+ sx: {
2387
+ cursor: "pointer",
2388
+ borderRadius: 4,
2389
+ transition: "transform 0.2s ease",
2390
+ "&:hover": {
2391
+ background: "var(--mantine-color-neutralColor-5)"
2392
+ }
2393
+ },
2394
+ children: /* @__PURE__ */ jsx(MoreMenu, { items: room.actions, controlColor: "secondary", onOpenChange: setMenuOpened })
2395
+ }
2396
+ ),
2374
2397
  room.tag && room.tagIcon && /* @__PURE__ */ jsx(Tooltip$4, { label: room.tag, children: icon(room.tagIcon, void 0, "var(--mantine-color-neutralColor-7)") })
2375
2398
  ] })
2376
2399
  ]
@@ -6094,13 +6117,13 @@ function ActionButton({ onClick, left, right }) {
6094
6117
  }
6095
6118
  );
6096
6119
  }
6097
- const MainAction = lazy(() => import("./index-BZJenoN5.js"));
6098
- const Header$1 = lazy(() => import("./index-IBMUjXjl.js"));
6099
- const Content = lazy(() => import("./index-BpxUOj0_.js"));
6120
+ const MainAction = lazy(() => import("./index-Dg3Be72o.js"));
6121
+ const Header$1 = lazy(() => import("./index-DwUyDHTC.js"));
6122
+ const Content = lazy(() => import("./index-3BXIAJMs.js"));
6100
6123
  const Map = lazy(() => import("./index-D5Ufmf-s.js"));
6101
6124
  const CustomContent = lazy(() => import("./index-DsYjW_4y.js"));
6102
- const Assets = lazy(() => import("./index-DhuIVvP-.js"));
6103
- const Actions = lazy(() => import("./index-WKkZDhwm.js"));
6125
+ const Assets = lazy(() => import("./index-CG7ua6U5.js"));
6126
+ const Actions = lazy(() => import("./index-F_vabNrb.js"));
6104
6127
  const HOVER_BORDER_WIDTH = 1;
6105
6128
  function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
6106
6129
  const wrapperRef = useRef(null);
@@ -11399,4 +11422,4 @@ export {
11399
11422
  CardHero as y,
11400
11423
  CardSelector as z
11401
11424
  };
11402
- //# sourceMappingURL=components-GC_64xlg.js.map
11425
+ //# sourceMappingURL=components-CSb7qSeQ.js.map