@dub/ui 0.1.13 → 0.1.14
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-2VIWXKOO.mjs +7 -0
- package/dist/chunk-L2RYUCO2.mjs +2 -0
- package/dist/chunk-LRWOTDTS.mjs +2 -0
- 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/wordmark.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as P}from"./chunk-LRWOTDTS.mjs";import{a as k}from"./chunk-SALE3TDE.mjs";import{a as N}from"./chunk-A75RGEGE.mjs";import{a as y}from"./chunk-IR4ADHH7.mjs";import{a as C}from"./chunk-MVAWYBZA.mjs";import{d as b,f as x,h as l,i as w}from"./chunk-C6UNPM2B.mjs";import*as m from"@radix-ui/react-popover";import{BoxSelect as G,Home as F,LayoutGrid as z,Type as U}from"lucide-react";import{useCallback as j,useContext as K,useState as Y}from"react";import{toast as S}from"sonner";import*as a from"@radix-ui/react-navigation-menu";import v from"@vercel/analytics";import{ChevronDown as B}from"lucide-react";import u from"next/link";import{useParams as D,useSelectedLayoutSegment as $}from"next/navigation";import{createContext as _}from"react";import A from"swr";import{useCallback as T,useEffect as M,useState as W}from"react";function L(n){let[e,c]=W(!1),i=T(()=>{c(window.scrollY>n)},[n]);return M(()=>(window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)),[i]),M(()=>{i()},[i]),e}import{Fragment as Z,jsx as t,jsxs as s}from"react/jsx-runtime";var f=_({theme:"light"}),O=[{name:"Customers",slug:"customers"},{name:"Pricing",slug:"pricing"},{name:"Enterprise",slug:"enterprise"},{name:"Blog",slug:"blog"},{name:"Changelog",slug:"changelog"}];function ce({theme:n="light"}){let{domain:e="dub.co"}=D(),c=L(80),i=$(),{data:g,isLoading:p}=A(e==="dub.co"&&"/api/auth/session",x,{dedupingInterval:6e4});return t(f.Provider,{value:{theme:n},children:s("div",{className:l("sticky inset-x-0 top-0 z-30 w-full transition-all",n==="dark"&&"dark"),children:[t("div",{className:l("-z-1 absolute inset-0 border-transparent transition-all dark:bg-black",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75":c,"border-b border-gray-200 bg-white dark:border-white/10 dark:bg-black":i&&w.includes(i)})}),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(u,{href:e==="dub.co"?"/":"https://dub.co",...e!=="dub.co"&&{onClick:()=>{v.track("Referred from custom domain",{domain:e,medium:"logo"})}},children:t(V,{})}),s(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[s(a.List,{className:"flex flex-row space-x-2 p-4",children:[s(a.Item,{children:[s(a.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:l("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":i==="features"}),children:"Features"}),t(B,{className:"h-4 w-4 text-black transition-all group-data-[state=open]:rotate-180 dark:text-white"})]}),t(a.Content,{children:t("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:N.map(({slug:d,icon:r,title:R,shortTitle:I})=>s(u,{href:e==="dub.co"?`/${d}`:`https://dub.co/${d}`,...e!=="dub.co"&&{onClick:()=>{v.track("Referred from custom domain",{domain:e,medium:`navbar item (/${d})`})}},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(r,{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:I})]}),t("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500 dark:text-white/60",children:R})]},d))})})]}),O.map(({name:d,slug:r})=>t(a.Item,{asChild:!0,children:t(u,{id:`nav-${r}`,href:e==="dub.co"?`/${r}`:`https://dub.co/${r}`,...e!=="dub.co"&&{onClick:()=>{v.track("Referred from custom domain",{domain:e,medium:`navbar item (${r})`})}},className:l("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":i===r}),children:d},r)},r))]}),t(a.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:g&&Object.keys(g).length>0?t(u,{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-white hover:text-black dark:border-white dark:bg-white dark:text-black dark:hover:bg-black dark:hover:text-white",children:"Dashboard"}):p?null:s(Z,{children:[t(u,{href:`${b}/login`,...e!=="dub.co"&&{onClick:()=>{v.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(u,{href:`${b}/register`,...e!=="dub.co"&&{onClick:()=>{v.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-white hover:text-black dark:border-white dark:bg-white dark:text-black dark:hover:bg-black dark:hover:text-white",children:"Sign Up"})]})})]})})]})})}import{jsx as o,jsxs as E}from"react/jsx-runtime";var q=`<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 H(n){try{await navigator.clipboard.writeText(n),S.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),S.error("Failed to copy to clipboard.")}}function V({variant:n="full",isInApp:e=!0,className:c}){let{theme:i}=K(f),[g,p]=Y(!1),d=j(r=>{r.preventDefault(),p(!0)},[]);return E(m.Root,{open:g,onOpenChange:p,children:[o(m.Anchor,{asChild:!0,children:o("div",{onContextMenu:d,children:n==="full"?o(P,{className:c}):o(k,{className:l("h-8 w-8 transition-all duration-75 active:scale-95",c)})})}),o(m.Portal,{children:o(m.Content,{sideOffset:14,align:"start",className:l("z-50 -mt-1.5 -translate-x-10",i==="dark"&&"dark"),onClick:r=>{r.stopPropagation(),p(!1)},children:E("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(h,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>H(q),icon:o(k,{className:"h-4 w-4"})}),o(h,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>H(J),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})}),o(h,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(G,{strokeWidth:2,className:"h-4 w-4"})}),e?o(h,{text:"Home Page",variant:"outline",onClick:()=>window.open("https://dub.co","_blank"),icon:o(F,{strokeWidth:2,className:"h-4 w-4"})}):o(h,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function h({className:n,...e}){return o(C,{className:l("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",n),...e})}export{L as a,V as b,f as c,O as d,ce as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as u}from"./chunk-2VIWXKOO.mjs";import{a as p}from"./chunk-A75RGEGE.mjs";import{d as t,f as d,h as n}from"./chunk-C6UNPM2B.mjs";import{ChevronDown as N,Menu as v,X as w}from"lucide-react";import i from"next/link";import{useParams as x}from"next/navigation";import{useEffect as k,useState as b}from"react";import L from"swr";import{Fragment as h,jsx as e,jsxs as s}from"react/jsx-runtime";function D(){let{domain:r="dub.co"}=x(),[a,c]=b(!1),[m,y]=b(!1);k(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:f}=L(r==="dub.co"&&"/api/auth/session",d,{dedupingInterval:6e4});return s(h,{children:[e("button",{onClick:()=>c(!a),className:n("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600"}):e(v,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:n("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>y(!m),children:[e("p",{className:"font-semibold",children:"Features"}),e(N,{className:n("h-5 w-5 text-gray-500 transition-all",m&&"rotate-180")})]}),m&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:l,icon:o,shortTitle:g})=>s(i,{href:r==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>c(!1),className:"flex w-full space-x-2",children:[e(o,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:g})]},l))})]}),u.map(({name:l,slug:o})=>e("li",{className:"py-3",children:e(i,{href:r==="dub.co"?`/${o}`:`https://dub.co/${o}`,onClick:()=>c(!1),className:"flex w-full font-semibold capitalize",children:l})},o)),f&&Object.keys(f).length>0?e("li",{className:"py-3",children:e(i,{href:t,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(h,{children:[e("li",{className:"py-3",children:e(i,{href:`${t}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(i,{href:`${t}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{D as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as C}from"./chunk-C6UNPM2B.mjs";import{jsx as e}from"react/jsx-runtime";function o({className:t}){return e("svg",{width:"46",height:"24",viewBox:"0 0 46 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:C("h-6 w-auto text-black dark:text-white",t),children:e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z",fill:"currentColor"})})}export{o as a};
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a as Re}from"./chunk-ZWOROFWQ.mjs";import{a as Ue}from"./chunk-
|
|
2
|
+
import{a as Re}from"./chunk-ZWOROFWQ.mjs";import{a as Ue}from"./chunk-L2RYUCO2.mjs";import{a as Ve}from"./chunk-RLAUGTEK.mjs";import{a as We,b as Ge}from"./chunk-VZR6ATOQ.mjs";import{a as Xe}from"./chunk-Y7E7HSNP.mjs";import{a as qe,b as ze}from"./chunk-SVKN5LSQ.mjs";import{a as Ne}from"./chunk-WM2LAFXS.mjs";import{a as Ye}from"./chunk-AIH2TIHT.mjs";import{a as Ae}from"./chunk-62YVEUMV.mjs";import{a as je}from"./chunk-6KEKSFFX.mjs";import{a as Fe}from"./chunk-2RSMCJBJ.mjs";import{a as Qe,b as ke}from"./chunk-VEHHHDP2.mjs";import{a as Le}from"./chunk-C72IQ7KG.mjs";import{a as Ie}from"./chunk-K4MP745I.mjs";import{a as Pe,b as $e,c as Be,d as De,e as Me}from"./chunk-2VIWXKOO.mjs";import{a as Ke}from"./chunk-LRWOTDTS.mjs";import{a as Je}from"./chunk-SALE3TDE.mjs";import{a as Ee}from"./chunk-P24RLXHU.mjs";import{a as Se}from"./chunk-3I6NUXH5.mjs";import{a as we}from"./chunk-B3NNGVFI.mjs";import{a as Oe}from"./chunk-A75RGEGE.mjs";import{a as ve}from"./chunk-IR4ADHH7.mjs";import{a as he}from"./chunk-B7JGWAIZ.mjs";import{a as Te}from"./chunk-QE42YW4F.mjs";import{a as ye}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-2REOLEIJ.mjs";import{a as K,b as $}from"./chunk-7P2VLXDJ.mjs";import{a as B}from"./chunk-DSCUUAKG.mjs";import{a as U}from"./chunk-3HAKTGUV.mjs";import{a as de}from"./chunk-MVAWYBZA.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-C25EFVHY.mjs";import"./chunk-KONPNG2A.mjs";import{a as G}from"./chunk-EHYVEIOL.mjs";import{a as oe}from"./chunk-RC7DDQ76.mjs";import{a as ne}from"./chunk-GSQUGPJ2.mjs";import{a as se}from"./chunk-76WLXMIK.mjs";import{a as re}from"./chunk-R2YDBCVQ.mjs";import{a as X}from"./chunk-NEDASB4A.mjs";import{a as Y}from"./chunk-QA2KCGIR.mjs";import{a as Z}from"./chunk-QN7ZKKZ6.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-NPIAR444.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-LFQAIDJD.mjs";import{a as xe}from"./chunk-HWM7RDK7.mjs";import{f as b}from"./chunk-C6UNPM2B.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,we as Footer,Te as Form,C as Github,ee as Google,ye as IconMenu,me as InfoTooltip,He as InlineSnippet,Ae 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,Je as Logo,Q as Magic,ve as MaxWidthWrapper,Le as Modal,Me as Nav,Be as NavContext,$e as NavLogo,Ue as NavMobile,pe as NumberTooltip,k as Photo,Ve as Popover,Ge as Popup,We as PopupContext,te as ProductHunt,Xe as ProgressBar,qe as RadioGroup,ze as RadioGroupItem,ae as SimpleTooltipContent,W as Success,Ne 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,Ke as Wordmark,se as YouTube,D as badgeVariants,De as navItems,rr as useCookies,nr as useCurrentAnchor,ir as useEnterSubmit,fr as useIntersectionObserver,gr as useLocalStorage,Ie as useMediaQuery,hr as useOptimisticUpdate,vr as useResizeObserver,yr as useRouterStuff,Pe as useScroll,Re as useToastWithUndo};
|
package/dist/nav-logo.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{b as a}from"./chunk-
|
|
2
|
+
import{b as a}from"./chunk-2VIWXKOO.mjs";import"./chunk-LRWOTDTS.mjs";import"./chunk-SALE3TDE.mjs";import"./chunk-A75RGEGE.mjs";import"./chunk-IR4ADHH7.mjs";import"./chunk-MVAWYBZA.mjs";import"./chunk-C25EFVHY.mjs";import"./chunk-KONPNG2A.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-RC7DDQ76.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-76WLXMIK.mjs";import"./chunk-R2YDBCVQ.mjs";import"./chunk-NEDASB4A.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-QN7ZKKZ6.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-HFOXNTZ2.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-BKZ6TNZC.mjs";import"./chunk-NPIAR444.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-QROG2QLI.mjs";import"./chunk-LFQAIDJD.mjs";import"./chunk-C6UNPM2B.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-L2RYUCO2.mjs";import"./chunk-2VIWXKOO.mjs";import"./chunk-LRWOTDTS.mjs";import"./chunk-SALE3TDE.mjs";import"./chunk-A75RGEGE.mjs";import"./chunk-IR4ADHH7.mjs";import"./chunk-MVAWYBZA.mjs";import"./chunk-C25EFVHY.mjs";import"./chunk-KONPNG2A.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-RC7DDQ76.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-76WLXMIK.mjs";import"./chunk-R2YDBCVQ.mjs";import"./chunk-NEDASB4A.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-QN7ZKKZ6.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-HFOXNTZ2.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-BKZ6TNZC.mjs";import"./chunk-NPIAR444.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-QROG2QLI.mjs";import"./chunk-LFQAIDJD.mjs";import"./chunk-C6UNPM2B.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-2VIWXKOO.mjs";import"./chunk-LRWOTDTS.mjs";import"./chunk-SALE3TDE.mjs";import"./chunk-A75RGEGE.mjs";import"./chunk-IR4ADHH7.mjs";import"./chunk-MVAWYBZA.mjs";import"./chunk-C25EFVHY.mjs";import"./chunk-KONPNG2A.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-RC7DDQ76.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-76WLXMIK.mjs";import"./chunk-R2YDBCVQ.mjs";import"./chunk-NEDASB4A.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-QN7ZKKZ6.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-HFOXNTZ2.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-BKZ6TNZC.mjs";import"./chunk-NPIAR444.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-QROG2QLI.mjs";import"./chunk-LFQAIDJD.mjs";import"./chunk-C6UNPM2B.mjs";import"./chunk-AUBFB4SI.mjs";export{c as Nav,a as NavContext,b as navItems};
|
package/dist/wordmark.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-LRWOTDTS.mjs";import"./chunk-C6UNPM2B.mjs";import"./chunk-AUBFB4SI.mjs";export{a as Wordmark};
|