@dub/ui 0.2.69 → 0.3.1
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-27KBIUXQ.mjs +2 -0
- package/dist/chunk-2APFEFAQ.mjs +6 -0
- package/dist/chunk-2W6D4KFZ.mjs +6 -0
- package/dist/chunk-3FNFJD3D.mjs +6 -0
- package/dist/chunk-4GUW235P.mjs +6 -0
- package/dist/chunk-4MZXX7Q4.mjs +6 -0
- package/dist/chunk-4XV3XPU6.mjs +2 -0
- package/dist/chunk-5BO6ORUB.mjs +6 -0
- package/dist/chunk-5BPHS3IP.mjs +2 -0
- package/dist/chunk-6B2LOFMR.mjs +2 -0
- package/dist/chunk-7K6LFUTC.mjs +6 -0
- package/dist/chunk-AYW3HJXX.mjs +2 -0
- package/dist/chunk-DBT3MUHQ.mjs +6 -0
- package/dist/chunk-DERIUHV5.mjs +6 -0
- package/dist/chunk-DZ4HSBSZ.mjs +6 -0
- package/dist/chunk-F3PZF25V.mjs +2 -0
- package/dist/chunk-F7TP4G6Z.mjs +2 -0
- package/dist/chunk-FB2K5AFM.mjs +2 -0
- package/dist/chunk-HRJQGYAW.mjs +2 -0
- package/dist/chunk-J54HXJEM.mjs +2 -0
- package/dist/chunk-JN5YXRC7.mjs +2 -0
- package/dist/chunk-JPJFKIER.mjs +6 -0
- package/dist/chunk-K5RWTWZX.mjs +6 -0
- package/dist/chunk-LW3IGZLZ.mjs +2 -0
- package/dist/chunk-RHFLXCDH.mjs +2 -0
- package/dist/chunk-RRUIYW2P.mjs +6 -0
- package/dist/chunk-T4JODWAP.mjs +6 -0
- package/dist/chunk-T5I7NTHS.mjs +6 -0
- package/dist/chunk-T7Y6MARI.mjs +2 -0
- package/dist/chunk-TF7D7ANO.mjs +2 -0
- package/dist/chunk-TKM2MHOO.mjs +6 -0
- package/dist/chunk-UAQ2HLPX.mjs +2 -0
- package/dist/chunk-VNO6TU52.mjs +2 -0
- package/dist/chunk-W5OLICQC.mjs +2 -0
- package/dist/chunk-WHTIHVJH.mjs +6 -0
- package/dist/chunk-WKH67IZC.mjs +2 -0
- package/dist/chunk-WNY3VD7Q.mjs +2 -0
- package/dist/chunk-XPQ5USEX.mjs +2 -0
- package/dist/chunk-XYGQKVYJ.mjs +6 -0
- package/dist/chunk-YKK6HWJP.mjs +2 -0
- package/dist/chunk-ZJ4SRHCP.mjs +6 -0
- package/dist/chunk-ZJKQCWHI.mjs +2 -0
- package/dist/icons/index.d.ts +7 -1
- package/dist/icons/index.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +36 -21
- package/dist/index.mjs +25 -25
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
2
|
import * as react from 'react';
|
|
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';
|
|
3
|
+
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';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -8,7 +8,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, 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';
|
|
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, 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, 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, Stablecoin, 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';
|
|
@@ -60,19 +60,9 @@ declare const Alert: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDi
|
|
|
60
60
|
declare const AlertTitle: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLHeadingElement> & react.RefAttributes<HTMLParagraphElement>>;
|
|
61
61
|
declare const AlertDescription: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLParagraphElement> & react.RefAttributes<HTMLParagraphElement>>;
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
email?: string | null | undefined;
|
|
67
|
-
image?: string | null | undefined;
|
|
68
|
-
};
|
|
69
|
-
declare function getUserAvatarUrl(user?: User | null): string;
|
|
70
|
-
declare function Avatar({ user, className, }: {
|
|
71
|
-
user?: User;
|
|
72
|
-
className?: string;
|
|
73
|
-
}): react_jsx_runtime.JSX.Element;
|
|
74
|
-
declare function TokenAvatar({ id, className, }: {
|
|
75
|
-
id: string;
|
|
63
|
+
declare function Avatar({ imageUrl, identifier, className, }: {
|
|
64
|
+
imageUrl?: string | null;
|
|
65
|
+
identifier: string;
|
|
76
66
|
className?: string;
|
|
77
67
|
}): react_jsx_runtime.JSX.Element;
|
|
78
68
|
|
|
@@ -203,15 +193,17 @@ type PopoverProps = PropsWithChildren<{
|
|
|
203
193
|
openPopover: boolean;
|
|
204
194
|
setOpenPopover: (open: boolean) => void;
|
|
205
195
|
mobileOnly?: boolean;
|
|
196
|
+
forceDropdown?: boolean;
|
|
206
197
|
popoverContentClassName?: string;
|
|
207
198
|
onOpenAutoFocus?: PopoverPrimitive.PopoverContentProps["onOpenAutoFocus"];
|
|
199
|
+
onCloseAutoFocus?: PopoverPrimitive.PopoverContentProps["onCloseAutoFocus"];
|
|
208
200
|
collisionBoundary?: Element | Element[];
|
|
209
201
|
sticky?: "partial" | "always";
|
|
210
202
|
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
211
203
|
onWheel?: WheelEventHandler;
|
|
212
204
|
sideOffset?: number;
|
|
213
205
|
}>;
|
|
214
|
-
declare function Popover({ children, content, align, side, openPopover, setOpenPopover, mobileOnly, popoverContentClassName, onOpenAutoFocus, collisionBoundary, sticky, onEscapeKeyDown, onWheel, sideOffset, }: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
206
|
+
declare function Popover({ children, content, align, side, openPopover, setOpenPopover, mobileOnly, forceDropdown, popoverContentClassName, onOpenAutoFocus, onCloseAutoFocus, collisionBoundary, sticky, onEscapeKeyDown, onWheel, sideOffset, }: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
215
207
|
|
|
216
208
|
type ComboboxOption<TMeta = any> = {
|
|
217
209
|
label: string | ReactNode;
|
|
@@ -258,10 +250,12 @@ type ComboboxProps<TMultiple extends boolean | undefined, TMeta extends any> = P
|
|
|
258
250
|
inputClassName?: string;
|
|
259
251
|
optionRight?: (option: ComboboxOption) => ReactNode;
|
|
260
252
|
optionClassName?: string;
|
|
253
|
+
optionDescription?: (option: ComboboxOption<TMeta>) => ReactNode;
|
|
261
254
|
matchTriggerWidth?: boolean;
|
|
262
255
|
hideSearch?: boolean;
|
|
256
|
+
forceDropdown?: boolean;
|
|
263
257
|
}>;
|
|
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;
|
|
258
|
+
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<boolean | undefined, any>): react_jsx_runtime.JSX.Element;
|
|
265
259
|
|
|
266
260
|
type OmitKeys<T, K extends keyof T> = {
|
|
267
261
|
[P in keyof T as P extends K ? never : P]: T[P];
|
|
@@ -323,6 +317,23 @@ interface DateRangePreset extends Preset {
|
|
|
323
317
|
dateRange: DateRange;
|
|
324
318
|
}
|
|
325
319
|
|
|
320
|
+
type DatePickerTriggerRenderProps = {
|
|
321
|
+
displayValue: string | null;
|
|
322
|
+
placeholder: string;
|
|
323
|
+
open: boolean;
|
|
324
|
+
disabled?: boolean;
|
|
325
|
+
invalid?: boolean;
|
|
326
|
+
};
|
|
327
|
+
type DatePickerProps = {
|
|
328
|
+
value?: Date | null;
|
|
329
|
+
defaultValue?: Date | null;
|
|
330
|
+
onChange?: (date: Date | undefined) => void;
|
|
331
|
+
/** Custom trigger element. Receives displayValue, placeholder, open, and disabled. Must return a single React element (e.g. <button>) so the popover can attach open behavior. */
|
|
332
|
+
trigger?: (props: DatePickerTriggerRenderProps) => ReactElement;
|
|
333
|
+
invalid?: boolean;
|
|
334
|
+
} & PickerProps;
|
|
335
|
+
declare function DatePicker({ value, defaultValue, onChange, trigger: customTrigger, disabled, disableNavigation, disabledDays, showYearNavigation, locale, placeholder, hasError, invalid, align, className, ...props }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
336
|
+
|
|
326
337
|
type RangeDatePickerProps = {
|
|
327
338
|
presets?: DateRangePreset[];
|
|
328
339
|
presetId?: DateRangePreset["id"];
|
|
@@ -645,6 +656,7 @@ declare const RadioGroupItem: react.ForwardRefExoticComponent<Omit<RadioGroupPri
|
|
|
645
656
|
declare const PROSE_STYLES: {
|
|
646
657
|
readonly default: "prose-p:my-2 prose-ul:my-2 prose-ol:my-2";
|
|
647
658
|
readonly condensed: "prose-p:my-0 prose-ul:my-2 prose-ol:my-2";
|
|
659
|
+
readonly chat: "prose-p:my-0 prose-ul:my-2 prose-ol:my-2 [&_p+p]:mt-2";
|
|
648
660
|
readonly relaxed: "";
|
|
649
661
|
};
|
|
650
662
|
declare const FEATURES: readonly ["images", "variables", "links", "headings", "bold", "italic", "strike"];
|
|
@@ -675,7 +687,7 @@ declare const RichTextProvider: react.ForwardRefExoticComponent<{
|
|
|
675
687
|
initialValue?: any;
|
|
676
688
|
features?: ("bold" | "strike" | "links" | "images" | "variables" | "headings" | "italic")[] | undefined;
|
|
677
689
|
markdown?: boolean | undefined;
|
|
678
|
-
style?: "default" | "condensed" | "relaxed" | undefined;
|
|
690
|
+
style?: "default" | "condensed" | "chat" | "relaxed" | undefined;
|
|
679
691
|
onChange?: ((editor: Editor) => void) | undefined;
|
|
680
692
|
uploadImage?: ((file: File) => Promise<string | null>) | undefined;
|
|
681
693
|
variables?: string[] | undefined;
|
|
@@ -832,16 +844,19 @@ type TableProps<T> = BaseTableProps<T> & PropsWithChildren<{
|
|
|
832
844
|
table: Table$1<T>;
|
|
833
845
|
}> & ({
|
|
834
846
|
pagination?: PaginationState$1;
|
|
847
|
+
paginationAllRowsHref?: string;
|
|
835
848
|
rowCount: number;
|
|
836
849
|
} | {
|
|
837
850
|
pagination?: never;
|
|
851
|
+
paginationAllRowsHref?: never;
|
|
838
852
|
rowCount?: never;
|
|
839
853
|
});
|
|
840
854
|
|
|
841
855
|
declare function useTable<T extends any>(props: UseTableProps<T>): TableProps<T> & {
|
|
842
856
|
table: Table$1<T>;
|
|
843
857
|
};
|
|
844
|
-
declare function Table<T>({ data, loading, error, emptyState, cellRight, sortBy, sortOrder, onSortChange, sortableColumns, className, containerClassName, scrollWrapperClassName, emptyWrapperClassName, thClassName, tdClassName, table, pagination,
|
|
858
|
+
declare function Table<T>({ data, loading, error, emptyState, cellRight, sortBy, sortOrder, onSortChange, sortableColumns, className, containerClassName, scrollWrapperClassName, emptyWrapperClassName, thClassName, tdClassName, table, pagination, paginationAllRowsHref, // to show all rows link in the pagination
|
|
859
|
+
resourceName, onRowClick, onRowAuxClick, onRowSelectionChange, selectionControls, rowProps, rowCount, children, enableColumnResizing, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
845
860
|
|
|
846
861
|
declare function useTablePagination({ pageSize, page, onPageChange, }: {
|
|
847
862
|
pageSize: number;
|
|
@@ -1307,7 +1322,7 @@ declare const tabSelectButtonVariants: (props?: ({
|
|
|
1307
1322
|
declare function TabSelect<T extends string>({ variant, options, selected, onSelect, className, }: VariantProps<typeof tabSelectButtonVariants> & {
|
|
1308
1323
|
options: {
|
|
1309
1324
|
id: T;
|
|
1310
|
-
label:
|
|
1325
|
+
label: ReactNode;
|
|
1311
1326
|
href?: string;
|
|
1312
1327
|
target?: string;
|
|
1313
1328
|
}[];
|
|
@@ -1340,4 +1355,4 @@ declare function Wordmark({ className }: {
|
|
|
1340
1355
|
className?: string;
|
|
1341
1356
|
}): react_jsx_runtime.JSX.Element;
|
|
1342
1357
|
|
|
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,
|
|
1358
|
+
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, DatePicker, DatePickerContext, DatePickerProps, DatePickerTriggerRenderProps, 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, Tooltip, TooltipContent, TooltipProps, TooltipProvider, UTMBuilder, UTM_PARAMETERS, Wordmark, badgeVariants, buttonVariants, 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 };
|