doodleui-react 0.3.0 → 0.5.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/CHANGELOG.md +12 -0
- package/README.md +2 -2
- package/dist/index.cjs +3625 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +519 -7
- package/dist/index.d.ts +519 -7
- package/dist/index.js +3487 -1
- package/dist/index.js.map +1 -1
- package/package.json +16 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { CSSProperties, HTMLAttributes, ReactNode, RefObject, ButtonHTMLAttribut
|
|
|
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';
|
|
6
|
-
import * as
|
|
6
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
7
7
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
8
8
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
9
9
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
@@ -12,6 +12,21 @@ import * as ToastPrimitive from '@radix-ui/react-toast';
|
|
|
12
12
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
13
13
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
14
14
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
15
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
16
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
17
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
18
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
19
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
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';
|
|
15
30
|
|
|
16
31
|
type FillStyle = "hachure" | "solid" | "zigzag" | "cross-hatch" | "dots" | "dashed" | "zigzag-line";
|
|
17
32
|
type RoughShape = "rectangle" | "ellipse" | "line" | "line-vertical" | "path";
|
|
@@ -269,11 +284,11 @@ interface ModalProps extends SketchProps {
|
|
|
269
284
|
animate?: boolean;
|
|
270
285
|
}
|
|
271
286
|
declare function Modal({ open, defaultOpen, onOpenChange, trigger, title, description, children, className, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, }: ModalProps): react.JSX.Element;
|
|
272
|
-
declare const ModalRoot: react.FC<
|
|
273
|
-
declare const ModalTrigger: react.ForwardRefExoticComponent<
|
|
274
|
-
declare const ModalClose: react.ForwardRefExoticComponent<
|
|
275
|
-
declare const ModalTitle: react.ForwardRefExoticComponent<
|
|
276
|
-
declare const ModalDescription: react.ForwardRefExoticComponent<
|
|
287
|
+
declare const ModalRoot: react.FC<DialogPrimitive.DialogProps>;
|
|
288
|
+
declare const ModalTrigger: react.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
289
|
+
declare const ModalClose: react.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
290
|
+
declare const ModalTitle: react.ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
291
|
+
declare const ModalDescription: react.ForwardRefExoticComponent<DialogPrimitive.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
277
292
|
|
|
278
293
|
type DividerOrientation = "horizontal" | "vertical";
|
|
279
294
|
interface DividerProps extends Omit<HTMLAttributes<HTMLDivElement>, "color">, SketchProps {
|
|
@@ -520,4 +535,501 @@ interface StepperProps extends Omit<HTMLAttributes<HTMLDivElement>, "color">, Sk
|
|
|
520
535
|
}
|
|
521
536
|
declare const Stepper: react.ForwardRefExoticComponent<StepperProps & react.RefAttributes<HTMLDivElement>>;
|
|
522
537
|
|
|
523
|
-
|
|
538
|
+
interface LabelProps extends Omit<LabelPrimitive.LabelProps, "asChild" | "color">, SketchProps {
|
|
539
|
+
children?: ReactNode;
|
|
540
|
+
/** Adds a small hand-drawn required mark after the text. */
|
|
541
|
+
required?: boolean;
|
|
542
|
+
/**
|
|
543
|
+
* Draw-in the required mark on mount.
|
|
544
|
+
* Defaults to the DoodleUIProvider value (true).
|
|
545
|
+
*/
|
|
546
|
+
animate?: boolean;
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Thin, mostly-typographic wrapper around Radix Label. Ties a caption to a
|
|
550
|
+
* form field via `htmlFor` for accessibility. The only sketch chrome is a
|
|
551
|
+
* small drawn mark next to the text when `required` is set.
|
|
552
|
+
*/
|
|
553
|
+
declare const Label: react.ForwardRefExoticComponent<LabelProps & react.RefAttributes<HTMLLabelElement>>;
|
|
554
|
+
|
|
555
|
+
interface CollapsibleProps extends Omit<CollapsiblePrimitive.CollapsibleProps, "asChild">, SketchProps {
|
|
556
|
+
children?: ReactNode;
|
|
557
|
+
}
|
|
558
|
+
declare const Collapsible: react.ForwardRefExoticComponent<CollapsibleProps & react.RefAttributes<HTMLDivElement>>;
|
|
559
|
+
interface CollapsibleTriggerProps extends Omit<ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Trigger>, "asChild"> {
|
|
560
|
+
children?: ReactNode;
|
|
561
|
+
}
|
|
562
|
+
declare const CollapsibleTrigger: react.ForwardRefExoticComponent<CollapsibleTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
563
|
+
interface CollapsibleContentProps extends Omit<ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Content>, "asChild"> {
|
|
564
|
+
}
|
|
565
|
+
declare const CollapsibleContent: react.ForwardRefExoticComponent<CollapsibleContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
566
|
+
|
|
567
|
+
interface PopoverProps extends Omit<PopoverPrimitive.PopoverProps, "children">, SketchProps {
|
|
568
|
+
children?: ReactNode;
|
|
569
|
+
/**
|
|
570
|
+
* Draw-in the panel border when the popover opens.
|
|
571
|
+
* Defaults to the DoodleUIProvider value (true).
|
|
572
|
+
*/
|
|
573
|
+
animate?: boolean;
|
|
574
|
+
}
|
|
575
|
+
declare function Popover({ children, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, ...rest }: PopoverProps): react.JSX.Element;
|
|
576
|
+
declare const PopoverTrigger: react.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
577
|
+
declare const PopoverAnchor: react.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & react.RefAttributes<HTMLDivElement>>;
|
|
578
|
+
declare const PopoverClose: react.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
579
|
+
interface PopoverContentProps extends Omit<PopoverPrimitive.PopoverContentProps, "asChild"> {
|
|
580
|
+
children?: ReactNode;
|
|
581
|
+
}
|
|
582
|
+
declare const PopoverContent: react.ForwardRefExoticComponent<PopoverContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
583
|
+
interface PopoverArrowProps extends ComponentPropsWithoutRef<typeof PopoverPrimitive.Arrow> {
|
|
584
|
+
}
|
|
585
|
+
declare const PopoverArrow: react.ForwardRefExoticComponent<PopoverArrowProps & react.RefAttributes<SVGSVGElement>>;
|
|
586
|
+
|
|
587
|
+
interface DropdownMenuProps extends Omit<DropdownMenuPrimitive.DropdownMenuProps, "children">, SketchProps {
|
|
588
|
+
children?: ReactNode;
|
|
589
|
+
/**
|
|
590
|
+
* Draw-in the panel border when the menu opens.
|
|
591
|
+
* Defaults to the DoodleUIProvider value (true).
|
|
592
|
+
*/
|
|
593
|
+
animate?: boolean;
|
|
594
|
+
}
|
|
595
|
+
declare function DropdownMenu({ children, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, ...rest }: DropdownMenuProps): react.JSX.Element;
|
|
596
|
+
declare const DropdownMenuTrigger: react.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
597
|
+
declare const DropdownMenuGroup: react.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
598
|
+
declare const DropdownMenuRadioGroup: react.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
599
|
+
declare const DropdownMenuSub: react.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
600
|
+
interface DropdownMenuContentProps extends Omit<DropdownMenuPrimitive.DropdownMenuContentProps, "asChild"> {
|
|
601
|
+
children?: ReactNode;
|
|
602
|
+
}
|
|
603
|
+
declare const DropdownMenuContent: react.ForwardRefExoticComponent<DropdownMenuContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
604
|
+
interface DropdownMenuItemProps extends Omit<DropdownMenuPrimitive.DropdownMenuItemProps, "asChild"> {
|
|
605
|
+
children?: ReactNode;
|
|
606
|
+
inset?: boolean;
|
|
607
|
+
}
|
|
608
|
+
declare const DropdownMenuItem: react.ForwardRefExoticComponent<DropdownMenuItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
609
|
+
interface DropdownMenuCheckboxItemProps extends Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps, "asChild"> {
|
|
610
|
+
children?: ReactNode;
|
|
611
|
+
}
|
|
612
|
+
declare const DropdownMenuCheckboxItem: react.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
613
|
+
interface DropdownMenuRadioItemProps extends Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps, "asChild"> {
|
|
614
|
+
children?: ReactNode;
|
|
615
|
+
}
|
|
616
|
+
declare const DropdownMenuRadioItem: react.ForwardRefExoticComponent<DropdownMenuRadioItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
617
|
+
interface DropdownMenuLabelProps extends Omit<DropdownMenuPrimitive.DropdownMenuLabelProps, "asChild"> {
|
|
618
|
+
children?: ReactNode;
|
|
619
|
+
}
|
|
620
|
+
declare const DropdownMenuLabel: react.ForwardRefExoticComponent<DropdownMenuLabelProps & react.RefAttributes<HTMLDivElement>>;
|
|
621
|
+
interface DropdownMenuSeparatorProps extends Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps, "asChild"> {
|
|
622
|
+
}
|
|
623
|
+
declare const DropdownMenuSeparator: react.ForwardRefExoticComponent<DropdownMenuSeparatorProps & react.RefAttributes<HTMLDivElement>>;
|
|
624
|
+
|
|
625
|
+
interface DialogProps extends Omit<DialogPrimitive.DialogProps, "children">, SketchProps {
|
|
626
|
+
children?: ReactNode;
|
|
627
|
+
/**
|
|
628
|
+
* Backdrop fade, panel enter/exit, and border draw-in on open.
|
|
629
|
+
* Defaults to the DoodleUIProvider value (true).
|
|
630
|
+
*/
|
|
631
|
+
animate?: boolean;
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* Lighter-weight sibling to `Modal`: a composable, shadcn-style dialog built
|
|
635
|
+
* from `Dialog` / `DialogTrigger` / `DialogContent` / `DialogHeader` /
|
|
636
|
+
* `DialogFooter` / `DialogTitle` / `DialogDescription` / `DialogClose`. Unlike
|
|
637
|
+
* `Modal`, `DialogContent` has no forced width or shadow and no built-in
|
|
638
|
+
* close button — compose your own layout inside it.
|
|
639
|
+
*/
|
|
640
|
+
declare function Dialog({ children, open, defaultOpen, onOpenChange, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, ...rest }: DialogProps): react.JSX.Element;
|
|
641
|
+
declare const DialogTrigger: react.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
642
|
+
declare const DialogPortal: react.FC<DialogPrimitive.DialogPortalProps>;
|
|
643
|
+
declare const DialogClose: react.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
644
|
+
interface DialogOverlayProps extends Omit<DialogPrimitive.DialogOverlayProps, "asChild" | "forceMount"> {
|
|
645
|
+
}
|
|
646
|
+
declare const DialogOverlay: react.ForwardRefExoticComponent<DialogOverlayProps & react.RefAttributes<HTMLDivElement>>;
|
|
647
|
+
interface DialogContentProps extends Omit<DialogPrimitive.DialogContentProps, "asChild" | "forceMount"> {
|
|
648
|
+
children?: ReactNode;
|
|
649
|
+
/** Panel width. Defaults to `min(420px, calc(100vw - 32px))`. */
|
|
650
|
+
contentStyle?: CSSProperties;
|
|
651
|
+
}
|
|
652
|
+
declare const DialogContent: react.ForwardRefExoticComponent<DialogContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
653
|
+
interface DialogHeaderProps {
|
|
654
|
+
children?: ReactNode;
|
|
655
|
+
className?: string;
|
|
656
|
+
style?: CSSProperties;
|
|
657
|
+
}
|
|
658
|
+
declare function DialogHeader({ children, className, style }: DialogHeaderProps): react.JSX.Element;
|
|
659
|
+
interface DialogFooterProps {
|
|
660
|
+
children?: ReactNode;
|
|
661
|
+
className?: string;
|
|
662
|
+
style?: CSSProperties;
|
|
663
|
+
}
|
|
664
|
+
declare function DialogFooter({ children, className, style }: DialogFooterProps): react.JSX.Element;
|
|
665
|
+
interface DialogTitleProps extends Omit<DialogPrimitive.DialogTitleProps, "asChild"> {
|
|
666
|
+
}
|
|
667
|
+
declare const DialogTitle: react.ForwardRefExoticComponent<DialogTitleProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
668
|
+
interface DialogDescriptionProps extends Omit<DialogPrimitive.DialogDescriptionProps, "asChild"> {
|
|
669
|
+
}
|
|
670
|
+
declare const DialogDescription: react.ForwardRefExoticComponent<DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
671
|
+
|
|
672
|
+
interface AlertDialogProps extends Omit<AlertDialogPrimitive.AlertDialogProps, "children">, SketchProps {
|
|
673
|
+
children?: ReactNode;
|
|
674
|
+
/**
|
|
675
|
+
* Backdrop fade, panel enter/exit, and border draw-in on open.
|
|
676
|
+
* Defaults to the DoodleUIProvider value (true).
|
|
677
|
+
*/
|
|
678
|
+
animate?: boolean;
|
|
679
|
+
}
|
|
680
|
+
/**
|
|
681
|
+
* Confirm / destructive-action variant of `Dialog`. Same composable shape,
|
|
682
|
+
* but Radix's alert dialog primitive requires an explicit action — there is
|
|
683
|
+
* no dismiss-on-outside-click or Escape by default, and `AlertDialogAction`
|
|
684
|
+
* / `AlertDialogCancel` give the confirm button visual emphasis.
|
|
685
|
+
*/
|
|
686
|
+
declare function AlertDialog({ children, open, defaultOpen, onOpenChange, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, ...rest }: AlertDialogProps): react.JSX.Element;
|
|
687
|
+
declare const AlertDialogTrigger: react.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
688
|
+
declare const AlertDialogPortal: react.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
689
|
+
interface AlertDialogOverlayProps extends Omit<AlertDialogPrimitive.AlertDialogOverlayProps, "asChild" | "forceMount"> {
|
|
690
|
+
}
|
|
691
|
+
declare const AlertDialogOverlay: react.ForwardRefExoticComponent<AlertDialogOverlayProps & react.RefAttributes<HTMLDivElement>>;
|
|
692
|
+
interface AlertDialogContentProps extends Omit<AlertDialogPrimitive.AlertDialogContentProps, "asChild" | "forceMount"> {
|
|
693
|
+
children?: ReactNode;
|
|
694
|
+
contentStyle?: CSSProperties;
|
|
695
|
+
}
|
|
696
|
+
declare const AlertDialogContent: react.ForwardRefExoticComponent<AlertDialogContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
697
|
+
interface AlertDialogHeaderProps {
|
|
698
|
+
children?: ReactNode;
|
|
699
|
+
className?: string;
|
|
700
|
+
style?: CSSProperties;
|
|
701
|
+
}
|
|
702
|
+
declare function AlertDialogHeader({ children, className, style, }: AlertDialogHeaderProps): react.JSX.Element;
|
|
703
|
+
interface AlertDialogFooterProps {
|
|
704
|
+
children?: ReactNode;
|
|
705
|
+
className?: string;
|
|
706
|
+
style?: CSSProperties;
|
|
707
|
+
}
|
|
708
|
+
declare function AlertDialogFooter({ children, className, style, }: AlertDialogFooterProps): react.JSX.Element;
|
|
709
|
+
interface AlertDialogTitleProps extends Omit<AlertDialogPrimitive.AlertDialogTitleProps, "asChild"> {
|
|
710
|
+
}
|
|
711
|
+
declare const AlertDialogTitle: react.ForwardRefExoticComponent<AlertDialogTitleProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
712
|
+
interface AlertDialogDescriptionProps extends Omit<AlertDialogPrimitive.AlertDialogDescriptionProps, "asChild"> {
|
|
713
|
+
}
|
|
714
|
+
declare const AlertDialogDescription: react.ForwardRefExoticComponent<AlertDialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
715
|
+
interface AlertDialogActionProps extends Omit<AlertDialogPrimitive.AlertDialogActionProps, "asChild"> {
|
|
716
|
+
}
|
|
717
|
+
declare const AlertDialogAction: react.ForwardRefExoticComponent<AlertDialogActionProps & react.RefAttributes<HTMLButtonElement>>;
|
|
718
|
+
interface AlertDialogCancelProps extends Omit<AlertDialogPrimitive.AlertDialogCancelProps, "asChild"> {
|
|
719
|
+
}
|
|
720
|
+
declare const AlertDialogCancel: react.ForwardRefExoticComponent<AlertDialogCancelProps & react.RefAttributes<HTMLButtonElement>>;
|
|
721
|
+
|
|
722
|
+
interface CommandProps extends Omit<ComponentPropsWithoutRef<typeof Command$1>, "asChild">, SketchProps {
|
|
723
|
+
children?: ReactNode;
|
|
724
|
+
/**
|
|
725
|
+
* Draw-in the panel border on mount.
|
|
726
|
+
* Defaults to the DoodleUIProvider value (true).
|
|
727
|
+
*/
|
|
728
|
+
animate?: boolean;
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Command palette / cmd+k style searchable list, built on `cmdk` with a
|
|
732
|
+
* `SketchBox` frame. Compose with `CommandInput`, `CommandList`,
|
|
733
|
+
* `CommandEmpty`, `CommandGroup`, `CommandItem`, `CommandSeparator`.
|
|
734
|
+
*/
|
|
735
|
+
declare const Command: react.ForwardRefExoticComponent<CommandProps & react.RefAttributes<HTMLDivElement>>;
|
|
736
|
+
interface CommandInputProps extends Omit<ComponentPropsWithoutRef<typeof CommandInput$1>, "asChild"> {
|
|
737
|
+
}
|
|
738
|
+
declare const CommandInput: react.ForwardRefExoticComponent<CommandInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
739
|
+
interface CommandListProps extends Omit<ComponentPropsWithoutRef<typeof CommandList$1>, "asChild"> {
|
|
740
|
+
}
|
|
741
|
+
declare const CommandList: react.ForwardRefExoticComponent<CommandListProps & react.RefAttributes<HTMLDivElement>>;
|
|
742
|
+
interface CommandEmptyProps extends Omit<ComponentPropsWithoutRef<typeof CommandEmpty$1>, "asChild"> {
|
|
743
|
+
}
|
|
744
|
+
declare const CommandEmpty: react.ForwardRefExoticComponent<CommandEmptyProps & react.RefAttributes<HTMLDivElement>>;
|
|
745
|
+
interface CommandGroupProps extends Omit<ComponentPropsWithoutRef<typeof CommandGroup$1>, "asChild"> {
|
|
746
|
+
}
|
|
747
|
+
declare const CommandGroup: react.ForwardRefExoticComponent<CommandGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
748
|
+
interface CommandItemProps extends Omit<ComponentPropsWithoutRef<typeof CommandItem$1>, "asChild"> {
|
|
749
|
+
}
|
|
750
|
+
declare const CommandItem: react.ForwardRefExoticComponent<CommandItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
751
|
+
interface CommandSeparatorProps extends Omit<ComponentPropsWithoutRef<typeof CommandSeparator$1>, "asChild"> {
|
|
752
|
+
}
|
|
753
|
+
declare const CommandSeparator: react.ForwardRefExoticComponent<CommandSeparatorProps & react.RefAttributes<HTMLDivElement>>;
|
|
754
|
+
declare function CommandShortcut({ children, className, style, }: {
|
|
755
|
+
children?: ReactNode;
|
|
756
|
+
className?: string;
|
|
757
|
+
style?: React.CSSProperties;
|
|
758
|
+
}): react.JSX.Element;
|
|
759
|
+
|
|
760
|
+
interface ComboboxProps extends SketchProps {
|
|
761
|
+
options: SelectOption[];
|
|
762
|
+
placeholder?: string;
|
|
763
|
+
searchPlaceholder?: string;
|
|
764
|
+
emptyMessage?: ReactNode;
|
|
765
|
+
value?: string;
|
|
766
|
+
defaultValue?: string;
|
|
767
|
+
onValueChange?: (value: string) => void;
|
|
768
|
+
disabled?: boolean;
|
|
769
|
+
className?: string;
|
|
770
|
+
style?: CSSProperties;
|
|
771
|
+
"aria-label"?: string;
|
|
772
|
+
/**
|
|
773
|
+
* Draw-in the trigger on mount and the popover border on open.
|
|
774
|
+
* Defaults to the DoodleUIProvider value (true).
|
|
775
|
+
*/
|
|
776
|
+
animate?: boolean;
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* Searchable select. Composes `Popover` (positioning) + `Command` (cmdk
|
|
780
|
+
* filtering/list) behind a sketchy `Input`-styled trigger button — the same
|
|
781
|
+
* recipe shadcn uses, since Radix has no dedicated Combobox primitive.
|
|
782
|
+
*/
|
|
783
|
+
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;
|
|
784
|
+
|
|
785
|
+
interface KbdProps extends Omit<HTMLAttributes<HTMLElement>, "color">, SketchProps {
|
|
786
|
+
/**
|
|
787
|
+
* Draw-in the border on mount. Defaults to the DoodleUIProvider value (true).
|
|
788
|
+
*/
|
|
789
|
+
animate?: boolean;
|
|
790
|
+
}
|
|
791
|
+
declare const Kbd: react.ForwardRefExoticComponent<KbdProps & react.RefAttributes<HTMLElement>>;
|
|
792
|
+
|
|
793
|
+
type SpinnerSize = "sm" | "md" | "lg";
|
|
794
|
+
interface SpinnerProps extends Omit<HTMLAttributes<HTMLDivElement>, "color">, SketchProps {
|
|
795
|
+
size?: SpinnerSize;
|
|
796
|
+
/**
|
|
797
|
+
* Continuous rotation. Defaults to the DoodleUIProvider value (true).
|
|
798
|
+
* Reduced motion shows a static arc.
|
|
799
|
+
*/
|
|
800
|
+
animate?: boolean;
|
|
801
|
+
}
|
|
802
|
+
declare const Spinner: react.ForwardRefExoticComponent<SpinnerProps & react.RefAttributes<HTMLDivElement>>;
|
|
803
|
+
|
|
804
|
+
type ToggleSize = "sm" | "md" | "lg";
|
|
805
|
+
interface ToggleProps extends Omit<TogglePrimitive.ToggleProps, "asChild">, SketchProps {
|
|
806
|
+
size?: ToggleSize;
|
|
807
|
+
/**
|
|
808
|
+
* Draw-in on mount and seed morph on press.
|
|
809
|
+
* Defaults to the DoodleUIProvider value (true).
|
|
810
|
+
*/
|
|
811
|
+
animate?: boolean;
|
|
812
|
+
}
|
|
813
|
+
declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<HTMLButtonElement>>;
|
|
814
|
+
|
|
815
|
+
type ToggleGroupProps = SketchProps & {
|
|
816
|
+
children?: ReactNode;
|
|
817
|
+
size?: ToggleSize;
|
|
818
|
+
animate?: boolean;
|
|
819
|
+
} & (({
|
|
820
|
+
type?: "single";
|
|
821
|
+
} & Omit<ToggleGroupPrimitive.ToggleGroupSingleProps, "type" | "children">) | ({
|
|
822
|
+
type: "multiple";
|
|
823
|
+
} & Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps, "type" | "children">));
|
|
824
|
+
declare function ToggleGroup(props: ToggleGroupProps): react.JSX.Element;
|
|
825
|
+
interface ToggleGroupItemProps extends Omit<ToggleGroupPrimitive.ToggleGroupItemProps, "asChild"> {
|
|
826
|
+
children?: ReactNode;
|
|
827
|
+
}
|
|
828
|
+
declare const ToggleGroupItem: react.ForwardRefExoticComponent<ToggleGroupItemProps & react.RefAttributes<HTMLButtonElement>>;
|
|
829
|
+
|
|
830
|
+
interface InputGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "color">, SketchProps {
|
|
831
|
+
children?: ReactNode;
|
|
832
|
+
animate?: boolean;
|
|
833
|
+
}
|
|
834
|
+
declare function InputGroup({ children, className, style, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, onFocus, onBlur, ...rest }: InputGroupProps): react.JSX.Element;
|
|
835
|
+
interface InputGroupAddonProps extends HTMLAttributes<HTMLSpanElement> {
|
|
836
|
+
align?: "inline-start" | "inline-end";
|
|
837
|
+
}
|
|
838
|
+
declare const InputGroupAddon: react.ForwardRefExoticComponent<InputGroupAddonProps & react.RefAttributes<HTMLSpanElement>>;
|
|
839
|
+
interface InputGroupInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "color" | "size"> {
|
|
840
|
+
}
|
|
841
|
+
declare const InputGroupInput: react.ForwardRefExoticComponent<InputGroupInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
842
|
+
interface InputGroupButtonProps extends HTMLAttributes<HTMLSpanElement> {
|
|
843
|
+
}
|
|
844
|
+
declare const InputGroupButton: react.ForwardRefExoticComponent<InputGroupButtonProps & react.RefAttributes<HTMLSpanElement>>;
|
|
845
|
+
|
|
846
|
+
interface InputOTPProps extends Omit<ComponentPropsWithoutRef<typeof OTPInput>, "render">, SketchProps {
|
|
847
|
+
animate?: boolean;
|
|
848
|
+
}
|
|
849
|
+
declare const InputOTP: react.ForwardRefExoticComponent<InputOTPProps & react.RefAttributes<HTMLInputElement>>;
|
|
850
|
+
interface InputOTPGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
851
|
+
children?: ReactNode;
|
|
852
|
+
}
|
|
853
|
+
declare const InputOTPGroup: react.ForwardRefExoticComponent<InputOTPGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
854
|
+
interface InputOTPSlotProps extends HTMLAttributes<HTMLDivElement> {
|
|
855
|
+
index: number;
|
|
856
|
+
}
|
|
857
|
+
declare const InputOTPSlot: react.ForwardRefExoticComponent<InputOTPSlotProps & react.RefAttributes<HTMLDivElement>>;
|
|
858
|
+
interface InputOTPSeparatorProps extends HTMLAttributes<HTMLSpanElement> {
|
|
859
|
+
}
|
|
860
|
+
declare const InputOTPSeparator: react.ForwardRefExoticComponent<InputOTPSeparatorProps & react.RefAttributes<HTMLSpanElement>>;
|
|
861
|
+
|
|
862
|
+
interface ScrollAreaProps extends Omit<ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>, "children">, SketchProps {
|
|
863
|
+
children?: ReactNode;
|
|
864
|
+
animate?: boolean;
|
|
865
|
+
}
|
|
866
|
+
declare const ScrollArea: react.ForwardRefExoticComponent<ScrollAreaProps & react.RefAttributes<HTMLDivElement>>;
|
|
867
|
+
declare const ScrollAreaViewport: react.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaViewportProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
868
|
+
interface ScrollBarProps extends ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar> {
|
|
869
|
+
}
|
|
870
|
+
declare const ScrollBar: react.ForwardRefExoticComponent<ScrollBarProps & react.RefAttributes<HTMLDivElement>>;
|
|
871
|
+
declare const ScrollAreaCorner: react.ForwardRefExoticComponent<ScrollAreaPrimitive.ScrollAreaCornerProps & react.RefAttributes<HTMLDivElement>>;
|
|
872
|
+
|
|
873
|
+
type ResizablePanelGroupProps = ComponentPropsWithoutRef<typeof ResizablePrimitive.PanelGroup> & SketchProps;
|
|
874
|
+
declare function ResizablePanelGroup({ className, style, ...rest }: ResizablePanelGroupProps): react.JSX.Element;
|
|
875
|
+
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"> & {
|
|
876
|
+
className?: string | undefined;
|
|
877
|
+
collapsedSize?: number | undefined;
|
|
878
|
+
collapsible?: boolean | undefined;
|
|
879
|
+
defaultSize?: number | undefined;
|
|
880
|
+
id?: string | undefined;
|
|
881
|
+
maxSize?: number | undefined;
|
|
882
|
+
minSize?: number | undefined;
|
|
883
|
+
onCollapse?: ResizablePrimitive.PanelOnCollapse | undefined;
|
|
884
|
+
onExpand?: ResizablePrimitive.PanelOnExpand | undefined;
|
|
885
|
+
onResize?: ResizablePrimitive.PanelOnResize | undefined;
|
|
886
|
+
order?: number | undefined;
|
|
887
|
+
style?: object | undefined;
|
|
888
|
+
tagName?: keyof HTMLElementTagNameMap | undefined;
|
|
889
|
+
} & {
|
|
890
|
+
children?: react.ReactNode;
|
|
891
|
+
} & react.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
892
|
+
interface ResizableHandleProps extends ComponentPropsWithoutRef<typeof ResizablePrimitive.PanelResizeHandle>, SketchProps {
|
|
893
|
+
withHandle?: boolean;
|
|
894
|
+
}
|
|
895
|
+
declare function ResizableHandle({ className, style, withHandle, roughness, seed, sketchColor, bowing, strokeWidth, ...rest }: ResizableHandleProps): react.JSX.Element;
|
|
896
|
+
|
|
897
|
+
interface HoverCardProps extends Omit<ComponentPropsWithoutRef<typeof HoverCardPrimitive.Root>, "children">, SketchProps {
|
|
898
|
+
children?: ReactNode;
|
|
899
|
+
animate?: boolean;
|
|
900
|
+
}
|
|
901
|
+
declare function HoverCard({ children, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, ...rest }: HoverCardProps): react.JSX.Element;
|
|
902
|
+
declare const HoverCardTrigger: react.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
903
|
+
interface HoverCardContentProps extends ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content> {
|
|
904
|
+
children?: ReactNode;
|
|
905
|
+
}
|
|
906
|
+
declare const HoverCardContent: react.ForwardRefExoticComponent<HoverCardContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
907
|
+
declare const HoverCardArrow: react.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardArrowProps & react.RefAttributes<SVGSVGElement>>;
|
|
908
|
+
|
|
909
|
+
interface ContextMenuProps extends Omit<ContextMenuPrimitive.ContextMenuProps, "children">, SketchProps {
|
|
910
|
+
children?: ReactNode;
|
|
911
|
+
/**
|
|
912
|
+
* Draw-in the panel border when the menu opens.
|
|
913
|
+
* Defaults to the DoodleUIProvider value (true).
|
|
914
|
+
*/
|
|
915
|
+
animate?: boolean;
|
|
916
|
+
}
|
|
917
|
+
declare function ContextMenu({ children, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, ...rest }: ContextMenuProps): react.JSX.Element;
|
|
918
|
+
declare const ContextMenuTrigger: react.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & react.RefAttributes<HTMLSpanElement>>;
|
|
919
|
+
declare const ContextMenuGroup: react.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
920
|
+
declare const ContextMenuRadioGroup: react.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
921
|
+
declare const ContextMenuSub: react.FC<ContextMenuPrimitive.ContextMenuSubProps>;
|
|
922
|
+
interface ContextMenuContentProps extends Omit<ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>, "asChild"> {
|
|
923
|
+
children?: ReactNode;
|
|
924
|
+
}
|
|
925
|
+
declare const ContextMenuContent: react.ForwardRefExoticComponent<ContextMenuContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
926
|
+
interface ContextMenuItemProps extends Omit<ContextMenuPrimitive.ContextMenuItemProps, "asChild"> {
|
|
927
|
+
children?: ReactNode;
|
|
928
|
+
inset?: boolean;
|
|
929
|
+
}
|
|
930
|
+
declare const ContextMenuItem: react.ForwardRefExoticComponent<ContextMenuItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
931
|
+
interface ContextMenuCheckboxItemProps extends Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps, "asChild"> {
|
|
932
|
+
children?: ReactNode;
|
|
933
|
+
}
|
|
934
|
+
declare const ContextMenuCheckboxItem: react.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
935
|
+
interface ContextMenuRadioItemProps extends Omit<ContextMenuPrimitive.ContextMenuRadioItemProps, "asChild"> {
|
|
936
|
+
children?: ReactNode;
|
|
937
|
+
}
|
|
938
|
+
declare const ContextMenuRadioItem: react.ForwardRefExoticComponent<ContextMenuRadioItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
939
|
+
interface ContextMenuLabelProps extends Omit<ContextMenuPrimitive.ContextMenuLabelProps, "asChild"> {
|
|
940
|
+
children?: ReactNode;
|
|
941
|
+
}
|
|
942
|
+
declare const ContextMenuLabel: react.ForwardRefExoticComponent<ContextMenuLabelProps & react.RefAttributes<HTMLDivElement>>;
|
|
943
|
+
interface ContextMenuSeparatorProps extends Omit<ContextMenuPrimitive.ContextMenuSeparatorProps, "asChild"> {
|
|
944
|
+
}
|
|
945
|
+
declare const ContextMenuSeparator: react.ForwardRefExoticComponent<ContextMenuSeparatorProps & react.RefAttributes<HTMLDivElement>>;
|
|
946
|
+
|
|
947
|
+
interface NavigationMenuProps extends Omit<ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>, "children">, SketchProps {
|
|
948
|
+
children?: ReactNode;
|
|
949
|
+
animate?: boolean;
|
|
950
|
+
}
|
|
951
|
+
declare function NavigationMenu({ children, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, ...rest }: NavigationMenuProps): react.JSX.Element;
|
|
952
|
+
declare const NavigationMenuList: react.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & react.RefAttributes<HTMLUListElement>, "ref"> & react.RefAttributes<HTMLUListElement>>;
|
|
953
|
+
declare const NavigationMenuItem: react.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & react.RefAttributes<HTMLLIElement>>;
|
|
954
|
+
declare const NavigationMenuTrigger: react.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
955
|
+
declare const NavigationMenuContent: react.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
956
|
+
declare const NavigationMenuLink: react.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
957
|
+
declare const NavigationMenuViewport: react.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
958
|
+
declare const NavigationMenuIndicator: react.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
959
|
+
interface NavigationMenuItemLinkProps extends ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Link> {
|
|
960
|
+
active?: boolean;
|
|
961
|
+
}
|
|
962
|
+
declare const NavigationMenuItemLink: react.ForwardRefExoticComponent<NavigationMenuItemLinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
963
|
+
|
|
964
|
+
interface MenubarProps extends Omit<ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>, "children">, SketchProps {
|
|
965
|
+
children?: ReactNode;
|
|
966
|
+
animate?: boolean;
|
|
967
|
+
}
|
|
968
|
+
declare function Menubar({ children, className, style, roughness, seed, sketchColor, bowing, fillStyle, strokeWidth, animate, ...rest }: MenubarProps): react.JSX.Element;
|
|
969
|
+
declare const MenubarMenu: typeof MenubarPrimitive.Menu;
|
|
970
|
+
declare const MenubarTrigger: react.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
971
|
+
declare const MenubarContent: react.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
972
|
+
declare const MenubarItem: react.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
973
|
+
declare const MenubarSeparator: react.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
974
|
+
declare const MenubarLabel: react.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
975
|
+
declare const MenubarShortcut: react.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLSpanElement>>;
|
|
976
|
+
declare const MenubarSub: react.FC<MenubarPrimitive.MenubarSubProps>;
|
|
977
|
+
declare const MenubarSubTrigger: react.ForwardRefExoticComponent<MenubarPrimitive.MenubarSubTriggerProps & react.RefAttributes<HTMLDivElement>>;
|
|
978
|
+
declare const MenubarSubContent: react.ForwardRefExoticComponent<MenubarPrimitive.MenubarSubContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
979
|
+
declare const MenubarCheckboxItem: react.ForwardRefExoticComponent<MenubarPrimitive.MenubarCheckboxItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
980
|
+
declare const MenubarRadioGroup: react.ForwardRefExoticComponent<MenubarPrimitive.MenubarRadioGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
981
|
+
declare const MenubarRadioItem: react.ForwardRefExoticComponent<MenubarPrimitive.MenubarRadioItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
982
|
+
|
|
983
|
+
type SlidingPanelSide = "top" | "right" | "bottom" | "left";
|
|
984
|
+
interface SlidingPanelRootProps extends Omit<DialogPrimitive.DialogProps, "children">, SketchProps {
|
|
985
|
+
children?: ReactNode;
|
|
986
|
+
side?: SlidingPanelSide;
|
|
987
|
+
animate?: boolean;
|
|
988
|
+
}
|
|
989
|
+
interface SlidingPanelContentProps extends Omit<DialogPrimitive.DialogContentProps, "asChild" | "forceMount"> {
|
|
990
|
+
children?: ReactNode;
|
|
991
|
+
contentStyle?: CSSProperties;
|
|
992
|
+
/** Extra chrome above panel content (e.g. drawer handle). */
|
|
993
|
+
chrome?: ReactNode;
|
|
994
|
+
}
|
|
995
|
+
interface SlidingPanelHeaderProps {
|
|
996
|
+
children?: ReactNode;
|
|
997
|
+
className?: string;
|
|
998
|
+
style?: CSSProperties;
|
|
999
|
+
}
|
|
1000
|
+
declare function SlidingPanelHeader({ children, className, style, }: SlidingPanelHeaderProps): react.JSX.Element;
|
|
1001
|
+
interface SlidingPanelFooterProps {
|
|
1002
|
+
children?: ReactNode;
|
|
1003
|
+
className?: string;
|
|
1004
|
+
style?: CSSProperties;
|
|
1005
|
+
}
|
|
1006
|
+
declare function SlidingPanelFooter({ children, className, style, }: SlidingPanelFooterProps): react.JSX.Element;
|
|
1007
|
+
|
|
1008
|
+
type SheetProps = SlidingPanelRootProps & {
|
|
1009
|
+
side?: SlidingPanelSide;
|
|
1010
|
+
};
|
|
1011
|
+
declare function Sheet({ side, ...rest }: SheetProps): react.JSX.Element;
|
|
1012
|
+
declare const SheetTrigger: react.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
1013
|
+
declare const SheetClose: react.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
1014
|
+
type SheetContentProps = SlidingPanelContentProps;
|
|
1015
|
+
declare const SheetContent: react.ForwardRefExoticComponent<SlidingPanelContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
1016
|
+
declare const SheetHeader: typeof SlidingPanelHeader;
|
|
1017
|
+
declare const SheetFooter: typeof SlidingPanelFooter;
|
|
1018
|
+
declare const SheetTitle: react.ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
1019
|
+
declare const SheetDescription: react.ForwardRefExoticComponent<DialogPrimitive.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
1020
|
+
|
|
1021
|
+
type DrawerProps = Omit<SlidingPanelRootProps, "side">;
|
|
1022
|
+
declare function Drawer(props: DrawerProps): react.JSX.Element;
|
|
1023
|
+
declare const DrawerTrigger: react.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
1024
|
+
declare const DrawerClose: react.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
1025
|
+
declare const DrawerHandle: react.ForwardRefExoticComponent<{
|
|
1026
|
+
className?: string;
|
|
1027
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
1028
|
+
type DrawerContentProps = Omit<SlidingPanelContentProps, "chrome">;
|
|
1029
|
+
declare const DrawerContent: react.ForwardRefExoticComponent<DrawerContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
1030
|
+
declare const DrawerHeader: typeof SlidingPanelHeader;
|
|
1031
|
+
declare const DrawerFooter: typeof SlidingPanelFooter;
|
|
1032
|
+
declare const DrawerTitle: react.ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
1033
|
+
declare const DrawerDescription: react.ForwardRefExoticComponent<DialogPrimitive.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
1034
|
+
|
|
1035
|
+
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, 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, type FillStyle, HoverCard, HoverCardArrow, HoverCardContent, type HoverCardContentProps, type HoverCardProps, HoverCardTrigger, 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, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuItemLink, type NavigationMenuItemLinkProps, NavigationMenuLink, NavigationMenuList, type NavigationMenuProps, NavigationMenuTrigger, NavigationMenuViewport, Pagination, type PaginationProps, 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, 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, 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, useDoodleUI, useDrawIn, useResolvedSeed, useSketchSeed };
|