New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rmwc/floating-label

Package Overview
Dependencies
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/floating-label - npm Package Compare versions

Comparing version 3.0.11 to 4.0.0

43

docgen.json

@@ -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() {

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc