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