GithubHelp home page GithubHelp logo

awell-health / ui-library Goto Github PK

View Code? Open in Web Editor NEW
4.0 5.0 3.0 6.85 MB

Set of react components made for integration with awell

Home Page: https://awell-health.github.io/ui-library/

JavaScript 1.21% HTML 0.44% TypeScript 82.55% SCSS 15.78% Shell 0.01%

ui-library's Introduction

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.

ui-library's People

Contributors

danijel avatar ebomcke-awell avatar flaviof avatar meskat avatar michal-grzelak avatar mohsinht avatar namdar12 avatar nckhell avatar rahulkeerthi avatar sharlotta93 avatar skrobek avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.