@sk-web-gui/spinner
Advanced tools
Comparing version 0.1.13 to 0.1.14
@@ -8,2 +8,3 @@ "use strict"; | ||
var _styles = _interopRequireDefault(require("./styles")); | ||
var _jsxRuntime = require("react/jsx-runtime"); | ||
var _excluded = ["size", "className"]; | ||
@@ -15,3 +16,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
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 Spinner = exports.Spinner = /*#__PURE__*/React.forwardRef(function (props, ref) { | ||
var _props$size = props.size, | ||
@@ -24,3 +25,3 @@ size = _props$size === void 0 ? 'sm' : _props$size, | ||
}); | ||
return /*#__PURE__*/React.createElement("svg", _extends({ | ||
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", _extends({ | ||
ref: ref, | ||
@@ -32,29 +33,29 @@ xmlns: "http://www.w3.org/2000/svg", | ||
viewBox: "0 0 66 66" | ||
}, rest), /*#__PURE__*/React.createElement("circle", { | ||
cx: "33", | ||
cy: "33", | ||
fill: "none", | ||
r: "28", | ||
stroke: "currentColor", | ||
strokeWidth: "10", | ||
className: "opacity-30" | ||
}), /*#__PURE__*/React.createElement("circle", { | ||
cx: "33", | ||
cy: "33", | ||
fill: "none", | ||
r: "28", | ||
stroke: "currentColor", | ||
strokeDasharray: "40, 134", | ||
strokeDashoffset: "325", | ||
strokeLinecap: "round", | ||
strokeWidth: "10", | ||
className: "opacity-70" | ||
}, rest, { | ||
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("circle", { | ||
cx: "33", | ||
cy: "33", | ||
fill: "none", | ||
r: "28", | ||
stroke: "currentColor", | ||
strokeWidth: "10", | ||
className: "opacity-30" | ||
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", { | ||
cx: "33", | ||
cy: "33", | ||
fill: "none", | ||
r: "28", | ||
stroke: "currentColor", | ||
strokeDasharray: "40, 134", | ||
strokeDashoffset: "325", | ||
strokeLinecap: "round", | ||
strokeWidth: "10", | ||
className: "opacity-70" | ||
})] | ||
})); | ||
}); | ||
exports.Spinner = Spinner; | ||
if (_utils.__DEV__) { | ||
Spinner.displayName = 'Spinner'; | ||
} | ||
var _default = Spinner; | ||
exports["default"] = _default; | ||
var _default = exports["default"] = Spinner; | ||
//# sourceMappingURL=spinner.js.map |
@@ -14,7 +14,6 @@ "use strict"; | ||
}; | ||
var _default = (0, _theme.createMemoClass)(function (props) { | ||
var _default = exports["default"] = (0, _theme.createMemoClass)(function (props) { | ||
var className = (0, _utils.cx)('animate-spin', sizes[props.size]); | ||
return className; | ||
}); | ||
exports["default"] = _default; | ||
//# sourceMappingURL=styles.js.map |
@@ -7,2 +7,4 @@ var _excluded = ["size", "className"]; | ||
import useSpinClass from './styles'; | ||
import { jsx as _jsx } from "react/jsx-runtime"; | ||
import { jsxs as _jsxs } from "react/jsx-runtime"; | ||
export var Spinner = /*#__PURE__*/React.forwardRef((props, ref) => { | ||
@@ -17,3 +19,3 @@ var { | ||
}); | ||
return /*#__PURE__*/React.createElement("svg", _extends({ | ||
return /*#__PURE__*/_jsxs("svg", _extends({ | ||
ref: ref, | ||
@@ -25,21 +27,23 @@ xmlns: "http://www.w3.org/2000/svg", | ||
viewBox: "0 0 66 66" | ||
}, rest), /*#__PURE__*/React.createElement("circle", { | ||
cx: "33", | ||
cy: "33", | ||
fill: "none", | ||
r: "28", | ||
stroke: "currentColor", | ||
strokeWidth: "10", | ||
className: "opacity-30" | ||
}), /*#__PURE__*/React.createElement("circle", { | ||
cx: "33", | ||
cy: "33", | ||
fill: "none", | ||
r: "28", | ||
stroke: "currentColor", | ||
strokeDasharray: "40, 134", | ||
strokeDashoffset: "325", | ||
strokeLinecap: "round", | ||
strokeWidth: "10", | ||
className: "opacity-70" | ||
}, rest, { | ||
children: [/*#__PURE__*/_jsx("circle", { | ||
cx: "33", | ||
cy: "33", | ||
fill: "none", | ||
r: "28", | ||
stroke: "currentColor", | ||
strokeWidth: "10", | ||
className: "opacity-30" | ||
}), /*#__PURE__*/_jsx("circle", { | ||
cx: "33", | ||
cy: "33", | ||
fill: "none", | ||
r: "28", | ||
stroke: "currentColor", | ||
strokeDasharray: "40, 134", | ||
strokeDashoffset: "325", | ||
strokeLinecap: "round", | ||
strokeWidth: "10", | ||
className: "opacity-70" | ||
})] | ||
})); | ||
@@ -46,0 +50,0 @@ }); |
{ | ||
"name": "@sk-web-gui/spinner", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"sideEffects": false, | ||
@@ -40,4 +40,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@sk-web-gui/theme": "0.1.13", | ||
"@sk-web-gui/utils": "0.1.7" | ||
"@sk-web-gui/theme": "0.1.14", | ||
"@sk-web-gui/utils": "0.1.8" | ||
}, | ||
@@ -47,3 +47,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "1960792b9f4468c6d17c5cb1758ed2fbe29c556c" | ||
"gitHead": "c34ffa09211bc344fff14ae3598af36758bbdab8" | ||
} |
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
20616
163
+ Added@sk-web-gui/theme@0.1.14(transitive)
+ Added@sk-web-gui/utils@0.1.8(transitive)
- Removed@sk-web-gui/theme@0.1.13(transitive)
- Removed@sk-web-gui/utils@0.1.7(transitive)
Updated@sk-web-gui/theme@0.1.14
Updated@sk-web-gui/utils@0.1.8