@sk-web-gui/spinner
Advanced tools
Comparing version 0.1.5 to 0.1.6
"use strict"; | ||
exports.__esModule = true; | ||
var _spinner = require("./spinner"); | ||
Object.keys(_spinner).forEach(function (key) { | ||
@@ -8,0 +6,0 @@ if (key === "default" || key === "__esModule") return; |
@@ -5,27 +5,16 @@ "use strict"; | ||
exports.Spinner = void 0; | ||
var _utils = require("@sk-web-gui/utils"); | ||
var React = _interopRequireWildcard(require("react")); | ||
var _styles = _interopRequireDefault(require("./styles")); | ||
var _excluded = ["size", "className"]; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
var Spinner = /*#__PURE__*/React.forwardRef(function (props, ref) { | ||
var _props$size = props.size, | ||
size = _props$size === void 0 ? 'sm' : _props$size, | ||
className = props.className, | ||
rest = _objectWithoutPropertiesLoose(props, _excluded); | ||
size = _props$size === void 0 ? 'sm' : _props$size, | ||
className = props.className, | ||
rest = _objectWithoutPropertiesLoose(props, _excluded); | ||
var classes = (0, _styles["default"])({ | ||
@@ -63,3 +52,2 @@ size: size | ||
exports.Spinner = Spinner; | ||
if (_utils.__DEV__) { | ||
@@ -66,0 +54,0 @@ Spinner.displayName = 'Spinner'; |
@@ -5,7 +5,4 @@ "use strict"; | ||
exports["default"] = void 0; | ||
var _theme = require("@sk-web-gui/theme"); | ||
var _utils = require("@sk-web-gui/utils"); | ||
var sizes = { | ||
@@ -18,3 +15,2 @@ xs: 'w-3 h-3', | ||
}; | ||
var _default = (0, _theme.createMemoClass)(function (props) { | ||
@@ -24,4 +20,3 @@ var className = (0, _utils.cx)('animate-spin', sizes[props.size]); | ||
}); | ||
exports["default"] = _default; | ||
//# sourceMappingURL=styles.js.map |
var _excluded = ["size", "className"]; | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
import { cx, __DEV__ } from '@sk-web-gui/utils'; | ||
@@ -12,7 +9,6 @@ import * as React from 'react'; | ||
var { | ||
size = 'sm', | ||
className | ||
} = props, | ||
rest = _objectWithoutPropertiesLoose(props, _excluded); | ||
size = 'sm', | ||
className | ||
} = props, | ||
rest = _objectWithoutPropertiesLoose(props, _excluded); | ||
var classes = useSpinClass({ | ||
@@ -49,3 +45,2 @@ size | ||
}); | ||
if (__DEV__) { | ||
@@ -52,0 +47,0 @@ Spinner.displayName = 'Spinner'; |
{ | ||
"name": "@sk-web-gui/spinner", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"sideEffects": false, | ||
@@ -40,3 +40,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@sk-web-gui/theme": "0.1.5", | ||
"@sk-web-gui/theme": "0.1.6", | ||
"@sk-web-gui/utils": "0.1.4" | ||
@@ -47,3 +47,3 @@ }, | ||
}, | ||
"gitHead": "7f394c9a25f1bd8bcd43d4b259ad025c146b1527" | ||
"gitHead": "a14791d11b9d1fa052b5135525d06707fc3d9e7d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
16452
+ Added@sk-web-gui/theme@0.1.6(transitive)
- Removed@sk-web-gui/theme@0.1.5(transitive)
Updated@sk-web-gui/theme@0.1.6