Skip to content

Commit

Permalink
feat(shared/ui/cuhacking/components): create icon stories
Browse files Browse the repository at this point in the history
  • Loading branch information
HasithDeAlwis authored and MFarabi619 committed Nov 21, 2024
1 parent 93520cf commit 7c77678
Showing 1 changed file with 189 additions and 0 deletions.
189 changes: 189 additions & 0 deletions libs/shared/ui/src/cuHacking/components/icon/icon.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
import type { Meta, StoryObj } from '@storybook/react'
import arrow from '@cuhacking/shared/assets/icons/general/arrow-1.svg'
import calendar from '@cuhacking/shared/assets/icons/general/calendar-1.svg'
import chevron_down from '@cuhacking/shared/assets/icons/general/chevron-down-1.svg'
import chevron_up from '@cuhacking/shared/assets/icons/general/chevron-up-1.svg'
import hamburger from '@cuhacking/shared/assets/icons/general/hamburger-1.svg'
import link from '@cuhacking/shared/assets/icons/general/link-1.svg'
import minus from '@cuhacking/shared/assets/icons/general/minus-1.svg'
import phone from '@cuhacking/shared/assets/icons/general/phone-1.svg'
import plus from '@cuhacking/shared/assets/icons/general/plus-1.svg'
import discord_green from '@cuhacking/shared/assets/icons/socials/discord-green-1.svg'
import discord_white from '@cuhacking/shared/assets/icons/socials/discord-white-1.svg'
import docs_green from '@cuhacking/shared/assets/icons/socials/docs-green-1.svg'
import docs_white from '@cuhacking/shared/assets/icons/socials/docs-white-1.svg'
import email_green from '@cuhacking/shared/assets/icons/socials/email-green-1.svg'
import email_white from '@cuhacking/shared/assets/icons/socials/email-white-1.svg'
import figma_green from '@cuhacking/shared/assets/icons/socials/figma-green-1.svg'
import figma_white from '@cuhacking/shared/assets/icons/socials/figma-white-1.svg'
import github_green from '@cuhacking/shared/assets/icons/socials/github-green-1.svg'
import github_white from '@cuhacking/shared/assets/icons/socials/github-white-1.svg'
import instagram_green from '@cuhacking/shared/assets/icons/socials/instagram-green-1.svg'
import instagram_white from '@cuhacking/shared/assets/icons/socials/instagram-white-1.svg'
import linkedin_green from '@cuhacking/shared/assets/icons/socials/linkedin-green-1.svg'
import linkedin_white from '@cuhacking/shared/assets/icons/socials/linkedin-white-1.svg'
import linktree_green from '@cuhacking/shared/assets/icons/socials/linktree-green-1.svg'
import linktree_white from '@cuhacking/shared/assets/icons/socials/linktree-white-1.svg'
import { Icon } from './icon'

const meta = {
title: 'cuHacking Design System/Icon',
component: Icon,
tags: ['autodocs'],
parameters: {
layout: 'centered',
},
} satisfies Meta<typeof Icon>

export default meta
type Story = StoryObj<typeof meta>

export const GitHubGreen: Story = {
args: {
media: { src: github_green.src, alt: 'GitHub Green' },
},
}

export const InstagramGreen: Story = {
args: {
media: { src: instagram_green.src, alt: 'Instagram Green' },
},
}

export const LinkedInGreen: Story = {
args: {
media: { src: linkedin_green.src, alt: 'LinkedIn Green' },
},
}

export const LinktreeGreen: Story = {
args: {
media: { src: linktree_green.src, alt: 'Linktree Green' },
},
}

export const EmailGreen: Story = {
args: {
media: { src: email_green.src, alt: 'Email Green' },
},
}

export const DiscordGreen: Story = {
args: {
media: { src: discord_green.src, alt: 'Discord Green' },
},
}

export const DocsGreen: Story = {
args: {
media: { src: docs_green.src, alt: 'Docs Green' },
},
}

export const FigmaGreen: Story = {
args: {
media: { src: figma_green.src, alt: 'Figma Green' },
},
}

export const GitHubWhite: Story = {
args: {
media: { src: github_white.src, alt: 'GitHub White' },
},
}

export const InstagramWhite: Story = {
args: {
media: { src: instagram_white.src, alt: 'Instagram White' },
},
}

export const LinkedInWhite: Story = {
args: {
media: { src: linkedin_white.src, alt: 'LinkedIn White' },
},
}

export const LinktreeWhite: Story = {
args: {
media: { src: linktree_white.src, alt: 'Linktree White' },
},
}

export const EmailWhite: Story = {
args: {
media: { src: email_white.src, alt: 'Email White' },
},
}

export const DiscordWhite: Story = {
args: {
media: { src: discord_white.src, alt: 'Discord White' },
},
}

export const DocsWhite: Story = {
args: {
media: { src: docs_white.src, alt: 'Docs White' },
},
}

export const FigmaWhite: Story = {
args: {
media: { src: figma_white.src, alt: 'Figma White' },
},
}

export const Arrow: Story = {
args: {
media: { src: arrow.src, alt: 'Arrow' },
},
}

export const Hamburger: Story = {
args: {
media: { src: hamburger.src, alt: 'Hamburger' },
},
}

export const Calendar: Story = {
args: {
media: { src: calendar.src, alt: 'Calendar' },
},
}

export const ChevronDown: Story = {
args: {
media: { src: chevron_down.src, alt: 'Chevron Down' },
},
}

export const ChevronUp: Story = {
args: {
media: { src: chevron_up.src, alt: 'Chevron Up' },
},
}

export const Link: Story = {
args: {
media: { src: link.src, alt: 'Link' },
},
}

export const Phone: Story = {
args: {
media: { src: phone.src, alt: 'Phone' },
},
}

export const Minus: Story = {
args: {
media: { src: minus.src, alt: 'Minus' },
},
}

export const Plus: Story = {
args: {
media: { src: plus.src, alt: 'Plus' },
},
}

0 comments on commit 7c77678

Please sign in to comment.