@ptlm-azulejo/tooltip 0.0.1-alpha.104

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(v,p){typeof exports=="object"&&typeof module!="undefined"?p(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],p):(v=typeof globalThis!="undefined"?globalThis:v||self,p(v.tooltip={},v.Vue))})(this,function(v,p){"use strict";var Uo=Object.defineProperty;var qe=Object.getOwnPropertySymbols;var _o=Object.prototype.hasOwnProperty,qo=Object.prototype.propertyIsEnumerable;var Ye=(v,p,M)=>p in v?Uo(v,p,{enumerable:!0,configurable:!0,writable:!0,value:M}):v[p]=M,Ke=(v,p)=>{for(var M in p||(p={}))_o.call(p,M)&&Ye(v,M,p[M]);if(qe)for(var M of qe(p))qo.call(p,M)&&Ye(v,M,p[M]);return v};function M(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(r=0;r<l;r++)e[r]&&(t=M(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Xe(){for(var e,r,t=0,o="",l=arguments.length;t<l;t++)(e=arguments[t])&&(r=M(e))&&(o&&(o+=" "),o+=r);return o}const Je=(e,r)=>{const t=new Array(e.length+r.length);for(let o=0;o<e.length;o++)t[o]=e[o];for(let o=0;o<r.length;o++)t[e.length+o]=r[o];return t},Qe=(e,r)=>({classGroupId:e,validator:r}),he=(e=new Map,r=null,t)=>({nextPart:e,validators:r,classGroupId:t}),H="-",xe=[],He="arbitrary..",Ze=e=>{const r=oo(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return eo(c);const f=c.split(H),b=f[0]===""&&f.length>1?1:0;return ye(f,b,r)},getConflictingClassGroupIds:(c,f)=>{if(f){const b=o[c],m=t[c];return b?m?Je(m,b):b:m||xe}return t[c]||xe}}},ye=(e,r,t)=>{if(e.length-r===0)return t.classGroupId;const l=e[r],s=t.nextPart.get(l);if(s){const m=ye(e,r+1,s);if(m)return m}const c=t.validators;if(c===null)return;const f=r===0?e.join(H):e.slice(r).join(H),b=c.length;for(let m=0;m<b;m++){const h=c[m];if(h.validator(f))return h.classGroupId}},eo=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),t=r.indexOf(":"),o=r.slice(0,t);return o?He+o:void 0})(),oo=e=>{const{theme:r,classGroups:t}=e;return to(t,r)},to=(e,r)=>{const t=he();for(const o in e){const l=e[o];le(l,t,o,r)}return t},le=(e,r,t,o)=>{const l=e.length;for(let s=0;s<l;s++){const c=e[s];ro(c,r,t,o)}},ro=(e,r,t,o)=>{if(typeof e=="string"){so(e,r,t);return}if(typeof e=="function"){no(e,r,t,o);return}ao(e,r,t,o)},so=(e,r,t)=>{const o=e===""?r:ke(r,e);o.classGroupId=t},no=(e,r,t,o)=>{if(lo(e)){le(e(o),r,t,o);return}r.validators===null&&(r.validators=[]),r.validators.push(Qe(t,e))},ao=(e,r,t,o)=>{const l=Object.entries(e),s=l.length;for(let c=0;c<s;c++){const[f,b]=l[c];le(b,ke(r,f),t,o)}},ke=(e,r)=>{let t=e;const o=r.split(H),l=o.length;for(let s=0;s<l;s++){const c=o[s];let f=t.nextPart.get(c);f||(f=he(),t.nextPart.set(c,f)),t=f}return t},lo=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,io=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=Object.create(null),o=Object.create(null);const l=(s,c)=>{t[s]=c,r++,r>e&&(r=0,o=t,t=Object.create(null))};return{get(s){let c=t[s];if(c!==void 0)return c;if((c=o[s])!==void 0)return l(s,c),c},set(s,c){s in t?t[s]=c:l(s,c)}}},ie="!",we=":",co=[],ve=(e,r,t,o,l)=>({modifiers:e,hasImportantModifier:r,baseClassName:t,maybePostfixModifierPosition:o,isExternal:l}),po=e=>{const{prefix:r,experimentalParseClassName:t}=e;let o=l=>{const s=[];let c=0,f=0,b=0,m;const h=l.length;for(let w=0;w<h;w++){const G=l[w];if(c===0&&f===0){if(G===we){s.push(l.slice(b,w)),b=w+1;continue}if(G==="/"){m=w;continue}}G==="["?c++:G==="]"?c--:G==="("?f++:G===")"&&f--}const x=s.length===0?l:l.slice(b);let E=x,I=!1;x.endsWith(ie)?(E=x.slice(0,-1),I=!0):x.startsWith(ie)&&(E=x.slice(1),I=!0);const _=m&&m>b?m-b:void 0;return ve(s,I,E,_)};if(r){const l=r+we,s=o;o=c=>c.startsWith(l)?s(c.slice(l.length)):ve(co,!1,c,void 0,!0)}if(t){const l=o;o=s=>t({className:s,parseClassName:l})}return o},mo=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{r.set(t,1e6+o)}),t=>{const o=[];let l=[];for(let s=0;s<t.length;s++){const c=t[s],f=c[0]==="[",b=r.has(c);f||b?(l.length>0&&(l.sort(),o.push(...l),l=[]),o.push(c)):l.push(c)}return l.length>0&&(l.sort(),o.push(...l)),o}},uo=e=>Ke({cache:io(e.cacheSize),parseClassName:po(e),sortModifiers:mo(e),postfixLookupClassGroupIds:fo(e)},Ze(e)),fo=e=>{const r=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let o=0;o<t.length;o++)r[t[o]]=!0;return r},bo=/\s+/,go=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:l,sortModifiers:s,postfixLookupClassGroupIds:c}=r,f=[],b=e.trim().split(bo);let m="";for(let h=b.length-1;h>=0;h-=1){const x=b[h],{isExternal:E,modifiers:I,hasImportantModifier:_,baseClassName:w,maybePostfixModifierPosition:G}=t(x);if(E){m=x+(m.length>0?" "+m:m);continue}let N=!!G,z;if(N){const P=w.substring(0,G);z=o(P);const i=z&&c[z]?o(w):void 0;i&&i!==z&&(z=i,N=!1)}else z=o(w);if(!z){if(!N){m=x+(m.length>0?" "+m:m);continue}if(z=o(w),!z){m=x+(m.length>0?" "+m:m);continue}N=!1}const q=I.length===0?"":I.length===1?I[0]:s(I).join(":"),V=_?q+ie:q,W=V+z;if(f.indexOf(W)>-1)continue;f.push(W);const $=l(z,N);for(let P=0;P<$.length;++P){const i=$[P];f.push(V+i)}m=x+(m.length>0?" "+m:m)}return m},ho=(...e)=>{let r=0,t,o,l="";for(;r<e.length;)(t=e[r++])&&(o=ze(t))&&(l&&(l+=" "),l+=o);return l},ze=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=ze(e[o]))&&(t&&(t+=" "),t+=r);return t},Ce=(e,...r)=>{let t,o,l,s;const c=b=>{const m=r.reduce((h,x)=>x(h),e());return t=uo(m),o=t.cache.get,l=t.cache.set,s=f,f(b)},f=b=>{const m=o(b);if(m)return m;const h=go(b,t);return l(b,h),h};return s=c,(...b)=>s(ho(...b))},xo=[],g=e=>{const r=t=>t[e]||xo;return r.isThemeGetter=!0,r},Se=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ae=/^\((?:(\w[\w-]*):)?(.+)\)$/i,yo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ko=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wo=/\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$/,vo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Co=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>yo.test(e),u=e=>!!e&&!Number.isNaN(Number(e)),B=e=>!!e&&Number.isInteger(Number(e)),ce=e=>e.endsWith("%")&&u(e.slice(0,-1)),F=e=>ko.test(e),Ge=()=>!0,So=e=>wo.test(e)&&!vo.test(e),de=()=>!1,Ao=e=>zo.test(e),Go=e=>Co.test(e),Mo=e=>!n(e)&&!a(e),Io=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)),Po=e=>O(e,Be,de),n=e=>Se.test(e),D=e=>O(e,Ee,So),Me=e=>O(e,jo,u),Ro=e=>O(e,Fe,Ge),To=e=>O(e,Le,de),Ie=e=>O(e,Re,de),Bo=e=>O(e,Te,Go),Z=e=>O(e,Ne,Ao),a=e=>Ae.test(e),Q=e=>U(e,Ee),Eo=e=>U(e,Le),Pe=e=>U(e,Re),Lo=e=>U(e,Be),Fo=e=>U(e,Te),ee=e=>U(e,Ne,!0),No=e=>U(e,Fe,!0),O=(e,r,t)=>{const o=Se.exec(e);return o?o[1]?r(o[1]):t(o[2]):!1},U=(e,r,t=!1)=>{const o=Ae.exec(e);return o?o[1]?r(o[1]):t:!1},Re=e=>e==="position"||e==="percentage",Te=e=>e==="image"||e==="url",Be=e=>e==="length"||e==="size"||e==="bg-size",Ee=e=>e==="length",jo=e=>e==="number",Le=e=>e==="family-name",Fe=e=>e==="number"||e==="weight",Ne=e=>e==="shadow",je=()=>{const e=g("color"),r=g("font"),t=g("text"),o=g("font-weight"),l=g("tracking"),s=g("leading"),c=g("breakpoint"),f=g("container"),b=g("spacing"),m=g("radius"),h=g("shadow"),x=g("inset-shadow"),E=g("text-shadow"),I=g("drop-shadow"),_=g("blur"),w=g("perspective"),G=g("aspect"),N=g("ease"),z=g("animate"),q=()=>["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"],W=()=>[...V(),a,n],$=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],i=()=>[a,n,b],C=()=>[j,"full","auto",...i()],y=()=>[B,"none","subgrid",a,n],L=()=>["auto",{span:["full",B,a,n]},B,a,n],R=()=>[B,"auto",a,n],Ve=()=>["auto","min","max","fr",a,n],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...i()],Y=()=>[j,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],ue=()=>[j,"screen","full","dvw","lvw","svw","min","max","fit",...i()],fe=()=>[j,"screen","full","lh","dvh","lvh","svh","min","max","fit",...i()],d=()=>[e,a,n],We=()=>[...V(),Pe,Ie,{position:[a,n]}],$e=()=>["no-repeat",{repeat:["","x","y","space","round"]}],De=()=>["auto","cover","contain",Lo,Po,{size:[a,n]}],be=()=>[ce,Q,D],S=()=>["","none","full",m,a,n],A=()=>["",u,Q,D],re=()=>["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"],k=()=>[u,ce,Pe,Ie],_e=()=>["","none",_,a,n],se=()=>["none",u,a,n],ne=()=>["none",u,a,n],ge=()=>[u,a,n],ae=()=>[j,"full",...i()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[F],breakpoint:[F],color:[Ge],container:[F],"drop-shadow":[F],ease:["in","out","in-out"],font:[Mo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[F],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[F],shadow:[F],spacing:["px",u],text:[F],"text-shadow":[F],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",j,n,a,G]}],container:["container"],"container-type":[{"@container":["","normal","size",a,n]}],"container-named":[Io],columns:[{columns:[u,n,a,f]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"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:W()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{"inset-s":C(),start:C()}],end:[{"inset-e":C(),end:C()}],"inset-bs":[{"inset-bs":C()}],"inset-be":[{"inset-be":C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[B,"auto",a,n]}],basis:[{basis:[j,"full","auto",f,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[u,j,"auto","initial","none",n]}],grow:[{grow:["",u,a,n]}],shrink:[{shrink:["",u,a,n]}],order:[{order:[B,"first","last","none",a,n]}],"grid-cols":[{"grid-cols":y()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":y()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ve()}],"auto-rows":[{"auto-rows":Ve()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],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:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...ue()]}],"min-inline-size":[{"min-inline":["auto",...ue()]}],"max-inline-size":[{"max-inline":["none",...ue()]}],"block-size":[{block:["auto",...fe()]}],"min-block-size":[{"min-block":["auto",...fe()]}],"max-block-size":[{"max-block":["none",...fe()]}],w:[{w:[f,"screen",...Y()]}],"min-w":[{"min-w":[f,"screen","none",...Y()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",t,Q,D]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,No,Ro]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ce,n]}],"font-family":[{font:[Eo,To,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:[l,a,n]}],"line-clamp":[{"line-clamp":[u,"none",a,Me]}],leading:[{leading:[s,...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:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[u,"from-font","auto",a,D]}],"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:[B,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:We()}],"bg-repeat":[{bg:$e()}],"bg-size":[{bg:De()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},B,a,n],radial:["",a,n],conic:[B,a,n]},Fo,Bo]}],"bg-color":[{bg:d()}],"gradient-from-pos":[{from:be()}],"gradient-via-pos":[{via:be()}],"gradient-to-pos":[{to:be()}],"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:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"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:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[u,a,n]}],"outline-w":[{outline:["",u,Q,D]}],"outline-color":[{outline:d()}],shadow:[{shadow:["","none",h,ee,Z]}],"shadow-color":[{shadow:d()}],"inset-shadow":[{"inset-shadow":["none",x,ee,Z]}],"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,D]}],"ring-offset-color":[{"ring-offset":d()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":d()}],"text-shadow":[{"text-shadow":["none",E,ee,Z]}],"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":k()}],"mask-image-linear-to-pos":[{"mask-linear-to":k()}],"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":k()}],"mask-image-t-to-pos":[{"mask-t-to":k()}],"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":k()}],"mask-image-r-to-pos":[{"mask-r-to":k()}],"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":k()}],"mask-image-b-to-pos":[{"mask-b-to":k()}],"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":k()}],"mask-image-l-to-pos":[{"mask-l-to":k()}],"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":k()}],"mask-image-x-to-pos":[{"mask-x-to":k()}],"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":k()}],"mask-image-y-to-pos":[{"mask-y-to":k()}],"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":k()}],"mask-image-radial-to-pos":[{"mask-radial-to":k()}],"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":k()}],"mask-image-conic-to-pos":[{"mask-conic-to":k()}],"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:We()}],"mask-repeat":[{mask:$e()}],"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,ee,Z]}],"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",N,a,n]}],delay:[{delay:[u,a,n]}],animate:[{animate:["none",z,a,n]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,a,n]}],"perspective-origin":[{"perspective-origin":W()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[a,n,"","none","gpu","cpu"]}],"transform-origin":[{origin:W()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],zoom:[{zoom:[B,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,Q,D,Me]}],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"]}},Oo=(e,{cacheSize:r,prefix:t,experimentalParseClassName:o,extend:l={},override:s={}})=>(K(e,"cacheSize",r),K(e,"prefix",t),K(e,"experimentalParseClassName",o),oe(e.theme,s.theme),oe(e.classGroups,s.classGroups),oe(e.conflictingClassGroups,s.conflictingClassGroups),oe(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),K(e,"postfixLookupClassGroups",s.postfixLookupClassGroups),K(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),te(e.theme,l.theme),te(e.classGroups,l.classGroups),te(e.conflictingClassGroups,l.conflictingClassGroups),te(e.conflictingClassGroupModifiers,l.conflictingClassGroupModifiers),pe(e,l,"postfixLookupClassGroups"),pe(e,l,"orderSensitiveModifiers"),e),K=(e,r,t)=>{t!==void 0&&(e[r]=t)},oe=(e,r)=>{if(r)for(const t in r)K(e,t,r[t])},te=(e,r)=>{if(r)for(const t in r)pe(e,r,t)},pe=(e,r,t)=>{const o=r[t];o!==void 0&&(e[t]=e[t]?e[t].concat(o):o)},Vo=((e,...r)=>typeof e=="function"?Ce(je,e,...r):Ce(()=>Oo(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 X(...e){return Vo(Xe(e))}const Wo=["data-standalone","data-state","data-position","data-pointer","data-help-cursor","data-radius","tabindex"],$o=["id","data-state"],Oe=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1.79 3.11l6.21-3.11v8l-6.21-3.11a1 1 0 0 1-.45-1.34 1 1 0 0 1 .45-.44z'/%3E%3C/svg%3E")`,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={mask:`${Oe} no-repeat center / contain`,WebkitMask:`${Oe} no-repeat center / contain`},t=["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-blue-grey-500)]","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 inset-0 z-[1]","[--tooltip-pointer-fill:var(--color-background-secondary-inverse)]","[--tooltip-pointer-border:var(--color-blue-grey-500)]"].join(" "),pointerBorder:["absolute size-2.5","bg-[color:var(--tooltip-pointer-border)]"].join(" "),pointerFill:["absolute size-2","bg-[color:var(--tooltip-pointer-fill)]"].join(" ")},l={helpCursor:{true:{root:"hover:cursor-help focus-within:cursor-help data-[standalone=true]:cursor-help"}},position:{top:{content:"bottom-[calc(100%+0.625rem)] left-1/2 -translate-x-1/2",pointerFill:"bottom-0 left-1/2 -translate-x-1/2 translate-y-full -rotate-90",pointerBorder:"-bottom-px left-1/2 -translate-x-1/2 translate-y-full -rotate-90"},bottom:{content:"top-[calc(100%+0.625rem)] left-1/2 -translate-x-1/2",pointerFill:"top-0 left-1/2 -translate-x-1/2 -translate-y-full rotate-90",pointerBorder:"-top-px left-1/2 -translate-x-1/2 -translate-y-full rotate-90"},left:{content:"right-[calc(100%+0.625rem)] top-1/2 -translate-y-1/2",pointerFill:"right-0 top-1/2 translate-x-[99%] -translate-y-1/2 rotate-180",pointerBorder:"-right-px top-1/2 translate-x-[99%] -translate-y-1/2 rotate-180"},right:{content:"left-[calc(100%+0.625rem)] top-1/2 -translate-y-1/2",pointerFill:"left-0 top-1/2 -translate-x-[99%] -translate-y-1/2",pointerBorder:"-left-px top-1/2 -translate-x-[99%] -translate-y-1/2"}},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),f=p.ref(!1),b=p.ref(!1),m=p.ref(null),h=p.ref(!1),x=p.computed(()=>s.standalone||f.value&&!b.value),E=()=>{s.standalone||(b.value=!1,f.value=!0)},I=()=>{s.standalone||(f.value=!1)},_=()=>{s.standalone||!x.value||(b.value=!0,f.value=!1)},w=()=>{const y=m.value;(y==null?void 0:y.getAttribute("aria-describedby"))===s.id&&y.removeAttribute("aria-describedby"),m.value=null,h.value=!1},G=()=>{if(w(),s.standalone)return;const y=c.value;if(!y)return;const L=y.querySelector(t),R=L&&L!==y?L:y;R.setAttribute("aria-describedby",s.id),m.value=R,h.value=R===y},N=y=>{y.key==="Escape"&&_()},z=()=>{E()},q=y=>{const L=c.value,R=y.relatedTarget;L&&R&&L.contains(R)||I()};p.onMounted(()=>{G()}),p.onBeforeUnmount(()=>{w()}),p.watch(()=>[s.id,s.standalone],()=>{p.nextTick(G)});const V=p.computed(()=>X(o.root,s.helpCursor&&l.helpCursor.true.root,s.ui.root)),W=p.computed(()=>X(o.content,l.radius[s.radius].content,!s.standalone&&l.position[s.position].content,s.standalone&&o.contentStandalone,s.ui.content)),$=p.computed(()=>X(o.text,s.ui.text)),P=p.computed(()=>X(o.pointer,s.ui.pointer)),i=p.computed(()=>X(o.pointerBorder,l.position[s.position].pointerBorder)),C=p.computed(()=>X(o.pointerFill,l.position[s.position].pointerFill));return(y,L)=>(p.openBlock(),p.createElementBlock("div",{ref_key:"rootRef",ref:c,"data-testid":"tooltip",class:p.normalizeClass(V.value),"data-standalone":e.standalone||void 0,"data-state":x.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:h.value?0:void 0,onMouseenter:E,onMouseleave:I,onFocusin:z,onFocusout:q,onKeydown:N},[p.renderSlot(y.$slots,"default"),p.createElementVNode("span",{id:e.id,"data-testid":"tooltip-content",role:"tooltip","data-state":x.value?"open":"closed",class:p.normalizeClass(W.value)},[p.createElementVNode("span",{"data-testid":"tooltip-text",class:p.normalizeClass($.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(P.value)},[p.createElementVNode("span",{"data-testid":"tooltip-pointer-border",class:p.normalizeClass(i.value),style:r},null,2),p.createElementVNode("span",{"data-testid":"tooltip-pointer-fill",class:p.normalizeClass(C.value),style:r},null,2)],2)):p.createCommentVNode("",!0)],10,$o)],42,Wo))}});v.AzTooltip=Do,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1,153 @@
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
+ /**
11
+ * Origin-arrow wrapper (position / rotation / CSS vars).
12
+ * Recolour via `--tooltip-pointer-fill` and `--tooltip-pointer-border`.
13
+ */
14
+ pointer?: string;
15
+ }
16
+ declare function __VLS_template(): Readonly<{
17
+ /**
18
+ * The tooltip will point to the content of the slot (the trigger).
19
+ * Prefer a focusable control, or plain text — the root becomes focusable
20
+ * when no focusable descendant is found.
21
+ */
22
+ default?: () => unknown;
23
+ }> & {
24
+ /**
25
+ * The tooltip will point to the content of the slot (the trigger).
26
+ * Prefer a focusable control, or plain text — the root becomes focusable
27
+ * when no focusable descendant is found.
28
+ */
29
+ default?: () => unknown;
30
+ };
31
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
32
+ /**
33
+ * A unique identifier for the tooltip, used to describe the tooltip
34
+ * (`aria-describedby` / content `id`).
35
+ */
36
+ id: string;
37
+ /**
38
+ * Content of the tooltip. Keep the tooltip text concise (1–2 lines).
39
+ * Do not put essential information only here — some AT may skip descriptions.
40
+ */
41
+ text: string;
42
+ /**
43
+ * Determines the position of the tooltip relative to the trigger.
44
+ */
45
+ position?: TooltipPosition;
46
+ /**
47
+ * When true, the tooltip displays an arrow pointing at the trigger
48
+ * (the origin the tooltip “comes from”).
49
+ */
50
+ pointer?: boolean;
51
+ /**
52
+ * When true, shows the help cursor (`?`) on hover / focus of the trigger.
53
+ */
54
+ helpCursor?: boolean;
55
+ /**
56
+ * Border radius of the tooltip bubble. Maps to theme `--border-radius-*`.
57
+ */
58
+ radius?: TooltipRadius;
59
+ /**
60
+ * When true, the tooltip is always visible (no hover/focus gate) and
61
+ * laid out in normal flow — useful for docs and dataviz callouts.
62
+ */
63
+ standalone?: boolean;
64
+ /**
65
+ * Tailwind class overrides per structural part (`root`, `content`, `text`, `pointer`).
66
+ * Merged with `defaultTooltipUi` via `cn()` — conflicting utilities win.
67
+ */
68
+ ui?: TooltipUi;
69
+ }>, {
70
+ position: string;
71
+ pointer: boolean;
72
+ helpCursor: boolean;
73
+ radius: string;
74
+ standalone: boolean;
75
+ ui: () => {};
76
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
77
+ /**
78
+ * A unique identifier for the tooltip, used to describe the tooltip
79
+ * (`aria-describedby` / content `id`).
80
+ */
81
+ id: string;
82
+ /**
83
+ * Content of the tooltip. Keep the tooltip text concise (1–2 lines).
84
+ * Do not put essential information only here — some AT may skip descriptions.
85
+ */
86
+ text: string;
87
+ /**
88
+ * Determines the position of the tooltip relative to the trigger.
89
+ */
90
+ position?: TooltipPosition;
91
+ /**
92
+ * When true, the tooltip displays an arrow pointing at the trigger
93
+ * (the origin the tooltip “comes from”).
94
+ */
95
+ pointer?: boolean;
96
+ /**
97
+ * When true, shows the help cursor (`?`) on hover / focus of the trigger.
98
+ */
99
+ helpCursor?: boolean;
100
+ /**
101
+ * Border radius of the tooltip bubble. Maps to theme `--border-radius-*`.
102
+ */
103
+ radius?: TooltipRadius;
104
+ /**
105
+ * When true, the tooltip is always visible (no hover/focus gate) and
106
+ * laid out in normal flow — useful for docs and dataviz callouts.
107
+ */
108
+ standalone?: boolean;
109
+ /**
110
+ * Tailwind class overrides per structural part (`root`, `content`, `text`, `pointer`).
111
+ * Merged with `defaultTooltipUi` via `cn()` — conflicting utilities win.
112
+ */
113
+ ui?: TooltipUi;
114
+ }>, {
115
+ position: string;
116
+ pointer: boolean;
117
+ helpCursor: boolean;
118
+ radius: string;
119
+ standalone: boolean;
120
+ ui: () => {};
121
+ }>>> & Readonly<{}>, {
122
+ position: TooltipPosition;
123
+ radius: TooltipRadius;
124
+ pointer: boolean;
125
+ helpCursor: boolean;
126
+ standalone: boolean;
127
+ ui: TooltipUi;
128
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
129
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
130
+ export default _default;
131
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
132
+ type __VLS_TypePropsToRuntimeProps<T> = {
133
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
134
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
135
+ } : {
136
+ type: import('vue').PropType<T[K]>;
137
+ required: true;
138
+ };
139
+ };
140
+ type __VLS_WithDefaults<P, D> = {
141
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
142
+ default: D[K];
143
+ }> : P[K];
144
+ };
145
+ type __VLS_Prettify<T> = {
146
+ [K in keyof T]: T[K];
147
+ } & {};
148
+ type __VLS_WithTemplateSlots<T, S> = T & {
149
+ new (): {
150
+ $slots: S;
151
+ };
152
+ };
153
+ //# 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;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAwTD,iBAAS,cAAc;IA/IrB;;;;OAIG;cACO,MAAM,OAAO;;IALvB;;;;OAIG;cACO,MAAM,OAAO;EA2OxB;AA6DD,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-0{inset:calc(var(--spacing,.25rem) * 0)}.inset-auto{inset:auto}.-top-px{top:-1px}.top-0{top:calc(var(--spacing,.25rem) * 0)}.top-1\/2{top:50%}.top-\[calc\(100\%\+0\.625rem\)\]{top:calc(100% + .625rem)}.-right-px{right:-1px}.right-0{right:calc(var(--spacing,.25rem) * 0)}.right-\[calc\(100\%\+0\.625rem\)\]{right:calc(100% + .625rem)}.-bottom-px{bottom:-1px}.bottom-0{bottom:calc(var(--spacing,.25rem) * 0)}.bottom-\[calc\(100\%\+0\.625rem\)\]{bottom:calc(100% + .625rem)}.-left-px{left:-1px}.left-0{left:calc(var(--spacing,.25rem) * 0)}.left-1\/2{left:50%}.left-\[calc\(100\%\+0\.625rem\)\]{left:calc(100% + .625rem)}.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{width:calc(var(--spacing,.25rem) * 2);height:calc(var(--spacing,.25rem) * 2)}.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-\[99\%\]{--tw-translate-x: -99% ;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-\[99\%\]{--tw-translate-x:99%;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-full{--tw-translate-y:-100%;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-full{--tw-translate-y:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.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-solid{--tw-border-style:solid;border-style:solid}.border-\[color\:var\(--color-blue-grey-500\)\]{border-color:var(--color-blue-grey-500)}.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-\[color\:var\(--tooltip-pointer-border\)\]{background-color:var(--tooltip-pointer-border)}.bg-\[color\:var\(--tooltip-pointer-fill\)\]{background-color:var(--tooltip-pointer-fill)}.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}.\[--tooltip-pointer-border\:transparent\]{--tooltip-pointer-border:transparent}.\[--tooltip-pointer-border\:var\(--color-blue-grey-500\)\]{--tooltip-pointer-border:var(--color-blue-grey-500)}.\[--tooltip-pointer-fill\:var\(--color-background-accent-inverse\)\]{--tooltip-pointer-fill:var(--color-background-accent-inverse)}.\[--tooltip-pointer-fill\:var\(--color-background-secondary-inverse\)\]{--tooltip-pointer-fill:var(--color-background-secondary-inverse)}.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.104",
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
+ }