@stackshift-ui/tooltip 1.0.0-beta.6 → 1.0.0-beta.7
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/chunk-3EYN2AKU.mjs +1 -0
- package/dist/chunk-LARJZ6PU.mjs +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/dist/setupTests.d.ts +2 -0
- package/dist/setupTests.js +47 -0
- package/dist/setupTests.mjs +47 -0
- package/dist/tooltip.d.ts +19 -0
- package/dist/tooltip.js +2 -0
- package/dist/tooltip.mjs +2 -0
- package/package.json +6 -6
package/dist/tooltip.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";var y=Object.create;var l=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var R=(o,t)=>{for(var i in t)l(o,i,{get:t[i],enumerable:!0})},m=(o,t,i,p)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of C(t))!x.call(o,n)&&n!==i&&l(o,n,{get:()=>t[n],enumerable:!(p=u(t,n))||p.enumerable});return o};var b=(o,t,i)=>(i=o!=null?y(N(o)):{},m(t||!o||!o.__esModule?l(i,"default",{value:o,enumerable:!0}):i,o)),z=o=>m(l({},"__esModule",{value:!0}),o);var h={};R(h,{Tooltip:()=>P,TooltipContent:()=>v,TooltipProvider:()=>s,TooltipTrigger:()=>g});module.exports=z(h);var e=b(require("@radix-ui/react-tooltip")),r=require("@stackshift-ui/system"),a=require("react/jsx-runtime"),d="Tooltip",c="TooltipProvider",f="TooltipTrigger",T="TooltipContent";function s({delayDuration:o=0,...t}){let{[c]:i=r.DefaultComponent}=(0,r.useStackShiftUIComponents)();return(0,a.jsx)(i,{as:e.Provider,"data-slot":"tooltip-provider",delayDuration:o,...t})}s.displayName=c;function P({...o}){let{[d]:t=r.DefaultComponent}=(0,r.useStackShiftUIComponents)();return(0,a.jsx)(s,{children:(0,a.jsx)(t,{as:e.Root,"data-slot":"tooltip",...o})})}P.displayName=d;function g({...o}){let{[f]:t=r.DefaultComponent}=(0,r.useStackShiftUIComponents)();return(0,a.jsx)(t,{as:e.Trigger,"data-slot":"tooltip-trigger",...o})}g.displayName=f;function v({className:o,sideOffset:t=0,children:i,...p}){let{[T]:n=r.DefaultComponent}=(0,r.useStackShiftUIComponents)();return(0,a.jsx)(e.Portal,{children:(0,a.jsxs)(n,{as:e.Content,"data-slot":"tooltip-content",sideOffset:t,className:(0,r.cn)("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",o),...p,children:[i,(0,a.jsx)(e.Arrow,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}v.displayName=T;0&&(module.exports={Tooltip,TooltipContent,TooltipProvider,TooltipTrigger});
|
package/dist/tooltip.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/tooltip",
|
|
3
3
|
"description": "A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.7",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -31,17 +31,17 @@
|
|
|
31
31
|
"typescript": "^5.6.2",
|
|
32
32
|
"vite-tsconfig-paths": "^5.0.1",
|
|
33
33
|
"vitest": "^2.1.1",
|
|
34
|
-
"@stackshift-ui/
|
|
35
|
-
"@stackshift-ui/
|
|
34
|
+
"@stackshift-ui/eslint-config": "6.0.10",
|
|
35
|
+
"@stackshift-ui/typescript-config": "6.0.10"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@radix-ui/react-tooltip": "^1.2.7",
|
|
39
39
|
"classnames": "^2.5.1",
|
|
40
|
-
"@stackshift-ui/scripts": "7.0.0-beta.
|
|
41
|
-
"@stackshift-ui/system": "7.0.0-beta.
|
|
40
|
+
"@stackshift-ui/scripts": "7.0.0-beta.5",
|
|
41
|
+
"@stackshift-ui/system": "7.0.0-beta.6"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@stackshift-ui/system": ">=7.0.0-beta.
|
|
44
|
+
"@stackshift-ui/system": ">=7.0.0-beta.6",
|
|
45
45
|
"@types/react": "16.8 - 19",
|
|
46
46
|
"next": "10 - 14",
|
|
47
47
|
"react": "16.8 - 19",
|