UNPKG

@cerberus-design/react

Version:

The Cerberus Design React component library.

107 lines (105 loc) 3.5 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/components/spinner/index.ts var spinner_exports = {}; __export(spinner_exports, { Spinner: () => Spinner }); module.exports = __toCommonJS(spinner_exports); // src/components/spinner/spinner.tsx var import_jsx_runtime = require("react/jsx-runtime"); function Spinner(props) { return /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "svg", { "aria-busy": "true", "data-scope": "spinner", "data-part": "root", role: "status", xmlns: "http://www.w3.org/2000/svg", height: props.size, width: props.size, viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)( "g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)( "path", { strokeDasharray: 16, strokeDashoffset: 16, d: "M12 3c4.97 0 9 4.03 9 9", children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { fill: "freeze", attributeName: "stroke-dashoffset", dur: "0.15s", values: "16;0" } ), /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animateTransform", { attributeName: "transform", dur: "0.75s", repeatCount: "indefinite", type: "rotate", values: "0 12 12;360 12 12" } ) ] } ), /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "path", { strokeDasharray: 64, strokeDashoffset: 64, strokeOpacity: 0.3, d: "M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9Z", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { fill: "freeze", attributeName: "stroke-dashoffset", dur: "0.6s", values: "64;0" } ) } ) ] } ) } ); } // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { Spinner }); //# sourceMappingURL=index.cjs.map