UNPKG

714 BJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6
7var _react = require('react');
8
9var _react2 = _interopRequireDefault(_react);
10
11var _reactColor = require('react-color');
12
13function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
15var Palette = function Palette(_ref) {
16 var color = _ref.color,
17 onChange = _ref.onChange;
18
19 var popover = {
20 position: 'absolute',
21 zIndex: '2'
22 };
23 return _react2.default.createElement(
24 'div',
25 { style: popover },
26 _react2.default.createElement(_reactColor.SketchPicker, { color: color,
27 onChange: onChange })
28 );
29};
30
31exports.default = Palette;
32module.exports = exports['default'];
\No newline at end of file