@dreamcommerce/aurora 2.20.2-0 → 2.20.2-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/external/lodash/isEqual.js +43 -0
- package/build/cjs/external/lodash/isEqual.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/color_picker_new/components/pure-color-picker.js +38 -24
- package/build/cjs/packages/aurora/src/components/color_picker_new/components/pure-color-picker.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/color_picker_new/index.js +3 -7
- package/build/cjs/packages/aurora/src/components/color_picker_new/index.js.map +1 -1
- package/build/esm/external/lodash/isEqual.js +39 -0
- package/build/esm/external/lodash/isEqual.js.map +1 -0
- package/build/esm/packages/aurora/src/components/color_picker_new/components/pure-color-picker.js +39 -25
- package/build/esm/packages/aurora/src/components/color_picker_new/components/pure-color-picker.js.map +1 -1
- package/build/esm/packages/aurora/src/components/color_picker_new/index.js +4 -8
- package/build/esm/packages/aurora/src/components/color_picker_new/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _baseIsEqual = require('./_baseIsEqual.js');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Performs a deep comparison between two values to determine if they are
|
|
9
|
+
* equivalent.
|
|
10
|
+
*
|
|
11
|
+
* **Note:** This method supports comparing arrays, array buffers, booleans,
|
|
12
|
+
* date objects, error objects, maps, numbers, `Object` objects, regexes,
|
|
13
|
+
* sets, strings, symbols, and typed arrays. `Object` objects are compared
|
|
14
|
+
* by their own, not inherited, enumerable properties. Functions and DOM
|
|
15
|
+
* nodes are compared by strict equality, i.e. `===`.
|
|
16
|
+
*
|
|
17
|
+
* @static
|
|
18
|
+
* @memberOf _
|
|
19
|
+
* @since 0.1.0
|
|
20
|
+
* @category Lang
|
|
21
|
+
* @param {*} value The value to compare.
|
|
22
|
+
* @param {*} other The other value to compare.
|
|
23
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
24
|
+
* @example
|
|
25
|
+
*
|
|
26
|
+
* var object = { 'a': 1 };
|
|
27
|
+
* var other = { 'a': 1 };
|
|
28
|
+
*
|
|
29
|
+
* _.isEqual(object, other);
|
|
30
|
+
* // => true
|
|
31
|
+
*
|
|
32
|
+
* object === other;
|
|
33
|
+
* // => false
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
function isEqual(value, other) {
|
|
37
|
+
return _baseIsEqual['default'](value, other);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
var isEqual_1 = isEqual;
|
|
41
|
+
|
|
42
|
+
exports.default = isEqual_1;
|
|
43
|
+
//# sourceMappingURL=isEqual.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/cjs/packages/aurora/src/components/color_picker_new/components/pure-color-picker.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var
|
|
6
|
+
var context = require('../context.js');
|
|
7
7
|
var constants = require('../constants.js');
|
|
8
8
|
var css_classes = require('../css_classes.js');
|
|
9
9
|
var colorLabelInput = require('./color-label-input.js');
|
|
@@ -16,23 +16,44 @@ var colorPickerSwatch = require('./color-picker-swatch.js');
|
|
|
16
16
|
var colorPickerShades = require('./color-picker-shades.js');
|
|
17
17
|
var colorPickerVariables = require('./color-picker-variables.js');
|
|
18
18
|
var dropdown = require('../../dropdown/components/dropdown.js');
|
|
19
|
+
var isEqual = require('../../../../../../external/lodash/isEqual.js');
|
|
19
20
|
|
|
20
21
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
21
22
|
|
|
22
23
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
23
24
|
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
var ColorPickerMy = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
26
|
+
var colorValue = _ref.colorValue,
|
|
27
|
+
setColor = _ref.setColor;
|
|
28
|
+
console.warn('%c ColorPickerMy', 'color: red', colorValue);
|
|
29
|
+
return /*#__PURE__*/React__default['default'].createElement(index.ColorPicker, {
|
|
30
|
+
value: colorValue,
|
|
31
|
+
onChange: setColor,
|
|
32
|
+
width: constants.COLOR_PICKER_WIDTH,
|
|
33
|
+
height: constants.COLOR_PICKER_HEIGHT,
|
|
34
|
+
hideColorTypeBtns: true,
|
|
35
|
+
hideColorGuide: true,
|
|
36
|
+
hideAdvancedSliders: true,
|
|
37
|
+
hideInputType: true,
|
|
38
|
+
hideInputs: true,
|
|
39
|
+
hidePresets: true,
|
|
40
|
+
className: "".concat(main_module['default'][css_classes.cssColorPickerRbgcp])
|
|
41
|
+
});
|
|
42
|
+
}, function (prev, curr) {
|
|
43
|
+
return isEqual['default'](prev, curr);
|
|
44
|
+
});
|
|
45
|
+
var ColorPickerNewPure = /*#__PURE__*/React__default['default'].memo(function (_ref2) {
|
|
46
|
+
var id = _ref2.id,
|
|
47
|
+
name = _ref2.name,
|
|
48
|
+
colorVariables = _ref2.colorVariables;
|
|
49
|
+
|
|
50
|
+
var _useContext = React.useContext(context.ColorPickerNewContext),
|
|
51
|
+
color = _useContext.color,
|
|
52
|
+
setColor = _useContext.setColor; // const [colorValue, setColor] = useState();
|
|
28
53
|
|
|
29
|
-
// const { color, setColor } = useContext<IColorPickerNewContextProps>(ColorPickerNewContext);
|
|
30
|
-
// const colorValue = typeof color === 'string' ? color : color.value;
|
|
31
|
-
var _useState = React.useState('#000000'),
|
|
32
|
-
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
|
33
|
-
colorValue = _useState2[0],
|
|
34
|
-
setColor = _useState2[1];
|
|
35
54
|
|
|
55
|
+
var colorValue = typeof color === 'string' ? color : color.value;
|
|
56
|
+
console.log('%c ColorPickerNewWithContext', 'color: red', colorVariables);
|
|
36
57
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
37
58
|
className: "".concat(main_module['default'][css_classes.cssColorPicker])
|
|
38
59
|
}, /*#__PURE__*/React__default['default'].createElement(dropdown['default'], null, /*#__PURE__*/React__default['default'].createElement(dropdown['default'].CustomLabel, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -50,22 +71,15 @@ var ColorPickerNewPure = function ColorPickerNewPure(_ref) {
|
|
|
50
71
|
shouldCloseOthersOnOpen: true
|
|
51
72
|
}, /*#__PURE__*/React__default['default'].createElement(colorPickerHeader.ColorPickerHeader, null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
52
73
|
className: "".concat(main_module['default'][css_classes.cssColorPickerContainer])
|
|
53
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
width: constants.COLOR_PICKER_WIDTH,
|
|
57
|
-
height: constants.COLOR_PICKER_HEIGHT,
|
|
58
|
-
hideColorTypeBtns: true,
|
|
59
|
-
hideColorGuide: true,
|
|
60
|
-
hideAdvancedSliders: true,
|
|
61
|
-
hideInputType: true,
|
|
62
|
-
hideInputs: true,
|
|
63
|
-
hidePresets: true,
|
|
64
|
-
className: "".concat(main_module['default'][css_classes.cssColorPickerRbgcp])
|
|
74
|
+
}, /*#__PURE__*/React__default['default'].createElement(ColorPickerMy, {
|
|
75
|
+
colorValue: colorValue,
|
|
76
|
+
setColor: setColor
|
|
65
77
|
}), /*#__PURE__*/React__default['default'].createElement(colorPickerInputs.ColorPickerInputs, null), /*#__PURE__*/React__default['default'].createElement(colorPickerShades.ColorPickerShades, null), (colorVariables === null || colorVariables === void 0 ? void 0 : colorVariables.isVisible) && /*#__PURE__*/React__default['default'].createElement(colorPickerVariables.ColorPickerVariables, {
|
|
66
78
|
variables: colorVariables.variables
|
|
67
79
|
})), /*#__PURE__*/React__default['default'].createElement(colorPickerFooter.ColorPickerFooter, null))));
|
|
68
|
-
}
|
|
80
|
+
}, function (prev, curr) {
|
|
81
|
+
return isEqual['default'](prev, curr);
|
|
82
|
+
});
|
|
69
83
|
|
|
70
84
|
exports.default = ColorPickerNewPure;
|
|
71
85
|
//# sourceMappingURL=pure-color-picker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,0FAA8F;AAClH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,0FAA8F;AAClH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,8CAAkD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -40,8 +40,8 @@ var ColorPickerNewWithContext = function ColorPickerNewWithContext(_ref) {
|
|
|
40
40
|
handleSave = _useColorPicker.handleSave,
|
|
41
41
|
handlePickSwatch = _useColorPicker.handlePickSwatch;
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
return /*#__PURE__*/React__default['default'].createElement(context.ColorPickerNewContext.Provider, {
|
|
44
|
+
value: {
|
|
45
45
|
color: color,
|
|
46
46
|
setColor: setColor,
|
|
47
47
|
hex: hex,
|
|
@@ -55,11 +55,7 @@ var ColorPickerNewWithContext = function ColorPickerNewWithContext(_ref) {
|
|
|
55
55
|
handleCancel: handleCancel,
|
|
56
56
|
handleSave: handleSave,
|
|
57
57
|
handlePickSwatch: handlePickSwatch
|
|
58
|
-
}
|
|
59
|
-
}, [color, setColor, hex, hslArr, handleOnChangeAlpha, alphaValue, rgbaArr, setR, setG, setB, handleCancel, handleSave, handlePickSwatch]);
|
|
60
|
-
console.log('%c ColorPickerNewWithContext', 'color: red', value, colorVariables);
|
|
61
|
-
return /*#__PURE__*/React__default['default'].createElement(context.ColorPickerNewContext.Provider, {
|
|
62
|
-
value: value
|
|
58
|
+
}
|
|
63
59
|
}, /*#__PURE__*/React__default['default'].createElement(pureColorPicker['default'], {
|
|
64
60
|
id: id,
|
|
65
61
|
name: name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import _baseIsEqual from './_baseIsEqual.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Performs a deep comparison between two values to determine if they are
|
|
5
|
+
* equivalent.
|
|
6
|
+
*
|
|
7
|
+
* **Note:** This method supports comparing arrays, array buffers, booleans,
|
|
8
|
+
* date objects, error objects, maps, numbers, `Object` objects, regexes,
|
|
9
|
+
* sets, strings, symbols, and typed arrays. `Object` objects are compared
|
|
10
|
+
* by their own, not inherited, enumerable properties. Functions and DOM
|
|
11
|
+
* nodes are compared by strict equality, i.e. `===`.
|
|
12
|
+
*
|
|
13
|
+
* @static
|
|
14
|
+
* @memberOf _
|
|
15
|
+
* @since 0.1.0
|
|
16
|
+
* @category Lang
|
|
17
|
+
* @param {*} value The value to compare.
|
|
18
|
+
* @param {*} other The other value to compare.
|
|
19
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
20
|
+
* @example
|
|
21
|
+
*
|
|
22
|
+
* var object = { 'a': 1 };
|
|
23
|
+
* var other = { 'a': 1 };
|
|
24
|
+
*
|
|
25
|
+
* _.isEqual(object, other);
|
|
26
|
+
* // => true
|
|
27
|
+
*
|
|
28
|
+
* object === other;
|
|
29
|
+
* // => false
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
function isEqual(value, other) {
|
|
33
|
+
return _baseIsEqual(value, other);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
var isEqual_1 = isEqual;
|
|
37
|
+
|
|
38
|
+
export default isEqual_1;
|
|
39
|
+
//# sourceMappingURL=isEqual.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/esm/packages/aurora/src/components/color_picker_new/components/pure-color-picker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import {
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
|
+
import { ColorPickerNewContext } from '../context.js';
|
|
3
3
|
import { COLOR_PICKER_WIDTH, COLOR_PICKER_HEIGHT } from '../constants.js';
|
|
4
4
|
import { cssColorPicker, cssColorPickerInputContainer, cssColorPickerInputColorSwatchContainer, cssColorPickerContainer, cssColorPickerRbgcp } from '../css_classes.js';
|
|
5
5
|
import { ColorLabelInput } from './color-label-input.js';
|
|
@@ -12,19 +12,40 @@ import { ColorPickerSwatch } from './color-picker-swatch.js';
|
|
|
12
12
|
import { ColorPickerShades } from './color-picker-shades.js';
|
|
13
13
|
import { ColorPickerVariables } from './color-picker-variables.js';
|
|
14
14
|
import Dropdown from '../../dropdown/components/dropdown.js';
|
|
15
|
+
import isEqual_1 from '../../../../../../external/lodash/isEqual.js';
|
|
15
16
|
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
var ColorPickerMy = /*#__PURE__*/React.memo(function (_ref) {
|
|
18
|
+
var colorValue = _ref.colorValue,
|
|
19
|
+
setColor = _ref.setColor;
|
|
20
|
+
console.warn('%c ColorPickerMy', 'color: red', colorValue);
|
|
21
|
+
return /*#__PURE__*/React.createElement(ColorPicker, {
|
|
22
|
+
value: colorValue,
|
|
23
|
+
onChange: setColor,
|
|
24
|
+
width: COLOR_PICKER_WIDTH,
|
|
25
|
+
height: COLOR_PICKER_HEIGHT,
|
|
26
|
+
hideColorTypeBtns: true,
|
|
27
|
+
hideColorGuide: true,
|
|
28
|
+
hideAdvancedSliders: true,
|
|
29
|
+
hideInputType: true,
|
|
30
|
+
hideInputs: true,
|
|
31
|
+
hidePresets: true,
|
|
32
|
+
className: "".concat(styles[cssColorPickerRbgcp])
|
|
33
|
+
});
|
|
34
|
+
}, function (prev, curr) {
|
|
35
|
+
return isEqual_1(prev, curr);
|
|
36
|
+
});
|
|
37
|
+
var ColorPickerNewPure = /*#__PURE__*/React.memo(function (_ref2) {
|
|
38
|
+
var id = _ref2.id,
|
|
39
|
+
name = _ref2.name,
|
|
40
|
+
colorVariables = _ref2.colorVariables;
|
|
41
|
+
|
|
42
|
+
var _useContext = useContext(ColorPickerNewContext),
|
|
43
|
+
color = _useContext.color,
|
|
44
|
+
setColor = _useContext.setColor; // const [colorValue, setColor] = useState();
|
|
20
45
|
|
|
21
|
-
// const { color, setColor } = useContext<IColorPickerNewContextProps>(ColorPickerNewContext);
|
|
22
|
-
// const colorValue = typeof color === 'string' ? color : color.value;
|
|
23
|
-
var _useState = useState('#000000'),
|
|
24
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
25
|
-
colorValue = _useState2[0],
|
|
26
|
-
setColor = _useState2[1];
|
|
27
46
|
|
|
47
|
+
var colorValue = typeof color === 'string' ? color : color.value;
|
|
48
|
+
console.log('%c ColorPickerNewWithContext', 'color: red', colorVariables);
|
|
28
49
|
return /*#__PURE__*/React.createElement("div", {
|
|
29
50
|
className: "".concat(styles[cssColorPicker])
|
|
30
51
|
}, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.CustomLabel, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -42,22 +63,15 @@ var ColorPickerNewPure = function ColorPickerNewPure(_ref) {
|
|
|
42
63
|
shouldCloseOthersOnOpen: true
|
|
43
64
|
}, /*#__PURE__*/React.createElement(ColorPickerHeader, null), /*#__PURE__*/React.createElement("div", {
|
|
44
65
|
className: "".concat(styles[cssColorPickerContainer])
|
|
45
|
-
}, /*#__PURE__*/React.createElement(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
width: COLOR_PICKER_WIDTH,
|
|
49
|
-
height: COLOR_PICKER_HEIGHT,
|
|
50
|
-
hideColorTypeBtns: true,
|
|
51
|
-
hideColorGuide: true,
|
|
52
|
-
hideAdvancedSliders: true,
|
|
53
|
-
hideInputType: true,
|
|
54
|
-
hideInputs: true,
|
|
55
|
-
hidePresets: true,
|
|
56
|
-
className: "".concat(styles[cssColorPickerRbgcp])
|
|
66
|
+
}, /*#__PURE__*/React.createElement(ColorPickerMy, {
|
|
67
|
+
colorValue: colorValue,
|
|
68
|
+
setColor: setColor
|
|
57
69
|
}), /*#__PURE__*/React.createElement(ColorPickerInputs, null), /*#__PURE__*/React.createElement(ColorPickerShades, null), (colorVariables === null || colorVariables === void 0 ? void 0 : colorVariables.isVisible) && /*#__PURE__*/React.createElement(ColorPickerVariables, {
|
|
58
70
|
variables: colorVariables.variables
|
|
59
71
|
})), /*#__PURE__*/React.createElement(ColorPickerFooter, null))));
|
|
60
|
-
}
|
|
72
|
+
}, function (prev, curr) {
|
|
73
|
+
return isEqual_1(prev, curr);
|
|
74
|
+
});
|
|
61
75
|
|
|
62
76
|
export default ColorPickerNewPure;
|
|
63
77
|
//# sourceMappingURL=pure-color-picker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,4BAA4B,0FAA8F;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,4BAA4B,0FAA8F;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,8CAAkD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ColorPickerNewContext } from './context.js';
|
|
3
3
|
import ColorPickerNewPure from './components/pure-color-picker.js';
|
|
4
4
|
import useColorPicker from './hooks/use_color_picker.js';
|
|
@@ -32,8 +32,8 @@ var ColorPickerNewWithContext = function ColorPickerNewWithContext(_ref) {
|
|
|
32
32
|
handleSave = _useColorPicker.handleSave,
|
|
33
33
|
handlePickSwatch = _useColorPicker.handlePickSwatch;
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
return /*#__PURE__*/React.createElement(ColorPickerNewContext.Provider, {
|
|
36
|
+
value: {
|
|
37
37
|
color: color,
|
|
38
38
|
setColor: setColor,
|
|
39
39
|
hex: hex,
|
|
@@ -47,11 +47,7 @@ var ColorPickerNewWithContext = function ColorPickerNewWithContext(_ref) {
|
|
|
47
47
|
handleCancel: handleCancel,
|
|
48
48
|
handleSave: handleSave,
|
|
49
49
|
handlePickSwatch: handlePickSwatch
|
|
50
|
-
}
|
|
51
|
-
}, [color, setColor, hex, hslArr, handleOnChangeAlpha, alphaValue, rgbaArr, setR, setG, setB, handleCancel, handleSave, handlePickSwatch]);
|
|
52
|
-
console.log('%c ColorPickerNewWithContext', 'color: red', value, colorVariables);
|
|
53
|
-
return /*#__PURE__*/React.createElement(ColorPickerNewContext.Provider, {
|
|
54
|
-
value: value
|
|
50
|
+
}
|
|
55
51
|
}, /*#__PURE__*/React.createElement(ColorPickerNewPure, {
|
|
56
52
|
id: id,
|
|
57
53
|
name: name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|