@lowdefy/blocks-color-selectors 4.0.0-rc.0 → 4.0.0-rc.1
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/dist/blocks/ColorSelector/ColorPicker.js +2 -2
- package/dist/blocks/ColorSelector/ColorSelector.js +3 -3
- package/dist/blocks/ColorSelector/style.less +1 -1
- package/dist/blocks/ColorSelector/useClickOutside.js +1 -1
- package/dist/blocks.js +1 -1
- package/dist/types.js +1 -1
- package/package.json +16 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -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 , disabled , hideInput , onChange , size , value =DEFAULT_COLOR
|
|
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)=>{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -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 , components , events , loading , methods , properties , required , validation , value
|
|
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,
|
|
@@ -36,7 +36,7 @@ const ColorSelector = ({ blockId , components , events , loading , methods , pro
|
|
|
36
36
|
{
|
|
37
37
|
marginBottom: '0px !important'
|
|
38
38
|
},
|
|
39
|
-
properties.inputStyle
|
|
39
|
+
properties.inputStyle
|
|
40
40
|
]),
|
|
41
41
|
onChange: (newColor)=>{
|
|
42
42
|
methods.setValue(newColor);
|
package/dist/blocks.js
CHANGED
package/dist/types.js
CHANGED
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.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "A Lowdefy color selector blocks based on react-color.",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -46,27 +46,26 @@
|
|
|
46
46
|
"clean": "rm -rf dist",
|
|
47
47
|
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
|
|
48
48
|
"prepublishOnly": "pnpm build",
|
|
49
|
-
"test
|
|
50
|
-
"test": "jest --coverage"
|
|
49
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
51
50
|
},
|
|
52
51
|
"dependencies": {
|
|
53
|
-
"@lowdefy/block-utils": "4.0.0-rc.
|
|
54
|
-
"@lowdefy/blocks-antd": "4.0.0-rc.
|
|
55
|
-
"classnames": "2.3.
|
|
52
|
+
"@lowdefy/block-utils": "4.0.0-rc.1",
|
|
53
|
+
"@lowdefy/blocks-antd": "4.0.0-rc.1",
|
|
54
|
+
"classnames": "2.3.2",
|
|
56
55
|
"react": "18.2.0",
|
|
57
|
-
"react-colorful": "5.
|
|
56
|
+
"react-colorful": "5.6.1",
|
|
58
57
|
"react-dom": "18.2.0"
|
|
59
58
|
},
|
|
60
59
|
"devDependencies": {
|
|
61
|
-
"@emotion/jest": "11.
|
|
62
|
-
"@lowdefy/block-dev": "4.0.0-rc.
|
|
63
|
-
"@lowdefy/jest-yaml-transform": "4.0.0-rc.
|
|
64
|
-
"@swc/cli": "0.1.
|
|
65
|
-
"@swc/core": "1.
|
|
66
|
-
"@swc/jest": "0.2.
|
|
67
|
-
"@testing-library/dom": "8.
|
|
68
|
-
"@testing-library/react": "13.
|
|
69
|
-
"@testing-library/user-event": "14.
|
|
60
|
+
"@emotion/jest": "11.10.5",
|
|
61
|
+
"@lowdefy/block-dev": "4.0.0-rc.1",
|
|
62
|
+
"@lowdefy/jest-yaml-transform": "4.0.0-rc.1",
|
|
63
|
+
"@swc/cli": "0.1.59",
|
|
64
|
+
"@swc/core": "1.3.24",
|
|
65
|
+
"@swc/jest": "0.2.24",
|
|
66
|
+
"@testing-library/dom": "8.19.1",
|
|
67
|
+
"@testing-library/react": "13.4.0",
|
|
68
|
+
"@testing-library/user-event": "14.4.3",
|
|
70
69
|
"copyfiles": "2.4.1",
|
|
71
70
|
"jest": "28.1.0",
|
|
72
71
|
"jest-canvas-mock": "2.4.0",
|
|
@@ -76,5 +75,5 @@
|
|
|
76
75
|
"publishConfig": {
|
|
77
76
|
"access": "public"
|
|
78
77
|
},
|
|
79
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "ecc4f16c19eede929eda177db524cf13a8053379"
|
|
80
79
|
}
|