@aurora-ds/theme 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -448,41 +448,65 @@ declare const colors: {
448
448
  readonly current: "currentColor";
449
449
  };
450
450
 
451
- type ColorPalette$7 = Theme['colors'];
451
+ type ColorPalette$9 = Theme['colors'];
452
452
  /**
453
453
  * Indigo light palette - Modern, accessible color scheme
454
454
  * Follows WCAG AA contrast guidelines
455
455
  */
456
- declare const indigoLight: ColorPalette$7;
456
+ declare const indigoLight: ColorPalette$9;
457
457
  /**
458
458
  * Indigo dark palette - Modern, accessible color scheme
459
459
  * Follows WCAG AA contrast guidelines
460
460
  */
461
- declare const indigoDark: ColorPalette$7;
461
+ declare const indigoDark: ColorPalette$9;
462
462
 
463
- type ColorPalette$6 = Theme['colors'];
463
+ type ColorPalette$8 = Theme['colors'];
464
+ /**
465
+ * Blue light palette - Modern, accessible color scheme
466
+ * Follows WCAG AA contrast guidelines
467
+ */
468
+ declare const blueLight: ColorPalette$8;
469
+ /**
470
+ * Blue dark palette - Modern, accessible color scheme
471
+ * Follows WCAG AA contrast guidelines
472
+ */
473
+ declare const blueDark: ColorPalette$8;
474
+
475
+ type ColorPalette$7 = Theme['colors'];
464
476
  /**
465
477
  * Rose light palette - Modern, accessible color scheme
466
478
  * Follows WCAG AA contrast guidelines
467
479
  */
468
- declare const roseLight: ColorPalette$6;
480
+ declare const roseLight: ColorPalette$7;
469
481
  /**
470
482
  * Rose dark palette - Modern, accessible color scheme
471
483
  * Follows WCAG AA contrast guidelines
472
484
  */
473
- declare const roseDark: ColorPalette$6;
485
+ declare const roseDark: ColorPalette$7;
474
486
 
475
- type ColorPalette$5 = Theme['colors'];
487
+ type ColorPalette$6 = Theme['colors'];
476
488
  /**
477
489
  * Emerald light palette - Modern, accessible color scheme
478
490
  * Follows WCAG AA contrast guidelines
479
491
  */
480
- declare const emeraldLight: ColorPalette$5;
492
+ declare const emeraldLight: ColorPalette$6;
481
493
  /**
482
494
  * Emerald dark palette - Modern, accessible color scheme
483
495
  * Follows WCAG AA contrast guidelines
484
496
  */
485
- declare const emeraldDark: ColorPalette$5;
497
+ declare const emeraldDark: ColorPalette$6;
498
+
499
+ type ColorPalette$5 = Theme['colors'];
500
+ /**
501
+ * Teal light palette - Modern, accessible color scheme
502
+ * Follows WCAG AA contrast guidelines
503
+ */
504
+ declare const tealLight: ColorPalette$5;
505
+ /**
506
+ * Teal dark palette - Modern, accessible color scheme
507
+ * Follows WCAG AA contrast guidelines
508
+ */
509
+ declare const tealDark: ColorPalette$5;
486
510
 
487
511
  type ColorPalette$4 = Theme['colors'];
488
512
  /**
@@ -764,4 +788,4 @@ declare const insertRule: (rule: string) => void;
764
788
  */
765
789
  declare const sanitizeCssValue: (value: string) => string;
766
790
 
