chore: lift components folder

This commit is contained in:
Eric Liu 2020-07-19 09:06:08 -07:00
commit 2200b29b92
301 changed files with 57 additions and 76 deletions

View file

@ -1,60 +0,0 @@
import { withKnobs, select, text } from "@storybook/addon-knobs";
import Component from "./Tooltip.Story.svelte";
export default { title: "Tooltip", decorators: [withKnobs] };
const directions = {
"Top (top)": "top",
"Right (right)": "right",
"Bottom (bottom)": "bottom",
"Left (left)": "left",
};
export const Default = () => ({
Component,
props: {
direction: select("Tooltip direction (direction)", directions, "bottom"),
triggerText: text("Trigger text (triggerText)", "Tooltip label"),
tabindex: text("Tab index (tabindex in <Tooltip>)", "0"),
},
});
export const NoIcon = () => ({
Component,
props: {
story: "no icon",
hideIcon: true,
direction: select("Tooltip direction (direction)", directions, "bottom"),
triggerText: text("Trigger text (triggerText)", "Tooltip label"),
tabindex: text("Tab index (tabindex in <Tooltip>)", "0"),
},
});
export const CustomIcon = () => ({
Component,
props: {
story: "custom icon",
showIcon: true,
direction: select("Tooltip direction (direction)", directions, "bottom"),
triggerText: text("Trigger text (triggerText)", "Tooltip label"),
tabindex: text("Tab index (tabindex in <Tooltip>)", "0"),
},
});
export const CustomIconOnly = () => ({
Component,
props: {
story: "custom icon only",
direction: select("Tooltip direction (direction)", directions, "bottom"),
iconDescription: "Helpful Information",
tabindex: text("Tab index (tabindex in <Tooltip>)", "0"),
},
});
export const UncontrolledTooltip = () => ({
Component,
props: {
story: "uncontrolled",
direction: select("Tooltip direction (direction)", directions, "bottom"),
},
});