@jamsrui/tooltip 0.0.2
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/README.md +40 -0
- package/dist/chunk-2LKTA7EY.js +1 -0
- package/dist/chunk-3GDCC6VG.mjs +1 -0
- package/dist/chunk-C2D5NMEG.mjs +1 -0
- package/dist/chunk-ESGEIT3Y.js +1 -0
- package/dist/chunk-JWHKP2IH.mjs +1 -0
- package/dist/chunk-MXVBIBSN.js +1 -0
- package/dist/chunk-NKW3VC3L.js +1 -0
- package/dist/chunk-VPXFYS2C.mjs +1 -0
- package/dist/index.d.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/dist/styles.d.mts +51 -0
- package/dist/styles.d.ts +51 -0
- package/dist/styles.js +1 -0
- package/dist/styles.mjs +1 -0
- package/dist/tooltip-config.d.mts +19 -0
- package/dist/tooltip-config.d.ts +19 -0
- package/dist/tooltip-config.js +1 -0
- package/dist/tooltip-config.mjs +1 -0
- package/dist/tooltip.d.mts +14 -0
- package/dist/tooltip.d.ts +14 -0
- package/dist/tooltip.js +1 -0
- package/dist/tooltip.mjs +1 -0
- package/dist/use-tooltip.d.mts +33 -0
- package/dist/use-tooltip.d.ts +33 -0
- package/dist/use-tooltip.js +1 -0
- package/dist/use-tooltip.mjs +1 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# π **JamsrUI**
|
|
2
|
+
|
|
3
|
+
**A comprehensive React UI component library designed for developers, with Tailwind CSS integration for seamless styling.**
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## π **Overview**
|
|
7
|
+
|
|
8
|
+
[JamsrUI](https://jamsr-ui.jamsrworld.com) is designed to help developers build modern, fast and visually appealing web applications with ease.
|
|
9
|
+
|
|
10
|
+
## π Getting Started
|
|
11
|
+
|
|
12
|
+
Boost & Build your websites using [JamsrUI](https://jamsr-ui.jamsrworld.com).
|
|
13
|
+
|
|
14
|
+
## β¨ Features
|
|
15
|
+
|
|
16
|
+
- π **Production-Ready**: Optimized for modern React projects.
|
|
17
|
+
- π¨ **Customizable**: Easily override styles and themes.
|
|
18
|
+
- π οΈ **Reusable Components**: Save time with prebuilt, efficient UI elements.
|
|
19
|
+
- β‘ **Developer-Friendly**: Simple API and well-documented usage.
|
|
20
|
+
- π¦ **Lightweight**: Minimal dependencies for fast performance.
|
|
21
|
+
- π₯οΈ **Modern Design**: Clean, responsive, and user-friendly components.
|
|
22
|
+
|
|
23
|
+
## π± Community
|
|
24
|
+
|
|
25
|
+
Weβre thrilled to see the community actively engage with **JamsrUI**! Whether you're sharing feedback, reporting bugs, requesting features, or showcasing projects built with JamsrUI, your involvement helps us grow and improve.
|
|
26
|
+
|
|
27
|
+
### How to Engage
|
|
28
|
+
|
|
29
|
+
- π¬ **Report Bugs**: [GitHub Issues](https://github.com/jamsrworld/jamsr-ui/issues)
|
|
30
|
+
- π **Request Features**: Share ideas for new components.
|
|
31
|
+
- π€ **Showcase Projects**: Let us know how you use JamsrUI.
|
|
32
|
+
|
|
33
|
+
## Contributing
|
|
34
|
+
|
|
35
|
+
We welcome contributions from developers of all skill levels!
|
|
36
|
+
|
|
37
|
+
## β Support the Project
|
|
38
|
+
|
|
39
|
+
If you find **JamsrUI** helpful, consider giving it a β on [GitHub](https://github.com/jamsrworld/jamsr-ui).
|
|
40
|
+
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createConfigContext as o}from"@jamsrui/utils";var[p,i]=o({displayName:"TooltipConfigContext"});export{p as a,i as b};
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
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.mts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { Tooltip } from './tooltip.mjs';
|
|
2
|
+
export { TooltipConfig, useTooltipConfig } from './tooltip-config.mjs';
|
|
3
|
+
export { FloatingDelayGroup as TooltipGroup } from '@floating-ui/react';
|
|
4
|
+
import 'react';
|
|
5
|
+
import './use-tooltip.mjs';
|
|
6
|
+
import '@jamsrui/utils';
|
|
7
|
+
import './styles.mjs';
|
|
8
|
+
import 'tailwind-variants';
|
|
9
|
+
import '@jamsrui/core';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
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
ADDED
|
@@ -0,0 +1 @@
|
|
|
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/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as p,b as t}from"./chunk-C2D5NMEG.mjs";import{a as o}from"./chunk-3GDCC6VG.mjs";import"./chunk-VPXFYS2C.mjs";import"./chunk-JWHKP2IH.mjs";import{FloatingDelayGroup as f}from"@floating-ui/react";export{o as Tooltip,p as TooltipConfig,f as TooltipGroup,t as useTooltipConfig};
|
|
@@ -0,0 +1,51 @@
|
|
|
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.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
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
ADDED
|
@@ -0,0 +1 @@
|
|
|
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/styles.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-JWHKP2IH.mjs";export{a as test,b as tooltipVariants};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Tooltip } from './tooltip.mjs';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { GlobalConfigProps } from '@jamsrui/core';
|
|
4
|
+
import '@floating-ui/react';
|
|
5
|
+
import './use-tooltip.mjs';
|
|
6
|
+
import '@jamsrui/utils';
|
|
7
|
+
import './styles.mjs';
|
|
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 };
|
|
@@ -0,0 +1,19 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkESGEIT3Yjs = require('./chunk-ESGEIT3Y.js');exports.TooltipConfig = _chunkESGEIT3Yjs.a; exports.useTooltipConfig = _chunkESGEIT3Yjs.b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-C2D5NMEG.mjs";export{a as TooltipConfig,b as useTooltipConfig};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { useTooltip } from './use-tooltip.mjs';
|
|
3
|
+
import '@floating-ui/react';
|
|
4
|
+
import '@jamsrui/utils';
|
|
5
|
+
import './styles.mjs';
|
|
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 };
|
|
@@ -0,0 +1,14 @@
|
|
|
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
ADDED
|
@@ -0,0 +1 @@
|
|
|
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/tooltip.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-3GDCC6VG.mjs";import"./chunk-VPXFYS2C.mjs";import"./chunk-JWHKP2IH.mjs";export{a as Tooltip};
|
|
@@ -0,0 +1,33 @@
|
|
|
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.mjs';
|
|
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 };
|
|
@@ -0,0 +1,33 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNKW3VC3Ljs = require('./chunk-NKW3VC3L.js');require('./chunk-2LKTA7EY.js');exports.useTooltip = _chunkNKW3VC3Ljs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-VPXFYS2C.mjs";import"./chunk-JWHKP2IH.mjs";export{a as useTooltip};
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jamsrui/tooltip",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"react": ">=19"
|
|
6
|
+
},
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@floating-ui/react": ">=0.27",
|
|
9
|
+
"@jamsrui/core": "^0.0.2",
|
|
10
|
+
"@jamsrui/hooks": "^0.0.2",
|
|
11
|
+
"@jamsrui/utils": "^0.0.2"
|
|
12
|
+
},
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.mjs",
|
|
17
|
+
"require": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"description": "A modern and beautiful Next.js UI components library.",
|
|
21
|
+
"keywords": [
|
|
22
|
+
"react",
|
|
23
|
+
"ui",
|
|
24
|
+
"UI components",
|
|
25
|
+
"Next.js",
|
|
26
|
+
"React",
|
|
27
|
+
"JamsrUI",
|
|
28
|
+
"jamsr-ui",
|
|
29
|
+
"TypeScript"
|
|
30
|
+
],
|
|
31
|
+
"sideEffects": false,
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"author": "@jamsrworld",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/jamsrworld/jamsr-ui"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/jamsrworld/jamsr-ui/issues"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://jamsr-ui.jamsrworld.com",
|
|
42
|
+
"files": [
|
|
43
|
+
"dist",
|
|
44
|
+
"README",
|
|
45
|
+
"README.md",
|
|
46
|
+
"package.json",
|
|
47
|
+
"LICENSE"
|
|
48
|
+
]
|
|
49
|
+
}
|