@noya-app/noya-designsystem 0.1.55 → 0.1.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +8 -0
- package/dist/index.d.mts +111 -40
- package/dist/index.d.ts +111 -40
- package/dist/index.js +981 -651
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +936 -611
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/validateDropIndicator.test.ts +35 -9
- package/src/components/ListView.tsx +5 -8
- package/src/components/Toolbar.tsx +15 -2
- package/src/components/sorting/DragRegistration.tsx +110 -0
- package/src/components/sorting/SharedDragProvider.tsx +307 -0
- package/src/components/sorting/Sortable.tsx +404 -0
- package/src/components/sorting/createSharedDrag.tsx +46 -0
- package/src/components/sorting/sorting.ts +180 -0
- package/src/index.tsx +4 -2
- package/src/utils/moveTreeItem.ts +4 -2
- package/src/components/Sortable.tsx +0 -468
package/.turbo/turbo-build.log
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
[34mCLI[39m Target: esnext
|
|
8
8
|
[34mCJS[39m Build start
|
|
9
9
|
[34mESM[39m Build start
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
10
|
+
[32mCJS[39m [1mdist/index.js [22m[32m398.83 KB[39m
|
|
11
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m782.38 KB[39m
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 86ms
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m376.55 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m782.53 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 87ms
|
|
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
|
|
23
|
+
Done in 367ms.
|
|
24
24
|
|
|
25
|
-
DTS ⚡️ Build success in
|
|
26
|
-
DTS dist/index.d.ts
|
|
27
|
-
DTS dist/index.d.mts
|
|
25
|
+
DTS ⚡️ Build success in 6165ms
|
|
26
|
+
DTS dist/index.d.ts 96.58 KB
|
|
27
|
+
DTS dist/index.d.mts 96.58 KB
|
package/CHANGELOG.md
CHANGED
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 { Size, Rect, Point as Point$1 } 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
|
+
id: UniqueIdentifier;
|
|
721
|
+
listId: string;
|
|
722
|
+
index: number;
|
|
723
|
+
}
|
|
724
|
+
interface DropTarget {
|
|
725
|
+
id: UniqueIdentifier;
|
|
726
|
+
listId: string;
|
|
727
|
+
index: number;
|
|
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,41 +749,10 @@ 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 {
|
|
748
|
-
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"];
|
|
755
|
-
}
|
|
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;
|
|
764
|
-
}
|
|
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;
|
|
768
|
-
};
|
|
755
|
+
declare function validateDropIndicator({ acceptsDrop, keys, activeId, overId, offsetStart, elementStart, elementSize, sourceListId, targetListId, }: ValidateDropIndicatorParams): RelativeDropPosition | undefined;
|
|
769
756
|
|
|
770
757
|
type ListRowMarginType = "none" | "top" | "bottom" | "vertical";
|
|
771
758
|
type ListRowPosition = "only" | "first" | "middle" | "last";
|
|
@@ -866,7 +853,7 @@ type ListViewRootProps = {
|
|
|
866
853
|
onPress?: () => void;
|
|
867
854
|
scrollable?: boolean;
|
|
868
855
|
expandable?: boolean;
|
|
869
|
-
onMoveItem?:
|
|
856
|
+
onMoveItem?: MoveDragItemHandler;
|
|
870
857
|
indentation?: number;
|
|
871
858
|
acceptsDrop?: DropValidator;
|
|
872
859
|
pressEventName?: PressEventName;
|
|
@@ -1797,6 +1784,87 @@ interface Props$4 {
|
|
|
1797
1784
|
}
|
|
1798
1785
|
declare const Slider: React__default.NamedExoticComponent<Props$4>;
|
|
1799
1786
|
|
|
1787
|
+
type GetDropIndicatorParameters = {
|
|
1788
|
+
absolutePosition: Point$1;
|
|
1789
|
+
active: Active;
|
|
1790
|
+
over: Over;
|
|
1791
|
+
sourceListId: string;
|
|
1792
|
+
targetListId: string;
|
|
1793
|
+
};
|
|
1794
|
+
interface RegisteredList {
|
|
1795
|
+
id: string;
|
|
1796
|
+
keys: UniqueIdentifier[];
|
|
1797
|
+
onMoveItem: MoveDragItemHandler;
|
|
1798
|
+
renderOverlay?: (id: UniqueIdentifier) => React__default.ReactNode;
|
|
1799
|
+
acceptsFromList: AcceptsFromList;
|
|
1800
|
+
acceptsDrop: AcceptsDrop;
|
|
1801
|
+
getDropIndicator: (parameters: GetDropIndicatorParameters) => RelativeDropPosition | undefined;
|
|
1802
|
+
}
|
|
1803
|
+
interface DragRegistrationContextType {
|
|
1804
|
+
registerList: (list: RegisteredList) => void;
|
|
1805
|
+
unregisterList: (listId: string) => void;
|
|
1806
|
+
}
|
|
1807
|
+
type ActiveDragContextType = {
|
|
1808
|
+
activeItem: DragItem | null;
|
|
1809
|
+
delta: Point$1;
|
|
1810
|
+
};
|
|
1811
|
+
type SharedDragProviderContexts = {
|
|
1812
|
+
dragRegistrationContext: React__default.Context<DragRegistrationContextType | null>;
|
|
1813
|
+
activeDragContext: React__default.Context<ActiveDragContextType | null>;
|
|
1814
|
+
};
|
|
1815
|
+
|
|
1816
|
+
type SharedDragProviderProps = {
|
|
1817
|
+
children: React$1.ReactNode;
|
|
1818
|
+
contexts?: SharedDragProviderContexts;
|
|
1819
|
+
};
|
|
1820
|
+
declare function SharedDragProvider({ children, contexts, }: SharedDragProviderProps): React$1.JSX.Element;
|
|
1821
|
+
declare function withDragProvider<T extends object>(Component: React$1.ComponentType<T>): (props: T) => React$1.JSX.Element;
|
|
1822
|
+
declare const getItemFirstCollisionDetection: (registeredListIds: string[]) => CollisionDetection;
|
|
1823
|
+
|
|
1824
|
+
type UseSortableReturnType = ReturnType<typeof useSortable>;
|
|
1825
|
+
type ItemChildrenProps<T> = {
|
|
1826
|
+
ref: React$1.Ref<T>;
|
|
1827
|
+
relativeDropPosition?: RelativeDropPosition;
|
|
1828
|
+
style?: React$1.CSSProperties;
|
|
1829
|
+
} & UseSortableReturnType["attributes"];
|
|
1830
|
+
interface RootProps {
|
|
1831
|
+
id?: string;
|
|
1832
|
+
keys: UniqueIdentifier[];
|
|
1833
|
+
axis?: "x" | "y";
|
|
1834
|
+
children?: React$1.ReactNode;
|
|
1835
|
+
renderOverlay?: (index: number) => React$1.ReactNode;
|
|
1836
|
+
onMoveItem?: MoveDragItemHandler;
|
|
1837
|
+
acceptsFromList?: AcceptsFromList;
|
|
1838
|
+
acceptsDrop?: DropValidator;
|
|
1839
|
+
getDropTargetParentIndex?: (index: number) => number | undefined;
|
|
1840
|
+
sharedDragProviderContexts?: SharedDragProviderContexts;
|
|
1841
|
+
containerRef?: React$1.RefObject<HTMLElement>;
|
|
1842
|
+
}
|
|
1843
|
+
declare function SortableItem<TElement extends HTMLElement>({ id, disabled, children, }: {
|
|
1844
|
+
id: UniqueIdentifier;
|
|
1845
|
+
disabled?: boolean;
|
|
1846
|
+
children: (props: ItemChildrenProps<TElement>) => React$1.ReactNode;
|
|
1847
|
+
}): React$1.ReactNode;
|
|
1848
|
+
declare function SortableRoot_({ id: idProp, keys, onMoveItem, renderOverlay, acceptsFromList, acceptsDrop, axis, children, getDropTargetParentIndex, sharedDragProviderContexts, containerRef, }: RootProps): React$1.JSX.Element;
|
|
1849
|
+
interface SortableProps<TItem, TElement extends HTMLElement> extends Omit<RootProps, "children" | "keys" | "renderOverlay"> {
|
|
1850
|
+
items: TItem[];
|
|
1851
|
+
keyExtractor: (item: TItem) => UniqueIdentifier;
|
|
1852
|
+
shouldRenderOverlay?: boolean;
|
|
1853
|
+
renderItem: (item: TItem, props: ItemChildrenProps<TElement>, { isOverlay }: {
|
|
1854
|
+
isOverlay: boolean;
|
|
1855
|
+
}) => React$1.ReactNode;
|
|
1856
|
+
}
|
|
1857
|
+
declare const Sortable: (<TItem, TElement extends HTMLElement>({ items, keyExtractor, shouldRenderOverlay, renderItem, ...rest }: SortableProps<TItem, TElement>) => React$1.JSX.Element) & {
|
|
1858
|
+
Root: typeof SortableRoot_;
|
|
1859
|
+
Item: typeof SortableItem;
|
|
1860
|
+
};
|
|
1861
|
+
|
|
1862
|
+
declare function createSharedDrag(): {
|
|
1863
|
+
Provider: typeof SharedDragProvider;
|
|
1864
|
+
props: SharedDragProviderContexts;
|
|
1865
|
+
Sortable: <TItem, TElement extends HTMLElement>(props: SortableProps<TItem, TElement>) => React$1.ReactNode;
|
|
1866
|
+
};
|
|
1867
|
+
|
|
1800
1868
|
interface Props$3 {
|
|
1801
1869
|
size?: number | string;
|
|
1802
1870
|
inline?: boolean;
|
|
@@ -2331,14 +2399,17 @@ declare const ToolbarMenuDropdown: <T extends string>(props: {
|
|
|
2331
2399
|
declare const ToolbarMenuButton: <T extends string>(props: {
|
|
2332
2400
|
item: SelectableMenuItem<T>;
|
|
2333
2401
|
onSelectMenuItem?: (value: T) => void;
|
|
2402
|
+
as?: ComponentProps<typeof Button>["as"];
|
|
2334
2403
|
}) => React__default.ReactElement | null;
|
|
2335
2404
|
declare const ToolbarMenuItem: <T extends string>(props: {
|
|
2336
2405
|
item: MenuItem<T>;
|
|
2337
2406
|
onSelectMenuItem?: (value: T) => void;
|
|
2407
|
+
buttonAs?: ComponentProps<typeof Button>["as"];
|
|
2338
2408
|
}) => React__default.ReactElement | null;
|
|
2339
2409
|
declare const ToolbarMenu: <T extends string>(props: {
|
|
2340
2410
|
items: MenuItem<T>[];
|
|
2341
2411
|
onSelectMenuItem?: (value: T) => void;
|
|
2412
|
+
buttonAs?: ComponentProps<typeof Button>["as"];
|
|
2342
2413
|
}) => React__default.ReactElement | null;
|
|
2343
2414
|
interface ToolbarProps<T extends string = string> {
|
|
2344
2415
|
children?: React__default.ReactNode;
|
|
@@ -2351,4 +2422,4 @@ interface ToolbarProps<T extends string = string> {
|
|
|
2351
2422
|
}
|
|
2352
2423
|
declare function Toolbar<T extends string = string>({ children, logo, leftMenuItems, rightMenuItems, onSelectMenuItem, shouldBindKeyboardShortcuts, }: ToolbarProps<T>): React__default.JSX.Element;
|
|
2353
2424
|
|
|
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 };
|
|
2425
|
+
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, DraggableMenuButton, Drawer, type DrawerProps, type DropTarget, 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, 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, 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 { Size, Rect, Point as Point$1 } 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
|
+
id: UniqueIdentifier;
|
|
721
|
+
listId: string;
|
|
722
|
+
index: number;
|
|
723
|
+
}
|
|
724
|
+
interface DropTarget {
|
|
725
|
+
id: UniqueIdentifier;
|
|
726
|
+
listId: string;
|
|
727
|
+
index: number;
|
|
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,41 +749,10 @@ 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 {
|
|
748
|
-
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"];
|
|
755
|
-
}
|
|
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;
|
|
764
|
-
}
|
|
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;
|
|
768
|
-
};
|
|
755
|
+
declare function validateDropIndicator({ acceptsDrop, keys, activeId, overId, offsetStart, elementStart, elementSize, sourceListId, targetListId, }: ValidateDropIndicatorParams): RelativeDropPosition | undefined;
|
|
769
756
|
|
|
770
757
|
type ListRowMarginType = "none" | "top" | "bottom" | "vertical";
|
|
771
758
|
type ListRowPosition = "only" | "first" | "middle" | "last";
|
|
@@ -866,7 +853,7 @@ type ListViewRootProps = {
|
|
|
866
853
|
onPress?: () => void;
|
|
867
854
|
scrollable?: boolean;
|
|
868
855
|
expandable?: boolean;
|
|
869
|
-
onMoveItem?:
|
|
856
|
+
onMoveItem?: MoveDragItemHandler;
|
|
870
857
|
indentation?: number;
|
|
871
858
|
acceptsDrop?: DropValidator;
|
|
872
859
|
pressEventName?: PressEventName;
|
|
@@ -1797,6 +1784,87 @@ interface Props$4 {
|
|
|
1797
1784
|
}
|
|
1798
1785
|
declare const Slider: React__default.NamedExoticComponent<Props$4>;
|
|
1799
1786
|
|
|
1787
|
+
type GetDropIndicatorParameters = {
|
|
1788
|
+
absolutePosition: Point$1;
|
|
1789
|
+
active: Active;
|
|
1790
|
+
over: Over;
|
|
1791
|
+
sourceListId: string;
|
|
1792
|
+
targetListId: string;
|
|
1793
|
+
};
|
|
1794
|
+
interface RegisteredList {
|
|
1795
|
+
id: string;
|
|
1796
|
+
keys: UniqueIdentifier[];
|
|
1797
|
+
onMoveItem: MoveDragItemHandler;
|
|
1798
|
+
renderOverlay?: (id: UniqueIdentifier) => React__default.ReactNode;
|
|
1799
|
+
acceptsFromList: AcceptsFromList;
|
|
1800
|
+
acceptsDrop: AcceptsDrop;
|
|
1801
|
+
getDropIndicator: (parameters: GetDropIndicatorParameters) => RelativeDropPosition | undefined;
|
|
1802
|
+
}
|
|
1803
|
+
interface DragRegistrationContextType {
|
|
1804
|
+
registerList: (list: RegisteredList) => void;
|
|
1805
|
+
unregisterList: (listId: string) => void;
|
|
1806
|
+
}
|
|
1807
|
+
type ActiveDragContextType = {
|
|
1808
|
+
activeItem: DragItem | null;
|
|
1809
|
+
delta: Point$1;
|
|
1810
|
+
};
|
|
1811
|
+
type SharedDragProviderContexts = {
|
|
1812
|
+
dragRegistrationContext: React__default.Context<DragRegistrationContextType | null>;
|
|
1813
|
+
activeDragContext: React__default.Context<ActiveDragContextType | null>;
|
|
1814
|
+
};
|
|
1815
|
+
|
|
1816
|
+
type SharedDragProviderProps = {
|
|
1817
|
+
children: React$1.ReactNode;
|
|
1818
|
+
contexts?: SharedDragProviderContexts;
|
|
1819
|
+
};
|
|
1820
|
+
declare function SharedDragProvider({ children, contexts, }: SharedDragProviderProps): React$1.JSX.Element;
|
|
1821
|
+
declare function withDragProvider<T extends object>(Component: React$1.ComponentType<T>): (props: T) => React$1.JSX.Element;
|
|
1822
|
+
declare const getItemFirstCollisionDetection: (registeredListIds: string[]) => CollisionDetection;
|
|
1823
|
+
|
|
1824
|
+
type UseSortableReturnType = ReturnType<typeof useSortable>;
|
|
1825
|
+
type ItemChildrenProps<T> = {
|
|
1826
|
+
ref: React$1.Ref<T>;
|
|
1827
|
+
relativeDropPosition?: RelativeDropPosition;
|
|
1828
|
+
style?: React$1.CSSProperties;
|
|
1829
|
+
} & UseSortableReturnType["attributes"];
|
|
1830
|
+
interface RootProps {
|
|
1831
|
+
id?: string;
|
|
1832
|
+
keys: UniqueIdentifier[];
|
|
1833
|
+
axis?: "x" | "y";
|
|
1834
|
+
children?: React$1.ReactNode;
|
|
1835
|
+
renderOverlay?: (index: number) => React$1.ReactNode;
|
|
1836
|
+
onMoveItem?: MoveDragItemHandler;
|
|
1837
|
+
acceptsFromList?: AcceptsFromList;
|
|
1838
|
+
acceptsDrop?: DropValidator;
|
|
1839
|
+
getDropTargetParentIndex?: (index: number) => number | undefined;
|
|
1840
|
+
sharedDragProviderContexts?: SharedDragProviderContexts;
|
|
1841
|
+
containerRef?: React$1.RefObject<HTMLElement>;
|
|
1842
|
+
}
|
|
1843
|
+
declare function SortableItem<TElement extends HTMLElement>({ id, disabled, children, }: {
|
|
1844
|
+
id: UniqueIdentifier;
|
|
1845
|
+
disabled?: boolean;
|
|
1846
|
+
children: (props: ItemChildrenProps<TElement>) => React$1.ReactNode;
|
|
1847
|
+
}): React$1.ReactNode;
|
|
1848
|
+
declare function SortableRoot_({ id: idProp, keys, onMoveItem, renderOverlay, acceptsFromList, acceptsDrop, axis, children, getDropTargetParentIndex, sharedDragProviderContexts, containerRef, }: RootProps): React$1.JSX.Element;
|
|
1849
|
+
interface SortableProps<TItem, TElement extends HTMLElement> extends Omit<RootProps, "children" | "keys" | "renderOverlay"> {
|
|
1850
|
+
items: TItem[];
|
|
1851
|
+
keyExtractor: (item: TItem) => UniqueIdentifier;
|
|
1852
|
+
shouldRenderOverlay?: boolean;
|
|
1853
|
+
renderItem: (item: TItem, props: ItemChildrenProps<TElement>, { isOverlay }: {
|
|
1854
|
+
isOverlay: boolean;
|
|
1855
|
+
}) => React$1.ReactNode;
|
|
1856
|
+
}
|
|
1857
|
+
declare const Sortable: (<TItem, TElement extends HTMLElement>({ items, keyExtractor, shouldRenderOverlay, renderItem, ...rest }: SortableProps<TItem, TElement>) => React$1.JSX.Element) & {
|
|
1858
|
+
Root: typeof SortableRoot_;
|
|
1859
|
+
Item: typeof SortableItem;
|
|
1860
|
+
};
|
|
1861
|
+
|
|
1862
|
+
declare function createSharedDrag(): {
|
|
1863
|
+
Provider: typeof SharedDragProvider;
|
|
1864
|
+
props: SharedDragProviderContexts;
|
|
1865
|
+
Sortable: <TItem, TElement extends HTMLElement>(props: SortableProps<TItem, TElement>) => React$1.ReactNode;
|
|
1866
|
+
};
|
|
1867
|
+
|
|
1800
1868
|
interface Props$3 {
|
|
1801
1869
|
size?: number | string;
|
|
1802
1870
|
inline?: boolean;
|
|
@@ -2331,14 +2399,17 @@ declare const ToolbarMenuDropdown: <T extends string>(props: {
|
|
|
2331
2399
|
declare const ToolbarMenuButton: <T extends string>(props: {
|
|
2332
2400
|
item: SelectableMenuItem<T>;
|
|
2333
2401
|
onSelectMenuItem?: (value: T) => void;
|
|
2402
|
+
as?: ComponentProps<typeof Button>["as"];
|
|
2334
2403
|
}) => React__default.ReactElement | null;
|
|
2335
2404
|
declare const ToolbarMenuItem: <T extends string>(props: {
|
|
2336
2405
|
item: MenuItem<T>;
|
|
2337
2406
|
onSelectMenuItem?: (value: T) => void;
|
|
2407
|
+
buttonAs?: ComponentProps<typeof Button>["as"];
|
|
2338
2408
|
}) => React__default.ReactElement | null;
|
|
2339
2409
|
declare const ToolbarMenu: <T extends string>(props: {
|
|
2340
2410
|
items: MenuItem<T>[];
|
|
2341
2411
|
onSelectMenuItem?: (value: T) => void;
|
|
2412
|
+
buttonAs?: ComponentProps<typeof Button>["as"];
|
|
2342
2413
|
}) => React__default.ReactElement | null;
|
|
2343
2414
|
interface ToolbarProps<T extends string = string> {
|
|
2344
2415
|
children?: React__default.ReactNode;
|
|
@@ -2351,4 +2422,4 @@ interface ToolbarProps<T extends string = string> {
|
|
|
2351
2422
|
}
|
|
2352
2423
|
declare function Toolbar<T extends string = string>({ children, logo, leftMenuItems, rightMenuItems, onSelectMenuItem, shouldBindKeyboardShortcuts, }: ToolbarProps<T>): React__default.JSX.Element;
|
|
2353
2424
|
|
|
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 };
|
|
2425
|
+
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, DraggableMenuButton, Drawer, type DrawerProps, type DropTarget, 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, 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, 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 };
|