Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

melon-core

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

melon-core - npm Package Compare versions

Comparing version 0.3.4 to 0.4.0

babelHelpers.js.map

4

babelHelpers.js

@@ -1,2 +0,1 @@

/*! 2016 Baidu Inc. All Rights Reserved */
(function (root, factory) {

@@ -79,2 +78,3 @@ if (typeof define === "function" && define.amd) {

};
});
});
//# sourceMappingURL=babelHelpers.js.map

@@ -1,7 +0,6 @@

/*! 2016 Baidu Inc. All Rights Reserved */
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports', "../babelHelpers"], factory);
define(['exports'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require("../babelHelpers"));
factory(exports);
} else {

@@ -11,14 +10,11 @@ var mod = {

};
factory(mod.exports, global.babelHelpers);
factory(mod.exports);
global.classname = mod.exports;
}
})(this, function (exports, babelHelpers) {
})(this, function (exports) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.createClasses = createClasses;
exports.createClassName = createClassName;
/**

@@ -75,2 +71,3 @@ * @file melon 样式相关的小工具

}
});
});
//# sourceMappingURL=classname.js.map

@@ -1,7 +0,6 @@

/*! 2016 Baidu Inc. All Rights Reserved */
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports', './classname', '../util/string', '../config', "../babelHelpers"], factory);
define(['exports', './classname', '../util/string', '../config', '../babelHelpers'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require('./classname'), require('../util/string'), require('../config'), require("../babelHelpers"));
factory(exports, require('./classname'), require('../util/string'), require('../config'), require('../babelHelpers'));
} else {

@@ -17,7 +16,4 @@ var mod = {

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.create = create;
/**

@@ -54,5 +50,5 @@ * @file melon/classname

function resolveVariants(props) {
var _props$variants = props.variants;
var variants = _props$variants === undefined ? [] : _props$variants;
var size = props.size;
var _props$variants = props.variants,
variants = _props$variants === undefined ? [] : _props$variants,
size = props.size;

@@ -63,5 +59,5 @@ return _config.COMPONENT_SIZES.indexOf(size) > -1 ? variants.concat('size-' + size) : variants;

function resolveStates(props) {
var states = props.states;
var hidden = props.hidden;
var disabled = props.disabled;
var states = props.states,
hidden = props.hidden,
disabled = props.disabled;

@@ -166,2 +162,3 @@

}
});
});
//# sourceMappingURL=cxBuilder.js.map

@@ -1,7 +0,6 @@

/*! 2016 Baidu Inc. All Rights Reserved */
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports', "./babelHelpers"], factory);
define(['exports'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require("./babelHelpers"));
factory(exports);
} else {

@@ -11,12 +10,9 @@ var mod = {

};
factory(mod.exports, global.babelHelpers);
factory(mod.exports);
global.config = mod.exports;
}
})(this, function (exports, babelHelpers) {
})(this, function (exports) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
/**

@@ -31,2 +27,3 @@ * @file melon/config

var COMPONENT_STATE_PREFIX = exports.COMPONENT_STATE_PREFIX = 'state';
});
});
//# sourceMappingURL=config.js.map

@@ -1,7 +0,6 @@

/*! 2016 Baidu Inc. All Rights Reserved */
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports', 'react', './Validator', "./babelHelpers"], factory);
define(['exports', 'react', './Validator', './babelHelpers'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require('react'), require('./Validator'), require("./babelHelpers"));
factory(exports, require('react'), require('./Validator'), require('./babelHelpers'));
} else {

@@ -17,5 +16,3 @@ var mod = {

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;

@@ -73,11 +70,8 @@ var _react2 = babelHelpers.interopRequireDefault(_react);

Form.prototype.isValidFormField = function isValidFormField(field) {
var value = field.getValue();
var pointer = field.pointer;
var props = field.props;
var name = props.name;
var disabled = props.disabled;
var _field$props = field.props,
name = _field$props.name,
disabled = _field$props.disabled;
return name && !disabled && value != null && pointer && pointer.lastIndexOf('/') === 0;
return name && !disabled && value != null;
};

@@ -105,2 +99,4 @@

var validator = this.props.validator;
return this.fields.reduce(function (formValidity, field) {

@@ -114,3 +110,3 @@

var value = field.getValue();
var validity = field.validate(value);
var validity = validator.validate(value, field);

@@ -132,6 +128,7 @@ return {

var _props = this.props;
var noValidate = _props.noValidate;
var _onSubmit = _props.onSubmit;
var rest = babelHelpers.objectWithoutProperties(_props, ['noValidate', 'onSubmit']);
var _props = this.props,
noValidate = _props.noValidate,
_onSubmit = _props.onSubmit,
validator = _props.validator,
rest = babelHelpers.objectWithoutProperties(_props, ['noValidate', 'onSubmit', 'validator']);

@@ -185,2 +182,3 @@

};
});
});
//# sourceMappingURL=Form.js.map

@@ -1,7 +0,6 @@

/*! 2016 Baidu Inc. All Rights Reserved */
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports', 'react', './Validator', './util/syncPropsToState', './util/shallowEqual', "./babelHelpers"], factory);
define(['exports', 'react', './util/shallowEqual', './babelHelpers'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require('react'), require('./Validator'), require('./util/syncPropsToState'), require('./util/shallowEqual'), require("./babelHelpers"));
factory(exports, require('react'), require('./util/shallowEqual'), require('./babelHelpers'));
} else {

@@ -11,16 +10,10 @@ var mod = {

};
factory(mod.exports, global.react, global.Validator, global.syncPropsToState, global.shallowEqual, global.babelHelpers);
factory(mod.exports, global.react, global.shallowEqual, global.babelHelpers);
global.InputComponent = mod.exports;
}
})(this, function (exports, _react, _Validator, _syncPropsToState, _shallowEqual, babelHelpers) {
})(this, function (exports, _react, _shallowEqual, babelHelpers) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
var _Validator2 = babelHelpers.interopRequireDefault(_Validator);
var _syncPropsToState2 = babelHelpers.interopRequireDefault(_syncPropsToState);
var _shallowEqual2 = babelHelpers.interopRequireDefault(_shallowEqual);

@@ -35,51 +28,18 @@

var _this = babelHelpers.possibleConstructorReturn(this, _Component.call(this, props));
var _this = babelHelpers.possibleConstructorReturn(this, _Component.call(this, props, context));
var name = props.name;
var value = props.value;
var defaultValue = props.defaultValue;
var value = props.value,
defaultValue = props.defaultValue;
// 这里 validator 有两种来源 #=-= 略多,提供了丰富的可能性,比如一个表单里混合使用两种校验规则
// 1. 来自 props 这种最高优先,因为是手动指定的
// 2. 来自 contenxt 这种是继承自 form 提供的 validator
// 3. 最后,这一种情况是一个孤立 input component 在自己战斗,使用默认的 LiteValidator
_this.validator = props.validator || context.validator || _Validator2['default'];
var pointer = context.pointer;
/**
* @property {string} pointer 输入控件在表单中的位置
*
* ### 格式
*
* 举例:/aaa/bbb/0/ddd
* [json pointer](https://tools.ietf.org/html/rfc6901)
* 这货是个规范啊,不要小看人家,类似 XPath 在 XML 中的定位
*
* ### 使用规则
*
* 1. 只通过 contenxt 传递
* 2. 只在当组件有 name 属性时有效
* 3. 如果这货的父级 input component 没有 pointer,那么它也没有 pointer
*
* 其实就是说,这个 /aaa/bbb/0/ddd 的字符串中,不能出现 undefined / null
* 只要有任意一级断开了,其所有子级都是无效的
*/
_this.pointer = name != null && pointer ? '' + pointer + name : null;
_this.state = { value: value != null ? value : defaultValue };
_this.state = {
value: value === void 0 ? defaultValue : value
};
return _this;
}
InputComponent.prototype.getChildContext = function getChildContext() {
/**
* 这里主要做一件事,就是注册到 form 上,让 form 在 getData() / validate() 时避免递归遍历
*/
var pointer = this.pointer;
return {
pointer: pointer ? pointer + '/' : null
};
};
InputComponent.prototype.componentDidMount = function componentDidMount() {

@@ -95,8 +55,13 @@

InputComponent.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
var value = nextProps.value,
defaultValue = nextProps.defaultValue;
var updates = this.getSyncUpdates(nextProps);
if (updates) {
this.setState(updates);
if (value === void 0) {
value = defaultValue;
}
if (value !== this.state.value) {
this.setState({ value: value });
}
};

@@ -108,6 +73,2 @@

InputComponent.prototype.getSyncUpdates = function getSyncUpdates(nextProps) {
return (0, _syncPropsToState2['default'])(this, nextProps);
};
InputComponent.prototype.componentWillUnmount = function componentWillUnmount() {

@@ -122,43 +83,21 @@

InputComponent.prototype.validate = function validate(value) {
InputComponent.prototype.onChange = function onChange(e, callback) {
var _props = this.props,
onChange = _props.onChange,
value = _props.value;
var validity = this.checkValidity(value);
this.setState({ validity: validity });
return validity;
};
InputComponent.prototype.checkValidity = function checkValidity(value) {
return this.validator.validate(value, this);
};
InputComponent.prototype.setCustomValidity = function setCustomValidity(customValidity) {
this.setState({
validity: this.validator.createCustomValidity(customValidity)
});
};
InputComponent.prototype.onChange = function onChange(e) {
var _props = this.props;
var onChange = _props.onChange;
var customValidity = _props.customValidity;
// 这种对应着 controlled 组件逻辑
if (onChange) {
onChange(e);
// 在 React 中,只要 props 中的 value 是 undefined
// 那么 input 就会进入 uncontrolled 模式
// 这种对应着 controlled 组件逻辑,controlled 模式我们就啥也不管啦
if (value !== void 0) {
onChange && onChange(e);
callback && callback();
return;
}
var value = e.value;
if (value === this.state.value) {
return;
// 这种对应 uncontrolled 逻辑
if (e.value !== this.state.value) {
this.setState({ value: e.value }, callback);
}
var validity = customValidity ? this.validator.createCustomValidity(customValidity) : this.checkValidity(value);
// 这种对应非控制逻辑
this.setState({ value: value, validity: validity });
};

@@ -179,12 +118,20 @@

InputComponent.prototype.getStyleStates = function getStyleStates() {
var _props2 = this.props,
readOnly = _props2.readOnly,
valid = _props2.valid,
disabled = _props2.disabled;
var states = {
'read-only': this.isReadOnly()
};
var validity = this.state.validity;
var states = {};
if (validity) {
var valid = validity.isValid();
states.valid = valid;
if (readOnly !== void 0) {
states['read-only'] = readOnly;
}
if (disabled !== void 0) {
states.disabled = disabled;
}
if (valid !== void 0) {
states.valid = !!valid;
states.invalid = !valid;

@@ -205,36 +152,15 @@ }

InputComponent.propTypes = {
name: _react.PropTypes.string,
readOnly: _react.PropTypes.bool,
pointer: _react.PropTypes.string,
custormValidity: _react.PropTypes.string,
onChange: _react.PropTypes.func,
validate: _react.PropTypes.func,
renderErrorMessage: _react.PropTypes.func,
validator: _react.PropTypes.shape({
validate: _react.PropTypes.func.isRequired
})
valid: _react.PropTypes.bool,
onChange: _react.PropTypes.func
};
InputComponent.defaultProps = {
defaultValue: '',
readOnly: false,
validateEvents: ['change']
};
InputComponent.defaultProps = {};
InputComponent.contextTypes = {
pointer: _react.PropTypes.string,
validator: _react.PropTypes.shape({
validate: _react.PropTypes.func.isRequired
}),
attachForm: _react.PropTypes.func,
detachForm: _react.PropTypes.func
};
InputComponent.childContextTypes = {
pointer: _react.PropTypes.string
};
});
});
//# sourceMappingURL=InputComponent.js.map
{
"name": "melon-core",
"version": "0.3.4",
"version": "0.4.0",
"description": "React ui components base project",
"main": "./src",
"scripts": {
"test": "NODE_ENV=test karma start ./test/karma.local.conf.js",
"test-ci": "NODE_ENV=test karma start ./test/karma.ci.conf.js",
"coveralls": "cat ./coverage/lcov/lcov.info | ./node_modules/.bin/coveralls",
"lint": "fecs src --rule",
"build": "NODE_ENV=production gulp build",
"start": "NODE_ENV=dev node tools/server.js",
"setup": "rimraf asset && NODE_ENV=dev webpack --config=tools/webpack.dll.js"
},
"directories": {

@@ -14,4 +23,6 @@ "doc": "doc",

"babel-istanbul": "^0.11.0",
"babel-loader": "^6.2.5",
"babel-plugin-external-helpers": "^6.5.0",
"babel-plugin-transform-es2015-modules-amd": "^6.8.0",
"babel-plugin-external-helpers-insert-require": "^1.0.0",
"babel-plugin-istanbul": "^3.0.0",
"babel-plugin-transform-es2015-modules-umd": "^6.6.5",

@@ -28,25 +39,35 @@ "babel-plugin-transform-es3-member-expression-literals": "^6.5.0",

"coveralls": "^2.11.9",
"css-loader": "^0.24.0",
"express": "^4.14.0",
"file-loader": "^0.9.0",
"gulp": "^3.9.1",
"gulp-babel": "^6.1.2",
"gulp-babel-external-helpers": "^2.0.2",
"gulp-clean": "^0.3.2",
"gulp-sourcemaps": "^1.6.0",
"html-webpack-harddisk-plugin": "0.0.2",
"html-webpack-plugin": "^2.22.0",
"jasmine-core": "^2.4.1",
"jasmine-expect-jsx": "^1.1.2",
"json-loader": "^0.5.4",
"karma": "^1.1.1",
"karma-browserify": "^5.0.5",
"karma-browserstack-launcher": "^1.1.1",
"karma-chrome-launcher": "^1.0.1",
"karma-coverage": "^1.1.0",
"karma-jasmine": "^1.0.2",
"karma-jasmine-expect-jsx": "^1.0.2",
"karma-mocha-reporter": "^2.0.4",
"karma-sauce-launcher": "^1.0.0",
"lodash": "^3.10.1",
"karma-webpack": "^1.8.0",
"nib": "^1.1.0",
"react-addons-test-utils": "^0.14.3",
"react-addons-test-utils": "15.4.1",
"react-hot-loader": "^3.0.0-beta.6",
"rimraf": "^2.5.4",
"style-loader": "^0.13.1",
"stylus": "^0.54.2",
"watchify": "^3.7.0"
"stylus-loader": "^2.3.1",
"watchify": "^3.7.0",
"webpack": "^1.13.1",
"webpack-dev-middleware": "^1.8.3",
"webpack-hot-middleware": "^2.12.2"
},
"scripts": {
"test": "NODE_ENV=test ./node_modules/.bin/karma start ./tool/karma.conf.js",
"test-ci": "NODE_ENV=test ./node_modules/.bin/karma start ./tool/karma.ci.conf.js",
"coveralls": "cat ./coverage/lcov/lcov.info | ./node_modules/.bin/coveralls",
"lint": "fecs src --rule",
"build": "sh tool/build.sh",
"release": "sh tool/release.sh"
},
"repository": {

@@ -57,3 +78,4 @@ "type": "git",

"peerDependencies": {
"react": ">=0.14"
"react": "^15.4.1",
"react-dom": "^15.4.1"
},

@@ -80,5 +102,45 @@ "keywords": [

"dependencies": {
"react": "^0.14.8",
"react-dom": "^0.14.8"
"react": "^15.4.1",
"react-dom": "^15.4.1"
},
"babel": {
"env": {
"dev": {
"presets": [
"es2015",
"stage-2",
"react"
]
},
"test": {
"presets": [
"es2015",
"stage-2",
"react"
],
"plugins": [
"istanbul"
]
},
"production": {
"presets": [
[
"es2015",
{
"loose": true,
"modules": "umd"
}
],
"stage-2",
"react"
],
"plugins": [
"external-helpers",
"external-helpers-insert-require",
"transform-es3-property-literals",
"transform-es3-member-expression-literals"
]
}
}
}
}

@@ -7,4 +7,2 @@ # melon-core

[![Selenium Test Status](https://saucelabs.com/browser-matrix/meloncore.svg)](https://saucelabs.com/u/meloncore)
common Components and utils for `melon` and `melon-wise`

@@ -1,7 +0,6 @@

/*! 2016 Baidu Inc. All Rights Reserved */
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["exports", "../babelHelpers"], factory);
define(["exports"], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require("../babelHelpers"));
factory(exports);
} else {

@@ -11,14 +10,11 @@ var mod = {

};
factory(mod.exports, global.babelHelpers);
factory(mod.exports);
global.array = mod.exports;
}
})(this, function (exports, babelHelpers) {
})(this, function (exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.range = range;
exports.compact = compact;
/**

@@ -59,2 +55,3 @@ * Copyright 2016 Baidu Inc. All rights reserved.

}
});
});
//# sourceMappingURL=array.js.map

@@ -1,7 +0,6 @@

/*! 2016 Baidu Inc. All Rights Reserved */
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["exports", "../babelHelpers"], factory);
define(["exports"], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require("../babelHelpers"));
factory(exports);
} else {

@@ -11,13 +10,10 @@ var mod = {

};
factory(mod.exports, global.babelHelpers);
factory(mod.exports);
global.fn = mod.exports;
}
})(this, function (exports, babelHelpers) {
})(this, function (exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.throttle = throttle;
/**

@@ -96,2 +92,3 @@ * Copyright 2016 Baidu Inc. All rights reserved.

}
});
});
//# sourceMappingURL=fn.js.map

@@ -1,7 +0,6 @@

/*! 2016 Baidu Inc. All Rights Reserved */
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports', 'react-dom', "../babelHelpers"], factory);
define(['exports', 'react-dom', '../babelHelpers'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require('react-dom'), require("../babelHelpers"));
factory(exports, require('react-dom'), require('../babelHelpers'));
} else {

@@ -17,5 +16,3 @@ var mod = {

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.createContainer = createContainer;

@@ -55,2 +52,3 @@ exports.destoryContainer = destoryContainer;

}
});
});
//# sourceMappingURL=separatePopupHelper.js.map

