@n8n/design-system 2.41.3 → 2.42.1

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.
@@ -1,6 +1,8 @@
1
1
  export type ActionToggleItem<T extends string = string> = {
2
2
  label: string;
3
3
  disabled?: boolean;
4
+ divided?: boolean;
5
+ destructive?: boolean;
4
6
  type?: 'external-link';
5
7
  tooltip?: string;
6
8
  } & ({
@@ -0,0 +1,51 @@
1
+ import { IconName } from '../N8nIcon';
2
+ export interface ApprovalOption {
3
+ key: string;
4
+ icon: IconName;
5
+ label: string;
6
+ suffix?: string;
7
+ destructive?: boolean;
8
+ withArrow?: boolean;
9
+ testId?: string;
10
+ }
11
+ export interface ApprovalCardLabels {
12
+ alwaysAllow: string;
13
+ alwaysAllowSuffix: string;
14
+ allowOnce: string;
15
+ deny: string;
16
+ allowed: string;
17
+ denied: string;
18
+ args?: string;
19
+ }
20
+ interface ApprovalCardProps {
21
+ title: string;
22
+ titleSize?: 'medium' | 'large';
23
+ description?: string;
24
+ args?: unknown;
25
+ descriptionLabel?: string;
26
+ options?: readonly ApprovalOption[];
27
+ labels?: ApprovalCardLabels;
28
+ supportsSessionApproval?: boolean;
29
+ destructive?: boolean;
30
+ decision?: 'allowed' | 'denied';
31
+ disabled?: boolean;
32
+ }
33
+ declare var __VLS_7: {};
34
+ type __VLS_Slots = {} & {
35
+ description?: (props: typeof __VLS_7) => any;
36
+ };
37
+ declare const __VLS_base: import('vue').DefineComponent<ApprovalCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
38
+ select: (key: string) => any;
39
+ }, string, import('vue').PublicProps, Readonly<ApprovalCardProps> & Readonly<{
40
+ onSelect?: ((key: string) => any) | undefined;
41
+ }>, {
42
+ titleSize: "medium" | "large";
43
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
44
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
45
+ declare const _default: typeof __VLS_export;
46
+ export default _default;
47
+ type __VLS_WithSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -0,0 +1,2 @@
1
+ export { default } from './ApprovalCard.vue';
2
+ export type { ApprovalCardLabels, ApprovalOption } from './ApprovalCard.vue';
@@ -238,6 +238,8 @@ export declare const updatedIconSet: {
238
238
  readonly telegram: string;
239
239
  readonly discord: string;
240
240
  readonly teams: string;
241
+ readonly azure: string;
242
+ readonly entra: string;
241
243
  readonly spinner: string;
242
244
  readonly 'node-dirty': string;
243
245
  readonly 'node-ellipsis': string;
@@ -457,6 +459,7 @@ export declare const updatedIconSet: {
457
459
  readonly terminal: import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
458
460
  readonly 'thumbs-down': import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
459
461
  readonly 'thumbs-up': import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
462
+ readonly timer: import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
460
463
  readonly 'trash-2': import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
461
464
  readonly 'tree-pine': import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
462
465
  readonly 'trending-down': import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>;
@@ -0,0 +1,19 @@
1
+ export interface SettingsRowButtonProps {
2
+ disabled?: boolean;
3
+ expanded?: boolean;
4
+ }
5
+ type __VLS_Slots = {
6
+ default: () => unknown;
7
+ };
8
+ declare const __VLS_base: import('vue').DefineComponent<SettingsRowButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SettingsRowButtonProps> & Readonly<{}>, {
9
+ disabled: boolean;
10
+ expanded: boolean;
11
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,2 @@
1
+ export { default } from './SettingsRowButton.vue';
2
+ export type { SettingsRowButtonProps } from './SettingsRowButton.vue';
@@ -15,6 +15,7 @@ export { default as N8nAiModelSelectorDropdown } from './N8nAiModelSelectorDropd
15
15
  export type { AiModelSelectorMenuItem, AiModelSelectorMenuItemData, } from './N8nAiModelSelectorDropdown';
16
16
  export type { DropdownMenuProps, DropdownMenuItemProps, DropdownMenuSlots, DropdownMenuItemSlots, DropdownMenuEmits, DropdownMenuExposed, DropdownMenuSearchMode, DropdownMenuTrigger, DropdownMenuPlacement, } from './N8nDropdownMenu/DropdownMenu.types';
17
17
  export { default as N8nAlert } from './N8nAlert';
18
+ export { default as N8nApprovalCard, type ApprovalCardLabels, type ApprovalOption, } from './N8nApprovalCard';
18
19
  export { default as N8nAvatar } from './N8nAvatar';
19
20
  export { default as N8nBadge } from './N8nBadge';
20
21
  export { BADGE_SIZE, BADGE_VARIANT } from './N8nBadge/Badge.type';
@@ -79,6 +80,8 @@ export { default as N8nSettingsPageHeader } from './N8nSettingsPageHeader';
79
80
  export type { SettingsPageHeaderProps } from './N8nSettingsPageHeader';
80
81
  export { default as N8nSettingsRow } from './N8nSettingsRow';
81
82
  export type { SettingsRowProps, SettingsRowLayout } from './N8nSettingsRow';
83
+ export { default as N8nSettingsRowButton } from './N8nSettingsRowButton';
84
+ export type { SettingsRowButtonProps } from './N8nSettingsRowButton';
82
85
  export { default as N8nSettingsRowConfigure } from './N8nSettingsRowConfigure';
83
86
  export type { SettingsRowConfigureProps } from './N8nSettingsRowConfigure';
84
87
  export { default as N8nSettingsRowGroup } from './N8nSettingsRowGroup';
@@ -319,23 +319,30 @@
319
319
  --shadow--xl: 0 20px 25px -5px var(--shadow-color), 0 8px 10px -6px var(--shadow-color);
320
320
  }
321
321
 
322
- /** Redefine this primitive overrides here because Lightning CSS doesnt like light-dark in .scss files **/
322
+ /** Redefine these primitives because Lightning CSS does not support light-dark() in SCSS. **/
323
323
  @mixin dark-theme-overrides {
324
324
  --shadow-color: var(--color--black-alpha-250);
325
325
  --shadow-color--outline: var(--color--white-alpha-100);
326
+
327
+ /** Recompute these values in the scope that defines the dark shadow colors. **/
328
+ --shadow--outline: 0 0 0 1px var(--shadow-color--outline);
329
+ --shadow--2xs: 0 1px var(--shadow-color);
330
+ --shadow--xs: 0 1px 3px -1px var(--shadow-color);
331
+ --shadow--sm: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -2px var(--shadow-color);
332
+ --shadow--md: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -4px var(--shadow-color);
333
+ --shadow--xl: 0 20px 25px -5px var(--shadow-color), 0 8px 10px -6px var(--shadow-color);
326
334
  }
327
335
 
328
336
  :root {
329
337
  @include primitives;
338
+ }
330
339
 
331
- /** Make sure that media query preceeds [data-theme] as MacOS theme can override attribute specificity **/
332
- @media (prefers-color-scheme: dark) {
333
- body:not([data-theme]) {
334
- @include dark-theme-overrides;
335
- }
336
- }
340
+ body[data-theme='dark'] {
341
+ @include dark-theme-overrides;
342
+ }
337
343
 
338
- [data-theme='dark'] {
344
+ @media (prefers-color-scheme: dark) {
345
+ body:not([data-theme]) {
339
346
  @include dark-theme-overrides;
340
347
  }
341
348
  }
@@ -668,9 +668,9 @@
668
668
  --background--disabled: var(--color--neutral-800);
669
669
 
670
670
  /* stylelint-disable @n8n/css-var-naming */
671
- --border-color: var(--border-color-base, var(--color--white-alpha-100));
671
+ --border-color: var(--border-color-base, var(--color--white-alpha-150));
672
672
  /* stylelint-enable @n8n/css-var-naming */
673
- --border-color--subtle: var(--color--white-alpha-50);
673
+ --border-color--subtle: var(--color--white-alpha-100);
674
674
  --border-color--strong: var(--color--white-alpha-200);
675
675
  --border-color--stronger: var(--color--white-alpha-400);
676
676
 
@@ -13,10 +13,7 @@
13
13
  overflow: hidden;
14
14
  border-radius: var(--popover-content--radius, var(--radius--xs));
15
15
  background-color: var(--background--surface);
16
- --shadow-color--outline: var(--border-color);
17
- box-shadow:
18
- var(--shadow--md),
19
- inset var(--shadow--outline);
16
+ box-shadow: var(--shadow--md), var(--shadow--outline);
20
17
  will-change: transform, opacity;
21
18
  transform-origin: var(--n8n--popover--offset--origin-x) var(--n8n--popover--offset--origin-y);
22
19
 
@@ -1,6 +1,12 @@
1
1
  import { i as e } from "./plugin-DT0YTbz-.js";
2
2
  //#region src/locale/lang/en.ts
3
3
  var t = /* @__PURE__ */ e({ default: () => n }), n = {
4
+ "approvalCard.alwaysAllow": "Always allow",
5
+ "approvalCard.alwaysAllowSuffix": "during this session",
6
+ "approvalCard.allowOnce": "Allow once",
7
+ "approvalCard.deny": "Deny",
8
+ "approvalCard.allowed": "Allowed",
9
+ "approvalCard.denied": "Denied",
4
10
  "setupPanel.label": "Workflow setup",
5
11
  "setupPanel.back": "Back to setup checklist",
6
12
  "setupPanel.complete": "Complete",
@@ -222,6 +228,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = {
222
228
  "collapsiblePanel.expand": "Expand",
223
229
  "collapsiblePanel.dragToReorder": "Drag to reorder",
224
230
  "collapsiblePanel.delete": "Delete",
231
+ "combobox.loading": "Searching",
225
232
  "combobox.clearSelection": "Clear selection",
226
233
  "combobox.showPopup": "Show popup",
227
234
  "combobox.placeholder": "Select an option",
@@ -248,7 +255,7 @@ var t = /* @__PURE__ */ e({ default: () => n }), n = {
248
255
  "markdownEditor.expand": "Expand editor",
249
256
  "markdownEditor.collapse": "Collapse editor",
250
257
  "markdownEditor.openExpandedView": "Expand editor",
251
- "markdownEditor.closeExpandedView": "Collapse editor",
258
+ "markdownEditor.closeExpandedView": "Close editor",
252
259
  "markdownEditor.expandedViewTitle": "Markdown editor",
253
260
  "markdownEditor.linkDialogTitle": "Add link",
254
261
  "markdownEditor.linkUrl": "Link URL",