@oliasoft-open-source/react-ui-library 4.18.4-beta-1 → 4.18.4-beta-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.
package/dist/index.d.ts CHANGED
@@ -1198,8 +1198,8 @@ declare interface ISelectSelectedOption {
1198
1198
  }
1199
1199
 
1200
1200
  export declare interface ISettingFieldProps {
1201
- helpText: string;
1202
1201
  children: ReactNode;
1202
+ helpText?: string;
1203
1203
  disabled?: boolean;
1204
1204
  noPermission?: boolean;
1205
1205
  selectedOption?: 'all_users' | 'superusers_admin';
package/dist/index.js CHANGED
@@ -66558,7 +66558,8 @@ const SettingField = ({
66558
66558
  handleSelectChange
66559
66559
  }) => {
66560
66560
  const renderHelpText = (text2) => {
66561
- return text2.split("\n").map((line2, index2) => /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
66561
+ const textWithNewlines = text2.replace(/\\n/g, "\n");
66562
+ return textWithNewlines.split(/\n/).map((line2, index2) => /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
66562
66563
  line2,
66563
66564
  /* @__PURE__ */ jsx("br", {})
66564
66565
  ] }, index2));
@@ -66587,7 +66588,7 @@ const SettingField = ({
66587
66588
  }
66588
66589
  )
66589
66590
  ] }),
66590
- /* @__PURE__ */ jsx(Text, { muted: true, children: renderHelpText(helpText) })
66591
+ helpText && /* @__PURE__ */ jsx(Text, { muted: true, children: renderHelpText(helpText) })
66591
66592
  ] });
66592
66593
  };
66593
66594
  export {