@ghostly-solutions/ui 1.0.0 → 1.0.2
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/README.md +61 -0
- package/dist/chunk-9t5my8xn.js +11 -0
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.d.ts +6 -3
- package/dist/components/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/dist/components/badge/badge.d.ts +9 -0
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/button/button.d.ts +8 -0
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/command/command.d.ts +3 -0
- package/dist/components/command/command.d.ts.map +1 -1
- package/dist/components/context-menu/context-menu.d.ts +8 -2
- package/dist/components/context-menu/context-menu.d.ts.map +1 -1
- package/dist/components/context-menu/index.d.ts +1 -1
- package/dist/components/context-menu/index.d.ts.map +1 -1
- package/dist/components/dialog/dialog.d.ts +4 -0
- package/dist/components/dialog/dialog.d.ts.map +1 -1
- package/dist/components/form-field/form-field.d.ts +4 -0
- package/dist/components/form-field/form-field.d.ts.map +1 -1
- package/dist/components/hover-card/hover-card.d.ts +4 -1
- package/dist/components/hover-card/hover-card.d.ts.map +1 -1
- package/dist/components/multiselect/multiselect.d.ts +17 -3
- package/dist/components/multiselect/multiselect.d.ts.map +1 -1
- package/dist/components/navbar/navbar.d.ts.map +1 -1
- package/dist/components/navigation-menu/navigation-menu.d.ts +7 -6
- package/dist/components/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/components/overlay/overlay.d.ts.map +1 -1
- package/dist/components/overlay/overlay.shared.d.ts +1 -1
- package/dist/components/overlay/overlay.shared.d.ts.map +1 -1
- package/dist/components/progress/progress.d.ts +3 -0
- package/dist/components/progress/progress.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/select/select.d.ts +19 -2
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/sheet/sheet.d.ts +5 -0
- package/dist/components/sheet/sheet.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/slider/slider.d.ts +1 -0
- package/dist/components/slider/slider.d.ts.map +1 -1
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/spotlight/spotlight.d.ts.map +1 -1
- package/dist/components/stepper/stepper.d.ts.map +1 -1
- package/dist/components/tabs/tabs.d.ts.map +1 -1
- package/dist/components/toast/toaster.d.ts.map +1 -1
- package/dist/components/toast/use-toast.d.ts +1 -1
- package/dist/components/toast/use-toast.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts +7 -2
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/contracts/component-contracts.d.ts +20 -0
- package/dist/contracts/component-contracts.d.ts.map +1 -1
- package/dist/contracts/events.d.ts +6 -0
- package/dist/contracts/events.d.ts.map +1 -1
- package/dist/contracts/hotkeys.d.ts +11 -0
- package/dist/contracts/hotkeys.d.ts.map +1 -1
- package/dist/contracts/overlay.d.ts +7 -0
- package/dist/contracts/overlay.d.ts.map +1 -1
- package/dist/contracts/theme.d.ts +5 -0
- package/dist/contracts/theme.d.ts.map +1 -1
- package/dist/hooks/use-floating-indicator.d.ts +10 -0
- package/dist/hooks/use-floating-indicator.d.ts.map +1 -0
- package/dist/hooks/use-reduced-motion.d.ts +3 -1
- package/dist/hooks/use-reduced-motion.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/lib/theme/core.d.ts +3 -1
- package/dist/lib/theme/core.d.ts.map +1 -1
- package/dist/lib/theme/index.d.ts +1 -1
- package/dist/lib/theme/index.d.ts.map +1 -1
- package/dist/lib/theme/provider.d.ts.map +1 -1
- package/dist/lib/types.d.ts +3 -0
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/server.js +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/themes/base.css +1 -1
- package/dist/styles/themes/ghost-guard.css +1 -1
- package/dist/styles/themes/ghostly-solutions.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-fqe20k50.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:#
|
|
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:#f6f8fc;--foreground:#111318;--card:#fff;--card-foreground:#111318;--popover:#fff;--popover-foreground:#111318;--primary:#2a35d9;--primary-foreground:#fff;--secondary:#edf2f8;--secondary-foreground:#111318;--muted:#f2f6fb;--muted-foreground:#5e6c82;--accent:#e4ebf6;--accent-foreground:#111318;--destructive:#ef4444;--destructive-foreground:#fff;--border:#dbe3f0;--input:#eaf0f8;--ring:#2a35d957;--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);--motion-ease-spring-bounce:cubic-bezier(.34,1.56,.64,1);--motion-duration-long:.5s;--motion-duration-dramatic:.6s;--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-edge-right-sm:2px 0 8px -3px var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){:root{--shadow-edge-right-sm:2px 0 8px -3px color-mix(in srgb,var(--shadow-color)24%,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{--glow-success-sm:0 0 0 2px var(--success)}@supports (color:color-mix(in lab,red,red)){:root{--glow-success-sm:0 0 0 2px color-mix(in srgb,var(--success)20%,transparent)}}:root{--glow-success-md:0 0 0 3px var(--success),0 0 14px var(--success)}@supports (color:color-mix(in lab,red,red)){:root{--glow-success-md:0 0 0 3px color-mix(in srgb,var(--success)24%,transparent),0 0 14px color-mix(in srgb,var(--success)14%,transparent)}}:root{--glow-warning-sm:0 0 0 2px var(--warning)}@supports (color:color-mix(in lab,red,red)){:root{--glow-warning-sm:0 0 0 2px color-mix(in srgb,var(--warning)20%,transparent)}}:root{--glow-warning-md:0 0 0 3px var(--warning),0 0 14px var(--warning)}@supports (color:color-mix(in lab,red,red)){:root{--glow-warning-md:0 0 0 3px color-mix(in srgb,var(--warning)24%,transparent),0 0 14px color-mix(in srgb,var(--warning)14%,transparent)}}:root{--glow-destructive-sm:0 0 0 2px var(--destructive)}@supports (color:color-mix(in lab,red,red)){:root{--glow-destructive-sm:0 0 0 2px color-mix(in srgb,var(--destructive)20%,transparent)}}:root{--glow-destructive-md:0 0 0 3px var(--destructive),0 0 14px var(--destructive)}@supports (color:color-mix(in lab,red,red)){:root{--glow-destructive-md:0 0 0 3px color-mix(in srgb,var(--destructive)24%,transparent),0 0 14px color-mix(in srgb,var(--destructive)14%,transparent)}}:root{--glow-info-sm:0 0 0 2px var(--info)}@supports (color:color-mix(in lab,red,red)){:root{--glow-info-sm:0 0 0 2px color-mix(in srgb,var(--info)20%,transparent)}}:root{--glow-info-md:0 0 0 3px var(--info),0 0 14px var(--info)}@supports (color:color-mix(in lab,red,red)){:root{--glow-info-md:0 0 0 3px color-mix(in srgb,var(--info)24%,transparent),0 0 14px color-mix(in srgb,var(--info)14%,transparent)}}:root{--glow-primary-sm:0 0 0 2px var(--primary)}@supports (color:color-mix(in lab,red,red)){:root{--glow-primary-sm:0 0 0 2px color-mix(in srgb,var(--primary)20%,transparent)}}:root{--glow-primary-md:0 0 0 3px var(--primary),0 0 14px var(--primary)}@supports (color:color-mix(in lab,red,red)){:root{--glow-primary-md:0 0 0 3px color-mix(in srgb,var(--primary)24%,transparent),0 0 14px color-mix(in srgb,var(--primary)14%,transparent)}}:root{--shadow-success-sm:var(--shadow-sm),var(--glow-success-sm);--shadow-success-md:var(--shadow-md),var(--glow-success-md);--shadow-warning-sm:var(--shadow-sm),var(--glow-warning-sm);--shadow-warning-md:var(--shadow-md),var(--glow-warning-md);--shadow-destructive-sm:var(--shadow-sm),var(--glow-destructive-sm);--shadow-destructive-md:var(--shadow-md),var(--glow-destructive-md);--shadow-info-sm:var(--shadow-sm),var(--glow-info-sm);--shadow-info-md:var(--shadow-md),var(--glow-info-md);--shadow-primary-sm:var(--shadow-sm),var(--glow-primary-sm);--shadow-primary-md:var(--shadow-md),var(--glow-primary-md);--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}}@media (prefers-reduced-motion:reduce){:root{--motion-duration-micro:.01ms;--motion-duration-fast:.01ms;--motion-duration-medium:.01ms;--motion-duration-slow:.01ms;--motion-duration-spring:.01ms;--motion-duration-long:.01ms;--motion-duration-dramatic:.01ms}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root[data-gs-theme=ghost-guard]{--radius:0.625rem;--background:#
|
|
1
|
+
:root[data-gs-theme=ghost-guard]{--radius:0.625rem;--background:#f7fbf9;--foreground:#0b1220;--card:#fff;--card-foreground:#0b1220;--surface-1:#fff;--surface-2:#eef8f3;--surface-3:#e1f2ea;--popover:#fff;--popover-foreground:#0b1220;--primary:#0ea371;--primary-foreground:#fff;--secondary:#eaf3ef;--secondary-foreground:#0b1220;--muted:#f1f7f4;--muted-foreground:#556575;--placeholder-foreground:#91a3b2;--accent:#ddeee6;--accent-foreground:#0b1220;--destructive:#ef4444;--destructive-foreground:#fff;--success:#22c55e;--success-foreground:#052014;--warning:#f59e0b;--warning-foreground:#111827;--info:#1f3bd6;--info-foreground:#fff;--border:#d6e4dd;--input:#fff;--ring:rgba(14,163,113,.32);--chart-1:#0ea371;--chart-2:#1f3bd6;--chart-3:#7c3aed;--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:#030712;--foreground:#e6f0ec;--card:#07121a;--card-foreground:#e6f0ec;--surface-1:#07121a;--surface-2:#0b1a24;--surface-3:#0f2430;--popover:#06111b;--popover-foreground:#e6f0ec;--primary:#10b981;--primary-foreground:#04130d;--secondary:#0b1a24;--secondary-foreground:#e6f0ec;--muted:#081620;--muted-foreground:#9bb0a7;--placeholder-foreground:#5f746b;--accent:#0f2430;--accent-foreground:#e6f0ec;--destructive:#fb7185;--destructive-foreground:#16060b;--success:#34d399;--success-foreground:#052014;--warning:#ffd166;--warning-foreground:#111827;--info:#60a5fa;--info-foreground:#071426;--border:#1b2f36;--input:#081620;--ring:rgba(16,185,129,.45);--chart-1:#10b981;--chart-2:#60a5fa;--chart-3:#a78bfa;--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:#
|
|
1
|
+
:root[data-gs-theme=ghostly-solutions]{--radius:0.625rem;--background:#f6f8fb;--foreground:#0f172a;--card:#fff;--card-foreground:#0f172a;--surface-1:#fff;--surface-2:#f1f5f9;--surface-3:#e8eef7;--popover:#fff;--popover-foreground:#0f172a;--primary:#2436d6;--primary-foreground:#fff;--secondary:#eef2f7;--secondary-foreground:#0f172a;--muted:#f3f6fa;--muted-foreground:#64748b;--placeholder-foreground:#94a3b8;--accent:#e6ecf7;--accent-foreground:#0f172a;--destructive:#ef4444;--destructive-foreground:#fff;--success:#16a34a;--success-foreground:#fff;--warning:#f59e0b;--warning-foreground:#111827;--info:#2563eb;--info-foreground:#fff;--border:#d6dde8;--input:#fff;--ring:rgba(36,54,214,.35);--chart-1:#2436d6;--chart-2:#2563eb;--chart-3:#7c3aed;--chart-4:#06b6d4;--chart-5:#16a34a;--chart-6:#f59e0b;--chart-7:#ef4444;--chart-8:#ec4899}:root[data-gs-theme=ghostly-solutions].dark{--shadow-color:#000;--background:#0b1020;--foreground:#e5e7eb;--card:#0f172a;--card-foreground:#e5e7eb;--surface-1:#0f172a;--surface-2:#111c33;--surface-3:#162449;--popover:#0e162b;--popover-foreground:#e5e7eb;--primary:#6d7cff;--primary-foreground:#0b1020;--secondary:#111c33;--secondary-foreground:#e5e7eb;--muted:#0f1a31;--muted-foreground:#94a3b8;--placeholder-foreground:#64748b;--accent:#162449;--accent-foreground:#e5e7eb;--destructive:#fb7185;--destructive-foreground:#0b1020;--success:#34d399;--success-foreground:#052014;--warning:#fbbf24;--warning-foreground:#111827;--info:#60a5fa;--info-foreground:#071426;--border:#223255;--input:#0f1a31;--ring:rgba(109,124,255,.45);--chart-1:#6d7cff;--chart-2:#60a5fa;--chart-3:#a78bfa;--chart-4:#22d3ee;--chart-5:#34d399;--chart-6:#fbbf24;--chart-7:#fb7185;--chart-8:#f472b6}
|
package/package.json
CHANGED
package/dist/chunk-fqe20k50.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{clsx as G}from"clsx";import{twMerge as J}from"tailwind-merge";function Ce(...e){return J(G(e))}var L={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"},k={mod:"mod",ctrl:"ctrl",control:"control",alt:"alt",option:"option",shift:"shift",meta:"meta",cmd:"cmd",command:"command"};var Z={xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"xl"},F={default:"default",primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},N={default:"default",neutral:"neutral",success:"success",warning:"warning",error:"error",info:"info"},U={xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"xl"},x={none:"none",subtle:"subtle",expressive:"expressive"},ee={solid:"solid",glass:"glass"},te={low:"low",medium:"medium",high:"high"},re={horizontal:"horizontal",vertical:"vertical"},oe={top:"top",right:"right",bottom:"bottom",left:"left"},ae={start:"start",center:"center",end:"end"};var V={light:"light",dark:"dark",system:"system"};var w={mode:"middle",keepFirst:1,keepLast:2,minItemsToCollapse:5},P=(e,t)=>{if(!Number.isFinite(e))return t;let r=Math.floor(e);if(r<0)return 0;return r},ye=(e)=>{let r=(e.split("?")[0]?.split("#")[0]??"").split("/").filter(Boolean),o=r[r.length-1];if(!o)return null;return decodeURIComponent(o).replace(/[-_]+/g," ")},R=(e)=>{if(e.entity?.id)return e.entity.id;if(e.href){let t=ye(e.href);if(t)return t}return e.id},m=(e)=>{if(e.length===0)return e;let t=-1;for(let r=0;r<e.length;r+=1)if(e[r]?.current)t=r;if(t<0)t=e.length-1;return e.map((r,o)=>({...r,current:o===t}))},ne=(e,t)=>{if(e.label)return e.label;if(e.entity){let r=t?.entityResolvers?.[e.entity.kind];if(r)try{let o=r(e.entity,t?.resolveContext??{});if(typeof o==="string"&&o)return o}catch{return R(e)}}return R(e)},fe=async(e,t)=>{if(e.label)return e.label;if(e.entity){let r=t?.entityResolvers?.[e.entity.kind];if(r)try{let o=await Promise.resolve(r(e.entity,t?.resolveContext??{}));if(o)return o}catch{return R(e)}}return R(e)},ue=(e)=>{let t=P(e?.keepFirst??w.keepFirst,w.keepFirst),r=P(e?.keepLast??w.keepLast,w.keepLast),o=Math.max(2,P(e?.minItemsToCollapse??w.minItemsToCollapse,w.minItemsToCollapse));return{mode:"middle",keepFirst:t,keepLast:r,minItemsToCollapse:o}},ie=(e)=>{let t=e.findIndex((r)=>r.current);if(t>=0)return t;return Math.max(0,e.length-1)},S=(e,t,r)=>{if(t>r)return null;let o=e.slice(t,r+1);if(o.length===0)return null;return{type:"ellipsis",id:`ellipsis-${t}-${r}`,items:o,startIndex:t,endIndex:r}},O=(e,t)=>{let r=e.map((o)=>({...o,label:ne(o,t),current:Boolean(o.current)}));return m(r)},qe=async(e,t)=>{let r=await Promise.all(e.map(async(o)=>({...o,label:await fe(o,t),current:Boolean(o.current)})));return m(r)},$e=(e,t)=>{let r=ue(t);if(e.length===0)return{visibleItems:[],hiddenItems:[],config:r};if(e.length<r.minItemsToCollapse||r.keepFirst+r.keepLast>=e.length)return{visibleItems:e.map((y,p)=>({type:"item",item:y,index:p})),hiddenItems:[],config:r};let o=new Set;for(let y=0;y<r.keepFirst&&y<e.length;y+=1)o.add(y);for(let y=Math.max(0,e.length-r.keepLast);y<e.length;y+=1)o.add(y);let a=ie(e);if(!o.has(a)){o.add(a);let y=r.keepFirst,p=e.length-r.keepLast-1;if(a-1>=y)o.add(a-1);if(a+1<=p)o.add(a+1)}let n=Array.from(o).sort((y,p)=>y-p),f=[],c=[],s=-1;for(let y of n){if(y-s>1){let p=S(e,s+1,y-1);if(p)f.push(p),c.push(...p.items)}f.push({type:"item",item:e[y],index:y}),s=y}if(s<e.length-1){let y=S(e,s+1,e.length-1);if(y)f.push(y),c.push(...y.items)}return{visibleItems:f,hiddenItems:c,config:r}};var M=(e,t=!1)=>{return{id:e.id,label:e.label,href:e.href,entity:e.entity,disabled:e.disabled,meta:e.meta,current:t}},Je=({section:e,route:t})=>{return[M(e),M(t,!0)]},Ze=({section:e,list:t,entity:r})=>{return[M(e),M(t),M(r,!0)]},Fe=(e)=>{return O(e)};var ce=/mac/i,pe=/win/i,le=/Mobile/i,se=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i,de=/linux/i,he=()=>{return},A={os:"linux",isMac:!1,isWindows:!1,isLinux:!0,isMobile:!1,isReady:!1},d=null;function B(e,t){return e.os===t.os&&e.isMac===t.isMac&&e.isWindows===t.isWindows&&e.isLinux===t.isLinux&&e.isMobile===t.isMobile&&e.isReady===t.isReady}function D(){return typeof window<"u"&&typeof window.matchMedia==="function"}function we(){if(!D())return!1;return window.matchMedia("(max-width: 1023px)").matches}function K(){if(typeof navigator>"u")return A;let e=navigator.userAgentData?.platform??navigator.platform??"",t=Boolean(navigator.userAgentData?.mobile),r=navigator.userAgent??"",o=ce.test(e),a=pe.test(e),f="maxTouchPoints"in navigator&&navigator.maxTouchPoints>1&&o&&le.test(r),c=se.test(r)||t||f,s=we(),y=c||s,p=de.test(e)&&!y;return{os:o?"mac":a?"windows":"linux",isMac:o,isWindows:a,isLinux:p,isMobile:y,isReady:!0}}function E(){if(typeof navigator>"u")return A;let e=K();if(d&&B(d,e))return d;return d=e,d}function Ue(e){if(typeof window>"u")return he;let t=()=>{let o=d,a=K();if(!(o&&B(o,a)))d=a,e()},r=[];if(D()){let o=window.matchMedia("(max-width: 1023px)"),a=o;if(typeof o.addEventListener==="function")o.addEventListener("change",t),r.push(()=>o.removeEventListener("change",t));else if(typeof a.addListener==="function"&&typeof a.removeListener==="function")a.addListener(t),r.push(()=>a.removeListener?.(t))}return window.addEventListener("resize",t,{passive:!0}),window.addEventListener("orientationchange",t),r.push(()=>window.removeEventListener("resize",t)),r.push(()=>window.removeEventListener("orientationchange",t)),()=>{for(let o of r)o()}}function rt(...e){return e.join("+")}var ot=new Set(Object.values(k)),Me={esc:"escape",return:"enter",del:"delete",space:" ",spacebar:" ",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",plus:"+"},C={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:"→"},W={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 at(e){let t=e.split("+").map((o)=>o.trim().toLowerCase()),r={key:"",mod:!1,ctrl:!1,alt:!1,shift:!1,meta:!1};for(let o of t)if(o==="mod")r.mod=!0;else if(o==="ctrl"||o==="control")r.ctrl=!0;else if(o==="alt"||o==="option")r.alt=!0;else if(o==="shift")r.shift=!0;else if(o==="meta"||o==="cmd"||o==="command")r.meta=!0;else r.key=Me[o]??o;return r}function yt(e,t){let{isMac:r}=E(),o=e.key.toLowerCase(),a=t.key.toLowerCase();if(a&&o!==a&&e.code.toLowerCase()!==`key${a}`)return!1;let n=t.meta||t.mod&&r,f=t.ctrl||t.mod&&!r;if(e.metaKey!==n)return!1;if(e.ctrlKey!==f)return!1;if(e.altKey!==t.alt)return!1;if(e.shiftKey!==t.shift)return!1;return!0}function nt(e,t){let r=t??E().isMac,o=r?C:W,n=(Array.isArray(e)?e.join("+"):e).split("+").map((f)=>{let c=f.trim().toLowerCase();return o[c]??f.trim().toUpperCase()});return r?n.join(""):n.join("+")}function ft(e,t){let o=t??E().isMac?C:W;return(Array.isArray(e)?e.join("+"):e).split("+").map((n)=>{let f=n.trim().toLowerCase();return o[f]??n.trim().toUpperCase()})}import*as l from"react";function ge(...e){return(t)=>{for(let r of e)if(typeof r==="function")r(t);else if(r!=null)r.current=t}}function it(...e){return l.useCallback(ge(...e),e)}function ct(e,t){let r=l.createContext(t);r.displayName=e;function o(){let a=l.useContext(r);if(a===void 0)throw Error(`use${e} must be used within a ${e}Provider`);return a}return[r.Provider,o,r]}function pt(e){let t=l.createContext(void 0);t.displayName=e;function r(){return l.useContext(t)}return[t.Provider,r,t]}var u=V,b="data-gs-theme",g="data-gs-color-scheme",Q="dark",dt=1,_="gs",Y=`${_}-theme-state`,ht=`${_}-density`;var Te="ghostly-solutions",Re=u.system,Ee="localStorage";function I(e){return typeof e==="object"&&e!==null}function H(e){return e===u.light||e===u.dark||e===u.system}function X(e){return e===u.light||e===u.dark}function i(e){return typeof e==="string"&&e.trim().length>0}function j(e,t=Re){if(H(e))return e;return t}function be(e){if(!Array.isArray(e))return[];let t=e.filter(i);if(t.length===0)return[];return[...new Set(t)]}function He(e,t){let r=i(e)?e:Te;if(t.length===0)return r;if(t.includes(r))return r;return t[0]??r}function q(e,t,r){if(!i(e))return t;if(r.length===0)return e;if(r.includes(e))return e;return t}function ke(e){if(e===!1)return!1;let t=e?.mode==="localStorage"?e.mode:Ee,r=i(e?.key)?e.key:Y;return{mode:t,key:r}}function h(e={}){let t=be(e.themes);return{defaultTheme:He(e.defaultTheme,t),defaultColorScheme:j(e.defaultColorScheme),themes:t,attribute:i(e.attribute)?e.attribute:b,colorSchemeAttribute:e.colorSchemeAttribute===!1?!1:i(e.colorSchemeAttribute)?e.colorSchemeAttribute:g,darkClassName:i(e.darkClassName)?e.darkClassName:Q,storage:ke(e.storage)}}function T(e,t={}){let r=h(t);return{theme:q(e?.theme,r.defaultTheme,r.themes),colorScheme:j(e?.colorScheme,r.defaultColorScheme)}}function Ve(e,t={}){let r=T(e,t);return JSON.stringify({theme:r.theme,colorScheme:r.colorScheme})}function Pe(e){if(!i(e))return null;try{let t=JSON.parse(e);if(!I(t))return null;let r=i(t.theme)?t.theme:i(t.t)?t.t:null,o=H(t.colorScheme)?t.colorScheme:H(t.c)?t.c:null;if(!(r&&o))return null;return{theme:r,colorScheme:o}}catch{return null}}function $(e){return Boolean(e&&e.mode==="localStorage")}function gt(e={}){if(typeof window>"u")return null;let t=h(e);if($(t.storage))try{let r=window.localStorage.getItem(t.storage.key),o=Pe(r);if(o)return T(o,t)}catch{}return null}function Tt(e,t={}){if(typeof window>"u")return;let r=h(t),o=T(e,r),a=Ve(o,r);if($(r.storage))try{window.localStorage.setItem(r.storage.key,a)}catch{}}function z(e,t){if(e===u.system)return t;return e}function Le(){if(typeof window>"u"||typeof window.matchMedia!=="function")return u.light;return window.matchMedia("(prefers-color-scheme: dark)").matches?u.dark:u.light}function Rt(e={}){let t=h(e),r=i(e.state?.theme),o=H(e.state?.colorScheme),a=T({theme:r?e.state?.theme:void 0,colorScheme:o?e.state?.colorScheme:void 0},t),n=X(e.systemColorScheme)?e.systemColorScheme:u.light;return{...a,resolvedColorScheme:z(a.colorScheme,n)}}function Se(e){return I(e)&&X(e.resolvedColorScheme)}function me(e,t={},r=u.light){let o=h(t),a=T(e,o),n=Se(e)?{...a,resolvedColorScheme:e.resolvedColorScheme}:{...a,resolvedColorScheme:z(a.colorScheme,r)},f={[o.attribute]:n.theme};if(o.colorSchemeAttribute)f[o.colorSchemeAttribute]=n.colorScheme;return{attributes:f,className:n.resolvedColorScheme===u.dark?o.darkClassName:"",style:{colorScheme:n.resolvedColorScheme},state:n}}function Et(e,t,r={}){let o=h(r),a=me(t,o,Le());if(e.setAttribute(o.attribute,a.state.theme),o.attribute!==b)e.removeAttribute(b);if(o.colorSchemeAttribute){if(e.setAttribute(o.colorSchemeAttribute,a.state.colorScheme),o.colorSchemeAttribute!==g)e.removeAttribute(g)}else e.removeAttribute(g);if(a.state.resolvedColorScheme===u.dark)e.classList.add(o.darkClassName);else e.classList.remove(o.darkClassName);return e.style.colorScheme=a.state.resolvedColorScheme,a.state}function Oe(e){return e.replace(/\\/g,"\\\\").replace(/"/g,"\\\"")}function v(e,t){let r=Object.entries(t).filter(([a,n])=>i(a)&&i(n));if(r.length===0)return"";let o=r.map(([a,n])=>` --${a}: ${n};`).join(`
|
|
2
|
-
`);return`${e} {
|
|
3
|
-
${o}
|
|
4
|
-
}`}function Ae(e){let t=h({attribute:e.attribute,darkClassName:e.darkClassName,defaultTheme:e.theme}),r=q(e.theme,t.defaultTheme,[]),o=Oe(r),a=`:root[${t.attribute}="${o}"]`,n=`${a}.${t.darkClassName}`,f=v(a,e.light),c=e.dark?v(n,e.dark):"";if(f&&c)return`${f}
|
|
5
|
-
|
|
6
|
-
${c}
|
|
7
|
-
`;if(f)return`${f}
|
|
8
|
-
`;if(c)return`${c}
|
|
9
|
-
`;return""}function bt(e){if(!Array.isArray(e.themes)||e.themes.length===0)return"";return e.themes.map((t)=>Ae({theme:t.theme,light:t.light,dark:t.dark,attribute:e.attribute,darkClassName:e.darkClassName})).filter(i).join(`
|
|
10
|
-
`)}
|
|
11
|
-
export{Ce as a,L as b,k as c,Z as d,F as e,N as f,U as g,x as h,ee as i,te as j,re as k,oe as l,ae as m,V as n,w as o,O as p,qe as q,$e as r,Je as s,Ze as t,Fe as u,A as v,E as w,Ue as x,rt as y,at as z,yt as A,nt as B,ft as C,ge as D,it as E,ct as F,pt as G,u as H,b as I,g as J,Q as K,dt as L,_ as M,Y as N,ht as O,h as P,T as Q,Ve as R,Pe as S,gt as T,Tt as U,z as V,Le as W,Rt as X,me as Y,Et as Z,Ae as _,bt as $};
|