@cranberry-money/shared-types 3.0.3 → 3.0.5

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.
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Authentication and validation related type definitions
3
+ * Used for form validation and authentication flows
4
+ */
5
+ export interface PasswordValidation {
6
+ lengthValid: boolean;
7
+ notNumeric: boolean;
8
+ }
9
+ export interface EmailConfirmationPayload {
10
+ token: string;
11
+ }
12
+ export interface TokenValidation {
13
+ isValid: boolean;
14
+ isEmpty: boolean;
15
+ isValidFormat: boolean;
16
+ }
17
+ export interface FieldValidationResult {
18
+ isValid: boolean;
19
+ errors?: string[];
20
+ }
21
+ export interface ValidationRules {
22
+ required?: boolean;
23
+ minLength?: number;
24
+ maxLength?: number;
25
+ pattern?: RegExp;
26
+ custom?: (value: any) => boolean;
27
+ }
28
+ //# sourceMappingURL=auth-validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-validation.d.ts","sourceRoot":"","sources":["../src/auth-validation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;CACrB;AAGD,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;CACf;AAGD,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;CACxB;AAGD,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAGD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC;CAClC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Authentication and validation related type definitions
3
+ * Used for form validation and authentication flows
4
+ */
5
+ export {};
package/dist/index.d.ts CHANGED
@@ -9,4 +9,6 @@ export * from './instruments';
9
9
  export * from './navigation';
10
10
  export * from './auth';
11
11
  export * from './portfolio';
12
+ export * from './auth-validation';
13
+ export * from './ui';
12
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,MAAM,CAAC"}
package/dist/index.js CHANGED
@@ -10,3 +10,5 @@ export * from './instruments';
10
10
  export * from './navigation';
11
11
  export * from './auth';
12
12
  export * from './portfolio';
13
+ export * from './auth-validation';
14
+ export * from './ui';
package/dist/ui.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ /**
2
+ * UI-related type definitions
3
+ * Common types for UI components and styling
4
+ */
5
+ export type BadgeVariant = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' | 'neutral';
6
+ export type BadgeSize = 'sm' | 'md' | 'lg';
7
+ export interface BadgeConfig {
8
+ variant: BadgeVariant;
9
+ size?: BadgeSize;
10
+ className?: string;
11
+ }
12
+ export interface BadgeStyle {
13
+ className: string;
14
+ ariaLabel?: string;
15
+ }
16
+ export interface BadgeStyleWithText extends BadgeStyle {
17
+ displayText: string;
18
+ }
19
+ //# sourceMappingURL=ui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAE1G,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,YAAY,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,WAAW,EAAE,MAAM,CAAC;CACrB"}
package/dist/ui.js ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * UI-related type definitions
3
+ * Common types for UI components and styling
4
+ */
5
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cranberry-money/shared-types",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
4
4
  "description": "Shared TypeScript type definitions for MyPortfolio platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",