UNPKG

@braineet/ui

Version:

Braineet design system

72 lines 2.61 kB
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); } import * as React from 'react'; import { jsx as _jsx } from "react/jsx-runtime"; import { 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;