@oliasoft-open-source/react-ui-library 4.18.0-beta-2 → 4.18.0-beta-4

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
@@ -1203,8 +1203,8 @@ export declare interface ISettingFieldProps {
1203
1203
  active?: boolean;
1204
1204
  noPermission?: boolean;
1205
1205
  isLastField?: boolean;
1206
- selectedOption: 'all_users' | 'superusers_admin';
1207
- handleSelectChange: (value: 'all_users' | 'superusers_admin') => void;
1206
+ selectedOption?: 'all_users' | 'superusers_admin';
1207
+ handleSelectChange?: (value: 'all_users' | 'superusers_admin') => void;
1208
1208
  }
1209
1209
 
1210
1210
  export declare interface ISideBarProps {
package/dist/index.js CHANGED
@@ -66558,9 +66558,6 @@ const SettingField = ({
66558
66558
  { label: "All users", value: "all_users" },
66559
66559
  { label: "Superusers and Admin only", value: "superusers_admin" }
66560
66560
  ];
66561
- const onSelectChange = (event) => {
66562
- handleSelectChange(event.target.value);
66563
- };
66564
66561
  return /* @__PURE__ */ jsxs("div", { children: [
66565
66562
  /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", children: [
66566
66563
  children,
@@ -66571,7 +66568,9 @@ const SettingField = ({
66571
66568
  options,
66572
66569
  value: selectedOption,
66573
66570
  disabled: !active2,
66574
- onChange: onSelectChange,
66571
+ onChange: handleSelectChange ? (e2) => handleSelectChange(
66572
+ e2.target.value
66573
+ ) : void 0,
66575
66574
  "aria-label": "Select user type",
66576
66575
  width: "auto"
66577
66576
  }