@crystaltech/hsms-shared-ui 0.7.14 → 0.7.16-alpha.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.
@@ -4,8 +4,9 @@ interface CustomAutoCompleteProps<T> {
4
4
  label: string;
5
5
  placeholder?: string;
6
6
  multiple?: boolean;
7
+ id?: string;
7
8
  getOptionLabel: (option: T) => string;
8
9
  onChange: (value: T[] | T | null) => void;
9
10
  }
10
- declare const CustomAutoComplete: <T>({ options, defaultValue, label, placeholder, multiple, getOptionLabel, onChange, }: CustomAutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
11
+ declare const CustomAutoComplete: <T>({ options, defaultValue, label, placeholder, multiple, id, getOptionLabel, onChange, }: CustomAutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
11
12
  export default CustomAutoComplete;
@@ -4,6 +4,7 @@ interface CustomFilterProps {
4
4
  label: string;
5
5
  value: string;
6
6
  }[];
7
+ onSelect?: (value: string) => void;
7
8
  }
8
9
  declare const CustomFilter: React.FC<CustomFilterProps>;
9
10
  export default CustomFilter;
@@ -16,7 +16,7 @@ export interface TableConfig<T = Record<string, string | number | boolean>> {
16
16
  icon: JSX.Element;
17
17
  }[];
18
18
  }
19
- export default function DynamicTable({ config, data, }: {
19
+ export default function DataTable({ config, data, }: {
20
20
  config: TableConfig;
21
21
  data: Array<Record<string, string | number | boolean>>;
22
22
  }): import("react/jsx-runtime").JSX.Element;
@@ -3,6 +3,7 @@ export interface IHospital {
3
3
  id: string;
4
4
  facilityId: string;
5
5
  hospitalName: string;
6
+ hospitalNameBn: string;
6
7
  address: string;
7
8
  division: string;
8
9
  district: string;
@@ -27,6 +27,7 @@ export interface OrganizationFacilityProps {
27
27
  logoUrl: string;
28
28
  bannerUrl: string;
29
29
  backgroundImageUrl: string;
30
+ code: string;
30
31
  }
31
32
  declare const LoginView: React.FC<LoginViewProps>;
32
33
  export default LoginView;
@@ -1,2 +1,16 @@
1
- declare const ProfilePages: () => import("react/jsx-runtime").JSX.Element;
1
+ export interface ProfileData {
2
+ imageUrl: string;
3
+ name: string;
4
+ bio: string;
5
+ email: string;
6
+ location: string;
7
+ phoneNumber: string;
8
+ }
9
+ export interface ProfilePagesProps {
10
+ /** Profiles to render. Provided by the consuming app. */
11
+ profiles?: ProfileData[];
12
+ /** Called with the profile that was edited. */
13
+ onEditClick?: (profile: ProfileData) => void;
14
+ }
15
+ declare const ProfilePages: ({ profiles, onEditClick }: ProfilePagesProps) => import("react/jsx-runtime").JSX.Element;
2
16
  export default ProfilePages;
@@ -17,7 +17,7 @@ interface HospitalInfoProps {
17
17
  logoUrl: string | null;
18
18
  bannerUrl: string | null;
19
19
  backgroundImageUrl: string | null;
20
- bannerWithImage: boolean;
20
+ bannerWithImg: boolean;
21
21
  status: string | null;
22
22
  reasonToDelete: string | null;
23
23
  reasonToUpdate: string | null;
@@ -1,6 +1,8 @@
1
1
  interface CustomSwitchProps {
2
2
  checked: boolean;
3
3
  onChange: (checked: boolean) => void;
4
+ ariaLabel?: string;
5
+ label?: string;
4
6
  }
5
- declare function CustomSwitch({ checked, onChange }: CustomSwitchProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function CustomSwitch({ checked, onChange, ariaLabel, label }: CustomSwitchProps): import("react/jsx-runtime").JSX.Element;
6
8
  export default CustomSwitch;
@@ -3,6 +3,7 @@ type CustomTextFieldProps = Omit<TextFieldProps, "onChange" | "value"> & {
3
3
  value: string;
4
4
  onChange: (value: string) => void;
5
5
  label?: string;
6
+ id?: string;
6
7
  };
7
- declare function CustomTextField({ value, onChange, label, ...props }: CustomTextFieldProps): import("react/jsx-runtime").JSX.Element;
8
+ declare function CustomTextField({ value, onChange, label, id, ...props }: CustomTextFieldProps): import("react/jsx-runtime").JSX.Element;
8
9
  export default CustomTextField;
@@ -1,6 +1,7 @@
1
1
  interface UseLogoutReturn {
2
2
  logoutFromSkh: () => Promise<void>;
3
3
  isLoading: boolean;
4
+ directLogout: () => Promise<void>;
4
5
  }
5
6
  export declare function clearSiteData(): Promise<void>;
6
7
  export declare const useLogout: () => UseLogoutReturn;