@ixo/ui 0.0.8 → 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.
- package/dist/.vite/manifest.json +53 -53
- package/dist/{UsersSolid-DNy80FwB.js → UsersSolid-CyNyz_eF.js} +42 -27
- package/dist/UsersSolid-CyNyz_eF.js.map +1 -0
- package/dist/{UsersSolid-B9DXA9NX.cjs → UsersSolid-peS-I-xF.cjs} +16 -1
- package/dist/UsersSolid-peS-I-xF.cjs.map +1 -0
- package/dist/components/AppShellNavigation/index.d.ts +8 -3
- package/dist/components/AppShellNavigation/index.d.ts.map +1 -1
- package/dist/{components-C0CDgjvn.cjs → components-1e0JgTup.cjs} +64 -26
- package/dist/{components-C0CDgjvn.cjs.map → components-1e0JgTup.cjs.map} +1 -1
- package/dist/{components-BAyyDDDY.js → components-C9l4Wr-7.js} +65 -27
- package/dist/{components-BAyyDDDY.js.map → components-C9l4Wr-7.js.map} +1 -1
- package/dist/export/components.cjs +1 -1
- package/dist/export/components.mjs +1 -1
- package/dist/export/icons/index.cjs +2 -16
- package/dist/export/icons/index.cjs.map +1 -1
- package/dist/export/icons/index.mjs +29 -43
- package/dist/export/icons/index.mjs.map +1 -1
- package/dist/{index-DEbK4rzc.cjs → index-2EWgsBcw.cjs} +3 -3
- package/dist/{index-DEbK4rzc.cjs.map → index-2EWgsBcw.cjs.map} +1 -1
- package/dist/{index-BB2FOFog.js → index-BAdhUXvd.js} +2 -2
- package/dist/{index-BB2FOFog.js.map → index-BAdhUXvd.js.map} +1 -1
- package/dist/{index-BwpGcQGZ.cjs → index-BcO2AQf8.cjs} +2 -2
- package/dist/{index-BwpGcQGZ.cjs.map → index-BcO2AQf8.cjs.map} +1 -1
- package/dist/{index-A8uoDM6y.js → index-BdOr8L1R.js} +3 -3
- package/dist/{index-A8uoDM6y.js.map → index-BdOr8L1R.js.map} +1 -1
- package/dist/{index-DuOYVQF3.js → index-BeQ6VdsQ.js} +2 -2
- package/dist/{index-DuOYVQF3.js.map → index-BeQ6VdsQ.js.map} +1 -1
- package/dist/{index-DXGbncOU.cjs → index-BpX2EIfo.cjs} +2 -2
- package/dist/{index-DXGbncOU.cjs.map → index-BpX2EIfo.cjs.map} +1 -1
- package/dist/{index-DHZY_QlO.js → index-Bu6ceg5V.js} +2 -2
- package/dist/{index-DHZY_QlO.js.map → index-Bu6ceg5V.js.map} +1 -1
- package/dist/{index-CggCDtn-.js → index-C7NdTITy.js} +2 -2
- package/dist/{index-CggCDtn-.js.map → index-C7NdTITy.js.map} +1 -1
- package/dist/{index-CoEXRr42.cjs → index-CQM9U16K.cjs} +2 -2
- package/dist/{index-CoEXRr42.cjs.map → index-CQM9U16K.cjs.map} +1 -1
- package/dist/{index-Dy_poZN2.cjs → index-CVA8XdVl.cjs} +2 -2
- package/dist/{index-Dy_poZN2.cjs.map → index-CVA8XdVl.cjs.map} +1 -1
- package/dist/{index-C6EdX2d9.js → index-CefIazVm.js} +2 -2
- package/dist/{index-C6EdX2d9.js.map → index-CefIazVm.js.map} +1 -1
- package/dist/{index-B4Wox4lv.cjs → index-D826RpJ6.cjs} +2 -2
- package/dist/{index-B4Wox4lv.cjs.map → index-D826RpJ6.cjs.map} +1 -1
- package/dist/{index-hNGq5T2S.js → index-DEmmiaWG.js} +3 -3
- package/dist/{index-hNGq5T2S.js.map → index-DEmmiaWG.js.map} +1 -1
- package/dist/{index-DzLu1w4C.cjs → index-DHFMC4KW.cjs} +2 -2
- package/dist/{index-DzLu1w4C.cjs.map → index-DHFMC4KW.cjs.map} +1 -1
- package/dist/{index-1BIqaTq6.cjs → index-DPJVccbq.cjs} +3 -3
- package/dist/{index-1BIqaTq6.cjs.map → index-DPJVccbq.cjs.map} +1 -1
- package/dist/{index-CPh7xFzh.cjs → index-Dkp5e_L6.cjs} +3 -3
- package/dist/{index-CPh7xFzh.cjs.map → index-Dkp5e_L6.cjs.map} +1 -1
- package/dist/{index-Bfl1m3Ui.js → index-DlhDUbCZ.js} +3 -3
- package/dist/{index-Bfl1m3Ui.js.map → index-DlhDUbCZ.js.map} +1 -1
- package/dist/{index-D5e7qnjY.js → index-DufBe3H7.js} +2 -2
- package/dist/{index-D5e7qnjY.js.map → index-DufBe3H7.js.map} +1 -1
- package/dist/{index-DCpQFNqj.js → index-JXXJd3OF.js} +2 -2
- package/dist/{index-DCpQFNqj.js.map → index-JXXJd3OF.js.map} +1 -1
- package/dist/{index-BLRJBp-_.cjs → index-sebyZBWE.cjs} +2 -2
- package/dist/{index-BLRJBp-_.cjs.map → index-sebyZBWE.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/UsersSolid-B9DXA9NX.cjs.map +0 -1
- 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,
|
|
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,
|
|
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-
|
|
778
|
-
const Footer = lazy(() => import("./index-
|
|
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-
|
|
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-
|
|
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
|
|
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.
|
|
2168
|
+
bg: hovered ? theme.neutral.transparent30 : theme.bg.navIconsBg,
|
|
2154
2169
|
mih: 40,
|
|
2155
2170
|
w: 40,
|
|
2156
2171
|
onClick: () => onClick(id),
|
|
2157
|
-
children:
|
|
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
|
|
2337
|
-
/* @__PURE__ */
|
|
2338
|
-
|
|
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 }
|
|
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-
|
|
5319
|
-
const Header$1 = lazy(() => import("./index-
|
|
5320
|
-
const Content = lazy(() => import("./index-
|
|
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-
|
|
5324
|
-
const Actions = lazy(() => import("./index-
|
|
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-
|
|
10676
|
+
//# sourceMappingURL=components-C9l4Wr-7.js.map
|