@noya-app/noya-designsystem 0.1.23 → 0.1.24
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 +6 -0
- package/dist/index.d.mts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +608 -596
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +271 -259
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ContextMenu.tsx +2 -1
- package/src/components/DropdownMenu.tsx +3 -2
- package/src/components/IconButton.tsx +2 -2
- package/src/components/Icons.tsx +18 -0
- package/src/components/SelectMenu.tsx +3 -2
- package/src/components/TreeView.tsx +3 -2
- package/src/components/internal/Menu.tsx +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[32m231.87 KB[39m
|
|
9
|
-
[32mCJS[39m [1mdist/index.js.map [22m[32m466.94 KB[39m
|
|
10
|
-
[32mCJS[39m ⚡️ Build success in 168ms
|
|
11
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m213.59 KB[39m
|
|
12
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[32m467.05 KB[39m
|
|
13
|
-
[32mESM[39m ⚡️ Build success in 170ms
|
|
14
8
|
[34mDTS[39m Build start
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
9
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m213.95 KB[39m
|
|
10
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m468.02 KB[39m
|
|
11
|
+
[32mESM[39m ⚡️ Build success in 297ms
|
|
12
|
+
[32mCJS[39m [1mdist/index.js [22m[32m232.25 KB[39m
|
|
13
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m467.92 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 336ms
|
|
15
|
+
[32mDTS[39m ⚡️ Build success in 10367ms
|
|
16
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m61.69 KB[39m
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m61.69 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -3,6 +3,7 @@ import React__default, { CSSProperties, ReactNode, ComponentProps, AriaRole, Key
|
|
|
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';
|
|
6
|
+
import * as Icons from '@noya-app/noya-icons';
|
|
6
7
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
7
8
|
import * as RadixDropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
8
9
|
import { Sketch } from '@noya-app/noya-file-format';
|
|
@@ -10,7 +11,6 @@ import * as csstype from 'csstype';
|
|
|
10
11
|
import { Property } from 'csstype';
|
|
11
12
|
import * as _noya_app_noya_keymap from '@noya-app/noya-keymap';
|
|
12
13
|
import { KeyModifiers, PlatformName } from '@noya-app/noya-keymap';
|
|
13
|
-
import * as Icons from '@noya-app/noya-icons';
|
|
14
14
|
import * as _noya_app_noya_geometry from '@noya-app/noya-geometry';
|
|
15
15
|
import { Size } from '@noya-app/noya-geometry';
|
|
16
16
|
import { IItemScore } from 'vscode-fuzzy-scorer';
|
|
@@ -229,6 +229,8 @@ type PickByValue<T, V> = Pick<T, {
|
|
|
229
229
|
}[keyof T]>;
|
|
230
230
|
type ThemeColorName = keyof PickByValue<Theme['colors'], string>;
|
|
231
231
|
|
|
232
|
+
type IconName = keyof typeof Icons;
|
|
233
|
+
|
|
232
234
|
declare const SEPARATOR_ITEM = "separator";
|
|
233
235
|
type MenuItemRole = "undo" | "redo" | "cut" | "copy" | "paste" | "pasteAndMatchStyle" | "delete" | "selectAll" | "reload" | "forceReload" | "toggleDevTools" | "resetZoom" | "zoomIn" | "zoomOut" | "toggleSpellChecker" | "togglefullscreen" | "window" | "minimize" | "close" | "help" | "about" | "services" | "hide" | "hideOthers" | "unhide" | "quit" | "showSubstitutions" | "toggleSmartQuotes" | "toggleSmartDashes" | "toggleTextReplacement" | "startSpeaking" | "stopSpeaking" | "zoom" | "front" | "appMenu" | "fileMenu" | "editMenu" | "viewMenu" | "shareMenu" | "recentDocuments" | "toggleTabBar" | "selectNextTab" | "selectPreviousTab" | "mergeAllWindows" | "clearRecentDocuments" | "moveTabToNewWindow" | "windowMenu";
|
|
234
236
|
type RegularMenuItem<T extends string> = {
|
|
@@ -237,7 +239,7 @@ type RegularMenuItem<T extends string> = {
|
|
|
237
239
|
shortcut?: string;
|
|
238
240
|
checked?: boolean;
|
|
239
241
|
disabled?: boolean;
|
|
240
|
-
icon?: ReactNode;
|
|
242
|
+
icon?: Exclude<ReactNode, string> | IconName;
|
|
241
243
|
items?: MenuItem<T>[];
|
|
242
244
|
role?: MenuItemRole;
|
|
243
245
|
};
|
|
@@ -432,7 +434,7 @@ declare namespace GridView {
|
|
|
432
434
|
}
|
|
433
435
|
|
|
434
436
|
declare const IconButton: (props: Omit<ButtonRootProps, "children" | "size" | "flex" | "variant"> & {
|
|
435
|
-
iconName:
|
|
437
|
+
iconName: IconName;
|
|
436
438
|
className?: string | undefined;
|
|
437
439
|
style?: React__default.CSSProperties | undefined;
|
|
438
440
|
selected?: boolean | undefined;
|
|
@@ -1049,7 +1051,7 @@ interface Props$2 {
|
|
|
1049
1051
|
declare const Tooltip: (props: Props$2) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
1050
1052
|
|
|
1051
1053
|
type TreeRowBaseProps = {
|
|
1052
|
-
icon?: ReactNode;
|
|
1054
|
+
icon?: Exclude<ReactNode, string> | IconName;
|
|
1053
1055
|
expanded?: boolean;
|
|
1054
1056
|
onClickChevron?: ({ altKey }: {
|
|
1055
1057
|
altKey: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import React__default, { CSSProperties, ReactNode, ComponentProps, AriaRole, Key
|
|
|
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';
|
|
6
|
+
import * as Icons from '@noya-app/noya-icons';
|
|
6
7
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
7
8
|
import * as RadixDropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
8
9
|
import { Sketch } from '@noya-app/noya-file-format';
|
|
@@ -10,7 +11,6 @@ import * as csstype from 'csstype';
|
|
|
10
11
|
import { Property } from 'csstype';
|
|
11
12
|
import * as _noya_app_noya_keymap from '@noya-app/noya-keymap';
|
|
12
13
|
import { KeyModifiers, PlatformName } from '@noya-app/noya-keymap';
|
|
13
|
-
import * as Icons from '@noya-app/noya-icons';
|
|
14
14
|
import * as _noya_app_noya_geometry from '@noya-app/noya-geometry';
|
|
15
15
|
import { Size } from '@noya-app/noya-geometry';
|
|
16
16
|
import { IItemScore } from 'vscode-fuzzy-scorer';
|
|
@@ -229,6 +229,8 @@ type PickByValue<T, V> = Pick<T, {
|
|
|
229
229
|
}[keyof T]>;
|
|
230
230
|
type ThemeColorName = keyof PickByValue<Theme['colors'], string>;
|
|
231
231
|
|
|
232
|
+
type IconName = keyof typeof Icons;
|
|
233
|
+
|
|
232
234
|
declare const SEPARATOR_ITEM = "separator";
|
|
233
235
|
type MenuItemRole = "undo" | "redo" | "cut" | "copy" | "paste" | "pasteAndMatchStyle" | "delete" | "selectAll" | "reload" | "forceReload" | "toggleDevTools" | "resetZoom" | "zoomIn" | "zoomOut" | "toggleSpellChecker" | "togglefullscreen" | "window" | "minimize" | "close" | "help" | "about" | "services" | "hide" | "hideOthers" | "unhide" | "quit" | "showSubstitutions" | "toggleSmartQuotes" | "toggleSmartDashes" | "toggleTextReplacement" | "startSpeaking" | "stopSpeaking" | "zoom" | "front" | "appMenu" | "fileMenu" | "editMenu" | "viewMenu" | "shareMenu" | "recentDocuments" | "toggleTabBar" | "selectNextTab" | "selectPreviousTab" | "mergeAllWindows" | "clearRecentDocuments" | "moveTabToNewWindow" | "windowMenu";
|
|
234
236
|
type RegularMenuItem<T extends string> = {
|
|
@@ -237,7 +239,7 @@ type RegularMenuItem<T extends string> = {
|
|
|
237
239
|
shortcut?: string;
|
|
238
240
|
checked?: boolean;
|
|
239
241
|
disabled?: boolean;
|
|
240
|
-
icon?: ReactNode;
|
|
242
|
+
icon?: Exclude<ReactNode, string> | IconName;
|
|
241
243
|
items?: MenuItem<T>[];
|
|
242
244
|
role?: MenuItemRole;
|
|
243
245
|
};
|
|
@@ -432,7 +434,7 @@ declare namespace GridView {
|
|
|
432
434
|
}
|
|
433
435
|
|
|
434
436
|
declare const IconButton: (props: Omit<ButtonRootProps, "children" | "size" | "flex" | "variant"> & {
|
|
435
|
-
iconName:
|
|
437
|
+
iconName: IconName;
|
|
436
438
|
className?: string | undefined;
|
|
437
439
|
style?: React__default.CSSProperties | undefined;
|
|
438
440
|
selected?: boolean | undefined;
|
|
@@ -1049,7 +1051,7 @@ interface Props$2 {
|
|
|
1049
1051
|
declare const Tooltip: (props: Props$2) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
1050
1052
|
|
|
1051
1053
|
type TreeRowBaseProps = {
|
|
1052
|
-
icon?: ReactNode;
|
|
1054
|
+
icon?: Exclude<ReactNode, string> | IconName;
|
|
1053
1055
|
expanded?: boolean;
|
|
1054
1056
|
onClickChevron?: ({ altKey }: {
|
|
1055
1057
|
altKey: boolean;
|