@noya-app/noya-designsystem 0.1.30 → 0.1.31
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/.turbo/turbo-lint.log +13 -0
- package/CHANGELOG.md +10 -0
- package/dist/index.d.mts +167 -179
- package/dist/index.d.ts +167 -179
- package/dist/index.js +253 -307
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +244 -303
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
- package/src/components/Button.tsx +5 -3
- package/src/components/InputField.tsx +115 -88
- package/src/components/SelectMenu.tsx +69 -12
- package/src/components/Stack.tsx +10 -1
- package/src/components/WorkspaceLayout.tsx +24 -4
- package/src/index.tsx +1 -1
- package/tailwind.config.ts +283 -0
- package/tailwind.d.ts +11 -0
- package/tsconfig.json +4 -1
- package/src/components/Select.tsx +0 -183
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { CSSProperties, ReactNode, ComponentProps, AriaRole, KeyboardEventHandler, MouseEventHandler, PointerEventHandler, FocusEventHandler, InputHTMLAttributes, Ref, ReactHTML } from 'react';
|
|
2
|
+
import React__default, { CSSProperties, ReactNode, ComponentProps, SyntheticEvent, 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';
|
|
@@ -8,47 +8,48 @@ export { Icons };
|
|
|
8
8
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
9
9
|
import * as RadixDropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
10
10
|
import { Sketch } from '@noya-app/noya-file-format';
|
|
11
|
-
import * as csstype from 'csstype';
|
|
12
|
-
import { Property } from 'csstype';
|
|
13
11
|
import * as _noya_app_noya_keymap from '@noya-app/noya-keymap';
|
|
14
12
|
import { KeyModifiers, PlatformName } from '@noya-app/noya-keymap';
|
|
13
|
+
import { Property } from 'csstype';
|
|
15
14
|
import * as _noya_app_noya_geometry from '@noya-app/noya-geometry';
|
|
16
15
|
import { Size } from '@noya-app/noya-geometry';
|
|
17
16
|
import { IItemScore } from 'vscode-fuzzy-scorer';
|
|
18
17
|
import { useSortable } from '@dnd-kit/sortable';
|
|
19
18
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
19
|
+
import { SelectProps } from '@radix-ui/react-select';
|
|
20
|
+
import { ImperativePanelGroupHandle } from 'react-resizable-panels';
|
|
20
21
|
import { RgbaColor } from '@noya-app/noya-colorpicker';
|
|
21
22
|
|
|
22
|
-
interface Props$
|
|
23
|
+
interface Props$i {
|
|
23
24
|
size?: number;
|
|
24
25
|
opacity?: number;
|
|
25
26
|
color?: string;
|
|
26
27
|
trackColor?: string;
|
|
27
28
|
}
|
|
28
|
-
declare const ActivityIndicator: (props: Props$
|
|
29
|
+
declare const ActivityIndicator: (props: Props$i) => React__default.ReactElement | null;
|
|
29
30
|
|
|
30
31
|
declare const Avatar: (props: {
|
|
31
|
-
image?: string
|
|
32
|
-
name?: string
|
|
33
|
-
fallback?: string
|
|
34
|
-
size?: number
|
|
35
|
-
overflow?: number
|
|
36
|
-
style?: React__default.CSSProperties
|
|
37
|
-
className?: string
|
|
38
|
-
} & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement
|
|
32
|
+
image?: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
fallback?: string;
|
|
35
|
+
size?: number;
|
|
36
|
+
overflow?: number;
|
|
37
|
+
style?: React__default.CSSProperties;
|
|
38
|
+
className?: string;
|
|
39
|
+
} & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement | null;
|
|
39
40
|
declare function AvatarStack({ size, children, }: {
|
|
40
41
|
size?: number;
|
|
41
42
|
children: React__default.ReactNode;
|
|
42
43
|
}): React__default.JSX.Element;
|
|
43
44
|
|
|
44
45
|
type ButtonVariant = "normal" | "primary" | "primaryGradient" | "secondary" | "secondaryBright" | "white" | "thin" | "floating" | "none";
|
|
45
|
-
type ButtonSize = "normal" | "large";
|
|
46
|
+
type ButtonSize = "small" | "normal" | "large";
|
|
46
47
|
declare const ButtonElement: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
47
48
|
$active: boolean;
|
|
48
49
|
$variant: ButtonVariant;
|
|
49
50
|
$size: ButtonSize;
|
|
50
51
|
$flex?: CSSProperties["flex"];
|
|
51
|
-
$defaultBackground?: string
|
|
52
|
+
$defaultBackground?: string;
|
|
52
53
|
}>> & string;
|
|
53
54
|
interface ButtonRootProps {
|
|
54
55
|
id?: string;
|
|
@@ -59,7 +60,9 @@ interface ButtonRootProps {
|
|
|
59
60
|
children: ReactNode;
|
|
60
61
|
active?: boolean;
|
|
61
62
|
disabled?: boolean;
|
|
63
|
+
/** @default normal */
|
|
62
64
|
variant?: ButtonVariant;
|
|
65
|
+
/** @default normal */
|
|
63
66
|
size?: ButtonSize;
|
|
64
67
|
tooltip?: ReactNode;
|
|
65
68
|
onClick?: (event: React__default.MouseEvent) => void;
|
|
@@ -72,7 +75,7 @@ interface ButtonRootProps {
|
|
|
72
75
|
target?: string;
|
|
73
76
|
rel?: string;
|
|
74
77
|
}
|
|
75
|
-
declare const Button: (props: ButtonRootProps & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement
|
|
78
|
+
declare const Button: (props: ButtonRootProps & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement | null;
|
|
76
79
|
|
|
77
80
|
type ChipColorScheme = "primary" | "secondary" | "error";
|
|
78
81
|
type ChipSize = "small" | "medium" | "large";
|
|
@@ -95,7 +98,7 @@ interface ChipProps {
|
|
|
95
98
|
style?: React__default.CSSProperties;
|
|
96
99
|
tabIndex?: number;
|
|
97
100
|
}
|
|
98
|
-
declare const Chip: (props: ChipProps & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement
|
|
101
|
+
declare const Chip: (props: ChipProps & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement | null;
|
|
99
102
|
|
|
100
103
|
declare const name$1: string;
|
|
101
104
|
declare const colors$1: {
|
|
@@ -263,7 +266,7 @@ type MenuItem<T extends string> = typeof SEPARATOR_ITEM | RegularMenuItem<T>;
|
|
|
263
266
|
type ExtractMenuItemType<T> = T extends RegularMenuItem<infer U> ? U : never;
|
|
264
267
|
declare const KeyboardShortcut: (props: {
|
|
265
268
|
shortcut: string;
|
|
266
|
-
}) => React__default.ReactElement
|
|
269
|
+
}) => React__default.ReactElement | null;
|
|
267
270
|
|
|
268
271
|
interface MenuItemProps<T extends string> {
|
|
269
272
|
value?: T;
|
|
@@ -284,14 +287,14 @@ interface MenuProps<T extends string> {
|
|
|
284
287
|
shouldBindKeyboardShortcuts?: boolean;
|
|
285
288
|
onOpenChange?: (open: boolean) => void;
|
|
286
289
|
}
|
|
287
|
-
declare const ContextMenu: <T extends string>(props: MenuProps<T>) => React__default.ReactElement
|
|
290
|
+
declare const ContextMenu: <T extends string>(props: MenuProps<T>) => React__default.ReactElement | null;
|
|
288
291
|
|
|
289
292
|
declare const StyledContent: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<DialogPrimitive.DialogContentProps & React__default.RefAttributes<HTMLDivElement>, never>> & string & Omit<React__default.ForwardRefExoticComponent<DialogPrimitive.DialogContentProps & React__default.RefAttributes<HTMLDivElement>>, keyof React__default.Component<any, {}, any>>;
|
|
290
293
|
declare const CloseButtonContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
291
294
|
interface IDialog {
|
|
292
295
|
containsElement: (element: HTMLElement) => boolean;
|
|
293
296
|
}
|
|
294
|
-
interface Props$
|
|
297
|
+
interface Props$h {
|
|
295
298
|
title?: ReactNode;
|
|
296
299
|
description?: ReactNode;
|
|
297
300
|
children?: ReactNode;
|
|
@@ -301,30 +304,30 @@ interface Props$i {
|
|
|
301
304
|
onOpenAutoFocus?: ComponentProps<typeof DialogPrimitive.Content>["onOpenAutoFocus"];
|
|
302
305
|
closeOnInteractOutside?: boolean;
|
|
303
306
|
}
|
|
304
|
-
declare const Dialog: (props: Props$
|
|
305
|
-
declare const FullscreenDialog: (props: Props$
|
|
307
|
+
declare const Dialog: (props: Props$h & React__default.RefAttributes<IDialog>) => React__default.ReactElement | null;
|
|
308
|
+
declare const FullscreenDialog: (props: Props$h & React__default.RefAttributes<IDialog>) => React__default.ReactElement | null;
|
|
306
309
|
|
|
307
310
|
type DividerVariant = "normal" | "strong" | "subtle";
|
|
308
311
|
interface DividerProps {
|
|
309
312
|
variant?: DividerVariant;
|
|
310
313
|
overflow?: number;
|
|
311
314
|
}
|
|
312
|
-
declare const Divider: (props: DividerProps) => React__default.ReactElement
|
|
313
|
-
declare const DividerVertical: (props: DividerProps) => React__default.ReactElement
|
|
315
|
+
declare const Divider: (props: DividerProps) => React__default.ReactElement | null;
|
|
316
|
+
declare const DividerVertical: (props: DividerProps) => React__default.ReactElement | null;
|
|
314
317
|
|
|
315
318
|
/**
|
|
316
319
|
* A button that opens a menu when clicked, but also allows dragging the
|
|
317
320
|
*/
|
|
318
321
|
declare const DraggableMenuButton: <T extends string>(props: {
|
|
319
|
-
items?: MenuItem<T>[]
|
|
320
|
-
onSelect?: (
|
|
321
|
-
isVisible?: boolean
|
|
322
|
-
}) => React__default.ReactElement
|
|
322
|
+
items?: MenuItem<T>[];
|
|
323
|
+
onSelect?: (value: T) => void;
|
|
324
|
+
isVisible?: boolean;
|
|
325
|
+
}) => React__default.ReactElement | null;
|
|
323
326
|
|
|
324
327
|
declare const DropdownMenu: <T extends string>(props: MenuProps<T> & {
|
|
325
|
-
open?: boolean
|
|
326
|
-
onCloseAutoFocus?:
|
|
327
|
-
} & Pick<RadixDropdownMenu.DropdownMenuContentProps & React__default.RefAttributes<HTMLDivElement>, "align" | "side" | "sideOffset" | "alignOffset" | "collisionPadding"> & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement
|
|
328
|
+
open?: boolean;
|
|
329
|
+
onCloseAutoFocus?: React__default.EventHandler<SyntheticEvent<unknown>>;
|
|
330
|
+
} & Pick<RadixDropdownMenu.DropdownMenuContentProps & React__default.RefAttributes<HTMLDivElement>, "align" | "side" | "sideOffset" | "alignOffset" | "collisionPadding"> & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
|
|
328
331
|
|
|
329
332
|
declare const SUPPORTED_IMAGE_UPLOAD_TYPES: ("image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/pdf")[];
|
|
330
333
|
declare const SUPPORTED_CANVAS_UPLOAD_TYPES: ("" | "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/pdf")[];
|
|
@@ -337,22 +340,22 @@ type SketchPattern = {
|
|
|
337
340
|
patternTileScale: number;
|
|
338
341
|
};
|
|
339
342
|
|
|
340
|
-
interface Props$
|
|
343
|
+
interface Props$g {
|
|
341
344
|
id?: string;
|
|
342
345
|
value?: Sketch.Color | Sketch.Gradient | SketchPattern;
|
|
343
346
|
flex?: CSSProperties["flex"];
|
|
344
347
|
}
|
|
345
|
-
declare const FillInputField: (props: Props$
|
|
348
|
+
declare const FillInputField: (props: Props$g & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement | null;
|
|
346
349
|
|
|
347
350
|
declare const PatternPreviewBackground: (props: {
|
|
348
351
|
fillType: Sketch.PatternFillType;
|
|
349
352
|
tileScale: number;
|
|
350
353
|
imageRef: string;
|
|
351
|
-
}) => React__default.ReactElement
|
|
352
|
-
interface Props$
|
|
354
|
+
}) => React__default.ReactElement | null;
|
|
355
|
+
interface Props$f {
|
|
353
356
|
value?: Sketch.Color | Sketch.Gradient | SketchPattern;
|
|
354
357
|
}
|
|
355
|
-
declare const FillPreviewBackground: (props: Props$
|
|
358
|
+
declare const FillPreviewBackground: (props: Props$f) => React__default.ReactElement | null;
|
|
356
359
|
|
|
357
360
|
interface FloatingWindowProps {
|
|
358
361
|
title?: string;
|
|
@@ -373,7 +376,7 @@ interface FloatingWindowProps {
|
|
|
373
376
|
}
|
|
374
377
|
declare const FloatingWindow: React__default.FC<FloatingWindowProps>;
|
|
375
378
|
|
|
376
|
-
interface Props$
|
|
379
|
+
interface Props$e {
|
|
377
380
|
value: Sketch.GradientStop[];
|
|
378
381
|
selectedStop: number;
|
|
379
382
|
onChangeColor: (color: Sketch.Color) => void;
|
|
@@ -382,7 +385,7 @@ interface Props$f {
|
|
|
382
385
|
onDelete: () => void;
|
|
383
386
|
onSelectStop: (index: number) => void;
|
|
384
387
|
}
|
|
385
|
-
declare const GradientPicker: (props: Props$
|
|
388
|
+
declare const GradientPicker: (props: Props$e) => React__default.ReactElement | null;
|
|
386
389
|
|
|
387
390
|
type GridProps = {
|
|
388
391
|
columns?: string;
|
|
@@ -438,27 +441,27 @@ interface GridViewRootProps extends Partial<GridViewContextValue> {
|
|
|
438
441
|
scrollable?: boolean;
|
|
439
442
|
}
|
|
440
443
|
declare namespace GridView {
|
|
441
|
-
const Root: (props: GridViewRootProps) => React__default.ReactElement
|
|
442
|
-
const Item: <MenuItemType extends string>(props: ItemProps$2<MenuItemType> & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement
|
|
444
|
+
const Root: (props: GridViewRootProps) => React__default.ReactElement | null;
|
|
445
|
+
const Item: <MenuItemType extends string>(props: ItemProps$2<MenuItemType> & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement | null;
|
|
443
446
|
const Section: (props: {
|
|
444
|
-
children?:
|
|
445
|
-
padding?:
|
|
446
|
-
}) => React__default.ReactElement
|
|
447
|
+
children?: ReactNode;
|
|
448
|
+
padding?: CSSProperties["padding"];
|
|
449
|
+
}) => React__default.ReactElement | null;
|
|
447
450
|
const SectionHeader: (props: {
|
|
448
451
|
title: string;
|
|
449
|
-
}) => React__default.ReactElement
|
|
452
|
+
}) => React__default.ReactElement | null;
|
|
450
453
|
}
|
|
451
454
|
|
|
452
455
|
declare const IconButton: (props: Omit<ButtonRootProps, "children" | "size" | "flex" | "variant"> & {
|
|
453
456
|
iconName: IconName;
|
|
454
|
-
className?: string
|
|
455
|
-
style?:
|
|
456
|
-
selected?: boolean
|
|
457
|
-
color?: string
|
|
458
|
-
size?: number
|
|
459
|
-
} & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement
|
|
460
|
-
|
|
461
|
-
type Props$
|
|
457
|
+
className?: string;
|
|
458
|
+
style?: CSSProperties;
|
|
459
|
+
selected?: boolean;
|
|
460
|
+
color?: string;
|
|
461
|
+
size?: number;
|
|
462
|
+
} & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement | null;
|
|
463
|
+
|
|
464
|
+
type Props$d = {
|
|
462
465
|
id?: string;
|
|
463
466
|
style?: any;
|
|
464
467
|
className?: string;
|
|
@@ -476,13 +479,13 @@ type Props$e = {
|
|
|
476
479
|
onFocusChange?: (isFocused: boolean) => void;
|
|
477
480
|
onBlur?: FocusEventHandler;
|
|
478
481
|
} & Pick<InputHTMLAttributes<HTMLInputElement>, "autoComplete" | "autoCapitalize" | "autoCorrect" | "spellCheck" | "autoFocus">;
|
|
479
|
-
type ReadOnlyProps = Props$
|
|
482
|
+
type ReadOnlyProps = Props$d & {
|
|
480
483
|
readOnly: true;
|
|
481
484
|
};
|
|
482
|
-
type ControlledProps = Props$
|
|
485
|
+
type ControlledProps = Props$d & {
|
|
483
486
|
onChange: (value: string) => void;
|
|
484
487
|
};
|
|
485
|
-
type SubmittableProps = Props$
|
|
488
|
+
type SubmittableProps = Props$d & {
|
|
486
489
|
onSubmit: (value: string) => void;
|
|
487
490
|
allowSubmittingWithSameValue?: boolean;
|
|
488
491
|
submitAutomaticallyAfterDelay?: number;
|
|
@@ -504,16 +507,15 @@ interface InputFieldDropdownProps<T extends string> {
|
|
|
504
507
|
}
|
|
505
508
|
type InputFieldVariant = "normal" | "bare";
|
|
506
509
|
declare const InputElement: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<(TextInputProps & React__default.RefAttributes<HTMLInputElement>) & styled_components_dist_types.BaseObject, {
|
|
507
|
-
disabled?: boolean
|
|
508
|
-
readOnly?: boolean
|
|
510
|
+
disabled?: boolean;
|
|
511
|
+
readOnly?: boolean;
|
|
509
512
|
$labelPosition: LabelPosition;
|
|
510
|
-
$labelSize
|
|
511
|
-
$hasLabel: boolean;
|
|
513
|
+
$labelSize?: number;
|
|
512
514
|
$hasDropdown: boolean;
|
|
513
|
-
$textAlign?: Property.TextAlign
|
|
514
|
-
$variant?: InputFieldVariant
|
|
515
|
+
$textAlign?: Property.TextAlign;
|
|
516
|
+
$variant?: InputFieldVariant;
|
|
515
517
|
$size: InputFieldSize;
|
|
516
|
-
}>> & string & Omit<(props: TextInputProps & React__default.RefAttributes<HTMLInputElement>) => React__default.ReactElement
|
|
518
|
+
}>> & string & Omit<(props: TextInputProps & React__default.RefAttributes<HTMLInputElement>) => React__default.ReactElement | null, keyof React__default.Component<any, {}, any>>;
|
|
517
519
|
type InputFieldNumberInputProps = Omit<TextInputProps, "value" | "onChange" | "onKeyDown" | "onSubmit"> & {
|
|
518
520
|
value: number | undefined;
|
|
519
521
|
onNudge?: (value: number) => void;
|
|
@@ -542,22 +544,22 @@ interface InputFieldRootProps {
|
|
|
542
544
|
className?: string;
|
|
543
545
|
}
|
|
544
546
|
declare namespace InputField {
|
|
545
|
-
const Root: (props: InputFieldRootProps) => React__default.ReactElement
|
|
547
|
+
const Root: (props: InputFieldRootProps) => React__default.ReactElement | null;
|
|
546
548
|
const Input: (props: (TextInputProps & {
|
|
547
|
-
textAlign?: Property.TextAlign
|
|
548
|
-
variant?: "bare"
|
|
549
|
-
}) & React__default.RefAttributes<HTMLInputElement>) => React__default.ReactElement
|
|
549
|
+
textAlign?: Property.TextAlign;
|
|
550
|
+
variant?: "bare";
|
|
551
|
+
}) & React__default.RefAttributes<HTMLInputElement>) => React__default.ReactElement | null;
|
|
550
552
|
const Typeahead: (props: {
|
|
551
553
|
prefix: string;
|
|
552
554
|
value: string;
|
|
553
|
-
}) => React__default.ReactElement
|
|
554
|
-
const NumberInput: (props: InputFieldNumberInputProps) => React__default.ReactElement
|
|
555
|
-
const DropdownMenu: <T extends string>(props: InputFieldDropdownProps<T>) => React__default.ReactElement
|
|
555
|
+
}) => React__default.ReactElement | null;
|
|
556
|
+
const NumberInput: (props: InputFieldNumberInputProps) => React__default.ReactElement | null;
|
|
557
|
+
const DropdownMenu: <T extends string>(props: InputFieldDropdownProps<T>) => React__default.ReactElement | null;
|
|
556
558
|
const Button: (props: {
|
|
557
|
-
children?:
|
|
558
|
-
onClick?: (
|
|
559
|
-
}
|
|
560
|
-
const Label: (props: InputFieldLabelProps & React__default.RefAttributes<HTMLLabelElement>) => React__default.ReactElement
|
|
559
|
+
children?: ReactNode;
|
|
560
|
+
onClick?: () => void;
|
|
561
|
+
} & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement | null;
|
|
562
|
+
const Label: (props: InputFieldLabelProps & React__default.RefAttributes<HTMLLabelElement>) => React__default.ReactElement | null;
|
|
561
563
|
const PrimitiveElement: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
562
564
|
}
|
|
563
565
|
|
|
@@ -626,8 +628,8 @@ interface RootProps {
|
|
|
626
628
|
axis?: "x" | "y";
|
|
627
629
|
}
|
|
628
630
|
declare namespace Sortable {
|
|
629
|
-
const Item: <T extends HTMLElement>(props: ItemProps$1<T>) => React__default.ReactElement
|
|
630
|
-
const Root: (props: RootProps) => React__default.ReactElement
|
|
631
|
+
const Item: <T extends HTMLElement>(props: ItemProps$1<T>) => React__default.ReactElement | null;
|
|
632
|
+
const Root: (props: RootProps) => React__default.ReactElement | null;
|
|
631
633
|
}
|
|
632
634
|
|
|
633
635
|
type ListRowMarginType = "none" | "top" | "bottom" | "vertical";
|
|
@@ -694,7 +696,7 @@ interface IVirtualizedList {
|
|
|
694
696
|
type ListViewItemInfo = {
|
|
695
697
|
isDragging: boolean;
|
|
696
698
|
};
|
|
697
|
-
type ChildrenProps
|
|
699
|
+
type ChildrenProps = {
|
|
698
700
|
children: ReactNode;
|
|
699
701
|
};
|
|
700
702
|
type RenderProps<T> = {
|
|
@@ -729,10 +731,10 @@ type ListViewRootProps = {
|
|
|
729
731
|
colorScheme?: ListColorScheme;
|
|
730
732
|
};
|
|
731
733
|
declare namespace ListView {
|
|
732
|
-
const RowTitle: (props: styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>) => React__default.ReactElement
|
|
733
|
-
const EditableRowTitle: (props: EditableRowProps) => React__default.ReactElement
|
|
734
|
-
const Row: <MenuItemType extends string>(props: ListViewRowProps<MenuItemType> & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement
|
|
735
|
-
const Root: <T = any>(props: ((ChildrenProps
|
|
734
|
+
const RowTitle: (props: styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>) => React__default.ReactElement | null;
|
|
735
|
+
const EditableRowTitle: (props: EditableRowProps) => React__default.ReactElement | null;
|
|
736
|
+
const Row: <MenuItemType extends string>(props: ListViewRowProps<MenuItemType> & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
|
|
737
|
+
const Root: <T = any>(props: ((ChildrenProps | RenderProps<T>) & ListViewRootProps) & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement | null;
|
|
736
738
|
const RowContext: React__default.Context<ListRowContextValue>;
|
|
737
739
|
type ClickInfo = ListViewClickInfo;
|
|
738
740
|
type ItemInfo = ListViewItemInfo;
|
|
@@ -760,8 +762,8 @@ interface CompletionMenuProps {
|
|
|
760
762
|
onHoverIndex: (index: number) => void;
|
|
761
763
|
listSize: Size;
|
|
762
764
|
}
|
|
763
|
-
declare const CompletionMenu: (props: CompletionMenuProps & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement
|
|
764
|
-
type Props$
|
|
765
|
+
declare const CompletionMenu: (props: CompletionMenuProps & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement | null;
|
|
766
|
+
type Props$c = {
|
|
765
767
|
loading?: boolean;
|
|
766
768
|
initialValue?: string;
|
|
767
769
|
placeholder?: string;
|
|
@@ -784,17 +786,17 @@ interface IInputFieldWithCompletions {
|
|
|
784
786
|
setValue(value: string): void;
|
|
785
787
|
selectAllInputText(): void;
|
|
786
788
|
}
|
|
787
|
-
declare const InputFieldWithCompletions: (props: Props$
|
|
789
|
+
declare const InputFieldWithCompletions: (props: Props$c & React__default.RefAttributes<IInputFieldWithCompletions>) => React__default.ReactElement | null;
|
|
788
790
|
|
|
789
791
|
declare const InspectorContainer: (props: {
|
|
790
792
|
header?: React__default.ReactNode;
|
|
791
793
|
children?: React__default.ReactNode;
|
|
792
794
|
fallback?: React__default.ReactNode;
|
|
793
|
-
showDividers?: boolean
|
|
794
|
-
id?: string
|
|
795
|
-
className?: string
|
|
796
|
-
style?: React__default.CSSProperties
|
|
797
|
-
} & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement
|
|
795
|
+
showDividers?: boolean;
|
|
796
|
+
id?: string;
|
|
797
|
+
className?: string;
|
|
798
|
+
style?: React__default.CSSProperties;
|
|
799
|
+
} & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement | null;
|
|
798
800
|
|
|
799
801
|
interface LabelRootProps {
|
|
800
802
|
label: ReactNode;
|
|
@@ -802,9 +804,9 @@ interface LabelRootProps {
|
|
|
802
804
|
}
|
|
803
805
|
declare namespace Label {
|
|
804
806
|
const Label: (props: styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
|
|
805
|
-
$selected?: boolean
|
|
806
|
-
}>) => React__default.ReactElement
|
|
807
|
-
const Root: (props: LabelRootProps) => React__default.ReactElement
|
|
807
|
+
$selected?: boolean;
|
|
808
|
+
}>) => React__default.ReactElement | null;
|
|
809
|
+
const Root: (props: LabelRootProps) => React__default.ReactElement | null;
|
|
808
810
|
}
|
|
809
811
|
|
|
810
812
|
interface ContainerProps {
|
|
@@ -814,10 +816,10 @@ interface ContainerProps {
|
|
|
814
816
|
index: number;
|
|
815
817
|
}) => ReactNode;
|
|
816
818
|
}
|
|
817
|
-
declare const LabeledElementView: (props: ContainerProps) => React__default.ReactElement
|
|
819
|
+
declare const LabeledElementView: (props: ContainerProps) => React__default.ReactElement | null;
|
|
818
820
|
|
|
819
821
|
type PopoverVariant = "normal" | "large";
|
|
820
|
-
interface Props$
|
|
822
|
+
interface Props$b extends Pick<ComponentProps<(typeof PopoverPrimitive)["Content"]>, "onOpenAutoFocus" | "onCloseAutoFocus" | "onPointerDownOutside" | "onInteractOutside" | "onFocusOutside" | "side"> {
|
|
821
823
|
children: React__default.ReactNode;
|
|
822
824
|
trigger: React__default.ReactNode;
|
|
823
825
|
variant?: PopoverVariant;
|
|
@@ -828,7 +830,7 @@ interface Props$c extends Pick<ComponentProps<(typeof PopoverPrimitive)["Content
|
|
|
828
830
|
onClickClose?: () => void;
|
|
829
831
|
showArrow?: boolean;
|
|
830
832
|
}
|
|
831
|
-
declare function Popover({ children, trigger, variant, closable, open, side, sideOffset, showArrow, onOpenChange, onOpenAutoFocus, onCloseAutoFocus, onPointerDownOutside, onInteractOutside, onFocusOutside, onClickClose, }: Props$
|
|
833
|
+
declare function Popover({ children, trigger, variant, closable, open, side, sideOffset, showArrow, onOpenChange, onOpenAutoFocus, onCloseAutoFocus, onPointerDownOutside, onInteractOutside, onFocusOutside, onClickClose, }: Props$b): React__default.JSX.Element;
|
|
832
834
|
|
|
833
835
|
type ProgressVariant = 'normal' | 'warning' | 'primary' | 'secondary';
|
|
834
836
|
declare function Progress({ value, width, height, flex, variant, }: {
|
|
@@ -846,7 +848,7 @@ interface ItemProps {
|
|
|
846
848
|
children: ReactNode;
|
|
847
849
|
disabled?: boolean;
|
|
848
850
|
}
|
|
849
|
-
interface Props$
|
|
851
|
+
interface Props$a {
|
|
850
852
|
id?: string;
|
|
851
853
|
value?: string;
|
|
852
854
|
onValueChange?: (value: string) => void;
|
|
@@ -856,35 +858,14 @@ interface Props$b {
|
|
|
856
858
|
children: ReactNode;
|
|
857
859
|
}
|
|
858
860
|
declare namespace RadioGroup {
|
|
859
|
-
const Root: (props: Props$
|
|
860
|
-
const Item: (props: ItemProps & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement
|
|
861
|
+
const Root: (props: Props$a) => React__default.ReactElement | null;
|
|
862
|
+
const Item: (props: ItemProps & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement | null;
|
|
861
863
|
}
|
|
862
864
|
|
|
863
|
-
interface Props$
|
|
865
|
+
interface Props$9 {
|
|
864
866
|
children?: ReactNode | ((scrollElementRef: HTMLDivElement) => ReactNode);
|
|
865
867
|
}
|
|
866
|
-
declare const ScrollArea: (props: Props$
|
|
867
|
-
|
|
868
|
-
interface SelectOptionProps<T extends string> {
|
|
869
|
-
value: T;
|
|
870
|
-
title?: string;
|
|
871
|
-
onSelect?: () => void;
|
|
872
|
-
}
|
|
873
|
-
declare const SelectOption: <T extends string>(props: SelectOptionProps<T>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
874
|
-
type ChildrenProps<T> = {
|
|
875
|
-
children: ReactNode;
|
|
876
|
-
} | {
|
|
877
|
-
options: readonly T[];
|
|
878
|
-
getTitle?: (option: T, index: number) => string;
|
|
879
|
-
onChange: (value: T) => void;
|
|
880
|
-
};
|
|
881
|
-
type Props$9<T extends string> = ChildrenProps<T> & {
|
|
882
|
-
id: string;
|
|
883
|
-
flex?: CSSProperties["flex"];
|
|
884
|
-
value: T;
|
|
885
|
-
label?: ReactNode;
|
|
886
|
-
};
|
|
887
|
-
declare const Select: <T extends string>(props: Props$9<T>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
868
|
+
declare const ScrollArea: (props: Props$9) => React__default.ReactElement | null;
|
|
888
869
|
|
|
889
870
|
type Props$8<T extends string> = {
|
|
890
871
|
id?: string;
|
|
@@ -896,8 +877,9 @@ type Props$8<T extends string> = {
|
|
|
896
877
|
placeholder?: string;
|
|
897
878
|
disabled?: boolean;
|
|
898
879
|
readOnly?: boolean;
|
|
899
|
-
|
|
900
|
-
|
|
880
|
+
label?: React__default.ReactNode;
|
|
881
|
+
} & Pick<SelectProps, "open">;
|
|
882
|
+
declare const SelectMenu: <T extends string = string>(props: Props$8<T>) => React__default.ReactElement | null;
|
|
901
883
|
|
|
902
884
|
interface Props$7 {
|
|
903
885
|
id?: string;
|
|
@@ -913,8 +895,8 @@ interface Props$6 {
|
|
|
913
895
|
inline?: boolean;
|
|
914
896
|
}
|
|
915
897
|
declare namespace Spacer {
|
|
916
|
-
const Vertical: (props: Props$6 & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement
|
|
917
|
-
const Horizontal: (props: Props$6 & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement
|
|
898
|
+
const Vertical: (props: Props$6 & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement | null;
|
|
899
|
+
const Horizontal: (props: Props$6 & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement | null;
|
|
918
900
|
}
|
|
919
901
|
|
|
920
902
|
type BreakpointKey = number | string;
|
|
@@ -924,7 +906,7 @@ type BreakpointCollection<T extends object> = Breakpoint<T>[] | Record<Breakpoin
|
|
|
924
906
|
declare function withSeparatorElements(elements: ReactNode, separator: ReactNode | (() => ReactNode)): (string | number | React$1.ReactElement<any, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | React$1.ReactPortal)[];
|
|
925
907
|
|
|
926
908
|
interface StyleProps$1 {
|
|
927
|
-
display?: "
|
|
909
|
+
display?: CSSProperties["display"];
|
|
928
910
|
visibility?: CSSProperties["visibility"];
|
|
929
911
|
position?: CSSProperties["position"];
|
|
930
912
|
zIndex?: CSSProperties["zIndex"];
|
|
@@ -988,11 +970,12 @@ interface Props$5 extends StyleProps$1 {
|
|
|
988
970
|
breakpoints?: StackBreakpointList | null | false;
|
|
989
971
|
href?: string;
|
|
990
972
|
tabIndex?: number;
|
|
973
|
+
style?: StyleProps$1;
|
|
991
974
|
}
|
|
992
975
|
type StackProps = Omit<Props$5, "flexDirection">;
|
|
993
976
|
declare const Stack: {
|
|
994
|
-
V: (props: StackProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement
|
|
995
|
-
H: (props: StackProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement
|
|
977
|
+
V: (props: StackProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
|
|
978
|
+
H: (props: StackProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
|
|
996
979
|
};
|
|
997
980
|
|
|
998
981
|
type SwitchColorScheme = "normal" | "primary" | "secondary";
|
|
@@ -1050,15 +1033,15 @@ interface Props$3 extends StyleProps {
|
|
|
1050
1033
|
onKeyDown?: (event: React__default.KeyboardEvent<HTMLSpanElement>) => void;
|
|
1051
1034
|
tabIndex?: number;
|
|
1052
1035
|
}
|
|
1053
|
-
declare const Text$1: (props: Props$3 & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement
|
|
1036
|
+
declare const Text$1: (props: Props$3 & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
|
|
1054
1037
|
type PresetProps = Omit<Props$3, "variant">;
|
|
1055
|
-
declare const Heading1: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement
|
|
1056
|
-
declare const Heading2: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement
|
|
1057
|
-
declare const Heading3: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement
|
|
1058
|
-
declare const Heading4: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement
|
|
1059
|
-
declare const Heading5: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement
|
|
1060
|
-
declare const Body: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement
|
|
1061
|
-
declare const Small: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement
|
|
1038
|
+
declare const Heading1: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
|
|
1039
|
+
declare const Heading2: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
|
|
1040
|
+
declare const Heading3: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
|
|
1041
|
+
declare const Heading4: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
|
|
1042
|
+
declare const Heading5: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
|
|
1043
|
+
declare const Body: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
|
|
1044
|
+
declare const Small: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement | null;
|
|
1062
1045
|
declare const Italic: ({ children }: {
|
|
1063
1046
|
children: ReactNode;
|
|
1064
1047
|
}) => React__default.JSX.Element;
|
|
@@ -1066,11 +1049,11 @@ declare const Italic: ({ children }: {
|
|
|
1066
1049
|
declare const useAutoResize: (value: string) => React__default.MutableRefObject<HTMLTextAreaElement | null>;
|
|
1067
1050
|
declare const AutoResizingTextArea: (props: Omit<styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>, "onChange" | "value"> & {
|
|
1068
1051
|
onChangeText: (value: string) => void;
|
|
1069
|
-
value?: string
|
|
1070
|
-
} & React__default.RefAttributes<HTMLTextAreaElement>) => React__default.ReactElement
|
|
1052
|
+
value?: string;
|
|
1053
|
+
} & React__default.RefAttributes<HTMLTextAreaElement>) => React__default.ReactElement | null;
|
|
1071
1054
|
|
|
1072
1055
|
declare const Toast: ({ title, content, children, ...props }: {
|
|
1073
|
-
title?: string
|
|
1056
|
+
title?: string;
|
|
1074
1057
|
content: ReactNode;
|
|
1075
1058
|
children?: React__default.ReactNode;
|
|
1076
1059
|
}) => React__default.JSX.Element;
|
|
@@ -1082,7 +1065,7 @@ interface Props$2 {
|
|
|
1082
1065
|
children: ReactNode;
|
|
1083
1066
|
content: ReactNode;
|
|
1084
1067
|
}
|
|
1085
|
-
declare const Tooltip: (props: Props$2) => React__default.ReactElement
|
|
1068
|
+
declare const Tooltip: (props: Props$2) => React__default.ReactElement | null;
|
|
1086
1069
|
|
|
1087
1070
|
type TreeRowBaseProps = {
|
|
1088
1071
|
icon?: Exclude<ReactNode, string> | IconName;
|
|
@@ -1094,43 +1077,48 @@ type TreeRowBaseProps = {
|
|
|
1094
1077
|
type TreeViewRowProps<MenuItemType extends string> = ListView.RowProps<MenuItemType> & TreeRowBaseProps;
|
|
1095
1078
|
declare namespace TreeView {
|
|
1096
1079
|
const Root: <T = any>(props: (({
|
|
1097
|
-
children:
|
|
1080
|
+
children: ReactNode;
|
|
1098
1081
|
} | {
|
|
1099
1082
|
data: T[];
|
|
1100
1083
|
renderItem: (item: T, index: number, info: {
|
|
1101
1084
|
isDragging: boolean;
|
|
1102
|
-
}) =>
|
|
1085
|
+
}) => ReactNode;
|
|
1103
1086
|
keyExtractor: (item: T, index: number) => string;
|
|
1104
|
-
sortable?: boolean
|
|
1105
|
-
virtualized?: _noya_app_noya_geometry.Size
|
|
1087
|
+
sortable?: boolean;
|
|
1088
|
+
virtualized?: _noya_app_noya_geometry.Size;
|
|
1106
1089
|
}) & {
|
|
1107
|
-
id?: string
|
|
1108
|
-
className?: string
|
|
1109
|
-
style?: React__default.CSSProperties
|
|
1110
|
-
onPress?: (
|
|
1111
|
-
scrollable?: boolean
|
|
1112
|
-
expandable?: boolean
|
|
1113
|
-
onMoveItem?: (
|
|
1114
|
-
indentation?: number
|
|
1115
|
-
acceptsDrop?: DropValidator
|
|
1116
|
-
pressEventName?:
|
|
1117
|
-
variant?:
|
|
1118
|
-
sectionHeaderVariant?:
|
|
1119
|
-
divider?: boolean
|
|
1120
|
-
gap?: number
|
|
1121
|
-
colorScheme?:
|
|
1122
|
-
}) & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement
|
|
1123
|
-
const RowTitle: (props: styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>) => React__default.ReactElement
|
|
1124
|
-
const EditableRowTitle: (props: EditableRowProps) => React__default.ReactElement
|
|
1125
|
-
const Row: <MenuItemType extends string>(props: ListView.RowProps<MenuItemType> & TreeRowBaseProps & React__default.RefAttributes<HTMLLIElement>) => React__default.ReactElement
|
|
1090
|
+
id?: string;
|
|
1091
|
+
className?: string;
|
|
1092
|
+
style?: React__default.CSSProperties;
|
|
1093
|
+
onPress?: () => void;
|
|
1094
|
+
scrollable?: boolean;
|
|
1095
|
+
expandable?: boolean;
|
|
1096
|
+
onMoveItem?: (sourceIndex: number, destinationIndex: number, position: RelativeDropPosition) => void;
|
|
1097
|
+
indentation?: number;
|
|
1098
|
+
acceptsDrop?: DropValidator;
|
|
1099
|
+
pressEventName?: "onClick" | "onPointerDown";
|
|
1100
|
+
variant?: "normal" | "bare" | "padded";
|
|
1101
|
+
sectionHeaderVariant?: "label" | "normal";
|
|
1102
|
+
divider?: boolean;
|
|
1103
|
+
gap?: number;
|
|
1104
|
+
colorScheme?: "primary" | "secondary";
|
|
1105
|
+
}) & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement | null;
|
|
1106
|
+
const RowTitle: (props: styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>) => React__default.ReactElement | null;
|
|
1107
|
+
const EditableRowTitle: (props: EditableRowProps) => React__default.ReactElement | null;
|
|
1108
|
+
const Row: <MenuItemType extends string>(props: ListView.RowProps<MenuItemType> & TreeRowBaseProps & React__default.RefAttributes<HTMLLIElement>) => React__default.ReactElement | null;
|
|
1126
1109
|
type ClickInfo = ListView.ClickInfo;
|
|
1127
1110
|
type RowProps<MenuItemType extends string> = TreeViewRowProps<MenuItemType>;
|
|
1128
1111
|
}
|
|
1129
1112
|
|
|
1113
|
+
declare const EDITOR_PANEL_GROUP_ID = "editor-panel-group";
|
|
1114
|
+
declare const LEFT_SIDEBAR_ID = "editor-left-sidebar";
|
|
1115
|
+
declare const RIGHT_SIDEBAR_ID = "editor-right-sidebar";
|
|
1116
|
+
declare const CONTENT_AREA_ID = "editor-content-area";
|
|
1130
1117
|
type PanelLayoutState = {
|
|
1131
1118
|
leftSidebarCollapsed: boolean;
|
|
1132
1119
|
rightSidebarCollapsed: boolean;
|
|
1133
1120
|
};
|
|
1121
|
+
declare function usePreservePanelSize(panelGroupRef: React__default.RefObject<ImperativePanelGroupHandle | null>, setPanelLayoutState?: (state: PanelLayoutState) => void): void;
|
|
1134
1122
|
|
|
1135
1123
|
interface Props$1 {
|
|
1136
1124
|
autoSavePrefix?: string;
|
|
@@ -1164,20 +1152,20 @@ type IWorkspaceLayout = {
|
|
|
1164
1152
|
toggleLeftSidebar: () => void;
|
|
1165
1153
|
toggleRightSidebar: () => void;
|
|
1166
1154
|
};
|
|
1167
|
-
declare const WorkspaceLayout: (props: Props$1 & React__default.RefAttributes<IWorkspaceLayout>) => React__default.ReactElement
|
|
1155
|
+
declare const WorkspaceLayout: (props: Props$1 & React__default.RefAttributes<IWorkspaceLayout>) => React__default.ReactElement | null;
|
|
1168
1156
|
|
|
1169
1157
|
declare const DesignSystemThemeProvider: (props: {
|
|
1170
1158
|
children: ReactNode;
|
|
1171
|
-
theme?:
|
|
1172
|
-
}) => React__default.ReactElement
|
|
1159
|
+
theme?: Theme;
|
|
1160
|
+
}) => React__default.ReactElement | null;
|
|
1173
1161
|
type DesignSystemConfigurationContextValue = {
|
|
1174
1162
|
platform: PlatformName;
|
|
1175
1163
|
};
|
|
1176
1164
|
declare const DesignSystemConfigurationProvider: (props: {
|
|
1177
1165
|
children: ReactNode;
|
|
1178
|
-
theme?:
|
|
1179
|
-
platform?: PlatformName
|
|
1180
|
-
}) => React__default.ReactElement
|
|
1166
|
+
theme?: Theme | "light" | "dark";
|
|
1167
|
+
platform?: PlatformName;
|
|
1168
|
+
}) => React__default.ReactElement | null;
|
|
1181
1169
|
declare function useDesignSystemConfiguration(): DesignSystemConfigurationContextValue;
|
|
1182
1170
|
declare function useDesignSystemTheme(): styled_components.DefaultTheme;
|
|
1183
1171
|
|
|
@@ -1189,7 +1177,7 @@ type DialogContextValue = {
|
|
|
1189
1177
|
declare const DialogProvider: ({ children, }: {
|
|
1190
1178
|
children: ReactNode;
|
|
1191
1179
|
}) => React__default.JSX.Element;
|
|
1192
|
-
declare function useOpenInputDialog(): (title: string, inputValue?: string
|
|
1180
|
+
declare function useOpenInputDialog(): (title: string, inputValue?: string) => Promise<string | undefined>;
|
|
1193
1181
|
declare function useDialogContainsElement(): (element: HTMLElement) => boolean;
|
|
1194
1182
|
|
|
1195
1183
|
type FloatingWindowContextValue = {
|
|
@@ -1210,8 +1198,8 @@ type ImageDataContextValue = {
|
|
|
1210
1198
|
};
|
|
1211
1199
|
declare const ImageDataProvider: (props: {
|
|
1212
1200
|
children: ReactNode;
|
|
1213
|
-
getImageData?: (
|
|
1214
|
-
}) => React__default.ReactElement
|
|
1201
|
+
getImageData?: (ref: string) => ArrayBuffer | undefined;
|
|
1202
|
+
}) => React__default.ReactElement | null;
|
|
1215
1203
|
declare function useImageData(ref: string): ArrayBuffer | undefined;
|
|
1216
1204
|
|
|
1217
1205
|
type GlobalInputBlurContextValue = {
|
|
@@ -1397,7 +1385,7 @@ interface Props {
|
|
|
1397
1385
|
disabled?: boolean;
|
|
1398
1386
|
trigger?: "change" | "submit";
|
|
1399
1387
|
}
|
|
1400
|
-
declare const DimensionInput: (props: Props) => React__default.ReactElement
|
|
1388
|
+
declare const DimensionInput: (props: Props) => React__default.ReactElement | null;
|
|
1401
1389
|
|
|
1402
1390
|
declare const Section: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
1403
1391
|
$padding?: CSSProperties["padding"];
|
|
@@ -1405,7 +1393,7 @@ declare const Section: styled_components_dist_types.IStyledComponentBase<"web",
|
|
|
1405
1393
|
}>> & string;
|
|
1406
1394
|
declare const SectionHeader: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
1407
1395
|
declare const Title: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
1408
|
-
$textStyle?: "small" | "
|
|
1396
|
+
$textStyle?: "small" | "heading5" | "heading4" | "heading3";
|
|
1409
1397
|
}>> & string;
|
|
1410
1398
|
declare const Row: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
1411
1399
|
$gap?: CSSProperties["gap"];
|
|
@@ -1416,20 +1404,20 @@ declare const Text: styled_components_dist_types.IStyledComponentBase<"web", sty
|
|
|
1416
1404
|
declare const VerticalSeparator: () => React__default.JSX.Element;
|
|
1417
1405
|
declare const HorizontalSeparator: () => React__default.JSX.Element;
|
|
1418
1406
|
declare const RowLabel: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
1419
|
-
$textStyle?: "small" | "
|
|
1407
|
+
$textStyle?: "small" | "heading5" | "heading4" | "heading3";
|
|
1420
1408
|
}>> & string;
|
|
1421
1409
|
declare const LabeledRow: (props: {
|
|
1422
|
-
id?: string
|
|
1410
|
+
id?: string;
|
|
1423
1411
|
children: ReactNode;
|
|
1424
1412
|
label: ReactNode;
|
|
1425
|
-
labelTextStyle?: "small" | "
|
|
1413
|
+
labelTextStyle?: "small" | "heading5" | "heading4" | "heading3";
|
|
1426
1414
|
gap?: CSSProperties["gap"];
|
|
1427
1415
|
right?: ReactNode;
|
|
1428
|
-
}) => React__default.ReactElement
|
|
1416
|
+
}) => React__default.ReactElement | null;
|
|
1429
1417
|
declare const LabeledSliderRow: (props: {
|
|
1430
1418
|
children: ReactNode;
|
|
1431
1419
|
label: string;
|
|
1432
|
-
}) => React__default.ReactElement
|
|
1420
|
+
}) => React__default.ReactElement | null;
|
|
1433
1421
|
|
|
1434
1422
|
declare const InspectorPrimitives_Checkbox: typeof Checkbox;
|
|
1435
1423
|
declare const InspectorPrimitives_Column: typeof Column;
|
|
@@ -1452,4 +1440,4 @@ declare module "react" {
|
|
|
1452
1440
|
function forwardRef<T, P = {}>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
|
|
1453
1441
|
}
|
|
1454
1442
|
|
|
1455
|
-
export { ActivityIndicator, AutoResizingTextArea, 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 IconName, 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,
|
|
1443
|
+
export { ActivityIndicator, AutoResizingTextArea, Avatar, AvatarStack, Body, Button, ButtonElement, type ButtonRootProps, CONTENT_AREA_ID, 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, EDITOR_PANEL_GROUP_ID, 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 IconName, type ImageDataContextValue, ImageDataProvider, InputElement, InputField, type InputFieldSize, InputFieldWithCompletions, InspectorContainer, InspectorPrimitives, Italic, KeyboardShortcut, LEFT_SIDEBAR_ID, Label, LabeledElementView, type ListRowMarginType, type ListRowPosition, ListView, type MatchRange, type MenuConfig, type MenuItem, type MenuItemProps, type MenuProps, type Optional, type PanelLayoutState, PatternPreviewBackground, Popover, Progress, RIGHT_SIDEBAR_ID, RadioGroup, type RegularMenuItem, type RelativeDropPosition, Row$1 as Row, SEPARATOR_ITEM, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, ScrollArea, SelectMenu, 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, renderIcon, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useAutoResize, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, usePreservePanelSize, withSeparatorElements };
|