UNPKG

morphbox

Version:

Docker-based AI sandbox for development with Claude integration

79 lines (76 loc) 3.79 kB
import { c as create_ssr_component, p as compute_rest_props, q as spread, f as each, t as escape_object, u as escape_attribute_value } from './ssr-Bi8A3Ffq.js'; const void_element_names = /^(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/; function is_void(name) { return void_element_names.test(name) || name.toLowerCase() === "!doctype"; } /** * @license lucide-svelte v0.525.0 - ISC * * ISC License * * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * */ const defaultAttributes = { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": 2, "stroke-linecap": "round", "stroke-linejoin": "round" }; const Icon = create_ssr_component(($$result, $$props, $$bindings, slots) => { let $$restProps = compute_rest_props($$props, ["name", "color", "size", "strokeWidth", "absoluteStrokeWidth", "iconNode"]); let { name = void 0 } = $$props; let { color = "currentColor" } = $$props; let { size = 24 } = $$props; let { strokeWidth = 2 } = $$props; let { absoluteStrokeWidth = false } = $$props; let { iconNode = [] } = $$props; const mergeClasses = (...classes) => classes.filter((className, index, array) => { return Boolean(className) && array.indexOf(className) === index; }).join(" "); if ($$props.name === void 0 && $$bindings.name && name !== void 0) $$bindings.name(name); if ($$props.color === void 0 && $$bindings.color && color !== void 0) $$bindings.color(color); if ($$props.size === void 0 && $$bindings.size && size !== void 0) $$bindings.size(size); if ($$props.strokeWidth === void 0 && $$bindings.strokeWidth && strokeWidth !== void 0) $$bindings.strokeWidth(strokeWidth); if ($$props.absoluteStrokeWidth === void 0 && $$bindings.absoluteStrokeWidth && absoluteStrokeWidth !== void 0) $$bindings.absoluteStrokeWidth(absoluteStrokeWidth); if ($$props.iconNode === void 0 && $$bindings.iconNode && iconNode !== void 0) $$bindings.iconNode(iconNode); return `<svg${spread( [ escape_object(defaultAttributes), escape_object($$restProps), { width: escape_attribute_value(size) }, { height: escape_attribute_value(size) }, { stroke: escape_attribute_value(color) }, { "stroke-width": escape_attribute_value(absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth) }, { class: escape_attribute_value(mergeClasses("lucide-icon", "lucide", name ? `lucide-${name}` : "", $$props.class)) } ], {} )}>${each(iconNode, ([tag, attrs]) => { return `${((tag$1) => { return tag$1 ? `<${tag}${spread([escape_object(attrs)], {})}>${is_void(tag$1) ? "" : ``}${is_void(tag$1) ? "" : `</${tag$1}>`}` : ""; })(tag)}`; })}${slots.default ? slots.default({}) : ``}</svg>`; }); export { Icon as I }; //# sourceMappingURL=Icon-BX2G3WyD.js.map