@ixo/ui 0.0.9 → 0.0.11
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 -2
- package/dist/components/AppShellNavigation/index.d.ts.map +1 -1
- package/dist/{components-DzTVsvZR.js → components-BfvVK84l.js} +67 -28
- package/dist/{components-DzTVsvZR.js.map → components-BfvVK84l.js.map} +1 -1
- package/dist/{components-DZWScQb-.cjs → components-UcpUEMTl.cjs} +66 -27
- package/dist/{components-DZWScQb-.cjs.map → components-UcpUEMTl.cjs.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-CGhflycE.cjs → index-B0a_fgrY.cjs} +2 -2
- package/dist/{index-CGhflycE.cjs.map → index-B0a_fgrY.cjs.map} +1 -1
- package/dist/{index-ssANWiHO.cjs → index-BSttBO__.cjs} +2 -2
- package/dist/{index-ssANWiHO.cjs.map → index-BSttBO__.cjs.map} +1 -1
- package/dist/{index-CXEK4K6T.cjs → index-BgYOMwQU.cjs} +2 -2
- package/dist/{index-CXEK4K6T.cjs.map → index-BgYOMwQU.cjs.map} +1 -1
- package/dist/{index-DKXweZ7H.js → index-BrRDxvIe.js} +3 -3
- package/dist/{index-DKXweZ7H.js.map → index-BrRDxvIe.js.map} +1 -1
- package/dist/{index-D53wpwI2.js → index-Bv-xBYqU.js} +2 -2
- package/dist/{index-D53wpwI2.js.map → index-Bv-xBYqU.js.map} +1 -1
- package/dist/{index-G8i06g3O.js → index-CH2Vv6Iu.js} +2 -2
- package/dist/{index-G8i06g3O.js.map → index-CH2Vv6Iu.js.map} +1 -1
- package/dist/{index-BRK_Dgig.cjs → index-CS0eGbp8.cjs} +3 -3
- package/dist/{index-BRK_Dgig.cjs.map → index-CS0eGbp8.cjs.map} +1 -1
- package/dist/{index-BmWX35JS.cjs → index-CURZjE2o.cjs} +2 -2
- package/dist/{index-BmWX35JS.cjs.map → index-CURZjE2o.cjs.map} +1 -1
- package/dist/{index-DWEzVsG1.js → index-Ce4duIQL.js} +2 -2
- package/dist/{index-DWEzVsG1.js.map → index-Ce4duIQL.js.map} +1 -1
- package/dist/{index-Cug-jyVN.cjs → index-Ch7CzT1U.cjs} +3 -3
- package/dist/{index-Cug-jyVN.cjs.map → index-Ch7CzT1U.cjs.map} +1 -1
- package/dist/{index-JnZlYiYC.cjs → index-CkHXNKpn.cjs} +2 -2
- package/dist/{index-JnZlYiYC.cjs.map → index-CkHXNKpn.cjs.map} +1 -1
- package/dist/{index-BVNTRXVA.js → index-CyOQPcyy.js} +2 -2
- package/dist/{index-BVNTRXVA.js.map → index-CyOQPcyy.js.map} +1 -1
- package/dist/{index-H6le64x9.cjs → index-DKCtJiPM.cjs} +2 -2
- package/dist/{index-H6le64x9.cjs.map → index-DKCtJiPM.cjs.map} +1 -1
- package/dist/{index-p092jpgE.js → index-DToU4OZN.js} +2 -2
- package/dist/{index-p092jpgE.js.map → index-DToU4OZN.js.map} +1 -1
- package/dist/{index-tddGE9xT.cjs → index-DddHK476.cjs} +2 -2
- package/dist/{index-tddGE9xT.cjs.map → index-DddHK476.cjs.map} +1 -1
- package/dist/{index-DYbt2pjm.js → index-Dgdz9Mcz.js} +3 -3
- package/dist/{index-DYbt2pjm.js.map → index-Dgdz9Mcz.js.map} +1 -1
- package/dist/{index-BC_7C1s0.cjs → index-DoM75JXa.cjs} +3 -3
- package/dist/{index-BC_7C1s0.cjs.map → index-DoM75JXa.cjs.map} +1 -1
- package/dist/{index-DIPzU6oa.js → index-DqL5-kQo.js} +2 -2
- package/dist/{index-DIPzU6oa.js.map → index-DqL5-kQo.js.map} +1 -1
- package/dist/{index-QdzH132w.js → index-Lb4y_NlB.js} +2 -2
- package/dist/{index-QdzH132w.js.map → index-Lb4y_NlB.js.map} +1 -1
- package/dist/{index-CJGghPVZ.js → index-N4O8-ZRx.js} +3 -3
- package/dist/{index-CJGghPVZ.js.map → index-N4O8-ZRx.js.map} +1 -1
- package/package.json +1 -1
- package/dist/UsersSolid-B9DXA9NX.cjs.map +0 -1
- package/dist/UsersSolid-DNy80FwB.js.map +0 -1
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
25
25
|
const radash = require("radash");
|
|
26
26
|
const react = require("@emotion/react");
|
|
27
|
-
const UsersSolid = require("./UsersSolid-
|
|
27
|
+
const UsersSolid = require("./UsersSolid-peS-I-xF.cjs");
|
|
28
28
|
const react$1 = require("react");
|
|
29
29
|
const constants = require("./constants-DFJRYpE2.cjs");
|
|
30
30
|
const core = require("@mantine/core");
|
|
@@ -797,8 +797,8 @@ function AccordionTable({
|
|
|
797
797
|
}
|
|
798
798
|
);
|
|
799
799
|
}
|
|
800
|
-
const Header$3 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
801
|
-
const Footer = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
800
|
+
const Header$3 = react$1.lazy(() => Promise.resolve().then(() => require("./index-CS0eGbp8.cjs")));
|
|
801
|
+
const Footer = react$1.lazy(() => Promise.resolve().then(() => require("./index-Ch7CzT1U.cjs")));
|
|
802
802
|
function ActionCard({ header, content, footer, useHoverMode = false }) {
|
|
803
803
|
const hasContent = !!content || !!footer;
|
|
804
804
|
const initialVisibility = footer?.startHidden !== true;
|
|
@@ -882,7 +882,7 @@ function Loader({ size, color = "primary" }) {
|
|
|
882
882
|
}
|
|
883
883
|
const CARD_WIDTH$1 = 350;
|
|
884
884
|
const CARD_HEADER_HEIGHT = 158;
|
|
885
|
-
const Header$2 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
885
|
+
const Header$2 = react$1.lazy(() => Promise.resolve().then(() => require("./index-BgYOMwQU.cjs")));
|
|
886
886
|
function Card({ children, className, contentClassName, roundedBottom, noPadding = false, fullWidth = false, header, wrapperSx, onClick }) {
|
|
887
887
|
const wrapperRef = react$1.useRef(null);
|
|
888
888
|
const handleOnClick = react$1.useCallback(
|
|
@@ -1317,7 +1317,7 @@ function ModalSheet({ isOpen, children, hideHandler, zIndex, onRequestHide, onRe
|
|
|
1317
1317
|
document.body
|
|
1318
1318
|
);
|
|
1319
1319
|
}
|
|
1320
|
-
const Badge = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
1320
|
+
const Badge = react$1.lazy(() => Promise.resolve().then(() => require("./index-DKCtJiPM.cjs")));
|
|
1321
1321
|
function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide, onRequestShow }) {
|
|
1322
1322
|
const shadowScrollRef = react$1.useRef(null);
|
|
1323
1323
|
const wrapperContentAreaRef = react$1.useRef(null);
|
|
@@ -2159,25 +2159,43 @@ function Avatar({ src, rounded = true, size = 62, did }) {
|
|
|
2159
2159
|
}
|
|
2160
2160
|
return /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.User, { css: ({ text }) => ({ ...css2, backgroundColor: text.secondary }) });
|
|
2161
2161
|
}
|
|
2162
|
-
function
|
|
2163
|
-
const { hovered, ref } = hooks.useHover();
|
|
2162
|
+
function SelectedIndicator() {
|
|
2164
2163
|
const theme = useUITheme.useUITheme();
|
|
2165
2164
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2165
|
+
"div",
|
|
2166
|
+
{
|
|
2167
|
+
style: {
|
|
2168
|
+
position: "absolute",
|
|
2169
|
+
left: -8,
|
|
2170
|
+
width: 4,
|
|
2171
|
+
height: 30,
|
|
2172
|
+
backgroundColor: theme.neutral.whiteFull,
|
|
2173
|
+
borderRadius: 4
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
);
|
|
2177
|
+
}
|
|
2178
|
+
function SpaceItem({ icon, id, selectedSpace, onClick }) {
|
|
2179
|
+
const { hovered, ref } = hooks.useHover();
|
|
2180
|
+
const theme = useUITheme.useUITheme();
|
|
2181
|
+
const isSelected = selectedSpace === id;
|
|
2182
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2166
2183
|
core.Center,
|
|
2167
2184
|
{
|
|
2168
2185
|
ref,
|
|
2169
2186
|
sx: {
|
|
2170
2187
|
cursor: "pointer",
|
|
2171
|
-
borderRadius: 24
|
|
2172
|
-
transform: hovered ? "scale(1.1)" : "scale(1)",
|
|
2173
|
-
transition: "transform 0.2s ease"
|
|
2188
|
+
borderRadius: 24
|
|
2174
2189
|
},
|
|
2175
2190
|
pos: "relative",
|
|
2176
|
-
bg: hovered ? theme.neutral.
|
|
2191
|
+
bg: hovered ? theme.neutral.transparent30 : theme.bg.navIconsBg,
|
|
2177
2192
|
mih: 40,
|
|
2178
2193
|
w: 40,
|
|
2179
2194
|
onClick: () => onClick(id),
|
|
2180
|
-
children:
|
|
2195
|
+
children: [
|
|
2196
|
+
typeof icon === "string" ? /* @__PURE__ */ jsxRuntime.jsx(core.Image, { radius: 24, src: icon, w: 32, h: 32 }) : icon,
|
|
2197
|
+
isSelected && /* @__PURE__ */ jsxRuntime.jsx(SelectedIndicator, {})
|
|
2198
|
+
]
|
|
2181
2199
|
}
|
|
2182
2200
|
);
|
|
2183
2201
|
}
|
|
@@ -2215,7 +2233,8 @@ function MenuItem({ item, onMenuItemClick, depth = 0 }) {
|
|
|
2215
2233
|
children: [
|
|
2216
2234
|
/* @__PURE__ */ jsxRuntime.jsxs(Flex, { align: "center", gap: 4, children: [
|
|
2217
2235
|
/* @__PURE__ */ jsxRuntime.jsx(item.icon, { size: 20, color: item.isActive ? "overPicture" : "secondary" }),
|
|
2218
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 14, fw: 500, c: item.isActive ? theme.neutral.lightGray : theme.text.secondary, style: { flex: 1 }, children: item.name })
|
|
2236
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { fz: 14, fw: 500, c: item.isActive ? theme.neutral.lightGray : theme.text.secondary, style: { flex: 1 }, children: item.name }),
|
|
2237
|
+
item.badgeCount && /* @__PURE__ */ jsxRuntime.jsx(core.Badge, { size: "xs", variant: "filled", ml: 4, style: { minWidth: "16px", height: "15px", padding: "0 4px", fontSize: "8px" }, children: item.badgeCount })
|
|
2219
2238
|
] }),
|
|
2220
2239
|
/* @__PURE__ */ jsxRuntime.jsxs(Flex, { children: [
|
|
2221
2240
|
hasChildren && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2325,9 +2344,11 @@ function AppShellNavigation({
|
|
|
2325
2344
|
spaces,
|
|
2326
2345
|
pageItem,
|
|
2327
2346
|
selectedSpace,
|
|
2347
|
+
temporarySpace,
|
|
2328
2348
|
menuItems,
|
|
2329
2349
|
companyIcon,
|
|
2330
2350
|
onAddSpaceClick,
|
|
2351
|
+
onMinusSpaceClick,
|
|
2331
2352
|
avatarIcon,
|
|
2332
2353
|
onMenuItemClick,
|
|
2333
2354
|
onSettingsIconClick,
|
|
@@ -2356,10 +2377,30 @@ function AppShellNavigation({
|
|
|
2356
2377
|
children: [
|
|
2357
2378
|
/* @__PURE__ */ jsxRuntime.jsx(core.AppShell.Navbar, { children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { style: { height: "100%" }, children: [
|
|
2358
2379
|
/* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { p: 8, w: 56, justify: "space-between", h: "100%", bg: theme.bg.navSpaces, children: [
|
|
2359
|
-
/* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { align: "center", style: { flex: 1
|
|
2360
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2361
|
-
|
|
2380
|
+
/* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { align: "center", style: { flex: 1 }, gap: 8, children: [
|
|
2381
|
+
/* @__PURE__ */ jsxRuntime.jsxs(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, pos: "relative", h: 40, w: 40, onClick: companyIcon.onClick, children: [
|
|
2382
|
+
typeof companyIcon.icon === "string" ? /* @__PURE__ */ jsxRuntime.jsx(core.Image, { radius: 24, src: companyIcon.icon, w: 32, h: 32 }) : companyIcon.icon,
|
|
2383
|
+
companyIcon.isSelected && /* @__PURE__ */ jsxRuntime.jsx(SelectedIndicator, {})
|
|
2384
|
+
] }),
|
|
2385
|
+
avatarIcon && /* @__PURE__ */ jsxRuntime.jsxs(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, pos: "relative", bg: theme.bg.navIconsBg, h: 40, w: 40, onClick: avatarIcon.onClick, children: [
|
|
2386
|
+
typeof avatarIcon.icon === "string" ? /* @__PURE__ */ jsxRuntime.jsx(core.Image, { radius: 24, src: avatarIcon.icon, w: 32, h: 32 }) : avatarIcon.icon,
|
|
2387
|
+
avatarIcon.isSelected && /* @__PURE__ */ jsxRuntime.jsx(SelectedIndicator, {})
|
|
2388
|
+
] }),
|
|
2362
2389
|
/* @__PURE__ */ jsxRuntime.jsx(core.Divider, { w: 40, mx: 10, color: theme.neutral.transparent10 }),
|
|
2390
|
+
temporarySpace && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2391
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2392
|
+
SpaceItem,
|
|
2393
|
+
{
|
|
2394
|
+
selectedSpace,
|
|
2395
|
+
icon: temporarySpace.icon,
|
|
2396
|
+
name: temporarySpace.name,
|
|
2397
|
+
id: temporarySpace.id,
|
|
2398
|
+
onClick: temporarySpace.onClick
|
|
2399
|
+
},
|
|
2400
|
+
temporarySpace.id
|
|
2401
|
+
),
|
|
2402
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Divider, { w: 40, mx: 10, color: theme.neutral.transparent10 })
|
|
2403
|
+
] }),
|
|
2363
2404
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2364
2405
|
core.Stack,
|
|
2365
2406
|
{
|
|
@@ -2377,14 +2418,12 @@ function AppShellNavigation({
|
|
|
2377
2418
|
display: "none"
|
|
2378
2419
|
}
|
|
2379
2420
|
},
|
|
2380
|
-
children: spaces.map(({ icon, id, name, onClick }
|
|
2381
|
-
selectedSpace === id && /* @__PURE__ */ jsxRuntime.jsx(core.Paper, { bg: theme.neutral.whiteFull, h: 30, w: 4, pos: "absolute", left: 0, top: 116 + i * 49.5 }),
|
|
2382
|
-
/* @__PURE__ */ jsxRuntime.jsx(SpaceItem, { icon, name, id, onClick }, id)
|
|
2383
|
-
] }))
|
|
2421
|
+
children: spaces.map(({ icon, id, name, onClick }) => /* @__PURE__ */ jsxRuntime.jsx(SpaceItem, { selectedSpace, icon, name, id, onClick }, id))
|
|
2384
2422
|
}
|
|
2385
2423
|
)
|
|
2386
2424
|
] }),
|
|
2387
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: theme.bg.navIconsBg, h: 40, w: 40, onClick: onAddSpaceClick, children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.PlusSolid, { color: "secondary" }) }),
|
|
2425
|
+
onAddSpaceClick && /* @__PURE__ */ jsxRuntime.jsx(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: theme.bg.navIconsBg, h: 40, w: 40, onClick: onAddSpaceClick, children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.PlusSolid, { color: "secondary" }) }),
|
|
2426
|
+
onMinusSpaceClick && /* @__PURE__ */ jsxRuntime.jsx(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: theme.bg.navIconsBg, h: 40, w: 40, onClick: onMinusSpaceClick, children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.MinusCircleSolid, { color: "secondary" }) }),
|
|
2388
2427
|
/* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { align: "center", gap: 8, children: [
|
|
2389
2428
|
/* @__PURE__ */ jsxRuntime.jsx(core.Divider, { w: 40, mx: 10, color: theme.neutral.transparent10 }),
|
|
2390
2429
|
/* @__PURE__ */ jsxRuntime.jsx(core.Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: theme.bg.navIconsBg, h: 40, w: 40, onClick: onSettingsIconClick, children: /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.SettingsBarSolid, { size: 22, color: "secondary" }) }),
|
|
@@ -5338,13 +5377,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
5338
5377
|
}
|
|
5339
5378
|
);
|
|
5340
5379
|
}
|
|
5341
|
-
const MainAction = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5342
|
-
const Header$1 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5343
|
-
const Content = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5380
|
+
const MainAction = react$1.lazy(() => Promise.resolve().then(() => require("./index-CURZjE2o.cjs")));
|
|
5381
|
+
const Header$1 = react$1.lazy(() => Promise.resolve().then(() => require("./index-B0a_fgrY.cjs")));
|
|
5382
|
+
const Content = react$1.lazy(() => Promise.resolve().then(() => require("./index-CkHXNKpn.cjs")));
|
|
5344
5383
|
const Map = react$1.lazy(() => Promise.resolve().then(() => require("./index-D4PsPquZ.cjs")));
|
|
5345
5384
|
const CustomContent = react$1.lazy(() => Promise.resolve().then(() => require("./index-ByrCNpS2.cjs")));
|
|
5346
|
-
const Assets = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5347
|
-
const Actions = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
5385
|
+
const Assets = react$1.lazy(() => Promise.resolve().then(() => require("./index-BSttBO__.cjs")));
|
|
5386
|
+
const Actions = react$1.lazy(() => Promise.resolve().then(() => require("./index-DoM75JXa.cjs")));
|
|
5348
5387
|
const HOVER_BORDER_WIDTH = 1;
|
|
5349
5388
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
5350
5389
|
const wrapperRef = react$1.useRef(null);
|
|
@@ -10656,4 +10695,4 @@ exports.UserMessage = UserMessage;
|
|
|
10656
10695
|
exports.WorkspaceModal = WorkspaceModal;
|
|
10657
10696
|
exports.cutText = cutText;
|
|
10658
10697
|
exports.isValidClick = isValidClick;
|
|
10659
|
-
//# sourceMappingURL=components-
|
|
10698
|
+
//# sourceMappingURL=components-UcpUEMTl.cjs.map
|