@ixo/ui 0.0.4 → 0.0.6

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 (78) hide show
  1. package/dist/.vite/manifest.json +50 -50
  2. package/dist/{UsersSolid-Cr_JcwNT.cjs → UsersSolid-Bj2vwEHq.cjs} +1 -33
  3. package/dist/UsersSolid-Bj2vwEHq.cjs.map +1 -0
  4. package/dist/{UsersSolid-CEMcHCoD.js → UsersSolid-CYOWcNJV.js} +42 -74
  5. package/dist/{UsersSolid-Cr_JcwNT.cjs.map → UsersSolid-CYOWcNJV.js.map} +1 -1
  6. package/dist/components/AppShellNavigation/index.d.ts +46 -0
  7. package/dist/components/AppShellNavigation/index.d.ts.map +1 -0
  8. package/dist/components/NavigationBar/MoreModal.d.ts +4 -2
  9. package/dist/components/NavigationBar/MoreModal.d.ts.map +1 -1
  10. package/dist/components/NavigationBar/NavigationBar.d.ts.map +1 -1
  11. package/dist/{components-_1aj7fli.cjs → components-2IYis_pS.cjs} +305 -139
  12. package/dist/components-2IYis_pS.cjs.map +1 -0
  13. package/dist/{components-qFMVWjVp.js → components-BoLr9Qow.js} +371 -205
  14. package/dist/components-BoLr9Qow.js.map +1 -0
  15. package/dist/constants/themes.d.ts.map +1 -1
  16. package/dist/export/components.cjs +2 -1
  17. package/dist/export/components.cjs.map +1 -1
  18. package/dist/export/components.d.ts +2 -0
  19. package/dist/export/components.d.ts.map +1 -1
  20. package/dist/export/components.mjs +67 -66
  21. package/dist/export/icons/index.cjs +33 -3
  22. package/dist/export/icons/index.cjs.map +1 -1
  23. package/dist/export/icons/index.mjs +75 -45
  24. package/dist/export/icons/index.mjs.map +1 -1
  25. package/dist/export/themes.cjs +1 -1
  26. package/dist/export/themes.mjs +1 -1
  27. package/dist/{index-Buc_qqM8.js → index-2RkJbTMY.js} +2 -2
  28. package/dist/{index-Buc_qqM8.js.map → index-2RkJbTMY.js.map} +1 -1
  29. package/dist/{index-DOi5Kjo8.cjs → index-7ENn--8R.cjs} +2 -2
  30. package/dist/{index-DOi5Kjo8.cjs.map → index-7ENn--8R.cjs.map} +1 -1
  31. package/dist/{index-C6py_EuP.js → index-7eiS7IVr.js} +2 -2
  32. package/dist/{index-C6py_EuP.js.map → index-7eiS7IVr.js.map} +1 -1
  33. package/dist/{index-CDhhze5V.cjs → index-B6xg69Dq.cjs} +2 -2
  34. package/dist/{index-CDhhze5V.cjs.map → index-B6xg69Dq.cjs.map} +1 -1
  35. package/dist/{index-nO1TT3Hv.cjs → index-BViyRAH_.cjs} +3 -3
  36. package/dist/{index-nO1TT3Hv.cjs.map → index-BViyRAH_.cjs.map} +1 -1
  37. package/dist/{index-sTelSbrd.js → index-Bd5Hg5BP.js} +2 -2
  38. package/dist/{index-sTelSbrd.js.map → index-Bd5Hg5BP.js.map} +1 -1
  39. package/dist/{index-BAoRqihu.js → index-BfkAX8vS.js} +2 -2
  40. package/dist/{index-BAoRqihu.js.map → index-BfkAX8vS.js.map} +1 -1
  41. package/dist/{index-yE1fBF8R.js → index-BwK5-98B.js} +2 -2
  42. package/dist/{index-yE1fBF8R.js.map → index-BwK5-98B.js.map} +1 -1
  43. package/dist/{index-BRCeR851.cjs → index-C68HB9Av.cjs} +2 -2
  44. package/dist/{index-BRCeR851.cjs.map → index-C68HB9Av.cjs.map} +1 -1
  45. package/dist/{index-4Ok7zUt7.js → index-CNWC1hG3.js} +3 -3
  46. package/dist/{index-4Ok7zUt7.js.map → index-CNWC1hG3.js.map} +1 -1
  47. package/dist/{index-qhANrzdI.js → index-D-yx5xCK.js} +3 -3
  48. package/dist/{index-qhANrzdI.js.map → index-D-yx5xCK.js.map} +1 -1
  49. package/dist/{index-CcgvizQl.cjs → index-D9Jjiwns.cjs} +2 -2
  50. package/dist/{index-CcgvizQl.cjs.map → index-D9Jjiwns.cjs.map} +1 -1
  51. package/dist/{index-BAhWhzU2.cjs → index-DBvgEa5H.cjs} +3 -3
  52. package/dist/{index-BAhWhzU2.cjs.map → index-DBvgEa5H.cjs.map} +1 -1
  53. package/dist/{index-DeBEdBiR.js → index-DRT7h4xd.js} +2 -2
  54. package/dist/{index-DeBEdBiR.js.map → index-DRT7h4xd.js.map} +1 -1
  55. package/dist/{index-DGfDxTQ6.cjs → index-D_Sg8YF7.cjs} +2 -2
  56. package/dist/{index-DGfDxTQ6.cjs.map → index-D_Sg8YF7.cjs.map} +1 -1
  57. package/dist/{index-9wbX0zfU.cjs → index-Dit9UCpC.cjs} +2 -2
  58. package/dist/{index-9wbX0zfU.cjs.map → index-Dit9UCpC.cjs.map} +1 -1
  59. package/dist/{index-B-QsOYPK.cjs → index-DoeAXBYv.cjs} +2 -2
  60. package/dist/{index-B-QsOYPK.cjs.map → index-DoeAXBYv.cjs.map} +1 -1
  61. package/dist/{index-DQYpSmzE.js → index-GZOZ7L0s.js} +3 -3
  62. package/dist/{index-DQYpSmzE.js.map → index-GZOZ7L0s.js.map} +1 -1
  63. package/dist/{index-r8jIjbnw.cjs → index-Jt88FVTH.cjs} +3 -3
  64. package/dist/{index-r8jIjbnw.cjs.map → index-Jt88FVTH.cjs.map} +1 -1
  65. package/dist/{index-DkjLBaSk.js → index-ufMtBCkV.js} +2 -2
  66. package/dist/{index-DkjLBaSk.js.map → index-ufMtBCkV.js.map} +1 -1
  67. package/dist/{themes-BxAZpKEj.js → themes-B3gRP8Wm.js} +3 -1
  68. package/dist/themes-B3gRP8Wm.js.map +1 -0
  69. package/dist/{themes-ssj6M2ml.cjs → themes-DxTEP-Kl.cjs} +3 -1
  70. package/dist/themes-DxTEP-Kl.cjs.map +1 -0
  71. package/dist/types/UITheme.d.ts +2 -0
  72. package/dist/types/UITheme.d.ts.map +1 -1
  73. package/package.json +1 -1
  74. package/dist/UsersSolid-CEMcHCoD.js.map +0 -1
  75. package/dist/components-_1aj7fli.cjs.map +0 -1
  76. package/dist/components-qFMVWjVp.js.map +0 -1
  77. package/dist/themes-BxAZpKEj.js.map +0 -1
  78. package/dist/themes-ssj6M2ml.cjs.map +0 -1
