UNPKG

@yamada-ui/loading

Version:

Yamada UI loading components

98 lines (97 loc) 3.37 kB
"use client" "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/puff.tsx var puff_exports = {}; __export(puff_exports, { Puff: () => Puff }); module.exports = __toCommonJS(puff_exports); var import_core = require("@yamada-ui/core"); var import_icon = require("@yamada-ui/icon"); var import_jsx_runtime = require("react/jsx-runtime"); var Puff = (0, import_core.forwardRef)( ({ color, duration = "1.8s", ...rest }, ref) => { return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icon.Icon, { ref, stroke: color, viewBox: "0 0 44 44", ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { fill: "none", fillRule: "evenodd", strokeWidth: "2", children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("circle", { cx: "22", cy: "22", r: "1", children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "r", begin: "0s", calcMode: "spline", dur: duration, keySplines: "0.165, 0.84, 0.44, 1", keyTimes: "0; 1", repeatCount: "indefinite", values: "1; 20" } ), /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "stroke-opacity", begin: "0s", calcMode: "spline", dur: duration, keySplines: "0.3, 0.61, 0.355, 1", keyTimes: "0; 1", repeatCount: "indefinite", values: "1; 0" } ) ] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("circle", { cx: "22", cy: "22", r: "1", children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "r", begin: "-0.9s", calcMode: "spline", dur: duration, keySplines: "0.165, 0.84, 0.44, 1", keyTimes: "0; 1", repeatCount: "indefinite", values: "1; 20" } ), /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "stroke-opacity", begin: "-0.9s", calcMode: "spline", dur: duration, keySplines: "0.3, 0.61, 0.355, 1", keyTimes: "0; 1", repeatCount: "indefinite", values: "1; 0" } ) ] }) ] }) }); } ); Puff.displayName = "Puff"; Puff.__ui__ = "Puff"; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { Puff }); //# sourceMappingURL=puff.js.map