# brave-ui-wrapper

> List of reusable React components to empower your brave UI

Latest version **0.0.0** (published 2018-07-17) · MPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install brave-ui-wrapper
pnpm add brave-ui-wrapper
yarn add brave-ui-wrapper
bun add brave-ui-wrapper
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2018-07-17 |
| First published | 2018-07-17 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 2.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Brave Software |
| Maintainers | nejczdovc |

## Links

- npm: https://www.npmjs.com/package/brave-ui-wrapper
- npm.io page: https://npm.io/package/brave-ui-wrapper

## Dependencies (6)

- [emptykit.css](https://npm.io/package/emptykit.css.md) ^1.0.1
- [styled-components](https://npm.io/package/styled-components.md) ^3.2.5
- [@types/storybook__react](https://npm.io/package/@types/storybook__react.md) ^3.0.7
- [@types/storybook__addon-info](https://npm.io/package/@types/storybook__addon-info.md) ^3.2.2
- [@types/storybook__addon-knobs](https://npm.io/package/@types/storybook__addon-knobs.md) ^3.2.3
- [@types/storybook__addon-actions](https://npm.io/package/@types/storybook__addon-actions.md) ^3.0.3

## Recent versions

- 0.0.0 (latest) — 2018-07-17

## README

<img src="https://raw.githubusercontent.com/brave/brave-ui/master/logo-dev.png" align="right" width="130px" height="130px"/>

# Brave UI [![npm](https://img.shields.io/npm/v/brave-ui.svg)]()
> List of reusable React components to empower your brave UI

[![Travis](https://img.shields.io/travis/brave/brave-ui.svg)](https://travis-ci.org/brave/brave-ui) [![Known Vulnerabilities](https://snyk.io/test/github/brave/brave-ui/badge.svg)](https://snyk.io/test/github/brave/brave-ui) [![npm](https://img.shields.io/npm/dt/brave-ui.svg)]() [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

Welcome to the Brave UI repo! Here you will find a list of reusable stateless React components for use across our browser UI. It's a standalone package to be manipulated as any other module, including a visual style guide fully customizable for both developers and designers.

<hr>
<p align="center">
<a href="#table-of-contents">TOC</a> • <a href="#what-is-this">What is this?</a> • <a href="#how-this-works">How this works?</a> • <a href="#installation-and-usage">Installation and usage</a> • <a href="#contribute">Contribute!</a>
</p>
<hr>

## Useful links

* [Installation and Usage](#installation-and-usage)
* [Visual Test - Playing around with the living styleguide](https://github.com/brave/brave-ui/blob/master/docs/manual-tests.md)
* [Creating Stories - Improving the living styleguide](https://github.com/brave/brave-ui/blob/master/docs/stories.md)
* [Creating components and Architecture Overview](https://github.com/brave/brave-ui/blob/master/docs/components.md)
* [Coverage, running and creating tests](https://github.com/brave/brave-ui/blob/master/docs/tests.md)
* [Publishing Stories and the Brave-UI package](https://github.com/brave/brave-ui/blob/master/docs/publishing.md)
* [Brave UI System Interface Engineering Specification](https://github.com/brave/brave-ui/blob/master/docs/spec.md)
* [Contributing](https://github.com/brave/brave-ui/blob/master/docs/contributing.md)



## This is experimental technology

You shouldn't be using this module in your production environment yet. API changes can happen at any time and all modules in this repo are considerated `experimental` at this moment.

## Stability Index
The stability index is adopted from MDN (which is adopted from [node.js](http://nodejs.org/api/documentation.html#documentation_stability_index). This library uses only four of the six values defined by node.js:

|     Status     | Description |
|----------------|-------------|
| Experimental   | The module is not yet stabilized. You can try it out and provide feedback, but we may change or remove it in future versions without having to pass through a formal deprecation process. |
| Unstable       | The API is in the process of settling, but has not yet had sufficient real-world testing to be considered stable. Backwards-compatibility will be maintained if reasonable. If we do have to make backwards-incompatible changes, we will not guarantee the module will go through the formal deprecation process. |
| Stable         | The module is a fully-supported part of the SDK. We will avoid breaking backwards compatibility unless absolutely necessary. If we do have to make backwards-incompatible changes, we will go through the formal deprecation process. |
| Deprecated     | We plan to change this module, and backwards compatibility should not be expected. Don’t start using it, and plan to migrate away from this module to its replacement. |

At the moment all components in this library are under the status of `experimental`. As things change you can follow each component status in the [Components Stability Table](https://github.com/brave/brave-ui/wiki/Components-Stability-Index

## What is this?

This repository is the home of the [Brave Style Guide](https://brave.github.io/brave-ui) and the [Brave UI Package](https://npmjs.org/package/brave-ui).

**The Style Guide** is a spec visualization of the browser-laptop components, made possible by [Storybook](https://github.com/storybooks/storybook). The style guide is separated by "stories", which is defined as a component with a given state, visually mutable in the UI. It's also a great tool for manual testing purposes and behavior visualization.

**The Brave UI Package** is a standalone package containing stateless components to be used in browser-laptop, made by design to be implemented inside the `render()` method as a replacement for front-end code, making it easier to change and adapt. It uses [Lerna](https://github.com/lerna/lerna) to manage only the package needed to export components.

If you're looking for an architecture overview please go to [`Creating components & Architecture Overview` doc](https://github.com/brave/brave-ui/blob/master/docs/components.md).


## How this works?

We have the main repository that hosts the style guide, which is private, which means it never publishes to `npm`. Instead, it's published as a website, which is, in fact, the storybook visualization set as a public resource at https://brave.github.io/brave-ui. The website deploy is automated by `npm run deploy`.

On the other hand, we have the `brave-ui` repository, containing a list of reusable stateless components with their respective tests and coverage. The package includes only the resources needed to be usable outside of this repository as a public package with the same name. The package deploy is automated by `npm run publish`.


## Installation and Usage


```
cd <your_repo_here>
# If you prefer using yarn: yarn add brave-ui
npm i --save brave-ui
```

Confirm in your `package.json` that the `brave-ui` is installed. Once you're good to go you can require it by using the object-destructuring pattern, which is used to take advantage of module three-shaking. Note that without this pattern (without the brackets evolving the component name) the package will throw an error.

If you're looking to contribute to this repo please refer to [Contributing](https://github.com/brave/brave-ui/blob/master/docs/contributing.md) docs.

```js
// Let's implement the <PushButton /> component
const { PushButton } = require('brave-ui')

render () {
  return (
    <PushButton theme='primary' label='something' />
  )
}
```

For further information about other development goodies, please refer to the [table of contents](#table-of-contents).


## Contribute!

We are still in an early draft and would love your feedback. If you think something can be better or is just wrong, please open an issue or submit a pull-request. More information at the [contributing docs](https://github.com/brave/brave-ui/blob/master/docs/contributing.md). Let's make it cool!

---
_Source: https://npm.io/package/brave-ui-wrapper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
