@particle-network/connectkit
Version:
82 lines (80 loc) • 2.95 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/assets/icons/DownArrowIcon.tsx
var DownArrowIcon_exports = {};
__export(DownArrowIcon_exports, {
default: () => DownArrowIcon_default
});
module.exports = __toCommonJS(DownArrowIcon_exports);
var import_framer_motion = require("framer-motion");
var import_jsx_runtime = require("react/jsx-runtime");
var DownArrowIcon = ({ spin = false, ...props }) => {
const { color = "var(--pcm-body-color-secondary)" } = props;
const variants = {
up: { rotate: 180 },
down: { rotate: 0 }
};
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
import_framer_motion.motion.svg,
{
width: "8",
height: "8",
viewBox: "0 0 8 5",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
animate: spin ? "up" : "down",
variants,
...props,
children: [
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { clipPath: "url(#clip0_0_12077)", children: [
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"rect",
{
x: "0.353892",
y: "0.708008",
width: "0.500478",
height: "5.00478",
transform: "rotate(-45 0.353892 0.708008)",
fill: color,
stroke: color,
strokeWidth: "0.500478"
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"rect",
{
x: "7.09778",
y: "0.354136",
width: "0.500478",
height: "5.00478",
transform: "rotate(45 7.09778 0.354136)",
fill: color,
stroke: color,
strokeWidth: "0.500478"
}
)
] }),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("clipPath", { id: "clip0_0_12077", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { width: "7.80557", height: "4.60059", fill: "white", transform: "translate(0 0.000244141)" }) }) })
]
}
);
};
var DownArrowIcon_default = DownArrowIcon;
//# sourceMappingURL=DownArrowIcon.cjs.map