fix: [icons] 커스텀 SVG 생성 코드를 lucide.createElement API로 교체

- 24개 Blade 파일의 수동 SVG 생성 코드를 lucide.createElement(_def)로 통일
- 불필요한 quote-stripping regex(/^"|"$/g) 제거
- Lucide 공식 API 사용으로 SVG viewBox/path 속성 에러 해결
This commit is contained in:
김보곤
2026-02-23 17:21:40 +09:00
parent 5f939b108e
commit e58b3438e9
24 changed files with 24 additions and 26 deletions

View File

@@ -26,8 +26,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const buildEl = (tag, attrs, children) => { const el = document.createElementNS("http://www.w3.org/2000/svg", tag); Object.keys(attrs).forEach(k => el.setAttribute(k, String(attrs[k]).replace(/^"|"$/g,''))); (children||[]).forEach(c => { if (Array.isArray(c)) el.appendChild(buildEl(...c)); }); return el; };
const svg = buildEl(..._def);
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -26,7 +26,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -26,7 +26,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -28,7 +28,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -25,7 +25,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -26,7 +26,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -26,7 +26,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -26,7 +26,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -26,7 +26,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -29,7 +29,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -26,7 +26,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -26,8 +26,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const buildEl = (tag, attrs, children) => { const el = document.createElementNS("http://www.w3.org/2000/svg", tag); Object.keys(attrs).forEach(k => el.setAttribute(k, String(attrs[k]).replace(/^"|"$/g,''))); (children||[]).forEach(c => { if (Array.isArray(c)) el.appendChild(buildEl(...c)); }); return el; };
const svg = buildEl(..._def);
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -26,7 +26,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -26,7 +26,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -26,7 +26,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -25,7 +25,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -26,7 +26,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -26,7 +26,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -26,7 +26,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -25,7 +25,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -25,7 +25,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -74,7 +74,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -200,7 +200,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}

View File

@@ -26,7 +26,7 @@
const _def=((n)=>{const a={'check-circle':'CircleCheck','alert-circle':'CircleAlert','alert-triangle':'TriangleAlert','clipboard-check':'ClipboardCheck'};if(a[n]&&lucide[a[n]])return lucide[a[n]];const p=n.split('-').map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join('');return lucide[p]||(lucide.icons&&lucide.icons[n])||null;})(name);
if (ref.current && _def) {
ref.current.innerHTML = '';
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg"); svg.setAttribute('xmlns','http://www.w3.org/2000/svg'); svg.setAttribute('width','24'); svg.setAttribute('height','24'); svg.setAttribute('viewBox','0 0 24 24'); svg.setAttribute('fill','none'); svg.setAttribute('stroke','currentColor'); svg.setAttribute('stroke-width','2'); svg.setAttribute('stroke-linecap','round'); svg.setAttribute('stroke-linejoin','round'); const ch=Array.isArray(_def[2])?_def[2]:[]; ch.forEach(function(c){if(!Array.isArray(c))return;const e=document.createElementNS("http://www.w3.org/2000/svg",c[0]);if(c[1])Object.entries(c[1]).forEach(function(x){e.setAttribute(x[0],String(x[1]).replace(/^"|"$/g,''));});svg.appendChild(e);});
const svg = lucide.createElement(_def);
svg.setAttribute('class', className);
ref.current.appendChild(svg);
}