@ixo/ui 0.0.14 → 0.0.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 +43 -43
- package/dist/components/AppShellNavigation/components/AsideResizable.d.ts +2 -1
- package/dist/components/AppShellNavigation/components/AsideResizable.d.ts.map +1 -1
- package/dist/components/AppShellNavigation/index.d.ts +2 -1
- package/dist/components/AppShellNavigation/index.d.ts.map +1 -1
- package/dist/{components-vw6J_dpp.cjs → components-B0B09Vsk.cjs} +43 -17
- package/dist/{components-vw6J_dpp.cjs.map → components-B0B09Vsk.cjs.map} +1 -1
- package/dist/{components-BiD0_7V_.js → components-CoGX1kwb.js} +43 -17
- package/dist/{components-BiD0_7V_.js.map → components-CoGX1kwb.js.map} +1 -1
- package/dist/export/components.cjs +1 -1
- package/dist/export/components.mjs +1 -1
- package/dist/{index-4sKOMBmk.cjs → index-3RRyZp85.cjs} +3 -3
- package/dist/{index-4sKOMBmk.cjs.map → index-3RRyZp85.cjs.map} +1 -1
- package/dist/{index-BvFDLUUX.js → index-72gYmOmd.js} +3 -3
- package/dist/{index-BvFDLUUX.js.map → index-72gYmOmd.js.map} +1 -1
- package/dist/{index-CXrrJ_Le.js → index-BElczvPE.js} +2 -2
- package/dist/{index-CXrrJ_Le.js.map → index-BElczvPE.js.map} +1 -1
- package/dist/{index-CsIW1_OQ.js → index-BIF9-t6h.js} +2 -2
- package/dist/{index-CsIW1_OQ.js.map → index-BIF9-t6h.js.map} +1 -1
- package/dist/{index-DNqtJQVl.cjs → index-BPiG2IqF.cjs} +2 -2
- package/dist/{index-DNqtJQVl.cjs.map → index-BPiG2IqF.cjs.map} +1 -1
- package/dist/{index-DVcSKgbJ.js → index-BVZ6ZzpV.js} +2 -2
- package/dist/{index-DVcSKgbJ.js.map → index-BVZ6ZzpV.js.map} +1 -1
- package/dist/{index-DqcjuULv.js → index-BphUXVlg.js} +3 -3
- package/dist/{index-DqcjuULv.js.map → index-BphUXVlg.js.map} +1 -1
- package/dist/{index-BHcOFwds.cjs → index-BvkqUymq.cjs} +2 -2
- package/dist/{index-BHcOFwds.cjs.map → index-BvkqUymq.cjs.map} +1 -1
- package/dist/{index-By0FBgRQ.js → index-CDZdWXqv.js} +2 -2
- package/dist/{index-By0FBgRQ.js.map → index-CDZdWXqv.js.map} +1 -1
- package/dist/{index-Coxm5WEM.cjs → index-CJE1_yJ6.cjs} +2 -2
- package/dist/{index-Coxm5WEM.cjs.map → index-CJE1_yJ6.cjs.map} +1 -1
- package/dist/{index-BG-QfJbv.cjs → index-CWElz4HJ.cjs} +2 -2
- package/dist/{index-BG-QfJbv.cjs.map → index-CWElz4HJ.cjs.map} +1 -1
- package/dist/{index-yjx-PRyb.cjs → index-CXi6Syua.cjs} +2 -2
- package/dist/{index-yjx-PRyb.cjs.map → index-CXi6Syua.cjs.map} +1 -1
- package/dist/{index-BuxCAg_1.cjs → index-CfPgXC_X.cjs} +2 -2
- package/dist/{index-BuxCAg_1.cjs.map → index-CfPgXC_X.cjs.map} +1 -1
- package/dist/{index-djRt821o.cjs → index-D0eJPLEq.cjs} +2 -2
- package/dist/{index-djRt821o.cjs.map → index-D0eJPLEq.cjs.map} +1 -1
- package/dist/{index-CyysTrZP.cjs → index-DOa4tU-h.cjs} +2 -2
- package/dist/{index-CyysTrZP.cjs.map → index-DOa4tU-h.cjs.map} +1 -1
- package/dist/{index-c39fFlNp.js → index-DRJd3yU2.js} +2 -2
- package/dist/{index-c39fFlNp.js.map → index-DRJd3yU2.js.map} +1 -1
- package/dist/{index-CF2PVnSW.js → index-DbRJT74u.js} +2 -2
- package/dist/{index-CF2PVnSW.js.map → index-DbRJT74u.js.map} +1 -1
- package/dist/{index-Dva9zr6w.js → index-DeirAOH-.js} +2 -2
- package/dist/{index-Dva9zr6w.js.map → index-DeirAOH-.js.map} +1 -1
- package/dist/{index-nhqvNIAj.cjs → index-ffAWONI_.cjs} +3 -3
- package/dist/{index-nhqvNIAj.cjs.map → index-ffAWONI_.cjs.map} +1 -1
- package/dist/{index-ErQUX7j7.js → index-jE_hmlY8.js} +2 -2
- package/dist/{index-ErQUX7j7.js.map → index-jE_hmlY8.js.map} +1 -1
- package/package.json +1 -1
|
@@ -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-DeirAOH-.js"));
|
|
778
|
+
const Footer = lazy(() => import("./index-72gYmOmd.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-BIF9-t6h.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-DbRJT74u.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);
|
|
@@ -2137,16 +2137,16 @@ function Avatar({ src, rounded = true, size = 62, did }) {
|
|
|
2137
2137
|
return /* @__PURE__ */ jsx(User, { css: ({ text }) => ({ ...css2, backgroundColor: text.secondary }) });
|
|
2138
2138
|
}
|
|
2139
2139
|
const MIN_WIDTH = 200;
|
|
2140
|
-
|
|
2141
|
-
function AsideResizable({ children, asideCollapsed = false, onAsideToggle, width = 300, onWidthChange }) {
|
|
2140
|
+
function AsideResizable({ children, asideCollapsed = false, onAsideToggle, width = 450, onWidthChange, onMaxExpand }) {
|
|
2142
2141
|
const [isResizing, setIsResizing] = useState(false);
|
|
2143
2142
|
const [ref] = useResizeObserver();
|
|
2144
2143
|
const isShowingRef = useRef(false);
|
|
2144
|
+
const hasFiredMaxExpand = useRef(false);
|
|
2145
2145
|
const theme = useUITheme();
|
|
2146
2146
|
useEffect(() => {
|
|
2147
2147
|
if (!asideCollapsed && width <= MIN_WIDTH) {
|
|
2148
2148
|
isShowingRef.current = true;
|
|
2149
|
-
onWidthChange?.(
|
|
2149
|
+
onWidthChange?.(width);
|
|
2150
2150
|
setTimeout(() => {
|
|
2151
2151
|
isShowingRef.current = false;
|
|
2152
2152
|
}, 200);
|
|
@@ -2172,7 +2172,9 @@ function AsideResizable({ children, asideCollapsed = false, onAsideToggle, width
|
|
|
2172
2172
|
const handleMouseMove = (e) => {
|
|
2173
2173
|
if (!isResizing) return;
|
|
2174
2174
|
const newWidth = window.innerWidth - e.clientX;
|
|
2175
|
-
|
|
2175
|
+
const maxWidth = window.innerWidth - 600;
|
|
2176
|
+
const constrainedWidth = Math.min(Math.max(newWidth, MIN_WIDTH), maxWidth);
|
|
2177
|
+
onWidthChange?.(constrainedWidth);
|
|
2176
2178
|
};
|
|
2177
2179
|
useEffect(() => {
|
|
2178
2180
|
if (width === MIN_WIDTH && !asideCollapsed && onAsideToggle && !isShowingRef.current) {
|
|
@@ -2180,13 +2182,36 @@ function AsideResizable({ children, asideCollapsed = false, onAsideToggle, width
|
|
|
2180
2182
|
onAsideToggle();
|
|
2181
2183
|
}
|
|
2182
2184
|
}, [width, asideCollapsed, onAsideToggle]);
|
|
2185
|
+
useEffect(() => {
|
|
2186
|
+
const maxWidth = window.innerWidth - 600;
|
|
2187
|
+
if (width >= maxWidth && onMaxExpand && !hasFiredMaxExpand.current) {
|
|
2188
|
+
hasFiredMaxExpand.current = true;
|
|
2189
|
+
clearListeners();
|
|
2190
|
+
onMaxExpand();
|
|
2191
|
+
} else if (width < maxWidth) {
|
|
2192
|
+
hasFiredMaxExpand.current = false;
|
|
2193
|
+
}
|
|
2194
|
+
}, [width, onMaxExpand]);
|
|
2195
|
+
useEffect(() => {
|
|
2196
|
+
const handleWindowResize = () => {
|
|
2197
|
+
const newMaxWidth = window.innerWidth - 600;
|
|
2198
|
+
const newMinWidth = MIN_WIDTH;
|
|
2199
|
+
if (width > newMaxWidth) {
|
|
2200
|
+
onWidthChange?.(newMaxWidth);
|
|
2201
|
+
} else if (width < newMinWidth) {
|
|
2202
|
+
onWidthChange?.(newMinWidth);
|
|
2203
|
+
}
|
|
2204
|
+
};
|
|
2205
|
+
window.addEventListener("resize", handleWindowResize);
|
|
2206
|
+
return () => window.removeEventListener("resize", handleWindowResize);
|
|
2207
|
+
}, [width, onWidthChange]);
|
|
2183
2208
|
const handleMouseUp = () => setIsResizing(false);
|
|
2184
2209
|
const handleMouseDown = (e) => {
|
|
2185
2210
|
e.preventDefault();
|
|
2186
2211
|
setIsResizing(true);
|
|
2187
2212
|
};
|
|
2188
2213
|
if (asideCollapsed) return null;
|
|
2189
|
-
return /* @__PURE__ */ jsxs(AppShell.Aside, { w: width, miw: 200, maw:
|
|
2214
|
+
return /* @__PURE__ */ jsxs(AppShell.Aside, { w: width, miw: 200, maw: window.innerWidth - 340, ref, children: [
|
|
2190
2215
|
/* @__PURE__ */ jsx(
|
|
2191
2216
|
Box,
|
|
2192
2217
|
{
|
|
@@ -2406,10 +2431,11 @@ function AppShellNavigation({
|
|
|
2406
2431
|
right,
|
|
2407
2432
|
asideCollapsed = true,
|
|
2408
2433
|
onAsideToggle,
|
|
2434
|
+
onMaxExpand,
|
|
2409
2435
|
children
|
|
2410
2436
|
}) {
|
|
2411
2437
|
const [navbarCollapsed, { toggle: toggleNavbar }] = useDisclosure(true);
|
|
2412
|
-
const [asideWidth, setAsideWidth] = useState(
|
|
2438
|
+
const [asideWidth, setAsideWidth] = useState(450);
|
|
2413
2439
|
const theme = useUITheme();
|
|
2414
2440
|
return /* @__PURE__ */ jsxs(
|
|
2415
2441
|
AppShell,
|
|
@@ -2504,7 +2530,7 @@ function AppShellNavigation({
|
|
|
2504
2530
|
] })
|
|
2505
2531
|
] }) }),
|
|
2506
2532
|
/* @__PURE__ */ jsx(AppShell.Main, { children }),
|
|
2507
|
-
/* @__PURE__ */ jsx(AsideResizable, { asideCollapsed, onAsideToggle, width: asideWidth, onWidthChange: setAsideWidth, children: right })
|
|
2533
|
+
/* @__PURE__ */ jsx(AsideResizable, { asideCollapsed, onAsideToggle, onMaxExpand, width: asideWidth, onWidthChange: setAsideWidth, children: right })
|
|
2508
2534
|
]
|
|
2509
2535
|
}
|
|
2510
2536
|
);
|
|
@@ -5482,13 +5508,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
5482
5508
|
}
|
|
5483
5509
|
);
|
|
5484
5510
|
}
|
|
5485
|
-
const MainAction = lazy(() => import("./index-
|
|
5486
|
-
const Header$1 = lazy(() => import("./index-
|
|
5487
|
-
const Content = lazy(() => import("./index-
|
|
5511
|
+
const MainAction = lazy(() => import("./index-BElczvPE.js"));
|
|
5512
|
+
const Header$1 = lazy(() => import("./index-CDZdWXqv.js"));
|
|
5513
|
+
const Content = lazy(() => import("./index-BVZ6ZzpV.js"));
|
|
5488
5514
|
const Map = lazy(() => import("./index-D5Ufmf-s.js"));
|
|
5489
5515
|
const CustomContent = lazy(() => import("./index-DsYjW_4y.js"));
|
|
5490
|
-
const Assets = lazy(() => import("./index-
|
|
5491
|
-
const Actions = lazy(() => import("./index-
|
|
5516
|
+
const Assets = lazy(() => import("./index-DRJd3yU2.js"));
|
|
5517
|
+
const Actions = lazy(() => import("./index-BphUXVlg.js"));
|
|
5492
5518
|
const HOVER_BORDER_WIDTH = 1;
|
|
5493
5519
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
5494
5520
|
const wrapperRef = useRef(null);
|
|
@@ -10802,4 +10828,4 @@ export {
|
|
|
10802
10828
|
CardSelector as y,
|
|
10803
10829
|
CardOutput as z
|
|
10804
10830
|
};
|
|
10805
|
-
//# sourceMappingURL=components-
|
|
10831
|
+
//# sourceMappingURL=components-CoGX1kwb.js.map
|