@noya-app/noya-designsystem 0.1.55 → 0.1.57

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.
@@ -7,12 +7,12 @@
7
7
  CLI Target: esnext
8
8
  CJS Build start
9
9
  ESM Build start
10
- ESM dist/index.mjs 366.67 KB
11
- ESM dist/index.mjs.map 760.37 KB
12
- ESM ⚡️ Build success in 313ms
13
- CJS dist/index.js 388.50 KB
14
- CJS dist/index.js.map 760.07 KB
15
- CJS ⚡️ Build success in 314ms
10
+ CJS dist/index.js 399.23 KB
11
+ CJS dist/index.js.map 783.78 KB
12
+ CJS ⚡️ Build success in 89ms
13
+ ESM dist/index.mjs 376.87 KB
14
+ ESM dist/index.mjs.map 783.92 KB
15
+ ESM ⚡️ Build success in 89ms
16
16
  DTS Build start
17
17
  Browserslist: caniuse-lite is outdated. Please run:
18
18
  npx update-browserslist-db@latest
@@ -20,8 +20,8 @@ Browserslist: caniuse-lite is outdated. Please run:
20
20
 
21
21
  Rebuilding...
22
22
 
23
- Done in 1163ms.
23
+ Done in 380ms.
24
24
 
25
- DTS ⚡️ Build success in 9462ms
26
- DTS dist/index.d.ts 93.62 KB
27
- DTS dist/index.d.mts 93.62 KB
25
+ DTS ⚡️ Build success in 6452ms
26
+ DTS dist/index.d.ts 96.88 KB
27
+ DTS dist/index.d.mts 96.88 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @noya-app/noya-designsystem
2
2
 
3
+ ## 0.1.57
4
+
5
+ ### Patch Changes
6
+
7
+ - 9e59d48: Drag improvements
8
+
9
+ ## 0.1.56
10
+
11
+ ### Patch Changes
12
+
13
+ - 7e35a6b: Package updates
14
+ - Updated dependencies [7e35a6b]
15
+ - @noya-app/noya-icons@0.1.10
16
+
3
17
  ## 0.1.55
4
18
 
5
19
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -5,9 +5,8 @@ import * as Icons from '@noya-app/noya-icons';
5
5
  export { Icons };
6
6
  import tailwindConfig from '@noya-app/noya-tailwind-config';
7
7
  import * as _noya_app_noya_geometry from '@noya-app/noya-geometry';
8
- import { Size, Rect } from '@noya-app/noya-geometry';
9
- import { UniqueIdentifier } from '@dnd-kit/core';
10
- import { useSortable } from '@dnd-kit/sortable';
8
+ import { Point as Point$1, Size, Rect } from '@noya-app/noya-geometry';
9
+ import { UniqueIdentifier, Active, Over, CollisionDetection } from '@dnd-kit/core';
11
10
  import { Property } from 'csstype';
12
11
  import * as _noya_app_noya_designsystem from '@noya-app/noya-designsystem';
13
12
  import { SectionProps as SectionProps$1, BannerProps as BannerProps$1 } from '@noya-app/noya-designsystem';
@@ -20,6 +19,7 @@ import * as RadixContextMenu from '@radix-ui/react-context-menu';
20
19
  import { MultiplayerUser } from '@noya-app/noya-multiplayer-react';
21
20
  import * as PopoverPrimitive from '@radix-ui/react-popover';
22
21
  import { SelectProps } from '@radix-ui/react-select';
22
+ import { useSortable } from '@dnd-kit/sortable';
23
23
  import { ImperativePanelGroupHandle } from 'react-resizable-panels';
24
24
  import { RgbaColor } from '@noya-app/noya-colorpicker';
25
25
 
