Comparing version 0.0.1-rc1 to 0.0.1-rc2
@@ -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; |
@@ -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
657363
3691
81
+ Added@material/animation@0.25.0(transitive)
+ Added@material/auto-init@0.25.0(transitive)
+ Added@material/button@0.25.0(transitive)
+ Added@material/card@0.25.0(transitive)
+ Added@material/checkbox@0.25.0(transitive)
+ Added@material/dialog@0.25.0(transitive)
+ Added@material/drawer@0.25.0(transitive)
+ Added@material/elevation@0.25.0(transitive)
+ Added@material/fab@0.25.0(transitive)
+ Added@material/form-field@0.25.0(transitive)
+ Added@material/grid-list@0.25.0(transitive)
+ Added@material/icon-toggle@0.25.0(transitive)
+ Added@material/linear-progress@0.25.0(transitive)
+ Added@material/list@0.25.0(transitive)
+ Added@material/menu@0.25.0(transitive)
+ Added@material/radio@0.25.0(transitive)
+ Added@material/ripple@0.25.0(transitive)
+ Added@material/select@0.25.0(transitive)
+ Added@material/selection-control@0.25.0(transitive)
+ Added@material/slider@0.25.0(transitive)
+ Added@material/snackbar@0.25.0(transitive)
+ Added@material/switch@0.25.0(transitive)
+ Added@material/tabs@0.25.0(transitive)
+ Added@material/textfield@0.25.0(transitive)
+ Added@material/theme@0.25.00.4.0(transitive)
+ Added@material/toolbar@0.25.0(transitive)
+ Addedmaterial-components-web@0.25.0(transitive)
- Removed@material/animation@0.4.1(transitive)
- Removed@material/auto-init@0.24.0(transitive)
- Removed@material/button@0.24.0(transitive)
- Removed@material/card@0.24.0(transitive)
- Removed@material/checkbox@0.24.0(transitive)
- Removed@material/dialog@0.24.0(transitive)
- Removed@material/drawer@0.24.0(transitive)
- Removed@material/elevation@0.1.13(transitive)
- Removed@material/fab@0.24.0(transitive)
- Removed@material/form-field@0.24.0(transitive)
- Removed@material/grid-list@0.24.0(transitive)
- Removed@material/icon-toggle@0.24.0(transitive)
- Removed@material/linear-progress@0.24.0(transitive)
- Removed@material/list@0.24.0(transitive)
- Removed@material/menu@0.24.0(transitive)
- Removed@material/radio@0.24.0(transitive)
- Removed@material/ripple@0.24.0(transitive)
- Removed@material/select@0.24.0(transitive)
- Removed@material/selection-control@0.24.0(transitive)
- Removed@material/slider@0.24.0(transitive)
- Removed@material/snackbar@0.24.0(transitive)
- Removed@material/switch@0.24.0(transitive)
- Removed@material/tabs@0.24.0(transitive)
- Removed@material/textfield@0.24.0(transitive)
- Removed@material/theme@0.24.0(transitive)
- Removed@material/toolbar@0.24.0(transitive)
- Removedmaterial-components-web@0.24.0(transitive)