@n8n/design-system 2.41.3 → 2.42.0

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.
@@ -15,6 +15,7 @@ export type IUser = {
15
15
  export interface UserAction<UserType extends IUser> {
16
16
  label: string;
17
17
  value: string;
18
+ divided?: boolean;
18
19
  disabled?: boolean;
19
20
  type?: 'external-link';
20
21
  tooltip?: string;
@@ -32,10 +32,13 @@ export type ComboboxProps = Omit<ComboboxRootProps<ComboboxValue>, 'dir' | 'open
32
32
  contentClass?: string;
33
33
  id?: string;
34
34
  clearable?: boolean;
35
+ loading?: boolean;
35
36
  teleported?: boolean;
36
37
  portalTarget?: string | HTMLElement;
37
38
  };
38
- export type ComboboxEmits = ComboboxRootEmits<ComboboxValue | ComboboxValue[] | undefined>;
39
+ export type ComboboxEmits = ComboboxRootEmits<ComboboxValue | ComboboxValue[] | undefined> & {
40
+ 'update:searchTerm': [value: string];
41
+ };
39
42
  export type ComboboxSizes = InputSize;
40
43
  type ComboboxItemUi = {
41
44
  class: string;
@@ -1,6 +1,7 @@
1
1
  import { nextTick } from 'vue';
2
2
  import { ComboboxProps, ComboboxSizes, ComboboxSlots } from './Combobox.types';
3
3
  type __VLS_Slots = ComboboxSlots;
4
+ declare function focusOnInput(): void;
4
5
  declare const __VLS_base: import('vue').DefineComponent<ComboboxProps, {
5
6
  anchorRef: Readonly<import('vue').ShallowRef<({
6
7
  $: import('vue').ComponentInternalInstance;
@@ -49,6 +50,7 @@ declare const __VLS_base: import('vue').DefineComponent<ComboboxProps, {
49
50
  default?: (props: {}) => any;
50
51
  };
51
52
  }) | null>>;
53
+ focusOnInput: typeof focusOnInput;
52
54
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
53
55
  highlight: (payload: {
54
56
  ref: HTMLElement;
@@ -56,6 +58,7 @@ declare const __VLS_base: import('vue').DefineComponent<ComboboxProps, {
56
58
  } | undefined) => any;
57
59
  "update:modelValue": (value: string | string[] | undefined) => any;
58
60
  "update:open": (value: boolean) => any;
61
+ "update:searchTerm": (value: string) => any;
59
62
  }, string, import('vue').PublicProps, Readonly<ComboboxProps> & Readonly<{
60
63
  onHighlight?: ((payload: {
61
64
  ref: HTMLElement;
@@ -63,9 +66,11 @@ declare const __VLS_base: import('vue').DefineComponent<ComboboxProps, {
63
66
  } | undefined) => any) | undefined;
64
67
  "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
65
68
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
69
+ "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
66
70
  }>, {
67
71
  teleported: boolean;
68
72
  size: ComboboxSizes;
73
+ loading: boolean;
69
74
  clearable: boolean;
70
75
  side: "right" | "left" | "top" | "bottom";
71
76
  sideOffset: number;
@@ -1,4 +1,4 @@
1
- import { SelectRootEmits, SelectRootProps } from 'reka-ui';
1
+ import { SelectContentProps, SelectRootEmits, SelectRootProps } from 'reka-ui';
2
2
  import { IconName } from '../../../components/N8nIcon/icons';
3
3
  export type SelectValue = string | number;
4
4
  export type SelectOptionBase<TValue extends SelectValue = SelectValue> = {
@@ -35,6 +35,7 @@ export type SelectProps<M extends boolean = false> = Omit<SelectRootProps, 'mult
35
35
  icon?: IconName;
36
36
  clearable?: boolean;
37
37
  sideOffset?: number;
38
+ align?: SelectContentProps['align'];
38
39
  contentClass?: string;
39
40
  };
40
41
  export type SelectEmits<M extends boolean = false> = Omit<SelectRootEmits, 'update:modelValue'> & {
@@ -22,6 +22,7 @@ export type TagsInputSlots = {
22
22
  disabled?: boolean;
23
23
  class: string;
24
24
  }) => unknown;
25
+ trailing?: () => unknown;
25
26
  tag?: (props: {
26
27
  value: TagsInputValue;
27
28
  displayValue: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@n8n/design-system",
4
- "version": "2.41.3",
4
+ "version": "2.42.0",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -37,9 +37,9 @@
37
37
  "license": "SEE LICENSE IN LICENSE.md",
38
38
  "dependencies": {
39
39
  "@internationalized/date": "^3.9.0",
40
- "@n8n/composables": "1.32.3",
40
+ "@n8n/composables": "1.33.0",
41
41
  "@n8n/frontend-utils": "0.4.0",
42
- "@n8n/utils": "1.49.0",
42
+ "@n8n/utils": "1.50.0",
43
43
  "@tanstack/vue-table": "^8.21.2",
44
44
  "@tiptap/core": "3.27.0",
45
45
  "@tiptap/pm": "3.27.0",