@noya-app/noya-designsystem 0.1.51 → 0.1.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +10 -13
- package/CHANGELOG.md +11 -0
- package/dist/index.css +1 -1
- package/dist/index.d.mts +285 -13
- package/dist/index.d.ts +285 -13
- package/dist/index.js +3264 -578
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3235 -550
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -9
- package/postcss.config.js +7 -0
- package/src/components/ActionMenu.tsx +8 -3
- package/src/components/Banner.tsx +2 -2
- package/src/components/BaseToolbar.tsx +6 -2
- package/src/components/Breadcrumbs.tsx +32 -2
- package/src/components/Button.tsx +30 -19
- package/src/components/Chip.tsx +3 -0
- package/src/components/ColorSwatch.tsx +42 -0
- package/src/components/ColorSwatchControl.tsx +92 -0
- package/src/components/Dialog.tsx +1 -1
- package/src/components/FillInputField.tsx +1 -1
- package/src/components/Grid.tsx +11 -4
- package/src/components/GridView.tsx +1 -1
- package/src/components/LabeledField.tsx +4 -1
- package/src/components/List.tsx +12 -7
- package/src/components/ListView.tsx +7 -4
- package/src/components/MediaThumbnail.tsx +44 -10
- package/src/components/Popover.tsx +1 -1
- package/src/components/SegmentedControl.tsx +1 -1
- package/src/components/SelectionToolbar.tsx +70 -0
- package/src/components/Switch.tsx +1 -1
- package/src/components/Text.tsx +2 -2
- package/src/components/Toast.tsx +13 -7
- package/src/components/Toolbar.tsx +11 -1
- package/src/components/Tooltip.tsx +4 -2
- package/src/components/catppuccin/fileIcons.ts +2430 -0
- package/src/components/connected-users-menu/ConnectedUsersMenuLayout.tsx +3 -1
- package/src/components/internal/Menu.tsx +5 -4
- package/src/components/internal/MenuViewport.tsx +2 -0
- package/src/components/pipeline/PipelineResultLayout.tsx +18 -0
- package/src/contexts/DialogContext.tsx +20 -5
- package/src/index.css +101 -39
- package/src/index.tsx +3 -0
- package/src/theme/index.ts +6 -1
- package/src/theme/themeUtils.ts +10 -3
- package/src/utils/classNames.ts +3 -2
- package/src/utils/moveTreeItem.ts +4 -4
- package/tsup.config.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -5,12 +5,12 @@ import * as Icons from '@noya-app/noya-icons';
|
|
|
5
5
|
export { Icons };
|
|
6
6
|
import tailwindConfig from '@noya-app/noya-tailwind-config';
|
|
7
7
|
import * as _noya_app_noya_geometry from '@noya-app/noya-geometry';
|
|
8
|
-
import { Size } from '@noya-app/noya-geometry';
|
|
8
|
+
import { Size, Rect } from '@noya-app/noya-geometry';
|
|
9
9
|
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
10
10
|
import { useSortable } from '@dnd-kit/sortable';
|
|
11
11
|
import { Property } from 'csstype';
|
|
12
12
|
import * as _noya_app_noya_designsystem from '@noya-app/noya-designsystem';
|
|
13
|
-
import { SectionProps as SectionProps$1, BannerProps as BannerProps$1 } from '@noya-app/noya-designsystem';
|
|
13
|
+
import { SectionProps as SectionProps$1, BannerProps as BannerProps$1, MenuItem as MenuItem$1 } from '@noya-app/noya-designsystem';
|
|
14
14
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
15
15
|
import * as RadixDropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
16
16
|
import { Sketch } from '@noya-app/noya-file-format';
|
|
@@ -82,6 +82,7 @@ type SelectableMenuItem<T extends string> = BaseMenuItem & {
|
|
|
82
82
|
shortcut?: string;
|
|
83
83
|
value: T;
|
|
84
84
|
testSelected?: boolean;
|
|
85
|
+
tooltip?: ReactNode;
|
|
85
86
|
};
|
|
86
87
|
type SubMenuItem<T extends string> = BaseMenuItem & {
|
|
87
88
|
type: "submenu";
|
|
@@ -128,11 +129,13 @@ declare const SectionHeader$1: React__default.NamedExoticComponent<Omit<SectionH
|
|
|
128
129
|
type ActionMenuProps<TMenu extends string> = {
|
|
129
130
|
menuItems: MenuItem<TMenu>[];
|
|
130
131
|
onSelect: (action: TMenu) => void;
|
|
131
|
-
selected
|
|
132
|
-
|
|
132
|
+
selected?: boolean;
|
|
133
|
+
disabled?: boolean;
|
|
134
|
+
onOpenChange?: (open: boolean) => void;
|
|
133
135
|
className?: string;
|
|
134
136
|
style?: React__default.CSSProperties;
|
|
135
137
|
variant?: "normal" | "bare";
|
|
138
|
+
color?: string;
|
|
136
139
|
};
|
|
137
140
|
declare const ActionMenu: <TMenu extends string>(props: ActionMenuProps<TMenu>) => React__default.ReactElement | null;
|
|
138
141
|
|
|
@@ -219,7 +222,7 @@ declare const AvatarStack: React__default.NamedExoticComponent<{
|
|
|
219
222
|
}>;
|
|
220
223
|
|
|
221
224
|
type BannerProps = {
|
|
222
|
-
label?:
|
|
225
|
+
label?: ReactNode;
|
|
223
226
|
className?: string;
|
|
224
227
|
style?: CSSProperties;
|
|
225
228
|
};
|
|
@@ -260,7 +263,6 @@ declare const cssVars: {
|
|
|
260
263
|
canvasBackground: string;
|
|
261
264
|
canvasGrid: string;
|
|
262
265
|
sidebarBackground: string;
|
|
263
|
-
sidebarBackgroundTransparent: string;
|
|
264
266
|
popoverBackground: string;
|
|
265
267
|
popoverDivider: string;
|
|
266
268
|
listviewRaisedBackground: string;
|
|
@@ -297,10 +299,28 @@ declare const cssVars: {
|
|
|
297
299
|
floatingButton: string;
|
|
298
300
|
blockBorder: string;
|
|
299
301
|
blockHighlight: string;
|
|
302
|
+
selectedListItemBackground: string;
|
|
303
|
+
selectedListItemText: string;
|
|
304
|
+
selectedListItemIconBackground: string;
|
|
305
|
+
cmKeyword: string;
|
|
306
|
+
cmFunction: string;
|
|
307
|
+
cmControlKeyword: string;
|
|
308
|
+
cmClassType: string;
|
|
309
|
+
cmRegexp: string;
|
|
310
|
+
cmLink: string;
|
|
311
|
+
cmString: string;
|
|
312
|
+
cmNumber: string;
|
|
313
|
+
cmComment: string;
|
|
314
|
+
cmOperator: string;
|
|
315
|
+
cmVariable: string;
|
|
316
|
+
cmType: string;
|
|
317
|
+
cmError: string;
|
|
318
|
+
cmWarning: string;
|
|
319
|
+
cmInfo: string;
|
|
300
320
|
};
|
|
301
321
|
fontFamily: {
|
|
302
322
|
sans: [string, string, string, string, string, string, string, string, string, string];
|
|
303
|
-
mono: [string, string, string, string, string];
|
|
323
|
+
mono: [string, string, string, string, string, string];
|
|
304
324
|
};
|
|
305
325
|
fontSize: {
|
|
306
326
|
title: [string, {
|
|
@@ -395,6 +415,204 @@ declare const cssVars: {
|
|
|
395
415
|
label: string;
|
|
396
416
|
menu: string;
|
|
397
417
|
};
|
|
418
|
+
boxShadow: {
|
|
419
|
+
dialog: string;
|
|
420
|
+
popover: string;
|
|
421
|
+
activeInput: string;
|
|
422
|
+
segment: string;
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
declare const cssVarNames: {
|
|
426
|
+
colors: {
|
|
427
|
+
logoFill: string;
|
|
428
|
+
logoHighlight: string;
|
|
429
|
+
background: string;
|
|
430
|
+
text: string;
|
|
431
|
+
textMuted: string;
|
|
432
|
+
textSubtle: string;
|
|
433
|
+
textDisabled: string;
|
|
434
|
+
textDecorativeLight: string;
|
|
435
|
+
dividerSubtle: string;
|
|
436
|
+
divider: string;
|
|
437
|
+
dividerStrong: string;
|
|
438
|
+
primary: string;
|
|
439
|
+
primaryLight: string;
|
|
440
|
+
primaryPastel: string;
|
|
441
|
+
secondary: string;
|
|
442
|
+
secondaryLight: string;
|
|
443
|
+
secondaryPastel: string;
|
|
444
|
+
secondaryBright: string;
|
|
445
|
+
inputBackground: string;
|
|
446
|
+
inputBackgroundLight: string;
|
|
447
|
+
listViewHoverBackground: string;
|
|
448
|
+
listViewThumbnailBackground: string;
|
|
449
|
+
codeBackground: string;
|
|
450
|
+
codeBackgroundDark: string;
|
|
451
|
+
selectedBackground: string;
|
|
452
|
+
breadcrumbText: string;
|
|
453
|
+
breadcrumbTextHover: string;
|
|
454
|
+
breadcrumbIcon: string;
|
|
455
|
+
canvasBackground: string;
|
|
456
|
+
canvasGrid: string;
|
|
457
|
+
sidebarBackground: string;
|
|
458
|
+
popoverBackground: string;
|
|
459
|
+
popoverDivider: string;
|
|
460
|
+
listviewRaisedBackground: string;
|
|
461
|
+
listviewEditingBackground: string;
|
|
462
|
+
sliderThumbBackground: string;
|
|
463
|
+
sliderBorder: string;
|
|
464
|
+
segmentedControlItem: string;
|
|
465
|
+
mask: string;
|
|
466
|
+
transparentChecker: string;
|
|
467
|
+
scrollbar: string;
|
|
468
|
+
placeholderDots: string;
|
|
469
|
+
dragOutline: string;
|
|
470
|
+
activeBackground: string;
|
|
471
|
+
thumbnailBackground: string;
|
|
472
|
+
thumbnailShadow: string;
|
|
473
|
+
inlineCodeText: string;
|
|
474
|
+
inlineCodeBackground: string;
|
|
475
|
+
textLink: string;
|
|
476
|
+
textLinkFocused: string;
|
|
477
|
+
icon: string;
|
|
478
|
+
iconSelected: string;
|
|
479
|
+
warning: string;
|
|
480
|
+
dot: string;
|
|
481
|
+
rowHighlight: string;
|
|
482
|
+
tableRowBackground: string;
|
|
483
|
+
chipPrimaryBg: string;
|
|
484
|
+
chipSecondaryBg: string;
|
|
485
|
+
chipErrorBg: string;
|
|
486
|
+
chipDefaultBg: string;
|
|
487
|
+
chipPrimaryShadow: string;
|
|
488
|
+
chipSecondaryShadow: string;
|
|
489
|
+
chipErrorShadow: string;
|
|
490
|
+
chipDefaultShadow: string;
|
|
491
|
+
floatingButton: string;
|
|
492
|
+
blockBorder: string;
|
|
493
|
+
blockHighlight: string;
|
|
494
|
+
selectedListItemBackground: string;
|
|
495
|
+
selectedListItemText: string;
|
|
496
|
+
selectedListItemIconBackground: string;
|
|
497
|
+
cmKeyword: string;
|
|
498
|
+
cmFunction: string;
|
|
499
|
+
cmControlKeyword: string;
|
|
500
|
+
cmClassType: string;
|
|
501
|
+
cmRegexp: string;
|
|
502
|
+
cmLink: string;
|
|
503
|
+
cmString: string;
|
|
504
|
+
cmNumber: string;
|
|
505
|
+
cmComment: string;
|
|
506
|
+
cmOperator: string;
|
|
507
|
+
cmVariable: string;
|
|
508
|
+
cmType: string;
|
|
509
|
+
cmError: string;
|
|
510
|
+
cmWarning: string;
|
|
511
|
+
cmInfo: string;
|
|
512
|
+
};
|
|
513
|
+
fontFamily: {
|
|
514
|
+
sans: [string, string, string, string, string, string, string, string, string, string];
|
|
515
|
+
mono: [string, string, string, string, string, string];
|
|
516
|
+
};
|
|
517
|
+
fontSize: {
|
|
518
|
+
title: [string, {
|
|
519
|
+
lineHeight: string;
|
|
520
|
+
letterSpacing: string;
|
|
521
|
+
}];
|
|
522
|
+
subtitle: [string, {
|
|
523
|
+
lineHeight: string;
|
|
524
|
+
letterSpacing: string;
|
|
525
|
+
}];
|
|
526
|
+
heading1: [string, {
|
|
527
|
+
lineHeight: string;
|
|
528
|
+
letterSpacing: string;
|
|
529
|
+
}];
|
|
530
|
+
heading2: [string, {
|
|
531
|
+
lineHeight: string;
|
|
532
|
+
letterSpacing: string;
|
|
533
|
+
}];
|
|
534
|
+
heading3: [string, {
|
|
535
|
+
lineHeight: string;
|
|
536
|
+
letterSpacing: string;
|
|
537
|
+
}];
|
|
538
|
+
heading4: [string, {
|
|
539
|
+
lineHeight: string;
|
|
540
|
+
}];
|
|
541
|
+
heading5: [string, {
|
|
542
|
+
lineHeight: string;
|
|
543
|
+
}];
|
|
544
|
+
body: [string, {
|
|
545
|
+
lineHeight: string;
|
|
546
|
+
}];
|
|
547
|
+
small: [string, {
|
|
548
|
+
lineHeight: string;
|
|
549
|
+
}];
|
|
550
|
+
code: [string, {
|
|
551
|
+
lineHeight: string;
|
|
552
|
+
}];
|
|
553
|
+
button: [string, {
|
|
554
|
+
lineHeight: string;
|
|
555
|
+
letterSpacing: string;
|
|
556
|
+
}];
|
|
557
|
+
listSmall: [string, {
|
|
558
|
+
lineHeight: string;
|
|
559
|
+
letterSpacing: string;
|
|
560
|
+
}];
|
|
561
|
+
label: [string, {
|
|
562
|
+
lineHeight: string;
|
|
563
|
+
letterSpacing: string;
|
|
564
|
+
}];
|
|
565
|
+
};
|
|
566
|
+
spacing: {
|
|
567
|
+
nano: string;
|
|
568
|
+
micro: string;
|
|
569
|
+
small: string;
|
|
570
|
+
medium: string;
|
|
571
|
+
large: string;
|
|
572
|
+
xlarge: string;
|
|
573
|
+
xxlarge: string;
|
|
574
|
+
insetTop: string;
|
|
575
|
+
sidebarWidth: string;
|
|
576
|
+
toolbarHeight: string;
|
|
577
|
+
toolbarSeparator: string;
|
|
578
|
+
inspectorHSeparator: string;
|
|
579
|
+
inspectorVSeparator: string;
|
|
580
|
+
dialogPadding: string;
|
|
581
|
+
inputHeight: string;
|
|
582
|
+
};
|
|
583
|
+
keyframes: {
|
|
584
|
+
spin: {
|
|
585
|
+
"0%": {
|
|
586
|
+
transform: string;
|
|
587
|
+
};
|
|
588
|
+
"100%": {
|
|
589
|
+
transform: string;
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
shimmer: {
|
|
593
|
+
"0%": {
|
|
594
|
+
backgroundPosition: string;
|
|
595
|
+
};
|
|
596
|
+
"100%": {
|
|
597
|
+
backgroundPosition: string;
|
|
598
|
+
};
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
animation: {
|
|
602
|
+
spin: string;
|
|
603
|
+
shimmer: string;
|
|
604
|
+
};
|
|
605
|
+
zIndex: {
|
|
606
|
+
interactable: string;
|
|
607
|
+
label: string;
|
|
608
|
+
menu: string;
|
|
609
|
+
};
|
|
610
|
+
boxShadow: {
|
|
611
|
+
dialog: string;
|
|
612
|
+
popover: string;
|
|
613
|
+
activeInput: string;
|
|
614
|
+
segment: string;
|
|
615
|
+
};
|
|
398
616
|
};
|
|
399
617
|
declare const INPUT_HEIGHT = 27;
|
|
400
618
|
|
|
@@ -431,6 +649,7 @@ declare const Italic: ({ children }: {
|
|
|
431
649
|
|
|
432
650
|
type BreadcrumbTextProps = Omit<TextProps, "variant" | "whiteSpace" | "lineHeight" | "userSelect">;
|
|
433
651
|
declare const BreadcrumbText: React__default.ForwardRefExoticComponent<BreadcrumbTextProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
652
|
+
declare const BreadcrumbSlash: () => React__default.JSX.Element;
|
|
434
653
|
|
|
435
654
|
type ButtonVariant = "normal" | "primary" | "secondary" | "secondaryBright" | "thin" | "floating" | "none";
|
|
436
655
|
type ButtonSize = "small" | "normal" | "large" | "floating";
|
|
@@ -453,6 +672,7 @@ interface ButtonRootProps {
|
|
|
453
672
|
href?: string;
|
|
454
673
|
target?: string;
|
|
455
674
|
rel?: string;
|
|
675
|
+
download?: string;
|
|
456
676
|
}
|
|
457
677
|
declare const Button: React__default.ForwardRefExoticComponent<ButtonRootProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
458
678
|
|
|
@@ -482,6 +702,7 @@ interface ChipProps {
|
|
|
482
702
|
style?: React__default.CSSProperties;
|
|
483
703
|
tabIndex?: number;
|
|
484
704
|
role?: string;
|
|
705
|
+
disabled?: boolean;
|
|
485
706
|
}
|
|
486
707
|
declare const Chip: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<ChipProps & React__default.RefAttributes<HTMLSpanElement>>>;
|
|
487
708
|
|
|
@@ -762,6 +983,38 @@ interface CollectionProps<T, M extends string = string> {
|
|
|
762
983
|
declare const Collection: <T, M extends string = string>(props: CollectionProps<T, M> & React__default.RefAttributes<CollectionRef>) => React__default.ReactElement | null;
|
|
763
984
|
type CollectionItemSize = "xxs" | "xs" | "small" | "medium" | "large" | "xl";
|
|
764
985
|
|
|
986
|
+
type ColorSwatchSize = "xsmall" | "small" | "medium" | "large";
|
|
987
|
+
declare const colorSwatchSizeMap: {
|
|
988
|
+
xsmall: number;
|
|
989
|
+
small: number;
|
|
990
|
+
medium: number;
|
|
991
|
+
large: number;
|
|
992
|
+
};
|
|
993
|
+
declare const ColorSwatch: React__default.ForwardRefExoticComponent<{
|
|
994
|
+
color: string;
|
|
995
|
+
size?: ColorSwatchSize;
|
|
996
|
+
checked?: boolean;
|
|
997
|
+
} & React__default.ButtonHTMLAttributes<HTMLButtonElement> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
998
|
+
|
|
999
|
+
type TokenValue = string | {
|
|
1000
|
+
ref: string;
|
|
1001
|
+
};
|
|
1002
|
+
type ColorSwatchControlProps = {
|
|
1003
|
+
options: TokenValue[];
|
|
1004
|
+
value?: TokenValue;
|
|
1005
|
+
/** @default "small" */
|
|
1006
|
+
size?: ColorSwatchSize;
|
|
1007
|
+
readOnly?: boolean;
|
|
1008
|
+
onValueChange?: (value: TokenValue) => void;
|
|
1009
|
+
onFocus?: React__default.FocusEventHandler<HTMLButtonElement>;
|
|
1010
|
+
onBlur?: React__default.FocusEventHandler<HTMLButtonElement>;
|
|
1011
|
+
className?: string;
|
|
1012
|
+
id?: string;
|
|
1013
|
+
style?: React__default.CSSProperties;
|
|
1014
|
+
disabled?: boolean;
|
|
1015
|
+
};
|
|
1016
|
+
declare function ColorSwatchControl(props: ColorSwatchControlProps): React__default.JSX.Element;
|
|
1017
|
+
|
|
765
1018
|
type InputSize = "small" | "medium" | "large";
|
|
766
1019
|
|
|
767
1020
|
type Props$d = {
|
|
@@ -1093,7 +1346,7 @@ declare const DropdownMenu: <T extends string>(props: MenuProps<T> & {
|
|
|
1093
1346
|
onCloseAutoFocus?: React__default.EventHandler<SyntheticEvent<unknown>>;
|
|
1094
1347
|
emptyState?: React__default.ReactNode;
|
|
1095
1348
|
contentStyle?: React__default.CSSProperties;
|
|
1096
|
-
} & Pick<RadixDropdownMenu.DropdownMenuContentProps & React__default.RefAttributes<HTMLDivElement>, "align" | "
|
|
1349
|
+
} & Pick<RadixDropdownMenu.DropdownMenuContentProps & React__default.RefAttributes<HTMLDivElement>, "align" | "sideOffset" | "side" | "alignOffset" | "collisionPadding"> & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
|
|
1097
1350
|
|
|
1098
1351
|
type RenderPreviewProps = {
|
|
1099
1352
|
children: string;
|
|
@@ -1363,6 +1616,7 @@ declare const LabeledField: React__default.NamedExoticComponent<{
|
|
|
1363
1616
|
children: React__default.ReactNode;
|
|
1364
1617
|
label: React__default.ReactNode;
|
|
1365
1618
|
labelPosition?: LabelPosition;
|
|
1619
|
+
labelStyle?: React__default.CSSProperties;
|
|
1366
1620
|
/** Used for both the `id` of the field and the `htmlFor` of the label, unless `id` and `htmlFor` are explicitly provided */
|
|
1367
1621
|
fieldId?: string;
|
|
1368
1622
|
className?: string;
|
|
@@ -1388,6 +1642,7 @@ type MediaThumbnailProps = {
|
|
|
1388
1642
|
*/
|
|
1389
1643
|
iconName?: IconName;
|
|
1390
1644
|
size?: CollectionItemSize;
|
|
1645
|
+
fileName?: string;
|
|
1391
1646
|
};
|
|
1392
1647
|
declare const getThumbnailColors: (colorScheme: ColorScheme$1, selected: boolean) => {
|
|
1393
1648
|
icon: string;
|
|
@@ -1412,6 +1667,9 @@ declare const PipelineResultLink: ({ url }: {
|
|
|
1412
1667
|
declare const PipelineResultLayout: ({ children, }: {
|
|
1413
1668
|
children: React__default.ReactNode;
|
|
1414
1669
|
}) => React__default.JSX.Element;
|
|
1670
|
+
declare function getPipelineResultLink(value: unknown): {
|
|
1671
|
+
url: string;
|
|
1672
|
+
} | undefined;
|
|
1415
1673
|
|
|
1416
1674
|
type PopoverVariant = "normal" | "large";
|
|
1417
1675
|
interface Props$7 extends Pick<ComponentProps<(typeof PopoverPrimitive)["Content"]>, "onOpenAutoFocus" | "onCloseAutoFocus" | "onPointerDownOutside" | "onInteractOutside" | "onFocusOutside" | "side"> {
|
|
@@ -1488,6 +1746,13 @@ type SegmentedControlItemProps<T extends string> = {
|
|
|
1488
1746
|
} & Pick<SelectableMenuItem<T>, "value" | "disabled" | "icon" | "role" | "title">;
|
|
1489
1747
|
declare const SegmentedControl: <T extends string>(props: SegmentedControlProps<T>) => React__default.ReactElement | null;
|
|
1490
1748
|
|
|
1749
|
+
type SelectionToolbarProps<T extends string> = {
|
|
1750
|
+
rect: Rect;
|
|
1751
|
+
menuItems: MenuItem$1<T>[];
|
|
1752
|
+
onSelectMenuItem: (item: T) => void;
|
|
1753
|
+
};
|
|
1754
|
+
declare const SelectionToolbar: <T extends string>(props: SelectionToolbarProps<T>) => React__default.ReactElement | null;
|
|
1755
|
+
|
|
1491
1756
|
type Props$5<T extends string> = {
|
|
1492
1757
|
id?: string;
|
|
1493
1758
|
style?: React__default.CSSProperties;
|
|
@@ -1579,6 +1844,7 @@ declare const ToastProvider: ({ children }: {
|
|
|
1579
1844
|
interface Props$1 {
|
|
1580
1845
|
children: React$1.ReactNode;
|
|
1581
1846
|
content: React$1.ReactNode;
|
|
1847
|
+
sideOffset?: number;
|
|
1582
1848
|
}
|
|
1583
1849
|
declare const Tooltip: React$1.NamedExoticComponent<Props$1>;
|
|
1584
1850
|
|
|
@@ -1689,7 +1955,10 @@ type DialogContextValue = {
|
|
|
1689
1955
|
placeholder?: string;
|
|
1690
1956
|
initialValue?: string;
|
|
1691
1957
|
})): Promise<string | undefined>;
|
|
1692
|
-
openConfirmationDialog(options: string | BaseDialogContents
|
|
1958
|
+
openConfirmationDialog(options: string | (BaseDialogContents & {
|
|
1959
|
+
confirmButtonLabel?: string;
|
|
1960
|
+
cancelButtonLabel?: string;
|
|
1961
|
+
})): Promise<boolean>;
|
|
1693
1962
|
containsElement(element: HTMLElement): boolean;
|
|
1694
1963
|
};
|
|
1695
1964
|
type BaseDialogContents = {
|
|
@@ -1707,7 +1976,10 @@ declare function useOpenInputDialog(): (options: string | (BaseDialogContents &
|
|
|
1707
1976
|
initialValue?: string;
|
|
1708
1977
|
})) => Promise<string | undefined>;
|
|
1709
1978
|
declare function useDialogContainsElement(): (element: HTMLElement) => boolean;
|
|
1710
|
-
declare function useOpenConfirmationDialog(): (options: string | BaseDialogContents
|
|
1979
|
+
declare function useOpenConfirmationDialog(): (options: string | (BaseDialogContents & {
|
|
1980
|
+
confirmButtonLabel?: string;
|
|
1981
|
+
cancelButtonLabel?: string;
|
|
1982
|
+
})) => Promise<boolean>;
|
|
1711
1983
|
declare function useOpenDialog(): (options: BaseDialogContents & {
|
|
1712
1984
|
children: ReactNode | ((props: RenderableProps) => ReactNode);
|
|
1713
1985
|
}) => Promise<void>;
|
|
@@ -1844,7 +2116,7 @@ declare const mediaQuery: {
|
|
|
1844
2116
|
};
|
|
1845
2117
|
|
|
1846
2118
|
type ClassNameItem = string | number | BigInt | boolean | null | undefined;
|
|
1847
|
-
type Category = "text" | "color" | "font" | "flex";
|
|
2119
|
+
type Category = "text" | "color" | "font" | "flex" | "position";
|
|
1848
2120
|
type Options = {
|
|
1849
2121
|
categories?: Category[];
|
|
1850
2122
|
};
|
|
@@ -1907,7 +2179,7 @@ declare function getNextIndex<T>({ items, currentIndex, direction, isDisabled, }
|
|
|
1907
2179
|
declare function useComboboxState<T extends string>(state: ComboboxState<T>): ComboboxStateSnapshot<T>;
|
|
1908
2180
|
|
|
1909
2181
|
type MoveOptions = {
|
|
1910
|
-
|
|
2182
|
+
paths: number[][];
|
|
1911
2183
|
to: number[];
|
|
1912
2184
|
};
|
|
1913
2185
|
type MoveTreeItemOptions<T> = {
|
|
@@ -2032,4 +2304,4 @@ declare const ToolbarMenu: <T extends string>(props: {
|
|
|
2032
2304
|
onSelectMenuItem?: (value: T) => void;
|
|
2033
2305
|
}) => React__default.ReactElement | null;
|
|
2034
2306
|
|
|
2035
|
-
export { AIAssistantInput, AIAssistantLayout, AIAssistantLoadingIndicator, type AcceptsDropOptions, ActionMenu, ActivityIndicator, AnimatePresence, type AnimatePresenceProps, Avatar, type AvatarProps, AvatarStack, Banner, type BannerProps, type BaseComboboxProps, BaseToolbar, type BaseToolbarProps, Body, BreadcrumbText, Button, type ButtonRootProps, CHECKBOX_INDENT_WIDTH, CHECKBOX_RIGHT_INSET, CHECKBOX_WIDTH, CONTENT_AREA_ID, Checkbox$1 as Checkbox, Chip, type ChipProps, Collection, type CollectionItemSize, type CollectionProps, type CollectionRef, type CollectionRenderActionProps, type CollectionThumbnailProps, type CollectionThumbnailSize, type CollectionViewType, Combobox, ComboboxMenu, type ComboboxProps, type ComboboxRef, ComboboxState, type ComboboxStateSnapshot, CommandPalette, ConnectedUsersMenuLayout, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, type DetectSizeType, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, type DragIndicatorStyleProps, DraggableMenuButton, Drawer, type DrawerProps, type DropValidator, DropdownMenu, type DropdownRootProps, EDITOR_PANEL_GROUP_ID, type EditableRowProps, EditableText, type EditableTextRef, type ExtractMenuItemType, Fade, type FadeDirection, type FadeProps, FileExplorerCollection, FileExplorerDetail, FileExplorerEmptyState, FileExplorerLayout, FileExplorerUploadButton, FillInputField, FillPreviewBackground, FloatingWindow, FloatingWindowProvider, FullscreenDialog, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, Grid, GridView, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, INPUT_HEIGHT, type IScoredItem, type ISearchCompletionMenu, type IToken, type IVirtualizedList, IconButton, type IconName, type ImageDataContextValue, ImageDataProvider, IndentContext, InputField, type InputFieldInputProps, type InputFieldProps, type InputFieldSize, InspectorContainer, InspectorPrimitives, Italic, KeyboardShortcut, LEFT_SIDEBAR_ID, Label, LabelContext, type LabelPosition, LabelPositionContext, type LabelPositionContextValue, type LabelProps, LabelWidthContext, type LabelWidthContextValue, LabeledElementView, LabeledField, type LayoutProps, List, type ListRowMarginType, type ListRowPosition, ListView, type ListViewItemInfo, type ListViewRootProps, type ListViewRowProps, Logo, type MatchRange, MediaThumbnail, type MenuComponents, type MenuConfig, type MenuItem, type MenuItemIcon, type MenuItemProps, type MenuItemRole, type MenuProps, MenuViewport, Message, type MessageProps, type MoveTreeItemOptions, type NonSelectableMenuItem, type OptionModeOnlyProps, type OptionModeProps, type Optional, type PanelLayoutState, PatternPreviewBackground, type PercentageSidebarOptions, PipelineResultLayout, PipelineResultLink, Popover, Progress, RIGHT_SIDEBAR_ID, type RelativeDropPosition, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, type ScoredMenuItem, ScrollArea, SearchCompletionMenu, Section$1 as Section, SectionHeader$1 as SectionHeader, type SectionHeaderMenuItem, type SectionProps, SegmentedControl, type SegmentedControlItemProps, type SegmentedControlProps, SelectMenu, type SelectableMenuItem, type SeparatorItem, type SetNumberMode, type SideOptions, type SideType, type SidebarRef, type SketchPattern, Slider, Small, Sortable, type SortableItemContextProps, Spacer, type StringModeOnlyProps, type StringModeProps, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text$1 as Text, TextArea, TextAreaRow, type TextProps, type Theme, type ThemeColor, Toast, ToastProvider, Toolbar, ToolbarMenu, type ToolbarProps, Tooltip, TreeView, type UseThemeReturnType, UserAvatar, UserPointer, type UserPointerProps, WorkspaceLayout, type WorkspaceLayoutProps, type WorkspaceLayoutRef, acceptsDrop, colorForStringValues, colorFromString, createSectionedMenu, cssVars, cx, defaultAcceptsDrop, filterWithGroupedSections, fuzzyFilter, fuzzyScore, fuzzyTokenize, getFieldSpacing, getGradientBackground, getGridSize, getKeyboardShortcutsForMenuItems, getMenuItemKey, getNewValue, getNextIndex, getThumbnailColors, isMenuItemSectionHeader, isNonSelectableMenuItem, isSelectableMenuItem, isSelectableMenuItemWithScore, labeledFieldStyles, mediaQuery, mergeConflictingClassNames, moveTreeItem, normalizeListTargetIndex, popoverStyle, renderIcon, rgbaToSketchColor, separator, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, styles, textStyles, updateSelection, useAutoResize, useComboboxState, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDialogContainsElement, useDialogContext, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useIndent, useInputFieldContext, useLabel, useLabelPosition, useLabelWidth, useOpenConfirmationDialog, useOpenDialog, useOpenInputDialog, usePlatform, usePlatformModKey, usePreservePanelSize, useTheme, validateDropIndicator, withSeparatorElements };
|
|
2307
|
+
export { AIAssistantInput, AIAssistantLayout, AIAssistantLoadingIndicator, type AcceptsDropOptions, ActionMenu, ActivityIndicator, AnimatePresence, type AnimatePresenceProps, Avatar, type AvatarProps, AvatarStack, Banner, type BannerProps, type BaseComboboxProps, BaseToolbar, type BaseToolbarProps, Body, BreadcrumbSlash, BreadcrumbText, Button, type ButtonRootProps, CHECKBOX_INDENT_WIDTH, CHECKBOX_RIGHT_INSET, CHECKBOX_WIDTH, CONTENT_AREA_ID, Checkbox$1 as Checkbox, Chip, type ChipProps, Collection, type CollectionItemSize, type CollectionProps, type CollectionRef, type CollectionRenderActionProps, type CollectionThumbnailProps, type CollectionThumbnailSize, type CollectionViewType, ColorSwatch, ColorSwatchControl, type ColorSwatchSize, Combobox, ComboboxMenu, type ComboboxProps, type ComboboxRef, ComboboxState, type ComboboxStateSnapshot, CommandPalette, ConnectedUsersMenuLayout, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, type DetectSizeType, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, type DragIndicatorStyleProps, DraggableMenuButton, Drawer, type DrawerProps, type DropValidator, DropdownMenu, type DropdownRootProps, EDITOR_PANEL_GROUP_ID, type EditableRowProps, EditableText, type EditableTextRef, type ExtractMenuItemType, Fade, type FadeDirection, type FadeProps, FileExplorerCollection, FileExplorerDetail, FileExplorerEmptyState, FileExplorerLayout, FileExplorerUploadButton, FillInputField, FillPreviewBackground, FloatingWindow, FloatingWindowProvider, FullscreenDialog, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, Grid, GridView, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, INPUT_HEIGHT, type IScoredItem, type ISearchCompletionMenu, type IToken, type IVirtualizedList, IconButton, type IconName, type ImageDataContextValue, ImageDataProvider, IndentContext, InputField, type InputFieldInputProps, type InputFieldProps, type InputFieldSize, InspectorContainer, InspectorPrimitives, Italic, KeyboardShortcut, LEFT_SIDEBAR_ID, Label, LabelContext, type LabelPosition, LabelPositionContext, type LabelPositionContextValue, type LabelProps, LabelWidthContext, type LabelWidthContextValue, LabeledElementView, LabeledField, type LayoutProps, List, type ListRowMarginType, type ListRowPosition, ListView, type ListViewItemInfo, type ListViewRootProps, type ListViewRowProps, Logo, type MatchRange, MediaThumbnail, type MenuComponents, type MenuConfig, type MenuItem, type MenuItemIcon, type MenuItemProps, type MenuItemRole, type MenuProps, MenuViewport, Message, type MessageProps, type MoveTreeItemOptions, type NonSelectableMenuItem, type OptionModeOnlyProps, type OptionModeProps, type Optional, type PanelLayoutState, PatternPreviewBackground, type PercentageSidebarOptions, PipelineResultLayout, PipelineResultLink, Popover, Progress, RIGHT_SIDEBAR_ID, type RelativeDropPosition, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, type ScoredMenuItem, ScrollArea, SearchCompletionMenu, Section$1 as Section, SectionHeader$1 as SectionHeader, type SectionHeaderMenuItem, type SectionProps, SegmentedControl, type SegmentedControlItemProps, type SegmentedControlProps, SelectMenu, type SelectableMenuItem, SelectionToolbar, type SeparatorItem, type SetNumberMode, type SideOptions, type SideType, type SidebarRef, type SketchPattern, Slider, Small, Sortable, type SortableItemContextProps, Spacer, type StringModeOnlyProps, type StringModeProps, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text$1 as Text, TextArea, TextAreaRow, type TextProps, type Theme, type ThemeColor, Toast, ToastProvider, type TokenValue, Toolbar, ToolbarMenu, type ToolbarProps, Tooltip, TreeView, type UseThemeReturnType, UserAvatar, UserPointer, type UserPointerProps, WorkspaceLayout, type WorkspaceLayoutProps, type WorkspaceLayoutRef, acceptsDrop, colorForStringValues, colorFromString, colorSwatchSizeMap, createSectionedMenu, cssVarNames, cssVars, cx, defaultAcceptsDrop, filterWithGroupedSections, fuzzyFilter, fuzzyScore, fuzzyTokenize, getFieldSpacing, getGradientBackground, getGridSize, getKeyboardShortcutsForMenuItems, getMenuItemKey, getNewValue, getNextIndex, getPipelineResultLink, getThumbnailColors, isMenuItemSectionHeader, isNonSelectableMenuItem, isSelectableMenuItem, isSelectableMenuItemWithScore, labeledFieldStyles, mediaQuery, mergeConflictingClassNames, moveTreeItem, normalizeListTargetIndex, popoverStyle, renderIcon, rgbaToSketchColor, separator, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, styles, textStyles, updateSelection, useAutoResize, useComboboxState, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDialogContainsElement, useDialogContext, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useIndent, useInputFieldContext, useLabel, useLabelPosition, useLabelWidth, useOpenConfirmationDialog, useOpenDialog, useOpenInputDialog, usePlatform, usePlatformModKey, usePreservePanelSize, useTheme, validateDropIndicator, withSeparatorElements };
|