@ptlm-azulejo/tooltip 0.0.1-alpha.95

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.
@@ -0,0 +1 @@
1
+ (function(z,p){typeof exports=="object"&&typeof module!="undefined"?p(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],p):(z=typeof globalThis!="undefined"?globalThis:z||self,p(z.tooltip={},z.Vue))})(this,function(z,p){"use strict";var Uo=Object.defineProperty;var _e=Object.getOwnPropertySymbols;var $o=Object.prototype.hasOwnProperty,_o=Object.prototype.propertyIsEnumerable;var qe=(z,p,G)=>p in z?Uo(z,p,{enumerable:!0,configurable:!0,writable:!0,value:G}):z[p]=G,Ye=(z,p)=>{for(var G in p||(p={}))$o.call(p,G)&&qe(z,G,p[G]);if(_e)for(var G of _e(p))_o.call(p,G)&&qe(z,G,p[G]);return z};function G(e){var r,o,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(o=G(e[r]))&&(t&&(t+=" "),t+=o)}else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function Xe(){for(var e,r,o=0,t="",s=arguments.length;o<s;o++)(e=arguments[o])&&(r=G(e))&&(t&&(t+=" "),t+=r);return t}const Je=(e,r)=>{const o=new Array(e.length+r.length);for(let t=0;t<e.length;t++)o[t]=e[t];for(let t=0;t<r.length;t++)o[e.length+t]=r[t];return o},Ke=(e,r)=>({classGroupId:e,validator:r}),fe=(e=new Map,r=null,o)=>({nextPart:e,validators:r,classGroupId:o}),X="-",ge=[],Qe="arbitrary..",He=e=>{const r=eo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Ze(l);const b=l.split(X),f=b[0]===""&&b.length>1?1:0;return he(b,f,r)},getConflictingClassGroupIds:(l,b)=>{if(b){const f=t[l],m=o[l];return f?m?Je(m,f):f:m||ge}return o[l]||ge}}},he=(e,r,o)=>{if(e.length-r===0)return o.classGroupId;const s=e[r],c=o.nextPart.get(s);if(c){const m=he(e,r+1,c);if(m)return m}const l=o.validators;if(l===null)return;const b=r===0?e.join(X):e.slice(r).join(X),f=l.length;for(let m=0;m<f;m++){const y=l[m];if(y.validator(b))return y.classGroupId}},Ze=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),o=r.indexOf(":"),t=r.slice(0,o);return t?Qe+t:void 0})(),eo=e=>{const{theme:r,classGroups:o}=e;return oo(o,r)},oo=(e,r)=>{const o=fe();for(const t in e){const s=e[t];ne(s,o,t,r)}return o},ne=(e,r,o,t)=>{const s=e.length;for(let c=0;c<s;c++){const l=e[c];to(l,r,o,t)}},to=(e,r,o,t)=>{if(typeof e=="string"){ro(e,r,o);return}if(typeof e=="function"){so(e,r,o,t);return}no(e,r,o,t)},ro=(e,r,o)=>{const t=e===""?r:xe(r,e);t.classGroupId=o},so=(e,r,o,t)=>{if(ao(e)){ne(e(t),r,o,t);return}r.validators===null&&(r.validators=[]),r.validators.push(Ke(o,e))},no=(e,r,o,t)=>{const s=Object.entries(e),c=s.length;for(let l=0;l<c;l++){const[b,f]=s[l];ne(f,xe(r,b),o,t)}},xe=(e,r)=>{let o=e;const t=r.split(X),s=t.length;for(let c=0;c<s;c++){const l=t[c];let b=o.nextPart.get(l);b||(b=fe(),o.nextPart.set(l,b)),o=b}return o},ao=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,io=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),t=Object.create(null);const s=(c,l)=>{o[c]=l,r++,r>e&&(r=0,t=o,o=Object.create(null))};return{get(c){let l=o[c];if(l!==void 0)return l;if((l=t[c])!==void 0)return s(c,l),l},set(c,l){c in o?o[c]=l:s(c,l)}}},ae="!",ye=":",lo=[],ke=(e,r,o,t,s)=>({modifiers:e,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:t,isExternal:s}),co=e=>{const{prefix:r,experimentalParseClassName:o}=e;let t=s=>{const c=[];let l=0,b=0,f=0,m;const y=s.length;for(let v=0;v<y;v++){const M=s[v];if(l===0&&b===0){if(M===ye){c.push(s.slice(f,v)),f=v+1;continue}if(M==="/"){m=v;continue}}M==="["?l++:M==="]"?l--:M==="("?b++:M===")"&&b--}const k=c.length===0?s:s.slice(f);let T=k,I=!1;k.endsWith(ae)?(T=k.slice(0,-1),I=!0):k.startsWith(ae)&&(T=k.slice(1),I=!0);const B=m&&m>f?m-f:void 0;return ke(c,I,T,B)};if(r){const s=r+ye,c=t;t=l=>l.startsWith(s)?c(l.slice(s.length)):ke(lo,!1,l,void 0,!0)}if(o){const s=t;t=c=>o({className:c,parseClassName:s})}return t},mo=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{r.set(o,1e6+t)}),o=>{const t=[];let s=[];for(let c=0;c<o.length;c++){const l=o[c],b=l[0]==="[",f=r.has(l);b||f?(s.length>0&&(s.sort(),t.push(...s),s=[]),t.push(l)):s.push(l)}return s.length>0&&(s.sort(),t.push(...s)),t}},po=e=>Ye({cache:io(e.cacheSize),parseClassName:co(e),sortModifiers:mo(e),postfixLookupClassGroupIds:uo(e)},He(e)),uo=e=>{const r=Object.create(null),o=e.postfixLookupClassGroups;if(o)for(let t=0;t<o.length;t++)r[o[t]]=!0;return r},bo=/\s+/,fo=(e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:s,sortModifiers:c,postfixLookupClassGroupIds:l}=r,b=[],f=e.trim().split(bo);let m="";for(let y=f.length-1;y>=0;y-=1){const k=f[y],{isExternal:T,modifiers:I,hasImportantModifier:B,baseClassName:v,maybePostfixModifierPosition:M}=o(k);if(T){m=k+(m.length>0?" "+m:m);continue}let E=!!M,C;if(E){const g=v.substring(0,M);C=t(g);const i=C&&l[C]?t(v):void 0;i&&i!==C&&(C=i,E=!1)}else C=t(v);if(!C){if(!E){m=k+(m.length>0?" "+m:m);continue}if(C=t(v),!C){m=k+(m.length>0?" "+m:m);continue}E=!1}const U=I.length===0?"":I.length===1?I[0]:c(I).join(":"),V=B?U+ae:U,O=V+C;if(b.indexOf(O)>-1)continue;b.push(O);const F=s(C,E);for(let g=0;g<F.length;++g){const i=F[g];b.push(V+i)}m=k+(m.length>0?" "+m:m)}return m},go=(...e)=>{let r=0,o,t,s="";for(;r<e.length;)(o=e[r++])&&(t=we(o))&&(s&&(s+=" "),s+=t);return s},we=e=>{if(typeof e=="string")return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=we(e[t]))&&(o&&(o+=" "),o+=r);return o},ve=(e,...r)=>{let o,t,s,c;const l=f=>{const m=r.reduce((y,k)=>k(y),e());return o=po(m),t=o.cache.get,s=o.cache.set,c=b,b(f)},b=f=>{const m=t(f);if(m)return m;const y=fo(f,o);return s(f,y),y};return c=l,(...f)=>c(go(...f))},ho=[],x=e=>{const r=o=>o[e]||ho;return r.isThemeGetter=!0,r},ze=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ce=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,yo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ko=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,wo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,N=e=>xo.test(e),u=e=>!!e&&!Number.isNaN(Number(e)),P=e=>!!e&&Number.isInteger(Number(e)),ie=e=>e.endsWith("%")&&u(e.slice(0,-1)),L=e=>yo.test(e),Se=()=>!0,Co=e=>ko.test(e)&&!wo.test(e),le=()=>!1,So=e=>vo.test(e),Ao=e=>zo.test(e),Go=e=>!n(e)&&!a(e),Mo=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Io=e=>j(e,Pe,le),n=e=>ze.test(e),W=e=>j(e,Te,Co),Ae=e=>j(e,Bo,u),Ro=e=>j(e,Ee,Se),Po=e=>j(e,Le,le),Ge=e=>j(e,Ie,le),To=e=>j(e,Re,Ao),J=e=>j(e,Ne,So),a=e=>Ce.test(e),Y=e=>D(e,Te),Lo=e=>D(e,Le),Me=e=>D(e,Ie),Eo=e=>D(e,Pe),No=e=>D(e,Re),K=e=>D(e,Ne,!0),jo=e=>D(e,Ee,!0),j=(e,r,o)=>{const t=ze.exec(e);return t?t[1]?r(t[1]):o(t[2]):!1},D=(e,r,o=!1)=>{const t=Ce.exec(e);return t?t[1]?r(t[1]):o:!1},Ie=e=>e==="position"||e==="percentage",Re=e=>e==="image"||e==="url",Pe=e=>e==="length"||e==="size"||e==="bg-size",Te=e=>e==="length",Bo=e=>e==="number",Le=e=>e==="family-name",Ee=e=>e==="number"||e==="weight",Ne=e=>e==="shadow",je=()=>{const e=x("color"),r=x("font"),o=x("text"),t=x("font-weight"),s=x("tracking"),c=x("leading"),l=x("breakpoint"),b=x("container"),f=x("spacing"),m=x("radius"),y=x("shadow"),k=x("inset-shadow"),T=x("text-shadow"),I=x("drop-shadow"),B=x("blur"),v=x("perspective"),M=x("aspect"),E=x("ease"),C=x("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...V(),a,n],F=()=>["auto","hidden","clip","visible","scroll"],g=()=>["auto","contain","none"],i=()=>[a,n,f],h=()=>[N,"full","auto",...i()],Be=()=>[P,"none","subgrid",a,n],Ve=()=>["auto",{span:["full",P,a,n]},P,a,n],ee=()=>[P,"auto",a,n],Oe=()=>["auto","min","max","fr",a,n],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...i()],$=()=>[N,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],me=()=>[N,"screen","full","dvw","lvw","svw","min","max","fit",...i()],pe=()=>[N,"screen","full","lh","dvh","lvh","svh","min","max","fit",...i()],d=()=>[e,a,n],Fe=()=>[...V(),Me,Ge,{position:[a,n]}],We=()=>["no-repeat",{repeat:["","x","y","space","round"]}],De=()=>["auto","cover","contain",Eo,Io,{size:[a,n]}],ue=()=>[ie,Y,W],S=()=>["","none","full",m,a,n],A=()=>["",u,Y,W],oe=()=>["solid","dashed","dotted","double"],Ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],w=()=>[u,ie,Me,Ge],$e=()=>["","none",B,a,n],te=()=>["none",u,a,n],re=()=>["none",u,a,n],be=()=>[u,a,n],se=()=>[N,"full",...i()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[L],breakpoint:[L],color:[Se],container:[L],"drop-shadow":[L],ease:["in","out","in-out"],font:[Go],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[L],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[L],shadow:[L],spacing:["px",u],text:[L],"text-shadow":[L],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",N,n,a,M]}],container:["container"],"container-type":[{"@container":["","normal","size",a,n]}],"container-named":[Mo],columns:[{columns:[u,n,a,b]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:g()}],"overscroll-x":[{"overscroll-x":g()}],"overscroll-y":[{"overscroll-y":g()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:h()}],"inset-x":[{"inset-x":h()}],"inset-y":[{"inset-y":h()}],start:[{"inset-s":h(),start:h()}],end:[{"inset-e":h(),end:h()}],"inset-bs":[{"inset-bs":h()}],"inset-be":[{"inset-be":h()}],top:[{top:h()}],right:[{right:h()}],bottom:[{bottom:h()}],left:[{left:h()}],visibility:["visible","invisible","collapse"],z:[{z:[P,"auto",a,n]}],basis:[{basis:[N,"full","auto",b,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[u,N,"auto","initial","none",n]}],grow:[{grow:["",u,a,n]}],shrink:[{shrink:["",u,a,n]}],order:[{order:[P,"first","last","none",a,n]}],"grid-cols":[{"grid-cols":Be()}],"col-start-end":[{col:Ve()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":Be()}],"row-start-end":[{row:Ve()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Oe()}],"auto-rows":[{"auto-rows":Oe()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:i()}],px:[{px:i()}],py:[{py:i()}],ps:[{ps:i()}],pe:[{pe:i()}],pbs:[{pbs:i()}],pbe:[{pbe:i()}],pt:[{pt:i()}],pr:[{pr:i()}],pb:[{pb:i()}],pl:[{pl:i()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mbs:[{mbs:R()}],mbe:[{mbe:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...me()]}],"min-inline-size":[{"min-inline":["auto",...me()]}],"max-inline-size":[{"max-inline":["none",...me()]}],"block-size":[{block:["auto",...pe()]}],"min-block-size":[{"min-block":["auto",...pe()]}],"max-block-size":[{"max-block":["none",...pe()]}],w:[{w:[b,"screen",...$()]}],"min-w":[{"min-w":[b,"screen","none",...$()]}],"max-w":[{"max-w":[b,"screen","none","prose",{screen:[l]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",o,Y,W]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,jo,Ro]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ie,n]}],"font-family":[{font:[Lo,Po,r]}],"font-features":[{"font-features":[n]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,a,n]}],"line-clamp":[{"line-clamp":[u,"none",a,Ae]}],leading:[{leading:[c,...i()]}],"list-image":[{"list-image":["none",a,n]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",a,n]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:d()}],"text-color":[{text:d()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[u,"from-font","auto",a,W]}],"text-decoration-color":[{decoration:d()}],"underline-offset":[{"underline-offset":[u,"auto",a,n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:i()}],"tab-size":[{tab:[P,a,n]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",a,n]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",a,n]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Fe()}],"bg-repeat":[{bg:We()}],"bg-size":[{bg:De()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},P,a,n],radial:["",a,n],conic:[P,a,n]},No,To]}],"bg-color":[{bg:d()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:d()}],"gradient-via":[{via:d()}],"gradient-to":[{to:d()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:A()}],"border-w-x":[{"border-x":A()}],"border-w-y":[{"border-y":A()}],"border-w-s":[{"border-s":A()}],"border-w-e":[{"border-e":A()}],"border-w-bs":[{"border-bs":A()}],"border-w-be":[{"border-be":A()}],"border-w-t":[{"border-t":A()}],"border-w-r":[{"border-r":A()}],"border-w-b":[{"border-b":A()}],"border-w-l":[{"border-l":A()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":A()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:d()}],"border-color-x":[{"border-x":d()}],"border-color-y":[{"border-y":d()}],"border-color-s":[{"border-s":d()}],"border-color-e":[{"border-e":d()}],"border-color-bs":[{"border-bs":d()}],"border-color-be":[{"border-be":d()}],"border-color-t":[{"border-t":d()}],"border-color-r":[{"border-r":d()}],"border-color-b":[{"border-b":d()}],"border-color-l":[{"border-l":d()}],"divide-color":[{divide:d()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[u,a,n]}],"outline-w":[{outline:["",u,Y,W]}],"outline-color":[{outline:d()}],shadow:[{shadow:["","none",y,K,J]}],"shadow-color":[{shadow:d()}],"inset-shadow":[{"inset-shadow":["none",k,K,J]}],"inset-shadow-color":[{"inset-shadow":d()}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:d()}],"ring-offset-w":[{"ring-offset":[u,W]}],"ring-offset-color":[{"ring-offset":d()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":d()}],"text-shadow":[{"text-shadow":["none",T,K,J]}],"text-shadow-color":[{"text-shadow":d()}],opacity:[{opacity:[u,a,n]}],"mix-blend":[{"mix-blend":[...Ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[u]}],"mask-image-linear-from-pos":[{"mask-linear-from":w()}],"mask-image-linear-to-pos":[{"mask-linear-to":w()}],"mask-image-linear-from-color":[{"mask-linear-from":d()}],"mask-image-linear-to-color":[{"mask-linear-to":d()}],"mask-image-t-from-pos":[{"mask-t-from":w()}],"mask-image-t-to-pos":[{"mask-t-to":w()}],"mask-image-t-from-color":[{"mask-t-from":d()}],"mask-image-t-to-color":[{"mask-t-to":d()}],"mask-image-r-from-pos":[{"mask-r-from":w()}],"mask-image-r-to-pos":[{"mask-r-to":w()}],"mask-image-r-from-color":[{"mask-r-from":d()}],"mask-image-r-to-color":[{"mask-r-to":d()}],"mask-image-b-from-pos":[{"mask-b-from":w()}],"mask-image-b-to-pos":[{"mask-b-to":w()}],"mask-image-b-from-color":[{"mask-b-from":d()}],"mask-image-b-to-color":[{"mask-b-to":d()}],"mask-image-l-from-pos":[{"mask-l-from":w()}],"mask-image-l-to-pos":[{"mask-l-to":w()}],"mask-image-l-from-color":[{"mask-l-from":d()}],"mask-image-l-to-color":[{"mask-l-to":d()}],"mask-image-x-from-pos":[{"mask-x-from":w()}],"mask-image-x-to-pos":[{"mask-x-to":w()}],"mask-image-x-from-color":[{"mask-x-from":d()}],"mask-image-x-to-color":[{"mask-x-to":d()}],"mask-image-y-from-pos":[{"mask-y-from":w()}],"mask-image-y-to-pos":[{"mask-y-to":w()}],"mask-image-y-from-color":[{"mask-y-from":d()}],"mask-image-y-to-color":[{"mask-y-to":d()}],"mask-image-radial":[{"mask-radial":[a,n]}],"mask-image-radial-from-pos":[{"mask-radial-from":w()}],"mask-image-radial-to-pos":[{"mask-radial-to":w()}],"mask-image-radial-from-color":[{"mask-radial-from":d()}],"mask-image-radial-to-color":[{"mask-radial-to":d()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[u]}],"mask-image-conic-from-pos":[{"mask-conic-from":w()}],"mask-image-conic-to-pos":[{"mask-conic-to":w()}],"mask-image-conic-from-color":[{"mask-conic-from":d()}],"mask-image-conic-to-color":[{"mask-conic-to":d()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Fe()}],"mask-repeat":[{mask:We()}],"mask-size":[{mask:De()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",a,n]}],filter:[{filter:["","none",a,n]}],blur:[{blur:$e()}],brightness:[{brightness:[u,a,n]}],contrast:[{contrast:[u,a,n]}],"drop-shadow":[{"drop-shadow":["","none",I,K,J]}],"drop-shadow-color":[{"drop-shadow":d()}],grayscale:[{grayscale:["",u,a,n]}],"hue-rotate":[{"hue-rotate":[u,a,n]}],invert:[{invert:["",u,a,n]}],saturate:[{saturate:[u,a,n]}],sepia:[{sepia:["",u,a,n]}],"backdrop-filter":[{"backdrop-filter":["","none",a,n]}],"backdrop-blur":[{"backdrop-blur":$e()}],"backdrop-brightness":[{"backdrop-brightness":[u,a,n]}],"backdrop-contrast":[{"backdrop-contrast":[u,a,n]}],"backdrop-grayscale":[{"backdrop-grayscale":["",u,a,n]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u,a,n]}],"backdrop-invert":[{"backdrop-invert":["",u,a,n]}],"backdrop-opacity":[{"backdrop-opacity":[u,a,n]}],"backdrop-saturate":[{"backdrop-saturate":[u,a,n]}],"backdrop-sepia":[{"backdrop-sepia":["",u,a,n]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":i()}],"border-spacing-x":[{"border-spacing-x":i()}],"border-spacing-y":[{"border-spacing-y":i()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",a,n]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[u,"initial",a,n]}],ease:[{ease:["linear","initial",E,a,n]}],delay:[{delay:[u,a,n]}],animate:[{animate:["none",C,a,n]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,a,n]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[a,n,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:se()}],"translate-x":[{"translate-x":se()}],"translate-y":[{"translate-y":se()}],"translate-z":[{"translate-z":se()}],"translate-none":["translate-none"],zoom:[{zoom:[P,a,n]}],accent:[{accent:d()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:d()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",a,n]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":d()}],"scrollbar-track-color":[{"scrollbar-track":d()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":i()}],"scroll-mx":[{"scroll-mx":i()}],"scroll-my":[{"scroll-my":i()}],"scroll-ms":[{"scroll-ms":i()}],"scroll-me":[{"scroll-me":i()}],"scroll-mbs":[{"scroll-mbs":i()}],"scroll-mbe":[{"scroll-mbe":i()}],"scroll-mt":[{"scroll-mt":i()}],"scroll-mr":[{"scroll-mr":i()}],"scroll-mb":[{"scroll-mb":i()}],"scroll-ml":[{"scroll-ml":i()}],"scroll-p":[{"scroll-p":i()}],"scroll-px":[{"scroll-px":i()}],"scroll-py":[{"scroll-py":i()}],"scroll-ps":[{"scroll-ps":i()}],"scroll-pe":[{"scroll-pe":i()}],"scroll-pbs":[{"scroll-pbs":i()}],"scroll-pbe":[{"scroll-pbe":i()}],"scroll-pt":[{"scroll-pt":i()}],"scroll-pr":[{"scroll-pr":i()}],"scroll-pb":[{"scroll-pb":i()}],"scroll-pl":[{"scroll-pl":i()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",a,n]}],fill:[{fill:["none",...d()]}],"stroke-w":[{stroke:[u,Y,W,Ae]}],stroke:[{stroke:["none",...d()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Vo=(e,{cacheSize:r,prefix:o,experimentalParseClassName:t,extend:s={},override:c={}})=>(_(e,"cacheSize",r),_(e,"prefix",o),_(e,"experimentalParseClassName",t),Q(e.theme,c.theme),Q(e.classGroups,c.classGroups),Q(e.conflictingClassGroups,c.conflictingClassGroups),Q(e.conflictingClassGroupModifiers,c.conflictingClassGroupModifiers),_(e,"postfixLookupClassGroups",c.postfixLookupClassGroups),_(e,"orderSensitiveModifiers",c.orderSensitiveModifiers),H(e.theme,s.theme),H(e.classGroups,s.classGroups),H(e.conflictingClassGroups,s.conflictingClassGroups),H(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),ce(e,s,"postfixLookupClassGroups"),ce(e,s,"orderSensitiveModifiers"),e),_=(e,r,o)=>{o!==void 0&&(e[r]=o)},Q=(e,r)=>{if(r)for(const o in r)_(e,o,r[o])},H=(e,r)=>{if(r)for(const o in r)ce(e,r,o)},ce=(e,r,o)=>{const t=r[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t)},Oo=((e,...r)=>typeof e=="function"?ve(je,e,...r):ve(()=>Vo(je(),e),...r))({extend:{theme:{color:["accent","on-accent","accent-hover","accent-subtle","accent-subtle-hover","accent-strong","accent-strong-hover","fg","fg-accent","surface","surface-muted","edge","danger","danger-hover"],radius:["btn"]}}});function Z(...e){return Oo(Xe(e))}const Fo=["data-standalone","data-state","data-position","data-pointer","data-help-cursor","data-radius","tabindex"],Wo=["id","data-state"],Do=p.defineComponent({__name:"index",props:{id:{},text:{},position:{default:"top"},pointer:{type:Boolean,default:!0},helpCursor:{type:Boolean,default:!1},radius:{default:"md"},standalone:{type:Boolean,default:!1},ui:{default:()=>({})}},setup(e){const r=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),o={root:["group/tooltip relative inline-flex font-sans","outline-none","focus-visible:outline focus-visible:outline-[length:var(--border-m)]","focus-visible:outline-[color:var(--color-text-accent)]","focus-visible:outline-offset-[length:var(--border-m)]"].join(" "),content:["absolute box-border max-w-64 min-w-16 w-max overflow-visible","z-[var(--tooltip-z-index,1)]","border-[length:var(--border-s)] border-solid","border-[color:var(--color-text-primary-inverse)]","bg-[color:var(--color-background-secondary-inverse)]","px-2 py-1.5","text-center text-sm leading-[1.3] font-normal","text-[color:var(--color-text-primary-inverse)]","invisible","data-[state=open]:visible"].join(" "),text:"line-clamp-2 break-all",contentStandalone:["!visible relative inset-auto translate-x-0 translate-y-0"].join(" "),pointer:["pointer-events-none absolute z-[1] box-border size-2.5 rotate-45","bg-[color:var(--color-background-secondary-inverse)]","border-solid border-[length:var(--border-s)]","border-[color:var(--color-text-primary-inverse)]"].join(" ")},t={helpCursor:{true:{root:"hover:cursor-help focus-within:cursor-help data-[standalone=true]:cursor-help"}},position:{top:{content:"bottom-[calc(100%+0.3125rem)] left-1/2 -translate-x-1/2",pointer:"left-1/2 top-full -translate-x-1/2 -translate-y-1/2 border-t-0 border-l-0"},bottom:{content:"top-[calc(100%+0.3125rem)] left-1/2 -translate-x-1/2",pointer:"left-1/2 bottom-full -translate-x-1/2 translate-y-1/2 border-b-0 border-r-0"},left:{content:"right-[calc(100%+0.3125rem)] top-1/2 -translate-y-1/2",pointer:"left-full top-1/2 -translate-x-1/2 -translate-y-1/2 border-b-0 border-l-0"},right:{content:"left-[calc(100%+0.3125rem)] top-1/2 -translate-y-1/2",pointer:"right-full top-1/2 translate-x-1/2 -translate-y-1/2 border-t-0 border-r-0"}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-[length:var(--border-radius-s)]"},md:{content:"rounded-[length:var(--border-radius-m)]"},lg:{content:"rounded-[length:var(--border-radius-l)]"}}},s=e,c=p.ref(null),l=p.ref(!1),b=p.ref(!1),f=p.ref(null),m=p.ref(!1),y=p.computed(()=>s.standalone||l.value&&!b.value),k=()=>{s.standalone||(b.value=!1,l.value=!0)},T=()=>{s.standalone||(l.value=!1)},I=()=>{s.standalone||!y.value||(b.value=!0,l.value=!1)},B=()=>{const g=f.value;(g==null?void 0:g.getAttribute("aria-describedby"))===s.id&&g.removeAttribute("aria-describedby"),f.value=null,m.value=!1},v=()=>{if(B(),s.standalone)return;const g=c.value;if(!g)return;const i=g.querySelector(r),h=i&&i!==g?i:g;h.setAttribute("aria-describedby",s.id),f.value=h,m.value=h===g},M=g=>{g.key==="Escape"&&I()},E=()=>{k()},C=g=>{const i=c.value,h=g.relatedTarget;i&&h&&i.contains(h)||T()};p.onMounted(()=>{v()}),p.onBeforeUnmount(()=>{B()}),p.watch(()=>[s.id,s.standalone],()=>{p.nextTick(v)});const U=p.computed(()=>Z(o.root,s.helpCursor&&t.helpCursor.true.root,s.ui.root)),V=p.computed(()=>Z(o.content,t.radius[s.radius].content,!s.standalone&&t.position[s.position].content,s.standalone&&o.contentStandalone,s.ui.content)),O=p.computed(()=>Z(o.text,s.ui.text)),F=p.computed(()=>Z(o.pointer,t.position[s.position].pointer,s.ui.pointer));return(g,i)=>(p.openBlock(),p.createElementBlock("div",{ref_key:"rootRef",ref:c,"data-testid":"tooltip",class:p.normalizeClass(U.value),"data-standalone":e.standalone||void 0,"data-state":y.value?"open":"closed","data-position":e.position,"data-pointer":e.pointer?"true":"false","data-help-cursor":e.helpCursor?"true":"false","data-radius":e.radius,tabindex:m.value?0:void 0,onMouseenter:k,onMouseleave:T,onFocusin:E,onFocusout:C,onKeydown:M},[p.renderSlot(g.$slots,"default"),p.createElementVNode("span",{id:e.id,"data-testid":"tooltip-content",role:"tooltip","data-state":y.value?"open":"closed",class:p.normalizeClass(V.value)},[p.createElementVNode("span",{"data-testid":"tooltip-text",class:p.normalizeClass(O.value)},p.toDisplayString(e.text),3),e.pointer?(p.openBlock(),p.createElementBlock("span",{key:0,"data-testid":"tooltip-pointer","aria-hidden":"true",class:p.normalizeClass(F.value)},null,2)):p.createCommentVNode("",!0)],10,Wo)],42,Fo))}});z.AzTooltip=Do,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1,150 @@
1
+ export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
2
+ export type TooltipRadius = 'none' | 'sm' | 'md' | 'lg';
3
+ export interface TooltipUi {
4
+ /** Wrapper around the trigger slot and tooltip bubble. */
5
+ root?: string;
6
+ /** The tooltip bubble (`role="tooltip"`). */
7
+ content?: string;
8
+ /** The tooltip label text. */
9
+ text?: string;
10
+ /** Arrow pointing at the trigger (origin indicator). */
11
+ pointer?: string;
12
+ }
13
+ declare function __VLS_template(): Readonly<{
14
+ /**
15
+ * The tooltip will point to the content of the slot (the trigger).
16
+ * Prefer a focusable control, or plain text — the root becomes focusable
17
+ * when no focusable descendant is found.
18
+ */
19
+ default?: () => unknown;
20
+ }> & {
21
+ /**
22
+ * The tooltip will point to the content of the slot (the trigger).
23
+ * Prefer a focusable control, or plain text — the root becomes focusable
24
+ * when no focusable descendant is found.
25
+ */
26
+ default?: () => unknown;
27
+ };
28
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
29
+ /**
30
+ * A unique identifier for the tooltip, used to describe the tooltip
31
+ * (`aria-describedby` / content `id`).
32
+ */
33
+ id: string;
34
+ /**
35
+ * Content of the tooltip. Keep the tooltip text concise (1–2 lines).
36
+ * Do not put essential information only here — some AT may skip descriptions.
37
+ */
38
+ text: string;
39
+ /**
40
+ * Determines the position of the tooltip relative to the trigger.
41
+ */
42
+ position?: TooltipPosition;
43
+ /**
44
+ * When true, the tooltip displays an arrow pointing at the trigger
45
+ * (the origin the tooltip “comes from”).
46
+ */
47
+ pointer?: boolean;
48
+ /**
49
+ * When true, shows the help cursor (`?`) on hover / focus of the trigger.
50
+ */
51
+ helpCursor?: boolean;
52
+ /**
53
+ * Border radius of the tooltip bubble. Maps to theme `--border-radius-*`.
54
+ */
55
+ radius?: TooltipRadius;
56
+ /**
57
+ * When true, the tooltip is always visible (no hover/focus gate) and
58
+ * laid out in normal flow — useful for docs and dataviz callouts.
59
+ */
60
+ standalone?: boolean;
61
+ /**
62
+ * Tailwind class overrides per structural part (`root`, `content`, `text`, `pointer`).
63
+ * Merged with `defaultTooltipUi` via `cn()` — conflicting utilities win.
64
+ */
65
+ ui?: TooltipUi;
66
+ }>, {
67
+ position: string;
68
+ pointer: boolean;
69
+ helpCursor: boolean;
70
+ radius: string;
71
+ standalone: boolean;
72
+ ui: () => {};
73
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
74
+ /**
75
+ * A unique identifier for the tooltip, used to describe the tooltip
76
+ * (`aria-describedby` / content `id`).
77
+ */
78
+ id: string;
79
+ /**
80
+ * Content of the tooltip. Keep the tooltip text concise (1–2 lines).
81
+ * Do not put essential information only here — some AT may skip descriptions.
82
+ */
83
+ text: string;
84
+ /**
85
+ * Determines the position of the tooltip relative to the trigger.
86
+ */
87
+ position?: TooltipPosition;
88
+ /**
89
+ * When true, the tooltip displays an arrow pointing at the trigger
90
+ * (the origin the tooltip “comes from”).
91
+ */
92
+ pointer?: boolean;
93
+ /**
94
+ * When true, shows the help cursor (`?`) on hover / focus of the trigger.
95
+ */
96
+ helpCursor?: boolean;
97
+ /**
98
+ * Border radius of the tooltip bubble. Maps to theme `--border-radius-*`.
99
+ */
100
+ radius?: TooltipRadius;
101
+ /**
102
+ * When true, the tooltip is always visible (no hover/focus gate) and
103
+ * laid out in normal flow — useful for docs and dataviz callouts.
104
+ */
105
+ standalone?: boolean;
106
+ /**
107
+ * Tailwind class overrides per structural part (`root`, `content`, `text`, `pointer`).
108
+ * Merged with `defaultTooltipUi` via `cn()` — conflicting utilities win.
109
+ */
110
+ ui?: TooltipUi;
111
+ }>, {
112
+ position: string;
113
+ pointer: boolean;
114
+ helpCursor: boolean;
115
+ radius: string;
116
+ standalone: boolean;
117
+ ui: () => {};
118
+ }>>> & Readonly<{}>, {
119
+ position: TooltipPosition;
120
+ radius: TooltipRadius;
121
+ pointer: boolean;
122
+ helpCursor: boolean;
123
+ standalone: boolean;
124
+ ui: TooltipUi;
125
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
126
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
127
+ export default _default;
128
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
129
+ type __VLS_TypePropsToRuntimeProps<T> = {
130
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
131
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
132
+ } : {
133
+ type: import('vue').PropType<T[K]>;
134
+ required: true;
135
+ };
136
+ };
137
+ type __VLS_WithDefaults<P, D> = {
138
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
139
+ default: D[K];
140
+ }> : P[K];
141
+ };
142
+ type __VLS_Prettify<T> = {
143
+ [K in keyof T]: T[K];
144
+ } & {};
145
+ type __VLS_WithTemplateSlots<T, S> = T & {
146
+ new (): {
147
+ $slots: S;
148
+ };
149
+ };
150
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../src/index.vue"],"names":[],"mappings":"AAKA,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AAEjE,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEvD,MAAM,WAAW,SAAS;IACxB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAgRD,iBAAS,cAAc;IAvIrB;;;;OAIG;cACO,MAAM,OAAO;;IALvB;;;;OAIG;cACO,MAAM,OAAO;EAkNxB;AA0DD,QAAA,MAAM,eAAe;IAMjB;;;OAGG;QACC,MAAM;IACV;;;OAGG;UACG,MAAM;IACZ;;OAEG;eACQ,eAAe;IAC1B;;;OAGG;cACO,OAAO;IACjB;;OAEG;iBACU,OAAO;IACpB;;OAEG;aACM,aAAa;IACtB;;;OAGG;iBACU,OAAO;IACpB;;;OAGG;SACE,SAAS;;;;;;;;;IApCd;;;OAGG;QACC,MAAM;IACV;;;OAGG;UACG,MAAM;IACZ;;OAEG;eACQ,eAAe;IAC1B;;;OAGG;cACO,OAAO;IACjB;;OAEG;iBACU,OAAO;IACpB;;OAEG;aACM,aAAa;IACtB;;;OAGG;iBACU,OAAO;IACpB;;;OAGG;SACE,SAAS;;;;;;;;;cAvBH,eAAe;YAajB,aAAa;aARZ,OAAO;gBAIJ,OAAO;gBASP,OAAO;QAKf,SAAS;4EAEhB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ /*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}.pointer-events-none{pointer-events:none}.\!visible{visibility:visible!important}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.inset-auto{inset:auto}.top-1\/2{top:50%}.top-\[calc\(100\%\+0\.3125rem\)\]{top:calc(100% + .3125rem)}.top-full{top:100%}.right-\[calc\(100\%\+0\.3125rem\)\]{right:calc(100% + .3125rem)}.right-full{right:100%}.bottom-\[calc\(100\%\+0\.3125rem\)\]{bottom:calc(100% + .3125rem)}.bottom-full{bottom:100%}.left-1\/2{left:50%}.left-\[calc\(100\%\+0\.3125rem\)\]{left:calc(100% + .3125rem)}.left-full{left:100%}.z-\[1\]{z-index:1}.z-\[var\(--tooltip-z-index\,1\)\]{z-index:var(--tooltip-z-index,1)}.box-border{box-sizing:border-box}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.hidden{display:none}.inline-flex{display:inline-flex}.table{display:table}.size-2\.5{width:calc(var(--spacing,.25rem) * 2.5);height:calc(var(--spacing,.25rem) * 2.5)}.w-max{width:max-content}.max-w-64{max-width:calc(var(--spacing,.25rem) * 64)}.min-w-16{min-width:calc(var(--spacing,.25rem) * 16)}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing,.25rem) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-1\/2{--tw-translate-x: 50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing,.25rem) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-1\/2{--tw-translate-y: 50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-45{rotate:45deg}.overflow-visible{overflow:visible}.rounded-\[length\:var\(--border-radius-l\)\]{border-radius:var(--border-radius-l)}.rounded-\[length\:var\(--border-radius-m\)\]{border-radius:var(--border-radius-m)}.rounded-\[length\:var\(--border-radius-s\)\]{border-radius:var(--border-radius-s)}.rounded-none{border-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-\[length\:var\(--border-s\)\]{border-style:var(--tw-border-style);border-width:var(--border-s)}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-solid{--tw-border-style:solid;border-style:solid}.border-\[color\:var\(--color-text-primary-inverse\)\]{border-color:var(--color-text-primary-inverse)}.border-transparent{border-color:#0000}.bg-\[color\:var\(--color-background-accent-inverse\)\]{background-color:var(--color-background-accent-inverse)}.bg-\[color\:var\(--color-background-secondary-inverse\)\]{background-color:var(--color-background-secondary-inverse)}.bg-accent{background-color:var(--color-background-accent-inverse)}.px-2{padding-inline:calc(var(--spacing,.25rem) * 2)}.py-1\.5{padding-block:calc(var(--spacing,.25rem) * 1.5)}.text-center{text-align:center}.font-sans{font-family:var(--font-family,ui-sans-serif, system-ui, sans-serif)}.text-sm{font-size:var(--font-size-04);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25 / .875)))}.leading-\[1\.3\]{--tw-leading:1.3;line-height:1.3}.font-normal{--tw-font-weight:var(--font-weight-regular);font-weight:var(--font-weight-regular)}.tracking-wide{--tw-tracking:var(--tracking-wide,.025em);letter-spacing:var(--tracking-wide,.025em)}.break-all{word-break:break-all}.text-\[color\:var\(--color-text-primary-inverse\)\]{color:var(--color-text-primary-inverse)}.text-\[color\:var\(--color-…\)\]{color:var(--color-…)}.uppercase{text-transform:uppercase}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.outline-red-500{outline-color:var(--color-red-500,oklch(63.7% .237 25.331))}.outline-none{--tw-outline-style:none;outline-style:none}.focus-within\:cursor-help:focus-within{cursor:help}@media (hover:hover){.hover\:cursor-help:hover{cursor:help}}.focus-visible\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-\[length\:var\(--border-m\)\]:focus-visible{outline-style:var(--tw-outline-style);outline-width:var(--border-m)}.focus-visible\:outline-offset-\[length\:var\(--border-m\)\]:focus-visible{outline-offset:var(--border-m)}.focus-visible\:outline-\[color\:var\(--color-text-accent\)\]:focus-visible{outline-color:var(--color-text-accent)}.data-\[standalone\=true\]\:cursor-help[data-standalone=true]{cursor:help}.data-\[state\=open\]\:visible[data-state=open]{visibility:visible}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@ptlm-azulejo/tooltip",
3
+ "version": "0.0.1-alpha.95",
4
+ "type": "module",
5
+ "main": "./dist/index.umd.cjs",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "require": "./dist/index.umd.cjs"
13
+ },
14
+ "./style.css": "./dist/style.css"
15
+ },
16
+ "scripts": {
17
+ "build": "vite build",
18
+ "test": "vitest --run --passWithNoTests",
19
+ "storybook": "storybook dev -p 6006",
20
+ "build-storybook": "storybook build"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public",
24
+ "registry": "https://registry.npmjs.org"
25
+ },
26
+ "files": [
27
+ "dist/*"
28
+ ],
29
+ "devDependencies": {
30
+ "@ptlm-azulejo/fonts-adeo": "*",
31
+ "@ptlm-azulejo/fonts-leroy-merlin": "*",
32
+ "@ptlm-azulejo/themes": "*",
33
+ "@storybook/addon-essentials": "^7.0.0",
34
+ "@storybook/addon-interactions": "^7.0.0",
35
+ "@storybook/test": "^7.0.0",
36
+ "@storybook/vue3": "^7.0.0",
37
+ "@storybook/vue3-vite": "^7.0.0",
38
+ "@tailwindcss/vite": "^4.0.0",
39
+ "storybook": "^7.0.0",
40
+ "tailwindcss": "^4.0.0",
41
+ "vue": "^3.3.4"
42
+ },
43
+ "peerDependencies": {
44
+ "vue": ">=3.0.0"
45
+ }
46
+ }