bonprix-design-system 0.52.3 → 0.53.0
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/dist/index.d.ts +19 -5
- package/dist/index.js +3921 -3851
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,8 @@ declare interface Anchor {
|
|
|
55
55
|
declare interface AsButton extends BaseProps {
|
|
56
56
|
link?: never;
|
|
57
57
|
onClick: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
|
|
58
|
+
/** A React ref to the underlying HTML button element. */
|
|
59
|
+
ref?: Ref<HTMLButtonElement>;
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
declare interface AsButton_2 extends BaseProps_2 {
|
|
@@ -65,6 +67,8 @@ declare interface AsButton_2 extends BaseProps_2 {
|
|
|
65
67
|
loading?: boolean;
|
|
66
68
|
/** Standard HTML attribute. Read more on <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#form">MDN, Button Element - form</a>. Only usable when the property `link` is set to `false`. */
|
|
67
69
|
form?: string;
|
|
70
|
+
/** A React ref to the underlying HTML button element. */
|
|
71
|
+
ref?: Ref<HTMLButtonElement>;
|
|
68
72
|
}
|
|
69
73
|
|
|
70
74
|
declare interface AsButton_3 extends BaseProps_4 {
|
|
@@ -77,6 +81,10 @@ declare interface AsButton_3 extends BaseProps_4 {
|
|
|
77
81
|
loading?: boolean;
|
|
78
82
|
/** Standard HTML attribute. Read more on <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#form">MDN, Button Element - form</a>. Only usable when the property `link` is set to `false`. */
|
|
79
83
|
form?: string;
|
|
84
|
+
/** Callback, which is triggered when the button is clicked. */
|
|
85
|
+
onClick?: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
|
|
86
|
+
/** A React ref to the underlying HTML button element. */
|
|
87
|
+
ref?: Ref<HTMLButtonElement>;
|
|
80
88
|
}
|
|
81
89
|
|
|
82
90
|
declare interface AsButton_4 extends BaseProps_5 {
|
|
@@ -91,19 +99,27 @@ declare interface AsLink extends BaseProps, Anchor {
|
|
|
91
99
|
link: true;
|
|
92
100
|
/** Callback, which is triggered when the button is activated. */
|
|
93
101
|
onClick?: (event: default_2.MouseEvent<HTMLAnchorElement>) => void;
|
|
102
|
+
/** A React ref to the underlying HTML anchor element. */
|
|
103
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
94
104
|
}
|
|
95
105
|
|
|
96
106
|
declare interface AsLink_2 extends BaseProps_2, Anchor {
|
|
97
107
|
/** If `true`, an anchor element will be rendered instead of a button. Also, link-specific properties `href`, `rel`and `target` will be available. Button-specific properties are not usable. */
|
|
98
108
|
link: true;
|
|
99
109
|
/** Callback, which is triggered when the link is clicked. */
|
|
100
|
-
onClick?: (event: default_2.MouseEvent<
|
|
110
|
+
onClick?: (event: default_2.MouseEvent<HTMLAnchorElement>) => void;
|
|
101
111
|
type?: never;
|
|
112
|
+
/** A React ref to the underlying HTML anchor element. */
|
|
113
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
102
114
|
}
|
|
103
115
|
|
|
104
116
|
declare interface AsLink_3 extends BaseProps_4, Anchor {
|
|
105
117
|
/** If `true`, an anchor element will be rendered instead of a button. Also, link-specific properties `href`, `rel`and `target` will be available. Button-specific properties are not usable. */
|
|
106
118
|
link: true;
|
|
119
|
+
/** Callback, which is triggered when the link is clicked. */
|
|
120
|
+
onClick?: (event: default_2.MouseEvent<HTMLAnchorElement>) => void;
|
|
121
|
+
/** A React ref to the underlying HTML anchor element. */
|
|
122
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
107
123
|
}
|
|
108
124
|
|
|
109
125
|
declare interface AsLink_4 extends BaseProps_5, Anchor {
|
|
@@ -216,8 +232,6 @@ declare interface BaseProps_4 {
|
|
|
216
232
|
variant?: "primary" | "secondary" | "tertiary";
|
|
217
233
|
/** Standard HTML global attribute. Controls, if the button can be focused and how. Read more on <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/tabindex">MDN, Attributes - tabindex</a>. */
|
|
218
234
|
tabIndex?: number;
|
|
219
|
-
/** Callback, which is triggered when the button is activated. */
|
|
220
|
-
onClick?: (event: default_2.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
221
235
|
}
|
|
222
236
|
|
|
223
237
|
declare interface BaseProps_5 {
|
|
@@ -384,7 +398,7 @@ declare type ButtonTypeAttribute = "button" | "submit" | "reset";
|
|
|
384
398
|
|
|
385
399
|
declare type ButtonVariantProps = AsButton_2 & {
|
|
386
400
|
/** Callback, which is triggered when the button is activated. */
|
|
387
|
-
onClick: (event: default_2.MouseEvent<HTMLButtonElement
|
|
401
|
+
onClick: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
|
|
388
402
|
/** Standard HTML attribute. Read more on <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#type">MDN, Button Element - type</a>. */
|
|
389
403
|
type?: "button";
|
|
390
404
|
};
|
|
@@ -1155,7 +1169,7 @@ declare interface Subcomponents_9 {
|
|
|
1155
1169
|
}
|
|
1156
1170
|
|
|
1157
1171
|
declare type SubmitResetVariantProps = AsButton_2 & {
|
|
1158
|
-
onClick?: (event: default_2.MouseEvent<HTMLButtonElement
|
|
1172
|
+
onClick?: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
|
|
1159
1173
|
type?: "submit" | "reset";
|
|
1160
1174
|
};
|
|
1161
1175
|
|