@cfcc/design-system 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +167 -171
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime");function te(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(t=te(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function ie(){for(var e,r,t=0,o="",s=arguments.length;t<s;t++)(e=arguments[t])&&(r=te(e))&&(o&&(o+=" "),o+=r);return o}const q="-",ce=e=>{const r=ue(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{const l=a.split(q);return l[0]===""&&l.length!==1&&l.shift(),oe(l,r)||de(a)},getConflictingClassGroupIds:(a,l)=>{const d=t[a]||[];return l&&o[a]?[...d,...o[a]]:d}}},oe=(e,r)=>{var a;if(e.length===0)return r.classGroupId;const t=e[0],o=r.nextPart.get(t),s=o?oe(e.slice(1),o):void 0;if(s)return s;if(r.validators.length===0)return;const n=e.join(q);return(a=r.validators.find(({validator:l})=>l(n)))==null?void 0:a.classGroupId},D=/^\[(.+)\]$/,de=e=>{if(D.test(e)){const r=D.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},ue=e=>{const{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return be(Object.entries(e.classGroups),t).forEach(([n,a])=>{F(a,o,n,r)}),o},F=(e,r,t,o)=>{e.forEach(s=>{if(typeof s=="string"){const n=s===""?r:ee(r,s);n.classGroupId=t;return}if(typeof s=="function"){if(pe(s)){F(s(o),r,t,o);return}r.validators.push({validator:s,classGroupId:t});return}Object.entries(s).forEach(([n,a])=>{F(a,ee(r,n),t,o)})})},ee=(e,r)=>{let t=e;return r.split(q).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},pe=e=>e.isThemeGetter,be=(e,r)=>r?e.map(([t,o])=>{const s=o.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([a,l])=>[r+a,l])):n);return[t,s]}):e,ge=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;const s=(n,a)=>{t.set(n,a),r++,r>e&&(r=0,o=t,t=new Map)};return{get(n){let a=t.get(n);if(a!==void 0)return a;if((a=o.get(n))!==void 0)return s(n,a),a},set(n,a){t.has(n)?t.set(n,a):s(n,a)}}},ne="!",fe=e=>{const{separator:r,experimentalParseClassName:t}=e,o=r.length===1,s=r[0],n=r.length,a=l=>{const d=[];let g=0,f=0,v;for(let b=0;b<l.length;b++){let h=l[b];if(g===0){if(h===s&&(o||l.slice(b,b+n)===r)){d.push(l.slice(f,b)),f=b+n;continue}if(h==="/"){v=b;continue}}h==="["?g++:h==="]"&&g--}const w=d.length===0?l:l.substring(f),k=w.startsWith(ne),C=k?w.substring(1):w,m=v&&v>f?v-f:void 0;return{modifiers:d,hasImportantModifier:k,baseClassName:C,maybePostfixModifierPosition:m}};return t?l=>t({className:l,parseClassName:a}):a},me=e=>{if(e.length<=1)return e;const r=[];let t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},he=e=>({cache:ge(e.cacheSize),parseClassName:fe(e),...ce(e)}),xe=/\s+/,ye=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:s}=r,n=[],a=e.trim().split(xe);let l="";for(let d=a.length-1;d>=0;d-=1){const g=a[d],{modifiers:f,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:k}=t(g);let C=!!k,m=o(C?w.substring(0,k):w);if(!m){if(!C){l=g+(l.length>0?" "+l:l);continue}if(m=o(w),!m){l=g+(l.length>0?" "+l:l);continue}C=!1}const b=me(f).join(":"),h=v?b+ne:b,y=h+m;if(n.includes(y))continue;n.push(y);const G=s(m,C);for(let M=0;M<G.length;++M){const E=G[M];n.push(h+E)}l=g+(l.length>0?" "+l:l)}return l};function ve(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=se(r))&&(o&&(o+=" "),o+=t);return o}const se=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=se(e[o]))&&(t&&(t+=" "),t+=r);return t};function we(e,...r){let t,o,s,n=a;function a(d){const g=r.reduce((f,v)=>v(f),e());return t=he(g),o=t.cache.get,s=t.cache.set,n=l,l(d)}function l(d){const g=o(d);if(g)return g;const f=ye(d,t);return s(d,f),f}return function(){return n(ve.apply(null,arguments))}}const u=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},le=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ce=/^\d+\/\d+$/,ke=new Set(["px","full","screen"]),je=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ze=/\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$/,Ne=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Me=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>S(e)||ke.has(e)||Ce.test(e),N=e=>R(e,"length",Be),S=e=>!!e&&!Number.isNaN(Number(e)),U=e=>R(e,"number",S),L=e=>!!e&&Number.isInteger(Number(e)),Se=e=>e.endsWith("%")&&S(e.slice(0,-1)),i=e=>le.test(e),A=e=>je.test(e),Re=new Set(["length","size","percentage"]),Ge=e=>R(e,Re,ae),Pe=e=>R(e,"position",ae),Le=new Set(["image","url"]),Ie=e=>R(e,Le,We),Ee=e=>R(e,"",Te),I=()=>!0,R=(e,r,t)=>{const o=le.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},Be=e=>ze.test(e)&&!Ne.test(e),ae=()=>!1,Te=e=>Ae.test(e),We=e=>Me.test(e),$e=()=>{const e=u("colors"),r=u("spacing"),t=u("blur"),o=u("brightness"),s=u("borderColor"),n=u("borderRadius"),a=u("borderSpacing"),l=u("borderWidth"),d=u("contrast"),g=u("grayscale"),f=u("hueRotate"),v=u("invert"),w=u("gap"),k=u("gradientColorStops"),C=u("gradientColorStopPositions"),m=u("inset"),b=u("margin"),h=u("opacity"),y=u("padding"),G=u("saturate"),M=u("scale"),E=u("sepia"),H=u("skew"),J=u("space"),X=u("translate"),W=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",i,r],p=()=>[i,r],Z=()=>["",z,N],B=()=>["auto",S,i],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],T=()=>["solid","dashed","dotted","double","none"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",i],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>[S,i];return{cacheSize:500,separator:":",theme:{colors:[I],spacing:[z,N],blur:["none","",A,i],brightness:j(),borderColor:[e],borderRadius:["none","","full",A,i],borderSpacing:p(),borderWidth:Z(),contrast:j(),grayscale:P(),hueRotate:j(),invert:P(),gap:p(),gradientColorStops:[e],gradientColorStopPositions:[Se,N],inset:V(),margin:V(),opacity:j(),padding:p(),saturate:j(),scale:j(),sepia:P(),skew:j(),space:p(),translate:p()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[A]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"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:[...K(),i]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",L,i]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",L,i]}],"grid-cols":[{"grid-cols":[I]}],"col-start-end":[{col:["auto",{span:["full",L,i]},i]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[I]}],"row-start-end":[{row:["auto",{span:[L,i]},i]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"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",i,r]}],"min-w":[{"min-w":[i,r,"min","max","fit"]}],"max-w":[{"max-w":[i,r,"none","full","min","max","fit","prose",{screen:[A]},A]}],h:[{h:[i,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,r,"auto","min","max","fit"]}],"font-size":[{text:["base",A,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",U]}],"font-family":[{font:[I]}],"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",i]}],"line-clamp":[{"line-clamp":["none",S,U]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...T(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,N]}],"underline-offset":[{"underline-offset":["auto",z,i]}],"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:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],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",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),Pe]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ge]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ie]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...T(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:T()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...T()]}],"outline-offset":[{"outline-offset":[z,i]}],"outline-w":[{outline:[z,N]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[z,N]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",A,Ee]}],"shadow-color":[{shadow:[I]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...Q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",A,i]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[v]}],saturate:[{saturate:[G]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[L,i]}],"translate-x":[{"translate-x":[X]}],"translate-y":[{"translate-y":[X]}],"skew-x":[{"skew-x":[H]}],"skew-y":[{"skew-y":[H]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],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",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"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",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[z,N,U]}],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"]}}},Ve=we($e);function x(...e){return Ve(ie(e))}const Oe={primary:"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 focus-visible:ring-blue-500",secondary:"bg-violet-600 text-white hover:bg-violet-700 active:bg-violet-800 focus-visible:ring-violet-500",outline:"border-2 border-blue-600 text-blue-600 bg-transparent hover:bg-blue-50 active:bg-blue-100 focus-visible:ring-blue-500",ghost:"text-gray-700 bg-transparent hover:bg-gray-100 active:bg-gray-200 focus-visible:ring-gray-400",danger:"bg-red-600 text-white hover:bg-red-700 active:bg-red-800 focus-visible:ring-red-500"},Ue={sm:"h-8 px-3 text-sm gap-1.5",md:"h-10 px-4 text-sm gap-2",lg:"h-12 px-6 text-base gap-2"};function _e({variant:e="primary",size:r="md",loading:t=!1,disabled:o,className:s,children:n,...a}){return c.jsxs("button",{className:x("inline-flex items-center justify-center rounded-lg font-medium transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50",Oe[e],Ue[r],s),disabled:o||t,...a,children:[t&&c.jsxs("svg",{className:"animate-spin h-4 w-4 shrink-0",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[c.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),c.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),n]})}const Fe={default:"bg-gray-100 text-gray-700",success:"bg-green-100 text-green-700",warning:"bg-amber-100 text-amber-700",error:"bg-red-100 text-red-700",info:"bg-blue-100 text-blue-700",outline:"border border-gray-300 text-gray-600 bg-transparent"},qe={sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm"};function He({variant:e="default",size:r="md",children:t,className:o}){return c.jsx("span",{className:x("inline-flex items-center gap-1 rounded-full font-medium",Fe[e],qe[r],o),children:t})}const _={none:"",sm:"p-4",md:"p-6",lg:"p-8"};function Je({title:e,description:r,footer:t,children:o,className:s,padding:n="md"}){const a=n!=="none";return c.jsxs("div",{className:x("rounded-xl border border-gray-200 bg-white shadow-sm",s),children:[(e||r)&&c.jsxs("div",{className:x("border-b border-gray-100",_[n]),children:[e&&c.jsx("h3",{className:"text-base font-semibold text-gray-900",children:e}),r&&c.jsx("p",{className:x("text-sm text-gray-500",e&&"mt-1"),children:r})]}),o&&c.jsx("div",{className:x(a&&_[n]),children:o}),t&&c.jsx("div",{className:x("border-t border-gray-100 bg-gray-50 rounded-b-xl",_[n]),children:t})]})}const Xe={sm:"h-8 px-3 text-sm",md:"h-10 px-3.5 text-sm",lg:"h-12 px-4 text-base"};function Ze({label:e,helperText:r,error:t,inputSize:o="md",leadingIcon:s,trailingIcon:n,className:a,id:l,...d}){const g=l??(e==null?void 0:e.toLowerCase().replace(/\s+/g,"-")),f=!!t;return c.jsxs("div",{className:"flex flex-col gap-1.5",children:[e&&c.jsxs("label",{htmlFor:g,className:"text-sm font-medium text-gray-700",children:[e,d.required&&c.jsx("span",{className:"ml-0.5 text-red-500",children:"*"})]}),c.jsxs("div",{className:"relative flex items-center",children:[s&&c.jsx("span",{className:"pointer-events-none absolute left-3 text-gray-400",children:s}),c.jsx("input",{id:g,className:x("w-full rounded-lg border bg-white text-gray-900 transition-colors duration-150","placeholder:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-0","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-500",f?"border-red-400 focus:border-red-400 focus:ring-red-200":"border-gray-300 focus:border-blue-500 focus:ring-blue-200",Xe[o],s&&"pl-10",n&&"pr-10",a),...d}),n&&c.jsx("span",{className:"pointer-events-none absolute right-3 text-gray-400",children:n})]}),(r||t)&&c.jsx("p",{className:x("text-xs",f?"text-red-600":"text-gray-500"),children:t??r})]})}const Ke={info:{container:"bg-blue-50 border-blue-200 text-blue-900",icon:c.jsx("svg",{className:"h-5 w-5 text-blue-500 shrink-0",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:c.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})})},success:{container:"bg-green-50 border-green-200 text-green-900",icon:c.jsx("svg",{className:"h-5 w-5 text-green-500 shrink-0",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:c.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})})},warning:{container:"bg-amber-50 border-amber-200 text-amber-900",icon:c.jsx("svg",{className:"h-5 w-5 text-amber-500 shrink-0",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:c.jsx("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})})},error:{container:"bg-red-50 border-red-200 text-red-900",icon:c.jsx("svg",{className:"h-5 w-5 text-red-500 shrink-0",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:c.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z",clipRule:"evenodd"})})}};function Qe({variant:e="info",title:r,children:t,className:o,onDismiss:s}){const n=Ke[e];return c.jsxs("div",{role:"alert",className:x("flex gap-3 rounded-lg border p-4",n.container,o),children:[n.icon,c.jsxs("div",{className:"flex-1 min-w-0",children:[r&&c.jsx("p",{className:"font-semibold text-sm",children:r}),c.jsx("div",{className:x("text-sm",r&&"mt-1"),children:t})]}),s&&c.jsx("button",{onClick:s,className:"shrink-0 self-start rounded-md p-0.5 opacity-70 hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-current","aria-label":"Dismiss",children:c.jsx("svg",{className:"h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:c.jsx("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})})})]})}const Ye={xs:{container:"h-6 w-6",text:"text-xs"},sm:{container:"h-8 w-8",text:"text-xs"},md:{container:"h-10 w-10",text:"text-sm"},lg:{container:"h-12 w-12",text:"text-base"},xl:{container:"h-16 w-16",text:"text-xl"}},re=["bg-blue-500","bg-violet-500","bg-teal-500","bg-rose-500","bg-amber-500","bg-emerald-500","bg-indigo-500","bg-pink-500"];function De(e){return e.split(" ").slice(0,2).map(r=>{var t;return((t=r[0])==null?void 0:t.toUpperCase())??""}).join("")}function er(e){const r=e.charCodeAt(0)%re.length;return re[r]}function rr({src:e,alt:r,name:t,size:o="md",className:s}){const{container:n,text:a}=Ye[o],l=t?De(t):"?",d=t?er(t):"bg-gray-400";return c.jsx("span",{className:x("inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full",n,s),children:e?c.jsx("img",{src:e,alt:r??t??"Avatar",className:"h-full w-full object-cover"}):c.jsx("span",{className:x("flex h-full w-full items-center justify-center font-semibold text-white",d,a),"aria-label":t??"User avatar",children:l})})}exports.Alert=Qe;exports.Avatar=rr;exports.Badge=He;exports.Button=_e;exports.Card=Je;exports.Input=Ze;exports.cn=x;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime");function te(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(t=te(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function le(){for(var e,r,t=0,o="",s=arguments.length;t<s;t++)(e=arguments[t])&&(r=te(e))&&(o&&(o+=" "),o+=r);return o}const q="-",ce=e=>{const r=ue(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const a=i.split(q);return a[0]===""&&a.length!==1&&a.shift(),oe(a,r)||de(i)},getConflictingClassGroupIds:(i,a)=>{const d=t[i]||[];return a&&o[i]?[...d,...o[i]]:d}}},oe=(e,r)=>{var i;if(e.length===0)return r.classGroupId;const t=e[0],o=r.nextPart.get(t),s=o?oe(e.slice(1),o):void 0;if(s)return s;if(r.validators.length===0)return;const n=e.join(q);return(i=r.validators.find(({validator:a})=>a(n)))==null?void 0:i.classGroupId},D=/^\[(.+)\]$/,de=e=>{if(D.test(e)){const r=D.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},ue=e=>{const{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return be(Object.entries(e.classGroups),t).forEach(([n,i])=>{F(i,o,n,r)}),o},F=(e,r,t,o)=>{e.forEach(s=>{if(typeof s=="string"){const n=s===""?r:ee(r,s);n.classGroupId=t;return}if(typeof s=="function"){if(pe(s)){F(s(o),r,t,o);return}r.validators.push({validator:s,classGroupId:t});return}Object.entries(s).forEach(([n,i])=>{F(i,ee(r,n),t,o)})})},ee=(e,r)=>{let t=e;return r.split(q).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},pe=e=>e.isThemeGetter,be=(e,r)=>r?e.map(([t,o])=>{const s=o.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,a])=>[r+i,a])):n);return[t,s]}):e,ge=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;const s=(n,i)=>{t.set(n,i),r++,r>e&&(r=0,o=t,t=new Map)};return{get(n){let i=t.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return s(n,i),i},set(n,i){t.has(n)?t.set(n,i):s(n,i)}}},ne="!",fe=e=>{const{separator:r,experimentalParseClassName:t}=e,o=r.length===1,s=r[0],n=r.length,i=a=>{const d=[];let g=0,f=0,v;for(let b=0;b<a.length;b++){let h=a[b];if(g===0){if(h===s&&(o||a.slice(b,b+n)===r)){d.push(a.slice(f,b)),f=b+n;continue}if(h==="/"){v=b;continue}}h==="["?g++:h==="]"&&g--}const w=d.length===0?a:a.substring(f),C=w.startsWith(ne),k=C?w.substring(1):w,m=v&&v>f?v-f:void 0;return{modifiers:d,hasImportantModifier:C,baseClassName:k,maybePostfixModifierPosition:m}};return t?a=>t({className:a,parseClassName:i}):i},me=e=>{if(e.length<=1)return e;const r=[];let t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},he=e=>({cache:ge(e.cacheSize),parseClassName:fe(e),...ce(e)}),xe=/\s+/,ye=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:s}=r,n=[],i=e.trim().split(xe);let a="";for(let d=i.length-1;d>=0;d-=1){const g=i[d],{modifiers:f,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:C}=t(g);let k=!!C,m=o(k?w.substring(0,C):w);if(!m){if(!k){a=g+(a.length>0?" "+a:a);continue}if(m=o(w),!m){a=g+(a.length>0?" "+a:a);continue}k=!1}const b=me(f).join(":"),h=v?b+ne:b,y=h+m;if(n.includes(y))continue;n.push(y);const G=s(m,k);for(let M=0;M<G.length;++M){const E=G[M];n.push(h+E)}a=g+(a.length>0?" "+a:a)}return a};function ve(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=se(r))&&(o&&(o+=" "),o+=t);return o}const se=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=se(e[o]))&&(t&&(t+=" "),t+=r);return t};function we(e,...r){let t,o,s,n=i;function i(d){const g=r.reduce((f,v)=>v(f),e());return t=he(g),o=t.cache.get,s=t.cache.set,n=a,a(d)}function a(d){const g=o(d);if(g)return g;const f=ye(d,t);return s(d,f),f}return function(){return n(ve.apply(null,arguments))}}const u=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},ae=/^\[(?:([a-z-]+):)?(.+)\]$/i,ke=/^\d+\/\d+$/,Ce=new Set(["px","full","screen"]),je=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ze=/\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$/,Ne=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Me=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>S(e)||Ce.has(e)||ke.test(e),N=e=>R(e,"length",Be),S=e=>!!e&&!Number.isNaN(Number(e)),U=e=>R(e,"number",S),L=e=>!!e&&Number.isInteger(Number(e)),Se=e=>e.endsWith("%")&&S(e.slice(0,-1)),l=e=>ae.test(e),A=e=>je.test(e),Re=new Set(["length","size","percentage"]),Ge=e=>R(e,Re,ie),Pe=e=>R(e,"position",ie),Le=new Set(["image","url"]),Ie=e=>R(e,Le,We),Ee=e=>R(e,"",Te),I=()=>!0,R=(e,r,t)=>{const o=ae.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},Be=e=>ze.test(e)&&!Ne.test(e),ie=()=>!1,Te=e=>Ae.test(e),We=e=>Me.test(e),$e=()=>{const e=u("colors"),r=u("spacing"),t=u("blur"),o=u("brightness"),s=u("borderColor"),n=u("borderRadius"),i=u("borderSpacing"),a=u("borderWidth"),d=u("contrast"),g=u("grayscale"),f=u("hueRotate"),v=u("invert"),w=u("gap"),C=u("gradientColorStops"),k=u("gradientColorStopPositions"),m=u("inset"),b=u("margin"),h=u("opacity"),y=u("padding"),G=u("saturate"),M=u("scale"),E=u("sepia"),H=u("skew"),J=u("space"),X=u("translate"),W=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",l,r],p=()=>[l,r],Z=()=>["",z,N],B=()=>["auto",S,l],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],T=()=>["solid","dashed","dotted","double","none"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",l],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>[S,l];return{cacheSize:500,separator:":",theme:{colors:[I],spacing:[z,N],blur:["none","",A,l],brightness:j(),borderColor:[e],borderRadius:["none","","full",A,l],borderSpacing:p(),borderWidth:Z(),contrast:j(),grayscale:P(),hueRotate:j(),invert:P(),gap:p(),gradientColorStops:[e],gradientColorStopPositions:[Se,N],inset:V(),margin:V(),opacity:j(),padding:p(),saturate:j(),scale:j(),sepia:P(),skew:j(),space:p(),translate:p()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[A]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"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:[...K(),l]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",L,l]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",L,l]}],"grid-cols":[{"grid-cols":[I]}],"col-start-end":[{col:["auto",{span:["full",L,l]},l]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[I]}],"row-start-end":[{row:["auto",{span:[L,l]},l]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"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",l,r]}],"min-w":[{"min-w":[l,r,"min","max","fit"]}],"max-w":[{"max-w":[l,r,"none","full","min","max","fit","prose",{screen:[A]},A]}],h:[{h:[l,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,r,"auto","min","max","fit"]}],"font-size":[{text:["base",A,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",U]}],"font-family":[{font:[I]}],"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",l]}],"line-clamp":[{"line-clamp":["none",S,U]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...T(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,N]}],"underline-offset":[{"underline-offset":["auto",z,l]}],"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:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],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",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),Pe]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ge]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ie]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...T(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:T()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...T()]}],"outline-offset":[{"outline-offset":[z,l]}],"outline-w":[{outline:[z,N]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[z,N]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",A,Ee]}],"shadow-color":[{shadow:[I]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...Q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",A,l]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[v]}],saturate:[{saturate:[G]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[L,l]}],"translate-x":[{"translate-x":[X]}],"translate-y":[{"translate-y":[X]}],"skew-x":[{"skew-x":[H]}],"skew-y":[{"skew-y":[H]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],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",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"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",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[z,N,U]}],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"]}}},Ve=we($e);function x(...e){return Ve(le(e))}const Oe={primary:"bg-primary text-white hover:bg-primary-strong active:bg-primary-strong focus-visible:ring-primary",secondary:"bg-surface2 text-fg border border-line hover:border-primary hover:text-primary focus-visible:ring-primary",outline:"border border-primary text-primary bg-transparent hover:bg-primary-weak active:bg-primary-weak focus-visible:ring-primary",ghost:"bg-transparent text-muted hover:bg-surface2 hover:text-fg focus-visible:ring-primary",danger:"bg-danger text-white hover:opacity-90 active:opacity-100 focus-visible:ring-danger"},Ue={sm:"h-9 px-3.5 text-[13px] gap-1.5",md:"h-10 px-[18px] text-sm gap-2",lg:"h-12 px-6 text-base gap-2"};function _e({variant:e="primary",size:r="md",loading:t=!1,disabled:o,className:s,children:n,...i}){return c.jsxs("button",{className:x("inline-flex items-center justify-center rounded-pill font-bold leading-none transition-all duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-surface","disabled:pointer-events-none disabled:opacity-50",Oe[e],Ue[r],s),disabled:o||t,...i,children:[t&&c.jsxs("svg",{className:"animate-spin h-4 w-4 shrink-0",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[c.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),c.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),n]})}const Fe={default:"bg-surface2 text-muted border border-line",info:"bg-primary-weak text-primary",success:"bg-green-100 text-green-700 dark:bg-green-900/35 dark:text-green-300",warning:"bg-amber-100 text-amber-700 dark:bg-amber-900/35 dark:text-amber-300",error:"bg-red-100 text-red-700 dark:bg-red-900/35 dark:text-red-300",outline:"border border-line text-muted bg-transparent"},qe={sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-[13px]"};function He({variant:e="default",size:r="md",children:t,className:o}){return c.jsx("span",{className:x("inline-flex items-center gap-1 rounded-badge font-bold leading-none",Fe[e],qe[r],o),children:t})}const _={none:"",sm:"p-4",md:"p-6",lg:"p-8"};function Je({title:e,description:r,footer:t,children:o,className:s,padding:n="md"}){const i=n!=="none";return c.jsxs("div",{className:x("rounded-card border border-line bg-surface text-fg shadow-card",s),children:[(e||r)&&c.jsxs("div",{className:x("border-b border-line2",_[n]),children:[e&&c.jsx("h3",{className:"text-base font-bold tracking-[-0.2px] text-fg",children:e}),r&&c.jsx("p",{className:x("text-sm text-muted",e&&"mt-1"),children:r})]}),o&&c.jsx("div",{className:x(i&&_[n]),children:o}),t&&c.jsx("div",{className:x("rounded-b-card border-t border-line2 bg-surface2",_[n]),children:t})]})}const Xe={sm:"h-8 px-3 text-sm",md:"h-10 px-3.5 text-sm",lg:"h-12 px-4 text-base"};function Ze({label:e,helperText:r,error:t,inputSize:o="md",leadingIcon:s,trailingIcon:n,className:i,id:a,...d}){const g=a??(e==null?void 0:e.toLowerCase().replace(/\s+/g,"-")),f=!!t;return c.jsxs("div",{className:"flex flex-col gap-1.5",children:[e&&c.jsxs("label",{htmlFor:g,className:"text-[13px] font-bold text-fg",children:[e,d.required&&c.jsx("span",{className:"ml-0.5 text-danger",children:"*"})]}),c.jsxs("div",{className:"relative flex items-center",children:[s&&c.jsx("span",{className:"pointer-events-none absolute left-3 text-faint",children:s}),c.jsx("input",{id:g,className:x("w-full rounded-field border bg-surface text-fg transition-colors duration-150","placeholder:text-faint","focus:outline-none focus:ring-2 focus:ring-offset-0","disabled:cursor-not-allowed disabled:bg-surface2 disabled:text-muted",f?"border-danger focus:border-danger focus:ring-red-200":"border-line focus:border-primary focus:ring-primary-weak",Xe[o],s&&"pl-10",n&&"pr-10",i),...d}),n&&c.jsx("span",{className:"pointer-events-none absolute right-3 text-faint",children:n})]}),(r||t)&&c.jsx("p",{className:x("text-xs",f?"text-danger":"text-muted"),children:t??r})]})}const Ke={info:{container:"bg-primary-weak border-line text-fg",icon:c.jsx("svg",{className:"h-5 w-5 text-primary shrink-0",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:c.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})})},success:{container:"bg-green-50 border-green-200 text-green-900 dark:bg-green-950/40 dark:border-green-900 dark:text-green-200",icon:c.jsx("svg",{className:"h-5 w-5 text-green-500 shrink-0",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:c.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})})},warning:{container:"bg-amber-50 border-amber-200 text-amber-900 dark:bg-amber-950/40 dark:border-amber-900 dark:text-amber-200",icon:c.jsx("svg",{className:"h-5 w-5 text-amber-500 shrink-0",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:c.jsx("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})})},error:{container:"bg-red-50 border-red-200 text-red-900 dark:bg-red-950/40 dark:border-red-900 dark:text-red-200",icon:c.jsx("svg",{className:"h-5 w-5 text-red-500 shrink-0",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:c.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z",clipRule:"evenodd"})})}};function Qe({variant:e="info",title:r,children:t,className:o,onDismiss:s}){const n=Ke[e];return c.jsxs("div",{role:"alert",className:x("flex gap-3 rounded-field border p-4",n.container,o),children:[n.icon,c.jsxs("div",{className:"flex-1 min-w-0",children:[r&&c.jsx("p",{className:"font-bold text-sm",children:r}),c.jsx("div",{className:x("text-sm",r&&"mt-1"),children:t})]}),s&&c.jsx("button",{onClick:s,className:"shrink-0 self-start rounded-md p-0.5 opacity-70 hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-current","aria-label":"Dismiss",children:c.jsx("svg",{className:"h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:c.jsx("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})})})]})}const Ye={xs:{container:"h-6 w-6",text:"text-xs"},sm:{container:"h-8 w-8",text:"text-xs"},md:{container:"h-10 w-10",text:"text-sm"},lg:{container:"h-12 w-12",text:"text-base"},xl:{container:"h-16 w-16",text:"text-xl"}},re=["bg-blue-500","bg-violet-500","bg-teal-500","bg-rose-500","bg-amber-500","bg-emerald-500","bg-indigo-500","bg-pink-500"];function De(e){return e.split(" ").slice(0,2).map(r=>{var t;return((t=r[0])==null?void 0:t.toUpperCase())??""}).join("")}function er(e){const r=e.charCodeAt(0)%re.length;return re[r]}function rr({src:e,alt:r,name:t,size:o="md",className:s}){const{container:n,text:i}=Ye[o],a=t?De(t):"?",d=t?er(t):"bg-faint";return c.jsx("span",{className:x("inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full",n,s),children:e?c.jsx("img",{src:e,alt:r??t??"Avatar",className:"h-full w-full object-cover"}):c.jsx("span",{className:x("flex h-full w-full items-center justify-center font-semibold text-white",d,i),"aria-label":t??"User avatar",children:a})})}exports.Alert=Qe;exports.Avatar=rr;exports.Badge=He;exports.Button=_e;exports.Card=Je;exports.Input=Ze;exports.cn=x;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|