@noya-app/noya-designsystem 0.1.25 → 0.1.26

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.
@@ -5,13 +5,13 @@
5
5
  CLI Target: esnext
6
6
  CJS Build start
7
7
  ESM Build start
8
- ESM dist/index.mjs 216.08 KB
9
- ESM dist/index.mjs.map 471.92 KB
10
- ESM ⚡️ Build success in 141ms
11
- CJS dist/index.js 234.49 KB
12
- CJS dist/index.js.map 471.82 KB
13
- CJS ⚡️ Build success in 141ms
14
8
  DTS Build start
15
- DTS ⚡️ Build success in 11480ms
16
- DTS dist/index.d.ts 62.01 KB
17
- DTS dist/index.d.mts 62.01 KB
9
+ CJS dist/index.js 237.57 KB
10
+ CJS dist/index.js.map 477.33 KB
11
+ CJS ⚡️ Build success in 262ms
12
+ ESM dist/index.mjs 218.90 KB
13
+ ESM dist/index.mjs.map 477.46 KB
14
+ ESM ⚡️ Build success in 262ms
15
+ DTS ⚡️ Build success in 11217ms
16
+ DTS dist/index.d.ts 62.86 KB
17
+ DTS dist/index.d.mts 62.86 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @noya-app/noya-designsystem
2
2
 
3
+ ## 0.1.26
4
+
5
+ ### Patch Changes
6
+
7
+ - 740bd32: Handle tools, creators, tags
8
+ - 5978f81: Update line height
9
+ - @noya-app/noya-colorpicker@0.1.11
10
+
3
11
  ## 0.1.25
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -66,6 +66,7 @@ interface ButtonRootProps {
66
66
  contentStyle?: CSSProperties;
67
67
  defaultBackground?: string;
68
68
  as?: React__default.ElementType;
69
+ htmlFor?: string;
69
70
  href?: string;
70
71
  target?: string;
71
72
  rel?: string;
@@ -101,6 +102,7 @@ declare const colors$1: {
101
102
  fill: string;
102
103
  highlight: string;
103
104
  };
105
+ background: string;
104
106
  text: string;
105
107
  textMuted: string;
106
108
  textSubtle: string;
@@ -111,8 +113,10 @@ declare const colors$1: {
111
113
  dividerStrong: string;
112
114
  primary: string;
113
115
  primaryLight: string;
116
+ primaryPastel: string;
114
117
  secondary: string;
115
118
  secondaryLight: string;
119
+ secondaryPastel: string;
116
120
  secondaryBright: string;
117
121
  warning: string;
118
122
  neutralBackground: string;
@@ -530,6 +534,7 @@ declare namespace InputField {
530
534
  variant?: "bare" | undefined;
531
535
  }) & React__default.RefAttributes<HTMLInputElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
532
536
  const Typeahead: (props: {
537
+ prefix: string;
533
538
  value: string;
534
539
  }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
535
540
  const NumberInput: (props: InputFieldNumberInputProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
@@ -661,6 +666,7 @@ interface ListViewRowProps<MenuItemType extends string = string> {
661
666
  onMenuOpenChange?: (isOpen: boolean) => void;
662
667
  onKeyDown?: (event: React__default.KeyboardEvent) => void;
663
668
  style?: CSSProperties;
669
+ className?: string;
664
670
  dragIndicatorStyle?: CSSProperties | ((props: {
665
671
  depth: number;
666
672
  indentation: number;
@@ -1017,6 +1023,7 @@ interface Props$3 extends StyleProps {
1017
1023
  as?: keyof ReactHTML;
1018
1024
  href?: string;
1019
1025
  className?: string;
1026
+ style?: React__default.CSSProperties;
1020
1027
  variant: keyof Theme["textStyles"];
1021
1028
  breakpoints?: BreakpointCollection<StyleProps> | null | false;
1022
1029
  color?: ThemeColorName;
@@ -1039,6 +1046,12 @@ declare const Italic: ({ children }: {
1039
1046
  children: ReactNode;
1040
1047
  }) => React__default.JSX.Element;
1041
1048
 
1049
+ declare const useAutoResize: (value: string) => React__default.MutableRefObject<HTMLTextAreaElement | null>;
1050
+ declare const AutoResizingTextArea: (props: Omit<styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>, "onChange" | "value"> & {
1051
+ onChangeText: (value: string) => void;
1052
+ value?: string | undefined;
1053
+ } & React__default.RefAttributes<HTMLTextAreaElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1054
+
1042
1055
  declare const Toast: ({ title, content, children, ...props }: {
1043
1056
  title?: string | undefined;
1044
1057
  content: ReactNode;
@@ -1257,6 +1270,7 @@ declare const colors: {
1257
1270
  fill: string;
1258
1271
  highlight: string;
1259
1272
  };
1273
+ background: string;
1260
1274
  text: string;
1261
1275
  textMuted: string;
1262
1276
  textSubtle: string;
@@ -1267,8 +1281,10 @@ declare const colors: {
1267
1281
  dividerStrong: string;
1268
1282
  primary: string;
1269
1283
  primaryLight: string;
1284
+ primaryPastel: string;
1270
1285
  secondary: string;
1271
1286
  secondaryLight: string;
1287
+ secondaryPastel: string;
1272
1288
  secondaryBright: string;
1273
1289
  warning: string;
1274
1290
  neutralBackground: string;
@@ -1434,4 +1450,4 @@ declare module "react" {
1434
1450
  function forwardRef<T, P = {}>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
1435
1451
  }
1436
1452
 
1437
- export { ActivityIndicator, ArrayController, type ArrayControllerProps, Avatar, AvatarStack, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, DesignSystemThemeProvider, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, DraggableMenuButton, type DropValidator, DropdownMenu, type EditableRowProps, type ExtractMenuItemType, FillInputField, FillPreviewBackground, FloatingWindow, FloatingWindowProvider, 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, type IWorkspaceLayout, IconButton, type ImageDataContextValue, ImageDataProvider, InputElement, InputField, type InputFieldSize, InputFieldWithCompletions, InspectorContainer, 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, SelectMenu, 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, WorkspaceLayout, createSectionedMenu, dark as darkTheme, fuzzyFilter, fuzzyScore, fuzzyTokenize, getGradientBackground, getNewValue, lightTheme, mediaQuery, normalizeListDestinationIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
1453
+ export { ActivityIndicator, ArrayController, type ArrayControllerProps, AutoResizingTextArea, Avatar, AvatarStack, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, DesignSystemThemeProvider, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, DraggableMenuButton, type DropValidator, DropdownMenu, type EditableRowProps, type ExtractMenuItemType, FillInputField, FillPreviewBackground, FloatingWindow, FloatingWindowProvider, 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, type IWorkspaceLayout, IconButton, type ImageDataContextValue, ImageDataProvider, InputElement, InputField, type InputFieldSize, InputFieldWithCompletions, InspectorContainer, 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, SelectMenu, 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, WorkspaceLayout, createSectionedMenu, dark as darkTheme, fuzzyFilter, fuzzyScore, fuzzyTokenize, getGradientBackground, getNewValue, lightTheme, mediaQuery, normalizeListDestinationIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useAutoResize, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
package/dist/index.d.ts CHANGED
@@ -66,6 +66,7 @@ interface ButtonRootProps {
66
66
  contentStyle?: CSSProperties;
67
67
  defaultBackground?: string;
68
68
  as?: React__default.ElementType;
69
+ htmlFor?: string;
69
70
  href?: string;
70
71
  target?: string;
71
72
  rel?: string;
@@ -101,6 +102,7 @@ declare const colors$1: {
101
102
  fill: string;
102
103
  highlight: string;
103
104
  };
105
+ background: string;
104
106
  text: string;
105
107
  textMuted: string;
106
108
  textSubtle: string;
@@ -111,8 +113,10 @@ declare const colors$1: {
111
113
  dividerStrong: string;
112
114
  primary: string;
113
115
  primaryLight: string;
116
+ primaryPastel: string;
114
117
  secondary: string;
115
118
  secondaryLight: string;
119
+ secondaryPastel: string;
116
120
  secondaryBright: string;
117
121
  warning: string;
118
122
  neutralBackground: string;
@@ -530,6 +534,7 @@ declare namespace InputField {
530
534
  variant?: "bare" | undefined;
531
535
  }) & React__default.RefAttributes<HTMLInputElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
532
536
  const Typeahead: (props: {
537
+ prefix: string;
533
538
  value: string;
534
539
  }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
535
540
  const NumberInput: (props: InputFieldNumberInputProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
@@ -661,6 +666,7 @@ interface ListViewRowProps<MenuItemType extends string = string> {
661
666
  onMenuOpenChange?: (isOpen: boolean) => void;
662
667
  onKeyDown?: (event: React__default.KeyboardEvent) => void;
663
668
  style?: CSSProperties;
669
+ className?: string;
664
670
  dragIndicatorStyle?: CSSProperties | ((props: {
665
671
  depth: number;
666
672
  indentation: number;
@@ -1017,6 +1023,7 @@ interface Props$3 extends StyleProps {
1017
1023
  as?: keyof ReactHTML;
1018
1024
  href?: string;
1019
1025
  className?: string;
1026
+ style?: React__default.CSSProperties;
1020
1027
  variant: keyof Theme["textStyles"];
1021
1028
  breakpoints?: BreakpointCollection<StyleProps> | null | false;
1022
1029
  color?: ThemeColorName;
@@ -1039,6 +1046,12 @@ declare const Italic: ({ children }: {
1039
1046
  children: ReactNode;
1040
1047
  }) => React__default.JSX.Element;
1041
1048
 
1049
+ declare const useAutoResize: (value: string) => React__default.MutableRefObject<HTMLTextAreaElement | null>;
1050
+ declare const AutoResizingTextArea: (props: Omit<styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>, "onChange" | "value"> & {
1051
+ onChangeText: (value: string) => void;
1052
+ value?: string | undefined;
1053
+ } & React__default.RefAttributes<HTMLTextAreaElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1054
+
1042
1055
  declare const Toast: ({ title, content, children, ...props }: {
1043
1056
  title?: string | undefined;
1044
1057
  content: ReactNode;
@@ -1257,6 +1270,7 @@ declare const colors: {
1257
1270
  fill: string;
1258
1271
  highlight: string;
1259
1272
  };
1273
+ background: string;
1260
1274
  text: string;
1261
1275
  textMuted: string;
1262
1276
  textSubtle: string;
@@ -1267,8 +1281,10 @@ declare const colors: {
1267
1281
  dividerStrong: string;
1268
1282
  primary: string;
1269
1283
  primaryLight: string;
1284
+ primaryPastel: string;
1270
1285
  secondary: string;
1271
1286
  secondaryLight: string;
1287
+ secondaryPastel: string;
1272
1288
  secondaryBright: string;
1273
1289
  warning: string;
1274
1290
  neutralBackground: string;
@@ -1434,4 +1450,4 @@ declare module "react" {
1434
1450
  function forwardRef<T, P = {}>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
1435
1451
  }
1436
1452
 
1437
- export { ActivityIndicator, ArrayController, type ArrayControllerProps, Avatar, AvatarStack, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, DesignSystemThemeProvider, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, DraggableMenuButton, type DropValidator, DropdownMenu, type EditableRowProps, type ExtractMenuItemType, FillInputField, FillPreviewBackground, FloatingWindow, FloatingWindowProvider, 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, type IWorkspaceLayout, IconButton, type ImageDataContextValue, ImageDataProvider, InputElement, InputField, type InputFieldSize, InputFieldWithCompletions, InspectorContainer, 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, SelectMenu, 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, WorkspaceLayout, createSectionedMenu, dark as darkTheme, fuzzyFilter, fuzzyScore, fuzzyTokenize, getGradientBackground, getNewValue, lightTheme, mediaQuery, normalizeListDestinationIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
1453
+ export { ActivityIndicator, ArrayController, type ArrayControllerProps, AutoResizingTextArea, Avatar, AvatarStack, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, DesignSystemThemeProvider, Dialog, type DialogContextValue, DialogProvider, DimensionInput, type DimensionValue, Divider, DividerVertical, DraggableMenuButton, type DropValidator, DropdownMenu, type EditableRowProps, type ExtractMenuItemType, FillInputField, FillPreviewBackground, FloatingWindow, FloatingWindowProvider, 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, type IWorkspaceLayout, IconButton, type ImageDataContextValue, ImageDataProvider, InputElement, InputField, type InputFieldSize, InputFieldWithCompletions, InspectorContainer, 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, SelectMenu, 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, WorkspaceLayout, createSectionedMenu, dark as darkTheme, fuzzyFilter, fuzzyScore, fuzzyTokenize, getGradientBackground, getNewValue, lightTheme, mediaQuery, normalizeListDestinationIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useAutoResize, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };