@noya-app/noya-designsystem 0.1.22 → 0.1.24

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
- CJS dist/index.js 231.53 KB
9
- CJS dist/index.js.map 466.05 KB
10
- CJS ⚡️ Build success in 229ms
11
- ESM dist/index.mjs 213.24 KB
12
- ESM dist/index.mjs.map 466.16 KB
13
- ESM ⚡️ Build success in 237ms
14
8
  DTS Build start
15
- DTS ⚡️ Build success in 10433ms
16
- DTS dist/index.d.ts 61.38 KB
17
- DTS dist/index.d.mts 61.38 KB
9
+ ESM dist/index.mjs 213.95 KB
10
+ ESM dist/index.mjs.map 468.02 KB
11
+ ESM ⚡️ Build success in 297ms
12
+ CJS dist/index.js 232.25 KB
13
+ CJS dist/index.js.map 467.92 KB
14
+ CJS ⚡️ Build success in 336ms
15
+ DTS ⚡️ Build success in 10367ms
16
+ DTS dist/index.d.ts 61.69 KB
17
+ DTS dist/index.d.mts 61.69 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @noya-app/noya-designsystem
2
2
 
3
+ ## 0.1.24
4
+
5
+ ### Patch Changes
6
+
7
+ - d0eb712: Add token import and export
8
+
9
+ ## 0.1.23
10
+
11
+ ### Patch Changes
12
+
13
+ - 61cb70a: Add tree editor
14
+
3
15
  ## 0.1.22
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -3,6 +3,7 @@ import React__default, { CSSProperties, ReactNode, ComponentProps, AriaRole, Key
3
3
  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
+ import * as Icons from '@noya-app/noya-icons';
6
7
  import * as DialogPrimitive from '@radix-ui/react-dialog';
7
8
  import * as RadixDropdownMenu from '@radix-ui/react-dropdown-menu';
8
9
  import { Sketch } from '@noya-app/noya-file-format';
@@ -10,7 +11,6 @@ import * as csstype from 'csstype';
10
11
  import { Property } from 'csstype';
11
12
  import * as _noya_app_noya_keymap from '@noya-app/noya-keymap';
12
13
  import { KeyModifiers, PlatformName } from '@noya-app/noya-keymap';
13
- import * as Icons from '@noya-app/noya-icons';
14
14
  import * as _noya_app_noya_geometry from '@noya-app/noya-geometry';
15
15
  import { Size } from '@noya-app/noya-geometry';
16
16
  import { IItemScore } from 'vscode-fuzzy-scorer';
@@ -229,6 +229,8 @@ type PickByValue<T, V> = Pick<T, {
229
229
  }[keyof T]>;
230
230
  type ThemeColorName = keyof PickByValue<Theme['colors'], string>;
231
231
 
232
+ type IconName = keyof typeof Icons;
233
+
232
234
  declare const SEPARATOR_ITEM = "separator";
233
235
  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";
234
236
  type RegularMenuItem<T extends string> = {
@@ -237,7 +239,7 @@ type RegularMenuItem<T extends string> = {
237
239
  shortcut?: string;
238
240
  checked?: boolean;
239
241
  disabled?: boolean;
240
- icon?: ReactNode;
242
+ icon?: Exclude<ReactNode, string> | IconName;
241
243
  items?: MenuItem<T>[];
242
244
  role?: MenuItemRole;
243
245
  };
@@ -432,7 +434,7 @@ declare namespace GridView {
432
434
  }
433
435
 
434
436
  declare const IconButton: (props: Omit<ButtonRootProps, "children" | "size" | "flex" | "variant"> & {
435
- iconName: keyof typeof Icons;
437
+ iconName: IconName;
436
438
  className?: string | undefined;
437
439
  style?: React__default.CSSProperties | undefined;
438
440
  selected?: boolean | undefined;
@@ -518,6 +520,8 @@ interface InputFieldRootProps {
518
520
  width: number;
519
521
  }) => ReactNode;
520
522
  onFocusChange?: (isFocused: boolean) => void;
523
+ style?: React__default.CSSProperties;
524
+ className?: string;
521
525
  }
522
526
  declare namespace InputField {
523
527
  const Root: (props: InputFieldRootProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
@@ -656,6 +660,11 @@ interface ListViewRowProps<MenuItemType extends string = string> {
656
660
  onMenuOpenChange?: (isOpen: boolean) => void;
657
661
  onKeyDown?: (event: React__default.KeyboardEvent) => void;
658
662
  style?: CSSProperties;
663
+ dragIndicatorStyle?: CSSProperties | ((props: {
664
+ depth: number;
665
+ indentation: number;
666
+ position: RelativeDropPosition;
667
+ }) => CSSProperties);
659
668
  }
660
669
  interface IVirtualizedList {
661
670
  scrollToIndex(index: number): void;
@@ -1042,7 +1051,7 @@ interface Props$2 {
1042
1051
  declare const Tooltip: (props: Props$2) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1043
1052
 
1044
1053
  type TreeRowBaseProps = {
1045
- icon?: ReactNode;
1054
+ icon?: Exclude<ReactNode, string> | IconName;
1046
1055
  expanded?: boolean;
1047
1056
  onClickChevron?: ({ altKey }: {
1048
1057
  altKey: boolean;
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import React__default, { CSSProperties, ReactNode, ComponentProps, AriaRole, Key
3
3
  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
+ import * as Icons from '@noya-app/noya-icons';
6
7
  import * as DialogPrimitive from '@radix-ui/react-dialog';
7
8
  import * as RadixDropdownMenu from '@radix-ui/react-dropdown-menu';
8
9
  import { Sketch } from '@noya-app/noya-file-format';
@@ -10,7 +11,6 @@ import * as csstype from 'csstype';
10
11
  import { Property } from 'csstype';
11
12
  import * as _noya_app_noya_keymap from '@noya-app/noya-keymap';
12
13
  import { KeyModifiers, PlatformName } from '@noya-app/noya-keymap';
13
- import * as Icons from '@noya-app/noya-icons';
14
14
  import * as _noya_app_noya_geometry from '@noya-app/noya-geometry';
15
15
  import { Size } from '@noya-app/noya-geometry';
16
16
  import { IItemScore } from 'vscode-fuzzy-scorer';
@@ -229,6 +229,8 @@ type PickByValue<T, V> = Pick<T, {
229
229
  }[keyof T]>;
230
230
  type ThemeColorName = keyof PickByValue<Theme['colors'], string>;
231
231
 
232
+ type IconName = keyof typeof Icons;
233
+
232
234
  declare const SEPARATOR_ITEM = "separator";
233
235
  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";
234
236
  type RegularMenuItem<T extends string> = {
@@ -237,7 +239,7 @@ type RegularMenuItem<T extends string> = {
237
239
  shortcut?: string;
238
240
  checked?: boolean;
239
241
  disabled?: boolean;
240
- icon?: ReactNode;
242
+ icon?: Exclude<ReactNode, string> | IconName;
241
243
  items?: MenuItem<T>[];
242
244
  role?: MenuItemRole;
243
245
  };
@@ -432,7 +434,7 @@ declare namespace GridView {
432
434
  }
433
435
 
434
436
  declare const IconButton: (props: Omit<ButtonRootProps, "children" | "size" | "flex" | "variant"> & {
435
- iconName: keyof typeof Icons;
437
+ iconName: IconName;
436
438
  className?: string | undefined;
437
439
  style?: React__default.CSSProperties | undefined;
438
440
  selected?: boolean | undefined;
@@ -518,6 +520,8 @@ interface InputFieldRootProps {
518
520
  width: number;
519
521
  }) => ReactNode;
520
522
  onFocusChange?: (isFocused: boolean) => void;
523
+ style?: React__default.CSSProperties;
524
+ className?: string;
521
525
  }
522
526
  declare namespace InputField {
523
527
  const Root: (props: InputFieldRootProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
@@ -656,6 +660,11 @@ interface ListViewRowProps<MenuItemType extends string = string> {
656
660
  onMenuOpenChange?: (isOpen: boolean) => void;
657
661
  onKeyDown?: (event: React__default.KeyboardEvent) => void;
658
662
  style?: CSSProperties;
663
+ dragIndicatorStyle?: CSSProperties | ((props: {
664
+ depth: number;
665
+ indentation: number;
666
+ position: RelativeDropPosition;
667
+ }) => CSSProperties);
659
668
  }
660
669
  interface IVirtualizedList {
661
670
  scrollToIndex(index: number): void;
@@ -1042,7 +1051,7 @@ interface Props$2 {
1042
1051
  declare const Tooltip: (props: Props$2) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1043
1052
 
1044
1053
  type TreeRowBaseProps = {
1045
- icon?: ReactNode;
1054
+ icon?: Exclude<ReactNode, string> | IconName;
1046
1055
  expanded?: boolean;
1047
1056
  onClickChevron?: ({ altKey }: {
1048
1057
  altKey: boolean;