@fabio.caffarello/react-design-system 1.10.5 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ "use strict";var fe=Object.defineProperty;var he=(a,t,r)=>t in a?fe(a,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[t]=r;var U=(a,t,r)=>he(a,typeof t!="symbol"?t+"":t,r);const N={icon:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"},text:{xs:"text-xs",sm:"text-sm",base:"text-base"},spacing:{itemPaddingX:"px-4",itemPaddingY:"py-2",nestedIndent:"pl-6",nestedIndentLevel2:"pl-10",nestedIndentLevel3:"pl-14",groupTitlePadding:"px-4 py-2",iconMargin:"mr-3"},colors:{active:{bg:"bg-indigo-50",text:"text-indigo-700",border:"border-indigo-600"},inactive:{text:"text-gray-700",hover:"hover:bg-gray-100 hover:text-gray-900"},groupTitle:"text-gray-500"},chevron:{size:"h-3 w-3",color:"text-gray-400"},navigation:{width:{default:"56px",compact:"48px",expanded:"200px"},background:{default:"#fafafa",hover:"#f5f5f5"}},split:{transition:"transition-all duration-300",collapsedWidth:"0px"},content:{scrollbar:{width:"thin",color:{thumb:"#cbd5e1",track:"#f1f5f9"}}}};function pe(a){return a<=0?N.spacing.itemPaddingX:a===1?N.spacing.nestedIndent:a===2?N.spacing.nestedIndentLevel2:a===3?N.spacing.nestedIndentLevel3:`pl-${4+a*4}`}class d{static create(t){const r=t*this.BASE_UNIT,i=r/16;return{value:r,rem:`${i}rem`,px:`${r}px`,tailwind:this.getTailwindClass(t)}}static getTailwindClass(t){return{0:"0",.5:"0.5",1:"1",1.5:"1.5",2:"2",2.5:"2.5",3:"3",3.5:"3.5",4:"4",5:"5",6:"6",8:"8",10:"10",12:"12",16:"16",20:"20",24:"24",32:"32",40:"40",48:"48",64:"64",80:"80",96:"96"}[t]||String(t)}}U(d,"BASE_UNIT",4);const M={none:d.create(0),"0.5":d.create(.5),xs:d.create(1),"1.5":d.create(1.5),sm:d.create(2),"2.5":d.create(2.5),md:d.create(3),"3.5":d.create(3.5),base:d.create(4),lg:d.create(6),xl:d.create(8),"2xl":d.create(10),"3xl":d.create(12),"4xl":d.create(16),"5xl":d.create(20),"6xl":d.create(24)};function ue(a){return M[a]}function we(a,t="p"){const i=M[a].tailwind;return`${{p:"p",m:"m",px:"px",mx:"mx",py:"py",my:"my",pt:"pt",mt:"mt",pr:"pr",mr:"mr",pb:"pb",mb:"mb",pl:"pl",ml:"ml",gap:"gap","gap-x":"gap-x","gap-y":"gap-y","space-y":"space-y"}[t]}-${i}`}class c{static createFontSize(t){const i={"2xs":{px:10,tailwind:"text-2xs"},xs:{px:12,tailwind:"text-xs"},sm:{px:14,tailwind:"text-sm"},base:{px:16,tailwind:"text-base"},lg:{px:18,tailwind:"text-lg"},xl:{px:20,tailwind:"text-xl"},"2xl":{px:24,tailwind:"text-2xl"},"3xl":{px:30,tailwind:"text-3xl"},"4xl":{px:36,tailwind:"text-4xl"},"5xl":{px:48,tailwind:"text-5xl"},"6xl":{px:60,tailwind:"text-6xl"}}[t];return{value:i.px,rem:`${i.px/16}rem`,px:`${i.px}px`,tailwind:i.tailwind}}static createLineHeight(t){const i={none:{value:1,tailwind:"leading-none"},tight:{value:1.25,tailwind:"leading-tight"},snug:{value:1.375,tailwind:"leading-snug"},normal:{value:1.5,tailwind:"leading-normal"},relaxed:{value:1.625,tailwind:"leading-relaxed"},loose:{value:2,tailwind:"leading-loose"}}[t];return{value:i.value,tailwind:i.tailwind}}static createFontWeight(t){const i={light:{value:300,tailwind:"font-light"},normal:{value:400,tailwind:"font-normal"},medium:{value:500,tailwind:"font-medium"},semibold:{value:600,tailwind:"font-semibold"},bold:{value:700,tailwind:"font-bold"}}[t];return{value:i.value,tailwind:i.tailwind}}static create(t,r="normal",i="normal"){return{fontSize:this.createFontSize(t),lineHeight:this.createLineHeight(r),fontWeight:this.createFontWeight(i)}}}const be={sans:{name:"sans",stack:'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',tailwind:"font-sans"},serif:{name:"serif",stack:'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',tailwind:"font-serif"},mono:{name:"mono",stack:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',tailwind:"font-mono"}},xe={light:c.createFontWeight("light"),normal:c.createFontWeight("normal"),medium:c.createFontWeight("medium"),semibold:c.createFontWeight("semibold"),bold:c.createFontWeight("bold")},O={h1:c.create("4xl","tight","bold"),h2:c.create("3xl","tight","bold"),h3:c.create("2xl","snug","semibold"),h4:c.create("xl","snug","semibold"),h5:c.create("lg","normal","medium"),h6:c.create("base","normal","medium"),body:c.create("base","relaxed","normal"),bodySmall:c.create("sm","relaxed","normal"),bodyLarge:c.create("lg","relaxed","normal"),label:c.create("sm","normal","medium"),caption:c.create("xs","normal","normal"),button:c.create("base","normal","medium")};function me(a){return O[a]}function ye(a){const t=O[a];return`${t.fontSize.tailwind} ${t.lineHeight.tailwind} ${t.fontWeight.tailwind}`}function ke(a){return O[a].fontSize.tailwind}function Te(a){return c.createFontSize(a).tailwind}function Se(a){return O[a].fontWeight.tailwind}function Ee(a){return c.createFontWeight(a).tailwind}function ve(a){return O[a].lineHeight.tailwind}const Ce=[50,100,200,300,400,500,600,700,800,900,950];function e(a,t,r){const i=Fe(a),n=Ae(a);return{hex:a,rgb:i,hsl:n,cssVar:`var(--color-${t}-${r})`,tailwind:`${t}-${r}`}}function Fe(a){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return t?`${parseInt(t[1],16)}, ${parseInt(t[2],16)}, ${parseInt(t[3],16)}`:"0, 0, 0"}function Ae(a){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);if(!t)return"0, 0%, 0%";const r=parseInt(t[1],16)/255,i=parseInt(t[2],16)/255,n=parseInt(t[3],16)/255,o=Math.max(r,i,n),s=Math.min(r,i,n);let l=0,_=0;const w=(o+s)/2;if(o!==s){const m=o-s;switch(_=w>.5?m/(2-o-s):m/(o+s),o){case r:l=((i-n)/m+(i<n?6:0))/6;break;case i:l=((n-r)/m+2)/6;break;case n:l=((r-i)/m+4)/6;break}}return`${Math.round(l*360)}, ${Math.round(_*100)}%, ${Math.round(w*100)}%`}const k={50:e("#eef2ff","indigo",50),100:e("#e0e7ff","indigo",100),200:e("#c7d2fe","indigo",200),300:e("#a5b4fc","indigo",300),400:e("#818cf8","indigo",400),500:e("#6366f1","indigo",500),600:e("#4f46e5","indigo",600),700:e("#4338ca","indigo",700),800:e("#3730a3","indigo",800),900:e("#312e81","indigo",900),950:e("#1e1b4b","indigo",950)},T={50:e("#f5f3ff","violet",50),100:e("#ede9fe","violet",100),200:e("#ddd6fe","violet",200),300:e("#c4b5fd","violet",300),400:e("#a78bfa","violet",400),500:e("#8b5cf6","violet",500),600:e("#7c3aed","violet",600),700:e("#6d28d9","violet",700),800:e("#5b21b6","violet",800),900:e("#4c1d95","violet",900),950:e("#2e1065","violet",950)},S={50:e("#ecfeff","cyan",50),100:e("#cffafe","cyan",100),200:e("#a5f3fc","cyan",200),300:e("#67e8f9","cyan",300),400:e("#22d3ee","cyan",400),500:e("#06b6d4","cyan",500),600:e("#0891b2","cyan",600),700:e("#0e7490","cyan",700),800:e("#155e75","cyan",800),900:e("#164e63","cyan",900),950:e("#083344","cyan",950)},E={50:e("#f8fafc","slate",50),100:e("#f1f5f9","slate",100),200:e("#e2e8f0","slate",200),300:e("#cbd5e1","slate",300),400:e("#94a3b8","slate",400),500:e("#64748b","slate",500),600:e("#475569","slate",600),700:e("#334155","slate",700),800:e("#1e293b","slate",800),900:e("#0f172a","slate",900),950:e("#020617","slate",950)},X={50:e("#f9fafb","gray",50),100:e("#f3f4f6","gray",100),200:e("#e5e7eb","gray",200),300:e("#d1d5db","gray",300),400:e("#9ca3af","gray",400),500:e("#6b7280","gray",500),600:e("#4b5563","gray",600),700:e("#374151","gray",700),800:e("#1f2937","gray",800),900:e("#111827","gray",900),950:e("#030712","gray",950)},v={50:e("#ecfdf5","emerald",50),100:e("#d1fae5","emerald",100),200:e("#a7f3d0","emerald",200),300:e("#6ee7b7","emerald",300),400:e("#34d399","emerald",400),500:e("#10b981","emerald",500),600:e("#059669","emerald",600),700:e("#047857","emerald",700),800:e("#065f46","emerald",800),900:e("#064e3b","emerald",900),950:e("#022c22","emerald",950)},j={50:e("#f0fdf4","green",50),100:e("#dcfce7","green",100),200:e("#bbf7d0","green",200),300:e("#86efac","green",300),400:e("#4ade80","green",400),500:e("#22c55e","green",500),600:e("#16a34a","green",600),700:e("#15803d","green",700),800:e("#166534","green",800),900:e("#14532d","green",900),950:e("#052e16","green",950)},C={50:e("#fffbeb","amber",50),100:e("#fef3c7","amber",100),200:e("#fde68a","amber",200),300:e("#fcd34d","amber",300),400:e("#fbbf24","amber",400),500:e("#f59e0b","amber",500),600:e("#d97706","amber",600),700:e("#b45309","amber",700),800:e("#92400e","amber",800),900:e("#78350f","amber",900),950:e("#451a03","amber",950)},Q={50:e("#fefce8","yellow",50),100:e("#fef9c3","yellow",100),200:e("#fef08a","yellow",200),300:e("#fde047","yellow",300),400:e("#facc15","yellow",400),500:e("#eab308","yellow",500),600:e("#ca8a04","yellow",600),700:e("#a16207","yellow",700),800:e("#854d0e","yellow",800),900:e("#713f12","yellow",900),950:e("#422006","yellow",950)},J={50:e("#fff7ed","orange",50),100:e("#ffedd5","orange",100),200:e("#fed7aa","orange",200),300:e("#fdba74","orange",300),400:e("#fb923c","orange",400),500:e("#f97316","orange",500),600:e("#ea580c","orange",600),700:e("#c2410c","orange",700),800:e("#9a3412","orange",800),900:e("#7c2d12","orange",900),950:e("#431407","orange",950)},F={50:e("#fff1f2","rose",50),100:e("#ffe4e6","rose",100),200:e("#fecdd3","rose",200),300:e("#fda4af","rose",300),400:e("#fb7185","rose",400),500:e("#f43f5e","rose",500),600:e("#e11d48","rose",600),700:e("#be123c","rose",700),800:e("#9f1239","rose",800),900:e("#881337","rose",900),950:e("#4c0519","rose",950)},ee={50:e("#fef2f2","red",50),100:e("#fee2e2","red",100),200:e("#fecaca","red",200),300:e("#fca5a5","red",300),400:e("#f87171","red",400),500:e("#ef4444","red",500),600:e("#dc2626","red",600),700:e("#b91c1c","red",700),800:e("#991b1b","red",800),900:e("#7f1d1d","red",900),950:e("#450a0a","red",950)},A={50:e("#f0f9ff","sky",50),100:e("#e0f2fe","sky",100),200:e("#bae6fd","sky",200),300:e("#7dd3fc","sky",300),400:e("#38bdf8","sky",400),500:e("#0ea5e9","sky",500),600:e("#0284c7","sky",600),700:e("#0369a1","sky",700),800:e("#075985","sky",800),900:e("#0c4a6e","sky",900),950:e("#082f49","sky",950)},te={50:e("#eff6ff","blue",50),100:e("#dbeafe","blue",100),200:e("#bfdbfe","blue",200),300:e("#93c5fd","blue",300),400:e("#60a5fa","blue",400),500:e("#3b82f6","blue",500),600:e("#2563eb","blue",600),700:e("#1d4ed8","blue",700),800:e("#1e40af","blue",800),900:e("#1e3a8a","blue",900),950:e("#172554","blue",950)},ae={50:e("#fdf4ff","fuchsia",50),100:e("#fae8ff","fuchsia",100),200:e("#f5d0fe","fuchsia",200),300:e("#f0abfc","fuchsia",300),400:e("#e879f9","fuchsia",400),500:e("#d946ef","fuchsia",500),600:e("#c026d3","fuchsia",600),700:e("#a21caf","fuchsia",700),800:e("#86198f","fuchsia",800),900:e("#701a75","fuchsia",900),950:e("#4a044e","fuchsia",950)},re={50:e("#fdf2f8","pink",50),100:e("#fce7f3","pink",100),200:e("#fbcfe8","pink",200),300:e("#f9a8d4","pink",300),400:e("#f472b6","pink",400),500:e("#ec4899","pink",500),600:e("#db2777","pink",600),700:e("#be185d","pink",700),800:e("#9d174d","pink",800),900:e("#831843","pink",900),950:e("#500724","pink",950)},ie={50:e("#faf5ff","purple",50),100:e("#f3e8ff","purple",100),200:e("#e9d5ff","purple",200),300:e("#d8b4fe","purple",300),400:e("#c084fc","purple",400),500:e("#a855f7","purple",500),600:e("#9333ea","purple",600),700:e("#7e22ce","purple",700),800:e("#6b21a8","purple",800),900:e("#581c87","purple",900),950:e("#3b0764","purple",950)},ne={50:e("#f0fdfa","teal",50),100:e("#ccfbf1","teal",100),200:e("#99f6e4","teal",200),300:e("#5eead4","teal",300),400:e("#2dd4bf","teal",400),500:e("#14b8a6","teal",500),600:e("#0d9488","teal",600),700:e("#0f766e","teal",700),800:e("#115e59","teal",800),900:e("#134e4a","teal",900),950:e("#042f2e","teal",950)},oe={50:e("#f7fee7","lime",50),100:e("#ecfccb","lime",100),200:e("#d9f99d","lime",200),300:e("#bef264","lime",300),400:e("#a3e635","lime",400),500:e("#84cc16","lime",500),600:e("#65a30d","lime",600),700:e("#4d7c0f","lime",700),800:e("#3f6212","lime",800),900:e("#365314","lime",900),950:e("#1a2e05","lime",950)},H={indigo:k,violet:T,cyan:S,slate:E,gray:X,emerald:v,green:j,amber:C,yellow:Q,orange:J,rose:F,red:ee,sky:A,blue:te,fuchsia:ae,pink:re,purple:ie,teal:ne,lime:oe};function $(a,t){return H[a][t]}function Oe(a){return H[a]}const K={primary:{light:k[400],DEFAULT:k[500],dark:k[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},secondary:{light:T[400],DEFAULT:T[500],dark:T[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},accent:{light:S[400],DEFAULT:S[500],dark:S[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},success:{light:v[400],DEFAULT:v[500],dark:v[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},warning:{light:C[400],DEFAULT:C[500],dark:C[600],contrast:{hex:"#000000",rgb:"0, 0, 0",hsl:"0, 0%, 0%",cssVar:"var(--color-black)",tailwind:"black"}},error:{light:F[400],DEFAULT:F[500],dark:F[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},info:{light:A[400],DEFAULT:A[500],dark:A[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},neutral:{light:E[100],DEFAULT:E[500],dark:E[700],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}}},V={primary:{light:k[500],DEFAULT:k[400],dark:k[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},secondary:{light:T[500],DEFAULT:T[400],dark:T[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},accent:{light:S[500],DEFAULT:S[400],dark:S[300],contrast:{hex:"#000000",rgb:"0, 0, 0",hsl:"0, 0%, 0%",cssVar:"var(--color-black)",tailwind:"black"}},success:{light:v[500],DEFAULT:v[400],dark:v[300],contrast:{hex:"#000000",rgb:"0, 0, 0",hsl:"0, 0%, 0%",cssVar:"var(--color-black)",tailwind:"black"}},warning:{light:C[500],DEFAULT:C[400],dark:C[300],contrast:{hex:"#000000",rgb:"0, 0, 0",hsl:"0, 0%, 0%",cssVar:"var(--color-black)",tailwind:"black"}},error:{light:F[500],DEFAULT:F[400],dark:F[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},info:{light:A[500],DEFAULT:A[400],dark:A[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},neutral:{light:E[700],DEFAULT:E[400],dark:E[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}}},Le=K;function R(a,t="DEFAULT",r="light"){return(r==="dark"?V:K)[a][t]}function Ie(a,t="light"){return(t==="dark"?V:K)[a]}function $e(a,t,r={}){const{format:i="hex",opacity:n}=r,o=$(a,t);let s;switch(i){case"rgb":s=n!==void 0?`rgba(${o.rgb}, ${n})`:`rgb(${o.rgb})`;break;case"hsl":s=n!==void 0?`hsla(${o.hsl}, ${n})`:`hsl(${o.hsl})`;break;case"cssVar":s=o.cssVar;break;case"tailwind":s=o.tailwind;break;case"hex":default:s=o.hex}return s}function Ne(a,t="DEFAULT",r={}){const{format:i="hex",opacity:n}=r,o=R(a,t);let s;switch(i){case"rgb":s=n!==void 0?`rgba(${o.rgb}, ${n})`:`rgb(${o.rgb})`;break;case"hsl":s=n!==void 0?`hsla(${o.hsl}, ${n})`:`hsl(${o.hsl})`;break;case"cssVar":s=o.cssVar;break;case"tailwind":s=o.tailwind;break;case"hex":default:s=o.hex}return s}function Re(a,t,r={}){const{type:i="text",hover:n=!1,focus:o=!1,active:s=!1}=r,l=$(a,t),w=[`${i}-${l.tailwind}`];return n&&w.push(`hover:${i}-${l.tailwind}`),o&&w.push(`focus:${i}-${l.tailwind}`),s&&w.push(`active:${i}-${l.tailwind}`),w.join(" ")}function Me(a,t="DEFAULT",r={}){const{type:i="text",hover:n=!1,focus:o=!1,active:s=!1}=r,l=R(a,t),w=[`${i}-${l.tailwind}`];if(n){const m=R(a,t==="DEFAULT"?"dark":"DEFAULT");w.push(`hover:${i}-${m.tailwind}`)}if(o&&w.push(`focus:${i}-${l.tailwind}`),s){const m=R(a,"dark");w.push(`active:${i}-${m.tailwind}`)}return w.join(" ")}function De(a,t,r="bg"){const i=$(a,t);return`hover:${r}-${i.tailwind}`}function _e(a,t,r="border"){const i=$(a,t);return`focus:${r}-${i.tailwind}`}function Ue(a,t){return`focus:ring-${$(a,t).tailwind}`}function We(a,t){return`rgba(${a.rgb}, ${t})`}function se(a){const t=B(a);return t?.299*t[0]+.587*t[1]+.114*t[2]>128:!0}function Ke(a){return se(a)?"#000000":"#ffffff"}function B(a){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null}function z(a,t,r=.5){const i=B(a),n=B(t);if(!i||!n)return a;const o=Math.round(i[0]*(1-r)+n[0]*r),s=Math.round(i[1]*(1-r)+n[1]*r),l=Math.round(i[2]*(1-r)+n[2]*r);return`#${((1<<24)+(o<<16)+(s<<8)+l).toString(16).slice(1)}`}function Be(a,t){return z(a,"#ffffff",t/100)}function Pe(a,t){return z(a,"#000000",t/100)}const Ge={primary:{name:"indigo",light:400,default:500,dark:600},secondary:{name:"violet",light:400,default:500,dark:600},accent:{name:"cyan",light:400,default:500,dark:600}};class L{static create(t){const i={sm:{minWidth:640,tailwind:"sm"},md:{minWidth:768,tailwind:"md"},lg:{minWidth:1024,tailwind:"lg"},xl:{minWidth:1280,tailwind:"xl"},"2xl":{minWidth:1536,tailwind:"2xl"}}[t];return{name:t,minWidth:i.minWidth,px:`${i.minWidth}px`,rem:`${i.minWidth/16}rem`,tailwind:i.tailwind}}}const D={sm:L.create("sm"),md:L.create("md"),lg:L.create("lg"),xl:L.create("xl"),"2xl":L.create("2xl")};function He(a){return D[a]}function Ve(a,t="min"){const r=D[a];return`@media (${t==="min"?"min-width":"max-width"}: ${r.px})`}class W{generatePrimary(){return{light:{hex:"#818cf8",rgb:"129, 140, 248",tailwind:"indigo-400"},DEFAULT:{hex:"#6366f1",rgb:"99, 102, 241",tailwind:"indigo-500"},dark:{hex:"#4f46e5",rgb:"79, 70, 229",tailwind:"indigo-600"},contrast:{hex:"#ffffff",rgb:"255, 255, 255",tailwind:"white"}}}generateSecondary(){return{light:{hex:"#f9a8d4",rgb:"249, 168, 212",tailwind:"pink-300"},DEFAULT:{hex:"#ec4899",rgb:"236, 72, 153",tailwind:"pink-500"},dark:{hex:"#db2777",rgb:"219, 39, 119",tailwind:"pink-600"},contrast:{hex:"#ffffff",rgb:"255, 255, 255",tailwind:"white"}}}generateSuccess(){return{light:{hex:"#86efac",rgb:"134, 239, 172",tailwind:"green-300"},DEFAULT:{hex:"#22c55e",rgb:"34, 197, 94",tailwind:"green-500"},dark:{hex:"#16a34a",rgb:"22, 163, 74",tailwind:"green-600"},contrast:{hex:"#ffffff",rgb:"255, 255, 255",tailwind:"white"}}}generateWarning(){return{light:{hex:"#fde047",rgb:"253, 224, 71",tailwind:"yellow-300"},DEFAULT:{hex:"#eab308",rgb:"234, 179, 8",tailwind:"yellow-500"},dark:{hex:"#ca8a04",rgb:"202, 138, 4",tailwind:"yellow-600"},contrast:{hex:"#000000",rgb:"0, 0, 0",tailwind:"black"}}}generateError(){return{light:{hex:"#fca5a5",rgb:"252, 165, 165",tailwind:"red-300"},DEFAULT:{hex:"#ef4444",rgb:"239, 68, 68",tailwind:"red-500"},dark:{hex:"#dc2626",rgb:"220, 38, 38",tailwind:"red-600"},contrast:{hex:"#ffffff",rgb:"255, 255, 255",tailwind:"white"}}}generateInfo(){return{light:{hex:"#93c5fd",rgb:"147, 197, 253",tailwind:"blue-300"},DEFAULT:{hex:"#3b82f6",rgb:"59, 130, 246",tailwind:"blue-500"},dark:{hex:"#2563eb",rgb:"37, 99, 235",tailwind:"blue-600"},contrast:{hex:"#ffffff",rgb:"255, 255, 255",tailwind:"white"}}}generateNeutral(){return{light:{hex:"#f3f4f6",rgb:"243, 244, 246",tailwind:"gray-100"},DEFAULT:{hex:"#6b7280",rgb:"107, 114, 128",tailwind:"gray-500"},dark:{hex:"#374151",rgb:"55, 65, 81",tailwind:"gray-700"},contrast:{hex:"#ffffff",rgb:"255, 255, 255",tailwind:"white"}}}}class P{generatePrimary(){return{light:{hex:"#6366f1",rgb:"99, 102, 241",tailwind:"indigo-500"},DEFAULT:{hex:"#818cf8",rgb:"129, 140, 248",tailwind:"indigo-400"},dark:{hex:"#a5b4fc",rgb:"165, 180, 252",tailwind:"indigo-300"},contrast:{hex:"#ffffff",rgb:"255, 255, 255",tailwind:"white"}}}generateSecondary(){return{light:{hex:"#ec4899",rgb:"236, 72, 153",tailwind:"pink-500"},DEFAULT:{hex:"#f472b6",rgb:"244, 114, 182",tailwind:"pink-400"},dark:{hex:"#f9a8d4",rgb:"249, 168, 212",tailwind:"pink-300"},contrast:{hex:"#ffffff",rgb:"255, 255, 255",tailwind:"white"}}}generateSuccess(){return{light:{hex:"#22c55e",rgb:"34, 197, 94",tailwind:"green-500"},DEFAULT:{hex:"#4ade80",rgb:"74, 222, 128",tailwind:"green-400"},dark:{hex:"#86efac",rgb:"134, 239, 172",tailwind:"green-300"},contrast:{hex:"#000000",rgb:"0, 0, 0",tailwind:"black"}}}generateWarning(){return{light:{hex:"#eab308",rgb:"234, 179, 8",tailwind:"yellow-500"},DEFAULT:{hex:"#facc15",rgb:"250, 204, 21",tailwind:"yellow-400"},dark:{hex:"#fde047",rgb:"253, 224, 71",tailwind:"yellow-300"},contrast:{hex:"#000000",rgb:"0, 0, 0",tailwind:"black"}}}generateError(){return{light:{hex:"#ef4444",rgb:"239, 68, 68",tailwind:"red-500"},DEFAULT:{hex:"#f87171",rgb:"248, 113, 113",tailwind:"red-400"},dark:{hex:"#fca5a5",rgb:"252, 165, 165",tailwind:"red-300"},contrast:{hex:"#ffffff",rgb:"255, 255, 255",tailwind:"white"}}}generateInfo(){return{light:{hex:"#3b82f6",rgb:"59, 130, 246",tailwind:"blue-500"},DEFAULT:{hex:"#60a5fa",rgb:"96, 165, 250",tailwind:"blue-400"},dark:{hex:"#93c5fd",rgb:"147, 197, 253",tailwind:"blue-300"},contrast:{hex:"#ffffff",rgb:"255, 255, 255",tailwind:"white"}}}generateNeutral(){return{light:{hex:"#374151",rgb:"55, 65, 81",tailwind:"gray-700"},DEFAULT:{hex:"#9ca3af",rgb:"156, 163, 175",tailwind:"gray-400"},dark:{hex:"#d1d5db",rgb:"209, 213, 219",tailwind:"gray-300"},contrast:{hex:"#ffffff",rgb:"255, 255, 255",tailwind:"white"}}}}class G{constructor(t){U(this,"strategy");this.strategy=t}setStrategy(t){this.strategy=t}generatePalette(){return{primary:this.strategy.generatePrimary(),secondary:this.strategy.generateSecondary(),success:this.strategy.generateSuccess(),warning:this.strategy.generateWarning(),error:this.strategy.generateError(),info:this.strategy.generateInfo(),neutral:this.strategy.generateNeutral()}}}const ce=(()=>{let a,t;try{a=new G(new W).generatePalette()}catch(r){console.error("Failed to initialize COLOR_TOKENS_LIGHT:",r);const i=new W;a={primary:i.generatePrimary(),secondary:i.generateSecondary(),success:i.generateSuccess(),warning:i.generateWarning(),error:i.generateError(),info:i.generateInfo(),neutral:i.generateNeutral()}}try{t=new G(new P).generatePalette()}catch(r){console.error("Failed to initialize COLOR_TOKENS_DARK:",r),t=a}return{light:a,dark:t}})(),f=ce.light,ze=ce.dark;class y{static create(t){return{none:{value:"none",tailwind:"shadow-none",description:"No shadow"},sm:{value:"0 1px 2px 0 rgb(0 0 0 / 0.05)",tailwind:"shadow-sm",description:"Small shadow for subtle elevation"},md:{value:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",tailwind:"shadow-md",description:"Medium shadow for cards and elevated elements"},lg:{value:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",tailwind:"shadow-lg",description:"Large shadow for modals and dropdowns"},xl:{value:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",tailwind:"shadow-xl",description:"Extra large shadow for prominent modals"},"2xl":{value:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",tailwind:"shadow-2xl",description:"2X large shadow for maximum elevation"},inner:{value:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",tailwind:"shadow-inner",description:"Inner shadow for inset elements"}}[t]}}const Z={none:y.create("none"),sm:y.create("sm"),md:y.create("md"),lg:y.create("lg"),xl:y.create("xl"),"2xl":y.create("2xl"),inner:y.create("inner")};function Ze(a){return Z[a]}function Ye(a){return Z[a].tailwind}class x{static create(t){const i={none:{px:0,tailwind:"rounded-none",description:"No border radius"},sm:{px:2,tailwind:"rounded-sm",description:"Small radius (2px) for subtle rounding"},md:{px:6,tailwind:"rounded-md",description:"Medium radius (6px) for buttons and inputs"},lg:{px:8,tailwind:"rounded-lg",description:"Large radius (8px) for cards and containers"},xl:{px:12,tailwind:"rounded-xl",description:"Extra large radius (12px) for prominent elements"},"2xl":{px:16,tailwind:"rounded-2xl",description:"2X large radius (16px) for large containers"},"3xl":{px:24,tailwind:"rounded-3xl",description:"3X large radius (24px) for very large containers"},full:{px:9999,tailwind:"rounded-full",description:"Full radius for circular elements"}}[t];return{value:i.px,rem:`${i.px/16}rem`,px:`${i.px}px`,tailwind:i.tailwind,description:i.description}}}const Y={none:x.create("none"),sm:x.create("sm"),md:x.create("md"),lg:x.create("lg"),xl:x.create("xl"),"2xl":x.create("2xl"),"3xl":x.create("3xl"),full:x.create("full")};function qe(a){return Y[a]}function Xe(a){return Y[a].tailwind}class b{static createWidth(t){const i={none:{px:0,tailwind:"border-0"},thin:{px:1,tailwind:"border"},base:{px:1,tailwind:"border"},medium:{px:2,tailwind:"border-2"},thick:{px:4,tailwind:"border-4"}}[t];return{value:i.px,px:`${i.px}px`,tailwind:i.tailwind}}static create(t,r="solid"){return{width:this.createWidth(t),style:r,description:`${t} ${r} border`}}}const le={none:b.create("none"),thin:b.create("thin"),base:b.create("base"),medium:b.create("medium"),thick:b.create("thick"),thinDashed:b.create("thin","dashed"),baseDashed:b.create("base","dashed"),thinDotted:b.create("thin","dotted"),baseDotted:b.create("base","dotted")};function je(a){return le[a]}function de(a){return b.createWidth(a).tailwind}function ge(a){return{solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted"}[a]}function Qe(a,t="solid"){return`${de(a)} ${ge(t)}`}class u{static create(t,r="ease-in-out"){const i={fast:{value:"150ms",ms:150,tailwind:"duration-150"},base:{value:"200ms",ms:200,tailwind:"duration-200"},slow:{value:"300ms",ms:300,tailwind:"duration-300"},slower:{value:"500ms",ms:500,tailwind:"duration-500"}},n={"ease-in":{value:"cubic-bezier(0.4, 0, 1, 1)",tailwind:"ease-in",description:"Slow start, fast end"},"ease-out":{value:"cubic-bezier(0, 0, 0.2, 1)",tailwind:"ease-out",description:"Fast start, slow end"},"ease-in-out":{value:"cubic-bezier(0.4, 0, 0.2, 1)",tailwind:"ease-in-out",description:"Slow start and end, fast middle"},spring:{value:"cubic-bezier(0.68, -0.55, 0.265, 1.55)",tailwind:"ease-[cubic-bezier(0.68,-0.55,0.265,1.55)]",description:"Spring-like bounce effect"}};return{duration:i[t],easing:n[r]}}static createTransition(t,r="base",i="ease-in-out"){const n=this.create(r,i),o=Array.isArray(t)?t.join(", "):t,s=[n.duration.tailwind,n.easing.tailwind].join(" ");return{property:o,duration:n.duration.value,timingFunction:n.easing.value,tailwind:s}}}const Je={fast:u.create("fast"),base:u.create("base"),slow:u.create("slow"),slower:u.create("slower"),colors:u.createTransition(["color","background-color","border-color"],"base"),opacity:u.createTransition("opacity","fast"),transform:u.createTransition("transform","base"),all:u.createTransition("all","base")};function et(a,t){return u.create(a,t)}function tt(a,t="ease-in-out"){const r=u.create(a,t);return`${r.duration.tailwind} ${r.easing.tailwind}`}function at(a,t="base",r="ease-in-out"){return u.createTransition(a,t,r).tailwind}class p{static create(t){return{base:{value:0,tailwind:"z-0",description:"Base layer for normal content"},dropdown:{value:1e3,tailwind:"z-[1000]",description:"Dropdown menus and select options"},sticky:{value:1020,tailwind:"z-[1020]",description:"Sticky headers and navigation"},fixed:{value:1030,tailwind:"z-[1030]",description:"Fixed position elements"},"modal-backdrop":{value:1040,tailwind:"z-[1040]",description:"Modal backdrop/overlay"},modal:{value:1050,tailwind:"z-[1050]",description:"Modal dialogs and drawers"},popover:{value:1060,tailwind:"z-[1060]",description:"Popovers and tooltips"},tooltip:{value:1070,tailwind:"z-[1070]",description:"Tooltips (highest priority)"},toast:{value:1080,tailwind:"z-[1080]",description:"Toast notifications (highest priority)"}}[t]}}const rt={base:p.create("base"),dropdown:p.create("dropdown"),sticky:p.create("sticky"),fixed:p.create("fixed"),"modal-backdrop":p.create("modal-backdrop"),modal:p.create("modal"),popover:p.create("popover"),tooltip:p.create("tooltip"),toast:p.create("toast")};function it(a){return p.create(a)}function nt(a){return p.create(a).tailwind}class g{static create(t){const r=t/100,i={0:"Fully transparent",5:"Very light overlay",10:"Light overlay",20:"Subtle overlay",25:"Quarter opacity",30:"Light background",40:"Semi-transparent",50:"Half opacity",60:"Semi-opaque",70:"Mostly opaque",75:"Three-quarter opacity",80:"High opacity",90:"Very high opacity",95:"Nearly opaque",100:"Fully opaque"};return{value:t,decimal:r,tailwind:{0:"opacity-0",5:"opacity-5",10:"opacity-10",20:"opacity-20",25:"opacity-25",30:"opacity-30",40:"opacity-40",50:"opacity-50",60:"opacity-60",70:"opacity-70",75:"opacity-75",80:"opacity-80",90:"opacity-90",95:"opacity-95",100:"opacity-100"}[t],description:i[t]}}}const ot={transparent:g.create(0),5:g.create(5),10:g.create(10),20:g.create(20),25:g.create(25),30:g.create(30),40:g.create(40),50:g.create(50),60:g.create(60),70:g.create(70),75:g.create(75),80:g.create(80),90:g.create(90),95:g.create(95),opaque:g.create(100)};function st(a){return g.create(a)}function ct(a){return g.create(a).tailwind}class h{static create(t,r="to-r"){const n={primary:{from:f.primary.light.hex,via:f.primary.DEFAULT.hex,to:f.primary.dark.hex,description:"Primary color gradient"},secondary:{from:f.secondary.light.hex,via:f.secondary.DEFAULT.hex,to:f.secondary.dark.hex,description:"Secondary color gradient"},success:{from:f.success.light.hex,to:f.success.dark.hex,description:"Success color gradient"},error:{from:f.error.light.hex,to:f.error.dark.hex,description:"Error color gradient"},info:{from:f.info.light.hex,to:f.info.dark.hex,description:"Info color gradient"},warning:{from:f.warning.light.hex,to:f.warning.dark.hex,description:"Warning color gradient"}}[t];let s=`linear-gradient(${{"to-r":"to right","to-l":"to left","to-t":"to top","to-b":"to bottom","to-tr":"to top right","to-tl":"to top left","to-br":"to bottom right","to-bl":"to bottom left"}[r]}, ${n.from}`;n.via&&(s+=`, ${n.via}`),s+=`, ${n.to})`;const l=[];return l.push(`bg-gradient-${r.replace("to-","")}`),l.push(`from-[${n.from}]`),n.via&&l.push(`via-[${n.via}]`),l.push(`to-[${n.to}]`),{value:s,tailwind:l.join(" "),description:n.description,from:n.from,via:n.via,to:n.to}}static hexToTailwindColor(t){return t}}const lt={primary:h.create("primary"),secondary:h.create("secondary"),success:h.create("success"),error:h.create("error"),info:h.create("info"),warning:h.create("warning"),"primary-to-r":h.create("primary","to-r"),"primary-to-b":h.create("primary","to-b"),"secondary-to-r":h.create("secondary","to-r"),"success-to-r":h.create("success","to-r"),"error-to-r":h.create("error","to-r")};function dt(a,t){return h.create(a,t)}function gt(a,t="to-r"){return h.create(a,t).tailwind}class q{constructor(t="light"){U(this,"colorFactory");const r=t==="light"?new W:new P;this.colorFactory=new G(r)}createSpacing(t){return d.create(t)}createTypography(t,r,i){return c.create(t,r,i)}createColorPalette(){return this.colorFactory.generatePalette()}createBreakpoint(t){return L.create(t)}createShadow(t){return y.create(t)}createRadius(t){return x.create(t)}createBorder(t){return b.create(t)}createAnimation(t,r){return u.create(t,r)}createZIndex(t){return p.create(t)}createOpacity(t){return g.create(t)}createGradient(t,r){return h.create(t,r)}createTokenSet(){return{spacing:{xs:this.createSpacing(1),sm:this.createSpacing(2),md:this.createSpacing(3),base:this.createSpacing(4),lg:this.createSpacing(6),xl:this.createSpacing(8),"2xl":this.createSpacing(10),"3xl":this.createSpacing(12),"4xl":this.createSpacing(16)},typography:{h1:this.createTypography("4xl","tight","bold"),h2:this.createTypography("3xl","tight","bold"),h3:this.createTypography("2xl","snug","semibold"),body:this.createTypography("base","relaxed","normal"),label:this.createTypography("sm","normal","medium"),caption:this.createTypography("xs","normal","normal")},colors:this.createColorPalette(),breakpoints:{sm:this.createBreakpoint("sm"),md:this.createBreakpoint("md"),lg:this.createBreakpoint("lg"),xl:this.createBreakpoint("xl"),"2xl":this.createBreakpoint("2xl")},shadows:{none:this.createShadow("none"),sm:this.createShadow("sm"),md:this.createShadow("md"),lg:this.createShadow("lg"),xl:this.createShadow("xl"),"2xl":this.createShadow("2xl"),inner:this.createShadow("inner")},radius:{none:this.createRadius("none"),sm:this.createRadius("sm"),md:this.createRadius("md"),lg:this.createRadius("lg"),xl:this.createRadius("xl"),"2xl":this.createRadius("2xl"),"3xl":this.createRadius("3xl"),full:this.createRadius("full")},borders:{none:this.createBorder("none"),thin:this.createBorder("thin"),base:this.createBorder("base"),medium:this.createBorder("medium"),thick:this.createBorder("thick")},animations:{fast:this.createAnimation("fast"),base:this.createAnimation("base"),slow:this.createAnimation("slow"),slower:this.createAnimation("slower")},zIndex:{base:this.createZIndex("base"),dropdown:this.createZIndex("dropdown"),sticky:this.createZIndex("sticky"),fixed:this.createZIndex("fixed"),"modal-backdrop":this.createZIndex("modal-backdrop"),modal:this.createZIndex("modal"),popover:this.createZIndex("popover"),tooltip:this.createZIndex("tooltip"),toast:this.createZIndex("toast")},opacity:{transparent:this.createOpacity(0),5:this.createOpacity(5),10:this.createOpacity(10),25:this.createOpacity(25),50:this.createOpacity(50),75:this.createOpacity(75),90:this.createOpacity(90),opaque:this.createOpacity(100)},gradients:{primary:this.createGradient("primary"),secondary:this.createGradient("secondary"),success:this.createGradient("success"),error:this.createGradient("error"),info:this.createGradient("info"),warning:this.createGradient("warning")}}}setTheme(t){const r=t==="light"?new W:new P;this.colorFactory.setStrategy(r)}}const ft=new q("light");function ht(a="light"){return new q(a).createTokenSet()}const pt={colors:f,spacing:M,typography:O,breakpoints:D,mode:"light"},ut={colors:ze,spacing:M,typography:O,breakpoints:D,mode:"dark"},I={track:{sm:{w:"w-9",h:"h-5"},md:{w:"w-11",h:"h-6"},lg:{w:"w-14",h:"h-7"}},thumb:{sm:{w:"w-4",h:"h-4"},md:{w:"w-5",h:"h-5"},lg:{w:"w-6",h:"h-6"}},translate:{sm:"translate-x-4",md:"translate-x-5",lg:"translate-x-7"}};function wt(a){return{track:`${I.track[a].w} ${I.track[a].h}`,thumb:`${I.thumb[a].w} ${I.thumb[a].h}`,translate:I.translate[a]}}exports.AMBER=C;exports.ANIMATION_TOKENS=Je;exports.AnimationTokenFactory=u;exports.BLUE=te;exports.BORDER_TOKENS=le;exports.BRAND_COLORS=Ge;exports.BREAKPOINT_TOKENS=D;exports.BorderTokenFactory=b;exports.BreakpointTokenFactory=L;exports.COLOR_SCALES=Ce;exports.CYAN=S;exports.DARK_THEME=ut;exports.EMERALD=v;exports.FONT_FAMILY_TOKENS=be;exports.FONT_WEIGHT_TOKENS=xe;exports.FUCHSIA=ae;exports.GRADIENT_TOKENS=lt;exports.GRAY=X;exports.GREEN=j;exports.GradientTokenFactory=h;exports.INDIGO=k;exports.LIGHT_THEME=pt;exports.LIME=oe;exports.OPACITY_TOKENS=ot;exports.ORANGE=J;exports.OpacityTokenFactory=g;exports.PINK=re;exports.PRIMITIVE_COLORS=H;exports.PURPLE=ie;exports.RADIUS_TOKENS=Y;exports.RED=ee;exports.ROSE=F;exports.RadiusTokenFactory=x;exports.SEMANTIC_COLORS=Le;exports.SEMANTIC_COLORS_DARK=V;exports.SEMANTIC_COLORS_LIGHT=K;exports.SHADOW_TOKENS=Z;exports.SIDEBAR_TOKENS=N;exports.SKY=A;exports.SLATE=E;exports.SPACING_TOKENS=M;exports.SWITCH_TOKENS=I;exports.ShadowTokenFactory=y;exports.SpacingTokenFactory=d;exports.TEAL=ne;exports.TYPOGRAPHY_TOKENS=O;exports.TokensFactory=q;exports.TypographyTokenFactory=c;exports.VIOLET=T;exports.YELLOW=Q;exports.ZIndexTokenFactory=p;exports.Z_INDEX_TOKENS=rt;exports.blendColors=z;exports.createTokenSet=ht;exports.darken=Pe;exports.defaultTokensFactory=ft;exports.getAnimation=et;exports.getAnimationClass=tt;exports.getBorder=je;exports.getBorderClasses=Qe;exports.getBorderStyleClass=ge;exports.getBorderWidthClass=de;exports.getBreakpoint=He;exports.getColor=$e;exports.getColorClass=Re;exports.getContrastColor=Ke;exports.getFocusColorClass=_e;exports.getFocusRingClass=Ue;exports.getGradient=dt;exports.getGradientClass=gt;exports.getHoverColorClass=De;exports.getMediaQuery=Ve;exports.getNestedIndentClass=pe;exports.getOpacity=st;exports.getOpacityClass=ct;exports.getPrimitiveColor=$;exports.getPrimitiveColorPalette=Oe;exports.getRadius=qe;exports.getRadiusClass=Xe;exports.getSemanticColor=R;exports.getSemanticColorClass=Me;exports.getSemanticColorRole=Ie;exports.getSemanticColorValue=Ne;exports.getShadow=Ze;exports.getShadowClass=Ye;exports.getSpacing=ue;exports.getSpacingClass=we;exports.getSwitchClasses=wt;exports.getTransitionClass=at;exports.getTypography=me;exports.getTypographyClasses=ye;exports.getTypographyLineHeight=ve;exports.getTypographySize=ke;exports.getTypographySizeFromFontSize=Te;exports.getTypographyWeight=Se;exports.getTypographyWeightFromFontWeight=Ee;exports.getZIndex=it;exports.getZIndexClass=nt;exports.isLightColor=se;exports.lighten=Be;exports.withOpacity=We;
2
+ //# sourceMappingURL=tokens-BX3lVxER.cjs.map