@dub/ui 0.0.7 → 0.0.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/README.md +11 -0
- package/dist/accordion.d.mts +9 -0
- package/dist/accordion.mjs +1 -1
- package/dist/avatar.d.mts +15 -0
- package/dist/avatar.mjs +1 -1
- package/dist/background.d.mts +5 -0
- package/dist/background.mjs +1 -1
- package/dist/badge.d.mts +12 -0
- package/dist/badge.mjs +1 -1
- package/dist/button.d.mts +13 -0
- package/dist/button.mjs +1 -1
- package/dist/chunk-3Y5WGFFC.mjs +2 -0
- package/dist/chunk-4Y22ZONT.mjs +2 -0
- package/dist/chunk-B7YPSVHM.mjs +2 -0
- package/dist/chunk-BCILXFZH.mjs +2 -0
- package/dist/chunk-BIFPQJQ5.mjs +2 -0
- package/dist/chunk-BZY4AURF.mjs +2 -0
- package/dist/chunk-CMCBEA3Q.mjs +2 -0
- package/dist/chunk-HZBYDQAF.mjs +2 -0
- package/dist/chunk-IMRGY4OW.mjs +2 -0
- package/dist/chunk-JF4XLNZS.mjs +2 -0
- package/dist/chunk-MRCUHGHS.mjs +2 -0
- package/dist/chunk-OCYEAVPN.mjs +2 -0
- package/dist/chunk-OIIHWZYP.mjs +2 -0
- package/dist/chunk-S32PKYSI.mjs +8 -0
- package/dist/chunk-XG3NPZVV.mjs +2 -0
- package/dist/copy-button.d.mts +8 -0
- package/dist/copy-button.mjs +1 -1
- package/dist/footer.d.mts +5 -0
- package/dist/footer.mjs +1 -1
- package/dist/form.d.mts +14 -0
- package/dist/form.mjs +1 -1
- package/dist/icon-menu.d.mts +10 -0
- package/dist/icon-menu.mjs +1 -1
- package/dist/icons/copy.d.mts +7 -0
- package/dist/icons/copy.mjs +1 -1
- package/dist/icons/expanding-arrow.d.mts +7 -0
- package/dist/icons/expanding-arrow.mjs +1 -1
- package/dist/icons/facebook.d.mts +8 -0
- package/dist/icons/facebook.mjs +1 -1
- package/dist/icons/github.d.mts +7 -0
- package/dist/icons/github.mjs +1 -1
- package/dist/icons/google.d.mts +7 -0
- package/dist/icons/google.mjs +1 -1
- package/dist/icons/index.d.mts +17 -0
- package/dist/icons/index.mjs +1 -1
- package/dist/icons/linkedin.d.mts +8 -0
- package/dist/icons/linkedin.mjs +1 -1
- package/dist/icons/loading-circle.d.mts +7 -0
- package/dist/icons/loading-circle.mjs +1 -1
- package/dist/icons/loading-dots.d.mts +5 -0
- package/dist/icons/loading-dots.mjs +1 -1
- package/dist/icons/loading-spinner.d.mts +7 -0
- package/dist/icons/loading-spinner.mjs +1 -1
- package/dist/icons/logo.d.mts +7 -0
- package/dist/icons/logo.mjs +1 -1
- package/dist/icons/logotype.d.mts +7 -0
- package/dist/icons/logotype.mjs +1 -1
- package/dist/icons/magic.d.mts +7 -0
- package/dist/icons/magic.mjs +1 -1
- package/dist/icons/photo.d.mts +7 -0
- package/dist/icons/photo.mjs +1 -1
- package/dist/icons/tick.d.mts +7 -0
- package/dist/icons/tick.mjs +1 -1
- package/dist/icons/twitter.d.mts +7 -0
- package/dist/icons/twitter.mjs +1 -1
- package/dist/icons/unsplash.d.mts +7 -0
- package/dist/icons/unsplash.mjs +1 -1
- package/dist/index.d.mts +69 -0
- package/dist/index.mjs +1 -1
- package/dist/link-preview.d.mts +7 -0
- package/dist/link-preview.mjs +1 -1
- package/dist/max-width-wrapper.d.mts +9 -0
- package/dist/max-width-wrapper.mjs +1 -1
- package/dist/modal.d.mts +14 -0
- package/dist/modal.mjs +1 -1
- package/dist/nav-mobile.d.mts +5 -0
- package/dist/nav-mobile.mjs +1 -1
- package/dist/nav.d.mts +9 -0
- package/dist/nav.mjs +1 -1
- package/dist/popover.d.mts +13 -0
- package/dist/popover.mjs +1 -1
- package/dist/switch.d.mts +14 -0
- package/dist/switch.mjs +1 -1
- package/dist/tab-select.d.mts +9 -0
- package/dist/tab-select.mjs +1 -1
- package/dist/tooltip.d.mts +32 -0
- package/dist/tooltip.mjs +1 -1
- package/package.json +13 -14
- package/.turbo/turbo-build.log +0 -123
- package/postcss.config.js +0 -9
- package/src/accordion.tsx +0 -60
- package/src/avatar.tsx +0 -47
- package/src/background.tsx +0 -71
- package/src/badge.tsx +0 -33
- package/src/button.tsx +0 -60
- package/src/content.ts +0 -34
- package/src/copy-button.tsx +0 -39
- package/src/footer.tsx +0 -204
- package/src/form.tsx +0 -77
- package/src/hooks/index.ts +0 -5
- package/src/hooks/use-current-anchor.ts +0 -65
- package/src/hooks/use-intersection-observer.ts +0 -41
- package/src/hooks/use-local-storage.ts +0 -24
- package/src/hooks/use-media-query.ts +0 -46
- package/src/hooks/use-scroll.ts +0 -21
- package/src/icon-menu.tsx +0 -15
- package/src/icons/copy.tsx +0 -18
- package/src/icons/expanding-arrow.tsx +0 -39
- package/src/icons/facebook.tsx +0 -23
- package/src/icons/github.tsx +0 -14
- package/src/icons/google.tsx +0 -12
- package/src/icons/index.tsx +0 -23
- package/src/icons/linkedin.tsx +0 -22
- package/src/icons/loading-circle.tsx +0 -25
- package/src/icons/loading-dots.tsx +0 -21
- package/src/icons/loading-spinner.tsx +0 -34
- package/src/icons/logo.tsx +0 -29
- package/src/icons/logotype.tsx +0 -51
- package/src/icons/magic.tsx +0 -30
- package/src/icons/photo.tsx +0 -20
- package/src/icons/tick.tsx +0 -18
- package/src/icons/twitter.tsx +0 -31
- package/src/icons/unsplash.tsx +0 -17
- package/src/index.tsx +0 -35
- package/src/link-preview.tsx +0 -111
- package/src/max-width-wrapper.tsx +0 -21
- package/src/modal.tsx +0 -102
- package/src/nav-mobile.tsx +0 -108
- package/src/nav.tsx +0 -205
- package/src/popover.tsx +0 -61
- package/src/styles.css +0 -3
- package/src/switch.tsx +0 -60
- package/src/tab-select.tsx +0 -27
- package/src/tooltip.tsx +0 -184
- package/tailwind.config.ts +0 -9
- package/tsconfig.json +0 -5
- package/tsup.config.ts +0 -15
package/README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
|
|
9
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
package/dist/accordion.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b,c,d}from"./chunk-
|
|
2
|
+
import{a,b,c,d}from"./chunk-XG3NPZVV.mjs";import"./chunk-HZBYDQAF.mjs";export{a as Accordion,d as AccordionContent,b as AccordionItem,c as AccordionTrigger};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
declare function Avatar({ user, className, }: {
|
|
4
|
+
user?: {
|
|
5
|
+
name?: string | null | undefined;
|
|
6
|
+
email?: string | null | undefined;
|
|
7
|
+
image?: string | null | undefined;
|
|
8
|
+
};
|
|
9
|
+
className?: string;
|
|
10
|
+
}): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare function TokenAvatar({ id }: {
|
|
12
|
+
id: string;
|
|
13
|
+
}): react_jsx_runtime.JSX.Element;
|
|
14
|
+
|
|
15
|
+
export { Avatar, TokenAvatar };
|
package/dist/avatar.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b}from"./chunk-YBWQTHOI.mjs";export{a as Avatar,b as TokenAvatar};
|
|
2
|
+
import{a,b}from"./chunk-YBWQTHOI.mjs";import"./chunk-HZBYDQAF.mjs";export{a as Avatar,b as TokenAvatar};
|
package/dist/background.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
"use client";import{a}from"./chunk-S32PKYSI.mjs";import"./chunk-HZBYDQAF.mjs";export{a as Background};
|
package/dist/badge.d.mts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare const badgeVariants: (props?: ({
|
|
6
|
+
variant?: "black" | "blue" | "gray" | "violet" | "default" | "neutral" | null | undefined;
|
|
7
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
8
|
+
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
9
|
+
}
|
|
10
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { Badge, badgeVariants };
|
package/dist/badge.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b}from"./chunk-
|
|
2
|
+
import{a,b}from"./chunk-B7YPSVHM.mjs";import"./chunk-HZBYDQAF.mjs";export{b as Badge,a as badgeVariants};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
+
text: string;
|
|
6
|
+
variant?: "primary" | "secondary" | "success" | "danger";
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
disabledTooltip?: string | ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare function Button({ text, variant, loading, icon, disabledTooltip, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { Button };
|
package/dist/button.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
"use client";import{a}from"./chunk-BZY4AURF.mjs";import"./chunk-4Y22ZONT.mjs";import"./chunk-NHHVF35L.mjs";import"./chunk-PHU6NRSR.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-JLET4OCX.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-5EWSH7PD.mjs";import"./chunk-6DKNMNDW.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-PPR7AQWS.mjs";import"./chunk-QP2EHAF7.mjs";import"./chunk-WURMVTJP.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-Z5P2KHPP.mjs";import"./chunk-EY55E5DB.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-OYEGFR5W.mjs";import"./chunk-HZBYDQAF.mjs";export{a as Button};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as v}from"./chunk-573R3EDL.mjs";import{a as f}from"./chunk-PPNWHWNQ.mjs";import{e as p}from"./chunk-NHHVF35L.mjs";import{a as g}from"./chunk-WURMVTJP.mjs";import{a as r,b as n}from"./chunk-HZBYDQAF.mjs";import{APP_DOMAIN as b,SHOW_BACKGROUND_SEGMENTS as k,cn as d}from"@dub/utils";import*as i from"@radix-ui/react-navigation-menu";import l from"@vercel/analytics";import{ChevronDown as y}from"lucide-react";import s from"next/link";import{useParams as w,useSelectedLayoutSegment as M}from"next/navigation";import{jsx as e,jsxs as a}from"react/jsx-runtime";var P=[{name:"Customers",slug:"customers"},{name:"Changelog",slug:"changelog"},{name:"Help",slug:"help"},{name:"Pricing",slug:"pricing"}];function A(){let{domain:t="dub.co"}=w(),x=p(80),c=M(),u=c==="help";return e("div",{className:d("sticky inset-x-0 top-0 z-30 w-full transition-all",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg":x,"border-b border-gray-200 bg-white":c&&!k.includes(c)}),children:e(f,n(r({},u&&{className:"max-w-screen-lg"}),{children:a("div",{className:"flex h-14 items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[e(s,n(r({href:t==="dub.co"?"/":"https://dub.co"},t!=="dub.co"&&{onClick:()=>{l.track("Referred from custom domain",{domain:t,medium:"logo"})}}),{children:e(g,{})})),u?a("div",{className:"flex items-center",children:[e("div",{className:"mr-3 h-5 border-l-2 border-gray-400"}),e(s,{href:"/help",className:"font-display text-lg font-bold text-gray-700",children:"Help Center"})]}):a(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[a(i.List,{className:"flex flex-row space-x-2 p-4",children:[a(i.Item,{children:[a(i.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none",children:[e("p",{className:d("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black",{"text-black":c==="features"}),children:"Features"}),e(y,{className:"h-4 w-4 transition-all group-data-[state=open]:rotate-180"})]}),e(i.Content,{children:e("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:v.map(({slug:m,icon:o,title:N,shortTitle:h})=>a(s,n(r({href:t==="dub.co"?`/features/${m}`:`https://dub.co/features/${m}`},t!=="dub.co"&&{onClick:()=>{l.track("Referred from custom domain",{domain:t,medium:`navbar item (features/${m})`})}}),{className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[a("div",{className:"flex items-center space-x-2",children:[e(o,{className:"h-4 w-4 text-gray-700"}),e("p",{className:"text-sm font-medium text-gray-700",children:h})]}),e("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500",children:N})]}),m))})})]}),P.map(({name:m,slug:o})=>e(i.Item,{asChild:!0,children:e(s,n(r({id:`nav-${o}`,href:t==="dub.co"?`/${o}`:`https://dub.co/${o}`},t!=="dub.co"&&{onClick:()=>{l.track("Referred from custom domain",{domain:t,medium:`navbar item (${o})`})}}),{className:d("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",{"text-black":c===o}),children:m}),o)},o))]}),e(i.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg"})]})]}),a("div",{className:"hidden lg:block",children:[e(s,n(r({href:`${b}/login`},t!=="dub.co"&&{onClick:()=>{l.track("Referred from custom domain",{domain:t,medium:"navbar item (login)"})}}),{className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",children:"Log in"})),e(s,n(r({href:`${b}/register`},t!=="dub.co"&&{onClick:()=>{l.track("Referred from custom domain",{domain:t,medium:"navbar item (signup)"})}}),{className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Sign Up"}))]})]})}))})}export{P as a,A as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as c}from"./chunk-NHHVF35L.mjs";import{a as m,b as d}from"./chunk-HZBYDQAF.mjs";import{nFormatter as x,timeAgo as g}from"@dub/utils";import*as a from"@radix-ui/react-tooltip";import{HelpCircle as f}from"lucide-react";import u from"next/link";import{Drawer as n}from"vaul";import{jsx as t,jsxs as o}from"react/jsx-runtime";function p({children:r,content:e,fullWidth:i}){let{isMobile:l}=c();return l?o(n.Root,{children:[t(n.Trigger,{className:`${i?"w-full":"inline-flex"} md:hidden`,onClick:s=>{s.stopPropagation()},children:r}),t(n.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),o(n.Portal,{children:[o(n.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),t("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white align-middle shadow-xl",children:typeof e=="string"?t("span",{className:"block text-center text-sm text-gray-700",children:e}):e})]}),t(n.Overlay,{})]})]}):t(a.Provider,{delayDuration:100,children:o(a.Root,{children:[t(a.Trigger,{className:"md:inline-flex",asChild:!0,children:r}),t(a.Content,{sideOffset:8,side:"top",className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-md border border-gray-200 bg-white shadow-md md:block",children:typeof e=="string"?t("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:e}):e})]})})}function N({title:r,cta:e,href:i,target:l,onClick:s}){return o("div",{className:"flex flex-col items-center space-y-3 p-4 text-center md:max-w-xs",children:[t("p",{className:"text-sm text-gray-700",children:r}),e&&(i?t(u,d(m({href:i},l?{target:l}:{}),{className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",children:e})):s?t("button",{type:"button",className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",onClick:s,children:e}):null)]})}function T({title:r,cta:e,href:i}){return o("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[r," ",t("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:e})]})}function k({content:r}){return t(p,{content:r,children:t(f,{className:"h-4 w-4 text-gray-500"})})}function P({value:r,unit:e="total clicks",children:i,lastClicked:l}){return(!r||r<1e3)&&!l?i:t(p,{content:o("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[o("p",{className:"text-sm font-semibold text-gray-700",children:[x(r||0,{full:!0})," ",e]}),l&&o("p",{className:"mt-1 text-xs text-gray-500",children:["Last clicked ",g(l,{withAgo:!0})]})]}),children:i})}export{p as a,N as b,T as c,k as d,P as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as e,c as a}from"./chunk-HZBYDQAF.mjs";import{cn as n}from"@dub/utils";import{cva as b}from"class-variance-authority";import{jsx as l}from"react/jsx-runtime";var d=b("max-w-fit rounded-full border px-2 py-px text-xs font-medium capitalize",{variants:{variant:{default:"border-gray-400 text-gray-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",black:"border-black bg-black text-white",gray:"border-gray-400 bg-gray-400 text-white",neutral:"border-gray-400 text-gray-500"}},defaultVariants:{variant:"neutral"}});function u(g){var t=g,{className:r,variant:o}=t,i=a(t,["className","variant"]);return l("span",e({className:n(d({variant:o}),r)},i))}export{d as a,u as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as n}from"./chunk-4Y22ZONT.mjs";import{cn as a}from"@dub/utils";import*as t from"@radix-ui/react-switch";import{jsx as e}from"react/jsx-runtime";function f({fn:s,trackDimensions:c,thumbDimensions:l,thumbTranslate:i,checked:d=!0,disabled:r=!1,disabledTooltip:o}){return o?e(n,{content:o,children:e("div",{className:"radix-state-checked:bg-gray-300 relative inline-flex h-4 w-8 flex-shrink-0 cursor-not-allowed rounded-full border-2 border-transparent bg-gray-200",children:e("div",{className:"h-3 w-3 transform rounded-full bg-white shadow-lg"})})}):e(t.Root,{checked:d,name:"switch",onCheckedChange:u=>s(u),disabled:r,className:a(r?"cursor-not-allowed bg-gray-300":"radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 cursor-pointer focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","relative inline-flex h-4 w-8 flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out",c),children:e(t.Thumb,{className:a(`radix-state-checked:${i}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",l,i)})})}export{f as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as n}from"./chunk-CMCBEA3Q.mjs";import{cn as x}from"@dub/utils";import{useMemo as y,useState as i}from"react";import{jsx as e,jsxs as r}from"react/jsx-runtime";function T({title:m,description:u,inputData:t,helpText:g,buttonText:c="Save Changes",disabledTooltip:s,handleSubmit:f}){let[a,b]=i(t.defaultValue),[l,d]=i(!1),p=y(()=>l||!a||a===t.defaultValue,[l,a,t.defaultValue]);return r("form",{onSubmit:async o=>{o.preventDefault(),d(!0),await f({[t.name]:a}),d(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[r("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[r("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:m}),e("p",{className:"text-sm text-gray-500",children:u})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>b(o.target.value),className:x("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),r("div",{className:"flex items-center justify-between rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[e("p",{className:"text-sm text-gray-500",children:g}),e("div",{children:e(n,{text:c,loading:l,disabled:p,disabledTooltip:s})})]})]})}export{T as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as c}from"./chunk-4Y22ZONT.mjs";import{a as u}from"./chunk-PPR7AQWS.mjs";import{a as l,b as d,c as b}from"./chunk-HZBYDQAF.mjs";import{cn as m}from"@dub/utils";import{jsx as t,jsxs as g}from"react/jsx-runtime";function p(h){var a=h,{text:n,variant:r="primary",loading:o,icon:i,disabledTooltip:s}=a,e=b(a,["text","variant","loading","icon","disabledTooltip"]);return s?t(c,{content:s,fullWidth:!0,children:t("div",{className:"flex h-10 w-full cursor-not-allowed items-center justify-center rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",children:t("p",{children:n})})}):g("button",d(l({type:e.onClick?"button":"submit",className:m("flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all focus:outline-none",e.disabled||o?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":r==="primary","border-gray-200 bg-white text-gray-500 hover:border-black hover:text-black":r==="secondary","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":r==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":r==="danger"},e.className),disabled:e.disabled||o},e),{children:[o?t(u,{}):i||null,t("p",{children:n})]}))}export{p as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l}from"./chunk-OCYEAVPN.mjs";import{a}from"./chunk-PPR7AQWS.mjs";import{cn as d}from"@dub/utils";import{jsx as t,jsxs as b}from"react/jsx-runtime";function g({text:n,variant:r="primary",loading:o,icon:i,disabledTooltip:s,...e}){return s?t(l,{content:s,fullWidth:!0,children:t("div",{className:"flex h-10 w-full cursor-not-allowed items-center justify-center rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",children:t("p",{children:n})})}):b("button",{type:e.onClick?"button":"submit",className:d("flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all focus:outline-none",e.disabled||o?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":r==="primary","border-gray-200 bg-white text-gray-500 hover:border-black hover:text-black":r==="secondary","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":r==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":r==="danger"},e.className),disabled:e.disabled||o,...e,children:[o?t(a,{}):i||null,t("p",{children:n})]})}export{g as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
var o=Object.defineProperty,p=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;var j=(a,c,b)=>c in a?o(a,c,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[c]=b,r=(a,c)=>{for(var b in c||(c={}))k.call(c,b)&&j(a,b,c[b]);if(f)for(var b of f(c))l.call(c,b)&&j(a,b,c[b]);return a},s=(a,c)=>p(a,q(c));var t=(a,c)=>{var b={};for(var d in a)k.call(a,d)&&c.indexOf(d)<0&&(b[d]=a[d]);if(a!=null&&f)for(var d of f(a))c.indexOf(d)<0&&l.call(a,d)&&(b[d]=a[d]);return b};var u=(a,c,b)=>new Promise((d,i)=>{var m=e=>{try{g(b.next(e))}catch(h){i(h)}},n=e=>{try{g(b.throw(e))}catch(h){i(h)}},g=e=>e.done?d(e.value):Promise.resolve(e.value).then(m,n);g((b=b.apply(a,c)).next())});export{r as a,s as b,t as c,u as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as u}from"./chunk-3Y5WGFFC.mjs";import{a as c}from"./chunk-573R3EDL.mjs";import{APP_DOMAIN as f,cn as r}from"@dub/utils";import{ChevronDown as g,Menu as N,X as y}from"lucide-react";import l from"next/link";import{useParams as h}from"next/navigation";import{useState as p}from"react";import{Fragment as v,jsx as e,jsxs as s}from"react/jsx-runtime";function C(){let{domain:i="dub.co"}=h(),[o,n]=p(!1),[m,d]=p(!1);return s(v,{children:[e("button",{onClick:()=>n(!o),className:r("absolute 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",o&&"hover:bg-gray-100 active:bg-gray-200"),children:o?e(y,{className:"h-5 w-5 text-gray-600"}):e(N,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:r("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16",o&&"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:()=>d(!m),children:[e("p",{className:"font-semibold",children:"Features"}),e(g,{className:r("h-5 w-5 text-gray-500 transition-all",m&&"rotate-180")})]}),m&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:c.map(({slug:a,icon:t,shortTitle:b})=>s(l,{href:i==="dub.co"?`/features/${a}`:`https://dub.co/features/${a}?utm_source=${i}&utm_medium=referral&utm_campaign=custom-domain`,onClick:()=>n(!1),className:"flex w-full space-x-2",children:[e(t,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:b})]},a))})]}),u.map(({name:a,slug:t})=>e("li",{className:"py-3",children:e(l,{href:i==="dub.co"?`/${t}`:`https://dub.co/${t}?utm_source=${i}&utm_medium=referral&utm_campaign=custom-domain`,onClick:()=>n(!1),className:"flex w-full font-semibold capitalize",children:a})},t)),e("li",{className:"py-3",children:e(l,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(l,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})})]})}export{C as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as u}from"./chunk-BZY4AURF.mjs";import{a as n,b as i,d as m}from"./chunk-HZBYDQAF.mjs";import{cn as N}from"@dub/utils";import{useMemo as h,useState as g}from"react";import{jsx as e,jsxs as r}from"react/jsx-runtime";function H({title:c,description:f,inputData:t,helpText:b,buttonText:p="Save Changes",disabledTooltip:s,handleSubmit:x}){let[a,y]=g(t.defaultValue),[l,d]=g(!1),v=h(()=>l||!a||a===t.defaultValue,[l,a,t.defaultValue]);return r("form",{onSubmit:o=>m(this,null,function*(){o.preventDefault(),d(!0),yield x({[t.name]:a}),d(!1)}),className:"rounded-lg border border-gray-200 bg-white",children:[r("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[r("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:c}),e("p",{className:"text-sm text-gray-500",children:f})]}),typeof t.defaultValue=="string"?e("input",i(n({},t),{type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:N("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":s})})):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),r("div",{className:"flex items-center justify-between rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[e("p",{className:"text-sm text-gray-500",children:b}),e("div",{children:e(u,{text:p,loading:l,disabled:v,disabledTooltip:s})})]})]})}export{H as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as n}from"./chunk-OCYEAVPN.mjs";import{cn as a}from"@dub/utils";import*as t from"@radix-ui/react-switch";import{jsx as e}from"react/jsx-runtime";function f({fn:s,trackDimensions:c,thumbDimensions:l,thumbTranslate:i,checked:d=!0,disabled:r=!1,disabledTooltip:o}){return o?e(n,{content:o,children:e("div",{className:"radix-state-checked:bg-gray-300 relative inline-flex h-4 w-8 flex-shrink-0 cursor-not-allowed rounded-full border-2 border-transparent bg-gray-200",children:e("div",{className:"h-3 w-3 transform rounded-full bg-white shadow-lg"})})}):e(t.Root,{checked:d,name:"switch",onCheckedChange:u=>s(u),disabled:r,className:a(r?"cursor-not-allowed bg-gray-300":"radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 cursor-pointer focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","relative inline-flex h-4 w-8 flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out",c),children:e(t.Thumb,{className:a(`radix-state-checked:${i}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",l,i)})})}export{f as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as m}from"./chunk-NHHVF35L.mjs";import{nFormatter as c,timeAgo as p}from"@dub/utils";import*as a from"@radix-ui/react-tooltip";import{HelpCircle as x}from"lucide-react";import g from"next/link";import{Drawer as n}from"vaul";import{jsx as t,jsxs as o}from"react/jsx-runtime";function d({children:r,content:e,fullWidth:i}){let{isMobile:l}=m();return l?o(n.Root,{children:[t(n.Trigger,{className:`${i?"w-full":"inline-flex"} md:hidden`,onClick:s=>{s.stopPropagation()},children:r}),t(n.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),o(n.Portal,{children:[o(n.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),t("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white align-middle shadow-xl",children:typeof e=="string"?t("span",{className:"block text-center text-sm text-gray-700",children:e}):e})]}),t(n.Overlay,{})]})]}):t(a.Provider,{delayDuration:100,children:o(a.Root,{children:[t(a.Trigger,{className:"md:inline-flex",asChild:!0,children:r}),t(a.Content,{sideOffset:8,side:"top",className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-md border border-gray-200 bg-white shadow-md md:block",children:typeof e=="string"?t("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:e}):e})]})})}function h({title:r,cta:e,href:i,target:l,onClick:s}){return o("div",{className:"flex flex-col items-center space-y-3 p-4 text-center md:max-w-xs",children:[t("p",{className:"text-sm text-gray-700",children:r}),e&&(i?t(g,{href:i,...l?{target:l}:{},className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",children:e}):s?t("button",{type:"button",className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",onClick:s,children:e}):null)]})}function w({title:r,cta:e,href:i}){return o("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[r," ",t("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:e})]})}function N({content:r}){return t(d,{content:r,children:t(x,{className:"h-4 w-4 text-gray-500"})})}function T({value:r,unit:e="total clicks",children:i,lastClicked:l}){return(!r||r<1e3)&&!l?i:t(d,{content:o("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[o("p",{className:"text-sm font-semibold text-gray-700",children:[c(r||0,{full:!0})," ",e]}),l&&o("p",{className:"mt-1 text-xs text-gray-500",children:["Last clicked ",p(l,{withAgo:!0})]})]}),children:i})}export{d as a,h as b,w as c,N as d,T as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as f}from"./chunk-573R3EDL.mjs";import{a as h}from"./chunk-PPNWHWNQ.mjs";import{a as p}from"./chunk-JLET4OCX.mjs";import{a as g}from"./chunk-5EWSH7PD.mjs";import{a as c}from"./chunk-WURMVTJP.mjs";import{a as d}from"./chunk-T4YFARK5.mjs";import{a as o,b as m}from"./chunk-HZBYDQAF.mjs";import{ALL_TOOLS as u}from"@dub/utils";import l from"@vercel/analytics";import i from"next/link";import{useParams as y}from"next/navigation";import{jsx as e,jsxs as r}from"react/jsx-runtime";var n={features:f.map(({shortTitle:t,slug:s})=>({name:t,href:`/features/${s}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customer Stories",href:"/customers"},{name:"Help Center",href:"/help"},{name:"Pricing",href:"/pricing"}],tools:u.map(({name:t,slug:s})=>({name:t,href:`/tools/${s}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}]};function C(){let{domain:t="dub.co"}=y(),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-5 xl:gap-8",children:[r("div",{className:"space-y-8 xl:col-span-2",children:[r(i,m(o({href:s("/")},t!=="dub.co"&&{onClick:()=>{l.track("Referred from custom domain",{domain:t,medium:"footer item (logo)"})}}),{children:[e("span",{className:"sr-only",children:"Dub.co Logo"}),e(c,{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(p,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://github.com/steven-tey/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(d,{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(g,{className:"h-5 w-5",fill:"#52525B"})]})]})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-8 xl:col-span-3 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2 md:gap-8",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:n.features.map(a=>e("li",{children:e(i,m(o({href:s(a.href)},t!=="dub.co"&&{onClick:()=>{l.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:n.product.map(a=>e("li",{children:e(i,m(o({href:s(a.href)},t!=="dub.co"&&{onClick:()=>{l.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 md:gap-8",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(a=>e("li",{children:e(i,m(o({href:s(a.href)},t!=="dub.co"&&{onClick:()=>{l.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:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(a=>e("li",{children:e(i,m(o({href:s(a.href)},t!=="dub.co"&&{onClick:()=>{l.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()," Dub.co"]})})]})})}export{C as a};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{SHOW_BACKGROUND_SEGMENTS as e}from"@dub/utils";import{useSelectedLayoutSegment as r}from"next/navigation";import{jsx as n,jsxs as i}from"react/jsx-runtime";function p(){let a;try{a=r()}catch(d){}return!a||e.includes(a)?i("div",{style:t.backgroundMain,children:[n("div",{style:t.backgroundMainBefore}),n("div",{style:t.backgroundMainAfter}),n("div",{style:t.backgroundContent})]}):null}var t={backgroundMain:{width:"100vw",minHeight:"100vh",position:"fixed",zIndex:-1,display:"flex",justifyContent:"center",padding:"120px 24px 160px 24px",pointerEvents:"none"},backgroundMainBefore:{background:"radial-gradient(circle, rgba(2, 0, 36, 0) 0, #fafafa 100%)",position:"absolute",content:'""',zIndex:2,width:"100%",height:"100%",top:0},backgroundMainAfter:{content:'""',backgroundImage:"url(https://d2vwwcvoksz7ty.cloudfront.net/grid.svg)",zIndex:1,position:"absolute",width:"100%",height:"100%",top:0,opacity:.4,filter:"invert(1)"},backgroundContent:{zIndex:3,width:"100%",maxWidth:"640px",backgroundImage:`radial-gradient(at 27% 37%, hsla(215, 98%, 61%, 1) 0px, transparent 0%),
|
|
3
|
+
radial-gradient(at 97% 21%, hsla(125, 98%, 72%, 1) 0px, transparent 50%),
|
|
4
|
+
radial-gradient(at 52% 99%, hsla(354, 98%, 61%, 1) 0px, transparent 50%),
|
|
5
|
+
radial-gradient(at 10% 29%, hsla(256, 96%, 67%, 1) 0px, transparent 50%),
|
|
6
|
+
radial-gradient(at 97% 96%, hsla(38, 60%, 74%, 1) 0px, transparent 50%),
|
|
7
|
+
radial-gradient(at 33% 50%, hsla(222, 67%, 73%, 1) 0px, transparent 50%),
|
|
8
|
+
radial-gradient(at 79% 53%, hsla(343, 68%, 79%, 1) 0px, transparent 50%)`,position:"absolute",height:"100%",filter:"blur(100px) saturate(150%)",top:"80px",opacity:.15}};export{p as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a,b as f,c as m}from"./chunk-HZBYDQAF.mjs";import{cn as p}from"@dub/utils";import*as e from"@radix-ui/react-accordion";import{ChevronDown as l}from"lucide-react";import*as s from"react";import{jsx as d,jsxs as R}from"react/jsx-runtime";var C=e.Root,A=s.forwardRef((n,i)=>{var c=n,{className:o}=c,t=m(c,["className"]);return d(e.Item,a({ref:i,className:p("border-b border-b-slate-200 py-3 last:border-none",o)},t))});A.displayName="AccordionItem";var v=s.forwardRef((c,n)=>{var r=c,{className:o,children:t}=r,i=m(r,["className","children"]);return d(e.Header,{className:"flex",children:R(e.Trigger,f(a({ref:n,className:p("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg [&[data-state=open]>svg]:rotate-180",o)},i),{children:[t,d(l,{className:"h-5 w-5 transition-transform duration-300"})]}))})});v.displayName=e.Trigger.displayName;var P=s.forwardRef((c,n)=>{var r=c,{className:o,children:t}=r,i=m(r,["className","children"]);return d(e.Content,f(a({ref:n,className:p("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",o)},i),{children:t}))});P.displayName=e.Content.displayName;export{C as a,A as b,v as c,P as d};
|
package/dist/copy-button.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-C4PESNHJ.mjs";import"./chunk-PHU6NRSR.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-JLET4OCX.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-5EWSH7PD.mjs";import"./chunk-6DKNMNDW.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-PPR7AQWS.mjs";import"./chunk-QP2EHAF7.mjs";import"./chunk-WURMVTJP.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-Z5P2KHPP.mjs";import"./chunk-EY55E5DB.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-OYEGFR5W.mjs";export{a as CopyButton};
|
|
2
|
+
"use client";import{a}from"./chunk-C4PESNHJ.mjs";import"./chunk-PHU6NRSR.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-JLET4OCX.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-5EWSH7PD.mjs";import"./chunk-6DKNMNDW.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-PPR7AQWS.mjs";import"./chunk-QP2EHAF7.mjs";import"./chunk-WURMVTJP.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-Z5P2KHPP.mjs";import"./chunk-EY55E5DB.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-OYEGFR5W.mjs";import"./chunk-HZBYDQAF.mjs";export{a as CopyButton};
|
package/dist/footer.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
"use client";import{a}from"./chunk-OIIHWZYP.mjs";import"./chunk-573R3EDL.mjs";import"./chunk-PPNWHWNQ.mjs";import"./chunk-PHU6NRSR.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-JLET4OCX.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-5EWSH7PD.mjs";import"./chunk-6DKNMNDW.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-PPR7AQWS.mjs";import"./chunk-QP2EHAF7.mjs";import"./chunk-WURMVTJP.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-Z5P2KHPP.mjs";import"./chunk-EY55E5DB.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-OYEGFR5W.mjs";import"./chunk-HZBYDQAF.mjs";export{a as Footer};
|
package/dist/form.d.mts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
declare function Form({ title, description, inputData, helpText, buttonText, disabledTooltip, handleSubmit, }: {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
inputData: InputHTMLAttributes<HTMLInputElement>;
|
|
8
|
+
helpText?: string;
|
|
9
|
+
buttonText?: string;
|
|
10
|
+
disabledTooltip?: string | ReactNode;
|
|
11
|
+
handleSubmit: (data: any) => Promise<any>;
|
|
12
|
+
}): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
export { Form };
|
package/dist/form.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-JF4XLNZS.mjs";import"./chunk-BZY4AURF.mjs";import"./chunk-4Y22ZONT.mjs";import"./chunk-NHHVF35L.mjs";import"./chunk-PHU6NRSR.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-JLET4OCX.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-5EWSH7PD.mjs";import"./chunk-6DKNMNDW.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-PPR7AQWS.mjs";import"./chunk-QP2EHAF7.mjs";import"./chunk-WURMVTJP.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-Z5P2KHPP.mjs";import"./chunk-EY55E5DB.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-OYEGFR5W.mjs";import"./chunk-HZBYDQAF.mjs";export{a as Form};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
interface MenuIconProps {
|
|
5
|
+
icon: ReactNode;
|
|
6
|
+
text: string;
|
|
7
|
+
}
|
|
8
|
+
declare function IconMenu({ icon, text }: MenuIconProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { IconMenu };
|
package/dist/icon-menu.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-Z4MSMGYC.mjs";export{a as IconMenu};
|
|
2
|
+
import{a}from"./chunk-Z4MSMGYC.mjs";import"./chunk-HZBYDQAF.mjs";export{a as IconMenu};
|
package/dist/icons/copy.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"../chunk-Z5P2KHPP.mjs";export{a as default};
|
|
2
|
+
import{a}from"../chunk-Z5P2KHPP.mjs";import"../chunk-HZBYDQAF.mjs";export{a as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"../chunk-EY55E5DB.mjs";export{a as default};
|
|
2
|
+
import{a}from"../chunk-EY55E5DB.mjs";import"../chunk-HZBYDQAF.mjs";export{a as default};
|
package/dist/icons/facebook.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"../chunk-MURAUI3W.mjs";export{a as default};
|
|
2
|
+
import{a}from"../chunk-MURAUI3W.mjs";import"../chunk-HZBYDQAF.mjs";export{a as default};
|
package/dist/icons/github.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"../chunk-T4YFARK5.mjs";export{a as default};
|
|
2
|
+
import{a}from"../chunk-T4YFARK5.mjs";import"../chunk-HZBYDQAF.mjs";export{a as default};
|
package/dist/icons/google.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"../chunk-OYEGFR5W.mjs";export{a as default};
|
|
2
|
+
import{a}from"../chunk-OYEGFR5W.mjs";import"../chunk-HZBYDQAF.mjs";export{a as default};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { default as Copy } from './copy.mjs';
|
|
2
|
+
export { default as ExpandingArrow } from './expanding-arrow.mjs';
|
|
3
|
+
export { default as Magic } from './magic.mjs';
|
|
4
|
+
export { default as Photo } from './photo.mjs';
|
|
5
|
+
export { default as Tick } from './tick.mjs';
|
|
6
|
+
export { default as LoadingCircle } from './loading-circle.mjs';
|
|
7
|
+
export { default as LoadingDots } from './loading-dots.mjs';
|
|
8
|
+
export { default as LoadingSpinner } from './loading-spinner.mjs';
|
|
9
|
+
export { default as Logo } from './logo.mjs';
|
|
10
|
+
export { default as LogoType } from './logotype.mjs';
|
|
11
|
+
export { default as Facebook } from './facebook.mjs';
|
|
12
|
+
export { default as Github } from './github.mjs';
|
|
13
|
+
export { default as Google } from './google.mjs';
|
|
14
|
+
export { default as LinkedIn } from './linkedin.mjs';
|
|
15
|
+
export { default as Twitter } from './twitter.mjs';
|
|
16
|
+
export { default as Unsplash } from './unsplash.mjs';
|
|
17
|
+
import 'react/jsx-runtime';
|
package/dist/icons/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import"../chunk-PHU6NRSR.mjs";import{a as d}from"../chunk-2TGXECZQ.mjs";import{a as e}from"../chunk-EHYVEIOL.mjs";import{a as o}from"../chunk-JLET4OCX.mjs";import{a as p}from"../chunk-GSQUGPJ2.mjs";import{a as n}from"../chunk-5EWSH7PD.mjs";import{a as f}from"../chunk-6DKNMNDW.mjs";import{a as g}from"../chunk-QA2KCGIR.mjs";import{a as h}from"../chunk-PPR7AQWS.mjs";import{a as i}from"../chunk-QP2EHAF7.mjs";import{a as j}from"../chunk-WURMVTJP.mjs";import{a as c}from"../chunk-YURUGH4S.mjs";import{a}from"../chunk-Z5P2KHPP.mjs";import{a as b}from"../chunk-EY55E5DB.mjs";import{a as k}from"../chunk-MURAUI3W.mjs";import{a as l}from"../chunk-T4YFARK5.mjs";import{a as m}from"../chunk-OYEGFR5W.mjs";export{a as Copy,b as ExpandingArrow,k as Facebook,l as Github,m as Google,n as LinkedIn,f as LoadingCircle,g as LoadingDots,h as LoadingSpinner,i as Logo,j as LogoType,c as Magic,d as Photo,e as Tick,o as Twitter,p as Unsplash};
|
|
2
|
+
import"../chunk-PHU6NRSR.mjs";import{a as d}from"../chunk-2TGXECZQ.mjs";import{a as e}from"../chunk-EHYVEIOL.mjs";import{a as o}from"../chunk-JLET4OCX.mjs";import{a as p}from"../chunk-GSQUGPJ2.mjs";import{a as n}from"../chunk-5EWSH7PD.mjs";import{a as f}from"../chunk-6DKNMNDW.mjs";import{a as g}from"../chunk-QA2KCGIR.mjs";import{a as h}from"../chunk-PPR7AQWS.mjs";import{a as i}from"../chunk-QP2EHAF7.mjs";import{a as j}from"../chunk-WURMVTJP.mjs";import{a as c}from"../chunk-YURUGH4S.mjs";import{a}from"../chunk-Z5P2KHPP.mjs";import{a as b}from"../chunk-EY55E5DB.mjs";import{a as k}from"../chunk-MURAUI3W.mjs";import{a as l}from"../chunk-T4YFARK5.mjs";import{a as m}from"../chunk-OYEGFR5W.mjs";import"../chunk-HZBYDQAF.mjs";export{a as Copy,b as ExpandingArrow,k as Facebook,l as Github,m as Google,n as LinkedIn,f as LoadingCircle,g as LoadingDots,h as LoadingSpinner,i as Logo,j as LogoType,c as Magic,d as Photo,e as Tick,o as Twitter,p as Unsplash};
|
package/dist/icons/linkedin.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"../chunk-5EWSH7PD.mjs";export{a as default};
|
|
2
|
+
import{a}from"../chunk-5EWSH7PD.mjs";import"../chunk-HZBYDQAF.mjs";export{a as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"../chunk-6DKNMNDW.mjs";export{a as default};
|
|
2
|
+
import{a}from"../chunk-6DKNMNDW.mjs";import"../chunk-HZBYDQAF.mjs";export{a as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"../chunk-QA2KCGIR.mjs";export{a as default};
|
|
2
|
+
import{a}from"../chunk-QA2KCGIR.mjs";import"../chunk-HZBYDQAF.mjs";export{a as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"../chunk-PPR7AQWS.mjs";export{a as default};
|
|
2
|
+
import{a}from"../chunk-PPR7AQWS.mjs";import"../chunk-HZBYDQAF.mjs";export{a as default};
|
package/dist/icons/logo.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"../chunk-QP2EHAF7.mjs";export{a as default};
|
|
2
|
+
import{a}from"../chunk-QP2EHAF7.mjs";import"../chunk-HZBYDQAF.mjs";export{a as default};
|
package/dist/icons/logotype.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"../chunk-WURMVTJP.mjs";export{a as default};
|
|
2
|
+
import{a}from"../chunk-WURMVTJP.mjs";import"../chunk-HZBYDQAF.mjs";export{a as default};
|
package/dist/icons/magic.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"../chunk-YURUGH4S.mjs";export{a as default};
|
|
2
|
+
import{a}from"../chunk-YURUGH4S.mjs";import"../chunk-HZBYDQAF.mjs";export{a as default};
|
package/dist/icons/photo.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"../chunk-2TGXECZQ.mjs";export{a as default};
|
|
2
|
+
import{a}from"../chunk-2TGXECZQ.mjs";import"../chunk-HZBYDQAF.mjs";export{a as default};
|
package/dist/icons/tick.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"../chunk-EHYVEIOL.mjs";export{a as default};
|
|
2
|
+
import{a}from"../chunk-EHYVEIOL.mjs";import"../chunk-HZBYDQAF.mjs";export{a as default};
|
package/dist/icons/twitter.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"../chunk-JLET4OCX.mjs";export{a as default};
|
|
2
|
+
import{a}from"../chunk-JLET4OCX.mjs";import"../chunk-HZBYDQAF.mjs";export{a as default};
|
package/dist/icons/unsplash.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"../chunk-GSQUGPJ2.mjs";export{a as default};
|
|
2
|
+
import{a}from"../chunk-GSQUGPJ2.mjs";import"../chunk-HZBYDQAF.mjs";export{a as default};
|