@akad/design-system 1.0.0-alpha.4 → 1.0.0-alpha.6

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.
@@ -75,14 +75,6 @@ export interface ButtonFullSizeProps {
75
75
  type: BooleanConstructor;
76
76
  default: boolean;
77
77
  }
78
- export interface ButtonTrackIdProps {
79
- type: StringConstructor;
80
- default: string;
81
- }
82
- export interface ButtonTrackLabelProps {
83
- type: StringConstructor;
84
- default: string;
85
- }
86
78
  export interface ButtonConfig {
87
79
  name: string;
88
80
  class: string;
@@ -98,8 +90,6 @@ export interface ButtonConfig {
98
90
  id: ButtonIdProps;
99
91
  testId: ButtonTestIdProps;
100
92
  fullSize: ButtonFullSizeProps;
101
- trackId: ButtonTrackIdProps;
102
- trackLabel: ButtonTrackLabelProps;
103
93
  };
104
94
  }
105
95
  declare const buttonConfig: ButtonConfig;
@@ -1,3 +1,4 @@
1
+ import { PushClickEventOptions } from '@akad/data-owl';
1
2
  import { default as PropTypes } from 'prop-types';
2
3
  import { HTMLAttributes, ReactNode } from 'react';
3
4
 
@@ -15,11 +16,10 @@ export interface DsButtonProps extends HTMLAttributes<HTMLButtonElement> {
15
16
  iconFill?: boolean;
16
17
  iconPosition?: string;
17
18
  fullSize?: boolean;
18
- trackId?: string;
19
- trackLabel?: string;
19
+ trackingData?: PushClickEventOptions;
20
20
  }
21
21
  declare const DsButton: {
22
- ({ children, className, onClick, size, disabled, icon, id, testId, elevation, variant, color, iconFill, iconPosition, fullSize, trackId, trackLabel, }: DsButtonProps): import("react/jsx-runtime").JSX.Element;
22
+ ({ children, className, onClick, size, disabled, icon, id, testId, elevation, variant, color, iconFill, iconPosition, fullSize, trackingData, }: DsButtonProps): import("react/jsx-runtime").JSX.Element;
23
23
  propTypes: {
24
24
  color: PropTypes.Requireable<import('./Button.config').ButtonColor>;
25
25
  variant: PropTypes.Requireable<import('./Button.config').ButtonVariant>;
@@ -31,8 +31,7 @@ declare const DsButton: {
31
31
  testId: PropTypes.Requireable<string>;
32
32
  id: PropTypes.Requireable<string>;
33
33
  fullSize: PropTypes.Requireable<boolean>;
34
- trackId: PropTypes.Requireable<string>;
35
- trackLabel: PropTypes.Requireable<string>;
34
+ trackingData: PropTypes.Requireable<object>;
36
35
  };
37
36
  displayName: string;
38
37
  };
@@ -67,14 +67,6 @@ export interface CardTestIdProps {
67
67
  type: StringConstructor;
68
68
  default: string;
69
69
  }
70
- export interface CardTrackIdProps {
71
- type: StringConstructor;
72
- default: string;
73
- }
74
- export interface CardTrackLabelProps {
75
- type: StringConstructor;
76
- default: string;
77
- }
78
70
  export interface CardConfig {
79
71
  name: string;
80
72
  class: string;
@@ -84,8 +76,6 @@ export interface CardConfig {
84
76
  elevation: CardElevationProps;
85
77
  id: CardIdProps;
86
78
  testId: CardTestIdProps;
87
- trackId: CardTrackIdProps;
88
- trackLabel: CardTrackLabelProps;
89
79
  };
90
80
  }
91
81
  declare const cardConfig: CardConfig;
@@ -8,19 +8,15 @@ export interface DsCardProps {
8
8
  elevation?: number;
9
9
  backgroundColor?: string;
10
10
  borderColor?: string;
11
- trackId?: string;
12
- trackLabel?: string;
13
11
  }
14
12
  declare const DsCard: {
15
- ({ id, testId, children, className, elevation, backgroundColor, borderColor, trackId, trackLabel, }: DsCardProps): import("react/jsx-runtime").JSX.Element;
13
+ ({ id, testId, children, className, elevation, backgroundColor, borderColor, }: DsCardProps): import("react/jsx-runtime").JSX.Element;
16
14
  propTypes: {
17
15
  id: PropTypes.Requireable<string>;
18
16
  testId: PropTypes.Requireable<string>;
19
17
  backgroundColor: PropTypes.Requireable<import('./Card.config').CardColor>;
20
18
  borderColor: PropTypes.Requireable<import('./Card.config').CardColor>;
21
19
  elevation: PropTypes.Requireable<import('./Card.config').CardElevation>;
22
- trackId: PropTypes.Requireable<string>;
23
- trackLabel: PropTypes.Requireable<string>;
24
20
  };
25
21
  displayName: string;
26
22
  };