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

feat: components #33

Merged
merged 27 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
01bf03e
fill in skeleton for storybook
jared-dickman Dec 26, 2023
7037ade
add generated checkbox stories
jared-dickman Dec 27, 2023
2f83380
update args for checkbox
jared-dickman Dec 27, 2023
7f5e841
add generated radio stories
jared-dickman Dec 27, 2023
27e897f
add generated divider stories
jared-dickman Dec 27, 2023
d637cfe
change button usage from copy to children and add button stories
jared-dickman Dec 27, 2023
3f7f616
add generated breadcrumb stories
jared-dickman Dec 27, 2023
44d1019
add generated switch stories
jared-dickman Dec 27, 2023
d266601
add generated input stories
jared-dickman Dec 28, 2023
83bcb81
update icon
jared-dickman Dec 28, 2023
7979b9c
add generated float button stories
jared-dickman Dec 28, 2023
f01a6b2
add generated flex stories
jared-dickman Dec 28, 2023
731f267
add argTypes for string
jared-dickman Dec 28, 2023
9a7cf0e
generate stories for InputNumber
jared-dickman Dec 28, 2023
d8c5408
add generated Space stories
jared-dickman Dec 28, 2023
df964ef
update primary story syntax
jared-dickman Dec 28, 2023
f23e0ab
implementing notification component with stories
jared-dickman Dec 28, 2023
a5f6fa2
fix issue with Segmented prop type
jared-dickman Dec 28, 2023
3e91deb
remove erroneous component
jared-dickman Dec 28, 2023
38b41af
add message component and stories, touchup notification
jared-dickman Dec 28, 2023
7826389
add generated List stories
jared-dickman Dec 28, 2023
82227dc
add generated Empty stories
jared-dickman Dec 28, 2023
b83e924
add icon component wrapping fontAwesome
jared-dickman Dec 29, 2023
56076b7
add generated Upload stories
jared-dickman Dec 29, 2023
165e857
add radio sub classes
jared-dickman Jan 2, 2024
7e7fdf2
update Segmented props
jared-dickman Jan 2, 2024
f1527b9
Merge remote-tracking branch 'origin/main' into feat/components
jared-dickman Jan 4, 2024
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
12,418 changes: 3,497 additions & 8,921 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@
"tokens-to-css": "npx style-dictionary build --config ./style-dictionary.json"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "6.5.1",
"@fortawesome/free-solid-svg-icons": "6.5.1",
"@fortawesome/react-fontawesome": "0.2.0",
"antd": "5.12.1",
"react": "18.2.0",
"typescript": "5.3.2"
}
}
}
19 changes: 19 additions & 0 deletions src/components/data-display/Avatar/Avatar.stories.tsx
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 { Avatar } from "src/components/data-display/Avatar/Avatar";

const meta: Meta<typeof Avatar> = {
title: "Aquarium/Data Display/Avatar",
component: Avatar,

args: {},
};
export default meta;


type Story = StoryObj<typeof Avatar>



export const Primary: Story = {
};
12 changes: 12 additions & 0 deletions src/components/data-display/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";
import { Avatar as AntAvatar } from "antd";
import { AvatarProps as AntAvatarProps } from "antd";

export interface IAvatarProps extends AntAvatarProps {
}

export const Avatar = (props: IAvatarProps) => {
return <>
<AntAvatar {...props}/>
</>;
};
19 changes: 19 additions & 0 deletions src/components/data-display/Badge/Badge.stories.tsx
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 { Badge } from "src/components/data-display/Badge/Badge";

const meta: Meta<typeof Badge> = {
title: "Aquarium/Data Display/Badge",
component: Badge,

args: {},
};
export default meta;


type Story = StoryObj<typeof Badge>



export const Primary: Story = {
};
12 changes: 12 additions & 0 deletions src/components/data-display/Badge/Badge.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";
import { Badge as AntBadge } from "antd";
import { BadgeProps as AntBadgeProps } from "antd";

export interface IBadgeProps extends AntBadgeProps {
}

export const Badge = (props: IBadgeProps) => {
return <>
<AntBadge {...props}/>
</>;
};
19 changes: 19 additions & 0 deletions src/components/data-display/Calendar/Calendar.stories.tsx
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 { Calendar } from "src/components/data-display/Calendar/Calendar";

const meta: Meta<typeof Calendar> = {
title: "Aquarium/Data Display/Calendar",
component: Calendar,

args: {},
};
export default meta;


type Story = StoryObj<typeof Calendar>



export const Primary: Story = {
};
12 changes: 12 additions & 0 deletions src/components/data-display/Calendar/Calendar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";
import { Calendar as AntCalendar } from "antd";
import { CalendarProps as AntCalendarProps } from "antd";

export interface ICalendarProps extends AntCalendarProps {
}

export const Calendar = (props: ICalendarProps) => {
return <>
<AntCalendar {...props}/>
</>;
};
19 changes: 19 additions & 0 deletions src/components/data-display/Card/Card.stories.tsx
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 { Card } from "src/components/data-display/Card/Card";

const meta: Meta<typeof Card> = {
title: "Aquarium/Data Display/Card",
component: Card,

args: {},
};
export default meta;


type Story = StoryObj<typeof Card>



export const Primary: Story = {
};
12 changes: 12 additions & 0 deletions src/components/data-display/Card/Card.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";
import { Card as AntCard } from "antd";
import { CardProps as AntCardProps } from "antd";

export interface ICardProps extends AntCardProps {
}

