@versini/ui-types 4.0.1 → 4.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +24 -1
  2. package/package.json +5 -2
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import React$1 from 'react';
2
+ import { Placement } from '@floating-ui/react';
2
3
 
3
4
  type CommonButtonProps = {
4
5
  /**
@@ -384,4 +385,26 @@ declare namespace SvgIconTypes {
384
385
  };
385
386
  }
386
387
 
387
- export { ButtonCopyTypes, ButtonIconTypes, ButtonLinkTypes, ButtonSortTypes, ButtonTypes, CardTypes, LiveRegionTypes, ModalTypes, SvgIconTypes };
388
+ declare namespace TooltipTypes {
389
+ export type Props = {
390
+ /**
391
+ * The label to show in the tooltip.
392
+ */
393
+ label: string;
394
+ /**
395
+ * The trigger element for the tooltip.
396
+ */
397
+ trigger: React.ReactNode;
398
+ /**
399
+ * The placement of the tooltip.
400
+ * @default top
401
+ */
402
+ placement?: Placement;
403
+ /**
404
+ * The mode of tooltip. This will change the color of the tooltip.
405
+ */
406
+ mode?: "dark" | "light" | "system" | "alt-system";
407
+ };
408
+ }
409
+
410
+ export { ButtonCopyTypes, ButtonIconTypes, ButtonLinkTypes, ButtonSortTypes, ButtonTypes, CardTypes, LiveRegionTypes, ModalTypes, SvgIconTypes, TooltipTypes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-types",
3
- "version": "4.0.1",
3
+ "version": "4.1.0",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -32,5 +32,8 @@
32
32
  "react": "^18.3.1 || ^19.0.0",
33
33
  "react-dom": "^18.3.1 || ^19.0.0"
34
34
  },
35
- "gitHead": "ad21cab4bf6b5fc26fc8bf9b61fb5f00ef0f66f6"
35
+ "devDependencies": {
36
+ "@floating-ui/react": "0.27.3"
37
+ },
38
+ "gitHead": "62e5ad9aef3842ebba9e968c0cde595e6fd81544"
36
39
  }