feat(repo): migrate demo and field components to @mieweb/ui#26
feat(repo): migrate demo and field components to @mieweb/ui#26garrity-miepub wants to merge 9 commits intomainfrom
Conversation
Summary of ChangesThis PR migrates the eSheet demo app and field preview components to use Field Component Migrations (preview paths)All field preview paths in
Not migrated (no @mieweb/ui equivalent): CSS Layer Fix (critical)Moved scoped preflight resets from
Why: The scoped reset ( CSS Variable BridgeAdded Matrix Grid Layout Fix
Demo App Infrastructure
Cleanup
|
- Replace hardcoded @theme values in builder/renderer with var(--color-*, fallback) so packages auto-read @mieweb/ui theme tokens when available - Remove 130-line duplicate @theme block from demo/styles.css - Remove CSS variable bridge from demo (now handled by package @theme) - Move matrix grid display:contents CSS into packages/renderer - Replace custom useTheme hook with @mieweb/ui/hooks re-export - Add 'system' theme option to Navbar settings
Theming Refactor — Addressing FeedbackBased on feedback that too much theming/styling lived in the demo app instead of the packages, this commit moves the theming infrastructure where it belongs. What Changed (5 files, -224 / +45 lines)1. Package
|
- Replace circular pill buttons with connected rectangular buttons - Use inline-flex w-fit container with border dividers between items - Selected item gets primary fill, unselected gets surface background - Remove unused @mieweb/ui Button import
Replace field preview components with @mieweb/ui equivalents:
Text/LongText/MultiText → Input/Textarea
Radio → RadioGroup + Radio
Checkbox → Checkbox
Dropdown → Select
Boolean → styled toggle buttons
Slider → Slider
Rating → styled pill buttons
SingleMatrix → RadioGroup + Radio (display:contents grid fix)
MultiMatrix → Checkbox (display:contents grid fix)
Fix CSS layer ordering: move scoped preflight resets from
@layer utilities → @layer base in renderer and builder so
@mieweb/ui border/appearance utilities are not overridden
Add CSS variable bridge (--ms-color-* → var(--color-*)) for
renderer and builder roots to connect ms: tokens to @mieweb/ui theme
Add brand switching (6 brands) with dynamic CSS loading
Add dark/light theme toggle with localStorage persistence
Replace navbar brand dropdown + emoji with Settings modal
using @mieweb/ui Modal, Select, and lucide-react Settings icon
Wire Monaco editor theme to dark mode in CodeView
Lower builder header z-index (50 → 40) so modals overlay properly
Remove deprecated baseUrl from 5 tsconfig.lib.json files
Remove unused @mieweb/ui dep from renderer package.json
Add @mieweb/ui dep to fields package.json
esheet-mieweb-ui.mov