@inf-monkeys-tech/monkeys-design 2.0.422 → 2.0.423

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.
@@ -1244,12 +1244,14 @@ const ShellLayoutCapabilityView = ({
1244
1244
  transitionProperty: 'width',
1245
1245
  transitionDuration: sidebarResizing ? '0ms' : '280ms',
1246
1246
  transitionTimingFunction: 'cubic-bezier(0.22, 1, 0.36, 1)',
1247
+ // A collapsed sidebar keeps its subtree mounted so directory queries,
1248
+ // search and navigation state survive collapsing and expanding.
1249
+ overflow: childrenBySlot.sidebar && sidebarCollapsed ? 'hidden' : undefined,
1250
+ visibility: sidebarCollapsed ? 'hidden' : undefined,
1247
1251
  }}
1248
1252
  data-sidebar-collapsed={sidebarCollapsed ? 'true' : 'false'}
1249
1253
  >
1250
- {sidebarCollapsed ? null : (
1251
- <DataExplorerTreeShell title={sidebarLabel}>{childrenBySlot.sidebar}</DataExplorerTreeShell>
1252
- )}
1254
+ <DataExplorerTreeShell title={sidebarLabel}>{childrenBySlot.sidebar}</DataExplorerTreeShell>
1253
1255
  {!sidebarCollapsed ? (
1254
1256
  <div
1255
1257
  aria-hidden="true"
@@ -1337,12 +1339,18 @@ const ShellLayoutCapabilityView = ({
1337
1339
  }
1338
1340
  notices={childrenBySlot.notices}
1339
1341
  content={
1340
- childrenBySlot.aside ? (
1341
- <div
1342
- className="flex min-h-0 min-w-0 flex-1 overflow-hidden"
1343
- data-data-explorer-content-with-detail="true"
1344
- >
1345
- <div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden">{content}</div>
1342
+ // The wrapper stays mounted so opening or closing the detail panel never
1343
+ // rebuilds the main subtree and its scroll or input state.
1344
+ <div
1345
+ className={
1346
+ childrenBySlot.aside
1347
+ ? 'flex min-h-0 min-w-0 flex-1 overflow-hidden'
1348
+ : 'flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden'
1349
+ }
1350
+ data-data-explorer-content-with-detail={childrenBySlot.aside ? 'true' : undefined}
1351
+ >
1352
+ <div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden">{content}</div>
1353
+ {childrenBySlot.aside ? (
1346
1354
  <div
1347
1355
  className="monkeys-data-explorer-detail-slot relative min-h-0 shrink-0 border-l border-border/55 dark:border-border/45"
1348
1356
  style={{ width: `${asideWidth}px` }}
@@ -1386,10 +1394,8 @@ const ShellLayoutCapabilityView = ({
1386
1394
  {childrenBySlot.aside}
1387
1395
  </aside>
1388
1396
  </div>
1389
- </div>
1390
- ) : (
1391
- content
1392
- )
1397
+ ) : null}
1398
+ </div>
1393
1399
  }
1394
1400
  className={model.fullHeight === true ? 'h-full' : undefined}
1395
1401
  classNames={{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inf-monkeys-tech/monkeys-design",
3
- "version": "2.0.422",
3
+ "version": "2.0.423",
4
4
  "description": "Monkeys Design Components Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",