@@ -1,7 +0,6 @@

/*! 2016 Baidu Inc. All Rights Reserved */
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports', "../babelHelpers"], factory);
define(['exports', '../babelHelpers'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require("../babelHelpers"));
factory(exports, require('../babelHelpers'));
} else {

@@ -17,7 +16,4 @@ var mod = {

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.default = shallowEqual;
/**

@@ -80,2 +76,3 @@ * @file shallowEqual

}
});
});
//# sourceMappingURL=shallowEqual.js.map

@@ -1,7 +0,6 @@

/*! 2016 Baidu Inc. All Rights Reserved */
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports', "../babelHelpers"], factory);
define(['exports'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require("../babelHelpers"));
factory(exports);
} else {

@@ -11,15 +10,12 @@ var mod = {

};
factory(mod.exports, global.babelHelpers);
factory(mod.exports);
global.string = mod.exports;
}
})(this, function (exports, babelHelpers) {
})(this, function (exports) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.camelize = camelize;
exports.pascalize = pascalize;
exports.hyphenate = hyphenate;
/**

@@ -68,2 +64,3 @@ * @file 字符串相关的小工具

}
});
});
//# sourceMappingURL=string.js.map

@@ -1,7 +0,6 @@

/*! 2016 Baidu Inc. All Rights Reserved */
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["exports", "../babelHelpers"], factory);
define(["exports"], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require("../babelHelpers"));
factory(exports);
} else {

@@ -11,15 +10,12 @@ var mod = {

};
factory(mod.exports, global.babelHelpers);
factory(mod.exports);
global.syncPropsToState = mod.exports;
}
})(this, function (exports, babelHelpers) {
})(this, function (exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.getNextValue = getNextValue;
exports.getNextValidity = getNextValidity;
exports.default = getSyncUpdates;
/**

@@ -38,4 +34,4 @@ * @file 小工具 - 用于做 InputComponent 的 props -> state 的同步

function getNextValue(component, nextProps) {
var value = nextProps.value;
var defaultValue = nextProps.defaultValue;
var value = nextProps.value,
defaultValue = nextProps.defaultValue;

@@ -55,5 +51,5 @@ return value === void 0 ? defaultValue : value;

function getNextValidity(component, _ref) {
var value = _ref.value;
var disabled = _ref.disabled;
var customValidity = _ref.customValidity;
var value = _ref.value,
disabled = _ref.disabled,
customValidity = _ref.customValidity;

@@ -85,4 +81,4 @@

var value = getNextValue(component, nextProps);
var disabled = nextProps.disabled;
var customValidity = nextProps.customValidity;
var disabled = nextProps.disabled,
customValidity = nextProps.customValidity;

@@ -101,2 +97,3 @@ var validity = getNextValidity(component, {

}
});
});
//# sourceMappingURL=syncPropsToState.js.map

@@ -1,7 +0,6 @@

/*! 2016 Baidu Inc. All Rights Reserved */
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports', './validator/Validity', "./babelHelpers"], factory);
define(['exports', './validator/Validity', './babelHelpers'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require('./validator/Validity'), require("./babelHelpers"));
factory(exports, require('./validator/Validity'), require('./babelHelpers'));
} else {

@@ -17,5 +16,3 @@ var mod = {

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.Validator = undefined;

@@ -44,4 +41,4 @@

return rules.reduce(function (activeCheckers, checker) {
var name = checker.name;
var check = checker.check;
var name = checker.name,
check = checker.check;

@@ -108,2 +105,3 @@

});
});
});
//# sourceMappingURL=Validator.js.map

@@ -1,7 +0,6 @@

/*! 2016 Baidu Inc. All Rights Reserved */
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["exports", "../babelHelpers"], factory);
define(['exports', '../babelHelpers'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require("../babelHelpers"));
factory(exports, require('../babelHelpers'));
} else {

@@ -15,7 +14,5 @@ var mod = {

})(this, function (exports, babelHelpers) {
"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;

@@ -56,3 +53,4 @@ var Validity = function () {

exports["default"] = Validity;
});
exports['default'] = Validity;
});
//# sourceMappingURL=Validity.js.map

@@ -1,7 +0,6 @@

/*! 2016 Baidu Inc. All Rights Reserved */
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["exports", "../babelHelpers"], factory);
define(['exports', '../babelHelpers'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require("../babelHelpers"));
factory(exports, require('../babelHelpers'));
} else {

@@ -15,11 +14,9 @@ var mod = {

})(this, function (exports, babelHelpers) {
"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
var ValidityState = function ValidityState(_ref) {
var isValid = _ref.isValid;
var message = _ref.message;
var isValid = _ref.isValid,
message = _ref.message;
babelHelpers.classCallCheck(this, ValidityState);

@@ -32,3 +29,4 @@

exports["default"] = ValidityState;
});
exports['default'] = ValidityState;
});
//# sourceMappingURL=ValidityState.js.map

@@ -1,7 +0,6 @@

/*! 2016 Baidu Inc. All Rights Reserved */
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports', 'react', './classname/cxBuilder', './validator/Validity', './util/shallowEqual', "./babelHelpers"], factory);
define(['exports', 'react', './classname/cxBuilder', './validator/Validity', './util/shallowEqual', './babelHelpers'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require('react'), require('./classname/cxBuilder'), require('./validator/Validity'), require('./util/shallowEqual'), require("./babelHelpers"));
factory(exports, require('react'), require('./classname/cxBuilder'), require('./validator/Validity'), require('./util/shallowEqual'), require('./babelHelpers'));
} else {

@@ -17,5 +16,3 @@ var mod = {

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;

@@ -76,2 +73,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react);

};
});
});
//# sourceMappingURL=Validity.js.map
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