@braineet/ui
Version:
Braineet design system
71 lines • 2.51 kB
JavaScript
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
import * as React from 'react';
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
function Loader(props) {
return /*#__PURE__*/_jsxs("svg", _extends({
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
fill: "currentColor"
}, props, {
children: [/*#__PURE__*/_jsxs("path", {
d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,20a9,9,0,1,1,9-9A9,9,0,0,1,12,21Z",
transform: "translate(12, 12) scale(0)",
children: [/*#__PURE__*/_jsx("animateTransform", {
id: "a",
begin: "0;b.begin+0.6s",
attributeName: "transform",
calcMode: "spline",
type: "translate",
dur: "1.2s",
values: "12 12;0 0",
keySplines: ".52,.6,.25,.99"
}), /*#__PURE__*/_jsx("animateTransform", {
begin: "0;b.begin+0.6s",
attributeName: "transform",
calcMode: "spline",
additive: "sum",
type: "scale",
dur: "1.2s",
values: "0;1",
keySplines: ".52,.6,.25,.99"
}), /*#__PURE__*/_jsx("animate", {
begin: "0;b.begin+0.6s",
attributeName: "opacity",
calcMode: "spline",
dur: "1.2s",
values: "1;0",
keySplines: ".52,.6,.25,.99"
})]
}), /*#__PURE__*/_jsxs("path", {
d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,20a9,9,0,1,1,9-9A9,9,0,0,1,12,21Z",
transform: "translate(12, 12) scale(0)",
children: [/*#__PURE__*/_jsx("animateTransform", {
id: "b",
begin: "a.begin+0.6s",
attributeName: "transform",
calcMode: "spline",
type: "translate",
dur: "1.2s",
values: "12 12;0 0",
keySplines: ".52,.6,.25,.99"
}), /*#__PURE__*/_jsx("animateTransform", {
begin: "a.begin+0.6s",
attributeName: "transform",
calcMode: "spline",
additive: "sum",
type: "scale",
dur: "1.2s",
values: "0;1",
keySplines: ".52,.6,.25,.99"
}), /*#__PURE__*/_jsx("animate", {
begin: "a.begin+0.6s",
attributeName: "opacity",
calcMode: "spline",
dur: "1.2s",
values: "1;0",
keySplines: ".52,.6,.25,.99"
})]
})]
}));
}
export default Loader;