@ixo/ui 0.0.5 → 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.
- package/dist/.vite/manifest.json +41 -41
- package/dist/{UsersSolid-CncjWLR_.js → UsersSolid-CYOWcNJV.js} +42 -42
- package/dist/{UsersSolid-CncjWLR_.js.map → UsersSolid-CYOWcNJV.js.map} +1 -1
- package/dist/components/AppShellNavigation/index.d.ts +46 -0
- package/dist/components/AppShellNavigation/index.d.ts.map +1 -0
- package/dist/{components-DmVrcjoe.cjs → components-2IYis_pS.cjs} +288 -68
- package/dist/components-2IYis_pS.cjs.map +1 -0
- package/dist/{components-nIVUDr7n.js → components-BoLr9Qow.js} +355 -135
- package/dist/components-BoLr9Qow.js.map +1 -0
- package/dist/constants/themes.d.ts.map +1 -1
- package/dist/export/components.cjs +2 -1
- package/dist/export/components.cjs.map +1 -1
- package/dist/export/components.d.ts +2 -0
- package/dist/export/components.d.ts.map +1 -1
- package/dist/export/components.mjs +67 -66
- package/dist/export/icons/index.mjs +43 -43
- package/dist/export/themes.cjs +1 -1
- package/dist/export/themes.mjs +1 -1
- package/dist/{index--RxXbH22.js → index-2RkJbTMY.js} +2 -2
- package/dist/{index--RxXbH22.js.map → index-2RkJbTMY.js.map} +1 -1
- package/dist/{index-BQ3DAXnq.cjs → index-7ENn--8R.cjs} +2 -2
- package/dist/{index-BQ3DAXnq.cjs.map → index-7ENn--8R.cjs.map} +1 -1
- package/dist/{index-Ch58_nVL.js → index-7eiS7IVr.js} +2 -2
- package/dist/{index-Ch58_nVL.js.map → index-7eiS7IVr.js.map} +1 -1
- package/dist/{index-BnU1ktcj.cjs → index-B6xg69Dq.cjs} +2 -2
- package/dist/{index-BnU1ktcj.cjs.map → index-B6xg69Dq.cjs.map} +1 -1
- package/dist/{index-DJEwZuHm.cjs → index-BViyRAH_.cjs} +3 -3
- package/dist/{index-DJEwZuHm.cjs.map → index-BViyRAH_.cjs.map} +1 -1
- package/dist/{index-B0nV3hVq.js → index-Bd5Hg5BP.js} +2 -2
- package/dist/{index-B0nV3hVq.js.map → index-Bd5Hg5BP.js.map} +1 -1
- package/dist/{index-BqTxDhWH.js → index-BfkAX8vS.js} +2 -2
- package/dist/{index-BqTxDhWH.js.map → index-BfkAX8vS.js.map} +1 -1
- package/dist/{index-w29Yeaab.js → index-BwK5-98B.js} +2 -2
- package/dist/{index-w29Yeaab.js.map → index-BwK5-98B.js.map} +1 -1
- package/dist/{index-iW6JY6LG.cjs → index-C68HB9Av.cjs} +2 -2
- package/dist/{index-iW6JY6LG.cjs.map → index-C68HB9Av.cjs.map} +1 -1
- package/dist/{index-AdmtrdOj.js → index-CNWC1hG3.js} +3 -3
- package/dist/{index-AdmtrdOj.js.map → index-CNWC1hG3.js.map} +1 -1
- package/dist/{index-CJQwQd4A.js → index-D-yx5xCK.js} +3 -3
- package/dist/{index-CJQwQd4A.js.map → index-D-yx5xCK.js.map} +1 -1
- package/dist/{index-CEFoRpvx.cjs → index-D9Jjiwns.cjs} +2 -2
- package/dist/{index-CEFoRpvx.cjs.map → index-D9Jjiwns.cjs.map} +1 -1
- package/dist/{index-DrypVliv.cjs → index-DBvgEa5H.cjs} +2 -2
- package/dist/{index-DrypVliv.cjs.map → index-DBvgEa5H.cjs.map} +1 -1
- package/dist/{index-Dw39BM_E.js → index-DRT7h4xd.js} +2 -2
- package/dist/{index-Dw39BM_E.js.map → index-DRT7h4xd.js.map} +1 -1
- package/dist/{index-Bc_MmoiM.cjs → index-D_Sg8YF7.cjs} +2 -2
- package/dist/{index-Bc_MmoiM.cjs.map → index-D_Sg8YF7.cjs.map} +1 -1
- package/dist/{index-wyaeB3FQ.cjs → index-Dit9UCpC.cjs} +2 -2
- package/dist/{index-wyaeB3FQ.cjs.map → index-Dit9UCpC.cjs.map} +1 -1
- package/dist/{index-CxWtsgMl.cjs → index-DoeAXBYv.cjs} +2 -2
- package/dist/{index-CxWtsgMl.cjs.map → index-DoeAXBYv.cjs.map} +1 -1
- package/dist/{index-CePcVUdl.js → index-GZOZ7L0s.js} +3 -3
- package/dist/{index-CePcVUdl.js.map → index-GZOZ7L0s.js.map} +1 -1
- package/dist/{index-CZf9DVqp.cjs → index-Jt88FVTH.cjs} +3 -3
- package/dist/{index-CZf9DVqp.cjs.map → index-Jt88FVTH.cjs.map} +1 -1
- package/dist/{index-BLQvGCp1.js → index-ufMtBCkV.js} +2 -2
- package/dist/{index-BLQvGCp1.js.map → index-ufMtBCkV.js.map} +1 -1
- package/dist/{themes-BxAZpKEj.js → themes-B3gRP8Wm.js} +3 -1
- package/dist/themes-B3gRP8Wm.js.map +1 -0
- package/dist/{themes-ssj6M2ml.cjs → themes-DxTEP-Kl.cjs} +3 -1
- package/dist/themes-DxTEP-Kl.cjs.map +1 -0
- package/dist/types/UITheme.d.ts +2 -0
- package/dist/types/UITheme.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/components-DmVrcjoe.cjs.map +0 -1
- package/dist/components-nIVUDr7n.js.map +0 -1
- package/dist/themes-BxAZpKEj.js.map +0 -1
- 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,
|
|
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,
|
|
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-
|
|
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-
|
|
778
|
-
const Footer = lazy(() => import("./index-
|
|
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-
|
|
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-
|
|
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-
|
|
5063
|
-
const Header$1 = lazy(() => import("./index-
|
|
5064
|
-
const Content = lazy(() => import("./index-
|
|
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-
|
|
5068
|
-
const Actions = lazy(() => import("./index-
|
|
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);
|
|
@@ -10287,71 +10506,72 @@ function NavigationBar({
|
|
|
10287
10506
|
] });
|
|
10288
10507
|
}
|
|
10289
10508
|
export {
|
|
10290
|
-
|
|
10509
|
+
GroupActivity as $,
|
|
10291
10510
|
Avatar as A,
|
|
10292
10511
|
Button as B,
|
|
10293
10512
|
CARD_HEADER_HEIGHT as C,
|
|
10294
|
-
|
|
10295
|
-
|
|
10513
|
+
CardUserFollowUp as D,
|
|
10514
|
+
Chart$1 as E,
|
|
10296
10515
|
FeedbackMessage as F,
|
|
10297
|
-
|
|
10298
|
-
|
|
10516
|
+
Checkbox as G,
|
|
10517
|
+
CheckboxGroup as H,
|
|
10299
10518
|
IconButton as I,
|
|
10300
|
-
|
|
10301
|
-
|
|
10519
|
+
ComboBox as J,
|
|
10520
|
+
DomainToolbar as K,
|
|
10302
10521
|
Loader as L,
|
|
10303
10522
|
MoreMenu as M,
|
|
10304
|
-
|
|
10523
|
+
DropDown as N,
|
|
10305
10524
|
OracleMessage as O,
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10525
|
+
DomainToolbarTypes as P,
|
|
10526
|
+
FloatingInput as Q,
|
|
10527
|
+
EcosystemCard as R,
|
|
10309
10528
|
Spacer as S,
|
|
10310
10529
|
Typography as T,
|
|
10311
10530
|
UserMessage as U,
|
|
10312
|
-
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
|
|
10316
|
-
|
|
10317
|
-
|
|
10531
|
+
EntityList as V,
|
|
10532
|
+
Event as W,
|
|
10533
|
+
ExpandableButton as X,
|
|
10534
|
+
FeaturedCard as Y,
|
|
10535
|
+
FilterDropDown as Z,
|
|
10536
|
+
FilterTags as _,
|
|
10318
10537
|
Tag as a,
|
|
10319
|
-
|
|
10320
|
-
|
|
10321
|
-
|
|
10322
|
-
|
|
10323
|
-
|
|
10324
|
-
|
|
10325
|
-
|
|
10326
|
-
|
|
10327
|
-
|
|
10328
|
-
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
|
|
10333
|
-
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10340
|
-
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10350
|
-
|
|
10351
|
-
|
|
10352
|
-
|
|
10353
|
-
|
|
10354
|
-
|
|
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,
|
|
10355
10575
|
ActionButton as b,
|
|
10356
10576
|
cutText as c,
|
|
10357
10577
|
Tooltip$1 as d,
|
|
@@ -10365,17 +10585,17 @@ export {
|
|
|
10365
10585
|
ActivityCard as l,
|
|
10366
10586
|
AIResponse as m,
|
|
10367
10587
|
AIInputBar as n,
|
|
10368
|
-
|
|
10369
|
-
|
|
10370
|
-
|
|
10371
|
-
|
|
10372
|
-
|
|
10373
|
-
|
|
10374
|
-
|
|
10375
|
-
|
|
10376
|
-
|
|
10377
|
-
|
|
10378
|
-
|
|
10379
|
-
|
|
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
|
|
10380
10600
|
};
|
|
10381
|
-
//# sourceMappingURL=components-
|
|
10601
|
+
//# sourceMappingURL=components-BoLr9Qow.js.map
|