@jamsrui/tooltip 0.0.2 → 0.0.3
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.mjs +1 -1
- package/dist/styles.mjs +1 -1
- package/dist/tooltip-config.mjs +1 -1
- package/dist/tooltip.mjs +1 -1
- package/dist/use-tooltip.mjs +1 -1
- package/package.json +4 -4
- package/dist/chunk-2LKTA7EY.js +0 -1
- package/dist/chunk-3GDCC6VG.mjs +0 -1
- package/dist/chunk-C2D5NMEG.mjs +0 -1
- package/dist/chunk-ESGEIT3Y.js +0 -1
- package/dist/chunk-JWHKP2IH.mjs +0 -1
- package/dist/chunk-MXVBIBSN.js +0 -1
- package/dist/chunk-NKW3VC3L.js +0 -1
- package/dist/chunk-VPXFYS2C.mjs +0 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.js +0 -1
- package/dist/styles.d.ts +0 -51
- package/dist/styles.js +0 -1
- package/dist/tooltip-config.d.ts +0 -19
- package/dist/tooltip-config.js +0 -1
- package/dist/tooltip.d.ts +0 -14
- package/dist/tooltip.js +0 -1
- package/dist/use-tooltip.d.ts +0 -33
- package/dist/use-tooltip.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{
|
|
1
|
+
"use client";import{Tooltip as t}from"./tooltip";import{TooltipConfig as r,useTooltipConfig as e}from"./tooltip-config";import{FloatingDelayGroup as f}from"@floating-ui/react";export{t as Tooltip,r as TooltipConfig,f as TooltipGroup,e as useTooltipConfig};
|
package/dist/styles.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{radiusVariant as t,tv as o}from"@jamsrui/utils";const a="",i=o({slots:{root:"bg-surface inline-flex px-3 py-1 text-sm font-medium text-foreground",arrow:"fill-background-secondary"},variants:{radius:t("root")},defaultVariants:{radius:"md"}});export{a as test,i as tooltipVariants};
|
package/dist/tooltip-config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{createConfigContext as o}from"@jamsrui/utils";const[p,i]=o({displayName:"TooltipConfigContext"});export{p as TooltipConfig,i as useTooltipConfig};
|
package/dist/tooltip.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"
|
|
1
|
+
import{useMemo as m}from"react";import{FloatingArrow as c,FloatingPortal as a}from"@floating-ui/react";import{useRenderElement as d}from"@jamsrui/hooks";import{useTooltip as P}from"./use-tooltip";const h=t=>{const{children:p,getArrowProps:o,getRootProps:n,isOpen:i,title:r,showArrow:e}=P(t),s=m(()=>React.createElement(React.Fragment,null,!!e&&React.createElement(c,{...o()}),r),[o,e,r]),l=d("div",{props:[n({}),{children:s}]});return React.createElement(React.Fragment,null,p,!!i&&React.createElement(a,null,l))};export{h as Tooltip};
|
package/dist/use-tooltip.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{cloneElement as I,useCallback as h,useMemo as j,useRef as U}from"react";import{arrow as H,autoUpdate as M,flip as q,offset as z,safePolygon as B,shift as J,useDelayGroup as K,useDismiss as L,useFloating as Q,useFocus as W,useHover as X,useInteractions as Y,useRole as Z}from"@floating-ui/react";import{useControlledState as _}from"@jamsrui/hooks";import{cn as C}from"@jamsrui/utils";import{tooltipVariants as $}from"./styles";const re=N=>{const{title:f,isDisabled:u=!1,delay:l,offset:O=4,placement:D="top",radius:S,showArrow:r=!1,className:n,classNames:a,children:p,defaultOpen:T,isOpen:R,onOpenChange:F}=N,[c,v]=_({defaultProp:T,onChange:F,prop:R}),d=U(null),x=r?7:0,{refs:m,floatingStyles:y,context:e}=Q({open:c,onOpenChange:v,placement:D,whileElementsMounted:M,middleware:[z(O+x),q({fallbackAxisSideDirection:"start"}),J(),r?H({element:d}):null]}),{delay:o}=K(e);let t=400,s=100;typeof l=="number"?(t=l,s=l):typeof l=="object"&&(t=l.open??t,s=l.close??s),typeof o=="number"&&o>0?(t=o,s=o):typeof o=="object"&&(t=o.open??t,s=o.close??s);const A=X(e,{move:!1,handleClose:B({blockPointerEvents:!0}),delay:{close:s,open:t}}),E=W(e),G=L(e),V=Z(e,{role:"tooltip"}),{getReferenceProps:k,getFloatingProps:g}=Y([A,E,G,V]),i=$({radius:S}),P=I(p,k({ref:m.setReference})),w=h(()=>({className:i.root({className:C(a?.root,n)}),style:y,ref:m.setFloating,...g()}),[n,a?.root,y,g,m.setFloating,i]),b=h(()=>({context:e,ref:d,className:i.arrow({className:C(a?.arrow,n)})}),[n,a?.arrow,e,i]);return j(()=>({getRootProps:w,getArrowProps:b,isOpen:c,children:u?p:P,title:f,showArrow:r}),[p,b,w,u,c,r,f,P])};export{re as useTooltip};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/tooltip",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@floating-ui/react": ">=0.27",
|
|
9
|
-
"@jamsrui/
|
|
10
|
-
"@jamsrui/
|
|
11
|
-
"@jamsrui/
|
|
9
|
+
"@jamsrui/hooks": "^0.0.3",
|
|
10
|
+
"@jamsrui/utils": "^0.0.3",
|
|
11
|
+
"@jamsrui/core": "^0.0.3"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
package/dist/chunk-2LKTA7EY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _utils = require('@jamsrui/utils');var a="",i= exports.b =_utils.tv.call(void 0, {slots:{root:"bg-surface inline-flex px-3 py-1 text-sm font-medium text-foreground",arrow:"fill-background-secondary"},variants:{radius:_utils.radiusVariant.call(void 0, "root")},defaultVariants:{radius:"md"}});exports.a = a; exports.b = i;
|
package/dist/chunk-3GDCC6VG.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-VPXFYS2C.mjs";import{useMemo as c}from"react";import{FloatingArrow as a,FloatingPortal as d}from"@floating-ui/react";import{useRenderElement as P}from"@jamsrui/hooks";var h=p=>{let{children:n,getArrowProps:o,getRootProps:i,isOpen:s,title:r,showArrow:e}=t(p),l=c(()=>React.createElement(React.Fragment,null,!!e&&React.createElement(a,{...o()}),r),[o,e,r]),m=P("div",{props:[i({}),{children:l}]});return React.createElement(React.Fragment,null,n,!!s&&React.createElement(d,null,m))};export{h as a};
|
package/dist/chunk-C2D5NMEG.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createConfigContext as o}from"@jamsrui/utils";var[p,i]=o({displayName:"TooltipConfigContext"});export{p as a,i as b};
|
package/dist/chunk-ESGEIT3Y.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _utils = require('@jamsrui/utils');var[p,i]=_utils.createConfigContext.call(void 0, {displayName:"TooltipConfigContext"});exports.a = p; exports.b = i;
|
package/dist/chunk-JWHKP2IH.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{radiusVariant as t,tv as o}from"@jamsrui/utils";var a="",i=o({slots:{root:"bg-surface inline-flex px-3 py-1 text-sm font-medium text-foreground",arrow:"fill-background-secondary"},variants:{radius:t("root")},defaultVariants:{radius:"md"}});export{a,i as b};
|
package/dist/chunk-MXVBIBSN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNKW3VC3Ljs = require('./chunk-NKW3VC3L.js');var _react = require('react');var _react3 = require('@floating-ui/react');var _hooks = require('@jamsrui/hooks');var h=p=>{let{children:n,getArrowProps:o,getRootProps:i,isOpen:s,title:r,showArrow:e}=_chunkNKW3VC3Ljs.a.call(void 0, p),l=_react.useMemo.call(void 0, ()=>React.createElement(React.Fragment,null,!!e&&React.createElement(_react3.FloatingArrow,{...o()}),r),[o,e,r]),m=_hooks.useRenderElement.call(void 0, "div",{props:[i({}),{children:l}]});return React.createElement(React.Fragment,null,n,!!s&&React.createElement(_react3.FloatingPortal,null,m))};exports.a = h;
|
package/dist/chunk-NKW3VC3L.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunk2LKTA7EYjs = require('./chunk-2LKTA7EY.js');var _react = require('react');var _react3 = require('@floating-ui/react');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var re=O=>{let{title:f,isDisabled:u=!1,delay:l,offset:D=4,placement:S="top",radius:T,showArrow:r=!1,className:n,classNames:a,children:p,defaultOpen:R,isOpen:F,onOpenChange:v}=O,[c,x]=_hooks.useControlledState.call(void 0, {defaultProp:R,onChange:v,prop:F}),d=_react.useRef.call(void 0, null),A=r?7:0,{refs:m,floatingStyles:y,context:e}=_react3.useFloating.call(void 0, {open:c,onOpenChange:x,placement:S,whileElementsMounted:_react3.autoUpdate,middleware:[_react3.offset.call(void 0, D+A),_react3.flip.call(void 0, {fallbackAxisSideDirection:"start"}),_react3.shift.call(void 0, ),r?_react3.arrow.call(void 0, {element:d}):null]}),{delay:o}=_react3.useDelayGroup.call(void 0, e),t=400,s=100;typeof l=="number"?(t=l,s=l):typeof l=="object"&&(t=_nullishCoalesce(l.open, () => (t)),s=_nullishCoalesce(l.close, () => (s))),typeof o=="number"&&o>0?(t=o,s=o):typeof o=="object"&&(t=_nullishCoalesce(o.open, () => (t)),s=_nullishCoalesce(o.close, () => (s)));let E=_react3.useHover.call(void 0, e,{move:!1,handleClose:_react3.safePolygon.call(void 0, {blockPointerEvents:!0}),delay:{close:s,open:t}}),G=_react3.useFocus.call(void 0, e),V=_react3.useDismiss.call(void 0, e),k=_react3.useRole.call(void 0, e,{role:"tooltip"}),{getReferenceProps:I,getFloatingProps:g}=_react3.useInteractions.call(void 0, [E,G,V,k]),i=_chunk2LKTA7EYjs.b.call(void 0, {radius:T}),P=_react.cloneElement.call(void 0, p,I({ref:m.setReference})),w=_react.useCallback.call(void 0, ()=>({className:i.root({className:_utils.cn.call(void 0, _optionalChain([a, 'optionalAccess', _2 => _2.root]),n)}),style:y,ref:m.setFloating,...g()}),[n,_optionalChain([a, 'optionalAccess', _3 => _3.root]),y,g,m.setFloating,i]),b=_react.useCallback.call(void 0, ()=>({context:e,ref:d,className:i.arrow({className:_utils.cn.call(void 0, _optionalChain([a, 'optionalAccess', _4 => _4.arrow]),n)})}),[n,_optionalChain([a, 'optionalAccess', _5 => _5.arrow]),e,i]);return _react.useMemo.call(void 0, ()=>({getRootProps:w,getArrowProps:b,isOpen:c,children:u?p:P,title:f,showArrow:r}),[p,b,w,u,c,r,f,P])};exports.a = re;
|
package/dist/chunk-VPXFYS2C.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as h}from"./chunk-JWHKP2IH.mjs";import{cloneElement as j,useCallback as C,useMemo as U,useRef as H}from"react";import{arrow as M,autoUpdate as q,flip as z,offset as B,safePolygon as J,shift as K,useDelayGroup as L,useDismiss as Q,useFloating as W,useFocus as X,useHover as Y,useInteractions as Z,useRole as _}from"@floating-ui/react";import{useControlledState as $}from"@jamsrui/hooks";import{cn as N}from"@jamsrui/utils";var re=O=>{let{title:f,isDisabled:u=!1,delay:l,offset:D=4,placement:S="top",radius:T,showArrow:r=!1,className:n,classNames:a,children:p,defaultOpen:R,isOpen:F,onOpenChange:v}=O,[c,x]=$({defaultProp:R,onChange:v,prop:F}),d=H(null),A=r?7:0,{refs:m,floatingStyles:y,context:e}=W({open:c,onOpenChange:x,placement:S,whileElementsMounted:q,middleware:[B(D+A),z({fallbackAxisSideDirection:"start"}),K(),r?M({element:d}):null]}),{delay:o}=L(e),t=400,s=100;typeof l=="number"?(t=l,s=l):typeof l=="object"&&(t=l.open??t,s=l.close??s),typeof o=="number"&&o>0?(t=o,s=o):typeof o=="object"&&(t=o.open??t,s=o.close??s);let E=Y(e,{move:!1,handleClose:J({blockPointerEvents:!0}),delay:{close:s,open:t}}),G=X(e),V=Q(e),k=_(e,{role:"tooltip"}),{getReferenceProps:I,getFloatingProps:g}=Z([E,G,V,k]),i=h({radius:T}),P=j(p,I({ref:m.setReference})),w=C(()=>({className:i.root({className:N(a?.root,n)}),style:y,ref:m.setFloating,...g()}),[n,a?.root,y,g,m.setFloating,i]),b=C(()=>({context:e,ref:d,className:i.arrow({className:N(a?.arrow,n)})}),[n,a?.arrow,e,i]);return U(()=>({getRootProps:w,getArrowProps:b,isOpen:c,children:u?p:P,title:f,showArrow:r}),[p,b,w,u,c,r,f,P])};export{re as a};
|
package/dist/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { Tooltip } from './tooltip.js';
|
|
2
|
-
export { TooltipConfig, useTooltipConfig } from './tooltip-config.js';
|
|
3
|
-
export { FloatingDelayGroup as TooltipGroup } from '@floating-ui/react';
|
|
4
|
-
import 'react';
|
|
5
|
-
import './use-tooltip.js';
|
|
6
|
-
import '@jamsrui/utils';
|
|
7
|
-
import './styles.js';
|
|
8
|
-
import 'tailwind-variants';
|
|
9
|
-
import '@jamsrui/core';
|
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkESGEIT3Yjs = require('./chunk-ESGEIT3Y.js');var _chunkMXVBIBSNjs = require('./chunk-MXVBIBSN.js');require('./chunk-NKW3VC3L.js');require('./chunk-2LKTA7EY.js');var _react = require('@floating-ui/react');exports.Tooltip = _chunkMXVBIBSNjs.a; exports.TooltipConfig = _chunkESGEIT3Yjs.a; exports.TooltipGroup = _react.FloatingDelayGroup; exports.useTooltipConfig = _chunkESGEIT3Yjs.b;
|
package/dist/styles.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
-
import { VariantProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const test = "";
|
|
5
|
-
declare const tooltipVariants: tailwind_variants.TVReturnType<{
|
|
6
|
-
radius: {
|
|
7
|
-
sm: {};
|
|
8
|
-
md: {};
|
|
9
|
-
lg: {};
|
|
10
|
-
xl: {};
|
|
11
|
-
"2xl": {};
|
|
12
|
-
"3xl": {};
|
|
13
|
-
full: {};
|
|
14
|
-
none: {};
|
|
15
|
-
};
|
|
16
|
-
}, {
|
|
17
|
-
root: string;
|
|
18
|
-
arrow: string;
|
|
19
|
-
}, undefined, {
|
|
20
|
-
radius: {
|
|
21
|
-
sm: {};
|
|
22
|
-
md: {};
|
|
23
|
-
lg: {};
|
|
24
|
-
xl: {};
|
|
25
|
-
"2xl": {};
|
|
26
|
-
"3xl": {};
|
|
27
|
-
full: {};
|
|
28
|
-
none: {};
|
|
29
|
-
};
|
|
30
|
-
}, {
|
|
31
|
-
root: string;
|
|
32
|
-
arrow: string;
|
|
33
|
-
}, tailwind_variants.TVReturnType<{
|
|
34
|
-
radius: {
|
|
35
|
-
sm: {};
|
|
36
|
-
md: {};
|
|
37
|
-
lg: {};
|
|
38
|
-
xl: {};
|
|
39
|
-
"2xl": {};
|
|
40
|
-
"3xl": {};
|
|
41
|
-
full: {};
|
|
42
|
-
none: {};
|
|
43
|
-
};
|
|
44
|
-
}, {
|
|
45
|
-
root: string;
|
|
46
|
-
arrow: string;
|
|
47
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
48
|
-
type TooltipVariants = VariantProps<typeof tooltipVariants>;
|
|
49
|
-
type TooltipSlots = keyof ReturnType<typeof tooltipVariants>;
|
|
50
|
-
|
|
51
|
-
export { type TooltipSlots, type TooltipVariants, test, tooltipVariants };
|
package/dist/styles.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2LKTA7EYjs = require('./chunk-2LKTA7EY.js');exports.test = _chunk2LKTA7EYjs.a; exports.tooltipVariants = _chunk2LKTA7EYjs.b;
|
package/dist/tooltip-config.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Tooltip } from './tooltip.js';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { GlobalConfigProps } from '@jamsrui/core';
|
|
4
|
-
import '@floating-ui/react';
|
|
5
|
-
import './use-tooltip.js';
|
|
6
|
-
import '@jamsrui/utils';
|
|
7
|
-
import './styles.js';
|
|
8
|
-
import 'tailwind-variants';
|
|
9
|
-
|
|
10
|
-
declare const useTooltipConfig: () => TooltipConfig.Props;
|
|
11
|
-
declare const TooltipConfig: (props: TooltipConfig.Props & {
|
|
12
|
-
merge?: boolean;
|
|
13
|
-
}) => react.JSX.Element;
|
|
14
|
-
declare namespace TooltipConfig {
|
|
15
|
-
interface Props extends Tooltip.Props, GlobalConfigProps<Tooltip.Props> {
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export { TooltipConfig, useTooltipConfig };
|
package/dist/tooltip-config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkESGEIT3Yjs = require('./chunk-ESGEIT3Y.js');exports.TooltipConfig = _chunkESGEIT3Yjs.a; exports.useTooltipConfig = _chunkESGEIT3Yjs.b;
|
package/dist/tooltip.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { useTooltip } from './use-tooltip.js';
|
|
3
|
-
import '@floating-ui/react';
|
|
4
|
-
import '@jamsrui/utils';
|
|
5
|
-
import './styles.js';
|
|
6
|
-
import 'tailwind-variants';
|
|
7
|
-
|
|
8
|
-
declare const Tooltip: (props: Tooltip.Props) => react.JSX.Element;
|
|
9
|
-
declare namespace Tooltip {
|
|
10
|
-
interface Props extends useTooltip.Props {
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { Tooltip };
|
package/dist/tooltip.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMXVBIBSNjs = require('./chunk-MXVBIBSN.js');require('./chunk-NKW3VC3L.js');require('./chunk-2LKTA7EY.js');exports.Tooltip = _chunkMXVBIBSNjs.a;
|
package/dist/use-tooltip.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
import { FloatingArrowProps, Placement, Delay } from '@floating-ui/react';
|
|
4
|
-
import { PropGetter, UIProps, SlotsToClassNames } from '@jamsrui/utils';
|
|
5
|
-
import { TooltipVariants, TooltipSlots } from './styles.js';
|
|
6
|
-
import 'tailwind-variants';
|
|
7
|
-
|
|
8
|
-
declare const useTooltip: (props: useTooltip.Props) => {
|
|
9
|
-
getRootProps: PropGetter<UIProps<"div">>;
|
|
10
|
-
getArrowProps: () => FloatingArrowProps;
|
|
11
|
-
isOpen: boolean;
|
|
12
|
-
children: ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
13
|
-
title: string;
|
|
14
|
-
showArrow: boolean;
|
|
15
|
-
};
|
|
16
|
-
declare namespace useTooltip {
|
|
17
|
-
interface Props extends TooltipVariants {
|
|
18
|
-
title: string;
|
|
19
|
-
placement?: Placement;
|
|
20
|
-
isDisabled?: boolean;
|
|
21
|
-
offset?: number;
|
|
22
|
-
showArrow?: boolean;
|
|
23
|
-
delay?: Delay;
|
|
24
|
-
className?: string;
|
|
25
|
-
classNames?: SlotsToClassNames<TooltipSlots>;
|
|
26
|
-
children: ReactElement<unknown>;
|
|
27
|
-
isOpen?: boolean;
|
|
28
|
-
onOpenChange?: (open: boolean) => void;
|
|
29
|
-
defaultOpen?: boolean;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { useTooltip };
|
package/dist/use-tooltip.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNKW3VC3Ljs = require('./chunk-NKW3VC3L.js');require('./chunk-2LKTA7EY.js');exports.useTooltip = _chunkNKW3VC3Ljs.a;
|