Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
MH4GF committed Oct 9, 2024
1 parent e366c20 commit 9d0962a
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@packages/ui",
"main": "src/index.ts",
"scripts": {
"lint": "conc -c auto pnpm:lint:*",
"lint:biome": "biome check .",
Expand All @@ -10,6 +11,7 @@
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@packages/configs": "workspace:*",
"@storybook/react": "^8.3.4",
"typescript": "^5"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

.wrapper {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { Meta, StoryObj } from '@storybook/react'

import { DropdownMenu } from './'

const meta = {
component: DropdownMenu,
args: {},
} satisfies Meta<typeof DropdownMenu>

export default meta
type Story = StoryObj<typeof meta>

export const Default: Story = {}
12 changes: 12 additions & 0 deletions frontend/packages/ui/src/components/DropdownMenu/DropdownMenu.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { FC } from 'react'
import styles from './DropdownMenu.module.css'

type Props = {}

export const DropdownMenu: FC<Props> = ({ ...props }) => {
return (
<div className={styles.wrapper}>
<h1>DropdownMenu Component</h1>
</div>
)
}
1 change: 1 addition & 0 deletions frontend/packages/ui/src/components/DropdownMenu/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './DropdownMenu'
1 change: 1 addition & 0 deletions frontend/packages/ui/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './DropdownMenu'
1 change: 1 addition & 0 deletions frontend/packages/ui/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './components'
3 changes: 3 additions & 0 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/turbo/generators/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default function generator(plop: PlopTypes.NodePlopAPI): void {
choices: [
...listDirectories('apps/service-site/src/features'),
...listDirectories('apps/service-site/src/components'),
...listDirectories('packages/ui/src/components'),
],
},
{
Expand Down

0 comments on commit 9d0962a

Please sign in to comment.