-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60c747b
commit a99e50a
Showing
7 changed files
with
17,652 additions
and
10,482 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
"stories": [ | ||
"../src/**/*.stories.mdx", | ||
"../src/**/*.stories.@(js|jsx|ts|tsx)" | ||
], | ||
"addons": [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials" | ||
] | ||
} |
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,5 @@ | ||
import '../style/output.css' | ||
|
||
export const parameters = { | ||
actions: { argTypesRegex: '^on[A-Z].*' }, | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React, { useState } from 'react' | ||
|
||
import { Story, Meta } from '@storybook/react/types-6-0' | ||
|
||
import Alert, { AlertProps } from '../Alert' | ||
|
||
export default { | ||
title: 'Alert', | ||
component: Alert, | ||
} as Meta | ||
|
||
const Template: Story<AlertProps> = (args) => <Alert {...args} /> | ||
|
||
export const Neutral = Template.bind({}) | ||
Neutral.args = { | ||
children: 'This is a neutral alert.', | ||
} | ||
|
||
export const Success = Template.bind({}) | ||
Success.args = { | ||
children: 'Success! Check your email to validate your account.', | ||
type: 'success', | ||
} | ||
|
||
export const Warning = Template.bind({}) | ||
Warning.args = { | ||
children: 'Oops! Looks like you forgot something.', | ||
type: 'warning', | ||
} | ||
|
||
export const Danger = Template.bind({}) | ||
Danger.args = { | ||
children: 'Something went wrong. Try again later.', | ||
type: 'danger', | ||
} | ||
|
||
export const Info = Template.bind({}) | ||
Info.args = { | ||
children: 'You can always change you name in your profile.', | ||
type: 'info', | ||
} | ||
|
||
export const WithoutClose = Template.bind({}) | ||
WithoutClose.args = { | ||
type: 'success', | ||
children: "This alert doesn't have a close button.", | ||
onClose: undefined, | ||
} |
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,10 @@ | ||
const windmill = require('../config') | ||
|
||
module.exports = windmill({ | ||
purge: [], | ||
theme: { | ||
extend: {}, | ||
}, | ||
variants: {}, | ||
plugins: [], | ||
}) |
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,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |