-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/undo-redo
* master: 📚 Update CHANGELOG.md and main package.json to 0.206.0 🔖 Release n8n@0.206.0 ⬆️ Set n8n-core@0.146.0, n8n-editor-ui@0.172.0, n8n-nodes-base@0.204.0 and n8n-workflow@0.128.0 on n8n 🔖 Release n8n-editor-ui@0.172.0 ⬆️ Set n8n-design-system@0.46.0 and n8n-workflow@0.128.0 on n8n-editor-ui 🔖 Release n8n-design-system@0.46.0 🔖 Release n8n-nodes-base@0.204.0 ⬆️ Set n8n-core@0.146.0 and n8n-workflow@0.128.0 on n8n-nodes-base 🔖 Release n8n-node-dev@0.85.0 ⬆️ Set n8n-core@0.146.0 and n8n-workflow@0.128.0 on n8n-node-dev 🔖 Release n8n-core@0.146.0 ⬆️ Set n8n-workflow@0.128.0 on n8n-core 🔖 Release n8n-workflow@0.128.0 fix: Make `nodes.exclude` and `nodes.include` work with lazy-loaded nodes (#4833) ci: Use multiple jobs for publishing various docker images (#4837) feat(editor): Alert design system component (#4834)
- Loading branch information
Showing
19 changed files
with
477 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
packages/design-system/src/components/N8nAlert/Alert.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import type { StoryFn } from '@storybook/vue'; | ||
import N8nAlert from './Alert.vue'; | ||
import N8nIcon from '../N8nIcon'; | ||
|
||
export default { | ||
title: 'Atoms/Alert', | ||
component: N8nAlert, | ||
argTypes: { | ||
type: { | ||
type: 'select', | ||
options: ['success', 'info', 'warning', 'error'], | ||
}, | ||
effect: { | ||
type: 'select', | ||
options: ['light', 'dark'], | ||
}, | ||
}, | ||
}; | ||
|
||
const Template: StoryFn = (args, { argTypes }) => ({ | ||
props: Object.keys(argTypes), | ||
components: { | ||
N8nAlert, | ||
}, | ||
template: | ||
'<div style="position: relative; width: 100%; height: 300px;"><n8n-alert v-bind="$props"><template #aside>custom content slot</template></n8n-alert></div>', | ||
}); | ||
|
||
export const ContentAsProps = Template.bind({}); | ||
ContentAsProps.args = { | ||
type: 'info', | ||
effect: 'light', | ||
title: 'Alert title', | ||
description: 'Alert description', | ||
center: false, | ||
showIcon: true, | ||
background: true, | ||
}; | ||
|
||
const TemplateForSlots: StoryFn = (args, { argTypes }) => ({ | ||
props: Object.keys(argTypes), | ||
components: { | ||
N8nAlert, | ||
N8nIcon, | ||
}, | ||
template: `<div style="position: relative; width: 100%; height: 300px;"> | ||
<n8n-alert v-bind="$props"> | ||
<template #title>Title</template> | ||
<template>Description</template> | ||
<template #aside><button>Button</button></template> | ||
<template #icon> | ||
<n8n-icon icon="grin-stars" size="xlarge" /> | ||
</template> | ||
</n8n-alert> | ||
</div>`, | ||
}); | ||
|
||
export const ContentInSlots = TemplateForSlots.bind({}); | ||
ContentInSlots.args = { | ||
type: 'info', | ||
effect: 'light', | ||
center: false, | ||
background: true, | ||
showIcon: false, | ||
}; |
Oops, something went wrong.