[P1] Reconcile m3-text-field implementation with its documented API
Objective
Deliver one stable, typed text-field API whose form, label, validation, slots, events, and variants match its documentation.
Evidence
Implementation exposes only type, label, value, placeholder, disabled, and name. README also documents filled/outlined variants, required, error/error-text, helper text, maxlength, leading/trailing icons, and text-field-* events. Runtime emits differently named textfield-* events, and the rendered label is not associated with the internal input.
Scope
Decide and implement the stable API; add label/help/error ID relationships, variants, icon slots, helper/counter/error behavior, validity/FormAssociated integration, and an event compatibility/migration strategy.
Acceptance criteria
- [ ] Every documented property, attribute, slot, event, method, and variant is implemented and typed—or explicitly removed with a migration note.
- [ ] Label activation focuses the input; assistive tech announces label/help/error.
- [ ] Required/maxlength/pattern/error validity participates in form APIs from #7.
- [ ] Native-like input/change behavior and compatibility events fire exactly once.
- [ ] README examples and cross-browser tests pass unchanged.
Dependencies
Blocked by #5, #6, #7, and the optional-attribute issue.
Autonomous execution contract
Treat API renames as semver-significant. Preserve aliases temporarily where practical and document deprecation.
Dependencies #5, #6, #7, and #21 are now merged. This P1 text-field contract correction is agent-ready. Apply the clean-break policy: decide one canonical API and document migration rather than adding legacy aliases.