Collaborative components. Version 1.2 adds three interactive families that real support, project, and messaging products need — a rich-text editor, a Kanban board, and conversation + composer chat primitives — all framework-free and token-driven.
- RichText editor.
data-smart-richtextturns any container into a contenteditable rich-text field with a toolbar (bold, italic, lists, links), sanitized HTML output via a built-in tag allowlist (subset withdata-smart-richtext-allow, e.g.p, br, strong, em, ul, ol, li), and a hidden input that stays in sync for form submission. Emitssmart:changewith{ value, control }. The toolbar uses the same smartwebUI buttons and icons as the rest of the library. - Kanban board.
data-smart-boardrenders columns and cards with drag-and-drop reordering across columns. DnD is keyboard-accessible (focus a card, press Enter or Space to lift, arrow keys to preview a move, Enter or Space to drop, Escape to cancel), works with pointer and touch, and emitssmart:boardplus a compatibilitysmart:moveevent with the card ID, source and target columns, and indexes. No jQuery UI or external DnD library. - Conversation + Composer.
data-smart-conversationrenders a scrollable message list with avatars, timestamps, and sender alignment;data-smart-composerrenders a textarea with a send button, auto-resize, and Enter-to-send (Shift+Enter for newline). Together they cover ticket threads, live chat, and project comment flows. - Icon alias map.
SmartWebUI.icon()and the PHPse_icon()helper resolve common alternate icon names (e.g.house→home,check-circle→circle-check) so applications can use natural names without maintaining a custom map. - Application layout utilities. Generic helpers for page shells, auth columns, reading-width content, card grids, and log panels — no product-specific class names. Includes
smart-page-main,smart-shell-main,smart-cluster--center,smart-stack--tight,smart-auth-layout,smart-auth-logo,smart-reading-card,smart-tile-card,smart-grid--cards,smart-grid--tiles,smart-grid--pickers,smart-card--picker,smart-card__feature-icon, andsmart-log-panel. Documented in the README layout table and on docs.php. - Page header toolbar. The reusable
smart-page-header--toolbarmodifier andsmart-page-header__toolbarelement give headers a responsive, single-row home for filters, search, view controls, and a primary page action. Controls wrap naturally on smaller screens without application-specific CSS. - Card and picker grids. Equal-height card grids (
smart-grid--cards), tile grids with larger feature icons (smart-grid--tiles,smart-card__feature-icon), and centered picker tiles (smart-grid--pickers,smart-card--picker). Card title icons scale with the heading. - Form sizing refresh. Comfortable-density defaults are roomier: control height
3rem, wider horizontal padding, larger label and input type, and vertical input padding derived from control height. New tokens--smart-form-gapand--smart-field-gapwiden row spacing inform.smart-stack, card bodies, dialog bodies, and fieldsets; grids containing fields get a wider column gap. Dialog default width is40remwith more internal padding; auth layout max width is44rem. Filter toolbars still usesmart-control-sm. - Documentation. Token reference, utilities, and layout sections on docs.php now cover the new form spacing tokens and application layout helpers. The README layout utilities table lists every helper class.