@versini/ui-types 7.0.0 → 7.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 +7 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -339,6 +339,13 @@ declare namespace ModalTypes {
|
|
|
339
339
|
initialOpen?: boolean;
|
|
340
340
|
onOpenChange?: (open: boolean) => void;
|
|
341
341
|
open?: boolean;
|
|
342
|
+
/**
|
|
343
|
+
* Which element to initially focus when the modal opens.
|
|
344
|
+
* Can be a number (tabbable index, 0 = first), a ref to an element,
|
|
345
|
+
* or -1 to disable initial focus.
|
|
346
|
+
* @default 0
|
|
347
|
+
*/
|
|
348
|
+
initialFocus?: number | React.RefObject<HTMLElement | null>;
|
|
342
349
|
};
|
|
343
350
|
|
|
344
351
|
export type Context =
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-types",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.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"
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@floating-ui/react": "0.27.16"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "85fd31156888edce83b4b0ecf195ad613b7db699"
|
|
39
39
|
}
|