@constructive-io/ui 0.1.1 → 0.3.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.
Files changed (64) hide show
  1. package/dist/components/alert-dialog.js.map +1 -1
  2. package/dist/components/autocomplete.js +11 -3
  3. package/dist/components/autocomplete.js.map +1 -1
  4. package/dist/components/avatar.js.map +1 -1
  5. package/dist/components/breadcrumb.js.map +1 -1
  6. package/dist/components/card.d.ts +1 -1
  7. package/dist/components/checkbox.js +1 -1
  8. package/dist/components/checkbox.js.map +1 -1
  9. package/dist/components/combobox.d.ts +1 -1
  10. package/dist/components/combobox.js +50 -14
  11. package/dist/components/combobox.js.map +1 -1
  12. package/dist/components/command.d.ts +16 -35
  13. package/dist/components/command.js +72 -508
  14. package/dist/components/command.js.map +1 -1
  15. package/dist/components/dialog.js.map +1 -1
  16. package/dist/components/drawer.js +1 -1
  17. package/dist/components/drawer.js.map +1 -1
  18. package/dist/components/dropdown-menu.js +3 -3
  19. package/dist/components/dropdown-menu.js.map +1 -1
  20. package/dist/components/form-control.js.map +1 -1
  21. package/dist/components/form.js.map +1 -1
  22. package/dist/components/input-group.js +3 -3
  23. package/dist/components/input-group.js.map +1 -1
  24. package/dist/components/input.js +1 -1
  25. package/dist/components/input.js.map +1 -1
  26. package/dist/components/json-input.js.map +1 -1
  27. package/dist/components/multi-select.js.map +1 -1
  28. package/dist/components/org-chart/index.d.ts +54 -0
  29. package/dist/components/org-chart/index.js +861 -0
  30. package/dist/components/org-chart/index.js.map +1 -0
  31. package/dist/components/pagination.js.map +1 -1
  32. package/dist/components/popover.js.map +1 -1
  33. package/dist/components/portal.js.map +1 -1
  34. package/dist/components/record-picker.js +3 -3
  35. package/dist/components/record-picker.js.map +1 -1
  36. package/dist/components/resizable.js.map +1 -1
  37. package/dist/components/responsive-diagram.js +6 -4
  38. package/dist/components/responsive-diagram.js.map +1 -1
  39. package/dist/components/select.d.ts +2 -2
  40. package/dist/components/select.js +3 -3
  41. package/dist/components/select.js.map +1 -1
  42. package/dist/components/sheet.js.map +1 -1
  43. package/dist/components/sidebar.js +1 -1
  44. package/dist/components/sidebar.js.map +1 -1
  45. package/dist/components/stack/index.d.ts +11 -0
  46. package/dist/components/stack/index.js +33 -6
  47. package/dist/components/stack/index.js.map +1 -1
  48. package/dist/components/stepper.js.map +1 -1
  49. package/dist/components/table.js.map +1 -1
  50. package/dist/components/tabs.js.map +1 -1
  51. package/dist/components/tags.d.ts +1 -3
  52. package/dist/components/tags.js +107 -388
  53. package/dist/components/tags.js.map +1 -1
  54. package/dist/components/textarea.js +1 -1
  55. package/dist/components/textarea.js.map +1 -1
  56. package/dist/components/tooltip.js.map +1 -1
  57. package/dist/index.cjs +867 -378
  58. package/dist/index.cjs.map +1 -1
  59. package/dist/index.d.cts +82 -24
  60. package/dist/index.d.ts +82 -24
  61. package/dist/index.js +746 -259
  62. package/dist/index.js.map +1 -1
  63. package/package.json +13 -6
  64. package/src/styles/globals.css +1 -1
package/dist/index.d.cts CHANGED
@@ -31,7 +31,9 @@ import * as _base_ui_react_scroll_area from '@base-ui/react/scroll-area';
31
31
  import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area';
32
32
  import * as ResizablePrimitive from 'react-resizable-panels';
33
33
  import { Avatar as Avatar$1 } from '@base-ui/react/avatar';
34
- import { Autocomplete as Autocomplete$1, AutocompleteRootProps } from '@base-ui/react/autocomplete';
34
+ import { Autocomplete as Autocomplete$1 } from '@base-ui/react/autocomplete';
35
+ import { PanelPosition, FitViewOptions } from '@xyflow/react';
36
+ import { Command as Command$1 } from 'cmdk';
35
37
  import { Combobox as Combobox$1 } from '@base-ui/react/combobox';
