@noya-app/noya-designsystem 0.1.26 → 0.1.28
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 -9
- package/CHANGELOG.md +13 -0
- package/dist/index.d.mts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +12493 -3921
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12615 -4024
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
- package/src/index.tsx +1 -0
- package/src/theme/light.ts +9 -0
- package/tsup.config.ts +12 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
[34mCLI[39m Building entry: src/index.tsx
|
|
3
3
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
4
4
|
[34mCLI[39m tsup v8.0.1
|
|
5
|
+
[34mCLI[39m Using tsup config: /Users/devinabbott/Projects/noya-core/packages/noya-designsystem/tsup.config.ts
|
|
5
6
|
[34mCLI[39m Target: esnext
|
|
6
7
|
[34mCJS[39m Build start
|
|
7
8
|
[34mESM[39m Build start
|
|
9
|
+
[32mCJS[39m [1mdist/index.js [22m[32m597.93 KB[39m
|
|
10
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m1.07 MB[39m
|
|
11
|
+
[32mCJS[39m ⚡️ Build success in 115ms
|
|
12
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m579.92 KB[39m
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m1.06 MB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 115ms
|
|
8
15
|
[34mDTS[39m Build start
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m218.90 KB[39m
|
|
13
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[32m477.46 KB[39m
|
|
14
|
-
[32mESM[39m ⚡️ Build success in 262ms
|
|
15
|
-
[32mDTS[39m ⚡️ Build success in 11217ms
|
|
16
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m62.86 KB[39m
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m62.86 KB[39m
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 9960ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m63.28 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m63.28 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @noya-app/noya-designsystem
|
|
2
2
|
|
|
3
|
+
## 0.1.28
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 575e561: Fix react-virtualized import issue
|
|
8
|
+
|
|
9
|
+
## 0.1.27
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 6f9f2df: Improve design system theme and json editor
|
|
14
|
+
- 2acd3e5: Export icons
|
|
15
|
+
|
|
3
16
|
## 0.1.26
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -4,6 +4,7 @@ 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
6
|
import * as Icons from '@noya-app/noya-icons';
|
|
7
|
+
export { Icons };
|
|
7
8
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
8
9
|
import * as RadixDropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
9
10
|
import { Sketch } from '@noya-app/noya-file-format';
|
|
@@ -171,6 +172,12 @@ declare const colors$1: {
|
|
|
171
172
|
selection: string;
|
|
172
173
|
thumbnailBackground: string;
|
|
173
174
|
thumbnailShadow: string;
|
|
175
|
+
inlineCode: {
|
|
176
|
+
text: string;
|
|
177
|
+
background: string;
|
|
178
|
+
};
|
|
179
|
+
textLink: string;
|
|
180
|
+
textLinkFocused: string;
|
|
174
181
|
};
|
|
175
182
|
declare const fonts: {
|
|
176
183
|
normal: string;
|
|
@@ -191,6 +198,9 @@ declare const textStyles: {
|
|
|
191
198
|
label: CSSObject;
|
|
192
199
|
};
|
|
193
200
|
declare const sizes: {
|
|
201
|
+
inset: {
|
|
202
|
+
top: number;
|
|
203
|
+
};
|
|
194
204
|
sidebarWidth: number;
|
|
195
205
|
toolbar: {
|
|
196
206
|
height: number;
|
|
@@ -235,6 +245,8 @@ type ThemeColorName = keyof PickByValue<Theme['colors'], string>;
|
|
|
235
245
|
|
|
236
246
|
type IconName = keyof typeof Icons;
|
|
237
247
|
|
|
248
|
+
declare function renderIcon(iconName: Exclude<ReactNode, string> | IconName): ReactNode;
|
|
249
|
+
|
|
238
250
|
declare const SEPARATOR_ITEM = "separator";
|
|
239
251
|
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";
|
|
240
252
|
type RegularMenuItem<T extends string> = {
|
|
@@ -1339,6 +1351,12 @@ declare const colors: {
|
|
|
1339
1351
|
selection: string;
|
|
1340
1352
|
thumbnailBackground: string;
|
|
1341
1353
|
thumbnailShadow: string;
|
|
1354
|
+
inlineCode: {
|
|
1355
|
+
text: string;
|
|
1356
|
+
background: string;
|
|
1357
|
+
};
|
|
1358
|
+
textLink: string;
|
|
1359
|
+
textLinkFocused: string;
|
|
1342
1360
|
};
|
|
1343
1361
|
|
|
1344
1362
|
declare const dark_colors: typeof colors;
|
|
@@ -1450,4 +1468,4 @@ declare module "react" {
|
|
|
1450
1468
|
function forwardRef<T, P = {}>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
|
|
1451
1469
|
}
|
|
1452
1470
|
|
|
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 };
|
|
1471
|
+
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 IconName, 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, renderIcon, 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
|
@@ -4,6 +4,7 @@ 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
6
|
import * as Icons from '@noya-app/noya-icons';
|
|
7
|
+
export { Icons };
|
|
7
8
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
8
9
|
import * as RadixDropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
9
10
|
import { Sketch } from '@noya-app/noya-file-format';
|
|
@@ -171,6 +172,12 @@ declare const colors$1: {
|
|
|
171
172
|
selection: string;
|
|
172
173
|
thumbnailBackground: string;
|
|
173
174
|
thumbnailShadow: string;
|
|
175
|
+
inlineCode: {
|
|
176
|
+
text: string;
|
|
177
|
+
background: string;
|
|
178
|
+
};
|
|
179
|
+
textLink: string;
|
|
180
|
+
textLinkFocused: string;
|
|
174
181
|
};
|
|
175
182
|
declare const fonts: {
|
|
176
183
|
normal: string;
|
|
@@ -191,6 +198,9 @@ declare const textStyles: {
|
|
|
191
198
|
label: CSSObject;
|
|
192
199
|
};
|
|
193
200
|
declare const sizes: {
|
|
201
|
+
inset: {
|
|
202
|
+
top: number;
|
|
203
|
+
};
|
|
194
204
|
sidebarWidth: number;
|
|
195
205
|
toolbar: {
|
|
196
206
|
height: number;
|
|
@@ -235,6 +245,8 @@ type ThemeColorName = keyof PickByValue<Theme['colors'], string>;
|
|
|
235
245
|
|
|
236
246
|
type IconName = keyof typeof Icons;
|
|
237
247
|
|
|
248
|
+
declare function renderIcon(iconName: Exclude<ReactNode, string> | IconName): ReactNode;
|
|
249
|
+
|
|
238
250
|
declare const SEPARATOR_ITEM = "separator";
|
|
239
251
|
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";
|
|
240
252
|
type RegularMenuItem<T extends string> = {
|
|
@@ -1339,6 +1351,12 @@ declare const colors: {
|
|
|
1339
1351
|
selection: string;
|
|
1340
1352
|
thumbnailBackground: string;
|
|
1341
1353
|
thumbnailShadow: string;
|
|
1354
|
+
inlineCode: {
|
|
1355
|
+
text: string;
|
|
1356
|
+
background: string;
|
|
1357
|
+
};
|
|
1358
|
+
textLink: string;
|
|
1359
|
+
textLinkFocused: string;
|
|
1342
1360
|
};
|
|
1343
1361
|
|
|
1344
1362
|
declare const dark_colors: typeof colors;
|
|
@@ -1450,4 +1468,4 @@ declare module "react" {
|
|
|
1450
1468
|
function forwardRef<T, P = {}>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
|
|
1451
1469
|
}
|
|
1452
1470
|
|
|
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 };
|
|
1471
|
+
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 IconName, 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, renderIcon, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useAutoResize, useCurrentFloatingWindowInternal, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useFloatingWindowManager, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
|