@agilys-system/design-system 1.0.9 → 1.0.11
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),C=require("react"),Ae=require("react-dom");function pe(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=pe(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function fe(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=pe(e))&&(n&&(n+=" "),n+=t);return n}const ie=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,le=fe,F=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return le(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:o}=t,l=Object.keys(a).map(c=>{const p=r==null?void 0:r[c],m=o==null?void 0:o[c];if(p===null)return null;const b=ie(p)||ie(m);return a[c][b]}),i=r&&Object.entries(r).reduce((c,p)=>{let[m,b]=p;return b===void 0||(c[m]=b),c},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,p)=>{let{class:m,className:b,...N}=p;return Object.entries(N).every(k=>{let[g,f]=k;return Array.isArray(f)?f.includes({...o,...i}[g]):{...o,...i}[g]===f})?[...c,m,b]:c},[]);return le(e,l,u,r==null?void 0:r.class,r==null?void 0:r.className)},te="-",Re=e=>{const t=Ve(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(te);return i[0]===""&&i.length!==1&&i.shift(),be(i,t)||Ie(l)},getConflictingClassGroupIds:(l,i)=>{const u=r[l]||[];return i&&n[l]?[...u,...n[l]]:u}}},be=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?be(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(te);return(l=t.validators.find(({validator:i})=>i(o)))==null?void 0:l.classGroupId},ce=/^\[(.+)\]$/,Ie=e=>{if(ce.test(e)){const t=ce.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ve=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Ee(Object.entries(e.classGroups),r).forEach(([o,l])=>{D(l,n,o,t)}),n},D=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:de(t,a);o.classGroupId=r;return}if(typeof a=="function"){if(Te(a)){D(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([o,l])=>{D(l,de(t,o),r,n)})})},de=(e,t)=>{let r=e;return t.split(te).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Te=e=>e.isThemeGetter,Ee=(e,t)=>t?e.map(([r,n])=>{const a=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([l,i])=>[t+l,i])):o);return[r,a]}):e,Ge=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(o,l)=>{r.set(o,l),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let l=r.get(o);if(l!==void 0)return l;if((l=n.get(o))!==void 0)return a(o,l),l},set(o,l){r.has(o)?r.set(o,l):a(o,l)}}},ge="!",Le=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,a=t[0],o=t.length,l=i=>{const u=[];let c=0,p=0,m;for(let f=0;f<i.length;f++){let v=i[f];if(c===0){if(v===a&&(n||i.slice(f,f+o)===t)){u.push(i.slice(p,f)),p=f+o;continue}if(v==="/"){m=f;continue}}v==="["?c++:v==="]"&&c--}const b=u.length===0?i:i.substring(p),N=b.startsWith(ge),k=N?b.substring(1):b,g=m&&m>p?m-p:void 0;return{modifiers:u,hasImportantModifier:N,baseClassName:k,maybePostfixModifierPosition:g}};return r?i=>r({className:i,parseClassName:l}):l},Be=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Pe=e=>({cache:Ge(e.cacheSize),parseClassName:Le(e),...Re(e)}),We=/\s+/,Oe=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,o=[],l=e.trim().split(We);let i="";for(let u=l.length-1;u>=0;u-=1){const c=l[u],{modifiers:p,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:N}=r(c);let k=!!N,g=n(k?b.substring(0,N):b);if(!g){if(!k){i=c+(i.length>0?" "+i:i);continue}if(g=n(b),!g){i=c+(i.length>0?" "+i:i);continue}k=!1}const f=Be(p).join(":"),v=m?f+ge:f,j=v+g;if(o.includes(j))continue;o.push(j);const S=a(g,k);for(let M=0;M<S.length;++M){const G=S[M];o.push(v+G)}i=c+(i.length>0?" "+i:i)}return i};function $e(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=me(t))&&(n&&(n+=" "),n+=r);return n}const me=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=me(e[n]))&&(r&&(r+=" "),r+=t);return r};function Ue(e,...t){let r,n,a,o=l;function l(u){const c=t.reduce((p,m)=>m(p),e());return r=Pe(c),n=r.cache.get,a=r.cache.set,o=i,i(u)}function i(u){const c=n(u);if(c)return c;const p=Oe(u,r);return a(u,p),p}return function(){return o($e.apply(null,arguments))}}const h=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},xe=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fe=/^\d+\/\d+$/,qe=new Set(["px","full","screen"]),He=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Je=/\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$/,Xe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ze=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ke=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=e=>L(e)||qe.has(e)||Fe.test(e),V=e=>B(e,"length",ot),L=e=>!!e&&!Number.isNaN(Number(e)),Y=e=>B(e,"number",L),O=e=>!!e&&Number.isInteger(Number(e)),Qe=e=>e.endsWith("%")&&L(e.slice(0,-1)),d=e=>xe.test(e),T=e=>He.test(e),Ye=new Set(["length","size","percentage"]),De=e=>B(e,Ye,he),et=e=>B(e,"position",he),tt=new Set(["image","url"]),rt=e=>B(e,tt,at),nt=e=>B(e,"",st),$=()=>!0,B=(e,t,r)=>{const n=xe.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},ot=e=>Je.test(e)&&!Xe.test(e),he=()=>!1,st=e=>Ze.test(e),at=e=>Ke.test(e),it=()=>{const e=h("colors"),t=h("spacing"),r=h("blur"),n=h("brightness"),a=h("borderColor"),o=h("borderRadius"),l=h("borderSpacing"),i=h("borderWidth"),u=h("contrast"),c=h("grayscale"),p=h("hueRotate"),m=h("invert"),b=h("gap"),N=h("gradientColorStops"),k=h("gradientColorStopPositions"),g=h("inset"),f=h("margin"),v=h("opacity"),j=h("padding"),S=h("saturate"),M=h("scale"),G=h("sepia"),q=h("skew"),w=h("space"),_=h("translate"),E=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",d,t],y=()=>[d,t],ne=()=>["",I,V],H=()=>["auto",L,d],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],J=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",d],ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[L,d];return{cacheSize:500,separator:":",theme:{colors:[$],spacing:[I,V],blur:["none","",T,d],brightness:R(),borderColor:[e],borderRadius:["none","","full",T,d],borderSpacing:y(),borderWidth:ne(),contrast:R(),grayscale:W(),hueRotate:R(),invert:W(),gap:y(),gradientColorStops:[e],gradientColorStopPositions:[Qe,V],inset:P(),margin:P(),opacity:R(),padding:y(),saturate:R(),scale:R(),sepia:W(),skew:R(),space:y(),translate:y()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[T]}],"break-after":[{"break-after":ae()}],"break-before":[{"break-before":ae()}],"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:[...oe(),d]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],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",O,d]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",O,d]}],"grid-cols":[{"grid-cols":[$]}],"col-start-end":[{col:["auto",{span:["full",O,d]},d]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[$]}],"row-start-end":[{row:["auto",{span:[O,d]},d]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],pt:[{pt:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[w]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[w]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[T]},T]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",T,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Y]}],"font-family":[{font:[$]}],"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",d]}],"line-clamp":[{"line-clamp":["none",L,Y]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",I,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"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:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",I,V]}],"underline-offset":[{"underline-offset":["auto",I,d]}],"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:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],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",d]}],"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:[...oe(),et]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",De]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},rt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[N]}],"gradient-via":[{via:[N]}],"gradient-to":[{to:[N]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"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:[...J(),"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:J()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...J()]}],"outline-offset":[{"outline-offset":[I,d]}],"outline-w":[{outline:[I,V]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[I,V]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",T,nt]}],"shadow-color":[{shadow:[$]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",T,d]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[m]}],saturate:[{saturate:[S]}],sepia:[{sepia:[G]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[O,d]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[q]}],"skew-y":[{"skew-y":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],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",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"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",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[I,V,Y]}],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"]}}},lt=Ue(it);function x(...e){return lt(fe(e))}const ye=F("inline-flex items-center justify-center gap-2 rounded-lg font-sans font-normal transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-agilys-primary disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-agilys-primary text-white text-sm shadow-[0px_2px_6px_0px_rgba(71,71,245,0.16),inset_0px_0px_10px_0px_rgba(255,255,255,0.3)] hover:bg-agilys-primary/90",secondary:"bg-white text-neutral-secondary text-base shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)] hover:bg-gray-50",destructive:"bg-danger-light text-danger-dark text-sm shadow-[0px_2px_6px_0px_rgba(243,22,22,0.16)] hover:bg-danger-light/80"},size:{sm:"h-9 px-3 text-sm",md:"h-11 px-4",lg:"h-12 px-6 text-base",icon:"size-11 p-0 shrink-0"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"primary",size:"md"}}),ve=C.forwardRef(({className:e,variant:t,size:r,fullWidth:n,isLoading:a=!1,leftIcon:o,disabled:l,children:i,...u},c)=>{const p=r==="icon";return s.jsxs("button",{ref:c,className:x(ye({variant:t,size:r,fullWidth:n}),e),disabled:l||a,"aria-busy":a,...u,children:[a&&s.jsxs("svg",{className:"size-[18px] animate-spin",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[s.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),s.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),!a&&o&&s.jsx("span",{className:"size-6 shrink-0 [&>svg]:size-full","aria-hidden":"true",children:o}),p?s.jsx("span",{className:"size-5 shrink-0 [&>svg]:size-full",children:i}):i]})});ve.displayName="Button";const we=F("font-sans text-gray-900",{variants:{variant:{h1:"text-3xl leading-tight font-bold",h2:"text-2xl leading-tight font-bold",h3:"text-xl leading-snug font-semibold",h4:"text-lg leading-snug font-semibold",h5:"text-base leading-snug font-medium",h6:"text-sm leading-snug font-medium",body:"text-sm leading-relaxed font-normal",bodySm:"text-xs leading-relaxed font-normal",caption:"text-[11px] leading-normal font-normal"},weight:{regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"body"}}),ct={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body:"p",bodySm:"p",caption:"span"},z=C.forwardRef(({className:e,variant:t="body",weight:r,as:n,children:a,...o},l)=>{const i=n??ct[t??"body"];return C.createElement(i,{ref:l,className:x(we({variant:t,weight:r}),e),...o},a)});z.displayName="Text";const ke=F("inline-flex items-center justify-center h-6 whitespace-nowrap",{variants:{variant:{filled:"rounded-lg px-3",dot:"rounded bg-white gap-1.5 px-2"},status:{default:"",success:"",alert:"",error:""}},compoundVariants:[{variant:"filled",status:"default",class:"bg-agilys-primary text-white"},{variant:"filled",status:"success",class:"bg-success-10 text-success-60"},{variant:"filled",status:"alert",class:"bg-warning-light text-warning-accent"},{variant:"filled",status:"error",class:"bg-danger-10 text-danger-60"},{variant:"dot",status:"default",class:"text-agilys-primary"},{variant:"dot",status:"success",class:"text-success-60"},{variant:"dot",status:"alert",class:"text-warning-dark"},{variant:"dot",status:"error",class:"text-danger-60"}],defaultVariants:{variant:"filled",status:"default"}}),dt={default:"bg-agilys-primary",success:"bg-success-60",alert:"bg-warning-accent",error:"bg-danger-60"},je=C.forwardRef(({className:e,variant:t="filled",status:r="default",children:n,...a},o)=>s.jsxs("span",{ref:o,className:x(ke({variant:t,status:r}),e),...a,children:[t==="dot"&&s.jsx("span",{className:x("size-2 shrink-0 rounded-full",dt[r??"default"]),"aria-hidden":"true"}),s.jsx(z,{as:"span",variant:"body",className:"text-inherit",children:n})]}));je.displayName="Badge";function ut(e,t){return t.split(".").reduce((r,n)=>r==null?void 0:r[n],e)}function pt(e,t){if(t.callback)return t.callback(e);if(!t.key)return null;const r=ut(e,t.key);return r==null||r===""?null:s.jsx(z,{as:"span",variant:"body",className:"truncate text-neutral-text-primary",children:r})}const Ne={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},Z=C.forwardRef(({className:e,...t},r)=>s.jsxs("span",{className:"relative inline-flex size-5 shrink-0 items-center justify-center",children:[s.jsx("input",{ref:r,type:"checkbox",className:x("peer size-5 shrink-0 cursor-pointer appearance-none rounded border-2 border-neutral-divider-primary bg-white shadow-[0px_0px_2px_0px_rgba(66,74,98,0.09)] checked:border-agilys-primary checked:bg-agilys-primary disabled:cursor-not-allowed disabled:opacity-50",e),...t}),s.jsx("svg",{className:"pointer-events-none absolute size-3 text-white opacity-0 peer-checked:opacity-100",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:s.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})]}));Z.displayName="TableCheckbox";function ft({className:e}){return s.jsx("svg",{className:x("size-5 shrink-0",e),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:s.jsx("path",{d:"M8 9l4-4 4 4M8 15l4 4 4-4",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})})}const K=C.forwardRef(({className:e,align:t="left",sortable:r,sorted:n,onSort:a,children:o,...l},i)=>s.jsx("th",{ref:i,className:x("border-b border-neutral-divider-secondary px-5 py-2",e),...l,children:s.jsxs("span",{className:x("flex items-center gap-1.5",Ne[t??"left"],r&&"cursor-pointer select-none"),onClick:r?a:void 0,children:[s.jsx(z,{as:"span",variant:"bodySm",weight:"medium",className:"flex-1 truncate text-neutral-text-secondary",children:o}),r&&s.jsx(ft,{className:x(n&&"text-agilys-primary")})]})}));K.displayName="TableHeadCell";function ee({align:e="left",className:t,children:r,onClick:n}){return s.jsx("td",{onClick:n,className:x("border-b border-neutral-divider-secondary px-5 py-3",t),children:s.jsx(z,{className:x("flex items-center gap-2",Ne[e??"left"]),children:r})})}function bt(e,t,r){if(typeof r=="function")return r(e);const n=e;return r?n[r]??t:n.id??t}function gt({keys:e,data:t,rowKey:r,loading:n,loadingMessage:a="Carregando dados...",emptyMessage:o="Nenhum dado para ser exibido!",selectable:l,selectedRowKeys:i,onSelectionChange:u,sortKey:c,sortDirection:p,onSortChange:m,onRowClick:b,shadow:N=!1,border:k=!0,className:g,...f}){const v=e.length+(l?1:0),j=i??[],S=t.map((w,_)=>bt(w,_,r)),M=S.length>0&&S.every(w=>j.includes(w)),G=()=>{u&&u(M?[]:S)},q=w=>{u&&u(j.includes(w)?j.filter(_=>_!==w):[...j,w])};return s.jsx("div",{className:x("w-full overflow-x-auto rounded-lg",k&&"border border-neutral-divider-secondary",N&&"shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)]"),children:s.jsxs("table",{className:x("w-full border-collapse font-sans",g),...f,children:[s.jsx("thead",{children:s.jsxs("tr",{children:[l&&s.jsx(K,{align:"center",className:"w-11",children:s.jsx(Z,{checked:M,onChange:G,"aria-label":"Selecionar todas as linhas"})}),e.map((w,_)=>s.jsx(K,{align:w.align,sortable:!!w.key&&!!m,sorted:w.key&&c===w.key?p:!1,onSort:()=>w.key&&(m==null?void 0:m(w.key)),children:w.label},w.key??`column-${_}`))]})}),s.jsx("tbody",{children:n?s.jsx("tr",{children:s.jsx("td",{colSpan:v,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:s.jsx(z,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:a})})}):t.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:v,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:s.jsx(z,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:o})})}):t.map((w,_)=>{const E=S[_];return s.jsxs("tr",{onClick:b?()=>b(w):void 0,className:x(_%2===0?"bg-neutral-surface-lightest":"bg-white",b&&"cursor-pointer"),children:[l&&s.jsx(ee,{align:"center",onClick:A=>A.stopPropagation(),children:s.jsx(Z,{checked:j.includes(E),onChange:()=>q(E),"aria-label":"Selecionar linha"})}),e.map((A,P)=>s.jsx(ee,{align:A.align,className:A.className,children:pt(w,A)},A.key??`column-${P}`))]},E)})})]})})}const Ce=F("relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-neutral-surface-lightest font-sans font-medium text-neutral-text-secondary",{variants:{size:{sm:"size-6 text-xs",md:"size-7 text-sm",lg:"size-10 text-base"}},defaultVariants:{size:"md"}});function mt(e){var n;const t=e.trim().split(/\s+/),r=t.length>1?`${t[0][0]}${t[t.length-1][0]}`:(n=t[0])==null?void 0:n.slice(0,2);return r==null?void 0:r.toUpperCase()}const xt={sm:"caption",md:"bodySm",lg:"body"},re=C.forwardRef(({className:e,size:t,src:r,alt:n="",name:a,...o},l)=>{const i=t??"md";return s.jsx("span",{ref:l,className:x(Ce({size:t}),e),...o,children:r?s.jsx("img",{src:r,alt:n,className:"size-full object-cover"}):a&&s.jsx(z,{as:"span",variant:xt[i],weight:"medium",className:"text-inherit leading-none",children:mt(a)})})});re.displayName="Avatar";function ht({src:e,name:t,description:r,size:n="md",className:a}){return s.jsxs("div",{className:x("flex min-w-0 items-center gap-2",a),children:[s.jsx(re,{src:e,name:t,size:n}),s.jsxs("div",{className:"flex min-w-0 flex-col",children:[s.jsx(z,{as:"span",variant:"body",className:"truncate",children:t}),r&&s.jsx(z,{as:"span",variant:"bodySm",className:"truncate text-neutral-text-secondary",children:r})]})]})}const U="ellipsis";function X(e,t){return Array.from({length:t-e+1},(r,n)=>e+n)}function yt(e,t,r){if(r*2+5>=t)return X(1,t);const a=Math.max(e-r,1),o=Math.min(e+r,t),l=a>2,i=o<t-1;return!l&&i?[...X(1,3+r*2),U,t]:l&&!i?[1,U,...X(t-(2+r*2),t)]:[1,U,...X(a,o),U,t]}function ue({direction:e,className:t}){return s.jsx("svg",{className:x("size-4",t),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:s.jsx("path",{d:e==="left"?"M15 6l-6 6 6 6":"M9 6l6 6-6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}const ze=C.forwardRef(({currentPage:e,totalPages:t,onPageChange:r,siblingCount:n=1,className:a,...o},l)=>{if(t<=1)return null;const i=yt(e,t,n),u=c=>{c<1||c>t||c===e||r(c)};return s.jsxs("nav",{ref:l,"aria-label":"Paginação",className:x("flex items-center gap-1 font-sans",a),...o,children:[s.jsx("button",{type:"button","aria-label":"Página anterior",disabled:e===1,onClick:()=>u(e-1),className:"inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",children:s.jsx(ue,{direction:"left"})}),i.map((c,p)=>c===U?s.jsx("span",{className:"inline-flex size-9 shrink-0 items-center justify-center text-neutral-text-secondary",children:s.jsx(z,{as:"span",variant:"bodySm",className:"text-inherit",children:"…"})},`ellipsis-${p}`):s.jsx("button",{type:"button","aria-current":c===e?"page":void 0,onClick:()=>u(c),className:x("inline-flex size-9 shrink-0 items-center justify-center rounded-lg transition-colors",c===e?"bg-neutral-surface-selected text-agilys-primary":"text-neutral-text-secondary hover:bg-neutral-surface-lightest"),children:s.jsx(z,{as:"span",variant:"bodySm",weight:"medium",className:"text-inherit",children:c})},c)),s.jsx("button",{type:"button","aria-label":"Próxima página",disabled:e===t,onClick:()=>u(e+1),className:"inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",children:s.jsx(ue,{direction:"right"})})]})});ze.displayName="Pagination";const _e=F("flex h-11 w-full min-w-0 items-center gap-2 rounded-lg bg-white px-3 shadow-[0px_4px_2px_0px_rgba(0,0,0,0.05)] transition-shadow focus-within:ring-2 focus-within:ring-agilys-primary",{variants:{hasError:{true:"ring-2 ring-danger-60 focus-within:ring-danger-60",false:""}},defaultVariants:{hasError:!1}}),Se=C.forwardRef(({className:e,containerClassName:t,label:r,leftIcon:n,rightIcon:a,bgIcon:o=!1,error:l,disabled:i,id:u,...c},p)=>{const m=C.useId(),b=u??m,N=typeof l=="string"?l:l==null?void 0:l.message,k=!!N,g=`${b}-error`;return s.jsxs("div",{className:x("flex w-full min-w-0 flex-col gap-1.5",t),children:[r&&s.jsx(z,{as:"label",htmlFor:b,variant:"body",className:"text-neutral-text-primary",children:r}),s.jsxs("div",{className:x(_e({hasError:k}),i&&"pointer-events-none opacity-50"),children:[n&&s.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center text-neutral-secondary [&>svg]:size-full","aria-hidden":"true",children:n}),s.jsx("input",{ref:p,id:b,disabled:i,"aria-invalid":k||void 0,"aria-describedby":k?g:void 0,className:x("w-full min-w-0 flex-1 bg-transparent font-sans text-base leading-6 text-neutral-text-primary placeholder:text-neutral-secondary focus:outline-none disabled:cursor-not-allowed",e),...c}),a&&s.jsx("span",{className:x("flex size-6 shrink-0 items-center justify-center text-neutral-secondary [&>svg]:size-full",o&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:a})]}),k&&s.jsx(z,{as:"span",id:g,role:"alert",variant:"caption",className:"text-danger-60",children:N})]})});Se.displayName="Input";function vt(){return s.jsx("svg",{className:"size-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:s.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const Me=C.forwardRef(({open:e,onClose:t,title:r,children:n,footer:a,closeOnBackdropClick:o=!0,showCloseButton:l=!0,className:i,contentClassName:u,...c},p)=>{const m=C.useId(),b=C.useRef(null),[N,k]=C.useState(!1);return C.useEffect(()=>k(!0),[]),C.useEffect(()=>{var v;if(!e)return;const g=document.body.style.overflow;document.body.style.overflow="hidden",(v=b.current)==null||v.focus();const f=j=>{j.key==="Escape"&&t()};return document.addEventListener("keydown",f),()=>{document.body.style.overflow=g,document.removeEventListener("keydown",f)}},[e,t]),!e||!N?null:Ae.createPortal(s.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-black/40 p-4",onClick:o?t:void 0,children:s.jsxs("div",{ref:p,role:"dialog","aria-modal":"true","aria-labelledby":r?m:void 0,onClick:g=>g.stopPropagation(),className:x("relative flex w-full min-w-0 max-w-lg flex-col gap-6 rounded-xl bg-[#fcfcfc] p-6 shadow-[0px_0px_2px_0px_rgba(34,34,34,0.08)] sm:p-8",i),...c,children:[l&&s.jsx("button",{ref:b,type:"button",onClick:t,"aria-label":"Fechar",className:"absolute right-4 top-4 flex size-6 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary sm:right-5 sm:top-5",children:s.jsx(vt,{})}),r&&s.jsx("div",{className:"pr-8",children:s.jsx(z,{as:"h2",id:m,variant:"h4",weight:"medium",className:"text-neutral-text-primary",children:r})}),s.jsx("div",{className:x("max-h-[70vh] min-w-0 overflow-y-auto overflow-x-hidden font-sans text-sm leading-relaxed text-neutral-text-secondary sm:text-base",u),children:n}),a&&s.jsx("div",{className:"flex flex-wrap items-center gap-2.5 pt-1",children:a})]})}),document.body)});Me.displayName="Modal";exports.Avatar=re;exports.AvatarColumn=ht;exports.Badge=je;exports.Button=ve;exports.Input=Se;exports.Modal=Me;exports.Pagination=ze;exports.Table=gt;exports.TableCell=ee;exports.TableCheckbox=Z;exports.TableHeadCell=K;exports.Text=z;exports.avatarVariants=Ce;exports.badgeVariants=ke;exports.buttonVariants=ye;exports.cn=x;exports.inputVariants=_e;exports.textVariants=we;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),y=require("react"),Ge=require("react-dom");function xe(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=xe(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function he(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=xe(e))&&(n&&(n+=" "),n+=t);return n}const de=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ue=he,T=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return ue(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:o}=t,l=Object.keys(a).map(c=>{const p=r==null?void 0:r[c],b=o==null?void 0:o[c];if(p===null)return null;const f=de(p)||de(b);return a[c][f]}),i=r&&Object.entries(r).reduce((c,p)=>{let[b,f]=p;return f===void 0||(c[b]=f),c},{}),d=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,p)=>{let{class:b,className:f,...z}=p;return Object.entries(z).every(k=>{let[x,m]=k;return Array.isArray(m)?m.includes({...o,...i}[x]):{...o,...i}[x]===m})?[...c,b,f]:c},[]);return ue(e,l,d,r==null?void 0:r.class,r==null?void 0:r.className)},ne="-",Be=e=>{const t=He(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ne);return i[0]===""&&i.length!==1&&i.shift(),ye(i,t)||$e(l)},getConflictingClassGroupIds:(l,i)=>{const d=r[l]||[];return i&&n[l]?[...d,...n[l]]:d}}},ye=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?ye(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(ne);return(l=t.validators.find(({validator:i})=>i(o)))==null?void 0:l.classGroupId},pe=/^\[(.+)\]$/,$e=e=>{if(pe.test(e)){const t=pe.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},He=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Ue(Object.entries(e.classGroups),r).forEach(([o,l])=>{te(l,n,o,t)}),n},te=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:fe(t,a);o.classGroupId=r;return}if(typeof a=="function"){if(Fe(a)){te(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([o,l])=>{te(l,fe(t,o),r,n)})})},fe=(e,t)=>{let r=e;return t.split(ne).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Fe=e=>e.isThemeGetter,Ue=(e,t)=>t?e.map(([r,n])=>{const a=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([l,i])=>[t+l,i])):o);return[r,a]}):e,qe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(o,l)=>{r.set(o,l),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let l=r.get(o);if(l!==void 0)return l;if((l=n.get(o))!==void 0)return a(o,l),l},set(o,l){r.has(o)?r.set(o,l):a(o,l)}}},ve="!",Ke=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,a=t[0],o=t.length,l=i=>{const d=[];let c=0,p=0,b;for(let m=0;m<i.length;m++){let w=i[m];if(c===0){if(w===a&&(n||i.slice(m,m+o)===t)){d.push(i.slice(p,m)),p=m+o;continue}if(w==="/"){b=m;continue}}w==="["?c++:w==="]"&&c--}const f=d.length===0?i:i.substring(p),z=f.startsWith(ve),k=z?f.substring(1):f,x=b&&b>p?b-p:void 0;return{modifiers:d,hasImportantModifier:z,baseClassName:k,maybePostfixModifierPosition:x}};return r?i=>r({className:i,parseClassName:l}):l},Je=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Xe=e=>({cache:qe(e.cacheSize),parseClassName:Ke(e),...Be(e)}),Ze=/\s+/,De=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,o=[],l=e.trim().split(Ze);let i="";for(let d=l.length-1;d>=0;d-=1){const c=l[d],{modifiers:p,hasImportantModifier:b,baseClassName:f,maybePostfixModifierPosition:z}=r(c);let k=!!z,x=n(k?f.substring(0,z):f);if(!x){if(!k){i=c+(i.length>0?" "+i:i);continue}if(x=n(f),!x){i=c+(i.length>0?" "+i:i);continue}k=!1}const m=Je(p).join(":"),w=b?m+ve:m,C=w+x;if(o.includes(C))continue;o.push(C);const S=a(x,k);for(let M=0;M<S.length;++M){const L=S[M];o.push(w+L)}i=c+(i.length>0?" "+i:i)}return i};function Qe(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=we(t))&&(n&&(n+=" "),n+=r);return n}const we=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=we(e[n]))&&(r&&(r+=" "),r+=t);return r};function Ye(e,...t){let r,n,a,o=l;function l(d){const c=t.reduce((p,b)=>b(p),e());return r=Xe(c),n=r.cache.get,a=r.cache.set,o=i,i(d)}function i(d){const c=n(d);if(c)return c;const p=De(d,r);return a(d,p),p}return function(){return o(Qe.apply(null,arguments))}}const h=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},je=/^\[(?:([a-z-]+):)?(.+)\]$/i,et=/^\d+\/\d+$/,tt=new Set(["px","full","screen"]),rt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nt=/\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$/,st=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ot=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,at=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O=e=>P(e)||tt.has(e)||et.test(e),E=e=>W(e,"length",bt),P=e=>!!e&&!Number.isNaN(Number(e)),ee=e=>W(e,"number",P),$=e=>!!e&&Number.isInteger(Number(e)),it=e=>e.endsWith("%")&&P(e.slice(0,-1)),u=e=>je.test(e),R=e=>rt.test(e),lt=new Set(["length","size","percentage"]),ct=e=>W(e,lt,ke),dt=e=>W(e,"position",ke),ut=new Set(["image","url"]),pt=e=>W(e,ut,gt),ft=e=>W(e,"",mt),H=()=>!0,W=(e,t,r)=>{const n=je.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},bt=e=>nt.test(e)&&!st.test(e),ke=()=>!1,mt=e=>ot.test(e),gt=e=>at.test(e),xt=()=>{const e=h("colors"),t=h("spacing"),r=h("blur"),n=h("brightness"),a=h("borderColor"),o=h("borderRadius"),l=h("borderSpacing"),i=h("borderWidth"),d=h("contrast"),c=h("grayscale"),p=h("hueRotate"),b=h("invert"),f=h("gap"),z=h("gradientColorStops"),k=h("gradientColorStopPositions"),x=h("inset"),m=h("margin"),w=h("opacity"),C=h("padding"),S=h("saturate"),M=h("scale"),L=h("sepia"),U=h("skew"),j=h("space"),_=h("translate"),V=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",u,t],v=()=>[u,t],ae=()=>["",O,E],q=()=>["auto",P,u],ie=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",u],ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[P,u];return{cacheSize:500,separator:":",theme:{colors:[H],spacing:[O,E],blur:["none","",R,u],brightness:A(),borderColor:[e],borderRadius:["none","","full",R,u],borderSpacing:v(),borderWidth:ae(),contrast:A(),grayscale:B(),hueRotate:A(),invert:B(),gap:v(),gradientColorStops:[e],gradientColorStopPositions:[it,E],inset:G(),margin:G(),opacity:A(),padding:v(),saturate:A(),scale:A(),sepia:B(),skew:A(),space:v(),translate:v()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[R]}],"break-after":[{"break-after":ce()}],"break-before":[{"break-before":ce()}],"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:[...ie(),u]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",$,u]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",$,u]}],"grid-cols":[{"grid-cols":[H]}],"col-start-end":[{col:["auto",{span:["full",$,u]},u]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[H]}],"row-start-end":[{row:["auto",{span:[$,u]},u]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[R]},R]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",R,E]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ee]}],"font-family":[{font:[H]}],"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",u]}],"line-clamp":[{"line-clamp":["none",P,ee]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",O,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",O,E]}],"underline-offset":[{"underline-offset":["auto",O,u]}],"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:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],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",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ie(),dt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ct]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[z]}],"gradient-via":[{via:[z]}],"gradient-to":[{to:[z]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"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":[w]}],"border-style":[{border:[...K(),"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":[w]}],"divide-style":[{divide:K()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[O,u]}],"outline-w":[{outline:[O,E]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[O,E]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",R,ft]}],"shadow-color":[{shadow:[H]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...le(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":le()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",R,u]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[b]}],saturate:[{saturate:[S]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[$,u]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],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",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"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",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[O,E,ee]}],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"]}}},ht=Ye(xt);function g(...e){return ht(he(e))}const Ne=T("inline-flex items-center justify-center gap-2 rounded-lg font-sans font-normal transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-agilys-primary disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-agilys-primary text-white text-sm shadow-[0px_2px_6px_0px_rgba(71,71,245,0.16),inset_0px_0px_10px_0px_rgba(255,255,255,0.3)] hover:bg-agilys-primary/90",secondary:"bg-white text-neutral-secondary text-base shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)] hover:bg-gray-50",destructive:"bg-danger-light text-danger-dark text-sm shadow-[0px_2px_6px_0px_rgba(243,22,22,0.16)] hover:bg-danger-light/80"},size:{sm:"h-9 px-3 text-sm",md:"h-11 px-4",lg:"h-12 px-6 text-base",icon:"size-11 p-0 shrink-0"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"primary",size:"md"}}),Ce=y.forwardRef(({className:e,variant:t,size:r,fullWidth:n,isLoading:a=!1,leftIcon:o,disabled:l,children:i,...d},c)=>{const p=r==="icon";return s.jsxs("button",{ref:c,className:g(Ne({variant:t,size:r,fullWidth:n}),e),disabled:l||a,"aria-busy":a,...d,children:[a&&s.jsxs("svg",{className:"size-[18px] animate-spin",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[s.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),s.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),!a&&o&&s.jsx("span",{className:"size-6 shrink-0 [&>svg]:size-full","aria-hidden":"true",children:o}),p?s.jsx("span",{className:"size-5 shrink-0 [&>svg]:size-full",children:i}):i]})});Ce.displayName="Button";const ze=T("font-sans text-gray-900",{variants:{variant:{h1:"text-3xl leading-tight font-bold",h2:"text-2xl leading-tight font-bold",h3:"text-xl leading-snug font-semibold",h4:"text-lg leading-snug font-semibold",h5:"text-base leading-snug font-medium",h6:"text-sm leading-snug font-medium",body:"text-sm leading-relaxed font-normal",bodySm:"text-xs leading-relaxed font-normal",caption:"text-[11px] leading-normal font-normal"},weight:{regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"body"}}),yt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body:"p",bodySm:"p",caption:"span"},N=y.forwardRef(({className:e,variant:t="body",weight:r,as:n,children:a,...o},l)=>{const i=n??yt[t??"body"];return y.createElement(i,{ref:l,className:g(ze({variant:t,weight:r}),e),...o},a)});N.displayName="Text";const _e=T("inline-flex items-center justify-center h-6 whitespace-nowrap",{variants:{variant:{filled:"rounded-lg px-3",dot:"rounded bg-white gap-1.5 px-2"},status:{default:"",success:"",alert:"",error:""}},compoundVariants:[{variant:"filled",status:"default",class:"bg-agilys-primary text-white"},{variant:"filled",status:"success",class:"bg-success-10 text-success-60"},{variant:"filled",status:"alert",class:"bg-warning-light text-warning-accent"},{variant:"filled",status:"error",class:"bg-danger-10 text-danger-60"},{variant:"dot",status:"default",class:"text-agilys-primary"},{variant:"dot",status:"success",class:"text-success-60"},{variant:"dot",status:"alert",class:"text-warning-dark"},{variant:"dot",status:"error",class:"text-danger-60"}],defaultVariants:{variant:"filled",status:"default"}}),vt={default:"bg-agilys-primary",success:"bg-success-60",alert:"bg-warning-accent",error:"bg-danger-60"},Se=y.forwardRef(({className:e,variant:t="filled",status:r="default",children:n,...a},o)=>s.jsxs("span",{ref:o,className:g(_e({variant:t,status:r}),e),...a,children:[t==="dot"&&s.jsx("span",{className:g("size-2 shrink-0 rounded-full",vt[r??"default"]),"aria-hidden":"true"}),s.jsx(N,{as:"span",variant:"body",className:"text-inherit",children:n})]}));Se.displayName="Badge";const Me=T("flex items-start gap-2 rounded-lg p-5 font-sans",{variants:{variant:{default:"border border-neutral-divider-secondary bg-white shadow-[0px_0px_1px_0px_rgba(66,74,98,0.09),0px_2px_2px_0px_rgba(66,74,98,0.04)]",success:"border border-transparent bg-success-10",warning:"border border-transparent bg-warning-light",error:"border border-transparent bg-danger-10",info:"border border-transparent bg-primary-50"}},defaultVariants:{variant:"default"}}),wt={default:"text-neutral-text-primary",success:"text-success-60",warning:"text-warning-dark",error:"text-danger-dark",info:"text-primary-700"};function jt(){return s.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[s.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),s.jsx("path",{d:"M12 11v5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("circle",{cx:"12",cy:"8",r:"1",fill:"currentColor"})]})}function kt(){return s.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[s.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),s.jsx("path",{d:"M8.5 12.5l2.5 2.5 4.5-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Nt(){return s.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[s.jsx("path",{d:"M12 3.5L21 20H3L12 3.5z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),s.jsx("path",{d:"M12 10v4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("circle",{cx:"12",cy:"17",r:"1",fill:"currentColor"})]})}function Ct(){return s.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[s.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),s.jsx("path",{d:"M9.5 9.5l5 5m0-5l-5 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}function zt(){return s.jsx("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:s.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const _t={success:s.jsx(kt,{}),warning:s.jsx(Nt,{}),error:s.jsx(Ct,{}),info:s.jsx(jt,{})},se=y.forwardRef(({className:e,variant:t="default",icon:r,title:n,description:a,action:o,onClose:l,children:i,...d},c)=>{const p=t??"default",b=r===void 0?_t[p]:r,f=wt[p];return s.jsxs("div",{ref:c,className:g(Me({variant:t}),e),...d,children:[b&&s.jsx("span",{className:g("size-6 shrink-0",f),"aria-hidden":"true",children:b}),s.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[n&&s.jsx(N,{as:"div",variant:"body",weight:"semibold",className:f,children:n}),a&&s.jsx(N,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:a}),i]}),o&&s.jsx("div",{className:"flex shrink-0 items-center",children:o}),l&&s.jsx("button",{type:"button",onClick:l,"aria-label":"Fechar",className:g("flex size-5 shrink-0 items-center justify-center rounded-md transition-colors hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",f),children:s.jsx(zt,{})})]})});se.displayName="Card";var Ie={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},be=y.createContext&&y.createContext(Ie),St=["attr","size","title"];function Mt(e,t){if(e==null)return{};var r,n,a=It(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function It(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},X.apply(null,arguments)}function me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?me(Object(r),!0).forEach(function(n){At(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function At(e,t,r){return(t=Ot(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ot(e){var t=Et(e,"string");return typeof t=="symbol"?t:t+""}function Et(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ae(e){return e&&e.map((t,r)=>y.createElement(t.tag,Z({key:r},t.attr),Ae(t.child)))}function Oe(e){return t=>y.createElement(Rt,X({attr:Z({},e.attr)},t),Ae(e.child))}function Rt(e){var t=r=>{var n=e.attr,a=e.size,o=e.title,l=Mt(e,St),i=a||r.size||"1em",d;return r.className&&(d=r.className),e.className&&(d=(d?d+" ":"")+e.className),y.createElement("svg",X({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,l,{className:d,style:Z(Z({color:e.color||r.color},r.style),e.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),o&&y.createElement("title",null,o),e.children)};return be!==void 0?y.createElement(be.Consumer,null,r=>t(r)):t(Ie)}function Vt(e){return Oe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M80 152v256a40.12 40.12 0 0 0 40 40h272a40.12 40.12 0 0 0 40-40V152"},child:[]},{tag:"rect",attr:{width:"416",height:"80",x:"48",y:"64",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"28",ry:"28"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m320 304-64 64-64-64m64 41.89V224"},child:[]}]})(e)}function Lt(e){return Oe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"},child:[]}]})(e)}const Ee=y.forwardRef(({className:e,title:t,body:r,timestamp:n,read:a=!1,onArchive:o,onDelete:l,...i},d)=>s.jsxs(se,{ref:d,icon:null,className:g(!a&&"border-transparent bg-lightGray",e),...i,children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[!a&&s.jsx("span",{className:"size-2 shrink-0 rounded-full bg-danger-60","aria-label":"Não visualizada"}),s.jsx(N,{as:"div",variant:"body",weight:"semibold",className:"truncate text-neutral-text-primary",children:t})]}),s.jsx(N,{as:"span",variant:"caption",className:"shrink-0 text-neutral-text-secondary",children:n})]}),s.jsx(N,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:r}),s.jsxs("div",{className:"flex items-center justify-end gap-1 pt-1",children:[s.jsx("button",{type:"button",onClick:o,"aria-label":"Arquivar",className:"flex size-7 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:bg-neutral-surface-selected hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",children:s.jsx(Vt,{className:"size-4","aria-hidden":"true"})}),s.jsx("button",{type:"button",onClick:l,"aria-label":"Excluir",className:"flex size-7 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:bg-danger-10 hover:text-danger-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",children:s.jsx(Lt,{className:"size-4","aria-hidden":"true"})})]})]}));Ee.displayName="NotificationCard";function Pt(e,t){return t.split(".").reduce((r,n)=>r==null?void 0:r[n],e)}function Tt(e,t){if(t.callback)return t.callback(e);if(!t.key)return null;const r=Pt(e,t.key);return r==null||r===""?null:s.jsx(N,{as:"span",variant:"body",className:"truncate text-neutral-text-primary",children:r})}const Re={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},D=y.forwardRef(({className:e,...t},r)=>s.jsxs("span",{className:"relative inline-flex size-5 shrink-0 items-center justify-center",children:[s.jsx("input",{ref:r,type:"checkbox",className:g("peer size-5 shrink-0 cursor-pointer appearance-none rounded border-2 border-neutral-divider-primary bg-white shadow-[0px_0px_2px_0px_rgba(66,74,98,0.09)] checked:border-agilys-primary checked:bg-agilys-primary disabled:cursor-not-allowed disabled:opacity-50",e),...t}),s.jsx("svg",{className:"pointer-events-none absolute size-3 text-white opacity-0 peer-checked:opacity-100",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:s.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})]}));D.displayName="TableCheckbox";function Wt({className:e}){return s.jsx("svg",{className:g("size-5 shrink-0",e),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:s.jsx("path",{d:"M8 9l4-4 4 4M8 15l4 4 4-4",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})})}const Q=y.forwardRef(({className:e,align:t="left",sortable:r,sorted:n,onSort:a,children:o,...l},i)=>s.jsx("th",{ref:i,className:g("border-b border-neutral-divider-secondary px-5 py-2",e),...l,children:s.jsxs("span",{className:g("flex items-center gap-1.5",Re[t??"left"],r&&"cursor-pointer select-none"),onClick:r?a:void 0,children:[s.jsx(N,{as:"span",variant:"bodySm",weight:"medium",className:"flex-1 truncate text-neutral-text-secondary",children:o}),r&&s.jsx(Wt,{className:g(n&&"text-agilys-primary")})]})}));Q.displayName="TableHeadCell";function re({align:e="left",className:t,children:r,onClick:n}){return s.jsx("td",{onClick:n,className:g("border-b border-neutral-divider-secondary px-5 py-3",t),children:s.jsx(N,{className:g("flex items-center gap-2",Re[e??"left"]),children:r})})}function Gt(e,t,r){if(typeof r=="function")return r(e);const n=e;return r?n[r]??t:n.id??t}function Bt({keys:e,data:t,rowKey:r,loading:n,loadingMessage:a="Carregando dados...",emptyMessage:o="Nenhum dado para ser exibido!",selectable:l,selectedRowKeys:i,onSelectionChange:d,sortKey:c,sortDirection:p,onSortChange:b,onRowClick:f,shadow:z=!1,border:k=!0,className:x,...m}){const w=e.length+(l?1:0),C=i??[],S=t.map((j,_)=>Gt(j,_,r)),M=S.length>0&&S.every(j=>C.includes(j)),L=()=>{d&&d(M?[]:S)},U=j=>{d&&d(C.includes(j)?C.filter(_=>_!==j):[...C,j])};return s.jsx("div",{className:g("w-full overflow-x-auto rounded-lg",k&&"border border-neutral-divider-secondary",z&&"shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)]"),children:s.jsxs("table",{className:g("w-full border-collapse font-sans",x),...m,children:[s.jsx("thead",{children:s.jsxs("tr",{children:[l&&s.jsx(Q,{align:"center",className:"w-11",children:s.jsx(D,{checked:M,onChange:L,"aria-label":"Selecionar todas as linhas"})}),e.map((j,_)=>s.jsx(Q,{align:j.align,sortable:!!j.key&&!!b,sorted:j.key&&c===j.key?p:!1,onSort:()=>j.key&&(b==null?void 0:b(j.key)),children:j.label},j.key??`column-${_}`))]})}),s.jsx("tbody",{children:n?s.jsx("tr",{children:s.jsx("td",{colSpan:w,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:s.jsx(N,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:a})})}):t.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:w,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:s.jsx(N,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:o})})}):t.map((j,_)=>{const V=S[_];return s.jsxs("tr",{onClick:f?()=>f(j):void 0,className:g(_%2===0?"bg-neutral-surface-lightest":"bg-white",f&&"cursor-pointer"),children:[l&&s.jsx(re,{align:"center",onClick:I=>I.stopPropagation(),children:s.jsx(D,{checked:C.includes(V),onChange:()=>U(V),"aria-label":"Selecionar linha"})}),e.map((I,G)=>s.jsx(re,{align:I.align,className:I.className,children:Tt(j,I)},I.key??`column-${G}`))]},V)})})]})})}const Ve=T("relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-neutral-surface-lightest font-sans font-medium text-neutral-text-secondary",{variants:{size:{sm:"size-6 text-xs",md:"size-7 text-sm",lg:"size-10 text-base"}},defaultVariants:{size:"md"}});function $t(e){var n;const t=e.trim().split(/\s+/),r=t.length>1?`${t[0][0]}${t[t.length-1][0]}`:(n=t[0])==null?void 0:n.slice(0,2);return r==null?void 0:r.toUpperCase()}const Ht={sm:"caption",md:"bodySm",lg:"body"},oe=y.forwardRef(({className:e,size:t,src:r,alt:n="",name:a,...o},l)=>{const i=t??"md";return s.jsx("span",{ref:l,className:g(Ve({size:t}),e),...o,children:r?s.jsx("img",{src:r,alt:n,className:"size-full object-cover"}):a&&s.jsx(N,{as:"span",variant:Ht[i],weight:"medium",className:"text-inherit leading-none",children:$t(a)})})});oe.displayName="Avatar";function Ft({src:e,name:t,description:r,size:n="md",className:a}){return s.jsxs("div",{className:g("flex min-w-0 items-center gap-2",a),children:[s.jsx(oe,{src:e,name:t,size:n}),s.jsxs("div",{className:"flex min-w-0 flex-col",children:[s.jsx(N,{as:"span",variant:"body",className:"truncate",children:t}),r&&s.jsx(N,{as:"span",variant:"bodySm",className:"truncate text-neutral-text-secondary",children:r})]})]})}const F="ellipsis";function J(e,t){return Array.from({length:t-e+1},(r,n)=>e+n)}function Ut(e,t,r){if(r*2+5>=t)return J(1,t);const a=Math.max(e-r,1),o=Math.min(e+r,t),l=a>2,i=o<t-1;return!l&&i?[...J(1,3+r*2),F,t]:l&&!i?[1,F,...J(t-(2+r*2),t)]:[1,F,...J(a,o),F,t]}function ge({direction:e,className:t}){return s.jsx("svg",{className:g("size-4",t),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:s.jsx("path",{d:e==="left"?"M15 6l-6 6 6 6":"M9 6l6 6-6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}const Le=y.forwardRef(({currentPage:e,totalPages:t,onPageChange:r,siblingCount:n=1,className:a,...o},l)=>{if(t<=1)return null;const i=Ut(e,t,n),d=c=>{c<1||c>t||c===e||r(c)};return s.jsxs("nav",{ref:l,"aria-label":"Paginação",className:g("flex items-center gap-1 font-sans",a),...o,children:[s.jsx("button",{type:"button","aria-label":"Página anterior",disabled:e===1,onClick:()=>d(e-1),className:"inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",children:s.jsx(ge,{direction:"left"})}),i.map((c,p)=>c===F?s.jsx("span",{className:"inline-flex size-9 shrink-0 items-center justify-center text-neutral-text-secondary",children:s.jsx(N,{as:"span",variant:"bodySm",className:"text-inherit",children:"…"})},`ellipsis-${p}`):s.jsx("button",{type:"button","aria-current":c===e?"page":void 0,onClick:()=>d(c),className:g("inline-flex size-9 shrink-0 items-center justify-center rounded-lg transition-colors",c===e?"bg-neutral-surface-selected text-agilys-primary":"text-neutral-text-secondary hover:bg-neutral-surface-lightest"),children:s.jsx(N,{as:"span",variant:"bodySm",weight:"medium",className:"text-inherit",children:c})},c)),s.jsx("button",{type:"button","aria-label":"Próxima página",disabled:e===t,onClick:()=>d(e+1),className:"inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",children:s.jsx(ge,{direction:"right"})})]})});Le.displayName="Pagination";const Pe=T("flex h-11 w-full min-w-0 items-center gap-2 rounded-lg bg-white px-3 shadow-[0px_1px_2px_0px_rgba(0,0,0,0.25)] transition-shadow focus-within:ring-2 focus-within:ring-agilys-primary",{variants:{hasError:{true:"ring-2 ring-danger-60 focus-within:ring-danger-60",false:""}},defaultVariants:{hasError:!1}}),Te=y.forwardRef(({className:e,containerClassName:t,label:r,leftIcon:n,rightIcon:a,bgIcon:o=!1,error:l,disabled:i,id:d,...c},p)=>{const b=y.useId(),f=d??b,z=typeof l=="string"?l:l==null?void 0:l.message,k=!!z,x=`${f}-error`;return s.jsxs("div",{className:g("flex w-full min-w-0 flex-col gap-1.5",t),children:[r&&s.jsx(N,{as:"label",htmlFor:f,variant:"body",className:"text-neutral-text-primary",children:r}),s.jsxs("div",{className:g(Pe({hasError:k}),i&&"pointer-events-none opacity-50"),children:[n&&s.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center text-neutral-secondary [&>svg]:size-full","aria-hidden":"true",children:n}),s.jsx("input",{ref:p,id:f,disabled:i,"aria-invalid":k||void 0,"aria-describedby":k?x:void 0,className:g("w-full min-w-0 flex-1 bg-transparent font-sans text-xs leading-relaxed font-normal text-black placeholder:font-sans placeholder:text-xs placeholder:leading-relaxed placeholder:font-normal placeholder:text-neutral-secondary/60 focus:outline-none disabled:cursor-not-allowed",e),...c}),a&&s.jsx("span",{className:g("flex size-6 shrink-0 items-center justify-center text-neutral-secondary [&>svg]:size-full",o&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:a})]}),k&&s.jsx(N,{as:"span",id:x,role:"alert",variant:"caption",className:"text-danger-60",children:z})]})});Te.displayName="Input";function qt(){return s.jsx("svg",{className:"size-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:s.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const We=y.forwardRef(({open:e,onClose:t,title:r,children:n,footer:a,closeOnBackdropClick:o=!0,showCloseButton:l=!0,className:i,contentClassName:d,...c},p)=>{const b=y.useId(),f=y.useRef(null),[z,k]=y.useState(!1);return y.useEffect(()=>k(!0),[]),y.useEffect(()=>{var w;if(!e)return;const x=document.body.style.overflow;document.body.style.overflow="hidden",(w=f.current)==null||w.focus();const m=C=>{C.key==="Escape"&&t()};return document.addEventListener("keydown",m),()=>{document.body.style.overflow=x,document.removeEventListener("keydown",m)}},[e,t]),!e||!z?null:Ge.createPortal(s.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-black/40 p-4",onClick:o?t:void 0,children:s.jsxs("div",{ref:p,role:"dialog","aria-modal":"true","aria-labelledby":r?b:void 0,onClick:x=>x.stopPropagation(),className:g("relative flex w-full min-w-0 max-w-lg flex-col gap-6 rounded-xl bg-[#fcfcfc] p-6 shadow-[0px_0px_2px_0px_rgba(34,34,34,0.08)] sm:p-8",i),...c,children:[l&&s.jsx("button",{ref:f,type:"button",onClick:t,"aria-label":"Fechar",className:"absolute right-4 top-4 flex size-6 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary sm:right-5 sm:top-5",children:s.jsx(qt,{})}),r&&s.jsx("div",{className:"pr-8",children:s.jsx(N,{as:"h2",id:b,variant:"h4",weight:"medium",className:"text-neutral-text-primary",children:r})}),s.jsx("div",{className:g("max-h-[70vh] min-w-0 overflow-y-auto overflow-x-hidden font-sans text-sm leading-relaxed text-neutral-text-secondary sm:text-base",d),children:n}),a&&s.jsx("div",{className:"flex flex-wrap items-center gap-2.5 pt-1",children:a})]})}),document.body)});We.displayName="Modal";exports.Avatar=oe;exports.AvatarColumn=Ft;exports.Badge=Se;exports.Button=Ce;exports.Card=se;exports.Input=Te;exports.Modal=We;exports.NotificationCard=Ee;exports.Pagination=Le;exports.Table=Bt;exports.TableCell=re;exports.TableCheckbox=D;exports.TableHeadCell=Q;exports.Text=N;exports.avatarVariants=Ve;exports.badgeVariants=_e;exports.buttonVariants=Ne;exports.cardVariants=Me;exports.cn=g;exports.inputVariants=Pe;exports.textVariants=ze;
|
|
2
2
|
//# sourceMappingURL=agilys-design-system.cjs.map
|