nvis-fe-cms-libs 1.1.21 → 1.1.23
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.
|
@@ -660,11 +660,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
660
660
|
)
|
|
661
661
|
] });
|
|
662
662
|
};
|
|
663
|
-
const TimelineSection = ({ data, t, isDarkMode }) => {
|
|
663
|
+
const TimelineSection = ({ data, t, isDarkMode, section }) => {
|
|
664
664
|
var _a;
|
|
665
665
|
const timelineData = ((_a = data == null ? void 0 : data.sectionDataBindingItems) == null ? void 0 : _a.filter((item) => item == null ? void 0 : item.data).map((item) => item.data)) || [];
|
|
666
666
|
const [timelineVisible, setTimelineVisible] = require$$0.useState([]);
|
|
667
667
|
const timelineRefs = require$$0.useRef([]);
|
|
668
|
+
const sectionTitle = (section == null ? void 0 : section.title) || "";
|
|
668
669
|
require$$0.useEffect(() => {
|
|
669
670
|
setTimelineVisible(new Array(timelineData.length).fill(false));
|
|
670
671
|
}, [timelineData.length]);
|
|
@@ -706,7 +707,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
706
707
|
className: `relative inline-block px-4 py-2 rounded-full text-sm font-semibold mb-4 border transition-all duration-300 transform hover:scale-105 shadow-md hover:shadow-lg overflow-hidden ${isDarkMode ? "bg-gradient-to-br from-slate-900 via-blue-900 to-indigo-900 text-emerald-300 border-blue-800" : "bg-white text-emerald-800 border-gray-200"}`,
|
|
707
708
|
children: [
|
|
708
709
|
"📈 ",
|
|
709
|
-
|
|
710
|
+
sectionTitle,
|
|
710
711
|
isDarkMode && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
711
712
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
712
713
|
"div",
|