@integrativedesigndevelopment/dashboard-core 0.0.2 → 0.0.3
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/components/CancelActionButton/index.d.ts +3 -0
- package/dist/components/CancelActionButton/index.d.ts.map +1 -1
- 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 +2 -0
- package/dist/components/ConfirmActionButton/index.d.ts.map +1 -1
- package/dist/components/IDDLink/index.d.ts +3 -1
- package/dist/components/IDDLink/index.d.ts.map +1 -1
- 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 +27 -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/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 +11 -5
- package/dist/components/SimpleButton/index.d.ts.map +1 -1
- 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/index.d.ts +9 -0
- package/dist/components/index.d.ts.map +1 -1
- 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/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/assetValidation.d.ts +54 -0
- package/dist/utils/assetValidation.d.ts.map +1 -0
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/utils/validation.d.ts +93 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/package.json +21 -20
|
@@ -4,7 +4,10 @@ export interface CancelActionButtonProps {
|
|
|
4
4
|
children: IDDButtonProps['children'];
|
|
5
5
|
onPress?: IDDButtonProps['onPress'];
|
|
6
6
|
disabled?: IDDButtonProps['disabled'];
|
|
7
|
+
type?: IDDButtonProps['type'];
|
|
7
8
|
className?: IDDButtonProps['buttonClass'];
|
|
9
|
+
variant?: 'outline' | 'ghost';
|
|
10
|
+
'data-testid'?: string;
|
|
8
11
|
}
|
|
9
12
|
declare const CancelActionButton: FC<CancelActionButtonProps>;
|
|
10
13
|
export default CancelActionButton;
|
|
@@ -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;
|
|
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"}
|
|
@@ -6,6 +6,8 @@ export interface ConfirmActionButtonProps {
|
|
|
6
6
|
disabled?: IDDButtonProps['disabled'];
|
|
7
7
|
type?: IDDButtonProps['type'];
|
|
8
8
|
className?: IDDButtonProps['buttonClass'];
|
|
9
|
+
variant?: 'primary' | 'success' | 'danger';
|
|
10
|
+
'data-testid'?: string;
|
|
9
11
|
}
|
|
10
12
|
declare const ConfirmActionButton: FC<ConfirmActionButtonProps>;
|
|
11
13
|
export default ConfirmActionButton;
|
|
@@ -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;
|
|
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"}
|
|
@@ -5,6 +5,8 @@ export interface IDDLinkProps {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
id?: string;
|
|
7
7
|
target?: string;
|
|
8
|
+
variant?: 'default' | 'primary' | 'secondary';
|
|
9
|
+
'data-testid'?: string;
|
|
8
10
|
}
|
|
9
|
-
export default function IDDLink({ children, href, className, id, target, }: IDDLinkProps): ReactElement;
|
|
11
|
+
export default function IDDLink({ children, href, className, id, target, variant, 'data-testid': testId, }: IDDLinkProps): ReactElement;
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IDDLink/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IDDLink/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,QAAQ,EACR,IAAI,EACJ,SAAc,EACd,EAAE,EACF,MAAgB,EAChB,OAAmB,EACnB,aAAa,EAAE,MAAM,GACtB,EAAE,YAAY,GAAG,YAAY,CA4B7B"}
|
|
@@ -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,27 @@
|
|
|
1
|
+
export type BackgroundType = 'image' | 'color' | 'gradient';
|
|
2
|
+
export interface LoginBackgroundConfig {
|
|
3
|
+
type: BackgroundType;
|
|
4
|
+
value: string;
|
|
5
|
+
fallback: string;
|
|
6
|
+
borderRadius?: string;
|
|
7
|
+
backgroundSize?: 'cover' | 'contain' | 'auto';
|
|
8
|
+
backgroundPosition?: string;
|
|
9
|
+
additionalStyles?: React.CSSProperties;
|
|
10
|
+
}
|
|
11
|
+
export interface LoginBackgroundProps {
|
|
12
|
+
config?: LoginBackgroundConfig;
|
|
13
|
+
className?: string;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
onImageError?: (error: Event) => void;
|
|
16
|
+
onImageLoad?: (event: Event) => void;
|
|
17
|
+
'data-testid'?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface BackgroundStyleResult {
|
|
20
|
+
backgroundImage?: string;
|
|
21
|
+
backgroundColor?: string;
|
|
22
|
+
backgroundSize?: string;
|
|
23
|
+
backgroundPosition?: string;
|
|
24
|
+
backgroundRepeat?: string;
|
|
25
|
+
borderRadius?: string;
|
|
26
|
+
}
|
|
27
|
+
//# 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,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,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;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -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;AAkB5E;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,QAAQ,qBAAqB,KAC5B,qBAiCF,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,qBAWrC,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,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"}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type IDDButtonProps } from '@integrativedesigndevelopment/idd-common';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
import { type ButtonVariant } from '../utils/componentWrapper';
|
|
2
4
|
export interface SimpleButtonProps {
|
|
3
|
-
children:
|
|
5
|
+
children: IDDButtonProps['children'];
|
|
6
|
+
onPress?: IDDButtonProps['onPress'];
|
|
4
7
|
onClick?: () => void;
|
|
5
|
-
|
|
6
|
-
|
|
8
|
+
disabled?: IDDButtonProps['disabled'];
|
|
9
|
+
type?: IDDButtonProps['type'];
|
|
10
|
+
className?: IDDButtonProps['buttonClass'];
|
|
11
|
+
variant?: ButtonVariant;
|
|
12
|
+
'data-testid'?: string;
|
|
7
13
|
}
|
|
8
|
-
declare const SimpleButton:
|
|
14
|
+
declare const SimpleButton: FC<SimpleButtonProps>;
|
|
9
15
|
export default SimpleButton;
|
|
10
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
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,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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SubmitButtonProps {
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
text: string;
|
|
6
|
+
loadingText: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const SubmitButton: React.NamedExoticComponent<SubmitButtonProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SubmitButtonProps {
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
text: string;
|
|
6
|
+
loadingText?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
variant?: 'primary' | 'secondary' | 'danger' | 'ghost';
|
|
9
|
+
size?: 'small' | 'medium' | 'large';
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
'aria-label'?: string;
|
|
12
|
+
'data-testid'?: string;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const SubmitButton: React.NamedExoticComponent<SubmitButtonProps>;
|
|
16
|
+
export default SubmitButton;
|
|
17
|
+
//# sourceMappingURL=index.improved.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TermsCheckboxProps {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
onChange: (checked: boolean) => void;
|
|
5
|
+
errors?: string[];
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
showErrors?: boolean;
|
|
8
|
+
termsUrl?: string;
|
|
9
|
+
privacyUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const TermsCheckbox: React.NamedExoticComponent<TermsCheckboxProps>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { type FC } from 'react';
|
|
2
|
+
export interface TermsCheckboxProps {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
onChange: (checked: boolean) => void;
|
|
5
|
+
errors?: string[];
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
showErrors?: boolean;
|
|
8
|
+
termsUrl?: string;
|
|
9
|
+
privacyUrl?: string;
|
|
10
|
+
customText?: React.ReactNode;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
id?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
'aria-describedby'?: string;
|
|
15
|
+
'data-testid'?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const TermsCheckbox: React.NamedExoticComponent<TermsCheckboxProps>;
|
|
18
|
+
/**
|
|
19
|
+
* Alternative styled checkbox with custom icon
|
|
20
|
+
*/
|
|
21
|
+
export declare const StyledTermsCheckbox: FC<TermsCheckboxProps>;
|
|
22
|
+
export default TermsCheckbox;
|
|
23
|
+
//# sourceMappingURL=index.improved.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -11,6 +11,15 @@ export type { LayoutProps } from './Layout';
|
|
|
11
11
|
export { default as Layout } from './Layout';
|
|
12
12
|
export type { PasswordProps } from './Password';
|
|
13
13
|
export { default as Password } from './Password';
|
|
14
|
+
export type { SimpleButtonProps } from './SimpleButton';
|
|
15
|
+
export { default as SimpleButton } from './SimpleButton';
|
|
14
16
|
export type { TextInputProps } from './TextInput';
|
|
15
17
|
export { default as TextInput } from './TextInput';
|
|
18
|
+
export type { ModalProps } from './Modal';
|
|
19
|
+
export { default as Modal } from './Modal';
|
|
20
|
+
export type { LoaderProps } from './Loader';
|
|
21
|
+
export { default as Loader } from './Loader';
|
|
22
|
+
export type { CardProps } from './Card';
|
|
23
|
+
export { default as Card } from './Card';
|
|
24
|
+
export * from './utils/componentWrapper';
|
|
16
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,YAAY,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,YAAY,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,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"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Template for creating standardized IDD-Common component wrappers
|
|
3
|
+
*
|
|
4
|
+
* This template ensures consistency across all wrapped components
|
|
5
|
+
* and provides a starting point for new component development.
|
|
6
|
+
*/
|
|
7
|
+
import type { FC } from 'react';
|
|
8
|
+
import { ComponentWrapperProps } from './componentWrapper';
|
|
9
|
+
export interface TemplateComponentProps extends ComponentWrapperProps {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
variant?: 'primary' | 'secondary';
|
|
12
|
+
onPress?: () => void;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Template Component - Replace with actual component name
|
|
17
|
+
*
|
|
18
|
+
* A standardized wrapper around IDD-Common components that provides:
|
|
19
|
+
* - Consistent styling through variant system
|
|
20
|
+
* - Type safety with proper TypeScript integration
|
|
21
|
+
* - Accessibility features (data-testid, proper focus management)
|
|
22
|
+
* - Backward compatibility where needed
|
|
23
|
+
* - Integration with IDD configuration system
|
|
24
|
+
*/
|
|
25
|
+
declare const TemplateComponent: FC<TemplateComponentProps>;
|
|
26
|
+
export default TemplateComponent;
|
|
27
|
+
/**
|
|
28
|
+
* Usage Example:
|
|
29
|
+
*
|
|
30
|
+
* import { TemplateComponent } from '@integrativedesigndevelopment/dashboard-core';
|
|
31
|
+
*
|
|
32
|
+
* <TemplateComponent
|
|
33
|
+
* variant="primary"
|
|
34
|
+
* onPress={() => console.log('clicked')}
|
|
35
|
+
* data-testid="my-component"
|
|
36
|
+
* >
|
|
37
|
+
* Component Content
|
|
38
|
+
* </TemplateComponent>
|
|
39
|
+
*/
|
|
40
|
+
//# sourceMappingURL=componentTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentTemplate.d.ts","sourceRoot":"","sources":["../../../src/components/utils/componentTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAG3D,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;IACnE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAElC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAqCjD,CAAC;AAEF,eAAe,iBAAiB,CAAC;AAEjC;;;;;;;;;;;;GAYG"}
|