@noya-app/noya-designsystem 0.1.6 → 0.1.8

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
- ESM dist/index.mjs 183.12 KB
9
- ESM dist/index.mjs.map 404.00 KB
10
- ESM ⚡️ Build success in 111ms
11
- CJS dist/index.js 199.40 KB
12
- CJS dist/index.js.map 404.28 KB
13
- CJS ⚡️ Build success in 112ms
8
+ ESM dist/index.mjs 183.55 KB
9
+ ESM dist/index.mjs.map 407.50 KB
10
+ ESM ⚡️ Build success in 103ms
11
+ CJS dist/index.js 199.76 KB
12
+ CJS dist/index.js.map 407.69 KB
13
+ CJS ⚡️ Build success in 103ms
14
14
  DTS Build start
15
- DTS ⚡️ Build success in 6149ms
16
- DTS dist/index.d.ts 54.18 KB
17
- DTS dist/index.d.mts 54.18 KB
15
+ DTS ⚡️ Build success in 5984ms
16
+ DTS dist/index.d.ts 54.34 KB
17
+ DTS dist/index.d.mts 54.34 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @noya-app/noya-designsystem
2
2
 
3
+ ## 0.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - fa25230: Improve active button style
8
+ - @noya-app/noya-colorpicker@0.1.6
9
+
10
+ ## 0.1.7
11
+
12
+ ### Patch Changes
13
+
14
+ - 6a13e8b: Improve multiplayer and design system
15
+ - Updated dependencies [6a13e8b]
16
+ - @noya-app/noya-colorpicker@0.1.5
17
+ - @noya-app/noya-geometry@0.1.2
18
+ - @noya-app/noya-icons@0.1.2
19
+
3
20
  ## 0.1.6
4
21
 
5
22
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -283,8 +283,8 @@ declare const DividerVertical: (props: DividerProps) => React__default.ReactElem
283
283
  * A button that opens a menu when clicked, but also allows dragging the
284
284
  */
285
285
  declare const DraggableMenuButton: <T extends string>(props: {
286
- items: MenuItem<T>[];
287
- onSelect: (value: T) => void;
286
+ items?: MenuItem<T>[] | undefined;
287
+ onSelect?: ((value: T) => void) | undefined;
288
288
  isVisible?: boolean | undefined;
289
289
  }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
290
290
 
@@ -621,6 +621,7 @@ interface ListViewRowProps<MenuItemType extends string = string> {
621
621
  onContextMenu?: () => void;
622
622
  onMenuOpenChange?: (isOpen: boolean) => void;
623
623
  onKeyDown?: (event: React__default.KeyboardEvent) => void;
624
+ style?: CSSProperties;
624
625
  }
625
626
  interface IVirtualizedList {
626
627
  scrollToIndex(index: number): void;
@@ -636,7 +637,9 @@ type RenderProps<T> = {
636
637
  renderItem: (item: T, index: number, info: ListViewItemInfo) => ReactNode;
637
638
  keyExtractor: (item: T, index: number) => string;
638
639
  /**
639
- * Each item must have an `id` in order to be sortable
640
+ * Each item must have an `id` in order to be sortable.
641
+ *
642
+ * Additionally, the key extracted with `keyExtractor` must match the ListItem.Row `id`.
640
643
  */
641
644
  sortable?: boolean;
642
645
  virtualized?: Size;
@@ -795,7 +798,7 @@ declare const SelectOption: <T extends string>(props: SelectOptionProps<T>) => R
795
798
  type ChildrenProps<T> = {
796
799
  children: ReactNode;
797
800
  } | {
798
- options: T[];
801
+ options: readonly T[];
799
802
  getTitle?: (option: T, index: number) => string;
800
803
  onChange: (value: T) => void;
801
804
  };
package/dist/index.d.ts CHANGED
@@ -283,8 +283,8 @@ declare const DividerVertical: (props: DividerProps) => React__default.ReactElem
283
283
  * A button that opens a menu when clicked, but also allows dragging the
284
284
  */
285
285
  declare const DraggableMenuButton: <T extends string>(props: {
286
- items: MenuItem<T>[];
287
- onSelect: (value: T) => void;
286
+ items?: MenuItem<T>[] | undefined;
287
+ onSelect?: ((value: T) => void) | undefined;
288
288
  isVisible?: boolean | undefined;
289
289
  }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
290
290
 
@@ -621,6 +621,7 @@ interface ListViewRowProps<MenuItemType extends string = string> {
621
621
  onContextMenu?: () => void;
622
622
  onMenuOpenChange?: (isOpen: boolean) => void;
623
623
  onKeyDown?: (event: React__default.KeyboardEvent) => void;
624
+ style?: CSSProperties;
624
625
  }
625
626
  interface IVirtualizedList {
626
627
  scrollToIndex(index: number): void;
@@ -636,7 +637,9 @@ type RenderProps<T> = {
636
637
  renderItem: (item: T, index: number, info: ListViewItemInfo) => ReactNode;
637
638
  keyExtractor: (item: T, index: number) => string;
638
639
  /**
639
- * Each item must have an `id` in order to be sortable
640
+ * Each item must have an `id` in order to be sortable.
641
+ *
642
+ * Additionally, the key extracted with `keyExtractor` must match the ListItem.Row `id`.
640
643
  */
641
644
  sortable?: boolean;
642
645
  virtualized?: Size;
@@ -795,7 +798,7 @@ declare const SelectOption: <T extends string>(props: SelectOptionProps<T>) => R
795
798
  type ChildrenProps<T> = {
796
799
  children: ReactNode;
797
800
  } | {
798
- options: T[];
801
+ options: readonly T[];
799
802
  getTitle?: (option: T, index: number) => string;
800
803
  onChange: (value: T) => void;
801
804
  };