@noya-app/noya-designsystem 0.1.15 → 0.1.17
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 +17 -0
- package/dist/index.d.mts +58 -59
- package/dist/index.d.ts +58 -59
- package/dist/index.js +853 -828
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +561 -536
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/components/ActivityIndicator.tsx +23 -13
- package/src/components/ArrayController.tsx +5 -5
- package/src/components/Avatar.tsx +5 -5
- package/src/components/Button.tsx +39 -36
- package/src/components/Chip.tsx +25 -25
- package/src/components/Divider.tsx +45 -20
- package/src/components/FillInputField.tsx +23 -23
- package/src/components/InputField.tsx +78 -91
- package/src/components/InputFieldWithCompletions.tsx +4 -4
- package/src/components/InspectorPrimitives.tsx +18 -18
- package/src/components/Label.tsx +21 -21
- package/src/components/ListView.tsx +100 -95
- package/src/components/RadioGroup.tsx +1 -2
- package/src/components/Select.tsx +11 -11
- package/src/components/Spacer.tsx +30 -7
- package/src/components/Stack.tsx +8 -8
- package/src/components/Switch.tsx +9 -10
- package/src/components/Text.tsx +15 -15
- package/src/components/internal/Menu.tsx +6 -10
- package/src/contexts/DesignSystemConfiguration.tsx +8 -1
- package/src/theme/dark.ts +2 -1
- package/src/theme/light.ts +2 -1
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
|
-
[32mCJS[39m [1mdist/index.js [22m[32m215.
|
|
9
|
-
[32mCJS[39m [1mdist/index.js.map [22m[
|
|
10
|
-
[32mCJS[39m ⚡️ Build success in
|
|
11
|
-
[32mESM[39m [1mdist/index.mjs [22m[
|
|
12
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[
|
|
13
|
-
[32mESM[39m ⚡️ Build success in
|
|
8
|
+
[32mCJS[39m [1mdist/index.js [22m[32m215.43 KB[39m
|
|
9
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m437.43 KB[39m
|
|
10
|
+
[32mCJS[39m ⚡️ Build success in 67ms
|
|
11
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m198.16 KB[39m
|
|
12
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m437.35 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 68ms
|
|
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 9797ms
|
|
16
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m58.69 KB[39m
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m58.69 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @noya-app/noya-designsystem
|
|
2
2
|
|
|
3
|
+
## 0.1.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c98f0a8: Improve inspector style
|
|
8
|
+
- Updated dependencies [81d4074]
|
|
9
|
+
- @noya-app/noya-icons@0.1.4
|
|
10
|
+
|
|
11
|
+
## 0.1.16
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 86288ca: styled-components 6
|
|
16
|
+
- b1b4809: Adjust focus style and add boolean to JSON Editor
|
|
17
|
+
- Updated dependencies [e2a3468]
|
|
18
|
+
- @noya-app/noya-colorpicker@0.1.9
|
|
19
|
+
|
|
3
20
|
## 0.1.15
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { CSSProperties, ReactNode, ReactElement, ComponentProps, AriaRole, KeyboardEventHandler, MouseEventHandler, PointerEventHandler, FocusEventHandler, InputHTMLAttributes, Ref, ReactHTML } from 'react';
|
|
3
|
+
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
3
4
|
import * as styled_components from 'styled-components';
|
|
4
5
|
import { CSSObject, CSSProperties as CSSProperties$1 } from 'styled-components';
|
|
5
6
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
@@ -15,7 +16,6 @@ import { Size } from '@noya-app/noya-geometry';
|
|
|
15
16
|
import { IItemScore } from 'vscode-fuzzy-scorer';
|
|
16
17
|
import { useSortable } from '@dnd-kit/sortable';
|
|
17
18
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
18
|
-
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
19
19
|
import { RgbaColor } from '@noya-app/noya-colorpicker';
|
|
20
20
|
|
|
21
21
|
interface Props$h {
|
|
@@ -42,13 +42,13 @@ declare function AvatarStack({ size, children, }: {
|
|
|
42
42
|
|
|
43
43
|
type ButtonVariant = "normal" | "primary" | "primaryGradient" | "secondary" | "secondaryBright" | "white" | "thin" | "floating" | "none";
|
|
44
44
|
type ButtonSize = "normal" | "large";
|
|
45
|
-
declare const ButtonElement:
|
|
46
|
-
active: boolean;
|
|
47
|
-
variant: ButtonVariant;
|
|
48
|
-
size: ButtonSize;
|
|
49
|
-
flex?: CSSProperties["flex"];
|
|
50
|
-
defaultBackground?: string | undefined;
|
|
51
|
-
}
|
|
45
|
+
declare const ButtonElement: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
46
|
+
$active: boolean;
|
|
47
|
+
$variant: ButtonVariant;
|
|
48
|
+
$size: ButtonSize;
|
|
49
|
+
$flex?: CSSProperties["flex"];
|
|
50
|
+
$defaultBackground?: string | undefined;
|
|
51
|
+
}>> & string;
|
|
52
52
|
interface ButtonRootProps {
|
|
53
53
|
id?: string;
|
|
54
54
|
className?: string;
|
|
@@ -143,6 +143,7 @@ declare const colors$1: {
|
|
|
143
143
|
};
|
|
144
144
|
sidebar: {
|
|
145
145
|
background: string;
|
|
146
|
+
backgroundTransparent: string;
|
|
146
147
|
};
|
|
147
148
|
popover: {
|
|
148
149
|
background: string;
|
|
@@ -264,8 +265,8 @@ interface MenuProps<T extends string> {
|
|
|
264
265
|
}
|
|
265
266
|
declare const ContextMenu: <T extends string>(props: MenuProps<T>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
266
267
|
|
|
267
|
-
declare const StyledContent: styled_components.
|
|
268
|
-
declare const CloseButtonContainer:
|
|
268
|
+
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>>;
|
|
269
|
+
declare const CloseButtonContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
269
270
|
interface IDialog {
|
|
270
271
|
containsElement: (element: HTMLElement) => boolean;
|
|
271
272
|
}
|
|
@@ -282,7 +283,7 @@ interface Props$g {
|
|
|
282
283
|
declare const Dialog: (props: Props$g & React__default.RefAttributes<IDialog>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
283
284
|
declare const FullscreenDialog: (props: Props$g & React__default.RefAttributes<IDialog>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
284
285
|
|
|
285
|
-
type DividerVariant =
|
|
286
|
+
type DividerVariant = "normal" | "strong" | "subtle";
|
|
286
287
|
interface DividerProps {
|
|
287
288
|
variant?: DividerVariant;
|
|
288
289
|
overflow?: number;
|
|
@@ -318,7 +319,7 @@ type SketchPattern = {
|
|
|
318
319
|
interface Props$f {
|
|
319
320
|
id?: string;
|
|
320
321
|
value?: Sketch.Color | Sketch.Gradient | SketchPattern;
|
|
321
|
-
flex?: CSSProperties[
|
|
322
|
+
flex?: CSSProperties["flex"];
|
|
322
323
|
}
|
|
323
324
|
declare const FillInputField: (props: Props$f & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
324
325
|
|
|
@@ -481,17 +482,17 @@ interface InputFieldDropdownProps<T extends string> {
|
|
|
481
482
|
children?: ReactNode;
|
|
482
483
|
}
|
|
483
484
|
type InputFieldVariant = "normal" | "bare";
|
|
484
|
-
declare const InputElement:
|
|
485
|
-
labelPosition: LabelPosition;
|
|
486
|
-
labelSize: number;
|
|
487
|
-
hasLabel: boolean;
|
|
488
|
-
hasDropdown: boolean;
|
|
489
|
-
textAlign?: Property.TextAlign | undefined;
|
|
485
|
+
declare const InputElement: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<(TextInputProps & React__default.RefAttributes<HTMLInputElement>) & styled_components_dist_types.BaseObject, {
|
|
490
486
|
disabled?: boolean | undefined;
|
|
491
|
-
variant?: InputFieldVariant | undefined;
|
|
492
487
|
readOnly?: boolean | undefined;
|
|
493
|
-
|
|
494
|
-
|
|
488
|
+
$labelPosition: LabelPosition;
|
|
489
|
+
$labelSize: number;
|
|
490
|
+
$hasLabel: boolean;
|
|
491
|
+
$hasDropdown: boolean;
|
|
492
|
+
$textAlign?: Property.TextAlign | undefined;
|
|
493
|
+
$variant?: InputFieldVariant | undefined;
|
|
494
|
+
$size: InputFieldSize;
|
|
495
|
+
}>> & string & Omit<(props: TextInputProps & React__default.RefAttributes<HTMLInputElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null, keyof React__default.Component<any, {}, any>>;
|
|
495
496
|
type InputFieldNumberInputProps = Omit<TextInputProps, "value" | "onChange" | "onKeyDown" | "onSubmit"> & {
|
|
496
497
|
value: number | undefined;
|
|
497
498
|
onNudge?: (value: number) => void;
|
|
@@ -691,7 +692,7 @@ type ListViewRootProps = {
|
|
|
691
692
|
colorScheme?: ListColorScheme;
|
|
692
693
|
};
|
|
693
694
|
declare namespace ListView {
|
|
694
|
-
const RowTitle: React__default.
|
|
695
|
+
const RowTitle: (props: styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
695
696
|
const EditableRowTitle: (props: EditableRowProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
696
697
|
const Row: <MenuItemType extends string>(props: ListViewRowProps<MenuItemType> & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
697
698
|
const Root: <T = any>(props: ((ChildrenProps$1 | RenderProps<T>) & ListViewRootProps) & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
@@ -700,21 +701,21 @@ declare namespace ListView {
|
|
|
700
701
|
type ItemInfo = ListViewItemInfo;
|
|
701
702
|
type RowProps<MenuItemType extends string = string> = ListViewRowProps<MenuItemType>;
|
|
702
703
|
type VirtualizedList = IVirtualizedList;
|
|
703
|
-
const DragIndicator:
|
|
704
|
-
relativeDropPosition: RelativeDropPosition;
|
|
705
|
-
gap: number;
|
|
706
|
-
offsetLeft: number;
|
|
707
|
-
colorScheme: ListColorScheme;
|
|
708
|
-
}
|
|
704
|
+
const DragIndicator: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
705
|
+
$relativeDropPosition: RelativeDropPosition;
|
|
706
|
+
$gap: number;
|
|
707
|
+
$offsetLeft: number;
|
|
708
|
+
$colorScheme: ListColorScheme;
|
|
709
|
+
}>> & string;
|
|
709
710
|
const rowHeight = 31;
|
|
710
711
|
const sectionHeaderLabelHeight = 27;
|
|
711
712
|
const calculateHeight: (items: number, headerCount: number, headerVariant: ListViewSectionHeaderVariant) => number;
|
|
712
713
|
const normalizeDestinationIndex: (index: number, position: "above" | "below") => number;
|
|
713
714
|
}
|
|
714
715
|
|
|
715
|
-
declare const CompletionToken:
|
|
716
|
-
type: IToken["type"];
|
|
717
|
-
}
|
|
716
|
+
declare const CompletionToken: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
717
|
+
$type: IToken["type"];
|
|
718
|
+
}>> & string;
|
|
718
719
|
interface CompletionMenuProps {
|
|
719
720
|
items: CompletionListItem[];
|
|
720
721
|
selectedIndex: number;
|
|
@@ -753,9 +754,9 @@ interface LabelRootProps {
|
|
|
753
754
|
children: ReactNode;
|
|
754
755
|
}
|
|
755
756
|
declare namespace Label {
|
|
756
|
-
const Label: React__default.
|
|
757
|
-
selected?: boolean | undefined;
|
|
758
|
-
},
|
|
757
|
+
const Label: (props: styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
|
|
758
|
+
$selected?: boolean | undefined;
|
|
759
|
+
}>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
759
760
|
const Root: (props: LabelRootProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
760
761
|
}
|
|
761
762
|
|
|
@@ -792,9 +793,6 @@ declare function Progress({ value, width, height, flex, variant, }: {
|
|
|
792
793
|
}): React__default.JSX.Element;
|
|
793
794
|
|
|
794
795
|
type RadioGroupColorScheme = "primary" | "secondary";
|
|
795
|
-
declare const StyledRoot: styled_components.StyledComponent<React__default.ForwardRefExoticComponent<(ToggleGroupPrimitive.ToggleGroupSingleProps | ToggleGroupPrimitive.ToggleGroupMultipleProps) & React__default.RefAttributes<HTMLDivElement>>, styled_components.DefaultTheme, {
|
|
796
|
-
colorScheme?: RadioGroupColorScheme | undefined;
|
|
797
|
-
}, never>;
|
|
798
796
|
interface ItemProps {
|
|
799
797
|
value: string;
|
|
800
798
|
tooltip?: ReactNode;
|
|
@@ -804,7 +802,7 @@ interface ItemProps {
|
|
|
804
802
|
interface Props$9 {
|
|
805
803
|
id?: string;
|
|
806
804
|
value?: string;
|
|
807
|
-
onValueChange?:
|
|
805
|
+
onValueChange?: (value: string) => void;
|
|
808
806
|
colorScheme?: RadioGroupColorScheme;
|
|
809
807
|
allowEmpty?: boolean;
|
|
810
808
|
children: ReactNode;
|
|
@@ -854,8 +852,8 @@ interface Props$5 {
|
|
|
854
852
|
inline?: boolean;
|
|
855
853
|
}
|
|
856
854
|
declare namespace Spacer {
|
|
857
|
-
const Vertical:
|
|
858
|
-
const Horizontal:
|
|
855
|
+
const Vertical: (props: Props$5 & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
856
|
+
const Horizontal: (props: Props$5 & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
859
857
|
}
|
|
860
858
|
|
|
861
859
|
type BreakpointKey = number | string;
|
|
@@ -1047,7 +1045,7 @@ declare namespace TreeView {
|
|
|
1047
1045
|
gap?: number | undefined;
|
|
1048
1046
|
colorScheme?: ("primary" | "secondary") | undefined;
|
|
1049
1047
|
}) & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
1050
|
-
const RowTitle: React__default.
|
|
1048
|
+
const RowTitle: (props: styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
1051
1049
|
const EditableRowTitle: (props: EditableRowProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
1052
1050
|
const Row: <MenuItemType extends string>(props: ListView.RowProps<MenuItemType> & TreeRowBaseProps & React__default.RefAttributes<HTMLLIElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
1053
1051
|
type ClickInfo = ListView.ClickInfo;
|
|
@@ -1069,7 +1067,7 @@ declare const DesignSystemConfigurationProvider: (props: {
|
|
|
1069
1067
|
declare function useDesignSystemConfiguration(): DesignSystemConfigurationContextValue;
|
|
1070
1068
|
declare function useDesignSystemTheme(): styled_components.DefaultTheme;
|
|
1071
1069
|
|
|
1072
|
-
declare const Row$1:
|
|
1070
|
+
declare const Row$1: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
1073
1071
|
type DialogContextValue = {
|
|
1074
1072
|
openInputDialog(title: string, inputValue?: string): Promise<string | undefined>;
|
|
1075
1073
|
containsElement(element: HTMLElement): boolean;
|
|
@@ -1220,6 +1218,7 @@ declare const colors: {
|
|
|
1220
1218
|
};
|
|
1221
1219
|
sidebar: {
|
|
1222
1220
|
background: string;
|
|
1221
|
+
backgroundTransparent: string;
|
|
1223
1222
|
};
|
|
1224
1223
|
popover: {
|
|
1225
1224
|
background: string;
|
|
@@ -1298,25 +1297,25 @@ interface Props {
|
|
|
1298
1297
|
}
|
|
1299
1298
|
declare const DimensionInput: (props: Props) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
1300
1299
|
|
|
1301
|
-
declare const Section:
|
|
1302
|
-
padding?: CSSProperties["padding"];
|
|
1303
|
-
gap?: CSSProperties["gap"];
|
|
1304
|
-
}
|
|
1305
|
-
declare const SectionHeader:
|
|
1306
|
-
declare const Title:
|
|
1307
|
-
textStyle?: "small" | "heading3" | "heading4" | "heading5" | undefined;
|
|
1308
|
-
}
|
|
1309
|
-
declare const Row:
|
|
1310
|
-
gap?: CSSProperties["gap"];
|
|
1311
|
-
}
|
|
1312
|
-
declare const Column:
|
|
1313
|
-
declare const Checkbox:
|
|
1314
|
-
declare const Text:
|
|
1300
|
+
declare const Section: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
1301
|
+
$padding?: CSSProperties["padding"];
|
|
1302
|
+
$gap?: CSSProperties["gap"];
|
|
1303
|
+
}>> & string;
|
|
1304
|
+
declare const SectionHeader: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
1305
|
+
declare const Title: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
1306
|
+
$textStyle?: "small" | "heading3" | "heading4" | "heading5" | undefined;
|
|
1307
|
+
}>> & string;
|
|
1308
|
+
declare const Row: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
1309
|
+
$gap?: CSSProperties["gap"];
|
|
1310
|
+
}>> & string;
|
|
1311
|
+
declare const Column: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
1312
|
+
declare const Checkbox: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
1313
|
+
declare const Text: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
1315
1314
|
declare const VerticalSeparator: () => React__default.JSX.Element;
|
|
1316
1315
|
declare const HorizontalSeparator: () => React__default.JSX.Element;
|
|
1317
|
-
declare const RowLabel:
|
|
1318
|
-
textStyle?: "small" | "heading3" | "heading4" | "heading5" | undefined;
|
|
1319
|
-
}
|
|
1316
|
+
declare const RowLabel: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
1317
|
+
$textStyle?: "small" | "heading3" | "heading4" | "heading5" | undefined;
|
|
1318
|
+
}>> & string;
|
|
1320
1319
|
declare const LabeledRow: (props: {
|
|
1321
1320
|
id?: string | undefined;
|
|
1322
1321
|
children: ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { CSSProperties, ReactNode, ReactElement, ComponentProps, AriaRole, KeyboardEventHandler, MouseEventHandler, PointerEventHandler, FocusEventHandler, InputHTMLAttributes, Ref, ReactHTML } from 'react';
|
|
3
|
+
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
3
4
|
import * as styled_components from 'styled-components';
|
|
4
5
|
import { CSSObject, CSSProperties as CSSProperties$1 } from 'styled-components';
|
|
5
6
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
@@ -15,7 +16,6 @@ import { Size } from '@noya-app/noya-geometry';
|
|
|
15
16
|
import { IItemScore } from 'vscode-fuzzy-scorer';
|
|
16
17
|
import { useSortable } from '@dnd-kit/sortable';
|
|
17
18
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
18
|
-
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
19
19
|
import { RgbaColor } from '@noya-app/noya-colorpicker';
|
|
20
20
|
|
|
21
21
|
interface Props$h {
|
|
@@ -42,13 +42,13 @@ declare function AvatarStack({ size, children, }: {
|
|
|
42
42
|
|
|
43
43
|
type ButtonVariant = "normal" | "primary" | "primaryGradient" | "secondary" | "secondaryBright" | "white" | "thin" | "floating" | "none";
|
|
44
44
|
type ButtonSize = "normal" | "large";
|
|
45
|
-
declare const ButtonElement:
|
|
46
|
-
active: boolean;
|
|
47
|
-
variant: ButtonVariant;
|
|
48
|
-
size: ButtonSize;
|
|
49
|
-
flex?: CSSProperties["flex"];
|
|
50
|
-
defaultBackground?: string | undefined;
|
|
51
|
-
}
|
|
45
|
+
declare const ButtonElement: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
46
|
+
$active: boolean;
|
|
47
|
+
$variant: ButtonVariant;
|
|
48
|
+
$size: ButtonSize;
|
|
49
|
+
$flex?: CSSProperties["flex"];
|
|
50
|
+
$defaultBackground?: string | undefined;
|
|
51
|
+
}>> & string;
|
|
52
52
|
interface ButtonRootProps {
|
|
53
53
|
id?: string;
|
|
54
54
|
className?: string;
|
|
@@ -143,6 +143,7 @@ declare const colors$1: {
|
|
|
143
143
|
};
|
|
144
144
|
sidebar: {
|
|
145
145
|
background: string;
|
|
146
|
+
backgroundTransparent: string;
|
|
146
147
|
};
|
|
147
148
|
popover: {
|
|
148
149
|
background: string;
|
|
@@ -264,8 +265,8 @@ interface MenuProps<T extends string> {
|
|
|
264
265
|
}
|
|
265
266
|
declare const ContextMenu: <T extends string>(props: MenuProps<T>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
266
267
|
|
|
267
|
-
declare const StyledContent: styled_components.
|
|
268
|
-
declare const CloseButtonContainer:
|
|
268
|
+
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>>;
|
|
269
|
+
declare const CloseButtonContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
269
270
|
interface IDialog {
|
|
270
271
|
containsElement: (element: HTMLElement) => boolean;
|
|
271
272
|
}
|
|
@@ -282,7 +283,7 @@ interface Props$g {
|
|
|
282
283
|
declare const Dialog: (props: Props$g & React__default.RefAttributes<IDialog>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
283
284
|
declare const FullscreenDialog: (props: Props$g & React__default.RefAttributes<IDialog>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
284
285
|
|
|
285
|
-
type DividerVariant =
|
|
286
|
+
type DividerVariant = "normal" | "strong" | "subtle";
|
|
286
287
|
interface DividerProps {
|
|
287
288
|
variant?: DividerVariant;
|
|
288
289
|
overflow?: number;
|
|
@@ -318,7 +319,7 @@ type SketchPattern = {
|
|
|
318
319
|
interface Props$f {
|
|
319
320
|
id?: string;
|
|
320
321
|
value?: Sketch.Color | Sketch.Gradient | SketchPattern;
|
|
321
|
-
flex?: CSSProperties[
|
|
322
|
+
flex?: CSSProperties["flex"];
|
|
322
323
|
}
|
|
323
324
|
declare const FillInputField: (props: Props$f & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
324
325
|
|
|
@@ -481,17 +482,17 @@ interface InputFieldDropdownProps<T extends string> {
|
|
|
481
482
|
children?: ReactNode;
|
|
482
483
|
}
|
|
483
484
|
type InputFieldVariant = "normal" | "bare";
|
|
484
|
-
declare const InputElement:
|
|
485
|
-
labelPosition: LabelPosition;
|
|
486
|
-
labelSize: number;
|
|
487
|
-
hasLabel: boolean;
|
|
488
|
-
hasDropdown: boolean;
|
|
489
|
-
textAlign?: Property.TextAlign | undefined;
|
|
485
|
+
declare const InputElement: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<(TextInputProps & React__default.RefAttributes<HTMLInputElement>) & styled_components_dist_types.BaseObject, {
|
|
490
486
|
disabled?: boolean | undefined;
|
|
491
|
-
variant?: InputFieldVariant | undefined;
|
|
492
487
|
readOnly?: boolean | undefined;
|
|
493
|
-
|
|
494
|
-
|
|
488
|
+
$labelPosition: LabelPosition;
|
|
489
|
+
$labelSize: number;
|
|
490
|
+
$hasLabel: boolean;
|
|
491
|
+
$hasDropdown: boolean;
|
|
492
|
+
$textAlign?: Property.TextAlign | undefined;
|
|
493
|
+
$variant?: InputFieldVariant | undefined;
|
|
494
|
+
$size: InputFieldSize;
|
|
495
|
+
}>> & string & Omit<(props: TextInputProps & React__default.RefAttributes<HTMLInputElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null, keyof React__default.Component<any, {}, any>>;
|
|
495
496
|
type InputFieldNumberInputProps = Omit<TextInputProps, "value" | "onChange" | "onKeyDown" | "onSubmit"> & {
|
|
496
497
|
value: number | undefined;
|
|
497
498
|
onNudge?: (value: number) => void;
|
|
@@ -691,7 +692,7 @@ type ListViewRootProps = {
|
|
|
691
692
|
colorScheme?: ListColorScheme;
|
|
692
693
|
};
|
|
693
694
|
declare namespace ListView {
|
|
694
|
-
const RowTitle: React__default.
|
|
695
|
+
const RowTitle: (props: styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
695
696
|
const EditableRowTitle: (props: EditableRowProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
696
697
|
const Row: <MenuItemType extends string>(props: ListViewRowProps<MenuItemType> & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
697
698
|
const Root: <T = any>(props: ((ChildrenProps$1 | RenderProps<T>) & ListViewRootProps) & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
@@ -700,21 +701,21 @@ declare namespace ListView {
|
|
|
700
701
|
type ItemInfo = ListViewItemInfo;
|
|
701
702
|
type RowProps<MenuItemType extends string = string> = ListViewRowProps<MenuItemType>;
|
|
702
703
|
type VirtualizedList = IVirtualizedList;
|
|
703
|
-
const DragIndicator:
|
|
704
|
-
relativeDropPosition: RelativeDropPosition;
|
|
705
|
-
gap: number;
|
|
706
|
-
offsetLeft: number;
|
|
707
|
-
colorScheme: ListColorScheme;
|
|
708
|
-
}
|
|
704
|
+
const DragIndicator: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
705
|
+
$relativeDropPosition: RelativeDropPosition;
|
|
706
|
+
$gap: number;
|
|
707
|
+
$offsetLeft: number;
|
|
708
|
+
$colorScheme: ListColorScheme;
|
|
709
|
+
}>> & string;
|
|
709
710
|
const rowHeight = 31;
|
|
710
711
|
const sectionHeaderLabelHeight = 27;
|
|
711
712
|
const calculateHeight: (items: number, headerCount: number, headerVariant: ListViewSectionHeaderVariant) => number;
|
|
712
713
|
const normalizeDestinationIndex: (index: number, position: "above" | "below") => number;
|
|
713
714
|
}
|
|
714
715
|
|
|
715
|
-
declare const CompletionToken:
|
|
716
|
-
type: IToken["type"];
|
|
717
|
-
}
|
|
716
|
+
declare const CompletionToken: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
717
|
+
$type: IToken["type"];
|
|
718
|
+
}>> & string;
|
|
718
719
|
interface CompletionMenuProps {
|
|
719
720
|
items: CompletionListItem[];
|
|
720
721
|
selectedIndex: number;
|
|
@@ -753,9 +754,9 @@ interface LabelRootProps {
|
|
|
753
754
|
children: ReactNode;
|
|
754
755
|
}
|
|
755
756
|
declare namespace Label {
|
|
756
|
-
const Label: React__default.
|
|
757
|
-
selected?: boolean | undefined;
|
|
758
|
-
},
|
|
757
|
+
const Label: (props: styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
|
|
758
|
+
$selected?: boolean | undefined;
|
|
759
|
+
}>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
759
760
|
const Root: (props: LabelRootProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
760
761
|
}
|
|
761
762
|
|
|
@@ -792,9 +793,6 @@ declare function Progress({ value, width, height, flex, variant, }: {
|
|
|
792
793
|
}): React__default.JSX.Element;
|
|
793
794
|
|
|
794
795
|
type RadioGroupColorScheme = "primary" | "secondary";
|
|
795
|
-
declare const StyledRoot: styled_components.StyledComponent<React__default.ForwardRefExoticComponent<(ToggleGroupPrimitive.ToggleGroupSingleProps | ToggleGroupPrimitive.ToggleGroupMultipleProps) & React__default.RefAttributes<HTMLDivElement>>, styled_components.DefaultTheme, {
|
|
796
|
-
colorScheme?: RadioGroupColorScheme | undefined;
|
|
797
|
-
}, never>;
|
|
798
796
|
interface ItemProps {
|
|
799
797
|
value: string;
|
|
800
798
|
tooltip?: ReactNode;
|
|
@@ -804,7 +802,7 @@ interface ItemProps {
|
|
|
804
802
|
interface Props$9 {
|
|
805
803
|
id?: string;
|
|
806
804
|
value?: string;
|
|
807
|
-
onValueChange?:
|
|
805
|
+
onValueChange?: (value: string) => void;
|
|
808
806
|
colorScheme?: RadioGroupColorScheme;
|
|
809
807
|
allowEmpty?: boolean;
|
|
810
808
|
children: ReactNode;
|
|
@@ -854,8 +852,8 @@ interface Props$5 {
|
|
|
854
852
|
inline?: boolean;
|
|
855
853
|
}
|
|
856
854
|
declare namespace Spacer {
|
|
857
|
-
const Vertical:
|
|
858
|
-
const Horizontal:
|
|
855
|
+
const Vertical: (props: Props$5 & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
856
|
+
const Horizontal: (props: Props$5 & React__default.RefAttributes<HTMLSpanElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
859
857
|
}
|
|
860
858
|
|
|
861
859
|
type BreakpointKey = number | string;
|
|
@@ -1047,7 +1045,7 @@ declare namespace TreeView {
|
|
|
1047
1045
|
gap?: number | undefined;
|
|
1048
1046
|
colorScheme?: ("primary" | "secondary") | undefined;
|
|
1049
1047
|
}) & React__default.RefAttributes<IVirtualizedList>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
1050
|
-
const RowTitle: React__default.
|
|
1048
|
+
const RowTitle: (props: styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
1051
1049
|
const EditableRowTitle: (props: EditableRowProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
1052
1050
|
const Row: <MenuItemType extends string>(props: ListView.RowProps<MenuItemType> & TreeRowBaseProps & React__default.RefAttributes<HTMLLIElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
1053
1051
|
type ClickInfo = ListView.ClickInfo;
|
|
@@ -1069,7 +1067,7 @@ declare const DesignSystemConfigurationProvider: (props: {
|
|
|
1069
1067
|
declare function useDesignSystemConfiguration(): DesignSystemConfigurationContextValue;
|
|
1070
1068
|
declare function useDesignSystemTheme(): styled_components.DefaultTheme;
|
|
1071
1069
|
|
|
1072
|
-
declare const Row$1:
|
|
1070
|
+
declare const Row$1: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
1073
1071
|
type DialogContextValue = {
|
|
1074
1072
|
openInputDialog(title: string, inputValue?: string): Promise<string | undefined>;
|
|
1075
1073
|
containsElement(element: HTMLElement): boolean;
|
|
@@ -1220,6 +1218,7 @@ declare const colors: {
|
|
|
1220
1218
|
};
|
|
1221
1219
|
sidebar: {
|
|
1222
1220
|
background: string;
|
|
1221
|
+
backgroundTransparent: string;
|
|
1223
1222
|
};
|
|
1224
1223
|
popover: {
|
|
1225
1224
|
background: string;
|
|
@@ -1298,25 +1297,25 @@ interface Props {
|
|
|
1298
1297
|
}
|
|
1299
1298
|
declare const DimensionInput: (props: Props) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
1300
1299
|
|
|
1301
|
-
declare const Section:
|
|
1302
|
-
padding?: CSSProperties["padding"];
|
|
1303
|
-
gap?: CSSProperties["gap"];
|
|
1304
|
-
}
|
|
1305
|
-
declare const SectionHeader:
|
|
1306
|
-
declare const Title:
|
|
1307
|
-
textStyle?: "small" | "heading3" | "heading4" | "heading5" | undefined;
|
|
1308
|
-
}
|
|
1309
|
-
declare const Row:
|
|
1310
|
-
gap?: CSSProperties["gap"];
|
|
1311
|
-
}
|
|
1312
|
-
declare const Column:
|
|
1313
|
-
declare const Checkbox:
|
|
1314
|
-
declare const Text:
|
|
1300
|
+
declare const Section: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
1301
|
+
$padding?: CSSProperties["padding"];
|
|
1302
|
+
$gap?: CSSProperties["gap"];
|
|
1303
|
+
}>> & string;
|
|
1304
|
+
declare const SectionHeader: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
1305
|
+
declare const Title: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
1306
|
+
$textStyle?: "small" | "heading3" | "heading4" | "heading5" | undefined;
|
|
1307
|
+
}>> & string;
|
|
1308
|
+
declare const Row: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
1309
|
+
$gap?: CSSProperties["gap"];
|
|
1310
|
+
}>> & string;
|
|
1311
|
+
declare const Column: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
1312
|
+
declare const Checkbox: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
1313
|
+
declare const Text: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
1315
1314
|
declare const VerticalSeparator: () => React__default.JSX.Element;
|
|
1316
1315
|
declare const HorizontalSeparator: () => React__default.JSX.Element;
|
|
1317
|
-
declare const RowLabel:
|
|
1318
|
-
textStyle?: "small" | "heading3" | "heading4" | "heading5" | undefined;
|
|
1319
|
-
}
|
|
1316
|
+
declare const RowLabel: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
1317
|
+
$textStyle?: "small" | "heading3" | "heading4" | "heading5" | undefined;
|
|
1318
|
+
}>> & string;
|
|
1320
1319
|
declare const LabeledRow: (props: {
|
|
1321
1320
|
id?: string | undefined;
|
|
1322
1321
|
children: ReactNode;
|