@ttoss/layouts 0.4.20 → 0.4.21

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.
Files changed (2) hide show
  1. package/dist/esm/index.js +11 -1
  2. package/package.json +3 -3
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(Fragment, {
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.20",
3
+ "version": "0.4.21",
4
4
  "description": "Layout components for React",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",
@@ -34,11 +34,11 @@
34
34
  "jest": "^29.7.0",
35
35
  "react": "^19.0.0",
36
36
  "tsup": "^8.3.5",
37
- "@ttoss/config": "^1.35.3",
38
37
  "@ttoss/components": "^2.2.10",
39
38
  "@ttoss/react-icons": "^0.4.10",
40
39
  "@ttoss/test-utils": "^2.1.23",
41
- "@ttoss/ui": "^5.5.6"
40
+ "@ttoss/ui": "^5.5.6",
41
+ "@ttoss/config": "^1.35.3"
42
42
  },
43
43
  "keywords": [
44
44
  "React"