@yamada-ui/loading
Version:
Yamada UI loading components
190 lines (189 loc) • 6.08 kB
JavaScript
"use client"
;
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/circles.tsx
var circles_exports = {};
__export(circles_exports, {
Circles: () => Circles
});
module.exports = __toCommonJS(circles_exports);
var import_core = require("@yamada-ui/core");
var import_icon = require("@yamada-ui/icon");
var import_jsx_runtime = require("react/jsx-runtime");
var Circles = (0, import_core.forwardRef)(
({ color, duration = "3s", ...rest }, ref) => {
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icon.Icon, { ref, stroke: color, viewBox: "0 0 58 58", ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { stroke: color, strokeWidth: "1.5", transform: "translate(2 1)", children: [
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
import_core.ui.circle,
{
cx: "42.601",
cy: "11.462",
fill: color,
fillOpacity: "1",
r: "5",
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"animate",
{
attributeName: "fill-opacity",
begin: "0s",
calcMode: "linear",
dur: duration,
repeatCount: "indefinite",
values: "1;0;0;0;0;0;0;0"
}
)
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
import_core.ui.circle,
{
cx: "49.063",
cy: "27.063",
fill: color,
fillOpacity: "0",
r: "5",
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"animate",
{
attributeName: "fill-opacity",
begin: "0s",
calcMode: "linear",
dur: duration,
repeatCount: "indefinite",
values: "0;1;0;0;0;0;0;0"
}
)
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
import_core.ui.circle,
{
cx: "42.601",
cy: "42.663",
fill: color,
fillOpacity: "0",
r: "5",
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"animate",
{
attributeName: "fill-opacity",
begin: "0s",
calcMode: "linear",
dur: duration,
repeatCount: "indefinite",
values: "0;0;1;0;0;0;0;0"
}
)
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.ui.circle, { cx: "27", cy: "49.125", fill: color, fillOpacity: "0", r: "5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"animate",
{
attributeName: "fill-opacity",
begin: "0s",
calcMode: "linear",
dur: duration,
repeatCount: "indefinite",
values: "0;0;0;1;0;0;0;0"
}
) }),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
import_core.ui.circle,
{
cx: "11.399",
cy: "42.663",
fill: color,
fillOpacity: "0",
r: "5",
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"animate",
{
attributeName: "fill-opacity",
begin: "0s",
calcMode: "linear",
dur: duration,
repeatCount: "indefinite",
values: "0;0;0;0;1;0;0;0"
}
)
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
import_core.ui.circle,
{
cx: "4.938",
cy: "27.063",
fill: color,
fillOpacity: "0",
r: "5",
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"animate",
{
attributeName: "fill-opacity",
begin: "0s",
calcMode: "linear",
dur: duration,
repeatCount: "indefinite",
values: "0;0;0;0;0;1;0;0"
}
)
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
import_core.ui.circle,
{
cx: "11.399",
cy: "11.462",
fill: color,
fillOpacity: "0",
r: "5",
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"animate",
{
attributeName: "fill-opacity",
begin: "0s",
calcMode: "linear",
dur: duration,
repeatCount: "indefinite",
values: "0;0;0;0;0;0;1;0"
}
)
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.ui.circle, { cx: "27", cy: "5", fill: color, fillOpacity: "0", r: "5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"animate",
{
attributeName: "fill-opacity",
begin: "0s",
calcMode: "linear",
dur: duration,
repeatCount: "indefinite",
values: "0;0;0;0;0;0;0;1"
}
) })
] }) }) });
}
);
Circles.displayName = "Circles";
Circles.__ui__ = "Circles";
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
Circles
});
//# sourceMappingURL=circles.js.map