767
- export { type BaseColors, type BaseFontSize, type BaseFontWeight, type BaseLineHeight, type BaseRadius, type BaseShadows, type BaseSpacing, type BaseTransition, type BaseZIndex, type ColorName, type ColorScale, type ColorShade, type DeepPartial, type ExtendTheme, type ExtendedTheme, type FontFaceOptions, type PaletteName, type StyleFunction, type StyleWithPseudos, type Theme, type ThemeOverride, ThemeProvider, type ThemeProviderProps, amber, amberDark, amberLight, black, blue, clearSSRRules, colors, createStyles, createTheme, createThemeVariant, cssVar, cssVariables, current, cyan, cyanDark, cyanLight, defaultColors, defaultDarkColors, defaultDarkTheme, defaultFontSize, defaultFontWeight, defaultLineHeight, defaultRadius, defaultShadows, defaultSpacing, defaultTheme, defaultTransition, defaultZIndex, emerald, emeraldDark, emeraldLight, fontFace, fuchsia, getSSRRulesArray, getSSRStyleTag, getSSRStyles, getTheme, gray, grayDark, grayLight, green, indigo, indigoDark, indigoLight, injectCssVariables, insertRule, keyframes, lime, mergeThemes, orange, palettes, pink, purple, red, rose, roseDark, roseLight, sanitizeCssValue, setThemeContextGetter, sky, slate, slateDark, slateLight, stone, teal, transparent, useTheme, violet, violetDark, violetLight, white, yellow };
791
+ export { type BaseColors, type BaseFontSize, type BaseFontWeight, type BaseLineHeight, type BaseRadius, type BaseShadows, type BaseSpacing, type BaseTransition, type BaseZIndex, type ColorName, type ColorScale, type ColorShade, type DeepPartial, type ExtendTheme, type ExtendedTheme, type FontFaceOptions, type PaletteName, type StyleFunction, type StyleWithPseudos, type Theme, type ThemeOverride, ThemeProvider, type ThemeProviderProps, amber, amberDark, amberLight, black, blue, blueDark, blueLight, clearSSRRules, colors, createStyles, createTheme, createThemeVariant, cssVar, cssVariables, current, cyan, cyanDark, cyanLight, defaultColors, defaultDarkColors, defaultDarkTheme, defaultFontSize, defaultFontWeight, defaultLineHeight, defaultRadius, defaultShadows, defaultSpacing, defaultTheme, defaultTransition, defaultZIndex, emerald, emeraldDark, emeraldLight, fontFace, fuchsia, getSSRRulesArray, getSSRStyleTag, getSSRStyles, getTheme, gray, grayDark, grayLight, green, indigo, indigoDark, indigoLight, injectCssVariables, insertRule, keyframes, lime, mergeThemes, orange, palettes, pink, purple, red, rose, roseDark, roseLight, sanitizeCssValue, setThemeContextGetter, sky, slate, slateDark, slateLight, stone, teal, tealDark, tealLight, transparent, useTheme, violet, violetDark, violetLight, white, yellow };
package/dist/index.d.ts CHANGED
@@ -448,41 +448,65 @@ declare const colors: {
448
448
  readonly current: "currentColor";
449
449
  };
450
450
 
451
- type ColorPalette$7 = Theme['colors'];
451
+ type ColorPalette$9 = Theme['colors'];
452
452
  /**
453
453
  * Indigo light palette - Modern, accessible color scheme
454
454
  * Follows WCAG AA contrast guidelines
455
455
  */
456
- declare const indigoLight: ColorPalette$7;
456
+ declare const indigoLight: ColorPalette$9;
457
457
  /**
458
458
  * Indigo dark palette - Modern, accessible color scheme
459
459
  * Follows WCAG AA contrast guidelines
460
460
  */
461
- declare const indigoDark: ColorPalette$7;
461
+ declare const indigoDark: ColorPalette$9;
462
462
 
463
- type ColorPalette$6 = Theme['colors'];
463
+ type ColorPalette$8 = Theme['colors'];
464
+ /**
465
+ * Blue light palette - Modern, accessible color scheme
466
+ * Follows WCAG AA contrast guidelines
467
+ */
468
+ declare const blueLight: ColorPalette$8;
469
+ /**
470
+ * Blue dark palette - Modern, accessible color scheme
471
+ * Follows WCAG AA contrast guidelines
472
+ */
473
+ declare const blueDark: ColorPalette$8;
474
+
475
+ type ColorPalette$7 = Theme['colors'];
464
476
  /**
465
477
  * Rose light palette - Modern, accessible color scheme
466
478
  * Follows WCAG AA contrast guidelines
467
479
  */
468
- declare const roseLight: ColorPalette$6;
480
+ declare const roseLight: ColorPalette$7;
469
481
  /**
470
482
  * Rose dark palette - Modern, accessible color scheme
471
483
  * Follows WCAG AA contrast guidelines
472
484
  */
473
- declare const roseDark: ColorPalette$6;
485
+ declare const roseDark: ColorPalette$7;
474
486
 
475
- type ColorPalette$5 = Theme['colors'];
487
+ type ColorPalette$6 = Theme['colors'];
476
488
  /**
477
489
  * Emerald light palette - Modern, accessible color scheme
478
490
  * Follows WCAG AA contrast guidelines
479
491
  */