36
38
  import { Calendar as Calendar$1, RangeCalendar as RangeCalendar$1 } from 'react-aria-components';
37
39
  import { ToasterProps } from 'sonner';
@@ -393,8 +395,8 @@ type SelectPopupProps = Select$1.Popup.Props & {
393
395
  declare function SelectPopup({ className, children, sideOffset, alignItemWithTrigger, position: _position, ...props }: SelectPopupProps): react_jsx_runtime.JSX.Element;
394
396
  declare function SelectItem({ className, children, ...props }: Select$1.Item.Props): react_jsx_runtime.JSX.Element;
395
397
  declare function SelectSeparator({ className, ...props }: Select$1.Separator.Props): react_jsx_runtime.JSX.Element;
396
- declare function SelectGroup(props: Select$1.Group.Props): react_jsx_runtime.JSX.Element;
397
- declare function SelectGroupLabel(props: Select$1.GroupLabel.Props): react_jsx_runtime.JSX.Element;
398
+ declare function SelectGroup({ ...props }: Select$1.Group.Props): react_jsx_runtime.JSX.Element;
399
+ declare function SelectGroupLabel({ ...props }: Select$1.GroupLabel.Props): react_jsx_runtime.JSX.Element;
398
400
  type SelectRichItemProps = Select$1.Item.Props & {
399
401
  /** Main label text */
400
402
  label?: React$1.ReactNode;
@@ -816,30 +818,24 @@ declare function AutocompletePopup({ className, children, sideOffset, ...props }
816
818
  }): react_jsx_runtime.JSX.Element;
817
819
  declare function AutocompleteItem({ className, children, ...props }: Autocomplete$1.Item.Props): react_jsx_runtime.JSX.Element;
818
820
  declare function AutocompleteSeparator({ className, ...props }: Autocomplete$1.Separator.Props): react_jsx_runtime.JSX.Element;
819
- declare function AutocompleteGroup({ className, ...props }: Autocomplete$1.Group.Props): react_jsx_runtime.JSX.Element;
820
821
  declare function AutocompleteEmpty({ className, ...props }: Autocomplete$1.Empty.Props): react_jsx_runtime.JSX.Element;
821
- declare function AutocompleteList({ className, ...props }: Autocomplete$1.List.Props): react_jsx_runtime.JSX.Element;
822
822
 
823
- type CommandProps<ItemValue> = Omit<AutocompleteRootProps<ItemValue>, "autoHighlight" | "keepHighlight" | "open"> & {
823
+ interface FlowZoomPanelProps {
824
824
  className?: string;
825
- autoHighlight?: boolean | "always";
826
- keepHighlight?: boolean;
827
- open?: boolean;
828
- };
829
- declare function Command<ItemValue>({ autoHighlight, keepHighlight, open, ...props }: CommandProps<ItemValue>): react_jsx_runtime.JSX.Element;
830
- type CommandInputProps = Omit<React$1.ComponentProps<typeof AutocompleteInput>, "onChange"> & {
831
- value?: string;
832
- onValueChange?: (value: string) => void;
833
- };
834
- declare function CommandInput({ className, placeholder, value, onValueChange, ...props }: CommandInputProps): react_jsx_runtime.JSX.Element;
835
- declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof AutocompleteList>): react_jsx_runtime.JSX.Element;
836
- declare function CommandEmpty({ className, ...props }: React$1.ComponentProps<typeof AutocompleteEmpty>): react_jsx_runtime.JSX.Element;
837
- type CommandGroupProps = React$1.ComponentProps<typeof AutocompleteGroup> & {
838
- /** Group heading label */
825
+ position?: PanelPosition;
826
+ fitViewIcon?: React.ReactNode;
827
+ fitViewOptions?: FitViewOptions;
828
+ }
829
+ declare function FlowZoomPanel({ className, position, fitViewIcon, fitViewOptions, }: FlowZoomPanelProps): react_jsx_runtime.JSX.Element;
830
+
831
+ declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>): react_jsx_runtime.JSX.Element;
832
+ declare function CommandInput({ className, placeholder, ...props }: React$1.ComponentProps<typeof Command$1.Input>): react_jsx_runtime.JSX.Element;
833
+ declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
834
+ declare function CommandEmpty({ className, ...props }: React$1.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
835
+ declare function CommandGroup({ className, heading, children, ...props }: React$1.ComponentProps<typeof Command$1.Group> & {
839
836
  heading?: React$1.ReactNode;
840
- };
841
- declare function CommandGroup({ className, heading, children, ...props }: CommandGroupProps): react_jsx_runtime.JSX.Element;
842
- declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof AutocompleteItem>): react_jsx_runtime.JSX.Element;
837
+ }): react_jsx_runtime.JSX.Element;
838
+ declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
843
839
 
