An open-source, self-hosted system for apps built with web technologies.
Adopt compound Panel API
zohayrslileh45adab103bae
diff --git a/source/client/view/structure/authentication/credentials-form.tsx b/source/client/view/structure/authentication/credentials-form.tsxindex 284cbab..0366ea2 100644--- a/source/client/view/structure/authentication/credentials-form.tsx+++ b/source/client/view/structure/authentication/credentials-form.tsx@@ -44,7 +44,11 @@ export default function CredentialsForm({ title, description, submitLabel, passw>- <Panel header={<SystemHeader name={application.displayName} version={application.version} />} contentProps={{ className: "grid gap-5 p-5" }}>+ <Panel>++ <Panel.Header><SystemHeader name={application.displayName} version={application.version} /></Panel.Header>++ <Panel.Content className="grid gap-5 p-5"><div className="grid gap-1">@@ -104,6 +108,8 @@ export default function CredentialsForm({ title, description, submitLabel, passw>{pending ? `${submitLabel}…` : submitLabel}</Button>+ </Panel.Content>+</Panel></motion.form>diff --git a/source/client/view/structure/desktop/taskbar/taskbar-surface.tsx b/source/client/view/structure/desktop/taskbar/taskbar-surface.tsxindex 6a1e273..91de0a9 100644--- a/source/client/view/structure/desktop/taskbar/taskbar-surface.tsx+++ b/source/client/view/structure/desktop/taskbar/taskbar-surface.tsx@@ -6,13 +6,13 @@ export const taskbarSurfaceClassName = "m-0 isolate overflow-visible border-0 bgexport default forwardRef<HTMLDivElement, TaskbarSurfaceProps>(function TaskbarSurface({ label, labelId, contentClassName = "", className, children, ...props }, ref) {- return <Panel {...props} ref={ref} className={className}- header={<h2 id={labelId} className="relative grid h-10 items-center px-3.5 text-window-title font-medium select-none">{label}</h2>}- contentProps={{ className: contentClassName }}- >{children}</Panel>+ return <Panel {...props} ref={ref} className={className}>+ <Panel.Header><h2 id={labelId} className="relative grid h-10 items-center px-3.5 text-window-title font-medium select-none">{label}</h2></Panel.Header>+ <Panel.Content className={contentClassName}>{children}</Panel.Content>+ </Panel>})-interface TaskbarSurfaceProps extends Omit<PanelProps, "children" | "header" | "contentProps"> {+interface TaskbarSurfaceProps extends Omit<PanelProps, "children"> {label: string