@@ -1,23 +1,23 @@
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, G as Globe, D as Dashboard, d as Groups, e as UserCircleSolid, f as Assets$1, h as Claims, i as Accounts, H as HistorySolid, j as LinkedResources, k as Proposals, I as ImpactCredits, l as GoTo, m as Share, n as PiePiece, o as ImpactCertificates, p as CommentDotsSolid, q as CommentAltSolid, M as MicrophoneSolid, r as Command, s as ArrowCircleRightSolid, t as Protocols, u as Investments, O as Oracles, v as Projects, w as Daos, x as Star, y as AngleLeftSolid, z as AngleRightSolid, B as Expand, F as LeafSolid, J as ArrowDownSolid, K as ArrowLeftSolid, N as ArrowRightSolid, Q as Play, R as CheckCircle, T as Events, V as ThumbsUpSolid, W as CommentsSolid, X as CopySolid, Y as Hourglass, Z as Act, _ as Info$1, $ as ClaimsW, a0 as TachometerAltSolid, a1 as UserCogSolid, a2 as UsersSolid, a3 as EllipsisHSolid, a4 as Resources, a5 as ShieldAltSolid } from "./UsersSolid-CEMcHCoD.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, d as AngleRightSolid, e as EllipsisHSolid, f as AngleLeftSolid, G as Globe, D as Dashboard, h as Groups, i as UserCircleSolid, j as Assets$1, k as Claims, l as Accounts, H as HistorySolid, m as LinkedResources, n as Proposals, I as ImpactCredits, o as GoTo, p as Share, q as PiePiece, r as ImpactCertificates, s as CommentDotsSolid, t as CommentAltSolid, M as MicrophoneSolid, u as Command, v as ArrowCircleRightSolid, w as Protocols, x as Investments, O as Oracles, y as Projects, z as Daos, B as Star, F as Expand, J as LeafSolid, K as ArrowDownSolid, N as ArrowLeftSolid, Q as ArrowRightSolid, R as Play, T as CheckCircle, V as Events, W as ThumbsUpSolid, X as CommentsSolid, Y as CopySolid, Z as Hourglass, _ as Act, $ as Info$1, a0 as ClaimsW, a1 as TachometerAltSolid, a2 as UserCogSolid, a3 as UsersSolid } from "./UsersSolid-CYOWcNJV.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, Text as Text$1, Badge as Badge$1, Stack as Stack$1, Center } from "@mantine/core";
7
+ import { Accordion as Accordion$1, Box, Image, AppShell, Stack as Stack$1, Center, Divider, Paper, Text as Text$1, 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";
11
11
  import { Popover } from "react-tiny-popover";
12
+ import { useDisclosure, useHover } from "@mantine/hooks";
12
13
  import { u as useUITheme } from "./useUITheme-7i8NJ2FG.js";
13
14
  import Markdown from "react-markdown";
14
15
  import remarkGfm from "remark-gfm";
15
16
  import { useCombobox, useSelect } from "downshift";
16
- import { useHover } from "@mantine/hooks";
17
17
  import dayjs from "dayjs";
18
18
  import { B as Blank } from "./Blank-CElsicB7.js";
19
19
  import { E as EventEmitter, u as useEventSubscribe } from "./useEventSubscribe-16wxaghO.js";
20
- import { d as dark, l as light } from "./themes-BxAZpKEj.js";
20
+ import { d as dark, l as light } from "./themes-B3gRP8Wm.js";
21
21
  function SlideUpArea({ children, isVisible }) {
22
22
  return /* @__PURE__ */ jsx(
23
23
  "div",
@@ -774,8 +774,8 @@ function AccordionTable({
774
774
  }
775
775
  );
776
776
  }
777
- const Header$3 = lazy(() => import("./index-DQYpSmzE.js"));
778
- const Footer = lazy(() => import("./index-4Ok7zUt7.js"));
777
+ const Header$3 = lazy(() => import("./index-GZOZ7L0s.js"));
778
+ const Footer = lazy(() => import("./index-CNWC1hG3.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-BAoRqihu.js"));
862
+ const Header$2 = lazy(() => import("./index-BfkAX8vS.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-C6py_EuP.js"));
1297
+ const Badge = lazy(() => import("./index-7eiS7IVr.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);
@@ -2072,6 +2072,281 @@ function Avatar({ src, rounded = true, size = 62, did }) {
2072
2072
  }
2073
2073
  return /* @__PURE__ */ jsx(User, { css: ({ text }) => ({ ...css2, backgroundColor: text.secondary }) });
2074
2074
  }
2075
+ const Flex = forwardRef(
2076
+ ({
2077
+ direction = "row",
2078
+ align = "stretch",
2079
+ justify = "flex-start",
2080
+ gap = 0,
2081
+ m = 0,
2082
+ mt = 0,
2083
+ mb = 0,
2084
+ ml = 0,
2085
+ mr = 0,
2086
+ mx = 0,
2087
+ my = 0,
2088
+ p = 0,
2089
+ pt = 0,
2090
+ pb = 0,
2091
+ pl = 0,
2092
+ pr = 0,
2093
+ px = 0,
2094
+ py = 0,
2095
+ bg,
2096
+ radius = 0,
2097
+ children,
2098
+ ...props
2099
+ }, ref) => {
2100
+ return /* @__PURE__ */ jsx(
2101
+ "div",
2102
+ {
2103
+ ref,
2104
+ ...props,
2105
+ style: {
2106
+ display: "flex",
2107
+ flexDirection: direction,
2108
+ alignItems: align,
2109
+ justifyContent: justify,
2110
+ gap,
2111
+ margin: m,
2112
+ marginTop: mt || my,
2113
+ marginBottom: mb || my,
2114
+ marginLeft: ml || mx,
2115
+ marginRight: mr || mx,
2116
+ padding: p,
2117
+ paddingTop: pt || py,
2118
+ paddingBottom: pb || py,
2119
+ paddingLeft: pl || px,
2120
+ paddingRight: pr || px,
2121
+ backgroundColor: bg,
2122
+ borderRadius: radius,
2123
+ ...props.style
2124
+ },
2125
+ children
2126
+ }
2127
+ );
2128
+ }
2129
+ );
2130
+ Flex.displayName = "Flex";
2131
+ function SpaceItem({ icon, id, onClick }) {
2132
+ const { hovered, ref } = useHover();
2133
+ const theme = useUITheme();
2134
+ return /* @__PURE__ */ jsx(
2135
+ Center,
2136
+ {
2137
+ ref,
2138
+ sx: {
2139
+ cursor: "pointer",
2140
+ borderRadius: 24,
2141
+ transform: hovered ? "scale(1.1)" : "scale(1)",
2142
+ transition: "transform 0.2s ease"
2143
+ },
2144
+ pos: "relative",
2145
+ bg: hovered ? theme.neutral.transparent10 : theme.bg.navScaled,
2146
+ mih: 40,
2147
+ w: 40,
2148
+ onClick: () => onClick(id),
2149
+ children: typeof icon === "string" ? /* @__PURE__ */ jsx(Image, { radius: 24, src: icon, w: 32, h: 32 }) : icon
2150
+ }
2151
+ );
2152
+ }
2153
+ function MenuItem({ item, onMenuItemClick }) {
2154
+ const { hovered, ref } = useHover();
2155
+ const theme = useUITheme();
2156
+ return /* @__PURE__ */ jsxs(
2157
+ Flex,
2158
+ {
2159
+ ref,
2160
+ align: "center",
2161
+ gap: 8,
2162
+ px: 12,
2163
+ py: 6,
2164
+ style: {
2165
+ cursor: "pointer",
2166
+ borderRadius: 8,
2167
+ backgroundColor: item.isActive ? theme.neutral.transparent10 : hovered ? theme.neutral.transparent10 : "transparent",
2168
+ transform: hovered ? "translateX(4px)" : "translateX(0px)",
2169
+ transition: "all 0.2s ease"
2170
+ },
2171
+ onClick: () => onMenuItemClick(item),
2172
+ children: [
2173
+ /* @__PURE__ */ jsx(item.icon, { size: 20, color: "secondary" }),
2174
+ /* @__PURE__ */ jsx(Text$1, { fz: 14, c: theme.neutral.lightGray, children: item.name })
2175
+ ]
2176
+ }
2177
+ );
2178
+ }
2179
+ function RoomItem({ room }) {
2180
+ const { hovered, ref } = useHover();
2181
+ const theme = useUITheme();
2182
+ return /* @__PURE__ */ jsxs(
2183
+ Flex,
2184
+ {
2185
+ ref,
2186
+ align: "center",
2187
+ gap: 8,
2188
+ px: 12,
2189
+ py: 4,
2190
+ ml: 16,
2191
+ style: {
2192
+ cursor: "pointer",
2193
+ borderRadius: 6,
2194
+ backgroundColor: room.isActive || hovered ? theme.neutral.transparent10 : "transparent",
2195
+ transform: hovered ? "translateX(2px)" : "translateX(0px)",
2196
+ transition: "all 0.15s ease"
2197
+ },
2198
+ onClick: () => room.onClick(room.id),
2199
+ children: [
2200
+ /* @__PURE__ */ jsx(room.icon, { size: 16, color: "secondary" }),
2201
+ /* @__PURE__ */ jsx(Text$1, { fz: 13, c: theme.text.secondary, children: room.name })
2202
+ ]
2203
+ }
2204
+ );
2205
+ }
2206
+ function RoomCategory({ category }) {
2207
+ const { hovered, ref } = useHover();
2208
+ const theme = useUITheme();
2209
+ const { value, toggle: toggle2 } = useToggle(false);
2210
+ return /* @__PURE__ */ jsxs(Stack$1, { gap: 2, children: [
2211
+ /* @__PURE__ */ jsxs(
2212
+ Flex,
2213
+ {
2214
+ ref,
2215
+ align: "center",
2216
+ justify: "space-between",
2217
+ px: 12,
2218
+ py: 4,
2219
+ style: {
2220
+ cursor: "pointer",
2221
+ borderRadius: 6,
2222
+ backgroundColor: hovered ? theme.neutral.transparent50 : "transparent",
2223
+ transition: "all 0.15s ease"
2224
+ },
2225
+ onClick: toggle2,
2226
+ children: [
2227
+ /* @__PURE__ */ jsx(Text$1, { fz: 12, c: theme.neutral.lightGray, children: category.name }),
2228
+ /* @__PURE__ */ jsx(
2229
+ Center,
2230
+ {
2231
+ sx: {
2232
+ transform: value ? "rotate(-90deg)" : "rotate(0deg)",
2233
+ transition: "transform 0.2s ease"
2234
+ },
2235
+ children: /* @__PURE__ */ jsx(AngleLeftSolid, { size: 12, color: "secondary" })
2236
+ }
2237
+ )
2238
+ ]
2239
+ }
2240
+ ),
2241
+ !value && /* @__PURE__ */ jsx(Stack$1, { gap: 1, children: category.rooms.map((room) => /* @__PURE__ */ jsx(RoomItem, { room }, room.id)) })
2242
+ ] });
2243
+ }
2244
+ function AppShellNavigation({
2245
+ spaces,
2246
+ selectedSpace,
2247
+ menuItems,
2248
+ roomCategories,
2249
+ companyIcon,
2250
+ onAddSpaceClick,
2251
+ avatarIcon,
2252
+ onMenuItemClick,
2253
+ onPersonalSpaceClick,
2254
+ children
2255
+ }) {
2256
+ const [desktopOpened, { toggle: toggleDesktop }] = useDisclosure(true);
2257
+ const theme = useUITheme();
2258
+ return /* @__PURE__ */ jsxs(
2259
+ AppShell,
2260
+ {
2261
+ withBorder: false,
2262
+ styles: {
2263
+ navbar: {
2264
+ background: theme.bg.navScaled
2265
+ }
2266
+ },
2267
+ bg: theme.bg.navScaled,
2268
+ navbar: {
2269
+ width: desktopOpened ? 300 : 56,
2270
+ breakpoint: "sm"
2271
+ },
2272
+ children: [
2273
+ /* @__PURE__ */ jsx(AppShell.Navbar, { children: /* @__PURE__ */ jsxs(Flex, { style: { height: "100%" }, children: [
2274
+ /* @__PURE__ */ jsxs(Stack$1, { p: 8, w: 56, justify: "space-between", h: "100%", bg: theme.bg.navSpaces, children: [
2275
+ /* @__PURE__ */ jsxs(Stack$1, { align: "center", style: { flex: 1, overflowY: "auto", overflowX: "hidden" }, gap: 8, children: [
2276
+ /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: theme.bg.navScaled, 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 }),
2277
+ /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: theme.bg.navScaled, h: 40, w: 40, onClick: onPersonalSpaceClick, children: /* @__PURE__ */ jsx(User, { color: "secondary" }) }),
2278
+ /* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color: theme.neutral.transparent10 }),
2279
+ /* @__PURE__ */ jsx(
2280
+ Stack$1,
2281
+ {
2282
+ align: "center",
2283
+ gap: 8,
2284
+ style: {
2285
+ flex: 1,
2286
+ overflowY: "auto",
2287
+ maxHeight: "calc(100vh - 300px)",
2288
+ scrollbarWidth: "none",
2289
+ msOverflowStyle: "none"
2290
+ },
2291
+ sx: {
2292
+ "&::-webkit-scrollbar": {
2293
+ display: "none"
2294
+ }
2295
+ },
2296
+ children: spaces.map(({ icon, id, name, onClick }, i) => /* @__PURE__ */ jsxs(Fragment, { children: [
2297
+ selectedSpace === id && /* @__PURE__ */ jsx(Paper, { bg: theme.neutral.whiteFull, h: 30, w: 4, pos: "absolute", left: 0, top: 116 + i * 49.5 }),
2298
+ /* @__PURE__ */ jsx(SpaceItem, { icon, name, id, onClick }, id)
2299
+ ] }))
2300
+ }
2301
+ )
2302
+ ] }),
2303
+ /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: theme.bg.navScaled, h: 40, w: 40, onClick: onAddSpaceClick, children: /* @__PURE__ */ jsx(PlusSolid, { color: "secondary" }) }),
2304
+ /* @__PURE__ */ jsxs(Stack$1, { align: "center", gap: 8, children: [
2305
+ /* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color: theme.neutral.transparent10 }),
2306
+ /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: theme.bg.navScaled, 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 }),
2307
+ !desktopOpened && /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: theme.bg.navScaled, h: 40, w: 40, onClick: toggleDesktop, children: /* @__PURE__ */ jsx(AngleRightSolid, { color: "secondary" }) })
2308
+ ] })
2309
+ ] }),
2310
+ desktopOpened && /* @__PURE__ */ jsxs(Stack$1, { w: "100%", gap: 5, py: 16, px: 12, children: [
2311
+ /* @__PURE__ */ jsxs(Flex, { mb: 24, style: { width: "100%" }, justify: "space-between", align: "center", children: [
2312
+ /* @__PURE__ */ jsx(Text$1, { lh: 1, c: theme.text.overPicture, children: spaces.find(({ id }) => id === selectedSpace)?.name || "Unknown" }),
2313
+ /* @__PURE__ */ jsxs(Flex, { gap: 12, align: "center", children: [
2314
+ /* @__PURE__ */ jsx(EllipsisHSolid, { color: "secondary" }),
2315
+ /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer" }, onClick: toggleDesktop, children: /* @__PURE__ */ jsx(AngleLeftSolid, { color: "secondary" }) })
2316
+ ] })
2317
+ ] }),
2318
+ menuItems?.map((item) => /* @__PURE__ */ jsx(MenuItem, { onMenuItemClick, item }, item.id)),
2319
+ /* @__PURE__ */ jsxs(
2320
+ Flex,
2321
+ {
2322
+ align: "center",
2323
+ gap: 8,
2324
+ px: 12,
2325
+ py: 6,
2326
+ style: {
2327
+ cursor: "pointer",
2328
+ borderRadius: 8,
2329
+ backgroundColor: "transparent"
2330
+ },
2331
+ onClick: () => {
2332
+ },
2333
+ children: [
2334
+ /* @__PURE__ */ jsx(EllipsisHSolid, { size: 20, color: "secondary" }),
2335
+ /* @__PURE__ */ jsx(Text$1, { fz: 14, c: theme.neutral.lightGray, children: "More" })
2336
+ ]
2337
+ }
2338
+ ),
2339
+ roomCategories && roomCategories.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
2340
+ /* @__PURE__ */ jsx(Text$1, { pl: 11, mt: 16, fz: 14, c: theme.neutral.lightGray, children: "Rooms" }),
2341
+ /* @__PURE__ */ jsx(Stack$1, { gap: 8, children: roomCategories.map((category) => /* @__PURE__ */ jsx(RoomCategory, { category }, category.id)) })
2342
+ ] })
2343
+ ] })
2344
+ ] }) }),
2345
+ /* @__PURE__ */ jsx(AppShell.Main, { children })
2346
+ ]
2347
+ }
2348
+ );
2349
+ }
2075
2350
  function AvatarInfo({ src, title, description, onClick }) {
2076
2351
  const content = /* @__PURE__ */ jsxs(Spacer, { children: [
2077
2352
  /* @__PURE__ */ jsx(Avatar, { size: 40, src }),
@@ -3714,62 +3989,6 @@ function DomainToolbarTypes({ domainType, active, onClick, ConnectActive }) {
3714
3989
  document.body
3715
3990
  );
3716
3991
  }
3717
- const Flex = forwardRef(
3718
- ({
3719
- direction = "row",
3720
- align = "stretch",
3721
- justify = "flex-start",
3722
- gap = 0,
3723
- m = 0,
3724
- mt = 0,
3725
- mb = 0,
3726
- ml = 0,
3727
- mr = 0,
3728
- mx = 0,
3729
- my = 0,
3730
- p = 0,
3731
- pt = 0,
3732
- pb = 0,
3733
- pl = 0,
3734
- pr = 0,
3735
- px = 0,
3736
- py = 0,
3737
- bg,
3738
- radius = 0,
3739
- children,
3740
- ...props
3741
- }, ref) => {
3742
- return /* @__PURE__ */ jsx(
3743
- "div",
3744
- {
3745
- ref,
3746
- ...props,
3747
- style: {
3748
- display: "flex",
3749
- flexDirection: direction,
3750
- alignItems: align,
3751
- justifyContent: justify,
3752
- gap,
3753
- margin: m,
3754
- marginTop: mt || my,
3755
- marginBottom: mb || my,
3756
- marginLeft: ml || mx,
3757
- marginRight: mr || mx,
3758
- padding: p,
3759
- paddingTop: pt || py,
3760
- paddingBottom: pb || py,
3761
- paddingLeft: pl || px,
3762
- paddingRight: pr || px,
3763
- backgroundColor: bg,
3764
- borderRadius: radius,
3765
- ...props.style
3766
- },
3767
- children
3768
- }
3769
- );
3770
- }
3771
- );
3772
- Flex.displayName = "Flex";
3773
3992
  const CommandItem = ({
3774
3993
  name,
3775
3994
  description,
@@ -5059,13 +5278,13 @@ function ActionButton({ onClick, left, right }) {
5059
5278
  }
5060
5279
  );
5061
5280
  }
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"));
5281
+ const MainAction = lazy(() => import("./index-DRT7h4xd.js"));
5282
+ const Header$1 = lazy(() => import("./index-ufMtBCkV.js"));
5283
+ const Content = lazy(() => import("./index-Bd5Hg5BP.js"));
5065
5284
  const Map = lazy(() => import("./index-D5Ufmf-s.js"));
5066
5285
  const CustomContent = lazy(() => import("./index-DsYjW_4y.js"));
5067
- const Assets = lazy(() => import("./index-yE1fBF8R.js"));
5068
- const Actions = lazy(() => import("./index-qhANrzdI.js"));
5286
+ const Assets = lazy(() => import("./index-BwK5-98B.js"));
5287
+ const Actions = lazy(() => import("./index-D-yx5xCK.js"));
5069
5288
  const HOVER_BORDER_WIDTH = 1;
5070
5289
  function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
5071
5290
  const wrapperRef = useRef(null);
@@ -9448,22 +9667,6 @@ function NavigationActionSelector({ action, onClick }) {
9448
9667
  color: "rgba(255, 255, 255, 0.5)",
9449
9668
  margin: 0
9450
9669
  };
9451
- const premiumTagStyle = {
9452
- display: "flex",
9453
- alignItems: "center",
9454
- padding: "0 8px",
9455
- height: "20px",
9456
- background: "rgba(0, 210, 255, 0.2)",
9457
- borderRadius: "16px",
9458
- fontSize: "12px",
9459
- fontWeight: "400",
9460
- color: "#00D2FF",
9461
- fontFamily: theme.font.main,
9462
- position: "absolute",
9463
- right: "16px",
9464
- top: "50%",
9465
- transform: "translateY(-50%)"
9466
- };
9467
9670
  const handleClick = () => {
9468
9671
  onClick?.(action);
9469
9672
  };
@@ -9477,53 +9680,12 @@ function NavigationActionSelector({ action, onClick }) {
9477
9680
  return /* @__PURE__ */ jsxs("button", { style: containerStyle, onClick: handleClick, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [
9478
9681
  /* @__PURE__ */ jsx("div", { style: iconContainerStyle, children: /* @__PURE__ */ jsx(IconComponent, {}) }),
9479
9682
  /* @__PURE__ */ jsxs("div", { style: textContentStyle, children: [
9480
- /* @__PURE__ */ jsx("div", { style: titleStyle, children: action.title }),
9481
- /* @__PURE__ */ jsx("div", { style: descriptionStyle, children: action.description })
9482
- ] }),
9483
- action.isPremium && /* @__PURE__ */ jsx("div", { style: premiumTagStyle, children: "Premium" })
9683
+ /* @__PURE__ */ jsx("div", { style: titleStyle, children: action.label }),
9684
+ /* @__PURE__ */ jsx("div", { style: descriptionStyle, children: action.label })
9685
+ ] })
9484
9686
  ] });
9485
9687
  }
