nvis-fe-cms-libs 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -371,6 +371,21 @@ function requireJsxRuntime() {
371
371
  return jsxRuntime.exports;
372
372
  }
373
373
  var jsxRuntimeExports = requireJsxRuntime();
374
+ function ThemeIcon({ name, className = "" }) {
375
+ if (!name) return null;
376
+ const iconUrl = `/icons/${name}.svg`;
377
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
378
+ "img",
379
+ {
380
+ src: iconUrl,
381
+ alt: name,
382
+ className: `icon ${className}`,
383
+ onError: (e) => {
384
+ e.target.style.display = "none";
385
+ }
386
+ }
387
+ );
388
+ }
374
389
  const CompanyValues = ({ companyData, t, isDarkMode }) => {
375
390
  const cleanHtmlContent = (html) => {
376
391
  if (!html) return "";
@@ -452,7 +467,7 @@ const CompanyValues = ({ companyData, t, isDarkMode }) => {
452
467
  "div",
453
468
  {
454
469
  className: `w-10 h-10 rounded-lg flex items-center justify-center text-white text-xl flex-shrink-0 ${item.bgClass}`,
455
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(DynamicIcon, { name: item.icon, className: "w-6 h-6" })
470
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeIcon, { name: item.icon, className: "w-6 h-6" })
456
471
  }
457
472
  ),
458
473
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 min-w-0", children: [