@rmwc/floating-label
Advanced tools
Comparing version 3.0.11 to 4.0.0
@@ -12,2 +12,45 @@ [ | ||
"returns": null | ||
}, | ||
{ | ||
"name": "shake", | ||
"docblock": null, | ||
"modifiers": [], | ||
"params": [ | ||
{ | ||
"name": "shouldShake", | ||
"type": { | ||
"name": "boolean" | ||
} | ||
} | ||
], | ||
"returns": null | ||
}, | ||
{ | ||
"name": "float", | ||
"docblock": "Styles label to float/dock.\n@param {boolean} shouldFloat styles the label to float by adding float class\nif true, otherwise docks the label by removing the float class.", | ||
"modifiers": [], | ||
"params": [ | ||
{ | ||
"name": "shouldFloat", | ||
"description": "styles the label to float by adding float class\nif true, otherwise docks the label by removing the float class.", | ||
"type": { | ||
"name": "boolean" | ||
} | ||
} | ||
], | ||
"returns": null, | ||
"description": "Styles label to float/dock." | ||
}, | ||
{ | ||
"name": "getWidth", | ||
"docblock": "@return {number}", | ||
"modifiers": [], | ||
"params": [], | ||
"returns": { | ||
"description": null, | ||
"type": { | ||
"name": "number" | ||
} | ||
}, | ||
"description": null | ||
} | ||
@@ -14,0 +57,0 @@ ] |
@@ -9,4 +9,15 @@ /// <reference types="react" /> | ||
getDefaultFoundation(): any; | ||
shake(shouldShake: boolean): void; | ||
/** | ||
* Styles label to float/dock. | ||
* @param {boolean} shouldFloat styles the label to float by adding float class | ||
* if true, otherwise docks the label by removing the float class. | ||
*/ | ||
float(shouldFloat: boolean): void; | ||
/** | ||
* @return {number} | ||
*/ | ||
getWidth(): any; | ||
render(): JSX.Element; | ||
} | ||
export default FloatingLabel; |
31
index.js
@@ -14,3 +14,3 @@ 'use strict'; | ||
var _mdc = require('@material/floating-label/dist/mdc.floatingLabel'); | ||
var _floatingLabel = require('@material/floating-label'); | ||
@@ -45,3 +45,3 @@ var _base = require('@rmwc/base'); | ||
return new _mdc.MDCFloatingLabelFoundation({ | ||
return new _floatingLabel.MDCFloatingLabelFoundation({ | ||
addClass: function addClass(className) { | ||
@@ -65,2 +65,29 @@ return _this2.classList.root_.add(className); | ||
}, { | ||
key: 'shake', | ||
value: function shake(shouldShake) { | ||
this.foundation_.shake(shouldShake); | ||
} | ||
/** | ||
* Styles label to float/dock. | ||
* @param {boolean} shouldFloat styles the label to float by adding float class | ||
* if true, otherwise docks the label by removing the float class. | ||
*/ | ||
}, { | ||
key: 'float', | ||
value: function float(shouldFloat) { | ||
this.foundation_.float(shouldFloat); | ||
} | ||
/** | ||
* @return {number} | ||
*/ | ||
}, { | ||
key: 'getWidth', | ||
value: function getWidth() { | ||
return this.foundation_.getWidth(); | ||
} | ||
}, { | ||
key: 'render', | ||
@@ -67,0 +94,0 @@ value: function render() { |
{ | ||
"name": "@rmwc/floating-label", | ||
"version": "3.0.11", | ||
"version": "4.0.0", | ||
"description": "RMWC FloatingLabel component", | ||
@@ -29,5 +29,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"@material/floating-label": "~0.40.0", | ||
"@rmwc/base": "^3.0.11" | ||
"@material/floating-label": "~0.41.0", | ||
"@rmwc/base": "^4.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
9314
169
+ Added@material/animation@0.41.0(transitive)
+ Added@material/base@0.41.0(transitive)
+ Added@material/floating-label@0.41.0(transitive)
+ Added@material/theme@0.41.0(transitive)
+ Added@material/typography@0.41.0(transitive)
+ Added@rmwc/base@4.0.6(transitive)
- Removed@material/animation@0.40.1(transitive)
- Removed@material/base@0.40.1(transitive)
- Removed@material/floating-label@0.40.1(transitive)
- Removed@material/theme@0.40.1(transitive)
- Removed@material/typography@0.40.1(transitive)
- Removed@rmwc/base@3.0.11(transitive)
Updated@rmwc/base@^4.0.0