-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Organize component directories by type (#16)
- Loading branch information
1 parent
ef5cb1b
commit 6ad046d
Showing
26 changed files
with
147 additions
and
29 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
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import React from "react"; | ||
import { Popover } from "src/components/data-display/Popover/Popover"; | ||
import { IPopoverProps } from "src/components/data-display/Popover/Popover"; | ||
import { Meta } from "@storybook/react"; | ||
import { StoryObj } from "@storybook/react"; | ||
import { Button } from "src/components/general/Button/Button"; | ||
|
||
const meta: Meta<typeof Popover> = { | ||
title: "Aquarium/Data Entry/Popover", | ||
component: Popover, | ||
|
||
args: {}, | ||
}; | ||
export default meta; | ||
|
||
|
||
type Story = StoryObj<typeof Popover> | ||
|
||
const PrimaryTemplate = (args: IPopoverProps) => { | ||
|
||
const content = ( | ||
<div> | ||
<p>Content</p> | ||
</div>); | ||
|
||
return <> | ||
<Popover content={content} title="Title" trigger={args.trigger}> | ||
<Button copy={args.children + ""}/> | ||
</Popover> | ||
</>; | ||
}; | ||
|
||
|
||
export const Primary: Story = { | ||
args: { trigger: "click", children: "Click Me" }, | ||
render: PrimaryTemplate, | ||
}; | ||
|
||
export const Hover: Story = { | ||
args: { trigger: "hover", children: "Hover Me" }, | ||
render: PrimaryTemplate, | ||
}; | ||
|
||
export const Focus: Story = { | ||
args: { trigger: "focus", children: "Focus Me" }, | ||
render: PrimaryTemplate, | ||
}; |
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,12 @@ | ||
import React from "react"; | ||
import { Popover as AntPopover } from "antd"; | ||
import { PopoverProps as AntPopoverProps } from "antd"; | ||
|
||
export interface IPopoverProps extends AntPopoverProps { | ||
} | ||
|
||
export const Popover = (props: IPopoverProps) => { | ||
return <> | ||
<AntPopover {...props}/> | ||
</>; | ||
}; |
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ponents/DatePicker/DatePicker.stories.tsx → ...a-entry/DatePicker/DatePicker.stories.tsx
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/components/Input/Input.stories.tsx → ...onents/data-entry/Input/Input.stories.tsx
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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
src/components/Modal/Modal.stories.tsx → ...mponents/feedback/Modal/Modal.stories.tsx
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/components/Result/Result.stories.tsx → ...onents/feedback/Result/Result.stories.tsx
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/components/Skeleton/Skeleton.stories.tsx → ...ts/feedback/Skeleton/Skeleton.stories.tsx
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/components/Button/Button.stories.tsx → ...ponents/general/Button/Button.stories.tsx
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
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,19 @@ | ||
import { Meta } from "@storybook/react"; | ||
import { StoryObj } from "@storybook/react"; | ||
import { Flex } from "src/components/layout/Flex/Flex"; | ||
|
||
const meta: Meta<typeof Flex> = { | ||
title: "Aquarium/Feedback/Flex", | ||
component: Flex, | ||
|
||
args: {}, | ||
}; | ||
export default meta; | ||
|
||
|
||
type Story = StoryObj<typeof Flex> | ||
|
||
|
||
|
||
export const Primary: Story = { | ||
}; |
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,12 @@ | ||
import React from "react"; | ||
import { Flex as AntFlex } from "antd"; | ||
import { FlexProps as AntFlexProps } from "antd"; | ||
|
||
export interface IFlexProps extends AntFlexProps { | ||
} | ||
|
||
export const Flex = (props: IFlexProps) => { | ||
return <> | ||
<AntFlex {...props}/> | ||
</>; | ||
}; |
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,18 @@ | ||
import { Meta } from "@storybook/react"; | ||
import { StoryObj } from "@storybook/react"; | ||
import { Space } from "src/components/layout/Space/Space"; | ||
|
||
const meta: Meta<typeof Space> = { | ||
title: "Aquarium/Feedback/Space", | ||
component: Space, | ||
|
||
args: {}, | ||
}; | ||
export default meta; | ||
|
||
|
||
type Story = StoryObj<typeof Space> | ||
|
||
|
||
export const Primary: Story = { | ||
}; |
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,12 @@ | ||
import React from "react"; | ||
import { Space as AntSpace } from "antd"; | ||
import { SpaceProps as AntSpaceProps } from "antd"; | ||
|
||
export interface ISpaceProps extends AntSpaceProps { | ||
} | ||
|
||
export const Space = (props: ISpaceProps) => { | ||
return <> | ||
<AntSpace {...props}/> | ||
</>; | ||
}; |
4 changes: 2 additions & 2 deletions
4
src/components/Dropdown/Dropdown.stories.tsx → .../navigation/Dropdown/Dropdown.stories.tsx
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
File renamed without changes.