@akad/design-system 0.1.0-beta.3 → 0.1.0-beta.4

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.1.0-beta.3",
3
+ "version": "0.1.0-beta.4",
4
4
  "main": "react/react.js",
5
5
  "types": "react/main.d.ts",
6
6
  "author": "Gabriel Mule <gabemule@gmail.com>",
@@ -53,6 +53,14 @@ export interface ElevationProps {
53
53
  default: number;
54
54
  options: number[];
55
55
  }
56
+ export interface IdProps {
57
+ type: StringConstructor;
58
+ default: string;
59
+ }
60
+ export interface TestIdProps {
61
+ type: StringConstructor;
62
+ default: string;
63
+ }
56
64
  export interface CardConfig {
57
65
  name: string;
58
66
  class: string;
@@ -60,6 +68,8 @@ export interface CardConfig {
60
68
  backgroundColor: BackgroundColorProps;
61
69
  borderColor: BorderColorProps;
62
70
  elevation: ElevationProps;
71
+ id: IdProps;
72
+ testId: TestIdProps;
63
73
  };
64
74
  }
65
75
  declare const CardConfig: CardConfig;
@@ -1,6 +1,8 @@
1
1
  import { default as PropTypes } from 'prop-types';
2
2
 
3
3
  export interface DsCardProps {
4
+ id?: string;
5
+ testId?: string;
4
6
  children?: string | JSX.Element | JSX.Element[];
5
7
  className?: string;
6
8
  elevation?: number;
@@ -8,8 +10,10 @@ export interface DsCardProps {
8
10
  borderColor?: string;
9
11
  }
10
12
  declare const DsCard: {
11
- ({ children, className, elevation, backgroundColor, borderColor, }: DsCardProps): import("react/jsx-runtime").JSX.Element;
13
+ ({ id, testId, children, className, elevation, backgroundColor, borderColor, }: DsCardProps): import("react/jsx-runtime").JSX.Element;
12
14
  propTypes: {
15
+ id: PropTypes.Requireable<string>;
16
+ testId: PropTypes.Requireable<string>;
13
17
  backgroundColor: PropTypes.Requireable<import('./Card.config').Color>;
14
18
  borderColor: PropTypes.Requireable<import('./Card.config').Color>;
15
19
  elevation: PropTypes.Requireable<number>;
@@ -30,10 +30,20 @@ export interface BackgroundColorProps {
30
30
  default: BackgroundColor;
31
31
  options: BackgroundColor[];
32
32
  }
33
+ export interface IdProps {
34
+ type: StringConstructor;
35
+ default: string;
36
+ }
37
+ export interface TestIdProps {
38
+ type: StringConstructor;
39
+ default: string;
40
+ }
33
41
  export interface LoadingConfig {
34
42
  name: string;
35
43
  class: string;
36
44
  props: {
45
+ id: IdProps;
46
+ testId: TestIdProps;
37
47
  size: SizeProps;
38
48
  opacity: OpacityProps;
39
49
  fullscreen: FullscreenProps;
@@ -1,6 +1,8 @@
1
1
  import { default as PropTypes } from 'prop-types';
2
2
 
3
3
  export interface DsLoadingProps {
4
+ id?: string;
5
+ testId?: string;
4
6
  className?: string;
5
7
  size?: string;
6
8
  opacity?: boolean;
@@ -8,8 +10,10 @@ export interface DsLoadingProps {
8
10
  backgroundColor?: string;
9
11
  }
10
12
  declare const DsLoading: {
11
- ({ className, size, opacity, fullscreen, backgroundColor, }: DsLoadingProps): import("react/jsx-runtime").JSX.Element;
13
+ ({ id, testId, className, size, opacity, fullscreen, backgroundColor, }: DsLoadingProps): import("react/jsx-runtime").JSX.Element;
12
14
  propTypes: {
15
+ id: PropTypes.Requireable<string>;
16
+ testId: PropTypes.Requireable<string>;
13
17
  size: PropTypes.Requireable<import('./Loading.config').Size>;
14
18
  opacity: PropTypes.Requireable<boolean>;
15
19
  fullscreen: PropTypes.Requireable<boolean>;