@crystaltech/hsms-shared-ui 0.7.15 → 0.7.16-alpha.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.
@@ -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;
@@ -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;
@@ -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;