@lowdefy/blocks-color-selectors 4.0.0-rc.1 → 4.0.0-rc.11
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.
|
@@ -17,7 +17,7 @@ import { HexColorPicker, HexColorInput } from 'react-colorful';
|
|
|
17
17
|
import classNames from 'classnames';
|
|
18
18
|
import useClickOutside from './useClickOutside.js';
|
|
19
19
|
const DEFAULT_COLOR = '#000000';
|
|
20
|
-
export const ColorPicker = ({ className
|
|
20
|
+
export const ColorPicker = ({ className, disabled, hideInput, onChange, size, value = DEFAULT_COLOR })=>{
|
|
21
21
|
const popover = useRef();
|
|
22
22
|
const [isOpen, toggle] = useState(false);
|
|
23
23
|
const close = useCallback((newColor)=>{
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { blockDefaultProps } from '@lowdefy/block-utils';
|
|
17
17
|
import Label from '@lowdefy/blocks-antd/blocks/Label/Label.js';
|
|
18
18
|
import ColorPicker from './ColorPicker.js';
|
|
19
|
-
const ColorSelector = ({ blockId
|
|
19
|
+
const ColorSelector = ({ blockId, components, events, loading, methods, properties, required, validation, value })=>{
|
|
20
20
|
return /*#__PURE__*/ React.createElement(Label, {
|
|
21
21
|
blockId: blockId,
|
|
22
22
|
components: components,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/blocks-color-selectors",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.11",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "A Lowdefy color selector blocks based on react-color.",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@lowdefy/block-utils": "4.0.0-rc.
|
|
53
|
-
"@lowdefy/blocks-antd": "4.0.0-rc.
|
|
52
|
+
"@lowdefy/block-utils": "4.0.0-rc.11",
|
|
53
|
+
"@lowdefy/blocks-antd": "4.0.0-rc.11",
|
|
54
54
|
"classnames": "2.3.2",
|
|
55
55
|
"react": "18.2.0",
|
|
56
56
|
"react-colorful": "5.6.1",
|
|
@@ -58,22 +58,22 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@emotion/jest": "11.10.5",
|
|
61
|
-
"@lowdefy/block-dev": "4.0.0-rc.
|
|
62
|
-
"@lowdefy/jest-yaml-transform": "4.0.0-rc.
|
|
63
|
-
"@swc/cli": "0.1.
|
|
64
|
-
"@swc/core": "1.3.
|
|
65
|
-
"@swc/jest": "0.2.
|
|
61
|
+
"@lowdefy/block-dev": "4.0.0-rc.11",
|
|
62
|
+
"@lowdefy/jest-yaml-transform": "4.0.0-rc.11",
|
|
63
|
+
"@swc/cli": "0.1.62",
|
|
64
|
+
"@swc/core": "1.3.92",
|
|
65
|
+
"@swc/jest": "0.2.29",
|
|
66
66
|
"@testing-library/dom": "8.19.1",
|
|
67
67
|
"@testing-library/react": "13.4.0",
|
|
68
68
|
"@testing-library/user-event": "14.4.3",
|
|
69
69
|
"copyfiles": "2.4.1",
|
|
70
|
-
"jest": "28.1.
|
|
70
|
+
"jest": "28.1.3",
|
|
71
71
|
"jest-canvas-mock": "2.4.0",
|
|
72
|
-
"jest-environment-jsdom": "28.1.
|
|
72
|
+
"jest-environment-jsdom": "28.1.3",
|
|
73
73
|
"jest-serializer-html": "7.1.0"
|
|
74
74
|
},
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "dbc49d3688a6d2f44de25cc3f4bc071627f7ebfa"
|
|
79
79
|
}
|