0.27.3 • Published 9 months ago

@micromed/herz-ui v0.27.3

Weekly downloads
3
License
ISC
Repository
github
Last release
9 months ago

herz-ui

Herz UI (/hɛrʦ/ - Hérts) is an implementation of UI Components based on Micromed's design system called Herz

Table of Contents

Installation

Using Herz-UI in your project

You can easily install in your project using your favorite package manager

// using npm
npm i @micromed/herz-ui

// using yarn
yarn add @micromed/herz-ui

you'll find our component documentation on our website

Want to contribute?

If you found a bug, have issues or feature proposals, feel free to open an Issue or send us a Pull Request, you can also read more about our contribution guidelines

Getting started

Setup

clonning the repo

git clone https://github.com/micromedio/herz-ui.git
cd herz-ui

installing dependencies with yarn

yarn 

Running in development:

yarn dev
  • Runs the app in the development mode.

  • The page will reload if you make edits.

  • You will also see any lint errors in the console

  • Project will be available at localhost:6060

Building for production

yarn build
  • Builds the app for production to the styleguide/ folder
  • Compiles the exported modules into lib/ folder
  • bundles react in production mode optimizing for best performance

Testing

yarn test
  • Launches the test runner in the interactive watch mode.
yarn build-storybook
  • Build storybook as a static project
yarn storybook

Testing in another project

While developing you may want to test your changes in another project that has herz-ui as a dependency. To do that we can use yarn link to link your local version of herz-ui to your project.

One problem that can arise from that is that there will be two react versions running in your application, resulting in this error: Invalid Hook Call Warning.

To fix this we need to not only link our local herz-ui to the other project, but also link react and react-dom from the other project to hearz-ui, so it uses those versions instead of the ones in herz-ui node_modules. The solution is this:

  1. In the external project folder run:
pushd node_modules/react && yarn link; popd
pushd node_modules/react-dom && yarn link; popd
  1. In the herz-ui folder run:
yarn link
yarn link react && yarn link react-dom
  1. In the external project folder run:
yarn link "@micromed/herz-ui"

Now the external project is using the local compiled version of herz-ui and there should be no react errors.

0.27.2

9 months ago

0.27.1

9 months ago

0.27.0

9 months ago

0.27.3

9 months ago

0.22.0

9 months ago

0.21.12

10 months ago

0.21.13

10 months ago

0.21.11

11 months ago

0.21.10

1 year ago

0.21.8

1 year ago

0.21.7

1 year ago

0.21.5

1 year ago

0.21.3

2 years ago

0.21.2

2 years ago

0.21.1

2 years ago

0.20.1

2 years ago

0.20.0

2 years ago

0.19.0

2 years ago

0.21.0

2 years ago

0.20.5

2 years ago

0.20.4

2 years ago

0.20.3

2 years ago

0.20.2

2 years ago

0.15.0

2 years ago

0.17.0

2 years ago

0.17.1

2 years ago

0.18.1

2 years ago

0.18.2

2 years ago

0.18.3

2 years ago

0.16.0

2 years ago

0.16.1

2 years ago

0.18.0

2 years ago

0.14.0

3 years ago

0.13.1

3 years ago

0.13.0

3 years ago

0.11.0

3 years ago

0.12.0

3 years ago

0.10.1

3 years ago

0.10.0

3 years ago

0.9.6

3 years ago

0.9.5

3 years ago

0.9.4

3 years ago

0.9.3

3 years ago

0.9.2

3 years ago

0.9.0

3 years ago

0.9.1

3 years ago

0.8.0

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.5

3 years ago

0.4.4

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.3

3 years ago

0.3.0

3 years ago

0.3.1

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.4

3 years ago

0.1.3-1

3 years ago

0.1.2

3 years ago

0.1.3-0

3 years ago

0.1.3

3 years ago

0.1.2-0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago