@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
package/dist/types/index.d.ts
CHANGED
|
@@ -63,4 +63,14 @@ export interface Activity {
|
|
|
63
63
|
timestamp: Date;
|
|
64
64
|
userId?: string;
|
|
65
65
|
}
|
|
66
|
+
export interface AssetValidationResult {
|
|
67
|
+
exists: boolean;
|
|
68
|
+
error?: string;
|
|
69
|
+
fallbackUsed: boolean;
|
|
70
|
+
}
|
|
71
|
+
export interface AssetConfig {
|
|
72
|
+
path: string;
|
|
73
|
+
fallback?: string;
|
|
74
|
+
timeout?: number;
|
|
75
|
+
}
|
|
66
76
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/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,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset Validation Utilities
|
|
3
|
+
*
|
|
4
|
+
* Provides utilities for validating and handling asset loading with graceful fallbacks.
|
|
5
|
+
*/
|
|
6
|
+
import { type CSSProperties } from 'react';
|
|
7
|
+
import type { AssetValidationResult, AssetConfig } from '../types';
|
|
8
|
+
/**
|
|
9
|
+
* Validates if an asset exists and can be loaded
|
|
10
|
+
*/
|
|
11
|
+
export declare const validateAsset: (assetPath: string, timeout?: number) => Promise<AssetValidationResult>;
|
|
12
|
+
/**
|
|
13
|
+
* Validates multiple assets concurrently
|
|
14
|
+
*/
|
|
15
|
+
export declare const validateAssets: (assetPaths: string[], timeout?: number) => Promise<Record<string, AssetValidationResult>>;
|
|
16
|
+
/**
|
|
17
|
+
* Gets the appropriate background style based on asset validation
|
|
18
|
+
*/
|
|
19
|
+
export declare const getBackgroundStyle: (config: AssetConfig, validationResult?: AssetValidationResult) => CSSProperties;
|
|
20
|
+
/**
|
|
21
|
+
* React hook for asset validation in components
|
|
22
|
+
*/
|
|
23
|
+
export declare const useAssetValidation: (assetPath: string, timeout?: number) => {
|
|
24
|
+
result: AssetValidationResult;
|
|
25
|
+
isLoading: boolean;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Default asset paths that components commonly reference
|
|
29
|
+
*/
|
|
30
|
+
export declare const DEFAULT_ASSET_PATHS: {
|
|
31
|
+
readonly SIGNUP_THEME: "/signup-theme.png";
|
|
32
|
+
readonly LOGO_ENVIROME: "/logo-envirome.png";
|
|
33
|
+
readonly BVOC: "/bvoc.png";
|
|
34
|
+
readonly LOGO: "/logo.png";
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Default fallback colors for different components
|
|
38
|
+
*/
|
|
39
|
+
export declare const DEFAULT_FALLBACK_COLORS: {
|
|
40
|
+
readonly PRIMARY: "#ad0000";
|
|
41
|
+
readonly SECONDARY: "#0066cc";
|
|
42
|
+
readonly NEUTRAL: "#666666";
|
|
43
|
+
readonly SUCCESS: "#00A89D";
|
|
44
|
+
readonly WARNING: "#DD3150";
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Validates commonly required assets
|
|
48
|
+
*/
|
|
49
|
+
export declare const validateCommonAssets: () => Promise<Record<string, AssetValidationResult>>;
|
|
50
|
+
/**
|
|
51
|
+
* Console warning for missing assets (development only)
|
|
52
|
+
*/
|
|
53
|
+
export declare const warnMissingAssets: (validationResults: Record<string, AssetValidationResult>) => void;
|
|
54
|
+
//# sourceMappingURL=assetValidation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assetValidation.d.ts","sourceRoot":"","sources":["../../src/utils/assetValidation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,KAAK,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,aAAa,GACxB,WAAW,MAAM,EACjB,UAAS,MAAa,KACrB,OAAO,CAAC,qBAAqB,CAgC/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GACzB,YAAY,MAAM,EAAE,EACpB,UAAU,MAAM,KACf,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAY/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,WAAW,EACnB,mBAAmB,qBAAqB,KACvC,aAkBF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,WAAW,MAAM,EAAE,UAAU,MAAM;;;CA4BrE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;CAKtB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;CAM1B,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,oBAAoB,QAAa,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAE1F,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,mBAAmB,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,SAczF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/utils/helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAA0C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/utils/helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAA0C,MAAM,OAAO,CAAC;AAuDxE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAGD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAyE5C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,EAAE,WAAW,MAAM,WAMtD,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,mBAAmB,QAAO,qBAmBtC,CAAC;AAEF,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAQpD;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE,CAQzC;AAED,eAAO,MAAM,iBAAiB,GAAI,KAAK,GAAG,KAAG,MAwB5C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,MAE1C,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generic validation utilities for dashboard components
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Sanitize user input to prevent XSS attacks
|
|
6
|
+
* @param input - Raw user input
|
|
7
|
+
* @returns Sanitized string
|
|
8
|
+
*/
|
|
9
|
+
export declare const sanitizeInput: (input: string) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Validate email format
|
|
12
|
+
* @param email - Email to validate
|
|
13
|
+
* @returns true if valid email format
|
|
14
|
+
*/
|
|
15
|
+
export declare const isValidEmail: (email: string) => boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Validate URL format
|
|
18
|
+
* @param url - URL to validate
|
|
19
|
+
* @returns true if valid URL format
|
|
20
|
+
*/
|
|
21
|
+
export declare const isValidUrl: (url: string) => boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a string is empty or only contains whitespace
|
|
24
|
+
* @param value - String to check
|
|
25
|
+
* @returns true if empty or whitespace only
|
|
26
|
+
*/
|
|
27
|
+
export declare const isEmpty: (value: string | null | undefined) => boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Validate string length within bounds
|
|
30
|
+
* @param value - String to validate
|
|
31
|
+
* @param min - Minimum length
|
|
32
|
+
* @param max - Maximum length
|
|
33
|
+
* @returns true if within bounds
|
|
34
|
+
*/
|
|
35
|
+
export declare const isLengthValid: (value: string, min: number, max: number) => boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Check if string contains only alphanumeric characters
|
|
38
|
+
* @param value - String to check
|
|
39
|
+
* @returns true if only alphanumeric
|
|
40
|
+
*/
|
|
41
|
+
export declare const isAlphanumeric: (value: string) => boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Check if string contains only letters
|
|
44
|
+
* @param value - String to check
|
|
45
|
+
* @returns true if only letters
|
|
46
|
+
*/
|
|
47
|
+
export declare const isAlpha: (value: string) => boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Check if string contains only numbers
|
|
50
|
+
* @param value - String to check
|
|
51
|
+
* @returns true if only numbers
|
|
52
|
+
*/
|
|
53
|
+
export declare const isNumeric: (value: string) => boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Validate phone number format (basic)
|
|
56
|
+
* @param phone - Phone number to validate
|
|
57
|
+
* @returns true if valid phone format
|
|
58
|
+
*/
|
|
59
|
+
export declare const isValidPhone: (phone: string) => boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Trim and normalize whitespace in a string
|
|
62
|
+
* @param value - String to normalize
|
|
63
|
+
* @returns Normalized string
|
|
64
|
+
*/
|
|
65
|
+
export declare const normalizeWhitespace: (value: string) => string;
|
|
66
|
+
/**
|
|
67
|
+
* Check if value matches a pattern
|
|
68
|
+
* @param value - Value to check
|
|
69
|
+
* @param pattern - RegExp pattern
|
|
70
|
+
* @returns true if matches pattern
|
|
71
|
+
*/
|
|
72
|
+
export declare const matchesPattern: (value: string, pattern: RegExp) => boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Validate date string format
|
|
75
|
+
* @param dateString - Date string to validate
|
|
76
|
+
* @returns true if valid date
|
|
77
|
+
*/
|
|
78
|
+
export declare const isValidDate: (dateString: string) => boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Generic field validation result
|
|
81
|
+
*/
|
|
82
|
+
export interface ValidationResult {
|
|
83
|
+
isValid: boolean;
|
|
84
|
+
errors: string[];
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Create a validation result
|
|
88
|
+
* @param isValid - Whether validation passed
|
|
89
|
+
* @param errors - Array of error messages
|
|
90
|
+
* @returns ValidationResult object
|
|
91
|
+
*/
|
|
92
|
+
export declare const createValidationResult: (isValid: boolean, errors?: string[]) => ValidationResult;
|
|
93
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,MAY7C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,KAAG,OAG5C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,KAAG,OAOxC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,OAE1D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GACxB,OAAO,MAAM,EACb,KAAK,MAAM,EACX,KAAK,MAAM,KACV,OAGF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,OAE9C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,MAAM,KAAG,OAEvC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,KAAG,OAEzC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,KAAG,OAI5C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,KAAG,MAEnD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,EAAE,SAAS,MAAM,KAAG,OAE/D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,YAAY,MAAM,KAAG,OAGhD,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GACjC,SAAS,OAAO,EAChB,SAAQ,MAAM,EAAO,KACpB,gBAGD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@integrativedesigndevelopment/dashboard-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "Core components and utilities for IDD Dashboard",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"module": "dist/index.esm.js",
|
|
@@ -28,32 +29,32 @@
|
|
|
28
29
|
"author": "Integrative Design Development",
|
|
29
30
|
"license": "MIT",
|
|
30
31
|
"peerDependencies": {
|
|
31
|
-
"react": "
|
|
32
|
-
"react-dom": "
|
|
32
|
+
"react": "18.3.1",
|
|
33
|
+
"react-dom": "18.3.1"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@integrativedesigndevelopment/idd-common": "
|
|
36
|
-
"deepmerge": "
|
|
37
|
-
"luxon": "
|
|
38
|
-
"react-redux": "
|
|
39
|
-
"
|
|
40
|
-
"
|
|
36
|
+
"@integrativedesigndevelopment/idd-common": "3.3.2",
|
|
37
|
+
"deepmerge": "4.3.1",
|
|
38
|
+
"luxon": "3.7.2",
|
|
39
|
+
"react-redux": "7.2.9",
|
|
40
|
+
"react-tracker": "0.0.8",
|
|
41
|
+
"redux": "5.0.1",
|
|
42
|
+
"reselect": "5.1.1"
|
|
41
43
|
},
|
|
42
44
|
"devDependencies": {
|
|
43
|
-
"@rollup/plugin-commonjs": "
|
|
44
|
-
"@rollup/plugin-node-resolve": "
|
|
45
|
-
"@rollup/plugin-typescript": "
|
|
45
|
+
"@rollup/plugin-commonjs": "28.0.6",
|
|
46
|
+
"@rollup/plugin-node-resolve": "16.0.1",
|
|
47
|
+
"@rollup/plugin-typescript": "12.1.4",
|
|
46
48
|
"@types/jsdom": "21.1.7",
|
|
47
|
-
"@types/react": "
|
|
48
|
-
"@types/react-dom": "
|
|
49
|
+
"@types/react": "18.3.25",
|
|
50
|
+
"@types/react-dom": "18.3.7",
|
|
49
51
|
"jsdom": "26.1.0",
|
|
50
|
-
"rollup": "
|
|
51
|
-
"rollup-plugin-peer-deps-external": "
|
|
52
|
-
"rollup-plugin-terser": "
|
|
53
|
-
"typescript": "
|
|
52
|
+
"rollup": "4.52.3",
|
|
53
|
+
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
54
|
+
"rollup-plugin-terser": "7.0.2",
|
|
55
|
+
"typescript": "5.9.2"
|
|
54
56
|
},
|
|
55
57
|
"publishConfig": {
|
|
56
58
|
"access": "restricted"
|
|
57
|
-
}
|
|
58
|
-
"gitHead": "a19da2114d52e94a297e0d1a39f881af857ac959"
|
|
59
|
+
}
|
|
59
60
|
}
|