@ttoss/layouts 0.4.20 → 0.4.22
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/esm/index.js +11 -1
- package/package.json +7 -7
package/dist/esm/index.js
CHANGED
|
@@ -2306,6 +2306,9 @@ var LayoutProvider = ({
|
|
|
2306
2306
|
if (!isDesktop) {
|
|
2307
2307
|
setIsSidebarOpen(false);
|
|
2308
2308
|
}
|
|
2309
|
+
if (isDesktop) {
|
|
2310
|
+
setIsSidebarOpen(true);
|
|
2311
|
+
}
|
|
2309
2312
|
}, [isDesktop]);
|
|
2310
2313
|
const toggleSidebar = () => {
|
|
2311
2314
|
setIsSidebarOpen(prev => {
|
|
@@ -2367,7 +2370,14 @@ var Sidebar = ({
|
|
|
2367
2370
|
}, [isSidebarOpen, showSidebarButtonInDrawer]);
|
|
2368
2371
|
const memoizedDrawerSlot = React4.useMemo(() => {
|
|
2369
2372
|
if (!drawerSlot) {
|
|
2370
|
-
return /* @__PURE__ */jsx4(
|
|
2373
|
+
return /* @__PURE__ */jsx4(Flex, {
|
|
2374
|
+
sx: {
|
|
2375
|
+
width: "full",
|
|
2376
|
+
paddingY: "3",
|
|
2377
|
+
borderBottom: "sm",
|
|
2378
|
+
borderColor: "display.border.muted.default",
|
|
2379
|
+
alignItems: "center"
|
|
2380
|
+
},
|
|
2371
2381
|
children: sidebarButtonInDrawer
|
|
2372
2382
|
});
|
|
2373
2383
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/layouts",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.22",
|
|
4
4
|
"description": "Layout components for React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": ">=16.8.0",
|
|
28
|
-
"@ttoss/
|
|
29
|
-
"@ttoss/
|
|
28
|
+
"@ttoss/ui": "^5.5.6",
|
|
29
|
+
"@ttoss/components": "^2.2.11"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/jest": "^29.5.14",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"jest": "^29.7.0",
|
|
35
35
|
"react": "^19.0.0",
|
|
36
36
|
"tsup": "^8.3.5",
|
|
37
|
-
"@ttoss/
|
|
38
|
-
"@ttoss/
|
|
39
|
-
"@ttoss/react-icons": "^0.4.10",
|
|
37
|
+
"@ttoss/components": "^2.2.11",
|
|
38
|
+
"@ttoss/ui": "^5.5.6",
|
|
40
39
|
"@ttoss/test-utils": "^2.1.23",
|
|
41
|
-
"@ttoss/
|
|
40
|
+
"@ttoss/react-icons": "^0.4.10",
|
|
41
|
+
"@ttoss/config": "^1.35.3"
|
|
42
42
|
},
|
|
43
43
|
"keywords": [
|
|
44
44
|
"React"
|