import * as AccordionPrimitive from '@radix-ui/react-accordion'; import * as react from 'react'; import react__default, { ComponentType, SVGProps, ReactNode, PropsWithChildren, HTMLAttributes, ButtonHTMLAttributes, WheelEventHandler, ReactElement, Dispatch, SetStateAction, InputHTMLAttributes, ElementType, ComponentPropsWithoutRef, ComponentProps, MouseEvent as MouseEvent$1, KeyboardEvent as KeyboardEvent$1, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react'; import * as react_jsx_runtime from 'react/jsx-runtime'; import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types'; import { VariantProps } from 'class-variance-authority'; import Autoplay from 'embla-carousel-autoplay'; import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react'; import * as CheckboxPrimitive from '@radix-ui/react-checkbox'; import { Icon, GlobePointer, SatelliteDish, Flag6, InputSearch, Page2, Gift, DubLinksIcon, Toggle2Fill, Typescript, LifeRingFill, Twitter } from './icons/index.js'; export { Africa, Amazon, AndroidLogo, Anthropic, Apple, AppleLogo, ArrowBoldUp, ArrowRight, ArrowTrendUp, ArrowTurnLeft, ArrowTurnRight2, ArrowUpRight, ArrowUpRight2, ArrowsOppositeDirectionX, ArrowsOppositeDirectionY, Asia, AtSign, BadgeCheck, BadgeCheck2Fill, Beehiiv, Bell, Bing, Blog, Bolt, BoltFill, Book2, Book2Fill, Book2Small, BookOpen, Books2, BoxArchive, BracketsCurly, BriefcaseFill, Brush, BulletList, BulletListFill, Calculator, Calendar6, CalendarDays, CalendarIcon, CalendarRefresh, CardAmex, CardDiscover, CardMastercard, CardVisa, Cards, CaretUpFill, ChartActivity2, ChartArea2, ChartLine, ChatGPT, Check, Check2, CheckboxCheckedFill, CheckboxUnchecked, ChevronLeft, ChevronRight, ChevronUp, CircleArrowRight, CircleCheck, CircleCheckFill, CircleDollar, CircleDollar3, CircleDollarOut, CircleDotted, CircleHalfDottedCheck, CircleHalfDottedClock, CircleInfo, CirclePercentage, CirclePlay, CirclePlayFill, CircleQuestion, CircleUser, CircleWarning, CircleXmark, Circles, Circles3, Cloud, CloudUpload, Code, ColorPalette2, ConnectedDots, ConnectedDots4, ConnectedDotsFill, Connections3, Copy, CreditCard, Crosshairs3, Crown, CrownSmall, Cube, CubeSettings, CubeSettingsFill, CurrencyDollar, CursorRays, DatabaseKey, Desktop, DiamondTurnRight, DiamondTurnRightFill, Directions, Discount, Dots, Download, DubAnalyticsIcon, DubApiIcon, DubCraftedShield, DubLinksIcon, DubPartnersIcon, DubProduct, DubProductIcon, Duplicate, Earth, EarthPosition, Envelope, EnvelopeAlert, EnvelopeArrowRight, EnvelopeBan, EnvelopeCheck, EnvelopeFill, EnvelopeOpen, Europe, ExpandingArrow, Eye, EyeSlash, FaceSmile, Facebook, FeatherFill, Figma, FileContent, FilePen, FileSend, FileZip2, Filter2, FilterBars, Flag, Flag2, Flag6, FlagWavy, Flask, FlaskSmall, Folder, Folder5, FolderBookmark, FolderLock, FolderPlus, FolderShield, GamingConsole, Gauge6, Gear, Gear2, Gear3, Gem, Gift, GiftFill, GitHubEnhanced, Github, Globe, Globe2, GlobePointer, GlobeSearch, Go, Google, GoogleEnhanced, GreekTemple, GridIcon, GridLayoutRows, GridPlus, GripDotsVertical, Heading1, Heading2, Headset, Heart, HeartFill, HexadecagonStar, History, Hyperlink, IOSAppStore, Icon, Icosahedron, ImageIcon, Incognito, InfinityIcon, InputField, InputPassword, InputPasswordPointer, InputSearch, Instagram, InvoiceDollar, Key, LayoutSidebar, License, LifeRing, LifeRingFill, LinesY, Link4, LinkBroken, LinkedIn, LoadingCircle, LoadingDots, LoadingSpinner, LocationPin, Lock, LockFill, LockSmall, Magic, Magnifier, MapPosition, MarkdownIcon, MarketingTarget, MatrixLines, MediaPause, MediaPlay, Megaphone, Menu3, MessageSmile, MicrophoneFill, Minus, MobilePhone, MoneyBill, MoneyBill2, MoneyBills2, Msg, Msgs, MsgsDotted, MsgsFill, Nodes4, NorthAmerica, Note, NucleoPhoto, Oceania, OfficeBuilding, OpenAI, PLAN_FEATURE_ICONS, Page2, Paintbrush, Palette2, PaperPlane, Paypal, Pen2, PenWriting, PercentageArrowDown, Photo, Php, Plug2, Plus, Plus2, Post, ProductHunt, Pyramid, Python, QRCode, Receipt2, Reddit, ReferredVia, Refresh2, Robot, Ruby, SatelliteDish, ScanText, Scribble, ShieldAlert, ShieldCheck, ShieldKeyhole, ShieldSlash, ShieldUser, Shop, Shuffle, Sitemap, Slack, SlackColorful, Sliders, SortAlphaAscending, SortAlphaDescending, SortOrder, SouthAmerica, Sparkle3, Spotify, SquareChart, SquareCheck, SquareLayoutGrid5, SquareLayoutGrid6, SquareUserSparkle2, SquareXmark, Stablecoin, StackY3, Star, StarFill, Stars2, StripeIcon, StripeLink, Success, Suitcase, TV, TableIcon, TableRows2, Tablet, Tag, Tags, TextBold, TextItalic, TextStrike, Tick, TikTok, Timer2, Toggle2Fill, Toggles, Trash, TriangleWarning, Trophy, Twitter, Typescript, UiCard, Unsplash, User, UserArrowLeft, UserArrowRight, UserCheck, UserClock, UserCrown, UserDelete, UserFocus, UserMinus, UserPlus, UserSearch, UserXmark, Users, Users2, Users6, UsersFill, UsersSettings, Veriff, VerifiedBadge, Versions2, Views, Watch, Webhook, Window, WindowSearch, WindowSettings, Workflow, Xmark, YouTube } from './icons/index.js'; import * as PopoverPrimitive from '@radix-ui/react-popover'; import { DayPickerSingleProps, DayPickerRangeProps, Matcher } from 'react-day-picker'; export { Matcher } from 'react-day-picker'; import { Locale } from 'date-fns'; import { FilterOperator } from '@dub/utils'; import { LucideIcon } from 'lucide-react'; import * as LabelPrimitive from '@radix-ui/react-label'; import { Drawer, ContentProps } from 'vaul'; import * as _tanstack_react_table from '@tanstack/react-table'; import { PaginationState as PaginationState$1, Table as Table$1, ColumnDef, ColumnPinningState, Cell, ColumnResizeMode, VisibilityState, Row, RowSelectionState } from '@tanstack/react-table'; import * as RadioGroupPrimitive from '@radix-ui/react-radio-group'; import { Editor, useEditor, EditorContentProps } from '@tiptap/react'; import * as TooltipPrimitive from '@radix-ui/react-tooltip'; import { useRouter, ReadonlyURLSearchParams } from 'next/navigation'; import Cookies from 'js-cookie'; import { AppRouterInstance } from 'next/dist/shared/lib/app-router-context.shared-runtime'; import Link from 'next/link'; import { motion, Variants, MotionNodeOptions } from 'motion/react'; import { ImageProps } from 'next/image'; declare const Accordion: react.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & react.RefAttributes>; declare const AccordionItem: react.ForwardRefExoticComponent, "ref"> & react.RefAttributes>; declare const AccordionTrigger: react.ForwardRefExoticComponent, "ref"> & { variant?: "chevron" | "plus" | undefined; } & react.RefAttributes>; declare const AccordionContent: react.ForwardRefExoticComponent, "ref"> & react.RefAttributes>; type IconComponent = ComponentType>; interface ActivityRingProps { /** Value for the positive/trustworthy side */ positiveValue: number; /** Value for the negative/removed side */ negativeValue: number; /** Size of the ring in pixels (default: 40) */ size?: number; /** Icon to show when positive leads */ positiveIcon?: IconComponent; /** Icon to show when negative leads */ negativeIcon?: IconComponent; /** Icon to show when neutral (tie) */ neutralIcon?: IconComponent; className?: string; } declare function ActivityRing({ positiveValue, negativeValue, size, positiveIcon: PositiveIcon, negativeIcon: NegativeIcon, neutralIcon: NeutralIcon, className, }: ActivityRingProps): react_jsx_runtime.JSX.Element; declare const Alert: react.ForwardRefExoticComponent & VariantProps<(props?: ({ variant?: "default" | "destructive" | null | undefined; } & class_variance_authority_dist_types.ClassProp) | undefined) => string> & react.RefAttributes>; declare const AlertTitle: react.ForwardRefExoticComponent & react.RefAttributes>; declare const AlertDescription: react.ForwardRefExoticComponent & react.RefAttributes>; declare function Avatar({ imageUrl, identifier, className, }: { imageUrl?: string | null; identifier: string; className?: string; }): react_jsx_runtime.JSX.Element; declare const badgeVariants: (props?: ({ variant?: "black" | "blue" | "gray" | "green" | "violet" | "neutral" | "default" | "sky" | "amber" | "blueGradient" | "rainbow" | null | undefined; } & class_variance_authority_dist_types.ClassProp) | undefined) => string; interface BadgeProps$1 extends React.HTMLAttributes, VariantProps { } declare function Badge({ className, variant, ...props }: BadgeProps$1): react_jsx_runtime.JSX.Element; declare const buttonVariants: (props?: ({ variant?: "outline" | "primary" | "secondary" | "success" | "danger" | "danger-outline" | null | undefined; } & class_variance_authority_dist_types.ClassProp) | undefined) => string; interface ButtonProps extends React.ButtonHTMLAttributes, VariantProps { text?: ReactNode | string; textWrapperClassName?: string; shortcutClassName?: string; loading?: boolean; icon?: ReactNode; shortcut?: string; right?: ReactNode; disabledTooltip?: string | ReactNode; } declare const Button: react.ForwardRefExoticComponent>; declare const cardListVariants: (props?: ({ variant?: "compact" | "loose" | null | undefined; loading?: boolean | null | undefined; } & class_variance_authority_dist_types.ClassProp) | undefined) => string; type CardListProps = PropsWithChildren<{ loading?: boolean; className?: string; }> & VariantProps; declare function CardList$1({ variant, loading, className, children, }: CardListProps): react_jsx_runtime.JSX.Element; declare function CardListCard({ outerClassName, innerClassName, children, onClick, onAuxClick, hoverStateEnabled, banner, }: PropsWithChildren<{ outerClassName?: string; innerClassName?: string; onClick?: (e: React.MouseEvent) => void; onAuxClick?: (e: React.MouseEvent) => void; hoverStateEnabled?: boolean; banner?: React.ReactNode; }>): react_jsx_runtime.JSX.Element; declare const CardList: typeof CardList$1 & { Card: typeof CardListCard & { Context: react.Context<{ hovered: boolean; }>; }; Context: react.Context<{ variant: "compact" | "loose" | null | undefined; loading: boolean; }>; }; interface CardSelectorOption { key: string; label: string; description: string; icon?: ReactNode; } interface CardSelectorProps { options: CardSelectorOption[]; value?: string; onChange?: (value: string) => void; className?: string; gridCols?: "1" | "2" | "3"; name?: string; disabled?: boolean; animated?: boolean; } declare function CardSelector({ options, value, onChange, className, gridCols, name, disabled, animated, }: CardSelectorProps): react_jsx_runtime.JSX.Element; declare const AUTOPLAY_DEFAULT_DELAY = 2000; type CarouselApi = UseEmblaCarouselType[1]; type UseCarouselParameters = Parameters; type CarouselOptions = UseCarouselParameters[0]; type CarouselPlugin = UseCarouselParameters[1]; type AutoplayOptions = Parameters[0]; type CarouselProps = { opts?: CarouselOptions; plugins?: CarouselPlugin; orientation?: "horizontal" | "vertical"; autoplay?: boolean | AutoplayOptions; setApi?: (api: CarouselApi) => void; }; type CarouselContextProps = { carouselRef: ReturnType[0]; api: ReturnType[1]; scrollPrev: () => void; scrollNext: () => void; canScrollPrev: boolean; canScrollNext: boolean; } & CarouselProps; declare function useCarousel(): CarouselContextProps; declare function useCarouselActiveIndex(): number; declare const Carousel: react.ForwardRefExoticComponent & CarouselProps & react.RefAttributes>; declare const CarouselContent: react.ForwardRefExoticComponent & react.RefAttributes>; declare const CarouselItem: react.ForwardRefExoticComponent & react.RefAttributes>; declare const CarouselPrevious: react.ForwardRefExoticComponent<{ className?: string | undefined; } & react.RefAttributes>; declare const CarouselNext: react.ForwardRefExoticComponent<{ className?: string | undefined; } & react.RefAttributes>; declare const CarouselNavBar: ({ variant, className, }: VariantProps<(props?: ({ variant?: "simple" | "floating" | null | undefined; } & class_variance_authority_dist_types.ClassProp) | undefined) => string> & { className?: string | undefined; }) => react_jsx_runtime.JSX.Element; declare const CarouselThumbnails: ({ className, ...rest }: HTMLAttributes) => react_jsx_runtime.JSX.Element; declare const CarouselThumbnail: react.ForwardRefExoticComponent<{ index: number; className?: string | ((d: { active: boolean; }) => string) | undefined; } & Omit, "className"> & react.RefAttributes>; declare const Checkbox: react.ForwardRefExoticComponent, "ref"> & react.RefAttributes>; type PopoverProps = PropsWithChildren<{ content: ReactNode | string; align?: "center" | "start" | "end"; side?: "bottom" | "top" | "left" | "right"; openPopover: boolean; setOpenPopover: (open: boolean) => void; mobileOnly?: boolean; forceDropdown?: boolean; popoverContentClassName?: string; onOpenAutoFocus?: PopoverPrimitive.PopoverContentProps["onOpenAutoFocus"]; onCloseAutoFocus?: PopoverPrimitive.PopoverContentProps["onCloseAutoFocus"]; collisionBoundary?: Element | Element[]; sticky?: "partial" | "always"; onEscapeKeyDown?: (event: KeyboardEvent) => void; onWheel?: WheelEventHandler; sideOffset?: number; anchor?: ReactNode; }>; declare function Popover({ children, content, align, side, openPopover, setOpenPopover, mobileOnly, forceDropdown, popoverContentClassName, onOpenAutoFocus, onCloseAutoFocus, collisionBoundary, sticky, onEscapeKeyDown, onWheel, sideOffset, anchor, }: PopoverProps): react_jsx_runtime.JSX.Element; type ComboboxOption = { label: string | ReactNode; value: string; icon?: Icon | ReactNode; disabledTooltip?: ReactNode; meta?: TMeta; separatorAfter?: boolean; first?: boolean; }; type ComboboxProps = PropsWithChildren<{ multiple?: TMultiple; selected: TMultiple extends true ? ComboboxOption[] : ComboboxOption | null; setSelected?: TMultiple extends true ? (options: ComboboxOption[]) => void : (option: ComboboxOption | null) => void; onSelect?: (option: ComboboxOption) => void; maxSelected?: number; options?: ComboboxOption[]; trigger?: ReactNode; icon?: Icon | ReactNode; placeholder?: ReactNode; searchPlaceholder?: string; emptyState?: ReactNode; createLabel?: (search: string) => ReactNode; createIcon?: Icon; onCreate?: (search: string) => Promise; buttonProps?: ButtonProps; labelProps?: { className?: string; }; iconProps?: { className?: string; }; popoverProps?: { contentClassName?: string; }; shortcutHint?: string; caret?: boolean | ReactNode; side?: PopoverProps["side"]; open?: boolean; onOpenChange?: (open: boolean) => void; onSearchChange?: (search: string) => void; shouldFilter?: boolean; inputRight?: ReactNode; inputClassName?: string; optionRight?: (option: ComboboxOption) => ReactNode; optionClassName?: string; optionDescription?: (option: ComboboxOption) => ReactNode; matchTriggerWidth?: boolean; hideSearch?: boolean; forceDropdown?: boolean; }>; declare function Combobox({ multiple, selected: selectedProp, setSelected, onSelect, maxSelected, options, trigger, icon: Icon, placeholder, searchPlaceholder, emptyState, createLabel, createIcon: CreateIcon, onCreate, buttonProps, labelProps, iconProps, popoverProps, shortcutHint, caret, side, open, onOpenChange, onSearchChange, shouldFilter, inputRight, inputClassName, optionRight, optionClassName, optionDescription, matchTriggerWidth, hideSearch, forceDropdown, children, }: ComboboxProps): react_jsx_runtime.JSX.Element; type OmitKeys = { [P in keyof T as P extends K ? never : P]: T[P]; }; type KeysToOmit = "showWeekNumber" | "captionLayout" | "mode"; type SingleProps = OmitKeys; type RangeProps = OmitKeys; type CalendarProps$1 = ({ mode: "single"; } & SingleProps) | ({ mode?: undefined; } & SingleProps) | ({ mode: "range"; } & RangeProps); declare function Calendar({ mode, weekStartsOn, numberOfMonths, showYearNavigation, disableNavigation, locale, className, classNames, ...props }: CalendarProps$1 & { showYearNavigation?: boolean; }): react_jsx_runtime.JSX.Element; type CalendarProps = { fromYear?: number; toYear?: number; fromMonth?: Date; toMonth?: Date; fromDay?: Date; toDay?: Date; fromDate?: Date; toDate?: Date; locale?: Locale; }; interface PickerProps extends CalendarProps { className?: string; disabled?: boolean; disabledDays?: Matcher | Matcher[] | undefined; required?: boolean; showTimePicker?: boolean; placeholder?: string; showYearNavigation?: boolean; disableNavigation?: boolean; hasError?: boolean; id?: string; align?: PopoverProps["align"]; "aria-invalid"?: boolean; "aria-label"?: string; "aria-labelledby"?: string; "aria-required"?: boolean; } type DateRange = { from: Date | undefined; to?: Date | undefined; }; interface Preset { id: string; label: string; requiresUpgrade?: boolean; tooltipContent?: ReactNode; shortcut?: string; } interface DateRangePreset extends Preset { dateRange: DateRange; } type DatePickerTriggerRenderProps = { displayValue: string | null; placeholder: string; open: boolean; disabled?: boolean; invalid?: boolean; }; type DatePickerProps = { value?: Date | null; defaultValue?: Date | null; onChange?: (date: Date | undefined) => void; /** Custom trigger element. Receives displayValue, placeholder, open, and disabled. Must return a single React element (e.g.