@yamada-ui/loading
Version:
Yamada UI loading components
62 lines (61 loc) • 2.37 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/oval.tsx
var oval_exports = {};
__export(oval_exports, {
Oval: () => Oval
});
module.exports = __toCommonJS(oval_exports);
var import_core = require("@yamada-ui/core");
var import_icon = require("@yamada-ui/icon");
var import_jsx_runtime = require("react/jsx-runtime");
var Oval = (0, import_core.forwardRef)(
({ color, duration = "1s", secondaryColor, ...rest }, ref) => {
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icon.Icon, { ref, stroke: color, viewBox: "0 0 38 38", ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { strokeWidth: "2", transform: "translate(1 1)", children: [
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"circle",
{
...secondaryColor ? { stroke: secondaryColor } : { strokeOpacity: ".5" },
cx: "18",
cy: "18",
r: "18"
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M36 18c0-9.94-8.06-18-18-18", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"animateTransform",
{
type: "rotate",
attributeName: "transform",
dur: duration,
from: "0 18 18",
repeatCount: "indefinite",
to: "360 18 18"
}
) })
] }) }) });
}
);
Oval.displayName = "Oval";
Oval.__ui__ = "Oval";
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
Oval
});
//# sourceMappingURL=oval.js.map