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.
|
@@ -374,6 +374,21 @@ var __async = (__this, __arguments, generator) => {
|
|
|
374
374
|
return jsxRuntime.exports;
|
|
375
375
|
}
|
|
376
376
|
var jsxRuntimeExports = requireJsxRuntime();
|
|
377
|
+
function ThemeIcon({ name, className = "" }) {
|
|
378
|
+
if (!name) return null;
|
|
379
|
+
const iconUrl = `/icons/${name}.svg`;
|
|
380
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
381
|
+
"img",
|
|
382
|
+
{
|
|
383
|
+
src: iconUrl,
|
|
384
|
+
alt: name,
|
|
385
|
+
className: `icon ${className}`,
|
|
386
|
+
onError: (e) => {
|
|
387
|
+
e.target.style.display = "none";
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
);
|
|
391
|
+
}
|
|
377
392
|
const CompanyValues = ({ companyData, t, isDarkMode }) => {
|
|
378
393
|
const cleanHtmlContent = (html) => {
|
|
379
394
|
if (!html) return "";
|
|
@@ -455,7 +470,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
455
470
|
"div",
|
|
456
471
|
{
|
|
457
472
|
className: `w-10 h-10 rounded-lg flex items-center justify-center text-white text-xl flex-shrink-0 ${item.bgClass}`,
|
|
458
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
473
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeIcon, { name: item.icon, className: "w-6 h-6" })
|
|
459
474
|
}
|
|
460
475
|
),
|
|
461
476
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 min-w-0", children: [
|