Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TextField] Add links to Input and Select #15148

Merged
merged 6 commits into from
Apr 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/material-ui/src/Checkbox/Checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Checkbox.propTypes = {
*/
inputProps: PropTypes.object,
/**
* Use that property to pass a ref callback to the native input component.
* This property can be used to pass a ref callback to the `input` element.
*/
inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
/**
Expand Down
19 changes: 9 additions & 10 deletions packages/material-ui/src/FilledInput/FilledInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,11 @@ FilledInput.propTypes = {
/**
* This property helps users to fill forms faster, especially on mobile devices.
* The name can be confusing, as it's more like an autofill.
* You can learn more about it here:
* https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill
* You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
*/
autoComplete: PropTypes.string,
/**
* If `true`, the input will be focused during the first mount.
* If `true`, the `input` element will be focused during the first mount.
*/
autoFocus: PropTypes.bool,
/**
Expand All @@ -162,7 +161,7 @@ FilledInput.propTypes = {
*/
className: PropTypes.string,
/**
* The default input value, useful when not controlling the component.
* The default `input` element value, useful when not controlling the component.
*/
defaultValue: PropTypes.oneOfType([
PropTypes.string,
Expand All @@ -174,7 +173,7 @@ FilledInput.propTypes = {
),
]),
/**
* If `true`, the input will be disabled.
* If `true`, the `input` element will be disabled.
*/
disabled: PropTypes.bool,
/**
Expand Down Expand Up @@ -204,11 +203,11 @@ FilledInput.propTypes = {
*/
inputComponent: PropTypes.elementType,
/**
* Attributes applied to the `input` element.
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
*/
inputProps: PropTypes.object,
/**
* Use that property to pass a ref callback to the native input component.
* This property can be used to pass a ref callback to the `input` element.
*/
inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
/**
Expand Down Expand Up @@ -241,7 +240,7 @@ FilledInput.propTypes = {
*/
readOnly: PropTypes.bool,
/**
* If `true`, the input will be required.
* If `true`, the `input` element will be required.
*/
required: PropTypes.bool,
/**
Expand All @@ -257,11 +256,11 @@ FilledInput.propTypes = {
*/
startAdornment: PropTypes.node,
/**
* Type of the input element. It should be a valid HTML5 input type.
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
*/
type: PropTypes.string,
/**
* The input value, required for a controlled component.
* The value of the `input` element, required for a controlled component.
*/
value: PropTypes.oneOfType([
PropTypes.string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ FormControlLabel.propTypes = {
*/
disabled: PropTypes.bool,
/**
* Use that property to pass a ref callback to the native input component.
* This property can be used to pass a ref callback to the `input` element.
*/
inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
/**
Expand Down
19 changes: 9 additions & 10 deletions packages/material-ui/src/Input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,11 @@ Input.propTypes = {
/**
* This property helps users to fill forms faster, especially on mobile devices.
* The name can be confusing, as it's more like an autofill.
* You can learn more about it here:
* https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill
* You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
*/
autoComplete: PropTypes.string,
/**
* If `true`, the input will be focused during the first mount.
* If `true`, the `input` element will be focused during the first mount.
*/
autoFocus: PropTypes.bool,
/**
Expand All @@ -132,7 +131,7 @@ Input.propTypes = {
*/
className: PropTypes.string,
/**
* The default input value, useful when not controlling the component.
* The default `input` element value, useful when not controlling the component.
*/
defaultValue: PropTypes.oneOfType([
PropTypes.string,
Expand All @@ -144,7 +143,7 @@ Input.propTypes = {
),
]),
/**
* If `true`, the input will be disabled.
* If `true`, the `input` element will be disabled.
*/
disabled: PropTypes.bool,
/**
Expand Down Expand Up @@ -174,11 +173,11 @@ Input.propTypes = {
*/
inputComponent: PropTypes.elementType,
/**
* Attributes applied to the `input` element.
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
*/
inputProps: PropTypes.object,
/**
* Use that property to pass a ref callback to the native input component.
* This property can be used to pass a ref callback to the `input` element.
*/
inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
/**
Expand Down Expand Up @@ -211,7 +210,7 @@ Input.propTypes = {
*/
readOnly: PropTypes.bool,
/**
* If `true`, the input will be required.
* If `true`, the `input` element will be required.
*/
required: PropTypes.bool,
/**
Expand All @@ -227,11 +226,11 @@ Input.propTypes = {
*/
startAdornment: PropTypes.node,
/**
* Type of the input element. It should be a valid HTML5 input type.
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
*/
type: PropTypes.string,
/**
* The input value, required for a controlled component.
* The value of the `input` element, required for a controlled component.
*/
value: PropTypes.oneOfType([
PropTypes.string,
Expand Down
21 changes: 10 additions & 11 deletions packages/material-ui/src/InputBase/InputBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,12 +440,11 @@ InputBase.propTypes = {
/**
* This property helps users to fill forms faster, especially on mobile devices.
* The name can be confusing, as it's more like an autofill.
* You can learn more about it here:
* https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill
* You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
*/
autoComplete: PropTypes.string,
/**
* If `true`, the input will be focused during the first mount.
* If `true`, the `input` element will be focused during the first mount.
*/
autoFocus: PropTypes.bool,
/**
Expand All @@ -458,7 +457,7 @@ InputBase.propTypes = {
*/
className: PropTypes.string,
/**
* The default input value, useful when not controlling the component.
* The default `input` element value, useful when not controlling the component.
*/
defaultValue: PropTypes.oneOfType([
PropTypes.string,
Expand All @@ -470,7 +469,7 @@ InputBase.propTypes = {
),
]),
/**
* If `true`, the input will be disabled.
* If `true`, the `input` element will be disabled.
*/
disabled: PropTypes.bool,
/**
Expand All @@ -496,16 +495,16 @@ InputBase.propTypes = {
*/
innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
/**
* The component used for the native input.
* The component used for the `input` element.
* Either a string to use a DOM element or a component.
*/
inputComponent: PropTypes.elementType,
/**
* Attributes applied to the `input` element.
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
*/
inputProps: PropTypes.object,
/**
* Use that property to pass a ref callback to the native input component.
* This property can be used to pass a ref callback to the `input` element.
*/
inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
/**
Expand Down Expand Up @@ -574,7 +573,7 @@ InputBase.propTypes = {
*/
renderPrefix: PropTypes.func,
/**
* If `true`, the input will be required.
* If `true`, the `input` element will be required.
*/
required: PropTypes.bool,
/**
Expand All @@ -590,11 +589,11 @@ InputBase.propTypes = {
*/
startAdornment: PropTypes.node,
/**
* Type of the input element. It should be a valid HTML5 input type.
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
*/
type: PropTypes.string,
/**
* The input value, required for a controlled component.
* The value of the `input` element, required for a controlled component.
*/
value: PropTypes.oneOfType([
PropTypes.string,
Expand Down
19 changes: 9 additions & 10 deletions packages/material-ui/src/OutlinedInput/OutlinedInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,11 @@ OutlinedInput.propTypes = {
/**
* This property helps users to fill forms faster, especially on mobile devices.
* The name can be confusing, as it's more like an autofill.
* You can learn more about it here:
* https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill
* You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
*/
autoComplete: PropTypes.string,
/**
* If `true`, the input will be focused during the first mount.
* If `true`, the `input` element will be focused during the first mount.
*/
autoFocus: PropTypes.bool,
/**
Expand All @@ -129,7 +128,7 @@ OutlinedInput.propTypes = {
*/
className: PropTypes.string,
/**
* The default input value, useful when not controlling the component.
* The default `input` element value, useful when not controlling the component.
*/
defaultValue: PropTypes.oneOfType([
PropTypes.string,
Expand All @@ -141,7 +140,7 @@ OutlinedInput.propTypes = {
),
]),
/**
* If `true`, the input will be disabled.
* If `true`, the `input` element will be disabled.
*/
disabled: PropTypes.bool,
/**
Expand All @@ -167,11 +166,11 @@ OutlinedInput.propTypes = {
*/
inputComponent: PropTypes.elementType,
/**
* Attributes applied to the `input` element.
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
*/
inputProps: PropTypes.object,
/**
* Use that property to pass a ref callback to the native input component.
* This property can be used to pass a ref callback to the `input` element.
*/
inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
/**
Expand Down Expand Up @@ -212,7 +211,7 @@ OutlinedInput.propTypes = {
*/
readOnly: PropTypes.bool,
/**
* If `true`, the input will be required.
* If `true`, the `input` element will be required.
*/
required: PropTypes.bool,
/**
Expand All @@ -228,11 +227,11 @@ OutlinedInput.propTypes = {
*/
startAdornment: PropTypes.node,
/**
* Type of the input element. It should be a valid HTML5 input type.
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
*/
type: PropTypes.string,
/**
* The input value, required for a controlled component.
* The value of the `input` element, required for a controlled component.
*/
value: PropTypes.oneOfType([
PropTypes.string,
Expand Down
4 changes: 2 additions & 2 deletions packages/material-ui/src/Radio/Radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ Radio.propTypes = {
*/
id: PropTypes.string,
/**
* Attributes applied to the `input` element.
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
*/
inputProps: PropTypes.object,
/**
* Use that property to pass a ref callback to the native input component.
* This property can be used to pass a ref callback to the `input` element.
*/
inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/RadioGroup/RadioGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ RadioGroup.propTypes = {
*/
children: PropTypes.node,
/**
* The default input value, useful when not controlling the component.
* The default `input` element value, useful when not controlling the component.
*/
defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool]),
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/Select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Select.propTypes = {
*/
input: PropTypes.element,
/**
* Attributes applied to the `input` element.
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
* When `native` is `true`, the attributes are applied on the `select` element.
*/
inputProps: PropTypes.object,
Expand Down
4 changes: 2 additions & 2 deletions packages/material-ui/src/Switch/Switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ Switch.propTypes = {
*/
id: PropTypes.string,
/**
* Attributes applied to the `input` element.
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
*/
inputProps: PropTypes.object,
/**
* Use that property to pass a ref callback to the native input component.
* This property can be used to pass a ref callback to the `input` element.
*/
inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
/**
Expand Down
Loading