# bgcom

> bPlugins Gutenberg Library

Latest version **1.0.10** (published 2021-02-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install bgcom
pnpm add bgcom
yarn add bgcom
bun add bgcom
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.10 |
| Published | 2021-02-09 |
| First published | 2021-01-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 3 |
| Unpacked size | 931 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | shehabulislam |
| Maintainers | shehabulislam |

## Links

- npm: https://www.npmjs.com/package/bgcom
- Repository: https://github.com/shehabulislam/bgcom
- Homepage: https://github.com/shehabulislam/bgcom#readme
- Issues: https://github.com/shehabulislam/bgcom/issues
- npm.io page: https://npm.io/package/bgcom

## Dependencies (3)

- [immer](https://npm.io/package/immer.md) ^8.0.1
- [@wordpress/components](https://npm.io/package/@wordpress/components.md) ^12.0.2
- [@wordpress/block-editor](https://npm.io/package/@wordpress/block-editor.md) ^5.2.2

## Recent versions

- 1.0.10 (latest) — 2021-02-09
- 1.0.9 — 2021-02-06
- 1.0.8 — 2021-02-04
- 1.0.7 — 2021-02-02
- 1.0.6 — 2021-01-28
- 1.0.5 — 2021-01-22
- 1.0.4 — 2021-01-21
- 1.0.3 — 2021-01-21
- 1.0.2 — 2021-01-21
- 1.0.1 — 2021-01-21
- 1.0.0 — 2021-01-21

## README

# bgcom

> bPlugins Gutenberg Library

[![NPM](https://img.shields.io/npm/v/bgcom.svg)](https://www.npmjs.com/package/bgcom) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save bgcom
```

## Usage

```jsx
import React, { Component } from 'react'

import MyComponent from 'bgcom'
import 'bgcom/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}
```

## License

MIT © [shehabulislam](https://github.com/shehabulislam)

```bash
BRangeControl
====================
/**
 *
 * @props {String} label
 * @props {Object} enable: {eDevice = true, eUnit = true, eNumberControl = true}
 * @props {Object} value: {number = 10, device = 'desktop', unit = 'px'}
 * @props {Array} units: ['px', 'em', '%']
 * @props {Function} onChange
 * @returns {Object}
 *
 */

BUnit
===================
/**
 *
 * @props {String} value: '%'
 * @props {Array} units: ['px', 'em', '%']
 * @props {Function} onChange
 * @returns {String}
 */


BTypography
======================

/**
 *
 * @props {Object} value: { font: {
    size = '16px',
    family = 'Default',
    weight = '',
    letterSpacing = '0px',
    textTransform = ''
  } }
 * @props {Object} enable: { eDevice = true, eUnit = true, eAT = true }
 * @props {Function} onChange
 * @returns {Object}
 */

BSpacer
========================
/**
 *
 * @props {Object} label: {top: "Top", right: "Right", bottom: "Bottom", left: "Left"}
 * @props {Object} value: { top: 0, right: 0, bottom: 0, left: 0 },
 * @props {Object} enable: { top = true, right = true, bottom = true, left = true },
 * @props {Booleaa} isDragEnabled: false
 * @props {Boolean} isShiftStepEnabled: true
 * @props {Number} shiftStep: 10
 * @props {String} width: '250px'
 * @props {String} ClassName: ''
 * @props {Function} onChange
 * @returns {Object}
 */

BResponsive
======================
/**
 *
 * @props {Object} value: {desktop = false, tablet = false, mobile = false}
 * @props {Function} onChange
 * @returns {Object} {desktop, tablet, mobile}
 */

BDevice
================
/**
 *
 * @props device: 'desktop' (String)
 * @props iconSize: 10 (Number)
 * @props onChange: (Function)
 * @props style: {} (Object)
 * @return Selected device
 */

BColor
=======================
/**
 *
 * @props
 * value: (String) --required
 * defaultColor: (String)
 * onChange: (Function) required
 * className: (String)
 * disableAlpha: (Boolean)
 * @boxPosition: 'top left' (String)
 *
 * return rgba color code
 */

BBorder
=======================
/**
 *
 * @props {Function} onChange
 * @props {Object} enable: {
    eWidth = true,
    eRadius = true,
    eShadow = true,
    eDevice = true
  }
 * @props {Object}
 * value: {
    border: {
      type: 'double',
      width: { top: 0, right: 0, bottom: 0, left: 0 },
      radius: { top: 0, right: 0, bottom: 0, left: 0 },
      shadow: {
        shadowColor: '#dddddd',
        horizontal: 200,
        vertical: 66,
        blur: 93,
        spread: 66,
        position: 'inset'
      }
    },
    device: 'desktop'
  }
*
* @returns {Object}
 */

BAnimation
=====================
/**
 *
 * @props {Function} onChange
 * @props {String} value
 * @return {String}
 */

```

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