@versini/ui-types 7.0.0 → 8.0.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 +21 -1
- package/package.json +3 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React$1 from 'react';
|
|
2
|
-
import { Placement } from '@floating-ui/react';
|
|
3
2
|
|
|
4
3
|
type CommonButtonProps = {
|
|
5
4
|
/**
|
|
@@ -339,6 +338,13 @@ declare namespace ModalTypes {
|
|
|
339
338
|
initialOpen?: boolean;
|
|
340
339
|
onOpenChange?: (open: boolean) => void;
|
|
341
340
|
open?: boolean;
|
|
341
|
+
/**
|
|
342
|
+
* Which element to initially focus when the modal opens.
|
|
343
|
+
* Can be a number (tabbable index, 0 = first), a ref to an element,
|
|
344
|
+
* or -1 to disable initial focus.
|
|
345
|
+
* @default 0
|
|
346
|
+
*/
|
|
347
|
+
initialFocus?: number | React.RefObject<HTMLElement | null>;
|
|
342
348
|
};
|
|
343
349
|
|
|
344
350
|
export type Context =
|
|
@@ -351,6 +357,20 @@ declare namespace ModalTypes {
|
|
|
351
357
|
| null;
|
|
352
358
|
}
|
|
353
359
|
|
|
360
|
+
type Placement =
|
|
361
|
+
| "top"
|
|
362
|
+
| "right"
|
|
363
|
+
| "bottom"
|
|
364
|
+
| "left"
|
|
365
|
+
| "top-start"
|
|
366
|
+
| "top-end"
|
|
367
|
+
| "right-start"
|
|
368
|
+
| "right-end"
|
|
369
|
+
| "bottom-start"
|
|
370
|
+
| "bottom-end"
|
|
371
|
+
| "left-start"
|
|
372
|
+
| "left-end";
|
|
373
|
+
|
|
354
374
|
declare namespace TooltipTypes {
|
|
355
375
|
export type Props = {
|
|
356
376
|
/**
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
|
-
"homepage": "https://
|
|
9
|
+
"homepage": "https://www.npmjs.com/package/@versini/ui-types",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git@github.com:aversini/ui-components.git"
|
|
@@ -32,8 +32,5 @@
|
|
|
32
32
|
"test:watch": "vitest",
|
|
33
33
|
"test": "vitest run"
|
|
34
34
|
},
|
|
35
|
-
"
|
|
36
|
-
"@floating-ui/react": "0.27.16"
|
|
37
|
-
},
|
|
38
|
-
"gitHead": "4795cf3239cceaf83dde13addc5254caa12dee6f"
|
|
35
|
+
"gitHead": "28e13adabce18578034a9ca5553d7cfb9853c214"
|
|
39
36
|
}
|