forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UI Framework] [K7] Refactor form component interfaces (elastic#13493)
* Add htmlIdGeneratorFactory service. * Extract KuiFormHelpText and KuiFormErrorText components. * Add KuiFormLabel. Update form examples to emphasize the basic form components. * Refine KuiFormRow, KuiSelect, and KuiFieldX component interfaces. - Add KuiFormControlLayout component for adding icons to controls. - Make icon a concern of the field itself, not the KuiFormRow. - Allow developer to specify icon for KuiFieldText and KuiFieldNumber. - Hardcode icons for KuiSelect, KuiFieldPassword, and KuiFieldSearch components. * Move validation from KuiFormRow to each individual component. - Create :invalid pseudo element selector. - Create KuiValidatableControl component. * Refine isInvalid and error interface for FormRow and Form. * Return child element without wrapper from KuiFormControlLayout if no icon is specified. * Override form control invalid state with focus state. * Update form examples to demonstrate all controls. - Fix help text and error text spacing regression. - Refine KuiCheckbox interface. * Rename KuiCheckbox to KuiCheckboxGroup and remove top padding on first item. * Refine KuiSwitch interface.
- Loading branch information
Showing
80 changed files
with
1,714 additions
and
756 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.