480
- declare const emeraldLight: ColorPalette$5;
492
+ declare const emeraldLight: ColorPalette$6;
481
493
  /**
482
494
  * Emerald dark palette - Modern, accessible color scheme
483
495
  * Follows WCAG AA contrast guidelines
484
496
  */
485
- declare const emeraldDark: ColorPalette$5;
497
+ declare const emeraldDark: ColorPalette$6;
498
+
499
+ type ColorPalette$5 = Theme['colors'];
500
+ /**
501
+ * Teal light palette - Modern, accessible color scheme
502
+ * Follows WCAG AA contrast guidelines
503
+ */
504
+ declare const tealLight: ColorPalette$5;
505
+ /**
506
+ * Teal dark palette - Modern, accessible color scheme
507
+ * Follows WCAG AA contrast guidelines
508
+ */
509
+ declare const tealDark: ColorPalette$5;
486
510
 
487
511
  type ColorPalette$4 = Theme['colors'];
488
512
  /**
@@ -764,4 +788,4 @@ declare const insertRule: (rule: string) => void;
764
788
  */
765
789
  declare const sanitizeCssValue: (value: string) => string;
766
790
 
767
- export { type BaseColors, type BaseFontSize, type BaseFontWeight, type BaseLineHeight, type BaseRadius, type BaseShadows, type BaseSpacing, type BaseTransition, type BaseZIndex, type ColorName, type ColorScale, type ColorShade, type DeepPartial, type ExtendTheme, type ExtendedTheme, type FontFaceOptions, type PaletteName, type StyleFunction, type StyleWithPseudos, type Theme, type ThemeOverride, ThemeProvider, type ThemeProviderProps, amber, amberDark, amberLight, black, blue, clearSSRRules, colors, createStyles, createTheme, createThemeVariant, cssVar, cssVariables, current, cyan, cyanDark, cyanLight, defaultColors, defaultDarkColors, defaultDarkTheme, defaultFontSize, defaultFontWeight, defaultLineHeight, defaultRadius, defaultShadows, defaultSpacing, defaultTheme, defaultTransition, defaultZIndex, emerald, emeraldDark, emeraldLight, fontFace, fuchsia, getSSRRulesArray, getSSRStyleTag, getSSRStyles, getTheme, gray, grayDark, grayLight, green, indigo, indigoDark, indigoLight, injectCssVariables, insertRule, keyframes, lime, mergeThemes, orange, palettes, pink, purple, red, rose, roseDark, roseLight, sanitizeCssValue, setThemeContextGetter, sky, slate, slateDark, slateLight, stone, teal, transparent, useTheme, violet, violetDark, violetLight, white, yellow };
791
+ export { type BaseColors, type BaseFontSize, type BaseFontWeight, type BaseLineHeight, type BaseRadius, type BaseShadows, type BaseSpacing, type BaseTransition, type BaseZIndex, type ColorName, type ColorScale, type ColorShade, type DeepPartial, type ExtendTheme, type ExtendedTheme, type FontFaceOptions, type PaletteName, type StyleFunction, type StyleWithPseudos, type Theme, type ThemeOverride, ThemeProvider, type ThemeProviderProps, amber, amberDark, amberLight, black, blue, blueDark, blueLight, clearSSRRules, colors, createStyles, createTheme, createThemeVariant, cssVar, cssVariables, current, cyan, cyanDark, cyanLight, defaultColors, defaultDarkColors, defaultDarkTheme, defaultFontSize, defaultFontWeight, defaultLineHeight, defaultRadius, defaultShadows, defaultSpacing, defaultTheme, defaultTransition, defaultZIndex, emerald, emeraldDark, emeraldLight, fontFace, fuchsia, getSSRRulesArray, getSSRStyleTag, getSSRStyles, getTheme, gray, grayDark, grayLight, green, indigo, indigoDark, indigoLight, injectCssVariables, insertRule, keyframes, lime, mergeThemes, orange, palettes, pink, purple, red, rose, roseDark, roseLight, sanitizeCssValue, setThemeContextGetter, sky, slate, slateDark, slateLight, stone, teal, tealDark, tealLight, transparent, useTheme, violet, violetDark, violetLight, white, yellow };
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,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
1
+ import {createContext,useLayoutEffect,useContext}from'react';import {jsx}from'react/jsx-runtime';var be=typeof document>"u",ie=null,E=null,le=[],ge=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"]]),ce=new Map,F=new Set,fe=new Set,ue=new Set,he=0,qe=new Set(["animationIterationCount","columnCount","fillOpacity","flexGrow","flexShrink","fontWeight","lineHeight","opacity","order","orphans","widows","zIndex","zoom"]),ve=100;if(!be){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=ie;return ie=t,n},me=()=>ie?.(),w=t=>{if(be)le.push(t);else if(E)try{E.insertRule(t,E.cssRules.length);}catch{}},D=t=>{let n=ge.get(t);return n||(n=t.replace(/([A-Z])/g,"-$1").toLowerCase(),ge.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,xe=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",He=(t,n)=>typeof n=="number"&&!qe.has(t)?`${n}px`:xe(String(n)),I=t=>{let n=[];for(let i in t){let l=t[i];l!=null&&typeof l!="object"&&n.push(`${D(i)}:${He(i,l)}`);}return n.join(";")+(n.length?";":"")};var ke=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)},Te=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)},Ce=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}}},Se=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)},we=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},pe=(t,n,i=false)=>{if(i){let y=Se(t),b=ce.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)}:${He(y,b)}`);}f.length&&w(`.${l}{${f.join(";")}}`);for(let y of p)w(y);return i&&ce.set(Se(t),l),l},Ae=t=>fe.has(t),Pe=t=>{fe.add(t);},$e=()=>(++he).toString(36),De=t=>ue.has(t),Le=t=>{ue.add(t);},de=()=>le,Re=()=>{le=[],ce.clear(),F.clear(),fe.clear(),ue.clear(),he=0;};var Fe=createContext(void 0),nr=({theme:t,children:n})=>{let i=K(()=>t);return useLayoutEffect(()=>()=>{K(i);},[i]),jsx(Fe.Provider,{value:t,children:n})},sr=()=>{let t=useContext(Fe);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t};var Ee=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 ye=(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]=ye(p,f):f!==void 0&&(i[l]=f);}return i},Ie=(t,n)=>{let i=`${Ee(t)}_${Ee(n)}`,l=W.get(i);if(l)return l;let f=ye(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)=>ye(i,l),t),lr=t=>n=>Ie(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 L={...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]},R={...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 O={...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]},B={...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 M={...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]},Z={...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 G={...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]},J={...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 U={...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]},X={...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 q={...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]},Q={...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 Y={...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]},ee={...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 re={...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]},oe={...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 te={...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]},ne={...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 se={...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]},ae={...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:L,dark:R},blue:{light:O,dark:B},rose:{light:M,dark:Z},emerald:{light:G,dark:J},teal:{light:U,dark:X},violet:{light:q,dark:Q},amber:{light:Y,dark:ee},cyan:{light:re,dark:oe},slate:{light:te,dark:ne},gray:{light:se,dark:ae}};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=L,Me=R,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=Ce(ve);i[l]=(...b)=>{let P=ke(b);return y.getOrSet(P,()=>{let C=f(...b);return pe(C,`${p}-${Te(P)}`)})};}else i[l]=pe(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=me();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(Ae(n))return `aurora-kf-${we(n)}`;let i=`aurora-kf-${$e()}`;return w(`@keyframes ${i}{${n}}`),Pe(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};`),De(b)||(w(`@font-face{${b}}`),Le(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=()=>de().join(""),kr=()=>{let t=Ue();return t?`<style id="aurora-styles">${t}</style>`:""},Tr=()=>{Re();},Cr=()=>[...de()];export{nr as ThemeProvider,r as amber,ee as amberDark,Y as amberLight,fr as black,o as blue,B as blueDark,O as blueLight,Tr as clearSSRRules,pr as colors,Sr as createStyles,Ie as createTheme,lr as createThemeVariant,xr as cssVar,Hr as cssVariables,mr as current,d as cyan,oe as cyanDark,re 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,J as emeraldDark,G as emeraldLight,hr as fontFace,_ as fuchsia,Cr as getSSRRulesArray,kr as getSSRStyleTag,Ue as getSSRStyles,me as getTheme,h as gray,ae as grayDark,se as grayLight,a as green,u as indigo,R as indigoDark,L 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,Z as roseDark,M as roseLight,xe as sanitizeCssValue,K as setThemeContextGetter,j as sky,e as slate,ne as slateDark,te as slateLight,z as stone,S as teal,X as tealDark,U as tealLight,ur as transparent,sr as useTheme,m as violet,Q as violetDark,q as violetLight,c as white,$ as yellow};//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map