@fabio.caffarello/react-design-system 3.2.0 → 3.3.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 +56 -1
- package/dist/index.js.map +1 -1
- package/dist/react-design-system.css +1 -1
- package/dist/server/index.cjs +17 -28
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +230 -265
- package/dist/server/index.js.map +1 -1
- package/dist/ui/primitives/Button/Button.d.ts +1 -1
- package/dist/ui/server.d.ts +0 -2
- package/package.json +1 -1
package/dist/server/index.cjs
CHANGED
|
@@ -1,64 +1,53 @@
|
|
|
1
|
-
"use strict";var ue=Object.defineProperty,be=Object.defineProperties;var me=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var U=(t,a,n)=>a in t?ue(t,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[a]=n,b=(t,a)=>{for(var n in a||(a={}))Y.call(a,n)&&U(t,n,a[n]);if(P)for(var n of P(a))Z.call(a,n)&&U(t,n,a[n]);return t},v=(t,a)=>be(t,me(a));var h=(t,a)=>{var n={};for(var r in t)Y.call(t,r)&&a.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&P)for(var r of P(t))a.indexOf(r)<0&&Z.call(t,r)&&(n[r]=t[r]);return n};var G=(t,a,n)=>U(t,typeof a!="symbol"?a+"":a,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),S=require("react"),xe=require("clsx"),ge=require("tailwind-merge"),ye=require("class-variance-authority"),_=require("lucide-react");function he(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const $=he(S);class E{static create(a){const r={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"}}[a];return{value:r.px,rem:`${r.px/16}rem`,px:`${r.px}px`,tailwind:r.tailwind,description:r.description}}}const we={none:E.create("none"),sm:E.create("sm"),md:E.create("md"),lg:E.create("lg"),xl:E.create("xl"),"2xl":E.create("2xl"),"3xl":E.create("3xl"),full:E.create("full")};function C(t){return we[t].tailwind}class j{static create(a){const n=a*this.BASE_UNIT,r=n/16;return{value:n,rem:`${r}rem`,px:`${n}px`,tailwind:this.getTailwindClass(a)}}static getTailwindClass(a){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"}[a]||String(a)}}G(j,"BASE_UNIT",4);const ve={none:j.create(0),"0.5":j.create(.5),xs:j.create(1),"1.5":j.create(1.5),sm:j.create(2),"2.5":j.create(2.5),md:j.create(3),"3.5":j.create(3.5),base:j.create(4),lg:j.create(6),xl:j.create(8),"2xl":j.create(10),"3xl":j.create(12),"4xl":j.create(16),"5xl":j.create(20),"6xl":j.create(24)};function c(t,a="p"){const r=ve[t].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-x":"space-x","space-y":"space-y"}[a]}-${r}`}class k{static createFontSize(a){const r={"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"}}[a];return{value:r.px,rem:`${r.px/16}rem`,px:`${r.px}px`,tailwind:r.tailwind}}static createLineHeight(a){const r={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"}}[a];return{value:r.value,tailwind:r.tailwind}}static createFontWeight(a){const r={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"}}[a];return{value:r.value,tailwind:r.tailwind}}static create(a,n="normal",r="normal"){return{fontSize:this.createFontSize(a),lineHeight:this.createLineHeight(n),fontWeight:this.createFontWeight(r)}}}k.createFontWeight("light"),k.createFontWeight("normal"),k.createFontWeight("medium"),k.createFontWeight("semibold"),k.createFontWeight("bold");const X={h1:k.create("4xl","tight","bold"),h2:k.create("3xl","tight","bold"),h3:k.create("2xl","snug","semibold"),h4:k.create("xl","snug","semibold"),h5:k.create("lg","normal","medium"),h6:k.create("base","normal","medium"),body:k.create("base","relaxed","normal"),bodySmall:k.create("sm","relaxed","normal"),bodyLarge:k.create("lg","relaxed","normal"),label:k.create("sm","normal","medium"),caption:k.create("xs","normal","normal"),button:k.create("base","normal","medium")};function I(t){const a=X[t];return`${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`}function M(t){return X[t].fontSize.tailwind}function H(t){return X[t].fontWeight.tailwind}function o(...t){return ge.twMerge(xe.clsx(t))}const W=(t,a)=>{const n=ye.cva(t,a);return(r=>{const s=n(r);return o(s)})},je=W(o("inline-flex","items-center","justify-center",H("label"),C("md"),"border"),{variants:{variant:{success:"",warning:"",error:"",info:"",neutral:"",primary:"",secondary:""},size:{sm:o(c("1.5","px"),c("0.5","py"),M("caption")),md:o(c("sm","px"),c("xs","py"),M("caption")),lg:o(c("sm","px"),c("xs","py"),M("bodySmall"))},style:{solid:"",outline:""}},compoundVariants:[{variant:"success",style:"solid",class:o("bg-success-bg","text-success-dark","border-success")},{variant:"warning",style:"solid",class:o("bg-warning-bg","text-warning-dark","border-warning")},{variant:"error",style:"solid",class:o("bg-error-bg","text-error-dark","border-error")},{variant:"info",style:"solid",class:o("bg-info-bg","text-info-dark","border-info")},{variant:"neutral",style:"solid",class:o("bg-surface-muted","text-fg-primary","border-line-default")},{variant:"primary",style:"solid",class:o("bg-surface-brand-subtle","text-fg-brand-emphasis","border-line-brand")},{variant:"secondary",style:"solid",class:o("bg-pink-300","text-fg-brand-secondary-emphasis","border-line-secondary")},{variant:"success",style:"outline",class:o("bg-transparent","border-success","text-fg-success")},{variant:"warning",style:"outline",class:o("bg-transparent","border-warning","text-fg-warning")},{variant:"error",style:"outline",class:o("bg-transparent","border-error","text-fg-error")},{variant:"info",style:"outline",class:o("bg-transparent","border-info","text-fg-info")},{variant:"neutral",style:"outline",class:o("bg-transparent","border-line-default","text-fg-secondary")},{variant:"primary",style:"outline",class:o("bg-transparent","border-line-brand","text-fg-brand")},{variant:"secondary",style:"outline",class:o("bg-transparent","border-line-secondary","text-fg-brand-secondary")}],defaultVariants:{variant:"neutral",size:"md",style:"solid"}}),ae=S.memo(S.forwardRef(function(m,p){var u=m,{variant:a="neutral",size:n="md",style:r="solid",className:s="",children:i,"aria-label":d}=u,f=h(u,["variant","size","style","className","children","aria-label"]);const g=o(je({variant:a,size:n,style:r}),s);let x;if(d)x=d;else if(typeof i=="string")x=i;else if(typeof i=="object"&&i!==null&&"props"in i){const y=i.props;y!=null&&y.children&&typeof y.children=="string"&&(x=y.children)}return l.jsx("span",v(b({ref:p,role:"status","aria-label":x,className:g},f),{children:i}))}));ae.displayName="Badge";function Q(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function ke(...t){return a=>{let n=!1;const r=t.map(s=>{const i=Q(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():Q(t[s],null)}}}}var Ne=Symbol.for("react.lazy"),q=$[" use ".trim().toString()];function $e(t){return typeof t=="object"&&t!==null&&"then"in t}function te(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Ne&&"_payload"in t&&$e(t._payload)}function Se(t){const a=Ce(t),n=$.forwardRef((r,s)=>{let m=r,{children:i}=m,d=h(m,["children"]);te(i)&&typeof q=="function"&&(i=q(i._payload));const f=$.Children.toArray(i),p=f.find(Le);if(p){const u=p.props.children,g=f.map(x=>x===p?$.Children.count(u)>1?$.Children.only(null):$.isValidElement(u)?u.props.children:null:x);return l.jsx(a,v(b({},d),{ref:s,children:$.isValidElement(u)?$.cloneElement(u,void 0,g):null}))}return l.jsx(a,v(b({},d),{ref:s,children:i}))});return n.displayName=`${t}.Slot`,n}var Te=Se("Slot");function Ce(t){const a=$.forwardRef((n,r)=>{let d=n,{children:s}=d,i=h(d,["children"]);if(te(s)&&typeof q=="function"&&(s=q(s._payload)),$.isValidElement(s)){const f=Fe(s),p=ze(i,s.props);return s.type!==$.Fragment&&(p.ref=r?ke(r,f):f),$.cloneElement(s,p)}return $.Children.count(s)>1?$.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var Me=Symbol("radix.slottable");function Le(t){return $.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Me}function ze(t,a){const n=b({},a);for(const r in a){const s=t[r],i=a[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...f)=>{const p=i(...f);return s(...f),p}:s&&(n[r]=s):r==="style"?n[r]=b(b({},s),i):r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return b(b({},t),n)}function Fe(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}const J=W(o("inline-flex","items-center","font-medium",C("full"),c("xs","gap")),{variants:{variant:{default:o("bg-surface-muted","text-fg-primary","border","border-line-default"),outlined:o("bg-transparent","text-fg-primary","border","border-line-default"),filled:o("bg-surface-brand-strong","text-fg-inverse","border","border-transparent")},size:{sm:o(c("xs","px"),c("xs","py"),M("caption")),md:o(c("sm","px"),c("xs","py"),M("bodySmall")),lg:o(c("md","px"),c("sm","py"),M("body"))},selected:{true:o("bg-surface-brand-strong","text-fg-inverse","border","border-line-brand"),false:""},disabled:{true:"opacity-50 cursor-not-allowed",false:""}},compoundVariants:[{selected:!0,variant:"default",class:""},{selected:!0,variant:"outlined",class:""},{selected:!0,variant:"filled",class:""}],defaultVariants:{variant:"default",size:"md",selected:!1,disabled:!1}}),re=S.forwardRef(function(a,n){const{children:r,variant:s="default",size:i="md",selected:d=!1,disabled:f=!1,className:p="","aria-label":m,tabIndex:u,asChild:g=!1}=a,y=(()=>{if(m)return m;if(typeof r=="string")return r;if(typeof r=="object"&&r!==null&&"props"in r){const z=r.props;if(z!=null&&z.children&&typeof z.children=="string")return z.children}})();if(g)return l.jsx(Te,{ref:n,className:o(J({variant:s,size:i,selected:d,disabled:f}),p),"aria-label":m,"aria-disabled":f||void 0,tabIndex:u,children:r});const{onRemove:T,onClick:L}=a,B=L!==void 0,V=B&&!f,pe=z=>{f||(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),L==null||L())};return l.jsxs("div",{ref:n,className:o(J({variant:s,size:i,selected:d,disabled:f}),T&&c("xs","pr"),p),"aria-disabled":f,children:[B?l.jsx("button",{type:"button",onClick:f?void 0:L,onKeyDown:pe,disabled:f,"aria-pressed":d?!0:void 0,"aria-label":m||y,tabIndex:u!==void 0?u:V?0:void 0,className:o("flex-1","bg-transparent","border-0",c("none","p"),"text-inherit","text-left","cursor-pointer","focus:outline-none","focus:ring-2","focus:ring-line-focus","focus:ring-offset-2",C("full")),children:r}):l.jsx("span",{children:r}),T&&!f&&l.jsx("button",{type:"button",onClick:z=>{z.stopPropagation(),T()},className:o(c("xs","ml"),"hover:bg-tint-hover",C("full"),c("xs","p"),"transition-colors","focus:outline-none","focus:ring-2","focus:ring-line-focus","focus:ring-offset-1"),"aria-label":`Remove ${y||"chip"}`,children:l.jsx(_.X,{className:"h-3 w-3","aria-hidden":"true"})})]})});re.displayName="Chip";function Ae(s){var i=s,{message:t,id:a,className:n=""}=i,r=h(i,["message","id","className"]);const d=[c("xs","mt"),M("bodySmall"),"text-fg-error","flex","items-center",c("xs","gap")],f=o(...d,n);return l.jsxs("div",v(b({role:"alert",id:a,className:f,"aria-live":"polite"},r),{children:[l.jsx(_.AlertCircle,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),l.jsx("span",{children:t})]}))}function Ee(r){var s=r,{variant:t="info",className:a}=s,n=h(s,["variant","className"]);const i={warning:o("bg-warning-bg","text-warning-dark","border-warning"),error:o("bg-error-bg","text-error-dark","border-error"),info:o("bg-info-bg","text-info-dark","border-info")};return l.jsx("div",b({role:"alert",className:o("border",c("base","px"),c("sm","py"),C("lg"),i[t],a)},n))}const De=o("block",M("label"),H("label"),"text-fg-primary"),Ie={default:"",required:o("after:content-['*']",`after:${c("0.5","ml")}`,"after:text-fg-error"),optional:o("after:content-['(optional)']",`after:${c("xs","ml")}`,"after:text-fg-tertiary","after:font-normal")},ne=S.memo(S.forwardRef(function(d,i){var f=d,{variant:a="default",className:n="",children:r}=f,s=h(f,["variant","className","children"]);const p=o(De,Ie[a],n);return l.jsx("label",v(b({ref:i,className:p},s),{children:r}))}));ne.displayName="Label";function w(t,a,n){const r=Re(t),s=We(t);return{hex:t,rgb:r,hsl:s,cssVar:`var(--color-${a}-${n})`,tailwind:`${a}-${n}`}}function Re(t){const a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return a?`${parseInt(a[1],16)}, ${parseInt(a[2],16)}, ${parseInt(a[3],16)}`:"0, 0, 0"}function We(t){const a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!a)return"0, 0%, 0%";const n=parseInt(a[1],16)/255,r=parseInt(a[2],16)/255,s=parseInt(a[3],16)/255,i=Math.max(n,r,s),d=Math.min(n,r,s);let f=0,p=0;const m=(i+d)/2;if(i!==d){const u=i-d;switch(p=m>.5?u/(2-i-d):u/(i+d),i){case n:f=((r-s)/u+(r<s?6:0))/6;break;case r:f=((s-n)/u+2)/6;break;case s:f=((n-r)/u+4)/6;break}}return`${Math.round(f*360)}, ${Math.round(p*100)}%, ${Math.round(m*100)}%`}w("#f0f4f8","brand-primary",50),w("#d9e2ec","brand-primary",100),w("#bcccdc","brand-primary",200),w("#9fb3c8","brand-primary",300),w("#7390ad","brand-primary",400),w("#486581","brand-primary",500),w("#334e68","brand-primary",600),w("#243b53","brand-primary",700),w("#1a2a3a","brand-primary",800),w("#102a43","brand-primary",900),w("#061a35","brand-primary",950);w("#f7f5ff","brand-secondary",50),w("#eee9ff","brand-secondary",100),w("#e0d6ff","brand-secondary",200),w("#cbb8ff","brand-secondary",300),w("#aa89fc","brand-secondary",400),w("#8e58f2","brand-secondary",500),w("#703bc8","brand-secondary",600),w("#582aa2","brand-secondary",700),w("#44227e","brand-secondary",800),w("#32185d","brand-secondary",900),w("#180635","brand-secondary",950);function e(t,a,n){const r=Ve(t),s=Oe(t);return{hex:t,rgb:r,hsl:s,cssVar:`var(--color-${a}-${n})`,tailwind:`${a}-${n}`}}function Ve(t){const a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return a?`${parseInt(a[1],16)}, ${parseInt(a[2],16)}, ${parseInt(a[3],16)}`:"0, 0, 0"}function Oe(t){const a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!a)return"0, 0%, 0%";const n=parseInt(a[1],16)/255,r=parseInt(a[2],16)/255,s=parseInt(a[3],16)/255,i=Math.max(n,r,s),d=Math.min(n,r,s);let f=0,p=0;const m=(i+d)/2;if(i!==d){const u=i-d;switch(p=m>.5?u/(2-i-d):u/(i+d),i){case n:f=((r-s)/u+(r<s?6:0))/6;break;case r:f=((s-n)/u+2)/6;break;case s:f=((n-r)/u+4)/6;break}}return`${Math.round(f*360)}, ${Math.round(p*100)}%, ${Math.round(m*100)}%`}e("#eef2ff","indigo",50),e("#e0e7ff","indigo",100),e("#c7d2fe","indigo",200),e("#a5b4fc","indigo",300),e("#818cf8","indigo",400),e("#6366f1","indigo",500),e("#4f46e5","indigo",600),e("#4338ca","indigo",700),e("#3730a3","indigo",800),e("#312e81","indigo",900),e("#1e1b4b","indigo",950);e("#f5f3ff","violet",50),e("#ede9fe","violet",100),e("#ddd6fe","violet",200),e("#c4b5fd","violet",300),e("#a78bfa","violet",400),e("#8b5cf6","violet",500),e("#7c3aed","violet",600),e("#6d28d9","violet",700),e("#5b21b6","violet",800),e("#4c1d95","violet",900),e("#2e1065","violet",950);e("#ecfeff","cyan",50),e("#cffafe","cyan",100),e("#a5f3fc","cyan",200),e("#67e8f9","cyan",300),e("#22d3ee","cyan",400),e("#06b6d4","cyan",500),e("#0891b2","cyan",600),e("#0e7490","cyan",700),e("#155e75","cyan",800),e("#164e63","cyan",900),e("#083344","cyan",950);e("#f8fafc","slate",50),e("#f1f5f9","slate",100),e("#e2e8f0","slate",200),e("#cbd5e1","slate",300),e("#94a3b8","slate",400),e("#64748b","slate",500),e("#475569","slate",600),e("#334155","slate",700),e("#1e293b","slate",800),e("#0f172a","slate",900),e("#020617","slate",950);e("#f9fafb","gray",50),e("#f3f4f6","gray",100),e("#e5e7eb","gray",200),e("#d1d5db","gray",300),e("#9ca3af","gray",400),e("#6b7280","gray",500),e("#4b5563","gray",600),e("#374151","gray",700),e("#1f2937","gray",800),e("#111827","gray",900),e("#030712","gray",950);e("#ecfdf5","emerald",50),e("#d1fae5","emerald",100),e("#a7f3d0","emerald",200),e("#6ee7b7","emerald",300),e("#34d399","emerald",400),e("#10b981","emerald",500),e("#059669","emerald",600),e("#047857","emerald",700),e("#065f46","emerald",800),e("#064e3b","emerald",900),e("#022c22","emerald",950);e("#f0fdf4","green",50),e("#dcfce7","green",100),e("#bbf7d0","green",200),e("#86efac","green",300),e("#4ade80","green",400),e("#22c55e","green",500),e("#16a34a","green",600),e("#15803d","green",700),e("#166534","green",800),e("#14532d","green",900),e("#052e16","green",950);e("#fffbeb","amber",50),e("#fef3c7","amber",100),e("#fde68a","amber",200),e("#fcd34d","amber",300),e("#fbbf24","amber",400),e("#f59e0b","amber",500),e("#d97706","amber",600),e("#b45309","amber",700),e("#92400e","amber",800),e("#78350f","amber",900),e("#451a03","amber",950);e("#fefce8","yellow",50),e("#fef9c3","yellow",100),e("#fef08a","yellow",200),e("#fde047","yellow",300),e("#facc15","yellow",400),e("#eab308","yellow",500),e("#ca8a04","yellow",600),e("#a16207","yellow",700),e("#854d0e","yellow",800),e("#713f12","yellow",900),e("#422006","yellow",950);e("#fff7ed","orange",50),e("#ffedd5","orange",100),e("#fed7aa","orange",200),e("#fdba74","orange",300),e("#fb923c","orange",400),e("#f97316","orange",500),e("#ea580c","orange",600),e("#c2410c","orange",700),e("#9a3412","orange",800),e("#7c2d12","orange",900),e("#431407","orange",950);e("#fff1f2","rose",50),e("#ffe4e6","rose",100),e("#fecdd3","rose",200),e("#fda4af","rose",300),e("#fb7185","rose",400),e("#f43f5e","rose",500),e("#e11d48","rose",600),e("#be123c","rose",700),e("#9f1239","rose",800),e("#881337","rose",900),e("#4c0519","rose",950);e("#fef2f2","red",50),e("#fee2e2","red",100),e("#fecaca","red",200),e("#fca5a5","red",300),e("#f87171","red",400),e("#ef4444","red",500),e("#dc2626","red",600),e("#b91c1c","red",700),e("#991b1b","red",800),e("#7f1d1d","red",900),e("#450a0a","red",950);e("#f0f9ff","sky",50),e("#e0f2fe","sky",100),e("#bae6fd","sky",200),e("#7dd3fc","sky",300),e("#38bdf8","sky",400),e("#0ea5e9","sky",500),e("#0284c7","sky",600),e("#0369a1","sky",700),e("#075985","sky",800),e("#0c4a6e","sky",900),e("#082f49","sky",950);e("#eff6ff","blue",50),e("#dbeafe","blue",100),e("#bfdbfe","blue",200),e("#93c5fd","blue",300),e("#60a5fa","blue",400),e("#3b82f6","blue",500),e("#2563eb","blue",600),e("#1d4ed8","blue",700),e("#1e40af","blue",800),e("#1e3a8a","blue",900),e("#172554","blue",950);e("#fdf4ff","fuchsia",50),e("#fae8ff","fuchsia",100),e("#f5d0fe","fuchsia",200),e("#f0abfc","fuchsia",300),e("#e879f9","fuchsia",400),e("#d946ef","fuchsia",500),e("#c026d3","fuchsia",600),e("#a21caf","fuchsia",700),e("#86198f","fuchsia",800),e("#701a75","fuchsia",900),e("#4a044e","fuchsia",950);e("#fdf2f8","pink",50),e("#fce7f3","pink",100),e("#fbcfe8","pink",200),e("#f9a8d4","pink",300),e("#f472b6","pink",400),e("#ec4899","pink",500),e("#db2777","pink",600),e("#be185d","pink",700),e("#9d174d","pink",800),e("#831843","pink",900),e("#500724","pink",950);e("#faf5ff","purple",50),e("#f3e8ff","purple",100),e("#e9d5ff","purple",200),e("#d8b4fe","purple",300),e("#c084fc","purple",400),e("#a855f7","purple",500),e("#9333ea","purple",600),e("#7e22ce","purple",700),e("#6b21a8","purple",800),e("#581c87","purple",900),e("#3b0764","purple",950);e("#f0fdfa","teal",50),e("#ccfbf1","teal",100),e("#99f6e4","teal",200),e("#5eead4","teal",300),e("#2dd4bf","teal",400),e("#14b8a6","teal",500),e("#0d9488","teal",600),e("#0f766e","teal",700),e("#115e59","teal",800),e("#134e4a","teal",900),e("#042f2e","teal",950);e("#f7fee7","lime",50),e("#ecfccb","lime",100),e("#d9f99d","lime",200),e("#bef264","lime",300),e("#a3e635","lime",400),e("#84cc16","lime",500),e("#65a30d","lime",600),e("#4d7c0f","lime",700),e("#3f6212","lime",800),e("#365314","lime",900),e("#1a2e05","lime",950);class R{static create(a){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"}}[a]}}const _e={none:R.create("none"),sm:R.create("sm"),md:R.create("md"),lg:R.create("lg"),xl:R.create("xl"),"2xl":R.create("2xl"),inner:R.create("inner")};function K(t){return _e[t].tailwind}class F{static createWidth(a){const r={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"}}[a];return{value:r.px,px:`${r.px}px`,tailwind:r.tailwind}}static create(a,n="solid"){return{width:this.createWidth(a),style:n,description:`${a} ${n} border`}}}F.create("none"),F.create("thin"),F.create("base"),F.create("medium"),F.create("thick"),F.create("thin","dashed"),F.create("base","dashed"),F.create("thin","dotted"),F.create("base","dotted");class O{static create(a){const r={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"}}[a];return{name:a,minWidth:r.minWidth,px:`${r.minWidth}px`,rem:`${r.minWidth/16}rem`,tailwind:r.tailwind}}}O.create("sm"),O.create("md"),O.create("lg"),O.create("xl"),O.create("2xl");class D{static create(a,n="ease-in-out"){const r={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"}},s={"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:r[a],easing:s[n]}}static createTransition(a,n="base",r="ease-in-out"){const s=this.create(n,r),i=Array.isArray(a)?a.join(", "):a,d=[s.duration.tailwind,s.easing.tailwind].join(" ");return{property:i,duration:s.duration.value,timingFunction:s.easing.value,tailwind:d}}}D.create("fast"),D.create("base"),D.create("slow"),D.create("slower"),D.createTransition(["color","background-color","border-color"],"base"),D.createTransition("opacity","fast"),D.createTransition("transform","base"),D.createTransition("all","base");class A{static create(a){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)"}}[a]}}A.create("base"),A.create("dropdown"),A.create("sticky"),A.create("fixed"),A.create("modal-backdrop"),A.create("modal"),A.create("popover"),A.create("tooltip"),A.create("toast");class N{static create(a){const n=a/100,r={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:a,decimal:n,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"}[a],description:r[a]}}}N.create(0),N.create(5),N.create(10),N.create(20),N.create(25),N.create(30),N.create(40),N.create(50),N.create(60),N.create(70),N.create(75),N.create(80),N.create(90),N.create(95),N.create(100);const He=W("w-full",{variants:{size:{sm:"h-1",md:"h-2",lg:"h-3"},variant:{primary:"bg-surface-muted",secondary:"bg-surface-muted",success:"bg-success-bg-emphasis",error:"bg-error-bg-emphasis",warning:"bg-warning-bg-emphasis",info:"bg-info-bg-emphasis"}},defaultVariants:{size:"md",variant:"primary"}}),ee=W("transition-all",{variants:{variant:{primary:"bg-surface-brand",secondary:"bg-surface-secondary",success:"bg-success",error:"bg-error",warning:"bg-warning",info:"bg-info"}},defaultVariants:{variant:"primary"}}),se=S.forwardRef(function(g,u){var x=g,{value:a,max:n=100,variant:r="primary",size:s="md",showLabel:i=!1,label:d,"aria-label":f,className:p=""}=x,m=h(x,["value","max","variant","size","showLabel","label","aria-label","className"]);const y=a===void 0,T=y?void 0:Math.min(Math.max(a/n*100,0),100),L=f||(y?"Loading in progress":`Progress: ${T==null?void 0:T.toFixed(0)}%`);return l.jsxs("div",v(b({ref:u,className:o("w-full",p)},m),{children:[i&&(d||!y)&&l.jsxs("div",{className:o("flex","items-center","justify-between",c("xs","mb")),children:[d&&l.jsx("span",{className:o(M("bodySmall"),H("label"),"text-fg-primary"),children:d}),!y&&T!==void 0&&l.jsxs("span",{className:o(M("bodySmall"),"text-fg-secondary"),children:[T.toFixed(0),"%"]})]}),l.jsx("div",{role:"progressbar","aria-valuemin":y?void 0:0,"aria-valuemax":y?void 0:n,"aria-valuenow":y?void 0:a,"aria-label":L,"aria-busy":y,className:o("relative","w-full","overflow-hidden",He({size:s,variant:r}),C("full")),children:y?l.jsx("div",{className:o("absolute","top-0","left-0","bottom-0",ee({variant:r}),C("full"),"motion-reduce:animate-none"),style:{width:"30%",animation:"progress-indeterminate 1.5s ease-in-out infinite"}}):l.jsx("div",{className:o("h-full",ee({variant:r}),C("full"),"transition-all","duration-300","ease-out"),style:{width:`${T}%`},"aria-hidden":"true"})})]}))});se.displayName="Progress";const Be={horizontal:"w-full border-t",vertical:"h-full border-l self-stretch"},Pe={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted"},ie=S.memo(function(i){var d=i,{orientation:a="horizontal",variant:n="solid",className:r=""}=d,s=h(d,["orientation","variant","className"]);const f=o("border-0","border-line-default",Be[a],Pe[n],r);return a==="vertical"?l.jsx("div",b({className:f,role:"separator","aria-orientation":"vertical"},s)):l.jsx("hr",b({className:f,role:"separator","aria-orientation":"horizontal"},s))});ie.displayName="Separator";function qe(f){var p=f,{variant:t="text",width:a,height:n,lines:r=1,className:s="","aria-label":i}=p,d=h(p,["variant","width","height","lines","className","aria-label"]);const m=["motion-safe:animate-pulse","bg-surface-muted",C("sm")],u={text:"h-4",card:"h-32",list:"h-12",circle:C("full")},g=o(...m,u[t],s),x={};a&&(x.width=a),n&&(x.height=n);const y=i||`Loading ${t} content`;return t==="text"&&r>1?l.jsx("div",v(b({className:c("sm","space-y"),role:"status","aria-busy":"true","aria-label":y},d),{children:Array.from({length:r}).map((T,L)=>l.jsx("div",{className:g,style:L===r-1?{width:"75%"}:x,"aria-hidden":"true"},L))})):l.jsx("div",b({className:g,style:x,role:"status","aria-busy":"true","aria-label":y},d))}const Ue=W("motion-safe:animate-spin",{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-8 w-8"},variant:{primary:"text-fg-brand",secondary:"text-fg-brand-secondary",neutral:"text-fg-secondary"}},defaultVariants:{size:"md",variant:"primary"}}),le=S.memo(function(d){var f=d,{size:a="md",variant:n="primary",label:r,className:s=""}=f,i=h(f,["size","variant","label","className"]);return l.jsxs("div",v(b({className:o("inline-flex","items-center",s),role:"status","aria-label":r||"Loading","aria-live":"polite"},i),{children:[l.jsx(_.Loader2,{className:o(Ue({size:a,variant:n})),"aria-hidden":"true"}),r&&l.jsx("span",{className:o(c("sm","ml"),M("bodySmall"),"text-fg-secondary","sr-only"),children:r})]}))});le.displayName="Spinner";const Ke={primary:{light:"text-indigo-400",DEFAULT:"text-fg-brand",dark:"text-indigo-600",contrast:"text-fg-inverse"},secondary:{light:"text-pink-300",DEFAULT:"text-fg-brand-secondary",dark:"text-pink-600",contrast:"text-fg-inverse"},success:{light:"text-green-300",DEFAULT:"text-fg-success",dark:"text-success-dark",contrast:"text-fg-inverse"},warning:{light:"text-yellow-300",DEFAULT:"text-fg-warning",dark:"text-warning-dark",contrast:"text-fg-inverse"},error:{light:"text-red-300",DEFAULT:"text-fg-error",dark:"text-error-dark",contrast:"text-fg-inverse"},info:{light:"text-blue-300",DEFAULT:"text-fg-info",dark:"text-info-dark",contrast:"text-fg-inverse"},neutral:{light:"text-fg-tertiary",DEFAULT:"text-fg-secondary",dark:"text-fg-primary",contrast:"text-fg-inverse"}};function Xe(m,p){var u=m,{variant:t="paragraph",bold:a,italic:n,className:r,as:s,colorRole:i="neutral",colorShade:d="dark"}=u,f=h(u,["variant","bold","italic","className","as","colorRole","colorShade"]);const g=[];let x;if(s)x=s;else switch(t){case"heading":x="h2";break;case"list":x="li";break;default:x="p";break}return t==="heading"?g.push(I("h2")):t==="body"||t==="paragraph"?g.push(I("body")):t==="bodySmall"?g.push(I("bodySmall")):t==="bodyLarge"?g.push(I("bodyLarge")):t==="caption"?g.push(I("caption")):t==="label"?g.push(I("label")):g.push(I("body")),a&&g.push("font-bold"),n&&g.push("italic"),g.push(Ke[i][d]),l.jsx(x,b({ref:p,className:o(...g,r)},f))}const Ye=S.forwardRef(Xe),Ze={sm:"max-w-screen-sm",md:"max-w-screen-md",lg:"max-w-screen-lg",xl:"max-w-screen-xl","2xl":"max-w-screen-2xl",full:"max-w-full"},oe=S.forwardRef((p,f)=>{var m=p,{className:t,maxWidth:a="lg",paddingX:n="base",paddingY:r="base",center:s=!0,children:i}=m,d=h(m,["className","maxWidth","paddingX","paddingY","center","children"]);return l.jsx("div",v(b({ref:f,className:o("w-full",Ze[a],c(n,"px"),c(r,"py"),s&&"mx-auto",t)},d),{children:i}))});oe.displayName="Container";const ce=S.forwardRef((p,f)=>{var m=p,{className:t,spacing:a="base",align:n="stretch",justify:r="start",direction:s="column",children:i}=m,d=h(m,["className","spacing","align","justify","direction","children"]);const u=s==="column"?c(a,"gap-y"):c(a,"gap-x"),g={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},x={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"};return l.jsx("div",v(b({ref:f,className:o("flex",s==="column"?"flex-col":"flex-row",u,g[n],x[r],t)},d),{children:i}))});ce.displayName="Stack";const de=S.forwardRef(function({option:a,isHighlighted:n,onSelect:r},s){const i=()=>{a.disabled||r(a)};return l.jsxs("div",{ref:s,role:"option","aria-selected":n,"aria-disabled":a.disabled,onClick:i,className:`
|
|
2
|
-
|
|
3
|
-
items-center
|
|
4
|
-
${c("sm","gap")}
|
|
5
|
-
${c("sm","px")}
|
|
6
|
-
${c("sm","py")}
|
|
7
|
-
text-sm
|
|
8
|
-
cursor-pointer
|
|
9
|
-
transition-colors
|
|
10
|
-
${n?"bg-surface-active":""}
|
|
11
|
-
${a.disabled?"opacity-50 cursor-not-allowed":"hover:bg-surface-hover"}
|
|
12
|
-
`,children:[a.icon&&l.jsx("span",{className:"flex-shrink-0",children:a.icon}),l.jsx("span",{className:"flex-1",children:a.label})]})});de.displayName="AutocompleteOption";function Ge(s){var i=s,{items:t,separator:a="/",className:n=""}=i,r=h(i,["items","separator","className"]);const d=["flex","items-center",c("sm","space-x"),M("bodySmall")],f=o(...d,n);return l.jsx("nav",v(b({"aria-label":"Breadcrumb",className:f},r),{children:l.jsx("ol",{className:o("flex","items-center",c("sm","space-x")),children:t.map((p,m)=>{const u=m===t.length-1;return l.jsxs("li",{className:"flex items-center",children:[m>0&&l.jsx("span",{className:o(c("sm","mx"),"text-fg-tertiary"),"aria-hidden":"true",children:a}),u?l.jsx("span",{className:o("text-fg-primary",H("label")),"aria-current":"page",children:p.label}):p.href?l.jsx("a",{href:p.href,className:o("inline-flex","items-center",c("xs","px"),c("xs","pt"),"border-b-2","border-transparent",M("bodySmall"),H("label"),"transition-colors","text-fg-secondary","hover:border-line-emphasis","hover:text-fg-primary"),children:p.label}):l.jsx("span",{className:"text-fg-secondary",children:p.label})]},m)})})}))}const fe=S.memo(function(m){var u=m,{variant:a="default",padding:n="medium",className:r="",onClick:s,"aria-label":i,"aria-labelledby":d,children:f}=u,p=h(u,["variant","padding","className","onClick","aria-label","aria-labelledby","children"]);const g=W(o("bg-surface-base",C("lg"),"border","border-line-default",K("sm")),{variants:{variant:{default:"",hover:o(`hover:${K("md")}`,"transition-shadow","cursor-pointer"),selected:o("border-line-brand",K("md"))},padding:{none:"",small:c("xs","p"),medium:c("base","p"),large:c("lg","p")}},defaultVariants:{variant:"default",padding:"medium"}}),x=s!==void 0,y=x?"button":void 0,T=x?0:void 0,L=o(g({variant:a,padding:n}),r),B=V=>{x&&(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),s==null||s())};return l.jsx("div",v(b({className:L,role:y,tabIndex:T,onClick:s,onKeyDown:B,"aria-label":i,"aria-labelledby":d},p),{children:f}))});fe.displayName="Card";function Qe(r){var s=r,{children:t,className:a=""}=s,n=h(s,["children","className"]);return l.jsx("div",v(b({className:`flex flex-col ${c("1.5","space-y")} ${c("lg","p")} ${c("base","pb")} ${a}`},n),{children:t}))}function Je(r){var s=r,{children:t,className:a=""}=s,n=h(s,["children","className"]);return l.jsx("div",v(b({className:`flex flex-col-reverse sm:flex-row sm:justify-end sm:${c("sm","space-x")} ${c("lg","p")} ${c("base","pt")} ${a}`},n),{children:t}))}function ea(r){var s=r,{children:t,className:a=""}=s,n=h(s,["children","className"]);return l.jsx("div",v(b({className:`
|
|
13
|
-
${c("lg","p")}
|
|
1
|
+
"use strict";var pe=Object.defineProperty,ue=Object.defineProperties;var be=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var U=(t,a,n)=>a in t?pe(t,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[a]=n,b=(t,a)=>{for(var n in a||(a={}))Y.call(a,n)&&U(t,n,a[n]);if(P)for(var n of P(a))Z.call(a,n)&&U(t,n,a[n]);return t},v=(t,a)=>ue(t,be(a));var h=(t,a)=>{var n={};for(var r in t)Y.call(t,r)&&a.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&P)for(var r of P(t))a.indexOf(r)<0&&Z.call(t,r)&&(n[r]=t[r]);return n};var G=(t,a,n)=>U(t,typeof a!="symbol"?a+"":a,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),M=require("react"),me=require("clsx"),xe=require("tailwind-merge"),ge=require("class-variance-authority"),O=require("lucide-react");function ye(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const $=ye(M);class D{static create(a){const r={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"}}[a];return{value:r.px,rem:`${r.px/16}rem`,px:`${r.px}px`,tailwind:r.tailwind,description:r.description}}}const he={none:D.create("none"),sm:D.create("sm"),md:D.create("md"),lg:D.create("lg"),xl:D.create("xl"),"2xl":D.create("2xl"),"3xl":D.create("3xl"),full:D.create("full")};function T(t){return he[t].tailwind}class j{static create(a){const n=a*this.BASE_UNIT,r=n/16;return{value:n,rem:`${r}rem`,px:`${n}px`,tailwind:this.getTailwindClass(a)}}static getTailwindClass(a){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"}[a]||String(a)}}G(j,"BASE_UNIT",4);const we={none:j.create(0),"0.5":j.create(.5),xs:j.create(1),"1.5":j.create(1.5),sm:j.create(2),"2.5":j.create(2.5),md:j.create(3),"3.5":j.create(3.5),base:j.create(4),lg:j.create(6),xl:j.create(8),"2xl":j.create(10),"3xl":j.create(12),"4xl":j.create(16),"5xl":j.create(20),"6xl":j.create(24)};function d(t,a="p"){const r=we[t].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-x":"space-x","space-y":"space-y"}[a]}-${r}`}class k{static createFontSize(a){const r={"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"}}[a];return{value:r.px,rem:`${r.px/16}rem`,px:`${r.px}px`,tailwind:r.tailwind}}static createLineHeight(a){const r={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"}}[a];return{value:r.value,tailwind:r.tailwind}}static createFontWeight(a){const r={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"}}[a];return{value:r.value,tailwind:r.tailwind}}static create(a,n="normal",r="normal"){return{fontSize:this.createFontSize(a),lineHeight:this.createLineHeight(n),fontWeight:this.createFontWeight(r)}}}k.createFontWeight("light"),k.createFontWeight("normal"),k.createFontWeight("medium"),k.createFontWeight("semibold"),k.createFontWeight("bold");const X={h1:k.create("4xl","tight","bold"),h2:k.create("3xl","tight","bold"),h3:k.create("2xl","snug","semibold"),h4:k.create("xl","snug","semibold"),h5:k.create("lg","normal","medium"),h6:k.create("base","normal","medium"),body:k.create("base","relaxed","normal"),bodySmall:k.create("sm","relaxed","normal"),bodyLarge:k.create("lg","relaxed","normal"),label:k.create("sm","normal","medium"),caption:k.create("xs","normal","normal"),button:k.create("base","normal","medium")};function I(t){const a=X[t];return`${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`}function C(t){return X[t].fontSize.tailwind}function H(t){return X[t].fontWeight.tailwind}function o(...t){return xe.twMerge(me.clsx(t))}const W=(t,a)=>{const n=ge.cva(t,a);return(r=>{const s=n(r);return o(s)})},ve=W(o("inline-flex","items-center","justify-center",H("label"),T("md"),"border"),{variants:{variant:{success:"",warning:"",error:"",info:"",neutral:"",primary:"",secondary:""},size:{sm:o(d("1.5","px"),d("0.5","py"),C("caption")),md:o(d("sm","px"),d("xs","py"),C("caption")),lg:o(d("sm","px"),d("xs","py"),C("bodySmall"))},style:{solid:"",outline:""}},compoundVariants:[{variant:"success",style:"solid",class:o("bg-success-bg","text-success-dark","border-success")},{variant:"warning",style:"solid",class:o("bg-warning-bg","text-warning-dark","border-warning")},{variant:"error",style:"solid",class:o("bg-error-bg","text-error-dark","border-error")},{variant:"info",style:"solid",class:o("bg-info-bg","text-info-dark","border-info")},{variant:"neutral",style:"solid",class:o("bg-surface-muted","text-fg-primary","border-line-default")},{variant:"primary",style:"solid",class:o("bg-surface-brand-subtle","text-fg-brand-emphasis","border-line-brand")},{variant:"secondary",style:"solid",class:o("bg-pink-300","text-fg-brand-secondary-emphasis","border-line-secondary")},{variant:"success",style:"outline",class:o("bg-transparent","border-success","text-fg-success")},{variant:"warning",style:"outline",class:o("bg-transparent","border-warning","text-fg-warning")},{variant:"error",style:"outline",class:o("bg-transparent","border-error","text-fg-error")},{variant:"info",style:"outline",class:o("bg-transparent","border-info","text-fg-info")},{variant:"neutral",style:"outline",class:o("bg-transparent","border-line-default","text-fg-secondary")},{variant:"primary",style:"outline",class:o("bg-transparent","border-line-brand","text-fg-brand")},{variant:"secondary",style:"outline",class:o("bg-transparent","border-line-secondary","text-fg-brand-secondary")}],defaultVariants:{variant:"neutral",size:"md",style:"solid"}}),ae=M.memo(M.forwardRef(function(m,p){var u=m,{variant:a="neutral",size:n="md",style:r="solid",className:s="",children:i,"aria-label":c}=u,f=h(u,["variant","size","style","className","children","aria-label"]);const g=o(ve({variant:a,size:n,style:r}),s);let x;if(c)x=c;else if(typeof i=="string")x=i;else if(typeof i=="object"&&i!==null&&"props"in i){const y=i.props;y!=null&&y.children&&typeof y.children=="string"&&(x=y.children)}return l.jsx("span",v(b({ref:p,role:"status","aria-label":x,className:g},f),{children:i}))}));ae.displayName="Badge";function Q(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function je(...t){return a=>{let n=!1;const r=t.map(s=>{const i=Q(s,a);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():Q(t[s],null)}}}}var ke=Symbol.for("react.lazy"),q=$[" use ".trim().toString()];function Ne(t){return typeof t=="object"&&t!==null&&"then"in t}function te(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===ke&&"_payload"in t&&Ne(t._payload)}function $e(t){const a=Te(t),n=$.forwardRef((r,s)=>{let m=r,{children:i}=m,c=h(m,["children"]);te(i)&&typeof q=="function"&&(i=q(i._payload));const f=$.Children.toArray(i),p=f.find(Me);if(p){const u=p.props.children,g=f.map(x=>x===p?$.Children.count(u)>1?$.Children.only(null):$.isValidElement(u)?u.props.children:null:x);return l.jsx(a,v(b({},c),{ref:s,children:$.isValidElement(u)?$.cloneElement(u,void 0,g):null}))}return l.jsx(a,v(b({},c),{ref:s,children:i}))});return n.displayName=`${t}.Slot`,n}var Se=$e("Slot");function Te(t){const a=$.forwardRef((n,r)=>{let c=n,{children:s}=c,i=h(c,["children"]);if(te(s)&&typeof q=="function"&&(s=q(s._payload)),$.isValidElement(s)){const f=ze(s),p=Le(i,s.props);return s.type!==$.Fragment&&(p.ref=r?je(r,f):f),$.cloneElement(s,p)}return $.Children.count(s)>1?$.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var Ce=Symbol("radix.slottable");function Me(t){return $.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Ce}function Le(t,a){const n=b({},a);for(const r in a){const s=t[r],i=a[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...f)=>{const p=i(...f);return s(...f),p}:s&&(n[r]=s):r==="style"?n[r]=b(b({},s),i):r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return b(b({},t),n)}function ze(t){var r,s;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=a&&"isReactWarning"in a&&a.isReactWarning;return n?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}const J=W(o("inline-flex","items-center","font-medium",T("full"),d("xs","gap")),{variants:{variant:{default:o("bg-surface-muted","text-fg-primary","border","border-line-default"),outlined:o("bg-transparent","text-fg-primary","border","border-line-default"),filled:o("bg-surface-brand-strong","text-fg-inverse","border","border-transparent")},size:{sm:o(d("xs","px"),d("xs","py"),C("caption")),md:o(d("sm","px"),d("xs","py"),C("bodySmall")),lg:o(d("md","px"),d("sm","py"),C("body"))},selected:{true:o("bg-surface-brand-strong","text-fg-inverse","border","border-line-brand"),false:""},disabled:{true:"opacity-50 cursor-not-allowed",false:""}},compoundVariants:[{selected:!0,variant:"default",class:""},{selected:!0,variant:"outlined",class:""},{selected:!0,variant:"filled",class:""}],defaultVariants:{variant:"default",size:"md",selected:!1,disabled:!1}}),re=M.forwardRef(function(a,n){const{children:r,variant:s="default",size:i="md",selected:c=!1,disabled:f=!1,className:p="","aria-label":m,tabIndex:u,asChild:g=!1}=a,y=(()=>{if(m)return m;if(typeof r=="string")return r;if(typeof r=="object"&&r!==null&&"props"in r){const z=r.props;if(z!=null&&z.children&&typeof z.children=="string")return z.children}})();if(g)return l.jsx(Se,{ref:n,className:o(J({variant:s,size:i,selected:c,disabled:f}),p),"aria-label":m,"aria-disabled":f||void 0,tabIndex:u,children:r});const{onRemove:S,onClick:L}=a,B=L!==void 0,V=B&&!f,fe=z=>{f||(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),L==null||L())};return l.jsxs("div",{ref:n,className:o(J({variant:s,size:i,selected:c,disabled:f}),S&&d("xs","pr"),p),"aria-disabled":f,children:[B?l.jsx("button",{type:"button",onClick:f?void 0:L,onKeyDown:fe,disabled:f,"aria-pressed":c?!0:void 0,"aria-label":m||y,tabIndex:u!==void 0?u:V?0:void 0,className:o("flex-1","bg-transparent","border-0",d("none","p"),"text-inherit","text-left","cursor-pointer","focus:outline-none","focus:ring-2","focus:ring-line-focus","focus:ring-offset-2",T("full")),children:r}):l.jsx("span",{children:r}),S&&!f&&l.jsx("button",{type:"button",onClick:z=>{z.stopPropagation(),S()},className:o(d("xs","ml"),"hover:bg-tint-hover",T("full"),d("xs","p"),"transition-colors","focus:outline-none","focus:ring-2","focus:ring-line-focus","focus:ring-offset-1"),"aria-label":`Remove ${y||"chip"}`,children:l.jsx(O.X,{className:"h-3 w-3","aria-hidden":"true"})})]})});re.displayName="Chip";function Fe(s){var i=s,{message:t,id:a,className:n=""}=i,r=h(i,["message","id","className"]);const c=[d("xs","mt"),C("bodySmall"),"text-fg-error","flex","items-center",d("xs","gap")],f=o(...c,n);return l.jsxs("div",v(b({role:"alert",id:a,className:f,"aria-live":"polite"},r),{children:[l.jsx(O.AlertCircle,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),l.jsx("span",{children:t})]}))}function Ee(r){var s=r,{variant:t="info",className:a}=s,n=h(s,["variant","className"]);const i={warning:o("bg-warning-bg","text-warning-dark","border-warning"),error:o("bg-error-bg","text-error-dark","border-error"),info:o("bg-info-bg","text-info-dark","border-info")};return l.jsx("div",b({role:"alert",className:o("border",d("base","px"),d("sm","py"),T("lg"),i[t],a)},n))}const De=o("block",C("label"),H("label"),"text-fg-primary"),Ae={default:"",required:o("after:content-['*']",`after:${d("0.5","ml")}`,"after:text-fg-error"),optional:o("after:content-['(optional)']",`after:${d("xs","ml")}`,"after:text-fg-tertiary","after:font-normal")},ne=M.memo(M.forwardRef(function(c,i){var f=c,{variant:a="default",className:n="",children:r}=f,s=h(f,["variant","className","children"]);const p=o(De,Ae[a],n);return l.jsx("label",v(b({ref:i,className:p},s),{children:r}))}));ne.displayName="Label";function w(t,a,n){const r=Ie(t),s=Re(t);return{hex:t,rgb:r,hsl:s,cssVar:`var(--color-${a}-${n})`,tailwind:`${a}-${n}`}}function Ie(t){const a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return a?`${parseInt(a[1],16)}, ${parseInt(a[2],16)}, ${parseInt(a[3],16)}`:"0, 0, 0"}function Re(t){const a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!a)return"0, 0%, 0%";const n=parseInt(a[1],16)/255,r=parseInt(a[2],16)/255,s=parseInt(a[3],16)/255,i=Math.max(n,r,s),c=Math.min(n,r,s);let f=0,p=0;const m=(i+c)/2;if(i!==c){const u=i-c;switch(p=m>.5?u/(2-i-c):u/(i+c),i){case n:f=((r-s)/u+(r<s?6:0))/6;break;case r:f=((s-n)/u+2)/6;break;case s:f=((n-r)/u+4)/6;break}}return`${Math.round(f*360)}, ${Math.round(p*100)}%, ${Math.round(m*100)}%`}w("#f0f4f8","brand-primary",50),w("#d9e2ec","brand-primary",100),w("#bcccdc","brand-primary",200),w("#9fb3c8","brand-primary",300),w("#7390ad","brand-primary",400),w("#486581","brand-primary",500),w("#334e68","brand-primary",600),w("#243b53","brand-primary",700),w("#1a2a3a","brand-primary",800),w("#102a43","brand-primary",900),w("#061a35","brand-primary",950);w("#f7f5ff","brand-secondary",50),w("#eee9ff","brand-secondary",100),w("#e0d6ff","brand-secondary",200),w("#cbb8ff","brand-secondary",300),w("#aa89fc","brand-secondary",400),w("#8e58f2","brand-secondary",500),w("#703bc8","brand-secondary",600),w("#582aa2","brand-secondary",700),w("#44227e","brand-secondary",800),w("#32185d","brand-secondary",900),w("#180635","brand-secondary",950);function e(t,a,n){const r=We(t),s=Ve(t);return{hex:t,rgb:r,hsl:s,cssVar:`var(--color-${a}-${n})`,tailwind:`${a}-${n}`}}function We(t){const a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return a?`${parseInt(a[1],16)}, ${parseInt(a[2],16)}, ${parseInt(a[3],16)}`:"0, 0, 0"}function Ve(t){const a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!a)return"0, 0%, 0%";const n=parseInt(a[1],16)/255,r=parseInt(a[2],16)/255,s=parseInt(a[3],16)/255,i=Math.max(n,r,s),c=Math.min(n,r,s);let f=0,p=0;const m=(i+c)/2;if(i!==c){const u=i-c;switch(p=m>.5?u/(2-i-c):u/(i+c),i){case n:f=((r-s)/u+(r<s?6:0))/6;break;case r:f=((s-n)/u+2)/6;break;case s:f=((n-r)/u+4)/6;break}}return`${Math.round(f*360)}, ${Math.round(p*100)}%, ${Math.round(m*100)}%`}e("#eef2ff","indigo",50),e("#e0e7ff","indigo",100),e("#c7d2fe","indigo",200),e("#a5b4fc","indigo",300),e("#818cf8","indigo",400),e("#6366f1","indigo",500),e("#4f46e5","indigo",600),e("#4338ca","indigo",700),e("#3730a3","indigo",800),e("#312e81","indigo",900),e("#1e1b4b","indigo",950);e("#f5f3ff","violet",50),e("#ede9fe","violet",100),e("#ddd6fe","violet",200),e("#c4b5fd","violet",300),e("#a78bfa","violet",400),e("#8b5cf6","violet",500),e("#7c3aed","violet",600),e("#6d28d9","violet",700),e("#5b21b6","violet",800),e("#4c1d95","violet",900),e("#2e1065","violet",950);e("#ecfeff","cyan",50),e("#cffafe","cyan",100),e("#a5f3fc","cyan",200),e("#67e8f9","cyan",300),e("#22d3ee","cyan",400),e("#06b6d4","cyan",500),e("#0891b2","cyan",600),e("#0e7490","cyan",700),e("#155e75","cyan",800),e("#164e63","cyan",900),e("#083344","cyan",950);e("#f8fafc","slate",50),e("#f1f5f9","slate",100),e("#e2e8f0","slate",200),e("#cbd5e1","slate",300),e("#94a3b8","slate",400),e("#64748b","slate",500),e("#475569","slate",600),e("#334155","slate",700),e("#1e293b","slate",800),e("#0f172a","slate",900),e("#020617","slate",950);e("#f9fafb","gray",50),e("#f3f4f6","gray",100),e("#e5e7eb","gray",200),e("#d1d5db","gray",300),e("#9ca3af","gray",400),e("#6b7280","gray",500),e("#4b5563","gray",600),e("#374151","gray",700),e("#1f2937","gray",800),e("#111827","gray",900),e("#030712","gray",950);e("#ecfdf5","emerald",50),e("#d1fae5","emerald",100),e("#a7f3d0","emerald",200),e("#6ee7b7","emerald",300),e("#34d399","emerald",400),e("#10b981","emerald",500),e("#059669","emerald",600),e("#047857","emerald",700),e("#065f46","emerald",800),e("#064e3b","emerald",900),e("#022c22","emerald",950);e("#f0fdf4","green",50),e("#dcfce7","green",100),e("#bbf7d0","green",200),e("#86efac","green",300),e("#4ade80","green",400),e("#22c55e","green",500),e("#16a34a","green",600),e("#15803d","green",700),e("#166534","green",800),e("#14532d","green",900),e("#052e16","green",950);e("#fffbeb","amber",50),e("#fef3c7","amber",100),e("#fde68a","amber",200),e("#fcd34d","amber",300),e("#fbbf24","amber",400),e("#f59e0b","amber",500),e("#d97706","amber",600),e("#b45309","amber",700),e("#92400e","amber",800),e("#78350f","amber",900),e("#451a03","amber",950);e("#fefce8","yellow",50),e("#fef9c3","yellow",100),e("#fef08a","yellow",200),e("#fde047","yellow",300),e("#facc15","yellow",400),e("#eab308","yellow",500),e("#ca8a04","yellow",600),e("#a16207","yellow",700),e("#854d0e","yellow",800),e("#713f12","yellow",900),e("#422006","yellow",950);e("#fff7ed","orange",50),e("#ffedd5","orange",100),e("#fed7aa","orange",200),e("#fdba74","orange",300),e("#fb923c","orange",400),e("#f97316","orange",500),e("#ea580c","orange",600),e("#c2410c","orange",700),e("#9a3412","orange",800),e("#7c2d12","orange",900),e("#431407","orange",950);e("#fff1f2","rose",50),e("#ffe4e6","rose",100),e("#fecdd3","rose",200),e("#fda4af","rose",300),e("#fb7185","rose",400),e("#f43f5e","rose",500),e("#e11d48","rose",600),e("#be123c","rose",700),e("#9f1239","rose",800),e("#881337","rose",900),e("#4c0519","rose",950);e("#fef2f2","red",50),e("#fee2e2","red",100),e("#fecaca","red",200),e("#fca5a5","red",300),e("#f87171","red",400),e("#ef4444","red",500),e("#dc2626","red",600),e("#b91c1c","red",700),e("#991b1b","red",800),e("#7f1d1d","red",900),e("#450a0a","red",950);e("#f0f9ff","sky",50),e("#e0f2fe","sky",100),e("#bae6fd","sky",200),e("#7dd3fc","sky",300),e("#38bdf8","sky",400),e("#0ea5e9","sky",500),e("#0284c7","sky",600),e("#0369a1","sky",700),e("#075985","sky",800),e("#0c4a6e","sky",900),e("#082f49","sky",950);e("#eff6ff","blue",50),e("#dbeafe","blue",100),e("#bfdbfe","blue",200),e("#93c5fd","blue",300),e("#60a5fa","blue",400),e("#3b82f6","blue",500),e("#2563eb","blue",600),e("#1d4ed8","blue",700),e("#1e40af","blue",800),e("#1e3a8a","blue",900),e("#172554","blue",950);e("#fdf4ff","fuchsia",50),e("#fae8ff","fuchsia",100),e("#f5d0fe","fuchsia",200),e("#f0abfc","fuchsia",300),e("#e879f9","fuchsia",400),e("#d946ef","fuchsia",500),e("#c026d3","fuchsia",600),e("#a21caf","fuchsia",700),e("#86198f","fuchsia",800),e("#701a75","fuchsia",900),e("#4a044e","fuchsia",950);e("#fdf2f8","pink",50),e("#fce7f3","pink",100),e("#fbcfe8","pink",200),e("#f9a8d4","pink",300),e("#f472b6","pink",400),e("#ec4899","pink",500),e("#db2777","pink",600),e("#be185d","pink",700),e("#9d174d","pink",800),e("#831843","pink",900),e("#500724","pink",950);e("#faf5ff","purple",50),e("#f3e8ff","purple",100),e("#e9d5ff","purple",200),e("#d8b4fe","purple",300),e("#c084fc","purple",400),e("#a855f7","purple",500),e("#9333ea","purple",600),e("#7e22ce","purple",700),e("#6b21a8","purple",800),e("#581c87","purple",900),e("#3b0764","purple",950);e("#f0fdfa","teal",50),e("#ccfbf1","teal",100),e("#99f6e4","teal",200),e("#5eead4","teal",300),e("#2dd4bf","teal",400),e("#14b8a6","teal",500),e("#0d9488","teal",600),e("#0f766e","teal",700),e("#115e59","teal",800),e("#134e4a","teal",900),e("#042f2e","teal",950);e("#f7fee7","lime",50),e("#ecfccb","lime",100),e("#d9f99d","lime",200),e("#bef264","lime",300),e("#a3e635","lime",400),e("#84cc16","lime",500),e("#65a30d","lime",600),e("#4d7c0f","lime",700),e("#3f6212","lime",800),e("#365314","lime",900),e("#1a2e05","lime",950);class R{static create(a){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"}}[a]}}const _e={none:R.create("none"),sm:R.create("sm"),md:R.create("md"),lg:R.create("lg"),xl:R.create("xl"),"2xl":R.create("2xl"),inner:R.create("inner")};function K(t){return _e[t].tailwind}class F{static createWidth(a){const r={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"}}[a];return{value:r.px,px:`${r.px}px`,tailwind:r.tailwind}}static create(a,n="solid"){return{width:this.createWidth(a),style:n,description:`${a} ${n} border`}}}F.create("none"),F.create("thin"),F.create("base"),F.create("medium"),F.create("thick"),F.create("thin","dashed"),F.create("base","dashed"),F.create("thin","dotted"),F.create("base","dotted");class _{static create(a){const r={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"}}[a];return{name:a,minWidth:r.minWidth,px:`${r.minWidth}px`,rem:`${r.minWidth/16}rem`,tailwind:r.tailwind}}}_.create("sm"),_.create("md"),_.create("lg"),_.create("xl"),_.create("2xl");class A{static create(a,n="ease-in-out"){const r={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"}},s={"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:r[a],easing:s[n]}}static createTransition(a,n="base",r="ease-in-out"){const s=this.create(n,r),i=Array.isArray(a)?a.join(", "):a,c=[s.duration.tailwind,s.easing.tailwind].join(" ");return{property:i,duration:s.duration.value,timingFunction:s.easing.value,tailwind:c}}}A.create("fast"),A.create("base"),A.create("slow"),A.create("slower"),A.createTransition(["color","background-color","border-color"],"base"),A.createTransition("opacity","fast"),A.createTransition("transform","base"),A.createTransition("all","base");class E{static create(a){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)"}}[a]}}E.create("base"),E.create("dropdown"),E.create("sticky"),E.create("fixed"),E.create("modal-backdrop"),E.create("modal"),E.create("popover"),E.create("tooltip"),E.create("toast");class N{static create(a){const n=a/100,r={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:a,decimal:n,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"}[a],description:r[a]}}}N.create(0),N.create(5),N.create(10),N.create(20),N.create(25),N.create(30),N.create(40),N.create(50),N.create(60),N.create(70),N.create(75),N.create(80),N.create(90),N.create(95),N.create(100);const Oe=W("w-full",{variants:{size:{sm:"h-1",md:"h-2",lg:"h-3"},variant:{primary:"bg-surface-muted",secondary:"bg-surface-muted",success:"bg-success-bg-emphasis",error:"bg-error-bg-emphasis",warning:"bg-warning-bg-emphasis",info:"bg-info-bg-emphasis"}},defaultVariants:{size:"md",variant:"primary"}}),ee=W("transition-all",{variants:{variant:{primary:"bg-surface-brand",secondary:"bg-surface-secondary",success:"bg-success",error:"bg-error",warning:"bg-warning",info:"bg-info"}},defaultVariants:{variant:"primary"}}),se=M.forwardRef(function(g,u){var x=g,{value:a,max:n=100,variant:r="primary",size:s="md",showLabel:i=!1,label:c,"aria-label":f,className:p=""}=x,m=h(x,["value","max","variant","size","showLabel","label","aria-label","className"]);const y=a===void 0,S=y?void 0:Math.min(Math.max(a/n*100,0),100),L=f||(y?"Loading in progress":`Progress: ${S==null?void 0:S.toFixed(0)}%`);return l.jsxs("div",v(b({ref:u,className:o("w-full",p)},m),{children:[i&&(c||!y)&&l.jsxs("div",{className:o("flex","items-center","justify-between",d("xs","mb")),children:[c&&l.jsx("span",{className:o(C("bodySmall"),H("label"),"text-fg-primary"),children:c}),!y&&S!==void 0&&l.jsxs("span",{className:o(C("bodySmall"),"text-fg-secondary"),children:[S.toFixed(0),"%"]})]}),l.jsx("div",{role:"progressbar","aria-valuemin":y?void 0:0,"aria-valuemax":y?void 0:n,"aria-valuenow":y?void 0:a,"aria-label":L,"aria-busy":y,className:o("relative","w-full","overflow-hidden",Oe({size:s,variant:r}),T("full")),children:y?l.jsx("div",{className:o("absolute","top-0","left-0","bottom-0",ee({variant:r}),T("full"),"motion-reduce:animate-none"),style:{width:"30%",animation:"progress-indeterminate 1.5s ease-in-out infinite"}}):l.jsx("div",{className:o("h-full",ee({variant:r}),T("full"),"transition-all","duration-300","ease-out"),style:{width:`${S}%`},"aria-hidden":"true"})})]}))});se.displayName="Progress";const He={horizontal:"w-full border-t",vertical:"h-full border-l self-stretch"},Be={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted"},ie=M.memo(function(i){var c=i,{orientation:a="horizontal",variant:n="solid",className:r=""}=c,s=h(c,["orientation","variant","className"]);const f=o("border-0","border-line-default",He[a],Be[n],r);return a==="vertical"?l.jsx("div",b({className:f,role:"separator","aria-orientation":"vertical"},s)):l.jsx("hr",b({className:f,role:"separator","aria-orientation":"horizontal"},s))});ie.displayName="Separator";function Pe(f){var p=f,{variant:t="text",width:a,height:n,lines:r=1,className:s="","aria-label":i}=p,c=h(p,["variant","width","height","lines","className","aria-label"]);const m=["motion-safe:animate-pulse","bg-surface-muted",T("sm")],u={text:"h-4",card:"h-32",list:"h-12",circle:T("full")},g=o(...m,u[t],s),x={};a&&(x.width=a),n&&(x.height=n);const y=i||`Loading ${t} content`;return t==="text"&&r>1?l.jsx("div",v(b({className:d("sm","space-y"),role:"status","aria-busy":"true","aria-label":y},c),{children:Array.from({length:r}).map((S,L)=>l.jsx("div",{className:g,style:L===r-1?{width:"75%"}:x,"aria-hidden":"true"},L))})):l.jsx("div",b({className:g,style:x,role:"status","aria-busy":"true","aria-label":y},c))}const qe=W("motion-safe:animate-spin",{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-8 w-8"},variant:{primary:"text-fg-brand",secondary:"text-fg-brand-secondary",neutral:"text-fg-secondary"}},defaultVariants:{size:"md",variant:"primary"}}),le=M.memo(function(c){var f=c,{size:a="md",variant:n="primary",label:r,className:s=""}=f,i=h(f,["size","variant","label","className"]);return l.jsxs("div",v(b({className:o("inline-flex","items-center",s),role:"status","aria-label":r||"Loading","aria-live":"polite"},i),{children:[l.jsx(O.Loader2,{className:o(qe({size:a,variant:n})),"aria-hidden":"true"}),r&&l.jsx("span",{className:o(d("sm","ml"),C("bodySmall"),"text-fg-secondary","sr-only"),children:r})]}))});le.displayName="Spinner";const Ue={primary:{light:"text-indigo-400",DEFAULT:"text-fg-brand",dark:"text-indigo-600",contrast:"text-fg-inverse"},secondary:{light:"text-pink-300",DEFAULT:"text-fg-brand-secondary",dark:"text-pink-600",contrast:"text-fg-inverse"},success:{light:"text-green-300",DEFAULT:"text-fg-success",dark:"text-success-dark",contrast:"text-fg-inverse"},warning:{light:"text-yellow-300",DEFAULT:"text-fg-warning",dark:"text-warning-dark",contrast:"text-fg-inverse"},error:{light:"text-red-300",DEFAULT:"text-fg-error",dark:"text-error-dark",contrast:"text-fg-inverse"},info:{light:"text-blue-300",DEFAULT:"text-fg-info",dark:"text-info-dark",contrast:"text-fg-inverse"},neutral:{light:"text-fg-tertiary",DEFAULT:"text-fg-secondary",dark:"text-fg-primary",contrast:"text-fg-inverse"}};function Ke(m,p){var u=m,{variant:t="paragraph",bold:a,italic:n,className:r,as:s,colorRole:i="neutral",colorShade:c="dark"}=u,f=h(u,["variant","bold","italic","className","as","colorRole","colorShade"]);const g=[];let x;if(s)x=s;else switch(t){case"heading":x="h2";break;case"list":x="li";break;default:x="p";break}return t==="heading"?g.push(I("h2")):t==="body"||t==="paragraph"?g.push(I("body")):t==="bodySmall"?g.push(I("bodySmall")):t==="bodyLarge"?g.push(I("bodyLarge")):t==="caption"?g.push(I("caption")):t==="label"?g.push(I("label")):g.push(I("body")),a&&g.push("font-bold"),n&&g.push("italic"),g.push(Ue[i][c]),l.jsx(x,b({ref:p,className:o(...g,r)},f))}const Xe=M.forwardRef(Ke),Ye={sm:"max-w-screen-sm",md:"max-w-screen-md",lg:"max-w-screen-lg",xl:"max-w-screen-xl","2xl":"max-w-screen-2xl",full:"max-w-full"},oe=M.forwardRef((p,f)=>{var m=p,{className:t,maxWidth:a="lg",paddingX:n="base",paddingY:r="base",center:s=!0,children:i}=m,c=h(m,["className","maxWidth","paddingX","paddingY","center","children"]);return l.jsx("div",v(b({ref:f,className:o("w-full",Ye[a],d(n,"px"),d(r,"py"),s&&"mx-auto",t)},c),{children:i}))});oe.displayName="Container";const de=M.forwardRef((p,f)=>{var m=p,{className:t,spacing:a="base",align:n="stretch",justify:r="start",direction:s="column",children:i}=m,c=h(m,["className","spacing","align","justify","direction","children"]);const u=s==="column"?d(a,"gap-y"):d(a,"gap-x"),g={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},x={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"};return l.jsx("div",v(b({ref:f,className:o("flex",s==="column"?"flex-col":"flex-row",u,g[n],x[r],t)},c),{children:i}))});de.displayName="Stack";function Ze(s){var i=s,{items:t,separator:a="/",className:n=""}=i,r=h(i,["items","separator","className"]);const c=["flex","items-center",d("sm","space-x"),C("bodySmall")],f=o(...c,n);return l.jsx("nav",v(b({"aria-label":"Breadcrumb",className:f},r),{children:l.jsx("ol",{className:o("flex","items-center",d("sm","space-x")),children:t.map((p,m)=>{const u=m===t.length-1;return l.jsxs("li",{className:"flex items-center",children:[m>0&&l.jsx("span",{className:o(d("sm","mx"),"text-fg-tertiary"),"aria-hidden":"true",children:a}),u?l.jsx("span",{className:o("text-fg-primary",H("label")),"aria-current":"page",children:p.label}):p.href?l.jsx("a",{href:p.href,className:o("inline-flex","items-center",d("xs","px"),d("xs","pt"),"border-b-2","border-transparent",C("bodySmall"),H("label"),"transition-colors","text-fg-secondary","hover:border-line-emphasis","hover:text-fg-primary"),children:p.label}):l.jsx("span",{className:"text-fg-secondary",children:p.label})]},m)})})}))}const ce=M.memo(function(m){var u=m,{variant:a="default",padding:n="medium",className:r="",onClick:s,"aria-label":i,"aria-labelledby":c,children:f}=u,p=h(u,["variant","padding","className","onClick","aria-label","aria-labelledby","children"]);const g=W(o("bg-surface-base",T("lg"),"border","border-line-default",K("sm")),{variants:{variant:{default:"",hover:o(`hover:${K("md")}`,"transition-shadow","cursor-pointer"),selected:o("border-line-brand",K("md"))},padding:{none:"",small:d("xs","p"),medium:d("base","p"),large:d("lg","p")}},defaultVariants:{variant:"default",padding:"medium"}}),x=s!==void 0,y=x?"button":void 0,S=x?0:void 0,L=o(g({variant:a,padding:n}),r),B=V=>{x&&(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),s==null||s())};return l.jsx("div",v(b({className:L,role:y,tabIndex:S,onClick:s,onKeyDown:x?B:void 0,"aria-label":i,"aria-labelledby":c},p),{children:f}))});ce.displayName="Card";function Ge(r){var s=r,{children:t,className:a=""}=s,n=h(s,["children","className"]);return l.jsx("div",v(b({className:`flex flex-col ${d("1.5","space-y")} ${d("lg","p")} ${d("base","pb")} ${a}`},n),{children:t}))}function Qe(r){var s=r,{children:t,className:a=""}=s,n=h(s,["children","className"]);return l.jsx("div",v(b({className:`flex flex-col-reverse sm:flex-row sm:justify-end sm:${d("sm","space-x")} ${d("lg","p")} ${d("base","pt")} ${a}`},n),{children:t}))}function Je(r){var s=r,{children:t,className:a=""}=s,n=h(s,["children","className"]);return l.jsx("div",v(b({className:`
|
|
2
|
+
${d("lg","p")}
|
|
14
3
|
border-b
|
|
15
4
|
border-line-default
|
|
16
5
|
${a}
|
|
17
|
-
`},n),{children:t}))}function
|
|
18
|
-
${
|
|
6
|
+
`},n),{children:t}))}function ea(r){var s=r,{children:t,className:a=""}=s,n=h(s,["children","className"]);return l.jsx("div",v(b({className:`
|
|
7
|
+
${d("lg","p")}
|
|
19
8
|
border-t
|
|
20
9
|
border-line-default
|
|
21
10
|
flex
|
|
22
11
|
justify-end
|
|
23
|
-
${
|
|
12
|
+
${d("sm","gap")}
|
|
24
13
|
${a}
|
|
25
|
-
`},n),{children:t}))}function
|
|
14
|
+
`},n),{children:t}))}function aa({children:t,className:a}){return l.jsx("div",{className:o("flex-shrink-0 flex items-center",d("sm","gap"),a),children:t})}function ta({children:t,className:a}){return l.jsx("nav",{className:o("flex-1 flex items-center justify-center",d("base","gap"),"hidden md:flex",a),"aria-label":"Main navigation",children:t})}function ra(n){var r=n,{className:t=""}=r,a=h(r,["className"]);return l.jsx("div",b({role:"separator",className:`
|
|
26
15
|
h-px
|
|
27
16
|
bg-line-default
|
|
28
|
-
${
|
|
17
|
+
${d("sm","my")}
|
|
29
18
|
${t}
|
|
30
|
-
`},a))}function
|
|
19
|
+
`},a))}function na(r){var s=r,{orientation:t="horizontal",className:a=""}=s,n=h(s,["orientation","className"]);return t==="vertical"?l.jsx("div",b({className:o("w-px","h-6","bg-line-default","mx-auto",a),role:"separator","aria-orientation":"vertical"},n)):l.jsx("div",b({className:o("w-full","h-px","bg-line-default",d("sm","my"),"flex-shrink-0",a),role:"separator","aria-orientation":"horizontal",style:{willChange:"auto",transform:"none"}},n))}function sa(s){var i=s,{column:t,row:a,className:n=""}=i,r=h(i,["column","row","className"]);const c=t.key in a?a[t.key]:void 0;return l.jsx("td",v(b({className:`${d("lg","px")} ${d("base","py")} whitespace-nowrap text-sm text-fg-primary ${t.hiddenOnMobile?"hidden md:table-cell":""} ${n}`},r),{children:t.render?t.render(c,a):String(c!=null?c:"")}))}function ia({items:t,orientation:a="vertical",className:n=""}){return a==="horizontal"?l.jsx("div",{className:`flex items-start ${n}`,children:t.map((r,s)=>{const i=r.status||(s===0?"active":s<t.findIndex(f=>f.status==="active")?"completed":"default"),c=s===t.length-1;return l.jsx("div",{className:"flex items-start flex-1",children:l.jsxs("div",{className:"flex flex-col items-center flex-1",children:[l.jsx("div",v(b({},i==="default"?{"data-marker":"pending"}:{}),{className:`
|
|
31
20
|
flex
|
|
32
21
|
items-center
|
|
33
22
|
justify-center
|
|
34
23
|
w-10
|
|
35
24
|
h-10
|
|
36
|
-
${
|
|
25
|
+
${T("full")}
|
|
37
26
|
border-2
|
|
38
27
|
${i==="completed"?"bg-success border-success text-fg-inverse":i==="active"?"bg-surface-brand-strong border-line-brand text-fg-inverse":i==="error"?"bg-error border-error text-fg-inverse":"bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
39
|
-
`,children:r.icon||(i==="completed"?l.jsx(
|
|
28
|
+
`,children:r.icon||(i==="completed"?l.jsx(O.CheckCircle2,{className:"h-4 w-4"}):s+1)})),!c&&l.jsx("div",{className:`
|
|
40
29
|
w-full
|
|
41
30
|
h-0.5
|
|
42
|
-
${
|
|
31
|
+
${d("sm","mt")}
|
|
43
32
|
${i==="completed"?"bg-success":"bg-line-emphasis"}
|
|
44
|
-
`}),l.jsxs("div",{className:`${
|
|
33
|
+
`}),l.jsxs("div",{className:`${d("base","mt")} text-center ${d("base","px")}`,children:[r.timestamp&&l.jsx("p",{className:`text-xs text-fg-tertiary ${d("xs","mb")}`,children:r.timestamp}),l.jsx("h3",{className:"text-sm font-semibold text-fg-primary",children:r.title}),r.description&&l.jsx("p",{className:`text-xs text-fg-secondary ${d("xs","mt")}`,children:r.description}),r.content&&l.jsx("div",{className:d("sm","mt"),children:r.content})]})]})},r.id)})}):l.jsx("div",{className:`${d("none","space-y")} ${n}`,children:t.map((r,s)=>{const i=r.status||(s===0?"active":s<t.findIndex(f=>f.status==="active")?"completed":"default"),c=s===t.length-1;return l.jsxs("div",{className:`flex items-start ${d("base","gap")}`,children:[l.jsxs("div",{className:"flex flex-col items-center",children:[l.jsx("div",v(b({},i==="default"?{"data-marker":"pending"}:{}),{className:`
|
|
45
34
|
flex
|
|
46
35
|
items-center
|
|
47
36
|
justify-center
|
|
48
37
|
w-10
|
|
49
38
|
h-10
|
|
50
|
-
${
|
|
39
|
+
${T("full")}
|
|
51
40
|
border-2
|
|
52
41
|
${i==="completed"?"bg-success border-success text-fg-inverse":i==="active"?"bg-surface-brand-strong border-line-brand text-fg-inverse":i==="error"?"bg-error border-error text-fg-inverse":"bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
53
|
-
`,children:r.icon||(i==="completed"?l.jsx(
|
|
42
|
+
`,children:r.icon||(i==="completed"?l.jsx(O.CheckCircle2,{className:"h-4 w-4"}):s+1)})),!c&&l.jsx("div",{className:`
|
|
54
43
|
w-0.5
|
|
55
44
|
flex-1
|
|
56
45
|
min-h-16
|
|
57
|
-
${
|
|
46
|
+
${d("sm","mt")}
|
|
58
47
|
${i==="completed"?"bg-success":"bg-line-emphasis"}
|
|
59
|
-
`})]}),l.jsxs("div",{className:`flex-1 ${
|
|
48
|
+
`})]}),l.jsxs("div",{className:`flex-1 ${d("xl","pb")}`,children:[r.timestamp&&l.jsx("p",{className:`text-xs text-fg-tertiary ${d("xs","mb")}`,children:r.timestamp}),l.jsx("h3",{className:`
|
|
60
49
|
text-base
|
|
61
50
|
font-semibold
|
|
62
51
|
${i==="active"?"text-fg-brand-emphasis":"text-fg-primary"}
|
|
63
|
-
`,children:r.title}),r.description&&l.jsx("p",{className:`text-sm text-fg-secondary ${
|
|
52
|
+
`,children:r.title}),r.description&&l.jsx("p",{className:`text-sm text-fg-secondary ${d("xs","mt")}`,children:r.description}),r.content&&l.jsx("div",{className:d("md","mt"),children:r.content})]})]},r.id)})})}exports.Badge=ae;exports.Breadcrumb=Ze;exports.Card=ce;exports.Chip=re;exports.Container=oe;exports.DialogFooter=Qe;exports.DialogHeader=Ge;exports.DrawerFooter=ea;exports.DrawerHeader=Je;exports.ErrorMessage=Fe;exports.HeaderActions=aa;exports.HeaderNavigation=ta;exports.Info=Ee;exports.Label=ne;exports.MenuSeparator=ra;exports.NavbarSeparator=na;exports.Progress=se;exports.Separator=ie;exports.Skeleton=Pe;exports.Spinner=le;exports.Stack=de;exports.TableCell=sa;exports.Text=Xe;exports.Timeline=ia;
|
|
64
53
|
//# sourceMappingURL=index.cjs.map
|