Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bee-badge

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bee-badge - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

13

build/Badge.js

@@ -47,10 +47,9 @@ 'use strict';

Badge.prototype.render = function render() {
var _props = this.props;
var colors = _props.colors;
var className = _props.className;
var children = _props.children;
var clsPrefix = _props.clsPrefix;
var _props = this.props,
colors = _props.colors,
className = _props.className,
children = _props.children,
clsPrefix = _props.clsPrefix,
others = _objectWithoutProperties(_props, ['colors', 'className', 'children', 'clsPrefix']);
var others = _objectWithoutProperties(_props, ['colors', 'className', 'children', 'clsPrefix']);
var clsObj = {};

@@ -57,0 +56,0 @@ if (className) {

@@ -40,19 +40,7 @@

);
const header = (
<Row>
<Col md={11}>
{ example }
</Col>
<Col md={1}>
<Button shape="icon" onClick={ this.handleClick }>
{ caret }
</Button>
</Col>
</Row>
);
return (
<Col md={10} mdOffset={1} sm={12} smOffset={0}>
<Col md={12}>
<h3>{ title }</h3>
<p>{ desc }</p>
<Panel collapsible expanded={ this.state.open } colors='bordered' header={ header } footer={footer} footerStyle = {{padding: 0}}>
<Panel collapsible expanded={ this.state.open } colors='bordered' header={ example } footer={footer} footerStyle = {{padding: 0,borderColor: "transparent"}} >
<pre><code className="hljs javascript">{ code }</code></pre>

@@ -59,0 +47,0 @@ </Panel>

@@ -63,19 +63,7 @@

);
const header = (
<Row>
<Col md={11}>
{ example }
</Col>
<Col md={1}>
<Button shape="icon" onClick={ this.handleClick }>
{ caret }
</Button>
</Col>
</Row>
);
return (
<Col md={10} mdOffset={1} sm={12} smOffset={0}>
<Col md={12}>
<h3>{ title }</h3>
<p>{ desc }</p>
<Panel collapsible expanded={ this.state.open } colors='bordered' header={ header } footer={footer} footerStyle = {{padding: 0}}>
<Panel collapsible expanded={ this.state.open } colors='bordered' header={ example } footer={footer} footerStyle = {{padding: 0,borderColor: "transparent"}} >
<pre><code className="hljs javascript">{ code }</code></pre>

@@ -82,0 +70,0 @@ </Panel>

@@ -5,3 +5,3 @@ ## Badge

## 代码展示
## 代码演示

@@ -11,3 +11,3 @@ ### API

|参数|说明|类型|默认值|
|:--|:---:|:--:|---:|
|:--|:---|:--|:---|
|colors|one of: `primary` `success` `info` `error` `warning` `dark`|string|''|

@@ -14,0 +14,0 @@ |className|增加额外的class|string|''|

{
"name": "bee-badge",
"version": "0.1.5",
"version": "0.1.6",
"description": "bee-badge ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc