@dub/ui 0.0.31 → 0.0.32
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/chunk-4Q5QWE5D.mjs +2 -0
- package/dist/chunk-QI3C3KP5.mjs +2 -0
- package/dist/footer.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/link-preview.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-2TGXECZQ.mjs";import{a as o}from"./chunk-RUECQMCM.mjs";import{e as g,h as f,i as b}from"./chunk-CQBWHQEH.mjs";import{Link2 as y}from"lucide-react";import{useRouter as w,useSearchParams as L}from"next/navigation";import{useEffect as k,useMemo as R,useRef as E}from"react";import P from"swr";import{useDebounce as W}from"use-debounce";import{Fragment as v,jsx as e,jsxs as r}from"react/jsx-runtime";function D({defaultUrl:t}){let h=w(),l=L(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=W(f(i),500),d=R(()=>b(a||""),[a]),{data:x,isValidating:N}=P(a&&`/api/edge/metatags?url=${a}`,g,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=x||{},s=E(null);return k(()=>{!t&&s.current&&s.current.select()},[t]),r(v,{children:[!t&&r("div",{className:"relative flex items-center",children:[e(y,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{ref:s,name:"url",id:"url",type:"url",autoFocus:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:i,onChange:m=>h.replace(`/tools/metatags${m.target.value.length>0?`?url=${m.target.value}`:""}`),"aria-invalid":"true"})]}),r("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[N&&e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})}),c?e("img",{src:c,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):r("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[e(p,{className:"h-8 w-8 text-gray-400"}),e("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),r("div",{className:"grid gap-1 bg-white p-3 text-left",children:[d?e("p",{className:"text-sm text-[#536471]",children:d}):e("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),n?e("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:n}):e("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),u?e("p",{className:"line-clamp-2 text-sm text-[#536471]",children:u}):r("div",{className:"grid gap-2",children:[e("div",{className:"h-4 w-full rounded-md bg-gray-100"}),e("div",{className:"h-4 w-48 rounded-md bg-gray-100"})]})]})]})]})}function M({defaultUrl:t}){return r(v,{children:[r("div",{className:"relative flex items-center",children:[e(y,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:t||"https://github.com/dubinc/dub"})]}),e("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})})})]})}export{D as a,M as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-CS6Q63Y7.mjs";import{a as h}from"./chunk-BDJ7NNR2.mjs";import{a as n}from"./chunk-WGFLDZUS.mjs";import{a as g}from"./chunk-DU3RNUBP.mjs";import{a as c}from"./chunk-T4YFARK5.mjs";import{a as d}from"./chunk-5EWSH7PD.mjs";import{c as i}from"./chunk-CQBWHQEH.mjs";import o from"@vercel/analytics";import m from"next/link";import{useParams as f}from"next/navigation";import{jsx as e,jsxs as r}from"react/jsx-runtime";var l={features:p.map(({shortTitle:t,slug:s})=>({name:t,href:`/${s}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customer Stories",href:"/customers"},{name:"Help Center",href:"/help"},{name:"Pricing",href:"/pricing"}],legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:i.map(({name:t,slug:s})=>({name:t,href:`/tools/${s}`}))};function L(){let{domain:t="dub.co"}=f(),s=a=>t==="dub.co"?a:`https://dub.co${a}`;return e("footer",{className:"z-10 border-t border-gray-200 bg-white/50 py-8 backdrop-blur-lg",children:r(h,{className:"pt-10",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-8",children:[r(m,{href:s("/"),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:"footer item (logo)"})}},children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(n,{className:"h-7 text-gray-600"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("div",{className:"flex items-center space-x-2",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(g,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(c,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://www.linkedin.com/company/dubhq/",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(d,{className:"h-5 w-5",fill:"#52525B"})]})]})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]})]})]}),e("div",{className:"mt-16 border-t border-gray-900/10 pt-8 sm:mt-20 lg:mt-24",children:r("p",{className:"text-sm leading-5 text-gray-500",children:["\xA9 ",new Date().getFullYear()," ",process.env.NEXT_PUBLIC_APP_NAME]})})]})})}export{L 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-QI3C3KP5.mjs";import"./chunk-CS6Q63Y7.mjs";import"./chunk-BDJ7NNR2.mjs";import"./chunk-KONPNG2A.mjs";import"./chunk-WGFLDZUS.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-DU3RNUBP.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-OYEGFR5W.mjs";import"./chunk-5EWSH7PD.mjs";import"./chunk-RUECQMCM.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-JEZ6FMQ5.mjs";import"./chunk-I27TAVOJ.mjs";import"./chunk-Z5P2KHPP.mjs";import"./chunk-CZZI6QBQ.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-CQBWHQEH.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 V}from"./chunk-XMVROX4C.mjs";import{a as W}from"./chunk-YOYXX7H5.mjs";import{a as ro}from"./chunk-W5YDWGPP.mjs";import{a as T}from"./chunk-Z4MSMGYC.mjs";import{a as _}from"./chunk-O5BHK57C.mjs";import{a as $,b as oo}from"./chunk-
|
|
2
|
+
import{a as V}from"./chunk-XMVROX4C.mjs";import{a as W}from"./chunk-YOYXX7H5.mjs";import{a as ro}from"./chunk-W5YDWGPP.mjs";import{a as T}from"./chunk-Z4MSMGYC.mjs";import{a as _}from"./chunk-O5BHK57C.mjs";import{a as $,b as oo}from"./chunk-4Q5QWE5D.mjs";import{a as U}from"./chunk-P45E3KEU.mjs";import{a as Z}from"./chunk-HQVJNVZD.mjs";import{a as X,b as Y}from"./chunk-LZBUSVRH.mjs";import{a as o,b as r,c as m,d as p}from"./chunk-7BZYONIF.mjs";import{a as t,b as e}from"./chunk-P65XPFMF.mjs";import{a as f}from"./chunk-QDF6KFCS.mjs";import{a as x,b as i}from"./chunk-Q6B67224.mjs";import{a as O}from"./chunk-ZMTUVT2R.mjs";import{a as R}from"./chunk-QI3C3KP5.mjs";import{a as P}from"./chunk-CS6Q63Y7.mjs";import{a as Q}from"./chunk-BDJ7NNR2.mjs";import{a as S}from"./chunk-NVMWSKK2.mjs";import{a as N}from"./chunk-HYXO7Z3L.mjs";import{a as I,b as J,c as K,d as L,e as M}from"./chunk-ENXLIERT.mjs";import{a as A,b as B,c as C,d as D,e as E,f as F,g as G}from"./chunk-UJKRGIPQ.mjs";import{a as H}from"./chunk-XDXOOSPE.mjs";import"./chunk-KONPNG2A.mjs";import{a as q}from"./chunk-WGFLDZUS.mjs";import{a as c}from"./chunk-YURUGH4S.mjs";import{a as d}from"./chunk-2TGXECZQ.mjs";import{a as h}from"./chunk-EHYVEIOL.mjs";import{a as y}from"./chunk-DU3RNUBP.mjs";import{a as z}from"./chunk-GSQUGPJ2.mjs";import{a as u}from"./chunk-T4YFARK5.mjs";import{a as v}from"./chunk-OYEGFR5W.mjs";import{a as w}from"./chunk-5EWSH7PD.mjs";import{a as j}from"./chunk-RUECQMCM.mjs";import{a as k}from"./chunk-QA2KCGIR.mjs";import{a as l}from"./chunk-JEZ6FMQ5.mjs";import{a as n}from"./chunk-I27TAVOJ.mjs";import{a}from"./chunk-Z5P2KHPP.mjs";import{a as b}from"./chunk-CZZI6QBQ.mjs";import{a as s}from"./chunk-MURAUI3W.mjs";import{a as g}from"./chunk-XSZV33MB.mjs";import"./chunk-CQBWHQEH.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,N as Button,a as Copy,O as CopyButton,b as ExpandingArrow,P as FEATURES_LIST,s as Facebook,R as Footer,S as Form,u as Github,v as Google,T as IconMenu,L as InfoTooltip,_ as InlineSnippet,$ as LinkPreview,oo as LinkPreviewPlaceholder,w as LinkedIn,j as LoadingCircle,k as LoadingDots,l as LoadingSpinner,n as Logo,q as LogoType,c as Magic,Q as MaxWidthWrapper,U as Modal,Y as Nav,Z as NavMobile,M as NumberTooltip,d as Photo,V as Popover,K as SimpleTooltipContent,g as Success,W as Switch,ro as TabSelect,h as Tick,e as TokenAvatar,I as Tooltip,J as TooltipContent,y as Twitter,z as Unsplash,x as badgeVariants,X as navItems,A as useCookies,B as useCurrentAnchor,C as useIntersectionObserver,D as useLocalStorage,E as useMediaQuery,F as useRouterStuff,G as useScroll,H as useToastWithUndo};
|
package/dist/link-preview.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b}from"./chunk-
|
|
2
|
+
import{a,b}from"./chunk-4Q5QWE5D.mjs";import"./chunk-KONPNG2A.mjs";import"./chunk-WGFLDZUS.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-DU3RNUBP.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-OYEGFR5W.mjs";import"./chunk-5EWSH7PD.mjs";import"./chunk-RUECQMCM.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-JEZ6FMQ5.mjs";import"./chunk-I27TAVOJ.mjs";import"./chunk-Z5P2KHPP.mjs";import"./chunk-CZZI6QBQ.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-CQBWHQEH.mjs";import"./chunk-AUBFB4SI.mjs";export{a as LinkPreview,b as LinkPreviewPlaceholder};
|