Comparing version 0.0.0-beta.0 to 0.0.0-beta.1
export { default as Loading } from './loading'; | ||
export { default as Tabs } from './tabs'; | ||
export { default as Error } from './error'; | ||
export { default as NotFound } from './notfound'; | ||
export { default as Collapse } from './collapse'; |
export { default as Loading } from './loading'; | ||
export { default as Tabs } from './tabs'; | ||
export { default as Error } from './error'; | ||
export { default as NotFound } from './notfound'; | ||
export { default as Collapse } from './collapse'; |
/// <reference types="react" /> | ||
export default function (): JSX.Element; | ||
interface LoadingProps { | ||
size?: number; | ||
style?: object; | ||
className?: string; | ||
} | ||
export default function (props: LoadingProps): JSX.Element; | ||
export {}; |
@@ -0,7 +1,26 @@ | ||
var __rest = (this && this.__rest) || function (s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
}; | ||
import React from 'react'; | ||
export default function () { | ||
return (React.createElement("div", { className: 'swc-loading' }, | ||
React.createElement("div", { className: 'swc-loading-container' }, | ||
import classNames from 'classnames'; | ||
export default function (props) { | ||
const { size, style, className } = props, other = __rest(props, ["size", "style", "className"]); | ||
const css = Object.assign({}, style); | ||
if (size) { | ||
css['width'] = size; | ||
css['height'] = size; | ||
} | ||
const cls = classNames('swc-loading', className); | ||
return (React.createElement("div", Object.assign({ className: cls }, other), | ||
React.createElement("div", { className: 'swc-loading-container', style: css }, | ||
React.createElement("svg", { className: 'swc-circular', viewBox: '25 25 50 50' }, | ||
React.createElement("circle", { className: 'path', cx: '50', cy: '50', r: '20', fill: 'none', "stroke-width": '3', "stroke-miterlimit": '10' }))))); | ||
React.createElement("circle", { className: 'path', cx: '50', cy: '50', r: '20', fill: 'none', strokeWidth: '3', strokeMiterlimit: '10' }))))); | ||
} |
@@ -1,2 +0,9 @@ | ||
/// <reference types="react" /> | ||
export default function (): JSX.Element; | ||
import React from 'react'; | ||
interface TabsProps { | ||
className?: string; | ||
onChange?: Function; | ||
} | ||
declare class Tabs extends React.PureComponent<TabsProps> { | ||
render(): JSX.Element; | ||
} | ||
export default Tabs; |
import React from 'react'; | ||
export default function () { | ||
return (React.createElement("div", { className: 'swc-tas' })); | ||
import classNames from 'classnames'; | ||
class Tabs extends React.PureComponent { | ||
render() { | ||
const { className } = this.props; | ||
const cls = classNames('swc-tabs', className); | ||
return (React.createElement("div", { className: cls })); | ||
} | ||
} | ||
export default Tabs; |
@@ -18,2 +18,20 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "Error", { | ||
enumerable: true, | ||
get: function get() { | ||
return _error["default"]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "NotFound", { | ||
enumerable: true, | ||
get: function get() { | ||
return _notfound["default"]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "Collapse", { | ||
enumerable: true, | ||
get: function get() { | ||
return _collapse["default"]; | ||
} | ||
}); | ||
@@ -24,2 +42,8 @@ var _loading = _interopRequireDefault(require("./loading")); | ||
var _error = _interopRequireDefault(require("./error")); | ||
var _notfound = _interopRequireDefault(require("./notfound")); | ||
var _collapse = _interopRequireDefault(require("./collapse")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } |
@@ -10,9 +10,38 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _default() { | ||
return _react["default"].createElement("div", { | ||
className: 'swc-loading' | ||
}, _react["default"].createElement("div", { | ||
className: 'swc-loading-container' | ||
var __rest = void 0 && (void 0).__rest || function (s, e) { | ||
var t = {}; | ||
for (var p in s) { | ||
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; | ||
} | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
}; | ||
function _default(props) { | ||
var size = props.size, | ||
style = props.style, | ||
className = props.className, | ||
other = __rest(props, ["size", "style", "className"]); | ||
var css = Object.assign({}, style); | ||
if (size) { | ||
css['width'] = size; | ||
css['height'] = size; | ||
} | ||
var cls = (0, _classnames["default"])('swc-loading', className); | ||
return _react["default"].createElement("div", Object.assign({ | ||
className: cls | ||
}, other), _react["default"].createElement("div", { | ||
className: 'swc-loading-container', | ||
style: css | ||
}, _react["default"].createElement("svg", { | ||
@@ -27,5 +56,5 @@ className: 'swc-circular', | ||
fill: 'none', | ||
"stroke-width": '3', | ||
"stroke-miterlimit": '10' | ||
strokeWidth: '3', | ||
strokeMiterlimit: '10' | ||
})))); | ||
} |
@@ -6,12 +6,54 @@ "use strict"; | ||
}); | ||
exports["default"] = _default; | ||
exports["default"] = void 0; | ||
var _react = _interopRequireDefault(require("react")); | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _default() { | ||
return _react["default"].createElement("div", { | ||
className: 'swc-tas' | ||
}); | ||
} | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
var Tabs = | ||
/*#__PURE__*/ | ||
function (_React$PureComponent) { | ||
_inherits(Tabs, _React$PureComponent); | ||
function Tabs() { | ||
_classCallCheck(this, Tabs); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(Tabs).apply(this, arguments)); | ||
} | ||
_createClass(Tabs, [{ | ||
key: "render", | ||
value: function render() { | ||
var className = this.props.className; | ||
var cls = (0, _classnames["default"])('swc-tabs', className); | ||
return _react["default"].createElement("div", { | ||
className: cls | ||
}); | ||
} | ||
}]); | ||
return Tabs; | ||
}(_react["default"].PureComponent); | ||
var _default = Tabs; | ||
exports["default"] = _default; |
{ | ||
"name": "frc-ui", | ||
"version": "0.0.0-beta.0", | ||
"version": "0.0.0-beta.1", | ||
"description": "React Web UI", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
34356
86
794
1