Giter Site home page Giter Site logo

joshblack / carbon-addons-iot-react Goto Github PK

View Code? Open in Web Editor NEW

This project forked from carbon-design-system/carbon-addons-iot-react

0.0 1.0 0.0 69.39 MB

A collection of React components shared between all IBM Watson IoT products.

Home Page: https://carbon-addons-iot-react.com

License: Apache License 2.0

JavaScript 95.70% CSS 4.24% HTML 0.06%

carbon-addons-iot-react's Introduction

Carbon add-ons for Watson IoT

Carbon add-ons for Watson IoT

Carbon add-ons for Watson IoT is an open-source react component library built by IBM Watson Internet Of Things. With the Carbon Design System and IBM Design Language as its foundation, the library consists of working code, resources, and a vibrant community of contributors.

Our Storybook Netlify status Build Status master release Coverage Report Carbon add-ons for Watson IoT is released under the Apache-2.0 license PRs welcome

Installation

Run the following command using npm:

npm install carbon-addons-iot-react

If you prefer Yarn Classic, use the following command instead:

yarn add carbon-addons-iot-react

You can then import any component that you need by doing the following in your project:

import { AddCard } from 'carbon-addons-iot-react';

๐Ÿš€ Quick Start

If you'd like to test drive everything here, run the following command to create a new project preconfigured with everything you need to begin to build an application.

npx create-iot-react-app <app-name>

More info on create-iot-react-app here

Styling

What's included

carbon-addons-iot-react/
โ”œโ”€โ”€ css
โ”‚   โ”œโ”€โ”€ carbon-addons-iot-react.css
โ”‚   โ””โ”€โ”€ carbon-addons-iot-react.css.map
โ”œโ”€โ”€ scss
โ”‚   โ””โ”€โ”€ components
โ”‚       โ””โ”€โ”€ modal
โ”‚           โ””โ”€โ”€ _modal.scss
โ”‚       โ””โ”€โ”€ ...
โ”‚   โ””โ”€โ”€ globals
โ”‚       โ””โ”€โ”€ scss
โ”‚           โ””โ”€โ”€ _vars.scss
โ”‚           โ””โ”€โ”€ ...
โ”‚   โ””โ”€โ”€ styles.scss (sass entrypoint)

Compiled CSS files are provided for ease of use getting started.

A sass entrypoint is available at scss/styles.scss for use in your project.

Using sass files (instead of the compiled .css) infers usage of a SCSS pre-processor. All Sass files use the *.scss file extension. For transpiling Sass code, use node-sass based Sass compilers, for example, WebPack sass-loader or gulp-sass. Make sure your build process uses autoprefixer to ensure vendor prefixes are automatically added to your output CSS.

Feedback and improvement requests regarding this configuration would be appreciated, please open an issue.

Dependencies

Usage of this package does not require you to install additional Carbon packages; carbon-components, carbon-icons, or @carbon packages (@carbon/grid, @carbon-layout, etc) as peer dependencies. You may still need these packages if you use them directly in your project.

๐Ÿ“š Docs

You can find more information about how to use each component by checking out the Storybook.

๐Ÿคฒ Contributing

Please check out our Contribution Guidelines for more info on how you can help out!

Testing

You can find our component test statement here

If you are using our project with Jest tests, due to it's dependency on d3, you may have to add some mock to your Jest setup script. See this issue for more details: jestjs/jest#5379

Here's an example setup script, update your jest config to point to a setup script: setupFiles: ['setupJest.js'],

setupJest.js contents:

class SVGPathElement extends HTMLElement {}

window.SVGPathElement = SVGPathElement;
Deploys by Netlify

carbon-addons-iot-react's People

Contributors

billpereira avatar bjornalm avatar bryancboyd avatar bryancboyd-test avatar cgirani avatar davidicus avatar dennynguyen avatar dependabot[bot] avatar enricoberti avatar filipecorrea avatar imgbotapp avatar jessieyan avatar joelarmendariz avatar kant avatar leetosc avatar potato-w avatar psdixit avatar scottdickerson avatar sls-ca avatar sstone2423 avatar stevemart avatar stuckless avatar sunilkotiyaibm avatar tay1orjones avatar tomklapiscak avatar

Watchers

 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.