plutchik-reactjs-components
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -36,3 +36,3 @@ import React from 'react'; | ||
vector: IEmotionVector; | ||
label: string; | ||
label?: string; | ||
onClick?: (emotion: Emotion) => void; | ||
@@ -39,0 +39,0 @@ gridArea?: string; |
@@ -117,4 +117,8 @@ "use strict"; | ||
render() { | ||
return (react_1.default.createElement("div", { className: 'plutchik-charts-container', style: { gridArea: this.props.gridArea } }, | ||
react_1.default.createElement("div", { className: 'plutchik-charts-label' }, this.props.label), | ||
return (react_1.default.createElement("div", { className: 'plutchik-charts-container', style: { | ||
gridArea: this.props.gridArea, | ||
padding: this.props.label === undefined ? '0px' : undefined, | ||
borderWidth: this.props.label === undefined ? '0px' : undefined, | ||
} }, | ||
this.props.label !== undefined ? (react_1.default.createElement("div", { className: 'plutchik-charts-label' }, this.props.label)) : (react_1.default.createElement(react_1.default.Fragment, null)), | ||
Object.values(types_1.Emotion).map((v, i) => { | ||
@@ -121,0 +125,0 @@ let val = this.props.vector[v]; |
@@ -36,3 +36,3 @@ import React from 'react'; | ||
vector: IEmotionVector; | ||
label: string; | ||
label?: string; | ||
onClick?: (emotion: Emotion) => void; | ||
@@ -39,0 +39,0 @@ gridArea?: string; |
@@ -112,4 +112,8 @@ import React from 'react'; | ||
render() { | ||
return (React.createElement("div", { className: 'plutchik-charts-container', style: { gridArea: this.props.gridArea } }, | ||
React.createElement("div", { className: 'plutchik-charts-label' }, this.props.label), | ||
return (React.createElement("div", { className: 'plutchik-charts-container', style: { | ||
gridArea: this.props.gridArea, | ||
padding: this.props.label === undefined ? '0px' : undefined, | ||
borderWidth: this.props.label === undefined ? '0px' : undefined, | ||
} }, | ||
this.props.label !== undefined ? (React.createElement("div", { className: 'plutchik-charts-label' }, this.props.label)) : (React.createElement(React.Fragment, null)), | ||
Object.values(Emotion).map((v, i) => { | ||
@@ -116,0 +120,0 @@ let val = this.props.vector[v]; |
{ | ||
"name": "plutchik-reactjs-components", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Plutchik emotional azimuth", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
103653
2771