@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.
- package/dist/{Loader--w3bdiMN.js → Loader-D1FpX_bV.js} +65 -52
- package/dist/Loader-DQV7fRR-.cjs +1 -0
- package/dist/components/CustomAutoComplete.d.ts +2 -1
- package/dist/components/CustomFilter.d.ts +1 -0
- package/dist/components/DataTable.d.ts +1 -1
- package/dist/components/ProfilePages.d.ts +15 -1
- package/dist/components/ui/CustomSwitch.d.ts +3 -1
- package/dist/components/ui/CustomTextfield.d.ts +2 -1
- package/dist/index.es.js +10071 -10619
- package/dist/index.js +74 -74
- package/dist/preMountSplash.es.js +5069 -5068
- package/dist/preMountSplash.iife.js +91 -91
- package/dist/preMountSplash.js +67 -67
- package/dist/routes/ProtectedRoute.d.ts +3 -0
- package/dist/sw.js +1 -1
- package/dist/utils/safeStorage.d.ts +14 -0
- package/package.json +3 -3
- package/dist/Loader-CmCUvExV.cjs +0 -1
|
@@ -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;
|
|
@@ -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
|
|
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
|
-
|
|
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;
|