@noya-app/noya-designsystem 0.1.25 → 0.1.27
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 +15 -0
- package/dist/index.d.mts +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.js +276 -155
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +300 -186
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/components/Button.tsx +7 -0
- package/src/components/Chip.tsx +2 -2
- package/src/components/InputField.tsx +14 -8
- package/src/components/InputFieldWithCompletions.tsx +5 -3
- package/src/components/InspectorPrimitives.tsx +1 -1
- package/src/components/ListView.tsx +3 -0
- package/src/components/SelectMenu.tsx +11 -5
- package/src/components/Text.tsx +3 -0
- package/src/components/TextArea.tsx +82 -0
- package/src/index.tsx +2 -0
- package/src/theme/light.ts +35 -22
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
|
-
[
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
8
|
+
[32mCJS[39m [1mdist/index.js [22m[32m237.83 KB[39m
|
|
9
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m477.71 KB[39m
|
|
10
|
+
[32mCJS[39m ⚡️ Build success in 179ms
|
|
11
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m219.11 KB[39m
|
|
12
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m477.79 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 180ms
|
|
14
14
|
[34mDTS[39m Build start
|
|
15
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
15
|
+
[32mDTS[39m ⚡️ Build success in 12078ms
|
|
16
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m63.28 KB[39m
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m63.28 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @noya-app/noya-designsystem
|
|
2
2
|
|
|
3
|
+
## 0.1.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6f9f2df: Improve design system theme and json editor
|
|
8
|
+
- 2acd3e5: Export icons
|
|
9
|
+
|
|
10
|
+
## 0.1.26
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 740bd32: Handle tools, creators, tags
|
|
15
|
+
- 5978f81: Update line height
|
|
16
|
+
- @noya-app/noya-colorpicker@0.1.11
|
|
17
|
+
|
|
3
18
|
## 0.1.25
|
|
4
19
|
|
|
5
20
|
### 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';
|
|
@@ -66,6 +67,7 @@ interface ButtonRootProps {
|
|
|
66
67
|
contentStyle?: CSSProperties;
|
|
67
68
|
defaultBackground?: string;
|
|
68
69
|
as?: React__default.ElementType;
|
|
70
|
+
htmlFor?: string;
|
|
69
71
|
href?: string;
|
|
70
72
|
target?: string;
|
|
71
73
|
rel?: string;
|
|
@@ -101,6 +103,7 @@ declare const colors$1: {
|
|
|
101
103
|
fill: string;
|
|
102
104
|
highlight: string;
|
|
103
105
|
};
|
|
106
|
+
background: string;
|
|
104
107
|
text: string;
|
|
105
108
|
textMuted: string;
|
|
106
109
|
textSubtle: string;
|
|
@@ -111,8 +114,10 @@ declare const colors$1: {
|
|
|
111
114
|
dividerStrong: string;
|
|
112
115
|
primary: string;
|
|
113
116
|
primaryLight: string;
|
|
117
|
+
primaryPastel: string;
|
|
114
118
|
secondary: string;
|
|
115
119
|
secondaryLight: string;
|
|
120
|
+
secondaryPastel: string;
|
|
116
121
|
secondaryBright: string;
|
|
117
122
|
warning: string;
|
|
118
123
|
neutralBackground: string;
|
|
@@ -167,6 +172,12 @@ declare const colors$1: {
|
|
|
167
172
|
selection: string;
|
|
168
173
|
thumbnailBackground: string;
|
|
169
174
|
thumbnailShadow: string;
|
|
175
|
+
inlineCode: {
|
|
176
|
+
text: string;
|
|
177
|
+
background: string;
|
|
178
|
+
};
|
|
179
|
+
textLink: string;
|
|
180
|
+
textLinkFocused: string;
|
|
170
181
|
};
|
|
171
182
|
declare const fonts: {
|
|
172
183
|
normal: string;
|
|
@@ -187,6 +198,9 @@ declare const textStyles: {
|
|
|
187
198
|
label: CSSObject;
|
|
188
199
|
};
|
|
189
200
|
declare const sizes: {
|
|
201
|
+
inset: {
|
|
202
|
+
top: number;
|
|
203
|
+
};
|
|
190
204
|
sidebarWidth: number;
|
|
191
205
|
toolbar: {
|
|
192
206
|
height: number;
|
|
@@ -231,6 +245,8 @@ type ThemeColorName = keyof PickByValue<Theme['colors'], string>;
|
|
|
231
245
|
|
|
232
246
|
type IconName = keyof typeof Icons;
|
|
233
247
|
|
|
248
|
+
declare function renderIcon(iconName: Exclude<ReactNode, string> | IconName): ReactNode;
|
|
249
|
+
|
|
234
250
|
declare const SEPARATOR_ITEM = "separator";
|
|
235
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";
|
|
236
252
|
type RegularMenuItem<T extends string> = {
|
|
@@ -530,6 +546,7 @@ declare namespace InputField {
|
|
|
530
546
|
variant?: "bare" | undefined;
|
|
531
547
|
}) & React__default.RefAttributes<HTMLInputElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
532
548
|
const Typeahead: (props: {
|
|
549
|
+
prefix: string;
|
|
533
550
|
value: string;
|
|
534
551
|
}) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
535
552
|
const NumberInput: (props: InputFieldNumberInputProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
@@ -661,6 +678,7 @@ interface ListViewRowProps<MenuItemType extends string = string> {
|
|
|
661
678
|
onMenuOpenChange?: (isOpen: boolean) => void;
|
|
662
679
|
onKeyDown?: (event: React__default.KeyboardEvent) => void;
|
|
663
680
|
style?: CSSProperties;
|
|
681
|
+
className?: string;
|
|
664
682
|
dragIndicatorStyle?: CSSProperties | ((props: {
|
|
665
683
|
depth: number;
|
|
666
684
|
indentation: number;
|
|
@@ -1017,6 +1035,7 @@ interface Props$3 extends StyleProps {
|
|
|
1017
1035
|
as?: keyof ReactHTML;
|
|
1018
1036
|
href?: string;
|
|
1019
1037
|
className?: string;
|
|
1038
|
+
style?: React__default.CSSProperties;
|
|
1020
1039
|
variant: keyof Theme["textStyles"];
|
|
1021
1040
|
breakpoints?: BreakpointCollection<StyleProps> | null | false;
|
|
1022
1041
|
color?: ThemeColorName;
|
|
@@ -1039,6 +1058,12 @@ declare const Italic: ({ children }: {
|
|
|
1039
1058
|
children: ReactNode;
|
|
1040
1059
|
}) => React__default.JSX.Element;
|
|
1041
1060
|
|
|
1061
|
+
declare const useAutoResize: (value: string) => React__default.MutableRefObject<HTMLTextAreaElement | null>;
|
|
1062
|
+
declare const AutoResizingTextArea: (props: Omit<styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>, "onChange" | "value"> & {
|
|
1063
|
+
onChangeText: (value: string) => void;
|
|
1064
|
+
value?: string | undefined;
|
|
1065
|
+
} & React__default.RefAttributes<HTMLTextAreaElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
1066
|
+
|
|
1042
1067
|
declare const Toast: ({ title, content, children, ...props }: {
|
|
1043
1068
|
title?: string | undefined;
|
|
1044
1069
|
content: ReactNode;
|
|
@@ -1257,6 +1282,7 @@ declare const colors: {
|
|
|
1257
1282
|
fill: string;
|
|
1258
1283
|
highlight: string;
|
|
1259
1284
|
};
|
|
1285
|
+
background: string;
|
|
1260
1286
|
text: string;
|
|
1261
1287
|
textMuted: string;
|
|
1262
1288
|
textSubtle: string;
|
|
@@ -1267,8 +1293,10 @@ declare const colors: {
|
|
|
1267
1293
|
dividerStrong: string;
|
|
1268
1294
|
primary: string;
|
|
1269
1295
|
primaryLight: string;
|
|
1296
|
+
primaryPastel: string;
|
|
1270
1297
|
secondary: string;
|
|
1271
1298
|
secondaryLight: string;
|
|
1299
|
+
secondaryPastel: string;
|
|
1272
1300
|
secondaryBright: string;
|
|
1273
1301
|
warning: string;
|
|
1274
1302
|
neutralBackground: string;
|
|
@@ -1323,6 +1351,12 @@ declare const colors: {
|
|
|
1323
1351
|
selection: string;
|
|
1324
1352
|
thumbnailBackground: string;
|
|
1325
1353
|
thumbnailShadow: string;
|
|
1354
|
+
inlineCode: {
|
|
1355
|
+
text: string;
|
|
1356
|
+
background: string;
|
|
1357
|
+
};
|
|
1358
|
+
textLink: string;
|
|
1359
|
+
textLinkFocused: string;
|
|
1326
1360
|
};
|
|
1327
1361
|
|
|
1328
1362
|
declare const dark_colors: typeof colors;
|
|
@@ -1434,4 +1468,4 @@ declare module "react" {
|
|
|
1434
1468
|
function forwardRef<T, P = {}>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
|
|
1435
1469
|
}
|
|
1436
1470
|
|
|
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 };
|
|
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';
|
|
@@ -66,6 +67,7 @@ interface ButtonRootProps {
|
|
|
66
67
|
contentStyle?: CSSProperties;
|
|
67
68
|
defaultBackground?: string;
|
|
68
69
|
as?: React__default.ElementType;
|
|
70
|
+
htmlFor?: string;
|
|
69
71
|
href?: string;
|
|
70
72
|
target?: string;
|
|
71
73
|
rel?: string;
|
|
@@ -101,6 +103,7 @@ declare const colors$1: {
|
|
|
101
103
|
fill: string;
|
|
102
104
|
highlight: string;
|
|
103
105
|
};
|
|
106
|
+
background: string;
|
|
104
107
|
text: string;
|
|
105
108
|
textMuted: string;
|
|
106
109
|
textSubtle: string;
|
|
@@ -111,8 +114,10 @@ declare const colors$1: {
|
|
|
111
114
|
dividerStrong: string;
|
|
112
115
|
primary: string;
|
|
113
116
|
primaryLight: string;
|
|
117
|
+
primaryPastel: string;
|
|
114
118
|
secondary: string;
|
|
115
119
|
secondaryLight: string;
|
|
120
|
+
secondaryPastel: string;
|
|
116
121
|
secondaryBright: string;
|
|
117
122
|
warning: string;
|
|
118
123
|
neutralBackground: string;
|
|
@@ -167,6 +172,12 @@ declare const colors$1: {
|
|
|
167
172
|
selection: string;
|
|
168
173
|
thumbnailBackground: string;
|
|
169
174
|
thumbnailShadow: string;
|
|
175
|
+
inlineCode: {
|
|
176
|
+
text: string;
|
|
177
|
+
background: string;
|
|
178
|
+
};
|
|
179
|
+
textLink: string;
|
|
180
|
+
textLinkFocused: string;
|
|
170
181
|
};
|
|
171
182
|
declare const fonts: {
|
|
172
183
|
normal: string;
|
|
@@ -187,6 +198,9 @@ declare const textStyles: {
|
|
|
187
198
|
label: CSSObject;
|
|
188
199
|
};
|
|
189
200
|
declare const sizes: {
|
|
201
|
+
inset: {
|
|
202
|
+
top: number;
|
|
203
|
+
};
|
|
190
204
|
sidebarWidth: number;
|
|
191
205
|
toolbar: {
|
|
192
206
|
height: number;
|
|
@@ -231,6 +245,8 @@ type ThemeColorName = keyof PickByValue<Theme['colors'], string>;
|
|
|
231
245
|
|
|
232
246
|
type IconName = keyof typeof Icons;
|
|
233
247
|
|
|
248
|
+
declare function renderIcon(iconName: Exclude<ReactNode, string> | IconName): ReactNode;
|
|
249
|
+
|
|
234
250
|
declare const SEPARATOR_ITEM = "separator";
|
|
235
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";
|
|
236
252
|
type RegularMenuItem<T extends string> = {
|
|
@@ -530,6 +546,7 @@ declare namespace InputField {
|
|
|
530
546
|
variant?: "bare" | undefined;
|
|
531
547
|
}) & React__default.RefAttributes<HTMLInputElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
532
548
|
const Typeahead: (props: {
|
|
549
|
+
prefix: string;
|
|
533
550
|
value: string;
|
|
534
551
|
}) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
535
552
|
const NumberInput: (props: InputFieldNumberInputProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
@@ -661,6 +678,7 @@ interface ListViewRowProps<MenuItemType extends string = string> {
|
|
|
661
678
|
onMenuOpenChange?: (isOpen: boolean) => void;
|
|
662
679
|
onKeyDown?: (event: React__default.KeyboardEvent) => void;
|
|
663
680
|
style?: CSSProperties;
|
|
681
|
+
className?: string;
|
|
664
682
|
dragIndicatorStyle?: CSSProperties | ((props: {
|
|
665
683
|
depth: number;
|
|
666
684
|
indentation: number;
|
|
@@ -1017,6 +1035,7 @@ interface Props$3 extends StyleProps {
|
|
|
1017
1035
|
as?: keyof ReactHTML;
|
|
1018
1036
|
href?: string;
|
|
1019
1037
|
className?: string;
|
|
1038
|
+
style?: React__default.CSSProperties;
|
|
1020
1039
|
variant: keyof Theme["textStyles"];
|
|
1021
1040
|
breakpoints?: BreakpointCollection<StyleProps> | null | false;
|
|
1022
1041
|
color?: ThemeColorName;
|
|
@@ -1039,6 +1058,12 @@ declare const Italic: ({ children }: {
|
|
|
1039
1058
|
children: ReactNode;
|
|
1040
1059
|
}) => React__default.JSX.Element;
|
|
1041
1060
|
|
|
1061
|
+
declare const useAutoResize: (value: string) => React__default.MutableRefObject<HTMLTextAreaElement | null>;
|
|
1062
|
+
declare const AutoResizingTextArea: (props: Omit<styled_components.FastOmit<React__default.DetailedHTMLProps<React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>, "onChange" | "value"> & {
|
|
1063
|
+
onChangeText: (value: string) => void;
|
|
1064
|
+
value?: string | undefined;
|
|
1065
|
+
} & React__default.RefAttributes<HTMLTextAreaElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
1066
|
+
|
|
1042
1067
|
declare const Toast: ({ title, content, children, ...props }: {
|
|
1043
1068
|
title?: string | undefined;
|
|
1044
1069
|
content: ReactNode;
|
|
@@ -1257,6 +1282,7 @@ declare const colors: {
|
|
|
1257
1282
|
fill: string;
|
|
1258
1283
|
highlight: string;
|
|
1259
1284
|
};
|
|
1285
|
+
background: string;
|
|
1260
1286
|
text: string;
|
|
1261
1287
|
textMuted: string;
|
|
1262
1288
|
textSubtle: string;
|
|
@@ -1267,8 +1293,10 @@ declare const colors: {
|
|
|
1267
1293
|
dividerStrong: string;
|
|
1268
1294
|
primary: string;
|
|
1269
1295
|
primaryLight: string;
|
|
1296
|
+
primaryPastel: string;
|
|
1270
1297
|
secondary: string;
|
|
1271
1298
|
secondaryLight: string;
|
|
1299
|
+
secondaryPastel: string;
|
|
1272
1300
|
secondaryBright: string;
|
|
1273
1301
|
warning: string;
|
|
1274
1302
|
neutralBackground: string;
|
|
@@ -1323,6 +1351,12 @@ declare const colors: {
|
|
|
1323
1351
|
selection: string;
|
|
1324
1352
|
thumbnailBackground: string;
|
|
1325
1353
|
thumbnailShadow: string;
|
|
1354
|
+
inlineCode: {
|
|
1355
|
+
text: string;
|
|
1356
|
+
background: string;
|
|
1357
|
+
};
|
|
1358
|
+
textLink: string;
|
|
1359
|
+
textLinkFocused: string;
|
|
1326
1360
|
};
|
|
1327
1361
|
|
|
1328
1362
|
declare const dark_colors: typeof colors;
|
|
@@ -1434,4 +1468,4 @@ declare module "react" {
|
|
|
1434
1468
|
function forwardRef<T, P = {}>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
|
|
1435
1469
|
}
|
|
1436
1470
|
|
|
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 };
|
|
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 };
|