@agilys-system/design-system 1.0.8 → 1.0.9
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/README.md +1 -1
- package/dist/agilys-design-system.cjs +1 -1
- package/dist/agilys-design-system.cjs.map +1 -1
- package/dist/agilys-design-system.js +296 -229
- package/dist/agilys-design-system.js.map +1 -1
- package/dist/index.d.ts +13 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ export default {
|
|
|
53
53
|
| `Modal` | [docs/modal.md](./docs/modal.md) |
|
|
54
54
|
| `Pagination` | [docs/pagination.md](./docs/pagination.md) |
|
|
55
55
|
| `Table` | [docs/table.md](./docs/table.md) |
|
|
56
|
-
| `
|
|
56
|
+
| `Text` | [docs/text.md](./docs/text.md) |
|
|
57
57
|
|
|
58
58
|
Consulte a pasta [`docs/`](./docs) para o manual de integração de cada componente.
|
|
59
59
|
|
|
@@ -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("inline-flex items-center justify-center h-6 font-sans text-sm font-normal leading-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"}}),ct={default:"bg-agilys-primary",success:"bg-success-60",alert:"bg-warning-accent",error:"bg-danger-60"},ke=C.forwardRef(({className:e,variant:t="filled",status:r="default",children:n,...a},o)=>s.jsxs("span",{ref:o,className:x(we({variant:t,status:r}),e),...a,children:[t==="dot"&&s.jsx("span",{className:x("size-2 shrink-0 rounded-full",ct[r??"default"]),"aria-hidden":"true"}),n]}));ke.displayName="Badge";const je=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"}}),dt={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??dt[t??"body"];return C.createElement(i,{ref:l,className:x(je({variant:t,weight:r}),e),...o},a)});z.displayName="Typography";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("span",{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("label",{htmlFor:b,className:"font-sans text-sm font-normal leading-6 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("span",{id:g,role:"alert",className:"font-sans text-xs leading-normal 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=ke;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.Typography=z;exports.avatarVariants=Ce;exports.badgeVariants=we;exports.buttonVariants=ye;exports.cn=x;exports.inputVariants=_e;exports.typographyVariants=je;
|
|
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;
|
|
2
2
|
//# sourceMappingURL=agilys-design-system.cjs.map
|