@@ -709,7 +709,23 @@ interface ChipProps {
709
709
  declare const Chip: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<ChipProps & React__default.RefAttributes<HTMLSpanElement>>>;
710
710
 
711
711
  type RelativeDropPosition = "above" | "below" | "inside";
712
- type DropValidator = (sourceIndex: number, targetIndex: number, position: RelativeDropPosition) => boolean;
712
+ type DropValidator = (sourceIndex: number, targetIndex: number, position: RelativeDropPosition, sourceListId: string, targetListId: string) => boolean;
713
+ type AcceptsDrop = (sourceIndex: number, targetIndex: number, position: RelativeDropPosition, sourceListId: string, targetListId: string) => boolean;
714
+ type MoveDragItemHandler = (sourceIndex: number, targetIndex: number, position: RelativeDropPosition, sourceListId: string, targetListId: string) => void;
715
+ type AcceptsFromList = ({ sourceListId, targetListId, }: {
716
+ sourceListId: string;
717
+ targetListId: string;
718
+ }) => boolean;
719
+ interface DragItem {
720
+ itemId: UniqueIdentifier;
721
+ listId: string;
722
+ index: number;
723
+ }
724
+ type DragState = {
725
+ source: DragItem | null;
726
+ target: DragItem | null;
727
+ indicator: RelativeDropPosition | null;
728
+ };
713
729
  declare const normalizeListTargetIndex: (index: number, position: "above" | "below") => number;
714
730
  declare const defaultAcceptsDrop: DropValidator;
715
731
  type SortableItemContextProps = {
@@ -722,7 +738,9 @@ type SortableItemContextProps = {
722
738
  };
723
739
  setActivatorEvent: (event: PointerEvent) => void;
724
740
  getDropTargetParentIndex?: (index: number) => number | undefined;
741
+ listId: string;
725
742
  };
743
+ declare const SortableItemContext: React$1.Context<SortableItemContextProps>;
726
744
  type ValidateDropIndicatorParams = {
727
745
  acceptsDrop: DropValidator;
728
746
  keys: UniqueIdentifier[];
@@ -731,40 +749,40 @@ type ValidateDropIndicatorParams = {
731
749
  offsetStart: number;
732
750
  elementStart: number;
733
751
  elementSize: number;
752
+ sourceListId: string;
753
+ targetListId: string;
734
754
  };
735
- declare function validateDropIndicator({ acceptsDrop, keys, activeId, overId, offsetStart, elementStart, elementSize, }: ValidateDropIndicatorParams): RelativeDropPosition | undefined;
736
- type UseSortableReturnType = ReturnType<typeof useSortable>;
737
- type ItemChildrenProps<T> = {
738
- ref: React$1.Ref<T>;
739
- relativeDropPosition?: RelativeDropPosition;
740
- style?: React$1.CSSProperties;
741
- } & UseSortableReturnType["attributes"];
742
- interface ItemProps$1<T> {
743
- id: UniqueIdentifier;
744
- disabled?: boolean;
745
- children: (props: ItemChildrenProps<T>) => JSX.Element;
746
- }
747
- interface RootProps {
755
+ declare function validateDropIndicator({ acceptsDrop, keys, activeId, overId, offsetStart, elementStart, elementSize, sourceListId, targetListId, }: ValidateDropIndicatorParams): RelativeDropPosition | undefined;
756
+ declare function createDragItemKey(listId: string, itemId: UniqueIdentifier): string;
757
+ declare function parseDragItemKey(key: string): {
758
+ listId: string;
759
+ itemId: UniqueIdentifier;
760
+ };
761
+
762
+ type GetDropIndicatorParameters = {
763
+ absolutePosition: Point$1;
764
+ active: Active;
765
+ over: Over;
766
+ sourceListId: string;
767
+ targetListId: string;
768
+ };
769
+ interface RegisteredList {
770
+ id: string;
748
771
  keys: UniqueIdentifier[];
749
- children: React$1.ReactNode;
750
- renderOverlay?: (index: number) => React$1.ReactNode;
751
- onMoveItem?: (sourceIndex: number, targetIndex: number, position: RelativeDropPosition) => void;
752
- acceptsDrop?: SortableItemContextProps["acceptsDrop"];
753
- axis?: SortableItemContextProps["axis"];
754
- getDropTargetParentIndex?: SortableItemContextProps["getDropTargetParentIndex"];
772
+ onMoveItem: MoveDragItemHandler;
773
+ renderOverlay?: (id: UniqueIdentifier) => React__default.ReactNode;
774
+ acceptsFromList: AcceptsFromList;
775
+ acceptsDrop: AcceptsDrop;
776
+ getDropIndicator: (parameters: GetDropIndicatorParameters) => RelativeDropPosition | undefined;
755
777
  }
756
- declare function SortableRoot({ keys, children, onMoveItem, renderOverlay, acceptsDrop, axis, getDropTargetParentIndex, }: RootProps): React$1.JSX.Element;
757
- interface SortableProps<T, TElement extends HTMLElement> extends Omit<RootProps, "children" | "keys" | "renderOverlay"> {
758
- items: T[];
759
- keyExtractor: (item: T) => UniqueIdentifier;
760
- shouldRenderOverlay?: boolean;
761
- renderItem: (item: T, props: ItemChildrenProps<TElement>, { isOverlay }: {
762
- isOverlay: boolean;
763
- }) => JSX.Element;
778
+ interface DragRegistrationContextType {
779
+ registerList: (list: RegisteredList) => void;
780
+ unregisterList: (listId: string) => void;
764
781
  }
765
- declare const Sortable: (<TItem, TElement extends HTMLElement>(props: SortableProps<TItem, TElement>) => React$1.ReactElement | null) & {
766
- readonly Root: React$1.MemoExoticComponent<typeof SortableRoot>;
767
- readonly Item: <T extends HTMLElement>(props: ItemProps$1<T>) => React$1.ReactElement | null;
782
+ type ActiveDragContextType = DragState;
783
+ type SharedDragProps = {
784
+ dragRegistrationContext: React__default.Context<DragRegistrationContextType | null>;
785
+ activeDragContext: React__default.Context<ActiveDragContextType | null>;
768
786
  };
769
787
 
770
788
  type ListRowMarginType = "none" | "top" | "bottom" | "vertical";
@@ -866,7 +884,7 @@ type ListViewRootProps = {
866
884
  onPress?: () => void;
867
885
  scrollable?: boolean;
868
886
  expandable?: boolean;
869
- onMoveItem?: (sourceIndex: number, targetIndex: number, position: RelativeDropPosition) => void;
887
+ onMoveItem?: MoveDragItemHandler;
870
888
  indentation?: number;
871
889
  acceptsDrop?: DropValidator;
872
890
  pressEventName?: PressEventName;
@@ -882,6 +900,8 @@ type ListViewRootProps = {
882
900
  onDrop?: React__default.DragEventHandler<HTMLDivElement>;
883
901
  renderEmptyState?: () => ReactNode;
884
902
  getDropTargetParentIndex?: SortableItemContextProps["getDropTargetParentIndex"];
903
+ sharedDragProps?: SharedDragProps;
904
+ sortableId?: string;
885
905
  };
886
906
  declare namespace ListView {
887
907
  const RowTitle: React__default.MemoExoticComponent<({ className, children, ...props }: {
@@ -981,6 +1001,8 @@ interface CollectionProps<T, M extends string = string> {
981
1001
  /** @default false */
982
1002
  sortable?: boolean;
983
1003
  dragIndicatorStyle?: ListViewRowProps<M>["dragIndicatorStyle"];
1004
+ sharedDragProps?: SharedDragProps;
1005
+ sortableId?: string;
984
1006
  }
985
1007
  declare const Collection: <T, M extends string = string>(props: CollectionProps<T, M> & React__default.RefAttributes<CollectionRef>) => React__default.ReactElement | null;
986
1008
  type CollectionItemSize = "xxs" | "xs" | "small" | "medium" | "large" | "xl";
@@ -1797,6 +1819,58 @@ interface Props$4 {
1797
1819
  }
1798
1820
  declare const Slider: React__default.NamedExoticComponent<Props$4>;
1799
1821
 
1822
+ type SharedDragProviderProps = {
1823
+ children: React$1.ReactNode;
1824
+ sharedDragProps?: SharedDragProps;
1825
+ };
1826
+ declare function SharedDragProvider({ children, sharedDragProps, }: SharedDragProviderProps): React$1.JSX.Element;
1827
+ declare function withDragProvider<T extends object>(Component: React$1.ComponentType<T>): (props: T) => React$1.JSX.Element;
1828
+ declare const getItemFirstCollisionDetection: (registeredListIds: string[]) => CollisionDetection;
1829
+
1830
+ type UseSortableReturnType = ReturnType<typeof useSortable>;
1831
+ type ItemChildrenProps<T> = {
1832
+ ref: React$1.Ref<T>;
1833
+ relativeDropPosition?: RelativeDropPosition;
1834
+ style?: React$1.CSSProperties;
1835
+ } & UseSortableReturnType["attributes"];
1836
+ interface RootProps {
1837
+ id?: string;
1838
+ keys: UniqueIdentifier[];
1839
+ axis?: "x" | "y";
1840
+ children?: React$1.ReactNode;
1841
+ renderOverlay?: (index: number) => React$1.ReactNode;
1842
+ onMoveItem?: MoveDragItemHandler;
1843
+ acceptsFromList?: AcceptsFromList;
1844
+ acceptsDrop?: DropValidator;
1845
+ getDropTargetParentIndex?: (index: number) => number | undefined;
1846
+ sharedDragProps?: SharedDragProps;
1847
+ containerRef?: React$1.RefObject<HTMLElement>;
1848
+ }
1849
+ declare function SortableItem<TElement extends HTMLElement>({ id, disabled, children, }: {
1850
+ id: UniqueIdentifier;
1851
+ disabled?: boolean;
1852
+ children: (props: ItemChildrenProps<TElement>) => React$1.ReactNode;
1853
+ }): React$1.ReactNode;
1854
+ declare function SortableRoot_({ id: idProp, keys: keysProp, onMoveItem, renderOverlay, acceptsFromList, acceptsDrop, axis, children, getDropTargetParentIndex, sharedDragProps, containerRef, }: RootProps): React$1.JSX.Element;
1855
+ interface SortableProps<TItem, TElement extends HTMLElement> extends Omit<RootProps, "children" | "keys" | "renderOverlay"> {
1856
+ items: TItem[];
1857
+ keyExtractor: (item: TItem) => UniqueIdentifier;
1858
+ shouldRenderOverlay?: boolean;
1859
+ renderItem: (item: TItem, props: ItemChildrenProps<TElement>, { isOverlay }: {
1860
+ isOverlay: boolean;
1861
+ }) => React$1.ReactNode;
1862
+ }
1863
+ declare const Sortable: (<TItem, TElement extends HTMLElement>({ items, keyExtractor, shouldRenderOverlay, renderItem, ...rest }: SortableProps<TItem, TElement>) => React$1.JSX.Element) & {
1864
+ Root: typeof SortableRoot_;
1865
+ Item: typeof SortableItem;
1866
+ };
1867
+
1868
+ declare function createSharedDrag(): {
1869
+ Provider: typeof SharedDragProvider;
1870
+ Sortable: <TItem, TElement extends HTMLElement>(props: SortableProps<TItem, TElement>) => React$1.ReactNode;
1871
+ props: SharedDragProps;
1872
+ };
1873
+
1800
1874
  interface Props$3 {
1801
1875
  size?: number | string;
1802
1876
  inline?: boolean;
@@ -2331,14 +2405,17 @@ declare const ToolbarMenuDropdown: <T extends string>(props: {
2331
2405
  declare const ToolbarMenuButton: <T extends string>(props: {
2332
2406
  item: SelectableMenuItem<T>;
2333
2407
  onSelectMenuItem?: (value: T) => void;
2408
+ as?: ComponentProps<typeof Button>["as"];
2334
2409
  }) => React__default.ReactElement | null;
2335
2410
  declare const ToolbarMenuItem: <T extends string>(props: {
2336
2411
  item: MenuItem<T>;
2337
2412
  onSelectMenuItem?: (value: T) => void;
2413
+ buttonAs?: ComponentProps<typeof Button>["as"];
2338
2414
  }) => React__default.ReactElement | null;
2339
2415
  declare const ToolbarMenu: <T extends string>(props: {
2340
2416
  items: MenuItem<T>[];
2341
2417
  onSelectMenuItem?: (value: T) => void;
2418
+ buttonAs?: ComponentProps<typeof Button>["as"];
2342
2419
  }) => React__default.ReactElement | null;
2343
2420
  interface ToolbarProps<T extends string = string> {
2344
2421
  children?: React__default.ReactNode;
@@ -2351,4 +2428,4 @@ interface ToolbarProps<T extends string = string> {
2351
2428
  }
2352
2429
  declare function Toolbar<T extends string = string>({ children, logo, leftMenuItems, rightMenuItems, onSelectMenuItem, shouldBindKeyboardShortcuts, }: ToolbarProps<T>): React__default.JSX.Element;
2353
2430
 
2354
- export { AIAssistantInput, AIAssistantLayout, AIAssistantLoadingIndicator, type AcceptsDropOptions, ActionMenu, ActivityIndicator, AnimatePresence, type AnimatePresenceProps, Avatar, type AvatarProps, AvatarStack, Banner, type BannerProps, type BaseComboboxProps, BaseToolbar, type BaseToolbarProps, Body, BreadcrumbSlash, BreadcrumbText, Button, type ButtonRootProps, CHECKBOX_INDENT_WIDTH, CHECKBOX_RIGHT_INSET, CHECKBOX_WIDTH, CONTENT_AREA_ID, Checkbox$1 as Checkbox, Chip, type ChipProps, Collection, type CollectionItemSize, type CollectionProps, type CollectionRef, type CollectionRenderActionProps, type CollectionThumbnailProps, type CollectionThumbnailSize, type CollectionViewType, ColorSwatch, ColorSwatchControl, type ColorSwatchSize, Combobox, ComboboxMenu, type ComboboxProps, type ComboboxRef, ComboboxState, type ComboboxStateSnapshot, CommandPalette, ConnectedUsersMenuLayout, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, type DetectSizeType, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, type DragIndicatorStyleProps, DraggableMenuButton, Drawer, type DrawerProps, type DropValidator, DropdownMenu, type DropdownRootProps, EDITOR_PANEL_GROUP_ID, type EditableRowProps, EditableText, type EditableTextRef, type ExtractMenuItemType, Fade, type FadeDirection, type FadeProps, FileExplorerCollection, FileExplorerDetail, FileExplorerEmptyState, FileExplorerLayout, FileExplorerUploadButton, FillInputField, FillPreviewBackground, FloatingWindow, FloatingWindowProvider, FullscreenDialog, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, Grid, GridView, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, INPUT_HEIGHT, type IScoredItem, type ISearchCompletionMenu, type IToken, type IVirtualizedList, IconButton, type IconName, type ImageDataContextValue, ImageDataProvider, IndentContext, InputField, type InputFieldInputProps, type InputFieldProps, type InputFieldSize, InspectorContainer, InspectorPrimitives, Italic, KeyboardShortcut, LEFT_SIDEBAR_ID, Label, LabelContext, type LabelPosition, LabelPositionContext, type LabelPositionContextValue, type LabelProps, LabelWidthContext, type LabelWidthContextValue, LabeledElementView, LabeledField, type LayoutProps, List, type ListRowMarginType, type ListRowPosition, ListView, type ListViewItemInfo, type ListViewRootProps, type ListViewRowProps, Logo, type MatchRange, MediaThumbnail, type MenuComponents, type MenuConfig, type MenuItem, type MenuItemIcon, type MenuItemProps, type MenuItemRole, type MenuProps, MenuViewport, Message, type MessageProps, type MoveTreeItemOptions, type NonSelectableMenuItem, type OpenPortalControlsContextValue, type OpenPortalsContextValue, OpenPortalsProvider, type OptionModeOnlyProps, type OptionModeProps, type Optional, type PanelLayoutState, PatternPreviewBackground, type PercentageSidebarOptions, PipelineResultLayout, PipelineResultLink, Popover, type PortalScopeContextValue, PortalScopeProvider, Progress, RIGHT_SIDEBAR_ID, type RelativeDropPosition, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, type ScoredMenuItem, ScrollArea, SearchCompletionMenu, Section$1 as Section, SectionHeader$1 as SectionHeader, type SectionHeaderMenuItem, type SectionProps, SegmentedControl, type SegmentedControlItemProps, type SegmentedControlProps, SelectMenu, type SelectableMenuItem, SelectionToolbarContainer, type SeparatorItem, type SetNumberMode, type SideOptions, type SideType, type SidebarRef, type SketchPattern, Slider, Small, Sortable, type SortableItemContextProps, Spacer, type StringModeOnlyProps, type StringModeProps, type SubMenuItem, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text$1 as Text, TextArea, TextAreaRow, type TextProps, type Theme, type ThemeColor, Toast, ToastProvider, type TokenValue, Toolbar, ToolbarMenu, ToolbarMenuButton, ToolbarMenuDropdown, ToolbarMenuItem, type ToolbarProps, Tooltip, TreeView, type UseThemeReturnType, UserAvatar, UserPointer, type UserPointerProps, WorkspaceLayout, type WorkspaceLayoutProps, type WorkspaceLayoutRef, acceptsDrop, colorForStringValues, colorFromString, colorSwatchSizeMap, createSectionedMenu, cssVarNames, cssVars, cx, defaultAcceptsDrop, filterWithGroupedSections, fuzzyFilter, fuzzyScore, fuzzyTokenize, getClosestPortalScope, getFieldSpacing, getGradientBackground, getGridSize, getKeyboardShortcutsForMenuItems, getMenuItemKey, getNewValue, getNextIndex, getPipelineResultLink, getThumbnailColors, isMenuItemSectionHeader, isNonSelectableMenuItem, isSelectableMenuItem, isSelectableMenuItemWithScore, labeledFieldStyles, mediaQuery, mergeConflictingClassNames, moveTreeItem, normalizeListTargetIndex, popoverStyle, portalScopeDataSetName, portalScopePropName, portalScopeProps, renderIcon, rgbaToSketchColor, separator, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, styles, textStyles, updateSelection, useAutoResize, useComboboxState, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDialogContainsElement, useDialogContext, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHasOpenPortals, useHover, useImageData, useIndent, useInputFieldContext, useLabel, useLabelPosition, useLabelWidth, useOpenConfirmationDialog, useOpenDialog, useOpenInputDialog, useOpenPortalsControls, usePlatform, usePlatformModKey, usePortalScopeId, usePreservePanelSize, useTheme, validateDropIndicator, withSeparatorElements };
2431
+ export { AIAssistantInput, AIAssistantLayout, AIAssistantLoadingIndicator, type AcceptsDrop, type AcceptsDropOptions, type AcceptsFromList, ActionMenu, ActivityIndicator, AnimatePresence, type AnimatePresenceProps, Avatar, type AvatarProps, AvatarStack, Banner, type BannerProps, type BaseComboboxProps, BaseToolbar, type BaseToolbarProps, Body, BreadcrumbSlash, BreadcrumbText, Button, type ButtonRootProps, CHECKBOX_INDENT_WIDTH, CHECKBOX_RIGHT_INSET, CHECKBOX_WIDTH, CONTENT_AREA_ID, Checkbox$1 as Checkbox, Chip, type ChipProps, Collection, type CollectionItemSize, type CollectionProps, type CollectionRef, type CollectionRenderActionProps, type CollectionThumbnailProps, type CollectionThumbnailSize, type CollectionViewType, ColorSwatch, ColorSwatchControl, type ColorSwatchSize, Combobox, ComboboxMenu, type ComboboxProps, type ComboboxRef, ComboboxState, type ComboboxStateSnapshot, CommandPalette, ConnectedUsersMenuLayout, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, type DetectSizeType, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, type DragIndicatorStyleProps, type DragItem, type DragState, DraggableMenuButton, Drawer, type DrawerProps, type DropValidator, DropdownMenu, type DropdownRootProps, EDITOR_PANEL_GROUP_ID, type EditableRowProps, EditableText, type EditableTextRef, type ExtractMenuItemType, Fade, type FadeDirection, type FadeProps, FileExplorerCollection, FileExplorerDetail, FileExplorerEmptyState, FileExplorerLayout, FileExplorerUploadButton, FillInputField, FillPreviewBackground, FloatingWindow, FloatingWindowProvider, FullscreenDialog, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, Grid, GridView, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, INPUT_HEIGHT, type IScoredItem, type ISearchCompletionMenu, type IToken, type IVirtualizedList, IconButton, type IconName, type ImageDataContextValue, ImageDataProvider, IndentContext, InputField, type InputFieldInputProps, type InputFieldProps, type InputFieldSize, InspectorContainer, InspectorPrimitives, Italic, KeyboardShortcut, LEFT_SIDEBAR_ID, Label, LabelContext, type LabelPosition, LabelPositionContext, type LabelPositionContextValue, type LabelProps, LabelWidthContext, type LabelWidthContextValue, LabeledElementView, LabeledField, type LayoutProps, List, type ListRowMarginType, type ListRowPosition, ListView, type ListViewItemInfo, type ListViewRootProps, type ListViewRowProps, Logo, type MatchRange, MediaThumbnail, type MenuComponents, type MenuConfig, type MenuItem, type MenuItemIcon, type MenuItemProps, type MenuItemRole, type MenuProps, MenuViewport, Message, type MessageProps, type MoveDragItemHandler, type MoveTreeItemOptions, type NonSelectableMenuItem, type OpenPortalControlsContextValue, type OpenPortalsContextValue, OpenPortalsProvider, type OptionModeOnlyProps, type OptionModeProps, type Optional, type PanelLayoutState, PatternPreviewBackground, type PercentageSidebarOptions, PipelineResultLayout, PipelineResultLink, Popover, type PortalScopeContextValue, PortalScopeProvider, Progress, RIGHT_SIDEBAR_ID, type RelativeDropPosition, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, type ScoredMenuItem, ScrollArea, SearchCompletionMenu, Section$1 as Section, SectionHeader$1 as SectionHeader, type SectionHeaderMenuItem, type SectionProps, SegmentedControl, type SegmentedControlItemProps, type SegmentedControlProps, SelectMenu, type SelectableMenuItem, SelectionToolbarContainer, type SeparatorItem, type SetNumberMode, SharedDragProvider, type SideOptions, type SideType, type SidebarRef, type SketchPattern, Slider, Small, Sortable, SortableItemContext, type SortableItemContextProps, type SortableProps, Spacer, type StringModeOnlyProps, type StringModeProps, type SubMenuItem, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text$1 as Text, TextArea, TextAreaRow, type TextProps, type Theme, type ThemeColor, Toast, ToastProvider, type TokenValue, Toolbar, ToolbarMenu, ToolbarMenuButton, ToolbarMenuDropdown, ToolbarMenuItem, type ToolbarProps, Tooltip, TreeView, type UseThemeReturnType, UserAvatar, UserPointer, type UserPointerProps, type ValidateDropIndicatorParams, WorkspaceLayout, type WorkspaceLayoutProps, type WorkspaceLayoutRef, acceptsDrop, colorForStringValues, colorFromString, colorSwatchSizeMap, createDragItemKey, createSectionedMenu, createSharedDrag, cssVarNames, cssVars, cx, defaultAcceptsDrop, filterWithGroupedSections, fuzzyFilter, fuzzyScore, fuzzyTokenize, getClosestPortalScope, getFieldSpacing, getGradientBackground, getGridSize, getItemFirstCollisionDetection, getKeyboardShortcutsForMenuItems, getMenuItemKey, getNewValue, getNextIndex, getPipelineResultLink, getThumbnailColors, isMenuItemSectionHeader, isNonSelectableMenuItem, isSelectableMenuItem, isSelectableMenuItemWithScore, labeledFieldStyles, mediaQuery, mergeConflictingClassNames, moveTreeItem, normalizeListTargetIndex, parseDragItemKey, popoverStyle, portalScopeDataSetName, portalScopePropName, portalScopeProps, renderIcon, rgbaToSketchColor, separator, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, styles, textStyles, updateSelection, useAutoResize, useComboboxState, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDialogContainsElement, useDialogContext, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHasOpenPortals, useHover, useImageData, useIndent, useInputFieldContext, useLabel, useLabelPosition, useLabelWidth, useOpenConfirmationDialog, useOpenDialog, useOpenInputDialog, useOpenPortalsControls, usePlatform, usePlatformModKey, usePortalScopeId, usePreservePanelSize, useTheme, validateDropIndicator, withDragProvider, withSeparatorElements };
package/dist/index.d.ts CHANGED
@@ -5,9 +5,8 @@ import * as Icons from '@noya-app/noya-icons';
5
5
  export { Icons };
6
6
  import tailwindConfig from '@noya-app/noya-tailwind-config';
7
7
  import * as _noya_app_noya_geometry from '@noya-app/noya-geometry';
8
- import { Size, Rect } from '@noya-app/noya-geometry';
9
- import { UniqueIdentifier } from '@dnd-kit/core';
10
- import { useSortable } from '@dnd-kit/sortable';
8
+ import { Point as Point$1, Size, Rect } from '@noya-app/noya-geometry';
9
+ import { UniqueIdentifier, Active, Over, CollisionDetection } from '@dnd-kit/core';
11
10
  import { Property } from 'csstype';
12
11
  import * as _noya_app_noya_designsystem from '@noya-app/noya-designsystem';
13
12
  import { SectionProps as SectionProps$1, BannerProps as BannerProps$1 } from '@noya-app/noya-designsystem';
@@ -20,6 +19,7 @@ import * as RadixContextMenu from '@radix-ui/react-context-menu';
20
19
  import { MultiplayerUser } from '@noya-app/noya-multiplayer-react';
21
20
  import * as PopoverPrimitive from '@radix-ui/react-popover';
22
21
  import { SelectProps } from '@radix-ui/react-select';
22
+ import { useSortable } from '@dnd-kit/sortable';
23
23
  import { ImperativePanelGroupHandle } from 'react-resizable-panels';
24
24
  import { RgbaColor } from '@noya-app/noya-colorpicker';
25
25
 
@@ -709,7 +709,23 @@ interface ChipProps {
709
709
  declare const Chip: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<ChipProps & React__default.RefAttributes<HTMLSpanElement>>>;
710
710
 
711
711
  type RelativeDropPosition = "above" | "below" | "inside";
712
- type DropValidator = (sourceIndex: number, targetIndex: number, position: RelativeDropPosition) => boolean;
712
+ type DropValidator = (sourceIndex: number, targetIndex: number, position: RelativeDropPosition, sourceListId: string, targetListId: string) => boolean;
713
+ type AcceptsDrop = (sourceIndex: number, targetIndex: number, position: RelativeDropPosition, sourceListId: string, targetListId: string) => boolean;
714
+ type MoveDragItemHandler = (sourceIndex: number, targetIndex: number, position: RelativeDropPosition, sourceListId: string, targetListId: string) => void;
715
+ type AcceptsFromList = ({ sourceListId, targetListId, }: {
716
+ sourceListId: string;
717
+ targetListId: string;
718
+ }) => boolean;
719
+ interface DragItem {
720
+ itemId: UniqueIdentifier;
721
+ listId: string;
722
+ index: number;
723
+ }
724
+ type DragState = {
725
+ source: DragItem | null;
726
+ target: DragItem | null;
727
+ indicator: RelativeDropPosition | null;
728
+ };
713
729
  declare const normalizeListTargetIndex: (index: number, position: "above" | "below") => number;
714
730
  declare const defaultAcceptsDrop: DropValidator;
715
731
  type SortableItemContextProps = {
@@ -722,7 +738,9 @@ type SortableItemContextProps = {
722
738
  };
723
739
  setActivatorEvent: (event: PointerEvent) => void;
724
740
  getDropTargetParentIndex?: (index: number) => number | undefined;
741
+ listId: string;
725
742
  };
743
+ declare const SortableItemContext: React$1.Context<SortableItemContextProps>;
726
744
  type ValidateDropIndicatorParams = {
727
745
  acceptsDrop: DropValidator;
728
746
  keys: UniqueIdentifier[];
@@ -731,40 +749,40 @@ type ValidateDropIndicatorParams = {
731
749
  offsetStart: number;
732
750
  elementStart: number;
733
751
  elementSize: number;
752
+ sourceListId: string;
753
+ targetListId: string;
734
754
  };
735
- declare function validateDropIndicator({ acceptsDrop, keys, activeId, overId, offsetStart, elementStart, elementSize, }: ValidateDropIndicatorParams): RelativeDropPosition | undefined;
736
- type UseSortableReturnType = ReturnType<typeof useSortable>;
737
- type ItemChildrenProps<T> = {
738
- ref: React$1.Ref<T>;
739
- relativeDropPosition?: RelativeDropPosition;
740
- style?: React$1.CSSProperties;
741
- } & UseSortableReturnType["attributes"];
742
- interface ItemProps$1<T> {
743
- id: UniqueIdentifier;
744
- disabled?: boolean;
745
- children: (props: ItemChildrenProps<T>) => JSX.Element;
746
- }
747
- interface RootProps {
755
+ declare function validateDropIndicator({ acceptsDrop, keys, activeId, overId, offsetStart, elementStart, elementSize, sourceListId, targetListId, }: ValidateDropIndicatorParams): RelativeDropPosition | undefined;
756
+ declare function createDragItemKey(listId: string, itemId: UniqueIdentifier): string;
757
+ declare function parseDragItemKey(key: string): {
758
+ listId: string;
759
+ itemId: UniqueIdentifier;
760
+ };
761
+
762
+ type GetDropIndicatorParameters = {
763
+ absolutePosition: Point$1;
764
+ active: Active;
765
+ over: Over;
766
+ sourceListId: string;
767
+ targetListId: string;
768
+ };
769
+ interface RegisteredList {
770
+ id: string;
748
771
  keys: UniqueIdentifier[];
749
- children: React$1.ReactNode;
750
- renderOverlay?: (index: number) => React$1.ReactNode;
751
- onMoveItem?: (sourceIndex: number, targetIndex: number, position: RelativeDropPosition) => void;
752
- acceptsDrop?: SortableItemContextProps["acceptsDrop"];
753
- axis?: SortableItemContextProps["axis"];
754
- getDropTargetParentIndex?: SortableItemContextProps["getDropTargetParentIndex"];
772
+ onMoveItem: MoveDragItemHandler;
773
+ renderOverlay?: (id: UniqueIdentifier) => React__default.ReactNode;
774
+ acceptsFromList: AcceptsFromList;
775
+ acceptsDrop: AcceptsDrop;
776
+ getDropIndicator: (parameters: GetDropIndicatorParameters) => RelativeDropPosition | undefined;
755
777
  }
756
- declare function SortableRoot({ keys, children, onMoveItem, renderOverlay, acceptsDrop, axis, getDropTargetParentIndex, }: RootProps): React$1.JSX.Element;
757
- interface SortableProps<T, TElement extends HTMLElement> extends Omit<RootProps, "children" | "keys" | "renderOverlay"> {
758
- items: T[];
759
- keyExtractor: (item: T) => UniqueIdentifier;
760
- shouldRenderOverlay?: boolean;
761
- renderItem: (item: T, props: ItemChildrenProps<TElement>, { isOverlay }: {
762
- isOverlay: boolean;
763
- }) => JSX.Element;
778
+ interface DragRegistrationContextType {
779
+ registerList: (list: RegisteredList) => void;
780
+ unregisterList: (listId: string) => void;
764
781
  }
765
- declare const Sortable: (<TItem, TElement extends HTMLElement>(props: SortableProps<TItem, TElement>) => React$1.ReactElement | null) & {
766
- readonly Root: React$1.MemoExoticComponent<typeof SortableRoot>;
767
- readonly Item: <T extends HTMLElement>(props: ItemProps$1<T>) => React$1.ReactElement | null;
782
+ type ActiveDragContextType = DragState;
783
+ type SharedDragProps = {
784
+ dragRegistrationContext: React__default.Context<DragRegistrationContextType | null>;
785
+ activeDragContext: React__default.Context<ActiveDragContextType | null>;
768
786
  };
769
787
 
770
788
  type ListRowMarginType = "none" | "top" | "bottom" | "vertical";
@@ -866,7 +884,7 @@ type ListViewRootProps = {
866
884
  onPress?: () => void;
867
885
  scrollable?: boolean;
868
886
  expandable?: boolean;
869
- onMoveItem?: (sourceIndex: number, targetIndex: number, position: RelativeDropPosition) => void;
887
+ onMoveItem?: MoveDragItemHandler;
870
888
  indentation?: number;
871
889
  acceptsDrop?: DropValidator;
872
890
  pressEventName?: PressEventName;
@@ -882,6 +900,8 @@ type ListViewRootProps = {
882
900
  onDrop?: React__default.DragEventHandler<HTMLDivElement>;
883
901
  renderEmptyState?: () => ReactNode;
884
902
  getDropTargetParentIndex?: SortableItemContextProps["getDropTargetParentIndex"];
903
+ sharedDragProps?: SharedDragProps;
904
+ sortableId?: string;
885
905
  };
886
906
  declare namespace ListView {
887
907
  const RowTitle: React__default.MemoExoticComponent<({ className, children, ...props }: {
@@ -981,6 +1001,8 @@ interface CollectionProps<T, M extends string = string> {
981
1001
  /** @default false */
982
1002
  sortable?: boolean;
983
1003
  dragIndicatorStyle?: ListViewRowProps<M>["dragIndicatorStyle"];
1004
+ sharedDragProps?: SharedDragProps;
1005
+ sortableId?: string;
984
1006
  }
985
1007
  declare const Collection: <T, M extends string = string>(props: CollectionProps<T, M> & React__default.RefAttributes<CollectionRef>) => React__default.ReactElement | null;
986
1008
  type CollectionItemSize = "xxs" | "xs" | "small" | "medium" | "large" | "xl";
@@ -1797,6 +1819,58 @@ interface Props$4 {
1797
1819
  }
1798
1820
  declare const Slider: React__default.NamedExoticComponent<Props$4>;
1799
1821
 
1822
+ type SharedDragProviderProps = {
1823
+ children: React$1.ReactNode;
1824
+ sharedDragProps?: SharedDragProps;
1825
+ };
1826
+ declare function SharedDragProvider({ children, sharedDragProps, }: SharedDragProviderProps): React$1.JSX.Element;
1827
+ declare function withDragProvider<T extends object>(Component: React$1.ComponentType<T>): (props: T) => React$1.JSX.Element;
1828
+ declare const getItemFirstCollisionDetection: (registeredListIds: string[]) => CollisionDetection;
1829
+
1830
+ type UseSortableReturnType = ReturnType<typeof useSortable>;
1831
+ type ItemChildrenProps<T> = {
1832
+ ref: React$1.Ref<T>;
1833
+ relativeDropPosition?: RelativeDropPosition;
1834
+ style?: React$1.CSSProperties;
1835
+ } & UseSortableReturnType["attributes"];
1836
+ interface RootProps {
1837
+ id?: string;
1838
+ keys: UniqueIdentifier[];
1839
+ axis?: "x" | "y";
1840
+ children?: React$1.ReactNode;
1841
+ renderOverlay?: (index: number) => React$1.ReactNode;
1842
+ onMoveItem?: MoveDragItemHandler;
1843
+ acceptsFromList?: AcceptsFromList;
1844
+ acceptsDrop?: DropValidator;
1845
+ getDropTargetParentIndex?: (index: number) => number | undefined;
1846
+ sharedDragProps?: SharedDragProps;
1847
+ containerRef?: React$1.RefObject<HTMLElement>;
1848
+ }
1849
+ declare function SortableItem<TElement extends HTMLElement>({ id, disabled, children, }: {
1850
+ id: UniqueIdentifier;
1851
+ disabled?: boolean;
1852
+ children: (props: ItemChildrenProps<TElement>) => React$1.ReactNode;
1853
+ }): React$1.ReactNode;
1854
+ declare function SortableRoot_({ id: idProp, keys: keysProp, onMoveItem, renderOverlay, acceptsFromList, acceptsDrop, axis, children, getDropTargetParentIndex, sharedDragProps, containerRef, }: RootProps): React$1.JSX.Element;
1855
+ interface SortableProps<TItem, TElement extends HTMLElement> extends Omit<RootProps, "children" | "keys" | "renderOverlay"> {
1856
+ items: TItem[];
1857
+ keyExtractor: (item: TItem) => UniqueIdentifier;
1858
+ shouldRenderOverlay?: boolean;
1859
+ renderItem: (item: TItem, props: ItemChildrenProps<TElement>, { isOverlay }: {
1860
+ isOverlay: boolean;
1861
+ }) => React$1.ReactNode;
1862
+ }
1863
+ declare const Sortable: (<TItem, TElement extends HTMLElement>({ items, keyExtractor, shouldRenderOverlay, renderItem, ...rest }: SortableProps<TItem, TElement>) => React$1.JSX.Element) & {
1864
+ Root: typeof SortableRoot_;
1865
+ Item: typeof SortableItem;
1866
+ };
1867
+
1868
+ declare function createSharedDrag(): {
1869
+ Provider: typeof SharedDragProvider;
1870
+ Sortable: <TItem, TElement extends HTMLElement>(props: SortableProps<TItem, TElement>) => React$1.ReactNode;
1871
+ props: SharedDragProps;
1872
+ };
1873
+
1800
1874
  interface Props$3 {
1801
1875
  size?: number | string;
1802
1876
  inline?: boolean;
@@ -2331,14 +2405,17 @@ declare const ToolbarMenuDropdown: <T extends string>(props: {
2331
2405
  declare const ToolbarMenuButton: <T extends string>(props: {
2332
2406
  item: SelectableMenuItem<T>;
2333
2407
  onSelectMenuItem?: (value: T) => void;
2408
+ as?: ComponentProps<typeof Button>["as"];
2334
2409
  }) => React__default.ReactElement | null;
2335
2410
  declare const ToolbarMenuItem: <T extends string>(props: {
2336
2411
  item: MenuItem<T>;
2337
2412
  onSelectMenuItem?: (value: T) => void;
2413
+ buttonAs?: ComponentProps<typeof Button>["as"];
2338
2414
  }) => React__default.ReactElement | null;
2339
2415
  declare const ToolbarMenu: <T extends string>(props: {
2340
2416
  items: MenuItem<T>[];
2341
2417
  onSelectMenuItem?: (value: T) => void;
2418
+ buttonAs?: ComponentProps<typeof Button>["as"];
2342
2419
  }) => React__default.ReactElement | null;
2343
2420
  interface ToolbarProps<T extends string = string> {
2344
2421
  children?: React__default.ReactNode;
@@ -2351,4 +2428,4 @@ interface ToolbarProps<T extends string = string> {
2351
2428
  }
2352
2429
  declare function Toolbar<T extends string = string>({ children, logo, leftMenuItems, rightMenuItems, onSelectMenuItem, shouldBindKeyboardShortcuts, }: ToolbarProps<T>): React__default.JSX.Element;
2353
2430
 
2354
- export { AIAssistantInput, AIAssistantLayout, AIAssistantLoadingIndicator, type AcceptsDropOptions, ActionMenu, ActivityIndicator, AnimatePresence, type AnimatePresenceProps, Avatar, type AvatarProps, AvatarStack, Banner, type BannerProps, type BaseComboboxProps, BaseToolbar, type BaseToolbarProps, Body, BreadcrumbSlash, BreadcrumbText, Button, type ButtonRootProps, CHECKBOX_INDENT_WIDTH, CHECKBOX_RIGHT_INSET, CHECKBOX_WIDTH, CONTENT_AREA_ID, Checkbox$1 as Checkbox, Chip, type ChipProps, Collection, type CollectionItemSize, type CollectionProps, type CollectionRef, type CollectionRenderActionProps, type CollectionThumbnailProps, type CollectionThumbnailSize, type CollectionViewType, ColorSwatch, ColorSwatchControl, type ColorSwatchSize, Combobox, ComboboxMenu, type ComboboxProps, type ComboboxRef, ComboboxState, type ComboboxStateSnapshot, CommandPalette, ConnectedUsersMenuLayout, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, type DetectSizeType, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, type DragIndicatorStyleProps, DraggableMenuButton, Drawer, type DrawerProps, type DropValidator, DropdownMenu, type DropdownRootProps, EDITOR_PANEL_GROUP_ID, type EditableRowProps, EditableText, type EditableTextRef, type ExtractMenuItemType, Fade, type FadeDirection, type FadeProps, FileExplorerCollection, FileExplorerDetail, FileExplorerEmptyState, FileExplorerLayout, FileExplorerUploadButton, FillInputField, FillPreviewBackground, FloatingWindow, FloatingWindowProvider, FullscreenDialog, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, Grid, GridView, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, INPUT_HEIGHT, type IScoredItem, type ISearchCompletionMenu, type IToken, type IVirtualizedList, IconButton, type IconName, type ImageDataContextValue, ImageDataProvider, IndentContext, InputField, type InputFieldInputProps, type InputFieldProps, type InputFieldSize, InspectorContainer, InspectorPrimitives, Italic, KeyboardShortcut, LEFT_SIDEBAR_ID, Label, LabelContext, type LabelPosition, LabelPositionContext, type LabelPositionContextValue, type LabelProps, LabelWidthContext, type LabelWidthContextValue, LabeledElementView, LabeledField, type LayoutProps, List, type ListRowMarginType, type ListRowPosition, ListView, type ListViewItemInfo, type ListViewRootProps, type ListViewRowProps, Logo, type MatchRange, MediaThumbnail, type MenuComponents, type MenuConfig, type MenuItem, type MenuItemIcon, type MenuItemProps, type MenuItemRole, type MenuProps, MenuViewport, Message, type MessageProps, type MoveTreeItemOptions, type NonSelectableMenuItem, type OpenPortalControlsContextValue, type OpenPortalsContextValue, OpenPortalsProvider, type OptionModeOnlyProps, type OptionModeProps, type Optional, type PanelLayoutState, PatternPreviewBackground, type PercentageSidebarOptions, PipelineResultLayout, PipelineResultLink, Popover, type PortalScopeContextValue, PortalScopeProvider, Progress, RIGHT_SIDEBAR_ID, type RelativeDropPosition, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, type ScoredMenuItem, ScrollArea, SearchCompletionMenu, Section$1 as Section, SectionHeader$1 as SectionHeader, type SectionHeaderMenuItem, type SectionProps, SegmentedControl, type SegmentedControlItemProps, type SegmentedControlProps, SelectMenu, type SelectableMenuItem, SelectionToolbarContainer, type SeparatorItem, type SetNumberMode, type SideOptions, type SideType, type SidebarRef, type SketchPattern, Slider, Small, Sortable, type SortableItemContextProps, Spacer, type StringModeOnlyProps, type StringModeProps, type SubMenuItem, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text$1 as Text, TextArea, TextAreaRow, type TextProps, type Theme, type ThemeColor, Toast, ToastProvider, type TokenValue, Toolbar, ToolbarMenu, ToolbarMenuButton, ToolbarMenuDropdown, ToolbarMenuItem, type ToolbarProps, Tooltip, TreeView, type UseThemeReturnType, UserAvatar, UserPointer, type UserPointerProps, WorkspaceLayout, type WorkspaceLayoutProps, type WorkspaceLayoutRef, acceptsDrop, colorForStringValues, colorFromString, colorSwatchSizeMap, createSectionedMenu, cssVarNames, cssVars, cx, defaultAcceptsDrop, filterWithGroupedSections, fuzzyFilter, fuzzyScore, fuzzyTokenize, getClosestPortalScope, getFieldSpacing, getGradientBackground, getGridSize, getKeyboardShortcutsForMenuItems, getMenuItemKey, getNewValue, getNextIndex, getPipelineResultLink, getThumbnailColors, isMenuItemSectionHeader, isNonSelectableMenuItem, isSelectableMenuItem, isSelectableMenuItemWithScore, labeledFieldStyles, mediaQuery, mergeConflictingClassNames, moveTreeItem, normalizeListTargetIndex, popoverStyle, portalScopeDataSetName, portalScopePropName, portalScopeProps, renderIcon, rgbaToSketchColor, separator, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, styles, textStyles, updateSelection, useAutoResize, useComboboxState, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDialogContainsElement, useDialogContext, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHasOpenPortals, useHover, useImageData, useIndent, useInputFieldContext, useLabel, useLabelPosition, useLabelWidth, useOpenConfirmationDialog, useOpenDialog, useOpenInputDialog, useOpenPortalsControls, usePlatform, usePlatformModKey, usePortalScopeId, usePreservePanelSize, useTheme, validateDropIndicator, withSeparatorElements };
2431
+ export { AIAssistantInput, AIAssistantLayout, AIAssistantLoadingIndicator, type AcceptsDrop, type AcceptsDropOptions, type AcceptsFromList, ActionMenu, ActivityIndicator, AnimatePresence, type AnimatePresenceProps, Avatar, type AvatarProps, AvatarStack, Banner, type BannerProps, type BaseComboboxProps, BaseToolbar, type BaseToolbarProps, Body, BreadcrumbSlash, BreadcrumbText, Button, type ButtonRootProps, CHECKBOX_INDENT_WIDTH, CHECKBOX_RIGHT_INSET, CHECKBOX_WIDTH, CONTENT_AREA_ID, Checkbox$1 as Checkbox, Chip, type ChipProps, Collection, type CollectionItemSize, type CollectionProps, type CollectionRef, type CollectionRenderActionProps, type CollectionThumbnailProps, type CollectionThumbnailSize, type CollectionViewType, ColorSwatch, ColorSwatchControl, type ColorSwatchSize, Combobox, ComboboxMenu, type ComboboxProps, type ComboboxRef, ComboboxState, type ComboboxStateSnapshot, CommandPalette, ConnectedUsersMenuLayout, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, type DetectSizeType, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, type DragIndicatorStyleProps, type DragItem, type DragState, DraggableMenuButton, Drawer, type DrawerProps, type DropValidator, DropdownMenu, type DropdownRootProps, EDITOR_PANEL_GROUP_ID, type EditableRowProps, EditableText, type EditableTextRef, type ExtractMenuItemType, Fade, type FadeDirection, type FadeProps, FileExplorerCollection, FileExplorerDetail, FileExplorerEmptyState, FileExplorerLayout, FileExplorerUploadButton, FillInputField, FillPreviewBackground, FloatingWindow, FloatingWindowProvider, FullscreenDialog, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, Grid, GridView, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, INPUT_HEIGHT, type IScoredItem, type ISearchCompletionMenu, type IToken, type IVirtualizedList, IconButton, type IconName, type ImageDataContextValue, ImageDataProvider, IndentContext, InputField, type InputFieldInputProps, type InputFieldProps, type InputFieldSize, InspectorContainer, InspectorPrimitives, Italic, KeyboardShortcut, LEFT_SIDEBAR_ID, Label, LabelContext, type LabelPosition, LabelPositionContext, type LabelPositionContextValue, type LabelProps, LabelWidthContext, type LabelWidthContextValue, LabeledElementView, LabeledField, type LayoutProps, List, type ListRowMarginType, type ListRowPosition, ListView, type ListViewItemInfo, type ListViewRootProps, type ListViewRowProps, Logo, type MatchRange, MediaThumbnail, type MenuComponents, type MenuConfig, type MenuItem, type MenuItemIcon, type MenuItemProps, type MenuItemRole, type MenuProps, MenuViewport, Message, type MessageProps, type MoveDragItemHandler, type MoveTreeItemOptions, type NonSelectableMenuItem, type OpenPortalControlsContextValue, type OpenPortalsContextValue, OpenPortalsProvider, type OptionModeOnlyProps, type OptionModeProps, type Optional, type PanelLayoutState, PatternPreviewBackground, type PercentageSidebarOptions, PipelineResultLayout, PipelineResultLink, Popover, type PortalScopeContextValue, PortalScopeProvider, Progress, RIGHT_SIDEBAR_ID, type RelativeDropPosition, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, type ScoredMenuItem, ScrollArea, SearchCompletionMenu, Section$1 as Section, SectionHeader$1 as SectionHeader, type SectionHeaderMenuItem, type SectionProps, SegmentedControl, type SegmentedControlItemProps, type SegmentedControlProps, SelectMenu, type SelectableMenuItem, SelectionToolbarContainer, type SeparatorItem, type SetNumberMode, SharedDragProvider, type SideOptions, type SideType, type SidebarRef, type SketchPattern, Slider, Small, Sortable, SortableItemContext, type SortableItemContextProps, type SortableProps, Spacer, type StringModeOnlyProps, type StringModeProps, type SubMenuItem, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text$1 as Text, TextArea, TextAreaRow, type TextProps, type Theme, type ThemeColor, Toast, ToastProvider, type TokenValue, Toolbar, ToolbarMenu, ToolbarMenuButton, ToolbarMenuDropdown, ToolbarMenuItem, type ToolbarProps, Tooltip, TreeView, type UseThemeReturnType, UserAvatar, UserPointer, type UserPointerProps, type ValidateDropIndicatorParams, WorkspaceLayout, type WorkspaceLayoutProps, type WorkspaceLayoutRef, acceptsDrop, colorForStringValues, colorFromString, colorSwatchSizeMap, createDragItemKey, createSectionedMenu, createSharedDrag, cssVarNames, cssVars, cx, defaultAcceptsDrop, filterWithGroupedSections, fuzzyFilter, fuzzyScore, fuzzyTokenize, getClosestPortalScope, getFieldSpacing, getGradientBackground, getGridSize, getItemFirstCollisionDetection, getKeyboardShortcutsForMenuItems, getMenuItemKey, getNewValue, getNextIndex, getPipelineResultLink, getThumbnailColors, isMenuItemSectionHeader, isNonSelectableMenuItem, isSelectableMenuItem, isSelectableMenuItemWithScore, labeledFieldStyles, mediaQuery, mergeConflictingClassNames, moveTreeItem, normalizeListTargetIndex, parseDragItemKey, popoverStyle, portalScopeDataSetName, portalScopePropName, portalScopeProps, renderIcon, rgbaToSketchColor, separator, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, styles, textStyles, updateSelection, useAutoResize, useComboboxState, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDialogContainsElement, useDialogContext, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHasOpenPortals, useHover, useImageData, useIndent, useInputFieldContext, useLabel, useLabelPosition, useLabelWidth, useOpenConfirmationDialog, useOpenDialog, useOpenInputDialog, useOpenPortalsControls, usePlatform, usePlatformModKey, usePortalScopeId, usePreservePanelSize, useTheme, validateDropIndicator, withDragProvider, withSeparatorElements };