# @codesign-eu/ui-library

MUI component library for Codesign applications.

## Usage

```tsx
import { Button, Dropdown, MenuItem, Textbox, CodesignThemeProvider } from '@codesign-eu/ui-library'

export function Example() {
  return (
    <CodesignThemeProvider theme="primary">
      <Textbox label="Project name" />
      <Dropdown label="Status" value="draft">
        <MenuItem value="draft">Draft</MenuItem>
        <MenuItem value="published">Published</MenuItem>
      </Dropdown>
      <Button color="fusion">Save</Button>
    </CodesignThemeProvider>
  )
}
```

Available theme presets:
- `primary`
- `secondary`
- `success`
- `info`
- `warning`
- `danger`
- `fusion`

## Published Types

This package publishes its public TypeScript surface through `dist/index.d.ts`.

- Consumer applications should import from `@codesign-eu/ui-library`, not from `index.d.ts`.
- Keep `package.json` `types` pointing at `./dist/index.d.ts`.
- Keep `package.json` `exports["."].types` pointing at `./dist/index.d.ts`.
- Treat `src/index.ts` as the public API barrel that drives the generated root type declarations.
- If we add public subpath exports in the future, each subpath should also define its own `types` entry.

## Development

```bash
npm install
npm run storybook
```

## Release helpers

```bash
npm run version:patch
npm run version:minor
npm run version:major
```
