nvis-fe-cms-libs 2.0.1 → 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 "";
@@ -393,19 +408,19 @@ var __async = (__this, __arguments, generator) => {
393
408
  };
394
409
  const items = [
395
410
  {
396
- icon: "💡",
411
+ icon: "light_bulb",
397
412
  title: t("about.companyValues.vision") || "Tầm nhìn",
398
413
  text: cleanHtmlContent(safeCompanyData.vision) || "Tầm nhìn của chúng tôi sẽ được cập nhật trong thời gian tới.",
399
414
  bgClass: "bg-gradient-brand"
400
415
  },
401
416
  {
402
- icon: "🚀",
417
+ icon: "rocket",
403
418
  title: t("about.companyValues.mission") || "Sứ mệnh",
404
419
  text: cleanHtmlContent(safeCompanyData.mission) || "Sứ mệnh của chúng tôi sẽ được cập nhật trong thời gian tới.",
405
420
  bgClass: "bg-gradient-accent"
406
421
  },
407
422
  {
408
- icon: "💎",
423
+ icon: "diamond",
409
424
  title: t("about.companyValues.coreValues") || "Giá trị cốt lõi",
410
425
  text: cleanHtmlContent(safeCompanyData.coreValues) || "Giá trị cốt lõi của chúng tôi sẽ được cập nhật trong thời gian tới.",
411
426
  bgClass: "bg-gradient-brand"
@@ -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: item.icon
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: [
@@ -570,7 +585,6 @@ var __async = (__this, __arguments, generator) => {
570
585
  }
571
586
  ),
572
587
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "inline-flex items-center px-4 py-2 rounded-full border bg-white/20 border-white/40 text-inverse text-small font-medium", children: [
573
- "🚀 ",
574
588
  safeT("aboutCompany.hero.establishedYear", { year: establishedYear }),
575
589
  " - ",
576
590
  safeT("aboutCompany.hero.experience", { years: experienceYears })