@dub/ui 0.2.7 → 0.2.9
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/accordion.mjs +1 -1
- package/dist/animated-size-container.d.ts +48 -48
- package/dist/button.mjs +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/charts/index.d.ts +156 -0
- package/dist/charts/index.mjs +2 -0
- package/dist/chunk-2HOGE6HG.mjs +2 -0
- package/dist/chunk-2LSRXXDX.mjs +2 -0
- package/dist/chunk-2RNIN6ZY.mjs +2 -0
- package/dist/chunk-2SL25K2Q.mjs +2 -0
- package/dist/chunk-2SQLCNNE.mjs +2 -0
- package/dist/chunk-3O25SFLK.mjs +2 -0
- package/dist/chunk-3PHFUEKO.mjs +2 -0
- package/dist/chunk-47OVPGPH.mjs +2 -0
- package/dist/chunk-4HWIRBT6.mjs +2 -0
- package/dist/chunk-4XSN2Y4F.mjs +2 -0
- package/dist/chunk-5BTRQ455.mjs +2 -0
- package/dist/chunk-5CFJNFVC.mjs +2 -0
- package/dist/chunk-5VOOONEK.mjs +2 -0
- package/dist/chunk-5Y64Q5JH.mjs +2 -0
- package/dist/chunk-66IU26EY.mjs +2 -0
- package/dist/chunk-66QJUFOC.mjs +2 -0
- package/dist/chunk-6JHR2A64.mjs +2 -0
- package/dist/chunk-6KKHX2A6.mjs +2 -0
- package/dist/chunk-6LJ5Q3MG.mjs +2 -0
- package/dist/chunk-6P7L7ELD.mjs +2 -0
- package/dist/chunk-6VCDKSVF.mjs +2 -0
- package/dist/chunk-6VDMTZF3.mjs +2 -0
- package/dist/chunk-72EV3C4Y.mjs +6 -0
- package/dist/chunk-73CWYOTO.mjs +2 -0
- package/dist/chunk-7DWNPJNK.mjs +2 -0
- package/dist/chunk-7VCCNYRW.mjs +2 -0
- package/dist/chunk-7XSC4UCT.mjs +2 -0
- package/dist/chunk-A4YMPQZN.mjs +2 -0
- package/dist/chunk-AA4AOADM.mjs +6 -0
- package/dist/chunk-ATVD2WLZ.mjs +2 -0
- package/dist/chunk-B7HQBYM2.mjs +2 -0
- package/dist/chunk-BH3YVAUL.mjs +2 -0
- package/dist/chunk-BOXQDBE7.mjs +2 -0
- package/dist/chunk-C2BIGRNF.mjs +2 -0
- package/dist/chunk-D6PKQLE2.mjs +2 -0
- package/dist/chunk-DCXGQAWG.mjs +2 -0
- package/dist/chunk-DP6OZT73.mjs +2 -0
- package/dist/chunk-DPTLC5IZ.mjs +2 -0
- package/dist/chunk-DQG5LLHE.mjs +2 -0
- package/dist/chunk-DVBWEVWE.mjs +2 -0
- package/dist/chunk-DVR3KUDI.mjs +2 -0
- package/dist/chunk-DXH6A35E.mjs +2 -0
- package/dist/chunk-EZS3HYBM.mjs +2 -0
- package/dist/chunk-F3PK24S5.mjs +2 -0
- package/dist/chunk-FKXVNEUD.mjs +2 -0
- package/dist/chunk-FO65IXJT.mjs +2 -0
- package/dist/chunk-FRWEIS35.mjs +2 -0
- package/dist/chunk-FWAYR65J.mjs +2 -0
- package/dist/chunk-G4OD2RDL.mjs +6 -0
- package/dist/chunk-GYB4JOCF.mjs +2 -0
- package/dist/chunk-GYMAR7NH.mjs +2 -0
- package/dist/chunk-H52MXCL6.mjs +2 -0
- package/dist/chunk-H57RZYYH.mjs +2 -0
- package/dist/chunk-HGMHBUBD.mjs +2 -0
- package/dist/chunk-HHYP7SGG.mjs +2 -0
- package/dist/chunk-IVU65472.mjs +2 -0
- package/dist/chunk-IYERGOR2.mjs +2 -0
- package/dist/chunk-JAMVXQG7.mjs +2 -0
- package/dist/chunk-JG7VHWWE.mjs +2 -0
- package/dist/chunk-JQZW3VLB.mjs +2 -0
- package/dist/chunk-JSJEEIRO.mjs +2 -0
- package/dist/chunk-K5FVVXE3.mjs +2 -0
- package/dist/chunk-KB4OZUHU.mjs +2 -0
- package/dist/chunk-KG7GYVNV.mjs +6 -0
- package/dist/chunk-KL4ETPR2.mjs +2 -0
- package/dist/chunk-KOKZKDPR.mjs +2 -0
- package/dist/chunk-KRE54R4V.mjs +2 -0
- package/dist/chunk-KRPWOFGZ.mjs +2 -0
- package/dist/chunk-LC4HUADE.mjs +2 -0
- package/dist/chunk-LNFFJT22.mjs +2 -0
- package/dist/chunk-LTXYZWOV.mjs +2 -0
- package/dist/chunk-LYXT4F3W.mjs +2 -0
- package/dist/chunk-M5KIJTFG.mjs +2 -0
- package/dist/chunk-MJ2P6CBB.mjs +6 -0
- package/dist/chunk-MJC223MV.mjs +2 -0
- package/dist/chunk-MULY6ST7.mjs +2 -0
- package/dist/chunk-MVJ2C5SS.mjs +2 -0
- package/dist/chunk-N5MJX4FR.mjs +2 -0
- package/dist/chunk-N7NUJSNM.mjs +2 -0
- package/dist/chunk-NAFNRIUH.mjs +2 -0
- package/dist/chunk-NFHRLY2B.mjs +2 -0
- package/dist/chunk-NMC562ZB.mjs +2 -0
- package/dist/chunk-NSVH6ON6.mjs +2 -0
- package/dist/chunk-OA2MRG25.mjs +2 -0
- package/dist/chunk-OAE6WUCN.mjs +2 -0
- package/dist/chunk-OCFKJYSM.mjs +2 -0
- package/dist/chunk-OE6534GC.mjs +2 -0
- package/dist/chunk-OGC3B2JT.mjs +2 -0
- package/dist/chunk-OL6H47ST.mjs +2 -0
- package/dist/chunk-OYDAVVJ7.mjs +2 -0
- package/dist/chunk-P2QJXWDR.mjs +2 -0
- package/dist/chunk-PGH2352K.mjs +2 -0
- package/dist/chunk-Q762U6H4.mjs +2 -0
- package/dist/chunk-QIMSUMWR.mjs +2 -0
- package/dist/chunk-QM6GT5NH.mjs +6 -0
- package/dist/chunk-QNXH7C4R.mjs +2 -0
- package/dist/chunk-QRT5B26H.mjs +2 -0
- package/dist/chunk-R47TRTVS.mjs +2 -0
- package/dist/chunk-RNGPEKJY.mjs +2 -0
- package/dist/chunk-SHBCF7QJ.mjs +2 -0
- package/dist/chunk-SHMVJQCP.mjs +2 -0
- package/dist/chunk-ST4CFA3E.mjs +2 -0
- package/dist/chunk-SUQDTSW7.mjs +2 -0
- package/dist/chunk-TL6BXJOB.mjs +2 -0
- package/dist/chunk-TMQVOAEV.mjs +2 -0
- package/dist/chunk-TNK4P5B6.mjs +2 -0
- package/dist/chunk-TQS6POFH.mjs +2 -0
- package/dist/chunk-TU5QJD2G.mjs +2 -0
- package/dist/chunk-TVIEJDOT.mjs +2 -0
- package/dist/chunk-U3PLYT2S.mjs +2 -0
- package/dist/chunk-U4QDY74H.mjs +2 -0
- package/dist/chunk-U4SM634N.mjs +6 -0
- package/dist/chunk-U4U2SEQH.mjs +2 -0
- package/dist/chunk-U63BJZF7.mjs +6 -0
- package/dist/chunk-UH2USHTJ.mjs +2 -0
- package/dist/chunk-UHIXHGGV.mjs +2 -0
- package/dist/chunk-USLA4OL6.mjs +6 -0
- package/dist/chunk-UVBCSQZK.mjs +2 -0
- package/dist/chunk-UZM2GVGU.mjs +2 -0
- package/dist/chunk-V4CONMAR.mjs +2 -0
- package/dist/chunk-VDBIRURA.mjs +2 -0
- package/dist/chunk-VNJGL6KK.mjs +2 -0
- package/dist/chunk-VVLXJ2A3.mjs +2 -0
- package/dist/chunk-W3JJVSL6.mjs +6 -0
- package/dist/chunk-W6NCEJQO.mjs +6 -0
- package/dist/chunk-WKJ7IAOL.mjs +2 -0
- package/dist/chunk-WTNYKET5.mjs +2 -0
- package/dist/chunk-WWBIAI7P.mjs +2 -0
- package/dist/chunk-WYY3IAA7.mjs +2 -0
- package/dist/chunk-X4NMGJT6.mjs +2 -0
- package/dist/chunk-X4YNGHT5.mjs +2 -0
- package/dist/chunk-XIPPVPEW.mjs +2 -0
- package/dist/chunk-Y5VGCJT3.mjs +2 -0
- package/dist/chunk-YANDYLVU.mjs +2 -0
- package/dist/chunk-YFUQ6W6V.mjs +2 -0
- package/dist/chunk-YJZ5JWXJ.mjs +2 -0
- package/dist/chunk-YLRBZU2X.mjs +2 -0
- package/dist/chunk-YQR44VPZ.mjs +2 -0
- package/dist/chunk-YT4ZNZKU.mjs +42 -0
- package/dist/chunk-YWSYCEQF.mjs +2 -0
- package/dist/chunk-YXTF62XL.mjs +2 -0
- package/dist/chunk-ZG67UIBY.mjs +2 -0
- package/dist/chunk-ZH33FNUR.mjs +2 -0
- package/dist/chunk-ZLR5EIUH.mjs +2 -0
- package/dist/chunk-ZVRMZ2BI.mjs +2 -0
- package/dist/chunk-ZW5BOVJS.mjs +2 -0
- package/dist/combobox/index.mjs +1 -1
- package/dist/copy-button.mjs +1 -1
- package/dist/date-picker/date-range-picker.mjs +1 -1
- package/dist/date-picker/presets.mjs +1 -1
- package/dist/file-upload.mjs +1 -1
- package/dist/filter/filter-select.mjs +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/icons/continents/index.mjs +1 -1
- package/dist/icons/index.d.ts +457 -195
- package/dist/icons/index.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1101 -280
- package/dist/index.mjs +51 -1
- package/dist/input.mjs +1 -1
- package/dist/link-logo.mjs +1 -1
- package/dist/link-preview.mjs +1 -1
- package/dist/nav/content/product-content.mjs +1 -1
- package/dist/nav/content/resources-content.mjs +1 -1
- package/dist/nav/content/shared.mjs +1 -1
- package/dist/nav/content/solutions-content.mjs +1 -1
- package/dist/nav/nav-mobile.mjs +1 -1
- package/dist/nav/nav.mjs +1 -1
- package/dist/nav-wordmark.mjs +1 -1
- package/dist/status-badge.mjs +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/table/table.mjs +1 -1
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.mjs +1 -1
- package/dist/utm-builder.mjs +1 -1
- package/package.json +26 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as a}from"./chunk-LTXYZWOV.mjs";import{cva as d}from"class-variance-authority";import*as i from"react";import{jsx as s}from"react/jsx-runtime";var o=d("relative w-full rounded-lg border px-4 py-6 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive border-red-500 dark:border-red-500"}},defaultVariants:{variant:"default"}}),n=i.forwardRef(({className:e,variant:t,...r},l)=>s("div",{ref:l,role:"alert",className:a(o({variant:t}),e),...r}));n.displayName="Alert";var c=i.forwardRef(({className:e,...t},r)=>s("h5",{ref:r,className:a("text-md mb-2 font-medium leading-none tracking-tight",e),...t}));c.displayName="AlertTitle";var m=i.forwardRef(({className:e,...t},r)=>s("div",{ref:r,className:a("text-sm [&_p]:leading-relaxed",e),...t}));m.displayName="AlertDescription";export{n as a,c as b,m as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as w}from"./chunk-KG7GYVNV.mjs";import{a as k,e as L,f as C}from"./chunk-WYY3IAA7.mjs";import{a as y}from"./chunk-ZN3PNOIE.mjs";import{a as x}from"./chunk-HBXAUCXR.mjs";import{a as b}from"./chunk-L4FA5VZW.mjs";import{a as v}from"./chunk-5UDLEOOZ.mjs";import{a as N}from"./chunk-ALEYOCBW.mjs";import{a as _}from"./chunk-RSJ6GSD7.mjs";import{i as m,l as f,m as l,n as h}from"./chunk-HVAJT6I7.mjs";import E from"next/image";import n from"next/link";import{useParams as F}from"next/navigation";import{useEffect as I,useState as T}from"react";import P from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var z=[{name:"Twitter",icon:v,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:_,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:N,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:b,href:"https://www.youtube.com/@dubdotco"}],c={features:k.map(({title:r,href:o})=>({name:r,href:o})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs/introduction"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:L.map(({name:r,slug:o})=>({name:r,href:`/compare/${o}`})),legal:C.map(({name:r,slug:o})=>({name:r,href:`/legal/${o}`})),tools:h.map(({name:r,slug:o})=>({name:r,href:`/tools/${o}`}))},u="text-sm font-medium text-neutral-900",d="flex flex-col mt-2.5 gap-2.5",i="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function V({staticDomain:r,className:o}){let{domain:s="dub.co"}=F();return r&&(s=r),e(y,{className:l("relative z-10 overflow-hidden border border-b-0 border-neutral-200 bg-white/50 py-16 backdrop-blur-lg md:rounded-t-2xl",o),children:t("footer",{children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"flex flex-col gap-6",children:[e("div",{className:"grow",children:t(n,{href:m("/",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"Logo"}),className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(w,{className:"h-8 text-gray-800"})]})}),e("div",{className:"flex items-center gap-3",children:z.map(({name:a,icon:p,href:g})=>t("a",{href:g,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[e("span",{className:"sr-only",children:a}),e(p,{className:"size-4 text-neutral-900 transition-colors duration-75 group-hover:text-neutral-600"})]},a))})]}),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:u,children:"Product"}),e("ul",{role:"list",className:d,children:c.features.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:i,children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:u,children:"Resources"}),e("ul",{role:"list",className:d,children:c.product.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:i,children:a.name})},a.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:u,children:"Compare"}),e("ul",{role:"list",className:d,children:c.compare.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:i,children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:u,children:"Legal"}),t("ul",{role:"list",className:d,children:[c.legal.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:i,children:a.name})},a.name)),e("li",{children:t("a",{href:"https://security.dub.co",target:"_blank",rel:"noreferrer",className:l(i,"flex items-center gap-1"),children:["Trust Center ",e(x,{className:"size-3.5"})]})})]})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:u,children:"Tools"}),e("ul",{role:"list",className:d,children:c.tools.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:i,children:a.name})},a.name))})]})]})]})]}),t("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[e(W,{}),e(n,{href:m("/blog/soc2",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"SOC2"}),className:"flex sm:justify-center",children:e(E,{src:"https://assets.dub.co/misc/soc2.svg",alt:"AICPA SOC 2 Type II Certified",width:63,height:32,className:"h-8 transition-[filter] duration-75 hover:brightness-90"})}),t("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}function W(){let{data:r}=P("https://status.dub.co/api/v1/summary",f),[o,s]=T("bg-neutral-200"),[a,p]=T("Loading status...");return I(()=>{if(!r)return;let{ongoing_incidents:g}=r;if(g.length>0){let{current_worst_impact:A,name:S}=g[0],D=A==="degraded_performance"?"bg-yellow-500":"bg-red-500";p(S),s(D)}else p("All systems operational"),s("bg-green-500")},[r]),t(n,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center gap-2 rounded-lg border border-neutral-200 bg-white py-2 pl-2 pr-2.5 transition-colors hover:bg-neutral-50 active:bg-neutral-100",children:[t("div",{className:"relative size-2",children:[e("div",{className:l("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,a==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto size-2 rounded-full",o)})]}),e("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}export{V as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as v}from"./chunk-LTXYZWOV.mjs";import{jsx as h}from"react/jsx-runtime";function s({className:c}){return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:v("text-[#0077b5]",c),children:h("path",{fill:"currentColor",d:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"})})}export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as v}from"./chunk-W3JJVSL6.mjs";import{a as b}from"./chunk-XTK2BTRW.mjs";import{i as g,j as u,l as h,m as r}from"./chunk-HVAJT6I7.mjs";import{ChevronDown as x,Menu as w,X as z}from"lucide-react";import m from"next/link";import{useParams as N}from"next/navigation";import{useEffect as C,useState as y}from"react";import _ from"swr";import{Fragment as D,jsx as e,jsxs as i}from"react/jsx-runtime";function W({theme:n="light",staticDomain:l}){let{domain:o="dub.co"}=N();l&&(o=l);let[t,a]=y(!1);C(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:s}=_(o.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return i("div",{className:r(n==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:r("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",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(z,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(w,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:r("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[v.map(({name:f,href:d,childItems:c},p)=>e(L,{name:f,href:d,childItems:c,setOpen:a},p)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(m,{href:u,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${u}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${u}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:l,childItems:o,setOpen:t})=>{let{domain:a="dub.co"}=N(),[s,f]=y(!1);return o?e("li",{className:"py-3",children:i(b,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!s),children:[e("p",{className:"font-semibold",children:n}),e(x,{className:r("h-5 w-5 text-gray-500 transition-all dark:text-white/50",s&&"rotate-180")})]}),s&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:o.map(({title:d,href:c,icon:p,description:k})=>i(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full gap-3",children:[e("div",{className:"flex size-10 items-center justify-center rounded-lg border border-neutral-200 bg-gradient-to-t from-neutral-100",children:e(p,{className:"size-5 text-neutral-700"})}),i("div",{children:[e("div",{className:"flex items-center gap-2",children:e("h2",{className:"text-sm font-medium text-neutral-900",children:d})}),e("p",{className:"text-sm text-neutral-500",children:k})]})]},c))})]})}):l?e("li",{className:"py-3",children:e(m,{href:g(l,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:n}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{W as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as C}from"./chunk-LTXYZWOV.mjs";import{jsx as l,jsxs as f}from"react/jsx-runtime";function o({className:t}){return f("svg",{className:C("h-full w-full",t),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M110.999 0C49.6974 0 0 49.6973 0 111.001C0 172.307 49.6974 222 110.999 222C172.308 222 222 172.307 222 111.001C222 49.7012 172.308 0.00530203 110.998 0.00530203L110.999 0ZM161.903 160.095C159.915 163.356 155.647 164.389 152.386 162.388C126.324 146.469 93.5163 142.863 54.8787 151.691C51.1554 152.539 47.4441 150.207 46.5958 146.482C45.7435 142.757 48.0671 139.046 51.7996 138.197C94.0823 128.537 130.351 132.697 159.61 150.578C162.871 152.579 163.904 156.834 161.903 160.095ZM175.489 129.871C172.984 133.943 167.655 135.228 163.586 132.723C133.75 114.383 88.2687 109.072 52.9779 119.785C48.4011 121.167 43.5671 118.588 42.178 114.019C40.7995 109.442 43.3802 104.617 47.9491 103.225C88.2608 90.9935 138.376 96.9185 172.639 117.974C176.708 120.479 177.994 125.808 175.489 129.872V129.871ZM176.655 98.3977C140.881 77.1485 81.8574 75.1947 47.7012 85.5615C42.2164 87.225 36.4161 84.1286 34.754 78.6437C33.0918 73.1561 36.1855 67.3596 41.6743 65.6922C80.8832 53.7891 146.063 56.0889 187.251 80.5405C192.195 83.4685 193.812 89.8403 190.883 94.7672C187.967 99.7007 181.578 101.327 176.661 98.3977H176.655Z",fill:"#1ED760"}),l("path",{d:"M161.903 160.095C159.915 163.356 155.647 164.389 152.386 162.388C126.325 146.469 93.5164 142.863 54.8788 151.691C51.1556 152.539 47.4442 150.207 46.5959 146.482C45.7436 142.757 48.0672 139.046 51.7997 138.197C94.0824 128.537 130.351 132.697 159.61 150.578C162.871 152.579 163.905 156.834 161.903 160.095ZM175.489 129.871C172.984 133.943 167.656 135.228 163.586 132.723C133.75 114.383 88.2689 109.072 52.9781 119.785C48.4012 121.167 43.5672 118.588 42.1781 114.019C40.7996 109.442 43.3803 104.617 47.9492 103.225C88.2609 90.9934 138.376 96.9184 172.639 117.974C176.709 120.479 177.994 125.808 175.489 129.872V129.871ZM176.656 98.3977C140.881 77.1485 81.8576 75.1947 47.7014 85.5615C42.2165 87.225 36.4163 84.1286 34.7541 78.6437C33.092 73.1561 36.1856 67.3596 41.6744 65.6921C80.8833 53.7891 146.064 56.0888 187.251 80.5405C192.195 83.4685 193.813 89.8402 190.883 94.7672C187.967 99.7007 181.578 101.327 176.661 98.3977H176.656Z",fill:"white"})]})}export{o as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as g,e as b}from"./chunk-TVIEJDOT.mjs";import{a as c,c as l,f}from"./chunk-N4B7OYMT.mjs";import{a as h}from"./chunk-AY63N3KD.mjs";import{a as v}from"./chunk-LUCC6FPP.mjs";import{a as p}from"./chunk-4Y25GOWJ.mjs";import{a as u}from"./chunk-SMHQYHDD.mjs";import{i,m as n}from"./chunk-HVAJT6I7.mjs";import k from"next/link";import{jsx as e,jsxs as a}from"react/jsx-runtime";var w=[{title:"Dub API",description:"Programmatic link creation at scale",icon:u,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:p,href:"/docs/integrations"}];function S({domain:t}){return a("div",{className:"grid w-[1020px] grid-cols-[repeat(2,minmax(0,1fr)),0.8fr] gap-4 p-5",children:[a(k,{href:i("/home",t),className:"group relative flex flex-col rounded-xl border border-neutral-100 bg-neutral-50 dark:border-white/20 dark:bg-white/10",children:[a("div",{className:"p-5 pb-0",children:[e("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Links"}),e("p",{className:"mt-3 max-w-56 text-sm text-neutral-500 dark:text-white/60",children:"Short links with superpowers for the modern marketer"})]}),e("div",{className:"relative grow overflow-hidden",children:e(v,{className:"absolute bottom-0 h-auto w-full [mask-image:linear-gradient(transparent,black_20%,black_80%,transparent)]"})}),e("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_50%_100%,#f4950c,transparent)] opacity-[0.07] transition-opacity duration-150 group-hover:opacity-[0.2]"})]}),a("div",{className:"flex flex-col gap-4",children:[a(k,{href:i("/help/article/dub-analytics",t),className:"group relative flex flex-col overflow-hidden rounded-xl border border-neutral-100 bg-neutral-50 dark:border-white/20 dark:bg-white/10",children:[e(h,{className:"absolute bottom-0 h-auto w-full translate-y-[15%] [mask-image:linear-gradient(90deg,transparent,black)]"}),e("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_50%_100%,#36D78F,transparent)] opacity-[0.07] transition-opacity duration-150 group-hover:opacity-[0.2]"}),a("div",{className:"h-56 p-5",children:[e("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Analytics"}),e("p",{className:"mt-3 max-w-48 text-sm text-neutral-500 dark:text-white/60",children:"Powerful real-time analytics with conversion tracking"})]})]}),e("div",{className:"grid grow grid-rows-2 gap-4",children:w.map(({title:r,description:o,icon:s,href:m})=>e(f,{title:r,description:o,icon:s,href:i(m,t)},r))})]}),a("div",{className:"pl-2 pt-2",children:[e("p",{className:n(c,"mb-2"),children:"Customer Stories"}),a("div",{className:"grid grid-cols-1",children:[g.map(({icon:r,iconClassName:o,title:s,description:m,href:d})=>e(l,{href:i(d,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:s}),className:"-mx-2",icon:e("div",{className:"shrink-0 rounded-[10px] border border-gray-200 bg-white/50 p-2 dark:border-white/20 dark:bg-white/10",children:e(r,{className:n("h-4 w-4 shrink-0 text-gray-600 transition-colors dark:text-white/60",o)})}),title:s,description:m},d)),e(l,{href:i("/customers",t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Customer Stories"}),title:"View all stories",showArrow:!0})]}),e("p",{className:n(c,"mb-2 mt-5"),children:"Compare"}),e("div",{className:"flex flex-col",children:b.map(({name:r,slug:o})=>e(l,{href:i(`/compare/${o}`,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:`Dub vs. ${r}`}),title:`Dub vs. ${r}`,showArrow:!0},o))})]})]})}export{S as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as o}from"./chunk-LTXYZWOV.mjs";import*as e from"@radix-ui/react-label";import{cva as m}from"class-variance-authority";import*as t from"react";import{jsx as s}from"react/jsx-runtime";var l=m("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),p=t.forwardRef(({className:a,...i},r)=>s(e.Root,{ref:r,className:o(l(),a),...i}));p.displayName=e.Root.displayName;export{p as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l}from"./chunk-U4QDY74H.mjs";import{a as t}from"./chunk-QC6GZ7KR.mjs";import{h as m,j as o}from"./chunk-LTXYZWOV.mjs";import{jsx as s}from"react/jsx-runtime";function n({apexDomain:r,className:e,imageProps:a}){return r?s(l,{src:`${o}${r}`,alt:r,className:m("h-8 w-8 rounded-full sm:h-10 sm:w-10",e),width:20,height:20,draggable:!1,...a}):s("div",{className:m("flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 px-0 sm:h-10 sm:w-10",e),children:s(t,{className:"h-4 w-4 text-gray-600 sm:h-5 sm:w-5"})})}export{n as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as g}from"./chunk-YJZ5JWXJ.mjs";import{h as c}from"./chunk-LTXYZWOV.mjs";import{Command as s}from"cmdk";import{Lock as T}from"lucide-react";import{jsx as o,jsxs as w}from"react/jsx-runtime";var h=({presets:f,onSelect:p,currentValue:r})=>{let P=e=>"dateRange"in e,b=e=>"date"in e,a=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),y=(e,t)=>{let n=e.from,l=t.from,i=!1;n&&l&&a(n,l)&&(i=!0);let m=e.to,d=t.to,u=!1;return m&&d&&a(m,d)&&(u=!0),i&&u},x=e=>{if(P(e)){let t=r;return t&&y(t,e.dateRange)}else if(b(e)){let t=r;return t&&a(t,e.date)}return!1};return o(s,{className:"w-full rounded ring-gray-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:o(s.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:f.map((e,t)=>w(s.Item,{disabled:e.requiresUpgrade,onSelect:()=>p(e),title:e.label,value:e.id,className:c("group relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-200","px-2.5 py-1.5 text-left text-sm text-gray-700 shadow-sm outline-none sm:w-full sm:border-none sm:py-2 sm:shadow-none","disabled:pointer-events-none disabled:opacity-50","sm:data-[selected=true]:bg-gray-100",x(e)&&"font-semibold text-gray-800"),children:[o("span",{children:e.label}),e.requiresUpgrade?o(T,{className:"h-3.5 w-3.5","aria-hidden":"true"}):e.shortcut?o("kbd",{className:"text-gray-4000 hidden rounded bg-gray-100 px-2 py-0.5 text-xs font-light group-data-[selected=true]:bg-gray-200 md:block",children:e.shortcut.toUpperCase()}):null,e.requiresUpgrade&&e.tooltipContent&&o(g,{side:"bottom",content:e.tooltipContent,children:o("div",{className:"absolute inset-0 cursor-not-allowed"})})]},t))})})};h.displayName="DatePicker.Presets";export{h as a};
|