@oliasoft-open-source/react-ui-library 4.18.3 → 4.18.4-beta-2
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.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -66557,6 +66557,13 @@ const SettingField = ({
|
|
|
66557
66557
|
selectedOption,
|
|
66558
66558
|
handleSelectChange
|
|
66559
66559
|
}) => {
|
|
66560
|
+
const renderHelpText = (text2) => {
|
|
66561
|
+
const textWithNewlines = text2.replace(/\\n/g, "\n");
|
|
66562
|
+
return textWithNewlines.split(/\n/).map((line2, index2) => /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
66563
|
+
line2,
|
|
66564
|
+
/* @__PURE__ */ jsx("br", {})
|
|
66565
|
+
] }, index2));
|
|
66566
|
+
};
|
|
66560
66567
|
const options = [
|
|
66561
66568
|
{ label: "All users", value: "all_users" },
|
|
66562
66569
|
{ label: "Admin only", value: "superusers_admin" }
|
|
@@ -66581,7 +66588,7 @@ const SettingField = ({
|
|
|
66581
66588
|
}
|
|
66582
66589
|
)
|
|
66583
66590
|
] }),
|
|
66584
|
-
/* @__PURE__ */ jsx(Text, { muted: true, children: helpText })
|
|
66591
|
+
/* @__PURE__ */ jsx(Text, { muted: true, children: renderHelpText(helpText) })
|
|
66585
66592
|
] });
|
|
66586
66593
|
};
|
|
66587
66594
|
export {
|