forked from metabase/metabase
-
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
Showing
9 changed files
with
5,388 additions
and
184 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 |
---|---|---|
|
@@ -57,6 +57,7 @@ | |
/screenshots | ||
/sqlite.db | ||
/stats.json | ||
/storybook-static | ||
/target | ||
/test-report-* | ||
\#*\# | ||
|
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,19 @@ | ||
const appConfig = require("../webpack.config"); | ||
|
||
module.exports = { | ||
core: { | ||
builder: "webpack5", | ||
}, | ||
stories: [ | ||
"../frontend/**/*.stories.mdx", | ||
"../frontend/**/*.stories.@(js|jsx|ts|tsx)", | ||
], | ||
addons: ["@storybook/addon-links", "@storybook/addon-essentials"], | ||
webpackFinal: storybookConfig => ({ | ||
...storybookConfig, | ||
resolve: { | ||
...storybookConfig.resolve, | ||
alias: appConfig.resolve.alias, | ||
}, | ||
}), | ||
}; |
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,9 @@ | ||
export const parameters = { | ||
actions: { argTypesRegex: "^on[A-Z].*" }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
}; |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
frontend/src/metabase/components/TextInput/TextInput.stories.jsx
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,14 @@ | ||
import React, { useState } from "react"; | ||
import TextInput from "./TextInput"; | ||
|
||
export default { | ||
title: "Components/TextInput", | ||
component: TextInput, | ||
}; | ||
|
||
export const Default = args => { | ||
const [value, setValue] = useState(""); | ||
return <TextInput {...args} value={value} onChange={setValue} />; | ||
}; | ||
|
||
Default.args = { hasClearButton: false }; |
File renamed without changes.
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 @@ | ||
export { default } from "./TextInput"; |
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
Oops, something went wrong.