844
840
  declare function Combobox<ItemValue, Multiple extends boolean | undefined = false>(props: Combobox$1.Root.Props<ItemValue, Multiple>): react_jsx_runtime.JSX.Element;
845
841
  declare function ComboboxInput({ className, showTrigger, showClear, startAddon, size, ...props }: Omit<Combobox$1.Input.Props, "size"> & {
@@ -1473,6 +1469,7 @@ type CardInjectedProps = {
1473
1469
  setTitle: (title?: string) => void;
1474
1470
  setDescription: (description?: string) => void;
1475
1471
  setWidth: (width?: string | number) => void;
1472
+ setDismissable: (dismissable: boolean) => void;
1476
1473
  updateProps: <P>(patch: Partial<P> | ((prev: P) => P)) => void;
1477
1474
  };
1478
1475
  };
@@ -1506,6 +1503,9 @@ type CardSpec<P = unknown> = {
1506
1503
  * Pass an object to configure blur and styling.
1507
1504
  */
1508
1505
  backdrop?: boolean | BackdropConfig;
1506
+ /** Whether user interactions (close button, Escape, backdrop click, gestures) can dismiss this card.
1507
+ * Programmatic dismissal via card.close() / api.dismiss() always works. Default: true */
1508
+ dismissable?: boolean;
1509
1509
  /**
1510
1510
  * Callback fired when this card is removed from the stack.
1511
1511
  * Fires regardless of how the card was closed (swipe, backdrop, escape, api.dismiss, etc.)
@@ -1596,6 +1596,8 @@ type CardStackApi = {
1596
1596
  setDescription: (id: CardId, description?: string) => void;
1597
1597
  /** Update the width for a specific card */
1598
1598
  setWidth: (id: CardId, width?: string | number) => void;
1599
+ /** Update the dismissable state for a specific card */
1600
+ setDismissable: (id: CardId, dismissable: boolean) => void;
1599
1601
  /**
1600
1602
  * Remove a card from the stack.
1601
1603
  * By default (cascade: true), also removes all cards above it.
@@ -1720,6 +1722,10 @@ type StackAction = {
1720
1722
  type: 'SET_WIDTH';
1721
1723
  id: CardId;
1722
1724
  width?: string | number;
1725
+ } | {
1726
+ type: 'SET_DISMISSABLE';
1727
+ id: CardId;
1728
+ dismissable: boolean;
1723
1729
  } | {
1724
1730
  type: 'DISMISS';
1725
1731
  id: CardId;
@@ -1763,6 +1769,7 @@ declare function useCardInjectedProps(id: CardId): {
1763
1769
  setTitle: (title?: string) => void;
1764
1770
  setDescription: (description?: string) => void;
1765
1771
  setWidth: (width?: string | number) => void;
1772
+ setDismissable: (dismissable: boolean) => void;
1766
1773
  updateProps: <P>(patch: Partial<P> | ((prev: P) => P)) => void;
1767
1774
  };
1768
1775
  };
@@ -2154,4 +2161,55 @@ declare const toast: {
2154
2161
  warning: typeof showWarningToast;
2155
2162
  };
2156
2163
 
2157
- export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationConfig, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, type BackdropConfig, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, Card, CardAction, type CardComponent, CardContent, CardDescription, CardFooter, CardHeader, type CardId, type CardInjectedProps, type CardProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, CardTitle, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, type DismissOptions, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, type FieldProps, FieldRow, type FieldRowProps, FlickeringGrid, type FloatingPortalStrategy, type FloatingZIndex, Form, FormControl$1 as FormControl, FormControl as FormControlComponent, type FormControlLayout, FormDescription, FormField, FormItem, FormLabel, FormMessage, type Frame, type FrameDot, type Frames, type GestureConfig, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, JsonEditor, JsonInput, Label, type LabelProps, type LayoutMode, type MobileConfig, ModalPortalScope, MotionGrid, type MotionGridProps, MultiSelect, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef, type OverlayLayer, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PeekGestureConfig, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalRoot, Progress, type ProgressProps, ProgressiveBlur, ProgressiveBlurScrollContainer, type PushOptions, Radio, RadioGroup, Radio as RadioGroupItem, type RadioGroupProps, type RadioProps, RangeCalendar, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveDiagram, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, ScrollArea, ScrollBar, Select, SelectPopup as SelectContent, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectItem, SelectGroupLabel as SelectLabel, SelectPopup, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, Slot, Slottable, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, type TagsContentProps, TagsEmpty, type TagsEmptyProps, TagsGroup, type TagsGroupProps, TagsInput, type TagsInputProps, TagsItem, type TagsItemProps, TagsList, type TagsListProps, type TagsProps, TagsTrigger, type TagsTriggerProps, TagsValue, type TagsValueProps, Textarea, type TextareaProps, type ToastErrorProps, type ToastInfoProps, type ToastSuccessProps, type ToastWarningProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, alertVariants, backdropVariants, badgeVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createCardVariants, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, isCardVisible, mergeProps, normalizeWidth, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, useRootPortalContainer, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, validateJson, variants };
2164
+ /** A single edge in the org chart — represents a person and their reporting relationship */
2165
+ interface OrgChartEdge {
2166
+ /** Person ID (used as the React Flow node id) */
2167
+ id: string;
2168
+ /** ID of the person this edge reports to (null = root) */
2169
+ parentId: string | null;
2170
+ displayName: string | null;
2171
+ avatarUrl: string | null;
2172
+ positionTitle: string | null;
2173
+ }
2174
+ /** Data carried by each React Flow node */
2175
+ interface OrgChartNodeData extends OrgChartEdge {
2176
+ childCount: number;
2177
+ isRoot: boolean;
2178
+ [key: string]: unknown;
2179
+ }
2180
+
2181
+ interface OrgChartPropsBase {
2182
+ /** Additional classes for the chart container (e.g. `"h-full"` to fill parent). Default height: 600px. */
2183
+ className?: string;
2184
+ /** Whether data is still loading */
2185
+ isLoading?: boolean;
2186
+ /** Whether the current user can manage the chart (drag, edit, remove) */
2187
+ editable?: boolean;
2188
+ /** Called when a node is dragged onto a new parent. In uncontrolled mode, the component updates visually first — if this throws, it reverts. */
2189
+ onReparent?: (childId: string, newParentId: string, preserve: {
2190
+ positionTitle?: string | null;
2191
+ }) => void | Promise<void>;
2192
+ /** Called when the "Add to Chart" button is clicked (empty state) */
2193
+ onAddToChart?: () => void;
2194
+ /** Called when "Edit Position" is selected from the node menu */
2195
+ onEditNode?: (nodeData: OrgChartNodeData) => void;
2196
+ /** Called when "Remove from Chart" is selected from the node menu */
2197
+ onRemoveNode?: (nodeData: OrgChartNodeData) => void;
2198
+ /** Toast handler for reparent success/error messages. If not provided, no toasts are shown. */
2199
+ onReparentSuccess?: (childName: string, parentName: string) => void;
2200
+ onReparentError?: (message: string) => void;
2201
+ }
2202
+ /** Controlled mode — consumer owns edge state */
2203
+ interface OrgChartControlledProps extends OrgChartPropsBase {
2204
+ edges: OrgChartEdge[];
2205
+ defaultEdges?: never;
2206
+ }
2207
+ /** Uncontrolled mode — component manages edge state internally with optimistic reparent */
2208
+ interface OrgChartUncontrolledProps extends OrgChartPropsBase {
2209
+ edges?: never;
2210
+ defaultEdges: OrgChartEdge[];
2211
+ }
2212
+ type OrgChartProps = OrgChartControlledProps | OrgChartUncontrolledProps;
2213
+ declare function OrgChart(props: OrgChartProps): react_jsx_runtime.JSX.Element;
2214
+
2215
+ export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationConfig, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, type BackdropConfig, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, Card, CardAction, type CardComponent, CardContent, CardDescription, CardFooter, CardHeader, type CardId, type CardInjectedProps, type CardProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, CardTitle, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, type DismissOptions, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, type FieldProps, FieldRow, type FieldRowProps, FlickeringGrid, type FloatingPortalStrategy, type FloatingZIndex, FlowZoomPanel, Form, FormControl$1 as FormControl, FormControl as FormControlComponent, type FormControlLayout, FormDescription, FormField, FormItem, FormLabel, FormMessage, type Frame, type FrameDot, type Frames, type GestureConfig, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, JsonEditor, JsonInput, Label, type LabelProps, type LayoutMode, type MobileConfig, ModalPortalScope, MotionGrid, type MotionGridProps, MultiSelect, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef, OrgChart, type OrgChartEdge, type OrgChartNodeData, type OrgChartProps, type OverlayLayer, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PeekGestureConfig, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalRoot, Progress, type ProgressProps, ProgressiveBlur, ProgressiveBlurScrollContainer, type PushOptions, Radio, RadioGroup, Radio as RadioGroupItem, type RadioGroupProps, type RadioProps, RangeCalendar, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveDiagram, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, ScrollArea, ScrollBar, Select, SelectPopup as SelectContent, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectItem, SelectGroupLabel as SelectLabel, SelectPopup, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, Slot, Slottable, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, type TagsContentProps, TagsEmpty, type TagsEmptyProps, TagsGroup, type TagsGroupProps, TagsInput, type TagsInputProps, TagsItem, type TagsItemProps, TagsList, type TagsListProps, type TagsProps, TagsTrigger, type TagsTriggerProps, TagsValue, type TagsValueProps, Textarea, type TextareaProps, type ToastErrorProps, type ToastInfoProps, type ToastSuccessProps, type ToastWarningProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, alertVariants, backdropVariants, badgeVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createCardVariants, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, isCardVisible, mergeProps, normalizeWidth, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, useRootPortalContainer, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, validateJson, variants };
package/dist/index.d.ts CHANGED
@@ -31,7 +31,9 @@ import * as _base_ui_react_scroll_area from '@base-ui/react/scroll-area';
31
31
  import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area';
32
32
  import * as ResizablePrimitive from 'react-resizable-panels';
33
33
  import { Avatar as Avatar$1 } from '@base-ui/react/avatar';
34
- import { Autocomplete as Autocomplete$1, AutocompleteRootProps } from '@base-ui/react/autocomplete';
34
+ import { Autocomplete as Autocomplete$1 } from '@base-ui/react/autocomplete';
35
+ import { PanelPosition, FitViewOptions } from '@xyflow/react';
36
+ import { Command as Command$1 } from 'cmdk';
35
37
  import { Combobox as Combobox$1 } from '@base-ui/react/combobox';
36
38
  import { Calendar as Calendar$1, RangeCalendar as RangeCalendar$1 } from 'react-aria-components';
37
39
  import { ToasterProps } from 'sonner';
@@ -393,8 +395,8 @@ type SelectPopupProps = Select$1.Popup.Props & {
393
395
  declare function SelectPopup({ className, children, sideOffset, alignItemWithTrigger, position: _position, ...props }: SelectPopupProps): react_jsx_runtime.JSX.Element;
394
396
  declare function SelectItem({ className, children, ...props }: Select$1.Item.Props): react_jsx_runtime.JSX.Element;
395
397
  declare function SelectSeparator({ className, ...props }: Select$1.Separator.Props): react_jsx_runtime.JSX.Element;
396
- declare function SelectGroup(props: Select$1.Group.Props): react_jsx_runtime.JSX.Element;
397
- declare function SelectGroupLabel(props: Select$1.GroupLabel.Props): react_jsx_runtime.JSX.Element;
398
+ declare function SelectGroup({ ...props }: Select$1.Group.Props): react_jsx_runtime.JSX.Element;
399
+ declare function SelectGroupLabel({ ...props }: Select$1.GroupLabel.Props): react_jsx_runtime.JSX.Element;
398
400
  type SelectRichItemProps = Select$1.Item.Props & {
399
401
  /** Main label text */
400
402
  label?: React$1.ReactNode;
@@ -816,30 +818,24 @@ declare function AutocompletePopup({ className, children, sideOffset, ...props }
816
818
  }): react_jsx_runtime.JSX.Element;
817
819
  declare function AutocompleteItem({ className, children, ...props }: Autocomplete$1.Item.Props): react_jsx_runtime.JSX.Element;
818
820
  declare function AutocompleteSeparator({ className, ...props }: Autocomplete$1.Separator.Props): react_jsx_runtime.JSX.Element;
819
- declare function AutocompleteGroup({ className, ...props }: Autocomplete$1.Group.Props): react_jsx_runtime.JSX.Element;
820
821
  declare function AutocompleteEmpty({ className, ...props }: Autocomplete$1.Empty.Props): react_jsx_runtime.JSX.Element;
821
- declare function AutocompleteList({ className, ...props }: Autocomplete$1.List.Props): react_jsx_runtime.JSX.Element;
822
822
 
823
- type CommandProps<ItemValue> = Omit<AutocompleteRootProps<ItemValue>, "autoHighlight" | "keepHighlight" | "open"> & {
823
+ interface FlowZoomPanelProps {
824
824
  className?: string;
825
- autoHighlight?: boolean | "always";
826
- keepHighlight?: boolean;
827
- open?: boolean;
828
- };
829
- declare function Command<ItemValue>({ autoHighlight, keepHighlight, open, ...props }: CommandProps<ItemValue>): react_jsx_runtime.JSX.Element;
830
- type CommandInputProps = Omit<React$1.ComponentProps<typeof AutocompleteInput>, "onChange"> & {
831
- value?: string;
832
- onValueChange?: (value: string) => void;
833
- };
834
- declare function CommandInput({ className, placeholder, value, onValueChange, ...props }: CommandInputProps): react_jsx_runtime.JSX.Element;
835
- declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof AutocompleteList>): react_jsx_runtime.JSX.Element;
836
- declare function CommandEmpty({ className, ...props }: React$1.ComponentProps<typeof AutocompleteEmpty>): react_jsx_runtime.JSX.Element;
837
- type CommandGroupProps = React$1.ComponentProps<typeof AutocompleteGroup> & {
838
- /** Group heading label */
825
+ position?: PanelPosition;
826
+ fitViewIcon?: React.ReactNode;
827
+ fitViewOptions?: FitViewOptions;
828
+ }
829
+ declare function FlowZoomPanel({ className, position, fitViewIcon, fitViewOptions, }: FlowZoomPanelProps): react_jsx_runtime.JSX.Element;
830
+
831
+ declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>): react_jsx_runtime.JSX.Element;
832
+ declare function CommandInput({ className, placeholder, ...props }: React$1.ComponentProps<typeof Command$1.Input>): react_jsx_runtime.JSX.Element;
833
+ declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
834
+ declare function CommandEmpty({ className, ...props }: React$1.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
835
+ declare function CommandGroup({ className, heading, children, ...props }: React$1.ComponentProps<typeof Command$1.Group> & {
839
836
  heading?: React$1.ReactNode;
840
- };
841
- declare function CommandGroup({ className, heading, children, ...props }: CommandGroupProps): react_jsx_runtime.JSX.Element;
842
- declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof AutocompleteItem>): react_jsx_runtime.JSX.Element;
837
+ }): react_jsx_runtime.JSX.Element;
838
+ declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
843
839
 
