@akad/design-system 0.2.0-beta.3 → 0.2.0-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akad/design-system",
3
- "version": "0.2.0-beta.3",
3
+ "version": "0.2.0-beta.5",
4
4
  "main": "react/react.js",
5
5
  "types": "react/main.d.ts",
6
6
  "author": "Gabriel Mule <gabemule@gmail.com>",
@@ -45,6 +45,10 @@ export interface ProgressBarProps {
45
45
  type: BooleanConstructor;
46
46
  default: boolean;
47
47
  }
48
+ export interface TestIdProps {
49
+ type: StringConstructor;
50
+ default: string;
51
+ }
48
52
  export interface DsNotificationProps {
49
53
  className?: string;
50
54
  type?: string;
@@ -57,6 +61,7 @@ export interface DsNotificationProps {
57
61
  dismissible?: boolean;
58
62
  elevation?: number;
59
63
  progressBar?: boolean;
64
+ testId?: string;
60
65
  handleClose?: (event: React.MouseEvent) => void;
61
66
  }
62
67
  export interface DsNotificationConfig {
@@ -71,6 +76,7 @@ export interface DsNotificationConfig {
71
76
  elevation: ElevationProps;
72
77
  variant: NotificationVariantProps;
73
78
  progressBar: ProgressBarProps;
79
+ testId: TestIdProps;
74
80
  };
75
81
  }
76
82
  declare const DsNotificationConfig: DsNotificationConfig;
@@ -1,7 +1,7 @@
1
1
  import { DsNotificationProps } from './Notification.config';
2
2
 
3
3
  declare const DsNotification: {
4
- ({ className, type, variant, id, children, message, autoClose, autoCloseTimer, dismissible, elevation, progressBar, handleClose, }: DsNotificationProps): import("react/jsx-runtime").JSX.Element | null;
4
+ ({ className, type, variant, id, children, message, autoClose, autoCloseTimer, dismissible, elevation, progressBar, handleClose, testId, }: DsNotificationProps): import("react/jsx-runtime").JSX.Element | null;
5
5
  displayName: string;
6
6
  };
7
7
  export default DsNotification;
@@ -17,6 +17,7 @@ export declare const Default: {
17
17
  dismissible?: boolean | undefined;
18
18
  elevation?: number | undefined;
19
19
  progressBar?: boolean | undefined;
20
+ testId?: string | undefined;
20
21
  handleClose?: ((event: import('react').MouseEvent<Element, MouseEvent>) => void) | undefined;
21
22
  };
22
23
  };
@@ -34,6 +35,7 @@ export declare const NotificationSuccess: {
34
35
  dismissible?: boolean | undefined;
35
36
  elevation?: number | undefined;
36
37
  progressBar?: boolean | undefined;
38
+ testId?: string | undefined;
37
39
  handleClose?: ((event: import('react').MouseEvent<Element, MouseEvent>) => void) | undefined;
38
40
  };
39
41
  };
@@ -51,6 +53,7 @@ export declare const NotificationDanger: {
51
53
  dismissible?: boolean | undefined;
52
54
  elevation?: number | undefined;
53
55
  progressBar?: boolean | undefined;
56
+ testId?: string | undefined;
54
57
  handleClose?: ((event: import('react').MouseEvent<Element, MouseEvent>) => void) | undefined;
55
58
  };
56
59
  };
@@ -68,6 +71,7 @@ export declare const NotificationWarning: {
68
71
  dismissible?: boolean | undefined;
69
72
  elevation?: number | undefined;
70
73
  progressBar?: boolean | undefined;
74
+ testId?: string | undefined;
71
75
  handleClose?: ((event: import('react').MouseEvent<Element, MouseEvent>) => void) | undefined;
72
76
  };
73
77
  };
@@ -85,6 +89,7 @@ export declare const NotificationInfo: {
85
89
  dismissible?: boolean | undefined;
86
90
  elevation?: number | undefined;
87
91
  progressBar?: boolean | undefined;
92
+ testId?: string | undefined;
88
93
  handleClose?: ((event: import('react').MouseEvent<Element, MouseEvent>) => void) | undefined;
89
94
  };
90
95
  };
@@ -14,6 +14,10 @@ export interface InstructionLabelProps {
14
14
  type: StringConstructor;
15
15
  default: string;
16
16
  }
17
+ export interface TestIdProps {
18
+ type: StringConstructor;
19
+ default: string;
20
+ }
17
21
  export interface PasswordConfirmationConfig {
18
22
  name: string;
19
23
  class: string;
@@ -21,6 +25,7 @@ export interface PasswordConfirmationConfig {
21
25
  onChange: OnChangeProps;
22
26
  validationList: ValidationListProps;
23
27
  instructionLabel: InstructionLabelProps;
28
+ testId: TestIdProps;
24
29
  };
25
30
  }
26
31
  declare const DsPasswordConfirmationConfig: PasswordConfirmationConfig;
@@ -18,13 +18,15 @@ export interface DsPasswordConfirmationProps {
18
18
  }) => void;
19
19
  validationList: Array<ValidationRule>;
20
20
  instructionLabel: string;
21
+ testId?: string;
21
22
  }
22
23
  declare const DsPasswordConfirmation: {
23
- ({ onChange, validationList, instructionLabel, }: DsPasswordConfirmationProps): import("react/jsx-runtime").JSX.Element;
24
+ ({ onChange, validationList, instructionLabel, testId, }: DsPasswordConfirmationProps): import("react/jsx-runtime").JSX.Element;
24
25
  propTypes: {
25
26
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
26
- validationList: PropTypes.Validator<any[]>;
27
+ validationList: PropTypes.Requireable<any[]>;
27
28
  instructionLabel: PropTypes.Requireable<string>;
29
+ testId: PropTypes.Requireable<string>;
28
30
  };
29
31
  displayName: string;
30
32
  };