@noya-app/noya-designsystem 0.0.12 → 0.0.14
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 +18 -17
- package/CHANGELOG.md +24 -0
- package/dist/index.d.mts +52 -35
- package/dist/index.d.ts +52 -35
- package/dist/index.js +45 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +45 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
- package/src/components/Button.tsx +84 -78
- package/src/components/GridView.tsx +113 -100
- package/src/components/IconButton.tsx +10 -8
- package/src/components/InputFieldWithCompletions.tsx +3 -0
- package/src/components/InspectorPrimitives.tsx +1 -1
- package/src/components/Text.tsx +57 -56
- package/src/theme/dark.ts +33 -31
- package/src/theme/light.ts +76 -64
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
|
|
2
|
+
[0m[2m[35m$[0m [2m[1mtsup src/index.tsx --format cjs,esm --dts --sourcemap[0m
|
|
3
|
+
[34mCLI[39m Building entry: src/index.tsx
|
|
4
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
5
|
+
[34mCLI[39m tsup v8.0.1
|
|
6
|
+
[34mCLI[39m Target: esnext
|
|
7
|
+
[34mCJS[39m Build start
|
|
8
|
+
[34mESM[39m Build start
|
|
9
|
+
[32mCJS[39m [1mdist/index.js [22m[32m184.94 KB[39m
|
|
10
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m368.98 KB[39m
|
|
11
|
+
[32mCJS[39m ⚡️ Build success in 86ms
|
|
12
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m168.67 KB[39m
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m368.07 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 86ms
|
|
15
|
+
[34mDTS[39m Build start
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 5856ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m53.86 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m53.86 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @noya-app/noya-designsystem
|
|
2
2
|
|
|
3
|
+
## 0.0.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Bump version
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @noya-app/noya-colorpicker@0.0.8
|
|
10
|
+
- @noya-app/noya-geometry@0.0.12
|
|
11
|
+
- @noya-app/noya-icons@0.0.5
|
|
12
|
+
- @noya-app/noya-keymap@0.0.7
|
|
13
|
+
- @noya-app/noya-utils@0.0.11
|
|
14
|
+
|
|
15
|
+
## 0.0.13
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Bump versions
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
- @noya-app/noya-colorpicker@0.0.7
|
|
22
|
+
- @noya-app/noya-geometry@0.0.11
|
|
23
|
+
- @noya-app/noya-icons@0.0.4
|
|
24
|
+
- @noya-app/noya-keymap@0.0.6
|
|
25
|
+
- @noya-app/noya-utils@0.0.10
|
|
26
|
+
|
|
3
27
|
## 0.0.12
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -34,17 +34,19 @@ declare function Avatar({ image, name, fallback, size, overflow, }: {
|
|
|
34
34
|
overflow?: number;
|
|
35
35
|
}): React__default.JSX.Element;
|
|
36
36
|
|
|
37
|
-
type ButtonVariant =
|
|
38
|
-
type ButtonSize =
|
|
37
|
+
type ButtonVariant = "normal" | "primary" | "secondary" | "secondaryBright" | "white" | "thin" | "floating" | "none";
|
|
38
|
+
type ButtonSize = "normal" | "large";
|
|
39
39
|
declare const ButtonElement: styled_components.StyledComponent<"button", styled_components.DefaultTheme, {
|
|
40
40
|
active: boolean;
|
|
41
41
|
variant: ButtonVariant;
|
|
42
42
|
size: ButtonSize;
|
|
43
|
-
flex?: CSSProperties[
|
|
43
|
+
flex?: CSSProperties["flex"];
|
|
44
44
|
}, never>;
|
|
45
45
|
interface ButtonRootProps {
|
|
46
46
|
id?: string;
|
|
47
|
-
|
|
47
|
+
className?: string;
|
|
48
|
+
style?: CSSProperties;
|
|
49
|
+
flex?: CSSProperties["flex"];
|
|
48
50
|
tabIndex?: number;
|
|
49
51
|
children: ReactNode;
|
|
50
52
|
active?: boolean;
|
|
@@ -91,6 +93,7 @@ declare const colors$1: {
|
|
|
91
93
|
textMuted: string;
|
|
92
94
|
textSubtle: string;
|
|
93
95
|
textDisabled: string;
|
|
96
|
+
textDecorativeLight: string;
|
|
94
97
|
dividerSubtle: string;
|
|
95
98
|
divider: string;
|
|
96
99
|
dividerStrong: string;
|
|
@@ -104,6 +107,9 @@ declare const colors$1: {
|
|
|
104
107
|
inputBackground: string;
|
|
105
108
|
inputBackgroundLight: string;
|
|
106
109
|
codeBackground: string;
|
|
110
|
+
codeBackgroundLight: string;
|
|
111
|
+
readonly codeBackgroundDark: string;
|
|
112
|
+
codeBackgroundDecorativeDark: string;
|
|
107
113
|
selectedBackground: string;
|
|
108
114
|
transparentChecker: string;
|
|
109
115
|
activeBackground: string;
|
|
@@ -142,6 +148,7 @@ declare const colors$1: {
|
|
|
142
148
|
readonly dragOutline: string;
|
|
143
149
|
selection: string;
|
|
144
150
|
thumbnailBackground: string;
|
|
151
|
+
thumbnailShadow: string;
|
|
145
152
|
};
|
|
146
153
|
declare const fonts: {
|
|
147
154
|
normal: string;
|
|
@@ -272,8 +279,8 @@ declare const DropdownMenu: <T extends string>(props: MenuProps<T> & {
|
|
|
272
279
|
onCloseAutoFocus?: ((event: React__default.SyntheticEvent<unknown, Event>) => void) | undefined;
|
|
273
280
|
} & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
274
281
|
|
|
275
|
-
declare const SUPPORTED_IMAGE_UPLOAD_TYPES: ("image/png" | "image/jpeg" | "image/webp" | "
|
|
276
|
-
declare const SUPPORTED_CANVAS_UPLOAD_TYPES: ("" | "image/png" | "image/jpeg" | "image/webp" | "
|
|
282
|
+
declare const SUPPORTED_IMAGE_UPLOAD_TYPES: ("image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/pdf")[];
|
|
283
|
+
declare const SUPPORTED_CANVAS_UPLOAD_TYPES: ("" | "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/pdf")[];
|
|
277
284
|
type SupportedImageUploadType = (typeof SUPPORTED_IMAGE_UPLOAD_TYPES)[number];
|
|
278
285
|
type SupportedCanvasUploadType = (typeof SUPPORTED_CANVAS_UPLOAD_TYPES)[number];
|
|
279
286
|
type SketchPattern = {
|
|
@@ -336,7 +343,7 @@ type GridProps = {
|
|
|
336
343
|
background?: keyof Colors;
|
|
337
344
|
};
|
|
338
345
|
|
|
339
|
-
type GridViewSize =
|
|
346
|
+
type GridViewSize = "xxs" | "xs" | "small" | "medium" | "large" | "xl";
|
|
340
347
|
interface ItemProps$2<MenuItemType extends string = string> {
|
|
341
348
|
id: string;
|
|
342
349
|
title?: ReactNode;
|
|
@@ -351,10 +358,11 @@ interface ItemProps$2<MenuItemType extends string = string> {
|
|
|
351
358
|
menuItems?: MenuItem<MenuItemType>[];
|
|
352
359
|
onSelectMenuItem?: (value: MenuItemType) => void;
|
|
353
360
|
onContextMenu?: () => void;
|
|
361
|
+
style?: CSSProperties;
|
|
354
362
|
}
|
|
355
363
|
type GridViewContextValue = {
|
|
356
364
|
size: GridViewSize;
|
|
357
|
-
textPosition:
|
|
365
|
+
textPosition: "overlay" | "below" | "toolip";
|
|
358
366
|
bordered: boolean;
|
|
359
367
|
disabled: boolean;
|
|
360
368
|
};
|
|
@@ -377,6 +385,8 @@ declare namespace GridView {
|
|
|
377
385
|
|
|
378
386
|
declare const IconButton: (props: Omit<ButtonRootProps, "children" | "size" | "flex" | "variant"> & {
|
|
379
387
|
iconName: keyof typeof Icons;
|
|
388
|
+
className?: string | undefined;
|
|
389
|
+
style?: React__default.CSSProperties | undefined;
|
|
380
390
|
selected?: boolean | undefined;
|
|
381
391
|
color?: string | undefined;
|
|
382
392
|
size?: number | undefined;
|
|
@@ -676,6 +686,7 @@ type Props$b = {
|
|
|
676
686
|
onDeleteWhenEmpty?: () => void;
|
|
677
687
|
size?: InputFieldSize;
|
|
678
688
|
style?: React__default.CSSProperties;
|
|
689
|
+
className?: string;
|
|
679
690
|
children?: React__default.ReactNode;
|
|
680
691
|
hideChildrenWhenFocused?: boolean;
|
|
681
692
|
hideMenuWhenEmptyValue?: boolean;
|
|
@@ -876,45 +887,46 @@ interface Props$3 {
|
|
|
876
887
|
declare const Switch: ({ value, onChange, variant, }: Props$3) => React__default.JSX.Element;
|
|
877
888
|
|
|
878
889
|
type StyleProps = {
|
|
879
|
-
flex?: CSSProperties$1[
|
|
880
|
-
padding?: CSSProperties$1[
|
|
881
|
-
background?: CSSProperties$1[
|
|
882
|
-
borderRadius?: CSSProperties$1[
|
|
883
|
-
textAlign?: CSSProperties$1[
|
|
884
|
-
fontWeight?: CSSProperties$1[
|
|
885
|
-
fontStyle?: CSSProperties$1[
|
|
886
|
-
fontSize?: CSSProperties$1[
|
|
887
|
-
lineHeight?: CSSProperties$1[
|
|
888
|
-
fontFamily?: CSSProperties$1[
|
|
889
|
-
wordBreak?: CSSProperties$1[
|
|
890
|
-
whiteSpace?: CSSProperties$1[
|
|
891
|
-
height?: CSSProperties$1[
|
|
892
|
-
width?: CSSProperties$1[
|
|
893
|
-
opacity?: CSSProperties$1[
|
|
894
|
-
position?: CSSProperties$1[
|
|
895
|
-
overflow?: CSSProperties$1[
|
|
896
|
-
textOverflow?: CSSProperties$1[
|
|
897
|
-
textDecoration?: CSSProperties$1[
|
|
898
|
-
display?: CSSProperties$1[
|
|
899
|
-
top?: CSSProperties$1[
|
|
900
|
-
right?: CSSProperties$1[
|
|
901
|
-
bottom?: CSSProperties$1[
|
|
902
|
-
left?: CSSProperties$1[
|
|
903
|
-
userSelect?: CSSProperties$1[
|
|
890
|
+
flex?: CSSProperties$1["flex"];
|
|
891
|
+
padding?: CSSProperties$1["padding"];
|
|
892
|
+
background?: CSSProperties$1["background"];
|
|
893
|
+
borderRadius?: CSSProperties$1["borderRadius"];
|
|
894
|
+
textAlign?: CSSProperties$1["textAlign"];
|
|
895
|
+
fontWeight?: CSSProperties$1["fontWeight"];
|
|
896
|
+
fontStyle?: CSSProperties$1["fontStyle"];
|
|
897
|
+
fontSize?: CSSProperties$1["fontSize"];
|
|
898
|
+
lineHeight?: CSSProperties$1["lineHeight"];
|
|
899
|
+
fontFamily?: CSSProperties$1["fontFamily"];
|
|
900
|
+
wordBreak?: CSSProperties$1["wordBreak"];
|
|
901
|
+
whiteSpace?: CSSProperties$1["whiteSpace"];
|
|
902
|
+
height?: CSSProperties$1["height"];
|
|
903
|
+
width?: CSSProperties$1["width"];
|
|
904
|
+
opacity?: CSSProperties$1["opacity"];
|
|
905
|
+
position?: CSSProperties$1["position"];
|
|
906
|
+
overflow?: CSSProperties$1["overflow"];
|
|
907
|
+
textOverflow?: CSSProperties$1["textOverflow"];
|
|
908
|
+
textDecoration?: CSSProperties$1["textDecoration"];
|
|
909
|
+
display?: CSSProperties$1["display"];
|
|
910
|
+
top?: CSSProperties$1["top"];
|
|
911
|
+
right?: CSSProperties$1["right"];
|
|
912
|
+
bottom?: CSSProperties$1["bottom"];
|
|
913
|
+
left?: CSSProperties$1["left"];
|
|
914
|
+
userSelect?: CSSProperties$1["userSelect"];
|
|
915
|
+
cursor?: CSSProperties$1["cursor"];
|
|
904
916
|
};
|
|
905
917
|
type TextBreakpointList = BreakpointCollection<StyleProps>;
|
|
906
918
|
interface Props$2 extends StyleProps {
|
|
907
919
|
as?: keyof ReactHTML;
|
|
908
920
|
href?: string;
|
|
909
921
|
className?: string;
|
|
910
|
-
variant: keyof Theme[
|
|
922
|
+
variant: keyof Theme["textStyles"];
|
|
911
923
|
breakpoints?: BreakpointCollection<StyleProps> | null | false;
|
|
912
924
|
color?: ThemeColorName;
|
|
913
925
|
children: ReactNode;
|
|
914
926
|
onClick?: () => void;
|
|
915
927
|
}
|
|
916
928
|
declare const Text$1: (props: Props$2 & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
917
|
-
type PresetProps = Omit<Props$2,
|
|
929
|
+
type PresetProps = Omit<Props$2, "variant">;
|
|
918
930
|
declare const Heading1: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
919
931
|
declare const Heading2: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
920
932
|
declare const Heading3: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
@@ -1108,6 +1120,7 @@ declare const colors: {
|
|
|
1108
1120
|
textMuted: string;
|
|
1109
1121
|
textSubtle: string;
|
|
1110
1122
|
textDisabled: string;
|
|
1123
|
+
textDecorativeLight: string;
|
|
1111
1124
|
dividerSubtle: string;
|
|
1112
1125
|
divider: string;
|
|
1113
1126
|
dividerStrong: string;
|
|
@@ -1121,6 +1134,9 @@ declare const colors: {
|
|
|
1121
1134
|
inputBackground: string;
|
|
1122
1135
|
inputBackgroundLight: string;
|
|
1123
1136
|
codeBackground: string;
|
|
1137
|
+
codeBackgroundLight: string;
|
|
1138
|
+
readonly codeBackgroundDark: string;
|
|
1139
|
+
codeBackgroundDecorativeDark: string;
|
|
1124
1140
|
selectedBackground: string;
|
|
1125
1141
|
transparentChecker: string;
|
|
1126
1142
|
activeBackground: string;
|
|
@@ -1159,6 +1175,7 @@ declare const colors: {
|
|
|
1159
1175
|
readonly dragOutline: string;
|
|
1160
1176
|
selection: string;
|
|
1161
1177
|
thumbnailBackground: string;
|
|
1178
|
+
thumbnailShadow: string;
|
|
1162
1179
|
};
|
|
1163
1180
|
|
|
1164
1181
|
declare const dark_colors: typeof colors;
|
package/dist/index.d.ts
CHANGED
|
@@ -34,17 +34,19 @@ declare function Avatar({ image, name, fallback, size, overflow, }: {
|
|
|
34
34
|
overflow?: number;
|
|
35
35
|
}): React__default.JSX.Element;
|
|
36
36
|
|
|
37
|
-
type ButtonVariant =
|
|
38
|
-
type ButtonSize =
|
|
37
|
+
type ButtonVariant = "normal" | "primary" | "secondary" | "secondaryBright" | "white" | "thin" | "floating" | "none";
|
|
38
|
+
type ButtonSize = "normal" | "large";
|
|
39
39
|
declare const ButtonElement: styled_components.StyledComponent<"button", styled_components.DefaultTheme, {
|
|
40
40
|
active: boolean;
|
|
41
41
|
variant: ButtonVariant;
|
|
42
42
|
size: ButtonSize;
|
|
43
|
-
flex?: CSSProperties[
|
|
43
|
+
flex?: CSSProperties["flex"];
|
|
44
44
|
}, never>;
|
|
45
45
|
interface ButtonRootProps {
|
|
46
46
|
id?: string;
|
|
47
|
-
|
|
47
|
+
className?: string;
|
|
48
|
+
style?: CSSProperties;
|
|
49
|
+
flex?: CSSProperties["flex"];
|
|
48
50
|
tabIndex?: number;
|
|
49
51
|
children: ReactNode;
|
|
50
52
|
active?: boolean;
|
|
@@ -91,6 +93,7 @@ declare const colors$1: {
|
|
|
91
93
|
textMuted: string;
|
|
92
94
|
textSubtle: string;
|
|
93
95
|
textDisabled: string;
|
|
96
|
+
textDecorativeLight: string;
|
|
94
97
|
dividerSubtle: string;
|
|
95
98
|
divider: string;
|
|
96
99
|
dividerStrong: string;
|
|
@@ -104,6 +107,9 @@ declare const colors$1: {
|
|
|
104
107
|
inputBackground: string;
|
|
105
108
|
inputBackgroundLight: string;
|
|
106
109
|
codeBackground: string;
|
|
110
|
+
codeBackgroundLight: string;
|
|
111
|
+
readonly codeBackgroundDark: string;
|
|
112
|
+
codeBackgroundDecorativeDark: string;
|
|
107
113
|
selectedBackground: string;
|
|
108
114
|
transparentChecker: string;
|
|
109
115
|
activeBackground: string;
|
|
@@ -142,6 +148,7 @@ declare const colors$1: {
|
|
|
142
148
|
readonly dragOutline: string;
|
|
143
149
|
selection: string;
|
|
144
150
|
thumbnailBackground: string;
|
|
151
|
+
thumbnailShadow: string;
|
|
145
152
|
};
|
|
146
153
|
declare const fonts: {
|
|
147
154
|
normal: string;
|
|
@@ -272,8 +279,8 @@ declare const DropdownMenu: <T extends string>(props: MenuProps<T> & {
|
|
|
272
279
|
onCloseAutoFocus?: ((event: React__default.SyntheticEvent<unknown, Event>) => void) | undefined;
|
|
273
280
|
} & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
274
281
|
|
|
275
|
-
declare const SUPPORTED_IMAGE_UPLOAD_TYPES: ("image/png" | "image/jpeg" | "image/webp" | "
|
|
276
|
-
declare const SUPPORTED_CANVAS_UPLOAD_TYPES: ("" | "image/png" | "image/jpeg" | "image/webp" | "
|
|
282
|
+
declare const SUPPORTED_IMAGE_UPLOAD_TYPES: ("image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/pdf")[];
|
|
283
|
+
declare const SUPPORTED_CANVAS_UPLOAD_TYPES: ("" | "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/pdf")[];
|
|
277
284
|
type SupportedImageUploadType = (typeof SUPPORTED_IMAGE_UPLOAD_TYPES)[number];
|
|
278
285
|
type SupportedCanvasUploadType = (typeof SUPPORTED_CANVAS_UPLOAD_TYPES)[number];
|
|
279
286
|
type SketchPattern = {
|
|
@@ -336,7 +343,7 @@ type GridProps = {
|
|
|
336
343
|
background?: keyof Colors;
|
|
337
344
|
};
|
|
338
345
|
|
|
339
|
-
type GridViewSize =
|
|
346
|
+
type GridViewSize = "xxs" | "xs" | "small" | "medium" | "large" | "xl";
|
|
340
347
|
interface ItemProps$2<MenuItemType extends string = string> {
|
|
341
348
|
id: string;
|
|
342
349
|
title?: ReactNode;
|
|
@@ -351,10 +358,11 @@ interface ItemProps$2<MenuItemType extends string = string> {
|
|
|
351
358
|
menuItems?: MenuItem<MenuItemType>[];
|
|
352
359
|
onSelectMenuItem?: (value: MenuItemType) => void;
|
|
353
360
|
onContextMenu?: () => void;
|
|
361
|
+
style?: CSSProperties;
|
|
354
362
|
}
|
|
355
363
|
type GridViewContextValue = {
|
|
356
364
|
size: GridViewSize;
|
|
357
|
-
textPosition:
|
|
365
|
+
textPosition: "overlay" | "below" | "toolip";
|
|
358
366
|
bordered: boolean;
|
|
359
367
|
disabled: boolean;
|
|
360
368
|
};
|
|
@@ -377,6 +385,8 @@ declare namespace GridView {
|
|
|
377
385
|
|
|
378
386
|
declare const IconButton: (props: Omit<ButtonRootProps, "children" | "size" | "flex" | "variant"> & {
|
|
379
387
|
iconName: keyof typeof Icons;
|
|
388
|
+
className?: string | undefined;
|
|
389
|
+
style?: React__default.CSSProperties | undefined;
|
|
380
390
|
selected?: boolean | undefined;
|
|
381
391
|
color?: string | undefined;
|
|
382
392
|
size?: number | undefined;
|
|
@@ -676,6 +686,7 @@ type Props$b = {
|
|
|
676
686
|
onDeleteWhenEmpty?: () => void;
|
|
677
687
|
size?: InputFieldSize;
|
|
678
688
|
style?: React__default.CSSProperties;
|
|
689
|
+
className?: string;
|
|
679
690
|
children?: React__default.ReactNode;
|
|
680
691
|
hideChildrenWhenFocused?: boolean;
|
|
681
692
|
hideMenuWhenEmptyValue?: boolean;
|
|
@@ -876,45 +887,46 @@ interface Props$3 {
|
|
|
876
887
|
declare const Switch: ({ value, onChange, variant, }: Props$3) => React__default.JSX.Element;
|
|
877
888
|
|
|
878
889
|
type StyleProps = {
|
|
879
|
-
flex?: CSSProperties$1[
|
|
880
|
-
padding?: CSSProperties$1[
|
|
881
|
-
background?: CSSProperties$1[
|
|
882
|
-
borderRadius?: CSSProperties$1[
|
|
883
|
-
textAlign?: CSSProperties$1[
|
|
884
|
-
fontWeight?: CSSProperties$1[
|
|
885
|
-
fontStyle?: CSSProperties$1[
|
|
886
|
-
fontSize?: CSSProperties$1[
|
|
887
|
-
lineHeight?: CSSProperties$1[
|
|
888
|
-
fontFamily?: CSSProperties$1[
|
|
889
|
-
wordBreak?: CSSProperties$1[
|
|
890
|
-
whiteSpace?: CSSProperties$1[
|
|
891
|
-
height?: CSSProperties$1[
|
|
892
|
-
width?: CSSProperties$1[
|
|
893
|
-
opacity?: CSSProperties$1[
|
|
894
|
-
position?: CSSProperties$1[
|
|
895
|
-
overflow?: CSSProperties$1[
|
|
896
|
-
textOverflow?: CSSProperties$1[
|
|
897
|
-
textDecoration?: CSSProperties$1[
|
|
898
|
-
display?: CSSProperties$1[
|
|
899
|
-
top?: CSSProperties$1[
|
|
900
|
-
right?: CSSProperties$1[
|
|
901
|
-
bottom?: CSSProperties$1[
|
|
902
|
-
left?: CSSProperties$1[
|
|
903
|
-
userSelect?: CSSProperties$1[
|
|
890
|
+
flex?: CSSProperties$1["flex"];
|
|
891
|
+
padding?: CSSProperties$1["padding"];
|
|
892
|
+
background?: CSSProperties$1["background"];
|
|
893
|
+
borderRadius?: CSSProperties$1["borderRadius"];
|
|
894
|
+
textAlign?: CSSProperties$1["textAlign"];
|
|
895
|
+
fontWeight?: CSSProperties$1["fontWeight"];
|
|
896
|
+
fontStyle?: CSSProperties$1["fontStyle"];
|
|
897
|
+
fontSize?: CSSProperties$1["fontSize"];
|
|
898
|
+
lineHeight?: CSSProperties$1["lineHeight"];
|
|
899
|
+
fontFamily?: CSSProperties$1["fontFamily"];
|
|
900
|
+
wordBreak?: CSSProperties$1["wordBreak"];
|
|
901
|
+
whiteSpace?: CSSProperties$1["whiteSpace"];
|
|
902
|
+
height?: CSSProperties$1["height"];
|
|
903
|
+
width?: CSSProperties$1["width"];
|
|
904
|
+
opacity?: CSSProperties$1["opacity"];
|
|
905
|
+
position?: CSSProperties$1["position"];
|
|
906
|
+
overflow?: CSSProperties$1["overflow"];
|
|
907
|
+
textOverflow?: CSSProperties$1["textOverflow"];
|
|
908
|
+
textDecoration?: CSSProperties$1["textDecoration"];
|
|
909
|
+
display?: CSSProperties$1["display"];
|
|
910
|
+
top?: CSSProperties$1["top"];
|
|
911
|
+
right?: CSSProperties$1["right"];
|
|
912
|
+
bottom?: CSSProperties$1["bottom"];
|
|
913
|
+
left?: CSSProperties$1["left"];
|
|
914
|
+
userSelect?: CSSProperties$1["userSelect"];
|
|
915
|
+
cursor?: CSSProperties$1["cursor"];
|
|
904
916
|
};
|
|
905
917
|
type TextBreakpointList = BreakpointCollection<StyleProps>;
|
|
906
918
|
interface Props$2 extends StyleProps {
|
|
907
919
|
as?: keyof ReactHTML;
|
|
908
920
|
href?: string;
|
|
909
921
|
className?: string;
|
|
910
|
-
variant: keyof Theme[
|
|
922
|
+
variant: keyof Theme["textStyles"];
|
|
911
923
|
breakpoints?: BreakpointCollection<StyleProps> | null | false;
|
|
912
924
|
color?: ThemeColorName;
|
|
913
925
|
children: ReactNode;
|
|
914
926
|
onClick?: () => void;
|
|
915
927
|
}
|
|
916
928
|
declare const Text$1: (props: Props$2 & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
917
|
-
type PresetProps = Omit<Props$2,
|
|
929
|
+
type PresetProps = Omit<Props$2, "variant">;
|
|
918
930
|
declare const Heading1: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
919
931
|
declare const Heading2: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
920
932
|
declare const Heading3: (props: PresetProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
@@ -1108,6 +1120,7 @@ declare const colors: {
|
|
|
1108
1120
|
textMuted: string;
|
|
1109
1121
|
textSubtle: string;
|
|
1110
1122
|
textDisabled: string;
|
|
1123
|
+
textDecorativeLight: string;
|
|
1111
1124
|
dividerSubtle: string;
|
|
1112
1125
|
divider: string;
|
|
1113
1126
|
dividerStrong: string;
|
|
@@ -1121,6 +1134,9 @@ declare const colors: {
|
|
|
1121
1134
|
inputBackground: string;
|
|
1122
1135
|
inputBackgroundLight: string;
|
|
1123
1136
|
codeBackground: string;
|
|
1137
|
+
codeBackgroundLight: string;
|
|
1138
|
+
readonly codeBackgroundDark: string;
|
|
1139
|
+
codeBackgroundDecorativeDark: string;
|
|
1124
1140
|
selectedBackground: string;
|
|
1125
1141
|
transparentChecker: string;
|
|
1126
1142
|
activeBackground: string;
|
|
@@ -1159,6 +1175,7 @@ declare const colors: {
|
|
|
1159
1175
|
readonly dragOutline: string;
|
|
1160
1176
|
selection: string;
|
|
1161
1177
|
thumbnailBackground: string;
|
|
1178
|
+
thumbnailShadow: string;
|
|
1162
1179
|
};
|
|
1163
1180
|
|
|
1164
1181
|
declare const dark_colors: typeof colors;
|
package/dist/index.js
CHANGED
|
@@ -245,9 +245,9 @@ var ButtonElement = import_styled_components4.default.button(({ theme, active, d
|
|
|
245
245
|
textAlign: "left",
|
|
246
246
|
borderRadius: "4px",
|
|
247
247
|
paddingTop: variant === "none" ? "0px" : "4px",
|
|
248
|
-
paddingRight: variant === "none" ? "0px" : variant === "thin" ? "1px" : "
|
|
248
|
+
paddingRight: variant === "none" ? "0px" : variant === "thin" ? "1px" : "8px",
|
|
249
249
|
paddingBottom: variant === "none" ? "0px" : "4px",
|
|
250
|
-
paddingLeft: variant === "none" ? "0px" : variant === "thin" ? "1px" : "
|
|
250
|
+
paddingLeft: variant === "none" ? "0px" : variant === "thin" ? "1px" : "8px",
|
|
251
251
|
...size2 === "large" && {
|
|
252
252
|
paddingTop: "12px",
|
|
253
253
|
paddingRight: "16px",
|
|
@@ -332,6 +332,8 @@ var ButtonContent = import_styled_components4.default.span(({ theme }) => ({
|
|
|
332
332
|
}));
|
|
333
333
|
var Button = (0, import_react4.forwardRef)(function Button2({
|
|
334
334
|
id,
|
|
335
|
+
className,
|
|
336
|
+
style,
|
|
335
337
|
flex,
|
|
336
338
|
tabIndex,
|
|
337
339
|
tooltip,
|
|
@@ -350,6 +352,8 @@ var Button = (0, import_react4.forwardRef)(function Button2({
|
|
|
350
352
|
{
|
|
351
353
|
ref: forwardedRef,
|
|
352
354
|
id,
|
|
355
|
+
className,
|
|
356
|
+
style,
|
|
353
357
|
flex,
|
|
354
358
|
tabIndex,
|
|
355
359
|
active,
|
|
@@ -2074,14 +2078,9 @@ var DividerVertical = (0, import_react20.memo)(function DividerVertical2(props)
|
|
|
2074
2078
|
var import_react24 = __toESM(require("react"));
|
|
2075
2079
|
var import_styled_components20 = __toESM(require("styled-components"));
|
|
2076
2080
|
|
|
2077
|
-
// ../noya-file-format/
|
|
2078
|
-
var __defProp2 = Object.defineProperty;
|
|
2079
|
-
var __export2 = (target, all) => {
|
|
2080
|
-
for (var name in all)
|
|
2081
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
2082
|
-
};
|
|
2081
|
+
// ../noya-file-format/src/types.ts
|
|
2083
2082
|
var types_exports = {};
|
|
2084
|
-
|
|
2083
|
+
__export(types_exports, {
|
|
2085
2084
|
AnimationType: () => AnimationType,
|
|
2086
2085
|
BlendMode: () => BlendMode,
|
|
2087
2086
|
BlurType: () => BlurType,
|
|
@@ -2756,10 +2755,20 @@ var sizes = {
|
|
|
2756
2755
|
itemHeight: 170,
|
|
2757
2756
|
gap: 20
|
|
2758
2757
|
},
|
|
2758
|
+
medium: {
|
|
2759
|
+
itemWidth: 220,
|
|
2760
|
+
itemHeight: 220,
|
|
2761
|
+
gap: 16
|
|
2762
|
+
},
|
|
2759
2763
|
large: {
|
|
2760
2764
|
itemWidth: 280,
|
|
2761
2765
|
itemHeight: 280,
|
|
2762
|
-
gap:
|
|
2766
|
+
gap: 24
|
|
2767
|
+
},
|
|
2768
|
+
xl: {
|
|
2769
|
+
itemWidth: 400,
|
|
2770
|
+
itemHeight: 400,
|
|
2771
|
+
gap: 32
|
|
2763
2772
|
}
|
|
2764
2773
|
};
|
|
2765
2774
|
var Grid2 = import_styled_components23.default.div(({ theme, size: size2, padding }) => {
|
|
@@ -2919,7 +2928,8 @@ var GridViewItem = (0, import_react27.forwardRef)(function GridViewItem2({
|
|
|
2919
2928
|
children,
|
|
2920
2929
|
menuItems,
|
|
2921
2930
|
onSelectMenuItem,
|
|
2922
|
-
onContextMenu
|
|
2931
|
+
onContextMenu,
|
|
2932
|
+
style
|
|
2923
2933
|
}, forwardedRef) {
|
|
2924
2934
|
const [hovered, setHovered] = import_react27.default.useState(false);
|
|
2925
2935
|
const { hoverProps } = useHover({
|
|
@@ -2968,7 +2978,8 @@ var GridViewItem = (0, import_react27.forwardRef)(function GridViewItem2({
|
|
|
2968
2978
|
hovered: !disabled && hovered,
|
|
2969
2979
|
onClick: handleClick,
|
|
2970
2980
|
onDoubleClick,
|
|
2971
|
-
onContextMenu
|
|
2981
|
+
onContextMenu,
|
|
2982
|
+
style
|
|
2972
2983
|
},
|
|
2973
2984
|
children
|
|
2974
2985
|
),
|
|
@@ -4077,6 +4088,7 @@ var InputFieldWithCompletions = (0, import_react31.memo)(
|
|
|
4077
4088
|
onBlur,
|
|
4078
4089
|
onDeleteWhenEmpty,
|
|
4079
4090
|
style,
|
|
4091
|
+
className,
|
|
4080
4092
|
children,
|
|
4081
4093
|
hideChildrenWhenFocused = false,
|
|
4082
4094
|
hideMenuWhenEmptyValue = false
|
|
@@ -4278,6 +4290,7 @@ var InputFieldWithCompletions = (0, import_react31.memo)(
|
|
|
4278
4290
|
onFocusCapture: handleFocus,
|
|
4279
4291
|
onKeyDown: handleKeyDown,
|
|
4280
4292
|
style,
|
|
4293
|
+
className,
|
|
4281
4294
|
autoCapitalize: "off",
|
|
4282
4295
|
autoComplete: "off",
|
|
4283
4296
|
autoCorrect: "off",
|
|
@@ -4913,6 +4926,7 @@ var colors = {
|
|
|
4913
4926
|
textMuted: "rgb(85, 85, 85)",
|
|
4914
4927
|
textSubtle: "rgb(121, 121, 121)",
|
|
4915
4928
|
textDisabled: "rgb(160, 160, 160)",
|
|
4929
|
+
textDecorativeLight: "rgb(168, 185, 212)",
|
|
4916
4930
|
dividerSubtle: "rgba(0, 0, 0, 0.04)",
|
|
4917
4931
|
divider: "rgba(0, 0, 0, 0.07)",
|
|
4918
4932
|
dividerStrong: "rgba(0, 0, 0, 0.09)",
|
|
@@ -4926,6 +4940,11 @@ var colors = {
|
|
|
4926
4940
|
inputBackground: "rgb(240, 240, 242)",
|
|
4927
4941
|
inputBackgroundLight: "rgb(243, 243, 245)",
|
|
4928
4942
|
codeBackground: "rgb(250, 250, 250)",
|
|
4943
|
+
codeBackgroundLight: "rgb(250, 250, 250)",
|
|
4944
|
+
get codeBackgroundDark() {
|
|
4945
|
+
return colors.text;
|
|
4946
|
+
},
|
|
4947
|
+
codeBackgroundDecorativeDark: "#435080",
|
|
4929
4948
|
selectedBackground: "rgb(242, 245, 250)",
|
|
4930
4949
|
transparentChecker: "rgba(255,255,255,0.8)",
|
|
4931
4950
|
activeBackground: "rgba(0,0,0,0.1)",
|
|
@@ -4967,10 +4986,11 @@ var colors = {
|
|
|
4967
4986
|
return colors.primary;
|
|
4968
4987
|
},
|
|
4969
4988
|
selection: "rgb(179,215,254)",
|
|
4970
|
-
thumbnailBackground: "#E1DAFF"
|
|
4989
|
+
thumbnailBackground: "#E1DAFF",
|
|
4990
|
+
thumbnailShadow: "#D3CEED66"
|
|
4971
4991
|
};
|
|
4972
4992
|
var fonts = {
|
|
4973
|
-
normal: "-apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
4993
|
+
normal: "'__Inter_6b0edc', '__Inter_Fallback_6b0edc', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
4974
4994
|
monospace: "Menlo, Monaco, Consolas, 'Courier New', monospace"
|
|
4975
4995
|
};
|
|
4976
4996
|
var typeScale = [3.052, 2.441, 1.953, 1.563, 1.25, 1, 0.85];
|
|
@@ -4980,6 +5000,7 @@ var textStyles = {
|
|
|
4980
5000
|
fontSize: `${typeScale[0]}rem`,
|
|
4981
5001
|
fontWeight: "bold",
|
|
4982
5002
|
lineHeight: "1.4",
|
|
5003
|
+
letterSpacing: "-0.05em",
|
|
4983
5004
|
[mediaQuery.small]: {
|
|
4984
5005
|
fontSize: "36px"
|
|
4985
5006
|
}
|
|
@@ -4989,6 +5010,7 @@ var textStyles = {
|
|
|
4989
5010
|
fontSize: `${typeScale[3]}rem`,
|
|
4990
5011
|
fontWeight: 500,
|
|
4991
5012
|
lineHeight: "1.75",
|
|
5013
|
+
letterSpacing: "-0.05em",
|
|
4992
5014
|
[mediaQuery.small]: {
|
|
4993
5015
|
fontSize: "18px"
|
|
4994
5016
|
}
|
|
@@ -4997,19 +5019,22 @@ var textStyles = {
|
|
|
4997
5019
|
fontFamily: fonts.normal,
|
|
4998
5020
|
fontSize: `${typeScale[2]}rem`,
|
|
4999
5021
|
fontWeight: 500,
|
|
5000
|
-
lineHeight: "1.75"
|
|
5022
|
+
lineHeight: "1.75",
|
|
5023
|
+
letterSpacing: "-0.025em"
|
|
5001
5024
|
},
|
|
5002
5025
|
heading2: {
|
|
5003
5026
|
fontFamily: fonts.normal,
|
|
5004
5027
|
fontSize: `${typeScale[3]}rem`,
|
|
5005
5028
|
fontWeight: 500,
|
|
5006
|
-
lineHeight: "1.75"
|
|
5029
|
+
lineHeight: "1.75",
|
|
5030
|
+
letterSpacing: "-0.025em"
|
|
5007
5031
|
},
|
|
5008
5032
|
heading3: {
|
|
5009
5033
|
fontFamily: fonts.normal,
|
|
5010
5034
|
fontSize: `${typeScale[4]}rem`,
|
|
5011
5035
|
fontWeight: 500,
|
|
5012
|
-
lineHeight: "1.75"
|
|
5036
|
+
lineHeight: "1.75",
|
|
5037
|
+
letterSpacing: "-0.025em"
|
|
5013
5038
|
},
|
|
5014
5039
|
heading4: {
|
|
5015
5040
|
fontFamily: fonts.normal,
|
|
@@ -5105,6 +5130,8 @@ var colors2 = (0, import_immer.default)(colors, (colors3) => {
|
|
|
5105
5130
|
colors3.placeholderDots = "rgba(255,255,255,0.3)";
|
|
5106
5131
|
colors3.dragOutline = "white";
|
|
5107
5132
|
colors3.activeBackground = "rgba(181,178,255,0.08)";
|
|
5133
|
+
colors3.thumbnailBackground = "#1f1d33";
|
|
5134
|
+
colors3.thumbnailShadow = "#1f1d3366";
|
|
5108
5135
|
});
|
|
5109
5136
|
|
|
5110
5137
|
// src/utils/createSectionedMenu.ts
|
|
@@ -5193,7 +5220,7 @@ var Column = import_styled_components34.default.div(({ theme }) => ({
|
|
|
5193
5220
|
flex: "1",
|
|
5194
5221
|
display: "flex",
|
|
5195
5222
|
flexDirection: "column",
|
|
5196
|
-
gap: "
|
|
5223
|
+
gap: "4px"
|
|
5197
5224
|
}));
|
|
5198
5225
|
var Checkbox = import_styled_components34.default.input(({ theme }) => ({
|
|
5199
5226
|
margin: 0
|