@noya-app/noya-designsystem 0.1.23 → 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.87 KB
9
- CJS dist/index.js.map 466.94 KB
10
- CJS ⚡️ Build success in 168ms
11
- ESM dist/index.mjs 213.59 KB
12
- ESM dist/index.mjs.map 467.05 KB
13
- ESM ⚡️ Build success in 170ms
14
8
  DTS Build start
15
- DTS ⚡️ Build success in 10431ms
16
- DTS dist/index.d.ts 61.61 KB
17
- DTS dist/index.d.mts 61.61 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,11 @@
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
+
3
9
  ## 0.1.23
4
10
 
5
11
  ### 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;
@@ -1049,7 +1051,7 @@ interface Props$2 {
1049
1051
  declare const Tooltip: (props: Props$2) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1050
1052
 
1051
1053
  type TreeRowBaseProps = {
1052
- icon?: ReactNode;
1054
+ icon?: Exclude<ReactNode, string> | IconName;
1053
1055
  expanded?: boolean;
1054
1056
  onClickChevron?: ({ altKey }: {
1055
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;
@@ -1049,7 +1051,7 @@ interface Props$2 {
1049
1051
  declare const Tooltip: (props: Props$2) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1050
1052
 
1051
1053
  type TreeRowBaseProps = {
1052
- icon?: ReactNode;
1054
+ icon?: Exclude<ReactNode, string> | IconName;
1053
1055
  expanded?: boolean;
1054
1056
  onClickChevron?: ({ altKey }: {
1055
1057
  altKey: boolean;