@oliasoft-open-source/react-ui-library 4.18.3-beta-1 → 4.18.4-beta-1
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/global.css +2 -9
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/global.css
CHANGED
|
@@ -10940,16 +10940,9 @@ tbody ._staticCell_ie6ng_123 ._staticCellContent_ie6ng_126 {
|
|
|
10940
10940
|
._inputWrapper_ye9w9_4 {
|
|
10941
10941
|
flex: 1;
|
|
10942
10942
|
}
|
|
10943
|
-
.
|
|
10943
|
+
._settingField_1x02n_1 {
|
|
10944
10944
|
padding: var(--padding-sm);
|
|
10945
|
-
padding-bottom: 0;
|
|
10946
10945
|
}
|
|
10947
|
-
.
|
|
10946
|
+
._settingField_1x02n_1:not(:last-child) {
|
|
10948
10947
|
border-bottom: 1px solid var(--color-border);
|
|
10949
10948
|
}
|
|
10950
|
-
._settingFieldContent_cguvy_8 {
|
|
10951
|
-
min-width: 0;
|
|
10952
|
-
}
|
|
10953
|
-
._settingFieldHelpText_cguvy_11 {
|
|
10954
|
-
margin-bottom: var(--padding-sm);
|
|
10955
|
-
}
|
package/dist/index.js
CHANGED
|
@@ -66545,13 +66545,9 @@ const SmartUploadModal = ({
|
|
|
66545
66545
|
}
|
|
66546
66546
|
) });
|
|
66547
66547
|
};
|
|
66548
|
-
const settingField = "
|
|
66549
|
-
const settingFieldContent = "_settingFieldContent_cguvy_8";
|
|
66550
|
-
const settingFieldHelpText = "_settingFieldHelpText_cguvy_11";
|
|
66548
|
+
const settingField = "_settingField_1x02n_1";
|
|
66551
66549
|
const styles = {
|
|
66552
|
-
settingField
|
|
66553
|
-
settingFieldContent,
|
|
66554
|
-
settingFieldHelpText
|
|
66550
|
+
settingField
|
|
66555
66551
|
};
|
|
66556
66552
|
const SettingField = ({
|
|
66557
66553
|
helpText,
|
|
@@ -66561,13 +66557,19 @@ const SettingField = ({
|
|
|
66561
66557
|
selectedOption,
|
|
66562
66558
|
handleSelectChange
|
|
66563
66559
|
}) => {
|
|
66560
|
+
const renderHelpText = (text2) => {
|
|
66561
|
+
return text2.split("\n").map((line2, index2) => /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
|
|
66562
|
+
line2,
|
|
66563
|
+
/* @__PURE__ */ jsx("br", {})
|
|
66564
|
+
] }, index2));
|
|
66565
|
+
};
|
|
66564
66566
|
const options = [
|
|
66565
66567
|
{ label: "All users", value: "all_users" },
|
|
66566
66568
|
{ label: "Admin only", value: "superusers_admin" }
|
|
66567
66569
|
];
|
|
66568
66570
|
return /* @__PURE__ */ jsxs("div", { className: styles.settingField, children: [
|
|
66569
66571
|
/* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", wrap: false, children: [
|
|
66570
|
-
|
|
66572
|
+
children,
|
|
66571
66573
|
!noPermission && /* @__PURE__ */ jsx(
|
|
66572
66574
|
Select,
|
|
66573
66575
|
{
|
|
@@ -66585,7 +66587,7 @@ const SettingField = ({
|
|
|
66585
66587
|
}
|
|
66586
66588
|
)
|
|
66587
66589
|
] }),
|
|
66588
|
-
|
|
66590
|
+
/* @__PURE__ */ jsx(Text, { muted: true, children: renderHelpText(helpText) })
|
|
66589
66591
|
] });
|
|
66590
66592
|
};
|
|
66591
66593
|
export {
|