export const Card = (props: ICardProps) => {
return <>
<AntCard {...props}/>
</>;
};
19 changes: 19 additions & 0 deletions src/components/data-display/Carousel/Carousel.stories.tsx
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 { Carousel } from "src/components/data-display/Carousel/Carousel";

const meta: Meta<typeof Carousel> = {
title: "Aquarium/Data Display/Carousel",
component: Carousel,

args: {},
};
export default meta;


type Story = StoryObj<typeof Carousel>



export const Primary: Story = {
};
12 changes: 12 additions & 0 deletions src/components/data-display/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";
import { Carousel as AntCarousel } from "antd";
import { CarouselProps as AntCarouselProps } from "antd";

export interface ICarouselProps extends AntCarouselProps {
}

export const Carousel = (props: ICarouselProps) => {
return <>
<AntCarousel {...props}/>
</>;
};
19 changes: 19 additions & 0 deletions src/components/data-display/Collapse/Collapse.stories.tsx
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 { Collapse } from "src/components/data-display/Collapse/Collapse";

const meta: Meta<typeof Collapse> = {
title: "Aquarium/Data Display/Collapse",
component: Collapse,

args: {},
};
export default meta;


type Story = StoryObj<typeof Collapse>



export const Primary: Story = {
};
12 changes: 12 additions & 0 deletions src/components/data-display/Collapse/Collapse.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";
import { Collapse as AntCollapse } from "antd";
import { CollapseProps as AntCollapseProps } from "antd";

export interface ICollapseProps extends AntCollapseProps {
}

export const Collapse = (props: ICollapseProps) => {
return <>
<AntCollapse {...props}/>
</>;
};
19 changes: 19 additions & 0 deletions src/components/data-display/Descriptions/Descriptions.stories.tsx
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 { Descriptions } from "src/components/data-display/Descriptions/Descriptions";

const meta: Meta<typeof Descriptions> = {
title: "Aquarium/Data Display/Descriptions",
component: Descriptions,

args: {},
};
export default meta;


type Story = StoryObj<typeof Descriptions>



export const Primary: Story = {
};
12 changes: 12 additions & 0 deletions src/components/data-display/Descriptions/Descriptions.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";
import { Descriptions as AntDescriptions } from "antd";
import { DescriptionsProps as AntDescriptionsProps } from "antd";

export interface IDescriptionsProps extends AntDescriptionsProps {
}

export const Descriptions = (props: IDescriptionsProps) => {
return <>
<AntDescriptions {...props}/>
</>;
};
80 changes: 80 additions & 0 deletions src/components/data-display/Empty/Empty.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import * as React from "react";
import { Meta } from "@storybook/react";
import { StoryObj } from "@storybook/react";
import { Empty } from "src/components/data-display/Empty/Empty";

const meta: Meta<typeof Empty> = {
title: "Aquarium/Data Display/Empty",
component: Empty,

args: {
description: "Default Message",
image: Empty.PRESENTED_IMAGE_DEFAULT,
imageStyle: undefined,
},
};
export default meta;


type Story = StoryObj<typeof Empty>

/*
Initial story templates generated by AI.
Customize the stories based on specific requirements.
*/

export const Primary: Story = {};

export const CustomDescription: Story = {
args: {
description: "Custom description for empty state",
},
};

export const CustomImageStyle: Story = {
args: {
imageStyle: { width: "60px", height: "60px" },
},
};

export const NoImage: Story = {
args: {
image: null,
},
};

export const AltImage: Story = {
args: {
image: Empty.PRESENTED_IMAGE_SIMPLE,
},
};

export const CustomDescriptionAndImage: Story = {
args: {
description: <>
<p>This is a custom description for the empty state.</p>
<b>Feel free to add <i>formatted</i> content here.</b>
</>,
imageStyle: { width: "200px", height: "200px" },
},
};

export const NoDescription: Story = {
args: {
description: "",
},
};

export const CustomImageAndStyle: Story = {
args: {
description: "No data available",
imageStyle: { borderRadius: "50%", boxShadow: "0 0 10px rgba(0, 0, 0, 0.2)" },
},
};

export const NoImageAndNoDescription: Story = {
args: {
description: null,
image: null,
},
};
15 changes: 15 additions & 0 deletions src/components/data-display/Empty/Empty.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from "react";
import { Empty as AntEmpty } from "antd";
import { EmptyProps as AntEmptyProps } from "antd";

export interface IEmptyProps extends AntEmptyProps {
}

export const Empty = (props: IEmptyProps) => {
return <>
<AntEmpty {...props}/>
</>;
};

Empty.PRESENTED_IMAGE_DEFAULT = AntEmpty.PRESENTED_IMAGE_DEFAULT;
Empty.PRESENTED_IMAGE_SIMPLE = AntEmpty.PRESENTED_IMAGE_SIMPLE;
19 changes: 19 additions & 0 deletions src/components/data-display/Image/Image.stories.tsx
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 { Image } from "src/components/data-display/Image/Image";

const meta: Meta<typeof Image> = {
title: "Aquarium/Data Display/Image",
component: Image,

args: {},
};
export default meta;


type Story = StoryObj<typeof Image>



export const Primary: Story = {
};
12 changes: 12 additions & 0 deletions src/components/data-display/Image/Image.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";
import { Image as AntImage } from "antd";
import { ImageProps as AntImageProps } from "antd";

export interface IImageProps extends AntImageProps {
}

export const Image = (props: IImageProps) => {
return <>
<AntImage {...props}/>
</>;
};
Loading