packages/ui has strong architecture direction, broad component coverage, a reactive engine, metadata renderer, multi-target output, and token infrastructure. However, the current progress tracker overstates enterprise readiness because many components are marked Contract/A11y complete under older criteria that do not yet require the stricter API surface defined in ADR-007.
The goal is not to add more components first. The goal is to harden the Core Integration Surface so packages/ui becomes a genuinely standalone, enterprise-grade, universal UI library that can integrate cleanly with React, Vue, React Native, Stencil/Web Components, Tauri, BitCode, and a future Flutter adapter.
Decisions already resolved in the grilling session:
- Use a Contract-First API Freeze before further feature expansion.
- Prioritize the Core Integration Surface, not all 149 components equally.
- Use Semantic Events as the primary event contract. DOM/native events are metadata only.
- Require controlled/uncontrolled state pairs for every stateful component.
- Treat React, Vue, React Native, Stencil/Web Components, and future Flutter as adapters over neutral contracts.
- Promise Flutter schema/contract parity, not JSX-style API parity.
- Require a Contract Matrix for each P0 component.
- Require slots/slotProps/pass-through APIs for P0 complex components, optional for simple primitives.
- Restrict imperative methods to capabilities that are awkward to express declaratively.
- Make A11y Behavior Contract mandatory for P0 interactive components.
Freeze feature expansion for packages/ui until the Core Integration Surface passes the Contract Matrix gate.
During the freeze, work may continue only if it improves one of these hardening goals:
- Public API contract completeness.
- Semantic event consistency.
- Controlled/uncontrolled state consistency.
- Adapter mapping consistency.
- Accessibility behavior contracts.
- Compatibility tests.
- Documentation alignment in the ADR index and component progress tracker.
New non-critical components and broad P1/P2 expansion should wait until the P0 freeze gate passes.
The freeze applies first to this P0 surface:
- Form controls:
BcInput,BcSelect,BcCombobox,BcCheckbox,BcToggle,BcSegmented,BcNumberField,BcDateField,BcTimeField,BcMultiSelect. - Forms and reactive scope:
BcForm,BcReactiveScope,ReactiveStore, form field wrappers. - Overlays:
BcDialog,BcAlertDialog,BcDrawer,BcPopover,BcTooltip,BcDropdown,BcContextMenu,BcCommand. - Navigation/layout behavior:
BcTabs,BcAccordion,BcDisclosure,BcSplitter. - Data:
BcDataTable,BcList, collection selection contracts. - Metadata rendering:
BcRenderer,FieldResolver,UiSchema. - Infrastructure:
AppProvider, config/context, tokens/theme, portal/focus utilities, Web Component event bridge.
Simple visual components such as badges, cards, avatars, statistics, and empty states may be hardened later unless they block the Core Integration Surface.
Each P0 item must have a contract matrix that covers:
| Area | Required content |
|---|---|
| State props | Controlled and uncontrolled pairs such as value/defaultValue/onValueChange, open/defaultOpen/onOpenChange, or model equivalents. |
| Semantic events | Stable renderer-neutral callbacks and Web Component bc-* event mapping. |
| Imperative methods | Only allowed methods, such as focus, blur, validate, reset, submit, scrollToIndex, scrollToKey, open, close, measure. |
| Slots and parts | Named parts, slots, slotProps, pass-through props, as/asChild where relevant. |
| A11y behavior | Roles, ARIA attributes, keyboard table, focus behavior, labels/descriptions/errors, RTL, disabled/readOnly, touch/mobile equivalent. |
| Form compatibility | Native form behavior on web, hidden inputs where needed, name/required/invalid/error semantics. |
| Adapter mapping | React, Vue, React Native, Stencil/Web Component, Tauri, and future Flutter schema/contract mapping. |
| SSR safety | No unguarded window, document, layout, storage, or browser-only APIs. |
| Tests | Contract tests, source-level behavior tests, adapter smoke tests, and event payload tests. |
A component is not enterprise-ready until its matrix is complete and verified.
Semantic Events are the primary contract.
Examples:
onValueChange(value, meta)
onOpenChange(open, meta)
onSelectionChange(selection, meta)
onSortModelChange(sortModel, meta)Web Components must emit corresponding kebab-case CustomEvents:
bc-value-change: { detail: { value, meta } }
bc-open-change: { detail: { open, meta } }
bc-selection-change: { detail: { selection, meta } }DOM or native events may be included as meta.nativeEvent, but consumers must not need to parse event.target.value or platform-specific payloads to use the component.
Neutral TypeScript contracts are the source of truth. Framework outputs are adapters.
- React and Vue map contracts to idiomatic props/callbacks.
- React Native maps contracts to native primitives and mobile UX where needed.
- Stencil/Web Components map contracts to attributes/properties and
bc-*CustomEvents. - Tauri uses the web adapter.
- Future Flutter maps the same schema, tokens, semantic events, and reactive model into Dart idioms. It does not need JSX prop parity.
A11y Behavior Contract is required for P0 interactive components.
Each P0 interactive component must define:
- Role and ARIA attribute model.
- Keyboard interaction table.
- Focus entry, movement, trap, restore, and escape behavior.
- Label, description, error, and live-region behavior.
- RTL behavior.
- Disabled and read-only semantics.
- Touch/mobile equivalent.
WAI-ARIA APG remains the baseline for web behavior. React Native and Flutter adapters must preserve the semantic behavior even when platform APIs differ.
docs/components-progress.md must stop treating old Contract ✅ and A11y ✅ as final enterprise readiness for the Core Integration Surface. docs/components-contract-matrix.md is the execution checklist for this freeze. During this freeze, the tracker must include a dedicated Contract-First API Freeze gate with status columns for:
- Matrix.
- Semantic Events.
- Controlled State.
- Slots/Parts.
- Methods.
- A11y Behavior.
- Adapter Mapping.
- Tests.
Existing component completion status remains historical implementation progress, not the final enterprise-ready claim under ADR-008.
Positive:
- Prevents repeating the
packages/componentsproblem where broad component count hid integration friction. - Makes React/Vite, React Native, Web Component, BitCode, and future Flutter integration predictable.
- Aligns reactive engine and metadata renderer with a stable public component surface.
- Gives future contributors an explicit reason why feature expansion is paused.
Negative:
- Slows visible feature expansion.
- Requires revisiting components previously marked complete.
- May introduce compatibility aliases for older APIs while moving to semantic events.
- Requires additional contract and adapter tests before components can be called enterprise-ready.
Form Controls (10):
- BcInput, BcSelect, BcCombobox, BcCheckbox, BcToggle, BcSegmented
- BcNumberField, BcDateField, BcTimeField, BcMultiSelect
Forms and Reactive Scope (2):
- BcForm, BcReactiveScope
Overlays (8):
- BcDialog, BcAlertDialog, BcDrawer, BcPopover, BcTooltip, BcDropdown, BcContextMenu, BcCommand
Navigation/Layout (4):
- BcTabs, BcAccordion, BcDisclosure, BcSplitter
Data (1):
- BcDataTable
Infrastructure (7):
- Runtime Part Resolution (
core/part-props.ts) —partClass(),partAttr(),partStyle()helpers - Web Component Event Bridge (
core/wc-event-bridge.ts) —dispatchBcEvent()with 14 semantic events - Controlled/Uncontrolled State — All 25 components support canonical state pairs
- Type System —
BcChangeMeta,BcChangeHandler,BcEventSourceincore/types.ts - Contract Files — All 25 components have
.contract.tsfiles - Collection Contract (
core/collection.contract.ts) — key-based collection APIs - Config/Tokens Contracts (
core/config.contract.ts,core/tokens.contract.ts)
| Category | Count | Status |
|---|---|---|
| part-props unit tests | 34 | ✅ Pass |
| part-props runtime tests | 18 | ✅ Pass |
| wc-event-bridge unit tests | 14 | ✅ Pass |
| wc-event-bridge runtime tests | 8 | ✅ Pass |
| collection contract tests | 12 | ✅ Pass |
| config contract tests | 8 | ✅ Pass |
| tokens contract tests | 6 | ✅ Pass |
| Component contract tests | 25 (1 per component) | ✅ Pass |
| Component integration tests | ~1,413 | ✅ Pass |
| Total | ~1,538 | All pass |
- Mitosis compilation: 151/151 components compiled to React, Vue, Stencil, React Native
- TypeScript: Zero type errors across all outputs
- Runtime Part Resolution: All 25 Core Integration Surface components wired with
partClass.partAttrwiring completed 2026-06-21 across 30 components (BC-002 fix) — everydata-part="X"element now emitsdata-testid={partAttr(props.slotProps, 'X', 'data-testid') as string}; input/button/label parts also wirearia-label. - Event Bridge: All 25 components import and use
dispatchBcEvent/BC_EVENTS
| Area | Status | Evidence |
|---|---|---|
| State props (controlled/uncontrolled) | ✅ Complete | All 25 components use value/defaultValue/onValueChange, open/defaultOpen/onOpenChange patterns |
| Semantic events | ✅ Complete | BcChangeMeta<TReason> with reason, source, nativeEvent used across all components |
| Imperative methods | ✅ Complete | focus(), blur(), validate(), reset(), submit() defined in contract files |
| Slots and parts (slotProps) | ✅ Complete | All 25 components expose slotProps? prop, use partClass() additive pattern, emit data-part attributes |
| A11y behavior | ✅ Documented | Contract files define roles, ARIA attributes, keyboard tables |
| Form compatibility | ✅ Complete | name, required, disabled, readOnly, invalid, errorMessage on all form controls |
| Adapter mapping | ✅ Documented | Contract files serve as renderer-neutral source of truth; React/Vue/RN/Stencil outputs adapt |
| SSR safety | ✅ Verified | All window/document/CustomEvent accesses guarded with typeof checks |
| Tests | ✅ Complete | 1575 source tests + 797 runtime tests + 17 touch/mobile tests = 2389 total, 100% passing (updated 2026-06-22) |
-
docs/components-progress.mdincludes the Contract-First API Freeze gate — Tracker updated with matrix status columns - All Core Integration Surface components have a completed Contract Matrix — 25/25 components verified
- Semantic event payloads are standardized and tested —
BcChangeMetashape consistent;wc-event-bridge.test.tsvalidates 14 event types - Controlled/uncontrolled state pairs are standardized and tested — All stateful components use
defaultXnotinitialX - P0 complex components define slots/parts/pass-through rules —
slotPropswithpartClass/partAttr/partStylehelpers wired in all 25 Core Integration Surface components.partAttrwiring completed 2026-06-21 across 30 components (BC-002 fix):data-testidandaria-labelnow passthrough-enabled viapartAttr(props.slotProps, partName, attrName). - P0 interactive components define A11y Behavior Contracts — Documented in
.contract.tsfiles - Web Component event bridge emits
bc-*events with semanticdetailpayloads — 14 events defined inBC_EVENTSconstant;dispatchBcEvent()emits{ value, meta }detail - React Native and future Flutter mappings are documented at the contract level — Contract files are renderer-neutral; Flutter parity via pure function helpers
- No new non-critical P1/P2 expansion is treated as priority until this gate passes — Freeze enforced during Phase 2
-
docs/stencil-parity-matrix.mdfrozen as formal gate (7345 lines, 127 Stencil → 176 Mitosis, 81.1% coverage) -
docs/antd-prime-parity-matrix.mdfrozen as formal gate (266 lines, 63 antd + 58 PrimeReact features, 79%/86% coverage) - Both matrices marked "FROZEN as formal gate" in document headers
- Gap summary with priority order documented (1771 Stencil gaps, 10 antd/Prime missing features)
Phase 3: Accessibility & Performance Testing (A11y complete 2026-06-22, touch/mobile complete 2026-06-22, performance deferred)
- A11y runtime testing: ✅ Complete 2026-06-22. 151 component a11y runtime tests generated via
scripts/generate-a11y-tests.mjs. 797 runtime tests pass (13 skipped — jsdom iframe/canvas limitations, BC-045 wontfix). All 20 bugs surfaced (BC-025 s/d BC-044) fixed: 7 P0 render crashes (Mitosis codegen drops local const) + 13 P1 a11y violations (missing aria-label, nested-interactive, aria-required-attr/children/allowed-attr). - Performance benchmarking: ⏳ Deferred. Render time, memory usage, bundle size analysis
- Lighthouse audits: ⏳ Deferred. A11y score, performance score for component demos
- Touch/mobile testing: ✅ Complete 2026-06-22. Touch target audit script (
scripts/audit-touch-targets.mjs) scans all.native.tsxfiles for Pressable elements below 44pt minimum — 0 violations across 9 native files. Touch target fixes (hitSlop / min-h-11) applied to all interactive elements in 6 existing native files (BcPopover, BcCascader, BcTreeSelect, BcContextMenu, BcDrawer) + 3 new native overlays (BcDialog, BcAlertDialog, BcActionsheet). Gesture support:swipeableprop added to BcTabs, BcList, BcDrawer contracts; swipe-down-to-close implemented in BcDrawer.native.tsx via PanResponder. Haptic feedback: headlesssrc/core/haptics.tsutility (dynamicrequire('react-native').Vibration, no top-level RN import) wired to BcContextMenu (medium on long-press, light on select), BcDrawer (light on swipe-close), BcActionsheet (light on select);hapticsprop added to 5 contracts (BcCheckbox, BcToggle, BcContextMenu, BcDataTable, BcForm). Mobile overlay verification: 3 new.native.tsxfiles created using RNModal(BcDialog fade, BcAlertDialog fade, BcActionsheet slide) replacing codegen web CSS output;apply-adapt-overrides.mjsupdated to 7 adapt components. 17 source-level tests insrc/core/haptics.test.tscover touch targets, gestures, haptics contracts, overlay verification, and adapt override coverage.
- ADR-007 Implementation Status, Lessons Learned, Migration Guide
- ADR-008 Implementation Summary, Acceptance Criteria Verification
- ADR-009 Runtime Part Resolution (new)
- ADR-010 Web Component Event Bridge (new)
- Per-component API documentation for all 177 components —
scripts/generate-component-docs.mjsparses each.lite.tsxProps interface and.contract.tsto produce structured markdown (props table, events, parts, a11y, adapter mapping, controlled/uncontrolled). 153 generated + 24 hand-curated P0 docs preserved = 177 component docs indocs/api/with a categorized sitemap README. - Integration guides for each framework target (React, Vue, RN, Stencil) —
docs/guides/contains 4 guides with adapter-mapping appendices mapping each ADR-007 contract concept to framework idioms, plus a guides index README. - Contract audit in blocking mode —
scripts/contract-audit.mjsrewritten with Props-interface-aware parsing (depth-aware brace/bracket tracking,=>-safe angle bracket handling, semantic-handler-gated pair enforcement). 0 violations in blocking mode (down from 44 false-positive-ridden warnings). Fixed 3 genuine handler signature violations (BcHoverCardonOpenChange, BcDataTableonSelectionChange/onExpandedChange) to acceptBcChangeMeta. -
docs/components-progress.mdalignment with contract matrix
- Flutter adapter: Generate Dart widget implementations from
.contract.tsfiles - BitCode engine integration: Wire
BcRenderer(ADR-005) to consume slotProps from schema metadata - Reactive engine integration: Connect
ReactiveStore(ADR-004) to component state management
- ADR-007: Enterprise Universal UI API Contract — The API contracts that this freeze enforces
- ADR-009: Runtime Part Resolution — Implementation mechanism for slotProps
- ADR-010: Web Component Event Bridge — Implementation mechanism for CustomEvents
docs/components-progress.mdincludes the Contract-First API Freeze gate.- All Core Integration Surface components have a completed Contract Matrix.
- Semantic event payloads are standardized and tested.
- Controlled/uncontrolled state pairs are standardized and tested.
- P0 complex components define slots/parts/pass-through rules.
- P0 interactive components define A11y Behavior Contracts.
- Web Component event bridge emits
bc-*events with semanticdetailpayloads. - React Native and future Flutter mappings are documented at the contract level.
- No new non-critical P1/P2 expansion is treated as priority until this gate passes.