@noya-app/noya-designsystem 0.1.2 → 0.1.4
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 +10 -11
- package/.turbo/turbo-lint.log +1 -2
- package/CHANGELOG.md +13 -0
- package/dist/index.d.mts +6 -27
- package/dist/index.d.ts +6 -27
- package/dist/index.js +490 -501
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +133 -141
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -4
- package/src/components/ListView.tsx +2 -2
- package/src/hooks/__tests__/mergeEventHandlers.test.ts +8 -2
- package/src/hooks/mergeEventHandlers.ts +10 -37
- package/src/index.tsx +0 -2
- package/src/utils/mouseEvent.ts +0 -7
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
[0m[2m[35m$[0m [2m[1mtsup src/index.tsx --format cjs,esm --dts --sourcemap[0m
|
|
1
|
+
[0m[2m[35m$[0m [2m[1mtsup src/index.tsx --format cjs,esm --dts --sourcemap[0m
|
|
3
2
|
[34mCLI[39m Building entry: src/index.tsx
|
|
4
3
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
5
4
|
[34mCLI[39m tsup v8.0.1
|
|
6
5
|
[34mCLI[39m Target: esnext
|
|
7
6
|
[34mCJS[39m Build start
|
|
8
7
|
[34mESM[39m Build start
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
8
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m182.50 KB[39m
|
|
9
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m402.42 KB[39m
|
|
10
|
+
[32mESM[39m ⚡️ Build success in 89ms
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m198.78 KB[39m
|
|
12
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m402.70 KB[39m
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 89ms
|
|
15
14
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
15
|
+
[32mDTS[39m ⚡️ Build success in 5952ms
|
|
16
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m53.87 KB[39m
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m53.87 KB[39m
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
[0m[2m[35m$[0m [2m[1meslint . --max-warnings 0[0m
|
|
1
|
+
[0m[2m[35m$[0m [2m[1meslint . --max-warnings 0[0m
|
|
3
2
|
Pages directory cannot be found at /Users/devinabbott/Projects/noya-core/packages/noya-designsystem/pages or /Users/devinabbott/Projects/noya-core/packages/noya-designsystem/src/pages. If using a custom path, please configure with the `no-html-link-for-pages` rule in your eslint config file.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @noya-app/noya-designsystem
|
|
2
2
|
|
|
3
|
+
## 0.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [e2253f0]
|
|
8
|
+
- @noya-app/noya-geometry@0.1.1
|
|
9
|
+
|
|
10
|
+
## 0.1.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- @noya-app/noya-colorpicker@0.1.2
|
|
15
|
+
|
|
3
16
|
## 0.1.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ import { Sketch } from '@noya-app/noya-file-format';
|
|
|
7
7
|
import * as csstype from 'csstype';
|
|
8
8
|
import { Property } from 'csstype';
|
|
9
9
|
import * as _noya_app_noya_keymap from '@noya-app/noya-keymap';
|
|
10
|
-
import { KeyModifiers, PlatformName
|
|
10
|
+
import { KeyModifiers, PlatformName } from '@noya-app/noya-keymap';
|
|
11
11
|
import * as Icons from '@noya-app/noya-icons';
|
|
12
12
|
import * as _noya_app_noya_geometry from '@noya-app/noya-geometry';
|
|
13
13
|
import { Size } from '@noya-app/noya-geometry';
|
|
@@ -15,7 +15,6 @@ import { IItemScore } from 'vscode-fuzzy-scorer';
|
|
|
15
15
|
import { useSortable } from '@dnd-kit/sortable';
|
|
16
16
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
17
17
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
18
|
-
import { useGesture } from 'react-use-gesture';
|
|
19
18
|
import { RgbaColor } from '@noya-app/noya-colorpicker';
|
|
20
19
|
|
|
21
20
|
interface Props$h {
|
|
@@ -1062,27 +1061,6 @@ declare const useGlobalInputBlur: () => GlobalInputBlurContextValue;
|
|
|
1062
1061
|
declare function useGlobalInputBlurListener(f: () => void): void;
|
|
1063
1062
|
declare function useGlobalInputBlurTrigger(): () => void;
|
|
1064
1063
|
|
|
1065
|
-
type Optional<T> = T | false | null | undefined;
|
|
1066
|
-
type MenuConfig<T extends string> = Optional<Optional<RegularMenuItem<T>>[]>[];
|
|
1067
|
-
declare function createSectionedMenu<T extends string>(...sections: MenuConfig<T>): MenuItem<T>[];
|
|
1068
|
-
|
|
1069
|
-
type ReactDOMEventHandlers = ReturnType<ReturnType<typeof useGesture>> & {
|
|
1070
|
-
onKeyDown?: (e: React.KeyboardEvent) => void;
|
|
1071
|
-
onKeyDownCapture?: (e: React.KeyboardEvent) => void;
|
|
1072
|
-
onKeyUp?: (e: React.KeyboardEvent) => void;
|
|
1073
|
-
onKeyUpCapture?: (e: React.KeyboardEvent) => void;
|
|
1074
|
-
onKeyPress?: (e: React.KeyboardEvent) => void;
|
|
1075
|
-
onKeyPressCapture?: (e: React.KeyboardEvent) => void;
|
|
1076
|
-
onBeforeInput?: (e: InputEvent) => void;
|
|
1077
|
-
};
|
|
1078
|
-
type ReactEventHandlers<MenuItemType extends string = string> = ReactDOMEventHandlers & {
|
|
1079
|
-
onContributeMenuItems?: () => Optional<RegularMenuItem<MenuItemType>>[];
|
|
1080
|
-
keyboardShortcuts?: KeyMap;
|
|
1081
|
-
onSelectMenuItem?: (id: string) => void;
|
|
1082
|
-
};
|
|
1083
|
-
type EventName = keyof ReactEventHandlers;
|
|
1084
|
-
declare function mergeEventHandlers(...handlerMaps: ReactEventHandlers[]): ReactEventHandlers;
|
|
1085
|
-
|
|
1086
1064
|
interface HoverEvent {
|
|
1087
1065
|
/** The type of hover event being fired. */
|
|
1088
1066
|
type: 'hoverstart' | 'hoverend';
|
|
@@ -1208,10 +1186,11 @@ declare namespace dark {
|
|
|
1208
1186
|
export { dark_colors as colors, dark_fonts as fonts, dark_sizes as sizes, dark_textStyles as textStyles };
|
|
1209
1187
|
}
|
|
1210
1188
|
|
|
1211
|
-
|
|
1189
|
+
type Optional<T> = T | false | null | undefined;
|
|
1190
|
+
type MenuConfig<T extends string> = Optional<Optional<RegularMenuItem<T>>[]>[];
|
|
1191
|
+
declare function createSectionedMenu<T extends string>(...sections: MenuConfig<T>): MenuItem<T>[];
|
|
1212
1192
|
|
|
1213
|
-
declare function
|
|
1214
|
-
declare function isRightButtonClicked(event: React.MouseEvent): boolean;
|
|
1193
|
+
declare function getGradientBackground(value: Sketch.GradientStop[], type: Sketch.GradientType, direction?: number): string;
|
|
1215
1194
|
|
|
1216
1195
|
declare function sketchColorToRgba(value: Sketch.Color): RgbaColor;
|
|
1217
1196
|
declare function sketchColorToRgbaString(value: Sketch.Color): string;
|
|
@@ -1307,4 +1286,4 @@ declare module "react" {
|
|
|
1307
1286
|
function forwardRef<T, P = {}>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
|
|
1308
1287
|
}
|
|
1309
1288
|
|
|
1310
|
-
export { ActivityIndicator, ArrayController, type ArrayControllerProps, Avatar, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, DraggableMenuButton, type DropValidator, DropdownMenu, type EditableRowProps, type
|
|
1289
|
+
export { ActivityIndicator, ArrayController, type ArrayControllerProps, Avatar, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, DraggableMenuButton, type DropValidator, DropdownMenu, type EditableRowProps, type ExtractMenuItemType, FillInputField, FillPreviewBackground, 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, IconButton, type ImageDataContextValue, ImageDataProvider, InputElement, InputField, type InputFieldSize, InputFieldWithCompletions, InspectorPrimitives, Italic, KeyboardShortcut, Label, LabeledElementView, type ListRowMarginType, type ListRowPosition, ListView, type MatchRange, type MenuConfig, type MenuItem, type MenuItemProps, type MenuProps, type Optional, PatternPreviewBackground, Popover, Progress, RadioGroup, type RegularMenuItem, type RelativeDropPosition, Row$1 as Row, SEPARATOR_ITEM, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, ScrollArea, Select, SelectOption, type SetNumberMode, type SketchPattern, Slider, Small, Sortable, Spacer, Stack, type StackBreakpointList, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text$1 as Text, type TextBreakpointList, type Theme, type ThemeColorName, Toast, ToastProvider, Tooltip, TreeView, createSectionedMenu, dark as darkTheme, fuzzyFilter, fuzzyScore, fuzzyTokenize, getGradientBackground, getNewValue, lightTheme, mediaQuery, normalizeListDestinationIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Sketch } from '@noya-app/noya-file-format';
|
|
|
7
7
|
import * as csstype from 'csstype';
|
|
8
8
|
import { Property } from 'csstype';
|
|
9
9
|
import * as _noya_app_noya_keymap from '@noya-app/noya-keymap';
|
|
10
|
-
import { KeyModifiers, PlatformName
|
|
10
|
+
import { KeyModifiers, PlatformName } from '@noya-app/noya-keymap';
|
|
11
11
|
import * as Icons from '@noya-app/noya-icons';
|
|
12
12
|
import * as _noya_app_noya_geometry from '@noya-app/noya-geometry';
|
|
13
13
|
import { Size } from '@noya-app/noya-geometry';
|
|
@@ -15,7 +15,6 @@ import { IItemScore } from 'vscode-fuzzy-scorer';
|
|
|
15
15
|
import { useSortable } from '@dnd-kit/sortable';
|
|
16
16
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
17
17
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
18
|
-
import { useGesture } from 'react-use-gesture';
|
|
19
18
|
import { RgbaColor } from '@noya-app/noya-colorpicker';
|
|
20
19
|
|
|
21
20
|
interface Props$h {
|
|
@@ -1062,27 +1061,6 @@ declare const useGlobalInputBlur: () => GlobalInputBlurContextValue;
|
|
|
1062
1061
|
declare function useGlobalInputBlurListener(f: () => void): void;
|
|
1063
1062
|
declare function useGlobalInputBlurTrigger(): () => void;
|
|
1064
1063
|
|
|
1065
|
-
type Optional<T> = T | false | null | undefined;
|
|
1066
|
-
type MenuConfig<T extends string> = Optional<Optional<RegularMenuItem<T>>[]>[];
|
|
1067
|
-
declare function createSectionedMenu<T extends string>(...sections: MenuConfig<T>): MenuItem<T>[];
|
|
1068
|
-
|
|
1069
|
-
type ReactDOMEventHandlers = ReturnType<ReturnType<typeof useGesture>> & {
|
|
1070
|
-
onKeyDown?: (e: React.KeyboardEvent) => void;
|
|
1071
|
-
onKeyDownCapture?: (e: React.KeyboardEvent) => void;
|
|
1072
|
-
onKeyUp?: (e: React.KeyboardEvent) => void;
|
|
1073
|
-
onKeyUpCapture?: (e: React.KeyboardEvent) => void;
|
|
1074
|
-
onKeyPress?: (e: React.KeyboardEvent) => void;
|
|
1075
|
-
onKeyPressCapture?: (e: React.KeyboardEvent) => void;
|
|
1076
|
-
onBeforeInput?: (e: InputEvent) => void;
|
|
1077
|
-
};
|
|
1078
|
-
type ReactEventHandlers<MenuItemType extends string = string> = ReactDOMEventHandlers & {
|
|
1079
|
-
onContributeMenuItems?: () => Optional<RegularMenuItem<MenuItemType>>[];
|
|
1080
|
-
keyboardShortcuts?: KeyMap;
|
|
1081
|
-
onSelectMenuItem?: (id: string) => void;
|
|
1082
|
-
};
|
|
1083
|
-
type EventName = keyof ReactEventHandlers;
|
|
1084
|
-
declare function mergeEventHandlers(...handlerMaps: ReactEventHandlers[]): ReactEventHandlers;
|
|
1085
|
-
|
|
1086
1064
|
interface HoverEvent {
|
|
1087
1065
|
/** The type of hover event being fired. */
|
|
1088
1066
|
type: 'hoverstart' | 'hoverend';
|
|
@@ -1208,10 +1186,11 @@ declare namespace dark {
|
|
|
1208
1186
|
export { dark_colors as colors, dark_fonts as fonts, dark_sizes as sizes, dark_textStyles as textStyles };
|
|
1209
1187
|
}
|
|
1210
1188
|
|
|
1211
|
-
|
|
1189
|
+
type Optional<T> = T | false | null | undefined;
|
|
1190
|
+
type MenuConfig<T extends string> = Optional<Optional<RegularMenuItem<T>>[]>[];
|
|
1191
|
+
declare function createSectionedMenu<T extends string>(...sections: MenuConfig<T>): MenuItem<T>[];
|
|
1212
1192
|
|
|
1213
|
-
declare function
|
|
1214
|
-
declare function isRightButtonClicked(event: React.MouseEvent): boolean;
|
|
1193
|
+
declare function getGradientBackground(value: Sketch.GradientStop[], type: Sketch.GradientType, direction?: number): string;
|
|
1215
1194
|
|
|
1216
1195
|
declare function sketchColorToRgba(value: Sketch.Color): RgbaColor;
|
|
1217
1196
|
declare function sketchColorToRgbaString(value: Sketch.Color): string;
|
|
@@ -1307,4 +1286,4 @@ declare module "react" {
|
|
|
1307
1286
|
function forwardRef<T, P = {}>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
|
|
1308
1287
|
}
|
|
1309
1288
|
|
|
1310
|
-
export { ActivityIndicator, ArrayController, type ArrayControllerProps, Avatar, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, DraggableMenuButton, type DropValidator, DropdownMenu, type EditableRowProps, type
|
|
1289
|
+
export { ActivityIndicator, ArrayController, type ArrayControllerProps, Avatar, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, DraggableMenuButton, type DropValidator, DropdownMenu, type EditableRowProps, type ExtractMenuItemType, FillInputField, FillPreviewBackground, 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, IconButton, type ImageDataContextValue, ImageDataProvider, InputElement, InputField, type InputFieldSize, InputFieldWithCompletions, InspectorPrimitives, Italic, KeyboardShortcut, Label, LabeledElementView, type ListRowMarginType, type ListRowPosition, ListView, type MatchRange, type MenuConfig, type MenuItem, type MenuItemProps, type MenuProps, type Optional, PatternPreviewBackground, Popover, Progress, RadioGroup, type RegularMenuItem, type RelativeDropPosition, Row$1 as Row, SEPARATOR_ITEM, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, ScrollArea, Select, SelectOption, type SetNumberMode, type SketchPattern, Slider, Small, Sortable, Spacer, Stack, type StackBreakpointList, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text$1 as Text, type TextBreakpointList, type Theme, type ThemeColorName, Toast, ToastProvider, Tooltip, TreeView, createSectionedMenu, dark as darkTheme, fuzzyFilter, fuzzyScore, fuzzyTokenize, getGradientBackground, getNewValue, lightTheme, mediaQuery, normalizeListDestinationIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
|