nvis-fe-cms-libs 1.0.4 → 1.0.5

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.
@@ -3076,29 +3076,39 @@ const TextWithTitleSection = ({ section, data, isDarkMode }) => {
3076
3076
  item.id || index2
3077
3077
  )) }) });
3078
3078
  };
3079
- const TextSection = ({ data }) => {
3079
+ const TextSection = ({ data, isDarkMode }) => {
3080
3080
  const textItems = (data == null ? void 0 : data.sectionDataBindingItems) || [];
3081
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: {
3082
- padding: "40px 20px",
3083
- backgroundColor: "#f8f9fa",
3084
- textAlign: "center"
3085
- }, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { maxWidth: "800px", margin: "0 auto" }, children: textItems.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
3081
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
3086
3082
  "div",
3087
3083
  {
3088
3084
  style: {
3089
- backgroundColor: "white",
3090
- padding: "20px",
3091
- marginBottom: "20px",
3092
- borderRadius: "8px",
3093
- boxShadow: "0 2px 4px rgba(0,0,0,0.1)",
3094
- fontSize: "16px",
3095
- lineHeight: "1.6",
3096
- color: "#333"
3085
+ padding: "40px 20px",
3086
+ backgroundColor: isDarkMode ? "#1f2937" : "#f8f9fa",
3087
+ // Dark: slate-800, Light: gray-100
3088
+ textAlign: "center"
3097
3089
  },
3098
- children: item.value
3099
- },
3100
- item.id || index2
3101
- )) }) });
3090
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { maxWidth: "800px", margin: "0 auto" }, children: textItems.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
3091
+ "div",
3092
+ {
3093
+ style: {
3094
+ backgroundColor: isDarkMode ? "#374151" : "white",
3095
+ // Dark: slate-700, Light: white
3096
+ padding: "20px",
3097
+ marginBottom: "20px",
3098
+ borderRadius: "8px",
3099
+ boxShadow: isDarkMode ? "0 2px 4px rgba(0,0,0,0.3)" : "0 2px 4px rgba(0,0,0,0.1)",
3100
+ fontSize: "16px",
3101
+ lineHeight: "1.6",
3102
+ color: isDarkMode ? "#d1d5db" : "#333",
3103
+ // Dark: gray-300, Light: dark gray
3104
+ textAlign: "left"
3105
+ },
3106
+ children: item.value
3107
+ },
3108
+ item.id || index2
3109
+ )) })
3110
+ }
3111
+ );
3102
3112
  };
3103
3113
  const index = {
3104
3114
  AboutCompanySection,