[@portaljs/ckan][m] - fix build

This commit is contained in:
Luccas Mateus de Medeiros Gomes
2023-05-23 20:07:50 -03:00
parent c82bfdd847
commit b8f0a9e432
3 changed files with 138 additions and 11296 deletions

View File

@@ -1,14 +1,17 @@
# PortalJS React Components
# PortalJS CKAN Library
**Storybook:** https://storybook.portaljs.org
**Docs**: https://portaljs.org/docs
This is a library intended for the use with a CKAN Backend, it is composed of:
- Types mapping the CKAN API Objects
- A CKAN object that makes API calls
- Components that are usually needed in a data portal(searching, pagination, listing etc)
## Usage
To install this package on your project:
```bash
npm i @portaljs/components
npm i @portaljs/ckan
```
> Note: React 18 is required.
@@ -17,13 +20,5 @@ You'll also have to import the styles CSS file in your project:
```ts
// E.g.: Next.js => pages/_app.tsx
import '@portaljs/components/styles.css'
```
## Dev
Use Storybook to work on components by running:
```bash
npm run storybook
import '@portaljs/ckan/styles.css'
```