@integrativedesigndevelopment/dashboard-core 0.0.12 → 0.1.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.
- package/README.md +15 -5
- package/dist/components/ActivityProvider/index.d.ts +7 -9
- package/dist/components/ActivityProvider/index.d.ts.map +1 -1
- package/dist/components/ActivityProvider/types.d.ts +15 -0
- package/dist/components/ActivityProvider/types.d.ts.map +1 -0
- package/dist/components/CancelActionButton/index.d.ts +1 -1
- package/dist/components/CancelActionButton/index.d.ts.map +1 -1
- package/dist/components/Card/index.d.ts +6 -5
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/ConfirmActionButton/index.d.ts +1 -1
- package/dist/components/ConfirmActionButton/index.d.ts.map +1 -1
- package/dist/components/ErrorBoundary/index.d.ts +9 -3
- package/dist/components/ErrorBoundary/index.d.ts.map +1 -1
- package/dist/components/{forms → Forms}/FormField/index.d.ts.map +1 -1
- package/dist/components/{forms → Forms}/FormField/index.improved.d.ts.map +1 -1
- package/dist/components/{forms → Forms}/SubmitButton/index.d.ts.map +1 -1
- package/dist/components/{forms → Forms}/SubmitButton/index.improved.d.ts.map +1 -1
- package/dist/components/{forms → Forms}/TermsCheckbox/index.d.ts.map +1 -1
- package/dist/components/{forms → Forms}/TermsCheckbox/index.improved.d.ts.map +1 -1
- package/dist/components/IDDLinkInputItem/index.d.ts +4 -4
- package/dist/components/IDDLinkInputItem/index.d.ts.map +1 -1
- package/dist/components/Layout/SimpleLayout.d.ts.map +1 -1
- package/dist/components/Layout/index.d.ts +1 -0
- package/dist/components/Layout/index.d.ts.map +1 -1
- package/dist/components/Loader/index.d.ts +5 -3
- package/dist/components/Loader/index.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts +18 -6
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Password/index.d.ts +16 -3
- package/dist/components/Password/index.d.ts.map +1 -1
- package/dist/components/PasswordStrengthIndicator/index.d.ts +20 -7
- package/dist/components/PasswordStrengthIndicator/index.d.ts.map +1 -1
- package/dist/components/SimpleButton/index.d.ts +4 -0
- package/dist/components/SimpleButton/index.d.ts.map +1 -1
- package/dist/components/TextInput/index.d.ts +24 -1
- package/dist/components/TextInput/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/utils/componentWrapper.d.ts +16 -4
- package/dist/components/utils/componentWrapper.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useAsyncOperation.d.ts +2 -0
- package/dist/hooks/useAsyncOperation.d.ts.map +1 -1
- package/dist/hooks/useUpdateUser.d.ts +6 -2
- package/dist/hooks/useUpdateUser.d.ts.map +1 -1
- package/dist/hooks/useUserManagement.d.ts +15 -36
- package/dist/hooks/useUserManagement.d.ts.map +1 -1
- package/dist/index.d.ts +6 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/metrics/clsMetrics.d.ts +2 -2
- package/dist/metrics/clsMetrics.d.ts.map +1 -1
- package/dist/metrics/fcpMetrics.d.ts +2 -2
- package/dist/metrics/fcpMetrics.d.ts.map +1 -1
- package/dist/metrics/fidMetrics.d.ts +2 -2
- package/dist/metrics/fidMetrics.d.ts.map +1 -1
- package/dist/metrics/index.d.ts +2 -2
- package/dist/metrics/index.d.ts.map +1 -1
- package/dist/metrics/lcpMetrics.d.ts +2 -2
- package/dist/metrics/lcpMetrics.d.ts.map +1 -1
- package/dist/metrics/ttfbMetrics.d.ts +2 -2
- package/dist/metrics/ttfbMetrics.d.ts.map +1 -1
- package/dist/metrics/types.d.ts +9 -0
- package/dist/metrics/types.d.ts.map +1 -0
- package/dist/plugin-system/PluginManager/components/PluginContent/index.d.ts +12 -0
- package/dist/plugin-system/PluginManager/components/PluginContent/index.d.ts.map +1 -0
- package/dist/plugin-system/PluginManager/components/PluginList/index.d.ts +15 -0
- package/dist/plugin-system/PluginManager/components/PluginList/index.d.ts.map +1 -0
- package/dist/plugin-system/PluginManager/components/index.d.ts +3 -0
- package/dist/plugin-system/PluginManager/components/index.d.ts.map +1 -0
- package/dist/plugin-system/PluginManager/index.d.ts +15 -0
- package/dist/plugin-system/PluginManager/index.d.ts.map +1 -0
- package/dist/plugin-system/core/Dashboard/tab0.d.ts.map +1 -1
- package/dist/plugin-system/core/Dashboard/views/DashboardView/index.d.ts.map +1 -1
- package/dist/plugin-system/index.d.ts +2 -0
- package/dist/plugin-system/index.d.ts.map +1 -1
- package/dist/plugin-system/types.d.ts +3 -3
- package/dist/plugin-system/types.d.ts.map +1 -1
- package/dist/services/errorServices/components/ErrorToast/index.d.ts +9 -0
- package/dist/services/errorServices/components/ErrorToast/index.d.ts.map +1 -0
- package/dist/services/errorServices/components/ErrorToastContainer/index.d.ts +3 -0
- package/dist/services/errorServices/components/ErrorToastContainer/index.d.ts.map +1 -0
- package/dist/services/errorServices/context.d.ts +9 -0
- package/dist/services/errorServices/context.d.ts.map +1 -0
- package/dist/services/errorServices/index.d.ts +5 -0
- package/dist/services/errorServices/index.d.ts.map +1 -0
- package/dist/services/{errorServices.d.ts → errorServices/types.d.ts} +5 -17
- package/dist/services/errorServices/types.d.ts.map +1 -0
- package/dist/types/index.d.ts +14 -8
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/array-utils.d.ts +6 -0
- package/dist/utils/array-utils.d.ts.map +1 -0
- package/dist/utils/helpers.d.ts +10 -11
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/isDeepEqual.d.ts +1 -2
- package/dist/utils/isDeepEqual.d.ts.map +1 -1
- package/dist/utils/location-utils.d.ts +12 -0
- package/dist/utils/location-utils.d.ts.map +1 -0
- package/dist/utils/logger.d.ts +1 -1
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/role-utils.d.ts +10 -0
- package/dist/utils/role-utils.d.ts.map +1 -0
- package/dist/utils/sanitize.d.ts +10 -0
- package/dist/utils/sanitize.d.ts.map +1 -0
- package/dist/utils/string-utils.d.ts +5 -0
- package/dist/utils/string-utils.d.ts.map +1 -0
- package/package.json +26 -5
- package/dist/components/LoginBackground/index.d.ts +0 -29
- package/dist/components/LoginBackground/index.d.ts.map +0 -1
- package/dist/components/LoginBackground/index.improved.d.ts +0 -16
- package/dist/components/LoginBackground/index.improved.d.ts.map +0 -1
- package/dist/components/LoginBackground/types.d.ts +0 -25
- package/dist/components/LoginBackground/types.d.ts.map +0 -1
- package/dist/components/LoginBackground/utils.d.ts +0 -28
- package/dist/components/LoginBackground/utils.d.ts.map +0 -1
- package/dist/components/PasswordStrengthIndicator/index.improved.d.ts +0 -47
- package/dist/components/PasswordStrengthIndicator/index.improved.d.ts.map +0 -1
- package/dist/plugin-system/PluginManager.d.ts +0 -9
- package/dist/plugin-system/PluginManager.d.ts.map +0 -1
- package/dist/plugin-system/core/Dashboard/Icon.d.ts +0 -6
- package/dist/plugin-system/core/Dashboard/Icon.d.ts.map +0 -1
- package/dist/plugin-system/core/Dashboard/views/DashboardView/index.stories.d.ts +0 -13
- package/dist/plugin-system/core/Dashboard/views/DashboardView/index.stories.d.ts.map +0 -1
- package/dist/services/errorServices.d.ts.map +0 -1
- /package/dist/components/{forms → Forms}/FormField/index.d.ts +0 -0
- /package/dist/components/{forms → Forms}/FormField/index.improved.d.ts +0 -0
- /package/dist/components/{forms → Forms}/SubmitButton/index.d.ts +0 -0
- /package/dist/components/{forms → Forms}/SubmitButton/index.improved.d.ts +0 -0
- /package/dist/components/{forms → Forms}/TermsCheckbox/index.d.ts +0 -0
- /package/dist/components/{forms → Forms}/TermsCheckbox/index.improved.d.ts +0 -0
package/README.md
CHANGED
|
@@ -298,16 +298,21 @@ import {
|
|
|
298
298
|
} from '@integrativedesigndevelopment/dashboard-core';
|
|
299
299
|
|
|
300
300
|
function UserManagement() {
|
|
301
|
-
|
|
302
|
-
const { execute, loading, error } = useAsyncOperation(async (userId) => {
|
|
303
|
-
return await api.deleteUser(userId);
|
|
304
|
-
});
|
|
301
|
+
const { executeAsync, loading } = useAsyncOperation();
|
|
305
302
|
|
|
306
303
|
// User management hooks
|
|
307
304
|
const { users, loading: usersLoading } = useGetUsers();
|
|
308
305
|
const { updateUser } = useUpdateUser();
|
|
309
306
|
const { deleteUser } = useDeleteUsers();
|
|
310
307
|
|
|
308
|
+
const handleDelete = (userId: string) => {
|
|
309
|
+
executeAsync(
|
|
310
|
+
() => api.deleteUser(userId),
|
|
311
|
+
'User deleted',
|
|
312
|
+
'Failed to delete user'
|
|
313
|
+
);
|
|
314
|
+
};
|
|
315
|
+
|
|
311
316
|
return (
|
|
312
317
|
<div>
|
|
313
318
|
{usersLoading ? (
|
|
@@ -319,7 +324,12 @@ function UserManagement() {
|
|
|
319
324
|
<button onClick={() => updateUser(user.id, { active: false })}>
|
|
320
325
|
Deactivate
|
|
321
326
|
</button>
|
|
322
|
-
<button
|
|
327
|
+
<button
|
|
328
|
+
onClick={() => handleDelete(user.id)}
|
|
329
|
+
disabled={loading}
|
|
330
|
+
>
|
|
331
|
+
Delete
|
|
332
|
+
</button>
|
|
323
333
|
</div>
|
|
324
334
|
))
|
|
325
335
|
)}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
export declare function ActivityProvider({ children }: any): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare const useTracker: () => any;
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { PageViewEvent } from './types';
|
|
3
|
+
export declare const page_view_event: (page_id: string, user_id: string) => PageViewEvent;
|
|
4
|
+
export declare const pageViewEvent: (page_id: string, user_id: string) => PageViewEvent;
|
|
5
|
+
export declare function ActivityProvider({ children }: {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ActivityProvider/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ActivityProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAa,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzD,OAAO,EAAE,aAAa,EAAgC,MAAM,SAAS,CAAC;AActE,eAAO,MAAM,eAAe,GAC1B,SAAS,MAAM,EACf,SAAS,MAAM,KACd,aAMD,CAAC;AAEH,eAAO,MAAM,aAAa,YAVf,MAAM,WACN,MAAM,KACd,aAQyC,CAAC;AAI7C,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CA0BrE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface TrackerEvent {
|
|
2
|
+
type: string;
|
|
3
|
+
data?: unknown;
|
|
4
|
+
}
|
|
5
|
+
export interface TrackerHistory {
|
|
6
|
+
events: TrackerEvent[];
|
|
7
|
+
}
|
|
8
|
+
export interface PageViewEvent {
|
|
9
|
+
type: 'PAGE_VIEW';
|
|
10
|
+
data: {
|
|
11
|
+
pageId: string;
|
|
12
|
+
userId: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ActivityProvider/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,YAAY,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH"}
|
|
@@ -6,7 +6,7 @@ export interface CancelActionButtonProps {
|
|
|
6
6
|
disabled?: IDDButtonProps['disabled'];
|
|
7
7
|
type?: IDDButtonProps['type'];
|
|
8
8
|
className?: IDDButtonProps['buttonClass'];
|
|
9
|
-
variant?: 'outline' | 'ghost';
|
|
9
|
+
variant?: 'outline' | 'ghost' | 'link';
|
|
10
10
|
'data-testid'?: string;
|
|
11
11
|
}
|
|
12
12
|
declare const CancelActionButton: FC<CancelActionButtonProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CancelActionButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACtC,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CancelActionButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACtC,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CA0BnD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title?:
|
|
1
|
+
import { type IDDCardProps } from '@integrativedesigndevelopment/idd-common';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
export interface CardProps extends IDDCardProps {
|
|
4
|
+
title?: IDDCardProps['headerText'];
|
|
5
5
|
subtitle?: string;
|
|
6
|
-
|
|
6
|
+
subtitleClass?: string;
|
|
7
|
+
className?: IDDCardProps['containerClass'];
|
|
7
8
|
padding?: 'none' | 'small' | 'medium' | 'large';
|
|
8
9
|
shadow?: 'none' | 'small' | 'medium' | 'large';
|
|
9
10
|
border?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,MAAM,WAAW,SAAU,SAAQ,YAAY;IAC7C,KAAK,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;IAC3C,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAChD,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC/C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,QAAA,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAqDvB,CAAC;AAIF,eAAe,IAAI,CAAC"}
|
|
@@ -6,7 +6,7 @@ export interface ConfirmActionButtonProps {
|
|
|
6
6
|
disabled?: IDDButtonProps['disabled'];
|
|
7
7
|
type?: IDDButtonProps['type'];
|
|
8
8
|
className?: IDDButtonProps['buttonClass'];
|
|
9
|
-
variant?: 'primary' | 'success' | 'danger';
|
|
9
|
+
variant?: 'primary' | 'success' | 'danger' | 'inverse';
|
|
10
10
|
'data-testid'?: string;
|
|
11
11
|
}
|
|
12
12
|
declare const ConfirmActionButton: FC<ConfirmActionButtonProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmActionButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACtC,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmActionButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACtC,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CA0BrD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import React, { Component, type ErrorInfo, type ReactNode } from 'react';
|
|
2
2
|
interface Props {
|
|
3
3
|
children?: ReactNode;
|
|
4
|
-
fallback?: ReactNode;
|
|
4
|
+
fallback?: ReactNode | ((error: Error) => ReactNode);
|
|
5
|
+
onError?: (error: Error, error_info: ErrorInfo) => void;
|
|
6
|
+
onRetry?: () => void;
|
|
5
7
|
}
|
|
6
8
|
interface State {
|
|
7
9
|
hasError: boolean;
|
|
8
10
|
error?: Error;
|
|
9
11
|
}
|
|
10
12
|
declare class ErrorBoundary extends Component<Props, State> {
|
|
13
|
+
static displayName: string;
|
|
11
14
|
state: State;
|
|
12
15
|
static getDerivedStateFromError(error: Error): State;
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
componentDidUpdate(prev_props: Props): void;
|
|
17
|
+
componentDidCatch(error: Error, error_info: ErrorInfo): void;
|
|
18
|
+
private handle_retry;
|
|
19
|
+
render(): string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
20
|
+
private render_default_fallback;
|
|
15
21
|
}
|
|
16
22
|
export default ErrorBoundary;
|
|
17
23
|
export type { Props as ErrorBoundaryProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorBoundary/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorBoundary/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzE,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,SAAS,CAAC,CAAC;IACrD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,KAAK,IAAI,CAAC;IACxD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,UAAU,KAAK;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,cAAM,aAAc,SAAQ,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;IACjD,OAAc,WAAW,SAAmB;IAErC,KAAK,EAAE,KAAK,CAEjB;WAEY,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK;IAI3C,kBAAkB,CAAC,UAAU,EAAE,KAAK;IAMpC,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS;IAKrE,OAAO,CAAC,YAAY,CAGlB;IAEc,MAAM;IActB,OAAO,CAAC,uBAAuB;CAuBhC;AAED,eAAe,aAAa,CAAC;AAC7B,YAAY,EAAE,KAAK,IAAI,kBAAkB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Forms/FormField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,SAAS,4CA4EpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.improved.d.ts","sourceRoot":"","sources":["../../../../src/components/
|
|
1
|
+
{"version":3,"file":"index.improved.d.ts","sourceRoot":"","sources":["../../../../src/components/Forms/FormField/index.improved.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuE,MAAM,OAAO,CAAC;AAG5F,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,CAAC;IACzD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAyLD,eAAO,MAAM,SAAS,4CAAsB,CAAC;AAG7C,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Forms/SubmitButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,iBAAiB;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,+CAkCvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.improved.d.ts","sourceRoot":"","sources":["../../../../src/components/
|
|
1
|
+
{"version":3,"file":"index.improved.d.ts","sourceRoot":"","sources":["../../../../src/components/Forms/SubmitButton/index.improved.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAItD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;IACvD,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AA0ID,eAAO,MAAM,YAAY,+CAAyB,CAAC;AAGnD,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Forms/TermsCheckbox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,kBAAkB;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,aAAa,gDA6ExB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.improved.d.ts","sourceRoot":"","sources":["../../../../src/components/
|
|
1
|
+
{"version":3,"file":"index.improved.d.ts","sourceRoot":"","sources":["../../../../src/components/Forms/TermsCheckbox/index.improved.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAqC,KAAK,EAAE,EAAoB,MAAM,OAAO,CAAC;AAE5F,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAsKD,eAAO,MAAM,aAAa,gDAA0B,CAAC;AAGrD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,kBAAkB,CA6BrD,CAAC;AAIH,eAAe,aAAa,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface LinkProps {
|
|
3
3
|
id: string;
|
|
4
4
|
text: string;
|
|
@@ -8,11 +8,11 @@ export interface LinkProps {
|
|
|
8
8
|
export interface IDDLinkInputItemProps {
|
|
9
9
|
id: string;
|
|
10
10
|
idsArray?: string[];
|
|
11
|
-
onDelete: (
|
|
12
|
-
onBlur?: (
|
|
11
|
+
onDelete: (ids: string[]) => void;
|
|
12
|
+
onBlur?: (link: LinkProps) => void;
|
|
13
13
|
link?: LinkProps;
|
|
14
14
|
className?: string;
|
|
15
15
|
}
|
|
16
|
-
declare const IDDLinkInputItem:
|
|
16
|
+
declare const IDDLinkInputItem: React.NamedExoticComponent<IDDLinkInputItemProps>;
|
|
17
17
|
export default IDDLinkInputItem;
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IDDLinkInputItem/index.tsx"],"names":[],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IDDLinkInputItem/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAON,MAAM,OAAO,CAAC;AAGf,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACnC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAmGD,QAAA,MAAM,gBAAgB,mDAAkC,CAAC;AACzD,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleLayout.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/SimpleLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SimpleLayout.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/SimpleLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAW7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,EAAE,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG1E,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,EAAE,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG1E,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAChC;AASD,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAkB3B,CAAC;AAIF,eAAe,MAAM,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { type IDDLoaderProps } from '@integrativedesigndevelopment/idd-common';
|
|
2
|
+
import { type FC } from 'react';
|
|
3
|
+
export interface LoaderProps extends IDDLoaderProps {
|
|
4
4
|
message?: string;
|
|
5
|
+
message_class?: string;
|
|
5
6
|
show?: boolean;
|
|
7
|
+
size?: 'small' | 'medium' | 'large';
|
|
6
8
|
color?: string;
|
|
7
9
|
className?: string;
|
|
8
10
|
'data-testid'?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Loader/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Loader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,0CAA0C,CAAC;AAClD,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAuC3B,CAAC;AAIF,eAAe,MAAM,CAAC"}
|
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
import type { FC, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { type IDDModalProps } from '@integrativedesigndevelopment/idd-common';
|
|
3
|
+
export interface ModalProps extends Omit<IDDModalProps, 'title' | 'onSubmit'> {
|
|
4
|
+
title: IDDModalProps['title'];
|
|
4
5
|
isOpen: boolean;
|
|
5
|
-
onClose:
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
onClose: IDDModalProps['onCancel'];
|
|
7
|
+
onSubmit?: IDDModalProps['onSubmit'];
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
anchorClass?: IDDModalProps['anchorClass'];
|
|
10
|
+
titleClass?: IDDModalProps['titleClass'];
|
|
11
|
+
bodyClass?: IDDModalProps['contentClass'];
|
|
12
|
+
headerClass?: IDDModalProps['headerClass'];
|
|
13
|
+
showCloseButton?: IDDModalProps['xCancel'];
|
|
14
|
+
showSubmitButton?: boolean;
|
|
15
|
+
submitText?: IDDModalProps['submitText'];
|
|
8
16
|
size?: 'small' | 'medium' | 'large' | 'full';
|
|
9
17
|
className?: string;
|
|
10
|
-
'
|
|
18
|
+
xWidth?: IDDModalProps['xWidth'];
|
|
19
|
+
xHeight?: IDDModalProps['xHeight'];
|
|
20
|
+
activeXColor?: IDDModalProps['activeXColor'];
|
|
21
|
+
inactiveXColor?: IDDModalProps['inactiveXColor'];
|
|
22
|
+
modalXClass?: IDDModalProps['modalXClass'];
|
|
11
23
|
}
|
|
12
24
|
/**
|
|
13
25
|
* Modal component that provides a standardized modal interface
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,E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AIF,eAAe,KAAK,CAAC"}
|
|
@@ -1,14 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { IDDButtonProps, IDDInputProps } from '@integrativedesigndevelopment/idd-common';
|
|
2
|
+
import type { ChangeEvent, FC } from 'react';
|
|
3
3
|
export interface PasswordProps {
|
|
4
|
-
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
5
4
|
label: IDDInputProps['label'];
|
|
5
|
+
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
6
6
|
value?: IDDInputProps['value'];
|
|
7
7
|
componentClass?: IDDInputProps['componentClass'];
|
|
8
|
+
inputWrapperClass?: IDDInputProps['inputWrapperClass'];
|
|
9
|
+
inputClass?: IDDInputProps['inputClass'];
|
|
8
10
|
appendToInputClass?: IDDInputProps['appendToInputClass'];
|
|
9
11
|
error?: IDDInputProps['errors'];
|
|
10
12
|
errorColor?: IDDInputProps['errorColor'];
|
|
13
|
+
errorClass?: IDDInputProps['errorClass'];
|
|
11
14
|
isErrorOnlyColor?: boolean;
|
|
15
|
+
iconColorActive?: string;
|
|
16
|
+
iconColorInactive?: string;
|
|
17
|
+
textColorActive?: string;
|
|
18
|
+
textColorInactive?: string;
|
|
19
|
+
labelColorActive?: string;
|
|
20
|
+
labelColorInactive?: string;
|
|
21
|
+
borderColorActive?: string;
|
|
22
|
+
borderColorInactive?: string;
|
|
23
|
+
toggleVisibilityButtonClass?: IDDButtonProps['buttonClass'];
|
|
24
|
+
readOnly?: boolean;
|
|
12
25
|
}
|
|
13
26
|
declare const Password: FC<PasswordProps>;
|
|
14
27
|
export default Password;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Password/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Password/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,cAAc,EACd,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AAe,QAAQ,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { FC } from 'react';
|
|
2
3
|
export declare enum PasswordStrength {
|
|
3
4
|
VERY_WEAK = 0,
|
|
4
5
|
WEAK = 1,
|
|
@@ -23,25 +24,37 @@ export interface PasswordStrengthIndicatorProps {
|
|
|
23
24
|
analysis: PasswordStrengthResult;
|
|
24
25
|
showDetails?: boolean;
|
|
25
26
|
className?: string;
|
|
27
|
+
/**
|
|
28
|
+
* ID for the strength label span. Pass the same value as the password input's
|
|
29
|
+
* aria-describedby for accessibility linking so screen readers associate the
|
|
30
|
+
* strength feedback with the input.
|
|
31
|
+
*/
|
|
32
|
+
'aria-describedby'?: string;
|
|
26
33
|
}
|
|
27
|
-
/**
|
|
28
|
-
* Password strength indicator component with visual feedback
|
|
29
|
-
*/
|
|
30
|
-
export declare const PasswordStrengthIndicator: React.NamedExoticComponent<PasswordStrengthIndicatorProps>;
|
|
31
34
|
/**
|
|
32
35
|
* Simplified password strength bar component
|
|
33
36
|
*/
|
|
34
|
-
export declare const PasswordStrengthBar:
|
|
37
|
+
export declare const PasswordStrengthBar: FC<{
|
|
35
38
|
score: PasswordStrength;
|
|
36
39
|
className?: string;
|
|
40
|
+
label?: string;
|
|
37
41
|
}>;
|
|
38
42
|
/**
|
|
39
|
-
* Password
|
|
43
|
+
* Enhanced Password Requirements Checklist
|
|
44
|
+
*
|
|
45
|
+
* @param requirements - Array of requirement strings. Memoize or define outside
|
|
46
|
+
* component to avoid unnecessary re-computation.
|
|
47
|
+
* @param custom_check - Optional custom checker for requirements the built-in
|
|
48
|
+
* logic cannot handle (e.g. "Not a commonly used password"). Return true/false
|
|
49
|
+
* to override, or undefined to fall back to built-in.
|
|
40
50
|
*/
|
|
41
|
-
export declare const PasswordRequirements:
|
|
51
|
+
export declare const PasswordRequirements: FC<{
|
|
42
52
|
requirements: string[];
|
|
43
53
|
password: string;
|
|
54
|
+
custom_check?: (requirement: string, password: string) => boolean | undefined;
|
|
44
55
|
className?: string;
|
|
56
|
+
title?: string;
|
|
45
57
|
}>;
|
|
58
|
+
export declare const PasswordStrengthIndicator: React.NamedExoticComponent<PasswordStrengthIndicatorProps>;
|
|
46
59
|
export default PasswordStrengthIndicator;
|
|
47
60
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordStrengthIndicator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordStrengthIndicator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AACpE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,oBAAY,gBAAgB;IAC1B,SAAS,IAAI;IACb,IAAI,IAAI;IACR,IAAI,IAAI;IACR,IAAI,IAAI;IACR,MAAM,IAAI;CACX;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,gBAAgB,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE;QACT,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;CACH;AAED,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,EAAE,sBAAsB,CAAC;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AA4LD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC;IACnC,KAAK,EAAE,gBAAgB,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CA+BC,CAAC;AAuBH;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC;IACpC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,CACb,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,KACb,OAAO,GAAG,SAAS,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAmEA,CAAC;AA0DF,eAAO,MAAM,yBAAyB,4DAAsC,CAAC;AAG7E,eAAe,yBAAyB,CAAC"}
|
|
@@ -9,7 +9,11 @@ export interface SimpleButtonProps {
|
|
|
9
9
|
type?: IDDButtonProps['type'];
|
|
10
10
|
className?: IDDButtonProps['buttonClass'];
|
|
11
11
|
variant?: ButtonVariant;
|
|
12
|
+
id?: string;
|
|
13
|
+
role?: string;
|
|
12
14
|
'data-testid'?: string;
|
|
15
|
+
'aria-controls'?: string;
|
|
16
|
+
'aria-selected'?: boolean;
|
|
13
17
|
}
|
|
14
18
|
declare const SimpleButton: FC<SimpleButtonProps>;
|
|
15
19
|
export default SimpleButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAEhF,MAAM,WAAW,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,EAAE,EAAE,CAAC,iBAAiB,CA+BvC,CAAC;AAIF,eAAe,YAAY,CAAC"}
|
|
@@ -2,15 +2,38 @@ import { type IDDInputProps } from '@integrativedesigndevelopment/idd-common';
|
|
|
2
2
|
import type { FC } from 'react';
|
|
3
3
|
export interface TextInputProps {
|
|
4
4
|
label: IDDInputProps['label'];
|
|
5
|
+
labelClass?: IDDInputProps['labelClass'];
|
|
6
|
+
componentClass?: IDDInputProps['componentClass'];
|
|
7
|
+
id?: IDDInputProps['id'];
|
|
5
8
|
onChange?: IDDInputProps['onChange'];
|
|
6
9
|
value?: IDDInputProps['value'];
|
|
7
10
|
placeholder?: IDDInputProps['placeholder'];
|
|
8
11
|
type?: IDDInputProps['type'];
|
|
9
|
-
readOnly?:
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
disabled?: IDDInputProps['disabled'];
|
|
14
|
+
required?: boolean;
|
|
15
|
+
disableHtmlValidation?: boolean;
|
|
16
|
+
onBlur?: IDDInputProps['onBlur'];
|
|
17
|
+
onFocus?: IDDInputProps['onFocus'];
|
|
10
18
|
error?: IDDInputProps['errors'];
|
|
11
19
|
errorColor?: IDDInputProps['errorColor'];
|
|
20
|
+
errorClass?: IDDInputProps['errorClass'];
|
|
12
21
|
isErrorOnlyColor?: boolean;
|
|
22
|
+
inputWrapperClass?: string;
|
|
23
|
+
inputClass?: string;
|
|
24
|
+
activeColor?: IDDInputProps['activeColor'];
|
|
25
|
+
inactiveColor?: IDDInputProps['inactiveColor'];
|
|
26
|
+
activeTextColor?: IDDInputProps['activeTextColor'];
|
|
27
|
+
inactiveTextColor?: IDDInputProps['inactiveTextColor'];
|
|
28
|
+
activeLabelColor?: IDDInputProps['activeLabelColor'];
|
|
29
|
+
inactiveLabelColor?: IDDInputProps['inactiveLabelColor'];
|
|
30
|
+
disabledColor?: string;
|
|
13
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Styled text input wrapping IDDInput with config-driven colors.
|
|
34
|
+
*
|
|
35
|
+
* @param isErrorOnlyColor - When true, error text uses idd-active-color; when false, uses errorColor prop.
|
|
36
|
+
*/
|
|
14
37
|
declare const TextInput: FC<TextInputProps>;
|
|
15
38
|
export default TextInput;
|
|
16
39
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAEnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,WAAW,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC3C,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChC,UAAU,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAEnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9B,UAAU,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACzC,cAAc,CAAC,EAAE,aAA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AM,CAAC;CACxB;AAED;;;;GAIG;AACH,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA+EjC,CAAC;AAIF,eAAe,SAAS,CAAC"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
export { ActivityProvider, page_view_event, pageViewEvent } from './ActivityProvider';
|
|
2
|
+
export type { PageViewEvent, TrackerEvent, TrackerHistory } from './ActivityProvider/types';
|
|
1
3
|
export type { CancelActionButtonProps } from './CancelActionButton';
|
|
2
4
|
export { default as CancelActionButton } from './CancelActionButton';
|
|
3
5
|
export type { ConfirmActionButtonProps } from './ConfirmActionButton';
|
|
4
6
|
export { default as ConfirmActionButton } from './ConfirmActionButton';
|
|
5
7
|
export type { ErrorBoundaryProps } from './ErrorBoundary';
|
|
6
8
|
export { default as ErrorBoundary } from './ErrorBoundary';
|
|
9
|
+
export { FormField } from './Forms/FormField';
|
|
10
|
+
export { SubmitButton } from './Forms/SubmitButton';
|
|
11
|
+
export { TermsCheckbox } from './Forms/TermsCheckbox';
|
|
7
12
|
export { isURL } from './helpers';
|
|
8
13
|
export type { IDDLinkInputItemProps, LinkProps } from './IDDLinkInputItem';
|
|
9
14
|
export { default as IDDLinkInputItem } from './IDDLinkInputItem';
|
|
@@ -11,6 +16,9 @@ export type { LayoutProps } from './Layout';
|
|
|
11
16
|
export { default as Layout } from './Layout';
|
|
12
17
|
export type { PasswordProps } from './Password';
|
|
13
18
|
export { default as Password } from './Password';
|
|
19
|
+
export type { PasswordStrengthIndicatorProps, PasswordStrengthResult } from './PasswordStrengthIndicator';
|
|
20
|
+
export { PasswordStrengthBar, PasswordRequirements, PasswordStrength } from './PasswordStrengthIndicator';
|
|
21
|
+
export { default as PasswordStrengthIndicator } from './PasswordStrengthIndicator';
|
|
14
22
|
export type { SimpleButtonProps } from './SimpleButton';
|
|
15
23
|
export { default as SimpleButton } from './SimpleButton';
|
|
16
24
|
export type { TextInputProps } from './TextInput';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
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AM,YAAY,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1G,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC1G,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACnF,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AAGnD,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGzC,cAAc,0BAA0B,CAAC"}
|
|
@@ -22,16 +22,20 @@ export declare const useIDDTheme: () => {
|
|
|
22
22
|
* Standard button variants based on IDD design system
|
|
23
23
|
*/
|
|
24
24
|
export declare const buttonVariants: {
|
|
25
|
-
readonly
|
|
26
|
-
readonly base: "
|
|
25
|
+
readonly default: {
|
|
26
|
+
readonly base: "";
|
|
27
27
|
readonly disabled: "opacity-50 cursor-not-allowed";
|
|
28
28
|
};
|
|
29
|
+
readonly primary: {
|
|
30
|
+
readonly base: "text-idd-primary-color bg-idd-tertiary-background border border-idd-transparent hover:bg-idd-active-color hover:text-idd-white focus:bg-idd-active-color focus:text-idd-white focus-visible:bg-idd-active-color focus-visible:text-idd-white";
|
|
31
|
+
readonly disabled: "bg-idd-tertiary-background text-idd-primary-color cursor-not-allowed";
|
|
32
|
+
};
|
|
29
33
|
readonly secondary: {
|
|
30
|
-
readonly base: "text-idd-active-color bg-idd-
|
|
34
|
+
readonly base: "text-idd-active-color bg-idd-white border border-idd-transparent hover:border-idd-active-color focus:border-idd-active-color focus-visible:border-idd-active-color";
|
|
31
35
|
readonly disabled: "opacity-50 cursor-not-allowed";
|
|
32
36
|
};
|
|
33
37
|
readonly tertiary: {
|
|
34
|
-
readonly base: "text-idd-
|
|
38
|
+
readonly base: "text-idd-primary-color bg-idd-white border-0 outline-none hover:underline hover:ouline-none focus:underline focus:ouline-none focus-visible:underline focus-visible:ouline-none";
|
|
35
39
|
readonly disabled: "opacity-50 cursor-not-allowed";
|
|
36
40
|
};
|
|
37
41
|
readonly outline: {
|
|
@@ -42,6 +46,10 @@ export declare const buttonVariants: {
|
|
|
42
46
|
readonly base: "text-idd-grey bg-transparent hover:bg-idd-grey-20 hover:text-idd-black focus:bg-idd-grey-20 focus:text-idd-black";
|
|
43
47
|
readonly disabled: "opacity-50 cursor-not-allowed";
|
|
44
48
|
};
|
|
49
|
+
readonly link: {
|
|
50
|
+
readonly base: "text-idd-active-color bg-transparent border-0 hover:underline hover:decoration-idd-active-color focus:underline focus:decoration-idd-active-color";
|
|
51
|
+
readonly disabled: "opacity-50 cursor-not-allowed";
|
|
52
|
+
};
|
|
45
53
|
readonly danger: {
|
|
46
54
|
readonly base: "text-idd-white bg-idd-red hover:opacity-90 focus:opacity-90";
|
|
47
55
|
readonly disabled: "opacity-50 cursor-not-allowed";
|
|
@@ -50,6 +58,10 @@ export declare const buttonVariants: {
|
|
|
50
58
|
readonly base: "text-idd-white bg-idd-green hover:opacity-90 focus:opacity-90";
|
|
51
59
|
readonly disabled: "opacity-50 cursor-not-allowed";
|
|
52
60
|
};
|
|
61
|
+
readonly inverse: {
|
|
62
|
+
readonly base: "text-idd-white bg-idd-black hover:bg-idd-active-color focus:bg-idd-active-color";
|
|
63
|
+
readonly disabled: "bg-idd-tertiary-background text-idd-primary-color cursor-not-allowed";
|
|
64
|
+
};
|
|
53
65
|
};
|
|
54
66
|
/**
|
|
55
67
|
* Common styles for consistent component appearance
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/utils/componentWrapper.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;YAOa,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAE1D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"componentWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/utils/componentWrapper.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;YAOa,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAE1D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;CAMf,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,eAAe,GAC1B,UAAS,MAAM,OAAO,cAA0B,EAChD,kBAAgB,EAChB,oBAAgB,WAOjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,cAAc,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACjC"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export type { UpdateUserInput, UpdateUserResponse, UpdateUserResult, UseUpdateUserReturn, } from './useUpdateUser';
|
|
2
2
|
export { useUpdateUser } from './useUpdateUser';
|
|
3
|
+
export type { User, UpdateUserMutationInput } from './useUserManagement';
|
|
4
|
+
export { useUserManagement } from './useUserManagement';
|
|
3
5
|
//# sourceMappingURL=index.d.ts.map
|