@mirantes-micro/foundation-design-system 1.2.248 → 1.2.249
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +196 -196
package/dist/index.js
CHANGED
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
`;async function ay(e,t){try{return await t7__default.default(e??"",ny,{input:{...t?.input}})}catch{return null}}function Qo(){let{analyticsApiUrl:e}=w(),{mutate:t}=ne({mutationFn:({input:o})=>ay(e,{input:o})});return {registerEvent:t}}async function sy(e,t){try{let o=new FormData;t.files.forEach((n,a)=>{o.append(`files[${a}]`,n);}),o.append("owner_type",t.owner_type),o.append("is_public",String(t.is_public)),t.owner_id&&o.append("owner_id",t.owner_id);let{data:r}=await e.post("/assets/bulk",o,{headers:{"Content-Type":"multipart/form-data"}});return r}catch{return null}}async function iy(e,t){try{let o=new FormData;o.append("file",t.file),o.append("owner_type",t.owner_type),o.append("is_public",String(t.is_public)),t.owner_id&&o.append("owner_id",t.owner_id);let{data:r}=await e.post("/assets/",o,{headers:{"Content-Type":"multipart/form-data"}});return r}catch{return null}}async function ly(e,t){try{let{data:o}=await e.post("/assets/signed-url",t);return o}catch{return null}}async function r8(e,t=""){if(!t?.length)return null;try{let{data:o}=await e.get(`/assets/${encodeURIComponent(t)}/versions`);return o}catch{return null}}async function cy(e,t={}){let{maxSizeMB:o=99999,maxWidthOrHeight:r=99999,useWebWorker:n=true,onProgress:a,initialQuality:s=.8}=t,i=await VO__default.default(e,{maxSizeMB:o,maxWidthOrHeight:r,useWebWorker:n,onProgress:a,initialQuality:s,preserveExif:true}),l=new File([i],e.name,{type:i.type});return {file:l,originalSize:e.size,compressedSize:l.size,compressionRatio:l.size/e.size}}var dy=e=>["image/jpeg","image/png","image/webp"].includes(e.type);function py(e){if(!e||!e?.versions)return "medium";let t=e?.versions,o=(Object?.entries(t)).find(([r,n])=>n?.recommended);if(o)return o[0];if(typeof window<"u"&&window.devicePixelRatio>=2&&t?.large)return "large";if(typeof navigator<"u"){let n=navigator?.connection?.effectiveType;if(n&&["slow-2g","2g"].includes(n)&&t?.small)return "small"}return "medium"}var f2=()=>{let{user:e,assetsApiUrl:t}=w(),o=QL__default.default.create({baseURL:t??"",timeout:3e4,headers:{"Content-Type":"application/json"}});return o.interceptors.request.use(r=>(e?.accessToken&&(r.headers["x-access-token"]=e?.accessToken),r)),o.interceptors.response.use(r=>r,r=>((r.code==="ECONNABORTED"||r.message.includes("timeout"))&&console.error("Request timed out. Please check your connection."),Promise.reject(r))),{assetsApi:o}};async function my(e){return dy(e)?(await cy(e,{useWebWorker:true}))?.file:e}function es(){let{assetsApi:e}=f2(),{mutate:t,isPending:o}=ne({mutationFn:async r=>{let n=await my(r.file);return iy(e,{...r,file:n})}});return {uploadAssets:t,isUploadingAsset:o}}function Ji(){let{assetsApi:e}=f2(),{mutate:t,isPending:o}=ne({mutationFn:async r=>{let n=await Promise.all(r.files.map(a=>my(a)));return sy(e,{...r,files:n})}});return {uploadAssetsBulk:t,isUploadingBulk:o}}function uy(){let{assetsApi:e}=f2(),{mutate:t,isPending:o}=ne({mutationFn:r=>ly(e,r)});return {postSignedUrl:t,isPostingSignedUrl:o}}function fy(e){let{assetsApi:t}=f2(),{data:o,isLoading:r,error:n}=De({queryKey:["asset-versions",e],enabled:!!e,queryFn:()=>r8(t,e),staleTime:1e3*60*5});return {assetVersions:o,isGettingAssetVersions:r,error:n}}function gy(e){let{assetsApi:t}=f2(),{data:o,isLoading:r,error:n}=De({queryKey:["asset-best-version",e],enabled:!!e,queryFn:async()=>{try{let a=await r8(t,e);if(!a?.versions)return null;let s=py(a);return a.versions[s]?.url??null}catch{return null}},staleTime:1e3*60*5});return {url:o,isGettingUrl:r,error:n}}function QO(e,t){cookiesNext.deleteCookie(e,{sameSite:"lax",path:"/",domain:t?.domain,secure:t?.secure});}var WO=["_accessToken","_refreshToken","_userData","_userId","_userSlug","_userStatus","_MIRAId","_loggedAt","_companyId","_isBackOffice","impersonate"];function KO(e){WO.forEach(t=>{QO(t,e);});}function ZO(){typeof window>"u"||(localStorage.clear(),sessionStorage.clear());}function YO(e={}){let{broadcast:t=true,reload:o=true,redirectUrl:r,domain:n,secure:a}=e;KO(n?{domain:n,secure:a}:void 0),ZO(),t&&Xd(),typeof window<"u"&&(r?window.location.href=r:o&&window.location.reload());}var X=Q.forwardRef(({label:e,type:t="button",className:o,onClick:r,onMouseDown:n,onMouseUp:a,onMouseEnter:s,onMouseLeave:i,onTouchStart:l,onTouchEnd:d,isLoading:c,disabled:p,children:m,style:f,id:u,leftElement:g,rightElement:h,align:v="center",...y},b)=>Q__namespace.default.createElement("button",{ref:b,type:t,id:u,className:`text-body-md md:text-body-md p-1 md:py-3 lg:gap-x-2 ${o} [&_div]:!translate-x-1 flex items-center ${(()=>{switch(v){case "left":return "justify-start";case "right":return "justify-end";case "center":default:return "justify-center"}})()}`,onClick:r,onMouseDown:n,onMouseUp:a,onMouseEnter:s,onMouseLeave:i,onTouchStart:l,onTouchEnd:d,style:f,disabled:p||c,...y},!c&&g,c?Q__namespace.default.createElement(ve,{className:"!w-5 !h-5 !mx-auto"}):Q__namespace.default.createElement(Q__namespace.default.Fragment,null,m??e,h)));X.displayName="MirantesButton";var s8="-",$O=e=>{let t=RO(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return {getClassGroupId:s=>{let i=s.split(s8);return i[0]===""&&i.length!==1&&i.shift(),yy(i,t)||XO(s)},getConflictingClassGroupIds:(s,i)=>{let l=o[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},yy=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?yy(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(s8);return t.validators.find(({validator:s})=>s(a))?.classGroupId},hy=/^\[(.+)\]$/,XO=e=>{if(hy.test(e)){let t=hy.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return "arbitrary.."+o}},RO=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return tz(Object.entries(e.classGroups),o).forEach(([a,s])=>{a8(s,r,a,t);}),r},a8=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:vy(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(ez(n)){a8(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,s])=>{a8(s,vy(t,a),o,r);});});},vy=(e,t)=>{let o=e;return t.split(s8).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r);}),o},ez=e=>e.isThemeGetter,tz=(e,t)=>t?e.map(([o,r])=>{let n=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[t+s,i])):a);return [o,n]}):e,oz=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,s)=>{o.set(a,s),t++,t>e&&(t=0,r=o,o=new Map);};return {get(a){let s=o.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return n(a,s),s},set(a,s){o.has(a)?o.set(a,s):n(a,s);}}},by="!",rz=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,s=i=>{let l=[],d=0,c=0,p;for(let h=0;h<i.length;h++){let v=i[h];if(d===0){if(v===n&&(r||i.slice(h,h+a)===t)){l.push(i.slice(c,h)),c=h+a;continue}if(v==="/"){p=h;continue}}v==="["?d++:v==="]"&&d--;}let m=l.length===0?i:i.substring(c),f=m.startsWith(by),u=f?m.substring(1):m,g=p&&p>c?p-c:void 0;return {modifiers:l,hasImportantModifier:f,baseClassName:u,maybePostfixModifierPosition:g}};return o?i=>o({className:i,parseClassName:s}):s},nz=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r);}),t.push(...o.sort()),t},az=e=>({cache:oz(e.cacheSize),parseClassName:rz(e),...$O(e)}),sz=/\s+/,iz=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],s=e.trim().split(sz),i="";for(let l=s.length-1;l>=0;l-=1){let d=s[l],{modifiers:c,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:f}=o(d),u=!!f,g=r(u?m.substring(0,f):m);if(!g){if(!u){i=d+(i.length>0?" "+i:i);continue}if(g=r(m),!g){i=d+(i.length>0?" "+i:i);continue}u=false;}let h=nz(c).join(":"),v=p?h+by:h,y=v+g;if(a.includes(y))continue;a.push(y);let b=n(g,u);for(let x=0;x<b.length;++x){let C=b[x];a.push(v+C);}i=d+(i.length>0?" "+i:i);}return i};function lz(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=xy(t))&&(r&&(r+=" "),r+=o);return r}var xy=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=xy(e[r]))&&(o&&(o+=" "),o+=t);return o};function cz(e,...t){let o,r,n,a=s;function s(l){let d=t.reduce((c,p)=>p(c),e());return o=az(d),r=o.cache.get,n=o.cache.set,a=i,i(l)}function i(l){let d=r(l);if(d)return d;let c=iz(l,o);return n(l,c),c}return function(){return a(lz.apply(null,arguments))}}var eo=e=>{let t=o=>o[e]||[];return t.isThemeGetter=true,t},wy=/^\[(?:([a-z-]+):)?(.+)\]$/i,dz=/^\d+\/\d+$/,pz=new Set(["px","full","screen"]),mz=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uz=/\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$/,fz=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gz=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hz=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$s=e=>g2(e)||pz.has(e)||dz.test(e),$i=e=>h2(e,"length",Pz),g2=e=>!!e&&!Number.isNaN(Number(e)),n8=e=>h2(e,"number",g2),Rd=e=>!!e&&Number.isInteger(Number(e)),vz=e=>e.endsWith("%")&&g2(e.slice(0,-1)),Re=e=>wy.test(e),Xi=e=>mz.test(e),yz=new Set(["length","size","percentage"]),bz=e=>h2(e,yz,Cy),xz=e=>h2(e,"position",Cy),wz=new Set(["image","url"]),Cz=e=>h2(e,wz,Nz),Mz=e=>h2(e,"",Sz),ep=()=>true,h2=(e,t,o)=>{let r=wy.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):false},Pz=e=>uz.test(e)&&!fz.test(e),Cy=()=>false,Sz=e=>gz.test(e),Nz=e=>hz.test(e);var Az=()=>{let e=eo("colors"),t=eo("spacing"),o=eo("blur"),r=eo("brightness"),n=eo("borderColor"),a=eo("borderRadius"),s=eo("borderSpacing"),i=eo("borderWidth"),l=eo("contrast"),d=eo("grayscale"),c=eo("hueRotate"),p=eo("invert"),m=eo("gap"),f=eo("gradientColorStops"),u=eo("gradientColorStopPositions"),g=eo("inset"),h=eo("margin"),v=eo("opacity"),y=eo("padding"),b=eo("saturate"),x=eo("scale"),C=eo("sepia"),M=eo("skew"),A=eo("space"),P=eo("translate"),N=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",Re,t],D=()=>[Re,t],L=()=>["",$s,$i],z=()=>["auto",g2,Re],O=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",Re],S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[g2,Re];return {cacheSize:500,separator:":",theme:{colors:[ep],spacing:[$s,$i],blur:["none","",Xi,Re],brightness:U(),borderColor:[e],borderRadius:["none","","full",Xi,Re],borderSpacing:D(),borderWidth:L(),contrast:U(),grayscale:T(),hueRotate:U(),invert:T(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[vz,$i],inset:H(),margin:H(),opacity:U(),padding:D(),saturate:U(),scale:U(),sepia:T(),skew:U(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",Re]}],container:["container"],columns:[{columns:[Xi]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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"],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(),Re]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Rd,Re]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Re]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",Rd,Re]}],"grid-cols":[{"grid-cols":[ep]}],"col-start-end":[{col:["auto",{span:["full",Rd,Re]},Re]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[ep]}],"row-start-end":[{row:["auto",{span:[Rd,Re]},Re]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Re]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Re,t]}],"min-w":[{"min-w":[Re,t,"min","max","fit"]}],"max-w":[{"max-w":[Re,t,"none","full","min","max","fit","prose",{screen:[Xi]},Xi]}],h:[{h:[Re,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Re,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Re,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Re,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Xi,$i]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",n8]}],"font-family":[{font:[ep]}],"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:["tighter","tight","normal","wide","wider","widest",Re]}],"line-clamp":[{"line-clamp":["none",g2,n8]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$s,Re]}],"list-image":[{"list-image":["none",Re]}],"list-style-type":[{list:["none","disc","decimal",Re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$s,$i]}],"underline-offset":[{"underline-offset":["auto",$s,Re]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...O(),xz]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bz]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Cz]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[u]}],"gradient-via-pos":[{via:[u]}],"gradient-to-pos":[{to:[u]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:B()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[$s,Re]}],"outline-w":[{outline:[$s,$i]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[$s,$i]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Xi,Mz]}],"shadow-color":[{shadow:[ep]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Xi,Re]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[b]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Re]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",Re]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",Re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Rd,Re]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Re]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",Re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",Re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[$s,$i,n8]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}};var Du=cz(Az);function E(...e){return Du(mO.clsx(e))}function Fu({className:e,...t}){return Q__namespace.createElement(v2__namespace.Root,{"data-slot":"avatar",className:E("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function Ou({className:e,...t}){return Q__namespace.createElement(v2__namespace.Image,{loading:"lazy","data-slot":"avatar-image",className:E("aspect-square size-full",e),...t})}function zu({className:e,...t}){return Q__namespace.createElement(v2__namespace.Fallback,{"data-slot":"avatar-fallback",className:E(" flex size-full items-center justify-center rounded-full",e),...t})}var kz={xs:"h-6 w-6",sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12",xl:"h-16 w-16"},Tz={xs:"text-[8px]",sm:"text-[10px]",md:"text-[12px]",lg:"text-[14px]",xl:"text-[18px]"};function J({name:e,onClick:t,src:o,className:r,type:n,size:a="md"}){let[s,i]=Q.useState(false),l=o&&o.trim()!==""?o:void 0,d=n==="community"?"rounded-[0.5rem]":n==="page"?"rounded-none":"rounded-full";return Q__namespace.default.createElement(Fu,{onClick:t,className:`
|
|
100
|
+
`;async function ay(e,t){try{return await t7__default.default(e??"",ny,{input:{...t?.input}})}catch{return null}}function Qo(){let{analyticsApiUrl:e}=w(),{mutate:t}=ne({mutationFn:({input:o})=>ay(e,{input:o})});return {registerEvent:t}}async function sy(e,t){try{let o=new FormData;t.files.forEach((n,a)=>{o.append(`files[${a}]`,n);}),o.append("owner_type",t.owner_type),o.append("is_public",String(t.is_public)),t.owner_id&&o.append("owner_id",t.owner_id);let{data:r}=await e.post("/assets/bulk",o,{headers:{"Content-Type":"multipart/form-data"}});return r}catch{return null}}async function iy(e,t){try{let o=new FormData;o.append("file",t.file),o.append("owner_type",t.owner_type),o.append("is_public",String(t.is_public)),t.owner_id&&o.append("owner_id",t.owner_id);let{data:r}=await e.post("/assets/",o,{headers:{"Content-Type":"multipart/form-data"}});return r}catch{return null}}async function ly(e,t){try{let{data:o}=await e.post("/assets/signed-url",t);return o}catch{return null}}async function r8(e,t=""){if(!t?.length)return null;try{let{data:o}=await e.get(`/assets/${encodeURIComponent(t)}/versions`);return o}catch{return null}}async function cy(e,t={}){let{maxSizeMB:o=99999,maxWidthOrHeight:r=99999,useWebWorker:n=true,onProgress:a,initialQuality:s=.8}=t,i=await VO__default.default(e,{maxSizeMB:o,maxWidthOrHeight:r,useWebWorker:n,onProgress:a,initialQuality:s,preserveExif:true}),l=new File([i],e.name,{type:i.type});return {file:l,originalSize:e.size,compressedSize:l.size,compressionRatio:l.size/e.size}}var dy=e=>["image/jpeg","image/png","image/webp"].includes(e.type);function py(e){if(!e||!e?.versions)return "medium";let t=e?.versions,o=(Object?.entries(t)).find(([r,n])=>n?.recommended);if(o)return o[0];if(typeof window<"u"&&window.devicePixelRatio>=2&&t?.large)return "large";if(typeof navigator<"u"){let n=navigator?.connection?.effectiveType;if(n&&["slow-2g","2g"].includes(n)&&t?.small)return "small"}return "medium"}var f2=()=>{let{user:e,assetsApiUrl:t}=w(),o=QL__default.default.create({baseURL:t??"",headers:{"Content-Type":"application/json"}});return o.interceptors.request.use(r=>(e?.accessToken&&(r.headers["x-access-token"]=e?.accessToken),r)),o.interceptors.response.use(r=>r,r=>((r.code==="ECONNABORTED"||r.message.includes("timeout"))&&console.error("Request timed out. Please check your connection."),Promise.reject(r))),{assetsApi:o}};async function my(e){return dy(e)?(await cy(e,{useWebWorker:true}))?.file:e}function es(){let{assetsApi:e}=f2(),{mutate:t,isPending:o}=ne({mutationFn:async r=>{let n=await my(r.file);return iy(e,{...r,file:n})}});return {uploadAssets:t,isUploadingAsset:o}}function Ji(){let{assetsApi:e}=f2(),{mutate:t,isPending:o}=ne({mutationFn:async r=>{let n=await Promise.all(r.files.map(a=>my(a)));return sy(e,{...r,files:n})}});return {uploadAssetsBulk:t,isUploadingBulk:o}}function uy(){let{assetsApi:e}=f2(),{mutate:t,isPending:o}=ne({mutationFn:r=>ly(e,r)});return {postSignedUrl:t,isPostingSignedUrl:o}}function fy(e){let{assetsApi:t}=f2(),{data:o,isLoading:r,error:n}=De({queryKey:["asset-versions",e],enabled:!!e,queryFn:()=>r8(t,e),staleTime:1e3*60*5});return {assetVersions:o,isGettingAssetVersions:r,error:n}}function gy(e){let{assetsApi:t}=f2(),{data:o,isLoading:r,error:n}=De({queryKey:["asset-best-version",e],enabled:!!e,queryFn:async()=>{try{let a=await r8(t,e);if(!a?.versions)return null;let s=py(a);return a.versions[s]?.url??null}catch{return null}},staleTime:1e3*60*5});return {url:o,isGettingUrl:r,error:n}}function QO(e,t){cookiesNext.deleteCookie(e,{sameSite:"lax",path:"/",domain:t?.domain,secure:t?.secure});}var WO=["_accessToken","_refreshToken","_userData","_userId","_userSlug","_userStatus","_MIRAId","_loggedAt","_companyId","_isBackOffice","impersonate"];function KO(e){WO.forEach(t=>{QO(t,e);});}function ZO(){typeof window>"u"||(localStorage.clear(),sessionStorage.clear());}function YO(e={}){let{broadcast:t=true,reload:o=true,redirectUrl:r,domain:n,secure:a}=e;KO(n?{domain:n,secure:a}:void 0),ZO(),t&&Xd(),typeof window<"u"&&(r?window.location.href=r:o&&window.location.reload());}var X=Q.forwardRef(({label:e,type:t="button",className:o,onClick:r,onMouseDown:n,onMouseUp:a,onMouseEnter:s,onMouseLeave:i,onTouchStart:l,onTouchEnd:d,isLoading:c,disabled:p,children:m,style:f,id:u,leftElement:g,rightElement:h,align:v="center",...y},b)=>Q__namespace.default.createElement("button",{ref:b,type:t,id:u,className:`text-body-md md:text-body-md p-1 md:py-3 lg:gap-x-2 ${o} [&_div]:!translate-x-1 flex items-center ${(()=>{switch(v){case "left":return "justify-start";case "right":return "justify-end";case "center":default:return "justify-center"}})()}`,onClick:r,onMouseDown:n,onMouseUp:a,onMouseEnter:s,onMouseLeave:i,onTouchStart:l,onTouchEnd:d,style:f,disabled:p||c,...y},!c&&g,c?Q__namespace.default.createElement(ve,{className:"!w-5 !h-5 !mx-auto"}):Q__namespace.default.createElement(Q__namespace.default.Fragment,null,m??e,h)));X.displayName="MirantesButton";var s8="-",$O=e=>{let t=RO(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return {getClassGroupId:s=>{let i=s.split(s8);return i[0]===""&&i.length!==1&&i.shift(),yy(i,t)||XO(s)},getConflictingClassGroupIds:(s,i)=>{let l=o[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},yy=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?yy(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(s8);return t.validators.find(({validator:s})=>s(a))?.classGroupId},hy=/^\[(.+)\]$/,XO=e=>{if(hy.test(e)){let t=hy.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return "arbitrary.."+o}},RO=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return tz(Object.entries(e.classGroups),o).forEach(([a,s])=>{a8(s,r,a,t);}),r},a8=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:vy(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(ez(n)){a8(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,s])=>{a8(s,vy(t,a),o,r);});});},vy=(e,t)=>{let o=e;return t.split(s8).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r);}),o},ez=e=>e.isThemeGetter,tz=(e,t)=>t?e.map(([o,r])=>{let n=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[t+s,i])):a);return [o,n]}):e,oz=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,s)=>{o.set(a,s),t++,t>e&&(t=0,r=o,o=new Map);};return {get(a){let s=o.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return n(a,s),s},set(a,s){o.has(a)?o.set(a,s):n(a,s);}}},by="!",rz=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,s=i=>{let l=[],d=0,c=0,p;for(let h=0;h<i.length;h++){let v=i[h];if(d===0){if(v===n&&(r||i.slice(h,h+a)===t)){l.push(i.slice(c,h)),c=h+a;continue}if(v==="/"){p=h;continue}}v==="["?d++:v==="]"&&d--;}let m=l.length===0?i:i.substring(c),f=m.startsWith(by),u=f?m.substring(1):m,g=p&&p>c?p-c:void 0;return {modifiers:l,hasImportantModifier:f,baseClassName:u,maybePostfixModifierPosition:g}};return o?i=>o({className:i,parseClassName:s}):s},nz=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r);}),t.push(...o.sort()),t},az=e=>({cache:oz(e.cacheSize),parseClassName:rz(e),...$O(e)}),sz=/\s+/,iz=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],s=e.trim().split(sz),i="";for(let l=s.length-1;l>=0;l-=1){let d=s[l],{modifiers:c,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:f}=o(d),u=!!f,g=r(u?m.substring(0,f):m);if(!g){if(!u){i=d+(i.length>0?" "+i:i);continue}if(g=r(m),!g){i=d+(i.length>0?" "+i:i);continue}u=false;}let h=nz(c).join(":"),v=p?h+by:h,y=v+g;if(a.includes(y))continue;a.push(y);let b=n(g,u);for(let x=0;x<b.length;++x){let C=b[x];a.push(v+C);}i=d+(i.length>0?" "+i:i);}return i};function lz(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=xy(t))&&(r&&(r+=" "),r+=o);return r}var xy=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=xy(e[r]))&&(o&&(o+=" "),o+=t);return o};function cz(e,...t){let o,r,n,a=s;function s(l){let d=t.reduce((c,p)=>p(c),e());return o=az(d),r=o.cache.get,n=o.cache.set,a=i,i(l)}function i(l){let d=r(l);if(d)return d;let c=iz(l,o);return n(l,c),c}return function(){return a(lz.apply(null,arguments))}}var eo=e=>{let t=o=>o[e]||[];return t.isThemeGetter=true,t},wy=/^\[(?:([a-z-]+):)?(.+)\]$/i,dz=/^\d+\/\d+$/,pz=new Set(["px","full","screen"]),mz=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uz=/\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$/,fz=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gz=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hz=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$s=e=>g2(e)||pz.has(e)||dz.test(e),$i=e=>h2(e,"length",Pz),g2=e=>!!e&&!Number.isNaN(Number(e)),n8=e=>h2(e,"number",g2),Rd=e=>!!e&&Number.isInteger(Number(e)),vz=e=>e.endsWith("%")&&g2(e.slice(0,-1)),Re=e=>wy.test(e),Xi=e=>mz.test(e),yz=new Set(["length","size","percentage"]),bz=e=>h2(e,yz,Cy),xz=e=>h2(e,"position",Cy),wz=new Set(["image","url"]),Cz=e=>h2(e,wz,Nz),Mz=e=>h2(e,"",Sz),ep=()=>true,h2=(e,t,o)=>{let r=wy.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):false},Pz=e=>uz.test(e)&&!fz.test(e),Cy=()=>false,Sz=e=>gz.test(e),Nz=e=>hz.test(e);var Az=()=>{let e=eo("colors"),t=eo("spacing"),o=eo("blur"),r=eo("brightness"),n=eo("borderColor"),a=eo("borderRadius"),s=eo("borderSpacing"),i=eo("borderWidth"),l=eo("contrast"),d=eo("grayscale"),c=eo("hueRotate"),p=eo("invert"),m=eo("gap"),f=eo("gradientColorStops"),u=eo("gradientColorStopPositions"),g=eo("inset"),h=eo("margin"),v=eo("opacity"),y=eo("padding"),b=eo("saturate"),x=eo("scale"),C=eo("sepia"),M=eo("skew"),A=eo("space"),P=eo("translate"),N=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",Re,t],D=()=>[Re,t],L=()=>["",$s,$i],z=()=>["auto",g2,Re],O=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",Re],S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[g2,Re];return {cacheSize:500,separator:":",theme:{colors:[ep],spacing:[$s,$i],blur:["none","",Xi,Re],brightness:U(),borderColor:[e],borderRadius:["none","","full",Xi,Re],borderSpacing:D(),borderWidth:L(),contrast:U(),grayscale:T(),hueRotate:U(),invert:T(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[vz,$i],inset:H(),margin:H(),opacity:U(),padding:D(),saturate:U(),scale:U(),sepia:T(),skew:U(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",Re]}],container:["container"],columns:[{columns:[Xi]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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"],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(),Re]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Rd,Re]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Re]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",Rd,Re]}],"grid-cols":[{"grid-cols":[ep]}],"col-start-end":[{col:["auto",{span:["full",Rd,Re]},Re]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[ep]}],"row-start-end":[{row:["auto",{span:[Rd,Re]},Re]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Re]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Re,t]}],"min-w":[{"min-w":[Re,t,"min","max","fit"]}],"max-w":[{"max-w":[Re,t,"none","full","min","max","fit","prose",{screen:[Xi]},Xi]}],h:[{h:[Re,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Re,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Re,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Re,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Xi,$i]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",n8]}],"font-family":[{font:[ep]}],"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:["tighter","tight","normal","wide","wider","widest",Re]}],"line-clamp":[{"line-clamp":["none",g2,n8]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$s,Re]}],"list-image":[{"list-image":["none",Re]}],"list-style-type":[{list:["none","disc","decimal",Re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$s,$i]}],"underline-offset":[{"underline-offset":["auto",$s,Re]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...O(),xz]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bz]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Cz]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[u]}],"gradient-via-pos":[{via:[u]}],"gradient-to-pos":[{to:[u]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:B()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[$s,Re]}],"outline-w":[{outline:[$s,$i]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[$s,$i]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Xi,Mz]}],"shadow-color":[{shadow:[ep]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Xi,Re]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[b]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Re]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",Re]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",Re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Rd,Re]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Re]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",Re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",Re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[$s,$i,n8]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}};var Du=cz(Az);function E(...e){return Du(mO.clsx(e))}function Fu({className:e,...t}){return Q__namespace.createElement(v2__namespace.Root,{"data-slot":"avatar",className:E("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function Ou({className:e,...t}){return Q__namespace.createElement(v2__namespace.Image,{loading:"lazy","data-slot":"avatar-image",className:E("aspect-square size-full",e),...t})}function zu({className:e,...t}){return Q__namespace.createElement(v2__namespace.Fallback,{"data-slot":"avatar-fallback",className:E(" flex size-full items-center justify-center rounded-full",e),...t})}var kz={xs:"h-6 w-6",sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12",xl:"h-16 w-16"},Tz={xs:"text-[8px]",sm:"text-[10px]",md:"text-[12px]",lg:"text-[14px]",xl:"text-[18px]"};function J({name:e,onClick:t,src:o,className:r,type:n,size:a="md"}){let[s,i]=Q.useState(false),l=o&&o.trim()!==""?o:void 0,d=n==="community"?"rounded-[0.5rem]":n==="page"?"rounded-none":"rounded-full";return Q__namespace.default.createElement(Fu,{onClick:t,className:`
|
|
101
101
|
relative ${kz[a]} ${d}
|
|
102
102
|
overflow-hidden transition-all
|
|
103
103
|
hover:opacity-80
|
package/package.json
CHANGED
|
@@ -1,196 +1,196 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mirantes-micro/foundation-design-system",
|
|
3
|
-
"description": "A scalable and customizable design system package featuring a collection of reusable React components, utility functions, and context providers. Built to enforce visual and functional consistency across applications, this package offers accessible, themeable UI elements, shared logic through utility helpers, and context-based providers for managing global state such as themes, modals, and user sessions.",
|
|
4
|
-
"version": "1.2.
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"author": {
|
|
7
|
-
"name": "Mirantes Frontend team"
|
|
8
|
-
},
|
|
9
|
-
"sideEffects": [
|
|
10
|
-
"*.css"
|
|
11
|
-
],
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"import": {
|
|
15
|
-
"types": "./dist/index.d.ts",
|
|
16
|
-
"default": "./dist/index.js"
|
|
17
|
-
},
|
|
18
|
-
"require": {
|
|
19
|
-
"types": "./dist/index.d.ts",
|
|
20
|
-
"default": "./dist/index.js"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"./styles.css": "./dist/styles.css"
|
|
24
|
-
},
|
|
25
|
-
"source": "./src/components/fromMirantes/index.ts",
|
|
26
|
-
"module": "./dist/index.js",
|
|
27
|
-
"types": "./dist/index.d.ts",
|
|
28
|
-
"files": [
|
|
29
|
-
"dist/*"
|
|
30
|
-
],
|
|
31
|
-
"scripts": {
|
|
32
|
-
"dev": "webpack serve --mode development",
|
|
33
|
-
"build": "webpack --mode production",
|
|
34
|
-
"build:webpack": "tsup src/components/fromMirantes/index.ts --format cjs --minify",
|
|
35
|
-
"release": "pnpm build:webpack && npm publish",
|
|
36
|
-
"build:css": "npx tailwindcss -i ./src/styles/globals.css -o ./dist/styles.css --minify",
|
|
37
|
-
"prepare": "husky",
|
|
38
|
-
"format": "biome format --write .",
|
|
39
|
-
"test": "vitest --passWithNoTests"
|
|
40
|
-
},
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"@babel/core": "7.26.0",
|
|
43
|
-
"@babel/preset-env": "7.26.0",
|
|
44
|
-
"@babel/preset-react": "7.26.3",
|
|
45
|
-
"@biomejs/biome": "2.4.6",
|
|
46
|
-
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
|
|
47
|
-
"@tailwindcss/postcss7-compat": "2.2.17",
|
|
48
|
-
"@tanstack/react-query": "5.76.1",
|
|
49
|
-
"@testing-library/dom": "10.4.1",
|
|
50
|
-
"@testing-library/jest-dom": "6.9.1",
|
|
51
|
-
"@testing-library/react": "16.3.2",
|
|
52
|
-
"@types/country-data": "0.0.5",
|
|
53
|
-
"@types/crypto-js": "4.2.2",
|
|
54
|
-
"@types/js-cookie": "3.0.6",
|
|
55
|
-
"@types/lodash.throttle": "^4.1.9",
|
|
56
|
-
"@types/node": "22.10.5",
|
|
57
|
-
"@types/react": "19.1.4",
|
|
58
|
-
"@types/react-detect-offline": "2.4.5",
|
|
59
|
-
"@types/react-dom": "19.1.5",
|
|
60
|
-
"@types/react-syntax-highlighter": "15.5.13",
|
|
61
|
-
"@types/uuid": "10.0.0",
|
|
62
|
-
"@vitejs/plugin-react": "5.1.4",
|
|
63
|
-
"babel-loader": "9.2.1",
|
|
64
|
-
"baseline-browser-mapping": "^2.9.19",
|
|
65
|
-
"css-loader": "6.8.1",
|
|
66
|
-
"esbuild-sass-plugin": "3.3.1",
|
|
67
|
-
"eslint": "9.17.0",
|
|
68
|
-
"eslint-plugin-react": "7.37.3",
|
|
69
|
-
"file-loader": "6.2.0",
|
|
70
|
-
"graphql-tag": "2.12.6",
|
|
71
|
-
"html-webpack-plugin": "5.5.3",
|
|
72
|
-
"husky": "9.1.7",
|
|
73
|
-
"jsdom": "28.1.0",
|
|
74
|
-
"postcss": "8.4.39",
|
|
75
|
-
"postcss-import": "16.1.0",
|
|
76
|
-
"postcss-important": "0.3.0",
|
|
77
|
-
"postcss-loader": "7.3.3",
|
|
78
|
-
"postcss-nesting": "12.1.5",
|
|
79
|
-
"prettier": "3.4.2",
|
|
80
|
-
"react-refresh": "0.16.0",
|
|
81
|
-
"sass": "^1.94.2",
|
|
82
|
-
"sass-embedded": "^1.93.3",
|
|
83
|
-
"sass-loader": "^16.0.6",
|
|
84
|
-
"style-loader": "3.3.3",
|
|
85
|
-
"tailwind-merge": "2.6.0",
|
|
86
|
-
"tailwindcss": "3.4.4",
|
|
87
|
-
"tailwindcss-animate": "1.0.7",
|
|
88
|
-
"ts-loader": "9.5.1",
|
|
89
|
-
"tsup": "8.3.5",
|
|
90
|
-
"typescript": "5.7.2",
|
|
91
|
-
"vite-tsconfig-paths": "6.1.1",
|
|
92
|
-
"vitest": "4.0.18",
|
|
93
|
-
"webpack": "5.97.1",
|
|
94
|
-
"webpack-cli": "6.0.1",
|
|
95
|
-
"webpack-dev-server": "5.2.0"
|
|
96
|
-
},
|
|
97
|
-
"dependencies": {
|
|
98
|
-
"@emotion/is-prop-valid": "^1.4.0",
|
|
99
|
-
"@ffmpeg/ffmpeg": "0.12.15",
|
|
100
|
-
"@ffmpeg/util": "0.12.2",
|
|
101
|
-
"@floating-ui/react": "^0.27.16",
|
|
102
|
-
"@hookform/resolvers": "^5.2.2",
|
|
103
|
-
"@mirantes-micro/billing-v2": "0.1.50",
|
|
104
|
-
"@mirantes-micro/notifications-v2": "0.0.45",
|
|
105
|
-
"@mirantes-micro/widgets": "0.0.161",
|
|
106
|
-
"@radix-ui/react-avatar": "^1.1.10",
|
|
107
|
-
"@radix-ui/react-checkbox": "^1.3.3",
|
|
108
|
-
"@radix-ui/react-dialog": "^1.1.15",
|
|
109
|
-
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
110
|
-
"@radix-ui/react-label": "^2.1.7",
|
|
111
|
-
"@radix-ui/react-popover": "1.1.15",
|
|
112
|
-
"@radix-ui/react-radio-group": "^1.3.8",
|
|
113
|
-
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
114
|
-
"@radix-ui/react-select": "^2.2.6",
|
|
115
|
-
"@radix-ui/react-slot": "^1.2.3",
|
|
116
|
-
"@radix-ui/react-tooltip": "^1.2.8",
|
|
117
|
-
"@tanstack/react-query-devtools": "5.76.1",
|
|
118
|
-
"@tiptap/core": "^3.10.7",
|
|
119
|
-
"@tiptap/extension-highlight": "^3.13.0",
|
|
120
|
-
"@tiptap/extension-horizontal-rule": "^3.13.0",
|
|
121
|
-
"@tiptap/extension-image": "^3.13.0",
|
|
122
|
-
"@tiptap/extension-list": "^3.13.0",
|
|
123
|
-
"@tiptap/extension-mention": "^3.10.7",
|
|
124
|
-
"@tiptap/extension-placeholder": "^3.10.7",
|
|
125
|
-
"@tiptap/extension-subscript": "^3.13.0",
|
|
126
|
-
"@tiptap/extension-superscript": "^3.13.0",
|
|
127
|
-
"@tiptap/extension-text-align": "^3.13.0",
|
|
128
|
-
"@tiptap/extension-typography": "^3.13.0",
|
|
129
|
-
"@tiptap/extensions": "^3.13.0",
|
|
130
|
-
"@tiptap/pm": "^3.13.0",
|
|
131
|
-
"@tiptap/react": "^3.10.7",
|
|
132
|
-
"@tiptap/starter-kit": "^3.10.7",
|
|
133
|
-
"@tiptap/suggestion": "^3.10.7",
|
|
134
|
-
"@uidotdev/usehooks": "2.4.1",
|
|
135
|
-
"axios": "1.11.0",
|
|
136
|
-
"browser-image-compression": "2.0.2",
|
|
137
|
-
"class-variance-authority": "0.7.1",
|
|
138
|
-
"clsx": "2.1.1",
|
|
139
|
-
"cmdk": "^1.1.1",
|
|
140
|
-
"cookies-next": "^5.1.0",
|
|
141
|
-
"country-data": "0.0.31",
|
|
142
|
-
"crypto-js": "4.2.0",
|
|
143
|
-
"currencies.json": "1.1.0",
|
|
144
|
-
"date-fns": "^4.1.0",
|
|
145
|
-
"emoji-mart": "5.6.0",
|
|
146
|
-
"emoji-picker-react": "4.13.3",
|
|
147
|
-
"framer-motion": "12.19.2",
|
|
148
|
-
"global-currencies": "1.0.3",
|
|
149
|
-
"graphql": "16.11.0",
|
|
150
|
-
"graphql-request": "^7.3.1",
|
|
151
|
-
"html2canvas": "1.4.1",
|
|
152
|
-
"isomorphic-dompurify": "^2.34.0",
|
|
153
|
-
"js-cookie": "3.0.5",
|
|
154
|
-
"jspdf": "3.0.3",
|
|
155
|
-
"link-preview-js": "^3.1.0",
|
|
156
|
-
"lodash.throttle": "^4.1.1",
|
|
157
|
-
"lucide-react": "0.510.0",
|
|
158
|
-
"marked": "^17.0.0",
|
|
159
|
-
"motion": "^12.23.24",
|
|
160
|
-
"next": "15.3.2",
|
|
161
|
-
"ogp-parser": "0.8.1",
|
|
162
|
-
"pdf-lib": "^1.17.1",
|
|
163
|
-
"pdfjs-dist": "^5.4.449",
|
|
164
|
-
"process": "0.11.10",
|
|
165
|
-
"react": "19.1.0",
|
|
166
|
-
"react-day-picker": "^9.11.1",
|
|
167
|
-
"react-detect-offline": "2.4.5",
|
|
168
|
-
"react-dom": "19.1.0",
|
|
169
|
-
"react-dropzone": "14.3.8",
|
|
170
|
-
"react-hook-form": "^7.65.0",
|
|
171
|
-
"react-hotkeys-hook": "^5.2.1",
|
|
172
|
-
"react-infinite-scroll-hook": "6.0.1",
|
|
173
|
-
"react-markdown": "^10.1.0",
|
|
174
|
-
"react-mentions-ts": "5.4.7",
|
|
175
|
-
"react-router-dom": "7.6.0",
|
|
176
|
-
"react-syntax-highlighter": "16.1.0",
|
|
177
|
-
"react-toastify": "^11.0.5",
|
|
178
|
-
"remark-gfm": "^4.0.1",
|
|
179
|
-
"shiki": "^3.15.0",
|
|
180
|
-
"slugify": "1.6.6",
|
|
181
|
-
"socket.io-client": "4.8.1",
|
|
182
|
-
"swiper": "11.2.10",
|
|
183
|
-
"tailwind-scrollbar-hide": "4.0.0",
|
|
184
|
-
"tippy.js": "^6.3.7",
|
|
185
|
-
"tw-animate-css": "1.2.9",
|
|
186
|
-
"uuid": "11.1.0",
|
|
187
|
-
"vaul": "^1.1.2",
|
|
188
|
-
"yup": "^1.7.1",
|
|
189
|
-
"zustand": "^5.0.8"
|
|
190
|
-
},
|
|
191
|
-
"peerDependencies": {
|
|
192
|
-
"tailwind-scrollbar-hide": "^4.0.0",
|
|
193
|
-
"tailwindcss": "^3.0.0",
|
|
194
|
-
"tailwindcss-animate": "^1.0.0"
|
|
195
|
-
}
|
|
196
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@mirantes-micro/foundation-design-system",
|
|
3
|
+
"description": "A scalable and customizable design system package featuring a collection of reusable React components, utility functions, and context providers. Built to enforce visual and functional consistency across applications, this package offers accessible, themeable UI elements, shared logic through utility helpers, and context-based providers for managing global state such as themes, modals, and user sessions.",
|
|
4
|
+
"version": "1.2.249",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Mirantes Frontend team"
|
|
8
|
+
},
|
|
9
|
+
"sideEffects": [
|
|
10
|
+
"*.css"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"require": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"default": "./dist/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"./styles.css": "./dist/styles.css"
|
|
24
|
+
},
|
|
25
|
+
"source": "./src/components/fromMirantes/index.ts",
|
|
26
|
+
"module": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"files": [
|
|
29
|
+
"dist/*"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"dev": "webpack serve --mode development",
|
|
33
|
+
"build": "webpack --mode production",
|
|
34
|
+
"build:webpack": "tsup src/components/fromMirantes/index.ts --format cjs --minify",
|
|
35
|
+
"release": "pnpm build:webpack && npm publish",
|
|
36
|
+
"build:css": "npx tailwindcss -i ./src/styles/globals.css -o ./dist/styles.css --minify",
|
|
37
|
+
"prepare": "husky",
|
|
38
|
+
"format": "biome format --write .",
|
|
39
|
+
"test": "vitest --passWithNoTests"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@babel/core": "7.26.0",
|
|
43
|
+
"@babel/preset-env": "7.26.0",
|
|
44
|
+
"@babel/preset-react": "7.26.3",
|
|
45
|
+
"@biomejs/biome": "2.4.6",
|
|
46
|
+
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
|
|
47
|
+
"@tailwindcss/postcss7-compat": "2.2.17",
|
|
48
|
+
"@tanstack/react-query": "5.76.1",
|
|
49
|
+
"@testing-library/dom": "10.4.1",
|
|
50
|
+
"@testing-library/jest-dom": "6.9.1",
|
|
51
|
+
"@testing-library/react": "16.3.2",
|
|
52
|
+
"@types/country-data": "0.0.5",
|
|
53
|
+
"@types/crypto-js": "4.2.2",
|
|
54
|
+
"@types/js-cookie": "3.0.6",
|
|
55
|
+
"@types/lodash.throttle": "^4.1.9",
|
|
56
|
+
"@types/node": "22.10.5",
|
|
57
|
+
"@types/react": "19.1.4",
|
|
58
|
+
"@types/react-detect-offline": "2.4.5",
|
|
59
|
+
"@types/react-dom": "19.1.5",
|
|
60
|
+
"@types/react-syntax-highlighter": "15.5.13",
|
|
61
|
+
"@types/uuid": "10.0.0",
|
|
62
|
+
"@vitejs/plugin-react": "5.1.4",
|
|
63
|
+
"babel-loader": "9.2.1",
|
|
64
|
+
"baseline-browser-mapping": "^2.9.19",
|
|
65
|
+
"css-loader": "6.8.1",
|
|
66
|
+
"esbuild-sass-plugin": "3.3.1",
|
|
67
|
+
"eslint": "9.17.0",
|
|
68
|
+
"eslint-plugin-react": "7.37.3",
|
|
69
|
+
"file-loader": "6.2.0",
|
|
70
|
+
"graphql-tag": "2.12.6",
|
|
71
|
+
"html-webpack-plugin": "5.5.3",
|
|
72
|
+
"husky": "9.1.7",
|
|
73
|
+
"jsdom": "28.1.0",
|
|
74
|
+
"postcss": "8.4.39",
|
|
75
|
+
"postcss-import": "16.1.0",
|
|
76
|
+
"postcss-important": "0.3.0",
|
|
77
|
+
"postcss-loader": "7.3.3",
|
|
78
|
+
"postcss-nesting": "12.1.5",
|
|
79
|
+
"prettier": "3.4.2",
|
|
80
|
+
"react-refresh": "0.16.0",
|
|
81
|
+
"sass": "^1.94.2",
|
|
82
|
+
"sass-embedded": "^1.93.3",
|
|
83
|
+
"sass-loader": "^16.0.6",
|
|
84
|
+
"style-loader": "3.3.3",
|
|
85
|
+
"tailwind-merge": "2.6.0",
|
|
86
|
+
"tailwindcss": "3.4.4",
|
|
87
|
+
"tailwindcss-animate": "1.0.7",
|
|
88
|
+
"ts-loader": "9.5.1",
|
|
89
|
+
"tsup": "8.3.5",
|
|
90
|
+
"typescript": "5.7.2",
|
|
91
|
+
"vite-tsconfig-paths": "6.1.1",
|
|
92
|
+
"vitest": "4.0.18",
|
|
93
|
+
"webpack": "5.97.1",
|
|
94
|
+
"webpack-cli": "6.0.1",
|
|
95
|
+
"webpack-dev-server": "5.2.0"
|
|
96
|
+
},
|
|
97
|
+
"dependencies": {
|
|
98
|
+
"@emotion/is-prop-valid": "^1.4.0",
|
|
99
|
+
"@ffmpeg/ffmpeg": "0.12.15",
|
|
100
|
+
"@ffmpeg/util": "0.12.2",
|
|
101
|
+
"@floating-ui/react": "^0.27.16",
|
|
102
|
+
"@hookform/resolvers": "^5.2.2",
|
|
103
|
+
"@mirantes-micro/billing-v2": "0.1.50",
|
|
104
|
+
"@mirantes-micro/notifications-v2": "0.0.45",
|
|
105
|
+
"@mirantes-micro/widgets": "0.0.161",
|
|
106
|
+
"@radix-ui/react-avatar": "^1.1.10",
|
|
107
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
108
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
109
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
110
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
111
|
+
"@radix-ui/react-popover": "1.1.15",
|
|
112
|
+
"@radix-ui/react-radio-group": "^1.3.8",
|
|
113
|
+
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
114
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
115
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
116
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
117
|
+
"@tanstack/react-query-devtools": "5.76.1",
|
|
118
|
+
"@tiptap/core": "^3.10.7",
|
|
119
|
+
"@tiptap/extension-highlight": "^3.13.0",
|
|
120
|
+
"@tiptap/extension-horizontal-rule": "^3.13.0",
|
|
121
|
+
"@tiptap/extension-image": "^3.13.0",
|
|
122
|
+
"@tiptap/extension-list": "^3.13.0",
|
|
123
|
+
"@tiptap/extension-mention": "^3.10.7",
|
|
124
|
+
"@tiptap/extension-placeholder": "^3.10.7",
|
|
125
|
+
"@tiptap/extension-subscript": "^3.13.0",
|
|
126
|
+
"@tiptap/extension-superscript": "^3.13.0",
|
|
127
|
+
"@tiptap/extension-text-align": "^3.13.0",
|
|
128
|
+
"@tiptap/extension-typography": "^3.13.0",
|
|
129
|
+
"@tiptap/extensions": "^3.13.0",
|
|
130
|
+
"@tiptap/pm": "^3.13.0",
|
|
131
|
+
"@tiptap/react": "^3.10.7",
|
|
132
|
+
"@tiptap/starter-kit": "^3.10.7",
|
|
133
|
+
"@tiptap/suggestion": "^3.10.7",
|
|
134
|
+
"@uidotdev/usehooks": "2.4.1",
|
|
135
|
+
"axios": "1.11.0",
|
|
136
|
+
"browser-image-compression": "2.0.2",
|
|
137
|
+
"class-variance-authority": "0.7.1",
|
|
138
|
+
"clsx": "2.1.1",
|
|
139
|
+
"cmdk": "^1.1.1",
|
|
140
|
+
"cookies-next": "^5.1.0",
|
|
141
|
+
"country-data": "0.0.31",
|
|
142
|
+
"crypto-js": "4.2.0",
|
|
143
|
+
"currencies.json": "1.1.0",
|
|
144
|
+
"date-fns": "^4.1.0",
|
|
145
|
+
"emoji-mart": "5.6.0",
|
|
146
|
+
"emoji-picker-react": "4.13.3",
|
|
147
|
+
"framer-motion": "12.19.2",
|
|
148
|
+
"global-currencies": "1.0.3",
|
|
149
|
+
"graphql": "16.11.0",
|
|
150
|
+
"graphql-request": "^7.3.1",
|
|
151
|
+
"html2canvas": "1.4.1",
|
|
152
|
+
"isomorphic-dompurify": "^2.34.0",
|
|
153
|
+
"js-cookie": "3.0.5",
|
|
154
|
+
"jspdf": "3.0.3",
|
|
155
|
+
"link-preview-js": "^3.1.0",
|
|
156
|
+
"lodash.throttle": "^4.1.1",
|
|
157
|
+
"lucide-react": "0.510.0",
|
|
158
|
+
"marked": "^17.0.0",
|
|
159
|
+
"motion": "^12.23.24",
|
|
160
|
+
"next": "15.3.2",
|
|
161
|
+
"ogp-parser": "0.8.1",
|
|
162
|
+
"pdf-lib": "^1.17.1",
|
|
163
|
+
"pdfjs-dist": "^5.4.449",
|
|
164
|
+
"process": "0.11.10",
|
|
165
|
+
"react": "19.1.0",
|
|
166
|
+
"react-day-picker": "^9.11.1",
|
|
167
|
+
"react-detect-offline": "2.4.5",
|
|
168
|
+
"react-dom": "19.1.0",
|
|
169
|
+
"react-dropzone": "14.3.8",
|
|
170
|
+
"react-hook-form": "^7.65.0",
|
|
171
|
+
"react-hotkeys-hook": "^5.2.1",
|
|
172
|
+
"react-infinite-scroll-hook": "6.0.1",
|
|
173
|
+
"react-markdown": "^10.1.0",
|
|
174
|
+
"react-mentions-ts": "5.4.7",
|
|
175
|
+
"react-router-dom": "7.6.0",
|
|
176
|
+
"react-syntax-highlighter": "16.1.0",
|
|
177
|
+
"react-toastify": "^11.0.5",
|
|
178
|
+
"remark-gfm": "^4.0.1",
|
|
179
|
+
"shiki": "^3.15.0",
|
|
180
|
+
"slugify": "1.6.6",
|
|
181
|
+
"socket.io-client": "4.8.1",
|
|
182
|
+
"swiper": "11.2.10",
|
|
183
|
+
"tailwind-scrollbar-hide": "4.0.0",
|
|
184
|
+
"tippy.js": "^6.3.7",
|
|
185
|
+
"tw-animate-css": "1.2.9",
|
|
186
|
+
"uuid": "11.1.0",
|
|
187
|
+
"vaul": "^1.1.2",
|
|
188
|
+
"yup": "^1.7.1",
|
|
189
|
+
"zustand": "^5.0.8"
|
|
190
|
+
},
|
|
191
|
+
"peerDependencies": {
|
|
192
|
+
"tailwind-scrollbar-hide": "^4.0.0",
|
|
193
|
+
"tailwindcss": "^3.0.0",
|
|
194
|
+
"tailwindcss-animate": "^1.0.0"
|
|
195
|
+
}
|
|
196
|
+
}
|