react-color
Version:
A Collection of Color Pickers from Sketch, Photoshop, Chrome & more
27 lines (23 loc) • 637 B
JavaScript
import React from 'react';
import reactCSS from 'reactcss';
export var PhotoshopPointerCircle = function PhotoshopPointerCircle(_ref) {
var hsl = _ref.hsl;
var styles = reactCSS({
'default': {
picker: {
width: '12px',
height: '12px',
borderRadius: '6px',
boxShadow: 'inset 0 0 0 1px #fff',
transform: 'translate(-6px, -6px)'
}
},
'black-outline': {
picker: {
boxShadow: 'inset 0 0 0 1px #000'
}
}
}, { 'black-outline': hsl.l > 0.5 });
return React.createElement('div', { style: styles.picker });
};
export default PhotoshopPointerCircle;