@noya-app/noya-designsystem 0.1.21 → 0.1.22
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 +9 -9
- package/CHANGELOG.md +11 -0
- package/dist/index.d.mts +53 -31
- package/dist/index.d.ts +53 -31
- package/dist/index.js +248 -159
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +284 -199
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -4
- package/src/components/Chip.tsx +88 -76
- package/src/components/ContextMenu.tsx +15 -21
- package/src/components/InputField.tsx +41 -3
- package/src/components/ListView.tsx +9 -0
- package/src/components/Popover.tsx +6 -6
- package/src/components/Select.tsx +1 -1
- package/src/components/SelectMenu.tsx +100 -0
- package/src/components/Stack.tsx +12 -1
- package/src/components/Text.tsx +6 -0
- package/src/components/TreeView.tsx +7 -7
- package/src/components/WorkspaceLayout.tsx +3 -0
- package/src/components/internal/Menu.tsx +2 -2
- package/src/index.tsx +1 -0
- package/src/theme/light.ts +2 -1
- package/src/utils/breakpoints.ts +6 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
[34mCLI[39m Target: esnext
|
|
6
6
|
[34mCJS[39m Build start
|
|
7
7
|
[34mESM[39m Build start
|
|
8
|
-
[
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
8
|
+
[32mCJS[39m [1mdist/index.js [22m[32m231.53 KB[39m
|
|
9
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m466.05 KB[39m
|
|
10
|
+
[32mCJS[39m ⚡️ Build success in 229ms
|
|
11
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m213.24 KB[39m
|
|
12
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m466.16 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 237ms
|
|
14
14
|
[34mDTS[39m Build start
|
|
15
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
15
|
+
[32mDTS[39m ⚡️ Build success in 10433ms
|
|
16
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m61.38 KB[39m
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m61.38 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @noya-app/noya-designsystem
|
|
2
2
|
|
|
3
|
+
## 0.1.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f3e588d: Improve json editing
|
|
8
|
+
- b104428: Package improvements, mainly around json
|
|
9
|
+
- Updated dependencies [b104428]
|
|
10
|
+
- @noya-app/noya-utils@0.1.2
|
|
11
|
+
- @noya-app/noya-colorpicker@0.1.10
|
|
12
|
+
- @noya-app/noya-geometry@0.1.4
|
|
13
|
+
|
|
3
14
|
## 0.1.21
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { CSSProperties, ReactNode,
|
|
2
|
+
import React__default, { CSSProperties, ReactNode, ComponentProps, AriaRole, KeyboardEventHandler, MouseEventHandler, PointerEventHandler, FocusEventHandler, InputHTMLAttributes, Ref, ReactHTML } from 'react';
|
|
3
3
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
4
4
|
import * as styled_components from 'styled-components';
|
|
5
5
|
import { CSSObject, CSSProperties as CSSProperties$1 } from 'styled-components';
|
|
@@ -18,13 +18,13 @@ import { useSortable } from '@dnd-kit/sortable';
|
|
|
18
18
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
19
19
|
import { RgbaColor } from '@noya-app/noya-colorpicker';
|
|
20
20
|
|
|
21
|
-
interface Props$
|
|
21
|
+
interface Props$j {
|
|
22
22
|
size?: number;
|
|
23
23
|
opacity?: number;
|
|
24
24
|
color?: string;
|
|
25
25
|
trackColor?: string;
|
|
26
26
|
}
|
|
27
|
-
declare const ActivityIndicator: (props: Props$
|
|
27
|
+
declare const ActivityIndicator: (props: Props$j) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
28
28
|
|
|
29
29
|
declare const Avatar: (props: {
|
|
30
30
|
image?: string | undefined;
|
|
@@ -76,10 +76,13 @@ type ChipColorScheme = "primary" | "secondary" | "error";
|
|
|
76
76
|
type ChipSize = "small" | "medium";
|
|
77
77
|
type ChipVariant = "solid" | "outlined" | "ghost";
|
|
78
78
|
interface ChipProps {
|
|
79
|
+
id?: string;
|
|
80
|
+
className?: string;
|
|
79
81
|
colorScheme?: ChipColorScheme;
|
|
80
82
|
variant?: ChipVariant;
|
|
81
83
|
size?: ChipSize;
|
|
82
84
|
children?: React__default.ReactNode;
|
|
85
|
+
clickable?: boolean;
|
|
83
86
|
deletable?: boolean;
|
|
84
87
|
addable?: boolean;
|
|
85
88
|
monospace?: boolean;
|
|
@@ -90,7 +93,7 @@ interface ChipProps {
|
|
|
90
93
|
style?: React__default.CSSProperties;
|
|
91
94
|
tabIndex?: number;
|
|
92
95
|
}
|
|
93
|
-
declare const Chip: (props: ChipProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
96
|
+
declare const Chip: (props: ChipProps & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
94
97
|
|
|
95
98
|
declare const name$1: string;
|
|
96
99
|
declare const colors$1: {
|
|
@@ -234,7 +237,7 @@ type RegularMenuItem<T extends string> = {
|
|
|
234
237
|
shortcut?: string;
|
|
235
238
|
checked?: boolean;
|
|
236
239
|
disabled?: boolean;
|
|
237
|
-
icon?:
|
|
240
|
+
icon?: ReactNode;
|
|
238
241
|
items?: MenuItem<T>[];
|
|
239
242
|
role?: MenuItemRole;
|
|
240
243
|
};
|
|
@@ -252,7 +255,7 @@ interface MenuItemProps<T extends string> {
|
|
|
252
255
|
disabled: boolean;
|
|
253
256
|
indented: boolean;
|
|
254
257
|
shortcut?: string;
|
|
255
|
-
icon?:
|
|
258
|
+
icon?: ReactNode;
|
|
256
259
|
items?: MenuItem<T>[];
|
|
257
260
|
}
|
|
258
261
|
interface MenuProps<T extends string> {
|
|
@@ -270,7 +273,7 @@ declare const CloseButtonContainer: styled_components_dist_types.IStyledComponen
|
|
|
270
273
|
interface IDialog {
|
|
271
274
|
containsElement: (element: HTMLElement) => boolean;
|
|
272
275
|
}
|
|
273
|
-
interface Props$
|
|
276
|
+
interface Props$i {
|
|
274
277
|
title?: ReactNode;
|
|
275
278
|
description?: ReactNode;
|
|
276
279
|
children?: ReactNode;
|
|
@@ -280,8 +283,8 @@ interface Props$h {
|
|
|
280
283
|
onOpenAutoFocus?: ComponentProps<typeof DialogPrimitive.Content>["onOpenAutoFocus"];
|
|
281
284
|
closeOnInteractOutside?: boolean;
|
|
282
285
|
}
|
|
283
|
-
declare const Dialog: (props: Props$
|
|
284
|
-
declare const FullscreenDialog: (props: Props$
|
|
286
|
+
declare const Dialog: (props: Props$i & React__default.RefAttributes<IDialog>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
287
|
+
declare const FullscreenDialog: (props: Props$i & React__default.RefAttributes<IDialog>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
285
288
|
|
|
286
289
|
type DividerVariant = "normal" | "strong" | "subtle";
|
|
287
290
|
interface DividerProps {
|
|
@@ -316,22 +319,22 @@ type SketchPattern = {
|
|
|
316
319
|
patternTileScale: number;
|
|
317
320
|
};
|
|
318
321
|
|
|
319
|
-
interface Props$
|
|
322
|
+
interface Props$h {
|
|
320
323
|
id?: string;
|
|
321
324
|
value?: Sketch.Color | Sketch.Gradient | SketchPattern;
|
|
322
325
|
flex?: CSSProperties["flex"];
|
|
323
326
|
}
|
|
324
|
-
declare const FillInputField: (props: Props$
|
|
327
|
+
declare const FillInputField: (props: Props$h & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
325
328
|
|
|
326
329
|
declare const PatternPreviewBackground: (props: {
|
|
327
330
|
fillType: Sketch.PatternFillType;
|
|
328
331
|
tileScale: number;
|
|
329
332
|
imageRef: string;
|
|
330
333
|
}) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
331
|
-
interface Props$
|
|
334
|
+
interface Props$g {
|
|
332
335
|
value?: Sketch.Color | Sketch.Gradient | SketchPattern;
|
|
333
336
|
}
|
|
334
|
-
declare const FillPreviewBackground: (props: Props$
|
|
337
|
+
declare const FillPreviewBackground: (props: Props$g) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
335
338
|
|
|
336
339
|
interface FloatingWindowProps {
|
|
337
340
|
title?: string;
|
|
@@ -352,7 +355,7 @@ interface FloatingWindowProps {
|
|
|
352
355
|
}
|
|
353
356
|
declare const FloatingWindow: React__default.FC<FloatingWindowProps>;
|
|
354
357
|
|
|
355
|
-
interface Props$
|
|
358
|
+
interface Props$f {
|
|
356
359
|
value: Sketch.GradientStop[];
|
|
357
360
|
selectedStop: number;
|
|
358
361
|
onChangeColor: (color: Sketch.Color) => void;
|
|
@@ -361,7 +364,7 @@ interface Props$e {
|
|
|
361
364
|
onDelete: () => void;
|
|
362
365
|
onSelectStop: (index: number) => void;
|
|
363
366
|
}
|
|
364
|
-
declare const GradientPicker: (props: Props$
|
|
367
|
+
declare const GradientPicker: (props: Props$f) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
365
368
|
|
|
366
369
|
type GridProps = {
|
|
367
370
|
columns?: string;
|
|
@@ -437,7 +440,7 @@ declare const IconButton: (props: Omit<ButtonRootProps, "children" | "size" | "f
|
|
|
437
440
|
size?: number | undefined;
|
|
438
441
|
} & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
439
442
|
|
|
440
|
-
type Props$
|
|
443
|
+
type Props$e = {
|
|
441
444
|
id?: string;
|
|
442
445
|
style?: any;
|
|
443
446
|
className?: string;
|
|
@@ -455,13 +458,13 @@ type Props$d = {
|
|
|
455
458
|
onFocusChange?: (isFocused: boolean) => void;
|
|
456
459
|
onBlur?: FocusEventHandler;
|
|
457
460
|
} & Pick<InputHTMLAttributes<HTMLInputElement>, "autoComplete" | "autoCapitalize" | "autoCorrect" | "spellCheck" | "autoFocus">;
|
|
458
|
-
type ReadOnlyProps = Props$
|
|
461
|
+
type ReadOnlyProps = Props$e & {
|
|
459
462
|
readOnly: true;
|
|
460
463
|
};
|
|
461
|
-
type ControlledProps = Props$
|
|
464
|
+
type ControlledProps = Props$e & {
|
|
462
465
|
onChange: (value: string) => void;
|
|
463
466
|
};
|
|
464
|
-
type SubmittableProps = Props$
|
|
467
|
+
type SubmittableProps = Props$e & {
|
|
465
468
|
onSubmit: (value: string) => void;
|
|
466
469
|
allowSubmittingWithSameValue?: boolean;
|
|
467
470
|
submitAutomaticallyAfterDelay?: number;
|
|
@@ -678,6 +681,9 @@ type RenderProps<T> = {
|
|
|
678
681
|
type ListViewVariant = "normal" | "padded" | "bare";
|
|
679
682
|
type ListViewSectionHeaderVariant = "normal" | "label";
|
|
680
683
|
type ListViewRootProps = {
|
|
684
|
+
id?: string;
|
|
685
|
+
className?: string;
|
|
686
|
+
style?: CSSProperties;
|
|
681
687
|
onPress?: () => void;
|
|
682
688
|
scrollable?: boolean;
|
|
683
689
|
expandable?: boolean;
|
|
@@ -724,7 +730,7 @@ interface CompletionMenuProps {
|
|
|
724
730
|
listSize: Size;
|
|
725
731
|
}
|
|
726
732
|
declare const CompletionMenu: (props: CompletionMenuProps & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
727
|
-
type Props$
|
|
733
|
+
type Props$d = {
|
|
728
734
|
loading?: boolean;
|
|
729
735
|
initialValue?: string;
|
|
730
736
|
placeholder?: string;
|
|
@@ -747,7 +753,7 @@ interface IInputFieldWithCompletions {
|
|
|
747
753
|
setValue(value: string): void;
|
|
748
754
|
selectAllInputText(): void;
|
|
749
755
|
}
|
|
750
|
-
declare const InputFieldWithCompletions: (props: Props$
|
|
756
|
+
declare const InputFieldWithCompletions: (props: Props$d & React__default.RefAttributes<IInputFieldWithCompletions>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
751
757
|
|
|
752
758
|
declare const InspectorContainer: (props: {
|
|
753
759
|
header?: React__default.ReactNode;
|
|
@@ -780,7 +786,7 @@ interface ContainerProps {
|
|
|
780
786
|
declare const LabeledElementView: (props: ContainerProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
781
787
|
|
|
782
788
|
type PopoverVariant = "normal" | "large";
|
|
783
|
-
interface Props$
|
|
789
|
+
interface Props$c extends Pick<ComponentProps<(typeof PopoverPrimitive)["Content"]>, "onOpenAutoFocus" | "onCloseAutoFocus" | "onPointerDownOutside" | "onInteractOutside" | "onFocusOutside" | "side"> {
|
|
784
790
|
children: React__default.ReactNode;
|
|
785
791
|
trigger: React__default.ReactNode;
|
|
786
792
|
variant?: PopoverVariant;
|
|
@@ -791,7 +797,7 @@ interface Props$b extends Pick<ComponentProps<(typeof PopoverPrimitive)["Content
|
|
|
791
797
|
onClickClose?: () => void;
|
|
792
798
|
showArrow?: boolean;
|
|
793
799
|
}
|
|
794
|
-
declare function Popover({ children, trigger, variant, closable, open, side, sideOffset, showArrow, onOpenChange, onOpenAutoFocus, onCloseAutoFocus, onPointerDownOutside, onInteractOutside, onFocusOutside, onClickClose, }: Props$
|
|
800
|
+
declare function Popover({ children, trigger, variant, closable, open, side, sideOffset, showArrow, onOpenChange, onOpenAutoFocus, onCloseAutoFocus, onPointerDownOutside, onInteractOutside, onFocusOutside, onClickClose, }: Props$c): React__default.JSX.Element;
|
|
795
801
|
|
|
796
802
|
type ProgressVariant = 'normal' | 'warning' | 'primary' | 'secondary';
|
|
797
803
|
declare function Progress({ value, width, height, flex, variant, }: {
|
|
@@ -809,7 +815,7 @@ interface ItemProps {
|
|
|
809
815
|
children: ReactNode;
|
|
810
816
|
disabled?: boolean;
|
|
811
817
|
}
|
|
812
|
-
interface Props$
|
|
818
|
+
interface Props$b {
|
|
813
819
|
id?: string;
|
|
814
820
|
value?: string;
|
|
815
821
|
onValueChange?: (value: string) => void;
|
|
@@ -818,14 +824,14 @@ interface Props$a {
|
|
|
818
824
|
children: ReactNode;
|
|
819
825
|
}
|
|
820
826
|
declare namespace RadioGroup {
|
|
821
|
-
const Root: (props: Props$
|
|
827
|
+
const Root: (props: Props$b) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
822
828
|
const Item: (props: ItemProps & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
823
829
|
}
|
|
824
830
|
|
|
825
|
-
interface Props$
|
|
831
|
+
interface Props$a {
|
|
826
832
|
children?: ReactNode | ((scrollElementRef: HTMLDivElement) => ReactNode);
|
|
827
833
|
}
|
|
828
|
-
declare const ScrollArea: (props: Props$
|
|
834
|
+
declare const ScrollArea: (props: Props$a) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
829
835
|
|
|
830
836
|
interface SelectOptionProps<T extends string> {
|
|
831
837
|
value: T;
|
|
@@ -840,13 +846,24 @@ type ChildrenProps<T> = {
|
|
|
840
846
|
getTitle?: (option: T, index: number) => string;
|
|
841
847
|
onChange: (value: T) => void;
|
|
842
848
|
};
|
|
843
|
-
type Props$
|
|
849
|
+
type Props$9<T extends string> = ChildrenProps<T> & {
|
|
844
850
|
id: string;
|
|
845
851
|
flex?: CSSProperties["flex"];
|
|
846
852
|
value: T;
|
|
847
|
-
label?:
|
|
853
|
+
label?: ReactNode;
|
|
854
|
+
};
|
|
855
|
+
declare const Select: <T extends string>(props: Props$9<T>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
856
|
+
|
|
857
|
+
type Props$8<T extends string> = {
|
|
858
|
+
id?: string;
|
|
859
|
+
style?: React__default.CSSProperties;
|
|
860
|
+
className?: string;
|
|
861
|
+
menuItems: MenuItem<T>[];
|
|
862
|
+
value: T;
|
|
863
|
+
onSelect?: (value: T) => void;
|
|
864
|
+
placeholder?: string;
|
|
848
865
|
};
|
|
849
|
-
declare const
|
|
866
|
+
declare const SelectMenu: <T extends string = string>(props: Props$8<T>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
850
867
|
|
|
851
868
|
interface Props$7 {
|
|
852
869
|
id?: string;
|
|
@@ -993,6 +1010,8 @@ interface Props$3 extends StyleProps {
|
|
|
993
1010
|
children: ReactNode;
|
|
994
1011
|
onClick?: () => void;
|
|
995
1012
|
onDoubleClick?: () => void;
|
|
1013
|
+
onKeyDown?: (event: React__default.KeyboardEvent<HTMLSpanElement>) => void;
|
|
1014
|
+
tabIndex?: number;
|
|
996
1015
|
}
|
|
997
1016
|
declare const Text$1: (props: Props$3 & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
998
1017
|
type PresetProps = Omit<Props$3, "variant">;
|
|
@@ -1042,6 +1061,9 @@ declare namespace TreeView {
|
|
|
1042
1061
|
sortable?: boolean | undefined;
|
|
1043
1062
|
virtualized?: _noya_app_noya_geometry.Size | undefined;
|
|
1044
1063
|
}) & {
|
|
1064
|
+
id?: string | undefined;
|
|
1065
|
+
className?: string | undefined;
|
|
1066
|
+
style?: React__default.CSSProperties | undefined;
|
|
1045
1067
|
onPress?: (() => void) | undefined;
|
|
1046
1068
|
scrollable?: boolean | undefined;
|
|
1047
1069
|
expandable?: boolean | undefined;
|
|
@@ -1399,4 +1421,4 @@ declare module "react" {
|
|
|
1399
1421
|
function forwardRef<T, P = {}>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
|
|
1400
1422
|
}
|
|
1401
1423
|
|
|
1402
|
-
export { ActivityIndicator, ArrayController, type ArrayControllerProps, Avatar, AvatarStack, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, DesignSystemThemeProvider, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, DraggableMenuButton, type DropValidator, DropdownMenu, type EditableRowProps, type ExtractMenuItemType, FillInputField, FillPreviewBackground, FloatingWindow, FloatingWindowProvider, FullscreenDialog, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, type GridProps, GridView, type GridViewSize, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, type IInputFieldWithCompletions, type IScoredItem, type IToken, type IVirtualizedList, type IWorkspaceLayout, IconButton, type ImageDataContextValue, ImageDataProvider, InputElement, InputField, type InputFieldSize, InputFieldWithCompletions, InspectorContainer, InspectorPrimitives, Italic, KeyboardShortcut, Label, LabeledElementView, type ListRowMarginType, type ListRowPosition, ListView, type MatchRange, type MenuConfig, type MenuItem, type MenuItemProps, type MenuProps, type Optional, PatternPreviewBackground, Popover, Progress, RadioGroup, type RegularMenuItem, type RelativeDropPosition, Row$1 as Row, SEPARATOR_ITEM, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, ScrollArea, Select, SelectOption, type SetNumberMode, type SketchPattern, Slider, Small, Sortable, Spacer, Stack, type StackBreakpointList, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text$1 as Text, type TextBreakpointList, type Theme, type ThemeColorName, Toast, ToastProvider, Tooltip, TreeView, WorkspaceLayout, createSectionedMenu, dark as darkTheme, fuzzyFilter, fuzzyScore, fuzzyTokenize, getGradientBackground, getNewValue, lightTheme, mediaQuery, normalizeListDestinationIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
|
|
1424
|
+
export { ActivityIndicator, ArrayController, type ArrayControllerProps, Avatar, AvatarStack, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, DesignSystemThemeProvider, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, DraggableMenuButton, type DropValidator, DropdownMenu, type EditableRowProps, type ExtractMenuItemType, FillInputField, FillPreviewBackground, FloatingWindow, FloatingWindowProvider, FullscreenDialog, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, type GridProps, GridView, type GridViewSize, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, type IInputFieldWithCompletions, type IScoredItem, type IToken, type IVirtualizedList, type IWorkspaceLayout, IconButton, type ImageDataContextValue, ImageDataProvider, InputElement, InputField, type InputFieldSize, InputFieldWithCompletions, InspectorContainer, InspectorPrimitives, Italic, KeyboardShortcut, Label, LabeledElementView, type ListRowMarginType, type ListRowPosition, ListView, type MatchRange, type MenuConfig, type MenuItem, type MenuItemProps, type MenuProps, type Optional, PatternPreviewBackground, Popover, Progress, RadioGroup, type RegularMenuItem, type RelativeDropPosition, Row$1 as Row, SEPARATOR_ITEM, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, ScrollArea, Select, SelectMenu, SelectOption, type SetNumberMode, type SketchPattern, Slider, Small, Sortable, Spacer, Stack, type StackBreakpointList, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text$1 as Text, type TextBreakpointList, type Theme, type ThemeColorName, Toast, ToastProvider, Tooltip, TreeView, WorkspaceLayout, createSectionedMenu, dark as darkTheme, fuzzyFilter, fuzzyScore, fuzzyTokenize, getGradientBackground, getNewValue, lightTheme, mediaQuery, normalizeListDestinationIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { CSSProperties, ReactNode,
|
|
2
|
+
import React__default, { CSSProperties, ReactNode, ComponentProps, AriaRole, KeyboardEventHandler, MouseEventHandler, PointerEventHandler, FocusEventHandler, InputHTMLAttributes, Ref, ReactHTML } from 'react';
|
|
3
3
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
4
4
|
import * as styled_components from 'styled-components';
|
|
5
5
|
import { CSSObject, CSSProperties as CSSProperties$1 } from 'styled-components';
|
|
@@ -18,13 +18,13 @@ import { useSortable } from '@dnd-kit/sortable';
|
|
|
18
18
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
19
19
|
import { RgbaColor } from '@noya-app/noya-colorpicker';
|
|
20
20
|
|
|
21
|
-
interface Props$
|
|
21
|
+
interface Props$j {
|
|
22
22
|
size?: number;
|
|
23
23
|
opacity?: number;
|
|
24
24
|
color?: string;
|
|
25
25
|
trackColor?: string;
|
|
26
26
|
}
|
|
27
|
-
declare const ActivityIndicator: (props: Props$
|
|
27
|
+
declare const ActivityIndicator: (props: Props$j) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
28
28
|
|
|
29
29
|
declare const Avatar: (props: {
|
|
30
30
|
image?: string | undefined;
|
|
@@ -76,10 +76,13 @@ type ChipColorScheme = "primary" | "secondary" | "error";
|
|
|
76
76
|
type ChipSize = "small" | "medium";
|
|
77
77
|
type ChipVariant = "solid" | "outlined" | "ghost";
|
|
78
78
|
interface ChipProps {
|
|
79
|
+
id?: string;
|
|
80
|
+
className?: string;
|
|
79
81
|
colorScheme?: ChipColorScheme;
|
|
80
82
|
variant?: ChipVariant;
|
|
81
83
|
size?: ChipSize;
|
|
82
84
|
children?: React__default.ReactNode;
|
|
85
|
+
clickable?: boolean;
|
|
83
86
|
deletable?: boolean;
|
|
84
87
|
addable?: boolean;
|
|
85
88
|
monospace?: boolean;
|
|
@@ -90,7 +93,7 @@ interface ChipProps {
|
|
|
90
93
|
style?: React__default.CSSProperties;
|
|
91
94
|
tabIndex?: number;
|
|
92
95
|
}
|
|
93
|
-
declare const Chip: (props: ChipProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
96
|
+
declare const Chip: (props: ChipProps & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
94
97
|
|
|
95
98
|
declare const name$1: string;
|
|
96
99
|
declare const colors$1: {
|
|
@@ -234,7 +237,7 @@ type RegularMenuItem<T extends string> = {
|
|
|
234
237
|
shortcut?: string;
|
|
235
238
|
checked?: boolean;
|
|
236
239
|
disabled?: boolean;
|
|
237
|
-
icon?:
|
|
240
|
+
icon?: ReactNode;
|
|
238
241
|
items?: MenuItem<T>[];
|
|
239
242
|
role?: MenuItemRole;
|
|
240
243
|
};
|
|
@@ -252,7 +255,7 @@ interface MenuItemProps<T extends string> {
|
|
|
252
255
|
disabled: boolean;
|
|
253
256
|
indented: boolean;
|
|
254
257
|
shortcut?: string;
|
|
255
|
-
icon?:
|
|
258
|
+
icon?: ReactNode;
|
|
256
259
|
items?: MenuItem<T>[];
|
|
257
260
|
}
|
|
258
261
|
interface MenuProps<T extends string> {
|
|
@@ -270,7 +273,7 @@ declare const CloseButtonContainer: styled_components_dist_types.IStyledComponen
|
|
|
270
273
|
interface IDialog {
|
|
271
274
|
containsElement: (element: HTMLElement) => boolean;
|
|
272
275
|
}
|
|
273
|
-
interface Props$
|
|
276
|
+
interface Props$i {
|
|
274
277
|
title?: ReactNode;
|
|
275
278
|
description?: ReactNode;
|
|
276
279
|
children?: ReactNode;
|
|
@@ -280,8 +283,8 @@ interface Props$h {
|
|
|
280
283
|
onOpenAutoFocus?: ComponentProps<typeof DialogPrimitive.Content>["onOpenAutoFocus"];
|
|
281
284
|
closeOnInteractOutside?: boolean;
|
|
282
285
|
}
|
|
283
|
-
declare const Dialog: (props: Props$
|
|
284
|
-
declare const FullscreenDialog: (props: Props$
|
|
286
|
+
declare const Dialog: (props: Props$i & React__default.RefAttributes<IDialog>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
287
|
+
declare const FullscreenDialog: (props: Props$i & React__default.RefAttributes<IDialog>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
285
288
|
|
|
286
289
|
type DividerVariant = "normal" | "strong" | "subtle";
|
|
287
290
|
interface DividerProps {
|
|
@@ -316,22 +319,22 @@ type SketchPattern = {
|
|
|
316
319
|
patternTileScale: number;
|
|
317
320
|
};
|
|
318
321
|
|
|
319
|
-
interface Props$
|
|
322
|
+
interface Props$h {
|
|
320
323
|
id?: string;
|
|
321
324
|
value?: Sketch.Color | Sketch.Gradient | SketchPattern;
|
|
322
325
|
flex?: CSSProperties["flex"];
|
|
323
326
|
}
|
|
324
|
-
declare const FillInputField: (props: Props$
|
|
327
|
+
declare const FillInputField: (props: Props$h & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
325
328
|
|
|
326
329
|
declare const PatternPreviewBackground: (props: {
|
|
327
330
|
fillType: Sketch.PatternFillType;
|
|
328
331
|
tileScale: number;
|
|
329
332
|
imageRef: string;
|
|
330
333
|
}) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
331
|
-
interface Props$
|
|
334
|
+
interface Props$g {
|
|
332
335
|
value?: Sketch.Color | Sketch.Gradient | SketchPattern;
|
|
333
336
|
}
|
|
334
|
-
declare const FillPreviewBackground: (props: Props$
|
|
337
|
+
declare const FillPreviewBackground: (props: Props$g) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
335
338
|
|
|
336
339
|
interface FloatingWindowProps {
|
|
337
340
|
title?: string;
|
|
@@ -352,7 +355,7 @@ interface FloatingWindowProps {
|
|
|
352
355
|
}
|
|
353
356
|
declare const FloatingWindow: React__default.FC<FloatingWindowProps>;
|
|
354
357
|
|
|
355
|
-
interface Props$
|
|
358
|
+
interface Props$f {
|
|
356
359
|
value: Sketch.GradientStop[];
|
|
357
360
|
selectedStop: number;
|
|
358
361
|
onChangeColor: (color: Sketch.Color) => void;
|
|
@@ -361,7 +364,7 @@ interface Props$e {
|
|
|
361
364
|
onDelete: () => void;
|
|
362
365
|
onSelectStop: (index: number) => void;
|
|
363
366
|
}
|
|
364
|
-
declare const GradientPicker: (props: Props$
|
|
367
|
+
declare const GradientPicker: (props: Props$f) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
365
368
|
|
|
366
369
|
type GridProps = {
|
|
367
370
|
columns?: string;
|
|
@@ -437,7 +440,7 @@ declare const IconButton: (props: Omit<ButtonRootProps, "children" | "size" | "f
|
|
|
437
440
|
size?: number | undefined;
|
|
438
441
|
} & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
439
442
|
|
|
440
|
-
type Props$
|
|
443
|
+
type Props$e = {
|
|
441
444
|
id?: string;
|
|
442
445
|
style?: any;
|
|
443
446
|
className?: string;
|
|
@@ -455,13 +458,13 @@ type Props$d = {
|
|
|
455
458
|
onFocusChange?: (isFocused: boolean) => void;
|
|
456
459
|
onBlur?: FocusEventHandler;
|
|
457
460
|
} & Pick<InputHTMLAttributes<HTMLInputElement>, "autoComplete" | "autoCapitalize" | "autoCorrect" | "spellCheck" | "autoFocus">;
|
|
458
|
-
type ReadOnlyProps = Props$
|
|
461
|
+
type ReadOnlyProps = Props$e & {
|
|
459
462
|
readOnly: true;
|
|
460
463
|
};
|
|
461
|
-
type ControlledProps = Props$
|
|
464
|
+
type ControlledProps = Props$e & {
|
|
462
465
|
onChange: (value: string) => void;
|
|
463
466
|
};
|
|
464
|
-
type SubmittableProps = Props$
|
|
467
|
+
type SubmittableProps = Props$e & {
|
|
465
468
|
onSubmit: (value: string) => void;
|
|
466
469
|
allowSubmittingWithSameValue?: boolean;
|
|
467
470
|
submitAutomaticallyAfterDelay?: number;
|
|
@@ -678,6 +681,9 @@ type RenderProps<T> = {
|
|
|
678
681
|
type ListViewVariant = "normal" | "padded" | "bare";
|
|
679
682
|
type ListViewSectionHeaderVariant = "normal" | "label";
|
|
680
683
|
type ListViewRootProps = {
|
|
684
|
+
id?: string;
|
|
685
|
+
className?: string;
|
|
686
|
+
style?: CSSProperties;
|
|
681
687
|
onPress?: () => void;
|
|
682
688
|
scrollable?: boolean;
|
|
683
689
|
expandable?: boolean;
|
|
@@ -724,7 +730,7 @@ interface CompletionMenuProps {
|
|
|
724
730
|
listSize: Size;
|
|
725
731
|
}
|
|
726
732
|
declare const CompletionMenu: (props: CompletionMenuProps & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
727
|
-
type Props$
|
|
733
|
+
type Props$d = {
|
|
728
734
|
loading?: boolean;
|
|
729
735
|
initialValue?: string;
|
|
730
736
|
placeholder?: string;
|
|
@@ -747,7 +753,7 @@ interface IInputFieldWithCompletions {
|
|
|
747
753
|
setValue(value: string): void;
|
|
748
754
|
selectAllInputText(): void;
|
|
749
755
|
}
|
|
750
|
-
declare const InputFieldWithCompletions: (props: Props$
|
|
756
|
+
declare const InputFieldWithCompletions: (props: Props$d & React__default.RefAttributes<IInputFieldWithCompletions>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
751
757
|
|
|
752
758
|
declare const InspectorContainer: (props: {
|
|
753
759
|
header?: React__default.ReactNode;
|
|
@@ -780,7 +786,7 @@ interface ContainerProps {
|
|
|
780
786
|
declare const LabeledElementView: (props: ContainerProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
781
787
|
|
|
782
788
|
type PopoverVariant = "normal" | "large";
|
|
783
|
-
interface Props$
|
|
789
|
+
interface Props$c extends Pick<ComponentProps<(typeof PopoverPrimitive)["Content"]>, "onOpenAutoFocus" | "onCloseAutoFocus" | "onPointerDownOutside" | "onInteractOutside" | "onFocusOutside" | "side"> {
|
|
784
790
|
children: React__default.ReactNode;
|
|
785
791
|
trigger: React__default.ReactNode;
|
|
786
792
|
variant?: PopoverVariant;
|
|
@@ -791,7 +797,7 @@ interface Props$b extends Pick<ComponentProps<(typeof PopoverPrimitive)["Content
|
|
|
791
797
|
onClickClose?: () => void;
|
|
792
798
|
showArrow?: boolean;
|
|
793
799
|
}
|
|
794
|
-
declare function Popover({ children, trigger, variant, closable, open, side, sideOffset, showArrow, onOpenChange, onOpenAutoFocus, onCloseAutoFocus, onPointerDownOutside, onInteractOutside, onFocusOutside, onClickClose, }: Props$
|
|
800
|
+
declare function Popover({ children, trigger, variant, closable, open, side, sideOffset, showArrow, onOpenChange, onOpenAutoFocus, onCloseAutoFocus, onPointerDownOutside, onInteractOutside, onFocusOutside, onClickClose, }: Props$c): React__default.JSX.Element;
|
|
795
801
|
|
|
796
802
|
type ProgressVariant = 'normal' | 'warning' | 'primary' | 'secondary';
|
|
797
803
|
declare function Progress({ value, width, height, flex, variant, }: {
|
|
@@ -809,7 +815,7 @@ interface ItemProps {
|
|
|
809
815
|
children: ReactNode;
|
|
810
816
|
disabled?: boolean;
|
|
811
817
|
}
|
|
812
|
-
interface Props$
|
|
818
|
+
interface Props$b {
|
|
813
819
|
id?: string;
|
|
814
820
|
value?: string;
|
|
815
821
|
onValueChange?: (value: string) => void;
|
|
@@ -818,14 +824,14 @@ interface Props$a {
|
|
|
818
824
|
children: ReactNode;
|
|
819
825
|
}
|
|
820
826
|
declare namespace RadioGroup {
|
|
821
|
-
const Root: (props: Props$
|
|
827
|
+
const Root: (props: Props$b) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
822
828
|
const Item: (props: ItemProps & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
823
829
|
}
|
|
824
830
|
|
|
825
|
-
interface Props$
|
|
831
|
+
interface Props$a {
|
|
826
832
|
children?: ReactNode | ((scrollElementRef: HTMLDivElement) => ReactNode);
|
|
827
833
|
}
|
|
828
|
-
declare const ScrollArea: (props: Props$
|
|
834
|
+
declare const ScrollArea: (props: Props$a) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
829
835
|
|
|
830
836
|
interface SelectOptionProps<T extends string> {
|
|
831
837
|
value: T;
|
|
@@ -840,13 +846,24 @@ type ChildrenProps<T> = {
|
|
|
840
846
|
getTitle?: (option: T, index: number) => string;
|
|
841
847
|
onChange: (value: T) => void;
|
|
842
848
|
};
|
|
843
|
-
type Props$
|
|
849
|
+
type Props$9<T extends string> = ChildrenProps<T> & {
|
|
844
850
|
id: string;
|
|
845
851
|
flex?: CSSProperties["flex"];
|
|
846
852
|
value: T;
|
|
847
|
-
label?:
|
|
853
|
+
label?: ReactNode;
|
|
854
|
+
};
|
|
855
|
+
declare const Select: <T extends string>(props: Props$9<T>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
856
|
+
|
|
857
|
+
type Props$8<T extends string> = {
|
|
858
|
+
id?: string;
|
|
859
|
+
style?: React__default.CSSProperties;
|
|
860
|
+
className?: string;
|
|
861
|
+
menuItems: MenuItem<T>[];
|
|
862
|
+
value: T;
|
|
863
|
+
onSelect?: (value: T) => void;
|
|
864
|
+
placeholder?: string;
|
|
848
865
|
};
|
|
849
|
-
declare const
|
|
866
|
+
declare const SelectMenu: <T extends string = string>(props: Props$8<T>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
850
867
|
|
|
851
868
|
interface Props$7 {
|
|
852
869
|
id?: string;
|
|
@@ -993,6 +1010,8 @@ interface Props$3 extends StyleProps {
|
|
|
993
1010
|
children: ReactNode;
|
|
994
1011
|
onClick?: () => void;
|
|
995
1012
|
onDoubleClick?: () => void;
|
|
1013
|
+
onKeyDown?: (event: React__default.KeyboardEvent<HTMLSpanElement>) => void;
|
|
1014
|
+
tabIndex?: number;
|
|
996
1015
|
}
|
|
997
1016
|
declare const Text$1: (props: Props$3 & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
998
1017
|
type PresetProps = Omit<Props$3, "variant">;
|
|
@@ -1042,6 +1061,9 @@ declare namespace TreeView {
|
|
|
1042
1061
|
sortable?: boolean | undefined;
|
|
1043
1062
|
virtualized?: _noya_app_noya_geometry.Size | undefined;
|
|
1044
1063
|
}) & {
|
|
1064
|
+
id?: string | undefined;
|
|
1065
|
+
className?: string | undefined;
|
|
1066
|
+
style?: React__default.CSSProperties | undefined;
|
|
1045
1067
|
onPress?: (() => void) | undefined;
|
|
1046
1068
|
scrollable?: boolean | undefined;
|
|
1047
1069
|
expandable?: boolean | undefined;
|
|
@@ -1399,4 +1421,4 @@ declare module "react" {
|
|
|
1399
1421
|
function forwardRef<T, P = {}>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
|
|
1400
1422
|
}
|
|
1401
1423
|
|
|
1402
|
-
export { ActivityIndicator, ArrayController, type ArrayControllerProps, Avatar, AvatarStack, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, DesignSystemThemeProvider, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, DraggableMenuButton, type DropValidator, DropdownMenu, type EditableRowProps, type ExtractMenuItemType, FillInputField, FillPreviewBackground, FloatingWindow, FloatingWindowProvider, FullscreenDialog, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, type GridProps, GridView, type GridViewSize, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, type IInputFieldWithCompletions, type IScoredItem, type IToken, type IVirtualizedList, type IWorkspaceLayout, IconButton, type ImageDataContextValue, ImageDataProvider, InputElement, InputField, type InputFieldSize, InputFieldWithCompletions, InspectorContainer, InspectorPrimitives, Italic, KeyboardShortcut, Label, LabeledElementView, type ListRowMarginType, type ListRowPosition, ListView, type MatchRange, type MenuConfig, type MenuItem, type MenuItemProps, type MenuProps, type Optional, PatternPreviewBackground, Popover, Progress, RadioGroup, type RegularMenuItem, type RelativeDropPosition, Row$1 as Row, SEPARATOR_ITEM, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, ScrollArea, Select, SelectOption, type SetNumberMode, type SketchPattern, Slider, Small, Sortable, Spacer, Stack, type StackBreakpointList, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text$1 as Text, type TextBreakpointList, type Theme, type ThemeColorName, Toast, ToastProvider, Tooltip, TreeView, WorkspaceLayout, createSectionedMenu, dark as darkTheme, fuzzyFilter, fuzzyScore, fuzzyTokenize, getGradientBackground, getNewValue, lightTheme, mediaQuery, normalizeListDestinationIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
|
|
1424
|
+
export { ActivityIndicator, ArrayController, type ArrayControllerProps, Avatar, AvatarStack, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, DesignSystemThemeProvider, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, DraggableMenuButton, type DropValidator, DropdownMenu, type EditableRowProps, type ExtractMenuItemType, FillInputField, FillPreviewBackground, FloatingWindow, FloatingWindowProvider, FullscreenDialog, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, type GridProps, GridView, type GridViewSize, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, type IInputFieldWithCompletions, type IScoredItem, type IToken, type IVirtualizedList, type IWorkspaceLayout, IconButton, type ImageDataContextValue, ImageDataProvider, InputElement, InputField, type InputFieldSize, InputFieldWithCompletions, InspectorContainer, InspectorPrimitives, Italic, KeyboardShortcut, Label, LabeledElementView, type ListRowMarginType, type ListRowPosition, ListView, type MatchRange, type MenuConfig, type MenuItem, type MenuItemProps, type MenuProps, type Optional, PatternPreviewBackground, Popover, Progress, RadioGroup, type RegularMenuItem, type RelativeDropPosition, Row$1 as Row, SEPARATOR_ITEM, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, ScrollArea, Select, SelectMenu, SelectOption, type SetNumberMode, type SketchPattern, Slider, Small, Sortable, Spacer, Stack, type StackBreakpointList, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text$1 as Text, type TextBreakpointList, type Theme, type ThemeColorName, Toast, ToastProvider, Tooltip, TreeView, WorkspaceLayout, createSectionedMenu, dark as darkTheme, fuzzyFilter, fuzzyScore, fuzzyTokenize, getGradientBackground, getNewValue, lightTheme, mediaQuery, normalizeListDestinationIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
|