@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.
@@ -1,18 +1,17 @@
1
-
2
- $ tsup src/index.tsx --format cjs,esm --dts --sourcemap
1
+ $ tsup src/index.tsx --format cjs,esm --dts --sourcemap
3
2
  CLI Building entry: src/index.tsx
4
3
  CLI Using tsconfig: tsconfig.json
5
4
  CLI tsup v8.0.1
6
5
  CLI Target: esnext
7
6
  CJS Build start
8
7
  ESM Build start
9
- CJS dist/index.js 199.07 KB
10
- CJS dist/index.js.map 402.89 KB
11
- CJS ⚡️ Build success in 57ms
12
- ESM dist/index.mjs 182.57 KB
13
- ESM dist/index.mjs.map 402.45 KB
14
- ESM ⚡️ Build success in 58ms
8
+ ESM dist/index.mjs 182.50 KB
9
+ ESM dist/index.mjs.map 402.42 KB
10
+ ESM ⚡️ Build success in 89ms
11
+ CJS dist/index.js 198.78 KB
12
+ CJS dist/index.js.map 402.70 KB
13
+ CJS ⚡️ Build success in 89ms
15
14
  DTS Build start
16
- DTS ⚡️ Build success in 5924ms
17
- DTS dist/index.d.ts 55.00 KB
18
- DTS dist/index.d.mts 55.00 KB
15
+ DTS ⚡️ Build success in 5952ms
16
+ DTS dist/index.d.ts 53.87 KB
17
+ DTS dist/index.d.mts 53.87 KB
@@ -1,3 +1,2 @@
1
-
2
- $ eslint . --max-warnings 0
1
+ $ eslint . --max-warnings 0
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, KeyMap } from '@noya-app/noya-keymap';
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
- declare function getGradientBackground(value: Sketch.GradientStop[], type: Sketch.GradientType, direction?: number): string;
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 isLeftButtonClicked(event: React.MouseEvent): boolean;
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 EventName, 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 ReactDOMEventHandlers, type ReactEventHandlers, 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, isLeftButtonClicked, isRightButtonClicked, lightTheme, mediaQuery, mergeEventHandlers, normalizeListDestinationIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
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, KeyMap } from '@noya-app/noya-keymap';
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
- declare function getGradientBackground(value: Sketch.GradientStop[], type: Sketch.GradientType, direction?: number): string;
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 isLeftButtonClicked(event: React.MouseEvent): boolean;
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 EventName, 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 ReactDOMEventHandlers, type ReactEventHandlers, 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, isLeftButtonClicked, isRightButtonClicked, lightTheme, mediaQuery, mergeEventHandlers, normalizeListDestinationIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
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 };