diff --git a/src-docs/src/views/form_controls/field_number.js b/src-docs/src/views/form_controls/field_number.js index ebfc39dfd18..eb675fbb87a 100644 --- a/src-docs/src/views/form_controls/field_number.js +++ b/src-docs/src/views/form_controls/field_number.js @@ -8,6 +8,7 @@ export default class extends Component { this.state = { value: '', + rangeValue: undefined, }; } @@ -18,10 +19,17 @@ export default class extends Component { }); }; + onRangeChange = value => { + this.setState({ + rangeValue: value, + }); + }; + render() { return ( diff --git a/src-docs/src/views/form_controls/field_password.js b/src-docs/src/views/form_controls/field_password.js index 89ef106d4ba..da850a3ee41 100644 --- a/src-docs/src/views/form_controls/field_password.js +++ b/src-docs/src/views/form_controls/field_password.js @@ -7,7 +7,7 @@ export default class extends Component { super(props); this.state = { - value: '', + value: 'password', }; } @@ -21,6 +21,7 @@ export default class extends Component { return ( @@ -44,6 +46,7 @@ export default class extends Component { value={this.state.value} onChange={this.onChange} isLoading + compressed aria-label="Use aria labels when no actual label is in use" /> @@ -55,6 +58,7 @@ export default class extends Component { onChange={this.onChange} isLoading disabled + compressed aria-label="Use aria labels when no actual label is in use" /> @@ -65,6 +69,7 @@ export default class extends Component { value={this.state.value} onChange={this.onChange} compressed + readOnly /> @@ -73,7 +78,8 @@ export default class extends Component { placeholder="Compressed and loading" value={this.state.value} onChange={this.onChange} - isLoading + isInvalid + fullWidth compressed /> diff --git a/src-docs/src/views/form_controls/field_search.js b/src-docs/src/views/form_controls/field_search.js index 2224b22e9a1..8c3f4a9b247 100644 --- a/src-docs/src/views/form_controls/field_search.js +++ b/src-docs/src/views/form_controls/field_search.js @@ -21,6 +21,7 @@ export default class extends Component { return ( ); diff --git a/src-docs/src/views/form_controls/field_text.js b/src-docs/src/views/form_controls/field_text.js index 125dc557928..00d475f3628 100644 --- a/src-docs/src/views/form_controls/field_text.js +++ b/src-docs/src/views/form_controls/field_text.js @@ -1,6 +1,13 @@ import React, { Component, Fragment } from 'react'; -import { EuiFieldText, EuiSpacer } from '../../../../src/components'; +import { + EuiFieldText, + EuiSpacer, + EuiFormLabel, + EuiButtonEmpty, + EuiButtonIcon, +} from '../../../../src/components'; +import { EuiIcon } from '../../../../src/components/icon'; export default class extends Component { constructor(props) { @@ -21,6 +28,7 @@ export default class extends Component { return ( + + + + Label} + /> + + + + } + /> + + + + px square} + /> + + + + } + /> + + + + } + append={px square} + /> + + + + + Button + + } + append={ + + Button + + } + /> + + + + , + field.name, + ]} + /> + + + + field.name, + , + ]} /> ); diff --git a/src-docs/src/views/form_controls/file_picker.js b/src-docs/src/views/form_controls/file_picker.js index 68f7acd2799..18749fcd4b3 100644 --- a/src-docs/src/views/form_controls/file_picker.js +++ b/src-docs/src/views/form_controls/file_picker.js @@ -49,6 +49,7 @@ export class FilePicker extends Component { { this.onChange(files); @@ -65,13 +66,14 @@ export class FilePicker extends Component { - + { this.onChange(files); }} @@ -80,8 +82,12 @@ export class FilePicker extends Component { { this.onChange(files); }} diff --git a/src-docs/src/views/form_controls/form_control_layout.js b/src-docs/src/views/form_controls/form_control_layout.js index e79feedb1b7..50c89bbbb7c 100644 --- a/src-docs/src/views/form_controls/form_control_layout.js +++ b/src-docs/src/views/form_controls/form_control_layout.js @@ -10,78 +10,95 @@ import { export default () => ( - - + + - - + + - {} }}> - + {} }} compressed> + - {} }}> - + {} }} compressed> + - - + + - - + + - {} }} icon="search"> - + {} }} + icon="search" + compressed> + {} }} - icon={{ type: 'arrowDown', side: 'right' }}> - + icon={{ type: 'arrowDown', side: 'right' }} + compressed> + - {} }} icon="search"> - + {} }} + icon="search" + compressed> + {} }} icon={{ type: 'arrowDown', side: 'right' }}> - + - {} }} icon="search"> - + {} }} + icon="search" + compressed> + Label}> ( Read only}> ( % @@ -117,6 +136,7 @@ export default () => ( {} }} prepend={ diff --git a/src-docs/src/views/form_controls/form_control_layout_range.js b/src-docs/src/views/form_controls/form_control_layout_range.js index a11d465fc05..06a35ee14a2 100644 --- a/src-docs/src/views/form_controls/form_control_layout_range.js +++ b/src-docs/src/views/form_controls/form_control_layout_range.js @@ -10,6 +10,7 @@ import { export default () => ( } @@ -20,6 +21,7 @@ export default () => ( px} startControl={ @@ -31,6 +33,7 @@ export default () => ( @@ -42,6 +45,7 @@ export default () => ( {} }} isLoading startControl={ @@ -55,6 +59,7 @@ export default () => ( } @@ -65,6 +70,7 @@ export default () => ( @@ -88,6 +94,7 @@ export default () => ( Add} startControl={ @@ -101,6 +108,7 @@ export default () => ( Merge} startControl={ @@ -114,6 +122,7 @@ export default () => ( Read only} startControl={ diff --git a/src-docs/src/views/form_controls/select.js b/src-docs/src/views/form_controls/select.js index 1c7774d55c5..1a0830236c8 100644 --- a/src-docs/src/views/form_controls/select.js +++ b/src-docs/src/views/form_controls/select.js @@ -27,6 +27,7 @@ export default class extends Component { return ( ); diff --git a/src-docs/src/views/form_controls/text_area.js b/src-docs/src/views/form_controls/text_area.js index 43f04395d50..09509895ccc 100644 --- a/src-docs/src/views/form_controls/text_area.js +++ b/src-docs/src/views/form_controls/text_area.js @@ -21,6 +21,7 @@ export default class extends Component { return ( @@ -45,6 +47,7 @@ export default class extends Component { value={this.state.value} onChange={this.onChange} readOnly + compressed /> @@ -54,6 +57,8 @@ export default class extends Component { value={this.state.value} onChange={this.onChange} compressed + isInvalid + fullWidth /> ); diff --git a/src-docs/src/views/super_select/super_select.js b/src-docs/src/views/super_select/super_select.js index b356b870072..86ab6254754 100644 --- a/src-docs/src/views/super_select/super_select.js +++ b/src-docs/src/views/super_select/super_select.js @@ -42,6 +42,7 @@ export default class extends Component { return (