@integrativedesigndevelopment/dashboard-core 0.0.5 → 0.0.6
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/actions/pluginActions.d.ts +48 -0
- package/dist/actions/pluginActions.d.ts.map +1 -0
- package/dist/actions/types.d.ts +17 -0
- package/dist/actions/types.d.ts.map +1 -0
- package/dist/components/ActivityProvider/index.d.ts +10 -0
- package/dist/components/ActivityProvider/index.d.ts.map +1 -0
- package/dist/components/CancelActionButton/index.d.ts +14 -0
- package/dist/components/CancelActionButton/index.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +18 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/ConfirmActionButton/index.d.ts +14 -0
- package/dist/components/ConfirmActionButton/index.d.ts.map +1 -0
- package/dist/components/ErrorBoundary/index.d.ts +18 -0
- package/dist/components/ErrorBoundary/index.d.ts.map +1 -0
- package/dist/components/IDDLinkInputItem/index.d.ts +18 -0
- package/dist/components/IDDLinkInputItem/index.d.ts.map +1 -0
- package/dist/components/Layout/SimpleLayout.d.ts +8 -0
- package/dist/components/Layout/SimpleLayout.d.ts.map +1 -0
- package/dist/components/Layout/index.d.ts +8 -0
- package/dist/components/Layout/index.d.ts.map +1 -0
- package/dist/components/Loader/index.d.ts +16 -0
- package/dist/components/Loader/index.d.ts.map +1 -0
- package/dist/components/LoginBackground/index.d.ts +29 -0
- package/dist/components/LoginBackground/index.d.ts.map +1 -0
- package/dist/components/LoginBackground/index.improved.d.ts +16 -0
- package/dist/components/LoginBackground/index.improved.d.ts.map +1 -0
- package/dist/components/LoginBackground/types.d.ts +25 -0
- package/dist/components/LoginBackground/types.d.ts.map +1 -0
- package/dist/components/LoginBackground/utils.d.ts +30 -0
- package/dist/components/LoginBackground/utils.d.ts.map +1 -0
- package/dist/components/Modal/index.d.ts +18 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Password/index.d.ts +15 -0
- package/dist/components/Password/index.d.ts.map +1 -0
- package/dist/components/PasswordStrengthIndicator/index.d.ts +47 -0
- package/dist/components/PasswordStrengthIndicator/index.d.ts.map +1 -0
- package/dist/components/PasswordStrengthIndicator/index.improved.d.ts +47 -0
- package/dist/components/PasswordStrengthIndicator/index.improved.d.ts.map +1 -0
- package/dist/components/SimpleButton/index.d.ts +16 -0
- package/dist/components/SimpleButton/index.d.ts.map +1 -0
- package/dist/components/TextInput/index.d.ts +16 -0
- package/dist/components/TextInput/index.d.ts.map +1 -0
- package/dist/components/forms/FormField/index.d.ts +19 -0
- package/dist/components/forms/FormField/index.d.ts.map +1 -0
- package/dist/components/forms/FormField/index.improved.d.ts +27 -0
- package/dist/components/forms/FormField/index.improved.d.ts.map +1 -0
- package/dist/components/forms/SubmitButton/index.d.ts +11 -0
- package/dist/components/forms/SubmitButton/index.d.ts.map +1 -0
- package/dist/components/forms/SubmitButton/index.improved.d.ts +17 -0
- package/dist/components/forms/SubmitButton/index.improved.d.ts.map +1 -0
- package/dist/components/forms/TermsCheckbox/index.d.ts +13 -0
- package/dist/components/forms/TermsCheckbox/index.d.ts.map +1 -0
- package/dist/components/forms/TermsCheckbox/index.improved.d.ts +23 -0
- package/dist/components/forms/TermsCheckbox/index.improved.d.ts.map +1 -0
- package/dist/components/helpers.d.ts +5 -0
- package/dist/components/helpers.d.ts.map +1 -0
- package/dist/components/index.d.ts +25 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/media.d.ts +11 -0
- package/dist/components/media.d.ts.map +1 -0
- package/dist/components/utils/componentTemplate.d.ts +40 -0
- package/dist/components/utils/componentTemplate.d.ts.map +1 -0
- package/dist/components/utils/componentWrapper.d.ts +87 -0
- package/dist/components/utils/componentWrapper.d.ts.map +1 -0
- package/dist/config/index.d.ts +23 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useAsyncOperation.d.ts +12 -0
- package/dist/hooks/useAsyncOperation.d.ts.map +1 -0
- package/dist/hooks/useUpdateUser.d.ts +32 -0
- package/dist/hooks/useUpdateUser.d.ts.map +1 -0
- package/dist/hooks/useUserManagement.d.ts +51 -0
- package/dist/hooks/useUserManagement.d.ts.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/metrics/clsMetrics.d.ts +3 -0
- package/dist/metrics/clsMetrics.d.ts.map +1 -0
- package/dist/metrics/fcpMetrics.d.ts +3 -0
- package/dist/metrics/fcpMetrics.d.ts.map +1 -0
- package/dist/metrics/fidMetrics.d.ts +3 -0
- package/dist/metrics/fidMetrics.d.ts.map +1 -0
- package/dist/metrics/index.d.ts +3 -0
- package/dist/metrics/index.d.ts.map +1 -0
- package/dist/metrics/lcpMetrics.d.ts +3 -0
- package/dist/metrics/lcpMetrics.d.ts.map +1 -0
- package/dist/metrics/ttfbMetrics.d.ts +3 -0
- package/dist/metrics/ttfbMetrics.d.ts.map +1 -0
- package/dist/plugin-system/DashboardProvider.d.ts +14 -0
- package/dist/plugin-system/DashboardProvider.d.ts.map +1 -0
- package/dist/plugin-system/PluginManager.d.ts +9 -0
- package/dist/plugin-system/PluginManager.d.ts.map +1 -0
- package/dist/plugin-system/core/Dashboard/Icon.d.ts +6 -0
- package/dist/plugin-system/core/Dashboard/Icon.d.ts.map +1 -0
- package/dist/plugin-system/core/Dashboard/index.d.ts +4 -0
- package/dist/plugin-system/core/Dashboard/index.d.ts.map +1 -0
- package/dist/plugin-system/core/Dashboard/tab0.d.ts +8 -0
- package/dist/plugin-system/core/Dashboard/tab0.d.ts.map +1 -0
- package/dist/plugin-system/core/Dashboard/views/DashboardView/index.d.ts +3 -0
- package/dist/plugin-system/core/Dashboard/views/DashboardView/index.d.ts.map +1 -0
- package/dist/plugin-system/core/Dashboard/views/DashboardView/index.stories.d.ts +13 -0
- package/dist/plugin-system/core/Dashboard/views/DashboardView/index.stories.d.ts.map +1 -0
- package/dist/plugin-system/index.d.ts +6 -0
- package/dist/plugin-system/index.d.ts.map +1 -0
- package/dist/plugin-system/plugin_manifest.d.ts +2 -0
- package/dist/plugin-system/plugin_manifest.d.ts.map +1 -0
- package/dist/plugin-system/types.d.ts +76 -0
- package/dist/plugin-system/types.d.ts.map +1 -0
- package/dist/services/errorServices.d.ts +37 -0
- package/dist/services/errorServices.d.ts.map +1 -0
- package/dist/types/index.d.ts +76 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/array-safety.d.ts +32 -0
- package/dist/utils/array-safety.d.ts.map +1 -0
- package/dist/utils/assetValidation.d.ts +54 -0
- package/dist/utils/assetValidation.d.ts.map +1 -0
- package/dist/utils/fromReq.d.ts +3 -0
- package/dist/utils/fromReq.d.ts.map +1 -0
- package/dist/utils/helpers.d.ts +27 -0
- package/dist/utils/helpers.d.ts.map +1 -0
- package/dist/utils/isDeepEqual.d.ts +3 -0
- package/dist/utils/isDeepEqual.d.ts.map +1 -0
- package/dist/utils/logger.d.ts +3 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/validation.d.ts +93 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { IDDPlugin } from '../plugin-system/types';
|
|
2
|
+
export interface PluginState {
|
|
3
|
+
pluginID: string;
|
|
4
|
+
tabID: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const setPlugins: (plugins: IDDPlugin[]) => {
|
|
7
|
+
type: "set_plugins";
|
|
8
|
+
payload: IDDPlugin[];
|
|
9
|
+
};
|
|
10
|
+
export declare const setCurrentPlugin: (id: string) => {
|
|
11
|
+
type: "set_current_plugin";
|
|
12
|
+
payload: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const setCurrentTab: (tab: number) => {
|
|
15
|
+
type: "set_current_tab";
|
|
16
|
+
payload: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const setCurrentState: (state: PluginState[]) => {
|
|
19
|
+
type: "set_current_state";
|
|
20
|
+
payload: PluginState[];
|
|
21
|
+
};
|
|
22
|
+
export declare const setCurrentView: (view: string) => {
|
|
23
|
+
type: "set_current_view";
|
|
24
|
+
payload: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const setCurrentItem: (item: string) => {
|
|
27
|
+
type: "set_current_item";
|
|
28
|
+
payload: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const resetReducer: () => {
|
|
31
|
+
type: "reset";
|
|
32
|
+
};
|
|
33
|
+
export declare const setCurrentPluginAndTab: (pluginID: string, tabID: string) => (dispatch: any, getState: any) => void;
|
|
34
|
+
export declare const setCurrentTabAndState: (tabIndex: number, tabID: string) => (dispatch: any, getState: any) => void;
|
|
35
|
+
export declare const setSetting: (key: string, value: any) => {
|
|
36
|
+
type: "set_setting";
|
|
37
|
+
payload: {
|
|
38
|
+
key: string;
|
|
39
|
+
value: any;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export declare const toggleCollapsed: () => {
|
|
43
|
+
type: "toggle_collapsed";
|
|
44
|
+
};
|
|
45
|
+
export declare const toggleNotifications: () => {
|
|
46
|
+
type: "toggle_notifications";
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=pluginActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pluginActions.d.ts","sourceRoot":"","sources":["../../src/actions/pluginActions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,UAAU,GAAI,SAAS,SAAS,EAAE;;;CAG7C,CAAC;AAEH,eAAO,MAAM,gBAAgB,GAAI,IAAI,MAAM;;;CAGzC,CAAC;AAEH,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM;;;CAGvC,CAAC;AAEH,eAAO,MAAM,eAAe,GAAI,OAAO,WAAW,EAAE;;;CAGlD,CAAC;AAEH,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM;;;CAGzC,CAAC;AAEH,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM;;;CAGzC,CAAC;AAEH,eAAO,MAAM,YAAY;;CAEvB,CAAC;AAGH,eAAO,MAAM,sBAAsB,GAChC,UAAU,MAAM,EAAE,OAAO,MAAM,MAAM,UAAU,GAAG,EAAE,UAAU,GAAG,SAmBjE,CAAC;AAEJ,eAAO,MAAM,qBAAqB,GAC/B,UAAU,MAAM,EAAE,OAAO,MAAM,MAAM,UAAU,GAAG,EAAE,UAAU,GAAG,SAmBjE,CAAC;AAGJ,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,EAAE,OAAO,GAAG;;;;;;CAGhD,CAAC;AAGH,eAAO,MAAM,eAAe;;CAE1B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAE9B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const ActionTypes: {
|
|
2
|
+
readonly SET_PLUGINS: "set_plugins";
|
|
3
|
+
readonly SET_CURRENT_PLUGIN: "set_current_plugin";
|
|
4
|
+
readonly SET_CURRENT_TAB: "set_current_tab";
|
|
5
|
+
readonly SET_CURRENT_STATE: "set_current_state";
|
|
6
|
+
readonly SET_CURRENT_VIEW: "set_current_view";
|
|
7
|
+
readonly SET_CURRENT_ITEM: "set_current_item";
|
|
8
|
+
readonly COLLAPSED_TOGGLE: "toggle_collapsed";
|
|
9
|
+
readonly SET_COLOR_MODE: "set_color_mode";
|
|
10
|
+
readonly TOGGLE_NOTIFICATIONS: "toggle_notifications";
|
|
11
|
+
readonly SET_SETTING: "set_setting";
|
|
12
|
+
readonly SET_JWT: "SET_JWT";
|
|
13
|
+
readonly SET_USER: "SET_USER";
|
|
14
|
+
readonly RESET: "reset";
|
|
15
|
+
};
|
|
16
|
+
export type ActionType = (typeof ActionTypes)[keyof typeof ActionTypes];
|
|
17
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/actions/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;CAyBd,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const pageViewEvent: (pageId: any, userId: any) => {
|
|
2
|
+
type: string;
|
|
3
|
+
data: {
|
|
4
|
+
pageId: any;
|
|
5
|
+
userId: any;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare function ActivityProvider({ children }: any): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const useTracker: () => any;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ActivityProvider/index.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,aAAa,GAAI,QAAQ,GAAG,EAAE,QAAQ,GAAG;;;;;;CAMpD,CAAC;AAOH,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE,GAAG,2CA6CjD;AAED,eAAO,MAAM,UAAU,WAEtB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type IDDButtonProps } from '@integrativedesigndevelopment/idd-common';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
export interface CancelActionButtonProps {
|
|
4
|
+
children: IDDButtonProps['children'];
|
|
5
|
+
onPress?: IDDButtonProps['onPress'];
|
|
6
|
+
disabled?: IDDButtonProps['disabled'];
|
|
7
|
+
type?: IDDButtonProps['type'];
|
|
8
|
+
className?: IDDButtonProps['buttonClass'];
|
|
9
|
+
variant?: 'outline' | 'ghost';
|
|
10
|
+
'data-testid'?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const CancelActionButton: FC<CancelActionButtonProps>;
|
|
13
|
+
export default CancelActionButton;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAuBnD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { FC, ReactNode } from 'react';
|
|
2
|
+
export interface CardProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
title?: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
padding?: 'none' | 'small' | 'medium' | 'large';
|
|
8
|
+
shadow?: 'none' | 'small' | 'medium' | 'large';
|
|
9
|
+
border?: boolean;
|
|
10
|
+
'data-testid'?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Card wrapper component that provides standardized card styling
|
|
14
|
+
* and layout with dashboard-specific configuration.
|
|
15
|
+
*/
|
|
16
|
+
declare const Card: FC<CardProps>;
|
|
17
|
+
export default Card;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,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,CAsDvB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type IDDButtonProps } from '@integrativedesigndevelopment/idd-common';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
export interface ConfirmActionButtonProps {
|
|
4
|
+
children: IDDButtonProps['children'];
|
|
5
|
+
onPress?: IDDButtonProps['onPress'];
|
|
6
|
+
disabled?: IDDButtonProps['disabled'];
|
|
7
|
+
type?: IDDButtonProps['type'];
|
|
8
|
+
className?: IDDButtonProps['buttonClass'];
|
|
9
|
+
variant?: 'primary' | 'success' | 'danger';
|
|
10
|
+
'data-testid'?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const ConfirmActionButton: FC<ConfirmActionButtonProps>;
|
|
13
|
+
export default ConfirmActionButton;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAuBrD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { Component, type ErrorInfo, type ReactNode } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
fallback?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
interface State {
|
|
7
|
+
hasError: boolean;
|
|
8
|
+
error?: Error;
|
|
9
|
+
}
|
|
10
|
+
declare class ErrorBoundary extends Component<Props, State> {
|
|
11
|
+
state: State;
|
|
12
|
+
static getDerivedStateFromError(error: Error): State;
|
|
13
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
14
|
+
render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
15
|
+
}
|
|
16
|
+
export default ErrorBoundary;
|
|
17
|
+
export type { Props as ErrorBoundaryProps };
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorBoundary/index.tsx"],"names":[],"mappings":"AAAA,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,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;IAC1C,KAAK,EAAE,KAAK,CAEjB;WAEY,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK;IAKpD,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS;IAIpD,MAAM;CA6Bd;AAED,eAAe,aAAa,CAAC;AAC7B,YAAY,EAAE,KAAK,IAAI,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
export interface LinkProps {
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
path?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IDDLinkInputItemProps {
|
|
9
|
+
id: string;
|
|
10
|
+
idsArray?: string[];
|
|
11
|
+
onDelete: (e: any) => void;
|
|
12
|
+
onBlur?: (e: any) => void;
|
|
13
|
+
link?: LinkProps;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const IDDLinkInputItem: FC<IDDLinkInputItemProps>;
|
|
17
|
+
export default IDDLinkInputItem;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IDDLinkInputItem/index.tsx"],"names":[],"mappings":"AAMA,OAAc,EACZ,KAAK,EAAE,EAKR,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,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC3B,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA2G/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleLayout.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/SimpleLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/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,CAS7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +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;CACpB;AAED,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAa3B,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
export interface LoaderProps {
|
|
3
|
+
size?: 'small' | 'medium' | 'large';
|
|
4
|
+
message?: string;
|
|
5
|
+
show?: boolean;
|
|
6
|
+
color?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
'data-testid'?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Loader wrapper component that wraps IDDLoader with dashboard-specific
|
|
12
|
+
* styling and configuration.
|
|
13
|
+
*/
|
|
14
|
+
declare const Loader: FC<LoaderProps>;
|
|
15
|
+
export default Loader;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Loader/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,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,CA6B3B,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { LoginBackgroundProps } from './types';
|
|
3
|
+
declare const LoginBackground: FC<LoginBackgroundProps>;
|
|
4
|
+
/**
|
|
5
|
+
* Hook to dynamically change login background at runtime
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* ```tsx
|
|
9
|
+
* const setLoginBackground = useLoginBackground();
|
|
10
|
+
*
|
|
11
|
+
* // Change to image
|
|
12
|
+
* setLoginBackground({ type: 'image', value: '/new-image.jpg' });
|
|
13
|
+
*
|
|
14
|
+
* // Change to color
|
|
15
|
+
* setLoginBackground({ type: 'color', value: '#ff0000' });
|
|
16
|
+
*
|
|
17
|
+
* // Change to gradient
|
|
18
|
+
* setLoginBackground({ type: 'gradient', value: 'linear-gradient(45deg, #ff0000, #00ff00)' });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const useLoginBackground: () => (config: {
|
|
22
|
+
type?: "image" | "color" | "gradient";
|
|
23
|
+
value?: string;
|
|
24
|
+
fallback?: string;
|
|
25
|
+
backgroundSize?: string;
|
|
26
|
+
backgroundPosition?: string;
|
|
27
|
+
}) => void;
|
|
28
|
+
export default LoginBackground;
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LoginBackground/index.tsx"],"names":[],"mappings":"AACA,OAAc,EACZ,KAAK,EAAE,EAMR,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAGpD,QAAA,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAuI7C,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,kBAAkB,iBAElB;IACP,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,SAoDJ,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { LoginBackgroundProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Custom hook for dynamically changing login background
|
|
5
|
+
* Now returns a stable function reference using useCallback
|
|
6
|
+
*/
|
|
7
|
+
export declare const useLoginBackground: () => (config: {
|
|
8
|
+
type?: "image" | "color" | "gradient";
|
|
9
|
+
value?: string;
|
|
10
|
+
fallback?: string;
|
|
11
|
+
backgroundSize?: string;
|
|
12
|
+
backgroundPosition?: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
declare const _default: React.NamedExoticComponent<LoginBackgroundProps>;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=index.improved.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.improved.d.ts","sourceRoot":"","sources":["../../../src/components/LoginBackground/index.improved.tsx"],"names":[],"mappings":"AAAA,OAAO,KASN,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AA2LpD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,iBAalB;IACP,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,SAkCJ,CAAC;;AAGF,wBAAyC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type BackgroundType = 'image' | 'color' | 'gradient';
|
|
2
|
+
export interface LoginBackgroundConfig {
|
|
3
|
+
type: BackgroundType;
|
|
4
|
+
value: string;
|
|
5
|
+
fallback: string;
|
|
6
|
+
backgroundSize?: 'cover' | 'contain' | 'auto';
|
|
7
|
+
backgroundPosition?: string;
|
|
8
|
+
additionalStyles?: React.CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
export interface LoginBackgroundProps {
|
|
11
|
+
config?: LoginBackgroundConfig;
|
|
12
|
+
className?: string;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
onImageError?: (error: Event) => void;
|
|
15
|
+
onImageLoad?: (event: Event) => void;
|
|
16
|
+
'data-testid'?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface BackgroundStyleResult {
|
|
19
|
+
backgroundImage?: string;
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
backgroundSize?: string;
|
|
22
|
+
backgroundPosition?: string;
|
|
23
|
+
backgroundRepeat?: string;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/LoginBackground/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;AAE5D,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IAC9C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACxC;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { BackgroundStyleResult, LoginBackgroundConfig } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Generates CSS styles based on background configuration
|
|
4
|
+
*/
|
|
5
|
+
export declare const generateBackgroundStyles: (config: LoginBackgroundConfig) => BackgroundStyleResult;
|
|
6
|
+
/**
|
|
7
|
+
* Validates if a given string is a valid CSS color
|
|
8
|
+
*/
|
|
9
|
+
export declare const isValidColor: (color: string) => boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Validates if a given string is a valid image URL
|
|
12
|
+
*/
|
|
13
|
+
export declare const isValidImageUrl: (url: string) => boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Validates background configuration
|
|
16
|
+
*/
|
|
17
|
+
export declare const validateConfig: (config: LoginBackgroundConfig) => string[];
|
|
18
|
+
/**
|
|
19
|
+
* Creates a default configuration based on the project's idd.config.js
|
|
20
|
+
*/
|
|
21
|
+
export declare const createDefaultConfig: () => LoginBackgroundConfig;
|
|
22
|
+
/**
|
|
23
|
+
* Preloads an image and returns a promise
|
|
24
|
+
*/
|
|
25
|
+
export declare const preloadImage: (src: string) => Promise<HTMLImageElement>;
|
|
26
|
+
/**
|
|
27
|
+
* Debounce function for performance optimization
|
|
28
|
+
*/
|
|
29
|
+
export declare const debounce: <T extends (...args: any[]) => any>(func: T, wait: number) => ((...args: Parameters<T>) => void);
|
|
30
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/LoginBackground/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAiB5E;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,QAAQ,qBAAqB,KAC5B,qBA4BF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,KAAG,OAI5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,KAAG,OAO7C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,qBAAqB,KAAG,MAAM,EA0BpE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,QAAO,qBAUrC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,OAAO,CAAC,gBAAgB,CAOlE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACxD,MAAM,CAAC,EACP,MAAM,MAAM,KACX,CAAC,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAMnC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { FC, ReactNode } from 'react';
|
|
2
|
+
export interface ModalProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
showCloseButton?: boolean;
|
|
8
|
+
size?: 'small' | 'medium' | 'large' | 'full';
|
|
9
|
+
className?: string;
|
|
10
|
+
'data-testid'?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Modal component that provides a standardized modal interface
|
|
14
|
+
* with dashboard-specific styling and behavior.
|
|
15
|
+
*/
|
|
16
|
+
declare const Modal: FC<ModalProps>;
|
|
17
|
+
export default Modal;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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;AAE3C,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,QAAA,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAoEzB,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type IDDInputProps } from '@integrativedesigndevelopment/idd-common';
|
|
2
|
+
import { type FC } from 'react';
|
|
3
|
+
export interface PasswordProps {
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
label: IDDInputProps['label'];
|
|
6
|
+
value?: IDDInputProps['value'];
|
|
7
|
+
componentClass?: IDDInputProps['componentClass'];
|
|
8
|
+
appendToInputClass?: IDDInputProps['appendToInputClass'];
|
|
9
|
+
error?: IDDInputProps['errors'];
|
|
10
|
+
errorColor?: IDDInputProps['errorColor'];
|
|
11
|
+
isErrorOnlyColor?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const Password: FC<PasswordProps>;
|
|
14
|
+
export default Password;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Password/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EAEnB,MAAM,0CAA0C,CAAC;AAKlD,OAAO,EAEL,KAAK,EAAE,EAKR,MAAM,OAAO,CAAC;AAGf,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9B,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,cAAc,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACjD,kBAAkB,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IACzD,KAAK,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChC,UAAU,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,QAAA,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAkG/B,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare enum PasswordStrength {
|
|
3
|
+
VERY_WEAK = 0,
|
|
4
|
+
WEAK = 1,
|
|
5
|
+
FAIR = 2,
|
|
6
|
+
GOOD = 3,
|
|
7
|
+
STRONG = 4
|
|
8
|
+
}
|
|
9
|
+
export interface PasswordStrengthResult {
|
|
10
|
+
score: PasswordStrength;
|
|
11
|
+
label?: string;
|
|
12
|
+
entropy?: number;
|
|
13
|
+
crackTime?: string;
|
|
14
|
+
warnings: string[];
|
|
15
|
+
suggestions: string[];
|
|
16
|
+
isAcceptable?: boolean;
|
|
17
|
+
feedback?: {
|
|
18
|
+
warning?: string;
|
|
19
|
+
suggestions?: string[];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface PasswordStrengthIndicatorProps {
|
|
23
|
+
analysis: PasswordStrengthResult;
|
|
24
|
+
showDetails?: boolean;
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Password strength indicator component with visual feedback
|
|
29
|
+
*/
|
|
30
|
+
export declare const PasswordStrengthIndicator: React.NamedExoticComponent<PasswordStrengthIndicatorProps>;
|
|
31
|
+
/**
|
|
32
|
+
* Simplified password strength bar component
|
|
33
|
+
*/
|
|
34
|
+
export declare const PasswordStrengthBar: React.NamedExoticComponent<{
|
|
35
|
+
score: PasswordStrength;
|
|
36
|
+
className?: string;
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* Password requirements checklist component
|
|
40
|
+
*/
|
|
41
|
+
export declare const PasswordRequirements: React.FC<{
|
|
42
|
+
requirements: string[];
|
|
43
|
+
password: string;
|
|
44
|
+
className?: string;
|
|
45
|
+
}>;
|
|
46
|
+
export default PasswordStrengthIndicator;
|
|
47
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordStrengthIndicator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,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;AAQD,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,EAAE,sBAAsB,CAAC;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAEA;;GAEG;AACH,eAAO,MAAM,yBAAyB,4DAyErC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;WACvB,gBAAgB;gBACX,MAAM;EA+BlB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC1C,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAoDA,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React, { type FC } from 'react';
|
|
2
|
+
export declare enum PasswordStrength {
|
|
3
|
+
VERY_WEAK = 0,
|
|
4
|
+
WEAK = 1,
|
|
5
|
+
FAIR = 2,
|
|
6
|
+
GOOD = 3,
|
|
7
|
+
STRONG = 4
|
|
8
|
+
}
|
|
9
|
+
export interface PasswordStrengthResult {
|
|
10
|
+
score: PasswordStrength;
|
|
11
|
+
label?: string;
|
|
12
|
+
entropy?: number;
|
|
13
|
+
crackTime?: string;
|
|
14
|
+
warnings: string[];
|
|
15
|
+
suggestions: string[];
|
|
16
|
+
isAcceptable?: boolean;
|
|
17
|
+
feedback?: {
|
|
18
|
+
warning?: string;
|
|
19
|
+
suggestions?: string[];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface PasswordStrengthIndicatorProps {
|
|
23
|
+
analysis: PasswordStrengthResult;
|
|
24
|
+
showDetails?: boolean;
|
|
25
|
+
className?: string;
|
|
26
|
+
'aria-describedby'?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Simplified password strength bar component
|
|
30
|
+
*/
|
|
31
|
+
export declare const PasswordStrengthBar: FC<{
|
|
32
|
+
score: PasswordStrength;
|
|
33
|
+
className?: string;
|
|
34
|
+
label?: string;
|
|
35
|
+
}>;
|
|
36
|
+
/**
|
|
37
|
+
* Enhanced Password Requirements Checklist
|
|
38
|
+
*/
|
|
39
|
+
export declare const PasswordRequirements: FC<{
|
|
40
|
+
requirements: string[];
|
|
41
|
+
password: string;
|
|
42
|
+
className?: string;
|
|
43
|
+
title?: string;
|
|
44
|
+
}>;
|
|
45
|
+
export declare const PasswordStrengthIndicator: React.NamedExoticComponent<PasswordStrengthIndicatorProps>;
|
|
46
|
+
export default PasswordStrengthIndicator;
|
|
47
|
+
//# sourceMappingURL=index.improved.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.improved.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordStrengthIndicator/index.improved.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAGtD,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,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAwLD;;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,CAmCC,CAAC;AAsBH;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC;IACpC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAyDC,CAAC;AA6CH,eAAO,MAAM,yBAAyB,4DAAsC,CAAC;AAG7E,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type IDDButtonProps } from '@integrativedesigndevelopment/idd-common';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
import { type ButtonVariant } from '../utils/componentWrapper';
|
|
4
|
+
export interface SimpleButtonProps {
|
|
5
|
+
children: IDDButtonProps['children'];
|
|
6
|
+
onPress?: IDDButtonProps['onPress'];
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
disabled?: IDDButtonProps['disabled'];
|
|
9
|
+
type?: IDDButtonProps['type'];
|
|
10
|
+
className?: IDDButtonProps['buttonClass'];
|
|
11
|
+
variant?: ButtonVariant;
|
|
12
|
+
'data-testid'?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const SimpleButton: FC<SimpleButtonProps>;
|
|
15
|
+
export default SimpleButton;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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,iBAAiB;IAChC,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,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,aAAa,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAwBvC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type IDDInputProps } from '@integrativedesigndevelopment/idd-common';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
export interface TextInputProps {
|
|
4
|
+
label: IDDInputProps['label'];
|
|
5
|
+
onChange?: IDDInputProps['onChange'];
|
|
6
|
+
value?: IDDInputProps['value'];
|
|
7
|
+
placeholder?: IDDInputProps['placeholder'];
|
|
8
|
+
type?: IDDInputProps['type'];
|
|
9
|
+
readOnly?: IDDInputProps['readOnly'];
|
|
10
|
+
error?: IDDInputProps['errors'];
|
|
11
|
+
errorColor?: IDDInputProps['errorColor'];
|
|
12
|
+
isErrorOnlyColor?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const TextInput: FC<TextInputProps>;
|
|
15
|
+
export default TextInput;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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;CAC5B;AAED,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAuEjC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface FormFieldProps {
|
|
3
|
+
label: string;
|
|
4
|
+
type: string;
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
errors?: string[];
|
|
8
|
+
required?: boolean;
|
|
9
|
+
autoComplete?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
showErrors?: boolean;
|
|
13
|
+
showPasswordToggle?: boolean;
|
|
14
|
+
onTogglePassword?: () => void;
|
|
15
|
+
showPassword?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const FormField: React.NamedExoticComponent<FormFieldProps>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface FormFieldProps {
|
|
3
|
+
label: string;
|
|
4
|
+
type: string;
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
errors?: string[];
|
|
8
|
+
required?: boolean;
|
|
9
|
+
autoComplete?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
showErrors?: boolean;
|
|
13
|
+
showPasswordToggle?: boolean;
|
|
14
|
+
onTogglePassword?: () => void;
|
|
15
|
+
showPassword?: boolean;
|
|
16
|
+
name?: string;
|
|
17
|
+
id?: string;
|
|
18
|
+
maxLength?: number;
|
|
19
|
+
minLength?: number;
|
|
20
|
+
pattern?: string;
|
|
21
|
+
inputMode?: 'text' | 'numeric' | 'email' | 'tel' | 'url';
|
|
22
|
+
'aria-describedby'?: string;
|
|
23
|
+
'data-testid'?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const FormField: React.NamedExoticComponent<FormFieldProps>;
|
|
26
|
+
export default FormField;
|
|
27
|
+
//# sourceMappingURL=index.improved.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|