@dub/ui 0.1.22 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/badge.d.ts +1 -1
- package/dist/chunk-225UUKZG.mjs +7 -0
- package/dist/chunk-3WPFDU6U.mjs +2 -0
- package/dist/chunk-JJV5Q42I.mjs +2 -0
- package/dist/chunk-RJDEU7IS.mjs +7 -0
- package/dist/chunk-SLD56KDT.mjs +2 -0
- package/dist/chunk-YFQLBGGI.mjs +2 -0
- package/dist/footer.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/nav-logo.mjs +1 -1
- package/dist/nav-mobile.mjs +1 -1
- package/dist/nav.mjs +1 -1
- package/dist/tooltip.d.ts +1 -1
- package/package.json +1 -1
package/dist/badge.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as class_variance_authority_dist_types from 'class-variance-authority/d
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const badgeVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "violet" | "blue" | "sky" | "black" | "gray" | "neutral" | "rainbow" | null | undefined;
|
|
7
7
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
8
8
|
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
9
9
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as P}from"./chunk-ULDBWOXT.mjs";import{a as f}from"./chunk-SS6LMUHW.mjs";import{a as y}from"./chunk-AQEZRTKZ.mjs";import{a as N}from"./chunk-6ZR4XCJS.mjs";import{d as b,f as C,h as d,i as w}from"./chunk-UDSO3QDP.mjs";import*as r from"@radix-ui/react-navigation-menu";import h from"@vercel/analytics";import{ChevronDown as X}from"lucide-react";import p from"next/link";import{useParams as ee,useSelectedLayoutSegment as te}from"next/navigation";import{createContext as oe}from"react";import re from"swr";import{Airplay as A,BarChart as B,Link2 as I,QrCode as W,Users as D,Webhook as O}from"lucide-react";var M=[{title:"Powerful Analytics For The Modern Marketer",shortTitle:"Advanced Analytics",icon:B,slug:"features/analytics"},{title:"Branded Links That Stand Out",shortTitle:"Branded Links",icon:A,slug:"features/branded-links"},{title:"Gorgeous QR codes for your links",shortTitle:"QR Codes",icon:W,slug:"features/qr-codes"},{title:"Personalize Your Short Links",shortTitle:"Personalization",icon:I,slug:"features/personalization"},{title:"Collaborate With Your Team",shortTitle:"Team Collaboration",icon:D,slug:"features/collaboration"},{title:"Programmatic Link Creation",shortTitle:"API",icon:O,slug:"docs/api-reference/introduction"}];import{useCallback as $,useEffect as L,useState as G}from"react";function S(i){let[e,m]=G(!1),l=$(()=>{m(window.scrollY>i)},[i]);return L(()=>(window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)),[l]),L(()=>{l()},[l]),e}import*as c from"@radix-ui/react-popover";import{BoxSelect as Z,Home as z,LayoutGrid as F,Type as U}from"lucide-react";import{useParams as Q}from"next/navigation";import{useCallback as Y,useContext as j,useState as q}from"react";import{toast as T}from"sonner";import{jsx as o,jsxs as _}from"react/jsx-runtime";var K=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,J=`<svg width="177" height="64" viewBox="0 0 177 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M106.5 8H112.5V31.8666C112.5 31.911 112.501 31.9554 112.501 31.9999C112.501 32.0444 112.5 32.0888 112.5 32.1332V46H106.5V43.4909C104.232 45.0724 101.475 45.9999 98.5003 45.9999C90.7682 45.9999 84.5 39.7319 84.5 31.9999C84.5 24.2679 90.7682 17.9999 98.5003 17.9999C101.475 17.9999 104.232 18.9274 106.5 20.5089V8ZM98.5 39.9996C102.918 39.9996 106.5 36.418 106.5 31.9998C106.5 27.5816 102.918 24 98.5 24C94.0818 24 90.5 27.5816 90.5 31.9998C90.5 36.418 94.0818 39.9996 98.5 39.9996ZM148.5 8.0001H154.5V20.5096C156.768 18.9278 159.526 18.0002 162.5 18.0002C170.233 18.0002 176.501 24.2682 176.501 32.0002C176.501 39.7322 170.233 46.0002 162.5 46.0002C154.768 46.0002 148.5 39.7322 148.5 32.0002V32.0001V8.0001ZM162.5 39.9997C166.918 39.9997 170.5 36.4181 170.5 31.9999C170.5 27.5817 166.918 24.0001 162.5 24.0001C158.082 24.0001 154.5 27.5817 154.5 31.9999C154.5 36.4181 158.082 39.9997 162.5 39.9997ZM122.5 18H116.5V32C116.5 33.8385 116.862 35.659 117.566 37.3576C118.269 39.0561 119.301 40.5995 120.601 41.8995C121.901 43.1995 123.444 44.2307 125.143 44.9343C126.841 45.6379 128.662 46 130.5 46C132.339 46 134.159 45.6379 135.858 44.9343C137.557 44.2307 139.1 43.1995 140.4 41.8995C141.7 40.5995 142.731 39.0561 143.435 37.3576C144.139 35.659 144.501 33.8385 144.501 32H144.5V18H138.5V32H138.5C138.5 34.1216 137.657 36.1563 136.157 37.6566C134.657 39.1568 132.622 39.9996 130.5 39.9996C128.378 39.9996 126.344 39.1568 124.843 37.6566C123.343 36.1563 122.5 34.1216 122.5 32H122.5V18Z" fill="black"/>
|
|
6
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
7
|
+
</svg>`;async function V(i){try{await navigator.clipboard.writeText(i),T.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),T.error("Failed to copy to clipboard.")}}function H({variant:i="full",isInApp:e,className:m}){let{domain:l="dub.co"}=Q(),{theme:u}=j(x),[k,v]=q(!1),n=Y(a=>{a.preventDefault(),v(!0)},[]);return _(c.Root,{open:k,onOpenChange:v,children:[o(c.Anchor,{asChild:!0,children:o("div",{onContextMenu:n,className:"max-w-fit",children:i==="full"?o(P,{className:m}):o(f,{className:d("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(c.Portal,{children:o(c.Content,{sideOffset:14,align:"start",className:d("z-50 -mt-1.5 -translate-x-10",u==="dark"&&"dark"),onClick:a=>{a.stopPropagation(),v(!1)},children:_("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[o(g,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>V(K),icon:o(f,{className:"h-4 w-4"})}),o(g,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>V(J),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})}),o(g,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(Z,{strokeWidth:2,className:"h-4 w-4"})}),e||l?o(g,{text:"Home Page",variant:"outline",onClick:()=>window.open("https://dub.co","_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(g,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(F,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function g({className:i,...e}){return o(N,{className:d("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",i),...e})}import{Fragment as ie,jsx as t,jsxs as s}from"react/jsx-runtime";var x=oe({theme:"light"}),ae=[{name:"Customers",slug:"customers"},{name:"Pricing",slug:"pricing"},{name:"Enterprise",slug:"enterprise"},{name:"Blog",slug:"blog"},{name:"Changelog",slug:"changelog"}];function Re({theme:i="light"}){let{domain:e="dub.co"}=ee(),m=n=>e==="dub.co"?n:`https://dub.co${n}`,l=S(80),u=te(),{data:k,isLoading:v}=re(e==="dub.co"&&"/api/auth/session",C,{dedupingInterval:6e4});return t(x.Provider,{value:{theme:i},children:s("div",{className:d("sticky inset-x-0 top-0 z-30 w-full transition-all",i==="dark"&&"dark"),children:[t("div",{className:d("-z-1 absolute inset-0 border-transparent transition-all",{"border-b border-black/10 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75":l,"border-b border-black/10 bg-white dark:border-white/10 dark:bg-black":u&&w.includes(u)})}),t(y,{className:"relative",children:s("div",{className:"flex h-14 items-center justify-between",children:[s("div",{className:"flex items-center space-x-12",children:[t(p,{href:m("/"),...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,medium:"logo"})}},children:t(H,{})}),s(r.Root,{delayDuration:0,className:"relative hidden lg:block",children:[s(r.List,{className:"flex flex-row space-x-2 p-4",children:[s(r.Item,{children:[s(r.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 dark:hover:bg-white/10",children:[t("p",{className:d("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black dark:text-white/70 dark:group-hover:text-white",{"text-black dark:text-white":u==="features"}),children:"Features"}),t(X,{className:"h-4 w-4 text-black transition-all group-data-[state=open]:rotate-180 dark:text-white"})]}),t(r.Content,{children:t("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:M.map(({slug:n,icon:a,title:R,shortTitle:E})=>s(p,{href:m(`/${n}`),...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,medium:`navbar item (/${n})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200 dark:hover:bg-white/[0.15] dark:active:bg-white/20",children:[s("div",{className:"flex items-center space-x-2",children:[t(a,{className:"h-4 w-4 text-gray-700 dark:text-white/80"}),t("p",{className:"text-sm font-medium text-gray-700 dark:text-white",children:E})]}),t("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500 dark:text-white/60",children:R})]},n))})})]}),ae.map(({name:n,slug:a})=>t(r.Item,{asChild:!0,children:t(p,{id:`nav-${a}`,href:m(`/${a}`),...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,medium:`navbar item (${a})`})}},className:d("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white/70 dark:hover:text-white",{"text-black dark:text-white":u===a}),children:n},a)},a))]}),t(r.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 dark:border-white/[0.15] dark:bg-black"})]})]}),t("div",{className:"hidden lg:block",children:k&&Object.keys(k).length>0?t(p,{href:b,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):v?null:s(ie,{children:[t(p,{href:`${b}/login`,...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,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 dark:text-white dark:hover:text-white/70",children:"Log in"}),t(p,{href:`${b}/register`,...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,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-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}export{M as a,S as b,x as c,ae as d,Re as e,H as f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p,d as h}from"./chunk-RJDEU7IS.mjs";import{d as n,f,h as l}from"./chunk-UDSO3QDP.mjs";import{ChevronDown as y,Menu as N,X as w}from"lucide-react";import o from"next/link";import{useParams as v}from"next/navigation";import{useEffect as x,useState as u}from"react";import L from"swr";import{Fragment as z,jsx as e,jsxs as t}from"react/jsx-runtime";function D({theme:b="light"}){let{domain:r="dub.co"}=v(),[a,d]=u(!1),[c,g]=u(!1);x(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:m}=L(r==="dub.co"&&"/api/auth/session",f,{dedupingInterval:6e4});return t("div",{className:l(b==="dark"&&"dark"),children:[e("button",{onClick:()=>d(!a),className:l("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 dark:hover:bg-white/20 dark:active:bg-white/30",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(N,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:l("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:t("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[t("li",{className:"py-3",children:[t("button",{className:"flex w-full justify-between",onClick:()=>g(!c),children:[e("p",{className:"font-semibold",children:"Features"}),e(y,{className:l("h-5 w-5 text-gray-500 transition-all dark:text-white/50",c&&"rotate-180")})]}),c&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:i,icon:s,shortTitle:k})=>t(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>d(!1),className:"flex w-full space-x-2",children:[e(s,{className:"h-5 w-5 text-gray-500 dark:text-white/80"}),e("span",{className:"text-sm",children:k})]},i))})]}),h.map(({name:i,slug:s})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${s}`:`https://dub.co/${s}`,onClick:()=>d(!1),className:"flex w-full font-semibold capitalize",children:i})},s)),m&&Object.keys(m).length>0?e("li",{className:"py-3",children:e(o,{href:n,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):t(z,{children:[e("li",{className:"py-3",children:e(o,{href:`${n}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${n}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{D as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as x,f as N}from"./chunk-225UUKZG.mjs";import{a as v}from"./chunk-AQEZRTKZ.mjs";import{a as b}from"./chunk-IJUBM3YE.mjs";import{a as y}from"./chunk-ZAADGKP2.mjs";import{a as h}from"./chunk-7VCFP6UV.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{f as u,h as l,j as g,k as p}from"./chunk-UDSO3QDP.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as k}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={features:x.map(({shortTitle:a,slug:o})=>({name:a,href:`/${o}`})),product:[{name:"Blog",href:"/blog"},{name:"Brand",href:"/brand"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Help Center",href:"/help"}],compare:p.map(({name:a,slug:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function O(){let{domain:a="dub.co"}=T(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(v,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(N,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e($,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function $(){let{data:a}=R("https://status.dub.co/api/v1/summary",u),[o,r]=k("bg-gray-200"),[i,c]=k("Loading status...");return P(()=>{if(!a)return;let{ongoing_incidents:d}=a;if(d.length>0){let{current_worst_impact:w,name:L}=d[0],_=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),r(_)}else c("All systems operational"),r("bg-green-500")},[a]),t(s,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[t("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",o)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{O as a};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as P}from"./chunk-ULDBWOXT.mjs";import{a as f}from"./chunk-SS6LMUHW.mjs";import{a as y}from"./chunk-AQEZRTKZ.mjs";import{a as N}from"./chunk-6ZR4XCJS.mjs";import{d as b,f as C,h as d,i as w}from"./chunk-UDSO3QDP.mjs";import*as r from"@radix-ui/react-navigation-menu";import h from"@vercel/analytics";import{ChevronDown as X}from"lucide-react";import p from"next/link";import{useParams as ee,useSelectedLayoutSegment as te}from"next/navigation";import{createContext as oe}from"react";import re from"swr";import{Airplay as A,BarChart as B,Link2 as I,QrCode as W,Users as D,Webhook as O}from"lucide-react";var M=[{title:"Powerful Analytics For The Modern Marketer",shortTitle:"Advanced Analytics",icon:B,slug:"features/analytics"},{title:"Branded Links That Stand Out",shortTitle:"Branded Links",icon:A,slug:"features/branded-links"},{title:"Gorgeous QR codes for your links",shortTitle:"QR Codes",icon:W,slug:"features/qr-codes"},{title:"Personalize Your Short Links",shortTitle:"Personalization",icon:I,slug:"features/personalization"},{title:"Collaborate With Your Team",shortTitle:"Team Collaboration",icon:D,slug:"features/collaboration"},{title:"Programmatic Link Creation",shortTitle:"API",icon:O,slug:"docs/api-reference/introduction"}];import{useCallback as $,useEffect as L,useState as G}from"react";function S(i){let[e,c]=G(!1),l=$(()=>{c(window.scrollY>i)},[i]);return L(()=>(window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)),[l]),L(()=>{l()},[l]),e}import*as m from"@radix-ui/react-popover";import{BoxSelect as Z,Home as z,LayoutGrid as F,Type as U}from"lucide-react";import{useParams as Q}from"next/navigation";import{useCallback as Y,useContext as j,useState as q}from"react";import{toast as T}from"sonner";import{jsx as o,jsxs as _}from"react/jsx-runtime";var K=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,J=`<svg width="177" height="64" viewBox="0 0 177 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M106.5 8H112.5V31.8666C112.5 31.911 112.501 31.9554 112.501 31.9999C112.501 32.0444 112.5 32.0888 112.5 32.1332V46H106.5V43.4909C104.232 45.0724 101.475 45.9999 98.5003 45.9999C90.7682 45.9999 84.5 39.7319 84.5 31.9999C84.5 24.2679 90.7682 17.9999 98.5003 17.9999C101.475 17.9999 104.232 18.9274 106.5 20.5089V8ZM98.5 39.9996C102.918 39.9996 106.5 36.418 106.5 31.9998C106.5 27.5816 102.918 24 98.5 24C94.0818 24 90.5 27.5816 90.5 31.9998C90.5 36.418 94.0818 39.9996 98.5 39.9996ZM148.5 8.0001H154.5V20.5096C156.768 18.9278 159.526 18.0002 162.5 18.0002C170.233 18.0002 176.501 24.2682 176.501 32.0002C176.501 39.7322 170.233 46.0002 162.5 46.0002C154.768 46.0002 148.5 39.7322 148.5 32.0002V32.0001V8.0001ZM162.5 39.9997C166.918 39.9997 170.5 36.4181 170.5 31.9999C170.5 27.5817 166.918 24.0001 162.5 24.0001C158.082 24.0001 154.5 27.5817 154.5 31.9999C154.5 36.4181 158.082 39.9997 162.5 39.9997ZM122.5 18H116.5V32C116.5 33.8385 116.862 35.659 117.566 37.3576C118.269 39.0561 119.301 40.5995 120.601 41.8995C121.901 43.1995 123.444 44.2307 125.143 44.9343C126.841 45.6379 128.662 46 130.5 46C132.339 46 134.159 45.6379 135.858 44.9343C137.557 44.2307 139.1 43.1995 140.4 41.8995C141.7 40.5995 142.731 39.0561 143.435 37.3576C144.139 35.659 144.501 33.8385 144.501 32H144.5V18H138.5V32H138.5C138.5 34.1216 137.657 36.1563 136.157 37.6566C134.657 39.1568 132.622 39.9996 130.5 39.9996C128.378 39.9996 126.344 39.1568 124.843 37.6566C123.343 36.1563 122.5 34.1216 122.5 32H122.5V18Z" fill="black"/>
|
|
6
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
7
|
+
</svg>`;async function V(i){try{await navigator.clipboard.writeText(i),T.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),T.error("Failed to copy to clipboard.")}}function H({variant:i="full",isInApp:e,className:c}){let{domain:l="dub.co"}=Q(),{theme:u}=j(x),[k,v]=q(!1),n=Y(a=>{a.preventDefault(),v(!0)},[]);return _(m.Root,{open:k,onOpenChange:v,children:[o(m.Anchor,{asChild:!0,children:o("div",{onContextMenu:n,className:"max-w-fit",children:i==="full"?o(P,{className:c}):o(f,{className:d("h-8 w-8 transition-all duration-75 active:scale-95",c)})})}),o(m.Portal,{children:o(m.Content,{sideOffset:14,align:"start",className:d("z-50 -mt-1.5 -translate-x-10",u==="dark"&&"dark"),onClick:a=>{a.stopPropagation(),v(!1)},children:_("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[o(g,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>V(K),icon:o(f,{className:"h-4 w-4"})}),o(g,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>V(J),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})}),o(g,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(Z,{strokeWidth:2,className:"h-4 w-4"})}),e||l!="dub.co"?o(g,{text:"Home Page",variant:"outline",onClick:()=>window.open("https://dub.co","_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(g,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(F,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function g({className:i,...e}){return o(N,{className:d("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",i),...e})}import{Fragment as ie,jsx as t,jsxs as s}from"react/jsx-runtime";var x=oe({theme:"light"}),ae=[{name:"Customers",slug:"customers"},{name:"Pricing",slug:"pricing"},{name:"Enterprise",slug:"enterprise"},{name:"Blog",slug:"blog"},{name:"Changelog",slug:"changelog"}];function Re({theme:i="light"}){let{domain:e="dub.co"}=ee(),c=n=>e==="dub.co"?n:`https://dub.co${n}`,l=S(80),u=te(),{data:k,isLoading:v}=re(e==="dub.co"&&"/api/auth/session",C,{dedupingInterval:6e4});return t(x.Provider,{value:{theme:i},children:s("div",{className:d("sticky inset-x-0 top-0 z-30 w-full transition-all",i==="dark"&&"dark"),children:[t("div",{className:d("-z-1 absolute inset-0 border-transparent transition-all",{"border-b border-black/10 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75":l,"border-b border-black/10 bg-white dark:border-white/10 dark:bg-black":u&&w.includes(u)})}),t(y,{className:"relative",children:s("div",{className:"flex h-14 items-center justify-between",children:[s("div",{className:"flex items-center space-x-12",children:[t(p,{href:c("/"),...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,medium:"logo"})}},children:t(H,{})}),s(r.Root,{delayDuration:0,className:"relative hidden lg:block",children:[s(r.List,{className:"flex flex-row space-x-2 p-4",children:[s(r.Item,{children:[s(r.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 dark:hover:bg-white/10",children:[t("p",{className:d("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black dark:text-white/70 dark:group-hover:text-white",{"text-black dark:text-white":u==="features"}),children:"Features"}),t(X,{className:"h-4 w-4 text-black transition-all group-data-[state=open]:rotate-180 dark:text-white"})]}),t(r.Content,{children:t("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:M.map(({slug:n,icon:a,title:R,shortTitle:E})=>s(p,{href:c(`/${n}`),...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,medium:`navbar item (/${n})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200 dark:hover:bg-white/[0.15] dark:active:bg-white/20",children:[s("div",{className:"flex items-center space-x-2",children:[t(a,{className:"h-4 w-4 text-gray-700 dark:text-white/80"}),t("p",{className:"text-sm font-medium text-gray-700 dark:text-white",children:E})]}),t("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500 dark:text-white/60",children:R})]},n))})})]}),ae.map(({name:n,slug:a})=>t(r.Item,{asChild:!0,children:t(p,{id:`nav-${a}`,href:c(`/${a}`),...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,medium:`navbar item (${a})`})}},className:d("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white/70 dark:hover:text-white",{"text-black dark:text-white":u===a}),children:n},a)},a))]}),t(r.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 dark:border-white/[0.15] dark:bg-black"})]})]}),t("div",{className:"hidden lg:block",children:k&&Object.keys(k).length>0?t(p,{href:b,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):v?null:s(ie,{children:[t(p,{href:`${b}/login`,...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,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 dark:text-white dark:hover:text-white/70",children:"Log in"}),t(p,{href:`${b}/register`,...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,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-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}export{M as a,S as b,x as c,ae as d,Re as e,H as f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as x,f as N}from"./chunk-RJDEU7IS.mjs";import{a as v}from"./chunk-AQEZRTKZ.mjs";import{a as b}from"./chunk-IJUBM3YE.mjs";import{a as y}from"./chunk-ZAADGKP2.mjs";import{a as h}from"./chunk-7VCFP6UV.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{f as u,h as l,j as g,k as p}from"./chunk-UDSO3QDP.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as k}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={features:x.map(({shortTitle:a,slug:o})=>({name:a,href:`/${o}`})),product:[{name:"Blog",href:"/blog"},{name:"Brand",href:"/brand"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Help Center",href:"/help"}],compare:p.map(({name:a,slug:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function O(){let{domain:a="dub.co"}=T(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(v,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(N,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e($,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function $(){let{data:a}=R("https://status.dub.co/api/v1/summary",u),[o,r]=k("bg-gray-200"),[i,c]=k("Loading status...");return P(()=>{if(!a)return;let{ongoing_incidents:d}=a;if(d.length>0){let{current_worst_impact:w,name:L}=d[0],_=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),r(_)}else c("All systems operational"),r("bg-green-500")},[a]),t(s,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[t("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",o)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{O as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p,d as h}from"./chunk-225UUKZG.mjs";import{d as n,f,h as l}from"./chunk-UDSO3QDP.mjs";import{ChevronDown as y,Menu as N,X as w}from"lucide-react";import o from"next/link";import{useParams as v}from"next/navigation";import{useEffect as x,useState as u}from"react";import L from"swr";import{Fragment as z,jsx as e,jsxs as t}from"react/jsx-runtime";function D({theme:b="light"}){let{domain:r="dub.co"}=v(),[a,d]=u(!1),[c,g]=u(!1);x(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:m}=L(r==="dub.co"&&"/api/auth/session",f,{dedupingInterval:6e4});return t("div",{className:l(b==="dark"&&"dark"),children:[e("button",{onClick:()=>d(!a),className:l("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 dark:hover:bg-white/20 dark:active:bg-white/30",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(N,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:l("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:t("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[t("li",{className:"py-3",children:[t("button",{className:"flex w-full justify-between",onClick:()=>g(!c),children:[e("p",{className:"font-semibold",children:"Features"}),e(y,{className:l("h-5 w-5 text-gray-500 transition-all dark:text-white/50",c&&"rotate-180")})]}),c&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:i,icon:s,shortTitle:k})=>t(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>d(!1),className:"flex w-full space-x-2",children:[e(s,{className:"h-5 w-5 text-gray-500 dark:text-white/80"}),e("span",{className:"text-sm",children:k})]},i))})]}),h.map(({name:i,slug:s})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${s}`:`https://dub.co/${s}`,onClick:()=>d(!1),className:"flex w-full font-semibold capitalize",children:i})},s)),m&&Object.keys(m).length>0?e("li",{className:"py-3",children:e(o,{href:n,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):t(z,{children:[e("li",{className:"py-3",children:e(o,{href:`${n}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${n}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{D as a};
|
package/dist/footer.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-SLD56KDT.mjs";import"./chunk-RJDEU7IS.mjs";import"./chunk-ULDBWOXT.mjs";import"./chunk-SS6LMUHW.mjs";import"./chunk-AQEZRTKZ.mjs";import"./chunk-6ZR4XCJS.mjs";import"./chunk-BRXILUHF.mjs";import"./chunk-KONPNG2A.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-IJUBM3YE.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-ZAADGKP2.mjs";import"./chunk-7VCFP6UV.mjs";import"./chunk-PILYFC4M.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-5OG2WR4U.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-HFOXNTZ2.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-BKZ6TNZC.mjs";import"./chunk-HEVMDFHU.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-QROG2QLI.mjs";import"./chunk-NLX4RSEB.mjs";import"./chunk-UDSO3QDP.mjs";import"./chunk-AUBFB4SI.mjs";export{a as Footer};
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a as Ie}from"./chunk-ZWOROFWQ.mjs";import{a as Ue}from"./chunk-
|
|
2
|
+
import{a as Ie}from"./chunk-ZWOROFWQ.mjs";import{a as Ue}from"./chunk-3WPFDU6U.mjs";import{a as $e}from"./chunk-RLAUGTEK.mjs";import{a as We,b as Ge}from"./chunk-VZR6ATOQ.mjs";import{a as Xe}from"./chunk-73QFE42H.mjs";import{a as Be,b as De}from"./chunk-GFY5O5NR.mjs";import{a as Me}from"./chunk-HO7T2GLR.mjs";import{a as Ye}from"./chunk-CZQHX2CI.mjs";import{a as Ne}from"./chunk-ML3IMAPH.mjs";import{a as Je}from"./chunk-X5PY7UNQ.mjs";import{a as Fe}from"./chunk-5KK4IVAS.mjs";import{a as Qe,b as ke}from"./chunk-BCDMD3D3.mjs";import{a as Ke}from"./chunk-DJ3YPH7P.mjs";import{a as Te}from"./chunk-K4MP745I.mjs";import{a as he}from"./chunk-6OPUSB7O.mjs";import{a as Ee}from"./chunk-7ZPN4PHI.mjs";import{a as Se}from"./chunk-JKP2JR63.mjs";import{a as Ve}from"./chunk-SLD56KDT.mjs";import{a as Oe,b as ye,c as Pe,d as Re,e as Ae,f as Le}from"./chunk-RJDEU7IS.mjs";import{a as je}from"./chunk-ULDBWOXT.mjs";import{a as we}from"./chunk-SS6LMUHW.mjs";import{a as ve}from"./chunk-AQEZRTKZ.mjs";import{a as qe}from"./chunk-N6XVMC25.mjs";import{a as ze}from"./chunk-QJ3GEUR3.mjs";import{a as He}from"./chunk-O5BHK57C.mjs";import{a as q,b as z,c as N,d as J}from"./chunk-5VENXKTE.mjs";import{a as K,b as $}from"./chunk-VQ3YVASZ.mjs";import{a as B}from"./chunk-DSCUUAKG.mjs";import{a as U}from"./chunk-R73HVHRQ.mjs";import{a as de}from"./chunk-6ZR4XCJS.mjs";import{a as ie,b as ce,c as ue,d as ae,e as fe,f as me,g as pe,h as ge,i as le}from"./chunk-BRXILUHF.mjs";import"./chunk-KONPNG2A.mjs";import{a as G}from"./chunk-EHYVEIOL.mjs";import{a as oe}from"./chunk-IJUBM3YE.mjs";import{a as ne}from"./chunk-GSQUGPJ2.mjs";import{a as se}from"./chunk-ZAADGKP2.mjs";import{a as re}from"./chunk-7VCFP6UV.mjs";import{a as X}from"./chunk-PILYFC4M.mjs";import{a as Y}from"./chunk-QA2KCGIR.mjs";import{a as Z}from"./chunk-5OG2WR4U.mjs";import{a as Q}from"./chunk-YURUGH4S.mjs";import{a as k}from"./chunk-2TGXECZQ.mjs";import{a as te}from"./chunk-HFOXNTZ2.mjs";import{a as W}from"./chunk-XSZV33MB.mjs";import{a as H}from"./chunk-BKZ6TNZC.mjs";import{a as F}from"./chunk-HEVMDFHU.mjs";import{a as _}from"./chunk-MURAUI3W.mjs";import{a as C}from"./chunk-T4YFARK5.mjs";import{a as ee}from"./chunk-QROG2QLI.mjs";import{a as D,b as M}from"./chunk-NLX4RSEB.mjs";import{a as xe}from"./chunk-MD43ECSN.mjs";import{f as b}from"./chunk-UDSO3QDP.mjs";import{a as be}from"./chunk-WFO5EVTJ.mjs";import"./chunk-AUBFB4SI.mjs";import x from"js-cookie";import{useEffect as h,useState as E}from"react";function rr(e,t,r){let[i,u]=E(()=>{let s=x.get(e);return s?JSON.parse(s):t});return h(()=>{let s=()=>{let o=x.get(e);o&&u(JSON.parse(o))};return window.addEventListener("storage",s),()=>{window.removeEventListener("storage",s)}},[e]),[i,s=>{u(s),x.set(e,JSON.stringify(s),r)}]}import{useEffect as S,useState as O}from"react";function nr(){let[e,t]=O(null);return S(()=>{let r=document.querySelector("[data-mdx-container]");if(!r)return;let i=r.offsetTop-1,u=new IntersectionObserver(o=>{var m,p,d;let a=o[0];if(!a)return;let f=(((m=a.rootBounds)==null?void 0:m.height)||0)*.3+i;for(let g=1;g<o.length;g++){let l=o[g];if(!l)break;(l.boundingClientRect.top<a.boundingClientRect.top||a.boundingClientRect.bottom<i)&&(a=l)}let c=a.target;for(;c&&c.getBoundingClientRect().bottom<i;)c=(p=n.get(c))==null?void 0:p.next;for(;c&&c.getBoundingClientRect().top>f;)c=(d=n.get(c))==null?void 0:d.prev;c&&t(c.getAttribute("href"))},{threshold:1,rootMargin:`-${i}px 0px 0px 0px`}),n=new Map;return(r==null?void 0:r.querySelectorAll("[data-mdx-heading]")).forEach(o=>u.observe(o)),()=>{u.disconnect()}},[]),e==null?void 0:e.replace("#","")}function ir(e){return{handleKeyDown:r=>{r.key==="Enter"&&r.metaKey&&(r.preventDefault(),e.current&&e.current.requestSubmit())}}}import{useEffect as v,useState as w}from"react";function fr(e,{threshold:t=0,root:r=null,rootMargin:i="0%",freezeOnceVisible:u=!1}){let[n,s]=w(),o=(n==null?void 0:n.isIntersecting)&&u,a=([f])=>{s(f)};return v(()=>{let f=e==null?void 0:e.current;if(!!!window.IntersectionObserver||o||!f)return;let m={threshold:t,root:r,rootMargin:i},p=new IntersectionObserver(a,m);return p.observe(f),()=>p.disconnect()},[e,JSON.stringify(t),r,i,o]),n}import{useEffect as T,useState as y}from"react";function gr(e,t){let[r,i]=y(t);return T(()=>{let n=window.localStorage.getItem(e);n&&i(JSON.parse(n))},[e]),[r,n=>{i(n),window.localStorage.setItem(e,JSON.stringify(n))}]}import{toast as I}from"sonner";import P from"swr";function hr(e,t){let{data:r,isLoading:i,mutate:u}=P(e,b);return{data:r,isLoading:i,update:async(n,s)=>I.promise(u(n(r),{optimisticData:s,rollbackOnError:!0,populateCache:!0,revalidate:!0}),{loading:(t==null?void 0:t.loading)||"Updating...",success:(t==null?void 0:t.success)||"Successfully updated",error:(t==null?void 0:t.error)||"Failed to update"})}}import{useEffect as R,useState as A}from"react";function vr(e){let[t,r]=A(),i=([u])=>{r(u)};return R(()=>{let u=e==null?void 0:e.current;if(!u)return;let n=new ResizeObserver(i);return n.observe(u),()=>n.disconnect()},[e]),t}import{usePathname as j,useRouter as L,useSearchParams as V}from"next/navigation";function yr(){let e=j(),t=L(),r=V(),i=Object.fromEntries(r);return{pathname:e,router:t,searchParams:r,searchParamsObj:i,queryParams:({set:s,del:o,replace:a,getNewPath:f,arrayDelimiter:c=","})=>{let m=new URLSearchParams(r);s&&Object.entries(s).forEach(([g,l])=>m.set(g,Array.isArray(l)?l.join(c):l)),o&&(Array.isArray(o)?o.forEach(g=>m.delete(g)):m.delete(o));let p=m.toString(),d=`${e}${p.length>0?`?${p}`:""}`;if(f)return d;a?t.replace(d,{scroll:!1}):t.push(d)},getQueryString:(s,o)=>{let a=new URLSearchParams(r);s&&Object.entries(s).forEach(([c,m])=>a.set(c,m)),o!=null&&o.ignore&&o.ignore.forEach(c=>a.delete(c));let f=a.toString();return f.length>0?`?${f}`:""}}}export{q as Accordion,J as AccordionContent,z as AccordionItem,N as AccordionTrigger,K as Avatar,B as Background,M as Badge,ge as BadgeTooltip,U as BlurImage,de as Button,le as ButtonTooltip,xe as Checkbox,be as ClientOnly,he as CompositeLogo,H as Copy,Ee as CopyButton,Se as CountingNumbers,F as ExpandingArrow,Oe as FEATURES_LIST,_ as Facebook,Ve as Footer,qe as Form,C as Github,ee as Google,ze as IconMenu,me as InfoTooltip,He as InlineSnippet,Ne as InputSelect,Je as Label,Fe as LinkLogo,Qe as LinkPreview,ke as LinkPreviewPlaceholder,re as LinkedIn,fe as LinkifyTooltipContent,X as LoadingCircle,Y as LoadingDots,Z as LoadingSpinner,we as Logo,Q as Magic,ve as MaxWidthWrapper,Ke as Modal,Ae as Nav,Pe as NavContext,Le as NavLogo,Ue as NavMobile,pe as NumberTooltip,k as Photo,$e as Popover,Ge as Popup,We as PopupContext,te as ProductHunt,Xe as ProgressBar,Be as RadioGroup,De as RadioGroupItem,ae as SimpleTooltipContent,W as Success,Me as Switch,Ye as TabSelect,G as Tick,$ as TokenAvatar,ce as Tooltip,ue as TooltipContent,ie as TooltipProvider,oe as Twitter,ne as Unsplash,je as Wordmark,se as YouTube,D as badgeVariants,Re as navItems,rr as useCookies,nr as useCurrentAnchor,ir as useEnterSubmit,fr as useIntersectionObserver,gr as useLocalStorage,Te as useMediaQuery,hr as useOptimisticUpdate,vr as useResizeObserver,yr as useRouterStuff,ye as useScroll,Ie as useToastWithUndo};
|
package/dist/nav-logo.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{f as a}from"./chunk-
|
|
2
|
+
import{f as a}from"./chunk-RJDEU7IS.mjs";import"./chunk-ULDBWOXT.mjs";import"./chunk-SS6LMUHW.mjs";import"./chunk-AQEZRTKZ.mjs";import"./chunk-6ZR4XCJS.mjs";import"./chunk-BRXILUHF.mjs";import"./chunk-KONPNG2A.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-IJUBM3YE.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-ZAADGKP2.mjs";import"./chunk-7VCFP6UV.mjs";import"./chunk-PILYFC4M.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-5OG2WR4U.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-HFOXNTZ2.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-BKZ6TNZC.mjs";import"./chunk-HEVMDFHU.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-QROG2QLI.mjs";import"./chunk-NLX4RSEB.mjs";import"./chunk-UDSO3QDP.mjs";import"./chunk-AUBFB4SI.mjs";export{a as NavLogo};
|
package/dist/nav-mobile.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-3WPFDU6U.mjs";import"./chunk-RJDEU7IS.mjs";import"./chunk-ULDBWOXT.mjs";import"./chunk-SS6LMUHW.mjs";import"./chunk-AQEZRTKZ.mjs";import"./chunk-6ZR4XCJS.mjs";import"./chunk-BRXILUHF.mjs";import"./chunk-KONPNG2A.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-IJUBM3YE.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-ZAADGKP2.mjs";import"./chunk-7VCFP6UV.mjs";import"./chunk-PILYFC4M.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-5OG2WR4U.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-HFOXNTZ2.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-BKZ6TNZC.mjs";import"./chunk-HEVMDFHU.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-QROG2QLI.mjs";import"./chunk-NLX4RSEB.mjs";import"./chunk-UDSO3QDP.mjs";import"./chunk-AUBFB4SI.mjs";export{a as NavMobile};
|
package/dist/nav.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{c as a,d as b,e as c}from"./chunk-
|
|
2
|
+
import{c as a,d as b,e as c}from"./chunk-RJDEU7IS.mjs";import"./chunk-ULDBWOXT.mjs";import"./chunk-SS6LMUHW.mjs";import"./chunk-AQEZRTKZ.mjs";import"./chunk-6ZR4XCJS.mjs";import"./chunk-BRXILUHF.mjs";import"./chunk-KONPNG2A.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-IJUBM3YE.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-ZAADGKP2.mjs";import"./chunk-7VCFP6UV.mjs";import"./chunk-PILYFC4M.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-5OG2WR4U.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-HFOXNTZ2.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-BKZ6TNZC.mjs";import"./chunk-HEVMDFHU.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-QROG2QLI.mjs";import"./chunk-NLX4RSEB.mjs";import"./chunk-UDSO3QDP.mjs";import"./chunk-AUBFB4SI.mjs";export{c as Nav,a as NavContext,b as navItems};
|
package/dist/tooltip.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ declare function NumberTooltip({ value, unit, children, lastClicked, }: {
|
|
|
35
35
|
unit?: string;
|
|
36
36
|
children: ReactNode;
|
|
37
37
|
lastClicked?: Date | null;
|
|
38
|
-
}): string | number | boolean | Iterable<ReactNode> | React.PromiseLikeOfReactNode |
|
|
38
|
+
}): string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | React.PromiseLikeOfReactNode | null | undefined;
|
|
39
39
|
declare function BadgeTooltip({ children, content, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
40
40
|
declare function ButtonTooltip({ tooltipContent, children, ...props }: {
|
|
41
41
|
tooltipContent: ReactNode | string;
|