@gaine/nextjs 0.1.1 → 0.1.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 CHANGED
@@ -29,4 +29,9 @@ import { renderOgCover, renderOgFallback } from "@gaine/nextjs/og";
29
29
 
30
30
  - **UI & theme**: `Button`, `Badge`, `DropdownMenu*`, `SectionHeading`, `Logo`, `ThemeToggle`, `LanguageSwitcher`, plus `ThemeSync`, `ScrollReveal`, and `reveal()`.
31
31
  - **Routing & SEO**: `createLocaleProxy()` for `proxy.ts`, `createRobots()` / `createSitemap()` under `@gaine/nextjs/metadata`, and OG image helpers under `@gaine/nextjs/og`.
32
- - **Speed (`@gaine/nextjs/speed` & `/config`)**: `withGaineSpeed()` for `next.config` and zero-JS server components (`GaineRuntime`, `GaineHead`, `ThemeToggleLite`, `LanguageSwitcherLite`). Skip `ThemeSync` and `ScrollReveal` if `GaineRuntime` is mounted.
32
+ - **Speed (`@gaine/nextjs/speed` & `/config`)**: `withGaineSpeed()` for `next.config` and zero-JS server components (`GaineRuntime`, `GaineHead`, `ThemeToggleLite`, `LanguageSwitcherLite`). Skip `ThemeSync` and `ScrollReveal` if `GaineRuntime` is mounted.
33
+ ## Styles
34
+
35
+ `@gaine/nextjs` does not ship CSS. Install `@gaine/core` as a direct dependency of your app
36
+ and import its styles (for example `@gaine/core/reveal.css` and `@gaine/core/speed.css`);
37
+ with pnpm's strict `node_modules`, importing them without a direct dependency fails to resolve.
package/dist/config.js CHANGED
@@ -1,2 +1 @@
1
- import{speedHeaders as o,toNextHeaders as d}from"@gaine/core/speed";const r=["@gaine/core","@gaine/nextjs"],m=["lucide-react","@radix-ui/react-dropdown-menu",...r],s=e=>[...new Set(e)];function c(e={},n={}){const a={...e.experimental};a.optimizePackageImports=s([...a.optimizePackageImports??[],...m,...n.optimizePackages??[]]),n.inlineCss!==!1&&a.inlineCss===void 0&&(a.inlineCss=!0),n.viewTransition&&a.viewTransition===void 0&&(a.viewTransition=!0);const i={...e,poweredByHeader:e.poweredByHeader??!1,transpilePackages:s([...e.transpilePackages??[],...r]),experimental:a};n.reactCompiler&&i.reactCompiler===void 0&&(i.reactCompiler=!0),n.cacheComponents&&i.cacheComponents===void 0&&(i.cacheComponents=!0),n.images!==!1&&!e.images?.formats&&(i.images={...e.images,formats:["image/avif","image/webp"]});const t=d(o({base:e.basePath,immutable:n.immutable,preload:n.preload,security:n.security??!1}));return t.length&&(i.headers=async()=>[...t,...await e.headers?.()??[]]),i}export{c as withGaineSpeed};
2
- //# sourceMappingURL=config.js.map
1
+ import{speedHeaders as o,toNextHeaders as d}from"@gaine/core/speed";var s=["@gaine/core","@gaine/nextjs"],m=["lucide-react","@radix-ui/react-dropdown-menu",...s],r=e=>[...new Set(e)];function c(e={},n={}){let a={...e.experimental};a.optimizePackageImports=r([...a.optimizePackageImports??[],...m,...n.optimizePackages??[]]),n.inlineCss!==!1&&a.inlineCss===void 0&&(a.inlineCss=!0),n.viewTransition&&a.viewTransition===void 0&&(a.viewTransition=!0);let i={...e,poweredByHeader:e.poweredByHeader??!1,transpilePackages:r([...e.transpilePackages??[],...s]),experimental:a};n.reactCompiler&&i.reactCompiler===void 0&&(i.reactCompiler=!0),n.cacheComponents&&i.cacheComponents===void 0&&(i.cacheComponents=!0),n.images!==!1&&!e.images?.formats&&(i.images={...e.images,formats:["image/avif","image/webp"]});let t=d(o({base:e.basePath,immutable:n.immutable,preload:n.preload,security:n.security??!1}));return t.length&&(i.headers=async()=>[...t,...await e.headers?.()??[]]),i}export{c as withGaineSpeed};
package/dist/index.js CHANGED
@@ -1,2 +1 @@
1
- import{ThemeSync as r}from"./theme-sync.js";import{ScrollReveal as p}from"./scroll-reveal.js";import{LanguageSwitcher as a}from"./language-switcher.js";import{Logo as m}from"./logo.js";import{reveal as x}from"./reveal.js";import{Button as d,buttonVariants as i}from"./ui/button.js";import{Badge as s,badgeVariants as w}from"./ui/badge.js";import{DropdownMenu as c,DropdownMenuTrigger as S,DropdownMenuContent as h,DropdownMenuItem as B}from"./ui/dropdown-menu.js";import{SectionHeading as L}from"./ui/section-heading.js";import{ThemeToggle as P}from"./ui/theme-toggle.js";export{s as Badge,d as Button,c as DropdownMenu,h as DropdownMenuContent,B as DropdownMenuItem,S as DropdownMenuTrigger,a as LanguageSwitcher,m as Logo,p as ScrollReveal,L as SectionHeading,r as ThemeSync,P as ThemeToggle,w as badgeVariants,i as buttonVariants,x as reveal};
2
- //# sourceMappingURL=index.js.map
1
+ import{ThemeSync as $}from"./theme-sync.js";import{ScrollReveal as ee}from"./scroll-reveal.js";import{LanguageSwitcher as re}from"./language-switcher.js";import b from"next/link";import{cn as x}from"@gaine/core";import{Fragment as y,jsx as s,jsxs as p}from"react/jsx-runtime";function v({href:t,label:r,mark:e,primary:a,secondary:o,product:n,className:l}){return p(b,{href:t,"aria-label":r,className:x("group inline-flex items-center gap-2.5 font-display text-lg font-semibold tracking-tight",l),children:[s("span",{"aria-hidden":!0,className:"grid size-8 place-items-center rounded-lg bg-primary text-sm font-bold text-primary-foreground transition-transform duration-300 group-hover:-rotate-6",children:e}),a,o?s("span",{className:"font-normal text-muted-foreground",children:o}):null,n?p(y,{children:[s("span",{"aria-hidden":!0,className:"hidden h-5 w-px bg-border sm:block"}),s("span",{className:"hidden text-base font-medium text-muted-foreground sm:block",children:n})]}):null]})}import{reveal as h}from"@gaine/core";function i(t=0,r="up"){let{style:e,...a}=h(t,r);return{...a,style:e,suppressHydrationWarning:!0}}import*as m from"react";import{Slot as k}from"@radix-ui/react-slot";import{cva as P}from"class-variance-authority";import{cn as V}from"@gaine/core";import{jsx as N}from"react/jsx-runtime";var g=P("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 active:scale-[0.98] [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",brand:"bg-brand text-brand-foreground hover:bg-brand/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-foreground underline-offset-4 hover:underline"},size:{default:"h-10 px-5",sm:"h-9 px-4",lg:"h-12 px-7 text-base",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}}),f=m.forwardRef(({className:t,variant:r,size:e,asChild:a=!1,...o},n)=>N(a?k:"button",{ref:n,className:V(g({variant:r,size:e,className:t})),...o}));f.displayName="Button";import{cva as B}from"class-variance-authority";import{cn as L}from"@gaine/core";import{jsx as w}from"react/jsx-runtime";var u=B("inline-flex items-center gap-1.5 rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors",{variants:{variant:{default:"border-transparent bg-secondary text-secondary-foreground",outline:"text-foreground",live:"border-emerald-200 bg-emerald-50 text-emerald-700 dark:border-emerald-500/30 dark:bg-emerald-500/10 dark:text-emerald-300",beta:"border-sky-200 bg-sky-50 text-sky-700 dark:border-sky-500/30 dark:bg-sky-500/10 dark:text-sky-300",development:"border-amber-200 bg-amber-50 text-amber-700 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-300",planned:"border-slate-200 bg-slate-50 text-slate-600 dark:border-slate-500/30 dark:bg-slate-500/10 dark:text-slate-300"}},defaultVariants:{variant:"default"}});function S({className:t,variant:r,...e}){return w("span",{className:L(u({variant:r}),t),...e})}import{DropdownMenu as de,DropdownMenuTrigger as le,DropdownMenuContent as pe,DropdownMenuItem as me}from"./ui/dropdown-menu.js";import{cn as R}from"@gaine/core";import{jsx as d,jsxs as c}from"react/jsx-runtime";function H({eyebrow:t,title:r,description:e,className:a}){return c("div",{className:R("max-w-2xl",a),...i(),children:[c("p",{className:"mb-4 flex items-center gap-2 text-sm font-medium text-brand",children:[d("span",{"aria-hidden":!0,className:"h-px w-6 bg-brand"}),t]}),d("h2",{className:"font-display text-3xl font-semibold tracking-tight text-balance sm:text-4xl lg:text-5xl",children:r}),e?d("p",{className:"mt-5 text-lg leading-relaxed text-muted-foreground",children:e}):null]})}import{ThemeToggle as ue}from"./ui/theme-toggle.js";export{S as Badge,f as Button,de as DropdownMenu,pe as DropdownMenuContent,me as DropdownMenuItem,le as DropdownMenuTrigger,re as LanguageSwitcher,v as Logo,ee as ScrollReveal,H as SectionHeading,$ as ThemeSync,ue as ThemeToggle,u as badgeVariants,g as buttonVariants,i as reveal};
@@ -1,2 +1,2 @@
1
- "use client";import{jsx as o,jsxs as t}from"react/jsx-runtime";import{Check as d,Globe as g}from"lucide-react";import{usePathname as p,useRouter as m}from"next/navigation";import{DropdownMenu as w,DropdownMenuContent as f,DropdownMenuItem as h,DropdownMenuTrigger as b}from"./ui/dropdown-menu.js";function M({locale:n,label:s,locales:i,localeLabels:a}){const c=p(),u=m();function l(e){if(e===n)return;const r=c.split("/");r[1]=e,u.push(`${r.join("/")}${window.location.hash}`)}return t(w,{children:[t(b,{"aria-label":s,className:"inline-flex h-9 items-center gap-1.5 rounded-full border px-3 text-xs font-semibold uppercase tracking-wide text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring data-[state=open]:bg-accent",children:[o(g,{className:"size-3.5"}),n]}),o(f,{align:"end",className:"min-w-[11rem]",children:i.map(e=>t(h,{onSelect:()=>l(e),className:"flex-row items-center justify-between",children:[a[e],e===n?o(d,{className:"size-4 text-brand"}):null]},e))})]})}export{M as LanguageSwitcher};
2
- //# sourceMappingURL=language-switcher.js.map
1
+ "use client";
2
+ "use client";import{Check as v,Globe as b}from"lucide-react";import{usePathname as x,useRouter as h}from"next/navigation";import*as s from"react";import*as e from"@radix-ui/react-dropdown-menu";import{cn as l}from"@gaine/core";import{jsx as a}from"react/jsx-runtime";var f=e.Root,w=e.Trigger,d=s.forwardRef(({className:o,sideOffset:n=10,...r},i)=>a(e.Portal,{children:a(e.Content,{ref:i,sideOffset:n,className:l("z-50 min-w-[16rem] overflow-hidden rounded-2xl border bg-popover p-2 text-popover-foreground shadow-xl shadow-black/5","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2",o),...r})}));d.displayName="DropdownMenuContent";var p=s.forwardRef(({className:o,...n},r)=>a(e.Item,{ref:r,className:l("relative flex cursor-pointer select-none flex-col gap-0.5 rounded-xl px-3 py-2.5 text-sm outline-none transition-colors focus:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),...n}));p.displayName="DropdownMenuItem";import{jsx as m,jsxs as u}from"react/jsx-runtime";function I({locale:o,label:n,locales:r,localeLabels:i}){let g=x(),D=h();function M(t){if(t===o)return;let c=g.split("/");c[1]=t,D.push(`${c.join("/")}${window.location.hash}`)}return u(f,{children:[u(w,{"aria-label":n,className:"inline-flex h-9 items-center gap-1.5 rounded-full border px-3 text-xs font-semibold uppercase tracking-wide text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring data-[state=open]:bg-accent",children:[m(b,{className:"size-3.5"}),o]}),m(d,{align:"end",className:"min-w-[11rem]",children:r.map(t=>u(p,{onSelect:()=>M(t),className:"flex-row items-center justify-between",children:[i[t],t===o?m(v,{className:"size-4 text-brand"}):null]},t))})]})}export{I as LanguageSwitcher};
package/dist/metadata.js CHANGED
@@ -1,2 +1 @@
1
- function o(e){return{rules:{userAgent:"*",allow:"/",disallow:e.disallow??["/_next/","/api/"]},sitemap:`${e.baseUrl}/sitemap.xml`}}function l(e){const r=e.now??new Date,t=[];for(const n of e.locales)for(const a of e.pages)t.push({url:`${e.baseUrl}/${n}${a.path}`,lastModified:r,changeFrequency:a.changeFrequency??"weekly",priority:a.priority});return t}export{o as createRobots,l as createSitemap};
2
- //# sourceMappingURL=metadata.js.map
1
+ function o(e){return{rules:{userAgent:"*",allow:"/",disallow:e.disallow??["/_next/","/api/"]},sitemap:`${e.baseUrl}/sitemap.xml`}}function l(e){let r=e.now??new Date,t=[];for(let n of e.locales)for(let a of e.pages)t.push({url:`${e.baseUrl}/${n}${a.path}`,lastModified:r,changeFrequency:a.changeFrequency??"weekly",priority:a.priority});return t}export{o as createRobots,l as createSitemap};
package/dist/og.js CHANGED
@@ -1,2 +1 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{ImageResponse as n}from"next/og";const o={width:1200,height:630},p="image/png";function f({brand:i,title:a,description:r,footerStart:s,footerEnd:d}){return new n(t("div",{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",backgroundColor:"#09090b",color:"#fafafa",padding:"72px 80px",fontFamily:"sans-serif"},children:[t("div",{style:{display:"flex",alignItems:"center",gap:"16px",fontSize:28,fontWeight:600,color:"#a1a1aa"},children:[e("div",{style:{width:18,height:18,borderRadius:999,backgroundColor:"#fafafa"}}),e("span",{children:i})]}),t("div",{style:{display:"flex",flexDirection:"column",gap:"24px"},children:[e("div",{style:{fontSize:64,fontWeight:700,lineHeight:1.15,letterSpacing:"-0.03em",maxWidth:"960px"},children:a}),e("div",{style:{fontSize:26,color:"#a1a1aa",lineHeight:1.4,maxWidth:"880px"},children:r})]}),t("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",borderTop:"1px solid #27272a",paddingTop:"28px",fontSize:24,color:"#71717a"},children:[e("span",{children:s}),e("span",{children:d})]})]}),{...o})}function g(i){return new n(e("div",{style:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#09090b",color:"#fafafa",fontSize:48,fontWeight:700},children:i}),{...o})}export{p as ogContentType,o as ogSize,f as renderOgCover,g as renderOgFallback};
2
- //# sourceMappingURL=og.js.map
1
+ import{ImageResponse as n}from"next/og";import{jsx as e,jsxs as t}from"react/jsx-runtime";var o={width:1200,height:630},p="image/png";function f({brand:i,title:a,description:r,footerStart:s,footerEnd:d}){return new n(t("div",{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",backgroundColor:"#09090b",color:"#fafafa",padding:"72px 80px",fontFamily:"sans-serif"},children:[t("div",{style:{display:"flex",alignItems:"center",gap:"16px",fontSize:28,fontWeight:600,color:"#a1a1aa"},children:[e("div",{style:{width:18,height:18,borderRadius:999,backgroundColor:"#fafafa"}}),e("span",{children:i})]}),t("div",{style:{display:"flex",flexDirection:"column",gap:"24px"},children:[e("div",{style:{fontSize:64,fontWeight:700,lineHeight:1.15,letterSpacing:"-0.03em",maxWidth:"960px"},children:a}),e("div",{style:{fontSize:26,color:"#a1a1aa",lineHeight:1.4,maxWidth:"880px"},children:r})]}),t("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",borderTop:"1px solid #27272a",paddingTop:"28px",fontSize:24,color:"#71717a"},children:[e("span",{children:s}),e("span",{children:d})]})]}),{...o})}function g(i){return new n(e("div",{style:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#09090b",color:"#fafafa",fontSize:48,fontWeight:700},children:i}),{...o})}export{p as ogContentType,o as ogSize,f as renderOgCover,g as renderOgFallback};
package/dist/proxy.js CHANGED
@@ -1,2 +1 @@
1
- import{NextResponse as a}from"next/server";import{detectLocale as l}from"@gaine/core";function u({locales:o,defaultLocale:c}){return function(t){const{pathname:e}=t.nextUrl;if(o.some(r=>e===`/${r}`||e.startsWith(`/${r}/`)))return a.next();const n=t.nextUrl.clone(),s=l(t.headers.get("accept-language"),o,c);return n.pathname=`/${s}${e==="/"?"":e}`,a.redirect(n)}}export{u as createLocaleProxy};
2
- //# sourceMappingURL=proxy.js.map
1
+ import{NextResponse as a}from"next/server";import{detectLocale as l}from"@gaine/core";function u({locales:o,defaultLocale:c}){return function(t){let{pathname:e}=t.nextUrl;if(o.some(r=>e===`/${r}`||e.startsWith(`/${r}/`)))return a.next();let n=t.nextUrl.clone(),s=l(t.headers.get("accept-language"),o,c);return n.pathname=`/${s}${e==="/"?"":e}`,a.redirect(n)}}export{u as createLocaleProxy};
@@ -1,2 +1,2 @@
1
- "use client";import*as o from"react";import{usePathname as i}from"next/navigation";function a(){const s=i();return o.useEffect(()=>{const n=document.querySelectorAll("[data-reveal]:not(.is-visible)");if(!("IntersectionObserver"in window)){n.forEach(e=>e.classList.add("is-visible"));return}const t=new IntersectionObserver(e=>{for(const r of e)r.isIntersecting&&(r.target.classList.add("is-visible"),t.unobserve(r.target))},{threshold:.12,rootMargin:"0px 0px -6% 0px"});return n.forEach(e=>t.observe(e)),()=>t.disconnect()},[s]),null}export{a as ScrollReveal};
2
- //# sourceMappingURL=scroll-reveal.js.map
1
+ "use client";
2
+ "use client";import*as s from"react";import{usePathname as i}from"next/navigation";function a(){let o=i();return s.useEffect(()=>{let n=document.querySelectorAll("[data-reveal]:not(.is-visible)");if(!("IntersectionObserver"in window)){n.forEach(e=>e.classList.add("is-visible"));return}let t=new IntersectionObserver(e=>{for(let r of e)r.isIntersecting&&(r.target.classList.add("is-visible"),t.unobserve(r.target))},{threshold:.12,rootMargin:"0px 0px -6% 0px"});return n.forEach(e=>t.observe(e)),()=>t.disconnect()},[o]),null}export{a as ScrollReveal};
package/dist/speed.js CHANGED
@@ -1,2 +1 @@
1
- import{Fragment as g,jsx as t,jsxs as d}from"react/jsx-runtime";import{gaineRuntimeScript as s,hintAttrs as a,renderLanguageMenu as l,renderThemeToggle as u,speculationRulesJson as c}from"@gaine/core/speed";function p(n){const e=a(n);return{rel:e.rel,href:e.href,as:e.as,type:e.type,crossOrigin:e.crossorigin===void 0?void 0:e.crossorigin||"anonymous",fetchPriority:e.fetchpriority,media:e.media}}function L({hints:n=[],speculation:e}){const i=e?c(e===!0?{}:e):null;return d(g,{children:[n.map(r=>t("link",{...p(r)},`${r.rel}:${r.href}`)),i?t("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:i}}):null]})}function h(n){const e=s(n);return e?t("script",{dangerouslySetInnerHTML:{__html:e}}):null}const o={display:"contents"};function m({label:n}){return t("div",{style:o,dangerouslySetInnerHTML:{__html:u(n)}})}function f({localeLabels:n,...e}){return t("div",{style:o,dangerouslySetInnerHTML:{__html:l({...e,labels:n})}})}export{L as GaineHead,h as GaineRuntime,f as LanguageSwitcherLite,m as ThemeToggleLite};
2
- //# sourceMappingURL=speed.js.map
1
+ import{gaineRuntimeScript as s,hintAttrs as a,renderLanguageMenu as l,renderThemeToggle as u,speculationRulesJson as c}from"@gaine/core/speed";import{Fragment as g,jsx as t,jsxs as d}from"react/jsx-runtime";function p(n){let e=a(n);return{rel:e.rel,href:e.href,as:e.as,type:e.type,crossOrigin:e.crossorigin===void 0?void 0:e.crossorigin||"anonymous",fetchPriority:e.fetchpriority,media:e.media}}function L({hints:n=[],speculation:e}){let i=e?c(e===!0?{}:e):null;return d(g,{children:[n.map(r=>t("link",{...p(r)},`${r.rel}:${r.href}`)),i?t("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:i}}):null]})}function h(n){let e=s(n);return e?t("script",{dangerouslySetInnerHTML:{__html:e}}):null}var o={display:"contents"};function m({label:n}){return t("div",{style:o,dangerouslySetInnerHTML:{__html:u(n)}})}function f({localeLabels:n,...e}){return t("div",{style:o,dangerouslySetInnerHTML:{__html:l({...e,labels:n})}})}export{L as GaineHead,h as GaineRuntime,f as LanguageSwitcherLite,m as ThemeToggleLite};
@@ -1,2 +1,2 @@
1
- "use client";import*as n from"react";import{usePathname as a}from"next/navigation";import{applyTheme as e}from"@gaine/core";function c(){const r=a();return n.useLayoutEffect(()=>{e()},[r]),n.useEffect(()=>{const t=window.matchMedia("(prefers-color-scheme: dark)");return t.addEventListener("change",e),()=>t.removeEventListener("change",e)},[]),null}export{c as ThemeSync};
2
- //# sourceMappingURL=theme-sync.js.map
1
+ "use client";
2
+ "use client";import*as e from"react";import{usePathname as a}from"next/navigation";import{applyTheme as t}from"@gaine/core";function m(){let r=a();return e.useLayoutEffect(()=>{t()},[r]),e.useEffect(()=>{let n=window.matchMedia("(prefers-color-scheme: dark)");return n.addEventListener("change",t),()=>n.removeEventListener("change",t)},[]),null}export{m as ThemeSync};
@@ -1,2 +1,2 @@
1
- "use client";import{jsx as a}from"react/jsx-runtime";import*as r from"react";import*as e from"@radix-ui/react-dropdown-menu";import{cn as d}from"@gaine/core";const m=e.Root,f=e.Trigger,i=r.forwardRef(({className:o,sideOffset:t=10,...n},s)=>a(e.Portal,{children:a(e.Content,{ref:s,sideOffset:t,className:d("z-50 min-w-[16rem] overflow-hidden rounded-2xl border bg-popover p-2 text-popover-foreground shadow-xl shadow-black/5","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2",o),...n})}));i.displayName="DropdownMenuContent";const p=r.forwardRef(({className:o,...t},n)=>a(e.Item,{ref:n,className:d("relative flex cursor-pointer select-none flex-col gap-0.5 rounded-xl px-3 py-2.5 text-sm outline-none transition-colors focus:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),...t}));p.displayName="DropdownMenuItem";export{m as DropdownMenu,i as DropdownMenuContent,p as DropdownMenuItem,f as DropdownMenuTrigger};
2
- //# sourceMappingURL=dropdown-menu.js.map
1
+ "use client";
2
+ "use client";import*as i from"react";import*as e from"@radix-ui/react-dropdown-menu";import{cn as a}from"@gaine/core";import{jsx as r}from"react/jsx-runtime";var u=e.Root,f=e.Trigger,p=i.forwardRef(({className:o,sideOffset:t=10,...n},d)=>r(e.Portal,{children:r(e.Content,{ref:d,sideOffset:t,className:a("z-50 min-w-[16rem] overflow-hidden rounded-2xl border bg-popover p-2 text-popover-foreground shadow-xl shadow-black/5","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2",o),...n})}));p.displayName="DropdownMenuContent";var m=i.forwardRef(({className:o,...t},n)=>r(e.Item,{ref:n,className:a("relative flex cursor-pointer select-none flex-col gap-0.5 rounded-xl px-3 py-2.5 text-sm outline-none transition-colors focus:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),...t}));m.displayName="DropdownMenuItem";export{u as DropdownMenu,p as DropdownMenuContent,m as DropdownMenuItem,f as DropdownMenuTrigger};
@@ -1,2 +1,2 @@
1
- "use client";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{Moon as n,Sun as t}from"lucide-react";import{toggleTheme as i}from"@gaine/core";function u({label:e}){return r("button",{type:"button",onClick:i,"aria-label":e,title:e,className:"inline-flex size-9 items-center justify-center rounded-full border text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:[o(t,{className:"hidden size-4 dark:block"}),o(n,{className:"size-4 dark:hidden"})]})}export{u as ThemeToggle};
2
- //# sourceMappingURL=theme-toggle.js.map
1
+ "use client";
2
+ "use client";import{Moon as n,Sun as t}from"lucide-react";import{toggleTheme as i}from"@gaine/core";import{jsx as o,jsxs as r}from"react/jsx-runtime";function u({label:e}){return r("button",{type:"button",onClick:i,"aria-label":e,title:e,className:"inline-flex size-9 items-center justify-center rounded-full border text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:[o(t,{className:"hidden size-4 dark:block"}),o(n,{className:"size-4 dark:hidden"})]})}export{u as ThemeToggle};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gaine/nextjs",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Next.js 16 (App Router) integration and UI components for Gaine, built on @gaine/core",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "@radix-ui/react-dropdown-menu": "^2.1.4",
46
46
  "@radix-ui/react-slot": "^1.1.1",
47
47
  "class-variance-authority": "^0.7.1",
48
- "@gaine/core": "^0.1.1"
48
+ "@gaine/core": "^0.1.2"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "lucide-react": ">=0.468.0",
@@ -76,7 +76,7 @@
76
76
  "url": "https://github.com/soteenstudio/gaine/issues"
77
77
  },
78
78
  "scripts": {
79
- "build": "tsup && tsc -p tsconfig.json --emitDeclarationOnly --sourceMap false",
79
+ "build": "pnpm run clean && tsup && node ../../scripts/ensure-use-client.mjs && tsc -p tsconfig.json --emitDeclarationOnly --sourceMap false",
80
80
  "typecheck": "tsc -p tsconfig.json --noEmit",
81
81
  "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
82
82
  "test": "node --test"
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/config.ts"],"sourcesContent":["/*\n * Copyright 2026 SoTeen Studio\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { NextConfig } from \"next\";\nimport { speedHeaders, toNextHeaders, type ResourceHint } from \"@gaine/core/speed\";\n\nexport interface GaineNextSpeedOptions {\n inlineCss?: boolean;\n reactCompiler?: boolean;\n cacheComponents?: boolean;\n viewTransition?: boolean;\n images?: boolean;\n optimizePackages?: readonly string[];\n immutable?: readonly string[];\n preload?: readonly ResourceHint[];\n security?: boolean;\n}\n\nconst GAINE_PACKAGES = [\"@gaine/core\", \"@gaine/nextjs\"];\nconst OPTIMIZED_IMPORTS = [\"lucide-react\", \"@radix-ui/react-dropdown-menu\", ...GAINE_PACKAGES];\nconst unique = (list: readonly string[]) => [...new Set(list)];\n\nexport function withGaineSpeed(\n config: NextConfig = {},\n options: GaineNextSpeedOptions = {},\n): NextConfig {\n const experimental: Record<string, unknown> = {\n ...(config.experimental as Record<string, unknown> | undefined),\n };\n experimental.optimizePackageImports = unique([\n ...((experimental.optimizePackageImports as string[] | undefined) ?? []),\n ...OPTIMIZED_IMPORTS,\n ...(options.optimizePackages ?? []),\n ]);\n if (options.inlineCss !== false && experimental.inlineCss === undefined)\n experimental.inlineCss = true;\n if (options.viewTransition && experimental.viewTransition === undefined)\n experimental.viewTransition = true;\n\n const next: Record<string, unknown> = {\n ...config,\n poweredByHeader: config.poweredByHeader ?? false,\n transpilePackages: unique([...(config.transpilePackages ?? []), ...GAINE_PACKAGES]),\n experimental,\n };\n if (options.reactCompiler && next.reactCompiler === undefined) next.reactCompiler = true;\n if (options.cacheComponents && next.cacheComponents === undefined) next.cacheComponents = true;\n if (options.images !== false && !config.images?.formats) {\n next.images = { ...config.images, formats: [\"image/avif\", \"image/webp\"] };\n }\n\n const rules = toNextHeaders(\n speedHeaders({\n base: config.basePath,\n immutable: options.immutable,\n preload: options.preload,\n security: options.security ?? false,\n }),\n );\n if (rules.length) {\n next.headers = async () => [...rules, ...((await config.headers?.()) ?? [])];\n }\n return next as NextConfig;\n}\n"],"mappings":"AAiBA,OAAS,gBAAAA,EAAc,iBAAAC,MAAwC,oBAc/D,MAAMC,EAAiB,CAAC,cAAe,eAAe,EAChDC,EAAoB,CAAC,eAAgB,gCAAiC,GAAGD,CAAc,EACvFE,EAAUC,GAA4B,CAAC,GAAG,IAAI,IAAIA,CAAI,CAAC,EAEtD,SAASC,EACdC,EAAqB,CAAC,EACtBC,EAAiC,CAAC,EACtB,CACZ,MAAMC,EAAwC,CAC5C,GAAIF,EAAO,YACb,EACAE,EAAa,uBAAyBL,EAAO,CAC3C,GAAKK,EAAa,wBAAmD,CAAC,EACtE,GAAGN,EACH,GAAIK,EAAQ,kBAAoB,CAAC,CACnC,CAAC,EACGA,EAAQ,YAAc,IAASC,EAAa,YAAc,SAC5DA,EAAa,UAAY,IACvBD,EAAQ,gBAAkBC,EAAa,iBAAmB,SAC5DA,EAAa,eAAiB,IAEhC,MAAMC,EAAgC,CACpC,GAAGH,EACH,gBAAiBA,EAAO,iBAAmB,GAC3C,kBAAmBH,EAAO,CAAC,GAAIG,EAAO,mBAAqB,CAAC,EAAI,GAAGL,CAAc,CAAC,EAClF,aAAAO,CACF,EACID,EAAQ,eAAiBE,EAAK,gBAAkB,SAAWA,EAAK,cAAgB,IAChFF,EAAQ,iBAAmBE,EAAK,kBAAoB,SAAWA,EAAK,gBAAkB,IACtFF,EAAQ,SAAW,IAAS,CAACD,EAAO,QAAQ,UAC9CG,EAAK,OAAS,CAAE,GAAGH,EAAO,OAAQ,QAAS,CAAC,aAAc,YAAY,CAAE,GAG1E,MAAMI,EAAQV,EACZD,EAAa,CACX,KAAMO,EAAO,SACb,UAAWC,EAAQ,UACnB,QAASA,EAAQ,QACjB,SAAUA,EAAQ,UAAY,EAChC,CAAC,CACH,EACA,OAAIG,EAAM,SACRD,EAAK,QAAU,SAAY,CAAC,GAAGC,EAAO,GAAK,MAAMJ,EAAO,UAAU,GAAM,CAAC,CAAE,GAEtEG,CACT","names":["speedHeaders","toNextHeaders","GAINE_PACKAGES","OPTIMIZED_IMPORTS","unique","list","withGaineSpeed","config","options","experimental","next","rules"]}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright 2026 SoTeen Studio\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { ThemeSync } from \"./theme-sync.js\";\nexport { ScrollReveal } from \"./scroll-reveal.js\";\nexport { LanguageSwitcher, type LanguageSwitcherProps } from \"./language-switcher.js\";\nexport { Logo, type LogoProps } from \"./logo.js\";\nexport { reveal, type RevealVariant } from \"./reveal.js\";\nexport { Button, buttonVariants, type ButtonProps } from \"./ui/button.js\";\nexport { Badge, badgeVariants, type BadgeProps } from \"./ui/badge.js\";\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n} from \"./ui/dropdown-menu.js\";\nexport { SectionHeading } from \"./ui/section-heading.js\";\nexport { ThemeToggle } from \"./ui/theme-toggle.js\";\n"],"mappings":"AAgBA,OAAS,aAAAA,MAAiB,kBAC1B,OAAS,gBAAAC,MAAoB,qBAC7B,OAAS,oBAAAC,MAAoD,yBAC7D,OAAS,QAAAC,MAA4B,YACrC,OAAS,UAAAC,MAAkC,cAC3C,OAAS,UAAAC,EAAQ,kBAAAC,MAAwC,iBACzD,OAAS,SAAAC,EAAO,iBAAAC,MAAsC,gBACtD,OACE,gBAAAC,EACA,uBAAAC,EACA,uBAAAC,EACA,oBAAAC,MACK,wBACP,OAAS,kBAAAC,MAAsB,0BAC/B,OAAS,eAAAC,MAAmB","names":["ThemeSync","ScrollReveal","LanguageSwitcher","Logo","reveal","Button","buttonVariants","Badge","badgeVariants","DropdownMenu","DropdownMenuTrigger","DropdownMenuContent","DropdownMenuItem","SectionHeading","ThemeToggle"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/language-switcher.tsx"],"sourcesContent":["/*\n * Copyright 2026 SoTeen Studio\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\"use client\";\n\nimport { Check, Globe } from \"lucide-react\";\nimport { usePathname, useRouter } from \"next/navigation\";\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"./ui/dropdown-menu.js\";\n\nexport interface LanguageSwitcherProps<L extends string> {\n locale: L;\n label: string;\n locales: readonly L[];\n localeLabels: Record<L, string>;\n}\n\nexport function LanguageSwitcher<L extends string>({\n locale,\n label,\n locales,\n localeLabels,\n}: LanguageSwitcherProps<L>) {\n const pathname = usePathname();\n const router = useRouter();\n\n function switchTo(target: L) {\n if (target === locale) return;\n const segments = pathname.split(\"/\");\n segments[1] = target;\n router.push(`${segments.join(\"/\")}${window.location.hash}`);\n }\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger\n aria-label={label}\n className=\"inline-flex h-9 items-center gap-1.5 rounded-full border px-3 text-xs font-semibold uppercase tracking-wide text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring data-[state=open]:bg-accent\"\n >\n <Globe className=\"size-3.5\" />\n {locale}\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" className=\"min-w-[11rem]\">\n {locales.map((l) => (\n <DropdownMenuItem\n key={l}\n onSelect={() => switchTo(l)}\n className=\"flex-row items-center justify-between\"\n >\n {localeLabels[l]}\n {l === locale ? <Check className=\"size-4 text-brand\" /> : null}\n </DropdownMenuItem>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n"],"mappings":"aAoDM,OAIE,OAAAA,EAJF,QAAAC,MAAA,oBAlCN,OAAS,SAAAC,EAAO,SAAAC,MAAa,eAC7B,OAAS,eAAAC,EAAa,aAAAC,MAAiB,kBACvC,OACE,gBAAAC,EACA,uBAAAC,EACA,oBAAAC,EACA,uBAAAC,MACK,wBASA,SAASC,EAAmC,CACjD,OAAAC,EACA,MAAAC,EACA,QAAAC,EACA,aAAAC,CACF,EAA6B,CAC3B,MAAMC,EAAWX,EAAY,EACvBY,EAASX,EAAU,EAEzB,SAASY,EAASC,EAAW,CAC3B,GAAIA,IAAWP,EAAQ,OACvB,MAAMQ,EAAWJ,EAAS,MAAM,GAAG,EACnCI,EAAS,CAAC,EAAID,EACdF,EAAO,KAAK,GAAGG,EAAS,KAAK,GAAG,CAAC,GAAG,OAAO,SAAS,IAAI,EAAE,CAC5D,CAEA,OACElB,EAACK,EAAA,CACC,UAAAL,EAACQ,EAAA,CACC,aAAYG,EACZ,UAAU,kRAEV,UAAAZ,EAACG,EAAA,CAAM,UAAU,WAAW,EAC3BQ,GACH,EACAX,EAACO,EAAA,CAAoB,MAAM,MAAM,UAAU,gBACxC,SAAAM,EAAQ,IAAKO,GACZnB,EAACO,EAAA,CAEC,SAAU,IAAMS,EAASG,CAAC,EAC1B,UAAU,wCAET,UAAAN,EAAaM,CAAC,EACdA,IAAMT,EAASX,EAACE,EAAA,CAAM,UAAU,oBAAoB,EAAK,OALrDkB,CAMP,CACD,EACH,GACF,CAEJ","names":["jsx","jsxs","Check","Globe","usePathname","useRouter","DropdownMenu","DropdownMenuContent","DropdownMenuItem","DropdownMenuTrigger","LanguageSwitcher","locale","label","locales","localeLabels","pathname","router","switchTo","target","segments","l"]}
package/dist/logo.js DELETED
@@ -1,2 +0,0 @@
1
- import{Fragment as d,jsx as r,jsxs as t}from"react/jsx-runtime";import m from"next/link";import{cn as g}from"@gaine/core";function c({href:a,label:o,mark:s,primary:i,secondary:e,product:n,className:l}){return t(m,{href:a,"aria-label":o,className:g("group inline-flex items-center gap-2.5 font-display text-lg font-semibold tracking-tight",l),children:[r("span",{"aria-hidden":!0,className:"grid size-8 place-items-center rounded-lg bg-primary text-sm font-bold text-primary-foreground transition-transform duration-300 group-hover:-rotate-6",children:s}),i,e?r("span",{className:"font-normal text-muted-foreground",children:e}):null,n?t(d,{children:[r("span",{"aria-hidden":!0,className:"hidden h-5 w-px bg-border sm:block"}),r("span",{className:"hidden text-base font-medium text-muted-foreground sm:block",children:n})]}):null]})}export{c as Logo};
2
- //# sourceMappingURL=logo.js.map
package/dist/logo.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/logo.tsx"],"sourcesContent":["/*\n * Copyright 2026 SoTeen Studio\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport Link from \"next/link\";\nimport { cn } from \"@gaine/core\";\n\nexport interface LogoProps {\n href: string;\n label: string;\n mark: string;\n primary: string;\n secondary?: string;\n product?: string;\n className?: string;\n}\n\nexport function Logo({ href, label, mark, primary, secondary, product, className }: LogoProps) {\n return (\n <Link\n href={href}\n aria-label={label}\n className={cn(\n \"group inline-flex items-center gap-2.5 font-display text-lg font-semibold tracking-tight\",\n className,\n )}\n >\n <span\n aria-hidden\n className=\"grid size-8 place-items-center rounded-lg bg-primary text-sm font-bold text-primary-foreground transition-transform duration-300 group-hover:-rotate-6\"\n >\n {mark}\n </span>\n {primary}\n {secondary ? <span className=\"font-normal text-muted-foreground\">{secondary}</span> : null}\n {product ? (\n <>\n <span aria-hidden className=\"hidden h-5 w-px bg-border sm:block\" />\n <span className=\"hidden text-base font-medium text-muted-foreground sm:block\">\n {product}\n </span>\n </>\n ) : null}\n </Link>\n );\n}\n"],"mappings":"AAuCM,OASE,YAAAA,EATF,OAAAC,EASE,QAAAC,MATF,oBAvBN,OAAOC,MAAU,YACjB,OAAS,MAAAC,MAAU,cAYZ,SAASC,EAAK,CAAE,KAAAC,EAAM,MAAAC,EAAO,KAAAC,EAAM,QAAAC,EAAS,UAAAC,EAAW,QAAAC,EAAS,UAAAC,CAAU,EAAc,CAC7F,OACEV,EAACC,EAAA,CACC,KAAMG,EACN,aAAYC,EACZ,UAAWH,EACT,2FACAQ,CACF,EAEA,UAAAX,EAAC,QACC,cAAW,GACX,UAAU,yJAET,SAAAO,EACH,EACCC,EACAC,EAAYT,EAAC,QAAK,UAAU,oCAAqC,SAAAS,EAAU,EAAU,KACrFC,EACCT,EAAAF,EAAA,CACE,UAAAC,EAAC,QAAK,cAAW,GAAC,UAAU,qCAAqC,EACjEA,EAAC,QAAK,UAAU,8DACb,SAAAU,EACH,GACF,EACE,MACN,CAEJ","names":["Fragment","jsx","jsxs","Link","cn","Logo","href","label","mark","primary","secondary","product","className"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/metadata.ts"],"sourcesContent":["/*\n * Copyright 2026 SoTeen Studio\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { MetadataRoute } from \"next\";\n\nexport function createRobots(options: {\n baseUrl: string;\n disallow?: string[];\n}): MetadataRoute.Robots {\n return {\n rules: {\n userAgent: \"*\",\n allow: \"/\",\n disallow: options.disallow ?? [\"/_next/\", \"/api/\"],\n },\n sitemap: `${options.baseUrl}/sitemap.xml`,\n };\n}\n\nexport interface SitemapPage {\n path: string;\n priority: number;\n changeFrequency?: NonNullable<MetadataRoute.Sitemap[number][\"changeFrequency\"]>;\n}\n\nexport function createSitemap<L extends string>(options: {\n baseUrl: string;\n locales: readonly L[];\n pages: readonly SitemapPage[];\n now?: Date;\n}): MetadataRoute.Sitemap {\n const now = options.now ?? new Date();\n const entries: MetadataRoute.Sitemap = [];\n for (const locale of options.locales) {\n for (const page of options.pages) {\n entries.push({\n url: `${options.baseUrl}/${locale}${page.path}`,\n lastModified: now,\n changeFrequency: page.changeFrequency ?? \"weekly\",\n priority: page.priority,\n });\n }\n }\n return entries;\n}\n"],"mappings":"AAkBO,SAASA,EAAaC,EAGJ,CACvB,MAAO,CACL,MAAO,CACL,UAAW,IACX,MAAO,IACP,SAAUA,EAAQ,UAAY,CAAC,UAAW,OAAO,CACnD,EACA,QAAS,GAAGA,EAAQ,OAAO,cAC7B,CACF,CAQO,SAASC,EAAgCD,EAKtB,CACxB,MAAME,EAAMF,EAAQ,KAAO,IAAI,KACzBG,EAAiC,CAAC,EACxC,UAAWC,KAAUJ,EAAQ,QAC3B,UAAWK,KAAQL,EAAQ,MACzBG,EAAQ,KAAK,CACX,IAAK,GAAGH,EAAQ,OAAO,IAAII,CAAM,GAAGC,EAAK,IAAI,GAC7C,aAAcH,EACd,gBAAiBG,EAAK,iBAAmB,SACzC,SAAUA,EAAK,QACjB,CAAC,EAGL,OAAOF,CACT","names":["createRobots","options","createSitemap","now","entries","locale","page"]}
package/dist/og.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/og.tsx"],"sourcesContent":["/*\n * Copyright 2026 SoTeen Studio\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ImageResponse } from \"next/og\";\n\nexport const ogSize = { width: 1200, height: 630 };\nexport const ogContentType = \"image/png\";\n\nexport interface OgCoverProps {\n brand: string;\n title: string;\n description: string;\n footerStart: string;\n footerEnd?: string;\n}\n\nexport function renderOgCover({ brand, title, description, footerStart, footerEnd }: OgCoverProps) {\n return new ImageResponse(\n <div\n style={{\n height: \"100%\",\n width: \"100%\",\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"space-between\",\n backgroundColor: \"#09090b\",\n color: \"#fafafa\",\n padding: \"72px 80px\",\n fontFamily: \"sans-serif\",\n }}\n >\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: \"16px\",\n fontSize: 28,\n fontWeight: 600,\n color: \"#a1a1aa\",\n }}\n >\n <div\n style={{\n width: 18,\n height: 18,\n borderRadius: 999,\n backgroundColor: \"#fafafa\",\n }}\n />\n <span>{brand}</span>\n </div>\n\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: \"24px\" }}>\n <div\n style={{\n fontSize: 64,\n fontWeight: 700,\n lineHeight: 1.15,\n letterSpacing: \"-0.03em\",\n maxWidth: \"960px\",\n }}\n >\n {title}\n </div>\n <div\n style={{\n fontSize: 26,\n color: \"#a1a1aa\",\n lineHeight: 1.4,\n maxWidth: \"880px\",\n }}\n >\n {description}\n </div>\n </div>\n\n <div\n style={{\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n borderTop: \"1px solid #27272a\",\n paddingTop: \"28px\",\n fontSize: 24,\n color: \"#71717a\",\n }}\n >\n <span>{footerStart}</span>\n <span>{footerEnd}</span>\n </div>\n </div>,\n { ...ogSize },\n );\n}\n\nexport function renderOgFallback(brand: string) {\n return new ImageResponse(\n <div\n style={{\n height: \"100%\",\n width: \"100%\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n backgroundColor: \"#09090b\",\n color: \"#fafafa\",\n fontSize: 48,\n fontWeight: 700,\n }}\n >\n {brand}\n </div>,\n { ...ogSize },\n );\n}\n"],"mappings":"AA4CM,OAUE,OAAAA,EAVF,QAAAC,MAAA,oBA5BN,OAAS,iBAAAC,MAAqB,UAEvB,MAAMC,EAAS,CAAE,MAAO,KAAM,OAAQ,GAAI,EACpCC,EAAgB,YAUtB,SAASC,EAAc,CAAE,MAAAC,EAAO,MAAAC,EAAO,YAAAC,EAAa,YAAAC,EAAa,UAAAC,CAAU,EAAiB,CACjG,OAAO,IAAIR,EACTD,EAAC,OACC,MAAO,CACL,OAAQ,OACR,MAAO,OACP,QAAS,OACT,cAAe,SACf,eAAgB,gBAChB,gBAAiB,UACjB,MAAO,UACP,QAAS,YACT,WAAY,YACd,EAEA,UAAAA,EAAC,OACC,MAAO,CACL,QAAS,OACT,WAAY,SACZ,IAAK,OACL,SAAU,GACV,WAAY,IACZ,MAAO,SACT,EAEA,UAAAD,EAAC,OACC,MAAO,CACL,MAAO,GACP,OAAQ,GACR,aAAc,IACd,gBAAiB,SACnB,EACF,EACAA,EAAC,QAAM,SAAAM,EAAM,GACf,EAEAL,EAAC,OAAI,MAAO,CAAE,QAAS,OAAQ,cAAe,SAAU,IAAK,MAAO,EAClE,UAAAD,EAAC,OACC,MAAO,CACL,SAAU,GACV,WAAY,IACZ,WAAY,KACZ,cAAe,UACf,SAAU,OACZ,EAEC,SAAAO,EACH,EACAP,EAAC,OACC,MAAO,CACL,SAAU,GACV,MAAO,UACP,WAAY,IACZ,SAAU,OACZ,EAEC,SAAAQ,EACH,GACF,EAEAP,EAAC,OACC,MAAO,CACL,QAAS,OACT,eAAgB,gBAChB,WAAY,SACZ,UAAW,oBACX,WAAY,OACZ,SAAU,GACV,MAAO,SACT,EAEA,UAAAD,EAAC,QAAM,SAAAS,EAAY,EACnBT,EAAC,QAAM,SAAAU,EAAU,GACnB,GACF,EACA,CAAE,GAAGP,CAAO,CACd,CACF,CAEO,SAASQ,EAAiBL,EAAe,CAC9C,OAAO,IAAIJ,EACTF,EAAC,OACC,MAAO,CACL,OAAQ,OACR,MAAO,OACP,QAAS,OACT,WAAY,SACZ,eAAgB,SAChB,gBAAiB,UACjB,MAAO,UACP,SAAU,GACV,WAAY,GACd,EAEC,SAAAM,EACH,EACA,CAAE,GAAGH,CAAO,CACd,CACF","names":["jsx","jsxs","ImageResponse","ogSize","ogContentType","renderOgCover","brand","title","description","footerStart","footerEnd","renderOgFallback"]}
package/dist/proxy.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/proxy.ts"],"sourcesContent":["/*\n * Copyright 2026 SoTeen Studio\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { NextResponse, type NextRequest } from \"next/server\";\nimport { detectLocale } from \"@gaine/core\";\n\nexport interface LocaleProxyOptions<L extends string> {\n locales: readonly L[];\n defaultLocale: L;\n}\n\nexport function createLocaleProxy<L extends string>({\n locales,\n defaultLocale,\n}: LocaleProxyOptions<L>) {\n return function proxy(request: NextRequest) {\n const { pathname } = request.nextUrl;\n const hasLocale = locales.some(\n (locale) => pathname === `/${locale}` || pathname.startsWith(`/${locale}/`),\n );\n if (hasLocale) return NextResponse.next();\n\n const url = request.nextUrl.clone();\n const locale = detectLocale(request.headers.get(\"accept-language\"), locales, defaultLocale);\n url.pathname = `/${locale}${pathname === \"/\" ? \"\" : pathname}`;\n return NextResponse.redirect(url);\n };\n}\n"],"mappings":"AAgBA,OAAS,gBAAAA,MAAsC,cAC/C,OAAS,gBAAAC,MAAoB,cAOtB,SAASC,EAAoC,CAClD,QAAAC,EACA,cAAAC,CACF,EAA0B,CACxB,OAAO,SAAeC,EAAsB,CAC1C,KAAM,CAAE,SAAAC,CAAS,EAAID,EAAQ,QAI7B,GAHkBF,EAAQ,KACvBI,GAAWD,IAAa,IAAIC,CAAM,IAAMD,EAAS,WAAW,IAAIC,CAAM,GAAG,CAC5E,EACe,OAAOP,EAAa,KAAK,EAExC,MAAMQ,EAAMH,EAAQ,QAAQ,MAAM,EAC5BE,EAASN,EAAaI,EAAQ,QAAQ,IAAI,iBAAiB,EAAGF,EAASC,CAAa,EAC1F,OAAAI,EAAI,SAAW,IAAID,CAAM,GAAGD,IAAa,IAAM,GAAKA,CAAQ,GACrDN,EAAa,SAASQ,CAAG,CAClC,CACF","names":["NextResponse","detectLocale","createLocaleProxy","locales","defaultLocale","request","pathname","locale","url"]}
package/dist/reveal.js DELETED
@@ -1,2 +0,0 @@
1
- import{reveal as o}from"@gaine/core";function p(e=0,r="up"){const{style:t,...a}=o(e,r);return{...a,style:t,suppressHydrationWarning:!0}}export{p as reveal};
2
- //# sourceMappingURL=reveal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/reveal.ts"],"sourcesContent":["/*\n * Copyright 2026 SoTeen Studio\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { CSSProperties } from \"react\";\nimport { reveal as coreReveal, type RevealVariant } from \"@gaine/core\";\n\nexport type { RevealVariant };\n\nexport function reveal(delay = 0, variant: RevealVariant = \"up\") {\n const { style, ...rest } = coreReveal(delay, variant);\n return {\n ...rest,\n style: style as CSSProperties,\n suppressHydrationWarning: true as const,\n };\n}\n"],"mappings":"AAiBA,OAAS,UAAUA,MAAsC,cAIlD,SAASC,EAAOC,EAAQ,EAAGC,EAAyB,KAAM,CAC/D,KAAM,CAAE,MAAAC,EAAO,GAAGC,CAAK,EAAIL,EAAWE,EAAOC,CAAO,EACpD,MAAO,CACL,GAAGE,EACH,MAAOD,EACP,yBAA0B,EAC5B,CACF","names":["coreReveal","reveal","delay","variant","style","rest"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/scroll-reveal.tsx"],"sourcesContent":["/*\n * Copyright 2026 SoTeen Studio\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\"use client\";\nimport * as React from \"react\";\nimport { usePathname } from \"next/navigation\";\nexport function ScrollReveal() {\n const pathname = usePathname();\n React.useEffect(() => {\n const targets = document.querySelectorAll<HTMLElement>(\"[data-reveal]:not(.is-visible)\");\n if (!(\"IntersectionObserver\" in window)) {\n targets.forEach((el) => el.classList.add(\"is-visible\"));\n return;\n }\n const observer = new IntersectionObserver(\n (entries) => {\n for (const entry of entries) {\n if (!entry.isIntersecting) continue;\n entry.target.classList.add(\"is-visible\");\n observer.unobserve(entry.target);\n }\n },\n { threshold: 0.12, rootMargin: \"0px 0px -6% 0px\" },\n );\n targets.forEach((el) => observer.observe(el));\n return () => observer.disconnect();\n }, [pathname]);\n return null;\n}\n"],"mappings":"aAiBA,UAAYA,MAAW,QACvB,OAAS,eAAAC,MAAmB,kBACrB,SAASC,GAAe,CAC7B,MAAMC,EAAWF,EAAY,EAC7B,OAAAD,EAAM,UAAU,IAAM,CACpB,MAAMI,EAAU,SAAS,iBAA8B,gCAAgC,EACvF,GAAI,EAAE,yBAA0B,QAAS,CACvCA,EAAQ,QAASC,GAAOA,EAAG,UAAU,IAAI,YAAY,CAAC,EACtD,MACF,CACA,MAAMC,EAAW,IAAI,qBAClBC,GAAY,CACX,UAAWC,KAASD,EACbC,EAAM,iBACXA,EAAM,OAAO,UAAU,IAAI,YAAY,EACvCF,EAAS,UAAUE,EAAM,MAAM,EAEnC,EACA,CAAE,UAAW,IAAM,WAAY,iBAAkB,CACnD,EACA,OAAAJ,EAAQ,QAASC,GAAOC,EAAS,QAAQD,CAAE,CAAC,EACrC,IAAMC,EAAS,WAAW,CACnC,EAAG,CAACH,CAAQ,CAAC,EACN,IACT","names":["React","usePathname","ScrollReveal","pathname","targets","el","observer","entries","entry"]}
package/dist/speed.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/speed.tsx"],"sourcesContent":["/*\n * Copyright 2026 SoTeen Studio\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n gaineRuntimeScript,\n hintAttrs,\n renderLanguageMenu,\n renderThemeToggle,\n speculationRulesJson,\n type ResourceHint,\n type RuntimeOptions,\n type SpeculationOptions,\n} from \"@gaine/core/speed\";\n\nexport type { ResourceHint, RuntimeOptions, SpeculationOptions };\n\nexport interface GaineHeadProps {\n hints?: readonly ResourceHint[];\n speculation?: boolean | SpeculationOptions;\n}\n\nfunction linkProps(hint: ResourceHint) {\n const a = hintAttrs(hint);\n return {\n rel: a.rel,\n href: a.href,\n as: a.as,\n type: a.type,\n crossOrigin:\n a.crossorigin === undefined\n ? undefined\n : ((a.crossorigin || \"anonymous\") as \"anonymous\" | \"use-credentials\"),\n fetchPriority: a.fetchpriority as \"high\" | \"low\" | \"auto\" | undefined,\n media: a.media,\n };\n}\n\nexport function GaineHead({ hints = [], speculation }: GaineHeadProps) {\n const rules = speculation ? speculationRulesJson(speculation === true ? {} : speculation) : null;\n return (\n <>\n {hints.map((hint) => (\n <link key={`${hint.rel}:${hint.href}`} {...linkProps(hint)} />\n ))}\n {rules ? (\n <script type=\"speculationrules\" dangerouslySetInnerHTML={{ __html: rules }} />\n ) : null}\n </>\n );\n}\n\nexport function GaineRuntime(props: RuntimeOptions) {\n const script = gaineRuntimeScript(props);\n return script ? <script dangerouslySetInnerHTML={{ __html: script }} /> : null;\n}\n\nconst contents = { display: \"contents\" } as const;\n\nexport function ThemeToggleLite({ label }: { label: string }) {\n return <div style={contents} dangerouslySetInnerHTML={{ __html: renderThemeToggle(label) }} />;\n}\n\nexport interface LanguageSwitcherLiteProps<L extends string> {\n locale: L;\n label: string;\n locales: readonly L[];\n localeLabels: Record<L, string>;\n base?: string;\n trailingSlash?: boolean;\n path?: string;\n}\n\nexport function LanguageSwitcherLite<L extends string>({\n localeLabels,\n ...rest\n}: LanguageSwitcherLiteProps<L>) {\n return (\n <div\n style={contents}\n dangerouslySetInnerHTML={{ __html: renderLanguageMenu({ ...rest, labels: localeLabels }) }}\n />\n );\n}\n"],"mappings":"AAqDI,mBAAAA,EAEI,OAAAC,EAFJ,QAAAC,MAAA,oBArCJ,OACE,sBAAAC,EACA,aAAAC,EACA,sBAAAC,EACA,qBAAAC,EACA,wBAAAC,MAIK,oBASP,SAASC,EAAUC,EAAoB,CACrC,MAAMC,EAAIN,EAAUK,CAAI,EACxB,MAAO,CACL,IAAKC,EAAE,IACP,KAAMA,EAAE,KACR,GAAIA,EAAE,GACN,KAAMA,EAAE,KACR,YACEA,EAAE,cAAgB,OACd,OACEA,EAAE,aAAe,YACzB,cAAeA,EAAE,cACjB,MAAOA,EAAE,KACX,CACF,CAEO,SAASC,EAAU,CAAE,MAAAC,EAAQ,CAAC,EAAG,YAAAC,CAAY,EAAmB,CACrE,MAAMC,EAAQD,EAAcN,EAAqBM,IAAgB,GAAO,CAAC,EAAIA,CAAW,EAAI,KAC5F,OACEX,EAAAF,EAAA,CACG,UAAAY,EAAM,IAAKH,GACVR,EAAC,QAAuC,GAAGO,EAAUC,CAAI,GAA9C,GAAGA,EAAK,GAAG,IAAIA,EAAK,IAAI,EAAyB,CAC7D,EACAK,EACCb,EAAC,UAAO,KAAK,mBAAmB,wBAAyB,CAAE,OAAQa,CAAM,EAAG,EAC1E,MACN,CAEJ,CAEO,SAASC,EAAaC,EAAuB,CAClD,MAAMC,EAASd,EAAmBa,CAAK,EACvC,OAAOC,EAAShB,EAAC,UAAO,wBAAyB,CAAE,OAAQgB,CAAO,EAAG,EAAK,IAC5E,CAEA,MAAMC,EAAW,CAAE,QAAS,UAAW,EAEhC,SAASC,EAAgB,CAAE,MAAAC,CAAM,EAAsB,CAC5D,OAAOnB,EAAC,OAAI,MAAOiB,EAAU,wBAAyB,CAAE,OAAQZ,EAAkBc,CAAK,CAAE,EAAG,CAC9F,CAYO,SAASC,EAAuC,CACrD,aAAAC,EACA,GAAGC,CACL,EAAiC,CAC/B,OACEtB,EAAC,OACC,MAAOiB,EACP,wBAAyB,CAAE,OAAQb,EAAmB,CAAE,GAAGkB,EAAM,OAAQD,CAAa,CAAC,CAAE,EAC3F,CAEJ","names":["Fragment","jsx","jsxs","gaineRuntimeScript","hintAttrs","renderLanguageMenu","renderThemeToggle","speculationRulesJson","linkProps","hint","a","GaineHead","hints","speculation","rules","GaineRuntime","props","script","contents","ThemeToggleLite","label","LanguageSwitcherLite","localeLabels","rest"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/theme-sync.tsx"],"sourcesContent":["/*\n * Copyright 2026 SoTeen Studio\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\"use client\";\n\nimport * as React from \"react\";\nimport { usePathname } from \"next/navigation\";\nimport { applyTheme } from \"@gaine/core\";\n\nexport function ThemeSync() {\n const pathname = usePathname();\n React.useLayoutEffect(() => {\n applyTheme();\n }, [pathname]);\n React.useEffect(() => {\n const media = window.matchMedia(\"(prefers-color-scheme: dark)\");\n media.addEventListener(\"change\", applyTheme);\n return () => media.removeEventListener(\"change\", applyTheme);\n }, []);\n return null;\n}\n"],"mappings":"aAkBA,UAAYA,MAAW,QACvB,OAAS,eAAAC,MAAmB,kBAC5B,OAAS,cAAAC,MAAkB,cAEpB,SAASC,GAAY,CAC1B,MAAMC,EAAWH,EAAY,EAC7B,OAAAD,EAAM,gBAAgB,IAAM,CAC1BE,EAAW,CACb,EAAG,CAACE,CAAQ,CAAC,EACbJ,EAAM,UAAU,IAAM,CACpB,MAAMK,EAAQ,OAAO,WAAW,8BAA8B,EAC9D,OAAAA,EAAM,iBAAiB,SAAUH,CAAU,EACpC,IAAMG,EAAM,oBAAoB,SAAUH,CAAU,CAC7D,EAAG,CAAC,CAAC,EACE,IACT","names":["React","usePathname","applyTheme","ThemeSync","pathname","media"]}
package/dist/ui/badge.js DELETED
@@ -1,2 +0,0 @@
1
- import{jsx as s}from"react/jsx-runtime";import{cva as d}from"class-variance-authority";import{cn as o}from"@gaine/core";const e=d("inline-flex items-center gap-1.5 rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors",{variants:{variant:{default:"border-transparent bg-secondary text-secondary-foreground",outline:"text-foreground",live:"border-emerald-200 bg-emerald-50 text-emerald-700 dark:border-emerald-500/30 dark:bg-emerald-500/10 dark:text-emerald-300",beta:"border-sky-200 bg-sky-50 text-sky-700 dark:border-sky-500/30 dark:bg-sky-500/10 dark:text-sky-300",development:"border-amber-200 bg-amber-50 text-amber-700 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-300",planned:"border-slate-200 bg-slate-50 text-slate-600 dark:border-slate-500/30 dark:bg-slate-500/10 dark:text-slate-300"}},defaultVariants:{variant:"default"}});function n({className:r,variant:a,...t}){return s("span",{className:o(e({variant:a}),r),...t})}export{n as Badge,e as badgeVariants};
2
- //# sourceMappingURL=badge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/ui/badge.tsx"],"sourcesContent":["/*\n * Copyright 2026 SoTeen Studio\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as React from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"@gaine/core\";\nconst badgeVariants = cva(\n \"inline-flex items-center gap-1.5 rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors\",\n {\n variants: {\n variant: {\n default: \"border-transparent bg-secondary text-secondary-foreground\",\n outline: \"text-foreground\",\n live: \"border-emerald-200 bg-emerald-50 text-emerald-700 dark:border-emerald-500/30 dark:bg-emerald-500/10 dark:text-emerald-300\",\n beta: \"border-sky-200 bg-sky-50 text-sky-700 dark:border-sky-500/30 dark:bg-sky-500/10 dark:text-sky-300\",\n development:\n \"border-amber-200 bg-amber-50 text-amber-700 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-300\",\n planned:\n \"border-slate-200 bg-slate-50 text-slate-600 dark:border-slate-500/30 dark:bg-slate-500/10 dark:text-slate-300\",\n },\n },\n defaultVariants: { variant: \"default\" },\n },\n);\nexport interface BadgeProps\n extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {}\nfunction Badge({ className, variant, ...props }: BadgeProps) {\n return <span className={cn(badgeVariants({ variant }), className)} {...props} />;\n}\nexport { Badge, badgeVariants };\n"],"mappings":"AAwCS,cAAAA,MAAA,oBAvBT,OAAS,OAAAC,MAA8B,2BACvC,OAAS,MAAAC,MAAU,cACnB,MAAMC,EAAgBF,EACpB,2GACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,4DACT,QAAS,kBACT,KAAM,4HACN,KAAM,oGACN,YACE,gHACF,QACE,+GACJ,CACF,EACA,gBAAiB,CAAE,QAAS,SAAU,CACxC,CACF,EAGA,SAASG,EAAM,CAAE,UAAAC,EAAW,QAAAC,EAAS,GAAGC,CAAM,EAAe,CAC3D,OAAOP,EAAC,QAAK,UAAWE,EAAGC,EAAc,CAAE,QAAAG,CAAQ,CAAC,EAAGD,CAAS,EAAI,GAAGE,EAAO,CAChF","names":["jsx","cva","cn","badgeVariants","Badge","className","variant","props"]}
package/dist/ui/button.js DELETED
@@ -1,2 +0,0 @@
1
- import{jsx as c}from"react/jsx-runtime";import*as u from"react";import{Slot as f}from"@radix-ui/react-slot";import{cva as l}from"class-variance-authority";import{cn as d}from"@gaine/core";const t=l("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 active:scale-[0.98] [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",brand:"bg-brand text-brand-foreground hover:bg-brand/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-foreground underline-offset-4 hover:underline"},size:{default:"h-10 px-5",sm:"h-9 px-4",lg:"h-12 px-7 text-base",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}}),e=u.forwardRef(({className:o,variant:r,size:n,asChild:a=!1,...i},s)=>c(a?f:"button",{ref:s,className:d(t({variant:r,size:n,className:o})),...i}));e.displayName="Button";export{e as Button,t as buttonVariants};
2
- //# sourceMappingURL=button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/ui/button.tsx"],"sourcesContent":["/*\n * Copyright 2026 SoTeen Studio\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"@gaine/core\";\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 active:scale-[0.98] [&_svg]:size-4 [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n brand: \"bg-brand text-brand-foreground hover:bg-brand/90\",\n outline: \"border border-input bg-background hover:bg-accent hover:text-accent-foreground\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"text-foreground underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-10 px-5\",\n sm: \"h-9 px-4\",\n lg: \"h-12 px-7 text-base\",\n icon: \"size-10\",\n },\n },\n defaultVariants: { variant: \"default\", size: \"default\" },\n },\n);\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n}\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\";\n return (\n <Comp ref={ref} className={cn(buttonVariants({ variant, size, className }))} {...props} />\n );\n },\n);\nButton.displayName = \"Button\";\nexport { Button, buttonVariants };\n"],"mappings":"AAiDM,cAAAA,MAAA,oBAjCN,UAAYC,MAAW,QACvB,OAAS,QAAAC,MAAY,uBACrB,OAAS,OAAAC,MAA8B,2BACvC,OAAS,MAAAC,MAAU,cACnB,MAAMC,EAAiBF,EACrB,wUACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,yDACT,MAAO,mDACP,QAAS,iFACT,MAAO,+CACP,KAAM,oDACR,EACA,KAAM,CACJ,QAAS,YACT,GAAI,WACJ,GAAI,sBACJ,KAAM,SACR,CACF,EACA,gBAAiB,CAAE,QAAS,UAAW,KAAM,SAAU,CACzD,CACF,EAKMG,EAASL,EAAM,WACnB,CAAC,CAAE,UAAAM,EAAW,QAAAC,EAAS,KAAAC,EAAM,QAAAC,EAAU,GAAO,GAAGC,CAAM,EAAGC,IAGtDZ,EAFWU,EAAUR,EAAO,SAE3B,CAAK,IAAKU,EAAK,UAAWR,EAAGC,EAAe,CAAE,QAAAG,EAAS,KAAAC,EAAM,UAAAF,CAAU,CAAC,CAAC,EAAI,GAAGI,EAAO,CAG9F,EACAL,EAAO,YAAc","names":["jsx","React","Slot","cva","cn","buttonVariants","Button","className","variant","size","asChild","props","ref"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/ui/dropdown-menu.tsx"],"sourcesContent":["/*\n * Copyright 2026 SoTeen Studio\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\"use client\";\nimport * as React from \"react\";\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { cn } from \"@gaine/core\";\nconst DropdownMenu = DropdownMenuPrimitive.Root;\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 10, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 min-w-[16rem] overflow-hidden rounded-2xl border bg-popover p-2 text-popover-foreground shadow-xl shadow-black/5\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2\",\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = \"DropdownMenuContent\";\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex cursor-pointer select-none flex-col gap-0.5 rounded-xl px-3 py-2.5 text-sm outline-none transition-colors focus:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className,\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = \"DropdownMenuItem\";\nexport { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem };\n"],"mappings":"aA2BI,cAAAA,MAAA,oBAVJ,UAAYC,MAAW,QACvB,UAAYC,MAA2B,gCACvC,OAAS,MAAAC,MAAU,cACnB,MAAMC,EAAeF,EAAsB,KACrCG,EAAsBH,EAAsB,QAC5CI,EAAsBL,EAAM,WAGhC,CAAC,CAAE,UAAAM,EAAW,WAAAC,EAAa,GAAI,GAAGC,CAAM,EAAGC,IAC3CV,EAACE,EAAsB,OAAtB,CACC,SAAAF,EAACE,EAAsB,QAAtB,CACC,IAAKQ,EACL,WAAYF,EACZ,UAAWL,EACT,wHACA,8NACAI,CACF,EACC,GAAGE,EACN,EACF,CACD,EACDH,EAAoB,YAAc,sBAClC,MAAMK,EAAmBV,EAAM,WAG7B,CAAC,CAAE,UAAAM,EAAW,GAAGE,CAAM,EAAGC,IAC1BV,EAACE,EAAsB,KAAtB,CACC,IAAKQ,EACL,UAAWP,EACT,yMACAI,CACF,EACC,GAAGE,EACN,CACD,EACDE,EAAiB,YAAc","names":["jsx","React","DropdownMenuPrimitive","cn","DropdownMenu","DropdownMenuTrigger","DropdownMenuContent","className","sideOffset","props","ref","DropdownMenuItem"]}
@@ -1,2 +0,0 @@
1
- import{jsx as e,jsxs as a}from"react/jsx-runtime";import{reveal as l}from"../reveal.js";import{cn as r}from"@gaine/core";function d({eyebrow:n,title:i,description:t,className:s}){return a("div",{className:r("max-w-2xl",s),...l(),children:[a("p",{className:"mb-4 flex items-center gap-2 text-sm font-medium text-brand",children:[e("span",{"aria-hidden":!0,className:"h-px w-6 bg-brand"}),n]}),e("h2",{className:"font-display text-3xl font-semibold tracking-tight text-balance sm:text-4xl lg:text-5xl",children:i}),t?e("p",{className:"mt-5 text-lg leading-relaxed text-muted-foreground",children:t}):null]})}export{d as SectionHeading};
2
- //# sourceMappingURL=section-heading.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/ui/section-heading.tsx"],"sourcesContent":["/*\n * Copyright 2026 SoTeen Studio\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { reveal } from \"../reveal.js\";\nimport { cn } from \"@gaine/core\";\ninterface SectionHeadingProps {\n eyebrow: string;\n title: string;\n description?: string;\n className?: string;\n}\nexport function SectionHeading({ eyebrow, title, description, className }: SectionHeadingProps) {\n return (\n <div className={cn(\"max-w-2xl\", className)} {...reveal()}>\n <p className=\"mb-4 flex items-center gap-2 text-sm font-medium text-brand\">\n <span aria-hidden className=\"h-px w-6 bg-brand\" />\n {eyebrow}\n </p>\n <h2 className=\"font-display text-3xl font-semibold tracking-tight text-balance sm:text-4xl lg:text-5xl\">\n {title}\n </h2>\n {description ? (\n <p className=\"mt-5 text-lg leading-relaxed text-muted-foreground\">{description}</p>\n ) : null}\n </div>\n );\n}\n"],"mappings":"AA2BM,OACE,OAAAA,EADF,QAAAC,MAAA,oBAXN,OAAS,UAAAC,MAAc,eACvB,OAAS,MAAAC,MAAU,cAOZ,SAASC,EAAe,CAAE,QAAAC,EAAS,MAAAC,EAAO,YAAAC,EAAa,UAAAC,CAAU,EAAwB,CAC9F,OACEP,EAAC,OAAI,UAAWE,EAAG,YAAaK,CAAS,EAAI,GAAGN,EAAO,EACrD,UAAAD,EAAC,KAAE,UAAU,8DACX,UAAAD,EAAC,QAAK,cAAW,GAAC,UAAU,oBAAoB,EAC/CK,GACH,EACAL,EAAC,MAAG,UAAU,0FACX,SAAAM,EACH,EACCC,EACCP,EAAC,KAAE,UAAU,qDAAsD,SAAAO,EAAY,EAC7E,MACN,CAEJ","names":["jsx","jsxs","reveal","cn","SectionHeading","eyebrow","title","description","className"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/ui/theme-toggle.tsx"],"sourcesContent":["/*\n * Copyright 2026 SoTeen Studio\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\"use client\";\n\nimport { Moon, Sun } from \"lucide-react\";\nimport { toggleTheme } from \"@gaine/core\";\n\nexport function ThemeToggle({ label }: { label: string }) {\n return (\n <button\n type=\"button\"\n onClick={toggleTheme}\n aria-label={label}\n title={label}\n className=\"inline-flex size-9 items-center justify-center rounded-full border text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring\"\n >\n <Sun className=\"hidden size-4 dark:block\" />\n <Moon className=\"size-4 dark:hidden\" />\n </button>\n );\n}\n"],"mappings":"aAuBI,OAOE,OAAAA,EAPF,QAAAC,MAAA,oBALJ,OAAS,QAAAC,EAAM,OAAAC,MAAW,eAC1B,OAAS,eAAAC,MAAmB,cAErB,SAASC,EAAY,CAAE,MAAAC,CAAM,EAAsB,CACxD,OACEL,EAAC,UACC,KAAK,SACL,QAASG,EACT,aAAYE,EACZ,MAAOA,EACP,UAAU,6MAEV,UAAAN,EAACG,EAAA,CAAI,UAAU,2BAA2B,EAC1CH,EAACE,EAAA,CAAK,UAAU,qBAAqB,GACvC,CAEJ","names":["jsx","jsxs","Moon","Sun","toggleTheme","ThemeToggle","label"]}