@oliasoft-open-source/react-ui-library 4.18.0-beta-4 → 4.18.0-beta-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.
package/dist/index.d.ts CHANGED
@@ -1202,7 +1202,6 @@ export declare interface ISettingFieldProps {
1202
1202
  children: ReactNode;
1203
1203
  active?: boolean;
1204
1204
  noPermission?: boolean;
1205
- isLastField?: boolean;
1206
1205
  selectedOption?: 'all_users' | 'superusers_admin';
1207
1206
  handleSelectChange?: (value: 'all_users' | 'superusers_admin') => void;
1208
1207
  }
@@ -1714,7 +1713,7 @@ export declare const Row: ({ alignItems, justifyContent, children, flex, height,
1714
1713
 
1715
1714
  export declare const Select: (props: ISelectProps) => JSX_2.Element;
1716
1715
 
1717
- export declare const SettingField: ({ helpText, active, children, isLastField, noPermission, selectedOption, handleSelectChange, }: ISettingFieldProps) => JSX_2.Element;
1716
+ export declare const SettingField: ({ helpText, active, children, noPermission, selectedOption, handleSelectChange, }: ISettingFieldProps) => JSX_2.Element;
1718
1717
 
1719
1718
  export declare const SideBar: default_2.MemoExoticComponent<({ options, startOpen, onShiftClickToggleOpen, top, }: ISideBarProps) => JSX_2.Element>;
1720
1719
 
package/dist/index.js CHANGED
@@ -66549,14 +66549,13 @@ const SettingField = ({
66549
66549
  helpText,
66550
66550
  active: active2 = true,
66551
66551
  children,
66552
- isLastField = false,
66553
66552
  noPermission = false,
66554
66553
  selectedOption,
66555
66554
  handleSelectChange
66556
66555
  }) => {
66557
66556
  const options = [
66558
66557
  { label: "All users", value: "all_users" },
66559
- { label: "Superusers and Admin only", value: "superusers_admin" }
66558
+ { label: "Admin only", value: "superusers_admin" }
66560
66559
  ];
66561
66560
  return /* @__PURE__ */ jsxs("div", { children: [
66562
66561
  /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", children: [
@@ -66564,6 +66563,8 @@ const SettingField = ({
66564
66563
  !noPermission && /* @__PURE__ */ jsx(
66565
66564
  Select,
66566
66565
  {
66566
+ small: true,
66567
+ searchable: false,
66567
66568
  name: "userType",
66568
66569
  options,
66569
66570
  value: selectedOption,
@@ -66576,8 +66577,7 @@ const SettingField = ({
66576
66577
  }
66577
66578
  )
66578
66579
  ] }),
66579
- /* @__PURE__ */ jsx(Text, { muted: true, children: helpText }),
66580
- !isLastField && /* @__PURE__ */ jsx(Divider, {})
66580
+ /* @__PURE__ */ jsx(Text, { muted: true, children: helpText })
66581
66581
  ] });
66582
66582
  };
66583
66583
  export {