@lowdefy/blocks-color-selectors 4.0.0-alpha.8 → 4.0.0-alpha.9
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 +6 -3
- package/dist/blocks/ColorSelector/ColorSelector.js +2 -9
- 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 +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2022 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.
|
|
@@ -25,7 +25,7 @@ export const ColorPicker = ({ className , disabled , hideInput , onChange , size
|
|
|
25
25
|
toggle(false);
|
|
26
26
|
onChange(newColor);
|
|
27
27
|
}, []);
|
|
28
|
-
useClickOutside(popover, close,
|
|
28
|
+
useClickOutside(popover, close, color);
|
|
29
29
|
return(/*#__PURE__*/ React.createElement("div", {
|
|
30
30
|
className: classNames({
|
|
31
31
|
'color-picker': true,
|
|
@@ -52,7 +52,10 @@ export const ColorPicker = ({ className , disabled , hideInput , onChange , size
|
|
|
52
52
|
'ant-input-lg': size === 'large'
|
|
53
53
|
}),
|
|
54
54
|
color: color,
|
|
55
|
-
onChange:
|
|
55
|
+
onChange: (newColor)=>{
|
|
56
|
+
setColor(newColor);
|
|
57
|
+
onChange(newColor);
|
|
58
|
+
},
|
|
56
59
|
prefixed: true,
|
|
57
60
|
disabled: disabled
|
|
58
61
|
}), isOpen && /*#__PURE__*/ React.createElement("div", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2022 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.
|
|
@@ -21,7 +21,6 @@ const ColorSelector = ({ blockId , components , events , loading , methods , pro
|
|
|
21
21
|
blockId: blockId,
|
|
22
22
|
components: components,
|
|
23
23
|
events: events,
|
|
24
|
-
loading: loading,
|
|
25
24
|
methods: methods,
|
|
26
25
|
properties: {
|
|
27
26
|
title: properties.title,
|
|
@@ -49,7 +48,7 @@ const ColorSelector = ({ blockId , components , events , loading , methods , pro
|
|
|
49
48
|
undefinedColor: properties.undefinedColor,
|
|
50
49
|
value: value,
|
|
51
50
|
hideInput: properties.hideInput,
|
|
52
|
-
disabled: properties.disabled,
|
|
51
|
+
disabled: properties.disabled || loading,
|
|
53
52
|
methods: methods
|
|
54
53
|
})
|
|
55
54
|
}
|
|
@@ -59,12 +58,6 @@ ColorSelector.defaultProps = blockDefaultProps;
|
|
|
59
58
|
ColorSelector.meta = {
|
|
60
59
|
valueType: 'string',
|
|
61
60
|
category: 'input',
|
|
62
|
-
loading: {
|
|
63
|
-
type: 'Skeleton',
|
|
64
|
-
properties: {
|
|
65
|
-
height: 216
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
61
|
icons: [
|
|
69
62
|
...Label.meta.icons
|
|
70
63
|
],
|
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-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.9",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "A Lowdefy color selector blocks based on react-color.",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"test": "jest --coverage"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@lowdefy/block-utils": "4.0.0-alpha.
|
|
55
|
-
"@lowdefy/blocks-antd": "4.0.0-alpha.
|
|
54
|
+
"@lowdefy/block-utils": "4.0.0-alpha.9",
|
|
55
|
+
"@lowdefy/blocks-antd": "4.0.0-alpha.9",
|
|
56
56
|
"classnames": "2.3.1",
|
|
57
57
|
"react": "17.0.2",
|
|
58
58
|
"react-colorful": "5.5.1",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@emotion/jest": "11.7.1",
|
|
63
|
-
"@lowdefy/block-dev": "4.0.0-alpha.
|
|
63
|
+
"@lowdefy/block-dev": "4.0.0-alpha.9",
|
|
64
64
|
"@swc/cli": "0.1.55",
|
|
65
65
|
"@swc/core": "1.2.135",
|
|
66
66
|
"@swc/jest": "0.2.17",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "98b544eca231bdcfca6c3a8601a891835d5ce571"
|
|
80
80
|
}
|