1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 |
|
7 | var _react = require('react');
|
8 |
|
9 | var _react2 = _interopRequireDefault(_react);
|
10 |
|
11 | var _reactColor = require('react-color');
|
12 |
|
13 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
14 |
|
15 | var 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 |
|
31 | exports.default = Palette;
|
32 | module.exports = exports['default']; |
\ | No newline at end of file |