doodleui-react 0.4.0 → 0.6.0

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/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { CSSProperties, HTMLAttributes, ReactNode, RefObject, ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, ComponentPropsWithoutRef, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from 'react';
2
+ import { CSSProperties, HTMLAttributes, ReactNode, RefObject, ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, ComponentPropsWithoutRef, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, SelectHTMLAttributes, ReactElement } from 'react';
3
3
  import { Options } from 'roughjs/bin/core';
4
4
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
5
5
  import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
@@ -18,6 +18,16 @@ import * as PopoverPrimitive from '@radix-ui/react-popover';
18
18
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
19
19
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
20
20
  import { Command as Command$1, CommandEmpty as CommandEmpty$1, CommandGroup as CommandGroup$1, CommandInput as CommandInput$1, CommandItem as CommandItem$1, CommandList as CommandList$1, CommandSeparator as CommandSeparator$1 } from 'cmdk';
21
+ import * as TogglePrimitive from '@radix-ui/react-toggle';
22
+ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
23
+ import { OTPInput } from 'input-otp';
24
+ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
25
+ import * as ResizablePrimitive from 'react-resizable-panels';
26
+ import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
27
+ import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
28
+ import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
29
+ import * as MenubarPrimitive from '@radix-ui/react-menubar';
30
+ import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
21
31
 
22
32
  type FillStyle = "hachure" | "solid" | "zigzag" | "cross-hatch" | "dots" | "dashed" | "zigzag-line";
23
33
  type RoughShape = "rectangle" | "ellipse" | "line" | "line-vertical" | "path";
@@ -773,4 +783,407 @@ interface ComboboxProps extends SketchProps {
773
783
  */
774
784
  declare function Combobox({ options, placeholder, searchPlaceholder, emptyMessage, value, defaultValue, onValueChange, disabled, className, style, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, "aria-label": ariaLabel, }: ComboboxProps): react.JSX.Element;
775
785
 
776
- export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, AlertDialogPortal, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertProps, type AlertVariant, Avatar, type AvatarProps, type AvatarShape, type AvatarStatus, Badge, type BadgeProps, type BadgeVariant, Breadcrumb, BreadcrumbItem, type BreadcrumbItemProps, type BreadcrumbProps, type BreadcrumbSeparator, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Combobox, type ComboboxProps, Command, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, DEFAULT_BOWING, DEFAULT_INK, DEFAULT_ROUGHNESS, DEFAULT_STROKE_WIDTH, DRAW_IN_ALERT_MS, DRAW_IN_DURATION_MS, DRAW_IN_MARK_MS, DRAW_IN_TOOLTIP_MS, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, DialogPortal, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, Divider, type DividerOrientation, type DividerProps, type DoodleUIContextValue, DoodleUIProvider, type DoodleUIProviderProps, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSub, DropdownMenuTrigger, type FillStyle, Input, type InputProps, Label, type LabelProps, Modal, ModalClose, ModalDescription, type ModalProps, ModalRoot, ModalTitle, ModalTrigger, Pagination, type PaginationProps, Popover, PopoverAnchor, PopoverArrow, PopoverClose, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RoughShape, RoughSvg, type RoughSvgProps, SKETCH_COLORS, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, type SelectItemProps, SelectLabel, type SelectOption, type SelectProps, SelectRoot, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Skeleton, type SkeletonProps, type SkeletonVariant, SketchBox, type SketchBoxProps, type SketchProps, type SketchSeedContextValue, SketchSeedProvider, type SketchSeedProviderProps, Slider, type SliderProps, type SliderThumbShape, Stepper, type StepperOrientation, type StepperProps, type StepperStep, Switch, type SwitchProps, TABLE_STAGGER_MS, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, TableCell, type TableCellProps, TableHead, TableHeaderCell, type TableHeaderCellProps, type TableProps, TableRow, Tabs, type TabsProps, Textarea, type TextareaProps, Toast, ToastAction, ToastClose, ToastDescription, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, ToastRoot, ToastTitle, type ToastVariant, ToastViewport, Tooltip, type TooltipProps, TooltipProvider, deriveSeed, toRoughOptions, useAnimate, useDoodleUI, useDrawIn, useResolvedSeed, useSketchSeed };
786
+ interface KbdProps extends Omit<HTMLAttributes<HTMLElement>, "color">, SketchProps {
787
+ /**
788
+ * Draw-in the border on mount. Defaults to the DoodleUIProvider value (true).
789
+ */
790
+ animate?: boolean;
791
+ }
792
+ declare const Kbd: react.ForwardRefExoticComponent<KbdProps & react.RefAttributes<HTMLElement>>;
793
+
794
+ type SpinnerSize = "sm" | "md" | "lg";
795
+ interface SpinnerProps extends Omit<HTMLAttributes<HTMLDivElement>, "color">, SketchProps {
796
+ size?: SpinnerSize;
797
+ /**
798
+ * Continuous rotation. Defaults to the DoodleUIProvider value (true).
799
+ * Reduced motion shows a static arc.
800
+ */
801
+ animate?: boolean;
802
+ }
803
+ declare const Spinner: react.ForwardRefExoticComponent<SpinnerProps & react.RefAttributes<HTMLDivElement>>;
804
+
805
+ type ToggleSize = "sm" | "md" | "lg";
806
+ interface ToggleProps extends Omit<TogglePrimitive.ToggleProps, "asChild">, SketchProps {
807
+ size?: ToggleSize;
808
+ /**
809
+ * Draw-in on mount and seed morph on press.
810
+ * Defaults to the DoodleUIProvider value (true).
811
+ */
812
+ animate?: boolean;
813
+ }
814
+ declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<HTMLButtonElement>>;
815
+
816
+ type ToggleGroupProps = SketchProps & {
817
+ children?: ReactNode;
818
+ size?: ToggleSize;
819
+ animate?: boolean;
820
+ } & (({
821
+ type?: "single";
822
+ } & Omit<ToggleGroupPrimitive.ToggleGroupSingleProps, "type" | "children">) | ({
823
+ type: "multiple";
824
+ } & Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps, "type" | "children">));
825
+ declare function ToggleGroup(props: ToggleGroupProps): react.JSX.Element;
826
+ interface ToggleGroupItemProps extends Omit<ToggleGroupPrimitive.ToggleGroupItemProps, "asChild"> {
827
+ children?: ReactNode;
828
+ }
829
+ declare const ToggleGroupItem: react.ForwardRefExoticComponent<ToggleGroupItemProps & react.RefAttributes<HTMLButtonElement>>;
830
+
831
+ interface InputGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "color">, SketchProps {
832
+ children?: ReactNode;
833
+ animate?: boolean;
834
+ }
835
+ declare function InputGroup({ children, className, style, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, onFocus, onBlur, ...rest }: InputGroupProps): react.JSX.Element;
836
+ interface InputGroupAddonProps extends HTMLAttributes<HTMLSpanElement> {
837
+ align?: "inline-start" | "inline-end";
838
+ }
839
+ declare const InputGroupAddon: react.ForwardRefExoticComponent<InputGroupAddonProps & react.RefAttributes<HTMLSpanElement>>;
840
+ interface InputGroupInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "color" | "size"> {
841
+ }
842
+ declare const InputGroupInput: react.ForwardRefExoticComponent<InputGroupInputProps & react.RefAttributes<HTMLInputElement>>;
843
+ interface InputGroupButtonProps extends HTMLAttributes<HTMLSpanElement> {
844
+ }
845
+ declare const InputGroupButton: react.ForwardRefExoticComponent<InputGroupButtonProps & react.RefAttributes<HTMLSpanElement>>;
846
+
847
+ interface InputOTPProps extends Omit<ComponentPropsWithoutRef<typeof OTPInput>, "render">, SketchProps {
848
+ animate?: boolean;
849
+ }
850
+ declare const InputOTP: react.ForwardRefExoticComponent<InputOTPProps & react.RefAttributes<HTMLInputElement>>;
851
+ interface InputOTPGroupProps extends HTMLAttributes<HTMLDivElement> {
852
+ children?: ReactNode;
853
+ }
854
+ declare const InputOTPGroup: react.ForwardRefExoticComponent<InputOTPGroupProps & react.RefAttributes<HTMLDivElement>>;
855
+ interface InputOTPSlotProps extends HTMLAttributes<HTMLDivElement> {
856
+ index: number;
857
+ }
858
+ declare const InputOTPSlot: react.ForwardRefExoticComponent<InputOTPSlotProps & react.RefAttributes<HTMLDivElement>>;
859
+ interface InputOTPSeparatorProps extends HTMLAttributes<HTMLSpanElement> {
860
+ }
861
+ declare const InputOTPSeparator: react.ForwardRefExoticComponent<InputOTPSeparatorProps & react.RefAttributes<HTMLSpanElement>>;
862
+
863
+ interface ScrollAreaProps extends Omit<ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>, "children">, SketchProps {
864
+ children?: ReactNode;
865
+ animate?: boolean;
866
+ }
867
+ declare const ScrollArea: react.ForwardRefExoticComponent<ScrollAreaProps & react.RefAttributes<HTMLDivElement>>;
868
+ declare const ScrollAreaViewport: react.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaViewportProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
869
+ interface ScrollBarProps extends ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar> {
870
+ }
871
+ declare const ScrollBar: react.ForwardRefExoticComponent<ScrollBarProps & react.RefAttributes<HTMLDivElement>>;
872
+ declare const ScrollAreaCorner: react.ForwardRefExoticComponent<ScrollAreaPrimitive.ScrollAreaCornerProps & react.RefAttributes<HTMLDivElement>>;
873
+
874
+ type ResizablePanelGroupProps = ComponentPropsWithoutRef<typeof ResizablePrimitive.PanelGroup> & SketchProps;
875
+ declare function ResizablePanelGroup({ className, style, ...rest }: ResizablePanelGroupProps): react.JSX.Element;
876
+ declare const ResizablePanel: react.ForwardRefExoticComponent<Omit<react.HTMLAttributes<HTMLElement | HTMLDivElement | HTMLObjectElement | HTMLStyleElement | HTMLSlotElement | HTMLTitleElement | HTMLLinkElement | HTMLButtonElement | HTMLMeterElement | HTMLTextAreaElement | HTMLProgressElement | HTMLTableElement | HTMLEmbedElement | HTMLPreElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLMapElement | HTMLMetaElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLParagraphElement | HTMLPictureElement | HTMLScriptElement | HTMLSelectElement | HTMLSourceElement | HTMLSpanElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement>, "id" | "onResize"> & {
877
+ className?: string | undefined;
878
+ collapsedSize?: number | undefined;
879
+ collapsible?: boolean | undefined;
880
+ defaultSize?: number | undefined;
881
+ id?: string | undefined;
882
+ maxSize?: number | undefined;
883
+ minSize?: number | undefined;
884
+ onCollapse?: ResizablePrimitive.PanelOnCollapse | undefined;
885
+ onExpand?: ResizablePrimitive.PanelOnExpand | undefined;
886
+ onResize?: ResizablePrimitive.PanelOnResize | undefined;
887
+ order?: number | undefined;
888
+ style?: object | undefined;
889
+ tagName?: keyof HTMLElementTagNameMap | undefined;
890
+ } & {
891
+ children?: react.ReactNode;
892
+ } & react.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
893
+ interface ResizableHandleProps extends ComponentPropsWithoutRef<typeof ResizablePrimitive.PanelResizeHandle>, SketchProps {
894
+ withHandle?: boolean;
895
+ }
896
+ declare function ResizableHandle({ className, style, withHandle, roughness, seed, sketchColor, bowing, strokeWidth, ...rest }: ResizableHandleProps): react.JSX.Element;
897
+
898
+ interface HoverCardProps extends Omit<ComponentPropsWithoutRef<typeof HoverCardPrimitive.Root>, "children">, SketchProps {
899
+ children?: ReactNode;
900
+ animate?: boolean;
901
+ }
902
+ declare function HoverCard({ children, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, ...rest }: HoverCardProps): react.JSX.Element;
903
+ declare const HoverCardTrigger: react.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & react.RefAttributes<HTMLAnchorElement>>;
904
+ interface HoverCardContentProps extends ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content> {
905
+ children?: ReactNode;
906
+ }
907
+ declare const HoverCardContent: react.ForwardRefExoticComponent<HoverCardContentProps & react.RefAttributes<HTMLDivElement>>;
908
+ declare const HoverCardArrow: react.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardArrowProps & react.RefAttributes<SVGSVGElement>>;
909
+
910
+ interface ContextMenuProps extends Omit<ContextMenuPrimitive.ContextMenuProps, "children">, SketchProps {
911
+ children?: ReactNode;
912
+ /**
913
+ * Draw-in the panel border when the menu opens.
914
+ * Defaults to the DoodleUIProvider value (true).
915
+ */
916
+ animate?: boolean;
917
+ }
918
+ declare function ContextMenu({ children, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, ...rest }: ContextMenuProps): react.JSX.Element;
919
+ declare const ContextMenuTrigger: react.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & react.RefAttributes<HTMLSpanElement>>;
920
+ declare const ContextMenuGroup: react.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & react.RefAttributes<HTMLDivElement>>;
921
+ declare const ContextMenuRadioGroup: react.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & react.RefAttributes<HTMLDivElement>>;
922
+ declare const ContextMenuSub: react.FC<ContextMenuPrimitive.ContextMenuSubProps>;
923
+ interface ContextMenuContentProps extends Omit<ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>, "asChild"> {
924
+ children?: ReactNode;
925
+ }
926
+ declare const ContextMenuContent: react.ForwardRefExoticComponent<ContextMenuContentProps & react.RefAttributes<HTMLDivElement>>;
927
+ interface ContextMenuItemProps extends Omit<ContextMenuPrimitive.ContextMenuItemProps, "asChild"> {
928
+ children?: ReactNode;
929
+ inset?: boolean;
930
+ }
931
+ declare const ContextMenuItem: react.ForwardRefExoticComponent<ContextMenuItemProps & react.RefAttributes<HTMLDivElement>>;
932
+ interface ContextMenuCheckboxItemProps extends Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps, "asChild"> {
933
+ children?: ReactNode;
934
+ }
935
+ declare const ContextMenuCheckboxItem: react.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & react.RefAttributes<HTMLDivElement>>;
936
+ interface ContextMenuRadioItemProps extends Omit<ContextMenuPrimitive.ContextMenuRadioItemProps, "asChild"> {
937
+ children?: ReactNode;
938
+ }
939
+ declare const ContextMenuRadioItem: react.ForwardRefExoticComponent<ContextMenuRadioItemProps & react.RefAttributes<HTMLDivElement>>;
940
+ interface ContextMenuLabelProps extends Omit<ContextMenuPrimitive.ContextMenuLabelProps, "asChild"> {
941
+ children?: ReactNode;
942
+ }
943
+ declare const ContextMenuLabel: react.ForwardRefExoticComponent<ContextMenuLabelProps & react.RefAttributes<HTMLDivElement>>;
944
+ interface ContextMenuSeparatorProps extends Omit<ContextMenuPrimitive.ContextMenuSeparatorProps, "asChild"> {
945
+ }
946
+ declare const ContextMenuSeparator: react.ForwardRefExoticComponent<ContextMenuSeparatorProps & react.RefAttributes<HTMLDivElement>>;
947
+
948
+ interface NavigationMenuProps extends Omit<ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>, "children">, SketchProps {
949
+ children?: ReactNode;
950
+ animate?: boolean;
951
+ }
952
+ declare function NavigationMenu({ children, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, ...rest }: NavigationMenuProps): react.JSX.Element;
953
+ declare const NavigationMenuList: react.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & react.RefAttributes<HTMLUListElement>, "ref"> & react.RefAttributes<HTMLUListElement>>;
954
+ declare const NavigationMenuItem: react.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & react.RefAttributes<HTMLLIElement>>;
955
+ declare const NavigationMenuTrigger: react.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
956
+ declare const NavigationMenuContent: react.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
957
+ declare const NavigationMenuLink: react.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & react.RefAttributes<HTMLAnchorElement>>;
958
+ declare const NavigationMenuViewport: react.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
959
+ declare const NavigationMenuIndicator: react.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
960
+ interface NavigationMenuItemLinkProps extends ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Link> {
961
+ active?: boolean;
962
+ }
963
+ declare const NavigationMenuItemLink: react.ForwardRefExoticComponent<NavigationMenuItemLinkProps & react.RefAttributes<HTMLAnchorElement>>;
964
+
965
+ interface MenubarProps extends Omit<ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>, "children">, SketchProps {
966
+ children?: ReactNode;
967
+ animate?: boolean;
968
+ }
969
+ declare function Menubar({ children, className, style, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, ...rest }: MenubarProps): react.JSX.Element;
970
+ declare const MenubarMenu: typeof MenubarPrimitive.Menu;
971
+ declare const MenubarTrigger: react.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
972
+ declare const MenubarContent: react.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
973
+ declare const MenubarItem: react.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
974
+ declare const MenubarSeparator: react.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
975
+ declare const MenubarLabel: react.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
976
+ declare const MenubarShortcut: react.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLSpanElement>>;
977
+ declare const MenubarSub: react.FC<MenubarPrimitive.MenubarSubProps>;
978
+ declare const MenubarSubTrigger: react.ForwardRefExoticComponent<MenubarPrimitive.MenubarSubTriggerProps & react.RefAttributes<HTMLDivElement>>;
979
+ declare const MenubarSubContent: react.ForwardRefExoticComponent<MenubarPrimitive.MenubarSubContentProps & react.RefAttributes<HTMLDivElement>>;
980
+ declare const MenubarCheckboxItem: react.ForwardRefExoticComponent<MenubarPrimitive.MenubarCheckboxItemProps & react.RefAttributes<HTMLDivElement>>;
981
+ declare const MenubarRadioGroup: react.ForwardRefExoticComponent<MenubarPrimitive.MenubarRadioGroupProps & react.RefAttributes<HTMLDivElement>>;
982
+ declare const MenubarRadioItem: react.ForwardRefExoticComponent<MenubarPrimitive.MenubarRadioItemProps & react.RefAttributes<HTMLDivElement>>;
983
+
984
+ type SlidingPanelSide = "top" | "right" | "bottom" | "left";
985
+ interface SlidingPanelRootProps extends Omit<DialogPrimitive.DialogProps, "children">, SketchProps {
986
+ children?: ReactNode;
987
+ side?: SlidingPanelSide;
988
+ animate?: boolean;
989
+ }
990
+ interface SlidingPanelContentProps extends Omit<DialogPrimitive.DialogContentProps, "asChild" | "forceMount"> {
991
+ children?: ReactNode;
992
+ contentStyle?: CSSProperties;
993
+ /** Extra chrome above panel content (e.g. drawer handle). */
994
+ chrome?: ReactNode;
995
+ }
996
+ interface SlidingPanelHeaderProps {
997
+ children?: ReactNode;
998
+ className?: string;
999
+ style?: CSSProperties;
1000
+ }
1001
+ declare function SlidingPanelHeader({ children, className, style, }: SlidingPanelHeaderProps): react.JSX.Element;
1002
+ interface SlidingPanelFooterProps {
1003
+ children?: ReactNode;
1004
+ className?: string;
1005
+ style?: CSSProperties;
1006
+ }
1007
+ declare function SlidingPanelFooter({ children, className, style, }: SlidingPanelFooterProps): react.JSX.Element;
1008
+
1009
+ type SheetProps = SlidingPanelRootProps & {
1010
+ side?: SlidingPanelSide;
1011
+ };
1012
+ declare function Sheet({ side, ...rest }: SheetProps): react.JSX.Element;
1013
+ declare const SheetTrigger: react.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
1014
+ declare const SheetClose: react.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
1015
+ type SheetContentProps = SlidingPanelContentProps;
1016
+ declare const SheetContent: react.ForwardRefExoticComponent<SlidingPanelContentProps & react.RefAttributes<HTMLDivElement>>;
1017
+ declare const SheetHeader: typeof SlidingPanelHeader;
1018
+ declare const SheetFooter: typeof SlidingPanelFooter;
1019
+ declare const SheetTitle: react.ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>>;
1020
+ declare const SheetDescription: react.ForwardRefExoticComponent<DialogPrimitive.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
1021
+
1022
+ type DrawerProps = Omit<SlidingPanelRootProps, "side">;
1023
+ declare function Drawer(props: DrawerProps): react.JSX.Element;
1024
+ declare const DrawerTrigger: react.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
1025
+ declare const DrawerClose: react.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
1026
+ declare const DrawerHandle: react.ForwardRefExoticComponent<{
1027
+ className?: string;
1028
+ } & react.RefAttributes<HTMLDivElement>>;
1029
+ type DrawerContentProps = Omit<SlidingPanelContentProps, "chrome">;
1030
+ declare const DrawerContent: react.ForwardRefExoticComponent<DrawerContentProps & react.RefAttributes<HTMLDivElement>>;
1031
+ declare const DrawerHeader: typeof SlidingPanelHeader;
1032
+ declare const DrawerFooter: typeof SlidingPanelFooter;
1033
+ declare const DrawerTitle: react.ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>>;
1034
+ declare const DrawerDescription: react.ForwardRefExoticComponent<DialogPrimitive.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
1035
+
1036
+ interface AspectRatioProps extends SketchProps {
1037
+ ratio?: number;
1038
+ /** Wrap content in a hand-drawn frame. Default false — ratio box only. */
1039
+ bordered?: boolean;
1040
+ className?: string;
1041
+ style?: CSSProperties;
1042
+ children?: ReactNode;
1043
+ animate?: boolean;
1044
+ }
1045
+ declare function AspectRatio({ ratio, bordered, className, style, children, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, }: AspectRatioProps): react.JSX.Element;
1046
+
1047
+ interface NativeSelectOption {
1048
+ value: string;
1049
+ label: ReactNode;
1050
+ disabled?: boolean;
1051
+ }
1052
+ interface NativeSelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, "color" | "size">, SketchProps {
1053
+ options?: NativeSelectOption[];
1054
+ /** Draw-in the border on mount. Defaults to DoodleUIProvider (true). */
1055
+ animate?: boolean;
1056
+ className?: string;
1057
+ style?: CSSProperties;
1058
+ }
1059
+ declare const NativeSelect: react.ForwardRefExoticComponent<NativeSelectProps & react.RefAttributes<HTMLSelectElement>>;
1060
+
1061
+ interface EmptyProps extends Omit<HTMLAttributes<HTMLDivElement>, "color">, SketchProps {
1062
+ bordered?: boolean;
1063
+ animate?: boolean;
1064
+ }
1065
+ declare const Empty: react.ForwardRefExoticComponent<EmptyProps & react.RefAttributes<HTMLDivElement>>;
1066
+ declare function EmptyMedia({ className, style, children, }: HTMLAttributes<HTMLDivElement>): react.JSX.Element;
1067
+ declare function EmptyTitle({ className, style, children, }: HTMLAttributes<HTMLHeadingElement>): react.JSX.Element;
1068
+ declare function EmptyDescription({ className, style, children, }: HTMLAttributes<HTMLParagraphElement>): react.JSX.Element;
1069
+ declare function EmptyAction({ className, style, children, }: HTMLAttributes<HTMLDivElement>): react.JSX.Element;
1070
+
1071
+ interface FieldProps extends HTMLAttributes<HTMLDivElement> {
1072
+ invalid?: boolean;
1073
+ error?: ReactNode;
1074
+ }
1075
+ declare function Field({ className, style, children, invalid, error, ...rest }: FieldProps): react.JSX.Element;
1076
+ interface FieldLabelProps extends Omit<React.ComponentProps<typeof Label>, "htmlFor"> {
1077
+ }
1078
+ declare function FieldLabel({ className, style, ...rest }: FieldLabelProps): react.JSX.Element;
1079
+ declare function FieldDescription({ className, style, children, ...rest }: HTMLAttributes<HTMLParagraphElement>): react.JSX.Element;
1080
+ declare function FieldError({ className, style, children, ...rest }: HTMLAttributes<HTMLParagraphElement>): react.JSX.Element | null;
1081
+ interface FieldControlProps {
1082
+ children: ReactElement;
1083
+ }
1084
+ declare function FieldControl({ children }: FieldControlProps): ReactElement<Record<string, unknown>, string | react.JSXElementConstructor<any>>;
1085
+
1086
+ type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
1087
+ type HeadingAccent = "none" | "underline" | "highlight";
1088
+ interface HeadingProps extends Omit<HTMLAttributes<HTMLHeadingElement>, "color">, SketchProps {
1089
+ level?: HeadingLevel;
1090
+ accent?: HeadingAccent;
1091
+ animate?: boolean;
1092
+ }
1093
+ declare const Heading: react.ForwardRefExoticComponent<HeadingProps & react.RefAttributes<HTMLHeadingElement>>;
1094
+ interface TextProps extends HTMLAttributes<HTMLParagraphElement> {
1095
+ variant?: "body" | "lead" | "muted";
1096
+ }
1097
+ declare const Text: react.ForwardRefExoticComponent<TextProps & react.RefAttributes<HTMLParagraphElement>>;
1098
+ declare const Paragraph: react.ForwardRefExoticComponent<TextProps & react.RefAttributes<HTMLParagraphElement>>;
1099
+ interface BlockquoteProps extends Omit<HTMLAttributes<HTMLQuoteElement>, "color">, SketchProps {
1100
+ animate?: boolean;
1101
+ }
1102
+ declare const Blockquote: react.ForwardRefExoticComponent<BlockquoteProps & react.RefAttributes<HTMLQuoteElement>>;
1103
+ interface InlineCodeProps extends Omit<HTMLAttributes<HTMLElement>, "color">, SketchProps {
1104
+ animate?: boolean;
1105
+ }
1106
+ declare const InlineCode: react.ForwardRefExoticComponent<InlineCodeProps & react.RefAttributes<HTMLElement>>;
1107
+ interface HighlightProps extends Omit<HTMLAttributes<HTMLSpanElement>, "color">, SketchProps {
1108
+ animate?: boolean;
1109
+ }
1110
+ declare const Highlight: react.ForwardRefExoticComponent<HighlightProps & react.RefAttributes<HTMLSpanElement>>;
1111
+
1112
+ interface SidebarContextValue {
1113
+ open: boolean;
1114
+ setOpen: (open: boolean) => void;
1115
+ collapsed: boolean;
1116
+ toggleCollapsed: () => void;
1117
+ ink: string;
1118
+ sketch: SketchProps;
1119
+ }
1120
+ declare function useSidebar(): SidebarContextValue;
1121
+ interface SidebarProviderProps extends SketchProps {
1122
+ defaultOpen?: boolean;
1123
+ open?: boolean;
1124
+ onOpenChange?: (open: boolean) => void;
1125
+ defaultCollapsed?: boolean;
1126
+ children?: ReactNode;
1127
+ }
1128
+ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange, defaultCollapsed, children, roughness, seed, sketchColor, bowing, strokeWidth, }: SidebarProviderProps): react.JSX.Element;
1129
+ interface SidebarProps extends HTMLAttributes<HTMLElement> {
1130
+ side?: "left" | "right";
1131
+ }
1132
+ declare const Sidebar: react.ForwardRefExoticComponent<SidebarProps & react.RefAttributes<HTMLElement>>;
1133
+ declare function SidebarHeader({ className, style, children, ...rest }: HTMLAttributes<HTMLDivElement>): react.JSX.Element;
1134
+ declare function SidebarContent({ className, style, children, ...rest }: HTMLAttributes<HTMLDivElement>): react.JSX.Element;
1135
+ declare function SidebarFooter({ className, style, children, ...rest }: HTMLAttributes<HTMLDivElement>): react.JSX.Element;
1136
+ declare function SidebarGroup({ className, style, children, title, ...rest }: HTMLAttributes<HTMLDivElement> & {
1137
+ title?: ReactNode;
1138
+ }): react.JSX.Element;
1139
+ interface SidebarItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1140
+ active?: boolean;
1141
+ }
1142
+ declare const SidebarItem: react.ForwardRefExoticComponent<SidebarItemProps & react.RefAttributes<HTMLButtonElement>>;
1143
+ declare function SidebarTrigger({ className, style, children, ...rest }: ButtonHTMLAttributes<HTMLButtonElement>): react.JSX.Element;
1144
+ interface SidebarLayoutProps extends HTMLAttributes<HTMLDivElement> {
1145
+ children?: ReactNode;
1146
+ }
1147
+ declare function SidebarLayout({ className, style, children, ...rest }: SidebarLayoutProps): react.JSX.Element;
1148
+ declare function SidebarInset({ className, style, children, ...rest }: HTMLAttributes<HTMLDivElement>): react.JSX.Element;
1149
+
1150
+ type CarouselApi = UseEmblaCarouselType[1];
1151
+ interface CarouselContextValue {
1152
+ emblaRef: ReturnType<typeof useEmblaCarousel>[0];
1153
+ api: CarouselApi;
1154
+ scrollPrev: () => void;
1155
+ scrollNext: () => void;
1156
+ canScrollPrev: boolean;
1157
+ canScrollNext: boolean;
1158
+ orientation: "horizontal" | "vertical";
1159
+ sketch: SketchProps & {
1160
+ animate?: boolean;
1161
+ };
1162
+ bordered: boolean;
1163
+ }
1164
+ declare function useCarousel(): CarouselContextValue;
1165
+ type CarouselOptions = Parameters<typeof useEmblaCarousel>[0];
1166
+ interface CarouselProps extends SketchProps {
1167
+ opts?: CarouselOptions;
1168
+ plugins?: Parameters<typeof useEmblaCarousel>[1];
1169
+ orientation?: "horizontal" | "vertical";
1170
+ bordered?: boolean;
1171
+ className?: string;
1172
+ style?: CSSProperties;
1173
+ children?: ReactNode;
1174
+ setApi?: (api: CarouselApi) => void;
1175
+ animate?: boolean;
1176
+ }
1177
+ declare function Carousel({ opts, plugins, orientation, bordered, className, style, children, setApi, roughness, seed, sketchColor, bowing, strokeWidth, fillStyle, animate, }: CarouselProps): react.JSX.Element;
1178
+ interface CarouselContentProps extends HTMLAttributes<HTMLDivElement> {
1179
+ }
1180
+ declare const CarouselContent: react.ForwardRefExoticComponent<CarouselContentProps & react.RefAttributes<HTMLDivElement>>;
1181
+ interface CarouselItemProps extends HTMLAttributes<HTMLDivElement> {
1182
+ }
1183
+ declare const CarouselItem: react.ForwardRefExoticComponent<CarouselItemProps & react.RefAttributes<HTMLDivElement>>;
1184
+ interface CarouselArrowProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1185
+ }
1186
+ declare const CarouselPrevious: react.ForwardRefExoticComponent<CarouselArrowProps & react.RefAttributes<HTMLButtonElement>>;
1187
+ declare const CarouselNext: react.ForwardRefExoticComponent<CarouselArrowProps & react.RefAttributes<HTMLButtonElement>>;
1188
+
1189
+ export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, AlertDialogPortal, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertProps, type AlertVariant, AspectRatio, type AspectRatioProps, Avatar, type AvatarProps, type AvatarShape, type AvatarStatus, Badge, type BadgeProps, type BadgeVariant, Blockquote, type BlockquoteProps, Breadcrumb, BreadcrumbItem, type BreadcrumbItemProps, type BreadcrumbProps, type BreadcrumbSeparator, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, Carousel, type CarouselArrowProps, CarouselContent, type CarouselContentProps, CarouselItem, type CarouselItemProps, CarouselNext, type CarouselOptions, CarouselPrevious, type CarouselProps, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Combobox, type ComboboxProps, Command, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, type ContextMenuCheckboxItemProps, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuLabelProps, type ContextMenuProps, ContextMenuRadioGroup, ContextMenuRadioItem, type ContextMenuRadioItemProps, ContextMenuSeparator, type ContextMenuSeparatorProps, ContextMenuSub, ContextMenuTrigger, DEFAULT_BOWING, DEFAULT_INK, DEFAULT_ROUGHNESS, DEFAULT_STROKE_WIDTH, DRAW_IN_ALERT_MS, DRAW_IN_DURATION_MS, DRAW_IN_MARK_MS, DRAW_IN_TOOLTIP_MS, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, DialogPortal, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, Divider, type DividerOrientation, type DividerProps, type DoodleUIContextValue, DoodleUIProvider, type DoodleUIProviderProps, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHandle, DrawerHeader, type DrawerProps, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSub, DropdownMenuTrigger, Empty, EmptyAction, EmptyDescription, EmptyMedia, type EmptyProps, EmptyTitle, Field, FieldControl, type FieldControlProps, FieldDescription, FieldError, FieldLabel, type FieldLabelProps, type FieldProps, type FillStyle, Heading, type HeadingProps, Highlight, type HighlightProps, HoverCard, HoverCardArrow, HoverCardContent, type HoverCardContentProps, type HoverCardProps, HoverCardTrigger, InlineCode, type InlineCodeProps, Input, InputGroup, InputGroupAddon, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, InputGroupInput, type InputGroupInputProps, type InputGroupProps, InputOTP, InputOTPGroup, type InputOTPGroupProps, type InputOTPProps, InputOTPSeparator, type InputOTPSeparatorProps, InputOTPSlot, type InputOTPSlotProps, type InputProps, Kbd, type KbdProps, Label, type LabelProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarItem, MenubarLabel, MenubarMenu, type MenubarProps, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Modal, ModalClose, ModalDescription, type ModalProps, ModalRoot, ModalTitle, ModalTrigger, NativeSelect, type NativeSelectOption, type NativeSelectProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuItemLink, type NavigationMenuItemLinkProps, NavigationMenuLink, NavigationMenuList, type NavigationMenuProps, NavigationMenuTrigger, NavigationMenuViewport, Pagination, type PaginationProps, Paragraph, Popover, PopoverAnchor, PopoverArrow, PopoverClose, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, ResizableHandle, type ResizableHandleProps, ResizablePanel, ResizablePanelGroup, type ResizablePanelGroupProps, type RoughShape, RoughSvg, type RoughSvgProps, SKETCH_COLORS, ScrollArea, ScrollAreaCorner, type ScrollAreaProps, ScrollAreaViewport, ScrollBar, type ScrollBarProps, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, type SelectItemProps, SelectLabel, type SelectOption, type SelectProps, SelectRoot, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, type SheetProps, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarHeader, SidebarInset, SidebarItem, type SidebarItemProps, SidebarLayout, type SidebarLayoutProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarTrigger, Skeleton, type SkeletonProps, type SkeletonVariant, SketchBox, type SketchBoxProps, type SketchProps, type SketchSeedContextValue, SketchSeedProvider, type SketchSeedProviderProps, Slider, type SliderProps, type SliderThumbShape, Spinner, type SpinnerProps, type SpinnerSize, Stepper, type StepperOrientation, type StepperProps, type StepperStep, Switch, type SwitchProps, TABLE_STAGGER_MS, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, TableCell, type TableCellProps, TableHead, TableHeaderCell, type TableHeaderCellProps, type TableProps, TableRow, Tabs, type TabsProps, Text, type TextProps, Textarea, type TextareaProps, Toast, ToastAction, ToastClose, ToastDescription, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, ToastRoot, ToastTitle, type ToastVariant, ToastViewport, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, type ToggleSize, Tooltip, type TooltipProps, TooltipProvider, deriveSeed, toRoughOptions, useAnimate, useCarousel, useDoodleUI, useDrawIn, useResolvedSeed, useSidebar, useSketchSeed };