forked from asyncapi/studio
-
Notifications
You must be signed in to change notification settings - Fork 0
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
9f91a5f
commit d2ae2e3
Showing
9 changed files
with
121 additions
and
104 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import { StoryObj, Meta } from '@storybook/react' | ||
|
||
import { TextInput } from '@asyncapi/studio-ui' | ||
|
||
const meta: Meta<typeof TextInput> = { | ||
component: TextInput, | ||
} | ||
|
||
export default meta | ||
type Story = StoryObj<typeof TextInput> | ||
|
||
export const Default: Story = { | ||
args: { | ||
placeholder: "Enter some text....", | ||
}, | ||
parameters: { | ||
backgrounds: { default: 'light' }, | ||
}, | ||
} | ||
|
||
|
||
export const WithInitialValue: Story = { | ||
args: { | ||
...Default.args, | ||
value: 'Initial Value', | ||
}, | ||
parameters: { | ||
backgrounds: { default: 'light' }, | ||
}, | ||
}; | ||
|
||
export const Numeric: Story = { | ||
args: { | ||
...Default.args, | ||
type: 'number', | ||
}, | ||
parameters: { | ||
backgrounds: { default: 'light' }, | ||
}, | ||
}; | ||
|
||
|
||
export const Email: Story = { | ||
args: { | ||
...Default.args, | ||
type: 'email', | ||
}, | ||
parameters: { | ||
backgrounds: { default: 'light' }, | ||
}, | ||
}; | ||
|
||
|
||
export const Disabled: Story = { | ||
args: { | ||
...Default.args, | ||
isDisabled: true, | ||
}, | ||
parameters: { | ||
backgrounds: { default: 'light' }, | ||
}, | ||
}; | ||
|
||
|
||
export const WithCustomClassName: Story = { | ||
args: { | ||
...Default.args, | ||
className: 'w-full', | ||
}, | ||
parameters: { | ||
backgrounds: { default: 'light' }, | ||
}, | ||
}; |
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
const sharedConfig = require('tailwind-config/tailwind.config.js'); | ||
|
||
module.exports = { | ||
content: ["./src/**/*.tsx"], | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
} | ||
content: ['./components/**/*.tsx'], | ||
presets: [sharedConfig], | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './Input' | ||
export * from './TextInput' | ||
export * from './TextArea' | ||
export * from './SelectDropdown' |
17 changes: 0 additions & 17 deletions
17
packages/ui/components/Form/Labels/DescriptionWithLabel.tsx
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
export * from './Label' | ||
export * from './Description' | ||
export * from './DescriptionWithLabel' |