# bamboos-ui

> ui components for bamboos

Latest version **1.1.7** (published 2022-02-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install bamboos-ui
pnpm add bamboos-ui
yarn add bamboos-ui
bun add bamboos-ui
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2022-02-15 |
| First published | 2022-02-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 85.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | david-bamboos |

## Links

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

## Dependencies (2)

- [react-inlinesvg](https://npm.io/package/react-inlinesvg.md) ^2.3.0
- [@material-ui/core](https://npm.io/package/@material-ui/core.md) ^4.12.3

## Recent versions

- 1.1.7 (latest) — 2022-02-15
- 1.1.6 — 2022-02-14
- 1.1.5 — 2022-02-14
- 1.1.4 — 2022-02-14
- 1.1.3 — 2022-02-14
- 1.1.2 — 2022-02-14
- 1.1.1 — 2022-02-14
- 1.1.0 — 2022-02-14
- 1.0.0 — 2022-02-14

## README

# Bamboos UI
## Bamboos UI Components
- [Overview](#overview)
- [Howto: imageButton 예시](#howto--imagebutton---)
- [Build](#build)

<small><i><a href='http://ecotrust-canada.github.io/markdown-toc/'>Table of contents generated with markdown-toc</a></i></small>


### Overview 
Bamboos UI 요소를 NPM package로 사용하여 공통 모듈을 효율적으로 관리

### Howto: imageButton 예시
ldm-front에서 사용하고자 하는 소스코드에 아래와 같이 import 하여 사용
```console
// import ImageButton from "../imageButton/imageButton";
import ImageButton from "bamboos-ui/lib/components/imageButton"

export default function SideControlBar() {

  const { buttons } = useSideControlBar();

  const renderButton = (button: any) : JSX.Element => {
    return (
      <ImageButton 
        label={button.label}
        image={button.image}
        callback={button.callback}
        logo={{fillUnactive: "white"}}
        buttonSize={{width: 63, height: 60}}
      />
    )
```

### Build
(1) 소스코드 다운로드 & 빌드 (2) 버전설정 (3) publish
```console
## (1) 소스코드 다운로드 & 빌드
$ git clone git@github.com:bambros/bamboos-npm.git
$ cd bamboos-npm
$ npm install
$ npx tsc

## (2) 패치 버전 증가
$ npm version patch

## (2) 주요 버전 변경시, package.json을 열어서 version 부분 직접 수정 
$ vi package.json
"version": "2.1.3"

## (3) publish
$ npm publish
```

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