Persist catalog layout and add inspector toolbar

This commit is contained in:
DCCONSTRUCTIONS
2026-07-10 23:28:10 +03:00
parent 8ca12f2676
commit 406e692a5e
14 changed files with 715 additions and 268 deletions
@@ -49,6 +49,8 @@ export interface ApplicationPanelProps extends Omit<HTMLAttributes<HTMLElement>,
expandLabel?: string;
closeLabel?: string;
onExpandedChange?: (expanded: boolean) => void;
/** Persistent custom controls rendered before utility icon actions. */
headerTools?: ReactNode;
/** Persistent utility actions rendered before expand/close in the panel header. */
utilityActions?: ApplicationPanelUtilityAction[];
onClose: () => void;
@@ -70,6 +72,7 @@ export function ApplicationPanel({
expandLabel = "Развернуть окно",
closeLabel = "Закрыть окно",
onExpandedChange,
headerTools,
utilityActions = [],
onClose,
children,
@@ -85,6 +88,7 @@ export function ApplicationPanel({
{description ? <p>{description}</p> : null}
</div>
<div className="nodedc-application-panel__actions">
{headerTools ? <div className="nodedc-application-panel__tools">{headerTools}</div> : null}
{utilityActions.map((action) => (
<button
key={action.label}