@versini/ui-types 8.4.0 → 9.1.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 +24 -6
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -5,11 +5,6 @@ type CommonButtonProps = {
|
|
|
5
5
|
* CSS class(es) to add to the main component wrapper.
|
|
6
6
|
*/
|
|
7
7
|
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The type of focus for the Button. This will change the color
|
|
10
|
-
* of the focus ring around the Button.
|
|
11
|
-
*/
|
|
12
|
-
focusMode?: "dark" | "light" | "system" | "alt-system";
|
|
13
8
|
/**
|
|
14
9
|
* Whether or not the Button is full width.
|
|
15
10
|
* @default false
|
|
@@ -232,6 +227,29 @@ declare namespace ButtonCopyTypes {
|
|
|
232
227
|
>;
|
|
233
228
|
}
|
|
234
229
|
|
|
230
|
+
declare namespace ButtonGroupTypes {
|
|
231
|
+
export type Props = {
|
|
232
|
+
/**
|
|
233
|
+
* The buttons to render in the group.
|
|
234
|
+
*/
|
|
235
|
+
children: React.ReactNode;
|
|
236
|
+
/**
|
|
237
|
+
* CSS class(es) to add to the main component wrapper.
|
|
238
|
+
*/
|
|
239
|
+
className?: string;
|
|
240
|
+
/**
|
|
241
|
+
* The spacing between buttons in the group.
|
|
242
|
+
* @default "medium"
|
|
243
|
+
*/
|
|
244
|
+
gap?: "small" | "medium" | "large";
|
|
245
|
+
/**
|
|
246
|
+
* The layout direction of the button group.
|
|
247
|
+
* @default "horizontal"
|
|
248
|
+
*/
|
|
249
|
+
orientation?: "horizontal" | "vertical";
|
|
250
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
251
|
+
}
|
|
252
|
+
|
|
235
253
|
declare namespace CardTypes {
|
|
236
254
|
export type Props = {
|
|
237
255
|
/**
|
|
@@ -453,4 +471,4 @@ declare namespace TooltipTypes {
|
|
|
453
471
|
};
|
|
454
472
|
}
|
|
455
473
|
|
|
456
|
-
export { ButtonCopyTypes, ButtonIconTypes, ButtonLinkTypes, ButtonSortTypes, ButtonTypes, CardTypes, LiveRegionTypes, ModalTypes, TooltipTypes };
|
|
474
|
+
export { ButtonCopyTypes, ButtonGroupTypes, ButtonIconTypes, ButtonLinkTypes, ButtonSortTypes, ButtonTypes, CardTypes, LiveRegionTypes, ModalTypes, TooltipTypes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.1.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": "e1d07ef9f8c39af8e1cf471a2d1688f4bca1771c"
|
|
36
36
|
}
|