@dub/ui 0.2.68 → 0.2.69
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/charts/index.mjs +1 -1
- package/dist/chunk-2OLKG5VD.mjs +2 -0
- package/dist/chunk-2RTNOM7D.mjs +2 -0
- package/dist/chunk-2ZKUQRT2.mjs +6 -0
- package/dist/chunk-3EJ3KJXV.mjs +2 -0
- package/dist/chunk-4V6O5DP3.mjs +6 -0
- package/dist/chunk-5FR5TVE6.mjs +6 -0
- package/dist/chunk-6HGQA5C2.mjs +2 -0
- package/dist/chunk-6PXKSHG4.mjs +6 -0
- package/dist/chunk-6VPQEKGX.mjs +2 -0
- package/dist/chunk-746QNBBF.mjs +6 -0
- package/dist/chunk-7GDJPUUC.mjs +6 -0
- package/dist/chunk-7HRXNCEW.mjs +6 -0
- package/dist/chunk-7IX4YIZG.mjs +6 -0
- package/dist/chunk-AR5EQG6S.mjs +6 -0
- package/dist/chunk-B4JAPMF7.mjs +2 -0
- package/dist/chunk-BMAJZ2WA.mjs +2 -0
- package/dist/chunk-BO3GYFXE.mjs +2 -0
- package/dist/chunk-CI55POCL.mjs +2 -0
- package/dist/chunk-CYQQWKYO.mjs +2 -0
- package/dist/chunk-D2X3C7SN.mjs +2 -0
- package/dist/chunk-DLRHWE2P.mjs +2 -0
- package/dist/chunk-E4HWUKXO.mjs +6 -0
- package/dist/chunk-F7TG5QIV.mjs +2 -0
- package/dist/chunk-FEGYN2RG.mjs +6 -0
- package/dist/chunk-FNPKHQVW.mjs +2 -0
- package/dist/chunk-GVSY4EEU.mjs +2 -0
- package/dist/chunk-H74HRWYP.mjs +2 -0
- package/dist/chunk-HE7D3ZSP.mjs +2 -0
- package/dist/chunk-IP3TRQVC.mjs +6 -0
- package/dist/chunk-J6FZHCQU.mjs +2 -0
- package/dist/chunk-JNGL4IFE.mjs +2 -0
- package/dist/chunk-JOLCDANY.mjs +2 -0
- package/dist/chunk-KJPINAI2.mjs +2 -0
- package/dist/chunk-KONKTXXG.mjs +6 -0
- package/dist/chunk-M5MUPZEN.mjs +2 -0
- package/dist/chunk-P2IJR7OL.mjs +6 -0
- package/dist/chunk-PDTM75SS.mjs +2 -0
- package/dist/chunk-PJYVB2JH.mjs +2 -0
- package/dist/chunk-PMLAVU2X.mjs +6 -0
- package/dist/chunk-PW5W5G2F.mjs +2 -0
- package/dist/chunk-Q7TE7VVT.mjs +2 -0
- package/dist/chunk-QGKU72XQ.mjs +6 -0
- package/dist/chunk-QIA3GT5T.mjs +2 -0
- package/dist/chunk-RLXZTKXL.mjs +2 -0
- package/dist/chunk-RNZZ7TGZ.mjs +2 -0
- package/dist/chunk-RSC43RXH.mjs +2 -0
- package/dist/chunk-S6UCRI4B.mjs +2 -0
- package/dist/chunk-SH6LFBJC.mjs +2 -0
- package/dist/chunk-SHSVHA4U.mjs +2 -0
- package/dist/chunk-SJX23PQU.mjs +2 -0
- package/dist/chunk-TKHNB2F3.mjs +2 -0
- package/dist/chunk-U53H44XX.mjs +6 -0
- package/dist/chunk-UDPZCIHW.mjs +2 -0
- package/dist/chunk-UXLTIKME.mjs +2 -0
- package/dist/chunk-V2KYE7EE.mjs +2 -0
- package/dist/chunk-VMYCUV2C.mjs +2 -0
- package/dist/chunk-W3YBFHMA.mjs +6 -0
- package/dist/chunk-WE2RCEPL.mjs +2 -0
- package/dist/chunk-WHHNTDMN.mjs +6 -0
- package/dist/chunk-X6IUUCWJ.mjs +2 -0
- package/dist/chunk-X7SGDEJI.mjs +2 -0
- package/dist/chunk-ZESUMHML.mjs +6 -0
- package/dist/chunk-ZNXASZTY.mjs +6 -0
- package/dist/chunk-ZQSYRTLP.mjs +6 -0
- package/dist/icons/index.d.ts +25 -1
- package/dist/icons/index.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +107 -24
- package/dist/index.mjs +27 -6
- package/package.json +15 -14
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import react__default, { ReactNode, PropsWithChildren, HTMLAttributes, ButtonHTMLAttributes, WheelEventHandler, Dispatch, SetStateAction,
|
|
3
|
+
import react__default, { ComponentType, SVGProps, ReactNode, PropsWithChildren, HTMLAttributes, ButtonHTMLAttributes, WheelEventHandler, Dispatch, SetStateAction, InputHTMLAttributes, ElementType, ComponentPropsWithoutRef, ComponentProps, MouseEvent as MouseEvent$1, KeyboardEvent as KeyboardEvent$1, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
5
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
5
6
|
import { VariantProps } from 'class-variance-authority';
|
|
6
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import Autoplay from 'embla-carousel-autoplay';
|
|
8
8
|
import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
9
9
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
10
10
|
import { Icon, GlobePointer, SatelliteDish, Flag6, InputSearch, Page2, Gift, DubLinksIcon, Toggle2Fill, Typescript, LifeRingFill, Twitter } from './icons/index.js';
|
|
11
|
-
export { Africa, Amazon, AndroidLogo, Anthropic, Apple, AppleLogo, ArrowBoldUp, ArrowRight, ArrowTrendUp, ArrowTurnLeft, ArrowTurnRight2, ArrowUpRight, ArrowUpRight2, ArrowsOppositeDirectionX, ArrowsOppositeDirectionY, Asia, AtSign, BadgeCheck, BadgeCheck2Fill, 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, 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, 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, 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, Shuffle, Sitemap, Slack, Sliders, SortOrder, SouthAmerica, Sparkle3, Spotify, SquareChart, SquareLayoutGrid5, SquareLayoutGrid6, SquareUserSparkle2, SquareXmark, Star, StarFill, Stars2, StripeIcon, StripeLink, Success, TV, TableIcon, TableRows2, Tablet, Tag, Tags, TextBold, TextItalic, Tick, TikTok, Timer2, Toggle2Fill, Toggles, Trash, TriangleWarning, Trophy, Twitter, Typescript, UiCard, Unsplash, User, UserCheck, UserCrown, UserDelete, UserFocus, UserMinus, UserPlus, UserSearch, UserXmark, Users, Users2, Users6, UsersFill, UsersSettings, Versions2, Views, Watch, Webhook, Window, WindowSearch, WindowSettings, Workflow, Xmark, YouTube } from './icons/index.js';
|
|
11
|
+
export { Africa, Amazon, AndroidLogo, Anthropic, Apple, AppleLogo, ArrowBoldUp, ArrowRight, ArrowTrendUp, ArrowTurnLeft, ArrowTurnRight2, ArrowUpRight, ArrowUpRight2, ArrowsOppositeDirectionX, ArrowsOppositeDirectionY, Asia, AtSign, BadgeCheck, BadgeCheck2Fill, 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, 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, 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, Sliders, SortAlphaAscending, SortAlphaDescending, SortOrder, SouthAmerica, Sparkle3, Spotify, SquareChart, SquareCheck, SquareLayoutGrid5, SquareLayoutGrid6, SquareUserSparkle2, SquareXmark, 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, UserArrowRight, UserCheck, UserClock, UserCrown, UserDelete, UserFocus, UserMinus, UserPlus, UserSearch, UserXmark, Users, Users2, Users6, UsersFill, UsersSettings, Versions2, Views, Watch, Webhook, Window, WindowSearch, WindowSettings, Workflow, Xmark, YouTube } from './icons/index.js';
|
|
12
12
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
13
13
|
import { DayPickerSingleProps, DayPickerRangeProps, Matcher } from 'react-day-picker';
|
|
14
14
|
export { Matcher } from 'react-day-picker';
|
|
15
15
|
import { Locale } from 'date-fns';
|
|
16
|
+
import { FilterOperator } from '@dub/utils';
|
|
16
17
|
import { LucideIcon } from 'lucide-react';
|
|
17
18
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
18
19
|
import { Drawer, ContentProps } from 'vaul';
|
|
@@ -21,9 +22,9 @@ import { PaginationState as PaginationState$1, Table as Table$1, ColumnDef, Colu
|
|
|
21
22
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
22
23
|
import { Editor, useEditor, EditorContentProps } from '@tiptap/react';
|
|
23
24
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
25
|
+
import { useRouter, ReadonlyURLSearchParams } from 'next/navigation';
|
|
24
26
|
import Cookies from 'js-cookie';
|
|
25
27
|
import { AppRouterInstance } from 'next/dist/shared/lib/app-router-context.shared-runtime';
|
|
26
|
-
import { ReadonlyURLSearchParams } from 'next/navigation';
|
|
27
28
|
import Link from 'next/link';
|
|
28
29
|
import { motion, Variants, MotionNodeOptions } from 'motion/react';
|
|
29
30
|
import { ImageProps } from 'next/image';
|
|
@@ -35,6 +36,24 @@ declare const AccordionTrigger: react.ForwardRefExoticComponent<Omit<AccordionPr
|
|
|
35
36
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
36
37
|
declare const AccordionContent: react.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
37
38
|
|
|
39
|
+
type IconComponent = ComponentType<SVGProps<SVGSVGElement>>;
|
|
40
|
+
interface ActivityRingProps {
|
|
41
|
+
/** Value for the positive/trustworthy side */
|
|
42
|
+
positiveValue: number;
|
|
43
|
+
/** Value for the negative/removed side */
|
|
44
|
+
negativeValue: number;
|
|
45
|
+
/** Size of the ring in pixels (default: 40) */
|
|
46
|
+
size?: number;
|
|
47
|
+
/** Icon to show when positive leads */
|
|
48
|
+
positiveIcon?: IconComponent;
|
|
49
|
+
/** Icon to show when negative leads */
|
|
50
|
+
negativeIcon?: IconComponent;
|
|
51
|
+
/** Icon to show when neutral (tie) */
|
|
52
|
+
neutralIcon?: IconComponent;
|
|
53
|
+
className?: string;
|
|
54
|
+
}
|
|
55
|
+
declare function ActivityRing({ positiveValue, negativeValue, size, positiveIcon: PositiveIcon, negativeIcon: NegativeIcon, neutralIcon: NeutralIcon, className, }: ActivityRingProps): react_jsx_runtime.JSX.Element;
|
|
56
|
+
|
|
38
57
|
declare const Alert: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
39
58
|
variant?: "default" | "destructive" | null | undefined;
|
|
40
59
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -58,7 +77,7 @@ declare function TokenAvatar({ id, className, }: {
|
|
|
58
77
|
}): react_jsx_runtime.JSX.Element;
|
|
59
78
|
|
|
60
79
|
declare const badgeVariants: (props?: ({
|
|
61
|
-
variant?: "black" | "blue" | "gray" | "green" | "violet" | "
|
|
80
|
+
variant?: "black" | "blue" | "gray" | "green" | "violet" | "neutral" | "default" | "sky" | "amber" | "blueGradient" | "rainbow" | null | undefined;
|
|
62
81
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
63
82
|
interface BadgeProps$1 extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
64
83
|
}
|
|
@@ -208,6 +227,7 @@ type ComboboxProps<TMultiple extends boolean | undefined, TMeta extends any> = P
|
|
|
208
227
|
selected: TMultiple extends true ? ComboboxOption<TMeta>[] : ComboboxOption<TMeta> | null;
|
|
209
228
|
setSelected?: TMultiple extends true ? (options: ComboboxOption<TMeta>[]) => void : (option: ComboboxOption<TMeta> | null) => void;
|
|
210
229
|
onSelect?: (option: ComboboxOption<TMeta>) => void;
|
|
230
|
+
maxSelected?: number;
|
|
211
231
|
options?: ComboboxOption<TMeta>[];
|
|
212
232
|
trigger?: ReactNode;
|
|
213
233
|
icon?: Icon | ReactNode;
|
|
@@ -241,7 +261,7 @@ type ComboboxProps<TMultiple extends boolean | undefined, TMeta extends any> = P
|
|
|
241
261
|
matchTriggerWidth?: boolean;
|
|
242
262
|
hideSearch?: boolean;
|
|
243
263
|
}>;
|
|
244
|
-
declare function Combobox({ multiple, selected: selectedProp, setSelected, onSelect, 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, matchTriggerWidth, hideSearch, children, }: ComboboxProps<boolean | undefined, any>): react_jsx_runtime.JSX.Element;
|
|
264
|
+
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, matchTriggerWidth, hideSearch, children, }: ComboboxProps<boolean | undefined, any>): react_jsx_runtime.JSX.Element;
|
|
245
265
|
|
|
246
266
|
type OmitKeys<T, K extends keyof T> = {
|
|
247
267
|
[P in keyof T as P extends K ? never : P]: T[P];
|
|
@@ -409,15 +429,20 @@ type FileUploadProps = FileUploadReadFileProps & {
|
|
|
409
429
|
declare function FileUpload({ id, readFile, onChange, variant, className, iconClassName, previewClassName, icon: Icon, customPreview, accept, imageSrc, loading, clickToUpload, showHoverOverlay, content, maxFileSizeMB, targetResolution, accessibilityLabel, disabled, }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
410
430
|
|
|
411
431
|
type FilterIcon = LucideIcon | ReactNode | ComponentType<SVGProps<SVGSVGElement>>;
|
|
432
|
+
|
|
412
433
|
type Filter$1 = {
|
|
413
434
|
key: string;
|
|
414
435
|
icon: FilterIcon;
|
|
415
436
|
label: string;
|
|
437
|
+
labelPlural?: string;
|
|
416
438
|
options: FilterOption[] | null;
|
|
417
439
|
hideInFilterDropdown?: boolean;
|
|
418
440
|
shouldFilter?: boolean;
|
|
419
441
|
separatorAfter?: boolean;
|
|
420
442
|
multiple?: boolean;
|
|
443
|
+
hideMultipleIcons?: boolean;
|
|
444
|
+
singleSelect?: boolean;
|
|
445
|
+
hideOperator?: boolean;
|
|
421
446
|
getOptionIcon?: (value: FilterOption["value"], props: {
|
|
422
447
|
key: Filter$1["key"];
|
|
423
448
|
option?: FilterOption;
|
|
@@ -437,37 +462,49 @@ type FilterOption = {
|
|
|
437
462
|
data?: Record<string, any>;
|
|
438
463
|
permalink?: string;
|
|
439
464
|
};
|
|
465
|
+
type ActiveFilter = {
|
|
466
|
+
key: Filter$1["key"];
|
|
467
|
+
values: FilterOption["value"][];
|
|
468
|
+
operator: FilterOperator;
|
|
469
|
+
};
|
|
470
|
+
type LegacyActiveFilterSingular = {
|
|
471
|
+
key: Filter$1["key"];
|
|
472
|
+
value: FilterOption["value"];
|
|
473
|
+
};
|
|
474
|
+
type LegacyActiveFilterPlural = {
|
|
475
|
+
key: Filter$1["key"];
|
|
476
|
+
values: FilterOption["value"][];
|
|
477
|
+
};
|
|
478
|
+
type ActiveFilterInput = ActiveFilter | LegacyActiveFilterSingular | LegacyActiveFilterPlural;
|
|
440
479
|
|
|
441
480
|
type FilterListProps = {
|
|
442
481
|
filters: Filter$1[];
|
|
443
|
-
activeFilters?:
|
|
444
|
-
key: Filter$1["key"];
|
|
445
|
-
value: FilterOption["value"];
|
|
446
|
-
}[];
|
|
482
|
+
activeFilters?: ActiveFilterInput[];
|
|
447
483
|
onRemove: (key: string, value: FilterOption["value"]) => void;
|
|
484
|
+
onRemoveFilter?: (key: string) => void;
|
|
448
485
|
onRemoveAll: () => void;
|
|
449
|
-
onSelect?: (key: string, value: FilterOption["value"]) => void;
|
|
486
|
+
onSelect?: (key: string, value: FilterOption["value"] | FilterOption["value"][]) => void;
|
|
487
|
+
onToggleOperator?: (key: string) => void;
|
|
488
|
+
isAdvancedFilter?: boolean;
|
|
450
489
|
className?: string;
|
|
451
490
|
};
|
|
452
|
-
declare function FilterList({ filters, activeFilters, onRemove, onRemoveAll, onSelect, className, }: FilterListProps): react_jsx_runtime.JSX.Element;
|
|
491
|
+
declare function FilterList({ filters, activeFilters, onRemove, onRemoveFilter, onRemoveAll, onSelect, onToggleOperator, isAdvancedFilter, className, }: FilterListProps): react_jsx_runtime.JSX.Element;
|
|
453
492
|
|
|
454
493
|
type FilterSelectProps = {
|
|
455
494
|
filters: Filter$1[];
|
|
456
|
-
onSelect: (key: string, value: FilterOption["value"]) => void;
|
|
495
|
+
onSelect: (key: string, value: FilterOption["value"] | FilterOption["value"][]) => void;
|
|
457
496
|
onRemove: (key: string, value: FilterOption["value"]) => void;
|
|
458
497
|
onOpenFilter?: (key: string) => void;
|
|
459
498
|
onSearchChange?: (search: string) => void;
|
|
460
499
|
onSelectedFilterChange?: (key: string | null) => void;
|
|
461
|
-
activeFilters?:
|
|
462
|
-
key: Filter$1["key"];
|
|
463
|
-
value: FilterOption["value"];
|
|
464
|
-
}[];
|
|
500
|
+
activeFilters?: ActiveFilterInput[];
|
|
465
501
|
askAI?: boolean;
|
|
502
|
+
isAdvancedFilter?: boolean;
|
|
466
503
|
children?: ReactNode;
|
|
467
504
|
emptyState?: ReactNode | Record<string, ReactNode>;
|
|
468
505
|
className?: string;
|
|
469
506
|
};
|
|
470
|
-
declare function FilterSelect({ filters, onSelect, onRemove, onOpenFilter, onSearchChange, onSelectedFilterChange, activeFilters, askAI, children, emptyState, className, }: FilterSelectProps): react_jsx_runtime.JSX.Element;
|
|
507
|
+
declare function FilterSelect({ filters, onSelect, onRemove, onOpenFilter, onSearchChange, onSelectedFilterChange, activeFilters, askAI, isAdvancedFilter, children, emptyState, className, }: FilterSelectProps): react_jsx_runtime.JSX.Element;
|
|
471
508
|
|
|
472
509
|
declare const Filter: {
|
|
473
510
|
Select: typeof FilterSelect;
|
|
@@ -540,6 +577,26 @@ declare function Modal({ children, className, showModal, setShowModal, onClose,
|
|
|
540
577
|
drawerRootProps?: ComponentProps<typeof Drawer.Root>;
|
|
541
578
|
}): react_jsx_runtime.JSX.Element;
|
|
542
579
|
|
|
580
|
+
interface MultiValueInputRef {
|
|
581
|
+
/** Commits any pending input, updates parent, and returns the full list. */
|
|
582
|
+
commitPendingInput: () => string[];
|
|
583
|
+
}
|
|
584
|
+
interface MultiValueInputProps {
|
|
585
|
+
values: string[];
|
|
586
|
+
onChange: (values: string[]) => void;
|
|
587
|
+
placeholder?: string;
|
|
588
|
+
id?: string;
|
|
589
|
+
className?: string;
|
|
590
|
+
inputClassName?: string;
|
|
591
|
+
disabled?: boolean;
|
|
592
|
+
autoFocus?: boolean;
|
|
593
|
+
/** Optional normalizer for each value when adding (e.g. trim + lowercase). */
|
|
594
|
+
normalize?: (value: string) => string;
|
|
595
|
+
/** Optional max number of values (no limit if omitted). */
|
|
596
|
+
maxValues?: number;
|
|
597
|
+
}
|
|
598
|
+
declare const MultiValueInput: react__default.ForwardRefExoticComponent<MultiValueInputProps & react__default.RefAttributes<MultiValueInputRef>>;
|
|
599
|
+
|
|
543
600
|
type NumberStepperProps = {
|
|
544
601
|
value: number;
|
|
545
602
|
onChange: (value: number) => void;
|
|
@@ -570,6 +627,18 @@ declare function ProgressCircle({ progress: progressProp, strokeWidth, className
|
|
|
570
627
|
className?: string;
|
|
571
628
|
}): react_jsx_runtime.JSX.Element;
|
|
572
629
|
|
|
630
|
+
type Side = "left" | "right" | "top" | "bottom";
|
|
631
|
+
declare function ProgressiveBlur({ strength, steps, side, className, style, ...rest }: react__default.HTMLAttributes<HTMLDivElement> & {
|
|
632
|
+
/** The strongest blur strength. */
|
|
633
|
+
strength?: number;
|
|
634
|
+
/** The number of steps for the blur. More steps is more detailed but computationally expensive. */
|
|
635
|
+
steps?: number;
|
|
636
|
+
/** The percentage of blur at the weakest point. */
|
|
637
|
+
falloffPercentage?: number;
|
|
638
|
+
/** Which side will have the strongest blur. */
|
|
639
|
+
side?: Side;
|
|
640
|
+
}): react_jsx_runtime.JSX.Element;
|
|
641
|
+
|
|
573
642
|
declare const RadioGroup: react.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
574
643
|
declare const RadioGroupItem: react.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
575
644
|
|
|
@@ -578,7 +647,7 @@ declare const PROSE_STYLES: {
|
|
|
578
647
|
readonly condensed: "prose-p:my-0 prose-ul:my-2 prose-ol:my-2";
|
|
579
648
|
readonly relaxed: "";
|
|
580
649
|
};
|
|
581
|
-
declare const FEATURES: readonly ["images", "variables", "links", "headings", "bold", "italic"];
|
|
650
|
+
declare const FEATURES: readonly ["images", "variables", "links", "headings", "bold", "italic", "strike"];
|
|
582
651
|
type RichTextProviderProps = PropsWithChildren<{
|
|
583
652
|
placeholder?: string;
|
|
584
653
|
initialValue?: any;
|
|
@@ -604,7 +673,7 @@ type RichTextAreaProviderRef = {
|
|
|
604
673
|
declare const RichTextProvider: react.ForwardRefExoticComponent<{
|
|
605
674
|
placeholder?: string | undefined;
|
|
606
675
|
initialValue?: any;
|
|
607
|
-
features?: ("bold" | "links" | "images" | "variables" | "headings" | "italic")[] | undefined;
|
|
676
|
+
features?: ("bold" | "strike" | "links" | "images" | "variables" | "headings" | "italic")[] | undefined;
|
|
608
677
|
markdown?: boolean | undefined;
|
|
609
678
|
style?: "default" | "condensed" | "relaxed" | undefined;
|
|
610
679
|
onChange?: ((editor: Editor) => void) | undefined;
|
|
@@ -740,8 +809,8 @@ type BaseTableProps<T> = {
|
|
|
740
809
|
onRowSelectionChange?: (rows: Row<T>[]) => void;
|
|
741
810
|
selectedRows?: RowSelectionState;
|
|
742
811
|
selectionControls?: (table: Table$1<T>) => ReactNode;
|
|
743
|
-
onRowClick?: (row: Row<T>, e: MouseEvent) => void;
|
|
744
|
-
onRowAuxClick?: (row: Row<T>, e: MouseEvent) => void;
|
|
812
|
+
onRowClick?: (row: Row<T>, e: MouseEvent$1) => void;
|
|
813
|
+
onRowAuxClick?: (row: Row<T>, e: MouseEvent$1) => void;
|
|
745
814
|
rowProps?: HTMLAttributes<HTMLTableRowElement> | ((row: Row<T>) => HTMLAttributes<HTMLTableRowElement>);
|
|
746
815
|
className?: string;
|
|
747
816
|
containerClassName?: string;
|
|
@@ -890,6 +959,20 @@ declare function UTMBuilder({ values, onChange, disabled, autoFocus, disabledToo
|
|
|
890
959
|
className?: string;
|
|
891
960
|
}): react_jsx_runtime.JSX.Element;
|
|
892
961
|
|
|
962
|
+
declare const useClickHandlers: (url: string | undefined, router: ReturnType<typeof useRouter>) => {
|
|
963
|
+
onClick: (e: React.MouseEvent<Element, MouseEvent>) => void;
|
|
964
|
+
onAuxClick: (e: React.MouseEvent<Element, MouseEvent>) => void;
|
|
965
|
+
role: string;
|
|
966
|
+
tabIndex: number;
|
|
967
|
+
onKeyDown: (e: React.KeyboardEvent<Element>) => false | void;
|
|
968
|
+
} | {
|
|
969
|
+
onClick?: undefined;
|
|
970
|
+
onAuxClick?: undefined;
|
|
971
|
+
role?: undefined;
|
|
972
|
+
tabIndex?: undefined;
|
|
973
|
+
onKeyDown?: undefined;
|
|
974
|
+
};
|
|
975
|
+
|
|
893
976
|
type SingleTableConfig = {
|
|
894
977
|
all: string[];
|
|
895
978
|
defaultVisible: string[];
|
|
@@ -1161,7 +1244,7 @@ declare const ClientOnly: ({ children, fallback, fadeInDuration, className, }: {
|
|
|
1161
1244
|
}) => react_jsx_runtime.JSX.Element;
|
|
1162
1245
|
|
|
1163
1246
|
declare const copyButtonVariants: (props?: ({
|
|
1164
|
-
variant?: "
|
|
1247
|
+
variant?: "neutral" | "default" | null | undefined;
|
|
1165
1248
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1166
1249
|
declare function CopyButton({ variant, value, className, icon, successMessage, }: {
|
|
1167
1250
|
value: string;
|
|
@@ -1257,4 +1340,4 @@ declare function Wordmark({ className }: {
|
|
|
1257
1340
|
className?: string;
|
|
1258
1341
|
}): react_jsx_runtime.JSX.Element;
|
|
1259
1342
|
|
|
1260
|
-
export { AUTOPLAY_DEFAULT_DELAY, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedLinkFeaturesTooltip, Alert, AlertDescription, AlertTitle, AnimatedSizeContainer, AuthButton, Avatar, Background, Badge, BadgeTooltip, BlurImage, Button, ButtonProps, ButtonTooltip, COMPARE_PAGES, Calendar, CardList, CardSelector, CardSelectorOption, CardSelectorProps, Carousel, CarouselApi, CarouselContent, CarouselItem, CarouselNavBar, CarouselNext, CarouselPrevious, CarouselThumbnail, CarouselThumbnails, Checkbox, ClientOnly, Combobox, ComboboxOption, ComboboxProps, CompositeLogo, CopyButton, CopyText, DatePickerContext, DateRangePicker, DotsPattern, DubStatusBadge, DynamicTooltipWrapper, EditColumnsButton, EmptyState, EmptyStateProps, FEATURES_LIST, FRAMER_MOTION_LIST_ITEM_VARIANTS, FileUpload, FileUploadProps, Filter, Footer, Form, Grid, IconMenu, InfoTooltip, InlineSnippet, Input, InputProps, KeyboardShortcutContext, KeyboardShortcutProvider, LEGAL_PAGES, Label, LinkLogo, LinkPreview, LinkPreviewPlaceholder, Logo, MaxWidthWrapper, MenuItem, MiniAreaChart, MiniAreaChartProps, Modal, Nav, NavContext, NavItemChild, NavItemChildren, NavMobile, NavTheme, NavWordmark, NumberStepper, NumberStepperProps, PROSE_STYLES, PaginationControls, PaginationState, Popover, PopoverProps, Popup, PopupContext, ProgressBar, ProgressCircle, RESOURCES, RadioGroup, RadioGroupItem, RichTextArea, RichTextAreaProviderRef, RichTextContext, RichTextProvider, RichTextToolbar, RichTextToolbarButton, SDKS, SOCIAL_LINKS, SOLUTIONS, STAGGER_CHILD_VARIANTS, ScrollContainer, ScrollableTooltipContent, Sheet, ShimmerDots, Slider, SmartDateTimePicker, StatusBadge, Switch, TAB_ITEM_ANIMATION_SETTINGS, TabSelect, Table, TimestampTooltip, TimestampTooltipProps, ToggleGroup, TokenAvatar, Tooltip, TooltipContent, TooltipProps, TooltipProvider, UTMBuilder, UTM_PARAMETERS, Wordmark, badgeVariants, buttonVariants, getUserAvatarUrl, menuItemVariants, navItems, statusBadgeVariants, useCarousel, useCarouselActiveIndex, useColumnVisibility, useCookies, useCopyToClipboard, useCurrentAnchor, useCurrentSubdomain, useEnterSubmit, useInViewport, useInputFocused, useIntersectionObserver, useKeyboardShortcut, useLocalStorage, useMediaQuery, useOptimisticUpdate, usePagination, useRemoveGAParams, useResizeObserver, useRichTextContext, useRouterStuff, useScroll, useScrollProgress, useTable, useTablePagination, useToastWithUndo };
|
|
1343
|
+
export { AUTOPLAY_DEFAULT_DELAY, Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityRing, AdvancedLinkFeaturesTooltip, Alert, AlertDescription, AlertTitle, AnimatedSizeContainer, AuthButton, Avatar, Background, Badge, BadgeTooltip, BlurImage, Button, ButtonProps, ButtonTooltip, COMPARE_PAGES, Calendar, CardList, CardSelector, CardSelectorOption, CardSelectorProps, Carousel, CarouselApi, CarouselContent, CarouselItem, CarouselNavBar, CarouselNext, CarouselPrevious, CarouselThumbnail, CarouselThumbnails, Checkbox, ClientOnly, Combobox, ComboboxOption, ComboboxProps, CompositeLogo, CopyButton, CopyText, DatePickerContext, DateRangePicker, DotsPattern, DubStatusBadge, DynamicTooltipWrapper, EditColumnsButton, EmptyState, EmptyStateProps, FEATURES_LIST, FRAMER_MOTION_LIST_ITEM_VARIANTS, FileUpload, FileUploadProps, Filter, Footer, Form, Grid, IconMenu, InfoTooltip, InlineSnippet, Input, InputProps, KeyboardShortcutContext, KeyboardShortcutProvider, LEGAL_PAGES, Label, LinkLogo, LinkPreview, LinkPreviewPlaceholder, Logo, MaxWidthWrapper, MenuItem, MiniAreaChart, MiniAreaChartProps, Modal, MultiValueInput, MultiValueInputProps, MultiValueInputRef, Nav, NavContext, NavItemChild, NavItemChildren, NavMobile, NavTheme, NavWordmark, NumberStepper, NumberStepperProps, PROSE_STYLES, PaginationControls, PaginationState, Popover, PopoverProps, Popup, PopupContext, ProgressBar, ProgressCircle, ProgressiveBlur, RESOURCES, RadioGroup, RadioGroupItem, RichTextArea, RichTextAreaProviderRef, RichTextContext, RichTextProvider, RichTextToolbar, RichTextToolbarButton, SDKS, SOCIAL_LINKS, SOLUTIONS, STAGGER_CHILD_VARIANTS, ScrollContainer, ScrollableTooltipContent, Sheet, ShimmerDots, Slider, SmartDateTimePicker, StatusBadge, Switch, TAB_ITEM_ANIMATION_SETTINGS, TabSelect, Table, TimestampTooltip, TimestampTooltipProps, ToggleGroup, TokenAvatar, Tooltip, TooltipContent, TooltipProps, TooltipProvider, UTMBuilder, UTM_PARAMETERS, Wordmark, badgeVariants, buttonVariants, getUserAvatarUrl, menuItemVariants, navItems, statusBadgeVariants, useCarousel, useCarouselActiveIndex, useClickHandlers, useColumnVisibility, useCookies, useCopyToClipboard, useCurrentAnchor, useCurrentSubdomain, useEnterSubmit, useInViewport, useInputFocused, useIntersectionObserver, useKeyboardShortcut, useLocalStorage, useMediaQuery, useOptimisticUpdate, usePagination, useRemoveGAParams, useResizeObserver, useRichTextContext, useRouterStuff, useScroll, useScrollProgress, useTable, useTablePagination, useToastWithUndo };
|