0.1.30 • Published 1 year ago

@awell_health/ui-library v0.1.30

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

UI-library

UI components to be used for integrating with Awell Health products.

Environment variables

To set up your local development environment, more specifically automated generation of types based on our API, you need to configure the below two variables in your .env file which should exist at the root of the repository.

CODEGEN_AWELL_API_URL=
CODEGEN_AWELL_API_KEY=

Preview components in storybook

yarn storybook

Develop on local with yalc

Install

yarn global add yalc

Build (in ui-library)

yarn build

Note: before running the build commmand, you need to update the version in package.json manually. You can chose any version you like, it just need to make sense and be a different version than it was.

Publish (in ui-library)

yalc publish

Use in other project

yalc add <package-name>

How to use it in your project

Import styles in root directory

 import '@awell_health/ui-library/dist/index.css'

Use ThemeProvider

Make sure to wrap the application with the ThemeProvider. This will make sure all styles are properly loaded.

Use components

 import { ConversationalForm } from '@awell_health/ui-library'

 (...)
 return <ConversationalForm (...) />

Possible known issues

Empty SCSS file

Following error

[!] (plugin rollup-plugin-sass) TypeError: Cannot read properties of undefined (reading 'then')
src/atoms/message/message.module.scss
TypeError: Cannot read properties of undefined (reading 'then')
at /Users/katarzynamarciniszyn/Desktop/ui-library/node_modules/rollup-plugin-sass/dist/index.js:132:17
at transform (/Users/katarzynamarciniszyn/Desktop/ui-library/node_modules/rollup/dist/shared/rollup.js:22042:16)
at ModuleLoader.addModuleSource (/Users/katarzynamarciniszyn/Desktop/ui-library/node_modules/rollup/dist/shared/rollup.js:22267:30)

Solution

Fill up the file with css or remove it.

0.1.30

1 year ago

0.1.29

1 year ago

0.1.13

1 year ago

0.1.15

1 year ago

0.1.27

1 year ago

0.1.28

1 year ago

0.1.20

1 year ago

0.1.21

1 year ago

0.1.22

1 year ago

0.1.23

1 year ago

0.1.24

1 year ago

0.1.25

1 year ago

0.1.26

1 year ago

0.1.16

1 year ago

0.1.17

1 year ago

0.1.18

1 year ago

0.1.19

1 year ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.4

2 years ago

0.1.2

2 years ago

0.1.3

2 years ago

0.0.62

2 years ago

0.0.63

2 years ago

0.0.60

2 years ago

0.0.61

2 years ago

0.0.59

2 years ago

0.0.51

2 years ago

0.0.52

2 years ago

0.0.53

2 years ago

0.0.54

2 years ago

0.0.56

2 years ago

0.0.57

2 years ago

0.0.58

2 years ago

0.0.50

2 years ago

0.0.48

2 years ago

0.0.49

2 years ago

0.0.40

2 years ago

0.0.41

2 years ago

0.0.42

2 years ago

0.0.43

2 years ago

0.0.44

2 years ago

0.0.45

2 years ago

0.0.46

2 years ago

0.0.47

2 years ago

0.0.38

2 years ago

0.0.37

2 years ago

0.0.34

2 years ago

0.0.35

2 years ago

0.0.36

2 years ago

0.0.30

2 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.33

2 years ago

0.0.26

2 years ago

0.0.27

2 years ago

0.0.28

2 years ago

0.0.29

2 years ago

0.0.25

2 years ago

0.0.24

2 years ago

0.0.23

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago