@versini/ui-types 4.2.0 → 4.3.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +19 -0
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -408,6 +408,25 @@ declare namespace TooltipTypes {
408
408
  * The mode of tooltip. This will change the color of the tooltip.
409
409
  */
410
410
  mode?: "dark" | "light" | "system" | "alt-system";
411
+ /**
412
+ * If provided, this will set the initial open state of the tooltip.
413
+ * @default false
414
+ */
415
+ initialOpen?: boolean;
416
+ /**
417
+ * If provided, this will control the open state of the tooltip, which means
418
+ * you are now responsible for managing the open state (Controlled Component).
419
+ */
420
+ open?: boolean;
421
+ /**
422
+ * Callback when the open state changes in controlled mode.
423
+ */
424
+ onOpenChange?: (open: boolean) => void;
425
+ /**
426
+ * The delay in milliseconds before showing the tooltip.
427
+ * @default 300
428
+ */
429
+ delay?: number;
411
430
  };
412
431
  }
413
432
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-types",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "@floating-ui/react": "0.27.3"
37
37
  },
38
- "gitHead": "2be4fd5fe7dd74804533efdedcc6cfa4023a739a"
38
+ "gitHead": "bcefcad80e918262a953b30742e66db32b2fefa5"
39
39
  }