@n8n/design-system 2.37.0 → 2.37.2

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.
@@ -369,6 +369,7 @@ export declare const updatedIconSet: {
369
369
  readonly laptop: import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
370
370
  readonly layers: import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
371
371
  readonly 'layout-template': import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
372
+ readonly 'life-buoy': import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
372
373
  readonly lightbulb: import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
373
374
  readonly link: import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
374
375
  readonly list: import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
@@ -12,6 +12,11 @@ export type InputNumberEmits = NumberFieldRootEmits & {
12
12
  focus: [event: FocusEvent];
13
13
  blur: [event: FocusEvent];
14
14
  };
15
+ export interface InputNumberExposed {
16
+ focus: () => void;
17
+ blur: () => void;
18
+ select: () => void;
19
+ }
15
20
  export type InputNumberControlSlotProps = {
16
21
  ui: {
17
22
  class: string;
@@ -1,16 +1,136 @@
1
- import { InputSize } from '../../types';
2
- type InputNumberProps = {
3
- size?: InputSize;
4
- min?: number;
5
- max?: number;
6
- step?: number;
7
- precision?: number;
1
+ import { InputNumberProps, InputNumberSlots } from './InputNumber.types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<InputNumberSlots> & InputNumberSlots;
5
+ refs: {
6
+ inputRef: ({
7
+ $: import('vue').ComponentInternalInstance;
8
+ $data: {};
9
+ $props: {
10
+ readonly asChild?: boolean | undefined;
11
+ readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
12
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
13
+ $attrs: {
14
+ [x: string]: unknown;
15
+ };
16
+ $refs: {
17
+ [x: string]: unknown;
18
+ };
19
+ $slots: Readonly<{
20
+ [name: string]: import('vue').Slot<any> | undefined;
21
+ }>;
22
+ $root: import('vue').ComponentPublicInstance | null;
23
+ $parent: import('vue').ComponentPublicInstance | null;
24
+ $host: Element | null;
25
+ $emit: (event: string, ...args: any[]) => void;
26
+ $el: any;
27
+ $options: import('vue').ComponentOptionsBase<Readonly<import('reka-ui').NumberFieldInputProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
28
+ as: import('reka-ui').AsTag | import('vue').Component;
29
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
30
+ beforeCreate?: (() => void) | (() => void)[];
31
+ created?: (() => void) | (() => void)[];
32
+ beforeMount?: (() => void) | (() => void)[];
33
+ mounted?: (() => void) | (() => void)[];
34
+ beforeUpdate?: (() => void) | (() => void)[];
35
+ updated?: (() => void) | (() => void)[];
36
+ activated?: (() => void) | (() => void)[];
37
+ deactivated?: (() => void) | (() => void)[];
38
+ beforeDestroy?: (() => void) | (() => void)[];
39
+ beforeUnmount?: (() => void) | (() => void)[];
40
+ destroyed?: (() => void) | (() => void)[];
41
+ unmounted?: (() => void) | (() => void)[];
42
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
43
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
44
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
45
+ };
46
+ $forceUpdate: () => void;
47
+ $nextTick: typeof import('vue').nextTick;
48
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
49
+ } & Readonly<{
50
+ as: import('reka-ui').AsTag | import('vue').Component;
51
+ }> & Omit<Readonly<import('reka-ui').NumberFieldInputProps> & Readonly<{}>, "as"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
52
+ $slots: {
53
+ default?: (props: {}) => any;
54
+ };
55
+ }) | null;
56
+ };
57
+ rootEl: any;
8
58
  };
9
- declare const _default: import('vue').DefineComponent<InputNumberProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<InputNumberProps> & Readonly<{}>, {
10
- size: InputSize;
59
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
60
+ declare const __VLS_component: import('vue').DefineComponent<InputNumberProps, {
61
+ focus: () => void;
62
+ blur: () => void;
63
+ select: () => void;
64
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
65
+ focus: (event: FocusEvent) => any;
66
+ "update:modelValue": (val: number) => any;
67
+ blur: (event: FocusEvent) => any;
68
+ }, string, import('vue').PublicProps, Readonly<InputNumberProps> & Readonly<{
69
+ onFocus?: ((event: FocusEvent) => any) | undefined;
70
+ "onUpdate:modelValue"?: ((val: number) => any) | undefined;
71
+ onBlur?: ((event: FocusEvent) => any) | undefined;
72
+ }>, {
73
+ size: import('./InputNumber.types').InputNumberSize;
11
74
  step: number;
12
- min: number;
13
- max: number;
14
- precision: number;
15
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
75
+ stepSnapping: boolean;
76
+ controls: boolean;
77
+ controlsPosition: import('./InputNumber.types').InputNumberControlsPosition;
78
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
79
+ inputRef: ({
80
+ $: import('vue').ComponentInternalInstance;
81
+ $data: {};
82
+ $props: {
83
+ readonly asChild?: boolean | undefined;
84
+ readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
85
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
86
+ $attrs: {
87
+ [x: string]: unknown;
88
+ };
89
+ $refs: {
90
+ [x: string]: unknown;
91
+ };
92
+ $slots: Readonly<{
93
+ [name: string]: import('vue').Slot<any> | undefined;
94
+ }>;
95
+ $root: import('vue').ComponentPublicInstance | null;
96
+ $parent: import('vue').ComponentPublicInstance | null;
97
+ $host: Element | null;
98
+ $emit: (event: string, ...args: any[]) => void;
99
+ $el: any;
100
+ $options: import('vue').ComponentOptionsBase<Readonly<import('reka-ui').NumberFieldInputProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
101
+ as: import('reka-ui').AsTag | import('vue').Component;
102
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
103
+ beforeCreate?: (() => void) | (() => void)[];
104
+ created?: (() => void) | (() => void)[];
105
+ beforeMount?: (() => void) | (() => void)[];
106
+ mounted?: (() => void) | (() => void)[];
107
+ beforeUpdate?: (() => void) | (() => void)[];
108
+ updated?: (() => void) | (() => void)[];
109
+ activated?: (() => void) | (() => void)[];
110
+ deactivated?: (() => void) | (() => void)[];
111
+ beforeDestroy?: (() => void) | (() => void)[];
112
+ beforeUnmount?: (() => void) | (() => void)[];
113
+ destroyed?: (() => void) | (() => void)[];
114
+ unmounted?: (() => void) | (() => void)[];
115
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
116
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
117
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
118
+ };
119
+ $forceUpdate: () => void;
120
+ $nextTick: typeof import('vue').nextTick;
121
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
122
+ } & Readonly<{
123
+ as: import('reka-ui').AsTag | import('vue').Component;
124
+ }> & Omit<Readonly<import('reka-ui').NumberFieldInputProps> & Readonly<{}>, "as"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
125
+ $slots: {
126
+ default?: (props: {}) => any;
127
+ };
128
+ }) | null;
129
+ }, any>;
130
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
131
  export default _default;
132
+ type __VLS_WithTemplateSlots<T, S> = T & {
133
+ new (): {
134
+ $slots: S;
135
+ };
136
+ };
@@ -1,2 +1,4 @@
1
1
  import { default as N8nInputNumber } from './InputNumber.vue';
2
2
  export default N8nInputNumber;
3
+ export { N8nInputNumber };
4
+ export type * from './InputNumber.types';
@@ -1,6 +1,6 @@
1
1
  import { Editor, Extension, EditorOptions } from '@tiptap/core';
2
2
  export type MarkdownEditorVariant = 'ghost' | 'contained';
3
- export type MarkdownEditorToolbarMode = 'never' | 'hover' | 'always';
3
+ export type MarkdownEditorToolbarMode = 'never' | 'hover' | 'always' | 'floating';
4
4
  export type N8nMarkdownEditorProps = {
5
5
  modelValue: string;
6
6
  variant?: MarkdownEditorVariant;
@@ -10,7 +10,6 @@ interface ResizeProps {
10
10
  scale?: number;
11
11
  gridSize?: number;
12
12
  supportedDirections?: Direction[];
13
- outset?: boolean;
14
13
  window?: Window;
15
14
  }
16
15
  declare function __VLS_template(): {
@@ -42,7 +41,6 @@ declare const __VLS_component: import('vue').DefineComponent<ResizeProps, {}, {}
42
41
  isResizingEnabled: boolean;
43
42
  gridSize: number;
44
43
  supportedDirections: Direction[];
45
- outset: boolean;
46
44
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
47
45
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
48
46
  export default _default;
@@ -46,6 +46,7 @@ export { default as N8nInfoTip } from './N8nInfoTip';
46
46
  export { default as N8nInput } from './N8nInput';
47
47
  export { default as N8nInputLabel } from './N8nInputLabel';
48
48
  export { default as N8nInputNumber } from './N8nInputNumber';
49
+ export type * from './N8nInputNumber/InputNumber.types';
49
50
  export { default as N8nLink } from './N8nLink';
50
51
  export { default as N8nLogo } from './N8nLogo';
51
52
  export { default as N8nLoading } from './N8nLoading';
@@ -457,7 +457,6 @@ $input-small-height: 30px !default;
457
457
  $input-mini-font-size: 12px;
458
458
  /// height||Other|4
459
459
  $input-mini-height: 26px !default;
460
- $input-number-control-border-radius: 3px;
461
460
 
462
461
  /* Cascader
463
462
  -------------------------- */
@@ -8,7 +8,6 @@
8
8
  @use './dropdown.scss';
9
9
  @use './menu.scss';
10
10
  @use './input.scss';
11
- @use './input-number.scss';
12
11
  @use './radio.scss';
13
12
  @use './checkbox.scss';
14
13
  @use './switch.scss';
package/dist/index.d.ts CHANGED
@@ -19,8 +19,6 @@ export type * from './v2/components/Checkbox/Checkbox.types';
19
19
  export type * from './components/N8nPagination/Pagination.types';
20
20
  export { default as N8nLoading2 } from './v2/components/Loading/Loading.vue';
21
21
  export type * from './v2/components/Loading/Loading.types';
22
- export { default as N8nInputNumber2 } from './v2/components/InputNumber/InputNumber.vue';
23
- export type * from './v2/components/InputNumber/InputNumber.types';
24
22
  export { default as N8nRadioGroupItem } from './components/N8nRadioGroup/RadioGroupItem.vue';
25
23
  export { default as N8nRadioGroup } from './components/N8nRadioGroup/RadioGroup.vue';
26
24
  export type * from './components/N8nRadioGroup/RadioGroupItem.types';