@aurora-ds/theme 1.1.7 → 1.2.7

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.d.cts CHANGED
@@ -234,7 +234,7 @@ type ColorShade = keyof ColorScale;
234
234
  /**
235
235
  * Available palette preset names
236
236
  */
237
- type PaletteName = 'indigo' | 'rose' | 'emerald' | 'violet' | 'amber' | 'cyan' | 'slate' | 'gray';
237
+ type PaletteName = 'indigo' | 'blue' | 'rose' | 'emerald' | 'teal' | 'violet' | 'amber' | 'cyan' | 'slate' | 'gray';
238
238
 
239
239
  type ThemeProviderProps<T extends Theme = Theme> = {
240
240
  theme: T;
@@ -449,35 +449,99 @@ declare const colors: {
449
449
  };
450
450
 
451
451
  type ColorPalette$7 = Theme['colors'];
452
+ /**
453
+ * Indigo light palette - Modern, accessible color scheme
454
+ * Follows WCAG AA contrast guidelines
455
+ */
452
456
  declare const indigoLight: ColorPalette$7;
457
+ /**
458
+ * Indigo dark palette - Modern, accessible color scheme
459
+ * Follows WCAG AA contrast guidelines
460
+ */
453
461
  declare const indigoDark: ColorPalette$7;
454
462
 
455
463
  type ColorPalette$6 = Theme['colors'];
464
+ /**
465
+ * Rose light palette - Modern, accessible color scheme
466
+ * Follows WCAG AA contrast guidelines
467
+ */
456
468
  declare const roseLight: ColorPalette$6;
469
+ /**
470
+ * Rose dark palette - Modern, accessible color scheme
471
+ * Follows WCAG AA contrast guidelines
472
+ */
457
473
  declare const roseDark: ColorPalette$6;
458
474
 
459
475
  type ColorPalette$5 = Theme['colors'];
476
+ /**
477
+ * Emerald light palette - Modern, accessible color scheme
478
+ * Follows WCAG AA contrast guidelines
479
+ */
460
480
  declare const emeraldLight: ColorPalette$5;
481
+ /**
482
+ * Emerald dark palette - Modern, accessible color scheme
483
+ * Follows WCAG AA contrast guidelines
484
+ */
461
485
  declare const emeraldDark: ColorPalette$5;
462
486
 
463
487
  type ColorPalette$4 = Theme['colors'];
488
+ /**
489
+ * Violet light palette - Modern, accessible color scheme
490
+ * Follows WCAG AA contrast guidelines
491
+ */
464
492
  declare const violetLight: ColorPalette$4;
493
+ /**
494
+ * Violet dark palette - Modern, accessible color scheme
495
+ * Follows WCAG AA contrast guidelines
496
+ */
465
497
  declare const violetDark: ColorPalette$4;
466
498
 
467
499
  type ColorPalette$3 = Theme['colors'];
500
+ /**
501
+ * Amber light palette - Modern, accessible color scheme
502
+ * Follows WCAG AA contrast guidelines
503
+ */
468
504
  declare const amberLight: ColorPalette$3;
505
+ /**
506
+ * Amber dark palette - Modern, accessible color scheme
507
+ * Follows WCAG AA contrast guidelines
508
+ */
469
509
  declare const amberDark: ColorPalette$3;
470
510
 
471
511
  type ColorPalette$2 = Theme['colors'];
512
+ /**
513
+ * Cyan light palette - Modern, accessible color scheme
514
+ * Follows WCAG AA contrast guidelines
515
+ */
472
516
  declare const cyanLight: ColorPalette$2;
517
+ /**
518
+ * Cyan dark palette - Modern, accessible color scheme
519
+ * Follows WCAG AA contrast guidelines
520
+ */
473
521
  declare const cyanDark: ColorPalette$2;
474
522
 
475
523
  type ColorPalette$1 = Theme['colors'];
524
+ /**
525
+ * Slate light palette - Modern, accessible color scheme
526
+ * Follows WCAG AA contrast guidelines
527
+ */
476
528
  declare const slateLight: ColorPalette$1;
529
+ /**
530
+ * Slate dark palette - Modern, accessible color scheme
531
+ * Follows WCAG AA contrast guidelines
532
+ */
477
533
  declare const slateDark: ColorPalette$1;
478
534
 
479
535
  type ColorPalette = Theme['colors'];
536
+ /**
537
+ * Gray light palette - Modern, accessible color scheme
538
+ * Follows WCAG AA contrast guidelines
539
+ */
480
540
  declare const grayLight: ColorPalette;
541
+ /**
542
+ * Gray dark palette - Modern, accessible color scheme
543
+ * Follows WCAG AA contrast guidelines
544
+ */
481
545
  declare const grayDark: ColorPalette;
482
546
 
483
547
  /**
@@ -488,6 +552,10 @@ declare const palettes: {
488
552
  readonly light: BaseColors;
489
553
  readonly dark: BaseColors;
490
554
  };
555
+ readonly blue: {
556
+ readonly light: BaseColors;
557
+ readonly dark: BaseColors;
558
+ };
491
559
  readonly rose: {
492
560
  readonly light: BaseColors;
493
561
  readonly dark: BaseColors;
@@ -496,6 +564,10 @@ declare const palettes: {
496
564
  readonly light: BaseColors;
497
565
  readonly dark: BaseColors;
498
566
  };
567
+ readonly teal: {
568
+ readonly light: BaseColors;
569
+ readonly dark: BaseColors;
570
+ };
499
571
  readonly violet: {
500
572
  readonly light: BaseColors;
501
573
  readonly dark: BaseColors;
package/dist/index.d.ts CHANGED
@@ -234,7 +234,7 @@ type ColorShade = keyof ColorScale;
234
234
  /**
235
235
  * Available palette preset names
236
236
  */
237
- type PaletteName = 'indigo' | 'rose' | 'emerald' | 'violet' | 'amber' | 'cyan' | 'slate' | 'gray';
237
+ type PaletteName = 'indigo' | 'blue' | 'rose' | 'emerald' | 'teal' | 'violet' | 'amber' | 'cyan' | 'slate' | 'gray';
238
238
 
239
239
  type ThemeProviderProps<T extends Theme = Theme> = {
240
240
  theme: T;
@@ -449,35 +449,99 @@ declare const colors: {
449
449
  };
450
450
 
451
451
  type ColorPalette$7 = Theme['colors'];
452
+ /**
453
+ * Indigo light palette - Modern, accessible color scheme
454
+ * Follows WCAG AA contrast guidelines
455
+ */
452
456
  declare const indigoLight: ColorPalette$7;
457
+ /**
458
+ * Indigo dark palette - Modern, accessible color scheme
459
+ * Follows WCAG AA contrast guidelines
460
+ */
453
461
  declare const indigoDark: ColorPalette$7;
454
462
 
455
463
  type ColorPalette$6 = Theme['colors'];
464
+ /**
465
+ * Rose light palette - Modern, accessible color scheme
466
+ * Follows WCAG AA contrast guidelines
467
+ */
456
468
  declare const roseLight: ColorPalette$6;
469
+ /**
470
+ * Rose dark palette - Modern, accessible color scheme
471
+ * Follows WCAG AA contrast guidelines
472
+ */
457
473
  declare const roseDark: ColorPalette$6;
458
474
 
459
475
  type ColorPalette$5 = Theme['colors'];
476
+ /**
477
+ * Emerald light palette - Modern, accessible color scheme
478
+ * Follows WCAG AA contrast guidelines
479
+ */
460
480
  declare const emeraldLight: ColorPalette$5;
481
+ /**
482
+ * Emerald dark palette - Modern, accessible color scheme
483
+ * Follows WCAG AA contrast guidelines
484
+ */
461
485
  declare const emeraldDark: ColorPalette$5;
462
486
 
463
487
  type ColorPalette$4 = Theme['colors'];
488
+ /**
489
+ * Violet light palette - Modern, accessible color scheme
490
+ * Follows WCAG AA contrast guidelines
491
+ */
464
492
  declare const violetLight: ColorPalette$4;
493
+ /**
494
+ * Violet dark palette - Modern, accessible color scheme
495
+ * Follows WCAG AA contrast guidelines
496
+ */
465
497
  declare const violetDark: ColorPalette$4;
466
498
 
467
499
  type ColorPalette$3 = Theme['colors'];
500
+ /**
501
+ * Amber light palette - Modern, accessible color scheme
502
+ * Follows WCAG AA contrast guidelines
503
+ */
468
504
  declare const amberLight: ColorPalette$3;
505
+ /**
506
+ * Amber dark palette - Modern, accessible color scheme
507
+ * Follows WCAG AA contrast guidelines
508
+ */
469
509
  declare const amberDark: ColorPalette$3;
470
510
 
471
511
  type ColorPalette$2 = Theme['colors'];
512
+ /**
513
+ * Cyan light palette - Modern, accessible color scheme
514
+ * Follows WCAG AA contrast guidelines
515
+ */
472
516
  declare const cyanLight: ColorPalette$2;
517
+ /**
518
+ * Cyan dark palette - Modern, accessible color scheme
519
+ * Follows WCAG AA contrast guidelines
520
+ */
473
521
  declare const cyanDark: ColorPalette$2;
474
522
 
475
523
  type ColorPalette$1 = Theme['colors'];
524
+ /**
525
+ * Slate light palette - Modern, accessible color scheme
526
+ * Follows WCAG AA contrast guidelines
527
+ */
476
528
  declare const slateLight: ColorPalette$1;
529
+ /**
530
+ * Slate dark palette - Modern, accessible color scheme
531
+ * Follows WCAG AA contrast guidelines
532
+ */
477
533
  declare const slateDark: ColorPalette$1;
478
534
 
479
535
  type ColorPalette = Theme['colors'];
536
+ /**
537
+ * Gray light palette - Modern, accessible color scheme
538
+ * Follows WCAG AA contrast guidelines
539
+ */
480
540
  declare const grayLight: ColorPalette;
541
+ /**
542
+ * Gray dark palette - Modern, accessible color scheme
543
+ * Follows WCAG AA contrast guidelines
544
+ */
481
545
  declare const grayDark: ColorPalette;
482
546
 
483
547
  /**
@@ -488,6 +552,10 @@ declare const palettes: {
488
552
  readonly light: BaseColors;
489
553
  readonly dark: BaseColors;
490
554
  };
555
+ readonly blue: {
556
+ readonly light: BaseColors;
557
+ readonly dark: BaseColors;
558
+ };
491
559
  readonly rose: {
492
560
  readonly light: BaseColors;
493
561
  readonly dark: BaseColors;
@@ -496,6 +564,10 @@ declare const palettes: {
496
564
  readonly light: BaseColors;
497
565
  readonly dark: BaseColors;
498
566
  };
567
+ readonly teal: {
568
+ readonly light: BaseColors;
569
+ readonly dark: BaseColors;
570
+ };
499
571
  readonly violet: {
500
572
  readonly light: BaseColors;
501
573
  readonly dark: BaseColors;
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import {createContext,useLayoutEffect,useContext}from'react';import {jsx}from'react/jsx-runtime';var de=typeof document>"u",te=null,I=null,se=[],ue=new Map([["backgroundColor","background-color"],["borderRadius","border-radius"],["fontSize","font-size"],["fontWeight","font-weight"],["lineHeight","line-height"],["marginTop","margin-top"],["marginBottom","margin-bottom"],["marginLeft","margin-left"],["marginRight","margin-right"],["paddingTop","padding-top"],["paddingBottom","padding-bottom"],["paddingLeft","padding-left"],["paddingRight","padding-right"],["textAlign","text-align"],["justifyContent","justify-content"],["alignItems","align-items"],["flexDirection","flex-direction"],["flexWrap","flex-wrap"],["boxShadow","box-shadow"],["zIndex","z-index"]]),ne=new Map,E=new Set,ae=new Set,ie=new Set,ye=0,Ge=new Set(["animationIterationCount","columnCount","fillOpacity","flexGrow","flexShrink","fontWeight","lineHeight","opacity","order","orphans","widows","zIndex","zoom"]),ge=100;if(!de){let r=document.getElementById("aurora-styles");if(r)I=r.sheet;else {let o=document.createElement("style");o.id="aurora-styles",document.head.appendChild(o),I=o.sheet;}}var z=r=>{let o=te;return te=r,o},ce=()=>te?.(),w=r=>{if(de)se.push(r);else if(I)try{I.insertRule(r,I.cssRules.length);}catch{}},D=r=>{let o=ue.get(r);return o||(o=r.replace(/([A-Z])/g,"-$1").toLowerCase(),ue.set(r,o)),o},W=r=>r.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").toLowerCase(),Je=/expression\s*\(|javascript\s*:|data\s*:\s*text\/html|behavior\s*:|@import|<\s*\/?\s*style/i,Se=r=>{let o=r.replace(/\0/g,"");return Je.test(o)?(Ue&&console.warn(`[Aurora] Potentially dangerous CSS value blocked: "${r.slice(0,50)}..."`),"unset"):o},Ue=typeof process<"u"&&process.env?.NODE_ENV!=="production",be=(r,o)=>typeof o=="number"&&!Ge.has(r)?`${o}px`:Se(String(o)),V=r=>{let o=[];for(let t in r){let c=r[t];c!=null&&typeof c!="object"&&o.push(`${D(t)}:${be(t,c)}`);}return o.join(";")+(o.length?";":"")};var he=r=>{let o=r.length;if(o<=4){let t="";for(let c=0;c<o;c++){let f=r[c],y=typeof f;if(f===void 0)t+=c?"|u":"u";else if(f===null)t+=c?"|n":"n";else if(y==="string"||y==="number"||y==="boolean")t+=c?"|"+f:String(f);else return JSON.stringify(r)}return t}return JSON.stringify(r)},xe=r=>{if(r==="true"||r==="false"||/^-?\d+$/.test(r))return r;if(/^[a-z][a-z0-9]*$/i.test(r))return W(r);let o=5381;for(let t=0;t<r.length;t++)o=(o<<5)+o^r.charCodeAt(t);return (o>>>0).toString(36)},ve=r=>{let o=new Map;return {getOrSet(t,c){let f=o.get(t);if(f!==void 0)return o.delete(t),o.set(t,f),f;let y=c();if(o.size>=r){let b=o.keys().next().value;b!==void 0&&o.delete(b);}return o.set(t,y),y}}},pe=r=>{let o=JSON.stringify(r),t=5381;for(let c=0;c<o.length;c++)t=(t<<5)+t^o.charCodeAt(c);return (t>>>0).toString(36)},Te=r=>{let o=5381;for(let t=0;t<r.length;t++)o=(o<<5)+o^r.charCodeAt(t);return (o>>>0).toString(36)},Xe=r=>{if(!E.has(r))return E.add(r),r;let o=2,t=`${r}-${o}`;for(;E.has(t);)t=`${r}-${++o}`;return E.add(t),t},le=(r,o,t=false)=>{if(t){let b=pe(r),x=ne.get(b);if(x)return x}let c=Xe(o),f=[],y=[];for(let b in r){let x=r[b],$=b[0];if($==="@"){let C=V(x);C&&y.push(`${b}{.${c}{${C}}}`);}else if($==="&"){let C=V(x);if(C){let Ze=b.replace(/&/g,`.${c}`);y.push(`${Ze}{${C}}`);}}else if($===":"){let C=V(x);C&&y.push(`.${c}${b}{${C}}`);}else x!=null&&typeof x!="object"&&f.push(`${D(b)}:${be(b,x)}`);}f.length&&w(`.${c}{${f.join(";")}}`);for(let b of y)w(b);return t&&ne.set(pe(r),c),c},ke=r=>ae.has(r),He=r=>{ae.add(r);},Ce=()=>(++ye).toString(36),we=r=>ie.has(r),Pe=r=>{ie.add(r);},fe=()=>se,Ae=()=>{se=[],ne.clear(),E.clear(),ae.clear(),ie.clear(),ye=0;};var $e=createContext(void 0),er=({theme:r,children:o})=>{let t=z(()=>r);return useLayoutEffect(()=>()=>{z(t);},[t]),jsx($e.Provider,{value:r,children:o})},rr=()=>{let r=useContext($e);if(!r)throw new Error("useTheme must be used within a ThemeProvider");return r};var Re=r=>{let o=JSON.stringify(r),t=5381;for(let c=0;c<o.length;c++)t=(t<<5)+t^o.charCodeAt(c);return (t>>>0).toString(36)},K=new Map,tr=50;var me=(r,o)=>{let t={...r};for(let c in o){let f=o[c],y=r[c];f!==void 0&&typeof f=="object"&&f!==null&&!Array.isArray(f)&&typeof y=="object"&&y!==null?t[c]=me(y,f):f!==void 0&&(t[c]=f);}return t},De=(r,o)=>{let t=`${Re(r)}_${Re(o)}`,c=K.get(t);if(c)return c;let f=me(r,o);if(K.size>=tr){let y=K.keys().next().value;y&&K.delete(y);}return K.set(t,f),f},nr=(r,...o)=>o.reduce((t,c)=>me(t,c),r),sr=r=>o=>De(o,r);var e={25:"#fcfcfc",50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"};var p={25:"#fcfcfd",50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"};var N={25:"#fcfcfb",50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"};var a={25:"#fffbfb",50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"};var h={25:"#fffcfa",50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"};var s={25:"#fffdfb",50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"};var R={25:"#fefef9",50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"};var j={25:"#fbfef8",50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"};var k={25:"#f6fef9",50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"};var n={25:"#f5fefc",50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"};var P={25:"#f4fefe",50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"};var g={25:"#f3fefe",50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"};var u={25:"#f5faff",50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"};var l={25:"#f5f8ff",50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"};var m={25:"#f5f7ff",50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"};var d={25:"#f8f5ff",50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"};var A={25:"#faf5ff",50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"};var _={25:"#fef5ff",50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"};var H={25:"#fef5f9",50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"};var S={25:"#fff5f6",50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"};var i="#ffffff",ar="#000000",ir="transparent",cr="currentColor",lr={gray:e,slate:p,stone:N,red:a,orange:h,amber:s,yellow:R,lime:j,green:k,emerald:n,teal:P,cyan:g,sky:u,blue:l,indigo:m,violet:d,purple:A,fuchsia:_,pink:H,rose:S,white:"#ffffff",black:"#000000",transparent:"transparent",current:"currentColor"};var v={background:i,surface:e[50],surfaceHover:e[100],surfaceActive:e[200],elevated:i,overlay:"rgba(9, 9, 11, 0.5)",text:e[950],textSecondary:e[600],textTertiary:e[400],textInverse:e[50],border:e[200],borderHover:e[300],borderSubtle:e[100],disabled:e[100],disabledText:e[400]},T={background:e[950],surface:e[900],surfaceHover:e[800],surfaceActive:e[700],elevated:e[800],overlay:"rgba(0, 0, 0, 0.8)",text:e[50],textSecondary:e[400],textTertiary:e[500],textInverse:e[900],border:e[800],borderHover:e[700],borderSubtle:e[900],disabled:e[800],disabledText:e[600]};var L={...v,primary:m[500],onPrimary:i,primaryHover:m[600],primaryActive:m[700],primarySubtle:m[50],secondary:e[500],onSecondary:i,secondaryHover:e[600],secondaryActive:e[700],secondarySubtle:e[100],accent:g[500],onAccent:i,accentHover:g[600],accentSubtle:g[50],borderFocus:m[500],success:n[500],onSuccess:i,successHover:n[600],successSubtle:n[50],warning:h[500],onWarning:i,warningHover:h[600],warningSubtle:h[50],error:a[500],onError:i,errorHover:a[600],errorSubtle:a[50],info:l[500],onInfo:i,infoHover:l[600],infoSubtle:l[50],link:m[500],linkHover:m[600],linkVisited:d[500],focus:m[500]},F={...T,primary:m[400],onPrimary:m[950],primaryHover:m[300],primaryActive:m[500],primarySubtle:m[900],secondary:e[400],onSecondary:e[900],secondaryHover:e[300],secondaryActive:e[200],secondarySubtle:e[800],accent:g[400],onAccent:g[950],accentHover:g[300],accentSubtle:g[900],borderFocus:m[400],success:n[400],onSuccess:n[950],successHover:n[300],successSubtle:n[900],warning:h[400],onWarning:h[950],warningHover:h[300],warningSubtle:h[900],error:a[400],onError:a[950],errorHover:a[300],errorSubtle:a[900],info:l[400],onInfo:l[950],infoHover:l[300],infoSubtle:l[900],link:m[400],linkHover:m[300],linkVisited:d[400],focus:m[400]};var O={...v,primary:S[500],onPrimary:i,primaryHover:S[600],primaryActive:S[700],primarySubtle:S[50],secondary:e[500],onSecondary:i,secondaryHover:e[600],secondaryActive:e[700],secondarySubtle:e[100],accent:d[500],onAccent:i,accentHover:d[600],accentSubtle:d[50],borderFocus:S[500],success:n[500],onSuccess:i,successHover:n[600],successSubtle:n[50],warning:s[500],onWarning:i,warningHover:s[600],warningSubtle:s[50],error:a[500],onError:i,errorHover:a[600],errorSubtle:a[50],info:u[500],onInfo:i,infoHover:u[600],infoSubtle:u[50],link:S[500],linkHover:S[600],linkVisited:A[500],focus:S[500]},B={...T,primary:S[400],onPrimary:S[950],primaryHover:S[300],primaryActive:S[500],primarySubtle:S[900],secondary:e[400],onSecondary:e[900],secondaryHover:e[300],secondaryActive:e[200],secondarySubtle:e[800],accent:d[400],onAccent:d[950],accentHover:d[300],accentSubtle:d[900],borderFocus:S[400],success:n[400],onSuccess:n[950],successHover:n[300],successSubtle:n[900],warning:s[400],onWarning:s[950],warningHover:s[300],warningSubtle:s[900],error:a[400],onError:a[950],errorHover:a[300],errorSubtle:a[900],info:u[400],onInfo:u[950],infoHover:u[300],infoSubtle:u[900],link:S[400],linkHover:S[300],linkVisited:A[400],focus:S[400]};var M={...v,primary:n[500],onPrimary:i,primaryHover:n[600],primaryActive:n[700],primarySubtle:n[50],secondary:e[500],onSecondary:i,secondaryHover:e[600],secondaryActive:e[700],secondarySubtle:e[100],accent:s[500],onAccent:i,accentHover:s[600],accentSubtle:s[50],borderFocus:n[500],success:k[500],onSuccess:i,successHover:k[600],successSubtle:k[50],warning:h[500],onWarning:i,warningHover:h[600],warningSubtle:h[50],error:a[500],onError:i,errorHover:a[600],errorSubtle:a[50],info:u[500],onInfo:i,infoHover:u[600],infoSubtle:u[50],link:n[500],linkHover:n[600],linkVisited:P[500],focus:n[500]},Z={...T,primary:n[400],onPrimary:n[950],primaryHover:n[300],primaryActive:n[500],primarySubtle:n[900],secondary:e[400],onSecondary:e[900],secondaryHover:e[300],secondaryActive:e[200],secondarySubtle:e[800],accent:s[400],onAccent:s[950],accentHover:s[300],accentSubtle:s[900],borderFocus:n[400],success:k[400],onSuccess:k[950],successHover:k[300],successSubtle:k[900],warning:h[400],onWarning:h[950],warningHover:h[300],warningSubtle:h[900],error:a[400],onError:a[950],errorHover:a[300],errorSubtle:a[900],info:u[400],onInfo:u[950],infoHover:u[300],infoSubtle:u[900],link:n[400],linkHover:n[300],linkVisited:P[400],focus:n[400]};var G={...v,primary:d[500],onPrimary:i,primaryHover:d[600],primaryActive:d[700],primarySubtle:d[50],secondary:e[500],onSecondary:i,secondaryHover:e[600],secondaryActive:e[700],secondarySubtle:e[100],accent:H[500],onAccent:i,accentHover:H[600],accentSubtle:H[50],borderFocus:d[500],success:n[500],onSuccess:i,successHover:n[600],successSubtle:n[50],warning:s[500],onWarning:i,warningHover:s[600],warningSubtle:s[50],error:a[500],onError:i,errorHover:a[600],errorSubtle:a[50],info:l[500],onInfo:i,infoHover:l[600],infoSubtle:l[50],link:d[500],linkHover:d[600],linkVisited:A[500],focus:d[500]},J={...T,primary:d[400],onPrimary:d[950],primaryHover:d[300],primaryActive:d[500],primarySubtle:d[900],secondary:e[400],onSecondary:e[900],secondaryHover:e[300],secondaryActive:e[200],secondarySubtle:e[800],accent:H[400],onAccent:H[950],accentHover:H[300],accentSubtle:H[900],borderFocus:d[400],success:n[400],onSuccess:n[950],successHover:n[300],successSubtle:n[900],warning:s[400],onWarning:s[950],warningHover:s[300],warningSubtle:s[900],error:a[400],onError:a[950],errorHover:a[300],errorSubtle:a[900],info:l[400],onInfo:l[950],infoHover:l[300],infoSubtle:l[900],link:d[400],linkHover:d[300],linkVisited:A[400],focus:d[400]};var U={...v,primary:s[500],onPrimary:i,primaryHover:s[600],primaryActive:s[700],primarySubtle:s[50],secondary:e[500],onSecondary:i,secondaryHover:e[600],secondaryActive:e[700],secondarySubtle:e[100],accent:m[500],onAccent:i,accentHover:m[600],accentSubtle:m[50],borderFocus:s[500],success:n[500],onSuccess:i,successHover:n[600],successSubtle:n[50],warning:h[500],onWarning:i,warningHover:h[600],warningSubtle:h[50],error:a[500],onError:i,errorHover:a[600],errorSubtle:a[50],info:u[500],onInfo:i,infoHover:u[600],infoSubtle:u[50],link:s[600],linkHover:s[700],linkVisited:R[700],focus:s[500]},X={...T,primary:s[400],onPrimary:s[950],primaryHover:s[300],primaryActive:s[500],primarySubtle:s[900],secondary:e[400],onSecondary:e[900],secondaryHover:e[300],secondaryActive:e[200],secondarySubtle:e[800],accent:m[400],onAccent:m[950],accentHover:m[300],accentSubtle:m[900],borderFocus:s[400],success:n[400],onSuccess:n[950],successHover:n[300],successSubtle:n[900],warning:h[400],onWarning:h[950],warningHover:h[300],warningSubtle:h[900],error:a[400],onError:a[950],errorHover:a[300],errorSubtle:a[900],info:u[400],onInfo:u[950],infoHover:u[300],infoSubtle:u[900],link:s[400],linkHover:s[300],linkVisited:R[400],focus:s[400]};var q={...v,primary:g[500],onPrimary:i,primaryHover:g[600],primaryActive:g[700],primarySubtle:g[50],secondary:e[500],onSecondary:i,secondaryHover:e[600],secondaryActive:e[700],secondarySubtle:e[100],accent:S[500],onAccent:i,accentHover:S[600],accentSubtle:S[50],borderFocus:g[500],success:n[500],onSuccess:i,successHover:n[600],successSubtle:n[50],warning:s[500],onWarning:i,warningHover:s[600],warningSubtle:s[50],error:a[500],onError:i,errorHover:a[600],errorSubtle:a[50],info:l[500],onInfo:i,infoHover:l[600],infoSubtle:l[50],link:g[500],linkHover:g[600],linkVisited:P[600],focus:g[500]},Q={...T,primary:g[400],onPrimary:g[950],primaryHover:g[300],primaryActive:g[500],primarySubtle:g[900],secondary:e[400],onSecondary:e[900],secondaryHover:e[300],secondaryActive:e[200],secondarySubtle:e[800],accent:S[400],onAccent:S[950],accentHover:S[300],accentSubtle:S[900],borderFocus:g[400],success:n[400],onSuccess:n[950],successHover:n[300],successSubtle:n[900],warning:s[400],onWarning:s[950],warningHover:s[300],warningSubtle:s[900],error:a[400],onError:a[950],errorHover:a[300],errorSubtle:a[900],info:l[400],onInfo:l[950],infoHover:l[300],infoSubtle:l[900],link:g[400],linkHover:g[300],linkVisited:P[400],focus:g[400]};var Y={...v,primary:p[600],onPrimary:i,primaryHover:p[700],primaryActive:p[800],primarySubtle:p[100],secondary:p[500],onSecondary:i,secondaryHover:p[600],secondaryActive:p[700],secondarySubtle:p[100],accent:l[500],onAccent:i,accentHover:l[600],accentSubtle:l[50],borderFocus:p[600],success:n[500],onSuccess:i,successHover:n[600],successSubtle:n[50],warning:s[500],onWarning:i,warningHover:s[600],warningSubtle:s[50],error:a[500],onError:i,errorHover:a[600],errorSubtle:a[50],info:u[500],onInfo:i,infoHover:u[600],infoSubtle:u[50],link:p[700],linkHover:p[800],linkVisited:p[600],focus:p[600]},ee={...T,primary:p[300],onPrimary:p[900],primaryHover:p[200],primaryActive:p[400],primarySubtle:p[800],secondary:p[400],onSecondary:p[900],secondaryHover:p[300],secondaryActive:p[200],secondarySubtle:p[800],accent:l[400],onAccent:l[950],accentHover:l[300],accentSubtle:l[900],borderFocus:p[300],success:n[400],onSuccess:n[950],successHover:n[300],successSubtle:n[900],warning:s[400],onWarning:s[950],warningHover:s[300],warningSubtle:s[900],error:a[400],onError:a[950],errorHover:a[300],errorSubtle:a[900],info:u[400],onInfo:u[950],infoHover:u[300],infoSubtle:u[900],link:p[300],linkHover:p[200],linkVisited:p[400],focus:p[300]};var re={...v,primary:e[900],onPrimary:i,primaryHover:e[800],primaryActive:e[950],primarySubtle:e[100],secondary:e[500],onSecondary:i,secondaryHover:e[600],secondaryActive:e[700],secondarySubtle:e[100],accent:m[500],onAccent:i,accentHover:m[600],accentSubtle:m[50],borderFocus:e[900],success:n[500],onSuccess:i,successHover:n[600],successSubtle:n[50],warning:s[500],onWarning:i,warningHover:s[600],warningSubtle:s[50],error:a[500],onError:i,errorHover:a[600],errorSubtle:a[50],info:l[500],onInfo:i,infoHover:l[600],infoSubtle:l[50],link:e[900],linkHover:e[700],linkVisited:e[600],focus:e[900]},oe={...T,primary:e[50],onPrimary:e[900],primaryHover:e[100],primaryActive:e[200],primarySubtle:e[800],secondary:e[400],onSecondary:e[900],secondaryHover:e[300],secondaryActive:e[200],secondarySubtle:e[800],accent:m[400],onAccent:m[950],accentHover:m[300],accentSubtle:m[900],borderFocus:e[50],success:n[400],onSuccess:n[950],successHover:n[300],successSubtle:n[900],warning:s[400],onWarning:s[950],warningHover:s[300],warningSubtle:s[900],error:a[400],onError:a[950],errorHover:a[300],errorSubtle:a[900],info:l[400],onInfo:l[950],infoHover:l[300],infoSubtle:l[900],link:e[50],linkHover:e[200],linkVisited:e[300],focus:e[50]};var fr={indigo:{light:L,dark:F},rose:{light:O,dark:B},emerald:{light:M,dark:Z},violet:{light:G,dark:J},amber:{light:U,dark:X},cyan:{light:q,dark:Q},slate:{light:Y,dark:ee},gray:{light:re,dark:oe}};var Le={none:"0","2xs":"0.125rem",xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem","3xl":"4rem","4xl":"6rem","5xl":"8rem"},Fe={none:"0",xs:"0.125rem",sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem",full:"9999px"},Ee={none:"none",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"},Ie={"2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.25rem",xl:"1.5rem","2xl":"2rem","3xl":"2.5rem","4xl":"3rem","5xl":"4rem"},Ve={light:300,regular:400,medium:500,semibold:600,bold:700},We={none:1,tight:1.25,normal:1.5,relaxed:1.75},Ke={behind:-1,base:0,dropdown:1e3,overlay:1300,modal:1400,tooltip:1600},ze={fast:"150ms ease-out",normal:"250ms ease-out",slow:"350ms ease-out"},Ne=L,je=F,_e={colors:Ne,spacing:Le,radius:Fe,shadows:Ee,fontSize:Ie,fontWeight:Ve,lineHeight:We,zIndex:Ke,transition:ze},mr={..._e,colors:je};var ur=()=>{let r=new Error().stack||"",o=r.match(/([A-Za-z0-9_]+)\.styles\.[tj]s/);if(o?.[1])return W(o[1]);let t=r.match(/\/([A-Za-z0-9_]+)\.[tj]sx?[:\d]*\)?$/m);return t?.[1]&&t[1]!=="createStyles"?W(t[1]):"style"},Oe=(r,o)=>{let t={};for(let c in r){let f=r[c];if(f){let y=`${o}-${W(c)}`;if(typeof f=="function"){let b=ve(ge);t[c]=(...x)=>{let $=he(x);return b.getOrSet($,()=>{let C=f(...x);return le(C,`${y}-${xe($)}`)})};}else t[c]=le(f,y,true);}}return t},pr=r=>{let o=ur();if(typeof r=="function"){let t=null,c;return new Proxy({},{get(f,y){let b=ce();if(!b)throw new Error("createStyles: Theme context not found. Make sure you are using this inside a ThemeProvider.");return (b!==c||!t)&&(t=Oe(r(b),o),c=b),t[y]}})}return Oe(r,o)};var dr=r=>{let o="";for(let c in r)o+=`${c}{${V(r[c])}}`;if(ke(o))return `aurora-kf-${Te(o)}`;let t=`aurora-kf-${Ce()}`;return w(`@keyframes ${t}{${o}}`),He(o),t};var yr=r=>{let{fontFamily:o,src:t,fontStyle:c="normal",fontWeight:f=400,fontDisplay:y="swap",unicodeRange:b}=r,x=`font-family:"${o}";`;return x+=`src:${t};`,x+=`font-style:${c};`,x+=`font-weight:${f};`,x+=`font-display:${y};`,b&&(x+=`unicode-range:${b};`),we(x)||(w(`@font-face{${x}}`),Pe(x)),o};var Be=(r,o)=>{let t="";for(let c in r){let f=r[c],y=`--${o}-${D(c)}`;f&&typeof f=="object"?t+=Be(f,`${o}-${D(c)}`):f!=null&&(t+=`${y}:${f};`);}return t},gr=(r,o="theme")=>{let t=Be(r,o);w(`:root{${t}}`);},Sr=(r,o)=>{let t=`--theme-${r.replace(/\./g,"-")}`;return o?`var(${t}, ${o})`:`var(${t})`},br=(r,o={})=>{let{prefix:t="",inject:c=false}=o,f={},y="";for(let b in r){let x=D(b),$=t?`--${t}-${x}`:`--${x}`;f[b]=`var(${$})`,c&&(y+=`${$}:${r[b]};`);}return c&&y&&w(`:root{${y}}`),f};var Me=()=>fe().join(""),hr=()=>{let r=Me();return r?`<style id="aurora-styles">${r}</style>`:""},xr=()=>{Ae();},vr=()=>[...fe()];export{er as ThemeProvider,s as amber,X as amberDark,U as amberLight,ar as black,l as blue,xr as clearSSRRules,lr as colors,pr as createStyles,De as createTheme,sr as createThemeVariant,Sr as cssVar,br as cssVariables,cr as current,g as cyan,Q as cyanDark,q as cyanLight,Ne as defaultColors,je as defaultDarkColors,mr as defaultDarkTheme,Ie as defaultFontSize,Ve as defaultFontWeight,We as defaultLineHeight,Fe as defaultRadius,Ee as defaultShadows,Le as defaultSpacing,_e as defaultTheme,ze as defaultTransition,Ke as defaultZIndex,n as emerald,Z as emeraldDark,M as emeraldLight,yr as fontFace,_ as fuchsia,vr as getSSRRulesArray,hr as getSSRStyleTag,Me as getSSRStyles,ce as getTheme,e as gray,oe as grayDark,re as grayLight,k as green,m as indigo,F as indigoDark,L as indigoLight,gr as injectCssVariables,w as insertRule,dr as keyframes,j as lime,nr as mergeThemes,h as orange,fr as palettes,H as pink,A as purple,a as red,S as rose,B as roseDark,O as roseLight,Se as sanitizeCssValue,z as setThemeContextGetter,u as sky,p as slate,ee as slateDark,Y as slateLight,N as stone,P as teal,ir as transparent,rr as useTheme,d as violet,J as violetDark,G as violetLight,i as white,R as yellow};//# sourceMappingURL=index.js.map
1
+ import {createContext,useLayoutEffect,useContext}from'react';import {jsx}from'react/jsx-runtime';var de=typeof document>"u",te=null,E=null,se=[],me=new Map([["backgroundColor","background-color"],["borderRadius","border-radius"],["fontSize","font-size"],["fontWeight","font-weight"],["lineHeight","line-height"],["marginTop","margin-top"],["marginBottom","margin-bottom"],["marginLeft","margin-left"],["marginRight","margin-right"],["paddingTop","padding-top"],["paddingBottom","padding-bottom"],["paddingLeft","padding-left"],["paddingRight","padding-right"],["textAlign","text-align"],["justifyContent","justify-content"],["alignItems","align-items"],["flexDirection","flex-direction"],["flexWrap","flex-wrap"],["boxShadow","box-shadow"],["zIndex","z-index"]]),ne=new Map,F=new Set,ae=new Set,ie=new Set,ye=0,qe=new Set(["animationIterationCount","columnCount","fillOpacity","flexGrow","flexShrink","fontWeight","lineHeight","opacity","order","orphans","widows","zIndex","zoom"]),ge=100;if(!de){let t=document.getElementById("aurora-styles");if(t)E=t.sheet;else {let n=document.createElement("style");n.id="aurora-styles",document.head.appendChild(n),E=n.sheet;}}var K=t=>{let n=te;return te=t,n},ce=()=>te?.(),w=t=>{if(de)se.push(t);else if(E)try{E.insertRule(t,E.cssRules.length);}catch{}},D=t=>{let n=me.get(t);return n||(n=t.replace(/([A-Z])/g,"-$1").toLowerCase(),me.set(t,n)),n},V=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").toLowerCase(),Qe=/expression\s*\(|javascript\s*:|data\s*:\s*text\/html|behavior\s*:|@import|<\s*\/?\s*style/i,Se=t=>{let n=t.replace(/\0/g,"");return Qe.test(n)?(Ye&&console.warn(`[Aurora] Potentially dangerous CSS value blocked: "${t.slice(0,50)}..."`),"unset"):n},Ye=typeof process<"u"&&process.env?.NODE_ENV!=="production",be=(t,n)=>typeof n=="number"&&!qe.has(t)?`${n}px`:Se(String(n)),I=t=>{let n=[];for(let i in t){let l=t[i];l!=null&&typeof l!="object"&&n.push(`${D(i)}:${be(i,l)}`);}return n.join(";")+(n.length?";":"")};var he=t=>{let n=t.length;if(n<=4){let i="";for(let l=0;l<n;l++){let f=t[l],p=typeof f;if(f===void 0)i+=l?"|u":"u";else if(f===null)i+=l?"|n":"n";else if(p==="string"||p==="number"||p==="boolean")i+=l?"|"+f:String(f);else return JSON.stringify(t)}return i}return JSON.stringify(t)},ve=t=>{if(t==="true"||t==="false"||/^-?\d+$/.test(t))return t;if(/^[a-z][a-z0-9]*$/i.test(t))return V(t);let n=5381;for(let i=0;i<t.length;i++)n=(n<<5)+n^t.charCodeAt(i);return (n>>>0).toString(36)},xe=t=>{let n=new Map;return {getOrSet(i,l){let f=n.get(i);if(f!==void 0)return n.delete(i),n.set(i,f),f;let p=l();if(n.size>=t){let y=n.keys().next().value;y!==void 0&&n.delete(y);}return n.set(i,p),p}}},pe=t=>{let n=JSON.stringify(t),i=5381;for(let l=0;l<n.length;l++)i=(i<<5)+i^n.charCodeAt(l);return (i>>>0).toString(36)},He=t=>{let n=5381;for(let i=0;i<t.length;i++)n=(n<<5)+n^t.charCodeAt(i);return (n>>>0).toString(36)},er=t=>{if(!F.has(t))return F.add(t),t;let n=2,i=`${t}-${n}`;for(;F.has(i);)i=`${t}-${++n}`;return F.add(i),i},le=(t,n,i=false)=>{if(i){let y=pe(t),b=ne.get(y);if(b)return b}let l=er(n),f=[],p=[];for(let y in t){let b=t[y],P=y[0];if(P==="@"){let C=I(b);C&&p.push(`${y}{.${l}{${C}}}`);}else if(P==="&"){let C=I(b);if(C){let Xe=y.replace(/&/g,`.${l}`);p.push(`${Xe}{${C}}`);}}else if(P===":"){let C=I(b);C&&p.push(`.${l}${y}{${C}}`);}else b!=null&&typeof b!="object"&&f.push(`${D(y)}:${be(y,b)}`);}f.length&&w(`.${l}{${f.join(";")}}`);for(let y of p)w(y);return i&&ne.set(pe(t),l),l},ke=t=>ae.has(t),Te=t=>{ae.add(t);},Ce=()=>(++ye).toString(36),we=t=>ie.has(t),Ae=t=>{ie.add(t);},fe=()=>se,Pe=()=>{se=[],ne.clear(),F.clear(),ae.clear(),ie.clear(),ye=0;};var $e=createContext(void 0),nr=({theme:t,children:n})=>{let i=K(()=>t);return useLayoutEffect(()=>()=>{K(i);},[i]),jsx($e.Provider,{value:t,children:n})},sr=()=>{let t=useContext($e);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t};var De=t=>{let n=JSON.stringify(t),i=5381;for(let l=0;l<n.length;l++)i=(i<<5)+i^n.charCodeAt(l);return (i>>>0).toString(36)},W=new Map,ir=50;var ue=(t,n)=>{let i={...t};for(let l in n){let f=n[l],p=t[l];f!==void 0&&typeof f=="object"&&f!==null&&!Array.isArray(f)&&typeof p=="object"&&p!==null?i[l]=ue(p,f):f!==void 0&&(i[l]=f);}return i},Re=(t,n)=>{let i=`${De(t)}_${De(n)}`,l=W.get(i);if(l)return l;let f=ue(t,n);if(W.size>=ir){let p=W.keys().next().value;p&&W.delete(p);}return W.set(i,f),f},cr=(t,...n)=>n.reduce((i,l)=>ue(i,l),t),lr=t=>n=>Re(n,t);var h={25:"#fcfcfc",50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"};var e={25:"#fcfcfd",50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"};var z={25:"#fcfcfb",50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"};var s={25:"#fffbfb",50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"};var k={25:"#fffcfa",50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"};var r={25:"#fffdfb",50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"};var $={25:"#fefef9",50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"};var N={25:"#fbfef8",50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"};var a={25:"#f6fef9",50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"};var v={25:"#f5fefc",50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"};var S={25:"#f4fefe",50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"};var d={25:"#f3fefe",50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"};var j={25:"#f5faff",50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"};var o={25:"#f5f8ff",50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"};var u={25:"#f5f7ff",50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"};var m={25:"#f8f5ff",50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"};var A={25:"#faf5ff",50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"};var _={25:"#fef5ff",50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"};var T={25:"#fef5f9",50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"};var g={25:"#fff5f6",50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"};var c="#ffffff",fr="#000000",ur="transparent",mr="currentColor",pr={gray:h,slate:e,stone:z,red:s,orange:k,amber:r,yellow:$,lime:N,green:a,emerald:v,teal:S,cyan:d,sky:j,blue:o,indigo:u,violet:m,purple:A,fuchsia:_,pink:T,rose:g,white:"#ffffff",black:"#000000",transparent:"transparent",current:"currentColor"};var x={background:e[50],surface:c,surfaceHover:e[200],surfaceActive:e[300],elevated:c,overlay:"rgba(15, 23, 42, 0.6)",text:e[800],textSecondary:e[500],textTertiary:e[400],textInverse:c,border:e[200],borderHover:e[300],borderSubtle:e[100],disabled:e[300],disabledText:e[400]},H={background:e[950],surface:e[900],surfaceHover:e[800],surfaceActive:e[700],elevated:e[800],overlay:"rgba(0, 0, 0, 0.8)",text:e[50],textSecondary:e[400],textTertiary:e[500],textInverse:e[900],border:e[800],borderHover:e[700],borderSubtle:e[900],disabled:e[700],disabledText:e[500]};var R={...x,primary:u[600],onPrimary:c,primaryHover:u[700],primaryActive:u[800],primarySubtle:u[50],secondary:e[100],onSecondary:e[700],secondaryHover:e[200],secondaryActive:e[300],secondarySubtle:e[50],accent:d[500],onAccent:c,accentHover:d[600],accentSubtle:d[50],borderFocus:u[500],success:a[500],onSuccess:c,successHover:a[600],successSubtle:a[50],warning:r[400],onWarning:r[900],warningHover:r[500],warningSubtle:r[50],error:s[400],onError:c,errorHover:s[500],errorSubtle:s[50],info:o[400],onInfo:c,infoHover:o[500],infoSubtle:o[50],link:u[500],linkHover:u[600],linkVisited:m[600],focus:u[500]},L={...H,primary:u[500],onPrimary:c,primaryHover:u[400],primaryActive:u[600],primarySubtle:u[950],secondary:e[800],onSecondary:e[200],secondaryHover:e[700],secondaryActive:e[600],secondarySubtle:e[900],accent:d[500],onAccent:c,accentHover:d[400],accentSubtle:d[950],borderFocus:u[400],success:a[400],onSuccess:a[950],successHover:a[300],successSubtle:a[950],warning:r[400],onWarning:r[950],warningHover:r[300],warningSubtle:r[950],error:s[400],onError:s[950],errorHover:s[300],errorSubtle:s[950],info:o[400],onInfo:o[950],infoHover:o[300],infoSubtle:o[950],link:u[400],linkHover:u[300],linkVisited:m[400],focus:u[400]};var Le={...x,primary:o[600],onPrimary:c,primaryHover:o[700],primaryActive:o[800],primarySubtle:o[50],secondary:e[100],onSecondary:e[700],secondaryHover:e[200],secondaryActive:e[300],secondarySubtle:e[50],accent:o[600],onAccent:c,accentHover:o[700],accentSubtle:o[50],borderFocus:o[500],success:a[500],onSuccess:c,successHover:a[600],successSubtle:a[50],warning:r[400],onWarning:r[900],warningHover:r[500],warningSubtle:r[50],error:s[400],onError:c,errorHover:s[500],errorSubtle:s[50],info:o[400],onInfo:c,infoHover:o[500],infoSubtle:o[50],link:o[500],linkHover:o[600],linkVisited:m[600],focus:o[500]},Fe={...H,primary:o[500],onPrimary:c,primaryHover:o[400],primaryActive:o[600],primarySubtle:o[950],secondary:e[800],onSecondary:e[200],secondaryHover:e[700],secondaryActive:e[600],secondarySubtle:e[900],accent:o[500],onAccent:c,accentHover:o[400],accentSubtle:o[950],borderFocus:o[400],success:a[400],onSuccess:a[950],successHover:a[300],successSubtle:a[950],warning:r[400],onWarning:r[950],warningHover:r[300],warningSubtle:r[950],error:s[400],onError:s[950],errorHover:s[300],errorSubtle:s[950],info:o[400],onInfo:o[950],infoHover:o[300],infoSubtle:o[950],link:o[400],linkHover:o[300],linkVisited:m[400],focus:o[400]};var O={...x,primary:g[600],onPrimary:c,primaryHover:g[700],primaryActive:g[800],primarySubtle:g[50],secondary:e[100],onSecondary:e[700],secondaryHover:e[200],secondaryActive:e[300],secondarySubtle:e[50],accent:m[600],onAccent:c,accentHover:m[700],accentSubtle:m[50],borderFocus:g[500],success:a[500],onSuccess:c,successHover:a[600],successSubtle:a[50],warning:r[400],onWarning:r[900],warningHover:r[500],warningSubtle:r[50],error:s[400],onError:c,errorHover:s[500],errorSubtle:s[50],info:o[400],onInfo:c,infoHover:o[500],infoSubtle:o[50],link:g[500],linkHover:g[600],linkVisited:A[600],focus:g[500]},B={...H,primary:g[500],onPrimary:c,primaryHover:g[400],primaryActive:g[600],primarySubtle:g[950],secondary:e[800],onSecondary:e[200],secondaryHover:e[700],secondaryActive:e[600],secondarySubtle:e[900],accent:m[500],onAccent:c,accentHover:m[400],accentSubtle:m[950],borderFocus:g[400],success:a[400],onSuccess:a[950],successHover:a[300],successSubtle:a[950],warning:r[400],onWarning:r[950],warningHover:r[300],warningSubtle:r[950],error:s[400],onError:s[950],errorHover:s[300],errorSubtle:s[950],info:o[400],onInfo:o[950],infoHover:o[300],infoSubtle:o[950],link:g[400],linkHover:g[300],linkVisited:A[400],focus:g[400]};var M={...x,primary:v[600],onPrimary:c,primaryHover:v[700],primaryActive:v[800],primarySubtle:v[50],secondary:e[100],onSecondary:e[700],secondaryHover:e[200],secondaryActive:e[300],secondarySubtle:e[50],accent:r[500],onAccent:r[900],accentHover:r[600],accentSubtle:r[50],borderFocus:v[500],success:a[500],onSuccess:c,successHover:a[600],successSubtle:a[50],warning:r[400],onWarning:r[900],warningHover:r[500],warningSubtle:r[50],error:s[400],onError:c,errorHover:s[500],errorSubtle:s[50],info:o[400],onInfo:c,infoHover:o[500],infoSubtle:o[50],link:v[600],linkHover:v[700],linkVisited:S[700],focus:v[500]},Z={...H,primary:v[500],onPrimary:c,primaryHover:v[400],primaryActive:v[600],primarySubtle:v[950],secondary:e[800],onSecondary:e[200],secondaryHover:e[700],secondaryActive:e[600],secondarySubtle:e[900],accent:r[500],onAccent:r[950],accentHover:r[400],accentSubtle:r[950],borderFocus:v[400],success:a[400],onSuccess:a[950],successHover:a[300],successSubtle:a[950],warning:r[400],onWarning:r[950],warningHover:r[300],warningSubtle:r[950],error:s[400],onError:s[950],errorHover:s[300],errorSubtle:s[950],info:o[400],onInfo:o[950],infoHover:o[300],infoSubtle:o[950],link:v[400],linkHover:v[300],linkVisited:S[400],focus:v[400]};var Ee={...x,primary:S[600],onPrimary:c,primaryHover:S[700],primaryActive:S[800],primarySubtle:S[50],secondary:e[100],onSecondary:e[700],secondaryHover:e[200],secondaryActive:e[300],secondarySubtle:e[50],accent:k[500],onAccent:c,accentHover:k[600],accentSubtle:k[50],borderFocus:S[500],success:a[500],onSuccess:c,successHover:a[600],successSubtle:a[50],warning:r[400],onWarning:r[900],warningHover:r[500],warningSubtle:r[50],error:s[400],onError:c,errorHover:s[500],errorSubtle:s[50],info:o[400],onInfo:c,infoHover:o[500],infoSubtle:o[50],link:S[600],linkHover:S[700],linkVisited:d[700],focus:S[500]},Ie={...H,primary:S[500],onPrimary:c,primaryHover:S[400],primaryActive:S[600],primarySubtle:S[950],secondary:e[800],onSecondary:e[200],secondaryHover:e[700],secondaryActive:e[600],secondarySubtle:e[900],accent:k[500],onAccent:c,accentHover:k[400],accentSubtle:k[950],borderFocus:S[400],success:a[400],onSuccess:a[950],successHover:a[300],successSubtle:a[950],warning:r[400],onWarning:r[950],warningHover:r[300],warningSubtle:r[950],error:s[400],onError:s[950],errorHover:s[300],errorSubtle:s[950],info:o[400],onInfo:o[950],infoHover:o[300],infoSubtle:o[950],link:S[400],linkHover:S[300],linkVisited:d[400],focus:S[400]};var G={...x,primary:m[600],onPrimary:c,primaryHover:m[700],primaryActive:m[800],primarySubtle:m[50],secondary:e[100],onSecondary:e[700],secondaryHover:e[200],secondaryActive:e[300],secondarySubtle:e[50],accent:T[500],onAccent:c,accentHover:T[600],accentSubtle:T[50],borderFocus:m[500],success:a[500],onSuccess:c,successHover:a[600],successSubtle:a[50],warning:r[400],onWarning:r[900],warningHover:r[500],warningSubtle:r[50],error:s[400],onError:c,errorHover:s[500],errorSubtle:s[50],info:o[400],onInfo:c,infoHover:o[500],infoSubtle:o[50],link:m[500],linkHover:m[600],linkVisited:A[600],focus:m[500]},J={...H,primary:m[500],onPrimary:c,primaryHover:m[400],primaryActive:m[600],primarySubtle:m[950],secondary:e[800],onSecondary:e[200],secondaryHover:e[700],secondaryActive:e[600],secondarySubtle:e[900],accent:T[500],onAccent:c,accentHover:T[400],accentSubtle:T[950],borderFocus:m[400],success:a[400],onSuccess:a[950],successHover:a[300],successSubtle:a[950],warning:r[400],onWarning:r[950],warningHover:r[300],warningSubtle:r[950],error:s[400],onError:s[950],errorHover:s[300],errorSubtle:s[950],info:o[400],onInfo:o[950],infoHover:o[300],infoSubtle:o[950],link:m[400],linkHover:m[300],linkVisited:A[400],focus:m[400]};var U={...x,primary:r[500],onPrimary:r[900],primaryHover:r[600],primaryActive:r[700],primarySubtle:r[50],secondary:e[100],onSecondary:e[700],secondaryHover:e[200],secondaryActive:e[300],secondarySubtle:e[50],accent:u[600],onAccent:c,accentHover:u[700],accentSubtle:u[50],borderFocus:r[500],success:a[500],onSuccess:c,successHover:a[600],successSubtle:a[50],warning:r[400],onWarning:r[900],warningHover:r[500],warningSubtle:r[50],error:s[400],onError:c,errorHover:s[500],errorSubtle:s[50],info:o[400],onInfo:c,infoHover:o[500],infoSubtle:o[50],link:r[600],linkHover:r[700],linkVisited:$[700],focus:r[500]},X={...H,primary:r[500],onPrimary:r[950],primaryHover:r[400],primaryActive:r[600],primarySubtle:r[950],secondary:e[800],onSecondary:e[200],secondaryHover:e[700],secondaryActive:e[600],secondarySubtle:e[900],accent:u[500],onAccent:c,accentHover:u[400],accentSubtle:u[950],borderFocus:r[400],success:a[400],onSuccess:a[950],successHover:a[300],successSubtle:a[950],warning:r[400],onWarning:r[950],warningHover:r[300],warningSubtle:r[950],error:s[400],onError:s[950],errorHover:s[300],errorSubtle:s[950],info:o[400],onInfo:o[950],infoHover:o[300],infoSubtle:o[950],link:r[400],linkHover:r[300],linkVisited:$[400],focus:r[400]};var q={...x,primary:d[600],onPrimary:c,primaryHover:d[700],primaryActive:d[800],primarySubtle:d[50],secondary:e[100],onSecondary:e[700],secondaryHover:e[200],secondaryActive:e[300],secondarySubtle:e[50],accent:g[500],onAccent:c,accentHover:g[600],accentSubtle:g[50],borderFocus:d[500],success:a[500],onSuccess:c,successHover:a[600],successSubtle:a[50],warning:r[400],onWarning:r[900],warningHover:r[500],warningSubtle:r[50],error:s[400],onError:c,errorHover:s[500],errorSubtle:s[50],info:o[400],onInfo:c,infoHover:o[500],infoSubtle:o[50],link:d[600],linkHover:d[700],linkVisited:S[700],focus:d[500]},Q={...H,primary:d[500],onPrimary:c,primaryHover:d[400],primaryActive:d[600],primarySubtle:d[950],secondary:e[800],onSecondary:e[200],secondaryHover:e[700],secondaryActive:e[600],secondarySubtle:e[900],accent:g[500],onAccent:c,accentHover:g[400],accentSubtle:g[950],borderFocus:d[400],success:a[400],onSuccess:a[950],successHover:a[300],successSubtle:a[950],warning:r[400],onWarning:r[950],warningHover:r[300],warningSubtle:r[950],error:s[400],onError:s[950],errorHover:s[300],errorSubtle:s[950],info:o[400],onInfo:o[950],infoHover:o[300],infoSubtle:o[950],link:d[400],linkHover:d[300],linkVisited:S[400],focus:d[400]};var Y={...x,primary:e[700],onPrimary:c,primaryHover:e[800],primaryActive:e[900],primarySubtle:e[100],secondary:e[100],onSecondary:e[700],secondaryHover:e[200],secondaryActive:e[300],secondarySubtle:e[50],accent:o[600],onAccent:c,accentHover:o[700],accentSubtle:o[50],borderFocus:e[600],success:a[500],onSuccess:c,successHover:a[600],successSubtle:a[50],warning:r[400],onWarning:r[900],warningHover:r[500],warningSubtle:r[50],error:s[400],onError:c,errorHover:s[500],errorSubtle:s[50],info:o[400],onInfo:c,infoHover:o[500],infoSubtle:o[50],link:e[700],linkHover:e[800],linkVisited:e[600],focus:e[600]},ee={...H,primary:e[300],onPrimary:e[900],primaryHover:e[200],primaryActive:e[400],primarySubtle:e[900],secondary:e[800],onSecondary:e[200],secondaryHover:e[700],secondaryActive:e[600],secondarySubtle:e[900],accent:o[500],onAccent:c,accentHover:o[400],accentSubtle:o[950],borderFocus:e[300],success:a[400],onSuccess:a[950],successHover:a[300],successSubtle:a[950],warning:r[400],onWarning:r[950],warningHover:r[300],warningSubtle:r[950],error:s[400],onError:s[950],errorHover:s[300],errorSubtle:s[950],info:o[400],onInfo:o[950],infoHover:o[300],infoSubtle:o[950],link:e[300],linkHover:e[200],linkVisited:e[400],focus:e[300]};var re={...x,primary:h[900],onPrimary:c,primaryHover:h[800],primaryActive:h[950],primarySubtle:h[100],secondary:e[100],onSecondary:e[700],secondaryHover:e[200],secondaryActive:e[300],secondarySubtle:e[50],accent:u[600],onAccent:c,accentHover:u[700],accentSubtle:u[50],borderFocus:h[900],success:a[500],onSuccess:c,successHover:a[600],successSubtle:a[50],warning:r[400],onWarning:r[900],warningHover:r[500],warningSubtle:r[50],error:s[400],onError:c,errorHover:s[500],errorSubtle:s[50],info:o[400],onInfo:c,infoHover:o[500],infoSubtle:o[50],link:h[900],linkHover:h[700],linkVisited:h[600],focus:h[900]},oe={...H,primary:h[50],onPrimary:h[900],primaryHover:h[100],primaryActive:h[200],primarySubtle:h[900],secondary:e[800],onSecondary:e[200],secondaryHover:e[700],secondaryActive:e[600],secondarySubtle:e[900],accent:u[500],onAccent:c,accentHover:u[400],accentSubtle:u[950],borderFocus:h[50],success:a[400],onSuccess:a[950],successHover:a[300],successSubtle:a[950],warning:r[400],onWarning:r[950],warningHover:r[300],warningSubtle:r[950],error:s[400],onError:s[950],errorHover:s[300],errorSubtle:s[950],info:o[400],onInfo:o[950],infoHover:o[300],infoSubtle:o[950],link:h[50],linkHover:h[200],linkVisited:h[300],focus:h[50]};var dr={indigo:{light:R,dark:L},blue:{light:Le,dark:Fe},rose:{light:O,dark:B},emerald:{light:M,dark:Z},teal:{light:Ee,dark:Ie},violet:{light:G,dark:J},amber:{light:U,dark:X},cyan:{light:q,dark:Q},slate:{light:Y,dark:ee},gray:{light:re,dark:oe}};var Ve={none:"0","2xs":"0.125rem",xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem","3xl":"4rem","4xl":"6rem","5xl":"8rem"},We={none:"0",xs:"0.125rem",sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem",full:"9999px"},Ke={none:"none",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"},ze={"2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.25rem",xl:"1.5rem","2xl":"2rem","3xl":"2.5rem","4xl":"3rem","5xl":"4rem"},Ne={light:300,regular:400,medium:500,semibold:600,bold:700},je={none:1,tight:1.25,normal:1.5,relaxed:1.75},_e={behind:-1,base:0,dropdown:1e3,overlay:1300,modal:1400,tooltip:1600},Oe={fast:"150ms ease-out",normal:"250ms ease-out",slow:"350ms ease-out"},Be=R,Me=L,Ze={colors:Be,spacing:Ve,radius:We,shadows:Ke,fontSize:ze,fontWeight:Ne,lineHeight:je,zIndex:_e,transition:Oe},yr={...Ze,colors:Me};var gr=()=>{let t=new Error().stack||"",n=t.match(/([A-Za-z0-9_]+)\.styles\.[tj]s/);if(n?.[1])return V(n[1]);let i=t.match(/\/([A-Za-z0-9_]+)\.[tj]sx?[:\d]*\)?$/m);return i?.[1]&&i[1]!=="createStyles"?V(i[1]):"style"},Ge=(t,n)=>{let i={};for(let l in t){let f=t[l];if(f){let p=`${n}-${V(l)}`;if(typeof f=="function"){let y=xe(ge);i[l]=(...b)=>{let P=he(b);return y.getOrSet(P,()=>{let C=f(...b);return le(C,`${p}-${ve(P)}`)})};}else i[l]=le(f,p,true);}}return i},Sr=t=>{let n=gr();if(typeof t=="function"){let i=null,l;return new Proxy({},{get(f,p){let y=ce();if(!y)throw new Error("createStyles: Theme context not found. Make sure you are using this inside a ThemeProvider.");return (y!==l||!i)&&(i=Ge(t(y),n),l=y),i[p]}})}return Ge(t,n)};var br=t=>{let n="";for(let l in t)n+=`${l}{${I(t[l])}}`;if(ke(n))return `aurora-kf-${He(n)}`;let i=`aurora-kf-${Ce()}`;return w(`@keyframes ${i}{${n}}`),Te(n),i};var hr=t=>{let{fontFamily:n,src:i,fontStyle:l="normal",fontWeight:f=400,fontDisplay:p="swap",unicodeRange:y}=t,b=`font-family:"${n}";`;return b+=`src:${i};`,b+=`font-style:${l};`,b+=`font-weight:${f};`,b+=`font-display:${p};`,y&&(b+=`unicode-range:${y};`),we(b)||(w(`@font-face{${b}}`),Ae(b)),n};var Je=(t,n)=>{let i="";for(let l in t){let f=t[l],p=`--${n}-${D(l)}`;f&&typeof f=="object"?i+=Je(f,`${n}-${D(l)}`):f!=null&&(i+=`${p}:${f};`);}return i},vr=(t,n="theme")=>{let i=Je(t,n);w(`:root{${i}}`);},xr=(t,n)=>{let i=`--theme-${t.replace(/\./g,"-")}`;return n?`var(${i}, ${n})`:`var(${i})`},Hr=(t,n={})=>{let{prefix:i="",inject:l=false}=n,f={},p="";for(let y in t){let b=D(y),P=i?`--${i}-${b}`:`--${b}`;f[y]=`var(${P})`,l&&(p+=`${P}:${t[y]};`);}return l&&p&&w(`:root{${p}}`),f};var Ue=()=>fe().join(""),kr=()=>{let t=Ue();return t?`<style id="aurora-styles">${t}</style>`:""},Tr=()=>{Pe();},Cr=()=>[...fe()];export{nr as ThemeProvider,r as amber,X as amberDark,U as amberLight,fr as black,o as blue,Tr as clearSSRRules,pr as colors,Sr as createStyles,Re as createTheme,lr as createThemeVariant,xr as cssVar,Hr as cssVariables,mr as current,d as cyan,Q as cyanDark,q as cyanLight,Be as defaultColors,Me as defaultDarkColors,yr as defaultDarkTheme,ze as defaultFontSize,Ne as defaultFontWeight,je as defaultLineHeight,We as defaultRadius,Ke as defaultShadows,Ve as defaultSpacing,Ze as defaultTheme,Oe as defaultTransition,_e as defaultZIndex,v as emerald,Z as emeraldDark,M as emeraldLight,hr as fontFace,_ as fuchsia,Cr as getSSRRulesArray,kr as getSSRStyleTag,Ue as getSSRStyles,ce as getTheme,h as gray,oe as grayDark,re as grayLight,a as green,u as indigo,L as indigoDark,R as indigoLight,vr as injectCssVariables,w as insertRule,br as keyframes,N as lime,cr as mergeThemes,k as orange,dr as palettes,T as pink,A as purple,s as red,g as rose,B as roseDark,O as roseLight,Se as sanitizeCssValue,K as setThemeContextGetter,j as sky,e as slate,ee as slateDark,Y as slateLight,z as stone,S as teal,ur as transparent,sr as useTheme,m as violet,J as violetDark,G as violetLight,c as white,$ as yellow};//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map