@ghostly-solutions/ui 0.3.10 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/chunk-dweaczp3.js +11 -0
  2. package/dist/components/badge/badge.d.ts +1 -1
  3. package/dist/components/button/button.d.ts +1 -1
  4. package/dist/components/command/command.d.ts.map +1 -1
  5. package/dist/components/kbd/kbd.d.ts +2 -0
  6. package/dist/components/kbd/kbd.d.ts.map +1 -1
  7. package/dist/components/navbar/navbar.d.ts +1 -1
  8. package/dist/components/spotlight/index.d.ts +1 -1
  9. package/dist/components/spotlight/index.d.ts.map +1 -1
  10. package/dist/components/spotlight/spotlight.d.ts +4 -7
  11. package/dist/components/spotlight/spotlight.d.ts.map +1 -1
  12. package/dist/contracts/component-contracts.d.ts +75 -0
  13. package/dist/contracts/component-contracts.d.ts.map +1 -0
  14. package/dist/contracts/events.d.ts +14 -0
  15. package/dist/contracts/events.d.ts.map +1 -0
  16. package/dist/contracts/hotkeys.d.ts +108 -0
  17. package/dist/contracts/hotkeys.d.ts.map +1 -0
  18. package/dist/contracts/index.d.ts +6 -0
  19. package/dist/contracts/index.d.ts.map +1 -0
  20. package/dist/contracts/primitives.d.ts +72 -0
  21. package/dist/contracts/primitives.d.ts.map +1 -0
  22. package/dist/contracts/theme.d.ts +24 -0
  23. package/dist/contracts/theme.d.ts.map +1 -0
  24. package/dist/hooks/use-media-query.d.ts.map +1 -1
  25. package/dist/hooks/use-platform.d.ts.map +1 -1
  26. package/dist/index.d.ts +5 -3
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +4 -4
  29. package/dist/lib/density.d.ts +3 -3
  30. package/dist/lib/density.d.ts.map +1 -1
  31. package/dist/lib/hotkey.d.ts +6 -91
  32. package/dist/lib/hotkey.d.ts.map +1 -1
  33. package/dist/lib/platform.d.ts +2 -1
  34. package/dist/lib/platform.d.ts.map +1 -1
  35. package/dist/lib/theme/constants.d.ts +3 -2
  36. package/dist/lib/theme/constants.d.ts.map +1 -1
  37. package/dist/lib/theme/system.d.ts.map +1 -1
  38. package/dist/lib/types.d.ts +1 -36
  39. package/dist/lib/types.d.ts.map +1 -1
  40. package/dist/server.d.ts +4 -2
  41. package/dist/server.d.ts.map +1 -1
  42. package/dist/server.js +1 -1
  43. package/dist/styles/index.css +1 -1
  44. package/dist/styles/themes/base.css +1 -1
  45. package/dist/styles/themes/ghost-guard.css +1 -1
  46. package/dist/styles/themes/ghostly-solutions.css +1 -1
  47. package/package.json +1 -1
  48. package/dist/chunk-h6zev10f.js +0 -11
