@akad/design-system 0.2.0-beta.13 → 0.2.0-beta.14
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 +1 -1
- package/react/components/atoms/Button/Button.config.d.ts +10 -0
- package/react/components/atoms/Button/Button.d.ts +5 -1
- package/react/components/atoms/Card/Card.config.d.ts +10 -0
- package/react/components/atoms/Card/Card.d.ts +5 -1
- package/react/react-lib.js +855 -828
- package/react/react-lib.umd.cjs +4 -4
package/package.json
CHANGED
|
@@ -73,6 +73,14 @@ export interface FullSizeProps {
|
|
|
73
73
|
type: BooleanConstructor;
|
|
74
74
|
default: boolean;
|
|
75
75
|
}
|
|
76
|
+
export interface GtmIdProps {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
}
|
|
80
|
+
export interface GtmLabelProps {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
}
|
|
76
84
|
export interface ButtonConfig {
|
|
77
85
|
name: string;
|
|
78
86
|
class: string;
|
|
@@ -88,6 +96,8 @@ export interface ButtonConfig {
|
|
|
88
96
|
id: IdProps;
|
|
89
97
|
testId: TestIdProps;
|
|
90
98
|
fullSize: FullSizeProps;
|
|
99
|
+
gtmId: GtmIdProps;
|
|
100
|
+
gtmLabel: GtmLabelProps;
|
|
91
101
|
};
|
|
92
102
|
}
|
|
93
103
|
declare const ButtonConfig: ButtonConfig;
|
|
@@ -15,9 +15,11 @@ export interface DsButtonProps extends HTMLAttributes<HTMLButtonElement> {
|
|
|
15
15
|
iconFill?: boolean;
|
|
16
16
|
iconPosition?: string;
|
|
17
17
|
fullSize?: boolean;
|
|
18
|
+
gtmId?: string;
|
|
19
|
+
gtmLabel?: string;
|
|
18
20
|
}
|
|
19
21
|
declare const DsButton: {
|
|
20
|
-
({ children, className, onClick, size, disabled, icon, id, testId, elevation, variant, color, iconFill, iconPosition, fullSize, }: DsButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
({ children, className, onClick, size, disabled, icon, id, testId, elevation, variant, color, iconFill, iconPosition, fullSize, gtmId, gtmLabel, }: DsButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
21
23
|
propTypes: {
|
|
22
24
|
color: PropTypes.Requireable<import('./Button.config').Color>;
|
|
23
25
|
variant: PropTypes.Requireable<import('./Button.config').Variant>;
|
|
@@ -29,6 +31,8 @@ declare const DsButton: {
|
|
|
29
31
|
testId: PropTypes.Requireable<string>;
|
|
30
32
|
id: PropTypes.Requireable<string>;
|
|
31
33
|
fullSize: PropTypes.Requireable<boolean>;
|
|
34
|
+
gtmId: PropTypes.Requireable<string>;
|
|
35
|
+
gtmLabel: PropTypes.Requireable<string>;
|
|
32
36
|
};
|
|
33
37
|
displayName: string;
|
|
34
38
|
};
|
|
@@ -61,6 +61,14 @@ export interface TestIdProps {
|
|
|
61
61
|
type: StringConstructor;
|
|
62
62
|
default: string;
|
|
63
63
|
}
|
|
64
|
+
export interface GtmIdProps {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
}
|
|
68
|
+
export interface GtmLabelProps {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: string;
|
|
71
|
+
}
|
|
64
72
|
export interface CardConfig {
|
|
65
73
|
name: string;
|
|
66
74
|
class: string;
|
|
@@ -70,6 +78,8 @@ export interface CardConfig {
|
|
|
70
78
|
elevation: ElevationProps;
|
|
71
79
|
id: IdProps;
|
|
72
80
|
testId: TestIdProps;
|
|
81
|
+
gtmId: GtmIdProps;
|
|
82
|
+
gtmLabel: GtmLabelProps;
|
|
73
83
|
};
|
|
74
84
|
}
|
|
75
85
|
declare const CardConfig: CardConfig;
|
|
@@ -8,15 +8,19 @@ export interface DsCardProps {
|
|
|
8
8
|
elevation?: number;
|
|
9
9
|
backgroundColor?: string;
|
|
10
10
|
borderColor?: string;
|
|
11
|
+
gtmId?: string;
|
|
12
|
+
gtmLabel?: string;
|
|
11
13
|
}
|
|
12
14
|
declare const DsCard: {
|
|
13
|
-
({ id, testId, children, className, elevation, backgroundColor, borderColor, }: DsCardProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
({ id, testId, children, className, elevation, backgroundColor, borderColor, gtmId, gtmLabel, }: DsCardProps): import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
propTypes: {
|
|
15
17
|
id: PropTypes.Requireable<string>;
|
|
16
18
|
testId: PropTypes.Requireable<string>;
|
|
17
19
|
backgroundColor: PropTypes.Requireable<import('./Card.config').Color>;
|
|
18
20
|
borderColor: PropTypes.Requireable<import('./Card.config').Color>;
|
|
19
21
|
elevation: PropTypes.Requireable<number>;
|
|
22
|
+
gtmId: PropTypes.Requireable<string>;
|
|
23
|
+
gtmLabel: PropTypes.Requireable<string>;
|
|
20
24
|
};
|
|
21
25
|
displayName: string;
|
|
22
26
|
};
|