@versini/ui-types 6.0.2 → 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 +13 -1
- 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 =
|
|
@@ -387,9 +394,14 @@ declare namespace TooltipTypes {
|
|
|
387
394
|
*/
|
|
388
395
|
mode?: "dark" | "light" | "system" | "alt-system";
|
|
389
396
|
/**
|
|
390
|
-
* The
|
|
397
|
+
* The duration in milliseconds of the tooltip fade-in animation.
|
|
391
398
|
* @default 300
|
|
392
399
|
*/
|
|
400
|
+
animationDuration?: number;
|
|
401
|
+
/**
|
|
402
|
+
* The delay in milliseconds before showing the tooltip after hovering.
|
|
403
|
+
* @default 0
|
|
404
|
+
*/
|
|
393
405
|
delay?: number;
|
|
394
406
|
};
|
|
395
407
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-types",
|
|
3
|
-
"version": "
|
|
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
|
}
|