UNPKG

@yamada-ui/loading

Version:

Yamada UI loading components

141 lines (140 loc) • 5.03 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/grid.tsx var grid_exports = {}; __export(grid_exports, { Grid: () => Grid }); module.exports = __toCommonJS(grid_exports); var import_core = require("@yamada-ui/core"); var import_icon = require("@yamada-ui/icon"); var import_jsx_runtime = require("react/jsx-runtime"); var Grid = (0, import_core.forwardRef)( ({ color, duration = "1s", ...rest }, ref) => { return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_icon.Icon, { ref, fill: color, viewBox: "0 0 105 105", ...rest, children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12.5", cy: "12.5", r: "12.5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "fill-opacity", begin: "0s", calcMode: "linear", dur: duration, repeatCount: "indefinite", values: "1;.2;1" } ) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12.5", cy: "52.5", fillOpacity: ".5", r: "12.5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "fill-opacity", begin: "100ms", calcMode: "linear", dur: duration, repeatCount: "indefinite", values: "1;.2;1" } ) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "52.5", cy: "12.5", r: "12.5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "fill-opacity", begin: "300ms", calcMode: "linear", dur: duration, repeatCount: "indefinite", values: "1;.2;1" } ) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "52.5", cy: "52.5", r: "12.5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "fill-opacity", begin: "600ms", calcMode: "linear", dur: duration, repeatCount: "indefinite", values: "1;.2;1" } ) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "92.5", cy: "12.5", r: "12.5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "fill-opacity", begin: "800ms", calcMode: "linear", dur: duration, repeatCount: "indefinite", values: "1;.2;1" } ) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "92.5", cy: "52.5", r: "12.5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "fill-opacity", begin: "400ms", calcMode: "linear", dur: duration, repeatCount: "indefinite", values: "1;.2;1" } ) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12.5", cy: "92.5", r: "12.5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "fill-opacity", begin: "700ms", calcMode: "linear", dur: duration, repeatCount: "indefinite", values: "1;.2;1" } ) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "52.5", cy: "92.5", r: "12.5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "fill-opacity", begin: "500ms", calcMode: "linear", dur: duration, repeatCount: "indefinite", values: "1;.2;1" } ) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "92.5", cy: "92.5", r: "12.5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "fill-opacity", begin: "200ms", calcMode: "linear", dur: duration, repeatCount: "indefinite", values: "1;.2;1" } ) }) ] }); } ); Grid.displayName = "Grid"; Grid.__ui__ = "Grid"; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { Grid }); //# sourceMappingURL=grid.js.map