# bento-components

> Bento UI Building Blocks is a NPM library in an attempt to reuse the shared UI components across NCI data commons frameworks.

Latest version **1.0.11** (published 2023-07-18) · 0 weekly downloads

## Install

```sh
npm install bento-components
pnpm add bento-components
yarn add bento-components
bun add bento-components
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.11 |
| Published | 2023-07-18 |
| First published | 2020-04-28 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 44 |
| Unpacked size | 8.1 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | ajaydoddapaneni, chsrikiran, iksheth |

## Links

- npm: https://www.npmjs.com/package/bento-components
- npm.io page: https://npm.io/package/bento-components

## Dependencies (44)

- [uuid](https://npm.io/package/uuid.md) ^8.3.2
- [axios](https://npm.io/package/axios.md) ^1.3.2
- [react](https://npm.io/package/react.md) >=16.8.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.20
- [rimraf](https://npm.io/package/rimraf.md) ^2.6.3
- [recharts](https://npm.io/package/recharts.md) ^1.8.5
- [cross-env](https://npm.io/package/cross-env.md) ^7.0.2
- [react-dom](https://npm.io/package/react-dom.md) >=16.8.0
- [react-jss](https://npm.io/package/react-jss.md) ^10.1.1
- [react-vis](https://npm.io/package/react-vis.md) ^1.11.7
- [@babel/cli](https://npm.io/package/@babel/cli.md) ^7.10.5
- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [devextreme](https://npm.io/package/devextreme.md) ^21.1.6
- [link-react](https://npm.io/package/link-react.md) ^3.0.0
- [lodash.get](https://npm.io/package/lodash.get.md) ^4.4.2
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [tinycolor2](https://npm.io/package/tinycolor2.md) ^1.4.2
- [lodash.find](https://npm.io/package/lodash.find.md) ^4.6.0
- [react-redux](https://npm.io/package/react-redux.md) ^8.0.5
- [lodash.merge](https://npm.io/package/lodash.merge.md) ^4.6.2
- [react-scripts](https://npm.io/package/react-scripts.md) 3.4.1
- [lodash.isequal](https://npm.io/package/lodash.isequal.md) ^4.5.0
- [lodash.memoize](https://npm.io/package/lodash.memoize.md) ^4.1.2
- [react-markdown](https://npm.io/package/react-markdown.md) ^8.0.5
- [react-to-print](https://npm.io/package/react-to-print.md) ^2.8.0
- [svg-url-loader](https://npm.io/package/svg-url-loader.md) ^5.0.0
- [lodash.debounce](https://npm.io/package/lodash.debounce.md) ^4.0.8
- [@material-ui/lab](https://npm.io/package/@material-ui/lab.md) *
- [devextreme-react](https://npm.io/package/devextreme-react.md) ^21.1.6
- [lodash.clonedeep](https://npm.io/package/lodash.clonedeep.md) ^4.5.0
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^5.2.0
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.11.0
- [@material-ui/core](https://npm.io/package/@material-ui/core.md) >=4.0.0
- [lodash.assignwith](https://npm.io/package/lodash.assignwith.md) ^4.2.0
- [@material-ui/icons](https://npm.io/package/@material-ui/icons.md) >=4.0.0
- [lodash.isundefined](https://npm.io/package/lodash.isundefined.md) ^3.0.1
- [@babel/preset-react](https://npm.io/package/@babel/preset-react.md) ^7.10.4
- [eslint-plugin-babel](https://npm.io/package/eslint-plugin-babel.md) ^5.3.1
- [react-zoom-pan-pinch](https://npm.io/package/react-zoom-pan-pinch.md) ^1.6.1
- [@storybook/addon-knobs](https://npm.io/package/@storybook/addon-knobs.md) ^6.3.1
- [@testing-library/react](https://npm.io/package/@testing-library/react.md) ^9.3.2
- [@testing-library/jest-dom](https://npm.io/package/@testing-library/jest-dom.md) ^4.2.4
- [@testing-library/user-event](https://npm.io/package/@testing-library/user-event.md) ^7.1.2
- [@babel/plugin-proposal-class-properties](https://npm.io/package/@babel/plugin-proposal-class-properties.md) ^7.10.4

## Recent versions

- 1.0.11 (latest) — 2023-07-18
- 1.0.10 — 2023-05-31
- 1.0.9 — 2023-05-31
- 1.0.8 — 2023-04-20
- 1.0.7 — 2023-03-08
- 1.0.6 — 2023-02-23
- 1.0.5 — 2023-01-10
- 1.0.4 — 2022-11-02
- 1.0.3 — 2022-10-27
- 1.0.2 — 2022-10-19
- 1.0.1 — 2022-10-12
- 1.0.0 — 2022-10-12
- 0.1.118 — 2022-09-21
- 0.1.117 — 2022-08-30
- 0.1.116 — 2022-08-04
- … 113 more at https://npm.io/package/bento-components/versions

## README

# Bento UI Building Blocks

Bento UI Building Blocks is a NPM library in an attempt to reuse the shared UI components across NCI data commons frameworks.

## Installation

Use the package manager [npm](https://www.npmjs.com/) to install Bento UI Building Blocks.

```bash
npm install bento-components
```

## Usage

### Header

```react
// Header
import { Header } from 'bento-components';

const ICDCHeader = () => <><Header /></>;
export default ICDCHeader;
```

### Footer

```react
// Footer
import { Footer } from 'bento-components';
import FooterData from './footer.json'; //path to the json file Sample can be found in Stubs

const ICDCFooter = () => <><Footer data={FooterData} /></>;
export default ICDCFooter
```

### DataTable

```react
// DataTable
For now we customized moving select cell to right
import { CustomDataTable } from 'bento-components';

const columns = ["Name", "Company", "City", "State"];

const data = [
 ["Joe James", "Test Corp", "Yonkers", "NY"],
 ["John Walsh", "Test Corp", "Hartford", "CT"],
 ["Bob Herm", "Test Corp", "Tampa", "FL"],
 ["James Houston", "Test Corp", "Dallas", "TX"],
];

const options = {
  selectCellPostion: 'right', // If not specified it defaults to left
};
<MUIDatatable columns={columns} data={data} options={options} selectCellPostion="right" />
```

## Scripts Available

```
### `npm run storybook`

Runs the app in the development mode.
Open [http://localhost:9001](http://localhost:9001) to view it in the browser.

The page will reload if you make edits.<br />
You will also see any lint errors in the console.
```
```
### `npm run storybook`

Builds the app for production to the `lib`  and  `es` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.

Your app is ready to be deployed!

```

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