Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NumberControl: Add TypeScript prop types (#43791)
* NumberControl: Improve types * Add description to InputControl classname * RangeControl: Add ts-expect-errors * ColorPicker: Add ts-expect-errors * UnitControl: Get types from NumberControl * UnitControl: Remove redundant aria-label * NumberControl: Simplify controls in story * Simplify `stepOverride` type * Add string number utils Co-authored-by: Marco Ciampini <[email protected]> * Replace `parseFloat` with `ensureNumber` * Simplify `numberControlStateReducer` type * Cast keyboard event * Disable `value` control in story * UnitControl: Remove `children` from types Fixup of https://github.com/WordPress/gutenberg/pull/43474/files#diff-b21e5b36bcbb96cd162206795bc262d1ecb0b2ccb1bac9f0096d13c4a1c9c03a * Make the `step` prop visible in Docs view * UnitControl: Remove irrelevant props * UnitControl: Fixup controls * Use InputControlProps where possible * Improve TODO comments * Add changelog * Fix e2e test Co-authored-by: Marco Ciampini <[email protected]>
- Loading branch information