Custom and net-new: Chat Panel
Everything in this proposal that is not plain PDS v2. npm run check:tokens reads this file: each net-new class, custom CSS variable and raw value found in the code must appear here in backticks.
Net-new components
.pds-chat-panel— layout shell for an AI chat drawer or docked panel: title row with close button, pinned header, scrolling content, pinned footer. Every region is a slot.- Parts and modifiers:
.pds-chat-panel--m,.pds-chat-panel--l,.pds-chat-panel__body,.pds-chat-panel__drop,.pds-chat-panel__drop-icon,.pds-chat-panel__content--fade,.pds-chat-panel__drop-label,.pds-chat-panel__end,.pds-chat-panel__scroll,.pds-chat-panel__scroll-button,.pds-chat-panel__title-row,.pds-chat-panel__title,.pds-chat-panel__close,.pds-chat-panel__header,.pds-chat-panel__content,.pds-chat-panel__footer,.pds-chat-panel__header--divider,.pds-chat-panel__footer--divider,.pds-chat-panel__header--inset-default,.pds-chat-panel__content--inset-default,.pds-chat-panel__footer--inset-default - Also emitted, with no CSS rule (
noneis the absence of padding):.pds-chat-panel__header--inset-none,.pds-chat-panel__content--inset-none,.pds-chat-panel__footer--inset-none
- Parts and modifiers:
Net-new code (not a component)
useFileDrop(proposals/_base/useFileDrop/useFileDrop.ts) — new, shared by Composer and Chat Panel: file drag and drop (drag counter, only file drags react, a drop a child already handled is skipped). ReturnsisDragOver,canDropand the four handlers. The toolkit hassrc/utilities/hooks/, where it would go.
Additions to existing PDS components
None. The close button is the package CloseButton, unchanged.
Net-new props
All props of ChatPanelProps are new (net-new component): closeButtonLabel, contentInset, dropLabel, footer, footerInset, hasCloseButton, hasContentFade, hasFooterDivider, hasHeaderDivider, hasScrollToLatest, header, headerInset, onClose, onFilesDrop, scrollToLatestLabel, size, title. Add-ons that can be deferred: dropLabel and onFilesDrop (file drop), hasScrollToLatest and scrollToLatestLabel (scroll to latest), hasContentFade.
Custom CSS variables
--chat-panel-fade-height— set on.pds-chat-panel__content--fade; how far the bottom fade reaches (--pds-spacing-2xl), and the bottom padding that keeps the last line clear.--chat-panel-inset— set on.pds-chat-panel; the inline padding of the title row and of regions withdefaultinset (--pds-spacing-l,--pds-spacing-xlfrom thembreakpoint, as the PDS Panel).
Raw values kept on purpose
None in CSS. One literal number: the drop overlay sheet is opacity: 0.92 over --pds-color-surface-default (no PDS token for it).