feat: add keyboard navigation for document views, externalize document preview handling, and include physics model documentation.

This commit is contained in:
2025-11-27 01:06:31 +01:00
parent 3588fde3a2
commit 9ba581f64e
6 changed files with 306 additions and 392 deletions
@@ -4,17 +4,20 @@ interface DocumentsGridContainerProps {
children: React.ReactNode;
clearSelection: () => void;
gridIconSize?: number;
[key: string]: any;
}
const DocumentsGridContainer: React.FC<DocumentsGridContainerProps> = ({
children,
clearSelection,
gridIconSize,
...props
}) => {
return (
<div
className="documents-grid"
role="list"
{...props}
style={
gridIconSize
? ({ '--documents-grid-icon-size': `${gridIconSize}px` } as React.CSSProperties)
@@ -3,14 +3,16 @@ import React from 'react';
interface DocumentsListContainerProps {
children: React.ReactNode;
clearSelection: () => void;
[key: string]: any;
}
const DocumentsListContainer: React.FC<DocumentsListContainerProps> = ({
children,
clearSelection,
...props
}) => {
return (
<table aria-multiselectable="true">
<table aria-multiselectable="true" {...props}>
<thead
onClick={() => {
clearSelection();