UNPKG

@solar-icons/react

Version:
59 lines (58 loc) 1.77 kB
var I = Object.defineProperty, P = Object.defineProperties; var S = Object.getOwnPropertyDescriptors; var n = Object.getOwnPropertySymbols; var m = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable; var d = (r, o, e) => o in r ? I(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, l = (r, o) => { for (var e in o || (o = {})) m.call(o, e) && d(r, e, o[e]); if (n) for (var e of n(o)) f.call(o, e) && d(r, e, o[e]); return r; }, h = (r, o) => P(r, S(o)); var x = (r, o) => { var e = {}; for (var t in r) m.call(r, t) && o.indexOf(t) < 0 && (e[t] = r[t]); if (r != null && n) for (var t of n(r)) o.indexOf(t) < 0 && f.call(r, t) && (e[t] = r[t]); return e; }; import { jsxs as y, jsx as L } from "react/jsx-runtime"; import { forwardRef as M } from "react"; import { useSolar as N } from "./context.mjs"; const R = M((r, o) => { const a = r, { alt: e, color: t, size: s, weight: i, mirrored: g, children: p, weights: w } = a, v = x(a, ["alt", "color", "size", "weight", "mirrored", "children", "weights"]), { value: { color: u = "currentColor", size: c, weight: B = "Linear", mirrored: j = !1 }, svgProps: C } = N(); return /* @__PURE__ */ y( "svg", h(l(l({ ref: o, xmlns: "http://www.w3.org/2000/svg", width: s != null ? s : c, height: s != null ? s : c, color: t != null ? t : u, fill: "none", viewBox: "0 0 24 24", transform: g || j ? "scale(-1, 1)" : void 0 }, C), v), { children: [ !!e && /* @__PURE__ */ L("title", { children: e }), p, w.get(i != null ? i : B) ] }) ); }); R.displayName = "IconBase"; export { R as default };