@dub/ui 0.0.14 → 0.0.15

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.
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as d}from"./chunk-OVENGIH6.mjs";import{a as f}from"./chunk-CS6Q63Y7.mjs";import{a as c,d as t}from"./chunk-I747HOW7.mjs";import{ChevronDown as y,Menu as g,X as N}from"lucide-react";import i from"next/link";import{useParams as h}from"next/navigation";import{useEffect as v,useState as p}from"react";import{Fragment as w,jsx as e,jsxs as s}from"react/jsx-runtime";function S(){let{domain:m="dub.co"}=h(),[a,n]=p(!1),[r,u]=p(!1);return v(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]),s(w,{children:[e("button",{onClick:()=>n(!a),className:t("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(N,{className:"h-5 w-5 text-gray-600"}):e(g,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>u(!r),children:[e("p",{className:"font-semibold",children:"Features"}),e(y,{className:t("h-5 w-5 text-gray-500 transition-all",r&&"rotate-180")})]}),r&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:f.map(({slug:l,icon:o,shortTitle:b})=>s(i,{href:m==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>n(!1),className:"flex w-full space-x-2",children:[e(o,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:b})]},l))})]}),d.map(({name:l,slug:o})=>e("li",{className:"py-3",children:e(i,{href:m==="dub.co"?`/${o}`:`https://dub.co/${o}`,onClick:()=>n(!1),className:"flex w-full font-semibold capitalize",children:l})},o)),e("li",{className:"py-3",children:e(i,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(i,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})})]})}export{S as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as d}from"./chunk-Q3TMQG5D.mjs";import{a as f}from"./chunk-CS6Q63Y7.mjs";import{a as c,d as t}from"./chunk-I747HOW7.mjs";import{ChevronDown as y,Menu as g,X as N}from"lucide-react";import i from"next/link";import{useParams as h}from"next/navigation";import{useEffect as v,useState as p}from"react";import{Fragment as w,jsx as e,jsxs as s}from"react/jsx-runtime";function S(){let{domain:m="dub.co"}=h(),[a,n]=p(!1),[r,u]=p(!1);return v(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]),s(w,{children:[e("button",{onClick:()=>n(!a),className:t("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(N,{className:"h-5 w-5 text-gray-600"}):e(g,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>u(!r),children:[e("p",{className:"font-semibold",children:"Features"}),e(y,{className:t("h-5 w-5 text-gray-500 transition-all",r&&"rotate-180")})]}),r&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:f.map(({slug:l,icon:o,shortTitle:b})=>s(i,{href:m==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>n(!1),className:"flex w-full space-x-2",children:[e(o,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:b})]},l))})]}),d.map(({name:l,slug:o})=>e("li",{className:"py-3",children:e(i,{href:m==="dub.co"?`/${o}`:`https://dub.co/${o}`,onClick:()=>n(!1),className:"flex w-full font-semibold capitalize",children:l})},o)),e("li",{className:"py-3",children:e(i,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(i,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})})]})}export{S as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as d}from"./chunk-KGLMRZ7F.mjs";import{a as f}from"./chunk-CS6Q63Y7.mjs";import{a as c,d as t}from"./chunk-I747HOW7.mjs";import{ChevronDown as y,Menu as g,X as N}from"lucide-react";import i from"next/link";import{useParams as h}from"next/navigation";import{useEffect as v,useState as p}from"react";import{Fragment as w,jsx as e,jsxs as s}from"react/jsx-runtime";function S(){let{domain:m="dub.co"}=h(),[a,n]=p(!1),[r,u]=p(!1);return v(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]),s(w,{children:[e("button",{onClick:()=>n(!a),className:t("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(N,{className:"h-5 w-5 text-gray-600"}):e(g,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>u(!r),children:[e("p",{className:"font-semibold",children:"Features"}),e(y,{className:t("h-5 w-5 text-gray-500 transition-all",r&&"rotate-180")})]}),r&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:f.map(({slug:l,icon:o,shortTitle:b})=>s(i,{href:m==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>n(!1),className:"flex w-full space-x-2",children:[e(o,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:b})]},l))})]}),d.map(({name:l,slug:o})=>e("li",{className:"py-3",children:e(i,{href:m==="dub.co"?`/${o}`:`https://dub.co/${o}`,onClick:()=>n(!1),className:"flex w-full font-semibold capitalize",children:l})},o)),e("li",{className:"py-3",children:e(i,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(i,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})})]})}export{S as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as d}from"./chunk-WHZY6RSL.mjs";import{a as f}from"./chunk-CS6Q63Y7.mjs";import{a as c,d as t}from"./chunk-I747HOW7.mjs";import{ChevronDown as y,Menu as g,X as N}from"lucide-react";import i from"next/link";import{useParams as h}from"next/navigation";import{useEffect as v,useState as p}from"react";import{Fragment as w,jsx as e,jsxs as s}from"react/jsx-runtime";function S(){let{domain:m="dub.co"}=h(),[a,n]=p(!1),[r,u]=p(!1);return v(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]),s(w,{children:[e("button",{onClick:()=>n(!a),className:t("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(N,{className:"h-5 w-5 text-gray-600"}):e(g,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>u(!r),children:[e("p",{className:"font-semibold",children:"Features"}),e(y,{className:t("h-5 w-5 text-gray-500 transition-all",r&&"rotate-180")})]}),r&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:f.map(({slug:l,icon:o,shortTitle:b})=>s(i,{href:m==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>n(!1),className:"flex w-full space-x-2",children:[e(o,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:b})]},l))})]}),d.map(({name:l,slug:o})=>e("li",{className:"py-3",children:e(i,{href:m==="dub.co"?`/${o}`:`https://dub.co/${o}`,onClick:()=>n(!1),className:"flex w-full font-semibold capitalize",children:l})},o)),e("li",{className:"py-3",children:e(i,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(i,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})})]})}export{S as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as f}from"./chunk-CS6Q63Y7.mjs";import{a as b}from"./chunk-RAUB4W7B.mjs";import{e as v}from"./chunk-NHHVF35L.mjs";import{a as p}from"./chunk-UM4A5EU5.mjs";import{a as l,b as u,d as c,e as g}from"./chunk-I747HOW7.mjs";import*as i from"@radix-ui/react-navigation-menu";import s from"@vercel/analytics";import{ChevronDown as y}from"lucide-react";import n from"next/link";import{useParams as w,useSelectedLayoutSegment as M}from"next/navigation";import P from"swr";import{jsx as e,jsxs as a}from"react/jsx-runtime";var C=[{name:"Customers",slug:"customers"},{name:"Changelog",slug:"changelog"},{name:"Help",slug:"help"},{name:"Pricing",slug:"pricing"}];function D(){let{domain:t="dub.co"}=w(),x=v(80),m=M(),d=m==="help",{data:N}=P("/api/auth/session",g,{dedupingInterval:6e4});return console.log("SESSION",N),e("div",{className:c("sticky inset-x-0 top-0 z-30 w-full transition-all",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg":x,"border-b border-gray-200 bg-white":m&&!u.includes(m)}),children:e(b,{...d&&{className:"max-w-screen-lg"},children:a("div",{className:"flex h-14 items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[e(n,{href:t==="dub.co"?"/":"https://dub.co",...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"logo"})}},children:e(p,{})}),d?a("div",{className:"flex items-center",children:[e("div",{className:"mr-3 h-5 border-l-2 border-gray-400"}),e(n,{href:"/help",className:"font-display text-lg font-bold text-gray-700",children:"Help Center"})]}):a(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[a(i.List,{className:"flex flex-row space-x-2 p-4",children:[a(i.Item,{children:[a(i.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none",children:[e("p",{className:c("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black",{"text-black":m==="features"}),children:"Features"}),e(y,{className:"h-4 w-4 transition-all group-data-[state=open]:rotate-180"})]}),e(i.Content,{children:e("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:f.map(({slug:r,icon:o,title:h,shortTitle:k})=>a(n,{href:t==="dub.co"?`/${r}`:`https://dub.co/${r}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (/${r})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[a("div",{className:"flex items-center space-x-2",children:[e(o,{className:"h-4 w-4 text-gray-700"}),e("p",{className:"text-sm font-medium text-gray-700",children:k})]}),e("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500",children:h})]},r))})})]}),C.map(({name:r,slug:o})=>e(i.Item,{asChild:!0,children:e(n,{id:`nav-${o}`,href:t==="dub.co"?`/${o}`:`https://dub.co/${o}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (${o})`})}},className:c("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",{"text-black":m===o}),children:r},o)},o))]}),e(i.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg"})]})]}),a("div",{className:"hidden lg:block",children:[e(n,{href:`${l}/login`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",children:"Log in"}),e(n,{href:`${l}/register`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Sign Up"})]})]})})})}export{C as a,D as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as f}from"./chunk-CS6Q63Y7.mjs";import{a as b}from"./chunk-RAUB4W7B.mjs";import{e as v}from"./chunk-NHHVF35L.mjs";import{a as g}from"./chunk-UM4A5EU5.mjs";import{a as l,b as u,d as c,e as p}from"./chunk-I747HOW7.mjs";import*as i from"@radix-ui/react-navigation-menu";import s from"@vercel/analytics";import{ChevronDown as k}from"lucide-react";import n from"next/link";import{useParams as y,useSelectedLayoutSegment as w}from"next/navigation";import M from"swr";import{jsx as e,jsxs as a}from"react/jsx-runtime";var P=[{name:"Customers",slug:"customers"},{name:"Changelog",slug:"changelog"},{name:"Help",slug:"help"},{name:"Pricing",slug:"pricing"}];function E(){let{domain:t="dub.co"}=y(),x=v(80),m=w(),d=m==="help",{data:C}=M("/api/auth/session",p);return e("div",{className:c("sticky inset-x-0 top-0 z-30 w-full transition-all",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg":x,"border-b border-gray-200 bg-white":m&&!u.includes(m)}),children:e(b,{...d&&{className:"max-w-screen-lg"},children:a("div",{className:"flex h-14 items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[e(n,{href:t==="dub.co"?"/":"https://dub.co",...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"logo"})}},children:e(g,{})}),d?a("div",{className:"flex items-center",children:[e("div",{className:"mr-3 h-5 border-l-2 border-gray-400"}),e(n,{href:"/help",className:"font-display text-lg font-bold text-gray-700",children:"Help Center"})]}):a(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[a(i.List,{className:"flex flex-row space-x-2 p-4",children:[a(i.Item,{children:[a(i.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none",children:[e("p",{className:c("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black",{"text-black":m==="features"}),children:"Features"}),e(k,{className:"h-4 w-4 transition-all group-data-[state=open]:rotate-180"})]}),e(i.Content,{children:e("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:f.map(({slug:r,icon:o,title:h,shortTitle:N})=>a(n,{href:t==="dub.co"?`/${r}`:`https://dub.co/${r}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (/${r})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[a("div",{className:"flex items-center space-x-2",children:[e(o,{className:"h-4 w-4 text-gray-700"}),e("p",{className:"text-sm font-medium text-gray-700",children:N})]}),e("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500",children:h})]},r))})})]}),P.map(({name:r,slug:o})=>e(i.Item,{asChild:!0,children:e(n,{id:`nav-${o}`,href:t==="dub.co"?`/${o}`:`https://dub.co/${o}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (${o})`})}},className:c("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",{"text-black":m===o}),children:r},o)},o))]}),e(i.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg"})]})]}),a("div",{className:"hidden lg:block",children:[e(n,{href:`${l}/login`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",children:"Log in"}),e(n,{href:`${l}/register`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Sign Up"})]})]})})})}export{P as a,E as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as p}from"./chunk-LJYI3ZHH.mjs";import{a as d}from"./chunk-CS6Q63Y7.mjs";import{a as t,d as n,e as f}from"./chunk-I747HOW7.mjs";import{ChevronDown as N,Menu as v,X as w}from"lucide-react";import o from"next/link";import{useParams as x}from"next/navigation";import{useEffect as k,useState as u}from"react";import L from"swr";import{Fragment as b,jsx as e,jsxs as s}from"react/jsx-runtime";function M(){let{domain:r="dub.co"}=x(),[a,c]=u(!1),[m,h]=u(!1);k(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:y,isLoading:z}=L(r==="dub.co"&&"/api/auth/session",f,{dedupingInterval:6e4});return s(b,{children:[e("button",{onClick:()=>c(!a),className:n("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600"}):e(v,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:n("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>h(!m),children:[e("p",{className:"font-semibold",children:"Features"}),e(N,{className:n("h-5 w-5 text-gray-500 transition-all",m&&"rotate-180")})]}),m&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:d.map(({slug:i,icon:l,shortTitle:g})=>s(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>c(!1),className:"flex w-full space-x-2",children:[e(l,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:g})]},i))})]}),p.map(({name:i,slug:l})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>c(!1),className:"flex w-full font-semibold capitalize",children:i})},l)),y?e("li",{className:"py-3",children:e(o,{href:t,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(b,{children:[e("li",{className:"py-3",children:e(o,{href:`${t}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${t}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{M as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as b}from"./chunk-CS6Q63Y7.mjs";import{a as f}from"./chunk-RAUB4W7B.mjs";import{e as v}from"./chunk-NHHVF35L.mjs";import{a as p}from"./chunk-UM4A5EU5.mjs";import{a as l,b as u,d,e as g}from"./chunk-I747HOW7.mjs";import*as i from"@radix-ui/react-navigation-menu";import s from"@vercel/analytics";import{ChevronDown as w}from"lucide-react";import r from"next/link";import{useParams as M,useSelectedLayoutSegment as P}from"next/navigation";import L from"swr";import{Fragment as R,jsx as e,jsxs as a}from"react/jsx-runtime";var C=[{name:"Customers",slug:"customers"},{name:"Changelog",slug:"changelog"},{name:"Help",slug:"help"},{name:"Pricing",slug:"pricing"}];function O(){let{domain:t="dub.co"}=M(),x=v(80),m=P(),c=m==="help",{data:h,isLoading:N}=L(t==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return e("div",{className:d("sticky inset-x-0 top-0 z-30 w-full transition-all",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg":x,"border-b border-gray-200 bg-white":m&&!u.includes(m)}),children:e(f,{...c&&{className:"max-w-screen-lg"},children:a("div",{className:"flex h-14 items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[e(r,{href:t==="dub.co"?"/":"https://dub.co",...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"logo"})}},children:e(p,{})}),c?a("div",{className:"flex items-center",children:[e("div",{className:"mr-3 h-5 border-l-2 border-gray-400"}),e(r,{href:"/help",className:"font-display text-lg font-bold text-gray-700",children:"Help Center"})]}):a(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[a(i.List,{className:"flex flex-row space-x-2 p-4",children:[a(i.Item,{children:[a(i.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none",children:[e("p",{className:d("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black",{"text-black":m==="features"}),children:"Features"}),e(w,{className:"h-4 w-4 transition-all group-data-[state=open]:rotate-180"})]}),e(i.Content,{children:e("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:b.map(({slug:n,icon:o,title:k,shortTitle:y})=>a(r,{href:t==="dub.co"?`/${n}`:`https://dub.co/${n}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (/${n})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[a("div",{className:"flex items-center space-x-2",children:[e(o,{className:"h-4 w-4 text-gray-700"}),e("p",{className:"text-sm font-medium text-gray-700",children:y})]}),e("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500",children:k})]},n))})})]}),C.map(({name:n,slug:o})=>e(i.Item,{asChild:!0,children:e(r,{id:`nav-${o}`,href:t==="dub.co"?`/${o}`:`https://dub.co/${o}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (${o})`})}},className:d("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",{"text-black":m===o}),children:n},o)},o))]}),e(i.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg"})]})]}),e("div",{className:"hidden lg:block",children:h?e(r,{href:l,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Dashboard"}):N?null:a(R,{children:[e(r,{href:`${l}/login`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",children:"Log in"}),e(r,{href:`${l}/register`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Sign Up"})]})})]})})})}export{C as a,O as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as f}from"./chunk-CS6Q63Y7.mjs";import{a as b}from"./chunk-RAUB4W7B.mjs";import{e as v}from"./chunk-NHHVF35L.mjs";import{a as p}from"./chunk-UM4A5EU5.mjs";import{a as l,b as u,d as c,e as g}from"./chunk-I747HOW7.mjs";import*as i from"@radix-ui/react-navigation-menu";import s from"@vercel/analytics";import{ChevronDown as y}from"lucide-react";import n from"next/link";import{useParams as w,useSelectedLayoutSegment as M}from"next/navigation";import P from"swr";import{jsx as e,jsxs as a}from"react/jsx-runtime";var C=[{name:"Customers",slug:"customers"},{name:"Changelog",slug:"changelog"},{name:"Help",slug:"help"},{name:"Pricing",slug:"pricing"}];function D(){let{domain:t="dub.co"}=w(),x=v(80),m=M(),d=m==="help",{data:N}=P("/api/auth/session",g);return console.log("SESSION",N),e("div",{className:c("sticky inset-x-0 top-0 z-30 w-full transition-all",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg":x,"border-b border-gray-200 bg-white":m&&!u.includes(m)}),children:e(b,{...d&&{className:"max-w-screen-lg"},children:a("div",{className:"flex h-14 items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[e(n,{href:t==="dub.co"?"/":"https://dub.co",...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"logo"})}},children:e(p,{})}),d?a("div",{className:"flex items-center",children:[e("div",{className:"mr-3 h-5 border-l-2 border-gray-400"}),e(n,{href:"/help",className:"font-display text-lg font-bold text-gray-700",children:"Help Center"})]}):a(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[a(i.List,{className:"flex flex-row space-x-2 p-4",children:[a(i.Item,{children:[a(i.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none",children:[e("p",{className:c("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black",{"text-black":m==="features"}),children:"Features"}),e(y,{className:"h-4 w-4 transition-all group-data-[state=open]:rotate-180"})]}),e(i.Content,{children:e("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:f.map(({slug:r,icon:o,title:h,shortTitle:k})=>a(n,{href:t==="dub.co"?`/${r}`:`https://dub.co/${r}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (/${r})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[a("div",{className:"flex items-center space-x-2",children:[e(o,{className:"h-4 w-4 text-gray-700"}),e("p",{className:"text-sm font-medium text-gray-700",children:k})]}),e("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500",children:h})]},r))})})]}),C.map(({name:r,slug:o})=>e(i.Item,{asChild:!0,children:e(n,{id:`nav-${o}`,href:t==="dub.co"?`/${o}`:`https://dub.co/${o}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (${o})`})}},className:c("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",{"text-black":m===o}),children:r},o)},o))]}),e(i.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg"})]})]}),a("div",{className:"hidden lg:block",children:[e(n,{href:`${l}/login`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",children:"Log in"}),e(n,{href:`${l}/register`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Sign Up"})]})]})})})}export{C as a,D as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as f}from"./chunk-CS6Q63Y7.mjs";import{a as b}from"./chunk-RAUB4W7B.mjs";import{e as v}from"./chunk-NHHVF35L.mjs";import{a as g}from"./chunk-UM4A5EU5.mjs";import{a as l,b as u,d as c,e as p}from"./chunk-I747HOW7.mjs";import*as i from"@radix-ui/react-navigation-menu";import s from"@vercel/analytics";import{ChevronDown as y}from"lucide-react";import n from"next/link";import{useParams as w,useSelectedLayoutSegment as M}from"next/navigation";import P from"swr";import{jsx as e,jsxs as a}from"react/jsx-runtime";var C=[{name:"Customers",slug:"customers"},{name:"Changelog",slug:"changelog"},{name:"Help",slug:"help"},{name:"Pricing",slug:"pricing"}];function D(){let{domain:t="dub.co"}=w(),x=v(80),m=M(),d=m==="help",{data:h}=P("https://api.dub.co/auth/session",p);return console.log("SESSION",h),e("div",{className:c("sticky inset-x-0 top-0 z-30 w-full transition-all",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg":x,"border-b border-gray-200 bg-white":m&&!u.includes(m)}),children:e(b,{...d&&{className:"max-w-screen-lg"},children:a("div",{className:"flex h-14 items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[e(n,{href:t==="dub.co"?"/":"https://dub.co",...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"logo"})}},children:e(g,{})}),d?a("div",{className:"flex items-center",children:[e("div",{className:"mr-3 h-5 border-l-2 border-gray-400"}),e(n,{href:"/help",className:"font-display text-lg font-bold text-gray-700",children:"Help Center"})]}):a(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[a(i.List,{className:"flex flex-row space-x-2 p-4",children:[a(i.Item,{children:[a(i.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none",children:[e("p",{className:c("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black",{"text-black":m==="features"}),children:"Features"}),e(y,{className:"h-4 w-4 transition-all group-data-[state=open]:rotate-180"})]}),e(i.Content,{children:e("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:f.map(({slug:r,icon:o,title:N,shortTitle:k})=>a(n,{href:t==="dub.co"?`/${r}`:`https://dub.co/${r}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (/${r})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[a("div",{className:"flex items-center space-x-2",children:[e(o,{className:"h-4 w-4 text-gray-700"}),e("p",{className:"text-sm font-medium text-gray-700",children:k})]}),e("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500",children:N})]},r))})})]}),C.map(({name:r,slug:o})=>e(i.Item,{asChild:!0,children:e(n,{id:`nav-${o}`,href:t==="dub.co"?`/${o}`:`https://dub.co/${o}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (${o})`})}},className:c("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",{"text-black":m===o}),children:r},o)},o))]}),e(i.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg"})]})]}),a("div",{className:"hidden lg:block",children:[e(n,{href:`${l}/login`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",children:"Log in"}),e(n,{href:`${l}/register`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Sign Up"})]})]})})})}export{C as a,D as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as d}from"./chunk-BGTFGJQG.mjs";import{a as f}from"./chunk-CS6Q63Y7.mjs";import{a as c,d as t}from"./chunk-I747HOW7.mjs";import{ChevronDown as y,Menu as g,X as N}from"lucide-react";import i from"next/link";import{useParams as h}from"next/navigation";import{useEffect as v,useState as p}from"react";import{Fragment as w,jsx as e,jsxs as s}from"react/jsx-runtime";function S(){let{domain:m="dub.co"}=h(),[a,n]=p(!1),[r,u]=p(!1);return v(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]),s(w,{children:[e("button",{onClick:()=>n(!a),className:t("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(N,{className:"h-5 w-5 text-gray-600"}):e(g,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>u(!r),children:[e("p",{className:"font-semibold",children:"Features"}),e(y,{className:t("h-5 w-5 text-gray-500 transition-all",r&&"rotate-180")})]}),r&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:f.map(({slug:l,icon:o,shortTitle:b})=>s(i,{href:m==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>n(!1),className:"flex w-full space-x-2",children:[e(o,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:b})]},l))})]}),d.map(({name:l,slug:o})=>e("li",{className:"py-3",children:e(i,{href:m==="dub.co"?`/${o}`:`https://dub.co/${o}`,onClick:()=>n(!1),className:"flex w-full font-semibold capitalize",children:l})},o)),e("li",{className:"py-3",children:e(i,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(i,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})})]})}export{S as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as f}from"./chunk-CS6Q63Y7.mjs";import{a as b}from"./chunk-RAUB4W7B.mjs";import{e as v}from"./chunk-NHHVF35L.mjs";import{a as p}from"./chunk-UM4A5EU5.mjs";import{a as l,b as u,d as c,e as g}from"./chunk-I747HOW7.mjs";import*as i from"@radix-ui/react-navigation-menu";import s from"@vercel/analytics";import{ChevronDown as y}from"lucide-react";import n from"next/link";import{useParams as w,useSelectedLayoutSegment as M}from"next/navigation";import P from"swr";import{jsx as e,jsxs as a}from"react/jsx-runtime";var C=[{name:"Customers",slug:"customers"},{name:"Changelog",slug:"changelog"},{name:"Help",slug:"help"},{name:"Pricing",slug:"pricing"}];function D(){let{domain:t="dub.co"}=w(),x=v(80),m=M(),d=m==="help",{data:N}=P(t==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return console.log("SESSION",N),e("div",{className:c("sticky inset-x-0 top-0 z-30 w-full transition-all",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg":x,"border-b border-gray-200 bg-white":m&&!u.includes(m)}),children:e(b,{...d&&{className:"max-w-screen-lg"},children:a("div",{className:"flex h-14 items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[e(n,{href:t==="dub.co"?"/":"https://dub.co",...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"logo"})}},children:e(p,{})}),d?a("div",{className:"flex items-center",children:[e("div",{className:"mr-3 h-5 border-l-2 border-gray-400"}),e(n,{href:"/help",className:"font-display text-lg font-bold text-gray-700",children:"Help Center"})]}):a(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[a(i.List,{className:"flex flex-row space-x-2 p-4",children:[a(i.Item,{children:[a(i.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none",children:[e("p",{className:c("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black",{"text-black":m==="features"}),children:"Features"}),e(y,{className:"h-4 w-4 transition-all group-data-[state=open]:rotate-180"})]}),e(i.Content,{children:e("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:f.map(({slug:r,icon:o,title:h,shortTitle:k})=>a(n,{href:t==="dub.co"?`/${r}`:`https://dub.co/${r}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (/${r})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[a("div",{className:"flex items-center space-x-2",children:[e(o,{className:"h-4 w-4 text-gray-700"}),e("p",{className:"text-sm font-medium text-gray-700",children:k})]}),e("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500",children:h})]},r))})})]}),C.map(({name:r,slug:o})=>e(i.Item,{asChild:!0,children:e(n,{id:`nav-${o}`,href:t==="dub.co"?`/${o}`:`https://dub.co/${o}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (${o})`})}},className:c("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",{"text-black":m===o}),children:r},o)},o))]}),e(i.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg"})]})]}),a("div",{className:"hidden lg:block",children:[e(n,{href:`${l}/login`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",children:"Log in"}),e(n,{href:`${l}/register`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Sign Up"})]})]})})})}export{C as a,D as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as d}from"./chunk-LJYI3ZHH.mjs";import{a as f}from"./chunk-CS6Q63Y7.mjs";import{a as c,d as t}from"./chunk-I747HOW7.mjs";import{ChevronDown as y,Menu as g,X as N}from"lucide-react";import i from"next/link";import{useParams as h}from"next/navigation";import{useEffect as v,useState as p}from"react";import{Fragment as w,jsx as e,jsxs as s}from"react/jsx-runtime";function S(){let{domain:m="dub.co"}=h(),[a,n]=p(!1),[r,u]=p(!1);return v(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]),s(w,{children:[e("button",{onClick:()=>n(!a),className:t("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(N,{className:"h-5 w-5 text-gray-600"}):e(g,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>u(!r),children:[e("p",{className:"font-semibold",children:"Features"}),e(y,{className:t("h-5 w-5 text-gray-500 transition-all",r&&"rotate-180")})]}),r&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:f.map(({slug:l,icon:o,shortTitle:b})=>s(i,{href:m==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>n(!1),className:"flex w-full space-x-2",children:[e(o,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:b})]},l))})]}),d.map(({name:l,slug:o})=>e("li",{className:"py-3",children:e(i,{href:m==="dub.co"?`/${o}`:`https://dub.co/${o}`,onClick:()=>n(!1),className:"flex w-full font-semibold capitalize",children:l})},o)),e("li",{className:"py-3",children:e(i,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(i,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})})]})}export{S as a};
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client"
2
- import{a as R}from"./chunk-FMUX4F5B.mjs";import{a as S}from"./chunk-VVGVBAES.mjs";import{a as Y}from"./chunk-SN3ZPBNA.mjs";import{a as P}from"./chunk-Z4MSMGYC.mjs";import{a as W}from"./chunk-O5BHK57C.mjs";import{a as X}from"./chunk-WXFLRAXF.mjs";import{a as Q}from"./chunk-LQYAZJHE.mjs";import{a as V}from"./chunk-PV4NMDRO.mjs";import{a as T,b as U}from"./chunk-O3M45753.mjs";import{a as o,b as r,c as m,d as p}from"./chunk-VVQVXVI6.mjs";import{a as t,b as e}from"./chunk-7OFEXLPH.mjs";import{a as f}from"./chunk-T4SI3PQO.mjs";import{a as x,b as i}from"./chunk-4OWTA5E5.mjs";import{a as K}from"./chunk-VBAJIQUE.mjs";import{a as N}from"./chunk-ZGWF6PPM.mjs";import{a as L}from"./chunk-CS6Q63Y7.mjs";import{a as M}from"./chunk-RAUB4W7B.mjs";import{a as O}from"./chunk-K7EXNYMN.mjs";import{a as J}from"./chunk-RIZCB3ZQ.mjs";import{a as E,b as F,c as G,d as H,e as I}from"./chunk-W6CKEKA7.mjs";import{a as z,b as A,c as B,d as C,e as D}from"./chunk-NHHVF35L.mjs";import"./chunk-PHU6NRSR.mjs";import{a as c}from"./chunk-YURUGH4S.mjs";import{a as d}from"./chunk-2TGXECZQ.mjs";import{a as g}from"./chunk-EHYVEIOL.mjs";import{a as w}from"./chunk-UN5ZTUMU.mjs";import{a as y}from"./chunk-GSQUGPJ2.mjs";import{a as u}from"./chunk-OYEGFR5W.mjs";import{a as v}from"./chunk-5EWSH7PD.mjs";import{a as h}from"./chunk-L3GNNGNG.mjs";import{a as j}from"./chunk-QA2KCGIR.mjs";import{a as k}from"./chunk-SZIOUGU7.mjs";import{a as l}from"./chunk-BK3FE6XA.mjs";import{a as n}from"./chunk-UM4A5EU5.mjs";import{a}from"./chunk-Z5P2KHPP.mjs";import{a as b}from"./chunk-FH7LN5ZW.mjs";import{a as q}from"./chunk-MURAUI3W.mjs";import{a as s}from"./chunk-T4YFARK5.mjs";import"./chunk-I747HOW7.mjs";import"./chunk-AUBFB4SI.mjs";export{o as Accordion,p as AccordionContent,r as AccordionItem,m as AccordionTrigger,t as Avatar,f as Background,i as Badge,J as Button,a as Copy,K as CopyButton,b as ExpandingArrow,L as FEATURES_LIST,q as Facebook,N as Footer,O as Form,s as Github,u as Google,P as IconMenu,H as InfoTooltip,W as InlineSnippet,X as LinkPreview,v as LinkedIn,h as LoadingCircle,j as LoadingDots,k as LoadingSpinner,l as Logo,n as LogoType,c as Magic,M as MaxWidthWrapper,Q as Modal,U as Nav,V as NavMobile,I as NumberTooltip,d as Photo,R as Popover,G as SimpleTooltipContent,S as Switch,Y as TabSelect,g as Tick,e as TokenAvatar,E as Tooltip,F as TooltipContent,w as Twitter,y as Unsplash,x as badgeVariants,T as navItems,z as useCurrentAnchor,A as useIntersectionObserver,B as useLocalStorage,C as useMediaQuery,D as useScroll};
2
+ import{a as R}from"./chunk-FMUX4F5B.mjs";import{a as S}from"./chunk-VVGVBAES.mjs";import{a as Y}from"./chunk-SN3ZPBNA.mjs";import{a as P}from"./chunk-Z4MSMGYC.mjs";import{a as W}from"./chunk-O5BHK57C.mjs";import{a as X}from"./chunk-WXFLRAXF.mjs";import{a as Q}from"./chunk-LQYAZJHE.mjs";import{a as V}from"./chunk-LER5GA2H.mjs";import{a as T,b as U}from"./chunk-LJYI3ZHH.mjs";import{a as o,b as r,c as m,d as p}from"./chunk-VVQVXVI6.mjs";import{a as t,b as e}from"./chunk-7OFEXLPH.mjs";import{a as f}from"./chunk-T4SI3PQO.mjs";import{a as x,b as i}from"./chunk-4OWTA5E5.mjs";import{a as K}from"./chunk-VBAJIQUE.mjs";import{a as N}from"./chunk-ZGWF6PPM.mjs";import{a as L}from"./chunk-CS6Q63Y7.mjs";import{a as M}from"./chunk-RAUB4W7B.mjs";import{a as O}from"./chunk-K7EXNYMN.mjs";import{a as J}from"./chunk-RIZCB3ZQ.mjs";import{a as E,b as F,c as G,d as H,e as I}from"./chunk-W6CKEKA7.mjs";import{a as z,b as A,c as B,d as C,e as D}from"./chunk-NHHVF35L.mjs";import"./chunk-PHU6NRSR.mjs";import{a as c}from"./chunk-YURUGH4S.mjs";import{a as d}from"./chunk-2TGXECZQ.mjs";import{a as g}from"./chunk-EHYVEIOL.mjs";import{a as w}from"./chunk-UN5ZTUMU.mjs";import{a as y}from"./chunk-GSQUGPJ2.mjs";import{a as u}from"./chunk-OYEGFR5W.mjs";import{a as v}from"./chunk-5EWSH7PD.mjs";import{a as h}from"./chunk-L3GNNGNG.mjs";import{a as j}from"./chunk-QA2KCGIR.mjs";import{a as k}from"./chunk-SZIOUGU7.mjs";import{a as l}from"./chunk-BK3FE6XA.mjs";import{a as n}from"./chunk-UM4A5EU5.mjs";import{a}from"./chunk-Z5P2KHPP.mjs";import{a as b}from"./chunk-FH7LN5ZW.mjs";import{a as q}from"./chunk-MURAUI3W.mjs";import{a as s}from"./chunk-T4YFARK5.mjs";import"./chunk-I747HOW7.mjs";import"./chunk-AUBFB4SI.mjs";export{o as Accordion,p as AccordionContent,r as AccordionItem,m as AccordionTrigger,t as Avatar,f as Background,i as Badge,J as Button,a as Copy,K as CopyButton,b as ExpandingArrow,L as FEATURES_LIST,q as Facebook,N as Footer,O as Form,s as Github,u as Google,P as IconMenu,H as InfoTooltip,W as InlineSnippet,X as LinkPreview,v as LinkedIn,h as LoadingCircle,j as LoadingDots,k as LoadingSpinner,l as Logo,n as LogoType,c as Magic,M as MaxWidthWrapper,Q as Modal,U as Nav,V as NavMobile,I as NumberTooltip,d as Photo,R as Popover,G as SimpleTooltipContent,S as Switch,Y as TabSelect,g as Tick,e as TokenAvatar,E as Tooltip,F as TooltipContent,w as Twitter,y as Unsplash,x as badgeVariants,T as navItems,z as useCurrentAnchor,A as useIntersectionObserver,B as useLocalStorage,C as useMediaQuery,D as useScroll};
@@ -1,2 +1,2 @@
1
1
  "use client"
2
- import{a}from"./chunk-PV4NMDRO.mjs";import"./chunk-O3M45753.mjs";import"./chunk-CS6Q63Y7.mjs";import"./chunk-RAUB4W7B.mjs";import"./chunk-NHHVF35L.mjs";import"./chunk-PHU6NRSR.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-UN5ZTUMU.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-OYEGFR5W.mjs";import"./chunk-5EWSH7PD.mjs";import"./chunk-L3GNNGNG.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-SZIOUGU7.mjs";import"./chunk-BK3FE6XA.mjs";import"./chunk-UM4A5EU5.mjs";import"./chunk-Z5P2KHPP.mjs";import"./chunk-FH7LN5ZW.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-I747HOW7.mjs";import"./chunk-AUBFB4SI.mjs";export{a as NavMobile};
2
+ import{a}from"./chunk-LER5GA2H.mjs";import"./chunk-LJYI3ZHH.mjs";import"./chunk-CS6Q63Y7.mjs";import"./chunk-RAUB4W7B.mjs";import"./chunk-NHHVF35L.mjs";import"./chunk-PHU6NRSR.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-UN5ZTUMU.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-OYEGFR5W.mjs";import"./chunk-5EWSH7PD.mjs";import"./chunk-L3GNNGNG.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-SZIOUGU7.mjs";import"./chunk-BK3FE6XA.mjs";import"./chunk-UM4A5EU5.mjs";import"./chunk-Z5P2KHPP.mjs";import"./chunk-FH7LN5ZW.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-I747HOW7.mjs";import"./chunk-AUBFB4SI.mjs";export{a as NavMobile};
package/dist/nav.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client"
2
- import{a,b}from"./chunk-O3M45753.mjs";import"./chunk-CS6Q63Y7.mjs";import"./chunk-RAUB4W7B.mjs";import"./chunk-NHHVF35L.mjs";import"./chunk-PHU6NRSR.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-UN5ZTUMU.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-OYEGFR5W.mjs";import"./chunk-5EWSH7PD.mjs";import"./chunk-L3GNNGNG.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-SZIOUGU7.mjs";import"./chunk-BK3FE6XA.mjs";import"./chunk-UM4A5EU5.mjs";import"./chunk-Z5P2KHPP.mjs";import"./chunk-FH7LN5ZW.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-I747HOW7.mjs";import"./chunk-AUBFB4SI.mjs";export{b as Nav,a as navItems};
2
+ import{a,b}from"./chunk-LJYI3ZHH.mjs";import"./chunk-CS6Q63Y7.mjs";import"./chunk-RAUB4W7B.mjs";import"./chunk-NHHVF35L.mjs";import"./chunk-PHU6NRSR.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-UN5ZTUMU.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-OYEGFR5W.mjs";import"./chunk-5EWSH7PD.mjs";import"./chunk-L3GNNGNG.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-SZIOUGU7.mjs";import"./chunk-BK3FE6XA.mjs";import"./chunk-UM4A5EU5.mjs";import"./chunk-Z5P2KHPP.mjs";import"./chunk-FH7LN5ZW.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-I747HOW7.mjs";import"./chunk-AUBFB4SI.mjs";export{b as Nav,a as navItems};
package/dist/tooltip.d.ts CHANGED
@@ -27,6 +27,6 @@ declare function NumberTooltip({ value, unit, children, lastClicked, }: {
27
27
  unit?: string;
28
28
  children: ReactNode;
29
29
  lastClicked?: Date | null;
30
- }): string | number | boolean | Iterable<ReactNode> | React.PromiseLikeOfReactNode | react_jsx_runtime.JSX.Element | null | undefined;
30
+ }): string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | React.PromiseLikeOfReactNode | null | undefined;
31
31
 
32
32
  export { InfoTooltip, NumberTooltip, SimpleTooltipContent, Tooltip, TooltipContent };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dub/ui",
3
3
  "description": "UI components for Dub.co",
4
- "version": "0.0.14",
4
+ "version": "0.0.15",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",