@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
90 lines (89 loc) • 2.1 kB
JavaScript
import { forwardRef as i, createElement as n } from "react";
/**
* @license lucide-react v0.488.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const w = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), g = (e) => e.replace(
/^([A-Z])|[\s-_]+(\w)/g,
(t, r, o) => o ? o.toUpperCase() : r.toLowerCase()
), c = (e) => {
const t = g(e);
return t.charAt(0).toUpperCase() + t.slice(1);
}, l = (...e) => e.filter((t, r, o) => !!t && t.trim() !== "" && o.indexOf(t) === r).join(" ").trim();
/**
* @license lucide-react v0.488.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
var h = {
xmlns: "http://www.w3.org/2000/svg",
width: 24,
height: 24,
viewBox: "0 0 24 24",
fill: "none",
stroke: "currentColor",
strokeWidth: 2,
strokeLinecap: "round",
strokeLinejoin: "round"
};
/**
* @license lucide-react v0.488.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const f = i(
({
color: e = "currentColor",
size: t = 24,
strokeWidth: r = 2,
absoluteStrokeWidth: o,
className: a = "",
children: s,
iconNode: u,
...m
}, C) => n(
"svg",
{
ref: C,
...h,
width: t,
height: t,
stroke: e,
strokeWidth: o ? Number(r) * 24 / Number(t) : r,
className: l("lucide", a),
...m
},
[
...u.map(([p, d]) => n(p, d)),
...Array.isArray(s) ? s : [s]
]
)
);
/**
* @license lucide-react v0.488.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
const b = (e, t) => {
const r = i(
({ className: o, ...a }, s) => n(f, {
ref: s,
iconNode: t,
className: l(
`lucide-${w(c(e))}`,
`lucide-${e}`,
o
),
...a
})
);
return r.displayName = c(e), r;
};
export {
b as c
};