@jamsrui/tooltip 0.0.18 → 0.0.20

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.mts CHANGED
@@ -1,4 +1,3 @@
1
- import * as react from 'react';
2
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
2
  import { Tooltip as Tooltip$1 } from './tooltip.mjs';
4
3
  import { TooltipArrow } from './tooltip-arrow.mjs';
@@ -9,12 +8,13 @@ import { TooltipTrigger } from './tooltip-trigger.mjs';
9
8
  export { FloatingDelayGroup as TooltipGroup } from '@floating-ui/react';
10
9
  import './use-tooltip.mjs';
11
10
  import '@jamsrui/utils';
11
+ import 'react';
12
12
  import './styles.mjs';
13
13
  import '@jamsrui/core';
14
14
 
15
15
  declare const Tooltip: ((props: Tooltip$1.Props) => react_jsx_runtime.JSX.Element) & {
16
16
  Trigger: (props: TooltipTrigger.Props) => react_jsx_runtime.JSX.Element;
17
- Content: (props: TooltipContent.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | null;
17
+ Content: (props: TooltipContent.Props) => react_jsx_runtime.JSX.Element | null;
18
18
  Arrow: (props: TooltipArrow.Props) => react_jsx_runtime.JSX.Element | null;
19
19
  };
20
20
  declare namespace Tooltip {
@@ -1,7 +1,7 @@
1
- import * as react from 'react';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { PropsWithChildren } from 'react';
3
3
 
4
- declare const TooltipContent: (props: TooltipContent.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | null;
4
+ declare const TooltipContent: (props: TooltipContent.Props) => react_jsx_runtime.JSX.Element | null;
5
5
  declare namespace TooltipContent {
6
6
  interface Props extends PropsWithChildren {
7
7
  }
@@ -1 +1 @@
1
- "use client";import{useRenderElement as r}from"@jamsrui/hooks";import{useTooltipContext as p}from"./tooltip-context.mjs";const l=t=>{const{isOpen:e,getContentProps:o}=p(),n=r("div",{props:[o(t)]});return e?n:null};export{l as TooltipContent};
1
+ "use client";import{jsx as l}from"react/jsx-runtime";import{useRenderElement as n}from"@jamsrui/hooks";import{useTooltipContext as p}from"./tooltip-context.mjs";import{FloatingPortal as i}from"@floating-ui/react";const C=t=>{const{isOpen:o,getContentProps:e}=p(),r=n("div",{props:[e(t)]});return o?l(i,{children:r}):null};export{C as TooltipContent};
@@ -4,6 +4,7 @@ import '@floating-ui/react';
4
4
  import '@jamsrui/utils';
5
5
  import './styles.mjs';
6
6
  import './tooltip-content.mjs';
7
+ import 'react/jsx-runtime';
7
8
 
8
9
  declare const useTooltipContext: () => TooltipContext.Props;
9
10
  declare const TooltipContext: react.Context<TooltipContext.Props | null>;
@@ -3,6 +3,7 @@ import { PropGetter } from '@jamsrui/utils';
3
3
  import { PropsWithChildren } from 'react';
4
4
  import { TooltipVariants } from './styles.mjs';
5
5
  import { TooltipContent } from './tooltip-content.mjs';
6
+ import 'react/jsx-runtime';
6
7
 
7
8
  declare const useTooltip: (props: useTooltip.Props) => {
8
9
  getContentProps: PropGetter<TooltipContent.Props>;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@jamsrui/tooltip",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "peerDependencies": {
5
5
  "react": ">=19"
6
6
  },
7
7
  "dependencies": {
8
8
  "@floating-ui/react": ">=0.27",
9
- "@jamsrui/hooks": "^0.0.18",
10
- "@jamsrui/core": "^0.0.14",
11
- "@jamsrui/utils": "^0.0.18"
9
+ "@jamsrui/hooks": "^0.0.20",
10
+ "@jamsrui/utils": "^0.0.20",
11
+ "@jamsrui/core": "^0.0.16"
12
12
  },
13
13
  "exports": {
14
14
  ".": {