mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 12:25:22 +02:00
feat(app): introduce form framework [EE-1946] (#6272)
This commit is contained in:
parent
c5fe994cd2
commit
4f7b432f44
39 changed files with 815 additions and 339 deletions
|
@ -1,4 +1,4 @@
|
|||
import { NumberInput, TextInput } from '../Input';
|
||||
import { Input } from '../Input';
|
||||
|
||||
import { InputGroup as MainComponent } from './InputGroup';
|
||||
import { InputGroupAddon } from './InputGroupAddon';
|
||||
|
@ -7,15 +7,13 @@ import { InputGroupButtonWrapper } from './InputGroupButtonWrapper';
|
|||
interface InputGroupSubComponents {
|
||||
Addon: typeof InputGroupAddon;
|
||||
ButtonWrapper: typeof InputGroupButtonWrapper;
|
||||
Input: typeof TextInput;
|
||||
NumberInput: typeof NumberInput;
|
||||
Input: typeof Input;
|
||||
}
|
||||
|
||||
const InputGroup: typeof MainComponent & InputGroupSubComponents = MainComponent as typeof MainComponent & InputGroupSubComponents;
|
||||
|
||||
InputGroup.Addon = InputGroupAddon;
|
||||
InputGroup.ButtonWrapper = InputGroupButtonWrapper;
|
||||
InputGroup.Input = TextInput;
|
||||
InputGroup.NumberInput = NumberInput;
|
||||
InputGroup.Input = Input;
|
||||
|
||||
export { InputGroup };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue