prg-editor
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -11,2 +11,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -29,6 +33,2 @@ | ||
var styles = { | ||
loaderContainer: { | ||
minHeight: '20vh', | ||
margin: '' | ||
}, | ||
loading: { | ||
@@ -59,9 +59,20 @@ position: 'relative' | ||
function Spinner() { | ||
function Spinner(_ref) { | ||
var minHeight = _ref.minHeight; | ||
return _react2.default.createElement( | ||
'div', | ||
{ className: 'columns is-vcentered is-centered', style: styles.loaderContainer }, | ||
{ | ||
className: 'columns is-vcentered is-centered', | ||
style: { | ||
minHeight: minHeight, | ||
margin: '' | ||
} | ||
}, | ||
_react2.default.createElement( | ||
'div', | ||
{ className: 'column loading has-text-centered', style: styles.loading }, | ||
{ | ||
className: 'column loading has-text-centered', | ||
style: styles.loading | ||
}, | ||
_react2.default.createElement('div', { className: 'loading-bar', style: Object.assign(styles.n1, styles.loadingBar) }), | ||
@@ -75,2 +86,10 @@ _react2.default.createElement('div', { className: 'loading-bar', style: Object.assign(styles.n2, styles.loadingBar) }), | ||
Spinner.propTypes = { | ||
minHeight: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string]) | ||
}; | ||
Spinner.defaultProps = { | ||
minHeight: '20vh' | ||
}; | ||
exports.default = Spinner; |
{ | ||
"name": "prg-editor", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "Data Table and Editor for use with Prg-Form", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113920
2500