@noya-app/noya-designsystem 0.1.51 → 0.1.53
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 +17 -0
- package/dist/index.css +1 -1
- package/dist/index.d.mts +307 -12
- package/dist/index.d.ts +307 -12
- package/dist/index.js +3408 -647
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3660 -908
- 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 +90 -0
- package/src/components/ContextMenu.tsx +10 -2
- package/src/components/Dialog.tsx +1 -1
- package/src/components/DraggableMenuButton.tsx +17 -30
- package/src/components/DropdownMenu.tsx +7 -0
- 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 +8 -1
- package/src/components/SegmentedControl.tsx +1 -1
- package/src/components/SelectMenu.tsx +7 -0
- package/src/components/SelectionToolbar.tsx +76 -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 +78 -37
- package/src/components/Tooltip.tsx +11 -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 +6 -5
- package/src/components/internal/MenuViewport.tsx +11 -1
- package/src/components/pipeline/PipelineResultLayout.tsx +18 -0
- package/src/contexts/DialogContext.tsx +20 -5
- package/src/contexts/PortalScopeContext.tsx +48 -0
- package/src/index.css +101 -39
- package/src/index.tsx +4 -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,7 +5,7 @@ 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';
|
|
@@ -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 = {
|
|
@@ -1034,7 +1287,10 @@ declare const DividerVertical: React__default.NamedExoticComponent<DividerProps>
|
|
|
1034
1287
|
declare const DraggableMenuButton: <T extends string>(props: {
|
|
1035
1288
|
items?: MenuItem<T>[];
|
|
1036
1289
|
onSelect?: (value: T) => void;
|
|
1290
|
+
onClick?: () => void;
|
|
1037
1291
|
isVisible?: boolean;
|
|
1292
|
+
className?: string;
|
|
1293
|
+
style?: React__default.CSSProperties;
|
|
1038
1294
|
}) => React__default.ReactElement | null;
|
|
1039
1295
|
|
|
1040
1296
|
type SidebarRef = {
|
|
@@ -1093,7 +1349,7 @@ declare const DropdownMenu: <T extends string>(props: MenuProps<T> & {
|
|
|
1093
1349
|
onCloseAutoFocus?: React__default.EventHandler<SyntheticEvent<unknown>>;
|
|
1094
1350
|
emptyState?: React__default.ReactNode;
|
|
1095
1351
|
contentStyle?: React__default.CSSProperties;
|
|
1096
|
-
} & Pick<RadixDropdownMenu.DropdownMenuContentProps & React__default.RefAttributes<HTMLDivElement>, "align" | "
|
|
1352
|
+
} & Pick<RadixDropdownMenu.DropdownMenuContentProps & React__default.RefAttributes<HTMLDivElement>, "align" | "sideOffset" | "side" | "alignOffset" | "collisionPadding"> & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
|
|
1097
1353
|
|
|
1098
1354
|
type RenderPreviewProps = {
|
|
1099
1355
|
children: string;
|
|
@@ -1363,6 +1619,7 @@ declare const LabeledField: React__default.NamedExoticComponent<{
|
|
|
1363
1619
|
children: React__default.ReactNode;
|
|
1364
1620
|
label: React__default.ReactNode;
|
|
1365
1621
|
labelPosition?: LabelPosition;
|
|
1622
|
+
labelStyle?: React__default.CSSProperties;
|
|
1366
1623
|
/** Used for both the `id` of the field and the `htmlFor` of the label, unless `id` and `htmlFor` are explicitly provided */
|
|
1367
1624
|
fieldId?: string;
|
|
1368
1625
|
className?: string;
|
|
@@ -1388,6 +1645,7 @@ type MediaThumbnailProps = {
|
|
|
1388
1645
|
*/
|
|
1389
1646
|
iconName?: IconName;
|
|
1390
1647
|
size?: CollectionItemSize;
|
|
1648
|
+
fileName?: string;
|
|
1391
1649
|
};
|
|
1392
1650
|
declare const getThumbnailColors: (colorScheme: ColorScheme$1, selected: boolean) => {
|
|
1393
1651
|
icon: string;
|
|
@@ -1412,6 +1670,9 @@ declare const PipelineResultLink: ({ url }: {
|
|
|
1412
1670
|
declare const PipelineResultLayout: ({ children, }: {
|
|
1413
1671
|
children: React__default.ReactNode;
|
|
1414
1672
|
}) => React__default.JSX.Element;
|
|
1673
|
+
declare function getPipelineResultLink(value: unknown): {
|
|
1674
|
+
url: string;
|
|
1675
|
+
} | undefined;
|
|
1415
1676
|
|
|
1416
1677
|
type PopoverVariant = "normal" | "large";
|
|
1417
1678
|
interface Props$7 extends Pick<ComponentProps<(typeof PopoverPrimitive)["Content"]>, "onOpenAutoFocus" | "onCloseAutoFocus" | "onPointerDownOutside" | "onInteractOutside" | "onFocusOutside" | "side"> {
|
|
@@ -1488,6 +1749,12 @@ type SegmentedControlItemProps<T extends string> = {
|
|
|
1488
1749
|
} & Pick<SelectableMenuItem<T>, "value" | "disabled" | "icon" | "role" | "title">;
|
|
1489
1750
|
declare const SegmentedControl: <T extends string>(props: SegmentedControlProps<T>) => React__default.ReactElement | null;
|
|
1490
1751
|
|
|
1752
|
+
type SelectionToolbarContainerProps = {
|
|
1753
|
+
rect: Rect;
|
|
1754
|
+
children: React__default.ReactNode;
|
|
1755
|
+
};
|
|
1756
|
+
declare const SelectionToolbarContainer: React__default.NamedExoticComponent<SelectionToolbarContainerProps>;
|
|
1757
|
+
|
|
1491
1758
|
type Props$5<T extends string> = {
|
|
1492
1759
|
id?: string;
|
|
1493
1760
|
style?: React__default.CSSProperties;
|
|
@@ -1579,6 +1846,7 @@ declare const ToastProvider: ({ children }: {
|
|
|
1579
1846
|
interface Props$1 {
|
|
1580
1847
|
children: React$1.ReactNode;
|
|
1581
1848
|
content: React$1.ReactNode;
|
|
1849
|
+
sideOffset?: number;
|
|
1582
1850
|
}
|
|
1583
1851
|
declare const Tooltip: React$1.NamedExoticComponent<Props$1>;
|
|
1584
1852
|
|
|
@@ -1689,7 +1957,10 @@ type DialogContextValue = {
|
|
|
1689
1957
|
placeholder?: string;
|
|
1690
1958
|
initialValue?: string;
|
|
1691
1959
|
})): Promise<string | undefined>;
|
|
1692
|
-
openConfirmationDialog(options: string | BaseDialogContents
|
|
1960
|
+
openConfirmationDialog(options: string | (BaseDialogContents & {
|
|
1961
|
+
confirmButtonLabel?: string;
|
|
1962
|
+
cancelButtonLabel?: string;
|
|
1963
|
+
})): Promise<boolean>;
|
|
1693
1964
|
containsElement(element: HTMLElement): boolean;
|
|
1694
1965
|
};
|
|
1695
1966
|
type BaseDialogContents = {
|
|
@@ -1707,7 +1978,10 @@ declare function useOpenInputDialog(): (options: string | (BaseDialogContents &
|
|
|
1707
1978
|
initialValue?: string;
|
|
1708
1979
|
})) => Promise<string | undefined>;
|
|
1709
1980
|
declare function useDialogContainsElement(): (element: HTMLElement) => boolean;
|
|
1710
|
-
declare function useOpenConfirmationDialog(): (options: string | BaseDialogContents
|
|
1981
|
+
declare function useOpenConfirmationDialog(): (options: string | (BaseDialogContents & {
|
|
1982
|
+
confirmButtonLabel?: string;
|
|
1983
|
+
cancelButtonLabel?: string;
|
|
1984
|
+
})) => Promise<boolean>;
|
|
1711
1985
|
declare function useOpenDialog(): (options: BaseDialogContents & {
|
|
1712
1986
|
children: ReactNode | ((props: RenderableProps) => ReactNode);
|
|
1713
1987
|
}) => Promise<void>;
|
|
@@ -1751,6 +2025,19 @@ declare const ImageDataProvider: React$1.NamedExoticComponent<{
|
|
|
1751
2025
|
}>;
|
|
1752
2026
|
declare function useImageData(ref: string): ArrayBuffer | undefined;
|
|
1753
2027
|
|
|
2028
|
+
type PortalScopeContextValue = string;
|
|
2029
|
+
declare const PortalScopeProvider: React$1.NamedExoticComponent<{
|
|
2030
|
+
children: React$1.ReactNode;
|
|
2031
|
+
portalScopeId: string;
|
|
2032
|
+
}>;
|
|
2033
|
+
declare function usePortalScopeId(): string;
|
|
2034
|
+
declare const portalScopeDataSetName = "noyaPortalScope";
|
|
2035
|
+
declare const portalScopePropName = "data-noya-portal-scope";
|
|
2036
|
+
declare function portalScopeProps(id?: string): {
|
|
2037
|
+
"data-noya-portal-scope": string | undefined;
|
|
2038
|
+
};
|
|
2039
|
+
declare function getClosestPortalScope(element: EventTarget): string | undefined;
|
|
2040
|
+
|
|
1754
2041
|
interface HoverEvent {
|
|
1755
2042
|
/** The type of hover event being fired. */
|
|
1756
2043
|
type: 'hoverstart' | 'hoverend';
|
|
@@ -1844,7 +2131,7 @@ declare const mediaQuery: {
|
|
|
1844
2131
|
};
|
|
1845
2132
|
|
|
1846
2133
|
type ClassNameItem = string | number | BigInt | boolean | null | undefined;
|
|
1847
|
-
type Category = "text" | "color" | "font" | "flex";
|
|
2134
|
+
type Category = "text" | "color" | "font" | "flex" | "position";
|
|
1848
2135
|
type Options = {
|
|
1849
2136
|
categories?: Category[];
|
|
1850
2137
|
};
|
|
@@ -1907,7 +2194,7 @@ declare function getNextIndex<T>({ items, currentIndex, direction, isDisabled, }
|
|
|
1907
2194
|
declare function useComboboxState<T extends string>(state: ComboboxState<T>): ComboboxStateSnapshot<T>;
|
|
1908
2195
|
|
|
1909
2196
|
type MoveOptions = {
|
|
1910
|
-
|
|
2197
|
+
paths: number[][];
|
|
1911
2198
|
to: number[];
|
|
1912
2199
|
};
|
|
1913
2200
|
type MoveTreeItemOptions<T> = {
|
|
@@ -2017,6 +2304,14 @@ interface BaseToolbarProps {
|
|
|
2017
2304
|
}
|
|
2018
2305
|
declare function BaseToolbar({ children, left, right, logo, showDivider, }: BaseToolbarProps): React__default.JSX.Element;
|
|
2019
2306
|
|
|
2307
|
+
declare const ToolbarMenuDropdown: <T extends string>(props: {
|
|
2308
|
+
item: SubMenuItem<T>;
|
|
2309
|
+
onSelectMenuItem?: (value: T) => void;
|
|
2310
|
+
}) => React__default.ReactElement | null;
|
|
2311
|
+
declare const ToolbarMenuButton: <T extends string>(props: {
|
|
2312
|
+
item: SelectableMenuItem<T>;
|
|
2313
|
+
onSelectMenuItem?: (value: T) => void;
|
|
2314
|
+
}) => React__default.ReactElement | null;
|
|
2020
2315
|
interface ToolbarProps<T extends string = string> {
|
|
2021
2316
|
children?: React__default.ReactNode;
|
|
2022
2317
|
logo?: React__default.ReactNode;
|
|
@@ -2032,4 +2327,4 @@ declare const ToolbarMenu: <T extends string>(props: {
|
|
|
2032
2327
|
onSelectMenuItem?: (value: T) => void;
|
|
2033
2328
|
}) => React__default.ReactElement | null;
|
|
2034
2329
|
|
|
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 };
|
|
2330
|
+
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, type PortalScopeContextValue, PortalScopeProvider, Progress, RIGHT_SIDEBAR_ID, type RelativeDropPosition, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, type ScoredMenuItem, ScrollArea, SearchCompletionMenu, Section$1 as Section, SectionHeader$1 as SectionHeader, type SectionHeaderMenuItem, type SectionProps, SegmentedControl, type SegmentedControlItemProps, type SegmentedControlProps, SelectMenu, type SelectableMenuItem, SelectionToolbarContainer, type SeparatorItem, type SetNumberMode, type SideOptions, type SideType, type SidebarRef, type SketchPattern, Slider, Small, Sortable, type SortableItemContextProps, Spacer, type StringModeOnlyProps, type StringModeProps, type SubMenuItem, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text$1 as Text, TextArea, TextAreaRow, type TextProps, type Theme, type ThemeColor, Toast, ToastProvider, type TokenValue, Toolbar, ToolbarMenu, ToolbarMenuButton, ToolbarMenuDropdown, type ToolbarProps, Tooltip, TreeView, type UseThemeReturnType, UserAvatar, UserPointer, type UserPointerProps, WorkspaceLayout, type WorkspaceLayoutProps, type WorkspaceLayoutRef, acceptsDrop, colorForStringValues, colorFromString, colorSwatchSizeMap, createSectionedMenu, cssVarNames, cssVars, cx, defaultAcceptsDrop, filterWithGroupedSections, fuzzyFilter, fuzzyScore, fuzzyTokenize, getClosestPortalScope, getFieldSpacing, getGradientBackground, getGridSize, getKeyboardShortcutsForMenuItems, getMenuItemKey, getNewValue, getNextIndex, getPipelineResultLink, getThumbnailColors, isMenuItemSectionHeader, isNonSelectableMenuItem, isSelectableMenuItem, isSelectableMenuItemWithScore, labeledFieldStyles, mediaQuery, mergeConflictingClassNames, moveTreeItem, normalizeListTargetIndex, popoverStyle, portalScopeDataSetName, portalScopePropName, portalScopeProps, renderIcon, rgbaToSketchColor, separator, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, styles, textStyles, updateSelection, useAutoResize, useComboboxState, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDialogContainsElement, useDialogContext, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useIndent, useInputFieldContext, useLabel, useLabelPosition, useLabelWidth, useOpenConfirmationDialog, useOpenDialog, useOpenInputDialog, usePlatform, usePlatformModKey, usePortalScopeId, usePreservePanelSize, useTheme, validateDropIndicator, withSeparatorElements };
|