1import { o as __toESM } from "./chunk-6z4oVpB-.js"; 2import { t as require_react } from "./react-CCT1erMQ.js"; 3import { n as _objectSpread2, r as init_objectSpread2, t as _objectWithoutProperties } from "./objectWithoutProperties-Cgp7QKOy.js"; 4/** 5* @license lucide-react v0.331.0 - ISC 6* 7* This source code is licensed under the ISC license. 8* See the LICENSE file in the root directory of this source tree. 9*/ 10var defaultAttributes = { 11 xmlns: "http://www.w3.org/2000/svg", 12 width: 24, 13 height: 24, 14 viewBox: "0 0 24 24", 15 fill: "none", 16 stroke: "currentColor", 17 strokeWidth: 2, 18 strokeLinecap: "round", 19 strokeLinejoin: "round" 20}; 21var import_react = /* @__PURE__ */ __toESM(require_react()); 22init_objectSpread2(); 23var _excluded = [ 24 "color", 25 "size", 26 "strokeWidth", 27 "absoluteStrokeWidth", 28 "className", 29 "children" 30]; 31var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim(); 32var createLucideIcon = (iconName, iconNode) => { 33 const Component = (0, import_react.forwardRef)((_ref, ref) => { 34 let { color = "currentColor", size = 24, strokeWidth = 2, absoluteStrokeWidth, className = "", children } = _ref, rest = _objectWithoutProperties(_ref, _excluded); 35 return (0, import_react.createElement)("svg", _objectSpread2(_objectSpread2({ ref }, defaultAttributes), {}, { 36 width: size, 37 height: size, 38 stroke: color, 39 strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth, 40 className: [ 41 "lucide", 42 `lucide-${toKebabCase(iconName)}`, 43 className 44 ].join(" ") 45 }, rest), [...iconNode.map(([tag, attrs]) => (0, import_react.createElement)(tag, attrs)), ...Array.isArray(children) ? children : [children]]); 46 }); 47 Component.displayName = `${iconName}`; 48 return Component; 49}; 50export { createLucideIcon as t }; 51 52//# sourceMappingURL=createLucideIcon-DENnxagg.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.