@ixo/ui 0.0.13 → 0.0.14
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/AsideResizable.d.ts +10 -0
- package/dist/components/AppShellNavigation/components/AsideResizable.d.ts.map +1 -0
- package/dist/components/AppShellNavigation/index.d.ts +4 -1
- package/dist/components/AppShellNavigation/index.d.ts.map +1 -1
- package/dist/{components-C4EqnIzL.js → components-BiD0_7V_.js} +99 -17
- package/dist/components-BiD0_7V_.js.map +1 -0
- package/dist/{components-CV2rKBYZ.cjs → components-vw6J_dpp.cjs} +98 -16
- package/dist/components-vw6J_dpp.cjs.map +1 -0
- package/dist/export/components.cjs +1 -1
- package/dist/export/components.mjs +1 -1
- package/dist/{index-C5CnSI8h.cjs → index-4sKOMBmk.cjs} +3 -3
- package/dist/{index-C5CnSI8h.cjs.map → index-4sKOMBmk.cjs.map} +1 -1
- package/dist/{index-C3_1bvTS.cjs → index-BG-QfJbv.cjs} +2 -2
- package/dist/{index-C3_1bvTS.cjs.map → index-BG-QfJbv.cjs.map} +1 -1
- package/dist/{index-Dj1BaWDs.cjs → index-BHcOFwds.cjs} +2 -2
- package/dist/{index-Dj1BaWDs.cjs.map → index-BHcOFwds.cjs.map} +1 -1
- package/dist/{index-C_T_TF7J.cjs → index-BuxCAg_1.cjs} +2 -2
- package/dist/{index-C_T_TF7J.cjs.map → index-BuxCAg_1.cjs.map} +1 -1
- package/dist/{index-CyWiU3i_.js → index-BvFDLUUX.js} +3 -3
- package/dist/{index-CyWiU3i_.js.map → index-BvFDLUUX.js.map} +1 -1
- package/dist/{index-Ckhzun7H.js → index-By0FBgRQ.js} +2 -2
- package/dist/{index-Ckhzun7H.js.map → index-By0FBgRQ.js.map} +1 -1
- package/dist/{index-CooLFL4R.js → index-CF2PVnSW.js} +2 -2
- package/dist/{index-CooLFL4R.js.map → index-CF2PVnSW.js.map} +1 -1
- package/dist/{index-D7EQ3eKf.js → index-CXrrJ_Le.js} +2 -2
- package/dist/{index-D7EQ3eKf.js.map → index-CXrrJ_Le.js.map} +1 -1
- package/dist/{index-Bg26rTdb.cjs → index-Coxm5WEM.cjs} +2 -2
- package/dist/{index-Bg26rTdb.cjs.map → index-Coxm5WEM.cjs.map} +1 -1
- package/dist/{index-CZbze3rk.js → index-CsIW1_OQ.js} +2 -2
- package/dist/{index-CZbze3rk.js.map → index-CsIW1_OQ.js.map} +1 -1
- package/dist/{index-mvsa-Ixl.cjs → index-CyysTrZP.cjs} +2 -2
- package/dist/{index-mvsa-Ixl.cjs.map → index-CyysTrZP.cjs.map} +1 -1
- package/dist/{index-CefO0Jav.cjs → index-DNqtJQVl.cjs} +2 -2
- package/dist/{index-CefO0Jav.cjs.map → index-DNqtJQVl.cjs.map} +1 -1
- package/dist/{index-BLat0Lyt.js → index-DVcSKgbJ.js} +2 -2
- package/dist/{index-BLat0Lyt.js.map → index-DVcSKgbJ.js.map} +1 -1
- package/dist/{index-X6VhYA9V.js → index-DqcjuULv.js} +3 -3
- package/dist/{index-X6VhYA9V.js.map → index-DqcjuULv.js.map} +1 -1
- package/dist/{index-CBpRYfw7.js → index-Dva9zr6w.js} +2 -2
- package/dist/{index-CBpRYfw7.js.map → index-Dva9zr6w.js.map} +1 -1
- package/dist/{index-CoOmnlIt.js → index-ErQUX7j7.js} +2 -2
- package/dist/{index-CoOmnlIt.js.map → index-ErQUX7j7.js.map} +1 -1
- package/dist/{index-BhVNm8RD.js → index-c39fFlNp.js} +2 -2
- package/dist/{index-BhVNm8RD.js.map → index-c39fFlNp.js.map} +1 -1
- package/dist/{index-Dkg-DJse.cjs → index-djRt821o.cjs} +2 -2
- package/dist/{index-Dkg-DJse.cjs.map → index-djRt821o.cjs.map} +1 -1
- package/dist/{index-Dw22tq1e.cjs → index-nhqvNIAj.cjs} +3 -3
- package/dist/{index-Dw22tq1e.cjs.map → index-nhqvNIAj.cjs.map} +1 -1
- package/dist/{index-4dRzDkrK.cjs → index-yjx-PRyb.cjs} +2 -2
- package/dist/{index-4dRzDkrK.cjs.map → index-yjx-PRyb.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/components-C4EqnIzL.js.map +0 -1
- package/dist/components-CV2rKBYZ.cjs.map +0 -1
package/dist/.vite/manifest.json
CHANGED
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"_useUITheme-DqgAb7n1.cjs"
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
|
-
"_components-
|
|
33
|
-
"file": "components-
|
|
32
|
+
"_components-BiD0_7V_.js": {
|
|
33
|
+
"file": "components-BiD0_7V_.js",
|
|
34
34
|
"name": "components",
|
|
35
35
|
"imports": [
|
|
36
36
|
"_UsersSolid-CyNyz_eF.js",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"src/components/SodaCard/components/Actions/index.tsx"
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
|
-
"_components-
|
|
59
|
-
"file": "components-
|
|
58
|
+
"_components-vw6J_dpp.cjs": {
|
|
59
|
+
"file": "components-vw6J_dpp.cjs",
|
|
60
60
|
"name": "components",
|
|
61
61
|
"imports": [
|
|
62
62
|
"_UsersSolid-peS-I-xF.cjs",
|
|
@@ -103,18 +103,18 @@
|
|
|
103
103
|
"_constants-B7xlU8b8.js"
|
|
104
104
|
]
|
|
105
105
|
},
|
|
106
|
-
"_index-
|
|
107
|
-
"file": "index-
|
|
106
|
+
"_index-Coxm5WEM.cjs": {
|
|
107
|
+
"file": "index-Coxm5WEM.cjs",
|
|
108
108
|
"name": "index",
|
|
109
109
|
"imports": [
|
|
110
|
-
"_components-
|
|
110
|
+
"_components-vw6J_dpp.cjs"
|
|
111
111
|
]
|
|
112
112
|
},
|
|
113
|
-
"_index-
|
|
114
|
-
"file": "index-
|
|
113
|
+
"_index-ErQUX7j7.js": {
|
|
114
|
+
"file": "index-ErQUX7j7.js",
|
|
115
115
|
"name": "index",
|
|
116
116
|
"imports": [
|
|
117
|
-
"_components-
|
|
117
|
+
"_components-BiD0_7V_.js"
|
|
118
118
|
]
|
|
119
119
|
},
|
|
120
120
|
"_themes-CAW1Y0Nk.cjs": {
|
|
@@ -158,41 +158,41 @@
|
|
|
158
158
|
"name": "utils"
|
|
159
159
|
},
|
|
160
160
|
"src/components/ActionCard/components/Footer/index.tsx": {
|
|
161
|
-
"file": "index-
|
|
161
|
+
"file": "index-4sKOMBmk.cjs",
|
|
162
162
|
"name": "index",
|
|
163
163
|
"src": "src/components/ActionCard/components/Footer/index.tsx",
|
|
164
164
|
"isDynamicEntry": true,
|
|
165
165
|
"imports": [
|
|
166
|
-
"_index-
|
|
167
|
-
"_components-
|
|
166
|
+
"_index-Coxm5WEM.cjs",
|
|
167
|
+
"_components-vw6J_dpp.cjs"
|
|
168
168
|
]
|
|
169
169
|
},
|
|
170
170
|
"src/components/ActionCard/components/Header/index.tsx": {
|
|
171
|
-
"file": "index-
|
|
171
|
+
"file": "index-djRt821o.cjs",
|
|
172
172
|
"name": "index",
|
|
173
173
|
"src": "src/components/ActionCard/components/Header/index.tsx",
|
|
174
174
|
"isDynamicEntry": true,
|
|
175
175
|
"imports": [
|
|
176
|
-
"_components-
|
|
176
|
+
"_components-vw6J_dpp.cjs",
|
|
177
177
|
"_UsersSolid-peS-I-xF.cjs"
|
|
178
178
|
]
|
|
179
179
|
},
|
|
180
180
|
"src/components/ActionSheet/components/Badge/index.tsx": {
|
|
181
|
-
"file": "index-
|
|
181
|
+
"file": "index-BuxCAg_1.cjs",
|
|
182
182
|
"name": "index",
|
|
183
183
|
"src": "src/components/ActionSheet/components/Badge/index.tsx",
|
|
184
184
|
"isDynamicEntry": true,
|
|
185
185
|
"imports": [
|
|
186
|
-
"_components-
|
|
186
|
+
"_components-vw6J_dpp.cjs"
|
|
187
187
|
]
|
|
188
188
|
},
|
|
189
189
|
"src/components/Card/components/Header/index.tsx": {
|
|
190
|
-
"file": "index-
|
|
190
|
+
"file": "index-BG-QfJbv.cjs",
|
|
191
191
|
"name": "index",
|
|
192
192
|
"src": "src/components/Card/components/Header/index.tsx",
|
|
193
193
|
"isDynamicEntry": true,
|
|
194
194
|
"imports": [
|
|
195
|
-
"_components-
|
|
195
|
+
"_components-vw6J_dpp.cjs"
|
|
196
196
|
]
|
|
197
197
|
},
|
|
198
198
|
"src/components/Chart/components/LazyChart/index.tsx": {
|
|
@@ -202,31 +202,31 @@
|
|
|
202
202
|
"isDynamicEntry": true
|
|
203
203
|
},
|
|
204
204
|
"src/components/SodaCard/components/Actions/index.tsx": {
|
|
205
|
-
"file": "index-
|
|
205
|
+
"file": "index-nhqvNIAj.cjs",
|
|
206
206
|
"name": "index",
|
|
207
207
|
"src": "src/components/SodaCard/components/Actions/index.tsx",
|
|
208
208
|
"isDynamicEntry": true,
|
|
209
209
|
"imports": [
|
|
210
|
-
"_index-
|
|
211
|
-
"_components-
|
|
210
|
+
"_index-Coxm5WEM.cjs",
|
|
211
|
+
"_components-vw6J_dpp.cjs"
|
|
212
212
|
]
|
|
213
213
|
},
|
|
214
214
|
"src/components/SodaCard/components/Assets/index.tsx": {
|
|
215
|
-
"file": "index-
|
|
215
|
+
"file": "index-CyysTrZP.cjs",
|
|
216
216
|
"name": "index",
|
|
217
217
|
"src": "src/components/SodaCard/components/Assets/index.tsx",
|
|
218
218
|
"isDynamicEntry": true,
|
|
219
219
|
"imports": [
|
|
220
|
-
"_components-
|
|
220
|
+
"_components-vw6J_dpp.cjs"
|
|
221
221
|
]
|
|
222
222
|
},
|
|
223
223
|
"src/components/SodaCard/components/Content/index.tsx": {
|
|
224
|
-
"file": "index-
|
|
224
|
+
"file": "index-BHcOFwds.cjs",
|
|
225
225
|
"name": "index",
|
|
226
226
|
"src": "src/components/SodaCard/components/Content/index.tsx",
|
|
227
227
|
"isDynamicEntry": true,
|
|
228
228
|
"imports": [
|
|
229
|
-
"_components-
|
|
229
|
+
"_components-vw6J_dpp.cjs",
|
|
230
230
|
"_utils-BmyeZmSR.cjs"
|
|
231
231
|
]
|
|
232
232
|
},
|
|
@@ -237,22 +237,22 @@
|
|
|
237
237
|
"isDynamicEntry": true
|
|
238
238
|
},
|
|
239
239
|
"src/components/SodaCard/components/Header/index.tsx": {
|
|
240
|
-
"file": "index-
|
|
240
|
+
"file": "index-yjx-PRyb.cjs",
|
|
241
241
|
"name": "index",
|
|
242
242
|
"src": "src/components/SodaCard/components/Header/index.tsx",
|
|
243
243
|
"isDynamicEntry": true,
|
|
244
244
|
"imports": [
|
|
245
|
-
"_components-
|
|
245
|
+
"_components-vw6J_dpp.cjs",
|
|
246
246
|
"_constants-DFJRYpE2.cjs"
|
|
247
247
|
]
|
|
248
248
|
},
|
|
249
249
|
"src/components/SodaCard/components/MainAction/index.tsx": {
|
|
250
|
-
"file": "index-
|
|
250
|
+
"file": "index-DNqtJQVl.cjs",
|
|
251
251
|
"name": "index",
|
|
252
252
|
"src": "src/components/SodaCard/components/MainAction/index.tsx",
|
|
253
253
|
"isDynamicEntry": true,
|
|
254
254
|
"imports": [
|
|
255
|
-
"_components-
|
|
255
|
+
"_components-vw6J_dpp.cjs"
|
|
256
256
|
]
|
|
257
257
|
},
|
|
258
258
|
"src/components/SodaCard/components/Map/index.tsx": {
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
"src": "src/export/components.ts",
|
|
273
273
|
"isEntry": true,
|
|
274
274
|
"imports": [
|
|
275
|
-
"_components-
|
|
275
|
+
"_components-vw6J_dpp.cjs"
|
|
276
276
|
]
|
|
277
277
|
},
|
|
278
278
|
"src/export/hooks.ts": {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
type Props = PropsWithChildren<{
|
|
3
|
+
asideCollapsed?: boolean;
|
|
4
|
+
onAsideToggle?: () => void;
|
|
5
|
+
width?: number;
|
|
6
|
+
onWidthChange?: (width: number) => void;
|
|
7
|
+
}>;
|
|
8
|
+
export default function AsideResizable({ children, asideCollapsed, onAsideToggle, width, onWidthChange }: Props): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=AsideResizable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AsideResizable.d.ts","sourceRoot":"","sources":["../../../../src/components/AppShellNavigation/components/AsideResizable.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAA+B,MAAM,OAAO,CAAC;AAMvE,KAAK,KAAK,GAAG,iBAAiB,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,CAAC,CAAC;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,QAAQ,EAAE,cAAsB,EAAE,aAAa,EAAE,KAAW,EAAE,aAAa,EAAE,EAAE,KAAK,2DAiF5H"}
|
|
@@ -50,6 +50,9 @@ type Props = {
|
|
|
50
50
|
temporarySpace?: ISpaceItem;
|
|
51
51
|
onMenuItemClick: (item: IMenuItem) => void;
|
|
52
52
|
spaces: ISpaceItem[];
|
|
53
|
+
right?: ReactElement;
|
|
54
|
+
asideCollapsed?: boolean;
|
|
55
|
+
onAsideToggle?: () => void;
|
|
53
56
|
avatarIcon?: {
|
|
54
57
|
icon: string | ReactElement | null;
|
|
55
58
|
onClick: () => void;
|
|
@@ -61,6 +64,6 @@ type Props = {
|
|
|
61
64
|
onAddSpaceClick?: () => void;
|
|
62
65
|
onMinusSpaceClick?: () => void;
|
|
63
66
|
};
|
|
64
|
-
export declare function AppShellNavigation({ spaces, pageItem, selectedSpace, temporarySpace, menuItems, companyIcon, onAddSpaceClick, onMinusSpaceClick, avatarIcon, onMenuItemClick, onSettingsIconClick, onBackClick, isBackButtonVisible, footerMenuItems, roomCategories, children }: PropsWithChildren<Props>): ReactElement;
|
|
67
|
+
export declare function AppShellNavigation({ spaces, pageItem, selectedSpace, temporarySpace, menuItems, companyIcon, onAddSpaceClick, onMinusSpaceClick, avatarIcon, onMenuItemClick, onSettingsIconClick, onBackClick, isBackButtonVisible, footerMenuItems, roomCategories, right, asideCollapsed, onAsideToggle, children }: PropsWithChildren<Props>): ReactElement;
|
|
65
68
|
export {};
|
|
66
69
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AppShellNavigation/index.tsx"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AppShellNavigation/index.tsx"],"names":[],"mappings":"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"}
|
|
@@ -9,7 +9,7 @@ import { cx, css } from "@emotion/css";
|
|
|
9
9
|
import { createPortal } from "react-dom";
|
|
10
10
|
import DOMPurify from "dompurify";
|
|
11
11
|
import { u as useUITheme } from "./useUITheme-7i8NJ2FG.js";
|
|
12
|
-
import { useDisclosure, useHover } from "@mantine/hooks";
|
|
12
|
+
import { useResizeObserver, useDisclosure, useHover } from "@mantine/hooks";
|
|
13
13
|
import Markdown from "react-markdown";
|
|
14
14
|
import remarkGfm from "remark-gfm";
|
|
15
15
|
import { useCombobox, useSelect } from "downshift";
|
|
@@ -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-Dva9zr6w.js"));
|
|
778
|
+
const Footer = lazy(() => import("./index-BvFDLUUX.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-CsIW1_OQ.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-CF2PVnSW.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,6 +2136,76 @@ 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
|
+
const MIN_WIDTH = 200;
|
|
2140
|
+
const MAX_WIDTH = 600;
|
|
2141
|
+
function AsideResizable({ children, asideCollapsed = false, onAsideToggle, width = 300, onWidthChange }) {
|
|
2142
|
+
const [isResizing, setIsResizing] = useState(false);
|
|
2143
|
+
const [ref] = useResizeObserver();
|
|
2144
|
+
const isShowingRef = useRef(false);
|
|
2145
|
+
const theme = useUITheme();
|
|
2146
|
+
useEffect(() => {
|
|
2147
|
+
if (!asideCollapsed && width <= MIN_WIDTH) {
|
|
2148
|
+
isShowingRef.current = true;
|
|
2149
|
+
onWidthChange?.(300);
|
|
2150
|
+
setTimeout(() => {
|
|
2151
|
+
isShowingRef.current = false;
|
|
2152
|
+
}, 200);
|
|
2153
|
+
}
|
|
2154
|
+
}, [asideCollapsed]);
|
|
2155
|
+
function clearListeners() {
|
|
2156
|
+
document.removeEventListener("mousemove", handleMouseMove);
|
|
2157
|
+
document.removeEventListener("mouseup", handleMouseUp);
|
|
2158
|
+
document.body.style.cursor = "";
|
|
2159
|
+
document.body.style.userSelect = "";
|
|
2160
|
+
}
|
|
2161
|
+
useEffect(() => {
|
|
2162
|
+
if (isResizing) {
|
|
2163
|
+
document.addEventListener("mousemove", handleMouseMove);
|
|
2164
|
+
document.addEventListener("mouseup", handleMouseUp);
|
|
2165
|
+
document.body.style.cursor = "col-resize";
|
|
2166
|
+
document.body.style.userSelect = "none";
|
|
2167
|
+
} else {
|
|
2168
|
+
clearListeners();
|
|
2169
|
+
}
|
|
2170
|
+
return () => clearListeners();
|
|
2171
|
+
}, [isResizing]);
|
|
2172
|
+
const handleMouseMove = (e) => {
|
|
2173
|
+
if (!isResizing) return;
|
|
2174
|
+
const newWidth = window.innerWidth - e.clientX;
|
|
2175
|
+
onWidthChange?.(Math.min(Math.max(newWidth, MIN_WIDTH), MAX_WIDTH));
|
|
2176
|
+
};
|
|
2177
|
+
useEffect(() => {
|
|
2178
|
+
if (width === MIN_WIDTH && !asideCollapsed && onAsideToggle && !isShowingRef.current) {
|
|
2179
|
+
clearListeners();
|
|
2180
|
+
onAsideToggle();
|
|
2181
|
+
}
|
|
2182
|
+
}, [width, asideCollapsed, onAsideToggle]);
|
|
2183
|
+
const handleMouseUp = () => setIsResizing(false);
|
|
2184
|
+
const handleMouseDown = (e) => {
|
|
2185
|
+
e.preventDefault();
|
|
2186
|
+
setIsResizing(true);
|
|
2187
|
+
};
|
|
2188
|
+
if (asideCollapsed) return null;
|
|
2189
|
+
return /* @__PURE__ */ jsxs(AppShell.Aside, { w: width, miw: 200, maw: 600, ref, children: [
|
|
2190
|
+
/* @__PURE__ */ jsx(
|
|
2191
|
+
Box,
|
|
2192
|
+
{
|
|
2193
|
+
w: 4,
|
|
2194
|
+
top: 0,
|
|
2195
|
+
left: 0,
|
|
2196
|
+
h: "100%",
|
|
2197
|
+
pos: "absolute",
|
|
2198
|
+
bg: isResizing ? theme.colors.focus : "transparent",
|
|
2199
|
+
sx: {
|
|
2200
|
+
cursor: "col-resize",
|
|
2201
|
+
transition: "background-color 0.2s ease"
|
|
2202
|
+
},
|
|
2203
|
+
onMouseDown: handleMouseDown
|
|
2204
|
+
}
|
|
2205
|
+
),
|
|
2206
|
+
children
|
|
2207
|
+
] });
|
|
2208
|
+
}
|
|
2139
2209
|
function SelectedIndicator() {
|
|
2140
2210
|
const theme = useUITheme();
|
|
2141
2211
|
return /* @__PURE__ */ jsx(
|
|
@@ -2333,9 +2403,13 @@ function AppShellNavigation({
|
|
|
2333
2403
|
isBackButtonVisible,
|
|
2334
2404
|
footerMenuItems,
|
|
2335
2405
|
roomCategories,
|
|
2406
|
+
right,
|
|
2407
|
+
asideCollapsed = true,
|
|
2408
|
+
onAsideToggle,
|
|
2336
2409
|
children
|
|
2337
2410
|
}) {
|
|
2338
|
-
const [
|
|
2411
|
+
const [navbarCollapsed, { toggle: toggleNavbar }] = useDisclosure(true);
|
|
2412
|
+
const [asideWidth, setAsideWidth] = useState(300);
|
|
2339
2413
|
const theme = useUITheme();
|
|
2340
2414
|
return /* @__PURE__ */ jsxs(
|
|
2341
2415
|
AppShell,
|
|
@@ -2344,11 +2418,18 @@ function AppShellNavigation({
|
|
|
2344
2418
|
styles: {
|
|
2345
2419
|
navbar: {
|
|
2346
2420
|
background: theme.bg.navScaled
|
|
2421
|
+
},
|
|
2422
|
+
aside: {
|
|
2423
|
+
background: theme.bg.navScaled
|
|
2347
2424
|
}
|
|
2348
2425
|
},
|
|
2349
2426
|
bg: theme.bg.navIconsBg,
|
|
2350
2427
|
navbar: {
|
|
2351
|
-
width:
|
|
2428
|
+
width: navbarCollapsed ? 300 : 56,
|
|
2429
|
+
breakpoint: "sm"
|
|
2430
|
+
},
|
|
2431
|
+
aside: {
|
|
2432
|
+
width: asideCollapsed ? 0 : asideWidth,
|
|
2352
2433
|
breakpoint: "sm"
|
|
2353
2434
|
},
|
|
2354
2435
|
children: [
|
|
@@ -2404,17 +2485,17 @@ function AppShellNavigation({
|
|
|
2404
2485
|
/* @__PURE__ */ jsxs(Stack$1, { align: "center", gap: 8, children: [
|
|
2405
2486
|
/* @__PURE__ */ jsx(Divider, { w: 40, mx: 10, color: theme.neutral.transparent10 }),
|
|
2406
2487
|
/* @__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" }) }),
|
|
2407
|
-
!
|
|
2488
|
+
!navbarCollapsed && /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer", borderRadius: 24 }, bg: theme.bg.navIconsBg, h: 40, w: 40, onClick: toggleNavbar, children: /* @__PURE__ */ jsx(AngleRightSolid, { color: "secondary" }) })
|
|
2408
2489
|
] })
|
|
2409
2490
|
] }),
|
|
2410
|
-
|
|
2491
|
+
navbarCollapsed && /* @__PURE__ */ jsxs(Stack$1, { justify: "space-between", w: "100%", pt: 16, pb: 10, px: 12, children: [
|
|
2411
2492
|
/* @__PURE__ */ jsxs(Stack$1, { gap: 5, children: [
|
|
2412
2493
|
/* @__PURE__ */ jsxs(Flex, { mb: 24, style: { width: "100%" }, justify: "space-between", align: "center", children: [
|
|
2413
2494
|
/* @__PURE__ */ jsxs(Flex, { align: "center", gap: "10px", children: [
|
|
2414
2495
|
isBackButtonVisible ? /* @__PURE__ */ jsx(Center, { onClick: onBackClick, sx: { borderRadius: 4, cursor: "pointer", padding: 2, background: theme.bg.navIconsBg }, children: /* @__PURE__ */ jsx(ArrowLeftSolid, { size: 18 }) }) : /* @__PURE__ */ jsx(Center, { sx: { borderRadius: 4, padding: 2, background: theme.bg.navIconsBg }, children: pageItem.pageIcon ? /* @__PURE__ */ jsx(pageItem.pageIcon, { size: 18 }) : /* @__PURE__ */ jsx(Globe, { size: 18 }) }),
|
|
2415
2496
|
/* @__PURE__ */ jsx(Text$1, { lh: 1, c: theme.text.overPicture, children: pageItem.pageTitle || "Unknown" })
|
|
2416
2497
|
] }),
|
|
2417
|
-
/* @__PURE__ */ jsx(Flex, { gap: 12, align: "center", children: /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer" }, onClick:
|
|
2498
|
+
/* @__PURE__ */ jsx(Flex, { gap: 12, align: "center", children: /* @__PURE__ */ jsx(Center, { sx: { cursor: "pointer" }, onClick: toggleNavbar, children: /* @__PURE__ */ jsx(PanelLeftSolid, { size: 22, color: "secondary" }) }) })
|
|
2418
2499
|
] }),
|
|
2419
2500
|
menuItems?.map((item) => /* @__PURE__ */ jsx(MenuItem, { onMenuItemClick, item }, item.id)),
|
|
2420
2501
|
roomCategories && roomCategories.length > 0 && /* @__PURE__ */ jsx(Stack$1, { gap: 8, mt: 16, children: roomCategories.map((category) => /* @__PURE__ */ jsx(RoomCategory, { category }, category.id)) })
|
|
@@ -2422,7 +2503,8 @@ function AppShellNavigation({
|
|
|
2422
2503
|
/* @__PURE__ */ jsx(Stack$1, { gap: 5, children: footerMenuItems?.map((item) => /* @__PURE__ */ jsx(MenuItem, { onMenuItemClick, item }, item.id)) })
|
|
2423
2504
|
] })
|
|
2424
2505
|
] }) }),
|
|
2425
|
-
/* @__PURE__ */ jsx(AppShell.Main, { children })
|
|
2506
|
+
/* @__PURE__ */ jsx(AppShell.Main, { children }),
|
|
2507
|
+
/* @__PURE__ */ jsx(AsideResizable, { asideCollapsed, onAsideToggle, width: asideWidth, onWidthChange: setAsideWidth, children: right })
|
|
2426
2508
|
]
|
|
2427
2509
|
}
|
|
2428
2510
|
);
|
|
@@ -5400,13 +5482,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
5400
5482
|
}
|
|
5401
5483
|
);
|
|
5402
5484
|
}
|
|
5403
|
-
const MainAction = lazy(() => import("./index-
|
|
5404
|
-
const Header$1 = lazy(() => import("./index-
|
|
5405
|
-
const Content = lazy(() => import("./index-
|
|
5485
|
+
const MainAction = lazy(() => import("./index-CXrrJ_Le.js"));
|
|
5486
|
+
const Header$1 = lazy(() => import("./index-By0FBgRQ.js"));
|
|
5487
|
+
const Content = lazy(() => import("./index-DVcSKgbJ.js"));
|
|
5406
5488
|
const Map = lazy(() => import("./index-D5Ufmf-s.js"));
|
|
5407
5489
|
const CustomContent = lazy(() => import("./index-DsYjW_4y.js"));
|
|
5408
|
-
const Assets = lazy(() => import("./index-
|
|
5409
|
-
const Actions = lazy(() => import("./index-
|
|
5490
|
+
const Assets = lazy(() => import("./index-c39fFlNp.js"));
|
|
5491
|
+
const Actions = lazy(() => import("./index-DqcjuULv.js"));
|
|
5410
5492
|
const HOVER_BORDER_WIDTH = 1;
|
|
5411
5493
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
5412
5494
|
const wrapperRef = useRef(null);
|
|
@@ -10720,4 +10802,4 @@ export {
|
|
|
10720
10802
|
CardSelector as y,
|
|
10721
10803
|
CardOutput as z
|
|
10722
10804
|
};
|
|
10723
|
-
//# sourceMappingURL=components-
|
|
10805
|
+
//# sourceMappingURL=components-BiD0_7V_.js.map
|