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

rmwc

Package Overview
Dependencies
Maintainers
1
Versions
255
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rmwc - npm Package Compare versions

Comparing version 0.0.1-rc1 to 0.0.1-rc2

TextField/index.js

2

CHANGELOG.md

@@ -0,1 +1,3 @@

#### 0.0.1-rc2 (2017-11-16)
#### 0.0.1-rc1 (2017-11-15)

@@ -2,0 +4,0 @@

@@ -0,3 +1,13 @@

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _class, _temp;
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
import * as React from 'react';

@@ -9,3 +19,11 @@ import { MDCFormField } from '@material/form-field/dist/mdc.formField';

displayName: 'FormFieldRoot',
classNames: 'mdc-form-field'
defaultProps: {
alignEnd: undefined
},
classNames: function classNames(props) {
return ['mdc-form-field', {
'mdc-form-field--align-end': props.alignEnd
}];
},
consumeProps: ['alignEnd']
});

@@ -16,10 +34,30 @@

mdcElementRef: true
})(function (_ref) {
var mdcElementRef = _ref.mdcElementRef,
rest = _objectWithoutProperties(_ref, ['mdcElementRef']);
})((_temp = _class = function (_React$Component) {
_inherits(_class, _React$Component);
return React.createElement(FormFieldRoot, Object.assign({ elementRef: mdcElementRef }, rest));
});
function _class() {
_classCallCheck(this, _class);
return _possibleConstructorReturn(this, (_class.__proto__ || Object.getPrototypeOf(_class)).apply(this, arguments));
}
_createClass(_class, [{
key: 'render',
value: function render() {
var _props = this.props,
mdcElementRef = _props.mdcElementRef,
rest = _objectWithoutProperties(_props, ['mdcElementRef']);
return React.createElement(FormFieldRoot, Object.assign({ elementRef: mdcElementRef }, rest));
}
}]);
return _class;
}(React.Component), Object.defineProperty(_class, 'displayName', {
enumerable: true,
writable: true,
value: 'FormField'
}), _temp));
export { FormField };
export default FormField;

2

index.js

@@ -49,3 +49,3 @@ export { default as Button } from './Button';

export { default as Textfield } from './Textfield';
export { default as TextField } from './TextField';

@@ -52,0 +52,0 @@ export { Theme } from './Theme';

@@ -70,4 +70,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

determinate: true,
reversed: false,
accent: false
reversed: false
},

@@ -74,0 +73,0 @@ onUpdate: function onUpdate(props, nextProps, api) {

{
"name": "rmwc",
"version": "0.0.1-rc1",
"version": "0.0.1-rc2",
"author": "James Friedman",

@@ -28,3 +28,3 @@ "private": false,

"classnames": "^2.2.x",
"material-components-web": "^0.24.0",
"material-components-web": "^0.25.0",
"prop-types": "^15.6.0"

@@ -41,3 +41,3 @@ },

"build:lib": "node scripts/build-lib.js",
"deploy:docs": "npm run docgen && npm run build:lib && npm run build && git add build -f && git commit -m 'running build' && git subtree split -b gh-pages --prefix build && git push origin gh-pages:gh-pages --force && git branch -D gh-pages",
"deploy:docs": "npm run docgen && npm run build:lib && npm run build && git add build -f && git commit -m 'running build' && git subtree split -b gh-pages --prefix build && git push origin gh-pages:gh-pages --force && git branch -D gh-pages && npm run clean",
"changelog": "changelog",

@@ -48,3 +48,3 @@ "test": "node scripts/test.js --env=jsdom",

"preversion": "npm test -- --coverage",
"version": "npm run build:lib && git add -A lib && npm run changelog && git add CHANGELOG.md",
"version": "npm run changelog && git add CHANGELOG.md && npm run build:lib && git add -A lib",
"postversion": "git push && git push --tags"

@@ -51,0 +51,0 @@ },

@@ -38,5 +38,8 @@ [![CircleCI](https://circleci.com/gh/jamesmfriedman/rmwc/tree/master.svg?style=shield)](https://circleci.com/gh/jamesmfriedman/rmwc/tree/master) [![npm](https://img.shields.io/npm/v/rmwc.svg)]() [![npm](https://img.shields.io/npm/l/rmwc.svg)]()

## Status: Beta
RMWC is currently in Beta. All of the Material components are covered and smoke tests have been written to check rendering and basic functionality. The docs will get a fresh coat of polish and additional documentation with the final release.
## About Breaking Changes
As stated in "Why?", the goal of this library is to be unopinionated, and that includes opinions about breaking changes that come downstream from `material-components-web`. In the future, steps may be taken to insulate consumers by providing a deprecation path, but for the time being please make sure you keep eyes on the official [MDC Changelog](https://github.com/material-components/material-components-web/blob/master/CHANGELOG.md) and RMWC will do its best to also keep its changelog up to date.
## Status: RC
RMWC is currently in RC. All of the MDC components are covered and are being used in various projects. Only bug fixes and doc improvements are planned before an official V1.
- [x] Buttons

@@ -43,0 +46,0 @@ - [x] Standard

Sorry, the diff of this file is too big to display

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