@noya-app/noya-designsystem 0.0.14 → 0.0.15
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 +12 -0
- package/dist/index.d.mts +15 -11
- package/dist/index.d.ts +15 -11
- package/dist/index.js +28 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/components/Chip.tsx +74 -73
- package/src/components/Dialog.tsx +51 -26
- package/src/components/Switch.tsx +25 -25
- package/src/components/Text.tsx +3 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
[34mCLI[39m Target: esnext
|
|
7
7
|
[34mCJS[39m Build start
|
|
8
8
|
[34mESM[39m Build start
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
9
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m169.22 KB[39m
|
|
10
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m369.46 KB[39m
|
|
11
|
+
[32mESM[39m ⚡️ Build success in 138ms
|
|
12
|
+
[32mCJS[39m [1mdist/index.js [22m[32m185.57 KB[39m
|
|
13
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m370.38 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 165ms
|
|
15
15
|
[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[
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 13680ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m54.19 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m54.19 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @noya-app/noya-designsystem
|
|
2
2
|
|
|
3
|
+
## 0.0.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Bump versions
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @noya-app/noya-colorpicker@0.0.9
|
|
10
|
+
- @noya-app/noya-geometry@0.0.13
|
|
11
|
+
- @noya-app/noya-icons@0.0.6
|
|
12
|
+
- @noya-app/noya-keymap@0.0.8
|
|
13
|
+
- @noya-app/noya-utils@0.0.12
|
|
14
|
+
|
|
3
15
|
## 0.0.14
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -64,9 +64,9 @@ interface ButtonRootProps {
|
|
|
64
64
|
}
|
|
65
65
|
declare const Button: (props: ButtonRootProps & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
66
66
|
|
|
67
|
-
type ChipColorScheme =
|
|
68
|
-
type ChipSize =
|
|
69
|
-
type ChipVariant =
|
|
67
|
+
type ChipColorScheme = "primary" | "secondary" | "error";
|
|
68
|
+
type ChipSize = "small" | "medium";
|
|
69
|
+
type ChipVariant = "solid" | "outlined" | "ghost";
|
|
70
70
|
interface ChipProps {
|
|
71
71
|
colorScheme?: ChipColorScheme;
|
|
72
72
|
variant?: ChipVariant;
|
|
@@ -258,13 +258,14 @@ interface Props$g {
|
|
|
258
258
|
title?: ReactNode;
|
|
259
259
|
description?: ReactNode;
|
|
260
260
|
children?: ReactNode;
|
|
261
|
-
style?: ComponentProps<typeof StyledContent>[
|
|
262
|
-
open: ComponentProps<typeof DialogPrimitive.Root>[
|
|
263
|
-
onOpenChange?: ComponentProps<typeof DialogPrimitive.Root>[
|
|
264
|
-
onOpenAutoFocus?: ComponentProps<typeof DialogPrimitive.Content>[
|
|
261
|
+
style?: ComponentProps<typeof StyledContent>["style"];
|
|
262
|
+
open: ComponentProps<typeof DialogPrimitive.Root>["open"];
|
|
263
|
+
onOpenChange?: ComponentProps<typeof DialogPrimitive.Root>["onOpenChange"];
|
|
264
|
+
onOpenAutoFocus?: ComponentProps<typeof DialogPrimitive.Content>["onOpenAutoFocus"];
|
|
265
265
|
closeOnInteractOutside?: boolean;
|
|
266
266
|
}
|
|
267
267
|
declare const Dialog: (props: Props$g & React__default.RefAttributes<IDialog>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
268
|
+
declare const FullscreenDialog: (props: Props$g & React__default.RefAttributes<IDialog>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
268
269
|
|
|
269
270
|
type DividerVariant = 'normal' | 'strong' | 'subtle';
|
|
270
271
|
interface DividerProps {
|
|
@@ -878,13 +879,13 @@ declare const Stack: {
|
|
|
878
879
|
H: (props: StackProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
879
880
|
};
|
|
880
881
|
|
|
881
|
-
type
|
|
882
|
+
type SwitchColorScheme = "normal" | "primary" | "secondary";
|
|
882
883
|
interface Props$3 {
|
|
883
884
|
value: boolean;
|
|
884
885
|
onChange: (value: boolean) => void;
|
|
885
|
-
|
|
886
|
+
colorScheme?: SwitchColorScheme;
|
|
886
887
|
}
|
|
887
|
-
declare const Switch: ({ value, onChange,
|
|
888
|
+
declare const Switch: ({ value, onChange, colorScheme, }: Props$3) => React__default.JSX.Element;
|
|
888
889
|
|
|
889
890
|
type StyleProps = {
|
|
890
891
|
flex?: CSSProperties$1["flex"];
|
|
@@ -901,6 +902,8 @@ type StyleProps = {
|
|
|
901
902
|
whiteSpace?: CSSProperties$1["whiteSpace"];
|
|
902
903
|
height?: CSSProperties$1["height"];
|
|
903
904
|
width?: CSSProperties$1["width"];
|
|
905
|
+
minWidth?: CSSProperties$1["minWidth"];
|
|
906
|
+
maxWidth?: CSSProperties$1["maxWidth"];
|
|
904
907
|
opacity?: CSSProperties$1["opacity"];
|
|
905
908
|
position?: CSSProperties$1["position"];
|
|
906
909
|
overflow?: CSSProperties$1["overflow"];
|
|
@@ -924,6 +927,7 @@ interface Props$2 extends StyleProps {
|
|
|
924
927
|
color?: ThemeColorName;
|
|
925
928
|
children: ReactNode;
|
|
926
929
|
onClick?: () => void;
|
|
930
|
+
onDoubleClick?: () => void;
|
|
927
931
|
}
|
|
928
932
|
declare const Text$1: (props: Props$2 & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
929
933
|
type PresetProps = Omit<Props$2, "variant">;
|
|
@@ -1285,4 +1289,4 @@ declare module "react" {
|
|
|
1285
1289
|
function forwardRef<T, P = {}>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
|
|
1286
1290
|
}
|
|
1287
1291
|
|
|
1288
|
-
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, type DropValidator, DropdownMenu, type EditableRowProps, type EventName, type ExtractMenuItemType, FillInputField, FillPreviewBackground, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, type GridProps, GridView, type GridViewSize, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, 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, normalizeListIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
|
|
1292
|
+
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, 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 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, normalizeListIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
|
package/dist/index.d.ts
CHANGED
|
@@ -64,9 +64,9 @@ interface ButtonRootProps {
|
|
|
64
64
|
}
|
|
65
65
|
declare const Button: (props: ButtonRootProps & React__default.RefAttributes<HTMLButtonElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
66
66
|
|
|
67
|
-
type ChipColorScheme =
|
|
68
|
-
type ChipSize =
|
|
69
|
-
type ChipVariant =
|
|
67
|
+
type ChipColorScheme = "primary" | "secondary" | "error";
|
|
68
|
+
type ChipSize = "small" | "medium";
|
|
69
|
+
type ChipVariant = "solid" | "outlined" | "ghost";
|
|
70
70
|
interface ChipProps {
|
|
71
71
|
colorScheme?: ChipColorScheme;
|
|
72
72
|
variant?: ChipVariant;
|
|
@@ -258,13 +258,14 @@ interface Props$g {
|
|
|
258
258
|
title?: ReactNode;
|
|
259
259
|
description?: ReactNode;
|
|
260
260
|
children?: ReactNode;
|
|
261
|
-
style?: ComponentProps<typeof StyledContent>[
|
|
262
|
-
open: ComponentProps<typeof DialogPrimitive.Root>[
|
|
263
|
-
onOpenChange?: ComponentProps<typeof DialogPrimitive.Root>[
|
|
264
|
-
onOpenAutoFocus?: ComponentProps<typeof DialogPrimitive.Content>[
|
|
261
|
+
style?: ComponentProps<typeof StyledContent>["style"];
|
|
262
|
+
open: ComponentProps<typeof DialogPrimitive.Root>["open"];
|
|
263
|
+
onOpenChange?: ComponentProps<typeof DialogPrimitive.Root>["onOpenChange"];
|
|
264
|
+
onOpenAutoFocus?: ComponentProps<typeof DialogPrimitive.Content>["onOpenAutoFocus"];
|
|
265
265
|
closeOnInteractOutside?: boolean;
|
|
266
266
|
}
|
|
267
267
|
declare const Dialog: (props: Props$g & React__default.RefAttributes<IDialog>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
268
|
+
declare const FullscreenDialog: (props: Props$g & React__default.RefAttributes<IDialog>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
268
269
|
|
|
269
270
|
type DividerVariant = 'normal' | 'strong' | 'subtle';
|
|
270
271
|
interface DividerProps {
|
|
@@ -878,13 +879,13 @@ declare const Stack: {
|
|
|
878
879
|
H: (props: StackProps & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
879
880
|
};
|
|
880
881
|
|
|
881
|
-
type
|
|
882
|
+
type SwitchColorScheme = "normal" | "primary" | "secondary";
|
|
882
883
|
interface Props$3 {
|
|
883
884
|
value: boolean;
|
|
884
885
|
onChange: (value: boolean) => void;
|
|
885
|
-
|
|
886
|
+
colorScheme?: SwitchColorScheme;
|
|
886
887
|
}
|
|
887
|
-
declare const Switch: ({ value, onChange,
|
|
888
|
+
declare const Switch: ({ value, onChange, colorScheme, }: Props$3) => React__default.JSX.Element;
|
|
888
889
|
|
|
889
890
|
type StyleProps = {
|
|
890
891
|
flex?: CSSProperties$1["flex"];
|
|
@@ -901,6 +902,8 @@ type StyleProps = {
|
|
|
901
902
|
whiteSpace?: CSSProperties$1["whiteSpace"];
|
|
902
903
|
height?: CSSProperties$1["height"];
|
|
903
904
|
width?: CSSProperties$1["width"];
|
|
905
|
+
minWidth?: CSSProperties$1["minWidth"];
|
|
906
|
+
maxWidth?: CSSProperties$1["maxWidth"];
|
|
904
907
|
opacity?: CSSProperties$1["opacity"];
|
|
905
908
|
position?: CSSProperties$1["position"];
|
|
906
909
|
overflow?: CSSProperties$1["overflow"];
|
|
@@ -924,6 +927,7 @@ interface Props$2 extends StyleProps {
|
|
|
924
927
|
color?: ThemeColorName;
|
|
925
928
|
children: ReactNode;
|
|
926
929
|
onClick?: () => void;
|
|
930
|
+
onDoubleClick?: () => void;
|
|
927
931
|
}
|
|
928
932
|
declare const Text$1: (props: Props$2 & React__default.RefAttributes<HTMLElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
929
933
|
type PresetProps = Omit<Props$2, "variant">;
|
|
@@ -1285,4 +1289,4 @@ declare module "react" {
|
|
|
1285
1289
|
function forwardRef<T, P = {}>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
|
|
1286
1290
|
}
|
|
1287
1291
|
|
|
1288
|
-
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, type DropValidator, DropdownMenu, type EditableRowProps, type EventName, type ExtractMenuItemType, FillInputField, FillPreviewBackground, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, type GridProps, GridView, type GridViewSize, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, 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, normalizeListIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
|
|
1292
|
+
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, 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 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, normalizeListIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
|
package/dist/index.js
CHANGED
|
@@ -50,6 +50,7 @@ __export(src_exports, {
|
|
|
50
50
|
DropdownMenu: () => DropdownMenu,
|
|
51
51
|
FillInputField: () => FillInputField,
|
|
52
52
|
FillPreviewBackground: () => FillPreviewBackground,
|
|
53
|
+
FullscreenDialog: () => FullscreenDialog,
|
|
53
54
|
GlobalInputBlurProvider: () => GlobalInputBlurProvider,
|
|
54
55
|
GradientPicker: () => GradientPicker,
|
|
55
56
|
GridView: () => GridView,
|
|
@@ -574,6 +575,28 @@ var Dialog = (0, import_react7.forwardRef)(function Dialog2({
|
|
|
574
575
|
children
|
|
575
576
|
));
|
|
576
577
|
});
|
|
578
|
+
var FullscreenDialog = (0, import_react7.forwardRef)(function FullscreenDialog2({ style, ...rest }, forwardedRef) {
|
|
579
|
+
return /* @__PURE__ */ import_react7.default.createElement(
|
|
580
|
+
Dialog,
|
|
581
|
+
{
|
|
582
|
+
ref: forwardedRef,
|
|
583
|
+
style: {
|
|
584
|
+
width: "100%",
|
|
585
|
+
height: "100%",
|
|
586
|
+
maxWidth: "100%",
|
|
587
|
+
maxHeight: "100%",
|
|
588
|
+
top: "0",
|
|
589
|
+
left: "0",
|
|
590
|
+
transform: "none",
|
|
591
|
+
display: "flex",
|
|
592
|
+
flexDirection: "column",
|
|
593
|
+
padding: 0,
|
|
594
|
+
...style
|
|
595
|
+
},
|
|
596
|
+
...rest
|
|
597
|
+
}
|
|
598
|
+
);
|
|
599
|
+
});
|
|
577
600
|
|
|
578
601
|
// src/components/InputField.tsx
|
|
579
602
|
var import_noya_icons2 = require("@noya-app/noya-icons");
|
|
@@ -1828,6 +1851,7 @@ var ChipElement = import_styled_components16.default.span(({ theme, colorScheme,
|
|
|
1828
1851
|
display: "inline-flex",
|
|
1829
1852
|
alignItems: "center",
|
|
1830
1853
|
lineHeight: "1.4",
|
|
1854
|
+
whiteSpace: "pre",
|
|
1831
1855
|
...size2 === "medium" ? {
|
|
1832
1856
|
fontSize: "11px",
|
|
1833
1857
|
padding: "4px 8px"
|
|
@@ -4795,7 +4819,7 @@ var Slider = function Slider2({
|
|
|
4795
4819
|
var SwitchPrimitive = __toESM(require("@radix-ui/react-switch"));
|
|
4796
4820
|
var import_react38 = __toESM(require("react"));
|
|
4797
4821
|
var import_styled_components33 = __toESM(require("styled-components"));
|
|
4798
|
-
var SwitchRoot = (0, import_styled_components33.default)(SwitchPrimitive.Root)(({ theme, variant }) => ({
|
|
4822
|
+
var SwitchRoot = (0, import_styled_components33.default)(SwitchPrimitive.Root)(({ theme, colorScheme: variant }) => ({
|
|
4799
4823
|
all: "unset",
|
|
4800
4824
|
width: 32,
|
|
4801
4825
|
height: 19,
|
|
@@ -4827,12 +4851,12 @@ var SwitchThumb = (0, import_styled_components33.default)(SwitchPrimitive.Thumb)
|
|
|
4827
4851
|
var Switch = function Switch2({
|
|
4828
4852
|
value,
|
|
4829
4853
|
onChange,
|
|
4830
|
-
|
|
4854
|
+
colorScheme = "normal"
|
|
4831
4855
|
}) {
|
|
4832
4856
|
return /* @__PURE__ */ import_react38.default.createElement(
|
|
4833
4857
|
SwitchRoot,
|
|
4834
4858
|
{
|
|
4835
|
-
|
|
4859
|
+
colorScheme,
|
|
4836
4860
|
checked: value,
|
|
4837
4861
|
onCheckedChange: (newValue) => {
|
|
4838
4862
|
onChange(newValue);
|
|
@@ -5427,6 +5451,7 @@ var DimensionInput = (0, import_react42.memo)(function DimensionInput2({
|
|
|
5427
5451
|
DropdownMenu,
|
|
5428
5452
|
FillInputField,
|
|
5429
5453
|
FillPreviewBackground,
|
|
5454
|
+
FullscreenDialog,
|
|
5430
5455
|
GlobalInputBlurProvider,
|
|
5431
5456
|
GradientPicker,
|
|
5432
5457
|
GridView,
|