@ixo/ui 0.0.9 → 0.0.10

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 (60) hide show
  1. package/dist/.vite/manifest.json +43 -43
  2. package/dist/{UsersSolid-DNy80FwB.js → UsersSolid-CyNyz_eF.js} +42 -27
  3. package/dist/UsersSolid-CyNyz_eF.js.map +1 -0
  4. package/dist/{UsersSolid-B9DXA9NX.cjs → UsersSolid-peS-I-xF.cjs} +16 -1
  5. package/dist/UsersSolid-peS-I-xF.cjs.map +1 -0
  6. package/dist/components/AppShellNavigation/index.d.ts +7 -2
  7. package/dist/components/AppShellNavigation/index.d.ts.map +1 -1
  8. package/dist/{components-DZWScQb-.cjs → components-1e0JgTup.cjs} +64 -26
  9. package/dist/{components-DZWScQb-.cjs.map → components-1e0JgTup.cjs.map} +1 -1
  10. package/dist/{components-DzTVsvZR.js → components-C9l4Wr-7.js} +65 -27
  11. package/dist/{components-DzTVsvZR.js.map → components-C9l4Wr-7.js.map} +1 -1
  12. package/dist/export/components.cjs +1 -1
  13. package/dist/export/components.mjs +1 -1
  14. package/dist/export/icons/index.cjs +2 -16
  15. package/dist/export/icons/index.cjs.map +1 -1
  16. package/dist/export/icons/index.mjs +29 -43
  17. package/dist/export/icons/index.mjs.map +1 -1
  18. package/dist/{index-BC_7C1s0.cjs → index-2EWgsBcw.cjs} +3 -3
  19. package/dist/{index-BC_7C1s0.cjs.map → index-2EWgsBcw.cjs.map} +1 -1
  20. package/dist/{index-DIPzU6oa.js → index-BAdhUXvd.js} +2 -2
  21. package/dist/{index-DIPzU6oa.js.map → index-BAdhUXvd.js.map} +1 -1
  22. package/dist/{index-CGhflycE.cjs → index-BcO2AQf8.cjs} +2 -2
  23. package/dist/{index-CGhflycE.cjs.map → index-BcO2AQf8.cjs.map} +1 -1
  24. package/dist/{index-DYbt2pjm.js → index-BdOr8L1R.js} +3 -3
  25. package/dist/{index-DYbt2pjm.js.map → index-BdOr8L1R.js.map} +1 -1
  26. package/dist/{index-D53wpwI2.js → index-BeQ6VdsQ.js} +2 -2
  27. package/dist/{index-D53wpwI2.js.map → index-BeQ6VdsQ.js.map} +1 -1
  28. package/dist/{index-tddGE9xT.cjs → index-BpX2EIfo.cjs} +2 -2
  29. package/dist/{index-tddGE9xT.cjs.map → index-BpX2EIfo.cjs.map} +1 -1
  30. package/dist/{index-G8i06g3O.js → index-Bu6ceg5V.js} +2 -2
  31. package/dist/{index-G8i06g3O.js.map → index-Bu6ceg5V.js.map} +1 -1
  32. package/dist/{index-BVNTRXVA.js → index-C7NdTITy.js} +2 -2
  33. package/dist/{index-BVNTRXVA.js.map → index-C7NdTITy.js.map} +1 -1
  34. package/dist/{index-CXEK4K6T.cjs → index-CQM9U16K.cjs} +2 -2
  35. package/dist/{index-CXEK4K6T.cjs.map → index-CQM9U16K.cjs.map} +1 -1
  36. package/dist/{index-ssANWiHO.cjs → index-CVA8XdVl.cjs} +2 -2
  37. package/dist/{index-ssANWiHO.cjs.map → index-CVA8XdVl.cjs.map} +1 -1
  38. package/dist/{index-DWEzVsG1.js → index-CefIazVm.js} +2 -2
  39. package/dist/{index-DWEzVsG1.js.map → index-CefIazVm.js.map} +1 -1
  40. package/dist/{index-JnZlYiYC.cjs → index-D826RpJ6.cjs} +2 -2
  41. package/dist/{index-JnZlYiYC.cjs.map → index-D826RpJ6.cjs.map} +1 -1
  42. package/dist/{index-DKXweZ7H.js → index-DEmmiaWG.js} +3 -3
  43. package/dist/{index-DKXweZ7H.js.map → index-DEmmiaWG.js.map} +1 -1
  44. package/dist/{index-BmWX35JS.cjs → index-DHFMC4KW.cjs} +2 -2
  45. package/dist/{index-BmWX35JS.cjs.map → index-DHFMC4KW.cjs.map} +1 -1
  46. package/dist/{index-Cug-jyVN.cjs → index-DPJVccbq.cjs} +3 -3
  47. package/dist/{index-Cug-jyVN.cjs.map → index-DPJVccbq.cjs.map} +1 -1
  48. package/dist/{index-BRK_Dgig.cjs → index-Dkp5e_L6.cjs} +3 -3
  49. package/dist/{index-BRK_Dgig.cjs.map → index-Dkp5e_L6.cjs.map} +1 -1
  50. package/dist/{index-CJGghPVZ.js → index-DlhDUbCZ.js} +3 -3
  51. package/dist/{index-CJGghPVZ.js.map → index-DlhDUbCZ.js.map} +1 -1
  52. package/dist/{index-p092jpgE.js → index-DufBe3H7.js} +2 -2
  53. package/dist/{index-p092jpgE.js.map → index-DufBe3H7.js.map} +1 -1
  54. package/dist/{index-QdzH132w.js → index-JXXJd3OF.js} +2 -2
  55. package/dist/{index-QdzH132w.js.map → index-JXXJd3OF.js.map} +1 -1
  56. package/dist/{index-H6le64x9.cjs → index-sebyZBWE.cjs} +2 -2
  57. package/dist/{index-H6le64x9.cjs.map → index-sebyZBWE.cjs.map} +1 -1
  58. package/package.json +1 -1
  59. package/dist/UsersSolid-B9DXA9NX.cjs.map +0 -1
  60. package/dist/UsersSolid-DNy80FwB.js.map +0 -1
@@ -1,10 +1,10 @@
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, d as SettingsBarSolid, e as AngleRightSolid, f as ArrowLeftSolid, G as Globe, h as PanelLeftSolid, i as AngleLeftSolid, D as Dashboard, j as Groups, k as UserCircleSolid, l as Assets$1, m as Claims, n as Accounts, H as HistorySolid, 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, M 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 Expand, N as LeafSolid, Q as ArrowDownSolid, R as ArrowRightSolid, T as Play, V as CheckCircle, W as Events, X as ThumbsUpSolid, Y as CommentsSolid, Z as CopySolid, _ as Hourglass, $ as Act, a0 as Info$1, a1 as ClaimsW, a2 as TachometerAltSolid, a3 as UserCogSolid, a4 as UsersSolid, a5 as EllipsisHSolid } from "./UsersSolid-DNy80FwB.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, M as MinusCircleSolid, d as SettingsBarSolid, e as AngleRightSolid, f as ArrowLeftSolid, G as Globe, h as PanelLeftSolid, i as AngleLeftSolid, D as Dashboard, j as Groups, k as UserCircleSolid, l as Assets$1, m as Claims, n as Accounts, H as HistorySolid, 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 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-CyNyz_eF.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
- import { Accordion as Accordion$1, Box, Image, Popover, Text as Text$1, AppShell, Stack as Stack$1, Center, Divider, Paper, Badge as Badge$1 } from "@mantine/core";
7
+ import { Accordion as Accordion$1, Box, Image, Popover, Text as Text$1, AppShell, Stack as Stack$1, Center, Divider, Badge as Badge$1 } 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-DYbt2pjm.js"));
778
- const Footer = lazy(() => import("./index-DKXweZ7H.js"));
777
+ const Header$3 = lazy(() => import("./index-BdOr8L1R.js"));
778
+ const Footer = lazy(() => import("./index-DEmmiaWG.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-DIPzU6oa.js"));
862
+ const Header$2 = lazy(() => import("./index-BAdhUXvd.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-BVNTRXVA.js"));
1297
+ const Badge = lazy(() => import("./index-C7NdTITy.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);
@@ -2136,25 +2136,43 @@ function Avatar({ src, rounded = true, size = 62, did }) {
2136
2136
  }
2137
2137
  return /* @__PURE__ */ jsx(User, { css: ({ text }) => ({ ...css2, backgroundColor: text.secondary }) });
2138
2138
  }
2139
- function SpaceItem({ icon, id, onClick }) {
2140
- const { hovered, ref } = useHover();
2139
+ function SelectedIndicator() {
2141
2140
  const theme = useUITheme();
2142
2141
  return /* @__PURE__ */ jsx(
2142
+ "div",
2143
+ {
2144
+ style: {
2145
+ position: "absolute",
2146
+ left: -8,
2147
+ width: 4,
2148
+ height: 30,
2149
+ backgroundColor: theme.neutral.whiteFull,
2150
+ borderRadius: 4
2151
+ }
2152
+ }
2153
+ );
2154
+ }
2155
+ function SpaceItem({ icon, id, selectedSpace, onClick }) {
2156
+ const { hovered, ref } = useHover();
2157
+ const theme = useUITheme();
2158
+ const isSelected = selectedSpace === id;
2159
+ return /* @__PURE__ */ jsxs(
2143
2160
  Center,
2144
2161
  {
2145
2162
  ref,
2146
2163
  sx: {
2147
2164
  cursor: "pointer",
2148
- borderRadius: 24,
2149
- transform: hovered ? "scale(1.1)" : "scale(1)",
2150
- transition: "transform 0.2s ease"
2165
+ borderRadius: 24
2151
2166
  },
2152
2167
  pos: "relative",
2153
- bg: hovered ? theme.neutral.transparent10 : theme.bg.navIconsBg,
2168
+ bg: hovered ? theme.neutral.transparent30 : theme.bg.navIconsBg,
2154
2169
  mih: 40,
2155
2170
  w: 40,
2156
2171
  onClick: () => onClick(id),
2157
- children: typeof icon === "string" ? /* @__PURE__ */ jsx(Image, { radius: 24, src: icon, w: 32, h: 32 }) : icon
2172
+ children: [
2173
+ typeof icon === "string" ? /* @__PURE__ */ jsx(Image, { radius: 24, src: icon, w: 32, h: 32 }) : icon,
2174
+ isSelected && /* @__PURE__ */ jsx(SelectedIndicator, {})
2175
+ ]
2158
2176
  }
2159
2177
  );
2160
2178
  }
@@ -2302,9 +2320,11 @@ function AppShellNavigation({
2302
2320
  spaces,
2303
2321
  pageItem,
2304
2322
  selectedSpace,
2323
+ temporarySpace,
2305
2324
  menuItems,
2306
2325
  companyIcon,
2307
2326
  onAddSpaceClick,
2327
+ onMinusSpaceClick,
2308
2328
  avatarIcon,
2309
2329
  onMenuItemClick,
2310
2330
  onSettingsIconClick,
@@ -2333,10 +2353,30 @@ function AppShellNavigation({
2333
2353
  children: [
2334
2354
  /* @__PURE__ */ jsx(AppShell.Navbar, { children: /* @__PURE__ */ jsxs(Flex, { style: { height: "100%" }, children: [
2335
2355
  /* @__PURE__ */ jsxs(Stack$1, { p: 8, w: 56, justify: "space-between", h: "100%", bg: theme.bg.navSpaces, children: [
2336
- /* @__PURE__ */ jsxs(Stack$1, { align: "center", style: { flex: 1, overflowY: "auto", overflowX: "hidden" }, gap: 8, children: [
2337
- /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, h: 40, w: 40, onClick: companyIcon.onClick, children: typeof companyIcon.icon === "string" ? /* @__PURE__ */ jsx(Image, { radius: 24, src: companyIcon.icon, w: 32, h: 32 }) : companyIcon.icon }),
2338
- avatarIcon && /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: theme.bg.navIconsBg, h: 40, w: 40, onClick: avatarIcon.onClick, children: typeof avatarIcon.icon === "string" ? /* @__PURE__ */ jsx(Image, { radius: 24, src: avatarIcon.icon, w: 32, h: 32 }) : avatarIcon.icon }),
2356
+ /* @__PURE__ */ jsxs(Stack$1, { align: "center", style: { flex: 1 }, gap: 8, children: [
2357
+ /* @__PURE__ */ jsxs(Center, { sx: { cursor: "pointer", borderRadius: 24 }, pos: "relative", h: 40, w: 40, onClick: companyIcon.onClick, children: [
2358
+ typeof companyIcon.icon === "string" ? /* @__PURE__ */ jsx(Image, { radius: 24, src: companyIcon.icon, w: 32, h: 32 }) : companyIcon.icon,
2359
+ companyIcon.isSelected && /* @__PURE__ */ jsx(SelectedIndicator, {})
2360
+ ] }),
2361
+ avatarIcon && /* @__PURE__ */ jsxs(Center, { sx: { cursor: "pointer", borderRadius: 24 }, pos: "relative", bg: theme.bg.navIconsBg, h: 40, w: 40, onClick: avatarIcon.onClick, children: [
2362
+ typeof avatarIcon.icon === "string" ? /* @__PURE__ */ jsx(Image, { radius: 24, src: avatarIcon.icon, w: 32, h: 32 }) : avatarIcon.icon,
2363
+ avatarIcon.isSelected && /* @__PURE__ */ jsx(SelectedIndicator, {})
2364
+ ] }),
2339
2365
  /* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color: theme.neutral.transparent10 }),
2366
+ temporarySpace && /* @__PURE__ */ jsxs(Fragment, { children: [
2367
+ /* @__PURE__ */ jsx(
2368
+ SpaceItem,
2369
+ {
2370
+ selectedSpace,
2371
+ icon: temporarySpace.icon,
2372
+ name: temporarySpace.name,
2373
+ id: temporarySpace.id,
2374
+ onClick: temporarySpace.onClick
2375
+ },
2376
+ temporarySpace.id
2377
+ ),
2378
+ /* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color: theme.neutral.transparent10 })
2379
+ ] }),
2340
2380
  /* @__PURE__ */ jsx(
2341
2381
  Stack$1,
2342
2382
  {
@@ -2354,14 +2394,12 @@ function AppShellNavigation({
2354
2394
  display: "none"
2355
2395
  }
2356
2396
  },
2357
- children: spaces.map(({ icon, id, name, onClick }, i) => /* @__PURE__ */ jsxs(Fragment, { children: [
2358
- selectedSpace === id && /* @__PURE__ */ jsx(Paper, { bg: theme.neutral.whiteFull, h: 30, w: 4, pos: "absolute", left: 0, top: 116 + i * 49.5 }),
2359
- /* @__PURE__ */ jsx(SpaceItem, { icon, name, id, onClick }, id)
2360
- ] }))
2397
+ children: spaces.map(({ icon, id, name, onClick }) => /* @__PURE__ */ jsx(SpaceItem, { selectedSpace, icon, name, id, onClick }, id))
2361
2398
  }
2362
2399
  )
2363
2400
  ] }),
2364
- /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: theme.bg.navIconsBg, h: 40, w: 40, onClick: onAddSpaceClick, children: /* @__PURE__ */ jsx(PlusSolid, { color: "secondary" }) }),
2401
+ onAddSpaceClick && /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: theme.bg.navIconsBg, h: 40, w: 40, onClick: onAddSpaceClick, children: /* @__PURE__ */ jsx(PlusSolid, { color: "secondary" }) }),
2402
+ onMinusSpaceClick && /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: theme.bg.navIconsBg, h: 40, w: 40, onClick: onMinusSpaceClick, children: /* @__PURE__ */ jsx(MinusCircleSolid, { color: "secondary" }) }),
2365
2403
  /* @__PURE__ */ jsxs(Stack$1, { align: "center", gap: 8, children: [
2366
2404
  /* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color: theme.neutral.transparent10 }),
2367
2405
  /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: theme.bg.navIconsBg, h: 40, w: 40, onClick: onSettingsIconClick, children: /* @__PURE__ */ jsx(SettingsBarSolid, { size: 22, color: "secondary" }) }),
@@ -5315,13 +5353,13 @@ function ActionButton({ onClick, left, right }) {
5315
5353
  }
5316
5354
  );
5317
5355
  }
5318
- const MainAction = lazy(() => import("./index-DWEzVsG1.js"));
5319
- const Header$1 = lazy(() => import("./index-G8i06g3O.js"));
5320
- const Content = lazy(() => import("./index-D53wpwI2.js"));
5356
+ const MainAction = lazy(() => import("./index-CefIazVm.js"));
5357
+ const Header$1 = lazy(() => import("./index-Bu6ceg5V.js"));
5358
+ const Content = lazy(() => import("./index-BeQ6VdsQ.js"));
5321
5359
  const Map = lazy(() => import("./index-D5Ufmf-s.js"));
5322
5360
  const CustomContent = lazy(() => import("./index-DsYjW_4y.js"));
5323
- const Assets = lazy(() => import("./index-p092jpgE.js"));
5324
- const Actions = lazy(() => import("./index-CJGghPVZ.js"));
5361
+ const Assets = lazy(() => import("./index-DufBe3H7.js"));
5362
+ const Actions = lazy(() => import("./index-DlhDUbCZ.js"));
5325
5363
  const HOVER_BORDER_WIDTH = 1;
5326
5364
  function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
5327
5365
  const wrapperRef = useRef(null);
@@ -10635,4 +10673,4 @@ export {
10635
10673
  CardSelector as y,
10636
10674
  CardOutput as z
10637
10675
  };
10638
- //# sourceMappingURL=components-DzTVsvZR.js.map
10676
+ //# sourceMappingURL=components-C9l4Wr-7.js.map