style(components): rename variables and methods for consistency

- updates ele to el
- renames functions under prop did change
- documents events and some props
- adds private / protected
- removes underscores from range
This commit is contained in:
Brandy Carney
2017-11-02 10:43:35 -04:00
parent ad81cca77a
commit 0e73723e57
54 changed files with 872 additions and 337 deletions

View File

@ -241,11 +241,11 @@ export function focusOutActiveElement() {
activeElement && activeElement.blur && activeElement.blur();
}
export function isTextInput(ele: any) {
return !!ele &&
(ele.tagName === 'TEXTAREA'
|| ele.contentEditable === 'true'
|| (ele.tagName === 'INPUT' && !(NON_TEXT_INPUT_REGEX.test(ele.type))));
export function isTextInput(el: any) {
return !!el &&
(el.tagName === 'TEXTAREA'
|| el.contentEditable === 'true'
|| (el.tagName === 'INPUT' && !(NON_TEXT_INPUT_REGEX.test(el.type))));
}
export const NON_TEXT_INPUT_REGEX = /^(radio|checkbox|range|file|submit|reset|color|image|button)$/i;