@dub/ui 0.2.25 → 0.2.26
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-2OJKZBDO.mjs +2 -0
- package/dist/chunk-3AO4YGBF.mjs +2 -0
- package/dist/chunk-3QSDWSUT.mjs +2 -0
- package/dist/chunk-3S52DOVE.mjs +2 -0
- package/dist/chunk-4CURZG74.mjs +2 -0
- package/dist/chunk-4DE56BUP.mjs +2 -0
- package/dist/chunk-4HVP26H3.mjs +2 -0
- package/dist/chunk-4I2SGRB6.mjs +2 -0
- package/dist/chunk-4VTUL7ML.mjs +2 -0
- package/dist/chunk-4X6DAFIM.mjs +2 -0
- package/dist/chunk-5HGWIWQU.mjs +2 -0
- package/dist/chunk-5S2FRYYF.mjs +2 -0
- package/dist/chunk-62NHOHH2.mjs +2 -0
- package/dist/chunk-63IK74NX.mjs +2 -0
- package/dist/chunk-6EPSYI5Y.mjs +2 -0
- package/dist/chunk-6KUBQLUO.mjs +2 -0
- package/dist/chunk-6OKYBXH5.mjs +2 -0
- package/dist/chunk-6REQUBM2.mjs +2 -0
- package/dist/chunk-6YC64LOD.mjs +2 -0
- package/dist/chunk-6ZFVXFIK.mjs +2 -0
- package/dist/chunk-6ZHXDMT3.mjs +2 -0
- package/dist/chunk-7CQQCXKB.mjs +2 -0
- package/dist/chunk-7LZJ4BBP.mjs +2 -0
- package/dist/chunk-B4E5ZEEP.mjs +2 -0
- package/dist/chunk-BE6AYVI4.mjs +2 -0
- package/dist/chunk-BYTGI6AX.mjs +2 -0
- package/dist/chunk-CIBHXS67.mjs +2 -0
- package/dist/chunk-COZT5UQA.mjs +2 -0
- package/dist/chunk-CYHHPGN3.mjs +2 -0
- package/dist/chunk-CZCUZ4OO.mjs +2 -0
- package/dist/chunk-D4PH42HB.mjs +2 -0
- package/dist/chunk-D53CRCCK.mjs +2 -0
- package/dist/chunk-DMCA57QR.mjs +2 -0
- package/dist/chunk-DU3FKQXT.mjs +2 -0
- package/dist/chunk-DXTHOXMZ.mjs +2 -0
- package/dist/chunk-FRLM54FH.mjs +2 -0
- package/dist/chunk-H3BFE32J.mjs +2 -0
- package/dist/chunk-HL3BPZKG.mjs +2 -0
- package/dist/chunk-IJDNUOBW.mjs +2 -0
- package/dist/chunk-IUVULGOU.mjs +2 -0
- package/dist/chunk-J3ZF72K2.mjs +2 -0
- package/dist/chunk-J4ZX24WT.mjs +2 -0
- package/dist/chunk-J5AMH4KZ.mjs +2 -0
- package/dist/chunk-JD3PDTCI.mjs +2 -0
- package/dist/chunk-JXZGCS23.mjs +2 -0
- package/dist/chunk-K47BLKLD.mjs +2 -0
- package/dist/chunk-K5AUYBNU.mjs +2 -0
- package/dist/chunk-KNBQRZSW.mjs +2 -0
- package/dist/chunk-KSJAAN77.mjs +2 -0
- package/dist/chunk-LRKVVHWJ.mjs +2 -0
- package/dist/chunk-MIJNFMM4.mjs +2 -0
- package/dist/chunk-MMHSBOGF.mjs +2 -0
- package/dist/chunk-NMGMWV2P.mjs +2 -0
- package/dist/chunk-O6MMFJJY.mjs +2 -0
- package/dist/chunk-PEXKZ6NJ.mjs +2 -0
- package/dist/chunk-PIBTTAU6.mjs +2 -0
- package/dist/chunk-PKRWCMTA.mjs +2 -0
- package/dist/chunk-PORW3WPG.mjs +2 -0
- package/dist/chunk-Q3NBCPKR.mjs +2 -0
- package/dist/chunk-QNTL7AAH.mjs +2 -0
- package/dist/chunk-R4XCA6HD.mjs +2 -0
- package/dist/chunk-RS24RTHK.mjs +2 -0
- package/dist/chunk-RT5V7A7K.mjs +2 -0
- package/dist/chunk-RTPJR4F5.mjs +2 -0
- package/dist/chunk-SCVRCXGY.mjs +2 -0
- package/dist/chunk-SLDNL5CD.mjs +2 -0
- package/dist/chunk-SO4KIVVG.mjs +2 -0
- package/dist/chunk-TMW2TBCM.mjs +2 -0
- package/dist/chunk-UFSN3KU5.mjs +2 -0
- package/dist/chunk-UIVDSOB3.mjs +2 -0
- package/dist/chunk-UNRIUV2D.mjs +2 -0
- package/dist/chunk-UQ3ACZPV.mjs +2 -0
- package/dist/chunk-UWMEKYH3.mjs +2 -0
- package/dist/chunk-VAARVWMM.mjs +2 -0
- package/dist/chunk-VHQYCR5I.mjs +2 -0
- package/dist/chunk-WG7BQBZ2.mjs +2 -0
- package/dist/chunk-WRD7JL2Q.mjs +2 -0
- package/dist/chunk-XNGIQIJO.mjs +2 -0
- package/dist/chunk-XQG7LBSH.mjs +2 -0
- package/dist/icons/index.d.ts +40 -2
- package/dist/icons/index.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +23 -6
- package/dist/index.mjs +6 -6
- 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, { ReactNode, PropsWithChildren, HTMLAttributes, ButtonHTMLAttributes, WheelEventHandler, Dispatch, SetStateAction, ComponentType, SVGProps, InputHTMLAttributes, ComponentProps, MouseEvent, KeyboardEvent as KeyboardEvent$1, RefObject } from 'react';
|
|
3
|
+
import react__default, { ReactNode, PropsWithChildren, HTMLAttributes, ButtonHTMLAttributes, WheelEventHandler, Dispatch, SetStateAction, ComponentType, SVGProps, InputHTMLAttributes, ElementType, ComponentPropsWithoutRef, ComponentProps, MouseEvent, KeyboardEvent as KeyboardEvent$1, RefObject } from 'react';
|
|
4
4
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
5
5
|
import * as class_variance_authority from 'class-variance-authority';
|
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -9,7 +9,7 @@ import Autoplay from 'embla-carousel-autoplay';
|
|
|
9
9
|
import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
10
10
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
11
11
|
import { Icon, GlobePointer, SatelliteDish, Flag6, InputSearch, Page2, Gift, Hyperlink, Raycast, Typescript, Book2Fill, FeatherFill, Twitter } from './icons/index.js';
|
|
12
|
-
export { Africa, Airtm, Amazon,
|
|
12
|
+
export { Africa, Airtm, Amazon, AndroidLogo, AppleLogo, ArrowBoldUp, ArrowRight, ArrowTrendUp, ArrowTurnLeft, ArrowTurnRight2, ArrowUpRight, ArrowsOppositeDirectionY, Asia, BadgeCheck, BadgeCheck2Fill, Blog, Bolt, BoltFill, Book2, Book2Fill, Book2Small, BookOpen, Books2, BoxArchive, BulletList, BulletListFill, Calendar6, CalendarDays, CalendarIcon, CalendarRefresh, CardAmex, CardDiscover, CardMastercard, CardVisa, Cards, CaretUpFill, CashApp, ChartActivity2, ChartArea2, ChartLine, ChatGPT, Check, Check2, CheckboxCheckedFill, CheckboxUnchecked, CircleCheck, CircleCheckFill, CircleDollar, CircleDotted, CircleHalfDottedCheck, CircleHalfDottedClock, CircleInfo, CirclePercentage, CirclePlay, CirclePlayFill, CircleQuestion, CircleUser, CircleWarning, CircleXmark, Circles, Circles3, CloudUpload, Code, ColorPalette2, ConnectedDots, ConnectedDots4, ConnectedDotsFill, Connections3, Copy, CreditCard, Crosshairs3, Crown, CrownSmall, Cube, CubeSettings, CubeSettingsFill, CurrencyDollar, CursorRays, DatabaseKey, Desktop, DiamondTurnRight, Directions, Discount, Dots, Download, DubCraftedShield, Duplicate, Earth, EarthPosition, EnvelopeAlert, EnvelopeArrowRight, Europe, ExpandingArrow, Eye, EyeSlash, Facebook, FeatherFill, Figma, FileContent, FileZip2, Filter2, FilterBars, Flag2, Flag6, FlagWavy, Flask, 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, Headset, HeadsetFill, HeartFill, HexadecagonStar, History, Hyperlink, Icon, Icosahedron, Incognito, InputPassword, InputPasswordPointer, InputSearch, Instagram, InvoiceDollar, Key, LayoutSidebar, License, LinesY, Link4, LinkBroken, LinkedIn, LoadingCircle, LoadingDots, LoadingSpinner, LocationPin, LockFill, Magic, Magnifier, MapPosition, MarketingTarget, MatrixLines, Menu3, MessageSmile, MobilePhone, MoneyBill, MoneyBill2, MoneyBills2, NorthAmerica, Note, NucleoPhoto, Oceania, OfficeBuilding, Page2, Paintbrush, Palette2, PaperPlane, Payoneer, Paypal, Pen2, PenWriting, PercentageArrowDown, Photo, Php, Plug2, Plus, Post, Prisma, ProductHunt, Pyramid, Python, QRCode, Raycast, Receipt2, ReferredVia, Refresh2, Robot, Ruby, SatelliteDish, ScanText, Scribble, ShieldAlert, ShieldCheck, ShieldKeyhole, ShieldSlash, Shuffle, Slack, Sliders, SortOrder, SouthAmerica, Sparkle3, Spotify, SquareChart, SquareLayoutGrid5, SquareLayoutGrid6, SquareXmark, Stars2, StripeLink, Success, TV, TableIcon, TableRows2, Tablet, Tag, Tags, Tick, TikTok, Timer2, Tinybird, Toggle2Fill, Trash, Twitter, Typescript, UiCard, Unsplash, User, UserCheck, UserCrown, UserDelete, UserPlus, Users, Users2, Users6, UsersSettings, Venmo, Versions2, Views, Watch, Webhook, Window, WindowSearch, WindowSettings, Xmark, YouTube } from './icons/index.js';
|
|
13
13
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
14
14
|
import { DayPickerSingleProps, DayPickerRangeProps, Matcher } from 'react-day-picker';
|
|
15
15
|
export { Matcher } from 'react-day-picker';
|
|
@@ -58,7 +58,7 @@ declare function TokenAvatar({ id, className, }: {
|
|
|
58
58
|
}): react_jsx_runtime.JSX.Element;
|
|
59
59
|
|
|
60
60
|
declare const badgeVariants: (props?: ({
|
|
61
|
-
variant?: "black" | "blue" | "gray" | "green" | "violet" | "default" | "sky" | "neutral" | "blueGradient" | "rainbow" | null | undefined;
|
|
61
|
+
variant?: "black" | "blue" | "gray" | "green" | "violet" | "default" | "sky" | "neutral" | "amber" | "blueGradient" | "rainbow" | null | undefined;
|
|
62
62
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
63
63
|
interface BadgeProps$1 extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
64
64
|
}
|
|
@@ -297,7 +297,7 @@ type EmptyStateProps = PropsWithChildren<{
|
|
|
297
297
|
}>;
|
|
298
298
|
declare function EmptyState({ icon: Icon, title, description, learnMore, children, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
299
299
|
|
|
300
|
-
type AcceptedFileFormats = "any" | "images" | "csv";
|
|
300
|
+
type AcceptedFileFormats = "any" | "images" | "csv" | "documents" | "programResourceFiles";
|
|
301
301
|
declare const imageUploadVariants: (props?: ({
|
|
302
302
|
variant?: "default" | "plain" | null | undefined;
|
|
303
303
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
@@ -476,6 +476,15 @@ declare function InputSelect({ items, selectedItem, setSelectedItem, className,
|
|
|
476
476
|
|
|
477
477
|
declare const Label: react.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & react.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_dist_types.ClassProp | undefined) => string> & react.RefAttributes<HTMLLabelElement>>;
|
|
478
478
|
|
|
479
|
+
type MenuItemProps<T extends ElementType> = PropsWithChildren<ComponentPropsWithoutRef<T>> & {
|
|
480
|
+
as?: T;
|
|
481
|
+
} & {
|
|
482
|
+
variant?: "default" | "danger";
|
|
483
|
+
icon?: Icon | ReactNode;
|
|
484
|
+
shortcut?: string;
|
|
485
|
+
};
|
|
486
|
+
declare function MenuItem<T extends ElementType>({ as, variant, children, icon: Icon, shortcut, className, ...rest }: MenuItemProps<T>): react_jsx_runtime.JSX.Element;
|
|
487
|
+
|
|
479
488
|
type MiniAreaChartProps = {
|
|
480
489
|
data: {
|
|
481
490
|
date: Date;
|
|
@@ -668,6 +677,10 @@ declare function ButtonTooltip({ children, tooltipProps, ...props }: {
|
|
|
668
677
|
children: ReactNode;
|
|
669
678
|
tooltipProps: TooltipProps;
|
|
670
679
|
} & ButtonProps): react_jsx_runtime.JSX.Element;
|
|
680
|
+
declare function DynamicTooltipWrapper({ children, tooltipProps, }: {
|
|
681
|
+
children: ReactNode;
|
|
682
|
+
tooltipProps?: TooltipProps;
|
|
683
|
+
}): string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | react.PromiseLikeOfReactNode | null | undefined;
|
|
671
684
|
|
|
672
685
|
declare const UTM_PARAMETERS: readonly [{
|
|
673
686
|
readonly key: "utm_source";
|
|
@@ -717,7 +730,9 @@ declare function UTMBuilder({ values, onChange, disabled, autoFocus, disabledToo
|
|
|
717
730
|
|
|
718
731
|
declare function useCookies<T>(key: string, initialValue: T, opts?: Cookies.CookieAttributes): [T, (value: T) => void];
|
|
719
732
|
|
|
720
|
-
declare const useCopyToClipboard: (timeout?: number) => [boolean, (value: string | ClipboardItem
|
|
733
|
+
declare const useCopyToClipboard: (timeout?: number) => [boolean, (value: string | ClipboardItem, options?: {
|
|
734
|
+
onSuccess?: () => void;
|
|
735
|
+
}) => Promise<void>];
|
|
721
736
|
|
|
722
737
|
declare function useCurrentAnchor(): string | undefined;
|
|
723
738
|
|
|
@@ -755,6 +770,7 @@ declare function KeyboardShortcutProvider({ children, }: {
|
|
|
755
770
|
}): react_jsx_runtime.JSX.Element;
|
|
756
771
|
declare function useKeyboardShortcut(key: KeyboardShortcutListener["key"], callback: (e: KeyboardEvent) => void, options?: {
|
|
757
772
|
modal?: boolean;
|
|
773
|
+
sheet?: boolean;
|
|
758
774
|
} & Pick<KeyboardShortcutListener, "enabled" | "priority">): void;
|
|
759
775
|
|
|
760
776
|
declare function useLocalStorage<T>(key: string, initialValue: T): [T, (value: T) => void];
|
|
@@ -1269,6 +1285,7 @@ declare function TabSelect<T extends string>({ variant, options, selected, onSel
|
|
|
1269
1285
|
options: {
|
|
1270
1286
|
id: T;
|
|
1271
1287
|
label: string;
|
|
1288
|
+
href?: string;
|
|
1272
1289
|
}[];
|
|
1273
1290
|
selected: string | null;
|
|
1274
1291
|
onSelect?: Dispatch<SetStateAction<T>> | ((id: T) => void);
|
|
@@ -1297,4 +1314,4 @@ declare function Wordmark({ className }: {
|
|
|
1297
1314
|
className?: string;
|
|
1298
1315
|
}): react_jsx_runtime.JSX.Element;
|
|
1299
1316
|
|
|
1300
|
-
export { AUTOPLAY_DEFAULT_DELAY, Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AnimatedSizeContainer, AuthButton, Avatar, Background, Badge, BadgeTooltip, BlurImage, Button, ButtonProps, ButtonTooltip, COMPANY, COMPARE_PAGES, CUSTOMER_STORIES, Calendar, CardList, Carousel, CarouselApi, CarouselContent, CarouselItem, CarouselNavBar, CarouselNext, CarouselPrevious, CarouselThumbnail, CarouselThumbnails, Checkbox, ClientOnly, Combobox, ComboboxOption, ComboboxProps, CompositeLogo, CopyButton, CopyText, DatePickerContext, DateRangePicker, EmptyState, EmptyStateProps, FEATURES_LIST, FileUpload, FileUploadProps, Filter, Footer, Form, Grid, IconMenu, InfoTooltip, InlineSnippet, Input, InputProps, InputSelect, InputSelectItemProps, KeyboardShortcutContext, KeyboardShortcutProvider, LEGAL_PAGES, Label, LinkLogo, LinkPreview, LinkPreviewPlaceholder, LinkifyTooltipContent, Logo, MaxWidthWrapper, MiniAreaChart, MiniAreaChartProps, Modal, Nav, NavContext, NavMobile, NavTheme, NavWordmark, NumberTooltip, PaginationControls, PaginationState, Popover, PopoverProps, Popup, PopupContext, ProgressBar, RESOURCES, RadioGroup, RadioGroupItem, SDKS, SOCIAL_LINKS, Sheet, ShimmerDots, SimpleTooltipContent, StatusBadge, Switch, TabSelect, Table, ToggleGroup, TokenAvatar, Tooltip, TooltipContent, TooltipProps, TooltipProvider, UTMBuilder, UTM_PARAMETERS, Wordmark, badgeVariants, buttonVariants, getUserAvatarUrl, navItems, statusBadgeVariants, useCarousel, useCarouselActiveIndex, useCookies, useCopyToClipboard, useCurrentAnchor, useEnterSubmit, useInViewport, useInputFocused, useIntersectionObserver, useKeyboardShortcut, useLocalStorage, useMediaQuery, useOptimisticUpdate, usePagination, useRemoveGAParams, useResizeObserver, useRouterStuff, useScroll, useScrollProgress, useTable, useTablePagination, useToastWithUndo };
|
|
1317
|
+
export { AUTOPLAY_DEFAULT_DELAY, Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AnimatedSizeContainer, AuthButton, Avatar, Background, Badge, BadgeTooltip, BlurImage, Button, ButtonProps, ButtonTooltip, COMPANY, COMPARE_PAGES, CUSTOMER_STORIES, Calendar, CardList, Carousel, CarouselApi, CarouselContent, CarouselItem, CarouselNavBar, CarouselNext, CarouselPrevious, CarouselThumbnail, CarouselThumbnails, Checkbox, ClientOnly, Combobox, ComboboxOption, ComboboxProps, CompositeLogo, CopyButton, CopyText, DatePickerContext, DateRangePicker, DynamicTooltipWrapper, EmptyState, EmptyStateProps, FEATURES_LIST, FileUpload, FileUploadProps, Filter, Footer, Form, Grid, IconMenu, InfoTooltip, InlineSnippet, Input, InputProps, InputSelect, InputSelectItemProps, KeyboardShortcutContext, KeyboardShortcutProvider, LEGAL_PAGES, Label, LinkLogo, LinkPreview, LinkPreviewPlaceholder, LinkifyTooltipContent, Logo, MaxWidthWrapper, MenuItem, MiniAreaChart, MiniAreaChartProps, Modal, Nav, NavContext, NavMobile, NavTheme, NavWordmark, NumberTooltip, PaginationControls, PaginationState, Popover, PopoverProps, Popup, PopupContext, ProgressBar, RESOURCES, RadioGroup, RadioGroupItem, SDKS, SOCIAL_LINKS, Sheet, ShimmerDots, SimpleTooltipContent, StatusBadge, Switch, TabSelect, Table, ToggleGroup, TokenAvatar, Tooltip, TooltipContent, TooltipProps, TooltipProvider, UTMBuilder, UTM_PARAMETERS, Wordmark, badgeVariants, buttonVariants, getUserAvatarUrl, navItems, statusBadgeVariants, useCarousel, useCarouselActiveIndex, useCookies, useCopyToClipboard, useCurrentAnchor, useEnterSubmit, useInViewport, useInputFocused, useIntersectionObserver, useKeyboardShortcut, useLocalStorage, useMediaQuery, useOptimisticUpdate, usePagination, useRemoveGAParams, useResizeObserver, useRouterStuff, useScroll, useScrollProgress, useTable, useTablePagination, useToastWithUndo };
|