@noya-app/noya-designsystem 0.1.63 → 0.1.65
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 +13 -10
- package/CHANGELOG.md +25 -0
- package/dist/index.css +1 -1
- package/dist/index.d.mts +648 -333
- package/dist/index.d.ts +648 -333
- package/dist/index.js +13813 -9157
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13949 -9269
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -22
- package/src/__tests__/validateDropIndicator.test.ts +26 -41
- package/src/__tests__/workspaceLayout.test.ts +281 -0
- package/src/components/ActionMenu.tsx +2 -0
- package/src/components/ActivityIndicator.tsx +13 -6
- package/src/components/ActivityLog.tsx +197 -0
- package/src/components/AnimatePresence.tsx +43 -26
- package/src/components/Avatar.tsx +45 -26
- package/src/components/Banner.tsx +57 -11
- package/src/components/BaseToolbar.tsx +67 -34
- package/src/components/Breadcrumbs.tsx +4 -2
- package/src/components/Button.tsx +28 -23
- package/src/components/Checkbox.tsx +6 -35
- package/src/components/Chip.tsx +47 -33
- package/src/components/Collection.tsx +20 -12
- package/src/components/ColorSwatch.tsx +42 -22
- package/src/components/ColorSwatchControl.tsx +7 -5
- package/src/components/Combobox.tsx +8 -6
- package/src/components/ComboboxMenu.tsx +6 -5
- package/src/components/CommandPalette.tsx +3 -1
- package/src/components/ContextMenu.tsx +3 -1
- package/src/components/Dialog.tsx +9 -13
- package/src/components/DimensionInput.tsx +2 -0
- package/src/components/Divider.tsx +18 -14
- package/src/components/DraggableMenuButton.tsx +11 -5
- package/src/components/Drawer.tsx +14 -6
- package/src/components/DropdownMenu.tsx +4 -2
- package/src/components/EditableText.tsx +4 -2
- package/src/components/Fade.tsx +13 -13
- package/src/components/FileUploadIndicator.tsx +108 -0
- package/src/components/FloatingWindow.tsx +4 -2
- package/src/components/Grid.tsx +58 -42
- package/src/components/GridView.tsx +65 -36
- package/src/components/IVirtualizedList.tsx +5 -0
- package/src/components/IconButton.tsx +2 -0
- package/src/components/Icons.tsx +24 -4
- package/src/components/InputField.tsx +21 -19
- package/src/components/InspectorContainer.tsx +2 -2
- package/src/components/InspectorPrimitives.tsx +15 -9
- package/src/components/Label.tsx +4 -3
- package/src/components/LabeledElementView.tsx +9 -5
- package/src/components/LabeledField.tsx +8 -6
- package/src/components/List.tsx +112 -46
- package/src/components/ListMenu.tsx +91 -0
- package/src/components/ListNavigator.tsx +106 -0
- package/src/components/ListView.tsx +22 -1147
- package/src/components/MediaThumbnail.tsx +84 -14
- package/src/components/Message.tsx +11 -12
- package/src/components/Navigator.tsx +461 -0
- package/src/components/NoyaLogo.tsx +1 -1
- package/src/components/Popover.tsx +12 -6
- package/src/components/Progress.tsx +31 -8
- package/src/components/ResizableContainer.tsx +187 -0
- package/src/components/RingProgress.tsx +128 -0
- package/src/components/ScrollArea.tsx +7 -5
- package/src/components/ScrollableSidebar.tsx +10 -0
- package/src/components/SearchCompletionMenu.tsx +5 -3
- package/src/components/Section.tsx +109 -57
- package/src/components/SegmentedControl.tsx +51 -25
- package/src/components/SelectMenu.tsx +16 -21
- package/src/components/SelectionToolbar.tsx +7 -4
- package/src/components/Slider.tsx +12 -10
- package/src/components/Spacer.tsx +2 -2
- package/src/components/StackNavigator.tsx +378 -0
- package/src/components/Stepper.tsx +88 -0
- package/src/components/Switch.tsx +7 -5
- package/src/components/Tabs.tsx +6 -4
- package/src/components/Text.tsx +29 -18
- package/src/components/TextArea.tsx +5 -3
- package/src/components/Toast.tsx +5 -5
- package/src/components/Toolbar.tsx +57 -10
- package/src/components/ToolbarDrawer.tsx +29 -0
- package/src/components/Tooltip.tsx +2 -2
- package/src/components/TreeView.tsx +13 -4
- package/src/components/UserPointer.tsx +6 -4
- package/src/components/ai-assistant/AIAssistantLayout.tsx +10 -8
- package/src/components/blocks/ImageBlockComponent.tsx +162 -0
- package/src/components/connected-users-menu/ConnectedUsersMenuLayout.tsx +6 -4
- package/src/components/file-explorer/FileExplorerLayout.tsx +22 -8
- package/src/components/internal/Checkmark.tsx +24 -0
- package/src/components/internal/Menu.tsx +24 -19
- package/src/components/internal/MenuViewport.tsx +15 -6
- package/src/components/internal/SelectItem.tsx +7 -26
- package/src/components/internal/TextInput.tsx +7 -1
- package/src/components/listView/ListViewContexts.tsx +68 -0
- package/src/components/listView/ListViewEditableRowTitle.tsx +55 -0
- package/src/components/listView/ListViewRoot.tsx +521 -0
- package/src/components/listView/ListViewRow.tsx +475 -0
- package/src/components/listView/ListViewRowTitle.tsx +21 -0
- package/src/components/listView/types.ts +11 -0
- package/src/components/pipeline/PipelineResultLayout.tsx +6 -6
- package/src/components/sorting/DragRegistration.tsx +10 -5
- package/src/components/sorting/SharedDragProvider.tsx +134 -27
- package/src/components/sorting/Sortable.tsx +90 -27
- package/src/components/sorting/createSharedDrag.tsx +7 -6
- package/src/components/sorting/sorting.ts +6 -9
- package/src/components/workspace/DrawerWorkspaceLayout.tsx +110 -29
- package/src/components/workspace/PanelWorkspaceLayout.tsx +148 -99
- package/src/components/workspace/VerticalTabMenu.tsx +46 -0
- package/src/components/workspace/WorkspaceLayout.tsx +76 -63
- package/src/components/workspace/constants.ts +4 -0
- package/src/components/workspace/panelStorage.ts +216 -0
- package/src/components/workspace/types.ts +11 -4
- package/src/contexts/DesignSystemConfiguration.tsx +12 -5
- package/src/contexts/DialogContext.tsx +19 -5
- package/src/contexts/FloatingWindowContext.tsx +2 -0
- package/src/contexts/GlobalInputBlurContext.tsx +2 -0
- package/src/contexts/ImageDataContext.tsx +2 -0
- package/src/contexts/LinkComponentContext.tsx +17 -0
- package/src/contexts/OpenPortalsContext.tsx +2 -0
- package/src/contexts/PortalScopeContext.tsx +2 -0
- package/src/hooks/mergeEventHandlers.ts +1 -1
- package/src/hooks/useHover.ts +30 -17
- package/src/hooks/useIndent.ts +5 -8
- package/src/hooks/useLabel.ts +2 -0
- package/src/hooks/useObjectURL.ts +5 -3
- package/src/hooks/usePlatform.ts +5 -3
- package/src/hooks/useTheme.ts +3 -1
- package/src/index.css +43 -10
- package/src/index.tsx +15 -7
- package/src/utils/classNames.ts +56 -9
- package/src/utils/combobox.ts +2 -0
- package/src/utils/editableBlockStyles.ts +2 -2
- package/src/utils/formatByteSize.ts +9 -0
- package/src/utils/inputs.ts +8 -6
- package/src/utils/sketchColor.ts +0 -34
- package/src/utils/withSeparatorElements.ts +1 -1
- package/tailwind.config.ts +1 -0
- package/src/components/FillInputField.tsx +0 -37
- package/src/components/FillPreviewBackground.tsx +0 -132
- package/src/components/GradientPicker.tsx +0 -88
- package/src/hooks/usePreservePanelSize.tsx +0 -183
- package/src/mediaQuery.ts +0 -13
- package/src/utils/getGradientBackground.tsx +0 -31
package/dist/index.d.mts
CHANGED
|
@@ -1,29 +1,23 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { ReactNode, CSSProperties,
|
|
2
|
+
import React__default, { ReactNode, CSSProperties, AriaRole, KeyboardEventHandler, MouseEventHandler, PointerEventHandler, FocusEventHandler, InputHTMLAttributes, ForwardedRef, ComponentProps, SyntheticEvent, LabelHTMLAttributes, DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
3
3
|
import { IItemScore } from 'vscode-fuzzy-scorer';
|
|
4
4
|
import * as Icons from '@noya-app/noya-icons';
|
|
5
|
+
import { IconProps } from '@noya-app/noya-icons';
|
|
5
6
|
export { Icons };
|
|
6
7
|
import tailwindConfig from '@noya-app/noya-tailwind-config';
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import { UniqueIdentifier, Active, Over, CollisionDetection } from '@dnd-kit/core';
|
|
8
|
+
import { Point as Point$1, Insets, Size, Rect } from '@noya-app/noya-geometry';
|
|
9
|
+
import { UniqueIdentifier, ClientRect, CollisionDetection } from '@dnd-kit/core';
|
|
10
10
|
import { Property } from 'csstype';
|
|
11
11
|
import * as _noya_app_noya_designsystem from '@noya-app/noya-designsystem';
|
|
12
|
-
import { SectionProps as SectionProps$1, BannerProps as BannerProps$1 } from '@noya-app/noya-designsystem';
|
|
13
|
-
import
|
|
14
|
-
import * as RadixDropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
15
|
-
import { Sketch } from '@noya-app/noya-file-format';
|
|
12
|
+
import { SectionProps as SectionProps$1, BannerProps as BannerProps$1, IconName as IconName$1 } from '@noya-app/noya-designsystem';
|
|
13
|
+
import { Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, ContextMenu as ContextMenu$1, Popover as Popover$1, Tooltip as Tooltip$1 } from 'radix-ui';
|
|
16
14
|
import * as _noya_app_noya_keymap from '@noya-app/noya-keymap';
|
|
17
15
|
import { KeyModifiers, PlatformName } from '@noya-app/noya-keymap';
|
|
18
|
-
import * as RadixContextMenu from '@radix-ui/react-context-menu';
|
|
19
16
|
import { MultiplayerUser } from '@noya-app/noya-multiplayer-react';
|
|
20
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
21
17
|
import * as PopperPrimitive from '@radix-ui/react-popper';
|
|
22
18
|
import { SelectProps } from '@radix-ui/react-select';
|
|
23
19
|
import { useSortable } from '@dnd-kit/sortable';
|
|
24
|
-
import
|
|
25
|
-
import { ImperativePanelGroupHandle } from 'react-resizable-panels';
|
|
26
|
-
import { RgbaColor } from '@noya-app/noya-colorpicker';
|
|
20
|
+
import { Sketch } from '@noya-app/noya-file-format';
|
|
27
21
|
|
|
28
22
|
declare function fuzzyScore({ item, query }: {
|
|
29
23
|
item: string;
|
|
@@ -55,7 +49,11 @@ declare function fuzzyTokenize({ item, itemScore, }: {
|
|
|
55
49
|
|
|
56
50
|
type IconName = keyof typeof Icons;
|
|
57
51
|
|
|
58
|
-
|
|
52
|
+
type IconProp = Exclude<React$1.ReactNode, string> | IconName;
|
|
53
|
+
declare function renderIcon(iconName: IconProp): React$1.ReactNode;
|
|
54
|
+
declare function Icon({ name, ...props }: {
|
|
55
|
+
name: IconName;
|
|
56
|
+
} & Omit<IconProps, "name">): React$1.JSX.Element | null;
|
|
59
57
|
|
|
60
58
|
type MenuItemRole = "undo" | "redo" | "cut" | "copy" | "paste" | "pasteAndMatchStyle" | "delete" | "selectAll" | "reload" | "forceReload" | "toggleDevTools" | "resetZoom" | "zoomIn" | "zoomOut" | "toggleSpellChecker" | "togglefullscreen" | "window" | "minimize" | "close" | "help" | "about" | "services" | "hide" | "hideOthers" | "unhide" | "quit" | "showSubstitutions" | "toggleSmartQuotes" | "toggleSmartDashes" | "toggleTextReplacement" | "startSpeaking" | "stopSpeaking" | "zoom" | "front" | "appMenu" | "fileMenu" | "editMenu" | "viewMenu" | "shareMenu" | "recentDocuments" | "toggleTabBar" | "selectNextTab" | "selectPreviousTab" | "mergeAllWindows" | "clearRecentDocuments" | "moveTabToNewWindow" | "windowMenu";
|
|
61
59
|
type SeparatorItem = {
|
|
@@ -63,7 +61,7 @@ type SeparatorItem = {
|
|
|
63
61
|
};
|
|
64
62
|
declare const separator: SeparatorItem;
|
|
65
63
|
type FalsyReactNode = false | "" | null | undefined;
|
|
66
|
-
type MenuItemIcon = IconName | React__default.ReactElement | FalsyReactNode;
|
|
64
|
+
type MenuItemIcon = IconName | React__default.ReactElement<any> | FalsyReactNode;
|
|
67
65
|
type BaseMenuItem = {
|
|
68
66
|
checked?: boolean;
|
|
69
67
|
disabled?: boolean;
|
|
@@ -72,19 +70,13 @@ type BaseMenuItem = {
|
|
|
72
70
|
alwaysInclude?: boolean;
|
|
73
71
|
title: NonNullable<ReactNode>;
|
|
74
72
|
};
|
|
75
|
-
type SectionHeaderMenuItem = {
|
|
76
|
-
type: "sectionHeader";
|
|
77
|
-
id: string;
|
|
78
|
-
title: ReactNode;
|
|
79
|
-
maxVisibleItems?: number;
|
|
80
|
-
variant?: "normal" | "label";
|
|
81
|
-
};
|
|
82
73
|
type SelectableMenuItem<T extends string> = BaseMenuItem & {
|
|
83
74
|
type?: undefined;
|
|
84
75
|
shortcut?: string;
|
|
85
76
|
value: T;
|
|
86
77
|
testSelected?: boolean;
|
|
87
78
|
tooltip?: ReactNode;
|
|
79
|
+
drawer?: ReactNode;
|
|
88
80
|
};
|
|
89
81
|
type SubMenuItem<T extends string> = BaseMenuItem & {
|
|
90
82
|
type: "submenu";
|
|
@@ -108,6 +100,7 @@ type ExtractMenuItemType<T> = T extends SelectableMenuItem<infer U> ? U : never;
|
|
|
108
100
|
declare const isSelectableMenuItem: <T extends string>(item: MenuItem<T>) => item is SelectableMenuItem<T>;
|
|
109
101
|
declare const isNonSelectableMenuItem: <T extends string>(item: MenuItem<T>) => item is NonSelectableMenuItem<T>;
|
|
110
102
|
declare const isMenuItemSectionHeader: (item: MenuItem<string>) => item is SectionHeaderMenuItem;
|
|
103
|
+
declare const isSubMenuItem: <T extends string>(item: MenuItem<T>) => item is SubMenuItem<T>;
|
|
111
104
|
declare const isSelectableMenuItemWithScore: (item: MenuItem<string>) => item is ScoredSelectableMenuItem<string>;
|
|
112
105
|
declare const isPopoverMenuItem: (item: MenuItem<string>) => item is PopoverMenuItem;
|
|
113
106
|
declare const getMenuItemKey: <T extends string>(item: MenuItem<T>, index: number) => string;
|
|
@@ -133,7 +126,14 @@ declare function getKeyboardShortcutsForMenuItems<T extends string>(menuItems: M
|
|
|
133
126
|
declare const KeyboardShortcut: React__default.NamedExoticComponent<{
|
|
134
127
|
shortcut: string;
|
|
135
128
|
}>;
|
|
136
|
-
|
|
129
|
+
type SectionHeaderMenuItem = {
|
|
130
|
+
type: "sectionHeader";
|
|
131
|
+
id: string;
|
|
132
|
+
title: ReactNode;
|
|
133
|
+
maxVisibleItems?: number;
|
|
134
|
+
variant?: "normal" | "label";
|
|
135
|
+
};
|
|
136
|
+
declare const SectionHeaderMenuItem: React__default.NamedExoticComponent<Omit<SectionHeaderMenuItem, "type" | "maxVisibleItems"> & {
|
|
137
137
|
isFirst?: boolean;
|
|
138
138
|
indented?: boolean;
|
|
139
139
|
}>;
|
|
@@ -149,16 +149,44 @@ type ActionMenuProps<TMenu extends string> = {
|
|
|
149
149
|
variant?: "normal" | "bare";
|
|
150
150
|
color?: string;
|
|
151
151
|
};
|
|
152
|
-
declare const ActionMenu: <TMenu extends string>(props: ActionMenuProps<TMenu>) => React__default.ReactElement | null;
|
|
152
|
+
declare const ActionMenu: <TMenu extends string>(props: ActionMenuProps<TMenu>) => React__default.ReactElement<any> | null;
|
|
153
153
|
|
|
154
|
-
interface Props$
|
|
154
|
+
interface Props$d {
|
|
155
155
|
size?: number;
|
|
156
156
|
opacity?: number;
|
|
157
157
|
color?: string;
|
|
158
158
|
trackColor?: string;
|
|
159
159
|
className?: string;
|
|
160
|
+
style?: React$1.CSSProperties;
|
|
160
161
|
}
|
|
161
|
-
declare const ActivityIndicator: React$1.NamedExoticComponent<Props$
|
|
162
|
+
declare const ActivityIndicator: React$1.NamedExoticComponent<Props$d>;
|
|
163
|
+
|
|
164
|
+
type ActivityIconSemanticColor = "add" | "remove" | "update";
|
|
165
|
+
type ActivityUser = {
|
|
166
|
+
userId?: string;
|
|
167
|
+
name?: string;
|
|
168
|
+
image?: string;
|
|
169
|
+
};
|
|
170
|
+
type ActivityLogItem<M extends string = string> = {
|
|
171
|
+
title: React__default.ReactNode;
|
|
172
|
+
description: React__default.ReactNode;
|
|
173
|
+
time?: React__default.ReactNode;
|
|
174
|
+
icon: IconProp;
|
|
175
|
+
iconSemanticColor?: ActivityIconSemanticColor;
|
|
176
|
+
menuItems?: MenuItem<M>[];
|
|
177
|
+
onSelectMenuItem?: (value: M) => void;
|
|
178
|
+
} & ({
|
|
179
|
+
type: "change";
|
|
180
|
+
users?: ActivityUser[];
|
|
181
|
+
} | {
|
|
182
|
+
type: "event";
|
|
183
|
+
});
|
|
184
|
+
type ActivityLogProps<M extends string> = {
|
|
185
|
+
style?: React__default.CSSProperties;
|
|
186
|
+
className?: string;
|
|
187
|
+
items?: ActivityLogItem<M>[];
|
|
188
|
+
};
|
|
189
|
+
declare function ActivityLog<M extends string = string>({ style, className, items, }: ActivityLogProps<M>): React__default.JSX.Element;
|
|
162
190
|
|
|
163
191
|
declare const AIAssistantLoadingIndicator: () => React__default.JSX.Element;
|
|
164
192
|
type AIAssistantInputProps = {
|
|
@@ -179,6 +207,7 @@ type AIAssistantLayoutProps = {
|
|
|
179
207
|
};
|
|
180
208
|
declare const AIAssistantLayout: React__default.ForwardRefExoticComponent<AIAssistantLayoutProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
181
209
|
|
|
210
|
+
type AnimatePresenceChildState = "entering" | "entered" | "exiting" | "exited";
|
|
182
211
|
type AnimatePresenceProps = {
|
|
183
212
|
children: React__default.ReactNode;
|
|
184
213
|
/**
|
|
@@ -203,8 +232,9 @@ type AnimatePresenceProps = {
|
|
|
203
232
|
*/
|
|
204
233
|
mode?: "wait" | "crossfade";
|
|
205
234
|
className?: string;
|
|
235
|
+
onChildStateChange?: (key: string, state: AnimatePresenceChildState) => void;
|
|
206
236
|
};
|
|
207
|
-
declare const AnimatePresence: ({ children, duration, animationStyles, skipInitialAnimation, mode, className, }: AnimatePresenceProps) => React__default.JSX.Element;
|
|
237
|
+
declare const AnimatePresence: ({ children, duration, animationStyles, skipInitialAnimation, mode, className, onChildStateChange, }: AnimatePresenceProps) => React__default.JSX.Element;
|
|
208
238
|
|
|
209
239
|
type AvatarProps = {
|
|
210
240
|
image?: string;
|
|
@@ -218,27 +248,45 @@ type AvatarProps = {
|
|
|
218
248
|
/** colors are generated from the fallback string or title, but you can override it here */
|
|
219
249
|
backgroundColor?: string;
|
|
220
250
|
/** @default normal */
|
|
221
|
-
variant?: "normal" | "bare";
|
|
251
|
+
variant?: "normal" | "bare" | "borderless";
|
|
222
252
|
disabled?: boolean;
|
|
223
253
|
/** Intended to be used in place of a fallback monogram, like an icon */
|
|
224
254
|
children?: React__default.ReactNode;
|
|
225
255
|
onClick?: () => void;
|
|
226
256
|
};
|
|
227
|
-
declare const Avatar: React__default.
|
|
257
|
+
declare const Avatar: React__default.NamedExoticComponent<AvatarProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
228
258
|
declare const AvatarStack: React__default.NamedExoticComponent<{
|
|
229
259
|
size?: number;
|
|
230
260
|
/** @default 3 */
|
|
231
261
|
max?: number;
|
|
232
262
|
children: React__default.ReactNode;
|
|
233
263
|
className?: string;
|
|
264
|
+
overlapAmount?: number;
|
|
234
265
|
}>;
|
|
235
266
|
|
|
267
|
+
type BannerVariant = "muted" | "info" | "error";
|
|
236
268
|
type BannerProps = {
|
|
237
|
-
|
|
269
|
+
children?: ReactNode;
|
|
238
270
|
className?: string;
|
|
239
271
|
style?: CSSProperties;
|
|
272
|
+
variant?: BannerVariant;
|
|
273
|
+
labelStyle?: CSSProperties;
|
|
274
|
+
labelClassName?: string;
|
|
275
|
+
};
|
|
276
|
+
declare function Banner({ children: label, className, style, variant, labelStyle, labelClassName: labelClassNameProp, }: BannerProps): React__default.JSX.Element;
|
|
277
|
+
|
|
278
|
+
type ImageState = "loading" | "error" | "loaded";
|
|
279
|
+
declare function decodeImageSrc(src?: string): string | undefined;
|
|
280
|
+
declare const ImageBlockComponent: React__default.ForwardRefExoticComponent<Omit<React__default.ClassAttributes<HTMLImageElement> & React__default.ImgHTMLAttributes<HTMLImageElement> & {
|
|
281
|
+
imageState?: ImageState;
|
|
282
|
+
}, "ref"> & React__default.RefAttributes<HTMLImageElement>> & {
|
|
283
|
+
Loading: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLSpanElement> & React__default.RefAttributes<HTMLSpanElement>>;
|
|
284
|
+
Placeholder: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLSpanElement> & React__default.RefAttributes<HTMLSpanElement>>;
|
|
285
|
+
Error: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLSpanElement> & {
|
|
286
|
+
src?: string;
|
|
287
|
+
} & React__default.RefAttributes<HTMLSpanElement>>;
|
|
288
|
+
Display: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & React__default.RefAttributes<HTMLImageElement>>;
|
|
240
289
|
};
|
|
241
|
-
declare function Banner({ label, className, style }: BannerProps): React__default.JSX.Element;
|
|
242
290
|
|
|
243
291
|
type Theme = (typeof tailwindConfig.theme)["extend"];
|
|
244
292
|
type ThemeColor = keyof Theme["colors"];
|
|
@@ -258,6 +306,19 @@ declare const cssVars: {
|
|
|
258
306
|
primary: string;
|
|
259
307
|
primaryLight: string;
|
|
260
308
|
primaryPastel: string;
|
|
309
|
+
primary25: string;
|
|
310
|
+
primary50: string;
|
|
311
|
+
primary100: string;
|
|
312
|
+
primary150: string;
|
|
313
|
+
primary200: string;
|
|
314
|
+
primary250: string;
|
|
315
|
+
primary300: string;
|
|
316
|
+
primary400: string;
|
|
317
|
+
primary500: string;
|
|
318
|
+
primary600: string;
|
|
319
|
+
primary700: string;
|
|
320
|
+
primary800: string;
|
|
321
|
+
primary900: string;
|
|
261
322
|
secondary: string;
|
|
262
323
|
secondaryLight: string;
|
|
263
324
|
secondaryPastel: string;
|
|
@@ -278,6 +339,9 @@ declare const cssVars: {
|
|
|
278
339
|
buttonBackgroundActiveHover: string;
|
|
279
340
|
buttonText: string;
|
|
280
341
|
buttonTextActive: string;
|
|
342
|
+
toolbarDrawerBackground: string;
|
|
343
|
+
toolbarDrawerBorder: string;
|
|
344
|
+
toolbarDrawerShadow: string;
|
|
281
345
|
canvasBackground: string;
|
|
282
346
|
canvasGrid: string;
|
|
283
347
|
sidebarBackground: string;
|
|
@@ -299,6 +363,12 @@ declare const cssVars: {
|
|
|
299
363
|
activeBackground: string;
|
|
300
364
|
thumbnailBackground: string;
|
|
301
365
|
thumbnailShadow: string;
|
|
366
|
+
bannerInfoBackground: string;
|
|
367
|
+
bannerInfoBorder: string;
|
|
368
|
+
bannerInfoText: string;
|
|
369
|
+
bannerErrorBackground: string;
|
|
370
|
+
bannerErrorBorder: string;
|
|
371
|
+
bannerErrorText: string;
|
|
302
372
|
inlineCodeText: string;
|
|
303
373
|
inlineCodeBackground: string;
|
|
304
374
|
textLink: string;
|
|
@@ -376,6 +446,9 @@ declare const cssVars: {
|
|
|
376
446
|
small: [string, {
|
|
377
447
|
lineHeight: string;
|
|
378
448
|
}];
|
|
449
|
+
xs: [string, {
|
|
450
|
+
lineHeight: string;
|
|
451
|
+
}];
|
|
379
452
|
code: [string, {
|
|
380
453
|
lineHeight: string;
|
|
381
454
|
}];
|
|
@@ -461,6 +534,19 @@ declare const cssVarNames: {
|
|
|
461
534
|
primary: string;
|
|
462
535
|
primaryLight: string;
|
|
463
536
|
primaryPastel: string;
|
|
537
|
+
primary25: string;
|
|
538
|
+
primary50: string;
|
|
539
|
+
primary100: string;
|
|
540
|
+
primary150: string;
|
|
541
|
+
primary200: string;
|
|
542
|
+
primary250: string;
|
|
543
|
+
primary300: string;
|
|
544
|
+
primary400: string;
|
|
545
|
+
primary500: string;
|
|
546
|
+
primary600: string;
|
|
547
|
+
primary700: string;
|
|
548
|
+
primary800: string;
|
|
549
|
+
primary900: string;
|
|
464
550
|
secondary: string;
|
|
465
551
|
secondaryLight: string;
|
|
466
552
|
secondaryPastel: string;
|
|
@@ -481,6 +567,9 @@ declare const cssVarNames: {
|
|
|
481
567
|
buttonBackgroundActiveHover: string;
|
|
482
568
|
buttonText: string;
|
|
483
569
|
buttonTextActive: string;
|
|
570
|
+
toolbarDrawerBackground: string;
|
|
571
|
+
toolbarDrawerBorder: string;
|
|
572
|
+
toolbarDrawerShadow: string;
|
|
484
573
|
canvasBackground: string;
|
|
485
574
|
canvasGrid: string;
|
|
486
575
|
sidebarBackground: string;
|
|
@@ -502,6 +591,12 @@ declare const cssVarNames: {
|
|
|
502
591
|
activeBackground: string;
|
|
503
592
|
thumbnailBackground: string;
|
|
504
593
|
thumbnailShadow: string;
|
|
594
|
+
bannerInfoBackground: string;
|
|
595
|
+
bannerInfoBorder: string;
|
|
596
|
+
bannerInfoText: string;
|
|
597
|
+
bannerErrorBackground: string;
|
|
598
|
+
bannerErrorBorder: string;
|
|
599
|
+
bannerErrorText: string;
|
|
505
600
|
inlineCodeText: string;
|
|
506
601
|
inlineCodeBackground: string;
|
|
507
602
|
textLink: string;
|
|
@@ -579,6 +674,9 @@ declare const cssVarNames: {
|
|
|
579
674
|
small: [string, {
|
|
580
675
|
lineHeight: string;
|
|
581
676
|
}];
|
|
677
|
+
xs: [string, {
|
|
678
|
+
lineHeight: string;
|
|
679
|
+
}];
|
|
582
680
|
code: [string, {
|
|
583
681
|
lineHeight: string;
|
|
584
682
|
}];
|
|
@@ -652,10 +750,10 @@ declare const INPUT_HEIGHT = 27;
|
|
|
652
750
|
|
|
653
751
|
type KebabToCamelCase<S extends string> = S extends `${infer First}-${infer Rest}` ? `${First}${Capitalize<KebabToCamelCase<Rest>>}` : S;
|
|
654
752
|
|
|
655
|
-
type Variant = "title" | "subtitle" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "body" | "small" | "button" | "code" | "label";
|
|
753
|
+
type Variant = "title" | "subtitle" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "body" | "small" | "xs" | "button" | "code" | "label";
|
|
656
754
|
declare const textStyles: Record<Variant, string>;
|
|
657
755
|
type TextProps = {
|
|
658
|
-
as?:
|
|
756
|
+
as?: React__default.HTMLElementType;
|
|
659
757
|
href?: string;
|
|
660
758
|
className?: string;
|
|
661
759
|
style?: React__default.CSSProperties;
|
|
@@ -677,6 +775,7 @@ declare const Heading4: React__default.ForwardRefExoticComponent<PresetProps & R
|
|
|
677
775
|
declare const Heading5: React__default.ForwardRefExoticComponent<PresetProps & React__default.RefAttributes<HTMLElement>>;
|
|
678
776
|
declare const Body: React__default.ForwardRefExoticComponent<PresetProps & React__default.RefAttributes<HTMLElement>>;
|
|
679
777
|
declare const Small: React__default.ForwardRefExoticComponent<PresetProps & React__default.RefAttributes<HTMLElement>>;
|
|
778
|
+
declare const ExtraSmall: React__default.ForwardRefExoticComponent<PresetProps & React__default.RefAttributes<HTMLElement>>;
|
|
680
779
|
declare const Italic: ({ children }: {
|
|
681
780
|
children: ReactNode;
|
|
682
781
|
}) => React__default.JSX.Element;
|
|
@@ -685,7 +784,7 @@ type BreadcrumbTextProps = Omit<TextProps, "variant" | "whiteSpace" | "lineHeigh
|
|
|
685
784
|
declare const BreadcrumbText: React__default.ForwardRefExoticComponent<BreadcrumbTextProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
686
785
|
declare const BreadcrumbSlash: () => React__default.JSX.Element;
|
|
687
786
|
|
|
688
|
-
type ButtonVariant = "normal" | "thin" | "floating" | "none";
|
|
787
|
+
type ButtonVariant = "normal" | "thin" | "floating" | "none" | "ghost";
|
|
689
788
|
type ButtonSize = "small" | "normal" | "large" | "floating";
|
|
690
789
|
type ButtonColorScheme = "primary" | "secondary";
|
|
691
790
|
interface ButtonProps extends React__default.DetailedHTMLProps<React__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
@@ -717,10 +816,10 @@ declare const Button: React__default.ForwardRefExoticComponent<Omit<ButtonProps,
|
|
|
717
816
|
interface CheckboxProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> {
|
|
718
817
|
colorScheme?: "primary" | "secondary";
|
|
719
818
|
}
|
|
720
|
-
declare const Checkbox$1: React$1.
|
|
819
|
+
declare const Checkbox$1: React$1.NamedExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
721
820
|
|
|
722
|
-
type ChipColorScheme = "primary" | "secondary" | "error";
|
|
723
|
-
type ChipSize = "small" | "medium" | "large";
|
|
821
|
+
type ChipColorScheme = "primary" | "secondary" | "info" | "error";
|
|
822
|
+
type ChipSize = "small" | "medium" | "large" | "xl";
|
|
724
823
|
type ChipVariant = "solid" | "outlined" | "ghost";
|
|
725
824
|
interface ChipProps {
|
|
726
825
|
id?: string;
|
|
@@ -742,7 +841,24 @@ interface ChipProps {
|
|
|
742
841
|
role?: string;
|
|
743
842
|
disabled?: boolean;
|
|
744
843
|
}
|
|
745
|
-
declare const Chip: React__default.
|
|
844
|
+
declare const Chip: React__default.NamedExoticComponent<ChipProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
845
|
+
|
|
846
|
+
type ListRowMarginType = "none" | "top" | "bottom" | "vertical";
|
|
847
|
+
type ListRowPosition = "only" | "first" | "middle" | "last";
|
|
848
|
+
type ListColorScheme = "primary" | "secondary";
|
|
849
|
+
type PressEventName = "onClick" | "onPointerDown";
|
|
850
|
+
type ListViewVariant = "normal" | "bare";
|
|
851
|
+
type ListViewSectionHeaderVariant = "normal" | "label";
|
|
852
|
+
|
|
853
|
+
type ListRowContextValue = {
|
|
854
|
+
marginType: ListRowMarginType;
|
|
855
|
+
selectedPosition: ListRowPosition;
|
|
856
|
+
isSectionHeader: boolean;
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
interface IVirtualizedList {
|
|
860
|
+
scrollToIndex(index: number): void;
|
|
861
|
+
}
|
|
746
862
|
|
|
747
863
|
type RelativeDropPosition = "above" | "below" | "inside";
|
|
748
864
|
type MoveDragItemParameters = {
|
|
@@ -786,16 +902,15 @@ type SortableItemContextProps = {
|
|
|
786
902
|
declare const SortableItemContext: React$1.Context<SortableItemContextProps>;
|
|
787
903
|
type ValidateDropIndicatorParams = {
|
|
788
904
|
acceptsDrop: DropValidator;
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
overId: UniqueIdentifier;
|
|
905
|
+
activeIndex: number;
|
|
906
|
+
overIndex: number;
|
|
792
907
|
offsetStart: number;
|
|
793
908
|
elementStart: number;
|
|
794
909
|
elementSize: number;
|
|
795
910
|
sourceListId: string;
|
|
796
911
|
targetListId: string;
|
|
797
912
|
};
|
|
798
|
-
declare function validateDropIndicator({ acceptsDrop,
|
|
913
|
+
declare function validateDropIndicator({ acceptsDrop, activeIndex, overIndex, offsetStart, elementStart, elementSize, sourceListId, targetListId, }: ValidateDropIndicatorParams): RelativeDropPosition | undefined;
|
|
799
914
|
declare const dragItemKeySeparator = "-~-";
|
|
800
915
|
declare function createDragItemKey(listId: string, itemId: UniqueIdentifier): string;
|
|
801
916
|
declare function parseDragItemKey(key: string): {
|
|
@@ -805,8 +920,9 @@ declare function parseDragItemKey(key: string): {
|
|
|
805
920
|
|
|
806
921
|
type GetDropIndicatorParameters = {
|
|
807
922
|
absolutePosition: Point$1;
|
|
808
|
-
|
|
809
|
-
|
|
923
|
+
activeIndex: number;
|
|
924
|
+
overIndex: number;
|
|
925
|
+
overRect: ClientRect;
|
|
810
926
|
sourceListId: string;
|
|
811
927
|
targetListId: string;
|
|
812
928
|
};
|
|
@@ -817,7 +933,8 @@ interface RegisteredList {
|
|
|
817
933
|
renderOverlay?: (id: UniqueIdentifier) => React__default.ReactNode;
|
|
818
934
|
acceptsFromList: AcceptsFromList;
|
|
819
935
|
acceptsDrop: AcceptsDrop;
|
|
820
|
-
getDropIndicator: (parameters: GetDropIndicatorParameters) => RelativeDropPosition | undefined;
|
|
936
|
+
getDropIndicator: (parameters: GetDropIndicatorParameters, acceptsDrop: AcceptsDrop) => RelativeDropPosition | undefined;
|
|
937
|
+
itemHitSlop?: Insets;
|
|
821
938
|
}
|
|
822
939
|
interface DragRegistrationContextType {
|
|
823
940
|
registerList: (list: RegisteredList) => void;
|
|
@@ -829,24 +946,53 @@ type SharedDragProps = {
|
|
|
829
946
|
activeDragContext: React__default.Context<ActiveDragContextType | null>;
|
|
830
947
|
};
|
|
831
948
|
|
|
832
|
-
type
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
type
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
949
|
+
type ListViewItemInfo = {
|
|
950
|
+
isDragOverlay: boolean;
|
|
951
|
+
activeDragIndex?: number;
|
|
952
|
+
};
|
|
953
|
+
type ListViewRootProps<T> = {
|
|
954
|
+
data: T[];
|
|
955
|
+
renderItem: (item: T, index: number, info: ListViewItemInfo) => ReactNode;
|
|
956
|
+
keyExtractor: (item: T, index: number) => string;
|
|
957
|
+
/**
|
|
958
|
+
* Each item must have an `id` in order to be sortable.
|
|
959
|
+
*
|
|
960
|
+
* Additionally, the key extracted with `keyExtractor` must match the ListItem.Row `id`.
|
|
961
|
+
*/
|
|
962
|
+
sortable?: boolean;
|
|
963
|
+
virtualized?: Size;
|
|
964
|
+
id?: string;
|
|
965
|
+
className?: string;
|
|
966
|
+
style?: CSSProperties;
|
|
967
|
+
role?: string;
|
|
968
|
+
"aria-labelledby"?: string;
|
|
969
|
+
"aria-orientation"?: "vertical" | "horizontal";
|
|
970
|
+
"aria-multiselectable"?: boolean;
|
|
971
|
+
onPress?: () => void;
|
|
972
|
+
scrollable?: boolean;
|
|
973
|
+
expandable?: boolean;
|
|
974
|
+
onMoveItem?: MoveDragItemHandler;
|
|
975
|
+
indentation?: number;
|
|
976
|
+
acceptsDrop?: DropValidator;
|
|
977
|
+
pressEventName?: PressEventName;
|
|
978
|
+
variant?: ListViewVariant;
|
|
979
|
+
sectionHeaderVariant?: ListViewSectionHeaderVariant;
|
|
980
|
+
divider?: boolean;
|
|
981
|
+
gap?: number;
|
|
982
|
+
colorScheme?: ListColorScheme;
|
|
983
|
+
containerRef?: React__default.RefObject<HTMLDivElement | null>;
|
|
984
|
+
onDragOver?: React__default.DragEventHandler<HTMLDivElement>;
|
|
985
|
+
onDragEnter?: React__default.DragEventHandler<HTMLDivElement>;
|
|
986
|
+
onDragLeave?: React__default.DragEventHandler<HTMLDivElement>;
|
|
987
|
+
onDrop?: React__default.DragEventHandler<HTMLDivElement>;
|
|
988
|
+
renderEmptyState?: () => ReactNode;
|
|
989
|
+
getDropTargetParentIndex?: SortableItemContextProps["getDropTargetParentIndex"];
|
|
990
|
+
sharedDragProps?: SharedDragProps;
|
|
991
|
+
sortableId?: string;
|
|
992
|
+
itemHeight?: number;
|
|
848
993
|
};
|
|
849
|
-
|
|
994
|
+
|
|
995
|
+
interface EditableRowTitleProps {
|
|
850
996
|
value: string;
|
|
851
997
|
onSubmitEditing: (value: string) => void;
|
|
852
998
|
autoFocus: boolean;
|
|
@@ -854,12 +1000,13 @@ interface EditableRowProps {
|
|
|
854
1000
|
className?: string;
|
|
855
1001
|
onKeyDown?: (e: React__default.KeyboardEvent) => void;
|
|
856
1002
|
}
|
|
857
|
-
|
|
1003
|
+
|
|
858
1004
|
interface ListViewClickInfo {
|
|
859
1005
|
shiftKey: boolean;
|
|
860
1006
|
altKey: boolean;
|
|
861
1007
|
metaKey: boolean;
|
|
862
1008
|
ctrlKey: boolean;
|
|
1009
|
+
stopPropagation: () => void;
|
|
863
1010
|
}
|
|
864
1011
|
interface ListViewRowProps<MenuItemType extends string = string> {
|
|
865
1012
|
id?: string;
|
|
@@ -871,7 +1018,6 @@ interface ListViewRowProps<MenuItemType extends string = string> {
|
|
|
871
1018
|
disabled?: boolean;
|
|
872
1019
|
hovered?: boolean;
|
|
873
1020
|
sortable?: boolean;
|
|
874
|
-
gap?: number;
|
|
875
1021
|
backgroundColor?: CSSProperties["backgroundColor"];
|
|
876
1022
|
onPress?: (info: ListViewClickInfo) => void;
|
|
877
1023
|
onDoubleClick?: () => void;
|
|
@@ -887,85 +1033,33 @@ interface ListViewRowProps<MenuItemType extends string = string> {
|
|
|
887
1033
|
className?: string;
|
|
888
1034
|
dragIndicatorStyle?: CSSProperties | ((props: DragIndicatorStyleProps) => CSSProperties);
|
|
889
1035
|
testRelativeDropPosition?: RelativeDropPosition;
|
|
1036
|
+
href?: string;
|
|
1037
|
+
as?: React__default.ElementType;
|
|
890
1038
|
}
|
|
891
1039
|
type DragIndicatorStyleProps = {
|
|
892
1040
|
depth: number;
|
|
893
1041
|
indentation: number;
|
|
894
1042
|
position: RelativeDropPosition;
|
|
895
1043
|
};
|
|
896
|
-
|
|
897
|
-
scrollToIndex(index: number): void;
|
|
898
|
-
}
|
|
899
|
-
type ListViewItemInfo = {
|
|
900
|
-
isDragOverlay: boolean;
|
|
901
|
-
activeDragIndex?: number;
|
|
902
|
-
};
|
|
903
|
-
type ChildrenProps = {
|
|
904
|
-
children: ReactNode;
|
|
905
|
-
};
|
|
906
|
-
type RenderProps<T> = {
|
|
907
|
-
data: T[];
|
|
908
|
-
renderItem: (item: T, index: number, info: ListViewItemInfo) => ReactNode;
|
|
909
|
-
keyExtractor: (item: T, index: number) => string;
|
|
910
|
-
/**
|
|
911
|
-
* Each item must have an `id` in order to be sortable.
|
|
912
|
-
*
|
|
913
|
-
* Additionally, the key extracted with `keyExtractor` must match the ListItem.Row `id`.
|
|
914
|
-
*/
|
|
915
|
-
sortable?: boolean;
|
|
916
|
-
virtualized?: Size;
|
|
917
|
-
};
|
|
918
|
-
type ListViewVariant = "normal" | "bare";
|
|
919
|
-
type ListViewSectionHeaderVariant = "normal" | "label";
|
|
920
|
-
type ListViewRootProps = {
|
|
921
|
-
id?: string;
|
|
922
|
-
className?: string;
|
|
923
|
-
style?: CSSProperties;
|
|
924
|
-
role?: string;
|
|
925
|
-
"aria-labelledby"?: string;
|
|
926
|
-
"aria-orientation"?: "vertical" | "horizontal";
|
|
927
|
-
"aria-multiselectable"?: boolean;
|
|
928
|
-
onPress?: () => void;
|
|
929
|
-
scrollable?: boolean;
|
|
930
|
-
expandable?: boolean;
|
|
931
|
-
onMoveItem?: MoveDragItemHandler;
|
|
932
|
-
indentation?: number;
|
|
933
|
-
acceptsDrop?: DropValidator;
|
|
934
|
-
pressEventName?: PressEventName;
|
|
935
|
-
variant?: ListViewVariant;
|
|
936
|
-
sectionHeaderVariant?: ListViewSectionHeaderVariant;
|
|
937
|
-
divider?: boolean;
|
|
938
|
-
gap?: number;
|
|
939
|
-
colorScheme?: ListColorScheme;
|
|
940
|
-
containerRef?: React__default.RefObject<HTMLDivElement>;
|
|
941
|
-
onDragOver?: React__default.DragEventHandler<HTMLDivElement>;
|
|
942
|
-
onDragEnter?: React__default.DragEventHandler<HTMLDivElement>;
|
|
943
|
-
onDragLeave?: React__default.DragEventHandler<HTMLDivElement>;
|
|
944
|
-
onDrop?: React__default.DragEventHandler<HTMLDivElement>;
|
|
945
|
-
renderEmptyState?: () => ReactNode;
|
|
946
|
-
getDropTargetParentIndex?: SortableItemContextProps["getDropTargetParentIndex"];
|
|
947
|
-
sharedDragProps?: SharedDragProps;
|
|
948
|
-
sortableId?: string;
|
|
949
|
-
};
|
|
1044
|
+
|
|
950
1045
|
declare namespace ListView {
|
|
951
|
-
const RowTitle:
|
|
1046
|
+
const RowTitle: React$1.NamedExoticComponent<{
|
|
952
1047
|
className?: string;
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
const
|
|
956
|
-
const
|
|
957
|
-
const
|
|
958
|
-
const RowContext: React__default.Context<ListRowContextValue>;
|
|
1048
|
+
} & React$1.HTMLAttributes<HTMLSpanElement>>;
|
|
1049
|
+
const EditableRowTitle: React$1.NamedExoticComponent<EditableRowTitleProps>;
|
|
1050
|
+
const Row: <MenuItemType extends string>(props: ListViewRowProps<MenuItemType> & React$1.RefAttributes<HTMLElement>) => React.ReactElement<any> | null;
|
|
1051
|
+
const Root: <T>(props: ListViewRootProps<T> & React$1.RefAttributes<IVirtualizedList>) => React.ReactElement<any> | null;
|
|
1052
|
+
const RowContext: React$1.Context<ListRowContextValue>;
|
|
959
1053
|
type ClickInfo = ListViewClickInfo;
|
|
960
1054
|
type ItemInfo = ListViewItemInfo;
|
|
961
1055
|
type RowProps<MenuItemType extends string = string> = ListViewRowProps<MenuItemType>;
|
|
962
1056
|
type VirtualizedList = IVirtualizedList;
|
|
963
|
-
const DragIndicator:
|
|
1057
|
+
const DragIndicator: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
964
1058
|
$relativeDropPosition?: RelativeDropPosition;
|
|
965
1059
|
$gap: number;
|
|
966
1060
|
$offsetLeft: number;
|
|
967
1061
|
$colorScheme: ListColorScheme;
|
|
968
|
-
} &
|
|
1062
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
969
1063
|
const rowHeight = 31;
|
|
970
1064
|
const sectionHeaderLabelHeight = 27;
|
|
971
1065
|
const calculateHeight: ({ menuItemsCount, sectionHeaderCount, }: {
|
|
@@ -993,8 +1087,10 @@ type CollectionRenderActionProps<T> = {
|
|
|
993
1087
|
interface CollectionProps<T, M extends string = string> {
|
|
994
1088
|
className?: string;
|
|
995
1089
|
items: T[];
|
|
1090
|
+
virtualized?: Size;
|
|
996
1091
|
getId: (item: T) => string;
|
|
997
1092
|
getName: (item: T) => string;
|
|
1093
|
+
getHref?: (item: T) => string;
|
|
998
1094
|
getExpanded?: (item: T) => boolean | undefined;
|
|
999
1095
|
getPlaceholder?: (item: T) => string;
|
|
1000
1096
|
/**
|
|
@@ -1013,9 +1109,13 @@ interface CollectionProps<T, M extends string = string> {
|
|
|
1013
1109
|
renderThumbnail?: ({ item, selected, size, }: CollectionThumbnailProps<T>) => React__default.ReactNode;
|
|
1014
1110
|
renderAction?: "menu" | ((props: CollectionRenderActionProps<T>) => React__default.ReactNode);
|
|
1015
1111
|
renderDetail?: (item: T, selected: boolean) => React__default.ReactNode;
|
|
1112
|
+
/** Optional right-side content renderer for each item */
|
|
1113
|
+
renderRight?: (item: T, selected: boolean) => React__default.ReactNode;
|
|
1016
1114
|
/** Callback when selection changes. If not provided, selection will be disabled. */
|
|
1017
1115
|
onSelectionChange?: (selectedItemIds: string[], event?: ListView.ClickInfo) => void;
|
|
1018
1116
|
scrollable?: boolean;
|
|
1117
|
+
itemStyle?: CSSProperties;
|
|
1118
|
+
itemClassName?: string;
|
|
1019
1119
|
itemRoleDescription?: string;
|
|
1020
1120
|
/** Position of the detail content. Defaults to 'end'. */
|
|
1021
1121
|
detailPosition?: "end" | "below";
|
|
@@ -1030,38 +1130,35 @@ interface CollectionProps<T, M extends string = string> {
|
|
|
1030
1130
|
/** For testing: Override the drop indicator state with a specific item ID */
|
|
1031
1131
|
testShowDropIndicatorId?: string;
|
|
1032
1132
|
setExpanded?: (item: T, expanded: boolean) => void;
|
|
1033
|
-
acceptsDrop?: ListViewRootProps["acceptsDrop"];
|
|
1034
|
-
onMoveItem?: ListViewRootProps["onMoveItem"];
|
|
1035
|
-
getDropTargetParentIndex?: ListViewRootProps["getDropTargetParentIndex"];
|
|
1133
|
+
acceptsDrop?: ListViewRootProps<T>["acceptsDrop"];
|
|
1134
|
+
onMoveItem?: ListViewRootProps<T>["onMoveItem"];
|
|
1135
|
+
getDropTargetParentIndex?: ListViewRootProps<T>["getDropTargetParentIndex"];
|
|
1036
1136
|
getDepth?: (item: T) => number;
|
|
1037
1137
|
onFilesDrop?: (event: React__default.DragEvent<Element>) => void;
|
|
1038
1138
|
getRenamable?: (item: T) => boolean;
|
|
1039
1139
|
/** Currently selected file IDs */
|
|
1040
1140
|
selectedIds?: string[];
|
|
1041
1141
|
viewType?: CollectionViewType;
|
|
1142
|
+
onClick?: () => void;
|
|
1042
1143
|
onClickItem?: (itemId: string) => void;
|
|
1043
1144
|
onDoubleClickItem?: (itemId: string) => void;
|
|
1044
|
-
renderEmptyState?: () => React__default.ReactElement
|
|
1145
|
+
renderEmptyState?: () => React__default.ReactElement<any>;
|
|
1045
1146
|
/** @default false */
|
|
1046
1147
|
sortable?: boolean;
|
|
1047
1148
|
dragIndicatorStyle?: ListViewRowProps<M>["dragIndicatorStyle"];
|
|
1048
1149
|
sharedDragProps?: SharedDragProps;
|
|
1049
1150
|
sortableId?: string;
|
|
1050
1151
|
}
|
|
1051
|
-
declare const Collection: <T, M extends string = string>(props: CollectionProps<T, M> & React__default.RefAttributes<CollectionRef>) => React__default.ReactElement | null;
|
|
1152
|
+
declare const Collection: <T, M extends string = string>(props: CollectionProps<T, M> & React__default.RefAttributes<CollectionRef>) => React__default.ReactElement<any> | null;
|
|
1052
1153
|
type CollectionItemSize = "xxs" | "xs" | "small" | "medium" | "mediumLarge" | "large" | "xl";
|
|
1053
1154
|
|
|
1054
|
-
type ColorSwatchSize = "xsmall" | "small" | "medium" | "large";
|
|
1055
|
-
declare const colorSwatchSizeMap:
|
|
1056
|
-
xsmall: number;
|
|
1057
|
-
small: number;
|
|
1058
|
-
medium: number;
|
|
1059
|
-
large: number;
|
|
1060
|
-
};
|
|
1155
|
+
type ColorSwatchSize = "xxsmall" | "xsmall" | "small" | "medium" | "large";
|
|
1156
|
+
declare const colorSwatchSizeMap: Record<ColorSwatchSize, number>;
|
|
1061
1157
|
declare const ColorSwatch: React__default.ForwardRefExoticComponent<{
|
|
1062
1158
|
color: string;
|
|
1063
1159
|
size?: ColorSwatchSize;
|
|
1064
1160
|
checked?: boolean;
|
|
1161
|
+
as?: React__default.ElementType;
|
|
1065
1162
|
} & React__default.ButtonHTMLAttributes<HTMLButtonElement> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1066
1163
|
|
|
1067
1164
|
type TokenValue = string | {
|
|
@@ -1085,7 +1182,7 @@ declare function ColorSwatchControl(props: ColorSwatchControlProps): React__defa
|
|
|
1085
1182
|
|
|
1086
1183
|
type InputSize = "small" | "medium" | "large";
|
|
1087
1184
|
|
|
1088
|
-
type Props$
|
|
1185
|
+
type Props$c = {
|
|
1089
1186
|
id?: string;
|
|
1090
1187
|
style?: any;
|
|
1091
1188
|
className?: string;
|
|
@@ -1103,15 +1200,15 @@ type Props$e = {
|
|
|
1103
1200
|
onFocusChange?: (isFocused: boolean) => void;
|
|
1104
1201
|
onBlur?: FocusEventHandler;
|
|
1105
1202
|
} & Pick<InputHTMLAttributes<HTMLInputElement>, "autoComplete" | "autoCapitalize" | "autoCorrect" | "spellCheck" | "autoFocus">;
|
|
1106
|
-
type ReadOnlyProps = Props$
|
|
1203
|
+
type ReadOnlyProps = Props$c & {
|
|
1107
1204
|
readOnly: true;
|
|
1108
1205
|
};
|
|
1109
|
-
type ControlledProps = Props$
|
|
1206
|
+
type ControlledProps = Props$c & {
|
|
1110
1207
|
onChange: (value: string) => void;
|
|
1111
1208
|
onFocus?: FocusEventHandler;
|
|
1112
1209
|
onBlur?: FocusEventHandler;
|
|
1113
1210
|
};
|
|
1114
|
-
type SubmittableProps = Props$
|
|
1211
|
+
type SubmittableProps = Props$c & {
|
|
1115
1212
|
onSubmit: (value: string) => void;
|
|
1116
1213
|
allowSubmittingWithSameValue?: boolean;
|
|
1117
1214
|
submitAutomaticallyAfterDelay?: number;
|
|
@@ -1192,17 +1289,17 @@ declare function InputFieldRoot({ id, children, width, sideOffset, startWidth: s
|
|
|
1192
1289
|
type InputFieldProps = InputFieldRootProps & InputFieldInputProps;
|
|
1193
1290
|
declare const InputField: React__default.ForwardRefExoticComponent<InputFieldProps & React__default.RefAttributes<HTMLInputElement>> & {
|
|
1194
1291
|
readonly Root: React__default.MemoExoticComponent<typeof InputFieldRoot>;
|
|
1195
|
-
readonly Input: React__default.
|
|
1292
|
+
readonly Input: React__default.NamedExoticComponent<InputFieldInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
1196
1293
|
readonly Typeahead: React__default.MemoExoticComponent<(props: {
|
|
1197
1294
|
prefix: string;
|
|
1198
1295
|
value: string;
|
|
1199
1296
|
isFocused: boolean;
|
|
1200
1297
|
}) => React__default.JSX.Element>;
|
|
1201
1298
|
readonly NumberInput: React__default.MemoExoticComponent<typeof InputFieldNumberInput>;
|
|
1202
|
-
readonly DropdownMenu: <T extends string>(props: InputFieldDropdownProps<T>) => React__default.ReactElement | null;
|
|
1203
|
-
readonly Button: React__default.
|
|
1299
|
+
readonly DropdownMenu: <T extends string>(props: InputFieldDropdownProps<T>) => React__default.ReactElement<any> | null;
|
|
1300
|
+
readonly Button: React__default.NamedExoticComponent<Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement> & ButtonProps & {
|
|
1204
1301
|
variant?: "floating" | "normal";
|
|
1205
|
-
}, "ref"> & React__default.RefAttributes<HTMLButtonElement
|
|
1302
|
+
}, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1206
1303
|
readonly PrimitiveElement: ({ readOnly, disabled, className, style, ...props }: {
|
|
1207
1304
|
readOnly?: boolean;
|
|
1208
1305
|
disabled?: boolean;
|
|
@@ -1252,7 +1349,7 @@ interface ComboboxRef<T extends string> {
|
|
|
1252
1349
|
setValue(value: string | SelectableMenuItem<T>): void;
|
|
1253
1350
|
selectAllInputText(): void;
|
|
1254
1351
|
}
|
|
1255
|
-
declare const Combobox: <T extends string>(props: ComboboxProps<T> & React__default.RefAttributes<ComboboxRef<T>>) => React__default.ReactElement | null;
|
|
1352
|
+
declare const Combobox: <T extends string>(props: ComboboxProps<T> & React__default.RefAttributes<ComboboxRef<T>>) => React__default.ReactElement<any> | null;
|
|
1256
1353
|
|
|
1257
1354
|
interface ComboboxMenuProps<T extends string> {
|
|
1258
1355
|
items: ScoredMenuItem<T>[];
|
|
@@ -1265,7 +1362,7 @@ interface ComboboxMenuProps<T extends string> {
|
|
|
1265
1362
|
/** @default right */
|
|
1266
1363
|
iconPosition?: "left" | "right";
|
|
1267
1364
|
}
|
|
1268
|
-
declare const ComboboxMenu: <T extends string>(props: ComboboxMenuProps<T> & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement | null;
|
|
1365
|
+
declare const ComboboxMenu: <T extends string>(props: ComboboxMenuProps<T> & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement<any> | null;
|
|
1269
1366
|
|
|
1270
1367
|
interface ISearchCompletionMenu {
|
|
1271
1368
|
focus: () => void;
|
|
@@ -1319,26 +1416,26 @@ interface MenuProps<T extends string> {
|
|
|
1319
1416
|
shouldBindKeyboardShortcuts?: boolean;
|
|
1320
1417
|
onOpenChange?: (open: boolean) => void;
|
|
1321
1418
|
}
|
|
1322
|
-
declare const ContextMenu: <T extends string>(props: MenuProps<T>) => React__default.ReactElement | null;
|
|
1419
|
+
declare const ContextMenu: <T extends string>(props: MenuProps<T>) => React__default.ReactElement<any> | null;
|
|
1323
1420
|
|
|
1324
|
-
declare const StyledContent: React__default.ForwardRefExoticComponent<Omit<
|
|
1421
|
+
declare const StyledContent: React__default.ForwardRefExoticComponent<Omit<Dialog$1.DialogContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
1325
1422
|
interface IDialog {
|
|
1326
1423
|
containsElement: (element: HTMLElement) => boolean;
|
|
1327
1424
|
}
|
|
1328
|
-
interface Props$
|
|
1425
|
+
interface Props$b {
|
|
1329
1426
|
title?: ReactNode;
|
|
1330
1427
|
description?: ReactNode;
|
|
1331
1428
|
children?: ReactNode;
|
|
1332
1429
|
style?: ComponentProps<typeof StyledContent>["style"];
|
|
1333
|
-
open: ComponentProps<typeof
|
|
1334
|
-
onOpenChange?: ComponentProps<typeof
|
|
1335
|
-
onOpenAutoFocus?: ComponentProps<typeof
|
|
1430
|
+
open: ComponentProps<typeof Dialog$1.Root>["open"];
|
|
1431
|
+
onOpenChange?: ComponentProps<typeof Dialog$1.Root>["onOpenChange"];
|
|
1432
|
+
onOpenAutoFocus?: ComponentProps<typeof Dialog$1.Content>["onOpenAutoFocus"];
|
|
1336
1433
|
closeOnInteractOutside?: boolean;
|
|
1337
1434
|
showCloseButton?: boolean;
|
|
1338
1435
|
className?: string;
|
|
1339
1436
|
}
|
|
1340
|
-
declare const Dialog: React__default.ForwardRefExoticComponent<Props$
|
|
1341
|
-
declare const FullscreenDialog: React__default.ForwardRefExoticComponent<Props$
|
|
1437
|
+
declare const Dialog: React__default.ForwardRefExoticComponent<Props$b & React__default.RefAttributes<IDialog>>;
|
|
1438
|
+
declare const FullscreenDialog: React__default.ForwardRefExoticComponent<Props$b & React__default.RefAttributes<IDialog>>;
|
|
1342
1439
|
|
|
1343
1440
|
type DividerVariant = "normal" | "subtle" | "strong";
|
|
1344
1441
|
interface DividerProps {
|
|
@@ -1362,7 +1459,8 @@ declare const DraggableMenuButton: <T extends string>(props: {
|
|
|
1362
1459
|
isVisible?: boolean;
|
|
1363
1460
|
className?: string;
|
|
1364
1461
|
style?: React__default.CSSProperties;
|
|
1365
|
-
|
|
1462
|
+
iconName?: IconName;
|
|
1463
|
+
} & Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onSelect">) => React__default.ReactElement<any> | null;
|
|
1366
1464
|
|
|
1367
1465
|
type SidebarRef = {
|
|
1368
1466
|
expand: () => void;
|
|
@@ -1374,6 +1472,8 @@ type PercentageSidebarOptions = {
|
|
|
1374
1472
|
maxSize?: number;
|
|
1375
1473
|
initialSize?: number;
|
|
1376
1474
|
resizable?: boolean;
|
|
1475
|
+
defaultCollapsed?: boolean;
|
|
1476
|
+
showTabs?: boolean;
|
|
1377
1477
|
};
|
|
1378
1478
|
type PanelLayoutState = {
|
|
1379
1479
|
leftSidebarCollapsed: boolean;
|
|
@@ -1396,11 +1496,14 @@ type LayoutProps<LeftTab extends string = string, RightTab extends string = stri
|
|
|
1396
1496
|
rightSidebarOptions: PercentageSidebarOptions;
|
|
1397
1497
|
centerPanelPercentage: number;
|
|
1398
1498
|
autoSavePrefix?: string;
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1499
|
+
leftSidebarRef: React.RefObject<SidebarRef | null>;
|
|
1500
|
+
rightSidebarRef: React.RefObject<SidebarRef | null>;
|
|
1501
|
+
};
|
|
1502
|
+
type WorkspaceLayoutGroup = {
|
|
1503
|
+
expandToSizes: Record<string, number>;
|
|
1504
|
+
layout: number[];
|
|
1403
1505
|
};
|
|
1506
|
+
type WorkspaceLayoutState = Record<string, WorkspaceLayoutGroup>;
|
|
1404
1507
|
|
|
1405
1508
|
type DrawerProps = {
|
|
1406
1509
|
open?: boolean;
|
|
@@ -1411,12 +1514,14 @@ type DrawerProps = {
|
|
|
1411
1514
|
className?: string;
|
|
1412
1515
|
id?: string;
|
|
1413
1516
|
style?: React$1.CSSProperties;
|
|
1517
|
+
overlayClassName?: string;
|
|
1518
|
+
overlayStyle?: React$1.CSSProperties;
|
|
1414
1519
|
positioning?: "fixed" | "absolute";
|
|
1415
1520
|
side?: "left" | "right";
|
|
1416
1521
|
portalled?: boolean;
|
|
1417
1522
|
portalContainer?: HTMLElement | null;
|
|
1418
1523
|
};
|
|
1419
|
-
declare const Drawer: React$1.
|
|
1524
|
+
declare const Drawer: React$1.NamedExoticComponent<DrawerProps & React$1.RefAttributes<SidebarRef>>;
|
|
1420
1525
|
|
|
1421
1526
|
type DropdownRootProps<T extends string> = Omit<MenuProps<T>, "children"> & {
|
|
1422
1527
|
children?: ReactNode | ((props: {
|
|
@@ -1428,7 +1533,7 @@ type DropdownRootProps<T extends string> = Omit<MenuProps<T>, "children"> & {
|
|
|
1428
1533
|
onCloseAutoFocus?: React__default.EventHandler<SyntheticEvent<unknown>>;
|
|
1429
1534
|
emptyState?: React__default.ReactNode;
|
|
1430
1535
|
contentStyle?: React__default.CSSProperties;
|
|
1431
|
-
} & Pick<ComponentProps<typeof
|
|
1536
|
+
} & Pick<ComponentProps<typeof DropdownMenu$1.Content>, "side" | "sideOffset" | "align" | "alignOffset" | "collisionPadding">;
|
|
1432
1537
|
declare const DropdownMenu: <T extends string>(props: Omit<MenuProps<T>, "children"> & {
|
|
1433
1538
|
children?: ReactNode | ((props: {
|
|
1434
1539
|
open: boolean;
|
|
@@ -1439,7 +1544,7 @@ declare const DropdownMenu: <T extends string>(props: Omit<MenuProps<T>, "childr
|
|
|
1439
1544
|
onCloseAutoFocus?: React__default.EventHandler<SyntheticEvent<unknown>>;
|
|
1440
1545
|
emptyState?: React__default.ReactNode;
|
|
1441
1546
|
contentStyle?: React__default.CSSProperties;
|
|
1442
|
-
} & Pick<
|
|
1547
|
+
} & Pick<DropdownMenu$1.DropdownMenuContentProps & React__default.RefAttributes<HTMLDivElement>, "side" | "sideOffset" | "align" | "alignOffset" | "collisionPadding"> & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any> | null;
|
|
1443
1548
|
|
|
1444
1549
|
type RenderPreviewProps = {
|
|
1445
1550
|
children: string;
|
|
@@ -1450,7 +1555,7 @@ type RenderPreviewProps = {
|
|
|
1450
1555
|
style?: React__default.CSSProperties;
|
|
1451
1556
|
className?: string;
|
|
1452
1557
|
};
|
|
1453
|
-
type Props$
|
|
1558
|
+
type Props$a = {
|
|
1454
1559
|
value: string;
|
|
1455
1560
|
children?: (props: RenderPreviewProps) => React__default.ReactNode;
|
|
1456
1561
|
placeholder?: string;
|
|
@@ -1474,7 +1579,7 @@ type Props$c = {
|
|
|
1474
1579
|
interface EditableTextRef {
|
|
1475
1580
|
startEditing: () => void;
|
|
1476
1581
|
}
|
|
1477
|
-
declare const EditableText: React__default.
|
|
1582
|
+
declare const EditableText: React__default.NamedExoticComponent<Props$a & React__default.RefAttributes<EditableTextRef>>;
|
|
1478
1583
|
|
|
1479
1584
|
type FadeDirection = "left" | "right" | "top" | "bottom";
|
|
1480
1585
|
type FadeProps = {
|
|
@@ -1499,40 +1604,28 @@ declare const FileExplorerUploadButton: ({ showUploadButton, onUpload, isUploadi
|
|
|
1499
1604
|
isUploading?: boolean;
|
|
1500
1605
|
children?: React__default.ReactNode;
|
|
1501
1606
|
}) => React__default.JSX.Element;
|
|
1502
|
-
declare const FileExplorerCollection: <T, M extends string = string>(props: CollectionProps<T, M> & React__default.RefAttributes<CollectionRef>) => React__default.ReactElement | null;
|
|
1503
|
-
declare const FileExplorerDetail: ({ selected, size, children, }: {
|
|
1607
|
+
declare const FileExplorerCollection: <T, M extends string = string>(props: CollectionProps<T, M> & React__default.RefAttributes<CollectionRef>) => React__default.ReactElement<any> | null;
|
|
1608
|
+
declare const FileExplorerDetail: ({ selected, size, children, className, style, }: {
|
|
1504
1609
|
selected: boolean;
|
|
1505
1610
|
children: React__default.ReactNode;
|
|
1506
1611
|
size?: CollectionItemSize;
|
|
1612
|
+
className?: string;
|
|
1613
|
+
style?: CSSProperties;
|
|
1507
1614
|
}) => React__default.JSX.Element;
|
|
1508
|
-
declare const FileExplorerEmptyState: ({ label, ...props }: BannerProps$1) => React__default.JSX.Element;
|
|
1615
|
+
declare const FileExplorerEmptyState: ({ children: label, ...props }: BannerProps$1) => React__default.JSX.Element;
|
|
1509
1616
|
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
_class: 'pattern';
|
|
1516
|
-
image?: Sketch.FileRef | Sketch.DataRef;
|
|
1517
|
-
patternFillType: Sketch.PatternFillType;
|
|
1518
|
-
patternTileScale: number;
|
|
1617
|
+
type FileUploadIndicatorProps = {
|
|
1618
|
+
name?: string;
|
|
1619
|
+
percent?: number;
|
|
1620
|
+
total?: number;
|
|
1621
|
+
contentType?: string;
|
|
1519
1622
|
};
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
declare const PatternPreviewBackground: React$1.NamedExoticComponent<{
|
|
1528
|
-
fillType: Sketch.PatternFillType;
|
|
1529
|
-
tileScale: number;
|
|
1530
|
-
imageRef: string;
|
|
1531
|
-
}>;
|
|
1532
|
-
interface Props$a {
|
|
1533
|
-
value?: Sketch.Color | Sketch.Gradient | SketchPattern;
|
|
1534
|
-
}
|
|
1535
|
-
declare const FillPreviewBackground: React$1.NamedExoticComponent<Props$a>;
|
|
1623
|
+
declare function FileUploadIndicator({ name, percent, total, contentType, }: FileUploadIndicatorProps): React__default.JSX.Element;
|
|
1624
|
+
declare function FileUploadList({ uploads, }: {
|
|
1625
|
+
uploads: (FileUploadIndicatorProps & {
|
|
1626
|
+
id: string;
|
|
1627
|
+
})[];
|
|
1628
|
+
}): React__default.JSX.Element;
|
|
1536
1629
|
|
|
1537
1630
|
interface FloatingWindowProps {
|
|
1538
1631
|
title?: string;
|
|
@@ -1553,33 +1646,25 @@ interface FloatingWindowProps {
|
|
|
1553
1646
|
}
|
|
1554
1647
|
declare const FloatingWindow: React__default.FC<FloatingWindowProps>;
|
|
1555
1648
|
|
|
1556
|
-
interface Props$9 {
|
|
1557
|
-
value: Sketch.GradientStop[];
|
|
1558
|
-
selectedStop: number;
|
|
1559
|
-
onChangeColor: (color: Sketch.Color) => void;
|
|
1560
|
-
onChangePosition: (position: number) => void;
|
|
1561
|
-
onAdd: (color: Sketch.Color, position: number) => void;
|
|
1562
|
-
onDelete: () => void;
|
|
1563
|
-
onSelectStop: (index: number) => void;
|
|
1564
|
-
}
|
|
1565
|
-
declare const GradientPicker: React$1.NamedExoticComponent<Props$9>;
|
|
1566
|
-
|
|
1567
1649
|
declare const getGridSize: (size: CollectionItemSize) => {
|
|
1568
1650
|
minColumnWidth: string;
|
|
1569
1651
|
gap: number;
|
|
1570
1652
|
};
|
|
1571
1653
|
declare const Grid: <T, M extends string = string>(props: CollectionProps<T, M> & {
|
|
1572
1654
|
ref?: React__default.ForwardedRef<CollectionRef>;
|
|
1573
|
-
} & React__default.RefAttributes<CollectionRef>) => React__default.ReactElement | null;
|
|
1655
|
+
} & React__default.RefAttributes<CollectionRef>) => React__default.ReactElement<any> | null;
|
|
1574
1656
|
|
|
1575
1657
|
interface ItemProps<MenuItemType extends string = string> {
|
|
1576
1658
|
id: string;
|
|
1659
|
+
href?: string;
|
|
1577
1660
|
title?: ReactNode;
|
|
1578
1661
|
subtitle?: ReactNode;
|
|
1579
1662
|
loading?: boolean;
|
|
1580
1663
|
selected?: boolean;
|
|
1581
1664
|
onClick?: (event: React__default.MouseEvent) => void;
|
|
1582
|
-
onSelect?: (options: KeyModifiers
|
|
1665
|
+
onSelect?: (options: KeyModifiers & {
|
|
1666
|
+
stopPropagation(): void;
|
|
1667
|
+
}) => void;
|
|
1583
1668
|
onDoubleClick?: () => void;
|
|
1584
1669
|
onHoverChange?: (isHovering: boolean) => void;
|
|
1585
1670
|
children?: ReactNode;
|
|
@@ -1600,6 +1685,7 @@ type GridViewContextValue = {
|
|
|
1600
1685
|
bordered: boolean;
|
|
1601
1686
|
disabled: boolean;
|
|
1602
1687
|
gap: number;
|
|
1688
|
+
alwaysShowSubtitles: boolean;
|
|
1603
1689
|
};
|
|
1604
1690
|
interface GridViewRootProps extends Partial<GridViewContextValue> {
|
|
1605
1691
|
children: ReactNode;
|
|
@@ -1613,23 +1699,24 @@ interface GridViewRootProps extends Partial<GridViewContextValue> {
|
|
|
1613
1699
|
role?: string;
|
|
1614
1700
|
renderEmptyState?: () => ReactNode;
|
|
1615
1701
|
contentClassName?: string;
|
|
1702
|
+
alwaysShowSubtitles?: boolean;
|
|
1616
1703
|
}
|
|
1617
1704
|
declare function GridViewSection({ children, className, renderEmptyState, }: {
|
|
1618
1705
|
children?: ReactNode;
|
|
1619
1706
|
className?: string;
|
|
1620
1707
|
renderEmptyState?: () => ReactNode;
|
|
1621
|
-
}): string | number | boolean | Iterable<React__default.ReactNode> | React__default.JSX.Element | null | undefined;
|
|
1708
|
+
}): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | React__default.JSX.Element | null | undefined;
|
|
1622
1709
|
declare function GridViewSectionHeader({ title }: {
|
|
1623
1710
|
title: string;
|
|
1624
1711
|
}): React__default.JSX.Element;
|
|
1625
1712
|
declare namespace GridView {
|
|
1626
|
-
const Root: React__default.
|
|
1627
|
-
const Item: <MenuItemType extends string>(props: ItemProps<MenuItemType> & React__default.RefAttributes<
|
|
1713
|
+
const Root: React__default.NamedExoticComponent<GridViewRootProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1714
|
+
const Item: <MenuItemType extends string>(props: ItemProps<MenuItemType> & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any> | null;
|
|
1628
1715
|
const Section: React__default.MemoExoticComponent<typeof GridViewSection>;
|
|
1629
1716
|
const SectionHeader: React__default.MemoExoticComponent<typeof GridViewSectionHeader>;
|
|
1630
1717
|
}
|
|
1631
1718
|
|
|
1632
|
-
type Props$
|
|
1719
|
+
type Props$9 = Omit<ButtonProps, "children" | "variant" | "flex" | "size"> & {
|
|
1633
1720
|
iconName: IconName;
|
|
1634
1721
|
className?: string;
|
|
1635
1722
|
style?: React$1.CSSProperties;
|
|
@@ -1637,9 +1724,9 @@ type Props$8 = Omit<ButtonProps, "children" | "variant" | "flex" | "size"> & {
|
|
|
1637
1724
|
color?: string;
|
|
1638
1725
|
size?: number;
|
|
1639
1726
|
};
|
|
1640
|
-
declare const IconButton: React$1.
|
|
1727
|
+
declare const IconButton: React$1.NamedExoticComponent<Omit<Props$9, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1641
1728
|
|
|
1642
|
-
declare const InspectorContainer: React__default.
|
|
1729
|
+
declare const InspectorContainer: React__default.NamedExoticComponent<{
|
|
1643
1730
|
header?: React__default.ReactNode;
|
|
1644
1731
|
children?: React__default.ReactNode;
|
|
1645
1732
|
fallback?: React__default.ReactNode;
|
|
@@ -1647,7 +1734,7 @@ declare const InspectorContainer: React__default.MemoExoticComponent<React__defa
|
|
|
1647
1734
|
id?: string;
|
|
1648
1735
|
className?: string;
|
|
1649
1736
|
style?: React__default.CSSProperties;
|
|
1650
|
-
} & React__default.RefAttributes<HTMLDivElement
|
|
1737
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
1651
1738
|
|
|
1652
1739
|
type MenuSeparatorComponent = React__default.FC<{
|
|
1653
1740
|
className?: string;
|
|
@@ -1680,10 +1767,10 @@ type MenuComponents = {
|
|
|
1680
1767
|
Item: MenuItemComponent;
|
|
1681
1768
|
CheckboxItem?: MenuCheckboxItemComponent;
|
|
1682
1769
|
ItemIndicator?: MenuItemIndicatorComponent;
|
|
1683
|
-
Sub?: typeof
|
|
1684
|
-
SubTrigger?: typeof
|
|
1685
|
-
SubContent?: typeof
|
|
1686
|
-
Portal?: typeof
|
|
1770
|
+
Sub?: typeof DropdownMenu$1.Sub | typeof ContextMenu$1.Sub;
|
|
1771
|
+
SubTrigger?: typeof DropdownMenu$1.SubTrigger | typeof ContextMenu$1.SubTrigger;
|
|
1772
|
+
SubContent?: typeof DropdownMenu$1.SubContent | typeof ContextMenu$1.SubContent;
|
|
1773
|
+
Portal?: typeof DropdownMenu$1.Portal | typeof ContextMenu$1.Portal;
|
|
1687
1774
|
};
|
|
1688
1775
|
type MenuViewportProps<T extends string> = {
|
|
1689
1776
|
items: MenuItem<T>[];
|
|
@@ -1694,7 +1781,7 @@ declare const MenuViewport: <T extends string>({ items, Components, onSelect, }:
|
|
|
1694
1781
|
|
|
1695
1782
|
interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
1696
1783
|
}
|
|
1697
|
-
declare const Label: React__default.
|
|
1784
|
+
declare const Label: React__default.NamedExoticComponent<LabelProps & React__default.RefAttributes<HTMLLabelElement>>;
|
|
1698
1785
|
|
|
1699
1786
|
interface ContainerProps {
|
|
1700
1787
|
children: React$1.ReactNode;
|
|
@@ -1729,7 +1816,7 @@ type LabelWidthContextValue = {
|
|
|
1729
1816
|
declare const LabelWidthContext: React__default.Context<LabelWidthContextValue>;
|
|
1730
1817
|
declare const useLabelWidth: () => number;
|
|
1731
1818
|
|
|
1732
|
-
declare const labeledFieldStyles: (labelType?: LabelType) => string;
|
|
1819
|
+
declare const labeledFieldStyles: (labelType?: LabelType) => string | undefined;
|
|
1733
1820
|
declare const LabeledField: React__default.NamedExoticComponent<{
|
|
1734
1821
|
children: React__default.ReactNode;
|
|
1735
1822
|
label: React__default.ReactNode;
|
|
@@ -1743,9 +1830,138 @@ declare const LabeledField: React__default.NamedExoticComponent<{
|
|
|
1743
1830
|
minWidth?: number;
|
|
1744
1831
|
}>;
|
|
1745
1832
|
|
|
1746
|
-
declare const List: <T, M extends string = string>(props: CollectionProps<T, M> & React__default.RefAttributes<CollectionRef>) => React__default.ReactElement | null;
|
|
1833
|
+
declare const List: <T, M extends string = string>(props: CollectionProps<T, M> & React__default.RefAttributes<CollectionRef>) => React__default.ReactElement<any> | null;
|
|
1834
|
+
|
|
1835
|
+
type ListMenuProps<T extends string> = {
|
|
1836
|
+
items: MenuItem<T>[];
|
|
1837
|
+
selectedIds?: T[];
|
|
1838
|
+
onSelect: (item: T) => void;
|
|
1839
|
+
renderRight?: CollectionProps<MenuItem<T>, T>["renderRight"];
|
|
1840
|
+
className?: string;
|
|
1841
|
+
};
|
|
1842
|
+
declare function ListMenu<T extends string>({ items, selectedIds: selectedIdsProp, onSelect, renderRight, className, }: ListMenuProps<T>): React__default.ReactNode[];
|
|
1843
|
+
|
|
1844
|
+
type StackItem = {
|
|
1845
|
+
key: string;
|
|
1846
|
+
title?: React__default.ReactNode;
|
|
1847
|
+
right?: React__default.ReactNode;
|
|
1848
|
+
renderContent: () => React__default.ReactNode;
|
|
1849
|
+
/** Force hide/show back button for this item */
|
|
1850
|
+
showBackButton?: boolean;
|
|
1851
|
+
renderHeader?: StackNavigatorRenderHeader;
|
|
1852
|
+
};
|
|
1853
|
+
type StackNavigatorHeaderProps = {
|
|
1854
|
+
onBack?: () => void;
|
|
1855
|
+
showBackButton: boolean;
|
|
1856
|
+
showDivider: boolean;
|
|
1857
|
+
right?: React__default.ReactNode;
|
|
1858
|
+
title?: React__default.ReactNode;
|
|
1859
|
+
};
|
|
1860
|
+
type StackNavigatorRenderHeader = React__default.ReactNode | ((props: StackNavigatorHeaderProps) => React__default.ReactNode);
|
|
1861
|
+
type StackNavigatorProps = {
|
|
1862
|
+
/** Items ordered from root to top. The last item is shown. */
|
|
1863
|
+
items: StackItem[];
|
|
1864
|
+
/** Called when the back button is pressed */
|
|
1865
|
+
onBack?: () => void;
|
|
1866
|
+
className?: string;
|
|
1867
|
+
style?: React__default.CSSProperties;
|
|
1868
|
+
contentClassName?: string;
|
|
1869
|
+
/** Whether to show the header. @default true */
|
|
1870
|
+
showHeader?: boolean;
|
|
1871
|
+
showDivider?: boolean;
|
|
1872
|
+
cardStyle?: React__default.CSSProperties;
|
|
1873
|
+
cardClassName?: string;
|
|
1874
|
+
renderHeader?: StackNavigatorRenderHeader;
|
|
1875
|
+
};
|
|
1876
|
+
declare function StackNavigator({ items, onBack, className, style, contentClassName, cardStyle, cardClassName, showDivider, showHeader, renderHeader, }: StackNavigatorProps): React__default.JSX.Element | null;
|
|
1877
|
+
|
|
1878
|
+
type NavigatorParams = Record<string, unknown>;
|
|
1879
|
+
type NavigatorRoute<Params extends NavigatorParams | null> = {
|
|
1880
|
+
key: string;
|
|
1881
|
+
name: string;
|
|
1882
|
+
params: Params;
|
|
1883
|
+
};
|
|
1884
|
+
type NavigatorRoutesConfig<RoutesConfig extends Record<string, NavigatorParams | null>> = {
|
|
1885
|
+
[K in keyof RoutesConfig]: NavigatorRoute<RoutesConfig[K]>;
|
|
1886
|
+
};
|
|
1887
|
+
type NavigatorPushFunction<Routes extends Record<string, NavigatorRoute<any>>> = <K extends keyof Routes>(...args: Routes[K]["params"] extends null ? [name: K] : [name: K, params: Routes[K]["params"]]) => void;
|
|
1888
|
+
type NavigatorReplaceFunction<Routes extends Record<string, NavigatorRoute<any>>> = <K extends keyof Routes>(...args: Routes[K]["params"] extends null ? [name: K] : [name: K, params: Routes[K]["params"]]) => void;
|
|
1889
|
+
type NavigatorNavigation<Routes extends Record<string, NavigatorRoute<any>>> = {
|
|
1890
|
+
push: NavigatorPushFunction<Routes>;
|
|
1891
|
+
replace: NavigatorReplaceFunction<Routes>;
|
|
1892
|
+
pop: () => void;
|
|
1893
|
+
canGoBack: boolean;
|
|
1894
|
+
};
|
|
1895
|
+
type NavigatorRenderContext<Routes extends Record<string, NavigatorRoute<any>>, Name extends keyof Routes> = {
|
|
1896
|
+
route: NavigatorRoute<Routes[Name]["params"]>;
|
|
1897
|
+
navigation: NavigatorNavigation<Routes>;
|
|
1898
|
+
stack: NavigatorStackEntry<Routes>[];
|
|
1899
|
+
};
|
|
1900
|
+
type NavigatorHeaderProps<Routes extends Record<string, NavigatorRoute<any>>, Name extends keyof Routes> = NavigatorRenderContext<Routes, Name> & {
|
|
1901
|
+
title: React__default.ReactNode;
|
|
1902
|
+
right: React__default.ReactNode;
|
|
1903
|
+
showBackButton: boolean;
|
|
1904
|
+
onBack?: () => void;
|
|
1905
|
+
};
|
|
1906
|
+
type NavigatorRenderHeader<Routes extends Record<string, NavigatorRoute<any>>, Name extends keyof Routes> = React__default.ReactNode | ((context: NavigatorHeaderProps<Routes, Name>) => React__default.ReactNode);
|
|
1907
|
+
type NavigatorScreenProps<Routes extends Record<string, NavigatorRoute<any>>, Name extends keyof Routes> = {
|
|
1908
|
+
name: Name;
|
|
1909
|
+
title: React__default.ReactNode | ((context: NavigatorRenderContext<Routes, Name>) => React__default.ReactNode);
|
|
1910
|
+
right?: React__default.ReactNode | ((context: NavigatorRenderContext<Routes, Name>) => React__default.ReactNode);
|
|
1911
|
+
showBackButton?: boolean | ((context: NavigatorRenderContext<Routes, Name>) => boolean);
|
|
1912
|
+
renderHeader?: NavigatorRenderHeader<Routes, Name>;
|
|
1913
|
+
children: React__default.ReactNode | ((context: NavigatorRenderContext<Routes, Name>) => React__default.ReactNode);
|
|
1914
|
+
};
|
|
1915
|
+
declare const navigatorScreenIdentifier: unique symbol;
|
|
1916
|
+
type NavigatorStackEntry<Routes extends Record<string, NavigatorRoute<any>>> = {
|
|
1917
|
+
key: string;
|
|
1918
|
+
name: keyof Routes;
|
|
1919
|
+
params: Routes[keyof Routes]["params"];
|
|
1920
|
+
};
|
|
1921
|
+
type NavigatorProps<Routes extends Record<string, NavigatorRoute<any>>, Name extends keyof Routes> = {
|
|
1922
|
+
initialRoute: Routes[Name]["params"] extends null ? Name | {
|
|
1923
|
+
name: Name;
|
|
1924
|
+
} : {
|
|
1925
|
+
name: Name;
|
|
1926
|
+
params: Routes[Name]["params"];
|
|
1927
|
+
};
|
|
1928
|
+
children: React__default.ReactNode;
|
|
1929
|
+
showHeader?: boolean | ((context: {
|
|
1930
|
+
stack: NavigatorStackEntry<Routes>[];
|
|
1931
|
+
}) => boolean);
|
|
1932
|
+
renderHeader?: NavigatorRenderHeader<Routes, any>;
|
|
1933
|
+
} & Pick<StackNavigatorProps, "className" | "style" | "contentClassName" | "cardStyle" | "cardClassName">;
|
|
1934
|
+
declare function useNavigator<Routes extends Record<string, NavigatorRoute<any>>>(): NavigatorNavigation<Routes>;
|
|
1935
|
+
declare function useNavigatorRoute<Routes extends Record<string, NavigatorRoute<any>>, Name extends keyof Routes>(): NavigatorRoute<Routes[Name]["params"]>;
|
|
1936
|
+
declare function NavigatorImpl<Routes extends Record<string, NavigatorRoute<any>>, Name extends keyof Routes>({ initialRoute, children, className, style, contentClassName, cardStyle, cardClassName, showHeader, renderHeader, }: NavigatorProps<Routes, Name>): React__default.JSX.Element;
|
|
1937
|
+
declare const Navigator: typeof NavigatorImpl & {
|
|
1938
|
+
Screen: (<Routes extends Record<string, NavigatorRoute<any>>, Name extends keyof Routes>(_props: NavigatorScreenProps<Routes, Name>) => null) & {
|
|
1939
|
+
[navigatorScreenIdentifier]: true;
|
|
1940
|
+
};
|
|
1941
|
+
};
|
|
1942
|
+
declare function createNavigator<RoutesConfig extends Record<string, NavigatorParams | null>>(): (<Name extends keyof RoutesConfig>(props: NavigatorProps<NavigatorRoutesConfig<RoutesConfig>, Name>) => ReactNode) & {
|
|
1943
|
+
Screen: <Name extends keyof RoutesConfig>(props: NavigatorScreenProps<NavigatorRoutesConfig<RoutesConfig>, Name>) => ReactNode;
|
|
1944
|
+
useNavigator: () => NavigatorNavigation<NavigatorRoutesConfig<RoutesConfig>>;
|
|
1945
|
+
useNavigatorRoute: <Name extends keyof RoutesConfig>(name: Name) => NavigatorRoute<NavigatorRoutesConfig<RoutesConfig>[Name]["params"]>;
|
|
1946
|
+
};
|
|
1947
|
+
|
|
1948
|
+
type ListNavigatorProps<T extends string> = Pick<ListMenuProps<T>, "items" | "renderRight" | "selectedIds"> & Pick<NavigatorProps<any, any>, "className" | "style"> & {
|
|
1949
|
+
title?: React__default.ReactNode;
|
|
1950
|
+
onSelect: (item: T, { popToRoot }: {
|
|
1951
|
+
popToRoot: () => void;
|
|
1952
|
+
}) => void;
|
|
1953
|
+
renderHeader?: ({ title, onBack, }: {
|
|
1954
|
+
title?: React__default.ReactNode;
|
|
1955
|
+
onBack?: () => void;
|
|
1956
|
+
}) => React__default.ReactNode;
|
|
1957
|
+
};
|
|
1958
|
+
declare function ListNavigator<T extends string>({ title, items, onSelect, className, style, renderRight, renderHeader, selectedIds, }: ListNavigatorProps<T>): React__default.JSX.Element;
|
|
1747
1959
|
|
|
1748
|
-
type ColorScheme$
|
|
1960
|
+
type ColorScheme$4 = "primary" | "secondary" | "icon" | "warning";
|
|
1961
|
+
type RenderThumbnailIconProps = {
|
|
1962
|
+
fileName?: string;
|
|
1963
|
+
contentType?: string;
|
|
1964
|
+
};
|
|
1749
1965
|
type MediaThumbnailProps = {
|
|
1750
1966
|
contentType?: string;
|
|
1751
1967
|
url?: string;
|
|
@@ -1754,15 +1970,18 @@ type MediaThumbnailProps = {
|
|
|
1754
1970
|
/** Color scheme for the thumbnail. Affects icon color and background.
|
|
1755
1971
|
* @default "icon"
|
|
1756
1972
|
*/
|
|
1757
|
-
colorScheme?: ColorScheme$
|
|
1973
|
+
colorScheme?: ColorScheme$4;
|
|
1758
1974
|
/**
|
|
1759
1975
|
* If provided, use this icon instead of the default one for the asset type
|
|
1760
1976
|
*/
|
|
1761
1977
|
iconName?: IconName;
|
|
1762
1978
|
size?: CollectionItemSize;
|
|
1763
1979
|
fileName?: string;
|
|
1980
|
+
renderThumbnailIcon?: (props: RenderThumbnailIconProps) => React__default.ReactNode;
|
|
1981
|
+
dimensions?: Size;
|
|
1982
|
+
aspect?: "contain" | "cover";
|
|
1764
1983
|
};
|
|
1765
|
-
declare const getThumbnailColors: (colorScheme: ColorScheme$
|
|
1984
|
+
declare const getThumbnailColors: (colorScheme: ColorScheme$4, selected: boolean) => {
|
|
1766
1985
|
icon: string;
|
|
1767
1986
|
background: string;
|
|
1768
1987
|
};
|
|
@@ -1775,7 +1994,7 @@ type MessageProps = {
|
|
|
1775
1994
|
/** @default 27 */
|
|
1776
1995
|
avatarSize?: number;
|
|
1777
1996
|
};
|
|
1778
|
-
declare const Message: React__default.
|
|
1997
|
+
declare const Message: React__default.NamedExoticComponent<MessageProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1779
1998
|
|
|
1780
1999
|
declare const Logo: React__default.ForwardRefExoticComponent<Omit<React__default.SVGProps<SVGSVGElement>, "ref"> & React__default.RefAttributes<SVGSVGElement>>;
|
|
1781
2000
|
|
|
@@ -1790,7 +2009,7 @@ declare function getPipelineResultLink(value: unknown): {
|
|
|
1790
2009
|
} | undefined;
|
|
1791
2010
|
|
|
1792
2011
|
type PopoverVariant = "normal" | "large";
|
|
1793
|
-
interface Props$
|
|
2012
|
+
interface Props$8 extends Pick<ComponentProps<(typeof Popover$1)["Content"]>, "onOpenAutoFocus" | "onCloseAutoFocus" | "onPointerDownOutside" | "onInteractOutside" | "onFocusOutside" | "side"> {
|
|
1794
2013
|
children: React__default.ReactNode | ((props: {
|
|
1795
2014
|
close: () => void;
|
|
1796
2015
|
}) => React__default.ReactNode);
|
|
@@ -1803,6 +2022,7 @@ interface Props$7 extends Pick<ComponentProps<(typeof PopoverPrimitive)["Content
|
|
|
1803
2022
|
onClickClose?: () => void;
|
|
1804
2023
|
showArrow?: boolean;
|
|
1805
2024
|
className?: string;
|
|
2025
|
+
style?: React__default.CSSProperties;
|
|
1806
2026
|
portalContainer?: HTMLElement | null;
|
|
1807
2027
|
}
|
|
1808
2028
|
declare const popoverStyle: {
|
|
@@ -1810,44 +2030,99 @@ declare const popoverStyle: {
|
|
|
1810
2030
|
large: string;
|
|
1811
2031
|
normal: string;
|
|
1812
2032
|
};
|
|
1813
|
-
declare function Popover({ children, trigger, variant, closable, open, side, sideOffset, showArrow, onOpenChange, onOpenAutoFocus, onCloseAutoFocus, onPointerDownOutside, onInteractOutside, onFocusOutside, onClickClose, className, portalContainer, }: Props$
|
|
2033
|
+
declare function Popover({ children, trigger, variant, closable, open, side, sideOffset, showArrow, onOpenChange, onOpenAutoFocus, onCloseAutoFocus, onPointerDownOutside, onInteractOutside, onFocusOutside, onClickClose, className, portalContainer, style, }: Props$8): React__default.JSX.Element;
|
|
1814
2034
|
|
|
1815
|
-
type
|
|
1816
|
-
declare function Progress({ value,
|
|
2035
|
+
type ColorScheme$3 = "normal" | "warning" | "primary" | "secondary";
|
|
2036
|
+
declare function Progress({ value, colorScheme, color, className, style: styleProp, }: {
|
|
2037
|
+
/** A value between 0 and 100. */
|
|
1817
2038
|
value: number;
|
|
1818
|
-
|
|
2039
|
+
colorScheme?: ColorScheme$3;
|
|
2040
|
+
color?: string;
|
|
1819
2041
|
className?: string;
|
|
2042
|
+
style?: React$1.CSSProperties;
|
|
1820
2043
|
}): React$1.JSX.Element;
|
|
1821
2044
|
|
|
1822
|
-
interface
|
|
1823
|
-
children
|
|
2045
|
+
interface ResizableContainerProps {
|
|
2046
|
+
children: ReactNode | ((children: {
|
|
2047
|
+
width?: number;
|
|
2048
|
+
}) => ReactNode);
|
|
2049
|
+
minWidth: number;
|
|
2050
|
+
maxWidth?: number;
|
|
2051
|
+
style?: React__default.CSSProperties;
|
|
2052
|
+
innerStyle?: React__default.CSSProperties;
|
|
2053
|
+
handleContainerStyle?: React__default.CSSProperties;
|
|
2054
|
+
handleStyle?: React__default.CSSProperties;
|
|
2055
|
+
className?: string;
|
|
2056
|
+
onChangeWidth?: (width: number) => void;
|
|
2057
|
+
shouldResetWidthOnGestureEnd?: boolean;
|
|
1824
2058
|
}
|
|
1825
|
-
declare const
|
|
2059
|
+
declare const ResizableContainer: React__default.FC<ResizableContainerProps>;
|
|
1826
2060
|
|
|
1827
|
-
type
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
2061
|
+
type ColorScheme$2 = "normal" | "warning" | "primary" | "secondary";
|
|
2062
|
+
declare function RingProgress({ value, dividedBy, size, thickness, colorScheme, color, trackColor, className, style, ariaLabel, }: {
|
|
2063
|
+
/** Current value (numerator). */
|
|
2064
|
+
value: number;
|
|
2065
|
+
/** Total value representing 100%. Defaults to 100. */
|
|
2066
|
+
dividedBy?: number;
|
|
2067
|
+
/** Diameter in pixels of the ring (outer size). */
|
|
2068
|
+
size?: number;
|
|
2069
|
+
/** Stroke width of the ring in pixels. */
|
|
2070
|
+
thickness?: number;
|
|
2071
|
+
/** Ring color scheme, aligned with Progress component. */
|
|
2072
|
+
colorScheme?: ColorScheme$2;
|
|
2073
|
+
/** Optional custom color overrides. */
|
|
2074
|
+
color?: string;
|
|
2075
|
+
trackColor?: string;
|
|
2076
|
+
className?: string;
|
|
2077
|
+
style?: React$1.CSSProperties;
|
|
2078
|
+
/** Optional aria-label when no visible label is adjacent. */
|
|
2079
|
+
ariaLabel?: string;
|
|
2080
|
+
}): React$1.JSX.Element;
|
|
2081
|
+
|
|
2082
|
+
declare function ScrollableSidebar({ children }: {
|
|
1831
2083
|
children: React__default.ReactNode;
|
|
2084
|
+
}): React__default.JSX.Element;
|
|
2085
|
+
|
|
2086
|
+
interface Props$7 {
|
|
2087
|
+
children?: React$1.ReactNode | ((scrollElementRef: HTMLDivElement) => React$1.ReactNode);
|
|
2088
|
+
}
|
|
2089
|
+
declare const ScrollArea: React$1.NamedExoticComponent<Props$7>;
|
|
2090
|
+
|
|
2091
|
+
type SectionHeaderProps = {
|
|
2092
|
+
style?: CSSProperties;
|
|
2093
|
+
className?: string;
|
|
1832
2094
|
title?: React__default.ReactNode;
|
|
1833
|
-
onClickTitle?: () => void;
|
|
1834
2095
|
titleTextStyle?: "small" | "heading5" | "heading4" | "heading3";
|
|
2096
|
+
titleClassName?: string;
|
|
2097
|
+
titleIcon?: Exclude<React__default.ReactNode, string> | IconName$1;
|
|
2098
|
+
onClickTitle?: () => void;
|
|
1835
2099
|
right?: React__default.ReactNode;
|
|
2100
|
+
headerSeparator?: "space" | "dot";
|
|
2101
|
+
};
|
|
2102
|
+
declare function SectionHeader$1({ style, className, title, titleIcon, right, headerSeparator, titleTextStyle, titleClassName, onClickTitle, }: SectionHeaderProps): React__default.JSX.Element;
|
|
2103
|
+
type SectionProps = {
|
|
2104
|
+
children: React__default.ReactNode;
|
|
1836
2105
|
hideRightWhenCollapsed?: boolean;
|
|
1837
2106
|
extraPadding?: boolean;
|
|
1838
2107
|
className?: string;
|
|
1839
2108
|
style?: CSSProperties;
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
};
|
|
2109
|
+
headerStyle?: CSSProperties;
|
|
2110
|
+
} & Omit<SectionHeaderProps, "style" | "className">;
|
|
1843
2111
|
type ExpandableSectionProps = {
|
|
1844
2112
|
storageKey: string;
|
|
1845
2113
|
initialVisibility?: "show" | "hide";
|
|
1846
2114
|
};
|
|
1847
|
-
declare const Section$1: React__default.NamedExoticComponent<
|
|
2115
|
+
declare const Section$1: React__default.NamedExoticComponent<{
|
|
2116
|
+
children: React__default.ReactNode;
|
|
2117
|
+
hideRightWhenCollapsed?: boolean;
|
|
2118
|
+
extraPadding?: boolean;
|
|
2119
|
+
className?: string;
|
|
2120
|
+
style?: CSSProperties;
|
|
2121
|
+
headerStyle?: CSSProperties;
|
|
2122
|
+
} & Omit<SectionHeaderProps, "className" | "style"> & Partial<ExpandableSectionProps>>;
|
|
1848
2123
|
|
|
1849
2124
|
type SegmentedControlColorScheme = "primary" | "secondary";
|
|
1850
|
-
type SegmentedControlVariant = "default" | "tabs";
|
|
2125
|
+
type SegmentedControlVariant = "default" | "tabs" | "buttons";
|
|
1851
2126
|
interface SegmentedControlProps<T extends string> {
|
|
1852
2127
|
id?: string;
|
|
1853
2128
|
value?: T;
|
|
@@ -1867,10 +2142,10 @@ type SegmentedControlItemProps<T extends string> = {
|
|
|
1867
2142
|
tooltip?: ReactNode;
|
|
1868
2143
|
variant?: SegmentedControlVariant;
|
|
1869
2144
|
} & Pick<SelectableMenuItem<T>, "value" | "disabled" | "icon" | "role" | "title">;
|
|
1870
|
-
declare const SegmentedControl: <T extends string>(props: SegmentedControlProps<T>) => React__default.ReactElement | null;
|
|
2145
|
+
declare const SegmentedControl: <T extends string>(props: SegmentedControlProps<T>) => React__default.ReactElement<any> | null;
|
|
1871
2146
|
|
|
1872
2147
|
type PopperPrimitiveContentProps = ComponentProps<typeof PopperPrimitive.Content>;
|
|
1873
|
-
type SelectionToolbarContainerProps = Pick<PopperPrimitiveContentProps, "side" | "sideOffset" | "align"> & {
|
|
2148
|
+
type SelectionToolbarContainerProps = Pick<PopperPrimitiveContentProps, "side" | "sideOffset" | "align" | "avoidCollisions"> & {
|
|
1874
2149
|
rect: Rect;
|
|
1875
2150
|
children: React__default.ReactNode;
|
|
1876
2151
|
portalContainer?: HTMLElement | null;
|
|
@@ -1880,7 +2155,7 @@ type SelectionToolbarContainerProps = Pick<PopperPrimitiveContentProps, "side" |
|
|
|
1880
2155
|
};
|
|
1881
2156
|
declare const SelectionToolbarContainer: React__default.NamedExoticComponent<SelectionToolbarContainerProps>;
|
|
1882
2157
|
|
|
1883
|
-
type Props$
|
|
2158
|
+
type Props$6<T extends string> = {
|
|
1884
2159
|
id?: string;
|
|
1885
2160
|
style?: React__default.CSSProperties;
|
|
1886
2161
|
className?: string;
|
|
@@ -1895,10 +2170,10 @@ type Props$5<T extends string> = {
|
|
|
1895
2170
|
onBlur?: FocusEventHandler;
|
|
1896
2171
|
contentStyle?: React__default.CSSProperties;
|
|
1897
2172
|
} & Pick<SelectProps, "open" | "onOpenChange">;
|
|
1898
|
-
declare const SelectMenu: <T extends string = string>(props: Props$
|
|
2173
|
+
declare const SelectMenu: <T extends string = string>(props: Props$6<T>) => React__default.ReactElement<any> | null;
|
|
1899
2174
|
|
|
1900
|
-
type ColorScheme = "primary" | "secondary";
|
|
1901
|
-
interface Props$
|
|
2175
|
+
type ColorScheme$1 = "primary" | "secondary";
|
|
2176
|
+
interface Props$5 {
|
|
1902
2177
|
id?: string;
|
|
1903
2178
|
style?: React__default.CSSProperties;
|
|
1904
2179
|
className?: string;
|
|
@@ -1907,29 +2182,39 @@ interface Props$4 {
|
|
|
1907
2182
|
min: number;
|
|
1908
2183
|
max: number;
|
|
1909
2184
|
step?: number;
|
|
1910
|
-
colorScheme?: ColorScheme;
|
|
2185
|
+
colorScheme?: ColorScheme$1;
|
|
1911
2186
|
label?: React__default.ReactNode;
|
|
1912
2187
|
onFocus?: FocusEventHandler;
|
|
1913
2188
|
onBlur?: FocusEventHandler;
|
|
1914
2189
|
readOnly?: boolean;
|
|
1915
2190
|
}
|
|
1916
|
-
declare const Slider: React__default.NamedExoticComponent<Props$
|
|
2191
|
+
declare const Slider: React__default.NamedExoticComponent<Props$5>;
|
|
1917
2192
|
|
|
1918
2193
|
type SharedDragProviderProps = {
|
|
1919
2194
|
children: React$1.ReactNode;
|
|
2195
|
+
acceptsDrop?: AcceptsDrop;
|
|
1920
2196
|
onMoveItem?: MoveDragItemHandler;
|
|
1921
2197
|
sharedDragProps?: SharedDragProps;
|
|
2198
|
+
itemHitSlop?: Insets;
|
|
1922
2199
|
};
|
|
1923
|
-
declare function SharedDragProvider({ children, onMoveItem, sharedDragProps, }: SharedDragProviderProps): React$1.JSX.Element;
|
|
2200
|
+
declare function SharedDragProvider({ children, acceptsDrop, onMoveItem, sharedDragProps, itemHitSlop, }: SharedDragProviderProps): React$1.JSX.Element;
|
|
1924
2201
|
declare function withDragProvider<T extends object>(Component: React$1.ComponentType<T>): (props: T) => React$1.JSX.Element;
|
|
1925
|
-
declare const getItemFirstCollisionDetection: (registeredLists: Map<string, RegisteredList
|
|
2202
|
+
declare const getItemFirstCollisionDetection: (registeredLists: Map<string, RegisteredList>, itemHitSlop: Insets | undefined) => CollisionDetection;
|
|
1926
2203
|
|
|
1927
2204
|
type UseSortableReturnType = ReturnType<typeof useSortable>;
|
|
1928
2205
|
type ItemChildrenProps<T> = {
|
|
1929
|
-
ref: React$1.
|
|
1930
|
-
relativeDropPosition?: RelativeDropPosition;
|
|
2206
|
+
ref: React$1.RefCallback<T>;
|
|
1931
2207
|
style?: React$1.CSSProperties;
|
|
2208
|
+
onPointerDown?: React$1.PointerEventHandler;
|
|
1932
2209
|
} & UseSortableReturnType["attributes"];
|
|
2210
|
+
type ItemChildrenExtraProps = {
|
|
2211
|
+
isDragging: boolean;
|
|
2212
|
+
isOverlay: boolean;
|
|
2213
|
+
relativeDropPosition: RelativeDropPosition | undefined;
|
|
2214
|
+
setActivatorNodeRef: React$1.RefCallback<HTMLElement>;
|
|
2215
|
+
setDraggableNodeRef: React$1.RefCallback<HTMLElement>;
|
|
2216
|
+
setDroppableNodeRef: React$1.RefCallback<HTMLElement>;
|
|
2217
|
+
};
|
|
1933
2218
|
interface RootProps {
|
|
1934
2219
|
id?: string;
|
|
1935
2220
|
keys: UniqueIdentifier[];
|
|
@@ -1937,25 +2222,27 @@ interface RootProps {
|
|
|
1937
2222
|
children?: React$1.ReactNode;
|
|
1938
2223
|
renderOverlay?: (index: number) => React$1.ReactNode;
|
|
1939
2224
|
onMoveItem?: MoveDragItemHandler;
|
|
2225
|
+
onIsDraggingChange?: (isDragging: boolean) => void;
|
|
1940
2226
|
acceptsFromList?: AcceptsFromList;
|
|
1941
2227
|
acceptsDrop?: DropValidator;
|
|
1942
2228
|
getDropTargetParentIndex?: (index: number) => number | undefined;
|
|
1943
2229
|
sharedDragProps?: SharedDragProps;
|
|
1944
|
-
containerRef?: React$1.RefObject<HTMLElement>;
|
|
2230
|
+
containerRef?: React$1.RefObject<HTMLElement | null>;
|
|
2231
|
+
itemHitSlop?: Insets;
|
|
1945
2232
|
}
|
|
1946
2233
|
declare function SortableItem<TElement extends HTMLElement>({ id, disabled, children, }: {
|
|
1947
2234
|
id: UniqueIdentifier;
|
|
1948
2235
|
disabled?: boolean;
|
|
1949
|
-
children: (props: ItemChildrenProps<TElement>) => React$1.ReactNode;
|
|
2236
|
+
children: (props: ItemChildrenProps<TElement>, extraProps: Omit<ItemChildrenExtraProps, "isOverlay">) => React$1.ReactNode;
|
|
1950
2237
|
}): React$1.ReactNode;
|
|
1951
|
-
declare function SortableRoot_({ id: idProp, keys: keysProp, onMoveItem, renderOverlay, acceptsFromList, acceptsDrop, axis, children, getDropTargetParentIndex, sharedDragProps, containerRef, }: RootProps): React$1.JSX.Element;
|
|
2238
|
+
declare function SortableRoot_({ id: idProp, keys: keysProp, onMoveItem, onIsDraggingChange, renderOverlay, acceptsFromList, acceptsDrop, axis, children, getDropTargetParentIndex, sharedDragProps, containerRef, itemHitSlop, }: RootProps): React$1.JSX.Element;
|
|
1952
2239
|
interface SortableProps<TItem, TElement extends HTMLElement> extends Omit<RootProps, "children" | "keys" | "renderOverlay"> {
|
|
1953
2240
|
items: TItem[];
|
|
1954
2241
|
keyExtractor: (item: TItem) => UniqueIdentifier;
|
|
1955
2242
|
shouldRenderOverlay?: boolean;
|
|
1956
|
-
renderItem: (item: TItem, props: ItemChildrenProps<TElement>,
|
|
2243
|
+
renderItem: (item: TItem, props: ItemChildrenProps<TElement>, extraProps: {
|
|
1957
2244
|
isOverlay: boolean;
|
|
1958
|
-
}) => React$1.ReactNode;
|
|
2245
|
+
} & ItemChildrenExtraProps) => React$1.ReactNode;
|
|
1959
2246
|
}
|
|
1960
2247
|
declare const Sortable: (<TItem, TElement extends HTMLElement>({ items, keyExtractor, shouldRenderOverlay, renderItem, ...rest }: SortableProps<TItem, TElement>) => React$1.JSX.Element) & {
|
|
1961
2248
|
Root: typeof SortableRoot_;
|
|
@@ -1968,15 +2255,32 @@ declare function createSharedDrag(): {
|
|
|
1968
2255
|
props: SharedDragProps;
|
|
1969
2256
|
};
|
|
1970
2257
|
|
|
1971
|
-
interface Props$
|
|
2258
|
+
interface Props$4 {
|
|
1972
2259
|
size?: number | string;
|
|
1973
2260
|
inline?: boolean;
|
|
1974
2261
|
}
|
|
1975
2262
|
declare namespace Spacer {
|
|
1976
|
-
const Vertical: React$1.ForwardRefExoticComponent<Props$
|
|
1977
|
-
const Horizontal: React$1.ForwardRefExoticComponent<Props$
|
|
2263
|
+
const Vertical: React$1.ForwardRefExoticComponent<Props$4 & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2264
|
+
const Horizontal: React$1.ForwardRefExoticComponent<Props$4 & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1978
2265
|
}
|
|
1979
2266
|
|
|
2267
|
+
type ColorScheme = "primary" | "secondary";
|
|
2268
|
+
interface Props$3 {
|
|
2269
|
+
id?: string;
|
|
2270
|
+
style?: React__default.CSSProperties;
|
|
2271
|
+
className?: string;
|
|
2272
|
+
value: number;
|
|
2273
|
+
onValueChange: (value: number) => void;
|
|
2274
|
+
min: number;
|
|
2275
|
+
max: number;
|
|
2276
|
+
step?: number;
|
|
2277
|
+
colorScheme?: ColorScheme;
|
|
2278
|
+
onFocus?: FocusEventHandler;
|
|
2279
|
+
onBlur?: FocusEventHandler;
|
|
2280
|
+
readOnly?: boolean;
|
|
2281
|
+
}
|
|
2282
|
+
declare const Stepper: React__default.NamedExoticComponent<Props$3>;
|
|
2283
|
+
|
|
1980
2284
|
type SwitchColorScheme = "primary" | "secondary";
|
|
1981
2285
|
interface Props$2 {
|
|
1982
2286
|
id?: string;
|
|
@@ -1999,28 +2303,27 @@ type TabsProps<T extends string = string> = {
|
|
|
1999
2303
|
renderContent: ({ value }: {
|
|
2000
2304
|
value: T;
|
|
2001
2305
|
}) => React$1.ReactNode;
|
|
2306
|
+
variant?: "default" | "tabs" | "buttons";
|
|
2002
2307
|
} & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
2003
|
-
declare function Tabs<T extends string = string>({ value, onValueChange, items, renderContent, ...props }: TabsProps<T>): React$1.JSX.Element;
|
|
2308
|
+
declare function Tabs<T extends string = string>({ value, onValueChange, items, renderContent, variant, ...props }: TabsProps<T>): React$1.JSX.Element;
|
|
2004
2309
|
|
|
2005
|
-
declare const useAutoResize: (value: string | undefined) => React__default.
|
|
2006
|
-
declare const TextArea: React__default.
|
|
2310
|
+
declare const useAutoResize: (value: string | undefined) => React__default.RefObject<HTMLTextAreaElement | null>;
|
|
2311
|
+
declare const TextArea: React__default.NamedExoticComponent<{
|
|
2007
2312
|
onChangeText?: (value: string) => void;
|
|
2008
2313
|
value?: string;
|
|
2009
2314
|
autoResize?: boolean;
|
|
2010
|
-
} & React__default.TextareaHTMLAttributes<HTMLTextAreaElement> & React__default.RefAttributes<HTMLTextAreaElement
|
|
2011
|
-
declare const TextAreaRow: React__default.
|
|
2315
|
+
} & React__default.TextareaHTMLAttributes<HTMLTextAreaElement> & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
2316
|
+
declare const TextAreaRow: React__default.NamedExoticComponent<Omit<{
|
|
2012
2317
|
className?: string;
|
|
2013
2318
|
textAreaClassName?: string;
|
|
2014
2319
|
textAreaRef?: React__default.Ref<HTMLTextAreaElement>;
|
|
2015
2320
|
end?: React__default.ReactNode;
|
|
2016
2321
|
endClassName?: string;
|
|
2017
|
-
} &
|
|
2322
|
+
} & {
|
|
2018
2323
|
onChangeText?: (value: string) => void;
|
|
2019
2324
|
value?: string;
|
|
2020
2325
|
autoResize?: boolean;
|
|
2021
|
-
} & React__default.TextareaHTMLAttributes<HTMLTextAreaElement> & React__default.RefAttributes<HTMLTextAreaElement>, "ref"> &
|
|
2022
|
-
ref?: ((instance: HTMLTextAreaElement | null) => void | React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React__default.RefObject<HTMLTextAreaElement> | null | undefined;
|
|
2023
|
-
}, "ref"> & React__default.RefAttributes<HTMLDivElement>>>;
|
|
2326
|
+
} & React__default.TextareaHTMLAttributes<HTMLTextAreaElement> & React__default.RefAttributes<HTMLTextAreaElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2024
2327
|
|
|
2025
2328
|
declare const Toast: ({ title, content, children, ...props }: {
|
|
2026
2329
|
title?: string;
|
|
@@ -2035,7 +2338,7 @@ interface Props$1 {
|
|
|
2035
2338
|
children: React$1.ReactNode;
|
|
2036
2339
|
content: React$1.ReactNode;
|
|
2037
2340
|
sideOffset?: number;
|
|
2038
|
-
side?: ComponentProps<typeof
|
|
2341
|
+
side?: ComponentProps<typeof Tooltip$1.Content>["side"];
|
|
2039
2342
|
portalContainer?: HTMLElement | null;
|
|
2040
2343
|
}
|
|
2041
2344
|
declare const Tooltip: React$1.NamedExoticComponent<Props$1>;
|
|
@@ -2051,21 +2354,12 @@ type TreeRowBaseProps = {
|
|
|
2051
2354
|
};
|
|
2052
2355
|
type TreeViewRowProps<MenuItemType extends string> = ListView.RowProps<MenuItemType> & TreeRowBaseProps;
|
|
2053
2356
|
declare namespace TreeView {
|
|
2054
|
-
const Root: <T
|
|
2055
|
-
|
|
2056
|
-
} | {
|
|
2057
|
-
data: T[];
|
|
2058
|
-
renderItem: (item: T, index: number, info: ListViewItemInfo) => ReactNode;
|
|
2059
|
-
keyExtractor: (item: T, index: number) => string;
|
|
2060
|
-
sortable?: boolean;
|
|
2061
|
-
virtualized?: _noya_app_noya_geometry.Size;
|
|
2062
|
-
}) & ListViewRootProps) & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement | null;
|
|
2063
|
-
const RowTitle: React__default.MemoExoticComponent<({ className, children, ...props }: {
|
|
2357
|
+
const Root: <T>(props: ListViewRootProps<T> & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement<any> | null;
|
|
2358
|
+
const RowTitle: React__default.NamedExoticComponent<{
|
|
2064
2359
|
className?: string;
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
const
|
|
2068
|
-
const Row: <MenuItemType extends string>(props: ListView.RowProps<MenuItemType> & TreeRowBaseProps & React__default.RefAttributes<HTMLLIElement>) => React__default.ReactElement | null;
|
|
2360
|
+
} & React__default.HTMLAttributes<HTMLSpanElement>>;
|
|
2361
|
+
const EditableRowTitle: React__default.NamedExoticComponent<EditableRowTitleProps>;
|
|
2362
|
+
const Row: <MenuItemType extends string>(props: ListView.RowProps<MenuItemType> & TreeRowBaseProps & React__default.RefAttributes<HTMLLIElement>) => React__default.ReactElement<any> | null;
|
|
2069
2363
|
type ClickInfo = ListView.ClickInfo;
|
|
2070
2364
|
type RowProps<MenuItemType extends string> = TreeViewRowProps<MenuItemType>;
|
|
2071
2365
|
}
|
|
@@ -2104,7 +2398,6 @@ interface WorkspaceLayoutProps<LeftTab extends string, RightTab extends string>
|
|
|
2104
2398
|
sideType?: SideType;
|
|
2105
2399
|
sideTypeBreakpoint?: number;
|
|
2106
2400
|
detectSize?: DetectSizeType;
|
|
2107
|
-
onChangeLayoutState?: (layoutState: PanelLayoutState) => void;
|
|
2108
2401
|
}
|
|
2109
2402
|
type WorkspaceLayoutRef = {
|
|
2110
2403
|
setLeftExpanded: (expanded: boolean) => void;
|
|
@@ -2114,6 +2407,7 @@ type WorkspaceLayoutRef = {
|
|
|
2114
2407
|
toggleRight: () => void;
|
|
2115
2408
|
};
|
|
2116
2409
|
type SideOptions = {
|
|
2410
|
+
visible?: boolean;
|
|
2117
2411
|
style?: React__default.CSSProperties;
|
|
2118
2412
|
className?: string;
|
|
2119
2413
|
resizable?: boolean;
|
|
@@ -2125,8 +2419,13 @@ type SideOptions = {
|
|
|
2125
2419
|
minSize?: number | string;
|
|
2126
2420
|
maxSize?: number | string;
|
|
2127
2421
|
defaultCollapsed?: boolean;
|
|
2422
|
+
showTabs?: boolean;
|
|
2128
2423
|
};
|
|
2129
|
-
declare const WorkspaceLayout: <LeftTab extends string = string, RightTab extends string = string>(props: WorkspaceLayoutProps<LeftTab, RightTab> & React__default.RefAttributes<WorkspaceLayoutRef>) => React__default.ReactElement | null;
|
|
2424
|
+
declare const WorkspaceLayout: <LeftTab extends string = string, RightTab extends string = string>(props: WorkspaceLayoutProps<LeftTab, RightTab> & React__default.RefAttributes<WorkspaceLayoutRef>) => React__default.ReactElement<any> | null;
|
|
2425
|
+
|
|
2426
|
+
type LinkComponent = React__default.ComponentType<React__default.ComponentProps<"a">>;
|
|
2427
|
+
declare const LinkComponentProvider: React__default.Provider<LinkComponent | undefined>;
|
|
2428
|
+
declare const useLinkComponent: () => "a" | LinkComponent;
|
|
2130
2429
|
|
|
2131
2430
|
type DesignSystemConfigurationContextValue = {
|
|
2132
2431
|
platform: PlatformName;
|
|
@@ -2134,16 +2433,20 @@ type DesignSystemConfigurationContextValue = {
|
|
|
2134
2433
|
declare const DesignSystemConfigurationProvider: React$1.NamedExoticComponent<{
|
|
2135
2434
|
children: React$1.ReactNode;
|
|
2136
2435
|
platform?: PlatformName;
|
|
2436
|
+
LinkComponent?: LinkComponent;
|
|
2137
2437
|
}>;
|
|
2138
2438
|
declare function useDesignSystemConfiguration(): DesignSystemConfigurationContextValue;
|
|
2139
2439
|
|
|
2140
2440
|
type RenderableProps = {
|
|
2141
2441
|
close: () => void;
|
|
2142
2442
|
};
|
|
2443
|
+
type ClosablePromise<T> = Promise<T> & {
|
|
2444
|
+
close: () => void;
|
|
2445
|
+
};
|
|
2143
2446
|
type DialogContextValue = {
|
|
2144
2447
|
openDialog(options: BaseDialogContents & {
|
|
2145
2448
|
children: ReactNode | ((props: RenderableProps) => ReactNode);
|
|
2146
|
-
}):
|
|
2449
|
+
}): ClosablePromise<void>;
|
|
2147
2450
|
openInputDialog(options: string | (BaseDialogContents & {
|
|
2148
2451
|
placeholder?: string;
|
|
2149
2452
|
initialValue?: string;
|
|
@@ -2175,7 +2478,7 @@ declare function useOpenConfirmationDialog(): (options: string | (BaseDialogCont
|
|
|
2175
2478
|
})) => Promise<boolean>;
|
|
2176
2479
|
declare function useOpenDialog(): (options: BaseDialogContents & {
|
|
2177
2480
|
children: ReactNode | ((props: RenderableProps) => ReactNode);
|
|
2178
|
-
}) =>
|
|
2481
|
+
}) => ClosablePromise<void>;
|
|
2179
2482
|
|
|
2180
2483
|
type FloatingWindowContextValue = {
|
|
2181
2484
|
createWindow: (element: React__default.ReactNode) => string;
|
|
@@ -2244,9 +2547,9 @@ declare function getClosestPortalScope(element: EventTarget): string | undefined
|
|
|
2244
2547
|
|
|
2245
2548
|
interface HoverEvent {
|
|
2246
2549
|
/** The type of hover event being fired. */
|
|
2247
|
-
type:
|
|
2550
|
+
type: "hoverstart" | "hoverend";
|
|
2248
2551
|
/** The pointer type that triggered the hover event. */
|
|
2249
|
-
pointerType:
|
|
2552
|
+
pointerType: "mouse" | "pen";
|
|
2250
2553
|
/** The target element of the hover event. */
|
|
2251
2554
|
target: HTMLElement;
|
|
2252
2555
|
}
|
|
@@ -2273,22 +2576,14 @@ interface HoverResult {
|
|
|
2273
2576
|
*/
|
|
2274
2577
|
declare function useHover(props?: HoverProps): HoverResult;
|
|
2275
2578
|
|
|
2276
|
-
declare const IndentContext: React__default.Context<
|
|
2277
|
-
indentLevel: number;
|
|
2278
|
-
}>;
|
|
2579
|
+
declare const IndentContext: React__default.Context<number>;
|
|
2279
2580
|
declare const useIndent: () => number;
|
|
2280
2581
|
|
|
2281
2582
|
declare function usePlatform(): _noya_app_noya_keymap.PlatformName;
|
|
2282
2583
|
/**
|
|
2283
2584
|
* Either ctrl or meta, depending on the platform
|
|
2284
2585
|
*/
|
|
2285
|
-
declare function usePlatformModKey():
|
|
2286
|
-
|
|
2287
|
-
declare const EDITOR_PANEL_GROUP_ID = "editor-panel-group";
|
|
2288
|
-
declare const LEFT_SIDEBAR_ID = "editor-left-sidebar";
|
|
2289
|
-
declare const RIGHT_SIDEBAR_ID = "editor-right-sidebar";
|
|
2290
|
-
declare const CONTENT_AREA_ID = "editor-content-area";
|
|
2291
|
-
declare function usePreservePanelSize(panelGroupRef: React__default.RefObject<ImperativePanelGroupHandle | null>, setPanelLayoutState?: (state: PanelLayoutState) => void): void;
|
|
2586
|
+
declare function usePlatformModKey(): "ctrlKey" | "metaKey";
|
|
2292
2587
|
|
|
2293
2588
|
/** @default light */
|
|
2294
2589
|
type UseThemeReturnType = "dark" | "light";
|
|
@@ -2298,32 +2593,19 @@ type UseThemeReturnType = "dark" | "light";
|
|
|
2298
2593
|
*/
|
|
2299
2594
|
declare function useTheme(): UseThemeReturnType;
|
|
2300
2595
|
|
|
2301
|
-
declare const size: {
|
|
2302
|
-
medium: string;
|
|
2303
|
-
large: string;
|
|
2304
|
-
xlarge: string;
|
|
2305
|
-
xxlarge: string;
|
|
2306
|
-
};
|
|
2307
|
-
declare const mediaQuery: {
|
|
2308
|
-
small: string;
|
|
2309
|
-
medium: string;
|
|
2310
|
-
large: string;
|
|
2311
|
-
xlarge: string;
|
|
2312
|
-
};
|
|
2313
|
-
|
|
2314
2596
|
type ClassNameItem = string | number | BigInt | boolean | null | undefined;
|
|
2315
|
-
type Category = "text" | "color" | "font" | "flex" | "position";
|
|
2597
|
+
type Category = "text" | "color" | "font" | "flex" | "position" | "textAlign" | "rounded";
|
|
2316
2598
|
type Options = {
|
|
2317
2599
|
categories?: Category[];
|
|
2318
2600
|
};
|
|
2319
|
-
declare function cx(...args: ClassNameItem[]): string;
|
|
2601
|
+
declare function cx(...args: ClassNameItem[]): string | undefined;
|
|
2320
2602
|
declare function mergeConflictingClassNames(classNames: ClassNameItem | ClassNameItem[], options?: Options): string;
|
|
2321
2603
|
|
|
2322
2604
|
type Optional<T> = T | false | null | undefined;
|
|
2323
2605
|
type MenuConfig<T extends string> = Optional<Optional<MenuItem<T>>[]>[];
|
|
2324
2606
|
declare function createSectionedMenu<T extends string>(...sections: MenuConfig<T>): MenuItem<T>[];
|
|
2325
2607
|
|
|
2326
|
-
declare function
|
|
2608
|
+
declare function formatByteSize(size: number): string;
|
|
2327
2609
|
|
|
2328
2610
|
declare const colorForStringValues: Record<string, string>;
|
|
2329
2611
|
/**
|
|
@@ -2374,7 +2656,7 @@ declare function getNextIndex<T>({ items, currentIndex, direction, isDisabled, }
|
|
|
2374
2656
|
}): number;
|
|
2375
2657
|
declare function useComboboxState<T extends string>(state: ComboboxState<T>): ComboboxStateSnapshot<T>;
|
|
2376
2658
|
|
|
2377
|
-
declare const editableBlockStyles: (viewType?: "editable" | "readOnly" | "preview") => string;
|
|
2659
|
+
declare const editableBlockStyles: (viewType?: "editable" | "readOnly" | "preview") => string | undefined;
|
|
2378
2660
|
|
|
2379
2661
|
type MoveOptions = {
|
|
2380
2662
|
paths: number[][];
|
|
@@ -2413,10 +2695,16 @@ declare function updateSelection(allIds: string[], selectedIds: string[], clicke
|
|
|
2413
2695
|
ctrlKey?: boolean;
|
|
2414
2696
|
}): string[];
|
|
2415
2697
|
|
|
2416
|
-
declare
|
|
2417
|
-
declare
|
|
2418
|
-
|
|
2419
|
-
|
|
2698
|
+
declare const SUPPORTED_IMAGE_UPLOAD_TYPES: ("image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/pdf")[];
|
|
2699
|
+
declare const SUPPORTED_CANVAS_UPLOAD_TYPES: ("" | "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/pdf")[];
|
|
2700
|
+
type SupportedImageUploadType = (typeof SUPPORTED_IMAGE_UPLOAD_TYPES)[number];
|
|
2701
|
+
type SupportedCanvasUploadType = (typeof SUPPORTED_CANVAS_UPLOAD_TYPES)[number];
|
|
2702
|
+
type SketchPattern = {
|
|
2703
|
+
_class: 'pattern';
|
|
2704
|
+
image?: Sketch.FileRef | Sketch.DataRef;
|
|
2705
|
+
patternFillType: Sketch.PatternFillType;
|
|
2706
|
+
patternTileScale: number;
|
|
2707
|
+
};
|
|
2420
2708
|
|
|
2421
2709
|
interface SeparatorOptions {
|
|
2422
2710
|
traverseFragments?: boolean;
|
|
@@ -2484,13 +2772,26 @@ interface BaseToolbarProps {
|
|
|
2484
2772
|
right?: React__default.ReactNode;
|
|
2485
2773
|
logo?: React__default.ReactNode;
|
|
2486
2774
|
showDivider?: boolean;
|
|
2775
|
+
className?: string;
|
|
2776
|
+
innerClassName?: string;
|
|
2777
|
+
enableAbsoluteBreakpoint?: boolean;
|
|
2487
2778
|
}
|
|
2488
|
-
declare function
|
|
2779
|
+
declare function BaseToolbarContainer({ children, showDivider, className, innerClassName, enableAbsoluteBreakpoint, }: {
|
|
2780
|
+
children: React__default.ReactNode;
|
|
2781
|
+
showDivider?: boolean;
|
|
2782
|
+
className?: string;
|
|
2783
|
+
innerClassName?: string;
|
|
2784
|
+
enableAbsoluteBreakpoint?: boolean;
|
|
2785
|
+
}): React__default.JSX.Element;
|
|
2786
|
+
declare function BaseToolbar({ children, left, right, logo, showDivider, className, innerClassName, enableAbsoluteBreakpoint, }: BaseToolbarProps): React__default.JSX.Element;
|
|
2489
2787
|
|
|
2788
|
+
declare const ToolbarMenuContext: React__default.Context<{
|
|
2789
|
+
dividerOverflow?: number;
|
|
2790
|
+
}>;
|
|
2490
2791
|
declare const ToolbarMenuDropdown: <T extends string>(props: {
|
|
2491
2792
|
item: SubMenuItem<T>;
|
|
2492
2793
|
onSelectMenuItem?: (value: T) => void;
|
|
2493
|
-
}) => React__default.ReactElement | null;
|
|
2794
|
+
}) => React__default.ReactElement<any> | null;
|
|
2494
2795
|
declare const ToolbarShortcut: ({ shortcut, label, }: {
|
|
2495
2796
|
shortcut: string;
|
|
2496
2797
|
label?: ReactNode;
|
|
@@ -2498,14 +2799,15 @@ declare const ToolbarShortcut: ({ shortcut, label, }: {
|
|
|
2498
2799
|
declare const ToolbarMenuPopover: (props: {
|
|
2499
2800
|
item: PopoverMenuItem;
|
|
2500
2801
|
portalContainer?: HTMLElement | null;
|
|
2501
|
-
}) => React__default.ReactElement | null;
|
|
2802
|
+
}) => React__default.ReactElement<any> | null;
|
|
2502
2803
|
declare const ToolbarMenuButton: <T extends string>(props: {
|
|
2503
2804
|
item: SelectableMenuItem<T>;
|
|
2504
2805
|
onSelectMenuItem?: (value: T) => void;
|
|
2505
2806
|
as?: ComponentProps<typeof Button>["as"];
|
|
2506
2807
|
activeValue?: T;
|
|
2507
2808
|
tooltipSide?: ComponentProps<typeof Tooltip>["side"];
|
|
2508
|
-
|
|
2809
|
+
displayFilter?: DisplayFilter;
|
|
2810
|
+
}) => React__default.ReactElement<any> | null;
|
|
2509
2811
|
declare const ToolbarMenuItem: <T extends string>(props: {
|
|
2510
2812
|
item: MenuItem<T>;
|
|
2511
2813
|
onSelectMenuItem?: (value: T) => void;
|
|
@@ -2513,7 +2815,10 @@ declare const ToolbarMenuItem: <T extends string>(props: {
|
|
|
2513
2815
|
activeValue?: T;
|
|
2514
2816
|
tooltipSide?: ComponentProps<typeof Tooltip>["side"];
|
|
2515
2817
|
portalContainer?: HTMLElement | null;
|
|
2516
|
-
|
|
2818
|
+
displayFilter?: DisplayFilter;
|
|
2819
|
+
dividerOverflow?: number;
|
|
2820
|
+
}) => React__default.ReactElement<any> | null;
|
|
2821
|
+
type DisplayFilter = "iconOnly" | "iconAndText" | "textOnly";
|
|
2517
2822
|
declare const ToolbarMenu: <T extends string>(props: {
|
|
2518
2823
|
items: MenuItem<T>[];
|
|
2519
2824
|
onSelectMenuItem?: (value: T) => void;
|
|
@@ -2521,7 +2826,9 @@ declare const ToolbarMenu: <T extends string>(props: {
|
|
|
2521
2826
|
activeValue?: T;
|
|
2522
2827
|
tooltipSide?: ComponentProps<typeof Tooltip>["side"];
|
|
2523
2828
|
portalContainer?: HTMLElement | null;
|
|
2524
|
-
|
|
2829
|
+
displayFilter?: DisplayFilter;
|
|
2830
|
+
dividerOverflow?: number;
|
|
2831
|
+
}) => React__default.ReactElement<any> | null;
|
|
2525
2832
|
interface ToolbarProps<T extends string = string> {
|
|
2526
2833
|
children?: React__default.ReactNode;
|
|
2527
2834
|
logo?: React__default.ReactNode;
|
|
@@ -2530,7 +2837,15 @@ interface ToolbarProps<T extends string = string> {
|
|
|
2530
2837
|
onSelectMenuItem?: (value: T) => void;
|
|
2531
2838
|
/** Whether to bind keyboard shortcuts for menu items. @default true */
|
|
2532
2839
|
shouldBindKeyboardShortcuts?: boolean;
|
|
2840
|
+
dividerOverflow?: number;
|
|
2533
2841
|
}
|
|
2534
|
-
declare function Toolbar<T extends string = string>({ children, logo, leftMenuItems, rightMenuItems, onSelectMenuItem, shouldBindKeyboardShortcuts, }: ToolbarProps<T>): React__default.JSX.Element;
|
|
2842
|
+
declare function Toolbar<T extends string = string>({ children, logo, leftMenuItems, rightMenuItems, onSelectMenuItem, shouldBindKeyboardShortcuts, dividerOverflow, }: ToolbarProps<T>): React__default.JSX.Element;
|
|
2843
|
+
|
|
2844
|
+
type ToolbarDrawerProps = {
|
|
2845
|
+
children: ReactNode;
|
|
2846
|
+
trigger: ReactNode;
|
|
2847
|
+
sideOffset?: number;
|
|
2848
|
+
};
|
|
2849
|
+
declare const ToolbarDrawer: React__default.NamedExoticComponent<ToolbarDrawerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2535
2850
|
|
|
2536
|
-
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 ButtonProps, CHECKBOX_INDENT_WIDTH, CHECKBOX_RIGHT_INSET, CHECKBOX_WIDTH,
|
|
2851
|
+
export { AIAssistantInput, AIAssistantLayout, AIAssistantLoadingIndicator, type AcceptsDrop, type AcceptsDropOptions, type AcceptsFromList, ActionMenu, type ActivityIconSemanticColor, ActivityIndicator, ActivityLog, type ActivityLogItem, AnimatePresence, type AnimatePresenceChildState, type AnimatePresenceProps, Avatar, type AvatarProps, AvatarStack, Banner, type BannerProps, type BaseComboboxProps, BaseToolbar, BaseToolbarContainer, type BaseToolbarProps, Body, BreadcrumbSlash, BreadcrumbText, Button, type ButtonProps, CHECKBOX_INDENT_WIDTH, CHECKBOX_RIGHT_INSET, CHECKBOX_WIDTH, 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 DragItem, type DragState, DraggableMenuButton, Drawer, type DrawerProps, type DropValidator, DropdownMenu, type DropdownRootProps, EditableText, type EditableTextRef, ExtraSmall, type ExtractMenuItemType, Fade, type FadeDirection, type FadeProps, FileExplorerCollection, FileExplorerDetail, FileExplorerEmptyState, FileExplorerLayout, FileExplorerUploadButton, FileUploadIndicator, FileUploadList, FloatingWindow, FloatingWindowProvider, FullscreenDialog, type GlobalInputBlurContextValue, GlobalInputBlurProvider, 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, Icon, IconButton, type IconName, type IconProp, ImageBlockComponent, type ImageDataContextValue, ImageDataProvider, IndentContext, InputField, type InputFieldInputProps, type InputFieldProps, type InputFieldSize, InspectorContainer, InspectorPrimitives, Italic, type ItemChildrenExtraProps, type ItemChildrenProps, KeyboardShortcut, Label, LabelContext, type LabelProps, type LabelType, LabelTypeContext, type LabelTypeContextValue, LabelWidthContext, type LabelWidthContextValue, LabeledElementView, LabeledField, type LayoutProps, type LinkComponent, LinkComponentProvider, List, ListMenu, type ListMenuProps, ListNavigator, type ListNavigatorProps, ListView, Logo, type MatchRange, MediaThumbnail, type MediaThumbnailProps, type MenuComponents, type MenuConfig, type MenuItem, type MenuItemIcon, type MenuItemProps, type MenuItemRole, type MenuProps, MenuViewport, Message, type MessageProps, type MoveDragItemHandler, type MoveDragItemParameters, type MoveTreeItemOptions, Navigator, type NavigatorHeaderProps, type NavigatorNavigation, type NavigatorParams, type NavigatorProps, type NavigatorPushFunction, type NavigatorRenderContext, type NavigatorRenderHeader, type NavigatorReplaceFunction, type NavigatorRoute, type NavigatorRoutesConfig, type NavigatorScreenProps, type NavigatorStackEntry, type NonSelectableMenuItem, type OpenPortalControlsContextValue, type OpenPortalsContextValue, OpenPortalsProvider, type OptionModeOnlyProps, type OptionModeProps, type Optional, type PanelLayoutState, type PercentageSidebarOptions, PipelineResultLayout, PipelineResultLink, Popover, type PopoverMenuItem, type PortalScopeContextValue, PortalScopeProvider, Progress, type RelativeDropPosition, type RenderPanel, type RenderThumbnailIconProps, ResizableContainer, RingProgress, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, type ScoredMenuItem, ScrollArea, ScrollableSidebar, SearchCompletionMenu, Section$1 as Section, SectionHeader$1 as SectionHeader, SectionHeaderMenuItem, type SectionProps, SegmentedControl, type SegmentedControlItemProps, type SegmentedControlProps, SelectMenu, type SelectableMenuItem, SelectionToolbarContainer, type SeparatorItem, type SetNumberMode, SharedDragProvider, type SharedDragProviderProps, type SideOptions, type SideType, type SidebarRef, type SketchPattern, Slider, Small, Sortable, SortableItemContext, type SortableItemContextProps, type SortableProps, Spacer, type StackItem, StackNavigator, type StackNavigatorHeaderProps, type StackNavigatorProps, type StackNavigatorRenderHeader, Stepper, type StringModeOnlyProps, type StringModeProps, type SubMenuItem, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Tabs, type TabsProps, Text$1 as Text, TextArea, TextAreaRow, type TextProps, type Theme, type ThemeColor, Toast, ToastProvider, type TokenValue, Toolbar, ToolbarDrawer, ToolbarMenu, ToolbarMenuButton, ToolbarMenuContext, ToolbarMenuDropdown, ToolbarMenuItem, ToolbarMenuPopover, type ToolbarProps, ToolbarShortcut, Tooltip, TreeView, type UseThemeReturnType, UserAvatar, UserPointer, type UserPointerProps, type ValidateDropIndicatorParams, WorkspaceLayout, type WorkspaceLayoutGroup, type WorkspaceLayoutProps, type WorkspaceLayoutRef, type WorkspaceLayoutState, acceptsDrop, colorForStringValues, colorFromString, colorSwatchSizeMap, createDragItemKey, createNavigator, createSectionedMenu, createSharedDrag, cssVarNames, cssVars, cx, decodeImageSrc, defaultAcceptsDrop, dragItemKeySeparator, editableBlockStyles, filterWithGroupedSections, formatByteSize, fuzzyFilter, fuzzyScore, fuzzyTokenize, getClosestPortalScope, getFieldSpacing, getGridSize, getItemFirstCollisionDetection, getKeyboardShortcutsForMenuItems, getMenuItemKey, getNewValue, getNextIndex, getPipelineResultLink, getThumbnailColors, isMenuItemSectionHeader, isNonSelectableMenuItem, isPopoverMenuItem, isSelectableMenuItem, isSelectableMenuItemWithScore, isSubMenuItem, labeledFieldStyles, mergeConflictingClassNames, moveTreeItem, normalizeListTargetIndex, parseDragItemKey, popoverStyle, portalScopeDataSetName, portalScopePropName, portalScopeProps, renderIcon, separator, styles, textStyles, updateSelection, useAutoResize, useComboboxState, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDialogContainsElement, useDialogContext, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHasOpenPortals, useHover, useImageData, useIndent, useInputFieldContext, useLabel, useLabelType, useLabelWidth, useLinkComponent, useNavigator, useNavigatorRoute, useOpenConfirmationDialog, useOpenDialog, useOpenInputDialog, useOpenPortalsControls, usePlatform, usePlatformModKey, usePortalScopeId, useTheme, validateDropIndicator, withDragProvider, withSeparatorElements };
|