@@ -1 +1 @@
1
- /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */:host,:root{--shadow-xs:var(--shadow-xs);--shadow-sm:var(--shadow-sm);--shadow-md:var(--shadow-md);--shadow-lg:var(--shadow-lg);--shadow-xl:var(--shadow-xl)}:root{--background:#fff;--foreground:#111318;--card:#fff;--card-foreground:#111318;--popover:#fff;--popover-foreground:#111318;--primary:#2a35d9;--primary-foreground:#fff;--secondary:#f1f3f6;--secondary-foreground:#111318;--muted:#f8f9fb;--muted-foreground:#8690a2;--accent:#f1f3f6;--accent-foreground:#111318;--destructive:#ef4444;--destructive-foreground:#fff;--border:#e2e5eb;--input:#e2e5eb;--ring:#2a35d970;--success:#10b981;--success-foreground:#fff;--warning:#f59e0b;--warning-foreground:#fff;--info:#3b82f6;--info-foreground:#fff;--chart-1:#3b4bff;--chart-2:#292bc7;--chart-3:#8b5cf6;--chart-4:#f59e0b;--chart-5:#ef4444;--radius:.625rem;--motion-duration-micro:.12s;--motion-duration-fast:.15s;--motion-duration-medium:.24s;--motion-duration-slow:.36s;--motion-duration-spring:.42s;--motion-ease-standard:cubic-bezier(.22,1,.36,1);--motion-ease-emphasized:cubic-bezier(.2,.8,.2,1);--motion-ease-productive:cubic-bezier(.16,1,.3,1);--shadow-color:var(--foreground);--shadow-xs:0 1px 2px 0 var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){:root{--shadow-xs:0 1px 2px 0 color-mix(in srgb,var(--shadow-color)10%,transparent)}}:root{--shadow-sm:0 1px 2px 0 var(--shadow-color),0 4px 8px -6px var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){:root{--shadow-sm:0 1px 2px 0 color-mix(in srgb,var(--shadow-color)10%,transparent),0 4px 8px -6px color-mix(in srgb,var(--shadow-color)18%,transparent)}}:root{--shadow-md:0 2px 4px -2px var(--shadow-color),0 10px 20px -10px var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){:root{--shadow-md:0 2px 4px -2px color-mix(in srgb,var(--shadow-color)16%,transparent),0 10px 20px -10px color-mix(in srgb,var(--shadow-color)24%,transparent)}}:root{--shadow-lg:0 4px 10px -4px var(--shadow-color),0 20px 36px -18px var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){:root{--shadow-lg:0 4px 10px -4px color-mix(in srgb,var(--shadow-color)18%,transparent),0 20px 36px -18px color-mix(in srgb,var(--shadow-color)30%,transparent)}}:root{--shadow-xl:0 10px 20px -10px var(--shadow-color),0 28px 60px -24px var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){:root{--shadow-xl:0 10px 20px -10px color-mix(in srgb,var(--shadow-color)18%,transparent),0 28px 60px -24px color-mix(in srgb,var(--shadow-color)36%,transparent)}}:root{--shadow-glass:0 1px 0 0 #ffffff73,0 16px 42px -22px var(--foreground)}@supports (color:color-mix(in lab,red,red)){:root{--shadow-glass:0 1px 0 0 #ffffff73,0 16px 42px -22px color-mix(in srgb,var(--foreground)34%,transparent)}}:root{--glow-brand-sm:0 0 0 1px var(--primary)}@supports (color:color-mix(in lab,red,red)){:root{--glow-brand-sm:0 0 0 1px color-mix(in srgb,var(--primary)36%,transparent)}}:root{--glow-brand-md:0 0 0 1px var(--primary),0 0 16px var(--primary)}@supports (color:color-mix(in lab,red,red)){:root{--glow-brand-md:0 0 0 1px color-mix(in srgb,var(--primary)40%,transparent),0 0 16px color-mix(in srgb,var(--primary)24%,transparent)}}:root{--glow-brand-lg:0 0 0 1px var(--primary),0 0 26px var(--primary)}@supports (color:color-mix(in lab,red,red)){:root{--glow-brand-lg:0 0 0 1px color-mix(in srgb,var(--primary)45%,transparent),0 0 26px color-mix(in srgb,var(--primary)30%,transparent)}}:root{--surface-glass:linear-gradient(160deg,var(--background)0%,var(--background)48%,var(--background)100%)}@supports (color:color-mix(in lab,red,red)){:root{--surface-glass:linear-gradient(160deg,color-mix(in srgb,var(--background)88%,#fff 12%)0%,color-mix(in srgb,var(--background)95%,var(--primary)5%)48%,color-mix(in srgb,var(--background)90%,#000 10%)100%)}}:root{--surface-glass-dark:linear-gradient(160deg,var(--card)0%,var(--card)50%,var(--card)100%)}@supports (color:color-mix(in lab,red,red)){:root{--surface-glass-dark:linear-gradient(160deg,color-mix(in srgb,var(--card)82%,#fff 18%)0%,color-mix(in srgb,var(--card)93%,var(--primary)7%)50%,color-mix(in srgb,var(--card)78%,#000 22%)100%)}}@layer base{*,:after,:before{border-color:var(--border)}body{background-color:var(--background);color:var(--foreground);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[role=button],button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}:disabled{cursor:not-allowed}}
1
+ /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */:host,:root{--shadow-xs:var(--shadow-xs);--shadow-sm:var(--shadow-sm);--shadow-md:var(--shadow-md);--shadow-lg:var(--shadow-lg);--shadow-xl:var(--shadow-xl)}:root{--background:#fff;--foreground:#111318;--card:#fff;--card-foreground:#111318;--popover:#fff;--popover-foreground:#111318;--primary:#2a35d9;--primary-foreground:#fff;--secondary:#f1f3f6;--secondary-foreground:#111318;--muted:#f8f9fb;--muted-foreground:#8690a2;--accent:#f1f3f6;--accent-foreground:#111318;--destructive:#ef4444;--destructive-foreground:#fff;--border:#e2e5eb;--input:#e2e5eb;--ring:#2a35d970;--success:#10b981;--success-foreground:#fff;--warning:#f59e0b;--warning-foreground:#fff;--info:#3b82f6;--info-foreground:#fff;--chart-1:#3b4bff;--chart-2:#292bc7;--chart-3:#8b5cf6;--chart-4:#f59e0b;--chart-5:#ef4444;--chart-6:#06b6d4;--chart-7:#10b981;--chart-8:#ec4899;--radius:.625rem;--motion-duration-micro:.12s;--motion-duration-fast:.15s;--motion-duration-medium:.24s;--motion-duration-slow:.36s;--motion-duration-spring:.42s;--motion-ease-standard:cubic-bezier(.22,1,.36,1);--motion-ease-emphasized:cubic-bezier(.2,.8,.2,1);--motion-ease-productive:cubic-bezier(.16,1,.3,1);--shadow-color:var(--foreground);--shadow-xs:0 1px 2px 0 var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){:root{--shadow-xs:0 1px 2px 0 color-mix(in srgb,var(--shadow-color)10%,transparent)}}:root{--shadow-sm:0 1px 2px 0 var(--shadow-color),0 4px 8px -6px var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){:root{--shadow-sm:0 1px 2px 0 color-mix(in srgb,var(--shadow-color)10%,transparent),0 4px 8px -6px color-mix(in srgb,var(--shadow-color)18%,transparent)}}:root{--shadow-md:0 2px 4px -2px var(--shadow-color),0 10px 20px -10px var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){:root{--shadow-md:0 2px 4px -2px color-mix(in srgb,var(--shadow-color)16%,transparent),0 10px 20px -10px color-mix(in srgb,var(--shadow-color)24%,transparent)}}:root{--shadow-lg:0 4px 10px -4px var(--shadow-color),0 20px 36px -18px var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){:root{--shadow-lg:0 4px 10px -4px color-mix(in srgb,var(--shadow-color)18%,transparent),0 20px 36px -18px color-mix(in srgb,var(--shadow-color)30%,transparent)}}:root{--shadow-xl:0 10px 20px -10px var(--shadow-color),0 28px 60px -24px var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){:root{--shadow-xl:0 10px 20px -10px color-mix(in srgb,var(--shadow-color)18%,transparent),0 28px 60px -24px color-mix(in srgb,var(--shadow-color)36%,transparent)}}:root{--shadow-glass:0 1px 0 0 #ffffff73,0 16px 42px -22px var(--foreground)}@supports (color:color-mix(in lab,red,red)){:root{--shadow-glass:0 1px 0 0 #ffffff73,0 16px 42px -22px color-mix(in srgb,var(--foreground)34%,transparent)}}:root{--glow-brand-sm:0 0 0 1px var(--primary)}@supports (color:color-mix(in lab,red,red)){:root{--glow-brand-sm:0 0 0 1px color-mix(in srgb,var(--primary)36%,transparent)}}:root{--glow-brand-md:0 0 0 1px var(--primary),0 0 16px var(--primary)}@supports (color:color-mix(in lab,red,red)){:root{--glow-brand-md:0 0 0 1px color-mix(in srgb,var(--primary)40%,transparent),0 0 16px color-mix(in srgb,var(--primary)24%,transparent)}}:root{--glow-brand-lg:0 0 0 1px var(--primary),0 0 26px var(--primary)}@supports (color:color-mix(in lab,red,red)){:root{--glow-brand-lg:0 0 0 1px color-mix(in srgb,var(--primary)45%,transparent),0 0 26px color-mix(in srgb,var(--primary)30%,transparent)}}:root{--surface-glass:linear-gradient(160deg,var(--background)0%,var(--background)48%,var(--background)100%)}@supports (color:color-mix(in lab,red,red)){:root{--surface-glass:linear-gradient(160deg,color-mix(in srgb,var(--background)88%,#fff 12%)0%,color-mix(in srgb,var(--background)95%,var(--primary)5%)48%,color-mix(in srgb,var(--background)90%,#000 10%)100%)}}:root{--surface-glass-dark:linear-gradient(160deg,var(--card)0%,var(--card)50%,var(--card)100%)}@supports (color:color-mix(in lab,red,red)){:root{--surface-glass-dark:linear-gradient(160deg,color-mix(in srgb,var(--card)82%,#fff 18%)0%,color-mix(in srgb,var(--card)93%,var(--primary)7%)50%,color-mix(in srgb,var(--card)78%,#000 22%)100%)}}@layer base{*,:after,:before{border-color:var(--border)}body{background-color:var(--background);color:var(--foreground);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[role=button],button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}:disabled{cursor:not-allowed}}
@@ -1 +1 @@
1
- :root[data-gs-theme=ghost-guard]{--radius:0.625rem;--background:#f9fafb;--foreground:#111827;--card:#fff;--card-foreground:#111827;--popover:#fff;--popover-foreground:#111827;--primary:#10b981;--primary-foreground:#fff;--secondary:#e5e7eb;--secondary-foreground:#111827;--muted:#eef1f5;--muted-foreground:#4b5563;--accent:#e5e7eb;--accent-foreground:#111827;--destructive:#ef4444;--destructive-foreground:#fff;--border:#e5e7eb;--input:#e5e7eb;--ring:#10b98159;--success:#10b981;--success-foreground:#fff;--warning:#f59e0b;--warning-foreground:#fff;--info:#292bc7;--info-foreground:#fff}:root[data-gs-theme=ghost-guard].dark{--shadow-color:#000;--background:#020617;--foreground:#e8ecf7;--card:#070b14;--card-foreground:#e8ecf7;--popover:#060a16;--popover-foreground:#e8ecf7;--primary:#10b981;--primary-foreground:#fff;--secondary:#0f162b;--secondary-foreground:#e8ecf7;--muted:#0d1427;--muted-foreground:#a6b0c3;--accent:#0f162b;--accent-foreground:#e8ecf7;--destructive:#fb7185;--destructive-foreground:#fff;--border:#ffffff1a;--input:#ffffff24;--ring:#10b98173;--success:#34d399;--success-foreground:#fff;--warning:#ffd166;--warning-foreground:#fff;--info:#9aa3ff;--info-foreground:#fff}
1
+ :root[data-gs-theme=ghost-guard]{--radius:0.625rem;--background:#f9fafb;--foreground:#111827;--card:#fff;--card-foreground:#111827;--popover:#fff;--popover-foreground:#111827;--primary:#10b981;--primary-foreground:#fff;--secondary:#e5e7eb;--secondary-foreground:#111827;--muted:#eef1f5;--muted-foreground:#4b5563;--accent:#e5e7eb;--accent-foreground:#111827;--destructive:#ef4444;--destructive-foreground:#fff;--border:#e5e7eb;--input:#e5e7eb;--ring:#10b98159;--success:#10b981;--success-foreground:#fff;--warning:#f59e0b;--warning-foreground:#fff;--info:#292bc7;--info-foreground:#fff;--chart-1:#10b981;--chart-2:#3b82f6;--chart-3:#8b5cf6;--chart-4:#f59e0b;--chart-5:#ef4444;--chart-6:#06b6d4;--chart-7:#f97316;--chart-8:#ec4899}:root[data-gs-theme=ghost-guard].dark{--shadow-color:#000;--background:#020617;--foreground:#e8ecf7;--card:#070b14;--card-foreground:#e8ecf7;--popover:#060a16;--popover-foreground:#e8ecf7;--primary:#10b981;--primary-foreground:#fff;--secondary:#0f162b;--secondary-foreground:#e8ecf7;--muted:#0d1427;--muted-foreground:#a6b0c3;--accent:#0f162b;--accent-foreground:#e8ecf7;--destructive:#fb7185;--destructive-foreground:#fff;--border:#ffffff1a;--input:#ffffff24;--ring:#10b98173;--success:#34d399;--success-foreground:#fff;--warning:#ffd166;--warning-foreground:#fff;--info:#9aa3ff;--info-foreground:#fff;--chart-1:#34d399;--chart-2:#60a5fa;--chart-3:#d1a6ff;--chart-4:#ffd166;--chart-5:#fb7185;--chart-6:#22d3ee;--chart-7:#fb923c;--chart-8:#f472b6}
@@ -1 +1 @@
1
- :root[data-gs-theme=ghostly-solutions]{--radius:0.625rem;--background:#fff;--foreground:#111318;--card:#fff;--card-foreground:#111318;--popover:#fff;--popover-foreground:#111318;--primary:#2a35d9;--primary-foreground:#fff;--secondary:#f1f3f6;--secondary-foreground:#111318;--muted:#f8f9fb;--muted-foreground:#8690a2;--accent:#f1f3f6;--accent-foreground:#111318;--destructive:#ef4444;--destructive-foreground:#fff;--border:#e2e5eb;--input:#e2e5eb;--ring:rgba(42,53,217,.44);--success:#10b981;--success-foreground:#fff;--warning:#f59e0b;--warning-foreground:#fff;--info:#3b82f6;--info-foreground:#fff;--chart-1:#3b4bff;--chart-2:#292bc7;--chart-3:#8b5cf6;--chart-4:#f59e0b;--chart-5:#ef4444}:root[data-gs-theme=ghostly-solutions].dark{--shadow-color:#000;--background:#0a0c10;--foreground:#f0f2f5;--card:#121827;--card-foreground:#f0f2f5;--popover:#12161f;--popover-foreground:#f0f2f5;--primary:#5b63ff;--primary-foreground:#fff;--secondary:#151b2b;--secondary-foreground:#f0f2f5;--muted:#161d30;--muted-foreground:#a0a8b8;--accent:#1a2238;--accent-foreground:#f0f2f5;--destructive:#f87171;--destructive-foreground:#fff;--border:#2b3350;--input:#2b3350;--ring:rgba(91,99,255,.54);--success:#34d399;--success-foreground:#fff;--warning:#fbbf24;--warning-foreground:#fff;--info:#60a5fa;--info-foreground:#fff;--chart-1:#3b4bff;--chart-2:#9aa3ff;--chart-3:#d1a6ff;--chart-4:#ffd166;--chart-5:#fb7185}
1
+ :root[data-gs-theme=ghostly-solutions]{--radius:0.625rem;--background:#fff;--foreground:#111318;--card:#fff;--card-foreground:#111318;--popover:#fff;--popover-foreground:#111318;--primary:#2a35d9;--primary-foreground:#fff;--secondary:#f1f3f6;--secondary-foreground:#111318;--muted:#f8f9fb;--muted-foreground:#8690a2;--accent:#f1f3f6;--accent-foreground:#111318;--destructive:#ef4444;--destructive-foreground:#fff;--border:#e2e5eb;--input:#e2e5eb;--ring:rgba(42,53,217,.44);--success:#10b981;--success-foreground:#fff;--warning:#f59e0b;--warning-foreground:#fff;--info:#3b82f6;--info-foreground:#fff;--chart-1:#3b4bff;--chart-2:#292bc7;--chart-3:#8b5cf6;--chart-4:#f59e0b;--chart-5:#ef4444;--chart-6:#06b6d4;--chart-7:#10b981;--chart-8:#ec4899}:root[data-gs-theme=ghostly-solutions].dark{--shadow-color:#000;--background:#0a0c10;--foreground:#f0f2f5;--card:#121827;--card-foreground:#f0f2f5;--popover:#12161f;--popover-foreground:#f0f2f5;--primary:#5b63ff;--primary-foreground:#fff;--secondary:#151b2b;--secondary-foreground:#f0f2f5;--muted:#161d30;--muted-foreground:#a0a8b8;--accent:#1a2238;--accent-foreground:#f0f2f5;--destructive:#f87171;--destructive-foreground:#fff;--border:#2b3350;--input:#2b3350;--ring:rgba(91,99,255,.54);--success:#34d399;--success-foreground:#fff;--warning:#fbbf24;--warning-foreground:#fff;--info:#60a5fa;--info-foreground:#fff;--chart-1:#3b4bff;--chart-2:#9aa3ff;--chart-3:#d1a6ff;--chart-4:#ffd166;--chart-5:#fb7185;--chart-6:#22d3ee;--chart-7:#34d399;--chart-8:#f472b6}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghostly-solutions/ui",
3
- "version": "0.3.10",
3
+ "version": "1.0.1",
4
4
  "description": "Core UI components — Radix + Tailwind + cva",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,11 +0,0 @@
1
- import{clsx as N}from"clsx";import{twMerge as d}from"tailwind-merge";function Ef(...f){return d(N(f))}import*as K from"react";function z(...f){return(w)=>{for(let y of f)if(typeof y==="function")y(w);else if(y!=null)y.current=w}}function Df(...f){return K.useCallback(z(...f),f)}function Mf(f,w){let y=K.createContext(w);y.displayName=f;function E(){let A=K.useContext(y);if(A===void 0)throw Error(`use${f} must be used within a ${f}Provider`);return A}return[y.Provider,E,y]}function Rf(f){let w=K.createContext(void 0);w.displayName=f;function y(){return K.useContext(w)}return[w.Provider,y,w]}var I=null;function u(){if(I)return I;if(typeof navigator>"u")return I={os:"linux",isMac:!1,isWindows:!1,isLinux:!0,isMobile:!1},I;let f=navigator.userAgentData?.platform??navigator.platform??"",w=navigator.userAgent??"",y=/mac/i.test(f),E=/win/i.test(f),A=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(w)||"maxTouchPoints"in navigator&&navigator.maxTouchPoints>1&&y,D=/linux/i.test(f)&&!A;return I={os:y?"mac":E?"windows":"linux",isMac:y,isWindows:E,isLinux:D,isMobile:A},I}var Kf={Mod:"mod",Ctrl:"ctrl",Control:"control",Alt:"alt",Option:"option",Shift:"shift",Meta:"meta",Cmd:"cmd",Command:"command",Enter:"enter",Return:"return",Escape:"escape",Esc:"esc",Backspace:"backspace",Delete:"delete",Del:"del",Tab:"tab",Space:"space",ArrowUp:"arrowup",ArrowDown:"arrowdown",ArrowLeft:"arrowleft",ArrowRight:"arrowright",Up:"up",Down:"down",Left:"left",Right:"right",Plus:"plus",A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z",D0:"0",D1:"1",D2:"2",D3:"3",D4:"4",D5:"5",D6:"6",D7:"7",D8:"8",D9:"9",F1:"f1",F2:"f2",F3:"f3",F4:"f4",F5:"f5",F6:"f6",F7:"f7",F8:"f8",F9:"f9",F10:"f10",F11:"f11",F12:"f12"};function Lf(...f){return f.join("+")}var n={esc:"escape",return:"enter",del:"delete",space:" ",spacebar:" ",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",plus:"+"},G={mod:"⌘",ctrl:"⌃",control:"⌃",alt:"⌥",option:"⌥",shift:"⇧",meta:"⌘",cmd:"⌘",command:"⌘",enter:"⏎",return:"⏎",backspace:"⌫",delete:"⌦",tab:"⇥",escape:"Esc",esc:"Esc",space:"␣",up:"↑",down:"↓",left:"←",right:"→",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→"},j={mod:"Ctrl",cmd:"Ctrl",command:"Ctrl",meta:"Super",ctrl:"Ctrl",control:"Ctrl",alt:"Alt",option:"Alt",shift:"Shift",enter:"Enter",return:"Enter",backspace:"Backspace",delete:"Del",tab:"Tab",escape:"Esc",esc:"Esc",space:"Space",up:"↑",down:"↓",left:"←",right:"→",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→"};function If(f){let w=f.split("+").map((E)=>E.trim().toLowerCase()),y={key:"",mod:!1,ctrl:!1,alt:!1,shift:!1,meta:!1};for(let E of w)if(E==="mod")y.mod=!0;else if(E==="ctrl"||E==="control")y.ctrl=!0;else if(E==="alt"||E==="option")y.alt=!0;else if(E==="shift")y.shift=!0;else if(E==="meta"||E==="cmd"||E==="command")y.meta=!0;else y.key=n[E]??E;return y}function Pf(f,w){let{isMac:y}=u(),E=f.key.toLowerCase(),A=w.key.toLowerCase();if(A&&E!==A&&f.code.toLowerCase()!==`key${A}`)return!1;let D=w.meta||w.mod&&y,M=w.ctrl||w.mod&&!y;if(f.metaKey!==D)return!1;if(f.ctrlKey!==M)return!1;if(f.altKey!==w.alt)return!1;if(f.shiftKey!==w.shift)return!1;return!0}function bf(f,w){let y=w??u().isMac,E=y?G:j,A=f.split("+").map((D)=>{let M=D.trim().toLowerCase();return E[M]??D.trim().toUpperCase()});return y?A.join(""):A.join("+")}function uf(f,w){let E=w??u().isMac?G:j;return f.split("+").map((A)=>{let D=A.trim().toLowerCase();return E[D]??A.trim().toUpperCase()})}var O={light:"light",dark:"dark",system:"system"},H="data-gs-theme",P="data-gs-color-scheme",W="dark",Yf=1,Gf="gs",X="gs-theme-state",jf="gs-density",$="gs-theme-state";var r="ghostly-solutions",g=O.system,k="both",v="/",i="lax",l=31536000;function T(f){return typeof f==="object"&&f!==null}function Y(f){return f===O.light||f===O.dark||f===O.system}function q(f){return f===O.light||f===O.dark}function R(f){return typeof f==="string"&&f.trim().length>0}function J(f,w=g){if(Y(f))return f;return w}function S(f){if(!Array.isArray(f))return[];let w=f.filter(R);if(w.length===0)return[];return[...new Set(w)]}function p(f,w){let y=R(f)?f:r;if(w.length===0)return y;if(w.includes(y))return y;return w[0]??y}function Q(f,w,y){if(!R(f))return w;if(y.length===0)return f;if(y.includes(f))return f;return w}function h(f){if(f===!1)return!1;let w=f?.mode==="localStorage"||f?.mode==="cookie"||f?.mode==="both"?f.mode:k,y=R(f?.key)?f.key:X,E=R(f?.cookie?.name)?f.cookie.name:$,A=R(f?.cookie?.path)?f.cookie.path:v,D=typeof f?.cookie?.maxAge==="number"&&Number.isFinite(f.cookie.maxAge)?Math.max(0,Math.floor(f.cookie.maxAge)):l,M=f?.cookie?.sameSite==="strict"||f?.cookie?.sameSite==="none"||f?.cookie?.sameSite==="lax"?f.cookie.sameSite:i,F=f?.cookie?.secure===!0;return{mode:w,key:y,cookie:{name:E,path:A,maxAge:D,sameSite:M,secure:F}}}function _(f={}){let w=S(f.themes);return{defaultTheme:p(f.defaultTheme,w),defaultColorScheme:J(f.defaultColorScheme),themes:w,attribute:R(f.attribute)?f.attribute:H,colorSchemeAttribute:f.colorSchemeAttribute===!1?!1:R(f.colorSchemeAttribute)?f.colorSchemeAttribute:P,darkClassName:R(f.darkClassName)?f.darkClassName:W,storage:h(f.storage)}}function L(f,w={}){let y=_(w);return{theme:Q(f?.theme,y.defaultTheme,y.themes),colorScheme:J(f?.colorScheme,y.defaultColorScheme)}}function Z(f,w={}){let y=L(f,w);return JSON.stringify({theme:y.theme,colorScheme:y.colorScheme})}function x(f){if(!R(f))return null;try{let w=JSON.parse(f);if(!T(w))return null;let y=R(w.theme)?w.theme:R(w.t)?w.t:null,E=Y(w.colorScheme)?w.colorScheme:Y(w.c)?w.c:null;if(!(y&&E))return null;return{theme:y,colorScheme:E}}catch{return null}}function c(f,w){if(!(R(f)&&R(w)))return null;let y=f.split(";");for(let E of y){let A=E.trim();if(!A)continue;let D=A.indexOf("=");if(D===-1)continue;if(A.slice(0,D).trim()!==w)continue;let F=A.slice(D+1).trim();return F.length>0?F:null}return null}function C(f){return Boolean(f&&(f.mode==="localStorage"||f.mode==="both"))}function b(f){return Boolean(f&&(f.mode==="cookie"||f.mode==="both"))}function B(f,w={}){if(!R(f))return null;let y=_(w);if(!b(y.storage))return null;let E=c(f,y.storage.cookie.name);if(!R(E))return null;try{let A=decodeURIComponent(E),D=x(A);if(!D)return null;return L(D,y)}catch{return null}}function m(f){if(f==="strict")return"Strict";if(f==="none")return"None";return"Lax"}function s(f,w={}){let y=_(w);if(!b(y.storage))return null;let E=L(f,y),A=encodeURIComponent(Z(E,y)),D=y.storage.cookie,M=`${D.name}=${A}; Path=${D.path}; Max-Age=${D.maxAge}; SameSite=${m(D.sameSite)}`;if(D.secure)M+="; Secure";return M}function $f(f={}){if(typeof window>"u")return null;let w=_(f);if(C(w.storage))try{let y=window.localStorage.getItem(w.storage.key),E=x(y);if(E)return L(E,w)}catch{}if(b(w.storage))return B(window.document.cookie,w);return null}function Uf(f,w={}){if(typeof window>"u")return;let y=_(w),E=L(f,y),A=Z(E,y);if(C(y.storage))try{window.localStorage.setItem(y.storage.key,A)}catch{}if(b(y.storage)){let D=s(E,y);if(D)window.document.cookie=D}}function V(f,w){if(f===O.system)return w;return f}function a(){if(typeof window>"u"||typeof window.matchMedia!=="function")return O.light;return window.matchMedia("(prefers-color-scheme: dark)").matches?O.dark:O.light}function Tf(f={}){let w=_(f),y=R(f.state?.theme),E=Y(f.state?.colorScheme),A=L(f.state,w);if(R(f.cookieHeader)&&b(w.storage)){let M=B(f.cookieHeader,w);if(M)A=L({theme:y?f.state?.theme:M.theme,colorScheme:E?f.state?.colorScheme:M.colorScheme},w)}let D=q(f.systemColorScheme)?f.systemColorScheme:O.light;return{...A,resolvedColorScheme:V(A.colorScheme,D)}}function t(f){return T(f)&&q(f.resolvedColorScheme)}function o(f,w={},y=O.light){let E=_(w),A=L(f,E),D=t(f)?{...A,resolvedColorScheme:f.resolvedColorScheme}:{...A,resolvedColorScheme:V(A.colorScheme,y)},M={[E.attribute]:D.theme};if(E.colorSchemeAttribute)M[E.colorSchemeAttribute]=D.colorScheme;return{attributes:M,className:D.resolvedColorScheme===O.dark?E.darkClassName:"",style:{colorScheme:D.resolvedColorScheme},state:D}}function qf(f,w,y={}){let E=_(y),A=o(w,E,a());if(f.setAttribute(E.attribute,A.state.theme),E.attribute!==H)f.removeAttribute(H);if(E.colorSchemeAttribute){if(f.setAttribute(E.colorSchemeAttribute,A.state.colorScheme),E.colorSchemeAttribute!==P)f.removeAttribute(P)}else f.removeAttribute(P);if(A.state.resolvedColorScheme===O.dark)f.classList.add(E.darkClassName);else f.classList.remove(E.darkClassName);return f.style.colorScheme=A.state.resolvedColorScheme,A.state}function e(f){return f.replace(/\\/g,"\\\\").replace(/"/g,"\\\"")}function U(f,w){let y=Object.entries(w).filter(([A,D])=>R(A)&&R(D));if(y.length===0)return"";let E=y.map(([A,D])=>` --${A}: ${D};`).join(`
2
- `);return`${f} {
3
- ${E}
4
- }`}function ff(f){let w=_({attribute:f.attribute,darkClassName:f.darkClassName,defaultTheme:f.theme}),y=Q(f.theme,w.defaultTheme,[]),E=e(y),A=`:root[${w.attribute}="${E}"]`,D=`${A}.${w.darkClassName}`,M=U(A,f.light),F=f.dark?U(D,f.dark):"";if(M&&F)return`${M}
5
-
6
- ${F}
7
- `;if(M)return`${M}
8
- `;if(F)return`${F}
9
- `;return""}function Jf(f){if(!Array.isArray(f.themes)||f.themes.length===0)return"";return f.themes.map((w)=>ff({theme:w.theme,light:w.light,dark:w.dark,attribute:f.attribute,darkClassName:f.darkClassName})).filter(R).join(`
10
- `)}
11
- export{Ef as a,z as b,Df as c,Mf as d,Rf as e,u as f,Kf as g,Lf as h,If as i,Pf as j,bf as k,uf as l,O as m,H as n,P as o,W as p,Yf as q,Gf as r,X as s,jf as t,$ as u,_ as v,L as w,Z as x,x as y,B as z,s as A,$f as B,Uf as C,V as D,a as E,Tf as F,o as G,qf as H,ff as I,Jf as J};