Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tooltip component #118

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"npmClient": "yarn",
"packages": ["packages/*"],
"version": "0.1.0"
"version": "1.0.0-alpha.0"
}
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mittwald/flow-next-components",
"version": "0.1.0",
"version": "1.0.0-alpha.0",
"type": "module",
"exports": {
"./Button": "./dist/Button.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Image } from "@/components/Image";
import { dummyText } from "@/lib/dev/dummyText";

const meta: Meta<typeof Avatar> = {
title: "Avatar",
title: "Content/Avatar",
component: Avatar,
render: (props) => (
<Avatar {...props}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Avatar> = {
...defaultMeta,
title: "Avatar/Variants",
title: "Content/Avatar/Variants",
};
export default meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Icon } from "@/components/Icon";
import { Text } from "@/components/Text";

const meta: Meta<typeof Badge> = {
title: "Badge",
title: "Status/Badge",
component: Badge,
argTypes: {
variant: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { dummyText } from "@/lib/dev/dummyText";

const meta: Meta<typeof Badge> = {
...defaultMeta,
title: "Badge/EdgeCases",
title: "Status/Badge/EdgeCases",
};
export default meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from "react";

const meta: Meta<typeof Badge> = {
...defaultMeta,
title: "Badge/Variants",
title: "Status/Badge/Variants",
};
export default meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Text } from "@/components/Text";
import { action } from "@storybook/addon-actions";

const meta: Meta<typeof Button> = {
title: "Button",
title: "Buttons/Button",
component: Button,
args: {
onPress: action("onPress"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Button> = {
...defaultMeta,
title: "Button/Edge Cases",
title: "Buttons/Button/Edge Cases",
};
export default meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Button> = {
...defaultMeta,
title: "Button/Variants",
title: "Buttons/Button/Variants",
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from "react";
import { action } from "@storybook/addon-actions";

const meta: Meta<typeof Checkbox> = {
title: "Checkbox",
title: "Forms/Checkbox",
component: Checkbox,
args: {
onChange: action("onChange"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import defaultMeta from "./Default.stories";
import { dummyText } from "@/lib/dev/dummyText";

const meta: Meta<typeof Checkbox> = {
title: "Checkbox/EdgeCases",
title: "Forms/Checkbox/EdgeCases",
...defaultMeta,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Content from "../Content";
import React from "react";

const meta: Meta<typeof Content> = {
title: "Content",
title: "Content/Content",
component: Content,
argTypes: {
elementType: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Heading from "../Heading";
import React from "react";

const meta: Meta<typeof Heading> = {
title: "Heading",
title: "Content/Heading",
component: Heading,
argTypes: {
level: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Heading> = {
...defaultMeta,
title: "Heading/Levels",
title: "Content/Heading/Levels",
component: Heading,
};
export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { faStar } from "@fortawesome/free-regular-svg-icons/faStar";
import React from "react";

const meta: Meta<typeof Icon> = {
title: "Icon",
title: "Content/Icon",
component: Icon,
args: {
fontSize: 32,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from "react";
import { dummyText } from "@/lib/dev/dummyText";

const meta: Meta<typeof Image> = {
title: "Image",
title: "Content/Image",
component: Image,
render: (props) => <Image {...props} alt="Gopher" src={dummyText.imageSrc} />,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Initials from "../Initials";
import React from "react";

const meta: Meta<typeof Initials> = {
title: "Initials",
title: "Content/Initials",
component: Initials,
render: (props) => <Initials {...props}>Max Mustermann</Initials>,
parameters: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Initials> = {
...defaultMeta,
title: "Initials/Variants",
title: "Content/Initials/Variants",
};
export default meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Label from "../Label";
import React from "react";

const meta: Meta<typeof Label> = {
title: "Label",
title: "Content/Label",
component: Label,
render: (props) => <Label {...props}>Label</Label>,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { action } from "@storybook/addon-actions";
import React from "react";

const meta: Meta<typeof Link> = {
title: "Link",
title: "Navigation/Link",
component: Link,
args: {
onPress: action("onPress"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Text } from "@/components/Text";
import { Navigation, NavigationItem } from "@/components/Navigation";

const meta: Meta<typeof Navigation> = {
title: "Navigation",
title: "Navigation/Navigation",
component: Navigation,
parameters: {
controls: { exclude: ["className"] },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Icon } from "@/components/Icon";
import { faEnvelope } from "@fortawesome/free-regular-svg-icons";

const meta: Meta<typeof Note> = {
title: "Note",
title: "Status/Note",
component: Note,
argTypes: {
variant: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Note> = {
...defaultMeta,
title: "Note/Edge Cases",
title: "Status/Note/Edge Cases",
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Note> = {
...defaultMeta,
title: "Note/Variants",
title: "Status/Note/Variants",
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { action } from "@storybook/addon-actions";
import { FieldError } from "@/components/FieldError";

const meta: Meta<typeof RadioGroup> = {
title: "RadioGroup",
title: "Forms/RadioGroup",
component: RadioGroup,
args: {
onChange: action("onChange"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { dummyText } from "@/lib/dev/dummyText";
import defaultMeta from "./Default.stories";

const meta: Meta<typeof RadioGroup> = {
title: "RadioGroup/EdgeCases",
title: "Forms/RadioGroup/EdgeCases",
...defaultMeta,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
import StatusIcon from "../StatusIcon";

const meta: Meta<typeof StatusIcon> = {
title: "StatusIcon",
title: "Status/StatusIcon",
component: StatusIcon,
argTypes: {
variant: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from "react";
import { action } from "@storybook/addon-actions";

const meta: Meta<typeof Switch> = {
title: "Switch",
title: "Forms/Switch",
component: Switch,
args: {
onChange: action("onChange"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Switch> = {
...defaultMeta,
title: "Switch/Edge Cases",
title: "Forms/Switch/Edge Cases",
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import defaultMeta from "./Default.stories";

const meta: Meta<typeof Switch> = {
...defaultMeta,
title: "Switch/Variants",
title: "Forms/Switch/Variants",
args: { defaultSelected: true },
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Text from "../Text";
import React from "react";

const meta: Meta<typeof Text> = {
title: "Text",
title: "Content/Text",
component: Text,
argTypes: {
elementType: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import FieldDescription from "@/components/FieldDescription/FieldDescription";
import { FieldError } from "@/components/FieldError";

const meta: Meta<typeof TextArea> = {
title: "TextArea",
title: "Forms/TextArea",
component: TextArea,
render: (props) => (
<TextArea onChange={action("onChange")} {...props}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Button } from "@/components/Button";
import { FieldError } from "@/components/FieldError";

const meta: Meta<typeof TextField> = {
title: "TextField",
title: "Forms/TextField",
component: TextField,
render: (props) => (
<TextField onChange={action("onChange")} {...props}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Icon } from "@/components/Icon";
import { faCopy } from "@fortawesome/free-regular-svg-icons/faCopy";

const meta: Meta<typeof Tooltip> = {
title: "Tooltip",
title: "Overlays/Tooltip",
component: Tooltip,
render: () => (
<TooltipTrigger>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { dummyText } from "@/lib/dev/dummyText";

const meta: Meta<typeof Tooltip> = {
...defaultMeta,
title: "Tooltip/Edge Cases",
title: "Overlays/Tooltip/Edge Cases",
render: () => (
<TooltipTrigger>
<Button aria-label="copy">
Expand Down
2 changes: 1 addition & 1 deletion packages/design-tokens/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mittwald/flow-next-design-tokens",
"version": "0.1.0",
"version": "1.0.0-alpha.0",
"type": "module",
"exports": {
".": "./dist/variables.css"
Expand Down
2 changes: 1 addition & 1 deletion packages/stylesheet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mittwald/flow-next-stylesheet",
"version": "0.1.0",
"version": "1.0.0-alpha.0",
"type": "module",
"exports": {
".": "./dist/style.css"
Expand Down