UNPKG

laif-ds

Version:

Design System di Laif con componenti React basati su principi di Atomic Design

23 lines (22 loc) 771 B
"use client"; import l from "./constant.js"; import { withPath as e } from "./path.js"; import c from "./symbol/circle.js"; function g(o, t) { let r = null, f = e(u); o = typeof o == "function" ? o : l(o || c), t = typeof t == "function" ? t : l(t === void 0 ? 64 : +t); function u() { let n; if (r || (r = n = f()), o.apply(this, arguments).draw(r, +t.apply(this, arguments)), n) return r = null, n + "" || null; } return u.type = function(n) { return arguments.length ? (o = typeof n == "function" ? n : l(n), u) : o; }, u.size = function(n) { return arguments.length ? (t = typeof n == "function" ? n : l(+n), u) : t; }, u.context = function(n) { return arguments.length ? (r = n ?? null, u) : r; }, u; } export { g as default };