9486
- function MoreModal({ position, onMouseEnter, onMouseLeave, additionalItems }) {
9487
- const defaultNavigationActions = [
9488
- {
9489
- id: "resources",
9490
- title: "Resources",
9491
- description: "Linked Resources of the Domain",
9492
- Icon: Resources
9493
- },
9494
- {
9495
- id: "activity",
9496
- title: "Activity",
9497
- description: "Show the past activity of the Domain",
9498
- Icon: HistorySolid
9499
- },
9500
- {
9501
- id: "credentials",
9502
- title: "Credentials",
9503
- description: "Shows the Credentials of the Domain",
9504
- Icon: ShieldAltSolid
9505
- },
9506
- {
9507
- id: "impacts",
9508
- title: "Impacts",
9509
- description: "Verify the impacts of your Domain",
9510
- Icon: Resources,
9511
- // Using Resources as placeholder for impacts icon
9512
- isPremium: true
9513
- }
9514
- ];
9515
- const convertNavItemsToActions = (items) => {
9516
- return items.map((item) => ({
9517
- id: item.id,
9518
- title: item.label,
9519
- description: `Navigate to ${item.label}`,
9520
- // Generic description
9521
- Icon: item.Icon,
9522
- isPremium: false
9523
- // NavItems don't have premium flag
9524
- }));
9525
- };
9526
- const navigationActions = additionalItems.length > 0 ? convertNavItemsToActions(additionalItems) : defaultNavigationActions;
9688
+ function MoreModal({ onItemClick, position, onMouseEnter, onMouseLeave, items }) {
9527
9689
  const modalStyle = {
9528
9690
  position: "fixed",
9529
9691
  left: `${position.x}px`,
@@ -9561,12 +9723,9 @@ function MoreModal({ position, onMouseEnter, onMouseLeave, additionalItems }) {
9561
9723
  scrollbarWidth: "thin",
9562
9724
  scrollbarColor: "rgba(255, 255, 255, 0.3) transparent"
9563
9725
  };
9564
- const handleActionClick = (action) => {
9565
- console.log("Clicked navigation action:", action);
9566
- };
9567
9726
  return /* @__PURE__ */ jsxs("div", { style: modalStyle, onMouseEnter, onMouseLeave, children: [
9568
9727
  /* @__PURE__ */ jsx("div", { style: headerStyle, children: /* @__PURE__ */ jsx(Typography.Text, { size: "xs", color: "overPicture", children: "More" }) }),
9569
- /* @__PURE__ */ jsx("div", { style: navigationActionsContainerStyle, children: navigationActions.map((action) => /* @__PURE__ */ jsx(NavigationActionSelector, { action, onClick: handleActionClick }, action.id)) })
9728
+ /* @__PURE__ */ jsx("div", { style: navigationActionsContainerStyle, children: onItemClick && items.map((action) => /* @__PURE__ */ jsx(NavigationActionSelector, { action, onClick: () => onItemClick(action) }, action.id)) })
9570
9729
  ] });
9571
9730
  }
9572
9731
  function SpaceSelector({ space, onClick, className }) {
@@ -10200,15 +10359,12 @@ function NavigationBar({
10200
10359
  if (estimatedModalHeight <= dynamicNavHeight) {
10201
10360
  maxHeight = dynamicNavHeight;
10202
10361
  yPosition = dynamicRect.bottom - estimatedModalHeight;
10203
- console.log(`Small modal: positioning at Y=${yPosition} (DynamicNav bottom - modal height)`);
10204
10362
  } else if (estimatedModalHeight <= navBarRect.height) {
10205
10363
  maxHeight = navBarRect.height;
10206
10364
  yPosition = navBarRect.top;
10207
- console.log(`Medium modal: positioning at Y=${yPosition} (NavigationBar top)`);
10208
10365
  } else {
10209
10366
  maxHeight = navBarRect.height;
10210
10367
  yPosition = navBarRect.top;
10211
- console.log(`Large modal: positioning at Y=${yPosition} (NavigationBar top, will be scrollable)`);
10212
10368
  }
10213
10369
  }
10214
10370
  } else if (itemId === "workspaces") {
@@ -10219,7 +10375,6 @@ function NavigationBar({
10219
10375
  yPosition = navBarRect.bottom;
10220
10376
  }
10221
10377
  } else {
10222
- console.warn("NavigationBar rect not found, using fallback positioning");
10223
10378
  xPosition = rect.right + 8;
10224
10379
  yPosition = rect.top;
10225
10380
  maxHeight = Math.min(400, window.innerHeight - rect.top - 20);
@@ -10323,7 +10478,17 @@ function NavigationBar({
10323
10478
  onEcosystemClick
10324
10479
  }
10325
10480
  ),
10326
- hoveredItem === "more" && /* @__PURE__ */ jsx(MoreModal, { position: modalPosition, onClose: handleModalLeave, onMouseEnter: handleModalEnter, onMouseLeave: handleModalLeave, additionalItems: getMoreItems() }),
10481
+ hoveredItem === "more" && /* @__PURE__ */ jsx(
10482
+ MoreModal,
10483
+ {
10484
+ position: modalPosition,
10485
+ onClose: handleModalLeave,
10486
+ onItemClick: onNavigate,
10487
+ onMouseEnter: handleModalEnter,
10488
+ onMouseLeave: handleModalLeave,
10489
+ items: getMoreItems()
10490
+ }
10491
+ ),
10327
10492
  hoveredItem === "workspaces" && /* @__PURE__ */ jsx(
10328
10493
  WorkspaceModal,
10329
10494
  {
@@ -10341,71 +10506,72 @@ function NavigationBar({
10341
10506
  ] });
10342
10507
  }
10343
10508
  export {
10344
- GroupSelector as $,
10509
+ GroupActivity as $,
10345
10510
  Avatar as A,
10346
10511
  Button as B,
10347
10512
  CARD_HEADER_HEIGHT as C,
10348
- Chart$1 as D,
10349
- Checkbox as E,
10513
+ CardUserFollowUp as D,
10514
+ Chart$1 as E,
10350
10515
  FeedbackMessage as F,
10351
- CheckboxGroup as G,
10352
- ComboBox as H,
10516
+ Checkbox as G,
10517
+ CheckboxGroup as H,
10353
10518
  IconButton as I,
10354
- DomainToolbar as J,
10355
- DropDown as K,
10519
+ ComboBox as J,
10520
+ DomainToolbar as K,
10356
10521
  Loader as L,
10357
10522
  MoreMenu as M,
10358
- DomainToolbarTypes as N,
10523
+ DropDown as N,
10359
10524
  OracleMessage as O,
10360
- FloatingInput as P,
10361
- EcosystemCard as Q,
10362
- EntityList as R,
10525
+ DomainToolbarTypes as P,
10526
+ FloatingInput as Q,
10527
+ EcosystemCard as R,
10363
10528
  Spacer as S,
10364
10529
  Typography as T,
10365
10530
  UserMessage as U,
10366
- Event as V,
10367
- ExpandableButton as W,
10368
- FeaturedCard as X,
10369
- FilterDropDown as Y,
10370
- FilterTags as Z,
10371
- GroupActivity as _,
10531
+ EntityList as V,
10532
+ Event as W,
10533
+ ExpandableButton as X,
10534
+ FeaturedCard as Y,
10535
+ FilterDropDown as Z,
10536
+ FilterTags as _,
10372
10537
  Tag as a,
10373
- HandlerSodaCard as a0,
10374
- HtmlRender as a1,
10375
- ImpactCreditState as a2,
10376
- Layout as a3,
10377
- Modal as a4,
10378
- ModalSearch as a5,
10379
- ModalSheet as a6,
10380
- OracleProtocolsSelection as a7,
10381
- OracleReply as a8,
10382
- PageTitle as a9,
10383
- PlanCard as aa,
10384
- Post as ab,
10385
- ProfileCard as ac,
10386
- ProfileMenu as ad,
10387
- ProposalCard as ae,
10388
- RoundedButton as af,
10389
- ServiceOffering as ag,
10390
- SearchInput as ah,
10391
- Select as ai,
10392
- SodaCard as aj,
10393
- SomeComponent as ak,
10394
- Switch as al,
10395
- SwitchText as am,
10396
- Table as an,
10397
- TableList as ao,
10398
- TabNavigation as ap,
10399
- TabSelector as aq,
10400
- TextInput as ar,
10401
- UiProvider as as,
10402
- FloatingModal as at,
10403
- NavigationBar as au,
10404
- NavigationItem as av,
10405
- DomainModal as aw,
10406
- DomainSelector as ax,
10407
- MoreModal as ay,
10408
- WorkspaceModal as az,
10538
+ GroupSelector as a0,
10539
+ HandlerSodaCard as a1,
10540
+ HtmlRender as a2,
10541
+ ImpactCreditState as a3,
10542
+ Layout as a4,
10543
+ Modal as a5,
10544
+ ModalSearch as a6,
10545
+ ModalSheet as a7,
10546
+ OracleProtocolsSelection as a8,
10547
+ OracleReply as a9,
10548
+ WorkspaceModal as aA,
10549
+ PageTitle as aa,
10550
+ PlanCard as ab,
10551
+ Post as ac,
10552
+ ProfileCard as ad,
10553
+ ProfileMenu as ae,
10554
+ ProposalCard as af,
10555
+ RoundedButton as ag,
10556
+ ServiceOffering as ah,
10557
+ SearchInput as ai,
10558
+ Select as aj,
10559
+ SodaCard as ak,
10560
+ SomeComponent as al,
10561
+ Switch as am,
10562
+ SwitchText as an,
10563
+ Table as ao,
10564
+ TableList as ap,
10565
+ TabNavigation as aq,
10566
+ TabSelector as ar,
10567
+ TextInput as as,
10568
+ UiProvider as at,
10569
+ FloatingModal as au,
10570
+ NavigationBar as av,
10571
+ NavigationItem as aw,
10572
+ DomainModal as ax,
10573
+ DomainSelector as ay,
10574
+ MoreModal as az,
10409
10575
  ActionButton as b,
10410
10576
  cutText as c,
10411
10577
  Tooltip$1 as d,
@@ -10419,17 +10585,17 @@ export {
10419
10585
  ActivityCard as l,
10420
10586
  AIResponse as m,
10421
10587
  AIInputBar as n,
10422
- AvatarInfo as o,
10423
- ButtonBasic as p,
10424
- ButtonReadOnly as q,
10425
- ButtonSubtle as r,
10426
- Card as s,
10427
- CardAction as t,
10428
- CardEntity as u,
10429
- CardHeader as v,
10430
- CardHero as w,
10431
- CardSelector as x,
10432
- CardOutput as y,
10433
- CardUserFollowUp as z
10588
+ AppShellNavigation as o,
10589
+ AvatarInfo as p,
10590
+ ButtonBasic as q,
10591
+ ButtonReadOnly as r,
10592
+ ButtonSubtle as s,
10593
+ Card as t,
10594
+ CardAction as u,
10595
+ CardEntity as v,
10596
+ CardHeader as w,
10597
+ CardHero as x,
10598
+ CardSelector as y,
10599
+ CardOutput as z
10434
10600
  };
10435
- //# sourceMappingURL=components-qFMVWjVp.js.map
10601
+ //# sourceMappingURL=components-BoLr9Qow.js.map