844
840
  declare function Combobox<ItemValue, Multiple extends boolean | undefined = false>(props: Combobox$1.Root.Props<ItemValue, Multiple>): react_jsx_runtime.JSX.Element;
845
841
  declare function ComboboxInput({ className, showTrigger, showClear, startAddon, size, ...props }: Omit<Combobox$1.Input.Props, "size"> & {
@@ -1473,6 +1469,7 @@ type CardInjectedProps = {
1473
1469
  setTitle: (title?: string) => void;
1474
1470
  setDescription: (description?: string) => void;
1475
1471
  setWidth: (width?: string | number) => void;
1472
+ setDismissable: (dismissable: boolean) => void;
1476
1473
  updateProps: <P>(patch: Partial<P> | ((prev: P) => P)) => void;
1477
1474
  };
1478
1475
  };
@@ -1506,6 +1503,9 @@ type CardSpec<P = unknown> = {
1506
1503
  * Pass an object to configure blur and styling.
1507
1504
  */
1508
1505
  backdrop?: boolean | BackdropConfig;
1506
+ /** Whether user interactions (close button, Escape, backdrop click, gestures) can dismiss this card.
1507
+ * Programmatic dismissal via card.close() / api.dismiss() always works. Default: true */
1508
+ dismissable?: boolean;
1509
1509
  /**
1510
1510
  * Callback fired when this card is removed from the stack.
1511
1511
  * Fires regardless of how the card was closed (swipe, backdrop, escape, api.dismiss, etc.)
@@ -1596,6 +1596,8 @@ type CardStackApi = {
1596
1596
  setDescription: (id: CardId, description?: string) => void;
1597
1597
  /** Update the width for a specific card */
1598
1598
  setWidth: (id: CardId, width?: string | number) => void;
1599
+ /** Update the dismissable state for a specific card */
1600
+ setDismissable: (id: CardId, dismissable: boolean) => void;
1599
1601
  /**
1600
1602
  * Remove a card from the stack.
1601
1603
  * By default (cascade: true), also removes all cards above it.
@@ -1720,6 +1722,10 @@ type StackAction = {
1720
1722
  type: 'SET_WIDTH';
1721
1723
  id: CardId;
1722
1724
  width?: string | number;
1725
+ } | {
1726
+ type: 'SET_DISMISSABLE';
1727
+ id: CardId;
1728
+ dismissable: boolean;
1723
1729
  } | {
1724
1730
  type: 'DISMISS';
1725
1731
  id: CardId;
@@ -1763,6 +1769,7 @@ declare function useCardInjectedProps(id: CardId): {
1763
1769
  setTitle: (title?: string) => void;
1764
1770
  setDescription: (description?: string) => void;
1765
1771
  setWidth: (width?: string | number) => void;
1772
+ setDismissable: (dismissable: boolean) => void;
1766
1773
  updateProps: <P>(patch: Partial<P> | ((prev: P) => P)) => void;
1767
1774
  };
1768
1775
  };
@@ -2154,4 +2161,55 @@ declare const toast: {
2154
2161
  warning: typeof showWarningToast;
2155
2162
  };
2156
2163
 
2157
- export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationConfig, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, type BackdropConfig, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, Card, CardAction, type CardComponent, CardContent, CardDescription, CardFooter, CardHeader, type CardId, type CardInjectedProps, type CardProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, CardTitle, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, type DismissOptions, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, type FieldProps, FieldRow, type FieldRowProps, FlickeringGrid, type FloatingPortalStrategy, type FloatingZIndex, Form, FormControl$1 as FormControl, FormControl as FormControlComponent, type FormControlLayout, FormDescription, FormField, FormItem, FormLabel, FormMessage, type Frame, type FrameDot, type Frames, type GestureConfig, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, JsonEditor, JsonInput, Label, type LabelProps, type LayoutMode, type MobileConfig, ModalPortalScope, MotionGrid, type MotionGridProps, MultiSelect, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef, type OverlayLayer, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PeekGestureConfig, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalRoot, Progress, type ProgressProps, ProgressiveBlur, ProgressiveBlurScrollContainer, type PushOptions, Radio, RadioGroup, Radio as RadioGroupItem, type RadioGroupProps, type RadioProps, RangeCalendar, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveDiagram, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, ScrollArea, ScrollBar, Select, SelectPopup as SelectContent, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectItem, SelectGroupLabel as SelectLabel, SelectPopup, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, Slot, Slottable, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, type TagsContentProps, TagsEmpty, type TagsEmptyProps, TagsGroup, type TagsGroupProps, TagsInput, type TagsInputProps, TagsItem, type TagsItemProps, TagsList, type TagsListProps, type TagsProps, TagsTrigger, type TagsTriggerProps, TagsValue, type TagsValueProps, Textarea, type TextareaProps, type ToastErrorProps, type ToastInfoProps, type ToastSuccessProps, type ToastWarningProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, alertVariants, backdropVariants, badgeVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createCardVariants, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, isCardVisible, mergeProps, normalizeWidth, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, useRootPortalContainer, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, validateJson, variants };
2164
+ /** A single edge in the org chart — represents a person and their reporting relationship */
2165
+ interface OrgChartEdge {
2166
+ /** Person ID (used as the React Flow node id) */
2167
+ id: string;
2168
+ /** ID of the person this edge reports to (null = root) */
2169
+ parentId: string | null;
2170
+ displayName: string | null;
2171
+ avatarUrl: string | null;
2172
+ positionTitle: string | null;
2173
+ }
2174
+ /** Data carried by each React Flow node */
2175
+ interface OrgChartNodeData extends OrgChartEdge {
2176
+ childCount: number;
2177
+ isRoot: boolean;
2178
+ [key: string]: unknown;
2179
+ }
2180
+
2181
+ interface OrgChartPropsBase {
2182
+ /** Additional classes for the chart container (e.g. `"h-full"` to fill parent). Default height: 600px. */
2183
+ className?: string;
2184
+ /** Whether data is still loading */
2185
+ isLoading?: boolean;
2186
+ /** Whether the current user can manage the chart (drag, edit, remove) */
2187
+ editable?: boolean;
2188
+ /** Called when a node is dragged onto a new parent. In uncontrolled mode, the component updates visually first — if this throws, it reverts. */
2189
+ onReparent?: (childId: string, newParentId: string, preserve: {
2190
+ positionTitle?: string | null;
2191
+ }) => void | Promise<void>;
2192
+ /** Called when the "Add to Chart" button is clicked (empty state) */
2193
+ onAddToChart?: () => void;
2194
+ /** Called when "Edit Position" is selected from the node menu */
2195
+ onEditNode?: (nodeData: OrgChartNodeData) => void;
2196
+ /** Called when "Remove from Chart" is selected from the node menu */
2197
+ onRemoveNode?: (nodeData: OrgChartNodeData) => void;
2198
+ /** Toast handler for reparent success/error messages. If not provided, no toasts are shown. */
2199
+ onReparentSuccess?: (childName: string, parentName: string) => void;
2200
+ onReparentError?: (message: string) => void;
2201
+ }
2202
+ /** Controlled mode — consumer owns edge state */
2203
+ interface OrgChartControlledProps extends OrgChartPropsBase {
2204
+ edges: OrgChartEdge[];
2205
+ defaultEdges?: never;
2206
+ }
2207
+ /** Uncontrolled mode — component manages edge state internally with optimistic reparent */
2208
+ interface OrgChartUncontrolledProps extends OrgChartPropsBase {
2209
+ edges?: never;
2210
+ defaultEdges: OrgChartEdge[];
2211
+ }
2212
+ type OrgChartProps = OrgChartControlledProps | OrgChartUncontrolledProps;
2213
+ declare function OrgChart(props: OrgChartProps): react_jsx_runtime.JSX.Element;
2214
+
2215
+ export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationConfig, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, type BackdropConfig, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, Card, CardAction, type CardComponent, CardContent, CardDescription, CardFooter, CardHeader, type CardId, type CardInjectedProps, type CardProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, CardTitle, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, type DismissOptions, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, type FieldProps, FieldRow, type FieldRowProps, FlickeringGrid, type FloatingPortalStrategy, type FloatingZIndex, FlowZoomPanel, Form, FormControl$1 as FormControl, FormControl as FormControlComponent, type FormControlLayout, FormDescription, FormField, FormItem, FormLabel, FormMessage, type Frame, type FrameDot, type Frames, type GestureConfig, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, JsonEditor, JsonInput, Label, type LabelProps, type LayoutMode, type MobileConfig, ModalPortalScope, MotionGrid, type MotionGridProps, MultiSelect, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef, OrgChart, type OrgChartEdge, type OrgChartNodeData, type OrgChartProps, type OverlayLayer, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PeekGestureConfig, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalRoot, Progress, type ProgressProps, ProgressiveBlur, ProgressiveBlurScrollContainer, type PushOptions, Radio, RadioGroup, Radio as RadioGroupItem, type RadioGroupProps, type RadioProps, RangeCalendar, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveDiagram, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, ScrollArea, ScrollBar, Select, SelectPopup as SelectContent, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectItem, SelectGroupLabel as SelectLabel, SelectPopup, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, Slot, Slottable, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, type TagsContentProps, TagsEmpty, type TagsEmptyProps, TagsGroup, type TagsGroupProps, TagsInput, type TagsInputProps, TagsItem, type TagsItemProps, TagsList, type TagsListProps, type TagsProps, TagsTrigger, type TagsTriggerProps, TagsValue, type TagsValueProps, Textarea, type TextareaProps, type ToastErrorProps, type ToastInfoProps, type ToastSuccessProps, type ToastWarningProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, alertVariants, backdropVariants, badgeVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createCardVariants, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, isCardVisible, mergeProps, normalizeWidth, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, useRootPortalContainer, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, validateJson, variants };