UNPKG

@yamada-ui/loading

Version:

Yamada UI loading components

126 lines (125 loc) 3.95 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/dots.tsx var dots_exports = {}; __export(dots_exports, { Dots: () => Dots }); module.exports = __toCommonJS(dots_exports); var import_core = require("@yamada-ui/core"); var import_icon = require("@yamada-ui/icon"); var import_jsx_runtime = require("react/jsx-runtime"); var Dots = (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 120 30", ...rest, children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("circle", { cx: "15", cy: "15", r: "15", children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "r", begin: "0s", calcMode: "linear", dur: duration, from: "15", repeatCount: "indefinite", to: "15", values: "15;9;15" } ), /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "fill-opacity", begin: "0s", calcMode: "linear", dur: duration, from: "1", repeatCount: "indefinite", to: "1", values: "1;.5;1" } ) ] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("circle", { cx: "60", cy: "15", fillOpacity: "0.3", r: "9", children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "r", begin: "0s", calcMode: "linear", dur: duration, from: "9", repeatCount: "indefinite", to: "9", values: "9;15;9" } ), /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "fill-opacity", begin: "0s", calcMode: "linear", dur: duration, from: "0.5", repeatCount: "indefinite", to: "0.5", values: ".5;1;.5" } ) ] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("circle", { cx: "105", cy: "15", r: "15", children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "r", begin: "0s", calcMode: "linear", dur: duration, from: "15", repeatCount: "indefinite", to: "15", values: "15;9;15" } ), /* @__PURE__ */ (0, import_jsx_runtime.jsx)( "animate", { attributeName: "fill-opacity", begin: "0s", calcMode: "linear", dur: duration, from: "1", repeatCount: "indefinite", to: "1", values: "1;.5;1" } ) ] }) ] }); } ); Dots.displayName = "Dots"; Dots.__ui__ = "Dots"; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { Dots }); //# sourceMappingURL=dots.js.map