@versini/ui-types 8.2.0 → 8.4.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 +14 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -42,6 +42,12 @@ type CommonButtonProps = {
|
|
|
42
42
|
* The rounded style of the Button.
|
|
43
43
|
*/
|
|
44
44
|
radius?: "small" | "medium" | "large";
|
|
45
|
+
/**
|
|
46
|
+
* Whether or not to render the Button with an Aqua-style
|
|
47
|
+
* split background (lighter top half, darker-to-light bottom half).
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
splitBackground?: boolean;
|
|
45
51
|
};
|
|
46
52
|
|
|
47
53
|
declare namespace ButtonTypes {
|
|
@@ -183,6 +189,14 @@ declare namespace ButtonIconTypes {
|
|
|
183
189
|
* @default false
|
|
184
190
|
*/
|
|
185
191
|
animated?: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Show a badge on the button icon.
|
|
194
|
+
* - If `true`, a red dot badge will be displayed.
|
|
195
|
+
* - If a number, the number will be displayed in the badge.
|
|
196
|
+
* - Numbers greater than 99 will be displayed as "99+".
|
|
197
|
+
* @default undefined
|
|
198
|
+
*/
|
|
199
|
+
badge?: boolean | number;
|
|
186
200
|
} & CommonButtonProps &
|
|
187
201
|
React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
188
202
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-types",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"test:watch": "vitest",
|
|
33
33
|
"test": "vitest run"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "08f46d8b356d5cfbb4e58dca300428ed6bb03789"
|
|
36
36
|
}
|