@ixo/ui 0.1.14 → 0.1.15
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 +31 -31
- package/dist/components/AppShellNavigation/components/RoomItem.d.ts +2 -1
- package/dist/components/AppShellNavigation/components/RoomItem.d.ts.map +1 -1
- package/dist/components/MoreMenu/components/Item/types.d.ts +1 -1
- package/dist/components/MoreMenu/components/Item/types.d.ts.map +1 -1
- package/dist/components/MoreMenu/index.d.ts +1 -1
- package/dist/components/MoreMenu/index.d.ts.map +1 -1
- package/dist/components/MoreMenu/types.d.ts +1 -0
- package/dist/components/MoreMenu/types.d.ts.map +1 -1
- package/dist/{components-DtFe8YJE.cjs → components-BWISh0mc.cjs} +37 -16
- package/dist/{components-DtFe8YJE.cjs.map → components-BWISh0mc.cjs.map} +1 -1
- package/dist/{components-DvXOspM4.js → components-CSb7qSeQ.js} +37 -16
- package/dist/{components-DvXOspM4.js.map → components-CSb7qSeQ.js.map} +1 -1
- package/dist/export/components.cjs +1 -1
- package/dist/export/components.mjs +1 -1
- package/dist/{index-jRBLexAJ.js → index-3BXIAJMs.js} +2 -2
- package/dist/{index-jRBLexAJ.js.map → index-3BXIAJMs.js.map} +1 -1
- package/dist/{index-Cxic68Ym.js → index-79BN9bQp.js} +2 -2
- package/dist/{index-Cxic68Ym.js.map → index-79BN9bQp.js.map} +1 -1
- package/dist/{index-BznUpwaP.js → index-BoyyPoe7.js} +2 -2
- package/dist/{index-BznUpwaP.js.map → index-BoyyPoe7.js.map} +1 -1
- package/dist/{index-rZkEJg_V.js → index-CG7ua6U5.js} +2 -2
- package/dist/{index-rZkEJg_V.js.map → index-CG7ua6U5.js.map} +1 -1
- package/dist/{index-DLR3AFnl.cjs → index-CcNuU5D_.cjs} +3 -3
- package/dist/{index-DLR3AFnl.cjs.map → index-CcNuU5D_.cjs.map} +1 -1
- package/dist/{index-B3WA9Dpl.cjs → index-CfxTeub_.cjs} +2 -2
- package/dist/{index-B3WA9Dpl.cjs.map → index-CfxTeub_.cjs.map} +1 -1
- package/dist/{index-mW3XPFWk.cjs → index-CtRJgMrQ.cjs} +2 -2
- package/dist/{index-mW3XPFWk.cjs.map → index-CtRJgMrQ.cjs.map} +1 -1
- package/dist/{index-DZvg73Pl.cjs → index-D9g1TKno.cjs} +2 -2
- package/dist/{index-DZvg73Pl.cjs.map → index-D9g1TKno.cjs.map} +1 -1
- package/dist/{index-D3CGrhue.cjs → index-DKRrekUN.cjs} +2 -2
- package/dist/{index-D3CGrhue.cjs.map → index-DKRrekUN.cjs.map} +1 -1
- package/dist/{index-F7eu0SKT.cjs → index-DU7qOQm4.cjs} +3 -3
- package/dist/{index-F7eu0SKT.cjs.map → index-DU7qOQm4.cjs.map} +1 -1
- package/dist/{index-CnjbKe8K.js → index-Dc5K_Tpd.js} +2 -2
- package/dist/{index-CnjbKe8K.js.map → index-Dc5K_Tpd.js.map} +1 -1
- package/dist/{index-DzF267qu.js → index-Dg03DAzQ.js} +2 -2
- package/dist/{index-DzF267qu.js.map → index-Dg03DAzQ.js.map} +1 -1
- package/dist/{index-CxRCL511.js → index-Dg3Be72o.js} +2 -2
- package/dist/{index-CxRCL511.js.map → index-Dg3Be72o.js.map} +1 -1
- package/dist/{index-C2pJWARx.cjs → index-DkO3nUqT.cjs} +2 -2
- package/dist/{index-C2pJWARx.cjs.map → index-DkO3nUqT.cjs.map} +1 -1
- package/dist/{index-D675wBJU.js → index-DwUyDHTC.js} +2 -2
- package/dist/{index-D675wBJU.js.map → index-DwUyDHTC.js.map} +1 -1
- package/dist/{index-CcZ-hXUQ.js → index-F_vabNrb.js} +3 -3
- package/dist/{index-CcZ-hXUQ.js.map → index-F_vabNrb.js.map} +1 -1
- package/dist/{index-CzEyLEVV.cjs → index-QE9Jy5-f.cjs} +2 -2
- package/dist/{index-CzEyLEVV.cjs.map → index-QE9Jy5-f.cjs.map} +1 -1
- package/dist/{index-9gv5565x.js → index-QRDAEcwI.js} +3 -3
- package/dist/{index-9gv5565x.js.map → index-QRDAEcwI.js.map} +1 -1
- package/dist/{index-CXCyJIXn.cjs → index-qvBz31v8.cjs} +2 -2
- package/dist/{index-CXCyJIXn.cjs.map → index-qvBz31v8.cjs.map} +1 -1
- package/dist/{index-K8bz789b.cjs → index-ySZqJOLy.cjs} +2 -2
- package/dist/{index-K8bz789b.cjs.map → index-ySZqJOLy.cjs.map} +1 -1
- package/package.json +1 -1
|
@@ -823,8 +823,8 @@ function AccordionTable({
|
|
|
823
823
|
}
|
|
824
824
|
);
|
|
825
825
|
}
|
|
826
|
-
const Header$3 = lazy(() => import("./index-
|
|
827
|
-
const Footer = lazy(() => import("./index-
|
|
826
|
+
const Header$3 = lazy(() => import("./index-Dg03DAzQ.js"));
|
|
827
|
+
const Footer = lazy(() => import("./index-QRDAEcwI.js"));
|
|
828
828
|
function ActionCard({ header, content, footer, useHoverMode = false }) {
|
|
829
829
|
const hasContent = !!content || !!footer;
|
|
830
830
|
const initialVisibility = footer?.startHidden !== true;
|
|
@@ -908,7 +908,7 @@ function Loader({ size, color = "primary" }) {
|
|
|
908
908
|
}
|
|
909
909
|
const CARD_WIDTH$1 = 350;
|
|
910
910
|
const CARD_HEADER_HEIGHT = 158;
|
|
911
|
-
const Header$2 = lazy(() => import("./index-
|
|
911
|
+
const Header$2 = lazy(() => import("./index-79BN9bQp.js"));
|
|
912
912
|
function Card({ children, className, contentClassName, roundedBottom, noPadding = false, fullWidth = false, header, wrapperSx, onClick }) {
|
|
913
913
|
const wrapperRef = useRef(null);
|
|
914
914
|
const handleOnClick = useCallback(
|
|
@@ -1343,7 +1343,7 @@ function ModalSheet({ isOpen, children, hideHandler, zIndex, onRequestHide, onRe
|
|
|
1343
1343
|
document.body
|
|
1344
1344
|
);
|
|
1345
1345
|
}
|
|
1346
|
-
const Badge = lazy(() => import("./index-
|
|
1346
|
+
const Badge = lazy(() => import("./index-Dc5K_Tpd.js"));
|
|
1347
1347
|
function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide, onRequestShow }) {
|
|
1348
1348
|
const shadowScrollRef = useRef(null);
|
|
1349
1349
|
const wrapperContentAreaRef = useRef(null);
|
|
@@ -1950,13 +1950,17 @@ function Item({ icon: icon2, label, disabled, onClick }) {
|
|
|
1950
1950
|
}
|
|
1951
1951
|
);
|
|
1952
1952
|
}
|
|
1953
|
-
function MoreMenu({ items, controlColor = "primary", Icon }) {
|
|
1953
|
+
function MoreMenu({ items, controlColor = "primary", Icon, onOpenChange }) {
|
|
1954
1954
|
const [opened, setOpened] = useState(false);
|
|
1955
|
+
const handleOpenChange = (value) => {
|
|
1956
|
+
setOpened(value);
|
|
1957
|
+
onOpenChange?.(value);
|
|
1958
|
+
};
|
|
1955
1959
|
return /* @__PURE__ */ jsxs(
|
|
1956
1960
|
Popover,
|
|
1957
1961
|
{
|
|
1958
1962
|
opened,
|
|
1959
|
-
onChange:
|
|
1963
|
+
onChange: handleOpenChange,
|
|
1960
1964
|
closeOnClickOutside: true,
|
|
1961
1965
|
styles: {
|
|
1962
1966
|
dropdown: {
|
|
@@ -1972,7 +1976,7 @@ function MoreMenu({ items, controlColor = "primary", Icon }) {
|
|
|
1972
1976
|
position: "right-start",
|
|
1973
1977
|
shadow: "md",
|
|
1974
1978
|
children: [
|
|
1975
|
-
/* @__PURE__ */ jsx(Popover.Target, { children: /* @__PURE__ */ jsx(Center, { onClick: () =>
|
|
1979
|
+
/* @__PURE__ */ jsx(Popover.Target, { children: /* @__PURE__ */ jsx(Center, { onClick: () => handleOpenChange(!opened), children: Icon || /* @__PURE__ */ jsx(EllipsisVSolid, { size: 20, color: controlColor }) }) }),
|
|
1976
1980
|
/* @__PURE__ */ jsxs(Popover.Dropdown, { children: [
|
|
1977
1981
|
/* @__PURE__ */ jsx(FocusTrap.InitialFocus, {}),
|
|
1978
1982
|
/* @__PURE__ */ jsx(Text$1, { ml: 12, mb: 10, fz: 14, c: "neutralColor.7", children: "Actions" }),
|
|
@@ -1985,7 +1989,7 @@ function MoreMenu({ items, controlColor = "primary", Icon }) {
|
|
|
1985
1989
|
active: item.active,
|
|
1986
1990
|
onClick: () => {
|
|
1987
1991
|
item.onClick();
|
|
1988
|
-
|
|
1992
|
+
handleOpenChange(false);
|
|
1989
1993
|
}
|
|
1990
1994
|
},
|
|
1991
1995
|
item.label
|
|
@@ -2328,6 +2332,8 @@ function NavigationItemSkeleton() {
|
|
|
2328
2332
|
}
|
|
2329
2333
|
function RoomItem({ room, navbarWidth }) {
|
|
2330
2334
|
const { hovered, ref } = useHover();
|
|
2335
|
+
const [menuOpened, setMenuOpened] = useState(false);
|
|
2336
|
+
const showActions = hovered || menuOpened;
|
|
2331
2337
|
const renderIcon = () => {
|
|
2332
2338
|
if (!room.icon) return null;
|
|
2333
2339
|
if (typeof room.icon === "string") {
|
|
@@ -2352,7 +2358,7 @@ function RoomItem({ room, navbarWidth }) {
|
|
|
2352
2358
|
style: {
|
|
2353
2359
|
cursor: "pointer",
|
|
2354
2360
|
borderRadius: 6,
|
|
2355
|
-
backgroundColor: room.isActive ||
|
|
2361
|
+
backgroundColor: room.isActive || showActions ? "var(--mantine-color-neutralColor-6)" : "transparent",
|
|
2356
2362
|
transition: "all 0.15s ease"
|
|
2357
2363
|
},
|
|
2358
2364
|
onClick: () => room.onClick(room.id),
|
|
@@ -2361,7 +2367,7 @@ function RoomItem({ room, navbarWidth }) {
|
|
|
2361
2367
|
renderIcon(),
|
|
2362
2368
|
/* @__PURE__ */ jsx(Text$1, { c: room.isActive ? "neutralColor.8" : "neutralColor.7", fz: 14, truncate: true, style: { maxWidth: textMaxWidth }, children: room.name })
|
|
2363
2369
|
] }),
|
|
2364
|
-
|
|
2370
|
+
showActions && /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 4, children: [
|
|
2365
2371
|
room.onActionClick && /* @__PURE__ */ jsx(Tooltip$4, { label: room.onActionClick.label, children: /* @__PURE__ */ jsx(
|
|
2366
2372
|
Center,
|
|
2367
2373
|
{
|
|
@@ -2373,6 +2379,21 @@ function RoomItem({ room, navbarWidth }) {
|
|
|
2373
2379
|
children: icon(room.onActionClick.icon, void 0, "var(--mantine-color-neutralColor-7)")
|
|
2374
2380
|
}
|
|
2375
2381
|
) }),
|
|
2382
|
+
room.actions && room.actions.length > 0 && /* @__PURE__ */ jsx(
|
|
2383
|
+
Center,
|
|
2384
|
+
{
|
|
2385
|
+
onClick: (e) => e.stopPropagation(),
|
|
2386
|
+
sx: {
|
|
2387
|
+
cursor: "pointer",
|
|
2388
|
+
borderRadius: 4,
|
|
2389
|
+
transition: "transform 0.2s ease",
|
|
2390
|
+
"&:hover": {
|
|
2391
|
+
background: "var(--mantine-color-neutralColor-5)"
|
|
2392
|
+
}
|
|
2393
|
+
},
|
|
2394
|
+
children: /* @__PURE__ */ jsx(MoreMenu, { items: room.actions, controlColor: "secondary", onOpenChange: setMenuOpened })
|
|
2395
|
+
}
|
|
2396
|
+
),
|
|
2376
2397
|
room.tag && room.tagIcon && /* @__PURE__ */ jsx(Tooltip$4, { label: room.tag, children: icon(room.tagIcon, void 0, "var(--mantine-color-neutralColor-7)") })
|
|
2377
2398
|
] })
|
|
2378
2399
|
]
|
|
@@ -6096,13 +6117,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
6096
6117
|
}
|
|
6097
6118
|
);
|
|
6098
6119
|
}
|
|
6099
|
-
const MainAction = lazy(() => import("./index-
|
|
6100
|
-
const Header$1 = lazy(() => import("./index-
|
|
6101
|
-
const Content = lazy(() => import("./index-
|
|
6120
|
+
const MainAction = lazy(() => import("./index-Dg3Be72o.js"));
|
|
6121
|
+
const Header$1 = lazy(() => import("./index-DwUyDHTC.js"));
|
|
6122
|
+
const Content = lazy(() => import("./index-3BXIAJMs.js"));
|
|
6102
6123
|
const Map = lazy(() => import("./index-D5Ufmf-s.js"));
|
|
6103
6124
|
const CustomContent = lazy(() => import("./index-DsYjW_4y.js"));
|
|
6104
|
-
const Assets = lazy(() => import("./index-
|
|
6105
|
-
const Actions = lazy(() => import("./index-
|
|
6125
|
+
const Assets = lazy(() => import("./index-CG7ua6U5.js"));
|
|
6126
|
+
const Actions = lazy(() => import("./index-F_vabNrb.js"));
|
|
6106
6127
|
const HOVER_BORDER_WIDTH = 1;
|
|
6107
6128
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
6108
6129
|
const wrapperRef = useRef(null);
|
|
@@ -11401,4 +11422,4 @@ export {
|
|
|
11401
11422
|
CardHero as y,
|
|
11402
11423
|
CardSelector as z
|
|
11403
11424
|
};
|
|
11404
|
-
//# sourceMappingURL=components-
|
|
11425
|
+
//# sourceMappingURL=components-CSb7qSeQ.js.map
|