@noya-app/noya-designsystem 0.1.64 → 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 +12 -0
- package/dist/index.css +1 -1
- package/dist/index.d.mts +501 -228
- package/dist/index.d.ts +501 -228
- package/dist/index.js +6738 -2571
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6697 -2499
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/components/ActivityIndicator.tsx +9 -4
- package/src/components/ActivityLog.tsx +197 -0
- package/src/components/AnimatePresence.tsx +37 -22
- package/src/components/Avatar.tsx +42 -25
- package/src/components/Banner.tsx +57 -11
- package/src/components/BaseToolbar.tsx +29 -7
- package/src/components/Breadcrumbs.tsx +2 -2
- package/src/components/Button.tsx +23 -24
- package/src/components/Checkbox.tsx +6 -35
- package/src/components/Chip.tsx +45 -33
- package/src/components/Collection.tsx +16 -11
- package/src/components/ColorSwatch.tsx +3 -3
- package/src/components/ColorSwatchControl.tsx +2 -2
- package/src/components/Combobox.tsx +6 -6
- package/src/components/ComboboxMenu.tsx +6 -5
- package/src/components/CommandPalette.tsx +1 -1
- package/src/components/Dialog.tsx +6 -12
- package/src/components/Divider.tsx +8 -8
- package/src/components/DraggableMenuButton.tsx +9 -5
- package/src/components/Drawer.tsx +5 -5
- package/src/components/DropdownMenu.tsx +1 -1
- package/src/components/EditableText.tsx +2 -2
- package/src/components/Fade.tsx +13 -13
- package/src/components/FileUploadIndicator.tsx +11 -11
- package/src/components/FloatingWindow.tsx +2 -2
- package/src/components/Grid.tsx +18 -11
- package/src/components/GridView.tsx +32 -25
- package/src/components/IVirtualizedList.tsx +5 -0
- package/src/components/Icons.tsx +24 -4
- package/src/components/InputField.tsx +19 -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 +3 -3
- package/src/components/LabeledField.tsx +6 -6
- package/src/components/List.tsx +103 -45
- package/src/components/ListMenu.tsx +91 -0
- package/src/components/ListNavigator.tsx +106 -0
- package/src/components/ListView.tsx +20 -1158
- package/src/components/MediaThumbnail.tsx +56 -15
- package/src/components/Message.tsx +5 -5
- package/src/components/Navigator.tsx +461 -0
- package/src/components/NoyaLogo.tsx +1 -1
- package/src/components/Popover.tsx +9 -5
- package/src/components/Progress.tsx +19 -9
- package/src/components/ResizableContainer.tsx +187 -0
- package/src/components/RingProgress.tsx +128 -0
- package/src/components/ScrollArea.tsx +4 -4
- package/src/components/ScrollableSidebar.tsx +10 -0
- package/src/components/SearchCompletionMenu.tsx +3 -3
- package/src/components/Section.tsx +107 -57
- package/src/components/SegmentedControl.tsx +29 -29
- package/src/components/SelectMenu.tsx +13 -20
- package/src/components/SelectionToolbar.tsx +4 -3
- package/src/components/Slider.tsx +9 -9
- 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 +4 -4
- package/src/components/Tabs.tsx +3 -3
- package/src/components/Text.tsx +23 -13
- package/src/components/TextArea.tsx +3 -3
- package/src/components/Toast.tsx +4 -4
- package/src/components/Toolbar.tsx +50 -9
- package/src/components/ToolbarDrawer.tsx +2 -2
- package/src/components/Tooltip.tsx +1 -1
- package/src/components/TreeView.tsx +11 -4
- package/src/components/UserPointer.tsx +4 -4
- package/src/components/ai-assistant/AIAssistantLayout.tsx +8 -8
- package/src/components/blocks/ImageBlockComponent.tsx +13 -7
- package/src/components/connected-users-menu/ConnectedUsersMenuLayout.tsx +4 -4
- package/src/components/file-explorer/FileExplorerLayout.tsx +20 -8
- package/src/components/internal/Checkmark.tsx +1 -1
- package/src/components/internal/Menu.tsx +22 -18
- package/src/components/internal/MenuViewport.tsx +13 -6
- package/src/components/internal/SelectItem.tsx +3 -3
- package/src/components/internal/TextInput.tsx +5 -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 +2 -1
- package/src/components/sorting/SharedDragProvider.tsx +91 -9
- package/src/components/sorting/Sortable.tsx +71 -17
- package/src/components/workspace/DrawerWorkspaceLayout.tsx +5 -5
- package/src/components/workspace/PanelWorkspaceLayout.tsx +65 -49
- package/src/components/workspace/VerticalTabMenu.tsx +25 -15
- package/src/components/workspace/WorkspaceLayout.tsx +30 -21
- package/src/contexts/DialogContext.tsx +17 -5
- package/src/hooks/useIndent.ts +3 -8
- package/src/index.css +24 -10
- package/src/index.tsx +10 -5
- package/src/utils/classNames.ts +52 -6
- package/src/utils/editableBlockStyles.ts +2 -2
- package/src/utils/formatByteSize.ts +1 -0
- package/src/utils/inputs.ts +8 -6
- package/src/utils/sketchColor.ts +0 -34
- package/tailwind.config.ts +1 -0
- package/src/components/FillInputField.tsx +0 -37
- package/src/components/FillPreviewBackground.tsx +0 -134
- package/src/components/GradientPicker.tsx +0 -90
- package/src/utils/getGradientBackground.tsx +0 -31
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +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 { Point as Point$1, Size, Rect } from '@noya-app/noya-geometry';
|
|
8
|
+
import { Point as Point$1, Insets, Size, Rect } from '@noya-app/noya-geometry';
|
|
9
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';
|
|
12
|
+
import { SectionProps as SectionProps$1, BannerProps as BannerProps$1, IconName as IconName$1 } from '@noya-app/noya-designsystem';
|
|
13
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';
|
|
14
|
-
import { Sketch } from '@noya-app/noya-file-format';
|
|
15
14
|
import * as _noya_app_noya_keymap from '@noya-app/noya-keymap';
|
|
16
15
|
import { KeyModifiers, PlatformName } from '@noya-app/noya-keymap';
|
|
17
16
|
import { MultiplayerUser } from '@noya-app/noya-multiplayer-react';
|
|
18
17
|
import * as PopperPrimitive from '@radix-ui/react-popper';
|
|
19
18
|
import { SelectProps } from '@radix-ui/react-select';
|
|
20
19
|
import { useSortable } from '@dnd-kit/sortable';
|
|
21
|
-
import {
|
|
20
|
+
import { Sketch } from '@noya-app/noya-file-format';
|
|
22
21
|
|
|
23
22
|
declare function fuzzyScore({ item, query }: {
|
|
24
23
|
item: string;
|
|
@@ -50,7 +49,11 @@ declare function fuzzyTokenize({ item, itemScore, }: {
|
|
|
50
49
|
|
|
51
50
|
type IconName = keyof typeof Icons;
|
|
52
51
|
|
|
53
|
-
|
|
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;
|
|
54
57
|
|
|
55
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";
|
|
56
59
|
type SeparatorItem = {
|
|
@@ -67,13 +70,6 @@ type BaseMenuItem = {
|
|
|
67
70
|
alwaysInclude?: boolean;
|
|
68
71
|
title: NonNullable<ReactNode>;
|
|
69
72
|
};
|
|
70
|
-
type SectionHeaderMenuItem = {
|
|
71
|
-
type: "sectionHeader";
|
|
72
|
-
id: string;
|
|
73
|
-
title: ReactNode;
|
|
74
|
-
maxVisibleItems?: number;
|
|
75
|
-
variant?: "normal" | "label";
|
|
76
|
-
};
|
|
77
73
|
type SelectableMenuItem<T extends string> = BaseMenuItem & {
|
|
78
74
|
type?: undefined;
|
|
79
75
|
shortcut?: string;
|
|
@@ -104,6 +100,7 @@ type ExtractMenuItemType<T> = T extends SelectableMenuItem<infer U> ? U : never;
|
|
|
104
100
|
declare const isSelectableMenuItem: <T extends string>(item: MenuItem<T>) => item is SelectableMenuItem<T>;
|
|
105
101
|
declare const isNonSelectableMenuItem: <T extends string>(item: MenuItem<T>) => item is NonSelectableMenuItem<T>;
|
|
106
102
|
declare const isMenuItemSectionHeader: (item: MenuItem<string>) => item is SectionHeaderMenuItem;
|
|
103
|
+
declare const isSubMenuItem: <T extends string>(item: MenuItem<T>) => item is SubMenuItem<T>;
|
|
107
104
|
declare const isSelectableMenuItemWithScore: (item: MenuItem<string>) => item is ScoredSelectableMenuItem<string>;
|
|
108
105
|
declare const isPopoverMenuItem: (item: MenuItem<string>) => item is PopoverMenuItem;
|
|
109
106
|
declare const getMenuItemKey: <T extends string>(item: MenuItem<T>, index: number) => string;
|
|
@@ -129,7 +126,14 @@ declare function getKeyboardShortcutsForMenuItems<T extends string>(menuItems: M
|
|
|
129
126
|
declare const KeyboardShortcut: React__default.NamedExoticComponent<{
|
|
130
127
|
shortcut: string;
|
|
131
128
|
}>;
|
|
132
|
-
|
|
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"> & {
|
|
133
137
|
isFirst?: boolean;
|
|
134
138
|
indented?: boolean;
|
|
135
139
|
}>;
|
|
@@ -147,14 +151,42 @@ type ActionMenuProps<TMenu extends string> = {
|
|
|
147
151
|
};
|
|
148
152
|
declare const ActionMenu: <TMenu extends string>(props: ActionMenuProps<TMenu>) => React__default.ReactElement<any> | null;
|
|
149
153
|
|
|
150
|
-
interface Props$
|
|
154
|
+
interface Props$d {
|
|
151
155
|
size?: number;
|
|
152
156
|
opacity?: number;
|
|
153
157
|
color?: string;
|
|
154
158
|
trackColor?: string;
|
|
155
159
|
className?: string;
|
|
160
|
+
style?: React$1.CSSProperties;
|
|
156
161
|
}
|
|
157
|
-
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;
|
|
158
190
|
|
|
159
191
|
declare const AIAssistantLoadingIndicator: () => React__default.JSX.Element;
|
|
160
192
|
type AIAssistantInputProps = {
|
|
@@ -175,6 +207,7 @@ type AIAssistantLayoutProps = {
|
|
|
175
207
|
};
|
|
176
208
|
declare const AIAssistantLayout: React__default.ForwardRefExoticComponent<AIAssistantLayoutProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
177
209
|
|
|
210
|
+
type AnimatePresenceChildState = "entering" | "entered" | "exiting" | "exited";
|
|
178
211
|
type AnimatePresenceProps = {
|
|
179
212
|
children: React__default.ReactNode;
|
|
180
213
|
/**
|
|
@@ -199,8 +232,9 @@ type AnimatePresenceProps = {
|
|
|
199
232
|
*/
|
|
200
233
|
mode?: "wait" | "crossfade";
|
|
201
234
|
className?: string;
|
|
235
|
+
onChildStateChange?: (key: string, state: AnimatePresenceChildState) => void;
|
|
202
236
|
};
|
|
203
|
-
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;
|
|
204
238
|
|
|
205
239
|
type AvatarProps = {
|
|
206
240
|
image?: string;
|
|
@@ -214,7 +248,7 @@ type AvatarProps = {
|
|
|
214
248
|
/** colors are generated from the fallback string or title, but you can override it here */
|
|
215
249
|
backgroundColor?: string;
|
|
216
250
|
/** @default normal */
|
|
217
|
-
variant?: "normal" | "bare";
|
|
251
|
+
variant?: "normal" | "bare" | "borderless";
|
|
218
252
|
disabled?: boolean;
|
|
219
253
|
/** Intended to be used in place of a fallback monogram, like an icon */
|
|
220
254
|
children?: React__default.ReactNode;
|
|
@@ -227,14 +261,19 @@ declare const AvatarStack: React__default.NamedExoticComponent<{
|
|
|
227
261
|
max?: number;
|
|
228
262
|
children: React__default.ReactNode;
|
|
229
263
|
className?: string;
|
|
264
|
+
overlapAmount?: number;
|
|
230
265
|
}>;
|
|
231
266
|
|
|
267
|
+
type BannerVariant = "muted" | "info" | "error";
|
|
232
268
|
type BannerProps = {
|
|
233
|
-
|
|
269
|
+
children?: ReactNode;
|
|
234
270
|
className?: string;
|
|
235
271
|
style?: CSSProperties;
|
|
272
|
+
variant?: BannerVariant;
|
|
273
|
+
labelStyle?: CSSProperties;
|
|
274
|
+
labelClassName?: string;
|
|
236
275
|
};
|
|
237
|
-
declare function Banner({ label, className, style }: BannerProps): React__default.JSX.Element;
|
|
276
|
+
declare function Banner({ children: label, className, style, variant, labelStyle, labelClassName: labelClassNameProp, }: BannerProps): React__default.JSX.Element;
|
|
238
277
|
|
|
239
278
|
type ImageState = "loading" | "error" | "loaded";
|
|
240
279
|
declare function decodeImageSrc(src?: string): string | undefined;
|
|
@@ -267,6 +306,19 @@ declare const cssVars: {
|
|
|
267
306
|
primary: string;
|
|
268
307
|
primaryLight: string;
|
|
269
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;
|
|
270
322
|
secondary: string;
|
|
271
323
|
secondaryLight: string;
|
|
272
324
|
secondaryPastel: string;
|
|
@@ -311,6 +363,12 @@ declare const cssVars: {
|
|
|
311
363
|
activeBackground: string;
|
|
312
364
|
thumbnailBackground: string;
|
|
313
365
|
thumbnailShadow: string;
|
|
366
|
+
bannerInfoBackground: string;
|
|
367
|
+
bannerInfoBorder: string;
|
|
368
|
+
bannerInfoText: string;
|
|
369
|
+
bannerErrorBackground: string;
|
|
370
|
+
bannerErrorBorder: string;
|
|
371
|
+
bannerErrorText: string;
|
|
314
372
|
inlineCodeText: string;
|
|
315
373
|
inlineCodeBackground: string;
|
|
316
374
|
textLink: string;
|
|
@@ -388,6 +446,9 @@ declare const cssVars: {
|
|
|
388
446
|
small: [string, {
|
|
389
447
|
lineHeight: string;
|
|
390
448
|
}];
|
|
449
|
+
xs: [string, {
|
|
450
|
+
lineHeight: string;
|
|
451
|
+
}];
|
|
391
452
|
code: [string, {
|
|
392
453
|
lineHeight: string;
|
|
393
454
|
}];
|
|
@@ -473,6 +534,19 @@ declare const cssVarNames: {
|
|
|
473
534
|
primary: string;
|
|
474
535
|
primaryLight: string;
|
|
475
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;
|
|
476
550
|
secondary: string;
|
|
477
551
|
secondaryLight: string;
|
|
478
552
|
secondaryPastel: string;
|
|
@@ -517,6 +591,12 @@ declare const cssVarNames: {
|
|
|
517
591
|
activeBackground: string;
|
|
518
592
|
thumbnailBackground: string;
|
|
519
593
|
thumbnailShadow: string;
|
|
594
|
+
bannerInfoBackground: string;
|
|
595
|
+
bannerInfoBorder: string;
|
|
596
|
+
bannerInfoText: string;
|
|
597
|
+
bannerErrorBackground: string;
|
|
598
|
+
bannerErrorBorder: string;
|
|
599
|
+
bannerErrorText: string;
|
|
520
600
|
inlineCodeText: string;
|
|
521
601
|
inlineCodeBackground: string;
|
|
522
602
|
textLink: string;
|
|
@@ -594,6 +674,9 @@ declare const cssVarNames: {
|
|
|
594
674
|
small: [string, {
|
|
595
675
|
lineHeight: string;
|
|
596
676
|
}];
|
|
677
|
+
xs: [string, {
|
|
678
|
+
lineHeight: string;
|
|
679
|
+
}];
|
|
597
680
|
code: [string, {
|
|
598
681
|
lineHeight: string;
|
|
599
682
|
}];
|
|
@@ -667,7 +750,7 @@ declare const INPUT_HEIGHT = 27;
|
|
|
667
750
|
|
|
668
751
|
type KebabToCamelCase<S extends string> = S extends `${infer First}-${infer Rest}` ? `${First}${Capitalize<KebabToCamelCase<Rest>>}` : S;
|
|
669
752
|
|
|
670
|
-
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";
|
|
671
754
|
declare const textStyles: Record<Variant, string>;
|
|
672
755
|
type TextProps = {
|
|
673
756
|
as?: React__default.HTMLElementType;
|
|
@@ -692,6 +775,7 @@ declare const Heading4: React__default.ForwardRefExoticComponent<PresetProps & R
|
|
|
692
775
|
declare const Heading5: React__default.ForwardRefExoticComponent<PresetProps & React__default.RefAttributes<HTMLElement>>;
|
|
693
776
|
declare const Body: React__default.ForwardRefExoticComponent<PresetProps & React__default.RefAttributes<HTMLElement>>;
|
|
694
777
|
declare const Small: React__default.ForwardRefExoticComponent<PresetProps & React__default.RefAttributes<HTMLElement>>;
|
|
778
|
+
declare const ExtraSmall: React__default.ForwardRefExoticComponent<PresetProps & React__default.RefAttributes<HTMLElement>>;
|
|
695
779
|
declare const Italic: ({ children }: {
|
|
696
780
|
children: ReactNode;
|
|
697
781
|
}) => React__default.JSX.Element;
|
|
@@ -734,8 +818,8 @@ interface CheckboxProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElemen
|
|
|
734
818
|
}
|
|
735
819
|
declare const Checkbox$1: React$1.NamedExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
736
820
|
|
|
737
|
-
type ChipColorScheme = "primary" | "secondary" | "error";
|
|
738
|
-
type ChipSize = "small" | "medium" | "large";
|
|
821
|
+
type ChipColorScheme = "primary" | "secondary" | "info" | "error";
|
|
822
|
+
type ChipSize = "small" | "medium" | "large" | "xl";
|
|
739
823
|
type ChipVariant = "solid" | "outlined" | "ghost";
|
|
740
824
|
interface ChipProps {
|
|
741
825
|
id?: string;
|
|
@@ -759,6 +843,23 @@ interface ChipProps {
|
|
|
759
843
|
}
|
|
760
844
|
declare const Chip: React__default.NamedExoticComponent<ChipProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
761
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
|
+
}
|
|
862
|
+
|
|
762
863
|
type RelativeDropPosition = "above" | "below" | "inside";
|
|
763
864
|
type MoveDragItemParameters = {
|
|
764
865
|
sourceIndex: number;
|
|
@@ -833,6 +934,7 @@ interface RegisteredList {
|
|
|
833
934
|
acceptsFromList: AcceptsFromList;
|
|
834
935
|
acceptsDrop: AcceptsDrop;
|
|
835
936
|
getDropIndicator: (parameters: GetDropIndicatorParameters, acceptsDrop: AcceptsDrop) => RelativeDropPosition | undefined;
|
|
937
|
+
itemHitSlop?: Insets;
|
|
836
938
|
}
|
|
837
939
|
interface DragRegistrationContextType {
|
|
838
940
|
registerList: (list: RegisteredList) => void;
|
|
@@ -844,24 +946,53 @@ type SharedDragProps = {
|
|
|
844
946
|
activeDragContext: React__default.Context<ActiveDragContextType | null>;
|
|
845
947
|
};
|
|
846
948
|
|
|
847
|
-
type
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
type PressEventName = "onClick" | "onPointerDown";
|
|
851
|
-
type ListRowContextValue = {
|
|
852
|
-
marginType: ListRowMarginType;
|
|
853
|
-
selectedPosition: ListRowPosition;
|
|
854
|
-
sortable: boolean;
|
|
855
|
-
expandable: boolean;
|
|
856
|
-
divider: boolean;
|
|
857
|
-
gap: number;
|
|
858
|
-
variant: ListViewVariant;
|
|
859
|
-
sectionHeaderVariant: ListViewSectionHeaderVariant;
|
|
860
|
-
pressEventName: PressEventName;
|
|
861
|
-
isSectionHeader: boolean;
|
|
862
|
-
colorScheme: ListColorScheme;
|
|
949
|
+
type ListViewItemInfo = {
|
|
950
|
+
isDragOverlay: boolean;
|
|
951
|
+
activeDragIndex?: number;
|
|
863
952
|
};
|
|
864
|
-
|
|
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;
|
|
993
|
+
};
|
|
994
|
+
|
|
995
|
+
interface EditableRowTitleProps {
|
|
865
996
|
value: string;
|
|
866
997
|
onSubmitEditing: (value: string) => void;
|
|
867
998
|
autoFocus: boolean;
|
|
@@ -869,12 +1000,13 @@ interface EditableRowProps {
|
|
|
869
1000
|
className?: string;
|
|
870
1001
|
onKeyDown?: (e: React__default.KeyboardEvent) => void;
|
|
871
1002
|
}
|
|
872
|
-
|
|
1003
|
+
|
|
873
1004
|
interface ListViewClickInfo {
|
|
874
1005
|
shiftKey: boolean;
|
|
875
1006
|
altKey: boolean;
|
|
876
1007
|
metaKey: boolean;
|
|
877
1008
|
ctrlKey: boolean;
|
|
1009
|
+
stopPropagation: () => void;
|
|
878
1010
|
}
|
|
879
1011
|
interface ListViewRowProps<MenuItemType extends string = string> {
|
|
880
1012
|
id?: string;
|
|
@@ -886,7 +1018,6 @@ interface ListViewRowProps<MenuItemType extends string = string> {
|
|
|
886
1018
|
disabled?: boolean;
|
|
887
1019
|
hovered?: boolean;
|
|
888
1020
|
sortable?: boolean;
|
|
889
|
-
gap?: number;
|
|
890
1021
|
backgroundColor?: CSSProperties["backgroundColor"];
|
|
891
1022
|
onPress?: (info: ListViewClickInfo) => void;
|
|
892
1023
|
onDoubleClick?: () => void;
|
|
@@ -910,79 +1041,25 @@ type DragIndicatorStyleProps = {
|
|
|
910
1041
|
indentation: number;
|
|
911
1042
|
position: RelativeDropPosition;
|
|
912
1043
|
};
|
|
913
|
-
|
|
914
|
-
scrollToIndex(index: number): void;
|
|
915
|
-
}
|
|
916
|
-
type ListViewItemInfo = {
|
|
917
|
-
isDragOverlay: boolean;
|
|
918
|
-
activeDragIndex?: number;
|
|
919
|
-
};
|
|
920
|
-
type ChildrenProps = {
|
|
921
|
-
children: ReactNode;
|
|
922
|
-
};
|
|
923
|
-
type RenderProps<T> = {
|
|
924
|
-
data: T[];
|
|
925
|
-
renderItem: (item: T, index: number, info: ListViewItemInfo) => ReactNode;
|
|
926
|
-
keyExtractor: (item: T, index: number) => string;
|
|
927
|
-
/**
|
|
928
|
-
* Each item must have an `id` in order to be sortable.
|
|
929
|
-
*
|
|
930
|
-
* Additionally, the key extracted with `keyExtractor` must match the ListItem.Row `id`.
|
|
931
|
-
*/
|
|
932
|
-
sortable?: boolean;
|
|
933
|
-
virtualized?: Size;
|
|
934
|
-
};
|
|
935
|
-
type ListViewVariant = "normal" | "bare";
|
|
936
|
-
type ListViewSectionHeaderVariant = "normal" | "label";
|
|
937
|
-
type ListViewRootProps = {
|
|
938
|
-
id?: string;
|
|
939
|
-
className?: string;
|
|
940
|
-
style?: CSSProperties;
|
|
941
|
-
role?: string;
|
|
942
|
-
"aria-labelledby"?: string;
|
|
943
|
-
"aria-orientation"?: "vertical" | "horizontal";
|
|
944
|
-
"aria-multiselectable"?: boolean;
|
|
945
|
-
onPress?: () => void;
|
|
946
|
-
scrollable?: boolean;
|
|
947
|
-
expandable?: boolean;
|
|
948
|
-
onMoveItem?: MoveDragItemHandler;
|
|
949
|
-
indentation?: number;
|
|
950
|
-
acceptsDrop?: DropValidator;
|
|
951
|
-
pressEventName?: PressEventName;
|
|
952
|
-
variant?: ListViewVariant;
|
|
953
|
-
sectionHeaderVariant?: ListViewSectionHeaderVariant;
|
|
954
|
-
divider?: boolean;
|
|
955
|
-
gap?: number;
|
|
956
|
-
colorScheme?: ListColorScheme;
|
|
957
|
-
containerRef?: React__default.RefObject<HTMLDivElement | null>;
|
|
958
|
-
onDragOver?: React__default.DragEventHandler<HTMLDivElement>;
|
|
959
|
-
onDragEnter?: React__default.DragEventHandler<HTMLDivElement>;
|
|
960
|
-
onDragLeave?: React__default.DragEventHandler<HTMLDivElement>;
|
|
961
|
-
onDrop?: React__default.DragEventHandler<HTMLDivElement>;
|
|
962
|
-
renderEmptyState?: () => ReactNode;
|
|
963
|
-
getDropTargetParentIndex?: SortableItemContextProps["getDropTargetParentIndex"];
|
|
964
|
-
sharedDragProps?: SharedDragProps;
|
|
965
|
-
sortableId?: string;
|
|
966
|
-
};
|
|
1044
|
+
|
|
967
1045
|
declare namespace ListView {
|
|
968
|
-
const RowTitle:
|
|
1046
|
+
const RowTitle: React$1.NamedExoticComponent<{
|
|
969
1047
|
className?: string;
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
const
|
|
973
|
-
const
|
|
974
|
-
const
|
|
975
|
-
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>;
|
|
976
1053
|
type ClickInfo = ListViewClickInfo;
|
|
977
1054
|
type ItemInfo = ListViewItemInfo;
|
|
978
1055
|
type RowProps<MenuItemType extends string = string> = ListViewRowProps<MenuItemType>;
|
|
979
1056
|
type VirtualizedList = IVirtualizedList;
|
|
980
|
-
const DragIndicator:
|
|
1057
|
+
const DragIndicator: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
981
1058
|
$relativeDropPosition?: RelativeDropPosition;
|
|
982
1059
|
$gap: number;
|
|
983
1060
|
$offsetLeft: number;
|
|
984
1061
|
$colorScheme: ListColorScheme;
|
|
985
|
-
} &
|
|
1062
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
986
1063
|
const rowHeight = 31;
|
|
987
1064
|
const sectionHeaderLabelHeight = 27;
|
|
988
1065
|
const calculateHeight: ({ menuItemsCount, sectionHeaderCount, }: {
|
|
@@ -1010,6 +1087,7 @@ type CollectionRenderActionProps<T> = {
|
|
|
1010
1087
|
interface CollectionProps<T, M extends string = string> {
|
|
1011
1088
|
className?: string;
|
|
1012
1089
|
items: T[];
|
|
1090
|
+
virtualized?: Size;
|
|
1013
1091
|
getId: (item: T) => string;
|
|
1014
1092
|
getName: (item: T) => string;
|
|
1015
1093
|
getHref?: (item: T) => string;
|
|
@@ -1031,9 +1109,13 @@ interface CollectionProps<T, M extends string = string> {
|
|
|
1031
1109
|
renderThumbnail?: ({ item, selected, size, }: CollectionThumbnailProps<T>) => React__default.ReactNode;
|
|
1032
1110
|
renderAction?: "menu" | ((props: CollectionRenderActionProps<T>) => React__default.ReactNode);
|
|
1033
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;
|
|
1034
1114
|
/** Callback when selection changes. If not provided, selection will be disabled. */
|
|
1035
1115
|
onSelectionChange?: (selectedItemIds: string[], event?: ListView.ClickInfo) => void;
|
|
1036
1116
|
scrollable?: boolean;
|
|
1117
|
+
itemStyle?: CSSProperties;
|
|
1118
|
+
itemClassName?: string;
|
|
1037
1119
|
itemRoleDescription?: string;
|
|
1038
1120
|
/** Position of the detail content. Defaults to 'end'. */
|
|
1039
1121
|
detailPosition?: "end" | "below";
|
|
@@ -1048,15 +1130,16 @@ interface CollectionProps<T, M extends string = string> {
|
|
|
1048
1130
|
/** For testing: Override the drop indicator state with a specific item ID */
|
|
1049
1131
|
testShowDropIndicatorId?: string;
|
|
1050
1132
|
setExpanded?: (item: T, expanded: boolean) => void;
|
|
1051
|
-
acceptsDrop?: ListViewRootProps["acceptsDrop"];
|
|
1052
|
-
onMoveItem?: ListViewRootProps["onMoveItem"];
|
|
1053
|
-
getDropTargetParentIndex?: ListViewRootProps["getDropTargetParentIndex"];
|
|
1133
|
+
acceptsDrop?: ListViewRootProps<T>["acceptsDrop"];
|
|
1134
|
+
onMoveItem?: ListViewRootProps<T>["onMoveItem"];
|
|
1135
|
+
getDropTargetParentIndex?: ListViewRootProps<T>["getDropTargetParentIndex"];
|
|
1054
1136
|
getDepth?: (item: T) => number;
|
|
1055
1137
|
onFilesDrop?: (event: React__default.DragEvent<Element>) => void;
|
|
1056
1138
|
getRenamable?: (item: T) => boolean;
|
|
1057
1139
|
/** Currently selected file IDs */
|
|
1058
1140
|
selectedIds?: string[];
|
|
1059
1141
|
viewType?: CollectionViewType;
|
|
1142
|
+
onClick?: () => void;
|
|
1060
1143
|
onClickItem?: (itemId: string) => void;
|
|
1061
1144
|
onDoubleClickItem?: (itemId: string) => void;
|
|
1062
1145
|
renderEmptyState?: () => React__default.ReactElement<any>;
|
|
@@ -1099,7 +1182,7 @@ declare function ColorSwatchControl(props: ColorSwatchControlProps): React__defa
|
|
|
1099
1182
|
|
|
1100
1183
|
type InputSize = "small" | "medium" | "large";
|
|
1101
1184
|
|
|
1102
|
-
type Props$
|
|
1185
|
+
type Props$c = {
|
|
1103
1186
|
id?: string;
|
|
1104
1187
|
style?: any;
|
|
1105
1188
|
className?: string;
|
|
@@ -1117,15 +1200,15 @@ type Props$e = {
|
|
|
1117
1200
|
onFocusChange?: (isFocused: boolean) => void;
|
|
1118
1201
|
onBlur?: FocusEventHandler;
|
|
1119
1202
|
} & Pick<InputHTMLAttributes<HTMLInputElement>, "autoComplete" | "autoCapitalize" | "autoCorrect" | "spellCheck" | "autoFocus">;
|
|
1120
|
-
type ReadOnlyProps = Props$
|
|
1203
|
+
type ReadOnlyProps = Props$c & {
|
|
1121
1204
|
readOnly: true;
|
|
1122
1205
|
};
|
|
1123
|
-
type ControlledProps = Props$
|
|
1206
|
+
type ControlledProps = Props$c & {
|
|
1124
1207
|
onChange: (value: string) => void;
|
|
1125
1208
|
onFocus?: FocusEventHandler;
|
|
1126
1209
|
onBlur?: FocusEventHandler;
|
|
1127
1210
|
};
|
|
1128
|
-
type SubmittableProps = Props$
|
|
1211
|
+
type SubmittableProps = Props$c & {
|
|
1129
1212
|
onSubmit: (value: string) => void;
|
|
1130
1213
|
allowSubmittingWithSameValue?: boolean;
|
|
1131
1214
|
submitAutomaticallyAfterDelay?: number;
|
|
@@ -1339,7 +1422,7 @@ declare const StyledContent: React__default.ForwardRefExoticComponent<Omit<Dialo
|
|
|
1339
1422
|
interface IDialog {
|
|
1340
1423
|
containsElement: (element: HTMLElement) => boolean;
|
|
1341
1424
|
}
|
|
1342
|
-
interface Props$
|
|
1425
|
+
interface Props$b {
|
|
1343
1426
|
title?: ReactNode;
|
|
1344
1427
|
description?: ReactNode;
|
|
1345
1428
|
children?: ReactNode;
|
|
@@ -1351,8 +1434,8 @@ interface Props$d {
|
|
|
1351
1434
|
showCloseButton?: boolean;
|
|
1352
1435
|
className?: string;
|
|
1353
1436
|
}
|
|
1354
|
-
declare const Dialog: React__default.ForwardRefExoticComponent<Props$
|
|
1355
|
-
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>>;
|
|
1356
1439
|
|
|
1357
1440
|
type DividerVariant = "normal" | "subtle" | "strong";
|
|
1358
1441
|
interface DividerProps {
|
|
@@ -1376,6 +1459,7 @@ declare const DraggableMenuButton: <T extends string>(props: {
|
|
|
1376
1459
|
isVisible?: boolean;
|
|
1377
1460
|
className?: string;
|
|
1378
1461
|
style?: React__default.CSSProperties;
|
|
1462
|
+
iconName?: IconName;
|
|
1379
1463
|
} & Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onSelect">) => React__default.ReactElement<any> | null;
|
|
1380
1464
|
|
|
1381
1465
|
type SidebarRef = {
|
|
@@ -1471,7 +1555,7 @@ type RenderPreviewProps = {
|
|
|
1471
1555
|
style?: React__default.CSSProperties;
|
|
1472
1556
|
className?: string;
|
|
1473
1557
|
};
|
|
1474
|
-
type Props$
|
|
1558
|
+
type Props$a = {
|
|
1475
1559
|
value: string;
|
|
1476
1560
|
children?: (props: RenderPreviewProps) => React__default.ReactNode;
|
|
1477
1561
|
placeholder?: string;
|
|
@@ -1495,7 +1579,7 @@ type Props$c = {
|
|
|
1495
1579
|
interface EditableTextRef {
|
|
1496
1580
|
startEditing: () => void;
|
|
1497
1581
|
}
|
|
1498
|
-
declare const EditableText: React__default.NamedExoticComponent<Props$
|
|
1582
|
+
declare const EditableText: React__default.NamedExoticComponent<Props$a & React__default.RefAttributes<EditableTextRef>>;
|
|
1499
1583
|
|
|
1500
1584
|
type FadeDirection = "left" | "right" | "top" | "bottom";
|
|
1501
1585
|
type FadeProps = {
|
|
@@ -1521,12 +1605,14 @@ declare const FileExplorerUploadButton: ({ showUploadButton, onUpload, isUploadi
|
|
|
1521
1605
|
children?: React__default.ReactNode;
|
|
1522
1606
|
}) => React__default.JSX.Element;
|
|
1523
1607
|
declare const FileExplorerCollection: <T, M extends string = string>(props: CollectionProps<T, M> & React__default.RefAttributes<CollectionRef>) => React__default.ReactElement<any> | null;
|
|
1524
|
-
declare const FileExplorerDetail: ({ selected, size, children, }: {
|
|
1608
|
+
declare const FileExplorerDetail: ({ selected, size, children, className, style, }: {
|
|
1525
1609
|
selected: boolean;
|
|
1526
1610
|
children: React__default.ReactNode;
|
|
1527
1611
|
size?: CollectionItemSize;
|
|
1612
|
+
className?: string;
|
|
1613
|
+
style?: CSSProperties;
|
|
1528
1614
|
}) => React__default.JSX.Element;
|
|
1529
|
-
declare const FileExplorerEmptyState: ({ label, ...props }: BannerProps$1) => React__default.JSX.Element;
|
|
1615
|
+
declare const FileExplorerEmptyState: ({ children: label, ...props }: BannerProps$1) => React__default.JSX.Element;
|
|
1530
1616
|
|
|
1531
1617
|
type FileUploadIndicatorProps = {
|
|
1532
1618
|
name?: string;
|
|
@@ -1541,33 +1627,6 @@ declare function FileUploadList({ uploads, }: {
|
|
|
1541
1627
|
})[];
|
|
1542
1628
|
}): React__default.JSX.Element;
|
|
1543
1629
|
|
|
1544
|
-
declare const SUPPORTED_IMAGE_UPLOAD_TYPES: ("image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/pdf")[];
|
|
1545
|
-
declare const SUPPORTED_CANVAS_UPLOAD_TYPES: ("" | "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/pdf")[];
|
|
1546
|
-
type SupportedImageUploadType = (typeof SUPPORTED_IMAGE_UPLOAD_TYPES)[number];
|
|
1547
|
-
type SupportedCanvasUploadType = (typeof SUPPORTED_CANVAS_UPLOAD_TYPES)[number];
|
|
1548
|
-
type SketchPattern = {
|
|
1549
|
-
_class: 'pattern';
|
|
1550
|
-
image?: Sketch.FileRef | Sketch.DataRef;
|
|
1551
|
-
patternFillType: Sketch.PatternFillType;
|
|
1552
|
-
patternTileScale: number;
|
|
1553
|
-
};
|
|
1554
|
-
|
|
1555
|
-
interface Props$b {
|
|
1556
|
-
id?: string;
|
|
1557
|
-
value?: Sketch.Color | Sketch.Gradient | SketchPattern;
|
|
1558
|
-
}
|
|
1559
|
-
declare const FillInputField: React__default.NamedExoticComponent<Props$b & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1560
|
-
|
|
1561
|
-
declare const PatternPreviewBackground: React$1.NamedExoticComponent<{
|
|
1562
|
-
fillType: Sketch.PatternFillType;
|
|
1563
|
-
tileScale: number;
|
|
1564
|
-
imageRef: string;
|
|
1565
|
-
}>;
|
|
1566
|
-
interface Props$a {
|
|
1567
|
-
value?: Sketch.Color | Sketch.Gradient | SketchPattern;
|
|
1568
|
-
}
|
|
1569
|
-
declare const FillPreviewBackground: React$1.NamedExoticComponent<Props$a>;
|
|
1570
|
-
|
|
1571
1630
|
interface FloatingWindowProps {
|
|
1572
1631
|
title?: string;
|
|
1573
1632
|
onClose?: () => void;
|
|
@@ -1587,17 +1646,6 @@ interface FloatingWindowProps {
|
|
|
1587
1646
|
}
|
|
1588
1647
|
declare const FloatingWindow: React__default.FC<FloatingWindowProps>;
|
|
1589
1648
|
|
|
1590
|
-
interface Props$9 {
|
|
1591
|
-
value: Sketch.GradientStop[];
|
|
1592
|
-
selectedStop: number;
|
|
1593
|
-
onChangeColor: (color: Sketch.Color) => void;
|
|
1594
|
-
onChangePosition: (position: number) => void;
|
|
1595
|
-
onAdd: (color: Sketch.Color, position: number) => void;
|
|
1596
|
-
onDelete: () => void;
|
|
1597
|
-
onSelectStop: (index: number) => void;
|
|
1598
|
-
}
|
|
1599
|
-
declare const GradientPicker: React$1.NamedExoticComponent<Props$9>;
|
|
1600
|
-
|
|
1601
1649
|
declare const getGridSize: (size: CollectionItemSize) => {
|
|
1602
1650
|
minColumnWidth: string;
|
|
1603
1651
|
gap: number;
|
|
@@ -1614,7 +1662,9 @@ interface ItemProps<MenuItemType extends string = string> {
|
|
|
1614
1662
|
loading?: boolean;
|
|
1615
1663
|
selected?: boolean;
|
|
1616
1664
|
onClick?: (event: React__default.MouseEvent) => void;
|
|
1617
|
-
onSelect?: (options: KeyModifiers
|
|
1665
|
+
onSelect?: (options: KeyModifiers & {
|
|
1666
|
+
stopPropagation(): void;
|
|
1667
|
+
}) => void;
|
|
1618
1668
|
onDoubleClick?: () => void;
|
|
1619
1669
|
onHoverChange?: (isHovering: boolean) => void;
|
|
1620
1670
|
children?: ReactNode;
|
|
@@ -1666,7 +1716,7 @@ declare namespace GridView {
|
|
|
1666
1716
|
const SectionHeader: React__default.MemoExoticComponent<typeof GridViewSectionHeader>;
|
|
1667
1717
|
}
|
|
1668
1718
|
|
|
1669
|
-
type Props$
|
|
1719
|
+
type Props$9 = Omit<ButtonProps, "children" | "variant" | "flex" | "size"> & {
|
|
1670
1720
|
iconName: IconName;
|
|
1671
1721
|
className?: string;
|
|
1672
1722
|
style?: React$1.CSSProperties;
|
|
@@ -1674,7 +1724,7 @@ type Props$8 = Omit<ButtonProps, "children" | "variant" | "flex" | "size"> & {
|
|
|
1674
1724
|
color?: string;
|
|
1675
1725
|
size?: number;
|
|
1676
1726
|
};
|
|
1677
|
-
declare const IconButton: React$1.NamedExoticComponent<Omit<Props$
|
|
1727
|
+
declare const IconButton: React$1.NamedExoticComponent<Omit<Props$9, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1678
1728
|
|
|
1679
1729
|
declare const InspectorContainer: React__default.NamedExoticComponent<{
|
|
1680
1730
|
header?: React__default.ReactNode;
|
|
@@ -1782,7 +1832,132 @@ declare const LabeledField: React__default.NamedExoticComponent<{
|
|
|
1782
1832
|
|
|
1783
1833
|
declare const List: <T, M extends string = string>(props: CollectionProps<T, M> & React__default.RefAttributes<CollectionRef>) => React__default.ReactElement<any> | null;
|
|
1784
1834
|
|
|
1785
|
-
type
|
|
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;
|
|
1959
|
+
|
|
1960
|
+
type ColorScheme$4 = "primary" | "secondary" | "icon" | "warning";
|
|
1786
1961
|
type RenderThumbnailIconProps = {
|
|
1787
1962
|
fileName?: string;
|
|
1788
1963
|
contentType?: string;
|
|
@@ -1795,7 +1970,7 @@ type MediaThumbnailProps = {
|
|
|
1795
1970
|
/** Color scheme for the thumbnail. Affects icon color and background.
|
|
1796
1971
|
* @default "icon"
|
|
1797
1972
|
*/
|
|
1798
|
-
colorScheme?: ColorScheme$
|
|
1973
|
+
colorScheme?: ColorScheme$4;
|
|
1799
1974
|
/**
|
|
1800
1975
|
* If provided, use this icon instead of the default one for the asset type
|
|
1801
1976
|
*/
|
|
@@ -1803,8 +1978,10 @@ type MediaThumbnailProps = {
|
|
|
1803
1978
|
size?: CollectionItemSize;
|
|
1804
1979
|
fileName?: string;
|
|
1805
1980
|
renderThumbnailIcon?: (props: RenderThumbnailIconProps) => React__default.ReactNode;
|
|
1981
|
+
dimensions?: Size;
|
|
1982
|
+
aspect?: "contain" | "cover";
|
|
1806
1983
|
};
|
|
1807
|
-
declare const getThumbnailColors: (colorScheme: ColorScheme$
|
|
1984
|
+
declare const getThumbnailColors: (colorScheme: ColorScheme$4, selected: boolean) => {
|
|
1808
1985
|
icon: string;
|
|
1809
1986
|
background: string;
|
|
1810
1987
|
};
|
|
@@ -1832,7 +2009,7 @@ declare function getPipelineResultLink(value: unknown): {
|
|
|
1832
2009
|
} | undefined;
|
|
1833
2010
|
|
|
1834
2011
|
type PopoverVariant = "normal" | "large";
|
|
1835
|
-
interface Props$
|
|
2012
|
+
interface Props$8 extends Pick<ComponentProps<(typeof Popover$1)["Content"]>, "onOpenAutoFocus" | "onCloseAutoFocus" | "onPointerDownOutside" | "onInteractOutside" | "onFocusOutside" | "side"> {
|
|
1836
2013
|
children: React__default.ReactNode | ((props: {
|
|
1837
2014
|
close: () => void;
|
|
1838
2015
|
}) => React__default.ReactNode);
|
|
@@ -1845,6 +2022,7 @@ interface Props$7 extends Pick<ComponentProps<(typeof Popover$1)["Content"]>, "o
|
|
|
1845
2022
|
onClickClose?: () => void;
|
|
1846
2023
|
showArrow?: boolean;
|
|
1847
2024
|
className?: string;
|
|
2025
|
+
style?: React__default.CSSProperties;
|
|
1848
2026
|
portalContainer?: HTMLElement | null;
|
|
1849
2027
|
}
|
|
1850
2028
|
declare const popoverStyle: {
|
|
@@ -1852,42 +2030,96 @@ declare const popoverStyle: {
|
|
|
1852
2030
|
large: string;
|
|
1853
2031
|
normal: string;
|
|
1854
2032
|
};
|
|
1855
|
-
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;
|
|
1856
2034
|
|
|
1857
|
-
type ColorScheme$
|
|
1858
|
-
declare function Progress({ value, colorScheme, className, style, }: {
|
|
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. */
|
|
1859
2038
|
value: number;
|
|
1860
|
-
colorScheme?: ColorScheme$
|
|
2039
|
+
colorScheme?: ColorScheme$3;
|
|
2040
|
+
color?: string;
|
|
1861
2041
|
className?: string;
|
|
1862
2042
|
style?: React$1.CSSProperties;
|
|
1863
2043
|
}): React$1.JSX.Element;
|
|
1864
2044
|
|
|
1865
|
-
interface
|
|
1866
|
-
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;
|
|
1867
2058
|
}
|
|
1868
|
-
declare const
|
|
2059
|
+
declare const ResizableContainer: React__default.FC<ResizableContainerProps>;
|
|
1869
2060
|
|
|
1870
|
-
type
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
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 }: {
|
|
1874
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;
|
|
1875
2094
|
title?: React__default.ReactNode;
|
|
1876
|
-
onClickTitle?: () => void;
|
|
1877
2095
|
titleTextStyle?: "small" | "heading5" | "heading4" | "heading3";
|
|
2096
|
+
titleClassName?: string;
|
|
2097
|
+
titleIcon?: Exclude<React__default.ReactNode, string> | IconName$1;
|
|
2098
|
+
onClickTitle?: () => void;
|
|
1878
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;
|
|
1879
2105
|
hideRightWhenCollapsed?: boolean;
|
|
1880
2106
|
extraPadding?: boolean;
|
|
1881
2107
|
className?: string;
|
|
1882
2108
|
style?: CSSProperties;
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
};
|
|
2109
|
+
headerStyle?: CSSProperties;
|
|
2110
|
+
} & Omit<SectionHeaderProps, "style" | "className">;
|
|
1886
2111
|
type ExpandableSectionProps = {
|
|
1887
2112
|
storageKey: string;
|
|
1888
2113
|
initialVisibility?: "show" | "hide";
|
|
1889
2114
|
};
|
|
1890
|
-
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>>;
|
|
1891
2123
|
|
|
1892
2124
|
type SegmentedControlColorScheme = "primary" | "secondary";
|
|
1893
2125
|
type SegmentedControlVariant = "default" | "tabs" | "buttons";
|
|
@@ -1913,7 +2145,7 @@ type SegmentedControlItemProps<T extends string> = {
|
|
|
1913
2145
|
declare const SegmentedControl: <T extends string>(props: SegmentedControlProps<T>) => React__default.ReactElement<any> | null;
|
|
1914
2146
|
|
|
1915
2147
|
type PopperPrimitiveContentProps = ComponentProps<typeof PopperPrimitive.Content>;
|
|
1916
|
-
type SelectionToolbarContainerProps = Pick<PopperPrimitiveContentProps, "side" | "sideOffset" | "align"> & {
|
|
2148
|
+
type SelectionToolbarContainerProps = Pick<PopperPrimitiveContentProps, "side" | "sideOffset" | "align" | "avoidCollisions"> & {
|
|
1917
2149
|
rect: Rect;
|
|
1918
2150
|
children: React__default.ReactNode;
|
|
1919
2151
|
portalContainer?: HTMLElement | null;
|
|
@@ -1923,7 +2155,7 @@ type SelectionToolbarContainerProps = Pick<PopperPrimitiveContentProps, "side" |
|
|
|
1923
2155
|
};
|
|
1924
2156
|
declare const SelectionToolbarContainer: React__default.NamedExoticComponent<SelectionToolbarContainerProps>;
|
|
1925
2157
|
|
|
1926
|
-
type Props$
|
|
2158
|
+
type Props$6<T extends string> = {
|
|
1927
2159
|
id?: string;
|
|
1928
2160
|
style?: React__default.CSSProperties;
|
|
1929
2161
|
className?: string;
|
|
@@ -1938,10 +2170,10 @@ type Props$5<T extends string> = {
|
|
|
1938
2170
|
onBlur?: FocusEventHandler;
|
|
1939
2171
|
contentStyle?: React__default.CSSProperties;
|
|
1940
2172
|
} & Pick<SelectProps, "open" | "onOpenChange">;
|
|
1941
|
-
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;
|
|
1942
2174
|
|
|
1943
|
-
type ColorScheme = "primary" | "secondary";
|
|
1944
|
-
interface Props$
|
|
2175
|
+
type ColorScheme$1 = "primary" | "secondary";
|
|
2176
|
+
interface Props$5 {
|
|
1945
2177
|
id?: string;
|
|
1946
2178
|
style?: React__default.CSSProperties;
|
|
1947
2179
|
className?: string;
|
|
@@ -1950,30 +2182,39 @@ interface Props$4 {
|
|
|
1950
2182
|
min: number;
|
|
1951
2183
|
max: number;
|
|
1952
2184
|
step?: number;
|
|
1953
|
-
colorScheme?: ColorScheme;
|
|
2185
|
+
colorScheme?: ColorScheme$1;
|
|
1954
2186
|
label?: React__default.ReactNode;
|
|
1955
2187
|
onFocus?: FocusEventHandler;
|
|
1956
2188
|
onBlur?: FocusEventHandler;
|
|
1957
2189
|
readOnly?: boolean;
|
|
1958
2190
|
}
|
|
1959
|
-
declare const Slider: React__default.NamedExoticComponent<Props$
|
|
2191
|
+
declare const Slider: React__default.NamedExoticComponent<Props$5>;
|
|
1960
2192
|
|
|
1961
2193
|
type SharedDragProviderProps = {
|
|
1962
2194
|
children: React$1.ReactNode;
|
|
1963
2195
|
acceptsDrop?: AcceptsDrop;
|
|
1964
2196
|
onMoveItem?: MoveDragItemHandler;
|
|
1965
2197
|
sharedDragProps?: SharedDragProps;
|
|
2198
|
+
itemHitSlop?: Insets;
|
|
1966
2199
|
};
|
|
1967
|
-
declare function SharedDragProvider({ children, acceptsDrop, onMoveItem, sharedDragProps, }: SharedDragProviderProps): React$1.JSX.Element;
|
|
2200
|
+
declare function SharedDragProvider({ children, acceptsDrop, onMoveItem, sharedDragProps, itemHitSlop, }: SharedDragProviderProps): React$1.JSX.Element;
|
|
1968
2201
|
declare function withDragProvider<T extends object>(Component: React$1.ComponentType<T>): (props: T) => React$1.JSX.Element;
|
|
1969
|
-
declare const getItemFirstCollisionDetection: (registeredLists: Map<string, RegisteredList
|
|
2202
|
+
declare const getItemFirstCollisionDetection: (registeredLists: Map<string, RegisteredList>, itemHitSlop: Insets | undefined) => CollisionDetection;
|
|
1970
2203
|
|
|
1971
2204
|
type UseSortableReturnType = ReturnType<typeof useSortable>;
|
|
1972
2205
|
type ItemChildrenProps<T> = {
|
|
1973
|
-
ref: React$1.
|
|
1974
|
-
relativeDropPosition?: RelativeDropPosition;
|
|
2206
|
+
ref: React$1.RefCallback<T>;
|
|
1975
2207
|
style?: React$1.CSSProperties;
|
|
2208
|
+
onPointerDown?: React$1.PointerEventHandler;
|
|
1976
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
|
+
};
|
|
1977
2218
|
interface RootProps {
|
|
1978
2219
|
id?: string;
|
|
1979
2220
|
keys: UniqueIdentifier[];
|
|
@@ -1981,25 +2222,27 @@ interface RootProps {
|
|
|
1981
2222
|
children?: React$1.ReactNode;
|
|
1982
2223
|
renderOverlay?: (index: number) => React$1.ReactNode;
|
|
1983
2224
|
onMoveItem?: MoveDragItemHandler;
|
|
2225
|
+
onIsDraggingChange?: (isDragging: boolean) => void;
|
|
1984
2226
|
acceptsFromList?: AcceptsFromList;
|
|
1985
2227
|
acceptsDrop?: DropValidator;
|
|
1986
2228
|
getDropTargetParentIndex?: (index: number) => number | undefined;
|
|
1987
2229
|
sharedDragProps?: SharedDragProps;
|
|
1988
2230
|
containerRef?: React$1.RefObject<HTMLElement | null>;
|
|
2231
|
+
itemHitSlop?: Insets;
|
|
1989
2232
|
}
|
|
1990
2233
|
declare function SortableItem<TElement extends HTMLElement>({ id, disabled, children, }: {
|
|
1991
2234
|
id: UniqueIdentifier;
|
|
1992
2235
|
disabled?: boolean;
|
|
1993
|
-
children: (props: ItemChildrenProps<TElement>) => React$1.ReactNode;
|
|
2236
|
+
children: (props: ItemChildrenProps<TElement>, extraProps: Omit<ItemChildrenExtraProps, "isOverlay">) => React$1.ReactNode;
|
|
1994
2237
|
}): React$1.ReactNode;
|
|
1995
|
-
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;
|
|
1996
2239
|
interface SortableProps<TItem, TElement extends HTMLElement> extends Omit<RootProps, "children" | "keys" | "renderOverlay"> {
|
|
1997
2240
|
items: TItem[];
|
|
1998
2241
|
keyExtractor: (item: TItem) => UniqueIdentifier;
|
|
1999
2242
|
shouldRenderOverlay?: boolean;
|
|
2000
|
-
renderItem: (item: TItem, props: ItemChildrenProps<TElement>,
|
|
2243
|
+
renderItem: (item: TItem, props: ItemChildrenProps<TElement>, extraProps: {
|
|
2001
2244
|
isOverlay: boolean;
|
|
2002
|
-
}) => React$1.ReactNode;
|
|
2245
|
+
} & ItemChildrenExtraProps) => React$1.ReactNode;
|
|
2003
2246
|
}
|
|
2004
2247
|
declare const Sortable: (<TItem, TElement extends HTMLElement>({ items, keyExtractor, shouldRenderOverlay, renderItem, ...rest }: SortableProps<TItem, TElement>) => React$1.JSX.Element) & {
|
|
2005
2248
|
Root: typeof SortableRoot_;
|
|
@@ -2012,14 +2255,31 @@ declare function createSharedDrag(): {
|
|
|
2012
2255
|
props: SharedDragProps;
|
|
2013
2256
|
};
|
|
2014
2257
|
|
|
2015
|
-
interface Props$
|
|
2258
|
+
interface Props$4 {
|
|
2016
2259
|
size?: number | string;
|
|
2017
2260
|
inline?: boolean;
|
|
2018
2261
|
}
|
|
2019
2262
|
declare namespace Spacer {
|
|
2020
|
-
const Vertical: React$1.ForwardRefExoticComponent<Props$
|
|
2021
|
-
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>>;
|
|
2265
|
+
}
|
|
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;
|
|
2022
2281
|
}
|
|
2282
|
+
declare const Stepper: React__default.NamedExoticComponent<Props$3>;
|
|
2023
2283
|
|
|
2024
2284
|
type SwitchColorScheme = "primary" | "secondary";
|
|
2025
2285
|
interface Props$2 {
|
|
@@ -2094,20 +2354,11 @@ type TreeRowBaseProps = {
|
|
|
2094
2354
|
};
|
|
2095
2355
|
type TreeViewRowProps<MenuItemType extends string> = ListView.RowProps<MenuItemType> & TreeRowBaseProps;
|
|
2096
2356
|
declare namespace TreeView {
|
|
2097
|
-
const Root: <T
|
|
2098
|
-
|
|
2099
|
-
} | {
|
|
2100
|
-
data: T[];
|
|
2101
|
-
renderItem: (item: T, index: number, info: ListViewItemInfo) => ReactNode;
|
|
2102
|
-
keyExtractor: (item: T, index: number) => string;
|
|
2103
|
-
sortable?: boolean;
|
|
2104
|
-
virtualized?: _noya_app_noya_geometry.Size;
|
|
2105
|
-
}) & ListViewRootProps) & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement<any> | null;
|
|
2106
|
-
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<{
|
|
2107
2359
|
className?: string;
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
const EditableRowTitle: React__default.MemoExoticComponent<({ value, onSubmitEditing, autoFocus, placeholder, className, onKeyDown, }: EditableRowProps) => React__default.JSX.Element>;
|
|
2360
|
+
} & React__default.HTMLAttributes<HTMLSpanElement>>;
|
|
2361
|
+
const EditableRowTitle: React__default.NamedExoticComponent<EditableRowTitleProps>;
|
|
2111
2362
|
const Row: <MenuItemType extends string>(props: ListView.RowProps<MenuItemType> & TreeRowBaseProps & React__default.RefAttributes<HTMLLIElement>) => React__default.ReactElement<any> | null;
|
|
2112
2363
|
type ClickInfo = ListView.ClickInfo;
|
|
2113
2364
|
type RowProps<MenuItemType extends string> = TreeViewRowProps<MenuItemType>;
|
|
@@ -2156,6 +2407,7 @@ type WorkspaceLayoutRef = {
|
|
|
2156
2407
|
toggleRight: () => void;
|
|
2157
2408
|
};
|
|
2158
2409
|
type SideOptions = {
|
|
2410
|
+
visible?: boolean;
|
|
2159
2411
|
style?: React__default.CSSProperties;
|
|
2160
2412
|
className?: string;
|
|
2161
2413
|
resizable?: boolean;
|
|
@@ -2188,10 +2440,13 @@ declare function useDesignSystemConfiguration(): DesignSystemConfigurationContex
|
|
|
2188
2440
|
type RenderableProps = {
|
|
2189
2441
|
close: () => void;
|
|
2190
2442
|
};
|
|
2443
|
+
type ClosablePromise<T> = Promise<T> & {
|
|
2444
|
+
close: () => void;
|
|
2445
|
+
};
|
|
2191
2446
|
type DialogContextValue = {
|
|
2192
2447
|
openDialog(options: BaseDialogContents & {
|
|
2193
2448
|
children: ReactNode | ((props: RenderableProps) => ReactNode);
|
|
2194
|
-
}):
|
|
2449
|
+
}): ClosablePromise<void>;
|
|
2195
2450
|
openInputDialog(options: string | (BaseDialogContents & {
|
|
2196
2451
|
placeholder?: string;
|
|
2197
2452
|
initialValue?: string;
|
|
@@ -2223,7 +2478,7 @@ declare function useOpenConfirmationDialog(): (options: string | (BaseDialogCont
|
|
|
2223
2478
|
})) => Promise<boolean>;
|
|
2224
2479
|
declare function useOpenDialog(): (options: BaseDialogContents & {
|
|
2225
2480
|
children: ReactNode | ((props: RenderableProps) => ReactNode);
|
|
2226
|
-
}) =>
|
|
2481
|
+
}) => ClosablePromise<void>;
|
|
2227
2482
|
|
|
2228
2483
|
type FloatingWindowContextValue = {
|
|
2229
2484
|
createWindow: (element: React__default.ReactNode) => string;
|
|
@@ -2321,9 +2576,7 @@ interface HoverResult {
|
|
|
2321
2576
|
*/
|
|
2322
2577
|
declare function useHover(props?: HoverProps): HoverResult;
|
|
2323
2578
|
|
|
2324
|
-
declare const IndentContext: React__default.Context<
|
|
2325
|
-
indentLevel: number;
|
|
2326
|
-
}>;
|
|
2579
|
+
declare const IndentContext: React__default.Context<number>;
|
|
2327
2580
|
declare const useIndent: () => number;
|
|
2328
2581
|
|
|
2329
2582
|
declare function usePlatform(): _noya_app_noya_keymap.PlatformName;
|
|
@@ -2341,7 +2594,7 @@ type UseThemeReturnType = "dark" | "light";
|
|
|
2341
2594
|
declare function useTheme(): UseThemeReturnType;
|
|
2342
2595
|
|
|
2343
2596
|
type ClassNameItem = string | number | BigInt | boolean | null | undefined;
|
|
2344
|
-
type Category = "text" | "color" | "font" | "flex" | "position";
|
|
2597
|
+
type Category = "text" | "color" | "font" | "flex" | "position" | "textAlign" | "rounded";
|
|
2345
2598
|
type Options = {
|
|
2346
2599
|
categories?: Category[];
|
|
2347
2600
|
};
|
|
@@ -2354,8 +2607,6 @@ declare function createSectionedMenu<T extends string>(...sections: MenuConfig<T
|
|
|
2354
2607
|
|
|
2355
2608
|
declare function formatByteSize(size: number): string;
|
|
2356
2609
|
|
|
2357
|
-
declare function getGradientBackground(value: Sketch.GradientStop[], type: Sketch.GradientType, direction?: number): string;
|
|
2358
|
-
|
|
2359
2610
|
declare const colorForStringValues: Record<string, string>;
|
|
2360
2611
|
/**
|
|
2361
2612
|
* Create a background color and initials from a name
|
|
@@ -2444,10 +2695,16 @@ declare function updateSelection(allIds: string[], selectedIds: string[], clicke
|
|
|
2444
2695
|
ctrlKey?: boolean;
|
|
2445
2696
|
}): string[];
|
|
2446
2697
|
|
|
2447
|
-
declare
|
|
2448
|
-
declare
|
|
2449
|
-
|
|
2450
|
-
|
|
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
|
+
};
|
|
2451
2708
|
|
|
2452
2709
|
interface SeparatorOptions {
|
|
2453
2710
|
traverseFragments?: boolean;
|
|
@@ -2515,13 +2772,22 @@ interface BaseToolbarProps {
|
|
|
2515
2772
|
right?: React__default.ReactNode;
|
|
2516
2773
|
logo?: React__default.ReactNode;
|
|
2517
2774
|
showDivider?: boolean;
|
|
2775
|
+
className?: string;
|
|
2776
|
+
innerClassName?: string;
|
|
2777
|
+
enableAbsoluteBreakpoint?: boolean;
|
|
2518
2778
|
}
|
|
2519
|
-
declare function BaseToolbarContainer({ children, showDivider, }: {
|
|
2779
|
+
declare function BaseToolbarContainer({ children, showDivider, className, innerClassName, enableAbsoluteBreakpoint, }: {
|
|
2520
2780
|
children: React__default.ReactNode;
|
|
2521
2781
|
showDivider?: boolean;
|
|
2782
|
+
className?: string;
|
|
2783
|
+
innerClassName?: string;
|
|
2784
|
+
enableAbsoluteBreakpoint?: boolean;
|
|
2522
2785
|
}): React__default.JSX.Element;
|
|
2523
|
-
declare function BaseToolbar({ children, left, right, logo, showDivider, }: BaseToolbarProps): React__default.JSX.Element;
|
|
2786
|
+
declare function BaseToolbar({ children, left, right, logo, showDivider, className, innerClassName, enableAbsoluteBreakpoint, }: BaseToolbarProps): React__default.JSX.Element;
|
|
2524
2787
|
|
|
2788
|
+
declare const ToolbarMenuContext: React__default.Context<{
|
|
2789
|
+
dividerOverflow?: number;
|
|
2790
|
+
}>;
|
|
2525
2791
|
declare const ToolbarMenuDropdown: <T extends string>(props: {
|
|
2526
2792
|
item: SubMenuItem<T>;
|
|
2527
2793
|
onSelectMenuItem?: (value: T) => void;
|
|
@@ -2540,6 +2806,7 @@ declare const ToolbarMenuButton: <T extends string>(props: {
|
|
|
2540
2806
|
as?: ComponentProps<typeof Button>["as"];
|
|
2541
2807
|
activeValue?: T;
|
|
2542
2808
|
tooltipSide?: ComponentProps<typeof Tooltip>["side"];
|
|
2809
|
+
displayFilter?: DisplayFilter;
|
|
2543
2810
|
}) => React__default.ReactElement<any> | null;
|
|
2544
2811
|
declare const ToolbarMenuItem: <T extends string>(props: {
|
|
2545
2812
|
item: MenuItem<T>;
|
|
@@ -2548,7 +2815,10 @@ declare const ToolbarMenuItem: <T extends string>(props: {
|
|
|
2548
2815
|
activeValue?: T;
|
|
2549
2816
|
tooltipSide?: ComponentProps<typeof Tooltip>["side"];
|
|
2550
2817
|
portalContainer?: HTMLElement | null;
|
|
2818
|
+
displayFilter?: DisplayFilter;
|
|
2819
|
+
dividerOverflow?: number;
|
|
2551
2820
|
}) => React__default.ReactElement<any> | null;
|
|
2821
|
+
type DisplayFilter = "iconOnly" | "iconAndText" | "textOnly";
|
|
2552
2822
|
declare const ToolbarMenu: <T extends string>(props: {
|
|
2553
2823
|
items: MenuItem<T>[];
|
|
2554
2824
|
onSelectMenuItem?: (value: T) => void;
|
|
@@ -2556,6 +2826,8 @@ declare const ToolbarMenu: <T extends string>(props: {
|
|
|
2556
2826
|
activeValue?: T;
|
|
2557
2827
|
tooltipSide?: ComponentProps<typeof Tooltip>["side"];
|
|
2558
2828
|
portalContainer?: HTMLElement | null;
|
|
2829
|
+
displayFilter?: DisplayFilter;
|
|
2830
|
+
dividerOverflow?: number;
|
|
2559
2831
|
}) => React__default.ReactElement<any> | null;
|
|
2560
2832
|
interface ToolbarProps<T extends string = string> {
|
|
2561
2833
|
children?: React__default.ReactNode;
|
|
@@ -2565,8 +2837,9 @@ interface ToolbarProps<T extends string = string> {
|
|
|
2565
2837
|
onSelectMenuItem?: (value: T) => void;
|
|
2566
2838
|
/** Whether to bind keyboard shortcuts for menu items. @default true */
|
|
2567
2839
|
shouldBindKeyboardShortcuts?: boolean;
|
|
2840
|
+
dividerOverflow?: number;
|
|
2568
2841
|
}
|
|
2569
|
-
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;
|
|
2570
2843
|
|
|
2571
2844
|
type ToolbarDrawerProps = {
|
|
2572
2845
|
children: ReactNode;
|
|
@@ -2575,4 +2848,4 @@ type ToolbarDrawerProps = {
|
|
|
2575
2848
|
};
|
|
2576
2849
|
declare const ToolbarDrawer: React__default.NamedExoticComponent<ToolbarDrawerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2577
2850
|
|
|
2578
|
-
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, 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
|
|
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 };
|