UNPKG

@yamada-ui/loading

Version:

Yamada UI loading components

103 lines (101 loc) 2.68 kB
"use client" // src/dots.tsx import { forwardRef } from "@yamada-ui/core"; import { Icon } from "@yamada-ui/icon"; import { jsx, jsxs } from "react/jsx-runtime"; var Dots = forwardRef( ({ color, duration = "1s", ...rest }, ref) => { return /* @__PURE__ */ jsxs(Icon, { ref, fill: color, viewBox: "0 0 120 30", ...rest, children: [ /* @__PURE__ */ jsxs("circle", { cx: "15", cy: "15", r: "15", children: [ /* @__PURE__ */ jsx( "animate", { attributeName: "r", begin: "0s", calcMode: "linear", dur: duration, from: "15", repeatCount: "indefinite", to: "15", values: "15;9;15" } ), /* @__PURE__ */ jsx( "animate", { attributeName: "fill-opacity", begin: "0s", calcMode: "linear", dur: duration, from: "1", repeatCount: "indefinite", to: "1", values: "1;.5;1" } ) ] }), /* @__PURE__ */ jsxs("circle", { cx: "60", cy: "15", fillOpacity: "0.3", r: "9", children: [ /* @__PURE__ */ jsx( "animate", { attributeName: "r", begin: "0s", calcMode: "linear", dur: duration, from: "9", repeatCount: "indefinite", to: "9", values: "9;15;9" } ), /* @__PURE__ */ jsx( "animate", { attributeName: "fill-opacity", begin: "0s", calcMode: "linear", dur: duration, from: "0.5", repeatCount: "indefinite", to: "0.5", values: ".5;1;.5" } ) ] }), /* @__PURE__ */ jsxs("circle", { cx: "105", cy: "15", r: "15", children: [ /* @__PURE__ */ jsx( "animate", { attributeName: "r", begin: "0s", calcMode: "linear", dur: duration, from: "15", repeatCount: "indefinite", to: "15", values: "15;9;15" } ), /* @__PURE__ */ 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"; export { Dots }; //# sourceMappingURL=chunk-ZKBS5FOC.mjs.map